@citolab/qti-components 7.4.0 → 7.4.1

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 (108) hide show
  1. package/custom-elements.json +6 -6
  2. package/dist/chunks/{chunk-6K4ROGDD.js → chunk-4BDOB6KY.js} +12 -11
  3. package/dist/chunks/chunk-4BDOB6KY.js.map +1 -0
  4. package/dist/chunks/chunk-4OGJBG35.js +8 -0
  5. package/dist/chunks/chunk-4OGJBG35.js.map +1 -0
  6. package/dist/chunks/{chunk-LN74Z5QM.js → chunk-7RW7LCEJ.js} +258 -589
  7. package/dist/chunks/chunk-7RW7LCEJ.js.map +1 -0
  8. package/dist/chunks/{chunk-TJ6ZOT7A.js → chunk-APBAIN6D.js} +25 -23
  9. package/dist/chunks/chunk-APBAIN6D.js.map +1 -0
  10. package/dist/chunks/chunk-C5RLRG3L.js +10 -0
  11. package/dist/chunks/chunk-C5RLRG3L.js.map +1 -0
  12. package/dist/chunks/chunk-CJADUWEC.js +10 -0
  13. package/dist/chunks/chunk-CJADUWEC.js.map +1 -0
  14. package/dist/chunks/chunk-DVQQ7I6Y.js +8 -0
  15. package/dist/chunks/chunk-DVQQ7I6Y.js.map +1 -0
  16. package/dist/chunks/{chunk-O5N4DCU6.js → chunk-ELDMXTUQ.js} +2 -7
  17. package/dist/chunks/chunk-ELDMXTUQ.js.map +1 -0
  18. package/dist/chunks/chunk-ERYHQVOT.js +8 -0
  19. package/dist/chunks/chunk-ERYHQVOT.js.map +1 -0
  20. package/dist/chunks/chunk-GAAFN7QF.js +146 -0
  21. package/dist/chunks/chunk-GAAFN7QF.js.map +1 -0
  22. package/dist/chunks/chunk-H2JE6IVU.js +15 -0
  23. package/dist/chunks/chunk-H2JE6IVU.js.map +1 -0
  24. package/dist/chunks/chunk-H6KHXSIO.js +8 -0
  25. package/dist/chunks/chunk-H6KHXSIO.js.map +1 -0
  26. package/dist/chunks/chunk-HFAUM56X.js +208 -0
  27. package/dist/chunks/chunk-HFAUM56X.js.map +1 -0
  28. package/dist/chunks/chunk-JQ6HWGRY.js +22 -0
  29. package/dist/chunks/chunk-JQ6HWGRY.js.map +1 -0
  30. package/dist/chunks/{chunk-GUDRSXIP.js → chunk-K47QFOQX.js} +6 -20
  31. package/dist/chunks/chunk-K47QFOQX.js.map +1 -0
  32. package/dist/chunks/chunk-NJNQOQUU.js +8 -0
  33. package/dist/chunks/chunk-NJNQOQUU.js.map +1 -0
  34. package/dist/chunks/chunk-SV4K25ZI.js +19 -0
  35. package/dist/chunks/chunk-SV4K25ZI.js.map +1 -0
  36. package/dist/chunks/{chunk-JDY5GL7E.js → chunk-WFUXZ4UT.js} +1 -13
  37. package/dist/chunks/{chunk-JDY5GL7E.js.map → chunk-WFUXZ4UT.js.map} +1 -1
  38. package/dist/custom-elements.json +6 -6
  39. package/dist/{computed-item.context-DpK-sS0T.d.ts → exports/computed-item.context.d.ts} +6 -2
  40. package/dist/exports/computed-item.context.js +8 -0
  41. package/dist/exports/computed-item.context.js.map +1 -0
  42. package/dist/exports/computed.context.d.ts +34 -0
  43. package/dist/exports/computed.context.js +8 -0
  44. package/dist/exports/computed.context.js.map +1 -0
  45. package/dist/{config.context-CmQ9L62n.d.ts → exports/config.context.d.ts} +4 -1
  46. package/dist/exports/config.context.js +8 -0
  47. package/dist/exports/config.context.js.map +1 -0
  48. package/dist/exports/expression-result.d.ts +19 -0
  49. package/dist/exports/expression-result.js +1 -0
  50. package/dist/exports/expression-result.js.map +1 -0
  51. package/dist/exports/interaction.d.ts +46 -0
  52. package/dist/exports/interaction.interface.d.ts +13 -0
  53. package/dist/exports/interaction.interface.js +1 -0
  54. package/dist/exports/interaction.interface.js.map +1 -0
  55. package/dist/exports/interaction.js +12 -0
  56. package/dist/exports/interaction.js.map +1 -0
  57. package/dist/exports/item.context.d.ts +11 -0
  58. package/dist/exports/item.context.js +8 -0
  59. package/dist/exports/item.context.js.map +1 -0
  60. package/dist/exports/qti-assessment-item.context.d.ts +9 -0
  61. package/dist/exports/qti-assessment-item.context.js +8 -0
  62. package/dist/exports/qti-assessment-item.context.js.map +1 -0
  63. package/dist/exports/qti-condition-expression.d.ts +14 -0
  64. package/dist/exports/qti-condition-expression.js +11 -0
  65. package/dist/exports/qti-condition-expression.js.map +1 -0
  66. package/dist/exports/qti-expression.d.ts +23 -0
  67. package/dist/exports/qti-expression.js +10 -0
  68. package/dist/exports/qti-expression.js.map +1 -0
  69. package/dist/exports/qti-test.d.ts +12 -0
  70. package/dist/exports/qti-test.js +1 -0
  71. package/dist/exports/qti-test.js.map +1 -0
  72. package/dist/exports/qti.context.d.ts +14 -0
  73. package/dist/exports/qti.context.js +8 -0
  74. package/dist/exports/qti.context.js.map +1 -0
  75. package/dist/exports/session.context.d.ts +15 -0
  76. package/dist/exports/session.context.js +10 -0
  77. package/dist/exports/session.context.js.map +1 -0
  78. package/dist/exports/test.context.d.ts +16 -0
  79. package/dist/exports/test.context.js +10 -0
  80. package/dist/exports/test.context.js.map +1 -0
  81. package/dist/exports/variables.d.ts +2 -0
  82. package/dist/exports/variables.js +1 -0
  83. package/dist/exports/variables.js.map +1 -0
  84. package/dist/index.d.ts +18 -6
  85. package/dist/index.js +20 -7
  86. package/dist/{qti-assessment-item-D77dJ1Ot.d.ts → qti-assessment-item-l-mN3teH.d.ts} +2 -1
  87. package/dist/qti-components/index.d.ts +14 -76
  88. package/dist/qti-components/index.js +13 -4
  89. package/dist/qti-item/index.d.ts +4 -3
  90. package/dist/qti-item/index.js +6 -3
  91. package/dist/qti-loader/index.d.ts +3 -2
  92. package/dist/qti-loader/index.js +2 -1
  93. package/dist/qti-loader/index.js.map +1 -1
  94. package/dist/qti-modal-feedback-PKbhO-3w.d.ts +30 -0
  95. package/dist/qti-test/index.d.ts +16 -129
  96. package/dist/qti-test/index.js +11 -4
  97. package/dist/qti-test-BwvOhz_-.d.ts +118 -0
  98. package/dist/qti-transform-item-C9WtMeDR.d.ts +39 -0
  99. package/dist/qti-transformers/index.d.ts +2 -38
  100. package/dist/qti-transformers/index.js +2 -1
  101. package/dist/{variables-Vgyr6yyW.d.ts → variables-BCkyLoXK.d.ts} +7 -10
  102. package/package.json +1 -1
  103. package/dist/chunks/chunk-6K4ROGDD.js.map +0 -1
  104. package/dist/chunks/chunk-GUDRSXIP.js.map +0 -1
  105. package/dist/chunks/chunk-LN74Z5QM.js.map +0 -1
  106. package/dist/chunks/chunk-O5N4DCU6.js.map +0 -1
  107. package/dist/chunks/chunk-TJ6ZOT7A.js.map +0 -1
  108. package/dist/test.context-L609DNAz.d.ts +0 -58
@@ -1,19 +1,38 @@
1
1
  import {
2
2
  QtiFeedback,
3
3
  convertNumberToUniversalFormat,
4
- itemContext,
5
- qtiContext,
6
- removeDoubleSlashes,
7
- testContext
8
- } from "./chunk-GUDRSXIP.js";
4
+ removeDoubleSlashes
5
+ } from "./chunk-K47QFOQX.js";
9
6
  import {
10
- configContext,
11
7
  watch
12
- } from "./chunk-O5N4DCU6.js";
8
+ } from "./chunk-ELDMXTUQ.js";
13
9
  import {
14
- __decorateClass,
15
10
  qtiTransformItem
16
- } from "./chunk-JDY5GL7E.js";
11
+ } from "./chunk-WFUXZ4UT.js";
12
+ import {
13
+ QtiConditionExpression
14
+ } from "./chunk-SV4K25ZI.js";
15
+ import {
16
+ QtiExpression
17
+ } from "./chunk-GAAFN7QF.js";
18
+ import {
19
+ testContext
20
+ } from "./chunk-CJADUWEC.js";
21
+ import {
22
+ Interaction
23
+ } from "./chunk-HFAUM56X.js";
24
+ import {
25
+ itemContext
26
+ } from "./chunk-NJNQOQUU.js";
27
+ import {
28
+ configContext
29
+ } from "./chunk-ERYHQVOT.js";
30
+ import {
31
+ itemContextVariables
32
+ } from "./chunk-JQ6HWGRY.js";
33
+ import {
34
+ __decorateClass
35
+ } from "./chunk-H2JE6IVU.js";
17
36
 
18
37
  // src/lib/qti-components/qti-assessment-item/qti-assessment-item.ts
19
38
  import { provide } from "@lit/context";
@@ -53,24 +72,6 @@ function liveQuery(querySelector, _options) {
53
72
  };
54
73
  }
55
74
 
56
- // src/lib/exports/item.context.ts
57
- var itemContextVariables = [
58
- {
59
- identifier: "completionStatus",
60
- cardinality: "single",
61
- baseType: "string",
62
- value: "unknown",
63
- type: "outcome"
64
- },
65
- {
66
- identifier: "numAttempts",
67
- cardinality: "single",
68
- baseType: "integer",
69
- value: "0",
70
- type: "response"
71
- }
72
- ];
73
-
74
75
  // src/lib/qti-components/qti-assessment-item/qti-assessment-item.ts
75
76
  var QtiAssessmentItem = class extends LitElement {
76
77
  constructor() {
@@ -672,7 +673,7 @@ QtiAssociableHotspot = __decorateClass([
672
673
 
673
674
  // src/lib/qti-components/qti-interaction/qti-associate-interaction/qti-associate-interaction.ts
674
675
  import { html as html6 } from "lit";
675
- import { customElement as customElement8, state as state3 } from "lit/decorators.js";
676
+ import { customElement as customElement8, state as state2 } from "lit/decorators.js";
676
677
 
677
678
  // src/lib/qti-components/qti-interaction/internal/drag-drop/drag-drop-interaction-mixin.ts
678
679
  import { property as property3 } from "lit/decorators.js";
@@ -1499,193 +1500,6 @@ var qti_associate_interaction_styles_default = css4`
1499
1500
  }
1500
1501
  `;
1501
1502
 
1502
- // src/lib/exports/interaction.ts
1503
- import { property as property4, state as state2 } from "lit/decorators.js";
1504
- import { LitElement as LitElement6 } from "lit";
1505
- import { consume as consume2 } from "@lit/context";
1506
- var Interaction = class extends LitElement6 {
1507
- constructor() {
1508
- super();
1509
- this.disabled = false;
1510
- this.readonly = false;
1511
- this._internals = this.attachInternals();
1512
- }
1513
- static {
1514
- this.formAssociated = true;
1515
- }
1516
- get internals() {
1517
- return this._internals;
1518
- }
1519
- get isFullCorrectResponse() {
1520
- return this._isFullCorrectResponse;
1521
- }
1522
- set isFullCorrectResponse(val) {
1523
- this._isFullCorrectResponse = val;
1524
- if (val) {
1525
- this.disabled = true;
1526
- this.setAttribute("response-identifier", this.responseIdentifier + "_cr");
1527
- }
1528
- }
1529
- get correctResponse() {
1530
- return this._correctResponse;
1531
- }
1532
- set correctResponse(val) {
1533
- this._correctResponse = val;
1534
- }
1535
- get correctness() {
1536
- const responseVariable = this.responseVariable;
1537
- if (!responseVariable || responseVariable.correctResponse === null) return null;
1538
- return responseVariable.correctResponse === responseVariable.value ? "correct" /* Correct */ : "incorrect" /* Incorrect */;
1539
- }
1540
- get isInline() {
1541
- return false;
1542
- }
1543
- get responseVariable() {
1544
- const responseVariables = this._context.variables.filter((v) => v.type === "response");
1545
- const responseIdentifier = this.getAttribute("response-identifier");
1546
- return responseVariables.find((v) => v.identifier === responseIdentifier);
1547
- }
1548
- toggleCorrectResponse(show) {
1549
- const correctResponseMode = this?.configContext?.correctResponseMode || "internal";
1550
- if (correctResponseMode === "full") {
1551
- this.toggleFullCorrectResponse(show);
1552
- } else {
1553
- this.toggleInternalCorrectResponse(show);
1554
- }
1555
- }
1556
- async toggleFullCorrectResponse(show) {
1557
- const nextSibling = this.nextSibling;
1558
- const nextSiblingIsFullCorrectResponse = nextSibling instanceof HTMLDivElement && nextSibling?.classList.contains("full-correct-response");
1559
- const responseVariable = this.responseVariable;
1560
- if (!responseVariable) {
1561
- return;
1562
- }
1563
- if (!show || this.correctness === "correct" /* Correct */) {
1564
- if (!nextSiblingIsFullCorrectResponse) {
1565
- return;
1566
- }
1567
- this.parentElement?.removeChild(nextSibling);
1568
- }
1569
- if (nextSiblingIsFullCorrectResponse) {
1570
- return;
1571
- }
1572
- if (this.correctness === "correct" /* Correct */) {
1573
- return;
1574
- }
1575
- const clone = this.cloneNode(true);
1576
- const containerDiv = document.createElement("div");
1577
- containerDiv.classList.add("full-correct-response");
1578
- if (this.isInline) {
1579
- containerDiv.classList.add("full-correct-response-inline");
1580
- } else {
1581
- containerDiv.classList.add("full-correct-response-block");
1582
- }
1583
- containerDiv.role = "full-correct-response";
1584
- containerDiv.appendChild(clone);
1585
- clone.isFullCorrectResponse = true;
1586
- this.parentElement?.insertBefore(containerDiv, this.nextSibling);
1587
- await clone.updateComplete;
1588
- clone.response = Array.isArray(responseVariable.correctResponse) ? [...responseVariable.correctResponse] : responseVariable.correctResponse;
1589
- }
1590
- toggleInternalCorrectResponse(show) {
1591
- const responseVariable = this.responseVariable;
1592
- this.correctResponse = show ? responseVariable?.correctResponse : responseVariable?.cardinality === "single" ? "" : [];
1593
- }
1594
- toggleCandidateCorrection(show) {
1595
- const responseVariable = this.responseVariable;
1596
- if (!responseVariable) return;
1597
- this._internals.states.delete("candidate-correct");
1598
- this._internals.states.delete("candidate-partially-correct");
1599
- this._internals.states.delete("candidate-incorrect");
1600
- if (!show) {
1601
- return;
1602
- }
1603
- if (this.correctness === "correct" /* Correct */) {
1604
- this._internals.states.add("candidate-correct");
1605
- }
1606
- if (this.correctness === "partially-correct" /* PartiallyCorrect */) {
1607
- this._internals.states.add("candidate-partially-correct");
1608
- }
1609
- if (this.correctness === "incorrect" /* Incorrect */) {
1610
- this._internals.states.add("candidate-incorrect");
1611
- }
1612
- }
1613
- get value() {
1614
- return JSON.stringify(this.response);
1615
- }
1616
- set value(val) {
1617
- this.response = val ? JSON.parse(val) : null;
1618
- }
1619
- reportValidity() {
1620
- return this._internals.reportValidity();
1621
- }
1622
- reset() {
1623
- this.response = null;
1624
- }
1625
- // attributeChangedCallback(name: string, _old: string | null, value: string | null): void {
1626
- // super.attributeChangedCallback(name, _old, value);
1627
- // // changing attributes in lit is not a thing, they are defined in the QTI XML and will never change
1628
- // // except in storybook where we can change the value of the attribute
1629
- // // this can make the internal state out of sync with the attribute
1630
- // // so we reset the value to null to force the internal state to be reset
1631
- // const attributeNamesToExclude = ['style', 'class'];
1632
- // if (!attributeNamesToExclude.includes(name)) {
1633
- // this.reset();
1634
- // }
1635
- // }
1636
- connectedCallback() {
1637
- super.connectedCallback();
1638
- if (this.isFullCorrectResponse) {
1639
- return;
1640
- }
1641
- this.dispatchEvent(
1642
- new CustomEvent("qti-register-interaction", {
1643
- bubbles: true,
1644
- composed: true,
1645
- cancelable: false,
1646
- detail: {
1647
- interactionElement: this,
1648
- responseIdentifier: this.responseIdentifier
1649
- }
1650
- })
1651
- );
1652
- }
1653
- saveResponse(value) {
1654
- this.dispatchEvent(
1655
- new CustomEvent("qti-interaction-response", {
1656
- bubbles: true,
1657
- composed: true,
1658
- cancelable: false,
1659
- detail: {
1660
- responseIdentifier: this.responseIdentifier,
1661
- response: Array.isArray(value) ? [...value] : value
1662
- }
1663
- })
1664
- );
1665
- }
1666
- };
1667
- __decorateClass([
1668
- consume2({ context: itemContext, subscribe: true })
1669
- ], Interaction.prototype, "_context", 2);
1670
- __decorateClass([
1671
- consume2({ context: configContext, subscribe: true })
1672
- ], Interaction.prototype, "configContext", 2);
1673
- __decorateClass([
1674
- property4({ type: String, attribute: "response-identifier" })
1675
- ], Interaction.prototype, "responseIdentifier", 2);
1676
- __decorateClass([
1677
- property4({ reflect: true, type: Boolean })
1678
- ], Interaction.prototype, "disabled", 2);
1679
- __decorateClass([
1680
- property4({ reflect: true, type: Boolean })
1681
- ], Interaction.prototype, "readonly", 2);
1682
- __decorateClass([
1683
- state2()
1684
- ], Interaction.prototype, "_isFullCorrectResponse", 2);
1685
- __decorateClass([
1686
- state2()
1687
- ], Interaction.prototype, "_correctResponse", 2);
1688
-
1689
1503
  // src/lib/qti-components/qti-interaction/qti-associate-interaction/qti-associate-interaction.ts
1690
1504
  var QtiAssociateInteraction = class extends DragDropInteractionMixin(
1691
1505
  Interaction,
@@ -1724,7 +1538,7 @@ var QtiAssociateInteraction = class extends DragDropInteractionMixin(
1724
1538
  };
1725
1539
  QtiAssociateInteraction.styles = qti_associate_interaction_styles_default;
1726
1540
  __decorateClass([
1727
- state3()
1541
+ state2()
1728
1542
  ], QtiAssociateInteraction.prototype, "_childrenMap", 2);
1729
1543
  QtiAssociateInteraction = __decorateClass([
1730
1544
  customElement8("qti-associate-interaction")
@@ -1732,11 +1546,11 @@ QtiAssociateInteraction = __decorateClass([
1732
1546
 
1733
1547
  // src/lib/qti-components/qti-interaction/qti-choice-interaction/qti-choice-interaction.ts
1734
1548
  import { html as html7 } from "lit";
1735
- import { customElement as customElement9, property as property7 } from "lit/decorators.js";
1549
+ import { customElement as customElement9, property as property6 } from "lit/decorators.js";
1736
1550
 
1737
1551
  // src/lib/qti-components/qti-interaction/internal/choices/choices.mixin.ts
1738
- import { property as property5, query, state as state4 } from "lit/decorators.js";
1739
- import { consume as consume3 } from "@lit/context";
1552
+ import { property as property4, query, state as state3 } from "lit/decorators.js";
1553
+ import { consume as consume2 } from "@lit/context";
1740
1554
  var ChoicesMixin = (superClass, selector) => {
1741
1555
  class ChoicesMixinElement extends superClass {
1742
1556
  constructor() {
@@ -1946,10 +1760,10 @@ var ChoicesMixin = (superClass, selector) => {
1946
1760
  query("#validation-message")
1947
1761
  ], ChoicesMixinElement.prototype, "_validationMessageElement", 2);
1948
1762
  __decorateClass([
1949
- property5({ type: Number, attribute: "min-choices" })
1763
+ property4({ type: Number, attribute: "min-choices" })
1950
1764
  ], ChoicesMixinElement.prototype, "minChoices", 2);
1951
1765
  __decorateClass([
1952
- property5({ type: Number, attribute: "max-choices" })
1766
+ property4({ type: Number, attribute: "max-choices" })
1953
1767
  ], ChoicesMixinElement.prototype, "maxChoices", 2);
1954
1768
  __decorateClass([
1955
1769
  watch("maxChoices", { waitUntilFirstUpdate: true })
@@ -1961,20 +1775,20 @@ var ChoicesMixin = (superClass, selector) => {
1961
1775
  watch("readonly", { waitUntilFirstUpdate: true })
1962
1776
  ], ChoicesMixinElement.prototype, "_handleReadonlyChange", 2);
1963
1777
  __decorateClass([
1964
- state4()
1778
+ state3()
1965
1779
  ], ChoicesMixinElement.prototype, "response", 2);
1966
1780
  __decorateClass([
1967
1781
  watch("response", { waitUntilFirstUpdate: true })
1968
1782
  ], ChoicesMixinElement.prototype, "_handleValueChange", 2);
1969
1783
  __decorateClass([
1970
- state4(),
1971
- consume3({ context: configContext, subscribe: true })
1784
+ state3(),
1785
+ consume2({ context: configContext, subscribe: true })
1972
1786
  ], ChoicesMixinElement.prototype, "_configContext", 2);
1973
1787
  return ChoicesMixinElement;
1974
1788
  };
1975
1789
 
1976
1790
  // src/lib/qti-components/qti-interaction/internal/vocabulary/vocabulary-mixin.ts
1977
- import { property as property6 } from "lit/decorators.js";
1791
+ import { property as property5 } from "lit/decorators.js";
1978
1792
  var VocabularyMixin = (superClass, _selector) => {
1979
1793
  class VocabularyElement extends superClass {
1980
1794
  constructor() {
@@ -2041,7 +1855,7 @@ var VocabularyMixin = (superClass, _selector) => {
2041
1855
  }
2042
1856
  }
2043
1857
  __decorateClass([
2044
- property6({
1858
+ property5({
2045
1859
  type: String,
2046
1860
  reflect: true
2047
1861
  })
@@ -2143,7 +1957,7 @@ var QtiChoiceInteraction = class extends VocabularyMixin(ChoicesMixin(Interactio
2143
1957
  };
2144
1958
  QtiChoiceInteraction.styles = qti_choice_interaction_styles_default;
2145
1959
  __decorateClass([
2146
- property7({ type: String })
1960
+ property6({ type: String })
2147
1961
  ], QtiChoiceInteraction.prototype, "orientation", 2);
2148
1962
  QtiChoiceInteraction = __decorateClass([
2149
1963
  customElement9("qti-choice-interaction")
@@ -2151,7 +1965,7 @@ QtiChoiceInteraction = __decorateClass([
2151
1965
 
2152
1966
  // src/lib/qti-components/qti-interaction/qti-custom-interaction/qti-custom-interaction.ts
2153
1967
  import { html as html8 } from "lit";
2154
- import { customElement as customElement10, property as property8, state as state5 } from "lit/decorators.js";
1968
+ import { customElement as customElement10, property as property7, state as state4 } from "lit/decorators.js";
2155
1969
  var QtiCustomInteraction = class extends Interaction {
2156
1970
  constructor() {
2157
1971
  super();
@@ -2342,28 +2156,28 @@ var QtiCustomInteraction = class extends Interaction {
2342
2156
  }
2343
2157
  };
2344
2158
  __decorateClass([
2345
- property8({ type: String, attribute: "data" })
2159
+ property7({ type: String, attribute: "data" })
2346
2160
  ], QtiCustomInteraction.prototype, "data", 2);
2347
2161
  __decorateClass([
2348
- property8({ type: String, attribute: "data-base-item" })
2162
+ property7({ type: String, attribute: "data-base-item" })
2349
2163
  ], QtiCustomInteraction.prototype, "baseItemUrl", 2);
2350
2164
  __decorateClass([
2351
- property8({ type: String, attribute: "data-base-ref" })
2165
+ property7({ type: String, attribute: "data-base-ref" })
2352
2166
  ], QtiCustomInteraction.prototype, "baseRefUrl", 2);
2353
2167
  __decorateClass([
2354
- property8({ type: String, attribute: "id" })
2168
+ property7({ type: String, attribute: "id" })
2355
2169
  ], QtiCustomInteraction.prototype, "id", 2);
2356
2170
  __decorateClass([
2357
- state5()
2171
+ state4()
2358
2172
  ], QtiCustomInteraction.prototype, "_errorMessage", 2);
2359
2173
  QtiCustomInteraction = __decorateClass([
2360
2174
  customElement10("qti-custom-interaction")
2361
2175
  ], QtiCustomInteraction);
2362
2176
 
2363
2177
  // src/lib/qti-components/qti-interaction/qti-end-attempt-interaction/qti-end-attempt-interaction.ts
2364
- import { html as html9, LitElement as LitElement7 } from "lit";
2365
- import { customElement as customElement11, property as property9 } from "lit/decorators.js";
2366
- var QtiEndAttemptInteraction = class extends LitElement7 {
2178
+ import { html as html9, LitElement as LitElement6 } from "lit";
2179
+ import { customElement as customElement11, property as property8 } from "lit/decorators.js";
2180
+ var QtiEndAttemptInteraction = class extends LitElement6 {
2367
2181
  constructor() {
2368
2182
  super(...arguments);
2369
2183
  this.disabled = false;
@@ -2384,16 +2198,16 @@ var QtiEndAttemptInteraction = class extends LitElement7 {
2384
2198
  }
2385
2199
  };
2386
2200
  __decorateClass([
2387
- property9({ type: String, attribute: "response-identifier" })
2201
+ property8({ type: String, attribute: "response-identifier" })
2388
2202
  ], QtiEndAttemptInteraction.prototype, "responseIdentifier", 2);
2389
2203
  __decorateClass([
2390
- property9({ reflect: true, type: Boolean })
2204
+ property8({ reflect: true, type: Boolean })
2391
2205
  ], QtiEndAttemptInteraction.prototype, "disabled", 2);
2392
2206
  __decorateClass([
2393
- property9({ type: String, attribute: "count-attempt" })
2207
+ property8({ type: String, attribute: "count-attempt" })
2394
2208
  ], QtiEndAttemptInteraction.prototype, "countAttempt", 2);
2395
2209
  __decorateClass([
2396
- property9({ type: String })
2210
+ property8({ type: String })
2397
2211
  ], QtiEndAttemptInteraction.prototype, "title", 2);
2398
2212
  QtiEndAttemptInteraction = __decorateClass([
2399
2213
  customElement11("qti-end-attempt-interaction")
@@ -2402,7 +2216,7 @@ QtiEndAttemptInteraction = __decorateClass([
2402
2216
  // src/lib/qti-components/qti-interaction/qti-extended-text-interaction/qti-extended-text-interaction.ts
2403
2217
  import { html as html10 } from "lit";
2404
2218
  import { ifDefined as ifDefined2 } from "lit/directives/if-defined.js";
2405
- import { customElement as customElement12, property as property10, state as state6 } from "lit/decorators.js";
2219
+ import { customElement as customElement12, property as property9, state as state5 } from "lit/decorators.js";
2406
2220
 
2407
2221
  // src/lib/qti-components/qti-interaction/qti-extended-text-interaction/qti-extended-text-interaction.styles.ts
2408
2222
  import { css as css6 } from "lit";
@@ -2517,28 +2331,28 @@ var QtiExtendedTextInteraction = class extends Interaction {
2517
2331
  };
2518
2332
  QtiExtendedTextInteraction.styles = qti_extended_text_interaction_styles_default;
2519
2333
  __decorateClass([
2520
- state6()
2334
+ state5()
2521
2335
  ], QtiExtendedTextInteraction.prototype, "_rows", 2);
2522
2336
  __decorateClass([
2523
- property10({ type: Number, attribute: "expected-length" })
2337
+ property9({ type: Number, attribute: "expected-length" })
2524
2338
  ], QtiExtendedTextInteraction.prototype, "expectedLength", 2);
2525
2339
  __decorateClass([
2526
- property10({ type: String, attribute: "pattern-mask" })
2340
+ property9({ type: String, attribute: "pattern-mask" })
2527
2341
  ], QtiExtendedTextInteraction.prototype, "patternMask", 2);
2528
2342
  __decorateClass([
2529
- property10({ type: String, attribute: "placeholder-text" })
2343
+ property9({ type: String, attribute: "placeholder-text" })
2530
2344
  ], QtiExtendedTextInteraction.prototype, "placeholderText", 2);
2531
2345
  __decorateClass([
2532
- property10({ type: String, attribute: "data-patternmask-message" })
2346
+ property9({ type: String, attribute: "data-patternmask-message" })
2533
2347
  ], QtiExtendedTextInteraction.prototype, "dataPatternmaskMessage", 2);
2534
2348
  __decorateClass([
2535
- property10({ type: String, attribute: "class" })
2349
+ property9({ type: String, attribute: "class" })
2536
2350
  ], QtiExtendedTextInteraction.prototype, "classNames", 2);
2537
2351
  __decorateClass([
2538
2352
  watch("classNames")
2539
2353
  ], QtiExtendedTextInteraction.prototype, "handleclassNamesChange", 1);
2540
2354
  __decorateClass([
2541
- state6()
2355
+ state5()
2542
2356
  ], QtiExtendedTextInteraction.prototype, "response", 2);
2543
2357
  __decorateClass([
2544
2358
  watch("response", { waitUntilFirstUpdate: true })
@@ -2548,9 +2362,9 @@ QtiExtendedTextInteraction = __decorateClass([
2548
2362
  ], QtiExtendedTextInteraction);
2549
2363
 
2550
2364
  // src/lib/qti-components/qti-interaction/qti-gap-img.ts
2551
- import { css as css7, LitElement as LitElement8 } from "lit";
2552
- import { customElement as customElement13, property as property11 } from "lit/decorators.js";
2553
- var QtiGapImg = class extends LitElement8 {
2365
+ import { css as css7, LitElement as LitElement7 } from "lit";
2366
+ import { customElement as customElement13, property as property10 } from "lit/decorators.js";
2367
+ var QtiGapImg = class extends LitElement7 {
2554
2368
  constructor() {
2555
2369
  super(...arguments);
2556
2370
  this.tabindex = 0;
@@ -2566,7 +2380,7 @@ QtiGapImg.styles = css7`
2566
2380
  }
2567
2381
  `;
2568
2382
  __decorateClass([
2569
- property11({ type: Number, reflect: true })
2383
+ property10({ type: Number, reflect: true })
2570
2384
  ], QtiGapImg.prototype, "tabindex", 2);
2571
2385
  QtiGapImg = __decorateClass([
2572
2386
  customElement13("qti-gap-img")
@@ -2672,12 +2486,12 @@ QtiGapMatchInteraction = __decorateClass([
2672
2486
  ], QtiGapMatchInteraction);
2673
2487
 
2674
2488
  // src/lib/qti-components/qti-interaction/qti-gap-text.ts
2675
- import { css as css9, html as html13, LitElement as LitElement9 } from "lit";
2676
- import { customElement as customElement15, property as property13 } from "lit/decorators.js";
2489
+ import { css as css9, html as html13, LitElement as LitElement8 } from "lit";
2490
+ import { customElement as customElement15, property as property12 } from "lit/decorators.js";
2677
2491
 
2678
2492
  // src/lib/qti-components/qti-interaction/internal/active-element/active-element.mixin.ts
2679
2493
  import { html as html12 } from "lit";
2680
- import { property as property12 } from "lit/decorators.js";
2494
+ import { property as property11 } from "lit/decorators.js";
2681
2495
  var ariaBooleanConverter = {
2682
2496
  toAttribute: (value) => value ? "true" : "false",
2683
2497
  fromAttribute: (value) => value === "true"
@@ -2747,13 +2561,13 @@ function ActiveElementMixin(Base, type) {
2747
2561
  }
2748
2562
  }
2749
2563
  __decorateClass([
2750
- property12({ type: String })
2564
+ property11({ type: String })
2751
2565
  ], QtiChoice.prototype, "identifier", 2);
2752
2566
  __decorateClass([
2753
- property12({ type: Number, reflect: true, attribute: "tabindex" })
2567
+ property11({ type: Number, reflect: true, attribute: "tabindex" })
2754
2568
  ], QtiChoice.prototype, "tabIndex", 2);
2755
2569
  __decorateClass([
2756
- property12({
2570
+ property11({
2757
2571
  type: Boolean,
2758
2572
  reflect: true,
2759
2573
  attribute: "aria-disabled",
@@ -2761,7 +2575,7 @@ function ActiveElementMixin(Base, type) {
2761
2575
  })
2762
2576
  ], QtiChoice.prototype, "disabled", 2);
2763
2577
  __decorateClass([
2764
- property12({
2578
+ property11({
2765
2579
  type: Boolean,
2766
2580
  reflect: true,
2767
2581
  attribute: "aria-readonly",
@@ -2775,7 +2589,7 @@ function ActiveElementMixin(Base, type) {
2775
2589
  }
2776
2590
 
2777
2591
  // src/lib/qti-components/qti-interaction/qti-gap-text.ts
2778
- var QtiGapText = class extends ActiveElementMixin(LitElement9, "qti-gap-text") {
2592
+ var QtiGapText = class extends ActiveElementMixin(LitElement8, "qti-gap-text") {
2779
2593
  constructor() {
2780
2594
  super(...arguments);
2781
2595
  this.tabindex = 0;
@@ -2795,16 +2609,16 @@ QtiGapText.styles = css9`
2795
2609
  }
2796
2610
  `;
2797
2611
  __decorateClass([
2798
- property13({ type: Number, reflect: true })
2612
+ property12({ type: Number, reflect: true })
2799
2613
  ], QtiGapText.prototype, "tabindex", 2);
2800
2614
  QtiGapText = __decorateClass([
2801
2615
  customElement15("qti-gap-text")
2802
2616
  ], QtiGapText);
2803
2617
 
2804
2618
  // src/lib/qti-components/qti-interaction/qti-gap.ts
2805
- import { css as css10, html as html14, LitElement as LitElement10 } from "lit";
2806
- import { customElement as customElement16, property as property14 } from "lit/decorators.js";
2807
- var QtiGap = class extends LitElement10 {
2619
+ import { css as css10, html as html14, LitElement as LitElement9 } from "lit";
2620
+ import { customElement as customElement16, property as property13 } from "lit/decorators.js";
2621
+ var QtiGap = class extends LitElement9 {
2808
2622
  constructor() {
2809
2623
  super(...arguments);
2810
2624
  this.tabindex = 0;
@@ -2820,7 +2634,7 @@ QtiGap.styles = css10`
2820
2634
  }
2821
2635
  `;
2822
2636
  __decorateClass([
2823
- property14({ type: Number, reflect: true })
2637
+ property13({ type: Number, reflect: true })
2824
2638
  ], QtiGap.prototype, "tabindex", 2);
2825
2639
  QtiGap = __decorateClass([
2826
2640
  customElement16("qti-gap")
@@ -2828,7 +2642,7 @@ QtiGap = __decorateClass([
2828
2642
 
2829
2643
  // src/lib/qti-components/qti-interaction/qti-graphic-associate-interaction/qti-graphic-associate-interaction.ts
2830
2644
  import { html as html15, svg } from "lit";
2831
- import { customElement as customElement17, queryAssignedElements, state as state7 } from "lit/decorators.js";
2645
+ import { customElement as customElement17, queryAssignedElements, state as state6 } from "lit/decorators.js";
2832
2646
  import { ifDefined as ifDefined3 } from "lit/directives/if-defined.js";
2833
2647
  import { repeat } from "lit/directives/repeat.js";
2834
2648
 
@@ -3099,19 +2913,19 @@ var QtiGraphicAssociateInteraction = class extends Interaction {
3099
2913
  };
3100
2914
  QtiGraphicAssociateInteraction.styles = qti_graphic_associate_interaction_styles_default;
3101
2915
  __decorateClass([
3102
- state7()
2916
+ state6()
3103
2917
  ], QtiGraphicAssociateInteraction.prototype, "_correctLines", 2);
3104
2918
  __decorateClass([
3105
- state7()
2919
+ state6()
3106
2920
  ], QtiGraphicAssociateInteraction.prototype, "startCoord", 2);
3107
2921
  __decorateClass([
3108
- state7()
2922
+ state6()
3109
2923
  ], QtiGraphicAssociateInteraction.prototype, "mouseCoord", 2);
3110
2924
  __decorateClass([
3111
2925
  queryAssignedElements({ selector: "img" })
3112
2926
  ], QtiGraphicAssociateInteraction.prototype, "grImage", 2);
3113
2927
  __decorateClass([
3114
- state7()
2928
+ state6()
3115
2929
  ], QtiGraphicAssociateInteraction.prototype, "_response", 2);
3116
2930
  QtiGraphicAssociateInteraction = __decorateClass([
3117
2931
  customElement17("qti-graphic-associate-interaction")
@@ -3332,9 +3146,9 @@ QtiGraphicOrderInteraction = __decorateClass([
3332
3146
  ], QtiGraphicOrderInteraction);
3333
3147
 
3334
3148
  // src/lib/qti-components/qti-interaction/qti-hotspot-choice.ts
3335
- import { css as css14, LitElement as LitElement11 } from "lit";
3336
- import { customElement as customElement20, property as property15 } from "lit/decorators.js";
3337
- var QtiHotspotChoice = class extends ActiveElementMixin(LitElement11, "qti-hotspot-choice") {
3149
+ import { css as css14, LitElement as LitElement10 } from "lit";
3150
+ import { customElement as customElement20, property as property14 } from "lit/decorators.js";
3151
+ var QtiHotspotChoice = class extends ActiveElementMixin(LitElement10, "qti-hotspot-choice") {
3338
3152
  };
3339
3153
  QtiHotspotChoice.styles = css14`
3340
3154
  :host {
@@ -3344,10 +3158,10 @@ QtiHotspotChoice.styles = css14`
3344
3158
  }
3345
3159
  `;
3346
3160
  __decorateClass([
3347
- property15({ attribute: "aria-ordervalue", type: Number, reflect: true })
3161
+ property14({ attribute: "aria-ordervalue", type: Number, reflect: true })
3348
3162
  ], QtiHotspotChoice.prototype, "order", 2);
3349
3163
  __decorateClass([
3350
- property15({ attribute: "aria-ordercorrectvalue", type: Number, reflect: true })
3164
+ property14({ attribute: "aria-ordercorrectvalue", type: Number, reflect: true })
3351
3165
  ], QtiHotspotChoice.prototype, "orderCorrect", 2);
3352
3166
  QtiHotspotChoice = __decorateClass([
3353
3167
  customElement20("qti-hotspot-choice")
@@ -3405,7 +3219,7 @@ QtiHotspotInteraction = __decorateClass([
3405
3219
 
3406
3220
  // src/lib/qti-components/qti-interaction/qti-hottext-interaction/qti-hottext-interaction.ts
3407
3221
  import { html as html19 } from "lit";
3408
- import { customElement as customElement22, property as property16 } from "lit/decorators.js";
3222
+ import { customElement as customElement22, property as property15 } from "lit/decorators.js";
3409
3223
  var QtiHottextInteraction = class extends ChoicesMixin(Interaction, "qti-hottext") {
3410
3224
  constructor() {
3411
3225
  super(...arguments);
@@ -3444,16 +3258,16 @@ var QtiHottextInteraction = class extends ChoicesMixin(Interaction, "qti-hottext
3444
3258
  }
3445
3259
  };
3446
3260
  __decorateClass([
3447
- property16({ type: String, reflect: true })
3261
+ property15({ type: String, reflect: true })
3448
3262
  ], QtiHottextInteraction.prototype, "class", 2);
3449
3263
  QtiHottextInteraction = __decorateClass([
3450
3264
  customElement22("qti-hottext-interaction")
3451
3265
  ], QtiHottextInteraction);
3452
3266
 
3453
3267
  // src/lib/qti-components/qti-interaction/qti-hottext.ts
3454
- import { css as css16, html as html20, LitElement as LitElement12 } from "lit";
3268
+ import { css as css16, html as html20, LitElement as LitElement11 } from "lit";
3455
3269
  import { customElement as customElement23 } from "lit/decorators.js";
3456
- var QtiHottext = class extends ActiveElementMixin(LitElement12, "qti-hottext") {
3270
+ var QtiHottext = class extends ActiveElementMixin(LitElement11, "qti-hottext") {
3457
3271
  render() {
3458
3272
  return html20`<div part="ch"><div part="cha"></div></div>
3459
3273
  <slot></slot> `;
@@ -3471,9 +3285,9 @@ QtiHottext = __decorateClass([
3471
3285
 
3472
3286
  // src/lib/qti-components/qti-interaction/qti-inline-choice-interaction/qti-inline-choice-interaction.ts
3473
3287
  import { css as css17, html as html21 } from "lit";
3474
- import { customElement as customElement24, property as property17, state as state8 } from "lit/decorators.js";
3288
+ import { customElement as customElement24, property as property16, state as state7 } from "lit/decorators.js";
3475
3289
  import { unsafeHTML } from "lit/directives/unsafe-html.js";
3476
- import { consume as consume4 } from "@lit/context";
3290
+ import { consume as consume3 } from "@lit/context";
3477
3291
  var QtiInlineChoiceInteraction = class extends Interaction {
3478
3292
  constructor() {
3479
3293
  super(...arguments);
@@ -3598,26 +3412,26 @@ QtiInlineChoiceInteraction.inputWidthClass = [
3598
3412
  "qti-input-width-72"
3599
3413
  ];
3600
3414
  __decorateClass([
3601
- state8()
3415
+ state7()
3602
3416
  ], QtiInlineChoiceInteraction.prototype, "options", 2);
3603
3417
  __decorateClass([
3604
- state8()
3418
+ state7()
3605
3419
  ], QtiInlineChoiceInteraction.prototype, "correctOption", 2);
3606
3420
  __decorateClass([
3607
- property17({ attribute: "data-prompt", type: String })
3421
+ property16({ attribute: "data-prompt", type: String })
3608
3422
  ], QtiInlineChoiceInteraction.prototype, "dataPrompt", 2);
3609
3423
  __decorateClass([
3610
- consume4({ context: configContext, subscribe: true }),
3611
- property17({ attribute: false })
3424
+ consume3({ context: configContext, subscribe: true }),
3425
+ property16({ attribute: false })
3612
3426
  ], QtiInlineChoiceInteraction.prototype, "configContext", 2);
3613
3427
  QtiInlineChoiceInteraction = __decorateClass([
3614
3428
  customElement24("qti-inline-choice-interaction")
3615
3429
  ], QtiInlineChoiceInteraction);
3616
3430
 
3617
3431
  // src/lib/qti-components/qti-interaction/qti-inline-choice.ts
3618
- import { css as css18, html as html22, LitElement as LitElement13 } from "lit";
3619
- import { customElement as customElement25, property as property18 } from "lit/decorators.js";
3620
- var QtiInlineChoice = class extends LitElement13 {
3432
+ import { css as css18, html as html22, LitElement as LitElement12 } from "lit";
3433
+ import { customElement as customElement25, property as property17 } from "lit/decorators.js";
3434
+ var QtiInlineChoice = class extends LitElement12 {
3621
3435
  static get styles() {
3622
3436
  return [
3623
3437
  css18`
@@ -3657,16 +3471,16 @@ var QtiInlineChoice = class extends LitElement13 {
3657
3471
  }
3658
3472
  };
3659
3473
  __decorateClass([
3660
- property18({ type: String })
3474
+ property17({ type: String })
3661
3475
  ], QtiInlineChoice.prototype, "identifier", 2);
3662
3476
  QtiInlineChoice = __decorateClass([
3663
3477
  customElement25("qti-inline-choice")
3664
3478
  ], QtiInlineChoice);
3665
3479
 
3666
3480
  // src/lib/qti-components/qti-interaction/qti-simple-associable-choice.ts
3667
- import { css as css19, html as html23, LitElement as LitElement14 } from "lit";
3668
- import { customElement as customElement26, property as property19 } from "lit/decorators.js";
3669
- var QtiSimpleAssociableChoice = class extends ActiveElementMixin(LitElement14, "qti-simple-associable-choice") {
3481
+ import { css as css19, html as html23, LitElement as LitElement13 } from "lit";
3482
+ import { customElement as customElement26, property as property18 } from "lit/decorators.js";
3483
+ var QtiSimpleAssociableChoice = class extends ActiveElementMixin(LitElement13, "qti-simple-associable-choice") {
3670
3484
  constructor() {
3671
3485
  super(...arguments);
3672
3486
  this.matchMin = 0;
@@ -3706,19 +3520,19 @@ QtiSimpleAssociableChoice.styles = css19`
3706
3520
  }
3707
3521
  `;
3708
3522
  __decorateClass([
3709
- property19({
3523
+ property18({
3710
3524
  type: Number,
3711
3525
  attribute: "match-min"
3712
3526
  })
3713
3527
  ], QtiSimpleAssociableChoice.prototype, "matchMin", 2);
3714
3528
  __decorateClass([
3715
- property19({
3529
+ property18({
3716
3530
  type: Number,
3717
3531
  attribute: "match-max"
3718
3532
  })
3719
3533
  ], QtiSimpleAssociableChoice.prototype, "matchMax", 2);
3720
3534
  __decorateClass([
3721
- property19({
3535
+ property18({
3722
3536
  type: String,
3723
3537
  attribute: "fixed",
3724
3538
  converter: {
@@ -3733,7 +3547,7 @@ QtiSimpleAssociableChoice = __decorateClass([
3733
3547
 
3734
3548
  // src/lib/qti-components/qti-interaction/qti-match-interaction/qti-match-interaction.ts
3735
3549
  import { html as html24, nothing } from "lit";
3736
- import { customElement as customElement27, property as property20, state as state9 } from "lit/decorators.js";
3550
+ import { customElement as customElement27, property as property19, state as state8 } from "lit/decorators.js";
3737
3551
  import { unsafeHTML as unsafeHTML2 } from "lit/directives/unsafe-html.js";
3738
3552
 
3739
3553
  // src/lib/qti-components/qti-interaction/qti-match-interaction/qti-match-interaction.styles.ts
@@ -3990,16 +3804,16 @@ var QtiMatchInteraction = class extends DragDropInteractionMixin(
3990
3804
  };
3991
3805
  QtiMatchInteraction.styles = qti_match_interaction_styles_default;
3992
3806
  __decorateClass([
3993
- property20({ type: String })
3807
+ property19({ type: String })
3994
3808
  ], QtiMatchInteraction.prototype, "class", 2);
3995
3809
  __decorateClass([
3996
- state9()
3810
+ state8()
3997
3811
  ], QtiMatchInteraction.prototype, "_response", 2);
3998
3812
  __decorateClass([
3999
- property20({ type: String, attribute: "response-identifier" })
3813
+ property19({ type: String, attribute: "response-identifier" })
4000
3814
  ], QtiMatchInteraction.prototype, "responseIdentifier", 2);
4001
3815
  __decorateClass([
4002
- state9()
3816
+ state8()
4003
3817
  ], QtiMatchInteraction.prototype, "correctOptions", 2);
4004
3818
  QtiMatchInteraction = __decorateClass([
4005
3819
  customElement27("qti-match-interaction")
@@ -4065,7 +3879,7 @@ QtiMediaInteraction = __decorateClass([
4065
3879
 
4066
3880
  // src/lib/qti-components/qti-interaction/qti-order-interaction/qti-order-interaction.ts
4067
3881
  import { html as html26 } from "lit";
4068
- import { customElement as customElement29, property as property21, state as state10 } from "lit/decorators.js";
3882
+ import { customElement as customElement29, property as property20, state as state9 } from "lit/decorators.js";
4069
3883
 
4070
3884
  // src/lib/qti-components/qti-interaction/qti-order-interaction/qti-order-interaction.styles.ts
4071
3885
  import { css as css22 } from "lit";
@@ -4206,16 +4020,16 @@ var QtiOrderInteraction = class extends DragDropInteractionMixin(
4206
4020
  };
4207
4021
  QtiOrderInteraction.styles = qti_order_interaction_styles_default;
4208
4022
  __decorateClass([
4209
- state10()
4023
+ state9()
4210
4024
  ], QtiOrderInteraction.prototype, "nrChoices", 2);
4211
4025
  __decorateClass([
4212
- state10()
4026
+ state9()
4213
4027
  ], QtiOrderInteraction.prototype, "correctResponses", 2);
4214
4028
  __decorateClass([
4215
- state10()
4029
+ state9()
4216
4030
  ], QtiOrderInteraction.prototype, "showCorrectResponses", 2);
4217
4031
  __decorateClass([
4218
- property21({ type: String })
4032
+ property20({ type: String })
4219
4033
  ], QtiOrderInteraction.prototype, "orientation", 2);
4220
4034
  QtiOrderInteraction = __decorateClass([
4221
4035
  customElement29("qti-order-interaction")
@@ -4223,8 +4037,8 @@ QtiOrderInteraction = __decorateClass([
4223
4037
 
4224
4038
  // src/lib/qti-components/qti-interaction/qti-portable-custom-interaction/qti-portable-custom-interaction.ts
4225
4039
  import { css as css24, html as html27 } from "lit";
4226
- import { customElement as customElement30, property as property22, state as state11 } from "lit/decorators.js";
4227
- import { consume as consume5 } from "@lit/context";
4040
+ import { customElement as customElement30, property as property21, state as state10 } from "lit/decorators.js";
4041
+ import { consume as consume4 } from "@lit/context";
4228
4042
 
4229
4043
  // src/lib/qti-components/qti-interaction/qti-portable-custom-interaction/qti-portable-custom-interaction.styles.ts
4230
4044
  import { css as css23 } from "lit";
@@ -5509,49 +5323,49 @@ QtiPortableCustomInteraction.styles = [
5509
5323
  `
5510
5324
  ];
5511
5325
  __decorateClass([
5512
- property22({ type: String, attribute: "module" })
5326
+ property21({ type: String, attribute: "module" })
5513
5327
  ], QtiPortableCustomInteraction.prototype, "module", 2);
5514
5328
  __decorateClass([
5515
- property22({ type: String, attribute: "custom-interaction-type-identifier" })
5329
+ property21({ type: String, attribute: "custom-interaction-type-identifier" })
5516
5330
  ], QtiPortableCustomInteraction.prototype, "customInteractionTypeIdentifier", 2);
5517
5331
  __decorateClass([
5518
- property22({ type: String, attribute: "data-require-paths" })
5332
+ property21({ type: String, attribute: "data-require-paths" })
5519
5333
  ], QtiPortableCustomInteraction.prototype, "requirePathsJson", 2);
5520
5334
  __decorateClass([
5521
- property22({ type: String, attribute: "data-require-shim" })
5335
+ property21({ type: String, attribute: "data-require-shim" })
5522
5336
  ], QtiPortableCustomInteraction.prototype, "requireShimJson", 2);
5523
5337
  __decorateClass([
5524
- property22({ type: String, attribute: "data-require-js-url" })
5338
+ property21({ type: String, attribute: "data-require-js-url" })
5525
5339
  ], QtiPortableCustomInteraction.prototype, "requireJsUrl", 2);
5526
5340
  __decorateClass([
5527
- property22({ type: String, attribute: "data-base-url" })
5341
+ property21({ type: String, attribute: "data-base-url" })
5528
5342
  ], QtiPortableCustomInteraction.prototype, "baseUrl", 2);
5529
5343
  __decorateClass([
5530
- property22({ type: Boolean, attribute: "data-use-iframe" })
5344
+ property21({ type: Boolean, attribute: "data-use-iframe" })
5531
5345
  ], QtiPortableCustomInteraction.prototype, "useIframe", 2);
5532
5346
  __decorateClass([
5533
- property22({ type: Boolean, attribute: "data-use-default-shims" })
5347
+ property21({ type: Boolean, attribute: "data-use-default-shims" })
5534
5348
  ], QtiPortableCustomInteraction.prototype, "useDefaultShims", 2);
5535
5349
  __decorateClass([
5536
- property22({ type: Boolean, attribute: "data-use-default-paths" })
5350
+ property21({ type: Boolean, attribute: "data-use-default-paths" })
5537
5351
  ], QtiPortableCustomInteraction.prototype, "useDefaultPaths", 2);
5538
5352
  __decorateClass([
5539
- state11()
5353
+ state10()
5540
5354
  ], QtiPortableCustomInteraction.prototype, "_errorMessage", 2);
5541
5355
  __decorateClass([
5542
- consume5({ context: itemContext, subscribe: true }),
5543
- state11()
5356
+ consume4({ context: itemContext, subscribe: true }),
5357
+ state10()
5544
5358
  ], QtiPortableCustomInteraction.prototype, "context", 2);
5545
5359
  __decorateClass([
5546
- state11()
5360
+ state10()
5547
5361
  ], QtiPortableCustomInteraction.prototype, "response", 2);
5548
5362
  QtiPortableCustomInteraction = __decorateClass([
5549
5363
  customElement30("qti-portable-custom-interaction")
5550
5364
  ], QtiPortableCustomInteraction);
5551
5365
 
5552
5366
  // src/lib/qti-components/qti-interaction/qti-position-object-interaction/qti-position-object-interaction.ts
5553
- import { LitElement as LitElement15, css as css25, html as html28 } from "lit";
5554
- var QtiPositionObjectInteraction = class extends LitElement15 {
5367
+ import { LitElement as LitElement14, css as css25, html as html28 } from "lit";
5368
+ var QtiPositionObjectInteraction = class extends LitElement14 {
5555
5369
  render() {
5556
5370
  return html28`<slot></slot>`;
5557
5371
  }
@@ -5575,9 +5389,9 @@ var QtiPositionObjectInteraction = class extends LitElement15 {
5575
5389
  customElements.define("qti-position-object-interaction", QtiPositionObjectInteraction);
5576
5390
 
5577
5391
  // src/lib/qti-components/qti-interaction/qti-position-object-interaction/qti-position-object-stage.ts
5578
- import { LitElement as LitElement16, css as css26, html as html29 } from "lit";
5392
+ import { LitElement as LitElement15, css as css26, html as html29 } from "lit";
5579
5393
  import { customElement as customElement31 } from "lit/decorators.js";
5580
- var QtiPositionObjectStage = class extends LitElement16 {
5394
+ var QtiPositionObjectStage = class extends LitElement15 {
5581
5395
  render() {
5582
5396
  return html29`<slot></slot>`;
5583
5397
  }
@@ -5631,7 +5445,7 @@ QtiPositionObjectStage = __decorateClass([
5631
5445
 
5632
5446
  // src/lib/qti-components/qti-interaction/qti-select-point-interaction/qti-select-point-interaction.ts
5633
5447
  import { css as css27, html as html30 } from "lit";
5634
- import { customElement as customElement32, property as property23, state as state12 } from "lit/decorators.js";
5448
+ import { customElement as customElement32, property as property22, state as state11 } from "lit/decorators.js";
5635
5449
  import { repeat as repeat2 } from "lit/directives/repeat.js";
5636
5450
  import { styleMap } from "lit/directives/style-map.js";
5637
5451
 
@@ -5989,34 +5803,34 @@ QtiSelectPointInteraction.styles = [
5989
5803
  `
5990
5804
  ];
5991
5805
  __decorateClass([
5992
- property23({
5806
+ property22({
5993
5807
  type: Number,
5994
5808
  attribute: "max-choices"
5995
5809
  })
5996
5810
  ], QtiSelectPointInteraction.prototype, "maxChoices", 2);
5997
5811
  __decorateClass([
5998
- property23({
5812
+ property22({
5999
5813
  type: Number,
6000
5814
  attribute: "min-choices"
6001
5815
  })
6002
5816
  ], QtiSelectPointInteraction.prototype, "minChoices", 2);
6003
5817
  __decorateClass([
6004
- state12()
5818
+ state11()
6005
5819
  ], QtiSelectPointInteraction.prototype, "response", 2);
6006
5820
  __decorateClass([
6007
- state12()
5821
+ state11()
6008
5822
  ], QtiSelectPointInteraction.prototype, "_correctAreas", 2);
6009
5823
  __decorateClass([
6010
- state12()
5824
+ state11()
6011
5825
  ], QtiSelectPointInteraction.prototype, "_responseCorrection", 2);
6012
5826
  QtiSelectPointInteraction = __decorateClass([
6013
5827
  customElement32("qti-select-point-interaction")
6014
5828
  ], QtiSelectPointInteraction);
6015
5829
 
6016
5830
  // src/lib/qti-components/qti-interaction/qti-simple-choice.ts
6017
- import { css as css28, html as html31, LitElement as LitElement17, nothing as nothing2 } from "lit";
6018
- import { customElement as customElement33, property as property24 } from "lit/decorators.js";
6019
- var QtiSimpleChoice = class extends ActiveElementMixin(LitElement17, "qti-simple-choice") {
5831
+ import { css as css28, html as html31, LitElement as LitElement16, nothing as nothing2 } from "lit";
5832
+ import { customElement as customElement33, property as property23 } from "lit/decorators.js";
5833
+ var QtiSimpleChoice = class extends ActiveElementMixin(LitElement16, "qti-simple-choice") {
6020
5834
  constructor() {
6021
5835
  super(...arguments);
6022
5836
  this.templateIdentifier = null;
@@ -6053,13 +5867,13 @@ QtiSimpleChoice.styles = css28`
6053
5867
  }
6054
5868
  `;
6055
5869
  __decorateClass([
6056
- property24({ type: String, attribute: "template-identifier" })
5870
+ property23({ type: String, attribute: "template-identifier" })
6057
5871
  ], QtiSimpleChoice.prototype, "templateIdentifier", 2);
6058
5872
  __decorateClass([
6059
- property24({ type: String, attribute: "show-hide" })
5873
+ property23({ type: String, attribute: "show-hide" })
6060
5874
  ], QtiSimpleChoice.prototype, "showHide", 2);
6061
5875
  __decorateClass([
6062
- property24({
5876
+ property23({
6063
5877
  type: Boolean,
6064
5878
  converter: {
6065
5879
  fromAttribute: (value) => value === "true",
@@ -6068,7 +5882,7 @@ __decorateClass([
6068
5882
  })
6069
5883
  ], QtiSimpleChoice.prototype, "fixed", 2);
6070
5884
  __decorateClass([
6071
- property24({ type: String, attribute: false })
5885
+ property23({ type: String, attribute: false })
6072
5886
  ], QtiSimpleChoice.prototype, "marker", 2);
6073
5887
  QtiSimpleChoice = __decorateClass([
6074
5888
  customElement33("qti-simple-choice")
@@ -6076,7 +5890,7 @@ QtiSimpleChoice = __decorateClass([
6076
5890
 
6077
5891
  // src/lib/qti-components/qti-interaction/qti-slider-interaction/qti-slider-interaction.ts
6078
5892
  import { html as html32 } from "lit";
6079
- import { customElement as customElement34, property as property25, query as query2 } from "lit/decorators.js";
5893
+ import { customElement as customElement34, property as property24, query as query2 } from "lit/decorators.js";
6080
5894
 
6081
5895
  // src/lib/qti-components/qti-interaction/qti-slider-interaction/qti-slider-interaction.styles.ts
6082
5896
  import { css as css29 } from "lit";
@@ -6286,13 +6100,13 @@ __decorateClass([
6286
6100
  query2("#rail")
6287
6101
  ], QtiSliderInteraction.prototype, "_rail", 2);
6288
6102
  __decorateClass([
6289
- property25({ type: Number, attribute: "lower-bound" })
6103
+ property24({ type: Number, attribute: "lower-bound" })
6290
6104
  ], QtiSliderInteraction.prototype, "min", 2);
6291
6105
  __decorateClass([
6292
- property25({ type: Number, attribute: "upper-bound" })
6106
+ property24({ type: Number, attribute: "upper-bound" })
6293
6107
  ], QtiSliderInteraction.prototype, "max", 2);
6294
6108
  __decorateClass([
6295
- property25({ type: Number, attribute: "step" })
6109
+ property24({ type: Number, attribute: "step" })
6296
6110
  ], QtiSliderInteraction.prototype, "step", 2);
6297
6111
  QtiSliderInteraction = __decorateClass([
6298
6112
  customElement34("qti-slider-interaction")
@@ -6300,7 +6114,7 @@ QtiSliderInteraction = __decorateClass([
6300
6114
 
6301
6115
  // src/lib/qti-components/qti-interaction/qti-text-entry-interaction/qti-text-entry-interaction.ts
6302
6116
  import { html as html33, nothing as nothing3 } from "lit";
6303
- import { customElement as customElement35, property as property26, query as query3, state as state13 } from "lit/decorators.js";
6117
+ import { customElement as customElement35, property as property25, query as query3, state as state12 } from "lit/decorators.js";
6304
6118
  import { ifDefined as ifDefined4 } from "lit/directives/if-defined.js";
6305
6119
  import { createRef } from "lit/directives/ref.js";
6306
6120
 
@@ -6543,19 +6357,19 @@ var QtiTextEntryInteraction = class extends Interaction {
6543
6357
  };
6544
6358
  QtiTextEntryInteraction.styles = qti_text_entry_interaction_styles_default;
6545
6359
  __decorateClass([
6546
- property26({ type: Number, attribute: "expected-length" })
6360
+ property25({ type: Number, attribute: "expected-length" })
6547
6361
  ], QtiTextEntryInteraction.prototype, "expectedLength", 2);
6548
6362
  __decorateClass([
6549
- property26({ type: String, attribute: "pattern-mask" })
6363
+ property25({ type: String, attribute: "pattern-mask" })
6550
6364
  ], QtiTextEntryInteraction.prototype, "patternMask", 2);
6551
6365
  __decorateClass([
6552
- property26({ type: String, attribute: "placeholder-text" })
6366
+ property25({ type: String, attribute: "placeholder-text" })
6553
6367
  ], QtiTextEntryInteraction.prototype, "placeholderText", 2);
6554
6368
  __decorateClass([
6555
- property26({ type: String, attribute: "data-patternmask-message" })
6369
+ property25({ type: String, attribute: "data-patternmask-message" })
6556
6370
  ], QtiTextEntryInteraction.prototype, "dataPatternmaskMessage", 2);
6557
6371
  __decorateClass([
6558
- state13()
6372
+ state12()
6559
6373
  ], QtiTextEntryInteraction.prototype, "response", 2);
6560
6374
  __decorateClass([
6561
6375
  query3("input")
@@ -6650,7 +6464,7 @@ QtiUploadInteraction = __decorateClass([
6650
6464
 
6651
6465
  // src/lib/qti-components/qti-item-body/qti-item-body.ts
6652
6466
  import { customElement as customElement37 } from "lit/decorators.js";
6653
- import { html as html35, LitElement as LitElement18 } from "lit";
6467
+ import { html as html35, LitElement as LitElement17 } from "lit";
6654
6468
 
6655
6469
  // src/lib/qti-components/qti-item-body/qti-item-body.styles.ts
6656
6470
  import { css as css32 } from "lit";
@@ -6661,7 +6475,7 @@ var qti_item_body_styles_default = css32`
6661
6475
  `;
6662
6476
 
6663
6477
  // src/lib/qti-components/qti-item-body/qti-item-body.ts
6664
- var QtiItemBody = class extends LitElement18 {
6478
+ var QtiItemBody = class extends LitElement17 {
6665
6479
  render() {
6666
6480
  return html35`<slot part="qti-rubric-blocks" name="qti-rubric-block"></slot><slot></slot>`;
6667
6481
  }
@@ -6672,9 +6486,9 @@ QtiItemBody = __decorateClass([
6672
6486
  ], QtiItemBody);
6673
6487
 
6674
6488
  // src/lib/qti-components/qti-outcome-processing/qti-outcome-processing.ts
6675
- import { css as css33, html as html36, LitElement as LitElement19 } from "lit";
6489
+ import { css as css33, html as html36, LitElement as LitElement18 } from "lit";
6676
6490
  import { customElement as customElement38 } from "lit/decorators.js";
6677
- var QtiOutcomeProcessing = class extends LitElement19 {
6491
+ var QtiOutcomeProcessing = class extends LitElement18 {
6678
6492
  render() {
6679
6493
  return html36`<slot></slot>`;
6680
6494
  }
@@ -6703,9 +6517,9 @@ var QtiOutcomeProcessingProcessor = class {
6703
6517
  };
6704
6518
 
6705
6519
  // src/lib/qti-components/qti-prompt/qti-prompt.ts
6706
- import { html as html37, LitElement as LitElement20 } from "lit";
6520
+ import { html as html37, LitElement as LitElement19 } from "lit";
6707
6521
  import { customElement as customElement39 } from "lit/decorators.js";
6708
- var QtiPrompt = class extends LitElement20 {
6522
+ var QtiPrompt = class extends LitElement19 {
6709
6523
  render() {
6710
6524
  return html37`<slot></slot>`;
6711
6525
  }
@@ -6721,7 +6535,7 @@ QtiPrompt = __decorateClass([
6721
6535
  ], QtiPrompt);
6722
6536
 
6723
6537
  // src/lib/qti-components/qti-response-processing/qti-response-processing/qti-response-processing.ts
6724
- import { css as css34, html as html38, LitElement as LitElement21 } from "lit";
6538
+ import { css as css34, html as html38, LitElement as LitElement20 } from "lit";
6725
6539
  import { customElement as customElement40 } from "lit/decorators.js";
6726
6540
 
6727
6541
  // src/lib/qti-components/internal/template-strings.ts
@@ -6779,7 +6593,7 @@ var mapResponsePoint = `<qti-response-processing>
6779
6593
  </qti-response-processing>`;
6780
6594
 
6781
6595
  // src/lib/qti-components/qti-response-processing/qti-response-processing/qti-response-processing.ts
6782
- var QtiResponseProcessing = class extends LitElement21 {
6596
+ var QtiResponseProcessing = class extends LitElement20 {
6783
6597
  render() {
6784
6598
  return html38`<slot></slot>`;
6785
6599
  }
@@ -6827,13 +6641,13 @@ QtiResponseProcessing = __decorateClass([
6827
6641
  ], QtiResponseProcessing);
6828
6642
 
6829
6643
  // src/lib/qti-components/qti-response-processing/qti-rule/qti-lookup-outcome-value/qti-lookup-outcome-value.ts
6830
- import { property as property27, state as state14 } from "lit/decorators.js";
6831
- import { consume as consume6 } from "@lit/context";
6644
+ import { property as property26, state as state13 } from "lit/decorators.js";
6645
+ import { consume as consume5 } from "@lit/context";
6832
6646
 
6833
6647
  // src/lib/qti-components/qti-response-processing/qti-rule/qti-rule.ts
6834
6648
  import { customElement as customElement41 } from "lit/decorators.js";
6835
- import { html as html39, LitElement as LitElement22 } from "lit";
6836
- var QtiRule = class extends LitElement22 {
6649
+ import { html as html39, LitElement as LitElement21 } from "lit";
6650
+ var QtiRule = class extends LitElement21 {
6837
6651
  render() {
6838
6652
  return html39`<slot></slot>`;
6839
6653
  }
@@ -6875,11 +6689,11 @@ var QtiLookupOutcomeValue = class extends QtiRule {
6875
6689
  }
6876
6690
  };
6877
6691
  __decorateClass([
6878
- property27({ type: String })
6692
+ property26({ type: String })
6879
6693
  ], QtiLookupOutcomeValue.prototype, "identifier", 2);
6880
6694
  __decorateClass([
6881
- consume6({ context: itemContext, subscribe: true }),
6882
- state14()
6695
+ consume5({ context: itemContext, subscribe: true }),
6696
+ state13()
6883
6697
  ], QtiLookupOutcomeValue.prototype, "context", 2);
6884
6698
  customElements.define("qti-lookup-outcome-value", QtiLookupOutcomeValue);
6885
6699
 
@@ -6960,8 +6774,8 @@ var QtiSetOutcomeValueRule = class {
6960
6774
  customElements.define("qti-set-outcome-value", QtiSetOutcomeValue);
6961
6775
 
6962
6776
  // src/lib/qti-components/qti-response-processing/qti-response-else/qti-response-else.ts
6963
- import { LitElement as LitElement23, html as html41 } from "lit";
6964
- var QtiResponseElse = class extends LitElement23 {
6777
+ import { LitElement as LitElement22, html as html41 } from "lit";
6778
+ var QtiResponseElse = class extends LitElement22 {
6965
6779
  render() {
6966
6780
  return html41`<slot></slot>`;
6967
6781
  }
@@ -7011,151 +6825,6 @@ customElements.define("qti-response-else-if", QtiResponseElseIf);
7011
6825
 
7012
6826
  // src/lib/qti-components/qti-response-processing/qti-expression/qti-and/qti-and.ts
7013
6827
  import { customElement as customElement42 } from "lit/decorators.js";
7014
-
7015
- // src/lib/exports/qti-expression.ts
7016
- import { consume as consume7 } from "@lit/context";
7017
- import { css as css35, html as html43, LitElement as LitElement24 } from "lit";
7018
- import { state as state15 } from "lit/decorators.js";
7019
- var QtiExpression = class extends LitElement24 {
7020
- constructor() {
7021
- super(...arguments);
7022
- this.getVariables = () => (
7023
- // FIXME: if this itself is multiple, this will never enter the qti-multiple switch
7024
- // See this example here: https://github.com/1EdTech/qti-examples/blob/master/qtiv3-examples/packaging/items/Example05-feedbackBlock-adaptive.xml
7025
- Array.from(this.children).map((e) => {
7026
- console.debug("getVariables", e.tagName.toLowerCase());
7027
- switch (e.tagName.toLowerCase()) {
7028
- case "qti-base-value": {
7029
- return {
7030
- baseType: e.getAttribute("base-type"),
7031
- value: e.textContent.trim(),
7032
- cardinality: "single"
7033
- };
7034
- }
7035
- case "qti-variable": {
7036
- const identifier = e.getAttribute("identifier") || "";
7037
- if (identifier === "QTI_CONTEXT") {
7038
- if (!this.qtiContext?.QTI_CONTEXT) {
7039
- console.warn("QTI_CONTEXT not available");
7040
- return {
7041
- identifier: "QTI_CONTEXT",
7042
- baseType: "record",
7043
- value: this.qtiContext.QTI_CONTEXT,
7044
- cardinality: "record",
7045
- type: "context"
7046
- };
7047
- }
7048
- return {
7049
- identifier: "QTI_CONTEXT",
7050
- baseType: "record",
7051
- value: this.qtiContext.QTI_CONTEXT,
7052
- cardinality: "record",
7053
- type: "context"
7054
- };
7055
- }
7056
- const variable = this.context.variables.find((v) => v.identifier === identifier) || null;
7057
- return variable;
7058
- }
7059
- case "qti-multiple": {
7060
- const multiple = e;
7061
- const values = multiple.getResult();
7062
- console.debug("values", values);
7063
- if (values?.length > 0) {
7064
- return {
7065
- identifier: "",
7066
- baseType: values[0].baseType,
7067
- value: values.map((v) => v.value),
7068
- cardinality: "multiple",
7069
- type: "response"
7070
- };
7071
- }
7072
- return null;
7073
- }
7074
- case "qti-ordered": {
7075
- const multiple = e;
7076
- const values = multiple.getResult();
7077
- if (values?.length > 0) {
7078
- return {
7079
- identifier: "",
7080
- baseType: values[0].baseType,
7081
- value: values.map((v) => v.value),
7082
- cardinality: "ordered",
7083
- type: "response"
7084
- };
7085
- }
7086
- return null;
7087
- }
7088
- case "qti-correct": {
7089
- const identifier = e.getAttribute("identifier") || "";
7090
- const responseVariable = this.context.variables.find((v) => v.identifier === identifier) || null;
7091
- return {
7092
- baseType: responseVariable.baseType,
7093
- value: responseVariable.correctResponse,
7094
- cardinality: responseVariable.cardinality
7095
- };
7096
- }
7097
- default: {
7098
- try {
7099
- const expression = e;
7100
- const value = expression.getResult();
7101
- return {
7102
- baseType: "integer",
7103
- value: value?.toString() || null,
7104
- cardinality: "single"
7105
- };
7106
- } catch (error) {
7107
- console.warn("default not sufficient");
7108
- }
7109
- return null;
7110
- }
7111
- }
7112
- }).filter((v) => v !== null)
7113
- );
7114
- }
7115
- static {
7116
- // hide the slot with css
7117
- this.styles = css35`
7118
- slot {
7119
- display: none;
7120
- }
7121
- `;
7122
- }
7123
- render() {
7124
- return html43`<pre>${JSON.stringify(this.result, null, 2)}</pre>
7125
- <slot></slot>`;
7126
- }
7127
- calculate() {
7128
- this.result = this.getResult();
7129
- return this.result;
7130
- }
7131
- getResult() {
7132
- throw new Error("Not implemented");
7133
- }
7134
- };
7135
- __decorateClass([
7136
- state15()
7137
- ], QtiExpression.prototype, "result", 2);
7138
- __decorateClass([
7139
- consume7({ context: itemContext, subscribe: true }),
7140
- state15()
7141
- ], QtiExpression.prototype, "context", 2);
7142
- __decorateClass([
7143
- consume7({ context: qtiContext, subscribe: true }),
7144
- state15()
7145
- ], QtiExpression.prototype, "qtiContext", 2);
7146
-
7147
- // src/lib/exports/qti-condition-expression.ts
7148
- var QtiConditionExpression = class extends QtiExpression {
7149
- calculate() {
7150
- this.result = this.getResult();
7151
- return this.result;
7152
- }
7153
- getResult() {
7154
- throw new Error("Not implemented");
7155
- }
7156
- };
7157
-
7158
- // src/lib/qti-components/qti-response-processing/qti-expression/qti-and/qti-and.ts
7159
6828
  var QtiAnd = class extends qtiAndMixin(QtiConditionExpression) {
7160
6829
  calculate() {
7161
6830
  return this.calculateChildren(Array.from(this.children));
@@ -7199,7 +6868,7 @@ function qtiAndMixin(Base) {
7199
6868
  }
7200
6869
 
7201
6870
  // src/lib/qti-components/qti-response-processing/qti-expression/qti-basevalue/qti-basevalue.ts
7202
- import { property as property28 } from "lit/decorators.js";
6871
+ import { property as property27 } from "lit/decorators.js";
7203
6872
  var QtiBaseValue = class extends QtiExpression {
7204
6873
  constructor() {
7205
6874
  super(...arguments);
@@ -7211,7 +6880,7 @@ var QtiBaseValue = class extends QtiExpression {
7211
6880
  }
7212
6881
  };
7213
6882
  __decorateClass([
7214
- property28({ type: String, attribute: "base-type" })
6883
+ property27({ type: String, attribute: "base-type" })
7215
6884
  ], QtiBaseValue.prototype, "baseType", 2);
7216
6885
  customElements.define("qti-base-value", QtiBaseValue);
7217
6886
 
@@ -7291,8 +6960,8 @@ var QtiCorrect = class extends QtiExpression {
7291
6960
  customElements.define("qti-correct", QtiCorrect);
7292
6961
 
7293
6962
  // src/lib/qti-components/qti-response-processing/qti-expression/qti-default/qti-default.ts
7294
- import { property as property29, state as state16 } from "lit/decorators.js";
7295
- import { consume as consume8 } from "@lit/context";
6963
+ import { property as property28, state as state14 } from "lit/decorators.js";
6964
+ import { consume as consume6 } from "@lit/context";
7296
6965
  var QtiDefault = class extends QtiExpression {
7297
6966
  constructor() {
7298
6967
  super(...arguments);
@@ -7342,20 +7011,20 @@ var QtiDefault = class extends QtiExpression {
7342
7011
  }
7343
7012
  };
7344
7013
  __decorateClass([
7345
- property29({ type: String })
7014
+ property28({ type: String })
7346
7015
  ], QtiDefault.prototype, "identifier", 2);
7347
7016
  __decorateClass([
7348
- consume8({ context: itemContext, subscribe: true }),
7349
- state16()
7017
+ consume6({ context: itemContext, subscribe: true }),
7018
+ state14()
7350
7019
  ], QtiDefault.prototype, "context", 2);
7351
7020
  __decorateClass([
7352
- state16(),
7353
- consume8({ context: testContext, subscribe: true })
7021
+ state14(),
7022
+ consume6({ context: testContext, subscribe: true })
7354
7023
  ], QtiDefault.prototype, "_testContext", 2);
7355
7024
  customElements.define("qti-default", QtiDefault);
7356
7025
 
7357
7026
  // src/lib/qti-components/qti-response-processing/qti-expression/qti-equal-rounded/qti-equal-rounded.ts
7358
- import { property as property30 } from "lit/decorators.js";
7027
+ import { property as property29 } from "lit/decorators.js";
7359
7028
  var QtiEqualRounded = class extends QtiExpression {
7360
7029
  constructor() {
7361
7030
  super(...arguments);
@@ -7422,7 +7091,7 @@ var QtiEqualRounded = class extends QtiExpression {
7422
7091
  }
7423
7092
  };
7424
7093
  __decorateClass([
7425
- property30({ type: String })
7094
+ property29({ type: String })
7426
7095
  ], QtiEqualRounded.prototype, "roundingMode", 2);
7427
7096
  customElements.define("qti-equal-rounded", QtiEqualRounded);
7428
7097
 
@@ -7473,7 +7142,7 @@ var QtiRound = class extends QtiExpression {
7473
7142
  customElements.define("qti-round", QtiRound);
7474
7143
 
7475
7144
  // src/lib/qti-components/qti-response-processing/qti-expression/qti-round-to/qti-round-to.ts
7476
- import { property as property31 } from "lit/decorators.js";
7145
+ import { property as property30 } from "lit/decorators.js";
7477
7146
  var QtiRoundTo = class extends QtiExpression {
7478
7147
  constructor() {
7479
7148
  super(...arguments);
@@ -7555,15 +7224,15 @@ var QtiRoundTo = class extends QtiExpression {
7555
7224
  }
7556
7225
  };
7557
7226
  __decorateClass([
7558
- property31({ type: String, attribute: "rounding-mode" })
7227
+ property30({ type: String, attribute: "rounding-mode" })
7559
7228
  ], QtiRoundTo.prototype, "roundingMode", 2);
7560
7229
  __decorateClass([
7561
- property31({ type: Number })
7230
+ property30({ type: Number })
7562
7231
  ], QtiRoundTo.prototype, "figures", 2);
7563
7232
  customElements.define("qti-round-to", QtiRoundTo);
7564
7233
 
7565
7234
  // src/lib/qti-components/qti-response-processing/qti-expression/qti-equal/qti-equal.ts
7566
- import { property as property32 } from "lit/decorators.js";
7235
+ import { property as property31 } from "lit/decorators.js";
7567
7236
  var QtiEqual = class extends QtiExpression {
7568
7237
  constructor() {
7569
7238
  super(...arguments);
@@ -7589,7 +7258,7 @@ var QtiEqual = class extends QtiExpression {
7589
7258
  }
7590
7259
  };
7591
7260
  __decorateClass([
7592
- property32({ type: String })
7261
+ property31({ type: String })
7593
7262
  ], QtiEqual.prototype, "toleranceMode", 2);
7594
7263
  customElements.define("qti-equal", QtiEqual);
7595
7264
 
@@ -7820,7 +7489,7 @@ var QtiLte = class extends QtiConditionExpression {
7820
7489
  customElements.define("qti-lte", QtiLte);
7821
7490
 
7822
7491
  // src/lib/qti-components/qti-response-processing/qti-expression/qti-map-response/qti-map-response.ts
7823
- import { property as property33 } from "lit/decorators.js";
7492
+ import { property as property32 } from "lit/decorators.js";
7824
7493
  var QtiMapResponse = class extends QtiExpression {
7825
7494
  getResult() {
7826
7495
  const response = this.context.variables.find((r) => r.identifier === this.identifier);
@@ -7864,12 +7533,12 @@ var QtiMapResponse = class extends QtiExpression {
7864
7533
  }
7865
7534
  };
7866
7535
  __decorateClass([
7867
- property33({ type: String })
7536
+ property32({ type: String })
7868
7537
  ], QtiMapResponse.prototype, "identifier", 2);
7869
7538
  customElements.define("qti-map-response", QtiMapResponse);
7870
7539
 
7871
7540
  // src/lib/qti-components/qti-response-processing/qti-expression/qti-map-response-point/qti-map-response-point.ts
7872
- import { property as property34 } from "lit/decorators.js";
7541
+ import { property as property33 } from "lit/decorators.js";
7873
7542
  var QtiMapResponsePoint = class extends QtiExpression {
7874
7543
  getResult() {
7875
7544
  const response = this.context.variables.find((r) => r.identifier === this.identifier);
@@ -7918,12 +7587,12 @@ var QtiMapResponsePoint = class extends QtiExpression {
7918
7587
  }
7919
7588
  };
7920
7589
  __decorateClass([
7921
- property34({ type: String })
7590
+ property33({ type: String })
7922
7591
  ], QtiMapResponsePoint.prototype, "identifier", 2);
7923
7592
  customElements.define("qti-map-response-point", QtiMapResponsePoint);
7924
7593
 
7925
7594
  // src/lib/qti-components/qti-response-processing/qti-expression/qti-math-operator/qti-math-operator.ts
7926
- import { property as property35 } from "lit/decorators.js";
7595
+ import { property as property34 } from "lit/decorators.js";
7927
7596
  var QtiMathOperator = class extends QtiExpression {
7928
7597
  constructor() {
7929
7598
  super(...arguments);
@@ -8078,7 +7747,7 @@ var QtiMathOperator = class extends QtiExpression {
8078
7747
  }
8079
7748
  };
8080
7749
  __decorateClass([
8081
- property35({ type: String })
7750
+ property34({ type: String })
8082
7751
  ], QtiMathOperator.prototype, "name", 2);
8083
7752
  customElements.define("qti-math-operator", QtiMathOperator);
8084
7753
 
@@ -8222,10 +7891,10 @@ var QtiMultiple = class extends QtiExpression {
8222
7891
  customElements.define("qti-multiple", QtiMultiple);
8223
7892
 
8224
7893
  // src/lib/qti-components/qti-response-processing/qti-expression/qti-not/qti-not.ts
8225
- import { html as html44 } from "lit";
7894
+ import { html as html43 } from "lit";
8226
7895
  var QtiNot = class extends QtiExpression {
8227
7896
  render() {
8228
- return html44`${super.render()}`;
7897
+ return html43`${super.render()}`;
8229
7898
  }
8230
7899
  getResult() {
8231
7900
  const expression = this.firstElementChild;
@@ -8361,13 +8030,13 @@ var QtiPower = class extends QtiExpression {
8361
8030
  customElements.define("qti-power", QtiPower);
8362
8031
 
8363
8032
  // src/lib/qti-components/qti-response-processing/qti-expression/qti-printed-variable/qti-printed-variable.ts
8364
- import { consume as consume9 } from "@lit/context";
8365
- import { LitElement as LitElement25, html as html45, nothing as nothing4 } from "lit";
8366
- import { property as property36, state as state17 } from "lit/decorators.js";
8367
- var QtiPrintedVariable = class extends LitElement25 {
8033
+ import { consume as consume7 } from "@lit/context";
8034
+ import { LitElement as LitElement23, html as html44, nothing as nothing4 } from "lit";
8035
+ import { property as property35, state as state15 } from "lit/decorators.js";
8036
+ var QtiPrintedVariable = class extends LitElement23 {
8368
8037
  render() {
8369
8038
  const value = this.context?.variables.find((v) => v.identifier === this.identifier)?.value;
8370
- return value === null ? nothing4 : html45`${JSON.stringify(value, null, 2)}`;
8039
+ return value === null ? nothing4 : html44`${JSON.stringify(value, null, 2)}`;
8371
8040
  }
8372
8041
  calculate() {
8373
8042
  const result = this.context.variables.find((v) => v.identifier === this.identifier) || null;
@@ -8375,11 +8044,11 @@ var QtiPrintedVariable = class extends LitElement25 {
8375
8044
  }
8376
8045
  };
8377
8046
  __decorateClass([
8378
- property36({ type: String })
8047
+ property35({ type: String })
8379
8048
  ], QtiPrintedVariable.prototype, "identifier", 2);
8380
8049
  __decorateClass([
8381
- consume9({ context: itemContext, subscribe: true }),
8382
- state17()
8050
+ consume7({ context: itemContext, subscribe: true }),
8051
+ state15()
8383
8052
  ], QtiPrintedVariable.prototype, "context", 2);
8384
8053
  customElements.define("qti-printed-variable", QtiPrintedVariable);
8385
8054
 
@@ -8436,7 +8105,7 @@ function qtiSubtractMixin(Base) {
8436
8105
  }
8437
8106
 
8438
8107
  // src/lib/qti-components/qti-response-processing/qti-expression/qti-string-match/qti-string-match.ts
8439
- import { property as property37 } from "lit/decorators.js";
8108
+ import { property as property36 } from "lit/decorators.js";
8440
8109
  var QtiStringMatch = class extends QtiExpression {
8441
8110
  constructor() {
8442
8111
  super(...arguments);
@@ -8460,7 +8129,7 @@ var QtiStringMatch = class extends QtiExpression {
8460
8129
  }
8461
8130
  };
8462
8131
  __decorateClass([
8463
- property37({ type: String, attribute: "case-sensitive" })
8132
+ property36({ type: String, attribute: "case-sensitive" })
8464
8133
  ], QtiStringMatch.prototype, "caseSensitive", 2);
8465
8134
  customElements.define("qti-string-match", QtiStringMatch);
8466
8135
 
@@ -8508,7 +8177,7 @@ var QtiVariable = class extends QtiExpression {
8508
8177
  customElements.define("qti-variable", QtiVariable);
8509
8178
 
8510
8179
  // src/lib/qti-components/qti-response-processing/qti-expression/qti-random-integer/qti-random-integer.ts
8511
- import { property as property38 } from "lit/decorators.js";
8180
+ import { property as property37 } from "lit/decorators.js";
8512
8181
  var QtiRandomInteger = class extends QtiExpression {
8513
8182
  constructor() {
8514
8183
  super(...arguments);
@@ -8567,13 +8236,13 @@ var QtiRandomInteger = class extends QtiExpression {
8567
8236
  }
8568
8237
  };
8569
8238
  __decorateClass([
8570
- property38({ type: Number })
8239
+ property37({ type: Number })
8571
8240
  ], QtiRandomInteger.prototype, "min", 2);
8572
8241
  __decorateClass([
8573
- property38({ type: Number })
8242
+ property37({ type: Number })
8574
8243
  ], QtiRandomInteger.prototype, "max", 2);
8575
8244
  __decorateClass([
8576
- property38({ type: Number })
8245
+ property37({ type: Number })
8577
8246
  ], QtiRandomInteger.prototype, "step", 2);
8578
8247
  customElements.define("qti-random-integer", QtiRandomInteger);
8579
8248
 
@@ -8618,7 +8287,7 @@ var QtiDelete = class extends QtiExpression {
8618
8287
  customElements.define("qti-delete", QtiDelete);
8619
8288
 
8620
8289
  // src/lib/qti-components/qti-response-processing/qti-expression/qti-index/qti-index.ts
8621
- import { customElement as customElement43, property as property39 } from "lit/decorators.js";
8290
+ import { customElement as customElement43, property as property38 } from "lit/decorators.js";
8622
8291
  var QtiIndex = class extends QtiExpression {
8623
8292
  // Required attribute, can be a number or an identifier
8624
8293
  getResult() {
@@ -8672,18 +8341,18 @@ var QtiIndex = class extends QtiExpression {
8672
8341
  }
8673
8342
  };
8674
8343
  __decorateClass([
8675
- property39({ type: String })
8344
+ property38({ type: String })
8676
8345
  ], QtiIndex.prototype, "n", 2);
8677
8346
  QtiIndex = __decorateClass([
8678
8347
  customElement43("qti-index")
8679
8348
  ], QtiIndex);
8680
8349
 
8681
8350
  // src/lib/qti-components/qti-rubric-block/qti-content-body.ts
8682
- import { LitElement as LitElement26, html as html46 } from "lit";
8351
+ import { LitElement as LitElement24, html as html45 } from "lit";
8683
8352
  import { customElement as customElement44 } from "lit/decorators.js";
8684
- var QtiContentBody = class extends LitElement26 {
8353
+ var QtiContentBody = class extends LitElement24 {
8685
8354
  render() {
8686
- return html46`<slot></slot>`;
8355
+ return html45`<slot></slot>`;
8687
8356
  }
8688
8357
  };
8689
8358
  QtiContentBody = __decorateClass([
@@ -8691,9 +8360,9 @@ QtiContentBody = __decorateClass([
8691
8360
  ], QtiContentBody);
8692
8361
 
8693
8362
  // src/lib/qti-components/qti-rubric-block/qti-rubric-block.ts
8694
- import { LitElement as LitElement27, css as css36, html as html47 } from "lit";
8695
- import { customElement as customElement45, property as property40 } from "lit/decorators.js";
8696
- var QtiRubricBlock = class extends LitElement27 {
8363
+ import { LitElement as LitElement25, css as css35, html as html46 } from "lit";
8364
+ import { customElement as customElement45, property as property39 } from "lit/decorators.js";
8365
+ var QtiRubricBlock = class extends LitElement25 {
8697
8366
  handleclassNamesChange() {
8698
8367
  const classNames = this.classNames.split(" ");
8699
8368
  classNames.forEach((className) => {
@@ -8720,25 +8389,25 @@ var QtiRubricBlock = class extends LitElement27 {
8720
8389
  });
8721
8390
  }
8722
8391
  render() {
8723
- return html47`<slot></slot>`;
8392
+ return html46`<slot></slot>`;
8724
8393
  }
8725
8394
  };
8726
- QtiRubricBlock.styles = css36`
8395
+ QtiRubricBlock.styles = css35`
8727
8396
  :host {
8728
8397
  display: block;
8729
8398
  }
8730
8399
  `;
8731
8400
  __decorateClass([
8732
- property40({ type: String })
8401
+ property39({ type: String })
8733
8402
  ], QtiRubricBlock.prototype, "id", 2);
8734
8403
  __decorateClass([
8735
- property40({ type: String })
8404
+ property39({ type: String })
8736
8405
  ], QtiRubricBlock.prototype, "use", 2);
8737
8406
  __decorateClass([
8738
- property40({ type: String })
8407
+ property39({ type: String })
8739
8408
  ], QtiRubricBlock.prototype, "view", 2);
8740
8409
  __decorateClass([
8741
- property40({ type: String, attribute: "class" })
8410
+ property39({ type: String, attribute: "class" })
8742
8411
  ], QtiRubricBlock.prototype, "classNames", 2);
8743
8412
  __decorateClass([
8744
8413
  watch("classNames", { waitUntilFirstUpdate: true })
@@ -8748,9 +8417,9 @@ QtiRubricBlock = __decorateClass([
8748
8417
  ], QtiRubricBlock);
8749
8418
 
8750
8419
  // src/lib/qti-components/qti-stylesheet/qti-stylesheet.ts
8751
- import { LitElement as LitElement28 } from "lit";
8420
+ import { LitElement as LitElement26 } from "lit";
8752
8421
  import { customElement as customElement46 } from "lit/decorators.js";
8753
- var QtiStylesheet = class extends LitElement28 {
8422
+ var QtiStylesheet = class extends LitElement26 {
8754
8423
  constructor() {
8755
8424
  super(...arguments);
8756
8425
  this.styleElement = null;
@@ -8804,16 +8473,16 @@ QtiStylesheet = __decorateClass([
8804
8473
  ], QtiStylesheet);
8805
8474
 
8806
8475
  // src/lib/qti-components/qti-variable-declaration/qti-outcome-declaration/qti-outcome-declaration.ts
8807
- import { consume as consume10 } from "@lit/context";
8808
- import { css as css37, html as html49 } from "lit";
8809
- import { customElement as customElement48, property as property41, state as state18 } from "lit/decorators.js";
8476
+ import { consume as consume8 } from "@lit/context";
8477
+ import { css as css36, html as html48 } from "lit";
8478
+ import { customElement as customElement48, property as property40, state as state16 } from "lit/decorators.js";
8810
8479
 
8811
8480
  // src/lib/qti-components/qti-variable-declaration/qti-variable-declaration.ts
8812
- import { html as html48, LitElement as LitElement29 } from "lit";
8481
+ import { html as html47, LitElement as LitElement27 } from "lit";
8813
8482
  import { customElement as customElement47 } from "lit/decorators.js";
8814
- var QtiVariableDeclaration = class extends LitElement29 {
8483
+ var QtiVariableDeclaration = class extends LitElement27 {
8815
8484
  render() {
8816
- return html48`<slot></slot>`;
8485
+ return html47`<slot></slot>`;
8817
8486
  }
8818
8487
  defaultValues(cardinality) {
8819
8488
  const htmlValues = Array.from(this.querySelectorAll("qti-default-value > qti-value"));
@@ -8839,7 +8508,7 @@ var QtiOutcomeDeclaration = class extends QtiVariableDeclaration {
8839
8508
  }
8840
8509
  render() {
8841
8510
  const value = this.itemContext?.variables.find((v) => v.identifier === this.identifier)?.value;
8842
- return html49`${JSON.stringify(value, null, 2)}`;
8511
+ return html48`${JSON.stringify(value, null, 2)}`;
8843
8512
  }
8844
8513
  get interpolationTable() {
8845
8514
  const table = this.querySelector("qti-interpolation-table");
@@ -8887,40 +8556,40 @@ var QtiOutcomeDeclaration = class extends QtiVariableDeclaration {
8887
8556
  }
8888
8557
  };
8889
8558
  QtiOutcomeDeclaration.styles = [
8890
- css37`
8559
+ css36`
8891
8560
  :host {
8892
8561
  display: none;
8893
8562
  }
8894
8563
  `
8895
8564
  ];
8896
8565
  __decorateClass([
8897
- property41({ type: String, attribute: "base-type" })
8566
+ property40({ type: String, attribute: "base-type" })
8898
8567
  ], QtiOutcomeDeclaration.prototype, "baseType", 2);
8899
8568
  __decorateClass([
8900
- property41({ type: String, attribute: "external-scored" })
8569
+ property40({ type: String, attribute: "external-scored" })
8901
8570
  ], QtiOutcomeDeclaration.prototype, "externalScored", 2);
8902
8571
  __decorateClass([
8903
- property41({ type: String })
8572
+ property40({ type: String })
8904
8573
  ], QtiOutcomeDeclaration.prototype, "identifier", 2);
8905
8574
  __decorateClass([
8906
- property41({ type: String })
8575
+ property40({ type: String })
8907
8576
  ], QtiOutcomeDeclaration.prototype, "cardinality", 2);
8908
8577
  __decorateClass([
8909
- consume10({ context: itemContext, subscribe: true }),
8910
- state18()
8578
+ consume8({ context: itemContext, subscribe: true }),
8579
+ state16()
8911
8580
  ], QtiOutcomeDeclaration.prototype, "itemContext", 2);
8912
8581
  QtiOutcomeDeclaration = __decorateClass([
8913
8582
  customElement48("qti-outcome-declaration")
8914
8583
  ], QtiOutcomeDeclaration);
8915
8584
 
8916
8585
  // src/lib/qti-components/qti-variable-declaration/qti-response-declaration/qti-response-declaration.ts
8917
- import { consume as consume11 } from "@lit/context";
8918
- import { css as css38, html as html50 } from "lit";
8919
- import { customElement as customElement49, property as property42, state as state19 } from "lit/decorators.js";
8586
+ import { consume as consume9 } from "@lit/context";
8587
+ import { css as css37, html as html49 } from "lit";
8588
+ import { customElement as customElement49, property as property41, state as state17 } from "lit/decorators.js";
8920
8589
  var QtiResponseDeclaration = class extends QtiVariableDeclaration {
8921
8590
  render() {
8922
8591
  const value = this.itemContext?.variables.find((v) => v.identifier === this.identifier)?.value;
8923
- return html50`${JSON.stringify(value, null, 2)}`;
8592
+ return html49`${JSON.stringify(value, null, 2)}`;
8924
8593
  }
8925
8594
  connectedCallback() {
8926
8595
  super.connectedCallback();
@@ -9002,24 +8671,24 @@ var QtiResponseDeclaration = class extends QtiVariableDeclaration {
9002
8671
  }
9003
8672
  };
9004
8673
  QtiResponseDeclaration.styles = [
9005
- css38`
8674
+ css37`
9006
8675
  :host {
9007
8676
  display: none;
9008
8677
  }
9009
8678
  `
9010
8679
  ];
9011
8680
  __decorateClass([
9012
- property42({ type: String, attribute: "base-type" })
8681
+ property41({ type: String, attribute: "base-type" })
9013
8682
  ], QtiResponseDeclaration.prototype, "baseType", 2);
9014
8683
  __decorateClass([
9015
- property42({ type: String })
8684
+ property41({ type: String })
9016
8685
  ], QtiResponseDeclaration.prototype, "identifier", 2);
9017
8686
  __decorateClass([
9018
- property42({ type: String })
8687
+ property41({ type: String })
9019
8688
  ], QtiResponseDeclaration.prototype, "cardinality", 2);
9020
8689
  __decorateClass([
9021
- consume11({ context: itemContext, subscribe: true }),
9022
- state19()
8690
+ consume9({ context: itemContext, subscribe: true }),
8691
+ state17()
9023
8692
  ], QtiResponseDeclaration.prototype, "itemContext", 2);
9024
8693
  QtiResponseDeclaration = __decorateClass([
9025
8694
  customElement49("qti-response-declaration")
@@ -9123,4 +8792,4 @@ export {
9123
8792
  QtiOutcomeDeclaration,
9124
8793
  QtiResponseDeclaration
9125
8794
  };
9126
- //# sourceMappingURL=chunk-LN74Z5QM.js.map
8795
+ //# sourceMappingURL=chunk-7RW7LCEJ.js.map