eat-js-sdk 0.0.53 → 0.0.55
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 +962 -306
- package/package.json +1 -1
|
@@ -26,6 +26,16 @@
|
|
|
26
26
|
function safe_not_equal(a, b) {
|
|
27
27
|
return a != a ? b == b : a !== b || a && typeof a === "object" || typeof a === "function";
|
|
28
28
|
}
|
|
29
|
+
var src_url_equal_anchor;
|
|
30
|
+
function src_url_equal(element_src, url) {
|
|
31
|
+
if (element_src === url)
|
|
32
|
+
return true;
|
|
33
|
+
if (!src_url_equal_anchor) {
|
|
34
|
+
src_url_equal_anchor = document.createElement("a");
|
|
35
|
+
}
|
|
36
|
+
src_url_equal_anchor.href = url;
|
|
37
|
+
return element_src === src_url_equal_anchor.href;
|
|
38
|
+
}
|
|
29
39
|
function is_empty(obj) {
|
|
30
40
|
return Object.keys(obj).length === 0;
|
|
31
41
|
}
|
|
@@ -698,7 +708,7 @@
|
|
|
698
708
|
}
|
|
699
709
|
component.$$.dirty[i / 31 | 0] |= 1 << i % 31;
|
|
700
710
|
}
|
|
701
|
-
function init(component, options,
|
|
711
|
+
function init(component, options, instance13, create_fragment26, not_equal, props, append_styles2 = null, dirty = [-1]) {
|
|
702
712
|
const parent_component = current_component;
|
|
703
713
|
set_current_component(component);
|
|
704
714
|
const $$ = component.$$ = {
|
|
@@ -724,7 +734,7 @@
|
|
|
724
734
|
};
|
|
725
735
|
append_styles2 && append_styles2($$.root);
|
|
726
736
|
let ready = false;
|
|
727
|
-
$$.ctx =
|
|
737
|
+
$$.ctx = instance13 ? instance13(component, options.props || {}, (i, ret, ...rest) => {
|
|
728
738
|
const value = rest.length ? rest[0] : ret;
|
|
729
739
|
if ($$.ctx && not_equal($$.ctx[i], $$.ctx[i] = value)) {
|
|
730
740
|
if (!$$.skip_bound && $$.bound[i])
|
|
@@ -737,7 +747,7 @@
|
|
|
737
747
|
$$.update();
|
|
738
748
|
ready = true;
|
|
739
749
|
run_all($$.before_update);
|
|
740
|
-
$$.fragment =
|
|
750
|
+
$$.fragment = create_fragment26 ? create_fragment26($$.ctx) : false;
|
|
741
751
|
if (options.target) {
|
|
742
752
|
if (options.hydrate) {
|
|
743
753
|
start_hydrating();
|
|
@@ -1144,13 +1154,284 @@
|
|
|
1144
1154
|
var useRemoveDiacritics = (data) => data.normalize("NFD").replace(/[\u0300-\u036f]/g, "").replace(/\s+/g, " ");
|
|
1145
1155
|
var useRemovePunctuation = (data) => data.replace(/[^\p{L}\p{M}\s\d]/gu, "").replace(/\s+/g, " ");
|
|
1146
1156
|
|
|
1147
|
-
// src/lib/
|
|
1157
|
+
// src/lib/constants/index.ts
|
|
1158
|
+
var INTERACTION_TYPE_MCQ = "multipleChoiceInteraction";
|
|
1159
|
+
var INTERACTION_TYPE_TYPEIN = "typeInInteraction";
|
|
1160
|
+
var INTERACTION_TYPE_CATEGORISE = "categoriseInteraction";
|
|
1161
|
+
var TYPEIN_TYPE_SHORT = "Short-Text";
|
|
1162
|
+
var CONTAINER_WORD_BIN_ID = "container-word-bin";
|
|
1163
|
+
var SCREEN_MD = 732;
|
|
1164
|
+
var EAT_DASH = "@eat-dash@";
|
|
1165
|
+
var ANSWER_CORRECT = "correct";
|
|
1166
|
+
var ANSWER_INCORRECT = "incorrect";
|
|
1167
|
+
var ANSWER_MISSED = "missed";
|
|
1168
|
+
var ASSET_ALIGNMENT_DEFAULT = "default";
|
|
1169
|
+
var ASSET_ALIGNMENT_INLINE = "inline";
|
|
1170
|
+
var ASSET_TYPE_IMAGE = "image";
|
|
1171
|
+
|
|
1172
|
+
// src/lib/components/common/CommonMedia.svelte
|
|
1173
|
+
function create_if_block(ctx) {
|
|
1174
|
+
let div;
|
|
1175
|
+
let if_block = (
|
|
1176
|
+
/*fileType*/
|
|
1177
|
+
ctx[0] === ASSET_TYPE_IMAGE && create_if_block_1(ctx)
|
|
1178
|
+
);
|
|
1179
|
+
return {
|
|
1180
|
+
c() {
|
|
1181
|
+
div = element("div");
|
|
1182
|
+
if (if_block)
|
|
1183
|
+
if_block.c();
|
|
1184
|
+
attr(div, "class", "flex items-center justify-center flex-col text-center");
|
|
1185
|
+
},
|
|
1186
|
+
m(target, anchor) {
|
|
1187
|
+
insert(target, div, anchor);
|
|
1188
|
+
if (if_block)
|
|
1189
|
+
if_block.m(div, null);
|
|
1190
|
+
},
|
|
1191
|
+
p(ctx2, dirty) {
|
|
1192
|
+
if (
|
|
1193
|
+
/*fileType*/
|
|
1194
|
+
ctx2[0] === ASSET_TYPE_IMAGE
|
|
1195
|
+
) {
|
|
1196
|
+
if (if_block) {
|
|
1197
|
+
if_block.p(ctx2, dirty);
|
|
1198
|
+
} else {
|
|
1199
|
+
if_block = create_if_block_1(ctx2);
|
|
1200
|
+
if_block.c();
|
|
1201
|
+
if_block.m(div, null);
|
|
1202
|
+
}
|
|
1203
|
+
} else if (if_block) {
|
|
1204
|
+
if_block.d(1);
|
|
1205
|
+
if_block = null;
|
|
1206
|
+
}
|
|
1207
|
+
},
|
|
1208
|
+
d(detaching) {
|
|
1209
|
+
if (detaching) {
|
|
1210
|
+
detach(div);
|
|
1211
|
+
}
|
|
1212
|
+
if (if_block)
|
|
1213
|
+
if_block.d();
|
|
1214
|
+
}
|
|
1215
|
+
};
|
|
1216
|
+
}
|
|
1148
1217
|
function create_if_block_1(ctx) {
|
|
1218
|
+
let img;
|
|
1219
|
+
let img_src_value;
|
|
1220
|
+
let t2;
|
|
1221
|
+
let if_block_anchor;
|
|
1222
|
+
let if_block = (
|
|
1223
|
+
/*fileCaption*/
|
|
1224
|
+
ctx[3] && create_if_block_2(ctx)
|
|
1225
|
+
);
|
|
1226
|
+
return {
|
|
1227
|
+
c() {
|
|
1228
|
+
img = element("img");
|
|
1229
|
+
t2 = space();
|
|
1230
|
+
if (if_block)
|
|
1231
|
+
if_block.c();
|
|
1232
|
+
if_block_anchor = empty();
|
|
1233
|
+
if (!src_url_equal(img.src, img_src_value = /*fileUrl*/
|
|
1234
|
+
ctx[1]))
|
|
1235
|
+
attr(img, "src", img_src_value);
|
|
1236
|
+
attr(
|
|
1237
|
+
img,
|
|
1238
|
+
"alt",
|
|
1239
|
+
/*altText*/
|
|
1240
|
+
ctx[2]
|
|
1241
|
+
);
|
|
1242
|
+
},
|
|
1243
|
+
m(target, anchor) {
|
|
1244
|
+
insert(target, img, anchor);
|
|
1245
|
+
insert(target, t2, anchor);
|
|
1246
|
+
if (if_block)
|
|
1247
|
+
if_block.m(target, anchor);
|
|
1248
|
+
insert(target, if_block_anchor, anchor);
|
|
1249
|
+
},
|
|
1250
|
+
p(ctx2, dirty) {
|
|
1251
|
+
if (dirty & /*fileUrl*/
|
|
1252
|
+
2 && !src_url_equal(img.src, img_src_value = /*fileUrl*/
|
|
1253
|
+
ctx2[1])) {
|
|
1254
|
+
attr(img, "src", img_src_value);
|
|
1255
|
+
}
|
|
1256
|
+
if (dirty & /*altText*/
|
|
1257
|
+
4) {
|
|
1258
|
+
attr(
|
|
1259
|
+
img,
|
|
1260
|
+
"alt",
|
|
1261
|
+
/*altText*/
|
|
1262
|
+
ctx2[2]
|
|
1263
|
+
);
|
|
1264
|
+
}
|
|
1265
|
+
if (
|
|
1266
|
+
/*fileCaption*/
|
|
1267
|
+
ctx2[3]
|
|
1268
|
+
) {
|
|
1269
|
+
if (if_block) {
|
|
1270
|
+
if_block.p(ctx2, dirty);
|
|
1271
|
+
} else {
|
|
1272
|
+
if_block = create_if_block_2(ctx2);
|
|
1273
|
+
if_block.c();
|
|
1274
|
+
if_block.m(if_block_anchor.parentNode, if_block_anchor);
|
|
1275
|
+
}
|
|
1276
|
+
} else if (if_block) {
|
|
1277
|
+
if_block.d(1);
|
|
1278
|
+
if_block = null;
|
|
1279
|
+
}
|
|
1280
|
+
},
|
|
1281
|
+
d(detaching) {
|
|
1282
|
+
if (detaching) {
|
|
1283
|
+
detach(img);
|
|
1284
|
+
detach(t2);
|
|
1285
|
+
detach(if_block_anchor);
|
|
1286
|
+
}
|
|
1287
|
+
if (if_block)
|
|
1288
|
+
if_block.d(detaching);
|
|
1289
|
+
}
|
|
1290
|
+
};
|
|
1291
|
+
}
|
|
1292
|
+
function create_if_block_2(ctx) {
|
|
1293
|
+
let p;
|
|
1294
|
+
let t2;
|
|
1295
|
+
return {
|
|
1296
|
+
c() {
|
|
1297
|
+
p = element("p");
|
|
1298
|
+
t2 = text(
|
|
1299
|
+
/*fileCaption*/
|
|
1300
|
+
ctx[3]
|
|
1301
|
+
);
|
|
1302
|
+
attr(p, "class", "text-lg leading-[22px] text-blue-1000 font-semibold mt-4");
|
|
1303
|
+
},
|
|
1304
|
+
m(target, anchor) {
|
|
1305
|
+
insert(target, p, anchor);
|
|
1306
|
+
append(p, t2);
|
|
1307
|
+
},
|
|
1308
|
+
p(ctx2, dirty) {
|
|
1309
|
+
if (dirty & /*fileCaption*/
|
|
1310
|
+
8)
|
|
1311
|
+
set_data(
|
|
1312
|
+
t2,
|
|
1313
|
+
/*fileCaption*/
|
|
1314
|
+
ctx2[3]
|
|
1315
|
+
);
|
|
1316
|
+
},
|
|
1317
|
+
d(detaching) {
|
|
1318
|
+
if (detaching) {
|
|
1319
|
+
detach(p);
|
|
1320
|
+
}
|
|
1321
|
+
}
|
|
1322
|
+
};
|
|
1323
|
+
}
|
|
1324
|
+
function create_fragment(ctx) {
|
|
1325
|
+
let if_block_anchor;
|
|
1326
|
+
let if_block = (
|
|
1327
|
+
/*fileUrl*/
|
|
1328
|
+
ctx[1] && create_if_block(ctx)
|
|
1329
|
+
);
|
|
1330
|
+
return {
|
|
1331
|
+
c() {
|
|
1332
|
+
if (if_block)
|
|
1333
|
+
if_block.c();
|
|
1334
|
+
if_block_anchor = empty();
|
|
1335
|
+
},
|
|
1336
|
+
m(target, anchor) {
|
|
1337
|
+
if (if_block)
|
|
1338
|
+
if_block.m(target, anchor);
|
|
1339
|
+
insert(target, if_block_anchor, anchor);
|
|
1340
|
+
},
|
|
1341
|
+
p(ctx2, [dirty]) {
|
|
1342
|
+
if (
|
|
1343
|
+
/*fileUrl*/
|
|
1344
|
+
ctx2[1]
|
|
1345
|
+
) {
|
|
1346
|
+
if (if_block) {
|
|
1347
|
+
if_block.p(ctx2, dirty);
|
|
1348
|
+
} else {
|
|
1349
|
+
if_block = create_if_block(ctx2);
|
|
1350
|
+
if_block.c();
|
|
1351
|
+
if_block.m(if_block_anchor.parentNode, if_block_anchor);
|
|
1352
|
+
}
|
|
1353
|
+
} else if (if_block) {
|
|
1354
|
+
if_block.d(1);
|
|
1355
|
+
if_block = null;
|
|
1356
|
+
}
|
|
1357
|
+
},
|
|
1358
|
+
i: noop,
|
|
1359
|
+
o: noop,
|
|
1360
|
+
d(detaching) {
|
|
1361
|
+
if (detaching) {
|
|
1362
|
+
detach(if_block_anchor);
|
|
1363
|
+
}
|
|
1364
|
+
if (if_block)
|
|
1365
|
+
if_block.d(detaching);
|
|
1366
|
+
}
|
|
1367
|
+
};
|
|
1368
|
+
}
|
|
1369
|
+
function instance($$self, $$props, $$invalidate) {
|
|
1370
|
+
let { fileType } = $$props;
|
|
1371
|
+
let { fileUrl } = $$props;
|
|
1372
|
+
let { altText = "" } = $$props;
|
|
1373
|
+
let { fileCaption = "" } = $$props;
|
|
1374
|
+
$$self.$$set = ($$props2) => {
|
|
1375
|
+
if ("fileType" in $$props2)
|
|
1376
|
+
$$invalidate(0, fileType = $$props2.fileType);
|
|
1377
|
+
if ("fileUrl" in $$props2)
|
|
1378
|
+
$$invalidate(1, fileUrl = $$props2.fileUrl);
|
|
1379
|
+
if ("altText" in $$props2)
|
|
1380
|
+
$$invalidate(2, altText = $$props2.altText);
|
|
1381
|
+
if ("fileCaption" in $$props2)
|
|
1382
|
+
$$invalidate(3, fileCaption = $$props2.fileCaption);
|
|
1383
|
+
};
|
|
1384
|
+
return [fileType, fileUrl, altText, fileCaption];
|
|
1385
|
+
}
|
|
1386
|
+
var CommonMedia = class extends SvelteComponent {
|
|
1387
|
+
constructor(options) {
|
|
1388
|
+
super();
|
|
1389
|
+
init(this, options, instance, create_fragment, safe_not_equal, {
|
|
1390
|
+
fileType: 0,
|
|
1391
|
+
fileUrl: 1,
|
|
1392
|
+
altText: 2,
|
|
1393
|
+
fileCaption: 3
|
|
1394
|
+
});
|
|
1395
|
+
}
|
|
1396
|
+
get fileType() {
|
|
1397
|
+
return this.$$.ctx[0];
|
|
1398
|
+
}
|
|
1399
|
+
set fileType(fileType) {
|
|
1400
|
+
this.$$set({ fileType });
|
|
1401
|
+
flush();
|
|
1402
|
+
}
|
|
1403
|
+
get fileUrl() {
|
|
1404
|
+
return this.$$.ctx[1];
|
|
1405
|
+
}
|
|
1406
|
+
set fileUrl(fileUrl) {
|
|
1407
|
+
this.$$set({ fileUrl });
|
|
1408
|
+
flush();
|
|
1409
|
+
}
|
|
1410
|
+
get altText() {
|
|
1411
|
+
return this.$$.ctx[2];
|
|
1412
|
+
}
|
|
1413
|
+
set altText(altText) {
|
|
1414
|
+
this.$$set({ altText });
|
|
1415
|
+
flush();
|
|
1416
|
+
}
|
|
1417
|
+
get fileCaption() {
|
|
1418
|
+
return this.$$.ctx[3];
|
|
1419
|
+
}
|
|
1420
|
+
set fileCaption(fileCaption) {
|
|
1421
|
+
this.$$set({ fileCaption });
|
|
1422
|
+
flush();
|
|
1423
|
+
}
|
|
1424
|
+
};
|
|
1425
|
+
customElements.define("common-media", create_custom_element(CommonMedia, { "fileType": {}, "fileUrl": {}, "altText": {}, "fileCaption": {} }, [], [], true));
|
|
1426
|
+
var CommonMedia_default = CommonMedia;
|
|
1427
|
+
|
|
1428
|
+
// src/lib/components/prompt/template/PromptBody.svelte
|
|
1429
|
+
function create_if_block_4(ctx) {
|
|
1149
1430
|
let html_tag;
|
|
1150
1431
|
let raw_value = `<${/*promptRubricHeaderElem*/
|
|
1151
|
-
ctx[
|
|
1432
|
+
ctx[9]} class="item-heading mb-4">${/*rubric*/
|
|
1152
1433
|
ctx[0]}</${/*promptRubricHeaderElem*/
|
|
1153
|
-
ctx[
|
|
1434
|
+
ctx[9]}>`;
|
|
1154
1435
|
let html_anchor;
|
|
1155
1436
|
return {
|
|
1156
1437
|
c() {
|
|
@@ -1165,9 +1446,9 @@
|
|
|
1165
1446
|
p(ctx2, dirty) {
|
|
1166
1447
|
if (dirty & /*rubric*/
|
|
1167
1448
|
1 && raw_value !== (raw_value = `<${/*promptRubricHeaderElem*/
|
|
1168
|
-
ctx2[
|
|
1449
|
+
ctx2[9]} class="item-heading mb-4">${/*rubric*/
|
|
1169
1450
|
ctx2[0]}</${/*promptRubricHeaderElem*/
|
|
1170
|
-
ctx2[
|
|
1451
|
+
ctx2[9]}>`))
|
|
1171
1452
|
html_tag.p(raw_value);
|
|
1172
1453
|
},
|
|
1173
1454
|
d(detaching) {
|
|
@@ -1178,12 +1459,85 @@
|
|
|
1178
1459
|
}
|
|
1179
1460
|
};
|
|
1180
1461
|
}
|
|
1181
|
-
function
|
|
1462
|
+
function create_if_block_3(ctx) {
|
|
1463
|
+
let div;
|
|
1464
|
+
let commonmedia;
|
|
1465
|
+
let current;
|
|
1466
|
+
commonmedia = new CommonMedia_default({
|
|
1467
|
+
props: {
|
|
1468
|
+
fileType: (
|
|
1469
|
+
/*fileType*/
|
|
1470
|
+
ctx[3]
|
|
1471
|
+
),
|
|
1472
|
+
fileUrl: (
|
|
1473
|
+
/*fileUrl*/
|
|
1474
|
+
ctx[2]
|
|
1475
|
+
),
|
|
1476
|
+
altText: (
|
|
1477
|
+
/*altText*/
|
|
1478
|
+
ctx[5]
|
|
1479
|
+
),
|
|
1480
|
+
fileCaption: (
|
|
1481
|
+
/*caption*/
|
|
1482
|
+
ctx[6]
|
|
1483
|
+
)
|
|
1484
|
+
}
|
|
1485
|
+
});
|
|
1486
|
+
return {
|
|
1487
|
+
c() {
|
|
1488
|
+
div = element("div");
|
|
1489
|
+
create_component(commonmedia.$$.fragment);
|
|
1490
|
+
attr(div, "class", "pt-6 pb-10");
|
|
1491
|
+
},
|
|
1492
|
+
m(target, anchor) {
|
|
1493
|
+
insert(target, div, anchor);
|
|
1494
|
+
mount_component(commonmedia, div, null);
|
|
1495
|
+
current = true;
|
|
1496
|
+
},
|
|
1497
|
+
p(ctx2, dirty) {
|
|
1498
|
+
const commonmedia_changes = {};
|
|
1499
|
+
if (dirty & /*fileType*/
|
|
1500
|
+
8)
|
|
1501
|
+
commonmedia_changes.fileType = /*fileType*/
|
|
1502
|
+
ctx2[3];
|
|
1503
|
+
if (dirty & /*fileUrl*/
|
|
1504
|
+
4)
|
|
1505
|
+
commonmedia_changes.fileUrl = /*fileUrl*/
|
|
1506
|
+
ctx2[2];
|
|
1507
|
+
if (dirty & /*altText*/
|
|
1508
|
+
32)
|
|
1509
|
+
commonmedia_changes.altText = /*altText*/
|
|
1510
|
+
ctx2[5];
|
|
1511
|
+
if (dirty & /*caption*/
|
|
1512
|
+
64)
|
|
1513
|
+
commonmedia_changes.fileCaption = /*caption*/
|
|
1514
|
+
ctx2[6];
|
|
1515
|
+
commonmedia.$set(commonmedia_changes);
|
|
1516
|
+
},
|
|
1517
|
+
i(local) {
|
|
1518
|
+
if (current)
|
|
1519
|
+
return;
|
|
1520
|
+
transition_in(commonmedia.$$.fragment, local);
|
|
1521
|
+
current = true;
|
|
1522
|
+
},
|
|
1523
|
+
o(local) {
|
|
1524
|
+
transition_out(commonmedia.$$.fragment, local);
|
|
1525
|
+
current = false;
|
|
1526
|
+
},
|
|
1527
|
+
d(detaching) {
|
|
1528
|
+
if (detaching) {
|
|
1529
|
+
detach(div);
|
|
1530
|
+
}
|
|
1531
|
+
destroy_component(commonmedia);
|
|
1532
|
+
}
|
|
1533
|
+
};
|
|
1534
|
+
}
|
|
1535
|
+
function create_if_block_22(ctx) {
|
|
1182
1536
|
let html_tag;
|
|
1183
1537
|
let raw_value = `<${/*promptRubricHeaderElem*/
|
|
1184
|
-
ctx[
|
|
1538
|
+
ctx[9]} class="item-heading font-semibold">${/*prompt*/
|
|
1185
1539
|
ctx[1]}</${/*promptRubricHeaderElem*/
|
|
1186
|
-
ctx[
|
|
1540
|
+
ctx[9]}>`;
|
|
1187
1541
|
let html_anchor;
|
|
1188
1542
|
return {
|
|
1189
1543
|
c() {
|
|
@@ -1198,9 +1552,9 @@
|
|
|
1198
1552
|
p(ctx2, dirty) {
|
|
1199
1553
|
if (dirty & /*prompt*/
|
|
1200
1554
|
2 && raw_value !== (raw_value = `<${/*promptRubricHeaderElem*/
|
|
1201
|
-
ctx2[
|
|
1555
|
+
ctx2[9]} class="item-heading font-semibold">${/*prompt*/
|
|
1202
1556
|
ctx2[1]}</${/*promptRubricHeaderElem*/
|
|
1203
|
-
ctx2[
|
|
1557
|
+
ctx2[9]}>`))
|
|
1204
1558
|
html_tag.p(raw_value);
|
|
1205
1559
|
},
|
|
1206
1560
|
d(detaching) {
|
|
@@ -1211,34 +1565,204 @@
|
|
|
1211
1565
|
}
|
|
1212
1566
|
};
|
|
1213
1567
|
}
|
|
1214
|
-
function
|
|
1568
|
+
function create_if_block_12(ctx) {
|
|
1569
|
+
let div;
|
|
1570
|
+
let commonmedia;
|
|
1571
|
+
let current;
|
|
1572
|
+
commonmedia = new CommonMedia_default({
|
|
1573
|
+
props: {
|
|
1574
|
+
fileType: (
|
|
1575
|
+
/*fileType*/
|
|
1576
|
+
ctx[3]
|
|
1577
|
+
),
|
|
1578
|
+
fileUrl: (
|
|
1579
|
+
/*fileUrl*/
|
|
1580
|
+
ctx[2]
|
|
1581
|
+
),
|
|
1582
|
+
altText: (
|
|
1583
|
+
/*altText*/
|
|
1584
|
+
ctx[5]
|
|
1585
|
+
),
|
|
1586
|
+
fileCaption: (
|
|
1587
|
+
/*caption*/
|
|
1588
|
+
ctx[6]
|
|
1589
|
+
)
|
|
1590
|
+
}
|
|
1591
|
+
});
|
|
1592
|
+
return {
|
|
1593
|
+
c() {
|
|
1594
|
+
div = element("div");
|
|
1595
|
+
create_component(commonmedia.$$.fragment);
|
|
1596
|
+
attr(div, "class", "pt-6 lg:hidden");
|
|
1597
|
+
},
|
|
1598
|
+
m(target, anchor) {
|
|
1599
|
+
insert(target, div, anchor);
|
|
1600
|
+
mount_component(commonmedia, div, null);
|
|
1601
|
+
current = true;
|
|
1602
|
+
},
|
|
1603
|
+
p(ctx2, dirty) {
|
|
1604
|
+
const commonmedia_changes = {};
|
|
1605
|
+
if (dirty & /*fileType*/
|
|
1606
|
+
8)
|
|
1607
|
+
commonmedia_changes.fileType = /*fileType*/
|
|
1608
|
+
ctx2[3];
|
|
1609
|
+
if (dirty & /*fileUrl*/
|
|
1610
|
+
4)
|
|
1611
|
+
commonmedia_changes.fileUrl = /*fileUrl*/
|
|
1612
|
+
ctx2[2];
|
|
1613
|
+
if (dirty & /*altText*/
|
|
1614
|
+
32)
|
|
1615
|
+
commonmedia_changes.altText = /*altText*/
|
|
1616
|
+
ctx2[5];
|
|
1617
|
+
if (dirty & /*caption*/
|
|
1618
|
+
64)
|
|
1619
|
+
commonmedia_changes.fileCaption = /*caption*/
|
|
1620
|
+
ctx2[6];
|
|
1621
|
+
commonmedia.$set(commonmedia_changes);
|
|
1622
|
+
},
|
|
1623
|
+
i(local) {
|
|
1624
|
+
if (current)
|
|
1625
|
+
return;
|
|
1626
|
+
transition_in(commonmedia.$$.fragment, local);
|
|
1627
|
+
current = true;
|
|
1628
|
+
},
|
|
1629
|
+
o(local) {
|
|
1630
|
+
transition_out(commonmedia.$$.fragment, local);
|
|
1631
|
+
current = false;
|
|
1632
|
+
},
|
|
1633
|
+
d(detaching) {
|
|
1634
|
+
if (detaching) {
|
|
1635
|
+
detach(div);
|
|
1636
|
+
}
|
|
1637
|
+
destroy_component(commonmedia);
|
|
1638
|
+
}
|
|
1639
|
+
};
|
|
1640
|
+
}
|
|
1641
|
+
function create_if_block2(ctx) {
|
|
1642
|
+
let div1;
|
|
1643
|
+
let div0;
|
|
1644
|
+
let commonmedia;
|
|
1645
|
+
let current;
|
|
1646
|
+
commonmedia = new CommonMedia_default({
|
|
1647
|
+
props: {
|
|
1648
|
+
fileType: (
|
|
1649
|
+
/*fileType*/
|
|
1650
|
+
ctx[3]
|
|
1651
|
+
),
|
|
1652
|
+
fileUrl: (
|
|
1653
|
+
/*fileUrl*/
|
|
1654
|
+
ctx[2]
|
|
1655
|
+
),
|
|
1656
|
+
altText: (
|
|
1657
|
+
/*altText*/
|
|
1658
|
+
ctx[5]
|
|
1659
|
+
),
|
|
1660
|
+
fileCaption: (
|
|
1661
|
+
/*caption*/
|
|
1662
|
+
ctx[6]
|
|
1663
|
+
)
|
|
1664
|
+
}
|
|
1665
|
+
});
|
|
1666
|
+
return {
|
|
1667
|
+
c() {
|
|
1668
|
+
div1 = element("div");
|
|
1669
|
+
div0 = element("div");
|
|
1670
|
+
create_component(commonmedia.$$.fragment);
|
|
1671
|
+
attr(div0, "class", "w-full");
|
|
1672
|
+
attr(div1, "class", "pl-24 w-2/4 hidden lg:flex lg:basis-1/2 lg:items-center lg:justify-between lg:grow");
|
|
1673
|
+
},
|
|
1674
|
+
m(target, anchor) {
|
|
1675
|
+
insert(target, div1, anchor);
|
|
1676
|
+
append(div1, div0);
|
|
1677
|
+
mount_component(commonmedia, div0, null);
|
|
1678
|
+
current = true;
|
|
1679
|
+
},
|
|
1680
|
+
p(ctx2, dirty) {
|
|
1681
|
+
const commonmedia_changes = {};
|
|
1682
|
+
if (dirty & /*fileType*/
|
|
1683
|
+
8)
|
|
1684
|
+
commonmedia_changes.fileType = /*fileType*/
|
|
1685
|
+
ctx2[3];
|
|
1686
|
+
if (dirty & /*fileUrl*/
|
|
1687
|
+
4)
|
|
1688
|
+
commonmedia_changes.fileUrl = /*fileUrl*/
|
|
1689
|
+
ctx2[2];
|
|
1690
|
+
if (dirty & /*altText*/
|
|
1691
|
+
32)
|
|
1692
|
+
commonmedia_changes.altText = /*altText*/
|
|
1693
|
+
ctx2[5];
|
|
1694
|
+
if (dirty & /*caption*/
|
|
1695
|
+
64)
|
|
1696
|
+
commonmedia_changes.fileCaption = /*caption*/
|
|
1697
|
+
ctx2[6];
|
|
1698
|
+
commonmedia.$set(commonmedia_changes);
|
|
1699
|
+
},
|
|
1700
|
+
i(local) {
|
|
1701
|
+
if (current)
|
|
1702
|
+
return;
|
|
1703
|
+
transition_in(commonmedia.$$.fragment, local);
|
|
1704
|
+
current = true;
|
|
1705
|
+
},
|
|
1706
|
+
o(local) {
|
|
1707
|
+
transition_out(commonmedia.$$.fragment, local);
|
|
1708
|
+
current = false;
|
|
1709
|
+
},
|
|
1710
|
+
d(detaching) {
|
|
1711
|
+
if (detaching) {
|
|
1712
|
+
detach(div1);
|
|
1713
|
+
}
|
|
1714
|
+
destroy_component(commonmedia);
|
|
1715
|
+
}
|
|
1716
|
+
};
|
|
1717
|
+
}
|
|
1718
|
+
function create_fragment2(ctx) {
|
|
1719
|
+
let div2;
|
|
1215
1720
|
let div1;
|
|
1216
1721
|
let t0;
|
|
1217
1722
|
let t1;
|
|
1218
|
-
let div0;
|
|
1219
1723
|
let t2;
|
|
1724
|
+
let t3;
|
|
1725
|
+
let div0;
|
|
1726
|
+
let t4;
|
|
1727
|
+
let div1_class_value;
|
|
1728
|
+
let t5;
|
|
1729
|
+
let div2_class_value;
|
|
1220
1730
|
let current;
|
|
1221
1731
|
let if_block0 = (
|
|
1222
1732
|
/*rubric*/
|
|
1223
|
-
ctx[0] &&
|
|
1733
|
+
ctx[0] && create_if_block_4(ctx)
|
|
1224
1734
|
);
|
|
1225
1735
|
let if_block1 = (
|
|
1736
|
+
/*showAsset*/
|
|
1737
|
+
ctx[7] && /*fileAlignment*/
|
|
1738
|
+
ctx[4] === ASSET_ALIGNMENT_INLINE && create_if_block_3(ctx)
|
|
1739
|
+
);
|
|
1740
|
+
let if_block2 = (
|
|
1226
1741
|
/*prompt*/
|
|
1227
|
-
ctx[1] &&
|
|
1742
|
+
ctx[1] && create_if_block_22(ctx)
|
|
1743
|
+
);
|
|
1744
|
+
let if_block3 = (
|
|
1745
|
+
/*showAlignmentDefault*/
|
|
1746
|
+
ctx[8] && create_if_block_12(ctx)
|
|
1228
1747
|
);
|
|
1229
1748
|
const default_slot_template = (
|
|
1230
1749
|
/*#slots*/
|
|
1231
|
-
ctx[
|
|
1750
|
+
ctx[13].default
|
|
1232
1751
|
);
|
|
1233
1752
|
const default_slot = create_slot(
|
|
1234
1753
|
default_slot_template,
|
|
1235
1754
|
ctx,
|
|
1236
1755
|
/*$$scope*/
|
|
1237
|
-
ctx[
|
|
1756
|
+
ctx[12],
|
|
1238
1757
|
null
|
|
1239
1758
|
);
|
|
1759
|
+
let if_block4 = (
|
|
1760
|
+
/*showAlignmentDefault*/
|
|
1761
|
+
ctx[8] && create_if_block2(ctx)
|
|
1762
|
+
);
|
|
1240
1763
|
return {
|
|
1241
1764
|
c() {
|
|
1765
|
+
div2 = element("div");
|
|
1242
1766
|
div1 = element("div");
|
|
1243
1767
|
if (if_block0)
|
|
1244
1768
|
if_block0.c();
|
|
@@ -1246,26 +1770,48 @@
|
|
|
1246
1770
|
if (if_block1)
|
|
1247
1771
|
if_block1.c();
|
|
1248
1772
|
t1 = space();
|
|
1249
|
-
|
|
1773
|
+
if (if_block2)
|
|
1774
|
+
if_block2.c();
|
|
1250
1775
|
t2 = space();
|
|
1776
|
+
if (if_block3)
|
|
1777
|
+
if_block3.c();
|
|
1778
|
+
t3 = space();
|
|
1779
|
+
div0 = element("div");
|
|
1780
|
+
t4 = space();
|
|
1251
1781
|
if (default_slot)
|
|
1252
1782
|
default_slot.c();
|
|
1783
|
+
t5 = space();
|
|
1784
|
+
if (if_block4)
|
|
1785
|
+
if_block4.c();
|
|
1253
1786
|
attr(div0, "class", "divider my-6");
|
|
1254
|
-
attr(div1, "class", "bg-transparent relative"
|
|
1787
|
+
attr(div1, "class", div1_class_value = "bg-transparent relative " + /*showAlignmentDefault*/
|
|
1788
|
+
(ctx[8] ? "lg:basis-1/2" : ""));
|
|
1789
|
+
attr(div2, "class", div2_class_value = /*showAlignmentDefault*/
|
|
1790
|
+
ctx[8] ? "lg:w-full lg:flex" : "");
|
|
1255
1791
|
},
|
|
1256
1792
|
m(target, anchor) {
|
|
1257
|
-
insert(target,
|
|
1793
|
+
insert(target, div2, anchor);
|
|
1794
|
+
append(div2, div1);
|
|
1258
1795
|
if (if_block0)
|
|
1259
1796
|
if_block0.m(div1, null);
|
|
1260
1797
|
append(div1, t0);
|
|
1261
1798
|
if (if_block1)
|
|
1262
1799
|
if_block1.m(div1, null);
|
|
1263
1800
|
append(div1, t1);
|
|
1264
|
-
|
|
1801
|
+
if (if_block2)
|
|
1802
|
+
if_block2.m(div1, null);
|
|
1265
1803
|
append(div1, t2);
|
|
1804
|
+
if (if_block3)
|
|
1805
|
+
if_block3.m(div1, null);
|
|
1806
|
+
append(div1, t3);
|
|
1807
|
+
append(div1, div0);
|
|
1808
|
+
append(div1, t4);
|
|
1266
1809
|
if (default_slot) {
|
|
1267
1810
|
default_slot.m(div1, null);
|
|
1268
1811
|
}
|
|
1812
|
+
append(div2, t5);
|
|
1813
|
+
if (if_block4)
|
|
1814
|
+
if_block4.m(div2, null);
|
|
1269
1815
|
current = true;
|
|
1270
1816
|
},
|
|
1271
1817
|
p(ctx2, [dirty]) {
|
|
@@ -1276,7 +1822,7 @@
|
|
|
1276
1822
|
if (if_block0) {
|
|
1277
1823
|
if_block0.p(ctx2, dirty);
|
|
1278
1824
|
} else {
|
|
1279
|
-
if_block0 =
|
|
1825
|
+
if_block0 = create_if_block_4(ctx2);
|
|
1280
1826
|
if_block0.c();
|
|
1281
1827
|
if_block0.m(div1, t0);
|
|
1282
1828
|
}
|
|
@@ -1285,36 +1831,65 @@
|
|
|
1285
1831
|
if_block0 = null;
|
|
1286
1832
|
}
|
|
1287
1833
|
if (
|
|
1288
|
-
/*
|
|
1289
|
-
ctx2[
|
|
1834
|
+
/*showAsset*/
|
|
1835
|
+
ctx2[7] && /*fileAlignment*/
|
|
1836
|
+
ctx2[4] === ASSET_ALIGNMENT_INLINE
|
|
1290
1837
|
) {
|
|
1291
1838
|
if (if_block1) {
|
|
1292
1839
|
if_block1.p(ctx2, dirty);
|
|
1840
|
+
if (dirty & /*fileAlignment*/
|
|
1841
|
+
16) {
|
|
1842
|
+
transition_in(if_block1, 1);
|
|
1843
|
+
}
|
|
1293
1844
|
} else {
|
|
1294
|
-
if_block1 =
|
|
1845
|
+
if_block1 = create_if_block_3(ctx2);
|
|
1295
1846
|
if_block1.c();
|
|
1847
|
+
transition_in(if_block1, 1);
|
|
1296
1848
|
if_block1.m(div1, t1);
|
|
1297
1849
|
}
|
|
1298
1850
|
} else if (if_block1) {
|
|
1299
|
-
|
|
1300
|
-
if_block1
|
|
1851
|
+
group_outros();
|
|
1852
|
+
transition_out(if_block1, 1, 1, () => {
|
|
1853
|
+
if_block1 = null;
|
|
1854
|
+
});
|
|
1855
|
+
check_outros();
|
|
1301
1856
|
}
|
|
1857
|
+
if (
|
|
1858
|
+
/*prompt*/
|
|
1859
|
+
ctx2[1]
|
|
1860
|
+
) {
|
|
1861
|
+
if (if_block2) {
|
|
1862
|
+
if_block2.p(ctx2, dirty);
|
|
1863
|
+
} else {
|
|
1864
|
+
if_block2 = create_if_block_22(ctx2);
|
|
1865
|
+
if_block2.c();
|
|
1866
|
+
if_block2.m(div1, t2);
|
|
1867
|
+
}
|
|
1868
|
+
} else if (if_block2) {
|
|
1869
|
+
if_block2.d(1);
|
|
1870
|
+
if_block2 = null;
|
|
1871
|
+
}
|
|
1872
|
+
if (
|
|
1873
|
+
/*showAlignmentDefault*/
|
|
1874
|
+
ctx2[8]
|
|
1875
|
+
)
|
|
1876
|
+
if_block3.p(ctx2, dirty);
|
|
1302
1877
|
if (default_slot) {
|
|
1303
1878
|
if (default_slot.p && (!current || dirty & /*$$scope*/
|
|
1304
|
-
|
|
1879
|
+
4096)) {
|
|
1305
1880
|
update_slot_base(
|
|
1306
1881
|
default_slot,
|
|
1307
1882
|
default_slot_template,
|
|
1308
1883
|
ctx2,
|
|
1309
1884
|
/*$$scope*/
|
|
1310
|
-
ctx2[
|
|
1885
|
+
ctx2[12],
|
|
1311
1886
|
!current ? get_all_dirty_from_scope(
|
|
1312
1887
|
/*$$scope*/
|
|
1313
|
-
ctx2[
|
|
1888
|
+
ctx2[12]
|
|
1314
1889
|
) : get_slot_changes(
|
|
1315
1890
|
default_slot_template,
|
|
1316
1891
|
/*$$scope*/
|
|
1317
|
-
ctx2[
|
|
1892
|
+
ctx2[12],
|
|
1318
1893
|
dirty,
|
|
1319
1894
|
null
|
|
1320
1895
|
),
|
|
@@ -1322,49 +1897,112 @@
|
|
|
1322
1897
|
);
|
|
1323
1898
|
}
|
|
1324
1899
|
}
|
|
1900
|
+
if (
|
|
1901
|
+
/*showAlignmentDefault*/
|
|
1902
|
+
ctx2[8]
|
|
1903
|
+
)
|
|
1904
|
+
if_block4.p(ctx2, dirty);
|
|
1325
1905
|
},
|
|
1326
1906
|
i(local) {
|
|
1327
1907
|
if (current)
|
|
1328
1908
|
return;
|
|
1909
|
+
transition_in(if_block1);
|
|
1910
|
+
transition_in(if_block3);
|
|
1329
1911
|
transition_in(default_slot, local);
|
|
1912
|
+
transition_in(if_block4);
|
|
1330
1913
|
current = true;
|
|
1331
1914
|
},
|
|
1332
1915
|
o(local) {
|
|
1916
|
+
transition_out(if_block1);
|
|
1917
|
+
transition_out(if_block3);
|
|
1333
1918
|
transition_out(default_slot, local);
|
|
1919
|
+
transition_out(if_block4);
|
|
1334
1920
|
current = false;
|
|
1335
1921
|
},
|
|
1336
1922
|
d(detaching) {
|
|
1337
1923
|
if (detaching) {
|
|
1338
|
-
detach(
|
|
1924
|
+
detach(div2);
|
|
1339
1925
|
}
|
|
1340
1926
|
if (if_block0)
|
|
1341
1927
|
if_block0.d();
|
|
1342
1928
|
if (if_block1)
|
|
1343
1929
|
if_block1.d();
|
|
1930
|
+
if (if_block2)
|
|
1931
|
+
if_block2.d();
|
|
1932
|
+
if (if_block3)
|
|
1933
|
+
if_block3.d();
|
|
1344
1934
|
if (default_slot)
|
|
1345
1935
|
default_slot.d(detaching);
|
|
1936
|
+
if (if_block4)
|
|
1937
|
+
if_block4.d();
|
|
1346
1938
|
}
|
|
1347
1939
|
};
|
|
1348
1940
|
}
|
|
1349
|
-
function
|
|
1941
|
+
function instance2($$self, $$props, $$invalidate) {
|
|
1350
1942
|
let { $$slots: slots = {}, $$scope } = $$props;
|
|
1351
1943
|
let { rubric } = $$props;
|
|
1352
1944
|
let { prompt } = $$props;
|
|
1945
|
+
let { interactionType = "" } = $$props;
|
|
1946
|
+
let { stimulus = null } = $$props;
|
|
1947
|
+
let fileUrl = "";
|
|
1948
|
+
let fileType = "";
|
|
1949
|
+
let fileAlignment = "default";
|
|
1950
|
+
let altText = "";
|
|
1951
|
+
let caption = "";
|
|
1952
|
+
if (stimulus) {
|
|
1953
|
+
const { asset_alignment: assetAlignment, alternative_text: alternativeText, description, file } = stimulus;
|
|
1954
|
+
if (file) {
|
|
1955
|
+
const { url, file_name: fileName, content_type: contentType } = file;
|
|
1956
|
+
const tempName = fileName || "Exercise image";
|
|
1957
|
+
const fileContentType = contentType.split("/");
|
|
1958
|
+
fileAlignment = assetAlignment;
|
|
1959
|
+
altText = alternativeText || tempName;
|
|
1960
|
+
fileUrl = url || "";
|
|
1961
|
+
fileType = contentType ? fileContentType[0] : "";
|
|
1962
|
+
caption = description || "";
|
|
1963
|
+
}
|
|
1964
|
+
}
|
|
1965
|
+
const showAsset = (interactionType === INTERACTION_TYPE_MCQ || interactionType === INTERACTION_TYPE_TYPEIN) && fileUrl;
|
|
1966
|
+
const showAlignmentDefault = showAsset && fileAlignment === ASSET_ALIGNMENT_DEFAULT;
|
|
1353
1967
|
const promptRubricHeaderElem = get_store_value(promptRubricElem);
|
|
1354
1968
|
$$self.$$set = ($$props2) => {
|
|
1355
1969
|
if ("rubric" in $$props2)
|
|
1356
1970
|
$$invalidate(0, rubric = $$props2.rubric);
|
|
1357
1971
|
if ("prompt" in $$props2)
|
|
1358
1972
|
$$invalidate(1, prompt = $$props2.prompt);
|
|
1973
|
+
if ("interactionType" in $$props2)
|
|
1974
|
+
$$invalidate(10, interactionType = $$props2.interactionType);
|
|
1975
|
+
if ("stimulus" in $$props2)
|
|
1976
|
+
$$invalidate(11, stimulus = $$props2.stimulus);
|
|
1359
1977
|
if ("$$scope" in $$props2)
|
|
1360
|
-
$$invalidate(
|
|
1978
|
+
$$invalidate(12, $$scope = $$props2.$$scope);
|
|
1361
1979
|
};
|
|
1362
|
-
return [
|
|
1980
|
+
return [
|
|
1981
|
+
rubric,
|
|
1982
|
+
prompt,
|
|
1983
|
+
fileUrl,
|
|
1984
|
+
fileType,
|
|
1985
|
+
fileAlignment,
|
|
1986
|
+
altText,
|
|
1987
|
+
caption,
|
|
1988
|
+
showAsset,
|
|
1989
|
+
showAlignmentDefault,
|
|
1990
|
+
promptRubricHeaderElem,
|
|
1991
|
+
interactionType,
|
|
1992
|
+
stimulus,
|
|
1993
|
+
$$scope,
|
|
1994
|
+
slots
|
|
1995
|
+
];
|
|
1363
1996
|
}
|
|
1364
1997
|
var PromptBody = class extends SvelteComponent {
|
|
1365
1998
|
constructor(options) {
|
|
1366
1999
|
super();
|
|
1367
|
-
init(this, options,
|
|
2000
|
+
init(this, options, instance2, create_fragment2, safe_not_equal, {
|
|
2001
|
+
rubric: 0,
|
|
2002
|
+
prompt: 1,
|
|
2003
|
+
interactionType: 10,
|
|
2004
|
+
stimulus: 11
|
|
2005
|
+
});
|
|
1368
2006
|
}
|
|
1369
2007
|
get rubric() {
|
|
1370
2008
|
return this.$$.ctx[0];
|
|
@@ -1380,12 +2018,26 @@
|
|
|
1380
2018
|
this.$$set({ prompt });
|
|
1381
2019
|
flush();
|
|
1382
2020
|
}
|
|
2021
|
+
get interactionType() {
|
|
2022
|
+
return this.$$.ctx[10];
|
|
2023
|
+
}
|
|
2024
|
+
set interactionType(interactionType) {
|
|
2025
|
+
this.$$set({ interactionType });
|
|
2026
|
+
flush();
|
|
2027
|
+
}
|
|
2028
|
+
get stimulus() {
|
|
2029
|
+
return this.$$.ctx[11];
|
|
2030
|
+
}
|
|
2031
|
+
set stimulus(stimulus) {
|
|
2032
|
+
this.$$set({ stimulus });
|
|
2033
|
+
flush();
|
|
2034
|
+
}
|
|
1383
2035
|
};
|
|
1384
|
-
customElements.define("prompt-body", create_custom_element(PromptBody, { "rubric": {}, "prompt": {} }, ["default"], [], true));
|
|
2036
|
+
customElements.define("prompt-body", create_custom_element(PromptBody, { "rubric": {}, "prompt": {}, "interactionType": {}, "stimulus": {} }, ["default"], [], true));
|
|
1385
2037
|
var PromptBody_default = PromptBody;
|
|
1386
2038
|
|
|
1387
2039
|
// src/lib/components/prompt/template/PromptResultFeedback.svelte
|
|
1388
|
-
function
|
|
2040
|
+
function create_if_block3(ctx) {
|
|
1389
2041
|
let div0;
|
|
1390
2042
|
let t0;
|
|
1391
2043
|
let span;
|
|
@@ -1395,7 +2047,7 @@
|
|
|
1395
2047
|
let div1;
|
|
1396
2048
|
let if_block = (
|
|
1397
2049
|
/*resultFeedbackTitle*/
|
|
1398
|
-
ctx[1] &&
|
|
2050
|
+
ctx[1] && create_if_block_13(ctx)
|
|
1399
2051
|
);
|
|
1400
2052
|
return {
|
|
1401
2053
|
c() {
|
|
@@ -1433,7 +2085,7 @@
|
|
|
1433
2085
|
if (if_block) {
|
|
1434
2086
|
if_block.p(ctx2, dirty);
|
|
1435
2087
|
} else {
|
|
1436
|
-
if_block =
|
|
2088
|
+
if_block = create_if_block_13(ctx2);
|
|
1437
2089
|
if_block.c();
|
|
1438
2090
|
if_block.m(div0, t0);
|
|
1439
2091
|
}
|
|
@@ -1465,7 +2117,7 @@
|
|
|
1465
2117
|
}
|
|
1466
2118
|
};
|
|
1467
2119
|
}
|
|
1468
|
-
function
|
|
2120
|
+
function create_if_block_13(ctx) {
|
|
1469
2121
|
let span;
|
|
1470
2122
|
let t2;
|
|
1471
2123
|
return {
|
|
@@ -1497,11 +2149,11 @@
|
|
|
1497
2149
|
}
|
|
1498
2150
|
};
|
|
1499
2151
|
}
|
|
1500
|
-
function
|
|
2152
|
+
function create_fragment3(ctx) {
|
|
1501
2153
|
let if_block_anchor;
|
|
1502
2154
|
let if_block = (
|
|
1503
2155
|
/*resultFeedback*/
|
|
1504
|
-
ctx[0] &&
|
|
2156
|
+
ctx[0] && create_if_block3(ctx)
|
|
1505
2157
|
);
|
|
1506
2158
|
return {
|
|
1507
2159
|
c() {
|
|
@@ -1522,7 +2174,7 @@
|
|
|
1522
2174
|
if (if_block) {
|
|
1523
2175
|
if_block.p(ctx2, dirty);
|
|
1524
2176
|
} else {
|
|
1525
|
-
if_block =
|
|
2177
|
+
if_block = create_if_block3(ctx2);
|
|
1526
2178
|
if_block.c();
|
|
1527
2179
|
if_block.m(if_block_anchor.parentNode, if_block_anchor);
|
|
1528
2180
|
}
|
|
@@ -1542,7 +2194,7 @@
|
|
|
1542
2194
|
}
|
|
1543
2195
|
};
|
|
1544
2196
|
}
|
|
1545
|
-
function
|
|
2197
|
+
function instance3($$self, $$props, $$invalidate) {
|
|
1546
2198
|
let { resultFeedback = null } = $$props;
|
|
1547
2199
|
let { resultFeedbackTitle = null } = $$props;
|
|
1548
2200
|
let { isResultCorrect = true } = $$props;
|
|
@@ -1559,7 +2211,7 @@
|
|
|
1559
2211
|
var PromptResultFeedback = class extends SvelteComponent {
|
|
1560
2212
|
constructor(options) {
|
|
1561
2213
|
super();
|
|
1562
|
-
init(this, options,
|
|
2214
|
+
init(this, options, instance3, create_fragment3, safe_not_equal, {
|
|
1563
2215
|
resultFeedback: 0,
|
|
1564
2216
|
resultFeedbackTitle: 1,
|
|
1565
2217
|
isResultCorrect: 2
|
|
@@ -1625,7 +2277,7 @@
|
|
|
1625
2277
|
var useMCQ_default = useAlphabetEquivalent;
|
|
1626
2278
|
|
|
1627
2279
|
// src/lib/assets/img/messaging/SuccessSolid.svelte
|
|
1628
|
-
function
|
|
2280
|
+
function create_fragment4(ctx) {
|
|
1629
2281
|
let svg;
|
|
1630
2282
|
let path;
|
|
1631
2283
|
return {
|
|
@@ -1661,14 +2313,14 @@
|
|
|
1661
2313
|
var SuccessSolid = class extends SvelteComponent {
|
|
1662
2314
|
constructor(options) {
|
|
1663
2315
|
super();
|
|
1664
|
-
init(this, options, null,
|
|
2316
|
+
init(this, options, null, create_fragment4, safe_not_equal, {});
|
|
1665
2317
|
}
|
|
1666
2318
|
};
|
|
1667
2319
|
create_custom_element(SuccessSolid, {}, [], [], true);
|
|
1668
2320
|
var SuccessSolid_default = SuccessSolid;
|
|
1669
2321
|
|
|
1670
2322
|
// src/lib/assets/img/messaging/ErrorSolid.svelte
|
|
1671
|
-
function
|
|
2323
|
+
function create_fragment5(ctx) {
|
|
1672
2324
|
let svg;
|
|
1673
2325
|
let path;
|
|
1674
2326
|
return {
|
|
@@ -1704,7 +2356,7 @@
|
|
|
1704
2356
|
var ErrorSolid = class extends SvelteComponent {
|
|
1705
2357
|
constructor(options) {
|
|
1706
2358
|
super();
|
|
1707
|
-
init(this, options, null,
|
|
2359
|
+
init(this, options, null, create_fragment5, safe_not_equal, {});
|
|
1708
2360
|
}
|
|
1709
2361
|
};
|
|
1710
2362
|
create_custom_element(ErrorSolid, {}, [], [], true);
|
|
@@ -1713,11 +2365,11 @@
|
|
|
1713
2365
|
// src/lib/components/prompt/mcq/PromptMCQ.svelte
|
|
1714
2366
|
function get_each_context(ctx, list, i) {
|
|
1715
2367
|
const child_ctx = ctx.slice();
|
|
1716
|
-
child_ctx[
|
|
1717
|
-
child_ctx[
|
|
2368
|
+
child_ctx[18] = list[i];
|
|
2369
|
+
child_ctx[20] = i;
|
|
1718
2370
|
return child_ctx;
|
|
1719
2371
|
}
|
|
1720
|
-
function
|
|
2372
|
+
function create_if_block_14(ctx) {
|
|
1721
2373
|
let div1;
|
|
1722
2374
|
let div0;
|
|
1723
2375
|
let div0_class_value;
|
|
@@ -1725,7 +2377,7 @@
|
|
|
1725
2377
|
let current;
|
|
1726
2378
|
let each_value = ensure_array_like(Object.values(
|
|
1727
2379
|
/*options*/
|
|
1728
|
-
ctx[
|
|
2380
|
+
ctx[8]
|
|
1729
2381
|
));
|
|
1730
2382
|
let each_blocks = [];
|
|
1731
2383
|
for (let i = 0; i < each_value.length; i += 1) {
|
|
@@ -1764,10 +2416,10 @@
|
|
|
1764
2416
|
attr(div0, "class", div0_class_value);
|
|
1765
2417
|
}
|
|
1766
2418
|
if (dirty & /*selectedOption, Object, options, isFinished, isResultCorrect, handleOptionClick*/
|
|
1767
|
-
|
|
2419
|
+
782) {
|
|
1768
2420
|
each_value = ensure_array_like(Object.values(
|
|
1769
2421
|
/*options*/
|
|
1770
|
-
ctx2[
|
|
2422
|
+
ctx2[8]
|
|
1771
2423
|
));
|
|
1772
2424
|
let i;
|
|
1773
2425
|
for (i = 0; i < each_value.length; i += 1) {
|
|
@@ -1812,7 +2464,7 @@
|
|
|
1812
2464
|
}
|
|
1813
2465
|
};
|
|
1814
2466
|
}
|
|
1815
|
-
function
|
|
2467
|
+
function create_if_block_42(ctx) {
|
|
1816
2468
|
let p;
|
|
1817
2469
|
return {
|
|
1818
2470
|
c() {
|
|
@@ -1830,13 +2482,13 @@
|
|
|
1830
2482
|
}
|
|
1831
2483
|
};
|
|
1832
2484
|
}
|
|
1833
|
-
function
|
|
2485
|
+
function create_if_block_23(ctx) {
|
|
1834
2486
|
let span;
|
|
1835
2487
|
let current_block_type_index;
|
|
1836
2488
|
let if_block;
|
|
1837
2489
|
let span_class_value;
|
|
1838
2490
|
let current;
|
|
1839
|
-
const if_block_creators = [
|
|
2491
|
+
const if_block_creators = [create_if_block_32, create_else_block];
|
|
1840
2492
|
const if_blocks = [];
|
|
1841
2493
|
function select_block_type(ctx2, dirty) {
|
|
1842
2494
|
if (
|
|
@@ -1930,7 +2582,7 @@
|
|
|
1930
2582
|
}
|
|
1931
2583
|
};
|
|
1932
2584
|
}
|
|
1933
|
-
function
|
|
2585
|
+
function create_if_block_32(ctx) {
|
|
1934
2586
|
let successsolid;
|
|
1935
2587
|
let current;
|
|
1936
2588
|
successsolid = new SuccessSolid_default({});
|
|
@@ -1965,7 +2617,7 @@
|
|
|
1965
2617
|
let t2;
|
|
1966
2618
|
let t3_value = (
|
|
1967
2619
|
/*option*/
|
|
1968
|
-
ctx[
|
|
2620
|
+
ctx[18].answer + ""
|
|
1969
2621
|
);
|
|
1970
2622
|
let t3;
|
|
1971
2623
|
let t4;
|
|
@@ -1979,20 +2631,20 @@
|
|
|
1979
2631
|
/*isFinished*/
|
|
1980
2632
|
ctx[1] && /*selectedOption*/
|
|
1981
2633
|
ctx[3] === /*option*/
|
|
1982
|
-
ctx[
|
|
2634
|
+
ctx[18].id && create_if_block_42(ctx)
|
|
1983
2635
|
);
|
|
1984
2636
|
let if_block1 = (
|
|
1985
2637
|
/*selectedOption*/
|
|
1986
2638
|
ctx[3] === /*option*/
|
|
1987
|
-
ctx[
|
|
1988
|
-
ctx[1] &&
|
|
2639
|
+
ctx[18].id && /*isFinished*/
|
|
2640
|
+
ctx[1] && create_if_block_23(ctx)
|
|
1989
2641
|
);
|
|
1990
2642
|
function click_handler() {
|
|
1991
2643
|
return (
|
|
1992
2644
|
/*click_handler*/
|
|
1993
|
-
ctx[
|
|
2645
|
+
ctx[12](
|
|
1994
2646
|
/*option*/
|
|
1995
|
-
ctx[
|
|
2647
|
+
ctx[18]
|
|
1996
2648
|
)
|
|
1997
2649
|
);
|
|
1998
2650
|
}
|
|
@@ -2006,7 +2658,7 @@
|
|
|
2006
2658
|
span0 = element("span");
|
|
2007
2659
|
span0.textContent = `${useMCQ_default(
|
|
2008
2660
|
/*index*/
|
|
2009
|
-
ctx[
|
|
2661
|
+
ctx[20]
|
|
2010
2662
|
)}`;
|
|
2011
2663
|
t2 = space();
|
|
2012
2664
|
t3 = text(t3_value);
|
|
@@ -2018,23 +2670,23 @@
|
|
|
2018
2670
|
attr(span1, "class", "grow flex items-center");
|
|
2019
2671
|
attr(button, "aria-label", button_aria_label_value = `${/*selectedOption*/
|
|
2020
2672
|
ctx[3] === /*option*/
|
|
2021
|
-
ctx[
|
|
2673
|
+
ctx[18].id ? `Selected option ${useMCQ_default(
|
|
2022
2674
|
/*index*/
|
|
2023
|
-
ctx[
|
|
2675
|
+
ctx[20]
|
|
2024
2676
|
)}` : `Option ${useMCQ_default(
|
|
2025
2677
|
/*index*/
|
|
2026
|
-
ctx[
|
|
2678
|
+
ctx[20]
|
|
2027
2679
|
)}`}: ${/*option*/
|
|
2028
|
-
ctx[
|
|
2680
|
+
ctx[18].answer} ${!/*isFinished*/
|
|
2029
2681
|
ctx[1] || /*selectedOption*/
|
|
2030
2682
|
ctx[3] !== /*option*/
|
|
2031
|
-
ctx[
|
|
2683
|
+
ctx[18].id ? "" : (
|
|
2032
2684
|
/*isResultCorrect*/
|
|
2033
2685
|
ctx[2] ? "(Correct answer)" : "(Incorrect answer)"
|
|
2034
2686
|
)}`);
|
|
2035
2687
|
attr(button, "class", button_class_value = "btn-mcq-option group text-left " + /*selectedOption*/
|
|
2036
2688
|
(ctx[3] === /*option*/
|
|
2037
|
-
ctx[
|
|
2689
|
+
ctx[18].id ? "selected" : "") + " " + (!/*isFinished*/
|
|
2038
2690
|
ctx[1] ? "" : (
|
|
2039
2691
|
/*isResultCorrect*/
|
|
2040
2692
|
ctx[2] ? "correct" : "incorrect"
|
|
@@ -2065,11 +2717,11 @@
|
|
|
2065
2717
|
/*isFinished*/
|
|
2066
2718
|
ctx[1] && /*selectedOption*/
|
|
2067
2719
|
ctx[3] === /*option*/
|
|
2068
|
-
ctx[
|
|
2720
|
+
ctx[18].id
|
|
2069
2721
|
) {
|
|
2070
2722
|
if (if_block0) {
|
|
2071
2723
|
} else {
|
|
2072
|
-
if_block0 =
|
|
2724
|
+
if_block0 = create_if_block_42(ctx);
|
|
2073
2725
|
if_block0.c();
|
|
2074
2726
|
if_block0.m(t0.parentNode, t0);
|
|
2075
2727
|
}
|
|
@@ -2080,7 +2732,7 @@
|
|
|
2080
2732
|
if (
|
|
2081
2733
|
/*selectedOption*/
|
|
2082
2734
|
ctx[3] === /*option*/
|
|
2083
|
-
ctx[
|
|
2735
|
+
ctx[18].id && /*isFinished*/
|
|
2084
2736
|
ctx[1]
|
|
2085
2737
|
) {
|
|
2086
2738
|
if (if_block1) {
|
|
@@ -2090,7 +2742,7 @@
|
|
|
2090
2742
|
transition_in(if_block1, 1);
|
|
2091
2743
|
}
|
|
2092
2744
|
} else {
|
|
2093
|
-
if_block1 =
|
|
2745
|
+
if_block1 = create_if_block_23(ctx);
|
|
2094
2746
|
if_block1.c();
|
|
2095
2747
|
transition_in(if_block1, 1);
|
|
2096
2748
|
if_block1.m(button, t5);
|
|
@@ -2105,17 +2757,17 @@
|
|
|
2105
2757
|
if (!current || dirty & /*selectedOption, isFinished, isResultCorrect*/
|
|
2106
2758
|
14 && button_aria_label_value !== (button_aria_label_value = `${/*selectedOption*/
|
|
2107
2759
|
ctx[3] === /*option*/
|
|
2108
|
-
ctx[
|
|
2760
|
+
ctx[18].id ? `Selected option ${useMCQ_default(
|
|
2109
2761
|
/*index*/
|
|
2110
|
-
ctx[
|
|
2762
|
+
ctx[20]
|
|
2111
2763
|
)}` : `Option ${useMCQ_default(
|
|
2112
2764
|
/*index*/
|
|
2113
|
-
ctx[
|
|
2765
|
+
ctx[20]
|
|
2114
2766
|
)}`}: ${/*option*/
|
|
2115
|
-
ctx[
|
|
2767
|
+
ctx[18].answer} ${!/*isFinished*/
|
|
2116
2768
|
ctx[1] || /*selectedOption*/
|
|
2117
2769
|
ctx[3] !== /*option*/
|
|
2118
|
-
ctx[
|
|
2770
|
+
ctx[18].id ? "" : (
|
|
2119
2771
|
/*isResultCorrect*/
|
|
2120
2772
|
ctx[2] ? "(Correct answer)" : "(Incorrect answer)"
|
|
2121
2773
|
)}`)) {
|
|
@@ -2124,7 +2776,7 @@
|
|
|
2124
2776
|
if (!current || dirty & /*selectedOption, isFinished, isResultCorrect*/
|
|
2125
2777
|
14 && button_class_value !== (button_class_value = "btn-mcq-option group text-left " + /*selectedOption*/
|
|
2126
2778
|
(ctx[3] === /*option*/
|
|
2127
|
-
ctx[
|
|
2779
|
+
ctx[18].id ? "selected" : "") + " " + (!/*isFinished*/
|
|
2128
2780
|
ctx[1] ? "" : (
|
|
2129
2781
|
/*isResultCorrect*/
|
|
2130
2782
|
ctx[2] ? "correct" : "incorrect"
|
|
@@ -2161,7 +2813,7 @@
|
|
|
2161
2813
|
let current;
|
|
2162
2814
|
let if_block = (
|
|
2163
2815
|
/*options*/
|
|
2164
|
-
ctx[
|
|
2816
|
+
ctx[8] && create_if_block_14(ctx)
|
|
2165
2817
|
);
|
|
2166
2818
|
return {
|
|
2167
2819
|
c() {
|
|
@@ -2178,7 +2830,7 @@
|
|
|
2178
2830
|
p(ctx2, dirty) {
|
|
2179
2831
|
if (
|
|
2180
2832
|
/*options*/
|
|
2181
|
-
ctx2[
|
|
2833
|
+
ctx2[8]
|
|
2182
2834
|
)
|
|
2183
2835
|
if_block.p(ctx2, dirty);
|
|
2184
2836
|
},
|
|
@@ -2201,7 +2853,7 @@
|
|
|
2201
2853
|
}
|
|
2202
2854
|
};
|
|
2203
2855
|
}
|
|
2204
|
-
function
|
|
2856
|
+
function create_if_block4(ctx) {
|
|
2205
2857
|
let promptresult;
|
|
2206
2858
|
let current;
|
|
2207
2859
|
promptresult = new PromptResultFeedback_default({
|
|
@@ -2251,7 +2903,7 @@
|
|
|
2251
2903
|
}
|
|
2252
2904
|
};
|
|
2253
2905
|
}
|
|
2254
|
-
function
|
|
2906
|
+
function create_fragment6(ctx) {
|
|
2255
2907
|
let promptbody;
|
|
2256
2908
|
let t2;
|
|
2257
2909
|
let if_block_anchor;
|
|
@@ -2264,6 +2916,11 @@
|
|
|
2264
2916
|
),
|
|
2265
2917
|
prompt: (
|
|
2266
2918
|
/*prompt*/
|
|
2919
|
+
ctx[7]
|
|
2920
|
+
),
|
|
2921
|
+
interactionType: INTERACTION_TYPE_MCQ,
|
|
2922
|
+
stimulus: (
|
|
2923
|
+
/*stimulus*/
|
|
2267
2924
|
ctx[6]
|
|
2268
2925
|
),
|
|
2269
2926
|
$$slots: { default: [create_default_slot] },
|
|
@@ -2272,7 +2929,7 @@
|
|
|
2272
2929
|
});
|
|
2273
2930
|
let if_block = (
|
|
2274
2931
|
/*isFinished*/
|
|
2275
|
-
ctx[1] &&
|
|
2932
|
+
ctx[1] && create_if_block4(ctx)
|
|
2276
2933
|
);
|
|
2277
2934
|
return {
|
|
2278
2935
|
c() {
|
|
@@ -2293,7 +2950,7 @@
|
|
|
2293
2950
|
p(ctx2, [dirty]) {
|
|
2294
2951
|
const promptbody_changes = {};
|
|
2295
2952
|
if (dirty & /*$$scope, selectedOption, isFinished, isResultCorrect, isDataSaving*/
|
|
2296
|
-
|
|
2953
|
+
2097167) {
|
|
2297
2954
|
promptbody_changes.$$scope = { dirty, ctx: ctx2 };
|
|
2298
2955
|
}
|
|
2299
2956
|
promptbody.$set(promptbody_changes);
|
|
@@ -2308,7 +2965,7 @@
|
|
|
2308
2965
|
transition_in(if_block, 1);
|
|
2309
2966
|
}
|
|
2310
2967
|
} else {
|
|
2311
|
-
if_block =
|
|
2968
|
+
if_block = create_if_block4(ctx2);
|
|
2312
2969
|
if_block.c();
|
|
2313
2970
|
transition_in(if_block, 1);
|
|
2314
2971
|
if_block.m(if_block_anchor.parentNode, if_block_anchor);
|
|
@@ -2344,13 +3001,13 @@
|
|
|
2344
3001
|
}
|
|
2345
3002
|
};
|
|
2346
3003
|
}
|
|
2347
|
-
function
|
|
3004
|
+
function instance4($$self, $$props, $$invalidate) {
|
|
2348
3005
|
let { sessionData } = $$props;
|
|
2349
3006
|
let { isDataSaving } = $$props;
|
|
2350
3007
|
let { isFinished = false } = $$props;
|
|
2351
3008
|
let { isResultCorrect = false } = $$props;
|
|
2352
3009
|
let { isPreviewModeInteractive = false } = $$props;
|
|
2353
|
-
const { rubric, interaction, metadata, scoringMetadata } = sessionData;
|
|
3010
|
+
const { rubric, interaction, metadata, scoringMetadata, stimulus } = sessionData;
|
|
2354
3011
|
const { prompt, options } = interaction;
|
|
2355
3012
|
let selectedOption = null;
|
|
2356
3013
|
let resultFeedback = null;
|
|
@@ -2393,7 +3050,7 @@
|
|
|
2393
3050
|
const click_handler = (option) => handleOptionClick(option.id, option.answer);
|
|
2394
3051
|
$$self.$$set = ($$props2) => {
|
|
2395
3052
|
if ("sessionData" in $$props2)
|
|
2396
|
-
$$invalidate(
|
|
3053
|
+
$$invalidate(10, sessionData = $$props2.sessionData);
|
|
2397
3054
|
if ("isDataSaving" in $$props2)
|
|
2398
3055
|
$$invalidate(0, isDataSaving = $$props2.isDataSaving);
|
|
2399
3056
|
if ("isFinished" in $$props2)
|
|
@@ -2401,7 +3058,7 @@
|
|
|
2401
3058
|
if ("isResultCorrect" in $$props2)
|
|
2402
3059
|
$$invalidate(2, isResultCorrect = $$props2.isResultCorrect);
|
|
2403
3060
|
if ("isPreviewModeInteractive" in $$props2)
|
|
2404
|
-
$$invalidate(
|
|
3061
|
+
$$invalidate(11, isPreviewModeInteractive = $$props2.isPreviewModeInteractive);
|
|
2405
3062
|
};
|
|
2406
3063
|
return [
|
|
2407
3064
|
isDataSaving,
|
|
@@ -2410,6 +3067,7 @@
|
|
|
2410
3067
|
selectedOption,
|
|
2411
3068
|
resultFeedback,
|
|
2412
3069
|
rubric,
|
|
3070
|
+
stimulus,
|
|
2413
3071
|
prompt,
|
|
2414
3072
|
options,
|
|
2415
3073
|
handleOptionClick,
|
|
@@ -2421,16 +3079,16 @@
|
|
|
2421
3079
|
var PromptMCQ = class extends SvelteComponent {
|
|
2422
3080
|
constructor(options) {
|
|
2423
3081
|
super();
|
|
2424
|
-
init(this, options,
|
|
2425
|
-
sessionData:
|
|
3082
|
+
init(this, options, instance4, create_fragment6, safe_not_equal, {
|
|
3083
|
+
sessionData: 10,
|
|
2426
3084
|
isDataSaving: 0,
|
|
2427
3085
|
isFinished: 1,
|
|
2428
3086
|
isResultCorrect: 2,
|
|
2429
|
-
isPreviewModeInteractive:
|
|
3087
|
+
isPreviewModeInteractive: 11
|
|
2430
3088
|
});
|
|
2431
3089
|
}
|
|
2432
3090
|
get sessionData() {
|
|
2433
|
-
return this.$$.ctx[
|
|
3091
|
+
return this.$$.ctx[10];
|
|
2434
3092
|
}
|
|
2435
3093
|
set sessionData(sessionData) {
|
|
2436
3094
|
this.$$set({ sessionData });
|
|
@@ -2458,7 +3116,7 @@
|
|
|
2458
3116
|
flush();
|
|
2459
3117
|
}
|
|
2460
3118
|
get isPreviewModeInteractive() {
|
|
2461
|
-
return this.$$.ctx[
|
|
3119
|
+
return this.$$.ctx[11];
|
|
2462
3120
|
}
|
|
2463
3121
|
set isPreviewModeInteractive(isPreviewModeInteractive) {
|
|
2464
3122
|
this.$$set({ isPreviewModeInteractive });
|
|
@@ -2540,18 +3198,6 @@
|
|
|
2540
3198
|
action.destroy = autosize_esm_default.destroy;
|
|
2541
3199
|
var svelte_autosize_default = action;
|
|
2542
3200
|
|
|
2543
|
-
// src/lib/constants/index.ts
|
|
2544
|
-
var INTERACTION_TYPE_MCQ = "multipleChoiceInteraction";
|
|
2545
|
-
var INTERACTION_TYPE_TYPEIN = "typeInInteraction";
|
|
2546
|
-
var INTERACTION_TYPE_CATEGORISE = "categoriseInteraction";
|
|
2547
|
-
var TYPEIN_TYPE_SHORT = "Short-Text";
|
|
2548
|
-
var CONTAINER_WORD_BIN_ID = "container-word-bin";
|
|
2549
|
-
var SCREEN_MD = 732;
|
|
2550
|
-
var EAT_DASH = "@eat-dash@";
|
|
2551
|
-
var ANSWER_CORRECT = "correct";
|
|
2552
|
-
var ANSWER_INCORRECT = "incorrect";
|
|
2553
|
-
var ANSWER_MISSED = "missed";
|
|
2554
|
-
|
|
2555
3201
|
// src/lib/components/prompt/typein/PromptTypeIn.svelte
|
|
2556
3202
|
function create_else_block_1(ctx) {
|
|
2557
3203
|
let textarea;
|
|
@@ -2585,7 +3231,7 @@
|
|
|
2585
3231
|
ctx[0];
|
|
2586
3232
|
attr(textarea, "autocomplete", "off");
|
|
2587
3233
|
textarea.readOnly = /*isReadonlyText*/
|
|
2588
|
-
ctx[
|
|
3234
|
+
ctx[12];
|
|
2589
3235
|
},
|
|
2590
3236
|
m(target, anchor) {
|
|
2591
3237
|
insert(target, textarea, anchor);
|
|
@@ -2600,38 +3246,38 @@
|
|
|
2600
3246
|
textarea,
|
|
2601
3247
|
"input",
|
|
2602
3248
|
/*textarea_input_handler*/
|
|
2603
|
-
ctx[
|
|
3249
|
+
ctx[23]
|
|
2604
3250
|
),
|
|
2605
3251
|
listen(
|
|
2606
3252
|
textarea,
|
|
2607
3253
|
"mousedown",
|
|
2608
3254
|
/*mousedown_handler*/
|
|
2609
|
-
ctx[
|
|
3255
|
+
ctx[24]
|
|
2610
3256
|
),
|
|
2611
3257
|
listen(
|
|
2612
3258
|
textarea,
|
|
2613
3259
|
"touchstart",
|
|
2614
3260
|
/*touchstart_handler*/
|
|
2615
|
-
ctx[
|
|
3261
|
+
ctx[25],
|
|
2616
3262
|
{ passive: true }
|
|
2617
3263
|
),
|
|
2618
3264
|
listen(
|
|
2619
3265
|
textarea,
|
|
2620
3266
|
"focus",
|
|
2621
3267
|
/*focus_handler*/
|
|
2622
|
-
ctx[
|
|
3268
|
+
ctx[26]
|
|
2623
3269
|
),
|
|
2624
3270
|
listen(
|
|
2625
3271
|
textarea,
|
|
2626
3272
|
"focusout",
|
|
2627
3273
|
/*focusout_handler_1*/
|
|
2628
|
-
ctx[
|
|
3274
|
+
ctx[27]
|
|
2629
3275
|
),
|
|
2630
3276
|
listen(
|
|
2631
3277
|
textarea,
|
|
2632
3278
|
"keydown",
|
|
2633
3279
|
/*keydown_handler_1*/
|
|
2634
|
-
ctx[
|
|
3280
|
+
ctx[28]
|
|
2635
3281
|
),
|
|
2636
3282
|
action_destroyer(autosize_action = svelte_autosize_default.call(null, textarea))
|
|
2637
3283
|
];
|
|
@@ -2688,7 +3334,7 @@
|
|
|
2688
3334
|
}
|
|
2689
3335
|
};
|
|
2690
3336
|
}
|
|
2691
|
-
function
|
|
3337
|
+
function create_if_block_24(ctx) {
|
|
2692
3338
|
let input;
|
|
2693
3339
|
let input_class_value;
|
|
2694
3340
|
let mounted;
|
|
@@ -2719,7 +3365,7 @@
|
|
|
2719
3365
|
ctx[0];
|
|
2720
3366
|
attr(input, "autocomplete", "off");
|
|
2721
3367
|
input.readOnly = /*isReadonlyText*/
|
|
2722
|
-
ctx[
|
|
3368
|
+
ctx[12];
|
|
2723
3369
|
},
|
|
2724
3370
|
m(target, anchor) {
|
|
2725
3371
|
insert(target, input, anchor);
|
|
@@ -2734,19 +3380,19 @@
|
|
|
2734
3380
|
input,
|
|
2735
3381
|
"input",
|
|
2736
3382
|
/*input_input_handler*/
|
|
2737
|
-
ctx[
|
|
3383
|
+
ctx[20]
|
|
2738
3384
|
),
|
|
2739
3385
|
listen(
|
|
2740
3386
|
input,
|
|
2741
3387
|
"focusout",
|
|
2742
3388
|
/*focusout_handler*/
|
|
2743
|
-
ctx[
|
|
3389
|
+
ctx[21]
|
|
2744
3390
|
),
|
|
2745
3391
|
listen(
|
|
2746
3392
|
input,
|
|
2747
3393
|
"keydown",
|
|
2748
3394
|
/*keydown_handler*/
|
|
2749
|
-
ctx[
|
|
3395
|
+
ctx[22]
|
|
2750
3396
|
)
|
|
2751
3397
|
];
|
|
2752
3398
|
mounted = true;
|
|
@@ -2803,39 +3449,7 @@
|
|
|
2803
3449
|
}
|
|
2804
3450
|
};
|
|
2805
3451
|
}
|
|
2806
|
-
function
|
|
2807
|
-
let if_block_anchor;
|
|
2808
|
-
function select_block_type(ctx2, dirty) {
|
|
2809
|
-
if (
|
|
2810
|
-
/*typeinType*/
|
|
2811
|
-
ctx2[10] === TYPEIN_TYPE_SHORT
|
|
2812
|
-
)
|
|
2813
|
-
return create_if_block_22;
|
|
2814
|
-
return create_else_block_1;
|
|
2815
|
-
}
|
|
2816
|
-
let current_block_type = select_block_type(ctx, [-1, -1]);
|
|
2817
|
-
let if_block = current_block_type(ctx);
|
|
2818
|
-
return {
|
|
2819
|
-
c() {
|
|
2820
|
-
if_block.c();
|
|
2821
|
-
if_block_anchor = empty();
|
|
2822
|
-
},
|
|
2823
|
-
m(target, anchor) {
|
|
2824
|
-
if_block.m(target, anchor);
|
|
2825
|
-
insert(target, if_block_anchor, anchor);
|
|
2826
|
-
},
|
|
2827
|
-
p(ctx2, dirty) {
|
|
2828
|
-
if_block.p(ctx2, dirty);
|
|
2829
|
-
},
|
|
2830
|
-
d(detaching) {
|
|
2831
|
-
if (detaching) {
|
|
2832
|
-
detach(if_block_anchor);
|
|
2833
|
-
}
|
|
2834
|
-
if_block.d(detaching);
|
|
2835
|
-
}
|
|
2836
|
-
};
|
|
2837
|
-
}
|
|
2838
|
-
function create_if_block4(ctx) {
|
|
3452
|
+
function create_if_block5(ctx) {
|
|
2839
3453
|
let div;
|
|
2840
3454
|
let span0;
|
|
2841
3455
|
let current_block_type_index;
|
|
@@ -2848,7 +3462,7 @@
|
|
|
2848
3462
|
let t2;
|
|
2849
3463
|
let promptresult;
|
|
2850
3464
|
let current;
|
|
2851
|
-
const if_block_creators = [
|
|
3465
|
+
const if_block_creators = [create_if_block_15, create_else_block2];
|
|
2852
3466
|
const if_blocks = [];
|
|
2853
3467
|
function select_block_type_1(ctx2, dirty) {
|
|
2854
3468
|
if (
|
|
@@ -2890,7 +3504,7 @@
|
|
|
2890
3504
|
attr(span1, "class", "p2");
|
|
2891
3505
|
attr(div, "aria-hidden", "true");
|
|
2892
3506
|
attr(div, "class", div_class_value = "flex items-center text-charcoal " + /*typeinType*/
|
|
2893
|
-
(ctx[
|
|
3507
|
+
(ctx[11] === TYPEIN_TYPE_SHORT ? "mt-2" : "mt-0.5"));
|
|
2894
3508
|
},
|
|
2895
3509
|
m(target, anchor) {
|
|
2896
3510
|
insert(target, div, anchor);
|
|
@@ -2993,7 +3607,7 @@
|
|
|
2993
3607
|
}
|
|
2994
3608
|
};
|
|
2995
3609
|
}
|
|
2996
|
-
function
|
|
3610
|
+
function create_if_block_15(ctx) {
|
|
2997
3611
|
let successsolid;
|
|
2998
3612
|
let current;
|
|
2999
3613
|
successsolid = new SuccessSolid_default({});
|
|
@@ -3020,10 +3634,89 @@
|
|
|
3020
3634
|
}
|
|
3021
3635
|
};
|
|
3022
3636
|
}
|
|
3023
|
-
function
|
|
3024
|
-
let promptbody;
|
|
3637
|
+
function create_default_slot2(ctx) {
|
|
3025
3638
|
let t2;
|
|
3026
|
-
let
|
|
3639
|
+
let if_block1_anchor;
|
|
3640
|
+
let current;
|
|
3641
|
+
function select_block_type(ctx2, dirty) {
|
|
3642
|
+
if (
|
|
3643
|
+
/*typeinType*/
|
|
3644
|
+
ctx2[11] === TYPEIN_TYPE_SHORT
|
|
3645
|
+
)
|
|
3646
|
+
return create_if_block_24;
|
|
3647
|
+
return create_else_block_1;
|
|
3648
|
+
}
|
|
3649
|
+
let current_block_type = select_block_type(ctx, [-1, -1]);
|
|
3650
|
+
let if_block0 = current_block_type(ctx);
|
|
3651
|
+
let if_block1 = (
|
|
3652
|
+
/*isFinished*/
|
|
3653
|
+
ctx[1] && create_if_block5(ctx)
|
|
3654
|
+
);
|
|
3655
|
+
return {
|
|
3656
|
+
c() {
|
|
3657
|
+
if_block0.c();
|
|
3658
|
+
t2 = space();
|
|
3659
|
+
if (if_block1)
|
|
3660
|
+
if_block1.c();
|
|
3661
|
+
if_block1_anchor = empty();
|
|
3662
|
+
},
|
|
3663
|
+
m(target, anchor) {
|
|
3664
|
+
if_block0.m(target, anchor);
|
|
3665
|
+
insert(target, t2, anchor);
|
|
3666
|
+
if (if_block1)
|
|
3667
|
+
if_block1.m(target, anchor);
|
|
3668
|
+
insert(target, if_block1_anchor, anchor);
|
|
3669
|
+
current = true;
|
|
3670
|
+
},
|
|
3671
|
+
p(ctx2, dirty) {
|
|
3672
|
+
if_block0.p(ctx2, dirty);
|
|
3673
|
+
if (
|
|
3674
|
+
/*isFinished*/
|
|
3675
|
+
ctx2[1]
|
|
3676
|
+
) {
|
|
3677
|
+
if (if_block1) {
|
|
3678
|
+
if_block1.p(ctx2, dirty);
|
|
3679
|
+
if (dirty[0] & /*isFinished*/
|
|
3680
|
+
2) {
|
|
3681
|
+
transition_in(if_block1, 1);
|
|
3682
|
+
}
|
|
3683
|
+
} else {
|
|
3684
|
+
if_block1 = create_if_block5(ctx2);
|
|
3685
|
+
if_block1.c();
|
|
3686
|
+
transition_in(if_block1, 1);
|
|
3687
|
+
if_block1.m(if_block1_anchor.parentNode, if_block1_anchor);
|
|
3688
|
+
}
|
|
3689
|
+
} else if (if_block1) {
|
|
3690
|
+
group_outros();
|
|
3691
|
+
transition_out(if_block1, 1, 1, () => {
|
|
3692
|
+
if_block1 = null;
|
|
3693
|
+
});
|
|
3694
|
+
check_outros();
|
|
3695
|
+
}
|
|
3696
|
+
},
|
|
3697
|
+
i(local) {
|
|
3698
|
+
if (current)
|
|
3699
|
+
return;
|
|
3700
|
+
transition_in(if_block1);
|
|
3701
|
+
current = true;
|
|
3702
|
+
},
|
|
3703
|
+
o(local) {
|
|
3704
|
+
transition_out(if_block1);
|
|
3705
|
+
current = false;
|
|
3706
|
+
},
|
|
3707
|
+
d(detaching) {
|
|
3708
|
+
if (detaching) {
|
|
3709
|
+
detach(t2);
|
|
3710
|
+
detach(if_block1_anchor);
|
|
3711
|
+
}
|
|
3712
|
+
if_block0.d(detaching);
|
|
3713
|
+
if (if_block1)
|
|
3714
|
+
if_block1.d(detaching);
|
|
3715
|
+
}
|
|
3716
|
+
};
|
|
3717
|
+
}
|
|
3718
|
+
function create_fragment7(ctx) {
|
|
3719
|
+
let promptbody;
|
|
3027
3720
|
let current;
|
|
3028
3721
|
promptbody = new PromptBody_default({
|
|
3029
3722
|
props: {
|
|
@@ -3033,89 +3726,51 @@
|
|
|
3033
3726
|
),
|
|
3034
3727
|
prompt: (
|
|
3035
3728
|
/*prompt*/
|
|
3729
|
+
ctx[10]
|
|
3730
|
+
),
|
|
3731
|
+
interactionType: INTERACTION_TYPE_TYPEIN,
|
|
3732
|
+
stimulus: (
|
|
3733
|
+
/*stimulus*/
|
|
3036
3734
|
ctx[9]
|
|
3037
3735
|
),
|
|
3038
3736
|
$$slots: { default: [create_default_slot2] },
|
|
3039
3737
|
$$scope: { ctx }
|
|
3040
3738
|
}
|
|
3041
3739
|
});
|
|
3042
|
-
let if_block = (
|
|
3043
|
-
/*isFinished*/
|
|
3044
|
-
ctx[1] && create_if_block4(ctx)
|
|
3045
|
-
);
|
|
3046
3740
|
return {
|
|
3047
3741
|
c() {
|
|
3048
3742
|
create_component(promptbody.$$.fragment);
|
|
3049
|
-
t2 = space();
|
|
3050
|
-
if (if_block)
|
|
3051
|
-
if_block.c();
|
|
3052
|
-
if_block_anchor = empty();
|
|
3053
3743
|
},
|
|
3054
3744
|
m(target, anchor) {
|
|
3055
3745
|
mount_component(promptbody, target, anchor);
|
|
3056
|
-
insert(target, t2, anchor);
|
|
3057
|
-
if (if_block)
|
|
3058
|
-
if_block.m(target, anchor);
|
|
3059
|
-
insert(target, if_block_anchor, anchor);
|
|
3060
3746
|
current = true;
|
|
3061
3747
|
},
|
|
3062
3748
|
p(ctx2, dirty) {
|
|
3063
3749
|
const promptbody_changes = {};
|
|
3064
|
-
if (dirty[0] & /*
|
|
3065
|
-
|
|
3066
|
-
|
|
3750
|
+
if (dirty[0] & /*isResultCorrect, resultFeedback, resultLabel, isFinished, textAriaLabel, placeholder, isDataSaving, typeinAnswer*/
|
|
3751
|
+
255 | dirty[1] & /*$$scope*/
|
|
3752
|
+
64) {
|
|
3067
3753
|
promptbody_changes.$$scope = { dirty, ctx: ctx2 };
|
|
3068
3754
|
}
|
|
3069
3755
|
promptbody.$set(promptbody_changes);
|
|
3070
|
-
if (
|
|
3071
|
-
/*isFinished*/
|
|
3072
|
-
ctx2[1]
|
|
3073
|
-
) {
|
|
3074
|
-
if (if_block) {
|
|
3075
|
-
if_block.p(ctx2, dirty);
|
|
3076
|
-
if (dirty[0] & /*isFinished*/
|
|
3077
|
-
2) {
|
|
3078
|
-
transition_in(if_block, 1);
|
|
3079
|
-
}
|
|
3080
|
-
} else {
|
|
3081
|
-
if_block = create_if_block4(ctx2);
|
|
3082
|
-
if_block.c();
|
|
3083
|
-
transition_in(if_block, 1);
|
|
3084
|
-
if_block.m(if_block_anchor.parentNode, if_block_anchor);
|
|
3085
|
-
}
|
|
3086
|
-
} else if (if_block) {
|
|
3087
|
-
group_outros();
|
|
3088
|
-
transition_out(if_block, 1, 1, () => {
|
|
3089
|
-
if_block = null;
|
|
3090
|
-
});
|
|
3091
|
-
check_outros();
|
|
3092
|
-
}
|
|
3093
3756
|
},
|
|
3094
3757
|
i(local) {
|
|
3095
3758
|
if (current)
|
|
3096
3759
|
return;
|
|
3097
3760
|
transition_in(promptbody.$$.fragment, local);
|
|
3098
|
-
transition_in(if_block);
|
|
3099
3761
|
current = true;
|
|
3100
3762
|
},
|
|
3101
3763
|
o(local) {
|
|
3102
3764
|
transition_out(promptbody.$$.fragment, local);
|
|
3103
|
-
transition_out(if_block);
|
|
3104
3765
|
current = false;
|
|
3105
3766
|
},
|
|
3106
3767
|
d(detaching) {
|
|
3107
|
-
if (detaching) {
|
|
3108
|
-
detach(t2);
|
|
3109
|
-
detach(if_block_anchor);
|
|
3110
|
-
}
|
|
3111
3768
|
destroy_component(promptbody, detaching);
|
|
3112
|
-
if (if_block)
|
|
3113
|
-
if_block.d(detaching);
|
|
3114
3769
|
}
|
|
3115
3770
|
};
|
|
3116
3771
|
}
|
|
3117
3772
|
var idLabel = "answerText";
|
|
3118
|
-
function
|
|
3773
|
+
function instance5($$self, $$props, $$invalidate) {
|
|
3119
3774
|
let { sessionData } = $$props;
|
|
3120
3775
|
let { isDataSaving } = $$props;
|
|
3121
3776
|
let { isFinished = false } = $$props;
|
|
@@ -3129,7 +3784,7 @@
|
|
|
3129
3784
|
let placeholder = "Type your answer here";
|
|
3130
3785
|
let focusOrigin = "tab";
|
|
3131
3786
|
let resultLabel = "";
|
|
3132
|
-
const { rubric, interaction, metadata, scoringMetadata } = sessionData;
|
|
3787
|
+
const { rubric, interaction, metadata, scoringMetadata, stimulus } = sessionData;
|
|
3133
3788
|
const { prompt, typein_type: typeinType } = interaction;
|
|
3134
3789
|
if (metadata) {
|
|
3135
3790
|
const events = metadata.interactions.events.pop();
|
|
@@ -3206,7 +3861,7 @@
|
|
|
3206
3861
|
const keydown_handler_1 = (event) => saveOnEnter(event);
|
|
3207
3862
|
$$self.$$set = ($$props2) => {
|
|
3208
3863
|
if ("sessionData" in $$props2)
|
|
3209
|
-
$$invalidate(
|
|
3864
|
+
$$invalidate(17, sessionData = $$props2.sessionData);
|
|
3210
3865
|
if ("isDataSaving" in $$props2)
|
|
3211
3866
|
$$invalidate(0, isDataSaving = $$props2.isDataSaving);
|
|
3212
3867
|
if ("isFinished" in $$props2)
|
|
@@ -3214,9 +3869,9 @@
|
|
|
3214
3869
|
if ("isResultCorrect" in $$props2)
|
|
3215
3870
|
$$invalidate(2, isResultCorrect = $$props2.isResultCorrect);
|
|
3216
3871
|
if ("isPreviewMode" in $$props2)
|
|
3217
|
-
$$invalidate(
|
|
3872
|
+
$$invalidate(18, isPreviewMode = $$props2.isPreviewMode);
|
|
3218
3873
|
if ("isPreviewModeInteractive" in $$props2)
|
|
3219
|
-
$$invalidate(
|
|
3874
|
+
$$invalidate(19, isPreviewModeInteractive = $$props2.isPreviewModeInteractive);
|
|
3220
3875
|
};
|
|
3221
3876
|
return [
|
|
3222
3877
|
isDataSaving,
|
|
@@ -3228,6 +3883,7 @@
|
|
|
3228
3883
|
resultLabel,
|
|
3229
3884
|
textAriaLabel,
|
|
3230
3885
|
rubric,
|
|
3886
|
+
stimulus,
|
|
3231
3887
|
prompt,
|
|
3232
3888
|
typeinType,
|
|
3233
3889
|
isReadonlyText,
|
|
@@ -3255,23 +3911,23 @@
|
|
|
3255
3911
|
init(
|
|
3256
3912
|
this,
|
|
3257
3913
|
options,
|
|
3258
|
-
|
|
3259
|
-
|
|
3914
|
+
instance5,
|
|
3915
|
+
create_fragment7,
|
|
3260
3916
|
safe_not_equal,
|
|
3261
3917
|
{
|
|
3262
|
-
sessionData:
|
|
3918
|
+
sessionData: 17,
|
|
3263
3919
|
isDataSaving: 0,
|
|
3264
3920
|
isFinished: 1,
|
|
3265
3921
|
isResultCorrect: 2,
|
|
3266
|
-
isPreviewMode:
|
|
3267
|
-
isPreviewModeInteractive:
|
|
3922
|
+
isPreviewMode: 18,
|
|
3923
|
+
isPreviewModeInteractive: 19
|
|
3268
3924
|
},
|
|
3269
3925
|
null,
|
|
3270
3926
|
[-1, -1]
|
|
3271
3927
|
);
|
|
3272
3928
|
}
|
|
3273
3929
|
get sessionData() {
|
|
3274
|
-
return this.$$.ctx[
|
|
3930
|
+
return this.$$.ctx[17];
|
|
3275
3931
|
}
|
|
3276
3932
|
set sessionData(sessionData) {
|
|
3277
3933
|
this.$$set({ sessionData });
|
|
@@ -3299,14 +3955,14 @@
|
|
|
3299
3955
|
flush();
|
|
3300
3956
|
}
|
|
3301
3957
|
get isPreviewMode() {
|
|
3302
|
-
return this.$$.ctx[
|
|
3958
|
+
return this.$$.ctx[18];
|
|
3303
3959
|
}
|
|
3304
3960
|
set isPreviewMode(isPreviewMode) {
|
|
3305
3961
|
this.$$set({ isPreviewMode });
|
|
3306
3962
|
flush();
|
|
3307
3963
|
}
|
|
3308
3964
|
get isPreviewModeInteractive() {
|
|
3309
|
-
return this.$$.ctx[
|
|
3965
|
+
return this.$$.ctx[19];
|
|
3310
3966
|
}
|
|
3311
3967
|
set isPreviewModeInteractive(isPreviewModeInteractive) {
|
|
3312
3968
|
this.$$set({ isPreviewModeInteractive });
|
|
@@ -5317,7 +5973,7 @@
|
|
|
5317
5973
|
}
|
|
5318
5974
|
|
|
5319
5975
|
// src/lib/assets/img/product/GripVertical.svelte
|
|
5320
|
-
function
|
|
5976
|
+
function create_fragment8(ctx) {
|
|
5321
5977
|
let svg;
|
|
5322
5978
|
let path;
|
|
5323
5979
|
return {
|
|
@@ -5351,14 +6007,14 @@
|
|
|
5351
6007
|
var GripVertical = class extends SvelteComponent {
|
|
5352
6008
|
constructor(options) {
|
|
5353
6009
|
super();
|
|
5354
|
-
init(this, options, null,
|
|
6010
|
+
init(this, options, null, create_fragment8, safe_not_equal, {});
|
|
5355
6011
|
}
|
|
5356
6012
|
};
|
|
5357
6013
|
create_custom_element(GripVertical, {}, [], [], true);
|
|
5358
6014
|
var GripVertical_default = GripVertical;
|
|
5359
6015
|
|
|
5360
6016
|
// src/lib/assets/img/messaging/Success.svelte
|
|
5361
|
-
function
|
|
6017
|
+
function create_fragment9(ctx) {
|
|
5362
6018
|
let svg;
|
|
5363
6019
|
let path;
|
|
5364
6020
|
return {
|
|
@@ -5392,7 +6048,7 @@
|
|
|
5392
6048
|
var Success = class extends SvelteComponent {
|
|
5393
6049
|
constructor(options) {
|
|
5394
6050
|
super();
|
|
5395
|
-
init(this, options, null,
|
|
6051
|
+
init(this, options, null, create_fragment9, safe_not_equal, {});
|
|
5396
6052
|
}
|
|
5397
6053
|
};
|
|
5398
6054
|
create_custom_element(Success, {}, [], [], true);
|
|
@@ -5426,7 +6082,7 @@
|
|
|
5426
6082
|
}
|
|
5427
6083
|
};
|
|
5428
6084
|
}
|
|
5429
|
-
function
|
|
6085
|
+
function create_if_block_33(ctx) {
|
|
5430
6086
|
let span;
|
|
5431
6087
|
let success;
|
|
5432
6088
|
let current;
|
|
@@ -5460,7 +6116,7 @@
|
|
|
5460
6116
|
}
|
|
5461
6117
|
};
|
|
5462
6118
|
}
|
|
5463
|
-
function
|
|
6119
|
+
function create_if_block_25(ctx) {
|
|
5464
6120
|
let span;
|
|
5465
6121
|
let errorsolid;
|
|
5466
6122
|
let current;
|
|
@@ -5494,7 +6150,7 @@
|
|
|
5494
6150
|
}
|
|
5495
6151
|
};
|
|
5496
6152
|
}
|
|
5497
|
-
function
|
|
6153
|
+
function create_if_block_16(ctx) {
|
|
5498
6154
|
let span;
|
|
5499
6155
|
let successsolid;
|
|
5500
6156
|
let current;
|
|
@@ -5528,7 +6184,7 @@
|
|
|
5528
6184
|
}
|
|
5529
6185
|
};
|
|
5530
6186
|
}
|
|
5531
|
-
function
|
|
6187
|
+
function create_if_block6(ctx) {
|
|
5532
6188
|
let span;
|
|
5533
6189
|
let gripvertical;
|
|
5534
6190
|
let current;
|
|
@@ -5562,7 +6218,7 @@
|
|
|
5562
6218
|
}
|
|
5563
6219
|
};
|
|
5564
6220
|
}
|
|
5565
|
-
function
|
|
6221
|
+
function create_fragment10(ctx) {
|
|
5566
6222
|
let button;
|
|
5567
6223
|
let span0;
|
|
5568
6224
|
let t0;
|
|
@@ -5582,7 +6238,7 @@
|
|
|
5582
6238
|
let current;
|
|
5583
6239
|
let mounted;
|
|
5584
6240
|
let dispose;
|
|
5585
|
-
const if_block_creators = [
|
|
6241
|
+
const if_block_creators = [create_if_block_16, create_if_block_25, create_if_block_33, create_else_block3];
|
|
5586
6242
|
const if_blocks = [];
|
|
5587
6243
|
function select_block_type(ctx2, dirty) {
|
|
5588
6244
|
if (
|
|
@@ -5609,7 +6265,7 @@
|
|
|
5609
6265
|
let if_block1 = (
|
|
5610
6266
|
/*resultType*/
|
|
5611
6267
|
(ctx[0] === ANSWER_CORRECT || /*resultType*/
|
|
5612
|
-
ctx[0] === ANSWER_INCORRECT) &&
|
|
6268
|
+
ctx[0] === ANSWER_INCORRECT) && create_if_block6(ctx)
|
|
5613
6269
|
);
|
|
5614
6270
|
return {
|
|
5615
6271
|
c() {
|
|
@@ -5783,7 +6439,7 @@
|
|
|
5783
6439
|
transition_in(if_block1, 1);
|
|
5784
6440
|
}
|
|
5785
6441
|
} else {
|
|
5786
|
-
if_block1 =
|
|
6442
|
+
if_block1 = create_if_block6(ctx);
|
|
5787
6443
|
if_block1.c();
|
|
5788
6444
|
transition_in(if_block1, 1);
|
|
5789
6445
|
if_block1.m(span2, null);
|
|
@@ -5880,7 +6536,7 @@
|
|
|
5880
6536
|
}
|
|
5881
6537
|
};
|
|
5882
6538
|
}
|
|
5883
|
-
function
|
|
6539
|
+
function instance6($$self, $$props, $$invalidate) {
|
|
5884
6540
|
let { word = "" } = $$props;
|
|
5885
6541
|
let { resultType = "" } = $$props;
|
|
5886
6542
|
let { otherClass = "" } = $$props;
|
|
@@ -6034,7 +6690,7 @@
|
|
|
6034
6690
|
var PromptCategoriseWordButton = class extends SvelteComponent {
|
|
6035
6691
|
constructor(options) {
|
|
6036
6692
|
super();
|
|
6037
|
-
init(this, options,
|
|
6693
|
+
init(this, options, instance6, create_fragment10, safe_not_equal, {
|
|
6038
6694
|
word: 1,
|
|
6039
6695
|
resultType: 0,
|
|
6040
6696
|
otherClass: 2,
|
|
@@ -6166,7 +6822,7 @@
|
|
|
6166
6822
|
child_ctx[38] = list[i];
|
|
6167
6823
|
return child_ctx;
|
|
6168
6824
|
}
|
|
6169
|
-
function
|
|
6825
|
+
function create_if_block_26(ctx) {
|
|
6170
6826
|
let button;
|
|
6171
6827
|
let button_class_value;
|
|
6172
6828
|
let mounted;
|
|
@@ -6215,7 +6871,7 @@
|
|
|
6215
6871
|
}
|
|
6216
6872
|
};
|
|
6217
6873
|
}
|
|
6218
|
-
function
|
|
6874
|
+
function create_if_block_17(ctx) {
|
|
6219
6875
|
let div;
|
|
6220
6876
|
let mounted;
|
|
6221
6877
|
let dispose;
|
|
@@ -6257,7 +6913,7 @@
|
|
|
6257
6913
|
}
|
|
6258
6914
|
};
|
|
6259
6915
|
}
|
|
6260
|
-
function
|
|
6916
|
+
function create_if_block7(ctx) {
|
|
6261
6917
|
let button;
|
|
6262
6918
|
let t2;
|
|
6263
6919
|
let button_class_value;
|
|
@@ -6296,7 +6952,7 @@
|
|
|
6296
6952
|
let current;
|
|
6297
6953
|
let if_block = (
|
|
6298
6954
|
/*item*/
|
|
6299
|
-
ctx[38].type === ANSWER_MISSED &&
|
|
6955
|
+
ctx[38].type === ANSWER_MISSED && create_if_block7(ctx)
|
|
6300
6956
|
);
|
|
6301
6957
|
promptcategorisewordbutton = new PromptCategoriseWordButton_default({
|
|
6302
6958
|
props: {
|
|
@@ -6388,7 +7044,7 @@
|
|
|
6388
7044
|
if (if_block) {
|
|
6389
7045
|
if_block.p(ctx, dirty);
|
|
6390
7046
|
} else {
|
|
6391
|
-
if_block =
|
|
7047
|
+
if_block = create_if_block7(ctx);
|
|
6392
7048
|
if_block.c();
|
|
6393
7049
|
if_block.m(t2.parentNode, t2);
|
|
6394
7050
|
}
|
|
@@ -6475,7 +7131,7 @@
|
|
|
6475
7131
|
}
|
|
6476
7132
|
};
|
|
6477
7133
|
}
|
|
6478
|
-
function
|
|
7134
|
+
function create_fragment11(ctx) {
|
|
6479
7135
|
let t0;
|
|
6480
7136
|
let t1;
|
|
6481
7137
|
let section;
|
|
@@ -6492,12 +7148,12 @@
|
|
|
6492
7148
|
ctx[13] && /*sourceSelectedContainerId*/
|
|
6493
7149
|
ctx[14] !== /*containerId*/
|
|
6494
7150
|
ctx[3] && !/*isFinished*/
|
|
6495
|
-
ctx[8] &&
|
|
7151
|
+
ctx[8] && create_if_block_26(ctx)
|
|
6496
7152
|
);
|
|
6497
7153
|
let if_block1 = (
|
|
6498
7154
|
/*totalRemainingWordBinItem*/
|
|
6499
7155
|
ctx[16] <= 0 && /*isContainerWordBin*/
|
|
6500
|
-
ctx[22] &&
|
|
7156
|
+
ctx[22] && create_if_block_17(ctx)
|
|
6501
7157
|
);
|
|
6502
7158
|
let each_value = ensure_array_like(Object.values(
|
|
6503
7159
|
/*items*/
|
|
@@ -6619,7 +7275,7 @@
|
|
|
6619
7275
|
if (if_block0) {
|
|
6620
7276
|
if_block0.p(ctx2, dirty);
|
|
6621
7277
|
} else {
|
|
6622
|
-
if_block0 =
|
|
7278
|
+
if_block0 = create_if_block_26(ctx2);
|
|
6623
7279
|
if_block0.c();
|
|
6624
7280
|
if_block0.m(t0.parentNode, t0);
|
|
6625
7281
|
}
|
|
@@ -6635,7 +7291,7 @@
|
|
|
6635
7291
|
if (if_block1) {
|
|
6636
7292
|
if_block1.p(ctx2, dirty);
|
|
6637
7293
|
} else {
|
|
6638
|
-
if_block1 =
|
|
7294
|
+
if_block1 = create_if_block_17(ctx2);
|
|
6639
7295
|
if_block1.c();
|
|
6640
7296
|
if_block1.m(t1.parentNode, t1);
|
|
6641
7297
|
}
|
|
@@ -6749,7 +7405,7 @@
|
|
|
6749
7405
|
}
|
|
6750
7406
|
};
|
|
6751
7407
|
}
|
|
6752
|
-
function
|
|
7408
|
+
function instance7($$self, $$props, $$invalidate) {
|
|
6753
7409
|
let { containerClass = "" } = $$props;
|
|
6754
7410
|
let { flipDurationMs = 5 } = $$props;
|
|
6755
7411
|
let { containerId = "" } = $$props;
|
|
@@ -7084,8 +7740,8 @@
|
|
|
7084
7740
|
init(
|
|
7085
7741
|
this,
|
|
7086
7742
|
options,
|
|
7087
|
-
|
|
7088
|
-
|
|
7743
|
+
instance7,
|
|
7744
|
+
create_fragment11,
|
|
7089
7745
|
safe_not_equal,
|
|
7090
7746
|
{
|
|
7091
7747
|
containerClass: 1,
|
|
@@ -7194,7 +7850,7 @@
|
|
|
7194
7850
|
var PromptCategoriseDndContainer_default = PromptCategoriseDndContainer;
|
|
7195
7851
|
|
|
7196
7852
|
// src/lib/components/common/CommonModal.svelte
|
|
7197
|
-
function
|
|
7853
|
+
function create_fragment12(ctx) {
|
|
7198
7854
|
let div2;
|
|
7199
7855
|
let div0;
|
|
7200
7856
|
let t2;
|
|
@@ -7326,7 +7982,7 @@
|
|
|
7326
7982
|
var keypress_handler = () => {
|
|
7327
7983
|
return false;
|
|
7328
7984
|
};
|
|
7329
|
-
function
|
|
7985
|
+
function instance8($$self, $$props, $$invalidate) {
|
|
7330
7986
|
let { $$slots: slots = {}, $$scope } = $$props;
|
|
7331
7987
|
let { modalData = [] } = $$props;
|
|
7332
7988
|
const dispatch = createEventDispatcher();
|
|
@@ -7358,7 +8014,7 @@
|
|
|
7358
8014
|
var CommonModal = class extends SvelteComponent {
|
|
7359
8015
|
constructor(options) {
|
|
7360
8016
|
super();
|
|
7361
|
-
init(this, options,
|
|
8017
|
+
init(this, options, instance8, create_fragment12, safe_not_equal, { modalData: 3 });
|
|
7362
8018
|
}
|
|
7363
8019
|
get modalData() {
|
|
7364
8020
|
return this.$$.ctx[3];
|
|
@@ -7372,7 +8028,7 @@
|
|
|
7372
8028
|
var CommonModal_default = CommonModal;
|
|
7373
8029
|
|
|
7374
8030
|
// src/lib/assets/img/messaging/AlertIcon.svelte
|
|
7375
|
-
function
|
|
8031
|
+
function create_fragment13(ctx) {
|
|
7376
8032
|
let svg;
|
|
7377
8033
|
let path;
|
|
7378
8034
|
return {
|
|
@@ -7406,14 +8062,14 @@
|
|
|
7406
8062
|
var AlertIcon = class extends SvelteComponent {
|
|
7407
8063
|
constructor(options) {
|
|
7408
8064
|
super();
|
|
7409
|
-
init(this, options, null,
|
|
8065
|
+
init(this, options, null, create_fragment13, safe_not_equal, {});
|
|
7410
8066
|
}
|
|
7411
8067
|
};
|
|
7412
8068
|
create_custom_element(AlertIcon, {}, [], [], true);
|
|
7413
8069
|
var AlertIcon_default = AlertIcon;
|
|
7414
8070
|
|
|
7415
8071
|
// src/lib/assets/img/messaging/CrossIcon.svelte
|
|
7416
|
-
function
|
|
8072
|
+
function create_fragment14(ctx) {
|
|
7417
8073
|
let svg;
|
|
7418
8074
|
let path;
|
|
7419
8075
|
return {
|
|
@@ -7447,7 +8103,7 @@
|
|
|
7447
8103
|
var CrossIcon = class extends SvelteComponent {
|
|
7448
8104
|
constructor(options) {
|
|
7449
8105
|
super();
|
|
7450
|
-
init(this, options, null,
|
|
8106
|
+
init(this, options, null, create_fragment14, safe_not_equal, {});
|
|
7451
8107
|
}
|
|
7452
8108
|
};
|
|
7453
8109
|
create_custom_element(CrossIcon, {}, [], [], true);
|
|
@@ -7607,7 +8263,7 @@
|
|
|
7607
8263
|
}
|
|
7608
8264
|
};
|
|
7609
8265
|
}
|
|
7610
|
-
function
|
|
8266
|
+
function create_fragment15(ctx) {
|
|
7611
8267
|
let commonmodal;
|
|
7612
8268
|
let current;
|
|
7613
8269
|
commonmodal = new CommonModal_default({
|
|
@@ -7660,7 +8316,7 @@
|
|
|
7660
8316
|
}
|
|
7661
8317
|
};
|
|
7662
8318
|
}
|
|
7663
|
-
function
|
|
8319
|
+
function instance9($$self, $$props, $$invalidate) {
|
|
7664
8320
|
let { categoryData = [] } = $$props;
|
|
7665
8321
|
let { modalData = [] } = $$props;
|
|
7666
8322
|
let categoryModal;
|
|
@@ -7743,7 +8399,7 @@
|
|
|
7743
8399
|
var PromptCategoriseModal = class extends SvelteComponent {
|
|
7744
8400
|
constructor(options) {
|
|
7745
8401
|
super();
|
|
7746
|
-
init(this, options,
|
|
8402
|
+
init(this, options, instance9, create_fragment15, safe_not_equal, { categoryData: 6, modalData: 0 });
|
|
7747
8403
|
}
|
|
7748
8404
|
get categoryData() {
|
|
7749
8405
|
return this.$$.ctx[6];
|
|
@@ -7764,7 +8420,7 @@
|
|
|
7764
8420
|
var PromptCategoriseModal_default = PromptCategoriseModal;
|
|
7765
8421
|
|
|
7766
8422
|
// src/lib/assets/img/action/Switch.svelte
|
|
7767
|
-
function
|
|
8423
|
+
function create_fragment16(ctx) {
|
|
7768
8424
|
let svg;
|
|
7769
8425
|
let path;
|
|
7770
8426
|
return {
|
|
@@ -7796,14 +8452,14 @@
|
|
|
7796
8452
|
var Switch = class extends SvelteComponent {
|
|
7797
8453
|
constructor(options) {
|
|
7798
8454
|
super();
|
|
7799
|
-
init(this, options, null,
|
|
8455
|
+
init(this, options, null, create_fragment16, safe_not_equal, {});
|
|
7800
8456
|
}
|
|
7801
8457
|
};
|
|
7802
8458
|
create_custom_element(Switch, {}, [], [], true);
|
|
7803
8459
|
var Switch_default = Switch;
|
|
7804
8460
|
|
|
7805
8461
|
// src/lib/assets/img/messaging/SmallChevronUp.svelte
|
|
7806
|
-
function
|
|
8462
|
+
function create_fragment17(ctx) {
|
|
7807
8463
|
let svg;
|
|
7808
8464
|
let path;
|
|
7809
8465
|
return {
|
|
@@ -7837,14 +8493,14 @@
|
|
|
7837
8493
|
var SmallChevronUp = class extends SvelteComponent {
|
|
7838
8494
|
constructor(options) {
|
|
7839
8495
|
super();
|
|
7840
|
-
init(this, options, null,
|
|
8496
|
+
init(this, options, null, create_fragment17, safe_not_equal, {});
|
|
7841
8497
|
}
|
|
7842
8498
|
};
|
|
7843
8499
|
create_custom_element(SmallChevronUp, {}, [], [], true);
|
|
7844
8500
|
var SmallChevronUp_default = SmallChevronUp;
|
|
7845
8501
|
|
|
7846
8502
|
// src/lib/assets/img/messaging/SmallChevronDown.svelte
|
|
7847
|
-
function
|
|
8503
|
+
function create_fragment18(ctx) {
|
|
7848
8504
|
let svg;
|
|
7849
8505
|
let path;
|
|
7850
8506
|
return {
|
|
@@ -7878,14 +8534,14 @@
|
|
|
7878
8534
|
var SmallChevronDown = class extends SvelteComponent {
|
|
7879
8535
|
constructor(options) {
|
|
7880
8536
|
super();
|
|
7881
|
-
init(this, options, null,
|
|
8537
|
+
init(this, options, null, create_fragment18, safe_not_equal, {});
|
|
7882
8538
|
}
|
|
7883
8539
|
};
|
|
7884
8540
|
create_custom_element(SmallChevronDown, {}, [], [], true);
|
|
7885
8541
|
var SmallChevronDown_default = SmallChevronDown;
|
|
7886
8542
|
|
|
7887
8543
|
// src/lib/assets/img/messaging/SmallChevronLeft.svelte
|
|
7888
|
-
function
|
|
8544
|
+
function create_fragment19(ctx) {
|
|
7889
8545
|
let svg;
|
|
7890
8546
|
let path;
|
|
7891
8547
|
return {
|
|
@@ -7919,14 +8575,14 @@
|
|
|
7919
8575
|
var SmallChevronLeft = class extends SvelteComponent {
|
|
7920
8576
|
constructor(options) {
|
|
7921
8577
|
super();
|
|
7922
|
-
init(this, options, null,
|
|
8578
|
+
init(this, options, null, create_fragment19, safe_not_equal, {});
|
|
7923
8579
|
}
|
|
7924
8580
|
};
|
|
7925
8581
|
create_custom_element(SmallChevronLeft, {}, [], [], true);
|
|
7926
8582
|
var SmallChevronLeft_default = SmallChevronLeft;
|
|
7927
8583
|
|
|
7928
8584
|
// src/lib/assets/img/messaging/SmallChevronRight.svelte
|
|
7929
|
-
function
|
|
8585
|
+
function create_fragment20(ctx) {
|
|
7930
8586
|
let svg;
|
|
7931
8587
|
let path;
|
|
7932
8588
|
return {
|
|
@@ -7960,14 +8616,14 @@
|
|
|
7960
8616
|
var SmallChevronRight = class extends SvelteComponent {
|
|
7961
8617
|
constructor(options) {
|
|
7962
8618
|
super();
|
|
7963
|
-
init(this, options, null,
|
|
8619
|
+
init(this, options, null, create_fragment20, safe_not_equal, {});
|
|
7964
8620
|
}
|
|
7965
8621
|
};
|
|
7966
8622
|
create_custom_element(SmallChevronRight, {}, [], [], true);
|
|
7967
8623
|
var SmallChevronRight_default = SmallChevronRight;
|
|
7968
8624
|
|
|
7969
8625
|
// src/lib/assets/img/messaging/ArrowDownCircle.svelte
|
|
7970
|
-
function
|
|
8626
|
+
function create_fragment21(ctx) {
|
|
7971
8627
|
let svg;
|
|
7972
8628
|
let path;
|
|
7973
8629
|
return {
|
|
@@ -8001,7 +8657,7 @@
|
|
|
8001
8657
|
var ArrowDownCircle = class extends SvelteComponent {
|
|
8002
8658
|
constructor(options) {
|
|
8003
8659
|
super();
|
|
8004
|
-
init(this, options, null,
|
|
8660
|
+
init(this, options, null, create_fragment21, safe_not_equal, {});
|
|
8005
8661
|
}
|
|
8006
8662
|
};
|
|
8007
8663
|
create_custom_element(ArrowDownCircle, {}, [], [], true);
|
|
@@ -8319,7 +8975,7 @@
|
|
|
8319
8975
|
}
|
|
8320
8976
|
};
|
|
8321
8977
|
}
|
|
8322
|
-
function
|
|
8978
|
+
function create_if_block_43(ctx) {
|
|
8323
8979
|
let span;
|
|
8324
8980
|
let t0;
|
|
8325
8981
|
let t1;
|
|
@@ -8357,7 +9013,7 @@
|
|
|
8357
9013
|
}
|
|
8358
9014
|
};
|
|
8359
9015
|
}
|
|
8360
|
-
function
|
|
9016
|
+
function create_if_block_34(ctx) {
|
|
8361
9017
|
let span;
|
|
8362
9018
|
let t0;
|
|
8363
9019
|
let t1_value = (
|
|
@@ -8405,7 +9061,7 @@
|
|
|
8405
9061
|
}
|
|
8406
9062
|
};
|
|
8407
9063
|
}
|
|
8408
|
-
function
|
|
9064
|
+
function create_if_block_27(ctx) {
|
|
8409
9065
|
let span;
|
|
8410
9066
|
let t0;
|
|
8411
9067
|
let t1;
|
|
@@ -8486,7 +9142,7 @@
|
|
|
8486
9142
|
}
|
|
8487
9143
|
};
|
|
8488
9144
|
}
|
|
8489
|
-
function
|
|
9145
|
+
function create_if_block_18(ctx) {
|
|
8490
9146
|
let smallchevronup;
|
|
8491
9147
|
let current;
|
|
8492
9148
|
smallchevronup = new SmallChevronUp_default({});
|
|
@@ -8565,14 +9221,14 @@
|
|
|
8565
9221
|
let current;
|
|
8566
9222
|
let mounted;
|
|
8567
9223
|
let dispose;
|
|
8568
|
-
let if_block0 = show_if_1 &&
|
|
9224
|
+
let if_block0 = show_if_1 && create_if_block_43(ctx);
|
|
8569
9225
|
let if_block1 = !/*previewResultSr*/
|
|
8570
|
-
ctx[4] &&
|
|
9226
|
+
ctx[4] && create_if_block_34(ctx);
|
|
8571
9227
|
let if_block2 = (
|
|
8572
9228
|
/*previewResultSr*/
|
|
8573
|
-
ctx[4] &&
|
|
9229
|
+
ctx[4] && create_if_block_27(ctx)
|
|
8574
9230
|
);
|
|
8575
|
-
const if_block_creators = [
|
|
9231
|
+
const if_block_creators = [create_if_block_18, create_else_block4];
|
|
8576
9232
|
const if_blocks = [];
|
|
8577
9233
|
function select_block_type(ctx2, dirty) {
|
|
8578
9234
|
if (dirty[0] & /*openCategoryContainer*/
|
|
@@ -8926,7 +9582,7 @@
|
|
|
8926
9582
|
if (if_block0) {
|
|
8927
9583
|
if_block0.p(ctx, dirty);
|
|
8928
9584
|
} else {
|
|
8929
|
-
if_block0 =
|
|
9585
|
+
if_block0 = create_if_block_43(ctx);
|
|
8930
9586
|
if_block0.c();
|
|
8931
9587
|
if_block0.m(div0, t0);
|
|
8932
9588
|
}
|
|
@@ -8939,7 +9595,7 @@
|
|
|
8939
9595
|
if (if_block1) {
|
|
8940
9596
|
if_block1.p(ctx, dirty);
|
|
8941
9597
|
} else {
|
|
8942
|
-
if_block1 =
|
|
9598
|
+
if_block1 = create_if_block_34(ctx);
|
|
8943
9599
|
if_block1.c();
|
|
8944
9600
|
if_block1.m(div0, t7);
|
|
8945
9601
|
}
|
|
@@ -8954,7 +9610,7 @@
|
|
|
8954
9610
|
if (if_block2) {
|
|
8955
9611
|
if_block2.p(ctx, dirty);
|
|
8956
9612
|
} else {
|
|
8957
|
-
if_block2 =
|
|
9613
|
+
if_block2 = create_if_block_27(ctx);
|
|
8958
9614
|
if_block2.c();
|
|
8959
9615
|
if_block2.m(div0, t8);
|
|
8960
9616
|
}
|
|
@@ -9210,7 +9866,7 @@
|
|
|
9210
9866
|
}
|
|
9211
9867
|
};
|
|
9212
9868
|
}
|
|
9213
|
-
function
|
|
9869
|
+
function create_if_block8(ctx) {
|
|
9214
9870
|
let span;
|
|
9215
9871
|
let t0;
|
|
9216
9872
|
let t1;
|
|
@@ -9322,7 +9978,7 @@
|
|
|
9322
9978
|
const out = (i) => transition_out(each_blocks[i], 1, 1, () => {
|
|
9323
9979
|
each_blocks[i] = null;
|
|
9324
9980
|
});
|
|
9325
|
-
let if_block2 = show_if &&
|
|
9981
|
+
let if_block2 = show_if && create_if_block8(ctx);
|
|
9326
9982
|
smallchevronleft = new SmallChevronLeft_default({});
|
|
9327
9983
|
promptcategorisedndcontainer = new PromptCategoriseDndContainer_default({
|
|
9328
9984
|
props: {
|
|
@@ -9735,7 +10391,7 @@
|
|
|
9735
10391
|
if (if_block2) {
|
|
9736
10392
|
if_block2.p(ctx, dirty);
|
|
9737
10393
|
} else {
|
|
9738
|
-
if_block2 =
|
|
10394
|
+
if_block2 = create_if_block8(ctx);
|
|
9739
10395
|
if_block2.c();
|
|
9740
10396
|
if_block2.m(div2, t8);
|
|
9741
10397
|
}
|
|
@@ -9918,7 +10574,7 @@
|
|
|
9918
10574
|
}
|
|
9919
10575
|
};
|
|
9920
10576
|
}
|
|
9921
|
-
function
|
|
10577
|
+
function create_fragment22(ctx) {
|
|
9922
10578
|
let div;
|
|
9923
10579
|
let promptbody;
|
|
9924
10580
|
let current;
|
|
@@ -9976,7 +10632,7 @@
|
|
|
9976
10632
|
}
|
|
9977
10633
|
};
|
|
9978
10634
|
}
|
|
9979
|
-
function
|
|
10635
|
+
function instance10($$self, $$props, $$invalidate) {
|
|
9980
10636
|
let { sessionData } = $$props;
|
|
9981
10637
|
let { isFinished = false } = $$props;
|
|
9982
10638
|
let { isPreviewMode = false } = $$props;
|
|
@@ -10401,8 +11057,8 @@
|
|
|
10401
11057
|
init(
|
|
10402
11058
|
this,
|
|
10403
11059
|
options,
|
|
10404
|
-
|
|
10405
|
-
|
|
11060
|
+
instance10,
|
|
11061
|
+
create_fragment22,
|
|
10406
11062
|
safe_not_equal,
|
|
10407
11063
|
{
|
|
10408
11064
|
sessionData: 47,
|
|
@@ -10447,7 +11103,7 @@
|
|
|
10447
11103
|
var PromptCategorise_default = PromptCategorise;
|
|
10448
11104
|
|
|
10449
11105
|
// src/lib/components/prompt/skeleton/PromptSkeleton.svelte
|
|
10450
|
-
function
|
|
11106
|
+
function create_fragment23(ctx) {
|
|
10451
11107
|
let div3;
|
|
10452
11108
|
return {
|
|
10453
11109
|
c() {
|
|
@@ -10470,14 +11126,14 @@
|
|
|
10470
11126
|
var PromptSkeleton = class extends SvelteComponent {
|
|
10471
11127
|
constructor(options) {
|
|
10472
11128
|
super();
|
|
10473
|
-
init(this, options, null,
|
|
11129
|
+
init(this, options, null, create_fragment23, safe_not_equal, {});
|
|
10474
11130
|
}
|
|
10475
11131
|
};
|
|
10476
11132
|
customElements.define("prompt-skeleton", create_custom_element(PromptSkeleton, {}, [], [], true));
|
|
10477
11133
|
var PromptSkeleton_default = PromptSkeleton;
|
|
10478
11134
|
|
|
10479
11135
|
// src/lib/components/common/InvalidBanner.svelte
|
|
10480
|
-
function
|
|
11136
|
+
function create_fragment24(ctx) {
|
|
10481
11137
|
let p;
|
|
10482
11138
|
let t2;
|
|
10483
11139
|
return {
|
|
@@ -10511,7 +11167,7 @@
|
|
|
10511
11167
|
}
|
|
10512
11168
|
};
|
|
10513
11169
|
}
|
|
10514
|
-
function
|
|
11170
|
+
function instance11($$self, $$props, $$invalidate) {
|
|
10515
11171
|
let { bannerLabel: bannerLabel2 = "Invalid." } = $$props;
|
|
10516
11172
|
$$self.$$set = ($$props2) => {
|
|
10517
11173
|
if ("bannerLabel" in $$props2)
|
|
@@ -10522,7 +11178,7 @@
|
|
|
10522
11178
|
var InvalidBanner = class extends SvelteComponent {
|
|
10523
11179
|
constructor(options) {
|
|
10524
11180
|
super();
|
|
10525
|
-
init(this, options,
|
|
11181
|
+
init(this, options, instance11, create_fragment24, safe_not_equal, { bannerLabel: 0 });
|
|
10526
11182
|
}
|
|
10527
11183
|
get bannerLabel() {
|
|
10528
11184
|
return this.$$.ctx[0];
|
|
@@ -10537,7 +11193,7 @@
|
|
|
10537
11193
|
|
|
10538
11194
|
// src/lib/components/prompt/PromptBuilder.svelte
|
|
10539
11195
|
function add_css(target) {
|
|
10540
|
-
append_styles(target, "svelte-v7ouvz", '*,: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(8 38 99/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-v7ouvz-pulse{{opacity:0.5}}.animate-skeleton{--tw-bg-opacity:1;animation:svelte-v7ouvz-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(8 38 99/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(8 38 99/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(8 38 99/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-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-7{margin-top:1.75rem}.mt-7\\.5{margin-top:1.875}.mt-9{margin-top:2.25rem}.block{display:block}.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-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(8 38 99/var(--tw-border-opacity)) !important}.border-blue-1000{--tw-border-opacity:1;border-color:rgb(8 38 99/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(8 38 99/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-3{padding-bottom:0.75rem}.pl-3{padding-left:0.75rem}.pl-4{padding-left:1rem}.pr-3{padding-right:0.75rem}.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-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}.\\!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(8 38 99/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(8 38 99/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(8 38 99/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\\:min-h-\\[224px\\]{min-height:224px}.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}}');
|
|
11196
|
+
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}}');
|
|
10541
11197
|
}
|
|
10542
11198
|
function create_else_block_12(ctx) {
|
|
10543
11199
|
let invalidbanner;
|
|
@@ -10567,12 +11223,12 @@
|
|
|
10567
11223
|
}
|
|
10568
11224
|
};
|
|
10569
11225
|
}
|
|
10570
|
-
function
|
|
11226
|
+
function create_if_block_19(ctx) {
|
|
10571
11227
|
let current_block_type_index;
|
|
10572
11228
|
let if_block;
|
|
10573
11229
|
let if_block_anchor;
|
|
10574
11230
|
let current;
|
|
10575
|
-
const if_block_creators = [
|
|
11231
|
+
const if_block_creators = [create_if_block_28, create_if_block_35, create_if_block_44, create_else_block5];
|
|
10576
11232
|
const if_blocks = [];
|
|
10577
11233
|
function select_block_type_1(ctx2, dirty) {
|
|
10578
11234
|
if (
|
|
@@ -10644,7 +11300,7 @@
|
|
|
10644
11300
|
}
|
|
10645
11301
|
};
|
|
10646
11302
|
}
|
|
10647
|
-
function
|
|
11303
|
+
function create_if_block9(ctx) {
|
|
10648
11304
|
let promptskeleton;
|
|
10649
11305
|
let current;
|
|
10650
11306
|
promptskeleton = new PromptSkeleton_default({});
|
|
@@ -10700,7 +11356,7 @@
|
|
|
10700
11356
|
}
|
|
10701
11357
|
};
|
|
10702
11358
|
}
|
|
10703
|
-
function
|
|
11359
|
+
function create_if_block_44(ctx) {
|
|
10704
11360
|
let promptcategorise;
|
|
10705
11361
|
let current;
|
|
10706
11362
|
promptcategorise = new PromptCategorise_default({
|
|
@@ -10763,7 +11419,7 @@
|
|
|
10763
11419
|
}
|
|
10764
11420
|
};
|
|
10765
11421
|
}
|
|
10766
|
-
function
|
|
11422
|
+
function create_if_block_35(ctx) {
|
|
10767
11423
|
let prompttypein;
|
|
10768
11424
|
let current;
|
|
10769
11425
|
prompttypein = new PromptTypeIn_default({
|
|
@@ -10842,7 +11498,7 @@
|
|
|
10842
11498
|
}
|
|
10843
11499
|
};
|
|
10844
11500
|
}
|
|
10845
|
-
function
|
|
11501
|
+
function create_if_block_28(ctx) {
|
|
10846
11502
|
let promptmcq;
|
|
10847
11503
|
let current;
|
|
10848
11504
|
promptmcq = new PromptMCQ_default({
|
|
@@ -10917,12 +11573,12 @@
|
|
|
10917
11573
|
}
|
|
10918
11574
|
};
|
|
10919
11575
|
}
|
|
10920
|
-
function
|
|
11576
|
+
function create_fragment25(ctx) {
|
|
10921
11577
|
let current_block_type_index;
|
|
10922
11578
|
let if_block;
|
|
10923
11579
|
let if_block_anchor;
|
|
10924
11580
|
let current;
|
|
10925
|
-
const if_block_creators = [
|
|
11581
|
+
const if_block_creators = [create_if_block9, create_if_block_19, create_else_block_12];
|
|
10926
11582
|
const if_blocks = [];
|
|
10927
11583
|
function select_block_type(ctx2, dirty) {
|
|
10928
11584
|
if (
|
|
@@ -10990,7 +11646,7 @@
|
|
|
10990
11646
|
};
|
|
10991
11647
|
}
|
|
10992
11648
|
var bannerLabel = "Invalid session id.";
|
|
10993
|
-
function
|
|
11649
|
+
function instance12($$self, $$props, $$invalidate) {
|
|
10994
11650
|
const { "session-id": sessionId, "preview-mode": previewMode, "item-id": itemId, "preview-contentful": previewContentful } = $$props;
|
|
10995
11651
|
const previewModeType = ["true", "interactive"];
|
|
10996
11652
|
const isPreviewModeInteractive = Boolean(previewMode === "interactive" && itemId);
|
|
@@ -11202,7 +11858,7 @@
|
|
|
11202
11858
|
var PromptBuilder = class extends SvelteComponent {
|
|
11203
11859
|
constructor(options) {
|
|
11204
11860
|
super();
|
|
11205
|
-
init(this, options,
|
|
11861
|
+
init(this, options, instance12, create_fragment25, safe_not_equal, {}, add_css);
|
|
11206
11862
|
}
|
|
11207
11863
|
};
|
|
11208
11864
|
customElements.define("prompt-builder", create_custom_element(PromptBuilder, {}, [], [], true));
|