eat-js-sdk 0.0.57 → 0.0.58

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.
@@ -319,89 +319,6 @@
319
319
  function custom_event(type, detail, { bubbles = false, cancelable = false } = {}) {
320
320
  return new CustomEvent(type, { detail, bubbles, cancelable });
321
321
  }
322
- var HtmlTag = class {
323
- /**
324
- * @private
325
- * @default false
326
- */
327
- is_svg = false;
328
- /** parent for creating node */
329
- e = void 0;
330
- /** html tag nodes */
331
- n = void 0;
332
- /** target */
333
- t = void 0;
334
- /** anchor */
335
- a = void 0;
336
- constructor(is_svg = false) {
337
- this.is_svg = is_svg;
338
- this.e = this.n = null;
339
- }
340
- /**
341
- * @param {string} html
342
- * @returns {void}
343
- */
344
- c(html) {
345
- this.h(html);
346
- }
347
- /**
348
- * @param {string} html
349
- * @param {HTMLElement | SVGElement} target
350
- * @param {HTMLElement | SVGElement} anchor
351
- * @returns {void}
352
- */
353
- m(html, target, anchor = null) {
354
- if (!this.e) {
355
- if (this.is_svg)
356
- this.e = svg_element(
357
- /** @type {keyof SVGElementTagNameMap} */
358
- target.nodeName
359
- );
360
- else
361
- this.e = element(
362
- /** @type {keyof HTMLElementTagNameMap} */
363
- target.nodeType === 11 ? "TEMPLATE" : target.nodeName
364
- );
365
- this.t = target.tagName !== "TEMPLATE" ? target : (
366
- /** @type {HTMLTemplateElement} */
367
- target.content
368
- );
369
- this.c(html);
370
- }
371
- this.i(anchor);
372
- }
373
- /**
374
- * @param {string} html
375
- * @returns {void}
376
- */
377
- h(html) {
378
- this.e.innerHTML = html;
379
- this.n = Array.from(
380
- this.e.nodeName === "TEMPLATE" ? this.e.content.childNodes : this.e.childNodes
381
- );
382
- }
383
- /**
384
- * @returns {void} */
385
- i(anchor) {
386
- for (let i = 0; i < this.n.length; i += 1) {
387
- insert(this.t, this.n[i], anchor);
388
- }
389
- }
390
- /**
391
- * @param {string} html
392
- * @returns {void}
393
- */
394
- p(html) {
395
- this.d();
396
- this.h(html);
397
- this.i(this.a);
398
- }
399
- /**
400
- * @returns {void} */
401
- d() {
402
- this.n.forEach(detach);
403
- }
404
- };
405
322
  function get_custom_elements_slots(element2) {
406
323
  const result = {};
407
324
  element2.childNodes.forEach(
@@ -708,7 +625,7 @@
708
625
  }
709
626
  component.$$.dirty[i / 31 | 0] |= 1 << i % 31;
710
627
  }
711
- function init(component, options, instance13, create_fragment26, not_equal, props, append_styles2 = null, dirty = [-1]) {
628
+ function init(component, options, instance14, create_fragment27, not_equal, props, append_styles2 = null, dirty = [-1]) {
712
629
  const parent_component = current_component;
713
630
  set_current_component(component);
714
631
  const $$ = component.$$ = {
@@ -734,7 +651,7 @@
734
651
  };
735
652
  append_styles2 && append_styles2($$.root);
736
653
  let ready = false;
737
- $$.ctx = instance13 ? instance13(component, options.props || {}, (i, ret, ...rest) => {
654
+ $$.ctx = instance14 ? instance14(component, options.props || {}, (i, ret, ...rest) => {
738
655
  const value = rest.length ? rest[0] : ret;
739
656
  if ($$.ctx && not_equal($$.ctx[i], $$.ctx[i] = value)) {
740
657
  if (!$$.skip_bound && $$.bound[i])
@@ -747,7 +664,7 @@
747
664
  $$.update();
748
665
  ready = true;
749
666
  run_all($$.before_update);
750
- $$.fragment = create_fragment26 ? create_fragment26($$.ctx) : false;
667
+ $$.fragment = create_fragment27 ? create_fragment27($$.ctx) : false;
751
668
  if (options.target) {
752
669
  if (options.hydrate) {
753
670
  start_hydrating();
@@ -1154,6 +1071,161 @@
1154
1071
  var useRemoveDiacritics = (data) => data.normalize("NFD").replace(/[\u0300-\u036f]/g, "").replace(/\s+/g, " ");
1155
1072
  var useRemovePunctuation = (data) => data.replace(/[^\p{L}\p{M}\s\d]/gu, "").replace(/\s+/g, " ");
1156
1073
 
1074
+ // src/lib/components/common/CommonStringToHtml.svelte
1075
+ function create_if_block(ctx) {
1076
+ let div;
1077
+ return {
1078
+ c() {
1079
+ div = element("div");
1080
+ attr(
1081
+ div,
1082
+ "class",
1083
+ /*otherClass*/
1084
+ ctx[1]
1085
+ );
1086
+ attr(
1087
+ div,
1088
+ "aria-hidden",
1089
+ /*ariaHidden*/
1090
+ ctx[2]
1091
+ );
1092
+ },
1093
+ m(target, anchor) {
1094
+ insert(target, div, anchor);
1095
+ div.innerHTML = /*htmlString*/
1096
+ ctx[0];
1097
+ },
1098
+ p(ctx2, dirty) {
1099
+ if (dirty & /*htmlString*/
1100
+ 1)
1101
+ div.innerHTML = /*htmlString*/
1102
+ ctx2[0];
1103
+ ;
1104
+ if (dirty & /*otherClass*/
1105
+ 2) {
1106
+ attr(
1107
+ div,
1108
+ "class",
1109
+ /*otherClass*/
1110
+ ctx2[1]
1111
+ );
1112
+ }
1113
+ if (dirty & /*ariaHidden*/
1114
+ 4) {
1115
+ attr(
1116
+ div,
1117
+ "aria-hidden",
1118
+ /*ariaHidden*/
1119
+ ctx2[2]
1120
+ );
1121
+ }
1122
+ },
1123
+ d(detaching) {
1124
+ if (detaching) {
1125
+ detach(div);
1126
+ }
1127
+ }
1128
+ };
1129
+ }
1130
+ function create_fragment(ctx) {
1131
+ let if_block_anchor;
1132
+ let if_block = (
1133
+ /*htmlString*/
1134
+ ctx[0] && create_if_block(ctx)
1135
+ );
1136
+ return {
1137
+ c() {
1138
+ if (if_block)
1139
+ if_block.c();
1140
+ if_block_anchor = empty();
1141
+ },
1142
+ m(target, anchor) {
1143
+ if (if_block)
1144
+ if_block.m(target, anchor);
1145
+ insert(target, if_block_anchor, anchor);
1146
+ },
1147
+ p(ctx2, [dirty]) {
1148
+ if (
1149
+ /*htmlString*/
1150
+ ctx2[0]
1151
+ ) {
1152
+ if (if_block) {
1153
+ if_block.p(ctx2, dirty);
1154
+ } else {
1155
+ if_block = create_if_block(ctx2);
1156
+ if_block.c();
1157
+ if_block.m(if_block_anchor.parentNode, if_block_anchor);
1158
+ }
1159
+ } else if (if_block) {
1160
+ if_block.d(1);
1161
+ if_block = null;
1162
+ }
1163
+ },
1164
+ i: noop,
1165
+ o: noop,
1166
+ d(detaching) {
1167
+ if (detaching) {
1168
+ detach(if_block_anchor);
1169
+ }
1170
+ if (if_block)
1171
+ if_block.d(detaching);
1172
+ }
1173
+ };
1174
+ }
1175
+ function instance($$self, $$props, $$invalidate) {
1176
+ let { htmlString = "" } = $$props;
1177
+ let { otherClass = "" } = $$props;
1178
+ let { ariaHidden = false } = $$props;
1179
+ htmlString = htmlString.replace(/<p><\/p>/g, "");
1180
+ $$self.$$set = ($$props2) => {
1181
+ if ("htmlString" in $$props2)
1182
+ $$invalidate(0, htmlString = $$props2.htmlString);
1183
+ if ("otherClass" in $$props2)
1184
+ $$invalidate(1, otherClass = $$props2.otherClass);
1185
+ if ("ariaHidden" in $$props2)
1186
+ $$invalidate(2, ariaHidden = $$props2.ariaHidden);
1187
+ };
1188
+ return [htmlString, otherClass, ariaHidden];
1189
+ }
1190
+ var CommonStringToHtml = class extends SvelteComponent {
1191
+ constructor(options) {
1192
+ super();
1193
+ init(this, options, instance, create_fragment, safe_not_equal, {
1194
+ htmlString: 0,
1195
+ otherClass: 1,
1196
+ ariaHidden: 2
1197
+ });
1198
+ }
1199
+ get htmlString() {
1200
+ return this.$$.ctx[0];
1201
+ }
1202
+ set htmlString(htmlString) {
1203
+ this.$$set({ htmlString });
1204
+ flush();
1205
+ }
1206
+ get otherClass() {
1207
+ return this.$$.ctx[1];
1208
+ }
1209
+ set otherClass(otherClass) {
1210
+ this.$$set({ otherClass });
1211
+ flush();
1212
+ }
1213
+ get ariaHidden() {
1214
+ return this.$$.ctx[2];
1215
+ }
1216
+ set ariaHidden(ariaHidden) {
1217
+ this.$$set({ ariaHidden });
1218
+ flush();
1219
+ }
1220
+ };
1221
+ customElements.define("common-string-to-html", create_custom_element(CommonStringToHtml, { "htmlString": {}, "otherClass": {}, "ariaHidden": { "type": "Boolean" } }, [], [], true));
1222
+ var CommonStringToHtml_default = CommonStringToHtml;
1223
+
1224
+ // src/lib/composables/usePrompt.ts
1225
+ var useRemoveRichTextHtmlTags = (htmlString) => {
1226
+ return htmlString.replace(/<\/p>/g, " ").replace(/<[^>]*>/g, "").trim();
1227
+ };
1228
+
1157
1229
  // src/lib/constants/index.ts
1158
1230
  var INTERACTION_TYPE_MCQ = "multipleChoiceInteraction";
1159
1231
  var INTERACTION_TYPE_TYPEIN = "typeInInteraction";
@@ -1167,10 +1239,14 @@
1167
1239
  var ANSWER_MISSED = "missed";
1168
1240
  var ASSET_ALIGNMENT_DEFAULT = "default";
1169
1241
  var ASSET_ALIGNMENT_INLINE = "inline";
1242
+ var STIMULUS_TEXT_ALIGNMENT_DEFAULT = "default";
1243
+ var STIMULUS_TEXT_ALIGNMENT_INLINE = "inline";
1244
+ var STIMULUS_LAYOUT_ORDER_MEDIA_FIRST = "media first";
1245
+ var STIMULUS_LAYOUT_ORDER_TEXT_FIRST = "text first";
1170
1246
  var ASSET_TYPE_IMAGE = "image";
1171
1247
 
1172
1248
  // src/lib/components/common/CommonMedia.svelte
1173
- function create_if_block(ctx) {
1249
+ function create_if_block2(ctx) {
1174
1250
  let div;
1175
1251
  let if_block = (
1176
1252
  /*fileType*/
@@ -1321,11 +1397,11 @@
1321
1397
  }
1322
1398
  };
1323
1399
  }
1324
- function create_fragment(ctx) {
1400
+ function create_fragment2(ctx) {
1325
1401
  let if_block_anchor;
1326
1402
  let if_block = (
1327
1403
  /*fileUrl*/
1328
- ctx[1] && create_if_block(ctx)
1404
+ ctx[1] && create_if_block2(ctx)
1329
1405
  );
1330
1406
  return {
1331
1407
  c() {
@@ -1346,7 +1422,7 @@
1346
1422
  if (if_block) {
1347
1423
  if_block.p(ctx2, dirty);
1348
1424
  } else {
1349
- if_block = create_if_block(ctx2);
1425
+ if_block = create_if_block2(ctx2);
1350
1426
  if_block.c();
1351
1427
  if_block.m(if_block_anchor.parentNode, if_block_anchor);
1352
1428
  }
@@ -1366,7 +1442,7 @@
1366
1442
  }
1367
1443
  };
1368
1444
  }
1369
- function instance($$self, $$props, $$invalidate) {
1445
+ function instance2($$self, $$props, $$invalidate) {
1370
1446
  let { fileType } = $$props;
1371
1447
  let { fileUrl } = $$props;
1372
1448
  let { altText = "" } = $$props;
@@ -1386,7 +1462,7 @@
1386
1462
  var CommonMedia = class extends SvelteComponent {
1387
1463
  constructor(options) {
1388
1464
  super();
1389
- init(this, options, instance, create_fragment, safe_not_equal, {
1465
+ init(this, options, instance2, create_fragment2, safe_not_equal, {
1390
1466
  fileType: 0,
1391
1467
  fileUrl: 1,
1392
1468
  altText: 2,
@@ -1426,148 +1502,96 @@
1426
1502
  var CommonMedia_default = CommonMedia;
1427
1503
 
1428
1504
  // src/lib/components/prompt/template/PromptBody.svelte
1429
- function create_if_block_4(ctx) {
1430
- let html_tag;
1431
- let raw_value = `<${/*promptRubricHeaderElem*/
1432
- ctx[9]} class="item-heading mb-4">${/*rubric*/
1433
- ctx[0]}</${/*promptRubricHeaderElem*/
1434
- ctx[9]}>`;
1435
- let html_anchor;
1505
+ function create_if_block_11(ctx) {
1506
+ let commonstringtohtml;
1507
+ let current;
1508
+ commonstringtohtml = new CommonStringToHtml_default({
1509
+ props: {
1510
+ htmlString: (
1511
+ /*rubric*/
1512
+ ctx[0]
1513
+ ),
1514
+ otherClass: "item-heading mb-4"
1515
+ }
1516
+ });
1436
1517
  return {
1437
1518
  c() {
1438
- html_tag = new HtmlTag(false);
1439
- html_anchor = empty();
1440
- html_tag.a = html_anchor;
1519
+ create_component(commonstringtohtml.$$.fragment);
1441
1520
  },
1442
1521
  m(target, anchor) {
1443
- html_tag.m(raw_value, target, anchor);
1444
- insert(target, html_anchor, anchor);
1522
+ mount_component(commonstringtohtml, target, anchor);
1523
+ current = true;
1445
1524
  },
1446
1525
  p(ctx2, dirty) {
1526
+ const commonstringtohtml_changes = {};
1447
1527
  if (dirty & /*rubric*/
1448
- 1 && raw_value !== (raw_value = `<${/*promptRubricHeaderElem*/
1449
- ctx2[9]} class="item-heading mb-4">${/*rubric*/
1450
- ctx2[0]}</${/*promptRubricHeaderElem*/
1451
- ctx2[9]}>`))
1452
- html_tag.p(raw_value);
1528
+ 1)
1529
+ commonstringtohtml_changes.htmlString = /*rubric*/
1530
+ ctx2[0];
1531
+ commonstringtohtml.$set(commonstringtohtml_changes);
1532
+ },
1533
+ i(local) {
1534
+ if (current)
1535
+ return;
1536
+ transition_in(commonstringtohtml.$$.fragment, local);
1537
+ current = true;
1538
+ },
1539
+ o(local) {
1540
+ transition_out(commonstringtohtml.$$.fragment, local);
1541
+ current = false;
1453
1542
  },
1454
1543
  d(detaching) {
1455
- if (detaching) {
1456
- detach(html_anchor);
1457
- html_tag.d();
1458
- }
1544
+ destroy_component(commonstringtohtml, detaching);
1459
1545
  }
1460
1546
  };
1461
1547
  }
1462
- function create_if_block_3(ctx) {
1463
- let div;
1464
- let commonmedia;
1548
+ function create_if_block_10(ctx) {
1549
+ let commonstringtohtml;
1465
1550
  let current;
1466
- commonmedia = new CommonMedia_default({
1551
+ commonstringtohtml = new CommonStringToHtml_default({
1467
1552
  props: {
1468
- fileType: (
1469
- /*fileType*/
1470
- ctx[3]
1471
- ),
1472
- fileUrl: (
1473
- /*fileUrl*/
1474
- ctx[2]
1475
- ),
1476
- altText: (
1477
- /*altText*/
1478
- ctx[5]
1553
+ htmlString: (
1554
+ /*stimulusText*/
1555
+ ctx[7]
1479
1556
  ),
1480
- fileCaption: (
1481
- /*caption*/
1482
- ctx[6]
1483
- )
1557
+ otherClass: "text-stimulus py-2"
1484
1558
  }
1485
1559
  });
1486
1560
  return {
1487
1561
  c() {
1488
- div = element("div");
1489
- create_component(commonmedia.$$.fragment);
1490
- attr(div, "class", "pt-6 pb-10");
1562
+ create_component(commonstringtohtml.$$.fragment);
1491
1563
  },
1492
1564
  m(target, anchor) {
1493
- insert(target, div, anchor);
1494
- mount_component(commonmedia, div, null);
1565
+ mount_component(commonstringtohtml, target, anchor);
1495
1566
  current = true;
1496
1567
  },
1497
1568
  p(ctx2, dirty) {
1498
- const commonmedia_changes = {};
1499
- if (dirty & /*fileType*/
1500
- 8)
1501
- commonmedia_changes.fileType = /*fileType*/
1502
- ctx2[3];
1503
- if (dirty & /*fileUrl*/
1504
- 4)
1505
- commonmedia_changes.fileUrl = /*fileUrl*/
1506
- ctx2[2];
1507
- if (dirty & /*altText*/
1508
- 32)
1509
- commonmedia_changes.altText = /*altText*/
1510
- ctx2[5];
1511
- if (dirty & /*caption*/
1512
- 64)
1513
- commonmedia_changes.fileCaption = /*caption*/
1514
- ctx2[6];
1515
- commonmedia.$set(commonmedia_changes);
1569
+ const commonstringtohtml_changes = {};
1570
+ if (dirty & /*stimulusText*/
1571
+ 128)
1572
+ commonstringtohtml_changes.htmlString = /*stimulusText*/
1573
+ ctx2[7];
1574
+ commonstringtohtml.$set(commonstringtohtml_changes);
1516
1575
  },
1517
1576
  i(local) {
1518
1577
  if (current)
1519
1578
  return;
1520
- transition_in(commonmedia.$$.fragment, local);
1579
+ transition_in(commonstringtohtml.$$.fragment, local);
1521
1580
  current = true;
1522
1581
  },
1523
1582
  o(local) {
1524
- transition_out(commonmedia.$$.fragment, local);
1583
+ transition_out(commonstringtohtml.$$.fragment, local);
1525
1584
  current = false;
1526
1585
  },
1527
1586
  d(detaching) {
1528
- if (detaching) {
1529
- detach(div);
1530
- }
1531
- destroy_component(commonmedia);
1532
- }
1533
- };
1534
- }
1535
- function create_if_block_22(ctx) {
1536
- let html_tag;
1537
- let raw_value = `<${/*promptRubricHeaderElem*/
1538
- ctx[9]} class="item-heading font-semibold">${/*prompt*/
1539
- ctx[1]}</${/*promptRubricHeaderElem*/
1540
- ctx[9]}>`;
1541
- let html_anchor;
1542
- return {
1543
- c() {
1544
- html_tag = new HtmlTag(false);
1545
- html_anchor = empty();
1546
- html_tag.a = html_anchor;
1547
- },
1548
- m(target, anchor) {
1549
- html_tag.m(raw_value, target, anchor);
1550
- insert(target, html_anchor, anchor);
1551
- },
1552
- p(ctx2, dirty) {
1553
- if (dirty & /*prompt*/
1554
- 2 && raw_value !== (raw_value = `<${/*promptRubricHeaderElem*/
1555
- ctx2[9]} class="item-heading font-semibold">${/*prompt*/
1556
- ctx2[1]}</${/*promptRubricHeaderElem*/
1557
- ctx2[9]}>`))
1558
- html_tag.p(raw_value);
1559
- },
1560
- d(detaching) {
1561
- if (detaching) {
1562
- detach(html_anchor);
1563
- html_tag.d();
1564
- }
1587
+ destroy_component(commonstringtohtml, detaching);
1565
1588
  }
1566
1589
  };
1567
1590
  }
1568
- function create_if_block_12(ctx) {
1591
+ function create_if_block_9(ctx) {
1569
1592
  let div;
1570
1593
  let commonmedia;
1594
+ let div_class_value;
1571
1595
  let current;
1572
1596
  commonmedia = new CommonMedia_default({
1573
1597
  props: {
@@ -1593,7 +1617,11 @@
1593
1617
  c() {
1594
1618
  div = element("div");
1595
1619
  create_component(commonmedia.$$.fragment);
1596
- attr(div, "class", "pt-6 lg:hidden");
1620
+ attr(div, "class", div_class_value = /*showTextAlignmentInline*/
1621
+ (ctx[11] && /*showStimulusLayoutMediaFirst*/
1622
+ ctx[13] ? "pb-2" : "pb-10") + " " + /*showTextAlignmentInline*/
1623
+ (ctx[11] && /*showStimulusLayoutTextFirst*/
1624
+ ctx[14] ? "" : "pt-6"));
1597
1625
  },
1598
1626
  m(target, anchor) {
1599
1627
  insert(target, div, anchor);
@@ -1638,24 +1666,153 @@
1638
1666
  }
1639
1667
  };
1640
1668
  }
1641
- function create_if_block2(ctx) {
1642
- let div1;
1643
- let div0;
1644
- let commonmedia;
1669
+ function create_if_block_8(ctx) {
1670
+ let commonstringtohtml;
1645
1671
  let current;
1646
- commonmedia = new CommonMedia_default({
1672
+ commonstringtohtml = new CommonStringToHtml_default({
1647
1673
  props: {
1648
- fileType: (
1649
- /*fileType*/
1650
- ctx[3]
1651
- ),
1652
- fileUrl: (
1653
- /*fileUrl*/
1654
- ctx[2]
1674
+ htmlString: (
1675
+ /*stimulusText*/
1676
+ ctx[7]
1655
1677
  ),
1656
- altText: (
1657
- /*altText*/
1658
- ctx[5]
1678
+ otherClass: "text-stimulus py-2"
1679
+ }
1680
+ });
1681
+ return {
1682
+ c() {
1683
+ create_component(commonstringtohtml.$$.fragment);
1684
+ },
1685
+ m(target, anchor) {
1686
+ mount_component(commonstringtohtml, target, anchor);
1687
+ current = true;
1688
+ },
1689
+ p(ctx2, dirty) {
1690
+ const commonstringtohtml_changes = {};
1691
+ if (dirty & /*stimulusText*/
1692
+ 128)
1693
+ commonstringtohtml_changes.htmlString = /*stimulusText*/
1694
+ ctx2[7];
1695
+ commonstringtohtml.$set(commonstringtohtml_changes);
1696
+ },
1697
+ i(local) {
1698
+ if (current)
1699
+ return;
1700
+ transition_in(commonstringtohtml.$$.fragment, local);
1701
+ current = true;
1702
+ },
1703
+ o(local) {
1704
+ transition_out(commonstringtohtml.$$.fragment, local);
1705
+ current = false;
1706
+ },
1707
+ d(detaching) {
1708
+ destroy_component(commonstringtohtml, detaching);
1709
+ }
1710
+ };
1711
+ }
1712
+ function create_if_block_7(ctx) {
1713
+ let commonstringtohtml;
1714
+ let current;
1715
+ commonstringtohtml = new CommonStringToHtml_default({
1716
+ props: {
1717
+ htmlString: (
1718
+ /*prompt*/
1719
+ ctx[1]
1720
+ ),
1721
+ otherClass: "item-heading font-semibold"
1722
+ }
1723
+ });
1724
+ return {
1725
+ c() {
1726
+ create_component(commonstringtohtml.$$.fragment);
1727
+ },
1728
+ m(target, anchor) {
1729
+ mount_component(commonstringtohtml, target, anchor);
1730
+ current = true;
1731
+ },
1732
+ p(ctx2, dirty) {
1733
+ const commonstringtohtml_changes = {};
1734
+ if (dirty & /*prompt*/
1735
+ 2)
1736
+ commonstringtohtml_changes.htmlString = /*prompt*/
1737
+ ctx2[1];
1738
+ commonstringtohtml.$set(commonstringtohtml_changes);
1739
+ },
1740
+ i(local) {
1741
+ if (current)
1742
+ return;
1743
+ transition_in(commonstringtohtml.$$.fragment, local);
1744
+ current = true;
1745
+ },
1746
+ o(local) {
1747
+ transition_out(commonstringtohtml.$$.fragment, local);
1748
+ current = false;
1749
+ },
1750
+ d(detaching) {
1751
+ destroy_component(commonstringtohtml, detaching);
1752
+ }
1753
+ };
1754
+ }
1755
+ function create_if_block_6(ctx) {
1756
+ let commonstringtohtml;
1757
+ let current;
1758
+ commonstringtohtml = new CommonStringToHtml_default({
1759
+ props: {
1760
+ htmlString: (
1761
+ /*stimulusText*/
1762
+ ctx[7]
1763
+ ),
1764
+ otherClass: "text-stimulus pb-0 lg:hidden"
1765
+ }
1766
+ });
1767
+ return {
1768
+ c() {
1769
+ create_component(commonstringtohtml.$$.fragment);
1770
+ },
1771
+ m(target, anchor) {
1772
+ mount_component(commonstringtohtml, target, anchor);
1773
+ current = true;
1774
+ },
1775
+ p(ctx2, dirty) {
1776
+ const commonstringtohtml_changes = {};
1777
+ if (dirty & /*stimulusText*/
1778
+ 128)
1779
+ commonstringtohtml_changes.htmlString = /*stimulusText*/
1780
+ ctx2[7];
1781
+ commonstringtohtml.$set(commonstringtohtml_changes);
1782
+ },
1783
+ i(local) {
1784
+ if (current)
1785
+ return;
1786
+ transition_in(commonstringtohtml.$$.fragment, local);
1787
+ current = true;
1788
+ },
1789
+ o(local) {
1790
+ transition_out(commonstringtohtml.$$.fragment, local);
1791
+ current = false;
1792
+ },
1793
+ d(detaching) {
1794
+ destroy_component(commonstringtohtml, detaching);
1795
+ }
1796
+ };
1797
+ }
1798
+ function create_if_block_5(ctx) {
1799
+ let div;
1800
+ let commonmedia;
1801
+ let div_class_value;
1802
+ let current;
1803
+ commonmedia = new CommonMedia_default({
1804
+ props: {
1805
+ fileType: (
1806
+ /*fileType*/
1807
+ ctx[3]
1808
+ ),
1809
+ fileUrl: (
1810
+ /*fileUrl*/
1811
+ ctx[2]
1812
+ ),
1813
+ altText: (
1814
+ /*altText*/
1815
+ ctx[5]
1659
1816
  ),
1660
1817
  fileCaption: (
1661
1818
  /*caption*/
@@ -1663,18 +1820,266 @@
1663
1820
  )
1664
1821
  }
1665
1822
  });
1823
+ return {
1824
+ c() {
1825
+ div = element("div");
1826
+ create_component(commonmedia.$$.fragment);
1827
+ attr(div, "class", div_class_value = "lg:hidden " + /*showTextAlignmentDefault*/
1828
+ (ctx[10] && /*showStimulusLayoutTextFirst*/
1829
+ ctx[14] ? "pt-4" : "pt-6"));
1830
+ },
1831
+ m(target, anchor) {
1832
+ insert(target, div, anchor);
1833
+ mount_component(commonmedia, div, null);
1834
+ current = true;
1835
+ },
1836
+ p(ctx2, dirty) {
1837
+ const commonmedia_changes = {};
1838
+ if (dirty & /*fileType*/
1839
+ 8)
1840
+ commonmedia_changes.fileType = /*fileType*/
1841
+ ctx2[3];
1842
+ if (dirty & /*fileUrl*/
1843
+ 4)
1844
+ commonmedia_changes.fileUrl = /*fileUrl*/
1845
+ ctx2[2];
1846
+ if (dirty & /*altText*/
1847
+ 32)
1848
+ commonmedia_changes.altText = /*altText*/
1849
+ ctx2[5];
1850
+ if (dirty & /*caption*/
1851
+ 64)
1852
+ commonmedia_changes.fileCaption = /*caption*/
1853
+ ctx2[6];
1854
+ commonmedia.$set(commonmedia_changes);
1855
+ },
1856
+ i(local) {
1857
+ if (current)
1858
+ return;
1859
+ transition_in(commonmedia.$$.fragment, local);
1860
+ current = true;
1861
+ },
1862
+ o(local) {
1863
+ transition_out(commonmedia.$$.fragment, local);
1864
+ current = false;
1865
+ },
1866
+ d(detaching) {
1867
+ if (detaching) {
1868
+ detach(div);
1869
+ }
1870
+ destroy_component(commonmedia);
1871
+ }
1872
+ };
1873
+ }
1874
+ function create_if_block_4(ctx) {
1875
+ let commonstringtohtml;
1876
+ let current;
1877
+ commonstringtohtml = new CommonStringToHtml_default({
1878
+ props: {
1879
+ htmlString: (
1880
+ /*stimulusText*/
1881
+ ctx[7]
1882
+ ),
1883
+ otherClass: "text-stimulus pb-0 lg:hidden"
1884
+ }
1885
+ });
1886
+ return {
1887
+ c() {
1888
+ create_component(commonstringtohtml.$$.fragment);
1889
+ },
1890
+ m(target, anchor) {
1891
+ mount_component(commonstringtohtml, target, anchor);
1892
+ current = true;
1893
+ },
1894
+ p(ctx2, dirty) {
1895
+ const commonstringtohtml_changes = {};
1896
+ if (dirty & /*stimulusText*/
1897
+ 128)
1898
+ commonstringtohtml_changes.htmlString = /*stimulusText*/
1899
+ ctx2[7];
1900
+ commonstringtohtml.$set(commonstringtohtml_changes);
1901
+ },
1902
+ i(local) {
1903
+ if (current)
1904
+ return;
1905
+ transition_in(commonstringtohtml.$$.fragment, local);
1906
+ current = true;
1907
+ },
1908
+ o(local) {
1909
+ transition_out(commonstringtohtml.$$.fragment, local);
1910
+ current = false;
1911
+ },
1912
+ d(detaching) {
1913
+ destroy_component(commonstringtohtml, detaching);
1914
+ }
1915
+ };
1916
+ }
1917
+ function create_if_block3(ctx) {
1918
+ let div1;
1919
+ let div0;
1920
+ let t0;
1921
+ let t1;
1922
+ let current;
1923
+ let if_block0 = (
1924
+ /*showTextAlignmentDefault*/
1925
+ ctx[10] && /*showStimulusLayoutTextFirst*/
1926
+ ctx[14] && create_if_block_3(ctx)
1927
+ );
1928
+ let if_block1 = (
1929
+ /*showAssetAlignmentDefault*/
1930
+ ctx[9] && create_if_block_22(ctx)
1931
+ );
1932
+ let if_block2 = (
1933
+ /*showTextAlignmentDefault*/
1934
+ ctx[10] && /*showStimulusLayoutMediaFirst*/
1935
+ ctx[13] && create_if_block_12(ctx)
1936
+ );
1666
1937
  return {
1667
1938
  c() {
1668
1939
  div1 = element("div");
1669
1940
  div0 = element("div");
1670
- create_component(commonmedia.$$.fragment);
1671
- attr(div0, "class", "w-full");
1941
+ if (if_block0)
1942
+ if_block0.c();
1943
+ t0 = space();
1944
+ if (if_block1)
1945
+ if_block1.c();
1946
+ t1 = space();
1947
+ if (if_block2)
1948
+ if_block2.c();
1949
+ attr(div0, "class", "w-full flex flex-col");
1672
1950
  attr(div1, "class", "pl-24 w-2/4 hidden lg:flex lg:basis-1/2 lg:items-center lg:justify-between lg:grow");
1673
1951
  },
1674
1952
  m(target, anchor) {
1675
1953
  insert(target, div1, anchor);
1676
1954
  append(div1, div0);
1677
- mount_component(commonmedia, div0, null);
1955
+ if (if_block0)
1956
+ if_block0.m(div0, null);
1957
+ append(div0, t0);
1958
+ if (if_block1)
1959
+ if_block1.m(div0, null);
1960
+ append(div0, t1);
1961
+ if (if_block2)
1962
+ if_block2.m(div0, null);
1963
+ current = true;
1964
+ },
1965
+ p(ctx2, dirty) {
1966
+ if (
1967
+ /*showTextAlignmentDefault*/
1968
+ ctx2[10] && /*showStimulusLayoutTextFirst*/
1969
+ ctx2[14]
1970
+ )
1971
+ if_block0.p(ctx2, dirty);
1972
+ if (
1973
+ /*showAssetAlignmentDefault*/
1974
+ ctx2[9]
1975
+ )
1976
+ if_block1.p(ctx2, dirty);
1977
+ if (
1978
+ /*showTextAlignmentDefault*/
1979
+ ctx2[10] && /*showStimulusLayoutMediaFirst*/
1980
+ ctx2[13]
1981
+ )
1982
+ if_block2.p(ctx2, dirty);
1983
+ },
1984
+ i(local) {
1985
+ if (current)
1986
+ return;
1987
+ transition_in(if_block0);
1988
+ transition_in(if_block1);
1989
+ transition_in(if_block2);
1990
+ current = true;
1991
+ },
1992
+ o(local) {
1993
+ transition_out(if_block0);
1994
+ transition_out(if_block1);
1995
+ transition_out(if_block2);
1996
+ current = false;
1997
+ },
1998
+ d(detaching) {
1999
+ if (detaching) {
2000
+ detach(div1);
2001
+ }
2002
+ if (if_block0)
2003
+ if_block0.d();
2004
+ if (if_block1)
2005
+ if_block1.d();
2006
+ if (if_block2)
2007
+ if_block2.d();
2008
+ }
2009
+ };
2010
+ }
2011
+ function create_if_block_3(ctx) {
2012
+ let commonstringtohtml;
2013
+ let current;
2014
+ commonstringtohtml = new CommonStringToHtml_default({
2015
+ props: {
2016
+ htmlString: (
2017
+ /*stimulusText*/
2018
+ ctx[7]
2019
+ ),
2020
+ otherClass: "text-stimulus pt-0"
2021
+ }
2022
+ });
2023
+ return {
2024
+ c() {
2025
+ create_component(commonstringtohtml.$$.fragment);
2026
+ },
2027
+ m(target, anchor) {
2028
+ mount_component(commonstringtohtml, target, anchor);
2029
+ current = true;
2030
+ },
2031
+ p(ctx2, dirty) {
2032
+ const commonstringtohtml_changes = {};
2033
+ if (dirty & /*stimulusText*/
2034
+ 128)
2035
+ commonstringtohtml_changes.htmlString = /*stimulusText*/
2036
+ ctx2[7];
2037
+ commonstringtohtml.$set(commonstringtohtml_changes);
2038
+ },
2039
+ i(local) {
2040
+ if (current)
2041
+ return;
2042
+ transition_in(commonstringtohtml.$$.fragment, local);
2043
+ current = true;
2044
+ },
2045
+ o(local) {
2046
+ transition_out(commonstringtohtml.$$.fragment, local);
2047
+ current = false;
2048
+ },
2049
+ d(detaching) {
2050
+ destroy_component(commonstringtohtml, detaching);
2051
+ }
2052
+ };
2053
+ }
2054
+ function create_if_block_22(ctx) {
2055
+ let commonmedia;
2056
+ let current;
2057
+ commonmedia = new CommonMedia_default({
2058
+ props: {
2059
+ fileType: (
2060
+ /*fileType*/
2061
+ ctx[3]
2062
+ ),
2063
+ fileUrl: (
2064
+ /*fileUrl*/
2065
+ ctx[2]
2066
+ ),
2067
+ altText: (
2068
+ /*altText*/
2069
+ ctx[5]
2070
+ ),
2071
+ fileCaption: (
2072
+ /*caption*/
2073
+ ctx[6]
2074
+ )
2075
+ }
2076
+ });
2077
+ return {
2078
+ c() {
2079
+ create_component(commonmedia.$$.fragment);
2080
+ },
2081
+ m(target, anchor) {
2082
+ mount_component(commonmedia, target, anchor);
1678
2083
  current = true;
1679
2084
  },
1680
2085
  p(ctx2, dirty) {
@@ -1708,57 +2113,122 @@
1708
2113
  current = false;
1709
2114
  },
1710
2115
  d(detaching) {
1711
- if (detaching) {
1712
- detach(div1);
1713
- }
1714
- destroy_component(commonmedia);
2116
+ destroy_component(commonmedia, detaching);
1715
2117
  }
1716
2118
  };
1717
2119
  }
1718
- function create_fragment2(ctx) {
2120
+ function create_if_block_12(ctx) {
2121
+ let commonstringtohtml;
2122
+ let current;
2123
+ commonstringtohtml = new CommonStringToHtml_default({
2124
+ props: {
2125
+ htmlString: (
2126
+ /*stimulusText*/
2127
+ ctx[7]
2128
+ ),
2129
+ otherClass: "text-stimulus " + (!/*showAssetAlignmentDefault*/
2130
+ ctx[9] ? "pt-0" : "")
2131
+ }
2132
+ });
2133
+ return {
2134
+ c() {
2135
+ create_component(commonstringtohtml.$$.fragment);
2136
+ },
2137
+ m(target, anchor) {
2138
+ mount_component(commonstringtohtml, target, anchor);
2139
+ current = true;
2140
+ },
2141
+ p(ctx2, dirty) {
2142
+ const commonstringtohtml_changes = {};
2143
+ if (dirty & /*stimulusText*/
2144
+ 128)
2145
+ commonstringtohtml_changes.htmlString = /*stimulusText*/
2146
+ ctx2[7];
2147
+ commonstringtohtml.$set(commonstringtohtml_changes);
2148
+ },
2149
+ i(local) {
2150
+ if (current)
2151
+ return;
2152
+ transition_in(commonstringtohtml.$$.fragment, local);
2153
+ current = true;
2154
+ },
2155
+ o(local) {
2156
+ transition_out(commonstringtohtml.$$.fragment, local);
2157
+ current = false;
2158
+ },
2159
+ d(detaching) {
2160
+ destroy_component(commonstringtohtml, detaching);
2161
+ }
2162
+ };
2163
+ }
2164
+ function create_fragment3(ctx) {
1719
2165
  let div2;
1720
2166
  let div1;
1721
2167
  let t0;
1722
2168
  let t1;
1723
2169
  let t2;
1724
2170
  let t3;
1725
- let div0;
1726
2171
  let t4;
1727
- let div1_class_value;
1728
2172
  let t5;
2173
+ let t6;
2174
+ let t7;
2175
+ let div0;
2176
+ let t8;
2177
+ let div1_class_value;
2178
+ let t9;
1729
2179
  let div2_class_value;
1730
2180
  let current;
1731
2181
  let if_block0 = (
1732
2182
  /*rubric*/
1733
- ctx[0] && create_if_block_4(ctx)
2183
+ ctx[0] && create_if_block_11(ctx)
1734
2184
  );
1735
2185
  let if_block1 = (
1736
- /*showAsset*/
1737
- ctx[7] && /*fileAlignment*/
1738
- ctx[4] === ASSET_ALIGNMENT_INLINE && create_if_block_3(ctx)
2186
+ /*showTextAlignmentInline*/
2187
+ ctx[11] && /*showStimulusLayoutTextFirst*/
2188
+ ctx[14] && create_if_block_10(ctx)
1739
2189
  );
1740
2190
  let if_block2 = (
1741
- /*prompt*/
1742
- ctx[1] && create_if_block_22(ctx)
2191
+ /*showAsset*/
2192
+ ctx[8] && /*fileAlignment*/
2193
+ ctx[4] === ASSET_ALIGNMENT_INLINE && create_if_block_9(ctx)
1743
2194
  );
1744
2195
  let if_block3 = (
1745
- /*showAlignmentDefault*/
1746
- ctx[8] && create_if_block_12(ctx)
2196
+ /*showTextAlignmentInline*/
2197
+ ctx[11] && /*showStimulusLayoutMediaFirst*/
2198
+ ctx[13] && create_if_block_8(ctx)
2199
+ );
2200
+ let if_block4 = (
2201
+ /*prompt*/
2202
+ ctx[1] && create_if_block_7(ctx)
2203
+ );
2204
+ let if_block5 = (
2205
+ /*showTextAlignmentDefault*/
2206
+ ctx[10] && /*showStimulusLayoutTextFirst*/
2207
+ ctx[14] && create_if_block_6(ctx)
2208
+ );
2209
+ let if_block6 = (
2210
+ /*showAssetAlignmentDefault*/
2211
+ ctx[9] && create_if_block_5(ctx)
2212
+ );
2213
+ let if_block7 = (
2214
+ /*showTextAlignmentDefault*/
2215
+ ctx[10] && /*showStimulusLayoutMediaFirst*/
2216
+ ctx[13] && create_if_block_4(ctx)
1747
2217
  );
1748
2218
  const default_slot_template = (
1749
2219
  /*#slots*/
1750
- ctx[13].default
2220
+ ctx[18].default
1751
2221
  );
1752
2222
  const default_slot = create_slot(
1753
2223
  default_slot_template,
1754
2224
  ctx,
1755
2225
  /*$$scope*/
1756
- ctx[12],
2226
+ ctx[17],
1757
2227
  null
1758
2228
  );
1759
- let if_block4 = (
2229
+ let if_block8 = (
1760
2230
  /*showAlignmentDefault*/
1761
- ctx[8] && create_if_block2(ctx)
2231
+ ctx[12] && create_if_block3(ctx)
1762
2232
  );
1763
2233
  return {
1764
2234
  c() {
@@ -1776,18 +2246,30 @@
1776
2246
  if (if_block3)
1777
2247
  if_block3.c();
1778
2248
  t3 = space();
1779
- div0 = element("div");
2249
+ if (if_block4)
2250
+ if_block4.c();
1780
2251
  t4 = space();
2252
+ if (if_block5)
2253
+ if_block5.c();
2254
+ t5 = space();
2255
+ if (if_block6)
2256
+ if_block6.c();
2257
+ t6 = space();
2258
+ if (if_block7)
2259
+ if_block7.c();
2260
+ t7 = space();
2261
+ div0 = element("div");
2262
+ t8 = space();
1781
2263
  if (default_slot)
1782
2264
  default_slot.c();
1783
- t5 = space();
1784
- if (if_block4)
1785
- if_block4.c();
2265
+ t9 = space();
2266
+ if (if_block8)
2267
+ if_block8.c();
1786
2268
  attr(div0, "class", "divider my-6");
1787
2269
  attr(div1, "class", div1_class_value = "bg-transparent relative " + /*showAlignmentDefault*/
1788
- (ctx[8] ? "lg:basis-1/2" : ""));
2270
+ (ctx[12] ? "lg:basis-1/2 lg:max-w-[50%]" : ""));
1789
2271
  attr(div2, "class", div2_class_value = /*showAlignmentDefault*/
1790
- ctx[8] ? "lg:w-full lg:flex" : "");
2272
+ ctx[12] ? "lg:w-full lg:flex" : "");
1791
2273
  },
1792
2274
  m(target, anchor) {
1793
2275
  insert(target, div2, anchor);
@@ -1804,14 +2286,26 @@
1804
2286
  if (if_block3)
1805
2287
  if_block3.m(div1, null);
1806
2288
  append(div1, t3);
1807
- append(div1, div0);
2289
+ if (if_block4)
2290
+ if_block4.m(div1, null);
1808
2291
  append(div1, t4);
2292
+ if (if_block5)
2293
+ if_block5.m(div1, null);
2294
+ append(div1, t5);
2295
+ if (if_block6)
2296
+ if_block6.m(div1, null);
2297
+ append(div1, t6);
2298
+ if (if_block7)
2299
+ if_block7.m(div1, null);
2300
+ append(div1, t7);
2301
+ append(div1, div0);
2302
+ append(div1, t8);
1809
2303
  if (default_slot) {
1810
2304
  default_slot.m(div1, null);
1811
2305
  }
1812
- append(div2, t5);
1813
- if (if_block4)
1814
- if_block4.m(div2, null);
2306
+ append(div2, t9);
2307
+ if (if_block8)
2308
+ if_block8.m(div2, null);
1815
2309
  current = true;
1816
2310
  },
1817
2311
  p(ctx2, [dirty]) {
@@ -1821,75 +2315,115 @@
1821
2315
  ) {
1822
2316
  if (if_block0) {
1823
2317
  if_block0.p(ctx2, dirty);
2318
+ if (dirty & /*rubric*/
2319
+ 1) {
2320
+ transition_in(if_block0, 1);
2321
+ }
1824
2322
  } else {
1825
- if_block0 = create_if_block_4(ctx2);
2323
+ if_block0 = create_if_block_11(ctx2);
1826
2324
  if_block0.c();
2325
+ transition_in(if_block0, 1);
1827
2326
  if_block0.m(div1, t0);
1828
2327
  }
1829
2328
  } else if (if_block0) {
1830
- if_block0.d(1);
1831
- if_block0 = null;
2329
+ group_outros();
2330
+ transition_out(if_block0, 1, 1, () => {
2331
+ if_block0 = null;
2332
+ });
2333
+ check_outros();
1832
2334
  }
2335
+ if (
2336
+ /*showTextAlignmentInline*/
2337
+ ctx2[11] && /*showStimulusLayoutTextFirst*/
2338
+ ctx2[14]
2339
+ )
2340
+ if_block1.p(ctx2, dirty);
1833
2341
  if (
1834
2342
  /*showAsset*/
1835
- ctx2[7] && /*fileAlignment*/
2343
+ ctx2[8] && /*fileAlignment*/
1836
2344
  ctx2[4] === ASSET_ALIGNMENT_INLINE
1837
2345
  ) {
1838
- if (if_block1) {
1839
- if_block1.p(ctx2, dirty);
2346
+ if (if_block2) {
2347
+ if_block2.p(ctx2, dirty);
1840
2348
  if (dirty & /*fileAlignment*/
1841
2349
  16) {
1842
- transition_in(if_block1, 1);
2350
+ transition_in(if_block2, 1);
1843
2351
  }
1844
2352
  } else {
1845
- if_block1 = create_if_block_3(ctx2);
1846
- if_block1.c();
1847
- transition_in(if_block1, 1);
1848
- if_block1.m(div1, t1);
2353
+ if_block2 = create_if_block_9(ctx2);
2354
+ if_block2.c();
2355
+ transition_in(if_block2, 1);
2356
+ if_block2.m(div1, t2);
1849
2357
  }
1850
- } else if (if_block1) {
2358
+ } else if (if_block2) {
1851
2359
  group_outros();
1852
- transition_out(if_block1, 1, 1, () => {
1853
- if_block1 = null;
2360
+ transition_out(if_block2, 1, 1, () => {
2361
+ if_block2 = null;
1854
2362
  });
1855
2363
  check_outros();
1856
2364
  }
2365
+ if (
2366
+ /*showTextAlignmentInline*/
2367
+ ctx2[11] && /*showStimulusLayoutMediaFirst*/
2368
+ ctx2[13]
2369
+ )
2370
+ if_block3.p(ctx2, dirty);
1857
2371
  if (
1858
2372
  /*prompt*/
1859
2373
  ctx2[1]
1860
2374
  ) {
1861
- if (if_block2) {
1862
- if_block2.p(ctx2, dirty);
2375
+ if (if_block4) {
2376
+ if_block4.p(ctx2, dirty);
2377
+ if (dirty & /*prompt*/
2378
+ 2) {
2379
+ transition_in(if_block4, 1);
2380
+ }
1863
2381
  } else {
1864
- if_block2 = create_if_block_22(ctx2);
1865
- if_block2.c();
1866
- if_block2.m(div1, t2);
2382
+ if_block4 = create_if_block_7(ctx2);
2383
+ if_block4.c();
2384
+ transition_in(if_block4, 1);
2385
+ if_block4.m(div1, t4);
1867
2386
  }
1868
- } else if (if_block2) {
1869
- if_block2.d(1);
1870
- if_block2 = null;
2387
+ } else if (if_block4) {
2388
+ group_outros();
2389
+ transition_out(if_block4, 1, 1, () => {
2390
+ if_block4 = null;
2391
+ });
2392
+ check_outros();
1871
2393
  }
1872
2394
  if (
1873
- /*showAlignmentDefault*/
1874
- ctx2[8]
2395
+ /*showTextAlignmentDefault*/
2396
+ ctx2[10] && /*showStimulusLayoutTextFirst*/
2397
+ ctx2[14]
1875
2398
  )
1876
- if_block3.p(ctx2, dirty);
2399
+ if_block5.p(ctx2, dirty);
2400
+ if (
2401
+ /*showAssetAlignmentDefault*/
2402
+ ctx2[9]
2403
+ )
2404
+ if_block6.p(ctx2, dirty);
2405
+ if (
2406
+ /*showTextAlignmentDefault*/
2407
+ ctx2[10] && /*showStimulusLayoutMediaFirst*/
2408
+ ctx2[13]
2409
+ )
2410
+ if_block7.p(ctx2, dirty);
1877
2411
  if (default_slot) {
1878
2412
  if (default_slot.p && (!current || dirty & /*$$scope*/
1879
- 4096)) {
2413
+ 131072)) {
1880
2414
  update_slot_base(
1881
2415
  default_slot,
1882
2416
  default_slot_template,
1883
2417
  ctx2,
1884
2418
  /*$$scope*/
1885
- ctx2[12],
2419
+ ctx2[17],
1886
2420
  !current ? get_all_dirty_from_scope(
1887
2421
  /*$$scope*/
1888
- ctx2[12]
2422
+ ctx2[17]
1889
2423
  ) : get_slot_changes(
1890
2424
  default_slot_template,
1891
2425
  /*$$scope*/
1892
- ctx2[12],
2426
+ ctx2[17],
1893
2427
  dirty,
1894
2428
  null
1895
2429
  ),
@@ -1899,24 +2433,36 @@
1899
2433
  }
1900
2434
  if (
1901
2435
  /*showAlignmentDefault*/
1902
- ctx2[8]
2436
+ ctx2[12]
1903
2437
  )
1904
- if_block4.p(ctx2, dirty);
2438
+ if_block8.p(ctx2, dirty);
1905
2439
  },
1906
2440
  i(local) {
1907
2441
  if (current)
1908
2442
  return;
2443
+ transition_in(if_block0);
1909
2444
  transition_in(if_block1);
2445
+ transition_in(if_block2);
1910
2446
  transition_in(if_block3);
1911
- transition_in(default_slot, local);
1912
2447
  transition_in(if_block4);
2448
+ transition_in(if_block5);
2449
+ transition_in(if_block6);
2450
+ transition_in(if_block7);
2451
+ transition_in(default_slot, local);
2452
+ transition_in(if_block8);
1913
2453
  current = true;
1914
2454
  },
1915
2455
  o(local) {
2456
+ transition_out(if_block0);
1916
2457
  transition_out(if_block1);
2458
+ transition_out(if_block2);
1917
2459
  transition_out(if_block3);
1918
- transition_out(default_slot, local);
1919
2460
  transition_out(if_block4);
2461
+ transition_out(if_block5);
2462
+ transition_out(if_block6);
2463
+ transition_out(if_block7);
2464
+ transition_out(default_slot, local);
2465
+ transition_out(if_block8);
1920
2466
  current = false;
1921
2467
  },
1922
2468
  d(detaching) {
@@ -1931,14 +2477,22 @@
1931
2477
  if_block2.d();
1932
2478
  if (if_block3)
1933
2479
  if_block3.d();
1934
- if (default_slot)
1935
- default_slot.d(detaching);
1936
2480
  if (if_block4)
1937
2481
  if_block4.d();
2482
+ if (if_block5)
2483
+ if_block5.d();
2484
+ if (if_block6)
2485
+ if_block6.d();
2486
+ if (if_block7)
2487
+ if_block7.d();
2488
+ if (default_slot)
2489
+ default_slot.d(detaching);
2490
+ if (if_block8)
2491
+ if_block8.d();
1938
2492
  }
1939
2493
  };
1940
2494
  }
1941
- function instance2($$self, $$props, $$invalidate) {
2495
+ function instance3($$self, $$props, $$invalidate) {
1942
2496
  let { $$slots: slots = {}, $$scope } = $$props;
1943
2497
  let { rubric } = $$props;
1944
2498
  let { prompt } = $$props;
@@ -1946,11 +2500,18 @@
1946
2500
  let { stimulus = null } = $$props;
1947
2501
  let fileUrl = "";
1948
2502
  let fileType = "";
1949
- let fileAlignment = "default";
2503
+ let fileAlignment = ASSET_ALIGNMENT_DEFAULT;
1950
2504
  let altText = "";
1951
2505
  let caption = "";
2506
+ let stimulusText = "";
2507
+ let stimulusTextAlignment = STIMULUS_TEXT_ALIGNMENT_DEFAULT;
2508
+ let stimulusLayoutOrder = STIMULUS_LAYOUT_ORDER_MEDIA_FIRST;
2509
+ const configureHtmlString = (htmlString, maxHeight = "") => {
2510
+ return htmlString.replace(/<table>/g, `<div class="table-container ${maxHeight}" tabindex="0"><table>`).replace(/<\/table>/g, "</table></div>");
2511
+ };
1952
2512
  if (stimulus) {
1953
- const { asset_alignment: assetAlignment, alternative_text: alternativeText, description, file } = stimulus;
2513
+ const { asset_alignment: assetAlignment, alternative_text: alternativeText, description, file, stimulus_text: stimulusTextRaw, stimulus_text_alignment: stimulusTextAlignmentRaw, stimulus_layout_order: stimulusLayoutOrderRaw } = stimulus;
2514
+ stimulusLayoutOrder = stimulusLayoutOrderRaw;
1954
2515
  if (file) {
1955
2516
  const { url, file_name: fileName, content_type: contentType } = file;
1956
2517
  const tempName = fileName || "Exercise image";
@@ -1961,21 +2522,32 @@
1961
2522
  fileType = contentType ? fileContentType[0] : "";
1962
2523
  caption = description || "";
1963
2524
  }
1964
- }
1965
- const showAsset = (interactionType === INTERACTION_TYPE_MCQ || interactionType === INTERACTION_TYPE_TYPEIN) && fileUrl;
1966
- const showAlignmentDefault = showAsset && fileAlignment === ASSET_ALIGNMENT_DEFAULT;
1967
- const promptRubricHeaderElem = get_store_value(promptRubricElem);
2525
+ if (stimulusTextRaw) {
2526
+ const maxHeight = stimulusTextAlignmentRaw === STIMULUS_TEXT_ALIGNMENT_DEFAULT ? "max-h-[660px]" : "max-h-[470px]";
2527
+ stimulusText = configureHtmlString(stimulusTextRaw, maxHeight);
2528
+ stimulusTextAlignment = stimulusTextAlignmentRaw;
2529
+ }
2530
+ }
2531
+ const isAllowedInteraction = interactionType === INTERACTION_TYPE_MCQ || interactionType === INTERACTION_TYPE_TYPEIN;
2532
+ const showAsset = isAllowedInteraction && fileUrl;
2533
+ const showTextStimulus = isAllowedInteraction && stimulusText;
2534
+ const showAssetAlignmentDefault = showAsset && fileAlignment === ASSET_ALIGNMENT_DEFAULT;
2535
+ const showTextAlignmentDefault = showTextStimulus && stimulusTextAlignment === STIMULUS_TEXT_ALIGNMENT_DEFAULT;
2536
+ const showTextAlignmentInline = showTextStimulus && stimulusTextAlignment === STIMULUS_TEXT_ALIGNMENT_INLINE;
2537
+ const showAlignmentDefault = showAssetAlignmentDefault || showTextAlignmentDefault;
2538
+ const showStimulusLayoutMediaFirst = stimulusLayoutOrder === STIMULUS_LAYOUT_ORDER_MEDIA_FIRST;
2539
+ const showStimulusLayoutTextFirst = stimulusLayoutOrder === STIMULUS_LAYOUT_ORDER_TEXT_FIRST;
1968
2540
  $$self.$$set = ($$props2) => {
1969
2541
  if ("rubric" in $$props2)
1970
2542
  $$invalidate(0, rubric = $$props2.rubric);
1971
2543
  if ("prompt" in $$props2)
1972
2544
  $$invalidate(1, prompt = $$props2.prompt);
1973
2545
  if ("interactionType" in $$props2)
1974
- $$invalidate(10, interactionType = $$props2.interactionType);
2546
+ $$invalidate(15, interactionType = $$props2.interactionType);
1975
2547
  if ("stimulus" in $$props2)
1976
- $$invalidate(11, stimulus = $$props2.stimulus);
2548
+ $$invalidate(16, stimulus = $$props2.stimulus);
1977
2549
  if ("$$scope" in $$props2)
1978
- $$invalidate(12, $$scope = $$props2.$$scope);
2550
+ $$invalidate(17, $$scope = $$props2.$$scope);
1979
2551
  };
1980
2552
  return [
1981
2553
  rubric,
@@ -1985,9 +2557,14 @@
1985
2557
  fileAlignment,
1986
2558
  altText,
1987
2559
  caption,
2560
+ stimulusText,
1988
2561
  showAsset,
2562
+ showAssetAlignmentDefault,
2563
+ showTextAlignmentDefault,
2564
+ showTextAlignmentInline,
1989
2565
  showAlignmentDefault,
1990
- promptRubricHeaderElem,
2566
+ showStimulusLayoutMediaFirst,
2567
+ showStimulusLayoutTextFirst,
1991
2568
  interactionType,
1992
2569
  stimulus,
1993
2570
  $$scope,
@@ -1997,11 +2574,11 @@
1997
2574
  var PromptBody = class extends SvelteComponent {
1998
2575
  constructor(options) {
1999
2576
  super();
2000
- init(this, options, instance2, create_fragment2, safe_not_equal, {
2577
+ init(this, options, instance3, create_fragment3, safe_not_equal, {
2001
2578
  rubric: 0,
2002
2579
  prompt: 1,
2003
- interactionType: 10,
2004
- stimulus: 11
2580
+ interactionType: 15,
2581
+ stimulus: 16
2005
2582
  });
2006
2583
  }
2007
2584
  get rubric() {
@@ -2019,14 +2596,14 @@
2019
2596
  flush();
2020
2597
  }
2021
2598
  get interactionType() {
2022
- return this.$$.ctx[10];
2599
+ return this.$$.ctx[15];
2023
2600
  }
2024
2601
  set interactionType(interactionType) {
2025
2602
  this.$$set({ interactionType });
2026
2603
  flush();
2027
2604
  }
2028
2605
  get stimulus() {
2029
- return this.$$.ctx[11];
2606
+ return this.$$.ctx[16];
2030
2607
  }
2031
2608
  set stimulus(stimulus) {
2032
2609
  this.$$set({ stimulus });
@@ -2037,7 +2614,7 @@
2037
2614
  var PromptBody_default = PromptBody;
2038
2615
 
2039
2616
  // src/lib/components/prompt/template/PromptResultFeedback.svelte
2040
- function create_if_block3(ctx) {
2617
+ function create_if_block4(ctx) {
2041
2618
  let div0;
2042
2619
  let t0;
2043
2620
  let span;
@@ -2149,11 +2726,11 @@
2149
2726
  }
2150
2727
  };
2151
2728
  }
2152
- function create_fragment3(ctx) {
2729
+ function create_fragment4(ctx) {
2153
2730
  let if_block_anchor;
2154
2731
  let if_block = (
2155
2732
  /*resultFeedback*/
2156
- ctx[0] && create_if_block3(ctx)
2733
+ ctx[0] && create_if_block4(ctx)
2157
2734
  );
2158
2735
  return {
2159
2736
  c() {
@@ -2174,7 +2751,7 @@
2174
2751
  if (if_block) {
2175
2752
  if_block.p(ctx2, dirty);
2176
2753
  } else {
2177
- if_block = create_if_block3(ctx2);
2754
+ if_block = create_if_block4(ctx2);
2178
2755
  if_block.c();
2179
2756
  if_block.m(if_block_anchor.parentNode, if_block_anchor);
2180
2757
  }
@@ -2194,7 +2771,7 @@
2194
2771
  }
2195
2772
  };
2196
2773
  }
2197
- function instance3($$self, $$props, $$invalidate) {
2774
+ function instance4($$self, $$props, $$invalidate) {
2198
2775
  let { resultFeedback = null } = $$props;
2199
2776
  let { resultFeedbackTitle = null } = $$props;
2200
2777
  let { isResultCorrect = true } = $$props;
@@ -2211,7 +2788,7 @@
2211
2788
  var PromptResultFeedback = class extends SvelteComponent {
2212
2789
  constructor(options) {
2213
2790
  super();
2214
- init(this, options, instance3, create_fragment3, safe_not_equal, {
2791
+ init(this, options, instance4, create_fragment4, safe_not_equal, {
2215
2792
  resultFeedback: 0,
2216
2793
  resultFeedbackTitle: 1,
2217
2794
  isResultCorrect: 2
@@ -2277,7 +2854,7 @@
2277
2854
  var useMCQ_default = useAlphabetEquivalent;
2278
2855
 
2279
2856
  // src/lib/assets/img/messaging/SuccessSolid.svelte
2280
- function create_fragment4(ctx) {
2857
+ function create_fragment5(ctx) {
2281
2858
  let svg;
2282
2859
  let path;
2283
2860
  return {
@@ -2313,14 +2890,14 @@
2313
2890
  var SuccessSolid = class extends SvelteComponent {
2314
2891
  constructor(options) {
2315
2892
  super();
2316
- init(this, options, null, create_fragment4, safe_not_equal, {});
2893
+ init(this, options, null, create_fragment5, safe_not_equal, {});
2317
2894
  }
2318
2895
  };
2319
2896
  create_custom_element(SuccessSolid, {}, [], [], true);
2320
2897
  var SuccessSolid_default = SuccessSolid;
2321
2898
 
2322
2899
  // src/lib/assets/img/messaging/ErrorSolid.svelte
2323
- function create_fragment5(ctx) {
2900
+ function create_fragment6(ctx) {
2324
2901
  let svg;
2325
2902
  let path;
2326
2903
  return {
@@ -2356,7 +2933,7 @@
2356
2933
  var ErrorSolid = class extends SvelteComponent {
2357
2934
  constructor(options) {
2358
2935
  super();
2359
- init(this, options, null, create_fragment5, safe_not_equal, {});
2936
+ init(this, options, null, create_fragment6, safe_not_equal, {});
2360
2937
  }
2361
2938
  };
2362
2939
  create_custom_element(ErrorSolid, {}, [], [], true);
@@ -2615,13 +3192,9 @@
2615
3192
  let span1;
2616
3193
  let span0;
2617
3194
  let t2;
2618
- let t3_value = (
2619
- /*option*/
2620
- ctx[18].answer + ""
2621
- );
3195
+ let commonstringtohtml;
2622
3196
  let t3;
2623
3197
  let t4;
2624
- let t5;
2625
3198
  let button_aria_label_value;
2626
3199
  let button_class_value;
2627
3200
  let current;
@@ -2633,6 +3206,12 @@
2633
3206
  ctx[3] === /*option*/
2634
3207
  ctx[18].id && create_if_block_42(ctx)
2635
3208
  );
3209
+ commonstringtohtml = new CommonStringToHtml_default({
3210
+ props: { htmlString: (
3211
+ /*option*/
3212
+ ctx[18].answer
3213
+ ) }
3214
+ });
2636
3215
  let if_block1 = (
2637
3216
  /*selectedOption*/
2638
3217
  ctx[3] === /*option*/
@@ -2661,11 +3240,11 @@
2661
3240
  ctx[20]
2662
3241
  )}`;
2663
3242
  t2 = space();
2664
- t3 = text(t3_value);
2665
- t4 = space();
3243
+ create_component(commonstringtohtml.$$.fragment);
3244
+ t3 = space();
2666
3245
  if (if_block1)
2667
3246
  if_block1.c();
2668
- t5 = space();
3247
+ t4 = space();
2669
3248
  attr(span0, "class", "choice group-active:border-2 group-active:border-blue-1000 group-active:p-[7px]");
2670
3249
  attr(span1, "class", "grow flex items-center");
2671
3250
  attr(button, "aria-label", button_aria_label_value = `${/*selectedOption*/
@@ -2676,8 +3255,10 @@
2676
3255
  )}` : `Option ${useMCQ_default(
2677
3256
  /*index*/
2678
3257
  ctx[20]
2679
- )}`}: ${/*option*/
2680
- ctx[18].answer} ${!/*isFinished*/
3258
+ )}`}: ${useRemoveRichTextHtmlTags(
3259
+ /*option*/
3260
+ ctx[18].answer
3261
+ )} ${!/*isFinished*/
2681
3262
  ctx[1] || /*selectedOption*/
2682
3263
  ctx[3] !== /*option*/
2683
3264
  ctx[18].id ? "" : (
@@ -2700,11 +3281,11 @@
2700
3281
  append(button, span1);
2701
3282
  append(span1, span0);
2702
3283
  append(span1, t2);
2703
- append(span1, t3);
2704
- append(button, t4);
3284
+ mount_component(commonstringtohtml, span1, null);
3285
+ append(button, t3);
2705
3286
  if (if_block1)
2706
3287
  if_block1.m(button, null);
2707
- append(button, t5);
3288
+ append(button, t4);
2708
3289
  current = true;
2709
3290
  if (!mounted) {
2710
3291
  dispose = listen(button, "click", click_handler);
@@ -2745,7 +3326,7 @@
2745
3326
  if_block1 = create_if_block_23(ctx);
2746
3327
  if_block1.c();
2747
3328
  transition_in(if_block1, 1);
2748
- if_block1.m(button, t5);
3329
+ if_block1.m(button, t4);
2749
3330
  }
2750
3331
  } else if (if_block1) {
2751
3332
  group_outros();
@@ -2763,8 +3344,10 @@
2763
3344
  )}` : `Option ${useMCQ_default(
2764
3345
  /*index*/
2765
3346
  ctx[20]
2766
- )}`}: ${/*option*/
2767
- ctx[18].answer} ${!/*isFinished*/
3347
+ )}`}: ${useRemoveRichTextHtmlTags(
3348
+ /*option*/
3349
+ ctx[18].answer
3350
+ )} ${!/*isFinished*/
2768
3351
  ctx[1] || /*selectedOption*/
2769
3352
  ctx[3] !== /*option*/
2770
3353
  ctx[18].id ? "" : (
@@ -2787,10 +3370,12 @@
2787
3370
  i(local) {
2788
3371
  if (current)
2789
3372
  return;
3373
+ transition_in(commonstringtohtml.$$.fragment, local);
2790
3374
  transition_in(if_block1);
2791
3375
  current = true;
2792
3376
  },
2793
3377
  o(local) {
3378
+ transition_out(commonstringtohtml.$$.fragment, local);
2794
3379
  transition_out(if_block1);
2795
3380
  current = false;
2796
3381
  },
@@ -2801,6 +3386,7 @@
2801
3386
  }
2802
3387
  if (if_block0)
2803
3388
  if_block0.d(detaching);
3389
+ destroy_component(commonstringtohtml);
2804
3390
  if (if_block1)
2805
3391
  if_block1.d();
2806
3392
  mounted = false;
@@ -2808,7 +3394,7 @@
2808
3394
  }
2809
3395
  };
2810
3396
  }
2811
- function create_if_block4(ctx) {
3397
+ function create_if_block5(ctx) {
2812
3398
  let promptresult;
2813
3399
  let current;
2814
3400
  promptresult = new PromptResultFeedback_default({
@@ -2868,7 +3454,7 @@
2868
3454
  );
2869
3455
  let if_block1 = (
2870
3456
  /*isFinished*/
2871
- ctx[1] && create_if_block4(ctx)
3457
+ ctx[1] && create_if_block5(ctx)
2872
3458
  );
2873
3459
  return {
2874
3460
  c() {
@@ -2905,7 +3491,7 @@
2905
3491
  transition_in(if_block1, 1);
2906
3492
  }
2907
3493
  } else {
2908
- if_block1 = create_if_block4(ctx2);
3494
+ if_block1 = create_if_block5(ctx2);
2909
3495
  if_block1.c();
2910
3496
  transition_in(if_block1, 1);
2911
3497
  if_block1.m(if_block1_anchor.parentNode, if_block1_anchor);
@@ -2942,7 +3528,7 @@
2942
3528
  }
2943
3529
  };
2944
3530
  }
2945
- function create_fragment6(ctx) {
3531
+ function create_fragment7(ctx) {
2946
3532
  let promptbody;
2947
3533
  let current;
2948
3534
  promptbody = new PromptBody_default({
@@ -2995,7 +3581,7 @@
2995
3581
  }
2996
3582
  };
2997
3583
  }
2998
- function instance4($$self, $$props, $$invalidate) {
3584
+ function instance5($$self, $$props, $$invalidate) {
2999
3585
  let { sessionData } = $$props;
3000
3586
  let { isDataSaving } = $$props;
3001
3587
  let { isFinished = false } = $$props;
@@ -3027,6 +3613,7 @@
3027
3613
  if (isDataSaving || optionId === selectedOption || isFinished && !isPreviewModeInteractive)
3028
3614
  return;
3029
3615
  $$invalidate(3, selectedOption = optionId);
3616
+ option = useRemoveRichTextHtmlTags(option);
3030
3617
  dispatch("saveOption", {
3031
3618
  answer_id: [optionId],
3032
3619
  answer_choice: [option]
@@ -3073,7 +3660,7 @@
3073
3660
  var PromptMCQ = class extends SvelteComponent {
3074
3661
  constructor(options) {
3075
3662
  super();
3076
- init(this, options, instance4, create_fragment6, safe_not_equal, {
3663
+ init(this, options, instance5, create_fragment7, safe_not_equal, {
3077
3664
  sessionData: 10,
3078
3665
  isDataSaving: 0,
3079
3666
  isFinished: 1,
@@ -3443,7 +4030,7 @@
3443
4030
  }
3444
4031
  };
3445
4032
  }
3446
- function create_if_block5(ctx) {
4033
+ function create_if_block6(ctx) {
3447
4034
  let div;
3448
4035
  let span0;
3449
4036
  let current_block_type_index;
@@ -3644,7 +4231,7 @@
3644
4231
  let if_block0 = current_block_type(ctx);
3645
4232
  let if_block1 = (
3646
4233
  /*isFinished*/
3647
- ctx[1] && create_if_block5(ctx)
4234
+ ctx[1] && create_if_block6(ctx)
3648
4235
  );
3649
4236
  return {
3650
4237
  c() {
@@ -3675,7 +4262,7 @@
3675
4262
  transition_in(if_block1, 1);
3676
4263
  }
3677
4264
  } else {
3678
- if_block1 = create_if_block5(ctx2);
4265
+ if_block1 = create_if_block6(ctx2);
3679
4266
  if_block1.c();
3680
4267
  transition_in(if_block1, 1);
3681
4268
  if_block1.m(if_block1_anchor.parentNode, if_block1_anchor);
@@ -3709,7 +4296,7 @@
3709
4296
  }
3710
4297
  };
3711
4298
  }
3712
- function create_fragment7(ctx) {
4299
+ function create_fragment8(ctx) {
3713
4300
  let promptbody;
3714
4301
  let current;
3715
4302
  promptbody = new PromptBody_default({
@@ -3764,7 +4351,7 @@
3764
4351
  };
3765
4352
  }
3766
4353
  var idLabel = "answerText";
3767
- function instance5($$self, $$props, $$invalidate) {
4354
+ function instance6($$self, $$props, $$invalidate) {
3768
4355
  let { sessionData } = $$props;
3769
4356
  let { isDataSaving } = $$props;
3770
4357
  let { isFinished = false } = $$props;
@@ -3905,8 +4492,8 @@
3905
4492
  init(
3906
4493
  this,
3907
4494
  options,
3908
- instance5,
3909
- create_fragment7,
4495
+ instance6,
4496
+ create_fragment8,
3910
4497
  safe_not_equal,
3911
4498
  {
3912
4499
  sessionData: 17,
@@ -5967,7 +6554,7 @@
5967
6554
  }
5968
6555
 
5969
6556
  // src/lib/assets/img/product/GripVertical.svelte
5970
- function create_fragment8(ctx) {
6557
+ function create_fragment9(ctx) {
5971
6558
  let svg;
5972
6559
  let path;
5973
6560
  return {
@@ -6001,14 +6588,14 @@
6001
6588
  var GripVertical = class extends SvelteComponent {
6002
6589
  constructor(options) {
6003
6590
  super();
6004
- init(this, options, null, create_fragment8, safe_not_equal, {});
6591
+ init(this, options, null, create_fragment9, safe_not_equal, {});
6005
6592
  }
6006
6593
  };
6007
6594
  create_custom_element(GripVertical, {}, [], [], true);
6008
6595
  var GripVertical_default = GripVertical;
6009
6596
 
6010
6597
  // src/lib/assets/img/messaging/Success.svelte
6011
- function create_fragment9(ctx) {
6598
+ function create_fragment10(ctx) {
6012
6599
  let svg;
6013
6600
  let path;
6014
6601
  return {
@@ -6042,7 +6629,7 @@
6042
6629
  var Success = class extends SvelteComponent {
6043
6630
  constructor(options) {
6044
6631
  super();
6045
- init(this, options, null, create_fragment9, safe_not_equal, {});
6632
+ init(this, options, null, create_fragment10, safe_not_equal, {});
6046
6633
  }
6047
6634
  };
6048
6635
  create_custom_element(Success, {}, [], [], true);
@@ -6178,7 +6765,7 @@
6178
6765
  }
6179
6766
  };
6180
6767
  }
6181
- function create_if_block6(ctx) {
6768
+ function create_if_block7(ctx) {
6182
6769
  let span;
6183
6770
  let gripvertical;
6184
6771
  let current;
@@ -6212,26 +6799,30 @@
6212
6799
  }
6213
6800
  };
6214
6801
  }
6215
- function create_fragment10(ctx) {
6802
+ function create_fragment11(ctx) {
6216
6803
  let button;
6217
6804
  let span0;
6218
- let t0;
6805
+ let commonstringtohtml;
6219
6806
  let span0_class_value;
6220
- let t1;
6807
+ let t0;
6221
6808
  let div;
6222
6809
  let span1;
6223
6810
  let span1_class_value;
6224
- let t2;
6811
+ let t1;
6225
6812
  let span2;
6226
6813
  let current_block_type_index;
6227
6814
  let if_block0;
6228
- let t3;
6815
+ let t2;
6229
6816
  let div_class_value;
6230
6817
  let button_aria_label_value;
6231
6818
  let button_class_value;
6232
6819
  let current;
6233
6820
  let mounted;
6234
6821
  let dispose;
6822
+ commonstringtohtml = new CommonStringToHtml_default({ props: { htmlString: (
6823
+ /*word*/
6824
+ ctx[1]
6825
+ ) } });
6235
6826
  const if_block_creators = [create_if_block_16, create_if_block_25, create_if_block_33, create_else_block3];
6236
6827
  const if_blocks = [];
6237
6828
  function select_block_type(ctx2, dirty) {
@@ -6259,23 +6850,20 @@
6259
6850
  let if_block1 = (
6260
6851
  /*resultType*/
6261
6852
  (ctx[0] === ANSWER_CORRECT || /*resultType*/
6262
- ctx[0] === ANSWER_INCORRECT) && create_if_block6(ctx)
6853
+ ctx[0] === ANSWER_INCORRECT) && create_if_block7(ctx)
6263
6854
  );
6264
6855
  return {
6265
6856
  c() {
6266
6857
  button = element("button");
6267
6858
  span0 = element("span");
6268
- t0 = text(
6269
- /*word*/
6270
- ctx[1]
6271
- );
6272
- t1 = space();
6859
+ create_component(commonstringtohtml.$$.fragment);
6860
+ t0 = space();
6273
6861
  div = element("div");
6274
6862
  span1 = element("span");
6275
- t2 = space();
6863
+ t1 = space();
6276
6864
  span2 = element("span");
6277
6865
  if_block0.c();
6278
- t3 = space();
6866
+ t2 = space();
6279
6867
  if (if_block1)
6280
6868
  if_block1.c();
6281
6869
  attr(span0, "class", span0_class_value = "text-charcoal text-base pl-3 mr-4 " + /*isWordItemSelected*/
@@ -6296,19 +6884,19 @@
6296
6884
  attr(button, "aria-label", button_aria_label_value = /*resultType*/
6297
6885
  ctx[0] === ANSWER_INCORRECT && /*containerId*/
6298
6886
  ctx[5] === CONTAINER_WORD_BIN_ID && !/*isWordItemSelected*/
6299
- ctx[10] ? `Skipped answer: ${/*word*/
6300
- ctx[1]}` : (
6887
+ ctx[10] ? `Skipped answer: ${/*ariaWord*/
6888
+ ctx[11]}` : (
6301
6889
  /*resultType*/
6302
6890
  (ctx[0] === ANSWER_CORRECT || /*resultType*/
6303
6891
  ctx[0] === ANSWER_INCORRECT) && !/*isWordItemSelected*/
6304
- ctx[10] ? `Student's answer: ${/*word*/
6305
- ctx[1]} (${/*resultType*/
6892
+ ctx[10] ? `Student's answer: ${/*ariaWord*/
6893
+ ctx[11]} (${/*resultType*/
6306
6894
  ctx[0]})` : (
6307
6895
  /*resultType*/
6308
- ctx[0] === ANSWER_MISSED ? `Missing answer: ${/*word*/
6309
- ctx[1]}` : `${/*isWordItemSelected*/
6310
- ctx[10] ? "Selected option" : "Option"}: ${/*word*/
6311
- ctx[1]}`
6896
+ ctx[0] === ANSWER_MISSED ? `Missing answer: ${/*ariaWord*/
6897
+ ctx[11]}` : `${/*isWordItemSelected*/
6898
+ ctx[10] ? "Selected option" : "Option"}: ${/*ariaWord*/
6899
+ ctx[11]}`
6312
6900
  )
6313
6901
  ));
6314
6902
  attr(button, "class", button_class_value = "focus-ring flex items-center justify-between min-h-[54px] p-1 border border-gray-800 rounded-lg " + /*otherClass*/
@@ -6335,29 +6923,29 @@
6335
6923
  m(target, anchor) {
6336
6924
  insert(target, button, anchor);
6337
6925
  append(button, span0);
6338
- append(span0, t0);
6339
- append(button, t1);
6926
+ mount_component(commonstringtohtml, span0, null);
6927
+ append(button, t0);
6340
6928
  append(button, div);
6341
6929
  append(div, span1);
6342
- append(div, t2);
6930
+ append(div, t1);
6343
6931
  append(div, span2);
6344
6932
  if_blocks[current_block_type_index].m(span2, null);
6345
- append(span2, t3);
6933
+ append(span2, t2);
6346
6934
  if (if_block1)
6347
6935
  if_block1.m(span2, null);
6348
- ctx[17](button);
6936
+ ctx[18](button);
6349
6937
  current = true;
6350
6938
  if (!mounted) {
6351
6939
  dispose = [
6352
6940
  listen(button, "click", stop_propagation(function() {
6353
6941
  if (is_function(
6354
6942
  /*selectItem*/
6355
- ctx[11](
6943
+ ctx[12](
6356
6944
  /*wordButtonId*/
6357
6945
  ctx[3]
6358
6946
  )
6359
6947
  ))
6360
- ctx[11](
6948
+ ctx[12](
6361
6949
  /*wordButtonId*/
6362
6950
  ctx[3]
6363
6951
  ).apply(this, arguments);
@@ -6365,12 +6953,12 @@
6365
6953
  listen(button, "touchend", stop_propagation(function() {
6366
6954
  if (is_function(
6367
6955
  /*selectItem*/
6368
- ctx[11](
6956
+ ctx[12](
6369
6957
  /*wordButtonId*/
6370
6958
  ctx[3]
6371
6959
  )
6372
6960
  ))
6373
- ctx[11](
6961
+ ctx[12](
6374
6962
  /*wordButtonId*/
6375
6963
  ctx[3]
6376
6964
  ).apply(this, arguments);
@@ -6379,7 +6967,7 @@
6379
6967
  button,
6380
6968
  "keydown",
6381
6969
  /*removeContainerTabSelected*/
6382
- ctx[12]
6970
+ ctx[13]
6383
6971
  )
6384
6972
  ];
6385
6973
  mounted = true;
@@ -6387,13 +6975,12 @@
6387
6975
  },
6388
6976
  p(new_ctx, [dirty]) {
6389
6977
  ctx = new_ctx;
6390
- if (!current || dirty & /*word*/
6978
+ const commonstringtohtml_changes = {};
6979
+ if (dirty & /*word*/
6391
6980
  2)
6392
- set_data(
6393
- t0,
6394
- /*word*/
6395
- ctx[1]
6396
- );
6981
+ commonstringtohtml_changes.htmlString = /*word*/
6982
+ ctx[1];
6983
+ commonstringtohtml.$set(commonstringtohtml_changes);
6397
6984
  if (!current || dirty & /*isWordItemSelected*/
6398
6985
  1024 && span0_class_value !== (span0_class_value = "text-charcoal text-base pl-3 mr-4 " + /*isWordItemSelected*/
6399
6986
  (ctx[10] ? "text-white" : ""))) {
@@ -6420,7 +7007,7 @@
6420
7007
  } else {
6421
7008
  }
6422
7009
  transition_in(if_block0, 1);
6423
- if_block0.m(span2, t3);
7010
+ if_block0.m(span2, t2);
6424
7011
  }
6425
7012
  if (
6426
7013
  /*resultType*/
@@ -6433,7 +7020,7 @@
6433
7020
  transition_in(if_block1, 1);
6434
7021
  }
6435
7022
  } else {
6436
- if_block1 = create_if_block6(ctx);
7023
+ if_block1 = create_if_block7(ctx);
6437
7024
  if_block1.c();
6438
7025
  transition_in(if_block1, 1);
6439
7026
  if_block1.m(span2, null);
@@ -6460,23 +7047,23 @@
6460
7047
  ctx[3]
6461
7048
  );
6462
7049
  }
6463
- if (!current || dirty & /*resultType, containerId, isWordItemSelected, word*/
6464
- 1059 && button_aria_label_value !== (button_aria_label_value = /*resultType*/
7050
+ if (!current || dirty & /*resultType, containerId, isWordItemSelected*/
7051
+ 1057 && button_aria_label_value !== (button_aria_label_value = /*resultType*/
6465
7052
  ctx[0] === ANSWER_INCORRECT && /*containerId*/
6466
7053
  ctx[5] === CONTAINER_WORD_BIN_ID && !/*isWordItemSelected*/
6467
- ctx[10] ? `Skipped answer: ${/*word*/
6468
- ctx[1]}` : (
7054
+ ctx[10] ? `Skipped answer: ${/*ariaWord*/
7055
+ ctx[11]}` : (
6469
7056
  /*resultType*/
6470
7057
  (ctx[0] === ANSWER_CORRECT || /*resultType*/
6471
7058
  ctx[0] === ANSWER_INCORRECT) && !/*isWordItemSelected*/
6472
- ctx[10] ? `Student's answer: ${/*word*/
6473
- ctx[1]} (${/*resultType*/
7059
+ ctx[10] ? `Student's answer: ${/*ariaWord*/
7060
+ ctx[11]} (${/*resultType*/
6474
7061
  ctx[0]})` : (
6475
7062
  /*resultType*/
6476
- ctx[0] === ANSWER_MISSED ? `Missing answer: ${/*word*/
6477
- ctx[1]}` : `${/*isWordItemSelected*/
6478
- ctx[10] ? "Selected option" : "Option"}: ${/*word*/
6479
- ctx[1]}`
7063
+ ctx[0] === ANSWER_MISSED ? `Missing answer: ${/*ariaWord*/
7064
+ ctx[11]}` : `${/*isWordItemSelected*/
7065
+ ctx[10] ? "Selected option" : "Option"}: ${/*ariaWord*/
7066
+ ctx[11]}`
6480
7067
  )
6481
7068
  ))) {
6482
7069
  attr(button, "aria-label", button_aria_label_value);
@@ -6508,11 +7095,13 @@
6508
7095
  i(local) {
6509
7096
  if (current)
6510
7097
  return;
7098
+ transition_in(commonstringtohtml.$$.fragment, local);
6511
7099
  transition_in(if_block0);
6512
7100
  transition_in(if_block1);
6513
7101
  current = true;
6514
7102
  },
6515
7103
  o(local) {
7104
+ transition_out(commonstringtohtml.$$.fragment, local);
6516
7105
  transition_out(if_block0);
6517
7106
  transition_out(if_block1);
6518
7107
  current = false;
@@ -6521,16 +7110,17 @@
6521
7110
  if (detaching) {
6522
7111
  detach(button);
6523
7112
  }
7113
+ destroy_component(commonstringtohtml);
6524
7114
  if_blocks[current_block_type_index].d();
6525
7115
  if (if_block1)
6526
7116
  if_block1.d();
6527
- ctx[17](null);
7117
+ ctx[18](null);
6528
7118
  mounted = false;
6529
7119
  run_all(dispose);
6530
7120
  }
6531
7121
  };
6532
7122
  }
6533
- function instance6($$self, $$props, $$invalidate) {
7123
+ function instance7($$self, $$props, $$invalidate) {
6534
7124
  let { word = "" } = $$props;
6535
7125
  let { resultType = "" } = $$props;
6536
7126
  let { otherClass = "" } = $$props;
@@ -6548,8 +7138,9 @@
6548
7138
  let isWordItemSelected = false;
6549
7139
  let isSelecItemFunctionCalled = false;
6550
7140
  let wordButton;
7141
+ let ariaWord = useRemoveRichTextHtmlTags(word);
6551
7142
  const updateCategoryData = (newSettings) => {
6552
- $$invalidate(13, categoryData = { ...categoryData, ...newSettings });
7143
+ $$invalidate(14, categoryData = { ...categoryData, ...newSettings });
6553
7144
  dispatch("updateCategorySettings", categoryData);
6554
7145
  };
6555
7146
  const selectItem = (itemId) => {
@@ -6561,7 +7152,7 @@
6561
7152
  updateCategoryData({
6562
7153
  selectedItemId: itemId,
6563
7154
  sourceSelectedContainerId: containerId,
6564
- selectedItemName: word,
7155
+ selectedItemName: ariaWord,
6565
7156
  isItemsAriaHidden: false
6566
7157
  });
6567
7158
  } else if (currentSelectedItemId === itemId) {
@@ -6614,19 +7205,19 @@
6614
7205
  if ("containerId" in $$props2)
6615
7206
  $$invalidate(5, containerId = $$props2.containerId);
6616
7207
  if ("wordFocus" in $$props2)
6617
- $$invalidate(14, wordFocus = $$props2.wordFocus);
7208
+ $$invalidate(15, wordFocus = $$props2.wordFocus);
6618
7209
  if ("disabledClick" in $$props2)
6619
7210
  $$invalidate(6, disabledClick = $$props2.disabledClick);
6620
7211
  if ("isPreviewModeInteractive" in $$props2)
6621
- $$invalidate(15, isPreviewModeInteractive = $$props2.isPreviewModeInteractive);
7212
+ $$invalidate(16, isPreviewModeInteractive = $$props2.isPreviewModeInteractive);
6622
7213
  if ("categoryData" in $$props2)
6623
- $$invalidate(13, categoryData = $$props2.categoryData);
7214
+ $$invalidate(14, categoryData = $$props2.categoryData);
6624
7215
  if ("correctAnswerList" in $$props2)
6625
- $$invalidate(16, correctAnswerList = $$props2.correctAnswerList);
7216
+ $$invalidate(17, correctAnswerList = $$props2.correctAnswerList);
6626
7217
  };
6627
7218
  $$self.$$.update = () => {
6628
7219
  if ($$self.$$.dirty & /*wordFocus, wordButton*/
6629
- 16640) {
7220
+ 33024) {
6630
7221
  $:
6631
7222
  if (wordFocus) {
6632
7223
  setTimeout(
@@ -6638,7 +7229,7 @@
6638
7229
  }
6639
7230
  }
6640
7231
  if ($$self.$$.dirty & /*correctAnswerList, isPreviewModeInteractive, containerId, wordButtonId, resultType*/
6641
- 98345) {
7232
+ 196649) {
6642
7233
  $:
6643
7234
  if (correctAnswerList && isPreviewModeInteractive) {
6644
7235
  const { answerList } = correctAnswerList;
@@ -6650,7 +7241,7 @@
6650
7241
  }
6651
7242
  }
6652
7243
  if ($$self.$$.dirty & /*categoryData, currentSelectedItemId, wordButtonId*/
6653
- 8328) {
7244
+ 16520) {
6654
7245
  $:
6655
7246
  if (categoryData) {
6656
7247
  const { considerCloneItemId: storeConsiderCloneItemId, selectedItemId: storeSelectedItemId } = categoryData;
@@ -6672,6 +7263,7 @@
6672
7263
  wordButton,
6673
7264
  considerCloneItemId,
6674
7265
  isWordItemSelected,
7266
+ ariaWord,
6675
7267
  selectItem,
6676
7268
  removeContainerTabSelected,
6677
7269
  categoryData,
@@ -6684,18 +7276,18 @@
6684
7276
  var PromptCategoriseWordButton = class extends SvelteComponent {
6685
7277
  constructor(options) {
6686
7278
  super();
6687
- init(this, options, instance6, create_fragment10, safe_not_equal, {
7279
+ init(this, options, instance7, create_fragment11, safe_not_equal, {
6688
7280
  word: 1,
6689
7281
  resultType: 0,
6690
7282
  otherClass: 2,
6691
7283
  wordButtonId: 3,
6692
7284
  isClonedItem: 4,
6693
7285
  containerId: 5,
6694
- wordFocus: 14,
7286
+ wordFocus: 15,
6695
7287
  disabledClick: 6,
6696
- isPreviewModeInteractive: 15,
6697
- categoryData: 13,
6698
- correctAnswerList: 16
7288
+ isPreviewModeInteractive: 16,
7289
+ categoryData: 14,
7290
+ correctAnswerList: 17
6699
7291
  });
6700
7292
  }
6701
7293
  get word() {
@@ -6741,7 +7333,7 @@
6741
7333
  flush();
6742
7334
  }
6743
7335
  get wordFocus() {
6744
- return this.$$.ctx[14];
7336
+ return this.$$.ctx[15];
6745
7337
  }
6746
7338
  set wordFocus(wordFocus) {
6747
7339
  this.$$set({ wordFocus });
@@ -6755,21 +7347,21 @@
6755
7347
  flush();
6756
7348
  }
6757
7349
  get isPreviewModeInteractive() {
6758
- return this.$$.ctx[15];
7350
+ return this.$$.ctx[16];
6759
7351
  }
6760
7352
  set isPreviewModeInteractive(isPreviewModeInteractive) {
6761
7353
  this.$$set({ isPreviewModeInteractive });
6762
7354
  flush();
6763
7355
  }
6764
7356
  get categoryData() {
6765
- return this.$$.ctx[13];
7357
+ return this.$$.ctx[14];
6766
7358
  }
6767
7359
  set categoryData(categoryData) {
6768
7360
  this.$$set({ categoryData });
6769
7361
  flush();
6770
7362
  }
6771
7363
  get correctAnswerList() {
6772
- return this.$$.ctx[16];
7364
+ return this.$$.ctx[17];
6773
7365
  }
6774
7366
  set correctAnswerList(correctAnswerList) {
6775
7367
  this.$$set({ correctAnswerList });
@@ -6828,7 +7420,7 @@
6828
7420
  button,
6829
7421
  "aria-label",
6830
7422
  /*ariaLabel*/
6831
- ctx[7]
7423
+ ctx[1]
6832
7424
  );
6833
7425
  attr(button, "class", button_class_value = "focus-ring absolute inset-0 bg-transparent rounded-lg focus-visible:border " + /*isContainerWordBin*/
6834
7426
  (ctx[22] ? "focus-visible:border-gray-400" : "focus-visible:border-gray-800"));
@@ -6847,12 +7439,12 @@
6847
7439
  },
6848
7440
  p(ctx2, dirty) {
6849
7441
  if (dirty[0] & /*ariaLabel*/
6850
- 128) {
7442
+ 2) {
6851
7443
  attr(
6852
7444
  button,
6853
7445
  "aria-label",
6854
7446
  /*ariaLabel*/
6855
- ctx2[7]
7447
+ ctx2[1]
6856
7448
  );
6857
7449
  }
6858
7450
  },
@@ -6907,7 +7499,7 @@
6907
7499
  }
6908
7500
  };
6909
7501
  }
6910
- function create_if_block7(ctx) {
7502
+ function create_if_block8(ctx) {
6911
7503
  let button;
6912
7504
  let t2;
6913
7505
  let button_class_value;
@@ -6918,7 +7510,7 @@
6918
7510
  t2 = text("Missing answers:");
6919
7511
  attr(button, "aria-label", "Missing answers:");
6920
7512
  attr(button, "class", button_class_value = "text-base text-charcoal font-semibold w-full mt-1 mb-2 text-left " + (!/*showButton*/
6921
- ctx[5] ? "hidden md:missing-answer-label" : "missing-answer-label"));
7513
+ ctx[6] ? "hidden md:missing-answer-label" : "missing-answer-label"));
6922
7514
  button.disabled = button_disabled_value = true;
6923
7515
  },
6924
7516
  m(target, anchor) {
@@ -6927,8 +7519,8 @@
6927
7519
  },
6928
7520
  p(ctx2, dirty) {
6929
7521
  if (dirty[0] & /*showButton*/
6930
- 32 && button_class_value !== (button_class_value = "text-base text-charcoal font-semibold w-full mt-1 mb-2 text-left " + (!/*showButton*/
6931
- ctx2[5] ? "hidden md:missing-answer-label" : "missing-answer-label"))) {
7522
+ 64 && button_class_value !== (button_class_value = "text-base text-charcoal font-semibold w-full mt-1 mb-2 text-left " + (!/*showButton*/
7523
+ ctx2[6] ? "hidden md:missing-answer-label" : "missing-answer-label"))) {
6932
7524
  attr(button, "class", button_class_value);
6933
7525
  }
6934
7526
  },
@@ -6946,14 +7538,14 @@
6946
7538
  let current;
6947
7539
  let if_block = (
6948
7540
  /*item*/
6949
- ctx[38].type === ANSWER_MISSED && create_if_block7(ctx)
7541
+ ctx[38].type === ANSWER_MISSED && create_if_block8(ctx)
6950
7542
  );
6951
7543
  promptcategorisewordbutton = new PromptCategoriseWordButton_default({
6952
7544
  props: {
6953
7545
  otherClass: "mr-2 mb-2 last:mr-0 " + /*item*/
6954
7546
  (ctx[38].id === /*considerItemId*/
6955
7547
  ctx[11] ? "!bg-violet-150" : "") + "\n " + (!/*showButton*/
6956
- ctx[5] ? "hidden md:flex" : "") + "\n " + /*items*/
7548
+ ctx[6] ? "hidden md:flex" : "") + "\n " + /*items*/
6957
7549
  (ctx[19][
6958
7550
  /*currentWordBinIndex*/
6959
7551
  ctx[15]
@@ -6974,12 +7566,12 @@
6974
7566
  ),
6975
7567
  containerId: (
6976
7568
  /*containerId*/
6977
- ctx[3]
7569
+ ctx[4]
6978
7570
  ),
6979
7571
  wordFocus: (
6980
7572
  /*currentTabContainer*/
6981
7573
  ctx[17] === /*containerId*/
6982
- ctx[3] && /*item*/
7574
+ ctx[4] && /*item*/
6983
7575
  ctx[38].id === /*items*/
6984
7576
  ctx[19][0].id
6985
7577
  ),
@@ -7038,7 +7630,7 @@
7038
7630
  if (if_block) {
7039
7631
  if_block.p(ctx, dirty);
7040
7632
  } else {
7041
- if_block = create_if_block7(ctx);
7633
+ if_block = create_if_block8(ctx);
7042
7634
  if_block.c();
7043
7635
  if_block.m(t2.parentNode, t2);
7044
7636
  }
@@ -7048,11 +7640,11 @@
7048
7640
  }
7049
7641
  const promptcategorisewordbutton_changes = {};
7050
7642
  if (dirty[0] & /*items, considerItemId, showButton, currentWordBinIndex*/
7051
- 559136)
7643
+ 559168)
7052
7644
  promptcategorisewordbutton_changes.otherClass = "mr-2 mb-2 last:mr-0 " + /*item*/
7053
7645
  (ctx[38].id === /*considerItemId*/
7054
7646
  ctx[11] ? "!bg-violet-150" : "") + "\n " + (!/*showButton*/
7055
- ctx[5] ? "hidden md:flex" : "") + "\n " + /*items*/
7647
+ ctx[6] ? "hidden md:flex" : "") + "\n " + /*items*/
7056
7648
  (ctx[19][
7057
7649
  /*currentWordBinIndex*/
7058
7650
  ctx[15]
@@ -7072,14 +7664,14 @@
7072
7664
  promptcategorisewordbutton_changes.isClonedItem = /*item*/
7073
7665
  ctx[38].isClonedItem;
7074
7666
  if (dirty[0] & /*containerId*/
7075
- 8)
7667
+ 16)
7076
7668
  promptcategorisewordbutton_changes.containerId = /*containerId*/
7077
- ctx[3];
7669
+ ctx[4];
7078
7670
  if (dirty[0] & /*currentTabContainer, containerId, items*/
7079
- 655368)
7671
+ 655376)
7080
7672
  promptcategorisewordbutton_changes.wordFocus = /*currentTabContainer*/
7081
7673
  ctx[17] === /*containerId*/
7082
- ctx[3] && /*item*/
7674
+ ctx[4] && /*item*/
7083
7675
  ctx[38].id === /*items*/
7084
7676
  ctx[19][0].id;
7085
7677
  if (dirty[0] & /*isFinished*/
@@ -7125,7 +7717,7 @@
7125
7717
  }
7126
7718
  };
7127
7719
  }
7128
- function create_fragment11(ctx) {
7720
+ function create_fragment12(ctx) {
7129
7721
  let t0;
7130
7722
  let t1;
7131
7723
  let section;
@@ -7141,7 +7733,7 @@
7141
7733
  /*dragDisabled*/
7142
7734
  ctx[13] && /*sourceSelectedContainerId*/
7143
7735
  ctx[14] !== /*containerId*/
7144
- ctx[3] && !/*isFinished*/
7736
+ ctx[4] && !/*isFinished*/
7145
7737
  ctx[8] && create_if_block_26(ctx)
7146
7738
  );
7147
7739
  let if_block1 = (
@@ -7176,7 +7768,7 @@
7176
7768
  }
7177
7769
  attr(section, "role", "group");
7178
7770
  attr(section, "class", section_class_value = "flex flex-wrap " + /*containerClass*/
7179
- ctx[1] + " category-content");
7771
+ ctx[2] + " category-content");
7180
7772
  attr(
7181
7773
  section,
7182
7774
  "aria-hidden",
@@ -7188,11 +7780,11 @@
7188
7780
  section,
7189
7781
  "id",
7190
7782
  /*containerId*/
7191
- ctx[3]
7783
+ ctx[4]
7192
7784
  );
7193
7785
  attr(section, "style", section_style_value = !/*isContainerWordBin*/
7194
7786
  ctx[22] ? `padding-top: ${/*paddingTop*/
7195
- ctx[6]}px;` : "");
7787
+ ctx[7]}px;` : "");
7196
7788
  },
7197
7789
  m(target, anchor) {
7198
7790
  if (if_block0)
@@ -7217,11 +7809,11 @@
7217
7809
  ),
7218
7810
  flipDurationMs: (
7219
7811
  /*flipDurationMs*/
7220
- ctx[2]
7812
+ ctx[3]
7221
7813
  ),
7222
7814
  type: (
7223
7815
  /*type*/
7224
- ctx[4]
7816
+ ctx[5]
7225
7817
  ),
7226
7818
  dropTargetClasses: (
7227
7819
  /*dropTargetClasses*/
@@ -7236,7 +7828,7 @@
7236
7828
  zoneItemTabIndex: (
7237
7829
  /*currentTabContainer*/
7238
7830
  ctx[17] !== /*containerId*/
7239
- ctx[3] || /*selectedItemId*/
7831
+ ctx[4] || /*selectedItemId*/
7240
7832
  ctx[12] || /*isModalOpen*/
7241
7833
  ctx[18] ? -1 : 0
7242
7834
  ),
@@ -7263,7 +7855,7 @@
7263
7855
  /*dragDisabled*/
7264
7856
  ctx2[13] && /*sourceSelectedContainerId*/
7265
7857
  ctx2[14] !== /*containerId*/
7266
- ctx2[3] && !/*isFinished*/
7858
+ ctx2[4] && !/*isFinished*/
7267
7859
  ctx2[8]
7268
7860
  ) {
7269
7861
  if (if_block0) {
@@ -7294,7 +7886,7 @@
7294
7886
  if_block1 = null;
7295
7887
  }
7296
7888
  if (dirty[0] & /*items, considerItemId, showButton, currentWordBinIndex, isContainerWordBin, containerId, currentTabContainer, isFinished, categoryData, correctAnswerList, isPreviewModeInteractive, updateCategoryByButton*/
7297
- 71995177) {
7889
+ 71995217) {
7298
7890
  each_value = ensure_array_like(Object.values(
7299
7891
  /*items*/
7300
7892
  ctx2[19]
@@ -7304,8 +7896,8 @@
7304
7896
  check_outros();
7305
7897
  }
7306
7898
  if (!current || dirty[0] & /*containerClass*/
7307
- 2 && section_class_value !== (section_class_value = "flex flex-wrap " + /*containerClass*/
7308
- ctx2[1] + " category-content")) {
7899
+ 4 && section_class_value !== (section_class_value = "flex flex-wrap " + /*containerClass*/
7900
+ ctx2[2] + " category-content")) {
7309
7901
  attr(section, "class", section_class_value);
7310
7902
  }
7311
7903
  if (!current || dirty[0] & /*isItemsAriaHidden*/
@@ -7318,22 +7910,22 @@
7318
7910
  );
7319
7911
  }
7320
7912
  if (!current || dirty[0] & /*containerId*/
7321
- 8) {
7913
+ 16) {
7322
7914
  attr(
7323
7915
  section,
7324
7916
  "id",
7325
7917
  /*containerId*/
7326
- ctx2[3]
7918
+ ctx2[4]
7327
7919
  );
7328
7920
  }
7329
7921
  if (!current || dirty[0] & /*paddingTop*/
7330
- 64 && section_style_value !== (section_style_value = !/*isContainerWordBin*/
7922
+ 128 && section_style_value !== (section_style_value = !/*isContainerWordBin*/
7331
7923
  ctx2[22] ? `padding-top: ${/*paddingTop*/
7332
- ctx2[6]}px;` : "")) {
7924
+ ctx2[7]}px;` : "")) {
7333
7925
  attr(section, "style", section_style_value);
7334
7926
  }
7335
7927
  if (dndzone_action && is_function(dndzone_action.update) && dirty[0] & /*items, flipDurationMs, type, dragDisabled, currentTabContainer, containerId, selectedItemId, isModalOpen*/
7336
- 929820)
7928
+ 929848)
7337
7929
  dndzone_action.update.call(null, {
7338
7930
  items: (
7339
7931
  /*items*/
@@ -7341,11 +7933,11 @@
7341
7933
  ),
7342
7934
  flipDurationMs: (
7343
7935
  /*flipDurationMs*/
7344
- ctx2[2]
7936
+ ctx2[3]
7345
7937
  ),
7346
7938
  type: (
7347
7939
  /*type*/
7348
- ctx2[4]
7940
+ ctx2[5]
7349
7941
  ),
7350
7942
  dropTargetClasses: (
7351
7943
  /*dropTargetClasses*/
@@ -7360,7 +7952,7 @@
7360
7952
  zoneItemTabIndex: (
7361
7953
  /*currentTabContainer*/
7362
7954
  ctx2[17] !== /*containerId*/
7363
- ctx2[3] || /*selectedItemId*/
7955
+ ctx2[4] || /*selectedItemId*/
7364
7956
  ctx2[12] || /*isModalOpen*/
7365
7957
  ctx2[18] ? -1 : 0
7366
7958
  ),
@@ -7399,7 +7991,7 @@
7399
7991
  }
7400
7992
  };
7401
7993
  }
7402
- function instance7($$self, $$props, $$invalidate) {
7994
+ function instance8($$self, $$props, $$invalidate) {
7403
7995
  let { containerClass = "" } = $$props;
7404
7996
  let { flipDurationMs = 5 } = $$props;
7405
7997
  let { containerId = "" } = $$props;
@@ -7412,6 +8004,7 @@
7412
8004
  let { isPreviewModeInteractive = false } = $$props;
7413
8005
  let { categoryData = [] } = $$props;
7414
8006
  let { modalData = [] } = $$props;
8007
+ ariaLabel = useRemoveRichTextHtmlTags(ariaLabel);
7415
8008
  let considerItemId = "";
7416
8009
  let selectedItemId = "";
7417
8010
  let dragDisabled = isFinished;
@@ -7477,7 +8070,7 @@
7477
8070
  addAnswerItemStore(id, currentTarget.id);
7478
8071
  const itemIndex = rawCategoryItems.findIndex((item) => item.id === id);
7479
8072
  updateCategoryData({
7480
- selectedItemName: rawCategoryItems[itemIndex].text
8073
+ selectedItemName: useRemoveRichTextHtmlTags(rawCategoryItems[itemIndex].text)
7481
8074
  });
7482
8075
  }
7483
8076
  updateCategoryData({ considerCloneItemId: "" });
@@ -7487,9 +8080,9 @@
7487
8080
  const { currentAnswer: currentAnswer2, rawCategories, rawCategoryItems: rawCategoryItems2 } = categoryData;
7488
8081
  const categoryAnswer = currentAnswer2.filter((answer) => answer.categoryId !== CONTAINER_WORD_BIN_ID).map((answer) => {
7489
8082
  const { categoryId, itemId } = answer;
7490
- const categoryList = rawCategories.filter((category) => category.id === categoryId).map((category) => category.name)[0];
8083
+ const categoryList = rawCategories.filter((category) => category.id === categoryId).map((category) => useRemoveRichTextHtmlTags(category.name))[0];
7491
8084
  const itemList = itemId.map((item) => {
7492
- return rawCategoryItems2.filter((categoryItem) => categoryItem.id === item).map((categoryItem) => categoryItem.text)[0];
8085
+ return rawCategoryItems2.filter((categoryItem) => categoryItem.id === item).map((categoryItem) => useRemoveRichTextHtmlTags(categoryItem.text))[0];
7493
8086
  });
7494
8087
  return {
7495
8088
  category_id: categoryId,
@@ -7623,19 +8216,19 @@
7623
8216
  };
7624
8217
  $$self.$$set = ($$props2) => {
7625
8218
  if ("containerClass" in $$props2)
7626
- $$invalidate(1, containerClass = $$props2.containerClass);
8219
+ $$invalidate(2, containerClass = $$props2.containerClass);
7627
8220
  if ("flipDurationMs" in $$props2)
7628
- $$invalidate(2, flipDurationMs = $$props2.flipDurationMs);
8221
+ $$invalidate(3, flipDurationMs = $$props2.flipDurationMs);
7629
8222
  if ("containerId" in $$props2)
7630
- $$invalidate(3, containerId = $$props2.containerId);
8223
+ $$invalidate(4, containerId = $$props2.containerId);
7631
8224
  if ("type" in $$props2)
7632
- $$invalidate(4, type = $$props2.type);
8225
+ $$invalidate(5, type = $$props2.type);
7633
8226
  if ("showButton" in $$props2)
7634
- $$invalidate(5, showButton = $$props2.showButton);
8227
+ $$invalidate(6, showButton = $$props2.showButton);
7635
8228
  if ("paddingTop" in $$props2)
7636
- $$invalidate(6, paddingTop = $$props2.paddingTop);
8229
+ $$invalidate(7, paddingTop = $$props2.paddingTop);
7637
8230
  if ("ariaLabel" in $$props2)
7638
- $$invalidate(7, ariaLabel = $$props2.ariaLabel);
8231
+ $$invalidate(1, ariaLabel = $$props2.ariaLabel);
7639
8232
  if ("isFinished" in $$props2)
7640
8233
  $$invalidate(8, isFinished = $$props2.isFinished);
7641
8234
  if ("correctAnswerList" in $$props2)
@@ -7657,7 +8250,7 @@
7657
8250
  }
7658
8251
  }
7659
8252
  if ($$self.$$.dirty[0] & /*categoryData, isFinished, currentAnswer, containerId, considerItemId, isPreviewModeInteractive*/
7660
- 268438793) {
8253
+ 268438801) {
7661
8254
  $:
7662
8255
  if (categoryData) {
7663
8256
  const { considerItemId: storeconsiderItemId, selectedItemId: storeSelectedItemId, currentAnswer: storeCurrentAnswer, sourceSelectedContainerId: storeSourceSelectedContainerId, currentWordBinIndex: storeCurrentWordBinIndex, currentTabContainer: storeCurrentTabContainer, isItemsAriaHidden: storeisItemsAriaHidden } = categoryData;
@@ -7698,13 +8291,13 @@
7698
8291
  };
7699
8292
  return [
7700
8293
  categoryData,
8294
+ ariaLabel,
7701
8295
  containerClass,
7702
8296
  flipDurationMs,
7703
8297
  containerId,
7704
8298
  type,
7705
8299
  showButton,
7706
8300
  paddingTop,
7707
- ariaLabel,
7708
8301
  isFinished,
7709
8302
  correctAnswerList,
7710
8303
  isPreviewModeInteractive,
@@ -7734,17 +8327,17 @@
7734
8327
  init(
7735
8328
  this,
7736
8329
  options,
7737
- instance7,
7738
- create_fragment11,
8330
+ instance8,
8331
+ create_fragment12,
7739
8332
  safe_not_equal,
7740
8333
  {
7741
- containerClass: 1,
7742
- flipDurationMs: 2,
7743
- containerId: 3,
7744
- type: 4,
7745
- showButton: 5,
7746
- paddingTop: 6,
7747
- ariaLabel: 7,
8334
+ containerClass: 2,
8335
+ flipDurationMs: 3,
8336
+ containerId: 4,
8337
+ type: 5,
8338
+ showButton: 6,
8339
+ paddingTop: 7,
8340
+ ariaLabel: 1,
7748
8341
  isFinished: 8,
7749
8342
  correctAnswerList: 9,
7750
8343
  isPreviewModeInteractive: 10,
@@ -7756,49 +8349,49 @@
7756
8349
  );
7757
8350
  }
7758
8351
  get containerClass() {
7759
- return this.$$.ctx[1];
8352
+ return this.$$.ctx[2];
7760
8353
  }
7761
8354
  set containerClass(containerClass) {
7762
8355
  this.$$set({ containerClass });
7763
8356
  flush();
7764
8357
  }
7765
8358
  get flipDurationMs() {
7766
- return this.$$.ctx[2];
8359
+ return this.$$.ctx[3];
7767
8360
  }
7768
8361
  set flipDurationMs(flipDurationMs) {
7769
8362
  this.$$set({ flipDurationMs });
7770
8363
  flush();
7771
8364
  }
7772
8365
  get containerId() {
7773
- return this.$$.ctx[3];
8366
+ return this.$$.ctx[4];
7774
8367
  }
7775
8368
  set containerId(containerId) {
7776
8369
  this.$$set({ containerId });
7777
8370
  flush();
7778
8371
  }
7779
8372
  get type() {
7780
- return this.$$.ctx[4];
8373
+ return this.$$.ctx[5];
7781
8374
  }
7782
8375
  set type(type) {
7783
8376
  this.$$set({ type });
7784
8377
  flush();
7785
8378
  }
7786
8379
  get showButton() {
7787
- return this.$$.ctx[5];
8380
+ return this.$$.ctx[6];
7788
8381
  }
7789
8382
  set showButton(showButton) {
7790
8383
  this.$$set({ showButton });
7791
8384
  flush();
7792
8385
  }
7793
8386
  get paddingTop() {
7794
- return this.$$.ctx[6];
8387
+ return this.$$.ctx[7];
7795
8388
  }
7796
8389
  set paddingTop(paddingTop) {
7797
8390
  this.$$set({ paddingTop });
7798
8391
  flush();
7799
8392
  }
7800
8393
  get ariaLabel() {
7801
- return this.$$.ctx[7];
8394
+ return this.$$.ctx[1];
7802
8395
  }
7803
8396
  set ariaLabel(ariaLabel) {
7804
8397
  this.$$set({ ariaLabel });
@@ -7844,7 +8437,7 @@
7844
8437
  var PromptCategoriseDndContainer_default = PromptCategoriseDndContainer;
7845
8438
 
7846
8439
  // src/lib/components/common/CommonModal.svelte
7847
- function create_fragment12(ctx) {
8440
+ function create_fragment13(ctx) {
7848
8441
  let div2;
7849
8442
  let div0;
7850
8443
  let t2;
@@ -7976,7 +8569,7 @@
7976
8569
  var keypress_handler = () => {
7977
8570
  return false;
7978
8571
  };
7979
- function instance8($$self, $$props, $$invalidate) {
8572
+ function instance9($$self, $$props, $$invalidate) {
7980
8573
  let { $$slots: slots = {}, $$scope } = $$props;
7981
8574
  let { modalData = [] } = $$props;
7982
8575
  const dispatch = createEventDispatcher();
@@ -8008,7 +8601,7 @@
8008
8601
  var CommonModal = class extends SvelteComponent {
8009
8602
  constructor(options) {
8010
8603
  super();
8011
- init(this, options, instance8, create_fragment12, safe_not_equal, { modalData: 3 });
8604
+ init(this, options, instance9, create_fragment13, safe_not_equal, { modalData: 3 });
8012
8605
  }
8013
8606
  get modalData() {
8014
8607
  return this.$$.ctx[3];
@@ -8022,7 +8615,7 @@
8022
8615
  var CommonModal_default = CommonModal;
8023
8616
 
8024
8617
  // src/lib/assets/img/messaging/AlertIcon.svelte
8025
- function create_fragment13(ctx) {
8618
+ function create_fragment14(ctx) {
8026
8619
  let svg;
8027
8620
  let path;
8028
8621
  return {
@@ -8056,14 +8649,14 @@
8056
8649
  var AlertIcon = class extends SvelteComponent {
8057
8650
  constructor(options) {
8058
8651
  super();
8059
- init(this, options, null, create_fragment13, safe_not_equal, {});
8652
+ init(this, options, null, create_fragment14, safe_not_equal, {});
8060
8653
  }
8061
8654
  };
8062
8655
  create_custom_element(AlertIcon, {}, [], [], true);
8063
8656
  var AlertIcon_default = AlertIcon;
8064
8657
 
8065
8658
  // src/lib/assets/img/messaging/CrossIcon.svelte
8066
- function create_fragment14(ctx) {
8659
+ function create_fragment15(ctx) {
8067
8660
  let svg;
8068
8661
  let path;
8069
8662
  return {
@@ -8097,7 +8690,7 @@
8097
8690
  var CrossIcon = class extends SvelteComponent {
8098
8691
  constructor(options) {
8099
8692
  super();
8100
- init(this, options, null, create_fragment14, safe_not_equal, {});
8693
+ init(this, options, null, create_fragment15, safe_not_equal, {});
8101
8694
  }
8102
8695
  };
8103
8696
  create_custom_element(CrossIcon, {}, [], [], true);
@@ -8257,7 +8850,7 @@
8257
8850
  }
8258
8851
  };
8259
8852
  }
8260
- function create_fragment15(ctx) {
8853
+ function create_fragment16(ctx) {
8261
8854
  let commonmodal;
8262
8855
  let current;
8263
8856
  commonmodal = new CommonModal_default({
@@ -8310,7 +8903,7 @@
8310
8903
  }
8311
8904
  };
8312
8905
  }
8313
- function instance9($$self, $$props, $$invalidate) {
8906
+ function instance10($$self, $$props, $$invalidate) {
8314
8907
  let { categoryData = [] } = $$props;
8315
8908
  let { modalData = [] } = $$props;
8316
8909
  let categoryModal;
@@ -8393,7 +8986,7 @@
8393
8986
  var PromptCategoriseModal = class extends SvelteComponent {
8394
8987
  constructor(options) {
8395
8988
  super();
8396
- init(this, options, instance9, create_fragment15, safe_not_equal, { categoryData: 6, modalData: 0 });
8989
+ init(this, options, instance10, create_fragment16, safe_not_equal, { categoryData: 6, modalData: 0 });
8397
8990
  }
8398
8991
  get categoryData() {
8399
8992
  return this.$$.ctx[6];
@@ -8414,7 +9007,7 @@
8414
9007
  var PromptCategoriseModal_default = PromptCategoriseModal;
8415
9008
 
8416
9009
  // src/lib/assets/img/action/Switch.svelte
8417
- function create_fragment16(ctx) {
9010
+ function create_fragment17(ctx) {
8418
9011
  let svg;
8419
9012
  let path;
8420
9013
  return {
@@ -8446,14 +9039,14 @@
8446
9039
  var Switch = class extends SvelteComponent {
8447
9040
  constructor(options) {
8448
9041
  super();
8449
- init(this, options, null, create_fragment16, safe_not_equal, {});
9042
+ init(this, options, null, create_fragment17, safe_not_equal, {});
8450
9043
  }
8451
9044
  };
8452
9045
  create_custom_element(Switch, {}, [], [], true);
8453
9046
  var Switch_default = Switch;
8454
9047
 
8455
9048
  // src/lib/assets/img/messaging/SmallChevronUp.svelte
8456
- function create_fragment17(ctx) {
9049
+ function create_fragment18(ctx) {
8457
9050
  let svg;
8458
9051
  let path;
8459
9052
  return {
@@ -8487,14 +9080,14 @@
8487
9080
  var SmallChevronUp = class extends SvelteComponent {
8488
9081
  constructor(options) {
8489
9082
  super();
8490
- init(this, options, null, create_fragment17, safe_not_equal, {});
9083
+ init(this, options, null, create_fragment18, safe_not_equal, {});
8491
9084
  }
8492
9085
  };
8493
9086
  create_custom_element(SmallChevronUp, {}, [], [], true);
8494
9087
  var SmallChevronUp_default = SmallChevronUp;
8495
9088
 
8496
9089
  // src/lib/assets/img/messaging/SmallChevronDown.svelte
8497
- function create_fragment18(ctx) {
9090
+ function create_fragment19(ctx) {
8498
9091
  let svg;
8499
9092
  let path;
8500
9093
  return {
@@ -8528,14 +9121,14 @@
8528
9121
  var SmallChevronDown = class extends SvelteComponent {
8529
9122
  constructor(options) {
8530
9123
  super();
8531
- init(this, options, null, create_fragment18, safe_not_equal, {});
9124
+ init(this, options, null, create_fragment19, safe_not_equal, {});
8532
9125
  }
8533
9126
  };
8534
9127
  create_custom_element(SmallChevronDown, {}, [], [], true);
8535
9128
  var SmallChevronDown_default = SmallChevronDown;
8536
9129
 
8537
9130
  // src/lib/assets/img/messaging/SmallChevronLeft.svelte
8538
- function create_fragment19(ctx) {
9131
+ function create_fragment20(ctx) {
8539
9132
  let svg;
8540
9133
  let path;
8541
9134
  return {
@@ -8569,14 +9162,14 @@
8569
9162
  var SmallChevronLeft = class extends SvelteComponent {
8570
9163
  constructor(options) {
8571
9164
  super();
8572
- init(this, options, null, create_fragment19, safe_not_equal, {});
9165
+ init(this, options, null, create_fragment20, safe_not_equal, {});
8573
9166
  }
8574
9167
  };
8575
9168
  create_custom_element(SmallChevronLeft, {}, [], [], true);
8576
9169
  var SmallChevronLeft_default = SmallChevronLeft;
8577
9170
 
8578
9171
  // src/lib/assets/img/messaging/SmallChevronRight.svelte
8579
- function create_fragment20(ctx) {
9172
+ function create_fragment21(ctx) {
8580
9173
  let svg;
8581
9174
  let path;
8582
9175
  return {
@@ -8610,14 +9203,14 @@
8610
9203
  var SmallChevronRight = class extends SvelteComponent {
8611
9204
  constructor(options) {
8612
9205
  super();
8613
- init(this, options, null, create_fragment20, safe_not_equal, {});
9206
+ init(this, options, null, create_fragment21, safe_not_equal, {});
8614
9207
  }
8615
9208
  };
8616
9209
  create_custom_element(SmallChevronRight, {}, [], [], true);
8617
9210
  var SmallChevronRight_default = SmallChevronRight;
8618
9211
 
8619
9212
  // src/lib/assets/img/messaging/ArrowDownCircle.svelte
8620
- function create_fragment21(ctx) {
9213
+ function create_fragment22(ctx) {
8621
9214
  let svg;
8622
9215
  let path;
8623
9216
  return {
@@ -8651,7 +9244,7 @@
8651
9244
  var ArrowDownCircle = class extends SvelteComponent {
8652
9245
  constructor(options) {
8653
9246
  super();
8654
- init(this, options, null, create_fragment21, safe_not_equal, {});
9247
+ init(this, options, null, create_fragment22, safe_not_equal, {});
8655
9248
  }
8656
9249
  };
8657
9250
  create_custom_element(ArrowDownCircle, {}, [], [], true);
@@ -8827,7 +9420,7 @@
8827
9420
  child_ctx[69] = i;
8828
9421
  return child_ctx;
8829
9422
  }
8830
- function create_if_block_6(ctx) {
9423
+ function create_if_block_72(ctx) {
8831
9424
  let promptcategorisemodal;
8832
9425
  let current;
8833
9426
  promptcategorisemodal = new PromptCategoriseModal_default({
@@ -8892,7 +9485,7 @@
8892
9485
  }
8893
9486
  };
8894
9487
  }
8895
- function create_if_block_5(ctx) {
9488
+ function create_if_block_62(ctx) {
8896
9489
  let button;
8897
9490
  let span0;
8898
9491
  let switchicon;
@@ -8969,7 +9562,7 @@
8969
9562
  }
8970
9563
  };
8971
9564
  }
8972
- function create_if_block_43(ctx) {
9565
+ function create_if_block_52(ctx) {
8973
9566
  let span;
8974
9567
  let t0;
8975
9568
  let t1;
@@ -8982,7 +9575,7 @@
8982
9575
  /*selectedItemName*/
8983
9576
  ctx[21]
8984
9577
  );
8985
- t2 = text(" added in:\xA0");
9578
+ t2 = text(" added in\xA0");
8986
9579
  attr(span, "class", "sr-only");
8987
9580
  },
8988
9581
  m(target, anchor) {
@@ -9007,6 +9600,28 @@
9007
9600
  }
9008
9601
  };
9009
9602
  }
9603
+ function create_if_block_43(ctx) {
9604
+ let span;
9605
+ return {
9606
+ c() {
9607
+ span = element("span");
9608
+ span.textContent = `${useRemoveRichTextHtmlTags(
9609
+ /*category*/
9610
+ ctx[67].name
9611
+ )}`;
9612
+ attr(span, "class", "sr-only");
9613
+ },
9614
+ m(target, anchor) {
9615
+ insert(target, span, anchor);
9616
+ },
9617
+ p: noop,
9618
+ d(detaching) {
9619
+ if (detaching) {
9620
+ detach(span);
9621
+ }
9622
+ }
9623
+ };
9624
+ }
9010
9625
  function create_if_block_34(ctx) {
9011
9626
  let span;
9012
9627
  let t0;
@@ -9025,7 +9640,7 @@
9025
9640
  return {
9026
9641
  c() {
9027
9642
  span = element("span");
9028
- t0 = text(".\xA0 ");
9643
+ t0 = text("\xA0");
9029
9644
  t1 = text(t1_value);
9030
9645
  t2 = text(" added");
9031
9646
  attr(span, "class", "sr-only");
@@ -9065,7 +9680,7 @@
9065
9680
  return {
9066
9681
  c() {
9067
9682
  span = element("span");
9068
- t0 = text(". Student's answer: ");
9683
+ t0 = text(".\xA0Student's answer: ");
9069
9684
  t1 = text(
9070
9685
  /*selectedItemName*/
9071
9686
  ctx[21]
@@ -9166,7 +9781,7 @@
9166
9781
  function create_each_block3(ctx) {
9167
9782
  let div1;
9168
9783
  let div0;
9169
- let show_if_1 = (
9784
+ let show_if_2 = (
9170
9785
  /*checkContainerDroppedItem*/
9171
9786
  ctx[31](
9172
9787
  /*category*/
@@ -9178,12 +9793,23 @@
9178
9793
  let t0;
9179
9794
  let span0;
9180
9795
  let t4;
9181
- let span1;
9796
+ let commonstringtohtml;
9797
+ let t5;
9798
+ let show_if_1 = (
9799
+ /*checkContainerDroppedItem*/
9800
+ ctx[31](
9801
+ /*category*/
9802
+ ctx[67].id,
9803
+ /*dropContainerId*/
9804
+ ctx[12]
9805
+ ) && /*enableAriaLive*/
9806
+ ctx[22]
9807
+ );
9182
9808
  let t6;
9183
9809
  let t7;
9184
9810
  let t8;
9185
9811
  let button;
9186
- let span2;
9812
+ let span1;
9187
9813
  let t9_value = (
9188
9814
  /*getTotalWords*/
9189
9815
  ctx[34](
@@ -9195,10 +9821,10 @@
9195
9821
  );
9196
9822
  let t9;
9197
9823
  let t10;
9198
- let span3;
9824
+ let span2;
9199
9825
  let show_if;
9200
9826
  let current_block_type_index;
9201
- let if_block3;
9827
+ let if_block4;
9202
9828
  let button_aria_label_value;
9203
9829
  let div0_id_value;
9204
9830
  let div0_aria_live_value;
@@ -9215,10 +9841,30 @@
9215
9841
  let current;
9216
9842
  let mounted;
9217
9843
  let dispose;
9218
- let if_block0 = show_if_1 && create_if_block_43(ctx);
9219
- let if_block1 = !/*previewResultSr*/
9844
+ let if_block0 = show_if_2 && create_if_block_52(ctx);
9845
+ commonstringtohtml = new CommonStringToHtml_default({
9846
+ props: {
9847
+ ariaHidden: (
9848
+ /*checkContainerDroppedItem*/
9849
+ ctx[31](
9850
+ /*category*/
9851
+ ctx[67].id,
9852
+ /*dropContainerId*/
9853
+ ctx[12]
9854
+ ) && /*enableAriaLive*/
9855
+ ctx[22]
9856
+ ),
9857
+ htmlString: (
9858
+ /*category*/
9859
+ ctx[67].name
9860
+ ),
9861
+ otherClass: "text-base leading-5 !text-gray-900 md:item-heading"
9862
+ }
9863
+ });
9864
+ let if_block1 = show_if_1 && create_if_block_43(ctx);
9865
+ let if_block2 = !/*previewResultSr*/
9220
9866
  ctx[4] && create_if_block_34(ctx);
9221
- let if_block2 = (
9867
+ let if_block3 = (
9222
9868
  /*previewResultSr*/
9223
9869
  ctx[4] && create_if_block_27(ctx)
9224
9870
  );
@@ -9241,7 +9887,7 @@
9241
9887
  return 1;
9242
9888
  }
9243
9889
  current_block_type_index = select_block_type(ctx, [-1, -1, -1]);
9244
- if_block3 = if_blocks[current_block_type_index] = if_block_creators[current_block_type_index](ctx);
9890
+ if_block4 = if_blocks[current_block_type_index] = if_block_creators[current_block_type_index](ctx);
9245
9891
  function div0_elementresize_handler() {
9246
9892
  ctx[49].call(
9247
9893
  div0,
@@ -9364,29 +10010,29 @@
9364
10010
  span0.textContent = `Category ${/*index*/
9365
10011
  ctx[69] + 1}:\xA0`;
9366
10012
  t4 = space();
9367
- span1 = element("span");
9368
- span1.textContent = `${/*category*/
9369
- ctx[67].name}`;
9370
- t6 = space();
10013
+ create_component(commonstringtohtml.$$.fragment);
10014
+ t5 = space();
9371
10015
  if (if_block1)
9372
10016
  if_block1.c();
9373
- t7 = space();
10017
+ t6 = space();
9374
10018
  if (if_block2)
9375
10019
  if_block2.c();
10020
+ t7 = space();
10021
+ if (if_block3)
10022
+ if_block3.c();
9376
10023
  t8 = space();
9377
10024
  button = element("button");
9378
- span2 = element("span");
10025
+ span1 = element("span");
9379
10026
  t9 = text(t9_value);
9380
10027
  t10 = space();
9381
- span3 = element("span");
9382
- if_block3.c();
10028
+ span2 = element("span");
10029
+ if_block4.c();
9383
10030
  t11 = space();
9384
10031
  create_component(promptcategorisedndcontainer.$$.fragment);
9385
10032
  t12 = space();
9386
10033
  attr(span0, "class", "sr-only");
9387
- attr(span1, "class", "text-base leading-5 !text-gray-900 md:item-heading");
9388
- attr(span2, "class", "mx-0.5");
9389
- attr(span3, "class", "w-4 h-4 text-inherit flex items-center justify-center");
10034
+ attr(span1, "class", "mx-0.5");
10035
+ attr(span2, "class", "w-4 h-4 text-inherit flex items-center justify-center");
9390
10036
  attr(button, "aria-label", button_aria_label_value = /*getTotalWords*/
9391
10037
  ctx[34](
9392
10038
  /*category*/
@@ -9505,20 +10151,23 @@
9505
10151
  append(div0, t0);
9506
10152
  append(div0, span0);
9507
10153
  append(div0, t4);
9508
- append(div0, span1);
9509
- append(div0, t6);
10154
+ mount_component(commonstringtohtml, div0, null);
10155
+ append(div0, t5);
9510
10156
  if (if_block1)
9511
10157
  if_block1.m(div0, null);
9512
- append(div0, t7);
10158
+ append(div0, t6);
9513
10159
  if (if_block2)
9514
10160
  if_block2.m(div0, null);
10161
+ append(div0, t7);
10162
+ if (if_block3)
10163
+ if_block3.m(div0, null);
9515
10164
  append(div0, t8);
9516
10165
  append(div0, button);
9517
- append(button, span2);
9518
- append(span2, t9);
10166
+ append(button, span1);
10167
+ append(span1, t9);
9519
10168
  append(button, t10);
9520
- append(button, span3);
9521
- if_blocks[current_block_type_index].m(span3, null);
10169
+ append(button, span2);
10170
+ if_blocks[current_block_type_index].m(span2, null);
9522
10171
  div0_resize_listener = add_iframe_resize_listener(div0, div0_elementresize_handler.bind(div0));
9523
10172
  append(div1, t11);
9524
10173
  mount_component(promptcategorisedndcontainer, div1, null);
@@ -9565,18 +10214,18 @@
9565
10214
  ctx = new_ctx;
9566
10215
  if (dirty[0] & /*dropContainerId*/
9567
10216
  4096)
9568
- show_if_1 = /*checkContainerDroppedItem*/
10217
+ show_if_2 = /*checkContainerDroppedItem*/
9569
10218
  ctx[31](
9570
10219
  /*category*/
9571
10220
  ctx[67].id,
9572
10221
  /*dropContainerId*/
9573
10222
  ctx[12]
9574
10223
  );
9575
- if (show_if_1) {
10224
+ if (show_if_2) {
9576
10225
  if (if_block0) {
9577
10226
  if_block0.p(ctx, dirty);
9578
10227
  } else {
9579
- if_block0 = create_if_block_43(ctx);
10228
+ if_block0 = create_if_block_52(ctx);
9580
10229
  if_block0.c();
9581
10230
  if_block0.m(div0, t0);
9582
10231
  }
@@ -9584,34 +10233,68 @@
9584
10233
  if_block0.d(1);
9585
10234
  if_block0 = null;
9586
10235
  }
9587
- if (!/*previewResultSr*/
9588
- ctx[4]) {
10236
+ const commonstringtohtml_changes = {};
10237
+ if (dirty[0] & /*dropContainerId, enableAriaLive*/
10238
+ 4198400)
10239
+ commonstringtohtml_changes.ariaHidden = /*checkContainerDroppedItem*/
10240
+ ctx[31](
10241
+ /*category*/
10242
+ ctx[67].id,
10243
+ /*dropContainerId*/
10244
+ ctx[12]
10245
+ ) && /*enableAriaLive*/
10246
+ ctx[22];
10247
+ commonstringtohtml.$set(commonstringtohtml_changes);
10248
+ if (dirty[0] & /*dropContainerId, enableAriaLive*/
10249
+ 4198400)
10250
+ show_if_1 = /*checkContainerDroppedItem*/
10251
+ ctx[31](
10252
+ /*category*/
10253
+ ctx[67].id,
10254
+ /*dropContainerId*/
10255
+ ctx[12]
10256
+ ) && /*enableAriaLive*/
10257
+ ctx[22];
10258
+ if (show_if_1) {
9589
10259
  if (if_block1) {
9590
10260
  if_block1.p(ctx, dirty);
9591
10261
  } else {
9592
- if_block1 = create_if_block_34(ctx);
10262
+ if_block1 = create_if_block_43(ctx);
9593
10263
  if_block1.c();
9594
- if_block1.m(div0, t7);
10264
+ if_block1.m(div0, t6);
9595
10265
  }
9596
10266
  } else if (if_block1) {
9597
10267
  if_block1.d(1);
9598
10268
  if_block1 = null;
9599
10269
  }
9600
- if (
9601
- /*previewResultSr*/
9602
- ctx[4]
9603
- ) {
10270
+ if (!/*previewResultSr*/
10271
+ ctx[4]) {
9604
10272
  if (if_block2) {
9605
10273
  if_block2.p(ctx, dirty);
9606
10274
  } else {
9607
- if_block2 = create_if_block_27(ctx);
10275
+ if_block2 = create_if_block_34(ctx);
9608
10276
  if_block2.c();
9609
- if_block2.m(div0, t8);
10277
+ if_block2.m(div0, t7);
9610
10278
  }
9611
10279
  } else if (if_block2) {
9612
10280
  if_block2.d(1);
9613
10281
  if_block2 = null;
9614
10282
  }
10283
+ if (
10284
+ /*previewResultSr*/
10285
+ ctx[4]
10286
+ ) {
10287
+ if (if_block3) {
10288
+ if_block3.p(ctx, dirty);
10289
+ } else {
10290
+ if_block3 = create_if_block_27(ctx);
10291
+ if_block3.c();
10292
+ if_block3.m(div0, t8);
10293
+ }
10294
+ } else if (if_block3) {
10295
+ if_block3.d(1);
10296
+ if_block3 = null;
10297
+ }
9615
10298
  if ((!current || dirty[0] & /*currentAnswer*/
9616
10299
  8) && t9_value !== (t9_value = /*getTotalWords*/
9617
10300
  ctx[34](
@@ -9629,14 +10312,14 @@
9629
10312
  if_blocks[previous_block_index] = null;
9630
10313
  });
9631
10314
  check_outros();
9632
- if_block3 = if_blocks[current_block_type_index];
9633
- if (!if_block3) {
9634
- if_block3 = if_blocks[current_block_type_index] = if_block_creators[current_block_type_index](ctx);
9635
- if_block3.c();
10315
+ if_block4 = if_blocks[current_block_type_index];
10316
+ if (!if_block4) {
10317
+ if_block4 = if_blocks[current_block_type_index] = if_block_creators[current_block_type_index](ctx);
10318
+ if_block4.c();
9636
10319
  } else {
9637
10320
  }
9638
- transition_in(if_block3, 1);
9639
- if_block3.m(span3, null);
10321
+ transition_in(if_block4, 1);
10322
+ if_block4.m(span2, null);
9640
10323
  }
9641
10324
  if (!current || dirty[0] & /*currentAnswer*/
9642
10325
  8 && button_aria_label_value !== (button_aria_label_value = /*getTotalWords*/
@@ -9832,12 +10515,14 @@
9832
10515
  i(local) {
9833
10516
  if (current)
9834
10517
  return;
9835
- transition_in(if_block3);
10518
+ transition_in(commonstringtohtml.$$.fragment, local);
10519
+ transition_in(if_block4);
9836
10520
  transition_in(promptcategorisedndcontainer.$$.fragment, local);
9837
10521
  current = true;
9838
10522
  },
9839
10523
  o(local) {
9840
- transition_out(if_block3);
10524
+ transition_out(commonstringtohtml.$$.fragment, local);
10525
+ transition_out(if_block4);
9841
10526
  transition_out(promptcategorisedndcontainer.$$.fragment, local);
9842
10527
  current = false;
9843
10528
  },
@@ -9847,10 +10532,13 @@
9847
10532
  }
9848
10533
  if (if_block0)
9849
10534
  if_block0.d();
10535
+ destroy_component(commonstringtohtml);
9850
10536
  if (if_block1)
9851
10537
  if_block1.d();
9852
10538
  if (if_block2)
9853
10539
  if_block2.d();
10540
+ if (if_block3)
10541
+ if_block3.d();
9854
10542
  if_blocks[current_block_type_index].d();
9855
10543
  div0_resize_listener();
9856
10544
  destroy_component(promptcategorisedndcontainer);
@@ -9860,7 +10548,7 @@
9860
10548
  }
9861
10549
  };
9862
10550
  }
9863
- function create_if_block8(ctx) {
10551
+ function create_if_block9(ctx) {
9864
10552
  let span;
9865
10553
  let t0;
9866
10554
  let t1;
@@ -9953,13 +10641,13 @@
9953
10641
  arrowdowncircle = new ArrowDownCircle_default({});
9954
10642
  let if_block0 = (
9955
10643
  /*isModalOpen*/
9956
- ctx[17] && create_if_block_6(ctx)
10644
+ ctx[17] && create_if_block_72(ctx)
9957
10645
  );
9958
10646
  let if_block1 = (
9959
10647
  /*totalRemainingWordBinItem*/
9960
10648
  ctx[15] !== /*totalCategoryItems*/
9961
10649
  ctx[9] && !/*isFinished*/
9962
- ctx[0] && create_if_block_5(ctx)
10650
+ ctx[0] && create_if_block_62(ctx)
9963
10651
  );
9964
10652
  let each_value = ensure_array_like(Object.values(
9965
10653
  /*categoryGroups*/
@@ -9972,7 +10660,7 @@
9972
10660
  const out = (i) => transition_out(each_blocks[i], 1, 1, () => {
9973
10661
  each_blocks[i] = null;
9974
10662
  });
9975
- let if_block2 = show_if && create_if_block8(ctx);
10663
+ let if_block2 = show_if && create_if_block9(ctx);
9976
10664
  smallchevronleft = new SmallChevronLeft_default({});
9977
10665
  promptcategorisedndcontainer = new PromptCategoriseDndContainer_default({
9978
10666
  props: {
@@ -10301,7 +10989,7 @@
10301
10989
  transition_in(if_block0, 1);
10302
10990
  }
10303
10991
  } else {
10304
- if_block0 = create_if_block_6(ctx);
10992
+ if_block0 = create_if_block_72(ctx);
10305
10993
  if_block0.c();
10306
10994
  transition_in(if_block0, 1);
10307
10995
  if_block0.m(t3.parentNode, t3);
@@ -10326,7 +11014,7 @@
10326
11014
  transition_in(if_block1, 1);
10327
11015
  }
10328
11016
  } else {
10329
- if_block1 = create_if_block_5(ctx);
11017
+ if_block1 = create_if_block_62(ctx);
10330
11018
  if_block1.c();
10331
11019
  transition_in(if_block1, 1);
10332
11020
  if_block1.m(div0, null);
@@ -10385,7 +11073,7 @@
10385
11073
  if (if_block2) {
10386
11074
  if_block2.p(ctx, dirty);
10387
11075
  } else {
10388
- if_block2 = create_if_block8(ctx);
11076
+ if_block2 = create_if_block9(ctx);
10389
11077
  if_block2.c();
10390
11078
  if_block2.m(div2, t8);
10391
11079
  }
@@ -10568,7 +11256,7 @@
10568
11256
  }
10569
11257
  };
10570
11258
  }
10571
- function create_fragment22(ctx) {
11259
+ function create_fragment23(ctx) {
10572
11260
  let div;
10573
11261
  let promptbody;
10574
11262
  let current;
@@ -10626,7 +11314,7 @@
10626
11314
  }
10627
11315
  };
10628
11316
  }
10629
- function instance10($$self, $$props, $$invalidate) {
11317
+ function instance11($$self, $$props, $$invalidate) {
10630
11318
  let { sessionData } = $$props;
10631
11319
  let { isFinished = false } = $$props;
10632
11320
  let { isPreviewMode = false } = $$props;
@@ -11051,8 +11739,8 @@
11051
11739
  init(
11052
11740
  this,
11053
11741
  options,
11054
- instance10,
11055
- create_fragment22,
11742
+ instance11,
11743
+ create_fragment23,
11056
11744
  safe_not_equal,
11057
11745
  {
11058
11746
  sessionData: 47,
@@ -11097,7 +11785,7 @@
11097
11785
  var PromptCategorise_default = PromptCategorise;
11098
11786
 
11099
11787
  // src/lib/components/prompt/skeleton/PromptSkeleton.svelte
11100
- function create_fragment23(ctx) {
11788
+ function create_fragment24(ctx) {
11101
11789
  let div3;
11102
11790
  return {
11103
11791
  c() {
@@ -11120,14 +11808,14 @@
11120
11808
  var PromptSkeleton = class extends SvelteComponent {
11121
11809
  constructor(options) {
11122
11810
  super();
11123
- init(this, options, null, create_fragment23, safe_not_equal, {});
11811
+ init(this, options, null, create_fragment24, safe_not_equal, {});
11124
11812
  }
11125
11813
  };
11126
11814
  customElements.define("prompt-skeleton", create_custom_element(PromptSkeleton, {}, [], [], true));
11127
11815
  var PromptSkeleton_default = PromptSkeleton;
11128
11816
 
11129
11817
  // src/lib/components/common/InvalidBanner.svelte
11130
- function create_fragment24(ctx) {
11818
+ function create_fragment25(ctx) {
11131
11819
  let p;
11132
11820
  let t2;
11133
11821
  return {
@@ -11161,7 +11849,7 @@
11161
11849
  }
11162
11850
  };
11163
11851
  }
11164
- function instance11($$self, $$props, $$invalidate) {
11852
+ function instance12($$self, $$props, $$invalidate) {
11165
11853
  let { bannerLabel: bannerLabel2 = "Invalid." } = $$props;
11166
11854
  $$self.$$set = ($$props2) => {
11167
11855
  if ("bannerLabel" in $$props2)
@@ -11172,7 +11860,7 @@
11172
11860
  var InvalidBanner = class extends SvelteComponent {
11173
11861
  constructor(options) {
11174
11862
  super();
11175
- init(this, options, instance11, create_fragment24, safe_not_equal, { bannerLabel: 0 });
11863
+ init(this, options, instance12, create_fragment25, safe_not_equal, { bannerLabel: 0 });
11176
11864
  }
11177
11865
  get bannerLabel() {
11178
11866
  return this.$$.ctx[0];
@@ -11187,7 +11875,7 @@
11187
11875
 
11188
11876
  // src/lib/components/prompt/PromptBuilder.svelte
11189
11877
  function add_css(target) {
11190
- append_styles(target, "svelte-8tpn7j", '*,:after,:before{border:0 solid #e5e7eb;box-sizing:border-box}:after,:before{--tw-content:""}html{-webkit-text-size-adjust:100%;font-feature-settings:normal;font-family:Mulish, sans-serif;font-variation-settings:normal;line-height:1.5;-moz-tab-size:4;-o-tab-size:4;tab-size:4}body{line-height:inherit;margin:0}hr{border-top-width:1px;color:inherit;height:0}abbr:where([title]){-webkit-text-decoration:underline dotted;text-decoration:underline dotted}h1,h2,h3,h4,h5,h6{font-size:inherit;font-weight:inherit}a{color:inherit;text-decoration:inherit}b,strong{font-weight:bolder}code,kbd,pre,samp{font-family:ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, Liberation Mono, Courier New, monospace;font-size:1em}small{font-size:80%}sub,sup{font-size:75%;line-height:0;position:relative;vertical-align:baseline}sub{bottom:-0.25em}sup{top:-0.5em}table{border-collapse:collapse;border-color:inherit;text-indent:0}button,input,optgroup,select,textarea{font-feature-settings:inherit;color:inherit;font-family:inherit;font-size:100%;font-variation-settings:inherit;font-weight:inherit;line-height:inherit;margin:0;padding:0}button,select{text-transform:none}[type=button],[type=reset],[type=submit],button{-webkit-appearance:button;background-color:transparent;background-image:none}:-moz-focusring{outline:auto}:-moz-ui-invalid{box-shadow:none}progress{vertical-align:baseline}::-webkit-inner-spin-button,::-webkit-outer-spin-button{height:auto}[type=search]{-webkit-appearance:textfield;outline-offset:-2px}::-webkit-search-decoration{-webkit-appearance:none}::-webkit-file-upload-button{-webkit-appearance:button;font:inherit}summary{display:list-item}blockquote,dd,dl,figure,h1,h2,h3,h4,h5,h6,hr,p,pre{margin:0}fieldset{margin:0}fieldset,legend{padding:0}menu,ol,ul{list-style:none;margin:0;padding:0}dialog{padding:0}textarea{resize:vertical}input::-moz-placeholder,textarea::-moz-placeholder{color:#9ca3af;opacity:1}input::placeholder,textarea::placeholder{color:#9ca3af;opacity:1}[role=button],button{cursor:pointer}:disabled{cursor:default}audio,canvas,embed,iframe,img,object,svg,video{display:block;vertical-align:middle}img,video{height:auto;max-width:100%}[hidden]{display:none}*{font-family:Mulish, sans-serif}input::-moz-selection,textarea::-moz-selection{background-color:hsla(0, 0%, 85%, 0.4)}input::selection,textarea::selection{background-color:hsla(0, 0%, 85%, 0.4)}*,:after,:before{--tw-border-spacing-x:0;--tw-border-spacing-y:0;--tw-translate-x:0;--tw-translate-y:0;--tw-rotate:0;--tw-skew-x:0;--tw-skew-y:0;--tw-scale-x:1;--tw-scale-y:1;--tw-pan-x: ;--tw-pan-y: ;--tw-pinch-zoom: ;--tw-scroll-snap-strictness:proximity;--tw-gradient-from-position: ;--tw-gradient-via-position: ;--tw-gradient-to-position: ;--tw-ordinal: ;--tw-slashed-zero: ;--tw-numeric-figure: ;--tw-numeric-spacing: ;--tw-numeric-fraction: ;--tw-ring-inset: ;--tw-ring-offset-width:0px;--tw-ring-offset-color:#fff;--tw-ring-color:rgba(59,130,246,.5);--tw-ring-offset-shadow:0 0 #0000;--tw-ring-shadow:0 0 #0000;--tw-shadow:0 0 #0000;--tw-shadow-colored:0 0 #0000;--tw-blur: ;--tw-brightness: ;--tw-contrast: ;--tw-grayscale: ;--tw-hue-rotate: ;--tw-invert: ;--tw-saturate: ;--tw-sepia: ;--tw-drop-shadow: ;--tw-backdrop-blur: ;--tw-backdrop-brightness: ;--tw-backdrop-contrast: ;--tw-backdrop-grayscale: ;--tw-backdrop-hue-rotate: ;--tw-backdrop-invert: ;--tw-backdrop-opacity: ;--tw-backdrop-saturate: ;--tw-backdrop-sepia: }::backdrop{--tw-border-spacing-x:0;--tw-border-spacing-y:0;--tw-translate-x:0;--tw-translate-y:0;--tw-rotate:0;--tw-skew-x:0;--tw-skew-y:0;--tw-scale-x:1;--tw-scale-y:1;--tw-pan-x: ;--tw-pan-y: ;--tw-pinch-zoom: ;--tw-scroll-snap-strictness:proximity;--tw-gradient-from-position: ;--tw-gradient-via-position: ;--tw-gradient-to-position: ;--tw-ordinal: ;--tw-slashed-zero: ;--tw-numeric-figure: ;--tw-numeric-spacing: ;--tw-numeric-fraction: ;--tw-ring-inset: ;--tw-ring-offset-width:0px;--tw-ring-offset-color:#fff;--tw-ring-color:rgba(59,130,246,.5);--tw-ring-offset-shadow:0 0 #0000;--tw-ring-shadow:0 0 #0000;--tw-shadow:0 0 #0000;--tw-shadow-colored:0 0 #0000;--tw-blur: ;--tw-brightness: ;--tw-contrast: ;--tw-grayscale: ;--tw-hue-rotate: ;--tw-invert: ;--tw-saturate: ;--tw-sepia: ;--tw-drop-shadow: ;--tw-backdrop-blur: ;--tw-backdrop-brightness: ;--tw-backdrop-contrast: ;--tw-backdrop-grayscale: ;--tw-backdrop-hue-rotate: ;--tw-backdrop-invert: ;--tw-backdrop-opacity: ;--tw-backdrop-saturate: ;--tw-backdrop-sepia: }.p2{font-size:0.875rem;font-weight:600;line-height:1.25rem;line-height:1.5}.blanket-overlay{--tw-bg-opacity:1;background-color:rgb(33 37 41/var(--tw-bg-opacity));inset:0;opacity:0.3;position:absolute}.item-heading{--tw-text-opacity:1;color:rgb(40 44 135/var(--tw-text-opacity));font-size:1.25rem;letter-spacing:-0.025em;line-height:1.5rem}.focus-ring:focus-visible{--tw-ring-offset-shadow:var(--tw-ring-inset) 0 0 0 var(--tw-ring-offset-width) var(--tw-ring-offset-color);--tw-ring-shadow:var(--tw-ring-inset) 0 0 0 calc(4px + var(--tw-ring-offset-width)) var(--tw-ring-color);--tw-ring-opacity:1;--tw-ring-color:rgb(84 101 251/var(--tw-ring-opacity));--tw-ring-offset-width:4px;box-shadow:var(--tw-ring-offset-shadow), var(--tw-ring-shadow), var(--tw-shadow, 0 0 rgba(0, 0, 0, 0));outline:2px solid transparent;outline-offset:2px;transition-duration:50ms}.hover-focus-ring:hover,.raw-focus-ring{--tw-ring-offset-shadow:var(--tw-ring-inset) 0 0 0 var(--tw-ring-offset-width) var(--tw-ring-offset-color);--tw-ring-shadow:var(--tw-ring-inset) 0 0 0 calc(2px + var(--tw-ring-offset-width)) var(--tw-ring-color);--tw-ring-opacity:1;--tw-ring-color:rgb(84 101 251/var(--tw-ring-opacity));--tw-ring-offset-width:2px;box-shadow:var(--tw-ring-offset-shadow), var(--tw-ring-shadow), var(--tw-shadow, 0 0 rgba(0, 0, 0, 0));outline:2px solid transparent;outline-offset:2px;transition-duration:50ms}.divider{--tw-border-opacity:1;border-bottom-width:1px;border-color:rgb(218 224 224/var(--tw-border-opacity))}@keyframes svelte-8tpn7j-pulse{{opacity:0.5}}.animate-skeleton{--tw-bg-opacity:1;animation:svelte-8tpn7j-pulse 2s cubic-bezier(0.4, 0, 0.6, 1) infinite;background-color:rgb(226 232 240/var(--tw-bg-opacity))}.btn-mcq-option:focus-visible{--tw-ring-offset-shadow:var(--tw-ring-inset) 0 0 0 var(--tw-ring-offset-width) var(--tw-ring-offset-color);--tw-ring-shadow:var(--tw-ring-inset) 0 0 0 calc(4px + var(--tw-ring-offset-width)) var(--tw-ring-color);--tw-ring-opacity:1;--tw-ring-color:rgb(84 101 251/var(--tw-ring-opacity));--tw-ring-offset-width:4px;box-shadow:var(--tw-ring-offset-shadow), var(--tw-ring-shadow), var(--tw-shadow, 0 0 rgba(0, 0, 0, 0));outline:2px solid transparent;outline-offset:2px;transition-duration:50ms}.btn-mcq-option{--tw-text-opacity:1;--tw-border-opacity:1;--tw-bg-opacity:1;align-items:center;background-color:rgb(247 250 250/var(--tw-bg-opacity));border-color:rgb(113 115 119/var(--tw-border-opacity));border-radius:0.5rem;border-width:1px;color:rgb(33 37 41/var(--tw-text-opacity));display:flex;font-size:1rem;justify-content:space-between;line-height:1.5rem;margin-bottom:1rem;min-height:48px;padding:0.5rem 0.75rem 0.5rem 0.5rem;width:100%}.btn-mcq-option:active{--tw-border-opacity:1;--tw-bg-opacity:1;background-color:rgb(222 222 255/var(--tw-bg-opacity));border-color:rgb(40 44 135/var(--tw-border-opacity));border-width:2px}@media(hover: hover) and (pointer: fine){.btn-mcq-option:hover{--tw-bg-opacity:1;background-color:rgb(222 222 255/var(--tw-bg-opacity))}}.btn-mcq-option>span>.choice{--tw-border-opacity:1;--tw-bg-opacity:1;--tw-text-opacity:1;align-items:center;background-color:rgb(255 255 255/var(--tw-bg-opacity));border-color:rgb(113 115 119/var(--tw-border-opacity));border-radius:1rem;border-width:1px;color:rgb(93 99 107/var(--tw-text-opacity));display:flex;font-size:1rem;font-weight:700;height:2rem;justify-content:center;letter-spacing:0.05em;line-height:1rem;margin-right:1rem;padding:0.5rem;width:2rem}.btn-mcq-option.selected{--tw-border-opacity:1;--tw-bg-opacity:1;background-color:rgb(222 222 255/var(--tw-bg-opacity))}.btn-mcq-option.selected,.btn-mcq-option.selected>span>.choice{border-color:rgb(40 44 135/var(--tw-border-opacity));border-width:2px}.btn-mcq-option.selected>span>.choice{--tw-border-opacity:1}.btn-mcq-option.selected.correct{--tw-border-opacity:1;--tw-bg-opacity:1;background-color:rgb(241 254 241/var(--tw-bg-opacity));border-color:rgb(0 102 5/var(--tw-border-opacity));border-width:1px}.btn-mcq-option.selected.incorrect{--tw-border-opacity:1;--tw-bg-opacity:1;background-color:rgb(253 243 247/var(--tw-bg-opacity));border-color:rgb(217 12 85/var(--tw-border-opacity));border-width:1px}.btn-mcq-option.selected.correct>span>.choice,.btn-mcq-option.selected.incorrect>span>.choice{--tw-border-opacity:1;border-color:rgb(113 115 119/var(--tw-border-opacity));border-width:1px}.typein-textbox:focus-visible{--tw-ring-offset-shadow:var(--tw-ring-inset) 0 0 0 var(--tw-ring-offset-width) var(--tw-ring-offset-color);--tw-ring-shadow:var(--tw-ring-inset) 0 0 0 calc(4px + var(--tw-ring-offset-width)) var(--tw-ring-color);--tw-ring-opacity:1;--tw-ring-color:rgb(84 101 251/var(--tw-ring-opacity));--tw-ring-offset-width:4px;box-shadow:var(--tw-ring-offset-shadow), var(--tw-ring-shadow), var(--tw-shadow, 0 0 rgba(0, 0, 0, 0));outline:2px solid transparent;outline-offset:2px;transition-duration:50ms}.typein-textbox{--tw-border-opacity:1;--tw-bg-opacity:1;--tw-text-opacity:1;background-color:rgb(255 255 255/var(--tw-bg-opacity));border-color:rgb(93 99 107/var(--tw-border-opacity));border-radius:0.5rem;border-width:1px;color:rgb(33 37 41/var(--tw-text-opacity));font-size:1rem;line-height:1.5rem;padding:0.75rem 1rem;width:100%}.typein-textbox::-moz-placeholder{--tw-placeholder-opacity:1;color:rgb(93 99 107/var(--tw-placeholder-opacity))}.typein-textbox::placeholder{--tw-placeholder-opacity:1;color:rgb(93 99 107/var(--tw-placeholder-opacity))}.typein-textbox:focus{--tw-border-opacity:1;border-color:rgb(84 101 251/var(--tw-border-opacity));border-width:2px}@media(hover: hover) and (pointer: fine){.typein-textbox:hover{--tw-border-opacity:1;border-color:rgb(84 101 251/var(--tw-border-opacity));border-width:2px;outline:2px solid transparent;outline-offset:2px}}.typein-textbox:focus{--tw-ring-offset-shadow:var(--tw-ring-inset) 0 0 0 var(--tw-ring-offset-width) var(--tw-ring-offset-color)!important;--tw-ring-shadow:var(--tw-ring-inset) 0 0 0 calc(4px + var(--tw-ring-offset-width)) var(--tw-ring-color)!important;box-shadow:var(--tw-ring-offset-shadow), var(--tw-ring-shadow), var(--tw-shadow, 0 0 rgba(0, 0, 0, 0)) !important}@media(hover: hover) and (pointer: fine){.typein-textbox:hover{--tw-ring-offset-shadow:var(--tw-ring-inset) 0 0 0 var(--tw-ring-offset-width) var(--tw-ring-offset-color);--tw-ring-shadow:var(--tw-ring-inset) 0 0 0 calc(2px + var(--tw-ring-offset-width)) var(--tw-ring-color);--tw-ring-opacity:1;--tw-ring-color:rgb(84 101 251/var(--tw-ring-opacity));--tw-ring-offset-width:4px;box-shadow:var(--tw-ring-offset-shadow), var(--tw-ring-shadow), var(--tw-shadow, 0 0 rgba(0, 0, 0, 0));transition-duration:50ms}}#dnd-action-dragged-el{--tw-ring-offset-shadow:var(--tw-ring-inset) 0 0 0 var(--tw-ring-offset-width) var(--tw-ring-offset-color);--tw-ring-shadow:var(--tw-ring-inset) 0 0 0 calc(2px + var(--tw-ring-offset-width)) var(--tw-ring-color);--tw-ring-opacity:1;--tw-ring-color:rgb(84 101 251/var(--tw-ring-opacity));--tw-ring-offset-width:2px;--tw-border-opacity:1!important;--tw-bg-opacity:1!important;background-color:rgb(205 208 254/var(--tw-bg-opacity)) !important;border-color:rgb(93 99 107/var(--tw-border-opacity)) !important;box-shadow:var(--tw-ring-offset-shadow), var(--tw-ring-shadow), var(--tw-shadow, 0 0 rgba(0, 0, 0, 0));cursor:grabbing !important;outline:2px solid transparent;outline-offset:2px;transition-duration:50ms}#dnd-action-dragged-el .btn-vertical-icon{--tw-text-opacity:1;color:rgb(40 44 135/var(--tw-text-opacity));cursor:grabbing !important}#dnd-action-dragged-el .preview-icon{display:none !important}#dnd-action-dragged-el .preview-vertical{display:block !important}.category-content>.missing-answer-label{display:block}.category-content>.missing-answer-label~.missing-answer-label{display:none}.sr-only{clip:rect(0, 0, 0, 0);border-width:0;height:1px;margin:-1px;overflow:hidden;padding:0;position:absolute;white-space:nowrap;width:1px}.absolute{position:absolute}.relative{position:relative}.inset-0{inset:0}.inset-y-0{bottom:0;top:0}.-top-2{top:-0.5rem}.-top-2\\.5{top:-0.625rem}.bottom-4{bottom:1rem}.left-4{left:1rem}.left-\\[-9999px\\]{left:-9999px}.right-0{right:0}.right-4{right:1rem}.top-12{top:3rem}.z-0{z-index:0}.z-10{z-index:10}.z-50{z-index:50}.m-auto{margin:auto}.mx-0{margin-left:0;margin-right:0}.mx-0\\.5{margin-left:0.125rem;margin-right:0.125rem}.my-6{margin-bottom:1.5rem;margin-top:1.5rem}.mb-1{margin-bottom:0.25rem}.mb-10{margin-bottom:2.5rem}.mb-12{margin-bottom:3rem}.mb-2{margin-bottom:0.5rem}.mb-3{margin-bottom:0.75rem}.mb-4{margin-bottom:1rem}.mb-5{margin-bottom:1.25rem}.mb-6{margin-bottom:1.5rem}.ml-1{margin-left:0.25rem}.ml-3{margin-left:0.75rem}.ml-\\[3px\\]{margin-left:3px}.mr-1{margin-right:0.25rem}.mr-2{margin-right:0.5rem}.mr-4{margin-right:1rem}.mt-0{margin-top:0}.mt-0\\.5{margin-top:0.125rem}.mt-1{margin-top:0.25rem}.mt-2{margin-top:0.5rem}.mt-4{margin-top:1rem}.mt-7{margin-top:1.75rem}.mt-7\\.5{margin-top:1.875}.mt-9{margin-top:2.25rem}.block{display:block}.inline{display:inline}.flex{display:flex}.grid{display:grid}.hidden{display:none}.h-11{height:2.75rem}.h-4{height:1rem}.h-52{height:13rem}.h-6{height:1.5rem}.h-fit{height:-moz-fit-content;height:fit-content}.h-full{height:100%}.min-h-\\[133px\\]{min-height:133px}.min-h-\\[140px\\]{min-height:140px}.min-h-\\[54px\\]{min-height:54px}.min-h-\\[86px\\]{min-height:86px}.w-11{width:2.75rem}.w-2\\/4{width:50%}.w-4{width:1rem}.w-6{width:1.5rem}.w-fit{width:-moz-fit-content;width:fit-content}.w-full{width:100%}.min-w-\\[44px\\]{min-width:44px}.min-w-\\[85px\\]{min-width:85px}.max-w-\\[400px\\]{max-width:400px}.grow{flex-grow:1}.basis-0{flex-basis:0px}.\\!cursor-default{cursor:default !important}.\\!cursor-pointer{cursor:pointer !important}.cursor-pointer{cursor:pointer}.grid-cols-1{grid-template-columns:repeat(1, minmax(0, 1fr))}.flex-row{flex-direction:row}.flex-col{flex-direction:column}.flex-col-reverse{flex-direction:column-reverse}.flex-wrap{flex-wrap:wrap}.content-start{align-content:flex-start}.items-center{align-items:center}.justify-center{justify-content:center}.justify-between{justify-content:space-between}.gap-2{gap:0.5rem}.space-y-2>:not([hidden])~:not([hidden]){--tw-space-y-reverse:0;margin-bottom:calc(0.5rem * var(--tw-space-y-reverse));margin-top:calc(0.5rem * (1 - var(--tw-space-y-reverse)))}.space-y-reverse>:not([hidden])~:not([hidden]){--tw-space-y-reverse:1}.overflow-hidden{overflow:hidden}.whitespace-nowrap{white-space:nowrap}.rounded{border-radius:0.25rem}.rounded-\\[32px\\]{border-radius:32px}.rounded-lg{border-radius:0.5rem}.rounded-md{border-radius:0.375rem}.rounded-b-lg{border-bottom-left-radius:0.5rem;border-bottom-right-radius:0.5rem}.rounded-t-lg{border-top-left-radius:0.5rem;border-top-right-radius:0.5rem}.border{border-width:1px}.border-2{border-width:2px}.border-b{border-bottom-width:1px}.border-l-6,.border-l-\\[6px\\]{border-left-width:6px}.border-dashed{border-style:dashed}.\\!border-blue-1000{--tw-border-opacity:1!important;border-color:rgb(40 44 135/var(--tw-border-opacity)) !important}.border-blue-1000{--tw-border-opacity:1;border-color:rgb(40 44 135/var(--tw-border-opacity))}.border-charcoal{--tw-border-opacity:1;border-color:rgb(33 37 41/var(--tw-border-opacity))}.border-gray-400{--tw-border-opacity:1;border-color:rgb(196 201 204/var(--tw-border-opacity))}.border-gray-800{--tw-border-opacity:1;border-color:rgb(93 99 107/var(--tw-border-opacity))}.border-green-800{--tw-border-opacity:1;border-color:rgb(0 102 5/var(--tw-border-opacity))}.border-red-600{--tw-border-opacity:1;border-color:rgb(220 38 38/var(--tw-border-opacity))}.border-red-800{--tw-border-opacity:1;border-color:rgb(217 12 85/var(--tw-border-opacity))}.border-soft-blue{--tw-border-opacity:1;border-color:rgb(84 101 251/var(--tw-border-opacity))}.border-white{--tw-border-opacity:1;border-color:rgb(255 255 255/var(--tw-border-opacity))}.\\!bg-violet-100{--tw-bg-opacity:1!important;background-color:rgb(235 235 255/var(--tw-bg-opacity)) !important}.\\!bg-violet-150{--tw-bg-opacity:1!important;background-color:rgb(205 208 254/var(--tw-bg-opacity)) !important}.\\!bg-white{--tw-bg-opacity:1!important;background-color:rgb(255 255 255/var(--tw-bg-opacity)) !important}.bg-blue-1000{--tw-bg-opacity:1;background-color:rgb(40 44 135/var(--tw-bg-opacity))}.bg-gray-100{--tw-bg-opacity:1;background-color:rgb(247 250 250/var(--tw-bg-opacity))}.bg-gray-50{--tw-bg-opacity:1;background-color:rgb(244 244 244/var(--tw-bg-opacity))}.bg-green-300{--tw-bg-opacity:1;background-color:rgb(241 254 241/var(--tw-bg-opacity))}.bg-red-200{--tw-bg-opacity:1;background-color:rgb(254 202 202/var(--tw-bg-opacity))}.bg-red-300{--tw-bg-opacity:1;background-color:rgb(253 243 247/var(--tw-bg-opacity))}.bg-soft-blue{--tw-bg-opacity:1;background-color:rgb(84 101 251/var(--tw-bg-opacity))}.bg-transparent{background-color:transparent}.bg-violet-100{--tw-bg-opacity:1;background-color:rgb(235 235 255/var(--tw-bg-opacity))}.bg-violet-150{--tw-bg-opacity:1;background-color:rgb(205 208 254/var(--tw-bg-opacity))}.bg-white{--tw-bg-opacity:1;background-color:rgb(255 255 255/var(--tw-bg-opacity))}.bg-yellow-1000{--tw-bg-opacity:1;background-color:rgb(251 217 27/var(--tw-bg-opacity))}.p-0{padding:0}.p-0\\.5{padding:0.125rem}.p-1{padding:0.25rem}.p-1\\.5{padding:0.375rem}.p-2{padding:0.5rem}.p-3{padding:0.75rem}.p-4{padding:1rem}.p-5{padding:1.25rem}.p-6{padding:1.5rem}.px-3{padding-left:0.75rem;padding-right:0.75rem}.px-4{padding-left:1rem;padding-right:1rem}.py-1{padding-bottom:0.25rem;padding-top:0.25rem}.py-1\\.5{padding-bottom:0.375rem;padding-top:0.375rem}.py-2{padding-bottom:0.5rem;padding-top:0.5rem}.pb-10{padding-bottom:2.5rem}.pb-3{padding-bottom:0.75rem}.pl-24{padding-left:6rem}.pl-3{padding-left:0.75rem}.pl-4{padding-left:1rem}.pr-3{padding-right:0.75rem}.pt-6{padding-top:1.5rem}.pt-\\[55px\\]{padding-top:55px}.text-left{text-align:left}.text-center{text-align:center}.text-base{font-size:1rem;line-height:1.5rem}.text-lg{font-size:1.125rem;line-height:1.75rem}.text-sm{font-size:0.875rem;line-height:1.25rem}.text-xl{font-size:1.25rem;line-height:1.75rem}.font-bold{font-weight:700}.font-semibold{font-weight:600}.leading-4{line-height:1rem}.leading-5{line-height:1.25rem}.leading-6{line-height:1.5rem}.leading-\\[22px\\]{line-height:22px}.\\!text-gray-900{--tw-text-opacity:1!important;color:rgb(57 62 69/var(--tw-text-opacity)) !important}.text-blue-1000{--tw-text-opacity:1;color:rgb(40 44 135/var(--tw-text-opacity))}.text-charcoal{--tw-text-opacity:1;color:rgb(33 37 41/var(--tw-text-opacity))}.text-gray-800{--tw-text-opacity:1;color:rgb(93 99 107/var(--tw-text-opacity))}.text-green-800{--tw-text-opacity:1;color:rgb(0 102 5/var(--tw-text-opacity))}.text-inherit{color:inherit}.text-red-800{--tw-text-opacity:1;color:rgb(217 12 85/var(--tw-text-opacity))}.text-white{--tw-text-opacity:1;color:rgb(255 255 255/var(--tw-text-opacity))}.underline{text-decoration-line:underline}.opacity-50{opacity:0.5}.shadow-\\[0_-12px_14px_-16px_\\#00000033\\]{--tw-shadow:0 -12px 14px -16px #00000033;--tw-shadow-colored:0 -12px 14px -16px var(--tw-shadow-color)}.shadow-\\[0_-12px_14px_-16px_\\#00000033\\],.shadow-md{box-shadow:var(--tw-ring-offset-shadow, 0 0 rgba(0, 0, 0, 0)), var(--tw-ring-shadow, 0 0 rgba(0, 0, 0, 0)), var(--tw-shadow)}.shadow-md{--tw-shadow:0px 2px 8px rgba(0,0,0,.2);--tw-shadow-colored:0px 2px 8px var(--tw-shadow-color)}.\\!outline-none{outline:2px solid transparent !important;outline-offset:2px !important}.outline-none{outline:2px solid transparent;outline-offset:2px}.filter{filter:var(--tw-blur) var(--tw-brightness) var(--tw-contrast) var(--tw-grayscale) var(--tw-hue-rotate) var(--tw-invert) var(--tw-saturate) var(--tw-sepia) var(--tw-drop-shadow)}.transition{transition-duration:0.15s;transition-property:color, background-color, border-color, text-decoration-color, fill, stroke, opacity, box-shadow, transform, filter, -webkit-backdrop-filter;transition-property:color, background-color, border-color, text-decoration-color, fill, stroke, opacity, box-shadow, transform, filter, backdrop-filter;transition-property:color, background-color, border-color, text-decoration-color, fill, stroke, opacity, box-shadow, transform, filter, backdrop-filter, -webkit-backdrop-filter;transition-timing-function:cubic-bezier(0.4, 0, 0.2, 1)}.duration-300{transition-duration:0.3s}.active\\:raw-focus-ring:active{--tw-ring-offset-shadow:var(--tw-ring-inset) 0 0 0 var(--tw-ring-offset-width) var(--tw-ring-offset-color);--tw-ring-shadow:var(--tw-ring-inset) 0 0 0 calc(2px + var(--tw-ring-offset-width)) var(--tw-ring-color);--tw-ring-opacity:1;--tw-ring-color:rgb(84 101 251/var(--tw-ring-opacity));--tw-ring-offset-width:2px;box-shadow:var(--tw-ring-offset-shadow), var(--tw-ring-shadow), var(--tw-shadow, 0 0 rgba(0, 0, 0, 0));outline:2px solid transparent;outline-offset:2px;transition-duration:50ms}@media(min-width: 732px){.md\\:item-heading{--tw-text-opacity:1;color:rgb(40 44 135/var(--tw-text-opacity));font-size:1.25rem;letter-spacing:-0.025em;line-height:1.5rem}.category-content>.md\\:missing-answer-label{display:block}.category-content>.md\\:missing-answer-label~.md\\:missing-answer-label{display:none}}@media(hover: hover) and (pointer: fine){.td\\:hover-focus-ring:hover{--tw-ring-offset-shadow:var(--tw-ring-inset) 0 0 0 var(--tw-ring-offset-width) var(--tw-ring-offset-color);--tw-ring-shadow:var(--tw-ring-inset) 0 0 0 calc(2px + var(--tw-ring-offset-width)) var(--tw-ring-color);--tw-ring-opacity:1;--tw-ring-color:rgb(84 101 251/var(--tw-ring-opacity));--tw-ring-offset-width:2px;box-shadow:var(--tw-ring-offset-shadow), var(--tw-ring-shadow), var(--tw-shadow, 0 0 rgba(0, 0, 0, 0));outline:2px solid transparent;outline-offset:2px;transition-duration:50ms}}.last\\:mr-0:last-child{margin-right:0}.focus-within\\:left-0:focus-within{left:0}.focus-within\\:right-0:focus-within{right:0}.focus-within\\:top-0:focus-within{top:0}.focus-within\\:z-30:focus-within{z-index:30}.hover\\:bg-black-50:hover{background-color:rgba(0, 0, 0, 0.0509803922)}.hover\\:bg-blue-100:hover{--tw-bg-opacity:1;background-color:rgb(222 222 255/var(--tw-bg-opacity))}.hover\\:bg-violet-100:hover{--tw-bg-opacity:1;background-color:rgb(235 235 255/var(--tw-bg-opacity))}.hover\\:bg-yellow-1000:hover{--tw-bg-opacity:1;background-color:rgb(251 217 27/var(--tw-bg-opacity))}.hover\\:text-charcoal:hover{--tw-text-opacity:1;color:rgb(33 37 41/var(--tw-text-opacity))}.focus\\:outline-transparent:focus{outline-color:transparent}.focus-visible\\:border:focus-visible{border-width:1px}.focus-visible\\:border-charcoal:focus-visible{--tw-border-opacity:1;border-color:rgb(33 37 41/var(--tw-border-opacity))}.focus-visible\\:border-gray-400:focus-visible{--tw-border-opacity:1;border-color:rgb(196 201 204/var(--tw-border-opacity))}.focus-visible\\:border-gray-800:focus-visible{--tw-border-opacity:1;border-color:rgb(93 99 107/var(--tw-border-opacity))}.focus-visible\\:outline-none:focus-visible{outline:2px solid transparent;outline-offset:2px}.active\\:bg-black-55:active,.active\\:bg-black-60:active{background-color:rgba(0, 0, 0, 0.1019607843)}.active\\:bg-yellow-1100:active{--tw-bg-opacity:1;background-color:rgb(238 206 26/var(--tw-bg-opacity))}.active\\:text-charcoal:active{--tw-text-opacity:1;color:rgb(33 37 41/var(--tw-text-opacity))}.disabled\\:text-gray-40:disabled{--tw-text-opacity:1;color:rgb(142 147 153/var(--tw-text-opacity))}.disabled\\:hover\\:bg-white:hover:disabled{--tw-bg-opacity:1;background-color:rgb(255 255 255/var(--tw-bg-opacity))}.group\\/itemContainer:hover .group-hover\\/itemContainer\\:bg-violet-100{--tw-bg-opacity:1;background-color:rgb(235 235 255/var(--tw-bg-opacity))}.group:hover .group-hover\\:underline{text-decoration-line:underline}.group:active .group-active\\:border-2{border-width:2px}.group:active .group-active\\:border-blue-1000{--tw-border-opacity:1;border-color:rgb(40 44 135/var(--tw-border-opacity))}.group:active .group-active\\:p-\\[7px\\]{padding:7px}@media(min-width: 732px){.md\\:inset-0{inset:0}.md\\:top-20{top:5rem}.md\\:mb-2{margin-bottom:0.5rem}.md\\:mb-4{margin-bottom:1rem}.md\\:mb-8{margin-bottom:2rem}.md\\:mt-14{margin-top:3.5rem}.md\\:block{display:block}.md\\:inline-block{display:inline-block}.md\\:flex{display:flex}.md\\:hidden{display:none}.md\\:h-fit{height:-moz-fit-content;height:fit-content}.md\\:min-h-0{min-height:0}.md\\:min-h-\\[140px\\]{min-height:140px}.md\\:min-h-\\[164px\\]{min-height:164px}.md\\:w-fit{width:-moz-fit-content;width:fit-content}.md\\:grow-0{flex-grow:0}.md\\:grid-cols-2{grid-template-columns:repeat(2, minmax(0, 1fr))}.md\\:flex-row{flex-direction:row}.md\\:flex-col{flex-direction:column}.md\\:items-center{align-items:center}.md\\:justify-normal{justify-content:normal}.md\\:justify-center{justify-content:center}.md\\:justify-between{justify-content:space-between}.md\\:gap-6{gap:1.5rem}.md\\:space-y-0>:not([hidden])~:not([hidden]){--tw-space-y-reverse:0;margin-bottom:calc(0px * var(--tw-space-y-reverse));margin-top:calc(0px * (1 - var(--tw-space-y-reverse)))}.md\\:rounded-b-none{border-bottom-left-radius:0;border-bottom-right-radius:0}.md\\:border{border-width:1px}.md\\:border-gray-400{--tw-border-opacity:1;border-color:rgb(196 201 204/var(--tw-border-opacity))}.md\\:\\!bg-white{--tw-bg-opacity:1!important;background-color:rgb(255 255 255/var(--tw-bg-opacity)) !important}.md\\:p-4{padding:1rem}.md\\:px-0{padding-left:0;padding-right:0}.md\\:pb-0{padding-bottom:0}.md\\:pt-20{padding-top:5rem}.md\\:pt-20\\.5{padding-top:5.125rem}.md\\:text-center{text-align:center}.md\\:shadow-\\[0_0_\\#0000\\]{--tw-shadow:0 0 #0000;--tw-shadow-colored:0 0 var(--tw-shadow-color);box-shadow:var(--tw-ring-offset-shadow, 0 0 rgba(0, 0, 0, 0)), var(--tw-ring-shadow, 0 0 rgba(0, 0, 0, 0)), var(--tw-shadow)}.group\\/itemContainer:hover .md\\:group-hover\\/itemContainer\\:bg-white{--tw-bg-opacity:1;background-color:rgb(255 255 255/var(--tw-bg-opacity))}}@media(min-width: 1196px){.lg\\:mr-6{margin-right:1.5rem}.lg\\:flex{display:flex}.lg\\:hidden{display:none}.lg\\:min-h-\\[224px\\]{min-height:224px}.lg\\:w-full{width:100%}.lg\\:grow{flex-grow:1}.lg\\:basis-1\\/2{flex-basis:50%}.lg\\:items-center{align-items:center}.lg\\:justify-between{justify-content:space-between}.lg\\:gap-0{gap:0}.lg\\:last\\:mr-0:last-child{margin-right:0}}@media(hover: hover) and (pointer: fine){.td\\:hover\\:cursor-grab:hover{cursor:grab}.td\\:hover\\:border-gray-800:hover{--tw-border-opacity:1;border-color:rgb(93 99 107/var(--tw-border-opacity))}.td\\:hover\\:bg-black-50:hover{background-color:rgba(0, 0, 0, 0.0509803922)}.td\\:hover\\:bg-violet-100:hover{--tw-bg-opacity:1;background-color:rgb(235 235 255/var(--tw-bg-opacity))}.td\\:hover\\:text-soft-blue:hover{--tw-text-opacity:1;color:rgb(84 101 251/var(--tw-text-opacity))}.group:hover .td\\:group-hover\\:bg-black{--tw-bg-opacity:1;background-color:rgb(0 0 0/var(--tw-bg-opacity))}.group:hover .td\\:group-hover\\:opacity-5{opacity:0.05}}');
11878
+ append_styles(target, "svelte-1if0gh0", '*,:after,:before{border:0 solid #e5e7eb;box-sizing:border-box}:after,:before{--tw-content:""}html{-webkit-text-size-adjust:100%;font-feature-settings:normal;font-family:Mulish, sans-serif;font-variation-settings:normal;line-height:1.5;-moz-tab-size:4;-o-tab-size:4;tab-size:4}body{line-height:inherit;margin:0}hr{border-top-width:1px;color:inherit;height:0}abbr:where([title]){-webkit-text-decoration:underline dotted;text-decoration:underline dotted}h1,h2,h3,h4,h5,h6{font-size:inherit;font-weight:inherit}a{color:inherit;text-decoration:inherit}b,strong{font-weight:bolder}code,kbd,pre,samp{font-family:ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, Liberation Mono, Courier New, monospace;font-size:1em}small{font-size:80%}sub,sup{font-size:75%;line-height:0;position:relative;vertical-align:baseline}sub{bottom:-0.25em}sup{top:-0.5em}table{border-collapse:collapse;border-color:inherit;text-indent:0}button,input,optgroup,select,textarea{font-feature-settings:inherit;color:inherit;font-family:inherit;font-size:100%;font-variation-settings:inherit;font-weight:inherit;line-height:inherit;margin:0;padding:0}button,select{text-transform:none}[type=button],[type=reset],[type=submit],button{-webkit-appearance:button;background-color:transparent;background-image:none}:-moz-focusring{outline:auto}:-moz-ui-invalid{box-shadow:none}progress{vertical-align:baseline}::-webkit-inner-spin-button,::-webkit-outer-spin-button{height:auto}[type=search]{-webkit-appearance:textfield;outline-offset:-2px}::-webkit-search-decoration{-webkit-appearance:none}::-webkit-file-upload-button{-webkit-appearance:button;font:inherit}summary{display:list-item}blockquote,dd,dl,figure,h1,h2,h3,h4,h5,h6,hr,p,pre{margin:0}fieldset{margin:0}fieldset,legend{padding:0}menu,ol,ul{list-style:none;margin:0;padding:0}dialog{padding:0}textarea{resize:vertical}input::-moz-placeholder,textarea::-moz-placeholder{color:#9ca3af;opacity:1}input::placeholder,textarea::placeholder{color:#9ca3af;opacity:1}[role=button],button{cursor:pointer}:disabled{cursor:default}audio,canvas,embed,iframe,img,object,svg,video{display:block;vertical-align:middle}img,video{height:auto;max-width:100%}[hidden]{display:none}*{font-family:Mulish, sans-serif}input::-moz-selection,textarea::-moz-selection{background-color:hsla(0, 0%, 85%, 0.4)}input::selection,textarea::selection{background-color:hsla(0, 0%, 85%, 0.4)}*,:after,:before{--tw-border-spacing-x:0;--tw-border-spacing-y:0;--tw-translate-x:0;--tw-translate-y:0;--tw-rotate:0;--tw-skew-x:0;--tw-skew-y:0;--tw-scale-x:1;--tw-scale-y:1;--tw-pan-x: ;--tw-pan-y: ;--tw-pinch-zoom: ;--tw-scroll-snap-strictness:proximity;--tw-gradient-from-position: ;--tw-gradient-via-position: ;--tw-gradient-to-position: ;--tw-ordinal: ;--tw-slashed-zero: ;--tw-numeric-figure: ;--tw-numeric-spacing: ;--tw-numeric-fraction: ;--tw-ring-inset: ;--tw-ring-offset-width:0px;--tw-ring-offset-color:#fff;--tw-ring-color:rgba(59,130,246,.5);--tw-ring-offset-shadow:0 0 #0000;--tw-ring-shadow:0 0 #0000;--tw-shadow:0 0 #0000;--tw-shadow-colored:0 0 #0000;--tw-blur: ;--tw-brightness: ;--tw-contrast: ;--tw-grayscale: ;--tw-hue-rotate: ;--tw-invert: ;--tw-saturate: ;--tw-sepia: ;--tw-drop-shadow: ;--tw-backdrop-blur: ;--tw-backdrop-brightness: ;--tw-backdrop-contrast: ;--tw-backdrop-grayscale: ;--tw-backdrop-hue-rotate: ;--tw-backdrop-invert: ;--tw-backdrop-opacity: ;--tw-backdrop-saturate: ;--tw-backdrop-sepia: }::backdrop{--tw-border-spacing-x:0;--tw-border-spacing-y:0;--tw-translate-x:0;--tw-translate-y:0;--tw-rotate:0;--tw-skew-x:0;--tw-skew-y:0;--tw-scale-x:1;--tw-scale-y:1;--tw-pan-x: ;--tw-pan-y: ;--tw-pinch-zoom: ;--tw-scroll-snap-strictness:proximity;--tw-gradient-from-position: ;--tw-gradient-via-position: ;--tw-gradient-to-position: ;--tw-ordinal: ;--tw-slashed-zero: ;--tw-numeric-figure: ;--tw-numeric-spacing: ;--tw-numeric-fraction: ;--tw-ring-inset: ;--tw-ring-offset-width:0px;--tw-ring-offset-color:#fff;--tw-ring-color:rgba(59,130,246,.5);--tw-ring-offset-shadow:0 0 #0000;--tw-ring-shadow:0 0 #0000;--tw-shadow:0 0 #0000;--tw-shadow-colored:0 0 #0000;--tw-blur: ;--tw-brightness: ;--tw-contrast: ;--tw-grayscale: ;--tw-hue-rotate: ;--tw-invert: ;--tw-saturate: ;--tw-sepia: ;--tw-drop-shadow: ;--tw-backdrop-blur: ;--tw-backdrop-brightness: ;--tw-backdrop-contrast: ;--tw-backdrop-grayscale: ;--tw-backdrop-hue-rotate: ;--tw-backdrop-invert: ;--tw-backdrop-opacity: ;--tw-backdrop-saturate: ;--tw-backdrop-sepia: }.p2{font-size:0.875rem;font-weight:600;line-height:1.25rem;line-height:1.5}.blanket-overlay{--tw-bg-opacity:1;background-color:rgb(33 37 41/var(--tw-bg-opacity));inset:0;opacity:0.3;position:absolute}.item-heading{--tw-text-opacity:1;color:rgb(40 44 135/var(--tw-text-opacity));font-size:1.25rem;letter-spacing:-0.025em;line-height:1.5rem}.focus-ring:focus-visible{--tw-ring-offset-shadow:var(--tw-ring-inset) 0 0 0 var(--tw-ring-offset-width) var(--tw-ring-offset-color);--tw-ring-shadow:var(--tw-ring-inset) 0 0 0 calc(4px + var(--tw-ring-offset-width)) var(--tw-ring-color);--tw-ring-opacity:1;--tw-ring-color:rgb(84 101 251/var(--tw-ring-opacity));--tw-ring-offset-width:4px;box-shadow:var(--tw-ring-offset-shadow), var(--tw-ring-shadow), var(--tw-shadow, 0 0 rgba(0, 0, 0, 0));outline:2px solid transparent;outline-offset:2px;transition-duration:50ms}.hover-focus-ring:hover,.raw-focus-ring{--tw-ring-offset-shadow:var(--tw-ring-inset) 0 0 0 var(--tw-ring-offset-width) var(--tw-ring-offset-color);--tw-ring-shadow:var(--tw-ring-inset) 0 0 0 calc(2px + var(--tw-ring-offset-width)) var(--tw-ring-color);--tw-ring-opacity:1;--tw-ring-color:rgb(84 101 251/var(--tw-ring-opacity));--tw-ring-offset-width:2px;box-shadow:var(--tw-ring-offset-shadow), var(--tw-ring-shadow), var(--tw-shadow, 0 0 rgba(0, 0, 0, 0));outline:2px solid transparent;outline-offset:2px;transition-duration:50ms}.divider{--tw-border-opacity:1;border-bottom-width:1px;border-color:rgb(218 224 224/var(--tw-border-opacity))}@keyframes svelte-1if0gh0-pulse{{opacity:0.5}}.animate-skeleton{--tw-bg-opacity:1;animation:svelte-1if0gh0-pulse 2s cubic-bezier(0.4, 0, 0.6, 1) infinite;background-color:rgb(226 232 240/var(--tw-bg-opacity))}.btn-mcq-option:focus-visible{--tw-ring-offset-shadow:var(--tw-ring-inset) 0 0 0 var(--tw-ring-offset-width) var(--tw-ring-offset-color);--tw-ring-shadow:var(--tw-ring-inset) 0 0 0 calc(4px + var(--tw-ring-offset-width)) var(--tw-ring-color);--tw-ring-opacity:1;--tw-ring-color:rgb(84 101 251/var(--tw-ring-opacity));--tw-ring-offset-width:4px;box-shadow:var(--tw-ring-offset-shadow), var(--tw-ring-shadow), var(--tw-shadow, 0 0 rgba(0, 0, 0, 0));outline:2px solid transparent;outline-offset:2px;transition-duration:50ms}.btn-mcq-option{--tw-text-opacity:1;--tw-border-opacity:1;--tw-bg-opacity:1;align-items:center;background-color:rgb(247 250 250/var(--tw-bg-opacity));border-color:rgb(113 115 119/var(--tw-border-opacity));border-radius:0.5rem;border-width:1px;color:rgb(33 37 41/var(--tw-text-opacity));display:flex;font-size:1rem;justify-content:space-between;line-height:1.5rem;margin-bottom:1rem;min-height:48px;padding:0.5rem 0.75rem 0.5rem 0.5rem;width:100%}.btn-mcq-option:active{--tw-border-opacity:1;--tw-bg-opacity:1;background-color:rgb(222 222 255/var(--tw-bg-opacity));border-color:rgb(40 44 135/var(--tw-border-opacity));border-width:2px}@media(hover: hover) and (pointer: fine){.btn-mcq-option:hover{--tw-bg-opacity:1;background-color:rgb(222 222 255/var(--tw-bg-opacity))}}.btn-mcq-option>span>.choice{--tw-border-opacity:1;--tw-bg-opacity:1;--tw-text-opacity:1;align-items:center;background-color:rgb(255 255 255/var(--tw-bg-opacity));border-color:rgb(113 115 119/var(--tw-border-opacity));border-radius:1rem;border-width:1px;color:rgb(93 99 107/var(--tw-text-opacity));display:flex;font-size:1rem;font-weight:700;height:2rem;justify-content:center;letter-spacing:0.05em;line-height:1rem;margin-right:1rem;padding:0.5rem;width:2rem}.btn-mcq-option.selected{--tw-border-opacity:1;--tw-bg-opacity:1;background-color:rgb(222 222 255/var(--tw-bg-opacity))}.btn-mcq-option.selected,.btn-mcq-option.selected>span>.choice{border-color:rgb(40 44 135/var(--tw-border-opacity));border-width:2px}.btn-mcq-option.selected>span>.choice{--tw-border-opacity:1}.btn-mcq-option.selected.correct{--tw-border-opacity:1;--tw-bg-opacity:1;background-color:rgb(241 254 241/var(--tw-bg-opacity));border-color:rgb(0 102 5/var(--tw-border-opacity));border-width:1px}.btn-mcq-option.selected.incorrect{--tw-border-opacity:1;--tw-bg-opacity:1;background-color:rgb(253 243 247/var(--tw-bg-opacity));border-color:rgb(217 12 85/var(--tw-border-opacity));border-width:1px}.btn-mcq-option.selected.correct>span>.choice,.btn-mcq-option.selected.incorrect>span>.choice{--tw-border-opacity:1;border-color:rgb(113 115 119/var(--tw-border-opacity));border-width:1px}.typein-textbox:focus-visible{--tw-ring-offset-shadow:var(--tw-ring-inset) 0 0 0 var(--tw-ring-offset-width) var(--tw-ring-offset-color);--tw-ring-shadow:var(--tw-ring-inset) 0 0 0 calc(4px + var(--tw-ring-offset-width)) var(--tw-ring-color);--tw-ring-opacity:1;--tw-ring-color:rgb(84 101 251/var(--tw-ring-opacity));--tw-ring-offset-width:4px;box-shadow:var(--tw-ring-offset-shadow), var(--tw-ring-shadow), var(--tw-shadow, 0 0 rgba(0, 0, 0, 0));outline:2px solid transparent;outline-offset:2px;transition-duration:50ms}.typein-textbox{--tw-border-opacity:1;--tw-bg-opacity:1;--tw-text-opacity:1;background-color:rgb(255 255 255/var(--tw-bg-opacity));border-color:rgb(93 99 107/var(--tw-border-opacity));border-radius:0.5rem;border-width:1px;color:rgb(33 37 41/var(--tw-text-opacity));font-size:1rem;line-height:1.5rem;padding:0.75rem 1rem;width:100%}.typein-textbox::-moz-placeholder{--tw-placeholder-opacity:1;color:rgb(93 99 107/var(--tw-placeholder-opacity))}.typein-textbox::placeholder{--tw-placeholder-opacity:1;color:rgb(93 99 107/var(--tw-placeholder-opacity))}.typein-textbox:focus{--tw-border-opacity:1;border-color:rgb(84 101 251/var(--tw-border-opacity));border-width:2px}@media(hover: hover) and (pointer: fine){.typein-textbox:hover{--tw-border-opacity:1;border-color:rgb(84 101 251/var(--tw-border-opacity));border-width:2px;outline:2px solid transparent;outline-offset:2px}}.typein-textbox:focus{--tw-ring-offset-shadow:var(--tw-ring-inset) 0 0 0 var(--tw-ring-offset-width) var(--tw-ring-offset-color)!important;--tw-ring-shadow:var(--tw-ring-inset) 0 0 0 calc(4px + var(--tw-ring-offset-width)) var(--tw-ring-color)!important;box-shadow:var(--tw-ring-offset-shadow), var(--tw-ring-shadow), var(--tw-shadow, 0 0 rgba(0, 0, 0, 0)) !important}@media(hover: hover) and (pointer: fine){.typein-textbox:hover{--tw-ring-offset-shadow:var(--tw-ring-inset) 0 0 0 var(--tw-ring-offset-width) var(--tw-ring-offset-color);--tw-ring-shadow:var(--tw-ring-inset) 0 0 0 calc(2px + var(--tw-ring-offset-width)) var(--tw-ring-color);--tw-ring-opacity:1;--tw-ring-color:rgb(84 101 251/var(--tw-ring-opacity));--tw-ring-offset-width:4px;box-shadow:var(--tw-ring-offset-shadow), var(--tw-ring-shadow), var(--tw-shadow, 0 0 rgba(0, 0, 0, 0));transition-duration:50ms}}#dnd-action-dragged-el{--tw-ring-offset-shadow:var(--tw-ring-inset) 0 0 0 var(--tw-ring-offset-width) var(--tw-ring-offset-color);--tw-ring-shadow:var(--tw-ring-inset) 0 0 0 calc(2px + var(--tw-ring-offset-width)) var(--tw-ring-color);--tw-ring-opacity:1;--tw-ring-color:rgb(84 101 251/var(--tw-ring-opacity));--tw-ring-offset-width:2px;--tw-border-opacity:1!important;--tw-bg-opacity:1!important;background-color:rgb(205 208 254/var(--tw-bg-opacity)) !important;border-color:rgb(93 99 107/var(--tw-border-opacity)) !important;box-shadow:var(--tw-ring-offset-shadow), var(--tw-ring-shadow), var(--tw-shadow, 0 0 rgba(0, 0, 0, 0));cursor:grabbing !important;outline:2px solid transparent;outline-offset:2px;transition-duration:50ms}#dnd-action-dragged-el .btn-vertical-icon{--tw-text-opacity:1;color:rgb(40 44 135/var(--tw-text-opacity));cursor:grabbing !important}#dnd-action-dragged-el .preview-icon{display:none !important}#dnd-action-dragged-el .preview-vertical{display:block !important}.category-content>.missing-answer-label{display:block}.category-content>.missing-answer-label~.missing-answer-label{display:none}.text-stimulus{padding-bottom:1rem;padding-top:1rem}.text-stimulus p{--tw-text-opacity:1;color:rgb(40 44 135/var(--tw-text-opacity));font-size:1.25rem;line-height:1.75rem;padding-bottom:0.5rem}.text-stimulus ol,.text-stimulus ul{font-size:1rem;line-height:1.5rem;list-style-position:inside;padding-bottom:0.5rem;padding-left:0.5rem}.text-stimulus ol ::marker,.text-stimulus ul ::marker{color:#282c87}.text-stimulus ol::marker,.text-stimulus ul::marker{color:#282c87}.text-stimulus ul{list-style-type:disc}.text-stimulus ol{list-style-type:decimal}.text-stimulus ol ::marker{font-weight:600}.text-stimulus ol::marker{font-weight:600}.text-stimulus ul li>p{margin-left:-0.5rem}.text-stimulus ol>li>p,.text-stimulus ul>li>p{display:inline-block;font-size:1rem;font-weight:600;line-height:1.5rem;padding-bottom:0;padding-top:0}.text-stimulus div.table-container:focus-visible{--tw-ring-offset-shadow:var(--tw-ring-inset) 0 0 0 var(--tw-ring-offset-width) var(--tw-ring-offset-color);--tw-ring-shadow:var(--tw-ring-inset) 0 0 0 calc(4px + var(--tw-ring-offset-width)) var(--tw-ring-color);--tw-ring-opacity:1;--tw-ring-color:rgb(84 101 251/var(--tw-ring-opacity));--tw-ring-offset-width:4px;box-shadow:var(--tw-ring-offset-shadow), var(--tw-ring-shadow), var(--tw-shadow, 0 0 rgba(0, 0, 0, 0));outline:2px solid transparent;outline-offset:2px;transition-duration:50ms}.text-stimulus div.table-container{border-radius:0.5rem;overflow:auto;padding-left:0.125rem;padding-right:0.125rem}.text-stimulus div.table-container::-webkit-scrollbar{height:0.5rem;width:0.5rem}.text-stimulus div.table-container::-webkit-scrollbar-track{background-color:transparent}.text-stimulus div.table-container::-webkit-scrollbar-thumb{--tw-bg-opacity:1;background-color:rgb(204 204 204/var(--tw-bg-opacity));border-radius:0.5rem}.text-stimulus table{--tw-border-spacing-x:0.75rem;--tw-border-spacing-y:0.75rem;--tw-shadow:0 0 0 1px #9ca3af;--tw-shadow-colored:0 0 0 1px var(--tw-shadow-color);border-radius:0.5rem;border-spacing:var(--tw-border-spacing-x) var(--tw-border-spacing-y);box-shadow:var(--tw-ring-offset-shadow, 0 0 rgba(0, 0, 0, 0)), var(--tw-ring-shadow, 0 0 rgba(0, 0, 0, 0)), var(--tw-shadow);margin-bottom:1rem;margin-top:0.5rem;overflow-x:auto;width:100%}.text-stimulus table tr{--tw-border-opacity:1;border-bottom-width:1px;border-color:rgb(156 163 175/var(--tw-border-opacity))}.text-stimulus table tr:last-child{border-color:transparent}.text-stimulus table td,.text-stimulus table th{--tw-border-opacity:1;border-color:rgb(156 163 175/var(--tw-border-opacity));border-left-width:1px;min-width:140px}.text-stimulus table td:first-child,.text-stimulus table th:first-child{border-style:none}.text-stimulus table td>p,.text-stimulus table th>p{--tw-text-opacity:1;color:rgb(33 37 41/var(--tw-text-opacity));font-size:1rem;line-height:1.5rem;padding:0.75rem;text-align:left}.text-stimulus table th>p{font-weight:600}.sr-only{clip:rect(0, 0, 0, 0);border-width:0;height:1px;margin:-1px;overflow:hidden;padding:0;position:absolute;white-space:nowrap;width:1px}.absolute{position:absolute}.relative{position:relative}.inset-0{inset:0}.inset-y-0{bottom:0;top:0}.-top-2{top:-0.5rem}.-top-2\\.5{top:-0.625rem}.bottom-4{bottom:1rem}.left-4{left:1rem}.left-\\[-9999px\\]{left:-9999px}.right-0{right:0}.right-4{right:1rem}.top-12{top:3rem}.z-0{z-index:0}.z-10{z-index:10}.z-50{z-index:50}.m-auto{margin:auto}.mx-0{margin-left:0;margin-right:0}.mx-0\\.5{margin-left:0.125rem;margin-right:0.125rem}.my-6{margin-bottom:1.5rem;margin-top:1.5rem}.mb-1{margin-bottom:0.25rem}.mb-10{margin-bottom:2.5rem}.mb-12{margin-bottom:3rem}.mb-2{margin-bottom:0.5rem}.mb-3{margin-bottom:0.75rem}.mb-4{margin-bottom:1rem}.mb-5{margin-bottom:1.25rem}.mb-6{margin-bottom:1.5rem}.ml-1{margin-left:0.25rem}.ml-3{margin-left:0.75rem}.ml-\\[3px\\]{margin-left:3px}.mr-1{margin-right:0.25rem}.mr-2{margin-right:0.5rem}.mr-4{margin-right:1rem}.mt-0{margin-top:0}.mt-0\\.5{margin-top:0.125rem}.mt-1{margin-top:0.25rem}.mt-2{margin-top:0.5rem}.mt-4{margin-top:1rem}.mt-7{margin-top:1.75rem}.mt-7\\.5{margin-top:1.875}.mt-9{margin-top:2.25rem}.block{display:block}.inline{display:inline}.flex{display:flex}.table{display:table}.grid{display:grid}.hidden{display:none}.h-11{height:2.75rem}.h-4{height:1rem}.h-52{height:13rem}.h-6{height:1.5rem}.h-fit{height:-moz-fit-content;height:fit-content}.h-full{height:100%}.max-h-\\[470px\\]{max-height:470px}.max-h-\\[660px\\]{max-height:660px}.min-h-\\[133px\\]{min-height:133px}.min-h-\\[140px\\]{min-height:140px}.min-h-\\[54px\\]{min-height:54px}.min-h-\\[86px\\]{min-height:86px}.w-11{width:2.75rem}.w-2\\/4{width:50%}.w-4{width:1rem}.w-6{width:1.5rem}.w-fit{width:-moz-fit-content;width:fit-content}.w-full{width:100%}.min-w-\\[44px\\]{min-width:44px}.min-w-\\[85px\\]{min-width:85px}.max-w-\\[400px\\]{max-width:400px}.grow{flex-grow:1}.basis-0{flex-basis:0px}.\\!cursor-default{cursor:default !important}.\\!cursor-pointer{cursor:pointer !important}.cursor-pointer{cursor:pointer}.grid-cols-1{grid-template-columns:repeat(1, minmax(0, 1fr))}.flex-row{flex-direction:row}.flex-col{flex-direction:column}.flex-col-reverse{flex-direction:column-reverse}.flex-wrap{flex-wrap:wrap}.content-start{align-content:flex-start}.items-center{align-items:center}.justify-center{justify-content:center}.justify-between{justify-content:space-between}.gap-2{gap:0.5rem}.space-y-2>:not([hidden])~:not([hidden]){--tw-space-y-reverse:0;margin-bottom:calc(0.5rem * var(--tw-space-y-reverse));margin-top:calc(0.5rem * (1 - var(--tw-space-y-reverse)))}.space-y-reverse>:not([hidden])~:not([hidden]){--tw-space-y-reverse:1}.overflow-hidden{overflow:hidden}.whitespace-nowrap{white-space:nowrap}.rounded{border-radius:0.25rem}.rounded-\\[32px\\]{border-radius:32px}.rounded-lg{border-radius:0.5rem}.rounded-md{border-radius:0.375rem}.rounded-b-lg{border-bottom-left-radius:0.5rem;border-bottom-right-radius:0.5rem}.rounded-t-lg{border-top-left-radius:0.5rem;border-top-right-radius:0.5rem}.border{border-width:1px}.border-2{border-width:2px}.border-b{border-bottom-width:1px}.border-l-6,.border-l-\\[6px\\]{border-left-width:6px}.border-dashed{border-style:dashed}.\\!border-blue-1000{--tw-border-opacity:1!important;border-color:rgb(40 44 135/var(--tw-border-opacity)) !important}.border-blue-1000{--tw-border-opacity:1;border-color:rgb(40 44 135/var(--tw-border-opacity))}.border-charcoal{--tw-border-opacity:1;border-color:rgb(33 37 41/var(--tw-border-opacity))}.border-gray-400{--tw-border-opacity:1;border-color:rgb(196 201 204/var(--tw-border-opacity))}.border-gray-800{--tw-border-opacity:1;border-color:rgb(93 99 107/var(--tw-border-opacity))}.border-green-800{--tw-border-opacity:1;border-color:rgb(0 102 5/var(--tw-border-opacity))}.border-red-600{--tw-border-opacity:1;border-color:rgb(220 38 38/var(--tw-border-opacity))}.border-red-800{--tw-border-opacity:1;border-color:rgb(217 12 85/var(--tw-border-opacity))}.border-soft-blue{--tw-border-opacity:1;border-color:rgb(84 101 251/var(--tw-border-opacity))}.border-white{--tw-border-opacity:1;border-color:rgb(255 255 255/var(--tw-border-opacity))}.\\!bg-violet-100{--tw-bg-opacity:1!important;background-color:rgb(235 235 255/var(--tw-bg-opacity)) !important}.\\!bg-violet-150{--tw-bg-opacity:1!important;background-color:rgb(205 208 254/var(--tw-bg-opacity)) !important}.\\!bg-white{--tw-bg-opacity:1!important;background-color:rgb(255 255 255/var(--tw-bg-opacity)) !important}.bg-blue-1000{--tw-bg-opacity:1;background-color:rgb(40 44 135/var(--tw-bg-opacity))}.bg-gray-100{--tw-bg-opacity:1;background-color:rgb(247 250 250/var(--tw-bg-opacity))}.bg-gray-50{--tw-bg-opacity:1;background-color:rgb(244 244 244/var(--tw-bg-opacity))}.bg-green-300{--tw-bg-opacity:1;background-color:rgb(241 254 241/var(--tw-bg-opacity))}.bg-red-200{--tw-bg-opacity:1;background-color:rgb(254 202 202/var(--tw-bg-opacity))}.bg-red-300{--tw-bg-opacity:1;background-color:rgb(253 243 247/var(--tw-bg-opacity))}.bg-soft-blue{--tw-bg-opacity:1;background-color:rgb(84 101 251/var(--tw-bg-opacity))}.bg-transparent{background-color:transparent}.bg-violet-100{--tw-bg-opacity:1;background-color:rgb(235 235 255/var(--tw-bg-opacity))}.bg-violet-150{--tw-bg-opacity:1;background-color:rgb(205 208 254/var(--tw-bg-opacity))}.bg-white{--tw-bg-opacity:1;background-color:rgb(255 255 255/var(--tw-bg-opacity))}.bg-yellow-1000{--tw-bg-opacity:1;background-color:rgb(251 217 27/var(--tw-bg-opacity))}.p-0{padding:0}.p-0\\.5{padding:0.125rem}.p-1{padding:0.25rem}.p-1\\.5{padding:0.375rem}.p-2{padding:0.5rem}.p-3{padding:0.75rem}.p-4{padding:1rem}.p-5{padding:1.25rem}.p-6{padding:1.5rem}.px-3{padding-left:0.75rem;padding-right:0.75rem}.px-4{padding-left:1rem;padding-right:1rem}.py-1{padding-bottom:0.25rem;padding-top:0.25rem}.py-1\\.5{padding-bottom:0.375rem;padding-top:0.375rem}.py-2{padding-bottom:0.5rem;padding-top:0.5rem}.pb-0{padding-bottom:0}.pb-10{padding-bottom:2.5rem}.pb-2{padding-bottom:0.5rem}.pb-3{padding-bottom:0.75rem}.pl-24{padding-left:6rem}.pl-3{padding-left:0.75rem}.pl-4{padding-left:1rem}.pr-3{padding-right:0.75rem}.pt-0{padding-top:0}.pt-4{padding-top:1rem}.pt-6{padding-top:1.5rem}.pt-\\[55px\\]{padding-top:55px}.text-left{text-align:left}.text-center{text-align:center}.text-base{font-size:1rem;line-height:1.5rem}.text-lg{font-size:1.125rem;line-height:1.75rem}.text-sm{font-size:0.875rem;line-height:1.25rem}.text-xl{font-size:1.25rem;line-height:1.75rem}.font-bold{font-weight:700}.font-semibold{font-weight:600}.leading-4{line-height:1rem}.leading-5{line-height:1.25rem}.leading-6{line-height:1.5rem}.leading-\\[22px\\]{line-height:22px}.\\!text-gray-900{--tw-text-opacity:1!important;color:rgb(57 62 69/var(--tw-text-opacity)) !important}.text-blue-1000{--tw-text-opacity:1;color:rgb(40 44 135/var(--tw-text-opacity))}.text-charcoal{--tw-text-opacity:1;color:rgb(33 37 41/var(--tw-text-opacity))}.text-gray-800{--tw-text-opacity:1;color:rgb(93 99 107/var(--tw-text-opacity))}.text-green-800{--tw-text-opacity:1;color:rgb(0 102 5/var(--tw-text-opacity))}.text-inherit{color:inherit}.text-red-800{--tw-text-opacity:1;color:rgb(217 12 85/var(--tw-text-opacity))}.text-white{--tw-text-opacity:1;color:rgb(255 255 255/var(--tw-text-opacity))}.underline{text-decoration-line:underline}.opacity-50{opacity:0.5}.shadow-\\[0_-12px_14px_-16px_\\#00000033\\]{--tw-shadow:0 -12px 14px -16px #00000033;--tw-shadow-colored:0 -12px 14px -16px var(--tw-shadow-color)}.shadow-\\[0_-12px_14px_-16px_\\#00000033\\],.shadow-md{box-shadow:var(--tw-ring-offset-shadow, 0 0 rgba(0, 0, 0, 0)), var(--tw-ring-shadow, 0 0 rgba(0, 0, 0, 0)), var(--tw-shadow)}.shadow-md{--tw-shadow:0px 2px 8px rgba(0,0,0,.2);--tw-shadow-colored:0px 2px 8px var(--tw-shadow-color)}.\\!outline-none{outline:2px solid transparent !important;outline-offset:2px !important}.outline-none{outline:2px solid transparent;outline-offset:2px}.filter{filter:var(--tw-blur) var(--tw-brightness) var(--tw-contrast) var(--tw-grayscale) var(--tw-hue-rotate) var(--tw-invert) var(--tw-saturate) var(--tw-sepia) var(--tw-drop-shadow)}.transition{transition-duration:0.15s;transition-property:color, background-color, border-color, text-decoration-color, fill, stroke, opacity, box-shadow, transform, filter, -webkit-backdrop-filter;transition-property:color, background-color, border-color, text-decoration-color, fill, stroke, opacity, box-shadow, transform, filter, backdrop-filter;transition-property:color, background-color, border-color, text-decoration-color, fill, stroke, opacity, box-shadow, transform, filter, backdrop-filter, -webkit-backdrop-filter;transition-timing-function:cubic-bezier(0.4, 0, 0.2, 1)}.duration-300{transition-duration:0.3s}.active\\:raw-focus-ring:active{--tw-ring-offset-shadow:var(--tw-ring-inset) 0 0 0 var(--tw-ring-offset-width) var(--tw-ring-offset-color);--tw-ring-shadow:var(--tw-ring-inset) 0 0 0 calc(2px + var(--tw-ring-offset-width)) var(--tw-ring-color);--tw-ring-opacity:1;--tw-ring-color:rgb(84 101 251/var(--tw-ring-opacity));--tw-ring-offset-width:2px;box-shadow:var(--tw-ring-offset-shadow), var(--tw-ring-shadow), var(--tw-shadow, 0 0 rgba(0, 0, 0, 0));outline:2px solid transparent;outline-offset:2px;transition-duration:50ms}@media(min-width: 732px){.md\\:item-heading{--tw-text-opacity:1;color:rgb(40 44 135/var(--tw-text-opacity));font-size:1.25rem;letter-spacing:-0.025em;line-height:1.5rem}.category-content>.md\\:missing-answer-label{display:block}.category-content>.md\\:missing-answer-label~.md\\:missing-answer-label{display:none}}@media(hover: hover) and (pointer: fine){.td\\:hover-focus-ring:hover{--tw-ring-offset-shadow:var(--tw-ring-inset) 0 0 0 var(--tw-ring-offset-width) var(--tw-ring-offset-color);--tw-ring-shadow:var(--tw-ring-inset) 0 0 0 calc(2px + var(--tw-ring-offset-width)) var(--tw-ring-color);--tw-ring-opacity:1;--tw-ring-color:rgb(84 101 251/var(--tw-ring-opacity));--tw-ring-offset-width:2px;box-shadow:var(--tw-ring-offset-shadow), var(--tw-ring-shadow), var(--tw-shadow, 0 0 rgba(0, 0, 0, 0));outline:2px solid transparent;outline-offset:2px;transition-duration:50ms}}.last\\:mr-0:last-child{margin-right:0}.focus-within\\:left-0:focus-within{left:0}.focus-within\\:right-0:focus-within{right:0}.focus-within\\:top-0:focus-within{top:0}.focus-within\\:z-30:focus-within{z-index:30}.hover\\:bg-black-50:hover{background-color:rgba(0, 0, 0, 0.0509803922)}.hover\\:bg-blue-100:hover{--tw-bg-opacity:1;background-color:rgb(222 222 255/var(--tw-bg-opacity))}.hover\\:bg-violet-100:hover{--tw-bg-opacity:1;background-color:rgb(235 235 255/var(--tw-bg-opacity))}.hover\\:bg-yellow-1000:hover{--tw-bg-opacity:1;background-color:rgb(251 217 27/var(--tw-bg-opacity))}.hover\\:text-charcoal:hover{--tw-text-opacity:1;color:rgb(33 37 41/var(--tw-text-opacity))}.focus\\:outline-transparent:focus{outline-color:transparent}.focus-visible\\:border:focus-visible{border-width:1px}.focus-visible\\:border-charcoal:focus-visible{--tw-border-opacity:1;border-color:rgb(33 37 41/var(--tw-border-opacity))}.focus-visible\\:border-gray-400:focus-visible{--tw-border-opacity:1;border-color:rgb(196 201 204/var(--tw-border-opacity))}.focus-visible\\:border-gray-800:focus-visible{--tw-border-opacity:1;border-color:rgb(93 99 107/var(--tw-border-opacity))}.focus-visible\\:outline-none:focus-visible{outline:2px solid transparent;outline-offset:2px}.active\\:bg-black-55:active,.active\\:bg-black-60:active{background-color:rgba(0, 0, 0, 0.1019607843)}.active\\:bg-yellow-1100:active{--tw-bg-opacity:1;background-color:rgb(238 206 26/var(--tw-bg-opacity))}.active\\:text-charcoal:active{--tw-text-opacity:1;color:rgb(33 37 41/var(--tw-text-opacity))}.disabled\\:text-gray-40:disabled{--tw-text-opacity:1;color:rgb(142 147 153/var(--tw-text-opacity))}.disabled\\:hover\\:bg-white:hover:disabled{--tw-bg-opacity:1;background-color:rgb(255 255 255/var(--tw-bg-opacity))}.group\\/itemContainer:hover .group-hover\\/itemContainer\\:bg-violet-100{--tw-bg-opacity:1;background-color:rgb(235 235 255/var(--tw-bg-opacity))}.group:hover .group-hover\\:underline{text-decoration-line:underline}.group:active .group-active\\:border-2{border-width:2px}.group:active .group-active\\:border-blue-1000{--tw-border-opacity:1;border-color:rgb(40 44 135/var(--tw-border-opacity))}.group:active .group-active\\:p-\\[7px\\]{padding:7px}@media(min-width: 732px){.md\\:inset-0{inset:0}.md\\:top-20{top:5rem}.md\\:mb-2{margin-bottom:0.5rem}.md\\:mb-4{margin-bottom:1rem}.md\\:mb-8{margin-bottom:2rem}.md\\:mt-14{margin-top:3.5rem}.md\\:block{display:block}.md\\:inline-block{display:inline-block}.md\\:flex{display:flex}.md\\:hidden{display:none}.md\\:h-fit{height:-moz-fit-content;height:fit-content}.md\\:min-h-0{min-height:0}.md\\:min-h-\\[140px\\]{min-height:140px}.md\\:min-h-\\[164px\\]{min-height:164px}.md\\:w-fit{width:-moz-fit-content;width:fit-content}.md\\:grow-0{flex-grow:0}.md\\:grid-cols-2{grid-template-columns:repeat(2, minmax(0, 1fr))}.md\\:flex-row{flex-direction:row}.md\\:flex-col{flex-direction:column}.md\\:items-center{align-items:center}.md\\:justify-normal{justify-content:normal}.md\\:justify-center{justify-content:center}.md\\:justify-between{justify-content:space-between}.md\\:gap-6{gap:1.5rem}.md\\:space-y-0>:not([hidden])~:not([hidden]){--tw-space-y-reverse:0;margin-bottom:calc(0px * var(--tw-space-y-reverse));margin-top:calc(0px * (1 - var(--tw-space-y-reverse)))}.md\\:rounded-b-none{border-bottom-left-radius:0;border-bottom-right-radius:0}.md\\:border{border-width:1px}.md\\:border-gray-400{--tw-border-opacity:1;border-color:rgb(196 201 204/var(--tw-border-opacity))}.md\\:\\!bg-white{--tw-bg-opacity:1!important;background-color:rgb(255 255 255/var(--tw-bg-opacity)) !important}.md\\:p-4{padding:1rem}.md\\:px-0{padding-left:0;padding-right:0}.md\\:pb-0{padding-bottom:0}.md\\:pt-20{padding-top:5rem}.md\\:pt-20\\.5{padding-top:5.125rem}.md\\:text-center{text-align:center}.md\\:shadow-\\[0_0_\\#0000\\]{--tw-shadow:0 0 #0000;--tw-shadow-colored:0 0 var(--tw-shadow-color);box-shadow:var(--tw-ring-offset-shadow, 0 0 rgba(0, 0, 0, 0)), var(--tw-ring-shadow, 0 0 rgba(0, 0, 0, 0)), var(--tw-shadow)}.group\\/itemContainer:hover .md\\:group-hover\\/itemContainer\\:bg-white{--tw-bg-opacity:1;background-color:rgb(255 255 255/var(--tw-bg-opacity))}}@media(min-width: 1196px){.lg\\:mr-6{margin-right:1.5rem}.lg\\:flex{display:flex}.lg\\:hidden{display:none}.lg\\:min-h-\\[224px\\]{min-height:224px}.lg\\:w-full{width:100%}.lg\\:max-w-\\[50\\%\\]{max-width:50%}.lg\\:grow{flex-grow:1}.lg\\:basis-1\\/2{flex-basis:50%}.lg\\:items-center{align-items:center}.lg\\:justify-between{justify-content:space-between}.lg\\:gap-0{gap:0}.lg\\:last\\:mr-0:last-child{margin-right:0}}@media(hover: hover) and (pointer: fine){.td\\:hover\\:cursor-grab:hover{cursor:grab}.td\\:hover\\:border-gray-800:hover{--tw-border-opacity:1;border-color:rgb(93 99 107/var(--tw-border-opacity))}.td\\:hover\\:bg-black-50:hover{background-color:rgba(0, 0, 0, 0.0509803922)}.td\\:hover\\:bg-violet-100:hover{--tw-bg-opacity:1;background-color:rgb(235 235 255/var(--tw-bg-opacity))}.td\\:hover\\:text-soft-blue:hover{--tw-text-opacity:1;color:rgb(84 101 251/var(--tw-text-opacity))}.group:hover .td\\:group-hover\\:bg-black{--tw-bg-opacity:1;background-color:rgb(0 0 0/var(--tw-bg-opacity))}.group:hover .td\\:group-hover\\:opacity-5{opacity:0.05}}');
11191
11879
  }
11192
11880
  function create_else_block_12(ctx) {
11193
11881
  let invalidbanner;
@@ -11294,7 +11982,7 @@
11294
11982
  }
11295
11983
  };
11296
11984
  }
11297
- function create_if_block9(ctx) {
11985
+ function create_if_block10(ctx) {
11298
11986
  let promptskeleton;
11299
11987
  let current;
11300
11988
  promptskeleton = new PromptSkeleton_default({});
@@ -11567,12 +12255,12 @@
11567
12255
  }
11568
12256
  };
11569
12257
  }
11570
- function create_fragment25(ctx) {
12258
+ function create_fragment26(ctx) {
11571
12259
  let current_block_type_index;
11572
12260
  let if_block;
11573
12261
  let if_block_anchor;
11574
12262
  let current;
11575
- const if_block_creators = [create_if_block9, create_if_block_19, create_else_block_12];
12263
+ const if_block_creators = [create_if_block10, create_if_block_19, create_else_block_12];
11576
12264
  const if_blocks = [];
11577
12265
  function select_block_type(ctx2, dirty) {
11578
12266
  if (
@@ -11640,7 +12328,7 @@
11640
12328
  };
11641
12329
  }
11642
12330
  var bannerLabel = "Invalid session id.";
11643
- function instance12($$self, $$props, $$invalidate) {
12331
+ function instance13($$self, $$props, $$invalidate) {
11644
12332
  const { "session-id": sessionId, "preview-mode": previewMode, "item-id": itemId, "preview-contentful": previewContentful } = $$props;
11645
12333
  const previewModeType = ["true", "interactive"];
11646
12334
  const isPreviewModeInteractive = Boolean(previewMode === "interactive" && itemId);
@@ -11672,8 +12360,8 @@
11672
12360
  };
11673
12361
  const getItemData = async (itemId2, metadata) => {
11674
12362
  try {
11675
- let includeAnswer = isFinished && isLocked ? "?include=[correct_answer]" : "";
11676
- includeAnswer = isPreviewContentful ? "?include=[correct_answer,unpublished]&is_contentful_preview=true" : includeAnswer;
12363
+ let includeAnswer = `?include=[html_tags${isFinished && isLocked ? ",correct_answer" : ""}]`;
12364
+ includeAnswer = isPreviewContentful ? "?include=[html_tags,correct_answer,unpublished]&is_contentful_preview=true" : includeAnswer;
11677
12365
  const { data } = await useGet(`items/${itemId2}${includeAnswer}`);
11678
12366
  $$invalidate(3, interactionType = getInteractionType(data));
11679
12367
  $$invalidate(0, sessionData = { ...data, metadata });
@@ -11852,7 +12540,7 @@
11852
12540
  var PromptBuilder = class extends SvelteComponent {
11853
12541
  constructor(options) {
11854
12542
  super();
11855
- init(this, options, instance12, create_fragment25, safe_not_equal, {}, add_css);
12543
+ init(this, options, instance13, create_fragment26, safe_not_equal, {}, add_css);
11856
12544
  }
11857
12545
  };
11858
12546
  customElements.define("prompt-builder", create_custom_element(PromptBuilder, {}, [], [], true));