@webwriter/quiz 1.0.3 → 1.0.4

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 (41) hide show
  1. package/LICENSE +6 -6
  2. package/custom.d.ts +175 -175
  3. package/dist/widgets/webwriter-choice-item.js +58 -13
  4. package/dist/widgets/webwriter-choice.js +64 -19
  5. package/dist/widgets/webwriter-cloze-gap.js +59 -14
  6. package/dist/widgets/webwriter-cloze.js +56 -11
  7. package/dist/widgets/webwriter-mark.js +56 -11
  8. package/dist/widgets/webwriter-order-item.js +56 -11
  9. package/dist/widgets/webwriter-order.js +64 -19
  10. package/dist/widgets/webwriter-pairing.js +59 -14
  11. package/dist/widgets/webwriter-quiz.js +67 -22
  12. package/dist/widgets/webwriter-speech.js +66 -20
  13. package/dist/widgets/webwriter-task.js +534 -308
  14. package/dist/widgets/webwriter-text.js +60 -14
  15. package/package.json +200 -200
  16. package/src/lib/combobox.ts +455 -455
  17. package/src/snippets/choice.html +7 -7
  18. package/src/snippets/cloze.html +3 -3
  19. package/src/snippets/mark.html +3 -3
  20. package/src/snippets/order.html +7 -7
  21. package/src/snippets/pairing.html +9 -9
  22. package/src/snippets/speech.html +3 -3
  23. package/src/snippets/text.html +3 -3
  24. package/src/snippets/wordsearch.html +3 -3
  25. package/src/widgets/webwriter-choice-item.ts +250 -250
  26. package/src/widgets/webwriter-choice.ts +309 -309
  27. package/src/widgets/webwriter-cloze-gap.ts +216 -216
  28. package/src/widgets/webwriter-cloze.ts +135 -135
  29. package/src/widgets/webwriter-mark.ts +434 -434
  30. package/src/widgets/webwriter-order-item.ts +444 -444
  31. package/src/widgets/webwriter-order.ts +272 -272
  32. package/src/widgets/webwriter-pairing-item.ts +155 -155
  33. package/src/widgets/webwriter-pairing.ts +187 -187
  34. package/src/widgets/webwriter-quiz.ts +280 -280
  35. package/src/widgets/webwriter-speech.ts +267 -267
  36. package/src/widgets/webwriter-task-explainer.ts +37 -37
  37. package/src/widgets/webwriter-task-hint.ts +16 -16
  38. package/src/widgets/webwriter-task-prompt.ts +17 -17
  39. package/src/widgets/webwriter-task.ts +543 -543
  40. package/src/widgets/webwriter-text.ts +130 -130
  41. package/tsconfig.json +6 -6
@@ -1641,7 +1641,7 @@ var component_styles_default = i`
1641
1641
  }
1642
1642
  `;
1643
1643
 
1644
- // ../../node_modules/@shoelace-style/shoelace/dist/chunks/chunk.IFDWM6P4.js
1644
+ // ../../node_modules/@shoelace-style/shoelace/dist/chunks/chunk.B3BW2AY6.js
1645
1645
  var __defProp3 = Object.defineProperty;
1646
1646
  var __defProps = Object.defineProperties;
1647
1647
  var __getOwnPropDesc3 = Object.getOwnPropertyDescriptor;
@@ -1671,11 +1671,32 @@ var __decorateClass = (decorators, target, key, kind) => {
1671
1671
  __defProp3(target, key, result);
1672
1672
  return result;
1673
1673
  };
1674
+ var __accessCheck3 = (obj, member, msg) => {
1675
+ if (!member.has(obj))
1676
+ throw TypeError("Cannot " + msg);
1677
+ };
1678
+ var __privateGet3 = (obj, member, getter) => {
1679
+ __accessCheck3(obj, member, "read from private field");
1680
+ return getter ? getter.call(obj) : member.get(obj);
1681
+ };
1682
+ var __privateAdd3 = (obj, member, value) => {
1683
+ if (member.has(obj))
1684
+ throw TypeError("Cannot add the same private member more than once");
1685
+ member instanceof WeakSet ? member.add(obj) : member.set(obj, value);
1686
+ };
1687
+ var __privateSet3 = (obj, member, value, setter) => {
1688
+ __accessCheck3(obj, member, "write to private field");
1689
+ setter ? setter.call(obj, value) : member.set(obj, value);
1690
+ return value;
1691
+ };
1674
1692
 
1675
- // ../../node_modules/@shoelace-style/shoelace/dist/chunks/chunk.5THGRZAA.js
1693
+ // ../../node_modules/@shoelace-style/shoelace/dist/chunks/chunk.NLWS5DN7.js
1694
+ var _hasRecordedInitialProperties;
1676
1695
  var ShoelaceElement = class extends h3 {
1677
1696
  constructor() {
1678
1697
  super();
1698
+ __privateAdd3(this, _hasRecordedInitialProperties, false);
1699
+ this.initialReflectedProperties = /* @__PURE__ */ new Map();
1679
1700
  Object.entries(this.constructor.dependencies).forEach(([name, component]) => {
1680
1701
  this.constructor.define(name, component);
1681
1702
  });
@@ -1717,8 +1738,30 @@ var ShoelaceElement = class extends h3 {
1717
1738
  `Attempted to register <${name}>${newVersion}, but <${name}>${existingVersion} has already been registered.`
1718
1739
  );
1719
1740
  }
1741
+ attributeChangedCallback(name, oldValue, newValue) {
1742
+ if (!__privateGet3(this, _hasRecordedInitialProperties)) {
1743
+ this.constructor.elementProperties.forEach(
1744
+ (obj, prop) => {
1745
+ if (obj.reflect && this[prop] != null) {
1746
+ this.initialReflectedProperties.set(prop, this[prop]);
1747
+ }
1748
+ }
1749
+ );
1750
+ __privateSet3(this, _hasRecordedInitialProperties, true);
1751
+ }
1752
+ super.attributeChangedCallback(name, oldValue, newValue);
1753
+ }
1754
+ willUpdate(changedProperties) {
1755
+ super.willUpdate(changedProperties);
1756
+ this.initialReflectedProperties.forEach((value, prop) => {
1757
+ if (changedProperties.has(prop) && this[prop] == null) {
1758
+ this[prop] = value;
1759
+ }
1760
+ });
1761
+ }
1720
1762
  };
1721
- ShoelaceElement.version = "2.16.0";
1763
+ _hasRecordedInitialProperties = /* @__PURE__ */ new WeakMap();
1764
+ ShoelaceElement.version = "2.17.1";
1722
1765
  ShoelaceElement.dependencies = {};
1723
1766
  __decorateClass([
1724
1767
  n5()
@@ -1727,7 +1770,7 @@ __decorateClass([
1727
1770
  n5()
1728
1771
  ], ShoelaceElement.prototype, "lang", 2);
1729
1772
 
1730
- // ../../node_modules/@shoelace-style/shoelace/dist/chunks/chunk.7HOIOSC7.js
1773
+ // ../../node_modules/@shoelace-style/shoelace/dist/chunks/chunk.R2T2D3TO.js
1731
1774
  var SlSpinner = class extends ShoelaceElement {
1732
1775
  constructor() {
1733
1776
  super(...arguments);
@@ -1744,7 +1787,7 @@ var SlSpinner = class extends ShoelaceElement {
1744
1787
  };
1745
1788
  SlSpinner.styles = [component_styles_default, spinner_styles_default];
1746
1789
 
1747
- // ../../node_modules/@shoelace-style/shoelace/dist/chunks/chunk.KWPBDQ6I.js
1790
+ // ../../node_modules/@shoelace-style/shoelace/dist/chunks/chunk.2RCF7SLU.js
1748
1791
  var formCollections = /* @__PURE__ */ new WeakMap();
1749
1792
  var reportValidityOverloads = /* @__PURE__ */ new WeakMap();
1750
1793
  var checkValidityOverloads = /* @__PURE__ */ new WeakMap();
@@ -2874,7 +2917,7 @@ var icon_styles_default = i`
2874
2917
  }
2875
2918
  `;
2876
2919
 
2877
- // ../../node_modules/@shoelace-style/shoelace/dist/chunks/chunk.2FB5TK5H.js
2920
+ // ../../node_modules/@shoelace-style/shoelace/dist/chunks/chunk.CCJUT23E.js
2878
2921
  function watch(propertyName, options) {
2879
2922
  const resolvedOptions = __spreadValues({
2880
2923
  waitUntilFirstUpdate: false
@@ -2905,7 +2948,7 @@ var { I: et3 } = si;
2905
2948
  var nt = (o7, t6) => void 0 === t6 ? void 0 !== o7?._$litType$ : o7?._$litType$ === t6;
2906
2949
  var rt = (o7) => void 0 === o7.strings;
2907
2950
 
2908
- // ../../node_modules/@shoelace-style/shoelace/dist/chunks/chunk.ALSPWWWG.js
2951
+ // ../../node_modules/@shoelace-style/shoelace/dist/chunks/chunk.O7VCMB7W.js
2909
2952
  var CACHEABLE_ERROR = Symbol();
2910
2953
  var RETRYABLE_ERROR = Symbol();
2911
2954
  var parser;
@@ -2926,11 +2969,6 @@ var SlIcon = class extends ShoelaceElement {
2926
2969
  this.svg = ke`<svg part="svg">
2927
2970
  <use part="use" href="${url}"></use>
2928
2971
  </svg>`;
2929
- await this.updateComplete;
2930
- const svg = this.shadowRoot.querySelector("[part='svg']");
2931
- if (typeof library2.mutator === "function") {
2932
- library2.mutator(svg);
2933
- }
2934
2972
  return this.svg;
2935
2973
  }
2936
2974
  try {
@@ -3020,6 +3058,13 @@ var SlIcon = class extends ShoelaceElement {
3020
3058
  }
3021
3059
  if (nt(svg)) {
3022
3060
  this.svg = svg;
3061
+ if (library2) {
3062
+ await this.updateComplete;
3063
+ const shadowSVG = this.shadowRoot.querySelector("[part='svg']");
3064
+ if (typeof library2.mutator === "function" && shadowSVG) {
3065
+ library2.mutator(shadowSVG);
3066
+ }
3067
+ }
3023
3068
  return;
3024
3069
  }
3025
3070
  switch (svg) {
@@ -3138,7 +3183,7 @@ var Se3 = Ee(Se);
3138
3183
  // ../../node_modules/lit/node_modules/lit-html/directives/if-defined.js
3139
3184
  var to = (t6) => t6 ?? D;
3140
3185
 
3141
- // ../../node_modules/@shoelace-style/shoelace/dist/chunks/chunk.MR6SHCJO.js
3186
+ // ../../node_modules/@shoelace-style/shoelace/dist/chunks/chunk.OEHLR4TU.js
3142
3187
  var SlButton = class extends ShoelaceElement {
3143
3188
  constructor() {
3144
3189
  super(...arguments);
@@ -3287,7 +3332,7 @@ var SlButton = class extends ShoelaceElement {
3287
3332
  title=${this.title}
3288
3333
  name=${to(isLink ? void 0 : this.name)}
3289
3334
  value=${to(isLink ? void 0 : this.value)}
3290
- href=${to(isLink ? this.href : void 0)}
3335
+ href=${to(isLink && !this.disabled ? this.href : void 0)}
3291
3336
  target=${to(isLink ? this.target : void 0)}
3292
3337
  download=${to(isLink ? this.download : void 0)}
3293
3338
  rel=${to(isLink ? this.rel : void 0)}
@@ -3404,7 +3449,7 @@ var button_group_styles_default = i`
3404
3449
  }
3405
3450
  `;
3406
3451
 
3407
- // ../../node_modules/@shoelace-style/shoelace/dist/chunks/chunk.AKN2SAUH.js
3452
+ // ../../node_modules/@shoelace-style/shoelace/dist/chunks/chunk.RBPP5PLA.js
3408
3453
  var SlButtonGroup = class extends ShoelaceElement {
3409
3454
  constructor() {
3410
3455
  super(...arguments);
@@ -5060,7 +5105,7 @@ function r6(t6) {
5060
5105
  return null;
5061
5106
  }
5062
5107
 
5063
- // ../../node_modules/@shoelace-style/shoelace/dist/chunks/chunk.62L7S2LE.js
5108
+ // ../../node_modules/@shoelace-style/shoelace/dist/chunks/chunk.H24ENZMO.js
5064
5109
  function isVirtualElement(e7) {
5065
5110
  return e7 !== null && typeof e7 === "object" && "getBoundingClientRect" in e7 && ("contextElement" in e7 ? e7 instanceof Element : true);
5066
5111
  }
@@ -5187,7 +5232,7 @@ var SlPopup = class extends ShoelaceElement {
5187
5232
  if (this.anchorEl instanceof HTMLSlotElement) {
5188
5233
  this.anchorEl = this.anchorEl.assignedElements({ flatten: true })[0];
5189
5234
  }
5190
- if (this.anchorEl) {
5235
+ if (this.anchorEl && this.active) {
5191
5236
  this.start();
5192
5237
  }
5193
5238
  }
@@ -5450,7 +5495,7 @@ __decorateClass([
5450
5495
  n5({ attribute: "hover-bridge", type: Boolean })
5451
5496
  ], SlPopup.prototype, "hoverBridge", 2);
5452
5497
 
5453
- // ../../node_modules/@shoelace-style/shoelace/dist/chunks/chunk.DHU6MIVB.js
5498
+ // ../../node_modules/@shoelace-style/shoelace/dist/chunks/chunk.UW6SLYOK.js
5454
5499
  var defaultAnimationRegistry = /* @__PURE__ */ new Map();
5455
5500
  var customAnimationRegistry = /* @__PURE__ */ new WeakMap();
5456
5501
  function ensureAnimation(animation) {
@@ -5496,7 +5541,7 @@ function waitForEvent(el, eventName) {
5496
5541
  });
5497
5542
  }
5498
5543
 
5499
- // ../../node_modules/@shoelace-style/shoelace/dist/chunks/chunk.LHI6QEL2.js
5544
+ // ../../node_modules/@shoelace-style/shoelace/dist/chunks/chunk.3EPZX5HE.js
5500
5545
  function animateTo(el, keyframes, options) {
5501
5546
  return new Promise((resolve) => {
5502
5547
  if ((options == null ? void 0 : options.duration) === Infinity) {
@@ -5524,7 +5569,7 @@ function stopAnimations(el) {
5524
5569
  );
5525
5570
  }
5526
5571
 
5527
- // ../../node_modules/@shoelace-style/shoelace/dist/chunks/chunk.ZXJUHGOS.js
5572
+ // ../../node_modules/@shoelace-style/shoelace/dist/chunks/chunk.4ZML5342.js
5528
5573
  var SlDropdown = class extends ShoelaceElement {
5529
5574
  constructor() {
5530
5575
  super(...arguments);
@@ -5871,7 +5916,7 @@ var menu_styles_default = i`
5871
5916
  }
5872
5917
  `;
5873
5918
 
5874
- // ../../node_modules/@shoelace-style/shoelace/dist/chunks/chunk.NSN2PIET.js
5919
+ // ../../node_modules/@shoelace-style/shoelace/dist/chunks/chunk.MQVSSGFY.js
5875
5920
  var SlMenu = class extends ShoelaceElement {
5876
5921
  connectedCallback() {
5877
5922
  super.connectedCallback();
@@ -6463,7 +6508,7 @@ var SubmenuController = class {
6463
6508
  }
6464
6509
  };
6465
6510
 
6466
- // ../../node_modules/@shoelace-style/shoelace/dist/chunks/chunk.EBRNZUKR.js
6511
+ // ../../node_modules/@shoelace-style/shoelace/dist/chunks/chunk.AWJNGRYB.js
6467
6512
  var SlMenuItem = class extends ShoelaceElement {
6468
6513
  constructor() {
6469
6514
  super(...arguments);
@@ -1651,7 +1651,7 @@ var component_styles_default = i`
1651
1651
  }
1652
1652
  `;
1653
1653
 
1654
- // ../../node_modules/@shoelace-style/shoelace/dist/chunks/chunk.IFDWM6P4.js
1654
+ // ../../node_modules/@shoelace-style/shoelace/dist/chunks/chunk.B3BW2AY6.js
1655
1655
  var __defProp3 = Object.defineProperty;
1656
1656
  var __defProps = Object.defineProperties;
1657
1657
  var __getOwnPropDesc3 = Object.getOwnPropertyDescriptor;
@@ -1681,11 +1681,32 @@ var __decorateClass = (decorators, target, key, kind) => {
1681
1681
  __defProp3(target, key, result);
1682
1682
  return result;
1683
1683
  };
1684
+ var __accessCheck3 = (obj, member, msg) => {
1685
+ if (!member.has(obj))
1686
+ throw TypeError("Cannot " + msg);
1687
+ };
1688
+ var __privateGet3 = (obj, member, getter) => {
1689
+ __accessCheck3(obj, member, "read from private field");
1690
+ return getter ? getter.call(obj) : member.get(obj);
1691
+ };
1692
+ var __privateAdd3 = (obj, member, value) => {
1693
+ if (member.has(obj))
1694
+ throw TypeError("Cannot add the same private member more than once");
1695
+ member instanceof WeakSet ? member.add(obj) : member.set(obj, value);
1696
+ };
1697
+ var __privateSet3 = (obj, member, value, setter) => {
1698
+ __accessCheck3(obj, member, "write to private field");
1699
+ setter ? setter.call(obj, value) : member.set(obj, value);
1700
+ return value;
1701
+ };
1684
1702
 
1685
- // ../../node_modules/@shoelace-style/shoelace/dist/chunks/chunk.5THGRZAA.js
1703
+ // ../../node_modules/@shoelace-style/shoelace/dist/chunks/chunk.NLWS5DN7.js
1704
+ var _hasRecordedInitialProperties;
1686
1705
  var ShoelaceElement = class extends h3 {
1687
1706
  constructor() {
1688
1707
  super();
1708
+ __privateAdd3(this, _hasRecordedInitialProperties, false);
1709
+ this.initialReflectedProperties = /* @__PURE__ */ new Map();
1689
1710
  Object.entries(this.constructor.dependencies).forEach(([name, component]) => {
1690
1711
  this.constructor.define(name, component);
1691
1712
  });
@@ -1727,8 +1748,30 @@ var ShoelaceElement = class extends h3 {
1727
1748
  `Attempted to register <${name}>${newVersion}, but <${name}>${existingVersion} has already been registered.`
1728
1749
  );
1729
1750
  }
1751
+ attributeChangedCallback(name, oldValue, newValue) {
1752
+ if (!__privateGet3(this, _hasRecordedInitialProperties)) {
1753
+ this.constructor.elementProperties.forEach(
1754
+ (obj, prop) => {
1755
+ if (obj.reflect && this[prop] != null) {
1756
+ this.initialReflectedProperties.set(prop, this[prop]);
1757
+ }
1758
+ }
1759
+ );
1760
+ __privateSet3(this, _hasRecordedInitialProperties, true);
1761
+ }
1762
+ super.attributeChangedCallback(name, oldValue, newValue);
1763
+ }
1764
+ willUpdate(changedProperties) {
1765
+ super.willUpdate(changedProperties);
1766
+ this.initialReflectedProperties.forEach((value, prop) => {
1767
+ if (changedProperties.has(prop) && this[prop] == null) {
1768
+ this[prop] = value;
1769
+ }
1770
+ });
1771
+ }
1730
1772
  };
1731
- ShoelaceElement.version = "2.16.0";
1773
+ _hasRecordedInitialProperties = /* @__PURE__ */ new WeakMap();
1774
+ ShoelaceElement.version = "2.17.1";
1732
1775
  ShoelaceElement.dependencies = {};
1733
1776
  __decorateClass([
1734
1777
  n5()
@@ -1737,7 +1780,7 @@ __decorateClass([
1737
1780
  n5()
1738
1781
  ], ShoelaceElement.prototype, "lang", 2);
1739
1782
 
1740
- // ../../node_modules/@shoelace-style/shoelace/dist/chunks/chunk.7HOIOSC7.js
1783
+ // ../../node_modules/@shoelace-style/shoelace/dist/chunks/chunk.R2T2D3TO.js
1741
1784
  var SlSpinner = class extends ShoelaceElement {
1742
1785
  constructor() {
1743
1786
  super(...arguments);
@@ -1754,7 +1797,7 @@ var SlSpinner = class extends ShoelaceElement {
1754
1797
  };
1755
1798
  SlSpinner.styles = [component_styles_default, spinner_styles_default];
1756
1799
 
1757
- // ../../node_modules/@shoelace-style/shoelace/dist/chunks/chunk.KWPBDQ6I.js
1800
+ // ../../node_modules/@shoelace-style/shoelace/dist/chunks/chunk.2RCF7SLU.js
1758
1801
  var formCollections = /* @__PURE__ */ new WeakMap();
1759
1802
  var reportValidityOverloads = /* @__PURE__ */ new WeakMap();
1760
1803
  var checkValidityOverloads = /* @__PURE__ */ new WeakMap();
@@ -2871,7 +2914,7 @@ var icon_styles_default = i`
2871
2914
  }
2872
2915
  `;
2873
2916
 
2874
- // ../../node_modules/@shoelace-style/shoelace/dist/chunks/chunk.2FB5TK5H.js
2917
+ // ../../node_modules/@shoelace-style/shoelace/dist/chunks/chunk.CCJUT23E.js
2875
2918
  function watch(propertyName, options) {
2876
2919
  const resolvedOptions = __spreadValues({
2877
2920
  waitUntilFirstUpdate: false
@@ -2904,7 +2947,7 @@ var rt = (o6) => void 0 === o6.strings;
2904
2947
  var ht = {};
2905
2948
  var dt = (o6, t7 = ht) => o6._$AH = t7;
2906
2949
 
2907
- // ../../node_modules/@shoelace-style/shoelace/dist/chunks/chunk.ALSPWWWG.js
2950
+ // ../../node_modules/@shoelace-style/shoelace/dist/chunks/chunk.O7VCMB7W.js
2908
2951
  var CACHEABLE_ERROR = Symbol();
2909
2952
  var RETRYABLE_ERROR = Symbol();
2910
2953
  var parser;
@@ -2925,11 +2968,6 @@ var SlIcon = class extends ShoelaceElement {
2925
2968
  this.svg = ke`<svg part="svg">
2926
2969
  <use part="use" href="${url}"></use>
2927
2970
  </svg>`;
2928
- await this.updateComplete;
2929
- const svg = this.shadowRoot.querySelector("[part='svg']");
2930
- if (typeof library2.mutator === "function") {
2931
- library2.mutator(svg);
2932
- }
2933
2971
  return this.svg;
2934
2972
  }
2935
2973
  try {
@@ -3019,6 +3057,13 @@ var SlIcon = class extends ShoelaceElement {
3019
3057
  }
3020
3058
  if (nt(svg)) {
3021
3059
  this.svg = svg;
3060
+ if (library2) {
3061
+ await this.updateComplete;
3062
+ const shadowSVG = this.shadowRoot.querySelector("[part='svg']");
3063
+ if (typeof library2.mutator === "function" && shadowSVG) {
3064
+ library2.mutator(shadowSVG);
3065
+ }
3066
+ }
3022
3067
  return;
3023
3068
  }
3024
3069
  switch (svg) {
@@ -3137,7 +3182,7 @@ var Se3 = Ee(Se);
3137
3182
  // ../../node_modules/lit/node_modules/lit-html/directives/if-defined.js
3138
3183
  var to = (t7) => t7 ?? D;
3139
3184
 
3140
- // ../../node_modules/@shoelace-style/shoelace/dist/chunks/chunk.MR6SHCJO.js
3185
+ // ../../node_modules/@shoelace-style/shoelace/dist/chunks/chunk.OEHLR4TU.js
3141
3186
  var SlButton = class extends ShoelaceElement {
3142
3187
  constructor() {
3143
3188
  super(...arguments);
@@ -3286,7 +3331,7 @@ var SlButton = class extends ShoelaceElement {
3286
3331
  title=${this.title}
3287
3332
  name=${to(isLink ? void 0 : this.name)}
3288
3333
  value=${to(isLink ? void 0 : this.value)}
3289
- href=${to(isLink ? this.href : void 0)}
3334
+ href=${to(isLink && !this.disabled ? this.href : void 0)}
3290
3335
  target=${to(isLink ? this.target : void 0)}
3291
3336
  download=${to(isLink ? this.download : void 0)}
3292
3337
  rel=${to(isLink ? this.rel : void 0)}
@@ -3720,7 +3765,7 @@ var Ft = e6(class extends i3 {
3720
3765
  }
3721
3766
  });
3722
3767
 
3723
- // ../../node_modules/@shoelace-style/shoelace/dist/chunks/chunk.MMIBHC74.js
3768
+ // ../../node_modules/@shoelace-style/shoelace/dist/chunks/chunk.II44SQ5G.js
3724
3769
  var SlRange = class extends ShoelaceElement {
3725
3770
  constructor() {
3726
3771
  super(...arguments);
@@ -3766,8 +3811,9 @@ var SlRange = class extends ShoelaceElement {
3766
3811
  });
3767
3812
  }
3768
3813
  disconnectedCallback() {
3814
+ var _a3;
3769
3815
  super.disconnectedCallback();
3770
- this.resizeObserver.unobserve(this.input);
3816
+ (_a3 = this.resizeObserver) == null ? void 0 : _a3.unobserve(this.input);
3771
3817
  }
3772
3818
  handleChange() {
3773
3819
  this.emit("sl-change");
@@ -4029,7 +4075,7 @@ var button_group_styles_default = i`
4029
4075
  }
4030
4076
  `;
4031
4077
 
4032
- // ../../node_modules/@shoelace-style/shoelace/dist/chunks/chunk.AKN2SAUH.js
4078
+ // ../../node_modules/@shoelace-style/shoelace/dist/chunks/chunk.RBPP5PLA.js
4033
4079
  var SlButtonGroup = class extends ShoelaceElement {
4034
4080
  constructor() {
4035
4081
  super(...arguments);
@@ -4102,7 +4148,7 @@ function findButton(el) {
4102
4148
  return (_a3 = el.closest(selector)) != null ? _a3 : el.querySelector(selector);
4103
4149
  }
4104
4150
 
4105
- // ../../node_modules/@shoelace-style/shoelace/dist/chunks/chunk.K6FVXEO2.js
4151
+ // ../../node_modules/@shoelace-style/shoelace/dist/chunks/chunk.UJ47T7HP.js
4106
4152
  var SlFormatDate = class extends ShoelaceElement {
4107
4153
  constructor() {
4108
4154
  super(...arguments);
@@ -5577,7 +5623,7 @@ function r6(t7) {
5577
5623
  return null;
5578
5624
  }
5579
5625
 
5580
- // ../../node_modules/@shoelace-style/shoelace/dist/chunks/chunk.62L7S2LE.js
5626
+ // ../../node_modules/@shoelace-style/shoelace/dist/chunks/chunk.H24ENZMO.js
5581
5627
  function isVirtualElement(e7) {
5582
5628
  return e7 !== null && typeof e7 === "object" && "getBoundingClientRect" in e7 && ("contextElement" in e7 ? e7 instanceof Element : true);
5583
5629
  }
@@ -5704,7 +5750,7 @@ var SlPopup = class extends ShoelaceElement {
5704
5750
  if (this.anchorEl instanceof HTMLSlotElement) {
5705
5751
  this.anchorEl = this.anchorEl.assignedElements({ flatten: true })[0];
5706
5752
  }
5707
- if (this.anchorEl) {
5753
+ if (this.anchorEl && this.active) {
5708
5754
  this.start();
5709
5755
  }
5710
5756
  }