eat-js-sdk 0.0.63 → 1.0.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/eat-prompt-builder.mjs +1110 -811
- package/package.json +1 -2
|
@@ -1257,6 +1257,7 @@
|
|
|
1257
1257
|
var INTERACTION_TYPE_TYPEIN = "typeInInteraction";
|
|
1258
1258
|
var INTERACTION_TYPE_CATEGORISE = "categoriseInteraction";
|
|
1259
1259
|
var TYPEIN_TYPE_SHORT = "Short-Text";
|
|
1260
|
+
var TYPEIN_TYPE_INLINE = "Inline Text";
|
|
1260
1261
|
var CONTAINER_WORD_BIN_ID = "container-word-bin";
|
|
1261
1262
|
var SCREEN_MD = 732;
|
|
1262
1263
|
var EAT_DASH = "@eat-dash@";
|
|
@@ -1543,7 +1544,7 @@
|
|
|
1543
1544
|
otherClass: "item-heading mb-4",
|
|
1544
1545
|
htmlHeading: (
|
|
1545
1546
|
/*promptRubricHeaderElem*/
|
|
1546
|
-
ctx[
|
|
1547
|
+
ctx[16]
|
|
1547
1548
|
)
|
|
1548
1549
|
}
|
|
1549
1550
|
});
|
|
@@ -1585,7 +1586,7 @@
|
|
|
1585
1586
|
props: {
|
|
1586
1587
|
htmlString: (
|
|
1587
1588
|
/*stimulusText*/
|
|
1588
|
-
ctx[
|
|
1589
|
+
ctx[8]
|
|
1589
1590
|
),
|
|
1590
1591
|
otherClass: "text-stimulus py-2"
|
|
1591
1592
|
}
|
|
@@ -1601,9 +1602,9 @@
|
|
|
1601
1602
|
p(ctx2, dirty) {
|
|
1602
1603
|
const commonstringtohtml_changes = {};
|
|
1603
1604
|
if (dirty & /*stimulusText*/
|
|
1604
|
-
|
|
1605
|
+
256)
|
|
1605
1606
|
commonstringtohtml_changes.htmlString = /*stimulusText*/
|
|
1606
|
-
ctx2[
|
|
1607
|
+
ctx2[8];
|
|
1607
1608
|
commonstringtohtml.$set(commonstringtohtml_changes);
|
|
1608
1609
|
},
|
|
1609
1610
|
i(local) {
|
|
@@ -1630,19 +1631,19 @@
|
|
|
1630
1631
|
props: {
|
|
1631
1632
|
fileType: (
|
|
1632
1633
|
/*fileType*/
|
|
1633
|
-
ctx[
|
|
1634
|
+
ctx[4]
|
|
1634
1635
|
),
|
|
1635
1636
|
fileUrl: (
|
|
1636
1637
|
/*fileUrl*/
|
|
1637
|
-
ctx[
|
|
1638
|
+
ctx[3]
|
|
1638
1639
|
),
|
|
1639
1640
|
altText: (
|
|
1640
1641
|
/*altText*/
|
|
1641
|
-
ctx[
|
|
1642
|
+
ctx[6]
|
|
1642
1643
|
),
|
|
1643
1644
|
fileCaption: (
|
|
1644
1645
|
/*caption*/
|
|
1645
|
-
ctx[
|
|
1646
|
+
ctx[7]
|
|
1646
1647
|
)
|
|
1647
1648
|
}
|
|
1648
1649
|
});
|
|
@@ -1651,10 +1652,10 @@
|
|
|
1651
1652
|
div = element("div");
|
|
1652
1653
|
create_component(commonmedia.$$.fragment);
|
|
1653
1654
|
attr(div, "class", div_class_value = /*showTextAlignmentInline*/
|
|
1654
|
-
(ctx[
|
|
1655
|
-
ctx[
|
|
1656
|
-
(ctx[
|
|
1657
|
-
ctx[
|
|
1655
|
+
(ctx[12] && /*showStimulusLayoutMediaFirst*/
|
|
1656
|
+
ctx[14] ? "pb-2" : "pb-10") + " " + /*showTextAlignmentInline*/
|
|
1657
|
+
(ctx[12] && /*showStimulusLayoutTextFirst*/
|
|
1658
|
+
ctx[15] ? "" : "pt-6"));
|
|
1658
1659
|
},
|
|
1659
1660
|
m(target, anchor) {
|
|
1660
1661
|
insert(target, div, anchor);
|
|
@@ -1664,21 +1665,21 @@
|
|
|
1664
1665
|
p(ctx2, dirty) {
|
|
1665
1666
|
const commonmedia_changes = {};
|
|
1666
1667
|
if (dirty & /*fileType*/
|
|
1667
|
-
|
|
1668
|
+
16)
|
|
1668
1669
|
commonmedia_changes.fileType = /*fileType*/
|
|
1669
|
-
ctx2[
|
|
1670
|
+
ctx2[4];
|
|
1670
1671
|
if (dirty & /*fileUrl*/
|
|
1671
|
-
|
|
1672
|
+
8)
|
|
1672
1673
|
commonmedia_changes.fileUrl = /*fileUrl*/
|
|
1673
|
-
ctx2[
|
|
1674
|
+
ctx2[3];
|
|
1674
1675
|
if (dirty & /*altText*/
|
|
1675
|
-
|
|
1676
|
+
64)
|
|
1676
1677
|
commonmedia_changes.altText = /*altText*/
|
|
1677
|
-
ctx2[
|
|
1678
|
+
ctx2[6];
|
|
1678
1679
|
if (dirty & /*caption*/
|
|
1679
|
-
|
|
1680
|
+
128)
|
|
1680
1681
|
commonmedia_changes.fileCaption = /*caption*/
|
|
1681
|
-
ctx2[
|
|
1682
|
+
ctx2[7];
|
|
1682
1683
|
commonmedia.$set(commonmedia_changes);
|
|
1683
1684
|
},
|
|
1684
1685
|
i(local) {
|
|
@@ -1706,7 +1707,7 @@
|
|
|
1706
1707
|
props: {
|
|
1707
1708
|
htmlString: (
|
|
1708
1709
|
/*stimulusText*/
|
|
1709
|
-
ctx[
|
|
1710
|
+
ctx[8]
|
|
1710
1711
|
),
|
|
1711
1712
|
otherClass: "text-stimulus py-2"
|
|
1712
1713
|
}
|
|
@@ -1722,9 +1723,9 @@
|
|
|
1722
1723
|
p(ctx2, dirty) {
|
|
1723
1724
|
const commonstringtohtml_changes = {};
|
|
1724
1725
|
if (dirty & /*stimulusText*/
|
|
1725
|
-
|
|
1726
|
+
256)
|
|
1726
1727
|
commonstringtohtml_changes.htmlString = /*stimulusText*/
|
|
1727
|
-
ctx2[
|
|
1728
|
+
ctx2[8];
|
|
1728
1729
|
commonstringtohtml.$set(commonstringtohtml_changes);
|
|
1729
1730
|
},
|
|
1730
1731
|
i(local) {
|
|
@@ -1754,7 +1755,7 @@
|
|
|
1754
1755
|
otherClass: "item-heading prompt",
|
|
1755
1756
|
htmlHeading: (
|
|
1756
1757
|
/*promptRubricHeaderElem*/
|
|
1757
|
-
ctx[
|
|
1758
|
+
ctx[16]
|
|
1758
1759
|
)
|
|
1759
1760
|
}
|
|
1760
1761
|
});
|
|
@@ -1796,7 +1797,7 @@
|
|
|
1796
1797
|
props: {
|
|
1797
1798
|
htmlString: (
|
|
1798
1799
|
/*stimulusText*/
|
|
1799
|
-
ctx[
|
|
1800
|
+
ctx[8]
|
|
1800
1801
|
),
|
|
1801
1802
|
otherClass: "text-stimulus pb-0 lg:hidden"
|
|
1802
1803
|
}
|
|
@@ -1812,9 +1813,9 @@
|
|
|
1812
1813
|
p(ctx2, dirty) {
|
|
1813
1814
|
const commonstringtohtml_changes = {};
|
|
1814
1815
|
if (dirty & /*stimulusText*/
|
|
1815
|
-
|
|
1816
|
+
256)
|
|
1816
1817
|
commonstringtohtml_changes.htmlString = /*stimulusText*/
|
|
1817
|
-
ctx2[
|
|
1818
|
+
ctx2[8];
|
|
1818
1819
|
commonstringtohtml.$set(commonstringtohtml_changes);
|
|
1819
1820
|
},
|
|
1820
1821
|
i(local) {
|
|
@@ -1841,19 +1842,19 @@
|
|
|
1841
1842
|
props: {
|
|
1842
1843
|
fileType: (
|
|
1843
1844
|
/*fileType*/
|
|
1844
|
-
ctx[
|
|
1845
|
+
ctx[4]
|
|
1845
1846
|
),
|
|
1846
1847
|
fileUrl: (
|
|
1847
1848
|
/*fileUrl*/
|
|
1848
|
-
ctx[
|
|
1849
|
+
ctx[3]
|
|
1849
1850
|
),
|
|
1850
1851
|
altText: (
|
|
1851
1852
|
/*altText*/
|
|
1852
|
-
ctx[
|
|
1853
|
+
ctx[6]
|
|
1853
1854
|
),
|
|
1854
1855
|
fileCaption: (
|
|
1855
1856
|
/*caption*/
|
|
1856
|
-
ctx[
|
|
1857
|
+
ctx[7]
|
|
1857
1858
|
)
|
|
1858
1859
|
}
|
|
1859
1860
|
});
|
|
@@ -1862,8 +1863,8 @@
|
|
|
1862
1863
|
div = element("div");
|
|
1863
1864
|
create_component(commonmedia.$$.fragment);
|
|
1864
1865
|
attr(div, "class", div_class_value = "lg:hidden " + /*showTextAlignmentDefault*/
|
|
1865
|
-
(ctx[
|
|
1866
|
-
ctx[
|
|
1866
|
+
(ctx[11] && /*showStimulusLayoutTextFirst*/
|
|
1867
|
+
ctx[15] ? "pt-4" : "pt-6"));
|
|
1867
1868
|
},
|
|
1868
1869
|
m(target, anchor) {
|
|
1869
1870
|
insert(target, div, anchor);
|
|
@@ -1873,21 +1874,21 @@
|
|
|
1873
1874
|
p(ctx2, dirty) {
|
|
1874
1875
|
const commonmedia_changes = {};
|
|
1875
1876
|
if (dirty & /*fileType*/
|
|
1876
|
-
|
|
1877
|
+
16)
|
|
1877
1878
|
commonmedia_changes.fileType = /*fileType*/
|
|
1878
|
-
ctx2[
|
|
1879
|
+
ctx2[4];
|
|
1879
1880
|
if (dirty & /*fileUrl*/
|
|
1880
|
-
|
|
1881
|
+
8)
|
|
1881
1882
|
commonmedia_changes.fileUrl = /*fileUrl*/
|
|
1882
|
-
ctx2[
|
|
1883
|
+
ctx2[3];
|
|
1883
1884
|
if (dirty & /*altText*/
|
|
1884
|
-
|
|
1885
|
+
64)
|
|
1885
1886
|
commonmedia_changes.altText = /*altText*/
|
|
1886
|
-
ctx2[
|
|
1887
|
+
ctx2[6];
|
|
1887
1888
|
if (dirty & /*caption*/
|
|
1888
|
-
|
|
1889
|
+
128)
|
|
1889
1890
|
commonmedia_changes.fileCaption = /*caption*/
|
|
1890
|
-
ctx2[
|
|
1891
|
+
ctx2[7];
|
|
1891
1892
|
commonmedia.$set(commonmedia_changes);
|
|
1892
1893
|
},
|
|
1893
1894
|
i(local) {
|
|
@@ -1915,7 +1916,7 @@
|
|
|
1915
1916
|
props: {
|
|
1916
1917
|
htmlString: (
|
|
1917
1918
|
/*stimulusText*/
|
|
1918
|
-
ctx[
|
|
1919
|
+
ctx[8]
|
|
1919
1920
|
),
|
|
1920
1921
|
otherClass: "text-stimulus pb-0 lg:hidden"
|
|
1921
1922
|
}
|
|
@@ -1931,9 +1932,9 @@
|
|
|
1931
1932
|
p(ctx2, dirty) {
|
|
1932
1933
|
const commonstringtohtml_changes = {};
|
|
1933
1934
|
if (dirty & /*stimulusText*/
|
|
1934
|
-
|
|
1935
|
+
256)
|
|
1935
1936
|
commonstringtohtml_changes.htmlString = /*stimulusText*/
|
|
1936
|
-
ctx2[
|
|
1937
|
+
ctx2[8];
|
|
1937
1938
|
commonstringtohtml.$set(commonstringtohtml_changes);
|
|
1938
1939
|
},
|
|
1939
1940
|
i(local) {
|
|
@@ -1959,17 +1960,17 @@
|
|
|
1959
1960
|
let current;
|
|
1960
1961
|
let if_block0 = (
|
|
1961
1962
|
/*showTextAlignmentDefault*/
|
|
1962
|
-
ctx[
|
|
1963
|
-
ctx[
|
|
1963
|
+
ctx[11] && /*showStimulusLayoutTextFirst*/
|
|
1964
|
+
ctx[15] && create_if_block_3(ctx)
|
|
1964
1965
|
);
|
|
1965
1966
|
let if_block1 = (
|
|
1966
1967
|
/*showAssetAlignmentDefault*/
|
|
1967
|
-
ctx[
|
|
1968
|
+
ctx[10] && create_if_block_22(ctx)
|
|
1968
1969
|
);
|
|
1969
1970
|
let if_block2 = (
|
|
1970
1971
|
/*showTextAlignmentDefault*/
|
|
1971
|
-
ctx[
|
|
1972
|
-
ctx[
|
|
1972
|
+
ctx[11] && /*showStimulusLayoutMediaFirst*/
|
|
1973
|
+
ctx[14] && create_if_block_12(ctx)
|
|
1973
1974
|
);
|
|
1974
1975
|
return {
|
|
1975
1976
|
c() {
|
|
@@ -2002,19 +2003,19 @@
|
|
|
2002
2003
|
p(ctx2, dirty) {
|
|
2003
2004
|
if (
|
|
2004
2005
|
/*showTextAlignmentDefault*/
|
|
2005
|
-
ctx2[
|
|
2006
|
-
ctx2[
|
|
2006
|
+
ctx2[11] && /*showStimulusLayoutTextFirst*/
|
|
2007
|
+
ctx2[15]
|
|
2007
2008
|
)
|
|
2008
2009
|
if_block0.p(ctx2, dirty);
|
|
2009
2010
|
if (
|
|
2010
2011
|
/*showAssetAlignmentDefault*/
|
|
2011
|
-
ctx2[
|
|
2012
|
+
ctx2[10]
|
|
2012
2013
|
)
|
|
2013
2014
|
if_block1.p(ctx2, dirty);
|
|
2014
2015
|
if (
|
|
2015
2016
|
/*showTextAlignmentDefault*/
|
|
2016
|
-
ctx2[
|
|
2017
|
-
ctx2[
|
|
2017
|
+
ctx2[11] && /*showStimulusLayoutMediaFirst*/
|
|
2018
|
+
ctx2[14]
|
|
2018
2019
|
)
|
|
2019
2020
|
if_block2.p(ctx2, dirty);
|
|
2020
2021
|
},
|
|
@@ -2052,7 +2053,7 @@
|
|
|
2052
2053
|
props: {
|
|
2053
2054
|
htmlString: (
|
|
2054
2055
|
/*stimulusText*/
|
|
2055
|
-
ctx[
|
|
2056
|
+
ctx[8]
|
|
2056
2057
|
),
|
|
2057
2058
|
otherClass: "text-stimulus pt-0"
|
|
2058
2059
|
}
|
|
@@ -2068,9 +2069,9 @@
|
|
|
2068
2069
|
p(ctx2, dirty) {
|
|
2069
2070
|
const commonstringtohtml_changes = {};
|
|
2070
2071
|
if (dirty & /*stimulusText*/
|
|
2071
|
-
|
|
2072
|
+
256)
|
|
2072
2073
|
commonstringtohtml_changes.htmlString = /*stimulusText*/
|
|
2073
|
-
ctx2[
|
|
2074
|
+
ctx2[8];
|
|
2074
2075
|
commonstringtohtml.$set(commonstringtohtml_changes);
|
|
2075
2076
|
},
|
|
2076
2077
|
i(local) {
|
|
@@ -2095,19 +2096,19 @@
|
|
|
2095
2096
|
props: {
|
|
2096
2097
|
fileType: (
|
|
2097
2098
|
/*fileType*/
|
|
2098
|
-
ctx[
|
|
2099
|
+
ctx[4]
|
|
2099
2100
|
),
|
|
2100
2101
|
fileUrl: (
|
|
2101
2102
|
/*fileUrl*/
|
|
2102
|
-
ctx[
|
|
2103
|
+
ctx[3]
|
|
2103
2104
|
),
|
|
2104
2105
|
altText: (
|
|
2105
2106
|
/*altText*/
|
|
2106
|
-
ctx[
|
|
2107
|
+
ctx[6]
|
|
2107
2108
|
),
|
|
2108
2109
|
fileCaption: (
|
|
2109
2110
|
/*caption*/
|
|
2110
|
-
ctx[
|
|
2111
|
+
ctx[7]
|
|
2111
2112
|
)
|
|
2112
2113
|
}
|
|
2113
2114
|
});
|
|
@@ -2122,21 +2123,21 @@
|
|
|
2122
2123
|
p(ctx2, dirty) {
|
|
2123
2124
|
const commonmedia_changes = {};
|
|
2124
2125
|
if (dirty & /*fileType*/
|
|
2125
|
-
|
|
2126
|
+
16)
|
|
2126
2127
|
commonmedia_changes.fileType = /*fileType*/
|
|
2127
|
-
ctx2[
|
|
2128
|
+
ctx2[4];
|
|
2128
2129
|
if (dirty & /*fileUrl*/
|
|
2129
|
-
|
|
2130
|
+
8)
|
|
2130
2131
|
commonmedia_changes.fileUrl = /*fileUrl*/
|
|
2131
|
-
ctx2[
|
|
2132
|
+
ctx2[3];
|
|
2132
2133
|
if (dirty & /*altText*/
|
|
2133
|
-
|
|
2134
|
+
64)
|
|
2134
2135
|
commonmedia_changes.altText = /*altText*/
|
|
2135
|
-
ctx2[
|
|
2136
|
+
ctx2[6];
|
|
2136
2137
|
if (dirty & /*caption*/
|
|
2137
|
-
|
|
2138
|
+
128)
|
|
2138
2139
|
commonmedia_changes.fileCaption = /*caption*/
|
|
2139
|
-
ctx2[
|
|
2140
|
+
ctx2[7];
|
|
2140
2141
|
commonmedia.$set(commonmedia_changes);
|
|
2141
2142
|
},
|
|
2142
2143
|
i(local) {
|
|
@@ -2161,10 +2162,10 @@
|
|
|
2161
2162
|
props: {
|
|
2162
2163
|
htmlString: (
|
|
2163
2164
|
/*stimulusText*/
|
|
2164
|
-
ctx[
|
|
2165
|
+
ctx[8]
|
|
2165
2166
|
),
|
|
2166
2167
|
otherClass: "text-stimulus " + (!/*showAssetAlignmentDefault*/
|
|
2167
|
-
ctx[
|
|
2168
|
+
ctx[10] ? "pt-0" : "")
|
|
2168
2169
|
}
|
|
2169
2170
|
});
|
|
2170
2171
|
return {
|
|
@@ -2178,9 +2179,9 @@
|
|
|
2178
2179
|
p(ctx2, dirty) {
|
|
2179
2180
|
const commonstringtohtml_changes = {};
|
|
2180
2181
|
if (dirty & /*stimulusText*/
|
|
2181
|
-
|
|
2182
|
+
256)
|
|
2182
2183
|
commonstringtohtml_changes.htmlString = /*stimulusText*/
|
|
2183
|
-
ctx2[
|
|
2184
|
+
ctx2[8];
|
|
2184
2185
|
commonstringtohtml.$set(commonstringtohtml_changes);
|
|
2185
2186
|
},
|
|
2186
2187
|
i(local) {
|
|
@@ -2210,6 +2211,7 @@
|
|
|
2210
2211
|
let t6;
|
|
2211
2212
|
let t7;
|
|
2212
2213
|
let div0;
|
|
2214
|
+
let div0_class_value;
|
|
2213
2215
|
let t8;
|
|
2214
2216
|
let div1_class_value;
|
|
2215
2217
|
let t9;
|
|
@@ -2221,18 +2223,18 @@
|
|
|
2221
2223
|
);
|
|
2222
2224
|
let if_block1 = (
|
|
2223
2225
|
/*showTextAlignmentInline*/
|
|
2224
|
-
ctx[
|
|
2225
|
-
ctx[
|
|
2226
|
+
ctx[12] && /*showStimulusLayoutTextFirst*/
|
|
2227
|
+
ctx[15] && create_if_block_10(ctx)
|
|
2226
2228
|
);
|
|
2227
2229
|
let if_block2 = (
|
|
2228
2230
|
/*showAsset*/
|
|
2229
|
-
ctx[
|
|
2230
|
-
ctx[
|
|
2231
|
+
ctx[9] && /*fileAlignment*/
|
|
2232
|
+
ctx[5] === ASSET_ALIGNMENT_INLINE && create_if_block_9(ctx)
|
|
2231
2233
|
);
|
|
2232
2234
|
let if_block3 = (
|
|
2233
2235
|
/*showTextAlignmentInline*/
|
|
2234
|
-
ctx[
|
|
2235
|
-
ctx[
|
|
2236
|
+
ctx[12] && /*showStimulusLayoutMediaFirst*/
|
|
2237
|
+
ctx[14] && create_if_block_8(ctx)
|
|
2236
2238
|
);
|
|
2237
2239
|
let if_block4 = (
|
|
2238
2240
|
/*prompt*/
|
|
@@ -2240,32 +2242,32 @@
|
|
|
2240
2242
|
);
|
|
2241
2243
|
let if_block5 = (
|
|
2242
2244
|
/*showTextAlignmentDefault*/
|
|
2243
|
-
ctx[
|
|
2244
|
-
ctx[
|
|
2245
|
+
ctx[11] && /*showStimulusLayoutTextFirst*/
|
|
2246
|
+
ctx[15] && create_if_block_6(ctx)
|
|
2245
2247
|
);
|
|
2246
2248
|
let if_block6 = (
|
|
2247
2249
|
/*showAssetAlignmentDefault*/
|
|
2248
|
-
ctx[
|
|
2250
|
+
ctx[10] && create_if_block_5(ctx)
|
|
2249
2251
|
);
|
|
2250
2252
|
let if_block7 = (
|
|
2251
2253
|
/*showTextAlignmentDefault*/
|
|
2252
|
-
ctx[
|
|
2253
|
-
ctx[
|
|
2254
|
+
ctx[11] && /*showStimulusLayoutMediaFirst*/
|
|
2255
|
+
ctx[14] && create_if_block_4(ctx)
|
|
2254
2256
|
);
|
|
2255
2257
|
const default_slot_template = (
|
|
2256
2258
|
/*#slots*/
|
|
2257
|
-
ctx[
|
|
2259
|
+
ctx[21].default
|
|
2258
2260
|
);
|
|
2259
2261
|
const default_slot = create_slot(
|
|
2260
2262
|
default_slot_template,
|
|
2261
2263
|
ctx,
|
|
2262
2264
|
/*$$scope*/
|
|
2263
|
-
ctx[
|
|
2265
|
+
ctx[20],
|
|
2264
2266
|
null
|
|
2265
2267
|
);
|
|
2266
2268
|
let if_block8 = (
|
|
2267
2269
|
/*showAlignmentDefault*/
|
|
2268
|
-
ctx[
|
|
2270
|
+
ctx[13] && create_if_block3(ctx)
|
|
2269
2271
|
);
|
|
2270
2272
|
return {
|
|
2271
2273
|
c() {
|
|
@@ -2302,18 +2304,19 @@
|
|
|
2302
2304
|
t9 = space();
|
|
2303
2305
|
if (if_block8)
|
|
2304
2306
|
if_block8.c();
|
|
2305
|
-
attr(div0, "class", "divider my-6"
|
|
2307
|
+
attr(div0, "class", div0_class_value = "divider my-6 " + (!/*hasDivider*/
|
|
2308
|
+
ctx[2] ? "hidden" : ""));
|
|
2306
2309
|
attr(div1, "class", div1_class_value = "bg-transparent relative " + /*showAlignmentDefault*/
|
|
2307
|
-
(ctx[
|
|
2310
|
+
(ctx[13] ? "lg:basis-1/2 lg:max-w-[50%]" : ""));
|
|
2308
2311
|
attr(div2, "class", div2_class_value = null_to_empty(
|
|
2309
2312
|
/*showAlignmentDefault*/
|
|
2310
|
-
ctx[
|
|
2313
|
+
ctx[13] ? "lg:w-full lg:flex" : "container-class"
|
|
2311
2314
|
) + " svelte-1x992u3");
|
|
2312
2315
|
set_style(
|
|
2313
2316
|
div2,
|
|
2314
2317
|
"--interactionWidthValue",
|
|
2315
2318
|
/*interactionWidthValue*/
|
|
2316
|
-
ctx[
|
|
2319
|
+
ctx[17]
|
|
2317
2320
|
);
|
|
2318
2321
|
},
|
|
2319
2322
|
m(target, anchor) {
|
|
@@ -2379,19 +2382,19 @@
|
|
|
2379
2382
|
}
|
|
2380
2383
|
if (
|
|
2381
2384
|
/*showTextAlignmentInline*/
|
|
2382
|
-
ctx2[
|
|
2383
|
-
ctx2[
|
|
2385
|
+
ctx2[12] && /*showStimulusLayoutTextFirst*/
|
|
2386
|
+
ctx2[15]
|
|
2384
2387
|
)
|
|
2385
2388
|
if_block1.p(ctx2, dirty);
|
|
2386
2389
|
if (
|
|
2387
2390
|
/*showAsset*/
|
|
2388
|
-
ctx2[
|
|
2389
|
-
ctx2[
|
|
2391
|
+
ctx2[9] && /*fileAlignment*/
|
|
2392
|
+
ctx2[5] === ASSET_ALIGNMENT_INLINE
|
|
2390
2393
|
) {
|
|
2391
2394
|
if (if_block2) {
|
|
2392
2395
|
if_block2.p(ctx2, dirty);
|
|
2393
2396
|
if (dirty & /*fileAlignment*/
|
|
2394
|
-
|
|
2397
|
+
32) {
|
|
2395
2398
|
transition_in(if_block2, 1);
|
|
2396
2399
|
}
|
|
2397
2400
|
} else {
|
|
@@ -2409,8 +2412,8 @@
|
|
|
2409
2412
|
}
|
|
2410
2413
|
if (
|
|
2411
2414
|
/*showTextAlignmentInline*/
|
|
2412
|
-
ctx2[
|
|
2413
|
-
ctx2[
|
|
2415
|
+
ctx2[12] && /*showStimulusLayoutMediaFirst*/
|
|
2416
|
+
ctx2[14]
|
|
2414
2417
|
)
|
|
2415
2418
|
if_block3.p(ctx2, dirty);
|
|
2416
2419
|
if (
|
|
@@ -2438,37 +2441,42 @@
|
|
|
2438
2441
|
}
|
|
2439
2442
|
if (
|
|
2440
2443
|
/*showTextAlignmentDefault*/
|
|
2441
|
-
ctx2[
|
|
2442
|
-
ctx2[
|
|
2444
|
+
ctx2[11] && /*showStimulusLayoutTextFirst*/
|
|
2445
|
+
ctx2[15]
|
|
2443
2446
|
)
|
|
2444
2447
|
if_block5.p(ctx2, dirty);
|
|
2445
2448
|
if (
|
|
2446
2449
|
/*showAssetAlignmentDefault*/
|
|
2447
|
-
ctx2[
|
|
2450
|
+
ctx2[10]
|
|
2448
2451
|
)
|
|
2449
2452
|
if_block6.p(ctx2, dirty);
|
|
2450
2453
|
if (
|
|
2451
2454
|
/*showTextAlignmentDefault*/
|
|
2452
|
-
ctx2[
|
|
2453
|
-
ctx2[
|
|
2455
|
+
ctx2[11] && /*showStimulusLayoutMediaFirst*/
|
|
2456
|
+
ctx2[14]
|
|
2454
2457
|
)
|
|
2455
2458
|
if_block7.p(ctx2, dirty);
|
|
2459
|
+
if (!current || dirty & /*hasDivider*/
|
|
2460
|
+
4 && div0_class_value !== (div0_class_value = "divider my-6 " + (!/*hasDivider*/
|
|
2461
|
+
ctx2[2] ? "hidden" : ""))) {
|
|
2462
|
+
attr(div0, "class", div0_class_value);
|
|
2463
|
+
}
|
|
2456
2464
|
if (default_slot) {
|
|
2457
2465
|
if (default_slot.p && (!current || dirty & /*$$scope*/
|
|
2458
|
-
|
|
2466
|
+
1048576)) {
|
|
2459
2467
|
update_slot_base(
|
|
2460
2468
|
default_slot,
|
|
2461
2469
|
default_slot_template,
|
|
2462
2470
|
ctx2,
|
|
2463
2471
|
/*$$scope*/
|
|
2464
|
-
ctx2[
|
|
2472
|
+
ctx2[20],
|
|
2465
2473
|
!current ? get_all_dirty_from_scope(
|
|
2466
2474
|
/*$$scope*/
|
|
2467
|
-
ctx2[
|
|
2475
|
+
ctx2[20]
|
|
2468
2476
|
) : get_slot_changes(
|
|
2469
2477
|
default_slot_template,
|
|
2470
2478
|
/*$$scope*/
|
|
2471
|
-
ctx2[
|
|
2479
|
+
ctx2[20],
|
|
2472
2480
|
dirty,
|
|
2473
2481
|
null
|
|
2474
2482
|
),
|
|
@@ -2478,7 +2486,7 @@
|
|
|
2478
2486
|
}
|
|
2479
2487
|
if (
|
|
2480
2488
|
/*showAlignmentDefault*/
|
|
2481
|
-
ctx2[
|
|
2489
|
+
ctx2[13]
|
|
2482
2490
|
)
|
|
2483
2491
|
if_block8.p(ctx2, dirty);
|
|
2484
2492
|
},
|
|
@@ -2542,6 +2550,7 @@
|
|
|
2542
2550
|
let { rubric } = $$props;
|
|
2543
2551
|
let { prompt } = $$props;
|
|
2544
2552
|
let { interactionType = "" } = $$props;
|
|
2553
|
+
let { hasDivider = true } = $$props;
|
|
2545
2554
|
let { stimulus = null } = $$props;
|
|
2546
2555
|
let fileUrl = "";
|
|
2547
2556
|
let fileType = "";
|
|
@@ -2583,22 +2592,25 @@
|
|
|
2583
2592
|
const showStimulusLayoutMediaFirst = stimulusLayoutOrder === STIMULUS_LAYOUT_ORDER_MEDIA_FIRST;
|
|
2584
2593
|
const showStimulusLayoutTextFirst = stimulusLayoutOrder === STIMULUS_LAYOUT_ORDER_TEXT_FIRST;
|
|
2585
2594
|
const promptRubricHeaderElem = get_store_value(promptRubricElem);
|
|
2586
|
-
const interactionWidthValue = get_store_value(interactionWidth);
|
|
2595
|
+
const interactionWidthValue = interactionType === INTERACTION_TYPE_CATEGORISE ? "100%" : get_store_value(interactionWidth);
|
|
2587
2596
|
$$self.$$set = ($$props2) => {
|
|
2588
2597
|
if ("rubric" in $$props2)
|
|
2589
2598
|
$$invalidate(0, rubric = $$props2.rubric);
|
|
2590
2599
|
if ("prompt" in $$props2)
|
|
2591
2600
|
$$invalidate(1, prompt = $$props2.prompt);
|
|
2592
2601
|
if ("interactionType" in $$props2)
|
|
2593
|
-
$$invalidate(
|
|
2602
|
+
$$invalidate(18, interactionType = $$props2.interactionType);
|
|
2603
|
+
if ("hasDivider" in $$props2)
|
|
2604
|
+
$$invalidate(2, hasDivider = $$props2.hasDivider);
|
|
2594
2605
|
if ("stimulus" in $$props2)
|
|
2595
|
-
$$invalidate(
|
|
2606
|
+
$$invalidate(19, stimulus = $$props2.stimulus);
|
|
2596
2607
|
if ("$$scope" in $$props2)
|
|
2597
|
-
$$invalidate(
|
|
2608
|
+
$$invalidate(20, $$scope = $$props2.$$scope);
|
|
2598
2609
|
};
|
|
2599
2610
|
return [
|
|
2600
2611
|
rubric,
|
|
2601
2612
|
prompt,
|
|
2613
|
+
hasDivider,
|
|
2602
2614
|
fileUrl,
|
|
2603
2615
|
fileType,
|
|
2604
2616
|
fileAlignment,
|
|
@@ -2632,8 +2644,9 @@
|
|
|
2632
2644
|
{
|
|
2633
2645
|
rubric: 0,
|
|
2634
2646
|
prompt: 1,
|
|
2635
|
-
interactionType:
|
|
2636
|
-
|
|
2647
|
+
interactionType: 18,
|
|
2648
|
+
hasDivider: 2,
|
|
2649
|
+
stimulus: 19
|
|
2637
2650
|
},
|
|
2638
2651
|
add_css
|
|
2639
2652
|
);
|
|
@@ -2653,21 +2666,28 @@
|
|
|
2653
2666
|
flush();
|
|
2654
2667
|
}
|
|
2655
2668
|
get interactionType() {
|
|
2656
|
-
return this.$$.ctx[
|
|
2669
|
+
return this.$$.ctx[18];
|
|
2657
2670
|
}
|
|
2658
2671
|
set interactionType(interactionType) {
|
|
2659
2672
|
this.$$set({ interactionType });
|
|
2660
2673
|
flush();
|
|
2661
2674
|
}
|
|
2675
|
+
get hasDivider() {
|
|
2676
|
+
return this.$$.ctx[2];
|
|
2677
|
+
}
|
|
2678
|
+
set hasDivider(hasDivider) {
|
|
2679
|
+
this.$$set({ hasDivider });
|
|
2680
|
+
flush();
|
|
2681
|
+
}
|
|
2662
2682
|
get stimulus() {
|
|
2663
|
-
return this.$$.ctx[
|
|
2683
|
+
return this.$$.ctx[19];
|
|
2664
2684
|
}
|
|
2665
2685
|
set stimulus(stimulus) {
|
|
2666
2686
|
this.$$set({ stimulus });
|
|
2667
2687
|
flush();
|
|
2668
2688
|
}
|
|
2669
2689
|
};
|
|
2670
|
-
customElements.define("prompt-body", create_custom_element(PromptBody, { "rubric": {}, "prompt": {}, "interactionType": {}, "stimulus": {} }, ["default"], [], true));
|
|
2690
|
+
customElements.define("prompt-body", create_custom_element(PromptBody, { "rubric": {}, "prompt": {}, "interactionType": {}, "hasDivider": { "type": "Boolean" }, "stimulus": {} }, ["default"], [], true));
|
|
2671
2691
|
var PromptBody_default = PromptBody;
|
|
2672
2692
|
|
|
2673
2693
|
// src/lib/components/prompt/template/PromptResultFeedback.svelte
|
|
@@ -3836,8 +3856,67 @@
|
|
|
3836
3856
|
action.destroy = autosize_esm_default.destroy;
|
|
3837
3857
|
var svelte_autosize_default = action;
|
|
3838
3858
|
|
|
3859
|
+
// src/lib/components/common/InvalidBanner.svelte
|
|
3860
|
+
function create_fragment8(ctx) {
|
|
3861
|
+
let p;
|
|
3862
|
+
let t2;
|
|
3863
|
+
return {
|
|
3864
|
+
c() {
|
|
3865
|
+
p = element("p");
|
|
3866
|
+
t2 = text(
|
|
3867
|
+
/*bannerLabel*/
|
|
3868
|
+
ctx[0]
|
|
3869
|
+
);
|
|
3870
|
+
attr(p, "class", "p-2 border-2 border-red-600 bg-red-200 rounded");
|
|
3871
|
+
},
|
|
3872
|
+
m(target, anchor) {
|
|
3873
|
+
insert(target, p, anchor);
|
|
3874
|
+
append(p, t2);
|
|
3875
|
+
},
|
|
3876
|
+
p(ctx2, [dirty]) {
|
|
3877
|
+
if (dirty & /*bannerLabel*/
|
|
3878
|
+
1)
|
|
3879
|
+
set_data(
|
|
3880
|
+
t2,
|
|
3881
|
+
/*bannerLabel*/
|
|
3882
|
+
ctx2[0]
|
|
3883
|
+
);
|
|
3884
|
+
},
|
|
3885
|
+
i: noop,
|
|
3886
|
+
o: noop,
|
|
3887
|
+
d(detaching) {
|
|
3888
|
+
if (detaching) {
|
|
3889
|
+
detach(p);
|
|
3890
|
+
}
|
|
3891
|
+
}
|
|
3892
|
+
};
|
|
3893
|
+
}
|
|
3894
|
+
function instance6($$self, $$props, $$invalidate) {
|
|
3895
|
+
let { bannerLabel: bannerLabel2 = "Invalid." } = $$props;
|
|
3896
|
+
$$self.$$set = ($$props2) => {
|
|
3897
|
+
if ("bannerLabel" in $$props2)
|
|
3898
|
+
$$invalidate(0, bannerLabel2 = $$props2.bannerLabel);
|
|
3899
|
+
};
|
|
3900
|
+
return [bannerLabel2];
|
|
3901
|
+
}
|
|
3902
|
+
var InvalidBanner = class extends SvelteComponent {
|
|
3903
|
+
constructor(options) {
|
|
3904
|
+
super();
|
|
3905
|
+
init(this, options, instance6, create_fragment8, safe_not_equal, { bannerLabel: 0 });
|
|
3906
|
+
}
|
|
3907
|
+
get bannerLabel() {
|
|
3908
|
+
return this.$$.ctx[0];
|
|
3909
|
+
}
|
|
3910
|
+
set bannerLabel(bannerLabel2) {
|
|
3911
|
+
this.$$set({ bannerLabel: bannerLabel2 });
|
|
3912
|
+
flush();
|
|
3913
|
+
}
|
|
3914
|
+
};
|
|
3915
|
+
customElements.define("invalid-banner", create_custom_element(InvalidBanner, { "bannerLabel": {} }, [], [], true));
|
|
3916
|
+
var InvalidBanner_default = InvalidBanner;
|
|
3917
|
+
|
|
3839
3918
|
// src/lib/components/prompt/typein/PromptTypeIn.svelte
|
|
3840
|
-
function
|
|
3919
|
+
function create_else_block_2(ctx) {
|
|
3841
3920
|
let textarea;
|
|
3842
3921
|
let textarea_class_value;
|
|
3843
3922
|
let autosize_action;
|
|
@@ -3851,7 +3930,7 @@
|
|
|
3851
3930
|
textarea,
|
|
3852
3931
|
"aria-label",
|
|
3853
3932
|
/*textAriaLabel*/
|
|
3854
|
-
ctx[
|
|
3933
|
+
ctx[9]
|
|
3855
3934
|
);
|
|
3856
3935
|
attr(
|
|
3857
3936
|
textarea,
|
|
@@ -3869,7 +3948,7 @@
|
|
|
3869
3948
|
ctx[0];
|
|
3870
3949
|
attr(textarea, "autocomplete", "off");
|
|
3871
3950
|
textarea.readOnly = /*isReadonlyText*/
|
|
3872
|
-
ctx[
|
|
3951
|
+
ctx[14];
|
|
3873
3952
|
},
|
|
3874
3953
|
m(target, anchor) {
|
|
3875
3954
|
insert(target, textarea, anchor);
|
|
@@ -3884,38 +3963,38 @@
|
|
|
3884
3963
|
textarea,
|
|
3885
3964
|
"input",
|
|
3886
3965
|
/*textarea_input_handler*/
|
|
3887
|
-
ctx[
|
|
3966
|
+
ctx[25]
|
|
3888
3967
|
),
|
|
3889
3968
|
listen(
|
|
3890
3969
|
textarea,
|
|
3891
3970
|
"mousedown",
|
|
3892
3971
|
/*mousedown_handler*/
|
|
3893
|
-
ctx[
|
|
3972
|
+
ctx[26]
|
|
3894
3973
|
),
|
|
3895
3974
|
listen(
|
|
3896
3975
|
textarea,
|
|
3897
3976
|
"touchstart",
|
|
3898
3977
|
/*touchstart_handler*/
|
|
3899
|
-
ctx[
|
|
3978
|
+
ctx[27],
|
|
3900
3979
|
{ passive: true }
|
|
3901
3980
|
),
|
|
3902
3981
|
listen(
|
|
3903
3982
|
textarea,
|
|
3904
3983
|
"focus",
|
|
3905
3984
|
/*focus_handler*/
|
|
3906
|
-
ctx[
|
|
3985
|
+
ctx[28]
|
|
3907
3986
|
),
|
|
3908
3987
|
listen(
|
|
3909
3988
|
textarea,
|
|
3910
3989
|
"focusout",
|
|
3911
3990
|
/*focusout_handler_1*/
|
|
3912
|
-
ctx[
|
|
3991
|
+
ctx[29]
|
|
3913
3992
|
),
|
|
3914
3993
|
listen(
|
|
3915
3994
|
textarea,
|
|
3916
3995
|
"keydown",
|
|
3917
3996
|
/*keydown_handler_1*/
|
|
3918
|
-
ctx[
|
|
3997
|
+
ctx[30]
|
|
3919
3998
|
),
|
|
3920
3999
|
action_destroyer(autosize_action = svelte_autosize_default.call(null, textarea))
|
|
3921
4000
|
];
|
|
@@ -3924,12 +4003,12 @@
|
|
|
3924
4003
|
},
|
|
3925
4004
|
p(ctx2, dirty) {
|
|
3926
4005
|
if (dirty[0] & /*textAriaLabel*/
|
|
3927
|
-
|
|
4006
|
+
512) {
|
|
3928
4007
|
attr(
|
|
3929
4008
|
textarea,
|
|
3930
4009
|
"aria-label",
|
|
3931
4010
|
/*textAriaLabel*/
|
|
3932
|
-
ctx2[
|
|
4011
|
+
ctx2[9]
|
|
3933
4012
|
);
|
|
3934
4013
|
}
|
|
3935
4014
|
if (dirty[0] & /*placeholder*/
|
|
@@ -3963,6 +4042,8 @@
|
|
|
3963
4042
|
);
|
|
3964
4043
|
}
|
|
3965
4044
|
},
|
|
4045
|
+
i: noop,
|
|
4046
|
+
o: noop,
|
|
3966
4047
|
d(detaching) {
|
|
3967
4048
|
if (detaching) {
|
|
3968
4049
|
detach(textarea);
|
|
@@ -3972,7 +4053,7 @@
|
|
|
3972
4053
|
}
|
|
3973
4054
|
};
|
|
3974
4055
|
}
|
|
3975
|
-
function
|
|
4056
|
+
function create_if_block_43(ctx) {
|
|
3976
4057
|
let input;
|
|
3977
4058
|
let input_class_value;
|
|
3978
4059
|
let mounted;
|
|
@@ -3986,7 +4067,7 @@
|
|
|
3986
4067
|
input,
|
|
3987
4068
|
"aria-label",
|
|
3988
4069
|
/*textAriaLabel*/
|
|
3989
|
-
ctx[
|
|
4070
|
+
ctx[9]
|
|
3990
4071
|
);
|
|
3991
4072
|
attr(
|
|
3992
4073
|
input,
|
|
@@ -4003,7 +4084,7 @@
|
|
|
4003
4084
|
ctx[0];
|
|
4004
4085
|
attr(input, "autocomplete", "off");
|
|
4005
4086
|
input.readOnly = /*isReadonlyText*/
|
|
4006
|
-
ctx[
|
|
4087
|
+
ctx[14];
|
|
4007
4088
|
},
|
|
4008
4089
|
m(target, anchor) {
|
|
4009
4090
|
insert(target, input, anchor);
|
|
@@ -4018,19 +4099,19 @@
|
|
|
4018
4099
|
input,
|
|
4019
4100
|
"input",
|
|
4020
4101
|
/*input_input_handler*/
|
|
4021
|
-
ctx[
|
|
4102
|
+
ctx[22]
|
|
4022
4103
|
),
|
|
4023
4104
|
listen(
|
|
4024
4105
|
input,
|
|
4025
4106
|
"focusout",
|
|
4026
4107
|
/*focusout_handler*/
|
|
4027
|
-
ctx[
|
|
4108
|
+
ctx[23]
|
|
4028
4109
|
),
|
|
4029
4110
|
listen(
|
|
4030
4111
|
input,
|
|
4031
4112
|
"keydown",
|
|
4032
4113
|
/*keydown_handler*/
|
|
4033
|
-
ctx[
|
|
4114
|
+
ctx[24]
|
|
4034
4115
|
)
|
|
4035
4116
|
];
|
|
4036
4117
|
mounted = true;
|
|
@@ -4038,12 +4119,12 @@
|
|
|
4038
4119
|
},
|
|
4039
4120
|
p(ctx2, dirty) {
|
|
4040
4121
|
if (dirty[0] & /*textAriaLabel*/
|
|
4041
|
-
|
|
4122
|
+
512) {
|
|
4042
4123
|
attr(
|
|
4043
4124
|
input,
|
|
4044
4125
|
"aria-label",
|
|
4045
4126
|
/*textAriaLabel*/
|
|
4046
|
-
ctx2[
|
|
4127
|
+
ctx2[9]
|
|
4047
4128
|
);
|
|
4048
4129
|
}
|
|
4049
4130
|
if (dirty[0] & /*placeholder*/
|
|
@@ -4078,6 +4159,8 @@
|
|
|
4078
4159
|
);
|
|
4079
4160
|
}
|
|
4080
4161
|
},
|
|
4162
|
+
i: noop,
|
|
4163
|
+
o: noop,
|
|
4081
4164
|
d(detaching) {
|
|
4082
4165
|
if (detaching) {
|
|
4083
4166
|
detach(input);
|
|
@@ -4087,54 +4170,207 @@
|
|
|
4087
4170
|
}
|
|
4088
4171
|
};
|
|
4089
4172
|
}
|
|
4090
|
-
function
|
|
4091
|
-
let div;
|
|
4092
|
-
let span0;
|
|
4173
|
+
function create_if_block_24(ctx) {
|
|
4093
4174
|
let current_block_type_index;
|
|
4094
4175
|
let if_block;
|
|
4095
|
-
let
|
|
4096
|
-
let t0;
|
|
4097
|
-
let span1;
|
|
4098
|
-
let t1;
|
|
4099
|
-
let div_class_value;
|
|
4100
|
-
let t2;
|
|
4101
|
-
let promptresult;
|
|
4176
|
+
let if_block_anchor;
|
|
4102
4177
|
let current;
|
|
4103
|
-
const if_block_creators = [
|
|
4178
|
+
const if_block_creators = [create_if_block_33, create_else_block_1];
|
|
4104
4179
|
const if_blocks = [];
|
|
4105
4180
|
function select_block_type_1(ctx2, dirty) {
|
|
4106
4181
|
if (
|
|
4107
|
-
/*
|
|
4108
|
-
ctx2[
|
|
4182
|
+
/*inlinePromptString*/
|
|
4183
|
+
ctx2[7]
|
|
4109
4184
|
)
|
|
4110
4185
|
return 0;
|
|
4111
4186
|
return 1;
|
|
4112
4187
|
}
|
|
4113
4188
|
current_block_type_index = select_block_type_1(ctx, [-1, -1]);
|
|
4114
4189
|
if_block = if_blocks[current_block_type_index] = if_block_creators[current_block_type_index](ctx);
|
|
4115
|
-
promptresult = new PromptResultFeedback_default({
|
|
4116
|
-
props: {
|
|
4117
|
-
isResultCorrect: (
|
|
4118
|
-
/*isResultCorrect*/
|
|
4119
|
-
ctx[2]
|
|
4120
|
-
),
|
|
4121
|
-
resultFeedback: (
|
|
4122
|
-
/*resultFeedback*/
|
|
4123
|
-
ctx[4]
|
|
4124
|
-
)
|
|
4125
|
-
}
|
|
4126
|
-
});
|
|
4127
4190
|
return {
|
|
4128
4191
|
c() {
|
|
4129
|
-
div = element("div");
|
|
4130
|
-
span0 = element("span");
|
|
4131
4192
|
if_block.c();
|
|
4132
|
-
|
|
4133
|
-
|
|
4134
|
-
|
|
4135
|
-
|
|
4136
|
-
|
|
4137
|
-
|
|
4193
|
+
if_block_anchor = empty();
|
|
4194
|
+
},
|
|
4195
|
+
m(target, anchor) {
|
|
4196
|
+
if_blocks[current_block_type_index].m(target, anchor);
|
|
4197
|
+
insert(target, if_block_anchor, anchor);
|
|
4198
|
+
current = true;
|
|
4199
|
+
},
|
|
4200
|
+
p(ctx2, dirty) {
|
|
4201
|
+
let previous_block_index = current_block_type_index;
|
|
4202
|
+
current_block_type_index = select_block_type_1(ctx2, dirty);
|
|
4203
|
+
if (current_block_type_index === previous_block_index) {
|
|
4204
|
+
if_blocks[current_block_type_index].p(ctx2, dirty);
|
|
4205
|
+
} else {
|
|
4206
|
+
group_outros();
|
|
4207
|
+
transition_out(if_blocks[previous_block_index], 1, 1, () => {
|
|
4208
|
+
if_blocks[previous_block_index] = null;
|
|
4209
|
+
});
|
|
4210
|
+
check_outros();
|
|
4211
|
+
if_block = if_blocks[current_block_type_index];
|
|
4212
|
+
if (!if_block) {
|
|
4213
|
+
if_block = if_blocks[current_block_type_index] = if_block_creators[current_block_type_index](ctx2);
|
|
4214
|
+
if_block.c();
|
|
4215
|
+
} else {
|
|
4216
|
+
if_block.p(ctx2, dirty);
|
|
4217
|
+
}
|
|
4218
|
+
transition_in(if_block, 1);
|
|
4219
|
+
if_block.m(if_block_anchor.parentNode, if_block_anchor);
|
|
4220
|
+
}
|
|
4221
|
+
},
|
|
4222
|
+
i(local) {
|
|
4223
|
+
if (current)
|
|
4224
|
+
return;
|
|
4225
|
+
transition_in(if_block);
|
|
4226
|
+
current = true;
|
|
4227
|
+
},
|
|
4228
|
+
o(local) {
|
|
4229
|
+
transition_out(if_block);
|
|
4230
|
+
current = false;
|
|
4231
|
+
},
|
|
4232
|
+
d(detaching) {
|
|
4233
|
+
if (detaching) {
|
|
4234
|
+
detach(if_block_anchor);
|
|
4235
|
+
}
|
|
4236
|
+
if_blocks[current_block_type_index].d(detaching);
|
|
4237
|
+
}
|
|
4238
|
+
};
|
|
4239
|
+
}
|
|
4240
|
+
function create_else_block_1(ctx) {
|
|
4241
|
+
let invalidbanner;
|
|
4242
|
+
let current;
|
|
4243
|
+
invalidbanner = new InvalidBanner_default({
|
|
4244
|
+
props: {
|
|
4245
|
+
bannerLabel: "No prompt was provided. Please contact the administrator for assistance."
|
|
4246
|
+
}
|
|
4247
|
+
});
|
|
4248
|
+
return {
|
|
4249
|
+
c() {
|
|
4250
|
+
create_component(invalidbanner.$$.fragment);
|
|
4251
|
+
},
|
|
4252
|
+
m(target, anchor) {
|
|
4253
|
+
mount_component(invalidbanner, target, anchor);
|
|
4254
|
+
current = true;
|
|
4255
|
+
},
|
|
4256
|
+
p: noop,
|
|
4257
|
+
i(local) {
|
|
4258
|
+
if (current)
|
|
4259
|
+
return;
|
|
4260
|
+
transition_in(invalidbanner.$$.fragment, local);
|
|
4261
|
+
current = true;
|
|
4262
|
+
},
|
|
4263
|
+
o(local) {
|
|
4264
|
+
transition_out(invalidbanner.$$.fragment, local);
|
|
4265
|
+
current = false;
|
|
4266
|
+
},
|
|
4267
|
+
d(detaching) {
|
|
4268
|
+
destroy_component(invalidbanner, detaching);
|
|
4269
|
+
}
|
|
4270
|
+
};
|
|
4271
|
+
}
|
|
4272
|
+
function create_if_block_33(ctx) {
|
|
4273
|
+
let commonstringtohtml;
|
|
4274
|
+
let t2;
|
|
4275
|
+
let div;
|
|
4276
|
+
let current;
|
|
4277
|
+
commonstringtohtml = new CommonStringToHtml_default({
|
|
4278
|
+
props: {
|
|
4279
|
+
htmlString: (
|
|
4280
|
+
/*inlinePromptString*/
|
|
4281
|
+
ctx[7]
|
|
4282
|
+
),
|
|
4283
|
+
otherClass: "inline-typein-container mt-6"
|
|
4284
|
+
}
|
|
4285
|
+
});
|
|
4286
|
+
return {
|
|
4287
|
+
c() {
|
|
4288
|
+
create_component(commonstringtohtml.$$.fragment);
|
|
4289
|
+
t2 = space();
|
|
4290
|
+
div = element("div");
|
|
4291
|
+
attr(div, "class", "divider my-6");
|
|
4292
|
+
},
|
|
4293
|
+
m(target, anchor) {
|
|
4294
|
+
mount_component(commonstringtohtml, target, anchor);
|
|
4295
|
+
insert(target, t2, anchor);
|
|
4296
|
+
insert(target, div, anchor);
|
|
4297
|
+
current = true;
|
|
4298
|
+
},
|
|
4299
|
+
p(ctx2, dirty) {
|
|
4300
|
+
const commonstringtohtml_changes = {};
|
|
4301
|
+
if (dirty[0] & /*inlinePromptString*/
|
|
4302
|
+
128)
|
|
4303
|
+
commonstringtohtml_changes.htmlString = /*inlinePromptString*/
|
|
4304
|
+
ctx2[7];
|
|
4305
|
+
commonstringtohtml.$set(commonstringtohtml_changes);
|
|
4306
|
+
},
|
|
4307
|
+
i(local) {
|
|
4308
|
+
if (current)
|
|
4309
|
+
return;
|
|
4310
|
+
transition_in(commonstringtohtml.$$.fragment, local);
|
|
4311
|
+
current = true;
|
|
4312
|
+
},
|
|
4313
|
+
o(local) {
|
|
4314
|
+
transition_out(commonstringtohtml.$$.fragment, local);
|
|
4315
|
+
current = false;
|
|
4316
|
+
},
|
|
4317
|
+
d(detaching) {
|
|
4318
|
+
if (detaching) {
|
|
4319
|
+
detach(t2);
|
|
4320
|
+
detach(div);
|
|
4321
|
+
}
|
|
4322
|
+
destroy_component(commonstringtohtml, detaching);
|
|
4323
|
+
}
|
|
4324
|
+
};
|
|
4325
|
+
}
|
|
4326
|
+
function create_if_block6(ctx) {
|
|
4327
|
+
let div;
|
|
4328
|
+
let span0;
|
|
4329
|
+
let current_block_type_index;
|
|
4330
|
+
let if_block;
|
|
4331
|
+
let span0_class_value;
|
|
4332
|
+
let t0;
|
|
4333
|
+
let span1;
|
|
4334
|
+
let t1;
|
|
4335
|
+
let div_class_value;
|
|
4336
|
+
let t2;
|
|
4337
|
+
let promptresult;
|
|
4338
|
+
let current;
|
|
4339
|
+
const if_block_creators = [create_if_block_15, create_else_block2];
|
|
4340
|
+
const if_blocks = [];
|
|
4341
|
+
function select_block_type_2(ctx2, dirty) {
|
|
4342
|
+
if (
|
|
4343
|
+
/*isResultCorrect*/
|
|
4344
|
+
ctx2[2]
|
|
4345
|
+
)
|
|
4346
|
+
return 0;
|
|
4347
|
+
return 1;
|
|
4348
|
+
}
|
|
4349
|
+
current_block_type_index = select_block_type_2(ctx, [-1, -1]);
|
|
4350
|
+
if_block = if_blocks[current_block_type_index] = if_block_creators[current_block_type_index](ctx);
|
|
4351
|
+
promptresult = new PromptResultFeedback_default({
|
|
4352
|
+
props: {
|
|
4353
|
+
isResultCorrect: (
|
|
4354
|
+
/*isResultCorrect*/
|
|
4355
|
+
ctx[2]
|
|
4356
|
+
),
|
|
4357
|
+
resultFeedback: (
|
|
4358
|
+
/*resultFeedback*/
|
|
4359
|
+
ctx[4]
|
|
4360
|
+
)
|
|
4361
|
+
}
|
|
4362
|
+
});
|
|
4363
|
+
return {
|
|
4364
|
+
c() {
|
|
4365
|
+
div = element("div");
|
|
4366
|
+
span0 = element("span");
|
|
4367
|
+
if_block.c();
|
|
4368
|
+
t0 = space();
|
|
4369
|
+
span1 = element("span");
|
|
4370
|
+
t1 = text(
|
|
4371
|
+
/*resultLabel*/
|
|
4372
|
+
ctx[6]
|
|
4373
|
+
);
|
|
4138
4374
|
t2 = space();
|
|
4139
4375
|
create_component(promptresult.$$.fragment);
|
|
4140
4376
|
attr(span0, "class", span0_class_value = /*isResultCorrect*/
|
|
@@ -4142,7 +4378,7 @@
|
|
|
4142
4378
|
attr(span1, "class", "p2");
|
|
4143
4379
|
attr(div, "aria-hidden", "true");
|
|
4144
4380
|
attr(div, "class", div_class_value = "flex items-center text-charcoal " + /*typeinType*/
|
|
4145
|
-
(ctx[
|
|
4381
|
+
(ctx[13] === TYPEIN_TYPE_SHORT ? "mt-2" : "mt-0.5"));
|
|
4146
4382
|
},
|
|
4147
4383
|
m(target, anchor) {
|
|
4148
4384
|
insert(target, div, anchor);
|
|
@@ -4157,7 +4393,7 @@
|
|
|
4157
4393
|
},
|
|
4158
4394
|
p(ctx2, dirty) {
|
|
4159
4395
|
let previous_block_index = current_block_type_index;
|
|
4160
|
-
current_block_type_index =
|
|
4396
|
+
current_block_type_index = select_block_type_2(ctx2, dirty);
|
|
4161
4397
|
if (current_block_type_index !== previous_block_index) {
|
|
4162
4398
|
group_outros();
|
|
4163
4399
|
transition_out(if_blocks[previous_block_index], 1, 1, () => {
|
|
@@ -4273,19 +4509,28 @@
|
|
|
4273
4509
|
};
|
|
4274
4510
|
}
|
|
4275
4511
|
function create_default_slot2(ctx) {
|
|
4512
|
+
let current_block_type_index;
|
|
4513
|
+
let if_block0;
|
|
4276
4514
|
let t2;
|
|
4277
4515
|
let if_block1_anchor;
|
|
4278
4516
|
let current;
|
|
4517
|
+
const if_block_creators = [create_if_block_24, create_if_block_43, create_else_block_2];
|
|
4518
|
+
const if_blocks = [];
|
|
4279
4519
|
function select_block_type(ctx2, dirty) {
|
|
4280
4520
|
if (
|
|
4281
4521
|
/*typeinType*/
|
|
4282
|
-
ctx2[
|
|
4522
|
+
ctx2[13] === TYPEIN_TYPE_INLINE
|
|
4283
4523
|
)
|
|
4284
|
-
return
|
|
4285
|
-
|
|
4524
|
+
return 0;
|
|
4525
|
+
if (
|
|
4526
|
+
/*typeinType*/
|
|
4527
|
+
ctx2[13] === TYPEIN_TYPE_SHORT
|
|
4528
|
+
)
|
|
4529
|
+
return 1;
|
|
4530
|
+
return 2;
|
|
4286
4531
|
}
|
|
4287
|
-
|
|
4288
|
-
|
|
4532
|
+
current_block_type_index = select_block_type(ctx, [-1, -1]);
|
|
4533
|
+
if_block0 = if_blocks[current_block_type_index] = if_block_creators[current_block_type_index](ctx);
|
|
4289
4534
|
let if_block1 = (
|
|
4290
4535
|
/*isFinished*/
|
|
4291
4536
|
ctx[1] && create_if_block6(ctx)
|
|
@@ -4299,7 +4544,7 @@
|
|
|
4299
4544
|
if_block1_anchor = empty();
|
|
4300
4545
|
},
|
|
4301
4546
|
m(target, anchor) {
|
|
4302
|
-
|
|
4547
|
+
if_blocks[current_block_type_index].m(target, anchor);
|
|
4303
4548
|
insert(target, t2, anchor);
|
|
4304
4549
|
if (if_block1)
|
|
4305
4550
|
if_block1.m(target, anchor);
|
|
@@ -4335,10 +4580,12 @@
|
|
|
4335
4580
|
i(local) {
|
|
4336
4581
|
if (current)
|
|
4337
4582
|
return;
|
|
4583
|
+
transition_in(if_block0);
|
|
4338
4584
|
transition_in(if_block1);
|
|
4339
4585
|
current = true;
|
|
4340
4586
|
},
|
|
4341
4587
|
o(local) {
|
|
4588
|
+
transition_out(if_block0);
|
|
4342
4589
|
transition_out(if_block1);
|
|
4343
4590
|
current = false;
|
|
4344
4591
|
},
|
|
@@ -4347,29 +4594,33 @@
|
|
|
4347
4594
|
detach(t2);
|
|
4348
4595
|
detach(if_block1_anchor);
|
|
4349
4596
|
}
|
|
4350
|
-
|
|
4597
|
+
if_blocks[current_block_type_index].d(detaching);
|
|
4351
4598
|
if (if_block1)
|
|
4352
4599
|
if_block1.d(detaching);
|
|
4353
4600
|
}
|
|
4354
4601
|
};
|
|
4355
4602
|
}
|
|
4356
|
-
function
|
|
4603
|
+
function create_fragment9(ctx) {
|
|
4357
4604
|
let promptbody;
|
|
4358
4605
|
let current;
|
|
4359
4606
|
promptbody = new PromptBody_default({
|
|
4360
4607
|
props: {
|
|
4361
4608
|
rubric: (
|
|
4362
4609
|
/*rubric*/
|
|
4363
|
-
ctx[
|
|
4610
|
+
ctx[10].text
|
|
4364
4611
|
),
|
|
4365
4612
|
prompt: (
|
|
4366
4613
|
/*prompt*/
|
|
4367
|
-
ctx[
|
|
4614
|
+
ctx[12]
|
|
4368
4615
|
),
|
|
4369
4616
|
interactionType: INTERACTION_TYPE_TYPEIN,
|
|
4370
4617
|
stimulus: (
|
|
4371
4618
|
/*stimulus*/
|
|
4372
|
-
ctx[
|
|
4619
|
+
ctx[11]
|
|
4620
|
+
),
|
|
4621
|
+
hasDivider: (
|
|
4622
|
+
/*hasDivider*/
|
|
4623
|
+
ctx[8]
|
|
4373
4624
|
),
|
|
4374
4625
|
$$slots: { default: [create_default_slot2] },
|
|
4375
4626
|
$$scope: { ctx }
|
|
@@ -4385,9 +4636,13 @@
|
|
|
4385
4636
|
},
|
|
4386
4637
|
p(ctx2, dirty) {
|
|
4387
4638
|
const promptbody_changes = {};
|
|
4388
|
-
if (dirty[0] & /*
|
|
4389
|
-
|
|
4390
|
-
|
|
4639
|
+
if (dirty[0] & /*hasDivider*/
|
|
4640
|
+
256)
|
|
4641
|
+
promptbody_changes.hasDivider = /*hasDivider*/
|
|
4642
|
+
ctx2[8];
|
|
4643
|
+
if (dirty[0] & /*isResultCorrect, resultFeedback, resultLabel, isFinished, inlinePromptString, textAriaLabel, placeholder, isDataSaving, typeinAnswer*/
|
|
4644
|
+
767 | dirty[1] & /*$$scope*/
|
|
4645
|
+
256) {
|
|
4391
4646
|
promptbody_changes.$$scope = { dirty, ctx: ctx2 };
|
|
4392
4647
|
}
|
|
4393
4648
|
promptbody.$set(promptbody_changes);
|
|
@@ -4408,7 +4663,7 @@
|
|
|
4408
4663
|
};
|
|
4409
4664
|
}
|
|
4410
4665
|
var idLabel = "answerText";
|
|
4411
|
-
function
|
|
4666
|
+
function instance7($$self, $$props, $$invalidate) {
|
|
4412
4667
|
let { sessionData } = $$props;
|
|
4413
4668
|
let { isDataSaving } = $$props;
|
|
4414
4669
|
let { isFinished = false } = $$props;
|
|
@@ -4422,12 +4677,43 @@
|
|
|
4422
4677
|
let placeholder = "Type your answer here";
|
|
4423
4678
|
let focusOrigin = "tab";
|
|
4424
4679
|
let resultLabel = "";
|
|
4680
|
+
let inlinePromptString = "";
|
|
4681
|
+
let hasDivider = true;
|
|
4425
4682
|
const { rubric, interaction, metadata, scoringMetadata, stimulus } = sessionData;
|
|
4426
4683
|
const { prompt, typein_type: typeinType } = interaction;
|
|
4427
4684
|
if (metadata) {
|
|
4428
4685
|
const events = metadata.interactions.events.pop();
|
|
4429
4686
|
latestAnswer = typeinAnswer = events.answer[0];
|
|
4430
4687
|
}
|
|
4688
|
+
if (typeinType === TYPEIN_TYPE_INLINE) {
|
|
4689
|
+
hasDivider = false;
|
|
4690
|
+
const { inline_prompt: inlinePrompt } = interaction;
|
|
4691
|
+
if (inlinePrompt) {
|
|
4692
|
+
let idCounter = 1;
|
|
4693
|
+
const eatRegex = /<eat-contentful>/g;
|
|
4694
|
+
const inputCount = inlinePrompt.match(eatRegex)?.length || 0;
|
|
4695
|
+
const isSingleInput = inputCount <= 1;
|
|
4696
|
+
const spacer = '<span class="inline-block w-2 h-4"></span>';
|
|
4697
|
+
inlinePromptString = inlinePrompt.replace(eatRegex, () => {
|
|
4698
|
+
const idNo = idCounter++;
|
|
4699
|
+
const inputId = `inline-text-${idNo}`;
|
|
4700
|
+
return `
|
|
4701
|
+
${spacer}<span class="inline-block h-fit relative my-2 mb-2">
|
|
4702
|
+
<label for="${inputId}" class="absolute left-0 top-0 bottom-0 ${isSingleInput ? "hidden" : ""}" aria-hidden="true">
|
|
4703
|
+
<span class="absolute inset-0 bg-black opacity-5 rounded-l-lg w-8.5"></span>
|
|
4704
|
+
<span class="absolute font-semibold text-base leading-[19px] text-charcoal px-3 inline-block pt-[13px]">${idNo}</span>
|
|
4705
|
+
</label>
|
|
4706
|
+
<input
|
|
4707
|
+
type="text"
|
|
4708
|
+
id="${inputId}"
|
|
4709
|
+
placeholder="Type your answer here" aria-label="Item number ${idNo}"
|
|
4710
|
+
class="typein-textbox w-60 py-[9px] pr-4 ${isSingleInput ? "" : "pl-13.2"}"
|
|
4711
|
+
autocomplete="off"
|
|
4712
|
+
/>
|
|
4713
|
+
</span>${spacer}`;
|
|
4714
|
+
});
|
|
4715
|
+
}
|
|
4716
|
+
}
|
|
4431
4717
|
let textAriaLabel = !latestAnswer ? "Answer input: Please type your response" : "Your response is";
|
|
4432
4718
|
const isReadonlyText = isFinished && !isPreviewModeInteractive;
|
|
4433
4719
|
const getFeedback = () => {
|
|
@@ -4436,7 +4722,7 @@
|
|
|
4436
4722
|
};
|
|
4437
4723
|
const getResultMessage = () => {
|
|
4438
4724
|
$$invalidate(6, resultLabel = isResultCorrect ? "Correct" : "Incorrect");
|
|
4439
|
-
$$invalidate(
|
|
4725
|
+
$$invalidate(9, textAriaLabel = `Submitted response is ${resultLabel.toLocaleLowerCase()}`);
|
|
4440
4726
|
$$invalidate(5, placeholder = isResultCorrect ? placeholder : "No answer provided");
|
|
4441
4727
|
};
|
|
4442
4728
|
if (isFinished) {
|
|
@@ -4457,7 +4743,7 @@
|
|
|
4457
4743
|
setTimeout(
|
|
4458
4744
|
() => {
|
|
4459
4745
|
$$invalidate(6, resultLabel = "");
|
|
4460
|
-
$$invalidate(
|
|
4746
|
+
$$invalidate(9, textAriaLabel = "");
|
|
4461
4747
|
$$invalidate(5, placeholder = "");
|
|
4462
4748
|
getResultMessage();
|
|
4463
4749
|
getFeedback();
|
|
@@ -4499,7 +4785,7 @@
|
|
|
4499
4785
|
const keydown_handler_1 = (event) => saveOnEnter(event);
|
|
4500
4786
|
$$self.$$set = ($$props2) => {
|
|
4501
4787
|
if ("sessionData" in $$props2)
|
|
4502
|
-
$$invalidate(
|
|
4788
|
+
$$invalidate(19, sessionData = $$props2.sessionData);
|
|
4503
4789
|
if ("isDataSaving" in $$props2)
|
|
4504
4790
|
$$invalidate(0, isDataSaving = $$props2.isDataSaving);
|
|
4505
4791
|
if ("isFinished" in $$props2)
|
|
@@ -4507,9 +4793,9 @@
|
|
|
4507
4793
|
if ("isResultCorrect" in $$props2)
|
|
4508
4794
|
$$invalidate(2, isResultCorrect = $$props2.isResultCorrect);
|
|
4509
4795
|
if ("isPreviewMode" in $$props2)
|
|
4510
|
-
$$invalidate(
|
|
4796
|
+
$$invalidate(20, isPreviewMode = $$props2.isPreviewMode);
|
|
4511
4797
|
if ("isPreviewModeInteractive" in $$props2)
|
|
4512
|
-
$$invalidate(
|
|
4798
|
+
$$invalidate(21, isPreviewModeInteractive = $$props2.isPreviewModeInteractive);
|
|
4513
4799
|
};
|
|
4514
4800
|
return [
|
|
4515
4801
|
isDataSaving,
|
|
@@ -4519,6 +4805,8 @@
|
|
|
4519
4805
|
resultFeedback,
|
|
4520
4806
|
placeholder,
|
|
4521
4807
|
resultLabel,
|
|
4808
|
+
inlinePromptString,
|
|
4809
|
+
hasDivider,
|
|
4522
4810
|
textAriaLabel,
|
|
4523
4811
|
rubric,
|
|
4524
4812
|
stimulus,
|
|
@@ -4549,23 +4837,23 @@
|
|
|
4549
4837
|
init(
|
|
4550
4838
|
this,
|
|
4551
4839
|
options,
|
|
4552
|
-
|
|
4553
|
-
|
|
4840
|
+
instance7,
|
|
4841
|
+
create_fragment9,
|
|
4554
4842
|
safe_not_equal,
|
|
4555
4843
|
{
|
|
4556
|
-
sessionData:
|
|
4844
|
+
sessionData: 19,
|
|
4557
4845
|
isDataSaving: 0,
|
|
4558
4846
|
isFinished: 1,
|
|
4559
4847
|
isResultCorrect: 2,
|
|
4560
|
-
isPreviewMode:
|
|
4561
|
-
isPreviewModeInteractive:
|
|
4848
|
+
isPreviewMode: 20,
|
|
4849
|
+
isPreviewModeInteractive: 21
|
|
4562
4850
|
},
|
|
4563
4851
|
null,
|
|
4564
4852
|
[-1, -1]
|
|
4565
4853
|
);
|
|
4566
4854
|
}
|
|
4567
4855
|
get sessionData() {
|
|
4568
|
-
return this.$$.ctx[
|
|
4856
|
+
return this.$$.ctx[19];
|
|
4569
4857
|
}
|
|
4570
4858
|
set sessionData(sessionData) {
|
|
4571
4859
|
this.$$set({ sessionData });
|
|
@@ -4593,14 +4881,14 @@
|
|
|
4593
4881
|
flush();
|
|
4594
4882
|
}
|
|
4595
4883
|
get isPreviewMode() {
|
|
4596
|
-
return this.$$.ctx[
|
|
4884
|
+
return this.$$.ctx[20];
|
|
4597
4885
|
}
|
|
4598
4886
|
set isPreviewMode(isPreviewMode) {
|
|
4599
4887
|
this.$$set({ isPreviewMode });
|
|
4600
4888
|
flush();
|
|
4601
4889
|
}
|
|
4602
4890
|
get isPreviewModeInteractive() {
|
|
4603
|
-
return this.$$.ctx[
|
|
4891
|
+
return this.$$.ctx[21];
|
|
4604
4892
|
}
|
|
4605
4893
|
set isPreviewModeInteractive(isPreviewModeInteractive) {
|
|
4606
4894
|
this.$$set({ isPreviewModeInteractive });
|
|
@@ -6611,7 +6899,7 @@
|
|
|
6611
6899
|
}
|
|
6612
6900
|
|
|
6613
6901
|
// src/lib/assets/img/product/GripVertical.svelte
|
|
6614
|
-
function
|
|
6902
|
+
function create_fragment10(ctx) {
|
|
6615
6903
|
let svg;
|
|
6616
6904
|
let path;
|
|
6617
6905
|
return {
|
|
@@ -6645,14 +6933,14 @@
|
|
|
6645
6933
|
var GripVertical = class extends SvelteComponent {
|
|
6646
6934
|
constructor(options) {
|
|
6647
6935
|
super();
|
|
6648
|
-
init(this, options, null,
|
|
6936
|
+
init(this, options, null, create_fragment10, safe_not_equal, {});
|
|
6649
6937
|
}
|
|
6650
6938
|
};
|
|
6651
6939
|
create_custom_element(GripVertical, {}, [], [], true);
|
|
6652
6940
|
var GripVertical_default = GripVertical;
|
|
6653
6941
|
|
|
6654
6942
|
// src/lib/assets/img/messaging/Success.svelte
|
|
6655
|
-
function
|
|
6943
|
+
function create_fragment11(ctx) {
|
|
6656
6944
|
let svg;
|
|
6657
6945
|
let path;
|
|
6658
6946
|
return {
|
|
@@ -6686,7 +6974,7 @@
|
|
|
6686
6974
|
var Success = class extends SvelteComponent {
|
|
6687
6975
|
constructor(options) {
|
|
6688
6976
|
super();
|
|
6689
|
-
init(this, options, null,
|
|
6977
|
+
init(this, options, null, create_fragment11, safe_not_equal, {});
|
|
6690
6978
|
}
|
|
6691
6979
|
};
|
|
6692
6980
|
create_custom_element(Success, {}, [], [], true);
|
|
@@ -6720,7 +7008,7 @@
|
|
|
6720
7008
|
}
|
|
6721
7009
|
};
|
|
6722
7010
|
}
|
|
6723
|
-
function
|
|
7011
|
+
function create_if_block_34(ctx) {
|
|
6724
7012
|
let span;
|
|
6725
7013
|
let success;
|
|
6726
7014
|
let current;
|
|
@@ -6856,7 +7144,7 @@
|
|
|
6856
7144
|
}
|
|
6857
7145
|
};
|
|
6858
7146
|
}
|
|
6859
|
-
function
|
|
7147
|
+
function create_fragment12(ctx) {
|
|
6860
7148
|
let button;
|
|
6861
7149
|
let span0;
|
|
6862
7150
|
let commonstringtohtml;
|
|
@@ -6880,7 +7168,7 @@
|
|
|
6880
7168
|
/*word*/
|
|
6881
7169
|
ctx[1]
|
|
6882
7170
|
) } });
|
|
6883
|
-
const if_block_creators = [create_if_block_16, create_if_block_25,
|
|
7171
|
+
const if_block_creators = [create_if_block_16, create_if_block_25, create_if_block_34, create_else_block3];
|
|
6884
7172
|
const if_blocks = [];
|
|
6885
7173
|
function select_block_type(ctx2, dirty) {
|
|
6886
7174
|
if (
|
|
@@ -7177,7 +7465,7 @@
|
|
|
7177
7465
|
}
|
|
7178
7466
|
};
|
|
7179
7467
|
}
|
|
7180
|
-
function
|
|
7468
|
+
function instance8($$self, $$props, $$invalidate) {
|
|
7181
7469
|
let { word = "" } = $$props;
|
|
7182
7470
|
let { resultType = "" } = $$props;
|
|
7183
7471
|
let { otherClass = "" } = $$props;
|
|
@@ -7333,7 +7621,7 @@
|
|
|
7333
7621
|
var PromptCategoriseWordButton = class extends SvelteComponent {
|
|
7334
7622
|
constructor(options) {
|
|
7335
7623
|
super();
|
|
7336
|
-
init(this, options,
|
|
7624
|
+
init(this, options, instance8, create_fragment12, safe_not_equal, {
|
|
7337
7625
|
word: 1,
|
|
7338
7626
|
resultType: 0,
|
|
7339
7627
|
otherClass: 2,
|
|
@@ -7462,7 +7750,7 @@
|
|
|
7462
7750
|
// src/lib/components/prompt/categorise/PromptCategoriseDndContainer.svelte
|
|
7463
7751
|
function get_each_context2(ctx, list, i) {
|
|
7464
7752
|
const child_ctx = ctx.slice();
|
|
7465
|
-
child_ctx[
|
|
7753
|
+
child_ctx[39] = list[i];
|
|
7466
7754
|
return child_ctx;
|
|
7467
7755
|
}
|
|
7468
7756
|
function create_if_block_26(ctx) {
|
|
@@ -7480,7 +7768,7 @@
|
|
|
7480
7768
|
ctx[1]
|
|
7481
7769
|
);
|
|
7482
7770
|
attr(button, "class", button_class_value = "focus-ring absolute inset-0 bg-transparent rounded-lg focus-visible:border " + /*isContainerWordBin*/
|
|
7483
|
-
(ctx[
|
|
7771
|
+
(ctx[23] ? "focus-visible:border-gray-400" : "focus-visible:border-gray-800"));
|
|
7484
7772
|
},
|
|
7485
7773
|
m(target, anchor) {
|
|
7486
7774
|
insert(target, button, anchor);
|
|
@@ -7489,7 +7777,7 @@
|
|
|
7489
7777
|
button,
|
|
7490
7778
|
"click",
|
|
7491
7779
|
/*addAnswerItem*/
|
|
7492
|
-
ctx[
|
|
7780
|
+
ctx[26]
|
|
7493
7781
|
);
|
|
7494
7782
|
mounted = true;
|
|
7495
7783
|
}
|
|
@@ -7534,13 +7822,13 @@
|
|
|
7534
7822
|
div,
|
|
7535
7823
|
"click",
|
|
7536
7824
|
/*addAnswerItem*/
|
|
7537
|
-
ctx[
|
|
7825
|
+
ctx[26]
|
|
7538
7826
|
),
|
|
7539
7827
|
listen(
|
|
7540
7828
|
div,
|
|
7541
7829
|
"keypress",
|
|
7542
7830
|
/*addAnswerItem*/
|
|
7543
|
-
ctx[
|
|
7831
|
+
ctx[26]
|
|
7544
7832
|
)
|
|
7545
7833
|
];
|
|
7546
7834
|
mounted = true;
|
|
@@ -7595,31 +7883,31 @@
|
|
|
7595
7883
|
let current;
|
|
7596
7884
|
let if_block = (
|
|
7597
7885
|
/*item*/
|
|
7598
|
-
ctx[
|
|
7886
|
+
ctx[39].type === ANSWER_MISSED && create_if_block8(ctx)
|
|
7599
7887
|
);
|
|
7600
7888
|
promptcategorisewordbutton = new PromptCategoriseWordButton_default({
|
|
7601
7889
|
props: {
|
|
7602
7890
|
otherClass: "mr-2 mb-2 last:mr-0 " + /*item*/
|
|
7603
|
-
(ctx[
|
|
7604
|
-
ctx[
|
|
7891
|
+
(ctx[39].id === /*considerItemId*/
|
|
7892
|
+
ctx[12] ? "!bg-violet-150" : "") + "\n " + (!/*showButton*/
|
|
7605
7893
|
ctx[6] ? "hidden md:flex" : "") + "\n " + /*items*/
|
|
7606
|
-
(ctx[
|
|
7894
|
+
(ctx[20][
|
|
7607
7895
|
/*currentWordBinIndex*/
|
|
7608
|
-
ctx[
|
|
7896
|
+
ctx[16]
|
|
7609
7897
|
]?.id !== /*item*/
|
|
7610
|
-
ctx[
|
|
7611
|
-
ctx[
|
|
7898
|
+
ctx[39].id && /*isContainerWordBin*/
|
|
7899
|
+
ctx[23] ? "hidden md:flex" : ""),
|
|
7612
7900
|
word: (
|
|
7613
7901
|
/*item*/
|
|
7614
|
-
ctx[
|
|
7902
|
+
ctx[39].text
|
|
7615
7903
|
),
|
|
7616
7904
|
wordButtonId: (
|
|
7617
7905
|
/*item*/
|
|
7618
|
-
ctx[
|
|
7906
|
+
ctx[39].id
|
|
7619
7907
|
),
|
|
7620
7908
|
isClonedItem: (
|
|
7621
7909
|
/*item*/
|
|
7622
|
-
ctx[
|
|
7910
|
+
ctx[39].isClonedItem
|
|
7623
7911
|
),
|
|
7624
7912
|
containerId: (
|
|
7625
7913
|
/*containerId*/
|
|
@@ -7627,10 +7915,10 @@
|
|
|
7627
7915
|
),
|
|
7628
7916
|
wordFocus: (
|
|
7629
7917
|
/*currentTabContainer*/
|
|
7630
|
-
ctx[
|
|
7918
|
+
ctx[18] === /*containerId*/
|
|
7631
7919
|
ctx[4] && /*item*/
|
|
7632
|
-
ctx[
|
|
7633
|
-
ctx[
|
|
7920
|
+
ctx[39].id === /*items*/
|
|
7921
|
+
ctx[20][0].id
|
|
7634
7922
|
),
|
|
7635
7923
|
disabledClick: (
|
|
7636
7924
|
/*isFinished*/
|
|
@@ -7638,7 +7926,7 @@
|
|
|
7638
7926
|
),
|
|
7639
7927
|
resultType: (
|
|
7640
7928
|
/*item*/
|
|
7641
|
-
ctx[
|
|
7929
|
+
ctx[39].type
|
|
7642
7930
|
),
|
|
7643
7931
|
categoryData: (
|
|
7644
7932
|
/*categoryData*/
|
|
@@ -7657,7 +7945,7 @@
|
|
|
7657
7945
|
promptcategorisewordbutton.$on(
|
|
7658
7946
|
"updateCategorySettings",
|
|
7659
7947
|
/*updateCategoryByButton*/
|
|
7660
|
-
ctx[
|
|
7948
|
+
ctx[27]
|
|
7661
7949
|
);
|
|
7662
7950
|
return {
|
|
7663
7951
|
key: key_1,
|
|
@@ -7682,7 +7970,7 @@
|
|
|
7682
7970
|
ctx = new_ctx;
|
|
7683
7971
|
if (
|
|
7684
7972
|
/*item*/
|
|
7685
|
-
ctx[
|
|
7973
|
+
ctx[39].type === ANSWER_MISSED
|
|
7686
7974
|
) {
|
|
7687
7975
|
if (if_block) {
|
|
7688
7976
|
if_block.p(ctx, dirty);
|
|
@@ -7697,48 +7985,48 @@
|
|
|
7697
7985
|
}
|
|
7698
7986
|
const promptcategorisewordbutton_changes = {};
|
|
7699
7987
|
if (dirty[0] & /*items, considerItemId, showButton, currentWordBinIndex*/
|
|
7700
|
-
|
|
7988
|
+
1118272)
|
|
7701
7989
|
promptcategorisewordbutton_changes.otherClass = "mr-2 mb-2 last:mr-0 " + /*item*/
|
|
7702
|
-
(ctx[
|
|
7703
|
-
ctx[
|
|
7990
|
+
(ctx[39].id === /*considerItemId*/
|
|
7991
|
+
ctx[12] ? "!bg-violet-150" : "") + "\n " + (!/*showButton*/
|
|
7704
7992
|
ctx[6] ? "hidden md:flex" : "") + "\n " + /*items*/
|
|
7705
|
-
(ctx[
|
|
7993
|
+
(ctx[20][
|
|
7706
7994
|
/*currentWordBinIndex*/
|
|
7707
|
-
ctx[
|
|
7995
|
+
ctx[16]
|
|
7708
7996
|
]?.id !== /*item*/
|
|
7709
|
-
ctx[
|
|
7710
|
-
ctx[
|
|
7997
|
+
ctx[39].id && /*isContainerWordBin*/
|
|
7998
|
+
ctx[23] ? "hidden md:flex" : "");
|
|
7711
7999
|
if (dirty[0] & /*items*/
|
|
7712
|
-
|
|
8000
|
+
1048576)
|
|
7713
8001
|
promptcategorisewordbutton_changes.word = /*item*/
|
|
7714
|
-
ctx[
|
|
8002
|
+
ctx[39].text;
|
|
7715
8003
|
if (dirty[0] & /*items*/
|
|
7716
|
-
|
|
8004
|
+
1048576)
|
|
7717
8005
|
promptcategorisewordbutton_changes.wordButtonId = /*item*/
|
|
7718
|
-
ctx[
|
|
8006
|
+
ctx[39].id;
|
|
7719
8007
|
if (dirty[0] & /*items*/
|
|
7720
|
-
|
|
8008
|
+
1048576)
|
|
7721
8009
|
promptcategorisewordbutton_changes.isClonedItem = /*item*/
|
|
7722
|
-
ctx[
|
|
8010
|
+
ctx[39].isClonedItem;
|
|
7723
8011
|
if (dirty[0] & /*containerId*/
|
|
7724
8012
|
16)
|
|
7725
8013
|
promptcategorisewordbutton_changes.containerId = /*containerId*/
|
|
7726
8014
|
ctx[4];
|
|
7727
8015
|
if (dirty[0] & /*currentTabContainer, containerId, items*/
|
|
7728
|
-
|
|
8016
|
+
1310736)
|
|
7729
8017
|
promptcategorisewordbutton_changes.wordFocus = /*currentTabContainer*/
|
|
7730
|
-
ctx[
|
|
8018
|
+
ctx[18] === /*containerId*/
|
|
7731
8019
|
ctx[4] && /*item*/
|
|
7732
|
-
ctx[
|
|
7733
|
-
ctx[
|
|
8020
|
+
ctx[39].id === /*items*/
|
|
8021
|
+
ctx[20][0].id;
|
|
7734
8022
|
if (dirty[0] & /*isFinished*/
|
|
7735
8023
|
256)
|
|
7736
8024
|
promptcategorisewordbutton_changes.disabledClick = /*isFinished*/
|
|
7737
8025
|
ctx[8];
|
|
7738
8026
|
if (dirty[0] & /*items*/
|
|
7739
|
-
|
|
8027
|
+
1048576)
|
|
7740
8028
|
promptcategorisewordbutton_changes.resultType = /*item*/
|
|
7741
|
-
ctx[
|
|
8029
|
+
ctx[39].type;
|
|
7742
8030
|
if (dirty[0] & /*categoryData*/
|
|
7743
8031
|
1)
|
|
7744
8032
|
promptcategorisewordbutton_changes.categoryData = /*categoryData*/
|
|
@@ -7774,7 +8062,7 @@
|
|
|
7774
8062
|
}
|
|
7775
8063
|
};
|
|
7776
8064
|
}
|
|
7777
|
-
function
|
|
8065
|
+
function create_fragment13(ctx) {
|
|
7778
8066
|
let t0;
|
|
7779
8067
|
let t1;
|
|
7780
8068
|
let section;
|
|
@@ -7788,23 +8076,24 @@
|
|
|
7788
8076
|
let dispose;
|
|
7789
8077
|
let if_block0 = (
|
|
7790
8078
|
/*dragDisabled*/
|
|
7791
|
-
ctx[
|
|
7792
|
-
ctx[
|
|
8079
|
+
ctx[14] && /*sourceSelectedContainerId*/
|
|
8080
|
+
ctx[15] !== /*containerId*/
|
|
7793
8081
|
ctx[4] && !/*isFinished*/
|
|
7794
|
-
ctx[8] &&
|
|
8082
|
+
ctx[8] && !/*isDataSaving*/
|
|
8083
|
+
ctx[11] && create_if_block_26(ctx)
|
|
7795
8084
|
);
|
|
7796
8085
|
let if_block1 = (
|
|
7797
8086
|
/*totalRemainingWordBinItem*/
|
|
7798
|
-
ctx[
|
|
7799
|
-
ctx[
|
|
8087
|
+
ctx[17] <= 0 && /*isContainerWordBin*/
|
|
8088
|
+
ctx[23] && create_if_block_17(ctx)
|
|
7800
8089
|
);
|
|
7801
8090
|
let each_value = ensure_array_like(Object.values(
|
|
7802
8091
|
/*items*/
|
|
7803
|
-
ctx[
|
|
8092
|
+
ctx[20]
|
|
7804
8093
|
));
|
|
7805
8094
|
const get_key = (ctx2) => (
|
|
7806
8095
|
/*item*/
|
|
7807
|
-
ctx2[
|
|
8096
|
+
ctx2[39].id
|
|
7808
8097
|
);
|
|
7809
8098
|
for (let i = 0; i < each_value.length; i += 1) {
|
|
7810
8099
|
let child_ctx = get_each_context2(ctx, each_value, i);
|
|
@@ -7830,7 +8119,7 @@
|
|
|
7830
8119
|
section,
|
|
7831
8120
|
"aria-hidden",
|
|
7832
8121
|
/*isItemsAriaHidden*/
|
|
7833
|
-
ctx[
|
|
8122
|
+
ctx[21]
|
|
7834
8123
|
);
|
|
7835
8124
|
attr(section, "aria-dropeffect", "move");
|
|
7836
8125
|
attr(
|
|
@@ -7840,7 +8129,7 @@
|
|
|
7840
8129
|
ctx[4]
|
|
7841
8130
|
);
|
|
7842
8131
|
attr(section, "style", section_style_value = !/*isContainerWordBin*/
|
|
7843
|
-
ctx[
|
|
8132
|
+
ctx[23] ? `padding-top: ${/*paddingTop*/
|
|
7844
8133
|
ctx[7]}px;` : "");
|
|
7845
8134
|
},
|
|
7846
8135
|
m(target, anchor) {
|
|
@@ -7862,7 +8151,7 @@
|
|
|
7862
8151
|
action_destroyer(dndzone_action = dndzone$2.call(null, section, {
|
|
7863
8152
|
items: (
|
|
7864
8153
|
/*items*/
|
|
7865
|
-
ctx[
|
|
8154
|
+
ctx[20]
|
|
7866
8155
|
),
|
|
7867
8156
|
flipDurationMs: (
|
|
7868
8157
|
/*flipDurationMs*/
|
|
@@ -7874,20 +8163,20 @@
|
|
|
7874
8163
|
),
|
|
7875
8164
|
dropTargetClasses: (
|
|
7876
8165
|
/*dropTargetClasses*/
|
|
7877
|
-
ctx[
|
|
8166
|
+
ctx[22]
|
|
7878
8167
|
),
|
|
7879
8168
|
morphDisabled: true,
|
|
7880
8169
|
dragDisabled: (
|
|
7881
8170
|
/*dragDisabled*/
|
|
7882
|
-
ctx[
|
|
8171
|
+
ctx[14]
|
|
7883
8172
|
),
|
|
7884
8173
|
autoAriaDisabled: true,
|
|
7885
8174
|
zoneItemTabIndex: (
|
|
7886
8175
|
/*currentTabContainer*/
|
|
7887
|
-
ctx[
|
|
8176
|
+
ctx[18] !== /*containerId*/
|
|
7888
8177
|
ctx[4] || /*selectedItemId*/
|
|
7889
|
-
ctx[
|
|
7890
|
-
ctx[
|
|
8178
|
+
ctx[13] || /*isModalOpen*/
|
|
8179
|
+
ctx[19] ? -1 : 0
|
|
7891
8180
|
),
|
|
7892
8181
|
zoneTabIndex: -1
|
|
7893
8182
|
})),
|
|
@@ -7895,13 +8184,13 @@
|
|
|
7895
8184
|
section,
|
|
7896
8185
|
"consider",
|
|
7897
8186
|
/*handleDndConsider*/
|
|
7898
|
-
ctx[
|
|
8187
|
+
ctx[24]
|
|
7899
8188
|
),
|
|
7900
8189
|
listen(
|
|
7901
8190
|
section,
|
|
7902
8191
|
"finalize",
|
|
7903
8192
|
/*handleDndFinalize*/
|
|
7904
|
-
ctx[
|
|
8193
|
+
ctx[25]
|
|
7905
8194
|
)
|
|
7906
8195
|
];
|
|
7907
8196
|
mounted = true;
|
|
@@ -7910,10 +8199,11 @@
|
|
|
7910
8199
|
p(ctx2, dirty) {
|
|
7911
8200
|
if (
|
|
7912
8201
|
/*dragDisabled*/
|
|
7913
|
-
ctx2[
|
|
7914
|
-
ctx2[
|
|
8202
|
+
ctx2[14] && /*sourceSelectedContainerId*/
|
|
8203
|
+
ctx2[15] !== /*containerId*/
|
|
7915
8204
|
ctx2[4] && !/*isFinished*/
|
|
7916
|
-
ctx2[8]
|
|
8205
|
+
ctx2[8] && !/*isDataSaving*/
|
|
8206
|
+
ctx2[11]
|
|
7917
8207
|
) {
|
|
7918
8208
|
if (if_block0) {
|
|
7919
8209
|
if_block0.p(ctx2, dirty);
|
|
@@ -7928,8 +8218,8 @@
|
|
|
7928
8218
|
}
|
|
7929
8219
|
if (
|
|
7930
8220
|
/*totalRemainingWordBinItem*/
|
|
7931
|
-
ctx2[
|
|
7932
|
-
ctx2[
|
|
8221
|
+
ctx2[17] <= 0 && /*isContainerWordBin*/
|
|
8222
|
+
ctx2[23]
|
|
7933
8223
|
) {
|
|
7934
8224
|
if (if_block1) {
|
|
7935
8225
|
if_block1.p(ctx2, dirty);
|
|
@@ -7943,10 +8233,10 @@
|
|
|
7943
8233
|
if_block1 = null;
|
|
7944
8234
|
}
|
|
7945
8235
|
if (dirty[0] & /*items, considerItemId, showButton, currentWordBinIndex, isContainerWordBin, containerId, currentTabContainer, isFinished, categoryData, correctAnswerList, isPreviewModeInteractive, updateCategoryByButton*/
|
|
7946
|
-
|
|
8236
|
+
143988561) {
|
|
7947
8237
|
each_value = ensure_array_like(Object.values(
|
|
7948
8238
|
/*items*/
|
|
7949
|
-
ctx2[
|
|
8239
|
+
ctx2[20]
|
|
7950
8240
|
));
|
|
7951
8241
|
group_outros();
|
|
7952
8242
|
each_blocks = update_keyed_each(each_blocks, dirty, get_key, 1, ctx2, each_value, each_1_lookup, section, outro_and_destroy_block, create_each_block2, null, get_each_context2);
|
|
@@ -7958,12 +8248,12 @@
|
|
|
7958
8248
|
attr(section, "class", section_class_value);
|
|
7959
8249
|
}
|
|
7960
8250
|
if (!current || dirty[0] & /*isItemsAriaHidden*/
|
|
7961
|
-
|
|
8251
|
+
2097152) {
|
|
7962
8252
|
attr(
|
|
7963
8253
|
section,
|
|
7964
8254
|
"aria-hidden",
|
|
7965
8255
|
/*isItemsAriaHidden*/
|
|
7966
|
-
ctx2[
|
|
8256
|
+
ctx2[21]
|
|
7967
8257
|
);
|
|
7968
8258
|
}
|
|
7969
8259
|
if (!current || dirty[0] & /*containerId*/
|
|
@@ -7977,16 +8267,16 @@
|
|
|
7977
8267
|
}
|
|
7978
8268
|
if (!current || dirty[0] & /*paddingTop*/
|
|
7979
8269
|
128 && section_style_value !== (section_style_value = !/*isContainerWordBin*/
|
|
7980
|
-
ctx2[
|
|
8270
|
+
ctx2[23] ? `padding-top: ${/*paddingTop*/
|
|
7981
8271
|
ctx2[7]}px;` : "")) {
|
|
7982
8272
|
attr(section, "style", section_style_value);
|
|
7983
8273
|
}
|
|
7984
8274
|
if (dndzone_action && is_function(dndzone_action.update) && dirty[0] & /*items, flipDurationMs, type, dragDisabled, currentTabContainer, containerId, selectedItemId, isModalOpen*/
|
|
7985
|
-
|
|
8275
|
+
1859640)
|
|
7986
8276
|
dndzone_action.update.call(null, {
|
|
7987
8277
|
items: (
|
|
7988
8278
|
/*items*/
|
|
7989
|
-
ctx2[
|
|
8279
|
+
ctx2[20]
|
|
7990
8280
|
),
|
|
7991
8281
|
flipDurationMs: (
|
|
7992
8282
|
/*flipDurationMs*/
|
|
@@ -7998,20 +8288,20 @@
|
|
|
7998
8288
|
),
|
|
7999
8289
|
dropTargetClasses: (
|
|
8000
8290
|
/*dropTargetClasses*/
|
|
8001
|
-
ctx2[
|
|
8291
|
+
ctx2[22]
|
|
8002
8292
|
),
|
|
8003
8293
|
morphDisabled: true,
|
|
8004
8294
|
dragDisabled: (
|
|
8005
8295
|
/*dragDisabled*/
|
|
8006
|
-
ctx2[
|
|
8296
|
+
ctx2[14]
|
|
8007
8297
|
),
|
|
8008
8298
|
autoAriaDisabled: true,
|
|
8009
8299
|
zoneItemTabIndex: (
|
|
8010
8300
|
/*currentTabContainer*/
|
|
8011
|
-
ctx2[
|
|
8301
|
+
ctx2[18] !== /*containerId*/
|
|
8012
8302
|
ctx2[4] || /*selectedItemId*/
|
|
8013
|
-
ctx2[
|
|
8014
|
-
ctx2[
|
|
8303
|
+
ctx2[13] || /*isModalOpen*/
|
|
8304
|
+
ctx2[19] ? -1 : 0
|
|
8015
8305
|
),
|
|
8016
8306
|
zoneTabIndex: -1
|
|
8017
8307
|
});
|
|
@@ -8048,7 +8338,7 @@
|
|
|
8048
8338
|
}
|
|
8049
8339
|
};
|
|
8050
8340
|
}
|
|
8051
|
-
function
|
|
8341
|
+
function instance9($$self, $$props, $$invalidate) {
|
|
8052
8342
|
let { containerClass = "" } = $$props;
|
|
8053
8343
|
let { flipDurationMs = 5 } = $$props;
|
|
8054
8344
|
let { containerId = "" } = $$props;
|
|
@@ -8061,6 +8351,7 @@
|
|
|
8061
8351
|
let { isPreviewModeInteractive = false } = $$props;
|
|
8062
8352
|
let { categoryData = [] } = $$props;
|
|
8063
8353
|
let { modalData = [] } = $$props;
|
|
8354
|
+
let { isDataSaving = false } = $$props;
|
|
8064
8355
|
ariaLabel = useRemoveRichTextHtmlTags(ariaLabel);
|
|
8065
8356
|
let considerItemId = "";
|
|
8066
8357
|
let selectedItemId = "";
|
|
@@ -8095,7 +8386,7 @@
|
|
|
8095
8386
|
const { sourceContainerId, sourceCloneContainerId } = categoryData;
|
|
8096
8387
|
if (trigger === TRIGGERS.DRAG_STARTED) {
|
|
8097
8388
|
const { items: cateoryItems } = detail;
|
|
8098
|
-
$$invalidate(
|
|
8389
|
+
$$invalidate(20, items = cateoryItems);
|
|
8099
8390
|
const orginalId = items.filter((item) => item[SHADOW_ITEM_MARKER_PROPERTY_NAME]);
|
|
8100
8391
|
const originalItemIndex = items.findIndex((item) => item.id === orginalId[0].id);
|
|
8101
8392
|
items.splice(originalItemIndex, 1, {
|
|
@@ -8122,7 +8413,7 @@
|
|
|
8122
8413
|
const { items: categoryItems, info } = e2.detail;
|
|
8123
8414
|
const { trigger, id } = info;
|
|
8124
8415
|
const { currentWordBinIndex: currentWordBinIndex2, currentAnswer: currentAnswer2 } = categoryData;
|
|
8125
|
-
$$invalidate(
|
|
8416
|
+
$$invalidate(20, items = categoryItems.filter((item) => !item.isClonedItem));
|
|
8126
8417
|
if (trigger === TRIGGERS.DROPPED_INTO_ZONE) {
|
|
8127
8418
|
const { currentTarget } = e2;
|
|
8128
8419
|
addAnswerItemStore(id, currentTarget.id);
|
|
@@ -8300,36 +8591,38 @@
|
|
|
8300
8591
|
if ("categoryData" in $$props2)
|
|
8301
8592
|
$$invalidate(0, categoryData = $$props2.categoryData);
|
|
8302
8593
|
if ("modalData" in $$props2)
|
|
8303
|
-
$$invalidate(
|
|
8594
|
+
$$invalidate(28, modalData = $$props2.modalData);
|
|
8595
|
+
if ("isDataSaving" in $$props2)
|
|
8596
|
+
$$invalidate(11, isDataSaving = $$props2.isDataSaving);
|
|
8304
8597
|
};
|
|
8305
8598
|
$$self.$$.update = () => {
|
|
8306
8599
|
if ($$self.$$.dirty[0] & /*modalData*/
|
|
8307
|
-
|
|
8600
|
+
268435456) {
|
|
8308
8601
|
$:
|
|
8309
8602
|
if (modalData) {
|
|
8310
8603
|
const { isModalOpen: storeIsModalOpen } = modalData;
|
|
8311
|
-
$$invalidate(
|
|
8604
|
+
$$invalidate(19, isModalOpen = storeIsModalOpen);
|
|
8312
8605
|
}
|
|
8313
8606
|
}
|
|
8314
|
-
if ($$self.$$.dirty[0] & /*categoryData, isFinished, currentAnswer, containerId, considerItemId, isPreviewModeInteractive*/
|
|
8315
|
-
|
|
8607
|
+
if ($$self.$$.dirty[0] & /*categoryData, isFinished, isDataSaving, currentAnswer, containerId, considerItemId, isPreviewModeInteractive*/
|
|
8608
|
+
536878353) {
|
|
8316
8609
|
$:
|
|
8317
8610
|
if (categoryData) {
|
|
8318
8611
|
const { considerItemId: storeconsiderItemId, selectedItemId: storeSelectedItemId, currentAnswer: storeCurrentAnswer, sourceSelectedContainerId: storeSourceSelectedContainerId, currentWordBinIndex: storeCurrentWordBinIndex, currentTabContainer: storeCurrentTabContainer, isItemsAriaHidden: storeisItemsAriaHidden } = categoryData;
|
|
8319
|
-
$$invalidate(
|
|
8320
|
-
$$invalidate(
|
|
8321
|
-
$$invalidate(
|
|
8322
|
-
$$invalidate(
|
|
8323
|
-
$$invalidate(
|
|
8324
|
-
$$invalidate(
|
|
8325
|
-
$$invalidate(
|
|
8326
|
-
$$invalidate(
|
|
8612
|
+
$$invalidate(12, considerItemId = storeconsiderItemId);
|
|
8613
|
+
$$invalidate(14, dragDisabled = isFinished || !!storeSelectedItemId || isDataSaving);
|
|
8614
|
+
$$invalidate(29, currentAnswer = storeCurrentAnswer);
|
|
8615
|
+
$$invalidate(13, selectedItemId = storeSelectedItemId);
|
|
8616
|
+
$$invalidate(15, sourceSelectedContainerId = storeSourceSelectedContainerId);
|
|
8617
|
+
$$invalidate(16, currentWordBinIndex = storeCurrentWordBinIndex);
|
|
8618
|
+
$$invalidate(18, currentTabContainer = storeCurrentTabContainer);
|
|
8619
|
+
$$invalidate(21, isItemsAriaHidden = storeisItemsAriaHidden);
|
|
8327
8620
|
const storeWordBinItem = currentAnswer.filter((answer) => answer.categoryId === CONTAINER_WORD_BIN_ID);
|
|
8328
|
-
$$invalidate(
|
|
8621
|
+
$$invalidate(17, totalRemainingWordBinItem = storeWordBinItem[0].itemId.length);
|
|
8329
8622
|
if (storeCurrentAnswer) {
|
|
8330
8623
|
const currentAnswerList = currentAnswer.filter((answer) => answer.categoryId === containerId);
|
|
8331
8624
|
if (currentAnswerList.length) {
|
|
8332
|
-
$$invalidate(
|
|
8625
|
+
$$invalidate(20, items = currentAnswerList[0].itemId.map((rawAnswerId) => {
|
|
8333
8626
|
const splitId = rawAnswerId.split(EAT_DASH);
|
|
8334
8627
|
const answerId = splitId[0];
|
|
8335
8628
|
const answerIndex = rawCategoryItems.findIndex((answer) => answer.id === answerId);
|
|
@@ -8363,6 +8656,7 @@
|
|
|
8363
8656
|
isFinished,
|
|
8364
8657
|
correctAnswerList,
|
|
8365
8658
|
isPreviewModeInteractive,
|
|
8659
|
+
isDataSaving,
|
|
8366
8660
|
considerItemId,
|
|
8367
8661
|
selectedItemId,
|
|
8368
8662
|
dragDisabled,
|
|
@@ -8389,8 +8683,8 @@
|
|
|
8389
8683
|
init(
|
|
8390
8684
|
this,
|
|
8391
8685
|
options,
|
|
8392
|
-
|
|
8393
|
-
|
|
8686
|
+
instance9,
|
|
8687
|
+
create_fragment13,
|
|
8394
8688
|
safe_not_equal,
|
|
8395
8689
|
{
|
|
8396
8690
|
containerClass: 2,
|
|
@@ -8404,7 +8698,8 @@
|
|
|
8404
8698
|
correctAnswerList: 9,
|
|
8405
8699
|
isPreviewModeInteractive: 10,
|
|
8406
8700
|
categoryData: 0,
|
|
8407
|
-
modalData:
|
|
8701
|
+
modalData: 28,
|
|
8702
|
+
isDataSaving: 11
|
|
8408
8703
|
},
|
|
8409
8704
|
null,
|
|
8410
8705
|
[-1, -1]
|
|
@@ -8488,18 +8783,25 @@
|
|
|
8488
8783
|
flush();
|
|
8489
8784
|
}
|
|
8490
8785
|
get modalData() {
|
|
8491
|
-
return this.$$.ctx[
|
|
8786
|
+
return this.$$.ctx[28];
|
|
8492
8787
|
}
|
|
8493
8788
|
set modalData(modalData) {
|
|
8494
8789
|
this.$$set({ modalData });
|
|
8495
8790
|
flush();
|
|
8496
8791
|
}
|
|
8792
|
+
get isDataSaving() {
|
|
8793
|
+
return this.$$.ctx[11];
|
|
8794
|
+
}
|
|
8795
|
+
set isDataSaving(isDataSaving) {
|
|
8796
|
+
this.$$set({ isDataSaving });
|
|
8797
|
+
flush();
|
|
8798
|
+
}
|
|
8497
8799
|
};
|
|
8498
|
-
customElements.define("prompt-categorise-dnd-container", create_custom_element(PromptCategoriseDndContainer, { "containerClass": {}, "flipDurationMs": {}, "containerId": {}, "type": {}, "showButton": { "type": "Boolean" }, "paddingTop": {}, "ariaLabel": {}, "isFinished": { "type": "Boolean" }, "correctAnswerList": {}, "isPreviewModeInteractive": { "type": "Boolean" }, "categoryData": {}, "modalData": {} }, [], [], true));
|
|
8800
|
+
customElements.define("prompt-categorise-dnd-container", create_custom_element(PromptCategoriseDndContainer, { "containerClass": {}, "flipDurationMs": {}, "containerId": {}, "type": {}, "showButton": { "type": "Boolean" }, "paddingTop": {}, "ariaLabel": {}, "isFinished": { "type": "Boolean" }, "correctAnswerList": {}, "isPreviewModeInteractive": { "type": "Boolean" }, "categoryData": {}, "modalData": {}, "isDataSaving": { "type": "Boolean" } }, [], [], true));
|
|
8499
8801
|
var PromptCategoriseDndContainer_default = PromptCategoriseDndContainer;
|
|
8500
8802
|
|
|
8501
8803
|
// src/lib/components/common/CommonModal.svelte
|
|
8502
|
-
function
|
|
8804
|
+
function create_fragment14(ctx) {
|
|
8503
8805
|
let div2;
|
|
8504
8806
|
let div0;
|
|
8505
8807
|
let t2;
|
|
@@ -8631,7 +8933,7 @@
|
|
|
8631
8933
|
var keypress_handler = () => {
|
|
8632
8934
|
return false;
|
|
8633
8935
|
};
|
|
8634
|
-
function
|
|
8936
|
+
function instance10($$self, $$props, $$invalidate) {
|
|
8635
8937
|
let { $$slots: slots = {}, $$scope } = $$props;
|
|
8636
8938
|
let { modalData = [] } = $$props;
|
|
8637
8939
|
const dispatch = createEventDispatcher();
|
|
@@ -8663,7 +8965,7 @@
|
|
|
8663
8965
|
var CommonModal = class extends SvelteComponent {
|
|
8664
8966
|
constructor(options) {
|
|
8665
8967
|
super();
|
|
8666
|
-
init(this, options,
|
|
8968
|
+
init(this, options, instance10, create_fragment14, safe_not_equal, { modalData: 3 });
|
|
8667
8969
|
}
|
|
8668
8970
|
get modalData() {
|
|
8669
8971
|
return this.$$.ctx[3];
|
|
@@ -8677,7 +8979,7 @@
|
|
|
8677
8979
|
var CommonModal_default = CommonModal;
|
|
8678
8980
|
|
|
8679
8981
|
// src/lib/assets/img/messaging/AlertIcon.svelte
|
|
8680
|
-
function
|
|
8982
|
+
function create_fragment15(ctx) {
|
|
8681
8983
|
let svg;
|
|
8682
8984
|
let path;
|
|
8683
8985
|
return {
|
|
@@ -8711,14 +9013,14 @@
|
|
|
8711
9013
|
var AlertIcon = class extends SvelteComponent {
|
|
8712
9014
|
constructor(options) {
|
|
8713
9015
|
super();
|
|
8714
|
-
init(this, options, null,
|
|
9016
|
+
init(this, options, null, create_fragment15, safe_not_equal, {});
|
|
8715
9017
|
}
|
|
8716
9018
|
};
|
|
8717
9019
|
create_custom_element(AlertIcon, {}, [], [], true);
|
|
8718
9020
|
var AlertIcon_default = AlertIcon;
|
|
8719
9021
|
|
|
8720
9022
|
// src/lib/assets/img/messaging/CrossIcon.svelte
|
|
8721
|
-
function
|
|
9023
|
+
function create_fragment16(ctx) {
|
|
8722
9024
|
let svg;
|
|
8723
9025
|
let path;
|
|
8724
9026
|
return {
|
|
@@ -8752,7 +9054,7 @@
|
|
|
8752
9054
|
var CrossIcon = class extends SvelteComponent {
|
|
8753
9055
|
constructor(options) {
|
|
8754
9056
|
super();
|
|
8755
|
-
init(this, options, null,
|
|
9057
|
+
init(this, options, null, create_fragment16, safe_not_equal, {});
|
|
8756
9058
|
}
|
|
8757
9059
|
};
|
|
8758
9060
|
create_custom_element(CrossIcon, {}, [], [], true);
|
|
@@ -8912,7 +9214,7 @@
|
|
|
8912
9214
|
}
|
|
8913
9215
|
};
|
|
8914
9216
|
}
|
|
8915
|
-
function
|
|
9217
|
+
function create_fragment17(ctx) {
|
|
8916
9218
|
let commonmodal;
|
|
8917
9219
|
let current;
|
|
8918
9220
|
commonmodal = new CommonModal_default({
|
|
@@ -8965,7 +9267,7 @@
|
|
|
8965
9267
|
}
|
|
8966
9268
|
};
|
|
8967
9269
|
}
|
|
8968
|
-
function
|
|
9270
|
+
function instance11($$self, $$props, $$invalidate) {
|
|
8969
9271
|
let { categoryData = [] } = $$props;
|
|
8970
9272
|
let { modalData = [] } = $$props;
|
|
8971
9273
|
let categoryModal;
|
|
@@ -9048,7 +9350,7 @@
|
|
|
9048
9350
|
var PromptCategoriseModal = class extends SvelteComponent {
|
|
9049
9351
|
constructor(options) {
|
|
9050
9352
|
super();
|
|
9051
|
-
init(this, options,
|
|
9353
|
+
init(this, options, instance11, create_fragment17, safe_not_equal, { categoryData: 6, modalData: 0 });
|
|
9052
9354
|
}
|
|
9053
9355
|
get categoryData() {
|
|
9054
9356
|
return this.$$.ctx[6];
|
|
@@ -9069,7 +9371,7 @@
|
|
|
9069
9371
|
var PromptCategoriseModal_default = PromptCategoriseModal;
|
|
9070
9372
|
|
|
9071
9373
|
// src/lib/assets/img/action/Switch.svelte
|
|
9072
|
-
function
|
|
9374
|
+
function create_fragment18(ctx) {
|
|
9073
9375
|
let svg;
|
|
9074
9376
|
let path;
|
|
9075
9377
|
return {
|
|
@@ -9101,14 +9403,14 @@
|
|
|
9101
9403
|
var Switch = class extends SvelteComponent {
|
|
9102
9404
|
constructor(options) {
|
|
9103
9405
|
super();
|
|
9104
|
-
init(this, options, null,
|
|
9406
|
+
init(this, options, null, create_fragment18, safe_not_equal, {});
|
|
9105
9407
|
}
|
|
9106
9408
|
};
|
|
9107
9409
|
create_custom_element(Switch, {}, [], [], true);
|
|
9108
9410
|
var Switch_default = Switch;
|
|
9109
9411
|
|
|
9110
9412
|
// src/lib/assets/img/messaging/SmallChevronUp.svelte
|
|
9111
|
-
function
|
|
9413
|
+
function create_fragment19(ctx) {
|
|
9112
9414
|
let svg;
|
|
9113
9415
|
let path;
|
|
9114
9416
|
return {
|
|
@@ -9142,14 +9444,14 @@
|
|
|
9142
9444
|
var SmallChevronUp = class extends SvelteComponent {
|
|
9143
9445
|
constructor(options) {
|
|
9144
9446
|
super();
|
|
9145
|
-
init(this, options, null,
|
|
9447
|
+
init(this, options, null, create_fragment19, safe_not_equal, {});
|
|
9146
9448
|
}
|
|
9147
9449
|
};
|
|
9148
9450
|
create_custom_element(SmallChevronUp, {}, [], [], true);
|
|
9149
9451
|
var SmallChevronUp_default = SmallChevronUp;
|
|
9150
9452
|
|
|
9151
9453
|
// src/lib/assets/img/messaging/SmallChevronDown.svelte
|
|
9152
|
-
function
|
|
9454
|
+
function create_fragment20(ctx) {
|
|
9153
9455
|
let svg;
|
|
9154
9456
|
let path;
|
|
9155
9457
|
return {
|
|
@@ -9183,14 +9485,14 @@
|
|
|
9183
9485
|
var SmallChevronDown = class extends SvelteComponent {
|
|
9184
9486
|
constructor(options) {
|
|
9185
9487
|
super();
|
|
9186
|
-
init(this, options, null,
|
|
9488
|
+
init(this, options, null, create_fragment20, safe_not_equal, {});
|
|
9187
9489
|
}
|
|
9188
9490
|
};
|
|
9189
9491
|
create_custom_element(SmallChevronDown, {}, [], [], true);
|
|
9190
9492
|
var SmallChevronDown_default = SmallChevronDown;
|
|
9191
9493
|
|
|
9192
9494
|
// src/lib/assets/img/messaging/SmallChevronLeft.svelte
|
|
9193
|
-
function
|
|
9495
|
+
function create_fragment21(ctx) {
|
|
9194
9496
|
let svg;
|
|
9195
9497
|
let path;
|
|
9196
9498
|
return {
|
|
@@ -9224,14 +9526,14 @@
|
|
|
9224
9526
|
var SmallChevronLeft = class extends SvelteComponent {
|
|
9225
9527
|
constructor(options) {
|
|
9226
9528
|
super();
|
|
9227
|
-
init(this, options, null,
|
|
9529
|
+
init(this, options, null, create_fragment21, safe_not_equal, {});
|
|
9228
9530
|
}
|
|
9229
9531
|
};
|
|
9230
9532
|
create_custom_element(SmallChevronLeft, {}, [], [], true);
|
|
9231
9533
|
var SmallChevronLeft_default = SmallChevronLeft;
|
|
9232
9534
|
|
|
9233
9535
|
// src/lib/assets/img/messaging/SmallChevronRight.svelte
|
|
9234
|
-
function
|
|
9536
|
+
function create_fragment22(ctx) {
|
|
9235
9537
|
let svg;
|
|
9236
9538
|
let path;
|
|
9237
9539
|
return {
|
|
@@ -9265,14 +9567,14 @@
|
|
|
9265
9567
|
var SmallChevronRight = class extends SvelteComponent {
|
|
9266
9568
|
constructor(options) {
|
|
9267
9569
|
super();
|
|
9268
|
-
init(this, options, null,
|
|
9570
|
+
init(this, options, null, create_fragment22, safe_not_equal, {});
|
|
9269
9571
|
}
|
|
9270
9572
|
};
|
|
9271
9573
|
create_custom_element(SmallChevronRight, {}, [], [], true);
|
|
9272
9574
|
var SmallChevronRight_default = SmallChevronRight;
|
|
9273
9575
|
|
|
9274
9576
|
// src/lib/assets/img/messaging/ArrowDownCircle.svelte
|
|
9275
|
-
function
|
|
9577
|
+
function create_fragment23(ctx) {
|
|
9276
9578
|
let svg;
|
|
9277
9579
|
let path;
|
|
9278
9580
|
return {
|
|
@@ -9306,7 +9608,7 @@
|
|
|
9306
9608
|
var ArrowDownCircle = class extends SvelteComponent {
|
|
9307
9609
|
constructor(options) {
|
|
9308
9610
|
super();
|
|
9309
|
-
init(this, options, null,
|
|
9611
|
+
init(this, options, null, create_fragment23, safe_not_equal, {});
|
|
9310
9612
|
}
|
|
9311
9613
|
};
|
|
9312
9614
|
create_custom_element(ArrowDownCircle, {}, [], [], true);
|
|
@@ -9477,9 +9779,9 @@
|
|
|
9477
9779
|
// src/lib/components/prompt/categorise/PromptCategorise.svelte
|
|
9478
9780
|
function get_each_context3(ctx, list, i) {
|
|
9479
9781
|
const child_ctx = ctx.slice();
|
|
9480
|
-
child_ctx[
|
|
9481
|
-
child_ctx[
|
|
9482
|
-
child_ctx[
|
|
9782
|
+
child_ctx[68] = list[i];
|
|
9783
|
+
child_ctx[69] = list;
|
|
9784
|
+
child_ctx[70] = i;
|
|
9483
9785
|
return child_ctx;
|
|
9484
9786
|
}
|
|
9485
9787
|
function create_if_block_72(ctx) {
|
|
@@ -9489,28 +9791,28 @@
|
|
|
9489
9791
|
props: {
|
|
9490
9792
|
categoryData: (
|
|
9491
9793
|
/*categoriseSettingsData*/
|
|
9492
|
-
ctx[
|
|
9794
|
+
ctx[7]
|
|
9493
9795
|
),
|
|
9494
9796
|
modalData: (
|
|
9495
9797
|
/*modalSettingsData*/
|
|
9496
|
-
ctx[
|
|
9798
|
+
ctx[8]
|
|
9497
9799
|
)
|
|
9498
9800
|
}
|
|
9499
9801
|
});
|
|
9500
9802
|
promptcategorisemodal.$on(
|
|
9501
9803
|
"updateCategorySettings",
|
|
9502
9804
|
/*updateCategory*/
|
|
9503
|
-
ctx[
|
|
9805
|
+
ctx[41]
|
|
9504
9806
|
);
|
|
9505
9807
|
promptcategorisemodal.$on(
|
|
9506
9808
|
"updateModalSettings",
|
|
9507
9809
|
/*updateModal*/
|
|
9508
|
-
ctx[
|
|
9810
|
+
ctx[47]
|
|
9509
9811
|
);
|
|
9510
9812
|
promptcategorisemodal.$on(
|
|
9511
9813
|
"resetCategory",
|
|
9512
9814
|
/*saveCategory*/
|
|
9513
|
-
ctx[
|
|
9815
|
+
ctx[40]
|
|
9514
9816
|
);
|
|
9515
9817
|
return {
|
|
9516
9818
|
c() {
|
|
@@ -9523,13 +9825,13 @@
|
|
|
9523
9825
|
p(ctx2, dirty) {
|
|
9524
9826
|
const promptcategorisemodal_changes = {};
|
|
9525
9827
|
if (dirty[0] & /*categoriseSettingsData*/
|
|
9526
|
-
|
|
9828
|
+
128)
|
|
9527
9829
|
promptcategorisemodal_changes.categoryData = /*categoriseSettingsData*/
|
|
9528
|
-
ctx2[
|
|
9830
|
+
ctx2[7];
|
|
9529
9831
|
if (dirty[0] & /*modalSettingsData*/
|
|
9530
|
-
|
|
9832
|
+
256)
|
|
9531
9833
|
promptcategorisemodal_changes.modalData = /*modalSettingsData*/
|
|
9532
|
-
ctx2[
|
|
9834
|
+
ctx2[8];
|
|
9533
9835
|
promptcategorisemodal.$set(promptcategorisemodal_changes);
|
|
9534
9836
|
},
|
|
9535
9837
|
i(local) {
|
|
@@ -9571,7 +9873,7 @@
|
|
|
9571
9873
|
button,
|
|
9572
9874
|
"tabindex",
|
|
9573
9875
|
/*categoryTabIndex*/
|
|
9574
|
-
ctx[
|
|
9876
|
+
ctx[21]
|
|
9575
9877
|
);
|
|
9576
9878
|
attr(button, "aria-label", "Reset words");
|
|
9577
9879
|
attr(button, "class", "group focus-ring flex items-center rounded-lg border-2 border-soft-blue text-blue-1000 px-3 py-2 absolute right-0 -top-2.5 hover:bg-blue-100");
|
|
@@ -9588,19 +9890,19 @@
|
|
|
9588
9890
|
button,
|
|
9589
9891
|
"click",
|
|
9590
9892
|
/*openResetModal*/
|
|
9591
|
-
ctx[
|
|
9893
|
+
ctx[34]
|
|
9592
9894
|
);
|
|
9593
9895
|
mounted = true;
|
|
9594
9896
|
}
|
|
9595
9897
|
},
|
|
9596
9898
|
p(ctx2, dirty) {
|
|
9597
9899
|
if (!current || dirty[0] & /*categoryTabIndex*/
|
|
9598
|
-
|
|
9900
|
+
2097152) {
|
|
9599
9901
|
attr(
|
|
9600
9902
|
button,
|
|
9601
9903
|
"tabindex",
|
|
9602
9904
|
/*categoryTabIndex*/
|
|
9603
|
-
ctx2[
|
|
9905
|
+
ctx2[21]
|
|
9604
9906
|
);
|
|
9605
9907
|
}
|
|
9606
9908
|
},
|
|
@@ -9635,7 +9937,7 @@
|
|
|
9635
9937
|
t0 = text("Option ");
|
|
9636
9938
|
t1 = text(
|
|
9637
9939
|
/*selectedItemName*/
|
|
9638
|
-
ctx[
|
|
9940
|
+
ctx[22]
|
|
9639
9941
|
);
|
|
9640
9942
|
t2 = text(" added in\xA0");
|
|
9641
9943
|
attr(span, "class", "sr-only");
|
|
@@ -9648,11 +9950,11 @@
|
|
|
9648
9950
|
},
|
|
9649
9951
|
p(ctx2, dirty) {
|
|
9650
9952
|
if (dirty[0] & /*selectedItemName*/
|
|
9651
|
-
|
|
9953
|
+
4194304)
|
|
9652
9954
|
set_data(
|
|
9653
9955
|
t1,
|
|
9654
9956
|
/*selectedItemName*/
|
|
9655
|
-
ctx2[
|
|
9957
|
+
ctx2[22]
|
|
9656
9958
|
);
|
|
9657
9959
|
},
|
|
9658
9960
|
d(detaching) {
|
|
@@ -9662,14 +9964,14 @@
|
|
|
9662
9964
|
}
|
|
9663
9965
|
};
|
|
9664
9966
|
}
|
|
9665
|
-
function
|
|
9967
|
+
function create_if_block_44(ctx) {
|
|
9666
9968
|
let span;
|
|
9667
9969
|
return {
|
|
9668
9970
|
c() {
|
|
9669
9971
|
span = element("span");
|
|
9670
9972
|
span.textContent = `${useRemoveRichTextHtmlTags(
|
|
9671
9973
|
/*category*/
|
|
9672
|
-
ctx[
|
|
9974
|
+
ctx[68].name
|
|
9673
9975
|
)}`;
|
|
9674
9976
|
attr(span, "class", "sr-only");
|
|
9675
9977
|
},
|
|
@@ -9684,16 +9986,16 @@
|
|
|
9684
9986
|
}
|
|
9685
9987
|
};
|
|
9686
9988
|
}
|
|
9687
|
-
function
|
|
9989
|
+
function create_if_block_35(ctx) {
|
|
9688
9990
|
let span;
|
|
9689
9991
|
let t0;
|
|
9690
9992
|
let t1_value = (
|
|
9691
9993
|
/*getTotalWordsLabel*/
|
|
9692
|
-
ctx[
|
|
9994
|
+
ctx[36](
|
|
9693
9995
|
/*totalCategoryWords*/
|
|
9694
|
-
ctx[
|
|
9996
|
+
ctx[6][
|
|
9695
9997
|
/*category*/
|
|
9696
|
-
ctx[
|
|
9998
|
+
ctx[68].id
|
|
9697
9999
|
]
|
|
9698
10000
|
) + ""
|
|
9699
10001
|
);
|
|
@@ -9715,12 +10017,12 @@
|
|
|
9715
10017
|
},
|
|
9716
10018
|
p(ctx2, dirty) {
|
|
9717
10019
|
if (dirty[0] & /*totalCategoryWords*/
|
|
9718
|
-
|
|
9719
|
-
ctx2[
|
|
10020
|
+
64 && t1_value !== (t1_value = /*getTotalWordsLabel*/
|
|
10021
|
+
ctx2[36](
|
|
9720
10022
|
/*totalCategoryWords*/
|
|
9721
|
-
ctx2[
|
|
10023
|
+
ctx2[6][
|
|
9722
10024
|
/*category*/
|
|
9723
|
-
ctx2[
|
|
10025
|
+
ctx2[68].id
|
|
9724
10026
|
]
|
|
9725
10027
|
) + ""))
|
|
9726
10028
|
set_data(t1, t1_value);
|
|
@@ -9745,12 +10047,12 @@
|
|
|
9745
10047
|
t0 = text(".\xA0Student's answer: ");
|
|
9746
10048
|
t1 = text(
|
|
9747
10049
|
/*selectedItemName*/
|
|
9748
|
-
ctx[
|
|
10050
|
+
ctx[22]
|
|
9749
10051
|
);
|
|
9750
10052
|
t2 = text(" (");
|
|
9751
10053
|
t3 = text(
|
|
9752
10054
|
/*previewResultSr*/
|
|
9753
|
-
ctx[
|
|
10055
|
+
ctx[5]
|
|
9754
10056
|
);
|
|
9755
10057
|
t4 = text(")");
|
|
9756
10058
|
attr(span, "class", "sr-only");
|
|
@@ -9765,18 +10067,18 @@
|
|
|
9765
10067
|
},
|
|
9766
10068
|
p(ctx2, dirty) {
|
|
9767
10069
|
if (dirty[0] & /*selectedItemName*/
|
|
9768
|
-
|
|
10070
|
+
4194304)
|
|
9769
10071
|
set_data(
|
|
9770
10072
|
t1,
|
|
9771
10073
|
/*selectedItemName*/
|
|
9772
|
-
ctx2[
|
|
10074
|
+
ctx2[22]
|
|
9773
10075
|
);
|
|
9774
10076
|
if (dirty[0] & /*previewResultSr*/
|
|
9775
|
-
|
|
10077
|
+
32)
|
|
9776
10078
|
set_data(
|
|
9777
10079
|
t3,
|
|
9778
10080
|
/*previewResultSr*/
|
|
9779
|
-
ctx2[
|
|
10081
|
+
ctx2[5]
|
|
9780
10082
|
);
|
|
9781
10083
|
},
|
|
9782
10084
|
d(detaching) {
|
|
@@ -9845,11 +10147,11 @@
|
|
|
9845
10147
|
let div0;
|
|
9846
10148
|
let show_if_2 = (
|
|
9847
10149
|
/*checkContainerDroppedItem*/
|
|
9848
|
-
ctx[
|
|
10150
|
+
ctx[32](
|
|
9849
10151
|
/*category*/
|
|
9850
|
-
ctx[
|
|
10152
|
+
ctx[68].id,
|
|
9851
10153
|
/*dropContainerId*/
|
|
9852
|
-
ctx[
|
|
10154
|
+
ctx[13]
|
|
9853
10155
|
)
|
|
9854
10156
|
);
|
|
9855
10157
|
let t0;
|
|
@@ -9859,13 +10161,13 @@
|
|
|
9859
10161
|
let t5;
|
|
9860
10162
|
let show_if_1 = (
|
|
9861
10163
|
/*checkContainerDroppedItem*/
|
|
9862
|
-
ctx[
|
|
10164
|
+
ctx[32](
|
|
9863
10165
|
/*category*/
|
|
9864
|
-
ctx[
|
|
10166
|
+
ctx[68].id,
|
|
9865
10167
|
/*dropContainerId*/
|
|
9866
|
-
ctx[
|
|
10168
|
+
ctx[13]
|
|
9867
10169
|
) && /*enableAriaLive*/
|
|
9868
|
-
ctx[
|
|
10170
|
+
ctx[23]
|
|
9869
10171
|
);
|
|
9870
10172
|
let t6;
|
|
9871
10173
|
let t7;
|
|
@@ -9874,11 +10176,11 @@
|
|
|
9874
10176
|
let span1;
|
|
9875
10177
|
let t9_value = (
|
|
9876
10178
|
/*getTotalWords*/
|
|
9877
|
-
ctx[
|
|
10179
|
+
ctx[35](
|
|
9878
10180
|
/*category*/
|
|
9879
|
-
ctx[
|
|
10181
|
+
ctx[68].id,
|
|
9880
10182
|
/*currentAnswer*/
|
|
9881
|
-
ctx[
|
|
10183
|
+
ctx[4]
|
|
9882
10184
|
) + ""
|
|
9883
10185
|
);
|
|
9884
10186
|
let t9;
|
|
@@ -9898,7 +10200,7 @@
|
|
|
9898
10200
|
let div1_class_value;
|
|
9899
10201
|
let category = (
|
|
9900
10202
|
/*category*/
|
|
9901
|
-
ctx[
|
|
10203
|
+
ctx[68]
|
|
9902
10204
|
);
|
|
9903
10205
|
let current;
|
|
9904
10206
|
let mounted;
|
|
@@ -9908,41 +10210,41 @@
|
|
|
9908
10210
|
props: {
|
|
9909
10211
|
ariaHidden: (
|
|
9910
10212
|
/*checkContainerDroppedItem*/
|
|
9911
|
-
ctx[
|
|
10213
|
+
ctx[32](
|
|
9912
10214
|
/*category*/
|
|
9913
|
-
ctx[
|
|
10215
|
+
ctx[68].id,
|
|
9914
10216
|
/*dropContainerId*/
|
|
9915
|
-
ctx[
|
|
10217
|
+
ctx[13]
|
|
9916
10218
|
) && /*enableAriaLive*/
|
|
9917
|
-
ctx[
|
|
10219
|
+
ctx[23]
|
|
9918
10220
|
),
|
|
9919
10221
|
htmlString: (
|
|
9920
10222
|
/*category*/
|
|
9921
|
-
ctx[
|
|
10223
|
+
ctx[68].name
|
|
9922
10224
|
),
|
|
9923
10225
|
otherClass: "text-base leading-5 !text-gray-900 md:item-heading"
|
|
9924
10226
|
}
|
|
9925
10227
|
});
|
|
9926
|
-
let if_block1 = show_if_1 &&
|
|
10228
|
+
let if_block1 = show_if_1 && create_if_block_44(ctx);
|
|
9927
10229
|
let if_block2 = !/*previewResultSr*/
|
|
9928
|
-
ctx[
|
|
10230
|
+
ctx[5] && create_if_block_35(ctx);
|
|
9929
10231
|
let if_block3 = (
|
|
9930
10232
|
/*previewResultSr*/
|
|
9931
|
-
ctx[
|
|
10233
|
+
ctx[5] && create_if_block_27(ctx)
|
|
9932
10234
|
);
|
|
9933
10235
|
const if_block_creators = [create_if_block_18, create_else_block4];
|
|
9934
10236
|
const if_blocks = [];
|
|
9935
10237
|
function select_block_type(ctx2, dirty) {
|
|
9936
10238
|
if (dirty[0] & /*openCategoryContainer*/
|
|
9937
|
-
|
|
10239
|
+
524288)
|
|
9938
10240
|
show_if = null;
|
|
9939
10241
|
if (show_if == null)
|
|
9940
10242
|
show_if = !!/*checkifCategoryContainerOpen*/
|
|
9941
|
-
ctx2[
|
|
10243
|
+
ctx2[37](
|
|
9942
10244
|
/*category*/
|
|
9943
|
-
ctx2[
|
|
10245
|
+
ctx2[68].id,
|
|
9944
10246
|
/*openCategoryContainer*/
|
|
9945
|
-
ctx2[
|
|
10247
|
+
ctx2[19]
|
|
9946
10248
|
);
|
|
9947
10249
|
if (show_if)
|
|
9948
10250
|
return 0;
|
|
@@ -9951,73 +10253,73 @@
|
|
|
9951
10253
|
current_block_type_index = select_block_type(ctx, [-1, -1, -1]);
|
|
9952
10254
|
if_block4 = if_blocks[current_block_type_index] = if_block_creators[current_block_type_index](ctx);
|
|
9953
10255
|
function div0_elementresize_handler() {
|
|
9954
|
-
ctx[
|
|
10256
|
+
ctx[50].call(
|
|
9955
10257
|
div0,
|
|
9956
10258
|
/*category*/
|
|
9957
|
-
ctx[
|
|
10259
|
+
ctx[68]
|
|
9958
10260
|
);
|
|
9959
10261
|
}
|
|
9960
10262
|
promptcategorisedndcontainer = new PromptCategoriseDndContainer_default({
|
|
9961
10263
|
props: {
|
|
9962
10264
|
containerClass: "content-start !outline-none rounded-lg grow w-full md:p-4\n " + /*checkContainerDragOver*/
|
|
9963
|
-
(ctx[
|
|
10265
|
+
(ctx[31](
|
|
9964
10266
|
/*category*/
|
|
9965
|
-
ctx[
|
|
10267
|
+
ctx[68].id,
|
|
9966
10268
|
/*considerContainerId*/
|
|
9967
|
-
ctx[
|
|
10269
|
+
ctx[11],
|
|
9968
10270
|
/*isDraggingOver*/
|
|
9969
|
-
ctx[
|
|
10271
|
+
ctx[12]
|
|
9970
10272
|
) ? "bg-violet-100" : "") + "\n " + /*checkifCategoryContainerOpen*/
|
|
9971
|
-
(ctx[
|
|
10273
|
+
(ctx[37](
|
|
9972
10274
|
/*category*/
|
|
9973
|
-
ctx[
|
|
10275
|
+
ctx[68].id,
|
|
9974
10276
|
/*openCategoryContainer*/
|
|
9975
|
-
ctx[
|
|
10277
|
+
ctx[19]
|
|
9976
10278
|
) ? "h-full p-3 min-h-[86px] md:min-h-0" : ""),
|
|
9977
10279
|
paddingTop: (
|
|
9978
10280
|
/*checkifCategoryContainerOpen*/
|
|
9979
|
-
ctx[
|
|
10281
|
+
ctx[37](
|
|
9980
10282
|
/*category*/
|
|
9981
|
-
ctx[
|
|
10283
|
+
ctx[68].id,
|
|
9982
10284
|
/*openCategoryContainer*/
|
|
9983
|
-
ctx[
|
|
10285
|
+
ctx[19]
|
|
9984
10286
|
) || !useIsSmallScreen() ? (
|
|
9985
10287
|
/*categoryTitleHeight*/
|
|
9986
|
-
ctx[
|
|
10288
|
+
ctx[24][
|
|
9987
10289
|
/*category*/
|
|
9988
|
-
ctx[
|
|
10290
|
+
ctx[68].id
|
|
9989
10291
|
] + 16
|
|
9990
10292
|
) : (
|
|
9991
10293
|
/*categoryTitleHeight*/
|
|
9992
|
-
ctx[
|
|
10294
|
+
ctx[24][
|
|
9993
10295
|
/*category*/
|
|
9994
|
-
ctx[
|
|
10296
|
+
ctx[68].id
|
|
9995
10297
|
]
|
|
9996
10298
|
)
|
|
9997
10299
|
),
|
|
9998
10300
|
containerId: (
|
|
9999
10301
|
/*category*/
|
|
10000
|
-
ctx[
|
|
10302
|
+
ctx[68].id
|
|
10001
10303
|
),
|
|
10002
10304
|
showButton: (
|
|
10003
10305
|
/*checkifCategoryContainerOpen*/
|
|
10004
|
-
ctx[
|
|
10306
|
+
ctx[37](
|
|
10005
10307
|
/*category*/
|
|
10006
|
-
ctx[
|
|
10308
|
+
ctx[68].id,
|
|
10007
10309
|
/*openCategoryContainer*/
|
|
10008
|
-
ctx[
|
|
10310
|
+
ctx[19]
|
|
10009
10311
|
)
|
|
10010
10312
|
),
|
|
10011
10313
|
ariaLabel: `Category ${/*index*/
|
|
10012
|
-
ctx[
|
|
10013
|
-
ctx[
|
|
10314
|
+
ctx[70] + 1}: ${/*category*/
|
|
10315
|
+
ctx[68].name}`,
|
|
10014
10316
|
isFinished: (
|
|
10015
10317
|
/*isFinished*/
|
|
10016
10318
|
ctx[0]
|
|
10017
10319
|
),
|
|
10018
10320
|
correctAnswerList: (
|
|
10019
10321
|
/*scoringMetadata*/
|
|
10020
|
-
ctx[
|
|
10322
|
+
ctx[27]
|
|
10021
10323
|
),
|
|
10022
10324
|
isPreviewModeInteractive: (
|
|
10023
10325
|
/*isPreviewModeInteractive*/
|
|
@@ -10025,41 +10327,45 @@
|
|
|
10025
10327
|
),
|
|
10026
10328
|
categoryData: (
|
|
10027
10329
|
/*categoriseSettingsData*/
|
|
10028
|
-
ctx[
|
|
10330
|
+
ctx[7]
|
|
10029
10331
|
),
|
|
10030
10332
|
type: (
|
|
10031
10333
|
/*categoryDndType*/
|
|
10032
|
-
ctx[
|
|
10334
|
+
ctx[25]
|
|
10335
|
+
),
|
|
10336
|
+
isDataSaving: (
|
|
10337
|
+
/*isDataSaving*/
|
|
10338
|
+
ctx[2]
|
|
10033
10339
|
)
|
|
10034
10340
|
}
|
|
10035
10341
|
});
|
|
10036
10342
|
promptcategorisedndcontainer.$on(
|
|
10037
10343
|
"updateCategorySettings",
|
|
10038
10344
|
/*updateCategory*/
|
|
10039
|
-
ctx[
|
|
10345
|
+
ctx[41]
|
|
10040
10346
|
);
|
|
10041
10347
|
promptcategorisedndcontainer.$on(
|
|
10042
10348
|
"saveCategory",
|
|
10043
10349
|
/*saveCategory*/
|
|
10044
|
-
ctx[
|
|
10350
|
+
ctx[40]
|
|
10045
10351
|
);
|
|
10046
10352
|
function keydown_handler(...args) {
|
|
10047
10353
|
return (
|
|
10048
10354
|
/*keydown_handler*/
|
|
10049
|
-
ctx[
|
|
10355
|
+
ctx[51](
|
|
10050
10356
|
/*category*/
|
|
10051
|
-
ctx[
|
|
10357
|
+
ctx[68],
|
|
10052
10358
|
...args
|
|
10053
10359
|
)
|
|
10054
10360
|
);
|
|
10055
10361
|
}
|
|
10056
10362
|
const assign_div1 = () => (
|
|
10057
10363
|
/*div1_binding*/
|
|
10058
|
-
ctx[
|
|
10364
|
+
ctx[53](div1, category)
|
|
10059
10365
|
);
|
|
10060
10366
|
const unassign_div1 = () => (
|
|
10061
10367
|
/*div1_binding*/
|
|
10062
|
-
ctx[
|
|
10368
|
+
ctx[53](null, category)
|
|
10063
10369
|
);
|
|
10064
10370
|
return {
|
|
10065
10371
|
c() {
|
|
@@ -10070,7 +10376,7 @@
|
|
|
10070
10376
|
t0 = space();
|
|
10071
10377
|
span0 = element("span");
|
|
10072
10378
|
span0.textContent = `Category ${/*index*/
|
|
10073
|
-
ctx[
|
|
10379
|
+
ctx[70] + 1}:\xA0`;
|
|
10074
10380
|
t4 = space();
|
|
10075
10381
|
create_component(commonstringtohtml.$$.fragment);
|
|
10076
10382
|
t5 = space();
|
|
@@ -10096,113 +10402,113 @@
|
|
|
10096
10402
|
attr(span1, "class", "mx-0.5");
|
|
10097
10403
|
attr(span2, "class", "w-4 h-4 text-inherit flex items-center justify-center");
|
|
10098
10404
|
attr(button, "aria-label", button_aria_label_value = /*getTotalWords*/
|
|
10099
|
-
ctx[
|
|
10405
|
+
ctx[35](
|
|
10100
10406
|
/*category*/
|
|
10101
|
-
ctx[
|
|
10407
|
+
ctx[68].id,
|
|
10102
10408
|
/*currentAnswer*/
|
|
10103
|
-
ctx[
|
|
10409
|
+
ctx[4]
|
|
10104
10410
|
));
|
|
10105
10411
|
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");
|
|
10106
10412
|
attr(div0, "id", div0_id_value = `category-title${/*index*/
|
|
10107
|
-
ctx[
|
|
10413
|
+
ctx[70]}`);
|
|
10108
10414
|
attr(div0, "aria-live", div0_aria_live_value = /*checkContainerDroppedItem*/
|
|
10109
|
-
ctx[
|
|
10415
|
+
ctx[32](
|
|
10110
10416
|
/*category*/
|
|
10111
|
-
ctx[
|
|
10417
|
+
ctx[68].id,
|
|
10112
10418
|
/*dropContainerId*/
|
|
10113
|
-
ctx[
|
|
10419
|
+
ctx[13]
|
|
10114
10420
|
) && /*enableAriaLive*/
|
|
10115
|
-
ctx[
|
|
10421
|
+
ctx[23] ? "polite" : "off");
|
|
10116
10422
|
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*/
|
|
10117
|
-
(ctx[
|
|
10423
|
+
(ctx[32](
|
|
10118
10424
|
/*category*/
|
|
10119
|
-
ctx[
|
|
10425
|
+
ctx[68].id,
|
|
10120
10426
|
/*dropContainerId*/
|
|
10121
|
-
ctx[
|
|
10427
|
+
ctx[13]
|
|
10122
10428
|
) ? "bg-tranparent" : "bg-white") + " " + (!/*checkifCategoryContainerOpen*/
|
|
10123
|
-
ctx[
|
|
10429
|
+
ctx[37](
|
|
10124
10430
|
/*category*/
|
|
10125
|
-
ctx[
|
|
10431
|
+
ctx[68].id,
|
|
10126
10432
|
/*openCategoryContainer*/
|
|
10127
|
-
ctx[
|
|
10433
|
+
ctx[19]
|
|
10128
10434
|
) && /*checkContainerDragOver*/
|
|
10129
|
-
ctx[
|
|
10435
|
+
ctx[31](
|
|
10130
10436
|
/*category*/
|
|
10131
|
-
ctx[
|
|
10437
|
+
ctx[68].id,
|
|
10132
10438
|
/*considerContainerId*/
|
|
10133
|
-
ctx[
|
|
10439
|
+
ctx[11],
|
|
10134
10440
|
/*isDraggingOver*/
|
|
10135
|
-
ctx[
|
|
10441
|
+
ctx[12]
|
|
10136
10442
|
) ? "!bg-violet-100 md:!bg-white" : "") + " " + /*checkifCategoryContainerOpen*/
|
|
10137
|
-
(ctx[
|
|
10443
|
+
(ctx[37](
|
|
10138
10444
|
/*category*/
|
|
10139
|
-
ctx[
|
|
10445
|
+
ctx[68].id,
|
|
10140
10446
|
/*openCategoryContainer*/
|
|
10141
|
-
ctx[
|
|
10447
|
+
ctx[19]
|
|
10142
10448
|
) ? "" : "rounded-b-lg md:rounded-b-none") + " " + (!/*checkifCategoryContainerOpen*/
|
|
10143
|
-
ctx[
|
|
10449
|
+
ctx[37](
|
|
10144
10450
|
/*category*/
|
|
10145
|
-
ctx[
|
|
10451
|
+
ctx[68].id,
|
|
10146
10452
|
/*openCategoryContainer*/
|
|
10147
|
-
ctx[
|
|
10453
|
+
ctx[19]
|
|
10148
10454
|
) && /*checkSelectedSourceContainer*/
|
|
10149
|
-
ctx[
|
|
10455
|
+
ctx[33](
|
|
10150
10456
|
/*category*/
|
|
10151
|
-
ctx[
|
|
10457
|
+
ctx[68].id,
|
|
10152
10458
|
/*sourceSelectedContainerId*/
|
|
10153
|
-
ctx[
|
|
10459
|
+
ctx[15],
|
|
10154
10460
|
/*currentSelectedItemId*/
|
|
10155
|
-
ctx[
|
|
10461
|
+
ctx[14]
|
|
10156
10462
|
) ? "group-hover/itemContainer:bg-violet-100 md:group-hover/itemContainer:bg-white" : ""));
|
|
10157
10463
|
add_render_callback(() => div0_elementresize_handler.call(div0));
|
|
10158
10464
|
attr(
|
|
10159
10465
|
div1,
|
|
10160
10466
|
"aria-hidden",
|
|
10161
10467
|
/*isModalOpen*/
|
|
10162
|
-
ctx[
|
|
10468
|
+
ctx[18]
|
|
10163
10469
|
);
|
|
10164
10470
|
attr(
|
|
10165
10471
|
div1,
|
|
10166
10472
|
"tabindex",
|
|
10167
10473
|
/*categoryTabIndex*/
|
|
10168
|
-
ctx[
|
|
10474
|
+
ctx[21]
|
|
10169
10475
|
);
|
|
10170
10476
|
attr(div1, "role", "group");
|
|
10171
10477
|
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*/
|
|
10172
|
-
(ctx[
|
|
10478
|
+
(ctx[31](
|
|
10173
10479
|
/*category*/
|
|
10174
|
-
ctx[
|
|
10480
|
+
ctx[68].id,
|
|
10175
10481
|
/*considerContainerId*/
|
|
10176
|
-
ctx[
|
|
10482
|
+
ctx[11],
|
|
10177
10483
|
/*isDraggingOver*/
|
|
10178
|
-
ctx[
|
|
10484
|
+
ctx[12]
|
|
10179
10485
|
) ? "raw-focus-ring" : "") + " " + /*checkContainerDroppedItem*/
|
|
10180
|
-
(ctx[
|
|
10486
|
+
(ctx[32](
|
|
10181
10487
|
/*category*/
|
|
10182
|
-
ctx[
|
|
10488
|
+
ctx[68].id,
|
|
10183
10489
|
/*dropContainerId*/
|
|
10184
|
-
ctx[
|
|
10490
|
+
ctx[13]
|
|
10185
10491
|
) ? "bg-violet-150" : "") + " " + /*checkContainerDroppedItem*/
|
|
10186
|
-
(ctx[
|
|
10492
|
+
(ctx[32](
|
|
10187
10493
|
/*category*/
|
|
10188
|
-
ctx[
|
|
10494
|
+
ctx[68].id,
|
|
10189
10495
|
/*dropContainerId*/
|
|
10190
|
-
ctx[
|
|
10496
|
+
ctx[13]
|
|
10191
10497
|
) && /*hasAddItemAnimation*/
|
|
10192
|
-
ctx[
|
|
10193
|
-
(ctx[
|
|
10498
|
+
ctx[17] ? "transition bg-white duration-300" : "") + " " + /*checkSelectedSourceContainer*/
|
|
10499
|
+
(ctx[33](
|
|
10194
10500
|
/*category*/
|
|
10195
|
-
ctx[
|
|
10501
|
+
ctx[68].id,
|
|
10196
10502
|
/*sourceSelectedContainerId*/
|
|
10197
|
-
ctx[
|
|
10503
|
+
ctx[15],
|
|
10198
10504
|
/*currentSelectedItemId*/
|
|
10199
|
-
ctx[
|
|
10505
|
+
ctx[14]
|
|
10200
10506
|
) ? "hover:bg-violet-100 hover-focus-ring cursor-pointer" : "") + " " + /*checkifCategoryContainerOpen*/
|
|
10201
|
-
(ctx[
|
|
10507
|
+
(ctx[37](
|
|
10202
10508
|
/*category*/
|
|
10203
|
-
ctx[
|
|
10509
|
+
ctx[68].id,
|
|
10204
10510
|
/*openCategoryContainer*/
|
|
10205
|
-
ctx[
|
|
10511
|
+
ctx[19]
|
|
10206
10512
|
) ? "min-h-[140px]" : ""));
|
|
10207
10513
|
},
|
|
10208
10514
|
m(target, anchor) {
|
|
@@ -10241,18 +10547,18 @@
|
|
|
10241
10547
|
listen(button, "click", function() {
|
|
10242
10548
|
if (is_function(
|
|
10243
10549
|
/*addCategoryContainer*/
|
|
10244
|
-
ctx[
|
|
10550
|
+
ctx[38](
|
|
10245
10551
|
/*category*/
|
|
10246
|
-
ctx[
|
|
10552
|
+
ctx[68].id,
|
|
10247
10553
|
/*openCategoryContainer*/
|
|
10248
|
-
ctx[
|
|
10554
|
+
ctx[19]
|
|
10249
10555
|
)
|
|
10250
10556
|
))
|
|
10251
|
-
ctx[
|
|
10557
|
+
ctx[38](
|
|
10252
10558
|
/*category*/
|
|
10253
|
-
ctx[
|
|
10559
|
+
ctx[68].id,
|
|
10254
10560
|
/*openCategoryContainer*/
|
|
10255
|
-
ctx[
|
|
10561
|
+
ctx[19]
|
|
10256
10562
|
).apply(this, arguments);
|
|
10257
10563
|
}),
|
|
10258
10564
|
listen(div1, "keydown", keydown_handler),
|
|
@@ -10260,13 +10566,13 @@
|
|
|
10260
10566
|
div1,
|
|
10261
10567
|
"focus",
|
|
10262
10568
|
/*resetTabCategory*/
|
|
10263
|
-
ctx[
|
|
10569
|
+
ctx[43]
|
|
10264
10570
|
),
|
|
10265
10571
|
listen(
|
|
10266
10572
|
div1,
|
|
10267
10573
|
"blur",
|
|
10268
10574
|
/*blur_handler*/
|
|
10269
|
-
ctx[
|
|
10575
|
+
ctx[52]
|
|
10270
10576
|
)
|
|
10271
10577
|
];
|
|
10272
10578
|
mounted = true;
|
|
@@ -10275,13 +10581,13 @@
|
|
|
10275
10581
|
p(new_ctx, dirty) {
|
|
10276
10582
|
ctx = new_ctx;
|
|
10277
10583
|
if (dirty[0] & /*dropContainerId*/
|
|
10278
|
-
|
|
10584
|
+
8192)
|
|
10279
10585
|
show_if_2 = /*checkContainerDroppedItem*/
|
|
10280
|
-
ctx[
|
|
10586
|
+
ctx[32](
|
|
10281
10587
|
/*category*/
|
|
10282
|
-
ctx[
|
|
10588
|
+
ctx[68].id,
|
|
10283
10589
|
/*dropContainerId*/
|
|
10284
|
-
ctx[
|
|
10590
|
+
ctx[13]
|
|
10285
10591
|
);
|
|
10286
10592
|
if (show_if_2) {
|
|
10287
10593
|
if (if_block0) {
|
|
@@ -10297,31 +10603,31 @@
|
|
|
10297
10603
|
}
|
|
10298
10604
|
const commonstringtohtml_changes = {};
|
|
10299
10605
|
if (dirty[0] & /*dropContainerId, enableAriaLive*/
|
|
10300
|
-
|
|
10606
|
+
8396800)
|
|
10301
10607
|
commonstringtohtml_changes.ariaHidden = /*checkContainerDroppedItem*/
|
|
10302
|
-
ctx[
|
|
10608
|
+
ctx[32](
|
|
10303
10609
|
/*category*/
|
|
10304
|
-
ctx[
|
|
10610
|
+
ctx[68].id,
|
|
10305
10611
|
/*dropContainerId*/
|
|
10306
|
-
ctx[
|
|
10612
|
+
ctx[13]
|
|
10307
10613
|
) && /*enableAriaLive*/
|
|
10308
|
-
ctx[
|
|
10614
|
+
ctx[23];
|
|
10309
10615
|
commonstringtohtml.$set(commonstringtohtml_changes);
|
|
10310
10616
|
if (dirty[0] & /*dropContainerId, enableAriaLive*/
|
|
10311
|
-
|
|
10617
|
+
8396800)
|
|
10312
10618
|
show_if_1 = /*checkContainerDroppedItem*/
|
|
10313
|
-
ctx[
|
|
10619
|
+
ctx[32](
|
|
10314
10620
|
/*category*/
|
|
10315
|
-
ctx[
|
|
10621
|
+
ctx[68].id,
|
|
10316
10622
|
/*dropContainerId*/
|
|
10317
|
-
ctx[
|
|
10623
|
+
ctx[13]
|
|
10318
10624
|
) && /*enableAriaLive*/
|
|
10319
|
-
ctx[
|
|
10625
|
+
ctx[23];
|
|
10320
10626
|
if (show_if_1) {
|
|
10321
10627
|
if (if_block1) {
|
|
10322
10628
|
if_block1.p(ctx, dirty);
|
|
10323
10629
|
} else {
|
|
10324
|
-
if_block1 =
|
|
10630
|
+
if_block1 = create_if_block_44(ctx);
|
|
10325
10631
|
if_block1.c();
|
|
10326
10632
|
if_block1.m(div0, t6);
|
|
10327
10633
|
}
|
|
@@ -10330,11 +10636,11 @@
|
|
|
10330
10636
|
if_block1 = null;
|
|
10331
10637
|
}
|
|
10332
10638
|
if (!/*previewResultSr*/
|
|
10333
|
-
ctx[
|
|
10639
|
+
ctx[5]) {
|
|
10334
10640
|
if (if_block2) {
|
|
10335
10641
|
if_block2.p(ctx, dirty);
|
|
10336
10642
|
} else {
|
|
10337
|
-
if_block2 =
|
|
10643
|
+
if_block2 = create_if_block_35(ctx);
|
|
10338
10644
|
if_block2.c();
|
|
10339
10645
|
if_block2.m(div0, t7);
|
|
10340
10646
|
}
|
|
@@ -10344,7 +10650,7 @@
|
|
|
10344
10650
|
}
|
|
10345
10651
|
if (
|
|
10346
10652
|
/*previewResultSr*/
|
|
10347
|
-
ctx[
|
|
10653
|
+
ctx[5]
|
|
10348
10654
|
) {
|
|
10349
10655
|
if (if_block3) {
|
|
10350
10656
|
if_block3.p(ctx, dirty);
|
|
@@ -10358,12 +10664,12 @@
|
|
|
10358
10664
|
if_block3 = null;
|
|
10359
10665
|
}
|
|
10360
10666
|
if ((!current || dirty[0] & /*currentAnswer*/
|
|
10361
|
-
|
|
10362
|
-
ctx[
|
|
10667
|
+
16) && t9_value !== (t9_value = /*getTotalWords*/
|
|
10668
|
+
ctx[35](
|
|
10363
10669
|
/*category*/
|
|
10364
|
-
ctx[
|
|
10670
|
+
ctx[68].id,
|
|
10365
10671
|
/*currentAnswer*/
|
|
10366
|
-
ctx[
|
|
10672
|
+
ctx[4]
|
|
10367
10673
|
) + ""))
|
|
10368
10674
|
set_data(t9, t9_value);
|
|
10369
10675
|
let previous_block_index = current_block_type_index;
|
|
@@ -10384,117 +10690,117 @@
|
|
|
10384
10690
|
if_block4.m(span2, null);
|
|
10385
10691
|
}
|
|
10386
10692
|
if (!current || dirty[0] & /*currentAnswer*/
|
|
10387
|
-
|
|
10388
|
-
ctx[
|
|
10693
|
+
16 && button_aria_label_value !== (button_aria_label_value = /*getTotalWords*/
|
|
10694
|
+
ctx[35](
|
|
10389
10695
|
/*category*/
|
|
10390
|
-
ctx[
|
|
10696
|
+
ctx[68].id,
|
|
10391
10697
|
/*currentAnswer*/
|
|
10392
|
-
ctx[
|
|
10698
|
+
ctx[4]
|
|
10393
10699
|
))) {
|
|
10394
10700
|
attr(button, "aria-label", button_aria_label_value);
|
|
10395
10701
|
}
|
|
10396
10702
|
if (!current || dirty[0] & /*dropContainerId, enableAriaLive*/
|
|
10397
|
-
|
|
10398
|
-
ctx[
|
|
10703
|
+
8396800 && div0_aria_live_value !== (div0_aria_live_value = /*checkContainerDroppedItem*/
|
|
10704
|
+
ctx[32](
|
|
10399
10705
|
/*category*/
|
|
10400
|
-
ctx[
|
|
10706
|
+
ctx[68].id,
|
|
10401
10707
|
/*dropContainerId*/
|
|
10402
|
-
ctx[
|
|
10708
|
+
ctx[13]
|
|
10403
10709
|
) && /*enableAriaLive*/
|
|
10404
|
-
ctx[
|
|
10710
|
+
ctx[23] ? "polite" : "off")) {
|
|
10405
10711
|
attr(div0, "aria-live", div0_aria_live_value);
|
|
10406
10712
|
}
|
|
10407
10713
|
if (!current || dirty[0] & /*dropContainerId, openCategoryContainer, considerContainerId, isDraggingOver, sourceSelectedContainerId, currentSelectedItemId*/
|
|
10408
|
-
|
|
10409
|
-
(ctx[
|
|
10714
|
+
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*/
|
|
10715
|
+
(ctx[32](
|
|
10410
10716
|
/*category*/
|
|
10411
|
-
ctx[
|
|
10717
|
+
ctx[68].id,
|
|
10412
10718
|
/*dropContainerId*/
|
|
10413
|
-
ctx[
|
|
10719
|
+
ctx[13]
|
|
10414
10720
|
) ? "bg-tranparent" : "bg-white") + " " + (!/*checkifCategoryContainerOpen*/
|
|
10415
|
-
ctx[
|
|
10721
|
+
ctx[37](
|
|
10416
10722
|
/*category*/
|
|
10417
|
-
ctx[
|
|
10723
|
+
ctx[68].id,
|
|
10418
10724
|
/*openCategoryContainer*/
|
|
10419
|
-
ctx[
|
|
10725
|
+
ctx[19]
|
|
10420
10726
|
) && /*checkContainerDragOver*/
|
|
10421
|
-
ctx[
|
|
10727
|
+
ctx[31](
|
|
10422
10728
|
/*category*/
|
|
10423
|
-
ctx[
|
|
10729
|
+
ctx[68].id,
|
|
10424
10730
|
/*considerContainerId*/
|
|
10425
|
-
ctx[
|
|
10731
|
+
ctx[11],
|
|
10426
10732
|
/*isDraggingOver*/
|
|
10427
|
-
ctx[
|
|
10733
|
+
ctx[12]
|
|
10428
10734
|
) ? "!bg-violet-100 md:!bg-white" : "") + " " + /*checkifCategoryContainerOpen*/
|
|
10429
|
-
(ctx[
|
|
10735
|
+
(ctx[37](
|
|
10430
10736
|
/*category*/
|
|
10431
|
-
ctx[
|
|
10737
|
+
ctx[68].id,
|
|
10432
10738
|
/*openCategoryContainer*/
|
|
10433
|
-
ctx[
|
|
10739
|
+
ctx[19]
|
|
10434
10740
|
) ? "" : "rounded-b-lg md:rounded-b-none") + " " + (!/*checkifCategoryContainerOpen*/
|
|
10435
|
-
ctx[
|
|
10741
|
+
ctx[37](
|
|
10436
10742
|
/*category*/
|
|
10437
|
-
ctx[
|
|
10743
|
+
ctx[68].id,
|
|
10438
10744
|
/*openCategoryContainer*/
|
|
10439
|
-
ctx[
|
|
10745
|
+
ctx[19]
|
|
10440
10746
|
) && /*checkSelectedSourceContainer*/
|
|
10441
|
-
ctx[
|
|
10747
|
+
ctx[33](
|
|
10442
10748
|
/*category*/
|
|
10443
|
-
ctx[
|
|
10749
|
+
ctx[68].id,
|
|
10444
10750
|
/*sourceSelectedContainerId*/
|
|
10445
|
-
ctx[
|
|
10751
|
+
ctx[15],
|
|
10446
10752
|
/*currentSelectedItemId*/
|
|
10447
|
-
ctx[
|
|
10753
|
+
ctx[14]
|
|
10448
10754
|
) ? "group-hover/itemContainer:bg-violet-100 md:group-hover/itemContainer:bg-white" : ""))) {
|
|
10449
10755
|
attr(div0, "class", div0_class_value);
|
|
10450
10756
|
}
|
|
10451
10757
|
const promptcategorisedndcontainer_changes = {};
|
|
10452
10758
|
if (dirty[0] & /*considerContainerId, isDraggingOver, openCategoryContainer*/
|
|
10453
|
-
|
|
10759
|
+
530432)
|
|
10454
10760
|
promptcategorisedndcontainer_changes.containerClass = "content-start !outline-none rounded-lg grow w-full md:p-4\n " + /*checkContainerDragOver*/
|
|
10455
|
-
(ctx[
|
|
10761
|
+
(ctx[31](
|
|
10456
10762
|
/*category*/
|
|
10457
|
-
ctx[
|
|
10763
|
+
ctx[68].id,
|
|
10458
10764
|
/*considerContainerId*/
|
|
10459
|
-
ctx[
|
|
10765
|
+
ctx[11],
|
|
10460
10766
|
/*isDraggingOver*/
|
|
10461
|
-
ctx[
|
|
10767
|
+
ctx[12]
|
|
10462
10768
|
) ? "bg-violet-100" : "") + "\n " + /*checkifCategoryContainerOpen*/
|
|
10463
|
-
(ctx[
|
|
10769
|
+
(ctx[37](
|
|
10464
10770
|
/*category*/
|
|
10465
|
-
ctx[
|
|
10771
|
+
ctx[68].id,
|
|
10466
10772
|
/*openCategoryContainer*/
|
|
10467
|
-
ctx[
|
|
10773
|
+
ctx[19]
|
|
10468
10774
|
) ? "h-full p-3 min-h-[86px] md:min-h-0" : "");
|
|
10469
10775
|
if (dirty[0] & /*openCategoryContainer, categoryTitleHeight*/
|
|
10470
|
-
|
|
10776
|
+
17301504)
|
|
10471
10777
|
promptcategorisedndcontainer_changes.paddingTop = /*checkifCategoryContainerOpen*/
|
|
10472
|
-
ctx[
|
|
10778
|
+
ctx[37](
|
|
10473
10779
|
/*category*/
|
|
10474
|
-
ctx[
|
|
10780
|
+
ctx[68].id,
|
|
10475
10781
|
/*openCategoryContainer*/
|
|
10476
|
-
ctx[
|
|
10782
|
+
ctx[19]
|
|
10477
10783
|
) || !useIsSmallScreen() ? (
|
|
10478
10784
|
/*categoryTitleHeight*/
|
|
10479
|
-
ctx[
|
|
10785
|
+
ctx[24][
|
|
10480
10786
|
/*category*/
|
|
10481
|
-
ctx[
|
|
10787
|
+
ctx[68].id
|
|
10482
10788
|
] + 16
|
|
10483
10789
|
) : (
|
|
10484
10790
|
/*categoryTitleHeight*/
|
|
10485
|
-
ctx[
|
|
10791
|
+
ctx[24][
|
|
10486
10792
|
/*category*/
|
|
10487
|
-
ctx[
|
|
10793
|
+
ctx[68].id
|
|
10488
10794
|
]
|
|
10489
10795
|
);
|
|
10490
10796
|
if (dirty[0] & /*openCategoryContainer*/
|
|
10491
|
-
|
|
10797
|
+
524288)
|
|
10492
10798
|
promptcategorisedndcontainer_changes.showButton = /*checkifCategoryContainerOpen*/
|
|
10493
|
-
ctx[
|
|
10799
|
+
ctx[37](
|
|
10494
10800
|
/*category*/
|
|
10495
|
-
ctx[
|
|
10801
|
+
ctx[68].id,
|
|
10496
10802
|
/*openCategoryContainer*/
|
|
10497
|
-
ctx[
|
|
10803
|
+
ctx[19]
|
|
10498
10804
|
);
|
|
10499
10805
|
if (dirty[0] & /*isFinished*/
|
|
10500
10806
|
1)
|
|
@@ -10505,72 +10811,76 @@
|
|
|
10505
10811
|
promptcategorisedndcontainer_changes.isPreviewModeInteractive = /*isPreviewModeInteractive*/
|
|
10506
10812
|
ctx[1];
|
|
10507
10813
|
if (dirty[0] & /*categoriseSettingsData*/
|
|
10508
|
-
|
|
10814
|
+
128)
|
|
10509
10815
|
promptcategorisedndcontainer_changes.categoryData = /*categoriseSettingsData*/
|
|
10510
|
-
ctx[
|
|
10816
|
+
ctx[7];
|
|
10817
|
+
if (dirty[0] & /*isDataSaving*/
|
|
10818
|
+
4)
|
|
10819
|
+
promptcategorisedndcontainer_changes.isDataSaving = /*isDataSaving*/
|
|
10820
|
+
ctx[2];
|
|
10511
10821
|
promptcategorisedndcontainer.$set(promptcategorisedndcontainer_changes);
|
|
10512
10822
|
if (!current || dirty[0] & /*isModalOpen*/
|
|
10513
|
-
|
|
10823
|
+
262144) {
|
|
10514
10824
|
attr(
|
|
10515
10825
|
div1,
|
|
10516
10826
|
"aria-hidden",
|
|
10517
10827
|
/*isModalOpen*/
|
|
10518
|
-
ctx[
|
|
10828
|
+
ctx[18]
|
|
10519
10829
|
);
|
|
10520
10830
|
}
|
|
10521
10831
|
if (!current || dirty[0] & /*categoryTabIndex*/
|
|
10522
|
-
|
|
10832
|
+
2097152) {
|
|
10523
10833
|
attr(
|
|
10524
10834
|
div1,
|
|
10525
10835
|
"tabindex",
|
|
10526
10836
|
/*categoryTabIndex*/
|
|
10527
|
-
ctx[
|
|
10837
|
+
ctx[21]
|
|
10528
10838
|
);
|
|
10529
10839
|
}
|
|
10530
10840
|
if (!current || dirty[0] & /*considerContainerId, isDraggingOver, dropContainerId, hasAddItemAnimation, sourceSelectedContainerId, currentSelectedItemId, openCategoryContainer*/
|
|
10531
|
-
|
|
10532
|
-
(ctx[
|
|
10841
|
+
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*/
|
|
10842
|
+
(ctx[31](
|
|
10533
10843
|
/*category*/
|
|
10534
|
-
ctx[
|
|
10844
|
+
ctx[68].id,
|
|
10535
10845
|
/*considerContainerId*/
|
|
10536
|
-
ctx[
|
|
10846
|
+
ctx[11],
|
|
10537
10847
|
/*isDraggingOver*/
|
|
10538
|
-
ctx[
|
|
10848
|
+
ctx[12]
|
|
10539
10849
|
) ? "raw-focus-ring" : "") + " " + /*checkContainerDroppedItem*/
|
|
10540
|
-
(ctx[
|
|
10850
|
+
(ctx[32](
|
|
10541
10851
|
/*category*/
|
|
10542
|
-
ctx[
|
|
10852
|
+
ctx[68].id,
|
|
10543
10853
|
/*dropContainerId*/
|
|
10544
|
-
ctx[
|
|
10854
|
+
ctx[13]
|
|
10545
10855
|
) ? "bg-violet-150" : "") + " " + /*checkContainerDroppedItem*/
|
|
10546
|
-
(ctx[
|
|
10856
|
+
(ctx[32](
|
|
10547
10857
|
/*category*/
|
|
10548
|
-
ctx[
|
|
10858
|
+
ctx[68].id,
|
|
10549
10859
|
/*dropContainerId*/
|
|
10550
|
-
ctx[
|
|
10860
|
+
ctx[13]
|
|
10551
10861
|
) && /*hasAddItemAnimation*/
|
|
10552
|
-
ctx[
|
|
10553
|
-
(ctx[
|
|
10862
|
+
ctx[17] ? "transition bg-white duration-300" : "") + " " + /*checkSelectedSourceContainer*/
|
|
10863
|
+
(ctx[33](
|
|
10554
10864
|
/*category*/
|
|
10555
|
-
ctx[
|
|
10865
|
+
ctx[68].id,
|
|
10556
10866
|
/*sourceSelectedContainerId*/
|
|
10557
|
-
ctx[
|
|
10867
|
+
ctx[15],
|
|
10558
10868
|
/*currentSelectedItemId*/
|
|
10559
|
-
ctx[
|
|
10869
|
+
ctx[14]
|
|
10560
10870
|
) ? "hover:bg-violet-100 hover-focus-ring cursor-pointer" : "") + " " + /*checkifCategoryContainerOpen*/
|
|
10561
|
-
(ctx[
|
|
10871
|
+
(ctx[37](
|
|
10562
10872
|
/*category*/
|
|
10563
|
-
ctx[
|
|
10873
|
+
ctx[68].id,
|
|
10564
10874
|
/*openCategoryContainer*/
|
|
10565
|
-
ctx[
|
|
10875
|
+
ctx[19]
|
|
10566
10876
|
) ? "min-h-[140px]" : ""))) {
|
|
10567
10877
|
attr(div1, "class", div1_class_value);
|
|
10568
10878
|
}
|
|
10569
10879
|
if (category !== /*category*/
|
|
10570
|
-
ctx[
|
|
10880
|
+
ctx[68]) {
|
|
10571
10881
|
unassign_div1();
|
|
10572
10882
|
category = /*category*/
|
|
10573
|
-
ctx[
|
|
10883
|
+
ctx[68];
|
|
10574
10884
|
assign_div1();
|
|
10575
10885
|
}
|
|
10576
10886
|
},
|
|
@@ -10621,7 +10931,7 @@
|
|
|
10621
10931
|
t0 = text("Option ");
|
|
10622
10932
|
t1 = text(
|
|
10623
10933
|
/*selectedItemName*/
|
|
10624
|
-
ctx[
|
|
10934
|
+
ctx[22]
|
|
10625
10935
|
);
|
|
10626
10936
|
t2 = text(" added in:\xA0");
|
|
10627
10937
|
attr(span, "class", "sr-only");
|
|
@@ -10634,11 +10944,11 @@
|
|
|
10634
10944
|
},
|
|
10635
10945
|
p(ctx2, dirty) {
|
|
10636
10946
|
if (dirty[0] & /*selectedItemName*/
|
|
10637
|
-
|
|
10947
|
+
4194304)
|
|
10638
10948
|
set_data(
|
|
10639
10949
|
t1,
|
|
10640
10950
|
/*selectedItemName*/
|
|
10641
|
-
ctx2[
|
|
10951
|
+
ctx2[22]
|
|
10642
10952
|
);
|
|
10643
10953
|
},
|
|
10644
10954
|
d(detaching) {
|
|
@@ -10666,10 +10976,10 @@
|
|
|
10666
10976
|
let div2;
|
|
10667
10977
|
let show_if = (
|
|
10668
10978
|
/*checkContainerDroppedItem*/
|
|
10669
|
-
ctx[
|
|
10979
|
+
ctx[32](
|
|
10670
10980
|
CONTAINER_WORD_BIN_ID,
|
|
10671
10981
|
/*dropContainerId*/
|
|
10672
|
-
ctx[
|
|
10982
|
+
ctx[13]
|
|
10673
10983
|
)
|
|
10674
10984
|
);
|
|
10675
10985
|
let t8;
|
|
@@ -10703,17 +11013,17 @@
|
|
|
10703
11013
|
arrowdowncircle = new ArrowDownCircle_default({});
|
|
10704
11014
|
let if_block0 = (
|
|
10705
11015
|
/*isModalOpen*/
|
|
10706
|
-
ctx[
|
|
11016
|
+
ctx[18] && create_if_block_72(ctx)
|
|
10707
11017
|
);
|
|
10708
11018
|
let if_block1 = (
|
|
10709
11019
|
/*totalRemainingWordBinItem*/
|
|
10710
|
-
ctx[
|
|
10711
|
-
ctx[
|
|
11020
|
+
ctx[16] !== /*totalCategoryItems*/
|
|
11021
|
+
ctx[10] && !/*isFinished*/
|
|
10712
11022
|
ctx[0] && create_if_block_62(ctx)
|
|
10713
11023
|
);
|
|
10714
11024
|
let each_value = ensure_array_like(Object.values(
|
|
10715
11025
|
/*categoryGroups*/
|
|
10716
|
-
ctx[
|
|
11026
|
+
ctx[30]
|
|
10717
11027
|
));
|
|
10718
11028
|
let each_blocks = [];
|
|
10719
11029
|
for (let i = 0; i < each_value.length; i += 1) {
|
|
@@ -10727,14 +11037,14 @@
|
|
|
10727
11037
|
promptcategorisedndcontainer = new PromptCategoriseDndContainer_default({
|
|
10728
11038
|
props: {
|
|
10729
11039
|
containerClass: "bg-transparent p-4 pt-[55px] grow md:grow-0 md:pt-20.5 justify-center md:justify-normal\n " + /*isWordBInTotalZero*/
|
|
10730
|
-
(ctx[
|
|
11040
|
+
(ctx[39](
|
|
10731
11041
|
/*totalRemainingWordBinItem*/
|
|
10732
|
-
ctx[
|
|
11042
|
+
ctx[16]
|
|
10733
11043
|
) && !/*currentSelectedItemId*/
|
|
10734
|
-
ctx[
|
|
11044
|
+
ctx[14] ? "absolute inset-0" : ""),
|
|
10735
11045
|
items: (
|
|
10736
11046
|
/*categoryItems*/
|
|
10737
|
-
ctx[
|
|
11047
|
+
ctx[29]
|
|
10738
11048
|
),
|
|
10739
11049
|
containerId: CONTAINER_WORD_BIN_ID,
|
|
10740
11050
|
ariaLabel: "Word bin",
|
|
@@ -10744,7 +11054,7 @@
|
|
|
10744
11054
|
),
|
|
10745
11055
|
correctAnswerList: (
|
|
10746
11056
|
/*scoringMetadata*/
|
|
10747
|
-
ctx[
|
|
11057
|
+
ctx[27]
|
|
10748
11058
|
),
|
|
10749
11059
|
isPreviewModeInteractive: (
|
|
10750
11060
|
/*isPreviewModeInteractive*/
|
|
@@ -10752,23 +11062,27 @@
|
|
|
10752
11062
|
),
|
|
10753
11063
|
categoryData: (
|
|
10754
11064
|
/*categoriseSettingsData*/
|
|
10755
|
-
ctx[
|
|
11065
|
+
ctx[7]
|
|
10756
11066
|
),
|
|
10757
11067
|
type: (
|
|
10758
11068
|
/*categoryDndType*/
|
|
10759
|
-
ctx[
|
|
11069
|
+
ctx[25]
|
|
11070
|
+
),
|
|
11071
|
+
isDataSaving: (
|
|
11072
|
+
/*isDataSaving*/
|
|
11073
|
+
ctx[2]
|
|
10760
11074
|
)
|
|
10761
11075
|
}
|
|
10762
11076
|
});
|
|
10763
11077
|
promptcategorisedndcontainer.$on(
|
|
10764
11078
|
"updateCategorySettings",
|
|
10765
11079
|
/*updateCategory*/
|
|
10766
|
-
ctx[
|
|
11080
|
+
ctx[41]
|
|
10767
11081
|
);
|
|
10768
11082
|
promptcategorisedndcontainer.$on(
|
|
10769
11083
|
"saveCategory",
|
|
10770
11084
|
/*saveCategory*/
|
|
10771
|
-
ctx[
|
|
11085
|
+
ctx[40]
|
|
10772
11086
|
);
|
|
10773
11087
|
smallchevronright = new SmallChevronRight_default({});
|
|
10774
11088
|
return {
|
|
@@ -10806,12 +11120,12 @@
|
|
|
10806
11120
|
span3 = element("span");
|
|
10807
11121
|
t11 = text(
|
|
10808
11122
|
/*totalRemainingWordBinItem*/
|
|
10809
|
-
ctx[
|
|
11123
|
+
ctx[16]
|
|
10810
11124
|
);
|
|
10811
11125
|
t12 = text(" out of ");
|
|
10812
11126
|
t13 = text(
|
|
10813
11127
|
/*totalCategoryItems*/
|
|
10814
|
-
ctx[
|
|
11128
|
+
ctx[10]
|
|
10815
11129
|
);
|
|
10816
11130
|
t14 = text(" left");
|
|
10817
11131
|
t15 = space();
|
|
@@ -10831,7 +11145,7 @@
|
|
|
10831
11145
|
button0,
|
|
10832
11146
|
"tabindex",
|
|
10833
11147
|
/*categoryTabIndex*/
|
|
10834
|
-
ctx[
|
|
11148
|
+
ctx[21]
|
|
10835
11149
|
);
|
|
10836
11150
|
attr(button0, "aria-label", "Skip to word bin");
|
|
10837
11151
|
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");
|
|
@@ -10841,7 +11155,7 @@
|
|
|
10841
11155
|
div0,
|
|
10842
11156
|
"aria-hidden",
|
|
10843
11157
|
/*isModalOpen*/
|
|
10844
|
-
ctx[
|
|
11158
|
+
ctx[18]
|
|
10845
11159
|
);
|
|
10846
11160
|
attr(div1, "class", "mb-5 grid gap-2 grid-cols-1 md:grid-cols-2 md:gap-6 lg:flex lg:gap-0");
|
|
10847
11161
|
attr(span2, "class", "text-base leading-5 !text-gray-900 font-semibold md:mb-2 md:item-heading");
|
|
@@ -10850,67 +11164,67 @@
|
|
|
10850
11164
|
attr(span4, "class", "w-6 h-6 text-inherit flex items-center justify-center");
|
|
10851
11165
|
attr(button1, "aria-label", "Left");
|
|
10852
11166
|
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*/
|
|
10853
|
-
(ctx[
|
|
11167
|
+
(ctx[39](
|
|
10854
11168
|
/*totalRemainingWordBinItem*/
|
|
10855
|
-
ctx[
|
|
11169
|
+
ctx[16]
|
|
10856
11170
|
) ? "hidden" : ""));
|
|
10857
11171
|
button1.disabled = button1_disabled_value = /*currentWordBinIndex*/
|
|
10858
|
-
ctx[
|
|
11172
|
+
ctx[20] === 0;
|
|
10859
11173
|
attr(span5, "class", "w-6 h-6 text-inherit flex items-center justify-center ml-[3px]");
|
|
10860
11174
|
attr(button2, "aria-label", "Right");
|
|
10861
11175
|
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*/
|
|
10862
|
-
(ctx[
|
|
11176
|
+
(ctx[39](
|
|
10863
11177
|
/*totalRemainingWordBinItem*/
|
|
10864
|
-
ctx[
|
|
11178
|
+
ctx[16]
|
|
10865
11179
|
) ? "hidden" : ""));
|
|
10866
11180
|
button2.disabled = button2_disabled_value = /*currentWordBinIndex*/
|
|
10867
|
-
ctx[
|
|
10868
|
-
ctx[
|
|
11181
|
+
ctx[20] === /*totalRemainingWordBinItem*/
|
|
11182
|
+
ctx[16] - 1;
|
|
10869
11183
|
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");
|
|
10870
11184
|
attr(
|
|
10871
11185
|
div4,
|
|
10872
11186
|
"aria-hidden",
|
|
10873
11187
|
/*isModalOpen*/
|
|
10874
|
-
ctx[
|
|
11188
|
+
ctx[18]
|
|
10875
11189
|
);
|
|
10876
11190
|
attr(
|
|
10877
11191
|
div4,
|
|
10878
11192
|
"tabindex",
|
|
10879
11193
|
/*categoryTabIndex*/
|
|
10880
|
-
ctx[
|
|
11194
|
+
ctx[21]
|
|
10881
11195
|
);
|
|
10882
11196
|
attr(div4, "aria-live", div4_aria_live_value = /*checkContainerDroppedItem*/
|
|
10883
|
-
ctx[
|
|
11197
|
+
ctx[32](
|
|
10884
11198
|
CONTAINER_WORD_BIN_ID,
|
|
10885
11199
|
/*dropContainerId*/
|
|
10886
|
-
ctx[
|
|
11200
|
+
ctx[13]
|
|
10887
11201
|
) ? "polite" : "off");
|
|
10888
11202
|
attr(div4, "role", "group");
|
|
10889
11203
|
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*/
|
|
10890
|
-
(ctx[
|
|
11204
|
+
(ctx[31](
|
|
10891
11205
|
CONTAINER_WORD_BIN_ID,
|
|
10892
11206
|
/*considerContainerId*/
|
|
10893
|
-
ctx[
|
|
11207
|
+
ctx[11],
|
|
10894
11208
|
/*isDraggingOver*/
|
|
10895
|
-
ctx[
|
|
11209
|
+
ctx[12]
|
|
10896
11210
|
) ? "raw-focus-ring bg-violet-100" : "") + " " + /*checkContainerDroppedItem*/
|
|
10897
|
-
(ctx[
|
|
11211
|
+
(ctx[32](
|
|
10898
11212
|
CONTAINER_WORD_BIN_ID,
|
|
10899
11213
|
/*dropContainerId*/
|
|
10900
|
-
ctx[
|
|
11214
|
+
ctx[13]
|
|
10901
11215
|
) ? "bg-violet-150" : "") + " " + /*checkContainerDroppedItem*/
|
|
10902
|
-
(ctx[
|
|
11216
|
+
(ctx[32](
|
|
10903
11217
|
CONTAINER_WORD_BIN_ID,
|
|
10904
11218
|
/*dropContainerId*/
|
|
10905
|
-
ctx[
|
|
11219
|
+
ctx[13]
|
|
10906
11220
|
) && /*hasAddItemAnimation*/
|
|
10907
|
-
ctx[
|
|
10908
|
-
(ctx[
|
|
11221
|
+
ctx[17] ? "transition bg-white duration-300" : "") + " " + /*checkSelectedSourceContainer*/
|
|
11222
|
+
(ctx[33](
|
|
10909
11223
|
CONTAINER_WORD_BIN_ID,
|
|
10910
11224
|
/*sourceSelectedContainerId*/
|
|
10911
|
-
ctx[
|
|
11225
|
+
ctx[15],
|
|
10912
11226
|
/*currentSelectedItemId*/
|
|
10913
|
-
ctx[
|
|
11227
|
+
ctx[14]
|
|
10914
11228
|
) ? "hover:bg-violet-100 hover-focus-ring cursor-pointer" : ""));
|
|
10915
11229
|
},
|
|
10916
11230
|
m(target, anchor) {
|
|
@@ -10959,7 +11273,7 @@
|
|
|
10959
11273
|
append(div3, button2);
|
|
10960
11274
|
append(button2, span5);
|
|
10961
11275
|
mount_component(smallchevronright, span5, null);
|
|
10962
|
-
ctx[
|
|
11276
|
+
ctx[56](div4);
|
|
10963
11277
|
current = true;
|
|
10964
11278
|
if (!mounted) {
|
|
10965
11279
|
dispose = [
|
|
@@ -10967,43 +11281,43 @@
|
|
|
10967
11281
|
button0,
|
|
10968
11282
|
"keypress",
|
|
10969
11283
|
/*goToWordBin*/
|
|
10970
|
-
ctx[
|
|
11284
|
+
ctx[44]
|
|
10971
11285
|
),
|
|
10972
11286
|
listen(button1, "click", function() {
|
|
10973
11287
|
if (is_function(
|
|
10974
11288
|
/*navigateCategoryItem*/
|
|
10975
|
-
ctx[
|
|
11289
|
+
ctx[46](
|
|
10976
11290
|
/*currentWordBinIndex*/
|
|
10977
|
-
ctx[
|
|
11291
|
+
ctx[20],
|
|
10978
11292
|
/*currentAnswer*/
|
|
10979
|
-
ctx[
|
|
11293
|
+
ctx[4],
|
|
10980
11294
|
"left"
|
|
10981
11295
|
)
|
|
10982
11296
|
))
|
|
10983
|
-
ctx[
|
|
11297
|
+
ctx[46](
|
|
10984
11298
|
/*currentWordBinIndex*/
|
|
10985
|
-
ctx[
|
|
11299
|
+
ctx[20],
|
|
10986
11300
|
/*currentAnswer*/
|
|
10987
|
-
ctx[
|
|
11301
|
+
ctx[4],
|
|
10988
11302
|
"left"
|
|
10989
11303
|
).apply(this, arguments);
|
|
10990
11304
|
}),
|
|
10991
11305
|
listen(button2, "click", function() {
|
|
10992
11306
|
if (is_function(
|
|
10993
11307
|
/*navigateCategoryItem*/
|
|
10994
|
-
ctx[
|
|
11308
|
+
ctx[46](
|
|
10995
11309
|
/*currentWordBinIndex*/
|
|
10996
|
-
ctx[
|
|
11310
|
+
ctx[20],
|
|
10997
11311
|
/*currentAnswer*/
|
|
10998
|
-
ctx[
|
|
11312
|
+
ctx[4],
|
|
10999
11313
|
"right"
|
|
11000
11314
|
)
|
|
11001
11315
|
))
|
|
11002
|
-
ctx[
|
|
11316
|
+
ctx[46](
|
|
11003
11317
|
/*currentWordBinIndex*/
|
|
11004
|
-
ctx[
|
|
11318
|
+
ctx[20],
|
|
11005
11319
|
/*currentAnswer*/
|
|
11006
|
-
ctx[
|
|
11320
|
+
ctx[4],
|
|
11007
11321
|
"right"
|
|
11008
11322
|
).apply(this, arguments);
|
|
11009
11323
|
}),
|
|
@@ -11011,19 +11325,19 @@
|
|
|
11011
11325
|
div4,
|
|
11012
11326
|
"keydown",
|
|
11013
11327
|
/*keydown_handler_1*/
|
|
11014
|
-
ctx[
|
|
11328
|
+
ctx[54]
|
|
11015
11329
|
),
|
|
11016
11330
|
listen(
|
|
11017
11331
|
div4,
|
|
11018
11332
|
"focus",
|
|
11019
11333
|
/*resetTabCategory*/
|
|
11020
|
-
ctx[
|
|
11334
|
+
ctx[43]
|
|
11021
11335
|
),
|
|
11022
11336
|
listen(
|
|
11023
11337
|
div4,
|
|
11024
11338
|
"blur",
|
|
11025
11339
|
/*blur_handler_1*/
|
|
11026
|
-
ctx[
|
|
11340
|
+
ctx[55]
|
|
11027
11341
|
)
|
|
11028
11342
|
];
|
|
11029
11343
|
mounted = true;
|
|
@@ -11032,22 +11346,22 @@
|
|
|
11032
11346
|
p(new_ctx, dirty) {
|
|
11033
11347
|
ctx = new_ctx;
|
|
11034
11348
|
if (!current || dirty[0] & /*categoryTabIndex*/
|
|
11035
|
-
|
|
11349
|
+
2097152) {
|
|
11036
11350
|
attr(
|
|
11037
11351
|
button0,
|
|
11038
11352
|
"tabindex",
|
|
11039
11353
|
/*categoryTabIndex*/
|
|
11040
|
-
ctx[
|
|
11354
|
+
ctx[21]
|
|
11041
11355
|
);
|
|
11042
11356
|
}
|
|
11043
11357
|
if (
|
|
11044
11358
|
/*isModalOpen*/
|
|
11045
|
-
ctx[
|
|
11359
|
+
ctx[18]
|
|
11046
11360
|
) {
|
|
11047
11361
|
if (if_block0) {
|
|
11048
11362
|
if_block0.p(ctx, dirty);
|
|
11049
11363
|
if (dirty[0] & /*isModalOpen*/
|
|
11050
|
-
|
|
11364
|
+
262144) {
|
|
11051
11365
|
transition_in(if_block0, 1);
|
|
11052
11366
|
}
|
|
11053
11367
|
} else {
|
|
@@ -11065,14 +11379,14 @@
|
|
|
11065
11379
|
}
|
|
11066
11380
|
if (
|
|
11067
11381
|
/*totalRemainingWordBinItem*/
|
|
11068
|
-
ctx[
|
|
11069
|
-
ctx[
|
|
11382
|
+
ctx[16] !== /*totalCategoryItems*/
|
|
11383
|
+
ctx[10] && !/*isFinished*/
|
|
11070
11384
|
ctx[0]
|
|
11071
11385
|
) {
|
|
11072
11386
|
if (if_block1) {
|
|
11073
11387
|
if_block1.p(ctx, dirty);
|
|
11074
11388
|
if (dirty[0] & /*totalRemainingWordBinItem, totalCategoryItems, isFinished*/
|
|
11075
|
-
|
|
11389
|
+
66561) {
|
|
11076
11390
|
transition_in(if_block1, 1);
|
|
11077
11391
|
}
|
|
11078
11392
|
} else {
|
|
@@ -11089,20 +11403,20 @@
|
|
|
11089
11403
|
check_outros();
|
|
11090
11404
|
}
|
|
11091
11405
|
if (!current || dirty[0] & /*isModalOpen*/
|
|
11092
|
-
|
|
11406
|
+
262144) {
|
|
11093
11407
|
attr(
|
|
11094
11408
|
div0,
|
|
11095
11409
|
"aria-hidden",
|
|
11096
11410
|
/*isModalOpen*/
|
|
11097
|
-
ctx[
|
|
11411
|
+
ctx[18]
|
|
11098
11412
|
);
|
|
11099
11413
|
}
|
|
11100
|
-
if (dirty[0] & /*isModalOpen, categoryTabIndex,
|
|
11101
|
-
|
|
11102
|
-
|
|
11414
|
+
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*/
|
|
11415
|
+
1273953015 | dirty[1] & /*checkContainerDragOver, checkContainerDroppedItem, checkSelectedSourceContainer, checkifCategoryContainerOpen, getContainerTabSelected, resetTabCategory, handleItemAriaHidden, updateCategory, saveCategory, getTotalWords, addCategoryContainer, getTotalWordsLabel*/
|
|
11416
|
+
24311) {
|
|
11103
11417
|
each_value = ensure_array_like(Object.values(
|
|
11104
11418
|
/*categoryGroups*/
|
|
11105
|
-
ctx[
|
|
11419
|
+
ctx[30]
|
|
11106
11420
|
));
|
|
11107
11421
|
let i;
|
|
11108
11422
|
for (i = 0; i < each_value.length; i += 1) {
|
|
@@ -11124,12 +11438,12 @@
|
|
|
11124
11438
|
check_outros();
|
|
11125
11439
|
}
|
|
11126
11440
|
if (dirty[0] & /*dropContainerId*/
|
|
11127
|
-
|
|
11441
|
+
8192)
|
|
11128
11442
|
show_if = /*checkContainerDroppedItem*/
|
|
11129
|
-
ctx[
|
|
11443
|
+
ctx[32](
|
|
11130
11444
|
CONTAINER_WORD_BIN_ID,
|
|
11131
11445
|
/*dropContainerId*/
|
|
11132
|
-
ctx[
|
|
11446
|
+
ctx[13]
|
|
11133
11447
|
);
|
|
11134
11448
|
if (show_if) {
|
|
11135
11449
|
if (if_block2) {
|
|
@@ -11144,41 +11458,41 @@
|
|
|
11144
11458
|
if_block2 = null;
|
|
11145
11459
|
}
|
|
11146
11460
|
if (!current || dirty[0] & /*totalRemainingWordBinItem*/
|
|
11147
|
-
|
|
11461
|
+
65536)
|
|
11148
11462
|
set_data(
|
|
11149
11463
|
t11,
|
|
11150
11464
|
/*totalRemainingWordBinItem*/
|
|
11151
|
-
ctx[
|
|
11465
|
+
ctx[16]
|
|
11152
11466
|
);
|
|
11153
11467
|
if (!current || dirty[0] & /*totalCategoryItems*/
|
|
11154
|
-
|
|
11468
|
+
1024)
|
|
11155
11469
|
set_data(
|
|
11156
11470
|
t13,
|
|
11157
11471
|
/*totalCategoryItems*/
|
|
11158
|
-
ctx[
|
|
11472
|
+
ctx[10]
|
|
11159
11473
|
);
|
|
11160
11474
|
if (!current || dirty[0] & /*totalRemainingWordBinItem*/
|
|
11161
|
-
|
|
11162
|
-
(ctx[
|
|
11475
|
+
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*/
|
|
11476
|
+
(ctx[39](
|
|
11163
11477
|
/*totalRemainingWordBinItem*/
|
|
11164
|
-
ctx[
|
|
11478
|
+
ctx[16]
|
|
11165
11479
|
) ? "hidden" : ""))) {
|
|
11166
11480
|
attr(button1, "class", button1_class_value);
|
|
11167
11481
|
}
|
|
11168
11482
|
if (!current || dirty[0] & /*currentWordBinIndex*/
|
|
11169
|
-
|
|
11170
|
-
ctx[
|
|
11483
|
+
1048576 && button1_disabled_value !== (button1_disabled_value = /*currentWordBinIndex*/
|
|
11484
|
+
ctx[20] === 0)) {
|
|
11171
11485
|
button1.disabled = button1_disabled_value;
|
|
11172
11486
|
}
|
|
11173
11487
|
const promptcategorisedndcontainer_changes = {};
|
|
11174
11488
|
if (dirty[0] & /*totalRemainingWordBinItem, currentSelectedItemId*/
|
|
11175
|
-
|
|
11489
|
+
81920)
|
|
11176
11490
|
promptcategorisedndcontainer_changes.containerClass = "bg-transparent p-4 pt-[55px] grow md:grow-0 md:pt-20.5 justify-center md:justify-normal\n " + /*isWordBInTotalZero*/
|
|
11177
|
-
(ctx[
|
|
11491
|
+
(ctx[39](
|
|
11178
11492
|
/*totalRemainingWordBinItem*/
|
|
11179
|
-
ctx[
|
|
11493
|
+
ctx[16]
|
|
11180
11494
|
) && !/*currentSelectedItemId*/
|
|
11181
|
-
ctx[
|
|
11495
|
+
ctx[14] ? "absolute inset-0" : "");
|
|
11182
11496
|
if (dirty[0] & /*isFinished*/
|
|
11183
11497
|
1)
|
|
11184
11498
|
promptcategorisedndcontainer_changes.isFinished = /*isFinished*/
|
|
@@ -11188,77 +11502,81 @@
|
|
|
11188
11502
|
promptcategorisedndcontainer_changes.isPreviewModeInteractive = /*isPreviewModeInteractive*/
|
|
11189
11503
|
ctx[1];
|
|
11190
11504
|
if (dirty[0] & /*categoriseSettingsData*/
|
|
11191
|
-
|
|
11505
|
+
128)
|
|
11192
11506
|
promptcategorisedndcontainer_changes.categoryData = /*categoriseSettingsData*/
|
|
11193
|
-
ctx[
|
|
11507
|
+
ctx[7];
|
|
11508
|
+
if (dirty[0] & /*isDataSaving*/
|
|
11509
|
+
4)
|
|
11510
|
+
promptcategorisedndcontainer_changes.isDataSaving = /*isDataSaving*/
|
|
11511
|
+
ctx[2];
|
|
11194
11512
|
promptcategorisedndcontainer.$set(promptcategorisedndcontainer_changes);
|
|
11195
11513
|
if (!current || dirty[0] & /*totalRemainingWordBinItem*/
|
|
11196
|
-
|
|
11197
|
-
(ctx[
|
|
11514
|
+
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*/
|
|
11515
|
+
(ctx[39](
|
|
11198
11516
|
/*totalRemainingWordBinItem*/
|
|
11199
|
-
ctx[
|
|
11517
|
+
ctx[16]
|
|
11200
11518
|
) ? "hidden" : ""))) {
|
|
11201
11519
|
attr(button2, "class", button2_class_value);
|
|
11202
11520
|
}
|
|
11203
11521
|
if (!current || dirty[0] & /*currentWordBinIndex, totalRemainingWordBinItem*/
|
|
11204
|
-
|
|
11205
|
-
ctx[
|
|
11206
|
-
ctx[
|
|
11522
|
+
1114112 && button2_disabled_value !== (button2_disabled_value = /*currentWordBinIndex*/
|
|
11523
|
+
ctx[20] === /*totalRemainingWordBinItem*/
|
|
11524
|
+
ctx[16] - 1)) {
|
|
11207
11525
|
button2.disabled = button2_disabled_value;
|
|
11208
11526
|
}
|
|
11209
11527
|
if (!current || dirty[0] & /*isModalOpen*/
|
|
11210
|
-
|
|
11528
|
+
262144) {
|
|
11211
11529
|
attr(
|
|
11212
11530
|
div4,
|
|
11213
11531
|
"aria-hidden",
|
|
11214
11532
|
/*isModalOpen*/
|
|
11215
|
-
ctx[
|
|
11533
|
+
ctx[18]
|
|
11216
11534
|
);
|
|
11217
11535
|
}
|
|
11218
11536
|
if (!current || dirty[0] & /*categoryTabIndex*/
|
|
11219
|
-
|
|
11537
|
+
2097152) {
|
|
11220
11538
|
attr(
|
|
11221
11539
|
div4,
|
|
11222
11540
|
"tabindex",
|
|
11223
11541
|
/*categoryTabIndex*/
|
|
11224
|
-
ctx[
|
|
11542
|
+
ctx[21]
|
|
11225
11543
|
);
|
|
11226
11544
|
}
|
|
11227
11545
|
if (!current || dirty[0] & /*dropContainerId*/
|
|
11228
|
-
|
|
11229
|
-
ctx[
|
|
11546
|
+
8192 && div4_aria_live_value !== (div4_aria_live_value = /*checkContainerDroppedItem*/
|
|
11547
|
+
ctx[32](
|
|
11230
11548
|
CONTAINER_WORD_BIN_ID,
|
|
11231
11549
|
/*dropContainerId*/
|
|
11232
|
-
ctx[
|
|
11550
|
+
ctx[13]
|
|
11233
11551
|
) ? "polite" : "off")) {
|
|
11234
11552
|
attr(div4, "aria-live", div4_aria_live_value);
|
|
11235
11553
|
}
|
|
11236
11554
|
if (!current || dirty[0] & /*considerContainerId, isDraggingOver, dropContainerId, hasAddItemAnimation, sourceSelectedContainerId, currentSelectedItemId*/
|
|
11237
|
-
|
|
11238
|
-
(ctx[
|
|
11555
|
+
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*/
|
|
11556
|
+
(ctx[31](
|
|
11239
11557
|
CONTAINER_WORD_BIN_ID,
|
|
11240
11558
|
/*considerContainerId*/
|
|
11241
|
-
ctx[
|
|
11559
|
+
ctx[11],
|
|
11242
11560
|
/*isDraggingOver*/
|
|
11243
|
-
ctx[
|
|
11561
|
+
ctx[12]
|
|
11244
11562
|
) ? "raw-focus-ring bg-violet-100" : "") + " " + /*checkContainerDroppedItem*/
|
|
11245
|
-
(ctx[
|
|
11563
|
+
(ctx[32](
|
|
11246
11564
|
CONTAINER_WORD_BIN_ID,
|
|
11247
11565
|
/*dropContainerId*/
|
|
11248
|
-
ctx[
|
|
11566
|
+
ctx[13]
|
|
11249
11567
|
) ? "bg-violet-150" : "") + " " + /*checkContainerDroppedItem*/
|
|
11250
|
-
(ctx[
|
|
11568
|
+
(ctx[32](
|
|
11251
11569
|
CONTAINER_WORD_BIN_ID,
|
|
11252
11570
|
/*dropContainerId*/
|
|
11253
|
-
ctx[
|
|
11571
|
+
ctx[13]
|
|
11254
11572
|
) && /*hasAddItemAnimation*/
|
|
11255
|
-
ctx[
|
|
11256
|
-
(ctx[
|
|
11573
|
+
ctx[17] ? "transition bg-white duration-300" : "") + " " + /*checkSelectedSourceContainer*/
|
|
11574
|
+
(ctx[33](
|
|
11257
11575
|
CONTAINER_WORD_BIN_ID,
|
|
11258
11576
|
/*sourceSelectedContainerId*/
|
|
11259
|
-
ctx[
|
|
11577
|
+
ctx[15],
|
|
11260
11578
|
/*currentSelectedItemId*/
|
|
11261
|
-
ctx[
|
|
11579
|
+
ctx[14]
|
|
11262
11580
|
) ? "hover:bg-violet-100 hover-focus-ring cursor-pointer" : ""))) {
|
|
11263
11581
|
attr(div4, "class", div4_class_value);
|
|
11264
11582
|
}
|
|
@@ -11312,13 +11630,13 @@
|
|
|
11312
11630
|
destroy_component(smallchevronleft);
|
|
11313
11631
|
destroy_component(promptcategorisedndcontainer);
|
|
11314
11632
|
destroy_component(smallchevronright);
|
|
11315
|
-
ctx[
|
|
11633
|
+
ctx[56](null);
|
|
11316
11634
|
mounted = false;
|
|
11317
11635
|
run_all(dispose);
|
|
11318
11636
|
}
|
|
11319
11637
|
};
|
|
11320
11638
|
}
|
|
11321
|
-
function
|
|
11639
|
+
function create_fragment24(ctx) {
|
|
11322
11640
|
let div;
|
|
11323
11641
|
let promptbody;
|
|
11324
11642
|
let current;
|
|
@@ -11326,12 +11644,13 @@
|
|
|
11326
11644
|
props: {
|
|
11327
11645
|
rubric: (
|
|
11328
11646
|
/*rubric*/
|
|
11329
|
-
ctx[
|
|
11647
|
+
ctx[26].text
|
|
11330
11648
|
),
|
|
11331
11649
|
prompt: (
|
|
11332
11650
|
/*prompt*/
|
|
11333
|
-
ctx[
|
|
11651
|
+
ctx[28]
|
|
11334
11652
|
),
|
|
11653
|
+
interactionType: INTERACTION_TYPE_CATEGORISE,
|
|
11335
11654
|
$$slots: { default: [create_default_slot4] },
|
|
11336
11655
|
$$scope: { ctx }
|
|
11337
11656
|
}
|
|
@@ -11345,14 +11664,14 @@
|
|
|
11345
11664
|
m(target, anchor) {
|
|
11346
11665
|
insert(target, div, anchor);
|
|
11347
11666
|
mount_component(promptbody, div, null);
|
|
11348
|
-
ctx[
|
|
11667
|
+
ctx[57](div);
|
|
11349
11668
|
current = true;
|
|
11350
11669
|
},
|
|
11351
11670
|
p(ctx2, dirty) {
|
|
11352
11671
|
const promptbody_changes = {};
|
|
11353
|
-
if (dirty[0] & /*isModalOpen, categoryTabIndex, dropContainerId, considerContainerId, isDraggingOver, hasAddItemAnimation, sourceSelectedContainerId, currentSelectedItemId, tabCategory, totalRemainingWordBinItem, currentWordBinIndex, currentAnswer, isFinished, isPreviewModeInteractive, categoriseSettingsData, totalCategoryItems, selectedItemName, openCategoryContainer, categoryTitleHeight, enableAriaLive, previewResultSr, totalCategoryWords, modalSettingsData*/
|
|
11354
|
-
|
|
11355
|
-
|
|
11672
|
+
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*/
|
|
11673
|
+
33554423 | dirty[2] & /*$$scope*/
|
|
11674
|
+
512) {
|
|
11356
11675
|
promptbody_changes.$$scope = { dirty, ctx: ctx2 };
|
|
11357
11676
|
}
|
|
11358
11677
|
promptbody.$set(promptbody_changes);
|
|
@@ -11372,15 +11691,16 @@
|
|
|
11372
11691
|
detach(div);
|
|
11373
11692
|
}
|
|
11374
11693
|
destroy_component(promptbody);
|
|
11375
|
-
ctx[
|
|
11694
|
+
ctx[57](null);
|
|
11376
11695
|
}
|
|
11377
11696
|
};
|
|
11378
11697
|
}
|
|
11379
|
-
function
|
|
11698
|
+
function instance12($$self, $$props, $$invalidate) {
|
|
11380
11699
|
let { sessionData } = $$props;
|
|
11381
11700
|
let { isFinished = false } = $$props;
|
|
11382
11701
|
let { isPreviewMode = false } = $$props;
|
|
11383
11702
|
let { isPreviewModeInteractive = false } = $$props;
|
|
11703
|
+
let { isDataSaving = false } = $$props;
|
|
11384
11704
|
const dispatch = createEventDispatcher();
|
|
11385
11705
|
let srDiv;
|
|
11386
11706
|
let totalCategoryItems = 0;
|
|
@@ -11435,7 +11755,7 @@
|
|
|
11435
11755
|
const categoryItems = useFilterUniqueObject(interactionCategoryItems);
|
|
11436
11756
|
const categoryGroups = useFilterUniqueObject(interactionCategoryGroups);
|
|
11437
11757
|
const tabCategory = [];
|
|
11438
|
-
categoryGroups.map((group) => $$invalidate(
|
|
11758
|
+
categoryGroups.map((group) => $$invalidate(9, tabCategory[group.id] = false, tabCategory));
|
|
11439
11759
|
totalCategoryItems = totalRemainingWordBinItem = Object.keys(categoryItems).length;
|
|
11440
11760
|
let wordBinItems = categoryItems.map((item) => item.id);
|
|
11441
11761
|
let initialCategoryAnswer = [
|
|
@@ -11446,7 +11766,7 @@
|
|
|
11446
11766
|
];
|
|
11447
11767
|
let categoryTitleHeight = [];
|
|
11448
11768
|
categoryGroups.map((category) => {
|
|
11449
|
-
$$invalidate(
|
|
11769
|
+
$$invalidate(24, categoryTitleHeight[category.id] = "", categoryTitleHeight);
|
|
11450
11770
|
initialCategoryAnswer.push({ categoryId: category.id, itemId: [] });
|
|
11451
11771
|
});
|
|
11452
11772
|
if (metadata) {
|
|
@@ -11471,13 +11791,13 @@
|
|
|
11471
11791
|
}
|
|
11472
11792
|
}
|
|
11473
11793
|
const updateCategoriseSettings = (newSettings) => {
|
|
11474
|
-
$$invalidate(
|
|
11794
|
+
$$invalidate(7, categoriseSettingsData = {
|
|
11475
11795
|
...categoriseSettingsData,
|
|
11476
11796
|
...newSettings
|
|
11477
11797
|
});
|
|
11478
11798
|
};
|
|
11479
11799
|
const updateModalSettings = (newSettings) => {
|
|
11480
|
-
$$invalidate(
|
|
11800
|
+
$$invalidate(8, modalSettingsData = { ...modalSettingsData, ...newSettings });
|
|
11481
11801
|
};
|
|
11482
11802
|
if (isFinished) {
|
|
11483
11803
|
const showOpenContainerList = [];
|
|
@@ -11571,7 +11891,7 @@
|
|
|
11571
11891
|
return totalRemainingWordBinItem2 <= 0;
|
|
11572
11892
|
};
|
|
11573
11893
|
const saveCategory = ({ detail }) => {
|
|
11574
|
-
if (isPreviewModeInteractive)
|
|
11894
|
+
if (isPreviewModeInteractive || isDataSaving)
|
|
11575
11895
|
return;
|
|
11576
11896
|
dispatch("saveCategory", detail);
|
|
11577
11897
|
};
|
|
@@ -11620,14 +11940,14 @@
|
|
|
11620
11940
|
};
|
|
11621
11941
|
function div0_elementresize_handler(category) {
|
|
11622
11942
|
categoryTitleHeight[category.id] = this.clientHeight;
|
|
11623
|
-
$$invalidate(
|
|
11943
|
+
$$invalidate(24, categoryTitleHeight);
|
|
11624
11944
|
}
|
|
11625
11945
|
const keydown_handler = (category, { key }) => getContainerTabSelected(key, category.id);
|
|
11626
11946
|
const blur_handler = () => handleItemAriaHidden(false);
|
|
11627
11947
|
function div1_binding($$value, category) {
|
|
11628
11948
|
binding_callbacks[$$value ? "unshift" : "push"](() => {
|
|
11629
11949
|
tabCategory[category.id] = $$value;
|
|
11630
|
-
$$invalidate(
|
|
11950
|
+
$$invalidate(9, tabCategory);
|
|
11631
11951
|
});
|
|
11632
11952
|
}
|
|
11633
11953
|
const keydown_handler_1 = ({ key }) => getContainerTabSelected(key, CONTAINER_WORD_BIN_ID);
|
|
@@ -11635,61 +11955,63 @@
|
|
|
11635
11955
|
function div4_binding($$value) {
|
|
11636
11956
|
binding_callbacks[$$value ? "unshift" : "push"](() => {
|
|
11637
11957
|
tabCategory[CONTAINER_WORD_BIN_ID] = $$value;
|
|
11638
|
-
$$invalidate(
|
|
11958
|
+
$$invalidate(9, tabCategory);
|
|
11639
11959
|
});
|
|
11640
11960
|
}
|
|
11641
11961
|
function div_binding($$value) {
|
|
11642
11962
|
binding_callbacks[$$value ? "unshift" : "push"](() => {
|
|
11643
11963
|
srDiv = $$value;
|
|
11644
|
-
$$invalidate(
|
|
11964
|
+
$$invalidate(3, srDiv), $$invalidate(8, modalSettingsData);
|
|
11645
11965
|
});
|
|
11646
11966
|
}
|
|
11647
11967
|
$$self.$$set = ($$props2) => {
|
|
11648
11968
|
if ("sessionData" in $$props2)
|
|
11649
|
-
$$invalidate(
|
|
11969
|
+
$$invalidate(48, sessionData = $$props2.sessionData);
|
|
11650
11970
|
if ("isFinished" in $$props2)
|
|
11651
11971
|
$$invalidate(0, isFinished = $$props2.isFinished);
|
|
11652
11972
|
if ("isPreviewMode" in $$props2)
|
|
11653
|
-
$$invalidate(
|
|
11973
|
+
$$invalidate(49, isPreviewMode = $$props2.isPreviewMode);
|
|
11654
11974
|
if ("isPreviewModeInteractive" in $$props2)
|
|
11655
11975
|
$$invalidate(1, isPreviewModeInteractive = $$props2.isPreviewModeInteractive);
|
|
11976
|
+
if ("isDataSaving" in $$props2)
|
|
11977
|
+
$$invalidate(2, isDataSaving = $$props2.isDataSaving);
|
|
11656
11978
|
};
|
|
11657
11979
|
$$self.$$.update = () => {
|
|
11658
11980
|
if ($$self.$$.dirty[0] & /*modalSettingsData, srDiv*/
|
|
11659
|
-
|
|
11981
|
+
264) {
|
|
11660
11982
|
$:
|
|
11661
11983
|
if (modalSettingsData) {
|
|
11662
11984
|
const { isModalOpen: storeIsModalOpen, isOpenLastStatus } = modalSettingsData;
|
|
11663
|
-
$$invalidate(
|
|
11664
|
-
$$invalidate(
|
|
11985
|
+
$$invalidate(18, isModalOpen = storeIsModalOpen);
|
|
11986
|
+
$$invalidate(21, categoryTabIndex = storeIsModalOpen ? -1 : 0);
|
|
11665
11987
|
if (!storeIsModalOpen && isOpenLastStatus) {
|
|
11666
11988
|
setTimeout(() => {
|
|
11667
|
-
$$invalidate(
|
|
11989
|
+
$$invalidate(3, srDiv.tabIndex = 0, srDiv);
|
|
11668
11990
|
srDiv.focus();
|
|
11669
|
-
$$invalidate(
|
|
11991
|
+
$$invalidate(3, srDiv.tabIndex = -1, srDiv);
|
|
11670
11992
|
updateModalSettings({ isOpenLastStatus: false });
|
|
11671
11993
|
});
|
|
11672
11994
|
}
|
|
11673
11995
|
}
|
|
11674
11996
|
}
|
|
11675
11997
|
if ($$self.$$.dirty[0] & /*categoriseSettingsData, currentAnswer, isFinished, totalCategoryWords, tabCategory, previewResultSr*/
|
|
11676
|
-
|
|
11998
|
+
753) {
|
|
11677
11999
|
$:
|
|
11678
12000
|
if (categoriseSettingsData) {
|
|
11679
12001
|
const { considerContainerId: storeConsiderContainerId, isDraggingOver: storeIsDraggingOver, dropContainerId: storeDropContainerId, sourceCloneContainerId: storeSourceCloneContainerId, selectedItemId: storeSelectedItemId, sourceSelectedContainerId: storeSourceSelectedContainerId, currentAnswer: storeCurrentAnswer, hasAddItemAnimation: storeHasAddItemAnimation, openCategoryContainer: storeOpenCategoryContainer, currentWordBinIndex: storeCurrentWordBinIndex, selectedItemName: storeSelectedItemName, lastSelectedTabContainer, previewResultSr: storepreviewResultSr } = categoriseSettingsData;
|
|
11680
|
-
$$invalidate(
|
|
11681
|
-
$$invalidate(
|
|
11682
|
-
$$invalidate(
|
|
12002
|
+
$$invalidate(11, considerContainerId = storeConsiderContainerId);
|
|
12003
|
+
$$invalidate(12, isDraggingOver = storeIsDraggingOver);
|
|
12004
|
+
$$invalidate(13, dropContainerId = storeDropContainerId);
|
|
11683
12005
|
sourceCloneContainerId = storeSourceCloneContainerId;
|
|
11684
|
-
$$invalidate(
|
|
11685
|
-
$$invalidate(
|
|
11686
|
-
$$invalidate(
|
|
11687
|
-
$$invalidate(
|
|
11688
|
-
$$invalidate(
|
|
11689
|
-
$$invalidate(
|
|
11690
|
-
$$invalidate(
|
|
11691
|
-
$$invalidate(
|
|
11692
|
-
$$invalidate(
|
|
12006
|
+
$$invalidate(14, currentSelectedItemId = storeSelectedItemId);
|
|
12007
|
+
$$invalidate(15, sourceSelectedContainerId = storeSourceSelectedContainerId);
|
|
12008
|
+
$$invalidate(4, currentAnswer = storeCurrentAnswer);
|
|
12009
|
+
$$invalidate(17, hasAddItemAnimation = storeHasAddItemAnimation);
|
|
12010
|
+
$$invalidate(19, openCategoryContainer = storeOpenCategoryContainer);
|
|
12011
|
+
$$invalidate(20, currentWordBinIndex = storeCurrentWordBinIndex);
|
|
12012
|
+
$$invalidate(22, selectedItemName = storeSelectedItemName);
|
|
12013
|
+
$$invalidate(5, previewResultSr = storepreviewResultSr);
|
|
12014
|
+
$$invalidate(21, categoryTabIndex = storeSelectedItemId.length ? -1 : 0);
|
|
11693
12015
|
currentAnswer.map((answer) => {
|
|
11694
12016
|
const { categoryId, itemId } = answer;
|
|
11695
12017
|
let totalWordCount = itemId.length;
|
|
@@ -11700,9 +12022,9 @@
|
|
|
11700
12022
|
});
|
|
11701
12023
|
totalWordCount = items.length;
|
|
11702
12024
|
}
|
|
11703
|
-
$$invalidate(
|
|
12025
|
+
$$invalidate(6, totalCategoryWords[categoryId] = totalWordCount, totalCategoryWords);
|
|
11704
12026
|
});
|
|
11705
|
-
$$invalidate(
|
|
12027
|
+
$$invalidate(16, totalRemainingWordBinItem = totalCategoryWords[CONTAINER_WORD_BIN_ID]);
|
|
11706
12028
|
if (lastSelectedTabContainer) {
|
|
11707
12029
|
setTimeout(
|
|
11708
12030
|
() => {
|
|
@@ -11715,7 +12037,7 @@
|
|
|
11715
12037
|
if (previewResultSr) {
|
|
11716
12038
|
setTimeout(
|
|
11717
12039
|
() => {
|
|
11718
|
-
$$invalidate(
|
|
12040
|
+
$$invalidate(23, enableAriaLive = false);
|
|
11719
12041
|
},
|
|
11720
12042
|
400
|
|
11721
12043
|
);
|
|
@@ -11724,7 +12046,7 @@
|
|
|
11724
12046
|
updateCategoriseSettings({ previewResultSr: "" });
|
|
11725
12047
|
setTimeout(
|
|
11726
12048
|
() => {
|
|
11727
|
-
$$invalidate(
|
|
12049
|
+
$$invalidate(23, enableAriaLive = true);
|
|
11728
12050
|
},
|
|
11729
12051
|
400
|
|
11730
12052
|
);
|
|
@@ -11738,6 +12060,7 @@
|
|
|
11738
12060
|
return [
|
|
11739
12061
|
isFinished,
|
|
11740
12062
|
isPreviewModeInteractive,
|
|
12063
|
+
isDataSaving,
|
|
11741
12064
|
srDiv,
|
|
11742
12065
|
currentAnswer,
|
|
11743
12066
|
previewResultSr,
|
|
@@ -11801,21 +12124,22 @@
|
|
|
11801
12124
|
init(
|
|
11802
12125
|
this,
|
|
11803
12126
|
options,
|
|
11804
|
-
|
|
11805
|
-
|
|
12127
|
+
instance12,
|
|
12128
|
+
create_fragment24,
|
|
11806
12129
|
safe_not_equal,
|
|
11807
12130
|
{
|
|
11808
|
-
sessionData:
|
|
12131
|
+
sessionData: 48,
|
|
11809
12132
|
isFinished: 0,
|
|
11810
|
-
isPreviewMode:
|
|
11811
|
-
isPreviewModeInteractive: 1
|
|
12133
|
+
isPreviewMode: 49,
|
|
12134
|
+
isPreviewModeInteractive: 1,
|
|
12135
|
+
isDataSaving: 2
|
|
11812
12136
|
},
|
|
11813
12137
|
null,
|
|
11814
12138
|
[-1, -1, -1]
|
|
11815
12139
|
);
|
|
11816
12140
|
}
|
|
11817
12141
|
get sessionData() {
|
|
11818
|
-
return this.$$.ctx[
|
|
12142
|
+
return this.$$.ctx[48];
|
|
11819
12143
|
}
|
|
11820
12144
|
set sessionData(sessionData) {
|
|
11821
12145
|
this.$$set({ sessionData });
|
|
@@ -11829,7 +12153,7 @@
|
|
|
11829
12153
|
flush();
|
|
11830
12154
|
}
|
|
11831
12155
|
get isPreviewMode() {
|
|
11832
|
-
return this.$$.ctx[
|
|
12156
|
+
return this.$$.ctx[49];
|
|
11833
12157
|
}
|
|
11834
12158
|
set isPreviewMode(isPreviewMode) {
|
|
11835
12159
|
this.$$set({ isPreviewMode });
|
|
@@ -11842,12 +12166,19 @@
|
|
|
11842
12166
|
this.$$set({ isPreviewModeInteractive });
|
|
11843
12167
|
flush();
|
|
11844
12168
|
}
|
|
12169
|
+
get isDataSaving() {
|
|
12170
|
+
return this.$$.ctx[2];
|
|
12171
|
+
}
|
|
12172
|
+
set isDataSaving(isDataSaving) {
|
|
12173
|
+
this.$$set({ isDataSaving });
|
|
12174
|
+
flush();
|
|
12175
|
+
}
|
|
11845
12176
|
};
|
|
11846
|
-
customElements.define("prompt-categorise", create_custom_element(PromptCategorise, { "sessionData": {}, "isFinished": { "type": "Boolean" }, "isPreviewMode": { "type": "Boolean" }, "isPreviewModeInteractive": { "type": "Boolean" } }, [], [], true));
|
|
12177
|
+
customElements.define("prompt-categorise", create_custom_element(PromptCategorise, { "sessionData": {}, "isFinished": { "type": "Boolean" }, "isPreviewMode": { "type": "Boolean" }, "isPreviewModeInteractive": { "type": "Boolean" }, "isDataSaving": { "type": "Boolean" } }, [], [], true));
|
|
11847
12178
|
var PromptCategorise_default = PromptCategorise;
|
|
11848
12179
|
|
|
11849
12180
|
// src/lib/components/prompt/skeleton/PromptSkeleton.svelte
|
|
11850
|
-
function
|
|
12181
|
+
function create_fragment25(ctx) {
|
|
11851
12182
|
let div3;
|
|
11852
12183
|
return {
|
|
11853
12184
|
c() {
|
|
@@ -11870,74 +12201,15 @@
|
|
|
11870
12201
|
var PromptSkeleton = class extends SvelteComponent {
|
|
11871
12202
|
constructor(options) {
|
|
11872
12203
|
super();
|
|
11873
|
-
init(this, options, null,
|
|
12204
|
+
init(this, options, null, create_fragment25, safe_not_equal, {});
|
|
11874
12205
|
}
|
|
11875
12206
|
};
|
|
11876
12207
|
customElements.define("prompt-skeleton", create_custom_element(PromptSkeleton, {}, [], [], true));
|
|
11877
12208
|
var PromptSkeleton_default = PromptSkeleton;
|
|
11878
12209
|
|
|
11879
|
-
// src/lib/components/common/InvalidBanner.svelte
|
|
11880
|
-
function create_fragment25(ctx) {
|
|
11881
|
-
let p;
|
|
11882
|
-
let t2;
|
|
11883
|
-
return {
|
|
11884
|
-
c() {
|
|
11885
|
-
p = element("p");
|
|
11886
|
-
t2 = text(
|
|
11887
|
-
/*bannerLabel*/
|
|
11888
|
-
ctx[0]
|
|
11889
|
-
);
|
|
11890
|
-
attr(p, "class", "p-2 border-2 border-red-600 bg-red-200 rounded");
|
|
11891
|
-
},
|
|
11892
|
-
m(target, anchor) {
|
|
11893
|
-
insert(target, p, anchor);
|
|
11894
|
-
append(p, t2);
|
|
11895
|
-
},
|
|
11896
|
-
p(ctx2, [dirty]) {
|
|
11897
|
-
if (dirty & /*bannerLabel*/
|
|
11898
|
-
1)
|
|
11899
|
-
set_data(
|
|
11900
|
-
t2,
|
|
11901
|
-
/*bannerLabel*/
|
|
11902
|
-
ctx2[0]
|
|
11903
|
-
);
|
|
11904
|
-
},
|
|
11905
|
-
i: noop,
|
|
11906
|
-
o: noop,
|
|
11907
|
-
d(detaching) {
|
|
11908
|
-
if (detaching) {
|
|
11909
|
-
detach(p);
|
|
11910
|
-
}
|
|
11911
|
-
}
|
|
11912
|
-
};
|
|
11913
|
-
}
|
|
11914
|
-
function instance12($$self, $$props, $$invalidate) {
|
|
11915
|
-
let { bannerLabel: bannerLabel2 = "Invalid." } = $$props;
|
|
11916
|
-
$$self.$$set = ($$props2) => {
|
|
11917
|
-
if ("bannerLabel" in $$props2)
|
|
11918
|
-
$$invalidate(0, bannerLabel2 = $$props2.bannerLabel);
|
|
11919
|
-
};
|
|
11920
|
-
return [bannerLabel2];
|
|
11921
|
-
}
|
|
11922
|
-
var InvalidBanner = class extends SvelteComponent {
|
|
11923
|
-
constructor(options) {
|
|
11924
|
-
super();
|
|
11925
|
-
init(this, options, instance12, create_fragment25, safe_not_equal, { bannerLabel: 0 });
|
|
11926
|
-
}
|
|
11927
|
-
get bannerLabel() {
|
|
11928
|
-
return this.$$.ctx[0];
|
|
11929
|
-
}
|
|
11930
|
-
set bannerLabel(bannerLabel2) {
|
|
11931
|
-
this.$$set({ bannerLabel: bannerLabel2 });
|
|
11932
|
-
flush();
|
|
11933
|
-
}
|
|
11934
|
-
};
|
|
11935
|
-
customElements.define("invalid-banner", create_custom_element(InvalidBanner, { "bannerLabel": {} }, [], [], true));
|
|
11936
|
-
var InvalidBanner_default = InvalidBanner;
|
|
11937
|
-
|
|
11938
12210
|
// src/lib/components/prompt/PromptBuilder.svelte
|
|
11939
12211
|
function add_css2(target) {
|
|
11940
|
-
append_styles(target, "svelte-1pyhhnp", '*,:after,:before{border:0 solid #e5e7eb;box-sizing:border-box}:after,:before{--tw-content:""}html{-webkit-text-size-adjust:100%;font-feature-settings:normal;font-family:Mulish Variable, sans-serif;font-variation-settings:normal;line-height:1.5;-moz-tab-size:4;-o-tab-size:4;tab-size:4}body{line-height:inherit;margin:0}hr{border-top-width:1px;color:inherit;height:0}abbr:where([title]){-webkit-text-decoration:underline dotted;text-decoration:underline dotted}h1,h2,h3,h4,h5,h6{font-size:inherit;font-weight:inherit}a{color:inherit;text-decoration:inherit}b,strong{font-weight:bolder}code,kbd,pre,samp{font-family:ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, Liberation Mono, Courier New, monospace;font-size:1em}small{font-size:80%}sub,sup{font-size:75%;line-height:0;position:relative;vertical-align:baseline}sub{bottom:-0.25em}sup{top:-0.5em}table{border-collapse:collapse;border-color:inherit;text-indent:0}button,input,optgroup,select,textarea{font-feature-settings:inherit;color:inherit;font-family:inherit;font-size:100%;font-variation-settings:inherit;font-weight:inherit;line-height:inherit;margin:0;padding:0}button,select{text-transform:none}[type=button],[type=reset],[type=submit],button{-webkit-appearance:button;background-color:transparent;background-image:none}:-moz-focusring{outline:auto}:-moz-ui-invalid{box-shadow:none}progress{vertical-align:baseline}::-webkit-inner-spin-button,::-webkit-outer-spin-button{height:auto}[type=search]{-webkit-appearance:textfield;outline-offset:-2px}::-webkit-search-decoration{-webkit-appearance:none}::-webkit-file-upload-button{-webkit-appearance:button;font:inherit}summary{display:list-item}blockquote,dd,dl,figure,h1,h2,h3,h4,h5,h6,hr,p,pre{margin:0}fieldset{margin:0}fieldset,legend{padding:0}menu,ol,ul{list-style:none;margin:0;padding:0}dialog{padding:0}textarea{resize:vertical}input::-moz-placeholder,textarea::-moz-placeholder{color:#9ca3af;opacity:1}input::placeholder,textarea::placeholder{color:#9ca3af;opacity:1}[role=button],button{cursor:pointer}:disabled{cursor:default}audio,canvas,embed,iframe,img,object,svg,video{display:block;vertical-align:middle}img,video{height:auto;max-width:100%}[hidden]{display:none}*{font-family:Mulish Variable, sans-serif}input::-moz-selection,textarea::-moz-selection{background-color:hsla(0, 0%, 85%, 0.4)}input::selection,textarea::selection{background-color:hsla(0, 0%, 85%, 0.4)}*,:after,:before{--tw-border-spacing-x:0;--tw-border-spacing-y:0;--tw-translate-x:0;--tw-translate-y:0;--tw-rotate:0;--tw-skew-x:0;--tw-skew-y:0;--tw-scale-x:1;--tw-scale-y:1;--tw-pan-x: ;--tw-pan-y: ;--tw-pinch-zoom: ;--tw-scroll-snap-strictness:proximity;--tw-gradient-from-position: ;--tw-gradient-via-position: ;--tw-gradient-to-position: ;--tw-ordinal: ;--tw-slashed-zero: ;--tw-numeric-figure: ;--tw-numeric-spacing: ;--tw-numeric-fraction: ;--tw-ring-inset: ;--tw-ring-offset-width:0px;--tw-ring-offset-color:#fff;--tw-ring-color:rgba(59,130,246,.5);--tw-ring-offset-shadow:0 0 #0000;--tw-ring-shadow:0 0 #0000;--tw-shadow:0 0 #0000;--tw-shadow-colored:0 0 #0000;--tw-blur: ;--tw-brightness: ;--tw-contrast: ;--tw-grayscale: ;--tw-hue-rotate: ;--tw-invert: ;--tw-saturate: ;--tw-sepia: ;--tw-drop-shadow: ;--tw-backdrop-blur: ;--tw-backdrop-brightness: ;--tw-backdrop-contrast: ;--tw-backdrop-grayscale: ;--tw-backdrop-hue-rotate: ;--tw-backdrop-invert: ;--tw-backdrop-opacity: ;--tw-backdrop-saturate: ;--tw-backdrop-sepia: }::backdrop{--tw-border-spacing-x:0;--tw-border-spacing-y:0;--tw-translate-x:0;--tw-translate-y:0;--tw-rotate:0;--tw-skew-x:0;--tw-skew-y:0;--tw-scale-x:1;--tw-scale-y:1;--tw-pan-x: ;--tw-pan-y: ;--tw-pinch-zoom: ;--tw-scroll-snap-strictness:proximity;--tw-gradient-from-position: ;--tw-gradient-via-position: ;--tw-gradient-to-position: ;--tw-ordinal: ;--tw-slashed-zero: ;--tw-numeric-figure: ;--tw-numeric-spacing: ;--tw-numeric-fraction: ;--tw-ring-inset: ;--tw-ring-offset-width:0px;--tw-ring-offset-color:#fff;--tw-ring-color:rgba(59,130,246,.5);--tw-ring-offset-shadow:0 0 #0000;--tw-ring-shadow:0 0 #0000;--tw-shadow:0 0 #0000;--tw-shadow-colored:0 0 #0000;--tw-blur: ;--tw-brightness: ;--tw-contrast: ;--tw-grayscale: ;--tw-hue-rotate: ;--tw-invert: ;--tw-saturate: ;--tw-sepia: ;--tw-drop-shadow: ;--tw-backdrop-blur: ;--tw-backdrop-brightness: ;--tw-backdrop-contrast: ;--tw-backdrop-grayscale: ;--tw-backdrop-hue-rotate: ;--tw-backdrop-invert: ;--tw-backdrop-opacity: ;--tw-backdrop-saturate: ;--tw-backdrop-sepia: }.p2{font-size:0.875rem;font-weight:600;line-height:1.25rem;line-height:1.5}.blanket-overlay{--tw-bg-opacity:1;background-color:rgb(33 37 41/var(--tw-bg-opacity));inset:0;opacity:0.3;position:absolute}.item-heading{--tw-text-opacity:1;color:rgb(40 44 135/var(--tw-text-opacity));font-size:1.25rem;letter-spacing:-0.025em;line-height:1.5rem}.focus-ring:focus-visible{--tw-ring-offset-shadow:var(--tw-ring-inset) 0 0 0 var(--tw-ring-offset-width) var(--tw-ring-offset-color);--tw-ring-shadow:var(--tw-ring-inset) 0 0 0 calc(4px + var(--tw-ring-offset-width)) var(--tw-ring-color);--tw-ring-opacity:1;--tw-ring-color:rgb(84 101 251/var(--tw-ring-opacity));--tw-ring-offset-width:4px;box-shadow:var(--tw-ring-offset-shadow), var(--tw-ring-shadow), var(--tw-shadow, 0 0 rgba(0, 0, 0, 0));outline:2px solid transparent;outline-offset:2px;transition-duration:50ms}.hover-focus-ring:hover,.raw-focus-ring{--tw-ring-offset-shadow:var(--tw-ring-inset) 0 0 0 var(--tw-ring-offset-width) var(--tw-ring-offset-color);--tw-ring-shadow:var(--tw-ring-inset) 0 0 0 calc(2px + var(--tw-ring-offset-width)) var(--tw-ring-color);--tw-ring-opacity:1;--tw-ring-color:rgb(84 101 251/var(--tw-ring-opacity));--tw-ring-offset-width:2px;box-shadow:var(--tw-ring-offset-shadow), var(--tw-ring-shadow), var(--tw-shadow, 0 0 rgba(0, 0, 0, 0));outline:2px solid transparent;outline-offset:2px;transition-duration:50ms}.divider{--tw-border-opacity:1;border-bottom-width:1px;border-color:rgb(218 224 224/var(--tw-border-opacity))}@keyframes svelte-1pyhhnp-pulse{{opacity:0.5}}.animate-skeleton{--tw-bg-opacity:1;animation:svelte-1pyhhnp-pulse 2s cubic-bezier(0.4, 0, 0.6, 1) infinite;background-color:rgb(226 232 240/var(--tw-bg-opacity))}.btn-mcq-option:focus-visible{--tw-ring-offset-shadow:var(--tw-ring-inset) 0 0 0 var(--tw-ring-offset-width) var(--tw-ring-offset-color);--tw-ring-shadow:var(--tw-ring-inset) 0 0 0 calc(4px + var(--tw-ring-offset-width)) var(--tw-ring-color);--tw-ring-opacity:1;--tw-ring-color:rgb(84 101 251/var(--tw-ring-opacity));--tw-ring-offset-width:4px;box-shadow:var(--tw-ring-offset-shadow), var(--tw-ring-shadow), var(--tw-shadow, 0 0 rgba(0, 0, 0, 0));outline:2px solid transparent;outline-offset:2px;transition-duration:50ms}.btn-mcq-option{--tw-text-opacity:1;--tw-border-opacity:1;--tw-bg-opacity:1;align-items:center;background-color:rgb(247 250 250/var(--tw-bg-opacity));border-color:rgb(113 115 119/var(--tw-border-opacity));border-radius:0.5rem;border-width:1px;color:rgb(33 37 41/var(--tw-text-opacity));display:flex;font-size:1rem;justify-content:space-between;line-height:1.5rem;margin-bottom:1rem;min-height:48px;padding:0.5rem 0.75rem 0.5rem 0.5rem;width:100%}.btn-mcq-option:active{--tw-border-opacity:1;--tw-bg-opacity:1;background-color:rgb(222 222 255/var(--tw-bg-opacity));border-color:rgb(40 44 135/var(--tw-border-opacity));border-width:2px}@media(hover: hover) and (pointer: fine){.btn-mcq-option:hover{--tw-bg-opacity:1;background-color:rgb(222 222 255/var(--tw-bg-opacity))}}.btn-mcq-option>span>.choice{--tw-border-opacity:1;--tw-bg-opacity:1;--tw-text-opacity:1;align-items:center;background-color:rgb(255 255 255/var(--tw-bg-opacity));border-color:rgb(113 115 119/var(--tw-border-opacity));border-radius:1rem;border-width:1px;color:rgb(93 99 107/var(--tw-text-opacity));display:flex;font-size:1rem;font-weight:700;height:2rem;justify-content:center;letter-spacing:0.05em;line-height:1rem;margin-right:1rem;padding:0.5rem;width:2rem}.btn-mcq-option.selected{--tw-border-opacity:1;--tw-bg-opacity:1;background-color:rgb(222 222 255/var(--tw-bg-opacity))}.btn-mcq-option.selected,.btn-mcq-option.selected>span>.choice{border-color:rgb(40 44 135/var(--tw-border-opacity));border-width:2px}.btn-mcq-option.selected>span>.choice{--tw-border-opacity:1}.btn-mcq-option.selected.correct{--tw-border-opacity:1;--tw-bg-opacity:1;background-color:rgb(241 254 241/var(--tw-bg-opacity));border-color:rgb(0 102 5/var(--tw-border-opacity));border-width:1px}.btn-mcq-option.selected.incorrect{--tw-border-opacity:1;--tw-bg-opacity:1;background-color:rgb(253 243 247/var(--tw-bg-opacity));border-color:rgb(217 12 85/var(--tw-border-opacity));border-width:1px}.btn-mcq-option.selected.correct>span>.choice,.btn-mcq-option.selected.incorrect>span>.choice{--tw-border-opacity:1;border-color:rgb(113 115 119/var(--tw-border-opacity));border-width:1px}.typein-textbox:focus-visible{--tw-ring-offset-shadow:var(--tw-ring-inset) 0 0 0 var(--tw-ring-offset-width) var(--tw-ring-offset-color);--tw-ring-shadow:var(--tw-ring-inset) 0 0 0 calc(4px + var(--tw-ring-offset-width)) var(--tw-ring-color);--tw-ring-opacity:1;--tw-ring-color:rgb(84 101 251/var(--tw-ring-opacity));--tw-ring-offset-width:4px;box-shadow:var(--tw-ring-offset-shadow), var(--tw-ring-shadow), var(--tw-shadow, 0 0 rgba(0, 0, 0, 0));outline:2px solid transparent;outline-offset:2px;transition-duration:50ms}.typein-textbox{--tw-border-opacity:1;--tw-bg-opacity:1;--tw-text-opacity:1;background-color:rgb(255 255 255/var(--tw-bg-opacity));border-color:rgb(93 99 107/var(--tw-border-opacity));border-radius:0.5rem;border-width:1px;color:rgb(33 37 41/var(--tw-text-opacity));font-size:1rem;line-height:1.5rem;padding:0.75rem 1rem;width:100%}.typein-textbox::-moz-placeholder{--tw-placeholder-opacity:1;color:rgb(93 99 107/var(--tw-placeholder-opacity))}.typein-textbox::placeholder{--tw-placeholder-opacity:1;color:rgb(93 99 107/var(--tw-placeholder-opacity))}.typein-textbox:focus{--tw-border-opacity:1;border-color:rgb(84 101 251/var(--tw-border-opacity));border-width:2px}@media(hover: hover) and (pointer: fine){.typein-textbox:hover{--tw-border-opacity:1;border-color:rgb(84 101 251/var(--tw-border-opacity));border-width:2px;outline:2px solid transparent;outline-offset:2px}}.typein-textbox:focus{--tw-ring-offset-shadow:var(--tw-ring-inset) 0 0 0 var(--tw-ring-offset-width) var(--tw-ring-offset-color)!important;--tw-ring-shadow:var(--tw-ring-inset) 0 0 0 calc(4px + var(--tw-ring-offset-width)) var(--tw-ring-color)!important;box-shadow:var(--tw-ring-offset-shadow), var(--tw-ring-shadow), var(--tw-shadow, 0 0 rgba(0, 0, 0, 0)) !important}@media(hover: hover) and (pointer: fine){.typein-textbox:hover{--tw-ring-offset-shadow:var(--tw-ring-inset) 0 0 0 var(--tw-ring-offset-width) var(--tw-ring-offset-color);--tw-ring-shadow:var(--tw-ring-inset) 0 0 0 calc(2px + var(--tw-ring-offset-width)) var(--tw-ring-color);--tw-ring-opacity:1;--tw-ring-color:rgb(84 101 251/var(--tw-ring-opacity));--tw-ring-offset-width:4px;box-shadow:var(--tw-ring-offset-shadow), var(--tw-ring-shadow), var(--tw-shadow, 0 0 rgba(0, 0, 0, 0));transition-duration:50ms}}#dnd-action-dragged-el{--tw-ring-offset-shadow:var(--tw-ring-inset) 0 0 0 var(--tw-ring-offset-width) var(--tw-ring-offset-color);--tw-ring-shadow:var(--tw-ring-inset) 0 0 0 calc(2px + var(--tw-ring-offset-width)) var(--tw-ring-color);--tw-ring-opacity:1;--tw-ring-color:rgb(84 101 251/var(--tw-ring-opacity));--tw-ring-offset-width:2px;--tw-border-opacity:1!important;--tw-bg-opacity:1!important;background-color:rgb(205 208 254/var(--tw-bg-opacity)) !important;border-color:rgb(93 99 107/var(--tw-border-opacity)) !important;box-shadow:var(--tw-ring-offset-shadow), var(--tw-ring-shadow), var(--tw-shadow, 0 0 rgba(0, 0, 0, 0));cursor:grabbing !important;outline:2px solid transparent;outline-offset:2px;transition-duration:50ms}#dnd-action-dragged-el .btn-vertical-icon{--tw-text-opacity:1;color:rgb(40 44 135/var(--tw-text-opacity));cursor:grabbing !important}#dnd-action-dragged-el .preview-icon{display:none !important}#dnd-action-dragged-el .preview-vertical{display:block !important}.category-content>.missing-answer-label{display:block}.category-content>.missing-answer-label~.missing-answer-label{display:none}.text-stimulus{padding-bottom:1rem;padding-top:1rem}.text-stimulus p{--tw-text-opacity:1;color:rgb(40 44 135/var(--tw-text-opacity));font-size:1.25rem;line-height:1.75rem;padding-bottom:0.5rem}.text-stimulus ol,.text-stimulus ul{font-size:1rem;line-height:1.5rem;list-style-position:inside;padding-bottom:0.5rem;padding-left:0.5rem}.text-stimulus ol ::marker,.text-stimulus ul ::marker{color:#282c87}.text-stimulus ol::marker,.text-stimulus ul::marker{color:#282c87}.text-stimulus ul{list-style-type:disc}.text-stimulus ol{list-style-type:decimal}.text-stimulus ul li>p{margin-left:-0.5rem}.text-stimulus ol>li>p,.text-stimulus ul>li>p{display:inline;font-size:1rem;line-height:1.5rem;padding-bottom:0;padding-top:0}.text-stimulus div.table-container:focus-visible{--tw-ring-offset-shadow:var(--tw-ring-inset) 0 0 0 var(--tw-ring-offset-width) var(--tw-ring-offset-color);--tw-ring-shadow:var(--tw-ring-inset) 0 0 0 calc(4px + var(--tw-ring-offset-width)) var(--tw-ring-color);--tw-ring-opacity:1;--tw-ring-color:rgb(84 101 251/var(--tw-ring-opacity));--tw-ring-offset-width:4px;box-shadow:var(--tw-ring-offset-shadow), var(--tw-ring-shadow), var(--tw-shadow, 0 0 rgba(0, 0, 0, 0));outline:2px solid transparent;outline-offset:2px;transition-duration:50ms}.text-stimulus div.table-container{border-radius:0.5rem;overflow:auto;padding-left:0.125rem;padding-right:0.125rem}.text-stimulus table{--tw-border-spacing-x:0.75rem;--tw-border-spacing-y:0.75rem;--tw-shadow:0 0 0 1px #9ca3af;--tw-shadow-colored:0 0 0 1px var(--tw-shadow-color);border-radius:0.5rem;border-spacing:var(--tw-border-spacing-x) var(--tw-border-spacing-y);box-shadow:var(--tw-ring-offset-shadow, 0 0 rgba(0, 0, 0, 0)), var(--tw-ring-shadow, 0 0 rgba(0, 0, 0, 0)), var(--tw-shadow);margin-bottom:1rem;margin-top:0.5rem;overflow-x:auto;width:100%}.text-stimulus table tr{--tw-border-opacity:1;border-bottom-width:1px;border-color:rgb(156 163 175/var(--tw-border-opacity))}.text-stimulus table tr:last-child{border-color:transparent}.text-stimulus table td,.text-stimulus table th{--tw-border-opacity:1;border-color:rgb(156 163 175/var(--tw-border-opacity));border-left-width:1px;min-width:140px}.text-stimulus table td:first-child,.text-stimulus table th:first-child{border-style:none}.text-stimulus table td>p,.text-stimulus table th>p{--tw-text-opacity:1;color:rgb(33 37 41/var(--tw-text-opacity));font-size:1rem;line-height:1.5rem;padding:0.75rem;text-align:left}.text-stimulus table th>p{font-weight:400}.prompt p,.text-stimulus table th p{font-weight:600}.prompt p b,.prompt p b i,.prompt p b i u,.prompt p b u,.prompt p b u i,.prompt p i b,.prompt p i b u,.prompt p i u b,.prompt p u b,.prompt p u b i,.prompt p u i b,.text-stimulus table th p b,.text-stimulus table th p b i,.text-stimulus table th p b i u,.text-stimulus table th p b u,.text-stimulus table th p b u i,.text-stimulus table th p i b,.text-stimulus table th p i b u,.text-stimulus table th p i u b,.text-stimulus table th p u b,.text-stimulus table th p u b i,.text-stimulus table th p u i b{font-weight:900}.sr-only{clip:rect(0, 0, 0, 0);border-width:0;height:1px;margin:-1px;overflow:hidden;padding:0;position:absolute;white-space:nowrap;width:1px}.absolute{position:absolute}.relative{position:relative}.inset-0{inset:0}.inset-y-0{bottom:0;top:0}.-top-2{top:-0.5rem}.-top-2\\.5{top:-0.625rem}.bottom-4{bottom:1rem}.left-4{left:1rem}.left-\\[-9999px\\]{left:-9999px}.right-0{right:0}.right-4{right:1rem}.top-12{top:3rem}.z-0{z-index:0}.z-10{z-index:10}.z-50{z-index:50}.m-auto{margin:auto}.mx-0{margin-left:0;margin-right:0}.mx-0\\.5{margin-left:0.125rem;margin-right:0.125rem}.my-6{margin-bottom:1.5rem;margin-top:1.5rem}.mb-1{margin-bottom:0.25rem}.mb-10{margin-bottom:2.5rem}.mb-12{margin-bottom:3rem}.mb-2{margin-bottom:0.5rem}.mb-3{margin-bottom:0.75rem}.mb-4{margin-bottom:1rem}.mb-5{margin-bottom:1.25rem}.mb-6{margin-bottom:1.5rem}.ml-1{margin-left:0.25rem}.ml-3{margin-left:0.75rem}.ml-\\[3px\\]{margin-left:3px}.mr-1{margin-right:0.25rem}.mr-2{margin-right:0.5rem}.mr-4{margin-right:1rem}.mt-0{margin-top:0}.mt-0\\.5{margin-top:0.125rem}.mt-1{margin-top:0.25rem}.mt-2{margin-top:0.5rem}.mt-4{margin-top:1rem}.mt-7{margin-top:1.75rem}.mt-7\\.5{margin-top:1.875}.mt-9{margin-top:2.25rem}.block{display:block}.inline{display:inline}.flex{display:flex}.table{display:table}.grid{display:grid}.hidden{display:none}.h-11{height:2.75rem}.h-4{height:1rem}.h-52{height:13rem}.h-6{height:1.5rem}.h-fit{height:-moz-fit-content;height:fit-content}.h-full{height:100%}.max-h-\\[470px\\]{max-height:470px}.max-h-\\[660px\\]{max-height:660px}.min-h-\\[133px\\]{min-height:133px}.min-h-\\[140px\\]{min-height:140px}.min-h-\\[54px\\]{min-height:54px}.min-h-\\[86px\\]{min-height:86px}.w-11{width:2.75rem}.w-2\\/4{width:50%}.w-4{width:1rem}.w-6{width:1.5rem}.w-fit{width:-moz-fit-content;width:fit-content}.w-full{width:100%}.min-w-\\[44px\\]{min-width:44px}.min-w-\\[85px\\]{min-width:85px}.max-w-\\[400px\\]{max-width:400px}.grow{flex-grow:1}.basis-0{flex-basis:0px}.\\!cursor-default{cursor:default !important}.\\!cursor-pointer{cursor:pointer !important}.cursor-pointer{cursor:pointer}.grid-cols-1{grid-template-columns:repeat(1, minmax(0, 1fr))}.flex-row{flex-direction:row}.flex-col{flex-direction:column}.flex-col-reverse{flex-direction:column-reverse}.flex-wrap{flex-wrap:wrap}.content-start{align-content:flex-start}.items-center{align-items:center}.justify-center{justify-content:center}.justify-between{justify-content:space-between}.gap-2{gap:0.5rem}.space-y-2>:not([hidden])~:not([hidden]){--tw-space-y-reverse:0;margin-bottom:calc(0.5rem * var(--tw-space-y-reverse));margin-top:calc(0.5rem * (1 - var(--tw-space-y-reverse)))}.space-y-reverse>:not([hidden])~:not([hidden]){--tw-space-y-reverse:1}.overflow-hidden{overflow:hidden}.whitespace-nowrap{white-space:nowrap}.rounded{border-radius:0.25rem}.rounded-\\[32px\\]{border-radius:32px}.rounded-lg{border-radius:0.5rem}.rounded-md{border-radius:0.375rem}.rounded-b-lg{border-bottom-left-radius:0.5rem;border-bottom-right-radius:0.5rem}.rounded-t-lg{border-top-left-radius:0.5rem;border-top-right-radius:0.5rem}.border{border-width:1px}.border-2{border-width:2px}.border-b{border-bottom-width:1px}.border-l-6,.border-l-\\[6px\\]{border-left-width:6px}.border-dashed{border-style:dashed}.\\!border-blue-1000{--tw-border-opacity:1!important;border-color:rgb(40 44 135/var(--tw-border-opacity)) !important}.border-blue-1000{--tw-border-opacity:1;border-color:rgb(40 44 135/var(--tw-border-opacity))}.border-charcoal{--tw-border-opacity:1;border-color:rgb(33 37 41/var(--tw-border-opacity))}.border-gray-400{--tw-border-opacity:1;border-color:rgb(196 201 204/var(--tw-border-opacity))}.border-gray-800{--tw-border-opacity:1;border-color:rgb(93 99 107/var(--tw-border-opacity))}.border-green-800{--tw-border-opacity:1;border-color:rgb(0 102 5/var(--tw-border-opacity))}.border-red-600{--tw-border-opacity:1;border-color:rgb(220 38 38/var(--tw-border-opacity))}.border-red-800{--tw-border-opacity:1;border-color:rgb(217 12 85/var(--tw-border-opacity))}.border-soft-blue{--tw-border-opacity:1;border-color:rgb(84 101 251/var(--tw-border-opacity))}.border-white{--tw-border-opacity:1;border-color:rgb(255 255 255/var(--tw-border-opacity))}.\\!bg-violet-100{--tw-bg-opacity:1!important;background-color:rgb(235 235 255/var(--tw-bg-opacity)) !important}.\\!bg-violet-150{--tw-bg-opacity:1!important;background-color:rgb(205 208 254/var(--tw-bg-opacity)) !important}.\\!bg-white{--tw-bg-opacity:1!important;background-color:rgb(255 255 255/var(--tw-bg-opacity)) !important}.bg-blue-1000{--tw-bg-opacity:1;background-color:rgb(40 44 135/var(--tw-bg-opacity))}.bg-gray-100{--tw-bg-opacity:1;background-color:rgb(247 250 250/var(--tw-bg-opacity))}.bg-gray-50{--tw-bg-opacity:1;background-color:rgb(244 244 244/var(--tw-bg-opacity))}.bg-green-300{--tw-bg-opacity:1;background-color:rgb(241 254 241/var(--tw-bg-opacity))}.bg-red-200{--tw-bg-opacity:1;background-color:rgb(254 202 202/var(--tw-bg-opacity))}.bg-red-300{--tw-bg-opacity:1;background-color:rgb(253 243 247/var(--tw-bg-opacity))}.bg-soft-blue{--tw-bg-opacity:1;background-color:rgb(84 101 251/var(--tw-bg-opacity))}.bg-transparent{background-color:transparent}.bg-violet-100{--tw-bg-opacity:1;background-color:rgb(235 235 255/var(--tw-bg-opacity))}.bg-violet-150{--tw-bg-opacity:1;background-color:rgb(205 208 254/var(--tw-bg-opacity))}.bg-white{--tw-bg-opacity:1;background-color:rgb(255 255 255/var(--tw-bg-opacity))}.bg-yellow-1000{--tw-bg-opacity:1;background-color:rgb(251 217 27/var(--tw-bg-opacity))}.p-0{padding:0}.p-0\\.5{padding:0.125rem}.p-1{padding:0.25rem}.p-1\\.5{padding:0.375rem}.p-2{padding:0.5rem}.p-3{padding:0.75rem}.p-4{padding:1rem}.p-5{padding:1.25rem}.p-6{padding:1.5rem}.px-3{padding-left:0.75rem;padding-right:0.75rem}.px-4{padding-left:1rem;padding-right:1rem}.py-1{padding-bottom:0.25rem;padding-top:0.25rem}.py-1\\.5{padding-bottom:0.375rem;padding-top:0.375rem}.py-2{padding-bottom:0.5rem;padding-top:0.5rem}.pb-0{padding-bottom:0}.pb-10{padding-bottom:2.5rem}.pb-2{padding-bottom:0.5rem}.pb-3{padding-bottom:0.75rem}.pl-24{padding-left:6rem}.pl-3{padding-left:0.75rem}.pl-4{padding-left:1rem}.pr-3{padding-right:0.75rem}.pt-0{padding-top:0}.pt-4{padding-top:1rem}.pt-6{padding-top:1.5rem}.pt-\\[55px\\]{padding-top:55px}.text-left{text-align:left}.text-center{text-align:center}.text-base{font-size:1rem;line-height:1.5rem}.text-lg{font-size:1.125rem;line-height:1.75rem}.text-sm{font-size:0.875rem;line-height:1.25rem}.text-xl{font-size:1.25rem;line-height:1.75rem}.font-bold{font-weight:700}.font-semibold{font-weight:600}.leading-4{line-height:1rem}.leading-5{line-height:1.25rem}.leading-6{line-height:1.5rem}.leading-\\[22px\\]{line-height:22px}.\\!text-gray-900{--tw-text-opacity:1!important;color:rgb(57 62 69/var(--tw-text-opacity)) !important}.text-blue-1000{--tw-text-opacity:1;color:rgb(40 44 135/var(--tw-text-opacity))}.text-charcoal{--tw-text-opacity:1;color:rgb(33 37 41/var(--tw-text-opacity))}.text-gray-800{--tw-text-opacity:1;color:rgb(93 99 107/var(--tw-text-opacity))}.text-green-800{--tw-text-opacity:1;color:rgb(0 102 5/var(--tw-text-opacity))}.text-inherit{color:inherit}.text-red-800{--tw-text-opacity:1;color:rgb(217 12 85/var(--tw-text-opacity))}.text-white{--tw-text-opacity:1;color:rgb(255 255 255/var(--tw-text-opacity))}.underline{text-decoration-line:underline}.opacity-50{opacity:0.5}.shadow-\\[0_-12px_14px_-16px_\\#00000033\\]{--tw-shadow:0 -12px 14px -16px #00000033;--tw-shadow-colored:0 -12px 14px -16px var(--tw-shadow-color)}.shadow-\\[0_-12px_14px_-16px_\\#00000033\\],.shadow-md{box-shadow:var(--tw-ring-offset-shadow, 0 0 rgba(0, 0, 0, 0)), var(--tw-ring-shadow, 0 0 rgba(0, 0, 0, 0)), var(--tw-shadow)}.shadow-md{--tw-shadow:0px 2px 8px rgba(0,0,0,.2);--tw-shadow-colored:0px 2px 8px var(--tw-shadow-color)}.\\!outline-none{outline:2px solid transparent !important;outline-offset:2px !important}.outline-none{outline:2px solid transparent;outline-offset:2px}.filter{filter:var(--tw-blur) var(--tw-brightness) var(--tw-contrast) var(--tw-grayscale) var(--tw-hue-rotate) var(--tw-invert) var(--tw-saturate) var(--tw-sepia) var(--tw-drop-shadow)}.transition{transition-duration:0.15s;transition-property:color, background-color, border-color, text-decoration-color, fill, stroke, opacity, box-shadow, transform, filter, -webkit-backdrop-filter;transition-property:color, background-color, border-color, text-decoration-color, fill, stroke, opacity, box-shadow, transform, filter, backdrop-filter;transition-property:color, background-color, border-color, text-decoration-color, fill, stroke, opacity, box-shadow, transform, filter, backdrop-filter, -webkit-backdrop-filter;transition-timing-function:cubic-bezier(0.4, 0, 0.2, 1)}.duration-300{transition-duration:0.3s}.active\\:raw-focus-ring:active{--tw-ring-offset-shadow:var(--tw-ring-inset) 0 0 0 var(--tw-ring-offset-width) var(--tw-ring-offset-color);--tw-ring-shadow:var(--tw-ring-inset) 0 0 0 calc(2px + var(--tw-ring-offset-width)) var(--tw-ring-color);--tw-ring-opacity:1;--tw-ring-color:rgb(84 101 251/var(--tw-ring-opacity));--tw-ring-offset-width:2px;box-shadow:var(--tw-ring-offset-shadow), var(--tw-ring-shadow), var(--tw-shadow, 0 0 rgba(0, 0, 0, 0));outline:2px solid transparent;outline-offset:2px;transition-duration:50ms}@media(min-width: 732px){.md\\:item-heading{--tw-text-opacity:1;color:rgb(40 44 135/var(--tw-text-opacity));font-size:1.25rem;letter-spacing:-0.025em;line-height:1.5rem}.category-content>.md\\:missing-answer-label{display:block}.category-content>.md\\:missing-answer-label~.md\\:missing-answer-label{display:none}}@media(hover: hover) and (pointer: fine){.td\\:hover-focus-ring:hover{--tw-ring-offset-shadow:var(--tw-ring-inset) 0 0 0 var(--tw-ring-offset-width) var(--tw-ring-offset-color);--tw-ring-shadow:var(--tw-ring-inset) 0 0 0 calc(2px + var(--tw-ring-offset-width)) var(--tw-ring-color);--tw-ring-opacity:1;--tw-ring-color:rgb(84 101 251/var(--tw-ring-opacity));--tw-ring-offset-width:2px;box-shadow:var(--tw-ring-offset-shadow), var(--tw-ring-shadow), var(--tw-shadow, 0 0 rgba(0, 0, 0, 0));outline:2px solid transparent;outline-offset:2px;transition-duration:50ms}}.last\\:mr-0:last-child{margin-right:0}.focus-within\\:left-0:focus-within{left:0}.focus-within\\:right-0:focus-within{right:0}.focus-within\\:top-0:focus-within{top:0}.focus-within\\:z-30:focus-within{z-index:30}.hover\\:bg-black-50:hover{background-color:rgba(0, 0, 0, 0.0509803922)}.hover\\:bg-blue-100:hover{--tw-bg-opacity:1;background-color:rgb(222 222 255/var(--tw-bg-opacity))}.hover\\:bg-violet-100:hover{--tw-bg-opacity:1;background-color:rgb(235 235 255/var(--tw-bg-opacity))}.hover\\:bg-yellow-1000:hover{--tw-bg-opacity:1;background-color:rgb(251 217 27/var(--tw-bg-opacity))}.hover\\:text-charcoal:hover{--tw-text-opacity:1;color:rgb(33 37 41/var(--tw-text-opacity))}.focus\\:outline-transparent:focus{outline-color:transparent}.focus-visible\\:border:focus-visible{border-width:1px}.focus-visible\\:border-charcoal:focus-visible{--tw-border-opacity:1;border-color:rgb(33 37 41/var(--tw-border-opacity))}.focus-visible\\:border-gray-400:focus-visible{--tw-border-opacity:1;border-color:rgb(196 201 204/var(--tw-border-opacity))}.focus-visible\\:border-gray-800:focus-visible{--tw-border-opacity:1;border-color:rgb(93 99 107/var(--tw-border-opacity))}.focus-visible\\:outline-none:focus-visible{outline:2px solid transparent;outline-offset:2px}.active\\:bg-black-55:active,.active\\:bg-black-60:active{background-color:rgba(0, 0, 0, 0.1019607843)}.active\\:bg-yellow-1100:active{--tw-bg-opacity:1;background-color:rgb(238 206 26/var(--tw-bg-opacity))}.active\\:text-charcoal:active{--tw-text-opacity:1;color:rgb(33 37 41/var(--tw-text-opacity))}.disabled\\:text-gray-40:disabled{--tw-text-opacity:1;color:rgb(142 147 153/var(--tw-text-opacity))}.disabled\\:hover\\:bg-white:hover:disabled{--tw-bg-opacity:1;background-color:rgb(255 255 255/var(--tw-bg-opacity))}.group\\/itemContainer:hover .group-hover\\/itemContainer\\:bg-violet-100{--tw-bg-opacity:1;background-color:rgb(235 235 255/var(--tw-bg-opacity))}.group:hover .group-hover\\:underline{text-decoration-line:underline}.group:active .group-active\\:border-2{border-width:2px}.group:active .group-active\\:border-blue-1000{--tw-border-opacity:1;border-color:rgb(40 44 135/var(--tw-border-opacity))}.group:active .group-active\\:p-\\[7px\\]{padding:7px}@media(min-width: 732px){.md\\:inset-0{inset:0}.md\\:top-20{top:5rem}.md\\:mb-2{margin-bottom:0.5rem}.md\\:mb-4{margin-bottom:1rem}.md\\:mb-8{margin-bottom:2rem}.md\\:mt-14{margin-top:3.5rem}.md\\:block{display:block}.md\\:inline-block{display:inline-block}.md\\:flex{display:flex}.md\\:hidden{display:none}.md\\:h-fit{height:-moz-fit-content;height:fit-content}.md\\:min-h-0{min-height:0}.md\\:min-h-\\[140px\\]{min-height:140px}.md\\:min-h-\\[164px\\]{min-height:164px}.md\\:w-fit{width:-moz-fit-content;width:fit-content}.md\\:grow-0{flex-grow:0}.md\\:grid-cols-2{grid-template-columns:repeat(2, minmax(0, 1fr))}.md\\:flex-row{flex-direction:row}.md\\:flex-col{flex-direction:column}.md\\:items-center{align-items:center}.md\\:justify-normal{justify-content:normal}.md\\:justify-center{justify-content:center}.md\\:justify-between{justify-content:space-between}.md\\:gap-6{gap:1.5rem}.md\\:space-y-0>:not([hidden])~:not([hidden]){--tw-space-y-reverse:0;margin-bottom:calc(0px * var(--tw-space-y-reverse));margin-top:calc(0px * (1 - var(--tw-space-y-reverse)))}.md\\:rounded-b-none{border-bottom-left-radius:0;border-bottom-right-radius:0}.md\\:border{border-width:1px}.md\\:border-gray-400{--tw-border-opacity:1;border-color:rgb(196 201 204/var(--tw-border-opacity))}.md\\:\\!bg-white{--tw-bg-opacity:1!important;background-color:rgb(255 255 255/var(--tw-bg-opacity)) !important}.md\\:p-4{padding:1rem}.md\\:px-0{padding-left:0;padding-right:0}.md\\:pb-0{padding-bottom:0}.md\\:pt-20{padding-top:5rem}.md\\:pt-20\\.5{padding-top:5.125rem}.md\\:text-center{text-align:center}.md\\:shadow-\\[0_0_\\#0000\\]{--tw-shadow:0 0 #0000;--tw-shadow-colored:0 0 var(--tw-shadow-color);box-shadow:var(--tw-ring-offset-shadow, 0 0 rgba(0, 0, 0, 0)), var(--tw-ring-shadow, 0 0 rgba(0, 0, 0, 0)), var(--tw-shadow)}.group\\/itemContainer:hover .md\\:group-hover\\/itemContainer\\:bg-white{--tw-bg-opacity:1;background-color:rgb(255 255 255/var(--tw-bg-opacity))}}@media(min-width: 1196px){.lg\\:mr-6{margin-right:1.5rem}.lg\\:flex{display:flex}.lg\\:hidden{display:none}.lg\\:min-h-\\[224px\\]{min-height:224px}.lg\\:w-full{width:100%}.lg\\:max-w-\\[50\\%\\]{max-width:50%}.lg\\:grow{flex-grow:1}.lg\\:basis-1\\/2{flex-basis:50%}.lg\\:items-center{align-items:center}.lg\\:justify-between{justify-content:space-between}.lg\\:gap-0{gap:0}.lg\\:last\\:mr-0:last-child{margin-right:0}}@media(hover: hover) and (pointer: fine){.td\\:hover\\:cursor-grab:hover{cursor:grab}.td\\:hover\\:border-gray-800:hover{--tw-border-opacity:1;border-color:rgb(93 99 107/var(--tw-border-opacity))}.td\\:hover\\:bg-black-50:hover{background-color:rgba(0, 0, 0, 0.0509803922)}.td\\:hover\\:bg-violet-100:hover{--tw-bg-opacity:1;background-color:rgb(235 235 255/var(--tw-bg-opacity))}.td\\:hover\\:text-soft-blue:hover{--tw-text-opacity:1;color:rgb(84 101 251/var(--tw-text-opacity))}.group:hover .td\\:group-hover\\:bg-black{--tw-bg-opacity:1;background-color:rgb(0 0 0/var(--tw-bg-opacity))}.group:hover .td\\:group-hover\\:opacity-5{opacity:0.05}}');
|
|
12212
|
+
append_styles(target, "svelte-r91tsr", '*,:after,:before{border:0 solid #e5e7eb;box-sizing:border-box}:after,:before{--tw-content:""}html{-webkit-text-size-adjust:100%;font-feature-settings:normal;font-family:Mulish, sans-serif;font-variation-settings:normal;line-height:1.5;-moz-tab-size:4;-o-tab-size:4;tab-size:4}body{line-height:inherit;margin:0}hr{border-top-width:1px;color:inherit;height:0}abbr:where([title]){-webkit-text-decoration:underline dotted;text-decoration:underline dotted}h1,h2,h3,h4,h5,h6{font-size:inherit;font-weight:inherit}a{color:inherit;text-decoration:inherit}b,strong{font-weight:bolder}code,kbd,pre,samp{font-family:ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, Liberation Mono, Courier New, monospace;font-size:1em}small{font-size:80%}sub,sup{font-size:75%;line-height:0;position:relative;vertical-align:baseline}sub{bottom:-0.25em}sup{top:-0.5em}table{border-collapse:collapse;border-color:inherit;text-indent:0}button,input,optgroup,select,textarea{font-feature-settings:inherit;color:inherit;font-family:inherit;font-size:100%;font-variation-settings:inherit;font-weight:inherit;line-height:inherit;margin:0;padding:0}button,select{text-transform:none}[type=button],[type=reset],[type=submit],button{-webkit-appearance:button;background-color:transparent;background-image:none}:-moz-focusring{outline:auto}:-moz-ui-invalid{box-shadow:none}progress{vertical-align:baseline}::-webkit-inner-spin-button,::-webkit-outer-spin-button{height:auto}[type=search]{-webkit-appearance:textfield;outline-offset:-2px}::-webkit-search-decoration{-webkit-appearance:none}::-webkit-file-upload-button{-webkit-appearance:button;font:inherit}summary{display:list-item}blockquote,dd,dl,figure,h1,h2,h3,h4,h5,h6,hr,p,pre{margin:0}fieldset{margin:0}fieldset,legend{padding:0}menu,ol,ul{list-style:none;margin:0;padding:0}dialog{padding:0}textarea{resize:vertical}input::-moz-placeholder,textarea::-moz-placeholder{color:#9ca3af;opacity:1}input::placeholder,textarea::placeholder{color:#9ca3af;opacity:1}[role=button],button{cursor:pointer}:disabled{cursor:default}audio,canvas,embed,iframe,img,object,svg,video{display:block;vertical-align:middle}img,video{height:auto;max-width:100%}[hidden]{display:none}*{font-family:Mulish, sans-serif}input::-moz-selection,textarea::-moz-selection{background-color:hsla(0, 0%, 85%, 0.4)}input::selection,textarea::selection{background-color:hsla(0, 0%, 85%, 0.4)}*,:after,:before{--tw-border-spacing-x:0;--tw-border-spacing-y:0;--tw-translate-x:0;--tw-translate-y:0;--tw-rotate:0;--tw-skew-x:0;--tw-skew-y:0;--tw-scale-x:1;--tw-scale-y:1;--tw-pan-x: ;--tw-pan-y: ;--tw-pinch-zoom: ;--tw-scroll-snap-strictness:proximity;--tw-gradient-from-position: ;--tw-gradient-via-position: ;--tw-gradient-to-position: ;--tw-ordinal: ;--tw-slashed-zero: ;--tw-numeric-figure: ;--tw-numeric-spacing: ;--tw-numeric-fraction: ;--tw-ring-inset: ;--tw-ring-offset-width:0px;--tw-ring-offset-color:#fff;--tw-ring-color:rgba(59,130,246,.5);--tw-ring-offset-shadow:0 0 #0000;--tw-ring-shadow:0 0 #0000;--tw-shadow:0 0 #0000;--tw-shadow-colored:0 0 #0000;--tw-blur: ;--tw-brightness: ;--tw-contrast: ;--tw-grayscale: ;--tw-hue-rotate: ;--tw-invert: ;--tw-saturate: ;--tw-sepia: ;--tw-drop-shadow: ;--tw-backdrop-blur: ;--tw-backdrop-brightness: ;--tw-backdrop-contrast: ;--tw-backdrop-grayscale: ;--tw-backdrop-hue-rotate: ;--tw-backdrop-invert: ;--tw-backdrop-opacity: ;--tw-backdrop-saturate: ;--tw-backdrop-sepia: }::backdrop{--tw-border-spacing-x:0;--tw-border-spacing-y:0;--tw-translate-x:0;--tw-translate-y:0;--tw-rotate:0;--tw-skew-x:0;--tw-skew-y:0;--tw-scale-x:1;--tw-scale-y:1;--tw-pan-x: ;--tw-pan-y: ;--tw-pinch-zoom: ;--tw-scroll-snap-strictness:proximity;--tw-gradient-from-position: ;--tw-gradient-via-position: ;--tw-gradient-to-position: ;--tw-ordinal: ;--tw-slashed-zero: ;--tw-numeric-figure: ;--tw-numeric-spacing: ;--tw-numeric-fraction: ;--tw-ring-inset: ;--tw-ring-offset-width:0px;--tw-ring-offset-color:#fff;--tw-ring-color:rgba(59,130,246,.5);--tw-ring-offset-shadow:0 0 #0000;--tw-ring-shadow:0 0 #0000;--tw-shadow:0 0 #0000;--tw-shadow-colored:0 0 #0000;--tw-blur: ;--tw-brightness: ;--tw-contrast: ;--tw-grayscale: ;--tw-hue-rotate: ;--tw-invert: ;--tw-saturate: ;--tw-sepia: ;--tw-drop-shadow: ;--tw-backdrop-blur: ;--tw-backdrop-brightness: ;--tw-backdrop-contrast: ;--tw-backdrop-grayscale: ;--tw-backdrop-hue-rotate: ;--tw-backdrop-invert: ;--tw-backdrop-opacity: ;--tw-backdrop-saturate: ;--tw-backdrop-sepia: }.p2{font-size:0.875rem;font-weight:600;line-height:1.25rem;line-height:1.5}.blanket-overlay{--tw-bg-opacity:1;background-color:rgb(33 37 41/var(--tw-bg-opacity));inset:0;opacity:0.3;position:absolute}.item-heading{--tw-text-opacity:1;color:rgb(40 44 135/var(--tw-text-opacity));font-size:1.25rem;letter-spacing:-0.025em;line-height:1.5rem}.focus-ring:focus-visible{--tw-ring-offset-shadow:var(--tw-ring-inset) 0 0 0 var(--tw-ring-offset-width) var(--tw-ring-offset-color);--tw-ring-shadow:var(--tw-ring-inset) 0 0 0 calc(4px + var(--tw-ring-offset-width)) var(--tw-ring-color);--tw-ring-opacity:1;--tw-ring-color:rgb(84 101 251/var(--tw-ring-opacity));--tw-ring-offset-width:4px;box-shadow:var(--tw-ring-offset-shadow), var(--tw-ring-shadow), var(--tw-shadow, 0 0 rgba(0, 0, 0, 0));outline:2px solid transparent;outline-offset:2px;transition-duration:50ms}.hover-focus-ring:hover,.raw-focus-ring{--tw-ring-offset-shadow:var(--tw-ring-inset) 0 0 0 var(--tw-ring-offset-width) var(--tw-ring-offset-color);--tw-ring-shadow:var(--tw-ring-inset) 0 0 0 calc(2px + var(--tw-ring-offset-width)) var(--tw-ring-color);--tw-ring-opacity:1;--tw-ring-color:rgb(84 101 251/var(--tw-ring-opacity));--tw-ring-offset-width:2px;box-shadow:var(--tw-ring-offset-shadow), var(--tw-ring-shadow), var(--tw-shadow, 0 0 rgba(0, 0, 0, 0));outline:2px solid transparent;outline-offset:2px;transition-duration:50ms}.divider{--tw-border-opacity:1;border-bottom-width:1px;border-color:rgb(218 224 224/var(--tw-border-opacity))}@keyframes svelte-r91tsr-pulse{50%{opacity:0.5}}.animate-skeleton{--tw-bg-opacity:1;animation:svelte-r91tsr-pulse 2s cubic-bezier(0.4, 0, 0.6, 1) infinite;background-color:rgb(226 232 240/var(--tw-bg-opacity))}.btn-mcq-option:focus-visible{--tw-ring-offset-shadow:var(--tw-ring-inset) 0 0 0 var(--tw-ring-offset-width) var(--tw-ring-offset-color);--tw-ring-shadow:var(--tw-ring-inset) 0 0 0 calc(4px + var(--tw-ring-offset-width)) var(--tw-ring-color);--tw-ring-opacity:1;--tw-ring-color:rgb(84 101 251/var(--tw-ring-opacity));--tw-ring-offset-width:4px;box-shadow:var(--tw-ring-offset-shadow), var(--tw-ring-shadow), var(--tw-shadow, 0 0 rgba(0, 0, 0, 0));outline:2px solid transparent;outline-offset:2px;transition-duration:50ms}.btn-mcq-option{--tw-text-opacity:1;--tw-border-opacity:1;--tw-bg-opacity:1;align-items:center;background-color:rgb(247 250 250/var(--tw-bg-opacity));border-color:rgb(113 115 119/var(--tw-border-opacity));border-radius:0.5rem;border-width:1px;color:rgb(33 37 41/var(--tw-text-opacity));display:flex;font-size:1rem;justify-content:space-between;line-height:1.5rem;margin-bottom:1rem;min-height:48px;padding:0.5rem 0.75rem 0.5rem 0.5rem;width:100%}.btn-mcq-option:active{--tw-border-opacity:1;--tw-bg-opacity:1;background-color:rgb(222 222 255/var(--tw-bg-opacity));border-color:rgb(40 44 135/var(--tw-border-opacity));border-width:2px}@media(hover: hover) and (pointer: fine){.btn-mcq-option:hover{--tw-bg-opacity:1;background-color:rgb(222 222 255/var(--tw-bg-opacity))}}.btn-mcq-option>span>.choice{--tw-border-opacity:1;--tw-bg-opacity:1;--tw-text-opacity:1;align-items:center;background-color:rgb(255 255 255/var(--tw-bg-opacity));border-color:rgb(113 115 119/var(--tw-border-opacity));border-radius:1rem;border-width:1px;color:rgb(93 99 107/var(--tw-text-opacity));display:flex;font-size:1rem;font-weight:700;height:2rem;justify-content:center;letter-spacing:0.05em;line-height:1rem;margin-right:1rem;padding:0.5rem;width:2rem}.btn-mcq-option.selected{--tw-border-opacity:1;--tw-bg-opacity:1;background-color:rgb(222 222 255/var(--tw-bg-opacity))}.btn-mcq-option.selected,.btn-mcq-option.selected>span>.choice{border-color:rgb(40 44 135/var(--tw-border-opacity));border-width:2px}.btn-mcq-option.selected>span>.choice{--tw-border-opacity:1}.btn-mcq-option.selected.correct{--tw-border-opacity:1;--tw-bg-opacity:1;background-color:rgb(241 254 241/var(--tw-bg-opacity));border-color:rgb(0 102 5/var(--tw-border-opacity));border-width:1px}.btn-mcq-option.selected.incorrect{--tw-border-opacity:1;--tw-bg-opacity:1;background-color:rgb(253 243 247/var(--tw-bg-opacity));border-color:rgb(217 12 85/var(--tw-border-opacity));border-width:1px}.btn-mcq-option.selected.correct>span>.choice,.btn-mcq-option.selected.incorrect>span>.choice{--tw-border-opacity:1;border-color:rgb(113 115 119/var(--tw-border-opacity));border-width:1px}.typein-textbox:focus-visible{--tw-ring-offset-shadow:var(--tw-ring-inset) 0 0 0 var(--tw-ring-offset-width) var(--tw-ring-offset-color);--tw-ring-shadow:var(--tw-ring-inset) 0 0 0 calc(4px + var(--tw-ring-offset-width)) var(--tw-ring-color);--tw-ring-color:rgb(84 101 251/var(--tw-ring-opacity));--tw-ring-offset-width:4px;box-shadow:var(--tw-ring-offset-shadow), var(--tw-ring-shadow), var(--tw-shadow, 0 0 rgba(0, 0, 0, 0));outline:2px solid transparent;outline-offset:2px;transition-duration:50ms}.typein-textbox{--tw-border-opacity:1;--tw-bg-opacity:1;--tw-text-opacity:1;background-color:rgb(255 255 255/var(--tw-bg-opacity));border-color:rgb(93 99 107/var(--tw-border-opacity));border-radius:0.5rem;border-width:1px;color:rgb(33 37 41/var(--tw-text-opacity));font-size:1rem;line-height:1.5rem;padding:0.75rem 1rem;width:100%}.typein-textbox::-moz-placeholder{--tw-placeholder-opacity:1;color:rgb(93 99 107/var(--tw-placeholder-opacity))}.typein-textbox::placeholder{--tw-placeholder-opacity:1;color:rgb(93 99 107/var(--tw-placeholder-opacity))}.typein-textbox:focus{--tw-border-opacity:1;border-color:rgb(59 64 240/var(--tw-border-opacity));border-width:2px}@media(hover: hover) and (pointer: fine){.typein-textbox:hover{--tw-border-opacity:1;border-color:rgb(59 64 240/var(--tw-border-opacity));border-width:2px}}.typein-textbox:focus{--tw-ring-offset-shadow:var(--tw-ring-inset) 0 0 0 var(--tw-ring-offset-width) var(--tw-ring-offset-color)!important;--tw-ring-shadow:var(--tw-ring-inset) 0 0 0 calc(4px + var(--tw-ring-offset-width)) var(--tw-ring-color)!important;box-shadow:var(--tw-ring-offset-shadow), var(--tw-ring-shadow), var(--tw-shadow, 0 0 rgba(0, 0, 0, 0)) !important}@media(hover: hover) and (pointer: fine){.typein-textbox:hover{transition-duration:50ms}}.typein-textbox:focus-visible{outline-color:#212529;outline-width:2px}@media(hover: hover) and (pointer: fine){.typein-textbox:hover{outline-color:#212529;outline-width:2px}}.typein-textbox:focus-visible{--tw-ring-opacity:1;--tw-ring-color:rgb(253 224 71/var(--tw-ring-opacity))}.inline-typein-container>p{--tw-text-opacity:1;color:rgb(40 44 135/var(--tw-text-opacity));font-size:1.25rem;font-weight:600;line-height:2rem}#dnd-action-dragged-el{--tw-ring-offset-shadow:var(--tw-ring-inset) 0 0 0 var(--tw-ring-offset-width) var(--tw-ring-offset-color);--tw-ring-shadow:var(--tw-ring-inset) 0 0 0 calc(2px + var(--tw-ring-offset-width)) var(--tw-ring-color);--tw-ring-opacity:1;--tw-ring-color:rgb(84 101 251/var(--tw-ring-opacity));--tw-ring-offset-width:2px;--tw-border-opacity:1!important;--tw-bg-opacity:1!important;background-color:rgb(205 208 254/var(--tw-bg-opacity)) !important;border-color:rgb(93 99 107/var(--tw-border-opacity)) !important;box-shadow:var(--tw-ring-offset-shadow), var(--tw-ring-shadow), var(--tw-shadow, 0 0 rgba(0, 0, 0, 0));cursor:grabbing !important;outline:2px solid transparent;outline-offset:2px;transition-duration:50ms}#dnd-action-dragged-el .btn-vertical-icon{--tw-text-opacity:1;color:rgb(40 44 135/var(--tw-text-opacity));cursor:grabbing !important}#dnd-action-dragged-el .preview-icon{display:none !important}#dnd-action-dragged-el .preview-vertical{display:block !important}.category-content>.missing-answer-label{display:block}.category-content>.missing-answer-label~.missing-answer-label{display:none}.text-stimulus{padding-bottom:1rem;padding-top:1rem}.text-stimulus p{--tw-text-opacity:1;color:rgb(40 44 135/var(--tw-text-opacity));font-size:1.25rem;line-height:1.75rem;padding-bottom:0.5rem}.text-stimulus ol,.text-stimulus ul{font-size:1rem;line-height:1.5rem;list-style-position:inside;padding-bottom:0.5rem;padding-left:0.5rem}.text-stimulus ol ::marker,.text-stimulus ul ::marker{color:#282c87}.text-stimulus ol::marker,.text-stimulus ul::marker{color:#282c87}.text-stimulus ul{list-style-type:disc}.text-stimulus ol{list-style-type:decimal}.text-stimulus ul li>p{margin-left:-0.5rem}.text-stimulus ol>li>p,.text-stimulus ul>li>p{display:inline;font-size:1rem;line-height:1.5rem;padding-bottom:0;padding-top:0}.text-stimulus div.table-container:focus-visible{--tw-ring-offset-shadow:var(--tw-ring-inset) 0 0 0 var(--tw-ring-offset-width) var(--tw-ring-offset-color);--tw-ring-shadow:var(--tw-ring-inset) 0 0 0 calc(4px + var(--tw-ring-offset-width)) var(--tw-ring-color);--tw-ring-opacity:1;--tw-ring-color:rgb(84 101 251/var(--tw-ring-opacity));--tw-ring-offset-width:4px;box-shadow:var(--tw-ring-offset-shadow), var(--tw-ring-shadow), var(--tw-shadow, 0 0 rgba(0, 0, 0, 0));outline:2px solid transparent;outline-offset:2px;transition-duration:50ms}.text-stimulus div.table-container{border-radius:0.5rem;overflow:auto;padding-left:0.125rem;padding-right:0.125rem}.text-stimulus table{--tw-border-spacing-x:0.75rem;--tw-border-spacing-y:0.75rem;--tw-shadow:0 0 0 1px #9ca3af;--tw-shadow-colored:0 0 0 1px var(--tw-shadow-color);border-radius:0.5rem;border-spacing:var(--tw-border-spacing-x) var(--tw-border-spacing-y);box-shadow:var(--tw-ring-offset-shadow, 0 0 rgba(0, 0, 0, 0)), var(--tw-ring-shadow, 0 0 rgba(0, 0, 0, 0)), var(--tw-shadow);margin-bottom:1rem;margin-top:0.5rem;overflow-x:auto;width:100%}.text-stimulus table tr{--tw-border-opacity:1;border-bottom-width:1px;border-color:rgb(156 163 175/var(--tw-border-opacity))}.text-stimulus table tr:last-child{border-color:transparent}.text-stimulus table td,.text-stimulus table th{--tw-border-opacity:1;border-color:rgb(156 163 175/var(--tw-border-opacity));border-left-width:1px;min-width:140px}.text-stimulus table td:first-child,.text-stimulus table th:first-child{border-style:none}.text-stimulus table td>p,.text-stimulus table th>p{--tw-text-opacity:1;color:rgb(33 37 41/var(--tw-text-opacity));font-size:1rem;line-height:1.5rem;padding:0.75rem;text-align:left}.text-stimulus table th>p{font-weight:400}.prompt p,.text-stimulus table th p{font-weight:600}.prompt p b,.prompt p b i,.prompt p b i u,.prompt p b u,.prompt p b u i,.prompt p i b,.prompt p i b u,.prompt p i u b,.prompt p u b,.prompt p u b i,.prompt p u i b,.text-stimulus table th p b,.text-stimulus table th p b i,.text-stimulus table th p b i u,.text-stimulus table th p b u,.text-stimulus table th p b u i,.text-stimulus table th p i b,.text-stimulus table th p i b u,.text-stimulus table th p i u b,.text-stimulus table th p u b,.text-stimulus table th p u b i,.text-stimulus table th p u i b{font-weight:900}.sr-only{clip:rect(0, 0, 0, 0);border-width:0;height:1px;margin:-1px;overflow:hidden;padding:0;position:absolute;white-space:nowrap;width:1px}.absolute{position:absolute}.relative{position:relative}.inset-0{inset:0}.inset-y-0{bottom:0;top:0}.-top-2{top:-0.5rem}.-top-2\\.5{top:-0.625rem}.bottom-0{bottom:0}.bottom-4{bottom:1rem}.left-0{left:0}.left-4{left:1rem}.left-\\[-9999px\\]{left:-9999px}.right-0{right:0}.right-4{right:1rem}.top-0{top:0}.top-12{top:3rem}.z-0{z-index:0}.z-10{z-index:10}.z-50{z-index:50}.m-auto{margin:auto}.mx-0{margin-left:0;margin-right:0}.mx-0\\.5{margin-left:0.125rem;margin-right:0.125rem}.my-2{margin-bottom:0.5rem;margin-top:0.5rem}.my-6{margin-bottom:1.5rem;margin-top:1.5rem}.mb-1{margin-bottom:0.25rem}.mb-10{margin-bottom:2.5rem}.mb-12{margin-bottom:3rem}.mb-2{margin-bottom:0.5rem}.mb-3{margin-bottom:0.75rem}.mb-4{margin-bottom:1rem}.mb-5{margin-bottom:1.25rem}.mb-6{margin-bottom:1.5rem}.ml-1{margin-left:0.25rem}.ml-3{margin-left:0.75rem}.ml-\\[3px\\]{margin-left:3px}.mr-1{margin-right:0.25rem}.mr-2{margin-right:0.5rem}.mr-4{margin-right:1rem}.mt-0{margin-top:0}.mt-0\\.5{margin-top:0.125rem}.mt-1{margin-top:0.25rem}.mt-2{margin-top:0.5rem}.mt-4{margin-top:1rem}.mt-6{margin-top:1.5rem}.mt-7{margin-top:1.75rem}.mt-7\\.5{margin-top:1.875}.mt-9{margin-top:2.25rem}.block{display:block}.inline-block{display:inline-block}.inline{display:inline}.flex{display:flex}.table{display:table}.grid{display:grid}.hidden{display:none}.h-11{height:2.75rem}.h-4{height:1rem}.h-52{height:13rem}.h-6{height:1.5rem}.h-fit{height:-moz-fit-content;height:fit-content}.h-full{height:100%}.max-h-\\[470px\\]{max-height:470px}.max-h-\\[660px\\]{max-height:660px}.min-h-\\[133px\\]{min-height:133px}.min-h-\\[140px\\]{min-height:140px}.min-h-\\[54px\\]{min-height:54px}.min-h-\\[86px\\]{min-height:86px}.w-11{width:2.75rem}.w-2{width:0.5rem}.w-2\\/4{width:50%}.w-4{width:1rem}.w-6{width:1.5rem}.w-60{width:15rem}.w-8{width:2rem}.w-8\\.5{width:2.125rem}.w-fit{width:-moz-fit-content;width:fit-content}.w-full{width:100%}.min-w-\\[44px\\]{min-width:44px}.min-w-\\[85px\\]{min-width:85px}.max-w-\\[400px\\]{max-width:400px}.grow{flex-grow:1}.basis-0{flex-basis:0px}.\\!cursor-default{cursor:default !important}.\\!cursor-pointer{cursor:pointer !important}.cursor-pointer{cursor:pointer}.grid-cols-1{grid-template-columns:repeat(1, minmax(0, 1fr))}.flex-row{flex-direction:row}.flex-col{flex-direction:column}.flex-col-reverse{flex-direction:column-reverse}.flex-wrap{flex-wrap:wrap}.content-start{align-content:flex-start}.items-center{align-items:center}.justify-center{justify-content:center}.justify-between{justify-content:space-between}.gap-2{gap:0.5rem}.space-y-2>:not([hidden])~:not([hidden]){--tw-space-y-reverse:0;margin-bottom:calc(0.5rem * var(--tw-space-y-reverse));margin-top:calc(0.5rem * (1 - var(--tw-space-y-reverse)))}.space-y-reverse>:not([hidden])~:not([hidden]){--tw-space-y-reverse:1}.overflow-hidden{overflow:hidden}.whitespace-nowrap{white-space:nowrap}.rounded{border-radius:0.25rem}.rounded-\\[32px\\]{border-radius:32px}.rounded-lg{border-radius:0.5rem}.rounded-md{border-radius:0.375rem}.rounded-b-lg{border-bottom-right-radius:0.5rem}.rounded-b-lg,.rounded-l-lg{border-bottom-left-radius:0.5rem}.rounded-l-lg,.rounded-t-lg{border-top-left-radius:0.5rem}.rounded-t-lg{border-top-right-radius:0.5rem}.border{border-width:1px}.border-2{border-width:2px}.border-b{border-bottom-width:1px}.border-l-6,.border-l-\\[6px\\]{border-left-width:6px}.border-dashed{border-style:dashed}.\\!border-blue-1000{--tw-border-opacity:1!important;border-color:rgb(40 44 135/var(--tw-border-opacity)) !important}.border-blue-1000{--tw-border-opacity:1;border-color:rgb(40 44 135/var(--tw-border-opacity))}.border-charcoal{--tw-border-opacity:1;border-color:rgb(33 37 41/var(--tw-border-opacity))}.border-gray-400{--tw-border-opacity:1;border-color:rgb(196 201 204/var(--tw-border-opacity))}.border-gray-800{--tw-border-opacity:1;border-color:rgb(93 99 107/var(--tw-border-opacity))}.border-green-800{--tw-border-opacity:1;border-color:rgb(0 102 5/var(--tw-border-opacity))}.border-red-600{--tw-border-opacity:1;border-color:rgb(220 38 38/var(--tw-border-opacity))}.border-red-800{--tw-border-opacity:1;border-color:rgb(217 12 85/var(--tw-border-opacity))}.border-soft-blue{--tw-border-opacity:1;border-color:rgb(84 101 251/var(--tw-border-opacity))}.border-white{--tw-border-opacity:1;border-color:rgb(255 255 255/var(--tw-border-opacity))}.\\!bg-violet-100{--tw-bg-opacity:1!important;background-color:rgb(235 235 255/var(--tw-bg-opacity)) !important}.\\!bg-violet-150{--tw-bg-opacity:1!important;background-color:rgb(205 208 254/var(--tw-bg-opacity)) !important}.\\!bg-white{--tw-bg-opacity:1!important;background-color:rgb(255 255 255/var(--tw-bg-opacity)) !important}.bg-black{--tw-bg-opacity:1;background-color:rgb(0 0 0/var(--tw-bg-opacity))}.bg-blue-1000{--tw-bg-opacity:1;background-color:rgb(40 44 135/var(--tw-bg-opacity))}.bg-gray-100{--tw-bg-opacity:1;background-color:rgb(247 250 250/var(--tw-bg-opacity))}.bg-gray-50{--tw-bg-opacity:1;background-color:rgb(244 244 244/var(--tw-bg-opacity))}.bg-green-300{--tw-bg-opacity:1;background-color:rgb(241 254 241/var(--tw-bg-opacity))}.bg-red-200{--tw-bg-opacity:1;background-color:rgb(254 202 202/var(--tw-bg-opacity))}.bg-red-300{--tw-bg-opacity:1;background-color:rgb(253 243 247/var(--tw-bg-opacity))}.bg-soft-blue{--tw-bg-opacity:1;background-color:rgb(84 101 251/var(--tw-bg-opacity))}.bg-transparent{background-color:transparent}.bg-violet-100{--tw-bg-opacity:1;background-color:rgb(235 235 255/var(--tw-bg-opacity))}.bg-violet-150{--tw-bg-opacity:1;background-color:rgb(205 208 254/var(--tw-bg-opacity))}.bg-white{--tw-bg-opacity:1;background-color:rgb(255 255 255/var(--tw-bg-opacity))}.bg-yellow-1000{--tw-bg-opacity:1;background-color:rgb(251 217 27/var(--tw-bg-opacity))}.p-0{padding:0}.p-0\\.5{padding:0.125rem}.p-1{padding:0.25rem}.p-1\\.5{padding:0.375rem}.p-2{padding:0.5rem}.p-3{padding:0.75rem}.p-4{padding:1rem}.p-5{padding:1.25rem}.p-6{padding:1.5rem}.px-3{padding-left:0.75rem;padding-right:0.75rem}.px-4{padding-left:1rem;padding-right:1rem}.py-1{padding-bottom:0.25rem;padding-top:0.25rem}.py-1\\.5{padding-bottom:0.375rem;padding-top:0.375rem}.py-2{padding-bottom:0.5rem;padding-top:0.5rem}.py-\\[9px\\]{padding-bottom:9px;padding-top:9px}.pb-0{padding-bottom:0}.pb-10{padding-bottom:2.5rem}.pb-2{padding-bottom:0.5rem}.pb-3{padding-bottom:0.75rem}.pl-13\\.2{padding-left:3.125rem}.pl-24{padding-left:6rem}.pl-3{padding-left:0.75rem}.pl-4{padding-left:1rem}.pr-3{padding-right:0.75rem}.pr-4{padding-right:1rem}.pt-0{padding-top:0}.pt-4{padding-top:1rem}.pt-6{padding-top:1.5rem}.pt-\\[13px\\]{padding-top:13px}.pt-\\[55px\\]{padding-top:55px}.text-left{text-align:left}.text-center{text-align:center}.text-base{font-size:1rem;line-height:1.5rem}.text-lg{font-size:1.125rem;line-height:1.75rem}.text-sm{font-size:0.875rem;line-height:1.25rem}.text-xl{font-size:1.25rem;line-height:1.75rem}.font-bold{font-weight:700}.font-semibold{font-weight:600}.leading-4{line-height:1rem}.leading-5{line-height:1.25rem}.leading-6{line-height:1.5rem}.leading-\\[19px\\]{line-height:19px}.leading-\\[22px\\]{line-height:22px}.\\!text-gray-900{--tw-text-opacity:1!important;color:rgb(57 62 69/var(--tw-text-opacity)) !important}.text-blue-1000{--tw-text-opacity:1;color:rgb(40 44 135/var(--tw-text-opacity))}.text-charcoal{--tw-text-opacity:1;color:rgb(33 37 41/var(--tw-text-opacity))}.text-gray-800{--tw-text-opacity:1;color:rgb(93 99 107/var(--tw-text-opacity))}.text-green-800{--tw-text-opacity:1;color:rgb(0 102 5/var(--tw-text-opacity))}.text-inherit{color:inherit}.text-red-800{--tw-text-opacity:1;color:rgb(217 12 85/var(--tw-text-opacity))}.text-white{--tw-text-opacity:1;color:rgb(255 255 255/var(--tw-text-opacity))}.underline{text-decoration-line:underline}.opacity-5{opacity:0.05}.opacity-50{opacity:0.5}.shadow-\\[0_-12px_14px_-16px_\\#00000033\\]{--tw-shadow:0 -12px 14px -16px #00000033;--tw-shadow-colored:0 -12px 14px -16px var(--tw-shadow-color)}.shadow-\\[0_-12px_14px_-16px_\\#00000033\\],.shadow-md{box-shadow:var(--tw-ring-offset-shadow, 0 0 rgba(0, 0, 0, 0)), var(--tw-ring-shadow, 0 0 rgba(0, 0, 0, 0)), var(--tw-shadow)}.shadow-md{--tw-shadow:0px 2px 8px rgba(0,0,0,.2);--tw-shadow-colored:0px 2px 8px var(--tw-shadow-color)}.\\!outline-none{outline:2px solid transparent !important;outline-offset:2px !important}.outline-none{outline:2px solid transparent;outline-offset:2px}.filter{filter:var(--tw-blur) var(--tw-brightness) var(--tw-contrast) var(--tw-grayscale) var(--tw-hue-rotate) var(--tw-invert) var(--tw-saturate) var(--tw-sepia) var(--tw-drop-shadow)}.transition{transition-duration:0.15s;transition-property:color, background-color, border-color, text-decoration-color, fill, stroke, opacity, box-shadow, transform, filter, -webkit-backdrop-filter;transition-property:color, background-color, border-color, text-decoration-color, fill, stroke, opacity, box-shadow, transform, filter, backdrop-filter;transition-property:color, background-color, border-color, text-decoration-color, fill, stroke, opacity, box-shadow, transform, filter, backdrop-filter, -webkit-backdrop-filter;transition-timing-function:cubic-bezier(0.4, 0, 0.2, 1)}.duration-300{transition-duration:0.3s}.active\\:raw-focus-ring:active{--tw-ring-offset-shadow:var(--tw-ring-inset) 0 0 0 var(--tw-ring-offset-width) var(--tw-ring-offset-color);--tw-ring-shadow:var(--tw-ring-inset) 0 0 0 calc(2px + var(--tw-ring-offset-width)) var(--tw-ring-color);--tw-ring-opacity:1;--tw-ring-color:rgb(84 101 251/var(--tw-ring-opacity));--tw-ring-offset-width:2px;box-shadow:var(--tw-ring-offset-shadow), var(--tw-ring-shadow), var(--tw-shadow, 0 0 rgba(0, 0, 0, 0));outline:2px solid transparent;outline-offset:2px;transition-duration:50ms}@media(min-width: 732px){.md\\:item-heading{--tw-text-opacity:1;color:rgb(40 44 135/var(--tw-text-opacity));font-size:1.25rem;letter-spacing:-0.025em;line-height:1.5rem}.category-content>.md\\:missing-answer-label{display:block}.category-content>.md\\:missing-answer-label~.md\\:missing-answer-label{display:none}}@media(hover: hover) and (pointer: fine){.td\\:hover-focus-ring:hover{--tw-ring-offset-shadow:var(--tw-ring-inset) 0 0 0 var(--tw-ring-offset-width) var(--tw-ring-offset-color);--tw-ring-shadow:var(--tw-ring-inset) 0 0 0 calc(2px + var(--tw-ring-offset-width)) var(--tw-ring-color);--tw-ring-opacity:1;--tw-ring-color:rgb(84 101 251/var(--tw-ring-opacity));--tw-ring-offset-width:2px;box-shadow:var(--tw-ring-offset-shadow), var(--tw-ring-shadow), var(--tw-shadow, 0 0 rgba(0, 0, 0, 0));outline:2px solid transparent;outline-offset:2px;transition-duration:50ms}}.last\\:mr-0:last-child{margin-right:0}.focus-within\\:left-0:focus-within{left:0}.focus-within\\:right-0:focus-within{right:0}.focus-within\\:top-0:focus-within{top:0}.focus-within\\:z-30:focus-within{z-index:30}.hover\\:bg-black-50:hover{background-color:rgba(0, 0, 0, 0.0509803922)}.hover\\:bg-blue-100:hover{--tw-bg-opacity:1;background-color:rgb(222 222 255/var(--tw-bg-opacity))}.hover\\:bg-violet-100:hover{--tw-bg-opacity:1;background-color:rgb(235 235 255/var(--tw-bg-opacity))}.hover\\:bg-yellow-1000:hover{--tw-bg-opacity:1;background-color:rgb(251 217 27/var(--tw-bg-opacity))}.hover\\:text-charcoal:hover{--tw-text-opacity:1;color:rgb(33 37 41/var(--tw-text-opacity))}.focus\\:outline-transparent:focus{outline-color:transparent}.focus-visible\\:border:focus-visible{border-width:1px}.focus-visible\\:border-charcoal:focus-visible{--tw-border-opacity:1;border-color:rgb(33 37 41/var(--tw-border-opacity))}.focus-visible\\:border-gray-400:focus-visible{--tw-border-opacity:1;border-color:rgb(196 201 204/var(--tw-border-opacity))}.focus-visible\\:border-gray-800:focus-visible{--tw-border-opacity:1;border-color:rgb(93 99 107/var(--tw-border-opacity))}.focus-visible\\:outline-none:focus-visible{outline:2px solid transparent;outline-offset:2px}.active\\:bg-black-55:active,.active\\:bg-black-60:active{background-color:rgba(0, 0, 0, 0.1019607843)}.active\\:bg-yellow-1100:active{--tw-bg-opacity:1;background-color:rgb(238 206 26/var(--tw-bg-opacity))}.active\\:text-charcoal:active{--tw-text-opacity:1;color:rgb(33 37 41/var(--tw-text-opacity))}.disabled\\:text-gray-40:disabled{--tw-text-opacity:1;color:rgb(142 147 153/var(--tw-text-opacity))}.disabled\\:hover\\:bg-white:hover:disabled{--tw-bg-opacity:1;background-color:rgb(255 255 255/var(--tw-bg-opacity))}.group\\/itemContainer:hover .group-hover\\/itemContainer\\:bg-violet-100{--tw-bg-opacity:1;background-color:rgb(235 235 255/var(--tw-bg-opacity))}.group:hover .group-hover\\:underline{text-decoration-line:underline}.group:active .group-active\\:border-2{border-width:2px}.group:active .group-active\\:border-blue-1000{--tw-border-opacity:1;border-color:rgb(40 44 135/var(--tw-border-opacity))}.group:active .group-active\\:p-\\[7px\\]{padding:7px}@media(min-width: 732px){.md\\:inset-0{inset:0}.md\\:top-20{top:5rem}.md\\:mb-2{margin-bottom:0.5rem}.md\\:mb-4{margin-bottom:1rem}.md\\:mb-8{margin-bottom:2rem}.md\\:mt-14{margin-top:3.5rem}.md\\:block{display:block}.md\\:inline-block{display:inline-block}.md\\:flex{display:flex}.md\\:hidden{display:none}.md\\:h-fit{height:-moz-fit-content;height:fit-content}.md\\:min-h-0{min-height:0}.md\\:min-h-\\[140px\\]{min-height:140px}.md\\:min-h-\\[164px\\]{min-height:164px}.md\\:w-fit{width:-moz-fit-content;width:fit-content}.md\\:grow-0{flex-grow:0}.md\\:grid-cols-2{grid-template-columns:repeat(2, minmax(0, 1fr))}.md\\:flex-row{flex-direction:row}.md\\:flex-col{flex-direction:column}.md\\:items-center{align-items:center}.md\\:justify-normal{justify-content:normal}.md\\:justify-center{justify-content:center}.md\\:justify-between{justify-content:space-between}.md\\:gap-6{gap:1.5rem}.md\\:space-y-0>:not([hidden])~:not([hidden]){--tw-space-y-reverse:0;margin-bottom:calc(0px * var(--tw-space-y-reverse));margin-top:calc(0px * (1 - var(--tw-space-y-reverse)))}.md\\:rounded-b-none{border-bottom-left-radius:0;border-bottom-right-radius:0}.md\\:border{border-width:1px}.md\\:border-gray-400{--tw-border-opacity:1;border-color:rgb(196 201 204/var(--tw-border-opacity))}.md\\:\\!bg-white{--tw-bg-opacity:1!important;background-color:rgb(255 255 255/var(--tw-bg-opacity)) !important}.md\\:p-4{padding:1rem}.md\\:px-0{padding-left:0;padding-right:0}.md\\:pb-0{padding-bottom:0}.md\\:pt-20{padding-top:5rem}.md\\:pt-20\\.5{padding-top:5.125rem}.md\\:text-center{text-align:center}.md\\:shadow-\\[0_0_\\#0000\\]{--tw-shadow:0 0 #0000;--tw-shadow-colored:0 0 var(--tw-shadow-color);box-shadow:var(--tw-ring-offset-shadow, 0 0 rgba(0, 0, 0, 0)), var(--tw-ring-shadow, 0 0 rgba(0, 0, 0, 0)), var(--tw-shadow)}.group\\/itemContainer:hover .md\\:group-hover\\/itemContainer\\:bg-white{--tw-bg-opacity:1;background-color:rgb(255 255 255/var(--tw-bg-opacity))}}@media(min-width: 1196px){.lg\\:mr-6{margin-right:1.5rem}.lg\\:flex{display:flex}.lg\\:hidden{display:none}.lg\\:min-h-\\[224px\\]{min-height:224px}.lg\\:w-full{width:100%}.lg\\:max-w-\\[50\\%\\]{max-width:50%}.lg\\:grow{flex-grow:1}.lg\\:basis-1\\/2{flex-basis:50%}.lg\\:items-center{align-items:center}.lg\\:justify-between{justify-content:space-between}.lg\\:gap-0{gap:0}.lg\\:last\\:mr-0:last-child{margin-right:0}}@media(hover: hover) and (pointer: fine){.td\\:hover\\:cursor-grab:hover{cursor:grab}.td\\:hover\\:border-gray-800:hover{--tw-border-opacity:1;border-color:rgb(93 99 107/var(--tw-border-opacity))}.td\\:hover\\:bg-black-50:hover{background-color:rgba(0, 0, 0, 0.0509803922)}.td\\:hover\\:bg-violet-100:hover{--tw-bg-opacity:1;background-color:rgb(235 235 255/var(--tw-bg-opacity))}.td\\:hover\\:text-soft-blue:hover{--tw-text-opacity:1;color:rgb(84 101 251/var(--tw-text-opacity))}.group:hover .td\\:group-hover\\:bg-black{--tw-bg-opacity:1;background-color:rgb(0 0 0/var(--tw-bg-opacity))}.group:hover .td\\:group-hover\\:opacity-5{opacity:0.05}}');
|
|
11941
12213
|
}
|
|
11942
12214
|
function create_else_block_12(ctx) {
|
|
11943
12215
|
let invalidbanner;
|
|
@@ -11972,7 +12244,7 @@
|
|
|
11972
12244
|
let if_block;
|
|
11973
12245
|
let if_block_anchor;
|
|
11974
12246
|
let current;
|
|
11975
|
-
const if_block_creators = [create_if_block_28,
|
|
12247
|
+
const if_block_creators = [create_if_block_28, create_if_block_36, create_if_block_45, create_else_block5];
|
|
11976
12248
|
const if_blocks = [];
|
|
11977
12249
|
function select_block_type_1(ctx2, dirty) {
|
|
11978
12250
|
if (
|
|
@@ -12100,7 +12372,7 @@
|
|
|
12100
12372
|
}
|
|
12101
12373
|
};
|
|
12102
12374
|
}
|
|
12103
|
-
function
|
|
12375
|
+
function create_if_block_45(ctx) {
|
|
12104
12376
|
let promptcategorise;
|
|
12105
12377
|
let current;
|
|
12106
12378
|
promptcategorise = new PromptCategorise_default({
|
|
@@ -12109,6 +12381,10 @@
|
|
|
12109
12381
|
/*sessionData*/
|
|
12110
12382
|
ctx[0]
|
|
12111
12383
|
),
|
|
12384
|
+
isDataSaving: (
|
|
12385
|
+
/*isDataSaving*/
|
|
12386
|
+
ctx[2]
|
|
12387
|
+
),
|
|
12112
12388
|
isFinished: (
|
|
12113
12389
|
/*isFinished*/
|
|
12114
12390
|
ctx[4]
|
|
@@ -12142,6 +12418,10 @@
|
|
|
12142
12418
|
1)
|
|
12143
12419
|
promptcategorise_changes.sessionData = /*sessionData*/
|
|
12144
12420
|
ctx2[0];
|
|
12421
|
+
if (dirty & /*isDataSaving*/
|
|
12422
|
+
4)
|
|
12423
|
+
promptcategorise_changes.isDataSaving = /*isDataSaving*/
|
|
12424
|
+
ctx2[2];
|
|
12145
12425
|
if (dirty & /*isFinished*/
|
|
12146
12426
|
16)
|
|
12147
12427
|
promptcategorise_changes.isFinished = /*isFinished*/
|
|
@@ -12163,7 +12443,7 @@
|
|
|
12163
12443
|
}
|
|
12164
12444
|
};
|
|
12165
12445
|
}
|
|
12166
|
-
function
|
|
12446
|
+
function create_if_block_36(ctx) {
|
|
12167
12447
|
let prompttypein;
|
|
12168
12448
|
let current;
|
|
12169
12449
|
prompttypein = new PromptTypeIn_default({
|
|
@@ -12320,7 +12600,10 @@
|
|
|
12320
12600
|
function create_fragment26(ctx) {
|
|
12321
12601
|
let current_block_type_index;
|
|
12322
12602
|
let if_block;
|
|
12323
|
-
let
|
|
12603
|
+
let t2;
|
|
12604
|
+
let link0;
|
|
12605
|
+
let link1;
|
|
12606
|
+
let link2;
|
|
12324
12607
|
let current;
|
|
12325
12608
|
const if_block_creators = [create_if_block10, create_if_block_19, create_else_block_12];
|
|
12326
12609
|
const if_blocks = [];
|
|
@@ -12342,11 +12625,24 @@
|
|
|
12342
12625
|
return {
|
|
12343
12626
|
c() {
|
|
12344
12627
|
if_block.c();
|
|
12345
|
-
|
|
12628
|
+
t2 = space();
|
|
12629
|
+
link0 = element("link");
|
|
12630
|
+
link1 = element("link");
|
|
12631
|
+
link2 = element("link");
|
|
12632
|
+
attr(link0, "rel", "preconnect");
|
|
12633
|
+
attr(link0, "href", "https://fonts.googleapis.com");
|
|
12634
|
+
attr(link1, "rel", "preconnect");
|
|
12635
|
+
attr(link1, "href", "https://fonts.gstatic.com");
|
|
12636
|
+
attr(link1, "crossorigin", "");
|
|
12637
|
+
attr(link2, "href", "https://fonts.googleapis.com/css2?family=Mulish:ital,wght@0,200..1000;1,200..1000&display=swap");
|
|
12638
|
+
attr(link2, "rel", "stylesheet");
|
|
12346
12639
|
},
|
|
12347
12640
|
m(target, anchor) {
|
|
12348
12641
|
if_blocks[current_block_type_index].m(target, anchor);
|
|
12349
|
-
insert(target,
|
|
12642
|
+
insert(target, t2, anchor);
|
|
12643
|
+
append(document.head, link0);
|
|
12644
|
+
append(document.head, link1);
|
|
12645
|
+
append(document.head, link2);
|
|
12350
12646
|
current = true;
|
|
12351
12647
|
},
|
|
12352
12648
|
p(ctx2, [dirty]) {
|
|
@@ -12368,7 +12664,7 @@
|
|
|
12368
12664
|
if_block.p(ctx2, dirty);
|
|
12369
12665
|
}
|
|
12370
12666
|
transition_in(if_block, 1);
|
|
12371
|
-
if_block.m(
|
|
12667
|
+
if_block.m(t2.parentNode, t2);
|
|
12372
12668
|
}
|
|
12373
12669
|
},
|
|
12374
12670
|
i(local) {
|
|
@@ -12383,9 +12679,12 @@
|
|
|
12383
12679
|
},
|
|
12384
12680
|
d(detaching) {
|
|
12385
12681
|
if (detaching) {
|
|
12386
|
-
detach(
|
|
12682
|
+
detach(t2);
|
|
12387
12683
|
}
|
|
12388
12684
|
if_blocks[current_block_type_index].d(detaching);
|
|
12685
|
+
detach(link0);
|
|
12686
|
+
detach(link1);
|
|
12687
|
+
detach(link2);
|
|
12389
12688
|
}
|
|
12390
12689
|
};
|
|
12391
12690
|
}
|