@citolab/qti-components 7.3.9 → 7.3.10

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.
Files changed (379) hide show
  1. package/cdn/chunks/chunk-2AQB5QOU.js +1465 -0
  2. package/cdn/chunks/chunk-2D2T677T.js +5 -0
  3. package/cdn/chunks/chunk-2DBFRSMX.js +1 -0
  4. package/cdn/chunks/chunk-2KM4IIVZ.js +1 -0
  5. package/cdn/chunks/chunk-2MP4QXCW.js +5 -0
  6. package/cdn/chunks/chunk-2WMJ3FRH.js +5 -0
  7. package/cdn/chunks/chunk-3EL6MWIP.js +5 -0
  8. package/cdn/chunks/chunk-3FL7LAD7.js +3609 -0
  9. package/cdn/chunks/chunk-3OFR7NBQ.js +5 -0
  10. package/cdn/chunks/chunk-44FEGMMP.js +5 -0
  11. package/cdn/chunks/chunk-4AGPIRXC.js +3623 -0
  12. package/cdn/chunks/chunk-4BD24CBG.js +5 -0
  13. package/cdn/chunks/chunk-4JCAGCJ7.js +5 -0
  14. package/cdn/chunks/chunk-4KA72ZXP.js +5 -0
  15. package/cdn/chunks/chunk-4RGI2NPT.js +5 -0
  16. package/cdn/chunks/chunk-4V4EH3XE.js +5 -0
  17. package/cdn/chunks/chunk-5A6EZOWQ.js +1465 -0
  18. package/cdn/chunks/chunk-5MA2ACUN.js +5 -0
  19. package/cdn/chunks/chunk-5NPTQSKH.js +5 -0
  20. package/cdn/chunks/chunk-5OT7GAD6.js +1465 -0
  21. package/cdn/chunks/chunk-5X3DXTZR.js +5 -0
  22. package/cdn/chunks/chunk-5ZJGXWHS.js +5 -0
  23. package/cdn/chunks/chunk-65IPR5FK.js +5 -0
  24. package/cdn/chunks/chunk-67XELO2Z.js +5 -0
  25. package/cdn/chunks/chunk-6CVU566T.js +3604 -0
  26. package/cdn/chunks/chunk-6DAXA4WF.js +1465 -0
  27. package/cdn/chunks/chunk-6I6VSJRU.js +5 -0
  28. package/cdn/chunks/chunk-6NH7EB4Y.js +5 -0
  29. package/cdn/chunks/chunk-6OGNTNZS.js +5 -0
  30. package/cdn/chunks/chunk-6U7KZ7RT.js +5 -0
  31. package/cdn/chunks/chunk-75AAESDA.js +5 -0
  32. package/cdn/chunks/chunk-7HRE6EJN.js +1465 -0
  33. package/cdn/chunks/chunk-A2IAVB65.js +5 -0
  34. package/cdn/chunks/chunk-AK7BBQIN.js +1465 -0
  35. package/cdn/chunks/chunk-AL7MMWN4.js +5 -0
  36. package/cdn/chunks/chunk-AU5IFIAE.js +5 -0
  37. package/cdn/chunks/chunk-B34CVRZY.js +3611 -0
  38. package/cdn/chunks/chunk-B5KBEV6C.js +5 -0
  39. package/cdn/chunks/chunk-BDVDUFDX.js +3604 -0
  40. package/cdn/chunks/chunk-BEKC2KXP.js +1465 -0
  41. package/cdn/chunks/chunk-BIPSM53R.js +3604 -0
  42. package/cdn/chunks/chunk-BUSPJKBW.js +5 -0
  43. package/cdn/chunks/chunk-BVGQYBYI.js +5 -0
  44. package/cdn/chunks/chunk-C2TYLPUF.js +5 -0
  45. package/cdn/chunks/chunk-C4S3TBY7.js +5 -0
  46. package/cdn/chunks/chunk-CA2BB5TT.js +1465 -0
  47. package/cdn/chunks/chunk-CAPYSR2Y.js +3605 -0
  48. package/cdn/chunks/chunk-CB2PW7DM.js +3604 -0
  49. package/cdn/chunks/chunk-CBEIZQ7O.js +5 -0
  50. package/cdn/chunks/chunk-DIM5R2XZ.js +3609 -0
  51. package/cdn/chunks/chunk-DM55ZVIS.js +3608 -0
  52. package/cdn/chunks/chunk-DNGQ3HHD.js +8 -0
  53. package/cdn/chunks/chunk-DTSNON3E.js +5 -0
  54. package/cdn/chunks/chunk-DUCVF666.js +5 -0
  55. package/cdn/chunks/chunk-DWKO2XVJ.js +3626 -0
  56. package/cdn/chunks/chunk-E5QYUREF.js +1465 -0
  57. package/cdn/chunks/chunk-EGMZWVEN.js +5 -0
  58. package/cdn/chunks/chunk-ETDUKPJ5.js +1465 -0
  59. package/cdn/chunks/chunk-FBCUILM4.js +5 -0
  60. package/cdn/chunks/chunk-FHKI336W.js +5 -0
  61. package/cdn/chunks/chunk-G6JBUK7M.js +8 -0
  62. package/cdn/chunks/chunk-GI643I6D.js +5 -0
  63. package/cdn/chunks/chunk-H5N66JWX.js +1 -0
  64. package/cdn/chunks/chunk-H6DTW4CH.js +1465 -0
  65. package/cdn/chunks/chunk-HVRUXHOA.js +5 -0
  66. package/cdn/chunks/chunk-HY6LZ42L.js +5 -0
  67. package/cdn/chunks/chunk-I4QFJPZG.js +1465 -0
  68. package/cdn/chunks/chunk-IAGXHLJ5.js +5 -0
  69. package/cdn/chunks/chunk-ICRWHWJ3.js +5 -0
  70. package/cdn/chunks/chunk-IWOEDFXH.js +1465 -0
  71. package/cdn/chunks/chunk-J5BD6EO5.js +5 -0
  72. package/cdn/chunks/chunk-J6V7VRWX.js +3605 -0
  73. package/cdn/chunks/chunk-JESKBIHK.js +1465 -0
  74. package/cdn/chunks/chunk-JGH5ZZNA.js +1465 -0
  75. package/cdn/chunks/chunk-JIUUHGM7.js +1465 -0
  76. package/cdn/chunks/chunk-JX2BBAUD.js +3609 -0
  77. package/cdn/chunks/chunk-JZNXP6Z6.js +1465 -0
  78. package/cdn/chunks/chunk-K6RDKEPY.js +5 -0
  79. package/cdn/chunks/chunk-KVODKRRX.js +5 -0
  80. package/cdn/chunks/chunk-LDAQNEWI.js +5 -0
  81. package/cdn/chunks/chunk-M2CUHPCU.js +5 -0
  82. package/cdn/chunks/chunk-M2L4SJPE.js +5 -0
  83. package/cdn/chunks/chunk-M6UCMG2T.js +1465 -0
  84. package/cdn/chunks/chunk-MUO2LFIC.js +3604 -0
  85. package/cdn/chunks/chunk-MX6YXRD5.js +5 -0
  86. package/cdn/chunks/chunk-MX7JGUEV.js +5 -0
  87. package/cdn/chunks/chunk-MZEVJMUS.js +5 -0
  88. package/cdn/chunks/chunk-NHUCLA7C.js +5 -0
  89. package/cdn/chunks/chunk-NJMK5GFV.js +3604 -0
  90. package/cdn/chunks/chunk-NPUY7KWX.js +5 -0
  91. package/cdn/chunks/chunk-NQ3BSLED.js +1465 -0
  92. package/cdn/chunks/chunk-NSDTAG5H.js +1465 -0
  93. package/cdn/chunks/chunk-NW5BDXND.js +5 -0
  94. package/cdn/chunks/chunk-OUASGGRF.js +5 -0
  95. package/cdn/chunks/chunk-P32DF2PX.js +5 -0
  96. package/cdn/chunks/chunk-P67MLABM.js +5 -0
  97. package/cdn/chunks/chunk-PDGJCLPL.js +5 -0
  98. package/cdn/chunks/chunk-PEIVTIUB.js +5 -0
  99. package/cdn/chunks/chunk-PIVDVXEN.js +1465 -0
  100. package/cdn/chunks/chunk-QLAUWZGN.js +1465 -0
  101. package/cdn/chunks/chunk-QXXWBEQF.js +3609 -0
  102. package/cdn/chunks/chunk-QZPQCRI5.js +1465 -0
  103. package/cdn/chunks/chunk-S4473XKU.js +5 -0
  104. package/cdn/chunks/chunk-SAF2F2BZ.js +1 -0
  105. package/cdn/chunks/chunk-SG6DVQL7.js +5 -0
  106. package/cdn/chunks/chunk-SHTWKDDX.js +1465 -0
  107. package/cdn/chunks/chunk-SLPPK4MX.js +1465 -0
  108. package/cdn/chunks/chunk-SNOJ7YK5.js +5 -0
  109. package/cdn/chunks/chunk-SRIMN6LS.js +5 -0
  110. package/cdn/chunks/chunk-STP2XHRQ.js +5 -0
  111. package/cdn/chunks/chunk-SX5UYWRC.js +5 -0
  112. package/cdn/chunks/chunk-SXBW34TA.js +5 -0
  113. package/cdn/chunks/chunk-SZIHBKW7.js +5 -0
  114. package/cdn/chunks/chunk-TBOYZAKT.js +10 -0
  115. package/cdn/chunks/chunk-TJQOQP3Y.js +5 -0
  116. package/cdn/chunks/chunk-TNTVGKFL.js +5 -0
  117. package/cdn/chunks/chunk-TUP6KJ75.js +5 -0
  118. package/cdn/chunks/chunk-TZ3JSM57.js +1465 -0
  119. package/cdn/chunks/chunk-TZR6VRWS.js +5 -0
  120. package/cdn/chunks/chunk-U2ZZRG5F.js +5 -0
  121. package/cdn/chunks/chunk-U44QDOCL.js +3623 -0
  122. package/cdn/chunks/chunk-U7TJTJQN.js +5 -0
  123. package/cdn/chunks/chunk-UFYKSOJU.js +5 -0
  124. package/cdn/chunks/chunk-UQBB2LW3.js +5 -0
  125. package/cdn/chunks/chunk-UYN4HJOQ.js +5 -0
  126. package/cdn/chunks/chunk-V4TTNYV7.js +5 -0
  127. package/cdn/chunks/chunk-VDZLUVD6.js +3626 -0
  128. package/cdn/chunks/chunk-VPCDMES4.js +1465 -0
  129. package/cdn/chunks/chunk-VU7RTCTH.js +5 -0
  130. package/cdn/chunks/chunk-X4D22CNL.js +1465 -0
  131. package/cdn/chunks/chunk-XWDDTFCA.js +1 -0
  132. package/cdn/chunks/chunk-YTHXVBE7.js +5 -0
  133. package/cdn/chunks/chunk-YXJMYFQN.js +3609 -0
  134. package/cdn/chunks/chunk-ZJOPT4QJ.js +1465 -0
  135. package/cdn/chunks/chunk-ZQX3RHXX.js +1465 -0
  136. package/cdn/chunks/chunk-ZXFMPBFU.js +5 -0
  137. package/cdn/index.global.js +1 -1
  138. package/cdn/index.js +1 -1
  139. package/cdn/qti-components/index.js +1 -1
  140. package/cdn/qti-item/components/item-container.js +1 -1
  141. package/cdn/qti-item/core/index.js +1 -1
  142. package/cdn/qti-test/components/index.js +1 -1
  143. package/cdn/qti-test/components/test-container.js +1 -1
  144. package/cdn/qti-test/core/index.js +1 -1
  145. package/dist/chunks/chunk-22ADH5XX.js +94 -0
  146. package/dist/chunks/chunk-22ADH5XX.js.map +1 -0
  147. package/dist/chunks/chunk-24YH3T77.js +3594 -0
  148. package/dist/chunks/chunk-24YH3T77.js.map +1 -0
  149. package/dist/chunks/chunk-2KLMYWXY.js +94 -0
  150. package/dist/chunks/chunk-2KLMYWXY.js.map +1 -0
  151. package/dist/chunks/chunk-2M36WE6U.js +887 -0
  152. package/dist/chunks/chunk-2M36WE6U.js.map +1 -0
  153. package/dist/chunks/chunk-33UVTXDH.js +7970 -0
  154. package/dist/chunks/chunk-33UVTXDH.js.map +1 -0
  155. package/dist/chunks/chunk-3E2HPYC2.js +7970 -0
  156. package/dist/chunks/chunk-3E2HPYC2.js.map +1 -0
  157. package/dist/chunks/chunk-3IDGBR6L.js +94 -0
  158. package/dist/chunks/chunk-3IDGBR6L.js.map +1 -0
  159. package/dist/chunks/chunk-3KHLBN4E.js +7969 -0
  160. package/dist/chunks/chunk-3KHLBN4E.js.map +1 -0
  161. package/dist/chunks/chunk-3OFGPZKB.js +887 -0
  162. package/dist/chunks/chunk-3OFGPZKB.js.map +1 -0
  163. package/dist/chunks/chunk-3Q3GJFP2.js +94 -0
  164. package/dist/chunks/chunk-3Q3GJFP2.js.map +1 -0
  165. package/dist/chunks/chunk-4HSJSPKC.js +3594 -0
  166. package/dist/chunks/chunk-4HSJSPKC.js.map +1 -0
  167. package/dist/chunks/chunk-4IY7EZRG.js +94 -0
  168. package/dist/chunks/chunk-4IY7EZRG.js.map +1 -0
  169. package/dist/chunks/chunk-52LKP43M.js +7970 -0
  170. package/dist/chunks/chunk-52LKP43M.js.map +1 -0
  171. package/dist/chunks/chunk-5SMBVUWD.js +94 -0
  172. package/dist/chunks/chunk-5SMBVUWD.js.map +1 -0
  173. package/dist/chunks/chunk-5UK3GDC4.js +270 -0
  174. package/dist/chunks/chunk-5UK3GDC4.js.map +1 -0
  175. package/dist/chunks/chunk-6RGVMISK.js +91 -0
  176. package/dist/chunks/chunk-6RGVMISK.js.map +1 -0
  177. package/dist/chunks/chunk-76V23CCX.js +887 -0
  178. package/dist/chunks/chunk-76V23CCX.js.map +1 -0
  179. package/dist/chunks/chunk-7OYG6HQK.js +887 -0
  180. package/dist/chunks/chunk-7OYG6HQK.js.map +1 -0
  181. package/dist/chunks/chunk-7PXD4SKY.js +94 -0
  182. package/dist/chunks/chunk-7PXD4SKY.js.map +1 -0
  183. package/dist/chunks/chunk-7S77KG7E.js +3598 -0
  184. package/dist/chunks/chunk-7S77KG7E.js.map +1 -0
  185. package/dist/chunks/chunk-7UNBWVTX.js +94 -0
  186. package/dist/chunks/chunk-7UNBWVTX.js.map +1 -0
  187. package/dist/chunks/chunk-A7GWMVMW.js +94 -0
  188. package/dist/chunks/chunk-A7GWMVMW.js.map +1 -0
  189. package/dist/chunks/chunk-AATFMNQ7.js +887 -0
  190. package/dist/chunks/chunk-AATFMNQ7.js.map +1 -0
  191. package/dist/chunks/chunk-AE5G2IBM.js +7969 -0
  192. package/dist/chunks/chunk-AE5G2IBM.js.map +1 -0
  193. package/dist/chunks/chunk-B4T3VSOK.js +7969 -0
  194. package/dist/chunks/chunk-B4T3VSOK.js.map +1 -0
  195. package/dist/chunks/chunk-BD3UXA45.js +94 -0
  196. package/dist/chunks/chunk-BD3UXA45.js.map +1 -0
  197. package/dist/chunks/chunk-BJ34MOX3.js +3594 -0
  198. package/dist/chunks/chunk-BJ34MOX3.js.map +1 -0
  199. package/dist/chunks/chunk-BSMH5QAT.js +7970 -0
  200. package/dist/chunks/chunk-BSMH5QAT.js.map +1 -0
  201. package/dist/chunks/chunk-BXUZQSIJ.js +7972 -0
  202. package/dist/chunks/chunk-BXUZQSIJ.js.map +1 -0
  203. package/dist/chunks/chunk-CIJVRB7X.js +887 -0
  204. package/dist/chunks/chunk-CIJVRB7X.js.map +1 -0
  205. package/dist/chunks/chunk-COMEKBI4.js +887 -0
  206. package/dist/chunks/chunk-COMEKBI4.js.map +1 -0
  207. package/dist/chunks/chunk-CZTJMCR5.js +887 -0
  208. package/dist/chunks/chunk-CZTJMCR5.js.map +1 -0
  209. package/dist/chunks/chunk-D3QPTBGD.js +94 -0
  210. package/dist/chunks/chunk-D3QPTBGD.js.map +1 -0
  211. package/dist/chunks/chunk-D4LXKUTU.js +3595 -0
  212. package/dist/chunks/chunk-D4LXKUTU.js.map +1 -0
  213. package/dist/chunks/chunk-D5F2SQNW.js +7969 -0
  214. package/dist/chunks/chunk-D5F2SQNW.js.map +1 -0
  215. package/dist/chunks/chunk-DB7E3FQS.js +94 -0
  216. package/dist/chunks/chunk-DB7E3FQS.js.map +1 -0
  217. package/dist/chunks/chunk-DHPEGVWN.js +84 -0
  218. package/dist/chunks/chunk-DHPEGVWN.js.map +1 -0
  219. package/dist/chunks/chunk-DO2QLC5X.js +7970 -0
  220. package/dist/chunks/chunk-DO2QLC5X.js.map +1 -0
  221. package/dist/chunks/chunk-DS4BD2ZQ.js +887 -0
  222. package/dist/chunks/chunk-DS4BD2ZQ.js.map +1 -0
  223. package/dist/chunks/chunk-DSLV5YA6.js +3594 -0
  224. package/dist/chunks/chunk-DSLV5YA6.js.map +1 -0
  225. package/dist/chunks/chunk-DU577TCY.js +3599 -0
  226. package/dist/chunks/chunk-DU577TCY.js.map +1 -0
  227. package/dist/chunks/chunk-DX7I752N.js +3601 -0
  228. package/dist/chunks/chunk-DX7I752N.js.map +1 -0
  229. package/dist/chunks/chunk-EAYSUJ5L.js +887 -0
  230. package/dist/chunks/chunk-EAYSUJ5L.js.map +1 -0
  231. package/dist/chunks/chunk-EFXOXSPI.js +7969 -0
  232. package/dist/chunks/chunk-EFXOXSPI.js.map +1 -0
  233. package/dist/chunks/chunk-ER2AETF4.js +94 -0
  234. package/dist/chunks/chunk-ER2AETF4.js.map +1 -0
  235. package/dist/chunks/chunk-FMBMEJA6.js +887 -0
  236. package/dist/chunks/chunk-FMBMEJA6.js.map +1 -0
  237. package/dist/chunks/chunk-FQ42YLGN.js +94 -0
  238. package/dist/chunks/chunk-FQ42YLGN.js.map +1 -0
  239. package/dist/chunks/chunk-G52LAMAB.js +94 -0
  240. package/dist/chunks/chunk-G52LAMAB.js.map +1 -0
  241. package/dist/chunks/chunk-G5FFQER7.js +7969 -0
  242. package/dist/chunks/chunk-G5FFQER7.js.map +1 -0
  243. package/dist/chunks/chunk-GCOODLFL.js +94 -0
  244. package/dist/chunks/chunk-GCOODLFL.js.map +1 -0
  245. package/dist/chunks/chunk-GH26RKOD.js +887 -0
  246. package/dist/chunks/chunk-GH26RKOD.js.map +1 -0
  247. package/dist/chunks/chunk-GKY4X7OQ.js +94 -0
  248. package/dist/chunks/chunk-GKY4X7OQ.js.map +1 -0
  249. package/dist/chunks/chunk-GZRKK3QW.js +7970 -0
  250. package/dist/chunks/chunk-GZRKK3QW.js.map +1 -0
  251. package/dist/chunks/chunk-H4HFOONR.js +94 -0
  252. package/dist/chunks/chunk-H4HFOONR.js.map +1 -0
  253. package/dist/chunks/chunk-H7E4LC4K.js +7969 -0
  254. package/dist/chunks/chunk-H7E4LC4K.js.map +1 -0
  255. package/dist/chunks/chunk-HFLNMWQY.js +887 -0
  256. package/dist/chunks/chunk-HFLNMWQY.js.map +1 -0
  257. package/dist/chunks/chunk-HIPJ4SLP.js +94 -0
  258. package/dist/chunks/chunk-HIPJ4SLP.js.map +1 -0
  259. package/dist/chunks/chunk-HWBOMIKQ.js +94 -0
  260. package/dist/chunks/chunk-HWBOMIKQ.js.map +1 -0
  261. package/dist/chunks/chunk-I5QWPTNS.js +7970 -0
  262. package/dist/chunks/chunk-I5QWPTNS.js.map +1 -0
  263. package/dist/chunks/chunk-IDQVCLFW.js +3594 -0
  264. package/dist/chunks/chunk-IDQVCLFW.js.map +1 -0
  265. package/dist/chunks/chunk-IHM5AGLK.js +94 -0
  266. package/dist/chunks/chunk-IHM5AGLK.js.map +1 -0
  267. package/dist/chunks/chunk-IHVWYU6H.js +887 -0
  268. package/dist/chunks/chunk-IHVWYU6H.js.map +1 -0
  269. package/dist/chunks/chunk-IM3XJ5J3.js +94 -0
  270. package/dist/chunks/chunk-IM3XJ5J3.js.map +1 -0
  271. package/dist/chunks/chunk-J6QL36DE.js +887 -0
  272. package/dist/chunks/chunk-J6QL36DE.js.map +1 -0
  273. package/dist/chunks/chunk-JCSGX6KS.js +887 -0
  274. package/dist/chunks/chunk-JCSGX6KS.js.map +1 -0
  275. package/dist/chunks/chunk-JKVAOL23.js +94 -0
  276. package/dist/chunks/chunk-JKVAOL23.js.map +1 -0
  277. package/dist/chunks/chunk-KGLPF52L.js +887 -0
  278. package/dist/chunks/chunk-KGLPF52L.js.map +1 -0
  279. package/dist/chunks/chunk-KGUUVU4R.js +94 -0
  280. package/dist/chunks/chunk-KGUUVU4R.js.map +1 -0
  281. package/dist/chunks/chunk-KUR3WYNE.js +94 -0
  282. package/dist/chunks/chunk-KUR3WYNE.js.map +1 -0
  283. package/dist/chunks/chunk-LP5XIBBR.js +3616 -0
  284. package/dist/chunks/chunk-LP5XIBBR.js.map +1 -0
  285. package/dist/chunks/chunk-MHN7KBCQ.js +94 -0
  286. package/dist/chunks/chunk-MHN7KBCQ.js.map +1 -0
  287. package/dist/chunks/chunk-MVUREGEC.js +3594 -0
  288. package/dist/chunks/chunk-MVUREGEC.js.map +1 -0
  289. package/dist/chunks/chunk-ND4URIPN.js +3595 -0
  290. package/dist/chunks/chunk-ND4URIPN.js.map +1 -0
  291. package/dist/chunks/chunk-NHJSQ6EC.js +887 -0
  292. package/dist/chunks/chunk-NHJSQ6EC.js.map +1 -0
  293. package/dist/chunks/chunk-NS4XSJTY.js +94 -0
  294. package/dist/chunks/chunk-NS4XSJTY.js.map +1 -0
  295. package/dist/chunks/chunk-NYM2PFSX.js +887 -0
  296. package/dist/chunks/chunk-NYM2PFSX.js.map +1 -0
  297. package/dist/chunks/chunk-O4YARITG.js +94 -0
  298. package/dist/chunks/chunk-O4YARITG.js.map +1 -0
  299. package/dist/chunks/chunk-OEU7UL5H.js +7970 -0
  300. package/dist/chunks/chunk-OEU7UL5H.js.map +1 -0
  301. package/dist/chunks/chunk-PZUCEOGK.js +887 -0
  302. package/dist/chunks/chunk-PZUCEOGK.js.map +1 -0
  303. package/dist/chunks/chunk-QANFQNGJ.js +94 -0
  304. package/dist/chunks/chunk-QANFQNGJ.js.map +1 -0
  305. package/dist/chunks/chunk-QJCCWOJA.js +7969 -0
  306. package/dist/chunks/chunk-QJCCWOJA.js.map +1 -0
  307. package/dist/chunks/chunk-QRVZKLRL.js +94 -0
  308. package/dist/chunks/chunk-QRVZKLRL.js.map +1 -0
  309. package/dist/chunks/chunk-QZQGK6RL.js +3616 -0
  310. package/dist/chunks/chunk-QZQGK6RL.js.map +1 -0
  311. package/dist/chunks/chunk-R4NPDD3O.js +7970 -0
  312. package/dist/chunks/chunk-R4NPDD3O.js.map +1 -0
  313. package/dist/chunks/chunk-R5EF3ZV3.js +887 -0
  314. package/dist/chunks/chunk-R5EF3ZV3.js.map +1 -0
  315. package/dist/chunks/chunk-RBZA3P3W.js +94 -0
  316. package/dist/chunks/chunk-RBZA3P3W.js.map +1 -0
  317. package/dist/chunks/chunk-RGFVMAPK.js +887 -0
  318. package/dist/chunks/chunk-RGFVMAPK.js.map +1 -0
  319. package/dist/chunks/chunk-RQF4P6PJ.js +94 -0
  320. package/dist/chunks/chunk-RQF4P6PJ.js.map +1 -0
  321. package/dist/chunks/chunk-SUD3U36A.js +7971 -0
  322. package/dist/chunks/chunk-SUD3U36A.js.map +1 -0
  323. package/dist/chunks/chunk-T7AYE2YI.js +887 -0
  324. package/dist/chunks/chunk-T7AYE2YI.js.map +1 -0
  325. package/dist/chunks/chunk-TL4SWC5W.js +94 -0
  326. package/dist/chunks/chunk-TL4SWC5W.js.map +1 -0
  327. package/dist/chunks/chunk-TNBMHBCA.js +94 -0
  328. package/dist/chunks/chunk-TNBMHBCA.js.map +1 -0
  329. package/dist/chunks/chunk-TNSZ52TC.js +269 -0
  330. package/dist/chunks/chunk-TNSZ52TC.js.map +1 -0
  331. package/dist/chunks/chunk-UL5627MO.js +94 -0
  332. package/dist/chunks/chunk-UL5627MO.js.map +1 -0
  333. package/dist/chunks/chunk-V7JDFAR4.js +887 -0
  334. package/dist/chunks/chunk-V7JDFAR4.js.map +1 -0
  335. package/dist/chunks/chunk-VAMHDDOF.js +3599 -0
  336. package/dist/chunks/chunk-VAMHDDOF.js.map +1 -0
  337. package/dist/chunks/chunk-VWKPIAXJ.js +887 -0
  338. package/dist/chunks/chunk-VWKPIAXJ.js.map +1 -0
  339. package/dist/chunks/chunk-W7DTVLFL.js +3599 -0
  340. package/dist/chunks/chunk-W7DTVLFL.js.map +1 -0
  341. package/dist/chunks/chunk-WGRV4XGF.js +94 -0
  342. package/dist/chunks/chunk-WGRV4XGF.js.map +1 -0
  343. package/dist/chunks/chunk-WGYRA3PV.js +3599 -0
  344. package/dist/chunks/chunk-WGYRA3PV.js.map +1 -0
  345. package/dist/chunks/chunk-WPILGOKJ.js +7970 -0
  346. package/dist/chunks/chunk-WPILGOKJ.js.map +1 -0
  347. package/dist/chunks/chunk-WTHWEPDU.js +887 -0
  348. package/dist/chunks/chunk-WTHWEPDU.js.map +1 -0
  349. package/dist/chunks/chunk-WUME5EGP.js +3599 -0
  350. package/dist/chunks/chunk-WUME5EGP.js.map +1 -0
  351. package/dist/chunks/chunk-XKCAACM6.js +7970 -0
  352. package/dist/chunks/chunk-XKCAACM6.js.map +1 -0
  353. package/dist/chunks/chunk-XNIBWYHL.js +887 -0
  354. package/dist/chunks/chunk-XNIBWYHL.js.map +1 -0
  355. package/dist/chunks/chunk-Y5W2PVX7.js +3613 -0
  356. package/dist/chunks/chunk-Y5W2PVX7.js.map +1 -0
  357. package/dist/chunks/chunk-YHIY6E3N.js +94 -0
  358. package/dist/chunks/chunk-YHIY6E3N.js.map +1 -0
  359. package/dist/chunks/chunk-YHTY7DUW.js +3613 -0
  360. package/dist/chunks/chunk-YHTY7DUW.js.map +1 -0
  361. package/dist/chunks/chunk-YKBQIZ42.js +7971 -0
  362. package/dist/chunks/chunk-YKBQIZ42.js.map +1 -0
  363. package/dist/chunks/chunk-YZNWGPQB.js +7970 -0
  364. package/dist/chunks/chunk-YZNWGPQB.js.map +1 -0
  365. package/dist/chunks/chunk-ZEIFNXEY.js +887 -0
  366. package/dist/chunks/chunk-ZEIFNXEY.js.map +1 -0
  367. package/dist/chunks/chunk-ZL6XU46A.js +94 -0
  368. package/dist/chunks/chunk-ZL6XU46A.js.map +1 -0
  369. package/dist/chunks/chunk-ZXLMZGX3.js +7970 -0
  370. package/dist/chunks/chunk-ZXLMZGX3.js.map +1 -0
  371. package/dist/index.js +20 -20
  372. package/dist/item.css +41 -4
  373. package/dist/qti-components/index.js +1 -1
  374. package/dist/qti-item/components/item-container.js +2 -2
  375. package/dist/qti-item/core/index.js +2 -2
  376. package/dist/qti-test/components/index.js +10 -10
  377. package/dist/qti-test/components/test-container.js +2 -2
  378. package/dist/qti-test/core/index.js +2 -2
  379. package/package.json +1 -1
@@ -0,0 +1,887 @@
1
+ import {
2
+ INITIAL_SESSION_CONTEXT,
3
+ sessionContext
4
+ } from "./chunk-22IRJWWY.js";
5
+ import {
6
+ INITIAL_TEST_CONTEXT,
7
+ testContext
8
+ } from "./chunk-CJADUWEC.js";
9
+ import {
10
+ QtiModalFeedback
11
+ } from "./chunk-I5QWPTNS.js";
12
+ import {
13
+ qtiTransformItem
14
+ } from "./chunk-VEWD22O5.js";
15
+ import {
16
+ __decorateClass
17
+ } from "./chunk-H2JE6IVU.js";
18
+
19
+ // src/lib/qti-test/core/qti-test.ts
20
+ import { html } from "lit";
21
+ import { customElement } from "lit/decorators.js";
22
+
23
+ // src/lib/qti-test/core/mixins/test-navigation.mixin.ts
24
+ import { property } from "lit/decorators.js";
25
+ var NavigationErrorType = /* @__PURE__ */ ((NavigationErrorType2) => {
26
+ NavigationErrorType2["ITEM_NOT_FOUND"] = "item-not-found";
27
+ NavigationErrorType2["SECTION_NOT_FOUND"] = "section-not-found";
28
+ NavigationErrorType2["LOAD_ERROR"] = "load-error";
29
+ NavigationErrorType2["NETWORK_ERROR"] = "network-error";
30
+ NavigationErrorType2["TIMEOUT_ERROR"] = "timeout-error";
31
+ return NavigationErrorType2;
32
+ })(NavigationErrorType || {});
33
+ var TestNavigationMixin = (superClass) => {
34
+ class TestNavigationClass extends superClass {
35
+ constructor(...args) {
36
+ super(...args);
37
+ this.navigate = null;
38
+ this.cacheTransform = false;
39
+ this.requestTimeout = 3e4;
40
+ this.showLoadingIndicators = true;
41
+ this._activeRequests = [];
42
+ this._navigationInProgress = false;
43
+ this._lastError = null;
44
+ this._lastNavigationRequestId = null;
45
+ this._targetNavigation = null;
46
+ this.addEventListener(
47
+ "qti-request-navigation",
48
+ async ({ detail }) => {
49
+ if (!detail?.id) return;
50
+ const navigationRequestId = `nav_${Date.now()}_${Math.random()}`;
51
+ this._lastNavigationRequestId = navigationRequestId;
52
+ try {
53
+ this._navigationInProgress = true;
54
+ this._lastError = null;
55
+ this._dispatchStatusEvent({ loading: true, type: detail.type, id: detail.id });
56
+ this._cancelActiveRequests();
57
+ this._targetNavigation = { type: detail.type, id: detail.id };
58
+ if (detail.type === "item") {
59
+ await this._navigateToItem(detail.id);
60
+ } else if (detail.type === "section") {
61
+ await this._navigateToSection(detail.id);
62
+ }
63
+ if (this._lastNavigationRequestId !== navigationRequestId) {
64
+ console.log("Navigation was superseded by a newer request");
65
+ return;
66
+ }
67
+ } catch (error) {
68
+ if (this._lastNavigationRequestId === navigationRequestId) {
69
+ const navError = this._normalizeError(error, detail.type, detail.id);
70
+ this._lastError = navError;
71
+ this._dispatchErrorEvent(navError);
72
+ console.error(`Navigation error (${navError.type}):`, navError.message, navError.details);
73
+ }
74
+ } finally {
75
+ if (this._lastNavigationRequestId === navigationRequestId) {
76
+ this._navigationInProgress = false;
77
+ this._dispatchStatusEvent({ loading: false, type: detail.type, id: detail.id });
78
+ }
79
+ }
80
+ }
81
+ );
82
+ this.addEventListener("qti-assessment-test-connected", (e) => {
83
+ this._testElement = e.detail;
84
+ this._initializeNavigation();
85
+ });
86
+ }
87
+ /**
88
+ * Initialize navigation when test is first connected
89
+ */
90
+ _initializeNavigation() {
91
+ let id;
92
+ if (this.navigate === "section") {
93
+ id = this._testElement.querySelector("qti-assessment-section")?.identifier;
94
+ }
95
+ if (this.navigate === "item") {
96
+ id = this.sessionContext.navItemRefId ?? this._testElement.querySelector("qti-assessment-item-ref")?.identifier;
97
+ }
98
+ if (id) {
99
+ this.dispatchEvent(
100
+ new CustomEvent("qti-request-navigation", {
101
+ detail: { type: this.navigate === "section" ? "section" : "item", id },
102
+ bubbles: true,
103
+ composed: true
104
+ })
105
+ );
106
+ }
107
+ }
108
+ navigateTo(type, id) {
109
+ if (!id) {
110
+ if (type === "section") {
111
+ id = this._testElement?.querySelector("qti-assessment-section")?.identifier;
112
+ }
113
+ if (type === "item") {
114
+ id = this._testElement?.querySelector("qti-assessment-item-ref")?.identifier;
115
+ }
116
+ }
117
+ this.dispatchEvent(
118
+ new CustomEvent("qti-request-navigation", {
119
+ detail: { type, id },
120
+ bubbles: true,
121
+ composed: true
122
+ })
123
+ );
124
+ }
125
+ /**
126
+ * Navigates to a specific item
127
+ */
128
+ async _navigateToItem(itemId) {
129
+ const itemRefEl = this._testElement?.querySelector(
130
+ `qti-assessment-item-ref[identifier="${itemId}"]`
131
+ );
132
+ if (!itemRefEl) {
133
+ throw {
134
+ type: "item-not-found" /* ITEM_NOT_FOUND */,
135
+ message: `Item with identifier "${itemId}" not found.`,
136
+ itemId
137
+ };
138
+ }
139
+ const navPartId = itemRefEl.closest("qti-test-part")?.identifier;
140
+ const navSectionId = itemRefEl.closest("qti-assessment-section")?.identifier;
141
+ this.sessionContext = {
142
+ ...this.sessionContext,
143
+ navPartId,
144
+ navSectionId,
145
+ navItemRefId: itemId,
146
+ navItemLoading: true
147
+ };
148
+ try {
149
+ await this._loadItems([itemId]);
150
+ } finally {
151
+ this.sessionContext = {
152
+ ...this.sessionContext,
153
+ navItemLoading: false
154
+ };
155
+ }
156
+ }
157
+ /**
158
+ * Navigates to a specific section
159
+ */
160
+ async _navigateToSection(sectionId) {
161
+ const sectionRefEl = this._testElement?.querySelector(
162
+ `qti-assessment-section[identifier="${sectionId}"]`
163
+ );
164
+ if (!sectionRefEl) {
165
+ throw {
166
+ type: "section-not-found" /* SECTION_NOT_FOUND */,
167
+ message: `Section with identifier "${sectionId}" not found.`,
168
+ sectionId
169
+ };
170
+ }
171
+ const navPartId = sectionRefEl.closest("qti-test-part")?.identifier;
172
+ this.sessionContext = {
173
+ ...this.sessionContext,
174
+ navPartId,
175
+ navSectionId: sectionId,
176
+ navItemRefId: null,
177
+ navItemLoading: true
178
+ };
179
+ try {
180
+ const itemIds = this._getSectionItemIds(sectionId);
181
+ await this._loadItems(itemIds);
182
+ } finally {
183
+ this.sessionContext = {
184
+ ...this.sessionContext,
185
+ navItemLoading: false
186
+ };
187
+ }
188
+ }
189
+ /**
190
+ * Normalize different error types into a consistent NavigationError format
191
+ */
192
+ _normalizeError(error, navigationType, id) {
193
+ if (error && error.type && Object.values(NavigationErrorType).includes(error.type)) {
194
+ return error;
195
+ }
196
+ if (error instanceof DOMException && error.name === "AbortError") {
197
+ return {
198
+ type: "network-error" /* NETWORK_ERROR */,
199
+ message: "Navigation was cancelled because a new navigation was requested.",
200
+ details: error
201
+ };
202
+ }
203
+ if (error.name === "TimeoutError" || error.message && error.message.includes("timeout")) {
204
+ return {
205
+ type: "timeout-error" /* TIMEOUT_ERROR */,
206
+ message: "Request timed out. Please check your network connection.",
207
+ details: error
208
+ };
209
+ }
210
+ if (error instanceof TypeError && error.message.includes("network")) {
211
+ return {
212
+ type: "network-error" /* NETWORK_ERROR */,
213
+ message: "A network error occurred. Please check your connection.",
214
+ details: error
215
+ };
216
+ }
217
+ return {
218
+ type: "load-error" /* LOAD_ERROR */,
219
+ message: `Failed to load ${navigationType}: ${id}`,
220
+ details: error,
221
+ itemId: navigationType === "item" ? id : void 0,
222
+ sectionId: navigationType === "section" ? id : void 0
223
+ };
224
+ }
225
+ /**
226
+ * Dispatch error event to notify the UI
227
+ */
228
+ _dispatchErrorEvent(error) {
229
+ this.dispatchEvent(
230
+ new CustomEvent("qti-navigation-error", {
231
+ detail: error,
232
+ bubbles: true,
233
+ composed: true
234
+ })
235
+ );
236
+ }
237
+ /**
238
+ * Dispatch status event to indicate loading state
239
+ */
240
+ _dispatchStatusEvent(status) {
241
+ if (this.showLoadingIndicators) {
242
+ this.dispatchEvent(
243
+ new CustomEvent("qti-navigation-status", {
244
+ detail: status,
245
+ bubbles: true,
246
+ composed: true
247
+ })
248
+ );
249
+ }
250
+ }
251
+ /**
252
+ * Cancels all active HTTP requests
253
+ */
254
+ _cancelActiveRequests() {
255
+ if (this._activeRequests.length > 0) {
256
+ console.info(`Cancelling ${this._activeRequests.length} pending requests`);
257
+ this._activeRequests.forEach((request) => {
258
+ if (request && request.readyState !== 4) {
259
+ request.abort();
260
+ }
261
+ });
262
+ this._activeRequests = [];
263
+ }
264
+ }
265
+ /**
266
+ * Load items with improved error handling and timeout
267
+ */
268
+ async _loadItems(itemIds) {
269
+ if (!this._testElement || itemIds.length === 0) return;
270
+ const itemRefEls = itemIds.map(
271
+ (id) => this._testElement.querySelector(`qti-assessment-item-ref[identifier="${id}"]`)
272
+ );
273
+ const missingItems = itemRefEls.reduce((missing, el, index) => {
274
+ if (!el) missing.push(itemIds[index]);
275
+ return missing;
276
+ }, []);
277
+ if (missingItems.length > 0) {
278
+ const error = {
279
+ type: "item-not-found" /* ITEM_NOT_FOUND */,
280
+ message: `One or more items not found: ${missingItems.join(", ")}`,
281
+ details: { missingItems }
282
+ };
283
+ throw error;
284
+ }
285
+ this._clearLoadedItems();
286
+ const itemLoadPromises = itemRefEls.map(async (itemRef) => {
287
+ if (!itemRef) return null;
288
+ const timeoutPromise = new Promise((_, reject) => {
289
+ setTimeout(() => {
290
+ reject({
291
+ name: "TimeoutError",
292
+ message: `Request for item ${itemRef.identifier} timed out after ${this.requestTimeout}ms`
293
+ });
294
+ }, this.requestTimeout);
295
+ });
296
+ try {
297
+ const { promise, request } = qtiTransformItem(this.cacheTransform).load(itemRef.href);
298
+ if (request instanceof XMLHttpRequest) {
299
+ this._activeRequests.push(request);
300
+ }
301
+ const apiResult = await Promise.race([promise, timeoutPromise]);
302
+ return {
303
+ itemRef,
304
+ doc: apiResult.htmlDoc(),
305
+ request
306
+ };
307
+ } catch (error) {
308
+ if (error instanceof DOMException && error.name === "AbortError" || error && error.name === "TimeoutError") {
309
+ console.log(
310
+ `Request for item ${itemRef.identifier} was ${error.name === "TimeoutError" ? "timed out" : "aborted"}`
311
+ );
312
+ return null;
313
+ }
314
+ error.itemId = itemRef.identifier;
315
+ throw error;
316
+ }
317
+ });
318
+ try {
319
+ const results = await Promise.all(itemLoadPromises);
320
+ const validResults = results.filter((result) => result !== null);
321
+ validResults.forEach(({ itemRef, doc }) => {
322
+ if (itemRef && doc) itemRef.xmlDoc = doc;
323
+ });
324
+ this._activeRequests = [];
325
+ requestAnimationFrame(() => {
326
+ this.dispatchEvent(
327
+ new CustomEvent("qti-test-loaded", {
328
+ detail: validResults.map(({ itemRef }) => ({
329
+ identifier: itemRef?.identifier,
330
+ element: itemRef
331
+ })),
332
+ bubbles: true,
333
+ composed: true
334
+ })
335
+ );
336
+ });
337
+ if (validResults.length === 0 && itemIds.length > 0) {
338
+ throw {
339
+ type: "load-error" /* LOAD_ERROR */,
340
+ message: "All item requests failed to load",
341
+ details: { itemIds }
342
+ };
343
+ }
344
+ return validResults;
345
+ } catch (error) {
346
+ console.error("Error loading items:", error);
347
+ throw error;
348
+ }
349
+ }
350
+ /**
351
+ * Gets all item IDs in a section
352
+ */
353
+ _getSectionItemIds(navSectionId) {
354
+ const sectionRefEl = this._testElement?.querySelector(
355
+ `qti-assessment-section[identifier="${navSectionId}"]`
356
+ );
357
+ if (!sectionRefEl) {
358
+ throw {
359
+ type: "section-not-found" /* SECTION_NOT_FOUND */,
360
+ message: `Section with identifier "${navSectionId}" not found.`,
361
+ sectionId: navSectionId
362
+ };
363
+ }
364
+ return Array.from(
365
+ this._testElement.querySelectorAll(
366
+ `qti-assessment-section[identifier="${navSectionId}"] > qti-assessment-item-ref`
367
+ )
368
+ ).map((itemRef) => itemRef.identifier);
369
+ }
370
+ /**
371
+ * Clears all loaded items
372
+ */
373
+ _clearLoadedItems() {
374
+ const itemRefEls = this._testElement?.querySelectorAll(
375
+ `qti-assessment-test qti-assessment-item-ref`
376
+ );
377
+ Array.from(itemRefEls || []).forEach((itemElement) => {
378
+ itemElement.xmlDoc = null;
379
+ });
380
+ }
381
+ /**
382
+ * Retry the last failed navigation
383
+ */
384
+ retryNavigation() {
385
+ if (this._lastError) {
386
+ const type = this._lastError.itemId ? "item" : "section";
387
+ const id = this._lastError.itemId || this._lastError.sectionId;
388
+ if (id) {
389
+ this.dispatchEvent(
390
+ new CustomEvent("qti-request-navigation", {
391
+ detail: { type, id },
392
+ bubbles: true,
393
+ composed: true
394
+ })
395
+ );
396
+ }
397
+ } else if (this._targetNavigation) {
398
+ this.dispatchEvent(
399
+ new CustomEvent("qti-request-navigation", {
400
+ detail: this._targetNavigation,
401
+ bubbles: true,
402
+ composed: true
403
+ })
404
+ );
405
+ }
406
+ }
407
+ }
408
+ __decorateClass([
409
+ property({ type: String })
410
+ ], TestNavigationClass.prototype, "navigate", 2);
411
+ __decorateClass([
412
+ property({ type: Boolean, attribute: "cache-transform" })
413
+ ], TestNavigationClass.prototype, "cacheTransform", 2);
414
+ __decorateClass([
415
+ property({ type: Number })
416
+ ], TestNavigationClass.prototype, "requestTimeout", 2);
417
+ __decorateClass([
418
+ property({ type: Boolean })
419
+ ], TestNavigationClass.prototype, "showLoadingIndicators", 2);
420
+ return TestNavigationClass;
421
+ };
422
+
423
+ // src/lib/qti-test/core/mixins/test-view.mixin.ts
424
+ var TestViewMixin = (superClass) => {
425
+ class TestViewClass extends superClass {
426
+ constructor(...args) {
427
+ super(...args);
428
+ this.sessionContext = { ...this.sessionContext, view: "candidate" };
429
+ this.addEventListener("on-test-switch-view", (e) => {
430
+ this.sessionContext = { ...this.sessionContext, view: e.detail };
431
+ this._updateElementView();
432
+ });
433
+ this.addEventListener("qti-assessment-test-connected", () => {
434
+ this._updateElementView();
435
+ });
436
+ this.addEventListener("qti-assessment-item-connected", (e) => {
437
+ this._updateElementView();
438
+ this._setCorrectResponseVisibility(e.detail);
439
+ });
440
+ }
441
+ willUpdate(changedProperties) {
442
+ super.willUpdate(changedProperties);
443
+ if (changedProperties.has("sessionContext")) {
444
+ this._updateElementView();
445
+ }
446
+ }
447
+ // Method to handle view updates for elements based on the current context view
448
+ _updateElementView() {
449
+ if (this._testElement) {
450
+ const viewElements = Array.from(this._testElement.querySelectorAll("[view]"));
451
+ viewElements.forEach((element) => {
452
+ element.classList.toggle("show", element.getAttribute("view") === this.sessionContext.view);
453
+ });
454
+ const assessmentItemRef = this._testElement.querySelector(
455
+ `qti-assessment-item-ref[identifier="${this.sessionContext.navItemRefId}"]`
456
+ );
457
+ const assessmentItem = assessmentItemRef?.assessmentItem;
458
+ if (assessmentItem) {
459
+ assessmentItem.showCorrectResponse(this.sessionContext.view === "scorer");
460
+ }
461
+ }
462
+ }
463
+ // Event handler for connected QTI assessment items
464
+ _setCorrectResponseVisibility(assessmentItem) {
465
+ assessmentItem.showCorrectResponse(this.sessionContext.view === "scorer");
466
+ }
467
+ }
468
+ return TestViewClass;
469
+ };
470
+
471
+ // src/lib/qti-test/core/test-base.ts
472
+ import { provide } from "@lit/context";
473
+ import { LitElement } from "lit";
474
+ import { property as property2 } from "lit/decorators.js";
475
+ var TestBase = class extends LitElement {
476
+ constructor() {
477
+ super();
478
+ this.testContext = INITIAL_TEST_CONTEXT;
479
+ this.sessionContext = INITIAL_SESSION_CONTEXT;
480
+ /**
481
+ * Updates the variables of an assessment item in the test context.
482
+ * - Matches the assessment item with the corresponding test context item.
483
+ * - If the item is not found, logs a warning.
484
+ * - Updates variables in the test context if exactly one variable exists.
485
+ * - Otherwise, syncs the assessment item's variables with the test context.
486
+ *
487
+ * @param assessmentItem - The assessment item to update.
488
+ */
489
+ this._updateItemInTestContext = (assessmentItem) => {
490
+ const context = assessmentItem._context;
491
+ const identifier = context.identifier;
492
+ const fullVariables = context.variables;
493
+ const itemContext = this.testContext.items.find((i) => i?.identifier === identifier);
494
+ if (!itemContext) {
495
+ console.warn(`Item IDs between assessment.xml and item.xml should match: ${identifier} is not found!`);
496
+ return;
497
+ }
498
+ if (itemContext.variables?.length === 1) {
499
+ this._updateItemVariablesInTestContext(identifier, fullVariables);
500
+ } else {
501
+ assessmentItem.variables = [...itemContext.variables || []];
502
+ }
503
+ };
504
+ this.addEventListener("qti-assessment-test-connected", (e) => {
505
+ this.testContext = INITIAL_TEST_CONTEXT;
506
+ this.sessionContext = INITIAL_SESSION_CONTEXT;
507
+ if (this.testContext && this.testContext.items.length > 0) return;
508
+ this._testElement = e.detail;
509
+ const items = Array.from(this._testElement.querySelectorAll("qti-assessment-item-ref")).map((itemRef) => {
510
+ return {
511
+ href: itemRef.href,
512
+ identifier: itemRef.identifier,
513
+ category: itemRef.category,
514
+ variables: [
515
+ {
516
+ identifier: "completionStatus",
517
+ value: "not_attempted",
518
+ type: "outcome"
519
+ }
520
+ ]
521
+ };
522
+ });
523
+ this.testContext = { ...this.testContext, items };
524
+ });
525
+ this.addEventListener("qti-assessment-item-connected", (e) => {
526
+ const assessmentItem = e.detail;
527
+ const assessmentRefId = assessmentItem.closest("qti-assessment-item-ref")?.identifier;
528
+ if (assessmentRefId) {
529
+ assessmentItem.assessmentItemRefId = assessmentRefId;
530
+ }
531
+ this._updateItemInTestContext(e.detail);
532
+ });
533
+ this.addEventListener("qti-item-context-updated", (e) => {
534
+ this._updateItemVariablesInTestContext(e.detail.itemContext.identifier, e.detail.itemContext.variables);
535
+ });
536
+ }
537
+ updateItemVariables(itemRefID, variables) {
538
+ const itemContext = this.testContext.items.find((item) => item.identifier === itemRefID);
539
+ if (itemContext) {
540
+ itemContext.variables = itemContext.variables.map((variable) => {
541
+ const updatedVariable = variables.find((v) => v.identifier === variable.identifier);
542
+ return updatedVariable ? { ...variable, ...updatedVariable } : variable;
543
+ });
544
+ }
545
+ const itemRef = this._testElement.querySelector(
546
+ `qti-assessment-item-ref[identifier="${itemRefID}"]`
547
+ );
548
+ if (itemRef && itemRef.assessmentItem) {
549
+ if (itemRef.assessmentItem) {
550
+ itemRef.assessmentItem.variables = variables;
551
+ }
552
+ }
553
+ }
554
+ _updateItemVariablesInTestContext(identifier, variables) {
555
+ this.testContext = {
556
+ ...this.testContext,
557
+ // Spread existing test context properties
558
+ items: this.testContext.items.map((itemContext) => {
559
+ if (itemContext.identifier !== identifier) {
560
+ return itemContext;
561
+ }
562
+ return {
563
+ ...itemContext,
564
+ // Keep other properties of the item context
565
+ variables: variables.map((variable) => {
566
+ const matchingVariable = itemContext.variables.find((v) => v.identifier === variable.identifier);
567
+ return matchingVariable ? { ...matchingVariable, ...variable } : variable;
568
+ })
569
+ };
570
+ })
571
+ };
572
+ this.dispatchEvent(
573
+ new CustomEvent("qti-test-context-updated", { detail: this.testContext, bubbles: false, composed: false })
574
+ );
575
+ }
576
+ };
577
+ __decorateClass([
578
+ property2({ attribute: false, type: Object }),
579
+ provide({ context: testContext })
580
+ ], TestBase.prototype, "testContext", 2);
581
+ __decorateClass([
582
+ property2({ attribute: false, type: Object }),
583
+ provide({ context: sessionContext })
584
+ ], TestBase.prototype, "sessionContext", 2);
585
+
586
+ // src/lib/qti-test/core/mixins/test-processing.mixin.ts
587
+ var TestProcessingMixin = (superClass) => {
588
+ class TestProcessingElement extends superClass {
589
+ constructor(...args) {
590
+ super(...args);
591
+ this.addEventListener("qti-register-variable", (e) => {
592
+ this.testContext = {
593
+ ...this.testContext,
594
+ testOutcomeVariables: [...this.testContext.testOutcomeVariables || [], e.detail.variable]
595
+ };
596
+ e.stopPropagation();
597
+ });
598
+ this.addEventListener(
599
+ "qti-set-outcome-value",
600
+ (e) => {
601
+ const { outcomeIdentifier, value } = e.detail;
602
+ this.updateOutcomeVariable(outcomeIdentifier, value);
603
+ e.stopPropagation();
604
+ }
605
+ );
606
+ }
607
+ outcomeProcessing() {
608
+ const outcomeProcessor = this.querySelector("qti-outcome-processing");
609
+ if (!outcomeProcessor) return false;
610
+ outcomeProcessor?.process();
611
+ return true;
612
+ }
613
+ /* --------------------------- ENABLED WHEN UNIT TESTING OUTCOME PROCESSING ------------------------------------ */
614
+ updateOutcomeVariable(identifier, value) {
615
+ const outcomeVariable = this.getOutcome(identifier);
616
+ if (!outcomeVariable) {
617
+ console.warn(`Can not set qti-outcome-identifier: ${identifier}, it is not available`);
618
+ return;
619
+ }
620
+ this.testContext = {
621
+ ...this.testContext,
622
+ testOutcomeVariables: this.testContext.testOutcomeVariables?.map((v) => {
623
+ if (v.identifier !== identifier) {
624
+ return v;
625
+ }
626
+ return {
627
+ ...v,
628
+ value: outcomeVariable.cardinality === "single" ? value : [...v.value, value]
629
+ };
630
+ })
631
+ };
632
+ }
633
+ getOutcome(identifier) {
634
+ return this.getVariable(identifier);
635
+ }
636
+ getVariable(identifier) {
637
+ return this.testContext.testOutcomeVariables?.find((v) => v.identifier === identifier) || null;
638
+ }
639
+ /* --------------------------- ENABLED WHEN UNIT TESTING OUTCOME PROCESSING ------------------------------------ */
640
+ }
641
+ return TestProcessingElement;
642
+ };
643
+
644
+ // src/lib/qti-test/core/qti-test.ts
645
+ var QtiTest = class extends TestNavigationMixin(TestViewMixin(TestProcessingMixin(TestBase))) {
646
+ // export class QtiTest extends TestLoaderMixin(TestNavigationMixin(TestViewMixin(TestBase))) {
647
+ /**
648
+ * Renders the component's template.
649
+ * Provides a default `<slot>` for content projection.
650
+ */
651
+ async connectedCallback() {
652
+ super.connectedCallback();
653
+ await this.updateComplete;
654
+ this.dispatchEvent(new CustomEvent("qti-test-connected", { detail: this }));
655
+ }
656
+ render() {
657
+ return html`<slot></slot>`;
658
+ }
659
+ };
660
+ QtiTest = __decorateClass([
661
+ customElement("qti-test")
662
+ ], QtiTest);
663
+
664
+ // src/lib/qti-test/core/qti-assessment-test/qti-assessment-item-ref.ts
665
+ import { LitElement as LitElement2 } from "lit";
666
+ import { property as property3 } from "lit/decorators.js";
667
+ import { prepareTemplate } from "@heximal/templates";
668
+ var stringToBooleanConverter = {
669
+ fromAttribute(value) {
670
+ return value === "true";
671
+ },
672
+ toAttribute(value) {
673
+ return value ? "true" : "false";
674
+ }
675
+ };
676
+ var QtiAssessmentItemRef = class extends LitElement2 {
677
+ constructor() {
678
+ super(...arguments);
679
+ // @consume({ context: computedContext, subscribe: true })
680
+ // private computedContext: ComputedContext;
681
+ this.weigths = /* @__PURE__ */ new Map();
682
+ }
683
+ // the XMLDocument
684
+ createRenderRoot() {
685
+ return this;
686
+ }
687
+ get assessmentItem() {
688
+ return this.renderRoot?.querySelector("qti-assessment-item");
689
+ }
690
+ async connectedCallback() {
691
+ super.connectedCallback();
692
+ const templateElement = this.getRootNode().host.closest("qti-test").querySelector("template[item-ref]");
693
+ if (templateElement) this.myTemplate = prepareTemplate(templateElement);
694
+ await this.updateComplete;
695
+ this.dispatchEvent(
696
+ new CustomEvent("qti-assessment-item-ref-connected", {
697
+ bubbles: true,
698
+ composed: true,
699
+ detail: { identifier: this.identifier, href: this.href, category: this.category }
700
+ })
701
+ );
702
+ }
703
+ render() {
704
+ return this.myTemplate ? this.myTemplate({ xmlDoc: this.xmlDoc }) : this.xmlDoc;
705
+ }
706
+ };
707
+ __decorateClass([
708
+ property3({ type: String })
709
+ ], QtiAssessmentItemRef.prototype, "category", 2);
710
+ __decorateClass([
711
+ property3({ type: String })
712
+ ], QtiAssessmentItemRef.prototype, "identifier", 2);
713
+ __decorateClass([
714
+ property3({ type: Boolean, converter: stringToBooleanConverter })
715
+ ], QtiAssessmentItemRef.prototype, "required", 2);
716
+ __decorateClass([
717
+ property3({ type: Boolean, converter: stringToBooleanConverter })
718
+ ], QtiAssessmentItemRef.prototype, "fixed", 2);
719
+ __decorateClass([
720
+ property3({ type: String })
721
+ ], QtiAssessmentItemRef.prototype, "href", 2);
722
+ __decorateClass([
723
+ property3({ type: Object, attribute: false })
724
+ ], QtiAssessmentItemRef.prototype, "xmlDoc", 2);
725
+ if (!customElements.get("qti-assessment-item-ref")) {
726
+ customElements.define("qti-assessment-item-ref", QtiAssessmentItemRef);
727
+ }
728
+
729
+ // src/lib/qti-test/core/qti-assessment-test/qti-assessment-section.ts
730
+ import { consume } from "@lit/context";
731
+ import { html as html2, LitElement as LitElement3 } from "lit";
732
+ import { property as property4 } from "lit/decorators.js";
733
+ var stringToBooleanConverter2 = {
734
+ fromAttribute(value) {
735
+ return value === "true";
736
+ },
737
+ toAttribute(value) {
738
+ return value ? "true" : "false";
739
+ }
740
+ };
741
+ var QtiAssessmentSection = class extends LitElement3 {
742
+ async connectedCallback() {
743
+ super.connectedCallback();
744
+ await this.updateComplete;
745
+ this.dispatchEvent(
746
+ new Event("qti-assessment-section-connected", {
747
+ bubbles: true,
748
+ composed: true
749
+ })
750
+ );
751
+ }
752
+ render() {
753
+ return html2`<slot name="qti-rubric-block"></slot><slot></slot>`;
754
+ }
755
+ };
756
+ __decorateClass([
757
+ property4({ type: String })
758
+ ], QtiAssessmentSection.prototype, "identifier", 2);
759
+ __decorateClass([
760
+ property4({ type: String })
761
+ ], QtiAssessmentSection.prototype, "required", 2);
762
+ __decorateClass([
763
+ property4({ type: Boolean, converter: stringToBooleanConverter2 })
764
+ ], QtiAssessmentSection.prototype, "fixed", 2);
765
+ __decorateClass([
766
+ property4({ type: String })
767
+ ], QtiAssessmentSection.prototype, "title", 2);
768
+ __decorateClass([
769
+ property4({ type: Boolean, converter: stringToBooleanConverter2 })
770
+ ], QtiAssessmentSection.prototype, "visible", 2);
771
+ __decorateClass([
772
+ property4({ type: Boolean, converter: stringToBooleanConverter2, attribute: "keep-together" })
773
+ ], QtiAssessmentSection.prototype, "keepTogether", 2);
774
+ __decorateClass([
775
+ consume({ context: testContext, subscribe: true })
776
+ ], QtiAssessmentSection.prototype, "_testContext", 2);
777
+ if (!customElements.get("qti-assessment-section")) {
778
+ customElements.define("qti-assessment-section", QtiAssessmentSection);
779
+ }
780
+
781
+ // src/lib/qti-test/core/qti-assessment-test/qti-assessment-test.ts
782
+ import { consume as consume2 } from "@lit/context";
783
+ import { html as html3, LitElement as LitElement4 } from "lit";
784
+ import { customElement as customElement2, property as property5 } from "lit/decorators.js";
785
+ var QtiAssessmentTest = class extends LitElement4 {
786
+ async connectedCallback() {
787
+ super.connectedCallback();
788
+ await this.updateComplete;
789
+ this.dispatchEvent(
790
+ new CustomEvent("qti-assessment-test-connected", {
791
+ detail: this,
792
+ bubbles: true,
793
+ composed: true
794
+ })
795
+ );
796
+ }
797
+ render() {
798
+ return html3` <slot></slot>`;
799
+ }
800
+ };
801
+ __decorateClass([
802
+ property5({ type: String })
803
+ ], QtiAssessmentTest.prototype, "identifier", 2);
804
+ __decorateClass([
805
+ property5({ type: String })
806
+ ], QtiAssessmentTest.prototype, "title", 2);
807
+ __decorateClass([
808
+ consume2({ context: testContext, subscribe: true })
809
+ ], QtiAssessmentTest.prototype, "_testContext", 2);
810
+ QtiAssessmentTest = __decorateClass([
811
+ customElement2("qti-assessment-test")
812
+ ], QtiAssessmentTest);
813
+
814
+ // src/lib/qti-test/core/qti-assessment-test/qti-test-part.ts
815
+ import { html as html4, LitElement as LitElement5 } from "lit";
816
+ import { customElement as customElement3, property as property6 } from "lit/decorators.js";
817
+ var QtiTestPart = class extends LitElement5 {
818
+ constructor() {
819
+ super(...arguments);
820
+ this.identifier = "";
821
+ this.title = "";
822
+ this.class = "";
823
+ this.navigationMode = "nonlinear";
824
+ this.submissionMode = "individual";
825
+ }
826
+ async connectedCallback() {
827
+ super.connectedCallback();
828
+ await this.updateComplete;
829
+ this.dispatchEvent(
830
+ new Event("qti-test-part-connected", {
831
+ bubbles: true,
832
+ composed: true
833
+ })
834
+ );
835
+ }
836
+ render() {
837
+ return html4` <slot></slot>`;
838
+ }
839
+ };
840
+ __decorateClass([
841
+ property6({ type: String })
842
+ ], QtiTestPart.prototype, "identifier", 2);
843
+ __decorateClass([
844
+ property6({ type: String })
845
+ ], QtiTestPart.prototype, "title", 2);
846
+ __decorateClass([
847
+ property6({ type: String })
848
+ ], QtiTestPart.prototype, "class", 2);
849
+ __decorateClass([
850
+ property6({ type: String, attribute: "navigation-mode" })
851
+ ], QtiTestPart.prototype, "navigationMode", 2);
852
+ __decorateClass([
853
+ property6({ type: String, attribute: "submission-mode" })
854
+ ], QtiTestPart.prototype, "submissionMode", 2);
855
+ QtiTestPart = __decorateClass([
856
+ customElement3("qti-test-part")
857
+ ], QtiTestPart);
858
+ if (!customElements.get("qti-test-part")) {
859
+ customElements.define("qti-test-part", QtiTestPart);
860
+ }
861
+
862
+ // src/lib/qti-test/core/qti-assessment-test/qti-test-feedback.ts
863
+ import { customElement as customElement4 } from "lit/decorators.js";
864
+ import { css, html as html5 } from "lit";
865
+ var QtiTestFeedback = class extends QtiModalFeedback {
866
+ render() {
867
+ return html5``;
868
+ }
869
+ };
870
+ QtiTestFeedback.styles = css`
871
+ :host {
872
+ color: gray;
873
+ }
874
+ `;
875
+ QtiTestFeedback = __decorateClass([
876
+ customElement4("qti-test-feedback")
877
+ ], QtiTestFeedback);
878
+
879
+ export {
880
+ QtiTest,
881
+ QtiAssessmentItemRef,
882
+ QtiAssessmentSection,
883
+ QtiAssessmentTest,
884
+ QtiTestPart,
885
+ QtiTestFeedback
886
+ };
887
+ //# sourceMappingURL=chunk-7OYG6HQK.js.map