eat-js-sdk 0.0.57 → 0.0.59
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/eat-prompt-builder.mjs +1267 -574
- package/package.json +1 -1
|
@@ -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,
|
|
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 =
|
|
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 =
|
|
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
|
|
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
|
|
1400
|
+
function create_fragment2(ctx) {
|
|
1325
1401
|
let if_block_anchor;
|
|
1326
1402
|
let if_block = (
|
|
1327
1403
|
/*fileUrl*/
|
|
1328
|
-
ctx[1] &&
|
|
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 =
|
|
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
|
|
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,
|
|
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
|
|
1430
|
-
let
|
|
1431
|
-
let
|
|
1432
|
-
|
|
1433
|
-
|
|
1434
|
-
|
|
1435
|
-
|
|
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
|
-
|
|
1439
|
-
html_anchor = empty();
|
|
1440
|
-
html_tag.a = html_anchor;
|
|
1519
|
+
create_component(commonstringtohtml.$$.fragment);
|
|
1441
1520
|
},
|
|
1442
1521
|
m(target, anchor) {
|
|
1443
|
-
|
|
1444
|
-
|
|
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
|
|
1449
|
-
|
|
1450
|
-
|
|
1451
|
-
|
|
1452
|
-
|
|
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
|
-
|
|
1456
|
-
detach(html_anchor);
|
|
1457
|
-
html_tag.d();
|
|
1458
|
-
}
|
|
1544
|
+
destroy_component(commonstringtohtml, detaching);
|
|
1459
1545
|
}
|
|
1460
1546
|
};
|
|
1461
1547
|
}
|
|
1462
|
-
function
|
|
1463
|
-
let
|
|
1464
|
-
let commonmedia;
|
|
1548
|
+
function create_if_block_10(ctx) {
|
|
1549
|
+
let commonstringtohtml;
|
|
1465
1550
|
let current;
|
|
1466
|
-
|
|
1551
|
+
commonstringtohtml = new CommonStringToHtml_default({
|
|
1467
1552
|
props: {
|
|
1468
|
-
|
|
1469
|
-
/*
|
|
1470
|
-
ctx[
|
|
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
|
-
|
|
1481
|
-
/*caption*/
|
|
1482
|
-
ctx[6]
|
|
1483
|
-
)
|
|
1557
|
+
otherClass: "text-stimulus py-2"
|
|
1484
1558
|
}
|
|
1485
1559
|
});
|
|
1486
1560
|
return {
|
|
1487
1561
|
c() {
|
|
1488
|
-
|
|
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
|
-
|
|
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
|
|
1499
|
-
if (dirty & /*
|
|
1500
|
-
|
|
1501
|
-
|
|
1502
|
-
ctx2[
|
|
1503
|
-
|
|
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(
|
|
1579
|
+
transition_in(commonstringtohtml.$$.fragment, local);
|
|
1521
1580
|
current = true;
|
|
1522
1581
|
},
|
|
1523
1582
|
o(local) {
|
|
1524
|
-
transition_out(
|
|
1583
|
+
transition_out(commonstringtohtml.$$.fragment, local);
|
|
1525
1584
|
current = false;
|
|
1526
1585
|
},
|
|
1527
1586
|
d(detaching) {
|
|
1528
|
-
|
|
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
|
|
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",
|
|
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
|
|
1642
|
-
let
|
|
1643
|
-
let div0;
|
|
1644
|
-
let commonmedia;
|
|
1669
|
+
function create_if_block_8(ctx) {
|
|
1670
|
+
let commonstringtohtml;
|
|
1645
1671
|
let current;
|
|
1646
|
-
|
|
1672
|
+
commonstringtohtml = new CommonStringToHtml_default({
|
|
1647
1673
|
props: {
|
|
1648
|
-
|
|
1649
|
-
/*
|
|
1650
|
-
ctx[
|
|
1651
|
-
),
|
|
1652
|
-
fileUrl: (
|
|
1653
|
-
/*fileUrl*/
|
|
1654
|
-
ctx[2]
|
|
1674
|
+
htmlString: (
|
|
1675
|
+
/*stimulusText*/
|
|
1676
|
+
ctx[7]
|
|
1655
1677
|
),
|
|
1656
|
-
|
|
1657
|
-
|
|
1658
|
-
|
|
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"
|
|
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
|
-
|
|
1671
|
-
|
|
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
|
-
|
|
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
|
-
|
|
1712
|
-
detach(div1);
|
|
1713
|
-
}
|
|
1714
|
-
destroy_component(commonmedia);
|
|
2116
|
+
destroy_component(commonmedia, detaching);
|
|
1715
2117
|
}
|
|
1716
2118
|
};
|
|
1717
2119
|
}
|
|
1718
|
-
function
|
|
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] &&
|
|
2183
|
+
ctx[0] && create_if_block_11(ctx)
|
|
1734
2184
|
);
|
|
1735
2185
|
let if_block1 = (
|
|
1736
|
-
/*
|
|
1737
|
-
ctx[
|
|
1738
|
-
ctx[
|
|
2186
|
+
/*showTextAlignmentInline*/
|
|
2187
|
+
ctx[11] && /*showStimulusLayoutTextFirst*/
|
|
2188
|
+
ctx[14] && create_if_block_10(ctx)
|
|
1739
2189
|
);
|
|
1740
2190
|
let if_block2 = (
|
|
1741
|
-
/*
|
|
1742
|
-
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
|
-
/*
|
|
1746
|
-
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[
|
|
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[
|
|
2226
|
+
ctx[17],
|
|
1757
2227
|
null
|
|
1758
2228
|
);
|
|
1759
|
-
let
|
|
2229
|
+
let if_block8 = (
|
|
1760
2230
|
/*showAlignmentDefault*/
|
|
1761
|
-
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
|
-
|
|
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
|
-
|
|
1784
|
-
if (
|
|
1785
|
-
|
|
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[
|
|
2270
|
+
(ctx[12] ? "lg:basis-1/2 lg:max-w-[50%]" : ""));
|
|
1789
2271
|
attr(div2, "class", div2_class_value = /*showAlignmentDefault*/
|
|
1790
|
-
ctx[
|
|
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
|
-
|
|
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,
|
|
1813
|
-
if (
|
|
1814
|
-
|
|
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 =
|
|
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
|
-
|
|
1831
|
-
if_block0
|
|
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[
|
|
2343
|
+
ctx2[8] && /*fileAlignment*/
|
|
1836
2344
|
ctx2[4] === ASSET_ALIGNMENT_INLINE
|
|
1837
2345
|
) {
|
|
1838
|
-
if (
|
|
1839
|
-
|
|
2346
|
+
if (if_block2) {
|
|
2347
|
+
if_block2.p(ctx2, dirty);
|
|
1840
2348
|
if (dirty & /*fileAlignment*/
|
|
1841
2349
|
16) {
|
|
1842
|
-
transition_in(
|
|
2350
|
+
transition_in(if_block2, 1);
|
|
1843
2351
|
}
|
|
1844
2352
|
} else {
|
|
1845
|
-
|
|
1846
|
-
|
|
1847
|
-
transition_in(
|
|
1848
|
-
|
|
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 (
|
|
2358
|
+
} else if (if_block2) {
|
|
1851
2359
|
group_outros();
|
|
1852
|
-
transition_out(
|
|
1853
|
-
|
|
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 (
|
|
1862
|
-
|
|
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
|
-
|
|
1865
|
-
|
|
1866
|
-
|
|
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 (
|
|
1869
|
-
|
|
1870
|
-
|
|
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
|
-
/*
|
|
1874
|
-
ctx2[
|
|
2395
|
+
/*showTextAlignmentDefault*/
|
|
2396
|
+
ctx2[10] && /*showStimulusLayoutTextFirst*/
|
|
2397
|
+
ctx2[14]
|
|
1875
2398
|
)
|
|
1876
|
-
|
|
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
|
-
|
|
2413
|
+
131072)) {
|
|
1880
2414
|
update_slot_base(
|
|
1881
2415
|
default_slot,
|
|
1882
2416
|
default_slot_template,
|
|
1883
2417
|
ctx2,
|
|
1884
2418
|
/*$$scope*/
|
|
1885
|
-
ctx2[
|
|
2419
|
+
ctx2[17],
|
|
1886
2420
|
!current ? get_all_dirty_from_scope(
|
|
1887
2421
|
/*$$scope*/
|
|
1888
|
-
ctx2[
|
|
2422
|
+
ctx2[17]
|
|
1889
2423
|
) : get_slot_changes(
|
|
1890
2424
|
default_slot_template,
|
|
1891
2425
|
/*$$scope*/
|
|
1892
|
-
ctx2[
|
|
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[
|
|
2436
|
+
ctx2[12]
|
|
1903
2437
|
)
|
|
1904
|
-
|
|
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
|
|
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 =
|
|
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
|
-
|
|
1966
|
-
|
|
1967
|
-
|
|
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(
|
|
2546
|
+
$$invalidate(15, interactionType = $$props2.interactionType);
|
|
1975
2547
|
if ("stimulus" in $$props2)
|
|
1976
|
-
$$invalidate(
|
|
2548
|
+
$$invalidate(16, stimulus = $$props2.stimulus);
|
|
1977
2549
|
if ("$$scope" in $$props2)
|
|
1978
|
-
$$invalidate(
|
|
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
|
-
|
|
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,
|
|
2577
|
+
init(this, options, instance3, create_fragment3, safe_not_equal, {
|
|
2001
2578
|
rubric: 0,
|
|
2002
2579
|
prompt: 1,
|
|
2003
|
-
interactionType:
|
|
2004
|
-
stimulus:
|
|
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[
|
|
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[
|
|
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
|
|
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
|
|
2729
|
+
function create_fragment4(ctx) {
|
|
2153
2730
|
let if_block_anchor;
|
|
2154
2731
|
let if_block = (
|
|
2155
2732
|
/*resultFeedback*/
|
|
2156
|
-
ctx[0] &&
|
|
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 =
|
|
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
|
|
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,
|
|
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
|
|
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,
|
|
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
|
|
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,
|
|
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
|
|
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
|
-
|
|
2665
|
-
|
|
3243
|
+
create_component(commonstringtohtml.$$.fragment);
|
|
3244
|
+
t3 = space();
|
|
2666
3245
|
if (if_block1)
|
|
2667
3246
|
if_block1.c();
|
|
2668
|
-
|
|
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
|
-
)}`}: ${
|
|
2680
|
-
|
|
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
|
-
|
|
2704
|
-
append(button,
|
|
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,
|
|
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,
|
|
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
|
-
)}`}: ${
|
|
2767
|
-
|
|
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
|
|
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] &&
|
|
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 =
|
|
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
|
|
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
|
|
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,
|
|
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
|
|
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] &&
|
|
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 =
|
|
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
|
|
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
|
|
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
|
-
|
|
3909
|
-
|
|
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
|
|
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,
|
|
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
|
|
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,
|
|
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
|
|
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
|
|
6802
|
+
function create_fragment11(ctx) {
|
|
6216
6803
|
let button;
|
|
6217
6804
|
let span0;
|
|
6218
|
-
let
|
|
6805
|
+
let commonstringtohtml;
|
|
6219
6806
|
let span0_class_value;
|
|
6220
|
-
let
|
|
6807
|
+
let t0;
|
|
6221
6808
|
let div;
|
|
6222
6809
|
let span1;
|
|
6223
6810
|
let span1_class_value;
|
|
6224
|
-
let
|
|
6811
|
+
let t1;
|
|
6225
6812
|
let span2;
|
|
6226
6813
|
let current_block_type_index;
|
|
6227
6814
|
let if_block0;
|
|
6228
|
-
let
|
|
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) &&
|
|
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
|
-
|
|
6269
|
-
|
|
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
|
-
|
|
6863
|
+
t1 = space();
|
|
6276
6864
|
span2 = element("span");
|
|
6277
6865
|
if_block0.c();
|
|
6278
|
-
|
|
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: ${/*
|
|
6300
|
-
ctx[
|
|
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: ${/*
|
|
6305
|
-
ctx[
|
|
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: ${/*
|
|
6309
|
-
ctx[
|
|
6310
|
-
ctx[10] ? "Selected option" : "Option"}: ${/*
|
|
6311
|
-
ctx[
|
|
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
|
-
|
|
6339
|
-
append(button,
|
|
6926
|
+
mount_component(commonstringtohtml, span0, null);
|
|
6927
|
+
append(button, t0);
|
|
6340
6928
|
append(button, div);
|
|
6341
6929
|
append(div, span1);
|
|
6342
|
-
append(div,
|
|
6930
|
+
append(div, t1);
|
|
6343
6931
|
append(div, span2);
|
|
6344
6932
|
if_blocks[current_block_type_index].m(span2, null);
|
|
6345
|
-
append(span2,
|
|
6933
|
+
append(span2, t2);
|
|
6346
6934
|
if (if_block1)
|
|
6347
6935
|
if_block1.m(span2, null);
|
|
6348
|
-
ctx[
|
|
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[
|
|
6943
|
+
ctx[12](
|
|
6356
6944
|
/*wordButtonId*/
|
|
6357
6945
|
ctx[3]
|
|
6358
6946
|
)
|
|
6359
6947
|
))
|
|
6360
|
-
ctx[
|
|
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[
|
|
6956
|
+
ctx[12](
|
|
6369
6957
|
/*wordButtonId*/
|
|
6370
6958
|
ctx[3]
|
|
6371
6959
|
)
|
|
6372
6960
|
))
|
|
6373
|
-
ctx[
|
|
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[
|
|
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
|
-
|
|
6978
|
+
const commonstringtohtml_changes = {};
|
|
6979
|
+
if (dirty & /*word*/
|
|
6391
6980
|
2)
|
|
6392
|
-
|
|
6393
|
-
|
|
6394
|
-
|
|
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,
|
|
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 =
|
|
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
|
|
6464
|
-
|
|
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: ${/*
|
|
6468
|
-
ctx[
|
|
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: ${/*
|
|
6473
|
-
ctx[
|
|
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: ${/*
|
|
6477
|
-
ctx[
|
|
6478
|
-
ctx[10] ? "Selected option" : "Option"}: ${/*
|
|
6479
|
-
ctx[
|
|
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[
|
|
7117
|
+
ctx[18](null);
|
|
6528
7118
|
mounted = false;
|
|
6529
7119
|
run_all(dispose);
|
|
6530
7120
|
}
|
|
6531
7121
|
};
|
|
6532
7122
|
}
|
|
6533
|
-
function
|
|
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(
|
|
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:
|
|
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(
|
|
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(
|
|
7212
|
+
$$invalidate(16, isPreviewModeInteractive = $$props2.isPreviewModeInteractive);
|
|
6622
7213
|
if ("categoryData" in $$props2)
|
|
6623
|
-
$$invalidate(
|
|
7214
|
+
$$invalidate(14, categoryData = $$props2.categoryData);
|
|
6624
7215
|
if ("correctAnswerList" in $$props2)
|
|
6625
|
-
$$invalidate(
|
|
7216
|
+
$$invalidate(17, correctAnswerList = $$props2.correctAnswerList);
|
|
6626
7217
|
};
|
|
6627
7218
|
$$self.$$.update = () => {
|
|
6628
7219
|
if ($$self.$$.dirty & /*wordFocus, wordButton*/
|
|
6629
|
-
|
|
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
|
-
|
|
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
|
-
|
|
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,
|
|
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:
|
|
7286
|
+
wordFocus: 15,
|
|
6695
7287
|
disabledClick: 6,
|
|
6696
|
-
isPreviewModeInteractive:
|
|
6697
|
-
categoryData:
|
|
6698
|
-
correctAnswerList:
|
|
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[
|
|
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[
|
|
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[
|
|
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[
|
|
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[
|
|
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
|
-
|
|
7442
|
+
2) {
|
|
6851
7443
|
attr(
|
|
6852
7444
|
button,
|
|
6853
7445
|
"aria-label",
|
|
6854
7446
|
/*ariaLabel*/
|
|
6855
|
-
ctx2[
|
|
7447
|
+
ctx2[1]
|
|
6856
7448
|
);
|
|
6857
7449
|
}
|
|
6858
7450
|
},
|
|
@@ -6907,7 +7499,7 @@
|
|
|
6907
7499
|
}
|
|
6908
7500
|
};
|
|
6909
7501
|
}
|
|
6910
|
-
function
|
|
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[
|
|
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
|
-
|
|
6931
|
-
ctx2[
|
|
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 &&
|
|
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[
|
|
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[
|
|
7569
|
+
ctx[4]
|
|
6978
7570
|
),
|
|
6979
7571
|
wordFocus: (
|
|
6980
7572
|
/*currentTabContainer*/
|
|
6981
7573
|
ctx[17] === /*containerId*/
|
|
6982
|
-
ctx[
|
|
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 =
|
|
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
|
-
|
|
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[
|
|
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
|
-
|
|
7667
|
+
16)
|
|
7076
7668
|
promptcategorisewordbutton_changes.containerId = /*containerId*/
|
|
7077
|
-
ctx[
|
|
7669
|
+
ctx[4];
|
|
7078
7670
|
if (dirty[0] & /*currentTabContainer, containerId, items*/
|
|
7079
|
-
|
|
7671
|
+
655376)
|
|
7080
7672
|
promptcategorisewordbutton_changes.wordFocus = /*currentTabContainer*/
|
|
7081
7673
|
ctx[17] === /*containerId*/
|
|
7082
|
-
ctx[
|
|
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
|
|
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[
|
|
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[
|
|
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[
|
|
7783
|
+
ctx[4]
|
|
7192
7784
|
);
|
|
7193
7785
|
attr(section, "style", section_style_value = !/*isContainerWordBin*/
|
|
7194
7786
|
ctx[22] ? `padding-top: ${/*paddingTop*/
|
|
7195
|
-
ctx[
|
|
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[
|
|
7812
|
+
ctx[3]
|
|
7221
7813
|
),
|
|
7222
7814
|
type: (
|
|
7223
7815
|
/*type*/
|
|
7224
|
-
ctx[
|
|
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[
|
|
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[
|
|
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
|
-
|
|
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
|
-
|
|
7308
|
-
ctx2[
|
|
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
|
-
|
|
7913
|
+
16) {
|
|
7322
7914
|
attr(
|
|
7323
7915
|
section,
|
|
7324
7916
|
"id",
|
|
7325
7917
|
/*containerId*/
|
|
7326
|
-
ctx2[
|
|
7918
|
+
ctx2[4]
|
|
7327
7919
|
);
|
|
7328
7920
|
}
|
|
7329
7921
|
if (!current || dirty[0] & /*paddingTop*/
|
|
7330
|
-
|
|
7922
|
+
128 && section_style_value !== (section_style_value = !/*isContainerWordBin*/
|
|
7331
7923
|
ctx2[22] ? `padding-top: ${/*paddingTop*/
|
|
7332
|
-
ctx2[
|
|
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
|
-
|
|
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[
|
|
7936
|
+
ctx2[3]
|
|
7345
7937
|
),
|
|
7346
7938
|
type: (
|
|
7347
7939
|
/*type*/
|
|
7348
|
-
ctx2[
|
|
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[
|
|
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
|
|
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;
|
|
@@ -7471,25 +8064,30 @@
|
|
|
7471
8064
|
const handleDndFinalize = (e2) => {
|
|
7472
8065
|
const { items: categoryItems, info } = e2.detail;
|
|
7473
8066
|
const { trigger, id } = info;
|
|
8067
|
+
const { currentWordBinIndex: currentWordBinIndex2, currentAnswer: currentAnswer2 } = categoryData;
|
|
7474
8068
|
$$invalidate(19, items = categoryItems.filter((item) => !item.isClonedItem));
|
|
7475
8069
|
if (trigger === TRIGGERS.DROPPED_INTO_ZONE) {
|
|
7476
8070
|
const { currentTarget } = e2;
|
|
7477
8071
|
addAnswerItemStore(id, currentTarget.id);
|
|
7478
8072
|
const itemIndex = rawCategoryItems.findIndex((item) => item.id === id);
|
|
7479
8073
|
updateCategoryData({
|
|
7480
|
-
selectedItemName: rawCategoryItems[itemIndex].text
|
|
8074
|
+
selectedItemName: useRemoveRichTextHtmlTags(rawCategoryItems[itemIndex].text)
|
|
7481
8075
|
});
|
|
7482
8076
|
}
|
|
7483
8077
|
updateCategoryData({ considerCloneItemId: "" });
|
|
8078
|
+
if (currentWordBinIndex2 >= totalRemainingWordBinItem - 1) {
|
|
8079
|
+
const navigateItem = useNavigateItem(currentWordBinIndex2, currentAnswer2, "left");
|
|
8080
|
+
updateCategoryData(navigateItem);
|
|
8081
|
+
}
|
|
7484
8082
|
resetCategoriesSettings();
|
|
7485
8083
|
};
|
|
7486
8084
|
const saveAnswer = () => {
|
|
7487
8085
|
const { currentAnswer: currentAnswer2, rawCategories, rawCategoryItems: rawCategoryItems2 } = categoryData;
|
|
7488
8086
|
const categoryAnswer = currentAnswer2.filter((answer) => answer.categoryId !== CONTAINER_WORD_BIN_ID).map((answer) => {
|
|
7489
8087
|
const { categoryId, itemId } = answer;
|
|
7490
|
-
const categoryList = rawCategories.filter((category) => category.id === categoryId).map((category) => category.name)[0];
|
|
8088
|
+
const categoryList = rawCategories.filter((category) => category.id === categoryId).map((category) => useRemoveRichTextHtmlTags(category.name))[0];
|
|
7491
8089
|
const itemList = itemId.map((item) => {
|
|
7492
|
-
return rawCategoryItems2.filter((categoryItem) => categoryItem.id === item).map((categoryItem) => categoryItem.text)[0];
|
|
8090
|
+
return rawCategoryItems2.filter((categoryItem) => categoryItem.id === item).map((categoryItem) => useRemoveRichTextHtmlTags(categoryItem.text))[0];
|
|
7493
8091
|
});
|
|
7494
8092
|
return {
|
|
7495
8093
|
category_id: categoryId,
|
|
@@ -7623,19 +8221,19 @@
|
|
|
7623
8221
|
};
|
|
7624
8222
|
$$self.$$set = ($$props2) => {
|
|
7625
8223
|
if ("containerClass" in $$props2)
|
|
7626
|
-
$$invalidate(
|
|
8224
|
+
$$invalidate(2, containerClass = $$props2.containerClass);
|
|
7627
8225
|
if ("flipDurationMs" in $$props2)
|
|
7628
|
-
$$invalidate(
|
|
8226
|
+
$$invalidate(3, flipDurationMs = $$props2.flipDurationMs);
|
|
7629
8227
|
if ("containerId" in $$props2)
|
|
7630
|
-
$$invalidate(
|
|
8228
|
+
$$invalidate(4, containerId = $$props2.containerId);
|
|
7631
8229
|
if ("type" in $$props2)
|
|
7632
|
-
$$invalidate(
|
|
8230
|
+
$$invalidate(5, type = $$props2.type);
|
|
7633
8231
|
if ("showButton" in $$props2)
|
|
7634
|
-
$$invalidate(
|
|
8232
|
+
$$invalidate(6, showButton = $$props2.showButton);
|
|
7635
8233
|
if ("paddingTop" in $$props2)
|
|
7636
|
-
$$invalidate(
|
|
8234
|
+
$$invalidate(7, paddingTop = $$props2.paddingTop);
|
|
7637
8235
|
if ("ariaLabel" in $$props2)
|
|
7638
|
-
$$invalidate(
|
|
8236
|
+
$$invalidate(1, ariaLabel = $$props2.ariaLabel);
|
|
7639
8237
|
if ("isFinished" in $$props2)
|
|
7640
8238
|
$$invalidate(8, isFinished = $$props2.isFinished);
|
|
7641
8239
|
if ("correctAnswerList" in $$props2)
|
|
@@ -7657,7 +8255,7 @@
|
|
|
7657
8255
|
}
|
|
7658
8256
|
}
|
|
7659
8257
|
if ($$self.$$.dirty[0] & /*categoryData, isFinished, currentAnswer, containerId, considerItemId, isPreviewModeInteractive*/
|
|
7660
|
-
|
|
8258
|
+
268438801) {
|
|
7661
8259
|
$:
|
|
7662
8260
|
if (categoryData) {
|
|
7663
8261
|
const { considerItemId: storeconsiderItemId, selectedItemId: storeSelectedItemId, currentAnswer: storeCurrentAnswer, sourceSelectedContainerId: storeSourceSelectedContainerId, currentWordBinIndex: storeCurrentWordBinIndex, currentTabContainer: storeCurrentTabContainer, isItemsAriaHidden: storeisItemsAriaHidden } = categoryData;
|
|
@@ -7698,13 +8296,13 @@
|
|
|
7698
8296
|
};
|
|
7699
8297
|
return [
|
|
7700
8298
|
categoryData,
|
|
8299
|
+
ariaLabel,
|
|
7701
8300
|
containerClass,
|
|
7702
8301
|
flipDurationMs,
|
|
7703
8302
|
containerId,
|
|
7704
8303
|
type,
|
|
7705
8304
|
showButton,
|
|
7706
8305
|
paddingTop,
|
|
7707
|
-
ariaLabel,
|
|
7708
8306
|
isFinished,
|
|
7709
8307
|
correctAnswerList,
|
|
7710
8308
|
isPreviewModeInteractive,
|
|
@@ -7734,17 +8332,17 @@
|
|
|
7734
8332
|
init(
|
|
7735
8333
|
this,
|
|
7736
8334
|
options,
|
|
7737
|
-
|
|
7738
|
-
|
|
8335
|
+
instance8,
|
|
8336
|
+
create_fragment12,
|
|
7739
8337
|
safe_not_equal,
|
|
7740
8338
|
{
|
|
7741
|
-
containerClass:
|
|
7742
|
-
flipDurationMs:
|
|
7743
|
-
containerId:
|
|
7744
|
-
type:
|
|
7745
|
-
showButton:
|
|
7746
|
-
paddingTop:
|
|
7747
|
-
ariaLabel:
|
|
8339
|
+
containerClass: 2,
|
|
8340
|
+
flipDurationMs: 3,
|
|
8341
|
+
containerId: 4,
|
|
8342
|
+
type: 5,
|
|
8343
|
+
showButton: 6,
|
|
8344
|
+
paddingTop: 7,
|
|
8345
|
+
ariaLabel: 1,
|
|
7748
8346
|
isFinished: 8,
|
|
7749
8347
|
correctAnswerList: 9,
|
|
7750
8348
|
isPreviewModeInteractive: 10,
|
|
@@ -7756,49 +8354,49 @@
|
|
|
7756
8354
|
);
|
|
7757
8355
|
}
|
|
7758
8356
|
get containerClass() {
|
|
7759
|
-
return this.$$.ctx[
|
|
8357
|
+
return this.$$.ctx[2];
|
|
7760
8358
|
}
|
|
7761
8359
|
set containerClass(containerClass) {
|
|
7762
8360
|
this.$$set({ containerClass });
|
|
7763
8361
|
flush();
|
|
7764
8362
|
}
|
|
7765
8363
|
get flipDurationMs() {
|
|
7766
|
-
return this.$$.ctx[
|
|
8364
|
+
return this.$$.ctx[3];
|
|
7767
8365
|
}
|
|
7768
8366
|
set flipDurationMs(flipDurationMs) {
|
|
7769
8367
|
this.$$set({ flipDurationMs });
|
|
7770
8368
|
flush();
|
|
7771
8369
|
}
|
|
7772
8370
|
get containerId() {
|
|
7773
|
-
return this.$$.ctx[
|
|
8371
|
+
return this.$$.ctx[4];
|
|
7774
8372
|
}
|
|
7775
8373
|
set containerId(containerId) {
|
|
7776
8374
|
this.$$set({ containerId });
|
|
7777
8375
|
flush();
|
|
7778
8376
|
}
|
|
7779
8377
|
get type() {
|
|
7780
|
-
return this.$$.ctx[
|
|
8378
|
+
return this.$$.ctx[5];
|
|
7781
8379
|
}
|
|
7782
8380
|
set type(type) {
|
|
7783
8381
|
this.$$set({ type });
|
|
7784
8382
|
flush();
|
|
7785
8383
|
}
|
|
7786
8384
|
get showButton() {
|
|
7787
|
-
return this.$$.ctx[
|
|
8385
|
+
return this.$$.ctx[6];
|
|
7788
8386
|
}
|
|
7789
8387
|
set showButton(showButton) {
|
|
7790
8388
|
this.$$set({ showButton });
|
|
7791
8389
|
flush();
|
|
7792
8390
|
}
|
|
7793
8391
|
get paddingTop() {
|
|
7794
|
-
return this.$$.ctx[
|
|
8392
|
+
return this.$$.ctx[7];
|
|
7795
8393
|
}
|
|
7796
8394
|
set paddingTop(paddingTop) {
|
|
7797
8395
|
this.$$set({ paddingTop });
|
|
7798
8396
|
flush();
|
|
7799
8397
|
}
|
|
7800
8398
|
get ariaLabel() {
|
|
7801
|
-
return this.$$.ctx[
|
|
8399
|
+
return this.$$.ctx[1];
|
|
7802
8400
|
}
|
|
7803
8401
|
set ariaLabel(ariaLabel) {
|
|
7804
8402
|
this.$$set({ ariaLabel });
|
|
@@ -7844,7 +8442,7 @@
|
|
|
7844
8442
|
var PromptCategoriseDndContainer_default = PromptCategoriseDndContainer;
|
|
7845
8443
|
|
|
7846
8444
|
// src/lib/components/common/CommonModal.svelte
|
|
7847
|
-
function
|
|
8445
|
+
function create_fragment13(ctx) {
|
|
7848
8446
|
let div2;
|
|
7849
8447
|
let div0;
|
|
7850
8448
|
let t2;
|
|
@@ -7976,7 +8574,7 @@
|
|
|
7976
8574
|
var keypress_handler = () => {
|
|
7977
8575
|
return false;
|
|
7978
8576
|
};
|
|
7979
|
-
function
|
|
8577
|
+
function instance9($$self, $$props, $$invalidate) {
|
|
7980
8578
|
let { $$slots: slots = {}, $$scope } = $$props;
|
|
7981
8579
|
let { modalData = [] } = $$props;
|
|
7982
8580
|
const dispatch = createEventDispatcher();
|
|
@@ -8008,7 +8606,7 @@
|
|
|
8008
8606
|
var CommonModal = class extends SvelteComponent {
|
|
8009
8607
|
constructor(options) {
|
|
8010
8608
|
super();
|
|
8011
|
-
init(this, options,
|
|
8609
|
+
init(this, options, instance9, create_fragment13, safe_not_equal, { modalData: 3 });
|
|
8012
8610
|
}
|
|
8013
8611
|
get modalData() {
|
|
8014
8612
|
return this.$$.ctx[3];
|
|
@@ -8022,7 +8620,7 @@
|
|
|
8022
8620
|
var CommonModal_default = CommonModal;
|
|
8023
8621
|
|
|
8024
8622
|
// src/lib/assets/img/messaging/AlertIcon.svelte
|
|
8025
|
-
function
|
|
8623
|
+
function create_fragment14(ctx) {
|
|
8026
8624
|
let svg;
|
|
8027
8625
|
let path;
|
|
8028
8626
|
return {
|
|
@@ -8056,14 +8654,14 @@
|
|
|
8056
8654
|
var AlertIcon = class extends SvelteComponent {
|
|
8057
8655
|
constructor(options) {
|
|
8058
8656
|
super();
|
|
8059
|
-
init(this, options, null,
|
|
8657
|
+
init(this, options, null, create_fragment14, safe_not_equal, {});
|
|
8060
8658
|
}
|
|
8061
8659
|
};
|
|
8062
8660
|
create_custom_element(AlertIcon, {}, [], [], true);
|
|
8063
8661
|
var AlertIcon_default = AlertIcon;
|
|
8064
8662
|
|
|
8065
8663
|
// src/lib/assets/img/messaging/CrossIcon.svelte
|
|
8066
|
-
function
|
|
8664
|
+
function create_fragment15(ctx) {
|
|
8067
8665
|
let svg;
|
|
8068
8666
|
let path;
|
|
8069
8667
|
return {
|
|
@@ -8097,7 +8695,7 @@
|
|
|
8097
8695
|
var CrossIcon = class extends SvelteComponent {
|
|
8098
8696
|
constructor(options) {
|
|
8099
8697
|
super();
|
|
8100
|
-
init(this, options, null,
|
|
8698
|
+
init(this, options, null, create_fragment15, safe_not_equal, {});
|
|
8101
8699
|
}
|
|
8102
8700
|
};
|
|
8103
8701
|
create_custom_element(CrossIcon, {}, [], [], true);
|
|
@@ -8257,7 +8855,7 @@
|
|
|
8257
8855
|
}
|
|
8258
8856
|
};
|
|
8259
8857
|
}
|
|
8260
|
-
function
|
|
8858
|
+
function create_fragment16(ctx) {
|
|
8261
8859
|
let commonmodal;
|
|
8262
8860
|
let current;
|
|
8263
8861
|
commonmodal = new CommonModal_default({
|
|
@@ -8310,7 +8908,7 @@
|
|
|
8310
8908
|
}
|
|
8311
8909
|
};
|
|
8312
8910
|
}
|
|
8313
|
-
function
|
|
8911
|
+
function instance10($$self, $$props, $$invalidate) {
|
|
8314
8912
|
let { categoryData = [] } = $$props;
|
|
8315
8913
|
let { modalData = [] } = $$props;
|
|
8316
8914
|
let categoryModal;
|
|
@@ -8393,7 +8991,7 @@
|
|
|
8393
8991
|
var PromptCategoriseModal = class extends SvelteComponent {
|
|
8394
8992
|
constructor(options) {
|
|
8395
8993
|
super();
|
|
8396
|
-
init(this, options,
|
|
8994
|
+
init(this, options, instance10, create_fragment16, safe_not_equal, { categoryData: 6, modalData: 0 });
|
|
8397
8995
|
}
|
|
8398
8996
|
get categoryData() {
|
|
8399
8997
|
return this.$$.ctx[6];
|
|
@@ -8414,7 +9012,7 @@
|
|
|
8414
9012
|
var PromptCategoriseModal_default = PromptCategoriseModal;
|
|
8415
9013
|
|
|
8416
9014
|
// src/lib/assets/img/action/Switch.svelte
|
|
8417
|
-
function
|
|
9015
|
+
function create_fragment17(ctx) {
|
|
8418
9016
|
let svg;
|
|
8419
9017
|
let path;
|
|
8420
9018
|
return {
|
|
@@ -8446,14 +9044,14 @@
|
|
|
8446
9044
|
var Switch = class extends SvelteComponent {
|
|
8447
9045
|
constructor(options) {
|
|
8448
9046
|
super();
|
|
8449
|
-
init(this, options, null,
|
|
9047
|
+
init(this, options, null, create_fragment17, safe_not_equal, {});
|
|
8450
9048
|
}
|
|
8451
9049
|
};
|
|
8452
9050
|
create_custom_element(Switch, {}, [], [], true);
|
|
8453
9051
|
var Switch_default = Switch;
|
|
8454
9052
|
|
|
8455
9053
|
// src/lib/assets/img/messaging/SmallChevronUp.svelte
|
|
8456
|
-
function
|
|
9054
|
+
function create_fragment18(ctx) {
|
|
8457
9055
|
let svg;
|
|
8458
9056
|
let path;
|
|
8459
9057
|
return {
|
|
@@ -8487,14 +9085,14 @@
|
|
|
8487
9085
|
var SmallChevronUp = class extends SvelteComponent {
|
|
8488
9086
|
constructor(options) {
|
|
8489
9087
|
super();
|
|
8490
|
-
init(this, options, null,
|
|
9088
|
+
init(this, options, null, create_fragment18, safe_not_equal, {});
|
|
8491
9089
|
}
|
|
8492
9090
|
};
|
|
8493
9091
|
create_custom_element(SmallChevronUp, {}, [], [], true);
|
|
8494
9092
|
var SmallChevronUp_default = SmallChevronUp;
|
|
8495
9093
|
|
|
8496
9094
|
// src/lib/assets/img/messaging/SmallChevronDown.svelte
|
|
8497
|
-
function
|
|
9095
|
+
function create_fragment19(ctx) {
|
|
8498
9096
|
let svg;
|
|
8499
9097
|
let path;
|
|
8500
9098
|
return {
|
|
@@ -8528,14 +9126,14 @@
|
|
|
8528
9126
|
var SmallChevronDown = class extends SvelteComponent {
|
|
8529
9127
|
constructor(options) {
|
|
8530
9128
|
super();
|
|
8531
|
-
init(this, options, null,
|
|
9129
|
+
init(this, options, null, create_fragment19, safe_not_equal, {});
|
|
8532
9130
|
}
|
|
8533
9131
|
};
|
|
8534
9132
|
create_custom_element(SmallChevronDown, {}, [], [], true);
|
|
8535
9133
|
var SmallChevronDown_default = SmallChevronDown;
|
|
8536
9134
|
|
|
8537
9135
|
// src/lib/assets/img/messaging/SmallChevronLeft.svelte
|
|
8538
|
-
function
|
|
9136
|
+
function create_fragment20(ctx) {
|
|
8539
9137
|
let svg;
|
|
8540
9138
|
let path;
|
|
8541
9139
|
return {
|
|
@@ -8569,14 +9167,14 @@
|
|
|
8569
9167
|
var SmallChevronLeft = class extends SvelteComponent {
|
|
8570
9168
|
constructor(options) {
|
|
8571
9169
|
super();
|
|
8572
|
-
init(this, options, null,
|
|
9170
|
+
init(this, options, null, create_fragment20, safe_not_equal, {});
|
|
8573
9171
|
}
|
|
8574
9172
|
};
|
|
8575
9173
|
create_custom_element(SmallChevronLeft, {}, [], [], true);
|
|
8576
9174
|
var SmallChevronLeft_default = SmallChevronLeft;
|
|
8577
9175
|
|
|
8578
9176
|
// src/lib/assets/img/messaging/SmallChevronRight.svelte
|
|
8579
|
-
function
|
|
9177
|
+
function create_fragment21(ctx) {
|
|
8580
9178
|
let svg;
|
|
8581
9179
|
let path;
|
|
8582
9180
|
return {
|
|
@@ -8610,14 +9208,14 @@
|
|
|
8610
9208
|
var SmallChevronRight = class extends SvelteComponent {
|
|
8611
9209
|
constructor(options) {
|
|
8612
9210
|
super();
|
|
8613
|
-
init(this, options, null,
|
|
9211
|
+
init(this, options, null, create_fragment21, safe_not_equal, {});
|
|
8614
9212
|
}
|
|
8615
9213
|
};
|
|
8616
9214
|
create_custom_element(SmallChevronRight, {}, [], [], true);
|
|
8617
9215
|
var SmallChevronRight_default = SmallChevronRight;
|
|
8618
9216
|
|
|
8619
9217
|
// src/lib/assets/img/messaging/ArrowDownCircle.svelte
|
|
8620
|
-
function
|
|
9218
|
+
function create_fragment22(ctx) {
|
|
8621
9219
|
let svg;
|
|
8622
9220
|
let path;
|
|
8623
9221
|
return {
|
|
@@ -8651,7 +9249,7 @@
|
|
|
8651
9249
|
var ArrowDownCircle = class extends SvelteComponent {
|
|
8652
9250
|
constructor(options) {
|
|
8653
9251
|
super();
|
|
8654
|
-
init(this, options, null,
|
|
9252
|
+
init(this, options, null, create_fragment22, safe_not_equal, {});
|
|
8655
9253
|
}
|
|
8656
9254
|
};
|
|
8657
9255
|
create_custom_element(ArrowDownCircle, {}, [], [], true);
|
|
@@ -8827,7 +9425,7 @@
|
|
|
8827
9425
|
child_ctx[69] = i;
|
|
8828
9426
|
return child_ctx;
|
|
8829
9427
|
}
|
|
8830
|
-
function
|
|
9428
|
+
function create_if_block_72(ctx) {
|
|
8831
9429
|
let promptcategorisemodal;
|
|
8832
9430
|
let current;
|
|
8833
9431
|
promptcategorisemodal = new PromptCategoriseModal_default({
|
|
@@ -8892,7 +9490,7 @@
|
|
|
8892
9490
|
}
|
|
8893
9491
|
};
|
|
8894
9492
|
}
|
|
8895
|
-
function
|
|
9493
|
+
function create_if_block_62(ctx) {
|
|
8896
9494
|
let button;
|
|
8897
9495
|
let span0;
|
|
8898
9496
|
let switchicon;
|
|
@@ -8969,7 +9567,7 @@
|
|
|
8969
9567
|
}
|
|
8970
9568
|
};
|
|
8971
9569
|
}
|
|
8972
|
-
function
|
|
9570
|
+
function create_if_block_52(ctx) {
|
|
8973
9571
|
let span;
|
|
8974
9572
|
let t0;
|
|
8975
9573
|
let t1;
|
|
@@ -8982,7 +9580,7 @@
|
|
|
8982
9580
|
/*selectedItemName*/
|
|
8983
9581
|
ctx[21]
|
|
8984
9582
|
);
|
|
8985
|
-
t2 = text(" added in
|
|
9583
|
+
t2 = text(" added in\xA0");
|
|
8986
9584
|
attr(span, "class", "sr-only");
|
|
8987
9585
|
},
|
|
8988
9586
|
m(target, anchor) {
|
|
@@ -9007,6 +9605,28 @@
|
|
|
9007
9605
|
}
|
|
9008
9606
|
};
|
|
9009
9607
|
}
|
|
9608
|
+
function create_if_block_43(ctx) {
|
|
9609
|
+
let span;
|
|
9610
|
+
return {
|
|
9611
|
+
c() {
|
|
9612
|
+
span = element("span");
|
|
9613
|
+
span.textContent = `${useRemoveRichTextHtmlTags(
|
|
9614
|
+
/*category*/
|
|
9615
|
+
ctx[67].name
|
|
9616
|
+
)}`;
|
|
9617
|
+
attr(span, "class", "sr-only");
|
|
9618
|
+
},
|
|
9619
|
+
m(target, anchor) {
|
|
9620
|
+
insert(target, span, anchor);
|
|
9621
|
+
},
|
|
9622
|
+
p: noop,
|
|
9623
|
+
d(detaching) {
|
|
9624
|
+
if (detaching) {
|
|
9625
|
+
detach(span);
|
|
9626
|
+
}
|
|
9627
|
+
}
|
|
9628
|
+
};
|
|
9629
|
+
}
|
|
9010
9630
|
function create_if_block_34(ctx) {
|
|
9011
9631
|
let span;
|
|
9012
9632
|
let t0;
|
|
@@ -9025,7 +9645,7 @@
|
|
|
9025
9645
|
return {
|
|
9026
9646
|
c() {
|
|
9027
9647
|
span = element("span");
|
|
9028
|
-
t0 = text("
|
|
9648
|
+
t0 = text("\xA0");
|
|
9029
9649
|
t1 = text(t1_value);
|
|
9030
9650
|
t2 = text(" added");
|
|
9031
9651
|
attr(span, "class", "sr-only");
|
|
@@ -9065,7 +9685,7 @@
|
|
|
9065
9685
|
return {
|
|
9066
9686
|
c() {
|
|
9067
9687
|
span = element("span");
|
|
9068
|
-
t0 = text("
|
|
9688
|
+
t0 = text(".\xA0Student's answer: ");
|
|
9069
9689
|
t1 = text(
|
|
9070
9690
|
/*selectedItemName*/
|
|
9071
9691
|
ctx[21]
|
|
@@ -9166,7 +9786,7 @@
|
|
|
9166
9786
|
function create_each_block3(ctx) {
|
|
9167
9787
|
let div1;
|
|
9168
9788
|
let div0;
|
|
9169
|
-
let
|
|
9789
|
+
let show_if_2 = (
|
|
9170
9790
|
/*checkContainerDroppedItem*/
|
|
9171
9791
|
ctx[31](
|
|
9172
9792
|
/*category*/
|
|
@@ -9178,12 +9798,23 @@
|
|
|
9178
9798
|
let t0;
|
|
9179
9799
|
let span0;
|
|
9180
9800
|
let t4;
|
|
9181
|
-
let
|
|
9801
|
+
let commonstringtohtml;
|
|
9802
|
+
let t5;
|
|
9803
|
+
let show_if_1 = (
|
|
9804
|
+
/*checkContainerDroppedItem*/
|
|
9805
|
+
ctx[31](
|
|
9806
|
+
/*category*/
|
|
9807
|
+
ctx[67].id,
|
|
9808
|
+
/*dropContainerId*/
|
|
9809
|
+
ctx[12]
|
|
9810
|
+
) && /*enableAriaLive*/
|
|
9811
|
+
ctx[22]
|
|
9812
|
+
);
|
|
9182
9813
|
let t6;
|
|
9183
9814
|
let t7;
|
|
9184
9815
|
let t8;
|
|
9185
9816
|
let button;
|
|
9186
|
-
let
|
|
9817
|
+
let span1;
|
|
9187
9818
|
let t9_value = (
|
|
9188
9819
|
/*getTotalWords*/
|
|
9189
9820
|
ctx[34](
|
|
@@ -9195,10 +9826,10 @@
|
|
|
9195
9826
|
);
|
|
9196
9827
|
let t9;
|
|
9197
9828
|
let t10;
|
|
9198
|
-
let
|
|
9829
|
+
let span2;
|
|
9199
9830
|
let show_if;
|
|
9200
9831
|
let current_block_type_index;
|
|
9201
|
-
let
|
|
9832
|
+
let if_block4;
|
|
9202
9833
|
let button_aria_label_value;
|
|
9203
9834
|
let div0_id_value;
|
|
9204
9835
|
let div0_aria_live_value;
|
|
@@ -9215,10 +9846,30 @@
|
|
|
9215
9846
|
let current;
|
|
9216
9847
|
let mounted;
|
|
9217
9848
|
let dispose;
|
|
9218
|
-
let if_block0 =
|
|
9219
|
-
|
|
9849
|
+
let if_block0 = show_if_2 && create_if_block_52(ctx);
|
|
9850
|
+
commonstringtohtml = new CommonStringToHtml_default({
|
|
9851
|
+
props: {
|
|
9852
|
+
ariaHidden: (
|
|
9853
|
+
/*checkContainerDroppedItem*/
|
|
9854
|
+
ctx[31](
|
|
9855
|
+
/*category*/
|
|
9856
|
+
ctx[67].id,
|
|
9857
|
+
/*dropContainerId*/
|
|
9858
|
+
ctx[12]
|
|
9859
|
+
) && /*enableAriaLive*/
|
|
9860
|
+
ctx[22]
|
|
9861
|
+
),
|
|
9862
|
+
htmlString: (
|
|
9863
|
+
/*category*/
|
|
9864
|
+
ctx[67].name
|
|
9865
|
+
),
|
|
9866
|
+
otherClass: "text-base leading-5 !text-gray-900 md:item-heading"
|
|
9867
|
+
}
|
|
9868
|
+
});
|
|
9869
|
+
let if_block1 = show_if_1 && create_if_block_43(ctx);
|
|
9870
|
+
let if_block2 = !/*previewResultSr*/
|
|
9220
9871
|
ctx[4] && create_if_block_34(ctx);
|
|
9221
|
-
let
|
|
9872
|
+
let if_block3 = (
|
|
9222
9873
|
/*previewResultSr*/
|
|
9223
9874
|
ctx[4] && create_if_block_27(ctx)
|
|
9224
9875
|
);
|
|
@@ -9241,7 +9892,7 @@
|
|
|
9241
9892
|
return 1;
|
|
9242
9893
|
}
|
|
9243
9894
|
current_block_type_index = select_block_type(ctx, [-1, -1, -1]);
|
|
9244
|
-
|
|
9895
|
+
if_block4 = if_blocks[current_block_type_index] = if_block_creators[current_block_type_index](ctx);
|
|
9245
9896
|
function div0_elementresize_handler() {
|
|
9246
9897
|
ctx[49].call(
|
|
9247
9898
|
div0,
|
|
@@ -9364,29 +10015,29 @@
|
|
|
9364
10015
|
span0.textContent = `Category ${/*index*/
|
|
9365
10016
|
ctx[69] + 1}:\xA0`;
|
|
9366
10017
|
t4 = space();
|
|
9367
|
-
|
|
9368
|
-
|
|
9369
|
-
ctx[67].name}`;
|
|
9370
|
-
t6 = space();
|
|
10018
|
+
create_component(commonstringtohtml.$$.fragment);
|
|
10019
|
+
t5 = space();
|
|
9371
10020
|
if (if_block1)
|
|
9372
10021
|
if_block1.c();
|
|
9373
|
-
|
|
10022
|
+
t6 = space();
|
|
9374
10023
|
if (if_block2)
|
|
9375
10024
|
if_block2.c();
|
|
10025
|
+
t7 = space();
|
|
10026
|
+
if (if_block3)
|
|
10027
|
+
if_block3.c();
|
|
9376
10028
|
t8 = space();
|
|
9377
10029
|
button = element("button");
|
|
9378
|
-
|
|
10030
|
+
span1 = element("span");
|
|
9379
10031
|
t9 = text(t9_value);
|
|
9380
10032
|
t10 = space();
|
|
9381
|
-
|
|
9382
|
-
|
|
10033
|
+
span2 = element("span");
|
|
10034
|
+
if_block4.c();
|
|
9383
10035
|
t11 = space();
|
|
9384
10036
|
create_component(promptcategorisedndcontainer.$$.fragment);
|
|
9385
10037
|
t12 = space();
|
|
9386
10038
|
attr(span0, "class", "sr-only");
|
|
9387
|
-
attr(span1, "class", "
|
|
9388
|
-
attr(span2, "class", "
|
|
9389
|
-
attr(span3, "class", "w-4 h-4 text-inherit flex items-center justify-center");
|
|
10039
|
+
attr(span1, "class", "mx-0.5");
|
|
10040
|
+
attr(span2, "class", "w-4 h-4 text-inherit flex items-center justify-center");
|
|
9390
10041
|
attr(button, "aria-label", button_aria_label_value = /*getTotalWords*/
|
|
9391
10042
|
ctx[34](
|
|
9392
10043
|
/*category*/
|
|
@@ -9505,20 +10156,23 @@
|
|
|
9505
10156
|
append(div0, t0);
|
|
9506
10157
|
append(div0, span0);
|
|
9507
10158
|
append(div0, t4);
|
|
9508
|
-
|
|
9509
|
-
append(div0,
|
|
10159
|
+
mount_component(commonstringtohtml, div0, null);
|
|
10160
|
+
append(div0, t5);
|
|
9510
10161
|
if (if_block1)
|
|
9511
10162
|
if_block1.m(div0, null);
|
|
9512
|
-
append(div0,
|
|
10163
|
+
append(div0, t6);
|
|
9513
10164
|
if (if_block2)
|
|
9514
10165
|
if_block2.m(div0, null);
|
|
10166
|
+
append(div0, t7);
|
|
10167
|
+
if (if_block3)
|
|
10168
|
+
if_block3.m(div0, null);
|
|
9515
10169
|
append(div0, t8);
|
|
9516
10170
|
append(div0, button);
|
|
9517
|
-
append(button,
|
|
9518
|
-
append(
|
|
10171
|
+
append(button, span1);
|
|
10172
|
+
append(span1, t9);
|
|
9519
10173
|
append(button, t10);
|
|
9520
|
-
append(button,
|
|
9521
|
-
if_blocks[current_block_type_index].m(
|
|
10174
|
+
append(button, span2);
|
|
10175
|
+
if_blocks[current_block_type_index].m(span2, null);
|
|
9522
10176
|
div0_resize_listener = add_iframe_resize_listener(div0, div0_elementresize_handler.bind(div0));
|
|
9523
10177
|
append(div1, t11);
|
|
9524
10178
|
mount_component(promptcategorisedndcontainer, div1, null);
|
|
@@ -9565,18 +10219,18 @@
|
|
|
9565
10219
|
ctx = new_ctx;
|
|
9566
10220
|
if (dirty[0] & /*dropContainerId*/
|
|
9567
10221
|
4096)
|
|
9568
|
-
|
|
10222
|
+
show_if_2 = /*checkContainerDroppedItem*/
|
|
9569
10223
|
ctx[31](
|
|
9570
10224
|
/*category*/
|
|
9571
10225
|
ctx[67].id,
|
|
9572
10226
|
/*dropContainerId*/
|
|
9573
10227
|
ctx[12]
|
|
9574
10228
|
);
|
|
9575
|
-
if (
|
|
10229
|
+
if (show_if_2) {
|
|
9576
10230
|
if (if_block0) {
|
|
9577
10231
|
if_block0.p(ctx, dirty);
|
|
9578
10232
|
} else {
|
|
9579
|
-
if_block0 =
|
|
10233
|
+
if_block0 = create_if_block_52(ctx);
|
|
9580
10234
|
if_block0.c();
|
|
9581
10235
|
if_block0.m(div0, t0);
|
|
9582
10236
|
}
|
|
@@ -9584,34 +10238,68 @@
|
|
|
9584
10238
|
if_block0.d(1);
|
|
9585
10239
|
if_block0 = null;
|
|
9586
10240
|
}
|
|
9587
|
-
|
|
9588
|
-
|
|
10241
|
+
const commonstringtohtml_changes = {};
|
|
10242
|
+
if (dirty[0] & /*dropContainerId, enableAriaLive*/
|
|
10243
|
+
4198400)
|
|
10244
|
+
commonstringtohtml_changes.ariaHidden = /*checkContainerDroppedItem*/
|
|
10245
|
+
ctx[31](
|
|
10246
|
+
/*category*/
|
|
10247
|
+
ctx[67].id,
|
|
10248
|
+
/*dropContainerId*/
|
|
10249
|
+
ctx[12]
|
|
10250
|
+
) && /*enableAriaLive*/
|
|
10251
|
+
ctx[22];
|
|
10252
|
+
commonstringtohtml.$set(commonstringtohtml_changes);
|
|
10253
|
+
if (dirty[0] & /*dropContainerId, enableAriaLive*/
|
|
10254
|
+
4198400)
|
|
10255
|
+
show_if_1 = /*checkContainerDroppedItem*/
|
|
10256
|
+
ctx[31](
|
|
10257
|
+
/*category*/
|
|
10258
|
+
ctx[67].id,
|
|
10259
|
+
/*dropContainerId*/
|
|
10260
|
+
ctx[12]
|
|
10261
|
+
) && /*enableAriaLive*/
|
|
10262
|
+
ctx[22];
|
|
10263
|
+
if (show_if_1) {
|
|
9589
10264
|
if (if_block1) {
|
|
9590
10265
|
if_block1.p(ctx, dirty);
|
|
9591
10266
|
} else {
|
|
9592
|
-
if_block1 =
|
|
10267
|
+
if_block1 = create_if_block_43(ctx);
|
|
9593
10268
|
if_block1.c();
|
|
9594
|
-
if_block1.m(div0,
|
|
10269
|
+
if_block1.m(div0, t6);
|
|
9595
10270
|
}
|
|
9596
10271
|
} else if (if_block1) {
|
|
9597
10272
|
if_block1.d(1);
|
|
9598
10273
|
if_block1 = null;
|
|
9599
10274
|
}
|
|
9600
|
-
if (
|
|
9601
|
-
|
|
9602
|
-
ctx[4]
|
|
9603
|
-
) {
|
|
10275
|
+
if (!/*previewResultSr*/
|
|
10276
|
+
ctx[4]) {
|
|
9604
10277
|
if (if_block2) {
|
|
9605
10278
|
if_block2.p(ctx, dirty);
|
|
9606
10279
|
} else {
|
|
9607
|
-
if_block2 =
|
|
10280
|
+
if_block2 = create_if_block_34(ctx);
|
|
9608
10281
|
if_block2.c();
|
|
9609
|
-
if_block2.m(div0,
|
|
10282
|
+
if_block2.m(div0, t7);
|
|
9610
10283
|
}
|
|
9611
10284
|
} else if (if_block2) {
|
|
9612
10285
|
if_block2.d(1);
|
|
9613
10286
|
if_block2 = null;
|
|
9614
10287
|
}
|
|
10288
|
+
if (
|
|
10289
|
+
/*previewResultSr*/
|
|
10290
|
+
ctx[4]
|
|
10291
|
+
) {
|
|
10292
|
+
if (if_block3) {
|
|
10293
|
+
if_block3.p(ctx, dirty);
|
|
10294
|
+
} else {
|
|
10295
|
+
if_block3 = create_if_block_27(ctx);
|
|
10296
|
+
if_block3.c();
|
|
10297
|
+
if_block3.m(div0, t8);
|
|
10298
|
+
}
|
|
10299
|
+
} else if (if_block3) {
|
|
10300
|
+
if_block3.d(1);
|
|
10301
|
+
if_block3 = null;
|
|
10302
|
+
}
|
|
9615
10303
|
if ((!current || dirty[0] & /*currentAnswer*/
|
|
9616
10304
|
8) && t9_value !== (t9_value = /*getTotalWords*/
|
|
9617
10305
|
ctx[34](
|
|
@@ -9629,14 +10317,14 @@
|
|
|
9629
10317
|
if_blocks[previous_block_index] = null;
|
|
9630
10318
|
});
|
|
9631
10319
|
check_outros();
|
|
9632
|
-
|
|
9633
|
-
if (!
|
|
9634
|
-
|
|
9635
|
-
|
|
10320
|
+
if_block4 = if_blocks[current_block_type_index];
|
|
10321
|
+
if (!if_block4) {
|
|
10322
|
+
if_block4 = if_blocks[current_block_type_index] = if_block_creators[current_block_type_index](ctx);
|
|
10323
|
+
if_block4.c();
|
|
9636
10324
|
} else {
|
|
9637
10325
|
}
|
|
9638
|
-
transition_in(
|
|
9639
|
-
|
|
10326
|
+
transition_in(if_block4, 1);
|
|
10327
|
+
if_block4.m(span2, null);
|
|
9640
10328
|
}
|
|
9641
10329
|
if (!current || dirty[0] & /*currentAnswer*/
|
|
9642
10330
|
8 && button_aria_label_value !== (button_aria_label_value = /*getTotalWords*/
|
|
@@ -9832,12 +10520,14 @@
|
|
|
9832
10520
|
i(local) {
|
|
9833
10521
|
if (current)
|
|
9834
10522
|
return;
|
|
9835
|
-
transition_in(
|
|
10523
|
+
transition_in(commonstringtohtml.$$.fragment, local);
|
|
10524
|
+
transition_in(if_block4);
|
|
9836
10525
|
transition_in(promptcategorisedndcontainer.$$.fragment, local);
|
|
9837
10526
|
current = true;
|
|
9838
10527
|
},
|
|
9839
10528
|
o(local) {
|
|
9840
|
-
transition_out(
|
|
10529
|
+
transition_out(commonstringtohtml.$$.fragment, local);
|
|
10530
|
+
transition_out(if_block4);
|
|
9841
10531
|
transition_out(promptcategorisedndcontainer.$$.fragment, local);
|
|
9842
10532
|
current = false;
|
|
9843
10533
|
},
|
|
@@ -9847,10 +10537,13 @@
|
|
|
9847
10537
|
}
|
|
9848
10538
|
if (if_block0)
|
|
9849
10539
|
if_block0.d();
|
|
10540
|
+
destroy_component(commonstringtohtml);
|
|
9850
10541
|
if (if_block1)
|
|
9851
10542
|
if_block1.d();
|
|
9852
10543
|
if (if_block2)
|
|
9853
10544
|
if_block2.d();
|
|
10545
|
+
if (if_block3)
|
|
10546
|
+
if_block3.d();
|
|
9854
10547
|
if_blocks[current_block_type_index].d();
|
|
9855
10548
|
div0_resize_listener();
|
|
9856
10549
|
destroy_component(promptcategorisedndcontainer);
|
|
@@ -9860,7 +10553,7 @@
|
|
|
9860
10553
|
}
|
|
9861
10554
|
};
|
|
9862
10555
|
}
|
|
9863
|
-
function
|
|
10556
|
+
function create_if_block9(ctx) {
|
|
9864
10557
|
let span;
|
|
9865
10558
|
let t0;
|
|
9866
10559
|
let t1;
|
|
@@ -9953,13 +10646,13 @@
|
|
|
9953
10646
|
arrowdowncircle = new ArrowDownCircle_default({});
|
|
9954
10647
|
let if_block0 = (
|
|
9955
10648
|
/*isModalOpen*/
|
|
9956
|
-
ctx[17] &&
|
|
10649
|
+
ctx[17] && create_if_block_72(ctx)
|
|
9957
10650
|
);
|
|
9958
10651
|
let if_block1 = (
|
|
9959
10652
|
/*totalRemainingWordBinItem*/
|
|
9960
10653
|
ctx[15] !== /*totalCategoryItems*/
|
|
9961
10654
|
ctx[9] && !/*isFinished*/
|
|
9962
|
-
ctx[0] &&
|
|
10655
|
+
ctx[0] && create_if_block_62(ctx)
|
|
9963
10656
|
);
|
|
9964
10657
|
let each_value = ensure_array_like(Object.values(
|
|
9965
10658
|
/*categoryGroups*/
|
|
@@ -9972,7 +10665,7 @@
|
|
|
9972
10665
|
const out = (i) => transition_out(each_blocks[i], 1, 1, () => {
|
|
9973
10666
|
each_blocks[i] = null;
|
|
9974
10667
|
});
|
|
9975
|
-
let if_block2 = show_if &&
|
|
10668
|
+
let if_block2 = show_if && create_if_block9(ctx);
|
|
9976
10669
|
smallchevronleft = new SmallChevronLeft_default({});
|
|
9977
10670
|
promptcategorisedndcontainer = new PromptCategoriseDndContainer_default({
|
|
9978
10671
|
props: {
|
|
@@ -10301,7 +10994,7 @@
|
|
|
10301
10994
|
transition_in(if_block0, 1);
|
|
10302
10995
|
}
|
|
10303
10996
|
} else {
|
|
10304
|
-
if_block0 =
|
|
10997
|
+
if_block0 = create_if_block_72(ctx);
|
|
10305
10998
|
if_block0.c();
|
|
10306
10999
|
transition_in(if_block0, 1);
|
|
10307
11000
|
if_block0.m(t3.parentNode, t3);
|
|
@@ -10326,7 +11019,7 @@
|
|
|
10326
11019
|
transition_in(if_block1, 1);
|
|
10327
11020
|
}
|
|
10328
11021
|
} else {
|
|
10329
|
-
if_block1 =
|
|
11022
|
+
if_block1 = create_if_block_62(ctx);
|
|
10330
11023
|
if_block1.c();
|
|
10331
11024
|
transition_in(if_block1, 1);
|
|
10332
11025
|
if_block1.m(div0, null);
|
|
@@ -10385,7 +11078,7 @@
|
|
|
10385
11078
|
if (if_block2) {
|
|
10386
11079
|
if_block2.p(ctx, dirty);
|
|
10387
11080
|
} else {
|
|
10388
|
-
if_block2 =
|
|
11081
|
+
if_block2 = create_if_block9(ctx);
|
|
10389
11082
|
if_block2.c();
|
|
10390
11083
|
if_block2.m(div2, t8);
|
|
10391
11084
|
}
|
|
@@ -10568,7 +11261,7 @@
|
|
|
10568
11261
|
}
|
|
10569
11262
|
};
|
|
10570
11263
|
}
|
|
10571
|
-
function
|
|
11264
|
+
function create_fragment23(ctx) {
|
|
10572
11265
|
let div;
|
|
10573
11266
|
let promptbody;
|
|
10574
11267
|
let current;
|
|
@@ -10626,7 +11319,7 @@
|
|
|
10626
11319
|
}
|
|
10627
11320
|
};
|
|
10628
11321
|
}
|
|
10629
|
-
function
|
|
11322
|
+
function instance11($$self, $$props, $$invalidate) {
|
|
10630
11323
|
let { sessionData } = $$props;
|
|
10631
11324
|
let { isFinished = false } = $$props;
|
|
10632
11325
|
let { isPreviewMode = false } = $$props;
|
|
@@ -11051,8 +11744,8 @@
|
|
|
11051
11744
|
init(
|
|
11052
11745
|
this,
|
|
11053
11746
|
options,
|
|
11054
|
-
|
|
11055
|
-
|
|
11747
|
+
instance11,
|
|
11748
|
+
create_fragment23,
|
|
11056
11749
|
safe_not_equal,
|
|
11057
11750
|
{
|
|
11058
11751
|
sessionData: 47,
|
|
@@ -11097,7 +11790,7 @@
|
|
|
11097
11790
|
var PromptCategorise_default = PromptCategorise;
|
|
11098
11791
|
|
|
11099
11792
|
// src/lib/components/prompt/skeleton/PromptSkeleton.svelte
|
|
11100
|
-
function
|
|
11793
|
+
function create_fragment24(ctx) {
|
|
11101
11794
|
let div3;
|
|
11102
11795
|
return {
|
|
11103
11796
|
c() {
|
|
@@ -11120,14 +11813,14 @@
|
|
|
11120
11813
|
var PromptSkeleton = class extends SvelteComponent {
|
|
11121
11814
|
constructor(options) {
|
|
11122
11815
|
super();
|
|
11123
|
-
init(this, options, null,
|
|
11816
|
+
init(this, options, null, create_fragment24, safe_not_equal, {});
|
|
11124
11817
|
}
|
|
11125
11818
|
};
|
|
11126
11819
|
customElements.define("prompt-skeleton", create_custom_element(PromptSkeleton, {}, [], [], true));
|
|
11127
11820
|
var PromptSkeleton_default = PromptSkeleton;
|
|
11128
11821
|
|
|
11129
11822
|
// src/lib/components/common/InvalidBanner.svelte
|
|
11130
|
-
function
|
|
11823
|
+
function create_fragment25(ctx) {
|
|
11131
11824
|
let p;
|
|
11132
11825
|
let t2;
|
|
11133
11826
|
return {
|
|
@@ -11161,7 +11854,7 @@
|
|
|
11161
11854
|
}
|
|
11162
11855
|
};
|
|
11163
11856
|
}
|
|
11164
|
-
function
|
|
11857
|
+
function instance12($$self, $$props, $$invalidate) {
|
|
11165
11858
|
let { bannerLabel: bannerLabel2 = "Invalid." } = $$props;
|
|
11166
11859
|
$$self.$$set = ($$props2) => {
|
|
11167
11860
|
if ("bannerLabel" in $$props2)
|
|
@@ -11172,7 +11865,7 @@
|
|
|
11172
11865
|
var InvalidBanner = class extends SvelteComponent {
|
|
11173
11866
|
constructor(options) {
|
|
11174
11867
|
super();
|
|
11175
|
-
init(this, options,
|
|
11868
|
+
init(this, options, instance12, create_fragment25, safe_not_equal, { bannerLabel: 0 });
|
|
11176
11869
|
}
|
|
11177
11870
|
get bannerLabel() {
|
|
11178
11871
|
return this.$$.ctx[0];
|
|
@@ -11187,7 +11880,7 @@
|
|
|
11187
11880
|
|
|
11188
11881
|
// src/lib/components/prompt/PromptBuilder.svelte
|
|
11189
11882
|
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}}');
|
|
11883
|
+
append_styles(target, "svelte-15xah2x", '*,: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-15xah2x-pulse{{opacity:0.5}}.animate-skeleton{--tw-bg-opacity:1;animation:svelte-15xah2x-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 ul li>p{margin-left:-0.5rem}.text-stimulus ol>li>p,.text-stimulus ul>li>p{display:inline-block;font-size:1rem;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:400}.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
11884
|
}
|
|
11192
11885
|
function create_else_block_12(ctx) {
|
|
11193
11886
|
let invalidbanner;
|
|
@@ -11294,7 +11987,7 @@
|
|
|
11294
11987
|
}
|
|
11295
11988
|
};
|
|
11296
11989
|
}
|
|
11297
|
-
function
|
|
11990
|
+
function create_if_block10(ctx) {
|
|
11298
11991
|
let promptskeleton;
|
|
11299
11992
|
let current;
|
|
11300
11993
|
promptskeleton = new PromptSkeleton_default({});
|
|
@@ -11567,12 +12260,12 @@
|
|
|
11567
12260
|
}
|
|
11568
12261
|
};
|
|
11569
12262
|
}
|
|
11570
|
-
function
|
|
12263
|
+
function create_fragment26(ctx) {
|
|
11571
12264
|
let current_block_type_index;
|
|
11572
12265
|
let if_block;
|
|
11573
12266
|
let if_block_anchor;
|
|
11574
12267
|
let current;
|
|
11575
|
-
const if_block_creators = [
|
|
12268
|
+
const if_block_creators = [create_if_block10, create_if_block_19, create_else_block_12];
|
|
11576
12269
|
const if_blocks = [];
|
|
11577
12270
|
function select_block_type(ctx2, dirty) {
|
|
11578
12271
|
if (
|
|
@@ -11640,7 +12333,7 @@
|
|
|
11640
12333
|
};
|
|
11641
12334
|
}
|
|
11642
12335
|
var bannerLabel = "Invalid session id.";
|
|
11643
|
-
function
|
|
12336
|
+
function instance13($$self, $$props, $$invalidate) {
|
|
11644
12337
|
const { "session-id": sessionId, "preview-mode": previewMode, "item-id": itemId, "preview-contentful": previewContentful } = $$props;
|
|
11645
12338
|
const previewModeType = ["true", "interactive"];
|
|
11646
12339
|
const isPreviewModeInteractive = Boolean(previewMode === "interactive" && itemId);
|
|
@@ -11672,8 +12365,8 @@
|
|
|
11672
12365
|
};
|
|
11673
12366
|
const getItemData = async (itemId2, metadata) => {
|
|
11674
12367
|
try {
|
|
11675
|
-
let includeAnswer = isFinished && isLocked ? "
|
|
11676
|
-
includeAnswer = isPreviewContentful ? "?include=[correct_answer,unpublished]&is_contentful_preview=true" : includeAnswer;
|
|
12368
|
+
let includeAnswer = `?include=[html_tags${isFinished && isLocked ? ",correct_answer" : ""}]`;
|
|
12369
|
+
includeAnswer = isPreviewContentful ? "?include=[html_tags,correct_answer,unpublished]&is_contentful_preview=true" : includeAnswer;
|
|
11677
12370
|
const { data } = await useGet(`items/${itemId2}${includeAnswer}`);
|
|
11678
12371
|
$$invalidate(3, interactionType = getInteractionType(data));
|
|
11679
12372
|
$$invalidate(0, sessionData = { ...data, metadata });
|
|
@@ -11852,7 +12545,7 @@
|
|
|
11852
12545
|
var PromptBuilder = class extends SvelteComponent {
|
|
11853
12546
|
constructor(options) {
|
|
11854
12547
|
super();
|
|
11855
|
-
init(this, options,
|
|
12548
|
+
init(this, options, instance13, create_fragment26, safe_not_equal, {}, add_css);
|
|
11856
12549
|
}
|
|
11857
12550
|
};
|
|
11858
12551
|
customElements.define("prompt-builder", create_custom_element(PromptBuilder, {}, [], [], true));
|