eat-js-sdk 0.0.44 → 0.0.46
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 +1390 -622
- package/package.json +1 -1
|
@@ -698,7 +698,7 @@
|
|
|
698
698
|
}
|
|
699
699
|
component.$$.dirty[i / 31 | 0] |= 1 << i % 31;
|
|
700
700
|
}
|
|
701
|
-
function init(component, options, instance12,
|
|
701
|
+
function init(component, options, instance12, create_fragment25, not_equal, props, append_styles2 = null, dirty = [-1]) {
|
|
702
702
|
const parent_component = current_component;
|
|
703
703
|
set_current_component(component);
|
|
704
704
|
const $$ = component.$$ = {
|
|
@@ -737,7 +737,7 @@
|
|
|
737
737
|
$$.update();
|
|
738
738
|
ready = true;
|
|
739
739
|
run_all($$.before_update);
|
|
740
|
-
$$.fragment =
|
|
740
|
+
$$.fragment = create_fragment25 ? create_fragment25($$.ctx) : false;
|
|
741
741
|
if (options.target) {
|
|
742
742
|
if (options.hydrate) {
|
|
743
743
|
start_hydrating();
|
|
@@ -2547,6 +2547,10 @@
|
|
|
2547
2547
|
var TYPEIN_TYPE_SHORT = "Short-Text";
|
|
2548
2548
|
var CONTAINER_WORD_BIN_ID = "container-word-bin";
|
|
2549
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";
|
|
2550
2554
|
|
|
2551
2555
|
// src/lib/components/prompt/typein/PromptTypeIn.svelte
|
|
2552
2556
|
function create_else_block_1(ctx) {
|
|
@@ -5332,7 +5336,8 @@
|
|
|
5332
5336
|
currentWordBinIndex: 0,
|
|
5333
5337
|
currentTabContainer: "",
|
|
5334
5338
|
lastSelectedTabContainer: "",
|
|
5335
|
-
selectedItemName: ""
|
|
5339
|
+
selectedItemName: "",
|
|
5340
|
+
previewResultSr: ""
|
|
5336
5341
|
});
|
|
5337
5342
|
|
|
5338
5343
|
// src/lib/assets/img/product/GripVertical.svelte
|
|
@@ -5376,8 +5381,212 @@
|
|
|
5376
5381
|
create_custom_element(GripVertical, {}, [], [], true);
|
|
5377
5382
|
var GripVertical_default = GripVertical;
|
|
5378
5383
|
|
|
5379
|
-
// src/lib/
|
|
5384
|
+
// src/lib/assets/img/messaging/Success.svelte
|
|
5380
5385
|
function create_fragment8(ctx) {
|
|
5386
|
+
let svg;
|
|
5387
|
+
let path;
|
|
5388
|
+
return {
|
|
5389
|
+
c() {
|
|
5390
|
+
svg = svg_element("svg");
|
|
5391
|
+
path = svg_element("path");
|
|
5392
|
+
attr(path, "fill-rule", "evenodd");
|
|
5393
|
+
attr(path, "clip-rule", "evenodd");
|
|
5394
|
+
attr(path, "d", "M13.2929 0.292893C13.6834 -0.0976311 14.3166 -0.0976311 14.7071 0.292893C15.0976 0.683418 15.0976 1.31658 14.7071 1.70711L5.70711 10.7071C5.31658 11.0976 4.68342 11.0976 4.29289 10.7071L0.292893 6.70711C-0.0976311 6.31658 -0.0976311 5.68342 0.292893 5.29289C0.683418 4.90237 1.31658 4.90237 1.70711 5.29289L5 8.58579L13.2929 0.292893Z");
|
|
5395
|
+
attr(path, "fill", "currentColor");
|
|
5396
|
+
attr(svg, "width", "15");
|
|
5397
|
+
attr(svg, "height", "11");
|
|
5398
|
+
attr(svg, "viewBox", "0 0 15 11");
|
|
5399
|
+
attr(svg, "fill", "none");
|
|
5400
|
+
attr(svg, "xmlns", "http://www.w3.org/2000/svg");
|
|
5401
|
+
},
|
|
5402
|
+
m(target, anchor) {
|
|
5403
|
+
insert(target, svg, anchor);
|
|
5404
|
+
append(svg, path);
|
|
5405
|
+
},
|
|
5406
|
+
p: noop,
|
|
5407
|
+
i: noop,
|
|
5408
|
+
o: noop,
|
|
5409
|
+
d(detaching) {
|
|
5410
|
+
if (detaching) {
|
|
5411
|
+
detach(svg);
|
|
5412
|
+
}
|
|
5413
|
+
}
|
|
5414
|
+
};
|
|
5415
|
+
}
|
|
5416
|
+
var Success = class extends SvelteComponent {
|
|
5417
|
+
constructor(options) {
|
|
5418
|
+
super();
|
|
5419
|
+
init(this, options, null, create_fragment8, safe_not_equal, {});
|
|
5420
|
+
}
|
|
5421
|
+
};
|
|
5422
|
+
create_custom_element(Success, {}, [], [], true);
|
|
5423
|
+
var Success_default = Success;
|
|
5424
|
+
|
|
5425
|
+
// src/lib/components/prompt/categorise/PromptCategoriseWordButton.svelte
|
|
5426
|
+
function create_else_block3(ctx) {
|
|
5427
|
+
let gripvertical;
|
|
5428
|
+
let current;
|
|
5429
|
+
gripvertical = new GripVertical_default({});
|
|
5430
|
+
return {
|
|
5431
|
+
c() {
|
|
5432
|
+
create_component(gripvertical.$$.fragment);
|
|
5433
|
+
},
|
|
5434
|
+
m(target, anchor) {
|
|
5435
|
+
mount_component(gripvertical, target, anchor);
|
|
5436
|
+
current = true;
|
|
5437
|
+
},
|
|
5438
|
+
i(local) {
|
|
5439
|
+
if (current)
|
|
5440
|
+
return;
|
|
5441
|
+
transition_in(gripvertical.$$.fragment, local);
|
|
5442
|
+
current = true;
|
|
5443
|
+
},
|
|
5444
|
+
o(local) {
|
|
5445
|
+
transition_out(gripvertical.$$.fragment, local);
|
|
5446
|
+
current = false;
|
|
5447
|
+
},
|
|
5448
|
+
d(detaching) {
|
|
5449
|
+
destroy_component(gripvertical, detaching);
|
|
5450
|
+
}
|
|
5451
|
+
};
|
|
5452
|
+
}
|
|
5453
|
+
function create_if_block_32(ctx) {
|
|
5454
|
+
let span;
|
|
5455
|
+
let success;
|
|
5456
|
+
let current;
|
|
5457
|
+
success = new Success_default({});
|
|
5458
|
+
return {
|
|
5459
|
+
c() {
|
|
5460
|
+
span = element("span");
|
|
5461
|
+
create_component(success.$$.fragment);
|
|
5462
|
+
attr(span, "class", "text-green-800");
|
|
5463
|
+
},
|
|
5464
|
+
m(target, anchor) {
|
|
5465
|
+
insert(target, span, anchor);
|
|
5466
|
+
mount_component(success, span, null);
|
|
5467
|
+
current = true;
|
|
5468
|
+
},
|
|
5469
|
+
i(local) {
|
|
5470
|
+
if (current)
|
|
5471
|
+
return;
|
|
5472
|
+
transition_in(success.$$.fragment, local);
|
|
5473
|
+
current = true;
|
|
5474
|
+
},
|
|
5475
|
+
o(local) {
|
|
5476
|
+
transition_out(success.$$.fragment, local);
|
|
5477
|
+
current = false;
|
|
5478
|
+
},
|
|
5479
|
+
d(detaching) {
|
|
5480
|
+
if (detaching) {
|
|
5481
|
+
detach(span);
|
|
5482
|
+
}
|
|
5483
|
+
destroy_component(success);
|
|
5484
|
+
}
|
|
5485
|
+
};
|
|
5486
|
+
}
|
|
5487
|
+
function create_if_block_23(ctx) {
|
|
5488
|
+
let span;
|
|
5489
|
+
let errorsolid;
|
|
5490
|
+
let current;
|
|
5491
|
+
errorsolid = new ErrorSolid_default({});
|
|
5492
|
+
return {
|
|
5493
|
+
c() {
|
|
5494
|
+
span = element("span");
|
|
5495
|
+
create_component(errorsolid.$$.fragment);
|
|
5496
|
+
attr(span, "class", "text-red-800 preview-icon");
|
|
5497
|
+
},
|
|
5498
|
+
m(target, anchor) {
|
|
5499
|
+
insert(target, span, anchor);
|
|
5500
|
+
mount_component(errorsolid, span, null);
|
|
5501
|
+
current = true;
|
|
5502
|
+
},
|
|
5503
|
+
i(local) {
|
|
5504
|
+
if (current)
|
|
5505
|
+
return;
|
|
5506
|
+
transition_in(errorsolid.$$.fragment, local);
|
|
5507
|
+
current = true;
|
|
5508
|
+
},
|
|
5509
|
+
o(local) {
|
|
5510
|
+
transition_out(errorsolid.$$.fragment, local);
|
|
5511
|
+
current = false;
|
|
5512
|
+
},
|
|
5513
|
+
d(detaching) {
|
|
5514
|
+
if (detaching) {
|
|
5515
|
+
detach(span);
|
|
5516
|
+
}
|
|
5517
|
+
destroy_component(errorsolid);
|
|
5518
|
+
}
|
|
5519
|
+
};
|
|
5520
|
+
}
|
|
5521
|
+
function create_if_block_15(ctx) {
|
|
5522
|
+
let span;
|
|
5523
|
+
let successsolid;
|
|
5524
|
+
let current;
|
|
5525
|
+
successsolid = new SuccessSolid_default({});
|
|
5526
|
+
return {
|
|
5527
|
+
c() {
|
|
5528
|
+
span = element("span");
|
|
5529
|
+
create_component(successsolid.$$.fragment);
|
|
5530
|
+
attr(span, "class", "text-green-800 preview-icon");
|
|
5531
|
+
},
|
|
5532
|
+
m(target, anchor) {
|
|
5533
|
+
insert(target, span, anchor);
|
|
5534
|
+
mount_component(successsolid, span, null);
|
|
5535
|
+
current = true;
|
|
5536
|
+
},
|
|
5537
|
+
i(local) {
|
|
5538
|
+
if (current)
|
|
5539
|
+
return;
|
|
5540
|
+
transition_in(successsolid.$$.fragment, local);
|
|
5541
|
+
current = true;
|
|
5542
|
+
},
|
|
5543
|
+
o(local) {
|
|
5544
|
+
transition_out(successsolid.$$.fragment, local);
|
|
5545
|
+
current = false;
|
|
5546
|
+
},
|
|
5547
|
+
d(detaching) {
|
|
5548
|
+
if (detaching) {
|
|
5549
|
+
detach(span);
|
|
5550
|
+
}
|
|
5551
|
+
destroy_component(successsolid);
|
|
5552
|
+
}
|
|
5553
|
+
};
|
|
5554
|
+
}
|
|
5555
|
+
function create_if_block5(ctx) {
|
|
5556
|
+
let span;
|
|
5557
|
+
let gripvertical;
|
|
5558
|
+
let current;
|
|
5559
|
+
gripvertical = new GripVertical_default({});
|
|
5560
|
+
return {
|
|
5561
|
+
c() {
|
|
5562
|
+
span = element("span");
|
|
5563
|
+
create_component(gripvertical.$$.fragment);
|
|
5564
|
+
attr(span, "class", "preview-vertical hidden");
|
|
5565
|
+
},
|
|
5566
|
+
m(target, anchor) {
|
|
5567
|
+
insert(target, span, anchor);
|
|
5568
|
+
mount_component(gripvertical, span, null);
|
|
5569
|
+
current = true;
|
|
5570
|
+
},
|
|
5571
|
+
i(local) {
|
|
5572
|
+
if (current)
|
|
5573
|
+
return;
|
|
5574
|
+
transition_in(gripvertical.$$.fragment, local);
|
|
5575
|
+
current = true;
|
|
5576
|
+
},
|
|
5577
|
+
o(local) {
|
|
5578
|
+
transition_out(gripvertical.$$.fragment, local);
|
|
5579
|
+
current = false;
|
|
5580
|
+
},
|
|
5581
|
+
d(detaching) {
|
|
5582
|
+
if (detaching) {
|
|
5583
|
+
detach(span);
|
|
5584
|
+
}
|
|
5585
|
+
destroy_component(gripvertical);
|
|
5586
|
+
}
|
|
5587
|
+
};
|
|
5588
|
+
}
|
|
5589
|
+
function create_fragment9(ctx) {
|
|
5381
5590
|
let button;
|
|
5382
5591
|
let span0;
|
|
5383
5592
|
let t0;
|
|
@@ -5388,14 +5597,44 @@
|
|
|
5388
5597
|
let span1_class_value;
|
|
5389
5598
|
let t2;
|
|
5390
5599
|
let span2;
|
|
5391
|
-
let
|
|
5600
|
+
let current_block_type_index;
|
|
5601
|
+
let if_block0;
|
|
5602
|
+
let t3;
|
|
5392
5603
|
let div_class_value;
|
|
5393
5604
|
let button_aria_label_value;
|
|
5394
5605
|
let button_class_value;
|
|
5395
5606
|
let current;
|
|
5396
5607
|
let mounted;
|
|
5397
5608
|
let dispose;
|
|
5398
|
-
|
|
5609
|
+
const if_block_creators = [create_if_block_15, create_if_block_23, create_if_block_32, create_else_block3];
|
|
5610
|
+
const if_blocks = [];
|
|
5611
|
+
function select_block_type(ctx2, dirty) {
|
|
5612
|
+
if (
|
|
5613
|
+
/*resultType*/
|
|
5614
|
+
ctx2[1] === ANSWER_CORRECT && !/*isWordItemSelected*/
|
|
5615
|
+
ctx2[10]
|
|
5616
|
+
)
|
|
5617
|
+
return 0;
|
|
5618
|
+
if (
|
|
5619
|
+
/*resultType*/
|
|
5620
|
+
ctx2[1] === ANSWER_INCORRECT && !/*isWordItemSelected*/
|
|
5621
|
+
ctx2[10]
|
|
5622
|
+
)
|
|
5623
|
+
return 1;
|
|
5624
|
+
if (
|
|
5625
|
+
/*resultType*/
|
|
5626
|
+
ctx2[1] === ANSWER_MISSED
|
|
5627
|
+
)
|
|
5628
|
+
return 2;
|
|
5629
|
+
return 3;
|
|
5630
|
+
}
|
|
5631
|
+
current_block_type_index = select_block_type(ctx, -1);
|
|
5632
|
+
if_block0 = if_blocks[current_block_type_index] = if_block_creators[current_block_type_index](ctx);
|
|
5633
|
+
let if_block1 = (
|
|
5634
|
+
/*resultType*/
|
|
5635
|
+
(ctx[1] === ANSWER_CORRECT || /*resultType*/
|
|
5636
|
+
ctx[1] === ANSWER_INCORRECT) && create_if_block5(ctx)
|
|
5637
|
+
);
|
|
5399
5638
|
return {
|
|
5400
5639
|
c() {
|
|
5401
5640
|
button = element("button");
|
|
@@ -5409,36 +5648,63 @@
|
|
|
5409
5648
|
span1 = element("span");
|
|
5410
5649
|
t2 = space();
|
|
5411
5650
|
span2 = element("span");
|
|
5412
|
-
|
|
5651
|
+
if_block0.c();
|
|
5652
|
+
t3 = space();
|
|
5653
|
+
if (if_block1)
|
|
5654
|
+
if_block1.c();
|
|
5413
5655
|
attr(span0, "class", span0_class_value = "text-charcoal text-base pl-3 mr-4 " + /*isWordItemSelected*/
|
|
5414
|
-
(ctx[
|
|
5656
|
+
(ctx[10] ? "text-white" : ""));
|
|
5415
5657
|
attr(span1, "class", span1_class_value = "w-full h-full relative rounded-lg " + (!/*currentSelectedItemId*/
|
|
5416
|
-
ctx[
|
|
5658
|
+
ctx[9] && !/*disabledClick*/
|
|
5659
|
+
ctx[6] ? "td:group-hover:bg-black td:group-hover:opacity-5" : ""));
|
|
5417
5660
|
attr(span2, "class", "absolute");
|
|
5418
5661
|
attr(div, "class", div_class_value = "group text-blue-1000 h-11 w-11 min-w-[44px] flex items-center justify-center btn-vertical-icon " + (!/*currentSelectedItemId*/
|
|
5419
|
-
ctx[
|
|
5662
|
+
ctx[9] && !/*disabledClick*/
|
|
5663
|
+
ctx[6] ? "td:hover:cursor-grab td:hover:text-soft-blue" : ""));
|
|
5420
5664
|
attr(
|
|
5421
5665
|
button,
|
|
5422
5666
|
"id",
|
|
5423
5667
|
/*wordButtonId*/
|
|
5424
|
-
ctx[
|
|
5668
|
+
ctx[3]
|
|
5425
5669
|
);
|
|
5426
5670
|
attr(
|
|
5427
5671
|
button,
|
|
5428
5672
|
"tabindex",
|
|
5429
5673
|
/*tabIndex*/
|
|
5430
|
-
ctx[
|
|
5674
|
+
ctx[5]
|
|
5431
5675
|
);
|
|
5432
|
-
attr(button, "aria-label", button_aria_label_value =
|
|
5433
|
-
ctx[
|
|
5434
|
-
ctx[
|
|
5676
|
+
attr(button, "aria-label", button_aria_label_value = /*resultType*/
|
|
5677
|
+
(ctx[1] === ANSWER_CORRECT || /*resultType*/
|
|
5678
|
+
ctx[1] === ANSWER_INCORRECT) && !/*isWordItemSelected*/
|
|
5679
|
+
ctx[10] ? `Student's answer: ${/*word*/
|
|
5680
|
+
ctx[0]} (${/*resultType*/
|
|
5681
|
+
ctx[1]})` : (
|
|
5682
|
+
/*resultType*/
|
|
5683
|
+
ctx[1] === ANSWER_MISSED ? `Correct answer: ${/*word*/
|
|
5684
|
+
ctx[0]}` : `${/*isWordItemSelected*/
|
|
5685
|
+
ctx[10] ? "Selected option" : "Option"}: ${/*word*/
|
|
5686
|
+
ctx[0]}`
|
|
5687
|
+
));
|
|
5435
5688
|
attr(button, "class", button_class_value = "focus-ring flex items-center justify-between min-h-[54px] p-1 border border-gray-800 rounded-lg " + /*otherClass*/
|
|
5436
|
-
ctx[
|
|
5437
|
-
(ctx[
|
|
5438
|
-
(ctx[
|
|
5439
|
-
ctx[
|
|
5440
|
-
(ctx[
|
|
5441
|
-
ctx[
|
|
5689
|
+
ctx[2] + " " + /*isClonedItem*/
|
|
5690
|
+
(ctx[4] ? "opacity-50 raw-focus-ring bg-violet-100" : "") + " " + /*considerCloneItemId*/
|
|
5691
|
+
(ctx[8] === /*wordButtonId*/
|
|
5692
|
+
ctx[3] ? "hidden" : "") + " " + /*isWordItemSelected*/
|
|
5693
|
+
(ctx[10] ? "bg-blue-1000 !border-blue-1000 raw-focus-ring !cursor-pointer" : "bg-gray-100") + " " + (!/*currentSelectedItemId*/
|
|
5694
|
+
ctx[9] && !/*disabledClick*/
|
|
5695
|
+
ctx[6] ? "td:hover-focus-ring td:hover:bg-violet-100 !cursor-pointer" : "!cursor-default") + " " + /*resultType*/
|
|
5696
|
+
(ctx[1] === ANSWER_CORRECT && !/*isWordItemSelected*/
|
|
5697
|
+
ctx[10] ? "border-green-800 bg-green-300" : (
|
|
5698
|
+
/*resultType*/
|
|
5699
|
+
ctx[1] === ANSWER_INCORRECT && !/*isWordItemSelected*/
|
|
5700
|
+
ctx[10] ? "border-red-800 bg-red-300" : (
|
|
5701
|
+
/*resultType*/
|
|
5702
|
+
ctx[1] === ANSWER_MISSED ? "border-green-800" : ""
|
|
5703
|
+
)
|
|
5704
|
+
)) + " " + /*resultType*/
|
|
5705
|
+
((ctx[1] === ANSWER_CORRECT || /*resultType*/
|
|
5706
|
+
ctx[1] === ANSWER_INCORRECT) && !/*isWordItemSelected*/
|
|
5707
|
+
ctx[10] ? "td:hover:border-gray-800" : ""));
|
|
5442
5708
|
},
|
|
5443
5709
|
m(target, anchor) {
|
|
5444
5710
|
insert(target, button, anchor);
|
|
@@ -5449,42 +5715,45 @@
|
|
|
5449
5715
|
append(div, span1);
|
|
5450
5716
|
append(div, t2);
|
|
5451
5717
|
append(div, span2);
|
|
5452
|
-
|
|
5453
|
-
|
|
5718
|
+
if_blocks[current_block_type_index].m(span2, null);
|
|
5719
|
+
append(span2, t3);
|
|
5720
|
+
if (if_block1)
|
|
5721
|
+
if_block1.m(span2, null);
|
|
5722
|
+
ctx[15](button);
|
|
5454
5723
|
current = true;
|
|
5455
5724
|
if (!mounted) {
|
|
5456
5725
|
dispose = [
|
|
5457
5726
|
listen(button, "click", stop_propagation(function() {
|
|
5458
5727
|
if (is_function(
|
|
5459
5728
|
/*selectItem*/
|
|
5460
|
-
ctx[
|
|
5729
|
+
ctx[11](
|
|
5461
5730
|
/*wordButtonId*/
|
|
5462
|
-
ctx[
|
|
5731
|
+
ctx[3]
|
|
5463
5732
|
)
|
|
5464
5733
|
))
|
|
5465
|
-
ctx[
|
|
5734
|
+
ctx[11](
|
|
5466
5735
|
/*wordButtonId*/
|
|
5467
|
-
ctx[
|
|
5736
|
+
ctx[3]
|
|
5468
5737
|
).apply(this, arguments);
|
|
5469
5738
|
})),
|
|
5470
5739
|
listen(button, "touchend", stop_propagation(function() {
|
|
5471
5740
|
if (is_function(
|
|
5472
5741
|
/*selectItem*/
|
|
5473
|
-
ctx[
|
|
5742
|
+
ctx[11](
|
|
5474
5743
|
/*wordButtonId*/
|
|
5475
|
-
ctx[
|
|
5744
|
+
ctx[3]
|
|
5476
5745
|
)
|
|
5477
5746
|
))
|
|
5478
|
-
ctx[
|
|
5747
|
+
ctx[11](
|
|
5479
5748
|
/*wordButtonId*/
|
|
5480
|
-
ctx[
|
|
5749
|
+
ctx[3]
|
|
5481
5750
|
).apply(this, arguments);
|
|
5482
5751
|
})),
|
|
5483
5752
|
listen(
|
|
5484
5753
|
button,
|
|
5485
5754
|
"keydown",
|
|
5486
5755
|
/*removeContainerTabSelected*/
|
|
5487
|
-
ctx[
|
|
5756
|
+
ctx[12]
|
|
5488
5757
|
)
|
|
5489
5758
|
];
|
|
5490
5759
|
mounted = true;
|
|
@@ -5500,71 +5769,139 @@
|
|
|
5500
5769
|
ctx[0]
|
|
5501
5770
|
);
|
|
5502
5771
|
if (!current || dirty & /*isWordItemSelected*/
|
|
5503
|
-
|
|
5504
|
-
(ctx[
|
|
5772
|
+
1024 && span0_class_value !== (span0_class_value = "text-charcoal text-base pl-3 mr-4 " + /*isWordItemSelected*/
|
|
5773
|
+
(ctx[10] ? "text-white" : ""))) {
|
|
5505
5774
|
attr(span0, "class", span0_class_value);
|
|
5506
5775
|
}
|
|
5507
|
-
if (!current || dirty & /*currentSelectedItemId*/
|
|
5508
|
-
|
|
5509
|
-
ctx[
|
|
5776
|
+
if (!current || dirty & /*currentSelectedItemId, disabledClick*/
|
|
5777
|
+
576 && span1_class_value !== (span1_class_value = "w-full h-full relative rounded-lg " + (!/*currentSelectedItemId*/
|
|
5778
|
+
ctx[9] && !/*disabledClick*/
|
|
5779
|
+
ctx[6] ? "td:group-hover:bg-black td:group-hover:opacity-5" : ""))) {
|
|
5510
5780
|
attr(span1, "class", span1_class_value);
|
|
5511
5781
|
}
|
|
5512
|
-
|
|
5513
|
-
|
|
5514
|
-
|
|
5782
|
+
let previous_block_index = current_block_type_index;
|
|
5783
|
+
current_block_type_index = select_block_type(ctx, dirty);
|
|
5784
|
+
if (current_block_type_index !== previous_block_index) {
|
|
5785
|
+
group_outros();
|
|
5786
|
+
transition_out(if_blocks[previous_block_index], 1, 1, () => {
|
|
5787
|
+
if_blocks[previous_block_index] = null;
|
|
5788
|
+
});
|
|
5789
|
+
check_outros();
|
|
5790
|
+
if_block0 = if_blocks[current_block_type_index];
|
|
5791
|
+
if (!if_block0) {
|
|
5792
|
+
if_block0 = if_blocks[current_block_type_index] = if_block_creators[current_block_type_index](ctx);
|
|
5793
|
+
if_block0.c();
|
|
5794
|
+
} else {
|
|
5795
|
+
}
|
|
5796
|
+
transition_in(if_block0, 1);
|
|
5797
|
+
if_block0.m(span2, t3);
|
|
5798
|
+
}
|
|
5799
|
+
if (
|
|
5800
|
+
/*resultType*/
|
|
5801
|
+
ctx[1] === ANSWER_CORRECT || /*resultType*/
|
|
5802
|
+
ctx[1] === ANSWER_INCORRECT
|
|
5803
|
+
) {
|
|
5804
|
+
if (if_block1) {
|
|
5805
|
+
if (dirty & /*resultType*/
|
|
5806
|
+
2) {
|
|
5807
|
+
transition_in(if_block1, 1);
|
|
5808
|
+
}
|
|
5809
|
+
} else {
|
|
5810
|
+
if_block1 = create_if_block5(ctx);
|
|
5811
|
+
if_block1.c();
|
|
5812
|
+
transition_in(if_block1, 1);
|
|
5813
|
+
if_block1.m(span2, null);
|
|
5814
|
+
}
|
|
5815
|
+
} else if (if_block1) {
|
|
5816
|
+
group_outros();
|
|
5817
|
+
transition_out(if_block1, 1, 1, () => {
|
|
5818
|
+
if_block1 = null;
|
|
5819
|
+
});
|
|
5820
|
+
check_outros();
|
|
5821
|
+
}
|
|
5822
|
+
if (!current || dirty & /*currentSelectedItemId, disabledClick*/
|
|
5823
|
+
576 && div_class_value !== (div_class_value = "group text-blue-1000 h-11 w-11 min-w-[44px] flex items-center justify-center btn-vertical-icon " + (!/*currentSelectedItemId*/
|
|
5824
|
+
ctx[9] && !/*disabledClick*/
|
|
5825
|
+
ctx[6] ? "td:hover:cursor-grab td:hover:text-soft-blue" : ""))) {
|
|
5515
5826
|
attr(div, "class", div_class_value);
|
|
5516
5827
|
}
|
|
5517
5828
|
if (!current || dirty & /*wordButtonId*/
|
|
5518
|
-
|
|
5829
|
+
8) {
|
|
5519
5830
|
attr(
|
|
5520
5831
|
button,
|
|
5521
5832
|
"id",
|
|
5522
5833
|
/*wordButtonId*/
|
|
5523
|
-
ctx[
|
|
5834
|
+
ctx[3]
|
|
5524
5835
|
);
|
|
5525
5836
|
}
|
|
5526
5837
|
if (!current || dirty & /*tabIndex*/
|
|
5527
|
-
|
|
5838
|
+
32) {
|
|
5528
5839
|
attr(
|
|
5529
5840
|
button,
|
|
5530
5841
|
"tabindex",
|
|
5531
5842
|
/*tabIndex*/
|
|
5532
|
-
ctx[
|
|
5843
|
+
ctx[5]
|
|
5533
5844
|
);
|
|
5534
5845
|
}
|
|
5535
|
-
if (!current || dirty & /*isWordItemSelected, word*/
|
|
5536
|
-
|
|
5537
|
-
ctx[
|
|
5538
|
-
ctx[
|
|
5846
|
+
if (!current || dirty & /*resultType, isWordItemSelected, word*/
|
|
5847
|
+
1027 && button_aria_label_value !== (button_aria_label_value = /*resultType*/
|
|
5848
|
+
(ctx[1] === ANSWER_CORRECT || /*resultType*/
|
|
5849
|
+
ctx[1] === ANSWER_INCORRECT) && !/*isWordItemSelected*/
|
|
5850
|
+
ctx[10] ? `Student's answer: ${/*word*/
|
|
5851
|
+
ctx[0]} (${/*resultType*/
|
|
5852
|
+
ctx[1]})` : (
|
|
5853
|
+
/*resultType*/
|
|
5854
|
+
ctx[1] === ANSWER_MISSED ? `Correct answer: ${/*word*/
|
|
5855
|
+
ctx[0]}` : `${/*isWordItemSelected*/
|
|
5856
|
+
ctx[10] ? "Selected option" : "Option"}: ${/*word*/
|
|
5857
|
+
ctx[0]}`
|
|
5858
|
+
))) {
|
|
5539
5859
|
attr(button, "aria-label", button_aria_label_value);
|
|
5540
5860
|
}
|
|
5541
|
-
if (!current || dirty & /*otherClass, isClonedItem, considerCloneItemId, wordButtonId, isWordItemSelected, currentSelectedItemId*/
|
|
5542
|
-
|
|
5543
|
-
ctx[
|
|
5544
|
-
(ctx[
|
|
5545
|
-
(ctx[
|
|
5546
|
-
ctx[
|
|
5547
|
-
(ctx[
|
|
5548
|
-
ctx[
|
|
5861
|
+
if (!current || dirty & /*otherClass, isClonedItem, considerCloneItemId, wordButtonId, isWordItemSelected, currentSelectedItemId, disabledClick, resultType*/
|
|
5862
|
+
1886 && button_class_value !== (button_class_value = "focus-ring flex items-center justify-between min-h-[54px] p-1 border border-gray-800 rounded-lg " + /*otherClass*/
|
|
5863
|
+
ctx[2] + " " + /*isClonedItem*/
|
|
5864
|
+
(ctx[4] ? "opacity-50 raw-focus-ring bg-violet-100" : "") + " " + /*considerCloneItemId*/
|
|
5865
|
+
(ctx[8] === /*wordButtonId*/
|
|
5866
|
+
ctx[3] ? "hidden" : "") + " " + /*isWordItemSelected*/
|
|
5867
|
+
(ctx[10] ? "bg-blue-1000 !border-blue-1000 raw-focus-ring !cursor-pointer" : "bg-gray-100") + " " + (!/*currentSelectedItemId*/
|
|
5868
|
+
ctx[9] && !/*disabledClick*/
|
|
5869
|
+
ctx[6] ? "td:hover-focus-ring td:hover:bg-violet-100 !cursor-pointer" : "!cursor-default") + " " + /*resultType*/
|
|
5870
|
+
(ctx[1] === ANSWER_CORRECT && !/*isWordItemSelected*/
|
|
5871
|
+
ctx[10] ? "border-green-800 bg-green-300" : (
|
|
5872
|
+
/*resultType*/
|
|
5873
|
+
ctx[1] === ANSWER_INCORRECT && !/*isWordItemSelected*/
|
|
5874
|
+
ctx[10] ? "border-red-800 bg-red-300" : (
|
|
5875
|
+
/*resultType*/
|
|
5876
|
+
ctx[1] === ANSWER_MISSED ? "border-green-800" : ""
|
|
5877
|
+
)
|
|
5878
|
+
)) + " " + /*resultType*/
|
|
5879
|
+
((ctx[1] === ANSWER_CORRECT || /*resultType*/
|
|
5880
|
+
ctx[1] === ANSWER_INCORRECT) && !/*isWordItemSelected*/
|
|
5881
|
+
ctx[10] ? "td:hover:border-gray-800" : ""))) {
|
|
5549
5882
|
attr(button, "class", button_class_value);
|
|
5550
5883
|
}
|
|
5551
5884
|
},
|
|
5552
5885
|
i(local) {
|
|
5553
5886
|
if (current)
|
|
5554
5887
|
return;
|
|
5555
|
-
transition_in(
|
|
5888
|
+
transition_in(if_block0);
|
|
5889
|
+
transition_in(if_block1);
|
|
5556
5890
|
current = true;
|
|
5557
5891
|
},
|
|
5558
5892
|
o(local) {
|
|
5559
|
-
transition_out(
|
|
5893
|
+
transition_out(if_block0);
|
|
5894
|
+
transition_out(if_block1);
|
|
5560
5895
|
current = false;
|
|
5561
5896
|
},
|
|
5562
5897
|
d(detaching) {
|
|
5563
5898
|
if (detaching) {
|
|
5564
5899
|
detach(button);
|
|
5565
5900
|
}
|
|
5566
|
-
|
|
5567
|
-
|
|
5901
|
+
if_blocks[current_block_type_index].d();
|
|
5902
|
+
if (if_block1)
|
|
5903
|
+
if_block1.d();
|
|
5904
|
+
ctx[15](null);
|
|
5568
5905
|
mounted = false;
|
|
5569
5906
|
run_all(dispose);
|
|
5570
5907
|
}
|
|
@@ -5572,12 +5909,14 @@
|
|
|
5572
5909
|
}
|
|
5573
5910
|
function instance5($$self, $$props, $$invalidate) {
|
|
5574
5911
|
let { word = "" } = $$props;
|
|
5912
|
+
let { resultType = "" } = $$props;
|
|
5575
5913
|
let { otherClass = "" } = $$props;
|
|
5576
5914
|
let { wordButtonId = "" } = $$props;
|
|
5577
5915
|
let { isClonedItem = false } = $$props;
|
|
5578
5916
|
let { containerId = "" } = $$props;
|
|
5579
5917
|
let { tabIndex = -1 } = $$props;
|
|
5580
5918
|
let { wordFocus = false } = $$props;
|
|
5919
|
+
let { disabledClick = false } = $$props;
|
|
5581
5920
|
let considerCloneItemId = "";
|
|
5582
5921
|
let currentSelectedItemId = "";
|
|
5583
5922
|
let isWordItemSelected = false;
|
|
@@ -5585,12 +5924,12 @@
|
|
|
5585
5924
|
let wordButton;
|
|
5586
5925
|
categoriseSettings.subscribe((value) => {
|
|
5587
5926
|
const { considerCloneItemId: storeConsiderCloneItemId, selectedItemId: storeSelectedItemId } = value;
|
|
5588
|
-
$$invalidate(
|
|
5589
|
-
$$invalidate(
|
|
5590
|
-
$$invalidate(
|
|
5927
|
+
$$invalidate(8, considerCloneItemId = storeConsiderCloneItemId);
|
|
5928
|
+
$$invalidate(9, currentSelectedItemId = storeSelectedItemId);
|
|
5929
|
+
$$invalidate(10, isWordItemSelected = currentSelectedItemId === wordButtonId);
|
|
5591
5930
|
});
|
|
5592
5931
|
const selectItem = (itemId) => {
|
|
5593
|
-
if (isSelecItemFunctionCalled) {
|
|
5932
|
+
if (isSelecItemFunctionCalled || disabledClick) {
|
|
5594
5933
|
return;
|
|
5595
5934
|
}
|
|
5596
5935
|
isSelecItemFunctionCalled = true;
|
|
@@ -5637,28 +5976,32 @@
|
|
|
5637
5976
|
function button_binding($$value) {
|
|
5638
5977
|
binding_callbacks[$$value ? "unshift" : "push"](() => {
|
|
5639
5978
|
wordButton = $$value;
|
|
5640
|
-
$$invalidate(
|
|
5979
|
+
$$invalidate(7, wordButton);
|
|
5641
5980
|
});
|
|
5642
5981
|
}
|
|
5643
5982
|
$$self.$$set = ($$props2) => {
|
|
5644
5983
|
if ("word" in $$props2)
|
|
5645
5984
|
$$invalidate(0, word = $$props2.word);
|
|
5985
|
+
if ("resultType" in $$props2)
|
|
5986
|
+
$$invalidate(1, resultType = $$props2.resultType);
|
|
5646
5987
|
if ("otherClass" in $$props2)
|
|
5647
|
-
$$invalidate(
|
|
5988
|
+
$$invalidate(2, otherClass = $$props2.otherClass);
|
|
5648
5989
|
if ("wordButtonId" in $$props2)
|
|
5649
|
-
$$invalidate(
|
|
5990
|
+
$$invalidate(3, wordButtonId = $$props2.wordButtonId);
|
|
5650
5991
|
if ("isClonedItem" in $$props2)
|
|
5651
|
-
$$invalidate(
|
|
5992
|
+
$$invalidate(4, isClonedItem = $$props2.isClonedItem);
|
|
5652
5993
|
if ("containerId" in $$props2)
|
|
5653
|
-
$$invalidate(
|
|
5994
|
+
$$invalidate(13, containerId = $$props2.containerId);
|
|
5654
5995
|
if ("tabIndex" in $$props2)
|
|
5655
|
-
$$invalidate(
|
|
5996
|
+
$$invalidate(5, tabIndex = $$props2.tabIndex);
|
|
5656
5997
|
if ("wordFocus" in $$props2)
|
|
5657
|
-
$$invalidate(
|
|
5998
|
+
$$invalidate(14, wordFocus = $$props2.wordFocus);
|
|
5999
|
+
if ("disabledClick" in $$props2)
|
|
6000
|
+
$$invalidate(6, disabledClick = $$props2.disabledClick);
|
|
5658
6001
|
};
|
|
5659
6002
|
$$self.$$.update = () => {
|
|
5660
6003
|
if ($$self.$$.dirty & /*wordFocus, wordButton*/
|
|
5661
|
-
|
|
6004
|
+
16512) {
|
|
5662
6005
|
$:
|
|
5663
6006
|
if (wordFocus) {
|
|
5664
6007
|
setTimeout(
|
|
@@ -5672,10 +6015,12 @@
|
|
|
5672
6015
|
};
|
|
5673
6016
|
return [
|
|
5674
6017
|
word,
|
|
6018
|
+
resultType,
|
|
5675
6019
|
otherClass,
|
|
5676
6020
|
wordButtonId,
|
|
5677
6021
|
isClonedItem,
|
|
5678
6022
|
tabIndex,
|
|
6023
|
+
disabledClick,
|
|
5679
6024
|
wordButton,
|
|
5680
6025
|
considerCloneItemId,
|
|
5681
6026
|
currentSelectedItemId,
|
|
@@ -5690,14 +6035,16 @@
|
|
|
5690
6035
|
var PromptCategoriseWordButton = class extends SvelteComponent {
|
|
5691
6036
|
constructor(options) {
|
|
5692
6037
|
super();
|
|
5693
|
-
init(this, options, instance5,
|
|
6038
|
+
init(this, options, instance5, create_fragment9, safe_not_equal, {
|
|
5694
6039
|
word: 0,
|
|
5695
|
-
|
|
5696
|
-
|
|
5697
|
-
|
|
5698
|
-
|
|
5699
|
-
|
|
5700
|
-
|
|
6040
|
+
resultType: 1,
|
|
6041
|
+
otherClass: 2,
|
|
6042
|
+
wordButtonId: 3,
|
|
6043
|
+
isClonedItem: 4,
|
|
6044
|
+
containerId: 13,
|
|
6045
|
+
tabIndex: 5,
|
|
6046
|
+
wordFocus: 14,
|
|
6047
|
+
disabledClick: 6
|
|
5701
6048
|
});
|
|
5702
6049
|
}
|
|
5703
6050
|
get word() {
|
|
@@ -5707,50 +6054,64 @@
|
|
|
5707
6054
|
this.$$set({ word });
|
|
5708
6055
|
flush();
|
|
5709
6056
|
}
|
|
5710
|
-
get
|
|
6057
|
+
get resultType() {
|
|
5711
6058
|
return this.$$.ctx[1];
|
|
5712
6059
|
}
|
|
6060
|
+
set resultType(resultType) {
|
|
6061
|
+
this.$$set({ resultType });
|
|
6062
|
+
flush();
|
|
6063
|
+
}
|
|
6064
|
+
get otherClass() {
|
|
6065
|
+
return this.$$.ctx[2];
|
|
6066
|
+
}
|
|
5713
6067
|
set otherClass(otherClass) {
|
|
5714
6068
|
this.$$set({ otherClass });
|
|
5715
6069
|
flush();
|
|
5716
6070
|
}
|
|
5717
6071
|
get wordButtonId() {
|
|
5718
|
-
return this.$$.ctx[
|
|
6072
|
+
return this.$$.ctx[3];
|
|
5719
6073
|
}
|
|
5720
6074
|
set wordButtonId(wordButtonId) {
|
|
5721
6075
|
this.$$set({ wordButtonId });
|
|
5722
6076
|
flush();
|
|
5723
6077
|
}
|
|
5724
6078
|
get isClonedItem() {
|
|
5725
|
-
return this.$$.ctx[
|
|
6079
|
+
return this.$$.ctx[4];
|
|
5726
6080
|
}
|
|
5727
6081
|
set isClonedItem(isClonedItem) {
|
|
5728
6082
|
this.$$set({ isClonedItem });
|
|
5729
6083
|
flush();
|
|
5730
6084
|
}
|
|
5731
6085
|
get containerId() {
|
|
5732
|
-
return this.$$.ctx[
|
|
6086
|
+
return this.$$.ctx[13];
|
|
5733
6087
|
}
|
|
5734
6088
|
set containerId(containerId) {
|
|
5735
6089
|
this.$$set({ containerId });
|
|
5736
6090
|
flush();
|
|
5737
6091
|
}
|
|
5738
6092
|
get tabIndex() {
|
|
5739
|
-
return this.$$.ctx[
|
|
6093
|
+
return this.$$.ctx[5];
|
|
5740
6094
|
}
|
|
5741
6095
|
set tabIndex(tabIndex) {
|
|
5742
6096
|
this.$$set({ tabIndex });
|
|
5743
6097
|
flush();
|
|
5744
6098
|
}
|
|
5745
6099
|
get wordFocus() {
|
|
5746
|
-
return this.$$.ctx[
|
|
6100
|
+
return this.$$.ctx[14];
|
|
5747
6101
|
}
|
|
5748
6102
|
set wordFocus(wordFocus) {
|
|
5749
6103
|
this.$$set({ wordFocus });
|
|
5750
6104
|
flush();
|
|
5751
6105
|
}
|
|
6106
|
+
get disabledClick() {
|
|
6107
|
+
return this.$$.ctx[6];
|
|
6108
|
+
}
|
|
6109
|
+
set disabledClick(disabledClick) {
|
|
6110
|
+
this.$$set({ disabledClick });
|
|
6111
|
+
flush();
|
|
6112
|
+
}
|
|
5752
6113
|
};
|
|
5753
|
-
customElements.define("prompt-categorise-word-button", create_custom_element(PromptCategoriseWordButton, { "word": {}, "otherClass": {}, "wordButtonId": {}, "isClonedItem": { "type": "Boolean" }, "containerId": {}, "tabIndex": {}, "wordFocus": { "type": "Boolean" } }, [], [], true));
|
|
6114
|
+
customElements.define("prompt-categorise-word-button", create_custom_element(PromptCategoriseWordButton, { "word": {}, "resultType": {}, "otherClass": {}, "wordButtonId": {}, "isClonedItem": { "type": "Boolean" }, "containerId": {}, "tabIndex": {}, "wordFocus": { "type": "Boolean" }, "disabledClick": { "type": "Boolean" } }, [], [], true));
|
|
5754
6115
|
var PromptCategoriseWordButton_default = PromptCategoriseWordButton;
|
|
5755
6116
|
|
|
5756
6117
|
// src/lib/stores/modal.ts
|
|
@@ -5792,10 +6153,10 @@
|
|
|
5792
6153
|
// src/lib/components/prompt/categorise/PromptCategoriseDndContainer.svelte
|
|
5793
6154
|
function get_each_context2(ctx, list, i) {
|
|
5794
6155
|
const child_ctx = ctx.slice();
|
|
5795
|
-
child_ctx[
|
|
6156
|
+
child_ctx[33] = list[i];
|
|
5796
6157
|
return child_ctx;
|
|
5797
6158
|
}
|
|
5798
|
-
function
|
|
6159
|
+
function create_if_block_24(ctx) {
|
|
5799
6160
|
let button;
|
|
5800
6161
|
let button_class_value;
|
|
5801
6162
|
let mounted;
|
|
@@ -5807,10 +6168,10 @@
|
|
|
5807
6168
|
button,
|
|
5808
6169
|
"aria-label",
|
|
5809
6170
|
/*ariaLabel*/
|
|
5810
|
-
ctx[
|
|
6171
|
+
ctx[6]
|
|
5811
6172
|
);
|
|
5812
6173
|
attr(button, "class", button_class_value = "focus-ring absolute inset-0 bg-transparent rounded-lg focus-visible:border " + /*isContainerWordBin*/
|
|
5813
|
-
(ctx[
|
|
6174
|
+
(ctx[17] ? "focus-visible:border-gray-400" : "focus-visible:border-gray-800"));
|
|
5814
6175
|
},
|
|
5815
6176
|
m(target, anchor) {
|
|
5816
6177
|
insert(target, button, anchor);
|
|
@@ -5819,19 +6180,19 @@
|
|
|
5819
6180
|
button,
|
|
5820
6181
|
"click",
|
|
5821
6182
|
/*addAnswerItem*/
|
|
5822
|
-
ctx[
|
|
6183
|
+
ctx[20]
|
|
5823
6184
|
);
|
|
5824
6185
|
mounted = true;
|
|
5825
6186
|
}
|
|
5826
6187
|
},
|
|
5827
6188
|
p(ctx2, dirty) {
|
|
5828
6189
|
if (dirty[0] & /*ariaLabel*/
|
|
5829
|
-
|
|
6190
|
+
64) {
|
|
5830
6191
|
attr(
|
|
5831
6192
|
button,
|
|
5832
6193
|
"aria-label",
|
|
5833
6194
|
/*ariaLabel*/
|
|
5834
|
-
ctx2[
|
|
6195
|
+
ctx2[6]
|
|
5835
6196
|
);
|
|
5836
6197
|
}
|
|
5837
6198
|
},
|
|
@@ -5844,7 +6205,7 @@
|
|
|
5844
6205
|
}
|
|
5845
6206
|
};
|
|
5846
6207
|
}
|
|
5847
|
-
function
|
|
6208
|
+
function create_if_block_16(ctx) {
|
|
5848
6209
|
let div;
|
|
5849
6210
|
let mounted;
|
|
5850
6211
|
let dispose;
|
|
@@ -5864,13 +6225,13 @@
|
|
|
5864
6225
|
div,
|
|
5865
6226
|
"click",
|
|
5866
6227
|
/*addAnswerItem*/
|
|
5867
|
-
ctx[
|
|
6228
|
+
ctx[20]
|
|
5868
6229
|
),
|
|
5869
6230
|
listen(
|
|
5870
6231
|
div,
|
|
5871
6232
|
"keypress",
|
|
5872
6233
|
/*addAnswerItem*/
|
|
5873
|
-
ctx[
|
|
6234
|
+
ctx[20]
|
|
5874
6235
|
)
|
|
5875
6236
|
];
|
|
5876
6237
|
mounted = true;
|
|
@@ -5886,50 +6247,92 @@
|
|
|
5886
6247
|
}
|
|
5887
6248
|
};
|
|
5888
6249
|
}
|
|
6250
|
+
function create_if_block6(ctx) {
|
|
6251
|
+
let div;
|
|
6252
|
+
let t2;
|
|
6253
|
+
let div_class_value;
|
|
6254
|
+
return {
|
|
6255
|
+
c() {
|
|
6256
|
+
div = element("div");
|
|
6257
|
+
t2 = text("Missing answers:");
|
|
6258
|
+
attr(div, "class", div_class_value = "text-base text-charcoal font-semibold w-full mt-1 mb-2 " + (!/*showButton*/
|
|
6259
|
+
ctx[4] ? "hidden md:missing-answer-label" : "missing-answer-label"));
|
|
6260
|
+
},
|
|
6261
|
+
m(target, anchor) {
|
|
6262
|
+
insert(target, div, anchor);
|
|
6263
|
+
append(div, t2);
|
|
6264
|
+
},
|
|
6265
|
+
p(ctx2, dirty) {
|
|
6266
|
+
if (dirty[0] & /*showButton*/
|
|
6267
|
+
16 && div_class_value !== (div_class_value = "text-base text-charcoal font-semibold w-full mt-1 mb-2 " + (!/*showButton*/
|
|
6268
|
+
ctx2[4] ? "hidden md:missing-answer-label" : "missing-answer-label"))) {
|
|
6269
|
+
attr(div, "class", div_class_value);
|
|
6270
|
+
}
|
|
6271
|
+
},
|
|
6272
|
+
d(detaching) {
|
|
6273
|
+
if (detaching) {
|
|
6274
|
+
detach(div);
|
|
6275
|
+
}
|
|
6276
|
+
}
|
|
6277
|
+
};
|
|
6278
|
+
}
|
|
5889
6279
|
function create_each_block2(key_1, ctx) {
|
|
5890
6280
|
let first;
|
|
6281
|
+
let t2;
|
|
5891
6282
|
let promptcategorisewordbutton;
|
|
5892
6283
|
let current;
|
|
6284
|
+
let if_block = (
|
|
6285
|
+
/*item*/
|
|
6286
|
+
ctx[33].type === ANSWER_MISSED && create_if_block6(ctx)
|
|
6287
|
+
);
|
|
5893
6288
|
promptcategorisewordbutton = new PromptCategoriseWordButton_default({
|
|
5894
6289
|
props: {
|
|
5895
6290
|
otherClass: "mr-2 mb-2 last:mr-0 " + /*item*/
|
|
5896
|
-
(ctx[
|
|
6291
|
+
(ctx[33].id === /*considerItemId*/
|
|
5897
6292
|
ctx[8] ? "!bg-violet-150" : "") + "\n " + (!/*showButton*/
|
|
5898
|
-
ctx[
|
|
5899
|
-
(ctx[
|
|
6293
|
+
ctx[4] ? "hidden md:flex" : "") + "\n " + /*items*/
|
|
6294
|
+
(ctx[15][
|
|
5900
6295
|
/*currentWordBinIndex*/
|
|
5901
6296
|
ctx[11]
|
|
5902
6297
|
]?.id !== /*item*/
|
|
5903
|
-
ctx[
|
|
5904
|
-
ctx[
|
|
6298
|
+
ctx[33].id && /*isContainerWordBin*/
|
|
6299
|
+
ctx[17] ? "hidden md:flex" : ""),
|
|
5905
6300
|
word: (
|
|
5906
6301
|
/*item*/
|
|
5907
|
-
ctx[
|
|
6302
|
+
ctx[33].text
|
|
5908
6303
|
),
|
|
5909
6304
|
wordButtonId: (
|
|
5910
6305
|
/*item*/
|
|
5911
|
-
ctx[
|
|
6306
|
+
ctx[33].id
|
|
5912
6307
|
),
|
|
5913
6308
|
isClonedItem: (
|
|
5914
6309
|
/*item*/
|
|
5915
|
-
ctx[
|
|
6310
|
+
ctx[33].isClonedItem
|
|
5916
6311
|
),
|
|
5917
6312
|
containerId: (
|
|
5918
6313
|
/*containerId*/
|
|
5919
|
-
ctx[
|
|
6314
|
+
ctx[2]
|
|
5920
6315
|
),
|
|
5921
6316
|
tabIndex: (
|
|
5922
6317
|
/*currentTabContainer*/
|
|
5923
6318
|
ctx[13] !== /*containerId*/
|
|
5924
|
-
ctx[
|
|
6319
|
+
ctx[2] || /*isModalOpen*/
|
|
5925
6320
|
ctx[14] ? -1 : 0
|
|
5926
6321
|
),
|
|
5927
6322
|
wordFocus: (
|
|
5928
6323
|
/*currentTabContainer*/
|
|
5929
6324
|
ctx[13] === /*containerId*/
|
|
5930
|
-
ctx[
|
|
5931
|
-
ctx[
|
|
5932
|
-
ctx[
|
|
6325
|
+
ctx[2] && /*item*/
|
|
6326
|
+
ctx[33].id === /*items*/
|
|
6327
|
+
ctx[15][0].id
|
|
6328
|
+
),
|
|
6329
|
+
disabledClick: (
|
|
6330
|
+
/*isFinished*/
|
|
6331
|
+
ctx[7]
|
|
6332
|
+
),
|
|
6333
|
+
resultType: (
|
|
6334
|
+
/*item*/
|
|
6335
|
+
ctx[33].type
|
|
5933
6336
|
)
|
|
5934
6337
|
}
|
|
5935
6338
|
});
|
|
@@ -5938,58 +6341,87 @@
|
|
|
5938
6341
|
first: null,
|
|
5939
6342
|
c() {
|
|
5940
6343
|
first = empty();
|
|
6344
|
+
if (if_block)
|
|
6345
|
+
if_block.c();
|
|
6346
|
+
t2 = space();
|
|
5941
6347
|
create_component(promptcategorisewordbutton.$$.fragment);
|
|
5942
6348
|
this.first = first;
|
|
5943
6349
|
},
|
|
5944
6350
|
m(target, anchor) {
|
|
5945
6351
|
insert(target, first, anchor);
|
|
6352
|
+
if (if_block)
|
|
6353
|
+
if_block.m(target, anchor);
|
|
6354
|
+
insert(target, t2, anchor);
|
|
5946
6355
|
mount_component(promptcategorisewordbutton, target, anchor);
|
|
5947
6356
|
current = true;
|
|
5948
6357
|
},
|
|
5949
6358
|
p(new_ctx, dirty) {
|
|
5950
6359
|
ctx = new_ctx;
|
|
6360
|
+
if (
|
|
6361
|
+
/*item*/
|
|
6362
|
+
ctx[33].type === ANSWER_MISSED
|
|
6363
|
+
) {
|
|
6364
|
+
if (if_block) {
|
|
6365
|
+
if_block.p(ctx, dirty);
|
|
6366
|
+
} else {
|
|
6367
|
+
if_block = create_if_block6(ctx);
|
|
6368
|
+
if_block.c();
|
|
6369
|
+
if_block.m(t2.parentNode, t2);
|
|
6370
|
+
}
|
|
6371
|
+
} else if (if_block) {
|
|
6372
|
+
if_block.d(1);
|
|
6373
|
+
if_block = null;
|
|
6374
|
+
}
|
|
5951
6375
|
const promptcategorisewordbutton_changes = {};
|
|
5952
6376
|
if (dirty[0] & /*items, considerItemId, showButton, currentWordBinIndex*/
|
|
5953
|
-
|
|
6377
|
+
35088)
|
|
5954
6378
|
promptcategorisewordbutton_changes.otherClass = "mr-2 mb-2 last:mr-0 " + /*item*/
|
|
5955
|
-
(ctx[
|
|
6379
|
+
(ctx[33].id === /*considerItemId*/
|
|
5956
6380
|
ctx[8] ? "!bg-violet-150" : "") + "\n " + (!/*showButton*/
|
|
5957
|
-
ctx[
|
|
5958
|
-
(ctx[
|
|
6381
|
+
ctx[4] ? "hidden md:flex" : "") + "\n " + /*items*/
|
|
6382
|
+
(ctx[15][
|
|
5959
6383
|
/*currentWordBinIndex*/
|
|
5960
6384
|
ctx[11]
|
|
5961
6385
|
]?.id !== /*item*/
|
|
5962
|
-
ctx[
|
|
5963
|
-
ctx[
|
|
6386
|
+
ctx[33].id && /*isContainerWordBin*/
|
|
6387
|
+
ctx[17] ? "hidden md:flex" : "");
|
|
5964
6388
|
if (dirty[0] & /*items*/
|
|
5965
|
-
|
|
6389
|
+
32768)
|
|
5966
6390
|
promptcategorisewordbutton_changes.word = /*item*/
|
|
5967
|
-
ctx[
|
|
6391
|
+
ctx[33].text;
|
|
5968
6392
|
if (dirty[0] & /*items*/
|
|
5969
|
-
|
|
6393
|
+
32768)
|
|
5970
6394
|
promptcategorisewordbutton_changes.wordButtonId = /*item*/
|
|
5971
|
-
ctx[
|
|
6395
|
+
ctx[33].id;
|
|
5972
6396
|
if (dirty[0] & /*items*/
|
|
5973
|
-
|
|
6397
|
+
32768)
|
|
5974
6398
|
promptcategorisewordbutton_changes.isClonedItem = /*item*/
|
|
5975
|
-
ctx[
|
|
6399
|
+
ctx[33].isClonedItem;
|
|
5976
6400
|
if (dirty[0] & /*containerId*/
|
|
5977
|
-
|
|
6401
|
+
4)
|
|
5978
6402
|
promptcategorisewordbutton_changes.containerId = /*containerId*/
|
|
5979
|
-
ctx[
|
|
6403
|
+
ctx[2];
|
|
5980
6404
|
if (dirty[0] & /*currentTabContainer, containerId, isModalOpen*/
|
|
5981
|
-
|
|
6405
|
+
24580)
|
|
5982
6406
|
promptcategorisewordbutton_changes.tabIndex = /*currentTabContainer*/
|
|
5983
6407
|
ctx[13] !== /*containerId*/
|
|
5984
|
-
ctx[
|
|
6408
|
+
ctx[2] || /*isModalOpen*/
|
|
5985
6409
|
ctx[14] ? -1 : 0;
|
|
5986
6410
|
if (dirty[0] & /*currentTabContainer, containerId, items*/
|
|
5987
|
-
|
|
6411
|
+
40964)
|
|
5988
6412
|
promptcategorisewordbutton_changes.wordFocus = /*currentTabContainer*/
|
|
5989
6413
|
ctx[13] === /*containerId*/
|
|
5990
|
-
ctx[
|
|
5991
|
-
ctx[
|
|
5992
|
-
ctx[
|
|
6414
|
+
ctx[2] && /*item*/
|
|
6415
|
+
ctx[33].id === /*items*/
|
|
6416
|
+
ctx[15][0].id;
|
|
6417
|
+
if (dirty[0] & /*isFinished*/
|
|
6418
|
+
128)
|
|
6419
|
+
promptcategorisewordbutton_changes.disabledClick = /*isFinished*/
|
|
6420
|
+
ctx[7];
|
|
6421
|
+
if (dirty[0] & /*items*/
|
|
6422
|
+
32768)
|
|
6423
|
+
promptcategorisewordbutton_changes.resultType = /*item*/
|
|
6424
|
+
ctx[33].type;
|
|
5993
6425
|
promptcategorisewordbutton.$set(promptcategorisewordbutton_changes);
|
|
5994
6426
|
},
|
|
5995
6427
|
i(local) {
|
|
@@ -6005,12 +6437,15 @@
|
|
|
6005
6437
|
d(detaching) {
|
|
6006
6438
|
if (detaching) {
|
|
6007
6439
|
detach(first);
|
|
6440
|
+
detach(t2);
|
|
6008
6441
|
}
|
|
6442
|
+
if (if_block)
|
|
6443
|
+
if_block.d(detaching);
|
|
6009
6444
|
destroy_component(promptcategorisewordbutton, detaching);
|
|
6010
6445
|
}
|
|
6011
6446
|
};
|
|
6012
6447
|
}
|
|
6013
|
-
function
|
|
6448
|
+
function create_fragment10(ctx) {
|
|
6014
6449
|
let t0;
|
|
6015
6450
|
let t1;
|
|
6016
6451
|
let section;
|
|
@@ -6026,20 +6461,21 @@
|
|
|
6026
6461
|
/*dragDisabled*/
|
|
6027
6462
|
ctx[9] && /*sourceSelectedContainerId*/
|
|
6028
6463
|
ctx[10] !== /*containerId*/
|
|
6029
|
-
ctx[
|
|
6464
|
+
ctx[2] && !/*isFinished*/
|
|
6465
|
+
ctx[7] && create_if_block_24(ctx)
|
|
6030
6466
|
);
|
|
6031
6467
|
let if_block1 = (
|
|
6032
6468
|
/*totalRemainingWordBinItem*/
|
|
6033
6469
|
ctx[12] <= 0 && /*isContainerWordBin*/
|
|
6034
|
-
ctx[
|
|
6470
|
+
ctx[17] && create_if_block_16(ctx)
|
|
6035
6471
|
);
|
|
6036
6472
|
let each_value = ensure_array_like(Object.values(
|
|
6037
6473
|
/*items*/
|
|
6038
|
-
ctx[
|
|
6474
|
+
ctx[15]
|
|
6039
6475
|
));
|
|
6040
6476
|
const get_key = (ctx2) => (
|
|
6041
6477
|
/*item*/
|
|
6042
|
-
ctx2[
|
|
6478
|
+
ctx2[33].id
|
|
6043
6479
|
);
|
|
6044
6480
|
for (let i = 0; i < each_value.length; i += 1) {
|
|
6045
6481
|
let child_ctx = get_each_context2(ctx, each_value, i);
|
|
@@ -6060,17 +6496,17 @@
|
|
|
6060
6496
|
}
|
|
6061
6497
|
attr(section, "role", "group");
|
|
6062
6498
|
attr(section, "class", section_class_value = "flex flex-wrap " + /*containerClass*/
|
|
6063
|
-
ctx[
|
|
6499
|
+
ctx[0] + " category-content");
|
|
6064
6500
|
attr(section, "aria-dropeffect", "move");
|
|
6065
6501
|
attr(
|
|
6066
6502
|
section,
|
|
6067
6503
|
"id",
|
|
6068
6504
|
/*containerId*/
|
|
6069
|
-
ctx[
|
|
6505
|
+
ctx[2]
|
|
6070
6506
|
);
|
|
6071
6507
|
attr(section, "style", section_style_value = !/*isContainerWordBin*/
|
|
6072
|
-
ctx[
|
|
6073
|
-
ctx[
|
|
6508
|
+
ctx[17] ? `padding-top: ${/*paddingTop*/
|
|
6509
|
+
ctx[5]}px;` : "");
|
|
6074
6510
|
},
|
|
6075
6511
|
m(target, anchor) {
|
|
6076
6512
|
if (if_block0)
|
|
@@ -6091,19 +6527,19 @@
|
|
|
6091
6527
|
action_destroyer(dndzone_action = dndzone$2.call(null, section, {
|
|
6092
6528
|
items: (
|
|
6093
6529
|
/*items*/
|
|
6094
|
-
ctx[
|
|
6530
|
+
ctx[15]
|
|
6095
6531
|
),
|
|
6096
6532
|
flipDurationMs: (
|
|
6097
6533
|
/*flipDurationMs*/
|
|
6098
|
-
ctx[
|
|
6534
|
+
ctx[1]
|
|
6099
6535
|
),
|
|
6100
6536
|
type: (
|
|
6101
6537
|
/*type*/
|
|
6102
|
-
ctx[
|
|
6538
|
+
ctx[3]
|
|
6103
6539
|
),
|
|
6104
6540
|
dropTargetClasses: (
|
|
6105
6541
|
/*dropTargetClasses*/
|
|
6106
|
-
ctx[
|
|
6542
|
+
ctx[16]
|
|
6107
6543
|
),
|
|
6108
6544
|
morphDisabled: true,
|
|
6109
6545
|
dragDisabled: (
|
|
@@ -6118,13 +6554,13 @@
|
|
|
6118
6554
|
section,
|
|
6119
6555
|
"consider",
|
|
6120
6556
|
/*handleDndConsider*/
|
|
6121
|
-
ctx[
|
|
6557
|
+
ctx[18]
|
|
6122
6558
|
),
|
|
6123
6559
|
listen(
|
|
6124
6560
|
section,
|
|
6125
6561
|
"finalize",
|
|
6126
6562
|
/*handleDndFinalize*/
|
|
6127
|
-
ctx[
|
|
6563
|
+
ctx[19]
|
|
6128
6564
|
)
|
|
6129
6565
|
];
|
|
6130
6566
|
mounted = true;
|
|
@@ -6135,12 +6571,13 @@
|
|
|
6135
6571
|
/*dragDisabled*/
|
|
6136
6572
|
ctx2[9] && /*sourceSelectedContainerId*/
|
|
6137
6573
|
ctx2[10] !== /*containerId*/
|
|
6138
|
-
ctx2[
|
|
6574
|
+
ctx2[2] && !/*isFinished*/
|
|
6575
|
+
ctx2[7]
|
|
6139
6576
|
) {
|
|
6140
6577
|
if (if_block0) {
|
|
6141
6578
|
if_block0.p(ctx2, dirty);
|
|
6142
6579
|
} else {
|
|
6143
|
-
if_block0 =
|
|
6580
|
+
if_block0 = create_if_block_24(ctx2);
|
|
6144
6581
|
if_block0.c();
|
|
6145
6582
|
if_block0.m(t0.parentNode, t0);
|
|
6146
6583
|
}
|
|
@@ -6151,12 +6588,12 @@
|
|
|
6151
6588
|
if (
|
|
6152
6589
|
/*totalRemainingWordBinItem*/
|
|
6153
6590
|
ctx2[12] <= 0 && /*isContainerWordBin*/
|
|
6154
|
-
ctx2[
|
|
6591
|
+
ctx2[17]
|
|
6155
6592
|
) {
|
|
6156
6593
|
if (if_block1) {
|
|
6157
6594
|
if_block1.p(ctx2, dirty);
|
|
6158
6595
|
} else {
|
|
6159
|
-
if_block1 =
|
|
6596
|
+
if_block1 = create_if_block_16(ctx2);
|
|
6160
6597
|
if_block1.c();
|
|
6161
6598
|
if_block1.m(t1.parentNode, t1);
|
|
6162
6599
|
}
|
|
@@ -6164,54 +6601,54 @@
|
|
|
6164
6601
|
if_block1.d(1);
|
|
6165
6602
|
if_block1 = null;
|
|
6166
6603
|
}
|
|
6167
|
-
if (dirty[0] & /*items, considerItemId, showButton, currentWordBinIndex, isContainerWordBin, containerId, currentTabContainer, isModalOpen*/
|
|
6168
|
-
|
|
6604
|
+
if (dirty[0] & /*items, considerItemId, showButton, currentWordBinIndex, isContainerWordBin, containerId, currentTabContainer, isModalOpen, isFinished*/
|
|
6605
|
+
190868) {
|
|
6169
6606
|
each_value = ensure_array_like(Object.values(
|
|
6170
6607
|
/*items*/
|
|
6171
|
-
ctx2[
|
|
6608
|
+
ctx2[15]
|
|
6172
6609
|
));
|
|
6173
6610
|
group_outros();
|
|
6174
6611
|
each_blocks = update_keyed_each(each_blocks, dirty, get_key, 1, ctx2, each_value, each_1_lookup, section, outro_and_destroy_block, create_each_block2, null, get_each_context2);
|
|
6175
6612
|
check_outros();
|
|
6176
6613
|
}
|
|
6177
6614
|
if (!current || dirty[0] & /*containerClass*/
|
|
6178
|
-
|
|
6179
|
-
ctx2[
|
|
6615
|
+
1 && section_class_value !== (section_class_value = "flex flex-wrap " + /*containerClass*/
|
|
6616
|
+
ctx2[0] + " category-content")) {
|
|
6180
6617
|
attr(section, "class", section_class_value);
|
|
6181
6618
|
}
|
|
6182
6619
|
if (!current || dirty[0] & /*containerId*/
|
|
6183
|
-
|
|
6620
|
+
4) {
|
|
6184
6621
|
attr(
|
|
6185
6622
|
section,
|
|
6186
6623
|
"id",
|
|
6187
6624
|
/*containerId*/
|
|
6188
|
-
ctx2[
|
|
6625
|
+
ctx2[2]
|
|
6189
6626
|
);
|
|
6190
6627
|
}
|
|
6191
6628
|
if (!current || dirty[0] & /*paddingTop*/
|
|
6192
|
-
|
|
6193
|
-
ctx2[
|
|
6194
|
-
ctx2[
|
|
6629
|
+
32 && section_style_value !== (section_style_value = !/*isContainerWordBin*/
|
|
6630
|
+
ctx2[17] ? `padding-top: ${/*paddingTop*/
|
|
6631
|
+
ctx2[5]}px;` : "")) {
|
|
6195
6632
|
attr(section, "style", section_style_value);
|
|
6196
6633
|
}
|
|
6197
6634
|
if (dndzone_action && is_function(dndzone_action.update) && dirty[0] & /*items, flipDurationMs, type, dragDisabled*/
|
|
6198
|
-
|
|
6635
|
+
33290)
|
|
6199
6636
|
dndzone_action.update.call(null, {
|
|
6200
6637
|
items: (
|
|
6201
6638
|
/*items*/
|
|
6202
|
-
ctx2[
|
|
6639
|
+
ctx2[15]
|
|
6203
6640
|
),
|
|
6204
6641
|
flipDurationMs: (
|
|
6205
6642
|
/*flipDurationMs*/
|
|
6206
|
-
ctx2[
|
|
6643
|
+
ctx2[1]
|
|
6207
6644
|
),
|
|
6208
6645
|
type: (
|
|
6209
6646
|
/*type*/
|
|
6210
|
-
ctx2[
|
|
6647
|
+
ctx2[3]
|
|
6211
6648
|
),
|
|
6212
6649
|
dropTargetClasses: (
|
|
6213
6650
|
/*dropTargetClasses*/
|
|
6214
|
-
ctx2[
|
|
6651
|
+
ctx2[16]
|
|
6215
6652
|
),
|
|
6216
6653
|
morphDisabled: true,
|
|
6217
6654
|
dragDisabled: (
|
|
@@ -6256,7 +6693,6 @@
|
|
|
6256
6693
|
};
|
|
6257
6694
|
}
|
|
6258
6695
|
function instance6($$self, $$props, $$invalidate) {
|
|
6259
|
-
let { items = [] } = $$props;
|
|
6260
6696
|
let { containerClass = "" } = $$props;
|
|
6261
6697
|
let { flipDurationMs = 5 } = $$props;
|
|
6262
6698
|
let { containerId = "" } = $$props;
|
|
@@ -6264,9 +6700,12 @@
|
|
|
6264
6700
|
let { showButton = true } = $$props;
|
|
6265
6701
|
let { paddingTop = 73 } = $$props;
|
|
6266
6702
|
let { ariaLabel = "" } = $$props;
|
|
6703
|
+
let { isFinished = false } = $$props;
|
|
6704
|
+
let { correctAnswerList = [] } = $$props;
|
|
6705
|
+
let { isPreviewModeInteractive = false } = $$props;
|
|
6267
6706
|
let considerItemId = "";
|
|
6268
6707
|
let selectedItemId = "";
|
|
6269
|
-
let dragDisabled =
|
|
6708
|
+
let dragDisabled = isFinished;
|
|
6270
6709
|
let currentAnswer = [];
|
|
6271
6710
|
let sourceSelectedContainerId = "";
|
|
6272
6711
|
let cloneId;
|
|
@@ -6274,6 +6713,7 @@
|
|
|
6274
6713
|
let totalRemainingWordBinItem = 0;
|
|
6275
6714
|
let currentTabContainer = "";
|
|
6276
6715
|
let isModalOpen = false;
|
|
6716
|
+
let items = [];
|
|
6277
6717
|
const dispatch = createEventDispatcher();
|
|
6278
6718
|
const dropTargetClasses = ["!outline-none"];
|
|
6279
6719
|
const isContainerWordBin = containerId === CONTAINER_WORD_BIN_ID;
|
|
@@ -6285,7 +6725,7 @@
|
|
|
6285
6725
|
categoriseSettings.subscribe((value) => {
|
|
6286
6726
|
const { considerItemId: storeconsiderItemId, selectedItemId: storeSelectedItemId, currentAnswer: storeCurrentAnswer, sourceSelectedContainerId: storeSourceSelectedContainerId, currentWordBinIndex: storeCurrentWordBinIndex, currentTabContainer: storeCurrentTabContainer } = value;
|
|
6287
6727
|
$$invalidate(8, considerItemId = storeconsiderItemId);
|
|
6288
|
-
$$invalidate(9, dragDisabled = !!storeSelectedItemId);
|
|
6728
|
+
$$invalidate(9, dragDisabled = isFinished || !!storeSelectedItemId);
|
|
6289
6729
|
currentAnswer = storeCurrentAnswer;
|
|
6290
6730
|
selectedItemId = storeSelectedItemId;
|
|
6291
6731
|
$$invalidate(10, sourceSelectedContainerId = storeSourceSelectedContainerId);
|
|
@@ -6296,7 +6736,9 @@
|
|
|
6296
6736
|
if (storeCurrentAnswer) {
|
|
6297
6737
|
const currentAnswerList = currentAnswer.filter((answer) => answer.categoryId === containerId);
|
|
6298
6738
|
if (currentAnswerList.length) {
|
|
6299
|
-
$$invalidate(
|
|
6739
|
+
$$invalidate(15, items = currentAnswerList[0].itemId.map((rawAnswerId) => {
|
|
6740
|
+
const splitId = rawAnswerId.split(EAT_DASH);
|
|
6741
|
+
const answerId = splitId[0];
|
|
6300
6742
|
const answerIndex = rawCategoryItems.findIndex((answer) => answer.id === answerId);
|
|
6301
6743
|
if (answerId === considerItemId) {
|
|
6302
6744
|
return {
|
|
@@ -6306,7 +6748,10 @@
|
|
|
6306
6748
|
cloneId: rawCategoryItems[answerIndex].id
|
|
6307
6749
|
};
|
|
6308
6750
|
}
|
|
6309
|
-
return {
|
|
6751
|
+
return {
|
|
6752
|
+
...rawCategoryItems[answerIndex],
|
|
6753
|
+
type: isFinished || isPreviewModeInteractive ? splitId[1] : ""
|
|
6754
|
+
};
|
|
6310
6755
|
}));
|
|
6311
6756
|
}
|
|
6312
6757
|
}
|
|
@@ -6325,7 +6770,7 @@
|
|
|
6325
6770
|
const { sourceContainerId, sourceCloneContainerId } = get_store_value(categoriseSettings);
|
|
6326
6771
|
if (trigger === TRIGGERS.DRAG_STARTED) {
|
|
6327
6772
|
const { items: cateoryItems } = detail;
|
|
6328
|
-
$$invalidate(
|
|
6773
|
+
$$invalidate(15, items = cateoryItems);
|
|
6329
6774
|
const orginalId = items.filter((item) => item[SHADOW_ITEM_MARKER_PROPERTY_NAME]);
|
|
6330
6775
|
const originalItemIndex = items.findIndex((item) => item.id === orginalId[0].id);
|
|
6331
6776
|
items.splice(originalItemIndex, 1, {
|
|
@@ -6358,10 +6803,15 @@
|
|
|
6358
6803
|
const handleDndFinalize = (e2) => {
|
|
6359
6804
|
const { items: categoryItems, info } = e2.detail;
|
|
6360
6805
|
const { trigger, id } = info;
|
|
6361
|
-
$$invalidate(
|
|
6806
|
+
$$invalidate(15, items = categoryItems.filter((item) => !item.isClonedItem));
|
|
6362
6807
|
if (trigger === TRIGGERS.DROPPED_INTO_ZONE) {
|
|
6363
6808
|
const { currentTarget } = e2;
|
|
6364
6809
|
addAnswerItemStore(id, currentTarget.id);
|
|
6810
|
+
const itemIndex = rawCategoryItems.findIndex((item) => item.id === id);
|
|
6811
|
+
categoriseSettings.set({
|
|
6812
|
+
...get_store_value(categoriseSettings),
|
|
6813
|
+
selectedItemName: rawCategoryItems[itemIndex].text
|
|
6814
|
+
});
|
|
6365
6815
|
}
|
|
6366
6816
|
categoriseSettings.set({
|
|
6367
6817
|
...get_store_value(categoriseSettings),
|
|
@@ -6384,7 +6834,28 @@
|
|
|
6384
6834
|
item: itemList
|
|
6385
6835
|
};
|
|
6386
6836
|
}).filter((answer) => answer.item_id.length);
|
|
6387
|
-
|
|
6837
|
+
if (isPreviewModeInteractive) {
|
|
6838
|
+
const { answerList } = correctAnswerList;
|
|
6839
|
+
const answerResult = currentAnswer2.map((answer) => {
|
|
6840
|
+
const { categoryId: answerCategoryId, itemId: answerItemId } = answer;
|
|
6841
|
+
if (answerCategoryId !== CONTAINER_WORD_BIN_ID) {
|
|
6842
|
+
const items2 = answerItemId.map((item) => {
|
|
6843
|
+
return `${item}${EAT_DASH}${answerList[answerCategoryId].includes(item) ? ANSWER_CORRECT : ANSWER_INCORRECT}`;
|
|
6844
|
+
});
|
|
6845
|
+
return {
|
|
6846
|
+
categoryId: answerCategoryId,
|
|
6847
|
+
itemId: items2
|
|
6848
|
+
};
|
|
6849
|
+
}
|
|
6850
|
+
return { ...answer };
|
|
6851
|
+
});
|
|
6852
|
+
categoriseSettings.set({
|
|
6853
|
+
...get_store_value(categoriseSettings),
|
|
6854
|
+
currentAnswer: answerResult
|
|
6855
|
+
});
|
|
6856
|
+
} else {
|
|
6857
|
+
dispatch("saveCategory", { answer_list: categoryAnswer });
|
|
6858
|
+
}
|
|
6388
6859
|
};
|
|
6389
6860
|
const resetCategoriesSettings = () => {
|
|
6390
6861
|
categoriseSettings.set({
|
|
@@ -6442,6 +6913,11 @@
|
|
|
6442
6913
|
};
|
|
6443
6914
|
const addAnswerItemStore = (itemId, targetContainerId) => {
|
|
6444
6915
|
let updatedCurrentAnswer;
|
|
6916
|
+
let previewResultSr = "";
|
|
6917
|
+
if (targetContainerId !== CONTAINER_WORD_BIN_ID && isPreviewModeInteractive) {
|
|
6918
|
+
const { answerList } = correctAnswerList;
|
|
6919
|
+
previewResultSr = answerList[containerId].includes(itemId) ? ANSWER_CORRECT : ANSWER_INCORRECT;
|
|
6920
|
+
}
|
|
6445
6921
|
if (!currentAnswer.length) {
|
|
6446
6922
|
updatedCurrentAnswer = [
|
|
6447
6923
|
{
|
|
@@ -6450,8 +6926,15 @@
|
|
|
6450
6926
|
}
|
|
6451
6927
|
];
|
|
6452
6928
|
} else {
|
|
6453
|
-
const
|
|
6454
|
-
|
|
6929
|
+
const filteredDash = currentAnswer.map((answer) => {
|
|
6930
|
+
const { itemId: itemId2 } = answer;
|
|
6931
|
+
const items2 = itemId2.map((item) => {
|
|
6932
|
+
return item.split(EAT_DASH)[0];
|
|
6933
|
+
});
|
|
6934
|
+
return { ...answer, itemId: items2 };
|
|
6935
|
+
});
|
|
6936
|
+
const itemCategoryIndex = filteredDash.findIndex((answer) => answer.itemId.includes(itemId));
|
|
6937
|
+
const itemIndex = filteredDash[itemCategoryIndex].itemId.indexOf(itemId);
|
|
6455
6938
|
if (targetContainerId === currentAnswer[itemCategoryIndex].categoryId) {
|
|
6456
6939
|
return currentAnswer;
|
|
6457
6940
|
}
|
|
@@ -6474,7 +6957,8 @@
|
|
|
6474
6957
|
showAddItemAnimation(targetContainerId);
|
|
6475
6958
|
categoriseSettings.set({
|
|
6476
6959
|
...get_store_value(categoriseSettings),
|
|
6477
|
-
currentAnswer: updatedCurrentAnswer
|
|
6960
|
+
currentAnswer: updatedCurrentAnswer,
|
|
6961
|
+
previewResultSr
|
|
6478
6962
|
});
|
|
6479
6963
|
saveAnswer();
|
|
6480
6964
|
};
|
|
@@ -6483,25 +6967,28 @@
|
|
|
6483
6967
|
useNavigateItem(currentWordBinIndex2, currentAnswer2, "right", true);
|
|
6484
6968
|
};
|
|
6485
6969
|
$$self.$$set = ($$props2) => {
|
|
6486
|
-
if ("items" in $$props2)
|
|
6487
|
-
$$invalidate(0, items = $$props2.items);
|
|
6488
6970
|
if ("containerClass" in $$props2)
|
|
6489
|
-
$$invalidate(
|
|
6971
|
+
$$invalidate(0, containerClass = $$props2.containerClass);
|
|
6490
6972
|
if ("flipDurationMs" in $$props2)
|
|
6491
|
-
$$invalidate(
|
|
6973
|
+
$$invalidate(1, flipDurationMs = $$props2.flipDurationMs);
|
|
6492
6974
|
if ("containerId" in $$props2)
|
|
6493
|
-
$$invalidate(
|
|
6975
|
+
$$invalidate(2, containerId = $$props2.containerId);
|
|
6494
6976
|
if ("type" in $$props2)
|
|
6495
|
-
$$invalidate(
|
|
6977
|
+
$$invalidate(3, type = $$props2.type);
|
|
6496
6978
|
if ("showButton" in $$props2)
|
|
6497
|
-
$$invalidate(
|
|
6979
|
+
$$invalidate(4, showButton = $$props2.showButton);
|
|
6498
6980
|
if ("paddingTop" in $$props2)
|
|
6499
|
-
$$invalidate(
|
|
6981
|
+
$$invalidate(5, paddingTop = $$props2.paddingTop);
|
|
6500
6982
|
if ("ariaLabel" in $$props2)
|
|
6501
|
-
$$invalidate(
|
|
6983
|
+
$$invalidate(6, ariaLabel = $$props2.ariaLabel);
|
|
6984
|
+
if ("isFinished" in $$props2)
|
|
6985
|
+
$$invalidate(7, isFinished = $$props2.isFinished);
|
|
6986
|
+
if ("correctAnswerList" in $$props2)
|
|
6987
|
+
$$invalidate(21, correctAnswerList = $$props2.correctAnswerList);
|
|
6988
|
+
if ("isPreviewModeInteractive" in $$props2)
|
|
6989
|
+
$$invalidate(22, isPreviewModeInteractive = $$props2.isPreviewModeInteractive);
|
|
6502
6990
|
};
|
|
6503
6991
|
return [
|
|
6504
|
-
items,
|
|
6505
6992
|
containerClass,
|
|
6506
6993
|
flipDurationMs,
|
|
6507
6994
|
containerId,
|
|
@@ -6509,6 +6996,7 @@
|
|
|
6509
6996
|
showButton,
|
|
6510
6997
|
paddingTop,
|
|
6511
6998
|
ariaLabel,
|
|
6999
|
+
isFinished,
|
|
6512
7000
|
considerItemId,
|
|
6513
7001
|
dragDisabled,
|
|
6514
7002
|
sourceSelectedContainerId,
|
|
@@ -6516,11 +7004,14 @@
|
|
|
6516
7004
|
totalRemainingWordBinItem,
|
|
6517
7005
|
currentTabContainer,
|
|
6518
7006
|
isModalOpen,
|
|
7007
|
+
items,
|
|
6519
7008
|
dropTargetClasses,
|
|
6520
7009
|
isContainerWordBin,
|
|
6521
7010
|
handleDndConsider,
|
|
6522
7011
|
handleDndFinalize,
|
|
6523
|
-
addAnswerItem
|
|
7012
|
+
addAnswerItem,
|
|
7013
|
+
correctAnswerList,
|
|
7014
|
+
isPreviewModeInteractive
|
|
6524
7015
|
];
|
|
6525
7016
|
}
|
|
6526
7017
|
var PromptCategoriseDndContainer = class extends SvelteComponent {
|
|
@@ -6530,84 +7021,100 @@
|
|
|
6530
7021
|
this,
|
|
6531
7022
|
options,
|
|
6532
7023
|
instance6,
|
|
6533
|
-
|
|
7024
|
+
create_fragment10,
|
|
6534
7025
|
safe_not_equal,
|
|
6535
7026
|
{
|
|
6536
|
-
|
|
6537
|
-
|
|
6538
|
-
|
|
6539
|
-
|
|
6540
|
-
|
|
6541
|
-
|
|
6542
|
-
|
|
6543
|
-
|
|
7027
|
+
containerClass: 0,
|
|
7028
|
+
flipDurationMs: 1,
|
|
7029
|
+
containerId: 2,
|
|
7030
|
+
type: 3,
|
|
7031
|
+
showButton: 4,
|
|
7032
|
+
paddingTop: 5,
|
|
7033
|
+
ariaLabel: 6,
|
|
7034
|
+
isFinished: 7,
|
|
7035
|
+
correctAnswerList: 21,
|
|
7036
|
+
isPreviewModeInteractive: 22
|
|
6544
7037
|
},
|
|
6545
7038
|
null,
|
|
6546
7039
|
[-1, -1]
|
|
6547
7040
|
);
|
|
6548
7041
|
}
|
|
6549
|
-
get items() {
|
|
6550
|
-
return this.$$.ctx[0];
|
|
6551
|
-
}
|
|
6552
|
-
set items(items) {
|
|
6553
|
-
this.$$set({ items });
|
|
6554
|
-
flush();
|
|
6555
|
-
}
|
|
6556
7042
|
get containerClass() {
|
|
6557
|
-
return this.$$.ctx[
|
|
7043
|
+
return this.$$.ctx[0];
|
|
6558
7044
|
}
|
|
6559
7045
|
set containerClass(containerClass) {
|
|
6560
7046
|
this.$$set({ containerClass });
|
|
6561
7047
|
flush();
|
|
6562
7048
|
}
|
|
6563
7049
|
get flipDurationMs() {
|
|
6564
|
-
return this.$$.ctx[
|
|
7050
|
+
return this.$$.ctx[1];
|
|
6565
7051
|
}
|
|
6566
7052
|
set flipDurationMs(flipDurationMs) {
|
|
6567
7053
|
this.$$set({ flipDurationMs });
|
|
6568
7054
|
flush();
|
|
6569
7055
|
}
|
|
6570
7056
|
get containerId() {
|
|
6571
|
-
return this.$$.ctx[
|
|
7057
|
+
return this.$$.ctx[2];
|
|
6572
7058
|
}
|
|
6573
7059
|
set containerId(containerId) {
|
|
6574
7060
|
this.$$set({ containerId });
|
|
6575
7061
|
flush();
|
|
6576
7062
|
}
|
|
6577
7063
|
get type() {
|
|
6578
|
-
return this.$$.ctx[
|
|
7064
|
+
return this.$$.ctx[3];
|
|
6579
7065
|
}
|
|
6580
7066
|
set type(type) {
|
|
6581
7067
|
this.$$set({ type });
|
|
6582
7068
|
flush();
|
|
6583
7069
|
}
|
|
6584
7070
|
get showButton() {
|
|
6585
|
-
return this.$$.ctx[
|
|
7071
|
+
return this.$$.ctx[4];
|
|
6586
7072
|
}
|
|
6587
7073
|
set showButton(showButton) {
|
|
6588
7074
|
this.$$set({ showButton });
|
|
6589
7075
|
flush();
|
|
6590
7076
|
}
|
|
6591
7077
|
get paddingTop() {
|
|
6592
|
-
return this.$$.ctx[
|
|
7078
|
+
return this.$$.ctx[5];
|
|
6593
7079
|
}
|
|
6594
7080
|
set paddingTop(paddingTop) {
|
|
6595
7081
|
this.$$set({ paddingTop });
|
|
6596
7082
|
flush();
|
|
6597
7083
|
}
|
|
6598
7084
|
get ariaLabel() {
|
|
6599
|
-
return this.$$.ctx[
|
|
7085
|
+
return this.$$.ctx[6];
|
|
6600
7086
|
}
|
|
6601
7087
|
set ariaLabel(ariaLabel) {
|
|
6602
7088
|
this.$$set({ ariaLabel });
|
|
6603
7089
|
flush();
|
|
6604
7090
|
}
|
|
7091
|
+
get isFinished() {
|
|
7092
|
+
return this.$$.ctx[7];
|
|
7093
|
+
}
|
|
7094
|
+
set isFinished(isFinished) {
|
|
7095
|
+
this.$$set({ isFinished });
|
|
7096
|
+
flush();
|
|
7097
|
+
}
|
|
7098
|
+
get correctAnswerList() {
|
|
7099
|
+
return this.$$.ctx[21];
|
|
7100
|
+
}
|
|
7101
|
+
set correctAnswerList(correctAnswerList) {
|
|
7102
|
+
this.$$set({ correctAnswerList });
|
|
7103
|
+
flush();
|
|
7104
|
+
}
|
|
7105
|
+
get isPreviewModeInteractive() {
|
|
7106
|
+
return this.$$.ctx[22];
|
|
7107
|
+
}
|
|
7108
|
+
set isPreviewModeInteractive(isPreviewModeInteractive) {
|
|
7109
|
+
this.$$set({ isPreviewModeInteractive });
|
|
7110
|
+
flush();
|
|
7111
|
+
}
|
|
6605
7112
|
};
|
|
6606
|
-
customElements.define("prompt-categorise-dnd-container", create_custom_element(PromptCategoriseDndContainer, { "
|
|
7113
|
+
customElements.define("prompt-categorise-dnd-container", create_custom_element(PromptCategoriseDndContainer, { "containerClass": {}, "flipDurationMs": {}, "containerId": {}, "type": {}, "showButton": { "type": "Boolean" }, "paddingTop": {}, "ariaLabel": {}, "isFinished": { "type": "Boolean" }, "correctAnswerList": {}, "isPreviewModeInteractive": { "type": "Boolean" } }, [], [], true));
|
|
6607
7114
|
var PromptCategoriseDndContainer_default = PromptCategoriseDndContainer;
|
|
6608
7115
|
|
|
6609
7116
|
// src/lib/components/common/CommonModal.svelte
|
|
6610
|
-
function
|
|
7117
|
+
function create_fragment11(ctx) {
|
|
6611
7118
|
let div2;
|
|
6612
7119
|
let div0;
|
|
6613
7120
|
let t2;
|
|
@@ -6764,14 +7271,14 @@
|
|
|
6764
7271
|
var CommonModal = class extends SvelteComponent {
|
|
6765
7272
|
constructor(options) {
|
|
6766
7273
|
super();
|
|
6767
|
-
init(this, options, instance7,
|
|
7274
|
+
init(this, options, instance7, create_fragment11, safe_not_equal, {});
|
|
6768
7275
|
}
|
|
6769
7276
|
};
|
|
6770
7277
|
customElements.define("common-modal", create_custom_element(CommonModal, {}, ["default"], [], true));
|
|
6771
7278
|
var CommonModal_default = CommonModal;
|
|
6772
7279
|
|
|
6773
7280
|
// src/lib/assets/img/messaging/AlertIcon.svelte
|
|
6774
|
-
function
|
|
7281
|
+
function create_fragment12(ctx) {
|
|
6775
7282
|
let svg;
|
|
6776
7283
|
let path;
|
|
6777
7284
|
return {
|
|
@@ -6805,14 +7312,14 @@
|
|
|
6805
7312
|
var AlertIcon = class extends SvelteComponent {
|
|
6806
7313
|
constructor(options) {
|
|
6807
7314
|
super();
|
|
6808
|
-
init(this, options, null,
|
|
7315
|
+
init(this, options, null, create_fragment12, safe_not_equal, {});
|
|
6809
7316
|
}
|
|
6810
7317
|
};
|
|
6811
7318
|
create_custom_element(AlertIcon, {}, [], [], true);
|
|
6812
7319
|
var AlertIcon_default = AlertIcon;
|
|
6813
7320
|
|
|
6814
7321
|
// src/lib/assets/img/messaging/CrossIcon.svelte
|
|
6815
|
-
function
|
|
7322
|
+
function create_fragment13(ctx) {
|
|
6816
7323
|
let svg;
|
|
6817
7324
|
let path;
|
|
6818
7325
|
return {
|
|
@@ -6846,7 +7353,7 @@
|
|
|
6846
7353
|
var CrossIcon = class extends SvelteComponent {
|
|
6847
7354
|
constructor(options) {
|
|
6848
7355
|
super();
|
|
6849
|
-
init(this, options, null,
|
|
7356
|
+
init(this, options, null, create_fragment13, safe_not_equal, {});
|
|
6850
7357
|
}
|
|
6851
7358
|
};
|
|
6852
7359
|
create_custom_element(CrossIcon, {}, [], [], true);
|
|
@@ -7006,7 +7513,7 @@
|
|
|
7006
7513
|
}
|
|
7007
7514
|
};
|
|
7008
7515
|
}
|
|
7009
|
-
function
|
|
7516
|
+
function create_fragment14(ctx) {
|
|
7010
7517
|
let commonmodal;
|
|
7011
7518
|
let current;
|
|
7012
7519
|
commonmodal = new CommonModal_default({
|
|
@@ -7063,7 +7570,6 @@
|
|
|
7063
7570
|
modalAriaLabel: "",
|
|
7064
7571
|
isOpenLastStatus: true
|
|
7065
7572
|
});
|
|
7066
|
-
showModalAria = true;
|
|
7067
7573
|
};
|
|
7068
7574
|
const dispatch = createEventDispatcher();
|
|
7069
7575
|
const resetCategories = () => {
|
|
@@ -7105,14 +7611,14 @@
|
|
|
7105
7611
|
var PromptCategoriseModal = class extends SvelteComponent {
|
|
7106
7612
|
constructor(options) {
|
|
7107
7613
|
super();
|
|
7108
|
-
init(this, options, instance8,
|
|
7614
|
+
init(this, options, instance8, create_fragment14, safe_not_equal, {});
|
|
7109
7615
|
}
|
|
7110
7616
|
};
|
|
7111
7617
|
customElements.define("prompy-categorise-modal", create_custom_element(PromptCategoriseModal, {}, [], [], true));
|
|
7112
7618
|
var PromptCategoriseModal_default = PromptCategoriseModal;
|
|
7113
7619
|
|
|
7114
7620
|
// src/lib/assets/img/action/Switch.svelte
|
|
7115
|
-
function
|
|
7621
|
+
function create_fragment15(ctx) {
|
|
7116
7622
|
let svg;
|
|
7117
7623
|
let path;
|
|
7118
7624
|
return {
|
|
@@ -7144,14 +7650,14 @@
|
|
|
7144
7650
|
var Switch = class extends SvelteComponent {
|
|
7145
7651
|
constructor(options) {
|
|
7146
7652
|
super();
|
|
7147
|
-
init(this, options, null,
|
|
7653
|
+
init(this, options, null, create_fragment15, safe_not_equal, {});
|
|
7148
7654
|
}
|
|
7149
7655
|
};
|
|
7150
7656
|
create_custom_element(Switch, {}, [], [], true);
|
|
7151
7657
|
var Switch_default = Switch;
|
|
7152
7658
|
|
|
7153
7659
|
// src/lib/assets/img/messaging/SmallChevronUp.svelte
|
|
7154
|
-
function
|
|
7660
|
+
function create_fragment16(ctx) {
|
|
7155
7661
|
let svg;
|
|
7156
7662
|
let path;
|
|
7157
7663
|
return {
|
|
@@ -7185,14 +7691,14 @@
|
|
|
7185
7691
|
var SmallChevronUp = class extends SvelteComponent {
|
|
7186
7692
|
constructor(options) {
|
|
7187
7693
|
super();
|
|
7188
|
-
init(this, options, null,
|
|
7694
|
+
init(this, options, null, create_fragment16, safe_not_equal, {});
|
|
7189
7695
|
}
|
|
7190
7696
|
};
|
|
7191
7697
|
create_custom_element(SmallChevronUp, {}, [], [], true);
|
|
7192
7698
|
var SmallChevronUp_default = SmallChevronUp;
|
|
7193
7699
|
|
|
7194
7700
|
// src/lib/assets/img/messaging/SmallChevronDown.svelte
|
|
7195
|
-
function
|
|
7701
|
+
function create_fragment17(ctx) {
|
|
7196
7702
|
let svg;
|
|
7197
7703
|
let path;
|
|
7198
7704
|
return {
|
|
@@ -7226,14 +7732,14 @@
|
|
|
7226
7732
|
var SmallChevronDown = class extends SvelteComponent {
|
|
7227
7733
|
constructor(options) {
|
|
7228
7734
|
super();
|
|
7229
|
-
init(this, options, null,
|
|
7735
|
+
init(this, options, null, create_fragment17, safe_not_equal, {});
|
|
7230
7736
|
}
|
|
7231
7737
|
};
|
|
7232
7738
|
create_custom_element(SmallChevronDown, {}, [], [], true);
|
|
7233
7739
|
var SmallChevronDown_default = SmallChevronDown;
|
|
7234
7740
|
|
|
7235
7741
|
// src/lib/assets/img/messaging/SmallChevronLeft.svelte
|
|
7236
|
-
function
|
|
7742
|
+
function create_fragment18(ctx) {
|
|
7237
7743
|
let svg;
|
|
7238
7744
|
let path;
|
|
7239
7745
|
return {
|
|
@@ -7267,14 +7773,14 @@
|
|
|
7267
7773
|
var SmallChevronLeft = class extends SvelteComponent {
|
|
7268
7774
|
constructor(options) {
|
|
7269
7775
|
super();
|
|
7270
|
-
init(this, options, null,
|
|
7776
|
+
init(this, options, null, create_fragment18, safe_not_equal, {});
|
|
7271
7777
|
}
|
|
7272
7778
|
};
|
|
7273
7779
|
create_custom_element(SmallChevronLeft, {}, [], [], true);
|
|
7274
7780
|
var SmallChevronLeft_default = SmallChevronLeft;
|
|
7275
7781
|
|
|
7276
7782
|
// src/lib/assets/img/messaging/SmallChevronRight.svelte
|
|
7277
|
-
function
|
|
7783
|
+
function create_fragment19(ctx) {
|
|
7278
7784
|
let svg;
|
|
7279
7785
|
let path;
|
|
7280
7786
|
return {
|
|
@@ -7308,14 +7814,14 @@
|
|
|
7308
7814
|
var SmallChevronRight = class extends SvelteComponent {
|
|
7309
7815
|
constructor(options) {
|
|
7310
7816
|
super();
|
|
7311
|
-
init(this, options, null,
|
|
7817
|
+
init(this, options, null, create_fragment19, safe_not_equal, {});
|
|
7312
7818
|
}
|
|
7313
7819
|
};
|
|
7314
7820
|
create_custom_element(SmallChevronRight, {}, [], [], true);
|
|
7315
7821
|
var SmallChevronRight_default = SmallChevronRight;
|
|
7316
7822
|
|
|
7317
7823
|
// src/lib/assets/img/messaging/ArrowDownCircle.svelte
|
|
7318
|
-
function
|
|
7824
|
+
function create_fragment20(ctx) {
|
|
7319
7825
|
let svg;
|
|
7320
7826
|
let path;
|
|
7321
7827
|
return {
|
|
@@ -7349,7 +7855,7 @@
|
|
|
7349
7855
|
var ArrowDownCircle = class extends SvelteComponent {
|
|
7350
7856
|
constructor(options) {
|
|
7351
7857
|
super();
|
|
7352
|
-
init(this, options, null,
|
|
7858
|
+
init(this, options, null, create_fragment20, safe_not_equal, {});
|
|
7353
7859
|
}
|
|
7354
7860
|
};
|
|
7355
7861
|
create_custom_element(ArrowDownCircle, {}, [], [], true);
|
|
@@ -7520,19 +8026,19 @@
|
|
|
7520
8026
|
// src/lib/components/prompt/categorise/PromptCategorise.svelte
|
|
7521
8027
|
function get_each_context3(ctx, list, i) {
|
|
7522
8028
|
const child_ctx = ctx.slice();
|
|
7523
|
-
child_ctx[
|
|
7524
|
-
child_ctx[
|
|
7525
|
-
child_ctx[
|
|
8029
|
+
child_ctx[53] = list[i];
|
|
8030
|
+
child_ctx[54] = list;
|
|
8031
|
+
child_ctx[55] = i;
|
|
7526
8032
|
return child_ctx;
|
|
7527
8033
|
}
|
|
7528
|
-
function
|
|
8034
|
+
function create_if_block_5(ctx) {
|
|
7529
8035
|
let promptcategorisemodal;
|
|
7530
8036
|
let current;
|
|
7531
8037
|
promptcategorisemodal = new PromptCategoriseModal_default({});
|
|
7532
8038
|
promptcategorisemodal.$on(
|
|
7533
8039
|
"resetCategory",
|
|
7534
8040
|
/*saveCategory*/
|
|
7535
|
-
ctx[
|
|
8041
|
+
ctx[33]
|
|
7536
8042
|
);
|
|
7537
8043
|
return {
|
|
7538
8044
|
c() {
|
|
@@ -7558,7 +8064,7 @@
|
|
|
7558
8064
|
}
|
|
7559
8065
|
};
|
|
7560
8066
|
}
|
|
7561
|
-
function
|
|
8067
|
+
function create_if_block_42(ctx) {
|
|
7562
8068
|
let button;
|
|
7563
8069
|
let span0;
|
|
7564
8070
|
let switchicon;
|
|
@@ -7582,7 +8088,7 @@
|
|
|
7582
8088
|
button,
|
|
7583
8089
|
"tabindex",
|
|
7584
8090
|
/*categoryTabIndex*/
|
|
7585
|
-
ctx[
|
|
8091
|
+
ctx[15]
|
|
7586
8092
|
);
|
|
7587
8093
|
attr(button, "aria-label", "Reset words");
|
|
7588
8094
|
attr(button, "class", "group focus-ring flex items-center rounded-lg border-2 border-soft-blue text-blue-1000 px-3 py-2 absolute right-0 -top-2.5 hover:bg-blue-100");
|
|
@@ -7599,19 +8105,19 @@
|
|
|
7599
8105
|
button,
|
|
7600
8106
|
"click",
|
|
7601
8107
|
/*openResetModal*/
|
|
7602
|
-
ctx[
|
|
8108
|
+
ctx[28]
|
|
7603
8109
|
);
|
|
7604
8110
|
mounted = true;
|
|
7605
8111
|
}
|
|
7606
8112
|
},
|
|
7607
8113
|
p(ctx2, dirty) {
|
|
7608
8114
|
if (!current || dirty[0] & /*categoryTabIndex*/
|
|
7609
|
-
|
|
8115
|
+
32768) {
|
|
7610
8116
|
attr(
|
|
7611
8117
|
button,
|
|
7612
8118
|
"tabindex",
|
|
7613
8119
|
/*categoryTabIndex*/
|
|
7614
|
-
ctx2[
|
|
8120
|
+
ctx2[15]
|
|
7615
8121
|
);
|
|
7616
8122
|
}
|
|
7617
8123
|
},
|
|
@@ -7635,7 +8141,7 @@
|
|
|
7635
8141
|
}
|
|
7636
8142
|
};
|
|
7637
8143
|
}
|
|
7638
|
-
function
|
|
8144
|
+
function create_if_block_33(ctx) {
|
|
7639
8145
|
let span;
|
|
7640
8146
|
let t0;
|
|
7641
8147
|
let t1;
|
|
@@ -7646,7 +8152,7 @@
|
|
|
7646
8152
|
t0 = text("Option ");
|
|
7647
8153
|
t1 = text(
|
|
7648
8154
|
/*selectedItemName*/
|
|
7649
|
-
ctx[
|
|
8155
|
+
ctx[16]
|
|
7650
8156
|
);
|
|
7651
8157
|
t2 = text(" added in:\xA0");
|
|
7652
8158
|
attr(span, "class", "sr-only");
|
|
@@ -7659,11 +8165,11 @@
|
|
|
7659
8165
|
},
|
|
7660
8166
|
p(ctx2, dirty) {
|
|
7661
8167
|
if (dirty[0] & /*selectedItemName*/
|
|
7662
|
-
|
|
8168
|
+
65536)
|
|
7663
8169
|
set_data(
|
|
7664
8170
|
t1,
|
|
7665
8171
|
/*selectedItemName*/
|
|
7666
|
-
ctx2[
|
|
8172
|
+
ctx2[16]
|
|
7667
8173
|
);
|
|
7668
8174
|
},
|
|
7669
8175
|
d(detaching) {
|
|
@@ -7673,7 +8179,61 @@
|
|
|
7673
8179
|
}
|
|
7674
8180
|
};
|
|
7675
8181
|
}
|
|
7676
|
-
function
|
|
8182
|
+
function create_if_block_25(ctx) {
|
|
8183
|
+
let span;
|
|
8184
|
+
let t0;
|
|
8185
|
+
let t1;
|
|
8186
|
+
let t2;
|
|
8187
|
+
let t3;
|
|
8188
|
+
let t4;
|
|
8189
|
+
return {
|
|
8190
|
+
c() {
|
|
8191
|
+
span = element("span");
|
|
8192
|
+
t0 = text(". Student's answer: ");
|
|
8193
|
+
t1 = text(
|
|
8194
|
+
/*selectedItemName*/
|
|
8195
|
+
ctx[16]
|
|
8196
|
+
);
|
|
8197
|
+
t2 = text(" (");
|
|
8198
|
+
t3 = text(
|
|
8199
|
+
/*previewResultSr*/
|
|
8200
|
+
ctx[17]
|
|
8201
|
+
);
|
|
8202
|
+
t4 = text(")");
|
|
8203
|
+
attr(span, "class", "sr-only");
|
|
8204
|
+
},
|
|
8205
|
+
m(target, anchor) {
|
|
8206
|
+
insert(target, span, anchor);
|
|
8207
|
+
append(span, t0);
|
|
8208
|
+
append(span, t1);
|
|
8209
|
+
append(span, t2);
|
|
8210
|
+
append(span, t3);
|
|
8211
|
+
append(span, t4);
|
|
8212
|
+
},
|
|
8213
|
+
p(ctx2, dirty) {
|
|
8214
|
+
if (dirty[0] & /*selectedItemName*/
|
|
8215
|
+
65536)
|
|
8216
|
+
set_data(
|
|
8217
|
+
t1,
|
|
8218
|
+
/*selectedItemName*/
|
|
8219
|
+
ctx2[16]
|
|
8220
|
+
);
|
|
8221
|
+
if (dirty[0] & /*previewResultSr*/
|
|
8222
|
+
131072)
|
|
8223
|
+
set_data(
|
|
8224
|
+
t3,
|
|
8225
|
+
/*previewResultSr*/
|
|
8226
|
+
ctx2[17]
|
|
8227
|
+
);
|
|
8228
|
+
},
|
|
8229
|
+
d(detaching) {
|
|
8230
|
+
if (detaching) {
|
|
8231
|
+
detach(span);
|
|
8232
|
+
}
|
|
8233
|
+
}
|
|
8234
|
+
};
|
|
8235
|
+
}
|
|
8236
|
+
function create_else_block4(ctx) {
|
|
7677
8237
|
let smallchevrondown;
|
|
7678
8238
|
let current;
|
|
7679
8239
|
smallchevrondown = new SmallChevronDown_default({});
|
|
@@ -7700,7 +8260,7 @@
|
|
|
7700
8260
|
}
|
|
7701
8261
|
};
|
|
7702
8262
|
}
|
|
7703
|
-
function
|
|
8263
|
+
function create_if_block_17(ctx) {
|
|
7704
8264
|
let smallchevronup;
|
|
7705
8265
|
let current;
|
|
7706
8266
|
smallchevronup = new SmallChevronUp_default({});
|
|
@@ -7732,11 +8292,11 @@
|
|
|
7732
8292
|
let div0;
|
|
7733
8293
|
let show_if_1 = (
|
|
7734
8294
|
/*checkContainerDroppedItem*/
|
|
7735
|
-
ctx[
|
|
8295
|
+
ctx[26](
|
|
7736
8296
|
/*category*/
|
|
7737
|
-
ctx[
|
|
8297
|
+
ctx[53].id,
|
|
7738
8298
|
/*dropContainerId*/
|
|
7739
|
-
ctx[
|
|
8299
|
+
ctx[6]
|
|
7740
8300
|
)
|
|
7741
8301
|
);
|
|
7742
8302
|
let t0;
|
|
@@ -7744,145 +8304,162 @@
|
|
|
7744
8304
|
let t4;
|
|
7745
8305
|
let span1;
|
|
7746
8306
|
let t6;
|
|
8307
|
+
let t7;
|
|
7747
8308
|
let button;
|
|
7748
8309
|
let span2;
|
|
7749
|
-
let
|
|
8310
|
+
let t8_value = (
|
|
7750
8311
|
/*getTotalWords*/
|
|
7751
|
-
ctx[
|
|
8312
|
+
ctx[29](
|
|
7752
8313
|
/*category*/
|
|
7753
|
-
ctx[
|
|
8314
|
+
ctx[53].id,
|
|
7754
8315
|
/*currentAnswer*/
|
|
7755
|
-
ctx[
|
|
8316
|
+
ctx[9]
|
|
7756
8317
|
) + ""
|
|
7757
8318
|
);
|
|
7758
|
-
let t7;
|
|
7759
8319
|
let t8;
|
|
8320
|
+
let t9;
|
|
7760
8321
|
let span3;
|
|
7761
8322
|
let show_if;
|
|
7762
8323
|
let current_block_type_index;
|
|
7763
|
-
let
|
|
8324
|
+
let if_block2;
|
|
7764
8325
|
let button_aria_label_value;
|
|
7765
8326
|
let div0_id_value;
|
|
7766
8327
|
let div0_aria_live_value;
|
|
7767
8328
|
let div0_class_value;
|
|
7768
8329
|
let div0_resize_listener;
|
|
7769
|
-
let t9;
|
|
7770
|
-
let promptcategorisedndcontainer;
|
|
7771
8330
|
let t10;
|
|
8331
|
+
let promptcategorisedndcontainer;
|
|
8332
|
+
let t11;
|
|
7772
8333
|
let div1_class_value;
|
|
7773
8334
|
let category = (
|
|
7774
8335
|
/*category*/
|
|
7775
|
-
ctx[
|
|
8336
|
+
ctx[53]
|
|
7776
8337
|
);
|
|
7777
8338
|
let current;
|
|
7778
8339
|
let mounted;
|
|
7779
8340
|
let dispose;
|
|
7780
|
-
let if_block0 = show_if_1 &&
|
|
7781
|
-
|
|
8341
|
+
let if_block0 = show_if_1 && create_if_block_33(ctx);
|
|
8342
|
+
let if_block1 = (
|
|
8343
|
+
/*previewResultSr*/
|
|
8344
|
+
ctx[17] && create_if_block_25(ctx)
|
|
8345
|
+
);
|
|
8346
|
+
const if_block_creators = [create_if_block_17, create_else_block4];
|
|
7782
8347
|
const if_blocks = [];
|
|
7783
8348
|
function select_block_type(ctx2, dirty) {
|
|
7784
8349
|
if (dirty[0] & /*openCategoryContainer*/
|
|
7785
|
-
|
|
8350
|
+
8192)
|
|
7786
8351
|
show_if = null;
|
|
7787
8352
|
if (show_if == null)
|
|
7788
8353
|
show_if = !!/*checkifCategoryContainerOpen*/
|
|
7789
|
-
ctx2[
|
|
8354
|
+
ctx2[30](
|
|
7790
8355
|
/*category*/
|
|
7791
|
-
ctx2[
|
|
8356
|
+
ctx2[53].id,
|
|
7792
8357
|
/*openCategoryContainer*/
|
|
7793
|
-
ctx2[
|
|
8358
|
+
ctx2[13]
|
|
7794
8359
|
);
|
|
7795
8360
|
if (show_if)
|
|
7796
8361
|
return 0;
|
|
7797
8362
|
return 1;
|
|
7798
8363
|
}
|
|
7799
8364
|
current_block_type_index = select_block_type(ctx, [-1, -1]);
|
|
7800
|
-
|
|
8365
|
+
if_block2 = if_blocks[current_block_type_index] = if_block_creators[current_block_type_index](ctx);
|
|
7801
8366
|
function div0_elementresize_handler() {
|
|
7802
|
-
ctx[
|
|
8367
|
+
ctx[39].call(
|
|
7803
8368
|
div0,
|
|
7804
8369
|
/*category*/
|
|
7805
|
-
ctx[
|
|
8370
|
+
ctx[53]
|
|
7806
8371
|
);
|
|
7807
8372
|
}
|
|
7808
8373
|
promptcategorisedndcontainer = new PromptCategoriseDndContainer_default({
|
|
7809
8374
|
props: {
|
|
7810
8375
|
containerClass: "content-start !outline-none rounded-lg grow w-full md:p-4\n " + /*checkContainerDragOver*/
|
|
7811
|
-
(ctx[
|
|
8376
|
+
(ctx[25](
|
|
7812
8377
|
/*category*/
|
|
7813
|
-
ctx[
|
|
8378
|
+
ctx[53].id,
|
|
7814
8379
|
/*considerContainerId*/
|
|
7815
|
-
ctx[
|
|
8380
|
+
ctx[4],
|
|
7816
8381
|
/*isDraggingOver*/
|
|
7817
|
-
ctx[
|
|
8382
|
+
ctx[5]
|
|
7818
8383
|
) ? "bg-violet-100" : "") + "\n " + /*checkifCategoryContainerOpen*/
|
|
7819
|
-
(ctx[
|
|
8384
|
+
(ctx[30](
|
|
7820
8385
|
/*category*/
|
|
7821
|
-
ctx[
|
|
8386
|
+
ctx[53].id,
|
|
7822
8387
|
/*openCategoryContainer*/
|
|
7823
|
-
ctx[
|
|
8388
|
+
ctx[13]
|
|
7824
8389
|
) ? "h-full p-3 min-h-[86px] md:min-h-0" : ""),
|
|
7825
8390
|
paddingTop: (
|
|
7826
8391
|
/*checkifCategoryContainerOpen*/
|
|
7827
|
-
ctx[
|
|
8392
|
+
ctx[30](
|
|
7828
8393
|
/*category*/
|
|
7829
|
-
ctx[
|
|
8394
|
+
ctx[53].id,
|
|
7830
8395
|
/*openCategoryContainer*/
|
|
7831
|
-
ctx[
|
|
8396
|
+
ctx[13]
|
|
7832
8397
|
) || !useIsSmallScreen() ? (
|
|
7833
8398
|
/*categoryTitleHeight*/
|
|
7834
|
-
ctx[
|
|
8399
|
+
ctx[19][
|
|
7835
8400
|
/*category*/
|
|
7836
|
-
ctx[
|
|
8401
|
+
ctx[53].id
|
|
7837
8402
|
] + 16
|
|
7838
8403
|
) : (
|
|
7839
8404
|
/*categoryTitleHeight*/
|
|
7840
|
-
ctx[
|
|
8405
|
+
ctx[19][
|
|
7841
8406
|
/*category*/
|
|
7842
|
-
ctx[
|
|
8407
|
+
ctx[53].id
|
|
7843
8408
|
]
|
|
7844
8409
|
)
|
|
7845
8410
|
),
|
|
7846
8411
|
containerId: (
|
|
7847
8412
|
/*category*/
|
|
7848
|
-
ctx[
|
|
8413
|
+
ctx[53].id
|
|
7849
8414
|
),
|
|
7850
8415
|
showButton: (
|
|
7851
8416
|
/*checkifCategoryContainerOpen*/
|
|
7852
|
-
ctx[
|
|
8417
|
+
ctx[30](
|
|
7853
8418
|
/*category*/
|
|
7854
|
-
ctx[
|
|
8419
|
+
ctx[53].id,
|
|
7855
8420
|
/*openCategoryContainer*/
|
|
7856
|
-
ctx[
|
|
8421
|
+
ctx[13]
|
|
7857
8422
|
)
|
|
7858
8423
|
),
|
|
7859
8424
|
ariaLabel: `Category ${/*index*/
|
|
7860
|
-
ctx[
|
|
7861
|
-
ctx[
|
|
8425
|
+
ctx[55] + 1}: ${/*category*/
|
|
8426
|
+
ctx[53].name}`,
|
|
8427
|
+
isFinished: (
|
|
8428
|
+
/*isFinished*/
|
|
8429
|
+
ctx[0]
|
|
8430
|
+
),
|
|
8431
|
+
correctAnswerList: (
|
|
8432
|
+
/*scoringMetadata*/
|
|
8433
|
+
ctx[21]
|
|
8434
|
+
),
|
|
8435
|
+
isPreviewModeInteractive: (
|
|
8436
|
+
/*isPreviewModeInteractive*/
|
|
8437
|
+
ctx[1]
|
|
8438
|
+
)
|
|
7862
8439
|
}
|
|
7863
8440
|
});
|
|
7864
8441
|
promptcategorisedndcontainer.$on(
|
|
7865
8442
|
"saveCategory",
|
|
7866
8443
|
/*saveCategory*/
|
|
7867
|
-
ctx[
|
|
8444
|
+
ctx[33]
|
|
7868
8445
|
);
|
|
7869
8446
|
function keydown_handler(...args) {
|
|
7870
8447
|
return (
|
|
7871
8448
|
/*keydown_handler*/
|
|
7872
|
-
ctx[
|
|
8449
|
+
ctx[40](
|
|
7873
8450
|
/*category*/
|
|
7874
|
-
ctx[
|
|
8451
|
+
ctx[53],
|
|
7875
8452
|
...args
|
|
7876
8453
|
)
|
|
7877
8454
|
);
|
|
7878
8455
|
}
|
|
7879
8456
|
const assign_div1 = () => (
|
|
7880
8457
|
/*div1_binding*/
|
|
7881
|
-
ctx[
|
|
8458
|
+
ctx[41](div1, category)
|
|
7882
8459
|
);
|
|
7883
8460
|
const unassign_div1 = () => (
|
|
7884
8461
|
/*div1_binding*/
|
|
7885
|
-
ctx[
|
|
8462
|
+
ctx[41](null, category)
|
|
7886
8463
|
);
|
|
7887
8464
|
return {
|
|
7888
8465
|
c() {
|
|
@@ -7893,132 +8470,135 @@
|
|
|
7893
8470
|
t0 = space();
|
|
7894
8471
|
span0 = element("span");
|
|
7895
8472
|
span0.textContent = `Category ${/*index*/
|
|
7896
|
-
ctx[
|
|
8473
|
+
ctx[55] + 1}:\xA0`;
|
|
7897
8474
|
t4 = space();
|
|
7898
8475
|
span1 = element("span");
|
|
7899
8476
|
span1.textContent = `${/*category*/
|
|
7900
|
-
ctx[
|
|
8477
|
+
ctx[53].name}`;
|
|
7901
8478
|
t6 = space();
|
|
8479
|
+
if (if_block1)
|
|
8480
|
+
if_block1.c();
|
|
8481
|
+
t7 = space();
|
|
7902
8482
|
button = element("button");
|
|
7903
8483
|
span2 = element("span");
|
|
7904
|
-
|
|
7905
|
-
t8 = space();
|
|
7906
|
-
span3 = element("span");
|
|
7907
|
-
if_block1.c();
|
|
8484
|
+
t8 = text(t8_value);
|
|
7908
8485
|
t9 = space();
|
|
7909
|
-
|
|
8486
|
+
span3 = element("span");
|
|
8487
|
+
if_block2.c();
|
|
7910
8488
|
t10 = space();
|
|
8489
|
+
create_component(promptcategorisedndcontainer.$$.fragment);
|
|
8490
|
+
t11 = space();
|
|
7911
8491
|
attr(span0, "class", "sr-only");
|
|
7912
8492
|
attr(span1, "class", "text-base leading-5 !text-gray-900 md:item-heading");
|
|
7913
8493
|
attr(span2, "class", "mx-0.5");
|
|
7914
8494
|
attr(span3, "class", "w-4 h-4 text-inherit flex items-center justify-center");
|
|
7915
8495
|
attr(button, "aria-label", button_aria_label_value = /*getTotalWords*/
|
|
7916
|
-
ctx[
|
|
8496
|
+
ctx[29](
|
|
7917
8497
|
/*category*/
|
|
7918
|
-
ctx[
|
|
8498
|
+
ctx[53].id,
|
|
7919
8499
|
/*currentAnswer*/
|
|
7920
|
-
ctx[
|
|
8500
|
+
ctx[9]
|
|
7921
8501
|
));
|
|
7922
8502
|
attr(button, "class", "focus-ring flex items-center rounded-[32px] p-1.5 text-charcoal text-sm border border-gray-800 bg-gray-50 min-w-[85px] ml-3 whitespace-nowrap active:raw-focus-ring active:bg-black-55 md:hidden");
|
|
7923
8503
|
attr(div0, "id", div0_id_value = `category-title${/*index*/
|
|
7924
|
-
ctx[
|
|
8504
|
+
ctx[55]}`);
|
|
7925
8505
|
attr(div0, "aria-live", div0_aria_live_value = /*checkContainerDroppedItem*/
|
|
7926
|
-
ctx[
|
|
8506
|
+
ctx[26](
|
|
7927
8507
|
/*category*/
|
|
7928
|
-
ctx[
|
|
8508
|
+
ctx[53].id,
|
|
7929
8509
|
/*dropContainerId*/
|
|
7930
|
-
ctx[
|
|
8510
|
+
ctx[6]
|
|
7931
8511
|
) ? "polite" : "off");
|
|
7932
8512
|
attr(div0, "class", div0_class_value = "absolute flex items-center justify-between border-b border-gray-800 w-full rounded-t-lg p-3 md:p-4 md:justify-center " + /*checkContainerDroppedItem*/
|
|
7933
|
-
(ctx[
|
|
8513
|
+
(ctx[26](
|
|
7934
8514
|
/*category*/
|
|
7935
|
-
ctx[
|
|
8515
|
+
ctx[53].id,
|
|
7936
8516
|
/*dropContainerId*/
|
|
7937
|
-
ctx[
|
|
8517
|
+
ctx[6]
|
|
7938
8518
|
) ? "bg-tranparent" : "bg-white") + " " + (!/*checkifCategoryContainerOpen*/
|
|
7939
|
-
ctx[
|
|
8519
|
+
ctx[30](
|
|
7940
8520
|
/*category*/
|
|
7941
|
-
ctx[
|
|
8521
|
+
ctx[53].id,
|
|
7942
8522
|
/*openCategoryContainer*/
|
|
7943
|
-
ctx[
|
|
8523
|
+
ctx[13]
|
|
7944
8524
|
) && /*checkContainerDragOver*/
|
|
7945
|
-
ctx[
|
|
8525
|
+
ctx[25](
|
|
7946
8526
|
/*category*/
|
|
7947
|
-
ctx[
|
|
8527
|
+
ctx[53].id,
|
|
7948
8528
|
/*considerContainerId*/
|
|
7949
|
-
ctx[
|
|
8529
|
+
ctx[4],
|
|
7950
8530
|
/*isDraggingOver*/
|
|
7951
|
-
ctx[
|
|
8531
|
+
ctx[5]
|
|
7952
8532
|
) ? "!bg-violet-100 md:!bg-white" : "") + " " + /*checkifCategoryContainerOpen*/
|
|
7953
|
-
(ctx[
|
|
8533
|
+
(ctx[30](
|
|
7954
8534
|
/*category*/
|
|
7955
|
-
ctx[
|
|
8535
|
+
ctx[53].id,
|
|
7956
8536
|
/*openCategoryContainer*/
|
|
7957
|
-
ctx[
|
|
8537
|
+
ctx[13]
|
|
7958
8538
|
) ? "" : "rounded-b-lg md:rounded-b-none") + " " + (!/*checkifCategoryContainerOpen*/
|
|
7959
|
-
ctx[
|
|
8539
|
+
ctx[30](
|
|
7960
8540
|
/*category*/
|
|
7961
|
-
ctx[
|
|
8541
|
+
ctx[53].id,
|
|
7962
8542
|
/*openCategoryContainer*/
|
|
7963
|
-
ctx[
|
|
8543
|
+
ctx[13]
|
|
7964
8544
|
) && /*checkSelectedSourceContainer*/
|
|
7965
|
-
ctx[
|
|
8545
|
+
ctx[27](
|
|
7966
8546
|
/*category*/
|
|
7967
|
-
ctx[
|
|
8547
|
+
ctx[53].id,
|
|
7968
8548
|
/*sourceSelectedContainerId*/
|
|
7969
|
-
ctx[
|
|
8549
|
+
ctx[8],
|
|
7970
8550
|
/*currentSelectedItemId*/
|
|
7971
|
-
ctx[
|
|
8551
|
+
ctx[7]
|
|
7972
8552
|
) ? "group-hover/itemContainer:bg-violet-100 md:group-hover/itemContainer:bg-white" : ""));
|
|
7973
8553
|
add_render_callback(() => div0_elementresize_handler.call(div0));
|
|
7974
8554
|
attr(
|
|
7975
8555
|
div1,
|
|
7976
8556
|
"aria-hidden",
|
|
7977
8557
|
/*isModalOpen*/
|
|
7978
|
-
ctx[
|
|
8558
|
+
ctx[12]
|
|
7979
8559
|
);
|
|
7980
8560
|
attr(
|
|
7981
8561
|
div1,
|
|
7982
8562
|
"tabindex",
|
|
7983
8563
|
/*categoryTabIndex*/
|
|
7984
|
-
ctx[
|
|
8564
|
+
ctx[15]
|
|
7985
8565
|
);
|
|
7986
8566
|
attr(div1, "role", "group");
|
|
7987
8567
|
attr(div1, "class", div1_class_value = "focus-ring group/itemContainer flex flex-col border border-gray-800 rounded-lg basis-0 grow relative md:h-fit md:min-h-[140px] md:items-center lg:mr-6 lg:last:mr-0 lg:min-h-[224px] " + /*checkContainerDragOver*/
|
|
7988
|
-
(ctx[
|
|
8568
|
+
(ctx[25](
|
|
7989
8569
|
/*category*/
|
|
7990
|
-
ctx[
|
|
8570
|
+
ctx[53].id,
|
|
7991
8571
|
/*considerContainerId*/
|
|
7992
|
-
ctx[
|
|
8572
|
+
ctx[4],
|
|
7993
8573
|
/*isDraggingOver*/
|
|
7994
|
-
ctx[
|
|
8574
|
+
ctx[5]
|
|
7995
8575
|
) ? "raw-focus-ring" : "") + " " + /*checkContainerDroppedItem*/
|
|
7996
|
-
(ctx[
|
|
8576
|
+
(ctx[26](
|
|
7997
8577
|
/*category*/
|
|
7998
|
-
ctx[
|
|
8578
|
+
ctx[53].id,
|
|
7999
8579
|
/*dropContainerId*/
|
|
8000
|
-
ctx[
|
|
8580
|
+
ctx[6]
|
|
8001
8581
|
) ? "bg-violet-150" : "") + " " + /*checkContainerDroppedItem*/
|
|
8002
|
-
(ctx[
|
|
8582
|
+
(ctx[26](
|
|
8003
8583
|
/*category*/
|
|
8004
|
-
ctx[
|
|
8584
|
+
ctx[53].id,
|
|
8005
8585
|
/*dropContainerId*/
|
|
8006
|
-
ctx[
|
|
8586
|
+
ctx[6]
|
|
8007
8587
|
) && /*hasAddItemAnimation*/
|
|
8008
|
-
ctx[
|
|
8009
|
-
(ctx[
|
|
8588
|
+
ctx[11] ? "transition bg-white duration-300" : "") + " " + /*checkSelectedSourceContainer*/
|
|
8589
|
+
(ctx[27](
|
|
8010
8590
|
/*category*/
|
|
8011
|
-
ctx[
|
|
8591
|
+
ctx[53].id,
|
|
8012
8592
|
/*sourceSelectedContainerId*/
|
|
8013
|
-
ctx[
|
|
8593
|
+
ctx[8],
|
|
8014
8594
|
/*currentSelectedItemId*/
|
|
8015
|
-
ctx[
|
|
8595
|
+
ctx[7]
|
|
8016
8596
|
) ? "hover:bg-violet-100 hover-focus-ring cursor-pointer" : "") + " " + /*checkifCategoryContainerOpen*/
|
|
8017
|
-
(ctx[
|
|
8597
|
+
(ctx[30](
|
|
8018
8598
|
/*category*/
|
|
8019
|
-
ctx[
|
|
8599
|
+
ctx[53].id,
|
|
8020
8600
|
/*openCategoryContainer*/
|
|
8021
|
-
ctx[
|
|
8601
|
+
ctx[13]
|
|
8022
8602
|
) ? "min-h-[140px]" : ""));
|
|
8023
8603
|
},
|
|
8024
8604
|
m(target, anchor) {
|
|
@@ -8031,16 +8611,19 @@
|
|
|
8031
8611
|
append(div0, t4);
|
|
8032
8612
|
append(div0, span1);
|
|
8033
8613
|
append(div0, t6);
|
|
8614
|
+
if (if_block1)
|
|
8615
|
+
if_block1.m(div0, null);
|
|
8616
|
+
append(div0, t7);
|
|
8034
8617
|
append(div0, button);
|
|
8035
8618
|
append(button, span2);
|
|
8036
|
-
append(span2,
|
|
8037
|
-
append(button,
|
|
8619
|
+
append(span2, t8);
|
|
8620
|
+
append(button, t9);
|
|
8038
8621
|
append(button, span3);
|
|
8039
8622
|
if_blocks[current_block_type_index].m(span3, null);
|
|
8040
8623
|
div0_resize_listener = add_iframe_resize_listener(div0, div0_elementresize_handler.bind(div0));
|
|
8041
|
-
append(div1, t9);
|
|
8042
|
-
mount_component(promptcategorisedndcontainer, div1, null);
|
|
8043
8624
|
append(div1, t10);
|
|
8625
|
+
mount_component(promptcategorisedndcontainer, div1, null);
|
|
8626
|
+
append(div1, t11);
|
|
8044
8627
|
assign_div1();
|
|
8045
8628
|
current = true;
|
|
8046
8629
|
if (!mounted) {
|
|
@@ -8048,18 +8631,18 @@
|
|
|
8048
8631
|
listen(button, "click", function() {
|
|
8049
8632
|
if (is_function(
|
|
8050
8633
|
/*addCategoryContainer*/
|
|
8051
|
-
ctx[
|
|
8634
|
+
ctx[31](
|
|
8052
8635
|
/*category*/
|
|
8053
|
-
ctx[
|
|
8636
|
+
ctx[53].id,
|
|
8054
8637
|
/*openCategoryContainer*/
|
|
8055
|
-
ctx[
|
|
8638
|
+
ctx[13]
|
|
8056
8639
|
)
|
|
8057
8640
|
))
|
|
8058
|
-
ctx[
|
|
8641
|
+
ctx[31](
|
|
8059
8642
|
/*category*/
|
|
8060
|
-
ctx[
|
|
8643
|
+
ctx[53].id,
|
|
8061
8644
|
/*openCategoryContainer*/
|
|
8062
|
-
ctx[
|
|
8645
|
+
ctx[13]
|
|
8063
8646
|
).apply(this, arguments);
|
|
8064
8647
|
}),
|
|
8065
8648
|
listen(div1, "keydown", keydown_handler),
|
|
@@ -8067,7 +8650,7 @@
|
|
|
8067
8650
|
div1,
|
|
8068
8651
|
"focus",
|
|
8069
8652
|
/*resetTabCategory*/
|
|
8070
|
-
ctx[
|
|
8653
|
+
ctx[35]
|
|
8071
8654
|
)
|
|
8072
8655
|
];
|
|
8073
8656
|
mounted = true;
|
|
@@ -8076,19 +8659,19 @@
|
|
|
8076
8659
|
p(new_ctx, dirty) {
|
|
8077
8660
|
ctx = new_ctx;
|
|
8078
8661
|
if (dirty[0] & /*dropContainerId*/
|
|
8079
|
-
|
|
8662
|
+
64)
|
|
8080
8663
|
show_if_1 = /*checkContainerDroppedItem*/
|
|
8081
|
-
ctx[
|
|
8664
|
+
ctx[26](
|
|
8082
8665
|
/*category*/
|
|
8083
|
-
ctx[
|
|
8666
|
+
ctx[53].id,
|
|
8084
8667
|
/*dropContainerId*/
|
|
8085
|
-
ctx[
|
|
8668
|
+
ctx[6]
|
|
8086
8669
|
);
|
|
8087
8670
|
if (show_if_1) {
|
|
8088
8671
|
if (if_block0) {
|
|
8089
8672
|
if_block0.p(ctx, dirty);
|
|
8090
8673
|
} else {
|
|
8091
|
-
if_block0 =
|
|
8674
|
+
if_block0 = create_if_block_33(ctx);
|
|
8092
8675
|
if_block0.c();
|
|
8093
8676
|
if_block0.m(div0, t0);
|
|
8094
8677
|
}
|
|
@@ -8096,15 +8679,30 @@
|
|
|
8096
8679
|
if_block0.d(1);
|
|
8097
8680
|
if_block0 = null;
|
|
8098
8681
|
}
|
|
8682
|
+
if (
|
|
8683
|
+
/*previewResultSr*/
|
|
8684
|
+
ctx[17]
|
|
8685
|
+
) {
|
|
8686
|
+
if (if_block1) {
|
|
8687
|
+
if_block1.p(ctx, dirty);
|
|
8688
|
+
} else {
|
|
8689
|
+
if_block1 = create_if_block_25(ctx);
|
|
8690
|
+
if_block1.c();
|
|
8691
|
+
if_block1.m(div0, t7);
|
|
8692
|
+
}
|
|
8693
|
+
} else if (if_block1) {
|
|
8694
|
+
if_block1.d(1);
|
|
8695
|
+
if_block1 = null;
|
|
8696
|
+
}
|
|
8099
8697
|
if ((!current || dirty[0] & /*currentAnswer*/
|
|
8100
|
-
|
|
8101
|
-
ctx[
|
|
8698
|
+
512) && t8_value !== (t8_value = /*getTotalWords*/
|
|
8699
|
+
ctx[29](
|
|
8102
8700
|
/*category*/
|
|
8103
|
-
ctx[
|
|
8701
|
+
ctx[53].id,
|
|
8104
8702
|
/*currentAnswer*/
|
|
8105
|
-
ctx[
|
|
8703
|
+
ctx[9]
|
|
8106
8704
|
) + ""))
|
|
8107
|
-
set_data(
|
|
8705
|
+
set_data(t8, t8_value);
|
|
8108
8706
|
let previous_block_index = current_block_type_index;
|
|
8109
8707
|
current_block_type_index = select_block_type(ctx, dirty);
|
|
8110
8708
|
if (current_block_type_index !== previous_block_index) {
|
|
@@ -8113,202 +8711,210 @@
|
|
|
8113
8711
|
if_blocks[previous_block_index] = null;
|
|
8114
8712
|
});
|
|
8115
8713
|
check_outros();
|
|
8116
|
-
|
|
8117
|
-
if (!
|
|
8118
|
-
|
|
8119
|
-
|
|
8714
|
+
if_block2 = if_blocks[current_block_type_index];
|
|
8715
|
+
if (!if_block2) {
|
|
8716
|
+
if_block2 = if_blocks[current_block_type_index] = if_block_creators[current_block_type_index](ctx);
|
|
8717
|
+
if_block2.c();
|
|
8120
8718
|
} else {
|
|
8121
8719
|
}
|
|
8122
|
-
transition_in(
|
|
8123
|
-
|
|
8720
|
+
transition_in(if_block2, 1);
|
|
8721
|
+
if_block2.m(span3, null);
|
|
8124
8722
|
}
|
|
8125
8723
|
if (!current || dirty[0] & /*currentAnswer*/
|
|
8126
|
-
|
|
8127
|
-
ctx[
|
|
8724
|
+
512 && button_aria_label_value !== (button_aria_label_value = /*getTotalWords*/
|
|
8725
|
+
ctx[29](
|
|
8128
8726
|
/*category*/
|
|
8129
|
-
ctx[
|
|
8727
|
+
ctx[53].id,
|
|
8130
8728
|
/*currentAnswer*/
|
|
8131
|
-
ctx[
|
|
8729
|
+
ctx[9]
|
|
8132
8730
|
))) {
|
|
8133
8731
|
attr(button, "aria-label", button_aria_label_value);
|
|
8134
8732
|
}
|
|
8135
8733
|
if (!current || dirty[0] & /*dropContainerId*/
|
|
8136
|
-
|
|
8137
|
-
ctx[
|
|
8734
|
+
64 && div0_aria_live_value !== (div0_aria_live_value = /*checkContainerDroppedItem*/
|
|
8735
|
+
ctx[26](
|
|
8138
8736
|
/*category*/
|
|
8139
|
-
ctx[
|
|
8737
|
+
ctx[53].id,
|
|
8140
8738
|
/*dropContainerId*/
|
|
8141
|
-
ctx[
|
|
8739
|
+
ctx[6]
|
|
8142
8740
|
) ? "polite" : "off")) {
|
|
8143
8741
|
attr(div0, "aria-live", div0_aria_live_value);
|
|
8144
8742
|
}
|
|
8145
8743
|
if (!current || dirty[0] & /*dropContainerId, openCategoryContainer, considerContainerId, isDraggingOver, sourceSelectedContainerId, currentSelectedItemId*/
|
|
8146
|
-
|
|
8147
|
-
(ctx[
|
|
8744
|
+
8688 && div0_class_value !== (div0_class_value = "absolute flex items-center justify-between border-b border-gray-800 w-full rounded-t-lg p-3 md:p-4 md:justify-center " + /*checkContainerDroppedItem*/
|
|
8745
|
+
(ctx[26](
|
|
8148
8746
|
/*category*/
|
|
8149
|
-
ctx[
|
|
8747
|
+
ctx[53].id,
|
|
8150
8748
|
/*dropContainerId*/
|
|
8151
|
-
ctx[
|
|
8749
|
+
ctx[6]
|
|
8152
8750
|
) ? "bg-tranparent" : "bg-white") + " " + (!/*checkifCategoryContainerOpen*/
|
|
8153
|
-
ctx[
|
|
8751
|
+
ctx[30](
|
|
8154
8752
|
/*category*/
|
|
8155
|
-
ctx[
|
|
8753
|
+
ctx[53].id,
|
|
8156
8754
|
/*openCategoryContainer*/
|
|
8157
|
-
ctx[
|
|
8755
|
+
ctx[13]
|
|
8158
8756
|
) && /*checkContainerDragOver*/
|
|
8159
|
-
ctx[
|
|
8757
|
+
ctx[25](
|
|
8160
8758
|
/*category*/
|
|
8161
|
-
ctx[
|
|
8759
|
+
ctx[53].id,
|
|
8162
8760
|
/*considerContainerId*/
|
|
8163
|
-
ctx[
|
|
8761
|
+
ctx[4],
|
|
8164
8762
|
/*isDraggingOver*/
|
|
8165
|
-
ctx[
|
|
8763
|
+
ctx[5]
|
|
8166
8764
|
) ? "!bg-violet-100 md:!bg-white" : "") + " " + /*checkifCategoryContainerOpen*/
|
|
8167
|
-
(ctx[
|
|
8765
|
+
(ctx[30](
|
|
8168
8766
|
/*category*/
|
|
8169
|
-
ctx[
|
|
8767
|
+
ctx[53].id,
|
|
8170
8768
|
/*openCategoryContainer*/
|
|
8171
|
-
ctx[
|
|
8769
|
+
ctx[13]
|
|
8172
8770
|
) ? "" : "rounded-b-lg md:rounded-b-none") + " " + (!/*checkifCategoryContainerOpen*/
|
|
8173
|
-
ctx[
|
|
8771
|
+
ctx[30](
|
|
8174
8772
|
/*category*/
|
|
8175
|
-
ctx[
|
|
8773
|
+
ctx[53].id,
|
|
8176
8774
|
/*openCategoryContainer*/
|
|
8177
|
-
ctx[
|
|
8775
|
+
ctx[13]
|
|
8178
8776
|
) && /*checkSelectedSourceContainer*/
|
|
8179
|
-
ctx[
|
|
8777
|
+
ctx[27](
|
|
8180
8778
|
/*category*/
|
|
8181
|
-
ctx[
|
|
8779
|
+
ctx[53].id,
|
|
8182
8780
|
/*sourceSelectedContainerId*/
|
|
8183
|
-
ctx[
|
|
8781
|
+
ctx[8],
|
|
8184
8782
|
/*currentSelectedItemId*/
|
|
8185
|
-
ctx[
|
|
8783
|
+
ctx[7]
|
|
8186
8784
|
) ? "group-hover/itemContainer:bg-violet-100 md:group-hover/itemContainer:bg-white" : ""))) {
|
|
8187
8785
|
attr(div0, "class", div0_class_value);
|
|
8188
8786
|
}
|
|
8189
8787
|
const promptcategorisedndcontainer_changes = {};
|
|
8190
8788
|
if (dirty[0] & /*considerContainerId, isDraggingOver, openCategoryContainer*/
|
|
8191
|
-
|
|
8789
|
+
8240)
|
|
8192
8790
|
promptcategorisedndcontainer_changes.containerClass = "content-start !outline-none rounded-lg grow w-full md:p-4\n " + /*checkContainerDragOver*/
|
|
8193
|
-
(ctx[
|
|
8791
|
+
(ctx[25](
|
|
8194
8792
|
/*category*/
|
|
8195
|
-
ctx[
|
|
8793
|
+
ctx[53].id,
|
|
8196
8794
|
/*considerContainerId*/
|
|
8197
|
-
ctx[
|
|
8795
|
+
ctx[4],
|
|
8198
8796
|
/*isDraggingOver*/
|
|
8199
|
-
ctx[
|
|
8797
|
+
ctx[5]
|
|
8200
8798
|
) ? "bg-violet-100" : "") + "\n " + /*checkifCategoryContainerOpen*/
|
|
8201
|
-
(ctx[
|
|
8799
|
+
(ctx[30](
|
|
8202
8800
|
/*category*/
|
|
8203
|
-
ctx[
|
|
8801
|
+
ctx[53].id,
|
|
8204
8802
|
/*openCategoryContainer*/
|
|
8205
|
-
ctx[
|
|
8803
|
+
ctx[13]
|
|
8206
8804
|
) ? "h-full p-3 min-h-[86px] md:min-h-0" : "");
|
|
8207
8805
|
if (dirty[0] & /*openCategoryContainer, categoryTitleHeight*/
|
|
8208
|
-
|
|
8806
|
+
532480)
|
|
8209
8807
|
promptcategorisedndcontainer_changes.paddingTop = /*checkifCategoryContainerOpen*/
|
|
8210
|
-
ctx[
|
|
8808
|
+
ctx[30](
|
|
8211
8809
|
/*category*/
|
|
8212
|
-
ctx[
|
|
8810
|
+
ctx[53].id,
|
|
8213
8811
|
/*openCategoryContainer*/
|
|
8214
|
-
ctx[
|
|
8812
|
+
ctx[13]
|
|
8215
8813
|
) || !useIsSmallScreen() ? (
|
|
8216
8814
|
/*categoryTitleHeight*/
|
|
8217
|
-
ctx[
|
|
8815
|
+
ctx[19][
|
|
8218
8816
|
/*category*/
|
|
8219
|
-
ctx[
|
|
8817
|
+
ctx[53].id
|
|
8220
8818
|
] + 16
|
|
8221
8819
|
) : (
|
|
8222
8820
|
/*categoryTitleHeight*/
|
|
8223
|
-
ctx[
|
|
8821
|
+
ctx[19][
|
|
8224
8822
|
/*category*/
|
|
8225
|
-
ctx[
|
|
8823
|
+
ctx[53].id
|
|
8226
8824
|
]
|
|
8227
8825
|
);
|
|
8228
8826
|
if (dirty[0] & /*openCategoryContainer*/
|
|
8229
|
-
|
|
8827
|
+
8192)
|
|
8230
8828
|
promptcategorisedndcontainer_changes.showButton = /*checkifCategoryContainerOpen*/
|
|
8231
|
-
ctx[
|
|
8829
|
+
ctx[30](
|
|
8232
8830
|
/*category*/
|
|
8233
|
-
ctx[
|
|
8831
|
+
ctx[53].id,
|
|
8234
8832
|
/*openCategoryContainer*/
|
|
8235
|
-
ctx[
|
|
8833
|
+
ctx[13]
|
|
8236
8834
|
);
|
|
8835
|
+
if (dirty[0] & /*isFinished*/
|
|
8836
|
+
1)
|
|
8837
|
+
promptcategorisedndcontainer_changes.isFinished = /*isFinished*/
|
|
8838
|
+
ctx[0];
|
|
8839
|
+
if (dirty[0] & /*isPreviewModeInteractive*/
|
|
8840
|
+
2)
|
|
8841
|
+
promptcategorisedndcontainer_changes.isPreviewModeInteractive = /*isPreviewModeInteractive*/
|
|
8842
|
+
ctx[1];
|
|
8237
8843
|
promptcategorisedndcontainer.$set(promptcategorisedndcontainer_changes);
|
|
8238
8844
|
if (!current || dirty[0] & /*isModalOpen*/
|
|
8239
|
-
|
|
8845
|
+
4096) {
|
|
8240
8846
|
attr(
|
|
8241
8847
|
div1,
|
|
8242
8848
|
"aria-hidden",
|
|
8243
8849
|
/*isModalOpen*/
|
|
8244
|
-
ctx[
|
|
8850
|
+
ctx[12]
|
|
8245
8851
|
);
|
|
8246
8852
|
}
|
|
8247
8853
|
if (!current || dirty[0] & /*categoryTabIndex*/
|
|
8248
|
-
|
|
8854
|
+
32768) {
|
|
8249
8855
|
attr(
|
|
8250
8856
|
div1,
|
|
8251
8857
|
"tabindex",
|
|
8252
8858
|
/*categoryTabIndex*/
|
|
8253
|
-
ctx[
|
|
8859
|
+
ctx[15]
|
|
8254
8860
|
);
|
|
8255
8861
|
}
|
|
8256
8862
|
if (!current || dirty[0] & /*considerContainerId, isDraggingOver, dropContainerId, hasAddItemAnimation, sourceSelectedContainerId, currentSelectedItemId, openCategoryContainer*/
|
|
8257
|
-
|
|
8258
|
-
(ctx[
|
|
8863
|
+
10736 && div1_class_value !== (div1_class_value = "focus-ring group/itemContainer flex flex-col border border-gray-800 rounded-lg basis-0 grow relative md:h-fit md:min-h-[140px] md:items-center lg:mr-6 lg:last:mr-0 lg:min-h-[224px] " + /*checkContainerDragOver*/
|
|
8864
|
+
(ctx[25](
|
|
8259
8865
|
/*category*/
|
|
8260
|
-
ctx[
|
|
8866
|
+
ctx[53].id,
|
|
8261
8867
|
/*considerContainerId*/
|
|
8262
|
-
ctx[
|
|
8868
|
+
ctx[4],
|
|
8263
8869
|
/*isDraggingOver*/
|
|
8264
|
-
ctx[
|
|
8870
|
+
ctx[5]
|
|
8265
8871
|
) ? "raw-focus-ring" : "") + " " + /*checkContainerDroppedItem*/
|
|
8266
|
-
(ctx[
|
|
8872
|
+
(ctx[26](
|
|
8267
8873
|
/*category*/
|
|
8268
|
-
ctx[
|
|
8874
|
+
ctx[53].id,
|
|
8269
8875
|
/*dropContainerId*/
|
|
8270
|
-
ctx[
|
|
8876
|
+
ctx[6]
|
|
8271
8877
|
) ? "bg-violet-150" : "") + " " + /*checkContainerDroppedItem*/
|
|
8272
|
-
(ctx[
|
|
8878
|
+
(ctx[26](
|
|
8273
8879
|
/*category*/
|
|
8274
|
-
ctx[
|
|
8880
|
+
ctx[53].id,
|
|
8275
8881
|
/*dropContainerId*/
|
|
8276
|
-
ctx[
|
|
8882
|
+
ctx[6]
|
|
8277
8883
|
) && /*hasAddItemAnimation*/
|
|
8278
|
-
ctx[
|
|
8279
|
-
(ctx[
|
|
8884
|
+
ctx[11] ? "transition bg-white duration-300" : "") + " " + /*checkSelectedSourceContainer*/
|
|
8885
|
+
(ctx[27](
|
|
8280
8886
|
/*category*/
|
|
8281
|
-
ctx[
|
|
8887
|
+
ctx[53].id,
|
|
8282
8888
|
/*sourceSelectedContainerId*/
|
|
8283
|
-
ctx[
|
|
8889
|
+
ctx[8],
|
|
8284
8890
|
/*currentSelectedItemId*/
|
|
8285
|
-
ctx[
|
|
8891
|
+
ctx[7]
|
|
8286
8892
|
) ? "hover:bg-violet-100 hover-focus-ring cursor-pointer" : "") + " " + /*checkifCategoryContainerOpen*/
|
|
8287
|
-
(ctx[
|
|
8893
|
+
(ctx[30](
|
|
8288
8894
|
/*category*/
|
|
8289
|
-
ctx[
|
|
8895
|
+
ctx[53].id,
|
|
8290
8896
|
/*openCategoryContainer*/
|
|
8291
|
-
ctx[
|
|
8897
|
+
ctx[13]
|
|
8292
8898
|
) ? "min-h-[140px]" : ""))) {
|
|
8293
8899
|
attr(div1, "class", div1_class_value);
|
|
8294
8900
|
}
|
|
8295
8901
|
if (category !== /*category*/
|
|
8296
|
-
ctx[
|
|
8902
|
+
ctx[53]) {
|
|
8297
8903
|
unassign_div1();
|
|
8298
8904
|
category = /*category*/
|
|
8299
|
-
ctx[
|
|
8905
|
+
ctx[53];
|
|
8300
8906
|
assign_div1();
|
|
8301
8907
|
}
|
|
8302
8908
|
},
|
|
8303
8909
|
i(local) {
|
|
8304
8910
|
if (current)
|
|
8305
8911
|
return;
|
|
8306
|
-
transition_in(
|
|
8912
|
+
transition_in(if_block2);
|
|
8307
8913
|
transition_in(promptcategorisedndcontainer.$$.fragment, local);
|
|
8308
8914
|
current = true;
|
|
8309
8915
|
},
|
|
8310
8916
|
o(local) {
|
|
8311
|
-
transition_out(
|
|
8917
|
+
transition_out(if_block2);
|
|
8312
8918
|
transition_out(promptcategorisedndcontainer.$$.fragment, local);
|
|
8313
8919
|
current = false;
|
|
8314
8920
|
},
|
|
@@ -8318,6 +8924,8 @@
|
|
|
8318
8924
|
}
|
|
8319
8925
|
if (if_block0)
|
|
8320
8926
|
if_block0.d();
|
|
8927
|
+
if (if_block1)
|
|
8928
|
+
if_block1.d();
|
|
8321
8929
|
if_blocks[current_block_type_index].d();
|
|
8322
8930
|
div0_resize_listener();
|
|
8323
8931
|
destroy_component(promptcategorisedndcontainer);
|
|
@@ -8327,7 +8935,7 @@
|
|
|
8327
8935
|
}
|
|
8328
8936
|
};
|
|
8329
8937
|
}
|
|
8330
|
-
function
|
|
8938
|
+
function create_if_block7(ctx) {
|
|
8331
8939
|
let span;
|
|
8332
8940
|
let t0;
|
|
8333
8941
|
let t1;
|
|
@@ -8338,7 +8946,7 @@
|
|
|
8338
8946
|
t0 = text("Option ");
|
|
8339
8947
|
t1 = text(
|
|
8340
8948
|
/*selectedItemName*/
|
|
8341
|
-
ctx[
|
|
8949
|
+
ctx[16]
|
|
8342
8950
|
);
|
|
8343
8951
|
t2 = text(" added in:\xA0");
|
|
8344
8952
|
attr(span, "class", "sr-only");
|
|
@@ -8351,11 +8959,11 @@
|
|
|
8351
8959
|
},
|
|
8352
8960
|
p(ctx2, dirty) {
|
|
8353
8961
|
if (dirty[0] & /*selectedItemName*/
|
|
8354
|
-
|
|
8962
|
+
65536)
|
|
8355
8963
|
set_data(
|
|
8356
8964
|
t1,
|
|
8357
8965
|
/*selectedItemName*/
|
|
8358
|
-
ctx2[
|
|
8966
|
+
ctx2[16]
|
|
8359
8967
|
);
|
|
8360
8968
|
},
|
|
8361
8969
|
d(detaching) {
|
|
@@ -8383,10 +8991,10 @@
|
|
|
8383
8991
|
let div2;
|
|
8384
8992
|
let show_if = (
|
|
8385
8993
|
/*checkContainerDroppedItem*/
|
|
8386
|
-
ctx[
|
|
8994
|
+
ctx[26](
|
|
8387
8995
|
CONTAINER_WORD_BIN_ID,
|
|
8388
8996
|
/*dropContainerId*/
|
|
8389
|
-
ctx[
|
|
8997
|
+
ctx[6]
|
|
8390
8998
|
)
|
|
8391
8999
|
);
|
|
8392
9000
|
let t8;
|
|
@@ -8420,16 +9028,17 @@
|
|
|
8420
9028
|
arrowdowncircle = new ArrowDownCircle_default({});
|
|
8421
9029
|
let if_block0 = (
|
|
8422
9030
|
/*isModalOpen*/
|
|
8423
|
-
ctx[
|
|
9031
|
+
ctx[12] && create_if_block_5(ctx)
|
|
8424
9032
|
);
|
|
8425
9033
|
let if_block1 = (
|
|
8426
9034
|
/*totalRemainingWordBinItem*/
|
|
8427
|
-
ctx[
|
|
8428
|
-
ctx[
|
|
9035
|
+
ctx[10] !== /*totalCategoryItems*/
|
|
9036
|
+
ctx[3] && !/*isFinished*/
|
|
9037
|
+
ctx[0] && create_if_block_42(ctx)
|
|
8429
9038
|
);
|
|
8430
9039
|
let each_value = ensure_array_like(Object.values(
|
|
8431
9040
|
/*categoryGroups*/
|
|
8432
|
-
ctx[
|
|
9041
|
+
ctx[24]
|
|
8433
9042
|
));
|
|
8434
9043
|
let each_blocks = [];
|
|
8435
9044
|
for (let i = 0; i < each_value.length; i += 1) {
|
|
@@ -8438,28 +9047,40 @@
|
|
|
8438
9047
|
const out = (i) => transition_out(each_blocks[i], 1, 1, () => {
|
|
8439
9048
|
each_blocks[i] = null;
|
|
8440
9049
|
});
|
|
8441
|
-
let if_block2 = show_if &&
|
|
9050
|
+
let if_block2 = show_if && create_if_block7(ctx);
|
|
8442
9051
|
smallchevronleft = new SmallChevronLeft_default({});
|
|
8443
9052
|
promptcategorisedndcontainer = new PromptCategoriseDndContainer_default({
|
|
8444
9053
|
props: {
|
|
8445
9054
|
containerClass: "bg-transparent p-4 pt-[55px] grow md:grow-0 md:pt-20.5 justify-center md:justify-normal\n " + /*isWordBInTotalZero*/
|
|
8446
|
-
(ctx[
|
|
9055
|
+
(ctx[32](
|
|
8447
9056
|
/*totalRemainingWordBinItem*/
|
|
8448
|
-
ctx[
|
|
9057
|
+
ctx[10]
|
|
8449
9058
|
) && !/*currentSelectedItemId*/
|
|
8450
|
-
ctx[
|
|
9059
|
+
ctx[7] ? "absolute inset-0" : ""),
|
|
8451
9060
|
items: (
|
|
8452
9061
|
/*categoryItems*/
|
|
8453
|
-
ctx[
|
|
9062
|
+
ctx[23]
|
|
8454
9063
|
),
|
|
8455
9064
|
containerId: CONTAINER_WORD_BIN_ID,
|
|
8456
|
-
ariaLabel: "Word bin"
|
|
9065
|
+
ariaLabel: "Word bin",
|
|
9066
|
+
isFinished: (
|
|
9067
|
+
/*isFinished*/
|
|
9068
|
+
ctx[0]
|
|
9069
|
+
),
|
|
9070
|
+
correctAnswerList: (
|
|
9071
|
+
/*scoringMetadata*/
|
|
9072
|
+
ctx[21]
|
|
9073
|
+
),
|
|
9074
|
+
isPreviewModeInteractive: (
|
|
9075
|
+
/*isPreviewModeInteractive*/
|
|
9076
|
+
ctx[1]
|
|
9077
|
+
)
|
|
8457
9078
|
}
|
|
8458
9079
|
});
|
|
8459
9080
|
promptcategorisedndcontainer.$on(
|
|
8460
9081
|
"saveCategory",
|
|
8461
9082
|
/*saveCategory*/
|
|
8462
|
-
ctx[
|
|
9083
|
+
ctx[33]
|
|
8463
9084
|
);
|
|
8464
9085
|
smallchevronright = new SmallChevronRight_default({});
|
|
8465
9086
|
return {
|
|
@@ -8497,12 +9118,12 @@
|
|
|
8497
9118
|
span3 = element("span");
|
|
8498
9119
|
t11 = text(
|
|
8499
9120
|
/*totalRemainingWordBinItem*/
|
|
8500
|
-
ctx[
|
|
9121
|
+
ctx[10]
|
|
8501
9122
|
);
|
|
8502
9123
|
t12 = text(" out of ");
|
|
8503
9124
|
t13 = text(
|
|
8504
9125
|
/*totalCategoryItems*/
|
|
8505
|
-
ctx[
|
|
9126
|
+
ctx[3]
|
|
8506
9127
|
);
|
|
8507
9128
|
t14 = text(" left");
|
|
8508
9129
|
t15 = space();
|
|
@@ -8522,7 +9143,7 @@
|
|
|
8522
9143
|
button0,
|
|
8523
9144
|
"tabindex",
|
|
8524
9145
|
/*categoryTabIndex*/
|
|
8525
|
-
ctx[
|
|
9146
|
+
ctx[15]
|
|
8526
9147
|
);
|
|
8527
9148
|
attr(button0, "aria-label", "Skip to word bin");
|
|
8528
9149
|
attr(button0, "class", "flex items-center text-charcoal border-l-6 border-charcoal bg-yellow-1000 py-1.5 pr-3 pl-4 focus-visible:border-charcoal left-[-9999px] z-0 focus-within:left-0 focus-within:right-0 focus-within:top-0 absolute focus-within:z-30 focus-visible:outline-none");
|
|
@@ -8532,7 +9153,7 @@
|
|
|
8532
9153
|
div0,
|
|
8533
9154
|
"aria-hidden",
|
|
8534
9155
|
/*isModalOpen*/
|
|
8535
|
-
ctx[
|
|
9156
|
+
ctx[12]
|
|
8536
9157
|
);
|
|
8537
9158
|
attr(div1, "class", "mb-5 grid gap-2 grid-cols-1 md:grid-cols-2 md:gap-6 lg:flex lg:gap-0");
|
|
8538
9159
|
attr(span2, "class", "text-base leading-5 !text-gray-900 font-semibold md:mb-2 md:item-heading");
|
|
@@ -8541,67 +9162,67 @@
|
|
|
8541
9162
|
attr(span4, "class", "w-6 h-6 text-inherit flex items-center justify-center");
|
|
8542
9163
|
attr(button1, "aria-label", "Left");
|
|
8543
9164
|
attr(button1, "class", button1_class_value = "focus-ring p-2 text-blue-1000 rounded-md w-11 h-11 mt-9 td:hover:bg-black-50 active:bg-black-60 disabled:text-gray-40 disabled:hover:bg-white md:hidden " + /*isWordBInTotalZero*/
|
|
8544
|
-
(ctx[
|
|
9165
|
+
(ctx[32](
|
|
8545
9166
|
/*totalRemainingWordBinItem*/
|
|
8546
|
-
ctx[
|
|
9167
|
+
ctx[10]
|
|
8547
9168
|
) ? "hidden" : ""));
|
|
8548
9169
|
button1.disabled = button1_disabled_value = /*currentWordBinIndex*/
|
|
8549
|
-
ctx[
|
|
9170
|
+
ctx[14] === 0;
|
|
8550
9171
|
attr(span5, "class", "w-6 h-6 text-inherit flex items-center justify-center ml-[3px]");
|
|
8551
9172
|
attr(button2, "aria-label", "Right");
|
|
8552
9173
|
attr(button2, "class", button2_class_value = "focus-ring p-2 text-blue-1000 rounded-md w-11 h-11 mt-9 td:hover:bg-black-50 active:bg-black-60 disabled:text-gray-40 disabled:hover:bg-white md:hidden " + /*isWordBInTotalZero*/
|
|
8553
|
-
(ctx[
|
|
9174
|
+
(ctx[32](
|
|
8554
9175
|
/*totalRemainingWordBinItem*/
|
|
8555
|
-
ctx[
|
|
9176
|
+
ctx[10]
|
|
8556
9177
|
) ? "hidden" : ""));
|
|
8557
9178
|
button2.disabled = button2_disabled_value = /*currentWordBinIndex*/
|
|
8558
|
-
ctx[
|
|
8559
|
-
ctx[
|
|
9179
|
+
ctx[14] === /*totalRemainingWordBinItem*/
|
|
9180
|
+
ctx[10] - 1;
|
|
8560
9181
|
attr(div3, "class", "flex items-center justify-between px-4 min-h-[133px] md:min-h-0 md:block md:px-0 md:justify-normal");
|
|
8561
9182
|
attr(
|
|
8562
9183
|
div4,
|
|
8563
9184
|
"aria-hidden",
|
|
8564
9185
|
/*isModalOpen*/
|
|
8565
|
-
ctx[
|
|
9186
|
+
ctx[12]
|
|
8566
9187
|
);
|
|
8567
9188
|
attr(
|
|
8568
9189
|
div4,
|
|
8569
9190
|
"tabindex",
|
|
8570
9191
|
/*categoryTabIndex*/
|
|
8571
|
-
ctx[
|
|
9192
|
+
ctx[15]
|
|
8572
9193
|
);
|
|
8573
9194
|
attr(div4, "aria-live", div4_aria_live_value = /*checkContainerDroppedItem*/
|
|
8574
|
-
ctx[
|
|
9195
|
+
ctx[26](
|
|
8575
9196
|
CONTAINER_WORD_BIN_ID,
|
|
8576
9197
|
/*dropContainerId*/
|
|
8577
|
-
ctx[
|
|
9198
|
+
ctx[6]
|
|
8578
9199
|
) ? "polite" : "off");
|
|
8579
9200
|
attr(div4, "role", "group");
|
|
8580
9201
|
attr(div4, "class", div4_class_value = "focus-ring shadow-[0_-12px_14px_-16px_#00000033] rounded-lg relative min-h-[133px] md:min-h-[164px] md:border md:shadow-[0_0_#0000] md:border-gray-400 " + /*checkContainerDragOver*/
|
|
8581
|
-
(ctx[
|
|
9202
|
+
(ctx[25](
|
|
8582
9203
|
CONTAINER_WORD_BIN_ID,
|
|
8583
9204
|
/*considerContainerId*/
|
|
8584
|
-
ctx[
|
|
9205
|
+
ctx[4],
|
|
8585
9206
|
/*isDraggingOver*/
|
|
8586
|
-
ctx[
|
|
9207
|
+
ctx[5]
|
|
8587
9208
|
) ? "raw-focus-ring bg-violet-100" : "") + " " + /*checkContainerDroppedItem*/
|
|
8588
|
-
(ctx[
|
|
9209
|
+
(ctx[26](
|
|
8589
9210
|
CONTAINER_WORD_BIN_ID,
|
|
8590
9211
|
/*dropContainerId*/
|
|
8591
|
-
ctx[
|
|
9212
|
+
ctx[6]
|
|
8592
9213
|
) ? "bg-violet-150" : "") + " " + /*checkContainerDroppedItem*/
|
|
8593
|
-
(ctx[
|
|
9214
|
+
(ctx[26](
|
|
8594
9215
|
CONTAINER_WORD_BIN_ID,
|
|
8595
9216
|
/*dropContainerId*/
|
|
8596
|
-
ctx[
|
|
9217
|
+
ctx[6]
|
|
8597
9218
|
) && /*hasAddItemAnimation*/
|
|
8598
|
-
ctx[
|
|
8599
|
-
(ctx[
|
|
9219
|
+
ctx[11] ? "transition bg-white duration-300" : "") + " " + /*checkSelectedSourceContainer*/
|
|
9220
|
+
(ctx[27](
|
|
8600
9221
|
CONTAINER_WORD_BIN_ID,
|
|
8601
9222
|
/*sourceSelectedContainerId*/
|
|
8602
|
-
ctx[
|
|
9223
|
+
ctx[8],
|
|
8603
9224
|
/*currentSelectedItemId*/
|
|
8604
|
-
ctx[
|
|
9225
|
+
ctx[7]
|
|
8605
9226
|
) ? "hover:bg-violet-100 hover-focus-ring cursor-pointer" : ""));
|
|
8606
9227
|
},
|
|
8607
9228
|
m(target, anchor) {
|
|
@@ -8650,7 +9271,7 @@
|
|
|
8650
9271
|
append(div3, button2);
|
|
8651
9272
|
append(button2, span5);
|
|
8652
9273
|
mount_component(smallchevronright, span5, null);
|
|
8653
|
-
ctx[
|
|
9274
|
+
ctx[43](div4);
|
|
8654
9275
|
current = true;
|
|
8655
9276
|
if (!mounted) {
|
|
8656
9277
|
dispose = [
|
|
@@ -8658,37 +9279,37 @@
|
|
|
8658
9279
|
button0,
|
|
8659
9280
|
"keypress",
|
|
8660
9281
|
/*goToWordBin*/
|
|
8661
|
-
ctx[
|
|
9282
|
+
ctx[36]
|
|
8662
9283
|
),
|
|
8663
9284
|
listen(button1, "click", function() {
|
|
8664
9285
|
if (is_function(useNavigateItem(
|
|
8665
9286
|
/*currentWordBinIndex*/
|
|
8666
|
-
ctx[
|
|
9287
|
+
ctx[14],
|
|
8667
9288
|
/*currentAnswer*/
|
|
8668
|
-
ctx[
|
|
9289
|
+
ctx[9],
|
|
8669
9290
|
"left"
|
|
8670
9291
|
)))
|
|
8671
9292
|
useNavigateItem(
|
|
8672
9293
|
/*currentWordBinIndex*/
|
|
8673
|
-
ctx[
|
|
9294
|
+
ctx[14],
|
|
8674
9295
|
/*currentAnswer*/
|
|
8675
|
-
ctx[
|
|
9296
|
+
ctx[9],
|
|
8676
9297
|
"left"
|
|
8677
9298
|
).apply(this, arguments);
|
|
8678
9299
|
}),
|
|
8679
9300
|
listen(button2, "click", function() {
|
|
8680
9301
|
if (is_function(useNavigateItem(
|
|
8681
9302
|
/*currentWordBinIndex*/
|
|
8682
|
-
ctx[
|
|
9303
|
+
ctx[14],
|
|
8683
9304
|
/*currentAnswer*/
|
|
8684
|
-
ctx[
|
|
9305
|
+
ctx[9],
|
|
8685
9306
|
"right"
|
|
8686
9307
|
)))
|
|
8687
9308
|
useNavigateItem(
|
|
8688
9309
|
/*currentWordBinIndex*/
|
|
8689
|
-
ctx[
|
|
9310
|
+
ctx[14],
|
|
8690
9311
|
/*currentAnswer*/
|
|
8691
|
-
ctx[
|
|
9312
|
+
ctx[9],
|
|
8692
9313
|
"right"
|
|
8693
9314
|
).apply(this, arguments);
|
|
8694
9315
|
}),
|
|
@@ -8696,13 +9317,13 @@
|
|
|
8696
9317
|
div4,
|
|
8697
9318
|
"keydown",
|
|
8698
9319
|
/*keydown_handler_1*/
|
|
8699
|
-
ctx[
|
|
9320
|
+
ctx[42]
|
|
8700
9321
|
),
|
|
8701
9322
|
listen(
|
|
8702
9323
|
div4,
|
|
8703
9324
|
"focus",
|
|
8704
9325
|
/*resetTabCategory*/
|
|
8705
|
-
ctx[
|
|
9326
|
+
ctx[35]
|
|
8706
9327
|
)
|
|
8707
9328
|
];
|
|
8708
9329
|
mounted = true;
|
|
@@ -8711,26 +9332,26 @@
|
|
|
8711
9332
|
p(new_ctx, dirty) {
|
|
8712
9333
|
ctx = new_ctx;
|
|
8713
9334
|
if (!current || dirty[0] & /*categoryTabIndex*/
|
|
8714
|
-
|
|
9335
|
+
32768) {
|
|
8715
9336
|
attr(
|
|
8716
9337
|
button0,
|
|
8717
9338
|
"tabindex",
|
|
8718
9339
|
/*categoryTabIndex*/
|
|
8719
|
-
ctx[
|
|
9340
|
+
ctx[15]
|
|
8720
9341
|
);
|
|
8721
9342
|
}
|
|
8722
9343
|
if (
|
|
8723
9344
|
/*isModalOpen*/
|
|
8724
|
-
ctx[
|
|
9345
|
+
ctx[12]
|
|
8725
9346
|
) {
|
|
8726
9347
|
if (if_block0) {
|
|
8727
9348
|
if_block0.p(ctx, dirty);
|
|
8728
9349
|
if (dirty[0] & /*isModalOpen*/
|
|
8729
|
-
|
|
9350
|
+
4096) {
|
|
8730
9351
|
transition_in(if_block0, 1);
|
|
8731
9352
|
}
|
|
8732
9353
|
} else {
|
|
8733
|
-
if_block0 =
|
|
9354
|
+
if_block0 = create_if_block_5(ctx);
|
|
8734
9355
|
if_block0.c();
|
|
8735
9356
|
transition_in(if_block0, 1);
|
|
8736
9357
|
if_block0.m(t3.parentNode, t3);
|
|
@@ -8744,17 +9365,18 @@
|
|
|
8744
9365
|
}
|
|
8745
9366
|
if (
|
|
8746
9367
|
/*totalRemainingWordBinItem*/
|
|
8747
|
-
ctx[
|
|
8748
|
-
ctx[
|
|
9368
|
+
ctx[10] !== /*totalCategoryItems*/
|
|
9369
|
+
ctx[3] && !/*isFinished*/
|
|
9370
|
+
ctx[0]
|
|
8749
9371
|
) {
|
|
8750
9372
|
if (if_block1) {
|
|
8751
9373
|
if_block1.p(ctx, dirty);
|
|
8752
|
-
if (dirty[0] & /*totalRemainingWordBinItem, totalCategoryItems*/
|
|
8753
|
-
|
|
9374
|
+
if (dirty[0] & /*totalRemainingWordBinItem, totalCategoryItems, isFinished*/
|
|
9375
|
+
1033) {
|
|
8754
9376
|
transition_in(if_block1, 1);
|
|
8755
9377
|
}
|
|
8756
9378
|
} else {
|
|
8757
|
-
if_block1 =
|
|
9379
|
+
if_block1 = create_if_block_42(ctx);
|
|
8758
9380
|
if_block1.c();
|
|
8759
9381
|
transition_in(if_block1, 1);
|
|
8760
9382
|
if_block1.m(div0, null);
|
|
@@ -8767,20 +9389,20 @@
|
|
|
8767
9389
|
check_outros();
|
|
8768
9390
|
}
|
|
8769
9391
|
if (!current || dirty[0] & /*isModalOpen*/
|
|
8770
|
-
|
|
9392
|
+
4096) {
|
|
8771
9393
|
attr(
|
|
8772
9394
|
div0,
|
|
8773
9395
|
"aria-hidden",
|
|
8774
9396
|
/*isModalOpen*/
|
|
8775
|
-
ctx[
|
|
9397
|
+
ctx[12]
|
|
8776
9398
|
);
|
|
8777
9399
|
}
|
|
8778
|
-
if (dirty[0] & /*isModalOpen, categoryTabIndex, checkContainerDragOver, categoryGroups, considerContainerId, isDraggingOver, checkContainerDroppedItem, dropContainerId, hasAddItemAnimation, checkSelectedSourceContainer, sourceSelectedContainerId, currentSelectedItemId, checkifCategoryContainerOpen, openCategoryContainer, tabCategory,
|
|
8779
|
-
|
|
8780
|
-
|
|
9400
|
+
if (dirty[0] & /*isModalOpen, categoryTabIndex, checkContainerDragOver, categoryGroups, considerContainerId, isDraggingOver, checkContainerDroppedItem, dropContainerId, hasAddItemAnimation, checkSelectedSourceContainer, sourceSelectedContainerId, currentSelectedItemId, checkifCategoryContainerOpen, openCategoryContainer, tabCategory, categoryTitleHeight, isFinished, scoringMetadata, isPreviewModeInteractive, getTotalWords, currentAnswer, previewResultSr, selectedItemName*/
|
|
9401
|
+
1865399283 | dirty[1] & /*getContainerTabSelected, resetTabCategory, saveCategory, addCategoryContainer*/
|
|
9402
|
+
29) {
|
|
8781
9403
|
each_value = ensure_array_like(Object.values(
|
|
8782
9404
|
/*categoryGroups*/
|
|
8783
|
-
ctx[
|
|
9405
|
+
ctx[24]
|
|
8784
9406
|
));
|
|
8785
9407
|
let i;
|
|
8786
9408
|
for (i = 0; i < each_value.length; i += 1) {
|
|
@@ -8802,18 +9424,18 @@
|
|
|
8802
9424
|
check_outros();
|
|
8803
9425
|
}
|
|
8804
9426
|
if (dirty[0] & /*dropContainerId*/
|
|
8805
|
-
|
|
9427
|
+
64)
|
|
8806
9428
|
show_if = /*checkContainerDroppedItem*/
|
|
8807
|
-
ctx[
|
|
9429
|
+
ctx[26](
|
|
8808
9430
|
CONTAINER_WORD_BIN_ID,
|
|
8809
9431
|
/*dropContainerId*/
|
|
8810
|
-
ctx[
|
|
9432
|
+
ctx[6]
|
|
8811
9433
|
);
|
|
8812
9434
|
if (show_if) {
|
|
8813
9435
|
if (if_block2) {
|
|
8814
9436
|
if_block2.p(ctx, dirty);
|
|
8815
9437
|
} else {
|
|
8816
|
-
if_block2 =
|
|
9438
|
+
if_block2 = create_if_block7(ctx);
|
|
8817
9439
|
if_block2.c();
|
|
8818
9440
|
if_block2.m(div2, t8);
|
|
8819
9441
|
}
|
|
@@ -8822,109 +9444,117 @@
|
|
|
8822
9444
|
if_block2 = null;
|
|
8823
9445
|
}
|
|
8824
9446
|
if (!current || dirty[0] & /*totalRemainingWordBinItem*/
|
|
8825
|
-
|
|
9447
|
+
1024)
|
|
8826
9448
|
set_data(
|
|
8827
9449
|
t11,
|
|
8828
9450
|
/*totalRemainingWordBinItem*/
|
|
8829
|
-
ctx[
|
|
9451
|
+
ctx[10]
|
|
8830
9452
|
);
|
|
8831
9453
|
if (!current || dirty[0] & /*totalCategoryItems*/
|
|
8832
|
-
|
|
9454
|
+
8)
|
|
8833
9455
|
set_data(
|
|
8834
9456
|
t13,
|
|
8835
9457
|
/*totalCategoryItems*/
|
|
8836
|
-
ctx[
|
|
9458
|
+
ctx[3]
|
|
8837
9459
|
);
|
|
8838
9460
|
if (!current || dirty[0] & /*totalRemainingWordBinItem*/
|
|
8839
|
-
|
|
8840
|
-
(ctx[
|
|
9461
|
+
1024 && button1_class_value !== (button1_class_value = "focus-ring p-2 text-blue-1000 rounded-md w-11 h-11 mt-9 td:hover:bg-black-50 active:bg-black-60 disabled:text-gray-40 disabled:hover:bg-white md:hidden " + /*isWordBInTotalZero*/
|
|
9462
|
+
(ctx[32](
|
|
8841
9463
|
/*totalRemainingWordBinItem*/
|
|
8842
|
-
ctx[
|
|
9464
|
+
ctx[10]
|
|
8843
9465
|
) ? "hidden" : ""))) {
|
|
8844
9466
|
attr(button1, "class", button1_class_value);
|
|
8845
9467
|
}
|
|
8846
9468
|
if (!current || dirty[0] & /*currentWordBinIndex*/
|
|
8847
|
-
|
|
8848
|
-
ctx[
|
|
9469
|
+
16384 && button1_disabled_value !== (button1_disabled_value = /*currentWordBinIndex*/
|
|
9470
|
+
ctx[14] === 0)) {
|
|
8849
9471
|
button1.disabled = button1_disabled_value;
|
|
8850
9472
|
}
|
|
8851
9473
|
const promptcategorisedndcontainer_changes = {};
|
|
8852
9474
|
if (dirty[0] & /*totalRemainingWordBinItem, currentSelectedItemId*/
|
|
8853
|
-
|
|
9475
|
+
1152)
|
|
8854
9476
|
promptcategorisedndcontainer_changes.containerClass = "bg-transparent p-4 pt-[55px] grow md:grow-0 md:pt-20.5 justify-center md:justify-normal\n " + /*isWordBInTotalZero*/
|
|
8855
|
-
(ctx[
|
|
9477
|
+
(ctx[32](
|
|
8856
9478
|
/*totalRemainingWordBinItem*/
|
|
8857
|
-
ctx[
|
|
9479
|
+
ctx[10]
|
|
8858
9480
|
) && !/*currentSelectedItemId*/
|
|
8859
|
-
ctx[
|
|
9481
|
+
ctx[7] ? "absolute inset-0" : "");
|
|
9482
|
+
if (dirty[0] & /*isFinished*/
|
|
9483
|
+
1)
|
|
9484
|
+
promptcategorisedndcontainer_changes.isFinished = /*isFinished*/
|
|
9485
|
+
ctx[0];
|
|
9486
|
+
if (dirty[0] & /*isPreviewModeInteractive*/
|
|
9487
|
+
2)
|
|
9488
|
+
promptcategorisedndcontainer_changes.isPreviewModeInteractive = /*isPreviewModeInteractive*/
|
|
9489
|
+
ctx[1];
|
|
8860
9490
|
promptcategorisedndcontainer.$set(promptcategorisedndcontainer_changes);
|
|
8861
9491
|
if (!current || dirty[0] & /*totalRemainingWordBinItem*/
|
|
8862
|
-
|
|
8863
|
-
(ctx[
|
|
9492
|
+
1024 && button2_class_value !== (button2_class_value = "focus-ring p-2 text-blue-1000 rounded-md w-11 h-11 mt-9 td:hover:bg-black-50 active:bg-black-60 disabled:text-gray-40 disabled:hover:bg-white md:hidden " + /*isWordBInTotalZero*/
|
|
9493
|
+
(ctx[32](
|
|
8864
9494
|
/*totalRemainingWordBinItem*/
|
|
8865
|
-
ctx[
|
|
9495
|
+
ctx[10]
|
|
8866
9496
|
) ? "hidden" : ""))) {
|
|
8867
9497
|
attr(button2, "class", button2_class_value);
|
|
8868
9498
|
}
|
|
8869
9499
|
if (!current || dirty[0] & /*currentWordBinIndex, totalRemainingWordBinItem*/
|
|
8870
|
-
|
|
8871
|
-
ctx[
|
|
8872
|
-
ctx[
|
|
9500
|
+
17408 && button2_disabled_value !== (button2_disabled_value = /*currentWordBinIndex*/
|
|
9501
|
+
ctx[14] === /*totalRemainingWordBinItem*/
|
|
9502
|
+
ctx[10] - 1)) {
|
|
8873
9503
|
button2.disabled = button2_disabled_value;
|
|
8874
9504
|
}
|
|
8875
9505
|
if (!current || dirty[0] & /*isModalOpen*/
|
|
8876
|
-
|
|
9506
|
+
4096) {
|
|
8877
9507
|
attr(
|
|
8878
9508
|
div4,
|
|
8879
9509
|
"aria-hidden",
|
|
8880
9510
|
/*isModalOpen*/
|
|
8881
|
-
ctx[
|
|
9511
|
+
ctx[12]
|
|
8882
9512
|
);
|
|
8883
9513
|
}
|
|
8884
9514
|
if (!current || dirty[0] & /*categoryTabIndex*/
|
|
8885
|
-
|
|
9515
|
+
32768) {
|
|
8886
9516
|
attr(
|
|
8887
9517
|
div4,
|
|
8888
9518
|
"tabindex",
|
|
8889
9519
|
/*categoryTabIndex*/
|
|
8890
|
-
ctx[
|
|
9520
|
+
ctx[15]
|
|
8891
9521
|
);
|
|
8892
9522
|
}
|
|
8893
9523
|
if (!current || dirty[0] & /*dropContainerId*/
|
|
8894
|
-
|
|
8895
|
-
ctx[
|
|
9524
|
+
64 && div4_aria_live_value !== (div4_aria_live_value = /*checkContainerDroppedItem*/
|
|
9525
|
+
ctx[26](
|
|
8896
9526
|
CONTAINER_WORD_BIN_ID,
|
|
8897
9527
|
/*dropContainerId*/
|
|
8898
|
-
ctx[
|
|
9528
|
+
ctx[6]
|
|
8899
9529
|
) ? "polite" : "off")) {
|
|
8900
9530
|
attr(div4, "aria-live", div4_aria_live_value);
|
|
8901
9531
|
}
|
|
8902
9532
|
if (!current || dirty[0] & /*considerContainerId, isDraggingOver, dropContainerId, hasAddItemAnimation, sourceSelectedContainerId, currentSelectedItemId*/
|
|
8903
|
-
|
|
8904
|
-
(ctx[
|
|
9533
|
+
2544 && div4_class_value !== (div4_class_value = "focus-ring shadow-[0_-12px_14px_-16px_#00000033] rounded-lg relative min-h-[133px] md:min-h-[164px] md:border md:shadow-[0_0_#0000] md:border-gray-400 " + /*checkContainerDragOver*/
|
|
9534
|
+
(ctx[25](
|
|
8905
9535
|
CONTAINER_WORD_BIN_ID,
|
|
8906
9536
|
/*considerContainerId*/
|
|
8907
|
-
ctx[
|
|
9537
|
+
ctx[4],
|
|
8908
9538
|
/*isDraggingOver*/
|
|
8909
|
-
ctx[
|
|
9539
|
+
ctx[5]
|
|
8910
9540
|
) ? "raw-focus-ring bg-violet-100" : "") + " " + /*checkContainerDroppedItem*/
|
|
8911
|
-
(ctx[
|
|
9541
|
+
(ctx[26](
|
|
8912
9542
|
CONTAINER_WORD_BIN_ID,
|
|
8913
9543
|
/*dropContainerId*/
|
|
8914
|
-
ctx[
|
|
9544
|
+
ctx[6]
|
|
8915
9545
|
) ? "bg-violet-150" : "") + " " + /*checkContainerDroppedItem*/
|
|
8916
|
-
(ctx[
|
|
9546
|
+
(ctx[26](
|
|
8917
9547
|
CONTAINER_WORD_BIN_ID,
|
|
8918
9548
|
/*dropContainerId*/
|
|
8919
|
-
ctx[
|
|
9549
|
+
ctx[6]
|
|
8920
9550
|
) && /*hasAddItemAnimation*/
|
|
8921
|
-
ctx[
|
|
8922
|
-
(ctx[
|
|
9551
|
+
ctx[11] ? "transition bg-white duration-300" : "") + " " + /*checkSelectedSourceContainer*/
|
|
9552
|
+
(ctx[27](
|
|
8923
9553
|
CONTAINER_WORD_BIN_ID,
|
|
8924
9554
|
/*sourceSelectedContainerId*/
|
|
8925
|
-
ctx[
|
|
9555
|
+
ctx[8],
|
|
8926
9556
|
/*currentSelectedItemId*/
|
|
8927
|
-
ctx[
|
|
9557
|
+
ctx[7]
|
|
8928
9558
|
) ? "hover:bg-violet-100 hover-focus-ring cursor-pointer" : ""))) {
|
|
8929
9559
|
attr(div4, "class", div4_class_value);
|
|
8930
9560
|
}
|
|
@@ -8978,13 +9608,13 @@
|
|
|
8978
9608
|
destroy_component(smallchevronleft);
|
|
8979
9609
|
destroy_component(promptcategorisedndcontainer);
|
|
8980
9610
|
destroy_component(smallchevronright);
|
|
8981
|
-
ctx[
|
|
9611
|
+
ctx[43](null);
|
|
8982
9612
|
mounted = false;
|
|
8983
9613
|
run_all(dispose);
|
|
8984
9614
|
}
|
|
8985
9615
|
};
|
|
8986
9616
|
}
|
|
8987
|
-
function
|
|
9617
|
+
function create_fragment21(ctx) {
|
|
8988
9618
|
let div;
|
|
8989
9619
|
let promptbody;
|
|
8990
9620
|
let current;
|
|
@@ -8992,11 +9622,11 @@
|
|
|
8992
9622
|
props: {
|
|
8993
9623
|
rubric: (
|
|
8994
9624
|
/*rubric*/
|
|
8995
|
-
ctx[
|
|
9625
|
+
ctx[20].text
|
|
8996
9626
|
),
|
|
8997
9627
|
prompt: (
|
|
8998
9628
|
/*prompt*/
|
|
8999
|
-
ctx[
|
|
9629
|
+
ctx[22]
|
|
9000
9630
|
),
|
|
9001
9631
|
$$slots: { default: [create_default_slot4] },
|
|
9002
9632
|
$$scope: { ctx }
|
|
@@ -9011,14 +9641,14 @@
|
|
|
9011
9641
|
m(target, anchor) {
|
|
9012
9642
|
insert(target, div, anchor);
|
|
9013
9643
|
mount_component(promptbody, div, null);
|
|
9014
|
-
ctx[
|
|
9644
|
+
ctx[44](div);
|
|
9015
9645
|
current = true;
|
|
9016
9646
|
},
|
|
9017
9647
|
p(ctx2, dirty) {
|
|
9018
9648
|
const promptbody_changes = {};
|
|
9019
|
-
if (dirty[0] & /*isModalOpen, categoryTabIndex, dropContainerId, considerContainerId, isDraggingOver, hasAddItemAnimation, sourceSelectedContainerId, currentSelectedItemId, tabCategory, totalRemainingWordBinItem, currentWordBinIndex, currentAnswer, totalCategoryItems, selectedItemName, openCategoryContainer, categoryTitleHeight*/
|
|
9020
|
-
|
|
9021
|
-
|
|
9649
|
+
if (dirty[0] & /*isModalOpen, categoryTabIndex, dropContainerId, considerContainerId, isDraggingOver, hasAddItemAnimation, sourceSelectedContainerId, currentSelectedItemId, tabCategory, totalRemainingWordBinItem, currentWordBinIndex, currentAnswer, isFinished, isPreviewModeInteractive, totalCategoryItems, selectedItemName, openCategoryContainer, categoryTitleHeight, previewResultSr*/
|
|
9650
|
+
1048571 | dirty[1] & /*$$scope*/
|
|
9651
|
+
33554432) {
|
|
9022
9652
|
promptbody_changes.$$scope = { dirty, ctx: ctx2 };
|
|
9023
9653
|
}
|
|
9024
9654
|
promptbody.$set(promptbody_changes);
|
|
@@ -9038,12 +9668,15 @@
|
|
|
9038
9668
|
detach(div);
|
|
9039
9669
|
}
|
|
9040
9670
|
destroy_component(promptbody);
|
|
9041
|
-
ctx[
|
|
9671
|
+
ctx[44](null);
|
|
9042
9672
|
}
|
|
9043
9673
|
};
|
|
9044
9674
|
}
|
|
9045
9675
|
function instance9($$self, $$props, $$invalidate) {
|
|
9046
9676
|
let { sessionData } = $$props;
|
|
9677
|
+
let { isFinished = false } = $$props;
|
|
9678
|
+
let { isPreviewMode = false } = $$props;
|
|
9679
|
+
let { isPreviewModeInteractive = false } = $$props;
|
|
9047
9680
|
const dispatch = createEventDispatcher();
|
|
9048
9681
|
let srDiv;
|
|
9049
9682
|
let totalCategoryItems = 0;
|
|
@@ -9061,12 +9694,13 @@
|
|
|
9061
9694
|
let currentWordBinIndex = [];
|
|
9062
9695
|
let categoryTabIndex = 0;
|
|
9063
9696
|
let selectedItemName = "";
|
|
9064
|
-
|
|
9697
|
+
let previewResultSr = "";
|
|
9698
|
+
const { rubric, interaction, metadata, scoringMetadata } = sessionData;
|
|
9065
9699
|
const { prompt, category_groups: interactionCategoryGroups, category_items: interactionCategoryItems } = interaction;
|
|
9066
9700
|
const categoryItems = useFilterUniqueObject(interactionCategoryItems);
|
|
9067
9701
|
const categoryGroups = useFilterUniqueObject(interactionCategoryGroups);
|
|
9068
9702
|
const tabCategory = [];
|
|
9069
|
-
categoryGroups.map((group) => $$invalidate(
|
|
9703
|
+
categoryGroups.map((group) => $$invalidate(18, tabCategory[group.id] = false, tabCategory));
|
|
9070
9704
|
totalCategoryItems = totalRemainingWordBinItem = Object.keys(categoryItems).length;
|
|
9071
9705
|
let wordBinItems = categoryItems.map((item) => item.id);
|
|
9072
9706
|
let initialCategoryAnswer = [
|
|
@@ -9077,7 +9711,7 @@
|
|
|
9077
9711
|
];
|
|
9078
9712
|
let categoryTitleHeight = [];
|
|
9079
9713
|
categoryGroups.map((category) => {
|
|
9080
|
-
$$invalidate(
|
|
9714
|
+
$$invalidate(19, categoryTitleHeight[category.id] = "", categoryTitleHeight);
|
|
9081
9715
|
});
|
|
9082
9716
|
if (metadata) {
|
|
9083
9717
|
const { events } = metadata.interactions;
|
|
@@ -9095,6 +9729,42 @@
|
|
|
9095
9729
|
initialCategoryAnswer = [...initialCategoryAnswer, ...categorySavedItems];
|
|
9096
9730
|
}
|
|
9097
9731
|
}
|
|
9732
|
+
if (isFinished) {
|
|
9733
|
+
const showOpenContainerList = [];
|
|
9734
|
+
const { answerList } = scoringMetadata;
|
|
9735
|
+
let categoryWithAnswer = categoryGroups.map((category) => {
|
|
9736
|
+
const { id: categoryId } = category;
|
|
9737
|
+
showOpenContainerList.push(categoryId);
|
|
9738
|
+
const categoryIndex = initialCategoryAnswer.findIndex((answer) => answer.categoryId === categoryId);
|
|
9739
|
+
const categoryData = initialCategoryAnswer[categoryIndex];
|
|
9740
|
+
const categoryAnswerList = answerList[categoryId];
|
|
9741
|
+
let missedItems = [];
|
|
9742
|
+
const items = [];
|
|
9743
|
+
if (categoryData) {
|
|
9744
|
+
const { itemId } = categoryData;
|
|
9745
|
+
const correctItems = itemId.filter((item) => categoryAnswerList.includes(item));
|
|
9746
|
+
const incorrectItems = itemId.filter((item) => !categoryAnswerList.includes(item));
|
|
9747
|
+
missedItems = categoryAnswerList.filter((item) => !itemId.includes(item));
|
|
9748
|
+
correctItems?.map((item) => items.push(`${item}${EAT_DASH}${ANSWER_CORRECT}`));
|
|
9749
|
+
incorrectItems?.map((item) => items.push(`${item}${EAT_DASH}${ANSWER_INCORRECT}`));
|
|
9750
|
+
} else {
|
|
9751
|
+
missedItems = categoryAnswerList;
|
|
9752
|
+
}
|
|
9753
|
+
missedItems?.map((item) => items.push(`${item}${EAT_DASH}${isPreviewMode ? ANSWER_CORRECT : ANSWER_MISSED}`));
|
|
9754
|
+
return { categoryId, itemId: items };
|
|
9755
|
+
});
|
|
9756
|
+
const wordBinIndex = initialCategoryAnswer.findIndex((answer) => answer.categoryId === CONTAINER_WORD_BIN_ID);
|
|
9757
|
+
const wordBinData = initialCategoryAnswer[wordBinIndex].itemId?.map((item) => `${item}${EAT_DASH}${ANSWER_INCORRECT}`);
|
|
9758
|
+
categoryWithAnswer.push({
|
|
9759
|
+
categoryId: CONTAINER_WORD_BIN_ID,
|
|
9760
|
+
itemId: isPreviewMode ? [] : wordBinData
|
|
9761
|
+
});
|
|
9762
|
+
initialCategoryAnswer = categoryWithAnswer;
|
|
9763
|
+
categoriseSettings.set({
|
|
9764
|
+
...get_store_value(categoriseSettings),
|
|
9765
|
+
openCategoryContainer: showOpenContainerList
|
|
9766
|
+
});
|
|
9767
|
+
}
|
|
9098
9768
|
categoriseSettings.set({
|
|
9099
9769
|
...get_store_value(categoriseSettings),
|
|
9100
9770
|
currentAnswer: initialCategoryAnswer,
|
|
@@ -9103,13 +9773,13 @@
|
|
|
9103
9773
|
});
|
|
9104
9774
|
modalSettings.subscribe((value) => {
|
|
9105
9775
|
const { isModalOpen: storeIsModalOpen, isOpenLastStatus } = value;
|
|
9106
|
-
$$invalidate(
|
|
9107
|
-
$$invalidate(
|
|
9776
|
+
$$invalidate(12, isModalOpen = storeIsModalOpen);
|
|
9777
|
+
$$invalidate(15, categoryTabIndex = storeIsModalOpen ? -1 : 0);
|
|
9108
9778
|
if (!storeIsModalOpen && isOpenLastStatus) {
|
|
9109
9779
|
setTimeout(() => {
|
|
9110
|
-
$$invalidate(
|
|
9780
|
+
$$invalidate(2, srDiv.tabIndex = 0, srDiv);
|
|
9111
9781
|
srDiv.focus();
|
|
9112
|
-
$$invalidate(
|
|
9782
|
+
$$invalidate(2, srDiv.tabIndex = -1, srDiv);
|
|
9113
9783
|
modalSettings.set({
|
|
9114
9784
|
...get_store_value(modalSettings),
|
|
9115
9785
|
isOpenLastStatus: false
|
|
@@ -9118,21 +9788,22 @@
|
|
|
9118
9788
|
}
|
|
9119
9789
|
});
|
|
9120
9790
|
categoriseSettings.subscribe((value) => {
|
|
9121
|
-
const { considerContainerId: storeConsiderContainerId, isDraggingOver: storeIsDraggingOver, dropContainerId: storeDropContainerId, sourceCloneContainerId: storeSourceCloneContainerId, selectedItemId: storeSelectedItemId, sourceSelectedContainerId: storeSourceSelectedContainerId, currentAnswer: storeCurrentAnswer, hasAddItemAnimation: storeHasAddItemAnimation, openCategoryContainer: storeOpenCategoryContainer, currentWordBinIndex: storeCurrentWordBinIndex, selectedItemName: storeSelectedItemName, lastSelectedTabContainer } = value;
|
|
9122
|
-
$$invalidate(
|
|
9123
|
-
$$invalidate(
|
|
9124
|
-
$$invalidate(
|
|
9791
|
+
const { considerContainerId: storeConsiderContainerId, isDraggingOver: storeIsDraggingOver, dropContainerId: storeDropContainerId, sourceCloneContainerId: storeSourceCloneContainerId, selectedItemId: storeSelectedItemId, sourceSelectedContainerId: storeSourceSelectedContainerId, currentAnswer: storeCurrentAnswer, hasAddItemAnimation: storeHasAddItemAnimation, openCategoryContainer: storeOpenCategoryContainer, currentWordBinIndex: storeCurrentWordBinIndex, selectedItemName: storeSelectedItemName, lastSelectedTabContainer, previewResultSr: storepreviewResultSr } = value;
|
|
9792
|
+
$$invalidate(4, considerContainerId = storeConsiderContainerId);
|
|
9793
|
+
$$invalidate(5, isDraggingOver = storeIsDraggingOver);
|
|
9794
|
+
$$invalidate(6, dropContainerId = storeDropContainerId);
|
|
9125
9795
|
sourceCloneContainerId = storeSourceCloneContainerId;
|
|
9126
|
-
$$invalidate(
|
|
9127
|
-
$$invalidate(
|
|
9128
|
-
$$invalidate(
|
|
9129
|
-
$$invalidate(
|
|
9130
|
-
$$invalidate(
|
|
9131
|
-
$$invalidate(
|
|
9132
|
-
$$invalidate(
|
|
9133
|
-
$$invalidate(
|
|
9796
|
+
$$invalidate(7, currentSelectedItemId = storeSelectedItemId);
|
|
9797
|
+
$$invalidate(8, sourceSelectedContainerId = storeSourceSelectedContainerId);
|
|
9798
|
+
$$invalidate(9, currentAnswer = storeCurrentAnswer);
|
|
9799
|
+
$$invalidate(11, hasAddItemAnimation = storeHasAddItemAnimation);
|
|
9800
|
+
$$invalidate(13, openCategoryContainer = storeOpenCategoryContainer);
|
|
9801
|
+
$$invalidate(14, currentWordBinIndex = storeCurrentWordBinIndex);
|
|
9802
|
+
$$invalidate(16, selectedItemName = storeSelectedItemName);
|
|
9803
|
+
$$invalidate(17, previewResultSr = storepreviewResultSr);
|
|
9804
|
+
$$invalidate(15, categoryTabIndex = storeSelectedItemId.length ? -1 : 0);
|
|
9134
9805
|
const storeWordBinItem = currentAnswer.filter((answer) => answer.categoryId === CONTAINER_WORD_BIN_ID);
|
|
9135
|
-
$$invalidate(
|
|
9806
|
+
$$invalidate(10, totalRemainingWordBinItem = storeWordBinItem[0].itemId.length);
|
|
9136
9807
|
if (lastSelectedTabContainer) {
|
|
9137
9808
|
setTimeout(
|
|
9138
9809
|
() => {
|
|
@@ -9159,8 +9830,19 @@
|
|
|
9159
9830
|
modalSettings.set({ ...get_store_value(modalSettings), isModalOpen: true });
|
|
9160
9831
|
};
|
|
9161
9832
|
const getTotalWords = (categoryId, currentAnswerData) => {
|
|
9162
|
-
|
|
9163
|
-
const
|
|
9833
|
+
let totalWords = 0;
|
|
9834
|
+
const category = currentAnswerData.filter((answer) => answer.categoryId === categoryId)[0];
|
|
9835
|
+
if (category) {
|
|
9836
|
+
const categoryItems2 = category.itemId;
|
|
9837
|
+
totalWords = categoryItems2.length;
|
|
9838
|
+
if (isFinished) {
|
|
9839
|
+
const items = categoryItems2.filter((item) => {
|
|
9840
|
+
const itemType = item.split(EAT_DASH)[1];
|
|
9841
|
+
return itemType !== ANSWER_MISSED;
|
|
9842
|
+
});
|
|
9843
|
+
totalWords = items.length;
|
|
9844
|
+
}
|
|
9845
|
+
}
|
|
9164
9846
|
return `${totalWords} ${totalWords === 1 ? "word" : "words"}`;
|
|
9165
9847
|
};
|
|
9166
9848
|
const checkifCategoryContainerOpen = (categoryId, openCategoryContainer2) => {
|
|
@@ -9183,6 +9865,8 @@
|
|
|
9183
9865
|
return totalRemainingWordBinItem2 <= 0;
|
|
9184
9866
|
};
|
|
9185
9867
|
const saveCategory = ({ detail }) => {
|
|
9868
|
+
if (isPreviewModeInteractive)
|
|
9869
|
+
return;
|
|
9186
9870
|
dispatch("saveCategory", detail);
|
|
9187
9871
|
};
|
|
9188
9872
|
const getContainerTabSelected = (key, containerId) => {
|
|
@@ -9213,33 +9897,41 @@
|
|
|
9213
9897
|
};
|
|
9214
9898
|
function div0_elementresize_handler(category) {
|
|
9215
9899
|
categoryTitleHeight[category.id] = this.clientHeight;
|
|
9216
|
-
$$invalidate(
|
|
9900
|
+
$$invalidate(19, categoryTitleHeight);
|
|
9217
9901
|
}
|
|
9218
9902
|
const keydown_handler = (category, { key }) => getContainerTabSelected(key, category.id);
|
|
9219
9903
|
function div1_binding($$value, category) {
|
|
9220
9904
|
binding_callbacks[$$value ? "unshift" : "push"](() => {
|
|
9221
9905
|
tabCategory[category.id] = $$value;
|
|
9222
|
-
$$invalidate(
|
|
9906
|
+
$$invalidate(18, tabCategory);
|
|
9223
9907
|
});
|
|
9224
9908
|
}
|
|
9225
9909
|
const keydown_handler_1 = ({ key }) => getContainerTabSelected(key, CONTAINER_WORD_BIN_ID);
|
|
9226
9910
|
function div4_binding($$value) {
|
|
9227
9911
|
binding_callbacks[$$value ? "unshift" : "push"](() => {
|
|
9228
9912
|
tabCategory[CONTAINER_WORD_BIN_ID] = $$value;
|
|
9229
|
-
$$invalidate(
|
|
9913
|
+
$$invalidate(18, tabCategory);
|
|
9230
9914
|
});
|
|
9231
9915
|
}
|
|
9232
9916
|
function div_binding($$value) {
|
|
9233
9917
|
binding_callbacks[$$value ? "unshift" : "push"](() => {
|
|
9234
9918
|
srDiv = $$value;
|
|
9235
|
-
$$invalidate(
|
|
9919
|
+
$$invalidate(2, srDiv);
|
|
9236
9920
|
});
|
|
9237
9921
|
}
|
|
9238
9922
|
$$self.$$set = ($$props2) => {
|
|
9239
9923
|
if ("sessionData" in $$props2)
|
|
9240
|
-
$$invalidate(
|
|
9924
|
+
$$invalidate(37, sessionData = $$props2.sessionData);
|
|
9925
|
+
if ("isFinished" in $$props2)
|
|
9926
|
+
$$invalidate(0, isFinished = $$props2.isFinished);
|
|
9927
|
+
if ("isPreviewMode" in $$props2)
|
|
9928
|
+
$$invalidate(38, isPreviewMode = $$props2.isPreviewMode);
|
|
9929
|
+
if ("isPreviewModeInteractive" in $$props2)
|
|
9930
|
+
$$invalidate(1, isPreviewModeInteractive = $$props2.isPreviewModeInteractive);
|
|
9241
9931
|
};
|
|
9242
9932
|
return [
|
|
9933
|
+
isFinished,
|
|
9934
|
+
isPreviewModeInteractive,
|
|
9243
9935
|
srDiv,
|
|
9244
9936
|
totalCategoryItems,
|
|
9245
9937
|
considerContainerId,
|
|
@@ -9255,9 +9947,11 @@
|
|
|
9255
9947
|
currentWordBinIndex,
|
|
9256
9948
|
categoryTabIndex,
|
|
9257
9949
|
selectedItemName,
|
|
9950
|
+
previewResultSr,
|
|
9258
9951
|
tabCategory,
|
|
9259
9952
|
categoryTitleHeight,
|
|
9260
9953
|
rubric,
|
|
9954
|
+
scoringMetadata,
|
|
9261
9955
|
prompt,
|
|
9262
9956
|
categoryItems,
|
|
9263
9957
|
categoryGroups,
|
|
@@ -9274,6 +9968,7 @@
|
|
|
9274
9968
|
resetTabCategory,
|
|
9275
9969
|
goToWordBin,
|
|
9276
9970
|
sessionData,
|
|
9971
|
+
isPreviewMode,
|
|
9277
9972
|
div0_elementresize_handler,
|
|
9278
9973
|
keydown_handler,
|
|
9279
9974
|
div1_binding,
|
|
@@ -9285,21 +9980,56 @@
|
|
|
9285
9980
|
var PromptCategorise = class extends SvelteComponent {
|
|
9286
9981
|
constructor(options) {
|
|
9287
9982
|
super();
|
|
9288
|
-
init(
|
|
9983
|
+
init(
|
|
9984
|
+
this,
|
|
9985
|
+
options,
|
|
9986
|
+
instance9,
|
|
9987
|
+
create_fragment21,
|
|
9988
|
+
safe_not_equal,
|
|
9989
|
+
{
|
|
9990
|
+
sessionData: 37,
|
|
9991
|
+
isFinished: 0,
|
|
9992
|
+
isPreviewMode: 38,
|
|
9993
|
+
isPreviewModeInteractive: 1
|
|
9994
|
+
},
|
|
9995
|
+
null,
|
|
9996
|
+
[-1, -1]
|
|
9997
|
+
);
|
|
9289
9998
|
}
|
|
9290
9999
|
get sessionData() {
|
|
9291
|
-
return this.$$.ctx[
|
|
10000
|
+
return this.$$.ctx[37];
|
|
9292
10001
|
}
|
|
9293
10002
|
set sessionData(sessionData) {
|
|
9294
10003
|
this.$$set({ sessionData });
|
|
9295
10004
|
flush();
|
|
9296
10005
|
}
|
|
10006
|
+
get isFinished() {
|
|
10007
|
+
return this.$$.ctx[0];
|
|
10008
|
+
}
|
|
10009
|
+
set isFinished(isFinished) {
|
|
10010
|
+
this.$$set({ isFinished });
|
|
10011
|
+
flush();
|
|
10012
|
+
}
|
|
10013
|
+
get isPreviewMode() {
|
|
10014
|
+
return this.$$.ctx[38];
|
|
10015
|
+
}
|
|
10016
|
+
set isPreviewMode(isPreviewMode) {
|
|
10017
|
+
this.$$set({ isPreviewMode });
|
|
10018
|
+
flush();
|
|
10019
|
+
}
|
|
10020
|
+
get isPreviewModeInteractive() {
|
|
10021
|
+
return this.$$.ctx[1];
|
|
10022
|
+
}
|
|
10023
|
+
set isPreviewModeInteractive(isPreviewModeInteractive) {
|
|
10024
|
+
this.$$set({ isPreviewModeInteractive });
|
|
10025
|
+
flush();
|
|
10026
|
+
}
|
|
9297
10027
|
};
|
|
9298
|
-
customElements.define("prompt-categorise", create_custom_element(PromptCategorise, { "sessionData": {} }, [], [], true));
|
|
10028
|
+
customElements.define("prompt-categorise", create_custom_element(PromptCategorise, { "sessionData": {}, "isFinished": { "type": "Boolean" }, "isPreviewMode": { "type": "Boolean" }, "isPreviewModeInteractive": { "type": "Boolean" } }, [], [], true));
|
|
9299
10029
|
var PromptCategorise_default = PromptCategorise;
|
|
9300
10030
|
|
|
9301
10031
|
// src/lib/components/prompt/skeleton/PromptSkeleton.svelte
|
|
9302
|
-
function
|
|
10032
|
+
function create_fragment22(ctx) {
|
|
9303
10033
|
let div3;
|
|
9304
10034
|
return {
|
|
9305
10035
|
c() {
|
|
@@ -9322,14 +10052,14 @@
|
|
|
9322
10052
|
var PromptSkeleton = class extends SvelteComponent {
|
|
9323
10053
|
constructor(options) {
|
|
9324
10054
|
super();
|
|
9325
|
-
init(this, options, null,
|
|
10055
|
+
init(this, options, null, create_fragment22, safe_not_equal, {});
|
|
9326
10056
|
}
|
|
9327
10057
|
};
|
|
9328
10058
|
customElements.define("prompt-skeleton", create_custom_element(PromptSkeleton, {}, [], [], true));
|
|
9329
10059
|
var PromptSkeleton_default = PromptSkeleton;
|
|
9330
10060
|
|
|
9331
10061
|
// src/lib/components/common/InvalidBanner.svelte
|
|
9332
|
-
function
|
|
10062
|
+
function create_fragment23(ctx) {
|
|
9333
10063
|
let p;
|
|
9334
10064
|
let t2;
|
|
9335
10065
|
return {
|
|
@@ -9374,7 +10104,7 @@
|
|
|
9374
10104
|
var InvalidBanner = class extends SvelteComponent {
|
|
9375
10105
|
constructor(options) {
|
|
9376
10106
|
super();
|
|
9377
|
-
init(this, options, instance10,
|
|
10107
|
+
init(this, options, instance10, create_fragment23, safe_not_equal, { bannerLabel: 0 });
|
|
9378
10108
|
}
|
|
9379
10109
|
get bannerLabel() {
|
|
9380
10110
|
return this.$$.ctx[0];
|
|
@@ -9389,7 +10119,7 @@
|
|
|
9389
10119
|
|
|
9390
10120
|
// src/lib/components/prompt/PromptBuilder.svelte
|
|
9391
10121
|
function add_css(target) {
|
|
9392
|
-
append_styles(target, "svelte-12ljqr6", '*,: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-12ljqr6-pulse{{opacity:0.5}}.animate-skeleton{--tw-bg-opacity:1;animation:svelte-12ljqr6-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-bg-opacity:1!important;background-color:rgb(205 208 254/var(--tw-bg-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}.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-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}}@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\\: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}}');
|
|
10122
|
+
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}}');
|
|
9393
10123
|
}
|
|
9394
10124
|
function create_else_block_12(ctx) {
|
|
9395
10125
|
let invalidbanner;
|
|
@@ -9419,12 +10149,12 @@
|
|
|
9419
10149
|
}
|
|
9420
10150
|
};
|
|
9421
10151
|
}
|
|
9422
|
-
function
|
|
10152
|
+
function create_if_block_18(ctx) {
|
|
9423
10153
|
let current_block_type_index;
|
|
9424
10154
|
let if_block;
|
|
9425
10155
|
let if_block_anchor;
|
|
9426
10156
|
let current;
|
|
9427
|
-
const if_block_creators = [
|
|
10157
|
+
const if_block_creators = [create_if_block_26, create_if_block_34, create_if_block_43, create_else_block5];
|
|
9428
10158
|
const if_blocks = [];
|
|
9429
10159
|
function select_block_type_1(ctx2, dirty) {
|
|
9430
10160
|
if (
|
|
@@ -9496,7 +10226,7 @@
|
|
|
9496
10226
|
}
|
|
9497
10227
|
};
|
|
9498
10228
|
}
|
|
9499
|
-
function
|
|
10229
|
+
function create_if_block8(ctx) {
|
|
9500
10230
|
let promptskeleton;
|
|
9501
10231
|
let current;
|
|
9502
10232
|
promptskeleton = new PromptSkeleton_default({});
|
|
@@ -9524,7 +10254,7 @@
|
|
|
9524
10254
|
}
|
|
9525
10255
|
};
|
|
9526
10256
|
}
|
|
9527
|
-
function
|
|
10257
|
+
function create_else_block5(ctx) {
|
|
9528
10258
|
let invalidbanner;
|
|
9529
10259
|
let current;
|
|
9530
10260
|
invalidbanner = new InvalidBanner_default({ props: { bannerLabel } });
|
|
@@ -9556,10 +10286,24 @@
|
|
|
9556
10286
|
let promptcategorise;
|
|
9557
10287
|
let current;
|
|
9558
10288
|
promptcategorise = new PromptCategorise_default({
|
|
9559
|
-
props: {
|
|
9560
|
-
|
|
9561
|
-
|
|
9562
|
-
|
|
10289
|
+
props: {
|
|
10290
|
+
sessionData: (
|
|
10291
|
+
/*sessionData*/
|
|
10292
|
+
ctx[0]
|
|
10293
|
+
),
|
|
10294
|
+
isFinished: (
|
|
10295
|
+
/*isFinished*/
|
|
10296
|
+
ctx[4]
|
|
10297
|
+
),
|
|
10298
|
+
isPreviewMode: (
|
|
10299
|
+
/*isPreviewMode*/
|
|
10300
|
+
ctx[7]
|
|
10301
|
+
),
|
|
10302
|
+
isPreviewModeInteractive: (
|
|
10303
|
+
/*isPreviewModeInteractive*/
|
|
10304
|
+
ctx[6]
|
|
10305
|
+
)
|
|
10306
|
+
}
|
|
9563
10307
|
});
|
|
9564
10308
|
promptcategorise.$on(
|
|
9565
10309
|
"saveCategory",
|
|
@@ -9580,6 +10324,10 @@
|
|
|
9580
10324
|
1)
|
|
9581
10325
|
promptcategorise_changes.sessionData = /*sessionData*/
|
|
9582
10326
|
ctx2[0];
|
|
10327
|
+
if (dirty & /*isFinished*/
|
|
10328
|
+
16)
|
|
10329
|
+
promptcategorise_changes.isFinished = /*isFinished*/
|
|
10330
|
+
ctx2[4];
|
|
9583
10331
|
promptcategorise.$set(promptcategorise_changes);
|
|
9584
10332
|
},
|
|
9585
10333
|
i(local) {
|
|
@@ -9597,7 +10345,7 @@
|
|
|
9597
10345
|
}
|
|
9598
10346
|
};
|
|
9599
10347
|
}
|
|
9600
|
-
function
|
|
10348
|
+
function create_if_block_34(ctx) {
|
|
9601
10349
|
let prompttypein;
|
|
9602
10350
|
let current;
|
|
9603
10351
|
prompttypein = new PromptTypeIn_default({
|
|
@@ -9676,7 +10424,7 @@
|
|
|
9676
10424
|
}
|
|
9677
10425
|
};
|
|
9678
10426
|
}
|
|
9679
|
-
function
|
|
10427
|
+
function create_if_block_26(ctx) {
|
|
9680
10428
|
let promptmcq;
|
|
9681
10429
|
let current;
|
|
9682
10430
|
promptmcq = new PromptMCQ_default({
|
|
@@ -9751,12 +10499,12 @@
|
|
|
9751
10499
|
}
|
|
9752
10500
|
};
|
|
9753
10501
|
}
|
|
9754
|
-
function
|
|
10502
|
+
function create_fragment24(ctx) {
|
|
9755
10503
|
let current_block_type_index;
|
|
9756
10504
|
let if_block;
|
|
9757
10505
|
let if_block_anchor;
|
|
9758
10506
|
let current;
|
|
9759
|
-
const if_block_creators = [
|
|
10507
|
+
const if_block_creators = [create_if_block8, create_if_block_18, create_else_block_12];
|
|
9760
10508
|
const if_blocks = [];
|
|
9761
10509
|
function select_block_type(ctx2, dirty) {
|
|
9762
10510
|
if (
|
|
@@ -9862,7 +10610,7 @@
|
|
|
9862
10610
|
$$invalidate(3, interactionType = getInteractionType(data));
|
|
9863
10611
|
$$invalidate(0, sessionData = { ...data, metadata });
|
|
9864
10612
|
if (isFinished && isLocked && !isPreviewMode) {
|
|
9865
|
-
await getSessionScore();
|
|
10613
|
+
await getSessionScore(data);
|
|
9866
10614
|
}
|
|
9867
10615
|
if (isPreviewMode) {
|
|
9868
10616
|
setPreviewData(data);
|
|
@@ -9883,7 +10631,7 @@
|
|
|
9883
10631
|
}
|
|
9884
10632
|
return interactionType2;
|
|
9885
10633
|
};
|
|
9886
|
-
const getSessionScore = async () => {
|
|
10634
|
+
const getSessionScore = async (sessionRawData) => {
|
|
9887
10635
|
try {
|
|
9888
10636
|
const { data } = await useGet(`sessions/${sessionId}/score${skipUserValidationStr}`);
|
|
9889
10637
|
if (data) {
|
|
@@ -9894,6 +10642,9 @@
|
|
|
9894
10642
|
case INTERACTION_TYPE_MCQ:
|
|
9895
10643
|
scoringMetadata = { ...scoringMetadata, answerId: answer[0] };
|
|
9896
10644
|
break;
|
|
10645
|
+
case INTERACTION_TYPE_CATEGORISE:
|
|
10646
|
+
scoringMetadata = getCategoriseCorrectAnswer(sessionRawData);
|
|
10647
|
+
break;
|
|
9897
10648
|
case INTERACTION_TYPE_TYPEIN:
|
|
9898
10649
|
default:
|
|
9899
10650
|
scoringMetadata = { ...scoringMetadata, answer: answer[0] };
|
|
@@ -9922,6 +10673,10 @@
|
|
|
9922
10673
|
previewMcqCorrectAnswerId = answerId[0];
|
|
9923
10674
|
}
|
|
9924
10675
|
return;
|
|
10676
|
+
case INTERACTION_TYPE_CATEGORISE:
|
|
10677
|
+
scoringMetadata = getCategoriseCorrectAnswer(data);
|
|
10678
|
+
$$invalidate(0, sessionData = { ...sessionData, scoringMetadata });
|
|
10679
|
+
return;
|
|
9925
10680
|
case INTERACTION_TYPE_TYPEIN:
|
|
9926
10681
|
default:
|
|
9927
10682
|
const { correct_answer: correctAnswer, typein_type: typeinType } = data.interaction;
|
|
@@ -9942,6 +10697,19 @@
|
|
|
9942
10697
|
return;
|
|
9943
10698
|
}
|
|
9944
10699
|
};
|
|
10700
|
+
const getCategoriseCorrectAnswer = (data) => {
|
|
10701
|
+
const { correct_answer: categoryCorrectAnswer } = data.interaction;
|
|
10702
|
+
const correctAnswerList = [];
|
|
10703
|
+
categoryCorrectAnswer.map((answer) => {
|
|
10704
|
+
const { id, correct_answer_list: answerList } = answer;
|
|
10705
|
+
const list = answerList.map((list2) => list2.id);
|
|
10706
|
+
correctAnswerList[id] = list;
|
|
10707
|
+
});
|
|
10708
|
+
return {
|
|
10709
|
+
hasAnswer: true,
|
|
10710
|
+
answerList: correctAnswerList
|
|
10711
|
+
};
|
|
10712
|
+
};
|
|
9945
10713
|
const updatePreviewData = (data) => {
|
|
9946
10714
|
const { scoringMetadata: metadata, interaction } = sessionData;
|
|
9947
10715
|
let scoringMetadata;
|
|
@@ -9998,7 +10766,7 @@
|
|
|
9998
10766
|
getSessionData(sessionId);
|
|
9999
10767
|
}
|
|
10000
10768
|
$$self.$$set = ($$new_props) => {
|
|
10001
|
-
$$invalidate(
|
|
10769
|
+
$$invalidate(27, $$props = assign(assign({}, $$props), exclude_internal_props($$new_props)));
|
|
10002
10770
|
};
|
|
10003
10771
|
$$props = exclude_internal_props($$props);
|
|
10004
10772
|
return [
|
|
@@ -10016,7 +10784,7 @@
|
|
|
10016
10784
|
var PromptBuilder = class extends SvelteComponent {
|
|
10017
10785
|
constructor(options) {
|
|
10018
10786
|
super();
|
|
10019
|
-
init(this, options, instance11,
|
|
10787
|
+
init(this, options, instance11, create_fragment24, safe_not_equal, {}, add_css);
|
|
10020
10788
|
}
|
|
10021
10789
|
};
|
|
10022
10790
|
customElements.define("prompt-builder", create_custom_element(PromptBuilder, {}, [], [], true));
|