eat-js-sdk 1.0.37 → 1.0.39

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.
@@ -1649,7 +1649,7 @@
1649
1649
 
1650
1650
  // src/lib/components/prompt/template/PromptBody.svelte
1651
1651
  function add_css(target) {
1652
- append_styles(target, "svelte-c9q74j", "@media only screen and (min-width: 1196px){.container-class.svelte-c9q74j{max-width:var(--interactionWidthValue)}}@media only screen and (min-width: 1440px){.mcq-media-container.svelte-c9q74j{max-width:720px}}");
1652
+ append_styles(target, "svelte-plkvcr", "@media only screen and (min-width: 1196px){.container-class.svelte-plkvcr{max-width:var(--interactionWidthValue)}}@media only screen and (min-width: 1440px){.mcq-media-container.svelte-plkvcr{max-width:720px}.mcq-media-container-stimulus.svelte-plkvcr{max-width:1310px}}");
1653
1653
  }
1654
1654
  function create_if_block_11(ctx) {
1655
1655
  let commonstringtohtml;
@@ -1663,7 +1663,7 @@
1663
1663
  otherClass: "item-heading mb-4",
1664
1664
  htmlHeading: (
1665
1665
  /*promptRubricHeaderElem*/
1666
- ctx[17]
1666
+ ctx[18]
1667
1667
  )
1668
1668
  }
1669
1669
  });
@@ -1705,7 +1705,7 @@
1705
1705
  props: {
1706
1706
  htmlString: (
1707
1707
  /*stimulusText*/
1708
- ctx[9]
1708
+ ctx[10]
1709
1709
  ),
1710
1710
  otherClass: "text-stimulus py-2"
1711
1711
  }
@@ -1721,9 +1721,9 @@
1721
1721
  p(ctx2, dirty) {
1722
1722
  const commonstringtohtml_changes = {};
1723
1723
  if (dirty & /*stimulusText*/
1724
- 512)
1724
+ 1024)
1725
1725
  commonstringtohtml_changes.htmlString = /*stimulusText*/
1726
- ctx2[9];
1726
+ ctx2[10];
1727
1727
  commonstringtohtml.$set(commonstringtohtml_changes);
1728
1728
  },
1729
1729
  i(local) {
@@ -1750,19 +1750,19 @@
1750
1750
  props: {
1751
1751
  fileType: (
1752
1752
  /*fileType*/
1753
- ctx[5]
1753
+ ctx[6]
1754
1754
  ),
1755
1755
  fileUrl: (
1756
1756
  /*fileUrl*/
1757
- ctx[4]
1757
+ ctx[5]
1758
1758
  ),
1759
1759
  altText: (
1760
1760
  /*altText*/
1761
- ctx[7]
1761
+ ctx[8]
1762
1762
  ),
1763
1763
  fileCaption: (
1764
1764
  /*caption*/
1765
- ctx[8]
1765
+ ctx[9]
1766
1766
  )
1767
1767
  }
1768
1768
  });
@@ -1771,10 +1771,10 @@
1771
1771
  div = element("div");
1772
1772
  create_component(commonmedia.$$.fragment);
1773
1773
  attr(div, "class", div_class_value = /*showTextAlignmentInline*/
1774
- (ctx[13] && /*showStimulusLayoutMediaFirst*/
1775
- ctx[15] ? "pb-2" : "pb-10") + " " + /*showTextAlignmentInline*/
1776
- (ctx[13] && /*showStimulusLayoutTextFirst*/
1777
- ctx[16] ? "" : "pt-6"));
1774
+ (ctx[14] && /*showStimulusLayoutMediaFirst*/
1775
+ ctx[16] ? "pb-2" : "pb-10") + " " + /*showTextAlignmentInline*/
1776
+ (ctx[14] && /*showStimulusLayoutTextFirst*/
1777
+ ctx[17] ? "" : "pt-6"));
1778
1778
  },
1779
1779
  m(target, anchor) {
1780
1780
  insert(target, div, anchor);
@@ -1784,21 +1784,21 @@
1784
1784
  p(ctx2, dirty) {
1785
1785
  const commonmedia_changes = {};
1786
1786
  if (dirty & /*fileType*/
1787
- 32)
1787
+ 64)
1788
1788
  commonmedia_changes.fileType = /*fileType*/
1789
- ctx2[5];
1789
+ ctx2[6];
1790
1790
  if (dirty & /*fileUrl*/
1791
- 16)
1791
+ 32)
1792
1792
  commonmedia_changes.fileUrl = /*fileUrl*/
1793
- ctx2[4];
1793
+ ctx2[5];
1794
1794
  if (dirty & /*altText*/
1795
- 128)
1795
+ 256)
1796
1796
  commonmedia_changes.altText = /*altText*/
1797
- ctx2[7];
1797
+ ctx2[8];
1798
1798
  if (dirty & /*caption*/
1799
- 256)
1799
+ 512)
1800
1800
  commonmedia_changes.fileCaption = /*caption*/
1801
- ctx2[8];
1801
+ ctx2[9];
1802
1802
  commonmedia.$set(commonmedia_changes);
1803
1803
  },
1804
1804
  i(local) {
@@ -1826,7 +1826,7 @@
1826
1826
  props: {
1827
1827
  htmlString: (
1828
1828
  /*stimulusText*/
1829
- ctx[9]
1829
+ ctx[10]
1830
1830
  ),
1831
1831
  otherClass: "text-stimulus py-2"
1832
1832
  }
@@ -1842,9 +1842,9 @@
1842
1842
  p(ctx2, dirty) {
1843
1843
  const commonstringtohtml_changes = {};
1844
1844
  if (dirty & /*stimulusText*/
1845
- 512)
1845
+ 1024)
1846
1846
  commonstringtohtml_changes.htmlString = /*stimulusText*/
1847
- ctx2[9];
1847
+ ctx2[10];
1848
1848
  commonstringtohtml.$set(commonstringtohtml_changes);
1849
1849
  },
1850
1850
  i(local) {
@@ -1874,7 +1874,7 @@
1874
1874
  otherClass: "item-heading prompt",
1875
1875
  htmlHeading: (
1876
1876
  /*promptRubricHeaderElem*/
1877
- ctx[17]
1877
+ ctx[18]
1878
1878
  )
1879
1879
  }
1880
1880
  });
@@ -1916,7 +1916,7 @@
1916
1916
  props: {
1917
1917
  htmlString: (
1918
1918
  /*stimulusText*/
1919
- ctx[9]
1919
+ ctx[10]
1920
1920
  ),
1921
1921
  otherClass: "text-stimulus pb-0 lg:hidden"
1922
1922
  }
@@ -1932,9 +1932,9 @@
1932
1932
  p(ctx2, dirty) {
1933
1933
  const commonstringtohtml_changes = {};
1934
1934
  if (dirty & /*stimulusText*/
1935
- 512)
1935
+ 1024)
1936
1936
  commonstringtohtml_changes.htmlString = /*stimulusText*/
1937
- ctx2[9];
1937
+ ctx2[10];
1938
1938
  commonstringtohtml.$set(commonstringtohtml_changes);
1939
1939
  },
1940
1940
  i(local) {
@@ -1961,19 +1961,19 @@
1961
1961
  props: {
1962
1962
  fileType: (
1963
1963
  /*fileType*/
1964
- ctx[5]
1964
+ ctx[6]
1965
1965
  ),
1966
1966
  fileUrl: (
1967
1967
  /*fileUrl*/
1968
- ctx[4]
1968
+ ctx[5]
1969
1969
  ),
1970
1970
  altText: (
1971
1971
  /*altText*/
1972
- ctx[7]
1972
+ ctx[8]
1973
1973
  ),
1974
1974
  fileCaption: (
1975
1975
  /*caption*/
1976
- ctx[8]
1976
+ ctx[9]
1977
1977
  )
1978
1978
  }
1979
1979
  });
@@ -1982,8 +1982,8 @@
1982
1982
  div = element("div");
1983
1983
  create_component(commonmedia.$$.fragment);
1984
1984
  attr(div, "class", div_class_value = "lg:hidden " + /*showTextAlignmentDefault*/
1985
- (ctx[12] && /*showStimulusLayoutTextFirst*/
1986
- ctx[16] ? "pt-4" : "pt-6"));
1985
+ (ctx[13] && /*showStimulusLayoutTextFirst*/
1986
+ ctx[17] ? "pt-4" : "pt-6"));
1987
1987
  },
1988
1988
  m(target, anchor) {
1989
1989
  insert(target, div, anchor);
@@ -1993,21 +1993,21 @@
1993
1993
  p(ctx2, dirty) {
1994
1994
  const commonmedia_changes = {};
1995
1995
  if (dirty & /*fileType*/
1996
- 32)
1996
+ 64)
1997
1997
  commonmedia_changes.fileType = /*fileType*/
1998
- ctx2[5];
1998
+ ctx2[6];
1999
1999
  if (dirty & /*fileUrl*/
2000
- 16)
2000
+ 32)
2001
2001
  commonmedia_changes.fileUrl = /*fileUrl*/
2002
- ctx2[4];
2002
+ ctx2[5];
2003
2003
  if (dirty & /*altText*/
2004
- 128)
2004
+ 256)
2005
2005
  commonmedia_changes.altText = /*altText*/
2006
- ctx2[7];
2006
+ ctx2[8];
2007
2007
  if (dirty & /*caption*/
2008
- 256)
2008
+ 512)
2009
2009
  commonmedia_changes.fileCaption = /*caption*/
2010
- ctx2[8];
2010
+ ctx2[9];
2011
2011
  commonmedia.$set(commonmedia_changes);
2012
2012
  },
2013
2013
  i(local) {
@@ -2035,7 +2035,7 @@
2035
2035
  props: {
2036
2036
  htmlString: (
2037
2037
  /*stimulusText*/
2038
- ctx[9]
2038
+ ctx[10]
2039
2039
  ),
2040
2040
  otherClass: "text-stimulus pb-0 lg:hidden"
2041
2041
  }
@@ -2051,9 +2051,9 @@
2051
2051
  p(ctx2, dirty) {
2052
2052
  const commonstringtohtml_changes = {};
2053
2053
  if (dirty & /*stimulusText*/
2054
- 512)
2054
+ 1024)
2055
2055
  commonstringtohtml_changes.htmlString = /*stimulusText*/
2056
- ctx2[9];
2056
+ ctx2[10];
2057
2057
  commonstringtohtml.$set(commonstringtohtml_changes);
2058
2058
  },
2059
2059
  i(local) {
@@ -2079,17 +2079,17 @@
2079
2079
  let current;
2080
2080
  let if_block0 = (
2081
2081
  /*showTextAlignmentDefault*/
2082
- ctx[12] && /*showStimulusLayoutTextFirst*/
2083
- ctx[16] && create_if_block_3(ctx)
2082
+ ctx[13] && /*showStimulusLayoutTextFirst*/
2083
+ ctx[17] && create_if_block_3(ctx)
2084
2084
  );
2085
2085
  let if_block1 = (
2086
2086
  /*showAssetAlignmentDefault*/
2087
- ctx[11] && create_if_block_22(ctx)
2087
+ ctx[12] && create_if_block_22(ctx)
2088
2088
  );
2089
2089
  let if_block2 = (
2090
2090
  /*showTextAlignmentDefault*/
2091
- ctx[12] && /*showStimulusLayoutMediaFirst*/
2092
- ctx[15] && create_if_block_12(ctx)
2091
+ ctx[13] && /*showStimulusLayoutMediaFirst*/
2092
+ ctx[16] && create_if_block_12(ctx)
2093
2093
  );
2094
2094
  return {
2095
2095
  c() {
@@ -2122,19 +2122,19 @@
2122
2122
  p(ctx2, dirty) {
2123
2123
  if (
2124
2124
  /*showTextAlignmentDefault*/
2125
- ctx2[12] && /*showStimulusLayoutTextFirst*/
2126
- ctx2[16]
2125
+ ctx2[13] && /*showStimulusLayoutTextFirst*/
2126
+ ctx2[17]
2127
2127
  )
2128
2128
  if_block0.p(ctx2, dirty);
2129
2129
  if (
2130
2130
  /*showAssetAlignmentDefault*/
2131
- ctx2[11]
2131
+ ctx2[12]
2132
2132
  )
2133
2133
  if_block1.p(ctx2, dirty);
2134
2134
  if (
2135
2135
  /*showTextAlignmentDefault*/
2136
- ctx2[12] && /*showStimulusLayoutMediaFirst*/
2137
- ctx2[15]
2136
+ ctx2[13] && /*showStimulusLayoutMediaFirst*/
2137
+ ctx2[16]
2138
2138
  )
2139
2139
  if_block2.p(ctx2, dirty);
2140
2140
  },
@@ -2172,7 +2172,7 @@
2172
2172
  props: {
2173
2173
  htmlString: (
2174
2174
  /*stimulusText*/
2175
- ctx[9]
2175
+ ctx[10]
2176
2176
  ),
2177
2177
  otherClass: "text-stimulus pt-0"
2178
2178
  }
@@ -2188,9 +2188,9 @@
2188
2188
  p(ctx2, dirty) {
2189
2189
  const commonstringtohtml_changes = {};
2190
2190
  if (dirty & /*stimulusText*/
2191
- 512)
2191
+ 1024)
2192
2192
  commonstringtohtml_changes.htmlString = /*stimulusText*/
2193
- ctx2[9];
2193
+ ctx2[10];
2194
2194
  commonstringtohtml.$set(commonstringtohtml_changes);
2195
2195
  },
2196
2196
  i(local) {
@@ -2215,19 +2215,19 @@
2215
2215
  props: {
2216
2216
  fileType: (
2217
2217
  /*fileType*/
2218
- ctx[5]
2218
+ ctx[6]
2219
2219
  ),
2220
2220
  fileUrl: (
2221
2221
  /*fileUrl*/
2222
- ctx[4]
2222
+ ctx[5]
2223
2223
  ),
2224
2224
  altText: (
2225
2225
  /*altText*/
2226
- ctx[7]
2226
+ ctx[8]
2227
2227
  ),
2228
2228
  fileCaption: (
2229
2229
  /*caption*/
2230
- ctx[8]
2230
+ ctx[9]
2231
2231
  )
2232
2232
  }
2233
2233
  });
@@ -2242,21 +2242,21 @@
2242
2242
  p(ctx2, dirty) {
2243
2243
  const commonmedia_changes = {};
2244
2244
  if (dirty & /*fileType*/
2245
- 32)
2245
+ 64)
2246
2246
  commonmedia_changes.fileType = /*fileType*/
2247
- ctx2[5];
2247
+ ctx2[6];
2248
2248
  if (dirty & /*fileUrl*/
2249
- 16)
2249
+ 32)
2250
2250
  commonmedia_changes.fileUrl = /*fileUrl*/
2251
- ctx2[4];
2251
+ ctx2[5];
2252
2252
  if (dirty & /*altText*/
2253
- 128)
2253
+ 256)
2254
2254
  commonmedia_changes.altText = /*altText*/
2255
- ctx2[7];
2255
+ ctx2[8];
2256
2256
  if (dirty & /*caption*/
2257
- 256)
2257
+ 512)
2258
2258
  commonmedia_changes.fileCaption = /*caption*/
2259
- ctx2[8];
2259
+ ctx2[9];
2260
2260
  commonmedia.$set(commonmedia_changes);
2261
2261
  },
2262
2262
  i(local) {
@@ -2281,10 +2281,10 @@
2281
2281
  props: {
2282
2282
  htmlString: (
2283
2283
  /*stimulusText*/
2284
- ctx[9]
2284
+ ctx[10]
2285
2285
  ),
2286
2286
  otherClass: "text-stimulus " + (!/*showAssetAlignmentDefault*/
2287
- ctx[11] ? "pt-0" : "")
2287
+ ctx[12] ? "pt-0" : "")
2288
2288
  }
2289
2289
  });
2290
2290
  return {
@@ -2298,9 +2298,9 @@
2298
2298
  p(ctx2, dirty) {
2299
2299
  const commonstringtohtml_changes = {};
2300
2300
  if (dirty & /*stimulusText*/
2301
- 512)
2301
+ 1024)
2302
2302
  commonstringtohtml_changes.htmlString = /*stimulusText*/
2303
- ctx2[9];
2303
+ ctx2[10];
2304
2304
  commonstringtohtml.$set(commonstringtohtml_changes);
2305
2305
  },
2306
2306
  i(local) {
@@ -2342,18 +2342,18 @@
2342
2342
  );
2343
2343
  let if_block1 = (
2344
2344
  /*showTextAlignmentInline*/
2345
- ctx[13] && /*showStimulusLayoutTextFirst*/
2346
- ctx[16] && create_if_block_10(ctx)
2345
+ ctx[14] && /*showStimulusLayoutTextFirst*/
2346
+ ctx[17] && create_if_block_10(ctx)
2347
2347
  );
2348
2348
  let if_block2 = (
2349
2349
  /*showAsset*/
2350
- ctx[10] && /*fileAlignment*/
2351
- ctx[6] === ASSET_ALIGNMENT_INLINE && create_if_block_9(ctx)
2350
+ ctx[11] && /*fileAlignment*/
2351
+ ctx[7] === ASSET_ALIGNMENT_INLINE && create_if_block_9(ctx)
2352
2352
  );
2353
2353
  let if_block3 = (
2354
2354
  /*showTextAlignmentInline*/
2355
- ctx[13] && /*showStimulusLayoutMediaFirst*/
2356
- ctx[15] && create_if_block_8(ctx)
2355
+ ctx[14] && /*showStimulusLayoutMediaFirst*/
2356
+ ctx[16] && create_if_block_8(ctx)
2357
2357
  );
2358
2358
  let if_block4 = (
2359
2359
  /*prompt*/
@@ -2361,17 +2361,17 @@
2361
2361
  );
2362
2362
  let if_block5 = (
2363
2363
  /*showTextAlignmentDefault*/
2364
- ctx[12] && /*showStimulusLayoutTextFirst*/
2365
- ctx[16] && create_if_block_6(ctx)
2364
+ ctx[13] && /*showStimulusLayoutTextFirst*/
2365
+ ctx[17] && create_if_block_6(ctx)
2366
2366
  );
2367
2367
  let if_block6 = (
2368
2368
  /*showAssetAlignmentDefault*/
2369
- ctx[11] && create_if_block_5(ctx)
2369
+ ctx[12] && create_if_block_5(ctx)
2370
2370
  );
2371
2371
  let if_block7 = (
2372
2372
  /*showTextAlignmentDefault*/
2373
- ctx[12] && /*showStimulusLayoutMediaFirst*/
2374
- ctx[15] && create_if_block_4(ctx)
2373
+ ctx[13] && /*showStimulusLayoutMediaFirst*/
2374
+ ctx[16] && create_if_block_4(ctx)
2375
2375
  );
2376
2376
  const default_slot_template = (
2377
2377
  /*#slots*/
@@ -2386,7 +2386,7 @@
2386
2386
  );
2387
2387
  let if_block8 = (
2388
2388
  /*showAlignmentDefault*/
2389
- ctx[14] && create_if_block3(ctx)
2389
+ ctx[15] && create_if_block3(ctx)
2390
2390
  );
2391
2391
  return {
2392
2392
  c() {
@@ -2426,15 +2426,16 @@
2426
2426
  attr(div0, "class", div0_class_value = "divider my-6 " + (!/*hasDivider*/
2427
2427
  ctx[2] ? "hidden" : ""));
2428
2428
  attr(div1, "class", div1_class_value = "bg-transparent relative " + /*showAlignmentDefault*/
2429
- (ctx[14] ? "lg:basis-1/2 lg:max-w-[50%]" : ""));
2429
+ (ctx[15] ? "lg:basis-1/2 lg:max-w-[50%]" : ""));
2430
2430
  attr(div2, "class", div2_class_value = null_to_empty(`${/*showAlignmentDefault*/
2431
- ctx[14] ? "lg:w-full lg:flex" : "container-class"} ${INTERACTION_TYPE_MCQ && /*optionHasMedia*/
2432
- ctx[3] ? "mcq-media-container" : ""}`) + " svelte-c9q74j");
2431
+ ctx[15] ? "lg:w-full lg:flex" : "container-class"} ${INTERACTION_TYPE_MCQ && /*optionHasMedia*/
2432
+ ctx[4] ? !/*stimulus*/
2433
+ ctx[3] ? "mcq-media-container" : "mcq-media-container-stimulus" : ""}`) + " svelte-plkvcr");
2433
2434
  set_style(
2434
2435
  div2,
2435
2436
  "--interactionWidthValue",
2436
2437
  /*interactionWidthValue*/
2437
- ctx[18]
2438
+ ctx[19]
2438
2439
  );
2439
2440
  },
2440
2441
  m(target, anchor) {
@@ -2500,19 +2501,19 @@
2500
2501
  }
2501
2502
  if (
2502
2503
  /*showTextAlignmentInline*/
2503
- ctx2[13] && /*showStimulusLayoutTextFirst*/
2504
- ctx2[16]
2504
+ ctx2[14] && /*showStimulusLayoutTextFirst*/
2505
+ ctx2[17]
2505
2506
  )
2506
2507
  if_block1.p(ctx2, dirty);
2507
2508
  if (
2508
2509
  /*showAsset*/
2509
- ctx2[10] && /*fileAlignment*/
2510
- ctx2[6] === ASSET_ALIGNMENT_INLINE
2510
+ ctx2[11] && /*fileAlignment*/
2511
+ ctx2[7] === ASSET_ALIGNMENT_INLINE
2511
2512
  ) {
2512
2513
  if (if_block2) {
2513
2514
  if_block2.p(ctx2, dirty);
2514
2515
  if (dirty & /*fileAlignment*/
2515
- 64) {
2516
+ 128) {
2516
2517
  transition_in(if_block2, 1);
2517
2518
  }
2518
2519
  } else {
@@ -2530,8 +2531,8 @@
2530
2531
  }
2531
2532
  if (
2532
2533
  /*showTextAlignmentInline*/
2533
- ctx2[13] && /*showStimulusLayoutMediaFirst*/
2534
- ctx2[15]
2534
+ ctx2[14] && /*showStimulusLayoutMediaFirst*/
2535
+ ctx2[16]
2535
2536
  )
2536
2537
  if_block3.p(ctx2, dirty);
2537
2538
  if (
@@ -2559,19 +2560,19 @@
2559
2560
  }
2560
2561
  if (
2561
2562
  /*showTextAlignmentDefault*/
2562
- ctx2[12] && /*showStimulusLayoutTextFirst*/
2563
- ctx2[16]
2563
+ ctx2[13] && /*showStimulusLayoutTextFirst*/
2564
+ ctx2[17]
2564
2565
  )
2565
2566
  if_block5.p(ctx2, dirty);
2566
2567
  if (
2567
2568
  /*showAssetAlignmentDefault*/
2568
- ctx2[11]
2569
+ ctx2[12]
2569
2570
  )
2570
2571
  if_block6.p(ctx2, dirty);
2571
2572
  if (
2572
2573
  /*showTextAlignmentDefault*/
2573
- ctx2[12] && /*showStimulusLayoutMediaFirst*/
2574
- ctx2[15]
2574
+ ctx2[13] && /*showStimulusLayoutMediaFirst*/
2575
+ ctx2[16]
2575
2576
  )
2576
2577
  if_block7.p(ctx2, dirty);
2577
2578
  if (!current || dirty & /*hasDivider*/
@@ -2604,13 +2605,14 @@
2604
2605
  }
2605
2606
  if (
2606
2607
  /*showAlignmentDefault*/
2607
- ctx2[14]
2608
+ ctx2[15]
2608
2609
  )
2609
2610
  if_block8.p(ctx2, dirty);
2610
- if (!current || dirty & /*optionHasMedia*/
2611
- 8 && div2_class_value !== (div2_class_value = null_to_empty(`${/*showAlignmentDefault*/
2612
- ctx2[14] ? "lg:w-full lg:flex" : "container-class"} ${INTERACTION_TYPE_MCQ && /*optionHasMedia*/
2613
- ctx2[3] ? "mcq-media-container" : ""}`) + " svelte-c9q74j")) {
2611
+ if (!current || dirty & /*optionHasMedia, stimulus*/
2612
+ 24 && div2_class_value !== (div2_class_value = null_to_empty(`${/*showAlignmentDefault*/
2613
+ ctx2[15] ? "lg:w-full lg:flex" : "container-class"} ${INTERACTION_TYPE_MCQ && /*optionHasMedia*/
2614
+ ctx2[4] ? !/*stimulus*/
2615
+ ctx2[3] ? "mcq-media-container" : "mcq-media-container-stimulus" : ""}`) + " svelte-plkvcr")) {
2614
2616
  attr(div2, "class", div2_class_value);
2615
2617
  }
2616
2618
  },
@@ -2730,13 +2732,13 @@
2730
2732
  if ("prompt" in $$props2)
2731
2733
  $$invalidate(1, prompt = $$props2.prompt);
2732
2734
  if ("interactionType" in $$props2)
2733
- $$invalidate(19, interactionType = $$props2.interactionType);
2735
+ $$invalidate(20, interactionType = $$props2.interactionType);
2734
2736
  if ("hasDivider" in $$props2)
2735
2737
  $$invalidate(2, hasDivider = $$props2.hasDivider);
2736
2738
  if ("stimulus" in $$props2)
2737
- $$invalidate(20, stimulus = $$props2.stimulus);
2739
+ $$invalidate(3, stimulus = $$props2.stimulus);
2738
2740
  if ("optionHasMedia" in $$props2)
2739
- $$invalidate(3, optionHasMedia = $$props2.optionHasMedia);
2741
+ $$invalidate(4, optionHasMedia = $$props2.optionHasMedia);
2740
2742
  if ("$$scope" in $$props2)
2741
2743
  $$invalidate(21, $$scope = $$props2.$$scope);
2742
2744
  };
@@ -2744,6 +2746,7 @@
2744
2746
  rubric,
2745
2747
  prompt,
2746
2748
  hasDivider,
2749
+ stimulus,
2747
2750
  optionHasMedia,
2748
2751
  fileUrl,
2749
2752
  fileType,
@@ -2761,7 +2764,6 @@
2761
2764
  promptRubricHeaderElem,
2762
2765
  interactionWidthValue,
2763
2766
  interactionType,
2764
- stimulus,
2765
2767
  $$scope,
2766
2768
  slots
2767
2769
  ];
@@ -2778,10 +2780,10 @@
2778
2780
  {
2779
2781
  rubric: 0,
2780
2782
  prompt: 1,
2781
- interactionType: 19,
2783
+ interactionType: 20,
2782
2784
  hasDivider: 2,
2783
- stimulus: 20,
2784
- optionHasMedia: 3
2785
+ stimulus: 3,
2786
+ optionHasMedia: 4
2785
2787
  },
2786
2788
  add_css
2787
2789
  );
@@ -2801,7 +2803,7 @@
2801
2803
  flush();
2802
2804
  }
2803
2805
  get interactionType() {
2804
- return this.$$.ctx[19];
2806
+ return this.$$.ctx[20];
2805
2807
  }
2806
2808
  set interactionType(interactionType) {
2807
2809
  this.$$set({ interactionType });
@@ -2815,14 +2817,14 @@
2815
2817
  flush();
2816
2818
  }
2817
2819
  get stimulus() {
2818
- return this.$$.ctx[20];
2820
+ return this.$$.ctx[3];
2819
2821
  }
2820
2822
  set stimulus(stimulus) {
2821
2823
  this.$$set({ stimulus });
2822
2824
  flush();
2823
2825
  }
2824
2826
  get optionHasMedia() {
2825
- return this.$$.ctx[3];
2827
+ return this.$$.ctx[4];
2826
2828
  }
2827
2829
  set optionHasMedia(optionHasMedia) {
2828
2830
  this.$$set({ optionHasMedia });
@@ -3305,7 +3307,7 @@
3305
3307
  flush();
3306
3308
  }
3307
3309
  };
3308
- customElements.define("prompt-result-feedbackv3", create_custom_element(PromptResultFeedbackAlert, { "hasIcon": { "type": "Boolean" }, "isFeedbackAlert": { "type": "Boolean" }, "isResultCorrect": { "type": "Boolean" }, "isSkipped": { "type": "Boolean" }, "resultFeedback": {}, "resultFeedbackTitle": {} }, [], [], true));
3310
+ customElements.define("prompt-result-feedback-alert", create_custom_element(PromptResultFeedbackAlert, { "hasIcon": { "type": "Boolean" }, "isFeedbackAlert": { "type": "Boolean" }, "isResultCorrect": { "type": "Boolean" }, "isSkipped": { "type": "Boolean" }, "resultFeedback": {}, "resultFeedbackTitle": {} }, [], [], true));
3309
3311
  var PromptResultFeedbackAlert_default = PromptResultFeedbackAlert;
3310
3312
 
3311
3313
  // src/lib/composables/useMCQ.ts
@@ -4880,7 +4882,10 @@
4880
4882
  /*stimulus*/
4881
4883
  ctx[10]
4882
4884
  ),
4883
- optionHasMedia: true,
4885
+ optionHasMedia: (
4886
+ /*optionHasMedia*/
4887
+ ctx[13]
4888
+ ),
4884
4889
  $$slots: { default: [create_default_slot] },
4885
4890
  $$scope: { ctx }
4886
4891
  }
@@ -17400,7 +17405,7 @@
17400
17405
  // src/lib/components/prompt/dropdown/PromptDropdown.svelte
17401
17406
  function get_each_context7(ctx, list, i) {
17402
17407
  const child_ctx = ctx.slice();
17403
- child_ctx[29] = list[i];
17408
+ child_ctx[31] = list[i];
17404
17409
  return child_ctx;
17405
17410
  }
17406
17411
  function create_else_block7(ctx) {
@@ -17408,7 +17413,7 @@
17408
17413
  let html_tag;
17409
17414
  let raw_value = (
17410
17415
  /*item*/
17411
- ctx[29].text + ""
17416
+ ctx[31].text + ""
17412
17417
  );
17413
17418
  let t2;
17414
17419
  let span_aria_hidden_value;
@@ -17436,7 +17441,7 @@
17436
17441
  }
17437
17442
  };
17438
17443
  }
17439
- function create_if_block_111(ctx) {
17444
+ function create_if_block_211(ctx) {
17440
17445
  let promptdropdowncontainer;
17441
17446
  let current;
17442
17447
  promptdropdowncontainer = new PromptDropdownContainer_default({
@@ -17447,19 +17452,19 @@
17447
17452
  ),
17448
17453
  metadata: (
17449
17454
  /*metadata*/
17450
- ctx[15]
17455
+ ctx[17]
17451
17456
  ),
17452
17457
  scoringMetadata: (
17453
17458
  /*scoringMetadata*/
17454
- ctx[16]
17459
+ ctx[18]
17455
17460
  ),
17456
17461
  options: (
17457
17462
  /*item*/
17458
- ctx[29]
17463
+ ctx[31]
17459
17464
  ),
17460
17465
  answer: (
17461
17466
  /*answer*/
17462
- ctx[6]
17467
+ ctx[8]
17463
17468
  ),
17464
17469
  isDataSaving: (
17465
17470
  /*isDataSaving*/
@@ -17479,14 +17484,14 @@
17479
17484
  ),
17480
17485
  previewInteractiveEvent: (
17481
17486
  /*previewInteractiveEvent*/
17482
- ctx[9]
17487
+ ctx[6]
17483
17488
  )
17484
17489
  }
17485
17490
  });
17486
17491
  promptdropdowncontainer.$on(
17487
17492
  "select",
17488
17493
  /*select_handler*/
17489
- ctx[23]
17494
+ ctx[25]
17490
17495
  );
17491
17496
  return {
17492
17497
  c() {
@@ -17503,9 +17508,9 @@
17503
17508
  promptdropdowncontainer_changes.sessionData = /*sessionData*/
17504
17509
  ctx2[0];
17505
17510
  if (dirty[0] & /*answer*/
17506
- 64)
17511
+ 256)
17507
17512
  promptdropdowncontainer_changes.answer = /*answer*/
17508
- ctx2[6];
17513
+ ctx2[8];
17509
17514
  if (dirty[0] & /*isDataSaving*/
17510
17515
  32)
17511
17516
  promptdropdowncontainer_changes.isDataSaving = /*isDataSaving*/
@@ -17523,9 +17528,9 @@
17523
17528
  promptdropdowncontainer_changes.isPreviewModeInteractive = /*isPreviewModeInteractive*/
17524
17529
  ctx2[4];
17525
17530
  if (dirty[0] & /*previewInteractiveEvent*/
17526
- 512)
17531
+ 64)
17527
17532
  promptdropdowncontainer_changes.previewInteractiveEvent = /*previewInteractiveEvent*/
17528
- ctx2[9];
17533
+ ctx2[6];
17529
17534
  promptdropdowncontainer.$set(promptdropdowncontainer_changes);
17530
17535
  },
17531
17536
  i(local) {
@@ -17548,12 +17553,12 @@
17548
17553
  let if_block;
17549
17554
  let if_block_anchor;
17550
17555
  let current;
17551
- const if_block_creators = [create_if_block_111, create_else_block7];
17556
+ const if_block_creators = [create_if_block_211, create_else_block7];
17552
17557
  const if_blocks = [];
17553
17558
  function select_block_type(ctx2, dirty) {
17554
17559
  if (
17555
17560
  /*item*/
17556
- ctx2[29].type === "dropdown"
17561
+ ctx2[31].type === "dropdown"
17557
17562
  )
17558
17563
  return 0;
17559
17564
  return 1;
@@ -17594,36 +17599,22 @@
17594
17599
  function create_if_block12(ctx) {
17595
17600
  let div;
17596
17601
  let t0;
17597
- let promptresult;
17598
17602
  let t1;
17599
17603
  let promptresultfeedbacktable;
17600
17604
  let current;
17601
- promptresult = new PromptResultFeedbackAlert_default({
17602
- props: {
17603
- isResultCorrect: (
17604
- /*isResultCorrect*/
17605
- ctx[8]()
17606
- ),
17607
- resultFeedback: (
17608
- /*resultFeedback*/
17609
- ctx[12]()
17610
- ),
17611
- isSkipped: (
17612
- /*isSkipped*/
17613
- ctx[13]()
17614
- ),
17615
- hasIcon: true
17616
- }
17617
- });
17605
+ let if_block = (
17606
+ /*showSpecificFeedback*/
17607
+ ctx[10] && create_if_block_111(ctx)
17608
+ );
17618
17609
  promptresultfeedbacktable = new PromptResultFeedbackTable_default({
17619
17610
  props: {
17620
17611
  answerResults: (
17621
17612
  /*getDropdownAnswerResult*/
17622
- ctx[11]()
17613
+ ctx[13]()
17623
17614
  ),
17624
17615
  correctAnswers: (
17625
17616
  /*getCorrectAnswers*/
17626
- ctx[7]()
17617
+ ctx[9]()
17627
17618
  ),
17628
17619
  sessionId: (
17629
17620
  /*sessionId*/
@@ -17631,7 +17622,7 @@
17631
17622
  ),
17632
17623
  sessionAnswer: (
17633
17624
  /*getSessionAnswer*/
17634
- ctx[10]()
17625
+ ctx[12]()
17635
17626
  )
17636
17627
  }
17637
17628
  });
@@ -17639,7 +17630,8 @@
17639
17630
  c() {
17640
17631
  div = element("div");
17641
17632
  t0 = space();
17642
- create_component(promptresult.$$.fragment);
17633
+ if (if_block)
17634
+ if_block.c();
17643
17635
  t1 = space();
17644
17636
  create_component(promptresultfeedbacktable.$$.fragment);
17645
17637
  attr(div, "class", "divider my-6");
@@ -17647,54 +17639,64 @@
17647
17639
  m(target, anchor) {
17648
17640
  insert(target, div, anchor);
17649
17641
  insert(target, t0, anchor);
17650
- mount_component(promptresult, target, anchor);
17642
+ if (if_block)
17643
+ if_block.m(target, anchor);
17651
17644
  insert(target, t1, anchor);
17652
17645
  mount_component(promptresultfeedbacktable, target, anchor);
17653
17646
  current = true;
17654
17647
  },
17655
17648
  p(ctx2, dirty) {
17656
- const promptresult_changes = {};
17657
- if (dirty[0] & /*isResultCorrect*/
17658
- 256)
17659
- promptresult_changes.isResultCorrect = /*isResultCorrect*/
17660
- ctx2[8]();
17661
- if (dirty[0] & /*resultFeedback*/
17662
- 4096)
17663
- promptresult_changes.resultFeedback = /*resultFeedback*/
17664
- ctx2[12]();
17665
- if (dirty[0] & /*isSkipped*/
17666
- 8192)
17667
- promptresult_changes.isSkipped = /*isSkipped*/
17668
- ctx2[13]();
17669
- promptresult.$set(promptresult_changes);
17649
+ if (
17650
+ /*showSpecificFeedback*/
17651
+ ctx2[10]
17652
+ ) {
17653
+ if (if_block) {
17654
+ if_block.p(ctx2, dirty);
17655
+ if (dirty[0] & /*showSpecificFeedback*/
17656
+ 1024) {
17657
+ transition_in(if_block, 1);
17658
+ }
17659
+ } else {
17660
+ if_block = create_if_block_111(ctx2);
17661
+ if_block.c();
17662
+ transition_in(if_block, 1);
17663
+ if_block.m(t1.parentNode, t1);
17664
+ }
17665
+ } else if (if_block) {
17666
+ group_outros();
17667
+ transition_out(if_block, 1, 1, () => {
17668
+ if_block = null;
17669
+ });
17670
+ check_outros();
17671
+ }
17670
17672
  const promptresultfeedbacktable_changes = {};
17671
17673
  if (dirty[0] & /*getDropdownAnswerResult*/
17672
- 2048)
17674
+ 8192)
17673
17675
  promptresultfeedbacktable_changes.answerResults = /*getDropdownAnswerResult*/
17674
- ctx2[11]();
17676
+ ctx2[13]();
17675
17677
  if (dirty[0] & /*getCorrectAnswers*/
17676
- 128)
17678
+ 512)
17677
17679
  promptresultfeedbacktable_changes.correctAnswers = /*getCorrectAnswers*/
17678
- ctx2[7]();
17680
+ ctx2[9]();
17679
17681
  if (dirty[0] & /*sessionId*/
17680
17682
  2)
17681
17683
  promptresultfeedbacktable_changes.sessionId = /*sessionId*/
17682
17684
  ctx2[1];
17683
17685
  if (dirty[0] & /*getSessionAnswer*/
17684
- 1024)
17686
+ 4096)
17685
17687
  promptresultfeedbacktable_changes.sessionAnswer = /*getSessionAnswer*/
17686
- ctx2[10]();
17688
+ ctx2[12]();
17687
17689
  promptresultfeedbacktable.$set(promptresultfeedbacktable_changes);
17688
17690
  },
17689
17691
  i(local) {
17690
17692
  if (current)
17691
17693
  return;
17692
- transition_in(promptresult.$$.fragment, local);
17694
+ transition_in(if_block);
17693
17695
  transition_in(promptresultfeedbacktable.$$.fragment, local);
17694
17696
  current = true;
17695
17697
  },
17696
17698
  o(local) {
17697
- transition_out(promptresult.$$.fragment, local);
17699
+ transition_out(if_block);
17698
17700
  transition_out(promptresultfeedbacktable.$$.fragment, local);
17699
17701
  current = false;
17700
17702
  },
@@ -17704,11 +17706,71 @@
17704
17706
  detach(t0);
17705
17707
  detach(t1);
17706
17708
  }
17707
- destroy_component(promptresult, detaching);
17709
+ if (if_block)
17710
+ if_block.d(detaching);
17708
17711
  destroy_component(promptresultfeedbacktable, detaching);
17709
17712
  }
17710
17713
  };
17711
17714
  }
17715
+ function create_if_block_111(ctx) {
17716
+ let promptresult;
17717
+ let current;
17718
+ promptresult = new PromptResultFeedbackAlert_default({
17719
+ props: {
17720
+ isResultCorrect: (
17721
+ /*isResultCorrect*/
17722
+ ctx[7]()
17723
+ ),
17724
+ resultFeedback: (
17725
+ /*resultFeedback*/
17726
+ ctx[14]()
17727
+ ),
17728
+ isSkipped: (
17729
+ /*isSkipped*/
17730
+ ctx[15]()
17731
+ ),
17732
+ hasIcon: true
17733
+ }
17734
+ });
17735
+ return {
17736
+ c() {
17737
+ create_component(promptresult.$$.fragment);
17738
+ },
17739
+ m(target, anchor) {
17740
+ mount_component(promptresult, target, anchor);
17741
+ current = true;
17742
+ },
17743
+ p(ctx2, dirty) {
17744
+ const promptresult_changes = {};
17745
+ if (dirty[0] & /*isResultCorrect*/
17746
+ 128)
17747
+ promptresult_changes.isResultCorrect = /*isResultCorrect*/
17748
+ ctx2[7]();
17749
+ if (dirty[0] & /*resultFeedback*/
17750
+ 16384)
17751
+ promptresult_changes.resultFeedback = /*resultFeedback*/
17752
+ ctx2[14]();
17753
+ if (dirty[0] & /*isSkipped*/
17754
+ 32768)
17755
+ promptresult_changes.isSkipped = /*isSkipped*/
17756
+ ctx2[15]();
17757
+ promptresult.$set(promptresult_changes);
17758
+ },
17759
+ i(local) {
17760
+ if (current)
17761
+ return;
17762
+ transition_in(promptresult.$$.fragment, local);
17763
+ current = true;
17764
+ },
17765
+ o(local) {
17766
+ transition_out(promptresult.$$.fragment, local);
17767
+ current = false;
17768
+ },
17769
+ d(detaching) {
17770
+ destroy_component(promptresult, detaching);
17771
+ }
17772
+ };
17773
+ }
17712
17774
  function create_default_slot5(ctx) {
17713
17775
  let p;
17714
17776
  let t2;
@@ -17716,9 +17778,9 @@
17716
17778
  let current;
17717
17779
  let each_value = ensure_array_like(
17718
17780
  /*parseText*/
17719
- ctx[18](
17781
+ ctx[20](
17720
17782
  /*dropdownText*/
17721
- ctx[20].prompt
17783
+ ctx[22].prompt
17722
17784
  )
17723
17785
  );
17724
17786
  let each_blocks = [];
@@ -17729,11 +17791,8 @@
17729
17791
  each_blocks[i] = null;
17730
17792
  });
17731
17793
  let if_block = (
17732
- /*isFinished*/
17733
- (ctx[2] && !/*isPreviewMode*/
17734
- ctx[3] || /*isPreviewModeInteractive*/
17735
- ctx[4] && /*previewInteractiveEvent*/
17736
- ctx[9]) && create_if_block12(ctx)
17794
+ /*showFeedbackandTable*/
17795
+ ctx[11] && create_if_block12(ctx)
17737
17796
  );
17738
17797
  return {
17739
17798
  c() {
@@ -17762,12 +17821,12 @@
17762
17821
  },
17763
17822
  p(ctx2, dirty) {
17764
17823
  if (dirty[0] & /*sessionData, metadata, scoringMetadata, parseText, dropdownText, answer, isDataSaving, isFinished, isPreviewMode, isPreviewModeInteractive, previewInteractiveEvent, saveDropdownEvent*/
17765
- 3506813) {
17824
+ 14025085) {
17766
17825
  each_value = ensure_array_like(
17767
17826
  /*parseText*/
17768
- ctx2[18](
17827
+ ctx2[20](
17769
17828
  /*dropdownText*/
17770
- ctx2[20].prompt
17829
+ ctx2[22].prompt
17771
17830
  )
17772
17831
  );
17773
17832
  let i;
@@ -17790,16 +17849,13 @@
17790
17849
  check_outros();
17791
17850
  }
17792
17851
  if (
17793
- /*isFinished*/
17794
- ctx2[2] && !/*isPreviewMode*/
17795
- ctx2[3] || /*isPreviewModeInteractive*/
17796
- ctx2[4] && /*previewInteractiveEvent*/
17797
- ctx2[9]
17852
+ /*showFeedbackandTable*/
17853
+ ctx2[11]
17798
17854
  ) {
17799
17855
  if (if_block) {
17800
17856
  if_block.p(ctx2, dirty);
17801
- if (dirty[0] & /*isFinished, isPreviewMode, isPreviewModeInteractive, previewInteractiveEvent*/
17802
- 540) {
17857
+ if (dirty[0] & /*showFeedbackandTable*/
17858
+ 2048) {
17803
17859
  transition_in(if_block, 1);
17804
17860
  }
17805
17861
  } else {
@@ -17852,16 +17908,16 @@
17852
17908
  props: {
17853
17909
  rubric: (
17854
17910
  /*rubric*/
17855
- ctx[14].text
17911
+ ctx[16].text
17856
17912
  ),
17857
17913
  prompt: (
17858
17914
  /*prompt*/
17859
- ctx[19]
17915
+ ctx[21]
17860
17916
  ),
17861
17917
  interactionType: INTERACTION_TYPE_DROPDOWN,
17862
17918
  stimulus: (
17863
17919
  /*stimulus*/
17864
- ctx[17]
17920
+ ctx[19]
17865
17921
  ),
17866
17922
  hasDivider: false,
17867
17923
  $$slots: { default: [create_default_slot5] },
@@ -17878,9 +17934,9 @@
17878
17934
  },
17879
17935
  p(ctx2, dirty) {
17880
17936
  const promptbody_changes = {};
17881
- if (dirty[0] & /*getDropdownAnswerResult, getCorrectAnswers, sessionId, getSessionAnswer, isResultCorrect, resultFeedback, isSkipped, isFinished, isPreviewMode, isPreviewModeInteractive, previewInteractiveEvent, sessionData, answer, isDataSaving*/
17882
- 16383 | dirty[1] & /*$$scope*/
17883
- 2) {
17937
+ if (dirty[0] & /*getDropdownAnswerResult, getCorrectAnswers, sessionId, getSessionAnswer, isResultCorrect, resultFeedback, isSkipped, showSpecificFeedback, showFeedbackandTable, sessionData, answer, isDataSaving, isFinished, isPreviewMode, isPreviewModeInteractive, previewInteractiveEvent*/
17938
+ 65535 | dirty[1] & /*$$scope*/
17939
+ 8) {
17884
17940
  promptbody_changes.$$scope = { dirty, ctx: ctx2 };
17885
17941
  }
17886
17942
  promptbody.$set(promptbody_changes);
@@ -17909,6 +17965,8 @@
17909
17965
  let getCorrectAnswers;
17910
17966
  let getDropdownAnswerResult;
17911
17967
  let getSessionAnswer;
17968
+ let showFeedbackandTable;
17969
+ let showSpecificFeedback;
17912
17970
  let { sessionData } = $$props;
17913
17971
  let { sessionId } = $$props;
17914
17972
  let { isFinished = false } = $$props;
@@ -17952,8 +18010,8 @@
17952
18010
  if (!isFinished && !isPreviewModeInteractive)
17953
18011
  dispatch("saveDropdown", { answer: choice.detail });
17954
18012
  if (isPreviewModeInteractive) {
17955
- $$invalidate(6, answer = choice.detail);
17956
- $$invalidate(9, previewInteractiveEvent = !choice.detail.some((item) => item.choice === ""));
18013
+ $$invalidate(8, answer = choice.detail);
18014
+ $$invalidate(6, previewInteractiveEvent = !choice.detail.some((item) => item.choice === ""));
17957
18015
  }
17958
18016
  };
17959
18017
  const select_handler = (choice) => {
@@ -17975,9 +18033,9 @@
17975
18033
  };
17976
18034
  $$self.$$.update = () => {
17977
18035
  if ($$self.$$.dirty[0] & /*isFinished, isPreviewModeInteractive, isPreviewMode, answer*/
17978
- 92) {
18036
+ 284) {
17979
18037
  $:
17980
- $$invalidate(22, getSessionFeedbackData = () => {
18038
+ $$invalidate(24, getSessionFeedbackData = () => {
17981
18039
  if (!isFinished && !isPreviewModeInteractive || isFinished && isPreviewMode)
17982
18040
  return [];
17983
18041
  const { answer: sessionAnswer, correctAnswer: sessionCorrectAnswer } = scoringMetadata;
@@ -17994,9 +18052,9 @@
17994
18052
  });
17995
18053
  }
17996
18054
  if ($$self.$$.dirty[0] & /*isFinished, isPreviewModeInteractive, getSessionFeedbackData*/
17997
- 4194324) {
18055
+ 16777236) {
17998
18056
  $:
17999
- $$invalidate(13, isSkipped = () => {
18057
+ $$invalidate(15, isSkipped = () => {
18000
18058
  if (!isFinished && !isPreviewModeInteractive)
18001
18059
  return;
18002
18060
  if (!scoringMetadata.hasAnswer)
@@ -18006,16 +18064,16 @@
18006
18064
  });
18007
18065
  }
18008
18066
  if ($$self.$$.dirty[0] & /*getSessionFeedbackData*/
18009
- 4194304) {
18067
+ 16777216) {
18010
18068
  $:
18011
- $$invalidate(8, isResultCorrect = () => {
18069
+ $$invalidate(7, isResultCorrect = () => {
18012
18070
  return getSessionFeedbackData().every((status) => status === "correct");
18013
18071
  });
18014
18072
  }
18015
18073
  if ($$self.$$.dirty[0] & /*isFinished, isPreviewModeInteractive, isResultCorrect*/
18016
- 276) {
18074
+ 148) {
18017
18075
  $:
18018
- $$invalidate(12, resultFeedback = () => {
18076
+ $$invalidate(14, resultFeedback = () => {
18019
18077
  if (!isFinished && !isPreviewModeInteractive)
18020
18078
  return "";
18021
18079
  const { correct: correctFeedback, incorrect: incorrectFeedback } = feedback;
@@ -18025,7 +18083,7 @@
18025
18083
  if ($$self.$$.dirty[0] & /*isFinished, isPreviewMode*/
18026
18084
  12) {
18027
18085
  $:
18028
- $$invalidate(7, getCorrectAnswers = () => {
18086
+ $$invalidate(9, getCorrectAnswers = () => {
18029
18087
  if (isFinished || isPreviewMode) {
18030
18088
  return scoringMetadata?.correctAnswer.map((data) => {
18031
18089
  return isPreviewMode ? data.correct_answers : data.correct_answer_list;
@@ -18034,9 +18092,9 @@
18034
18092
  });
18035
18093
  }
18036
18094
  if ($$self.$$.dirty[0] & /*getCorrectAnswers, isPreviewMode, isPreviewModeInteractive, answer, isFinished*/
18037
- 220) {
18095
+ 796) {
18038
18096
  $:
18039
- $$invalidate(11, getDropdownAnswerResult = () => {
18097
+ $$invalidate(13, getDropdownAnswerResult = () => {
18040
18098
  const correctAnswerList = getCorrectAnswers();
18041
18099
  if (isPreviewMode && !isPreviewModeInteractive) {
18042
18100
  return Array(correctAnswerList.length).fill(true);
@@ -18054,9 +18112,9 @@
18054
18112
  });
18055
18113
  }
18056
18114
  if ($$self.$$.dirty[0] & /*isPreviewMode, isPreviewModeInteractive, getCorrectAnswers, answer, isFinished*/
18057
- 220) {
18115
+ 796) {
18058
18116
  $:
18059
- $$invalidate(10, getSessionAnswer = () => {
18117
+ $$invalidate(12, getSessionAnswer = () => {
18060
18118
  if (isPreviewMode && !isPreviewModeInteractive) {
18061
18119
  return getCorrectAnswers().map((value) => value[0]);
18062
18120
  }
@@ -18068,9 +18126,19 @@
18068
18126
  }
18069
18127
  });
18070
18128
  }
18129
+ if ($$self.$$.dirty[0] & /*isFinished, isPreviewMode, isPreviewModeInteractive, previewInteractiveEvent*/
18130
+ 92) {
18131
+ $:
18132
+ $$invalidate(11, showFeedbackandTable = isFinished && !isPreviewMode || isPreviewModeInteractive && previewInteractiveEvent);
18133
+ }
18134
+ if ($$self.$$.dirty[0] & /*isFinished, isResultCorrect, isPreviewModeInteractive, previewInteractiveEvent*/
18135
+ 212) {
18136
+ $:
18137
+ $$invalidate(10, showSpecificFeedback = isFinished && !isResultCorrect() || isPreviewModeInteractive && previewInteractiveEvent);
18138
+ }
18071
18139
  };
18072
18140
  $:
18073
- $$invalidate(6, answer = options.map((data) => {
18141
+ $$invalidate(8, answer = options.map((data) => {
18074
18142
  if (metadata) {
18075
18143
  const sessionChoice = getDropdownAnswerEvent().find((sessionEvent) => sessionEvent.id === data.id).choice;
18076
18144
  return { id: data.id, choice: sessionChoice };
@@ -18084,10 +18152,12 @@
18084
18152
  isPreviewMode,
18085
18153
  isPreviewModeInteractive,
18086
18154
  isDataSaving,
18155
+ previewInteractiveEvent,
18156
+ isResultCorrect,
18087
18157
  answer,
18088
18158
  getCorrectAnswers,
18089
- isResultCorrect,
18090
- previewInteractiveEvent,
18159
+ showSpecificFeedback,
18160
+ showFeedbackandTable,
18091
18161
  getSessionAnswer,
18092
18162
  getDropdownAnswerResult,
18093
18163
  resultFeedback,
@@ -18239,7 +18309,7 @@
18239
18309
  let if_block_anchor;
18240
18310
  let current;
18241
18311
  const if_block_creators = [
18242
- create_if_block_211,
18312
+ create_if_block_212,
18243
18313
  create_if_block_39,
18244
18314
  create_if_block_47,
18245
18315
  create_if_block_56,
@@ -18614,7 +18684,7 @@
18614
18684
  }
18615
18685
  };
18616
18686
  }
18617
- function create_if_block_211(ctx) {
18687
+ function create_if_block_212(ctx) {
18618
18688
  let promptmcq;
18619
18689
  let current;
18620
18690
  promptmcq = new PromptMCQ_default({
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "eat-js-sdk",
3
- "version": "1.0.37",
3
+ "version": "1.0.39",
4
4
  "change version": "1.0.8",
5
5
  "description": "Authoring tool frontend SDK",
6
6
  "contributors": [