eat-js-sdk 0.0.47 → 0.0.48
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 +447 -303
- package/package.json +1 -1
|
@@ -5337,7 +5337,8 @@
|
|
|
5337
5337
|
currentTabContainer: "",
|
|
5338
5338
|
lastSelectedTabContainer: "",
|
|
5339
5339
|
selectedItemName: "",
|
|
5340
|
-
previewResultSr: ""
|
|
5340
|
+
previewResultSr: "",
|
|
5341
|
+
isItemsAriaHidden: false
|
|
5341
5342
|
});
|
|
5342
5343
|
|
|
5343
5344
|
// src/lib/assets/img/product/GripVertical.svelte
|
|
@@ -5612,13 +5613,13 @@
|
|
|
5612
5613
|
if (
|
|
5613
5614
|
/*resultType*/
|
|
5614
5615
|
ctx2[1] === ANSWER_CORRECT && !/*isWordItemSelected*/
|
|
5615
|
-
ctx2[
|
|
5616
|
+
ctx2[10]
|
|
5616
5617
|
)
|
|
5617
5618
|
return 0;
|
|
5618
5619
|
if (
|
|
5619
5620
|
/*resultType*/
|
|
5620
5621
|
ctx2[1] === ANSWER_INCORRECT && !/*isWordItemSelected*/
|
|
5621
|
-
ctx2[
|
|
5622
|
+
ctx2[10]
|
|
5622
5623
|
)
|
|
5623
5624
|
return 1;
|
|
5624
5625
|
if (
|
|
@@ -5653,14 +5654,14 @@
|
|
|
5653
5654
|
if (if_block1)
|
|
5654
5655
|
if_block1.c();
|
|
5655
5656
|
attr(span0, "class", span0_class_value = "text-charcoal text-base pl-3 mr-4 " + /*isWordItemSelected*/
|
|
5656
|
-
(ctx[
|
|
5657
|
+
(ctx[10] ? "text-white" : ""));
|
|
5657
5658
|
attr(span1, "class", span1_class_value = "w-full h-full relative rounded-lg " + (!/*currentSelectedItemId*/
|
|
5658
|
-
ctx[
|
|
5659
|
-
ctx[
|
|
5659
|
+
ctx[9] && !/*disabledClick*/
|
|
5660
|
+
ctx[6] ? "td:group-hover:bg-black td:group-hover:opacity-5" : ""));
|
|
5660
5661
|
attr(span2, "class", "absolute");
|
|
5661
5662
|
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*/
|
|
5662
|
-
ctx[
|
|
5663
|
-
ctx[
|
|
5663
|
+
ctx[9] && !/*disabledClick*/
|
|
5664
|
+
ctx[6] ? "td:hover:cursor-grab td:hover:text-soft-blue" : ""));
|
|
5664
5665
|
attr(
|
|
5665
5666
|
button,
|
|
5666
5667
|
"id",
|
|
@@ -5668,37 +5669,43 @@
|
|
|
5668
5669
|
ctx[3]
|
|
5669
5670
|
);
|
|
5670
5671
|
attr(button, "aria-label", button_aria_label_value = /*resultType*/
|
|
5671
|
-
|
|
5672
|
-
ctx[
|
|
5673
|
-
ctx[
|
|
5674
|
-
ctx[0]} (
|
|
5675
|
-
ctx[1]})` : (
|
|
5672
|
+
ctx[1] === ANSWER_INCORRECT && /*containerId*/
|
|
5673
|
+
ctx[5] === CONTAINER_WORD_BIN_ID && !/*isWordItemSelected*/
|
|
5674
|
+
ctx[10] ? `Skipped answer: ${/*word*/
|
|
5675
|
+
ctx[0]}` : (
|
|
5676
5676
|
/*resultType*/
|
|
5677
|
-
ctx[1] ===
|
|
5678
|
-
ctx[
|
|
5679
|
-
ctx[
|
|
5680
|
-
ctx[0]}
|
|
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 ? `Missing answer: ${/*word*/
|
|
5684
|
+
ctx[0]}` : `${/*isWordItemSelected*/
|
|
5685
|
+
ctx[10] ? "Selected option" : "Option"}: ${/*word*/
|
|
5686
|
+
ctx[0]}`
|
|
5687
|
+
)
|
|
5681
5688
|
));
|
|
5682
5689
|
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*/
|
|
5683
5690
|
ctx[2] + " " + /*isClonedItem*/
|
|
5684
5691
|
(ctx[4] ? "opacity-50 raw-focus-ring bg-violet-100" : "") + " " + /*considerCloneItemId*/
|
|
5685
|
-
(ctx[
|
|
5692
|
+
(ctx[8] === /*wordButtonId*/
|
|
5686
5693
|
ctx[3] ? "hidden" : "") + " " + /*isWordItemSelected*/
|
|
5687
|
-
(ctx[
|
|
5688
|
-
ctx[
|
|
5689
|
-
ctx[
|
|
5694
|
+
(ctx[10] ? "bg-blue-1000 !border-blue-1000 raw-focus-ring !cursor-pointer" : "bg-gray-100") + " " + (!/*currentSelectedItemId*/
|
|
5695
|
+
ctx[9] && !/*disabledClick*/
|
|
5696
|
+
ctx[6] ? "td:hover-focus-ring td:hover:bg-violet-100 !cursor-pointer" : "!cursor-default") + " " + /*resultType*/
|
|
5690
5697
|
(ctx[1] === ANSWER_CORRECT && !/*isWordItemSelected*/
|
|
5691
|
-
ctx[
|
|
5698
|
+
ctx[10] ? "border-green-800 bg-green-300" : (
|
|
5692
5699
|
/*resultType*/
|
|
5693
5700
|
ctx[1] === ANSWER_INCORRECT && !/*isWordItemSelected*/
|
|
5694
|
-
ctx[
|
|
5701
|
+
ctx[10] ? "border-red-800 bg-red-300" : (
|
|
5695
5702
|
/*resultType*/
|
|
5696
5703
|
ctx[1] === ANSWER_MISSED ? "border-green-800" : ""
|
|
5697
5704
|
)
|
|
5698
5705
|
)) + " " + /*resultType*/
|
|
5699
5706
|
((ctx[1] === ANSWER_CORRECT || /*resultType*/
|
|
5700
5707
|
ctx[1] === ANSWER_INCORRECT) && !/*isWordItemSelected*/
|
|
5701
|
-
ctx[
|
|
5708
|
+
ctx[10] ? "td:hover:border-gray-800" : ""));
|
|
5702
5709
|
},
|
|
5703
5710
|
m(target, anchor) {
|
|
5704
5711
|
insert(target, button, anchor);
|
|
@@ -5720,12 +5727,12 @@
|
|
|
5720
5727
|
listen(button, "click", stop_propagation(function() {
|
|
5721
5728
|
if (is_function(
|
|
5722
5729
|
/*selectItem*/
|
|
5723
|
-
ctx[
|
|
5730
|
+
ctx[11](
|
|
5724
5731
|
/*wordButtonId*/
|
|
5725
5732
|
ctx[3]
|
|
5726
5733
|
)
|
|
5727
5734
|
))
|
|
5728
|
-
ctx[
|
|
5735
|
+
ctx[11](
|
|
5729
5736
|
/*wordButtonId*/
|
|
5730
5737
|
ctx[3]
|
|
5731
5738
|
).apply(this, arguments);
|
|
@@ -5733,12 +5740,12 @@
|
|
|
5733
5740
|
listen(button, "touchend", stop_propagation(function() {
|
|
5734
5741
|
if (is_function(
|
|
5735
5742
|
/*selectItem*/
|
|
5736
|
-
ctx[
|
|
5743
|
+
ctx[11](
|
|
5737
5744
|
/*wordButtonId*/
|
|
5738
5745
|
ctx[3]
|
|
5739
5746
|
)
|
|
5740
5747
|
))
|
|
5741
|
-
ctx[
|
|
5748
|
+
ctx[11](
|
|
5742
5749
|
/*wordButtonId*/
|
|
5743
5750
|
ctx[3]
|
|
5744
5751
|
).apply(this, arguments);
|
|
@@ -5747,7 +5754,7 @@
|
|
|
5747
5754
|
button,
|
|
5748
5755
|
"keydown",
|
|
5749
5756
|
/*removeContainerTabSelected*/
|
|
5750
|
-
ctx[
|
|
5757
|
+
ctx[12]
|
|
5751
5758
|
)
|
|
5752
5759
|
];
|
|
5753
5760
|
mounted = true;
|
|
@@ -5763,14 +5770,14 @@
|
|
|
5763
5770
|
ctx[0]
|
|
5764
5771
|
);
|
|
5765
5772
|
if (!current || dirty & /*isWordItemSelected*/
|
|
5766
|
-
|
|
5767
|
-
(ctx[
|
|
5773
|
+
1024 && span0_class_value !== (span0_class_value = "text-charcoal text-base pl-3 mr-4 " + /*isWordItemSelected*/
|
|
5774
|
+
(ctx[10] ? "text-white" : ""))) {
|
|
5768
5775
|
attr(span0, "class", span0_class_value);
|
|
5769
5776
|
}
|
|
5770
5777
|
if (!current || dirty & /*currentSelectedItemId, disabledClick*/
|
|
5771
|
-
|
|
5772
|
-
ctx[
|
|
5773
|
-
ctx[
|
|
5778
|
+
576 && span1_class_value !== (span1_class_value = "w-full h-full relative rounded-lg " + (!/*currentSelectedItemId*/
|
|
5779
|
+
ctx[9] && !/*disabledClick*/
|
|
5780
|
+
ctx[6] ? "td:group-hover:bg-black td:group-hover:opacity-5" : ""))) {
|
|
5774
5781
|
attr(span1, "class", span1_class_value);
|
|
5775
5782
|
}
|
|
5776
5783
|
let previous_block_index = current_block_type_index;
|
|
@@ -5814,9 +5821,9 @@
|
|
|
5814
5821
|
check_outros();
|
|
5815
5822
|
}
|
|
5816
5823
|
if (!current || dirty & /*currentSelectedItemId, disabledClick*/
|
|
5817
|
-
|
|
5818
|
-
ctx[
|
|
5819
|
-
ctx[
|
|
5824
|
+
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*/
|
|
5825
|
+
ctx[9] && !/*disabledClick*/
|
|
5826
|
+
ctx[6] ? "td:hover:cursor-grab td:hover:text-soft-blue" : ""))) {
|
|
5820
5827
|
attr(div, "class", div_class_value);
|
|
5821
5828
|
}
|
|
5822
5829
|
if (!current || dirty & /*wordButtonId*/
|
|
@@ -5828,42 +5835,48 @@
|
|
|
5828
5835
|
ctx[3]
|
|
5829
5836
|
);
|
|
5830
5837
|
}
|
|
5831
|
-
if (!current || dirty & /*resultType, isWordItemSelected, word*/
|
|
5832
|
-
|
|
5833
|
-
|
|
5834
|
-
ctx[
|
|
5835
|
-
ctx[
|
|
5836
|
-
ctx[0]} (
|
|
5837
|
-
ctx[1]})` : (
|
|
5838
|
+
if (!current || dirty & /*resultType, containerId, isWordItemSelected, word*/
|
|
5839
|
+
1059 && button_aria_label_value !== (button_aria_label_value = /*resultType*/
|
|
5840
|
+
ctx[1] === ANSWER_INCORRECT && /*containerId*/
|
|
5841
|
+
ctx[5] === CONTAINER_WORD_BIN_ID && !/*isWordItemSelected*/
|
|
5842
|
+
ctx[10] ? `Skipped answer: ${/*word*/
|
|
5843
|
+
ctx[0]}` : (
|
|
5838
5844
|
/*resultType*/
|
|
5839
|
-
ctx[1] ===
|
|
5840
|
-
ctx[
|
|
5841
|
-
ctx[
|
|
5842
|
-
ctx[0]}
|
|
5845
|
+
(ctx[1] === ANSWER_CORRECT || /*resultType*/
|
|
5846
|
+
ctx[1] === ANSWER_INCORRECT) && !/*isWordItemSelected*/
|
|
5847
|
+
ctx[10] ? `Student's answer: ${/*word*/
|
|
5848
|
+
ctx[0]} (${/*resultType*/
|
|
5849
|
+
ctx[1]})` : (
|
|
5850
|
+
/*resultType*/
|
|
5851
|
+
ctx[1] === ANSWER_MISSED ? `Missing answer: ${/*word*/
|
|
5852
|
+
ctx[0]}` : `${/*isWordItemSelected*/
|
|
5853
|
+
ctx[10] ? "Selected option" : "Option"}: ${/*word*/
|
|
5854
|
+
ctx[0]}`
|
|
5855
|
+
)
|
|
5843
5856
|
))) {
|
|
5844
5857
|
attr(button, "aria-label", button_aria_label_value);
|
|
5845
5858
|
}
|
|
5846
5859
|
if (!current || dirty & /*otherClass, isClonedItem, considerCloneItemId, wordButtonId, isWordItemSelected, currentSelectedItemId, disabledClick, resultType*/
|
|
5847
|
-
|
|
5860
|
+
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*/
|
|
5848
5861
|
ctx[2] + " " + /*isClonedItem*/
|
|
5849
5862
|
(ctx[4] ? "opacity-50 raw-focus-ring bg-violet-100" : "") + " " + /*considerCloneItemId*/
|
|
5850
|
-
(ctx[
|
|
5863
|
+
(ctx[8] === /*wordButtonId*/
|
|
5851
5864
|
ctx[3] ? "hidden" : "") + " " + /*isWordItemSelected*/
|
|
5852
|
-
(ctx[
|
|
5853
|
-
ctx[
|
|
5854
|
-
ctx[
|
|
5865
|
+
(ctx[10] ? "bg-blue-1000 !border-blue-1000 raw-focus-ring !cursor-pointer" : "bg-gray-100") + " " + (!/*currentSelectedItemId*/
|
|
5866
|
+
ctx[9] && !/*disabledClick*/
|
|
5867
|
+
ctx[6] ? "td:hover-focus-ring td:hover:bg-violet-100 !cursor-pointer" : "!cursor-default") + " " + /*resultType*/
|
|
5855
5868
|
(ctx[1] === ANSWER_CORRECT && !/*isWordItemSelected*/
|
|
5856
|
-
ctx[
|
|
5869
|
+
ctx[10] ? "border-green-800 bg-green-300" : (
|
|
5857
5870
|
/*resultType*/
|
|
5858
5871
|
ctx[1] === ANSWER_INCORRECT && !/*isWordItemSelected*/
|
|
5859
|
-
ctx[
|
|
5872
|
+
ctx[10] ? "border-red-800 bg-red-300" : (
|
|
5860
5873
|
/*resultType*/
|
|
5861
5874
|
ctx[1] === ANSWER_MISSED ? "border-green-800" : ""
|
|
5862
5875
|
)
|
|
5863
5876
|
)) + " " + /*resultType*/
|
|
5864
5877
|
((ctx[1] === ANSWER_CORRECT || /*resultType*/
|
|
5865
5878
|
ctx[1] === ANSWER_INCORRECT) && !/*isWordItemSelected*/
|
|
5866
|
-
ctx[
|
|
5879
|
+
ctx[10] ? "td:hover:border-gray-800" : ""))) {
|
|
5867
5880
|
attr(button, "class", button_class_value);
|
|
5868
5881
|
}
|
|
5869
5882
|
},
|
|
@@ -5908,9 +5921,9 @@
|
|
|
5908
5921
|
let wordButton;
|
|
5909
5922
|
categoriseSettings.subscribe((value) => {
|
|
5910
5923
|
const { considerCloneItemId: storeConsiderCloneItemId, selectedItemId: storeSelectedItemId } = value;
|
|
5911
|
-
$$invalidate(
|
|
5912
|
-
$$invalidate(
|
|
5913
|
-
$$invalidate(
|
|
5924
|
+
$$invalidate(8, considerCloneItemId = storeConsiderCloneItemId);
|
|
5925
|
+
$$invalidate(9, currentSelectedItemId = storeSelectedItemId);
|
|
5926
|
+
$$invalidate(10, isWordItemSelected = currentSelectedItemId === wordButtonId);
|
|
5914
5927
|
});
|
|
5915
5928
|
const selectItem = (itemId) => {
|
|
5916
5929
|
if (isSelecItemFunctionCalled || disabledClick) {
|
|
@@ -5960,7 +5973,7 @@
|
|
|
5960
5973
|
function button_binding($$value) {
|
|
5961
5974
|
binding_callbacks[$$value ? "unshift" : "push"](() => {
|
|
5962
5975
|
wordButton = $$value;
|
|
5963
|
-
$$invalidate(
|
|
5976
|
+
$$invalidate(7, wordButton);
|
|
5964
5977
|
});
|
|
5965
5978
|
}
|
|
5966
5979
|
$$self.$$set = ($$props2) => {
|
|
@@ -5975,15 +5988,15 @@
|
|
|
5975
5988
|
if ("isClonedItem" in $$props2)
|
|
5976
5989
|
$$invalidate(4, isClonedItem = $$props2.isClonedItem);
|
|
5977
5990
|
if ("containerId" in $$props2)
|
|
5978
|
-
$$invalidate(
|
|
5991
|
+
$$invalidate(5, containerId = $$props2.containerId);
|
|
5979
5992
|
if ("wordFocus" in $$props2)
|
|
5980
5993
|
$$invalidate(13, wordFocus = $$props2.wordFocus);
|
|
5981
5994
|
if ("disabledClick" in $$props2)
|
|
5982
|
-
$$invalidate(
|
|
5995
|
+
$$invalidate(6, disabledClick = $$props2.disabledClick);
|
|
5983
5996
|
};
|
|
5984
5997
|
$$self.$$.update = () => {
|
|
5985
5998
|
if ($$self.$$.dirty & /*wordFocus, wordButton*/
|
|
5986
|
-
|
|
5999
|
+
8320) {
|
|
5987
6000
|
$:
|
|
5988
6001
|
if (wordFocus) {
|
|
5989
6002
|
setTimeout(
|
|
@@ -6001,6 +6014,7 @@
|
|
|
6001
6014
|
otherClass,
|
|
6002
6015
|
wordButtonId,
|
|
6003
6016
|
isClonedItem,
|
|
6017
|
+
containerId,
|
|
6004
6018
|
disabledClick,
|
|
6005
6019
|
wordButton,
|
|
6006
6020
|
considerCloneItemId,
|
|
@@ -6008,7 +6022,6 @@
|
|
|
6008
6022
|
isWordItemSelected,
|
|
6009
6023
|
selectItem,
|
|
6010
6024
|
removeContainerTabSelected,
|
|
6011
|
-
containerId,
|
|
6012
6025
|
wordFocus,
|
|
6013
6026
|
button_binding
|
|
6014
6027
|
];
|
|
@@ -6022,9 +6035,9 @@
|
|
|
6022
6035
|
otherClass: 2,
|
|
6023
6036
|
wordButtonId: 3,
|
|
6024
6037
|
isClonedItem: 4,
|
|
6025
|
-
containerId:
|
|
6038
|
+
containerId: 5,
|
|
6026
6039
|
wordFocus: 13,
|
|
6027
|
-
disabledClick:
|
|
6040
|
+
disabledClick: 6
|
|
6028
6041
|
});
|
|
6029
6042
|
}
|
|
6030
6043
|
get word() {
|
|
@@ -6063,7 +6076,7 @@
|
|
|
6063
6076
|
flush();
|
|
6064
6077
|
}
|
|
6065
6078
|
get containerId() {
|
|
6066
|
-
return this.$$.ctx[
|
|
6079
|
+
return this.$$.ctx[5];
|
|
6067
6080
|
}
|
|
6068
6081
|
set containerId(containerId) {
|
|
6069
6082
|
this.$$set({ containerId });
|
|
@@ -6077,7 +6090,7 @@
|
|
|
6077
6090
|
flush();
|
|
6078
6091
|
}
|
|
6079
6092
|
get disabledClick() {
|
|
6080
|
-
return this.$$.ctx[
|
|
6093
|
+
return this.$$.ctx[6];
|
|
6081
6094
|
}
|
|
6082
6095
|
set disabledClick(disabledClick) {
|
|
6083
6096
|
this.$$set({ disabledClick });
|
|
@@ -6126,7 +6139,7 @@
|
|
|
6126
6139
|
// src/lib/components/prompt/categorise/PromptCategoriseDndContainer.svelte
|
|
6127
6140
|
function get_each_context2(ctx, list, i) {
|
|
6128
6141
|
const child_ctx = ctx.slice();
|
|
6129
|
-
child_ctx[
|
|
6142
|
+
child_ctx[34] = list[i];
|
|
6130
6143
|
return child_ctx;
|
|
6131
6144
|
}
|
|
6132
6145
|
function create_if_block_24(ctx) {
|
|
@@ -6144,7 +6157,7 @@
|
|
|
6144
6157
|
ctx[6]
|
|
6145
6158
|
);
|
|
6146
6159
|
attr(button, "class", button_class_value = "focus-ring absolute inset-0 bg-transparent rounded-lg focus-visible:border " + /*isContainerWordBin*/
|
|
6147
|
-
(ctx[
|
|
6160
|
+
(ctx[19] ? "focus-visible:border-gray-400" : "focus-visible:border-gray-800"));
|
|
6148
6161
|
},
|
|
6149
6162
|
m(target, anchor) {
|
|
6150
6163
|
insert(target, button, anchor);
|
|
@@ -6153,7 +6166,7 @@
|
|
|
6153
6166
|
button,
|
|
6154
6167
|
"click",
|
|
6155
6168
|
/*addAnswerItem*/
|
|
6156
|
-
ctx[
|
|
6169
|
+
ctx[22]
|
|
6157
6170
|
);
|
|
6158
6171
|
mounted = true;
|
|
6159
6172
|
}
|
|
@@ -6198,13 +6211,13 @@
|
|
|
6198
6211
|
div,
|
|
6199
6212
|
"click",
|
|
6200
6213
|
/*addAnswerItem*/
|
|
6201
|
-
ctx[
|
|
6214
|
+
ctx[22]
|
|
6202
6215
|
),
|
|
6203
6216
|
listen(
|
|
6204
6217
|
div,
|
|
6205
6218
|
"keypress",
|
|
6206
6219
|
/*addAnswerItem*/
|
|
6207
|
-
ctx[
|
|
6220
|
+
ctx[22]
|
|
6208
6221
|
)
|
|
6209
6222
|
];
|
|
6210
6223
|
mounted = true;
|
|
@@ -6221,30 +6234,33 @@
|
|
|
6221
6234
|
};
|
|
6222
6235
|
}
|
|
6223
6236
|
function create_if_block6(ctx) {
|
|
6224
|
-
let
|
|
6237
|
+
let button;
|
|
6225
6238
|
let t2;
|
|
6226
|
-
let
|
|
6239
|
+
let button_class_value;
|
|
6240
|
+
let button_disabled_value;
|
|
6227
6241
|
return {
|
|
6228
6242
|
c() {
|
|
6229
|
-
|
|
6243
|
+
button = element("button");
|
|
6230
6244
|
t2 = text("Missing answers:");
|
|
6231
|
-
attr(
|
|
6245
|
+
attr(button, "aria-label", "Missing answers:");
|
|
6246
|
+
attr(button, "class", button_class_value = "text-base text-charcoal font-semibold w-full mt-1 mb-2 text-left " + (!/*showButton*/
|
|
6232
6247
|
ctx[4] ? "hidden md:missing-answer-label" : "missing-answer-label"));
|
|
6248
|
+
button.disabled = button_disabled_value = true;
|
|
6233
6249
|
},
|
|
6234
6250
|
m(target, anchor) {
|
|
6235
|
-
insert(target,
|
|
6236
|
-
append(
|
|
6251
|
+
insert(target, button, anchor);
|
|
6252
|
+
append(button, t2);
|
|
6237
6253
|
},
|
|
6238
6254
|
p(ctx2, dirty) {
|
|
6239
6255
|
if (dirty[0] & /*showButton*/
|
|
6240
|
-
16 &&
|
|
6256
|
+
16 && button_class_value !== (button_class_value = "text-base text-charcoal font-semibold w-full mt-1 mb-2 text-left " + (!/*showButton*/
|
|
6241
6257
|
ctx2[4] ? "hidden md:missing-answer-label" : "missing-answer-label"))) {
|
|
6242
|
-
attr(
|
|
6258
|
+
attr(button, "class", button_class_value);
|
|
6243
6259
|
}
|
|
6244
6260
|
},
|
|
6245
6261
|
d(detaching) {
|
|
6246
6262
|
if (detaching) {
|
|
6247
|
-
detach(
|
|
6263
|
+
detach(button);
|
|
6248
6264
|
}
|
|
6249
6265
|
}
|
|
6250
6266
|
};
|
|
@@ -6256,31 +6272,31 @@
|
|
|
6256
6272
|
let current;
|
|
6257
6273
|
let if_block = (
|
|
6258
6274
|
/*item*/
|
|
6259
|
-
ctx[
|
|
6275
|
+
ctx[34].type === ANSWER_MISSED && create_if_block6(ctx)
|
|
6260
6276
|
);
|
|
6261
6277
|
promptcategorisewordbutton = new PromptCategoriseWordButton_default({
|
|
6262
6278
|
props: {
|
|
6263
6279
|
otherClass: "mr-2 mb-2 last:mr-0 " + /*item*/
|
|
6264
|
-
(ctx[
|
|
6280
|
+
(ctx[34].id === /*considerItemId*/
|
|
6265
6281
|
ctx[8] ? "!bg-violet-150" : "") + "\n " + (!/*showButton*/
|
|
6266
6282
|
ctx[4] ? "hidden md:flex" : "") + "\n " + /*items*/
|
|
6267
6283
|
(ctx[16][
|
|
6268
6284
|
/*currentWordBinIndex*/
|
|
6269
6285
|
ctx[12]
|
|
6270
6286
|
]?.id !== /*item*/
|
|
6271
|
-
ctx[
|
|
6272
|
-
ctx[
|
|
6287
|
+
ctx[34].id && /*isContainerWordBin*/
|
|
6288
|
+
ctx[19] ? "hidden md:flex" : ""),
|
|
6273
6289
|
word: (
|
|
6274
6290
|
/*item*/
|
|
6275
|
-
ctx[
|
|
6291
|
+
ctx[34].text
|
|
6276
6292
|
),
|
|
6277
6293
|
wordButtonId: (
|
|
6278
6294
|
/*item*/
|
|
6279
|
-
ctx[
|
|
6295
|
+
ctx[34].id
|
|
6280
6296
|
),
|
|
6281
6297
|
isClonedItem: (
|
|
6282
6298
|
/*item*/
|
|
6283
|
-
ctx[
|
|
6299
|
+
ctx[34].isClonedItem
|
|
6284
6300
|
),
|
|
6285
6301
|
containerId: (
|
|
6286
6302
|
/*containerId*/
|
|
@@ -6290,7 +6306,7 @@
|
|
|
6290
6306
|
/*currentTabContainer*/
|
|
6291
6307
|
ctx[14] === /*containerId*/
|
|
6292
6308
|
ctx[2] && /*item*/
|
|
6293
|
-
ctx[
|
|
6309
|
+
ctx[34].id === /*items*/
|
|
6294
6310
|
ctx[16][0].id
|
|
6295
6311
|
),
|
|
6296
6312
|
disabledClick: (
|
|
@@ -6299,7 +6315,7 @@
|
|
|
6299
6315
|
),
|
|
6300
6316
|
resultType: (
|
|
6301
6317
|
/*item*/
|
|
6302
|
-
ctx[
|
|
6318
|
+
ctx[34].type
|
|
6303
6319
|
)
|
|
6304
6320
|
}
|
|
6305
6321
|
});
|
|
@@ -6326,7 +6342,7 @@
|
|
|
6326
6342
|
ctx = new_ctx;
|
|
6327
6343
|
if (
|
|
6328
6344
|
/*item*/
|
|
6329
|
-
ctx[
|
|
6345
|
+
ctx[34].type === ANSWER_MISSED
|
|
6330
6346
|
) {
|
|
6331
6347
|
if (if_block) {
|
|
6332
6348
|
if_block.p(ctx, dirty);
|
|
@@ -6343,27 +6359,27 @@
|
|
|
6343
6359
|
if (dirty[0] & /*items, considerItemId, showButton, currentWordBinIndex*/
|
|
6344
6360
|
69904)
|
|
6345
6361
|
promptcategorisewordbutton_changes.otherClass = "mr-2 mb-2 last:mr-0 " + /*item*/
|
|
6346
|
-
(ctx[
|
|
6362
|
+
(ctx[34].id === /*considerItemId*/
|
|
6347
6363
|
ctx[8] ? "!bg-violet-150" : "") + "\n " + (!/*showButton*/
|
|
6348
6364
|
ctx[4] ? "hidden md:flex" : "") + "\n " + /*items*/
|
|
6349
6365
|
(ctx[16][
|
|
6350
6366
|
/*currentWordBinIndex*/
|
|
6351
6367
|
ctx[12]
|
|
6352
6368
|
]?.id !== /*item*/
|
|
6353
|
-
ctx[
|
|
6354
|
-
ctx[
|
|
6369
|
+
ctx[34].id && /*isContainerWordBin*/
|
|
6370
|
+
ctx[19] ? "hidden md:flex" : "");
|
|
6355
6371
|
if (dirty[0] & /*items*/
|
|
6356
6372
|
65536)
|
|
6357
6373
|
promptcategorisewordbutton_changes.word = /*item*/
|
|
6358
|
-
ctx[
|
|
6374
|
+
ctx[34].text;
|
|
6359
6375
|
if (dirty[0] & /*items*/
|
|
6360
6376
|
65536)
|
|
6361
6377
|
promptcategorisewordbutton_changes.wordButtonId = /*item*/
|
|
6362
|
-
ctx[
|
|
6378
|
+
ctx[34].id;
|
|
6363
6379
|
if (dirty[0] & /*items*/
|
|
6364
6380
|
65536)
|
|
6365
6381
|
promptcategorisewordbutton_changes.isClonedItem = /*item*/
|
|
6366
|
-
ctx[
|
|
6382
|
+
ctx[34].isClonedItem;
|
|
6367
6383
|
if (dirty[0] & /*containerId*/
|
|
6368
6384
|
4)
|
|
6369
6385
|
promptcategorisewordbutton_changes.containerId = /*containerId*/
|
|
@@ -6373,7 +6389,7 @@
|
|
|
6373
6389
|
promptcategorisewordbutton_changes.wordFocus = /*currentTabContainer*/
|
|
6374
6390
|
ctx[14] === /*containerId*/
|
|
6375
6391
|
ctx[2] && /*item*/
|
|
6376
|
-
ctx[
|
|
6392
|
+
ctx[34].id === /*items*/
|
|
6377
6393
|
ctx[16][0].id;
|
|
6378
6394
|
if (dirty[0] & /*isFinished*/
|
|
6379
6395
|
128)
|
|
@@ -6382,7 +6398,7 @@
|
|
|
6382
6398
|
if (dirty[0] & /*items*/
|
|
6383
6399
|
65536)
|
|
6384
6400
|
promptcategorisewordbutton_changes.resultType = /*item*/
|
|
6385
|
-
ctx[
|
|
6401
|
+
ctx[34].type;
|
|
6386
6402
|
promptcategorisewordbutton.$set(promptcategorisewordbutton_changes);
|
|
6387
6403
|
},
|
|
6388
6404
|
i(local) {
|
|
@@ -6428,7 +6444,7 @@
|
|
|
6428
6444
|
let if_block1 = (
|
|
6429
6445
|
/*totalRemainingWordBinItem*/
|
|
6430
6446
|
ctx[13] <= 0 && /*isContainerWordBin*/
|
|
6431
|
-
ctx[
|
|
6447
|
+
ctx[19] && create_if_block_16(ctx)
|
|
6432
6448
|
);
|
|
6433
6449
|
let each_value = ensure_array_like(Object.values(
|
|
6434
6450
|
/*items*/
|
|
@@ -6436,7 +6452,7 @@
|
|
|
6436
6452
|
));
|
|
6437
6453
|
const get_key = (ctx2) => (
|
|
6438
6454
|
/*item*/
|
|
6439
|
-
ctx2[
|
|
6455
|
+
ctx2[34].id
|
|
6440
6456
|
);
|
|
6441
6457
|
for (let i = 0; i < each_value.length; i += 1) {
|
|
6442
6458
|
let child_ctx = get_each_context2(ctx, each_value, i);
|
|
@@ -6458,6 +6474,12 @@
|
|
|
6458
6474
|
attr(section, "role", "group");
|
|
6459
6475
|
attr(section, "class", section_class_value = "flex flex-wrap " + /*containerClass*/
|
|
6460
6476
|
ctx[0] + " category-content");
|
|
6477
|
+
attr(
|
|
6478
|
+
section,
|
|
6479
|
+
"aria-hidden",
|
|
6480
|
+
/*isItemsAriaHidden*/
|
|
6481
|
+
ctx[17]
|
|
6482
|
+
);
|
|
6461
6483
|
attr(section, "aria-dropeffect", "move");
|
|
6462
6484
|
attr(
|
|
6463
6485
|
section,
|
|
@@ -6466,7 +6488,7 @@
|
|
|
6466
6488
|
ctx[2]
|
|
6467
6489
|
);
|
|
6468
6490
|
attr(section, "style", section_style_value = !/*isContainerWordBin*/
|
|
6469
|
-
ctx[
|
|
6491
|
+
ctx[19] ? `padding-top: ${/*paddingTop*/
|
|
6470
6492
|
ctx[5]}px;` : "");
|
|
6471
6493
|
},
|
|
6472
6494
|
m(target, anchor) {
|
|
@@ -6500,7 +6522,7 @@
|
|
|
6500
6522
|
),
|
|
6501
6523
|
dropTargetClasses: (
|
|
6502
6524
|
/*dropTargetClasses*/
|
|
6503
|
-
ctx[
|
|
6525
|
+
ctx[18]
|
|
6504
6526
|
),
|
|
6505
6527
|
morphDisabled: true,
|
|
6506
6528
|
dragDisabled: (
|
|
@@ -6521,13 +6543,13 @@
|
|
|
6521
6543
|
section,
|
|
6522
6544
|
"consider",
|
|
6523
6545
|
/*handleDndConsider*/
|
|
6524
|
-
ctx[
|
|
6546
|
+
ctx[20]
|
|
6525
6547
|
),
|
|
6526
6548
|
listen(
|
|
6527
6549
|
section,
|
|
6528
6550
|
"finalize",
|
|
6529
6551
|
/*handleDndFinalize*/
|
|
6530
|
-
ctx[
|
|
6552
|
+
ctx[21]
|
|
6531
6553
|
)
|
|
6532
6554
|
];
|
|
6533
6555
|
mounted = true;
|
|
@@ -6555,7 +6577,7 @@
|
|
|
6555
6577
|
if (
|
|
6556
6578
|
/*totalRemainingWordBinItem*/
|
|
6557
6579
|
ctx2[13] <= 0 && /*isContainerWordBin*/
|
|
6558
|
-
ctx2[
|
|
6580
|
+
ctx2[19]
|
|
6559
6581
|
) {
|
|
6560
6582
|
if (if_block1) {
|
|
6561
6583
|
if_block1.p(ctx2, dirty);
|
|
@@ -6569,7 +6591,7 @@
|
|
|
6569
6591
|
if_block1 = null;
|
|
6570
6592
|
}
|
|
6571
6593
|
if (dirty[0] & /*items, considerItemId, showButton, currentWordBinIndex, isContainerWordBin, containerId, currentTabContainer, isFinished*/
|
|
6572
|
-
|
|
6594
|
+
610708) {
|
|
6573
6595
|
each_value = ensure_array_like(Object.values(
|
|
6574
6596
|
/*items*/
|
|
6575
6597
|
ctx2[16]
|
|
@@ -6583,6 +6605,15 @@
|
|
|
6583
6605
|
ctx2[0] + " category-content")) {
|
|
6584
6606
|
attr(section, "class", section_class_value);
|
|
6585
6607
|
}
|
|
6608
|
+
if (!current || dirty[0] & /*isItemsAriaHidden*/
|
|
6609
|
+
131072) {
|
|
6610
|
+
attr(
|
|
6611
|
+
section,
|
|
6612
|
+
"aria-hidden",
|
|
6613
|
+
/*isItemsAriaHidden*/
|
|
6614
|
+
ctx2[17]
|
|
6615
|
+
);
|
|
6616
|
+
}
|
|
6586
6617
|
if (!current || dirty[0] & /*containerId*/
|
|
6587
6618
|
4) {
|
|
6588
6619
|
attr(
|
|
@@ -6594,7 +6625,7 @@
|
|
|
6594
6625
|
}
|
|
6595
6626
|
if (!current || dirty[0] & /*paddingTop*/
|
|
6596
6627
|
32 && section_style_value !== (section_style_value = !/*isContainerWordBin*/
|
|
6597
|
-
ctx2[
|
|
6628
|
+
ctx2[19] ? `padding-top: ${/*paddingTop*/
|
|
6598
6629
|
ctx2[5]}px;` : "")) {
|
|
6599
6630
|
attr(section, "style", section_style_value);
|
|
6600
6631
|
}
|
|
@@ -6615,7 +6646,7 @@
|
|
|
6615
6646
|
),
|
|
6616
6647
|
dropTargetClasses: (
|
|
6617
6648
|
/*dropTargetClasses*/
|
|
6618
|
-
ctx2[
|
|
6649
|
+
ctx2[18]
|
|
6619
6650
|
),
|
|
6620
6651
|
morphDisabled: true,
|
|
6621
6652
|
dragDisabled: (
|
|
@@ -6687,6 +6718,7 @@
|
|
|
6687
6718
|
let currentTabContainer = "";
|
|
6688
6719
|
let isModalOpen = false;
|
|
6689
6720
|
let items = [];
|
|
6721
|
+
let isItemsAriaHidden = false;
|
|
6690
6722
|
const dispatch = createEventDispatcher();
|
|
6691
6723
|
const dropTargetClasses = ["!outline-none"];
|
|
6692
6724
|
const isContainerWordBin = containerId === CONTAINER_WORD_BIN_ID;
|
|
@@ -6696,7 +6728,7 @@
|
|
|
6696
6728
|
$$invalidate(15, isModalOpen = storeIsModalOpen);
|
|
6697
6729
|
});
|
|
6698
6730
|
categoriseSettings.subscribe((value) => {
|
|
6699
|
-
const { considerItemId: storeconsiderItemId, selectedItemId: storeSelectedItemId, currentAnswer: storeCurrentAnswer, sourceSelectedContainerId: storeSourceSelectedContainerId, currentWordBinIndex: storeCurrentWordBinIndex, currentTabContainer: storeCurrentTabContainer } = value;
|
|
6731
|
+
const { considerItemId: storeconsiderItemId, selectedItemId: storeSelectedItemId, currentAnswer: storeCurrentAnswer, sourceSelectedContainerId: storeSourceSelectedContainerId, currentWordBinIndex: storeCurrentWordBinIndex, currentTabContainer: storeCurrentTabContainer, isItemsAriaHidden: storeisItemsAriaHidden } = value;
|
|
6700
6732
|
$$invalidate(8, considerItemId = storeconsiderItemId);
|
|
6701
6733
|
$$invalidate(10, dragDisabled = isFinished || !!storeSelectedItemId);
|
|
6702
6734
|
currentAnswer = storeCurrentAnswer;
|
|
@@ -6704,6 +6736,7 @@
|
|
|
6704
6736
|
$$invalidate(11, sourceSelectedContainerId = storeSourceSelectedContainerId);
|
|
6705
6737
|
$$invalidate(12, currentWordBinIndex = storeCurrentWordBinIndex);
|
|
6706
6738
|
$$invalidate(14, currentTabContainer = storeCurrentTabContainer);
|
|
6739
|
+
$$invalidate(17, isItemsAriaHidden = storeisItemsAriaHidden);
|
|
6707
6740
|
const storeWordBinItem = currentAnswer.filter((answer) => answer.categoryId === CONTAINER_WORD_BIN_ID);
|
|
6708
6741
|
$$invalidate(13, totalRemainingWordBinItem = storeWordBinItem[0].itemId.length);
|
|
6709
6742
|
if (storeCurrentAnswer) {
|
|
@@ -6957,9 +6990,9 @@
|
|
|
6957
6990
|
if ("isFinished" in $$props2)
|
|
6958
6991
|
$$invalidate(7, isFinished = $$props2.isFinished);
|
|
6959
6992
|
if ("correctAnswerList" in $$props2)
|
|
6960
|
-
$$invalidate(
|
|
6993
|
+
$$invalidate(23, correctAnswerList = $$props2.correctAnswerList);
|
|
6961
6994
|
if ("isPreviewModeInteractive" in $$props2)
|
|
6962
|
-
$$invalidate(
|
|
6995
|
+
$$invalidate(24, isPreviewModeInteractive = $$props2.isPreviewModeInteractive);
|
|
6963
6996
|
};
|
|
6964
6997
|
return [
|
|
6965
6998
|
containerClass,
|
|
@@ -6979,6 +7012,7 @@
|
|
|
6979
7012
|
currentTabContainer,
|
|
6980
7013
|
isModalOpen,
|
|
6981
7014
|
items,
|
|
7015
|
+
isItemsAriaHidden,
|
|
6982
7016
|
dropTargetClasses,
|
|
6983
7017
|
isContainerWordBin,
|
|
6984
7018
|
handleDndConsider,
|
|
@@ -7006,8 +7040,8 @@
|
|
|
7006
7040
|
paddingTop: 5,
|
|
7007
7041
|
ariaLabel: 6,
|
|
7008
7042
|
isFinished: 7,
|
|
7009
|
-
correctAnswerList:
|
|
7010
|
-
isPreviewModeInteractive:
|
|
7043
|
+
correctAnswerList: 23,
|
|
7044
|
+
isPreviewModeInteractive: 24
|
|
7011
7045
|
},
|
|
7012
7046
|
null,
|
|
7013
7047
|
[-1, -1]
|
|
@@ -7070,14 +7104,14 @@
|
|
|
7070
7104
|
flush();
|
|
7071
7105
|
}
|
|
7072
7106
|
get correctAnswerList() {
|
|
7073
|
-
return this.$$.ctx[
|
|
7107
|
+
return this.$$.ctx[23];
|
|
7074
7108
|
}
|
|
7075
7109
|
set correctAnswerList(correctAnswerList) {
|
|
7076
7110
|
this.$$set({ correctAnswerList });
|
|
7077
7111
|
flush();
|
|
7078
7112
|
}
|
|
7079
7113
|
get isPreviewModeInteractive() {
|
|
7080
|
-
return this.$$.ctx[
|
|
7114
|
+
return this.$$.ctx[24];
|
|
7081
7115
|
}
|
|
7082
7116
|
set isPreviewModeInteractive(isPreviewModeInteractive) {
|
|
7083
7117
|
this.$$set({ isPreviewModeInteractive });
|
|
@@ -8000,19 +8034,19 @@
|
|
|
8000
8034
|
// src/lib/components/prompt/categorise/PromptCategorise.svelte
|
|
8001
8035
|
function get_each_context3(ctx, list, i) {
|
|
8002
8036
|
const child_ctx = ctx.slice();
|
|
8003
|
-
child_ctx[
|
|
8004
|
-
child_ctx[
|
|
8005
|
-
child_ctx[
|
|
8037
|
+
child_ctx[59] = list[i];
|
|
8038
|
+
child_ctx[60] = list;
|
|
8039
|
+
child_ctx[61] = i;
|
|
8006
8040
|
return child_ctx;
|
|
8007
8041
|
}
|
|
8008
|
-
function
|
|
8042
|
+
function create_if_block_6(ctx) {
|
|
8009
8043
|
let promptcategorisemodal;
|
|
8010
8044
|
let current;
|
|
8011
8045
|
promptcategorisemodal = new PromptCategoriseModal_default({});
|
|
8012
8046
|
promptcategorisemodal.$on(
|
|
8013
8047
|
"resetCategory",
|
|
8014
8048
|
/*saveCategory*/
|
|
8015
|
-
ctx[
|
|
8049
|
+
ctx[36]
|
|
8016
8050
|
);
|
|
8017
8051
|
return {
|
|
8018
8052
|
c() {
|
|
@@ -8038,7 +8072,7 @@
|
|
|
8038
8072
|
}
|
|
8039
8073
|
};
|
|
8040
8074
|
}
|
|
8041
|
-
function
|
|
8075
|
+
function create_if_block_5(ctx) {
|
|
8042
8076
|
let button;
|
|
8043
8077
|
let span0;
|
|
8044
8078
|
let switchicon;
|
|
@@ -8115,7 +8149,7 @@
|
|
|
8115
8149
|
}
|
|
8116
8150
|
};
|
|
8117
8151
|
}
|
|
8118
|
-
function
|
|
8152
|
+
function create_if_block_42(ctx) {
|
|
8119
8153
|
let span;
|
|
8120
8154
|
let t0;
|
|
8121
8155
|
let t1;
|
|
@@ -8153,6 +8187,54 @@
|
|
|
8153
8187
|
}
|
|
8154
8188
|
};
|
|
8155
8189
|
}
|
|
8190
|
+
function create_if_block_33(ctx) {
|
|
8191
|
+
let span;
|
|
8192
|
+
let t0;
|
|
8193
|
+
let t1_value = (
|
|
8194
|
+
/*getTotalWordsLabel*/
|
|
8195
|
+
ctx[32](
|
|
8196
|
+
/*totalCategoryWords*/
|
|
8197
|
+
ctx[19][
|
|
8198
|
+
/*category*/
|
|
8199
|
+
ctx[59].id
|
|
8200
|
+
]
|
|
8201
|
+
) + ""
|
|
8202
|
+
);
|
|
8203
|
+
let t1;
|
|
8204
|
+
let t2;
|
|
8205
|
+
return {
|
|
8206
|
+
c() {
|
|
8207
|
+
span = element("span");
|
|
8208
|
+
t0 = text(".\xA0 ");
|
|
8209
|
+
t1 = text(t1_value);
|
|
8210
|
+
t2 = text(" added");
|
|
8211
|
+
attr(span, "class", "sr-only");
|
|
8212
|
+
},
|
|
8213
|
+
m(target, anchor) {
|
|
8214
|
+
insert(target, span, anchor);
|
|
8215
|
+
append(span, t0);
|
|
8216
|
+
append(span, t1);
|
|
8217
|
+
append(span, t2);
|
|
8218
|
+
},
|
|
8219
|
+
p(ctx2, dirty) {
|
|
8220
|
+
if (dirty[0] & /*totalCategoryWords*/
|
|
8221
|
+
524288 && t1_value !== (t1_value = /*getTotalWordsLabel*/
|
|
8222
|
+
ctx2[32](
|
|
8223
|
+
/*totalCategoryWords*/
|
|
8224
|
+
ctx2[19][
|
|
8225
|
+
/*category*/
|
|
8226
|
+
ctx2[59].id
|
|
8227
|
+
]
|
|
8228
|
+
) + ""))
|
|
8229
|
+
set_data(t1, t1_value);
|
|
8230
|
+
},
|
|
8231
|
+
d(detaching) {
|
|
8232
|
+
if (detaching) {
|
|
8233
|
+
detach(span);
|
|
8234
|
+
}
|
|
8235
|
+
}
|
|
8236
|
+
};
|
|
8237
|
+
}
|
|
8156
8238
|
function create_if_block_25(ctx) {
|
|
8157
8239
|
let span;
|
|
8158
8240
|
let t0;
|
|
@@ -8268,52 +8350,55 @@
|
|
|
8268
8350
|
/*checkContainerDroppedItem*/
|
|
8269
8351
|
ctx[28](
|
|
8270
8352
|
/*category*/
|
|
8271
|
-
ctx[
|
|
8353
|
+
ctx[59].id,
|
|
8272
8354
|
/*dropContainerId*/
|
|
8273
8355
|
ctx[6]
|
|
8274
8356
|
)
|
|
8275
8357
|
);
|
|
8276
8358
|
let t0;
|
|
8277
8359
|
let span0;
|
|
8278
|
-
let
|
|
8360
|
+
let t4;
|
|
8279
8361
|
let span1;
|
|
8362
|
+
let t6;
|
|
8363
|
+
let t7;
|
|
8280
8364
|
let t8;
|
|
8281
|
-
let t9;
|
|
8282
8365
|
let button;
|
|
8283
8366
|
let span2;
|
|
8284
|
-
let
|
|
8367
|
+
let t9_value = (
|
|
8285
8368
|
/*getTotalWords*/
|
|
8286
8369
|
ctx[31](
|
|
8287
8370
|
/*category*/
|
|
8288
|
-
ctx[
|
|
8371
|
+
ctx[59].id,
|
|
8289
8372
|
/*currentAnswer*/
|
|
8290
8373
|
ctx[9]
|
|
8291
8374
|
) + ""
|
|
8292
8375
|
);
|
|
8376
|
+
let t9;
|
|
8293
8377
|
let t10;
|
|
8294
|
-
let t11;
|
|
8295
8378
|
let span3;
|
|
8296
8379
|
let show_if;
|
|
8297
8380
|
let current_block_type_index;
|
|
8298
|
-
let
|
|
8381
|
+
let if_block3;
|
|
8299
8382
|
let button_aria_label_value;
|
|
8300
8383
|
let div0_id_value;
|
|
8301
8384
|
let div0_aria_live_value;
|
|
8302
8385
|
let div0_class_value;
|
|
8303
8386
|
let div0_resize_listener;
|
|
8304
|
-
let
|
|
8387
|
+
let t11;
|
|
8305
8388
|
let promptcategorisedndcontainer;
|
|
8306
|
-
let
|
|
8389
|
+
let t12;
|
|
8307
8390
|
let div1_class_value;
|
|
8308
8391
|
let category = (
|
|
8309
8392
|
/*category*/
|
|
8310
|
-
ctx[
|
|
8393
|
+
ctx[59]
|
|
8311
8394
|
);
|
|
8312
8395
|
let current;
|
|
8313
8396
|
let mounted;
|
|
8314
8397
|
let dispose;
|
|
8315
|
-
let if_block0 = show_if_1 &&
|
|
8316
|
-
let if_block1 =
|
|
8398
|
+
let if_block0 = show_if_1 && create_if_block_42(ctx);
|
|
8399
|
+
let if_block1 = !/*previewResultSr*/
|
|
8400
|
+
ctx[17] && create_if_block_33(ctx);
|
|
8401
|
+
let if_block2 = (
|
|
8317
8402
|
/*previewResultSr*/
|
|
8318
8403
|
ctx[17] && create_if_block_25(ctx)
|
|
8319
8404
|
);
|
|
@@ -8325,9 +8410,9 @@
|
|
|
8325
8410
|
show_if = null;
|
|
8326
8411
|
if (show_if == null)
|
|
8327
8412
|
show_if = !!/*checkifCategoryContainerOpen*/
|
|
8328
|
-
ctx2[
|
|
8413
|
+
ctx2[33](
|
|
8329
8414
|
/*category*/
|
|
8330
|
-
ctx2[
|
|
8415
|
+
ctx2[59].id,
|
|
8331
8416
|
/*openCategoryContainer*/
|
|
8332
8417
|
ctx2[13]
|
|
8333
8418
|
);
|
|
@@ -8335,13 +8420,13 @@
|
|
|
8335
8420
|
return 0;
|
|
8336
8421
|
return 1;
|
|
8337
8422
|
}
|
|
8338
|
-
current_block_type_index = select_block_type(ctx, [-1, -1]);
|
|
8339
|
-
|
|
8423
|
+
current_block_type_index = select_block_type(ctx, [-1, -1, -1]);
|
|
8424
|
+
if_block3 = if_blocks[current_block_type_index] = if_block_creators[current_block_type_index](ctx);
|
|
8340
8425
|
function div0_elementresize_handler() {
|
|
8341
|
-
ctx[
|
|
8426
|
+
ctx[43].call(
|
|
8342
8427
|
div0,
|
|
8343
8428
|
/*category*/
|
|
8344
|
-
ctx[
|
|
8429
|
+
ctx[59]
|
|
8345
8430
|
);
|
|
8346
8431
|
}
|
|
8347
8432
|
promptcategorisedndcontainer = new PromptCategoriseDndContainer_default({
|
|
@@ -8349,63 +8434,62 @@
|
|
|
8349
8434
|
containerClass: "content-start !outline-none rounded-lg grow w-full md:p-4\n " + /*checkContainerDragOver*/
|
|
8350
8435
|
(ctx[27](
|
|
8351
8436
|
/*category*/
|
|
8352
|
-
ctx[
|
|
8437
|
+
ctx[59].id,
|
|
8353
8438
|
/*considerContainerId*/
|
|
8354
8439
|
ctx[4],
|
|
8355
8440
|
/*isDraggingOver*/
|
|
8356
8441
|
ctx[5]
|
|
8357
8442
|
) ? "bg-violet-100" : "") + "\n " + /*checkifCategoryContainerOpen*/
|
|
8358
|
-
(ctx[
|
|
8443
|
+
(ctx[33](
|
|
8359
8444
|
/*category*/
|
|
8360
|
-
ctx[
|
|
8445
|
+
ctx[59].id,
|
|
8361
8446
|
/*openCategoryContainer*/
|
|
8362
8447
|
ctx[13]
|
|
8363
8448
|
) ? "h-full p-3 min-h-[86px] md:min-h-0" : ""),
|
|
8364
8449
|
paddingTop: (
|
|
8365
8450
|
/*checkifCategoryContainerOpen*/
|
|
8366
|
-
ctx[
|
|
8451
|
+
ctx[33](
|
|
8367
8452
|
/*category*/
|
|
8368
|
-
ctx[
|
|
8453
|
+
ctx[59].id,
|
|
8369
8454
|
/*openCategoryContainer*/
|
|
8370
8455
|
ctx[13]
|
|
8371
8456
|
) || !useIsSmallScreen() ? (
|
|
8372
8457
|
/*categoryTitleHeight*/
|
|
8373
|
-
ctx[
|
|
8458
|
+
ctx[21][
|
|
8374
8459
|
/*category*/
|
|
8375
|
-
ctx[
|
|
8460
|
+
ctx[59].id
|
|
8376
8461
|
] + 16
|
|
8377
8462
|
) : (
|
|
8378
8463
|
/*categoryTitleHeight*/
|
|
8379
|
-
ctx[
|
|
8464
|
+
ctx[21][
|
|
8380
8465
|
/*category*/
|
|
8381
|
-
ctx[
|
|
8466
|
+
ctx[59].id
|
|
8382
8467
|
]
|
|
8383
8468
|
)
|
|
8384
8469
|
),
|
|
8385
8470
|
containerId: (
|
|
8386
8471
|
/*category*/
|
|
8387
|
-
ctx[
|
|
8472
|
+
ctx[59].id
|
|
8388
8473
|
),
|
|
8389
8474
|
showButton: (
|
|
8390
8475
|
/*checkifCategoryContainerOpen*/
|
|
8391
|
-
ctx[
|
|
8476
|
+
ctx[33](
|
|
8392
8477
|
/*category*/
|
|
8393
|
-
ctx[
|
|
8478
|
+
ctx[59].id,
|
|
8394
8479
|
/*openCategoryContainer*/
|
|
8395
8480
|
ctx[13]
|
|
8396
8481
|
)
|
|
8397
8482
|
),
|
|
8398
8483
|
ariaLabel: `Category ${/*index*/
|
|
8399
|
-
ctx[
|
|
8400
|
-
ctx[
|
|
8401
|
-
ctx[55].name}`,
|
|
8484
|
+
ctx[61] + 1}: ${/*category*/
|
|
8485
|
+
ctx[59].name}`,
|
|
8402
8486
|
isFinished: (
|
|
8403
8487
|
/*isFinished*/
|
|
8404
8488
|
ctx[0]
|
|
8405
8489
|
),
|
|
8406
8490
|
correctAnswerList: (
|
|
8407
8491
|
/*scoringMetadata*/
|
|
8408
|
-
ctx[
|
|
8492
|
+
ctx[23]
|
|
8409
8493
|
),
|
|
8410
8494
|
isPreviewModeInteractive: (
|
|
8411
8495
|
/*isPreviewModeInteractive*/
|
|
@@ -8416,25 +8500,25 @@
|
|
|
8416
8500
|
promptcategorisedndcontainer.$on(
|
|
8417
8501
|
"saveCategory",
|
|
8418
8502
|
/*saveCategory*/
|
|
8419
|
-
ctx[
|
|
8503
|
+
ctx[36]
|
|
8420
8504
|
);
|
|
8421
8505
|
function keydown_handler(...args) {
|
|
8422
8506
|
return (
|
|
8423
8507
|
/*keydown_handler*/
|
|
8424
|
-
ctx[
|
|
8508
|
+
ctx[44](
|
|
8425
8509
|
/*category*/
|
|
8426
|
-
ctx[
|
|
8510
|
+
ctx[59],
|
|
8427
8511
|
...args
|
|
8428
8512
|
)
|
|
8429
8513
|
);
|
|
8430
8514
|
}
|
|
8431
8515
|
const assign_div1 = () => (
|
|
8432
8516
|
/*div1_binding*/
|
|
8433
|
-
ctx[
|
|
8517
|
+
ctx[46](div1, category)
|
|
8434
8518
|
);
|
|
8435
8519
|
const unassign_div1 = () => (
|
|
8436
8520
|
/*div1_binding*/
|
|
8437
|
-
ctx[
|
|
8521
|
+
ctx[46](null, category)
|
|
8438
8522
|
);
|
|
8439
8523
|
return {
|
|
8440
8524
|
c() {
|
|
@@ -8445,25 +8529,27 @@
|
|
|
8445
8529
|
t0 = space();
|
|
8446
8530
|
span0 = element("span");
|
|
8447
8531
|
span0.textContent = `Category ${/*index*/
|
|
8448
|
-
ctx[
|
|
8449
|
-
|
|
8450
|
-
t6 = space();
|
|
8532
|
+
ctx[61] + 1}:\xA0`;
|
|
8533
|
+
t4 = space();
|
|
8451
8534
|
span1 = element("span");
|
|
8452
8535
|
span1.textContent = `${/*category*/
|
|
8453
|
-
ctx[
|
|
8454
|
-
|
|
8536
|
+
ctx[59].name}`;
|
|
8537
|
+
t6 = space();
|
|
8455
8538
|
if (if_block1)
|
|
8456
8539
|
if_block1.c();
|
|
8457
|
-
|
|
8540
|
+
t7 = space();
|
|
8541
|
+
if (if_block2)
|
|
8542
|
+
if_block2.c();
|
|
8543
|
+
t8 = space();
|
|
8458
8544
|
button = element("button");
|
|
8459
8545
|
span2 = element("span");
|
|
8460
|
-
|
|
8461
|
-
|
|
8546
|
+
t9 = text(t9_value);
|
|
8547
|
+
t10 = space();
|
|
8462
8548
|
span3 = element("span");
|
|
8463
|
-
|
|
8464
|
-
|
|
8549
|
+
if_block3.c();
|
|
8550
|
+
t11 = space();
|
|
8465
8551
|
create_component(promptcategorisedndcontainer.$$.fragment);
|
|
8466
|
-
|
|
8552
|
+
t12 = space();
|
|
8467
8553
|
attr(span0, "class", "sr-only");
|
|
8468
8554
|
attr(span1, "class", "text-base leading-5 !text-gray-900 md:item-heading");
|
|
8469
8555
|
attr(span2, "class", "mx-0.5");
|
|
@@ -8471,17 +8557,17 @@
|
|
|
8471
8557
|
attr(button, "aria-label", button_aria_label_value = /*getTotalWords*/
|
|
8472
8558
|
ctx[31](
|
|
8473
8559
|
/*category*/
|
|
8474
|
-
ctx[
|
|
8560
|
+
ctx[59].id,
|
|
8475
8561
|
/*currentAnswer*/
|
|
8476
8562
|
ctx[9]
|
|
8477
8563
|
));
|
|
8478
8564
|
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");
|
|
8479
8565
|
attr(div0, "id", div0_id_value = `category-title${/*index*/
|
|
8480
|
-
ctx[
|
|
8566
|
+
ctx[61]}`);
|
|
8481
8567
|
attr(div0, "aria-live", div0_aria_live_value = /*checkContainerDroppedItem*/
|
|
8482
8568
|
ctx[28](
|
|
8483
8569
|
/*category*/
|
|
8484
|
-
ctx[
|
|
8570
|
+
ctx[59].id,
|
|
8485
8571
|
/*dropContainerId*/
|
|
8486
8572
|
ctx[6]
|
|
8487
8573
|
) && /*enableAriaLive*/
|
|
@@ -8489,39 +8575,39 @@
|
|
|
8489
8575
|
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*/
|
|
8490
8576
|
(ctx[28](
|
|
8491
8577
|
/*category*/
|
|
8492
|
-
ctx[
|
|
8578
|
+
ctx[59].id,
|
|
8493
8579
|
/*dropContainerId*/
|
|
8494
8580
|
ctx[6]
|
|
8495
8581
|
) ? "bg-tranparent" : "bg-white") + " " + (!/*checkifCategoryContainerOpen*/
|
|
8496
|
-
ctx[
|
|
8582
|
+
ctx[33](
|
|
8497
8583
|
/*category*/
|
|
8498
|
-
ctx[
|
|
8584
|
+
ctx[59].id,
|
|
8499
8585
|
/*openCategoryContainer*/
|
|
8500
8586
|
ctx[13]
|
|
8501
8587
|
) && /*checkContainerDragOver*/
|
|
8502
8588
|
ctx[27](
|
|
8503
8589
|
/*category*/
|
|
8504
|
-
ctx[
|
|
8590
|
+
ctx[59].id,
|
|
8505
8591
|
/*considerContainerId*/
|
|
8506
8592
|
ctx[4],
|
|
8507
8593
|
/*isDraggingOver*/
|
|
8508
8594
|
ctx[5]
|
|
8509
8595
|
) ? "!bg-violet-100 md:!bg-white" : "") + " " + /*checkifCategoryContainerOpen*/
|
|
8510
|
-
(ctx[
|
|
8596
|
+
(ctx[33](
|
|
8511
8597
|
/*category*/
|
|
8512
|
-
ctx[
|
|
8598
|
+
ctx[59].id,
|
|
8513
8599
|
/*openCategoryContainer*/
|
|
8514
8600
|
ctx[13]
|
|
8515
8601
|
) ? "" : "rounded-b-lg md:rounded-b-none") + " " + (!/*checkifCategoryContainerOpen*/
|
|
8516
|
-
ctx[
|
|
8602
|
+
ctx[33](
|
|
8517
8603
|
/*category*/
|
|
8518
|
-
ctx[
|
|
8604
|
+
ctx[59].id,
|
|
8519
8605
|
/*openCategoryContainer*/
|
|
8520
8606
|
ctx[13]
|
|
8521
8607
|
) && /*checkSelectedSourceContainer*/
|
|
8522
8608
|
ctx[29](
|
|
8523
8609
|
/*category*/
|
|
8524
|
-
ctx[
|
|
8610
|
+
ctx[59].id,
|
|
8525
8611
|
/*sourceSelectedContainerId*/
|
|
8526
8612
|
ctx[8],
|
|
8527
8613
|
/*currentSelectedItemId*/
|
|
@@ -8544,7 +8630,7 @@
|
|
|
8544
8630
|
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*/
|
|
8545
8631
|
(ctx[27](
|
|
8546
8632
|
/*category*/
|
|
8547
|
-
ctx[
|
|
8633
|
+
ctx[59].id,
|
|
8548
8634
|
/*considerContainerId*/
|
|
8549
8635
|
ctx[4],
|
|
8550
8636
|
/*isDraggingOver*/
|
|
@@ -8552,28 +8638,28 @@
|
|
|
8552
8638
|
) ? "raw-focus-ring" : "") + " " + /*checkContainerDroppedItem*/
|
|
8553
8639
|
(ctx[28](
|
|
8554
8640
|
/*category*/
|
|
8555
|
-
ctx[
|
|
8641
|
+
ctx[59].id,
|
|
8556
8642
|
/*dropContainerId*/
|
|
8557
8643
|
ctx[6]
|
|
8558
8644
|
) ? "bg-violet-150" : "") + " " + /*checkContainerDroppedItem*/
|
|
8559
8645
|
(ctx[28](
|
|
8560
8646
|
/*category*/
|
|
8561
|
-
ctx[
|
|
8647
|
+
ctx[59].id,
|
|
8562
8648
|
/*dropContainerId*/
|
|
8563
8649
|
ctx[6]
|
|
8564
8650
|
) && /*hasAddItemAnimation*/
|
|
8565
8651
|
ctx[11] ? "transition bg-white duration-300" : "") + " " + /*checkSelectedSourceContainer*/
|
|
8566
8652
|
(ctx[29](
|
|
8567
8653
|
/*category*/
|
|
8568
|
-
ctx[
|
|
8654
|
+
ctx[59].id,
|
|
8569
8655
|
/*sourceSelectedContainerId*/
|
|
8570
8656
|
ctx[8],
|
|
8571
8657
|
/*currentSelectedItemId*/
|
|
8572
8658
|
ctx[7]
|
|
8573
8659
|
) ? "hover:bg-violet-100 hover-focus-ring cursor-pointer" : "") + " " + /*checkifCategoryContainerOpen*/
|
|
8574
|
-
(ctx[
|
|
8660
|
+
(ctx[33](
|
|
8575
8661
|
/*category*/
|
|
8576
|
-
ctx[
|
|
8662
|
+
ctx[59].id,
|
|
8577
8663
|
/*openCategoryContainer*/
|
|
8578
8664
|
ctx[13]
|
|
8579
8665
|
) ? "min-h-[140px]" : ""));
|
|
@@ -8585,22 +8671,25 @@
|
|
|
8585
8671
|
if_block0.m(div0, null);
|
|
8586
8672
|
append(div0, t0);
|
|
8587
8673
|
append(div0, span0);
|
|
8588
|
-
append(div0,
|
|
8674
|
+
append(div0, t4);
|
|
8589
8675
|
append(div0, span1);
|
|
8590
|
-
append(div0,
|
|
8676
|
+
append(div0, t6);
|
|
8591
8677
|
if (if_block1)
|
|
8592
8678
|
if_block1.m(div0, null);
|
|
8593
|
-
append(div0,
|
|
8679
|
+
append(div0, t7);
|
|
8680
|
+
if (if_block2)
|
|
8681
|
+
if_block2.m(div0, null);
|
|
8682
|
+
append(div0, t8);
|
|
8594
8683
|
append(div0, button);
|
|
8595
8684
|
append(button, span2);
|
|
8596
|
-
append(span2,
|
|
8597
|
-
append(button,
|
|
8685
|
+
append(span2, t9);
|
|
8686
|
+
append(button, t10);
|
|
8598
8687
|
append(button, span3);
|
|
8599
8688
|
if_blocks[current_block_type_index].m(span3, null);
|
|
8600
8689
|
div0_resize_listener = add_iframe_resize_listener(div0, div0_elementresize_handler.bind(div0));
|
|
8601
|
-
append(div1,
|
|
8690
|
+
append(div1, t11);
|
|
8602
8691
|
mount_component(promptcategorisedndcontainer, div1, null);
|
|
8603
|
-
append(div1,
|
|
8692
|
+
append(div1, t12);
|
|
8604
8693
|
assign_div1();
|
|
8605
8694
|
current = true;
|
|
8606
8695
|
if (!mounted) {
|
|
@@ -8608,16 +8697,16 @@
|
|
|
8608
8697
|
listen(button, "click", function() {
|
|
8609
8698
|
if (is_function(
|
|
8610
8699
|
/*addCategoryContainer*/
|
|
8611
|
-
ctx[
|
|
8700
|
+
ctx[34](
|
|
8612
8701
|
/*category*/
|
|
8613
|
-
ctx[
|
|
8702
|
+
ctx[59].id,
|
|
8614
8703
|
/*openCategoryContainer*/
|
|
8615
8704
|
ctx[13]
|
|
8616
8705
|
)
|
|
8617
8706
|
))
|
|
8618
|
-
ctx[
|
|
8707
|
+
ctx[34](
|
|
8619
8708
|
/*category*/
|
|
8620
|
-
ctx[
|
|
8709
|
+
ctx[59].id,
|
|
8621
8710
|
/*openCategoryContainer*/
|
|
8622
8711
|
ctx[13]
|
|
8623
8712
|
).apply(this, arguments);
|
|
@@ -8627,7 +8716,13 @@
|
|
|
8627
8716
|
div1,
|
|
8628
8717
|
"focus",
|
|
8629
8718
|
/*resetTabCategory*/
|
|
8630
|
-
ctx[
|
|
8719
|
+
ctx[38]
|
|
8720
|
+
),
|
|
8721
|
+
listen(
|
|
8722
|
+
div1,
|
|
8723
|
+
"blur",
|
|
8724
|
+
/*blur_handler*/
|
|
8725
|
+
ctx[45]
|
|
8631
8726
|
)
|
|
8632
8727
|
];
|
|
8633
8728
|
mounted = true;
|
|
@@ -8640,7 +8735,7 @@
|
|
|
8640
8735
|
show_if_1 = /*checkContainerDroppedItem*/
|
|
8641
8736
|
ctx[28](
|
|
8642
8737
|
/*category*/
|
|
8643
|
-
ctx[
|
|
8738
|
+
ctx[59].id,
|
|
8644
8739
|
/*dropContainerId*/
|
|
8645
8740
|
ctx[6]
|
|
8646
8741
|
);
|
|
@@ -8648,7 +8743,7 @@
|
|
|
8648
8743
|
if (if_block0) {
|
|
8649
8744
|
if_block0.p(ctx, dirty);
|
|
8650
8745
|
} else {
|
|
8651
|
-
if_block0 =
|
|
8746
|
+
if_block0 = create_if_block_42(ctx);
|
|
8652
8747
|
if_block0.c();
|
|
8653
8748
|
if_block0.m(div0, t0);
|
|
8654
8749
|
}
|
|
@@ -8656,30 +8751,43 @@
|
|
|
8656
8751
|
if_block0.d(1);
|
|
8657
8752
|
if_block0 = null;
|
|
8658
8753
|
}
|
|
8659
|
-
if (
|
|
8660
|
-
|
|
8661
|
-
ctx[17]
|
|
8662
|
-
) {
|
|
8754
|
+
if (!/*previewResultSr*/
|
|
8755
|
+
ctx[17]) {
|
|
8663
8756
|
if (if_block1) {
|
|
8664
8757
|
if_block1.p(ctx, dirty);
|
|
8665
8758
|
} else {
|
|
8666
|
-
if_block1 =
|
|
8759
|
+
if_block1 = create_if_block_33(ctx);
|
|
8667
8760
|
if_block1.c();
|
|
8668
|
-
if_block1.m(div0,
|
|
8761
|
+
if_block1.m(div0, t7);
|
|
8669
8762
|
}
|
|
8670
8763
|
} else if (if_block1) {
|
|
8671
8764
|
if_block1.d(1);
|
|
8672
8765
|
if_block1 = null;
|
|
8673
8766
|
}
|
|
8767
|
+
if (
|
|
8768
|
+
/*previewResultSr*/
|
|
8769
|
+
ctx[17]
|
|
8770
|
+
) {
|
|
8771
|
+
if (if_block2) {
|
|
8772
|
+
if_block2.p(ctx, dirty);
|
|
8773
|
+
} else {
|
|
8774
|
+
if_block2 = create_if_block_25(ctx);
|
|
8775
|
+
if_block2.c();
|
|
8776
|
+
if_block2.m(div0, t8);
|
|
8777
|
+
}
|
|
8778
|
+
} else if (if_block2) {
|
|
8779
|
+
if_block2.d(1);
|
|
8780
|
+
if_block2 = null;
|
|
8781
|
+
}
|
|
8674
8782
|
if ((!current || dirty[0] & /*currentAnswer*/
|
|
8675
|
-
512) &&
|
|
8783
|
+
512) && t9_value !== (t9_value = /*getTotalWords*/
|
|
8676
8784
|
ctx[31](
|
|
8677
8785
|
/*category*/
|
|
8678
|
-
ctx[
|
|
8786
|
+
ctx[59].id,
|
|
8679
8787
|
/*currentAnswer*/
|
|
8680
8788
|
ctx[9]
|
|
8681
8789
|
) + ""))
|
|
8682
|
-
set_data(
|
|
8790
|
+
set_data(t9, t9_value);
|
|
8683
8791
|
let previous_block_index = current_block_type_index;
|
|
8684
8792
|
current_block_type_index = select_block_type(ctx, dirty);
|
|
8685
8793
|
if (current_block_type_index !== previous_block_index) {
|
|
@@ -8688,20 +8796,20 @@
|
|
|
8688
8796
|
if_blocks[previous_block_index] = null;
|
|
8689
8797
|
});
|
|
8690
8798
|
check_outros();
|
|
8691
|
-
|
|
8692
|
-
if (!
|
|
8693
|
-
|
|
8694
|
-
|
|
8799
|
+
if_block3 = if_blocks[current_block_type_index];
|
|
8800
|
+
if (!if_block3) {
|
|
8801
|
+
if_block3 = if_blocks[current_block_type_index] = if_block_creators[current_block_type_index](ctx);
|
|
8802
|
+
if_block3.c();
|
|
8695
8803
|
} else {
|
|
8696
8804
|
}
|
|
8697
|
-
transition_in(
|
|
8698
|
-
|
|
8805
|
+
transition_in(if_block3, 1);
|
|
8806
|
+
if_block3.m(span3, null);
|
|
8699
8807
|
}
|
|
8700
8808
|
if (!current || dirty[0] & /*currentAnswer*/
|
|
8701
8809
|
512 && button_aria_label_value !== (button_aria_label_value = /*getTotalWords*/
|
|
8702
8810
|
ctx[31](
|
|
8703
8811
|
/*category*/
|
|
8704
|
-
ctx[
|
|
8812
|
+
ctx[59].id,
|
|
8705
8813
|
/*currentAnswer*/
|
|
8706
8814
|
ctx[9]
|
|
8707
8815
|
))) {
|
|
@@ -8711,7 +8819,7 @@
|
|
|
8711
8819
|
262208 && div0_aria_live_value !== (div0_aria_live_value = /*checkContainerDroppedItem*/
|
|
8712
8820
|
ctx[28](
|
|
8713
8821
|
/*category*/
|
|
8714
|
-
ctx[
|
|
8822
|
+
ctx[59].id,
|
|
8715
8823
|
/*dropContainerId*/
|
|
8716
8824
|
ctx[6]
|
|
8717
8825
|
) && /*enableAriaLive*/
|
|
@@ -8722,39 +8830,39 @@
|
|
|
8722
8830
|
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*/
|
|
8723
8831
|
(ctx[28](
|
|
8724
8832
|
/*category*/
|
|
8725
|
-
ctx[
|
|
8833
|
+
ctx[59].id,
|
|
8726
8834
|
/*dropContainerId*/
|
|
8727
8835
|
ctx[6]
|
|
8728
8836
|
) ? "bg-tranparent" : "bg-white") + " " + (!/*checkifCategoryContainerOpen*/
|
|
8729
|
-
ctx[
|
|
8837
|
+
ctx[33](
|
|
8730
8838
|
/*category*/
|
|
8731
|
-
ctx[
|
|
8839
|
+
ctx[59].id,
|
|
8732
8840
|
/*openCategoryContainer*/
|
|
8733
8841
|
ctx[13]
|
|
8734
8842
|
) && /*checkContainerDragOver*/
|
|
8735
8843
|
ctx[27](
|
|
8736
8844
|
/*category*/
|
|
8737
|
-
ctx[
|
|
8845
|
+
ctx[59].id,
|
|
8738
8846
|
/*considerContainerId*/
|
|
8739
8847
|
ctx[4],
|
|
8740
8848
|
/*isDraggingOver*/
|
|
8741
8849
|
ctx[5]
|
|
8742
8850
|
) ? "!bg-violet-100 md:!bg-white" : "") + " " + /*checkifCategoryContainerOpen*/
|
|
8743
|
-
(ctx[
|
|
8851
|
+
(ctx[33](
|
|
8744
8852
|
/*category*/
|
|
8745
|
-
ctx[
|
|
8853
|
+
ctx[59].id,
|
|
8746
8854
|
/*openCategoryContainer*/
|
|
8747
8855
|
ctx[13]
|
|
8748
8856
|
) ? "" : "rounded-b-lg md:rounded-b-none") + " " + (!/*checkifCategoryContainerOpen*/
|
|
8749
|
-
ctx[
|
|
8857
|
+
ctx[33](
|
|
8750
8858
|
/*category*/
|
|
8751
|
-
ctx[
|
|
8859
|
+
ctx[59].id,
|
|
8752
8860
|
/*openCategoryContainer*/
|
|
8753
8861
|
ctx[13]
|
|
8754
8862
|
) && /*checkSelectedSourceContainer*/
|
|
8755
8863
|
ctx[29](
|
|
8756
8864
|
/*category*/
|
|
8757
|
-
ctx[
|
|
8865
|
+
ctx[59].id,
|
|
8758
8866
|
/*sourceSelectedContainerId*/
|
|
8759
8867
|
ctx[8],
|
|
8760
8868
|
/*currentSelectedItemId*/
|
|
@@ -8768,45 +8876,45 @@
|
|
|
8768
8876
|
promptcategorisedndcontainer_changes.containerClass = "content-start !outline-none rounded-lg grow w-full md:p-4\n " + /*checkContainerDragOver*/
|
|
8769
8877
|
(ctx[27](
|
|
8770
8878
|
/*category*/
|
|
8771
|
-
ctx[
|
|
8879
|
+
ctx[59].id,
|
|
8772
8880
|
/*considerContainerId*/
|
|
8773
8881
|
ctx[4],
|
|
8774
8882
|
/*isDraggingOver*/
|
|
8775
8883
|
ctx[5]
|
|
8776
8884
|
) ? "bg-violet-100" : "") + "\n " + /*checkifCategoryContainerOpen*/
|
|
8777
|
-
(ctx[
|
|
8885
|
+
(ctx[33](
|
|
8778
8886
|
/*category*/
|
|
8779
|
-
ctx[
|
|
8887
|
+
ctx[59].id,
|
|
8780
8888
|
/*openCategoryContainer*/
|
|
8781
8889
|
ctx[13]
|
|
8782
8890
|
) ? "h-full p-3 min-h-[86px] md:min-h-0" : "");
|
|
8783
8891
|
if (dirty[0] & /*openCategoryContainer, categoryTitleHeight*/
|
|
8784
|
-
|
|
8892
|
+
2105344)
|
|
8785
8893
|
promptcategorisedndcontainer_changes.paddingTop = /*checkifCategoryContainerOpen*/
|
|
8786
|
-
ctx[
|
|
8894
|
+
ctx[33](
|
|
8787
8895
|
/*category*/
|
|
8788
|
-
ctx[
|
|
8896
|
+
ctx[59].id,
|
|
8789
8897
|
/*openCategoryContainer*/
|
|
8790
8898
|
ctx[13]
|
|
8791
8899
|
) || !useIsSmallScreen() ? (
|
|
8792
8900
|
/*categoryTitleHeight*/
|
|
8793
|
-
ctx[
|
|
8901
|
+
ctx[21][
|
|
8794
8902
|
/*category*/
|
|
8795
|
-
ctx[
|
|
8903
|
+
ctx[59].id
|
|
8796
8904
|
] + 16
|
|
8797
8905
|
) : (
|
|
8798
8906
|
/*categoryTitleHeight*/
|
|
8799
|
-
ctx[
|
|
8907
|
+
ctx[21][
|
|
8800
8908
|
/*category*/
|
|
8801
|
-
ctx[
|
|
8909
|
+
ctx[59].id
|
|
8802
8910
|
]
|
|
8803
8911
|
);
|
|
8804
8912
|
if (dirty[0] & /*openCategoryContainer*/
|
|
8805
8913
|
8192)
|
|
8806
8914
|
promptcategorisedndcontainer_changes.showButton = /*checkifCategoryContainerOpen*/
|
|
8807
|
-
ctx[
|
|
8915
|
+
ctx[33](
|
|
8808
8916
|
/*category*/
|
|
8809
|
-
ctx[
|
|
8917
|
+
ctx[59].id,
|
|
8810
8918
|
/*openCategoryContainer*/
|
|
8811
8919
|
ctx[13]
|
|
8812
8920
|
);
|
|
@@ -8841,7 +8949,7 @@
|
|
|
8841
8949
|
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*/
|
|
8842
8950
|
(ctx[27](
|
|
8843
8951
|
/*category*/
|
|
8844
|
-
ctx[
|
|
8952
|
+
ctx[59].id,
|
|
8845
8953
|
/*considerContainerId*/
|
|
8846
8954
|
ctx[4],
|
|
8847
8955
|
/*isDraggingOver*/
|
|
@@ -8849,50 +8957,50 @@
|
|
|
8849
8957
|
) ? "raw-focus-ring" : "") + " " + /*checkContainerDroppedItem*/
|
|
8850
8958
|
(ctx[28](
|
|
8851
8959
|
/*category*/
|
|
8852
|
-
ctx[
|
|
8960
|
+
ctx[59].id,
|
|
8853
8961
|
/*dropContainerId*/
|
|
8854
8962
|
ctx[6]
|
|
8855
8963
|
) ? "bg-violet-150" : "") + " " + /*checkContainerDroppedItem*/
|
|
8856
8964
|
(ctx[28](
|
|
8857
8965
|
/*category*/
|
|
8858
|
-
ctx[
|
|
8966
|
+
ctx[59].id,
|
|
8859
8967
|
/*dropContainerId*/
|
|
8860
8968
|
ctx[6]
|
|
8861
8969
|
) && /*hasAddItemAnimation*/
|
|
8862
8970
|
ctx[11] ? "transition bg-white duration-300" : "") + " " + /*checkSelectedSourceContainer*/
|
|
8863
8971
|
(ctx[29](
|
|
8864
8972
|
/*category*/
|
|
8865
|
-
ctx[
|
|
8973
|
+
ctx[59].id,
|
|
8866
8974
|
/*sourceSelectedContainerId*/
|
|
8867
8975
|
ctx[8],
|
|
8868
8976
|
/*currentSelectedItemId*/
|
|
8869
8977
|
ctx[7]
|
|
8870
8978
|
) ? "hover:bg-violet-100 hover-focus-ring cursor-pointer" : "") + " " + /*checkifCategoryContainerOpen*/
|
|
8871
|
-
(ctx[
|
|
8979
|
+
(ctx[33](
|
|
8872
8980
|
/*category*/
|
|
8873
|
-
ctx[
|
|
8981
|
+
ctx[59].id,
|
|
8874
8982
|
/*openCategoryContainer*/
|
|
8875
8983
|
ctx[13]
|
|
8876
8984
|
) ? "min-h-[140px]" : ""))) {
|
|
8877
8985
|
attr(div1, "class", div1_class_value);
|
|
8878
8986
|
}
|
|
8879
8987
|
if (category !== /*category*/
|
|
8880
|
-
ctx[
|
|
8988
|
+
ctx[59]) {
|
|
8881
8989
|
unassign_div1();
|
|
8882
8990
|
category = /*category*/
|
|
8883
|
-
ctx[
|
|
8991
|
+
ctx[59];
|
|
8884
8992
|
assign_div1();
|
|
8885
8993
|
}
|
|
8886
8994
|
},
|
|
8887
8995
|
i(local) {
|
|
8888
8996
|
if (current)
|
|
8889
8997
|
return;
|
|
8890
|
-
transition_in(
|
|
8998
|
+
transition_in(if_block3);
|
|
8891
8999
|
transition_in(promptcategorisedndcontainer.$$.fragment, local);
|
|
8892
9000
|
current = true;
|
|
8893
9001
|
},
|
|
8894
9002
|
o(local) {
|
|
8895
|
-
transition_out(
|
|
9003
|
+
transition_out(if_block3);
|
|
8896
9004
|
transition_out(promptcategorisedndcontainer.$$.fragment, local);
|
|
8897
9005
|
current = false;
|
|
8898
9006
|
},
|
|
@@ -8904,6 +9012,8 @@
|
|
|
8904
9012
|
if_block0.d();
|
|
8905
9013
|
if (if_block1)
|
|
8906
9014
|
if_block1.d();
|
|
9015
|
+
if (if_block2)
|
|
9016
|
+
if_block2.d();
|
|
8907
9017
|
if_blocks[current_block_type_index].d();
|
|
8908
9018
|
div0_resize_listener();
|
|
8909
9019
|
destroy_component(promptcategorisedndcontainer);
|
|
@@ -9006,17 +9116,17 @@
|
|
|
9006
9116
|
arrowdowncircle = new ArrowDownCircle_default({});
|
|
9007
9117
|
let if_block0 = (
|
|
9008
9118
|
/*isModalOpen*/
|
|
9009
|
-
ctx[12] &&
|
|
9119
|
+
ctx[12] && create_if_block_6(ctx)
|
|
9010
9120
|
);
|
|
9011
9121
|
let if_block1 = (
|
|
9012
9122
|
/*totalRemainingWordBinItem*/
|
|
9013
9123
|
ctx[10] !== /*totalCategoryItems*/
|
|
9014
9124
|
ctx[3] && !/*isFinished*/
|
|
9015
|
-
ctx[0] &&
|
|
9125
|
+
ctx[0] && create_if_block_5(ctx)
|
|
9016
9126
|
);
|
|
9017
9127
|
let each_value = ensure_array_like(Object.values(
|
|
9018
9128
|
/*categoryGroups*/
|
|
9019
|
-
ctx[
|
|
9129
|
+
ctx[26]
|
|
9020
9130
|
));
|
|
9021
9131
|
let each_blocks = [];
|
|
9022
9132
|
for (let i = 0; i < each_value.length; i += 1) {
|
|
@@ -9030,14 +9140,14 @@
|
|
|
9030
9140
|
promptcategorisedndcontainer = new PromptCategoriseDndContainer_default({
|
|
9031
9141
|
props: {
|
|
9032
9142
|
containerClass: "bg-transparent p-4 pt-[55px] grow md:grow-0 md:pt-20.5 justify-center md:justify-normal\n " + /*isWordBInTotalZero*/
|
|
9033
|
-
(ctx[
|
|
9143
|
+
(ctx[35](
|
|
9034
9144
|
/*totalRemainingWordBinItem*/
|
|
9035
9145
|
ctx[10]
|
|
9036
9146
|
) && !/*currentSelectedItemId*/
|
|
9037
9147
|
ctx[7] ? "absolute inset-0" : ""),
|
|
9038
9148
|
items: (
|
|
9039
9149
|
/*categoryItems*/
|
|
9040
|
-
ctx[
|
|
9150
|
+
ctx[25]
|
|
9041
9151
|
),
|
|
9042
9152
|
containerId: CONTAINER_WORD_BIN_ID,
|
|
9043
9153
|
ariaLabel: "Word bin",
|
|
@@ -9047,7 +9157,7 @@
|
|
|
9047
9157
|
),
|
|
9048
9158
|
correctAnswerList: (
|
|
9049
9159
|
/*scoringMetadata*/
|
|
9050
|
-
ctx[
|
|
9160
|
+
ctx[23]
|
|
9051
9161
|
),
|
|
9052
9162
|
isPreviewModeInteractive: (
|
|
9053
9163
|
/*isPreviewModeInteractive*/
|
|
@@ -9058,7 +9168,7 @@
|
|
|
9058
9168
|
promptcategorisedndcontainer.$on(
|
|
9059
9169
|
"saveCategory",
|
|
9060
9170
|
/*saveCategory*/
|
|
9061
|
-
ctx[
|
|
9171
|
+
ctx[36]
|
|
9062
9172
|
);
|
|
9063
9173
|
smallchevronright = new SmallChevronRight_default({});
|
|
9064
9174
|
return {
|
|
@@ -9091,7 +9201,7 @@
|
|
|
9091
9201
|
if_block2.c();
|
|
9092
9202
|
t8 = space();
|
|
9093
9203
|
span2 = element("span");
|
|
9094
|
-
span2.textContent = "Word Bin
|
|
9204
|
+
span2.textContent = "Word Bin.\xA0";
|
|
9095
9205
|
t10 = space();
|
|
9096
9206
|
span3 = element("span");
|
|
9097
9207
|
t11 = text(
|
|
@@ -9140,7 +9250,7 @@
|
|
|
9140
9250
|
attr(span4, "class", "w-6 h-6 text-inherit flex items-center justify-center");
|
|
9141
9251
|
attr(button1, "aria-label", "Left");
|
|
9142
9252
|
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*/
|
|
9143
|
-
(ctx[
|
|
9253
|
+
(ctx[35](
|
|
9144
9254
|
/*totalRemainingWordBinItem*/
|
|
9145
9255
|
ctx[10]
|
|
9146
9256
|
) ? "hidden" : ""));
|
|
@@ -9149,7 +9259,7 @@
|
|
|
9149
9259
|
attr(span5, "class", "w-6 h-6 text-inherit flex items-center justify-center ml-[3px]");
|
|
9150
9260
|
attr(button2, "aria-label", "Right");
|
|
9151
9261
|
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*/
|
|
9152
|
-
(ctx[
|
|
9262
|
+
(ctx[35](
|
|
9153
9263
|
/*totalRemainingWordBinItem*/
|
|
9154
9264
|
ctx[10]
|
|
9155
9265
|
) ? "hidden" : ""));
|
|
@@ -9249,7 +9359,7 @@
|
|
|
9249
9359
|
append(div3, button2);
|
|
9250
9360
|
append(button2, span5);
|
|
9251
9361
|
mount_component(smallchevronright, span5, null);
|
|
9252
|
-
ctx[
|
|
9362
|
+
ctx[49](div4);
|
|
9253
9363
|
current = true;
|
|
9254
9364
|
if (!mounted) {
|
|
9255
9365
|
dispose = [
|
|
@@ -9257,7 +9367,7 @@
|
|
|
9257
9367
|
button0,
|
|
9258
9368
|
"keypress",
|
|
9259
9369
|
/*goToWordBin*/
|
|
9260
|
-
ctx[
|
|
9370
|
+
ctx[39]
|
|
9261
9371
|
),
|
|
9262
9372
|
listen(button1, "click", function() {
|
|
9263
9373
|
if (is_function(useNavigateItem(
|
|
@@ -9295,13 +9405,19 @@
|
|
|
9295
9405
|
div4,
|
|
9296
9406
|
"keydown",
|
|
9297
9407
|
/*keydown_handler_1*/
|
|
9298
|
-
ctx[
|
|
9408
|
+
ctx[47]
|
|
9299
9409
|
),
|
|
9300
9410
|
listen(
|
|
9301
9411
|
div4,
|
|
9302
9412
|
"focus",
|
|
9303
9413
|
/*resetTabCategory*/
|
|
9304
|
-
ctx[
|
|
9414
|
+
ctx[38]
|
|
9415
|
+
),
|
|
9416
|
+
listen(
|
|
9417
|
+
div4,
|
|
9418
|
+
"blur",
|
|
9419
|
+
/*blur_handler_1*/
|
|
9420
|
+
ctx[48]
|
|
9305
9421
|
)
|
|
9306
9422
|
];
|
|
9307
9423
|
mounted = true;
|
|
@@ -9329,7 +9445,7 @@
|
|
|
9329
9445
|
transition_in(if_block0, 1);
|
|
9330
9446
|
}
|
|
9331
9447
|
} else {
|
|
9332
|
-
if_block0 =
|
|
9448
|
+
if_block0 = create_if_block_6(ctx);
|
|
9333
9449
|
if_block0.c();
|
|
9334
9450
|
transition_in(if_block0, 1);
|
|
9335
9451
|
if_block0.m(t3.parentNode, t3);
|
|
@@ -9354,7 +9470,7 @@
|
|
|
9354
9470
|
transition_in(if_block1, 1);
|
|
9355
9471
|
}
|
|
9356
9472
|
} else {
|
|
9357
|
-
if_block1 =
|
|
9473
|
+
if_block1 = create_if_block_5(ctx);
|
|
9358
9474
|
if_block1.c();
|
|
9359
9475
|
transition_in(if_block1, 1);
|
|
9360
9476
|
if_block1.m(div0, null);
|
|
@@ -9375,12 +9491,12 @@
|
|
|
9375
9491
|
ctx[12]
|
|
9376
9492
|
);
|
|
9377
9493
|
}
|
|
9378
|
-
if (dirty[0] & /*isModalOpen, categoryTabIndex, checkContainerDragOver, categoryGroups, considerContainerId, isDraggingOver, checkContainerDroppedItem, dropContainerId, hasAddItemAnimation, checkSelectedSourceContainer, sourceSelectedContainerId, currentSelectedItemId, openCategoryContainer, tabCategory, categoryTitleHeight,
|
|
9379
|
-
|
|
9380
|
-
|
|
9494
|
+
if (dirty[0] & /*isModalOpen, categoryTabIndex, checkContainerDragOver, categoryGroups, considerContainerId, isDraggingOver, checkContainerDroppedItem, dropContainerId, hasAddItemAnimation, checkSelectedSourceContainer, sourceSelectedContainerId, currentSelectedItemId, openCategoryContainer, tabCategory, categoryTitleHeight, isFinished, scoringMetadata, isPreviewModeInteractive, enableAriaLive, currentAnswer, previewResultSr, selectedItemName, totalCategoryWords*/
|
|
9495
|
+
1019198451 | dirty[1] & /*checkifCategoryContainerOpen, getContainerTabSelected, resetTabCategory, handleItemAriaHidden, saveCategory, getTotalWords, addCategoryContainer, getTotalWordsLabel*/
|
|
9496
|
+
751) {
|
|
9381
9497
|
each_value = ensure_array_like(Object.values(
|
|
9382
9498
|
/*categoryGroups*/
|
|
9383
|
-
ctx[
|
|
9499
|
+
ctx[26]
|
|
9384
9500
|
));
|
|
9385
9501
|
let i;
|
|
9386
9502
|
for (i = 0; i < each_value.length; i += 1) {
|
|
@@ -9437,7 +9553,7 @@
|
|
|
9437
9553
|
);
|
|
9438
9554
|
if (!current || dirty[0] & /*totalRemainingWordBinItem*/
|
|
9439
9555
|
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*/
|
|
9440
|
-
(ctx[
|
|
9556
|
+
(ctx[35](
|
|
9441
9557
|
/*totalRemainingWordBinItem*/
|
|
9442
9558
|
ctx[10]
|
|
9443
9559
|
) ? "hidden" : ""))) {
|
|
@@ -9452,7 +9568,7 @@
|
|
|
9452
9568
|
if (dirty[0] & /*totalRemainingWordBinItem, currentSelectedItemId*/
|
|
9453
9569
|
1152)
|
|
9454
9570
|
promptcategorisedndcontainer_changes.containerClass = "bg-transparent p-4 pt-[55px] grow md:grow-0 md:pt-20.5 justify-center md:justify-normal\n " + /*isWordBInTotalZero*/
|
|
9455
|
-
(ctx[
|
|
9571
|
+
(ctx[35](
|
|
9456
9572
|
/*totalRemainingWordBinItem*/
|
|
9457
9573
|
ctx[10]
|
|
9458
9574
|
) && !/*currentSelectedItemId*/
|
|
@@ -9468,7 +9584,7 @@
|
|
|
9468
9584
|
promptcategorisedndcontainer.$set(promptcategorisedndcontainer_changes);
|
|
9469
9585
|
if (!current || dirty[0] & /*totalRemainingWordBinItem*/
|
|
9470
9586
|
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*/
|
|
9471
|
-
(ctx[
|
|
9587
|
+
(ctx[35](
|
|
9472
9588
|
/*totalRemainingWordBinItem*/
|
|
9473
9589
|
ctx[10]
|
|
9474
9590
|
) ? "hidden" : ""))) {
|
|
@@ -9586,7 +9702,7 @@
|
|
|
9586
9702
|
destroy_component(smallchevronleft);
|
|
9587
9703
|
destroy_component(promptcategorisedndcontainer);
|
|
9588
9704
|
destroy_component(smallchevronright);
|
|
9589
|
-
ctx[
|
|
9705
|
+
ctx[49](null);
|
|
9590
9706
|
mounted = false;
|
|
9591
9707
|
run_all(dispose);
|
|
9592
9708
|
}
|
|
@@ -9600,11 +9716,11 @@
|
|
|
9600
9716
|
props: {
|
|
9601
9717
|
rubric: (
|
|
9602
9718
|
/*rubric*/
|
|
9603
|
-
ctx[
|
|
9719
|
+
ctx[22].text
|
|
9604
9720
|
),
|
|
9605
9721
|
prompt: (
|
|
9606
9722
|
/*prompt*/
|
|
9607
|
-
ctx[
|
|
9723
|
+
ctx[24]
|
|
9608
9724
|
),
|
|
9609
9725
|
$$slots: { default: [create_default_slot4] },
|
|
9610
9726
|
$$scope: { ctx }
|
|
@@ -9619,14 +9735,14 @@
|
|
|
9619
9735
|
m(target, anchor) {
|
|
9620
9736
|
insert(target, div, anchor);
|
|
9621
9737
|
mount_component(promptbody, div, null);
|
|
9622
|
-
ctx[
|
|
9738
|
+
ctx[50](div);
|
|
9623
9739
|
current = true;
|
|
9624
9740
|
},
|
|
9625
9741
|
p(ctx2, dirty) {
|
|
9626
9742
|
const promptbody_changes = {};
|
|
9627
|
-
if (dirty[0] & /*isModalOpen, categoryTabIndex, dropContainerId, considerContainerId, isDraggingOver, hasAddItemAnimation, sourceSelectedContainerId, currentSelectedItemId, tabCategory, totalRemainingWordBinItem, currentWordBinIndex, currentAnswer, isFinished, isPreviewModeInteractive, totalCategoryItems, selectedItemName, openCategoryContainer, categoryTitleHeight, enableAriaLive, previewResultSr*/
|
|
9628
|
-
|
|
9629
|
-
|
|
9743
|
+
if (dirty[0] & /*isModalOpen, categoryTabIndex, dropContainerId, considerContainerId, isDraggingOver, hasAddItemAnimation, sourceSelectedContainerId, currentSelectedItemId, tabCategory, totalRemainingWordBinItem, currentWordBinIndex, currentAnswer, isFinished, isPreviewModeInteractive, totalCategoryItems, selectedItemName, openCategoryContainer, categoryTitleHeight, enableAriaLive, previewResultSr, totalCategoryWords*/
|
|
9744
|
+
4194299 | dirty[2] & /*$$scope*/
|
|
9745
|
+
1) {
|
|
9630
9746
|
promptbody_changes.$$scope = { dirty, ctx: ctx2 };
|
|
9631
9747
|
}
|
|
9632
9748
|
promptbody.$set(promptbody_changes);
|
|
@@ -9646,7 +9762,7 @@
|
|
|
9646
9762
|
detach(div);
|
|
9647
9763
|
}
|
|
9648
9764
|
destroy_component(promptbody);
|
|
9649
|
-
ctx[
|
|
9765
|
+
ctx[50](null);
|
|
9650
9766
|
}
|
|
9651
9767
|
};
|
|
9652
9768
|
}
|
|
@@ -9674,13 +9790,13 @@
|
|
|
9674
9790
|
let selectedItemName = "";
|
|
9675
9791
|
let previewResultSr = "";
|
|
9676
9792
|
let enableAriaLive = true;
|
|
9793
|
+
const totalCategoryWords = [];
|
|
9677
9794
|
const { rubric, interaction, metadata, scoringMetadata } = sessionData;
|
|
9678
9795
|
const { prompt, category_groups: interactionCategoryGroups, category_items: interactionCategoryItems } = interaction;
|
|
9679
9796
|
const categoryItems = useFilterUniqueObject(interactionCategoryItems);
|
|
9680
9797
|
const categoryGroups = useFilterUniqueObject(interactionCategoryGroups);
|
|
9681
9798
|
const tabCategory = [];
|
|
9682
|
-
categoryGroups.map((group) => $$invalidate(
|
|
9683
|
-
const totalCagories = categoryGroups.length;
|
|
9799
|
+
categoryGroups.map((group) => $$invalidate(20, tabCategory[group.id] = false, tabCategory));
|
|
9684
9800
|
totalCategoryItems = totalRemainingWordBinItem = Object.keys(categoryItems).length;
|
|
9685
9801
|
let wordBinItems = categoryItems.map((item) => item.id);
|
|
9686
9802
|
let initialCategoryAnswer = [
|
|
@@ -9691,7 +9807,7 @@
|
|
|
9691
9807
|
];
|
|
9692
9808
|
let categoryTitleHeight = [];
|
|
9693
9809
|
categoryGroups.map((category) => {
|
|
9694
|
-
$$invalidate(
|
|
9810
|
+
$$invalidate(21, categoryTitleHeight[category.id] = "", categoryTitleHeight);
|
|
9695
9811
|
});
|
|
9696
9812
|
if (metadata) {
|
|
9697
9813
|
const { events } = metadata.interactions;
|
|
@@ -9782,8 +9898,19 @@
|
|
|
9782
9898
|
$$invalidate(16, selectedItemName = storeSelectedItemName);
|
|
9783
9899
|
$$invalidate(17, previewResultSr = storepreviewResultSr);
|
|
9784
9900
|
$$invalidate(15, categoryTabIndex = storeSelectedItemId.length ? -1 : 0);
|
|
9785
|
-
|
|
9786
|
-
|
|
9901
|
+
currentAnswer.map((answer) => {
|
|
9902
|
+
const { categoryId, itemId } = answer;
|
|
9903
|
+
let totalWordCount = itemId.length;
|
|
9904
|
+
if (isFinished) {
|
|
9905
|
+
const items = itemId.filter((item) => {
|
|
9906
|
+
const itemType = item.split(EAT_DASH)[1];
|
|
9907
|
+
return itemType !== ANSWER_MISSED;
|
|
9908
|
+
});
|
|
9909
|
+
totalWordCount = items.length;
|
|
9910
|
+
}
|
|
9911
|
+
$$invalidate(19, totalCategoryWords[categoryId] = totalWordCount, totalCategoryWords);
|
|
9912
|
+
});
|
|
9913
|
+
$$invalidate(10, totalRemainingWordBinItem = totalCategoryWords[CONTAINER_WORD_BIN_ID]);
|
|
9787
9914
|
if (lastSelectedTabContainer) {
|
|
9788
9915
|
setTimeout(
|
|
9789
9916
|
() => {
|
|
@@ -9834,7 +9961,7 @@
|
|
|
9834
9961
|
};
|
|
9835
9962
|
const getTotalWords = (categoryId, currentAnswerData) => {
|
|
9836
9963
|
let totalWords = 0;
|
|
9837
|
-
const category = currentAnswerData
|
|
9964
|
+
const category = currentAnswerData?.filter((answer) => answer.categoryId === categoryId)[0];
|
|
9838
9965
|
if (category) {
|
|
9839
9966
|
const categoryItems2 = category.itemId;
|
|
9840
9967
|
totalWords = categoryItems2.length;
|
|
@@ -9846,6 +9973,10 @@
|
|
|
9846
9973
|
totalWords = items.length;
|
|
9847
9974
|
}
|
|
9848
9975
|
}
|
|
9976
|
+
return getTotalWordsLabel(totalWords);
|
|
9977
|
+
};
|
|
9978
|
+
const getTotalWordsLabel = (total) => {
|
|
9979
|
+
const totalWords = total || 0;
|
|
9849
9980
|
return `${totalWords} ${totalWords === 1 ? "word" : "words"}`;
|
|
9850
9981
|
};
|
|
9851
9982
|
const checkifCategoryContainerOpen = (categoryId, openCategoryContainer2) => {
|
|
@@ -9892,28 +10023,37 @@
|
|
|
9892
10023
|
categoriseSettings.set({
|
|
9893
10024
|
...get_store_value(categoriseSettings),
|
|
9894
10025
|
currentTabContainer: "",
|
|
9895
|
-
lastSelectedTabContainer: ""
|
|
10026
|
+
lastSelectedTabContainer: "",
|
|
10027
|
+
isItemsAriaHidden: true
|
|
9896
10028
|
});
|
|
9897
10029
|
};
|
|
9898
10030
|
const goToWordBin = () => {
|
|
9899
10031
|
tabCategory[CONTAINER_WORD_BIN_ID].focus();
|
|
9900
10032
|
};
|
|
10033
|
+
const handleItemAriaHidden = (type) => {
|
|
10034
|
+
categoriseSettings.set({
|
|
10035
|
+
...get_store_value(categoriseSettings),
|
|
10036
|
+
isItemsAriaHidden: type
|
|
10037
|
+
});
|
|
10038
|
+
};
|
|
9901
10039
|
function div0_elementresize_handler(category) {
|
|
9902
10040
|
categoryTitleHeight[category.id] = this.clientHeight;
|
|
9903
|
-
$$invalidate(
|
|
10041
|
+
$$invalidate(21, categoryTitleHeight);
|
|
9904
10042
|
}
|
|
9905
10043
|
const keydown_handler = (category, { key }) => getContainerTabSelected(key, category.id);
|
|
10044
|
+
const blur_handler = () => handleItemAriaHidden(false);
|
|
9906
10045
|
function div1_binding($$value, category) {
|
|
9907
10046
|
binding_callbacks[$$value ? "unshift" : "push"](() => {
|
|
9908
10047
|
tabCategory[category.id] = $$value;
|
|
9909
|
-
$$invalidate(
|
|
10048
|
+
$$invalidate(20, tabCategory);
|
|
9910
10049
|
});
|
|
9911
10050
|
}
|
|
9912
10051
|
const keydown_handler_1 = ({ key }) => getContainerTabSelected(key, CONTAINER_WORD_BIN_ID);
|
|
10052
|
+
const blur_handler_1 = () => handleItemAriaHidden(false);
|
|
9913
10053
|
function div4_binding($$value) {
|
|
9914
10054
|
binding_callbacks[$$value ? "unshift" : "push"](() => {
|
|
9915
10055
|
tabCategory[CONTAINER_WORD_BIN_ID] = $$value;
|
|
9916
|
-
$$invalidate(
|
|
10056
|
+
$$invalidate(20, tabCategory);
|
|
9917
10057
|
});
|
|
9918
10058
|
}
|
|
9919
10059
|
function div_binding($$value) {
|
|
@@ -9924,11 +10064,11 @@
|
|
|
9924
10064
|
}
|
|
9925
10065
|
$$self.$$set = ($$props2) => {
|
|
9926
10066
|
if ("sessionData" in $$props2)
|
|
9927
|
-
$$invalidate(
|
|
10067
|
+
$$invalidate(41, sessionData = $$props2.sessionData);
|
|
9928
10068
|
if ("isFinished" in $$props2)
|
|
9929
10069
|
$$invalidate(0, isFinished = $$props2.isFinished);
|
|
9930
10070
|
if ("isPreviewMode" in $$props2)
|
|
9931
|
-
$$invalidate(
|
|
10071
|
+
$$invalidate(42, isPreviewMode = $$props2.isPreviewMode);
|
|
9932
10072
|
if ("isPreviewModeInteractive" in $$props2)
|
|
9933
10073
|
$$invalidate(1, isPreviewModeInteractive = $$props2.isPreviewModeInteractive);
|
|
9934
10074
|
};
|
|
@@ -9952,6 +10092,7 @@
|
|
|
9952
10092
|
selectedItemName,
|
|
9953
10093
|
previewResultSr,
|
|
9954
10094
|
enableAriaLive,
|
|
10095
|
+
totalCategoryWords,
|
|
9955
10096
|
tabCategory,
|
|
9956
10097
|
categoryTitleHeight,
|
|
9957
10098
|
rubric,
|
|
@@ -9959,12 +10100,12 @@
|
|
|
9959
10100
|
prompt,
|
|
9960
10101
|
categoryItems,
|
|
9961
10102
|
categoryGroups,
|
|
9962
|
-
totalCagories,
|
|
9963
10103
|
checkContainerDragOver,
|
|
9964
10104
|
checkContainerDroppedItem,
|
|
9965
10105
|
checkSelectedSourceContainer,
|
|
9966
10106
|
openResetModal,
|
|
9967
10107
|
getTotalWords,
|
|
10108
|
+
getTotalWordsLabel,
|
|
9968
10109
|
checkifCategoryContainerOpen,
|
|
9969
10110
|
addCategoryContainer,
|
|
9970
10111
|
isWordBInTotalZero,
|
|
@@ -9972,12 +10113,15 @@
|
|
|
9972
10113
|
getContainerTabSelected,
|
|
9973
10114
|
resetTabCategory,
|
|
9974
10115
|
goToWordBin,
|
|
10116
|
+
handleItemAriaHidden,
|
|
9975
10117
|
sessionData,
|
|
9976
10118
|
isPreviewMode,
|
|
9977
10119
|
div0_elementresize_handler,
|
|
9978
10120
|
keydown_handler,
|
|
10121
|
+
blur_handler,
|
|
9979
10122
|
div1_binding,
|
|
9980
10123
|
keydown_handler_1,
|
|
10124
|
+
blur_handler_1,
|
|
9981
10125
|
div4_binding,
|
|
9982
10126
|
div_binding
|
|
9983
10127
|
];
|
|
@@ -9992,17 +10136,17 @@
|
|
|
9992
10136
|
create_fragment21,
|
|
9993
10137
|
safe_not_equal,
|
|
9994
10138
|
{
|
|
9995
|
-
sessionData:
|
|
10139
|
+
sessionData: 41,
|
|
9996
10140
|
isFinished: 0,
|
|
9997
|
-
isPreviewMode:
|
|
10141
|
+
isPreviewMode: 42,
|
|
9998
10142
|
isPreviewModeInteractive: 1
|
|
9999
10143
|
},
|
|
10000
10144
|
null,
|
|
10001
|
-
[-1, -1]
|
|
10145
|
+
[-1, -1, -1]
|
|
10002
10146
|
);
|
|
10003
10147
|
}
|
|
10004
10148
|
get sessionData() {
|
|
10005
|
-
return this.$$.ctx[
|
|
10149
|
+
return this.$$.ctx[41];
|
|
10006
10150
|
}
|
|
10007
10151
|
set sessionData(sessionData) {
|
|
10008
10152
|
this.$$set({ sessionData });
|
|
@@ -10016,7 +10160,7 @@
|
|
|
10016
10160
|
flush();
|
|
10017
10161
|
}
|
|
10018
10162
|
get isPreviewMode() {
|
|
10019
|
-
return this.$$.ctx[
|
|
10163
|
+
return this.$$.ctx[42];
|
|
10020
10164
|
}
|
|
10021
10165
|
set isPreviewMode(isPreviewMode) {
|
|
10022
10166
|
this.$$set({ isPreviewMode });
|