eat-js-sdk 0.0.46 → 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 +524 -375
- 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
|
|
@@ -5667,23 +5668,23 @@
|
|
|
5667
5668
|
/*wordButtonId*/
|
|
5668
5669
|
ctx[3]
|
|
5669
5670
|
);
|
|
5670
|
-
attr(
|
|
5671
|
-
button,
|
|
5672
|
-
"tabindex",
|
|
5673
|
-
/*tabIndex*/
|
|
5674
|
-
ctx[5]
|
|
5675
|
-
);
|
|
5676
5671
|
attr(button, "aria-label", button_aria_label_value = /*resultType*/
|
|
5677
|
-
|
|
5678
|
-
ctx[
|
|
5679
|
-
ctx[10] ? `
|
|
5680
|
-
ctx[0]} (
|
|
5681
|
-
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]}` : (
|
|
5682
5676
|
/*resultType*/
|
|
5683
|
-
ctx[1] ===
|
|
5684
|
-
ctx[
|
|
5685
|
-
ctx[10] ?
|
|
5686
|
-
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
|
+
)
|
|
5687
5688
|
));
|
|
5688
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*/
|
|
5689
5690
|
ctx[2] + " " + /*isClonedItem*/
|
|
@@ -5719,7 +5720,7 @@
|
|
|
5719
5720
|
append(span2, t3);
|
|
5720
5721
|
if (if_block1)
|
|
5721
5722
|
if_block1.m(span2, null);
|
|
5722
|
-
ctx[
|
|
5723
|
+
ctx[14](button);
|
|
5723
5724
|
current = true;
|
|
5724
5725
|
if (!mounted) {
|
|
5725
5726
|
dispose = [
|
|
@@ -5834,27 +5835,24 @@
|
|
|
5834
5835
|
ctx[3]
|
|
5835
5836
|
);
|
|
5836
5837
|
}
|
|
5837
|
-
if (!current || dirty & /*
|
|
5838
|
-
|
|
5839
|
-
|
|
5840
|
-
|
|
5841
|
-
|
|
5842
|
-
|
|
5843
|
-
ctx[5]
|
|
5844
|
-
);
|
|
5845
|
-
}
|
|
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]})` : (
|
|
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]}` : (
|
|
5853
5844
|
/*resultType*/
|
|
5854
|
-
ctx[1] ===
|
|
5855
|
-
ctx[
|
|
5856
|
-
ctx[10] ?
|
|
5857
|
-
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
|
+
)
|
|
5858
5856
|
))) {
|
|
5859
5857
|
attr(button, "aria-label", button_aria_label_value);
|
|
5860
5858
|
}
|
|
@@ -5901,7 +5899,7 @@
|
|
|
5901
5899
|
if_blocks[current_block_type_index].d();
|
|
5902
5900
|
if (if_block1)
|
|
5903
5901
|
if_block1.d();
|
|
5904
|
-
ctx[
|
|
5902
|
+
ctx[14](null);
|
|
5905
5903
|
mounted = false;
|
|
5906
5904
|
run_all(dispose);
|
|
5907
5905
|
}
|
|
@@ -5914,7 +5912,6 @@
|
|
|
5914
5912
|
let { wordButtonId = "" } = $$props;
|
|
5915
5913
|
let { isClonedItem = false } = $$props;
|
|
5916
5914
|
let { containerId = "" } = $$props;
|
|
5917
|
-
let { tabIndex = -1 } = $$props;
|
|
5918
5915
|
let { wordFocus = false } = $$props;
|
|
5919
5916
|
let { disabledClick = false } = $$props;
|
|
5920
5917
|
let considerCloneItemId = "";
|
|
@@ -5991,17 +5988,15 @@
|
|
|
5991
5988
|
if ("isClonedItem" in $$props2)
|
|
5992
5989
|
$$invalidate(4, isClonedItem = $$props2.isClonedItem);
|
|
5993
5990
|
if ("containerId" in $$props2)
|
|
5994
|
-
$$invalidate(
|
|
5995
|
-
if ("tabIndex" in $$props2)
|
|
5996
|
-
$$invalidate(5, tabIndex = $$props2.tabIndex);
|
|
5991
|
+
$$invalidate(5, containerId = $$props2.containerId);
|
|
5997
5992
|
if ("wordFocus" in $$props2)
|
|
5998
|
-
$$invalidate(
|
|
5993
|
+
$$invalidate(13, wordFocus = $$props2.wordFocus);
|
|
5999
5994
|
if ("disabledClick" in $$props2)
|
|
6000
5995
|
$$invalidate(6, disabledClick = $$props2.disabledClick);
|
|
6001
5996
|
};
|
|
6002
5997
|
$$self.$$.update = () => {
|
|
6003
5998
|
if ($$self.$$.dirty & /*wordFocus, wordButton*/
|
|
6004
|
-
|
|
5999
|
+
8320) {
|
|
6005
6000
|
$:
|
|
6006
6001
|
if (wordFocus) {
|
|
6007
6002
|
setTimeout(
|
|
@@ -6019,7 +6014,7 @@
|
|
|
6019
6014
|
otherClass,
|
|
6020
6015
|
wordButtonId,
|
|
6021
6016
|
isClonedItem,
|
|
6022
|
-
|
|
6017
|
+
containerId,
|
|
6023
6018
|
disabledClick,
|
|
6024
6019
|
wordButton,
|
|
6025
6020
|
considerCloneItemId,
|
|
@@ -6027,7 +6022,6 @@
|
|
|
6027
6022
|
isWordItemSelected,
|
|
6028
6023
|
selectItem,
|
|
6029
6024
|
removeContainerTabSelected,
|
|
6030
|
-
containerId,
|
|
6031
6025
|
wordFocus,
|
|
6032
6026
|
button_binding
|
|
6033
6027
|
];
|
|
@@ -6041,9 +6035,8 @@
|
|
|
6041
6035
|
otherClass: 2,
|
|
6042
6036
|
wordButtonId: 3,
|
|
6043
6037
|
isClonedItem: 4,
|
|
6044
|
-
containerId:
|
|
6045
|
-
|
|
6046
|
-
wordFocus: 14,
|
|
6038
|
+
containerId: 5,
|
|
6039
|
+
wordFocus: 13,
|
|
6047
6040
|
disabledClick: 6
|
|
6048
6041
|
});
|
|
6049
6042
|
}
|
|
@@ -6083,21 +6076,14 @@
|
|
|
6083
6076
|
flush();
|
|
6084
6077
|
}
|
|
6085
6078
|
get containerId() {
|
|
6086
|
-
return this.$$.ctx[
|
|
6079
|
+
return this.$$.ctx[5];
|
|
6087
6080
|
}
|
|
6088
6081
|
set containerId(containerId) {
|
|
6089
6082
|
this.$$set({ containerId });
|
|
6090
6083
|
flush();
|
|
6091
6084
|
}
|
|
6092
|
-
get tabIndex() {
|
|
6093
|
-
return this.$$.ctx[5];
|
|
6094
|
-
}
|
|
6095
|
-
set tabIndex(tabIndex) {
|
|
6096
|
-
this.$$set({ tabIndex });
|
|
6097
|
-
flush();
|
|
6098
|
-
}
|
|
6099
6085
|
get wordFocus() {
|
|
6100
|
-
return this.$$.ctx[
|
|
6086
|
+
return this.$$.ctx[13];
|
|
6101
6087
|
}
|
|
6102
6088
|
set wordFocus(wordFocus) {
|
|
6103
6089
|
this.$$set({ wordFocus });
|
|
@@ -6111,7 +6097,7 @@
|
|
|
6111
6097
|
flush();
|
|
6112
6098
|
}
|
|
6113
6099
|
};
|
|
6114
|
-
customElements.define("prompt-categorise-word-button", create_custom_element(PromptCategoriseWordButton, { "word": {}, "resultType": {}, "otherClass": {}, "wordButtonId": {}, "isClonedItem": { "type": "Boolean" }, "containerId": {}, "
|
|
6100
|
+
customElements.define("prompt-categorise-word-button", create_custom_element(PromptCategoriseWordButton, { "word": {}, "resultType": {}, "otherClass": {}, "wordButtonId": {}, "isClonedItem": { "type": "Boolean" }, "containerId": {}, "wordFocus": { "type": "Boolean" }, "disabledClick": { "type": "Boolean" } }, [], [], true));
|
|
6115
6101
|
var PromptCategoriseWordButton_default = PromptCategoriseWordButton;
|
|
6116
6102
|
|
|
6117
6103
|
// src/lib/stores/modal.ts
|
|
@@ -6153,7 +6139,7 @@
|
|
|
6153
6139
|
// src/lib/components/prompt/categorise/PromptCategoriseDndContainer.svelte
|
|
6154
6140
|
function get_each_context2(ctx, list, i) {
|
|
6155
6141
|
const child_ctx = ctx.slice();
|
|
6156
|
-
child_ctx[
|
|
6142
|
+
child_ctx[34] = list[i];
|
|
6157
6143
|
return child_ctx;
|
|
6158
6144
|
}
|
|
6159
6145
|
function create_if_block_24(ctx) {
|
|
@@ -6171,7 +6157,7 @@
|
|
|
6171
6157
|
ctx[6]
|
|
6172
6158
|
);
|
|
6173
6159
|
attr(button, "class", button_class_value = "focus-ring absolute inset-0 bg-transparent rounded-lg focus-visible:border " + /*isContainerWordBin*/
|
|
6174
|
-
(ctx[
|
|
6160
|
+
(ctx[19] ? "focus-visible:border-gray-400" : "focus-visible:border-gray-800"));
|
|
6175
6161
|
},
|
|
6176
6162
|
m(target, anchor) {
|
|
6177
6163
|
insert(target, button, anchor);
|
|
@@ -6180,7 +6166,7 @@
|
|
|
6180
6166
|
button,
|
|
6181
6167
|
"click",
|
|
6182
6168
|
/*addAnswerItem*/
|
|
6183
|
-
ctx[
|
|
6169
|
+
ctx[22]
|
|
6184
6170
|
);
|
|
6185
6171
|
mounted = true;
|
|
6186
6172
|
}
|
|
@@ -6225,13 +6211,13 @@
|
|
|
6225
6211
|
div,
|
|
6226
6212
|
"click",
|
|
6227
6213
|
/*addAnswerItem*/
|
|
6228
|
-
ctx[
|
|
6214
|
+
ctx[22]
|
|
6229
6215
|
),
|
|
6230
6216
|
listen(
|
|
6231
6217
|
div,
|
|
6232
6218
|
"keypress",
|
|
6233
6219
|
/*addAnswerItem*/
|
|
6234
|
-
ctx[
|
|
6220
|
+
ctx[22]
|
|
6235
6221
|
)
|
|
6236
6222
|
];
|
|
6237
6223
|
mounted = true;
|
|
@@ -6248,30 +6234,33 @@
|
|
|
6248
6234
|
};
|
|
6249
6235
|
}
|
|
6250
6236
|
function create_if_block6(ctx) {
|
|
6251
|
-
let
|
|
6237
|
+
let button;
|
|
6252
6238
|
let t2;
|
|
6253
|
-
let
|
|
6239
|
+
let button_class_value;
|
|
6240
|
+
let button_disabled_value;
|
|
6254
6241
|
return {
|
|
6255
6242
|
c() {
|
|
6256
|
-
|
|
6243
|
+
button = element("button");
|
|
6257
6244
|
t2 = text("Missing answers:");
|
|
6258
|
-
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*/
|
|
6259
6247
|
ctx[4] ? "hidden md:missing-answer-label" : "missing-answer-label"));
|
|
6248
|
+
button.disabled = button_disabled_value = true;
|
|
6260
6249
|
},
|
|
6261
6250
|
m(target, anchor) {
|
|
6262
|
-
insert(target,
|
|
6263
|
-
append(
|
|
6251
|
+
insert(target, button, anchor);
|
|
6252
|
+
append(button, t2);
|
|
6264
6253
|
},
|
|
6265
6254
|
p(ctx2, dirty) {
|
|
6266
6255
|
if (dirty[0] & /*showButton*/
|
|
6267
|
-
16 &&
|
|
6256
|
+
16 && button_class_value !== (button_class_value = "text-base text-charcoal font-semibold w-full mt-1 mb-2 text-left " + (!/*showButton*/
|
|
6268
6257
|
ctx2[4] ? "hidden md:missing-answer-label" : "missing-answer-label"))) {
|
|
6269
|
-
attr(
|
|
6258
|
+
attr(button, "class", button_class_value);
|
|
6270
6259
|
}
|
|
6271
6260
|
},
|
|
6272
6261
|
d(detaching) {
|
|
6273
6262
|
if (detaching) {
|
|
6274
|
-
detach(
|
|
6263
|
+
detach(button);
|
|
6275
6264
|
}
|
|
6276
6265
|
}
|
|
6277
6266
|
};
|
|
@@ -6283,48 +6272,42 @@
|
|
|
6283
6272
|
let current;
|
|
6284
6273
|
let if_block = (
|
|
6285
6274
|
/*item*/
|
|
6286
|
-
ctx[
|
|
6275
|
+
ctx[34].type === ANSWER_MISSED && create_if_block6(ctx)
|
|
6287
6276
|
);
|
|
6288
6277
|
promptcategorisewordbutton = new PromptCategoriseWordButton_default({
|
|
6289
6278
|
props: {
|
|
6290
6279
|
otherClass: "mr-2 mb-2 last:mr-0 " + /*item*/
|
|
6291
|
-
(ctx[
|
|
6280
|
+
(ctx[34].id === /*considerItemId*/
|
|
6292
6281
|
ctx[8] ? "!bg-violet-150" : "") + "\n " + (!/*showButton*/
|
|
6293
6282
|
ctx[4] ? "hidden md:flex" : "") + "\n " + /*items*/
|
|
6294
|
-
(ctx[
|
|
6283
|
+
(ctx[16][
|
|
6295
6284
|
/*currentWordBinIndex*/
|
|
6296
|
-
ctx[
|
|
6285
|
+
ctx[12]
|
|
6297
6286
|
]?.id !== /*item*/
|
|
6298
|
-
ctx[
|
|
6299
|
-
ctx[
|
|
6287
|
+
ctx[34].id && /*isContainerWordBin*/
|
|
6288
|
+
ctx[19] ? "hidden md:flex" : ""),
|
|
6300
6289
|
word: (
|
|
6301
6290
|
/*item*/
|
|
6302
|
-
ctx[
|
|
6291
|
+
ctx[34].text
|
|
6303
6292
|
),
|
|
6304
6293
|
wordButtonId: (
|
|
6305
6294
|
/*item*/
|
|
6306
|
-
ctx[
|
|
6295
|
+
ctx[34].id
|
|
6307
6296
|
),
|
|
6308
6297
|
isClonedItem: (
|
|
6309
6298
|
/*item*/
|
|
6310
|
-
ctx[
|
|
6299
|
+
ctx[34].isClonedItem
|
|
6311
6300
|
),
|
|
6312
6301
|
containerId: (
|
|
6313
6302
|
/*containerId*/
|
|
6314
6303
|
ctx[2]
|
|
6315
6304
|
),
|
|
6316
|
-
tabIndex: (
|
|
6317
|
-
/*currentTabContainer*/
|
|
6318
|
-
ctx[13] !== /*containerId*/
|
|
6319
|
-
ctx[2] || /*isModalOpen*/
|
|
6320
|
-
ctx[14] ? -1 : 0
|
|
6321
|
-
),
|
|
6322
6305
|
wordFocus: (
|
|
6323
6306
|
/*currentTabContainer*/
|
|
6324
|
-
ctx[
|
|
6307
|
+
ctx[14] === /*containerId*/
|
|
6325
6308
|
ctx[2] && /*item*/
|
|
6326
|
-
ctx[
|
|
6327
|
-
ctx[
|
|
6309
|
+
ctx[34].id === /*items*/
|
|
6310
|
+
ctx[16][0].id
|
|
6328
6311
|
),
|
|
6329
6312
|
disabledClick: (
|
|
6330
6313
|
/*isFinished*/
|
|
@@ -6332,7 +6315,7 @@
|
|
|
6332
6315
|
),
|
|
6333
6316
|
resultType: (
|
|
6334
6317
|
/*item*/
|
|
6335
|
-
ctx[
|
|
6318
|
+
ctx[34].type
|
|
6336
6319
|
)
|
|
6337
6320
|
}
|
|
6338
6321
|
});
|
|
@@ -6359,7 +6342,7 @@
|
|
|
6359
6342
|
ctx = new_ctx;
|
|
6360
6343
|
if (
|
|
6361
6344
|
/*item*/
|
|
6362
|
-
ctx[
|
|
6345
|
+
ctx[34].type === ANSWER_MISSED
|
|
6363
6346
|
) {
|
|
6364
6347
|
if (if_block) {
|
|
6365
6348
|
if_block.p(ctx, dirty);
|
|
@@ -6374,54 +6357,48 @@
|
|
|
6374
6357
|
}
|
|
6375
6358
|
const promptcategorisewordbutton_changes = {};
|
|
6376
6359
|
if (dirty[0] & /*items, considerItemId, showButton, currentWordBinIndex*/
|
|
6377
|
-
|
|
6360
|
+
69904)
|
|
6378
6361
|
promptcategorisewordbutton_changes.otherClass = "mr-2 mb-2 last:mr-0 " + /*item*/
|
|
6379
|
-
(ctx[
|
|
6362
|
+
(ctx[34].id === /*considerItemId*/
|
|
6380
6363
|
ctx[8] ? "!bg-violet-150" : "") + "\n " + (!/*showButton*/
|
|
6381
6364
|
ctx[4] ? "hidden md:flex" : "") + "\n " + /*items*/
|
|
6382
|
-
(ctx[
|
|
6365
|
+
(ctx[16][
|
|
6383
6366
|
/*currentWordBinIndex*/
|
|
6384
|
-
ctx[
|
|
6367
|
+
ctx[12]
|
|
6385
6368
|
]?.id !== /*item*/
|
|
6386
|
-
ctx[
|
|
6387
|
-
ctx[
|
|
6369
|
+
ctx[34].id && /*isContainerWordBin*/
|
|
6370
|
+
ctx[19] ? "hidden md:flex" : "");
|
|
6388
6371
|
if (dirty[0] & /*items*/
|
|
6389
|
-
|
|
6372
|
+
65536)
|
|
6390
6373
|
promptcategorisewordbutton_changes.word = /*item*/
|
|
6391
|
-
ctx[
|
|
6374
|
+
ctx[34].text;
|
|
6392
6375
|
if (dirty[0] & /*items*/
|
|
6393
|
-
|
|
6376
|
+
65536)
|
|
6394
6377
|
promptcategorisewordbutton_changes.wordButtonId = /*item*/
|
|
6395
|
-
ctx[
|
|
6378
|
+
ctx[34].id;
|
|
6396
6379
|
if (dirty[0] & /*items*/
|
|
6397
|
-
|
|
6380
|
+
65536)
|
|
6398
6381
|
promptcategorisewordbutton_changes.isClonedItem = /*item*/
|
|
6399
|
-
ctx[
|
|
6382
|
+
ctx[34].isClonedItem;
|
|
6400
6383
|
if (dirty[0] & /*containerId*/
|
|
6401
6384
|
4)
|
|
6402
6385
|
promptcategorisewordbutton_changes.containerId = /*containerId*/
|
|
6403
6386
|
ctx[2];
|
|
6404
|
-
if (dirty[0] & /*currentTabContainer, containerId, isModalOpen*/
|
|
6405
|
-
24580)
|
|
6406
|
-
promptcategorisewordbutton_changes.tabIndex = /*currentTabContainer*/
|
|
6407
|
-
ctx[13] !== /*containerId*/
|
|
6408
|
-
ctx[2] || /*isModalOpen*/
|
|
6409
|
-
ctx[14] ? -1 : 0;
|
|
6410
6387
|
if (dirty[0] & /*currentTabContainer, containerId, items*/
|
|
6411
|
-
|
|
6388
|
+
81924)
|
|
6412
6389
|
promptcategorisewordbutton_changes.wordFocus = /*currentTabContainer*/
|
|
6413
|
-
ctx[
|
|
6390
|
+
ctx[14] === /*containerId*/
|
|
6414
6391
|
ctx[2] && /*item*/
|
|
6415
|
-
ctx[
|
|
6416
|
-
ctx[
|
|
6392
|
+
ctx[34].id === /*items*/
|
|
6393
|
+
ctx[16][0].id;
|
|
6417
6394
|
if (dirty[0] & /*isFinished*/
|
|
6418
6395
|
128)
|
|
6419
6396
|
promptcategorisewordbutton_changes.disabledClick = /*isFinished*/
|
|
6420
6397
|
ctx[7];
|
|
6421
6398
|
if (dirty[0] & /*items*/
|
|
6422
|
-
|
|
6399
|
+
65536)
|
|
6423
6400
|
promptcategorisewordbutton_changes.resultType = /*item*/
|
|
6424
|
-
ctx[
|
|
6401
|
+
ctx[34].type;
|
|
6425
6402
|
promptcategorisewordbutton.$set(promptcategorisewordbutton_changes);
|
|
6426
6403
|
},
|
|
6427
6404
|
i(local) {
|
|
@@ -6459,23 +6436,23 @@
|
|
|
6459
6436
|
let dispose;
|
|
6460
6437
|
let if_block0 = (
|
|
6461
6438
|
/*dragDisabled*/
|
|
6462
|
-
ctx[
|
|
6463
|
-
ctx[
|
|
6439
|
+
ctx[10] && /*sourceSelectedContainerId*/
|
|
6440
|
+
ctx[11] !== /*containerId*/
|
|
6464
6441
|
ctx[2] && !/*isFinished*/
|
|
6465
6442
|
ctx[7] && create_if_block_24(ctx)
|
|
6466
6443
|
);
|
|
6467
6444
|
let if_block1 = (
|
|
6468
6445
|
/*totalRemainingWordBinItem*/
|
|
6469
|
-
ctx[
|
|
6470
|
-
ctx[
|
|
6446
|
+
ctx[13] <= 0 && /*isContainerWordBin*/
|
|
6447
|
+
ctx[19] && create_if_block_16(ctx)
|
|
6471
6448
|
);
|
|
6472
6449
|
let each_value = ensure_array_like(Object.values(
|
|
6473
6450
|
/*items*/
|
|
6474
|
-
ctx[
|
|
6451
|
+
ctx[16]
|
|
6475
6452
|
));
|
|
6476
6453
|
const get_key = (ctx2) => (
|
|
6477
6454
|
/*item*/
|
|
6478
|
-
ctx2[
|
|
6455
|
+
ctx2[34].id
|
|
6479
6456
|
);
|
|
6480
6457
|
for (let i = 0; i < each_value.length; i += 1) {
|
|
6481
6458
|
let child_ctx = get_each_context2(ctx, each_value, i);
|
|
@@ -6497,6 +6474,12 @@
|
|
|
6497
6474
|
attr(section, "role", "group");
|
|
6498
6475
|
attr(section, "class", section_class_value = "flex flex-wrap " + /*containerClass*/
|
|
6499
6476
|
ctx[0] + " category-content");
|
|
6477
|
+
attr(
|
|
6478
|
+
section,
|
|
6479
|
+
"aria-hidden",
|
|
6480
|
+
/*isItemsAriaHidden*/
|
|
6481
|
+
ctx[17]
|
|
6482
|
+
);
|
|
6500
6483
|
attr(section, "aria-dropeffect", "move");
|
|
6501
6484
|
attr(
|
|
6502
6485
|
section,
|
|
@@ -6505,7 +6488,7 @@
|
|
|
6505
6488
|
ctx[2]
|
|
6506
6489
|
);
|
|
6507
6490
|
attr(section, "style", section_style_value = !/*isContainerWordBin*/
|
|
6508
|
-
ctx[
|
|
6491
|
+
ctx[19] ? `padding-top: ${/*paddingTop*/
|
|
6509
6492
|
ctx[5]}px;` : "");
|
|
6510
6493
|
},
|
|
6511
6494
|
m(target, anchor) {
|
|
@@ -6527,7 +6510,7 @@
|
|
|
6527
6510
|
action_destroyer(dndzone_action = dndzone$2.call(null, section, {
|
|
6528
6511
|
items: (
|
|
6529
6512
|
/*items*/
|
|
6530
|
-
ctx[
|
|
6513
|
+
ctx[16]
|
|
6531
6514
|
),
|
|
6532
6515
|
flipDurationMs: (
|
|
6533
6516
|
/*flipDurationMs*/
|
|
@@ -6539,28 +6522,34 @@
|
|
|
6539
6522
|
),
|
|
6540
6523
|
dropTargetClasses: (
|
|
6541
6524
|
/*dropTargetClasses*/
|
|
6542
|
-
ctx[
|
|
6525
|
+
ctx[18]
|
|
6543
6526
|
),
|
|
6544
6527
|
morphDisabled: true,
|
|
6545
6528
|
dragDisabled: (
|
|
6546
6529
|
/*dragDisabled*/
|
|
6547
|
-
ctx[
|
|
6530
|
+
ctx[10]
|
|
6548
6531
|
),
|
|
6549
6532
|
autoAriaDisabled: true,
|
|
6550
|
-
zoneItemTabIndex:
|
|
6533
|
+
zoneItemTabIndex: (
|
|
6534
|
+
/*currentTabContainer*/
|
|
6535
|
+
ctx[14] !== /*containerId*/
|
|
6536
|
+
ctx[2] || /*selectedItemId*/
|
|
6537
|
+
ctx[9] || /*isModalOpen*/
|
|
6538
|
+
ctx[15] ? -1 : 0
|
|
6539
|
+
),
|
|
6551
6540
|
zoneTabIndex: -1
|
|
6552
6541
|
})),
|
|
6553
6542
|
listen(
|
|
6554
6543
|
section,
|
|
6555
6544
|
"consider",
|
|
6556
6545
|
/*handleDndConsider*/
|
|
6557
|
-
ctx[
|
|
6546
|
+
ctx[20]
|
|
6558
6547
|
),
|
|
6559
6548
|
listen(
|
|
6560
6549
|
section,
|
|
6561
6550
|
"finalize",
|
|
6562
6551
|
/*handleDndFinalize*/
|
|
6563
|
-
ctx[
|
|
6552
|
+
ctx[21]
|
|
6564
6553
|
)
|
|
6565
6554
|
];
|
|
6566
6555
|
mounted = true;
|
|
@@ -6569,8 +6558,8 @@
|
|
|
6569
6558
|
p(ctx2, dirty) {
|
|
6570
6559
|
if (
|
|
6571
6560
|
/*dragDisabled*/
|
|
6572
|
-
ctx2[
|
|
6573
|
-
ctx2[
|
|
6561
|
+
ctx2[10] && /*sourceSelectedContainerId*/
|
|
6562
|
+
ctx2[11] !== /*containerId*/
|
|
6574
6563
|
ctx2[2] && !/*isFinished*/
|
|
6575
6564
|
ctx2[7]
|
|
6576
6565
|
) {
|
|
@@ -6587,8 +6576,8 @@
|
|
|
6587
6576
|
}
|
|
6588
6577
|
if (
|
|
6589
6578
|
/*totalRemainingWordBinItem*/
|
|
6590
|
-
ctx2[
|
|
6591
|
-
ctx2[
|
|
6579
|
+
ctx2[13] <= 0 && /*isContainerWordBin*/
|
|
6580
|
+
ctx2[19]
|
|
6592
6581
|
) {
|
|
6593
6582
|
if (if_block1) {
|
|
6594
6583
|
if_block1.p(ctx2, dirty);
|
|
@@ -6601,11 +6590,11 @@
|
|
|
6601
6590
|
if_block1.d(1);
|
|
6602
6591
|
if_block1 = null;
|
|
6603
6592
|
}
|
|
6604
|
-
if (dirty[0] & /*items, considerItemId, showButton, currentWordBinIndex, isContainerWordBin, containerId, currentTabContainer,
|
|
6605
|
-
|
|
6593
|
+
if (dirty[0] & /*items, considerItemId, showButton, currentWordBinIndex, isContainerWordBin, containerId, currentTabContainer, isFinished*/
|
|
6594
|
+
610708) {
|
|
6606
6595
|
each_value = ensure_array_like(Object.values(
|
|
6607
6596
|
/*items*/
|
|
6608
|
-
ctx2[
|
|
6597
|
+
ctx2[16]
|
|
6609
6598
|
));
|
|
6610
6599
|
group_outros();
|
|
6611
6600
|
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);
|
|
@@ -6616,6 +6605,15 @@
|
|
|
6616
6605
|
ctx2[0] + " category-content")) {
|
|
6617
6606
|
attr(section, "class", section_class_value);
|
|
6618
6607
|
}
|
|
6608
|
+
if (!current || dirty[0] & /*isItemsAriaHidden*/
|
|
6609
|
+
131072) {
|
|
6610
|
+
attr(
|
|
6611
|
+
section,
|
|
6612
|
+
"aria-hidden",
|
|
6613
|
+
/*isItemsAriaHidden*/
|
|
6614
|
+
ctx2[17]
|
|
6615
|
+
);
|
|
6616
|
+
}
|
|
6619
6617
|
if (!current || dirty[0] & /*containerId*/
|
|
6620
6618
|
4) {
|
|
6621
6619
|
attr(
|
|
@@ -6627,16 +6625,16 @@
|
|
|
6627
6625
|
}
|
|
6628
6626
|
if (!current || dirty[0] & /*paddingTop*/
|
|
6629
6627
|
32 && section_style_value !== (section_style_value = !/*isContainerWordBin*/
|
|
6630
|
-
ctx2[
|
|
6628
|
+
ctx2[19] ? `padding-top: ${/*paddingTop*/
|
|
6631
6629
|
ctx2[5]}px;` : "")) {
|
|
6632
6630
|
attr(section, "style", section_style_value);
|
|
6633
6631
|
}
|
|
6634
|
-
if (dndzone_action && is_function(dndzone_action.update) && dirty[0] & /*items, flipDurationMs, type, dragDisabled*/
|
|
6635
|
-
|
|
6632
|
+
if (dndzone_action && is_function(dndzone_action.update) && dirty[0] & /*items, flipDurationMs, type, dragDisabled, currentTabContainer, containerId, selectedItemId, isModalOpen*/
|
|
6633
|
+
116238)
|
|
6636
6634
|
dndzone_action.update.call(null, {
|
|
6637
6635
|
items: (
|
|
6638
6636
|
/*items*/
|
|
6639
|
-
ctx2[
|
|
6637
|
+
ctx2[16]
|
|
6640
6638
|
),
|
|
6641
6639
|
flipDurationMs: (
|
|
6642
6640
|
/*flipDurationMs*/
|
|
@@ -6648,15 +6646,21 @@
|
|
|
6648
6646
|
),
|
|
6649
6647
|
dropTargetClasses: (
|
|
6650
6648
|
/*dropTargetClasses*/
|
|
6651
|
-
ctx2[
|
|
6649
|
+
ctx2[18]
|
|
6652
6650
|
),
|
|
6653
6651
|
morphDisabled: true,
|
|
6654
6652
|
dragDisabled: (
|
|
6655
6653
|
/*dragDisabled*/
|
|
6656
|
-
ctx2[
|
|
6654
|
+
ctx2[10]
|
|
6657
6655
|
),
|
|
6658
6656
|
autoAriaDisabled: true,
|
|
6659
|
-
zoneItemTabIndex:
|
|
6657
|
+
zoneItemTabIndex: (
|
|
6658
|
+
/*currentTabContainer*/
|
|
6659
|
+
ctx2[14] !== /*containerId*/
|
|
6660
|
+
ctx2[2] || /*selectedItemId*/
|
|
6661
|
+
ctx2[9] || /*isModalOpen*/
|
|
6662
|
+
ctx2[15] ? -1 : 0
|
|
6663
|
+
),
|
|
6660
6664
|
zoneTabIndex: -1
|
|
6661
6665
|
});
|
|
6662
6666
|
},
|
|
@@ -6714,29 +6718,31 @@
|
|
|
6714
6718
|
let currentTabContainer = "";
|
|
6715
6719
|
let isModalOpen = false;
|
|
6716
6720
|
let items = [];
|
|
6721
|
+
let isItemsAriaHidden = false;
|
|
6717
6722
|
const dispatch = createEventDispatcher();
|
|
6718
6723
|
const dropTargetClasses = ["!outline-none"];
|
|
6719
6724
|
const isContainerWordBin = containerId === CONTAINER_WORD_BIN_ID;
|
|
6720
6725
|
const { rawCategoryItems } = get_store_value(categoriseSettings);
|
|
6721
6726
|
modalSettings.subscribe((value) => {
|
|
6722
6727
|
const { isModalOpen: storeIsModalOpen } = value;
|
|
6723
|
-
$$invalidate(
|
|
6728
|
+
$$invalidate(15, isModalOpen = storeIsModalOpen);
|
|
6724
6729
|
});
|
|
6725
6730
|
categoriseSettings.subscribe((value) => {
|
|
6726
|
-
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;
|
|
6727
6732
|
$$invalidate(8, considerItemId = storeconsiderItemId);
|
|
6728
|
-
$$invalidate(
|
|
6733
|
+
$$invalidate(10, dragDisabled = isFinished || !!storeSelectedItemId);
|
|
6729
6734
|
currentAnswer = storeCurrentAnswer;
|
|
6730
|
-
selectedItemId = storeSelectedItemId;
|
|
6731
|
-
$$invalidate(
|
|
6732
|
-
$$invalidate(
|
|
6733
|
-
$$invalidate(
|
|
6735
|
+
$$invalidate(9, selectedItemId = storeSelectedItemId);
|
|
6736
|
+
$$invalidate(11, sourceSelectedContainerId = storeSourceSelectedContainerId);
|
|
6737
|
+
$$invalidate(12, currentWordBinIndex = storeCurrentWordBinIndex);
|
|
6738
|
+
$$invalidate(14, currentTabContainer = storeCurrentTabContainer);
|
|
6739
|
+
$$invalidate(17, isItemsAriaHidden = storeisItemsAriaHidden);
|
|
6734
6740
|
const storeWordBinItem = currentAnswer.filter((answer) => answer.categoryId === CONTAINER_WORD_BIN_ID);
|
|
6735
|
-
$$invalidate(
|
|
6741
|
+
$$invalidate(13, totalRemainingWordBinItem = storeWordBinItem[0].itemId.length);
|
|
6736
6742
|
if (storeCurrentAnswer) {
|
|
6737
6743
|
const currentAnswerList = currentAnswer.filter((answer) => answer.categoryId === containerId);
|
|
6738
6744
|
if (currentAnswerList.length) {
|
|
6739
|
-
$$invalidate(
|
|
6745
|
+
$$invalidate(16, items = currentAnswerList[0].itemId.map((rawAnswerId) => {
|
|
6740
6746
|
const splitId = rawAnswerId.split(EAT_DASH);
|
|
6741
6747
|
const answerId = splitId[0];
|
|
6742
6748
|
const answerIndex = rawCategoryItems.findIndex((answer) => answer.id === answerId);
|
|
@@ -6770,7 +6776,7 @@
|
|
|
6770
6776
|
const { sourceContainerId, sourceCloneContainerId } = get_store_value(categoriseSettings);
|
|
6771
6777
|
if (trigger === TRIGGERS.DRAG_STARTED) {
|
|
6772
6778
|
const { items: cateoryItems } = detail;
|
|
6773
|
-
$$invalidate(
|
|
6779
|
+
$$invalidate(16, items = cateoryItems);
|
|
6774
6780
|
const orginalId = items.filter((item) => item[SHADOW_ITEM_MARKER_PROPERTY_NAME]);
|
|
6775
6781
|
const originalItemIndex = items.findIndex((item) => item.id === orginalId[0].id);
|
|
6776
6782
|
items.splice(originalItemIndex, 1, {
|
|
@@ -6803,7 +6809,7 @@
|
|
|
6803
6809
|
const handleDndFinalize = (e2) => {
|
|
6804
6810
|
const { items: categoryItems, info } = e2.detail;
|
|
6805
6811
|
const { trigger, id } = info;
|
|
6806
|
-
$$invalidate(
|
|
6812
|
+
$$invalidate(16, items = categoryItems.filter((item) => !item.isClonedItem));
|
|
6807
6813
|
if (trigger === TRIGGERS.DROPPED_INTO_ZONE) {
|
|
6808
6814
|
const { currentTarget } = e2;
|
|
6809
6815
|
addAnswerItemStore(id, currentTarget.id);
|
|
@@ -6984,9 +6990,9 @@
|
|
|
6984
6990
|
if ("isFinished" in $$props2)
|
|
6985
6991
|
$$invalidate(7, isFinished = $$props2.isFinished);
|
|
6986
6992
|
if ("correctAnswerList" in $$props2)
|
|
6987
|
-
$$invalidate(
|
|
6993
|
+
$$invalidate(23, correctAnswerList = $$props2.correctAnswerList);
|
|
6988
6994
|
if ("isPreviewModeInteractive" in $$props2)
|
|
6989
|
-
$$invalidate(
|
|
6995
|
+
$$invalidate(24, isPreviewModeInteractive = $$props2.isPreviewModeInteractive);
|
|
6990
6996
|
};
|
|
6991
6997
|
return [
|
|
6992
6998
|
containerClass,
|
|
@@ -6998,6 +7004,7 @@
|
|
|
6998
7004
|
ariaLabel,
|
|
6999
7005
|
isFinished,
|
|
7000
7006
|
considerItemId,
|
|
7007
|
+
selectedItemId,
|
|
7001
7008
|
dragDisabled,
|
|
7002
7009
|
sourceSelectedContainerId,
|
|
7003
7010
|
currentWordBinIndex,
|
|
@@ -7005,6 +7012,7 @@
|
|
|
7005
7012
|
currentTabContainer,
|
|
7006
7013
|
isModalOpen,
|
|
7007
7014
|
items,
|
|
7015
|
+
isItemsAriaHidden,
|
|
7008
7016
|
dropTargetClasses,
|
|
7009
7017
|
isContainerWordBin,
|
|
7010
7018
|
handleDndConsider,
|
|
@@ -7032,8 +7040,8 @@
|
|
|
7032
7040
|
paddingTop: 5,
|
|
7033
7041
|
ariaLabel: 6,
|
|
7034
7042
|
isFinished: 7,
|
|
7035
|
-
correctAnswerList:
|
|
7036
|
-
isPreviewModeInteractive:
|
|
7043
|
+
correctAnswerList: 23,
|
|
7044
|
+
isPreviewModeInteractive: 24
|
|
7037
7045
|
},
|
|
7038
7046
|
null,
|
|
7039
7047
|
[-1, -1]
|
|
@@ -7096,14 +7104,14 @@
|
|
|
7096
7104
|
flush();
|
|
7097
7105
|
}
|
|
7098
7106
|
get correctAnswerList() {
|
|
7099
|
-
return this.$$.ctx[
|
|
7107
|
+
return this.$$.ctx[23];
|
|
7100
7108
|
}
|
|
7101
7109
|
set correctAnswerList(correctAnswerList) {
|
|
7102
7110
|
this.$$set({ correctAnswerList });
|
|
7103
7111
|
flush();
|
|
7104
7112
|
}
|
|
7105
7113
|
get isPreviewModeInteractive() {
|
|
7106
|
-
return this.$$.ctx[
|
|
7114
|
+
return this.$$.ctx[24];
|
|
7107
7115
|
}
|
|
7108
7116
|
set isPreviewModeInteractive(isPreviewModeInteractive) {
|
|
7109
7117
|
this.$$set({ isPreviewModeInteractive });
|
|
@@ -8026,19 +8034,19 @@
|
|
|
8026
8034
|
// src/lib/components/prompt/categorise/PromptCategorise.svelte
|
|
8027
8035
|
function get_each_context3(ctx, list, i) {
|
|
8028
8036
|
const child_ctx = ctx.slice();
|
|
8029
|
-
child_ctx[
|
|
8030
|
-
child_ctx[
|
|
8031
|
-
child_ctx[
|
|
8037
|
+
child_ctx[59] = list[i];
|
|
8038
|
+
child_ctx[60] = list;
|
|
8039
|
+
child_ctx[61] = i;
|
|
8032
8040
|
return child_ctx;
|
|
8033
8041
|
}
|
|
8034
|
-
function
|
|
8042
|
+
function create_if_block_6(ctx) {
|
|
8035
8043
|
let promptcategorisemodal;
|
|
8036
8044
|
let current;
|
|
8037
8045
|
promptcategorisemodal = new PromptCategoriseModal_default({});
|
|
8038
8046
|
promptcategorisemodal.$on(
|
|
8039
8047
|
"resetCategory",
|
|
8040
8048
|
/*saveCategory*/
|
|
8041
|
-
ctx[
|
|
8049
|
+
ctx[36]
|
|
8042
8050
|
);
|
|
8043
8051
|
return {
|
|
8044
8052
|
c() {
|
|
@@ -8064,7 +8072,7 @@
|
|
|
8064
8072
|
}
|
|
8065
8073
|
};
|
|
8066
8074
|
}
|
|
8067
|
-
function
|
|
8075
|
+
function create_if_block_5(ctx) {
|
|
8068
8076
|
let button;
|
|
8069
8077
|
let span0;
|
|
8070
8078
|
let switchicon;
|
|
@@ -8105,7 +8113,7 @@
|
|
|
8105
8113
|
button,
|
|
8106
8114
|
"click",
|
|
8107
8115
|
/*openResetModal*/
|
|
8108
|
-
ctx[
|
|
8116
|
+
ctx[30]
|
|
8109
8117
|
);
|
|
8110
8118
|
mounted = true;
|
|
8111
8119
|
}
|
|
@@ -8141,7 +8149,7 @@
|
|
|
8141
8149
|
}
|
|
8142
8150
|
};
|
|
8143
8151
|
}
|
|
8144
|
-
function
|
|
8152
|
+
function create_if_block_42(ctx) {
|
|
8145
8153
|
let span;
|
|
8146
8154
|
let t0;
|
|
8147
8155
|
let t1;
|
|
@@ -8179,6 +8187,54 @@
|
|
|
8179
8187
|
}
|
|
8180
8188
|
};
|
|
8181
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
|
+
}
|
|
8182
8238
|
function create_if_block_25(ctx) {
|
|
8183
8239
|
let span;
|
|
8184
8240
|
let t0;
|
|
@@ -8292,9 +8348,9 @@
|
|
|
8292
8348
|
let div0;
|
|
8293
8349
|
let show_if_1 = (
|
|
8294
8350
|
/*checkContainerDroppedItem*/
|
|
8295
|
-
ctx[
|
|
8351
|
+
ctx[28](
|
|
8296
8352
|
/*category*/
|
|
8297
|
-
ctx[
|
|
8353
|
+
ctx[59].id,
|
|
8298
8354
|
/*dropContainerId*/
|
|
8299
8355
|
ctx[6]
|
|
8300
8356
|
)
|
|
@@ -8305,41 +8361,44 @@
|
|
|
8305
8361
|
let span1;
|
|
8306
8362
|
let t6;
|
|
8307
8363
|
let t7;
|
|
8364
|
+
let t8;
|
|
8308
8365
|
let button;
|
|
8309
8366
|
let span2;
|
|
8310
|
-
let
|
|
8367
|
+
let t9_value = (
|
|
8311
8368
|
/*getTotalWords*/
|
|
8312
|
-
ctx[
|
|
8369
|
+
ctx[31](
|
|
8313
8370
|
/*category*/
|
|
8314
|
-
ctx[
|
|
8371
|
+
ctx[59].id,
|
|
8315
8372
|
/*currentAnswer*/
|
|
8316
8373
|
ctx[9]
|
|
8317
8374
|
) + ""
|
|
8318
8375
|
);
|
|
8319
|
-
let t8;
|
|
8320
8376
|
let t9;
|
|
8377
|
+
let t10;
|
|
8321
8378
|
let span3;
|
|
8322
8379
|
let show_if;
|
|
8323
8380
|
let current_block_type_index;
|
|
8324
|
-
let
|
|
8381
|
+
let if_block3;
|
|
8325
8382
|
let button_aria_label_value;
|
|
8326
8383
|
let div0_id_value;
|
|
8327
8384
|
let div0_aria_live_value;
|
|
8328
8385
|
let div0_class_value;
|
|
8329
8386
|
let div0_resize_listener;
|
|
8330
|
-
let t10;
|
|
8331
|
-
let promptcategorisedndcontainer;
|
|
8332
8387
|
let t11;
|
|
8388
|
+
let promptcategorisedndcontainer;
|
|
8389
|
+
let t12;
|
|
8333
8390
|
let div1_class_value;
|
|
8334
8391
|
let category = (
|
|
8335
8392
|
/*category*/
|
|
8336
|
-
ctx[
|
|
8393
|
+
ctx[59]
|
|
8337
8394
|
);
|
|
8338
8395
|
let current;
|
|
8339
8396
|
let mounted;
|
|
8340
8397
|
let dispose;
|
|
8341
|
-
let if_block0 = show_if_1 &&
|
|
8342
|
-
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 = (
|
|
8343
8402
|
/*previewResultSr*/
|
|
8344
8403
|
ctx[17] && create_if_block_25(ctx)
|
|
8345
8404
|
);
|
|
@@ -8351,9 +8410,9 @@
|
|
|
8351
8410
|
show_if = null;
|
|
8352
8411
|
if (show_if == null)
|
|
8353
8412
|
show_if = !!/*checkifCategoryContainerOpen*/
|
|
8354
|
-
ctx2[
|
|
8413
|
+
ctx2[33](
|
|
8355
8414
|
/*category*/
|
|
8356
|
-
ctx2[
|
|
8415
|
+
ctx2[59].id,
|
|
8357
8416
|
/*openCategoryContainer*/
|
|
8358
8417
|
ctx2[13]
|
|
8359
8418
|
);
|
|
@@ -8361,76 +8420,76 @@
|
|
|
8361
8420
|
return 0;
|
|
8362
8421
|
return 1;
|
|
8363
8422
|
}
|
|
8364
|
-
current_block_type_index = select_block_type(ctx, [-1, -1]);
|
|
8365
|
-
|
|
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);
|
|
8366
8425
|
function div0_elementresize_handler() {
|
|
8367
|
-
ctx[
|
|
8426
|
+
ctx[43].call(
|
|
8368
8427
|
div0,
|
|
8369
8428
|
/*category*/
|
|
8370
|
-
ctx[
|
|
8429
|
+
ctx[59]
|
|
8371
8430
|
);
|
|
8372
8431
|
}
|
|
8373
8432
|
promptcategorisedndcontainer = new PromptCategoriseDndContainer_default({
|
|
8374
8433
|
props: {
|
|
8375
8434
|
containerClass: "content-start !outline-none rounded-lg grow w-full md:p-4\n " + /*checkContainerDragOver*/
|
|
8376
|
-
(ctx[
|
|
8435
|
+
(ctx[27](
|
|
8377
8436
|
/*category*/
|
|
8378
|
-
ctx[
|
|
8437
|
+
ctx[59].id,
|
|
8379
8438
|
/*considerContainerId*/
|
|
8380
8439
|
ctx[4],
|
|
8381
8440
|
/*isDraggingOver*/
|
|
8382
8441
|
ctx[5]
|
|
8383
8442
|
) ? "bg-violet-100" : "") + "\n " + /*checkifCategoryContainerOpen*/
|
|
8384
|
-
(ctx[
|
|
8443
|
+
(ctx[33](
|
|
8385
8444
|
/*category*/
|
|
8386
|
-
ctx[
|
|
8445
|
+
ctx[59].id,
|
|
8387
8446
|
/*openCategoryContainer*/
|
|
8388
8447
|
ctx[13]
|
|
8389
8448
|
) ? "h-full p-3 min-h-[86px] md:min-h-0" : ""),
|
|
8390
8449
|
paddingTop: (
|
|
8391
8450
|
/*checkifCategoryContainerOpen*/
|
|
8392
|
-
ctx[
|
|
8451
|
+
ctx[33](
|
|
8393
8452
|
/*category*/
|
|
8394
|
-
ctx[
|
|
8453
|
+
ctx[59].id,
|
|
8395
8454
|
/*openCategoryContainer*/
|
|
8396
8455
|
ctx[13]
|
|
8397
8456
|
) || !useIsSmallScreen() ? (
|
|
8398
8457
|
/*categoryTitleHeight*/
|
|
8399
|
-
ctx[
|
|
8458
|
+
ctx[21][
|
|
8400
8459
|
/*category*/
|
|
8401
|
-
ctx[
|
|
8460
|
+
ctx[59].id
|
|
8402
8461
|
] + 16
|
|
8403
8462
|
) : (
|
|
8404
8463
|
/*categoryTitleHeight*/
|
|
8405
|
-
ctx[
|
|
8464
|
+
ctx[21][
|
|
8406
8465
|
/*category*/
|
|
8407
|
-
ctx[
|
|
8466
|
+
ctx[59].id
|
|
8408
8467
|
]
|
|
8409
8468
|
)
|
|
8410
8469
|
),
|
|
8411
8470
|
containerId: (
|
|
8412
8471
|
/*category*/
|
|
8413
|
-
ctx[
|
|
8472
|
+
ctx[59].id
|
|
8414
8473
|
),
|
|
8415
8474
|
showButton: (
|
|
8416
8475
|
/*checkifCategoryContainerOpen*/
|
|
8417
|
-
ctx[
|
|
8476
|
+
ctx[33](
|
|
8418
8477
|
/*category*/
|
|
8419
|
-
ctx[
|
|
8478
|
+
ctx[59].id,
|
|
8420
8479
|
/*openCategoryContainer*/
|
|
8421
8480
|
ctx[13]
|
|
8422
8481
|
)
|
|
8423
8482
|
),
|
|
8424
8483
|
ariaLabel: `Category ${/*index*/
|
|
8425
|
-
ctx[
|
|
8426
|
-
ctx[
|
|
8484
|
+
ctx[61] + 1}: ${/*category*/
|
|
8485
|
+
ctx[59].name}`,
|
|
8427
8486
|
isFinished: (
|
|
8428
8487
|
/*isFinished*/
|
|
8429
8488
|
ctx[0]
|
|
8430
8489
|
),
|
|
8431
8490
|
correctAnswerList: (
|
|
8432
8491
|
/*scoringMetadata*/
|
|
8433
|
-
ctx[
|
|
8492
|
+
ctx[23]
|
|
8434
8493
|
),
|
|
8435
8494
|
isPreviewModeInteractive: (
|
|
8436
8495
|
/*isPreviewModeInteractive*/
|
|
@@ -8441,25 +8500,25 @@
|
|
|
8441
8500
|
promptcategorisedndcontainer.$on(
|
|
8442
8501
|
"saveCategory",
|
|
8443
8502
|
/*saveCategory*/
|
|
8444
|
-
ctx[
|
|
8503
|
+
ctx[36]
|
|
8445
8504
|
);
|
|
8446
8505
|
function keydown_handler(...args) {
|
|
8447
8506
|
return (
|
|
8448
8507
|
/*keydown_handler*/
|
|
8449
|
-
ctx[
|
|
8508
|
+
ctx[44](
|
|
8450
8509
|
/*category*/
|
|
8451
|
-
ctx[
|
|
8510
|
+
ctx[59],
|
|
8452
8511
|
...args
|
|
8453
8512
|
)
|
|
8454
8513
|
);
|
|
8455
8514
|
}
|
|
8456
8515
|
const assign_div1 = () => (
|
|
8457
8516
|
/*div1_binding*/
|
|
8458
|
-
ctx[
|
|
8517
|
+
ctx[46](div1, category)
|
|
8459
8518
|
);
|
|
8460
8519
|
const unassign_div1 = () => (
|
|
8461
8520
|
/*div1_binding*/
|
|
8462
|
-
ctx[
|
|
8521
|
+
ctx[46](null, category)
|
|
8463
8522
|
);
|
|
8464
8523
|
return {
|
|
8465
8524
|
c() {
|
|
@@ -8470,81 +8529,85 @@
|
|
|
8470
8529
|
t0 = space();
|
|
8471
8530
|
span0 = element("span");
|
|
8472
8531
|
span0.textContent = `Category ${/*index*/
|
|
8473
|
-
ctx[
|
|
8532
|
+
ctx[61] + 1}:\xA0`;
|
|
8474
8533
|
t4 = space();
|
|
8475
8534
|
span1 = element("span");
|
|
8476
8535
|
span1.textContent = `${/*category*/
|
|
8477
|
-
ctx[
|
|
8536
|
+
ctx[59].name}`;
|
|
8478
8537
|
t6 = space();
|
|
8479
8538
|
if (if_block1)
|
|
8480
8539
|
if_block1.c();
|
|
8481
8540
|
t7 = space();
|
|
8541
|
+
if (if_block2)
|
|
8542
|
+
if_block2.c();
|
|
8543
|
+
t8 = space();
|
|
8482
8544
|
button = element("button");
|
|
8483
8545
|
span2 = element("span");
|
|
8484
|
-
|
|
8485
|
-
t9 = space();
|
|
8486
|
-
span3 = element("span");
|
|
8487
|
-
if_block2.c();
|
|
8546
|
+
t9 = text(t9_value);
|
|
8488
8547
|
t10 = space();
|
|
8489
|
-
|
|
8548
|
+
span3 = element("span");
|
|
8549
|
+
if_block3.c();
|
|
8490
8550
|
t11 = space();
|
|
8551
|
+
create_component(promptcategorisedndcontainer.$$.fragment);
|
|
8552
|
+
t12 = space();
|
|
8491
8553
|
attr(span0, "class", "sr-only");
|
|
8492
8554
|
attr(span1, "class", "text-base leading-5 !text-gray-900 md:item-heading");
|
|
8493
8555
|
attr(span2, "class", "mx-0.5");
|
|
8494
8556
|
attr(span3, "class", "w-4 h-4 text-inherit flex items-center justify-center");
|
|
8495
8557
|
attr(button, "aria-label", button_aria_label_value = /*getTotalWords*/
|
|
8496
|
-
ctx[
|
|
8558
|
+
ctx[31](
|
|
8497
8559
|
/*category*/
|
|
8498
|
-
ctx[
|
|
8560
|
+
ctx[59].id,
|
|
8499
8561
|
/*currentAnswer*/
|
|
8500
8562
|
ctx[9]
|
|
8501
8563
|
));
|
|
8502
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");
|
|
8503
8565
|
attr(div0, "id", div0_id_value = `category-title${/*index*/
|
|
8504
|
-
ctx[
|
|
8566
|
+
ctx[61]}`);
|
|
8505
8567
|
attr(div0, "aria-live", div0_aria_live_value = /*checkContainerDroppedItem*/
|
|
8506
|
-
ctx[
|
|
8568
|
+
ctx[28](
|
|
8507
8569
|
/*category*/
|
|
8508
|
-
ctx[
|
|
8570
|
+
ctx[59].id,
|
|
8509
8571
|
/*dropContainerId*/
|
|
8510
8572
|
ctx[6]
|
|
8511
|
-
)
|
|
8573
|
+
) && /*enableAriaLive*/
|
|
8574
|
+
ctx[18] ? "polite" : "off");
|
|
8512
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*/
|
|
8513
|
-
(ctx[
|
|
8576
|
+
(ctx[28](
|
|
8514
8577
|
/*category*/
|
|
8515
|
-
ctx[
|
|
8578
|
+
ctx[59].id,
|
|
8516
8579
|
/*dropContainerId*/
|
|
8517
8580
|
ctx[6]
|
|
8518
8581
|
) ? "bg-tranparent" : "bg-white") + " " + (!/*checkifCategoryContainerOpen*/
|
|
8519
|
-
ctx[
|
|
8582
|
+
ctx[33](
|
|
8520
8583
|
/*category*/
|
|
8521
|
-
ctx[
|
|
8584
|
+
ctx[59].id,
|
|
8522
8585
|
/*openCategoryContainer*/
|
|
8523
8586
|
ctx[13]
|
|
8524
8587
|
) && /*checkContainerDragOver*/
|
|
8525
|
-
ctx[
|
|
8588
|
+
ctx[27](
|
|
8526
8589
|
/*category*/
|
|
8527
|
-
ctx[
|
|
8590
|
+
ctx[59].id,
|
|
8528
8591
|
/*considerContainerId*/
|
|
8529
8592
|
ctx[4],
|
|
8530
8593
|
/*isDraggingOver*/
|
|
8531
8594
|
ctx[5]
|
|
8532
8595
|
) ? "!bg-violet-100 md:!bg-white" : "") + " " + /*checkifCategoryContainerOpen*/
|
|
8533
|
-
(ctx[
|
|
8596
|
+
(ctx[33](
|
|
8534
8597
|
/*category*/
|
|
8535
|
-
ctx[
|
|
8598
|
+
ctx[59].id,
|
|
8536
8599
|
/*openCategoryContainer*/
|
|
8537
8600
|
ctx[13]
|
|
8538
8601
|
) ? "" : "rounded-b-lg md:rounded-b-none") + " " + (!/*checkifCategoryContainerOpen*/
|
|
8539
|
-
ctx[
|
|
8602
|
+
ctx[33](
|
|
8540
8603
|
/*category*/
|
|
8541
|
-
ctx[
|
|
8604
|
+
ctx[59].id,
|
|
8542
8605
|
/*openCategoryContainer*/
|
|
8543
8606
|
ctx[13]
|
|
8544
8607
|
) && /*checkSelectedSourceContainer*/
|
|
8545
|
-
ctx[
|
|
8608
|
+
ctx[29](
|
|
8546
8609
|
/*category*/
|
|
8547
|
-
ctx[
|
|
8610
|
+
ctx[59].id,
|
|
8548
8611
|
/*sourceSelectedContainerId*/
|
|
8549
8612
|
ctx[8],
|
|
8550
8613
|
/*currentSelectedItemId*/
|
|
@@ -8565,38 +8628,38 @@
|
|
|
8565
8628
|
);
|
|
8566
8629
|
attr(div1, "role", "group");
|
|
8567
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*/
|
|
8568
|
-
(ctx[
|
|
8631
|
+
(ctx[27](
|
|
8569
8632
|
/*category*/
|
|
8570
|
-
ctx[
|
|
8633
|
+
ctx[59].id,
|
|
8571
8634
|
/*considerContainerId*/
|
|
8572
8635
|
ctx[4],
|
|
8573
8636
|
/*isDraggingOver*/
|
|
8574
8637
|
ctx[5]
|
|
8575
8638
|
) ? "raw-focus-ring" : "") + " " + /*checkContainerDroppedItem*/
|
|
8576
|
-
(ctx[
|
|
8639
|
+
(ctx[28](
|
|
8577
8640
|
/*category*/
|
|
8578
|
-
ctx[
|
|
8641
|
+
ctx[59].id,
|
|
8579
8642
|
/*dropContainerId*/
|
|
8580
8643
|
ctx[6]
|
|
8581
8644
|
) ? "bg-violet-150" : "") + " " + /*checkContainerDroppedItem*/
|
|
8582
|
-
(ctx[
|
|
8645
|
+
(ctx[28](
|
|
8583
8646
|
/*category*/
|
|
8584
|
-
ctx[
|
|
8647
|
+
ctx[59].id,
|
|
8585
8648
|
/*dropContainerId*/
|
|
8586
8649
|
ctx[6]
|
|
8587
8650
|
) && /*hasAddItemAnimation*/
|
|
8588
8651
|
ctx[11] ? "transition bg-white duration-300" : "") + " " + /*checkSelectedSourceContainer*/
|
|
8589
|
-
(ctx[
|
|
8652
|
+
(ctx[29](
|
|
8590
8653
|
/*category*/
|
|
8591
|
-
ctx[
|
|
8654
|
+
ctx[59].id,
|
|
8592
8655
|
/*sourceSelectedContainerId*/
|
|
8593
8656
|
ctx[8],
|
|
8594
8657
|
/*currentSelectedItemId*/
|
|
8595
8658
|
ctx[7]
|
|
8596
8659
|
) ? "hover:bg-violet-100 hover-focus-ring cursor-pointer" : "") + " " + /*checkifCategoryContainerOpen*/
|
|
8597
|
-
(ctx[
|
|
8660
|
+
(ctx[33](
|
|
8598
8661
|
/*category*/
|
|
8599
|
-
ctx[
|
|
8662
|
+
ctx[59].id,
|
|
8600
8663
|
/*openCategoryContainer*/
|
|
8601
8664
|
ctx[13]
|
|
8602
8665
|
) ? "min-h-[140px]" : ""));
|
|
@@ -8614,16 +8677,19 @@
|
|
|
8614
8677
|
if (if_block1)
|
|
8615
8678
|
if_block1.m(div0, null);
|
|
8616
8679
|
append(div0, t7);
|
|
8680
|
+
if (if_block2)
|
|
8681
|
+
if_block2.m(div0, null);
|
|
8682
|
+
append(div0, t8);
|
|
8617
8683
|
append(div0, button);
|
|
8618
8684
|
append(button, span2);
|
|
8619
|
-
append(span2,
|
|
8620
|
-
append(button,
|
|
8685
|
+
append(span2, t9);
|
|
8686
|
+
append(button, t10);
|
|
8621
8687
|
append(button, span3);
|
|
8622
8688
|
if_blocks[current_block_type_index].m(span3, null);
|
|
8623
8689
|
div0_resize_listener = add_iframe_resize_listener(div0, div0_elementresize_handler.bind(div0));
|
|
8624
|
-
append(div1, t10);
|
|
8625
|
-
mount_component(promptcategorisedndcontainer, div1, null);
|
|
8626
8690
|
append(div1, t11);
|
|
8691
|
+
mount_component(promptcategorisedndcontainer, div1, null);
|
|
8692
|
+
append(div1, t12);
|
|
8627
8693
|
assign_div1();
|
|
8628
8694
|
current = true;
|
|
8629
8695
|
if (!mounted) {
|
|
@@ -8631,16 +8697,16 @@
|
|
|
8631
8697
|
listen(button, "click", function() {
|
|
8632
8698
|
if (is_function(
|
|
8633
8699
|
/*addCategoryContainer*/
|
|
8634
|
-
ctx[
|
|
8700
|
+
ctx[34](
|
|
8635
8701
|
/*category*/
|
|
8636
|
-
ctx[
|
|
8702
|
+
ctx[59].id,
|
|
8637
8703
|
/*openCategoryContainer*/
|
|
8638
8704
|
ctx[13]
|
|
8639
8705
|
)
|
|
8640
8706
|
))
|
|
8641
|
-
ctx[
|
|
8707
|
+
ctx[34](
|
|
8642
8708
|
/*category*/
|
|
8643
|
-
ctx[
|
|
8709
|
+
ctx[59].id,
|
|
8644
8710
|
/*openCategoryContainer*/
|
|
8645
8711
|
ctx[13]
|
|
8646
8712
|
).apply(this, arguments);
|
|
@@ -8650,7 +8716,13 @@
|
|
|
8650
8716
|
div1,
|
|
8651
8717
|
"focus",
|
|
8652
8718
|
/*resetTabCategory*/
|
|
8653
|
-
ctx[
|
|
8719
|
+
ctx[38]
|
|
8720
|
+
),
|
|
8721
|
+
listen(
|
|
8722
|
+
div1,
|
|
8723
|
+
"blur",
|
|
8724
|
+
/*blur_handler*/
|
|
8725
|
+
ctx[45]
|
|
8654
8726
|
)
|
|
8655
8727
|
];
|
|
8656
8728
|
mounted = true;
|
|
@@ -8661,9 +8733,9 @@
|
|
|
8661
8733
|
if (dirty[0] & /*dropContainerId*/
|
|
8662
8734
|
64)
|
|
8663
8735
|
show_if_1 = /*checkContainerDroppedItem*/
|
|
8664
|
-
ctx[
|
|
8736
|
+
ctx[28](
|
|
8665
8737
|
/*category*/
|
|
8666
|
-
ctx[
|
|
8738
|
+
ctx[59].id,
|
|
8667
8739
|
/*dropContainerId*/
|
|
8668
8740
|
ctx[6]
|
|
8669
8741
|
);
|
|
@@ -8671,7 +8743,7 @@
|
|
|
8671
8743
|
if (if_block0) {
|
|
8672
8744
|
if_block0.p(ctx, dirty);
|
|
8673
8745
|
} else {
|
|
8674
|
-
if_block0 =
|
|
8746
|
+
if_block0 = create_if_block_42(ctx);
|
|
8675
8747
|
if_block0.c();
|
|
8676
8748
|
if_block0.m(div0, t0);
|
|
8677
8749
|
}
|
|
@@ -8679,14 +8751,12 @@
|
|
|
8679
8751
|
if_block0.d(1);
|
|
8680
8752
|
if_block0 = null;
|
|
8681
8753
|
}
|
|
8682
|
-
if (
|
|
8683
|
-
|
|
8684
|
-
ctx[17]
|
|
8685
|
-
) {
|
|
8754
|
+
if (!/*previewResultSr*/
|
|
8755
|
+
ctx[17]) {
|
|
8686
8756
|
if (if_block1) {
|
|
8687
8757
|
if_block1.p(ctx, dirty);
|
|
8688
8758
|
} else {
|
|
8689
|
-
if_block1 =
|
|
8759
|
+
if_block1 = create_if_block_33(ctx);
|
|
8690
8760
|
if_block1.c();
|
|
8691
8761
|
if_block1.m(div0, t7);
|
|
8692
8762
|
}
|
|
@@ -8694,15 +8764,30 @@
|
|
|
8694
8764
|
if_block1.d(1);
|
|
8695
8765
|
if_block1 = null;
|
|
8696
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
|
+
}
|
|
8697
8782
|
if ((!current || dirty[0] & /*currentAnswer*/
|
|
8698
|
-
512) &&
|
|
8699
|
-
ctx[
|
|
8783
|
+
512) && t9_value !== (t9_value = /*getTotalWords*/
|
|
8784
|
+
ctx[31](
|
|
8700
8785
|
/*category*/
|
|
8701
|
-
ctx[
|
|
8786
|
+
ctx[59].id,
|
|
8702
8787
|
/*currentAnswer*/
|
|
8703
8788
|
ctx[9]
|
|
8704
8789
|
) + ""))
|
|
8705
|
-
set_data(
|
|
8790
|
+
set_data(t9, t9_value);
|
|
8706
8791
|
let previous_block_index = current_block_type_index;
|
|
8707
8792
|
current_block_type_index = select_block_type(ctx, dirty);
|
|
8708
8793
|
if (current_block_type_index !== previous_block_index) {
|
|
@@ -8711,72 +8796,73 @@
|
|
|
8711
8796
|
if_blocks[previous_block_index] = null;
|
|
8712
8797
|
});
|
|
8713
8798
|
check_outros();
|
|
8714
|
-
|
|
8715
|
-
if (!
|
|
8716
|
-
|
|
8717
|
-
|
|
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();
|
|
8718
8803
|
} else {
|
|
8719
8804
|
}
|
|
8720
|
-
transition_in(
|
|
8721
|
-
|
|
8805
|
+
transition_in(if_block3, 1);
|
|
8806
|
+
if_block3.m(span3, null);
|
|
8722
8807
|
}
|
|
8723
8808
|
if (!current || dirty[0] & /*currentAnswer*/
|
|
8724
8809
|
512 && button_aria_label_value !== (button_aria_label_value = /*getTotalWords*/
|
|
8725
|
-
ctx[
|
|
8810
|
+
ctx[31](
|
|
8726
8811
|
/*category*/
|
|
8727
|
-
ctx[
|
|
8812
|
+
ctx[59].id,
|
|
8728
8813
|
/*currentAnswer*/
|
|
8729
8814
|
ctx[9]
|
|
8730
8815
|
))) {
|
|
8731
8816
|
attr(button, "aria-label", button_aria_label_value);
|
|
8732
8817
|
}
|
|
8733
|
-
if (!current || dirty[0] & /*dropContainerId*/
|
|
8734
|
-
|
|
8735
|
-
ctx[
|
|
8818
|
+
if (!current || dirty[0] & /*dropContainerId, enableAriaLive*/
|
|
8819
|
+
262208 && div0_aria_live_value !== (div0_aria_live_value = /*checkContainerDroppedItem*/
|
|
8820
|
+
ctx[28](
|
|
8736
8821
|
/*category*/
|
|
8737
|
-
ctx[
|
|
8822
|
+
ctx[59].id,
|
|
8738
8823
|
/*dropContainerId*/
|
|
8739
8824
|
ctx[6]
|
|
8740
|
-
)
|
|
8825
|
+
) && /*enableAriaLive*/
|
|
8826
|
+
ctx[18] ? "polite" : "off")) {
|
|
8741
8827
|
attr(div0, "aria-live", div0_aria_live_value);
|
|
8742
8828
|
}
|
|
8743
8829
|
if (!current || dirty[0] & /*dropContainerId, openCategoryContainer, considerContainerId, isDraggingOver, sourceSelectedContainerId, currentSelectedItemId*/
|
|
8744
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*/
|
|
8745
|
-
(ctx[
|
|
8831
|
+
(ctx[28](
|
|
8746
8832
|
/*category*/
|
|
8747
|
-
ctx[
|
|
8833
|
+
ctx[59].id,
|
|
8748
8834
|
/*dropContainerId*/
|
|
8749
8835
|
ctx[6]
|
|
8750
8836
|
) ? "bg-tranparent" : "bg-white") + " " + (!/*checkifCategoryContainerOpen*/
|
|
8751
|
-
ctx[
|
|
8837
|
+
ctx[33](
|
|
8752
8838
|
/*category*/
|
|
8753
|
-
ctx[
|
|
8839
|
+
ctx[59].id,
|
|
8754
8840
|
/*openCategoryContainer*/
|
|
8755
8841
|
ctx[13]
|
|
8756
8842
|
) && /*checkContainerDragOver*/
|
|
8757
|
-
ctx[
|
|
8843
|
+
ctx[27](
|
|
8758
8844
|
/*category*/
|
|
8759
|
-
ctx[
|
|
8845
|
+
ctx[59].id,
|
|
8760
8846
|
/*considerContainerId*/
|
|
8761
8847
|
ctx[4],
|
|
8762
8848
|
/*isDraggingOver*/
|
|
8763
8849
|
ctx[5]
|
|
8764
8850
|
) ? "!bg-violet-100 md:!bg-white" : "") + " " + /*checkifCategoryContainerOpen*/
|
|
8765
|
-
(ctx[
|
|
8851
|
+
(ctx[33](
|
|
8766
8852
|
/*category*/
|
|
8767
|
-
ctx[
|
|
8853
|
+
ctx[59].id,
|
|
8768
8854
|
/*openCategoryContainer*/
|
|
8769
8855
|
ctx[13]
|
|
8770
8856
|
) ? "" : "rounded-b-lg md:rounded-b-none") + " " + (!/*checkifCategoryContainerOpen*/
|
|
8771
|
-
ctx[
|
|
8857
|
+
ctx[33](
|
|
8772
8858
|
/*category*/
|
|
8773
|
-
ctx[
|
|
8859
|
+
ctx[59].id,
|
|
8774
8860
|
/*openCategoryContainer*/
|
|
8775
8861
|
ctx[13]
|
|
8776
8862
|
) && /*checkSelectedSourceContainer*/
|
|
8777
|
-
ctx[
|
|
8863
|
+
ctx[29](
|
|
8778
8864
|
/*category*/
|
|
8779
|
-
ctx[
|
|
8865
|
+
ctx[59].id,
|
|
8780
8866
|
/*sourceSelectedContainerId*/
|
|
8781
8867
|
ctx[8],
|
|
8782
8868
|
/*currentSelectedItemId*/
|
|
@@ -8788,47 +8874,47 @@
|
|
|
8788
8874
|
if (dirty[0] & /*considerContainerId, isDraggingOver, openCategoryContainer*/
|
|
8789
8875
|
8240)
|
|
8790
8876
|
promptcategorisedndcontainer_changes.containerClass = "content-start !outline-none rounded-lg grow w-full md:p-4\n " + /*checkContainerDragOver*/
|
|
8791
|
-
(ctx[
|
|
8877
|
+
(ctx[27](
|
|
8792
8878
|
/*category*/
|
|
8793
|
-
ctx[
|
|
8879
|
+
ctx[59].id,
|
|
8794
8880
|
/*considerContainerId*/
|
|
8795
8881
|
ctx[4],
|
|
8796
8882
|
/*isDraggingOver*/
|
|
8797
8883
|
ctx[5]
|
|
8798
8884
|
) ? "bg-violet-100" : "") + "\n " + /*checkifCategoryContainerOpen*/
|
|
8799
|
-
(ctx[
|
|
8885
|
+
(ctx[33](
|
|
8800
8886
|
/*category*/
|
|
8801
|
-
ctx[
|
|
8887
|
+
ctx[59].id,
|
|
8802
8888
|
/*openCategoryContainer*/
|
|
8803
8889
|
ctx[13]
|
|
8804
8890
|
) ? "h-full p-3 min-h-[86px] md:min-h-0" : "");
|
|
8805
8891
|
if (dirty[0] & /*openCategoryContainer, categoryTitleHeight*/
|
|
8806
|
-
|
|
8892
|
+
2105344)
|
|
8807
8893
|
promptcategorisedndcontainer_changes.paddingTop = /*checkifCategoryContainerOpen*/
|
|
8808
|
-
ctx[
|
|
8894
|
+
ctx[33](
|
|
8809
8895
|
/*category*/
|
|
8810
|
-
ctx[
|
|
8896
|
+
ctx[59].id,
|
|
8811
8897
|
/*openCategoryContainer*/
|
|
8812
8898
|
ctx[13]
|
|
8813
8899
|
) || !useIsSmallScreen() ? (
|
|
8814
8900
|
/*categoryTitleHeight*/
|
|
8815
|
-
ctx[
|
|
8901
|
+
ctx[21][
|
|
8816
8902
|
/*category*/
|
|
8817
|
-
ctx[
|
|
8903
|
+
ctx[59].id
|
|
8818
8904
|
] + 16
|
|
8819
8905
|
) : (
|
|
8820
8906
|
/*categoryTitleHeight*/
|
|
8821
|
-
ctx[
|
|
8907
|
+
ctx[21][
|
|
8822
8908
|
/*category*/
|
|
8823
|
-
ctx[
|
|
8909
|
+
ctx[59].id
|
|
8824
8910
|
]
|
|
8825
8911
|
);
|
|
8826
8912
|
if (dirty[0] & /*openCategoryContainer*/
|
|
8827
8913
|
8192)
|
|
8828
8914
|
promptcategorisedndcontainer_changes.showButton = /*checkifCategoryContainerOpen*/
|
|
8829
|
-
ctx[
|
|
8915
|
+
ctx[33](
|
|
8830
8916
|
/*category*/
|
|
8831
|
-
ctx[
|
|
8917
|
+
ctx[59].id,
|
|
8832
8918
|
/*openCategoryContainer*/
|
|
8833
8919
|
ctx[13]
|
|
8834
8920
|
);
|
|
@@ -8861,60 +8947,60 @@
|
|
|
8861
8947
|
}
|
|
8862
8948
|
if (!current || dirty[0] & /*considerContainerId, isDraggingOver, dropContainerId, hasAddItemAnimation, sourceSelectedContainerId, currentSelectedItemId, openCategoryContainer*/
|
|
8863
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*/
|
|
8864
|
-
(ctx[
|
|
8950
|
+
(ctx[27](
|
|
8865
8951
|
/*category*/
|
|
8866
|
-
ctx[
|
|
8952
|
+
ctx[59].id,
|
|
8867
8953
|
/*considerContainerId*/
|
|
8868
8954
|
ctx[4],
|
|
8869
8955
|
/*isDraggingOver*/
|
|
8870
8956
|
ctx[5]
|
|
8871
8957
|
) ? "raw-focus-ring" : "") + " " + /*checkContainerDroppedItem*/
|
|
8872
|
-
(ctx[
|
|
8958
|
+
(ctx[28](
|
|
8873
8959
|
/*category*/
|
|
8874
|
-
ctx[
|
|
8960
|
+
ctx[59].id,
|
|
8875
8961
|
/*dropContainerId*/
|
|
8876
8962
|
ctx[6]
|
|
8877
8963
|
) ? "bg-violet-150" : "") + " " + /*checkContainerDroppedItem*/
|
|
8878
|
-
(ctx[
|
|
8964
|
+
(ctx[28](
|
|
8879
8965
|
/*category*/
|
|
8880
|
-
ctx[
|
|
8966
|
+
ctx[59].id,
|
|
8881
8967
|
/*dropContainerId*/
|
|
8882
8968
|
ctx[6]
|
|
8883
8969
|
) && /*hasAddItemAnimation*/
|
|
8884
8970
|
ctx[11] ? "transition bg-white duration-300" : "") + " " + /*checkSelectedSourceContainer*/
|
|
8885
|
-
(ctx[
|
|
8971
|
+
(ctx[29](
|
|
8886
8972
|
/*category*/
|
|
8887
|
-
ctx[
|
|
8973
|
+
ctx[59].id,
|
|
8888
8974
|
/*sourceSelectedContainerId*/
|
|
8889
8975
|
ctx[8],
|
|
8890
8976
|
/*currentSelectedItemId*/
|
|
8891
8977
|
ctx[7]
|
|
8892
8978
|
) ? "hover:bg-violet-100 hover-focus-ring cursor-pointer" : "") + " " + /*checkifCategoryContainerOpen*/
|
|
8893
|
-
(ctx[
|
|
8979
|
+
(ctx[33](
|
|
8894
8980
|
/*category*/
|
|
8895
|
-
ctx[
|
|
8981
|
+
ctx[59].id,
|
|
8896
8982
|
/*openCategoryContainer*/
|
|
8897
8983
|
ctx[13]
|
|
8898
8984
|
) ? "min-h-[140px]" : ""))) {
|
|
8899
8985
|
attr(div1, "class", div1_class_value);
|
|
8900
8986
|
}
|
|
8901
8987
|
if (category !== /*category*/
|
|
8902
|
-
ctx[
|
|
8988
|
+
ctx[59]) {
|
|
8903
8989
|
unassign_div1();
|
|
8904
8990
|
category = /*category*/
|
|
8905
|
-
ctx[
|
|
8991
|
+
ctx[59];
|
|
8906
8992
|
assign_div1();
|
|
8907
8993
|
}
|
|
8908
8994
|
},
|
|
8909
8995
|
i(local) {
|
|
8910
8996
|
if (current)
|
|
8911
8997
|
return;
|
|
8912
|
-
transition_in(
|
|
8998
|
+
transition_in(if_block3);
|
|
8913
8999
|
transition_in(promptcategorisedndcontainer.$$.fragment, local);
|
|
8914
9000
|
current = true;
|
|
8915
9001
|
},
|
|
8916
9002
|
o(local) {
|
|
8917
|
-
transition_out(
|
|
9003
|
+
transition_out(if_block3);
|
|
8918
9004
|
transition_out(promptcategorisedndcontainer.$$.fragment, local);
|
|
8919
9005
|
current = false;
|
|
8920
9006
|
},
|
|
@@ -8926,6 +9012,8 @@
|
|
|
8926
9012
|
if_block0.d();
|
|
8927
9013
|
if (if_block1)
|
|
8928
9014
|
if_block1.d();
|
|
9015
|
+
if (if_block2)
|
|
9016
|
+
if_block2.d();
|
|
8929
9017
|
if_blocks[current_block_type_index].d();
|
|
8930
9018
|
div0_resize_listener();
|
|
8931
9019
|
destroy_component(promptcategorisedndcontainer);
|
|
@@ -8991,7 +9079,7 @@
|
|
|
8991
9079
|
let div2;
|
|
8992
9080
|
let show_if = (
|
|
8993
9081
|
/*checkContainerDroppedItem*/
|
|
8994
|
-
ctx[
|
|
9082
|
+
ctx[28](
|
|
8995
9083
|
CONTAINER_WORD_BIN_ID,
|
|
8996
9084
|
/*dropContainerId*/
|
|
8997
9085
|
ctx[6]
|
|
@@ -9028,17 +9116,17 @@
|
|
|
9028
9116
|
arrowdowncircle = new ArrowDownCircle_default({});
|
|
9029
9117
|
let if_block0 = (
|
|
9030
9118
|
/*isModalOpen*/
|
|
9031
|
-
ctx[12] &&
|
|
9119
|
+
ctx[12] && create_if_block_6(ctx)
|
|
9032
9120
|
);
|
|
9033
9121
|
let if_block1 = (
|
|
9034
9122
|
/*totalRemainingWordBinItem*/
|
|
9035
9123
|
ctx[10] !== /*totalCategoryItems*/
|
|
9036
9124
|
ctx[3] && !/*isFinished*/
|
|
9037
|
-
ctx[0] &&
|
|
9125
|
+
ctx[0] && create_if_block_5(ctx)
|
|
9038
9126
|
);
|
|
9039
9127
|
let each_value = ensure_array_like(Object.values(
|
|
9040
9128
|
/*categoryGroups*/
|
|
9041
|
-
ctx[
|
|
9129
|
+
ctx[26]
|
|
9042
9130
|
));
|
|
9043
9131
|
let each_blocks = [];
|
|
9044
9132
|
for (let i = 0; i < each_value.length; i += 1) {
|
|
@@ -9052,14 +9140,14 @@
|
|
|
9052
9140
|
promptcategorisedndcontainer = new PromptCategoriseDndContainer_default({
|
|
9053
9141
|
props: {
|
|
9054
9142
|
containerClass: "bg-transparent p-4 pt-[55px] grow md:grow-0 md:pt-20.5 justify-center md:justify-normal\n " + /*isWordBInTotalZero*/
|
|
9055
|
-
(ctx[
|
|
9143
|
+
(ctx[35](
|
|
9056
9144
|
/*totalRemainingWordBinItem*/
|
|
9057
9145
|
ctx[10]
|
|
9058
9146
|
) && !/*currentSelectedItemId*/
|
|
9059
9147
|
ctx[7] ? "absolute inset-0" : ""),
|
|
9060
9148
|
items: (
|
|
9061
9149
|
/*categoryItems*/
|
|
9062
|
-
ctx[
|
|
9150
|
+
ctx[25]
|
|
9063
9151
|
),
|
|
9064
9152
|
containerId: CONTAINER_WORD_BIN_ID,
|
|
9065
9153
|
ariaLabel: "Word bin",
|
|
@@ -9069,7 +9157,7 @@
|
|
|
9069
9157
|
),
|
|
9070
9158
|
correctAnswerList: (
|
|
9071
9159
|
/*scoringMetadata*/
|
|
9072
|
-
ctx[
|
|
9160
|
+
ctx[23]
|
|
9073
9161
|
),
|
|
9074
9162
|
isPreviewModeInteractive: (
|
|
9075
9163
|
/*isPreviewModeInteractive*/
|
|
@@ -9080,7 +9168,7 @@
|
|
|
9080
9168
|
promptcategorisedndcontainer.$on(
|
|
9081
9169
|
"saveCategory",
|
|
9082
9170
|
/*saveCategory*/
|
|
9083
|
-
ctx[
|
|
9171
|
+
ctx[36]
|
|
9084
9172
|
);
|
|
9085
9173
|
smallchevronright = new SmallChevronRight_default({});
|
|
9086
9174
|
return {
|
|
@@ -9113,7 +9201,7 @@
|
|
|
9113
9201
|
if_block2.c();
|
|
9114
9202
|
t8 = space();
|
|
9115
9203
|
span2 = element("span");
|
|
9116
|
-
span2.textContent = "Word Bin
|
|
9204
|
+
span2.textContent = "Word Bin.\xA0";
|
|
9117
9205
|
t10 = space();
|
|
9118
9206
|
span3 = element("span");
|
|
9119
9207
|
t11 = text(
|
|
@@ -9162,7 +9250,7 @@
|
|
|
9162
9250
|
attr(span4, "class", "w-6 h-6 text-inherit flex items-center justify-center");
|
|
9163
9251
|
attr(button1, "aria-label", "Left");
|
|
9164
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*/
|
|
9165
|
-
(ctx[
|
|
9253
|
+
(ctx[35](
|
|
9166
9254
|
/*totalRemainingWordBinItem*/
|
|
9167
9255
|
ctx[10]
|
|
9168
9256
|
) ? "hidden" : ""));
|
|
@@ -9171,7 +9259,7 @@
|
|
|
9171
9259
|
attr(span5, "class", "w-6 h-6 text-inherit flex items-center justify-center ml-[3px]");
|
|
9172
9260
|
attr(button2, "aria-label", "Right");
|
|
9173
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*/
|
|
9174
|
-
(ctx[
|
|
9262
|
+
(ctx[35](
|
|
9175
9263
|
/*totalRemainingWordBinItem*/
|
|
9176
9264
|
ctx[10]
|
|
9177
9265
|
) ? "hidden" : ""));
|
|
@@ -9192,32 +9280,32 @@
|
|
|
9192
9280
|
ctx[15]
|
|
9193
9281
|
);
|
|
9194
9282
|
attr(div4, "aria-live", div4_aria_live_value = /*checkContainerDroppedItem*/
|
|
9195
|
-
ctx[
|
|
9283
|
+
ctx[28](
|
|
9196
9284
|
CONTAINER_WORD_BIN_ID,
|
|
9197
9285
|
/*dropContainerId*/
|
|
9198
9286
|
ctx[6]
|
|
9199
9287
|
) ? "polite" : "off");
|
|
9200
9288
|
attr(div4, "role", "group");
|
|
9201
9289
|
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*/
|
|
9202
|
-
(ctx[
|
|
9290
|
+
(ctx[27](
|
|
9203
9291
|
CONTAINER_WORD_BIN_ID,
|
|
9204
9292
|
/*considerContainerId*/
|
|
9205
9293
|
ctx[4],
|
|
9206
9294
|
/*isDraggingOver*/
|
|
9207
9295
|
ctx[5]
|
|
9208
9296
|
) ? "raw-focus-ring bg-violet-100" : "") + " " + /*checkContainerDroppedItem*/
|
|
9209
|
-
(ctx[
|
|
9297
|
+
(ctx[28](
|
|
9210
9298
|
CONTAINER_WORD_BIN_ID,
|
|
9211
9299
|
/*dropContainerId*/
|
|
9212
9300
|
ctx[6]
|
|
9213
9301
|
) ? "bg-violet-150" : "") + " " + /*checkContainerDroppedItem*/
|
|
9214
|
-
(ctx[
|
|
9302
|
+
(ctx[28](
|
|
9215
9303
|
CONTAINER_WORD_BIN_ID,
|
|
9216
9304
|
/*dropContainerId*/
|
|
9217
9305
|
ctx[6]
|
|
9218
9306
|
) && /*hasAddItemAnimation*/
|
|
9219
9307
|
ctx[11] ? "transition bg-white duration-300" : "") + " " + /*checkSelectedSourceContainer*/
|
|
9220
|
-
(ctx[
|
|
9308
|
+
(ctx[29](
|
|
9221
9309
|
CONTAINER_WORD_BIN_ID,
|
|
9222
9310
|
/*sourceSelectedContainerId*/
|
|
9223
9311
|
ctx[8],
|
|
@@ -9271,7 +9359,7 @@
|
|
|
9271
9359
|
append(div3, button2);
|
|
9272
9360
|
append(button2, span5);
|
|
9273
9361
|
mount_component(smallchevronright, span5, null);
|
|
9274
|
-
ctx[
|
|
9362
|
+
ctx[49](div4);
|
|
9275
9363
|
current = true;
|
|
9276
9364
|
if (!mounted) {
|
|
9277
9365
|
dispose = [
|
|
@@ -9279,7 +9367,7 @@
|
|
|
9279
9367
|
button0,
|
|
9280
9368
|
"keypress",
|
|
9281
9369
|
/*goToWordBin*/
|
|
9282
|
-
ctx[
|
|
9370
|
+
ctx[39]
|
|
9283
9371
|
),
|
|
9284
9372
|
listen(button1, "click", function() {
|
|
9285
9373
|
if (is_function(useNavigateItem(
|
|
@@ -9317,13 +9405,19 @@
|
|
|
9317
9405
|
div4,
|
|
9318
9406
|
"keydown",
|
|
9319
9407
|
/*keydown_handler_1*/
|
|
9320
|
-
ctx[
|
|
9408
|
+
ctx[47]
|
|
9321
9409
|
),
|
|
9322
9410
|
listen(
|
|
9323
9411
|
div4,
|
|
9324
9412
|
"focus",
|
|
9325
9413
|
/*resetTabCategory*/
|
|
9326
|
-
ctx[
|
|
9414
|
+
ctx[38]
|
|
9415
|
+
),
|
|
9416
|
+
listen(
|
|
9417
|
+
div4,
|
|
9418
|
+
"blur",
|
|
9419
|
+
/*blur_handler_1*/
|
|
9420
|
+
ctx[48]
|
|
9327
9421
|
)
|
|
9328
9422
|
];
|
|
9329
9423
|
mounted = true;
|
|
@@ -9351,7 +9445,7 @@
|
|
|
9351
9445
|
transition_in(if_block0, 1);
|
|
9352
9446
|
}
|
|
9353
9447
|
} else {
|
|
9354
|
-
if_block0 =
|
|
9448
|
+
if_block0 = create_if_block_6(ctx);
|
|
9355
9449
|
if_block0.c();
|
|
9356
9450
|
transition_in(if_block0, 1);
|
|
9357
9451
|
if_block0.m(t3.parentNode, t3);
|
|
@@ -9376,7 +9470,7 @@
|
|
|
9376
9470
|
transition_in(if_block1, 1);
|
|
9377
9471
|
}
|
|
9378
9472
|
} else {
|
|
9379
|
-
if_block1 =
|
|
9473
|
+
if_block1 = create_if_block_5(ctx);
|
|
9380
9474
|
if_block1.c();
|
|
9381
9475
|
transition_in(if_block1, 1);
|
|
9382
9476
|
if_block1.m(div0, null);
|
|
@@ -9397,12 +9491,12 @@
|
|
|
9397
9491
|
ctx[12]
|
|
9398
9492
|
);
|
|
9399
9493
|
}
|
|
9400
|
-
if (dirty[0] & /*isModalOpen, categoryTabIndex, checkContainerDragOver, categoryGroups, considerContainerId, isDraggingOver, checkContainerDroppedItem, dropContainerId, hasAddItemAnimation, checkSelectedSourceContainer, sourceSelectedContainerId, currentSelectedItemId,
|
|
9401
|
-
|
|
9402
|
-
|
|
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) {
|
|
9403
9497
|
each_value = ensure_array_like(Object.values(
|
|
9404
9498
|
/*categoryGroups*/
|
|
9405
|
-
ctx[
|
|
9499
|
+
ctx[26]
|
|
9406
9500
|
));
|
|
9407
9501
|
let i;
|
|
9408
9502
|
for (i = 0; i < each_value.length; i += 1) {
|
|
@@ -9426,7 +9520,7 @@
|
|
|
9426
9520
|
if (dirty[0] & /*dropContainerId*/
|
|
9427
9521
|
64)
|
|
9428
9522
|
show_if = /*checkContainerDroppedItem*/
|
|
9429
|
-
ctx[
|
|
9523
|
+
ctx[28](
|
|
9430
9524
|
CONTAINER_WORD_BIN_ID,
|
|
9431
9525
|
/*dropContainerId*/
|
|
9432
9526
|
ctx[6]
|
|
@@ -9459,7 +9553,7 @@
|
|
|
9459
9553
|
);
|
|
9460
9554
|
if (!current || dirty[0] & /*totalRemainingWordBinItem*/
|
|
9461
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*/
|
|
9462
|
-
(ctx[
|
|
9556
|
+
(ctx[35](
|
|
9463
9557
|
/*totalRemainingWordBinItem*/
|
|
9464
9558
|
ctx[10]
|
|
9465
9559
|
) ? "hidden" : ""))) {
|
|
@@ -9474,7 +9568,7 @@
|
|
|
9474
9568
|
if (dirty[0] & /*totalRemainingWordBinItem, currentSelectedItemId*/
|
|
9475
9569
|
1152)
|
|
9476
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*/
|
|
9477
|
-
(ctx[
|
|
9571
|
+
(ctx[35](
|
|
9478
9572
|
/*totalRemainingWordBinItem*/
|
|
9479
9573
|
ctx[10]
|
|
9480
9574
|
) && !/*currentSelectedItemId*/
|
|
@@ -9490,7 +9584,7 @@
|
|
|
9490
9584
|
promptcategorisedndcontainer.$set(promptcategorisedndcontainer_changes);
|
|
9491
9585
|
if (!current || dirty[0] & /*totalRemainingWordBinItem*/
|
|
9492
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*/
|
|
9493
|
-
(ctx[
|
|
9587
|
+
(ctx[35](
|
|
9494
9588
|
/*totalRemainingWordBinItem*/
|
|
9495
9589
|
ctx[10]
|
|
9496
9590
|
) ? "hidden" : ""))) {
|
|
@@ -9522,7 +9616,7 @@
|
|
|
9522
9616
|
}
|
|
9523
9617
|
if (!current || dirty[0] & /*dropContainerId*/
|
|
9524
9618
|
64 && div4_aria_live_value !== (div4_aria_live_value = /*checkContainerDroppedItem*/
|
|
9525
|
-
ctx[
|
|
9619
|
+
ctx[28](
|
|
9526
9620
|
CONTAINER_WORD_BIN_ID,
|
|
9527
9621
|
/*dropContainerId*/
|
|
9528
9622
|
ctx[6]
|
|
@@ -9531,25 +9625,25 @@
|
|
|
9531
9625
|
}
|
|
9532
9626
|
if (!current || dirty[0] & /*considerContainerId, isDraggingOver, dropContainerId, hasAddItemAnimation, sourceSelectedContainerId, currentSelectedItemId*/
|
|
9533
9627
|
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[
|
|
9628
|
+
(ctx[27](
|
|
9535
9629
|
CONTAINER_WORD_BIN_ID,
|
|
9536
9630
|
/*considerContainerId*/
|
|
9537
9631
|
ctx[4],
|
|
9538
9632
|
/*isDraggingOver*/
|
|
9539
9633
|
ctx[5]
|
|
9540
9634
|
) ? "raw-focus-ring bg-violet-100" : "") + " " + /*checkContainerDroppedItem*/
|
|
9541
|
-
(ctx[
|
|
9635
|
+
(ctx[28](
|
|
9542
9636
|
CONTAINER_WORD_BIN_ID,
|
|
9543
9637
|
/*dropContainerId*/
|
|
9544
9638
|
ctx[6]
|
|
9545
9639
|
) ? "bg-violet-150" : "") + " " + /*checkContainerDroppedItem*/
|
|
9546
|
-
(ctx[
|
|
9640
|
+
(ctx[28](
|
|
9547
9641
|
CONTAINER_WORD_BIN_ID,
|
|
9548
9642
|
/*dropContainerId*/
|
|
9549
9643
|
ctx[6]
|
|
9550
9644
|
) && /*hasAddItemAnimation*/
|
|
9551
9645
|
ctx[11] ? "transition bg-white duration-300" : "") + " " + /*checkSelectedSourceContainer*/
|
|
9552
|
-
(ctx[
|
|
9646
|
+
(ctx[29](
|
|
9553
9647
|
CONTAINER_WORD_BIN_ID,
|
|
9554
9648
|
/*sourceSelectedContainerId*/
|
|
9555
9649
|
ctx[8],
|
|
@@ -9608,7 +9702,7 @@
|
|
|
9608
9702
|
destroy_component(smallchevronleft);
|
|
9609
9703
|
destroy_component(promptcategorisedndcontainer);
|
|
9610
9704
|
destroy_component(smallchevronright);
|
|
9611
|
-
ctx[
|
|
9705
|
+
ctx[49](null);
|
|
9612
9706
|
mounted = false;
|
|
9613
9707
|
run_all(dispose);
|
|
9614
9708
|
}
|
|
@@ -9622,11 +9716,11 @@
|
|
|
9622
9716
|
props: {
|
|
9623
9717
|
rubric: (
|
|
9624
9718
|
/*rubric*/
|
|
9625
|
-
ctx[
|
|
9719
|
+
ctx[22].text
|
|
9626
9720
|
),
|
|
9627
9721
|
prompt: (
|
|
9628
9722
|
/*prompt*/
|
|
9629
|
-
ctx[
|
|
9723
|
+
ctx[24]
|
|
9630
9724
|
),
|
|
9631
9725
|
$$slots: { default: [create_default_slot4] },
|
|
9632
9726
|
$$scope: { ctx }
|
|
@@ -9641,14 +9735,14 @@
|
|
|
9641
9735
|
m(target, anchor) {
|
|
9642
9736
|
insert(target, div, anchor);
|
|
9643
9737
|
mount_component(promptbody, div, null);
|
|
9644
|
-
ctx[
|
|
9738
|
+
ctx[50](div);
|
|
9645
9739
|
current = true;
|
|
9646
9740
|
},
|
|
9647
9741
|
p(ctx2, dirty) {
|
|
9648
9742
|
const promptbody_changes = {};
|
|
9649
|
-
if (dirty[0] & /*isModalOpen, categoryTabIndex, dropContainerId, considerContainerId, isDraggingOver, hasAddItemAnimation, sourceSelectedContainerId, currentSelectedItemId, tabCategory, totalRemainingWordBinItem, currentWordBinIndex, currentAnswer, isFinished, isPreviewModeInteractive, totalCategoryItems, selectedItemName, openCategoryContainer, categoryTitleHeight, previewResultSr*/
|
|
9650
|
-
|
|
9651
|
-
|
|
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) {
|
|
9652
9746
|
promptbody_changes.$$scope = { dirty, ctx: ctx2 };
|
|
9653
9747
|
}
|
|
9654
9748
|
promptbody.$set(promptbody_changes);
|
|
@@ -9668,7 +9762,7 @@
|
|
|
9668
9762
|
detach(div);
|
|
9669
9763
|
}
|
|
9670
9764
|
destroy_component(promptbody);
|
|
9671
|
-
ctx[
|
|
9765
|
+
ctx[50](null);
|
|
9672
9766
|
}
|
|
9673
9767
|
};
|
|
9674
9768
|
}
|
|
@@ -9695,12 +9789,14 @@
|
|
|
9695
9789
|
let categoryTabIndex = 0;
|
|
9696
9790
|
let selectedItemName = "";
|
|
9697
9791
|
let previewResultSr = "";
|
|
9792
|
+
let enableAriaLive = true;
|
|
9793
|
+
const totalCategoryWords = [];
|
|
9698
9794
|
const { rubric, interaction, metadata, scoringMetadata } = sessionData;
|
|
9699
9795
|
const { prompt, category_groups: interactionCategoryGroups, category_items: interactionCategoryItems } = interaction;
|
|
9700
9796
|
const categoryItems = useFilterUniqueObject(interactionCategoryItems);
|
|
9701
9797
|
const categoryGroups = useFilterUniqueObject(interactionCategoryGroups);
|
|
9702
9798
|
const tabCategory = [];
|
|
9703
|
-
categoryGroups.map((group) => $$invalidate(
|
|
9799
|
+
categoryGroups.map((group) => $$invalidate(20, tabCategory[group.id] = false, tabCategory));
|
|
9704
9800
|
totalCategoryItems = totalRemainingWordBinItem = Object.keys(categoryItems).length;
|
|
9705
9801
|
let wordBinItems = categoryItems.map((item) => item.id);
|
|
9706
9802
|
let initialCategoryAnswer = [
|
|
@@ -9711,7 +9807,7 @@
|
|
|
9711
9807
|
];
|
|
9712
9808
|
let categoryTitleHeight = [];
|
|
9713
9809
|
categoryGroups.map((category) => {
|
|
9714
|
-
$$invalidate(
|
|
9810
|
+
$$invalidate(21, categoryTitleHeight[category.id] = "", categoryTitleHeight);
|
|
9715
9811
|
});
|
|
9716
9812
|
if (metadata) {
|
|
9717
9813
|
const { events } = metadata.interactions;
|
|
@@ -9802,8 +9898,19 @@
|
|
|
9802
9898
|
$$invalidate(16, selectedItemName = storeSelectedItemName);
|
|
9803
9899
|
$$invalidate(17, previewResultSr = storepreviewResultSr);
|
|
9804
9900
|
$$invalidate(15, categoryTabIndex = storeSelectedItemId.length ? -1 : 0);
|
|
9805
|
-
|
|
9806
|
-
|
|
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]);
|
|
9807
9914
|
if (lastSelectedTabContainer) {
|
|
9808
9915
|
setTimeout(
|
|
9809
9916
|
() => {
|
|
@@ -9816,6 +9923,29 @@
|
|
|
9816
9923
|
150
|
|
9817
9924
|
);
|
|
9818
9925
|
}
|
|
9926
|
+
if (previewResultSr) {
|
|
9927
|
+
setTimeout(
|
|
9928
|
+
() => {
|
|
9929
|
+
$$invalidate(18, enableAriaLive = false);
|
|
9930
|
+
},
|
|
9931
|
+
400
|
|
9932
|
+
);
|
|
9933
|
+
setTimeout(
|
|
9934
|
+
() => {
|
|
9935
|
+
categoriseSettings.set({
|
|
9936
|
+
...get_store_value(categoriseSettings),
|
|
9937
|
+
previewResultSr: ""
|
|
9938
|
+
});
|
|
9939
|
+
setTimeout(
|
|
9940
|
+
() => {
|
|
9941
|
+
$$invalidate(18, enableAriaLive = true);
|
|
9942
|
+
},
|
|
9943
|
+
400
|
|
9944
|
+
);
|
|
9945
|
+
},
|
|
9946
|
+
600
|
|
9947
|
+
);
|
|
9948
|
+
}
|
|
9819
9949
|
});
|
|
9820
9950
|
const checkContainerDragOver = (containerId, storeContainerId, isContainerDragOver) => {
|
|
9821
9951
|
return containerId === storeContainerId && isContainerDragOver && sourceCloneContainerId !== containerId;
|
|
@@ -9831,7 +9961,7 @@
|
|
|
9831
9961
|
};
|
|
9832
9962
|
const getTotalWords = (categoryId, currentAnswerData) => {
|
|
9833
9963
|
let totalWords = 0;
|
|
9834
|
-
const category = currentAnswerData
|
|
9964
|
+
const category = currentAnswerData?.filter((answer) => answer.categoryId === categoryId)[0];
|
|
9835
9965
|
if (category) {
|
|
9836
9966
|
const categoryItems2 = category.itemId;
|
|
9837
9967
|
totalWords = categoryItems2.length;
|
|
@@ -9843,6 +9973,10 @@
|
|
|
9843
9973
|
totalWords = items.length;
|
|
9844
9974
|
}
|
|
9845
9975
|
}
|
|
9976
|
+
return getTotalWordsLabel(totalWords);
|
|
9977
|
+
};
|
|
9978
|
+
const getTotalWordsLabel = (total) => {
|
|
9979
|
+
const totalWords = total || 0;
|
|
9846
9980
|
return `${totalWords} ${totalWords === 1 ? "word" : "words"}`;
|
|
9847
9981
|
};
|
|
9848
9982
|
const checkifCategoryContainerOpen = (categoryId, openCategoryContainer2) => {
|
|
@@ -9889,28 +10023,37 @@
|
|
|
9889
10023
|
categoriseSettings.set({
|
|
9890
10024
|
...get_store_value(categoriseSettings),
|
|
9891
10025
|
currentTabContainer: "",
|
|
9892
|
-
lastSelectedTabContainer: ""
|
|
10026
|
+
lastSelectedTabContainer: "",
|
|
10027
|
+
isItemsAriaHidden: true
|
|
9893
10028
|
});
|
|
9894
10029
|
};
|
|
9895
10030
|
const goToWordBin = () => {
|
|
9896
10031
|
tabCategory[CONTAINER_WORD_BIN_ID].focus();
|
|
9897
10032
|
};
|
|
10033
|
+
const handleItemAriaHidden = (type) => {
|
|
10034
|
+
categoriseSettings.set({
|
|
10035
|
+
...get_store_value(categoriseSettings),
|
|
10036
|
+
isItemsAriaHidden: type
|
|
10037
|
+
});
|
|
10038
|
+
};
|
|
9898
10039
|
function div0_elementresize_handler(category) {
|
|
9899
10040
|
categoryTitleHeight[category.id] = this.clientHeight;
|
|
9900
|
-
$$invalidate(
|
|
10041
|
+
$$invalidate(21, categoryTitleHeight);
|
|
9901
10042
|
}
|
|
9902
10043
|
const keydown_handler = (category, { key }) => getContainerTabSelected(key, category.id);
|
|
10044
|
+
const blur_handler = () => handleItemAriaHidden(false);
|
|
9903
10045
|
function div1_binding($$value, category) {
|
|
9904
10046
|
binding_callbacks[$$value ? "unshift" : "push"](() => {
|
|
9905
10047
|
tabCategory[category.id] = $$value;
|
|
9906
|
-
$$invalidate(
|
|
10048
|
+
$$invalidate(20, tabCategory);
|
|
9907
10049
|
});
|
|
9908
10050
|
}
|
|
9909
10051
|
const keydown_handler_1 = ({ key }) => getContainerTabSelected(key, CONTAINER_WORD_BIN_ID);
|
|
10052
|
+
const blur_handler_1 = () => handleItemAriaHidden(false);
|
|
9910
10053
|
function div4_binding($$value) {
|
|
9911
10054
|
binding_callbacks[$$value ? "unshift" : "push"](() => {
|
|
9912
10055
|
tabCategory[CONTAINER_WORD_BIN_ID] = $$value;
|
|
9913
|
-
$$invalidate(
|
|
10056
|
+
$$invalidate(20, tabCategory);
|
|
9914
10057
|
});
|
|
9915
10058
|
}
|
|
9916
10059
|
function div_binding($$value) {
|
|
@@ -9921,11 +10064,11 @@
|
|
|
9921
10064
|
}
|
|
9922
10065
|
$$self.$$set = ($$props2) => {
|
|
9923
10066
|
if ("sessionData" in $$props2)
|
|
9924
|
-
$$invalidate(
|
|
10067
|
+
$$invalidate(41, sessionData = $$props2.sessionData);
|
|
9925
10068
|
if ("isFinished" in $$props2)
|
|
9926
10069
|
$$invalidate(0, isFinished = $$props2.isFinished);
|
|
9927
10070
|
if ("isPreviewMode" in $$props2)
|
|
9928
|
-
$$invalidate(
|
|
10071
|
+
$$invalidate(42, isPreviewMode = $$props2.isPreviewMode);
|
|
9929
10072
|
if ("isPreviewModeInteractive" in $$props2)
|
|
9930
10073
|
$$invalidate(1, isPreviewModeInteractive = $$props2.isPreviewModeInteractive);
|
|
9931
10074
|
};
|
|
@@ -9948,6 +10091,8 @@
|
|
|
9948
10091
|
categoryTabIndex,
|
|
9949
10092
|
selectedItemName,
|
|
9950
10093
|
previewResultSr,
|
|
10094
|
+
enableAriaLive,
|
|
10095
|
+
totalCategoryWords,
|
|
9951
10096
|
tabCategory,
|
|
9952
10097
|
categoryTitleHeight,
|
|
9953
10098
|
rubric,
|
|
@@ -9960,6 +10105,7 @@
|
|
|
9960
10105
|
checkSelectedSourceContainer,
|
|
9961
10106
|
openResetModal,
|
|
9962
10107
|
getTotalWords,
|
|
10108
|
+
getTotalWordsLabel,
|
|
9963
10109
|
checkifCategoryContainerOpen,
|
|
9964
10110
|
addCategoryContainer,
|
|
9965
10111
|
isWordBInTotalZero,
|
|
@@ -9967,12 +10113,15 @@
|
|
|
9967
10113
|
getContainerTabSelected,
|
|
9968
10114
|
resetTabCategory,
|
|
9969
10115
|
goToWordBin,
|
|
10116
|
+
handleItemAriaHidden,
|
|
9970
10117
|
sessionData,
|
|
9971
10118
|
isPreviewMode,
|
|
9972
10119
|
div0_elementresize_handler,
|
|
9973
10120
|
keydown_handler,
|
|
10121
|
+
blur_handler,
|
|
9974
10122
|
div1_binding,
|
|
9975
10123
|
keydown_handler_1,
|
|
10124
|
+
blur_handler_1,
|
|
9976
10125
|
div4_binding,
|
|
9977
10126
|
div_binding
|
|
9978
10127
|
];
|
|
@@ -9987,17 +10136,17 @@
|
|
|
9987
10136
|
create_fragment21,
|
|
9988
10137
|
safe_not_equal,
|
|
9989
10138
|
{
|
|
9990
|
-
sessionData:
|
|
10139
|
+
sessionData: 41,
|
|
9991
10140
|
isFinished: 0,
|
|
9992
|
-
isPreviewMode:
|
|
10141
|
+
isPreviewMode: 42,
|
|
9993
10142
|
isPreviewModeInteractive: 1
|
|
9994
10143
|
},
|
|
9995
10144
|
null,
|
|
9996
|
-
[-1, -1]
|
|
10145
|
+
[-1, -1, -1]
|
|
9997
10146
|
);
|
|
9998
10147
|
}
|
|
9999
10148
|
get sessionData() {
|
|
10000
|
-
return this.$$.ctx[
|
|
10149
|
+
return this.$$.ctx[41];
|
|
10001
10150
|
}
|
|
10002
10151
|
set sessionData(sessionData) {
|
|
10003
10152
|
this.$$set({ sessionData });
|
|
@@ -10011,7 +10160,7 @@
|
|
|
10011
10160
|
flush();
|
|
10012
10161
|
}
|
|
10013
10162
|
get isPreviewMode() {
|
|
10014
|
-
return this.$$.ctx[
|
|
10163
|
+
return this.$$.ctx[42];
|
|
10015
10164
|
}
|
|
10016
10165
|
set isPreviewMode(isPreviewMode) {
|
|
10017
10166
|
this.$$set({ isPreviewMode });
|