eat-js-sdk 1.0.31 → 1.0.33

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.
@@ -11346,7 +11346,7 @@
11346
11346
  create_component(crossicon.$$.fragment);
11347
11347
  t5 = space();
11348
11348
  p = element("p");
11349
- p.textContent = "Are you sure you want to reset your answers for this question? This cannot be undone.";
11349
+ p.textContent = "Are you sure you want to reset your answers for this question? This\n cannot be undone.";
11350
11350
  t7 = space();
11351
11351
  div2 = element("div");
11352
11352
  button1 = element("button");
@@ -11564,6 +11564,7 @@
11564
11564
  hasAddItemAnimation: false
11565
11565
  });
11566
11566
  dispatch("updateCategorySettings", categoryData);
11567
+ dispatch("resetFeedback");
11567
11568
  dispatch("resetCategory", { answer_list: [] });
11568
11569
  closeResetModal();
11569
11570
  };
@@ -12132,11 +12133,78 @@
12132
12133
  // src/lib/components/prompt/categorise/PromptCategorise.svelte
12133
12134
  function get_each_context4(ctx, list, i) {
12134
12135
  const child_ctx = ctx.slice();
12135
- child_ctx[68] = list[i];
12136
- child_ctx[69] = list;
12137
- child_ctx[70] = i;
12136
+ child_ctx[76] = list[i];
12137
+ child_ctx[77] = list;
12138
+ child_ctx[78] = i;
12138
12139
  return child_ctx;
12139
12140
  }
12141
+ function create_if_block_84(ctx) {
12142
+ let promptresult;
12143
+ let current;
12144
+ promptresult = new PromptResultFeedbackAlert_default({
12145
+ props: {
12146
+ hasIcon: true,
12147
+ isFeedbackAlert: (
12148
+ /*isPreviewModeInteractive*/
12149
+ ctx[1] ? false : true
12150
+ ),
12151
+ isResultCorrect: (
12152
+ /*allAnswersCorrect*/
12153
+ ctx[26]
12154
+ ),
12155
+ isSkipped: (
12156
+ /*isItemSkipped*/
12157
+ ctx[27]
12158
+ ),
12159
+ resultFeedback: (
12160
+ /*resultFeedback*/
12161
+ ctx[28]
12162
+ )
12163
+ }
12164
+ });
12165
+ return {
12166
+ c() {
12167
+ create_component(promptresult.$$.fragment);
12168
+ },
12169
+ m(target, anchor) {
12170
+ mount_component(promptresult, target, anchor);
12171
+ current = true;
12172
+ },
12173
+ p(ctx2, dirty) {
12174
+ const promptresult_changes = {};
12175
+ if (dirty[0] & /*isPreviewModeInteractive*/
12176
+ 2)
12177
+ promptresult_changes.isFeedbackAlert = /*isPreviewModeInteractive*/
12178
+ ctx2[1] ? false : true;
12179
+ if (dirty[0] & /*allAnswersCorrect*/
12180
+ 67108864)
12181
+ promptresult_changes.isResultCorrect = /*allAnswersCorrect*/
12182
+ ctx2[26];
12183
+ if (dirty[0] & /*isItemSkipped*/
12184
+ 134217728)
12185
+ promptresult_changes.isSkipped = /*isItemSkipped*/
12186
+ ctx2[27];
12187
+ if (dirty[0] & /*resultFeedback*/
12188
+ 268435456)
12189
+ promptresult_changes.resultFeedback = /*resultFeedback*/
12190
+ ctx2[28];
12191
+ promptresult.$set(promptresult_changes);
12192
+ },
12193
+ i(local) {
12194
+ if (current)
12195
+ return;
12196
+ transition_in(promptresult.$$.fragment, local);
12197
+ current = true;
12198
+ },
12199
+ o(local) {
12200
+ transition_out(promptresult.$$.fragment, local);
12201
+ current = false;
12202
+ },
12203
+ d(detaching) {
12204
+ destroy_component(promptresult, detaching);
12205
+ }
12206
+ };
12207
+ }
12140
12208
  function create_if_block_74(ctx) {
12141
12209
  let promptcategorisemodal;
12142
12210
  let current;
@@ -12155,17 +12223,22 @@
12155
12223
  promptcategorisemodal.$on(
12156
12224
  "updateCategorySettings",
12157
12225
  /*updateCategory*/
12158
- ctx[41]
12226
+ ctx[46]
12159
12227
  );
12160
12228
  promptcategorisemodal.$on(
12161
12229
  "updateModalSettings",
12162
12230
  /*updateModal*/
12163
- ctx[47]
12231
+ ctx[52]
12164
12232
  );
12165
12233
  promptcategorisemodal.$on(
12166
12234
  "resetCategory",
12167
12235
  /*saveCategory*/
12168
- ctx[40]
12236
+ ctx[45]
12237
+ );
12238
+ promptcategorisemodal.$on(
12239
+ "resetFeedback",
12240
+ /*resetFeedbackStatus*/
12241
+ ctx[35]
12169
12242
  );
12170
12243
  return {
12171
12244
  c() {
@@ -12243,7 +12316,7 @@
12243
12316
  button,
12244
12317
  "click",
12245
12318
  /*openResetModal*/
12246
- ctx[34]
12319
+ ctx[39]
12247
12320
  );
12248
12321
  mounted = true;
12249
12322
  }
@@ -12324,7 +12397,7 @@
12324
12397
  span = element("span");
12325
12398
  span.textContent = `${useRemoveRichTextHtmlTags(
12326
12399
  /*category*/
12327
- ctx[68].name
12400
+ ctx[76].name
12328
12401
  )}`;
12329
12402
  attr(span, "class", "sr-only");
12330
12403
  },
@@ -12344,11 +12417,11 @@
12344
12417
  let t0;
12345
12418
  let t1_value = (
12346
12419
  /*getTotalWordsLabel*/
12347
- ctx[36](
12420
+ ctx[41](
12348
12421
  /*totalCategoryWords*/
12349
12422
  ctx[6][
12350
12423
  /*category*/
12351
- ctx[68].id
12424
+ ctx[76].id
12352
12425
  ]
12353
12426
  ) + ""
12354
12427
  );
@@ -12371,11 +12444,11 @@
12371
12444
  p(ctx2, dirty) {
12372
12445
  if (dirty[0] & /*totalCategoryWords*/
12373
12446
  64 && t1_value !== (t1_value = /*getTotalWordsLabel*/
12374
- ctx2[36](
12447
+ ctx2[41](
12375
12448
  /*totalCategoryWords*/
12376
12449
  ctx2[6][
12377
12450
  /*category*/
12378
- ctx2[68].id
12451
+ ctx2[76].id
12379
12452
  ]
12380
12453
  ) + ""))
12381
12454
  set_data(t1, t1_value);
@@ -12500,9 +12573,9 @@
12500
12573
  let div0;
12501
12574
  let show_if_2 = (
12502
12575
  /*checkContainerDroppedItem*/
12503
- ctx[32](
12576
+ ctx[37](
12504
12577
  /*category*/
12505
- ctx[68].id,
12578
+ ctx[76].id,
12506
12579
  /*dropContainerId*/
12507
12580
  ctx[13]
12508
12581
  )
@@ -12514,9 +12587,9 @@
12514
12587
  let t5;
12515
12588
  let show_if_1 = (
12516
12589
  /*checkContainerDroppedItem*/
12517
- ctx[32](
12590
+ ctx[37](
12518
12591
  /*category*/
12519
- ctx[68].id,
12592
+ ctx[76].id,
12520
12593
  /*dropContainerId*/
12521
12594
  ctx[13]
12522
12595
  ) && /*enableAriaLive*/
@@ -12529,9 +12602,9 @@
12529
12602
  let span1;
12530
12603
  let t9_value = (
12531
12604
  /*getTotalWords*/
12532
- ctx[35](
12605
+ ctx[40](
12533
12606
  /*category*/
12534
- ctx[68].id,
12607
+ ctx[76].id,
12535
12608
  /*currentAnswer*/
12536
12609
  ctx[4]
12537
12610
  ) + ""
@@ -12553,7 +12626,7 @@
12553
12626
  let div1_class_value;
12554
12627
  let category = (
12555
12628
  /*category*/
12556
- ctx[68]
12629
+ ctx[76]
12557
12630
  );
12558
12631
  let current;
12559
12632
  let mounted;
@@ -12563,9 +12636,9 @@
12563
12636
  props: {
12564
12637
  ariaHidden: (
12565
12638
  /*checkContainerDroppedItem*/
12566
- ctx[32](
12639
+ ctx[37](
12567
12640
  /*category*/
12568
- ctx[68].id,
12641
+ ctx[76].id,
12569
12642
  /*dropContainerId*/
12570
12643
  ctx[13]
12571
12644
  ) && /*enableAriaLive*/
@@ -12573,7 +12646,7 @@
12573
12646
  ),
12574
12647
  htmlString: (
12575
12648
  /*category*/
12576
- ctx[68].name
12649
+ ctx[76].name
12577
12650
  ),
12578
12651
  otherClass: "text-base leading-5 !text-gray-900 md:item-heading"
12579
12652
  }
@@ -12593,9 +12666,9 @@
12593
12666
  show_if = null;
12594
12667
  if (show_if == null)
12595
12668
  show_if = !!/*checkifCategoryContainerOpen*/
12596
- ctx2[37](
12669
+ ctx2[42](
12597
12670
  /*category*/
12598
- ctx2[68].id,
12671
+ ctx2[76].id,
12599
12672
  /*openCategoryContainer*/
12600
12673
  ctx2[19]
12601
12674
  );
@@ -12606,73 +12679,73 @@
12606
12679
  current_block_type_index = select_block_type(ctx, [-1, -1, -1]);
12607
12680
  if_block4 = if_blocks[current_block_type_index] = if_block_creators[current_block_type_index](ctx);
12608
12681
  function div0_elementresize_handler() {
12609
- ctx[50].call(
12682
+ ctx[55].call(
12610
12683
  div0,
12611
12684
  /*category*/
12612
- ctx[68]
12685
+ ctx[76]
12613
12686
  );
12614
12687
  }
12615
12688
  promptcategorisedndcontainer = new PromptCategoriseDndContainer_default({
12616
12689
  props: {
12617
12690
  containerClass: "content-start !outline-none rounded-lg grow w-full md:p-4\n " + /*checkContainerDragOver*/
12618
- (ctx[31](
12691
+ (ctx[36](
12619
12692
  /*category*/
12620
- ctx[68].id,
12693
+ ctx[76].id,
12621
12694
  /*considerContainerId*/
12622
12695
  ctx[11],
12623
12696
  /*isDraggingOver*/
12624
12697
  ctx[12]
12625
12698
  ) ? "bg-violet-100" : "") + "\n " + /*checkifCategoryContainerOpen*/
12626
- (ctx[37](
12699
+ (ctx[42](
12627
12700
  /*category*/
12628
- ctx[68].id,
12701
+ ctx[76].id,
12629
12702
  /*openCategoryContainer*/
12630
12703
  ctx[19]
12631
12704
  ) ? "h-full p-3 min-h-[86px] md:min-h-0" : ""),
12632
12705
  paddingTop: (
12633
12706
  /*checkifCategoryContainerOpen*/
12634
- ctx[37](
12707
+ ctx[42](
12635
12708
  /*category*/
12636
- ctx[68].id,
12709
+ ctx[76].id,
12637
12710
  /*openCategoryContainer*/
12638
12711
  ctx[19]
12639
12712
  ) || !useIsSmallScreen() ? (
12640
12713
  /*categoryTitleHeight*/
12641
12714
  ctx[24][
12642
12715
  /*category*/
12643
- ctx[68].id
12716
+ ctx[76].id
12644
12717
  ] + 16
12645
12718
  ) : (
12646
12719
  /*categoryTitleHeight*/
12647
12720
  ctx[24][
12648
12721
  /*category*/
12649
- ctx[68].id
12722
+ ctx[76].id
12650
12723
  ]
12651
12724
  )
12652
12725
  ),
12653
12726
  containerId: (
12654
12727
  /*category*/
12655
- ctx[68].id
12728
+ ctx[76].id
12656
12729
  ),
12657
12730
  showButton: (
12658
12731
  /*checkifCategoryContainerOpen*/
12659
- ctx[37](
12732
+ ctx[42](
12660
12733
  /*category*/
12661
- ctx[68].id,
12734
+ ctx[76].id,
12662
12735
  /*openCategoryContainer*/
12663
12736
  ctx[19]
12664
12737
  )
12665
12738
  ),
12666
12739
  ariaLabel: `Category ${/*index*/
12667
- ctx[70] + 1}: ${/*category*/
12668
- ctx[68].name}`,
12740
+ ctx[78] + 1}: ${/*category*/
12741
+ ctx[76].name}`,
12669
12742
  isFinished: (
12670
12743
  /*isFinished*/
12671
12744
  ctx[0]
12672
12745
  ),
12673
12746
  correctAnswerList: (
12674
12747
  /*scoringMetadata*/
12675
- ctx[27]
12748
+ ctx[31]
12676
12749
  ),
12677
12750
  isPreviewModeInteractive: (
12678
12751
  /*isPreviewModeInteractive*/
@@ -12684,7 +12757,7 @@
12684
12757
  ),
12685
12758
  type: (
12686
12759
  /*categoryDndType*/
12687
- ctx[25]
12760
+ ctx[29]
12688
12761
  ),
12689
12762
  isDataSaving: (
12690
12763
  /*isDataSaving*/
@@ -12695,30 +12768,30 @@
12695
12768
  promptcategorisedndcontainer.$on(
12696
12769
  "updateCategorySettings",
12697
12770
  /*updateCategory*/
12698
- ctx[41]
12771
+ ctx[46]
12699
12772
  );
12700
12773
  promptcategorisedndcontainer.$on(
12701
12774
  "saveCategory",
12702
12775
  /*saveCategory*/
12703
- ctx[40]
12776
+ ctx[45]
12704
12777
  );
12705
12778
  function keydown_handler(...args) {
12706
12779
  return (
12707
12780
  /*keydown_handler*/
12708
- ctx[51](
12781
+ ctx[56](
12709
12782
  /*category*/
12710
- ctx[68],
12783
+ ctx[76],
12711
12784
  ...args
12712
12785
  )
12713
12786
  );
12714
12787
  }
12715
12788
  const assign_div1 = () => (
12716
12789
  /*div1_binding*/
12717
- ctx[53](div1, category)
12790
+ ctx[58](div1, category)
12718
12791
  );
12719
12792
  const unassign_div1 = () => (
12720
12793
  /*div1_binding*/
12721
- ctx[53](null, category)
12794
+ ctx[58](null, category)
12722
12795
  );
12723
12796
  return {
12724
12797
  c() {
@@ -12729,7 +12802,7 @@
12729
12802
  t0 = space();
12730
12803
  span0 = element("span");
12731
12804
  span0.textContent = `Category ${/*index*/
12732
- ctx[70] + 1}:\xA0`;
12805
+ ctx[78] + 1}:\xA0`;
12733
12806
  t4 = space();
12734
12807
  create_component(commonstringtohtml.$$.fragment);
12735
12808
  t5 = space();
@@ -12755,59 +12828,59 @@
12755
12828
  attr(span1, "class", "mx-0.5");
12756
12829
  attr(span2, "class", "w-4 h-4 text-inherit flex items-center justify-center");
12757
12830
  attr(button, "aria-label", button_aria_label_value = /*getTotalWords*/
12758
- ctx[35](
12831
+ ctx[40](
12759
12832
  /*category*/
12760
- ctx[68].id,
12833
+ ctx[76].id,
12761
12834
  /*currentAnswer*/
12762
12835
  ctx[4]
12763
12836
  ));
12764
12837
  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");
12765
12838
  attr(div0, "id", div0_id_value = `category-title${/*index*/
12766
- ctx[70]}`);
12839
+ ctx[78]}`);
12767
12840
  attr(div0, "aria-live", div0_aria_live_value = /*checkContainerDroppedItem*/
12768
- ctx[32](
12841
+ ctx[37](
12769
12842
  /*category*/
12770
- ctx[68].id,
12843
+ ctx[76].id,
12771
12844
  /*dropContainerId*/
12772
12845
  ctx[13]
12773
12846
  ) && /*enableAriaLive*/
12774
12847
  ctx[23] ? "polite" : "off");
12775
12848
  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*/
12776
- (ctx[32](
12849
+ (ctx[37](
12777
12850
  /*category*/
12778
- ctx[68].id,
12851
+ ctx[76].id,
12779
12852
  /*dropContainerId*/
12780
12853
  ctx[13]
12781
12854
  ) ? "bg-tranparent" : "bg-white") + " " + (!/*checkifCategoryContainerOpen*/
12782
- ctx[37](
12855
+ ctx[42](
12783
12856
  /*category*/
12784
- ctx[68].id,
12857
+ ctx[76].id,
12785
12858
  /*openCategoryContainer*/
12786
12859
  ctx[19]
12787
12860
  ) && /*checkContainerDragOver*/
12788
- ctx[31](
12861
+ ctx[36](
12789
12862
  /*category*/
12790
- ctx[68].id,
12863
+ ctx[76].id,
12791
12864
  /*considerContainerId*/
12792
12865
  ctx[11],
12793
12866
  /*isDraggingOver*/
12794
12867
  ctx[12]
12795
12868
  ) ? "!bg-violet-100 md:!bg-white" : "") + " " + /*checkifCategoryContainerOpen*/
12796
- (ctx[37](
12869
+ (ctx[42](
12797
12870
  /*category*/
12798
- ctx[68].id,
12871
+ ctx[76].id,
12799
12872
  /*openCategoryContainer*/
12800
12873
  ctx[19]
12801
12874
  ) ? "" : "rounded-b-lg md:rounded-b-none") + " " + (!/*checkifCategoryContainerOpen*/
12802
- ctx[37](
12875
+ ctx[42](
12803
12876
  /*category*/
12804
- ctx[68].id,
12877
+ ctx[76].id,
12805
12878
  /*openCategoryContainer*/
12806
12879
  ctx[19]
12807
12880
  ) && /*checkSelectedSourceContainer*/
12808
- ctx[33](
12881
+ ctx[38](
12809
12882
  /*category*/
12810
- ctx[68].id,
12883
+ ctx[76].id,
12811
12884
  /*sourceSelectedContainerId*/
12812
12885
  ctx[15],
12813
12886
  /*currentSelectedItemId*/
@@ -12828,38 +12901,38 @@
12828
12901
  );
12829
12902
  attr(div1, "role", "group");
12830
12903
  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*/
12831
- (ctx[31](
12904
+ (ctx[36](
12832
12905
  /*category*/
12833
- ctx[68].id,
12906
+ ctx[76].id,
12834
12907
  /*considerContainerId*/
12835
12908
  ctx[11],
12836
12909
  /*isDraggingOver*/
12837
12910
  ctx[12]
12838
12911
  ) ? "raw-focus-ring" : "") + " " + /*checkContainerDroppedItem*/
12839
- (ctx[32](
12912
+ (ctx[37](
12840
12913
  /*category*/
12841
- ctx[68].id,
12914
+ ctx[76].id,
12842
12915
  /*dropContainerId*/
12843
12916
  ctx[13]
12844
12917
  ) ? "bg-violet-150" : "") + " " + /*checkContainerDroppedItem*/
12845
- (ctx[32](
12918
+ (ctx[37](
12846
12919
  /*category*/
12847
- ctx[68].id,
12920
+ ctx[76].id,
12848
12921
  /*dropContainerId*/
12849
12922
  ctx[13]
12850
12923
  ) && /*hasAddItemAnimation*/
12851
12924
  ctx[17] ? "transition bg-white duration-300" : "") + " " + /*checkSelectedSourceContainer*/
12852
- (ctx[33](
12925
+ (ctx[38](
12853
12926
  /*category*/
12854
- ctx[68].id,
12927
+ ctx[76].id,
12855
12928
  /*sourceSelectedContainerId*/
12856
12929
  ctx[15],
12857
12930
  /*currentSelectedItemId*/
12858
12931
  ctx[14]
12859
12932
  ) ? "hover:bg-violet-100 hover-focus-ring cursor-pointer" : "") + " " + /*checkifCategoryContainerOpen*/
12860
- (ctx[37](
12933
+ (ctx[42](
12861
12934
  /*category*/
12862
- ctx[68].id,
12935
+ ctx[76].id,
12863
12936
  /*openCategoryContainer*/
12864
12937
  ctx[19]
12865
12938
  ) ? "min-h-[140px]" : ""));
@@ -12900,16 +12973,16 @@
12900
12973
  listen(button, "click", function() {
12901
12974
  if (is_function(
12902
12975
  /*addCategoryContainer*/
12903
- ctx[38](
12976
+ ctx[43](
12904
12977
  /*category*/
12905
- ctx[68].id,
12978
+ ctx[76].id,
12906
12979
  /*openCategoryContainer*/
12907
12980
  ctx[19]
12908
12981
  )
12909
12982
  ))
12910
- ctx[38](
12983
+ ctx[43](
12911
12984
  /*category*/
12912
- ctx[68].id,
12985
+ ctx[76].id,
12913
12986
  /*openCategoryContainer*/
12914
12987
  ctx[19]
12915
12988
  ).apply(this, arguments);
@@ -12919,13 +12992,13 @@
12919
12992
  div1,
12920
12993
  "focus",
12921
12994
  /*resetTabCategory*/
12922
- ctx[43]
12995
+ ctx[48]
12923
12996
  ),
12924
12997
  listen(
12925
12998
  div1,
12926
12999
  "blur",
12927
13000
  /*blur_handler*/
12928
- ctx[52]
13001
+ ctx[57]
12929
13002
  )
12930
13003
  ];
12931
13004
  mounted = true;
@@ -12936,9 +13009,9 @@
12936
13009
  if (dirty[0] & /*dropContainerId*/
12937
13010
  8192)
12938
13011
  show_if_2 = /*checkContainerDroppedItem*/
12939
- ctx[32](
13012
+ ctx[37](
12940
13013
  /*category*/
12941
- ctx[68].id,
13014
+ ctx[76].id,
12942
13015
  /*dropContainerId*/
12943
13016
  ctx[13]
12944
13017
  );
@@ -12958,9 +13031,9 @@
12958
13031
  if (dirty[0] & /*dropContainerId, enableAriaLive*/
12959
13032
  8396800)
12960
13033
  commonstringtohtml_changes.ariaHidden = /*checkContainerDroppedItem*/
12961
- ctx[32](
13034
+ ctx[37](
12962
13035
  /*category*/
12963
- ctx[68].id,
13036
+ ctx[76].id,
12964
13037
  /*dropContainerId*/
12965
13038
  ctx[13]
12966
13039
  ) && /*enableAriaLive*/
@@ -12969,9 +13042,9 @@
12969
13042
  if (dirty[0] & /*dropContainerId, enableAriaLive*/
12970
13043
  8396800)
12971
13044
  show_if_1 = /*checkContainerDroppedItem*/
12972
- ctx[32](
13045
+ ctx[37](
12973
13046
  /*category*/
12974
- ctx[68].id,
13047
+ ctx[76].id,
12975
13048
  /*dropContainerId*/
12976
13049
  ctx[13]
12977
13050
  ) && /*enableAriaLive*/
@@ -13018,9 +13091,9 @@
13018
13091
  }
13019
13092
  if ((!current || dirty[0] & /*currentAnswer*/
13020
13093
  16) && t9_value !== (t9_value = /*getTotalWords*/
13021
- ctx[35](
13094
+ ctx[40](
13022
13095
  /*category*/
13023
- ctx[68].id,
13096
+ ctx[76].id,
13024
13097
  /*currentAnswer*/
13025
13098
  ctx[4]
13026
13099
  ) + ""))
@@ -13044,9 +13117,9 @@
13044
13117
  }
13045
13118
  if (!current || dirty[0] & /*currentAnswer*/
13046
13119
  16 && button_aria_label_value !== (button_aria_label_value = /*getTotalWords*/
13047
- ctx[35](
13120
+ ctx[40](
13048
13121
  /*category*/
13049
- ctx[68].id,
13122
+ ctx[76].id,
13050
13123
  /*currentAnswer*/
13051
13124
  ctx[4]
13052
13125
  ))) {
@@ -13054,9 +13127,9 @@
13054
13127
  }
13055
13128
  if (!current || dirty[0] & /*dropContainerId, enableAriaLive*/
13056
13129
  8396800 && div0_aria_live_value !== (div0_aria_live_value = /*checkContainerDroppedItem*/
13057
- ctx[32](
13130
+ ctx[37](
13058
13131
  /*category*/
13059
- ctx[68].id,
13132
+ ctx[76].id,
13060
13133
  /*dropContainerId*/
13061
13134
  ctx[13]
13062
13135
  ) && /*enableAriaLive*/
@@ -13065,41 +13138,41 @@
13065
13138
  }
13066
13139
  if (!current || dirty[0] & /*dropContainerId, openCategoryContainer, considerContainerId, isDraggingOver, sourceSelectedContainerId, currentSelectedItemId*/
13067
13140
  587776 && 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*/
13068
- (ctx[32](
13141
+ (ctx[37](
13069
13142
  /*category*/
13070
- ctx[68].id,
13143
+ ctx[76].id,
13071
13144
  /*dropContainerId*/
13072
13145
  ctx[13]
13073
13146
  ) ? "bg-tranparent" : "bg-white") + " " + (!/*checkifCategoryContainerOpen*/
13074
- ctx[37](
13147
+ ctx[42](
13075
13148
  /*category*/
13076
- ctx[68].id,
13149
+ ctx[76].id,
13077
13150
  /*openCategoryContainer*/
13078
13151
  ctx[19]
13079
13152
  ) && /*checkContainerDragOver*/
13080
- ctx[31](
13153
+ ctx[36](
13081
13154
  /*category*/
13082
- ctx[68].id,
13155
+ ctx[76].id,
13083
13156
  /*considerContainerId*/
13084
13157
  ctx[11],
13085
13158
  /*isDraggingOver*/
13086
13159
  ctx[12]
13087
13160
  ) ? "!bg-violet-100 md:!bg-white" : "") + " " + /*checkifCategoryContainerOpen*/
13088
- (ctx[37](
13161
+ (ctx[42](
13089
13162
  /*category*/
13090
- ctx[68].id,
13163
+ ctx[76].id,
13091
13164
  /*openCategoryContainer*/
13092
13165
  ctx[19]
13093
13166
  ) ? "" : "rounded-b-lg md:rounded-b-none") + " " + (!/*checkifCategoryContainerOpen*/
13094
- ctx[37](
13167
+ ctx[42](
13095
13168
  /*category*/
13096
- ctx[68].id,
13169
+ ctx[76].id,
13097
13170
  /*openCategoryContainer*/
13098
13171
  ctx[19]
13099
13172
  ) && /*checkSelectedSourceContainer*/
13100
- ctx[33](
13173
+ ctx[38](
13101
13174
  /*category*/
13102
- ctx[68].id,
13175
+ ctx[76].id,
13103
13176
  /*sourceSelectedContainerId*/
13104
13177
  ctx[15],
13105
13178
  /*currentSelectedItemId*/
@@ -13111,47 +13184,47 @@
13111
13184
  if (dirty[0] & /*considerContainerId, isDraggingOver, openCategoryContainer*/
13112
13185
  530432)
13113
13186
  promptcategorisedndcontainer_changes.containerClass = "content-start !outline-none rounded-lg grow w-full md:p-4\n " + /*checkContainerDragOver*/
13114
- (ctx[31](
13187
+ (ctx[36](
13115
13188
  /*category*/
13116
- ctx[68].id,
13189
+ ctx[76].id,
13117
13190
  /*considerContainerId*/
13118
13191
  ctx[11],
13119
13192
  /*isDraggingOver*/
13120
13193
  ctx[12]
13121
13194
  ) ? "bg-violet-100" : "") + "\n " + /*checkifCategoryContainerOpen*/
13122
- (ctx[37](
13195
+ (ctx[42](
13123
13196
  /*category*/
13124
- ctx[68].id,
13197
+ ctx[76].id,
13125
13198
  /*openCategoryContainer*/
13126
13199
  ctx[19]
13127
13200
  ) ? "h-full p-3 min-h-[86px] md:min-h-0" : "");
13128
13201
  if (dirty[0] & /*openCategoryContainer, categoryTitleHeight*/
13129
13202
  17301504)
13130
13203
  promptcategorisedndcontainer_changes.paddingTop = /*checkifCategoryContainerOpen*/
13131
- ctx[37](
13204
+ ctx[42](
13132
13205
  /*category*/
13133
- ctx[68].id,
13206
+ ctx[76].id,
13134
13207
  /*openCategoryContainer*/
13135
13208
  ctx[19]
13136
13209
  ) || !useIsSmallScreen() ? (
13137
13210
  /*categoryTitleHeight*/
13138
13211
  ctx[24][
13139
13212
  /*category*/
13140
- ctx[68].id
13213
+ ctx[76].id
13141
13214
  ] + 16
13142
13215
  ) : (
13143
13216
  /*categoryTitleHeight*/
13144
13217
  ctx[24][
13145
13218
  /*category*/
13146
- ctx[68].id
13219
+ ctx[76].id
13147
13220
  ]
13148
13221
  );
13149
13222
  if (dirty[0] & /*openCategoryContainer*/
13150
13223
  524288)
13151
13224
  promptcategorisedndcontainer_changes.showButton = /*checkifCategoryContainerOpen*/
13152
- ctx[37](
13225
+ ctx[42](
13153
13226
  /*category*/
13154
- ctx[68].id,
13227
+ ctx[76].id,
13155
13228
  /*openCategoryContainer*/
13156
13229
  ctx[19]
13157
13230
  );
@@ -13192,48 +13265,48 @@
13192
13265
  }
13193
13266
  if (!current || dirty[0] & /*considerContainerId, isDraggingOver, dropContainerId, hasAddItemAnimation, sourceSelectedContainerId, currentSelectedItemId, openCategoryContainer*/
13194
13267
  718848 && 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*/
13195
- (ctx[31](
13268
+ (ctx[36](
13196
13269
  /*category*/
13197
- ctx[68].id,
13270
+ ctx[76].id,
13198
13271
  /*considerContainerId*/
13199
13272
  ctx[11],
13200
13273
  /*isDraggingOver*/
13201
13274
  ctx[12]
13202
13275
  ) ? "raw-focus-ring" : "") + " " + /*checkContainerDroppedItem*/
13203
- (ctx[32](
13276
+ (ctx[37](
13204
13277
  /*category*/
13205
- ctx[68].id,
13278
+ ctx[76].id,
13206
13279
  /*dropContainerId*/
13207
13280
  ctx[13]
13208
13281
  ) ? "bg-violet-150" : "") + " " + /*checkContainerDroppedItem*/
13209
- (ctx[32](
13282
+ (ctx[37](
13210
13283
  /*category*/
13211
- ctx[68].id,
13284
+ ctx[76].id,
13212
13285
  /*dropContainerId*/
13213
13286
  ctx[13]
13214
13287
  ) && /*hasAddItemAnimation*/
13215
13288
  ctx[17] ? "transition bg-white duration-300" : "") + " " + /*checkSelectedSourceContainer*/
13216
- (ctx[33](
13289
+ (ctx[38](
13217
13290
  /*category*/
13218
- ctx[68].id,
13291
+ ctx[76].id,
13219
13292
  /*sourceSelectedContainerId*/
13220
13293
  ctx[15],
13221
13294
  /*currentSelectedItemId*/
13222
13295
  ctx[14]
13223
13296
  ) ? "hover:bg-violet-100 hover-focus-ring cursor-pointer" : "") + " " + /*checkifCategoryContainerOpen*/
13224
- (ctx[37](
13297
+ (ctx[42](
13225
13298
  /*category*/
13226
- ctx[68].id,
13299
+ ctx[76].id,
13227
13300
  /*openCategoryContainer*/
13228
13301
  ctx[19]
13229
13302
  ) ? "min-h-[140px]" : ""))) {
13230
13303
  attr(div1, "class", div1_class_value);
13231
13304
  }
13232
13305
  if (category !== /*category*/
13233
- ctx[68]) {
13306
+ ctx[76]) {
13234
13307
  unassign_div1();
13235
13308
  category = /*category*/
13236
- ctx[68];
13309
+ ctx[76];
13237
13310
  assign_div1();
13238
13311
  }
13239
13312
  },
@@ -13312,63 +13385,69 @@
13312
13385
  };
13313
13386
  }
13314
13387
  function create_default_slot4(ctx) {
13388
+ let div0;
13389
+ let t0;
13315
13390
  let button0;
13316
13391
  let span0;
13317
- let t1;
13392
+ let t2;
13318
13393
  let span1;
13319
13394
  let arrowdowncircle;
13320
- let t2;
13321
13395
  let t3;
13322
- let div0;
13396
+ let t4;
13397
+ let div1;
13323
13398
  let p;
13324
- let t5;
13325
13399
  let t6;
13326
- let div1;
13327
13400
  let t7;
13328
- let div4;
13329
13401
  let div2;
13402
+ let t8;
13403
+ let div5;
13404
+ let div3;
13330
13405
  let show_if = (
13331
13406
  /*checkContainerDroppedItem*/
13332
- ctx[32](
13407
+ ctx[37](
13333
13408
  CONTAINER_WORD_BIN_ID,
13334
13409
  /*dropContainerId*/
13335
13410
  ctx[13]
13336
13411
  )
13337
13412
  );
13338
- let t8;
13413
+ let t9;
13339
13414
  let span2;
13340
- let t10;
13341
- let span3;
13342
13415
  let t11;
13416
+ let span3;
13343
13417
  let t12;
13344
13418
  let t13;
13345
13419
  let t14;
13346
13420
  let t15;
13347
- let div3;
13421
+ let t16;
13422
+ let div4;
13348
13423
  let button1;
13349
13424
  let span4;
13350
13425
  let smallchevronleft;
13351
13426
  let button1_class_value;
13352
13427
  let button1_disabled_value;
13353
- let t16;
13354
- let promptcategorisedndcontainer;
13355
13428
  let t17;
13429
+ let promptcategorisedndcontainer;
13430
+ let t18;
13356
13431
  let button2;
13357
13432
  let span5;
13358
13433
  let smallchevronright;
13359
13434
  let button2_class_value;
13360
13435
  let button2_disabled_value;
13361
- let div4_aria_live_value;
13362
- let div4_class_value;
13436
+ let div5_aria_live_value;
13437
+ let div5_class_value;
13363
13438
  let current;
13364
13439
  let mounted;
13365
13440
  let dispose;
13366
- arrowdowncircle = new ArrowDownCircle_default({});
13367
13441
  let if_block0 = (
13442
+ /*isFeedbackShown*/
13443
+ ctx[25] && create_if_block_84(ctx)
13444
+ );
13445
+ arrowdowncircle = new ArrowDownCircle_default({});
13446
+ let if_block1 = (
13368
13447
  /*isModalOpen*/
13369
13448
  ctx[18] && create_if_block_74(ctx)
13370
13449
  );
13371
- let if_block1 = (
13450
+ let if_block2 = (
13372
13451
  /*totalRemainingWordBinItem*/
13373
13452
  ctx[16] !== /*totalCategoryItems*/
13374
13453
  ctx[10] && !/*isFinished*/
@@ -13376,7 +13455,7 @@
13376
13455
  );
13377
13456
  let each_value = ensure_array_like(Object.values(
13378
13457
  /*categoryGroups*/
13379
- ctx[30]
13458
+ ctx[34]
13380
13459
  ));
13381
13460
  let each_blocks = [];
13382
13461
  for (let i = 0; i < each_value.length; i += 1) {
@@ -13385,19 +13464,19 @@
13385
13464
  const out = (i) => transition_out(each_blocks[i], 1, 1, () => {
13386
13465
  each_blocks[i] = null;
13387
13466
  });
13388
- let if_block2 = show_if && create_if_block9(ctx);
13467
+ let if_block3 = show_if && create_if_block9(ctx);
13389
13468
  smallchevronleft = new SmallChevronLeft_default({});
13390
13469
  promptcategorisedndcontainer = new PromptCategoriseDndContainer_default({
13391
13470
  props: {
13392
13471
  containerClass: "bg-transparent p-4 pt-[55px] grow md:grow-0 md:pt-20.5 justify-center md:justify-normal\n " + /*isWordBInTotalZero*/
13393
- (ctx[39](
13472
+ (ctx[44](
13394
13473
  /*totalRemainingWordBinItem*/
13395
13474
  ctx[16]
13396
13475
  ) && !/*currentSelectedItemId*/
13397
13476
  ctx[14] ? "absolute inset-0" : ""),
13398
13477
  items: (
13399
13478
  /*categoryItems*/
13400
- ctx[29]
13479
+ ctx[33]
13401
13480
  ),
13402
13481
  containerId: CONTAINER_WORD_BIN_ID,
13403
13482
  ariaLabel: "Word bin",
@@ -13407,7 +13486,7 @@
13407
13486
  ),
13408
13487
  correctAnswerList: (
13409
13488
  /*scoringMetadata*/
13410
- ctx[27]
13489
+ ctx[31]
13411
13490
  ),
13412
13491
  isPreviewModeInteractive: (
13413
13492
  /*isPreviewModeInteractive*/
@@ -13419,7 +13498,7 @@
13419
13498
  ),
13420
13499
  type: (
13421
13500
  /*categoryDndType*/
13422
- ctx[25]
13501
+ ctx[29]
13423
13502
  ),
13424
13503
  isDataSaving: (
13425
13504
  /*isDataSaving*/
@@ -13430,68 +13509,73 @@
13430
13509
  promptcategorisedndcontainer.$on(
13431
13510
  "updateCategorySettings",
13432
13511
  /*updateCategory*/
13433
- ctx[41]
13512
+ ctx[46]
13434
13513
  );
13435
13514
  promptcategorisedndcontainer.$on(
13436
13515
  "saveCategory",
13437
13516
  /*saveCategory*/
13438
- ctx[40]
13517
+ ctx[45]
13439
13518
  );
13440
13519
  smallchevronright = new SmallChevronRight_default({});
13441
13520
  return {
13442
13521
  c() {
13522
+ div0 = element("div");
13523
+ if (if_block0)
13524
+ if_block0.c();
13525
+ t0 = space();
13443
13526
  button0 = element("button");
13444
13527
  span0 = element("span");
13445
13528
  span0.textContent = "Skip to Word Bin";
13446
- t1 = space();
13529
+ t2 = space();
13447
13530
  span1 = element("span");
13448
13531
  create_component(arrowdowncircle.$$.fragment);
13449
- t2 = space();
13450
- if (if_block0)
13451
- if_block0.c();
13452
13532
  t3 = space();
13453
- div0 = element("div");
13454
- p = element("p");
13455
- p.textContent = "Categories";
13456
- t5 = space();
13457
13533
  if (if_block1)
13458
13534
  if_block1.c();
13459
- t6 = space();
13535
+ t4 = space();
13460
13536
  div1 = element("div");
13537
+ p = element("p");
13538
+ p.textContent = "Categories";
13539
+ t6 = space();
13540
+ if (if_block2)
13541
+ if_block2.c();
13542
+ t7 = space();
13543
+ div2 = element("div");
13461
13544
  for (let i = 0; i < each_blocks.length; i += 1) {
13462
13545
  each_blocks[i].c();
13463
13546
  }
13464
- t7 = space();
13465
- div4 = element("div");
13466
- div2 = element("div");
13467
- if (if_block2)
13468
- if_block2.c();
13469
13547
  t8 = space();
13548
+ div5 = element("div");
13549
+ div3 = element("div");
13550
+ if (if_block3)
13551
+ if_block3.c();
13552
+ t9 = space();
13470
13553
  span2 = element("span");
13471
13554
  span2.textContent = "Word Bin\xA0";
13472
- t10 = space();
13555
+ t11 = space();
13473
13556
  span3 = element("span");
13474
- t11 = text(
13557
+ t12 = text(
13475
13558
  /*totalRemainingWordBinItem*/
13476
13559
  ctx[16]
13477
13560
  );
13478
- t12 = text(" out of ");
13479
- t13 = text(
13561
+ t13 = text(" out of ");
13562
+ t14 = text(
13480
13563
  /*totalCategoryItems*/
13481
13564
  ctx[10]
13482
13565
  );
13483
- t14 = text(" left");
13484
- t15 = space();
13485
- div3 = element("div");
13566
+ t15 = text(" left");
13567
+ t16 = space();
13568
+ div4 = element("div");
13486
13569
  button1 = element("button");
13487
13570
  span4 = element("span");
13488
13571
  create_component(smallchevronleft.$$.fragment);
13489
- t16 = space();
13490
- create_component(promptcategorisedndcontainer.$$.fragment);
13491
13572
  t17 = space();
13573
+ create_component(promptcategorisedndcontainer.$$.fragment);
13574
+ t18 = space();
13492
13575
  button2 = element("button");
13493
13576
  span5 = element("span");
13494
13577
  create_component(smallchevronright.$$.fragment);
13578
+ attr(div0, "aria-live", "polite");
13495
13579
  attr(span0, "class", "test-base font-semibold underline mr-1");
13496
13580
  attr(span1, "class", "text-inherit h-6 w-6 flex items-center justify-center");
13497
13581
  attr(
@@ -13503,21 +13587,21 @@
13503
13587
  attr(button0, "aria-label", "Skip to word bin");
13504
13588
  attr(button0, "class", "flex items-center text-charcoal border-l-6 border-charcoal bg-yellow-1000 py-1.5 pr-3 pl-4 focus-visible:border-charcoal left-[-9999px] z-0 focus-within:left-0 focus-within:right-0 focus-within:top-0 absolute focus-within:z-30 focus-visible:outline-none");
13505
13589
  attr(p, "class", "text-base leading-5 !text-gray-900 font-semibold md:item-heading");
13506
- attr(div0, "class", "mt-7.5 mb-6 relative md:text-center md:mb-8 md:mt-14");
13590
+ attr(div1, "class", "mt-7.5 mb-6 relative md:text-center md:mb-8 md:mt-14");
13507
13591
  attr(
13508
- div0,
13592
+ div1,
13509
13593
  "aria-hidden",
13510
13594
  /*isModalOpen*/
13511
13595
  ctx[18]
13512
13596
  );
13513
- attr(div1, "class", "mb-5 grid gap-2 grid-cols-1 md:grid-cols-2 md:gap-6 lg:flex lg:gap-0");
13597
+ attr(div2, "class", "mb-5 grid gap-2 grid-cols-1 md:grid-cols-2 md:gap-6 lg:flex lg:gap-0");
13514
13598
  attr(span2, "class", "text-base leading-5 !text-gray-900 font-semibold md:mb-2 md:item-heading");
13515
13599
  attr(span3, "class", "text-base leading-5 !text-gray-900 md:item-heading");
13516
- attr(div2, "class", "p-4 pb-3 text-center w-full absolute flex flex-row items-center justify-between md:justify-center md:flex-col md:pb-0");
13600
+ attr(div3, "class", "p-4 pb-3 text-center w-full absolute flex flex-row items-center justify-between md:justify-center md:flex-col md:pb-0");
13517
13601
  attr(span4, "class", "w-6 h-6 text-inherit flex items-center justify-center");
13518
13602
  attr(button1, "aria-label", "Left");
13519
13603
  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*/
13520
- (ctx[39](
13604
+ (ctx[44](
13521
13605
  /*totalRemainingWordBinItem*/
13522
13606
  ctx[16]
13523
13607
  ) ? "hidden" : ""));
@@ -13526,53 +13610,53 @@
13526
13610
  attr(span5, "class", "w-6 h-6 text-inherit flex items-center justify-center ml-[3px]");
13527
13611
  attr(button2, "aria-label", "Right");
13528
13612
  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*/
13529
- (ctx[39](
13613
+ (ctx[44](
13530
13614
  /*totalRemainingWordBinItem*/
13531
13615
  ctx[16]
13532
13616
  ) ? "hidden" : ""));
13533
13617
  button2.disabled = button2_disabled_value = /*currentWordBinIndex*/
13534
13618
  ctx[20] === /*totalRemainingWordBinItem*/
13535
13619
  ctx[16] - 1;
13536
- attr(div3, "class", "flex items-center justify-between px-4 min-h-[133px] md:min-h-0 md:block md:px-0 md:justify-normal");
13620
+ attr(div4, "class", "flex items-center justify-between px-4 min-h-[133px] md:min-h-0 md:block md:px-0 md:justify-normal");
13537
13621
  attr(
13538
- div4,
13622
+ div5,
13539
13623
  "aria-hidden",
13540
13624
  /*isModalOpen*/
13541
13625
  ctx[18]
13542
13626
  );
13543
13627
  attr(
13544
- div4,
13628
+ div5,
13545
13629
  "tabindex",
13546
13630
  /*categoryTabIndex*/
13547
13631
  ctx[21]
13548
13632
  );
13549
- attr(div4, "aria-live", div4_aria_live_value = /*checkContainerDroppedItem*/
13550
- ctx[32](
13633
+ attr(div5, "aria-live", div5_aria_live_value = /*checkContainerDroppedItem*/
13634
+ ctx[37](
13551
13635
  CONTAINER_WORD_BIN_ID,
13552
13636
  /*dropContainerId*/
13553
13637
  ctx[13]
13554
13638
  ) ? "polite" : "off");
13555
- attr(div4, "role", "group");
13556
- 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*/
13557
- (ctx[31](
13639
+ attr(div5, "role", "group");
13640
+ attr(div5, "class", div5_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*/
13641
+ (ctx[36](
13558
13642
  CONTAINER_WORD_BIN_ID,
13559
13643
  /*considerContainerId*/
13560
13644
  ctx[11],
13561
13645
  /*isDraggingOver*/
13562
13646
  ctx[12]
13563
13647
  ) ? "raw-focus-ring bg-violet-100" : "") + " " + /*checkContainerDroppedItem*/
13564
- (ctx[32](
13648
+ (ctx[37](
13565
13649
  CONTAINER_WORD_BIN_ID,
13566
13650
  /*dropContainerId*/
13567
13651
  ctx[13]
13568
13652
  ) ? "bg-violet-150" : "") + " " + /*checkContainerDroppedItem*/
13569
- (ctx[32](
13653
+ (ctx[37](
13570
13654
  CONTAINER_WORD_BIN_ID,
13571
13655
  /*dropContainerId*/
13572
13656
  ctx[13]
13573
13657
  ) && /*hasAddItemAnimation*/
13574
13658
  ctx[17] ? "transition bg-white duration-300" : "") + " " + /*checkSelectedSourceContainer*/
13575
- (ctx[33](
13659
+ (ctx[38](
13576
13660
  CONTAINER_WORD_BIN_ID,
13577
13661
  /*sourceSelectedContainerId*/
13578
13662
  ctx[15],
@@ -13581,52 +13665,56 @@
13581
13665
  ) ? "hover:bg-violet-100 hover-focus-ring cursor-pointer" : ""));
13582
13666
  },
13583
13667
  m(target, anchor) {
13668
+ insert(target, div0, anchor);
13669
+ if (if_block0)
13670
+ if_block0.m(div0, null);
13671
+ insert(target, t0, anchor);
13584
13672
  insert(target, button0, anchor);
13585
13673
  append(button0, span0);
13586
- append(button0, t1);
13674
+ append(button0, t2);
13587
13675
  append(button0, span1);
13588
13676
  mount_component(arrowdowncircle, span1, null);
13589
- insert(target, t2, anchor);
13590
- if (if_block0)
13591
- if_block0.m(target, anchor);
13592
13677
  insert(target, t3, anchor);
13593
- insert(target, div0, anchor);
13594
- append(div0, p);
13595
- append(div0, t5);
13596
13678
  if (if_block1)
13597
- if_block1.m(div0, null);
13598
- insert(target, t6, anchor);
13679
+ if_block1.m(target, anchor);
13680
+ insert(target, t4, anchor);
13599
13681
  insert(target, div1, anchor);
13682
+ append(div1, p);
13683
+ append(div1, t6);
13684
+ if (if_block2)
13685
+ if_block2.m(div1, null);
13686
+ insert(target, t7, anchor);
13687
+ insert(target, div2, anchor);
13600
13688
  for (let i = 0; i < each_blocks.length; i += 1) {
13601
13689
  if (each_blocks[i]) {
13602
- each_blocks[i].m(div1, null);
13690
+ each_blocks[i].m(div2, null);
13603
13691
  }
13604
13692
  }
13605
- insert(target, t7, anchor);
13606
- insert(target, div4, anchor);
13607
- append(div4, div2);
13608
- if (if_block2)
13609
- if_block2.m(div2, null);
13610
- append(div2, t8);
13611
- append(div2, span2);
13612
- append(div2, t10);
13613
- append(div2, span3);
13614
- append(span3, t11);
13693
+ insert(target, t8, anchor);
13694
+ insert(target, div5, anchor);
13695
+ append(div5, div3);
13696
+ if (if_block3)
13697
+ if_block3.m(div3, null);
13698
+ append(div3, t9);
13699
+ append(div3, span2);
13700
+ append(div3, t11);
13701
+ append(div3, span3);
13615
13702
  append(span3, t12);
13616
13703
  append(span3, t13);
13617
13704
  append(span3, t14);
13618
- append(div4, t15);
13619
- append(div4, div3);
13620
- append(div3, button1);
13705
+ append(span3, t15);
13706
+ append(div5, t16);
13707
+ append(div5, div4);
13708
+ append(div4, button1);
13621
13709
  append(button1, span4);
13622
13710
  mount_component(smallchevronleft, span4, null);
13623
- append(div3, t16);
13624
- mount_component(promptcategorisedndcontainer, div3, null);
13625
- append(div3, t17);
13626
- append(div3, button2);
13711
+ append(div4, t17);
13712
+ mount_component(promptcategorisedndcontainer, div4, null);
13713
+ append(div4, t18);
13714
+ append(div4, button2);
13627
13715
  append(button2, span5);
13628
13716
  mount_component(smallchevronright, span5, null);
13629
- ctx[56](div4);
13717
+ ctx[61](div5);
13630
13718
  current = true;
13631
13719
  if (!mounted) {
13632
13720
  dispose = [
@@ -13634,12 +13722,12 @@
13634
13722
  button0,
13635
13723
  "keypress",
13636
13724
  /*goToWordBin*/
13637
- ctx[44]
13725
+ ctx[49]
13638
13726
  ),
13639
13727
  listen(button1, "click", function() {
13640
13728
  if (is_function(
13641
13729
  /*navigateCategoryItem*/
13642
- ctx[46](
13730
+ ctx[51](
13643
13731
  /*currentWordBinIndex*/
13644
13732
  ctx[20],
13645
13733
  /*currentAnswer*/
@@ -13647,7 +13735,7 @@
13647
13735
  "left"
13648
13736
  )
13649
13737
  ))
13650
- ctx[46](
13738
+ ctx[51](
13651
13739
  /*currentWordBinIndex*/
13652
13740
  ctx[20],
13653
13741
  /*currentAnswer*/
@@ -13658,7 +13746,7 @@
13658
13746
  listen(button2, "click", function() {
13659
13747
  if (is_function(
13660
13748
  /*navigateCategoryItem*/
13661
- ctx[46](
13749
+ ctx[51](
13662
13750
  /*currentWordBinIndex*/
13663
13751
  ctx[20],
13664
13752
  /*currentAnswer*/
@@ -13666,7 +13754,7 @@
13666
13754
  "right"
13667
13755
  )
13668
13756
  ))
13669
- ctx[46](
13757
+ ctx[51](
13670
13758
  /*currentWordBinIndex*/
13671
13759
  ctx[20],
13672
13760
  /*currentAnswer*/
@@ -13675,22 +13763,22 @@
13675
13763
  ).apply(this, arguments);
13676
13764
  }),
13677
13765
  listen(
13678
- div4,
13766
+ div5,
13679
13767
  "keydown",
13680
13768
  /*keydown_handler_1*/
13681
- ctx[54]
13769
+ ctx[59]
13682
13770
  ),
13683
13771
  listen(
13684
- div4,
13772
+ div5,
13685
13773
  "focus",
13686
13774
  /*resetTabCategory*/
13687
- ctx[43]
13775
+ ctx[48]
13688
13776
  ),
13689
13777
  listen(
13690
- div4,
13778
+ div5,
13691
13779
  "blur",
13692
13780
  /*blur_handler_1*/
13693
- ctx[55]
13781
+ ctx[60]
13694
13782
  )
13695
13783
  ];
13696
13784
  mounted = true;
@@ -13698,6 +13786,29 @@
13698
13786
  },
13699
13787
  p(new_ctx, dirty) {
13700
13788
  ctx = new_ctx;
13789
+ if (
13790
+ /*isFeedbackShown*/
13791
+ ctx[25]
13792
+ ) {
13793
+ if (if_block0) {
13794
+ if_block0.p(ctx, dirty);
13795
+ if (dirty[0] & /*isFeedbackShown*/
13796
+ 33554432) {
13797
+ transition_in(if_block0, 1);
13798
+ }
13799
+ } else {
13800
+ if_block0 = create_if_block_84(ctx);
13801
+ if_block0.c();
13802
+ transition_in(if_block0, 1);
13803
+ if_block0.m(div0, null);
13804
+ }
13805
+ } else if (if_block0) {
13806
+ group_outros();
13807
+ transition_out(if_block0, 1, 1, () => {
13808
+ if_block0 = null;
13809
+ });
13810
+ check_outros();
13811
+ }
13701
13812
  if (!current || dirty[0] & /*categoryTabIndex*/
13702
13813
  2097152) {
13703
13814
  attr(
@@ -13711,22 +13822,22 @@
13711
13822
  /*isModalOpen*/
13712
13823
  ctx[18]
13713
13824
  ) {
13714
- if (if_block0) {
13715
- if_block0.p(ctx, dirty);
13825
+ if (if_block1) {
13826
+ if_block1.p(ctx, dirty);
13716
13827
  if (dirty[0] & /*isModalOpen*/
13717
13828
  262144) {
13718
- transition_in(if_block0, 1);
13829
+ transition_in(if_block1, 1);
13719
13830
  }
13720
13831
  } else {
13721
- if_block0 = create_if_block_74(ctx);
13722
- if_block0.c();
13723
- transition_in(if_block0, 1);
13724
- if_block0.m(t3.parentNode, t3);
13832
+ if_block1 = create_if_block_74(ctx);
13833
+ if_block1.c();
13834
+ transition_in(if_block1, 1);
13835
+ if_block1.m(t4.parentNode, t4);
13725
13836
  }
13726
- } else if (if_block0) {
13837
+ } else if (if_block1) {
13727
13838
  group_outros();
13728
- transition_out(if_block0, 1, 1, () => {
13729
- if_block0 = null;
13839
+ transition_out(if_block1, 1, 1, () => {
13840
+ if_block1 = null;
13730
13841
  });
13731
13842
  check_outros();
13732
13843
  }
@@ -13736,40 +13847,40 @@
13736
13847
  ctx[10] && !/*isFinished*/
13737
13848
  ctx[0]
13738
13849
  ) {
13739
- if (if_block1) {
13740
- if_block1.p(ctx, dirty);
13850
+ if (if_block2) {
13851
+ if_block2.p(ctx, dirty);
13741
13852
  if (dirty[0] & /*totalRemainingWordBinItem, totalCategoryItems, isFinished*/
13742
13853
  66561) {
13743
- transition_in(if_block1, 1);
13854
+ transition_in(if_block2, 1);
13744
13855
  }
13745
13856
  } else {
13746
- if_block1 = create_if_block_64(ctx);
13747
- if_block1.c();
13748
- transition_in(if_block1, 1);
13749
- if_block1.m(div0, null);
13857
+ if_block2 = create_if_block_64(ctx);
13858
+ if_block2.c();
13859
+ transition_in(if_block2, 1);
13860
+ if_block2.m(div1, null);
13750
13861
  }
13751
- } else if (if_block1) {
13862
+ } else if (if_block2) {
13752
13863
  group_outros();
13753
- transition_out(if_block1, 1, 1, () => {
13754
- if_block1 = null;
13864
+ transition_out(if_block2, 1, 1, () => {
13865
+ if_block2 = null;
13755
13866
  });
13756
13867
  check_outros();
13757
13868
  }
13758
13869
  if (!current || dirty[0] & /*isModalOpen*/
13759
13870
  262144) {
13760
13871
  attr(
13761
- div0,
13872
+ div1,
13762
13873
  "aria-hidden",
13763
13874
  /*isModalOpen*/
13764
13875
  ctx[18]
13765
13876
  );
13766
13877
  }
13767
- if (dirty[0] & /*isModalOpen, categoryTabIndex, categoryGroups, considerContainerId, isDraggingOver, dropContainerId, hasAddItemAnimation, sourceSelectedContainerId, currentSelectedItemId, openCategoryContainer, tabCategory, categoryTitleHeight, isFinished, scoringMetadata, isPreviewModeInteractive, categoriseSettingsData, categoryDndType, isDataSaving, enableAriaLive, currentAnswer, previewResultSr, selectedItemName, totalCategoryWords*/
13768
- 1273953015 | dirty[1] & /*checkContainerDragOver, checkContainerDroppedItem, checkSelectedSourceContainer, checkifCategoryContainerOpen, getContainerTabSelected, resetTabCategory, handleItemAriaHidden, updateCategory, saveCategory, getTotalWords, addCategoryContainer, getTotalWordsLabel*/
13769
- 24311) {
13878
+ if (dirty[0] & /*isModalOpen, categoryTabIndex, considerContainerId, isDraggingOver, dropContainerId, hasAddItemAnimation, sourceSelectedContainerId, currentSelectedItemId, openCategoryContainer, tabCategory, categoryTitleHeight, isFinished, isPreviewModeInteractive, categoriseSettingsData, categoryDndType, isDataSaving, enableAriaLive, currentAnswer, previewResultSr, selectedItemName, totalCategoryWords*/
13879
+ 569309943 | dirty[1] & /*checkContainerDragOver, categoryGroups, checkContainerDroppedItem, checkSelectedSourceContainer, checkifCategoryContainerOpen, getContainerTabSelected, resetTabCategory, handleItemAriaHidden, scoringMetadata, updateCategory, saveCategory, getTotalWords, addCategoryContainer, getTotalWordsLabel*/
13880
+ 777961) {
13770
13881
  each_value = ensure_array_like(Object.values(
13771
13882
  /*categoryGroups*/
13772
- ctx[30]
13883
+ ctx[34]
13773
13884
  ));
13774
13885
  let i;
13775
13886
  for (i = 0; i < each_value.length; i += 1) {
@@ -13781,7 +13892,7 @@
13781
13892
  each_blocks[i] = create_each_block4(child_ctx);
13782
13893
  each_blocks[i].c();
13783
13894
  transition_in(each_blocks[i], 1);
13784
- each_blocks[i].m(div1, null);
13895
+ each_blocks[i].m(div2, null);
13785
13896
  }
13786
13897
  }
13787
13898
  group_outros();
@@ -13793,40 +13904,40 @@
13793
13904
  if (dirty[0] & /*dropContainerId*/
13794
13905
  8192)
13795
13906
  show_if = /*checkContainerDroppedItem*/
13796
- ctx[32](
13907
+ ctx[37](
13797
13908
  CONTAINER_WORD_BIN_ID,
13798
13909
  /*dropContainerId*/
13799
13910
  ctx[13]
13800
13911
  );
13801
13912
  if (show_if) {
13802
- if (if_block2) {
13803
- if_block2.p(ctx, dirty);
13913
+ if (if_block3) {
13914
+ if_block3.p(ctx, dirty);
13804
13915
  } else {
13805
- if_block2 = create_if_block9(ctx);
13806
- if_block2.c();
13807
- if_block2.m(div2, t8);
13916
+ if_block3 = create_if_block9(ctx);
13917
+ if_block3.c();
13918
+ if_block3.m(div3, t9);
13808
13919
  }
13809
- } else if (if_block2) {
13810
- if_block2.d(1);
13811
- if_block2 = null;
13920
+ } else if (if_block3) {
13921
+ if_block3.d(1);
13922
+ if_block3 = null;
13812
13923
  }
13813
13924
  if (!current || dirty[0] & /*totalRemainingWordBinItem*/
13814
13925
  65536)
13815
13926
  set_data(
13816
- t11,
13927
+ t12,
13817
13928
  /*totalRemainingWordBinItem*/
13818
13929
  ctx[16]
13819
13930
  );
13820
13931
  if (!current || dirty[0] & /*totalCategoryItems*/
13821
13932
  1024)
13822
13933
  set_data(
13823
- t13,
13934
+ t14,
13824
13935
  /*totalCategoryItems*/
13825
13936
  ctx[10]
13826
13937
  );
13827
13938
  if (!current || dirty[0] & /*totalRemainingWordBinItem*/
13828
13939
  65536 && 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*/
13829
- (ctx[39](
13940
+ (ctx[44](
13830
13941
  /*totalRemainingWordBinItem*/
13831
13942
  ctx[16]
13832
13943
  ) ? "hidden" : ""))) {
@@ -13841,7 +13952,7 @@
13841
13952
  if (dirty[0] & /*totalRemainingWordBinItem, currentSelectedItemId*/
13842
13953
  81920)
13843
13954
  promptcategorisedndcontainer_changes.containerClass = "bg-transparent p-4 pt-[55px] grow md:grow-0 md:pt-20.5 justify-center md:justify-normal\n " + /*isWordBInTotalZero*/
13844
- (ctx[39](
13955
+ (ctx[44](
13845
13956
  /*totalRemainingWordBinItem*/
13846
13957
  ctx[16]
13847
13958
  ) && !/*currentSelectedItemId*/
@@ -13865,7 +13976,7 @@
13865
13976
  promptcategorisedndcontainer.$set(promptcategorisedndcontainer_changes);
13866
13977
  if (!current || dirty[0] & /*totalRemainingWordBinItem*/
13867
13978
  65536 && 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*/
13868
- (ctx[39](
13979
+ (ctx[44](
13869
13980
  /*totalRemainingWordBinItem*/
13870
13981
  ctx[16]
13871
13982
  ) ? "hidden" : ""))) {
@@ -13880,7 +13991,7 @@
13880
13991
  if (!current || dirty[0] & /*isModalOpen*/
13881
13992
  262144) {
13882
13993
  attr(
13883
- div4,
13994
+ div5,
13884
13995
  "aria-hidden",
13885
13996
  /*isModalOpen*/
13886
13997
  ctx[18]
@@ -13889,57 +14000,58 @@
13889
14000
  if (!current || dirty[0] & /*categoryTabIndex*/
13890
14001
  2097152) {
13891
14002
  attr(
13892
- div4,
14003
+ div5,
13893
14004
  "tabindex",
13894
14005
  /*categoryTabIndex*/
13895
14006
  ctx[21]
13896
14007
  );
13897
14008
  }
13898
14009
  if (!current || dirty[0] & /*dropContainerId*/
13899
- 8192 && div4_aria_live_value !== (div4_aria_live_value = /*checkContainerDroppedItem*/
13900
- ctx[32](
14010
+ 8192 && div5_aria_live_value !== (div5_aria_live_value = /*checkContainerDroppedItem*/
14011
+ ctx[37](
13901
14012
  CONTAINER_WORD_BIN_ID,
13902
14013
  /*dropContainerId*/
13903
14014
  ctx[13]
13904
14015
  ) ? "polite" : "off")) {
13905
- attr(div4, "aria-live", div4_aria_live_value);
14016
+ attr(div5, "aria-live", div5_aria_live_value);
13906
14017
  }
13907
14018
  if (!current || dirty[0] & /*considerContainerId, isDraggingOver, dropContainerId, hasAddItemAnimation, sourceSelectedContainerId, currentSelectedItemId*/
13908
- 194560 && 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*/
13909
- (ctx[31](
14019
+ 194560 && div5_class_value !== (div5_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*/
14020
+ (ctx[36](
13910
14021
  CONTAINER_WORD_BIN_ID,
13911
14022
  /*considerContainerId*/
13912
14023
  ctx[11],
13913
14024
  /*isDraggingOver*/
13914
14025
  ctx[12]
13915
14026
  ) ? "raw-focus-ring bg-violet-100" : "") + " " + /*checkContainerDroppedItem*/
13916
- (ctx[32](
14027
+ (ctx[37](
13917
14028
  CONTAINER_WORD_BIN_ID,
13918
14029
  /*dropContainerId*/
13919
14030
  ctx[13]
13920
14031
  ) ? "bg-violet-150" : "") + " " + /*checkContainerDroppedItem*/
13921
- (ctx[32](
14032
+ (ctx[37](
13922
14033
  CONTAINER_WORD_BIN_ID,
13923
14034
  /*dropContainerId*/
13924
14035
  ctx[13]
13925
14036
  ) && /*hasAddItemAnimation*/
13926
14037
  ctx[17] ? "transition bg-white duration-300" : "") + " " + /*checkSelectedSourceContainer*/
13927
- (ctx[33](
14038
+ (ctx[38](
13928
14039
  CONTAINER_WORD_BIN_ID,
13929
14040
  /*sourceSelectedContainerId*/
13930
14041
  ctx[15],
13931
14042
  /*currentSelectedItemId*/
13932
14043
  ctx[14]
13933
14044
  ) ? "hover:bg-violet-100 hover-focus-ring cursor-pointer" : ""))) {
13934
- attr(div4, "class", div4_class_value);
14045
+ attr(div5, "class", div5_class_value);
13935
14046
  }
13936
14047
  },
13937
14048
  i(local) {
13938
14049
  if (current)
13939
14050
  return;
13940
- transition_in(arrowdowncircle.$$.fragment, local);
13941
14051
  transition_in(if_block0);
14052
+ transition_in(arrowdowncircle.$$.fragment, local);
13942
14053
  transition_in(if_block1);
14054
+ transition_in(if_block2);
13943
14055
  for (let i = 0; i < each_value.length; i += 1) {
13944
14056
  transition_in(each_blocks[i]);
13945
14057
  }
@@ -13949,9 +14061,10 @@
13949
14061
  current = true;
13950
14062
  },
13951
14063
  o(local) {
13952
- transition_out(arrowdowncircle.$$.fragment, local);
13953
14064
  transition_out(if_block0);
14065
+ transition_out(arrowdowncircle.$$.fragment, local);
13954
14066
  transition_out(if_block1);
14067
+ transition_out(if_block2);
13955
14068
  each_blocks = each_blocks.filter(Boolean);
13956
14069
  for (let i = 0; i < each_blocks.length; i += 1) {
13957
14070
  transition_out(each_blocks[i]);
@@ -13963,27 +14076,31 @@
13963
14076
  },
13964
14077
  d(detaching) {
13965
14078
  if (detaching) {
14079
+ detach(div0);
14080
+ detach(t0);
13966
14081
  detach(button0);
13967
- detach(t2);
13968
14082
  detach(t3);
13969
- detach(div0);
13970
- detach(t6);
14083
+ detach(t4);
13971
14084
  detach(div1);
13972
14085
  detach(t7);
13973
- detach(div4);
14086
+ detach(div2);
14087
+ detach(t8);
14088
+ detach(div5);
13974
14089
  }
13975
- destroy_component(arrowdowncircle);
13976
14090
  if (if_block0)
13977
- if_block0.d(detaching);
14091
+ if_block0.d();
14092
+ destroy_component(arrowdowncircle);
13978
14093
  if (if_block1)
13979
- if_block1.d();
13980
- destroy_each(each_blocks, detaching);
14094
+ if_block1.d(detaching);
13981
14095
  if (if_block2)
13982
14096
  if_block2.d();
14097
+ destroy_each(each_blocks, detaching);
14098
+ if (if_block3)
14099
+ if_block3.d();
13983
14100
  destroy_component(smallchevronleft);
13984
14101
  destroy_component(promptcategorisedndcontainer);
13985
14102
  destroy_component(smallchevronright);
13986
- ctx[56](null);
14103
+ ctx[61](null);
13987
14104
  mounted = false;
13988
14105
  run_all(dispose);
13989
14106
  }
@@ -13997,11 +14114,11 @@
13997
14114
  props: {
13998
14115
  rubric: (
13999
14116
  /*rubric*/
14000
- ctx[26].text
14117
+ ctx[30].text
14001
14118
  ),
14002
14119
  prompt: (
14003
14120
  /*prompt*/
14004
- ctx[28]
14121
+ ctx[32]
14005
14122
  ),
14006
14123
  interactionType: INTERACTION_TYPE_CATEGORISE,
14007
14124
  $$slots: { default: [create_default_slot4] },
@@ -14017,14 +14134,14 @@
14017
14134
  m(target, anchor) {
14018
14135
  insert(target, div, anchor);
14019
14136
  mount_component(promptbody, div, null);
14020
- ctx[57](div);
14137
+ ctx[62](div);
14021
14138
  current = true;
14022
14139
  },
14023
14140
  p(ctx2, dirty) {
14024
14141
  const promptbody_changes = {};
14025
- if (dirty[0] & /*isModalOpen, categoryTabIndex, dropContainerId, considerContainerId, isDraggingOver, hasAddItemAnimation, sourceSelectedContainerId, currentSelectedItemId, tabCategory, totalRemainingWordBinItem, currentWordBinIndex, currentAnswer, isFinished, isPreviewModeInteractive, categoriseSettingsData, isDataSaving, totalCategoryItems, selectedItemName, openCategoryContainer, categoryTitleHeight, enableAriaLive, previewResultSr, totalCategoryWords, modalSettingsData*/
14026
- 33554423 | dirty[2] & /*$$scope*/
14027
- 512) {
14142
+ if (dirty[0] & /*isModalOpen, categoryTabIndex, dropContainerId, considerContainerId, isDraggingOver, hasAddItemAnimation, sourceSelectedContainerId, currentSelectedItemId, tabCategory, totalRemainingWordBinItem, currentWordBinIndex, currentAnswer, isFinished, isPreviewModeInteractive, categoriseSettingsData, isDataSaving, totalCategoryItems, selectedItemName, openCategoryContainer, categoryTitleHeight, enableAriaLive, previewResultSr, totalCategoryWords, modalSettingsData, allAnswersCorrect, isItemSkipped, resultFeedback, isFeedbackShown*/
14143
+ 536870903 | dirty[2] & /*$$scope*/
14144
+ 131072) {
14028
14145
  promptbody_changes.$$scope = { dirty, ctx: ctx2 };
14029
14146
  }
14030
14147
  promptbody.$set(promptbody_changes);
@@ -14044,7 +14161,7 @@
14044
14161
  detach(div);
14045
14162
  }
14046
14163
  destroy_component(promptbody);
14047
- ctx[57](null);
14164
+ ctx[62](null);
14048
14165
  }
14049
14166
  };
14050
14167
  }
@@ -14104,7 +14221,7 @@
14104
14221
  isOpenLastStatus: false
14105
14222
  };
14106
14223
  const { rubric, interaction, metadata, scoringMetadata } = sessionData;
14107
- const { prompt, category_groups: interactionCategoryGroups, category_items: interactionCategoryItems } = interaction;
14224
+ const { prompt, category_groups: interactionCategoryGroups, category_items: interactionCategoryItems, feedback } = interaction;
14108
14225
  const categoryItems = useFilterUniqueObject(interactionCategoryItems);
14109
14226
  const categoryGroups = useFilterUniqueObject(interactionCategoryGroups);
14110
14227
  const tabCategory = [];
@@ -14152,6 +14269,53 @@
14152
14269
  const updateModalSettings = (newSettings) => {
14153
14270
  $$invalidate(8, modalSettingsData = { ...modalSettingsData, ...newSettings });
14154
14271
  };
14272
+ let isFeedbackShown = false;
14273
+ let allItemsPlacedTrigger = false;
14274
+ let allAnswersCorrect = false;
14275
+ let isItemSkipped = false;
14276
+ let resultFeedback = "";
14277
+ const checkFeedbackStatus = () => {
14278
+ if (isPreviewModeInteractive && !allItemsPlacedTrigger && totalRemainingWordBinItem === 0) {
14279
+ allItemsPlacedTrigger = true;
14280
+ }
14281
+ if (isFinished && !isPreviewMode || isPreviewMode && isPreviewModeInteractive && allItemsPlacedTrigger) {
14282
+ const { answerList } = scoringMetadata;
14283
+ const { correct: correctFeedback, incorrect: incorrectFeedback } = feedback;
14284
+ let hasIncorrect = false;
14285
+ let hasCorrect = false;
14286
+ let hasWordBinItems = totalRemainingWordBinItem > 0;
14287
+ categoryGroups.forEach((category) => {
14288
+ const { id: categoryId } = category;
14289
+ const categoryAnswerList = answerList[categoryId] || [];
14290
+ const categoryIndex = currentAnswer.findIndex((answer) => answer.categoryId === categoryId);
14291
+ if (categoryIndex !== -1) {
14292
+ const { itemId } = currentAnswer[categoryIndex];
14293
+ itemId.forEach((item) => {
14294
+ const itemIdNoStatus = item.includes(EAT_DASH) ? item.split(EAT_DASH)[0] : item;
14295
+ if (categoryAnswerList.includes(itemIdNoStatus)) {
14296
+ hasCorrect = true;
14297
+ } else {
14298
+ hasIncorrect = true;
14299
+ }
14300
+ });
14301
+ }
14302
+ });
14303
+ $$invalidate(26, allAnswersCorrect = hasCorrect && !hasIncorrect && !hasWordBinItems);
14304
+ $$invalidate(27, isItemSkipped = totalRemainingWordBinItem === totalCategoryItems || hasWordBinItems && hasCorrect && !hasIncorrect);
14305
+ $$invalidate(28, resultFeedback = allAnswersCorrect ? correctFeedback : incorrectFeedback);
14306
+ $$invalidate(25, isFeedbackShown = isPreviewModeInteractive ? allItemsPlacedTrigger : allAnswersCorrect ? false : true);
14307
+ }
14308
+ };
14309
+ const resetFeedbackStatus = () => {
14310
+ $$invalidate(25, isFeedbackShown = false);
14311
+ allItemsPlacedTrigger = false;
14312
+ setTimeout(
14313
+ () => {
14314
+ checkFeedbackStatus();
14315
+ },
14316
+ 50
14317
+ );
14318
+ };
14155
14319
  if (isFinished) {
14156
14320
  const showOpenContainerList = [];
14157
14321
  const { answerList } = scoringMetadata;
@@ -14168,12 +14332,18 @@
14168
14332
  const correctItems = itemId.filter((item) => categoryAnswerList.includes(item));
14169
14333
  const incorrectItems = itemId.filter((item) => !categoryAnswerList.includes(item));
14170
14334
  missedItems = categoryAnswerList.filter((item) => !itemId.includes(item));
14171
- correctItems?.map((item) => items.push(`${item}${EAT_DASH}${ANSWER_CORRECT}`));
14172
- incorrectItems?.map((item) => items.push(`${item}${EAT_DASH}${ANSWER_INCORRECT}`));
14335
+ correctItems?.map((item) => {
14336
+ items.push(`${item}${EAT_DASH}${ANSWER_CORRECT}`);
14337
+ });
14338
+ incorrectItems?.map((item) => {
14339
+ items.push(`${item}${EAT_DASH}${ANSWER_INCORRECT}`);
14340
+ });
14173
14341
  } else {
14174
14342
  missedItems = categoryAnswerList;
14175
14343
  }
14176
- missedItems?.map((item) => items.push(`${item}${EAT_DASH}${isPreviewMode ? ANSWER_CORRECT : ANSWER_MISSED}`));
14344
+ missedItems?.map((item) => {
14345
+ items.push(`${item}${EAT_DASH}${isPreviewMode ? ANSWER_CORRECT : ANSWER_MISSED}`);
14346
+ });
14177
14347
  return { categoryId, itemId: items };
14178
14348
  });
14179
14349
  const wordBinIndex = initialCategoryAnswer.findIndex((answer) => answer.categoryId === CONTAINER_WORD_BIN_ID);
@@ -14186,6 +14356,8 @@
14186
14356
  updateCategoriseSettings({
14187
14357
  openCategoryContainer: showOpenContainerList
14188
14358
  });
14359
+ if (!isPreviewModeInteractive)
14360
+ checkFeedbackStatus();
14189
14361
  }
14190
14362
  updateCategoriseSettings({
14191
14363
  currentAnswer: initialCategoryAnswer,
@@ -14305,7 +14477,7 @@
14305
14477
  }
14306
14478
  const keydown_handler_1 = ({ key }) => getContainerTabSelected(key, CONTAINER_WORD_BIN_ID);
14307
14479
  const blur_handler_1 = () => handleItemAriaHidden(false);
14308
- function div4_binding($$value) {
14480
+ function div5_binding($$value) {
14309
14481
  binding_callbacks[$$value ? "unshift" : "push"](() => {
14310
14482
  tabCategory[CONTAINER_WORD_BIN_ID] = $$value;
14311
14483
  $$invalidate(9, tabCategory);
@@ -14319,11 +14491,11 @@
14319
14491
  }
14320
14492
  $$self.$$set = ($$props2) => {
14321
14493
  if ("sessionData" in $$props2)
14322
- $$invalidate(48, sessionData = $$props2.sessionData);
14494
+ $$invalidate(53, sessionData = $$props2.sessionData);
14323
14495
  if ("isFinished" in $$props2)
14324
14496
  $$invalidate(0, isFinished = $$props2.isFinished);
14325
14497
  if ("isPreviewMode" in $$props2)
14326
- $$invalidate(49, isPreviewMode = $$props2.isPreviewMode);
14498
+ $$invalidate(54, isPreviewMode = $$props2.isPreviewMode);
14327
14499
  if ("isPreviewModeInteractive" in $$props2)
14328
14500
  $$invalidate(1, isPreviewModeInteractive = $$props2.isPreviewModeInteractive);
14329
14501
  if ("isDataSaving" in $$props2)
@@ -14387,6 +14559,7 @@
14387
14559
  150
14388
14560
  );
14389
14561
  }
14562
+ checkFeedbackStatus();
14390
14563
  if (previewResultSr) {
14391
14564
  setTimeout(
14392
14565
  () => {
@@ -14436,12 +14609,17 @@
14436
14609
  selectedItemName,
14437
14610
  enableAriaLive,
14438
14611
  categoryTitleHeight,
14612
+ isFeedbackShown,
14613
+ allAnswersCorrect,
14614
+ isItemSkipped,
14615
+ resultFeedback,
14439
14616
  categoryDndType,
14440
14617
  rubric,
14441
14618
  scoringMetadata,
14442
14619
  prompt,
14443
14620
  categoryItems,
14444
14621
  categoryGroups,
14622
+ resetFeedbackStatus,
14445
14623
  checkContainerDragOver,
14446
14624
  checkContainerDroppedItem,
14447
14625
  checkSelectedSourceContainer,
@@ -14467,7 +14645,7 @@
14467
14645
  div1_binding,
14468
14646
  keydown_handler_1,
14469
14647
  blur_handler_1,
14470
- div4_binding,
14648
+ div5_binding,
14471
14649
  div_binding
14472
14650
  ];
14473
14651
  }
@@ -14481,9 +14659,9 @@
14481
14659
  create_fragment26,
14482
14660
  safe_not_equal,
14483
14661
  {
14484
- sessionData: 48,
14662
+ sessionData: 53,
14485
14663
  isFinished: 0,
14486
- isPreviewMode: 49,
14664
+ isPreviewMode: 54,
14487
14665
  isPreviewModeInteractive: 1,
14488
14666
  isDataSaving: 2
14489
14667
  },
@@ -14492,7 +14670,7 @@
14492
14670
  );
14493
14671
  }
14494
14672
  get sessionData() {
14495
- return this.$$.ctx[48];
14673
+ return this.$$.ctx[53];
14496
14674
  }
14497
14675
  set sessionData(sessionData) {
14498
14676
  this.$$set({ sessionData });
@@ -14506,7 +14684,7 @@
14506
14684
  flush();
14507
14685
  }
14508
14686
  get isPreviewMode() {
14509
- return this.$$.ctx[49];
14687
+ return this.$$.ctx[54];
14510
14688
  }
14511
14689
  set isPreviewMode(isPreviewMode) {
14512
14690
  this.$$set({ isPreviewMode });