@supersoniks/concorde 1.1.45 → 1.1.47

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.
Files changed (63) hide show
  1. package/README.md +0 -0
  2. package/cli.js +0 -0
  3. package/concorde-core.bundle.js +36 -23
  4. package/concorde-core.es.js +1156 -864
  5. package/concorde-customer.bundle.js +129 -0
  6. package/concorde-customer.es.js +22004 -0
  7. package/core/_types/types.d.ts +0 -1
  8. package/core/components/functional/date/date.js +15 -7
  9. package/core/components/functional/fetch/fetch.d.ts +3 -1
  10. package/core/components/functional/list/list.d.ts +36 -19
  11. package/core/components/functional/list/list.js +15 -23
  12. package/core/components/functional/queue/queue.d.ts +6 -1
  13. package/core/components/functional/queue/queue.js +92 -54
  14. package/core/components/functional/sdui/sdui.d.ts +3 -4
  15. package/core/components/functional/sdui/sdui.js +0 -3
  16. package/core/components/ui/_css/type.js +12 -12
  17. package/core/components/ui/alert/alert.d.ts +3 -0
  18. package/core/components/ui/alert/alert.js +33 -1
  19. package/core/components/ui/badge/badge.d.ts +1 -1
  20. package/core/components/ui/badge/badge.js +9 -3
  21. package/core/components/ui/button/button.d.ts +2 -0
  22. package/core/components/ui/button/button.js +37 -12
  23. package/core/components/ui/form/checkbox/checkbox.d.ts +3 -0
  24. package/core/components/ui/form/checkbox/checkbox.js +14 -3
  25. package/core/components/ui/form/css/form-control.d.ts +1 -0
  26. package/core/components/ui/form/css/form-control.js +17 -0
  27. package/core/components/ui/form/input/input.d.ts +4 -3
  28. package/core/components/ui/form/input/input.js +38 -1
  29. package/core/components/ui/form/textarea/textarea.d.ts +1 -0
  30. package/core/components/ui/icon/icon.js +1 -1
  31. package/core/components/ui/image/image.d.ts +2 -0
  32. package/core/components/ui/image/image.js +28 -0
  33. package/core/components/ui/modal/modal-close.js +2 -3
  34. package/core/components/ui/modal/modal-content.js +1 -0
  35. package/core/components/ui/modal/modal.d.ts +8 -0
  36. package/core/components/ui/modal/modal.js +34 -6
  37. package/core/components/ui/pop/pop.js +1 -1
  38. package/core/components/ui/theme/css/tailwind.css +0 -0
  39. package/core/components/ui/theme/css/tailwind.d.ts +0 -0
  40. package/core/components/ui/theme/theme-collection/core-variables.js +18 -9
  41. package/core/components/ui/theme/theme.js +15 -8
  42. package/core/components/ui/toast/toast.d.ts +1 -1
  43. package/core/components/ui/toast/types.d.ts +1 -1
  44. package/core/components/ui/ui.d.ts +0 -1
  45. package/core/components/ui/ui.js +0 -1
  46. package/core/mixins/Fetcher.d.ts +3 -1
  47. package/core/mixins/Fetcher.js +45 -14
  48. package/core/mixins/FormCheckable.d.ts +1 -0
  49. package/core/mixins/FormInput.d.ts +1 -0
  50. package/core/mixins/Subscriber.d.ts +1 -0
  51. package/core/mixins/Subscriber.js +12 -7
  52. package/core/utils/LocationHandler.js +9 -3
  53. package/core/utils/PublisherProxy.d.ts +30 -4
  54. package/core/utils/PublisherProxy.js +218 -7
  55. package/core/utils/api.d.ts +3 -0
  56. package/core/utils/api.js +3 -1
  57. package/img/concorde-logo.svg +0 -0
  58. package/img/concorde.png +0 -0
  59. package/img/concorde_def.png +0 -0
  60. package/mixins.d.ts +5 -1
  61. package/package.json +5 -1
  62. package/svg/regular/plane.svg +0 -0
  63. package/svg/solid/plane.svg +0 -0
@@ -134,6 +134,7 @@ class Objects$1 {
134
134
  const _API = class {
135
135
  constructor(config) {
136
136
  this.addHTTPResponse = false;
137
+ this.cache = "default";
137
138
  this.serviceURL = config.serviceURL;
138
139
  if (!this.serviceURL)
139
140
  this.serviceURL = document.location.origin;
@@ -145,6 +146,7 @@ const _API = class {
145
146
  this.authToken = config.authToken;
146
147
  this.addHTTPResponse = config.addHTTPResponse || false;
147
148
  this.credentials = config.credentials;
149
+ this.cache = config.cache || "default";
148
150
  }
149
151
  set token(token) {
150
152
  this._token = token;
@@ -252,7 +254,7 @@ const _API = class {
252
254
  });
253
255
  if (!_API.loadingGetPromises.has(mapKey)) {
254
256
  const promise = new Promise(async (resolve) => {
255
- const result2 = await fetch(url, { headers, credentials: this.credentials });
257
+ const result2 = await fetch(url, { headers, credentials: this.credentials, cache: this.cache });
256
258
  const handledResult = await this.handleResult(result2, lastCall);
257
259
  resolve(handledResult);
258
260
  });
@@ -360,19 +362,21 @@ class Format$1 {
360
362
  function isComplex(value) {
361
363
  return typeof value === "object" && value != null;
362
364
  }
363
- class PublisherProxy$1 {
365
+ const _PublisherProxy = class {
364
366
  constructor(target, parentProxPub) {
365
367
  this._proxies_ = /* @__PURE__ */ new Map();
366
- this._key_ = "";
368
+ this._is_savable_ = false;
367
369
  this._invalidateListeners_ = /* @__PURE__ */ new Set();
368
370
  this._assignListeners_ = /* @__PURE__ */ new Set();
369
371
  this._mutationListeners_ = /* @__PURE__ */ new Set();
370
372
  this._fillListeners_ = /* @__PURE__ */ new Set();
371
373
  this._templateFillListeners_ = /* @__PURE__ */ new Set();
372
374
  this._lockInternalMutationPublishing_ = false;
375
+ this._instanceCounter_ = 0;
373
376
  this._value_ = target;
374
377
  this.parent = parentProxPub || null;
375
378
  this.root = this;
379
+ this._instanceCounter_ = 0;
376
380
  while (this.root.parent) {
377
381
  this.root = this.root.parent;
378
382
  }
@@ -387,6 +391,7 @@ class PublisherProxy$1 {
387
391
  this._fillListeners_.clear();
388
392
  this._templateFillListeners_.clear();
389
393
  this._proxies_.clear();
394
+ _PublisherProxy.instances.delete(this._instanceCounter_);
390
395
  }
391
396
  hasListener() {
392
397
  return this._templateFillListeners_.size > 0 || this._assignListeners_.size > 0 || this._invalidateListeners_.size > 0 || this._mutationListeners_.size > 0 || this._fillListeners_.size > 0;
@@ -395,6 +400,12 @@ class PublisherProxy$1 {
395
400
  this._mutationListeners_.forEach((handler) => handler());
396
401
  if (lockInternalMutationsTransmission)
397
402
  return;
403
+ if (!PublisherManager$1.changed && this._is_savable_) {
404
+ PublisherManager$1.changed = true;
405
+ PublisherManager$1.saveId++;
406
+ const saveId = PublisherManager$1.saveId;
407
+ setTimeout(() => PublisherManager$1.getInstance().saveToLocalStorage(saveId), 1e3);
408
+ }
398
409
  if (this.parent) {
399
410
  this.parent._publishInternalMutation_();
400
411
  }
@@ -543,28 +554,97 @@ class PublisherProxy$1 {
543
554
  }
544
555
  return this._value_;
545
556
  }
546
- }
557
+ get $tag() {
558
+ if (!this._instanceCounter_) {
559
+ _PublisherProxy.instancesCounter++;
560
+ this._instanceCounter_ = _PublisherProxy.instancesCounter;
561
+ }
562
+ _PublisherProxy.instances.set(this._instanceCounter_, this);
563
+ const str = '<reactive-publisher-proxy publisher="' + this._instanceCounter_ + '"></reactive-publisher-proxy>';
564
+ return str;
565
+ }
566
+ };
567
+ let PublisherProxy$1 = _PublisherProxy;
568
+ PublisherProxy$1.instances = /* @__PURE__ */ new Map();
569
+ PublisherProxy$1.instancesCounter = 0;
547
570
  const _PublisherManager = class {
548
571
  constructor() {
572
+ this.enabledLocaStorageProxies = [];
549
573
  this.publishers = /* @__PURE__ */ new Map();
574
+ this.localStorageData = {};
575
+ this.isLocalStrorageReady = null;
576
+ this.initialisedData = [];
550
577
  if (_PublisherManager.instance != null)
551
578
  throw "Singleton / use getInstance";
552
579
  _PublisherManager.instance = this;
580
+ this.isLocalStrorageReady = this.cleanStorageData();
581
+ }
582
+ async cleanStorageData() {
583
+ return new Promise((resolve) => {
584
+ const doiIt = async () => {
585
+ try {
586
+ let compressedData = localStorage.getItem("publisher-proxies-data");
587
+ let localStorageJSON = null;
588
+ if (compressedData)
589
+ localStorageJSON = await this.decompress(compressedData, "gzip");
590
+ if (localStorageJSON) {
591
+ try {
592
+ this.localStorageData = JSON.parse(localStorageJSON);
593
+ } catch (e2) {
594
+ this.localStorageData = {};
595
+ }
596
+ } else {
597
+ compressedData = await this.compress("{}", "gzip");
598
+ localStorage.setItem("publisher-proxies-data", compressedData);
599
+ this.localStorageData = {};
600
+ }
601
+ const expires = new Date().getTime() - 1e3 * 60 * 60 * 12;
602
+ for (const key in this.localStorageData) {
603
+ const item = this.localStorageData[key];
604
+ if (item.lastModifiationMS < expires) {
605
+ delete this.localStorageData[key];
606
+ }
607
+ }
608
+ resolve(true);
609
+ } catch (e2) {
610
+ window.requestAnimationFrame(() => {
611
+ resolve(false);
612
+ });
613
+ console.log("no publisher cache in this browser");
614
+ }
615
+ };
616
+ doiIt();
617
+ });
553
618
  }
554
619
  static getInstance() {
555
620
  if (_PublisherManager.instance == null)
556
621
  return new _PublisherManager();
557
622
  return _PublisherManager.instance;
558
623
  }
559
- static get(id) {
560
- return _PublisherManager.getInstance().get(id);
624
+ static get(id, options) {
625
+ return _PublisherManager.getInstance().get(id, options);
561
626
  }
562
627
  static delete(id) {
563
628
  return _PublisherManager.getInstance().delete(id);
564
629
  }
565
- get(id) {
566
- if (!this.publishers.has(id))
567
- this.publishers.set(id, new Publisher({}));
630
+ async setLocalData(publisher, id) {
631
+ var _a2;
632
+ await this.isLocalStrorageReady;
633
+ publisher.set(((_a2 = this.localStorageData[id + "\xA4page:>" + document.location.pathname]) == null ? void 0 : _a2.data) || publisher.get());
634
+ }
635
+ get(id, options) {
636
+ const hasLocalStorage = (options == null ? void 0 : options.localStorageMode) === "enabled";
637
+ if (!this.publishers.has(id)) {
638
+ const data = {};
639
+ const publisher2 = new Publisher(data);
640
+ this.set(id, publisher2);
641
+ }
642
+ const publisher = this.publishers.get(id);
643
+ if (hasLocalStorage && this.initialisedData.indexOf(id) === -1) {
644
+ publisher._is_savable_ = true;
645
+ this.initialisedData.push(id);
646
+ this.setLocalData(publisher, id);
647
+ }
568
648
  return this.publishers.get(id);
569
649
  }
570
650
  set(id, publisher) {
@@ -576,8 +656,75 @@ const _PublisherManager = class {
576
656
  this.publishers.delete(id);
577
657
  return true;
578
658
  }
659
+ async saveToLocalStorage(saveId = 0) {
660
+ if (saveId !== _PublisherManager.saveId && saveId % 10 != 0)
661
+ return;
662
+ try {
663
+ if (!_PublisherManager.changed || _PublisherManager.saving)
664
+ return;
665
+ _PublisherManager.saving = true;
666
+ _PublisherManager.changed = false;
667
+ const keys = Array.from(this.publishers.keys());
668
+ let hasChanged = false;
669
+ for (const key of keys) {
670
+ const publisher = this.publishers.get(key);
671
+ if (!(publisher == null ? void 0 : publisher._is_savable_))
672
+ continue;
673
+ const data = publisher == null ? void 0 : publisher.get();
674
+ if (!data)
675
+ continue;
676
+ this.localStorageData[key + "\xA4page:>" + document.location.pathname] = {
677
+ lastModifiationMS: new Date().getTime(),
678
+ data
679
+ };
680
+ hasChanged = true;
681
+ }
682
+ if (hasChanged) {
683
+ const compressedData = await this.compress(JSON.stringify(this.localStorageData), "gzip");
684
+ localStorage.setItem("publisher-proxies-data", compressedData);
685
+ }
686
+ _PublisherManager.saving = false;
687
+ if (_PublisherManager.changed) {
688
+ _PublisherManager.saveId++;
689
+ const saveId2 = _PublisherManager.saveId;
690
+ setTimeout(() => this.saveToLocalStorage(saveId2), 1e3);
691
+ }
692
+ } catch (e2) {
693
+ _PublisherManager.saving = false;
694
+ }
695
+ }
696
+ async compress(string, encoding) {
697
+ const byteArray = new TextEncoder().encode(string);
698
+ const win = window;
699
+ const cs = new win.CompressionStream(encoding);
700
+ const writer = cs.writable.getWriter();
701
+ writer.write(byteArray);
702
+ writer.close();
703
+ const result = await new Response(cs.readable).arrayBuffer();
704
+ const arrayBufferView = new Uint8Array(result);
705
+ let str = "";
706
+ for (let i2 = 0; i2 < arrayBufferView.length; i2++) {
707
+ str += String.fromCharCode(arrayBufferView[i2]);
708
+ }
709
+ return btoa(str);
710
+ }
711
+ async decompress(str, encoding) {
712
+ const decodedString = atob(str);
713
+ const arrayBufferViewFromLocalStorage = Uint8Array.from(decodedString, (c2) => c2.charCodeAt(0));
714
+ const byteArray = arrayBufferViewFromLocalStorage.buffer;
715
+ const win = window;
716
+ const cs = new win.DecompressionStream(encoding);
717
+ const writer = cs.writable.getWriter();
718
+ writer.write(byteArray);
719
+ writer.close();
720
+ const result = await new Response(cs.readable).arrayBuffer();
721
+ return new TextDecoder().decode(result);
722
+ }
579
723
  };
580
724
  let PublisherManager$1 = _PublisherManager;
725
+ PublisherManager$1.changed = false;
726
+ PublisherManager$1.saving = false;
727
+ PublisherManager$1.saveId = 0;
581
728
  PublisherManager$1.instance = null;
582
729
  class Publisher extends PublisherProxy$1 {
583
730
  constructor(target, parentProxPub = null) {
@@ -598,6 +745,7 @@ class Publisher extends PublisherProxy$1 {
598
745
  "offInternalMutation",
599
746
  "set",
600
747
  "get",
748
+ "$tag",
601
749
  "_templateFillListeners_",
602
750
  "_fillListeners_",
603
751
  "_assignListeners_",
@@ -613,7 +761,9 @@ class Publisher extends PublisherProxy$1 {
613
761
  "_proxies_",
614
762
  "parent",
615
763
  "_value_",
616
- "_lockInternalMutationPublishing_"
764
+ "_is_savable_",
765
+ "_lockInternalMutationPublishing_",
766
+ "_instanceCounter_"
617
767
  ].includes(sKey))
618
768
  return publisherInstance[sKey];
619
769
  if (!publisherInstance._proxies_.has(sKey)) {
@@ -630,6 +780,14 @@ class Publisher extends PublisherProxy$1 {
630
780
  publisherInstance._value_ = vValue;
631
781
  return true;
632
782
  }
783
+ if (sKey == "_is_savable_") {
784
+ publisherInstance._is_savable_ = vValue;
785
+ return true;
786
+ }
787
+ if (sKey == "_instanceCounter_") {
788
+ publisherInstance._instanceCounter_ = vValue;
789
+ return true;
790
+ }
633
791
  if (!publisherInstance._proxies_.has(sKey)) {
634
792
  const newPublisher = new Publisher({}, publisherInstance);
635
793
  newPublisher._proxies_.set("_parent_", thisProxy);
@@ -677,6 +835,26 @@ class Publisher extends PublisherProxy$1 {
677
835
  }
678
836
  if (typeof module != "undefined")
679
837
  module.exports = { Publisher, PublisherManager: PublisherManager$1 };
838
+ class PublisherWebComponent extends HTMLElement {
839
+ constructor() {
840
+ super();
841
+ this.publisherId = "";
842
+ this.onAssign = (value) => {
843
+ this.innerHTML = value.toString();
844
+ };
845
+ }
846
+ connectedCallback() {
847
+ var _a2;
848
+ this.publisherId = this.getAttribute("publisher") || "";
849
+ this.publisher = PublisherProxy$1.instances.get(parseInt(this.publisherId));
850
+ (_a2 = this.publisher) == null ? void 0 : _a2.onAssign(this.onAssign);
851
+ }
852
+ disconnectedCallback() {
853
+ var _a2;
854
+ (_a2 = this.publisher) == null ? void 0 : _a2.offAssign(this.onAssign);
855
+ }
856
+ }
857
+ customElements.define("reactive-publisher-proxy", PublisherWebComponent);
680
858
  const _DataBindObserver = class {
681
859
  static disable() {
682
860
  if (!this.enabled)
@@ -906,7 +1084,7 @@ function t$3(t2) {
906
1084
  * Copyright 2017 Google LLC
907
1085
  * SPDX-License-Identifier: BSD-3-Clause
908
1086
  */
909
- const o$9 = ({ finisher: e2, descriptor: t2 }) => (o2, n2) => {
1087
+ const o$a = ({ finisher: e2, descriptor: t2 }) => (o2, n2) => {
910
1088
  var r2;
911
1089
  if (void 0 === n2) {
912
1090
  const n3 = null !== (r2 = o2.originalKey) && void 0 !== r2 ? r2 : o2.key, i2 = null != t2 ? { kind: "method", placement: "prototype", key: n3, descriptor: t2(o2.key) } : { ...o2, key: n3 };
@@ -925,7 +1103,7 @@ const o$9 = ({ finisher: e2, descriptor: t2 }) => (o2, n2) => {
925
1103
  * SPDX-License-Identifier: BSD-3-Clause
926
1104
  */
927
1105
  function i$5(i2, n2) {
928
- return o$9({ descriptor: (o2) => {
1106
+ return o$a({ descriptor: (o2) => {
929
1107
  const t2 = { get() {
930
1108
  var o3, n3;
931
1109
  return null !== (n3 = null === (o3 = this.renderRoot) || void 0 === o3 ? void 0 : o3.querySelector(i2)) && void 0 !== n3 ? n3 : null;
@@ -949,7 +1127,7 @@ var n$6;
949
1127
  const e$6 = null != (null === (n$6 = window.HTMLSlotElement) || void 0 === n$6 ? void 0 : n$6.prototype.assignedElements) ? (o2, n2) => o2.assignedElements(n2) : (o2, n2) => o2.assignedNodes(n2).filter((o3) => o3.nodeType === Node.ELEMENT_NODE);
950
1128
  function l$6(n2) {
951
1129
  const { slot: l2, selector: t2 } = null != n2 ? n2 : {};
952
- return o$9({ descriptor: (o2) => ({ get() {
1130
+ return o$a({ descriptor: (o2) => ({ get() {
953
1131
  var o3;
954
1132
  const r2 = "slot" + (l2 ? `[name=${l2}]` : ":not([name])"), i2 = null === (o3 = this.renderRoot) || void 0 === o3 ? void 0 : o3.querySelector(r2), s2 = null != i2 ? e$6(i2, n2) : [];
955
1133
  return t2 ? s2.filter((o4) => o4.matches(t2)) : s2;
@@ -960,23 +1138,23 @@ function l$6(n2) {
960
1138
  * Copyright 2017 Google LLC
961
1139
  * SPDX-License-Identifier: BSD-3-Clause
962
1140
  */
963
- function o$8(o2, n2, r2) {
1141
+ function o$9(o2, n2, r2) {
964
1142
  let l2, s2 = o2;
965
- return "object" == typeof o2 ? (s2 = o2.slot, l2 = o2) : l2 = { flatten: n2 }, r2 ? l$6({ slot: s2, flatten: n2, selector: r2 }) : o$9({ descriptor: (e2) => ({ get() {
1143
+ return "object" == typeof o2 ? (s2 = o2.slot, l2 = o2) : l2 = { flatten: n2 }, r2 ? l$6({ slot: s2, flatten: n2, selector: r2 }) : o$a({ descriptor: (e2) => ({ get() {
966
1144
  var e3, t2;
967
1145
  const o3 = "slot" + (s2 ? `[name=${s2}]` : ":not([name])"), n3 = null === (e3 = this.renderRoot) || void 0 === e3 ? void 0 : e3.querySelector(o3);
968
1146
  return null !== (t2 = null == n3 ? void 0 : n3.assignedNodes(l2)) && void 0 !== t2 ? t2 : [];
969
1147
  }, enumerable: true, configurable: true }) });
970
1148
  }
971
- var __defProp$18 = Object.defineProperty;
972
- var __getOwnPropDesc$18 = Object.getOwnPropertyDescriptor;
973
- var __decorateClass$18 = (decorators, target, key, kind) => {
974
- var result = kind > 1 ? void 0 : kind ? __getOwnPropDesc$18(target, key) : target;
1149
+ var __defProp$17 = Object.defineProperty;
1150
+ var __getOwnPropDesc$17 = Object.getOwnPropertyDescriptor;
1151
+ var __decorateClass$17 = (decorators, target, key, kind) => {
1152
+ var result = kind > 1 ? void 0 : kind ? __getOwnPropDesc$17(target, key) : target;
975
1153
  for (var i2 = decorators.length - 1, decorator; i2 >= 0; i2--)
976
1154
  if (decorator = decorators[i2])
977
1155
  result = (kind ? decorator(target, key, result) : decorator(result)) || result;
978
1156
  if (kind && result)
979
- __defProp$18(target, key, result);
1157
+ __defProp$17(target, key, result);
980
1158
  return result;
981
1159
  };
982
1160
  let keepDebugOnMouseOut = false;
@@ -1035,18 +1213,22 @@ const Subscriber$1 = (superClass, type) => {
1035
1213
  this.style.removeProperty("display");
1036
1214
  }
1037
1215
  connectedCallback() {
1216
+ _SubscriberElement.instanceCounter++;
1038
1217
  if (this.hasAttribute("lazyRendering")) {
1039
1218
  const options = {
1040
1219
  root: null,
1041
- rootMargin: Math.max(window.innerWidth * 0.1, window.innerHeight * 0.1) + "px"
1220
+ rootMargin: Math.max(window.innerWidth, window.innerHeight) + "px"
1042
1221
  };
1043
1222
  let firstView = true;
1044
1223
  const iObserver = new IntersectionObserver((entries) => {
1045
1224
  for (const e2 of entries) {
1046
1225
  if (firstView && e2.isIntersecting) {
1226
+ this.addDebugger();
1047
1227
  firstView = false;
1048
1228
  this.initWording();
1049
1229
  this.initPublisher();
1230
+ iObserver.disconnect();
1231
+ break;
1050
1232
  }
1051
1233
  }
1052
1234
  }, options);
@@ -1054,10 +1236,9 @@ const Subscriber$1 = (superClass, type) => {
1054
1236
  } else {
1055
1237
  this.initWording();
1056
1238
  this.initPublisher();
1239
+ this.addDebugger();
1057
1240
  }
1058
- this.addDebugger();
1059
1241
  super.connectedCallback();
1060
- _SubscriberElement.instanceCounter++;
1061
1242
  }
1062
1243
  disconnectedCallback() {
1063
1244
  var _a2;
@@ -1147,7 +1328,8 @@ const Subscriber$1 = (superClass, type) => {
1147
1328
  password2 = this.getAncestorAttributeValue("password");
1148
1329
  }
1149
1330
  const credentials = this.getAncestorAttributeValue("credentials") || void 0;
1150
- return { serviceURL, token, userName, password: password2, authToken, tokenProvider, addHTTPResponse, credentials };
1331
+ const cache = this.getAttribute("cache") || void 0 || void 0;
1332
+ return { serviceURL, token, userName, password: password2, authToken, tokenProvider, addHTTPResponse, credentials, cache };
1151
1333
  }
1152
1334
  async initWording() {
1153
1335
  let hasWording = false;
@@ -1160,15 +1342,16 @@ const Subscriber$1 = (superClass, type) => {
1160
1342
  }
1161
1343
  if (!hasWording)
1162
1344
  return;
1163
- const publisher = PublisherManager$1.getInstance().get("sonic-wording");
1345
+ const publisher = PublisherManager$1.get("sonic-wording");
1164
1346
  const wordingProvider = this.getAncestorAttributeValue("wordingProvider");
1165
1347
  const api2 = new API(this.getApiConfiguration());
1166
1348
  if (wordingProvider) {
1167
1349
  const wordings = [];
1350
+ const publisherValue = publisher.get();
1168
1351
  for (const p2 of propNames) {
1169
1352
  if (p2.indexOf("wording_") == 0) {
1170
1353
  const p8 = p2.substring(8);
1171
- if (!publisher.get()[p2]) {
1354
+ if (!publisherValue[p2]) {
1172
1355
  publisher[p2] = "...";
1173
1356
  wordings.push(p8);
1174
1357
  }
@@ -1212,7 +1395,7 @@ const Subscriber$1 = (superClass, type) => {
1212
1395
  if (this.bindPublisher) {
1213
1396
  mng.set(publisherId, this.bindPublisher());
1214
1397
  }
1215
- let pub = mng.get(publisherId);
1398
+ let pub = mng.get(publisherId, { localStorageMode: this.getAttribute("localStorage") || "disabled" });
1216
1399
  this.dataProvider = publisherId;
1217
1400
  if (this.hasAttribute("subDataProvider")) {
1218
1401
  const dataPath = this.getAttribute("subDataProvider");
@@ -1237,43 +1420,43 @@ const Subscriber$1 = (superClass, type) => {
1237
1420
  };
1238
1421
  let SubscriberElement = _SubscriberElement;
1239
1422
  SubscriberElement.instanceCounter = 0;
1240
- __decorateClass$18([
1423
+ __decorateClass$17([
1241
1424
  e$7({ type: Boolean })
1242
1425
  ], SubscriberElement.prototype, "displayContents", 2);
1243
- __decorateClass$18([
1426
+ __decorateClass$17([
1244
1427
  e$7({ type: Boolean })
1245
1428
  ], SubscriberElement.prototype, "noAutoFill", 2);
1246
- __decorateClass$18([
1429
+ __decorateClass$17([
1247
1430
  e$7({ type: Boolean })
1248
1431
  ], SubscriberElement.prototype, "forceAutoFill", 2);
1249
- __decorateClass$18([
1432
+ __decorateClass$17([
1250
1433
  e$7({ type: Object })
1251
1434
  ], SubscriberElement.prototype, "propertyMap", 2);
1252
- __decorateClass$18([
1435
+ __decorateClass$17([
1253
1436
  e$7({ type: String, attribute: "data-title" })
1254
1437
  ], SubscriberElement.prototype, "title", 2);
1255
- __decorateClass$18([
1438
+ __decorateClass$17([
1256
1439
  e$7({ reflect: true })
1257
1440
  ], SubscriberElement.prototype, "dataProvider", 2);
1258
- __decorateClass$18([
1441
+ __decorateClass$17([
1259
1442
  e$7()
1260
1443
  ], SubscriberElement.prototype, "bindPublisher", 2);
1261
- __decorateClass$18([
1444
+ __decorateClass$17([
1262
1445
  e$7()
1263
1446
  ], SubscriberElement.prototype, "props", 1);
1264
1447
  return SubscriberElement;
1265
1448
  };
1266
1449
  if (!window.SonicPublisherManager)
1267
1450
  window.SonicPublisherManager = PublisherManager$1;
1268
- var __defProp$17 = Object.defineProperty;
1269
- var __getOwnPropDesc$17 = Object.getOwnPropertyDescriptor;
1270
- var __decorateClass$17 = (decorators, target, key, kind) => {
1271
- var result = kind > 1 ? void 0 : kind ? __getOwnPropDesc$17(target, key) : target;
1451
+ var __defProp$16 = Object.defineProperty;
1452
+ var __getOwnPropDesc$16 = Object.getOwnPropertyDescriptor;
1453
+ var __decorateClass$16 = (decorators, target, key, kind) => {
1454
+ var result = kind > 1 ? void 0 : kind ? __getOwnPropDesc$16(target, key) : target;
1272
1455
  for (var i2 = decorators.length - 1, decorator; i2 >= 0; i2--)
1273
1456
  if (decorator = decorators[i2])
1274
1457
  result = (kind ? decorator(target, key, result) : decorator(result)) || result;
1275
1458
  if (kind && result)
1276
- __defProp$17(target, key, result);
1459
+ __defProp$16(target, key, result);
1277
1460
  return result;
1278
1461
  };
1279
1462
  const TemplatesContainer$1 = (superClass) => {
@@ -1300,7 +1483,7 @@ const TemplatesContainer$1 = (superClass) => {
1300
1483
  super.connectedCallback();
1301
1484
  }
1302
1485
  }
1303
- __decorateClass$17([
1486
+ __decorateClass$16([
1304
1487
  e$7({ type: Array })
1305
1488
  ], TemplatesContainerElement.prototype, "templates", 2);
1306
1489
  return TemplatesContainerElement;
@@ -1311,7 +1494,7 @@ const TemplatesContainer$1 = (superClass) => {
1311
1494
  * SPDX-License-Identifier: BSD-3-Clause
1312
1495
  */
1313
1496
  const t$2 = window, e$5 = t$2.ShadowRoot && (void 0 === t$2.ShadyCSS || t$2.ShadyCSS.nativeShadow) && "adoptedStyleSheets" in Document.prototype && "replace" in CSSStyleSheet.prototype, s$6 = Symbol(), n$5 = /* @__PURE__ */ new WeakMap();
1314
- class o$7 {
1497
+ class o$8 {
1315
1498
  constructor(t2, e2, n2) {
1316
1499
  if (this._$cssResult$ = true, n2 !== s$6)
1317
1500
  throw Error("CSSResult is not constructable. Use `unsafeCSS` or `css` instead.");
@@ -1330,7 +1513,7 @@ class o$7 {
1330
1513
  return this.cssText;
1331
1514
  }
1332
1515
  }
1333
- const r$5 = (t2) => new o$7("string" == typeof t2 ? t2 : t2 + "", void 0, s$6), i$4 = (t2, ...e2) => {
1516
+ const r$5 = (t2) => new o$8("string" == typeof t2 ? t2 : t2 + "", void 0, s$6), i$4 = (t2, ...e2) => {
1334
1517
  const n2 = 1 === t2.length ? t2[0] : e2.reduce((e3, s2, n3) => e3 + ((t3) => {
1335
1518
  if (true === t3._$cssResult$)
1336
1519
  return t3.cssText;
@@ -1338,7 +1521,7 @@ const r$5 = (t2) => new o$7("string" == typeof t2 ? t2 : t2 + "", void 0, s$6),
1338
1521
  return t3;
1339
1522
  throw Error("Value passed to 'css' function must be a 'css' function result: " + t3 + ". Use 'unsafeCSS' to pass non-literal values, but take care to ensure page security.");
1340
1523
  })(s2) + t2[n3 + 1], t2[0]);
1341
- return new o$7(n2, t2, s$6);
1524
+ return new o$8(n2, t2, s$6);
1342
1525
  }, S$2 = (s2, n2) => {
1343
1526
  e$5 ? s2.adoptedStyleSheets = n2.map((t2) => t2 instanceof CSSStyleSheet ? t2 : t2.styleSheet) : n2.forEach((e2) => {
1344
1527
  const n3 = document.createElement("style"), o2 = t$2.litNonce;
@@ -1356,7 +1539,7 @@ const r$5 = (t2) => new o$7("string" == typeof t2 ? t2 : t2 + "", void 0, s$6),
1356
1539
  * SPDX-License-Identifier: BSD-3-Clause
1357
1540
  */
1358
1541
  var s$5;
1359
- const e$4 = window, r$4 = e$4.trustedTypes, h$3 = r$4 ? r$4.emptyScript : "", o$6 = e$4.reactiveElementPolyfillSupport, n$4 = { toAttribute(t2, i2) {
1542
+ const e$4 = window, r$4 = e$4.trustedTypes, h$3 = r$4 ? r$4.emptyScript : "", o$7 = e$4.reactiveElementPolyfillSupport, n$4 = { toAttribute(t2, i2) {
1360
1543
  switch (i2) {
1361
1544
  case Boolean:
1362
1545
  t2 = t2 ? h$3 : null;
@@ -1564,14 +1747,14 @@ class d$1 extends HTMLElement {
1564
1747
  firstUpdated(t2) {
1565
1748
  }
1566
1749
  }
1567
- d$1.finalized = true, d$1.elementProperties = /* @__PURE__ */ new Map(), d$1.elementStyles = [], d$1.shadowRootOptions = { mode: "open" }, null == o$6 || o$6({ ReactiveElement: d$1 }), (null !== (s$5 = e$4.reactiveElementVersions) && void 0 !== s$5 ? s$5 : e$4.reactiveElementVersions = []).push("1.6.1");
1750
+ d$1.finalized = true, d$1.elementProperties = /* @__PURE__ */ new Map(), d$1.elementStyles = [], d$1.shadowRootOptions = { mode: "open" }, null == o$7 || o$7({ ReactiveElement: d$1 }), (null !== (s$5 = e$4.reactiveElementVersions) && void 0 !== s$5 ? s$5 : e$4.reactiveElementVersions = []).push("1.6.1");
1568
1751
  /**
1569
1752
  * @license
1570
1753
  * Copyright 2017 Google LLC
1571
1754
  * SPDX-License-Identifier: BSD-3-Clause
1572
1755
  */
1573
1756
  var t$1;
1574
- const i$3 = window, s$4 = i$3.trustedTypes, e$3 = s$4 ? s$4.createPolicy("lit-html", { createHTML: (t2) => t2 }) : void 0, o$5 = `lit$${(Math.random() + "").slice(9)}$`, n$3 = "?" + o$5, l$4 = `<${n$3}>`, h$2 = document, r$3 = (t2 = "") => h$2.createComment(t2), d = (t2) => null === t2 || "object" != typeof t2 && "function" != typeof t2, u$2 = Array.isArray, c$3 = (t2) => u$2(t2) || "function" == typeof (null == t2 ? void 0 : t2[Symbol.iterator]), v = /<(?:(!--|\/[^a-zA-Z])|(\/?[a-zA-Z][^>\s]*)|(\/?$))/g, a$1 = /-->/g, f$2 = />/g, _ = RegExp(`>|[
1757
+ const i$3 = window, s$4 = i$3.trustedTypes, e$3 = s$4 ? s$4.createPolicy("lit-html", { createHTML: (t2) => t2 }) : void 0, o$6 = `lit$${(Math.random() + "").slice(9)}$`, n$3 = "?" + o$6, l$4 = `<${n$3}>`, h$2 = document, r$3 = (t2 = "") => h$2.createComment(t2), d = (t2) => null === t2 || "object" != typeof t2 && "function" != typeof t2, u$2 = Array.isArray, c$3 = (t2) => u$2(t2) || "function" == typeof (null == t2 ? void 0 : t2[Symbol.iterator]), v = /<(?:(!--|\/[^a-zA-Z])|(\/?[a-zA-Z][^>\s]*)|(\/?$))/g, a$1 = /-->/g, f$2 = />/g, _ = RegExp(`>|[
1575
1758
  \f\r](?:([^\\s"'>=/]+)([
1576
1759
  \f\r]*=[
1577
1760
  \f\r]*(?:[^
@@ -1584,7 +1767,7 @@ const i$3 = window, s$4 = i$3.trustedTypes, e$3 = s$4 ? s$4.createPolicy("lit-ht
1584
1767
  for (; g2 < s3.length && (d2.lastIndex = g2, u3 = d2.exec(s3), null !== u3); )
1585
1768
  g2 = d2.lastIndex, d2 === v ? "!--" === u3[1] ? d2 = a$1 : void 0 !== u3[1] ? d2 = f$2 : void 0 !== u3[2] ? ($$1.test(u3[2]) && (h2 = RegExp("</" + u3[2], "g")), d2 = _) : void 0 !== u3[3] && (d2 = _) : d2 === _ ? ">" === u3[0] ? (d2 = null != h2 ? h2 : v, c2 = -1) : void 0 === u3[1] ? c2 = -2 : (c2 = d2.lastIndex - u3[2].length, e2 = u3[1], d2 = void 0 === u3[3] ? _ : '"' === u3[3] ? p$2 : m$1) : d2 === p$2 || d2 === m$1 ? d2 = _ : d2 === a$1 || d2 === f$2 ? d2 = v : (d2 = _, h2 = void 0);
1586
1769
  const y2 = d2 === _ && t2[i3 + 1].startsWith("/>") ? " " : "";
1587
- r2 += d2 === v ? s3 + l$4 : c2 >= 0 ? (n2.push(e2), s3.slice(0, c2) + "$lit$" + s3.slice(c2) + o$5 + y2) : s3 + o$5 + (-2 === c2 ? (n2.push(void 0), i3) : y2);
1770
+ r2 += d2 === v ? s3 + l$4 : c2 >= 0 ? (n2.push(e2), s3.slice(0, c2) + "$lit$" + s3.slice(c2) + o$6 + y2) : s3 + o$6 + (-2 === c2 ? (n2.push(void 0), i3) : y2);
1588
1771
  }
1589
1772
  const u2 = r2 + (t2[s2] || "<?>") + (2 === i2 ? "</svg>" : "");
1590
1773
  if (!Array.isArray(t2) || !t2.hasOwnProperty("raw"))
@@ -1606,10 +1789,10 @@ class C {
1606
1789
  if (l2.hasAttributes()) {
1607
1790
  const t3 = [];
1608
1791
  for (const i3 of l2.getAttributeNames())
1609
- if (i3.endsWith("$lit$") || i3.startsWith(o$5)) {
1792
+ if (i3.endsWith("$lit$") || i3.startsWith(o$6)) {
1610
1793
  const s2 = a2[d2++];
1611
1794
  if (t3.push(i3), void 0 !== s2) {
1612
- const t4 = l2.getAttribute(s2.toLowerCase() + "$lit$").split(o$5), i4 = /([.?@])?(.*)/.exec(s2);
1795
+ const t4 = l2.getAttribute(s2.toLowerCase() + "$lit$").split(o$6), i4 = /([.?@])?(.*)/.exec(s2);
1613
1796
  c2.push({ type: 1, index: h2, name: i4[2], strings: t4, ctor: "." === i4[1] ? M : "?" === i4[1] ? k : "@" === i4[1] ? H : S$1 });
1614
1797
  } else
1615
1798
  c2.push({ type: 6, index: h2 });
@@ -1618,7 +1801,7 @@ class C {
1618
1801
  l2.removeAttribute(i3);
1619
1802
  }
1620
1803
  if ($$1.test(l2.tagName)) {
1621
- const t3 = l2.textContent.split(o$5), i3 = t3.length - 1;
1804
+ const t3 = l2.textContent.split(o$6), i3 = t3.length - 1;
1622
1805
  if (i3 > 0) {
1623
1806
  l2.textContent = s$4 ? s$4.emptyScript : "";
1624
1807
  for (let s2 = 0; s2 < i3; s2++)
@@ -1631,8 +1814,8 @@ class C {
1631
1814
  c2.push({ type: 2, index: h2 });
1632
1815
  else {
1633
1816
  let t3 = -1;
1634
- for (; -1 !== (t3 = l2.data.indexOf(o$5, t3 + 1)); )
1635
- c2.push({ type: 7, index: h2 }), t3 += o$5.length - 1;
1817
+ for (; -1 !== (t3 = l2.data.indexOf(o$6, t3 + 1)); )
1818
+ c2.push({ type: 7, index: h2 }), t3 += o$6.length - 1;
1636
1819
  }
1637
1820
  h2++;
1638
1821
  }
@@ -1817,7 +2000,7 @@ class I {
1817
2000
  P(this, t2);
1818
2001
  }
1819
2002
  }
1820
- const L = { P: "$lit$", A: o$5, M: n$3, C: 1, L: E, R: V, D: c$3, V: P, I: N, H: S$1, N: k, U: H, B: M, F: I }, z = i$3.litHtmlPolyfillSupport;
2003
+ const L = { P: "$lit$", A: o$6, M: n$3, C: 1, L: E, R: V, D: c$3, V: P, I: N, H: S$1, N: k, U: H, B: M, F: I }, z = i$3.litHtmlPolyfillSupport;
1821
2004
  null == z || z(C, N), (null !== (t$1 = i$3.litHtmlVersions) && void 0 !== t$1 ? t$1 : i$3.litHtmlVersions = []).push("2.6.1");
1822
2005
  const Z = (t2, i2, s2) => {
1823
2006
  var e2, o2;
@@ -1834,7 +2017,7 @@ const Z = (t2, i2, s2) => {
1834
2017
  * Copyright 2017 Google LLC
1835
2018
  * SPDX-License-Identifier: BSD-3-Clause
1836
2019
  */
1837
- var l$3, o$4;
2020
+ var l$3, o$5;
1838
2021
  class s$3 extends d$1 {
1839
2022
  constructor() {
1840
2023
  super(...arguments), this.renderOptions = { host: this }, this._$Do = void 0;
@@ -1863,19 +2046,19 @@ class s$3 extends d$1 {
1863
2046
  s$3.finalized = true, s$3._$litElement$ = true, null === (l$3 = globalThis.litElementHydrateSupport) || void 0 === l$3 || l$3.call(globalThis, { LitElement: s$3 });
1864
2047
  const n$2 = globalThis.litElementPolyfillSupport;
1865
2048
  null == n$2 || n$2({ LitElement: s$3 });
1866
- (null !== (o$4 = globalThis.litElementVersions) && void 0 !== o$4 ? o$4 : globalThis.litElementVersions = []).push("3.2.2");
1867
- var __defProp$16 = Object.defineProperty;
1868
- var __getOwnPropDesc$16 = Object.getOwnPropertyDescriptor;
1869
- var __decorateClass$16 = (decorators, target, key, kind) => {
1870
- var result = kind > 1 ? void 0 : kind ? __getOwnPropDesc$16(target, key) : target;
2049
+ (null !== (o$5 = globalThis.litElementVersions) && void 0 !== o$5 ? o$5 : globalThis.litElementVersions = []).push("3.2.2");
2050
+ var __defProp$15 = Object.defineProperty;
2051
+ var __getOwnPropDesc$15 = Object.getOwnPropertyDescriptor;
2052
+ var __decorateClass$15 = (decorators, target, key, kind) => {
2053
+ var result = kind > 1 ? void 0 : kind ? __getOwnPropDesc$15(target, key) : target;
1871
2054
  for (var i2 = decorators.length - 1, decorator; i2 >= 0; i2--)
1872
2055
  if (decorator = decorators[i2])
1873
2056
  result = (kind ? decorator(target, key, result) : decorator(result)) || result;
1874
2057
  if (kind && result)
1875
- __defProp$16(target, key, result);
2058
+ __defProp$15(target, key, result);
1876
2059
  return result;
1877
2060
  };
1878
- const tagName$$ = "sonic-date";
2061
+ const tagName$_ = "sonic-date";
1879
2062
  let SonicDate = class extends Subscriber$1(TemplatesContainer$1(s$3)) {
1880
2063
  constructor() {
1881
2064
  super(...arguments);
@@ -1935,9 +2118,6 @@ let SonicDate = class extends Subscriber$1(TemplatesContainer$1(s$3)) {
1935
2118
  options
1936
2119
  );
1937
2120
  parts = format.formatRangeToParts(start, end);
1938
- if (this.designMode) {
1939
- parts.forEach((part) => part.hidden = part.value.trim() == ",");
1940
- }
1941
2121
  if (!isSameDay) {
1942
2122
  const to = parts.find(
1943
2123
  (part) => part.type == "literal" && part.source == "shared" && part.value.trim().length > 0
@@ -1947,12 +2127,22 @@ let SonicDate = class extends Subscriber$1(TemplatesContainer$1(s$3)) {
1947
2127
  to.type = "to";
1948
2128
  }
1949
2129
  if (!this.designMode)
1950
- parts.unshift({ type: "from", value: this.duAu[0] + " ", source: "shared" });
2130
+ parts.unshift({
2131
+ type: "from",
2132
+ value: this.duAu[0] + " ",
2133
+ source: "shared"
2134
+ });
1951
2135
  }
1952
2136
  } else {
1953
- const format = new Intl.DateTimeFormat(this.language || this.pageLanguage, options);
2137
+ const format = new Intl.DateTimeFormat(
2138
+ this.language || this.pageLanguage,
2139
+ options
2140
+ );
1954
2141
  parts = format.formatToParts(start);
1955
2142
  }
2143
+ if (this.designMode) {
2144
+ parts.forEach((part) => part.hidden = part.value.trim() == ",");
2145
+ }
1956
2146
  parts[0].value = Format$1.ucFirst(parts[0].value);
1957
2147
  return parts.filter((p2) => p2.hidden !== true);
1958
2148
  }
@@ -2008,65 +2198,65 @@ let SonicDate = class extends Subscriber$1(TemplatesContainer$1(s$3)) {
2008
2198
  })}`;
2009
2199
  }
2010
2200
  };
2011
- __decorateClass$16([
2201
+ __decorateClass$15([
2012
2202
  e$7()
2013
2203
  ], SonicDate.prototype, "wording_billet_periode_validite", 1);
2014
- __decorateClass$16([
2204
+ __decorateClass$15([
2015
2205
  e$7({ type: Boolean })
2016
2206
  ], SonicDate.prototype, "designMode", 2);
2017
- __decorateClass$16([
2207
+ __decorateClass$15([
2018
2208
  e$7({ type: String })
2019
2209
  ], SonicDate.prototype, "time_zone", 2);
2020
- __decorateClass$16([
2210
+ __decorateClass$15([
2021
2211
  e$7({ type: Number })
2022
2212
  ], SonicDate.prototype, "date", 2);
2023
- __decorateClass$16([
2213
+ __decorateClass$15([
2024
2214
  e$7({ type: String })
2025
2215
  ], SonicDate.prototype, "date_string", 2);
2026
- __decorateClass$16([
2216
+ __decorateClass$15([
2027
2217
  e$7({ type: String })
2028
2218
  ], SonicDate.prototype, "start_date_string", 2);
2029
- __decorateClass$16([
2219
+ __decorateClass$15([
2030
2220
  e$7({ type: String })
2031
2221
  ], SonicDate.prototype, "end_date_string", 2);
2032
- __decorateClass$16([
2222
+ __decorateClass$15([
2033
2223
  e$7({ type: Number })
2034
2224
  ], SonicDate.prototype, "start_date", 2);
2035
- __decorateClass$16([
2225
+ __decorateClass$15([
2036
2226
  e$7({ type: Number })
2037
2227
  ], SonicDate.prototype, "end_date", 2);
2038
- __decorateClass$16([
2228
+ __decorateClass$15([
2039
2229
  e$7({ type: String })
2040
2230
  ], SonicDate.prototype, "era", 2);
2041
- __decorateClass$16([
2231
+ __decorateClass$15([
2042
2232
  e$7({ type: String })
2043
2233
  ], SonicDate.prototype, "year", 2);
2044
- __decorateClass$16([
2234
+ __decorateClass$15([
2045
2235
  e$7({ type: String })
2046
2236
  ], SonicDate.prototype, "month", 2);
2047
- __decorateClass$16([
2237
+ __decorateClass$15([
2048
2238
  e$7({ type: String })
2049
2239
  ], SonicDate.prototype, "day", 2);
2050
- __decorateClass$16([
2240
+ __decorateClass$15([
2051
2241
  e$7({ type: String })
2052
2242
  ], SonicDate.prototype, "weekday", 2);
2053
- __decorateClass$16([
2243
+ __decorateClass$15([
2054
2244
  e$7({ type: String })
2055
2245
  ], SonicDate.prototype, "hour", 2);
2056
- __decorateClass$16([
2246
+ __decorateClass$15([
2057
2247
  e$7({ type: String })
2058
2248
  ], SonicDate.prototype, "minute", 2);
2059
- __decorateClass$16([
2249
+ __decorateClass$15([
2060
2250
  e$7({ type: String })
2061
2251
  ], SonicDate.prototype, "language", 2);
2062
- __decorateClass$16([
2252
+ __decorateClass$15([
2063
2253
  e$7({ type: Boolean })
2064
2254
  ], SonicDate.prototype, "renderIf", 2);
2065
- __decorateClass$16([
2255
+ __decorateClass$15([
2066
2256
  e$7({ type: Boolean })
2067
2257
  ], SonicDate.prototype, "now", 2);
2068
- SonicDate = __decorateClass$16([
2069
- e$8(tagName$$)
2258
+ SonicDate = __decorateClass$15([
2259
+ e$8(tagName$_)
2070
2260
  ], SonicDate);
2071
2261
  const _LocationHandler = class {
2072
2262
  static listen() {
@@ -2074,7 +2264,10 @@ const _LocationHandler = class {
2074
2264
  if (!_LocationHandler.listening) {
2075
2265
  return;
2076
2266
  }
2077
- const newURL = (_a2 = document.location) == null ? void 0 : _a2.href.replace(document.location.origin, "");
2267
+ const newURL = (_a2 = document.location) == null ? void 0 : _a2.href.replace(
2268
+ document.location.origin,
2269
+ ""
2270
+ );
2078
2271
  if (_LocationHandler.prevURL && _LocationHandler.prevURL != newURL) {
2079
2272
  _LocationHandler.prevURL = newURL;
2080
2273
  _LocationHandler.listeners.forEach((listener) => {
@@ -2151,8 +2344,9 @@ const _LocationHandler = class {
2151
2344
  document.location.href = to;
2152
2345
  }
2153
2346
  static updateComponentActiveState(component) {
2154
- if (component.autoActive == "disabled")
2347
+ if (component.autoActive == "disabled") {
2155
2348
  return;
2349
+ }
2156
2350
  if (component.href && component.href.indexOf("http") != 0) {
2157
2351
  const url1 = new URL(component.href, document.location.href);
2158
2352
  const url2 = new URL(component.location || "", document.location.origin);
@@ -2171,7 +2365,10 @@ const _LocationHandler = class {
2171
2365
  let LocationHandler$1 = _LocationHandler;
2172
2366
  LocationHandler$1.listeners = [];
2173
2367
  LocationHandler$1.listening = false;
2174
- LocationHandler$1.prevURL = (_a = document.location) == null ? void 0 : _a.href.replace(document.location.origin, "");
2368
+ LocationHandler$1.prevURL = (_a = document.location) == null ? void 0 : _a.href.replace(
2369
+ document.location.origin,
2370
+ ""
2371
+ );
2175
2372
  /**
2176
2373
  * @license
2177
2374
  * Copyright 2017 Google LLC
@@ -2229,15 +2426,15 @@ const i$1 = e$2(class extends i$2 {
2229
2426
  return x$1;
2230
2427
  }
2231
2428
  });
2232
- var __defProp$15 = Object.defineProperty;
2233
- var __getOwnPropDesc$15 = Object.getOwnPropertyDescriptor;
2234
- var __decorateClass$15 = (decorators, target, key, kind) => {
2235
- var result = kind > 1 ? void 0 : kind ? __getOwnPropDesc$15(target, key) : target;
2429
+ var __defProp$14 = Object.defineProperty;
2430
+ var __getOwnPropDesc$14 = Object.getOwnPropertyDescriptor;
2431
+ var __decorateClass$14 = (decorators, target, key, kind) => {
2432
+ var result = kind > 1 ? void 0 : kind ? __getOwnPropDesc$14(target, key) : target;
2236
2433
  for (var i2 = decorators.length - 1, decorator; i2 >= 0; i2--)
2237
2434
  if (decorator = decorators[i2])
2238
2435
  result = (kind ? decorator(target, key, result) : decorator(result)) || result;
2239
2436
  if (kind && result)
2240
- __defProp$15(target, key, result);
2437
+ __defProp$14(target, key, result);
2241
2438
  return result;
2242
2439
  };
2243
2440
  const keyboardLoops = /* @__PURE__ */ new Map();
@@ -2423,34 +2620,34 @@ const Form$2 = (superClass) => {
2423
2620
  }
2424
2621
  }
2425
2622
  }
2426
- __decorateClass$15([
2623
+ __decorateClass$14([
2427
2624
  e$7({ type: Boolean, reflect: true })
2428
2625
  ], FormElement2.prototype, "touched", 2);
2429
- __decorateClass$15([
2626
+ __decorateClass$14([
2430
2627
  e$7({ type: Boolean })
2431
2628
  ], FormElement2.prototype, "error", 2);
2432
- __decorateClass$15([
2629
+ __decorateClass$14([
2433
2630
  e$7({ type: Boolean })
2434
2631
  ], FormElement2.prototype, "autofocus", 2);
2435
- __decorateClass$15([
2632
+ __decorateClass$14([
2436
2633
  e$7({ type: Boolean })
2437
2634
  ], FormElement2.prototype, "required", 2);
2438
- __decorateClass$15([
2635
+ __decorateClass$14([
2439
2636
  e$7()
2440
2637
  ], FormElement2.prototype, "forceAutoFill", 2);
2441
- __decorateClass$15([
2638
+ __decorateClass$14([
2442
2639
  e$7({ type: Boolean })
2443
2640
  ], FormElement2.prototype, "disabled", 2);
2444
- __decorateClass$15([
2641
+ __decorateClass$14([
2445
2642
  e$7({ type: String, attribute: "data-aria-label" })
2446
2643
  ], FormElement2.prototype, "ariaLabel", 2);
2447
- __decorateClass$15([
2644
+ __decorateClass$14([
2448
2645
  e$7({ type: String, attribute: "data-aria-labelledby" })
2449
2646
  ], FormElement2.prototype, "ariaLabelledby", 2);
2450
- __decorateClass$15([
2647
+ __decorateClass$14([
2451
2648
  e$7()
2452
2649
  ], FormElement2.prototype, "name", 1);
2453
- __decorateClass$15([
2650
+ __decorateClass$14([
2454
2651
  e$7()
2455
2652
  ], FormElement2.prototype, "value", 1);
2456
2653
  return FormElement2;
@@ -2498,7 +2695,9 @@ class Arrays$1 {
2498
2695
  if (source.length < 1)
2499
2696
  return true;
2500
2697
  const first = (source[0] || {})[key];
2501
- return source.every((item) => (item || {})[key] == first);
2698
+ return source.every(
2699
+ (item) => (item || {})[key] == first
2700
+ );
2502
2701
  }
2503
2702
  };
2504
2703
  }
@@ -2560,7 +2759,9 @@ class Arrays$1 {
2560
2759
  forKey: (key) => {
2561
2760
  const set = [...new Set(source.map((item) => item[key]))];
2562
2761
  return Arrays$1.from(
2563
- set.map((value) => source.find((item) => item[key] == value))
2762
+ set.map(
2763
+ (value) => source.find((item) => item[key] == value)
2764
+ )
2564
2765
  );
2565
2766
  }
2566
2767
  };
@@ -2572,7 +2773,11 @@ class Arrays$1 {
2572
2773
  forKey: (key) => {
2573
2774
  const areValuesDifferentForKey = (compared1, key2) => (compared2) => compared1[key2] != compared2[key2];
2574
2775
  return Arrays$1.from(
2575
- source.filter((elt) => toRemoveFromSource.every(areValuesDifferentForKey(elt, key)))
2776
+ source.filter(
2777
+ (elt) => toRemoveFromSource.every(
2778
+ areValuesDifferentForKey(elt, key)
2779
+ )
2780
+ )
2576
2781
  );
2577
2782
  }
2578
2783
  };
@@ -2607,15 +2812,15 @@ window["concorde-utils"] = {
2607
2812
  PublisherManager,
2608
2813
  api
2609
2814
  };
2610
- var __defProp$14 = Object.defineProperty;
2611
- var __getOwnPropDesc$14 = Object.getOwnPropertyDescriptor;
2612
- var __decorateClass$14 = (decorators, target, key, kind) => {
2613
- var result = kind > 1 ? void 0 : kind ? __getOwnPropDesc$14(target, key) : target;
2815
+ var __defProp$13 = Object.defineProperty;
2816
+ var __getOwnPropDesc$13 = Object.getOwnPropertyDescriptor;
2817
+ var __decorateClass$13 = (decorators, target, key, kind) => {
2818
+ var result = kind > 1 ? void 0 : kind ? __getOwnPropDesc$13(target, key) : target;
2614
2819
  for (var i2 = decorators.length - 1, decorator; i2 >= 0; i2--)
2615
2820
  if (decorator = decorators[i2])
2616
2821
  result = (kind ? decorator(target, key, result) : decorator(result)) || result;
2617
2822
  if (kind && result)
2618
- __defProp$14(target, key, result);
2823
+ __defProp$13(target, key, result);
2619
2824
  return result;
2620
2825
  };
2621
2826
  const Form$1 = (superClass) => {
@@ -2856,22 +3061,22 @@ const Form$1 = (superClass) => {
2856
3061
  }
2857
3062
  }
2858
3063
  }
2859
- __decorateClass$14([
3064
+ __decorateClass$13([
2860
3065
  e$7()
2861
3066
  ], FormCheckable2.prototype, "value", 1);
2862
- __decorateClass$14([
3067
+ __decorateClass$13([
2863
3068
  e$7()
2864
3069
  ], FormCheckable2.prototype, "forceAutoFill", 2);
2865
- __decorateClass$14([
3070
+ __decorateClass$13([
2866
3071
  e$7({ type: Boolean })
2867
3072
  ], FormCheckable2.prototype, "unique", 2);
2868
- __decorateClass$14([
3073
+ __decorateClass$13([
2869
3074
  e$7({ type: Boolean })
2870
3075
  ], FormCheckable2.prototype, "radio", 2);
2871
- __decorateClass$14([
3076
+ __decorateClass$13([
2872
3077
  e$7({ type: Boolean })
2873
3078
  ], FormCheckable2.prototype, "unCheckOnDisconnect", 2);
2874
- __decorateClass$14([
3079
+ __decorateClass$13([
2875
3080
  e$7()
2876
3081
  ], FormCheckable2.prototype, "checked", 1);
2877
3082
  return FormCheckable2;
@@ -2883,18 +3088,18 @@ const Form$1 = (superClass) => {
2883
3088
  */
2884
3089
  const l$2 = (l2) => null != l2 ? l2 : b$1;
2885
3090
  const fontSize = i$4`:host{--sc-fs:1rem;--sc-lh:1.2;font-size:var(--sc-fs);line-height:var(--sc-lh)}:host([size="2xs"]){--sc-fs:0.625rem}:host([size=xs]){--sc-fs:0.75rem}:host([size=sm]){--sc-fs:0.875rem}:host([size=lg]){--sc-fs:1.125rem}:host([size=xl]){--sc-fs:1.25rem}:host([size="2xl"]){--sc-fs:1.5rem}`;
2886
- var __defProp$13 = Object.defineProperty;
2887
- var __getOwnPropDesc$13 = Object.getOwnPropertyDescriptor;
2888
- var __decorateClass$13 = (decorators, target, key, kind) => {
2889
- var result = kind > 1 ? void 0 : kind ? __getOwnPropDesc$13(target, key) : target;
3091
+ var __defProp$12 = Object.defineProperty;
3092
+ var __getOwnPropDesc$12 = Object.getOwnPropertyDescriptor;
3093
+ var __decorateClass$12 = (decorators, target, key, kind) => {
3094
+ var result = kind > 1 ? void 0 : kind ? __getOwnPropDesc$12(target, key) : target;
2890
3095
  for (var i2 = decorators.length - 1, decorator; i2 >= 0; i2--)
2891
3096
  if (decorator = decorators[i2])
2892
3097
  result = (kind ? decorator(target, key, result) : decorator(result)) || result;
2893
3098
  if (kind && result)
2894
- __defProp$13(target, key, result);
3099
+ __defProp$12(target, key, result);
2895
3100
  return result;
2896
3101
  };
2897
- const tagName$_ = "sonic-button";
3102
+ const tagName$Z = "sonic-button";
2898
3103
  let Button = class extends Form$1(Form$2(Subscriber$1(s$3))) {
2899
3104
  constructor() {
2900
3105
  super(...arguments);
@@ -2920,7 +3125,6 @@ let Button = class extends Form$1(Form$2(Subscriber$1(s$3))) {
2920
3125
  this._href = value;
2921
3126
  if (this.href && this.href.indexOf("http") != 0) {
2922
3127
  LocationHandler$1.onChange(this);
2923
- this.location = document.location.href.replace(document.location.origin, "");
2924
3128
  } else
2925
3129
  LocationHandler$1.offChange(this);
2926
3130
  this.requestUpdate();
@@ -2969,7 +3173,12 @@ let Button = class extends Form$1(Form$2(Subscriber$1(s$3))) {
2969
3173
  }
2970
3174
  set location(value) {
2971
3175
  this._location = value;
2972
- LocationHandler$1.updateComponentActiveState(this);
3176
+ this.requestUpdate();
3177
+ }
3178
+ updated(changedProperties) {
3179
+ if (changedProperties.has("location") || changedProperties.has("href") || changedProperties.has("autoActive")) {
3180
+ LocationHandler$1.updateComponentActiveState(this);
3181
+ }
2973
3182
  }
2974
3183
  render() {
2975
3184
  const btnStyles = {
@@ -2990,88 +3199,91 @@ let Button = class extends Form$1(Form$2(Subscriber$1(s$3))) {
2990
3199
  };
2991
3200
  Button.styles = [
2992
3201
  fontSize,
2993
- i$4`*{box-sizing:border-box}:host{--sc-btn-gap:0.35em;--sc-btn-py:0.25em;--sc-btn-px:1.1em;--sc-btn-fs:var(--sc-fs, 1rem);--sc-btn-fw:var(--sc-btn-font-weight);--sc-btn-ff:var(--sc-btn-font-family);--sc-btn-height:var(--sc-form-height);--btn-color:var(--sc-btn-color, var(--sc-base-content));--btn-bg:var(--sc-btn-bg, var(--sc-base-100));--sc-btn-border-style:solid;--sc-btn-border-width:var(--sc-form-border-width);--sc-btn-border-color:transparent;--btn-outline-bg-hover:var(--sc-btn-outline-bg-hover, var(--sc-base-100));--sc-btn-ghost-bg-hover:var(--sc-base-100);--sc-btn-active-color:var(--sc-base);--sc-btn-hover-filter:brightness(0.98);--sc-btn-active-filter:brightness(0.97);--sc-btn-active-bg:var(--sc-base-content);--sc-item-rounded-tr:var(--sc-btn-rounded);--sc-item-rounded-tl:var(--sc-btn-rounded);--sc-item-rounded-bl:var(--sc-btn-rounded);--sc-item-rounded-br:var(--sc-btn-rounded);display:inline-flex;vertical-align:middle;box-sizing:border-box;-webkit-print-color-adjust:exact}:host a{display:contents;color:unset}:host button{display:flex;flex:1;box-sizing:border-box;align-items:center;justify-content:center;font-family:var(--sc-btn-ff);font-weight:var(--sc-btn-fw);font-size:var(--sc-btn-fs);cursor:pointer;text-align:center;line-height:1.1;border-radius:var(--sc-item-rounded-tl) var(--sc-item-rounded-tr) var(--sc-item-rounded-br) var(--sc-item-rounded-bl);background:var(--btn-bg);color:var(--btn-color);padding-top:var(--sc-btn-py);padding-bottom:var(--sc-btn-py);padding-left:var(--sc-btn-px);padding-right:var(--sc-btn-px);border:var(--sc-btn-border-width) var(--sc-btn-border-style) var(--sc-btn-border-color);min-height:var(--sc-btn-height)}:host button.has-prefix-or-suffix{gap:var(--sc-btn-gap)}:host button:focus,:host button:hover{filter:var(--sc-btn-hover-filter)}:host button:active{filter:var(--sc-btn-active-filter)}:host([type=default]) button{--btn-color:var(--sc-base-content);--btn-bg:var(--sc-base-100)}:host([type=primary]) button{--btn-color:var(--sc-primary-content);--btn-bg:var(--sc-primary)}:host([type=warning]) button{--btn-color:var(--sc-warning-content);--btn-bg:var(--sc-warning)}:host([type=danger]) button{--btn-color:var(--sc-danger-content);--btn-bg:var(--sc-danger)}:host([type=info]) button{--btn-color:var(--sc-info-content);--btn-bg:var(--sc-info)}:host([type=success]) button{--btn-color:var(--sc-success-content);--btn-bg:var(--sc-success)}:host([type=neutral]) button{--btn-color:var(--sc-base);--btn-bg:var(--sc-base-600)}:host([type=custom]) button{--btn-color:var(--sc-btn-custom-color);--btn-bg:var(--sc-btn-custom-bg)}:host([variant=unstyled]){display:inline-block}:host([variant=unstyled]) button{all:unset;display:contents;cursor:pointer;--sc-btn-height:auto;--sc-btn-width:auto}:host(:not([disabled])) button:focus{box-shadow:0 0 0 .18rem var(--sc-base-300);border-color:var(--sc-base-300)!important;outline:0}:host([variant=ghost][type]) button{color:var(--btn-bg);background:0 0}:host([variant=ghost][type=default]) button{color:var(--btn-color);background:0 0}:host([variant=ghost]) button:hover{background:var(--sc-btn-ghost-bg-hover);filter:none}:host([active][variant=ghost]) button{background:var(--sc-btn-ghost-bg-hover);filter:none}:host([active][variant=ghost]) button:hover{filter:var(--sc-btn-hover-filter)}:host([variant=outline][type]) button{border-color:var(--btn-bg);color:var(--btn-bg);background:0 0}:host([variant=outline][type=default]) button{border-color:var(--sc-base-400);color:var(--sc-base-500);background:0 0}:host([variant=outline]) button:hover{background:var(--btn-outline-bg-hover)}:host([variant=link]:not([size])){vertical-align:baseline;margin-left:.25em;margin-right:.25em}:host([variant=link]:not([size])){font-size:inherit}:host([variant=link]) button{text-decoration:underline;padding:0;background:0 0;border:none;font-size:inherit;min-height:0;color:inherit}:host([variant=link][type]) button{color:var(--btn-bg)}:host([variant=link][type=default]) button{color:inherit}:host([variant=link]) button:focus,:host([variant=link]) button:hover{text-decoration:none}:host([shape=circle]) button{border-radius:50%}:host([shape=circle]) button,:host([shape=square]) button{width:var(--sc-btn-height);height:var(--sc-btn-height);padding:0;align-items:center;justify-content:0;text-align:center!important}:host([shape=block]),:host([shape=block]) button{width:100%}:host([disabled]){opacity:.3;pointer-events:none;user-select:none}:host([active]:not([variant=ghost]):not([variant=unstyled])) button{background:var(--sc-btn-active-bg);color:var(--sc-btn-active-color);border-color:var(--sc-btn-active-bg)}:host([align=left]) button{text-align:left}:host([align=right]) button{text-align:right}.main-slot{flex-grow:1;display:block}:host([minWidth]) .main-slot{flex-grow:0}slot[name=prefix],slot[name=suffix]{flex-shrink:0}::slotted(sonic-icon){min-width:1em;text-align:center}:host([icon]) ::slotted(sonic-icon){font-size:1.2em}sonic-tooltip{display:contents}:host(:not([active])) ::slotted([swap=on]){display:none!important}:host([active]) ::slotted([swap=off]){display:none!important}:host([loading]){pointer-events:none;position:relative}:host([loading]) slot{opacity:0!important;pointer-events:none}:host([loading]) .loader{position:absolute;top:50%;left:50%;transform:translate(-50%,-50%);display:flex;align-items:center;justify-content:center;line-height:0;height:var(--sc-btn-ff);width:var(--sc-btn-ff);animation:rotation 2s infinite linear}@keyframes rotation{from{transform-origin:50% 50%;transform:translate(-50%,-50%) rotate(0)}to{transform-origin:50% 50%;transform:translate(-50%,-50%) rotate(359deg)}}`
3202
+ i$4`*{box-sizing:border-box}:host{--sc-btn-gap:0.35em;--sc-btn-py:0.25em;--sc-btn-px:1.1em;--sc-btn-fs:var(--sc-fs, 1rem);--sc-btn-fw:var(--sc-btn-font-weight);--sc-btn-ff:var(--sc-btn-font-family);--sc-btn-height:var(--sc-form-height);--btn-color:var(--sc-btn-color, var(--sc-base-content));--btn-bg:var(--sc-btn-bg, var(--sc-base-100));--sc-btn-border-style:solid;--sc-btn-border-width:var(--sc-form-border-width);--sc-btn-border-color:transparent;--btn-outline-bg-hover:var(
3203
+ --sc-btn-outline-bg-hover,
3204
+ var(--sc-base-100)
3205
+ );--sc-btn-ghost-bg-hover:var(--sc-base-100);--sc-btn-active-color:var(--sc-base);--sc-btn-hover-filter:brightness(0.98);--sc-btn-active-filter:brightness(0.97);--sc-btn-active-bg:var(--sc-base-content);--sc-item-rounded-tr:var(--sc-btn-rounded);--sc-item-rounded-tl:var(--sc-btn-rounded);--sc-item-rounded-bl:var(--sc-btn-rounded);--sc-item-rounded-br:var(--sc-btn-rounded);display:inline-flex;vertical-align:middle;box-sizing:border-box;-webkit-print-color-adjust:exact}:host a{display:contents;color:unset}:host button{display:flex;flex:1;box-sizing:border-box;align-items:center;justify-content:center;font-family:var(--sc-btn-ff);font-weight:var(--sc-btn-fw);font-size:var(--sc-btn-fs);cursor:pointer;text-align:center;line-height:1.1;border-radius:var(--sc-item-rounded-tl) var(--sc-item-rounded-tr) var(--sc-item-rounded-br) var(--sc-item-rounded-bl);background:var(--btn-bg);color:var(--btn-color);padding-top:var(--sc-btn-py);padding-bottom:var(--sc-btn-py);padding-left:var(--sc-btn-px);padding-right:var(--sc-btn-px);border:var(--sc-btn-border-width) var(--sc-btn-border-style) var(--sc-btn-border-color);min-height:var(--sc-btn-height)}:host button.has-prefix-or-suffix{gap:var(--sc-btn-gap)}:host button:focus,:host button:hover{filter:var(--sc-btn-hover-filter)}:host button:active{filter:var(--sc-btn-active-filter)}:host([type=default]) button{--btn-color:var(--sc-base-content);--btn-bg:var(--sc-base-100)}:host([type=primary]) button{--btn-color:var(--sc-primary-content);--btn-bg:var(--sc-primary)}:host([type=warning]) button{--btn-color:var(--sc-warning-content);--btn-bg:var(--sc-warning)}:host([type=danger]) button{--btn-color:var(--sc-danger-content);--btn-bg:var(--sc-danger)}:host([type=info]) button{--btn-color:var(--sc-info-content);--btn-bg:var(--sc-info)}:host([type=success]) button{--btn-color:var(--sc-success-content);--btn-bg:var(--sc-success)}:host([type=neutral]) button{--btn-color:var(--sc-base);--btn-bg:var(--sc-base-600)}:host([type=custom]) button{--btn-color:var(--sc-btn-custom-color);--btn-bg:var(--sc-btn-custom-bg)}:host([variant=unstyled]){display:inline-block}:host([variant=unstyled]) button{all:unset;display:contents;cursor:pointer;--sc-btn-height:auto;--sc-btn-width:auto}:host(:not([disabled])) button:focus{box-shadow:0 0 0 .18rem var(--sc-base-300);border-color:var(--sc-base-300)!important;outline:0}:host([variant=ghost][type]) button{color:var(--btn-bg);background:0 0}:host([variant=ghost][type=default]) button{color:var(--btn-color);background:0 0}:host([variant=ghost]) button:hover{background:var(--sc-btn-ghost-bg-hover);filter:none}:host([active][variant=ghost]) button{background:var(--sc-btn-ghost-bg-hover);filter:none}:host([active][variant=ghost]) button:hover{filter:var(--sc-btn-hover-filter)}:host([variant=outline][type]) button{border-color:var(--btn-bg);color:var(--btn-bg);background:0 0}:host([variant=outline][type=default]) button{border-color:var(--sc-base-400);color:var(--sc-base-500);background:0 0}:host([variant=outline]) button:hover{background:var(--btn-outline-bg-hover)}:host([variant=link]:not([size])){vertical-align:baseline;margin-left:.25em;margin-right:.25em}:host([variant=link]:not([size])){font-size:inherit}:host([variant=link]) button{text-decoration:underline;padding:0;background:0 0;border:none;font-size:inherit;min-height:0;color:inherit}:host([variant=link][type]) button{color:var(--btn-bg)}:host([variant=link][type=default]) button{color:inherit}:host([variant=link]) button:focus,:host([variant=link]) button:hover{text-decoration:none}:host([shape=circle]) button{border-radius:50%}:host([shape=circle]) button,:host([shape=square]) button{width:var(--sc-btn-height);height:var(--sc-btn-height);padding:0;align-items:center;justify-content:0;text-align:center!important}:host([shape=block]),:host([shape=block]) button{width:100%}:host([disabled]){opacity:.3;pointer-events:none;user-select:none}:host([active]:not([variant=ghost]):not([variant=unstyled])) button{background:var(--sc-btn-active-bg);color:var(--sc-btn-active-color);border-color:var(--sc-btn-active-bg)}:host([align=left]) button{text-align:left}:host([align=right]) button{text-align:right}.main-slot{flex-grow:1;display:block}:host([minWidth]) .main-slot{flex-grow:0}slot[name=prefix],slot[name=suffix]{flex-shrink:0}::slotted(sonic-icon){min-width:1em;text-align:center}:host([icon]) ::slotted(sonic-icon){font-size:1.2em;vertical-align:middle}sonic-tooltip{display:contents}:host(:not([active])) ::slotted([swap=on]){display:none!important}:host([active]) ::slotted([swap=off]){display:none!important}:host([loading]){pointer-events:none;position:relative}:host([loading]) slot{opacity:0!important;pointer-events:none}:host([loading]) .loader{position:absolute;top:50%;left:50%;transform:translate(-50%,-50%);display:flex;align-items:center;justify-content:center;line-height:0;height:var(--sc-btn-ff);width:var(--sc-btn-ff);animation:rotation 2s infinite linear}@keyframes rotation{from{transform-origin:50% 50%;transform:translate(-50%,-50%) rotate(0)}to{transform-origin:50% 50%;transform:translate(-50%,-50%) rotate(359deg)}}`
2994
3206
  ];
2995
- __decorateClass$13([
3207
+ __decorateClass$12([
2996
3208
  e$7({ type: String, reflect: true })
2997
3209
  ], Button.prototype, "type", 2);
2998
- __decorateClass$13([
3210
+ __decorateClass$12([
2999
3211
  e$7({ type: String, reflect: true })
3000
3212
  ], Button.prototype, "variant", 2);
3001
- __decorateClass$13([
3213
+ __decorateClass$12([
3002
3214
  e$7({ type: String, reflect: true })
3003
3215
  ], Button.prototype, "size", 2);
3004
- __decorateClass$13([
3216
+ __decorateClass$12([
3005
3217
  e$7({ type: String, reflect: true })
3006
3218
  ], Button.prototype, "shape", 2);
3007
- __decorateClass$13([
3219
+ __decorateClass$12([
3008
3220
  e$7({ type: String })
3009
3221
  ], Button.prototype, "direction", 2);
3010
- __decorateClass$13([
3222
+ __decorateClass$12([
3011
3223
  e$7({ type: String, reflect: true })
3012
3224
  ], Button.prototype, "alignItems", 2);
3013
- __decorateClass$13([
3225
+ __decorateClass$12([
3014
3226
  e$7({ type: String })
3015
3227
  ], Button.prototype, "justify", 2);
3016
- __decorateClass$13([
3228
+ __decorateClass$12([
3017
3229
  e$7({ type: String, reflect: true })
3018
3230
  ], Button.prototype, "align", 2);
3019
- __decorateClass$13([
3231
+ __decorateClass$12([
3020
3232
  e$7({ type: String })
3021
3233
  ], Button.prototype, "minWidth", 2);
3022
- __decorateClass$13([
3234
+ __decorateClass$12([
3023
3235
  e$7({ type: Boolean, reflect: true })
3024
3236
  ], Button.prototype, "icon", 2);
3025
- __decorateClass$13([
3237
+ __decorateClass$12([
3026
3238
  e$7({ type: String })
3027
3239
  ], Button.prototype, "autoActive", 2);
3028
- __decorateClass$13([
3240
+ __decorateClass$12([
3029
3241
  e$7({ type: Boolean, reflect: true })
3030
3242
  ], Button.prototype, "loading", 2);
3031
- __decorateClass$13([
3243
+ __decorateClass$12([
3032
3244
  t$3()
3033
3245
  ], Button.prototype, "hasPrefix", 2);
3034
- __decorateClass$13([
3246
+ __decorateClass$12([
3035
3247
  t$3()
3036
3248
  ], Button.prototype, "hasSuffix", 2);
3037
- __decorateClass$13([
3249
+ __decorateClass$12([
3038
3250
  l$6({ flatten: true, slot: "prefix" })
3039
3251
  ], Button.prototype, "prefixes", 2);
3040
- __decorateClass$13([
3252
+ __decorateClass$12([
3041
3253
  l$6({ flatten: true, slot: "suffix" })
3042
3254
  ], Button.prototype, "suffixes", 2);
3043
- __decorateClass$13([
3255
+ __decorateClass$12([
3044
3256
  e$7({ type: String })
3045
3257
  ], Button.prototype, "target", 2);
3046
- __decorateClass$13([
3258
+ __decorateClass$12([
3047
3259
  e$7({ type: String })
3048
3260
  ], Button.prototype, "href", 1);
3049
- __decorateClass$13([
3261
+ __decorateClass$12([
3050
3262
  e$7({ type: String })
3051
3263
  ], Button.prototype, "goBack", 2);
3052
- __decorateClass$13([
3264
+ __decorateClass$12([
3053
3265
  e$7({ type: Boolean })
3054
3266
  ], Button.prototype, "pushState", 2);
3055
- __decorateClass$13([
3267
+ __decorateClass$12([
3056
3268
  e$7({ type: Boolean, reflect: true })
3057
3269
  ], Button.prototype, "active", 2);
3058
- Button = __decorateClass$13([
3059
- e$8(tagName$_)
3270
+ Button = __decorateClass$12([
3271
+ e$8(tagName$Z)
3060
3272
  ], Button);
3061
3273
  const inline = i$4`:host([align=left]) .sonic-loader--inline{margin-left:0}:host([align=right]) .sonic-loader--inline{margin-left:auto;margin-right:0}.sonic-loader--inline{display:block;position:relative;width:80px;height:80px;margin:auto;z-index:20}.sonic-loader--inline div{position:absolute;top:33px;width:13px;height:13px;border-radius:50%;background:var(--sc-loader-bg);animation-timing-function:cubic-bezier(0,1,1,0)}.sonic-loader--inline div:nth-child(1){left:8px;animation:lds-ellipsis1 .6s infinite}.sonic-loader--inline div:nth-child(2){left:8px;animation:lds-ellipsis2 .6s infinite}.sonic-loader--inline div:nth-child(3){left:32px;animation:lds-ellipsis2 .6s infinite}.sonic-loader--inline div:nth-child(4){left:56px;animation:lds-ellipsis3 .6s infinite}@keyframes lds-ellipsis1{0%{transform:scale(0)}100%{transform:scale(1)}}@keyframes lds-ellipsis3{0%{transform:scale(1)}100%{transform:scale(0)}}@keyframes lds-ellipsis2{0%{transform:translate(0,0)}100%{transform:translate(24px,0)}}`;
3062
3274
  const fixed = i$4`@keyframes sonic-loader--fixed{0%{transform:scale(0);opacity:0}5%{opacity:1}70%{opacity:90%}100%{transform:scale(1);opacity:0}}.sonic-loader--fixed{position:fixed;top:50%;left:50%;transform:transateY(-50%) translateX(-50%);z-index:999}.sonic-loader--fixed>div:nth-child(2){animation-delay:-.5s}.sonic-loader--fixed>div:nth-child(3){animation-delay:-.2s}.sonic-loader--fixed>div:nth-child(4){display:none!important}.sonic-loader--fixed>div{background-color:var(--sc-loader-bg);width:5rem;height:5rem;border-radius:100%;margin:2px;animation-fill-mode:both;position:absolute;top:0;opacity:0;margin:0;top:-2.5rem;left:-2.5rem;width:5rem;height:5rem;animation:sonic-loader--fixed 1s 0s linear infinite}`;
3063
- var __defProp$12 = Object.defineProperty;
3064
- var __getOwnPropDesc$12 = Object.getOwnPropertyDescriptor;
3065
- var __decorateClass$12 = (decorators, target, key, kind) => {
3066
- var result = kind > 1 ? void 0 : kind ? __getOwnPropDesc$12(target, key) : target;
3275
+ var __defProp$11 = Object.defineProperty;
3276
+ var __getOwnPropDesc$11 = Object.getOwnPropertyDescriptor;
3277
+ var __decorateClass$11 = (decorators, target, key, kind) => {
3278
+ var result = kind > 1 ? void 0 : kind ? __getOwnPropDesc$11(target, key) : target;
3067
3279
  for (var i2 = decorators.length - 1, decorator; i2 >= 0; i2--)
3068
3280
  if (decorator = decorators[i2])
3069
3281
  result = (kind ? decorator(target, key, result) : decorator(result)) || result;
3070
3282
  if (kind && result)
3071
- __defProp$12(target, key, result);
3283
+ __defProp$11(target, key, result);
3072
3284
  return result;
3073
3285
  };
3074
- const tagName$Z = "sonic-loader";
3286
+ const tagName$Y = "sonic-loader";
3075
3287
  let Loader = class extends s$3 {
3076
3288
  constructor() {
3077
3289
  super(...arguments);
@@ -3109,11 +3321,11 @@ Loader.styles = [
3109
3321
  i$4`:host{--sc-loader-bg:var(--sc-primary, currentColor);pointer-events:none}.sonic-loader{opacity:0;animation:showLoader .5s .5s forwards}.sonic-loader--inline{animation-delay:0s}@keyframes showLoader{0%{opacity:0}100%{opacity:1}}`
3110
3322
  ];
3111
3323
  Loader.callCounter = 0;
3112
- __decorateClass$12([
3324
+ __decorateClass$11([
3113
3325
  e$7({ type: String })
3114
3326
  ], Loader.prototype, "mode", 2);
3115
- Loader = __decorateClass$12([
3116
- e$8(tagName$Z)
3327
+ Loader = __decorateClass$11([
3328
+ e$8(tagName$Y)
3117
3329
  ], Loader);
3118
3330
  /**
3119
3331
  * @license
@@ -3235,7 +3447,7 @@ const s$1 = (i2, t2) => {
3235
3447
  for (const i3 of r2)
3236
3448
  null === (o2 = (e2 = i3)._$AO) || void 0 === o2 || o2.call(e2, t2, false), s$1(i3, t2);
3237
3449
  return true;
3238
- }, o$3 = (i2) => {
3450
+ }, o$4 = (i2) => {
3239
3451
  let t2, e2;
3240
3452
  do {
3241
3453
  if (void 0 === (t2 = i2._$AM))
@@ -3253,7 +3465,7 @@ const s$1 = (i2, t2) => {
3253
3465
  }
3254
3466
  };
3255
3467
  function n$1(i2) {
3256
- void 0 !== this._$AN ? (o$3(this), this._$AM = i2, r$1(this)) : this._$AM = i2;
3468
+ void 0 !== this._$AN ? (o$4(this), this._$AM = i2, r$1(this)) : this._$AM = i2;
3257
3469
  }
3258
3470
  function h$1(i2, t2 = false, e2 = 0) {
3259
3471
  const r2 = this._$AH, n2 = this._$AN;
@@ -3261,9 +3473,9 @@ function h$1(i2, t2 = false, e2 = 0) {
3261
3473
  if (t2)
3262
3474
  if (Array.isArray(r2))
3263
3475
  for (let i3 = e2; i3 < r2.length; i3++)
3264
- s$1(r2[i3], false), o$3(r2[i3]);
3476
+ s$1(r2[i3], false), o$4(r2[i3]);
3265
3477
  else
3266
- null != r2 && (s$1(r2, false), o$3(r2));
3478
+ null != r2 && (s$1(r2, false), o$4(r2));
3267
3479
  else
3268
3480
  s$1(this, i2);
3269
3481
  }
@@ -3280,7 +3492,7 @@ class c extends i$2 {
3280
3492
  }
3281
3493
  _$AO(i2, t2 = true) {
3282
3494
  var e2, r2;
3283
- i2 !== this.isConnected && (this.isConnected = i2, i2 ? null === (e2 = this.reconnected) || void 0 === e2 || e2.call(this) : null === (r2 = this.disconnected) || void 0 === r2 || r2.call(this)), t2 && (s$1(this, i2), o$3(this));
3495
+ i2 !== this.isConnected && (this.isConnected = i2, i2 ? null === (e2 = this.reconnected) || void 0 === e2 || e2.call(this) : null === (r2 = this.disconnected) || void 0 === r2 || r2.call(this)), t2 && (s$1(this, i2), o$4(this));
3284
3496
  }
3285
3497
  setValue(t2) {
3286
3498
  if (e$1(this._$Ct))
@@ -3544,7 +3756,7 @@ class e extends i$2 {
3544
3756
  }
3545
3757
  }
3546
3758
  e.directiveName = "unsafeHTML", e.resultType = 1;
3547
- const o$2 = e$2(e);
3759
+ const o$3 = e$2(e);
3548
3760
  const loadingGetPromises = /* @__PURE__ */ new Map();
3549
3761
  const libraries = {
3550
3762
  heroicons: {
@@ -3608,7 +3820,7 @@ Icons.fontAwesomeNext = {
3608
3820
  iconsAsRecord[library] = libIcons;
3609
3821
  const libIconsKey = prefix + "-" + name;
3610
3822
  if (libIcons[libIconsKey])
3611
- return o$2(libIcons[libIconsKey]);
3823
+ return o$3(libIcons[libIconsKey]);
3612
3824
  const url = libraryItem.url.replace("$prefix", prefix).replace("$name", name);
3613
3825
  if (!loadingGetPromises.has(url)) {
3614
3826
  const promise = new Promise(async (resolve) => {
@@ -3629,24 +3841,24 @@ Icons.fontAwesomeNext = {
3629
3841
  const result = await loadingGetPromises.get(url);
3630
3842
  loadingGetPromises.delete(url);
3631
3843
  libIcons[libIconsKey] = result || "";
3632
- return o$2(result);
3844
+ return o$3(result);
3633
3845
  }
3634
- return o$2(iconsAsRecord["core"][params.name] || "");
3846
+ return o$3(iconsAsRecord["core"][params.name] || "");
3635
3847
  }
3636
3848
  };
3637
3849
  Icons.default = _Icons.fontAwesomeNext;
3638
- var __defProp$11 = Object.defineProperty;
3639
- var __getOwnPropDesc$11 = Object.getOwnPropertyDescriptor;
3640
- var __decorateClass$11 = (decorators, target, key, kind) => {
3641
- var result = kind > 1 ? void 0 : kind ? __getOwnPropDesc$11(target, key) : target;
3850
+ var __defProp$10 = Object.defineProperty;
3851
+ var __getOwnPropDesc$10 = Object.getOwnPropertyDescriptor;
3852
+ var __decorateClass$10 = (decorators, target, key, kind) => {
3853
+ var result = kind > 1 ? void 0 : kind ? __getOwnPropDesc$10(target, key) : target;
3642
3854
  for (var i2 = decorators.length - 1, decorator; i2 >= 0; i2--)
3643
3855
  if (decorator = decorators[i2])
3644
3856
  result = (kind ? decorator(target, key, result) : decorator(result)) || result;
3645
3857
  if (kind && result)
3646
- __defProp$11(target, key, result);
3858
+ __defProp$10(target, key, result);
3647
3859
  return result;
3648
3860
  };
3649
- const tagName$Y = "sonic-icon";
3861
+ const tagName$X = "sonic-icon";
3650
3862
  let Icon = class extends s$3 {
3651
3863
  constructor() {
3652
3864
  super(...arguments);
@@ -3661,7 +3873,7 @@ let Icon = class extends s$3 {
3661
3873
  return;
3662
3874
  this.renderId++;
3663
3875
  const frameRenderId = this.renderId;
3664
- window.requestAnimationFrame(async () => {
3876
+ (window.queueMicrotask || window.requestAnimationFrame)(async () => {
3665
3877
  if (frameRenderId != this.renderId) {
3666
3878
  return;
3667
3879
  }
@@ -3700,28 +3912,28 @@ let Icon = class extends s$3 {
3700
3912
  }
3701
3913
  };
3702
3914
  Icon.styles = i$4`:host{line-height:0;width:fit-content;height:fit-content;vertical-align:-.125em}svg{height:var(--sc-icon-size,1em);width:var(--sc-icon-size,1em)}svg:not([fill=none]){fill:currentColor}svg[fill=none]{stroke-width:2}:host([size="2xs"]) svg{--sc-icon-size:0.625em}:host([size=xs]) svg{--sc-icon-size:0.75em}:host([size=sm]) svg{--sc-icon-size:0.875em}:host([size=lg]) svg{--sc-icon-size:1.25em}:host([size=xl]) svg{--sc-icon-size:1.5em}:host([size="2xl"]) svg{--sc-icon-size:2em}:host([size="3xl"]) svg{--sc-icon-size:2.8em}`;
3703
- __decorateClass$11([
3915
+ __decorateClass$10([
3704
3916
  e$7({ type: String })
3705
3917
  ], Icon.prototype, "name", 1);
3706
- __decorateClass$11([
3918
+ __decorateClass$10([
3707
3919
  e$7({ type: String })
3708
3920
  ], Icon.prototype, "prefix", 1);
3709
- __decorateClass$11([
3921
+ __decorateClass$10([
3710
3922
  e$7({ type: String })
3711
3923
  ], Icon.prototype, "library", 1);
3712
- Icon = __decorateClass$11([
3713
- e$8(tagName$Y)
3924
+ Icon = __decorateClass$10([
3925
+ e$8(tagName$X)
3714
3926
  ], Icon);
3715
3927
  const customScroll = i$4`.custom-scroll{overflow:auto!important;overflow-y:overlay!important}.custom-scroll::-webkit-scrollbar{width:.5rem;height:.5rem;border:solid .15rem transparent;border-radius:var(--sc-rounded);background:0 0}.custom-scroll::-webkit-scrollbar-thumb{box-shadow:inset 0 0 2rem 2rem var(--sc-scrollbar-bg);border-radius:var(--sc-rounded);border:solid .15rem transparent}`;
3716
- var __defProp$10 = Object.defineProperty;
3717
- var __getOwnPropDesc$10 = Object.getOwnPropertyDescriptor;
3718
- var __decorateClass$10 = (decorators, target, key, kind) => {
3719
- var result = kind > 1 ? void 0 : kind ? __getOwnPropDesc$10(target, key) : target;
3928
+ var __defProp$$ = Object.defineProperty;
3929
+ var __getOwnPropDesc$$ = Object.getOwnPropertyDescriptor;
3930
+ var __decorateClass$$ = (decorators, target, key, kind) => {
3931
+ var result = kind > 1 ? void 0 : kind ? __getOwnPropDesc$$(target, key) : target;
3720
3932
  for (var i2 = decorators.length - 1, decorator; i2 >= 0; i2--)
3721
3933
  if (decorator = decorators[i2])
3722
3934
  result = (kind ? decorator(target, key, result) : decorator(result)) || result;
3723
3935
  if (kind && result)
3724
- __defProp$10(target, key, result);
3936
+ __defProp$$(target, key, result);
3725
3937
  return result;
3726
3938
  };
3727
3939
  const icon$1 = {
@@ -3730,7 +3942,7 @@ const icon$1 = {
3730
3942
  error: "warning-circled-outline",
3731
3943
  info: "info-empty"
3732
3944
  };
3733
- const tagName$X = "sonic-toast-item";
3945
+ const tagName$W = "sonic-toast-item";
3734
3946
  let SonicToastItem = class extends s$3 {
3735
3947
  constructor() {
3736
3948
  super(...arguments);
@@ -3755,7 +3967,7 @@ let SonicToastItem = class extends s$3 {
3755
3967
  if (!this.visible) {
3756
3968
  return b$1;
3757
3969
  }
3758
- return y`<div class="sonic-toast ${this.status} ${this.ghost ? "ghost" : ""}"><button aria-label="Close" class="sonic-toast-close" @click="${() => this.hide()}"><sonic-icon name="cancel" size="lg"></sonic-icon></button><div class="sonic-toast-content custom-scroll" style="max-height:${this.maxHeight}">${this.status && y`<sonic-icon name="${icon$1[this.status]}" class="sonic-toast-icon" size="2xl"></sonic-icon>`}<div class="sonic-toast-text">${this.title ? y`<div class="sonic-toast-title">${this.title}</div>` : ""} ${this.text ? o$2(this.text) : ""}<slot></slot></div>${!this.preserve ? this.autoHide() : ""}</div></div>`;
3970
+ return y`<div class="sonic-toast ${this.status} ${this.ghost ? "ghost" : ""}"><button aria-label="Close" class="sonic-toast-close" @click="${() => this.hide()}"><sonic-icon name="cancel" size="lg"></sonic-icon></button><div class="sonic-toast-content custom-scroll" style="max-height:${this.maxHeight}">${this.status && y`<sonic-icon name="${icon$1[this.status]}" class="sonic-toast-icon" size="2xl"></sonic-icon>`}<div class="sonic-toast-text">${this.title ? y`<div class="sonic-toast-title">${this.title}</div>` : ""} ${this.text ? o$3(this.text) : ""}<slot></slot></div>${!this.preserve ? this.autoHide() : ""}</div></div>`;
3759
3971
  }
3760
3972
  hide() {
3761
3973
  if (!this.closest("sonic-toast")) {
@@ -3782,48 +3994,48 @@ SonicToastItem.styles = [
3782
3994
  customScroll,
3783
3995
  i$4`*{box-sizing:border-box}:host{display:block;pointer-events:auto;position:relative;--sc-toast-status-color:transparent;--sc-toast-color:var(--sc-base-content);--sc-toast-bg:var(--sc-base);--sc-toast-rounded:var(--sc-rounded-md);--sc-toast-shadow:var(--sc-shadow-lg)}.fixed-area{position:fixed;bottom:1.25rem;right:1.25rem;z-index:10000;display:flex;flex-direction:column-reverse}.sonic-toast{position:relative;pointer-events:auto;overflow:hidden;line-height:1.25;color:var(--sc-toast-color);box-shadow:var(--sc-toast-shadow);border-radius:var(--sc-toast-rounded);background:var(--sc-toast-bg)}.sonic-toast-content{padding:1em 2.5rem 1em 1em;display:flex;gap:.5rem;overflow:auto;position:relative}.sonic-toast-text{align-self:center;margin-top:auto;margin-bottom:auto;max-width:70ch;line-height:1.2}.sonic-toast-text a,::slotted(a:not(.btn)){color:inherit!important;text-decoration:underline!important;text-underline-offset:.15rem}.sonic-toast-text :is(p, ul, ol, hr, h1, h2, h3, h4, h5, h6),::slotted(:is(p,ul,ol,hr,h1,h2,h3,h4,h5,h6)){margin:0 0 .3em!important}.sonic-toast-text li,::slotted(li){margin-bottom:.15em!important}.sonic-toast-text>:is(p,ul,ol,hr,h1,h2,h3,h4,h5,h6):last-child,::slotted(:is(p,ul,ol,hr,h1,h2,h3,h4,h5,h6):last-child){margin-bottom:0!important}.sonic-toast-close{all:unset;position:absolute;z-index:4;pointer-events:initial;right:.5em;top:.5em;width:1.5rem;height:1.5rem;cursor:pointer;display:inline-flex;align-items:center;justify-content:center;border-radius:50%;text-align:center;opacity:.5;background:rgba(0,0,0,0)}.sonic-toast-close:focus,.sonic-toast-close:hover{opacity:1;background:rgba(0,0,0,.075)}.sonic-toast-close svg{width:1rem;height:1rem;object-fit:contain;object-position:center center}.sonic-toast-title{font-weight:700;font-size:1.15rem;margin:.15em 0 .25em;line-height:1.2}.success{--sc-toast-status-color:var(--sc-success);--sc-toast-title-color:var(--sc-toast-status-color)}.error{--sc-toast-status-color:var(--sc-danger);--sc-toast-title-color:var(--sc-toast-status-color)}.warning{--sc-toast-status-color:var(--sc-warning);--sc-toast-title-color:var(--sc-toast-status-color)}.info{--sc-toast-status-color:var(--sc-info);--sc-toast-title-color:var(--sc-toast-status-color)}.error,.info,.success,.warning{border-top:3px solid var(--sc-toast-status-color,currentColor)}.sonic-toast:before{content:"";display:block;position:absolute;left:0;top:0;right:0;bottom:0;opacity:.05;pointer-events:none;transition:.2s;border-radius:var(--sc-toast-rounded);background-color:var(--sc-toast-status-color)}.sonic-toast:hover:before{opacity:.025}.error .sonic-toast-icon,.info .sonic-toast-icon,.success .sonic-toast-icon,.warning .sonic-toast-icon{color:var(--sc-toast-status-color,currentColor)}.sonic-toast-icon{position:sticky;top:0}.ghost{opacity:.85;pointer-events:none}`
3784
3996
  ];
3785
- __decorateClass$10([
3997
+ __decorateClass$$([
3786
3998
  e$7({ type: String })
3787
3999
  ], SonicToastItem.prototype, "title", 2);
3788
- __decorateClass$10([
4000
+ __decorateClass$$([
3789
4001
  e$7({ type: String })
3790
4002
  ], SonicToastItem.prototype, "id", 2);
3791
- __decorateClass$10([
4003
+ __decorateClass$$([
3792
4004
  e$7({ type: String })
3793
4005
  ], SonicToastItem.prototype, "text", 2);
3794
- __decorateClass$10([
4006
+ __decorateClass$$([
3795
4007
  e$7({ type: String })
3796
4008
  ], SonicToastItem.prototype, "status", 2);
3797
- __decorateClass$10([
4009
+ __decorateClass$$([
3798
4010
  e$7({ type: Boolean })
3799
4011
  ], SonicToastItem.prototype, "ghost", 2);
3800
- __decorateClass$10([
4012
+ __decorateClass$$([
3801
4013
  e$7({ type: Boolean })
3802
4014
  ], SonicToastItem.prototype, "preserve", 2);
3803
- __decorateClass$10([
4015
+ __decorateClass$$([
3804
4016
  e$7({ type: Boolean })
3805
4017
  ], SonicToastItem.prototype, "dismissForever", 2);
3806
- __decorateClass$10([
4018
+ __decorateClass$$([
3807
4019
  e$7({ type: String })
3808
4020
  ], SonicToastItem.prototype, "maxHeight", 2);
3809
- __decorateClass$10([
4021
+ __decorateClass$$([
3810
4022
  t$3()
3811
4023
  ], SonicToastItem.prototype, "visible", 2);
3812
- SonicToastItem = __decorateClass$10([
3813
- e$8(tagName$X)
4024
+ SonicToastItem = __decorateClass$$([
4025
+ e$8(tagName$W)
3814
4026
  ], SonicToastItem);
3815
- var __defProp$$ = Object.defineProperty;
3816
- var __getOwnPropDesc$$ = Object.getOwnPropertyDescriptor;
3817
- var __decorateClass$$ = (decorators, target, key, kind) => {
3818
- var result = kind > 1 ? void 0 : kind ? __getOwnPropDesc$$(target, key) : target;
4027
+ var __defProp$_ = Object.defineProperty;
4028
+ var __getOwnPropDesc$_ = Object.getOwnPropertyDescriptor;
4029
+ var __decorateClass$_ = (decorators, target, key, kind) => {
4030
+ var result = kind > 1 ? void 0 : kind ? __getOwnPropDesc$_(target, key) : target;
3819
4031
  for (var i2 = decorators.length - 1, decorator; i2 >= 0; i2--)
3820
4032
  if (decorator = decorators[i2])
3821
4033
  result = (kind ? decorator(target, key, result) : decorator(result)) || result;
3822
4034
  if (kind && result)
3823
- __defProp$$(target, key, result);
4035
+ __defProp$_(target, key, result);
3824
4036
  return result;
3825
4037
  };
3826
- const tagName$W = "sonic-toast";
4038
+ const tagName$V = "sonic-toast";
3827
4039
  let SonicToast$1 = class extends s$3 {
3828
4040
  constructor() {
3829
4041
  super(...arguments);
@@ -3873,7 +4085,7 @@ let SonicToast$1 = class extends s$3 {
3873
4085
  }
3874
4086
  ],
3875
4087
  stabilizeOut: true
3876
- })}>${item.text ? o$2(item.text) : ""}</sonic-toast-item>`
4088
+ })}>${item.text ? o$3(item.text) : ""}</sonic-toast-item>`
3877
4089
  )}</div>`;
3878
4090
  }
3879
4091
  static removeAll() {
@@ -3938,24 +4150,24 @@ let SonicToast$1 = class extends s$3 {
3938
4150
  });
3939
4151
  }
3940
4152
  };
3941
- __decorateClass$$([
4153
+ __decorateClass$_([
3942
4154
  e$7({ type: Array })
3943
4155
  ], SonicToast$1.prototype, "toasts", 2);
3944
- SonicToast$1 = __decorateClass$$([
3945
- e$8(tagName$W)
4156
+ SonicToast$1 = __decorateClass$_([
4157
+ e$8(tagName$V)
3946
4158
  ], SonicToast$1);
3947
4159
  if (typeof window !== "undefined") {
3948
4160
  window.SonicToast = SonicToast$1;
3949
4161
  }
3950
- var __defProp$_ = Object.defineProperty;
3951
- var __getOwnPropDesc$_ = Object.getOwnPropertyDescriptor;
3952
- var __decorateClass$_ = (decorators, target, key, kind) => {
3953
- var result = kind > 1 ? void 0 : kind ? __getOwnPropDesc$_(target, key) : target;
4162
+ var __defProp$Z = Object.defineProperty;
4163
+ var __getOwnPropDesc$Z = Object.getOwnPropertyDescriptor;
4164
+ var __decorateClass$Z = (decorators, target, key, kind) => {
4165
+ var result = kind > 1 ? void 0 : kind ? __getOwnPropDesc$Z(target, key) : target;
3954
4166
  for (var i2 = decorators.length - 1, decorator; i2 >= 0; i2--)
3955
4167
  if (decorator = decorators[i2])
3956
4168
  result = (kind ? decorator(target, key, result) : decorator(result)) || result;
3957
4169
  if (kind && result)
3958
- __defProp$_(target, key, result);
4170
+ __defProp$Z(target, key, result);
3959
4171
  return result;
3960
4172
  };
3961
4173
  const Fetcher$1 = (superClass, propsType) => {
@@ -3995,24 +4207,41 @@ const Fetcher$1 = (superClass, propsType) => {
3995
4207
  if (!this.api)
3996
4208
  return;
3997
4209
  this.dispatchEvent(new CustomEvent("loading", { detail: this }));
3998
- this.isLoading = true;
3999
- this.requestUpdate();
4210
+ if (this.getAttribute("localStorage") === "enabled") {
4211
+ await PublisherManager.getInstance().isLocalStrorageReady;
4212
+ }
4213
+ if (!this.isConnected)
4214
+ return;
4000
4215
  const hasLoader = this.isDefaultLoaderEnabled && !this.hasAttribute("noLoader");
4001
- if (hasLoader)
4216
+ if (hasLoader) {
4002
4217
  Loader.show();
4218
+ }
4003
4219
  const headerData = PublisherManager.getInstance().get(this.getAncestorAttributeValue("headersDataProvider")).get();
4220
+ this.isLoading = true;
4221
+ if (Objects$1.isObject(this.props) && Object.keys(this.props || {}).length > 0 && this.isFirstLoad) {
4222
+ this.dispatchEvent(new CustomEvent("load", { detail: this }));
4223
+ this.isFirstLoad = false;
4224
+ this.isLoading = false;
4225
+ }
4004
4226
  let data = await this.api.get(this.endPoint || this.dataProvider || "", headerData);
4227
+ if (!this.isConnected) {
4228
+ if (hasLoader)
4229
+ Loader.hide();
4230
+ return;
4231
+ }
4005
4232
  if (!data) {
4006
4233
  SonicToast$1.add({ text: "Network Error", status: "error" });
4007
4234
  this.isLoading = false;
4008
- if (hasLoader)
4235
+ if (hasLoader) {
4009
4236
  Loader.hide();
4237
+ }
4010
4238
  return;
4011
4239
  } else if (data._sonic_http_response_ && !data._sonic_http_response_.ok && Object.keys(data).length === 1) {
4012
4240
  SonicToast$1.add({ text: "Network Error", status: "error" });
4013
4241
  }
4014
- if (hasLoader)
4242
+ if (hasLoader) {
4015
4243
  Loader.hide();
4244
+ }
4016
4245
  if (this.key) {
4017
4246
  const response = data._sonic_http_response_;
4018
4247
  data = Objects$1.traverse(data, this.key.split("."), this.hasAttribute("preserveOtherKeys"));
@@ -4036,11 +4265,10 @@ const Fetcher$1 = (superClass, propsType) => {
4036
4265
  }
4037
4266
  connectedCallback() {
4038
4267
  var _a2;
4268
+ super.connectedCallback();
4039
4269
  if (!this.isFetchEnabled) {
4040
- super.connectedCallback();
4041
4270
  return;
4042
4271
  }
4043
- super.connectedCallback();
4044
4272
  this.key = this.getAttribute("key");
4045
4273
  if (this.props) {
4046
4274
  this.publisher.set(this.props);
@@ -4050,23 +4278,35 @@ const Fetcher$1 = (superClass, propsType) => {
4050
4278
  const lazyLoad = this.getAttribute("lazyload");
4051
4279
  if (lazyLoad === null) {
4052
4280
  this._fetchData();
4281
+ } else {
4282
+ this.handleLazyLoad();
4053
4283
  }
4054
4284
  }
4055
- firstUpdated() {
4285
+ handleLazyLoad() {
4056
4286
  const lazyLoad = this.getAttribute("lazyload");
4057
4287
  if (lazyLoad === null) {
4058
4288
  return;
4059
4289
  }
4290
+ const rect = this.getBoundingClientRect();
4291
+ if (rect.x < window.innerWidth && rect.right > 0 && rect.y < window.innerHeight && rect.right > 0) {
4292
+ this._fetchData();
4293
+ return;
4294
+ }
4295
+ const boundsRatio = parseFloat(this.getAttribute("lazyBoundsRatio") || "1");
4060
4296
  const options = {
4061
4297
  root: null,
4062
- rootMargin: Math.max(window.innerWidth, window.innerHeight) + "px"
4298
+ rootMargin: Math.max(window.innerWidth * boundsRatio, window.innerHeight * boundsRatio) + "px"
4063
4299
  };
4064
4300
  this.iObserver = new IntersectionObserver((entries) => this.onIntersection(entries), options);
4065
4301
  let elt = this.shadowRoot ? this.shadowRoot.children[0] : this.children[0];
4066
- if (elt && elt.nodeName.toLocaleLowerCase() == "slot")
4302
+ if ((elt == null ? void 0 : elt.nodeName.toLocaleLowerCase()) == "slot")
4067
4303
  elt = elt.children[0];
4068
4304
  if (!elt || elt.nodeName.toLocaleLowerCase() == "template") {
4069
4305
  elt = document.createElement("span");
4306
+ const style = elt.style;
4307
+ style.position = "absolute";
4308
+ style.pointerEvents = "none";
4309
+ this.lazyLoadSpan = elt;
4070
4310
  this.appendChild(elt);
4071
4311
  }
4072
4312
  if (elt) {
@@ -4076,39 +4316,44 @@ const Fetcher$1 = (superClass, propsType) => {
4076
4316
  }
4077
4317
  }
4078
4318
  onIntersection(entries) {
4319
+ var _a2, _b;
4079
4320
  for (const e2 of entries) {
4080
4321
  if (e2.isIntersecting && this.isFirstLoad) {
4081
4322
  this._fetchData();
4323
+ (_a2 = this.lazyLoadSpan) == null ? void 0 : _a2.remove();
4324
+ this.lazyLoadSpan = void 0;
4325
+ (_b = this.iObserver) == null ? void 0 : _b.disconnect();
4326
+ break;
4082
4327
  }
4083
4328
  }
4084
4329
  }
4085
4330
  }
4086
- __decorateClass$_([
4331
+ __decorateClass$Z([
4087
4332
  e$7()
4088
4333
  ], FetcherElement.prototype, "props", 1);
4089
- __decorateClass$_([
4334
+ __decorateClass$Z([
4090
4335
  e$7({ type: String })
4091
4336
  ], FetcherElement.prototype, "endPoint", 1);
4092
- __decorateClass$_([
4337
+ __decorateClass$Z([
4093
4338
  e$7()
4094
4339
  ], FetcherElement.prototype, "requestId", 2);
4095
- __decorateClass$_([
4340
+ __decorateClass$Z([
4096
4341
  e$7({ type: Number })
4097
4342
  ], FetcherElement.prototype, "refetchEveryMs", 2);
4098
4343
  return FetcherElement;
4099
4344
  };
4100
- var __defProp$Z = Object.defineProperty;
4101
- var __getOwnPropDesc$Z = Object.getOwnPropertyDescriptor;
4102
- var __decorateClass$Z = (decorators, target, key, kind) => {
4103
- var result = kind > 1 ? void 0 : kind ? __getOwnPropDesc$Z(target, key) : target;
4345
+ var __defProp$Y = Object.defineProperty;
4346
+ var __getOwnPropDesc$Y = Object.getOwnPropertyDescriptor;
4347
+ var __decorateClass$Y = (decorators, target, key, kind) => {
4348
+ var result = kind > 1 ? void 0 : kind ? __getOwnPropDesc$Y(target, key) : target;
4104
4349
  for (var i2 = decorators.length - 1, decorator; i2 >= 0; i2--)
4105
4350
  if (decorator = decorators[i2])
4106
4351
  result = (kind ? decorator(target, key, result) : decorator(result)) || result;
4107
4352
  if (kind && result)
4108
- __defProp$Z(target, key, result);
4353
+ __defProp$Y(target, key, result);
4109
4354
  return result;
4110
4355
  };
4111
- const tagName$V = "sonic-fetch";
4356
+ const tagName$U = "sonic-fetch";
4112
4357
  let Fetch = class extends Fetcher$1(Subscriber$1(s$3)) {
4113
4358
  render() {
4114
4359
  return y`<slot></slot>`;
@@ -4117,21 +4362,21 @@ let Fetch = class extends Fetcher$1(Subscriber$1(s$3)) {
4117
4362
  Fetch.styles = [
4118
4363
  i$4`:host{display:contents}`
4119
4364
  ];
4120
- Fetch = __decorateClass$Z([
4121
- e$8(tagName$V)
4365
+ Fetch = __decorateClass$Y([
4366
+ e$8(tagName$U)
4122
4367
  ], Fetch);
4123
- var __defProp$Y = Object.defineProperty;
4124
- var __getOwnPropDesc$Y = Object.getOwnPropertyDescriptor;
4125
- var __decorateClass$Y = (decorators, target, key, kind) => {
4126
- var result = kind > 1 ? void 0 : kind ? __getOwnPropDesc$Y(target, key) : target;
4368
+ var __defProp$X = Object.defineProperty;
4369
+ var __getOwnPropDesc$X = Object.getOwnPropertyDescriptor;
4370
+ var __decorateClass$X = (decorators, target, key, kind) => {
4371
+ var result = kind > 1 ? void 0 : kind ? __getOwnPropDesc$X(target, key) : target;
4127
4372
  for (var i2 = decorators.length - 1, decorator; i2 >= 0; i2--)
4128
4373
  if (decorator = decorators[i2])
4129
4374
  result = (kind ? decorator(target, key, result) : decorator(result)) || result;
4130
4375
  if (kind && result)
4131
- __defProp$Y(target, key, result);
4376
+ __defProp$X(target, key, result);
4132
4377
  return result;
4133
4378
  };
4134
- const tagName$U = "sonic-if";
4379
+ const tagName$T = "sonic-if";
4135
4380
  let SonicIF = class extends s$3 {
4136
4381
  constructor() {
4137
4382
  super(...arguments);
@@ -4144,18 +4389,18 @@ let SonicIF = class extends s$3 {
4144
4389
  }
4145
4390
  };
4146
4391
  SonicIF.styles = i$4`:host{display:contents}`;
4147
- __decorateClass$Y([
4392
+ __decorateClass$X([
4148
4393
  e$7({ type: Boolean })
4149
4394
  ], SonicIF.prototype, "condition", 2);
4150
- SonicIF = __decorateClass$Y([
4151
- e$8(tagName$U)
4395
+ SonicIF = __decorateClass$X([
4396
+ e$8(tagName$T)
4152
4397
  ], SonicIF);
4153
4398
  /**
4154
4399
  * @license
4155
4400
  * Copyright 2020 Google LLC
4156
4401
  * SPDX-License-Identifier: BSD-3-Clause
4157
4402
  */
4158
- const o$1 = e$2(class extends i$2 {
4403
+ const o$2 = e$2(class extends i$2 {
4159
4404
  constructor(t$12) {
4160
4405
  if (super(t$12), t$12.type !== t.CHILD)
4161
4406
  throw Error("templateContent can only be used in child bindings");
@@ -4164,18 +4409,18 @@ const o$1 = e$2(class extends i$2 {
4164
4409
  return this.ft === r2 ? x$1 : (this.ft = r2, document.importNode(r2.content, true));
4165
4410
  }
4166
4411
  });
4167
- var __defProp$X = Object.defineProperty;
4168
- var __getOwnPropDesc$X = Object.getOwnPropertyDescriptor;
4169
- var __decorateClass$X = (decorators, target, key, kind) => {
4170
- var result = kind > 1 ? void 0 : kind ? __getOwnPropDesc$X(target, key) : target;
4412
+ var __defProp$W = Object.defineProperty;
4413
+ var __getOwnPropDesc$W = Object.getOwnPropertyDescriptor;
4414
+ var __decorateClass$W = (decorators, target, key, kind) => {
4415
+ var result = kind > 1 ? void 0 : kind ? __getOwnPropDesc$W(target, key) : target;
4171
4416
  for (var i2 = decorators.length - 1, decorator; i2 >= 0; i2--)
4172
4417
  if (decorator = decorators[i2])
4173
4418
  result = (kind ? decorator(target, key, result) : decorator(result)) || result;
4174
4419
  if (kind && result)
4175
- __defProp$X(target, key, result);
4420
+ __defProp$W(target, key, result);
4176
4421
  return result;
4177
4422
  };
4178
- const tagName$T = "sonic-subscriber";
4423
+ const tagName$S = "sonic-subscriber";
4179
4424
  let SonicSubscriber = class extends Subscriber$1(s$3) {
4180
4425
  constructor() {
4181
4426
  super(...arguments);
@@ -4196,21 +4441,21 @@ let SonicSubscriber = class extends Subscriber$1(s$3) {
4196
4441
  return y`<slot></slot>`;
4197
4442
  }
4198
4443
  };
4199
- SonicSubscriber = __decorateClass$X([
4200
- e$8(tagName$T)
4444
+ SonicSubscriber = __decorateClass$W([
4445
+ e$8(tagName$S)
4201
4446
  ], SonicSubscriber);
4202
- var __defProp$W = Object.defineProperty;
4203
- var __getOwnPropDesc$W = Object.getOwnPropertyDescriptor;
4204
- var __decorateClass$W = (decorators, target, key, kind) => {
4205
- var result = kind > 1 ? void 0 : kind ? __getOwnPropDesc$W(target, key) : target;
4447
+ var __defProp$V = Object.defineProperty;
4448
+ var __getOwnPropDesc$V = Object.getOwnPropertyDescriptor;
4449
+ var __decorateClass$V = (decorators, target, key, kind) => {
4450
+ var result = kind > 1 ? void 0 : kind ? __getOwnPropDesc$V(target, key) : target;
4206
4451
  for (var i2 = decorators.length - 1, decorator; i2 >= 0; i2--)
4207
4452
  if (decorator = decorators[i2])
4208
4453
  result = (kind ? decorator(target, key, result) : decorator(result)) || result;
4209
4454
  if (kind && result)
4210
- __defProp$W(target, key, result);
4455
+ __defProp$V(target, key, result);
4211
4456
  return result;
4212
4457
  };
4213
- const tagName$S = "sonic-list";
4458
+ const tagName$R = "sonic-list";
4214
4459
  let List = class extends Fetcher$1(Subscriber$1(TemplatesContainer$1(s$3))) {
4215
4460
  constructor() {
4216
4461
  super(...arguments);
@@ -4226,8 +4471,11 @@ let List = class extends Fetcher$1(Subscriber$1(TemplatesContainer$1(s$3))) {
4226
4471
  this.isLoading = true;
4227
4472
  super.connectedCallback();
4228
4473
  }
4474
+ disconnectedCallback() {
4475
+ super.disconnectedCallback();
4476
+ }
4229
4477
  renderLoadingState() {
4230
- return this.templateParts["skeleton"] ? o$1(this.templateParts["skeleton"]) : y`<sonic-loader mode="inline"></sonic-loader>`;
4478
+ return this.templateParts["skeleton"] ? o$2(this.templateParts["skeleton"]) : y`<sonic-loader mode="inline"></sonic-loader>`;
4231
4479
  }
4232
4480
  renderNoResultState() {
4233
4481
  return y`<div style="color:var(--sc-base-400);font-size:1.5em;margin:4rem 0;display:flex;gap:.5rem"><sonic-icon name="emoji-puzzled" size="lg"></sonic-icon><span class="sonic-no-result-text">${typeof this.props === "string" && this.props == "" ? "Aucun r\xE9sultat" : this.props}</span></div>`;
@@ -4267,7 +4515,7 @@ let List = class extends Fetcher$1(Subscriber$1(TemplatesContainer$1(s$3))) {
4267
4515
  return y`<div></div>`;
4268
4516
  const props = this.formatProps();
4269
4517
  if (((props == null ? void 0 : props.length) || 0) == 0 && this.templateParts["no-item"]) {
4270
- return o$1(this.templateParts["no-item"]);
4518
+ return o$2(this.templateParts["no-item"]);
4271
4519
  }
4272
4520
  const templateCount = this.templateList.length;
4273
4521
  let counter = -1;
@@ -4291,42 +4539,64 @@ let List = class extends Fetcher$1(Subscriber$1(TemplatesContainer$1(s$3))) {
4291
4539
  return b$1;
4292
4540
  if (typeof key != "string" && typeof key != "number")
4293
4541
  return b$1;
4294
- const pub = this.publisher[key];
4295
- pub._key_ = key + "";
4542
+ const isLastChild = index >= length - 1;
4543
+ const indexMod2 = index % 2;
4544
+ const childPublisher = this.publisher[key];
4545
+ childPublisher._key_ = key + "";
4546
+ childPublisher._metadata_ = {
4547
+ ...childPublisher._metadata_.get(),
4548
+ key,
4549
+ even: indexMod2 == 0,
4550
+ odd: indexMod2 == 1,
4551
+ onlyChild: length == 1,
4552
+ firstChild: index == 0,
4553
+ lastChild: isLastChild
4554
+ };
4296
4555
  counter++;
4297
- const isNotLast = index < length - 1;
4298
4556
  if (templatePart)
4299
4557
  counter = -1;
4300
4558
  return item && y`<sonic-subscriber ?debug="${this.defferedDebug === true}" .bindPublisher="${function() {
4301
- return pub;
4302
- }}" .propertyMap?="${this.itemPropertyMap}" dataProvider="${this.dataProvider}/list-item/${key}">${templatePart ? o$1(templatePart) : o$1(this.templateList[counter % templateCount])}</sonic-subscriber>${separator && isNotLast ? o$1(separator) : b$1}`;
4559
+ return childPublisher;
4560
+ }}" .propertyMap?="${this.itemPropertyMap}" dataProvider="${this.dataProvider}/list-item/${key}">${templatePart ? o$2(templatePart) : o$2(this.templateList[counter % templateCount])}</sonic-subscriber>${separator && !isLastChild ? o$2(separator) : b$1}`;
4303
4561
  })}`;
4304
4562
  }
4305
4563
  };
4306
- __decorateClass$W([
4564
+ __decorateClass$V([
4307
4565
  e$7({ type: Object })
4308
4566
  ], List.prototype, "itemPropertyMap", 2);
4309
- __decorateClass$W([
4567
+ __decorateClass$V([
4310
4568
  e$7({ type: String })
4311
4569
  ], List.prototype, "templateKey", 2);
4312
- __decorateClass$W([
4570
+ __decorateClass$V([
4313
4571
  e$7({ type: String })
4314
4572
  ], List.prototype, "idKey", 2);
4315
- List = __decorateClass$W([
4316
- e$8(tagName$S)
4573
+ List = __decorateClass$V([
4574
+ e$8(tagName$R)
4317
4575
  ], List);
4318
- var __defProp$V = Object.defineProperty;
4319
- var __getOwnPropDesc$V = Object.getOwnPropertyDescriptor;
4320
- var __decorateClass$V = (decorators, target, key, kind) => {
4321
- var result = kind > 1 ? void 0 : kind ? __getOwnPropDesc$V(target, key) : target;
4576
+ /**
4577
+ * @license
4578
+ * Copyright 2021 Google LLC
4579
+ * SPDX-License-Identifier: BSD-3-Clause
4580
+ */
4581
+ function* o$1(o2, f2) {
4582
+ if (void 0 !== o2) {
4583
+ let i2 = 0;
4584
+ for (const t2 of o2)
4585
+ yield f2(t2, i2++);
4586
+ }
4587
+ }
4588
+ var __defProp$U = Object.defineProperty;
4589
+ var __getOwnPropDesc$U = Object.getOwnPropertyDescriptor;
4590
+ var __decorateClass$U = (decorators, target, key, kind) => {
4591
+ var result = kind > 1 ? void 0 : kind ? __getOwnPropDesc$U(target, key) : target;
4322
4592
  for (var i2 = decorators.length - 1, decorator; i2 >= 0; i2--)
4323
4593
  if (decorator = decorators[i2])
4324
4594
  result = (kind ? decorator(target, key, result) : decorator(result)) || result;
4325
4595
  if (kind && result)
4326
- __defProp$V(target, key, result);
4596
+ __defProp$U(target, key, result);
4327
4597
  return result;
4328
4598
  };
4329
- const tagName$R = "sonic-queue";
4599
+ const tagName$Q = "sonic-queue";
4330
4600
  let Queue = class extends Subscriber$1(s$3) {
4331
4601
  constructor() {
4332
4602
  super(...arguments);
@@ -4334,14 +4604,19 @@ let Queue = class extends Subscriber$1(s$3) {
4334
4604
  this.lastRequestTime = 0;
4335
4605
  this.key = "";
4336
4606
  this.itemPropertyMap = null;
4607
+ this.cache = "default";
4337
4608
  this.targetRequestDuration = 500;
4338
4609
  this.limit = 5;
4610
+ this.lazyBoundsRatio = 1;
4339
4611
  this.offset = 0;
4340
4612
  this.resultCount = 0;
4613
+ this.noLazyload = false;
4341
4614
  this.filteredFields = "";
4615
+ this.localStorage = "disabled";
4342
4616
  this.filterPublisher = null;
4343
4617
  this.searchHash = "";
4344
4618
  this.requestId = 0;
4619
+ this.isFirstRequest = true;
4345
4620
  this.dataProviderExpression = "";
4346
4621
  this.idKey = "id";
4347
4622
  this.currentScrollPosition = void 0;
@@ -4355,33 +4630,33 @@ let Queue = class extends Subscriber$1(s$3) {
4355
4630
  super.disconnectedCallback();
4356
4631
  return;
4357
4632
  }
4358
- connectedCallback() {
4633
+ async connectedCallback() {
4634
+ this.localStorage = this.getAttribute("localStorage") || this.localStorage;
4635
+ this.removeAttribute("localStorage");
4359
4636
  this.noShadowDom = "";
4360
4637
  this.defferedDebug = this.hasAttribute("debug") || null;
4638
+ if (!this.dataProvider)
4639
+ this.dataProvider = this.dataProviderExpression || "sonic-queue-" + Queue.instanceCounter++ + "-" + Math.random().toString(36).substring(7);
4361
4640
  if (!this.dataProviderExpression) {
4362
4641
  this.dataProviderExpression = HTML.getAncestorAttributeValue(this.parentElement, "dataProvider") || "";
4363
4642
  }
4364
- if (!this.dataProvider)
4365
- this.dataProvider = "sonic-queue-" + Queue.instanceCounter++;
4366
- this.configFilter();
4367
4643
  super.connectedCallback();
4368
4644
  this.key = this.getAttribute("key");
4369
4645
  if (!this.templates)
4370
4646
  this.templates = Array.from(this.querySelectorAll("template"));
4371
4647
  this.lastRequestTime = new Date().getTime();
4372
- const func = window.requestAnimationFrame;
4373
- func(() => this.next());
4648
+ await PublisherManager$1.getInstance().isLocalStrorageReady;
4649
+ this.configFilter();
4374
4650
  }
4375
4651
  configFilter() {
4376
4652
  var _a2;
4377
4653
  const dataFilterProvider = this.getAncestorAttributeValue("dataFilterProvider");
4378
- if (!dataFilterProvider)
4654
+ if (!dataFilterProvider) {
4655
+ this.next();
4379
4656
  return;
4657
+ }
4380
4658
  this.filterPublisher = PublisherManager$1.getInstance().get(dataFilterProvider);
4381
4659
  (_a2 = this.filterPublisher) == null ? void 0 : _a2.onInternalMutation(() => {
4382
- var _a3;
4383
- if (Object.keys((_a3 = this.filterPublisher) == null ? void 0 : _a3.get()).length == 0)
4384
- return;
4385
4660
  this.updateFilteredContent();
4386
4661
  });
4387
4662
  }
@@ -4402,7 +4677,7 @@ let Queue = class extends Subscriber$1(s$3) {
4402
4677
  searchParams.set(f2, filterData[f2].toString());
4403
4678
  }
4404
4679
  const searchHash = searchParams.toString();
4405
- if (searchHash == this.searchHash)
4680
+ if (searchHash == this.searchHash && !this.isFirstRequest)
4406
4681
  return;
4407
4682
  this.searchHash = searchHash;
4408
4683
  for (const dataProvider2 of this.listDataProviders) {
@@ -4410,19 +4685,24 @@ let Queue = class extends Subscriber$1(s$3) {
4410
4685
  }
4411
4686
  this.listDataProviders = [];
4412
4687
  clearTimeout(this.filterTimeoutId);
4413
- this.filterTimeoutId = setTimeout(() => {
4414
- const count = this.resultCount;
4415
- this.props = null;
4416
- this.resultCount = count;
4417
- this.requestId++;
4418
- this.next();
4419
- }, 250);
4688
+ this.filterTimeoutId = setTimeout(
4689
+ async () => {
4690
+ const count = this.resultCount;
4691
+ this.props = null;
4692
+ this.requestId++;
4693
+ this.resultCount = count;
4694
+ await PublisherManager$1.getInstance().isLocalStrorageReady;
4695
+ window.requestAnimationFrame(() => this.next());
4696
+ },
4697
+ this.isFirstRequest ? 0 : 400
4698
+ );
4699
+ this.isFirstRequest = false;
4420
4700
  }
4421
4701
  resetDuration() {
4422
4702
  this.lastRequestTime = new Date().getTime();
4423
4703
  }
4424
4704
  next(e2) {
4425
- var _a2, _b;
4705
+ var _a2;
4426
4706
  let offset = this.offset;
4427
4707
  const newTime = new Date().getTime();
4428
4708
  const requestDuration = newTime - this.lastRequestTime;
@@ -4431,7 +4711,7 @@ let Queue = class extends Subscriber$1(s$3) {
4431
4711
  }
4432
4712
  this.nextHadEvent = !!e2;
4433
4713
  if (e2) {
4434
- if (e2.detail.requestId != this.requestId)
4714
+ if (e2.detail.requestId < this.requestId)
4435
4715
  return;
4436
4716
  this.resultCount += e2.detail.props.length;
4437
4717
  if (!e2.detail.isFirstLoad || !e2.detail.props.length || this.dataProviderExpression.indexOf("$offset") == -1) {
@@ -4448,7 +4728,7 @@ let Queue = class extends Subscriber$1(s$3) {
4448
4728
  const item = props[props.length - 1];
4449
4729
  offset = parseInt(item.offset.toString()) + parseInt(item.limit.toString());
4450
4730
  }
4451
- if (requestDuration > 0 && e2)
4731
+ if (requestDuration > 0 && e2 && !this.localStorage)
4452
4732
  this.limit = Math.round(this.limit / requestDuration * this.targetRequestDuration);
4453
4733
  if (this.limit < 1)
4454
4734
  this.limit = 1;
@@ -4469,7 +4749,6 @@ let Queue = class extends Subscriber$1(s$3) {
4469
4749
  this.searchHash = searchParams.toString();
4470
4750
  dataProvider = endpoint + "?" + searchParams.toString();
4471
4751
  this.listDataProviders.push(dataProvider);
4472
- this.currentScrollPosition = (_b = document.scrollingElement) == null ? void 0 : _b.scrollTop;
4473
4752
  const newProps = [
4474
4753
  ...this.props,
4475
4754
  {
@@ -4484,69 +4763,67 @@ let Queue = class extends Subscriber$1(s$3) {
4484
4763
  this.lastRequestTime = new Date().getTime();
4485
4764
  }
4486
4765
  render() {
4487
- if (this.currentScrollPosition) {
4488
- window.requestAnimationFrame(() => {
4489
- if (document.scrollingElement && this.currentScrollPosition != void 0)
4490
- document.scrollingElement.scrollTop = this.currentScrollPosition;
4491
- this.currentScrollPosition = void 0;
4492
- });
4493
- }
4494
4766
  if (!Array.isArray(this.props))
4495
4767
  return b$1;
4496
- return y`${c$1(
4497
- this.props,
4498
- (item) => item.id,
4499
- (item, index) => {
4500
- var _a2;
4501
- const templates = index == 0 ? this.templates : (_a2 = this.templates) == null ? void 0 : _a2.filter((elt) => elt.getAttribute("data-value") != "no-item");
4502
- return y`<sonic-list fetch displayContents lazyload requestId="${this.requestId}" .itemPropertyMap="${this.itemPropertyMap}" ?debug="${this.defferedDebug === true}" @load="${this.next}" key="${this.key}" @loading="${this.resetDuration}" dataProvider="${item.dataProvider}" idKey="${this.idKey}" .templates="${templates}"></sonic-list>`;
4503
- }
4504
- )}`;
4768
+ return y`${o$1(this.props, (item, index) => {
4769
+ var _a2;
4770
+ const templates = index == 0 ? this.templates : (_a2 = this.templates) == null ? void 0 : _a2.filter((elt) => elt.getAttribute("data-value") != "no-item");
4771
+ return y`<sonic-list fetch cache="${this.cache}" displayContents lazyBoundsRatio="${this.lazyBoundsRatio}" ?lazyload="${!this.noLazyload}" localStorage="${this.localStorage}" requestId="${this.requestId}" .itemPropertyMap="${this.itemPropertyMap}" ?debug="${this.defferedDebug === true}" @load="${this.next}" key="${this.key}" @loading="${this.resetDuration}" dataProvider="${item.dataProvider}" idKey="${this.idKey}" .templates="${templates}"></sonic-list>`;
4772
+ })}`;
4505
4773
  }
4506
4774
  };
4507
4775
  Queue.instanceCounter = 0;
4508
- __decorateClass$V([
4776
+ __decorateClass$U([
4509
4777
  e$7({ type: Array })
4510
4778
  ], Queue.prototype, "templates", 2);
4511
- __decorateClass$V([
4779
+ __decorateClass$U([
4512
4780
  e$7({ type: Object })
4513
4781
  ], Queue.prototype, "itemPropertyMap", 2);
4514
- __decorateClass$V([
4782
+ __decorateClass$U([
4783
+ e$7()
4784
+ ], Queue.prototype, "cache", 2);
4785
+ __decorateClass$U([
4515
4786
  e$7()
4516
4787
  ], Queue.prototype, "targetRequestDuration", 2);
4517
- __decorateClass$V([
4788
+ __decorateClass$U([
4518
4789
  e$7()
4519
4790
  ], Queue.prototype, "limit", 2);
4520
- __decorateClass$V([
4791
+ __decorateClass$U([
4792
+ e$7()
4793
+ ], Queue.prototype, "lazyBoundsRatio", 2);
4794
+ __decorateClass$U([
4521
4795
  e$7()
4522
4796
  ], Queue.prototype, "offset", 2);
4523
- __decorateClass$V([
4797
+ __decorateClass$U([
4524
4798
  e$7()
4525
4799
  ], Queue.prototype, "resultCount", 2);
4526
- __decorateClass$V([
4800
+ __decorateClass$U([
4801
+ e$7({ type: Boolean })
4802
+ ], Queue.prototype, "noLazyload", 2);
4803
+ __decorateClass$U([
4527
4804
  e$7()
4528
4805
  ], Queue.prototype, "filteredFields", 2);
4529
- __decorateClass$V([
4806
+ __decorateClass$U([
4530
4807
  e$7({ type: String })
4531
4808
  ], Queue.prototype, "dataProviderExpression", 2);
4532
- __decorateClass$V([
4809
+ __decorateClass$U([
4533
4810
  e$7({ type: String })
4534
4811
  ], Queue.prototype, "idKey", 2);
4535
- Queue = __decorateClass$V([
4536
- e$8(tagName$R)
4812
+ Queue = __decorateClass$U([
4813
+ e$8(tagName$Q)
4537
4814
  ], Queue);
4538
- var __defProp$U = Object.defineProperty;
4539
- var __getOwnPropDesc$U = Object.getOwnPropertyDescriptor;
4540
- var __decorateClass$U = (decorators, target, key, kind) => {
4541
- var result = kind > 1 ? void 0 : kind ? __getOwnPropDesc$U(target, key) : target;
4815
+ var __defProp$T = Object.defineProperty;
4816
+ var __getOwnPropDesc$T = Object.getOwnPropertyDescriptor;
4817
+ var __decorateClass$T = (decorators, target, key, kind) => {
4818
+ var result = kind > 1 ? void 0 : kind ? __getOwnPropDesc$T(target, key) : target;
4542
4819
  for (var i2 = decorators.length - 1, decorator; i2 >= 0; i2--)
4543
4820
  if (decorator = decorators[i2])
4544
4821
  result = (kind ? decorator(target, key, result) : decorator(result)) || result;
4545
4822
  if (kind && result)
4546
- __defProp$U(target, key, result);
4823
+ __defProp$T(target, key, result);
4547
4824
  return result;
4548
4825
  };
4549
- const tagName$Q = "sonic-submit";
4826
+ const tagName$P = "sonic-submit";
4550
4827
  let Submit = class extends Subscriber$1(s$3) {
4551
4828
  constructor() {
4552
4829
  super(...arguments);
@@ -4708,23 +4985,23 @@ let Submit = class extends Subscriber$1(s$3) {
4708
4985
  }
4709
4986
  };
4710
4987
  Submit.styles = i$4`[data-disabled]{opacity:.3;pointer-events:none;user-select:none}`;
4711
- __decorateClass$U([
4988
+ __decorateClass$T([
4712
4989
  e$7({ type: String })
4713
4990
  ], Submit.prototype, "submitResultKey", 2);
4714
- __decorateClass$U([
4991
+ __decorateClass$T([
4715
4992
  e$7({ type: Boolean })
4716
4993
  ], Submit.prototype, "disabled", 2);
4717
- __decorateClass$U([
4994
+ __decorateClass$T([
4718
4995
  e$7({ type: String })
4719
4996
  ], Submit.prototype, "endPoint", 2);
4720
- __decorateClass$U([
4997
+ __decorateClass$T([
4721
4998
  e$7()
4722
4999
  ], Submit.prototype, "name", 2);
4723
- __decorateClass$U([
5000
+ __decorateClass$T([
4724
5001
  e$7()
4725
5002
  ], Submit.prototype, "value", 2);
4726
- Submit = __decorateClass$U([
4727
- e$8(tagName$Q)
5003
+ Submit = __decorateClass$T([
5004
+ e$8(tagName$P)
4728
5005
  ], Submit);
4729
5006
  var commonjsGlobal = typeof globalThis !== "undefined" ? globalThis : typeof window !== "undefined" ? window : typeof global !== "undefined" ? global : typeof self !== "undefined" ? self : {};
4730
5007
  var urlPattern = { exports: {} };
@@ -5163,18 +5440,18 @@ var urlPattern = { exports: {} };
5163
5440
  });
5164
5441
  })(urlPattern, urlPattern.exports);
5165
5442
  var UrlPattern = urlPattern.exports;
5166
- var __defProp$T = Object.defineProperty;
5167
- var __getOwnPropDesc$T = Object.getOwnPropertyDescriptor;
5168
- var __decorateClass$T = (decorators, target, key, kind) => {
5169
- var result = kind > 1 ? void 0 : kind ? __getOwnPropDesc$T(target, key) : target;
5443
+ var __defProp$S = Object.defineProperty;
5444
+ var __getOwnPropDesc$S = Object.getOwnPropertyDescriptor;
5445
+ var __decorateClass$S = (decorators, target, key, kind) => {
5446
+ var result = kind > 1 ? void 0 : kind ? __getOwnPropDesc$S(target, key) : target;
5170
5447
  for (var i2 = decorators.length - 1, decorator; i2 >= 0; i2--)
5171
5448
  if (decorator = decorators[i2])
5172
5449
  result = (kind ? decorator(target, key, result) : decorator(result)) || result;
5173
5450
  if (kind && result)
5174
- __defProp$T(target, key, result);
5451
+ __defProp$S(target, key, result);
5175
5452
  return result;
5176
5453
  };
5177
- const tagName$P = "sonic-router";
5454
+ const tagName$O = "sonic-router";
5178
5455
  let SonicRouter = class extends Subscriber$1(TemplatesContainer$1(s$3)) {
5179
5456
  constructor() {
5180
5457
  super(...arguments);
@@ -5240,31 +5517,31 @@ let SonicRouter = class extends Subscriber$1(TemplatesContainer$1(s$3)) {
5240
5517
  dataProvider = ((_a2 = match.shift()) == null ? void 0 : _a2.replace(regexp, dataProviderExpression)) || "";
5241
5518
  }
5242
5519
  }
5243
- return y`<div style="display:contents" dataProvider="${dataProvider}">${o$1(template)}</div>`;
5520
+ return y`<div style="display:contents" dataProvider="${dataProvider}">${o$2(template)}</div>`;
5244
5521
  }
5245
- return o$1(template);
5522
+ return o$2(template);
5246
5523
  }
5247
5524
  )}`;
5248
5525
  }
5249
5526
  };
5250
- __decorateClass$T([
5527
+ __decorateClass$S([
5251
5528
  e$7()
5252
5529
  ], SonicRouter.prototype, "location", 1);
5253
- SonicRouter = __decorateClass$T([
5254
- e$8(tagName$P)
5530
+ SonicRouter = __decorateClass$S([
5531
+ e$8(tagName$O)
5255
5532
  ], SonicRouter);
5256
- var __defProp$S = Object.defineProperty;
5257
- var __getOwnPropDesc$S = Object.getOwnPropertyDescriptor;
5258
- var __decorateClass$S = (decorators, target, key, kind) => {
5259
- var result = kind > 1 ? void 0 : kind ? __getOwnPropDesc$S(target, key) : target;
5533
+ var __defProp$R = Object.defineProperty;
5534
+ var __getOwnPropDesc$R = Object.getOwnPropertyDescriptor;
5535
+ var __decorateClass$R = (decorators, target, key, kind) => {
5536
+ var result = kind > 1 ? void 0 : kind ? __getOwnPropDesc$R(target, key) : target;
5260
5537
  for (var i2 = decorators.length - 1, decorator; i2 >= 0; i2--)
5261
5538
  if (decorator = decorators[i2])
5262
5539
  result = (kind ? decorator(target, key, result) : decorator(result)) || result;
5263
5540
  if (kind && result)
5264
- __defProp$S(target, key, result);
5541
+ __defProp$R(target, key, result);
5265
5542
  return result;
5266
5543
  };
5267
- const tagName$O = "sonic-redirect";
5544
+ const tagName$N = "sonic-redirect";
5268
5545
  let SonicRedirect = class extends Subscriber$1(s$3) {
5269
5546
  connectedCallback() {
5270
5547
  this.noShadowDom = "";
@@ -5293,21 +5570,21 @@ let SonicRedirect = class extends Subscriber$1(s$3) {
5293
5570
  }
5294
5571
  }
5295
5572
  };
5296
- SonicRedirect = __decorateClass$S([
5297
- e$8(tagName$O)
5573
+ SonicRedirect = __decorateClass$R([
5574
+ e$8(tagName$N)
5298
5575
  ], SonicRedirect);
5299
- var __defProp$R = Object.defineProperty;
5300
- var __getOwnPropDesc$R = Object.getOwnPropertyDescriptor;
5301
- var __decorateClass$R = (decorators, target, key, kind) => {
5302
- var result = kind > 1 ? void 0 : kind ? __getOwnPropDesc$R(target, key) : target;
5576
+ var __defProp$Q = Object.defineProperty;
5577
+ var __getOwnPropDesc$Q = Object.getOwnPropertyDescriptor;
5578
+ var __decorateClass$Q = (decorators, target, key, kind) => {
5579
+ var result = kind > 1 ? void 0 : kind ? __getOwnPropDesc$Q(target, key) : target;
5303
5580
  for (var i2 = decorators.length - 1, decorator; i2 >= 0; i2--)
5304
5581
  if (decorator = decorators[i2])
5305
5582
  result = (kind ? decorator(target, key, result) : decorator(result)) || result;
5306
5583
  if (kind && result)
5307
- __defProp$R(target, key, result);
5584
+ __defProp$Q(target, key, result);
5308
5585
  return result;
5309
5586
  };
5310
- const tagName$N = "sonic-states";
5587
+ const tagName$M = "sonic-states";
5311
5588
  let SonicStates = class extends Subscriber$1(TemplatesContainer$1(s$3)) {
5312
5589
  constructor() {
5313
5590
  super(...arguments);
@@ -5398,34 +5675,34 @@ let SonicStates = class extends Subscriber$1(TemplatesContainer$1(s$3)) {
5398
5675
  dataProvider = (_a2 = match.shift()) == null ? void 0 : _a2.replace(regexp, dataProviderExpression);
5399
5676
  }
5400
5677
  }
5401
- return y`<div style="display:contents" dataProvider="${dataProvider}">${o$1(template)}</div>`;
5678
+ return y`<div style="display:contents" dataProvider="${dataProvider}">${o$2(template)}</div>`;
5402
5679
  }
5403
- return o$1(template);
5680
+ return o$2(template);
5404
5681
  }
5405
5682
  )}`;
5406
5683
  }
5407
5684
  };
5408
- __decorateClass$R([
5685
+ __decorateClass$Q([
5409
5686
  e$7()
5410
5687
  ], SonicStates.prototype, "state", 2);
5411
- __decorateClass$R([
5688
+ __decorateClass$Q([
5412
5689
  e$7({ type: Boolean, reflect: true })
5413
5690
  ], SonicStates.prototype, "inverted", 2);
5414
- SonicStates = __decorateClass$R([
5415
- e$8(tagName$N)
5691
+ SonicStates = __decorateClass$Q([
5692
+ e$8(tagName$M)
5416
5693
  ], SonicStates);
5417
- var __defProp$Q = Object.defineProperty;
5418
- var __getOwnPropDesc$Q = Object.getOwnPropertyDescriptor;
5419
- var __decorateClass$Q = (decorators, target, key, kind) => {
5420
- var result = kind > 1 ? void 0 : kind ? __getOwnPropDesc$Q(target, key) : target;
5694
+ var __defProp$P = Object.defineProperty;
5695
+ var __getOwnPropDesc$P = Object.getOwnPropertyDescriptor;
5696
+ var __decorateClass$P = (decorators, target, key, kind) => {
5697
+ var result = kind > 1 ? void 0 : kind ? __getOwnPropDesc$P(target, key) : target;
5421
5698
  for (var i2 = decorators.length - 1, decorator; i2 >= 0; i2--)
5422
5699
  if (decorator = decorators[i2])
5423
5700
  result = (kind ? decorator(target, key, result) : decorator(result)) || result;
5424
5701
  if (kind && result)
5425
- __defProp$Q(target, key, result);
5702
+ __defProp$P(target, key, result);
5426
5703
  return result;
5427
5704
  };
5428
- const tagName$M = "sonic-scope";
5705
+ const tagName$L = "sonic-scope";
5429
5706
  let SonicScope = class extends s$3 {
5430
5707
  createRenderRoot() {
5431
5708
  return this;
@@ -5434,21 +5711,21 @@ let SonicScope = class extends s$3 {
5434
5711
  return y`<slot></slot>`;
5435
5712
  }
5436
5713
  };
5437
- SonicScope = __decorateClass$Q([
5438
- e$8(tagName$M)
5714
+ SonicScope = __decorateClass$P([
5715
+ e$8(tagName$L)
5439
5716
  ], SonicScope);
5440
- var __defProp$P = Object.defineProperty;
5441
- var __getOwnPropDesc$P = Object.getOwnPropertyDescriptor;
5442
- var __decorateClass$P = (decorators, target, key, kind) => {
5443
- var result = kind > 1 ? void 0 : kind ? __getOwnPropDesc$P(target, key) : target;
5717
+ var __defProp$O = Object.defineProperty;
5718
+ var __getOwnPropDesc$O = Object.getOwnPropertyDescriptor;
5719
+ var __decorateClass$O = (decorators, target, key, kind) => {
5720
+ var result = kind > 1 ? void 0 : kind ? __getOwnPropDesc$O(target, key) : target;
5444
5721
  for (var i2 = decorators.length - 1, decorator; i2 >= 0; i2--)
5445
5722
  if (decorator = decorators[i2])
5446
5723
  result = (kind ? decorator(target, key, result) : decorator(result)) || result;
5447
5724
  if (kind && result)
5448
- __defProp$P(target, key, result);
5725
+ __defProp$O(target, key, result);
5449
5726
  return result;
5450
5727
  };
5451
- const tagName$L = "sonic-example";
5728
+ const tagName$K = "sonic-example";
5452
5729
  let SonicComponent$2 = class extends Subscriber$1(s$3) {
5453
5730
  constructor() {
5454
5731
  super(...arguments);
@@ -5458,11 +5735,11 @@ let SonicComponent$2 = class extends Subscriber$1(s$3) {
5458
5735
  return y`<div>${this.text}</div>`;
5459
5736
  }
5460
5737
  };
5461
- __decorateClass$P([
5738
+ __decorateClass$O([
5462
5739
  e$7()
5463
5740
  ], SonicComponent$2.prototype, "text", 2);
5464
- SonicComponent$2 = __decorateClass$P([
5465
- e$8(tagName$L)
5741
+ SonicComponent$2 = __decorateClass$O([
5742
+ e$8(tagName$K)
5466
5743
  ], SonicComponent$2);
5467
5744
  const checkbox = {
5468
5745
  tagName: "sonic-checkbox"
@@ -5778,15 +6055,15 @@ class SDUIDescriptorTransformer {
5778
6055
  }
5779
6056
  }
5780
6057
  }
5781
- var __defProp$O = Object.defineProperty;
5782
- var __getOwnPropDesc$O = Object.getOwnPropertyDescriptor;
5783
- var __decorateClass$O = (decorators, target, key, kind) => {
5784
- var result = kind > 1 ? void 0 : kind ? __getOwnPropDesc$O(target, key) : target;
6058
+ var __defProp$N = Object.defineProperty;
6059
+ var __getOwnPropDesc$N = Object.getOwnPropertyDescriptor;
6060
+ var __decorateClass$N = (decorators, target, key, kind) => {
6061
+ var result = kind > 1 ? void 0 : kind ? __getOwnPropDesc$N(target, key) : target;
5785
6062
  for (var i2 = decorators.length - 1, decorator; i2 >= 0; i2--)
5786
6063
  if (decorator = decorators[i2])
5787
6064
  result = (kind ? decorator(target, key, result) : decorator(result)) || result;
5788
6065
  if (kind && result)
5789
- __defProp$O(target, key, result);
6066
+ __defProp$N(target, key, result);
5790
6067
  return result;
5791
6068
  };
5792
6069
  const Form = (superClass) => {
@@ -5834,22 +6111,22 @@ const Form = (superClass) => {
5834
6111
  this.requestUpdate();
5835
6112
  }
5836
6113
  }
5837
- __decorateClass$O([
6114
+ __decorateClass$N([
5838
6115
  e$7()
5839
6116
  ], FormInput2.prototype, "forceAutoFill", 2);
5840
- __decorateClass$O([
6117
+ __decorateClass$N([
5841
6118
  e$7({ type: String })
5842
6119
  ], FormInput2.prototype, "type", 1);
5843
- __decorateClass$O([
6120
+ __decorateClass$N([
5844
6121
  e$7()
5845
6122
  ], FormInput2.prototype, "description", 1);
5846
- __decorateClass$O([
6123
+ __decorateClass$N([
5847
6124
  e$7()
5848
6125
  ], FormInput2.prototype, "label", 1);
5849
- __decorateClass$O([
6126
+ __decorateClass$N([
5850
6127
  e$7({ type: Number })
5851
6128
  ], FormInput2.prototype, "tabindex", 2);
5852
- __decorateClass$O([
6129
+ __decorateClass$N([
5853
6130
  e$7({ type: String })
5854
6131
  ], FormInput2.prototype, "autocomplete", 2);
5855
6132
  return FormInput2;
@@ -5869,18 +6146,18 @@ window["concorde-mixins"] = {
5869
6146
  Subscriber,
5870
6147
  TemplatesContainer
5871
6148
  };
5872
- var __defProp$N = Object.defineProperty;
5873
- var __getOwnPropDesc$N = Object.getOwnPropertyDescriptor;
5874
- var __decorateClass$N = (decorators, target, key, kind) => {
5875
- var result = kind > 1 ? void 0 : kind ? __getOwnPropDesc$N(target, key) : target;
6149
+ var __defProp$M = Object.defineProperty;
6150
+ var __getOwnPropDesc$M = Object.getOwnPropertyDescriptor;
6151
+ var __decorateClass$M = (decorators, target, key, kind) => {
6152
+ var result = kind > 1 ? void 0 : kind ? __getOwnPropDesc$M(target, key) : target;
5876
6153
  for (var i2 = decorators.length - 1, decorator; i2 >= 0; i2--)
5877
6154
  if (decorator = decorators[i2])
5878
6155
  result = (kind ? decorator(target, key, result) : decorator(result)) || result;
5879
6156
  if (kind && result)
5880
- __defProp$N(target, key, result);
6157
+ __defProp$M(target, key, result);
5881
6158
  return result;
5882
6159
  };
5883
- const tagName$K = "sonic-sdui";
6160
+ const tagName$J = "sonic-sdui";
5884
6161
  let SonicSDUI = class extends Fetcher(Subscriber(s$3)) {
5885
6162
  constructor() {
5886
6163
  super(...arguments);
@@ -6045,24 +6322,24 @@ let SonicSDUI = class extends Fetcher(Subscriber(s$3)) {
6045
6322
  }
6046
6323
  }
6047
6324
  };
6048
- __decorateClass$N([
6325
+ __decorateClass$M([
6049
6326
  e$7()
6050
6327
  ], SonicSDUI.prototype, "sduiKey", 2);
6051
- __decorateClass$N([
6328
+ __decorateClass$M([
6052
6329
  e$7()
6053
6330
  ], SonicSDUI.prototype, "messagesKey", 2);
6054
- SonicSDUI = __decorateClass$N([
6055
- e$8(tagName$K)
6331
+ SonicSDUI = __decorateClass$M([
6332
+ e$8(tagName$J)
6056
6333
  ], SonicSDUI);
6057
- var __defProp$M = Object.defineProperty;
6058
- var __getOwnPropDesc$M = Object.getOwnPropertyDescriptor;
6059
- var __decorateClass$M = (decorators, target, key, kind) => {
6060
- var result = kind > 1 ? void 0 : kind ? __getOwnPropDesc$M(target, key) : target;
6061
- for (var i2 = decorators.length - 1, decorator; i2 >= 0; i2--)
6062
- if (decorator = decorators[i2])
6063
- result = (kind ? decorator(target, key, result) : decorator(result)) || result;
6334
+ var __defProp$L = Object.defineProperty;
6335
+ var __getOwnPropDesc$L = Object.getOwnPropertyDescriptor;
6336
+ var __decorateClass$L = (decorators, target, key, kind) => {
6337
+ var result = kind > 1 ? void 0 : kind ? __getOwnPropDesc$L(target, key) : target;
6338
+ for (var i2 = decorators.length - 1, decorator; i2 >= 0; i2--)
6339
+ if (decorator = decorators[i2])
6340
+ result = (kind ? decorator(target, key, result) : decorator(result)) || result;
6064
6341
  if (kind && result)
6065
- __defProp$M(target, key, result);
6342
+ __defProp$L(target, key, result);
6066
6343
  return result;
6067
6344
  };
6068
6345
  let SonicMix = class extends Subscriber(s$3) {
@@ -6144,24 +6421,24 @@ let SonicMix = class extends Subscriber(s$3) {
6144
6421
  SonicMix.styles = [
6145
6422
  i$4`:host{display:contents}`
6146
6423
  ];
6147
- __decorateClass$M([
6424
+ __decorateClass$L([
6148
6425
  e$7({ type: Object })
6149
6426
  ], SonicMix.prototype, "composition", 1);
6150
- SonicMix = __decorateClass$M([
6427
+ SonicMix = __decorateClass$L([
6151
6428
  e$8("sonic-mix")
6152
6429
  ], SonicMix);
6153
- var __defProp$L = Object.defineProperty;
6154
- var __getOwnPropDesc$L = Object.getOwnPropertyDescriptor;
6155
- var __decorateClass$L = (decorators, target, key, kind) => {
6156
- var result = kind > 1 ? void 0 : kind ? __getOwnPropDesc$L(target, key) : target;
6430
+ var __defProp$K = Object.defineProperty;
6431
+ var __getOwnPropDesc$K = Object.getOwnPropertyDescriptor;
6432
+ var __decorateClass$K = (decorators, target, key, kind) => {
6433
+ var result = kind > 1 ? void 0 : kind ? __getOwnPropDesc$K(target, key) : target;
6157
6434
  for (var i2 = decorators.length - 1, decorator; i2 >= 0; i2--)
6158
6435
  if (decorator = decorators[i2])
6159
6436
  result = (kind ? decorator(target, key, result) : decorator(result)) || result;
6160
6437
  if (kind && result)
6161
- __defProp$L(target, key, result);
6438
+ __defProp$K(target, key, result);
6162
6439
  return result;
6163
6440
  };
6164
- const tagName$J = "sonic-value";
6441
+ const tagName$I = "sonic-value";
6165
6442
  let SonicValue = class extends Subscriber(s$3) {
6166
6443
  connectedCallback() {
6167
6444
  this.setAttribute("subDataProvider", this.getAttribute("key"));
@@ -6170,30 +6447,34 @@ let SonicValue = class extends Subscriber(s$3) {
6170
6447
  render() {
6171
6448
  if (typeof this.props === "object" || this.props === void 0)
6172
6449
  return y`<slot name="prefix"></slot><slot></slot><slot name="suffix"></slot>`;
6173
- return y`${o$2(this.props.toString())}<slot name="prefix"></slot><slot></slot><slot name="suffix"></slot>`;
6450
+ return y`${o$3(this.props.toString())}<slot name="prefix"></slot><slot></slot><slot name="suffix"></slot>`;
6174
6451
  }
6175
6452
  };
6176
- SonicValue = __decorateClass$L([
6177
- e$8(tagName$J)
6453
+ SonicValue = __decorateClass$K([
6454
+ e$8(tagName$I)
6178
6455
  ], SonicValue);
6179
- const coreVariables = i$4`:host{--sc-font-family-base:"Inter var","Inter",-apple-system,system-ui,BlinkMacSystemFont,"Segoe UI",Roboto,"Helvetica Neue",Arial,sans-serif;--sc-font-weight-base:400;--sc-font-style-base:normal;--sc-headings-font-family:var(--sc-font-family-base);--sc-headings-font-style:var(--sc-font-style-base);--sc-headings-line-height:1.1;--sc-headings-font-weight:700;--sc-headings-text-transform:none;--sc-btn-font-weight:var(--sc-font-weight-base);--sc-btn-font-family:var(--sc-font-family-base);--sc-btn-font-style:var(--sc-font-style-base);--sc-rounded-sm:calc(var(--sc-rounded) * 0.5);--sc-rounded:0.375rem;--sc-rounded-md:calc(var(--sc-rounded) * 1.8);--sc-rounded-lg:calc(var(--sc-rounded) * 3);--sc-rounded-xl:calc(var(--sc-rounded) * 7);--sc-rounded-size-intensity:calc((1em - 1rem) * 0.4);--sc-btn-rounded-intensity:1.4;--sc-btn-font-weight:500;--sc-btn-rounded:calc((var(--sc-rounded) + var(--sc-rounded-size-intensity)) * var(--sc-btn-rounded-intensity));--sc-placeholder-bg:rgba(17, 24, 39, 0.05);--sc-shadow-sm:0 1px 3px 0 rgb(0 0 0 / 0.1),0 1px 2px -1px rgb(0 0 0 / 0.1);--sc-shadow:0 4px 6px -1px rgb(0 0 0 / 0.1),0 2px 4px -2px rgb(0 0 0 / 0.1);--sc-shadow-lg:0 10px 15px 0px rgb(0 0 0 / 0.1),0 4px 6px -4px rgb(0 0 0 / 0.1);--sc-shadow-xl:0 20px 25px -5px rgb(0 0 0 / 0.1),0 8px 10px -6px rgb(0 0 0 / 0.1);--sc-shadow-2xl:0 25px 50px -12px rgb(0 0 0 / 0.25);--sc-border-width:max(1px, 0.12rem);--sc-border-color:var(--sc-base-200);--sc-form-height:2.5em;--sc-form-border-width:var(--sc-border-width);--sc-input-bg:var(--sc-base-100);--sc-input-border-color:var(--sc-input-bg);--sc-input-rounded-intensity:1.4;--sc-input-rounded:calc(
6180
- (var(--sc-rounded) + var(--sc-rounded-size-intensity)) * var(--sc-input-rounded-intensity)
6456
+ const coreVariables = i$4`:host{--sc-font-family-base:"Inter var","Inter",-apple-system,system-ui,BlinkMacSystemFont,"Segoe UI",Roboto,"Helvetica Neue",Arial,sans-serif;--sc-font-weight-base:400;--sc-font-style-base:normal;--sc-headings-font-family:var(--sc-font-family-base),sans-serif;--sc-headings-font-style:var(--sc-font-style-base);--sc-headings-line-height:1.1;--sc-headings-font-weight:700;--sc-headings-text-transform:none;--sc-btn-font-weight:var(--sc-font-weight-base);--sc-btn-font-family:var(--sc-font-family-base);--sc-btn-font-style:var(--sc-font-style-base);--sc-rounded-sm:calc(var(--sc-rounded) * 0.5);--sc-rounded:0.375rem;--sc-rounded-md:calc(var(--sc-rounded) * 1.8);--sc-rounded-lg:calc(var(--sc-rounded) * 3);--sc-rounded-xl:calc(var(--sc-rounded) * 7);--sc-rounded-size-intensity:calc((1em - 1rem) * 0.4);--sc-btn-rounded-intensity:1.4;--sc-btn-font-weight:500;--sc-btn-rounded:calc(
6457
+ (var(--sc-rounded) + var(--sc-rounded-size-intensity)) *
6458
+ var(--sc-btn-rounded-intensity)
6459
+ );--sc-placeholder-bg:rgba(17, 24, 39, 0.05);--sc-shadow-sm:0 1px 3px 0 rgb(0 0 0 / 0.1),0 1px 2px -1px rgb(0 0 0 / 0.1);--sc-shadow:0 4px 6px -1px rgb(0 0 0 / 0.1),0 2px 4px -2px rgb(0 0 0 / 0.1);--sc-shadow-lg:0 10px 15px 0px rgb(0 0 0 / 0.1),0 4px 6px -4px rgb(0 0 0 / 0.1);--sc-shadow-xl:0 20px 25px -5px rgb(0 0 0 / 0.1),0 8px 10px -6px rgb(0 0 0 / 0.1);--sc-shadow-2xl:0 25px 50px -12px rgb(0 0 0 / 0.25);--sc-border-width:max(1px, 0.12rem);--sc-border-color:var(--sc-base-200);--sc-form-height:2.5em;--sc-form-border-width:var(--sc-border-width);--sc-input-bg:var(--sc-base-100);--sc-input-border-color:var(--sc-input-bg);--sc-input-rounded-intensity:1.4;--sc-input-rounded:calc(
6460
+ (var(--sc-rounded) + var(--sc-rounded-size-intensity)) *
6461
+ var(--sc-input-rounded-intensity)
6181
6462
  );--sc-label-font-weight:500;--sc-contrast-content:#fff;--sc-contrast:#11151f;--sc-scrollbar-bg:var(--sc-base-400);--sc-body-bg:var(--sc-base)}`;
6182
6463
  const light = i$4`:host{--sc-primary:var(--sc-base-800);--sc-info:#2563eb;--sc-danger:#f43f5e;--sc-warning:#f97316;--sc-success:#14b8a6;--sc-primary-content:var(--sc-base);--sc-info-content:var(--sc-base);--sc-danger-content:var(--sc-base);--sc-warning-content:var(--sc-base);--sc-success-content:var(--sc-base);--sc-base:#fff;--sc-base-50:#f8fafc;--sc-base-100:#f1f5f9;--sc-base-200:#e2e8f0;--sc-base-300:#cbd5e1;--sc-base-400:#94a3b8;--sc-base-500:#64748b;--sc-base-600:#475569;--sc-base-700:#334155;--sc-base-800:#1e293b;--sc-base-900:#0f172a;--sc-base-content:var(--sc-base-700);--sc-input-bg:var(--sc-base-100);--sc-input-color:var(--sc-base-content)}`;
6183
6464
  const darkCss = i$4``;
6184
6465
  const dark = i$4`:host([theme=dark]){${darkCss}}@media (prefers-color-scheme:dark){:host([theme=auto]){${darkCss}}}`;
6185
- var __defProp$K = Object.defineProperty;
6186
- var __getOwnPropDesc$K = Object.getOwnPropertyDescriptor;
6187
- var __decorateClass$K = (decorators, target, key, kind) => {
6188
- var result = kind > 1 ? void 0 : kind ? __getOwnPropDesc$K(target, key) : target;
6466
+ var __defProp$J = Object.defineProperty;
6467
+ var __getOwnPropDesc$J = Object.getOwnPropertyDescriptor;
6468
+ var __decorateClass$J = (decorators, target, key, kind) => {
6469
+ var result = kind > 1 ? void 0 : kind ? __getOwnPropDesc$J(target, key) : target;
6189
6470
  for (var i2 = decorators.length - 1, decorator; i2 >= 0; i2--)
6190
6471
  if (decorator = decorators[i2])
6191
6472
  result = (kind ? decorator(target, key, result) : decorator(result)) || result;
6192
6473
  if (kind && result)
6193
- __defProp$K(target, key, result);
6474
+ __defProp$J(target, key, result);
6194
6475
  return result;
6195
6476
  };
6196
- const tagName$I = "sonic-theme";
6477
+ const tagName$H = "sonic-theme";
6197
6478
  let Theme = class extends s$3 {
6198
6479
  constructor() {
6199
6480
  super(...arguments);
@@ -6208,6 +6489,7 @@ let Theme = class extends s$3 {
6208
6489
  this.postCSSVars();
6209
6490
  }
6210
6491
  postCSSVars() {
6492
+ var _a2;
6211
6493
  const stylesheets = document.styleSheets;
6212
6494
  const ssLength = stylesheets.length;
6213
6495
  const fontUrls = [];
@@ -6216,14 +6498,18 @@ let Theme = class extends s$3 {
6216
6498
  if (ss.href && (ss.href.includes("googleapis") || ss.href.includes("typekit.net")))
6217
6499
  fontUrls.push(ss.href);
6218
6500
  }
6501
+ const theme = {
6502
+ variables: this.getCssVariables(),
6503
+ fonts: fontUrls
6504
+ };
6505
+ (_a2 = PublisherManager.get("sonic-theme")) == null ? void 0 : _a2.set(theme);
6219
6506
  document.querySelectorAll("iframe").forEach(
6220
6507
  (elt) => {
6221
- var _a2;
6222
- return (_a2 = elt.contentWindow) == null ? void 0 : _a2.postMessage(
6508
+ var _a3;
6509
+ return (_a3 = elt.contentWindow) == null ? void 0 : _a3.postMessage(
6223
6510
  {
6224
6511
  type: "SonicTheme",
6225
- variables: this.getCssVariables(),
6226
- fonts: fontUrls
6512
+ ...theme
6227
6513
  },
6228
6514
  "*"
6229
6515
  );
@@ -6238,7 +6524,10 @@ let Theme = class extends s$3 {
6238
6524
  }
6239
6525
  getCssVariables() {
6240
6526
  const names = [];
6241
- const stylesheets = [...Theme.styles.map((s2) => s2.styleSheet), ...Array.from(document.styleSheets)];
6527
+ const stylesheets = [
6528
+ ...Theme.styles.map((s2) => s2.styleSheet),
6529
+ ...Array.from(document.styleSheets)
6530
+ ];
6242
6531
  for (const stylesheet of stylesheets) {
6243
6532
  try {
6244
6533
  if (!stylesheet)
@@ -6271,35 +6560,35 @@ Theme.styles = [
6271
6560
  light,
6272
6561
  dark,
6273
6562
  coreVariables,
6274
- i$4`:host([background]){display:block!important;background:var(--sc-body-bg)!important;min-height:100vh}:host([color]){color:var(--sc-base-content)}:host([font]){font-family:var(--sc-font-family-base);font-weight:var(--sc-font-weight-base);font-style:var(--sc-font-style-base)}`
6563
+ i$4`:host([background]){display:block!important;background:var(--sc-body-bg)!important;min-height:100vh}:host([color]){color:var(--sc-base-content)}:host([font]){font-family:var(--sc-font-family-base),sans-serif;font-weight:var(--sc-font-weight-base);font-style:var(--sc-font-style-base)}`
6275
6564
  ];
6276
- __decorateClass$K([
6565
+ __decorateClass$J([
6277
6566
  e$7({ type: String, reflect: true })
6278
6567
  ], Theme.prototype, "theme", 2);
6279
- __decorateClass$K([
6568
+ __decorateClass$J([
6280
6569
  e$7({ type: Boolean, reflect: true })
6281
6570
  ], Theme.prototype, "background", 2);
6282
- __decorateClass$K([
6571
+ __decorateClass$J([
6283
6572
  e$7({ type: Boolean, reflect: true })
6284
6573
  ], Theme.prototype, "color", 2);
6285
- __decorateClass$K([
6574
+ __decorateClass$J([
6286
6575
  e$7({ type: Boolean, reflect: true })
6287
6576
  ], Theme.prototype, "font", 2);
6288
- Theme = __decorateClass$K([
6289
- e$8(tagName$I)
6577
+ Theme = __decorateClass$J([
6578
+ e$8(tagName$H)
6290
6579
  ], Theme);
6291
- var __defProp$J = Object.defineProperty;
6292
- var __getOwnPropDesc$J = Object.getOwnPropertyDescriptor;
6293
- var __decorateClass$J = (decorators, target, key, kind) => {
6294
- var result = kind > 1 ? void 0 : kind ? __getOwnPropDesc$J(target, key) : target;
6580
+ var __defProp$I = Object.defineProperty;
6581
+ var __getOwnPropDesc$I = Object.getOwnPropertyDescriptor;
6582
+ var __decorateClass$I = (decorators, target, key, kind) => {
6583
+ var result = kind > 1 ? void 0 : kind ? __getOwnPropDesc$I(target, key) : target;
6295
6584
  for (var i2 = decorators.length - 1, decorator; i2 >= 0; i2--)
6296
6585
  if (decorator = decorators[i2])
6297
6586
  result = (kind ? decorator(target, key, result) : decorator(result)) || result;
6298
6587
  if (kind && result)
6299
- __defProp$J(target, key, result);
6588
+ __defProp$I(target, key, result);
6300
6589
  return result;
6301
6590
  };
6302
- const tagName$H = "sonic-badge";
6591
+ const tagName$G = "sonic-badge";
6303
6592
  let Badge = class extends s$3 {
6304
6593
  constructor() {
6305
6594
  super(...arguments);
@@ -6313,22 +6602,22 @@ let Badge = class extends s$3 {
6313
6602
  };
6314
6603
  Badge.styles = [
6315
6604
  fontSize,
6316
- i$4`:host{--sc-badge-gap:0.3em;--sc-badge-py:0.17em;--sc-badge-px:0.66em;--sc-fs:1rem;--sc-badge-color:var(--sc-base-content, #1f2937);--sc-badge-bg:var(--sc-base-200, #e5e7eb);--sc-badge-border-with:var(--sc-form-border-width, 0.1rem);--sc-badge-border-color:transparent;--sc-badge-border:var(--sc-badge-border-with) solid var(--sc-badge-border-color);--sc-badge-rounded:99px;--sc-badge-fw:var(--sc-font-weight-base);display:inline-flex;align-items:center;box-sizing:border-box;line-height:var(--sc-lh);border-radius:var(--sc-badge-rounded);background:var(--sc-badge-bg);color:var(--sc-badge-color);font-family:var(--sc-badge-ff,var(--sc-font-family-base,inherit));font-weight:var(--sc-badge-fw);padding-top:var(--sc-badge-py);padding-bottom:var(--sc-badge-py);padding-left:var(--sc-badge-px);padding-right:var(--sc-badge-px);min-height:calc(var(--sc-badge-px) * 2);border:var(--sc-badge-border);-webkit-print-color-adjust:exact}:host([type=primary]){--sc-badge-color:var(--sc-primary-content);--sc-badge-bg:var(--sc-primary)}:host([type=warning]){--sc-badge-color:var(--sc-warning-content);--sc-badge-bg:var(--sc-warning)}:host([type=danger]){--sc-badge-color:var(--sc-danger-content);--sc-badge-bg:var(--sc-danger)}:host([type=info]){--sc-badge-color:var(--sc-info-content);--sc-badge-bg:var(--sc-info)}:host([type=success]){--sc-badge-color:var(--sc-success-content);--sc-badge-bg:var(--sc-success)}:host([type=neutral]){--sc-badge-color:var(--sc-base);--sc-badge-bg:var(--sc-base-content)}:host{font-size:var(--sc-fs);gap:var(--sc-badge-gap)}:host([size="2xs"]){--sc-badge-gap:0.35em}:host([size=xs]){--sc-badge-gap:0.35em}:host([size=sm]){--sc-badge-gap:0.35em}:host([size=lg]){--sc-lh:1.2;--sc-badge-gap:0.5em}:host([size=xl]){--sc-lh:1.2;--sc-badge-gap:0.5em}:host([variant=outline][type]){border-width:var(--sc-badge-border-with)!important;border-color:var(--sc-badge-bg);color:var(--sc-badge-bg);background:0 0}:host([variant=outline][type=default]){border-color:var(--sc-base-400);color:var(--sc-base-500);background:0 0}:host([variant=ghost][type]){color:var(--sc-badge-bg);background:0 0;padding:0}:host([variant=ghost][type=default]){color:var(--sc-badge-color);background:0 0}:host([ellipsis]){flex-wrap:nowrap;white-space:nowrap;max-width:100%}:host([ellipsis]) slot{overflow:hidden;display:block;text-overflow:ellipsis;white-space:nowrap;max-width:100%}slot[name=prefix],slot[name=suffix]{flex-shrink:0}`
6605
+ i$4`:host{--sc-badge-gap:0.3em;--sc-badge-py:0.17em;--sc-badge-px:0.66em;--sc-fs:1rem;--sc-badge-color:var(--sc-base-content, #1f2937);--sc-badge-bg:var(--sc-base-200, #e5e7eb);--sc-badge-border-with:var(--sc-form-border-width, 0.1rem);--sc-badge-border-color:transparent;--sc-badge-border:var(--sc-badge-border-with) solid var(--sc-badge-border-color);--sc-badge-rounded:0.85em;--sc-badge-fw:var(--sc-font-weight-base);display:inline-flex;align-items:center;box-sizing:border-box;line-height:var(--sc-lh);border-radius:var(--sc-badge-rounded);background:var(--sc-badge-bg);color:var(--sc-badge-color);font-family:var(--sc-badge-ff,var(--sc-font-family-base,inherit));font-weight:var(--sc-badge-fw);padding-top:var(--sc-badge-py);padding-bottom:var(--sc-badge-py);padding-left:var(--sc-badge-px);padding-right:var(--sc-badge-px);min-height:calc(var(--sc-badge-px) * 2);border:var(--sc-badge-border);-webkit-print-color-adjust:exact}:host([type=primary]){--sc-badge-color:var(--sc-primary-content);--sc-badge-bg:var(--sc-primary)}:host([type=warning]){--sc-badge-color:var(--sc-warning-content);--sc-badge-bg:var(--sc-warning)}:host([type=danger]){--sc-badge-color:var(--sc-danger-content);--sc-badge-bg:var(--sc-danger)}:host([type=info]){--sc-badge-color:var(--sc-info-content);--sc-badge-bg:var(--sc-info)}:host([type=success]){--sc-badge-color:var(--sc-success-content);--sc-badge-bg:var(--sc-success)}:host([type=neutral]){--sc-badge-color:var(--sc-base);--sc-badge-bg:var(--sc-base-content)}:host{font-size:var(--sc-fs);gap:var(--sc-badge-gap)}:host([size="2xs"]){--sc-badge-gap:0.35em}:host([size=xs]){--sc-badge-gap:0.35em}:host([size=sm]){--sc-badge-gap:0.35em}:host([size=lg]){--sc-lh:1.2;--sc-badge-gap:0.5em}:host([size=xl]){--sc-lh:1.2;--sc-badge-gap:0.5em}:host([contrast]){--sc-badge-color:var(--sc-contrast-content);--sc-badge-bg:var(--sc-contrast)}:host([variant=outline][type]){border-width:var(--sc-badge-border-with)!important;border-color:var(--sc-badge-bg);color:var(--sc-badge-bg);background:0 0}:host([variant=outline][type=default]){border-color:var(--sc-base-400);color:var(--sc-base-500);background:0 0}:host([variant=ghost][type]){color:var(--sc-badge-bg);background:0 0;padding:0}:host([variant=ghost][type=default]){color:var(--sc-badge-color);background:0 0}:host([ellipsis]){flex-wrap:nowrap;white-space:nowrap;max-width:100%}:host([ellipsis]) slot{overflow:hidden;display:block;text-overflow:ellipsis;white-space:nowrap;max-width:100%}slot[name=prefix],slot[name=suffix]{flex-shrink:0}`
6317
6606
  ];
6318
- __decorateClass$J([
6607
+ __decorateClass$I([
6319
6608
  e$7({ type: String, reflect: true })
6320
6609
  ], Badge.prototype, "type", 2);
6321
- __decorateClass$J([
6610
+ __decorateClass$I([
6322
6611
  e$7({ type: String, reflect: true })
6323
6612
  ], Badge.prototype, "variant", 2);
6324
- __decorateClass$J([
6613
+ __decorateClass$I([
6325
6614
  e$7({ type: String, reflect: true })
6326
6615
  ], Badge.prototype, "size", 2);
6327
- __decorateClass$J([
6616
+ __decorateClass$I([
6328
6617
  e$7({ type: Boolean, reflect: true })
6329
6618
  ], Badge.prototype, "ellipsis", 2);
6330
- Badge = __decorateClass$J([
6331
- e$8(tagName$H)
6619
+ Badge = __decorateClass$I([
6620
+ e$8(tagName$G)
6332
6621
  ], Badge);
6333
6622
  class Electron {
6334
6623
  static fixBlankLink(link) {
@@ -6341,18 +6630,18 @@ class Electron {
6341
6630
  }
6342
6631
  }
6343
6632
  }
6344
- var __defProp$I = Object.defineProperty;
6345
- var __getOwnPropDesc$I = Object.getOwnPropertyDescriptor;
6346
- var __decorateClass$I = (decorators, target, key, kind) => {
6347
- var result = kind > 1 ? void 0 : kind ? __getOwnPropDesc$I(target, key) : target;
6633
+ var __defProp$H = Object.defineProperty;
6634
+ var __getOwnPropDesc$H = Object.getOwnPropertyDescriptor;
6635
+ var __decorateClass$H = (decorators, target, key, kind) => {
6636
+ var result = kind > 1 ? void 0 : kind ? __getOwnPropDesc$H(target, key) : target;
6348
6637
  for (var i2 = decorators.length - 1, decorator; i2 >= 0; i2--)
6349
6638
  if (decorator = decorators[i2])
6350
6639
  result = (kind ? decorator(target, key, result) : decorator(result)) || result;
6351
6640
  if (kind && result)
6352
- __defProp$I(target, key, result);
6641
+ __defProp$H(target, key, result);
6353
6642
  return result;
6354
6643
  };
6355
- const tagName$G = "sonic-link";
6644
+ const tagName$F = "sonic-link";
6356
6645
  let Link = class extends s$3 {
6357
6646
  constructor() {
6358
6647
  super(...arguments);
@@ -6401,33 +6690,33 @@ let Link = class extends s$3 {
6401
6690
  Link.styles = [
6402
6691
  i$4`a{color:inherit;text-decoration:none;display:contents}`
6403
6692
  ];
6404
- __decorateClass$I([
6693
+ __decorateClass$H([
6405
6694
  e$7({ type: String })
6406
6695
  ], Link.prototype, "href", 2);
6407
- __decorateClass$I([
6696
+ __decorateClass$H([
6408
6697
  e$7({ type: String })
6409
6698
  ], Link.prototype, "autoActive", 2);
6410
- __decorateClass$I([
6699
+ __decorateClass$H([
6411
6700
  e$7({ type: String })
6412
6701
  ], Link.prototype, "target", 1);
6413
- __decorateClass$I([
6702
+ __decorateClass$H([
6414
6703
  e$7({ type: Boolean })
6415
6704
  ], Link.prototype, "pushState", 2);
6416
- Link = __decorateClass$I([
6417
- e$8(tagName$G)
6705
+ Link = __decorateClass$H([
6706
+ e$8(tagName$F)
6418
6707
  ], Link);
6419
- var __defProp$H = Object.defineProperty;
6420
- var __getOwnPropDesc$H = Object.getOwnPropertyDescriptor;
6421
- var __decorateClass$H = (decorators, target, key, kind) => {
6422
- var result = kind > 1 ? void 0 : kind ? __getOwnPropDesc$H(target, key) : target;
6708
+ var __defProp$G = Object.defineProperty;
6709
+ var __getOwnPropDesc$G = Object.getOwnPropertyDescriptor;
6710
+ var __decorateClass$G = (decorators, target, key, kind) => {
6711
+ var result = kind > 1 ? void 0 : kind ? __getOwnPropDesc$G(target, key) : target;
6423
6712
  for (var i2 = decorators.length - 1, decorator; i2 >= 0; i2--)
6424
6713
  if (decorator = decorators[i2])
6425
6714
  result = (kind ? decorator(target, key, result) : decorator(result)) || result;
6426
6715
  if (kind && result)
6427
- __defProp$H(target, key, result);
6716
+ __defProp$G(target, key, result);
6428
6717
  return result;
6429
6718
  };
6430
- const tagName$F = "sonic-progress";
6719
+ const tagName$E = "sonic-progress";
6431
6720
  let Progress = class extends s$3 {
6432
6721
  constructor() {
6433
6722
  super(...arguments);
@@ -6444,27 +6733,28 @@ Progress.styles = [
6444
6733
  fontSize,
6445
6734
  i$4`:host{--sc-progress-bg:var(--sc-input-bg, var(--sc-base-100, #f5f5f5));--sc-progress-color:var(--sc-base-content, #1f2937);--sc-progress-height:0.6em;--sc-progress-fs:var(--sc-fs, 1rem);--sc-progress-fw:500;--sc-progress-rounded:var(--sc-rounded-lg);display:block;line-height:1.2;font-weight:var(--sc-progress-fw);font-size:var(--sc-progress-fs)}progress{position:relative;width:100%;-webkit-appearance:none;appearance:none;overflow:hidden;border:none;height:var(--sc-progress-height);border-radius:var(--sc-progress-rounded);background-color:var(--sc-progress-bg);color:var(--sc-progress-color)}progress::-moz-progress-bar{background-color:var(--sc-progress-color);border-radius:var(--sc-progress-rounded)}progress:not([value])::-moz-progress-bar{background-color:var(--sc-progress-bg)}progress::-webkit-progress-bar{background-color:var(--sc-progress-bg)}progress::-webkit-progress-value{background-color:var(--sc-progress-color);border-radius:var(--sc-progress-rounded)}progress:indeterminate:after{background-color:var(--sc-progress-color);content:"";position:absolute;top:0;bottom:0;left:-40%;width:33.333333%;border-radius:var(--sc-progress-rounded);animation:progress-loading 3s infinite ease-in-out}@keyframes progress-loading{50%{left:107%}}:host([type=warning]){--sc-progress-color:var(--sc-warning)}:host([type=danger]){--sc-progress-color:var(--sc-danger)}:host([type=info]){--sc-progress-color:var(--sc-info)}:host([type=success]){--sc-progress-color:var(--sc-success)}:host([invert]){--sc-progress-bg:rgba(200, 200, 200, 0.1)}:host([type=default][invert]){--sc-progress-color:var(--sc-base)}slot[name=remaining]{font-weight:var(--sc-font-weight-base);font-size:.85em;margin-top:.5em}slot[name=remaining]::slotted(*){margin-left:auto}slot:not([name]){color:var(--sc-progress-color)}.slot-container{display:flex;justify-content:space-between;gap:.5em;margin-top:.15em}`
6446
6735
  ];
6447
- __decorateClass$H([
6736
+ __decorateClass$G([
6448
6737
  e$7({ type: Number })
6449
6738
  ], Progress.prototype, "value", 2);
6450
- __decorateClass$H([
6739
+ __decorateClass$G([
6451
6740
  e$7({ type: Number })
6452
6741
  ], Progress.prototype, "max", 2);
6453
- __decorateClass$H([
6742
+ __decorateClass$G([
6454
6743
  e$7({ type: Boolean })
6455
6744
  ], Progress.prototype, "invert", 2);
6456
- __decorateClass$H([
6745
+ __decorateClass$G([
6457
6746
  e$7({ type: String, reflect: true })
6458
6747
  ], Progress.prototype, "type", 2);
6459
- __decorateClass$H([
6748
+ __decorateClass$G([
6460
6749
  e$7({ type: String, reflect: true })
6461
6750
  ], Progress.prototype, "size", 2);
6462
- Progress = __decorateClass$H([
6463
- e$8(tagName$F)
6751
+ Progress = __decorateClass$G([
6752
+ e$8(tagName$E)
6464
6753
  ], Progress);
6754
+ const passwordToggle = i$4`.password-toggle{color:var(--sc-input-c);font-size:var(--sc-input-fs);cursor:pointer;margin-right:calc(-.5 * var(--sc-input-px))}:host([inlineContent]) .has-suffix .password-toggle{margin-right:0}`;
6465
6755
  const label = i$4`:host{--sc-label-fs:var(--sc-fs, 1rem);--sc-label-fw:var(--sc-label-font-weight)}label{font-size:var(--sc-label-fs);font-weight:var(--sc-label-fw);line-height:1.2}.form-label{margin-bottom:.22em;display:block}`;
6466
6756
  const description = i$4`.form-description{color:var(--sc-base-400);font-size:.85em;margin-top:.2em;display:block}`;
6467
- const formControl = i$4`*{box-sizing:border-box}:host{--sc-input-height:var(--sc-form-height);--sc-input-c:var(--sc-input-color, var(--sc-base-content));--sc-input-b-width:var(--sc-form-border-width);--sc-input-b-color:var(--sc-input-border-color);--sc-item-rounded-tr:var(--sc-input-rounded);--sc-item-rounded-tl:var(--sc-input-rounded);--sc-item-rounded-bl:var(--sc-input-rounded);--sc-item-rounded-br:var(--sc-input-rounded);--sc-input-fs:var(--sc-fs, 1rem);--sc-input-ff:inherit;--sc-input-py:0.55em;--sc-input-px:clamp(0.3em, 8%, 1.1em);--sc-input-background:var(--sc-input-bg);--sc-input-addon-c:var(--sc-input-addon-color, var(--sc-base));--sc-input-addon-bg:var(--sc-input-c)}.form-element{display:block;flex-grow:1;width:100%;line-height:1.1;color:var(--sc-input-c);border-radius:var(--sc-item-rounded-tl) var(--sc-item-rounded-tr) var(--sc-item-rounded-br) var(--sc-item-rounded-bl);font-family:var(--sc-input-ff);background-color:var(--sc-input-background);border:var(--sc-input-b-width) solid var(--sc-input-b-color,var(--sc-base-300,#aaa));width:100%;font-size:var(--sc-input-fs);padding-top:var(--sc-input-py);padding-bottom:var(--sc-input-py);padding-left:var(--sc-input-px);padding-right:var(--sc-input-px);min-height:var(--sc-input-height)}.form-control{display:flex;width:100%}:host(:not([inlineContent])) .has-prefix slot[name=prefix],:host(:not([inlineContent])) .has-suffix slot[name=suffix]{min-width:var(--sc-input-height);box-sizing:border-box;display:flex;align-items:center;justify-content:center;line-height:1.1;flex-shrink:0;padding-left:clamp(.25em,3%,calc(.33 * var(--sc-input-px)));padding-right:clamp(.25em,3%,calc(.33 * var(--sc-input-px)))}:host(:not([inlineContent])) slot[name=prefix]{border-radius:var(--sc-item-rounded-tl) 0 0 var(--sc-item-rounded-bl);background-color:var(--sc-input-addon-bg);color:var(--sc-input-addon-c)}:host(:not([inlineContent])) slot[name=suffix]{border-radius:0 var(--sc-item-rounded-tr) var(--sc-item-rounded-br) 0;background-color:var(--sc-input-addon-bg);color:var(--sc-input-addon-c)}:host(:not([inlineContent])) .has-prefix .form-element{border-top-left-radius:0;border-bottom-left-radius:0}:host(:not([inlineContent])) .has-suffix .form-element{border-top-right-radius:0;border-bottom-right-radius:0}slot[name=prefix]::slotted(sonic-icon),slot[name=suffix]::slotted(sonic-icon){font-size:1.2em}.form-element .form-element,.form-element>slot{all:unset}:host([inlineContent]) .form-element{display:flex;align-items:center;gap:.35em;min-height:var(--sc-form-height)}:host([inlineContent]) .form-element .form-element{appearance:none;background:0 0;border:none;padding:0;display:block;width:50%;min-width:0;flex:1 1 auto;height:auto;min-height:auto;border-radius:0}:host([inlineContent]) slot[name=prefix]::slotted(*),:host([inlineContent]) slot[name=suffix]::slotted(*){display:block;flex:0 0 auto;max-width:100%;max-width:100%}:host([inlineContent]) .has-suffix slot[name=suffix]{margin-right:calc(-.5 * var(--sc-input-px))}:host([inlineContent]) .has-prefix slot[name=prefix]{margin-left:calc(-.5 * var(--sc-input-px))}:host([inlineContent]) slot[name=suffix]::slotted(*){margin-left:auto}:host([disabled]) .form-control{cursor:not-allowed}:host([variant=ghost]) .form-element{--sc-input-bg:transparent}:host([disabled]) .form-element{pointer-events:none;opacity:.5}:host([disabled]) .select-chevron{display:none}::placeholder{color:inherit;opacity:.45}:host([placehoderAsLabel]) ::placeholder{opacity:1}:focus::placeholder{opacity:0!important}.form-element:focus,.form-element:focus-visible,:host(:not([disabled])) .form-element:hover{filter:brightness(.97);outline:0}.form-label{margin-bottom:.22em;display:block}.form-description{color:var(--sc-base-400);font-size:.85em;margin-top:.2em;display:block}.hidden{display:none}.contents{display:contents}:host([error]){--sc-input-b-color:var(--sc-danger)}:host input:visited{display:none}:host([touched][required]) :not(:focus):invalid{--sc-input-b-color:var(--sc-danger);--sc-input-c:var(--sc-danger)}:host([touched][required]) :not(:focus):invalid+.select-chevron{--sc-input-c:var(--sc-danger)}:host([touched][required]) :not([value=""]):not(:focus):valid{--sc-input-b-color:var(--sc-success);--sc-input-c:var(--sc-success)}:host([touched][required]) :not(:focus):valid+.select-chevron{--sc-input-c:var(--sc-success)}:host([type=color]) .form-element{padding:0;border:0;min-width:var(--sc-input-height)}input[type=color]::-webkit-color-swatch-wrapper{padding:0}input[type=color]::-webkit-color-swatch{border:none;border-radius:var(--sc-item-rounded-tl) var(--sc-item-rounded-tr) var(--sc-item-rounded-br) var(--sc-item-rounded-bl)}:host([type=image]) .form-element{padding:0;border:none}input[type=reset],input[type=submit]{cursor:pointer}:host([type=search]){appearance:none!important}input[type=search]::-webkit-search-cancel-button{appearance:none;cursor:pointer;height:.65em;width:.65em;background-image:url(data:image/svg+xml;base64,PD94bWwgdmVyc2lvbj0iMS4wIiBlbmNvZGluZz0iaXNvLTg4NTktMSI/Pg0KPCEtLSBHZW5lcmF0b3I6IEFkb2JlIElsbHVzdHJhdG9yIDE2LjAuMCwgU1ZHIEV4cG9ydCBQbHVnLUluIC4gU1ZHIFZlcnNpb246IDYuMDAgQnVpbGQgMCkgIC0tPg0KPCFET0NUWVBFIHN2ZyBQVUJMSUMgIi0vL1czQy8vRFREIFNWRyAxLjEvL0VOIiAiaHR0cDovL3d3dy53My5vcmcvR3JhcGhpY3MvU1ZHLzEuMS9EVEQvc3ZnMTEuZHRkIj4NCjxzdmcgdmVyc2lvbj0iMS4xIiBpZD0iQ2FwYV8xIiB4bWxucz0iaHR0cDovL3d3dy53My5vcmcvMjAwMC9zdmciIHhtbG5zOnhsaW5rPSJodHRwOi8vd3d3LnczLm9yZy8xOTk5L3hsaW5rIiB4PSIwcHgiIHk9IjBweCINCgkgd2lkdGg9IjEyMy4wNXB4IiBoZWlnaHQ9IjEyMy4wNXB4IiB2aWV3Qm94PSIwIDAgMTIzLjA1IDEyMy4wNSIgc3R5bGU9ImVuYWJsZS1iYWNrZ3JvdW5kOm5ldyAwIDAgMTIzLjA1IDEyMy4wNTsiDQoJIHhtbDpzcGFjZT0icHJlc2VydmUiPg0KPGc+DQoJPHBhdGggZD0iTTEyMS4zMjUsMTAuOTI1bC04LjUtOC4zOTljLTIuMy0yLjMtNi4xLTIuMy04LjUsMGwtNDIuNCw0Mi4zOTlMMTguNzI2LDEuNzI2Yy0yLjMwMS0yLjMwMS02LjEwMS0yLjMwMS04LjUsMGwtOC41LDguNQ0KCQljLTIuMzAxLDIuMy0yLjMwMSw2LjEsMCw4LjVsNDMuMSw0My4xbC00Mi4zLDQyLjVjLTIuMywyLjMtMi4zLDYuMSwwLDguNWw4LjUsOC41YzIuMywyLjMsNi4xLDIuMyw4LjUsMGw0Mi4zOTktNDIuNGw0Mi40LDQyLjQNCgkJYzIuMywyLjMsNi4xLDIuMyw4LjUsMGw4LjUtOC41YzIuMy0yLjMsMi4zLTYuMSwwLTguNWwtNDIuNS00Mi40bDQyLjQtNDIuMzk5QzEyMy42MjUsMTcuMTI1LDEyMy42MjUsMTMuMzI1LDEyMS4zMjUsMTAuOTI1eiIvPg0KPC9nPg0KPGc+DQo8L2c+DQo8Zz4NCjwvZz4NCjxnPg0KPC9nPg0KPGc+DQo8L2c+DQo8Zz4NCjwvZz4NCjxnPg0KPC9nPg0KPGc+DQo8L2c+DQo8Zz4NCjwvZz4NCjxnPg0KPC9nPg0KPGc+DQo8L2c+DQo8Zz4NCjwvZz4NCjxnPg0KPC9nPg0KPGc+DQo8L2c+DQo8Zz4NCjwvZz4NCjxnPg0KPC9nPg0KPC9zdmc+DQo=);background-size:contain;background-repeat:no-repeat}:host([align=center]) .form-element{text-align:center}:host([align=left]) .form-element{text-align:left}:host([align=right]) .form-element{text-align:right}:host([noAppearance]) input[type=number]::-webkit-inner-spin-button,:host([noAppearance]) input[type=number]::-webkit-outer-spin-button{-webkit-appearance:none;margin:0}:host([noAppearance]) input[type=number]{-moz-appearance:textfield!important}`;
6757
+ const formControl = i$4`*{box-sizing:border-box}:host{--sc-input-height:var(--sc-form-height);--sc-input-c:var(--sc-input-color, var(--sc-base-content));--sc-input-b-width:var(--sc-form-border-width);--sc-input-b-color:var(--sc-input-border-color);--sc-item-rounded-tr:var(--sc-input-rounded);--sc-item-rounded-tl:var(--sc-input-rounded);--sc-item-rounded-bl:var(--sc-input-rounded);--sc-item-rounded-br:var(--sc-input-rounded);--sc-input-fs:var(--sc-fs, 1rem);--sc-input-ff:inherit;--sc-input-py:0.55em;--sc-input-px:clamp(0.3em, 8%, 1.1em);--sc-input-background:var(--sc-input-bg);--sc-input-addon-c:var(--sc-input-addon-color, var(--sc-base));--sc-input-addon-bg:var(--sc-input-c)}.form-element{display:block;flex-grow:1;width:100%;line-height:1.1;color:var(--sc-input-c);border-radius:var(--sc-item-rounded-tl) var(--sc-item-rounded-tr) var(--sc-item-rounded-br) var(--sc-item-rounded-bl);font-family:var(--sc-input-ff);background-color:var(--sc-input-background);border:var(--sc-input-b-width) solid var(--sc-input-b-color,var(--sc-base-300,#aaa));width:100%;font-size:var(--sc-input-fs);padding-top:var(--sc-input-py);padding-bottom:var(--sc-input-py);padding-left:var(--sc-input-px);padding-right:var(--sc-input-px);min-height:var(--sc-input-height)}.form-control{display:flex;width:100%}:host(:not([inlineContent])) .has-prefix slot[name=prefix],:host(:not([inlineContent])) .has-suffix slot[name=suffix]{min-width:var(--sc-input-height);box-sizing:border-box;display:flex;align-items:center;justify-content:center;line-height:1.1;flex-shrink:0;padding-left:clamp(.25em,3%,calc(.33 * var(--sc-input-px)));padding-right:clamp(.25em,3%,calc(.33 * var(--sc-input-px)))}:host(:not([inlineContent])) slot[name=prefix]{border-radius:var(--sc-item-rounded-tl) 0 0 var(--sc-item-rounded-bl);background-color:var(--sc-input-addon-bg);color:var(--sc-input-addon-c)}:host(:not([inlineContent])) slot[name=suffix]{border-radius:0 var(--sc-item-rounded-tr) var(--sc-item-rounded-br) 0;background-color:var(--sc-input-addon-bg);color:var(--sc-input-addon-c)}:host(:not([inlineContent])) .has-prefix .form-element{border-top-left-radius:0;border-bottom-left-radius:0}:host(:not([inlineContent])) .has-suffix .form-element{border-top-right-radius:0;border-bottom-right-radius:0}slot[name=prefix]::slotted(sonic-icon),slot[name=suffix]::slotted(sonic-icon){font-size:1.2em}.form-element .form-element,.form-element>slot{all:unset}:host([inlineContent]) .form-element{display:flex;align-items:center;gap:.35em;min-height:var(--sc-form-height)}:host([inlineContent]) .form-element .form-element{appearance:none;background:0 0;border:none;padding:0;display:block;width:50%;min-width:0;flex:1 1 auto;height:auto;min-height:auto;border-radius:0}:host([inlineContent]) slot[name=prefix]::slotted(*),:host([inlineContent]) slot[name=suffix]::slotted(*){display:block;flex:0 0 auto;max-width:100%;max-width:100%}:host([inlineContent]) .has-suffix slot[name=suffix]{margin-right:calc(-.5 * var(--sc-input-px))}:host([inlineContent]) .has-prefix slot[name=prefix]{margin-left:calc(-.5 * var(--sc-input-px))}:host([inlineContent]) slot[name=suffix]::slotted(*){margin-left:auto}:host([inlineContent]) .no-prefix slot[name=prefix],:host([inlineContent]) .no-suffix slot[name=suffix]{display:none}:host([disabled]) .form-control{cursor:not-allowed}:host([variant=ghost]) .form-element{--sc-input-bg:transparent}:host([disabled]) .form-element{pointer-events:none;opacity:.5}:host([disabled]) .select-chevron{display:none}::placeholder{color:inherit;opacity:.45}:host([placehoderAsLabel]) ::placeholder{opacity:1}:focus::placeholder{opacity:0!important}.form-element:focus,.form-element:focus-visible,:host(:not([disabled])) .form-element:hover{filter:brightness(.97);outline:0}.form-label{margin-bottom:.22em;display:block}.form-description{color:var(--sc-base-400);font-size:.85em;margin-top:.2em;display:block}.hidden{display:none}.contents{display:contents}:host([error]){--sc-input-b-color:var(--sc-danger)}:host input:visited{display:none}:host([touched][required]) :not(:focus):invalid{--sc-input-b-color:var(--sc-danger);--sc-input-c:var(--sc-danger)}:host([touched][required]) :not(:focus):invalid+.select-chevron{--sc-input-c:var(--sc-danger)}:host([touched][required]) :not([value=""]):not(:focus):valid{--sc-input-b-color:var(--sc-success);--sc-input-c:var(--sc-success)}:host([touched][required]) :not(:focus):valid+.select-chevron{--sc-input-c:var(--sc-success)}:host([type=color]) .form-element{padding:0;border:0;min-width:var(--sc-input-height)}input[type=color]::-webkit-color-swatch-wrapper{padding:0}input[type=color]::-webkit-color-swatch{border:none;border-radius:var(--sc-item-rounded-tl) var(--sc-item-rounded-tr) var(--sc-item-rounded-br) var(--sc-item-rounded-bl)}:host([type=image]) .form-element{padding:0;border:none}input[type=reset],input[type=submit]{cursor:pointer}:host([type=search]){appearance:none!important}input[type=search]::-webkit-search-cancel-button{appearance:none;cursor:pointer;height:.65em;width:.65em;background-image:url(data:image/svg+xml;base64,PD94bWwgdmVyc2lvbj0iMS4wIiBlbmNvZGluZz0iaXNvLTg4NTktMSI/Pg0KPCEtLSBHZW5lcmF0b3I6IEFkb2JlIElsbHVzdHJhdG9yIDE2LjAuMCwgU1ZHIEV4cG9ydCBQbHVnLUluIC4gU1ZHIFZlcnNpb246IDYuMDAgQnVpbGQgMCkgIC0tPg0KPCFET0NUWVBFIHN2ZyBQVUJMSUMgIi0vL1czQy8vRFREIFNWRyAxLjEvL0VOIiAiaHR0cDovL3d3dy53My5vcmcvR3JhcGhpY3MvU1ZHLzEuMS9EVEQvc3ZnMTEuZHRkIj4NCjxzdmcgdmVyc2lvbj0iMS4xIiBpZD0iQ2FwYV8xIiB4bWxucz0iaHR0cDovL3d3dy53My5vcmcvMjAwMC9zdmciIHhtbG5zOnhsaW5rPSJodHRwOi8vd3d3LnczLm9yZy8xOTk5L3hsaW5rIiB4PSIwcHgiIHk9IjBweCINCgkgd2lkdGg9IjEyMy4wNXB4IiBoZWlnaHQ9IjEyMy4wNXB4IiB2aWV3Qm94PSIwIDAgMTIzLjA1IDEyMy4wNSIgc3R5bGU9ImVuYWJsZS1iYWNrZ3JvdW5kOm5ldyAwIDAgMTIzLjA1IDEyMy4wNTsiDQoJIHhtbDpzcGFjZT0icHJlc2VydmUiPg0KPGc+DQoJPHBhdGggZD0iTTEyMS4zMjUsMTAuOTI1bC04LjUtOC4zOTljLTIuMy0yLjMtNi4xLTIuMy04LjUsMGwtNDIuNCw0Mi4zOTlMMTguNzI2LDEuNzI2Yy0yLjMwMS0yLjMwMS02LjEwMS0yLjMwMS04LjUsMGwtOC41LDguNQ0KCQljLTIuMzAxLDIuMy0yLjMwMSw2LjEsMCw4LjVsNDMuMSw0My4xbC00Mi4zLDQyLjVjLTIuMywyLjMtMi4zLDYuMSwwLDguNWw4LjUsOC41YzIuMywyLjMsNi4xLDIuMyw4LjUsMGw0Mi4zOTktNDIuNGw0Mi40LDQyLjQNCgkJYzIuMywyLjMsNi4xLDIuMyw4LjUsMGw4LjUtOC41YzIuMy0yLjMsMi4zLTYuMSwwLTguNWwtNDIuNS00Mi40bDQyLjQtNDIuMzk5QzEyMy42MjUsMTcuMTI1LDEyMy42MjUsMTMuMzI1LDEyMS4zMjUsMTAuOTI1eiIvPg0KPC9nPg0KPGc+DQo8L2c+DQo8Zz4NCjwvZz4NCjxnPg0KPC9nPg0KPGc+DQo8L2c+DQo8Zz4NCjwvZz4NCjxnPg0KPC9nPg0KPGc+DQo8L2c+DQo8Zz4NCjwvZz4NCjxnPg0KPC9nPg0KPGc+DQo8L2c+DQo8Zz4NCjwvZz4NCjxnPg0KPC9nPg0KPGc+DQo8L2c+DQo8Zz4NCjwvZz4NCjxnPg0KPC9nPg0KPC9zdmc+DQo=);background-size:contain;background-repeat:no-repeat}:host([align=center]) .form-element{text-align:center}:host([align=left]) .form-element{text-align:left}:host([align=right]) .form-element{text-align:right}:host([noAppearance]) input[type=number]::-webkit-inner-spin-button,:host([noAppearance]) input[type=number]::-webkit-outer-spin-button{-webkit-appearance:none;margin:0}:host([noAppearance]) input[type=number]{-moz-appearance:textfield!important}`;
6468
6758
  /**
6469
6759
  * @license
6470
6760
  * Copyright 2018 Google LLC
@@ -6498,28 +6788,30 @@ const o = e$2(class extends i$2 {
6498
6788
  return x$1;
6499
6789
  }
6500
6790
  });
6501
- var __defProp$G = Object.defineProperty;
6502
- var __getOwnPropDesc$G = Object.getOwnPropertyDescriptor;
6503
- var __decorateClass$G = (decorators, target, key, kind) => {
6504
- var result = kind > 1 ? void 0 : kind ? __getOwnPropDesc$G(target, key) : target;
6791
+ var __defProp$F = Object.defineProperty;
6792
+ var __getOwnPropDesc$F = Object.getOwnPropertyDescriptor;
6793
+ var __decorateClass$F = (decorators, target, key, kind) => {
6794
+ var result = kind > 1 ? void 0 : kind ? __getOwnPropDesc$F(target, key) : target;
6505
6795
  for (var i2 = decorators.length - 1, decorator; i2 >= 0; i2--)
6506
6796
  if (decorator = decorators[i2])
6507
6797
  result = (kind ? decorator(target, key, result) : decorator(result)) || result;
6508
6798
  if (kind && result)
6509
- __defProp$G(target, key, result);
6799
+ __defProp$F(target, key, result);
6510
6800
  return result;
6511
6801
  };
6512
- const tagName$E = "sonic-input";
6802
+ const tagName$D = "sonic-input";
6513
6803
  let Input = class extends Form(Form$2(Subscriber$1(s$3))) {
6514
6804
  constructor() {
6515
6805
  super(...arguments);
6516
6806
  this.readonly = false;
6517
6807
  this.inlineContent = false;
6518
6808
  this.disableInlineContentFocus = false;
6809
+ this.showPasswordToggle = false;
6519
6810
  this.hasDescription = false;
6520
6811
  this.hasLabel = false;
6521
6812
  this.hasSuffix = false;
6522
6813
  this.hasPrefix = false;
6814
+ this.isPassword = false;
6523
6815
  }
6524
6816
  connectedCallback() {
6525
6817
  super.connectedCallback();
@@ -6532,6 +6824,11 @@ let Input = class extends Form(Form$2(Subscriber$1(s$3))) {
6532
6824
  return;
6533
6825
  formPublisher[this.sameValueAsName].onAssign(this.sameValueAsHandle);
6534
6826
  }
6827
+ if (this.type == "password") {
6828
+ this.isPassword = true;
6829
+ this.showPasswordToggle = true;
6830
+ this.inlineContent = true;
6831
+ }
6535
6832
  }
6536
6833
  disconnectedCallback() {
6537
6834
  super.disconnectedCallback();
@@ -6568,12 +6865,19 @@ let Input = class extends Form(Form$2(Subscriber$1(s$3))) {
6568
6865
  clearTimeout(this.changeTimeoutId);
6569
6866
  this.changeTimeoutId = setTimeout(() => super.handleChange(e2), parseInt(this.getAttribute("inputDelayMs")));
6570
6867
  }
6868
+ togglePasswordVisibility() {
6869
+ this.isPassword = !this.isPassword;
6870
+ this._type = this.isPassword ? "password" : "text";
6871
+ console.log(this.isPassword);
6872
+ }
6571
6873
  render() {
6572
6874
  const slotClasses = {
6573
6875
  "has-prefix": this.hasPrefix,
6574
- "has-suffix": this.hasSuffix
6876
+ "has-suffix": this.hasSuffix,
6877
+ "no-suffix": !this.hasSuffix,
6878
+ "no-prefix": !this.hasPrefix
6575
6879
  };
6576
- return y`<label for="form-element" class="${this.hasLabel ? "form-label" : "hidden"}">${this.label ? o$2(this.label) : ""}<slot name="label" @slotchange="${this.hasSlotOrProps}"></slot></label><div @click="${this.inlineContentFocus}" class="form-control ${o(slotClasses)}"><div class="${this.inlineContent ? "form-element form-element-wrapper" : "contents"}"><slot name="prefix" @slotchange="${this.hasSlotOrProps}"></slot><input id="form-element" part="input" class="form-element input" @input="${this.handleChange}" @blur="${this.handleBlur}" type="${this.type}" disabled="${l$2(this.disabled)}" ?readonly="${this.readonly}" ?autofocus="${this.autofocus}" list="${l$2(this.list)}" tabindex="${l$2(this.tabindex)}" pattern="${l$2(this.pattern)}" min="${l$2(this.min)}" max="${l$2(this.max)}" step="${l$2(this.step)}" src="${l$2(this.src)}" minlength="${l$2(this.minlength)}" maxlength="${l$2(this.maxlength)}" placeholder="${l$2(this.placeholder)}" required="${l$2(this.required)}" autocomplete="${l$2(this.autocomplete)}" aria-label="${l$2(this.ariaLabel)}" aria-labelledby="${l$2(this.ariaLabelledby)}" .name="${this.name}" .value="${this.value}"><slot name="suffix" @slotchange="${this.hasSlotOrProps}"></slot></div></div><slot name="description" @slotchange="${this.hasSlotOrProps}" class="${this.hasDescription ? "form-description" : "hidden"}">${this.description ? y`${o$2(this.description)}` : ""}</slot><slot name="list"></slot>`;
6880
+ return y`<label for="form-element" class="${this.hasLabel ? "form-label" : "hidden"}">${this.label ? o$3(this.label) : ""}<slot name="label" @slotchange="${this.hasSlotOrProps}"></slot></label><div @click="${this.inlineContentFocus}" class="form-control ${o(slotClasses)}"><div class="${this.inlineContent ? "form-element form-element-wrapper" : "contents"}"><slot name="prefix" @slotchange="${this.hasSlotOrProps}"></slot><input id="form-element" part="input" class="form-element input" @input="${this.handleChange}" @blur="${this.handleBlur}" type="${this.type}" disabled="${l$2(this.disabled)}" ?readonly="${this.readonly}" ?autofocus="${this.autofocus}" list="${l$2(this.list)}" tabindex="${l$2(this.tabindex)}" pattern="${l$2(this.pattern)}" min="${l$2(this.min)}" max="${l$2(this.max)}" step="${l$2(this.step)}" src="${l$2(this.src)}" minlength="${l$2(this.minlength)}" maxlength="${l$2(this.maxlength)}" placeholder="${l$2(this.placeholder)}" required="${l$2(this.required)}" autocomplete="${l$2(this.autocomplete)}" aria-label="${l$2(this.ariaLabel)}" aria-labelledby="${l$2(this.ariaLabelledby)}" .name="${this.name}" .value="${this.value}"> ${this.showPasswordToggle ? y`<sonic-button shape="circle" class="password-toggle" @click="${this.togglePasswordVisibility}" aria-label="Toggle password visibility" variant="unstyled"><sonic-icon library="heroicons" name="${this.isPassword ? "eye" : "eye-slash"}"></sonic-icon></sonic-button>` : ""}<slot name="suffix" @slotchange="${this.hasSlotOrProps}"></slot></div></div><slot name="description" @slotchange="${this.hasSlotOrProps}" class="${this.hasDescription ? "form-description" : "hidden"}">${this.description ? y`${o$3(this.description)}` : ""}</slot><slot name="list"></slot>`;
6577
6881
  }
6578
6882
  };
6579
6883
  Input.styles = [
@@ -6581,89 +6885,96 @@ Input.styles = [
6581
6885
  formControl,
6582
6886
  label,
6583
6887
  description,
6584
- i$4`:host([type=hidden]){appearance:none!important;display:none!important}`
6888
+ passwordToggle,
6889
+ i$4`:host([type=hidden]){appearance:none!important;display:none!important}:host>.form-control{position:relative}`
6585
6890
  ];
6586
- __decorateClass$G([
6891
+ __decorateClass$F([
6587
6892
  e$7({ type: String, reflect: true })
6588
6893
  ], Input.prototype, "size", 2);
6589
- __decorateClass$G([
6894
+ __decorateClass$F([
6590
6895
  e$7({ type: String })
6591
6896
  ], Input.prototype, "list", 2);
6592
- __decorateClass$G([
6897
+ __decorateClass$F([
6593
6898
  e$7({ type: String })
6594
6899
  ], Input.prototype, "placeholder", 2);
6595
- __decorateClass$G([
6900
+ __decorateClass$F([
6596
6901
  e$7({ type: String })
6597
6902
  ], Input.prototype, "pattern", 2);
6598
- __decorateClass$G([
6903
+ __decorateClass$F([
6599
6904
  e$7({ type: String })
6600
6905
  ], Input.prototype, "min", 2);
6601
- __decorateClass$G([
6906
+ __decorateClass$F([
6602
6907
  e$7({ type: String })
6603
6908
  ], Input.prototype, "max", 2);
6604
- __decorateClass$G([
6909
+ __decorateClass$F([
6605
6910
  e$7({ type: Boolean })
6606
6911
  ], Input.prototype, "readonly", 2);
6607
- __decorateClass$G([
6912
+ __decorateClass$F([
6608
6913
  e$7({ type: Number })
6609
6914
  ], Input.prototype, "step", 2);
6610
- __decorateClass$G([
6915
+ __decorateClass$F([
6611
6916
  e$7({ type: Number })
6612
6917
  ], Input.prototype, "minlength", 2);
6613
- __decorateClass$G([
6918
+ __decorateClass$F([
6614
6919
  e$7({ type: Number })
6615
6920
  ], Input.prototype, "maxlength", 2);
6616
- __decorateClass$G([
6921
+ __decorateClass$F([
6617
6922
  e$7({ type: String })
6618
6923
  ], Input.prototype, "src", 2);
6619
- __decorateClass$G([
6924
+ __decorateClass$F([
6620
6925
  e$7({ type: Boolean, reflect: true })
6621
6926
  ], Input.prototype, "inlineContent", 2);
6622
- __decorateClass$G([
6927
+ __decorateClass$F([
6623
6928
  e$7({ type: Boolean })
6624
6929
  ], Input.prototype, "disableInlineContentFocus", 2);
6625
- __decorateClass$G([
6626
- o$8({ slot: "label" })
6930
+ __decorateClass$F([
6931
+ e$7({ type: Boolean })
6932
+ ], Input.prototype, "showPasswordToggle", 2);
6933
+ __decorateClass$F([
6934
+ o$9({ slot: "label" })
6627
6935
  ], Input.prototype, "slotLabelNodes", 2);
6628
- __decorateClass$G([
6629
- o$8({ slot: "description" })
6936
+ __decorateClass$F([
6937
+ o$9({ slot: "description" })
6630
6938
  ], Input.prototype, "slotDescriptionNodes", 2);
6631
- __decorateClass$G([
6632
- o$8({ slot: "suffix" })
6939
+ __decorateClass$F([
6940
+ o$9({ slot: "suffix" })
6633
6941
  ], Input.prototype, "slotSuffixNodes", 2);
6634
- __decorateClass$G([
6635
- o$8({ slot: "prefix" })
6942
+ __decorateClass$F([
6943
+ o$9({ slot: "prefix" })
6636
6944
  ], Input.prototype, "slotPrefixNodes", 2);
6637
- __decorateClass$G([
6945
+ __decorateClass$F([
6638
6946
  i$5("input")
6639
6947
  ], Input.prototype, "input", 2);
6640
- __decorateClass$G([
6948
+ __decorateClass$F([
6641
6949
  t$3()
6642
6950
  ], Input.prototype, "hasDescription", 2);
6643
- __decorateClass$G([
6951
+ __decorateClass$F([
6644
6952
  t$3()
6645
6953
  ], Input.prototype, "hasLabel", 2);
6646
- __decorateClass$G([
6954
+ __decorateClass$F([
6647
6955
  t$3()
6648
6956
  ], Input.prototype, "hasSuffix", 2);
6649
- __decorateClass$G([
6957
+ __decorateClass$F([
6650
6958
  t$3()
6651
6959
  ], Input.prototype, "hasPrefix", 2);
6652
- Input = __decorateClass$G([
6653
- e$8(tagName$E)
6960
+ __decorateClass$F([
6961
+ t$3()
6962
+ ], Input.prototype, "isPassword", 2);
6963
+ Input = __decorateClass$F([
6964
+ e$8(tagName$D)
6654
6965
  ], Input);
6655
- var __defProp$F = Object.defineProperty;
6656
- var __getOwnPropDesc$F = Object.getOwnPropertyDescriptor;
6657
- var __decorateClass$F = (decorators, target, key, kind) => {
6658
- var result = kind > 1 ? void 0 : kind ? __getOwnPropDesc$F(target, key) : target;
6966
+ var __defProp$E = Object.defineProperty;
6967
+ var __getOwnPropDesc$E = Object.getOwnPropertyDescriptor;
6968
+ var __decorateClass$E = (decorators, target, key, kind) => {
6969
+ var result = kind > 1 ? void 0 : kind ? __getOwnPropDesc$E(target, key) : target;
6659
6970
  for (var i2 = decorators.length - 1, decorator; i2 >= 0; i2--)
6660
6971
  if (decorator = decorators[i2])
6661
6972
  result = (kind ? decorator(target, key, result) : decorator(result)) || result;
6662
6973
  if (kind && result)
6663
- __defProp$F(target, key, result);
6974
+ __defProp$E(target, key, result);
6664
6975
  return result;
6665
6976
  };
6666
- const tagName$D = "sonic-pop";
6977
+ const tagName$C = "sonic-pop";
6667
6978
  let Pop = class extends s$3 {
6668
6979
  constructor() {
6669
6980
  super(...arguments);
@@ -6734,7 +7045,6 @@ let Pop = class extends s$3 {
6734
7045
  firstUpdated(_changedProperties) {
6735
7046
  super.firstUpdated(_changedProperties);
6736
7047
  this.resizeObserver.observe(this.popContent);
6737
- this.computePosition(this.placement);
6738
7048
  }
6739
7049
  disconnectedCallback() {
6740
7050
  super.disconnectedCallback();
@@ -6812,49 +7122,49 @@ let Pop = class extends s$3 {
6812
7122
  });
6813
7123
  }
6814
7124
  render() {
6815
- return y`<slot @click="${this._toggle}" @keydown="${this._toggle}" class="contents"></slot><slot name="content" tabindex="-1" part="content" class="${this.open ? "is-open" : ""}"></slot>`;
7125
+ return y`<slot @click="${this._toggle}" @keydown="${this._toggle}" class="contents"></slot><slot name="content" tabindex="-1" part="content" style="display:none" class="${this.open ? "is-open" : ""}"></slot>`;
6816
7126
  }
6817
7127
  };
6818
7128
  Pop.pops = /* @__PURE__ */ new Set();
6819
7129
  Pop.styles = [
6820
7130
  i$4`:host{display:inline-block;vertical-align:middle}slot[name=content]{max-width:80vw;background-color:var(--sc-base);position:absolute;z-index:50;display:block;transform:translateY(1rem) scale(.95);opacity:0;pointer-events:none;transition-duration:.15s;transition-timing-function:ease;transition-property:all;border-radius:min(calc(var(--sc-btn-rounded) * 2),.4em)}slot[name=content].is-open:not(.is-empty){transform:translateY(0) scale(1);opacity:1;pointer-events:auto;transition-property:scale,opacity;transition-timing-function:cubic-bezier(.25,.25,.42,1.225)}:host([shadow=md]) slot[name=content],:host([shadow=true]) slot[name=content],:host([shadow]) slot[name=content]{box-shadow:var(--sc-shadow)}:host([shadow=sm]) slot[name=content]{box-shadow:var(--sc-shadow-sm)}:host([shadow=none]) slot[name=content]{box-shadow:none}:host([shadow=lg]) slot[name=content]{box-shadow:var(--sc-shadow-lg)}:host([inline]){vertical-align:baseline}`
6821
7131
  ];
6822
- __decorateClass$F([
7132
+ __decorateClass$E([
6823
7133
  t$3()
6824
7134
  ], Pop.prototype, "open", 2);
6825
- __decorateClass$F([
7135
+ __decorateClass$E([
6826
7136
  i$5("slot:not([name=content])")
6827
7137
  ], Pop.prototype, "popBtn", 2);
6828
- __decorateClass$F([
7138
+ __decorateClass$E([
6829
7139
  i$5("slot[name=content]")
6830
7140
  ], Pop.prototype, "popContent", 2);
6831
- __decorateClass$F([
7141
+ __decorateClass$E([
6832
7142
  e$7({ type: Boolean })
6833
7143
  ], Pop.prototype, "noToggle", 2);
6834
- __decorateClass$F([
7144
+ __decorateClass$E([
6835
7145
  e$7({ type: Boolean, reflect: true })
6836
7146
  ], Pop.prototype, "inline", 2);
6837
- __decorateClass$F([
7147
+ __decorateClass$E([
6838
7148
  e$7({ type: String, reflect: true })
6839
7149
  ], Pop.prototype, "shadow", 2);
6840
- __decorateClass$F([
7150
+ __decorateClass$E([
6841
7151
  e$7({ type: String })
6842
7152
  ], Pop.prototype, "placement", 2);
6843
- Pop = __decorateClass$F([
6844
- e$8(tagName$D)
7153
+ Pop = __decorateClass$E([
7154
+ e$8(tagName$C)
6845
7155
  ], Pop);
6846
- var __defProp$E = Object.defineProperty;
6847
- var __getOwnPropDesc$E = Object.getOwnPropertyDescriptor;
6848
- var __decorateClass$E = (decorators, target, key, kind) => {
6849
- var result = kind > 1 ? void 0 : kind ? __getOwnPropDesc$E(target, key) : target;
7156
+ var __defProp$D = Object.defineProperty;
7157
+ var __getOwnPropDesc$D = Object.getOwnPropertyDescriptor;
7158
+ var __decorateClass$D = (decorators, target, key, kind) => {
7159
+ var result = kind > 1 ? void 0 : kind ? __getOwnPropDesc$D(target, key) : target;
6850
7160
  for (var i2 = decorators.length - 1, decorator; i2 >= 0; i2--)
6851
7161
  if (decorator = decorators[i2])
6852
7162
  result = (kind ? decorator(target, key, result) : decorator(result)) || result;
6853
7163
  if (kind && result)
6854
- __defProp$E(target, key, result);
7164
+ __defProp$D(target, key, result);
6855
7165
  return result;
6856
7166
  };
6857
- const tagName$C = "sonic-menu-item";
7167
+ const tagName$B = "sonic-menu-item";
6858
7168
  let MenuItem = class extends Button {
6859
7169
  constructor() {
6860
7170
  super();
@@ -6875,18 +7185,18 @@ let MenuItem = class extends Button {
6875
7185
  super.connectedCallback();
6876
7186
  }
6877
7187
  };
6878
- MenuItem = __decorateClass$E([
6879
- e$8(tagName$C)
7188
+ MenuItem = __decorateClass$D([
7189
+ e$8(tagName$B)
6880
7190
  ], MenuItem);
6881
- var __defProp$D = Object.defineProperty;
6882
- var __getOwnPropDesc$D = Object.getOwnPropertyDescriptor;
6883
- var __decorateClass$D = (decorators, target, key, kind) => {
6884
- var result = kind > 1 ? void 0 : kind ? __getOwnPropDesc$D(target, key) : target;
7191
+ var __defProp$C = Object.defineProperty;
7192
+ var __getOwnPropDesc$C = Object.getOwnPropertyDescriptor;
7193
+ var __decorateClass$C = (decorators, target, key, kind) => {
7194
+ var result = kind > 1 ? void 0 : kind ? __getOwnPropDesc$C(target, key) : target;
6885
7195
  for (var i2 = decorators.length - 1, decorator; i2 >= 0; i2--)
6886
7196
  if (decorator = decorators[i2])
6887
7197
  result = (kind ? decorator(target, key, result) : decorator(result)) || result;
6888
7198
  if (kind && result)
6889
- __defProp$D(target, key, result);
7199
+ __defProp$C(target, key, result);
6890
7200
  return result;
6891
7201
  };
6892
7202
  let InputAutocomplete = class extends TemplatesContainer(Subscriber(s$3)) {
@@ -6940,51 +7250,51 @@ let InputAutocomplete = class extends TemplatesContainer(Subscriber(s$3)) {
6940
7250
  InputAutocomplete.styles = [
6941
7251
  i$4`:host{display:block}`
6942
7252
  ];
6943
- __decorateClass$D([
7253
+ __decorateClass$C([
6944
7254
  e$7()
6945
7255
  ], InputAutocomplete.prototype, "name", 1);
6946
- __decorateClass$D([
7256
+ __decorateClass$C([
6947
7257
  e$7()
6948
7258
  ], InputAutocomplete.prototype, "forceAutoFill", 2);
6949
- __decorateClass$D([
7259
+ __decorateClass$C([
6950
7260
  e$7()
6951
7261
  ], InputAutocomplete.prototype, "description", 1);
6952
- __decorateClass$D([
7262
+ __decorateClass$C([
6953
7263
  e$7()
6954
7264
  ], InputAutocomplete.prototype, "label", 1);
6955
- __decorateClass$D([
7265
+ __decorateClass$C([
6956
7266
  e$7({ type: String })
6957
7267
  ], InputAutocomplete.prototype, "placeholder", 2);
6958
- __decorateClass$D([
7268
+ __decorateClass$C([
6959
7269
  e$7()
6960
7270
  ], InputAutocomplete.prototype, "filteredFields", 2);
6961
- __decorateClass$D([
7271
+ __decorateClass$C([
6962
7272
  e$7({ type: Boolean })
6963
7273
  ], InputAutocomplete.prototype, "readonly", 2);
6964
- __decorateClass$D([
7274
+ __decorateClass$C([
6965
7275
  e$7({ type: String })
6966
7276
  ], InputAutocomplete.prototype, "dataProviderExpression", 2);
6967
- __decorateClass$D([
7277
+ __decorateClass$C([
6968
7278
  e$7({ type: String })
6969
7279
  ], InputAutocomplete.prototype, "key", 2);
6970
- __decorateClass$D([
7280
+ __decorateClass$C([
6971
7281
  e$7({ type: String })
6972
7282
  ], InputAutocomplete.prototype, "value", 2);
6973
- InputAutocomplete = __decorateClass$D([
7283
+ InputAutocomplete = __decorateClass$C([
6974
7284
  e$8("sonic-input-autocomplete")
6975
7285
  ], InputAutocomplete);
6976
- var __defProp$C = Object.defineProperty;
6977
- var __getOwnPropDesc$C = Object.getOwnPropertyDescriptor;
6978
- var __decorateClass$C = (decorators, target, key, kind) => {
6979
- var result = kind > 1 ? void 0 : kind ? __getOwnPropDesc$C(target, key) : target;
7286
+ var __defProp$B = Object.defineProperty;
7287
+ var __getOwnPropDesc$B = Object.getOwnPropertyDescriptor;
7288
+ var __decorateClass$B = (decorators, target, key, kind) => {
7289
+ var result = kind > 1 ? void 0 : kind ? __getOwnPropDesc$B(target, key) : target;
6980
7290
  for (var i2 = decorators.length - 1, decorator; i2 >= 0; i2--)
6981
7291
  if (decorator = decorators[i2])
6982
7292
  result = (kind ? decorator(target, key, result) : decorator(result)) || result;
6983
7293
  if (kind && result)
6984
- __defProp$C(target, key, result);
7294
+ __defProp$B(target, key, result);
6985
7295
  return result;
6986
7296
  };
6987
- const tagName$B = "sonic-password-helper";
7297
+ const tagName$A = "sonic-password-helper";
6988
7298
  let SonicComponent$1 = class extends Subscriber(s$3) {
6989
7299
  constructor() {
6990
7300
  super(...arguments);
@@ -7036,63 +7346,63 @@ let SonicComponent$1 = class extends Subscriber(s$3) {
7036
7346
  return y`<div>${this.wording_password_helper_decription}</div><div>${this.getIcon(this.hasEnoughChars)} ${this.wording_password_helper_min_length}</div><div>${this.getIcon(this.hasMinuscule)} ${this.wording_password_helper_lower_case}</div><div>${this.getIcon(this.hasMajuscule)} ${this.wording_password_helper_upper_case}</div><div>${this.getIcon(this.hasNumber)} ${this.wording_password_helper_number}</div><div>${this.getIcon(this.hasSpecialChar)} ${this.wording_password_helper_special_char}</div>`;
7037
7347
  }
7038
7348
  };
7039
- __decorateClass$C([
7349
+ __decorateClass$B([
7040
7350
  e$7()
7041
7351
  ], SonicComponent$1.prototype, "name", 2);
7042
- __decorateClass$C([
7352
+ __decorateClass$B([
7043
7353
  e$7()
7044
7354
  ], SonicComponent$1.prototype, "minChars", 2);
7045
- __decorateClass$C([
7355
+ __decorateClass$B([
7046
7356
  t$3()
7047
7357
  ], SonicComponent$1.prototype, "hasNoChar", 2);
7048
- __decorateClass$C([
7358
+ __decorateClass$B([
7049
7359
  t$3()
7050
7360
  ], SonicComponent$1.prototype, "hasEnoughChars", 2);
7051
- __decorateClass$C([
7361
+ __decorateClass$B([
7052
7362
  t$3()
7053
7363
  ], SonicComponent$1.prototype, "hasMinuscule", 2);
7054
- __decorateClass$C([
7364
+ __decorateClass$B([
7055
7365
  t$3()
7056
7366
  ], SonicComponent$1.prototype, "hasMajuscule", 2);
7057
- __decorateClass$C([
7367
+ __decorateClass$B([
7058
7368
  t$3()
7059
7369
  ], SonicComponent$1.prototype, "hasNumber", 2);
7060
- __decorateClass$C([
7370
+ __decorateClass$B([
7061
7371
  t$3()
7062
7372
  ], SonicComponent$1.prototype, "hasSpecialChar", 2);
7063
- __decorateClass$C([
7373
+ __decorateClass$B([
7064
7374
  e$7()
7065
7375
  ], SonicComponent$1.prototype, "wording_password_helper_decription", 2);
7066
- __decorateClass$C([
7376
+ __decorateClass$B([
7067
7377
  e$7()
7068
7378
  ], SonicComponent$1.prototype, "wording_password_helper_min_length", 2);
7069
- __decorateClass$C([
7379
+ __decorateClass$B([
7070
7380
  e$7()
7071
7381
  ], SonicComponent$1.prototype, "wording_password_helper_lower_case", 2);
7072
- __decorateClass$C([
7382
+ __decorateClass$B([
7073
7383
  e$7()
7074
7384
  ], SonicComponent$1.prototype, "wording_password_helper_upper_case", 2);
7075
- __decorateClass$C([
7385
+ __decorateClass$B([
7076
7386
  e$7()
7077
7387
  ], SonicComponent$1.prototype, "wording_password_helper_number", 2);
7078
- __decorateClass$C([
7388
+ __decorateClass$B([
7079
7389
  e$7()
7080
7390
  ], SonicComponent$1.prototype, "wording_password_helper_special_char", 2);
7081
- SonicComponent$1 = __decorateClass$C([
7082
- e$8(tagName$B)
7391
+ SonicComponent$1 = __decorateClass$B([
7392
+ e$8(tagName$A)
7083
7393
  ], SonicComponent$1);
7084
- var __defProp$B = Object.defineProperty;
7085
- var __getOwnPropDesc$B = Object.getOwnPropertyDescriptor;
7086
- var __decorateClass$B = (decorators, target, key, kind) => {
7087
- var result = kind > 1 ? void 0 : kind ? __getOwnPropDesc$B(target, key) : target;
7394
+ var __defProp$A = Object.defineProperty;
7395
+ var __getOwnPropDesc$A = Object.getOwnPropertyDescriptor;
7396
+ var __decorateClass$A = (decorators, target, key, kind) => {
7397
+ var result = kind > 1 ? void 0 : kind ? __getOwnPropDesc$A(target, key) : target;
7088
7398
  for (var i2 = decorators.length - 1, decorator; i2 >= 0; i2--)
7089
7399
  if (decorator = decorators[i2])
7090
7400
  result = (kind ? decorator(target, key, result) : decorator(result)) || result;
7091
7401
  if (kind && result)
7092
- __defProp$B(target, key, result);
7402
+ __defProp$A(target, key, result);
7093
7403
  return result;
7094
7404
  };
7095
- const tagName$A = "sonic-same-value-helper";
7405
+ const tagName$z = "sonic-same-value-helper";
7096
7406
  let SonicComponent = class extends Subscriber(s$3) {
7097
7407
  constructor() {
7098
7408
  super(...arguments);
@@ -7129,48 +7439,51 @@ let SonicComponent = class extends Subscriber(s$3) {
7129
7439
  render() {
7130
7440
  if (this.hasNoChar)
7131
7441
  return b$1;
7132
- return y`<span>${this.areEqual ? o$2(this.descriptionWhenEqual) : o$2(this.descriptionWhenNotEqual)}</span>`;
7442
+ return y`<span>${this.areEqual ? o$3(this.descriptionWhenEqual) : o$3(this.descriptionWhenNotEqual)}</span>`;
7133
7443
  }
7134
7444
  };
7135
- __decorateClass$B([
7445
+ __decorateClass$A([
7136
7446
  e$7()
7137
7447
  ], SonicComponent.prototype, "name", 2);
7138
- __decorateClass$B([
7448
+ __decorateClass$A([
7139
7449
  e$7()
7140
7450
  ], SonicComponent.prototype, "sameValueAs", 2);
7141
- __decorateClass$B([
7451
+ __decorateClass$A([
7142
7452
  e$7()
7143
7453
  ], SonicComponent.prototype, "descriptionWhenEqual", 2);
7144
- __decorateClass$B([
7454
+ __decorateClass$A([
7145
7455
  e$7()
7146
7456
  ], SonicComponent.prototype, "descriptionWhenNotEqual", 2);
7147
- __decorateClass$B([
7457
+ __decorateClass$A([
7148
7458
  t$3()
7149
7459
  ], SonicComponent.prototype, "areEqual", 2);
7150
- __decorateClass$B([
7460
+ __decorateClass$A([
7151
7461
  t$3()
7152
7462
  ], SonicComponent.prototype, "hasNoChar", 2);
7153
- SonicComponent = __decorateClass$B([
7154
- e$8(tagName$A)
7463
+ SonicComponent = __decorateClass$A([
7464
+ e$8(tagName$z)
7155
7465
  ], SonicComponent);
7156
- var __defProp$A = Object.defineProperty;
7157
- var __getOwnPropDesc$A = Object.getOwnPropertyDescriptor;
7158
- var __decorateClass$A = (decorators, target, key, kind) => {
7159
- var result = kind > 1 ? void 0 : kind ? __getOwnPropDesc$A(target, key) : target;
7466
+ var __defProp$z = Object.defineProperty;
7467
+ var __getOwnPropDesc$z = Object.getOwnPropertyDescriptor;
7468
+ var __decorateClass$z = (decorators, target, key, kind) => {
7469
+ var result = kind > 1 ? void 0 : kind ? __getOwnPropDesc$z(target, key) : target;
7160
7470
  for (var i2 = decorators.length - 1, decorator; i2 >= 0; i2--)
7161
7471
  if (decorator = decorators[i2])
7162
7472
  result = (kind ? decorator(target, key, result) : decorator(result)) || result;
7163
7473
  if (kind && result)
7164
- __defProp$A(target, key, result);
7474
+ __defProp$z(target, key, result);
7165
7475
  return result;
7166
7476
  };
7167
- const tagName$z = "sonic-checkbox";
7168
- let Checkbox = class extends Form$1(Form(Form$2(Subscriber$1(s$3)))) {
7477
+ const tagName$y = "sonic-checkbox";
7478
+ let Checkbox = class extends Form$1(
7479
+ Form(Form$2(Subscriber$1(s$3)))
7480
+ ) {
7169
7481
  constructor() {
7170
7482
  super(...arguments);
7171
7483
  this.touched = false;
7172
7484
  this.iconName = "check";
7173
7485
  this.indeterminateIconName = "minus-small";
7486
+ this.showAsIndeterminate = false;
7174
7487
  this.hasDescription = false;
7175
7488
  this.hasLabel = false;
7176
7489
  }
@@ -7189,49 +7502,52 @@ let Checkbox = class extends Form$1(Form(Form$2(Subscriber$1(s$3)))) {
7189
7502
  this.hasDescription = this.description || ((_b = this.slotDescriptionNodes) == null ? void 0 : _b.length) ? true : false;
7190
7503
  }
7191
7504
  render() {
7192
- return y`<label class="checkbox-container ${this.disabled ? "disabled" : ""}"><span class="icon-container"><input type="${this.type}" @click="${this.handleChange}" @blur="${this.handleBlur}" ?required="${this.required}" .disabled="${l$2(this.disabled)}" .checked="${l$2(this.checked)}" .name="${this.name}" .value="${this.value}" ?autofocus="${this.autofocus}" aria-label="${l$2(this.ariaLabel)}" aria-labelledby="${l$2(this.ariaLabelledby)}"><sonic-icon name="${this.checked == "indeterminate" ? this.indeterminateIconName : this.iconName}" class="sc-input-icon"></sonic-icon></span><div class="checkbox-text ${!this.hasDescription && !this.hasLabel ? "hidden" : "checkbox-text"}">${this.label ? o$2(this.label) : ""}<slot @slotchange="${this.hasSlotOrProps}"></slot><slot @slotchange="${this.hasSlotOrProps}" name="description" class="${this.hasDescription ? "description" : "hidden"}">${this.description ? y`${o$2(this.description)}` : ""}</slot></div></label>`;
7505
+ return y`<label class="checkbox-container ${this.disabled ? "disabled" : ""}"><span class="icon-container"><input type="${this.type}" @click="${this.handleChange}" @blur="${this.handleBlur}" ?required="${this.required}" ?data-indeterminate="${this.showAsIndeterminate}" .disabled="${l$2(this.disabled)}" .checked="${l$2(this.checked)}" .name="${this.name}" .value="${this.value}" ?autofocus="${this.autofocus}" aria-label="${l$2(this.ariaLabel)}" aria-labelledby="${l$2(this.ariaLabelledby)}"><sonic-icon name="${this.checked == "indeterminate" || this.showAsIndeterminate ? this.indeterminateIconName : this.iconName}" class="sc-input-icon"></sonic-icon></span><div class="checkbox-text ${!this.hasDescription && !this.hasLabel ? "hidden" : "checkbox-text"}">${this.label ? o$3(this.label) : ""}<slot @slotchange="${this.hasSlotOrProps}"></slot><slot @slotchange="${this.hasSlotOrProps}" name="description" class="${this.hasDescription ? "description" : "hidden"}">${this.description ? y`${o$3(this.description)}` : ""}</slot></div></label>`;
7193
7506
  }
7194
7507
  };
7195
7508
  Checkbox.styles = [
7196
7509
  fontSize,
7197
- i$4`:host{--sc-checkbox-border-width:var(--sc-form-border-width);--sc-checkbox-border-color:var(--sc-input-border-color);--sc-checkbox-bg:var(--sc-input-bg);--sc-checkbox-color:transparent}*{box-sizing:border-box}.checkbox-container{min-height:1.4em;display:flex;gap:.5em;line-height:1.2;align-items:flex-start;font-size:var(--sc-fs)}.icon-container{position:relative;display:flex;flex-shrink:0}input{box-sizing:border-box;appearance:none;flex-shrink:0;height:calc(var(--sc-fs) * 1.25);width:calc(var(--sc-fs) * 1.25);display:block;cursor:pointer;border-radius:.25em;transition:.2s;outline:0;margin:0;background-color:var(--sc-checkbox-bg);border:var(--sc-checkbox-border-width) solid var(--sc-checkbox-border-color)}:host(:not([disabled])) input:active,input:focus{box-shadow:0 0 0 2px var(--sc-primary)}:host(:not([disabled])) label{cursor:pointer}sonic-icon{line-height:0;position:absolute;top:50%;left:50%;transform:translateX(-50%) translateY(-50%) scale(0);transition:transform .2s ease-in-out;color:var(--sc-checkbox-color)}.description{color:var(--sc-base-400);font-size:.85em;margin-top:.2em;display:block}input:checked,input[checked]{--sc-checkbox-border-color:var(--sc-primary);--sc-checkbox-bg:var(--sc-primary)}input:checked+sonic-icon,input[checked]+sonic-icon{--sc-checkbox-color:var(--sc-primary-content);transform:translateX(-50%) translateY(-50%) scale(1)}.disabled{cursor:not-allowed}.disabled input{opacity:.4}.disabled .checkbox-text{opacity:.6}:host(:not([disabled])) label:hover input{filter:brightness(.97)}::slotted(a){color:inherit;text-decoration:underline!important}::slotted(a:hover){text-decoration:none!important}.hidden{display:none}`
7510
+ i$4`:host{--sc-checkbox-border-width:var(--sc-form-border-width);--sc-checkbox-border-color:var(--sc-input-border-color);--sc-checkbox-bg:var(--sc-input-bg);--sc-checkbox-color:transparent}*{box-sizing:border-box}.checkbox-container{min-height:1.4em;display:flex;gap:.5em;line-height:1.2;align-items:flex-start;font-size:var(--sc-fs)}.icon-container{position:relative;display:flex;flex-shrink:0}input{box-sizing:border-box;appearance:none;flex-shrink:0;height:calc(var(--sc-fs) * 1.25);width:calc(var(--sc-fs) * 1.25);display:block;cursor:pointer;border-radius:.25em;transition:.2s;outline:0;margin:0;background-color:var(--sc-checkbox-bg);border:var(--sc-checkbox-border-width) solid var(--sc-checkbox-border-color)}:host(:not([disabled])) input:active,input:focus{box-shadow:0 0 0 2px var(--sc-primary)}:host(:not([disabled])) label{cursor:pointer}sonic-icon{line-height:0;position:absolute;top:50%;left:50%;transform:translateX(-50%) translateY(-50%) scale(0);transition:transform .2s ease-in-out;color:var(--sc-checkbox-color)}.description{color:var(--sc-base-400);font-size:.85em;margin-top:.2em;display:block}input:checked,input[checked],input[data-indeterminate]{--sc-checkbox-border-color:var(--sc-primary);--sc-checkbox-bg:var(--sc-primary)}input:checked+sonic-icon,input[checked]+sonic-icon,input[data-indeterminate]+sonic-icon{--sc-checkbox-color:var(--sc-primary-content);transform:translateX(-50%) translateY(-50%) scale(1)}.disabled{cursor:not-allowed}.disabled input{opacity:.4}.disabled .checkbox-text{opacity:.6}:host(:not([disabled])) label:hover input{filter:brightness(.97)}::slotted(a){color:inherit;text-decoration:underline!important}::slotted(a:hover){text-decoration:none!important}.hidden{display:none}`
7198
7511
  ];
7199
- __decorateClass$A([
7512
+ __decorateClass$z([
7200
7513
  e$7({ type: Boolean, reflect: true })
7201
7514
  ], Checkbox.prototype, "touched", 2);
7202
- __decorateClass$A([
7515
+ __decorateClass$z([
7203
7516
  e$7({ type: String })
7204
7517
  ], Checkbox.prototype, "iconName", 2);
7205
- __decorateClass$A([
7518
+ __decorateClass$z([
7206
7519
  e$7({ type: String })
7207
7520
  ], Checkbox.prototype, "indeterminateIconName", 2);
7208
- __decorateClass$A([
7521
+ __decorateClass$z([
7522
+ e$7({ type: Boolean })
7523
+ ], Checkbox.prototype, "showAsIndeterminate", 2);
7524
+ __decorateClass$z([
7209
7525
  e$7({ type: Boolean })
7210
7526
  ], Checkbox.prototype, "hasDescription", 2);
7211
- __decorateClass$A([
7527
+ __decorateClass$z([
7212
7528
  e$7({ type: Boolean })
7213
7529
  ], Checkbox.prototype, "hasLabel", 2);
7214
- __decorateClass$A([
7215
- o$8()
7530
+ __decorateClass$z([
7531
+ o$9()
7216
7532
  ], Checkbox.prototype, "slotLabelNodes", 2);
7217
- __decorateClass$A([
7218
- o$8({ slot: "description" })
7533
+ __decorateClass$z([
7534
+ o$9({ slot: "description" })
7219
7535
  ], Checkbox.prototype, "slotDescriptionNodes", 2);
7220
- Checkbox = __decorateClass$A([
7221
- e$8(tagName$z)
7536
+ Checkbox = __decorateClass$z([
7537
+ e$8(tagName$y)
7222
7538
  ], Checkbox);
7223
- var __defProp$z = Object.defineProperty;
7224
- var __getOwnPropDesc$z = Object.getOwnPropertyDescriptor;
7225
- var __decorateClass$z = (decorators, target, key, kind) => {
7226
- var result = kind > 1 ? void 0 : kind ? __getOwnPropDesc$z(target, key) : target;
7539
+ var __defProp$y = Object.defineProperty;
7540
+ var __getOwnPropDesc$y = Object.getOwnPropertyDescriptor;
7541
+ var __decorateClass$y = (decorators, target, key, kind) => {
7542
+ var result = kind > 1 ? void 0 : kind ? __getOwnPropDesc$y(target, key) : target;
7227
7543
  for (var i2 = decorators.length - 1, decorator; i2 >= 0; i2--)
7228
7544
  if (decorator = decorators[i2])
7229
7545
  result = (kind ? decorator(target, key, result) : decorator(result)) || result;
7230
7546
  if (kind && result)
7231
- __defProp$z(target, key, result);
7547
+ __defProp$y(target, key, result);
7232
7548
  return result;
7233
7549
  };
7234
- const tagName$y = "sonic-radio";
7550
+ const tagName$x = "sonic-radio";
7235
7551
  let Radio = class extends Checkbox {
7236
7552
  constructor() {
7237
7553
  super();
@@ -7246,21 +7562,21 @@ Radio.styles = [
7246
7562
  Checkbox.styles,
7247
7563
  i$4`:host input{border-radius:50%}:host sonic-icon{border-radius:50%;overflow:hidden;background-color:var(--sc-primary-content);line-height:0;display:block;font-size:1em;height:.6em;width:.6em}`
7248
7564
  ];
7249
- Radio = __decorateClass$z([
7250
- e$8(tagName$y)
7565
+ Radio = __decorateClass$y([
7566
+ e$8(tagName$x)
7251
7567
  ], Radio);
7252
- var __defProp$y = Object.defineProperty;
7253
- var __getOwnPropDesc$y = Object.getOwnPropertyDescriptor;
7254
- var __decorateClass$y = (decorators, target, key, kind) => {
7255
- var result = kind > 1 ? void 0 : kind ? __getOwnPropDesc$y(target, key) : target;
7568
+ var __defProp$x = Object.defineProperty;
7569
+ var __getOwnPropDesc$x = Object.getOwnPropertyDescriptor;
7570
+ var __decorateClass$x = (decorators, target, key, kind) => {
7571
+ var result = kind > 1 ? void 0 : kind ? __getOwnPropDesc$x(target, key) : target;
7256
7572
  for (var i2 = decorators.length - 1, decorator; i2 >= 0; i2--)
7257
7573
  if (decorator = decorators[i2])
7258
7574
  result = (kind ? decorator(target, key, result) : decorator(result)) || result;
7259
7575
  if (kind && result)
7260
- __defProp$y(target, key, result);
7576
+ __defProp$x(target, key, result);
7261
7577
  return result;
7262
7578
  };
7263
- const tagName$x = "sonic-select";
7579
+ const tagName$w = "sonic-select";
7264
7580
  let Select = class extends Form$2(Subscriber$1(s$3)) {
7265
7581
  constructor() {
7266
7582
  super(...arguments);
@@ -7374,14 +7690,14 @@ let Select = class extends Form$2(Subscriber$1(s$3)) {
7374
7690
  "has-prefix": this.hasPrefix,
7375
7691
  "has-suffix": this.hasSuffix
7376
7692
  };
7377
- return y`<label for="form-element" class="${this.hasLabel ? "form-label" : "hidden"}">${this.label ? o$2(this.label) : ""}<slot name="label" @slotchange="${this.hasSlotOrProps}"></slot></label><div class="form-control ${o(slotClasses)}"><slot name="prefix" @slotchange="${this.hasSlotOrProps}"></slot><div class="form-select-wrapper"><select id="form-element" @change="${this.handleChange}" @blur="${this.handleBlur}" ?disabled="${this.disabled}" ?required="${this.required}" ?multiple="${this.multiple}" size="${l$2(this.selectSize)}" ?autofocus="${this.autofocus}" .value="${this.value}" class="form-element" aria-label="${l$2(this.ariaLabel)}" aria-labelledby="${l$2(this.ariaLabelledby)}">${c$1(
7693
+ return y`<label for="form-element" class="${this.hasLabel ? "form-label" : "hidden"}">${this.label ? o$3(this.label) : ""}<slot name="label" @slotchange="${this.hasSlotOrProps}"></slot></label><div class="form-control ${o(slotClasses)}"><slot name="prefix" @slotchange="${this.hasSlotOrProps}"></slot><div class="form-select-wrapper"><select id="form-element" @change="${this.handleChange}" @blur="${this.handleBlur}" ?disabled="${this.disabled}" ?required="${this.required}" ?multiple="${this.multiple}" size="${l$2(this.selectSize)}" ?autofocus="${this.autofocus}" .value="${this.value}" class="form-element" aria-label="${l$2(this.ariaLabel)}" aria-labelledby="${l$2(this.ariaLabelledby)}">${c$1(
7378
7694
  this.options,
7379
7695
  (option) => option[this.valueKey],
7380
7696
  (option) => {
7381
7697
  const isSelected = this.value == option[this.valueKey] ? true : false;
7382
7698
  return y`<option ?selected="${isSelected}" value="${option[this.valueKey]}">${option[this.wordingKey]}</option>`;
7383
7699
  }
7384
- )}<slot></slot></select><sonic-icon class="select-chevron" name="nav-arrow-down" .size="${this.size}"></sonic-icon></div><slot name="suffix" @slotchange="${this.hasSlotOrProps}"></slot></div><slot name="description" @slotchange="${this.hasSlotOrProps}" class="${this.hasDescription ? "form-description" : "hidden"}">${this.description ? y`${o$2(this.description)}` : ""}</slot>`;
7700
+ )}<slot></slot></select><sonic-icon class="select-chevron" name="nav-arrow-down" .size="${this.size}"></sonic-icon></div><slot name="suffix" @slotchange="${this.hasSlotOrProps}"></slot></div><slot name="description" @slotchange="${this.hasSlotOrProps}" class="${this.hasDescription ? "form-description" : "hidden"}">${this.description ? y`${o$3(this.description)}` : ""}</slot>`;
7385
7701
  }
7386
7702
  };
7387
7703
  Select.styles = [
@@ -7391,75 +7707,75 @@ Select.styles = [
7391
7707
  description,
7392
7708
  i$4`.form-element{appearance:none}:host([disabled]) sonic-icon{opacity:0}@supports selector(:has(*)){:host(:not([disabled])) .form-element:not(:has(option:only-child)){padding-right:max(1.275em,calc(1.5 * var(--sc-input-px)))}}@supports not selector(:has(*)){:host(:not([disabled])) .form-element{padding-right:max(1.275em,calc(1.5 * var(--sc-input-px)))}}.form-select-wrapper{position:relative;width:100%}sonic-icon{position:absolute;right:calc(.8 * var(--sc-input-px));top:50%;pointer-events:none;transform:translateY(-50%);color:var(--sc-input-c)}option{padding:.1rem var(--sc-input-px);color:var(--sc-base-content);background:var(--sc-base)}select[multiple] option{background:0 0;padding:0}`
7393
7709
  ];
7394
- __decorateClass$y([
7710
+ __decorateClass$x([
7395
7711
  e$7({ type: String })
7396
7712
  ], Select.prototype, "valueKey", 2);
7397
- __decorateClass$y([
7713
+ __decorateClass$x([
7398
7714
  e$7({ type: String })
7399
7715
  ], Select.prototype, "wordingKey", 2);
7400
- __decorateClass$y([
7716
+ __decorateClass$x([
7401
7717
  e$7({ type: Boolean })
7402
7718
  ], Select.prototype, "multiple", 2);
7403
- __decorateClass$y([
7719
+ __decorateClass$x([
7404
7720
  e$7({ type: String, reflect: true })
7405
7721
  ], Select.prototype, "size", 2);
7406
- __decorateClass$y([
7722
+ __decorateClass$x([
7407
7723
  e$7({ type: Number })
7408
7724
  ], Select.prototype, "selectSize", 2);
7409
- __decorateClass$y([
7725
+ __decorateClass$x([
7410
7726
  e$7({ type: Array })
7411
7727
  ], Select.prototype, "options", 1);
7412
- __decorateClass$y([
7728
+ __decorateClass$x([
7413
7729
  e$7({ reflect: true })
7414
7730
  ], Select.prototype, "value", 1);
7415
- __decorateClass$y([
7731
+ __decorateClass$x([
7416
7732
  e$7({ type: Boolean })
7417
7733
  ], Select.prototype, "forceAutoFill", 2);
7418
- __decorateClass$y([
7734
+ __decorateClass$x([
7419
7735
  e$7()
7420
7736
  ], Select.prototype, "description", 1);
7421
- __decorateClass$y([
7737
+ __decorateClass$x([
7422
7738
  e$7()
7423
7739
  ], Select.prototype, "label", 1);
7424
- __decorateClass$y([
7425
- o$8({ slot: "label" })
7740
+ __decorateClass$x([
7741
+ o$9({ slot: "label" })
7426
7742
  ], Select.prototype, "slotLabelNodes", 2);
7427
- __decorateClass$y([
7428
- o$8({ slot: "description" })
7743
+ __decorateClass$x([
7744
+ o$9({ slot: "description" })
7429
7745
  ], Select.prototype, "slotDescriptionNodes", 2);
7430
- __decorateClass$y([
7431
- o$8({ slot: "suffix" })
7746
+ __decorateClass$x([
7747
+ o$9({ slot: "suffix" })
7432
7748
  ], Select.prototype, "slotSuffixNodes", 2);
7433
- __decorateClass$y([
7434
- o$8({ slot: "prefix" })
7749
+ __decorateClass$x([
7750
+ o$9({ slot: "prefix" })
7435
7751
  ], Select.prototype, "slotPrefixNodes", 2);
7436
- __decorateClass$y([
7752
+ __decorateClass$x([
7437
7753
  t$3()
7438
7754
  ], Select.prototype, "hasDescription", 2);
7439
- __decorateClass$y([
7755
+ __decorateClass$x([
7440
7756
  t$3()
7441
7757
  ], Select.prototype, "hasLabel", 2);
7442
- __decorateClass$y([
7758
+ __decorateClass$x([
7443
7759
  t$3()
7444
7760
  ], Select.prototype, "hasSuffix", 2);
7445
- __decorateClass$y([
7761
+ __decorateClass$x([
7446
7762
  t$3()
7447
7763
  ], Select.prototype, "hasPrefix", 2);
7448
- Select = __decorateClass$y([
7449
- e$8(tagName$x)
7764
+ Select = __decorateClass$x([
7765
+ e$8(tagName$w)
7450
7766
  ], Select);
7451
- var __defProp$x = Object.defineProperty;
7452
- var __getOwnPropDesc$x = Object.getOwnPropertyDescriptor;
7453
- var __decorateClass$x = (decorators, target, key, kind) => {
7454
- var result = kind > 1 ? void 0 : kind ? __getOwnPropDesc$x(target, key) : target;
7767
+ var __defProp$w = Object.defineProperty;
7768
+ var __getOwnPropDesc$w = Object.getOwnPropertyDescriptor;
7769
+ var __decorateClass$w = (decorators, target, key, kind) => {
7770
+ var result = kind > 1 ? void 0 : kind ? __getOwnPropDesc$w(target, key) : target;
7455
7771
  for (var i2 = decorators.length - 1, decorator; i2 >= 0; i2--)
7456
7772
  if (decorator = decorators[i2])
7457
7773
  result = (kind ? decorator(target, key, result) : decorator(result)) || result;
7458
7774
  if (kind && result)
7459
- __defProp$x(target, key, result);
7775
+ __defProp$w(target, key, result);
7460
7776
  return result;
7461
7777
  };
7462
- const tagName$w = "sonic-textarea";
7778
+ const tagName$v = "sonic-textarea";
7463
7779
  let Textarea = class extends Form(Form$2(Subscriber$1(s$3))) {
7464
7780
  constructor() {
7465
7781
  super(...arguments);
@@ -7493,8 +7809,8 @@ let Textarea = class extends Form(Form$2(Subscriber$1(s$3))) {
7493
7809
  textarea2.reportValidity();
7494
7810
  }
7495
7811
  render() {
7496
- return y`<label for="form-element" class="${this.hasLabel ? "form-label" : "hidden"}">${this.label ? o$2(this.label) : ""}<slot name="label" @slotchange="${this.hasSlotOrProps}"></slot></label><div class="form-control"><textarea id="form-element" @input="${this.handleChange}" @blur="${this.handleBlur}" disabled="${l$2(this.disabled)}" ?required="${this.required}" ?autofocus="${this.autofocus}" rows="${l$2(this.rows)}" cols="${l$2(this.cols)}" maxlength="${l$2(this.maxlength)}" minlength="${l$2(this.minlength)}" ?readonly="${this.readonly}" spellcheck="${l$2(this.spellcheck)}" autocomplete="${l$2(this.autocomplete)}" tabindex="${l$2(this.tabindex)}" wrap="${l$2(this.wrap)}" placeholder="${this.placeholder}" class="form-element textarea custom-scroll" aria-label="${l$2(this.ariaLabel)}" aria-labelledby="${l$2(this.ariaLabelledby)}">
7497
- ${this.value}</textarea></div><slot name="description" @slotchange="${this.hasSlotOrProps}" class="${this.hasDescription ? "form-description" : "hidden"}">${this.description ? y`${o$2(this.description)}` : ""}</slot>`;
7812
+ return y`<label for="form-element" class="${this.hasLabel ? "form-label" : "hidden"}">${this.label ? o$3(this.label) : ""}<slot name="label" @slotchange="${this.hasSlotOrProps}"></slot></label><div class="form-control"><textarea id="form-element" @input="${this.handleChange}" @blur="${this.handleBlur}" disabled="${l$2(this.disabled)}" ?required="${this.required}" ?autofocus="${this.autofocus}" rows="${l$2(this.rows)}" cols="${l$2(this.cols)}" maxlength="${l$2(this.maxlength)}" minlength="${l$2(this.minlength)}" ?readonly="${this.readonly}" spellcheck="${l$2(this.spellcheck)}" autocomplete="${l$2(this.autocomplete)}" tabindex="${l$2(this.tabindex)}" wrap="${l$2(this.wrap)}" placeholder="${this.placeholder}" class="form-element textarea custom-scroll" aria-label="${l$2(this.ariaLabel)}" aria-labelledby="${l$2(this.ariaLabelledby)}">
7813
+ ${this.value}</textarea></div><slot name="description" @slotchange="${this.hasSlotOrProps}" class="${this.hasDescription ? "form-description" : "hidden"}">${this.description ? y`${o$3(this.description)}` : ""}</slot>`;
7498
7814
  }
7499
7815
  };
7500
7816
  Textarea.styles = [
@@ -7505,54 +7821,54 @@ Textarea.styles = [
7505
7821
  customScroll,
7506
7822
  i$4`textarea{font-size:inherit}`
7507
7823
  ];
7508
- __decorateClass$x([
7824
+ __decorateClass$w([
7509
7825
  e$7({ type: String })
7510
7826
  ], Textarea.prototype, "size", 2);
7511
- __decorateClass$x([
7827
+ __decorateClass$w([
7512
7828
  e$7({ type: Number })
7513
7829
  ], Textarea.prototype, "rows", 2);
7514
- __decorateClass$x([
7830
+ __decorateClass$w([
7515
7831
  e$7({ type: Number })
7516
7832
  ], Textarea.prototype, "cols", 2);
7517
- __decorateClass$x([
7833
+ __decorateClass$w([
7518
7834
  e$7({ type: Number })
7519
7835
  ], Textarea.prototype, "maxlength", 2);
7520
- __decorateClass$x([
7836
+ __decorateClass$w([
7521
7837
  e$7({ type: Number })
7522
7838
  ], Textarea.prototype, "minlength", 2);
7523
- __decorateClass$x([
7839
+ __decorateClass$w([
7524
7840
  e$7({ type: String })
7525
7841
  ], Textarea.prototype, "wrap", 2);
7526
- __decorateClass$x([
7842
+ __decorateClass$w([
7527
7843
  e$7({ type: Boolean })
7528
7844
  ], Textarea.prototype, "readonly", 2);
7529
- __decorateClass$x([
7845
+ __decorateClass$w([
7530
7846
  e$7({ type: String })
7531
7847
  ], Textarea.prototype, "placeholder", 2);
7532
- __decorateClass$x([
7533
- o$8({ slot: "label" })
7848
+ __decorateClass$w([
7849
+ o$9({ slot: "label" })
7534
7850
  ], Textarea.prototype, "slotLabelNodes", 2);
7535
- __decorateClass$x([
7536
- o$8({ slot: "description" })
7851
+ __decorateClass$w([
7852
+ o$9({ slot: "description" })
7537
7853
  ], Textarea.prototype, "slotDescriptionNodes", 2);
7538
- __decorateClass$x([
7854
+ __decorateClass$w([
7539
7855
  t$3()
7540
7856
  ], Textarea.prototype, "hasDescription", 2);
7541
- __decorateClass$x([
7857
+ __decorateClass$w([
7542
7858
  t$3()
7543
7859
  ], Textarea.prototype, "hasLabel", 2);
7544
- Textarea = __decorateClass$x([
7545
- e$8(tagName$w)
7860
+ Textarea = __decorateClass$w([
7861
+ e$8(tagName$v)
7546
7862
  ], Textarea);
7547
- var __defProp$w = Object.defineProperty;
7548
- var __getOwnPropDesc$w = Object.getOwnPropertyDescriptor;
7549
- var __decorateClass$w = (decorators, target, key, kind) => {
7550
- var result = kind > 1 ? void 0 : kind ? __getOwnPropDesc$w(target, key) : target;
7863
+ var __defProp$v = Object.defineProperty;
7864
+ var __getOwnPropDesc$v = Object.getOwnPropertyDescriptor;
7865
+ var __decorateClass$v = (decorators, target, key, kind) => {
7866
+ var result = kind > 1 ? void 0 : kind ? __getOwnPropDesc$v(target, key) : target;
7551
7867
  for (var i2 = decorators.length - 1, decorator; i2 >= 0; i2--)
7552
7868
  if (decorator = decorators[i2])
7553
7869
  result = (kind ? decorator(target, key, result) : decorator(result)) || result;
7554
7870
  if (kind && result)
7555
- __defProp$w(target, key, result);
7871
+ __defProp$v(target, key, result);
7556
7872
  return result;
7557
7873
  };
7558
7874
  let LegendDescription = class extends s$3 {
@@ -7563,21 +7879,21 @@ let LegendDescription = class extends s$3 {
7563
7879
  LegendDescription.styles = [
7564
7880
  i$4`:host{color:var(--sc-neutral-500);font-size:1.25rem;line-height:1.2;display:block;font-weight:var(--sc-font-weight-base);font-style:var(--sc-font-style-base);margin-top:.25em}`
7565
7881
  ];
7566
- LegendDescription = __decorateClass$w([
7882
+ LegendDescription = __decorateClass$v([
7567
7883
  e$8("sonic-legend-description")
7568
7884
  ], LegendDescription);
7569
- var __defProp$v = Object.defineProperty;
7570
- var __getOwnPropDesc$v = Object.getOwnPropertyDescriptor;
7571
- var __decorateClass$v = (decorators, target, key, kind) => {
7572
- var result = kind > 1 ? void 0 : kind ? __getOwnPropDesc$v(target, key) : target;
7885
+ var __defProp$u = Object.defineProperty;
7886
+ var __getOwnPropDesc$u = Object.getOwnPropertyDescriptor;
7887
+ var __decorateClass$u = (decorators, target, key, kind) => {
7888
+ var result = kind > 1 ? void 0 : kind ? __getOwnPropDesc$u(target, key) : target;
7573
7889
  for (var i2 = decorators.length - 1, decorator; i2 >= 0; i2--)
7574
7890
  if (decorator = decorators[i2])
7575
7891
  result = (kind ? decorator(target, key, result) : decorator(result)) || result;
7576
7892
  if (kind && result)
7577
- __defProp$v(target, key, result);
7893
+ __defProp$u(target, key, result);
7578
7894
  return result;
7579
7895
  };
7580
- const tagName$v = "sonic-legend";
7896
+ const tagName$u = "sonic-legend";
7581
7897
  let Legend = class extends s$3 {
7582
7898
  constructor() {
7583
7899
  super(...arguments);
@@ -7602,45 +7918,45 @@ let Legend = class extends s$3 {
7602
7918
  this.requestUpdate();
7603
7919
  }
7604
7920
  render() {
7605
- return y`<legend part="legend">${this.iconName ? y`<div class="icon"><sonic-icon name="${this.iconName}" prefix="${l$2(this.iconPrefix)}" library="${l$2(this.iconLibrary)}"></sonic-icon></div>` : ""}<div class="legend-content">${o$2(this.label ? this.label : "")} ${this.description ? y`<sonic-legend-description>${o$2(this.description)}</sonic-legend-description>` : ""}<slot></slot></div><slot name="suffix"></slot></legend>`;
7921
+ return y`<legend part="legend">${this.iconName ? y`<div class="icon"><sonic-icon name="${this.iconName}" prefix="${l$2(this.iconPrefix)}" library="${l$2(this.iconLibrary)}"></sonic-icon></div>` : ""}<div class="legend-content">${o$3(this.label ? this.label : "")} ${this.description ? y`<sonic-legend-description>${o$3(this.description)}</sonic-legend-description>` : ""}<slot></slot></div><slot name="suffix"></slot></legend>`;
7606
7922
  }
7607
7923
  };
7608
7924
  Legend.styles = [
7609
7925
  i$4`:host{--sc-legend-font-size:1.5rem;--sc-legend-font-weight:var(--sc-font-weight-base);--sc-legend-font-style:var(--sc-headings-font-style);--sc-legend-family:var(--sc-headings-font-family);--sc-legend-line-height:var(--sc-headings-line-height);--sc-legend-color:var(--sc-base-content);display:flex;width:100%}legend{font-size:var(--sc-legend-font-size);font-weight:var(--sc-legend-font-weight);font-style:var(--sc-legend-font-style);font-family:var(--sc-legend-font-family);line-height:var(--sc-legend-line-height);color:var(--sc-legend-color);padding:0;display:flex;width:100%;align-items:flex-start;gap:.5em}slot[name=suffix]{display:block;margin-left:auto;flex-shrink:0}.legend-content{flex-grow:1}`
7610
7926
  ];
7611
- __decorateClass$v([
7927
+ __decorateClass$u([
7612
7928
  e$7({ type: Boolean })
7613
7929
  ], Legend.prototype, "forceAutoFill", 2);
7614
- __decorateClass$v([
7930
+ __decorateClass$u([
7615
7931
  e$7()
7616
7932
  ], Legend.prototype, "description", 1);
7617
- __decorateClass$v([
7933
+ __decorateClass$u([
7618
7934
  e$7()
7619
7935
  ], Legend.prototype, "label", 1);
7620
- __decorateClass$v([
7936
+ __decorateClass$u([
7621
7937
  e$7({ type: String })
7622
7938
  ], Legend.prototype, "iconName", 2);
7623
- __decorateClass$v([
7939
+ __decorateClass$u([
7624
7940
  e$7({ type: String })
7625
7941
  ], Legend.prototype, "iconLibrary", 2);
7626
- __decorateClass$v([
7942
+ __decorateClass$u([
7627
7943
  e$7({ type: String })
7628
7944
  ], Legend.prototype, "iconPrefix", 2);
7629
- Legend = __decorateClass$v([
7630
- e$8(tagName$v)
7945
+ Legend = __decorateClass$u([
7946
+ e$8(tagName$u)
7631
7947
  ], Legend);
7632
- var __defProp$u = Object.defineProperty;
7633
- var __getOwnPropDesc$u = Object.getOwnPropertyDescriptor;
7634
- var __decorateClass$u = (decorators, target, key, kind) => {
7635
- var result = kind > 1 ? void 0 : kind ? __getOwnPropDesc$u(target, key) : target;
7948
+ var __defProp$t = Object.defineProperty;
7949
+ var __getOwnPropDesc$t = Object.getOwnPropertyDescriptor;
7950
+ var __decorateClass$t = (decorators, target, key, kind) => {
7951
+ var result = kind > 1 ? void 0 : kind ? __getOwnPropDesc$t(target, key) : target;
7636
7952
  for (var i2 = decorators.length - 1, decorator; i2 >= 0; i2--)
7637
7953
  if (decorator = decorators[i2])
7638
7954
  result = (kind ? decorator(target, key, result) : decorator(result)) || result;
7639
7955
  if (kind && result)
7640
- __defProp$u(target, key, result);
7956
+ __defProp$t(target, key, result);
7641
7957
  return result;
7642
7958
  };
7643
- const tagName$u = "sonic-fieldset";
7959
+ const tagName$t = "sonic-fieldset";
7644
7960
  let Fieldset = class extends Subscriber$1(s$3) {
7645
7961
  constructor() {
7646
7962
  super(...arguments);
@@ -7654,32 +7970,32 @@ let Fieldset = class extends Subscriber$1(s$3) {
7654
7970
  Fieldset.styles = [
7655
7971
  i$4`:host{--sc-fieldset-mt:0;--sc-fieldset-mb:1rem;--sc-fieldset-border-color:var(--sc-border-color);--sc-fieldset-border-width:var(--sc-form-border-width);margin-top:var(--sc-fieldset-mt);margin-bottom:var(--sc-fieldset-mb);display:block;border:var(--sc-fieldset-border-width) solid var(--sc-fieldset-border-color)!important;padding:1.8rem 1.25rem;border-radius:var(--sc-rounded-lg)}fieldset{all:unset;display:contents}:host([variant=ghost]),:host([variant=shadow]){--sc-fieldset-border-color:transparent}:host([variant=shadow]){--sc-fieldset-border-color:transparent;box-shadow:var(--sc-shadow-lg)}::slotted(sonic-legend),sonic-legend{margin-bottom:1.5rem;display:block}::slotted(sonic-legend:last-child){margin-bottom:0}`
7656
7972
  ];
7657
- __decorateClass$u([
7973
+ __decorateClass$t([
7658
7974
  e$7({ type: Boolean, reflect: true })
7659
7975
  ], Fieldset.prototype, "disabled", 2);
7660
- __decorateClass$u([
7976
+ __decorateClass$t([
7661
7977
  e$7({ type: String })
7662
7978
  ], Fieldset.prototype, "form", 2);
7663
- __decorateClass$u([
7979
+ __decorateClass$t([
7664
7980
  e$7({ type: String })
7665
7981
  ], Fieldset.prototype, "label", 2);
7666
- __decorateClass$u([
7982
+ __decorateClass$t([
7667
7983
  e$7({ type: String })
7668
7984
  ], Fieldset.prototype, "description", 2);
7669
- __decorateClass$u([
7985
+ __decorateClass$t([
7670
7986
  e$7({ type: String })
7671
7987
  ], Fieldset.prototype, "iconName", 2);
7672
- __decorateClass$u([
7988
+ __decorateClass$t([
7673
7989
  e$7({ type: String })
7674
7990
  ], Fieldset.prototype, "iconLibrary", 2);
7675
- __decorateClass$u([
7991
+ __decorateClass$t([
7676
7992
  e$7({ type: String })
7677
7993
  ], Fieldset.prototype, "iconPrefix", 2);
7678
- __decorateClass$u([
7994
+ __decorateClass$t([
7679
7995
  e$7({ type: String, reflect: true })
7680
7996
  ], Fieldset.prototype, "variant", 2);
7681
- Fieldset = __decorateClass$u([
7682
- e$8(tagName$u)
7997
+ Fieldset = __decorateClass$t([
7998
+ e$8(tagName$t)
7683
7999
  ], Fieldset);
7684
8000
  class s {
7685
8001
  constructor(s2, { target: t2, config: i2, callback: h2, skipInitial: e2 }) {
@@ -7711,18 +8027,18 @@ class s {
7711
8027
  this.u.disconnect();
7712
8028
  }
7713
8029
  }
7714
- var __defProp$t = Object.defineProperty;
7715
- var __getOwnPropDesc$t = Object.getOwnPropertyDescriptor;
7716
- var __decorateClass$t = (decorators, target, key, kind) => {
7717
- var result = kind > 1 ? void 0 : kind ? __getOwnPropDesc$t(target, key) : target;
8030
+ var __defProp$s = Object.defineProperty;
8031
+ var __getOwnPropDesc$s = Object.getOwnPropertyDescriptor;
8032
+ var __decorateClass$s = (decorators, target, key, kind) => {
8033
+ var result = kind > 1 ? void 0 : kind ? __getOwnPropDesc$s(target, key) : target;
7718
8034
  for (var i2 = decorators.length - 1, decorator; i2 >= 0; i2--)
7719
8035
  if (decorator = decorators[i2])
7720
8036
  result = (kind ? decorator(target, key, result) : decorator(result)) || result;
7721
8037
  if (kind && result)
7722
- __defProp$t(target, key, result);
8038
+ __defProp$s(target, key, result);
7723
8039
  return result;
7724
8040
  };
7725
- const tagName$t = "sonic-form-layout";
8041
+ const tagName$s = "sonic-form-layout";
7726
8042
  let FormLayout = class extends Subscriber$1(s$3) {
7727
8043
  constructor() {
7728
8044
  super(...arguments);
@@ -7746,27 +8062,27 @@ let FormLayout = class extends Subscriber$1(s$3) {
7746
8062
  FormLayout.styles = [
7747
8063
  i$4`:host{display:block}div{display:grid;grid-gap:1.5rem;align-items:flex-start}.cq--md{grid-gap:1.75rem;grid-template-columns:repeat(2,minmax(0,1fr))}.one-form-element{grid-template-columns:1fr}::slotted(:not(sonic-input):not(sonic-select):not(sonic-input-autocomplete):not(.form-item-container)){grid-column:1/-1}::slotted(sonic-divider){--sc-divider-my:0}`
7748
8064
  ];
7749
- __decorateClass$t([
8065
+ __decorateClass$s([
7750
8066
  l$6({ flatten: true })
7751
8067
  ], FormLayout.prototype, "slottedElements", 2);
7752
- __decorateClass$t([
8068
+ __decorateClass$s([
7753
8069
  e$7({ type: Boolean })
7754
8070
  ], FormLayout.prototype, "oneFormElement", 2);
7755
- FormLayout = __decorateClass$t([
7756
- e$8(tagName$t)
8071
+ FormLayout = __decorateClass$s([
8072
+ e$8(tagName$s)
7757
8073
  ], FormLayout);
7758
- var __defProp$s = Object.defineProperty;
7759
- var __getOwnPropDesc$s = Object.getOwnPropertyDescriptor;
7760
- var __decorateClass$s = (decorators, target, key, kind) => {
7761
- var result = kind > 1 ? void 0 : kind ? __getOwnPropDesc$s(target, key) : target;
8074
+ var __defProp$r = Object.defineProperty;
8075
+ var __getOwnPropDesc$r = Object.getOwnPropertyDescriptor;
8076
+ var __decorateClass$r = (decorators, target, key, kind) => {
8077
+ var result = kind > 1 ? void 0 : kind ? __getOwnPropDesc$r(target, key) : target;
7762
8078
  for (var i2 = decorators.length - 1, decorator; i2 >= 0; i2--)
7763
8079
  if (decorator = decorators[i2])
7764
8080
  result = (kind ? decorator(target, key, result) : decorator(result)) || result;
7765
8081
  if (kind && result)
7766
- __defProp$s(target, key, result);
8082
+ __defProp$r(target, key, result);
7767
8083
  return result;
7768
8084
  };
7769
- const tagName$s = "sonic-form-actions";
8085
+ const tagName$r = "sonic-form-actions";
7770
8086
  let FormActions = class extends s$3 {
7771
8087
  constructor() {
7772
8088
  super(...arguments);
@@ -7784,27 +8100,27 @@ let FormActions = class extends s$3 {
7784
8100
  FormActions.styles = [
7785
8101
  i$4`:host{display:block}slot{display:flex;flex-wrap:wrap;gap:.3rem}`
7786
8102
  ];
7787
- __decorateClass$s([
8103
+ __decorateClass$r([
7788
8104
  e$7({ type: String })
7789
8105
  ], FormActions.prototype, "direction", 2);
7790
- __decorateClass$s([
8106
+ __decorateClass$r([
7791
8107
  e$7({ type: String })
7792
8108
  ], FormActions.prototype, "justify", 2);
7793
- FormActions = __decorateClass$s([
7794
- e$8(tagName$s)
8109
+ FormActions = __decorateClass$r([
8110
+ e$8(tagName$r)
7795
8111
  ], FormActions);
7796
- var __defProp$r = Object.defineProperty;
7797
- var __getOwnPropDesc$r = Object.getOwnPropertyDescriptor;
7798
- var __decorateClass$r = (decorators, target, key, kind) => {
7799
- var result = kind > 1 ? void 0 : kind ? __getOwnPropDesc$r(target, key) : target;
8112
+ var __defProp$q = Object.defineProperty;
8113
+ var __getOwnPropDesc$q = Object.getOwnPropertyDescriptor;
8114
+ var __decorateClass$q = (decorators, target, key, kind) => {
8115
+ var result = kind > 1 ? void 0 : kind ? __getOwnPropDesc$q(target, key) : target;
7800
8116
  for (var i2 = decorators.length - 1, decorator; i2 >= 0; i2--)
7801
8117
  if (decorator = decorators[i2])
7802
8118
  result = (kind ? decorator(target, key, result) : decorator(result)) || result;
7803
8119
  if (kind && result)
7804
- __defProp$r(target, key, result);
8120
+ __defProp$q(target, key, result);
7805
8121
  return result;
7806
8122
  };
7807
- const tagName$r = "sonic-group";
8123
+ const tagName$q = "sonic-group";
7808
8124
  let Group = class extends s$3 {
7809
8125
  constructor() {
7810
8126
  super(...arguments);
@@ -7850,7 +8166,7 @@ let Group = class extends s$3 {
7850
8166
  const slotStyle = {
7851
8167
  alignItems: this.alignItems
7852
8168
  };
7853
- return y`<span class="${this.hasLabel ? "form-label" : "hidden"}">${this.label ? o$2(this.label) : ""}<slot name="label" @slotchange="${this.hasSlotOrProps}"></slot></span><slot class="main-slot" style="${i$1(slotStyle)}"></slot><slot name="description" @slotchange="${this.hasSlotOrProps}" class="${this.hasDescription ? "form-description" : "hidden"}">${this.description ? y`${o$2(this.description)}` : ""}</slot>`;
8169
+ return y`<span class="${this.hasLabel ? "form-label" : "hidden"}">${this.label ? o$3(this.label) : ""}<slot name="label" @slotchange="${this.hasSlotOrProps}"></slot></span><slot class="main-slot" style="${i$1(slotStyle)}"></slot><slot name="description" @slotchange="${this.hasSlotOrProps}" class="${this.hasDescription ? "form-description" : "hidden"}">${this.description ? y`${o$3(this.description)}` : ""}</slot>`;
7854
8170
  }
7855
8171
  };
7856
8172
  Group.styles = [
@@ -7859,42 +8175,42 @@ Group.styles = [
7859
8175
  description,
7860
8176
  i$4`:host{display:inline-block;vertical-align:middle}.main-slot{width:100%;display:flex}.hidden{display:none}::slotted(sonic-button),::slotted(sonic-input),::slotted(sonic-select){flex-grow:1}`
7861
8177
  ];
7862
- __decorateClass$r([
8178
+ __decorateClass$q([
7863
8179
  e$7({ type: String })
7864
8180
  ], Group.prototype, "alignItems", 2);
7865
- __decorateClass$r([
8181
+ __decorateClass$q([
7866
8182
  e$7({ type: String })
7867
8183
  ], Group.prototype, "label", 2);
7868
- __decorateClass$r([
8184
+ __decorateClass$q([
7869
8185
  e$7({ type: String })
7870
8186
  ], Group.prototype, "description", 2);
7871
- __decorateClass$r([
7872
- o$8({ slot: "label" })
8187
+ __decorateClass$q([
8188
+ o$9({ slot: "label" })
7873
8189
  ], Group.prototype, "slotLabelNodes", 2);
7874
- __decorateClass$r([
7875
- o$8({ slot: "description" })
8190
+ __decorateClass$q([
8191
+ o$9({ slot: "description" })
7876
8192
  ], Group.prototype, "slotDescriptionNodes", 2);
7877
- __decorateClass$r([
8193
+ __decorateClass$q([
7878
8194
  t$3()
7879
8195
  ], Group.prototype, "hasDescription", 2);
7880
- __decorateClass$r([
8196
+ __decorateClass$q([
7881
8197
  t$3()
7882
8198
  ], Group.prototype, "hasLabel", 2);
7883
- Group = __decorateClass$r([
7884
- e$8(tagName$r)
8199
+ Group = __decorateClass$q([
8200
+ e$8(tagName$q)
7885
8201
  ], Group);
7886
- var __defProp$q = Object.defineProperty;
7887
- var __getOwnPropDesc$q = Object.getOwnPropertyDescriptor;
7888
- var __decorateClass$q = (decorators, target, key, kind) => {
7889
- var result = kind > 1 ? void 0 : kind ? __getOwnPropDesc$q(target, key) : target;
8202
+ var __defProp$p = Object.defineProperty;
8203
+ var __getOwnPropDesc$p = Object.getOwnPropertyDescriptor;
8204
+ var __decorateClass$p = (decorators, target, key, kind) => {
8205
+ var result = kind > 1 ? void 0 : kind ? __getOwnPropDesc$p(target, key) : target;
7890
8206
  for (var i2 = decorators.length - 1, decorator; i2 >= 0; i2--)
7891
8207
  if (decorator = decorators[i2])
7892
8208
  result = (kind ? decorator(target, key, result) : decorator(result)) || result;
7893
8209
  if (kind && result)
7894
- __defProp$q(target, key, result);
8210
+ __defProp$p(target, key, result);
7895
8211
  return result;
7896
8212
  };
7897
- const tagName$q = "sonic-image";
8213
+ const tagName$p = "sonic-image";
7898
8214
  let Image = class extends s$3 {
7899
8215
  constructor() {
7900
8216
  super(...arguments);
@@ -7907,6 +8223,17 @@ let Image = class extends s$3 {
7907
8223
  this.imageRendering = "auto";
7908
8224
  this.cover = false;
7909
8225
  }
8226
+ firstUpdated() {
8227
+ var _a2;
8228
+ if (this.transition) {
8229
+ const img = (_a2 = this.shadowRoot) == null ? void 0 : _a2.querySelector("img");
8230
+ if (!img)
8231
+ return;
8232
+ img.onload = function() {
8233
+ img.classList.add("loaded");
8234
+ };
8235
+ }
8236
+ }
7910
8237
  render() {
7911
8238
  const imgStyles = {
7912
8239
  aspectRatio: this.cover ? "auto" : this.ratio,
@@ -7917,108 +8244,38 @@ let Image = class extends s$3 {
7917
8244
  }
7918
8245
  };
7919
8246
  Image.styles = [
7920
- i$4`:host{--sc-img-radius:0;--sc-img-bg:var(--sc-placeholder-bg);border-radius:var(--sc-img-radius);display:block;width:100%;background:var(--sc-img-bg)}img{width:100%;vertical-align:middle;object-fit:cover}img[src=""]{visibility:hidden}:host([rounded]){--sc-img-radius:var(--sc-rounded);overflow:hidden}:host([rounded=sm]){--sc-img-radius:var(--sc-rounded-sm)}:host([rounded=md]){--sc-img-radius:var(--sc-rounded-md)}:host([rounded=lg]){--sc-img-radius:var(--sc-rounded-lg)}:host([rounded=xl]){--sc-img-radius:var(--sc-rounded-xl)}:host([rounded=full]){--sc-img-radius:50%!important}:host([rounded=none]){--sc-img-radius:0!important}:host([cover]),:host([cover]) img,:host([cover])>div{position:absolute!important;left:0!important;top:0!important;right:0!important;bottom:0!important;height:100%!important;width:100%!important}`
8247
+ i$4`:host{--sc-img-radius:0;--sc-img-bg:var(--sc-placeholder-bg);border-radius:var(--sc-img-radius);display:block;width:100%;background:var(--sc-img-bg)}img{width:100%;vertical-align:middle;object-fit:cover}img[src=""]{visibility:hidden}:host([rounded]){--sc-img-radius:var(--sc-rounded);overflow:hidden}:host([rounded=sm]){--sc-img-radius:var(--sc-rounded-sm)}:host([rounded=md]){--sc-img-radius:var(--sc-rounded-md)}:host([rounded=lg]){--sc-img-radius:var(--sc-rounded-lg)}:host([rounded=xl]){--sc-img-radius:var(--sc-rounded-xl)}:host([rounded=full]){--sc-img-radius:50%!important}:host([rounded=none]){--sc-img-radius:0!important}:host([cover]),:host([cover]) img,:host([cover])>div{position:absolute!important;left:0!important;top:0!important;right:0!important;bottom:0!important;height:100%!important;width:100%!important}:host([transition]) img{opacity:0;transition:.25s}:host([transition=fade-scale-out]) img{scale:1.08;transition:opacity .3s linear,scale .3s cubic-bezier(.16,1,.3,1)}:host([transition]) img.loaded{opacity:1;scale:1}`
7921
8248
  ];
7922
- __decorateClass$q([
8249
+ __decorateClass$p([
7923
8250
  e$7({ type: String })
7924
8251
  ], Image.prototype, "rounded", 2);
7925
- __decorateClass$q([
8252
+ __decorateClass$p([
7926
8253
  e$7({ type: String })
7927
8254
  ], Image.prototype, "src", 2);
7928
- __decorateClass$q([
8255
+ __decorateClass$p([
7929
8256
  e$7({ type: String })
7930
8257
  ], Image.prototype, "alt", 2);
7931
- __decorateClass$q([
8258
+ __decorateClass$p([
7932
8259
  e$7({ type: String })
7933
8260
  ], Image.prototype, "loading", 2);
7934
- __decorateClass$q([
8261
+ __decorateClass$p([
8262
+ e$7({ type: String, reflect: true })
8263
+ ], Image.prototype, "transition", 2);
8264
+ __decorateClass$p([
7935
8265
  e$7({ type: String })
7936
8266
  ], Image.prototype, "ratio", 2);
7937
- __decorateClass$q([
8267
+ __decorateClass$p([
7938
8268
  e$7({ type: String })
7939
8269
  ], Image.prototype, "objectPosition", 2);
7940
- __decorateClass$q([
8270
+ __decorateClass$p([
7941
8271
  e$7({ type: String })
7942
8272
  ], Image.prototype, "imageRendering", 2);
7943
- __decorateClass$q([
8273
+ __decorateClass$p([
7944
8274
  e$7({ type: Boolean, reflect: true })
7945
8275
  ], Image.prototype, "cover", 2);
7946
- Image = __decorateClass$q([
7947
- e$8(tagName$q)
7948
- ], Image);
7949
- var __defProp$p = Object.defineProperty;
7950
- var __getOwnPropDesc$p = Object.getOwnPropertyDescriptor;
7951
- var __decorateClass$p = (decorators, target, key, kind) => {
7952
- var result = kind > 1 ? void 0 : kind ? __getOwnPropDesc$p(target, key) : target;
7953
- for (var i2 = decorators.length - 1, decorator; i2 >= 0; i2--)
7954
- if (decorator = decorators[i2])
7955
- result = (kind ? decorator(target, key, result) : decorator(result)) || result;
7956
- if (kind && result)
7957
- __defProp$p(target, key, result);
7958
- return result;
7959
- };
7960
- const tagName$p = "sonic-event-taxonomy";
7961
- let Taxonomy = class extends s$3 {
7962
- constructor() {
7963
- super(...arguments);
7964
- this.icon = { name: "" };
7965
- this.taxonomy = [];
7966
- this.separator = ",&nbsp;";
7967
- this.key = "";
7968
- this.displayAll = false;
7969
- this.type = "default";
7970
- this.variant = "default";
7971
- this.size = "md";
7972
- }
7973
- render() {
7974
- if (!Array.isArray(this.taxonomy))
7975
- return b$1;
7976
- const key = this.key + "_display";
7977
- const taxo = this.displayAll ? this.taxonomy : this.taxonomy.filter(
7978
- (elt) => elt != null && (elt[key] === true || elt[key] == "1" || !Object.hasOwnProperty.call(elt, key))
7979
- );
7980
- if (taxo.length === 0) {
7981
- this.style.display = "none";
7982
- return b$1;
7983
- }
7984
- this.style.removeProperty("display");
7985
- return y`<sonic-badge type="${this.type}" variant="${this.variant}" size="${this.size}"><sonic-icon slot="prefix" library="${l$2(this.icon.library)}" prefix="${l$2(this.icon.prefix)}" name="${l$2(this.icon.name)}"></sonic-icon><span class="taxonomy-list">${c$1(
7986
- taxo,
7987
- (item) => item[this.key + "_id"],
7988
- (item) => {
7989
- return y`<span>${item[this.key + "_name"] || item["name"]}</span><span class="sonic-taxonomy-separator">${o$2(this.separator)}</span>`;
7990
- }
7991
- )}</span></sonic-badge>`;
7992
- }
7993
- };
7994
- Taxonomy.styles = i$4`:host .sonic-taxonomy-separator:last-child{display:none}.taxonomy-list{display:flex;flex-wrap:wrap}`;
7995
- __decorateClass$p([
7996
- e$7({ type: Object })
7997
- ], Taxonomy.prototype, "icon", 2);
7998
- __decorateClass$p([
7999
- e$7({ type: Array })
8000
- ], Taxonomy.prototype, "taxonomy", 2);
8001
- __decorateClass$p([
8002
- e$7({ type: String })
8003
- ], Taxonomy.prototype, "separator", 2);
8004
- __decorateClass$p([
8005
- e$7({ type: String })
8006
- ], Taxonomy.prototype, "key", 2);
8007
- __decorateClass$p([
8008
- e$7({ type: Boolean })
8009
- ], Taxonomy.prototype, "displayAll", 2);
8010
- __decorateClass$p([
8011
- e$7({ type: String, reflect: true })
8012
- ], Taxonomy.prototype, "type", 2);
8013
- __decorateClass$p([
8014
- e$7({ type: String, reflect: true })
8015
- ], Taxonomy.prototype, "variant", 2);
8016
- __decorateClass$p([
8017
- e$7({ type: String, reflect: true })
8018
- ], Taxonomy.prototype, "size", 2);
8019
- Taxonomy = __decorateClass$p([
8276
+ Image = __decorateClass$p([
8020
8277
  e$8(tagName$p)
8021
- ], Taxonomy);
8278
+ ], Image);
8022
8279
  var __defProp$o = Object.defineProperty;
8023
8280
  var __getOwnPropDesc$o = Object.getOwnPropertyDescriptor;
8024
8281
  var __decorateClass$o = (decorators, target, key, kind) => {
@@ -8276,7 +8533,7 @@ let ModalClose = class extends s$3 {
8276
8533
  }
8277
8534
  };
8278
8535
  ModalClose.styles = [
8279
- i$4`:host{position:sticky;display:block;align-self:flex-end;height:0;top:0;padding-top:.5rem;padding-right:.5rem;transform:translate3d(calc(var(--sc-modal-px)),calc(-1 * var(--sc-modal-py)),0);z-index:20}`
8536
+ i$4`:host{position:sticky;display:block;align-self:flex-end;height:0;top:.5rem;right:.5rem;transform:translate3d(calc(var(--sc-modal-px)),calc(-1 * var(--sc-modal-py)),0);z-index:20}`
8280
8537
  ];
8281
8538
  __decorateClass$m([
8282
8539
  e$7()
@@ -8302,7 +8559,7 @@ let ModalContent = class extends s$3 {
8302
8559
  }
8303
8560
  };
8304
8561
  ModalContent.styles = [
8305
- i$4`:host{display:block}`
8562
+ i$4`:host{display:block;width:100%}`
8306
8563
  ];
8307
8564
  ModalContent = __decorateClass$l([
8308
8565
  e$8(tagName$l)
@@ -8369,17 +8626,31 @@ let Modal = class extends Subscriber$1(s$3) {
8369
8626
  constructor() {
8370
8627
  super(...arguments);
8371
8628
  this.forceAction = false;
8629
+ this.removeOnHide = false;
8372
8630
  this.align = "left";
8373
8631
  this.padding = "var(--sc-modal-py) var(--sc-modal-px)";
8374
8632
  this.maxWidth = "var(--sc-modal-max-w) ";
8375
8633
  this.maxHeight = "var(--sc-modal-max-h) ";
8376
8634
  this.width = "100%";
8377
8635
  this.height = "auto";
8636
+ this.zIndex = "var(--sc-modal-z-index)";
8378
8637
  this.fullScreen = false;
8379
8638
  this.visible = false;
8380
8639
  }
8381
8640
  static create(options) {
8382
8641
  const modal = document.createElement(tagName$i);
8642
+ if (options.removeOnHide === true)
8643
+ modal.setAttribute("removeOnHide", "true");
8644
+ if (options.maxWidth)
8645
+ modal.maxWidth = options == null ? void 0 : options.maxWidth;
8646
+ if (options.width)
8647
+ modal.width = options == null ? void 0 : options.width;
8648
+ if (options.paddingX)
8649
+ modal.style.setProperty("--sc-modal-px", options == null ? void 0 : options.paddingX);
8650
+ if (options.paddingY)
8651
+ modal.style.setProperty("--sc-modal-py", options == null ? void 0 : options.paddingY);
8652
+ if (options.zIndex)
8653
+ modal.style.setProperty("--sc-modal-z-index", options == null ? void 0 : options.zIndex);
8383
8654
  modal.innerHTML = `<sonic-modal-close></sonic-modal-close><sonic-modal-content>${options.content}</sonic-modal-content>` || "";
8384
8655
  const container = document.querySelector("sonic-theme") || document.body;
8385
8656
  container.appendChild(modal);
@@ -8418,6 +8689,7 @@ let Modal = class extends Subscriber$1(s$3) {
8418
8689
  maxHeight: this.maxHeight,
8419
8690
  width: this.width,
8420
8691
  height: this.height,
8692
+ zIndex: this.zIndex,
8421
8693
  borderRadius: this.fullScreen ? "0" : "var(--sc-modal-rounded)"
8422
8694
  };
8423
8695
  const modalWrapperStyles = {
@@ -8436,7 +8708,7 @@ let Modal = class extends Subscriber$1(s$3) {
8436
8708
  },
8437
8709
  in: [{ transform: "translateY(25%) scale(1)", boxShadow: "0 0 0 rgba(0,0,0,0)", opacity: 0 }],
8438
8710
  out: [{ transform: "translateY(20%) scale(1)", boxShadow: "0 0 0 rgba(0,0,0,0)", opacity: 0 }]
8439
- })}><div class="modal-content"><slot></slot></div></div></div><div class="overlay" @click="${!this.forceAction ? this.hide : ""}" ${$({
8711
+ })}><div class="modal-content"><slot></slot></div></div></div><div class="overlay" @click="${!this.forceAction ? this.hide : null}" ${$({
8440
8712
  keyframeOptions: {
8441
8713
  duration: 500
8442
8714
  },
@@ -8459,6 +8731,9 @@ let Modal = class extends Subscriber$1(s$3) {
8459
8731
  if (this.hasAttribute("resetDataProviderOnHide")) {
8460
8732
  PublisherManager.get(this.getAttribute("resetDataProviderOnHide")).set({});
8461
8733
  }
8734
+ if (this.removeOnHide) {
8735
+ this.remove();
8736
+ }
8462
8737
  }
8463
8738
  dispose() {
8464
8739
  this.hide();
@@ -8467,9 +8742,9 @@ let Modal = class extends Subscriber$1(s$3) {
8467
8742
  handleEscape(e2) {
8468
8743
  if (e2.key === "Escape") {
8469
8744
  const modals = [...document.querySelectorAll(tagName$i)];
8470
- modals.forEach((item) => {
8471
- if (!this.forceAction) {
8472
- item.hide();
8745
+ modals.forEach((modal) => {
8746
+ if (!modal.forceAction) {
8747
+ modal.hide();
8473
8748
  }
8474
8749
  });
8475
8750
  }
@@ -8485,11 +8760,14 @@ let Modal = class extends Subscriber$1(s$3) {
8485
8760
  };
8486
8761
  Modal.styles = [
8487
8762
  customScroll,
8488
- i$4`:host{--sc-modal-py:2.5rem;--sc-modal-px:1.5rem;--sc-modal-max-w:min(100vw, 64ch);--sc-modal-max-h:80vh;--sc-modal-rounded:var(--sc-rounded-lg)}*{box-sizing:border-box}.modal-wrapper{position:fixed;bottom:0;left:0;width:100%;z-index:990;align-items:center;justify-content:center;flex-direction:column;display:flex;pointer-events:none}.modal-content{display:flex;flex-direction:column;min-height:10rem;line-height:1.25}.modal{background:var(--sc-base);color:var(--sc-base-content);width:100%;box-shadow:var(--sc-shadow-lg);border-radius:var(--sc-modal-rounded) var(--sc-modal-rounded) 0 0;pointer-events:auto;transform:translateZ(0)}.overlay{background:var(--sc-modal-overlay-bg,var(--sc-base-200));left:0;top:0;right:0;bottom:0;z-index:900;opacity:.8;position:fixed}::slotted(sonic-modal-title){margin-bottom:1.25rem}::slotted(sonic-modal-subtitle){margin-top:-.9rem;margin-bottom:1.25rem}@media (max-width:767.5px){.modal,.modal-wrapper{max-width:none!important;width:100%!important}}@media (min-width:768px){.modal-wrapper{top:50%;left:50%;bottom:auto;right:auto;transform:translateX(-50%) translateY(-50%)}.modal{top:50%;bottom:auto;right:auto;border-radius:var(--sc-modal-rounded)}}:host([align=left]) .modal-content{text-align:left;align-items:flex-start}:host([align=center]) .modal-content{text-align:center;align-items:center}:host([align=right]) .modal-content{text-align:right;align-items:flex-end}:host([rounded=none]) modal{--sc-img-radius:0!important}`
8763
+ i$4`:host{--sc-modal-py:2.5rem;--sc-modal-px:1.5rem;--sc-modal-max-w:min(100vw, 64ch);--sc-modal-max-h:80vh;--sc-modal-rounded:var(--sc-rounded-lg);--sc-modal-z-index:990}*{box-sizing:border-box}.modal-wrapper{position:fixed;bottom:0;left:0;width:100%;z-index:calc(var(--sc-modal-z-index) + 1);align-items:center;justify-content:center;flex-direction:column;display:flex;pointer-events:none}.modal-content{display:flex;flex-direction:column;min-height:10rem;line-height:1.25}.modal{background:var(--sc-base);color:var(--sc-base-content);width:100%;box-shadow:var(--sc-shadow-lg);border-radius:var(--sc-modal-rounded) var(--sc-modal-rounded) 0 0;pointer-events:auto;transform:translateZ(0)}.overlay{background:var(--sc-modal-overlay-bg,var(--sc-base-200));left:0;top:0;right:0;bottom:0;z-index:var(--sc-modal-z-index);opacity:.8;position:fixed}::slotted(sonic-modal-title){margin-bottom:1.25rem}::slotted(sonic-modal-subtitle){margin-top:-.9rem;margin-bottom:1.25rem}@media (max-width:767.5px){.modal,.modal-wrapper{max-width:none!important;width:100%!important;border-radius:var(--sc-modal-rounded) var(--sc-modal-rounded) 0 0!important}}@media (min-width:768px){.modal-wrapper{top:50%;left:50%;bottom:auto;right:auto;transform:translateX(-50%) translateY(-50%)}.modal{top:50%;bottom:auto;right:auto;border-radius:var(--sc-modal-rounded)}}:host([align=left]) .modal-content{text-align:left;align-items:flex-start}:host([align=center]) .modal-content{text-align:center;align-items:center}:host([align=right]) .modal-content{text-align:right;align-items:flex-end}:host([rounded=none]) modal{--sc-img-radius:0!important}`
8489
8764
  ];
8490
8765
  __decorateClass$i([
8491
8766
  e$7({ type: Boolean })
8492
8767
  ], Modal.prototype, "forceAction", 2);
8768
+ __decorateClass$i([
8769
+ e$7({ type: Boolean })
8770
+ ], Modal.prototype, "removeOnHide", 2);
8493
8771
  __decorateClass$i([
8494
8772
  e$7({ type: String, reflect: true })
8495
8773
  ], Modal.prototype, "align", 2);
@@ -8508,6 +8786,9 @@ __decorateClass$i([
8508
8786
  __decorateClass$i([
8509
8787
  e$7({ type: String })
8510
8788
  ], Modal.prototype, "height", 2);
8789
+ __decorateClass$i([
8790
+ e$7({ type: String })
8791
+ ], Modal.prototype, "zIndex", 2);
8511
8792
  __decorateClass$i([
8512
8793
  e$7({ type: Boolean, reflect: true })
8513
8794
  ], Modal.prototype, "fullScreen", 2);
@@ -8552,27 +8833,38 @@ let Alert = class extends s$3 {
8552
8833
  constructor() {
8553
8834
  super(...arguments);
8554
8835
  this.label = "";
8836
+ this.noIcon = false;
8555
8837
  this.text = "";
8838
+ this.dismissible = false;
8556
8839
  this.background = false;
8557
8840
  this.status = "default";
8558
8841
  }
8559
8842
  render() {
8560
- return y`<div part="alert" class="alert"><div>${this.status && y`<sonic-icon name="${icon[this.status]}"></sonic-icon>`}</div><div>${this.label ? y`<span class="label">${o$2(this.label)}</span>` : b$1}<slot>${this.text}</slot></div></div>`;
8843
+ return y`<div part="alert" class="alert">${!this.noIcon ? y`<div>${this.status && y`<sonic-icon name="${icon[this.status]}"></sonic-icon>`}</div>` : b$1}<div>${this.label ? y`<span class="label">${o$3(this.label)}</span>` : b$1}<slot>${this.text}</slot></div>${this.dismissible ? y`<sonic-button @click="${this.close}" class="close-btn" variant="unstyled" shape="circle"><sonic-icon name="cancel" size="lg"></sonic-icon></sonic-button>` : b$1}</div>`;
8844
+ }
8845
+ close() {
8846
+ this.remove();
8561
8847
  }
8562
8848
  };
8563
8849
  Alert.styles = [
8564
8850
  fontSize,
8565
- i$4`:host{--sc-alert-color:var(--sc-base-content);--sc-alert-rounded:var(--sc-rounded);--sc-alert-fw:var(--sc-font-weight-base);--sc-alert-fst:var(--sc-font-style-base);--sc-alert-label-fw:bold;display:block;font-weight:var(--sc-alert-fw);font-style:var(--sc-alert-fst)}.alert{color:var(--sc-alert-color);position:relative;display:flex;gap:.4em;border-radius:var(--sc-alert-rounded)}.label{font-weight:var(--sc-alert-label-fw)}:host([status=warning]){--sc-alert-color:var(--sc-warning)}:host([status=error]){--sc-alert-color:var(--sc-danger)}:host([status=info]){--sc-alert-color:var(--sc-info)}:host([status=success]){--sc-alert-color:var(--sc-success)}:host([background]) .alert{background:var(--sc-base);padding:.8em 1.15em}:host([background]) .alert:before{background-color:currentColor;content:"";display:block;position:absolute;left:0;top:0;right:0;bottom:0;opacity:.08;border-radius:var(--sc-alert-rounded);pointer-events:none}:host([background])>div{z-index:2;position:relative}slot{display:block}:host([size=xs]) .alert{--sc-alert-rounded:var(--sc-rounded-sm)}:host([size=sm]) .alert{--sc-alert-rounded:var(--sc-rounded-sm)}`
8851
+ i$4`:host{--sc-alert-color:var(--sc-base-content);--sc-alert-rounded:var(--sc-rounded);--sc-alert-fw:var(--sc-font-weight-base);--sc-alert-fst:var(--sc-font-style-base);--sc-alert-label-fw:bold;display:block;font-weight:var(--sc-alert-fw);font-style:var(--sc-alert-fst)}.alert{color:var(--sc-alert-color);position:relative;display:flex;gap:.4em;border-radius:var(--sc-alert-rounded)}.label{font-weight:var(--sc-alert-label-fw)}:host([status=warning]){--sc-alert-color:var(--sc-warning)}:host([status=error]){--sc-alert-color:var(--sc-danger)}:host([status=info]){--sc-alert-color:var(--sc-info)}:host([status=success]){--sc-alert-color:var(--sc-success)}:host([background]) .alert,:host([dismissible]) .alert{background:var(--sc-base);padding:.8em 1.15em}:host([background]) .alert:before,:host([dismissible]) .alert:before{background-color:currentColor;content:"";display:block;position:absolute;left:0;top:0;right:0;bottom:0;opacity:.08;border-radius:var(--sc-alert-rounded);pointer-events:none}:host([background])>div,:host([dismissible])>div{z-index:2;position:relative}slot{display:block}:host([size=xs]) .alert{--sc-alert-rounded:var(--sc-rounded-sm)}:host([size=sm]) .alert{--sc-alert-rounded:var(--sc-rounded-sm)}:host([dismissible]) .alert{padding-right:3rem}:host([dismissible]) .close-btn{padding:.5em;position:absolute;top:.25rem;right:.25rem}`
8566
8852
  ];
8567
8853
  __decorateClass$h([
8568
8854
  e$7({ type: String })
8569
8855
  ], Alert.prototype, "label", 2);
8856
+ __decorateClass$h([
8857
+ e$7({ type: Boolean, reflect: true })
8858
+ ], Alert.prototype, "noIcon", 2);
8570
8859
  __decorateClass$h([
8571
8860
  e$7({ type: String })
8572
8861
  ], Alert.prototype, "text", 2);
8573
8862
  __decorateClass$h([
8574
8863
  e$7({ type: String, reflect: true })
8575
8864
  ], Alert.prototype, "size", 2);
8865
+ __decorateClass$h([
8866
+ e$7({ type: Boolean, reflect: true })
8867
+ ], Alert.prototype, "dismissible", 2);
8576
8868
  __decorateClass$h([
8577
8869
  e$7({ type: Boolean, reflect: true })
8578
8870
  ], Alert.prototype, "background", 2);
@@ -8733,14 +9025,14 @@ let Divider = class extends s$3 {
8733
9025
  }
8734
9026
  }
8735
9027
  render() {
8736
- return y`<div part="divider"><span class="text">${o$2(this.label ? this.label : "")}<slot></slot></span></div>`;
9028
+ return y`<div part="divider"><span class="text">${o$3(this.label ? this.label : "")}<slot></slot></span></div>`;
8737
9029
  }
8738
9030
  };
8739
9031
  Divider.styles = [
8740
9032
  i$4`:host{--sc-divider-my:0.5rem;--sc-divider-mx:0;--sc-divider-border-width:max(1px, var(--sc-border-width));--sc-divider-border-color:var(--sc-border-color);--sc-divider-border-style:solid;--sc-divider-color:currentColor;--sc-divider-ff:var(--sc-font-family-base);--sc-divider-fs:1rem;--sc-divider-fw:var(--sc-font-weight-base);--sc-divider-fst:var(--sc-font-style-base);margin:var(--sc-divider-my) var(--sc-divider-mx);font-size:var(--sc-divider-fs);font-style:var(--sc-divider-fst);font-family:var(--sc-divider-ff);font-weight:var(--sc-divider-fw);color:var(--sc-divider-color);display:block}:host([size="2xs"]){--sc-divider-my:0.35rem;--sc-divider-fs:0.68rem}:host([size=xs]){--sc-divider-my:0.5rem;--sc-divider-fs:0.75rem}:host([size=sm]){--sc-divider-my:0.75rem;--sc-divider-fs:0.875rem}:host([size=md]){--sc-divider-my:1.25rem}:host([size=lg]){--sc-divider-my:1.85rem}:host([size=xl]){--sc-divider-my:2.25rem}:host([size="2xl"]){--sc-divider-my:3.35rem}div{display:flex;align-items:center;width:100%}div::after,div::before{content:"";flex-grow:1;border-top:var(--sc-divider-border-width) var(--sc-divider-border-style) var(--sc-divider-border-color);width:100%;opacity:var(--sc-divider-opacity,1)}:host([align=left]) div:before{display:none}:host([align=right]) div:after{display:none}:host([vertical]){margin:var(--sc-divider-mx) var(--sc-divider-my)}:host([vertical]) div{flex-direction:column;height:100%;min-height:var(--sc-form-height)}:host([vertical]) .has-text{gap:.25rem}:host([vertical]) div::after,:host([vertical]) div::before{border-top:none;border-left:var(--sc-divider-border-width) var(--sc-divider-border-style) var(--sc-divider-border-color);width:auto;height:100%;opacity:var(--sc-divider-opacity,1)}:host([noMargin]){margin:0}.text{flex-shrink:0;line-height:1.1;max-width:80%}.no-text .text{display:none}.has-text{gap:.5rem}`
8741
9033
  ];
8742
9034
  __decorateClass$e([
8743
- o$8()
9035
+ o$9()
8744
9036
  ], Divider.prototype, "slotNodes", 2);
8745
9037
  __decorateClass$e([
8746
9038
  i$5("div")
@@ -8800,7 +9092,7 @@ var __decorateClass$c = (decorators, target, key, kind) => {
8800
9092
  const tagName$c = "sonic-card-header";
8801
9093
  let CardHeader = class extends s$3 {
8802
9094
  render() {
8803
- return y`<div class="header"><div class="header-content">${o$2(this.label)} ${this.description ? y`<sonic-card-header-description>${o$2(this.description)}</sonic-card-header-description>` : ""}<slot></slot></div><slot name="suffix"></slot></div>`;
9095
+ return y`<div class="header"><div class="header-content">${o$3(this.label)} ${this.description ? y`<sonic-card-header-description>${o$3(this.description)}</sonic-card-header-description>` : ""}<slot></slot></div><slot name="suffix"></slot></div>`;
8804
9096
  }
8805
9097
  };
8806
9098
  CardHeader.styles = [