eat-js-sdk 1.0.30 → 1.0.32

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.
@@ -3513,21 +3513,21 @@
3513
3513
  isResultCorrect: (
3514
3514
  /*selectedOptions*/
3515
3515
  ctx[4].length === /*correctAnswersLength*/
3516
- ctx[6] && /*isResultCorrect*/
3517
- ctx[12](
3516
+ ctx[5] && /*isResultCorrect*/
3517
+ ctx[13](
3518
3518
  /*selectedOptions*/
3519
3519
  ctx[4],
3520
3520
  /*correctAnswerIds*/
3521
- ctx[7]
3521
+ ctx[6]
3522
3522
  )
3523
3523
  ),
3524
3524
  isSkipped: (
3525
3525
  /*isSkipped*/
3526
- ctx[13]()
3526
+ ctx[14]()
3527
3527
  ),
3528
3528
  resultFeedback: (
3529
3529
  /*resultFeedback*/
3530
- ctx[5]
3530
+ ctx[7]
3531
3531
  )
3532
3532
  }
3533
3533
  });
@@ -3546,20 +3546,20 @@
3546
3546
  promptresult_changes.isFeedbackAlert = /*isPreviewModeInteractive*/
3547
3547
  ctx2[3] ? false : true;
3548
3548
  if (dirty[0] & /*selectedOptions, correctAnswersLength, correctAnswerIds*/
3549
- 208)
3549
+ 112)
3550
3550
  promptresult_changes.isResultCorrect = /*selectedOptions*/
3551
3551
  ctx2[4].length === /*correctAnswersLength*/
3552
- ctx2[6] && /*isResultCorrect*/
3553
- ctx2[12](
3552
+ ctx2[5] && /*isResultCorrect*/
3553
+ ctx2[13](
3554
3554
  /*selectedOptions*/
3555
3555
  ctx2[4],
3556
3556
  /*correctAnswerIds*/
3557
- ctx2[7]
3557
+ ctx2[6]
3558
3558
  );
3559
3559
  if (dirty[0] & /*resultFeedback*/
3560
- 32)
3560
+ 128)
3561
3561
  promptresult_changes.resultFeedback = /*resultFeedback*/
3562
- ctx2[5];
3562
+ ctx2[7];
3563
3563
  promptresult.$set(promptresult_changes);
3564
3564
  },
3565
3565
  i(local) {
@@ -3585,7 +3585,7 @@
3585
3585
  let current;
3586
3586
  let each_value = ensure_array_like(Object.values(
3587
3587
  /*options*/
3588
- ctx[11]
3588
+ ctx[12]
3589
3589
  ));
3590
3590
  let each_blocks = [];
3591
3591
  for (let i = 0; i < each_value.length; i += 1) {
@@ -3624,10 +3624,10 @@
3624
3624
  attr(div0, "class", div0_class_value);
3625
3625
  }
3626
3626
  if (dirty[0] & /*correctAnswersLength, selectedOptions, options, isFinished, isPreviewModeInteractive, isPreviewMode, correctAnswerIds, handleOptionClick*/
3627
- 18654) {
3627
+ 36990) {
3628
3628
  each_value = ensure_array_like(Object.values(
3629
3629
  /*options*/
3630
- ctx2[11]
3630
+ ctx2[12]
3631
3631
  ));
3632
3632
  let i;
3633
3633
  for (i = 0; i < each_value.length; i += 1) {
@@ -3772,11 +3772,11 @@
3772
3772
  const if_blocks = [];
3773
3773
  function select_block_type(ctx2, dirty) {
3774
3774
  if (dirty[0] & /*correctAnswerIds, isPreviewMode, isPreviewModeInteractive*/
3775
- 140)
3775
+ 76)
3776
3776
  show_if = null;
3777
3777
  if (show_if == null)
3778
3778
  show_if = !!/*correctAnswerIds*/
3779
- (ctx2[7]?.includes(
3779
+ (ctx2[6]?.includes(
3780
3780
  /*option*/
3781
3781
  ctx2[29].id
3782
3782
  ) || /*isPreviewMode*/
@@ -3794,7 +3794,7 @@
3794
3794
  if_block.c();
3795
3795
  attr(span, "aria-hidden", "true");
3796
3796
  attr(span, "class", span_class_value = /*correctAnswerIds*/
3797
- (ctx[7]?.includes(
3797
+ (ctx[6]?.includes(
3798
3798
  /*option*/
3799
3799
  ctx[29].id
3800
3800
  ) || /*isPreviewMode*/
@@ -3825,8 +3825,8 @@
3825
3825
  if_block.m(span, null);
3826
3826
  }
3827
3827
  if (!current || dirty[0] & /*correctAnswerIds, isPreviewMode, isPreviewModeInteractive*/
3828
- 140 && span_class_value !== (span_class_value = /*correctAnswerIds*/
3829
- (ctx2[7]?.includes(
3828
+ 76 && span_class_value !== (span_class_value = /*correctAnswerIds*/
3829
+ (ctx2[6]?.includes(
3830
3830
  /*option*/
3831
3831
  ctx2[29].id
3832
3832
  ) || /*isPreviewMode*/
@@ -4041,7 +4041,7 @@
4041
4041
  /*option*/
4042
4042
  ctx[29].id
4043
4043
  ) && /*correctAnswersLength*/
4044
- ctx[6] == 1
4044
+ ctx[5] == 1
4045
4045
  );
4046
4046
  let t0;
4047
4047
  let button;
@@ -4053,7 +4053,7 @@
4053
4053
  let show_if_3 = (
4054
4054
  /*isFinished*/
4055
4055
  ctx[1] && /*correctAnswerIds*/
4056
- ctx[7]?.includes(
4056
+ ctx[6]?.includes(
4057
4057
  /*option*/
4058
4058
  ctx[29].id
4059
4059
  ) && (!/*selectedOptions*/
@@ -4065,7 +4065,7 @@
4065
4065
  ctx[3] || /*isPreviewModeInteractive*/
4066
4066
  ctx[3] && /*selectedOptions*/
4067
4067
  ctx[4].length === /*correctAnswersLength*/
4068
- ctx[6])
4068
+ ctx[5])
4069
4069
  );
4070
4070
  let t3;
4071
4071
  let commonstringtohtml;
@@ -4074,7 +4074,7 @@
4074
4074
  let show_if_2 = (
4075
4075
  /*isFinished*/
4076
4076
  ctx[1] && /*correctAnswerIds*/
4077
- ctx[7]?.includes(
4077
+ ctx[6]?.includes(
4078
4078
  /*option*/
4079
4079
  ctx[29].id
4080
4080
  ) && !/*selectedOptions*/
@@ -4085,7 +4085,7 @@
4085
4085
  ctx[3] || /*isPreviewModeInteractive*/
4086
4086
  ctx[3] && /*selectedOptions*/
4087
4087
  ctx[4].length === /*correctAnswersLength*/
4088
- ctx[6])
4088
+ ctx[5])
4089
4089
  );
4090
4090
  let t5;
4091
4091
  let show_if_1 = (
@@ -4098,12 +4098,12 @@
4098
4098
  ctx[3] || /*isPreviewModeInteractive*/
4099
4099
  ctx[3] && /*selectedOptions*/
4100
4100
  ctx[4].length === /*correctAnswersLength*/
4101
- ctx[6])
4101
+ ctx[5])
4102
4102
  );
4103
4103
  let t6;
4104
4104
  let show_if = (
4105
4105
  /*correctAnswersLength*/
4106
- ctx[6] > 1 && (!/*isFinished*/
4106
+ ctx[5] > 1 && (!/*isFinished*/
4107
4107
  ctx[1] && !/*isPreviewModeInteractive*/
4108
4108
  ctx[3] || /*isFinished*/
4109
4109
  ctx[1] && !/*selectedOptions*/
@@ -4111,7 +4111,7 @@
4111
4111
  /*option*/
4112
4112
  ctx[29].id
4113
4113
  ) && !/*correctAnswerIds*/
4114
- ctx[7].includes(
4114
+ ctx[6].includes(
4115
4115
  /*option*/
4116
4116
  ctx[29].id
4117
4117
  ) || /*isPreviewModeInteractive*/
@@ -4144,7 +4144,7 @@
4144
4144
  function func() {
4145
4145
  return (
4146
4146
  /*func*/
4147
- ctx[17](
4147
+ ctx[18](
4148
4148
  /*option*/
4149
4149
  ctx[29]
4150
4150
  )
@@ -4153,7 +4153,7 @@
4153
4153
  function click_handler() {
4154
4154
  return (
4155
4155
  /*click_handler*/
4156
- ctx[18](
4156
+ ctx[19](
4157
4157
  /*option*/
4158
4158
  ctx[29]
4159
4159
  )
@@ -4195,11 +4195,11 @@
4195
4195
  attr(span3, "class", "flex items-center");
4196
4196
  attr(span4, "class", "grow flex items-center justify-between");
4197
4197
  attr(button, "role", button_role_value = /*correctAnswersLength*/
4198
- ctx[6] > 1 ? "checkbox" : null);
4198
+ ctx[5] > 1 ? "checkbox" : null);
4199
4199
  attr(button, "tabindex", button_tabindex_value = /*correctAnswersLength*/
4200
- ctx[6] > 1 ? 0 : null);
4200
+ ctx[5] > 1 ? 0 : null);
4201
4201
  attr(button, "aria-checked", button_aria_checked_value = /*correctAnswersLength*/
4202
- ctx[6] > 1 ? (
4202
+ ctx[5] > 1 ? (
4203
4203
  /*selectedOptions*/
4204
4204
  ctx[4].includes(
4205
4205
  /*option*/
@@ -4230,7 +4230,7 @@
4230
4230
  ctx[29].id
4231
4231
  ) ? "selected" : "") + " " + /*isFinished*/
4232
4232
  (ctx[1] && /*correctAnswerIds*/
4233
- ctx[7]?.includes(
4233
+ ctx[6]?.includes(
4234
4234
  /*option*/
4235
4235
  ctx[29].id
4236
4236
  ) && (!/*selectedOptions*/
@@ -4242,19 +4242,19 @@
4242
4242
  ctx[3] || /*isPreviewModeInteractive*/
4243
4243
  ctx[3] && /*selectedOptions*/
4244
4244
  ctx[4].length === /*correctAnswersLength*/
4245
- ctx[6]) ? "missing" : "") + " " + /*isFinished*/
4245
+ ctx[5]) ? "missing" : "") + " " + /*isFinished*/
4246
4246
  ((ctx[1] && !/*isPreviewModeInteractive*/
4247
4247
  ctx[3] || /*isPreviewModeInteractive*/
4248
4248
  ctx[3] && /*selectedOptions*/
4249
4249
  ctx[4].length === /*correctAnswersLength*/
4250
- ctx[6] || /*isPreviewMode*/
4250
+ ctx[5] || /*isPreviewMode*/
4251
4251
  ctx[2] && !/*isPreviewModeInteractive*/
4252
4252
  ctx[3] && /*selectedOptions*/
4253
4253
  ctx[4].includes(
4254
4254
  /*option*/
4255
4255
  ctx[29].id
4256
4256
  )) && /*correctAnswerIds*/
4257
- ctx[7].includes(
4257
+ ctx[6].includes(
4258
4258
  /*option*/
4259
4259
  ctx[29].id
4260
4260
  ) ? "correct" : (
@@ -4263,7 +4263,7 @@
4263
4263
  ctx[3] || /*isPreviewModeInteractive*/
4264
4264
  ctx[3] && /*selectedOptions*/
4265
4265
  ctx[4].length === /*correctAnswersLength*/
4266
- ctx[6] ? "incorrect" : ""
4266
+ ctx[5] ? "incorrect" : ""
4267
4267
  )) + " " + /*isPreviewModeInteractive*/
4268
4268
  (ctx[3] ? "interactive" : ""));
4269
4269
  },
@@ -4301,14 +4301,14 @@
4301
4301
  p(new_ctx, dirty) {
4302
4302
  ctx = new_ctx;
4303
4303
  if (dirty[0] & /*isFinished, selectedOptions, correctAnswersLength*/
4304
- 82)
4304
+ 50)
4305
4305
  show_if_4 = /*isFinished*/
4306
4306
  ctx[1] && /*selectedOptions*/
4307
4307
  ctx[4].includes(
4308
4308
  /*option*/
4309
4309
  ctx[29].id
4310
4310
  ) && /*correctAnswersLength*/
4311
- ctx[6] == 1;
4311
+ ctx[5] == 1;
4312
4312
  if (show_if_4) {
4313
4313
  if (if_block0) {
4314
4314
  if_block0.p(ctx, dirty);
@@ -4322,10 +4322,10 @@
4322
4322
  if_block0 = null;
4323
4323
  }
4324
4324
  if (dirty[0] & /*isFinished, correctAnswerIds, selectedOptions, isPreviewModeInteractive, correctAnswersLength*/
4325
- 218)
4325
+ 122)
4326
4326
  show_if_3 = /*isFinished*/
4327
4327
  ctx[1] && /*correctAnswerIds*/
4328
- ctx[7]?.includes(
4328
+ ctx[6]?.includes(
4329
4329
  /*option*/
4330
4330
  ctx[29].id
4331
4331
  ) && (!/*selectedOptions*/
@@ -4337,7 +4337,7 @@
4337
4337
  ctx[3] || /*isPreviewModeInteractive*/
4338
4338
  ctx[3] && /*selectedOptions*/
4339
4339
  ctx[4].length === /*correctAnswersLength*/
4340
- ctx[6]);
4340
+ ctx[5]);
4341
4341
  if (show_if_3) {
4342
4342
  if (if_block1) {
4343
4343
  } else {
@@ -4350,10 +4350,10 @@
4350
4350
  if_block1 = null;
4351
4351
  }
4352
4352
  if (dirty[0] & /*isFinished, correctAnswerIds, selectedOptions, isPreviewModeInteractive, correctAnswersLength*/
4353
- 218)
4353
+ 122)
4354
4354
  show_if_2 = /*isFinished*/
4355
4355
  ctx[1] && /*correctAnswerIds*/
4356
- ctx[7]?.includes(
4356
+ ctx[6]?.includes(
4357
4357
  /*option*/
4358
4358
  ctx[29].id
4359
4359
  ) && !/*selectedOptions*/
@@ -4364,11 +4364,11 @@
4364
4364
  ctx[3] || /*isPreviewModeInteractive*/
4365
4365
  ctx[3] && /*selectedOptions*/
4366
4366
  ctx[4].length === /*correctAnswersLength*/
4367
- ctx[6]);
4367
+ ctx[5]);
4368
4368
  if (show_if_2) {
4369
4369
  if (if_block2) {
4370
4370
  if (dirty[0] & /*isFinished, correctAnswerIds, selectedOptions, isPreviewModeInteractive, correctAnswersLength*/
4371
- 218) {
4371
+ 122) {
4372
4372
  transition_in(if_block2, 1);
4373
4373
  }
4374
4374
  } else {
@@ -4385,7 +4385,7 @@
4385
4385
  check_outros();
4386
4386
  }
4387
4387
  if (dirty[0] & /*selectedOptions, isFinished, isPreviewModeInteractive, correctAnswersLength*/
4388
- 90)
4388
+ 58)
4389
4389
  show_if_1 = /*selectedOptions*/
4390
4390
  ctx[4].includes(
4391
4391
  /*option*/
@@ -4395,12 +4395,12 @@
4395
4395
  ctx[3] || /*isPreviewModeInteractive*/
4396
4396
  ctx[3] && /*selectedOptions*/
4397
4397
  ctx[4].length === /*correctAnswersLength*/
4398
- ctx[6]);
4398
+ ctx[5]);
4399
4399
  if (show_if_1) {
4400
4400
  if (if_block3) {
4401
4401
  if_block3.p(ctx, dirty);
4402
4402
  if (dirty[0] & /*selectedOptions, isFinished, isPreviewModeInteractive, correctAnswersLength*/
4403
- 90) {
4403
+ 58) {
4404
4404
  transition_in(if_block3, 1);
4405
4405
  }
4406
4406
  } else {
@@ -4417,9 +4417,9 @@
4417
4417
  check_outros();
4418
4418
  }
4419
4419
  if (dirty[0] & /*correctAnswersLength, isFinished, isPreviewModeInteractive, selectedOptions, correctAnswerIds*/
4420
- 218)
4420
+ 122)
4421
4421
  show_if = /*correctAnswersLength*/
4422
- ctx[6] > 1 && (!/*isFinished*/
4422
+ ctx[5] > 1 && (!/*isFinished*/
4423
4423
  ctx[1] && !/*isPreviewModeInteractive*/
4424
4424
  ctx[3] || /*isFinished*/
4425
4425
  ctx[1] && !/*selectedOptions*/
@@ -4427,7 +4427,7 @@
4427
4427
  /*option*/
4428
4428
  ctx[29].id
4429
4429
  ) && !/*correctAnswerIds*/
4430
- ctx[7].includes(
4430
+ ctx[6].includes(
4431
4431
  /*option*/
4432
4432
  ctx[29].id
4433
4433
  ) || /*isPreviewModeInteractive*/
@@ -4436,7 +4436,7 @@
4436
4436
  if (if_block4) {
4437
4437
  if_block4.p(ctx, dirty);
4438
4438
  if (dirty[0] & /*correctAnswersLength, isFinished, isPreviewModeInteractive, selectedOptions, correctAnswerIds*/
4439
- 218) {
4439
+ 122) {
4440
4440
  transition_in(if_block4, 1);
4441
4441
  }
4442
4442
  } else {
@@ -4453,18 +4453,18 @@
4453
4453
  check_outros();
4454
4454
  }
4455
4455
  if (!current || dirty[0] & /*correctAnswersLength*/
4456
- 64 && button_role_value !== (button_role_value = /*correctAnswersLength*/
4457
- ctx[6] > 1 ? "checkbox" : null)) {
4456
+ 32 && button_role_value !== (button_role_value = /*correctAnswersLength*/
4457
+ ctx[5] > 1 ? "checkbox" : null)) {
4458
4458
  attr(button, "role", button_role_value);
4459
4459
  }
4460
4460
  if (!current || dirty[0] & /*correctAnswersLength*/
4461
- 64 && button_tabindex_value !== (button_tabindex_value = /*correctAnswersLength*/
4462
- ctx[6] > 1 ? 0 : null)) {
4461
+ 32 && button_tabindex_value !== (button_tabindex_value = /*correctAnswersLength*/
4462
+ ctx[5] > 1 ? 0 : null)) {
4463
4463
  attr(button, "tabindex", button_tabindex_value);
4464
4464
  }
4465
4465
  if (!current || dirty[0] & /*correctAnswersLength, selectedOptions*/
4466
- 80 && button_aria_checked_value !== (button_aria_checked_value = /*correctAnswersLength*/
4467
- ctx[6] > 1 ? (
4466
+ 48 && button_aria_checked_value !== (button_aria_checked_value = /*correctAnswersLength*/
4467
+ ctx[5] > 1 ? (
4468
4468
  /*selectedOptions*/
4469
4469
  ctx[4].includes(
4470
4470
  /*option*/
@@ -4480,7 +4480,7 @@
4480
4480
  attr(button, "aria-disabled", button_aria_disabled_value);
4481
4481
  }
4482
4482
  if (!current || dirty[0] & /*isFinished, isPreviewModeInteractive, selectedOptions, isPreviewMode, correctAnswerIds, correctAnswersLength*/
4483
- 222 && button_aria_label_value !== (button_aria_label_value = `${(!/*isFinished*/
4483
+ 126 && button_aria_label_value !== (button_aria_label_value = `${(!/*isFinished*/
4484
4484
  ctx[1] || /*isPreviewModeInteractive*/
4485
4485
  ctx[3]) && /*selectedOptions*/
4486
4486
  ctx[4].includes(
@@ -4496,7 +4496,7 @@
4496
4496
  attr(button, "aria-label", button_aria_label_value);
4497
4497
  }
4498
4498
  if (!current || dirty[0] & /*isFinished, isPreviewModeInteractive, selectedOptions, correctAnswerIds, correctAnswersLength, isPreviewMode*/
4499
- 222 && button_class_value !== (button_class_value = "group text-left btn-mcq-option " + (!/*isFinished*/
4499
+ 126 && button_class_value !== (button_class_value = "group text-left btn-mcq-option " + (!/*isFinished*/
4500
4500
  ctx[1] || /*isPreviewModeInteractive*/
4501
4501
  ctx[3] ? "active:raw-focus-ring-by" : "finished") + " " + /*selectedOptions*/
4502
4502
  (ctx[4].includes(
@@ -4504,7 +4504,7 @@
4504
4504
  ctx[29].id
4505
4505
  ) ? "selected" : "") + " " + /*isFinished*/
4506
4506
  (ctx[1] && /*correctAnswerIds*/
4507
- ctx[7]?.includes(
4507
+ ctx[6]?.includes(
4508
4508
  /*option*/
4509
4509
  ctx[29].id
4510
4510
  ) && (!/*selectedOptions*/
@@ -4516,19 +4516,19 @@
4516
4516
  ctx[3] || /*isPreviewModeInteractive*/
4517
4517
  ctx[3] && /*selectedOptions*/
4518
4518
  ctx[4].length === /*correctAnswersLength*/
4519
- ctx[6]) ? "missing" : "") + " " + /*isFinished*/
4519
+ ctx[5]) ? "missing" : "") + " " + /*isFinished*/
4520
4520
  ((ctx[1] && !/*isPreviewModeInteractive*/
4521
4521
  ctx[3] || /*isPreviewModeInteractive*/
4522
4522
  ctx[3] && /*selectedOptions*/
4523
4523
  ctx[4].length === /*correctAnswersLength*/
4524
- ctx[6] || /*isPreviewMode*/
4524
+ ctx[5] || /*isPreviewMode*/
4525
4525
  ctx[2] && !/*isPreviewModeInteractive*/
4526
4526
  ctx[3] && /*selectedOptions*/
4527
4527
  ctx[4].includes(
4528
4528
  /*option*/
4529
4529
  ctx[29].id
4530
4530
  )) && /*correctAnswerIds*/
4531
- ctx[7].includes(
4531
+ ctx[6].includes(
4532
4532
  /*option*/
4533
4533
  ctx[29].id
4534
4534
  ) ? "correct" : (
@@ -4537,7 +4537,7 @@
4537
4537
  ctx[3] || /*isPreviewModeInteractive*/
4538
4538
  ctx[3] && /*selectedOptions*/
4539
4539
  ctx[4].length === /*correctAnswersLength*/
4540
- ctx[6] ? "incorrect" : ""
4540
+ ctx[5] ? "incorrect" : ""
4541
4541
  )) + " " + /*isPreviewModeInteractive*/
4542
4542
  (ctx[3] ? "interactive" : ""))) {
4543
4543
  attr(button, "class", button_class_value);
@@ -4587,11 +4587,11 @@
4587
4587
  let current;
4588
4588
  let if_block0 = (
4589
4589
  /*isFeedbackShown*/
4590
- ctx[15] && create_if_block_82(ctx)
4590
+ ctx[8] && create_if_block_82(ctx)
4591
4591
  );
4592
4592
  let if_block1 = (
4593
4593
  /*options*/
4594
- ctx[11] && create_if_block5(ctx)
4594
+ ctx[12] && create_if_block5(ctx)
4595
4595
  );
4596
4596
  return {
4597
4597
  c() {
@@ -4617,12 +4617,30 @@
4617
4617
  p(ctx2, dirty) {
4618
4618
  if (
4619
4619
  /*isFeedbackShown*/
4620
- ctx2[15]
4621
- )
4622
- if_block0.p(ctx2, dirty);
4620
+ ctx2[8]
4621
+ ) {
4622
+ if (if_block0) {
4623
+ if_block0.p(ctx2, dirty);
4624
+ if (dirty[0] & /*isFeedbackShown*/
4625
+ 256) {
4626
+ transition_in(if_block0, 1);
4627
+ }
4628
+ } else {
4629
+ if_block0 = create_if_block_82(ctx2);
4630
+ if_block0.c();
4631
+ transition_in(if_block0, 1);
4632
+ if_block0.m(div, null);
4633
+ }
4634
+ } else if (if_block0) {
4635
+ group_outros();
4636
+ transition_out(if_block0, 1, 1, () => {
4637
+ if_block0 = null;
4638
+ });
4639
+ check_outros();
4640
+ }
4623
4641
  if (
4624
4642
  /*options*/
4625
- ctx2[11]
4643
+ ctx2[12]
4626
4644
  )
4627
4645
  if_block1.p(ctx2, dirty);
4628
4646
  },
@@ -4658,16 +4676,16 @@
4658
4676
  props: {
4659
4677
  rubric: (
4660
4678
  /*rubric*/
4661
- ctx[8].text
4679
+ ctx[9].text
4662
4680
  ),
4663
4681
  prompt: (
4664
4682
  /*prompt*/
4665
- ctx[10]
4683
+ ctx[11]
4666
4684
  ),
4667
4685
  interactionType: INTERACTION_TYPE_MCQ,
4668
4686
  stimulus: (
4669
4687
  /*stimulus*/
4670
- ctx[9]
4688
+ ctx[10]
4671
4689
  ),
4672
4690
  $$slots: { default: [create_default_slot] },
4673
4691
  $$scope: { ctx }
@@ -4683,8 +4701,8 @@
4683
4701
  },
4684
4702
  p(ctx2, dirty) {
4685
4703
  const promptbody_changes = {};
4686
- if (dirty[0] & /*correctAnswersLength, selectedOptions, isFinished, isPreviewModeInteractive, isPreviewMode, correctAnswerIds, isDataSaving, resultFeedback*/
4687
- 255 | dirty[1] & /*$$scope*/
4704
+ if (dirty[0] & /*correctAnswersLength, selectedOptions, isFinished, isPreviewModeInteractive, isPreviewMode, correctAnswerIds, isDataSaving, resultFeedback, isFeedbackShown*/
4705
+ 511 | dirty[1] & /*$$scope*/
4688
4706
  2) {
4689
4707
  promptbody_changes.$$scope = { dirty, ctx: ctx2 };
4690
4708
  }
@@ -4706,6 +4724,7 @@
4706
4724
  };
4707
4725
  }
4708
4726
  function instance5($$self, $$props, $$invalidate) {
4727
+ let isFeedbackShown;
4709
4728
  let { sessionData } = $$props;
4710
4729
  let { isDataSaving } = $$props;
4711
4730
  let { isFinished = false } = $$props;
@@ -4730,7 +4749,7 @@
4730
4749
  }
4731
4750
  const getFeedback = () => {
4732
4751
  const { correct: correctFeedback, incorrect: incorrectFeedback } = feedback;
4733
- $$invalidate(5, resultFeedback = isResultCorrect(selectedOptions, correctAnswerIds) ? correctFeedback : incorrectFeedback);
4752
+ $$invalidate(7, resultFeedback = isResultCorrect(selectedOptions, correctAnswerIds) ? correctFeedback : incorrectFeedback);
4734
4753
  };
4735
4754
  const isResultCorrect = (selectedOptions2, correctAnswerIds2) => {
4736
4755
  return selectedOptions2.length > 0 && correctAnswerIds2.every((option) => selectedOptions2.includes(option));
@@ -4787,8 +4806,8 @@
4787
4806
  });
4788
4807
  }
4789
4808
  if (isPreviewModeInteractive) {
4790
- interactiveHasAnswered = true;
4791
- $$invalidate(5, resultFeedback = null);
4809
+ $$invalidate(17, interactiveHasAnswered = true);
4810
+ $$invalidate(7, resultFeedback = null);
4792
4811
  if (correctAnswersLength === selectedOptions.length) {
4793
4812
  setTimeout(
4794
4813
  () => {
@@ -4799,7 +4818,6 @@
4799
4818
  }
4800
4819
  }
4801
4820
  };
4802
- const isFeedbackShown = isFinished && !isPreviewModeInteractive && (!isResultCorrect(selectedOptions, correctAnswerIds) || !selectedOptions.length) || isPreviewModeInteractive && (selectedOptions.length === correctAnswersLength || !selectedOptions.length && interactiveHasAnswered);
4803
4821
  const func = (option) => {
4804
4822
  if (isFinished && !isPreviewMode && !isPreviewModeInteractive) {
4805
4823
  if (correctAnswerIds.includes(option.id)) {
@@ -4833,15 +4851,23 @@
4833
4851
  if ("isPreviewModeInteractive" in $$props2)
4834
4852
  $$invalidate(3, isPreviewModeInteractive = $$props2.isPreviewModeInteractive);
4835
4853
  };
4854
+ $$self.$$.update = () => {
4855
+ if ($$self.$$.dirty[0] & /*isFinished, isPreviewModeInteractive, selectedOptions, correctAnswerIds, correctAnswersLength, interactiveHasAnswered*/
4856
+ 131194) {
4857
+ $:
4858
+ $$invalidate(8, isFeedbackShown = isFinished && !isPreviewModeInteractive && (!isResultCorrect(selectedOptions, correctAnswerIds) || !selectedOptions.length) || isPreviewModeInteractive && (selectedOptions.length === correctAnswersLength || !selectedOptions.length && interactiveHasAnswered));
4859
+ }
4860
+ };
4836
4861
  return [
4837
4862
  isDataSaving,
4838
4863
  isFinished,
4839
4864
  isPreviewMode,
4840
4865
  isPreviewModeInteractive,
4841
4866
  selectedOptions,
4842
- resultFeedback,
4843
4867
  correctAnswersLength,
4844
4868
  correctAnswerIds,
4869
+ resultFeedback,
4870
+ isFeedbackShown,
4845
4871
  rubric,
4846
4872
  stimulus,
4847
4873
  prompt,
@@ -4849,8 +4875,8 @@
4849
4875
  isResultCorrect,
4850
4876
  isSkipped,
4851
4877
  handleOptionClick,
4852
- isFeedbackShown,
4853
4878
  sessionData,
4879
+ interactiveHasAnswered,
4854
4880
  func,
4855
4881
  click_handler
4856
4882
  ];
@@ -11320,7 +11346,7 @@
11320
11346
  create_component(crossicon.$$.fragment);
11321
11347
  t5 = space();
11322
11348
  p = element("p");
11323
- 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.";
11324
11350
  t7 = space();
11325
11351
  div2 = element("div");
11326
11352
  button1 = element("button");
@@ -11538,6 +11564,7 @@
11538
11564
  hasAddItemAnimation: false
11539
11565
  });
11540
11566
  dispatch("updateCategorySettings", categoryData);
11567
+ dispatch("resetFeedback");
11541
11568
  dispatch("resetCategory", { answer_list: [] });
11542
11569
  closeResetModal();
11543
11570
  };
@@ -12106,11 +12133,78 @@
12106
12133
  // src/lib/components/prompt/categorise/PromptCategorise.svelte
12107
12134
  function get_each_context4(ctx, list, i) {
12108
12135
  const child_ctx = ctx.slice();
12109
- child_ctx[68] = list[i];
12110
- child_ctx[69] = list;
12111
- child_ctx[70] = i;
12136
+ child_ctx[76] = list[i];
12137
+ child_ctx[77] = list;
12138
+ child_ctx[78] = i;
12112
12139
  return child_ctx;
12113
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
+ }
12114
12208
  function create_if_block_74(ctx) {
12115
12209
  let promptcategorisemodal;
12116
12210
  let current;
@@ -12129,17 +12223,22 @@
12129
12223
  promptcategorisemodal.$on(
12130
12224
  "updateCategorySettings",
12131
12225
  /*updateCategory*/
12132
- ctx[41]
12226
+ ctx[46]
12133
12227
  );
12134
12228
  promptcategorisemodal.$on(
12135
12229
  "updateModalSettings",
12136
12230
  /*updateModal*/
12137
- ctx[47]
12231
+ ctx[52]
12138
12232
  );
12139
12233
  promptcategorisemodal.$on(
12140
12234
  "resetCategory",
12141
12235
  /*saveCategory*/
12142
- ctx[40]
12236
+ ctx[45]
12237
+ );
12238
+ promptcategorisemodal.$on(
12239
+ "resetFeedback",
12240
+ /*resetFeedbackStatus*/
12241
+ ctx[35]
12143
12242
  );
12144
12243
  return {
12145
12244
  c() {
@@ -12217,7 +12316,7 @@
12217
12316
  button,
12218
12317
  "click",
12219
12318
  /*openResetModal*/
12220
- ctx[34]
12319
+ ctx[39]
12221
12320
  );
12222
12321
  mounted = true;
12223
12322
  }
@@ -12298,7 +12397,7 @@
12298
12397
  span = element("span");
12299
12398
  span.textContent = `${useRemoveRichTextHtmlTags(
12300
12399
  /*category*/
12301
- ctx[68].name
12400
+ ctx[76].name
12302
12401
  )}`;
12303
12402
  attr(span, "class", "sr-only");
12304
12403
  },
@@ -12318,11 +12417,11 @@
12318
12417
  let t0;
12319
12418
  let t1_value = (
12320
12419
  /*getTotalWordsLabel*/
12321
- ctx[36](
12420
+ ctx[41](
12322
12421
  /*totalCategoryWords*/
12323
12422
  ctx[6][
12324
12423
  /*category*/
12325
- ctx[68].id
12424
+ ctx[76].id
12326
12425
  ]
12327
12426
  ) + ""
12328
12427
  );
@@ -12345,11 +12444,11 @@
12345
12444
  p(ctx2, dirty) {
12346
12445
  if (dirty[0] & /*totalCategoryWords*/
12347
12446
  64 && t1_value !== (t1_value = /*getTotalWordsLabel*/
12348
- ctx2[36](
12447
+ ctx2[41](
12349
12448
  /*totalCategoryWords*/
12350
12449
  ctx2[6][
12351
12450
  /*category*/
12352
- ctx2[68].id
12451
+ ctx2[76].id
12353
12452
  ]
12354
12453
  ) + ""))
12355
12454
  set_data(t1, t1_value);
@@ -12474,9 +12573,9 @@
12474
12573
  let div0;
12475
12574
  let show_if_2 = (
12476
12575
  /*checkContainerDroppedItem*/
12477
- ctx[32](
12576
+ ctx[37](
12478
12577
  /*category*/
12479
- ctx[68].id,
12578
+ ctx[76].id,
12480
12579
  /*dropContainerId*/
12481
12580
  ctx[13]
12482
12581
  )
@@ -12488,9 +12587,9 @@
12488
12587
  let t5;
12489
12588
  let show_if_1 = (
12490
12589
  /*checkContainerDroppedItem*/
12491
- ctx[32](
12590
+ ctx[37](
12492
12591
  /*category*/
12493
- ctx[68].id,
12592
+ ctx[76].id,
12494
12593
  /*dropContainerId*/
12495
12594
  ctx[13]
12496
12595
  ) && /*enableAriaLive*/
@@ -12503,9 +12602,9 @@
12503
12602
  let span1;
12504
12603
  let t9_value = (
12505
12604
  /*getTotalWords*/
12506
- ctx[35](
12605
+ ctx[40](
12507
12606
  /*category*/
12508
- ctx[68].id,
12607
+ ctx[76].id,
12509
12608
  /*currentAnswer*/
12510
12609
  ctx[4]
12511
12610
  ) + ""
@@ -12527,7 +12626,7 @@
12527
12626
  let div1_class_value;
12528
12627
  let category = (
12529
12628
  /*category*/
12530
- ctx[68]
12629
+ ctx[76]
12531
12630
  );
12532
12631
  let current;
12533
12632
  let mounted;
@@ -12537,9 +12636,9 @@
12537
12636
  props: {
12538
12637
  ariaHidden: (
12539
12638
  /*checkContainerDroppedItem*/
12540
- ctx[32](
12639
+ ctx[37](
12541
12640
  /*category*/
12542
- ctx[68].id,
12641
+ ctx[76].id,
12543
12642
  /*dropContainerId*/
12544
12643
  ctx[13]
12545
12644
  ) && /*enableAriaLive*/
@@ -12547,7 +12646,7 @@
12547
12646
  ),
12548
12647
  htmlString: (
12549
12648
  /*category*/
12550
- ctx[68].name
12649
+ ctx[76].name
12551
12650
  ),
12552
12651
  otherClass: "text-base leading-5 !text-gray-900 md:item-heading"
12553
12652
  }
@@ -12567,9 +12666,9 @@
12567
12666
  show_if = null;
12568
12667
  if (show_if == null)
12569
12668
  show_if = !!/*checkifCategoryContainerOpen*/
12570
- ctx2[37](
12669
+ ctx2[42](
12571
12670
  /*category*/
12572
- ctx2[68].id,
12671
+ ctx2[76].id,
12573
12672
  /*openCategoryContainer*/
12574
12673
  ctx2[19]
12575
12674
  );
@@ -12580,73 +12679,73 @@
12580
12679
  current_block_type_index = select_block_type(ctx, [-1, -1, -1]);
12581
12680
  if_block4 = if_blocks[current_block_type_index] = if_block_creators[current_block_type_index](ctx);
12582
12681
  function div0_elementresize_handler() {
12583
- ctx[50].call(
12682
+ ctx[55].call(
12584
12683
  div0,
12585
12684
  /*category*/
12586
- ctx[68]
12685
+ ctx[76]
12587
12686
  );
12588
12687
  }
12589
12688
  promptcategorisedndcontainer = new PromptCategoriseDndContainer_default({
12590
12689
  props: {
12591
12690
  containerClass: "content-start !outline-none rounded-lg grow w-full md:p-4\n " + /*checkContainerDragOver*/
12592
- (ctx[31](
12691
+ (ctx[36](
12593
12692
  /*category*/
12594
- ctx[68].id,
12693
+ ctx[76].id,
12595
12694
  /*considerContainerId*/
12596
12695
  ctx[11],
12597
12696
  /*isDraggingOver*/
12598
12697
  ctx[12]
12599
12698
  ) ? "bg-violet-100" : "") + "\n " + /*checkifCategoryContainerOpen*/
12600
- (ctx[37](
12699
+ (ctx[42](
12601
12700
  /*category*/
12602
- ctx[68].id,
12701
+ ctx[76].id,
12603
12702
  /*openCategoryContainer*/
12604
12703
  ctx[19]
12605
12704
  ) ? "h-full p-3 min-h-[86px] md:min-h-0" : ""),
12606
12705
  paddingTop: (
12607
12706
  /*checkifCategoryContainerOpen*/
12608
- ctx[37](
12707
+ ctx[42](
12609
12708
  /*category*/
12610
- ctx[68].id,
12709
+ ctx[76].id,
12611
12710
  /*openCategoryContainer*/
12612
12711
  ctx[19]
12613
12712
  ) || !useIsSmallScreen() ? (
12614
12713
  /*categoryTitleHeight*/
12615
12714
  ctx[24][
12616
12715
  /*category*/
12617
- ctx[68].id
12716
+ ctx[76].id
12618
12717
  ] + 16
12619
12718
  ) : (
12620
12719
  /*categoryTitleHeight*/
12621
12720
  ctx[24][
12622
12721
  /*category*/
12623
- ctx[68].id
12722
+ ctx[76].id
12624
12723
  ]
12625
12724
  )
12626
12725
  ),
12627
12726
  containerId: (
12628
12727
  /*category*/
12629
- ctx[68].id
12728
+ ctx[76].id
12630
12729
  ),
12631
12730
  showButton: (
12632
12731
  /*checkifCategoryContainerOpen*/
12633
- ctx[37](
12732
+ ctx[42](
12634
12733
  /*category*/
12635
- ctx[68].id,
12734
+ ctx[76].id,
12636
12735
  /*openCategoryContainer*/
12637
12736
  ctx[19]
12638
12737
  )
12639
12738
  ),
12640
12739
  ariaLabel: `Category ${/*index*/
12641
- ctx[70] + 1}: ${/*category*/
12642
- ctx[68].name}`,
12740
+ ctx[78] + 1}: ${/*category*/
12741
+ ctx[76].name}`,
12643
12742
  isFinished: (
12644
12743
  /*isFinished*/
12645
12744
  ctx[0]
12646
12745
  ),
12647
12746
  correctAnswerList: (
12648
12747
  /*scoringMetadata*/
12649
- ctx[27]
12748
+ ctx[31]
12650
12749
  ),
12651
12750
  isPreviewModeInteractive: (
12652
12751
  /*isPreviewModeInteractive*/
@@ -12658,7 +12757,7 @@
12658
12757
  ),
12659
12758
  type: (
12660
12759
  /*categoryDndType*/
12661
- ctx[25]
12760
+ ctx[29]
12662
12761
  ),
12663
12762
  isDataSaving: (
12664
12763
  /*isDataSaving*/
@@ -12669,30 +12768,30 @@
12669
12768
  promptcategorisedndcontainer.$on(
12670
12769
  "updateCategorySettings",
12671
12770
  /*updateCategory*/
12672
- ctx[41]
12771
+ ctx[46]
12673
12772
  );
12674
12773
  promptcategorisedndcontainer.$on(
12675
12774
  "saveCategory",
12676
12775
  /*saveCategory*/
12677
- ctx[40]
12776
+ ctx[45]
12678
12777
  );
12679
12778
  function keydown_handler(...args) {
12680
12779
  return (
12681
12780
  /*keydown_handler*/
12682
- ctx[51](
12781
+ ctx[56](
12683
12782
  /*category*/
12684
- ctx[68],
12783
+ ctx[76],
12685
12784
  ...args
12686
12785
  )
12687
12786
  );
12688
12787
  }
12689
12788
  const assign_div1 = () => (
12690
12789
  /*div1_binding*/
12691
- ctx[53](div1, category)
12790
+ ctx[58](div1, category)
12692
12791
  );
12693
12792
  const unassign_div1 = () => (
12694
12793
  /*div1_binding*/
12695
- ctx[53](null, category)
12794
+ ctx[58](null, category)
12696
12795
  );
12697
12796
  return {
12698
12797
  c() {
@@ -12703,7 +12802,7 @@
12703
12802
  t0 = space();
12704
12803
  span0 = element("span");
12705
12804
  span0.textContent = `Category ${/*index*/
12706
- ctx[70] + 1}:\xA0`;
12805
+ ctx[78] + 1}:\xA0`;
12707
12806
  t4 = space();
12708
12807
  create_component(commonstringtohtml.$$.fragment);
12709
12808
  t5 = space();
@@ -12729,59 +12828,59 @@
12729
12828
  attr(span1, "class", "mx-0.5");
12730
12829
  attr(span2, "class", "w-4 h-4 text-inherit flex items-center justify-center");
12731
12830
  attr(button, "aria-label", button_aria_label_value = /*getTotalWords*/
12732
- ctx[35](
12831
+ ctx[40](
12733
12832
  /*category*/
12734
- ctx[68].id,
12833
+ ctx[76].id,
12735
12834
  /*currentAnswer*/
12736
12835
  ctx[4]
12737
12836
  ));
12738
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");
12739
12838
  attr(div0, "id", div0_id_value = `category-title${/*index*/
12740
- ctx[70]}`);
12839
+ ctx[78]}`);
12741
12840
  attr(div0, "aria-live", div0_aria_live_value = /*checkContainerDroppedItem*/
12742
- ctx[32](
12841
+ ctx[37](
12743
12842
  /*category*/
12744
- ctx[68].id,
12843
+ ctx[76].id,
12745
12844
  /*dropContainerId*/
12746
12845
  ctx[13]
12747
12846
  ) && /*enableAriaLive*/
12748
12847
  ctx[23] ? "polite" : "off");
12749
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*/
12750
- (ctx[32](
12849
+ (ctx[37](
12751
12850
  /*category*/
12752
- ctx[68].id,
12851
+ ctx[76].id,
12753
12852
  /*dropContainerId*/
12754
12853
  ctx[13]
12755
12854
  ) ? "bg-tranparent" : "bg-white") + " " + (!/*checkifCategoryContainerOpen*/
12756
- ctx[37](
12855
+ ctx[42](
12757
12856
  /*category*/
12758
- ctx[68].id,
12857
+ ctx[76].id,
12759
12858
  /*openCategoryContainer*/
12760
12859
  ctx[19]
12761
12860
  ) && /*checkContainerDragOver*/
12762
- ctx[31](
12861
+ ctx[36](
12763
12862
  /*category*/
12764
- ctx[68].id,
12863
+ ctx[76].id,
12765
12864
  /*considerContainerId*/
12766
12865
  ctx[11],
12767
12866
  /*isDraggingOver*/
12768
12867
  ctx[12]
12769
12868
  ) ? "!bg-violet-100 md:!bg-white" : "") + " " + /*checkifCategoryContainerOpen*/
12770
- (ctx[37](
12869
+ (ctx[42](
12771
12870
  /*category*/
12772
- ctx[68].id,
12871
+ ctx[76].id,
12773
12872
  /*openCategoryContainer*/
12774
12873
  ctx[19]
12775
12874
  ) ? "" : "rounded-b-lg md:rounded-b-none") + " " + (!/*checkifCategoryContainerOpen*/
12776
- ctx[37](
12875
+ ctx[42](
12777
12876
  /*category*/
12778
- ctx[68].id,
12877
+ ctx[76].id,
12779
12878
  /*openCategoryContainer*/
12780
12879
  ctx[19]
12781
12880
  ) && /*checkSelectedSourceContainer*/
12782
- ctx[33](
12881
+ ctx[38](
12783
12882
  /*category*/
12784
- ctx[68].id,
12883
+ ctx[76].id,
12785
12884
  /*sourceSelectedContainerId*/
12786
12885
  ctx[15],
12787
12886
  /*currentSelectedItemId*/
@@ -12802,38 +12901,38 @@
12802
12901
  );
12803
12902
  attr(div1, "role", "group");
12804
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*/
12805
- (ctx[31](
12904
+ (ctx[36](
12806
12905
  /*category*/
12807
- ctx[68].id,
12906
+ ctx[76].id,
12808
12907
  /*considerContainerId*/
12809
12908
  ctx[11],
12810
12909
  /*isDraggingOver*/
12811
12910
  ctx[12]
12812
12911
  ) ? "raw-focus-ring" : "") + " " + /*checkContainerDroppedItem*/
12813
- (ctx[32](
12912
+ (ctx[37](
12814
12913
  /*category*/
12815
- ctx[68].id,
12914
+ ctx[76].id,
12816
12915
  /*dropContainerId*/
12817
12916
  ctx[13]
12818
12917
  ) ? "bg-violet-150" : "") + " " + /*checkContainerDroppedItem*/
12819
- (ctx[32](
12918
+ (ctx[37](
12820
12919
  /*category*/
12821
- ctx[68].id,
12920
+ ctx[76].id,
12822
12921
  /*dropContainerId*/
12823
12922
  ctx[13]
12824
12923
  ) && /*hasAddItemAnimation*/
12825
12924
  ctx[17] ? "transition bg-white duration-300" : "") + " " + /*checkSelectedSourceContainer*/
12826
- (ctx[33](
12925
+ (ctx[38](
12827
12926
  /*category*/
12828
- ctx[68].id,
12927
+ ctx[76].id,
12829
12928
  /*sourceSelectedContainerId*/
12830
12929
  ctx[15],
12831
12930
  /*currentSelectedItemId*/
12832
12931
  ctx[14]
12833
12932
  ) ? "hover:bg-violet-100 hover-focus-ring cursor-pointer" : "") + " " + /*checkifCategoryContainerOpen*/
12834
- (ctx[37](
12933
+ (ctx[42](
12835
12934
  /*category*/
12836
- ctx[68].id,
12935
+ ctx[76].id,
12837
12936
  /*openCategoryContainer*/
12838
12937
  ctx[19]
12839
12938
  ) ? "min-h-[140px]" : ""));
@@ -12874,16 +12973,16 @@
12874
12973
  listen(button, "click", function() {
12875
12974
  if (is_function(
12876
12975
  /*addCategoryContainer*/
12877
- ctx[38](
12976
+ ctx[43](
12878
12977
  /*category*/
12879
- ctx[68].id,
12978
+ ctx[76].id,
12880
12979
  /*openCategoryContainer*/
12881
12980
  ctx[19]
12882
12981
  )
12883
12982
  ))
12884
- ctx[38](
12983
+ ctx[43](
12885
12984
  /*category*/
12886
- ctx[68].id,
12985
+ ctx[76].id,
12887
12986
  /*openCategoryContainer*/
12888
12987
  ctx[19]
12889
12988
  ).apply(this, arguments);
@@ -12893,13 +12992,13 @@
12893
12992
  div1,
12894
12993
  "focus",
12895
12994
  /*resetTabCategory*/
12896
- ctx[43]
12995
+ ctx[48]
12897
12996
  ),
12898
12997
  listen(
12899
12998
  div1,
12900
12999
  "blur",
12901
13000
  /*blur_handler*/
12902
- ctx[52]
13001
+ ctx[57]
12903
13002
  )
12904
13003
  ];
12905
13004
  mounted = true;
@@ -12910,9 +13009,9 @@
12910
13009
  if (dirty[0] & /*dropContainerId*/
12911
13010
  8192)
12912
13011
  show_if_2 = /*checkContainerDroppedItem*/
12913
- ctx[32](
13012
+ ctx[37](
12914
13013
  /*category*/
12915
- ctx[68].id,
13014
+ ctx[76].id,
12916
13015
  /*dropContainerId*/
12917
13016
  ctx[13]
12918
13017
  );
@@ -12932,9 +13031,9 @@
12932
13031
  if (dirty[0] & /*dropContainerId, enableAriaLive*/
12933
13032
  8396800)
12934
13033
  commonstringtohtml_changes.ariaHidden = /*checkContainerDroppedItem*/
12935
- ctx[32](
13034
+ ctx[37](
12936
13035
  /*category*/
12937
- ctx[68].id,
13036
+ ctx[76].id,
12938
13037
  /*dropContainerId*/
12939
13038
  ctx[13]
12940
13039
  ) && /*enableAriaLive*/
@@ -12943,9 +13042,9 @@
12943
13042
  if (dirty[0] & /*dropContainerId, enableAriaLive*/
12944
13043
  8396800)
12945
13044
  show_if_1 = /*checkContainerDroppedItem*/
12946
- ctx[32](
13045
+ ctx[37](
12947
13046
  /*category*/
12948
- ctx[68].id,
13047
+ ctx[76].id,
12949
13048
  /*dropContainerId*/
12950
13049
  ctx[13]
12951
13050
  ) && /*enableAriaLive*/
@@ -12992,9 +13091,9 @@
12992
13091
  }
12993
13092
  if ((!current || dirty[0] & /*currentAnswer*/
12994
13093
  16) && t9_value !== (t9_value = /*getTotalWords*/
12995
- ctx[35](
13094
+ ctx[40](
12996
13095
  /*category*/
12997
- ctx[68].id,
13096
+ ctx[76].id,
12998
13097
  /*currentAnswer*/
12999
13098
  ctx[4]
13000
13099
  ) + ""))
@@ -13018,9 +13117,9 @@
13018
13117
  }
13019
13118
  if (!current || dirty[0] & /*currentAnswer*/
13020
13119
  16 && button_aria_label_value !== (button_aria_label_value = /*getTotalWords*/
13021
- ctx[35](
13120
+ ctx[40](
13022
13121
  /*category*/
13023
- ctx[68].id,
13122
+ ctx[76].id,
13024
13123
  /*currentAnswer*/
13025
13124
  ctx[4]
13026
13125
  ))) {
@@ -13028,9 +13127,9 @@
13028
13127
  }
13029
13128
  if (!current || dirty[0] & /*dropContainerId, enableAriaLive*/
13030
13129
  8396800 && div0_aria_live_value !== (div0_aria_live_value = /*checkContainerDroppedItem*/
13031
- ctx[32](
13130
+ ctx[37](
13032
13131
  /*category*/
13033
- ctx[68].id,
13132
+ ctx[76].id,
13034
13133
  /*dropContainerId*/
13035
13134
  ctx[13]
13036
13135
  ) && /*enableAriaLive*/
@@ -13039,41 +13138,41 @@
13039
13138
  }
13040
13139
  if (!current || dirty[0] & /*dropContainerId, openCategoryContainer, considerContainerId, isDraggingOver, sourceSelectedContainerId, currentSelectedItemId*/
13041
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*/
13042
- (ctx[32](
13141
+ (ctx[37](
13043
13142
  /*category*/
13044
- ctx[68].id,
13143
+ ctx[76].id,
13045
13144
  /*dropContainerId*/
13046
13145
  ctx[13]
13047
13146
  ) ? "bg-tranparent" : "bg-white") + " " + (!/*checkifCategoryContainerOpen*/
13048
- ctx[37](
13147
+ ctx[42](
13049
13148
  /*category*/
13050
- ctx[68].id,
13149
+ ctx[76].id,
13051
13150
  /*openCategoryContainer*/
13052
13151
  ctx[19]
13053
13152
  ) && /*checkContainerDragOver*/
13054
- ctx[31](
13153
+ ctx[36](
13055
13154
  /*category*/
13056
- ctx[68].id,
13155
+ ctx[76].id,
13057
13156
  /*considerContainerId*/
13058
13157
  ctx[11],
13059
13158
  /*isDraggingOver*/
13060
13159
  ctx[12]
13061
13160
  ) ? "!bg-violet-100 md:!bg-white" : "") + " " + /*checkifCategoryContainerOpen*/
13062
- (ctx[37](
13161
+ (ctx[42](
13063
13162
  /*category*/
13064
- ctx[68].id,
13163
+ ctx[76].id,
13065
13164
  /*openCategoryContainer*/
13066
13165
  ctx[19]
13067
13166
  ) ? "" : "rounded-b-lg md:rounded-b-none") + " " + (!/*checkifCategoryContainerOpen*/
13068
- ctx[37](
13167
+ ctx[42](
13069
13168
  /*category*/
13070
- ctx[68].id,
13169
+ ctx[76].id,
13071
13170
  /*openCategoryContainer*/
13072
13171
  ctx[19]
13073
13172
  ) && /*checkSelectedSourceContainer*/
13074
- ctx[33](
13173
+ ctx[38](
13075
13174
  /*category*/
13076
- ctx[68].id,
13175
+ ctx[76].id,
13077
13176
  /*sourceSelectedContainerId*/
13078
13177
  ctx[15],
13079
13178
  /*currentSelectedItemId*/
@@ -13085,47 +13184,47 @@
13085
13184
  if (dirty[0] & /*considerContainerId, isDraggingOver, openCategoryContainer*/
13086
13185
  530432)
13087
13186
  promptcategorisedndcontainer_changes.containerClass = "content-start !outline-none rounded-lg grow w-full md:p-4\n " + /*checkContainerDragOver*/
13088
- (ctx[31](
13187
+ (ctx[36](
13089
13188
  /*category*/
13090
- ctx[68].id,
13189
+ ctx[76].id,
13091
13190
  /*considerContainerId*/
13092
13191
  ctx[11],
13093
13192
  /*isDraggingOver*/
13094
13193
  ctx[12]
13095
13194
  ) ? "bg-violet-100" : "") + "\n " + /*checkifCategoryContainerOpen*/
13096
- (ctx[37](
13195
+ (ctx[42](
13097
13196
  /*category*/
13098
- ctx[68].id,
13197
+ ctx[76].id,
13099
13198
  /*openCategoryContainer*/
13100
13199
  ctx[19]
13101
13200
  ) ? "h-full p-3 min-h-[86px] md:min-h-0" : "");
13102
13201
  if (dirty[0] & /*openCategoryContainer, categoryTitleHeight*/
13103
13202
  17301504)
13104
13203
  promptcategorisedndcontainer_changes.paddingTop = /*checkifCategoryContainerOpen*/
13105
- ctx[37](
13204
+ ctx[42](
13106
13205
  /*category*/
13107
- ctx[68].id,
13206
+ ctx[76].id,
13108
13207
  /*openCategoryContainer*/
13109
13208
  ctx[19]
13110
13209
  ) || !useIsSmallScreen() ? (
13111
13210
  /*categoryTitleHeight*/
13112
13211
  ctx[24][
13113
13212
  /*category*/
13114
- ctx[68].id
13213
+ ctx[76].id
13115
13214
  ] + 16
13116
13215
  ) : (
13117
13216
  /*categoryTitleHeight*/
13118
13217
  ctx[24][
13119
13218
  /*category*/
13120
- ctx[68].id
13219
+ ctx[76].id
13121
13220
  ]
13122
13221
  );
13123
13222
  if (dirty[0] & /*openCategoryContainer*/
13124
13223
  524288)
13125
13224
  promptcategorisedndcontainer_changes.showButton = /*checkifCategoryContainerOpen*/
13126
- ctx[37](
13225
+ ctx[42](
13127
13226
  /*category*/
13128
- ctx[68].id,
13227
+ ctx[76].id,
13129
13228
  /*openCategoryContainer*/
13130
13229
  ctx[19]
13131
13230
  );
@@ -13166,48 +13265,48 @@
13166
13265
  }
13167
13266
  if (!current || dirty[0] & /*considerContainerId, isDraggingOver, dropContainerId, hasAddItemAnimation, sourceSelectedContainerId, currentSelectedItemId, openCategoryContainer*/
13168
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*/
13169
- (ctx[31](
13268
+ (ctx[36](
13170
13269
  /*category*/
13171
- ctx[68].id,
13270
+ ctx[76].id,
13172
13271
  /*considerContainerId*/
13173
13272
  ctx[11],
13174
13273
  /*isDraggingOver*/
13175
13274
  ctx[12]
13176
13275
  ) ? "raw-focus-ring" : "") + " " + /*checkContainerDroppedItem*/
13177
- (ctx[32](
13276
+ (ctx[37](
13178
13277
  /*category*/
13179
- ctx[68].id,
13278
+ ctx[76].id,
13180
13279
  /*dropContainerId*/
13181
13280
  ctx[13]
13182
13281
  ) ? "bg-violet-150" : "") + " " + /*checkContainerDroppedItem*/
13183
- (ctx[32](
13282
+ (ctx[37](
13184
13283
  /*category*/
13185
- ctx[68].id,
13284
+ ctx[76].id,
13186
13285
  /*dropContainerId*/
13187
13286
  ctx[13]
13188
13287
  ) && /*hasAddItemAnimation*/
13189
13288
  ctx[17] ? "transition bg-white duration-300" : "") + " " + /*checkSelectedSourceContainer*/
13190
- (ctx[33](
13289
+ (ctx[38](
13191
13290
  /*category*/
13192
- ctx[68].id,
13291
+ ctx[76].id,
13193
13292
  /*sourceSelectedContainerId*/
13194
13293
  ctx[15],
13195
13294
  /*currentSelectedItemId*/
13196
13295
  ctx[14]
13197
13296
  ) ? "hover:bg-violet-100 hover-focus-ring cursor-pointer" : "") + " " + /*checkifCategoryContainerOpen*/
13198
- (ctx[37](
13297
+ (ctx[42](
13199
13298
  /*category*/
13200
- ctx[68].id,
13299
+ ctx[76].id,
13201
13300
  /*openCategoryContainer*/
13202
13301
  ctx[19]
13203
13302
  ) ? "min-h-[140px]" : ""))) {
13204
13303
  attr(div1, "class", div1_class_value);
13205
13304
  }
13206
13305
  if (category !== /*category*/
13207
- ctx[68]) {
13306
+ ctx[76]) {
13208
13307
  unassign_div1();
13209
13308
  category = /*category*/
13210
- ctx[68];
13309
+ ctx[76];
13211
13310
  assign_div1();
13212
13311
  }
13213
13312
  },
@@ -13286,63 +13385,69 @@
13286
13385
  };
13287
13386
  }
13288
13387
  function create_default_slot4(ctx) {
13388
+ let div0;
13389
+ let t0;
13289
13390
  let button0;
13290
13391
  let span0;
13291
- let t1;
13392
+ let t2;
13292
13393
  let span1;
13293
13394
  let arrowdowncircle;
13294
- let t2;
13295
13395
  let t3;
13296
- let div0;
13396
+ let t4;
13397
+ let div1;
13297
13398
  let p;
13298
- let t5;
13299
13399
  let t6;
13300
- let div1;
13301
13400
  let t7;
13302
- let div4;
13303
13401
  let div2;
13402
+ let t8;
13403
+ let div5;
13404
+ let div3;
13304
13405
  let show_if = (
13305
13406
  /*checkContainerDroppedItem*/
13306
- ctx[32](
13407
+ ctx[37](
13307
13408
  CONTAINER_WORD_BIN_ID,
13308
13409
  /*dropContainerId*/
13309
13410
  ctx[13]
13310
13411
  )
13311
13412
  );
13312
- let t8;
13413
+ let t9;
13313
13414
  let span2;
13314
- let t10;
13315
- let span3;
13316
13415
  let t11;
13416
+ let span3;
13317
13417
  let t12;
13318
13418
  let t13;
13319
13419
  let t14;
13320
13420
  let t15;
13321
- let div3;
13421
+ let t16;
13422
+ let div4;
13322
13423
  let button1;
13323
13424
  let span4;
13324
13425
  let smallchevronleft;
13325
13426
  let button1_class_value;
13326
13427
  let button1_disabled_value;
13327
- let t16;
13328
- let promptcategorisedndcontainer;
13329
13428
  let t17;
13429
+ let promptcategorisedndcontainer;
13430
+ let t18;
13330
13431
  let button2;
13331
13432
  let span5;
13332
13433
  let smallchevronright;
13333
13434
  let button2_class_value;
13334
13435
  let button2_disabled_value;
13335
- let div4_aria_live_value;
13336
- let div4_class_value;
13436
+ let div5_aria_live_value;
13437
+ let div5_class_value;
13337
13438
  let current;
13338
13439
  let mounted;
13339
13440
  let dispose;
13340
- arrowdowncircle = new ArrowDownCircle_default({});
13341
13441
  let if_block0 = (
13442
+ /*isFeedbackShown*/
13443
+ ctx[25] && create_if_block_84(ctx)
13444
+ );
13445
+ arrowdowncircle = new ArrowDownCircle_default({});
13446
+ let if_block1 = (
13342
13447
  /*isModalOpen*/
13343
13448
  ctx[18] && create_if_block_74(ctx)
13344
13449
  );
13345
- let if_block1 = (
13450
+ let if_block2 = (
13346
13451
  /*totalRemainingWordBinItem*/
13347
13452
  ctx[16] !== /*totalCategoryItems*/
13348
13453
  ctx[10] && !/*isFinished*/
@@ -13350,7 +13455,7 @@
13350
13455
  );
13351
13456
  let each_value = ensure_array_like(Object.values(
13352
13457
  /*categoryGroups*/
13353
- ctx[30]
13458
+ ctx[34]
13354
13459
  ));
13355
13460
  let each_blocks = [];
13356
13461
  for (let i = 0; i < each_value.length; i += 1) {
@@ -13359,19 +13464,19 @@
13359
13464
  const out = (i) => transition_out(each_blocks[i], 1, 1, () => {
13360
13465
  each_blocks[i] = null;
13361
13466
  });
13362
- let if_block2 = show_if && create_if_block9(ctx);
13467
+ let if_block3 = show_if && create_if_block9(ctx);
13363
13468
  smallchevronleft = new SmallChevronLeft_default({});
13364
13469
  promptcategorisedndcontainer = new PromptCategoriseDndContainer_default({
13365
13470
  props: {
13366
13471
  containerClass: "bg-transparent p-4 pt-[55px] grow md:grow-0 md:pt-20.5 justify-center md:justify-normal\n " + /*isWordBInTotalZero*/
13367
- (ctx[39](
13472
+ (ctx[44](
13368
13473
  /*totalRemainingWordBinItem*/
13369
13474
  ctx[16]
13370
13475
  ) && !/*currentSelectedItemId*/
13371
13476
  ctx[14] ? "absolute inset-0" : ""),
13372
13477
  items: (
13373
13478
  /*categoryItems*/
13374
- ctx[29]
13479
+ ctx[33]
13375
13480
  ),
13376
13481
  containerId: CONTAINER_WORD_BIN_ID,
13377
13482
  ariaLabel: "Word bin",
@@ -13381,7 +13486,7 @@
13381
13486
  ),
13382
13487
  correctAnswerList: (
13383
13488
  /*scoringMetadata*/
13384
- ctx[27]
13489
+ ctx[31]
13385
13490
  ),
13386
13491
  isPreviewModeInteractive: (
13387
13492
  /*isPreviewModeInteractive*/
@@ -13393,7 +13498,7 @@
13393
13498
  ),
13394
13499
  type: (
13395
13500
  /*categoryDndType*/
13396
- ctx[25]
13501
+ ctx[29]
13397
13502
  ),
13398
13503
  isDataSaving: (
13399
13504
  /*isDataSaving*/
@@ -13404,68 +13509,73 @@
13404
13509
  promptcategorisedndcontainer.$on(
13405
13510
  "updateCategorySettings",
13406
13511
  /*updateCategory*/
13407
- ctx[41]
13512
+ ctx[46]
13408
13513
  );
13409
13514
  promptcategorisedndcontainer.$on(
13410
13515
  "saveCategory",
13411
13516
  /*saveCategory*/
13412
- ctx[40]
13517
+ ctx[45]
13413
13518
  );
13414
13519
  smallchevronright = new SmallChevronRight_default({});
13415
13520
  return {
13416
13521
  c() {
13522
+ div0 = element("div");
13523
+ if (if_block0)
13524
+ if_block0.c();
13525
+ t0 = space();
13417
13526
  button0 = element("button");
13418
13527
  span0 = element("span");
13419
13528
  span0.textContent = "Skip to Word Bin";
13420
- t1 = space();
13529
+ t2 = space();
13421
13530
  span1 = element("span");
13422
13531
  create_component(arrowdowncircle.$$.fragment);
13423
- t2 = space();
13424
- if (if_block0)
13425
- if_block0.c();
13426
13532
  t3 = space();
13427
- div0 = element("div");
13428
- p = element("p");
13429
- p.textContent = "Categories";
13430
- t5 = space();
13431
13533
  if (if_block1)
13432
13534
  if_block1.c();
13433
- t6 = space();
13535
+ t4 = space();
13434
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");
13435
13544
  for (let i = 0; i < each_blocks.length; i += 1) {
13436
13545
  each_blocks[i].c();
13437
13546
  }
13438
- t7 = space();
13439
- div4 = element("div");
13440
- div2 = element("div");
13441
- if (if_block2)
13442
- if_block2.c();
13443
13547
  t8 = space();
13548
+ div5 = element("div");
13549
+ div3 = element("div");
13550
+ if (if_block3)
13551
+ if_block3.c();
13552
+ t9 = space();
13444
13553
  span2 = element("span");
13445
13554
  span2.textContent = "Word Bin\xA0";
13446
- t10 = space();
13555
+ t11 = space();
13447
13556
  span3 = element("span");
13448
- t11 = text(
13557
+ t12 = text(
13449
13558
  /*totalRemainingWordBinItem*/
13450
13559
  ctx[16]
13451
13560
  );
13452
- t12 = text(" out of ");
13453
- t13 = text(
13561
+ t13 = text(" out of ");
13562
+ t14 = text(
13454
13563
  /*totalCategoryItems*/
13455
13564
  ctx[10]
13456
13565
  );
13457
- t14 = text(" left");
13458
- t15 = space();
13459
- div3 = element("div");
13566
+ t15 = text(" left");
13567
+ t16 = space();
13568
+ div4 = element("div");
13460
13569
  button1 = element("button");
13461
13570
  span4 = element("span");
13462
13571
  create_component(smallchevronleft.$$.fragment);
13463
- t16 = space();
13464
- create_component(promptcategorisedndcontainer.$$.fragment);
13465
13572
  t17 = space();
13573
+ create_component(promptcategorisedndcontainer.$$.fragment);
13574
+ t18 = space();
13466
13575
  button2 = element("button");
13467
13576
  span5 = element("span");
13468
13577
  create_component(smallchevronright.$$.fragment);
13578
+ attr(div0, "aria-live", "polite");
13469
13579
  attr(span0, "class", "test-base font-semibold underline mr-1");
13470
13580
  attr(span1, "class", "text-inherit h-6 w-6 flex items-center justify-center");
13471
13581
  attr(
@@ -13477,21 +13587,21 @@
13477
13587
  attr(button0, "aria-label", "Skip to word bin");
13478
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");
13479
13589
  attr(p, "class", "text-base leading-5 !text-gray-900 font-semibold md:item-heading");
13480
- 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");
13481
13591
  attr(
13482
- div0,
13592
+ div1,
13483
13593
  "aria-hidden",
13484
13594
  /*isModalOpen*/
13485
13595
  ctx[18]
13486
13596
  );
13487
- 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");
13488
13598
  attr(span2, "class", "text-base leading-5 !text-gray-900 font-semibold md:mb-2 md:item-heading");
13489
13599
  attr(span3, "class", "text-base leading-5 !text-gray-900 md:item-heading");
13490
- 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");
13491
13601
  attr(span4, "class", "w-6 h-6 text-inherit flex items-center justify-center");
13492
13602
  attr(button1, "aria-label", "Left");
13493
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*/
13494
- (ctx[39](
13604
+ (ctx[44](
13495
13605
  /*totalRemainingWordBinItem*/
13496
13606
  ctx[16]
13497
13607
  ) ? "hidden" : ""));
@@ -13500,53 +13610,53 @@
13500
13610
  attr(span5, "class", "w-6 h-6 text-inherit flex items-center justify-center ml-[3px]");
13501
13611
  attr(button2, "aria-label", "Right");
13502
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*/
13503
- (ctx[39](
13613
+ (ctx[44](
13504
13614
  /*totalRemainingWordBinItem*/
13505
13615
  ctx[16]
13506
13616
  ) ? "hidden" : ""));
13507
13617
  button2.disabled = button2_disabled_value = /*currentWordBinIndex*/
13508
13618
  ctx[20] === /*totalRemainingWordBinItem*/
13509
13619
  ctx[16] - 1;
13510
- 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");
13511
13621
  attr(
13512
- div4,
13622
+ div5,
13513
13623
  "aria-hidden",
13514
13624
  /*isModalOpen*/
13515
13625
  ctx[18]
13516
13626
  );
13517
13627
  attr(
13518
- div4,
13628
+ div5,
13519
13629
  "tabindex",
13520
13630
  /*categoryTabIndex*/
13521
13631
  ctx[21]
13522
13632
  );
13523
- attr(div4, "aria-live", div4_aria_live_value = /*checkContainerDroppedItem*/
13524
- ctx[32](
13633
+ attr(div5, "aria-live", div5_aria_live_value = /*checkContainerDroppedItem*/
13634
+ ctx[37](
13525
13635
  CONTAINER_WORD_BIN_ID,
13526
13636
  /*dropContainerId*/
13527
13637
  ctx[13]
13528
13638
  ) ? "polite" : "off");
13529
- attr(div4, "role", "group");
13530
- 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*/
13531
- (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](
13532
13642
  CONTAINER_WORD_BIN_ID,
13533
13643
  /*considerContainerId*/
13534
13644
  ctx[11],
13535
13645
  /*isDraggingOver*/
13536
13646
  ctx[12]
13537
13647
  ) ? "raw-focus-ring bg-violet-100" : "") + " " + /*checkContainerDroppedItem*/
13538
- (ctx[32](
13648
+ (ctx[37](
13539
13649
  CONTAINER_WORD_BIN_ID,
13540
13650
  /*dropContainerId*/
13541
13651
  ctx[13]
13542
13652
  ) ? "bg-violet-150" : "") + " " + /*checkContainerDroppedItem*/
13543
- (ctx[32](
13653
+ (ctx[37](
13544
13654
  CONTAINER_WORD_BIN_ID,
13545
13655
  /*dropContainerId*/
13546
13656
  ctx[13]
13547
13657
  ) && /*hasAddItemAnimation*/
13548
13658
  ctx[17] ? "transition bg-white duration-300" : "") + " " + /*checkSelectedSourceContainer*/
13549
- (ctx[33](
13659
+ (ctx[38](
13550
13660
  CONTAINER_WORD_BIN_ID,
13551
13661
  /*sourceSelectedContainerId*/
13552
13662
  ctx[15],
@@ -13555,52 +13665,56 @@
13555
13665
  ) ? "hover:bg-violet-100 hover-focus-ring cursor-pointer" : ""));
13556
13666
  },
13557
13667
  m(target, anchor) {
13668
+ insert(target, div0, anchor);
13669
+ if (if_block0)
13670
+ if_block0.m(div0, null);
13671
+ insert(target, t0, anchor);
13558
13672
  insert(target, button0, anchor);
13559
13673
  append(button0, span0);
13560
- append(button0, t1);
13674
+ append(button0, t2);
13561
13675
  append(button0, span1);
13562
13676
  mount_component(arrowdowncircle, span1, null);
13563
- insert(target, t2, anchor);
13564
- if (if_block0)
13565
- if_block0.m(target, anchor);
13566
13677
  insert(target, t3, anchor);
13567
- insert(target, div0, anchor);
13568
- append(div0, p);
13569
- append(div0, t5);
13570
13678
  if (if_block1)
13571
- if_block1.m(div0, null);
13572
- insert(target, t6, anchor);
13679
+ if_block1.m(target, anchor);
13680
+ insert(target, t4, anchor);
13573
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);
13574
13688
  for (let i = 0; i < each_blocks.length; i += 1) {
13575
13689
  if (each_blocks[i]) {
13576
- each_blocks[i].m(div1, null);
13690
+ each_blocks[i].m(div2, null);
13577
13691
  }
13578
13692
  }
13579
- insert(target, t7, anchor);
13580
- insert(target, div4, anchor);
13581
- append(div4, div2);
13582
- if (if_block2)
13583
- if_block2.m(div2, null);
13584
- append(div2, t8);
13585
- append(div2, span2);
13586
- append(div2, t10);
13587
- append(div2, span3);
13588
- 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);
13589
13702
  append(span3, t12);
13590
13703
  append(span3, t13);
13591
13704
  append(span3, t14);
13592
- append(div4, t15);
13593
- append(div4, div3);
13594
- append(div3, button1);
13705
+ append(span3, t15);
13706
+ append(div5, t16);
13707
+ append(div5, div4);
13708
+ append(div4, button1);
13595
13709
  append(button1, span4);
13596
13710
  mount_component(smallchevronleft, span4, null);
13597
- append(div3, t16);
13598
- mount_component(promptcategorisedndcontainer, div3, null);
13599
- append(div3, t17);
13600
- append(div3, button2);
13711
+ append(div4, t17);
13712
+ mount_component(promptcategorisedndcontainer, div4, null);
13713
+ append(div4, t18);
13714
+ append(div4, button2);
13601
13715
  append(button2, span5);
13602
13716
  mount_component(smallchevronright, span5, null);
13603
- ctx[56](div4);
13717
+ ctx[61](div5);
13604
13718
  current = true;
13605
13719
  if (!mounted) {
13606
13720
  dispose = [
@@ -13608,12 +13722,12 @@
13608
13722
  button0,
13609
13723
  "keypress",
13610
13724
  /*goToWordBin*/
13611
- ctx[44]
13725
+ ctx[49]
13612
13726
  ),
13613
13727
  listen(button1, "click", function() {
13614
13728
  if (is_function(
13615
13729
  /*navigateCategoryItem*/
13616
- ctx[46](
13730
+ ctx[51](
13617
13731
  /*currentWordBinIndex*/
13618
13732
  ctx[20],
13619
13733
  /*currentAnswer*/
@@ -13621,7 +13735,7 @@
13621
13735
  "left"
13622
13736
  )
13623
13737
  ))
13624
- ctx[46](
13738
+ ctx[51](
13625
13739
  /*currentWordBinIndex*/
13626
13740
  ctx[20],
13627
13741
  /*currentAnswer*/
@@ -13632,7 +13746,7 @@
13632
13746
  listen(button2, "click", function() {
13633
13747
  if (is_function(
13634
13748
  /*navigateCategoryItem*/
13635
- ctx[46](
13749
+ ctx[51](
13636
13750
  /*currentWordBinIndex*/
13637
13751
  ctx[20],
13638
13752
  /*currentAnswer*/
@@ -13640,7 +13754,7 @@
13640
13754
  "right"
13641
13755
  )
13642
13756
  ))
13643
- ctx[46](
13757
+ ctx[51](
13644
13758
  /*currentWordBinIndex*/
13645
13759
  ctx[20],
13646
13760
  /*currentAnswer*/
@@ -13649,22 +13763,22 @@
13649
13763
  ).apply(this, arguments);
13650
13764
  }),
13651
13765
  listen(
13652
- div4,
13766
+ div5,
13653
13767
  "keydown",
13654
13768
  /*keydown_handler_1*/
13655
- ctx[54]
13769
+ ctx[59]
13656
13770
  ),
13657
13771
  listen(
13658
- div4,
13772
+ div5,
13659
13773
  "focus",
13660
13774
  /*resetTabCategory*/
13661
- ctx[43]
13775
+ ctx[48]
13662
13776
  ),
13663
13777
  listen(
13664
- div4,
13778
+ div5,
13665
13779
  "blur",
13666
13780
  /*blur_handler_1*/
13667
- ctx[55]
13781
+ ctx[60]
13668
13782
  )
13669
13783
  ];
13670
13784
  mounted = true;
@@ -13672,6 +13786,29 @@
13672
13786
  },
13673
13787
  p(new_ctx, dirty) {
13674
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
+ }
13675
13812
  if (!current || dirty[0] & /*categoryTabIndex*/
13676
13813
  2097152) {
13677
13814
  attr(
@@ -13685,22 +13822,22 @@
13685
13822
  /*isModalOpen*/
13686
13823
  ctx[18]
13687
13824
  ) {
13688
- if (if_block0) {
13689
- if_block0.p(ctx, dirty);
13825
+ if (if_block1) {
13826
+ if_block1.p(ctx, dirty);
13690
13827
  if (dirty[0] & /*isModalOpen*/
13691
13828
  262144) {
13692
- transition_in(if_block0, 1);
13829
+ transition_in(if_block1, 1);
13693
13830
  }
13694
13831
  } else {
13695
- if_block0 = create_if_block_74(ctx);
13696
- if_block0.c();
13697
- transition_in(if_block0, 1);
13698
- 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);
13699
13836
  }
13700
- } else if (if_block0) {
13837
+ } else if (if_block1) {
13701
13838
  group_outros();
13702
- transition_out(if_block0, 1, 1, () => {
13703
- if_block0 = null;
13839
+ transition_out(if_block1, 1, 1, () => {
13840
+ if_block1 = null;
13704
13841
  });
13705
13842
  check_outros();
13706
13843
  }
@@ -13710,40 +13847,40 @@
13710
13847
  ctx[10] && !/*isFinished*/
13711
13848
  ctx[0]
13712
13849
  ) {
13713
- if (if_block1) {
13714
- if_block1.p(ctx, dirty);
13850
+ if (if_block2) {
13851
+ if_block2.p(ctx, dirty);
13715
13852
  if (dirty[0] & /*totalRemainingWordBinItem, totalCategoryItems, isFinished*/
13716
13853
  66561) {
13717
- transition_in(if_block1, 1);
13854
+ transition_in(if_block2, 1);
13718
13855
  }
13719
13856
  } else {
13720
- if_block1 = create_if_block_64(ctx);
13721
- if_block1.c();
13722
- transition_in(if_block1, 1);
13723
- 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);
13724
13861
  }
13725
- } else if (if_block1) {
13862
+ } else if (if_block2) {
13726
13863
  group_outros();
13727
- transition_out(if_block1, 1, 1, () => {
13728
- if_block1 = null;
13864
+ transition_out(if_block2, 1, 1, () => {
13865
+ if_block2 = null;
13729
13866
  });
13730
13867
  check_outros();
13731
13868
  }
13732
13869
  if (!current || dirty[0] & /*isModalOpen*/
13733
13870
  262144) {
13734
13871
  attr(
13735
- div0,
13872
+ div1,
13736
13873
  "aria-hidden",
13737
13874
  /*isModalOpen*/
13738
13875
  ctx[18]
13739
13876
  );
13740
13877
  }
13741
- 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*/
13742
- 1273953015 | dirty[1] & /*checkContainerDragOver, checkContainerDroppedItem, checkSelectedSourceContainer, checkifCategoryContainerOpen, getContainerTabSelected, resetTabCategory, handleItemAriaHidden, updateCategory, saveCategory, getTotalWords, addCategoryContainer, getTotalWordsLabel*/
13743
- 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) {
13744
13881
  each_value = ensure_array_like(Object.values(
13745
13882
  /*categoryGroups*/
13746
- ctx[30]
13883
+ ctx[34]
13747
13884
  ));
13748
13885
  let i;
13749
13886
  for (i = 0; i < each_value.length; i += 1) {
@@ -13755,7 +13892,7 @@
13755
13892
  each_blocks[i] = create_each_block4(child_ctx);
13756
13893
  each_blocks[i].c();
13757
13894
  transition_in(each_blocks[i], 1);
13758
- each_blocks[i].m(div1, null);
13895
+ each_blocks[i].m(div2, null);
13759
13896
  }
13760
13897
  }
13761
13898
  group_outros();
@@ -13767,40 +13904,40 @@
13767
13904
  if (dirty[0] & /*dropContainerId*/
13768
13905
  8192)
13769
13906
  show_if = /*checkContainerDroppedItem*/
13770
- ctx[32](
13907
+ ctx[37](
13771
13908
  CONTAINER_WORD_BIN_ID,
13772
13909
  /*dropContainerId*/
13773
13910
  ctx[13]
13774
13911
  );
13775
13912
  if (show_if) {
13776
- if (if_block2) {
13777
- if_block2.p(ctx, dirty);
13913
+ if (if_block3) {
13914
+ if_block3.p(ctx, dirty);
13778
13915
  } else {
13779
- if_block2 = create_if_block9(ctx);
13780
- if_block2.c();
13781
- if_block2.m(div2, t8);
13916
+ if_block3 = create_if_block9(ctx);
13917
+ if_block3.c();
13918
+ if_block3.m(div3, t9);
13782
13919
  }
13783
- } else if (if_block2) {
13784
- if_block2.d(1);
13785
- if_block2 = null;
13920
+ } else if (if_block3) {
13921
+ if_block3.d(1);
13922
+ if_block3 = null;
13786
13923
  }
13787
13924
  if (!current || dirty[0] & /*totalRemainingWordBinItem*/
13788
13925
  65536)
13789
13926
  set_data(
13790
- t11,
13927
+ t12,
13791
13928
  /*totalRemainingWordBinItem*/
13792
13929
  ctx[16]
13793
13930
  );
13794
13931
  if (!current || dirty[0] & /*totalCategoryItems*/
13795
13932
  1024)
13796
13933
  set_data(
13797
- t13,
13934
+ t14,
13798
13935
  /*totalCategoryItems*/
13799
13936
  ctx[10]
13800
13937
  );
13801
13938
  if (!current || dirty[0] & /*totalRemainingWordBinItem*/
13802
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*/
13803
- (ctx[39](
13940
+ (ctx[44](
13804
13941
  /*totalRemainingWordBinItem*/
13805
13942
  ctx[16]
13806
13943
  ) ? "hidden" : ""))) {
@@ -13815,7 +13952,7 @@
13815
13952
  if (dirty[0] & /*totalRemainingWordBinItem, currentSelectedItemId*/
13816
13953
  81920)
13817
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*/
13818
- (ctx[39](
13955
+ (ctx[44](
13819
13956
  /*totalRemainingWordBinItem*/
13820
13957
  ctx[16]
13821
13958
  ) && !/*currentSelectedItemId*/
@@ -13839,7 +13976,7 @@
13839
13976
  promptcategorisedndcontainer.$set(promptcategorisedndcontainer_changes);
13840
13977
  if (!current || dirty[0] & /*totalRemainingWordBinItem*/
13841
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*/
13842
- (ctx[39](
13979
+ (ctx[44](
13843
13980
  /*totalRemainingWordBinItem*/
13844
13981
  ctx[16]
13845
13982
  ) ? "hidden" : ""))) {
@@ -13854,7 +13991,7 @@
13854
13991
  if (!current || dirty[0] & /*isModalOpen*/
13855
13992
  262144) {
13856
13993
  attr(
13857
- div4,
13994
+ div5,
13858
13995
  "aria-hidden",
13859
13996
  /*isModalOpen*/
13860
13997
  ctx[18]
@@ -13863,57 +14000,58 @@
13863
14000
  if (!current || dirty[0] & /*categoryTabIndex*/
13864
14001
  2097152) {
13865
14002
  attr(
13866
- div4,
14003
+ div5,
13867
14004
  "tabindex",
13868
14005
  /*categoryTabIndex*/
13869
14006
  ctx[21]
13870
14007
  );
13871
14008
  }
13872
14009
  if (!current || dirty[0] & /*dropContainerId*/
13873
- 8192 && div4_aria_live_value !== (div4_aria_live_value = /*checkContainerDroppedItem*/
13874
- ctx[32](
14010
+ 8192 && div5_aria_live_value !== (div5_aria_live_value = /*checkContainerDroppedItem*/
14011
+ ctx[37](
13875
14012
  CONTAINER_WORD_BIN_ID,
13876
14013
  /*dropContainerId*/
13877
14014
  ctx[13]
13878
14015
  ) ? "polite" : "off")) {
13879
- attr(div4, "aria-live", div4_aria_live_value);
14016
+ attr(div5, "aria-live", div5_aria_live_value);
13880
14017
  }
13881
14018
  if (!current || dirty[0] & /*considerContainerId, isDraggingOver, dropContainerId, hasAddItemAnimation, sourceSelectedContainerId, currentSelectedItemId*/
13882
- 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*/
13883
- (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](
13884
14021
  CONTAINER_WORD_BIN_ID,
13885
14022
  /*considerContainerId*/
13886
14023
  ctx[11],
13887
14024
  /*isDraggingOver*/
13888
14025
  ctx[12]
13889
14026
  ) ? "raw-focus-ring bg-violet-100" : "") + " " + /*checkContainerDroppedItem*/
13890
- (ctx[32](
14027
+ (ctx[37](
13891
14028
  CONTAINER_WORD_BIN_ID,
13892
14029
  /*dropContainerId*/
13893
14030
  ctx[13]
13894
14031
  ) ? "bg-violet-150" : "") + " " + /*checkContainerDroppedItem*/
13895
- (ctx[32](
14032
+ (ctx[37](
13896
14033
  CONTAINER_WORD_BIN_ID,
13897
14034
  /*dropContainerId*/
13898
14035
  ctx[13]
13899
14036
  ) && /*hasAddItemAnimation*/
13900
14037
  ctx[17] ? "transition bg-white duration-300" : "") + " " + /*checkSelectedSourceContainer*/
13901
- (ctx[33](
14038
+ (ctx[38](
13902
14039
  CONTAINER_WORD_BIN_ID,
13903
14040
  /*sourceSelectedContainerId*/
13904
14041
  ctx[15],
13905
14042
  /*currentSelectedItemId*/
13906
14043
  ctx[14]
13907
14044
  ) ? "hover:bg-violet-100 hover-focus-ring cursor-pointer" : ""))) {
13908
- attr(div4, "class", div4_class_value);
14045
+ attr(div5, "class", div5_class_value);
13909
14046
  }
13910
14047
  },
13911
14048
  i(local) {
13912
14049
  if (current)
13913
14050
  return;
13914
- transition_in(arrowdowncircle.$$.fragment, local);
13915
14051
  transition_in(if_block0);
14052
+ transition_in(arrowdowncircle.$$.fragment, local);
13916
14053
  transition_in(if_block1);
14054
+ transition_in(if_block2);
13917
14055
  for (let i = 0; i < each_value.length; i += 1) {
13918
14056
  transition_in(each_blocks[i]);
13919
14057
  }
@@ -13923,9 +14061,10 @@
13923
14061
  current = true;
13924
14062
  },
13925
14063
  o(local) {
13926
- transition_out(arrowdowncircle.$$.fragment, local);
13927
14064
  transition_out(if_block0);
14065
+ transition_out(arrowdowncircle.$$.fragment, local);
13928
14066
  transition_out(if_block1);
14067
+ transition_out(if_block2);
13929
14068
  each_blocks = each_blocks.filter(Boolean);
13930
14069
  for (let i = 0; i < each_blocks.length; i += 1) {
13931
14070
  transition_out(each_blocks[i]);
@@ -13937,27 +14076,31 @@
13937
14076
  },
13938
14077
  d(detaching) {
13939
14078
  if (detaching) {
14079
+ detach(div0);
14080
+ detach(t0);
13940
14081
  detach(button0);
13941
- detach(t2);
13942
14082
  detach(t3);
13943
- detach(div0);
13944
- detach(t6);
14083
+ detach(t4);
13945
14084
  detach(div1);
13946
14085
  detach(t7);
13947
- detach(div4);
14086
+ detach(div2);
14087
+ detach(t8);
14088
+ detach(div5);
13948
14089
  }
13949
- destroy_component(arrowdowncircle);
13950
14090
  if (if_block0)
13951
- if_block0.d(detaching);
14091
+ if_block0.d();
14092
+ destroy_component(arrowdowncircle);
13952
14093
  if (if_block1)
13953
- if_block1.d();
13954
- destroy_each(each_blocks, detaching);
14094
+ if_block1.d(detaching);
13955
14095
  if (if_block2)
13956
14096
  if_block2.d();
14097
+ destroy_each(each_blocks, detaching);
14098
+ if (if_block3)
14099
+ if_block3.d();
13957
14100
  destroy_component(smallchevronleft);
13958
14101
  destroy_component(promptcategorisedndcontainer);
13959
14102
  destroy_component(smallchevronright);
13960
- ctx[56](null);
14103
+ ctx[61](null);
13961
14104
  mounted = false;
13962
14105
  run_all(dispose);
13963
14106
  }
@@ -13971,11 +14114,11 @@
13971
14114
  props: {
13972
14115
  rubric: (
13973
14116
  /*rubric*/
13974
- ctx[26].text
14117
+ ctx[30].text
13975
14118
  ),
13976
14119
  prompt: (
13977
14120
  /*prompt*/
13978
- ctx[28]
14121
+ ctx[32]
13979
14122
  ),
13980
14123
  interactionType: INTERACTION_TYPE_CATEGORISE,
13981
14124
  $$slots: { default: [create_default_slot4] },
@@ -13991,14 +14134,14 @@
13991
14134
  m(target, anchor) {
13992
14135
  insert(target, div, anchor);
13993
14136
  mount_component(promptbody, div, null);
13994
- ctx[57](div);
14137
+ ctx[62](div);
13995
14138
  current = true;
13996
14139
  },
13997
14140
  p(ctx2, dirty) {
13998
14141
  const promptbody_changes = {};
13999
- 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*/
14000
- 33554423 | dirty[2] & /*$$scope*/
14001
- 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) {
14002
14145
  promptbody_changes.$$scope = { dirty, ctx: ctx2 };
14003
14146
  }
14004
14147
  promptbody.$set(promptbody_changes);
@@ -14018,7 +14161,7 @@
14018
14161
  detach(div);
14019
14162
  }
14020
14163
  destroy_component(promptbody);
14021
- ctx[57](null);
14164
+ ctx[62](null);
14022
14165
  }
14023
14166
  };
14024
14167
  }
@@ -14078,7 +14221,7 @@
14078
14221
  isOpenLastStatus: false
14079
14222
  };
14080
14223
  const { rubric, interaction, metadata, scoringMetadata } = sessionData;
14081
- const { prompt, category_groups: interactionCategoryGroups, category_items: interactionCategoryItems } = interaction;
14224
+ const { prompt, category_groups: interactionCategoryGroups, category_items: interactionCategoryItems, feedback } = interaction;
14082
14225
  const categoryItems = useFilterUniqueObject(interactionCategoryItems);
14083
14226
  const categoryGroups = useFilterUniqueObject(interactionCategoryGroups);
14084
14227
  const tabCategory = [];
@@ -14126,6 +14269,53 @@
14126
14269
  const updateModalSettings = (newSettings) => {
14127
14270
  $$invalidate(8, modalSettingsData = { ...modalSettingsData, ...newSettings });
14128
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 : true);
14307
+ }
14308
+ };
14309
+ const resetFeedbackStatus = () => {
14310
+ $$invalidate(25, isFeedbackShown = false);
14311
+ allItemsPlacedTrigger = false;
14312
+ setTimeout(
14313
+ () => {
14314
+ checkFeedbackStatus();
14315
+ },
14316
+ 50
14317
+ );
14318
+ };
14129
14319
  if (isFinished) {
14130
14320
  const showOpenContainerList = [];
14131
14321
  const { answerList } = scoringMetadata;
@@ -14142,12 +14332,18 @@
14142
14332
  const correctItems = itemId.filter((item) => categoryAnswerList.includes(item));
14143
14333
  const incorrectItems = itemId.filter((item) => !categoryAnswerList.includes(item));
14144
14334
  missedItems = categoryAnswerList.filter((item) => !itemId.includes(item));
14145
- correctItems?.map((item) => items.push(`${item}${EAT_DASH}${ANSWER_CORRECT}`));
14146
- 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
+ });
14147
14341
  } else {
14148
14342
  missedItems = categoryAnswerList;
14149
14343
  }
14150
- 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
+ });
14151
14347
  return { categoryId, itemId: items };
14152
14348
  });
14153
14349
  const wordBinIndex = initialCategoryAnswer.findIndex((answer) => answer.categoryId === CONTAINER_WORD_BIN_ID);
@@ -14160,6 +14356,8 @@
14160
14356
  updateCategoriseSettings({
14161
14357
  openCategoryContainer: showOpenContainerList
14162
14358
  });
14359
+ if (!isPreviewModeInteractive)
14360
+ checkFeedbackStatus();
14163
14361
  }
14164
14362
  updateCategoriseSettings({
14165
14363
  currentAnswer: initialCategoryAnswer,
@@ -14279,7 +14477,7 @@
14279
14477
  }
14280
14478
  const keydown_handler_1 = ({ key }) => getContainerTabSelected(key, CONTAINER_WORD_BIN_ID);
14281
14479
  const blur_handler_1 = () => handleItemAriaHidden(false);
14282
- function div4_binding($$value) {
14480
+ function div5_binding($$value) {
14283
14481
  binding_callbacks[$$value ? "unshift" : "push"](() => {
14284
14482
  tabCategory[CONTAINER_WORD_BIN_ID] = $$value;
14285
14483
  $$invalidate(9, tabCategory);
@@ -14293,11 +14491,11 @@
14293
14491
  }
14294
14492
  $$self.$$set = ($$props2) => {
14295
14493
  if ("sessionData" in $$props2)
14296
- $$invalidate(48, sessionData = $$props2.sessionData);
14494
+ $$invalidate(53, sessionData = $$props2.sessionData);
14297
14495
  if ("isFinished" in $$props2)
14298
14496
  $$invalidate(0, isFinished = $$props2.isFinished);
14299
14497
  if ("isPreviewMode" in $$props2)
14300
- $$invalidate(49, isPreviewMode = $$props2.isPreviewMode);
14498
+ $$invalidate(54, isPreviewMode = $$props2.isPreviewMode);
14301
14499
  if ("isPreviewModeInteractive" in $$props2)
14302
14500
  $$invalidate(1, isPreviewModeInteractive = $$props2.isPreviewModeInteractive);
14303
14501
  if ("isDataSaving" in $$props2)
@@ -14361,6 +14559,7 @@
14361
14559
  150
14362
14560
  );
14363
14561
  }
14562
+ checkFeedbackStatus();
14364
14563
  if (previewResultSr) {
14365
14564
  setTimeout(
14366
14565
  () => {
@@ -14410,12 +14609,17 @@
14410
14609
  selectedItemName,
14411
14610
  enableAriaLive,
14412
14611
  categoryTitleHeight,
14612
+ isFeedbackShown,
14613
+ allAnswersCorrect,
14614
+ isItemSkipped,
14615
+ resultFeedback,
14413
14616
  categoryDndType,
14414
14617
  rubric,
14415
14618
  scoringMetadata,
14416
14619
  prompt,
14417
14620
  categoryItems,
14418
14621
  categoryGroups,
14622
+ resetFeedbackStatus,
14419
14623
  checkContainerDragOver,
14420
14624
  checkContainerDroppedItem,
14421
14625
  checkSelectedSourceContainer,
@@ -14441,7 +14645,7 @@
14441
14645
  div1_binding,
14442
14646
  keydown_handler_1,
14443
14647
  blur_handler_1,
14444
- div4_binding,
14648
+ div5_binding,
14445
14649
  div_binding
14446
14650
  ];
14447
14651
  }
@@ -14455,9 +14659,9 @@
14455
14659
  create_fragment26,
14456
14660
  safe_not_equal,
14457
14661
  {
14458
- sessionData: 48,
14662
+ sessionData: 53,
14459
14663
  isFinished: 0,
14460
- isPreviewMode: 49,
14664
+ isPreviewMode: 54,
14461
14665
  isPreviewModeInteractive: 1,
14462
14666
  isDataSaving: 2
14463
14667
  },
@@ -14466,7 +14670,7 @@
14466
14670
  );
14467
14671
  }
14468
14672
  get sessionData() {
14469
- return this.$$.ctx[48];
14673
+ return this.$$.ctx[53];
14470
14674
  }
14471
14675
  set sessionData(sessionData) {
14472
14676
  this.$$set({ sessionData });
@@ -14480,7 +14684,7 @@
14480
14684
  flush();
14481
14685
  }
14482
14686
  get isPreviewMode() {
14483
- return this.$$.ctx[49];
14687
+ return this.$$.ctx[54];
14484
14688
  }
14485
14689
  set isPreviewMode(isPreviewMode) {
14486
14690
  this.$$set({ isPreviewMode });