eat-js-sdk 0.0.46 → 0.0.47

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.
@@ -5612,13 +5612,13 @@
5612
5612
  if (
5613
5613
  /*resultType*/
5614
5614
  ctx2[1] === ANSWER_CORRECT && !/*isWordItemSelected*/
5615
- ctx2[10]
5615
+ ctx2[9]
5616
5616
  )
5617
5617
  return 0;
5618
5618
  if (
5619
5619
  /*resultType*/
5620
5620
  ctx2[1] === ANSWER_INCORRECT && !/*isWordItemSelected*/
5621
- ctx2[10]
5621
+ ctx2[9]
5622
5622
  )
5623
5623
  return 1;
5624
5624
  if (
@@ -5653,58 +5653,52 @@
5653
5653
  if (if_block1)
5654
5654
  if_block1.c();
5655
5655
  attr(span0, "class", span0_class_value = "text-charcoal text-base pl-3 mr-4 " + /*isWordItemSelected*/
5656
- (ctx[10] ? "text-white" : ""));
5656
+ (ctx[9] ? "text-white" : ""));
5657
5657
  attr(span1, "class", span1_class_value = "w-full h-full relative rounded-lg " + (!/*currentSelectedItemId*/
5658
- ctx[9] && !/*disabledClick*/
5659
- ctx[6] ? "td:group-hover:bg-black td:group-hover:opacity-5" : ""));
5658
+ ctx[8] && !/*disabledClick*/
5659
+ ctx[5] ? "td:group-hover:bg-black td:group-hover:opacity-5" : ""));
5660
5660
  attr(span2, "class", "absolute");
5661
5661
  attr(div, "class", div_class_value = "group text-blue-1000 h-11 w-11 min-w-[44px] flex items-center justify-center btn-vertical-icon " + (!/*currentSelectedItemId*/
5662
- ctx[9] && !/*disabledClick*/
5663
- ctx[6] ? "td:hover:cursor-grab td:hover:text-soft-blue" : ""));
5662
+ ctx[8] && !/*disabledClick*/
5663
+ ctx[5] ? "td:hover:cursor-grab td:hover:text-soft-blue" : ""));
5664
5664
  attr(
5665
5665
  button,
5666
5666
  "id",
5667
5667
  /*wordButtonId*/
5668
5668
  ctx[3]
5669
5669
  );
5670
- attr(
5671
- button,
5672
- "tabindex",
5673
- /*tabIndex*/
5674
- ctx[5]
5675
- );
5676
5670
  attr(button, "aria-label", button_aria_label_value = /*resultType*/
5677
5671
  (ctx[1] === ANSWER_CORRECT || /*resultType*/
5678
5672
  ctx[1] === ANSWER_INCORRECT) && !/*isWordItemSelected*/
5679
- ctx[10] ? `Student's answer: ${/*word*/
5673
+ ctx[9] ? `Student's answer: ${/*word*/
5680
5674
  ctx[0]} (${/*resultType*/
5681
5675
  ctx[1]})` : (
5682
5676
  /*resultType*/
5683
5677
  ctx[1] === ANSWER_MISSED ? `Correct answer: ${/*word*/
5684
5678
  ctx[0]}` : `${/*isWordItemSelected*/
5685
- ctx[10] ? "Selected option" : "Option"}: ${/*word*/
5679
+ ctx[9] ? "Selected option" : "Option"}: ${/*word*/
5686
5680
  ctx[0]}`
5687
5681
  ));
5688
5682
  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
5683
  ctx[2] + " " + /*isClonedItem*/
5690
5684
  (ctx[4] ? "opacity-50 raw-focus-ring bg-violet-100" : "") + " " + /*considerCloneItemId*/
5691
- (ctx[8] === /*wordButtonId*/
5685
+ (ctx[7] === /*wordButtonId*/
5692
5686
  ctx[3] ? "hidden" : "") + " " + /*isWordItemSelected*/
5693
- (ctx[10] ? "bg-blue-1000 !border-blue-1000 raw-focus-ring !cursor-pointer" : "bg-gray-100") + " " + (!/*currentSelectedItemId*/
5694
- ctx[9] && !/*disabledClick*/
5695
- ctx[6] ? "td:hover-focus-ring td:hover:bg-violet-100 !cursor-pointer" : "!cursor-default") + " " + /*resultType*/
5687
+ (ctx[9] ? "bg-blue-1000 !border-blue-1000 raw-focus-ring !cursor-pointer" : "bg-gray-100") + " " + (!/*currentSelectedItemId*/
5688
+ ctx[8] && !/*disabledClick*/
5689
+ ctx[5] ? "td:hover-focus-ring td:hover:bg-violet-100 !cursor-pointer" : "!cursor-default") + " " + /*resultType*/
5696
5690
  (ctx[1] === ANSWER_CORRECT && !/*isWordItemSelected*/
5697
- ctx[10] ? "border-green-800 bg-green-300" : (
5691
+ ctx[9] ? "border-green-800 bg-green-300" : (
5698
5692
  /*resultType*/
5699
5693
  ctx[1] === ANSWER_INCORRECT && !/*isWordItemSelected*/
5700
- ctx[10] ? "border-red-800 bg-red-300" : (
5694
+ ctx[9] ? "border-red-800 bg-red-300" : (
5701
5695
  /*resultType*/
5702
5696
  ctx[1] === ANSWER_MISSED ? "border-green-800" : ""
5703
5697
  )
5704
5698
  )) + " " + /*resultType*/
5705
5699
  ((ctx[1] === ANSWER_CORRECT || /*resultType*/
5706
5700
  ctx[1] === ANSWER_INCORRECT) && !/*isWordItemSelected*/
5707
- ctx[10] ? "td:hover:border-gray-800" : ""));
5701
+ ctx[9] ? "td:hover:border-gray-800" : ""));
5708
5702
  },
5709
5703
  m(target, anchor) {
5710
5704
  insert(target, button, anchor);
@@ -5719,19 +5713,19 @@
5719
5713
  append(span2, t3);
5720
5714
  if (if_block1)
5721
5715
  if_block1.m(span2, null);
5722
- ctx[15](button);
5716
+ ctx[14](button);
5723
5717
  current = true;
5724
5718
  if (!mounted) {
5725
5719
  dispose = [
5726
5720
  listen(button, "click", stop_propagation(function() {
5727
5721
  if (is_function(
5728
5722
  /*selectItem*/
5729
- ctx[11](
5723
+ ctx[10](
5730
5724
  /*wordButtonId*/
5731
5725
  ctx[3]
5732
5726
  )
5733
5727
  ))
5734
- ctx[11](
5728
+ ctx[10](
5735
5729
  /*wordButtonId*/
5736
5730
  ctx[3]
5737
5731
  ).apply(this, arguments);
@@ -5739,12 +5733,12 @@
5739
5733
  listen(button, "touchend", stop_propagation(function() {
5740
5734
  if (is_function(
5741
5735
  /*selectItem*/
5742
- ctx[11](
5736
+ ctx[10](
5743
5737
  /*wordButtonId*/
5744
5738
  ctx[3]
5745
5739
  )
5746
5740
  ))
5747
- ctx[11](
5741
+ ctx[10](
5748
5742
  /*wordButtonId*/
5749
5743
  ctx[3]
5750
5744
  ).apply(this, arguments);
@@ -5753,7 +5747,7 @@
5753
5747
  button,
5754
5748
  "keydown",
5755
5749
  /*removeContainerTabSelected*/
5756
- ctx[12]
5750
+ ctx[11]
5757
5751
  )
5758
5752
  ];
5759
5753
  mounted = true;
@@ -5769,14 +5763,14 @@
5769
5763
  ctx[0]
5770
5764
  );
5771
5765
  if (!current || dirty & /*isWordItemSelected*/
5772
- 1024 && span0_class_value !== (span0_class_value = "text-charcoal text-base pl-3 mr-4 " + /*isWordItemSelected*/
5773
- (ctx[10] ? "text-white" : ""))) {
5766
+ 512 && span0_class_value !== (span0_class_value = "text-charcoal text-base pl-3 mr-4 " + /*isWordItemSelected*/
5767
+ (ctx[9] ? "text-white" : ""))) {
5774
5768
  attr(span0, "class", span0_class_value);
5775
5769
  }
5776
5770
  if (!current || dirty & /*currentSelectedItemId, disabledClick*/
5777
- 576 && span1_class_value !== (span1_class_value = "w-full h-full relative rounded-lg " + (!/*currentSelectedItemId*/
5778
- ctx[9] && !/*disabledClick*/
5779
- ctx[6] ? "td:group-hover:bg-black td:group-hover:opacity-5" : ""))) {
5771
+ 288 && span1_class_value !== (span1_class_value = "w-full h-full relative rounded-lg " + (!/*currentSelectedItemId*/
5772
+ ctx[8] && !/*disabledClick*/
5773
+ ctx[5] ? "td:group-hover:bg-black td:group-hover:opacity-5" : ""))) {
5780
5774
  attr(span1, "class", span1_class_value);
5781
5775
  }
5782
5776
  let previous_block_index = current_block_type_index;
@@ -5820,9 +5814,9 @@
5820
5814
  check_outros();
5821
5815
  }
5822
5816
  if (!current || dirty & /*currentSelectedItemId, disabledClick*/
5823
- 576 && div_class_value !== (div_class_value = "group text-blue-1000 h-11 w-11 min-w-[44px] flex items-center justify-center btn-vertical-icon " + (!/*currentSelectedItemId*/
5824
- ctx[9] && !/*disabledClick*/
5825
- ctx[6] ? "td:hover:cursor-grab td:hover:text-soft-blue" : ""))) {
5817
+ 288 && 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*/
5818
+ ctx[8] && !/*disabledClick*/
5819
+ ctx[5] ? "td:hover:cursor-grab td:hover:text-soft-blue" : ""))) {
5826
5820
  attr(div, "class", div_class_value);
5827
5821
  }
5828
5822
  if (!current || dirty & /*wordButtonId*/
@@ -5834,51 +5828,42 @@
5834
5828
  ctx[3]
5835
5829
  );
5836
5830
  }
5837
- if (!current || dirty & /*tabIndex*/
5838
- 32) {
5839
- attr(
5840
- button,
5841
- "tabindex",
5842
- /*tabIndex*/
5843
- ctx[5]
5844
- );
5845
- }
5846
5831
  if (!current || dirty & /*resultType, isWordItemSelected, word*/
5847
- 1027 && button_aria_label_value !== (button_aria_label_value = /*resultType*/
5832
+ 515 && button_aria_label_value !== (button_aria_label_value = /*resultType*/
5848
5833
  (ctx[1] === ANSWER_CORRECT || /*resultType*/
5849
5834
  ctx[1] === ANSWER_INCORRECT) && !/*isWordItemSelected*/
5850
- ctx[10] ? `Student's answer: ${/*word*/
5835
+ ctx[9] ? `Student's answer: ${/*word*/
5851
5836
  ctx[0]} (${/*resultType*/
5852
5837
  ctx[1]})` : (
5853
5838
  /*resultType*/
5854
5839
  ctx[1] === ANSWER_MISSED ? `Correct answer: ${/*word*/
5855
5840
  ctx[0]}` : `${/*isWordItemSelected*/
5856
- ctx[10] ? "Selected option" : "Option"}: ${/*word*/
5841
+ ctx[9] ? "Selected option" : "Option"}: ${/*word*/
5857
5842
  ctx[0]}`
5858
5843
  ))) {
5859
5844
  attr(button, "aria-label", button_aria_label_value);
5860
5845
  }
5861
5846
  if (!current || dirty & /*otherClass, isClonedItem, considerCloneItemId, wordButtonId, isWordItemSelected, currentSelectedItemId, disabledClick, resultType*/
5862
- 1886 && button_class_value !== (button_class_value = "focus-ring flex items-center justify-between min-h-[54px] p-1 border border-gray-800 rounded-lg " + /*otherClass*/
5847
+ 958 && button_class_value !== (button_class_value = "focus-ring flex items-center justify-between min-h-[54px] p-1 border border-gray-800 rounded-lg " + /*otherClass*/
5863
5848
  ctx[2] + " " + /*isClonedItem*/
5864
5849
  (ctx[4] ? "opacity-50 raw-focus-ring bg-violet-100" : "") + " " + /*considerCloneItemId*/
5865
- (ctx[8] === /*wordButtonId*/
5850
+ (ctx[7] === /*wordButtonId*/
5866
5851
  ctx[3] ? "hidden" : "") + " " + /*isWordItemSelected*/
5867
- (ctx[10] ? "bg-blue-1000 !border-blue-1000 raw-focus-ring !cursor-pointer" : "bg-gray-100") + " " + (!/*currentSelectedItemId*/
5868
- ctx[9] && !/*disabledClick*/
5869
- ctx[6] ? "td:hover-focus-ring td:hover:bg-violet-100 !cursor-pointer" : "!cursor-default") + " " + /*resultType*/
5852
+ (ctx[9] ? "bg-blue-1000 !border-blue-1000 raw-focus-ring !cursor-pointer" : "bg-gray-100") + " " + (!/*currentSelectedItemId*/
5853
+ ctx[8] && !/*disabledClick*/
5854
+ ctx[5] ? "td:hover-focus-ring td:hover:bg-violet-100 !cursor-pointer" : "!cursor-default") + " " + /*resultType*/
5870
5855
  (ctx[1] === ANSWER_CORRECT && !/*isWordItemSelected*/
5871
- ctx[10] ? "border-green-800 bg-green-300" : (
5856
+ ctx[9] ? "border-green-800 bg-green-300" : (
5872
5857
  /*resultType*/
5873
5858
  ctx[1] === ANSWER_INCORRECT && !/*isWordItemSelected*/
5874
- ctx[10] ? "border-red-800 bg-red-300" : (
5859
+ ctx[9] ? "border-red-800 bg-red-300" : (
5875
5860
  /*resultType*/
5876
5861
  ctx[1] === ANSWER_MISSED ? "border-green-800" : ""
5877
5862
  )
5878
5863
  )) + " " + /*resultType*/
5879
5864
  ((ctx[1] === ANSWER_CORRECT || /*resultType*/
5880
5865
  ctx[1] === ANSWER_INCORRECT) && !/*isWordItemSelected*/
5881
- ctx[10] ? "td:hover:border-gray-800" : ""))) {
5866
+ ctx[9] ? "td:hover:border-gray-800" : ""))) {
5882
5867
  attr(button, "class", button_class_value);
5883
5868
  }
5884
5869
  },
@@ -5901,7 +5886,7 @@
5901
5886
  if_blocks[current_block_type_index].d();
5902
5887
  if (if_block1)
5903
5888
  if_block1.d();
5904
- ctx[15](null);
5889
+ ctx[14](null);
5905
5890
  mounted = false;
5906
5891
  run_all(dispose);
5907
5892
  }
@@ -5914,7 +5899,6 @@
5914
5899
  let { wordButtonId = "" } = $$props;
5915
5900
  let { isClonedItem = false } = $$props;
5916
5901
  let { containerId = "" } = $$props;
5917
- let { tabIndex = -1 } = $$props;
5918
5902
  let { wordFocus = false } = $$props;
5919
5903
  let { disabledClick = false } = $$props;
5920
5904
  let considerCloneItemId = "";
@@ -5924,9 +5908,9 @@
5924
5908
  let wordButton;
5925
5909
  categoriseSettings.subscribe((value) => {
5926
5910
  const { considerCloneItemId: storeConsiderCloneItemId, selectedItemId: storeSelectedItemId } = value;
5927
- $$invalidate(8, considerCloneItemId = storeConsiderCloneItemId);
5928
- $$invalidate(9, currentSelectedItemId = storeSelectedItemId);
5929
- $$invalidate(10, isWordItemSelected = currentSelectedItemId === wordButtonId);
5911
+ $$invalidate(7, considerCloneItemId = storeConsiderCloneItemId);
5912
+ $$invalidate(8, currentSelectedItemId = storeSelectedItemId);
5913
+ $$invalidate(9, isWordItemSelected = currentSelectedItemId === wordButtonId);
5930
5914
  });
5931
5915
  const selectItem = (itemId) => {
5932
5916
  if (isSelecItemFunctionCalled || disabledClick) {
@@ -5976,7 +5960,7 @@
5976
5960
  function button_binding($$value) {
5977
5961
  binding_callbacks[$$value ? "unshift" : "push"](() => {
5978
5962
  wordButton = $$value;
5979
- $$invalidate(7, wordButton);
5963
+ $$invalidate(6, wordButton);
5980
5964
  });
5981
5965
  }
5982
5966
  $$self.$$set = ($$props2) => {
@@ -5991,17 +5975,15 @@
5991
5975
  if ("isClonedItem" in $$props2)
5992
5976
  $$invalidate(4, isClonedItem = $$props2.isClonedItem);
5993
5977
  if ("containerId" in $$props2)
5994
- $$invalidate(13, containerId = $$props2.containerId);
5995
- if ("tabIndex" in $$props2)
5996
- $$invalidate(5, tabIndex = $$props2.tabIndex);
5978
+ $$invalidate(12, containerId = $$props2.containerId);
5997
5979
  if ("wordFocus" in $$props2)
5998
- $$invalidate(14, wordFocus = $$props2.wordFocus);
5980
+ $$invalidate(13, wordFocus = $$props2.wordFocus);
5999
5981
  if ("disabledClick" in $$props2)
6000
- $$invalidate(6, disabledClick = $$props2.disabledClick);
5982
+ $$invalidate(5, disabledClick = $$props2.disabledClick);
6001
5983
  };
6002
5984
  $$self.$$.update = () => {
6003
5985
  if ($$self.$$.dirty & /*wordFocus, wordButton*/
6004
- 16512) {
5986
+ 8256) {
6005
5987
  $:
6006
5988
  if (wordFocus) {
6007
5989
  setTimeout(
@@ -6019,7 +6001,6 @@
6019
6001
  otherClass,
6020
6002
  wordButtonId,
6021
6003
  isClonedItem,
6022
- tabIndex,
6023
6004
  disabledClick,
6024
6005
  wordButton,
6025
6006
  considerCloneItemId,
@@ -6041,10 +6022,9 @@
6041
6022
  otherClass: 2,
6042
6023
  wordButtonId: 3,
6043
6024
  isClonedItem: 4,
6044
- containerId: 13,
6045
- tabIndex: 5,
6046
- wordFocus: 14,
6047
- disabledClick: 6
6025
+ containerId: 12,
6026
+ wordFocus: 13,
6027
+ disabledClick: 5
6048
6028
  });
6049
6029
  }
6050
6030
  get word() {
@@ -6083,35 +6063,28 @@
6083
6063
  flush();
6084
6064
  }
6085
6065
  get containerId() {
6086
- return this.$$.ctx[13];
6066
+ return this.$$.ctx[12];
6087
6067
  }
6088
6068
  set containerId(containerId) {
6089
6069
  this.$$set({ containerId });
6090
6070
  flush();
6091
6071
  }
6092
- get tabIndex() {
6093
- return this.$$.ctx[5];
6094
- }
6095
- set tabIndex(tabIndex) {
6096
- this.$$set({ tabIndex });
6097
- flush();
6098
- }
6099
6072
  get wordFocus() {
6100
- return this.$$.ctx[14];
6073
+ return this.$$.ctx[13];
6101
6074
  }
6102
6075
  set wordFocus(wordFocus) {
6103
6076
  this.$$set({ wordFocus });
6104
6077
  flush();
6105
6078
  }
6106
6079
  get disabledClick() {
6107
- return this.$$.ctx[6];
6080
+ return this.$$.ctx[5];
6108
6081
  }
6109
6082
  set disabledClick(disabledClick) {
6110
6083
  this.$$set({ disabledClick });
6111
6084
  flush();
6112
6085
  }
6113
6086
  };
6114
- customElements.define("prompt-categorise-word-button", create_custom_element(PromptCategoriseWordButton, { "word": {}, "resultType": {}, "otherClass": {}, "wordButtonId": {}, "isClonedItem": { "type": "Boolean" }, "containerId": {}, "tabIndex": {}, "wordFocus": { "type": "Boolean" }, "disabledClick": { "type": "Boolean" } }, [], [], true));
6087
+ 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
6088
  var PromptCategoriseWordButton_default = PromptCategoriseWordButton;
6116
6089
 
6117
6090
  // src/lib/stores/modal.ts
@@ -6171,7 +6144,7 @@
6171
6144
  ctx[6]
6172
6145
  );
6173
6146
  attr(button, "class", button_class_value = "focus-ring absolute inset-0 bg-transparent rounded-lg focus-visible:border " + /*isContainerWordBin*/
6174
- (ctx[17] ? "focus-visible:border-gray-400" : "focus-visible:border-gray-800"));
6147
+ (ctx[18] ? "focus-visible:border-gray-400" : "focus-visible:border-gray-800"));
6175
6148
  },
6176
6149
  m(target, anchor) {
6177
6150
  insert(target, button, anchor);
@@ -6180,7 +6153,7 @@
6180
6153
  button,
6181
6154
  "click",
6182
6155
  /*addAnswerItem*/
6183
- ctx[20]
6156
+ ctx[21]
6184
6157
  );
6185
6158
  mounted = true;
6186
6159
  }
@@ -6225,13 +6198,13 @@
6225
6198
  div,
6226
6199
  "click",
6227
6200
  /*addAnswerItem*/
6228
- ctx[20]
6201
+ ctx[21]
6229
6202
  ),
6230
6203
  listen(
6231
6204
  div,
6232
6205
  "keypress",
6233
6206
  /*addAnswerItem*/
6234
- ctx[20]
6207
+ ctx[21]
6235
6208
  )
6236
6209
  ];
6237
6210
  mounted = true;
@@ -6291,12 +6264,12 @@
6291
6264
  (ctx[33].id === /*considerItemId*/
6292
6265
  ctx[8] ? "!bg-violet-150" : "") + "\n " + (!/*showButton*/
6293
6266
  ctx[4] ? "hidden md:flex" : "") + "\n " + /*items*/
6294
- (ctx[15][
6267
+ (ctx[16][
6295
6268
  /*currentWordBinIndex*/
6296
- ctx[11]
6269
+ ctx[12]
6297
6270
  ]?.id !== /*item*/
6298
6271
  ctx[33].id && /*isContainerWordBin*/
6299
- ctx[17] ? "hidden md:flex" : ""),
6272
+ ctx[18] ? "hidden md:flex" : ""),
6300
6273
  word: (
6301
6274
  /*item*/
6302
6275
  ctx[33].text
@@ -6313,18 +6286,12 @@
6313
6286
  /*containerId*/
6314
6287
  ctx[2]
6315
6288
  ),
6316
- tabIndex: (
6317
- /*currentTabContainer*/
6318
- ctx[13] !== /*containerId*/
6319
- ctx[2] || /*isModalOpen*/
6320
- ctx[14] ? -1 : 0
6321
- ),
6322
6289
  wordFocus: (
6323
6290
  /*currentTabContainer*/
6324
- ctx[13] === /*containerId*/
6291
+ ctx[14] === /*containerId*/
6325
6292
  ctx[2] && /*item*/
6326
6293
  ctx[33].id === /*items*/
6327
- ctx[15][0].id
6294
+ ctx[16][0].id
6328
6295
  ),
6329
6296
  disabledClick: (
6330
6297
  /*isFinished*/
@@ -6374,52 +6341,46 @@
6374
6341
  }
6375
6342
  const promptcategorisewordbutton_changes = {};
6376
6343
  if (dirty[0] & /*items, considerItemId, showButton, currentWordBinIndex*/
6377
- 35088)
6344
+ 69904)
6378
6345
  promptcategorisewordbutton_changes.otherClass = "mr-2 mb-2 last:mr-0 " + /*item*/
6379
6346
  (ctx[33].id === /*considerItemId*/
6380
6347
  ctx[8] ? "!bg-violet-150" : "") + "\n " + (!/*showButton*/
6381
6348
  ctx[4] ? "hidden md:flex" : "") + "\n " + /*items*/
6382
- (ctx[15][
6349
+ (ctx[16][
6383
6350
  /*currentWordBinIndex*/
6384
- ctx[11]
6351
+ ctx[12]
6385
6352
  ]?.id !== /*item*/
6386
6353
  ctx[33].id && /*isContainerWordBin*/
6387
- ctx[17] ? "hidden md:flex" : "");
6354
+ ctx[18] ? "hidden md:flex" : "");
6388
6355
  if (dirty[0] & /*items*/
6389
- 32768)
6356
+ 65536)
6390
6357
  promptcategorisewordbutton_changes.word = /*item*/
6391
6358
  ctx[33].text;
6392
6359
  if (dirty[0] & /*items*/
6393
- 32768)
6360
+ 65536)
6394
6361
  promptcategorisewordbutton_changes.wordButtonId = /*item*/
6395
6362
  ctx[33].id;
6396
6363
  if (dirty[0] & /*items*/
6397
- 32768)
6364
+ 65536)
6398
6365
  promptcategorisewordbutton_changes.isClonedItem = /*item*/
6399
6366
  ctx[33].isClonedItem;
6400
6367
  if (dirty[0] & /*containerId*/
6401
6368
  4)
6402
6369
  promptcategorisewordbutton_changes.containerId = /*containerId*/
6403
6370
  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
6371
  if (dirty[0] & /*currentTabContainer, containerId, items*/
6411
- 40964)
6372
+ 81924)
6412
6373
  promptcategorisewordbutton_changes.wordFocus = /*currentTabContainer*/
6413
- ctx[13] === /*containerId*/
6374
+ ctx[14] === /*containerId*/
6414
6375
  ctx[2] && /*item*/
6415
6376
  ctx[33].id === /*items*/
6416
- ctx[15][0].id;
6377
+ ctx[16][0].id;
6417
6378
  if (dirty[0] & /*isFinished*/
6418
6379
  128)
6419
6380
  promptcategorisewordbutton_changes.disabledClick = /*isFinished*/
6420
6381
  ctx[7];
6421
6382
  if (dirty[0] & /*items*/
6422
- 32768)
6383
+ 65536)
6423
6384
  promptcategorisewordbutton_changes.resultType = /*item*/
6424
6385
  ctx[33].type;
6425
6386
  promptcategorisewordbutton.$set(promptcategorisewordbutton_changes);
@@ -6459,19 +6420,19 @@
6459
6420
  let dispose;
6460
6421
  let if_block0 = (
6461
6422
  /*dragDisabled*/
6462
- ctx[9] && /*sourceSelectedContainerId*/
6463
- ctx[10] !== /*containerId*/
6423
+ ctx[10] && /*sourceSelectedContainerId*/
6424
+ ctx[11] !== /*containerId*/
6464
6425
  ctx[2] && !/*isFinished*/
6465
6426
  ctx[7] && create_if_block_24(ctx)
6466
6427
  );
6467
6428
  let if_block1 = (
6468
6429
  /*totalRemainingWordBinItem*/
6469
- ctx[12] <= 0 && /*isContainerWordBin*/
6470
- ctx[17] && create_if_block_16(ctx)
6430
+ ctx[13] <= 0 && /*isContainerWordBin*/
6431
+ ctx[18] && create_if_block_16(ctx)
6471
6432
  );
6472
6433
  let each_value = ensure_array_like(Object.values(
6473
6434
  /*items*/
6474
- ctx[15]
6435
+ ctx[16]
6475
6436
  ));
6476
6437
  const get_key = (ctx2) => (
6477
6438
  /*item*/
@@ -6505,7 +6466,7 @@
6505
6466
  ctx[2]
6506
6467
  );
6507
6468
  attr(section, "style", section_style_value = !/*isContainerWordBin*/
6508
- ctx[17] ? `padding-top: ${/*paddingTop*/
6469
+ ctx[18] ? `padding-top: ${/*paddingTop*/
6509
6470
  ctx[5]}px;` : "");
6510
6471
  },
6511
6472
  m(target, anchor) {
@@ -6527,7 +6488,7 @@
6527
6488
  action_destroyer(dndzone_action = dndzone$2.call(null, section, {
6528
6489
  items: (
6529
6490
  /*items*/
6530
- ctx[15]
6491
+ ctx[16]
6531
6492
  ),
6532
6493
  flipDurationMs: (
6533
6494
  /*flipDurationMs*/
@@ -6539,28 +6500,34 @@
6539
6500
  ),
6540
6501
  dropTargetClasses: (
6541
6502
  /*dropTargetClasses*/
6542
- ctx[16]
6503
+ ctx[17]
6543
6504
  ),
6544
6505
  morphDisabled: true,
6545
6506
  dragDisabled: (
6546
6507
  /*dragDisabled*/
6547
- ctx[9]
6508
+ ctx[10]
6548
6509
  ),
6549
6510
  autoAriaDisabled: true,
6550
- zoneItemTabIndex: -1,
6511
+ zoneItemTabIndex: (
6512
+ /*currentTabContainer*/
6513
+ ctx[14] !== /*containerId*/
6514
+ ctx[2] || /*selectedItemId*/
6515
+ ctx[9] || /*isModalOpen*/
6516
+ ctx[15] ? -1 : 0
6517
+ ),
6551
6518
  zoneTabIndex: -1
6552
6519
  })),
6553
6520
  listen(
6554
6521
  section,
6555
6522
  "consider",
6556
6523
  /*handleDndConsider*/
6557
- ctx[18]
6524
+ ctx[19]
6558
6525
  ),
6559
6526
  listen(
6560
6527
  section,
6561
6528
  "finalize",
6562
6529
  /*handleDndFinalize*/
6563
- ctx[19]
6530
+ ctx[20]
6564
6531
  )
6565
6532
  ];
6566
6533
  mounted = true;
@@ -6569,8 +6536,8 @@
6569
6536
  p(ctx2, dirty) {
6570
6537
  if (
6571
6538
  /*dragDisabled*/
6572
- ctx2[9] && /*sourceSelectedContainerId*/
6573
- ctx2[10] !== /*containerId*/
6539
+ ctx2[10] && /*sourceSelectedContainerId*/
6540
+ ctx2[11] !== /*containerId*/
6574
6541
  ctx2[2] && !/*isFinished*/
6575
6542
  ctx2[7]
6576
6543
  ) {
@@ -6587,8 +6554,8 @@
6587
6554
  }
6588
6555
  if (
6589
6556
  /*totalRemainingWordBinItem*/
6590
- ctx2[12] <= 0 && /*isContainerWordBin*/
6591
- ctx2[17]
6557
+ ctx2[13] <= 0 && /*isContainerWordBin*/
6558
+ ctx2[18]
6592
6559
  ) {
6593
6560
  if (if_block1) {
6594
6561
  if_block1.p(ctx2, dirty);
@@ -6601,11 +6568,11 @@
6601
6568
  if_block1.d(1);
6602
6569
  if_block1 = null;
6603
6570
  }
6604
- if (dirty[0] & /*items, considerItemId, showButton, currentWordBinIndex, isContainerWordBin, containerId, currentTabContainer, isModalOpen, isFinished*/
6605
- 190868) {
6571
+ if (dirty[0] & /*items, considerItemId, showButton, currentWordBinIndex, isContainerWordBin, containerId, currentTabContainer, isFinished*/
6572
+ 348564) {
6606
6573
  each_value = ensure_array_like(Object.values(
6607
6574
  /*items*/
6608
- ctx2[15]
6575
+ ctx2[16]
6609
6576
  ));
6610
6577
  group_outros();
6611
6578
  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);
@@ -6627,16 +6594,16 @@
6627
6594
  }
6628
6595
  if (!current || dirty[0] & /*paddingTop*/
6629
6596
  32 && section_style_value !== (section_style_value = !/*isContainerWordBin*/
6630
- ctx2[17] ? `padding-top: ${/*paddingTop*/
6597
+ ctx2[18] ? `padding-top: ${/*paddingTop*/
6631
6598
  ctx2[5]}px;` : "")) {
6632
6599
  attr(section, "style", section_style_value);
6633
6600
  }
6634
- if (dndzone_action && is_function(dndzone_action.update) && dirty[0] & /*items, flipDurationMs, type, dragDisabled*/
6635
- 33290)
6601
+ if (dndzone_action && is_function(dndzone_action.update) && dirty[0] & /*items, flipDurationMs, type, dragDisabled, currentTabContainer, containerId, selectedItemId, isModalOpen*/
6602
+ 116238)
6636
6603
  dndzone_action.update.call(null, {
6637
6604
  items: (
6638
6605
  /*items*/
6639
- ctx2[15]
6606
+ ctx2[16]
6640
6607
  ),
6641
6608
  flipDurationMs: (
6642
6609
  /*flipDurationMs*/
@@ -6648,15 +6615,21 @@
6648
6615
  ),
6649
6616
  dropTargetClasses: (
6650
6617
  /*dropTargetClasses*/
6651
- ctx2[16]
6618
+ ctx2[17]
6652
6619
  ),
6653
6620
  morphDisabled: true,
6654
6621
  dragDisabled: (
6655
6622
  /*dragDisabled*/
6656
- ctx2[9]
6623
+ ctx2[10]
6657
6624
  ),
6658
6625
  autoAriaDisabled: true,
6659
- zoneItemTabIndex: -1,
6626
+ zoneItemTabIndex: (
6627
+ /*currentTabContainer*/
6628
+ ctx2[14] !== /*containerId*/
6629
+ ctx2[2] || /*selectedItemId*/
6630
+ ctx2[9] || /*isModalOpen*/
6631
+ ctx2[15] ? -1 : 0
6632
+ ),
6660
6633
  zoneTabIndex: -1
6661
6634
  });
6662
6635
  },
@@ -6720,23 +6693,23 @@
6720
6693
  const { rawCategoryItems } = get_store_value(categoriseSettings);
6721
6694
  modalSettings.subscribe((value) => {
6722
6695
  const { isModalOpen: storeIsModalOpen } = value;
6723
- $$invalidate(14, isModalOpen = storeIsModalOpen);
6696
+ $$invalidate(15, isModalOpen = storeIsModalOpen);
6724
6697
  });
6725
6698
  categoriseSettings.subscribe((value) => {
6726
6699
  const { considerItemId: storeconsiderItemId, selectedItemId: storeSelectedItemId, currentAnswer: storeCurrentAnswer, sourceSelectedContainerId: storeSourceSelectedContainerId, currentWordBinIndex: storeCurrentWordBinIndex, currentTabContainer: storeCurrentTabContainer } = value;
6727
6700
  $$invalidate(8, considerItemId = storeconsiderItemId);
6728
- $$invalidate(9, dragDisabled = isFinished || !!storeSelectedItemId);
6701
+ $$invalidate(10, dragDisabled = isFinished || !!storeSelectedItemId);
6729
6702
  currentAnswer = storeCurrentAnswer;
6730
- selectedItemId = storeSelectedItemId;
6731
- $$invalidate(10, sourceSelectedContainerId = storeSourceSelectedContainerId);
6732
- $$invalidate(11, currentWordBinIndex = storeCurrentWordBinIndex);
6733
- $$invalidate(13, currentTabContainer = storeCurrentTabContainer);
6703
+ $$invalidate(9, selectedItemId = storeSelectedItemId);
6704
+ $$invalidate(11, sourceSelectedContainerId = storeSourceSelectedContainerId);
6705
+ $$invalidate(12, currentWordBinIndex = storeCurrentWordBinIndex);
6706
+ $$invalidate(14, currentTabContainer = storeCurrentTabContainer);
6734
6707
  const storeWordBinItem = currentAnswer.filter((answer) => answer.categoryId === CONTAINER_WORD_BIN_ID);
6735
- $$invalidate(12, totalRemainingWordBinItem = storeWordBinItem[0].itemId.length);
6708
+ $$invalidate(13, totalRemainingWordBinItem = storeWordBinItem[0].itemId.length);
6736
6709
  if (storeCurrentAnswer) {
6737
6710
  const currentAnswerList = currentAnswer.filter((answer) => answer.categoryId === containerId);
6738
6711
  if (currentAnswerList.length) {
6739
- $$invalidate(15, items = currentAnswerList[0].itemId.map((rawAnswerId) => {
6712
+ $$invalidate(16, items = currentAnswerList[0].itemId.map((rawAnswerId) => {
6740
6713
  const splitId = rawAnswerId.split(EAT_DASH);
6741
6714
  const answerId = splitId[0];
6742
6715
  const answerIndex = rawCategoryItems.findIndex((answer) => answer.id === answerId);
@@ -6770,7 +6743,7 @@
6770
6743
  const { sourceContainerId, sourceCloneContainerId } = get_store_value(categoriseSettings);
6771
6744
  if (trigger === TRIGGERS.DRAG_STARTED) {
6772
6745
  const { items: cateoryItems } = detail;
6773
- $$invalidate(15, items = cateoryItems);
6746
+ $$invalidate(16, items = cateoryItems);
6774
6747
  const orginalId = items.filter((item) => item[SHADOW_ITEM_MARKER_PROPERTY_NAME]);
6775
6748
  const originalItemIndex = items.findIndex((item) => item.id === orginalId[0].id);
6776
6749
  items.splice(originalItemIndex, 1, {
@@ -6803,7 +6776,7 @@
6803
6776
  const handleDndFinalize = (e2) => {
6804
6777
  const { items: categoryItems, info } = e2.detail;
6805
6778
  const { trigger, id } = info;
6806
- $$invalidate(15, items = categoryItems.filter((item) => !item.isClonedItem));
6779
+ $$invalidate(16, items = categoryItems.filter((item) => !item.isClonedItem));
6807
6780
  if (trigger === TRIGGERS.DROPPED_INTO_ZONE) {
6808
6781
  const { currentTarget } = e2;
6809
6782
  addAnswerItemStore(id, currentTarget.id);
@@ -6984,9 +6957,9 @@
6984
6957
  if ("isFinished" in $$props2)
6985
6958
  $$invalidate(7, isFinished = $$props2.isFinished);
6986
6959
  if ("correctAnswerList" in $$props2)
6987
- $$invalidate(21, correctAnswerList = $$props2.correctAnswerList);
6960
+ $$invalidate(22, correctAnswerList = $$props2.correctAnswerList);
6988
6961
  if ("isPreviewModeInteractive" in $$props2)
6989
- $$invalidate(22, isPreviewModeInteractive = $$props2.isPreviewModeInteractive);
6962
+ $$invalidate(23, isPreviewModeInteractive = $$props2.isPreviewModeInteractive);
6990
6963
  };
6991
6964
  return [
6992
6965
  containerClass,
@@ -6998,6 +6971,7 @@
6998
6971
  ariaLabel,
6999
6972
  isFinished,
7000
6973
  considerItemId,
6974
+ selectedItemId,
7001
6975
  dragDisabled,
7002
6976
  sourceSelectedContainerId,
7003
6977
  currentWordBinIndex,
@@ -7032,8 +7006,8 @@
7032
7006
  paddingTop: 5,
7033
7007
  ariaLabel: 6,
7034
7008
  isFinished: 7,
7035
- correctAnswerList: 21,
7036
- isPreviewModeInteractive: 22
7009
+ correctAnswerList: 22,
7010
+ isPreviewModeInteractive: 23
7037
7011
  },
7038
7012
  null,
7039
7013
  [-1, -1]
@@ -7096,14 +7070,14 @@
7096
7070
  flush();
7097
7071
  }
7098
7072
  get correctAnswerList() {
7099
- return this.$$.ctx[21];
7073
+ return this.$$.ctx[22];
7100
7074
  }
7101
7075
  set correctAnswerList(correctAnswerList) {
7102
7076
  this.$$set({ correctAnswerList });
7103
7077
  flush();
7104
7078
  }
7105
7079
  get isPreviewModeInteractive() {
7106
- return this.$$.ctx[22];
7080
+ return this.$$.ctx[23];
7107
7081
  }
7108
7082
  set isPreviewModeInteractive(isPreviewModeInteractive) {
7109
7083
  this.$$set({ isPreviewModeInteractive });
@@ -8026,9 +8000,9 @@
8026
8000
  // src/lib/components/prompt/categorise/PromptCategorise.svelte
8027
8001
  function get_each_context3(ctx, list, i) {
8028
8002
  const child_ctx = ctx.slice();
8029
- child_ctx[53] = list[i];
8030
- child_ctx[54] = list;
8031
- child_ctx[55] = i;
8003
+ child_ctx[55] = list[i];
8004
+ child_ctx[56] = list;
8005
+ child_ctx[57] = i;
8032
8006
  return child_ctx;
8033
8007
  }
8034
8008
  function create_if_block_5(ctx) {
@@ -8038,7 +8012,7 @@
8038
8012
  promptcategorisemodal.$on(
8039
8013
  "resetCategory",
8040
8014
  /*saveCategory*/
8041
- ctx[33]
8015
+ ctx[35]
8042
8016
  );
8043
8017
  return {
8044
8018
  c() {
@@ -8105,7 +8079,7 @@
8105
8079
  button,
8106
8080
  "click",
8107
8081
  /*openResetModal*/
8108
- ctx[28]
8082
+ ctx[30]
8109
8083
  );
8110
8084
  mounted = true;
8111
8085
  }
@@ -8292,32 +8266,32 @@
8292
8266
  let div0;
8293
8267
  let show_if_1 = (
8294
8268
  /*checkContainerDroppedItem*/
8295
- ctx[26](
8269
+ ctx[28](
8296
8270
  /*category*/
8297
- ctx[53].id,
8271
+ ctx[55].id,
8298
8272
  /*dropContainerId*/
8299
8273
  ctx[6]
8300
8274
  )
8301
8275
  );
8302
8276
  let t0;
8303
8277
  let span0;
8304
- let t4;
8305
- let span1;
8306
8278
  let t6;
8307
- let t7;
8279
+ let span1;
8280
+ let t8;
8281
+ let t9;
8308
8282
  let button;
8309
8283
  let span2;
8310
- let t8_value = (
8284
+ let t10_value = (
8311
8285
  /*getTotalWords*/
8312
- ctx[29](
8286
+ ctx[31](
8313
8287
  /*category*/
8314
- ctx[53].id,
8288
+ ctx[55].id,
8315
8289
  /*currentAnswer*/
8316
8290
  ctx[9]
8317
8291
  ) + ""
8318
8292
  );
8319
- let t8;
8320
- let t9;
8293
+ let t10;
8294
+ let t11;
8321
8295
  let span3;
8322
8296
  let show_if;
8323
8297
  let current_block_type_index;
@@ -8327,13 +8301,13 @@
8327
8301
  let div0_aria_live_value;
8328
8302
  let div0_class_value;
8329
8303
  let div0_resize_listener;
8330
- let t10;
8304
+ let t12;
8331
8305
  let promptcategorisedndcontainer;
8332
- let t11;
8306
+ let t13;
8333
8307
  let div1_class_value;
8334
8308
  let category = (
8335
8309
  /*category*/
8336
- ctx[53]
8310
+ ctx[55]
8337
8311
  );
8338
8312
  let current;
8339
8313
  let mounted;
@@ -8351,9 +8325,9 @@
8351
8325
  show_if = null;
8352
8326
  if (show_if == null)
8353
8327
  show_if = !!/*checkifCategoryContainerOpen*/
8354
- ctx2[30](
8328
+ ctx2[32](
8355
8329
  /*category*/
8356
- ctx2[53].id,
8330
+ ctx2[55].id,
8357
8331
  /*openCategoryContainer*/
8358
8332
  ctx2[13]
8359
8333
  );
@@ -8364,73 +8338,74 @@
8364
8338
  current_block_type_index = select_block_type(ctx, [-1, -1]);
8365
8339
  if_block2 = if_blocks[current_block_type_index] = if_block_creators[current_block_type_index](ctx);
8366
8340
  function div0_elementresize_handler() {
8367
- ctx[39].call(
8341
+ ctx[41].call(
8368
8342
  div0,
8369
8343
  /*category*/
8370
- ctx[53]
8344
+ ctx[55]
8371
8345
  );
8372
8346
  }
8373
8347
  promptcategorisedndcontainer = new PromptCategoriseDndContainer_default({
8374
8348
  props: {
8375
8349
  containerClass: "content-start !outline-none rounded-lg grow w-full md:p-4\n " + /*checkContainerDragOver*/
8376
- (ctx[25](
8350
+ (ctx[27](
8377
8351
  /*category*/
8378
- ctx[53].id,
8352
+ ctx[55].id,
8379
8353
  /*considerContainerId*/
8380
8354
  ctx[4],
8381
8355
  /*isDraggingOver*/
8382
8356
  ctx[5]
8383
8357
  ) ? "bg-violet-100" : "") + "\n " + /*checkifCategoryContainerOpen*/
8384
- (ctx[30](
8358
+ (ctx[32](
8385
8359
  /*category*/
8386
- ctx[53].id,
8360
+ ctx[55].id,
8387
8361
  /*openCategoryContainer*/
8388
8362
  ctx[13]
8389
8363
  ) ? "h-full p-3 min-h-[86px] md:min-h-0" : ""),
8390
8364
  paddingTop: (
8391
8365
  /*checkifCategoryContainerOpen*/
8392
- ctx[30](
8366
+ ctx[32](
8393
8367
  /*category*/
8394
- ctx[53].id,
8368
+ ctx[55].id,
8395
8369
  /*openCategoryContainer*/
8396
8370
  ctx[13]
8397
8371
  ) || !useIsSmallScreen() ? (
8398
8372
  /*categoryTitleHeight*/
8399
- ctx[19][
8373
+ ctx[20][
8400
8374
  /*category*/
8401
- ctx[53].id
8375
+ ctx[55].id
8402
8376
  ] + 16
8403
8377
  ) : (
8404
8378
  /*categoryTitleHeight*/
8405
- ctx[19][
8379
+ ctx[20][
8406
8380
  /*category*/
8407
- ctx[53].id
8381
+ ctx[55].id
8408
8382
  ]
8409
8383
  )
8410
8384
  ),
8411
8385
  containerId: (
8412
8386
  /*category*/
8413
- ctx[53].id
8387
+ ctx[55].id
8414
8388
  ),
8415
8389
  showButton: (
8416
8390
  /*checkifCategoryContainerOpen*/
8417
- ctx[30](
8391
+ ctx[32](
8418
8392
  /*category*/
8419
- ctx[53].id,
8393
+ ctx[55].id,
8420
8394
  /*openCategoryContainer*/
8421
8395
  ctx[13]
8422
8396
  )
8423
8397
  ),
8424
8398
  ariaLabel: `Category ${/*index*/
8425
- ctx[55] + 1}: ${/*category*/
8426
- ctx[53].name}`,
8399
+ ctx[57] + 1} of ${/*totalCagories*/
8400
+ ctx[26]}: ${/*category*/
8401
+ ctx[55].name}`,
8427
8402
  isFinished: (
8428
8403
  /*isFinished*/
8429
8404
  ctx[0]
8430
8405
  ),
8431
8406
  correctAnswerList: (
8432
8407
  /*scoringMetadata*/
8433
- ctx[21]
8408
+ ctx[22]
8434
8409
  ),
8435
8410
  isPreviewModeInteractive: (
8436
8411
  /*isPreviewModeInteractive*/
@@ -8441,25 +8416,25 @@
8441
8416
  promptcategorisedndcontainer.$on(
8442
8417
  "saveCategory",
8443
8418
  /*saveCategory*/
8444
- ctx[33]
8419
+ ctx[35]
8445
8420
  );
8446
8421
  function keydown_handler(...args) {
8447
8422
  return (
8448
8423
  /*keydown_handler*/
8449
- ctx[40](
8424
+ ctx[42](
8450
8425
  /*category*/
8451
- ctx[53],
8426
+ ctx[55],
8452
8427
  ...args
8453
8428
  )
8454
8429
  );
8455
8430
  }
8456
8431
  const assign_div1 = () => (
8457
8432
  /*div1_binding*/
8458
- ctx[41](div1, category)
8433
+ ctx[43](div1, category)
8459
8434
  );
8460
8435
  const unassign_div1 = () => (
8461
8436
  /*div1_binding*/
8462
- ctx[41](null, category)
8437
+ ctx[43](null, category)
8463
8438
  );
8464
8439
  return {
8465
8440
  c() {
@@ -8470,81 +8445,83 @@
8470
8445
  t0 = space();
8471
8446
  span0 = element("span");
8472
8447
  span0.textContent = `Category ${/*index*/
8473
- ctx[55] + 1}:\xA0`;
8474
- t4 = space();
8448
+ ctx[57] + 1} of ${/*totalCagories*/
8449
+ ctx[26]}:\xA0`;
8450
+ t6 = space();
8475
8451
  span1 = element("span");
8476
8452
  span1.textContent = `${/*category*/
8477
- ctx[53].name}`;
8478
- t6 = space();
8453
+ ctx[55].name}`;
8454
+ t8 = space();
8479
8455
  if (if_block1)
8480
8456
  if_block1.c();
8481
- t7 = space();
8457
+ t9 = space();
8482
8458
  button = element("button");
8483
8459
  span2 = element("span");
8484
- t8 = text(t8_value);
8485
- t9 = space();
8460
+ t10 = text(t10_value);
8461
+ t11 = space();
8486
8462
  span3 = element("span");
8487
8463
  if_block2.c();
8488
- t10 = space();
8464
+ t12 = space();
8489
8465
  create_component(promptcategorisedndcontainer.$$.fragment);
8490
- t11 = space();
8466
+ t13 = space();
8491
8467
  attr(span0, "class", "sr-only");
8492
8468
  attr(span1, "class", "text-base leading-5 !text-gray-900 md:item-heading");
8493
8469
  attr(span2, "class", "mx-0.5");
8494
8470
  attr(span3, "class", "w-4 h-4 text-inherit flex items-center justify-center");
8495
8471
  attr(button, "aria-label", button_aria_label_value = /*getTotalWords*/
8496
- ctx[29](
8472
+ ctx[31](
8497
8473
  /*category*/
8498
- ctx[53].id,
8474
+ ctx[55].id,
8499
8475
  /*currentAnswer*/
8500
8476
  ctx[9]
8501
8477
  ));
8502
8478
  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
8479
  attr(div0, "id", div0_id_value = `category-title${/*index*/
8504
- ctx[55]}`);
8480
+ ctx[57]}`);
8505
8481
  attr(div0, "aria-live", div0_aria_live_value = /*checkContainerDroppedItem*/
8506
- ctx[26](
8482
+ ctx[28](
8507
8483
  /*category*/
8508
- ctx[53].id,
8484
+ ctx[55].id,
8509
8485
  /*dropContainerId*/
8510
8486
  ctx[6]
8511
- ) ? "polite" : "off");
8487
+ ) && /*enableAriaLive*/
8488
+ ctx[18] ? "polite" : "off");
8512
8489
  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[26](
8490
+ (ctx[28](
8514
8491
  /*category*/
8515
- ctx[53].id,
8492
+ ctx[55].id,
8516
8493
  /*dropContainerId*/
8517
8494
  ctx[6]
8518
8495
  ) ? "bg-tranparent" : "bg-white") + " " + (!/*checkifCategoryContainerOpen*/
8519
- ctx[30](
8496
+ ctx[32](
8520
8497
  /*category*/
8521
- ctx[53].id,
8498
+ ctx[55].id,
8522
8499
  /*openCategoryContainer*/
8523
8500
  ctx[13]
8524
8501
  ) && /*checkContainerDragOver*/
8525
- ctx[25](
8502
+ ctx[27](
8526
8503
  /*category*/
8527
- ctx[53].id,
8504
+ ctx[55].id,
8528
8505
  /*considerContainerId*/
8529
8506
  ctx[4],
8530
8507
  /*isDraggingOver*/
8531
8508
  ctx[5]
8532
8509
  ) ? "!bg-violet-100 md:!bg-white" : "") + " " + /*checkifCategoryContainerOpen*/
8533
- (ctx[30](
8510
+ (ctx[32](
8534
8511
  /*category*/
8535
- ctx[53].id,
8512
+ ctx[55].id,
8536
8513
  /*openCategoryContainer*/
8537
8514
  ctx[13]
8538
8515
  ) ? "" : "rounded-b-lg md:rounded-b-none") + " " + (!/*checkifCategoryContainerOpen*/
8539
- ctx[30](
8516
+ ctx[32](
8540
8517
  /*category*/
8541
- ctx[53].id,
8518
+ ctx[55].id,
8542
8519
  /*openCategoryContainer*/
8543
8520
  ctx[13]
8544
8521
  ) && /*checkSelectedSourceContainer*/
8545
- ctx[27](
8522
+ ctx[29](
8546
8523
  /*category*/
8547
- ctx[53].id,
8524
+ ctx[55].id,
8548
8525
  /*sourceSelectedContainerId*/
8549
8526
  ctx[8],
8550
8527
  /*currentSelectedItemId*/
@@ -8565,38 +8542,38 @@
8565
8542
  );
8566
8543
  attr(div1, "role", "group");
8567
8544
  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[25](
8545
+ (ctx[27](
8569
8546
  /*category*/
8570
- ctx[53].id,
8547
+ ctx[55].id,
8571
8548
  /*considerContainerId*/
8572
8549
  ctx[4],
8573
8550
  /*isDraggingOver*/
8574
8551
  ctx[5]
8575
8552
  ) ? "raw-focus-ring" : "") + " " + /*checkContainerDroppedItem*/
8576
- (ctx[26](
8553
+ (ctx[28](
8577
8554
  /*category*/
8578
- ctx[53].id,
8555
+ ctx[55].id,
8579
8556
  /*dropContainerId*/
8580
8557
  ctx[6]
8581
8558
  ) ? "bg-violet-150" : "") + " " + /*checkContainerDroppedItem*/
8582
- (ctx[26](
8559
+ (ctx[28](
8583
8560
  /*category*/
8584
- ctx[53].id,
8561
+ ctx[55].id,
8585
8562
  /*dropContainerId*/
8586
8563
  ctx[6]
8587
8564
  ) && /*hasAddItemAnimation*/
8588
8565
  ctx[11] ? "transition bg-white duration-300" : "") + " " + /*checkSelectedSourceContainer*/
8589
- (ctx[27](
8566
+ (ctx[29](
8590
8567
  /*category*/
8591
- ctx[53].id,
8568
+ ctx[55].id,
8592
8569
  /*sourceSelectedContainerId*/
8593
8570
  ctx[8],
8594
8571
  /*currentSelectedItemId*/
8595
8572
  ctx[7]
8596
8573
  ) ? "hover:bg-violet-100 hover-focus-ring cursor-pointer" : "") + " " + /*checkifCategoryContainerOpen*/
8597
- (ctx[30](
8574
+ (ctx[32](
8598
8575
  /*category*/
8599
- ctx[53].id,
8576
+ ctx[55].id,
8600
8577
  /*openCategoryContainer*/
8601
8578
  ctx[13]
8602
8579
  ) ? "min-h-[140px]" : ""));
@@ -8608,22 +8585,22 @@
8608
8585
  if_block0.m(div0, null);
8609
8586
  append(div0, t0);
8610
8587
  append(div0, span0);
8611
- append(div0, t4);
8612
- append(div0, span1);
8613
8588
  append(div0, t6);
8589
+ append(div0, span1);
8590
+ append(div0, t8);
8614
8591
  if (if_block1)
8615
8592
  if_block1.m(div0, null);
8616
- append(div0, t7);
8593
+ append(div0, t9);
8617
8594
  append(div0, button);
8618
8595
  append(button, span2);
8619
- append(span2, t8);
8620
- append(button, t9);
8596
+ append(span2, t10);
8597
+ append(button, t11);
8621
8598
  append(button, span3);
8622
8599
  if_blocks[current_block_type_index].m(span3, null);
8623
8600
  div0_resize_listener = add_iframe_resize_listener(div0, div0_elementresize_handler.bind(div0));
8624
- append(div1, t10);
8601
+ append(div1, t12);
8625
8602
  mount_component(promptcategorisedndcontainer, div1, null);
8626
- append(div1, t11);
8603
+ append(div1, t13);
8627
8604
  assign_div1();
8628
8605
  current = true;
8629
8606
  if (!mounted) {
@@ -8631,16 +8608,16 @@
8631
8608
  listen(button, "click", function() {
8632
8609
  if (is_function(
8633
8610
  /*addCategoryContainer*/
8634
- ctx[31](
8611
+ ctx[33](
8635
8612
  /*category*/
8636
- ctx[53].id,
8613
+ ctx[55].id,
8637
8614
  /*openCategoryContainer*/
8638
8615
  ctx[13]
8639
8616
  )
8640
8617
  ))
8641
- ctx[31](
8618
+ ctx[33](
8642
8619
  /*category*/
8643
- ctx[53].id,
8620
+ ctx[55].id,
8644
8621
  /*openCategoryContainer*/
8645
8622
  ctx[13]
8646
8623
  ).apply(this, arguments);
@@ -8650,7 +8627,7 @@
8650
8627
  div1,
8651
8628
  "focus",
8652
8629
  /*resetTabCategory*/
8653
- ctx[35]
8630
+ ctx[37]
8654
8631
  )
8655
8632
  ];
8656
8633
  mounted = true;
@@ -8661,9 +8638,9 @@
8661
8638
  if (dirty[0] & /*dropContainerId*/
8662
8639
  64)
8663
8640
  show_if_1 = /*checkContainerDroppedItem*/
8664
- ctx[26](
8641
+ ctx[28](
8665
8642
  /*category*/
8666
- ctx[53].id,
8643
+ ctx[55].id,
8667
8644
  /*dropContainerId*/
8668
8645
  ctx[6]
8669
8646
  );
@@ -8688,21 +8665,21 @@
8688
8665
  } else {
8689
8666
  if_block1 = create_if_block_25(ctx);
8690
8667
  if_block1.c();
8691
- if_block1.m(div0, t7);
8668
+ if_block1.m(div0, t9);
8692
8669
  }
8693
8670
  } else if (if_block1) {
8694
8671
  if_block1.d(1);
8695
8672
  if_block1 = null;
8696
8673
  }
8697
8674
  if ((!current || dirty[0] & /*currentAnswer*/
8698
- 512) && t8_value !== (t8_value = /*getTotalWords*/
8699
- ctx[29](
8675
+ 512) && t10_value !== (t10_value = /*getTotalWords*/
8676
+ ctx[31](
8700
8677
  /*category*/
8701
- ctx[53].id,
8678
+ ctx[55].id,
8702
8679
  /*currentAnswer*/
8703
8680
  ctx[9]
8704
8681
  ) + ""))
8705
- set_data(t8, t8_value);
8682
+ set_data(t10, t10_value);
8706
8683
  let previous_block_index = current_block_type_index;
8707
8684
  current_block_type_index = select_block_type(ctx, dirty);
8708
8685
  if (current_block_type_index !== previous_block_index) {
@@ -8722,61 +8699,62 @@
8722
8699
  }
8723
8700
  if (!current || dirty[0] & /*currentAnswer*/
8724
8701
  512 && button_aria_label_value !== (button_aria_label_value = /*getTotalWords*/
8725
- ctx[29](
8702
+ ctx[31](
8726
8703
  /*category*/
8727
- ctx[53].id,
8704
+ ctx[55].id,
8728
8705
  /*currentAnswer*/
8729
8706
  ctx[9]
8730
8707
  ))) {
8731
8708
  attr(button, "aria-label", button_aria_label_value);
8732
8709
  }
8733
- if (!current || dirty[0] & /*dropContainerId*/
8734
- 64 && div0_aria_live_value !== (div0_aria_live_value = /*checkContainerDroppedItem*/
8735
- ctx[26](
8710
+ if (!current || dirty[0] & /*dropContainerId, enableAriaLive*/
8711
+ 262208 && div0_aria_live_value !== (div0_aria_live_value = /*checkContainerDroppedItem*/
8712
+ ctx[28](
8736
8713
  /*category*/
8737
- ctx[53].id,
8714
+ ctx[55].id,
8738
8715
  /*dropContainerId*/
8739
8716
  ctx[6]
8740
- ) ? "polite" : "off")) {
8717
+ ) && /*enableAriaLive*/
8718
+ ctx[18] ? "polite" : "off")) {
8741
8719
  attr(div0, "aria-live", div0_aria_live_value);
8742
8720
  }
8743
8721
  if (!current || dirty[0] & /*dropContainerId, openCategoryContainer, considerContainerId, isDraggingOver, sourceSelectedContainerId, currentSelectedItemId*/
8744
8722
  8688 && div0_class_value !== (div0_class_value = "absolute flex items-center justify-between border-b border-gray-800 w-full rounded-t-lg p-3 md:p-4 md:justify-center " + /*checkContainerDroppedItem*/
8745
- (ctx[26](
8723
+ (ctx[28](
8746
8724
  /*category*/
8747
- ctx[53].id,
8725
+ ctx[55].id,
8748
8726
  /*dropContainerId*/
8749
8727
  ctx[6]
8750
8728
  ) ? "bg-tranparent" : "bg-white") + " " + (!/*checkifCategoryContainerOpen*/
8751
- ctx[30](
8729
+ ctx[32](
8752
8730
  /*category*/
8753
- ctx[53].id,
8731
+ ctx[55].id,
8754
8732
  /*openCategoryContainer*/
8755
8733
  ctx[13]
8756
8734
  ) && /*checkContainerDragOver*/
8757
- ctx[25](
8735
+ ctx[27](
8758
8736
  /*category*/
8759
- ctx[53].id,
8737
+ ctx[55].id,
8760
8738
  /*considerContainerId*/
8761
8739
  ctx[4],
8762
8740
  /*isDraggingOver*/
8763
8741
  ctx[5]
8764
8742
  ) ? "!bg-violet-100 md:!bg-white" : "") + " " + /*checkifCategoryContainerOpen*/
8765
- (ctx[30](
8743
+ (ctx[32](
8766
8744
  /*category*/
8767
- ctx[53].id,
8745
+ ctx[55].id,
8768
8746
  /*openCategoryContainer*/
8769
8747
  ctx[13]
8770
8748
  ) ? "" : "rounded-b-lg md:rounded-b-none") + " " + (!/*checkifCategoryContainerOpen*/
8771
- ctx[30](
8749
+ ctx[32](
8772
8750
  /*category*/
8773
- ctx[53].id,
8751
+ ctx[55].id,
8774
8752
  /*openCategoryContainer*/
8775
8753
  ctx[13]
8776
8754
  ) && /*checkSelectedSourceContainer*/
8777
- ctx[27](
8755
+ ctx[29](
8778
8756
  /*category*/
8779
- ctx[53].id,
8757
+ ctx[55].id,
8780
8758
  /*sourceSelectedContainerId*/
8781
8759
  ctx[8],
8782
8760
  /*currentSelectedItemId*/
@@ -8788,47 +8766,47 @@
8788
8766
  if (dirty[0] & /*considerContainerId, isDraggingOver, openCategoryContainer*/
8789
8767
  8240)
8790
8768
  promptcategorisedndcontainer_changes.containerClass = "content-start !outline-none rounded-lg grow w-full md:p-4\n " + /*checkContainerDragOver*/
8791
- (ctx[25](
8769
+ (ctx[27](
8792
8770
  /*category*/
8793
- ctx[53].id,
8771
+ ctx[55].id,
8794
8772
  /*considerContainerId*/
8795
8773
  ctx[4],
8796
8774
  /*isDraggingOver*/
8797
8775
  ctx[5]
8798
8776
  ) ? "bg-violet-100" : "") + "\n " + /*checkifCategoryContainerOpen*/
8799
- (ctx[30](
8777
+ (ctx[32](
8800
8778
  /*category*/
8801
- ctx[53].id,
8779
+ ctx[55].id,
8802
8780
  /*openCategoryContainer*/
8803
8781
  ctx[13]
8804
8782
  ) ? "h-full p-3 min-h-[86px] md:min-h-0" : "");
8805
8783
  if (dirty[0] & /*openCategoryContainer, categoryTitleHeight*/
8806
- 532480)
8784
+ 1056768)
8807
8785
  promptcategorisedndcontainer_changes.paddingTop = /*checkifCategoryContainerOpen*/
8808
- ctx[30](
8786
+ ctx[32](
8809
8787
  /*category*/
8810
- ctx[53].id,
8788
+ ctx[55].id,
8811
8789
  /*openCategoryContainer*/
8812
8790
  ctx[13]
8813
8791
  ) || !useIsSmallScreen() ? (
8814
8792
  /*categoryTitleHeight*/
8815
- ctx[19][
8793
+ ctx[20][
8816
8794
  /*category*/
8817
- ctx[53].id
8795
+ ctx[55].id
8818
8796
  ] + 16
8819
8797
  ) : (
8820
8798
  /*categoryTitleHeight*/
8821
- ctx[19][
8799
+ ctx[20][
8822
8800
  /*category*/
8823
- ctx[53].id
8801
+ ctx[55].id
8824
8802
  ]
8825
8803
  );
8826
8804
  if (dirty[0] & /*openCategoryContainer*/
8827
8805
  8192)
8828
8806
  promptcategorisedndcontainer_changes.showButton = /*checkifCategoryContainerOpen*/
8829
- ctx[30](
8807
+ ctx[32](
8830
8808
  /*category*/
8831
- ctx[53].id,
8809
+ ctx[55].id,
8832
8810
  /*openCategoryContainer*/
8833
8811
  ctx[13]
8834
8812
  );
@@ -8861,48 +8839,48 @@
8861
8839
  }
8862
8840
  if (!current || dirty[0] & /*considerContainerId, isDraggingOver, dropContainerId, hasAddItemAnimation, sourceSelectedContainerId, currentSelectedItemId, openCategoryContainer*/
8863
8841
  10736 && div1_class_value !== (div1_class_value = "focus-ring group/itemContainer flex flex-col border border-gray-800 rounded-lg basis-0 grow relative md:h-fit md:min-h-[140px] md:items-center lg:mr-6 lg:last:mr-0 lg:min-h-[224px] " + /*checkContainerDragOver*/
8864
- (ctx[25](
8842
+ (ctx[27](
8865
8843
  /*category*/
8866
- ctx[53].id,
8844
+ ctx[55].id,
8867
8845
  /*considerContainerId*/
8868
8846
  ctx[4],
8869
8847
  /*isDraggingOver*/
8870
8848
  ctx[5]
8871
8849
  ) ? "raw-focus-ring" : "") + " " + /*checkContainerDroppedItem*/
8872
- (ctx[26](
8850
+ (ctx[28](
8873
8851
  /*category*/
8874
- ctx[53].id,
8852
+ ctx[55].id,
8875
8853
  /*dropContainerId*/
8876
8854
  ctx[6]
8877
8855
  ) ? "bg-violet-150" : "") + " " + /*checkContainerDroppedItem*/
8878
- (ctx[26](
8856
+ (ctx[28](
8879
8857
  /*category*/
8880
- ctx[53].id,
8858
+ ctx[55].id,
8881
8859
  /*dropContainerId*/
8882
8860
  ctx[6]
8883
8861
  ) && /*hasAddItemAnimation*/
8884
8862
  ctx[11] ? "transition bg-white duration-300" : "") + " " + /*checkSelectedSourceContainer*/
8885
- (ctx[27](
8863
+ (ctx[29](
8886
8864
  /*category*/
8887
- ctx[53].id,
8865
+ ctx[55].id,
8888
8866
  /*sourceSelectedContainerId*/
8889
8867
  ctx[8],
8890
8868
  /*currentSelectedItemId*/
8891
8869
  ctx[7]
8892
8870
  ) ? "hover:bg-violet-100 hover-focus-ring cursor-pointer" : "") + " " + /*checkifCategoryContainerOpen*/
8893
- (ctx[30](
8871
+ (ctx[32](
8894
8872
  /*category*/
8895
- ctx[53].id,
8873
+ ctx[55].id,
8896
8874
  /*openCategoryContainer*/
8897
8875
  ctx[13]
8898
8876
  ) ? "min-h-[140px]" : ""))) {
8899
8877
  attr(div1, "class", div1_class_value);
8900
8878
  }
8901
8879
  if (category !== /*category*/
8902
- ctx[53]) {
8880
+ ctx[55]) {
8903
8881
  unassign_div1();
8904
8882
  category = /*category*/
8905
- ctx[53];
8883
+ ctx[55];
8906
8884
  assign_div1();
8907
8885
  }
8908
8886
  },
@@ -8991,7 +8969,7 @@
8991
8969
  let div2;
8992
8970
  let show_if = (
8993
8971
  /*checkContainerDroppedItem*/
8994
- ctx[26](
8972
+ ctx[28](
8995
8973
  CONTAINER_WORD_BIN_ID,
8996
8974
  /*dropContainerId*/
8997
8975
  ctx[6]
@@ -9038,7 +9016,7 @@
9038
9016
  );
9039
9017
  let each_value = ensure_array_like(Object.values(
9040
9018
  /*categoryGroups*/
9041
- ctx[24]
9019
+ ctx[25]
9042
9020
  ));
9043
9021
  let each_blocks = [];
9044
9022
  for (let i = 0; i < each_value.length; i += 1) {
@@ -9052,14 +9030,14 @@
9052
9030
  promptcategorisedndcontainer = new PromptCategoriseDndContainer_default({
9053
9031
  props: {
9054
9032
  containerClass: "bg-transparent p-4 pt-[55px] grow md:grow-0 md:pt-20.5 justify-center md:justify-normal\n " + /*isWordBInTotalZero*/
9055
- (ctx[32](
9033
+ (ctx[34](
9056
9034
  /*totalRemainingWordBinItem*/
9057
9035
  ctx[10]
9058
9036
  ) && !/*currentSelectedItemId*/
9059
9037
  ctx[7] ? "absolute inset-0" : ""),
9060
9038
  items: (
9061
9039
  /*categoryItems*/
9062
- ctx[23]
9040
+ ctx[24]
9063
9041
  ),
9064
9042
  containerId: CONTAINER_WORD_BIN_ID,
9065
9043
  ariaLabel: "Word bin",
@@ -9069,7 +9047,7 @@
9069
9047
  ),
9070
9048
  correctAnswerList: (
9071
9049
  /*scoringMetadata*/
9072
- ctx[21]
9050
+ ctx[22]
9073
9051
  ),
9074
9052
  isPreviewModeInteractive: (
9075
9053
  /*isPreviewModeInteractive*/
@@ -9080,7 +9058,7 @@
9080
9058
  promptcategorisedndcontainer.$on(
9081
9059
  "saveCategory",
9082
9060
  /*saveCategory*/
9083
- ctx[33]
9061
+ ctx[35]
9084
9062
  );
9085
9063
  smallchevronright = new SmallChevronRight_default({});
9086
9064
  return {
@@ -9162,7 +9140,7 @@
9162
9140
  attr(span4, "class", "w-6 h-6 text-inherit flex items-center justify-center");
9163
9141
  attr(button1, "aria-label", "Left");
9164
9142
  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[32](
9143
+ (ctx[34](
9166
9144
  /*totalRemainingWordBinItem*/
9167
9145
  ctx[10]
9168
9146
  ) ? "hidden" : ""));
@@ -9171,7 +9149,7 @@
9171
9149
  attr(span5, "class", "w-6 h-6 text-inherit flex items-center justify-center ml-[3px]");
9172
9150
  attr(button2, "aria-label", "Right");
9173
9151
  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[32](
9152
+ (ctx[34](
9175
9153
  /*totalRemainingWordBinItem*/
9176
9154
  ctx[10]
9177
9155
  ) ? "hidden" : ""));
@@ -9192,32 +9170,32 @@
9192
9170
  ctx[15]
9193
9171
  );
9194
9172
  attr(div4, "aria-live", div4_aria_live_value = /*checkContainerDroppedItem*/
9195
- ctx[26](
9173
+ ctx[28](
9196
9174
  CONTAINER_WORD_BIN_ID,
9197
9175
  /*dropContainerId*/
9198
9176
  ctx[6]
9199
9177
  ) ? "polite" : "off");
9200
9178
  attr(div4, "role", "group");
9201
9179
  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[25](
9180
+ (ctx[27](
9203
9181
  CONTAINER_WORD_BIN_ID,
9204
9182
  /*considerContainerId*/
9205
9183
  ctx[4],
9206
9184
  /*isDraggingOver*/
9207
9185
  ctx[5]
9208
9186
  ) ? "raw-focus-ring bg-violet-100" : "") + " " + /*checkContainerDroppedItem*/
9209
- (ctx[26](
9187
+ (ctx[28](
9210
9188
  CONTAINER_WORD_BIN_ID,
9211
9189
  /*dropContainerId*/
9212
9190
  ctx[6]
9213
9191
  ) ? "bg-violet-150" : "") + " " + /*checkContainerDroppedItem*/
9214
- (ctx[26](
9192
+ (ctx[28](
9215
9193
  CONTAINER_WORD_BIN_ID,
9216
9194
  /*dropContainerId*/
9217
9195
  ctx[6]
9218
9196
  ) && /*hasAddItemAnimation*/
9219
9197
  ctx[11] ? "transition bg-white duration-300" : "") + " " + /*checkSelectedSourceContainer*/
9220
- (ctx[27](
9198
+ (ctx[29](
9221
9199
  CONTAINER_WORD_BIN_ID,
9222
9200
  /*sourceSelectedContainerId*/
9223
9201
  ctx[8],
@@ -9271,7 +9249,7 @@
9271
9249
  append(div3, button2);
9272
9250
  append(button2, span5);
9273
9251
  mount_component(smallchevronright, span5, null);
9274
- ctx[43](div4);
9252
+ ctx[45](div4);
9275
9253
  current = true;
9276
9254
  if (!mounted) {
9277
9255
  dispose = [
@@ -9279,7 +9257,7 @@
9279
9257
  button0,
9280
9258
  "keypress",
9281
9259
  /*goToWordBin*/
9282
- ctx[36]
9260
+ ctx[38]
9283
9261
  ),
9284
9262
  listen(button1, "click", function() {
9285
9263
  if (is_function(useNavigateItem(
@@ -9317,13 +9295,13 @@
9317
9295
  div4,
9318
9296
  "keydown",
9319
9297
  /*keydown_handler_1*/
9320
- ctx[42]
9298
+ ctx[44]
9321
9299
  ),
9322
9300
  listen(
9323
9301
  div4,
9324
9302
  "focus",
9325
9303
  /*resetTabCategory*/
9326
- ctx[35]
9304
+ ctx[37]
9327
9305
  )
9328
9306
  ];
9329
9307
  mounted = true;
@@ -9397,12 +9375,12 @@
9397
9375
  ctx[12]
9398
9376
  );
9399
9377
  }
9400
- if (dirty[0] & /*isModalOpen, categoryTabIndex, checkContainerDragOver, categoryGroups, considerContainerId, isDraggingOver, checkContainerDroppedItem, dropContainerId, hasAddItemAnimation, checkSelectedSourceContainer, sourceSelectedContainerId, currentSelectedItemId, checkifCategoryContainerOpen, openCategoryContainer, tabCategory, categoryTitleHeight, isFinished, scoringMetadata, isPreviewModeInteractive, getTotalWords, currentAnswer, previewResultSr, selectedItemName*/
9401
- 1865399283 | dirty[1] & /*getContainerTabSelected, resetTabCategory, saveCategory, addCategoryContainer*/
9402
- 29) {
9378
+ if (dirty[0] & /*isModalOpen, categoryTabIndex, checkContainerDragOver, categoryGroups, considerContainerId, isDraggingOver, checkContainerDroppedItem, dropContainerId, hasAddItemAnimation, checkSelectedSourceContainer, sourceSelectedContainerId, currentSelectedItemId, openCategoryContainer, tabCategory, categoryTitleHeight, totalCagories, isFinished, scoringMetadata, isPreviewModeInteractive, enableAriaLive, currentAnswer, previewResultSr, selectedItemName*/
9379
+ 1046461427 | dirty[1] & /*checkifCategoryContainerOpen, getContainerTabSelected, resetTabCategory, saveCategory, getTotalWords, addCategoryContainer*/
9380
+ 119) {
9403
9381
  each_value = ensure_array_like(Object.values(
9404
9382
  /*categoryGroups*/
9405
- ctx[24]
9383
+ ctx[25]
9406
9384
  ));
9407
9385
  let i;
9408
9386
  for (i = 0; i < each_value.length; i += 1) {
@@ -9426,7 +9404,7 @@
9426
9404
  if (dirty[0] & /*dropContainerId*/
9427
9405
  64)
9428
9406
  show_if = /*checkContainerDroppedItem*/
9429
- ctx[26](
9407
+ ctx[28](
9430
9408
  CONTAINER_WORD_BIN_ID,
9431
9409
  /*dropContainerId*/
9432
9410
  ctx[6]
@@ -9459,7 +9437,7 @@
9459
9437
  );
9460
9438
  if (!current || dirty[0] & /*totalRemainingWordBinItem*/
9461
9439
  1024 && button1_class_value !== (button1_class_value = "focus-ring p-2 text-blue-1000 rounded-md w-11 h-11 mt-9 td:hover:bg-black-50 active:bg-black-60 disabled:text-gray-40 disabled:hover:bg-white md:hidden " + /*isWordBInTotalZero*/
9462
- (ctx[32](
9440
+ (ctx[34](
9463
9441
  /*totalRemainingWordBinItem*/
9464
9442
  ctx[10]
9465
9443
  ) ? "hidden" : ""))) {
@@ -9474,7 +9452,7 @@
9474
9452
  if (dirty[0] & /*totalRemainingWordBinItem, currentSelectedItemId*/
9475
9453
  1152)
9476
9454
  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[32](
9455
+ (ctx[34](
9478
9456
  /*totalRemainingWordBinItem*/
9479
9457
  ctx[10]
9480
9458
  ) && !/*currentSelectedItemId*/
@@ -9490,7 +9468,7 @@
9490
9468
  promptcategorisedndcontainer.$set(promptcategorisedndcontainer_changes);
9491
9469
  if (!current || dirty[0] & /*totalRemainingWordBinItem*/
9492
9470
  1024 && button2_class_value !== (button2_class_value = "focus-ring p-2 text-blue-1000 rounded-md w-11 h-11 mt-9 td:hover:bg-black-50 active:bg-black-60 disabled:text-gray-40 disabled:hover:bg-white md:hidden " + /*isWordBInTotalZero*/
9493
- (ctx[32](
9471
+ (ctx[34](
9494
9472
  /*totalRemainingWordBinItem*/
9495
9473
  ctx[10]
9496
9474
  ) ? "hidden" : ""))) {
@@ -9522,7 +9500,7 @@
9522
9500
  }
9523
9501
  if (!current || dirty[0] & /*dropContainerId*/
9524
9502
  64 && div4_aria_live_value !== (div4_aria_live_value = /*checkContainerDroppedItem*/
9525
- ctx[26](
9503
+ ctx[28](
9526
9504
  CONTAINER_WORD_BIN_ID,
9527
9505
  /*dropContainerId*/
9528
9506
  ctx[6]
@@ -9531,25 +9509,25 @@
9531
9509
  }
9532
9510
  if (!current || dirty[0] & /*considerContainerId, isDraggingOver, dropContainerId, hasAddItemAnimation, sourceSelectedContainerId, currentSelectedItemId*/
9533
9511
  2544 && div4_class_value !== (div4_class_value = "focus-ring shadow-[0_-12px_14px_-16px_#00000033] rounded-lg relative min-h-[133px] md:min-h-[164px] md:border md:shadow-[0_0_#0000] md:border-gray-400 " + /*checkContainerDragOver*/
9534
- (ctx[25](
9512
+ (ctx[27](
9535
9513
  CONTAINER_WORD_BIN_ID,
9536
9514
  /*considerContainerId*/
9537
9515
  ctx[4],
9538
9516
  /*isDraggingOver*/
9539
9517
  ctx[5]
9540
9518
  ) ? "raw-focus-ring bg-violet-100" : "") + " " + /*checkContainerDroppedItem*/
9541
- (ctx[26](
9519
+ (ctx[28](
9542
9520
  CONTAINER_WORD_BIN_ID,
9543
9521
  /*dropContainerId*/
9544
9522
  ctx[6]
9545
9523
  ) ? "bg-violet-150" : "") + " " + /*checkContainerDroppedItem*/
9546
- (ctx[26](
9524
+ (ctx[28](
9547
9525
  CONTAINER_WORD_BIN_ID,
9548
9526
  /*dropContainerId*/
9549
9527
  ctx[6]
9550
9528
  ) && /*hasAddItemAnimation*/
9551
9529
  ctx[11] ? "transition bg-white duration-300" : "") + " " + /*checkSelectedSourceContainer*/
9552
- (ctx[27](
9530
+ (ctx[29](
9553
9531
  CONTAINER_WORD_BIN_ID,
9554
9532
  /*sourceSelectedContainerId*/
9555
9533
  ctx[8],
@@ -9608,7 +9586,7 @@
9608
9586
  destroy_component(smallchevronleft);
9609
9587
  destroy_component(promptcategorisedndcontainer);
9610
9588
  destroy_component(smallchevronright);
9611
- ctx[43](null);
9589
+ ctx[45](null);
9612
9590
  mounted = false;
9613
9591
  run_all(dispose);
9614
9592
  }
@@ -9622,11 +9600,11 @@
9622
9600
  props: {
9623
9601
  rubric: (
9624
9602
  /*rubric*/
9625
- ctx[20].text
9603
+ ctx[21].text
9626
9604
  ),
9627
9605
  prompt: (
9628
9606
  /*prompt*/
9629
- ctx[22]
9607
+ ctx[23]
9630
9608
  ),
9631
9609
  $$slots: { default: [create_default_slot4] },
9632
9610
  $$scope: { ctx }
@@ -9641,14 +9619,14 @@
9641
9619
  m(target, anchor) {
9642
9620
  insert(target, div, anchor);
9643
9621
  mount_component(promptbody, div, null);
9644
- ctx[44](div);
9622
+ ctx[46](div);
9645
9623
  current = true;
9646
9624
  },
9647
9625
  p(ctx2, dirty) {
9648
9626
  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
- 1048571 | dirty[1] & /*$$scope*/
9651
- 33554432) {
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
+ 2097147 | dirty[1] & /*$$scope*/
9629
+ 134217728) {
9652
9630
  promptbody_changes.$$scope = { dirty, ctx: ctx2 };
9653
9631
  }
9654
9632
  promptbody.$set(promptbody_changes);
@@ -9668,7 +9646,7 @@
9668
9646
  detach(div);
9669
9647
  }
9670
9648
  destroy_component(promptbody);
9671
- ctx[44](null);
9649
+ ctx[46](null);
9672
9650
  }
9673
9651
  };
9674
9652
  }
@@ -9695,12 +9673,14 @@
9695
9673
  let categoryTabIndex = 0;
9696
9674
  let selectedItemName = "";
9697
9675
  let previewResultSr = "";
9676
+ let enableAriaLive = true;
9698
9677
  const { rubric, interaction, metadata, scoringMetadata } = sessionData;
9699
9678
  const { prompt, category_groups: interactionCategoryGroups, category_items: interactionCategoryItems } = interaction;
9700
9679
  const categoryItems = useFilterUniqueObject(interactionCategoryItems);
9701
9680
  const categoryGroups = useFilterUniqueObject(interactionCategoryGroups);
9702
9681
  const tabCategory = [];
9703
- categoryGroups.map((group) => $$invalidate(18, tabCategory[group.id] = false, tabCategory));
9682
+ categoryGroups.map((group) => $$invalidate(19, tabCategory[group.id] = false, tabCategory));
9683
+ const totalCagories = categoryGroups.length;
9704
9684
  totalCategoryItems = totalRemainingWordBinItem = Object.keys(categoryItems).length;
9705
9685
  let wordBinItems = categoryItems.map((item) => item.id);
9706
9686
  let initialCategoryAnswer = [
@@ -9711,7 +9691,7 @@
9711
9691
  ];
9712
9692
  let categoryTitleHeight = [];
9713
9693
  categoryGroups.map((category) => {
9714
- $$invalidate(19, categoryTitleHeight[category.id] = "", categoryTitleHeight);
9694
+ $$invalidate(20, categoryTitleHeight[category.id] = "", categoryTitleHeight);
9715
9695
  });
9716
9696
  if (metadata) {
9717
9697
  const { events } = metadata.interactions;
@@ -9816,6 +9796,29 @@
9816
9796
  150
9817
9797
  );
9818
9798
  }
9799
+ if (previewResultSr) {
9800
+ setTimeout(
9801
+ () => {
9802
+ $$invalidate(18, enableAriaLive = false);
9803
+ },
9804
+ 400
9805
+ );
9806
+ setTimeout(
9807
+ () => {
9808
+ categoriseSettings.set({
9809
+ ...get_store_value(categoriseSettings),
9810
+ previewResultSr: ""
9811
+ });
9812
+ setTimeout(
9813
+ () => {
9814
+ $$invalidate(18, enableAriaLive = true);
9815
+ },
9816
+ 400
9817
+ );
9818
+ },
9819
+ 600
9820
+ );
9821
+ }
9819
9822
  });
9820
9823
  const checkContainerDragOver = (containerId, storeContainerId, isContainerDragOver) => {
9821
9824
  return containerId === storeContainerId && isContainerDragOver && sourceCloneContainerId !== containerId;
@@ -9897,20 +9900,20 @@
9897
9900
  };
9898
9901
  function div0_elementresize_handler(category) {
9899
9902
  categoryTitleHeight[category.id] = this.clientHeight;
9900
- $$invalidate(19, categoryTitleHeight);
9903
+ $$invalidate(20, categoryTitleHeight);
9901
9904
  }
9902
9905
  const keydown_handler = (category, { key }) => getContainerTabSelected(key, category.id);
9903
9906
  function div1_binding($$value, category) {
9904
9907
  binding_callbacks[$$value ? "unshift" : "push"](() => {
9905
9908
  tabCategory[category.id] = $$value;
9906
- $$invalidate(18, tabCategory);
9909
+ $$invalidate(19, tabCategory);
9907
9910
  });
9908
9911
  }
9909
9912
  const keydown_handler_1 = ({ key }) => getContainerTabSelected(key, CONTAINER_WORD_BIN_ID);
9910
9913
  function div4_binding($$value) {
9911
9914
  binding_callbacks[$$value ? "unshift" : "push"](() => {
9912
9915
  tabCategory[CONTAINER_WORD_BIN_ID] = $$value;
9913
- $$invalidate(18, tabCategory);
9916
+ $$invalidate(19, tabCategory);
9914
9917
  });
9915
9918
  }
9916
9919
  function div_binding($$value) {
@@ -9921,11 +9924,11 @@
9921
9924
  }
9922
9925
  $$self.$$set = ($$props2) => {
9923
9926
  if ("sessionData" in $$props2)
9924
- $$invalidate(37, sessionData = $$props2.sessionData);
9927
+ $$invalidate(39, sessionData = $$props2.sessionData);
9925
9928
  if ("isFinished" in $$props2)
9926
9929
  $$invalidate(0, isFinished = $$props2.isFinished);
9927
9930
  if ("isPreviewMode" in $$props2)
9928
- $$invalidate(38, isPreviewMode = $$props2.isPreviewMode);
9931
+ $$invalidate(40, isPreviewMode = $$props2.isPreviewMode);
9929
9932
  if ("isPreviewModeInteractive" in $$props2)
9930
9933
  $$invalidate(1, isPreviewModeInteractive = $$props2.isPreviewModeInteractive);
9931
9934
  };
@@ -9948,6 +9951,7 @@
9948
9951
  categoryTabIndex,
9949
9952
  selectedItemName,
9950
9953
  previewResultSr,
9954
+ enableAriaLive,
9951
9955
  tabCategory,
9952
9956
  categoryTitleHeight,
9953
9957
  rubric,
@@ -9955,6 +9959,7 @@
9955
9959
  prompt,
9956
9960
  categoryItems,
9957
9961
  categoryGroups,
9962
+ totalCagories,
9958
9963
  checkContainerDragOver,
9959
9964
  checkContainerDroppedItem,
9960
9965
  checkSelectedSourceContainer,
@@ -9987,9 +9992,9 @@
9987
9992
  create_fragment21,
9988
9993
  safe_not_equal,
9989
9994
  {
9990
- sessionData: 37,
9995
+ sessionData: 39,
9991
9996
  isFinished: 0,
9992
- isPreviewMode: 38,
9997
+ isPreviewMode: 40,
9993
9998
  isPreviewModeInteractive: 1
9994
9999
  },
9995
10000
  null,
@@ -9997,7 +10002,7 @@
9997
10002
  );
9998
10003
  }
9999
10004
  get sessionData() {
10000
- return this.$$.ctx[37];
10005
+ return this.$$.ctx[39];
10001
10006
  }
10002
10007
  set sessionData(sessionData) {
10003
10008
  this.$$set({ sessionData });
@@ -10011,7 +10016,7 @@
10011
10016
  flush();
10012
10017
  }
10013
10018
  get isPreviewMode() {
10014
- return this.$$.ctx[38];
10019
+ return this.$$.ctx[40];
10015
10020
  }
10016
10021
  set isPreviewMode(isPreviewMode) {
10017
10022
  this.$$set({ isPreviewMode });