@digabi/exam-engine-core 23.0.4 → 23.0.5-alpha.1

Sign up to get free protection for your applications and to get access to all the features.
Files changed (651) hide show
  1. package/dist/main-bundle.js +3 -3
  2. package/package.json +3 -3
  3. package/dist/components/exam/ExamineExam.d.ts +0 -5
  4. package/dist/components/exam/ExamineExam.d.ts.map +0 -1
  5. package/dist/components/exam/ExamineExam.js +0 -20
  6. package/dist/components/exam/ExamineExam.js.map +0 -1
  7. package/dist/src/components/AnswerToolbar.d.ts +0 -18
  8. package/dist/src/components/AnswerToolbar.d.ts.map +0 -1
  9. package/dist/src/components/AnswerToolbar.js +0 -36
  10. package/dist/src/components/AnswerToolbar.js.map +0 -1
  11. package/dist/src/components/AnsweringInstructions.d.ts +0 -12
  12. package/dist/src/components/AnsweringInstructions.d.ts.map +0 -1
  13. package/dist/src/components/AnsweringInstructions.js +0 -24
  14. package/dist/src/components/AnsweringInstructions.js.map +0 -1
  15. package/dist/src/components/DocumentTitle.d.ts +0 -5
  16. package/dist/src/components/DocumentTitle.d.ts.map +0 -1
  17. package/dist/src/components/DocumentTitle.js +0 -13
  18. package/dist/src/components/DocumentTitle.js.map +0 -1
  19. package/dist/src/components/NotificationIcon.d.ts +0 -4
  20. package/dist/src/components/NotificationIcon.d.ts.map +0 -1
  21. package/dist/src/components/NotificationIcon.js +0 -6
  22. package/dist/src/components/NotificationIcon.js.map +0 -1
  23. package/dist/src/components/RenderChildNodes.d.ts +0 -5
  24. package/dist/src/components/RenderChildNodes.d.ts.map +0 -1
  25. package/dist/src/components/RenderChildNodes.js +0 -7
  26. package/dist/src/components/RenderChildNodes.js.map +0 -1
  27. package/dist/src/components/RenderExamElements.d.ts +0 -6
  28. package/dist/src/components/RenderExamElements.d.ts.map +0 -1
  29. package/dist/src/components/RenderExamElements.js +0 -6
  30. package/dist/src/components/RenderExamElements.js.map +0 -1
  31. package/dist/src/components/RenderIf.d.ts +0 -4
  32. package/dist/src/components/RenderIf.d.ts.map +0 -1
  33. package/dist/src/components/RenderIf.js +0 -8
  34. package/dist/src/components/RenderIf.js.map +0 -1
  35. package/dist/src/components/ScreenReaderOnly.d.ts +0 -5
  36. package/dist/src/components/ScreenReaderOnly.d.ts.map +0 -1
  37. package/dist/src/components/ScreenReaderOnly.js +0 -3
  38. package/dist/src/components/ScreenReaderOnly.js.map +0 -1
  39. package/dist/src/components/SectionElement.d.ts +0 -4
  40. package/dist/src/components/SectionElement.d.ts.map +0 -1
  41. package/dist/src/components/SectionElement.js +0 -8
  42. package/dist/src/components/SectionElement.js.map +0 -1
  43. package/dist/src/components/attachments/Attachment.d.ts +0 -4
  44. package/dist/src/components/attachments/Attachment.d.ts.map +0 -1
  45. package/dist/src/components/attachments/Attachment.js +0 -8
  46. package/dist/src/components/attachments/Attachment.js.map +0 -1
  47. package/dist/src/components/attachments/AttachmentTitle.d.ts +0 -6
  48. package/dist/src/components/attachments/AttachmentTitle.d.ts.map +0 -1
  49. package/dist/src/components/attachments/AttachmentTitle.js +0 -12
  50. package/dist/src/components/attachments/AttachmentTitle.js.map +0 -1
  51. package/dist/src/components/attachments/Attachments.d.ts +0 -5
  52. package/dist/src/components/attachments/Attachments.d.ts.map +0 -1
  53. package/dist/src/components/attachments/Attachments.js +0 -55
  54. package/dist/src/components/attachments/Attachments.js.map +0 -1
  55. package/dist/src/components/attachments/ExternalMaterial.d.ts +0 -9
  56. package/dist/src/components/attachments/ExternalMaterial.d.ts.map +0 -1
  57. package/dist/src/components/attachments/ExternalMaterial.js +0 -46
  58. package/dist/src/components/attachments/ExternalMaterial.js.map +0 -1
  59. package/dist/src/components/attachments/Question.d.ts +0 -4
  60. package/dist/src/components/attachments/Question.d.ts.map +0 -1
  61. package/dist/src/components/attachments/Question.js +0 -16
  62. package/dist/src/components/attachments/Question.js.map +0 -1
  63. package/dist/src/components/attachments/QuestionTitle.d.ts +0 -6
  64. package/dist/src/components/attachments/QuestionTitle.d.ts.map +0 -1
  65. package/dist/src/components/attachments/QuestionTitle.js +0 -15
  66. package/dist/src/components/attachments/QuestionTitle.js.map +0 -1
  67. package/dist/src/components/context/AnnotationProvider.d.ts +0 -16
  68. package/dist/src/components/context/AnnotationProvider.d.ts.map +0 -1
  69. package/dist/src/components/context/AnnotationProvider.js +0 -35
  70. package/dist/src/components/context/AnnotationProvider.js.map +0 -1
  71. package/dist/src/components/context/AttachmentContext.d.ts +0 -13
  72. package/dist/src/components/context/AttachmentContext.d.ts.map +0 -1
  73. package/dist/src/components/context/AttachmentContext.js +0 -12
  74. package/dist/src/components/context/AttachmentContext.js.map +0 -1
  75. package/dist/src/components/context/CommonExamContext.d.ts +0 -22
  76. package/dist/src/components/context/CommonExamContext.d.ts.map +0 -1
  77. package/dist/src/components/context/CommonExamContext.js +0 -28
  78. package/dist/src/components/context/CommonExamContext.js.map +0 -1
  79. package/dist/src/components/context/ExamContext.d.ts +0 -9
  80. package/dist/src/components/context/ExamContext.d.ts.map +0 -1
  81. package/dist/src/components/context/ExamContext.js +0 -11
  82. package/dist/src/components/context/ExamContext.js.map +0 -1
  83. package/dist/src/components/context/IsInSidebarContext.d.ts +0 -6
  84. package/dist/src/components/context/IsInSidebarContext.d.ts.map +0 -1
  85. package/dist/src/components/context/IsInSidebarContext.js +0 -3
  86. package/dist/src/components/context/IsInSidebarContext.js.map +0 -1
  87. package/dist/src/components/context/QuestionContext.d.ts +0 -14
  88. package/dist/src/components/context/QuestionContext.d.ts.map +0 -1
  89. package/dist/src/components/context/QuestionContext.js +0 -27
  90. package/dist/src/components/context/QuestionContext.js.map +0 -1
  91. package/dist/src/components/context/ResultsContext.d.ts +0 -17
  92. package/dist/src/components/context/ResultsContext.d.ts.map +0 -1
  93. package/dist/src/components/context/ResultsContext.js +0 -69
  94. package/dist/src/components/context/ResultsContext.js.map +0 -1
  95. package/dist/src/components/context/SectionContext.d.ts +0 -12
  96. package/dist/src/components/context/SectionContext.d.ts.map +0 -1
  97. package/dist/src/components/context/SectionContext.js +0 -21
  98. package/dist/src/components/context/SectionContext.js.map +0 -1
  99. package/dist/src/components/context/TOCContext.d.ts +0 -7
  100. package/dist/src/components/context/TOCContext.d.ts.map +0 -1
  101. package/dist/src/components/context/TOCContext.js +0 -3
  102. package/dist/src/components/context/TOCContext.js.map +0 -1
  103. package/dist/src/components/context/withContext.d.ts +0 -3
  104. package/dist/src/components/context/withContext.d.ts.map +0 -1
  105. package/dist/src/components/context/withContext.js +0 -12
  106. package/dist/src/components/context/withContext.js.map +0 -1
  107. package/dist/src/components/exam/Attachment.d.ts +0 -4
  108. package/dist/src/components/exam/Attachment.d.ts.map +0 -1
  109. package/dist/src/components/exam/Attachment.js +0 -8
  110. package/dist/src/components/exam/Attachment.js.map +0 -1
  111. package/dist/src/components/exam/ChoiceAnswer.d.ts +0 -5
  112. package/dist/src/components/exam/ChoiceAnswer.d.ts.map +0 -1
  113. package/dist/src/components/exam/ChoiceAnswer.js +0 -53
  114. package/dist/src/components/exam/ChoiceAnswer.js.map +0 -1
  115. package/dist/src/components/exam/DropdownAnswer.d.ts +0 -5
  116. package/dist/src/components/exam/DropdownAnswer.d.ts.map +0 -1
  117. package/dist/src/components/exam/DropdownAnswer.js +0 -101
  118. package/dist/src/components/exam/DropdownAnswer.js.map +0 -1
  119. package/dist/src/components/exam/Exam.d.ts +0 -48
  120. package/dist/src/components/exam/Exam.d.ts.map +0 -1
  121. package/dist/src/components/exam/Exam.js +0 -195
  122. package/dist/src/components/exam/Exam.js.map +0 -1
  123. package/dist/src/components/exam/ExamFooter.d.ts +0 -6
  124. package/dist/src/components/exam/ExamFooter.d.ts.map +0 -1
  125. package/dist/src/components/exam/ExamFooter.js +0 -6
  126. package/dist/src/components/exam/ExamFooter.js.map +0 -1
  127. package/dist/src/components/exam/ExamInstruction.d.ts +0 -6
  128. package/dist/src/components/exam/ExamInstruction.d.ts.map +0 -1
  129. package/dist/src/components/exam/ExamInstruction.js +0 -6
  130. package/dist/src/components/exam/ExamInstruction.js.map +0 -1
  131. package/dist/src/components/exam/ExternalMaterial.d.ts +0 -10
  132. package/dist/src/components/exam/ExternalMaterial.d.ts.map +0 -1
  133. package/dist/src/components/exam/ExternalMaterial.js +0 -33
  134. package/dist/src/components/exam/ExternalMaterial.js.map +0 -1
  135. package/dist/src/components/exam/GoToExamineAnswersButton.d.ts +0 -5
  136. package/dist/src/components/exam/GoToExamineAnswersButton.d.ts.map +0 -1
  137. package/dist/src/components/exam/GoToExamineAnswersButton.js +0 -18
  138. package/dist/src/components/exam/GoToExamineAnswersButton.js.map +0 -1
  139. package/dist/src/components/exam/Hints.d.ts +0 -5
  140. package/dist/src/components/exam/Hints.d.ts.map +0 -1
  141. package/dist/src/components/exam/Hints.js +0 -31
  142. package/dist/src/components/exam/Hints.js.map +0 -1
  143. package/dist/src/components/exam/Question.d.ts +0 -8
  144. package/dist/src/components/exam/Question.d.ts.map +0 -1
  145. package/dist/src/components/exam/Question.js +0 -75
  146. package/dist/src/components/exam/Question.js.map +0 -1
  147. package/dist/src/components/exam/QuestionInstruction.d.ts +0 -6
  148. package/dist/src/components/exam/QuestionInstruction.d.ts.map +0 -1
  149. package/dist/src/components/exam/QuestionInstruction.js +0 -8
  150. package/dist/src/components/exam/QuestionInstruction.js.map +0 -1
  151. package/dist/src/components/exam/QuestionTitle.d.ts +0 -5
  152. package/dist/src/components/exam/QuestionTitle.d.ts.map +0 -1
  153. package/dist/src/components/exam/QuestionTitle.js +0 -26
  154. package/dist/src/components/exam/QuestionTitle.js.map +0 -1
  155. package/dist/src/components/exam/RichTextAnswer.d.ts +0 -41
  156. package/dist/src/components/exam/RichTextAnswer.d.ts.map +0 -1
  157. package/dist/src/components/exam/RichTextAnswer.js +0 -79
  158. package/dist/src/components/exam/RichTextAnswer.js.map +0 -1
  159. package/dist/src/components/exam/Section.d.ts +0 -4
  160. package/dist/src/components/exam/Section.d.ts.map +0 -1
  161. package/dist/src/components/exam/Section.js +0 -49
  162. package/dist/src/components/exam/Section.js.map +0 -1
  163. package/dist/src/components/exam/SectionInstruction.d.ts +0 -6
  164. package/dist/src/components/exam/SectionInstruction.d.ts.map +0 -1
  165. package/dist/src/components/exam/SectionInstruction.js +0 -6
  166. package/dist/src/components/exam/SectionInstruction.js.map +0 -1
  167. package/dist/src/components/exam/SectionTitle.d.ts +0 -6
  168. package/dist/src/components/exam/SectionTitle.d.ts.map +0 -1
  169. package/dist/src/components/exam/SectionTitle.js +0 -30
  170. package/dist/src/components/exam/SectionTitle.js.map +0 -1
  171. package/dist/src/components/exam/StudentNameHeader.d.ts +0 -8
  172. package/dist/src/components/exam/StudentNameHeader.d.ts.map +0 -1
  173. package/dist/src/components/exam/StudentNameHeader.js +0 -3
  174. package/dist/src/components/exam/StudentNameHeader.js.map +0 -1
  175. package/dist/src/components/exam/TextAnswer.d.ts +0 -6
  176. package/dist/src/components/exam/TextAnswer.d.ts.map +0 -1
  177. package/dist/src/components/exam/TextAnswer.js +0 -20
  178. package/dist/src/components/exam/TextAnswer.js.map +0 -1
  179. package/dist/src/components/exam/UndoHistoryEntry.d.ts +0 -19
  180. package/dist/src/components/exam/UndoHistoryEntry.d.ts.map +0 -1
  181. package/dist/src/components/exam/UndoHistoryEntry.js +0 -39
  182. package/dist/src/components/exam/UndoHistoryEntry.js.map +0 -1
  183. package/dist/src/components/exam/UndoView.d.ts +0 -35
  184. package/dist/src/components/exam/UndoView.d.ts.map +0 -1
  185. package/dist/src/components/exam/UndoView.js +0 -162
  186. package/dist/src/components/exam/UndoView.js.map +0 -1
  187. package/dist/src/components/exam/internal/ErrorIndicator.d.ts +0 -9
  188. package/dist/src/components/exam/internal/ErrorIndicator.d.ts.map +0 -1
  189. package/dist/src/components/exam/internal/ErrorIndicator.js +0 -63
  190. package/dist/src/components/exam/internal/ErrorIndicator.js.map +0 -1
  191. package/dist/src/components/exam/internal/ProgressBar.d.ts +0 -8
  192. package/dist/src/components/exam/internal/ProgressBar.d.ts.map +0 -1
  193. package/dist/src/components/exam/internal/ProgressBar.js +0 -19
  194. package/dist/src/components/exam/internal/ProgressBar.js.map +0 -1
  195. package/dist/src/components/exam/internal/SaveIndicator.d.ts +0 -5
  196. package/dist/src/components/exam/internal/SaveIndicator.d.ts.map +0 -1
  197. package/dist/src/components/exam/internal/SaveIndicator.js +0 -16
  198. package/dist/src/components/exam/internal/SaveIndicator.js.map +0 -1
  199. package/dist/src/components/exam/internal/TextAnswerInput.d.ts +0 -6
  200. package/dist/src/components/exam/internal/TextAnswerInput.d.ts.map +0 -1
  201. package/dist/src/components/exam/internal/TextAnswerInput.js +0 -128
  202. package/dist/src/components/exam/internal/TextAnswerInput.js.map +0 -1
  203. package/dist/src/components/grading/AnswerCharacterCounter.d.ts +0 -6
  204. package/dist/src/components/grading/AnswerCharacterCounter.d.ts.map +0 -1
  205. package/dist/src/components/grading/AnswerCharacterCounter.js +0 -21
  206. package/dist/src/components/grading/AnswerCharacterCounter.js.map +0 -1
  207. package/dist/src/components/grading/GradingAnswer.d.ts +0 -24
  208. package/dist/src/components/grading/GradingAnswer.d.ts.map +0 -1
  209. package/dist/src/components/grading/GradingAnswer.js +0 -306
  210. package/dist/src/components/grading/GradingAnswer.js.map +0 -1
  211. package/dist/src/components/grading/GradingAnswerAnnotationList.d.ts +0 -9
  212. package/dist/src/components/grading/GradingAnswerAnnotationList.d.ts.map +0 -1
  213. package/dist/src/components/grading/GradingAnswerAnnotationList.js +0 -19
  214. package/dist/src/components/grading/GradingAnswerAnnotationList.js.map +0 -1
  215. package/dist/src/components/grading/editAnnotations.d.ts +0 -29
  216. package/dist/src/components/grading/editAnnotations.d.ts.map +0 -1
  217. package/dist/src/components/grading/editAnnotations.js +0 -190
  218. package/dist/src/components/grading/editAnnotations.js.map +0 -1
  219. package/dist/src/components/grading/examAnnotationUtils.d.ts +0 -3
  220. package/dist/src/components/grading/examAnnotationUtils.d.ts.map +0 -1
  221. package/dist/src/components/grading/examAnnotationUtils.js +0 -44
  222. package/dist/src/components/grading/examAnnotationUtils.js.map +0 -1
  223. package/dist/src/components/grading/largeImageDetector.d.ts +0 -3
  224. package/dist/src/components/grading/largeImageDetector.d.ts.map +0 -1
  225. package/dist/src/components/grading/largeImageDetector.js +0 -45
  226. package/dist/src/components/grading/largeImageDetector.js.map +0 -1
  227. package/dist/src/components/grading-instructions/AnswerGradingInstruction.d.ts +0 -5
  228. package/dist/src/components/grading-instructions/AnswerGradingInstruction.d.ts.map +0 -1
  229. package/dist/src/components/grading-instructions/AnswerGradingInstruction.js +0 -4
  230. package/dist/src/components/grading-instructions/AnswerGradingInstruction.js.map +0 -1
  231. package/dist/src/components/grading-instructions/AutogradedAnswer.d.ts +0 -5
  232. package/dist/src/components/grading-instructions/AutogradedAnswer.d.ts.map +0 -1
  233. package/dist/src/components/grading-instructions/AutogradedAnswer.js +0 -34
  234. package/dist/src/components/grading-instructions/AutogradedAnswer.js.map +0 -1
  235. package/dist/src/components/grading-instructions/AutogradedAnswerOption.d.ts +0 -5
  236. package/dist/src/components/grading-instructions/AutogradedAnswerOption.d.ts.map +0 -1
  237. package/dist/src/components/grading-instructions/AutogradedAnswerOption.js +0 -17
  238. package/dist/src/components/grading-instructions/AutogradedAnswerOption.js.map +0 -1
  239. package/dist/src/components/grading-instructions/ExamGradingInstruction.d.ts +0 -5
  240. package/dist/src/components/grading-instructions/ExamGradingInstruction.d.ts.map +0 -1
  241. package/dist/src/components/grading-instructions/ExamGradingInstruction.js +0 -4
  242. package/dist/src/components/grading-instructions/ExamGradingInstruction.js.map +0 -1
  243. package/dist/src/components/grading-instructions/GradingInstructions.d.ts +0 -6
  244. package/dist/src/components/grading-instructions/GradingInstructions.d.ts.map +0 -1
  245. package/dist/src/components/grading-instructions/GradingInstructions.js +0 -109
  246. package/dist/src/components/grading-instructions/GradingInstructions.js.map +0 -1
  247. package/dist/src/components/grading-instructions/Question.d.ts +0 -4
  248. package/dist/src/components/grading-instructions/Question.d.ts.map +0 -1
  249. package/dist/src/components/grading-instructions/Question.js +0 -14
  250. package/dist/src/components/grading-instructions/Question.js.map +0 -1
  251. package/dist/src/components/grading-instructions/QuestionTitle.d.ts +0 -5
  252. package/dist/src/components/grading-instructions/QuestionTitle.d.ts.map +0 -1
  253. package/dist/src/components/grading-instructions/QuestionTitle.js +0 -19
  254. package/dist/src/components/grading-instructions/QuestionTitle.js.map +0 -1
  255. package/dist/src/components/grading-instructions/Recording.d.ts +0 -5
  256. package/dist/src/components/grading-instructions/Recording.d.ts.map +0 -1
  257. package/dist/src/components/grading-instructions/Recording.js +0 -19
  258. package/dist/src/components/grading-instructions/Recording.js.map +0 -1
  259. package/dist/src/components/grading-instructions/Section.d.ts +0 -4
  260. package/dist/src/components/grading-instructions/Section.d.ts.map +0 -1
  261. package/dist/src/components/grading-instructions/Section.js +0 -10
  262. package/dist/src/components/grading-instructions/Section.js.map +0 -1
  263. package/dist/src/components/grading-instructions/SectionTitle.d.ts +0 -5
  264. package/dist/src/components/grading-instructions/SectionTitle.d.ts.map +0 -1
  265. package/dist/src/components/grading-instructions/SectionTitle.js +0 -16
  266. package/dist/src/components/grading-instructions/SectionTitle.js.map +0 -1
  267. package/dist/src/components/results/ChoiceAnswer.d.ts +0 -6
  268. package/dist/src/components/results/ChoiceAnswer.d.ts.map +0 -1
  269. package/dist/src/components/results/ChoiceAnswer.js +0 -57
  270. package/dist/src/components/results/ChoiceAnswer.js.map +0 -1
  271. package/dist/src/components/results/DropdownAnswer.d.ts +0 -6
  272. package/dist/src/components/results/DropdownAnswer.d.ts.map +0 -1
  273. package/dist/src/components/results/DropdownAnswer.js +0 -43
  274. package/dist/src/components/results/DropdownAnswer.js.map +0 -1
  275. package/dist/src/components/results/EndExamSession.d.ts +0 -8
  276. package/dist/src/components/results/EndExamSession.d.ts.map +0 -1
  277. package/dist/src/components/results/EndExamSession.js +0 -20
  278. package/dist/src/components/results/EndExamSession.js.map +0 -1
  279. package/dist/src/components/results/MultiLineAnswer.d.ts +0 -8
  280. package/dist/src/components/results/MultiLineAnswer.d.ts.map +0 -1
  281. package/dist/src/components/results/MultiLineAnswer.js +0 -22
  282. package/dist/src/components/results/MultiLineAnswer.js.map +0 -1
  283. package/dist/src/components/results/Question.d.ts +0 -4
  284. package/dist/src/components/results/Question.d.ts.map +0 -1
  285. package/dist/src/components/results/Question.js +0 -31
  286. package/dist/src/components/results/Question.js.map +0 -1
  287. package/dist/src/components/results/QuestionTitle.d.ts +0 -6
  288. package/dist/src/components/results/QuestionTitle.d.ts.map +0 -1
  289. package/dist/src/components/results/QuestionTitle.js +0 -26
  290. package/dist/src/components/results/QuestionTitle.js.map +0 -1
  291. package/dist/src/components/results/Results.d.ts +0 -19
  292. package/dist/src/components/results/Results.d.ts.map +0 -1
  293. package/dist/src/components/results/Results.js +0 -136
  294. package/dist/src/components/results/Results.js.map +0 -1
  295. package/dist/src/components/results/ScoredTextAnswer.d.ts +0 -6
  296. package/dist/src/components/results/ScoredTextAnswer.d.ts.map +0 -1
  297. package/dist/src/components/results/ScoredTextAnswer.js +0 -22
  298. package/dist/src/components/results/ScoredTextAnswer.js.map +0 -1
  299. package/dist/src/components/results/Section.d.ts +0 -4
  300. package/dist/src/components/results/Section.d.ts.map +0 -1
  301. package/dist/src/components/results/Section.js +0 -11
  302. package/dist/src/components/results/Section.js.map +0 -1
  303. package/dist/src/components/results/SingleLineAnswer.d.ts +0 -12
  304. package/dist/src/components/results/SingleLineAnswer.d.ts.map +0 -1
  305. package/dist/src/components/results/SingleLineAnswer.js +0 -26
  306. package/dist/src/components/results/SingleLineAnswer.js.map +0 -1
  307. package/dist/src/components/results/TextAnswer.d.ts +0 -7
  308. package/dist/src/components/results/TextAnswer.d.ts.map +0 -1
  309. package/dist/src/components/results/TextAnswer.js +0 -48
  310. package/dist/src/components/results/TextAnswer.js.map +0 -1
  311. package/dist/src/components/results/internal/AnnotationList.d.ts +0 -5
  312. package/dist/src/components/results/internal/AnnotationList.d.ts.map +0 -1
  313. package/dist/src/components/results/internal/AnnotationList.js +0 -32
  314. package/dist/src/components/results/internal/AnnotationList.js.map +0 -1
  315. package/dist/src/components/results/internal/QuestionAutoScore.d.ts +0 -11
  316. package/dist/src/components/results/internal/QuestionAutoScore.d.ts.map +0 -1
  317. package/dist/src/components/results/internal/QuestionAutoScore.js +0 -17
  318. package/dist/src/components/results/internal/QuestionAutoScore.js.map +0 -1
  319. package/dist/src/components/results/internal/QuestionManualScore.d.ts +0 -13
  320. package/dist/src/components/results/internal/QuestionManualScore.d.ts.map +0 -1
  321. package/dist/src/components/results/internal/QuestionManualScore.js +0 -66
  322. package/dist/src/components/results/internal/QuestionManualScore.js.map +0 -1
  323. package/dist/src/components/results/internal/QuestionScoresContainer.d.ts +0 -11
  324. package/dist/src/components/results/internal/QuestionScoresContainer.d.ts.map +0 -1
  325. package/dist/src/components/results/internal/QuestionScoresContainer.js +0 -27
  326. package/dist/src/components/results/internal/QuestionScoresContainer.js.map +0 -1
  327. package/dist/src/components/results/isExamineExamPageHook.d.ts +0 -2
  328. package/dist/src/components/results/isExamineExamPageHook.d.ts.map +0 -1
  329. package/dist/src/components/results/isExamineExamPageHook.js +0 -7
  330. package/dist/src/components/results/isExamineExamPageHook.js.map +0 -1
  331. package/dist/src/components/shared/AnnotatableText.d.ts +0 -5
  332. package/dist/src/components/shared/AnnotatableText.d.ts.map +0 -1
  333. package/dist/src/components/shared/AnnotatableText.js +0 -73
  334. package/dist/src/components/shared/AnnotatableText.js.map +0 -1
  335. package/dist/src/components/shared/AnnotationLists.d.ts +0 -13
  336. package/dist/src/components/shared/AnnotationLists.d.ts.map +0 -1
  337. package/dist/src/components/shared/AnnotationLists.js +0 -17
  338. package/dist/src/components/shared/AnnotationLists.js.map +0 -1
  339. package/dist/src/components/shared/AnnotationPopup.d.ts +0 -3
  340. package/dist/src/components/shared/AnnotationPopup.d.ts.map +0 -1
  341. package/dist/src/components/shared/AnnotationPopup.js +0 -74
  342. package/dist/src/components/shared/AnnotationPopup.js.map +0 -1
  343. package/dist/src/components/shared/AnswerIndicator.d.ts +0 -12
  344. package/dist/src/components/shared/AnswerIndicator.d.ts.map +0 -1
  345. package/dist/src/components/shared/AnswerIndicator.js +0 -27
  346. package/dist/src/components/shared/AnswerIndicator.js.map +0 -1
  347. package/dist/src/components/shared/AnswerLengthInfo.d.ts +0 -7
  348. package/dist/src/components/shared/AnswerLengthInfo.d.ts.map +0 -1
  349. package/dist/src/components/shared/AnswerLengthInfo.js +0 -11
  350. package/dist/src/components/shared/AnswerLengthInfo.js.map +0 -1
  351. package/dist/src/components/shared/AttachmentLink.d.ts +0 -5
  352. package/dist/src/components/shared/AttachmentLink.d.ts.map +0 -1
  353. package/dist/src/components/shared/AttachmentLink.js +0 -28
  354. package/dist/src/components/shared/AttachmentLink.js.map +0 -1
  355. package/dist/src/components/shared/AttachmentLinks.d.ts +0 -5
  356. package/dist/src/components/shared/AttachmentLinks.d.ts.map +0 -1
  357. package/dist/src/components/shared/AttachmentLinks.js +0 -58
  358. package/dist/src/components/shared/AttachmentLinks.js.map +0 -1
  359. package/dist/src/components/shared/Audio.d.ts +0 -6
  360. package/dist/src/components/shared/Audio.d.ts.map +0 -1
  361. package/dist/src/components/shared/Audio.js +0 -31
  362. package/dist/src/components/shared/Audio.js.map +0 -1
  363. package/dist/src/components/shared/AudioGroup.d.ts +0 -6
  364. package/dist/src/components/shared/AudioGroup.d.ts.map +0 -1
  365. package/dist/src/components/shared/AudioGroup.js +0 -9
  366. package/dist/src/components/shared/AudioGroup.js.map +0 -1
  367. package/dist/src/components/shared/AudioTest.d.ts +0 -6
  368. package/dist/src/components/shared/AudioTest.d.ts.map +0 -1
  369. package/dist/src/components/shared/AudioTest.js +0 -34
  370. package/dist/src/components/shared/AudioTest.js.map +0 -1
  371. package/dist/src/components/shared/ExamTranslation.d.ts +0 -6
  372. package/dist/src/components/shared/ExamTranslation.d.ts.map +0 -1
  373. package/dist/src/components/shared/ExamTranslation.js +0 -9
  374. package/dist/src/components/shared/ExamTranslation.js.map +0 -1
  375. package/dist/src/components/shared/File.d.ts +0 -6
  376. package/dist/src/components/shared/File.d.ts.map +0 -1
  377. package/dist/src/components/shared/File.js +0 -15
  378. package/dist/src/components/shared/File.js.map +0 -1
  379. package/dist/src/components/shared/Footer.d.ts +0 -5
  380. package/dist/src/components/shared/Footer.d.ts.map +0 -1
  381. package/dist/src/components/shared/Footer.js +0 -3
  382. package/dist/src/components/shared/Footer.js.map +0 -1
  383. package/dist/src/components/shared/Formula.d.ts +0 -6
  384. package/dist/src/components/shared/Formula.d.ts.map +0 -1
  385. package/dist/src/components/shared/Formula.js +0 -13
  386. package/dist/src/components/shared/Formula.js.map +0 -1
  387. package/dist/src/components/shared/Image.d.ts +0 -6
  388. package/dist/src/components/shared/Image.d.ts.map +0 -1
  389. package/dist/src/components/shared/Image.js +0 -30
  390. package/dist/src/components/shared/Image.js.map +0 -1
  391. package/dist/src/components/shared/ImageOverlay.d.ts +0 -6
  392. package/dist/src/components/shared/ImageOverlay.d.ts.map +0 -1
  393. package/dist/src/components/shared/ImageOverlay.js +0 -43
  394. package/dist/src/components/shared/ImageOverlay.js.map +0 -1
  395. package/dist/src/components/shared/QuestionNumber.d.ts +0 -4
  396. package/dist/src/components/shared/QuestionNumber.d.ts.map +0 -1
  397. package/dist/src/components/shared/QuestionNumber.js +0 -12
  398. package/dist/src/components/shared/QuestionNumber.js.map +0 -1
  399. package/dist/src/components/shared/Reference.d.ts +0 -6
  400. package/dist/src/components/shared/Reference.d.ts.map +0 -1
  401. package/dist/src/components/shared/Reference.js +0 -72
  402. package/dist/src/components/shared/Reference.js.map +0 -1
  403. package/dist/src/components/shared/References.d.ts +0 -6
  404. package/dist/src/components/shared/References.d.ts.map +0 -1
  405. package/dist/src/components/shared/References.js +0 -26
  406. package/dist/src/components/shared/References.js.map +0 -1
  407. package/dist/src/components/shared/Score.d.ts +0 -8
  408. package/dist/src/components/shared/Score.d.ts.map +0 -1
  409. package/dist/src/components/shared/Score.js +0 -13
  410. package/dist/src/components/shared/Score.js.map +0 -1
  411. package/dist/src/components/shared/TOCQuestion.d.ts +0 -4
  412. package/dist/src/components/shared/TOCQuestion.d.ts.map +0 -1
  413. package/dist/src/components/shared/TOCQuestion.js +0 -77
  414. package/dist/src/components/shared/TOCQuestion.js.map +0 -1
  415. package/dist/src/components/shared/TOCSection.d.ts +0 -7
  416. package/dist/src/components/shared/TOCSection.d.ts.map +0 -1
  417. package/dist/src/components/shared/TOCSection.js +0 -15
  418. package/dist/src/components/shared/TOCSection.js.map +0 -1
  419. package/dist/src/components/shared/TOCSectionTitle.d.ts +0 -4
  420. package/dist/src/components/shared/TOCSectionTitle.d.ts.map +0 -1
  421. package/dist/src/components/shared/TOCSectionTitle.js +0 -34
  422. package/dist/src/components/shared/TOCSectionTitle.js.map +0 -1
  423. package/dist/src/components/shared/TableOfContents.d.ts +0 -8
  424. package/dist/src/components/shared/TableOfContents.d.ts.map +0 -1
  425. package/dist/src/components/shared/TableOfContents.js +0 -61
  426. package/dist/src/components/shared/TableOfContents.js.map +0 -1
  427. package/dist/src/components/shared/VersionNumber.d.ts +0 -3
  428. package/dist/src/components/shared/VersionNumber.d.ts.map +0 -1
  429. package/dist/src/components/shared/VersionNumber.js +0 -10
  430. package/dist/src/components/shared/VersionNumber.js.map +0 -1
  431. package/dist/src/components/shared/Video.d.ts +0 -6
  432. package/dist/src/components/shared/Video.d.ts.map +0 -1
  433. package/dist/src/components/shared/Video.js +0 -22
  434. package/dist/src/components/shared/Video.js.map +0 -1
  435. package/dist/src/components/shared/internal/AttachmentLinkAnchor.d.ts +0 -8
  436. package/dist/src/components/shared/internal/AttachmentLinkAnchor.d.ts.map +0 -1
  437. package/dist/src/components/shared/internal/AttachmentLinkAnchor.js +0 -4
  438. package/dist/src/components/shared/internal/AttachmentLinkAnchor.js.map +0 -1
  439. package/dist/src/components/shared/internal/AudioPlaybackError.d.ts +0 -8
  440. package/dist/src/components/shared/internal/AudioPlaybackError.d.ts.map +0 -1
  441. package/dist/src/components/shared/internal/AudioPlaybackError.js +0 -17
  442. package/dist/src/components/shared/internal/AudioPlaybackError.js.map +0 -1
  443. package/dist/src/components/shared/internal/ResponsiveMediaContainer.d.ts +0 -18
  444. package/dist/src/components/shared/internal/ResponsiveMediaContainer.d.ts.map +0 -1
  445. package/dist/src/components/shared/internal/ResponsiveMediaContainer.js +0 -21
  446. package/dist/src/components/shared/internal/ResponsiveMediaContainer.js.map +0 -1
  447. package/dist/src/components/shared/internal/RestrictedAudioPlayer.d.ts +0 -12
  448. package/dist/src/components/shared/internal/RestrictedAudioPlayer.d.ts.map +0 -1
  449. package/dist/src/components/shared/internal/RestrictedAudioPlayer.js +0 -46
  450. package/dist/src/components/shared/internal/RestrictedAudioPlayer.js.map +0 -1
  451. package/dist/src/components/surround.d.ts +0 -8
  452. package/dist/src/components/surround.d.ts.map +0 -1
  453. package/dist/src/components/surround.js +0 -19
  454. package/dist/src/components/surround.js.map +0 -1
  455. package/dist/src/createRenderChildNodes.d.ts +0 -17
  456. package/dist/src/createRenderChildNodes.d.ts.map +0 -1
  457. package/dist/src/createRenderChildNodes.js +0 -64
  458. package/dist/src/createRenderChildNodes.js.map +0 -1
  459. package/dist/src/dom-utils.d.ts +0 -20
  460. package/dist/src/dom-utils.d.ts.map +0 -1
  461. package/dist/src/dom-utils.js +0 -164
  462. package/dist/src/dom-utils.js.map +0 -1
  463. package/dist/src/fonts.d.ts +0 -5
  464. package/dist/src/fonts.d.ts.map +0 -1
  465. package/dist/src/fonts.js +0 -16
  466. package/dist/src/fonts.js.map +0 -1
  467. package/dist/src/formatting.d.ts +0 -2
  468. package/dist/src/formatting.d.ts.map +0 -1
  469. package/dist/src/formatting.js +0 -4
  470. package/dist/src/formatting.js.map +0 -1
  471. package/dist/src/getDisplayName.d.ts +0 -4
  472. package/dist/src/getDisplayName.d.ts.map +0 -1
  473. package/dist/src/getDisplayName.js +0 -5
  474. package/dist/src/getDisplayName.js.map +0 -1
  475. package/dist/src/i18n/A_E.d.ts +0 -3
  476. package/dist/src/i18n/A_E.d.ts.map +0 -1
  477. package/dist/src/i18n/A_E.js +0 -8
  478. package/dist/src/i18n/A_E.js.map +0 -1
  479. package/dist/src/i18n/BA.d.ts +0 -3
  480. package/dist/src/i18n/BA.d.ts.map +0 -1
  481. package/dist/src/i18n/BA.js +0 -11
  482. package/dist/src/i18n/BA.js.map +0 -1
  483. package/dist/src/i18n/CA.d.ts +0 -3
  484. package/dist/src/i18n/CA.d.ts.map +0 -1
  485. package/dist/src/i18n/CA.js +0 -11
  486. package/dist/src/i18n/CA.js.map +0 -1
  487. package/dist/src/i18n/EA.d.ts +0 -3
  488. package/dist/src/i18n/EA.d.ts.map +0 -1
  489. package/dist/src/i18n/EA.js +0 -16
  490. package/dist/src/i18n/EA.js.map +0 -1
  491. package/dist/src/i18n/FA.d.ts +0 -3
  492. package/dist/src/i18n/FA.d.ts.map +0 -1
  493. package/dist/src/i18n/FA.js +0 -17
  494. package/dist/src/i18n/FA.js.map +0 -1
  495. package/dist/src/i18n/GC.d.ts +0 -3
  496. package/dist/src/i18n/GC.d.ts.map +0 -1
  497. package/dist/src/i18n/GC.js +0 -16
  498. package/dist/src/i18n/GC.js.map +0 -1
  499. package/dist/src/i18n/I.d.ts +0 -3
  500. package/dist/src/i18n/I.d.ts.map +0 -1
  501. package/dist/src/i18n/I.js +0 -21
  502. package/dist/src/i18n/I.js.map +0 -1
  503. package/dist/src/i18n/M.d.ts +0 -3
  504. package/dist/src/i18n/M.d.ts.map +0 -1
  505. package/dist/src/i18n/M.js +0 -4
  506. package/dist/src/i18n/M.js.map +0 -1
  507. package/dist/src/i18n/O_E.d.ts +0 -3
  508. package/dist/src/i18n/O_E.d.ts.map +0 -1
  509. package/dist/src/i18n/O_E.js +0 -7
  510. package/dist/src/i18n/O_E.js.map +0 -1
  511. package/dist/src/i18n/PA.d.ts +0 -3
  512. package/dist/src/i18n/PA.d.ts.map +0 -1
  513. package/dist/src/i18n/PA.js +0 -16
  514. package/dist/src/i18n/PA.js.map +0 -1
  515. package/dist/src/i18n/SA.d.ts +0 -3
  516. package/dist/src/i18n/SA.d.ts.map +0 -1
  517. package/dist/src/i18n/SA.js +0 -16
  518. package/dist/src/i18n/SA.js.map +0 -1
  519. package/dist/src/i18n/TC.d.ts +0 -3
  520. package/dist/src/i18n/TC.d.ts.map +0 -1
  521. package/dist/src/i18n/TC.js +0 -16
  522. package/dist/src/i18n/TC.js.map +0 -1
  523. package/dist/src/i18n/VA.d.ts +0 -3
  524. package/dist/src/i18n/VA.d.ts.map +0 -1
  525. package/dist/src/i18n/VA.js +0 -16
  526. package/dist/src/i18n/VA.js.map +0 -1
  527. package/dist/src/i18n/Z.d.ts +0 -3
  528. package/dist/src/i18n/Z.d.ts.map +0 -1
  529. package/dist/src/i18n/Z.js +0 -22
  530. package/dist/src/i18n/Z.js.map +0 -1
  531. package/dist/src/i18n/fi-FI.d.ts +0 -192
  532. package/dist/src/i18n/fi-FI.d.ts.map +0 -1
  533. package/dist/src/i18n/fi-FI.js +0 -182
  534. package/dist/src/i18n/fi-FI.js.map +0 -1
  535. package/dist/src/i18n/index.d.ts +0 -20
  536. package/dist/src/i18n/index.d.ts.map +0 -1
  537. package/dist/src/i18n/index.js +0 -128
  538. package/dist/src/i18n/index.js.map +0 -1
  539. package/dist/src/i18n/sv-FI.d.ts +0 -3
  540. package/dist/src/i18n/sv-FI.d.ts.map +0 -1
  541. package/dist/src/i18n/sv-FI.js +0 -181
  542. package/dist/src/i18n/sv-FI.js.map +0 -1
  543. package/dist/src/ids.d.ts +0 -14
  544. package/dist/src/ids.d.ts.map +0 -1
  545. package/dist/src/ids.js +0 -28
  546. package/dist/src/ids.js.map +0 -1
  547. package/dist/src/index.d.ts +0 -19
  548. package/dist/src/index.d.ts.map +0 -1
  549. package/dist/src/index.js +0 -12
  550. package/dist/src/index.js.map +0 -1
  551. package/dist/src/parser/parseExam.d.ts +0 -2
  552. package/dist/src/parser/parseExam.d.ts.map +0 -1
  553. package/dist/src/parser/parseExam.js +0 -54
  554. package/dist/src/parser/parseExam.js.map +0 -1
  555. package/dist/src/parser/parseExamStructure.d.ts +0 -58
  556. package/dist/src/parser/parseExamStructure.d.ts.map +0 -1
  557. package/dist/src/parser/parseExamStructure.js +0 -40
  558. package/dist/src/parser/parseExamStructure.js.map +0 -1
  559. package/dist/src/renderAnnotations.d.ts +0 -7
  560. package/dist/src/renderAnnotations.d.ts.map +0 -1
  561. package/dist/src/renderAnnotations.js +0 -193
  562. package/dist/src/renderAnnotations.js.map +0 -1
  563. package/dist/src/scrollToHash.d.ts +0 -2
  564. package/dist/src/scrollToHash.d.ts.map +0 -1
  565. package/dist/src/scrollToHash.js +0 -24
  566. package/dist/src/scrollToHash.js.map +0 -1
  567. package/dist/src/shortDisplayNumber.d.ts +0 -2
  568. package/dist/src/shortDisplayNumber.d.ts.map +0 -1
  569. package/dist/src/shortDisplayNumber.js +0 -5
  570. package/dist/src/shortDisplayNumber.js.map +0 -1
  571. package/dist/src/store/answers/actions.d.ts +0 -33
  572. package/dist/src/store/answers/actions.d.ts.map +0 -1
  573. package/dist/src/store/answers/actions.js +0 -9
  574. package/dist/src/store/answers/actions.js.map +0 -1
  575. package/dist/src/store/answers/reducer.d.ts +0 -39
  576. package/dist/src/store/answers/reducer.d.ts.map +0 -1
  577. package/dist/src/store/answers/reducer.js +0 -55
  578. package/dist/src/store/answers/reducer.js.map +0 -1
  579. package/dist/src/store/answers/sagas.d.ts +0 -8
  580. package/dist/src/store/answers/sagas.d.ts.map +0 -1
  581. package/dist/src/store/answers/sagas.js +0 -60
  582. package/dist/src/store/answers/sagas.js.map +0 -1
  583. package/dist/src/store/audio/actions.d.ts +0 -29
  584. package/dist/src/store/audio/actions.d.ts.map +0 -1
  585. package/dist/src/store/audio/actions.js +0 -9
  586. package/dist/src/store/audio/actions.js.map +0 -1
  587. package/dist/src/store/audio/reducer.d.ts +0 -27
  588. package/dist/src/store/audio/reducer.d.ts.map +0 -1
  589. package/dist/src/store/audio/reducer.js +0 -55
  590. package/dist/src/store/audio/reducer.js.map +0 -1
  591. package/dist/src/store/audio/sagas.d.ts +0 -3
  592. package/dist/src/store/audio/sagas.d.ts.map +0 -1
  593. package/dist/src/store/audio/sagas.js +0 -68
  594. package/dist/src/store/audio/sagas.js.map +0 -1
  595. package/dist/src/store/cas/actions.d.ts +0 -19
  596. package/dist/src/store/cas/actions.d.ts.map +0 -1
  597. package/dist/src/store/cas/actions.js +0 -9
  598. package/dist/src/store/cas/actions.js.map +0 -1
  599. package/dist/src/store/cas/reducer.d.ts +0 -14
  600. package/dist/src/store/cas/reducer.d.ts.map +0 -1
  601. package/dist/src/store/cas/reducer.js +0 -24
  602. package/dist/src/store/cas/reducer.js.map +0 -1
  603. package/dist/src/store/cas/sagas.d.ts +0 -18
  604. package/dist/src/store/cas/sagas.d.ts.map +0 -1
  605. package/dist/src/store/cas/sagas.js +0 -36
  606. package/dist/src/store/cas/sagas.js.map +0 -1
  607. package/dist/src/store/countdown.d.ts +0 -4
  608. package/dist/src/store/countdown.d.ts.map +0 -1
  609. package/dist/src/store/countdown.js +0 -33
  610. package/dist/src/store/countdown.js.map +0 -1
  611. package/dist/src/store/index.d.ts +0 -78
  612. package/dist/src/store/index.d.ts.map +0 -1
  613. package/dist/src/store/index.js +0 -53
  614. package/dist/src/store/index.js.map +0 -1
  615. package/dist/src/store/selectors.d.ts +0 -9
  616. package/dist/src/store/selectors.d.ts.map +0 -1
  617. package/dist/src/store/selectors.js +0 -35
  618. package/dist/src/store/selectors.js.map +0 -1
  619. package/dist/src/types/ExamAnswer.d.ts +0 -22
  620. package/dist/src/types/ExamAnswer.d.ts.map +0 -1
  621. package/dist/src/types/ExamAnswer.js +0 -2
  622. package/dist/src/types/ExamAnswer.js.map +0 -1
  623. package/dist/src/types/ExamServerAPI.d.ts +0 -78
  624. package/dist/src/types/ExamServerAPI.d.ts.map +0 -1
  625. package/dist/src/types/ExamServerAPI.js +0 -2
  626. package/dist/src/types/ExamServerAPI.js.map +0 -1
  627. package/dist/src/types/GradingStructure.d.ts +0 -40
  628. package/dist/src/types/GradingStructure.d.ts.map +0 -1
  629. package/dist/src/types/GradingStructure.js +0 -2
  630. package/dist/src/types/GradingStructure.js.map +0 -1
  631. package/dist/src/types/Score.d.ts +0 -92
  632. package/dist/src/types/Score.d.ts.map +0 -1
  633. package/dist/src/types/Score.js +0 -2
  634. package/dist/src/types/Score.js.map +0 -1
  635. package/dist/src/url.d.ts +0 -7
  636. package/dist/src/url.d.ts.map +0 -1
  637. package/dist/src/url.js +0 -12
  638. package/dist/src/url.js.map +0 -1
  639. package/dist/src/useCached.d.ts +0 -3
  640. package/dist/src/useCached.d.ts.map +0 -1
  641. package/dist/src/useCached.js +0 -6
  642. package/dist/src/useCached.js.map +0 -1
  643. package/dist/src/utils.d.ts +0 -15
  644. package/dist/src/utils.d.ts.map +0 -1
  645. package/dist/src/utils.js +0 -35
  646. package/dist/src/utils.js.map +0 -1
  647. package/dist/src/validateAnswers.d.ts +0 -16
  648. package/dist/src/validateAnswers.d.ts.map +0 -1
  649. package/dist/src/validateAnswers.js +0 -89
  650. package/dist/src/validateAnswers.js.map +0 -1
  651. package/dist/tsconfig.tsbuildinfo +0 -1
@@ -1,27 +0,0 @@
1
- import React, { memo } from 'react';
2
- import classNames from 'classnames';
3
- import { FontAwesomeIcon } from '@fortawesome/react-fontawesome';
4
- import { faImage } from '@fortawesome/free-solid-svg-icons';
5
- const AnswerIndicator = (props) => {
6
- const { id, type, answer, error, displayNumber } = props;
7
- const value = answer === null || answer === void 0 ? void 0 : answer.value;
8
- const answerIsLongText = (answer === null || answer === void 0 ? void 0 : answer.type) === 'richText';
9
- const answerIsFormula = answerIsLongText && (value === null || value === void 0 ? void 0 : value.includes('src="/math.svg?latex='));
10
- const answerIsImage = answerIsLongText && ((value === null || value === void 0 ? void 0 : value.includes('<img src="/screenshot/')) || (value === null || value === void 0 ? void 0 : value.includes('<img src="data:image/png;')));
11
- const onClick = (e) => {
12
- e.stopPropagation();
13
- window.location.href = `#question-nr-${displayNumber}`;
14
- };
15
- return (React.createElement("div", { className: "answer-indicator-container", onClick: onClick, key: id },
16
- React.createElement("div", { className: classNames('answer-indicator', {
17
- ok: value,
18
- error,
19
- big: type === 'rich-text'
20
- }), "data-indicator-id": id }, (answer === null || answer === void 0 ? void 0 : answer.type) === 'richText' && (React.createElement(React.Fragment, null,
21
- (answerIsLongText && (answer === null || answer === void 0 ? void 0 : answer.characterCount) && React.createElement("span", null, answer.characterCount)) || '',
22
- answerIsFormula && React.createElement("span", { className: "formula" }, "\u2211"),
23
- answerIsImage && (React.createElement("span", { className: "img" },
24
- React.createElement(FontAwesomeIcon, { icon: faImage, size: "lg" }))))))));
25
- };
26
- export const Indicator = memo(AnswerIndicator);
27
- //# sourceMappingURL=AnswerIndicator.js.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"AnswerIndicator.js","sourceRoot":"","sources":["../../../../src/components/shared/AnswerIndicator.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,EAAE,IAAI,EAAE,MAAM,OAAO,CAAA;AACnC,OAAO,UAAU,MAAM,YAAY,CAAA;AAEnC,OAAO,EAAE,eAAe,EAAE,MAAM,gCAAgC,CAAA;AAChE,OAAO,EAAE,OAAO,EAAE,MAAM,mCAAmC,CAAA;AAU3D,MAAM,eAAe,GAAG,CAAC,KAAY,EAAE,EAAE;IACvC,MAAM,EAAE,EAAE,EAAE,IAAI,EAAE,MAAM,EAAE,KAAK,EAAE,aAAa,EAAE,GAAG,KAAK,CAAA;IAExD,MAAM,KAAK,GAAG,MAAM,aAAN,MAAM,uBAAN,MAAM,CAAE,KAAK,CAAA;IAC3B,MAAM,gBAAgB,GAAG,CAAA,MAAM,aAAN,MAAM,uBAAN,MAAM,CAAE,IAAI,MAAK,UAAU,CAAA;IACpD,MAAM,eAAe,GAAG,gBAAgB,KAAI,KAAK,aAAL,KAAK,uBAAL,KAAK,CAAE,QAAQ,CAAC,uBAAuB,CAAC,CAAA,CAAA;IACpF,MAAM,aAAa,GACjB,gBAAgB,IAAI,CAAC,CAAA,KAAK,aAAL,KAAK,uBAAL,KAAK,CAAE,QAAQ,CAAC,wBAAwB,CAAC,MAAI,KAAK,aAAL,KAAK,uBAAL,KAAK,CAAE,QAAQ,CAAC,2BAA2B,CAAC,CAAA,CAAC,CAAA;IAEjH,MAAM,OAAO,GAAG,CAAC,CAA+C,EAAE,EAAE;QAClE,CAAC,CAAC,eAAe,EAAE,CAAA;QACnB,MAAM,CAAC,QAAQ,CAAC,IAAI,GAAG,gBAAgB,aAAa,EAAE,CAAA;IACxD,CAAC,CAAA;IACD,OAAO,CACL,6BAAK,SAAS,EAAC,4BAA4B,EAAC,OAAO,EAAE,OAAO,EAAE,GAAG,EAAE,EAAE;QACnE,6BACE,SAAS,EAAE,UAAU,CAAC,kBAAkB,EAAE;gBACxC,EAAE,EAAE,KAAK;gBACT,KAAK;gBACL,GAAG,EAAE,IAAI,KAAK,WAAW;aAC1B,CAAC,uBACiB,EAAE,IAEpB,CAAA,MAAM,aAAN,MAAM,uBAAN,MAAM,CAAE,IAAI,MAAK,UAAU,IAAI,CAC9B;YACG,CAAC,gBAAgB,KAAI,MAAM,aAAN,MAAM,uBAAN,MAAM,CAAE,cAAc,CAAA,IAAI,kCAAO,MAAM,CAAC,cAAc,CAAQ,CAAC,IAAI,EAAE;YAC1F,eAAe,IAAI,8BAAM,SAAS,EAAC,SAAS,aAAS;YACrD,aAAa,IAAI,CAChB,8BAAM,SAAS,EAAC,KAAK;gBACnB,oBAAC,eAAe,IAAC,IAAI,EAAE,OAAO,EAAE,IAAI,EAAC,IAAI,GAAG,CACvC,CACR,CACA,CACJ,CACG,CACF,CACP,CAAA;AACH,CAAC,CAAA;AAED,MAAM,CAAC,MAAM,SAAS,GAAG,IAAI,CAAC,eAAe,CAAC,CAAA"}
@@ -1,7 +0,0 @@
1
- import React from 'react';
2
- declare const _default: React.NamedExoticComponent<{
3
- maxLength: number;
4
- id?: string;
5
- }>;
6
- export default _default;
7
- //# sourceMappingURL=AnswerLengthInfo.d.ts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"AnswerLengthInfo.d.ts","sourceRoot":"","sources":["../../../../src/components/shared/AnswerLengthInfo.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,MAAM,OAAO,CAAA;;eAIoC,MAAM;SAAO,MAAM;;AAWhF,wBAA2C"}
@@ -1,11 +0,0 @@
1
- import React from 'react';
2
- import { useExamTranslation } from '../../i18n';
3
- import NotificationIcon from '../NotificationIcon';
4
- const AnswerLengthInfo = ({ maxLength, id }) => {
5
- const { t } = useExamTranslation();
6
- return (React.createElement("p", { id: id, className: "e-answer-length-info" },
7
- React.createElement(NotificationIcon, null),
8
- React.createElement("em", null, t('max-length-info', { count: maxLength }))));
9
- };
10
- export default React.memo(AnswerLengthInfo);
11
- //# sourceMappingURL=AnswerLengthInfo.js.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"AnswerLengthInfo.js","sourceRoot":"","sources":["../../../../src/components/shared/AnswerLengthInfo.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,MAAM,OAAO,CAAA;AACzB,OAAO,EAAE,kBAAkB,EAAE,MAAM,YAAY,CAAA;AAC/C,OAAO,gBAAgB,MAAM,qBAAqB,CAAA;AAElD,MAAM,gBAAgB,GAAgE,CAAC,EAAE,SAAS,EAAE,EAAE,EAAE,EAAE,EAAE;IAC1G,MAAM,EAAE,CAAC,EAAE,GAAG,kBAAkB,EAAE,CAAA;IAElC,OAAO,CACL,2BAAG,EAAE,EAAE,EAAE,EAAE,SAAS,EAAC,sBAAsB;QACzC,oBAAC,gBAAgB,OAAG;QACpB,gCAAK,CAAC,CAAC,iBAAiB,EAAE,EAAE,KAAK,EAAE,SAAS,EAAE,CAAC,CAAM,CACnD,CACL,CAAA;AACH,CAAC,CAAA;AAED,eAAe,KAAK,CAAC,IAAI,CAAC,gBAAgB,CAAC,CAAA"}
@@ -1,5 +0,0 @@
1
- import React from 'react';
2
- import { ExamComponentProps } from '../../createRenderChildNodes';
3
- declare const mkAttachmentLink: (type: "link" | "plain") => React.FunctionComponent<ExamComponentProps>;
4
- export default mkAttachmentLink;
5
- //# sourceMappingURL=AttachmentLink.d.ts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"AttachmentLink.d.ts","sourceRoot":"","sources":["../../../../src/components/shared/AttachmentLink.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAqB,MAAM,OAAO,CAAA;AACzC,OAAO,EAAE,kBAAkB,EAAE,MAAM,8BAA8B,CAAA;AAOjE,QAAA,MAAM,gBAAgB,SAAU,MAAM,GAAG,OAAO,KAAG,KAAK,CAAC,iBAAiB,CAAC,kBAAkB,CAyB5F,CAAA;AAED,eAAe,gBAAgB,CAAA"}
@@ -1,28 +0,0 @@
1
- import React, { useContext } from 'react';
2
- import { query } from '../../dom-utils';
3
- import { useExamTranslation } from '../../i18n';
4
- import { url } from '../../url';
5
- import AttachmentLinkAnchor from './internal/AttachmentLinkAnchor';
6
- import { CommonExamContext } from '../context/CommonExamContext';
7
- const mkAttachmentLink = (type) => {
8
- const AttachmentLink = ({ element }) => {
9
- const name = element.getAttribute('ref');
10
- const { root } = useContext(CommonExamContext);
11
- const { attachmentsURL } = useContext(CommonExamContext);
12
- const { t } = useExamTranslation();
13
- const attachment = query(root, el => el.localName === 'attachment' && el.getAttribute('name') === name);
14
- const displayNumber = attachment.getAttribute('display-number');
15
- const isShort = element.getAttribute('type') === 'short';
16
- const href = url(attachmentsURL, { hash: displayNumber });
17
- return isShort ? (React.createElement(AttachmentLinkAnchor, { href, type }, displayNumber)) : (React.createElement(React.Fragment, null,
18
- '(',
19
- React.createElement(AttachmentLinkAnchor, { href, type },
20
- t('material', { postProcess: 'lowercase' }),
21
- " ",
22
- displayNumber),
23
- ')'));
24
- };
25
- return React.memo(AttachmentLink);
26
- };
27
- export default mkAttachmentLink;
28
- //# sourceMappingURL=AttachmentLink.js.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"AttachmentLink.js","sourceRoot":"","sources":["../../../../src/components/shared/AttachmentLink.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,EAAE,UAAU,EAAE,MAAM,OAAO,CAAA;AAEzC,OAAO,EAAE,KAAK,EAAE,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E,WAAW,EAAE,CAAC;;gBAAG,aAAa,CACvC;YACtB,GAAG,CACH,CACJ,CAAA;IACH,CAAC,CAAA;IAED,OAAO,KAAK,CAAC,IAAI,CAAC,cAAc,CAAC,CAAA;AACnC,CAAC,CAAA;AAED,eAAe,gBAAgB,CAAA"}
@@ -1,5 +0,0 @@
1
- import React from 'react';
2
- import { ExamComponentProps } from '../../createRenderChildNodes';
3
- declare const mkAttachmentLinks: (type: "link" | "plain") => React.FunctionComponent<ExamComponentProps>;
4
- export default mkAttachmentLinks;
5
- //# sourceMappingURL=AttachmentLinks.d.ts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"AttachmentLinks.d.ts","sourceRoot":"","sources":["../../../../src/components/shared/AttachmentLinks.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAqB,MAAM,OAAO,CAAA;AACzC,OAAO,EAAE,kBAAkB,EAAE,MAAM,8BAA8B,CAAA;AAOjE,QAAA,MAAM,iBAAiB,SAAU,MAAM,GAAG,OAAO,KAAG,KAAK,CAAC,iBAAiB,CAAC,kBAAkB,CAmC7F,CAAA;AAgCD,eAAe,iBAAiB,CAAA"}
@@ -1,58 +0,0 @@
1
- import React, { useContext } from 'react';
2
- import { mapChildElements, query } from '../../dom-utils';
3
- import { useExamTranslation } from '../../i18n';
4
- import { url } from '../../url';
5
- import AttachmentLinkAnchor from './internal/AttachmentLinkAnchor';
6
- import { CommonExamContext } from '../context/CommonExamContext';
7
- const mkAttachmentLinks = (type) => {
8
- const AttachmentLinks = ({ element }) => {
9
- const { root, attachmentsURL } = useContext(CommonExamContext);
10
- const { t } = useExamTranslation();
11
- const displayNumbers = mapChildElements(element, attachmentLink => {
12
- const name = attachmentLink.getAttribute('ref');
13
- const attachment = query(root, el => el.localName === 'attachment' && el.getAttribute('name') === name);
14
- return attachment.getAttribute('display-number');
15
- });
16
- const groupedDisplayNumbers = splitWhen(displayNumbers, (displayNumber, i) => i > 0 && !isSuccessive(displayNumbers[i - 1], displayNumber));
17
- const isShort = element.getAttribute('type') === 'short';
18
- const href = url(attachmentsURL, { hash: displayNumbers[0] });
19
- const displayNumbersString = groupedDisplayNumbers
20
- .map(group => (group.length > 1 ? `${group[0]}–${group[group.length - 1]}` : group[0]))
21
- .join(', ');
22
- const count = groupedDisplayNumbers[0].length;
23
- return isShort ? (React.createElement(AttachmentLinkAnchor, { href, type }, displayNumbersString)) : (React.createElement(React.Fragment, null,
24
- '(',
25
- React.createElement(AttachmentLinkAnchor, { href, type },
26
- t('material', { count, postProcess: 'lowercase' }),
27
- " ",
28
- displayNumbersString),
29
- ')'));
30
- };
31
- return React.memo(AttachmentLinks);
32
- };
33
- function splitWhen(array, predicate) {
34
- const result = [[]];
35
- let prev;
36
- for (let i = 0; i < array.length; i++) {
37
- const elem = array[i];
38
- if (prev && predicate(elem, i, array)) {
39
- const group = [elem];
40
- result.push(group);
41
- }
42
- else {
43
- const lastGroup = result[result.length - 1];
44
- lastGroup.push(elem);
45
- }
46
- prev = elem;
47
- }
48
- return result;
49
- }
50
- function isSuccessive(a, b) {
51
- const length = a.length;
52
- if (length !== b.length) {
53
- return false;
54
- }
55
- return a.startsWith(b.slice(0, length - 1)) && b.charCodeAt(length - 1) - a.charCodeAt(length - 1) === 1;
56
- }
57
- export default mkAttachmentLinks;
58
- //# sourceMappingURL=AttachmentLinks.js.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"AttachmentLinks.js","sourceRoot":"","sources":["../../../../src/components/shared/AttachmentLinks.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,EAAE,UAAU,EAAE,MAAM,OAAO,CAAA;AAEzC,OAAO,EAAE,gBAAgB,EAAE,KAAK,EAAE,MAAM,iBAAiB,CAAA;AACzD,OAAO,EAAE,kBAAkB,EAAE,MAAM,YAAY,CAAA;AAC/C,OAAO,EAAE,GAAG,EAAE,MAAM,WAAW,CAAA;AAC/B,OAAO,oBAAoB,MAAM,iCAAiC,CAAA;AAClE,OAAO,EAAE,iBAAiB,EAAE,MAA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AAI,CAAA;IACb,CAAC;IAED,OAAO,MAAM,CAAA;AACf,CAAC;AAED,SAAS,YAAY,CAAC,CAAS,EAAE,CAAS;IACxC,MAAM,MAAM,GAAG,CAAC,CAAC,MAAM,CAAA;IAEvB,IAAI,MAAM,KAAK,CAAC,CAAC,MAAM,EAAE,CAAC;QACxB,OAAO,KAAK,CAAA;IACd,CAAC;IACD,OAAO,CAAC,CAAC,UAAU,CAAC,CAAC,CAAC,KAAK,CAAC,CAAC,EAAE,MAAM,GAAG,CAAC,CAAC,CAAC,IAAI,CAAC,CAAC,UAAU,CAAC,MAAM,GAAG,CAAC,CAAC,GAAG,CAAC,CAAC,UAAU,CAAC,MAAM,GAAG,CAAC,CAAC,KAAK,CAAC,CAAA;AAC1G,CAAC;AAED,eAAe,iBAAiB,CAAA"}
@@ -1,6 +0,0 @@
1
- import React from 'react';
2
- import { ExamComponentProps } from '../../createRenderChildNodes';
3
- declare function Audio({ element, className, renderChildNodes }: ExamComponentProps): React.JSX.Element;
4
- declare const _default: React.MemoExoticComponent<typeof Audio>;
5
- export default _default;
6
- //# sourceMappingURL=Audio.d.ts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"Audio.d.ts","sourceRoot":"","sources":["../../../../src/components/shared/Audio.tsx"],"names":[],"mappings":"AACA,OAAO,KAAqB,MAAM,OAAO,CAAA;AAEzC,OAAO,EAAE,kBAAkB,EAAE,MAAM,8BAA8B,CAAA;AASjE,iBAAS,KAAK,CAAC,EAAE,OAAO,EAAE,SAAS,EAAE,gBAAgB,EAAE,EAAE,kBAAkB,qBAoC1E;;AAED,wBAAgC"}
@@ -1,31 +0,0 @@
1
- import classNames from 'classnames';
2
- import React, { useContext } from 'react';
3
- import { useSelector } from 'react-redux';
4
- import { getNumericAttribute } from '../../dom-utils';
5
- import { useExamTranslation } from '../../i18n';
6
- import { audioLabelId } from '../../ids';
7
- import { getAudioPlaybackError, getPlaybackTimesRemaining } from '../../store/selectors';
8
- import AudioPlaybackError from './internal/AudioPlaybackError';
9
- import { CommonExamContext } from '../context/CommonExamContext';
10
- import RestrictedAudioPlayer from './internal/RestrictedAudioPlayer';
11
- function Audio({ element, className, renderChildNodes }) {
12
- const src = element.getAttribute('src');
13
- const restrictedAudioId = getNumericAttribute(element, 'restricted-audio-id');
14
- const times = getNumericAttribute(element, 'times');
15
- const duration = getNumericAttribute(element, 'duration');
16
- const { t } = useExamTranslation();
17
- const audioPlaybackError = times != null && restrictedAudioId != null ? useSelector(getAudioPlaybackError(src, restrictedAudioId)) : undefined;
18
- const playbackTimesRemaining = times != null && restrictedAudioId != null
19
- ? useSelector(getPlaybackTimesRemaining(restrictedAudioId, times))
20
- : undefined;
21
- const { resolveAttachment } = useContext(CommonExamContext);
22
- const labelId = audioLabelId(element);
23
- return (React.createElement("div", { className: classNames('audio e-columns e-columns--center-v e-mrg-b-2', className) },
24
- restrictedAudioId != null && times != null ? (React.createElement(RestrictedAudioPlayer, { src, restrictedAudioId, duration, times, labelId })) : (React.createElement("audio", { className: "e-column e-column--narrow", "aria-describedby": labelId, preload: "metadata", controls: true, controlsList: "nodownload" },
25
- React.createElement("source", { src: resolveAttachment(src) }))),
26
- React.createElement("div", { className: "e-column", id: labelId },
27
- React.createElement(AudioPlaybackError, { error: audioPlaybackError }, renderChildNodes(element)),
28
- playbackTimesRemaining != null && React.createElement("em", null, t('listen-times-remaining', { count: playbackTimesRemaining })))));
29
- }
30
- export default React.memo(Audio);
31
- //# sourceMappingURL=Audio.js.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"Audio.js","sourceRoot":"","sources":["../../../../src/components/shared/Audio.tsx"],"names":[],"mappings":"AAAA,OAAO,UAAU,MAAM,YAAY,CAAA;AACnC,OAAO,KAAK,EAAE,EAAE,UAAU,EAAE,MAAM,OAAO,CAAA;AACzC,OAAO,EAAE,WAAW,EAAE,MAAM,aAAa,CAAA;AAEzC,OAAO,EAAE,mBAAmB,EAAE,MAAM,iBAAiB,CAAA;AACrD,OAAO,EAAE,kBAAkB,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AS,CAAC;QACnF,iBAAiB,IAAI,IAAI,IAAI,KAAK,IAAI,IAAI,CAAC,CAAC,CAAC,CAC5C,oBAAC,qBAAqB,IAAO,GAAG,EAAE,iBAAiB,EAAE,QAAQ,EAAE,KAAK,EAAE,OAAO,GAAM,CACpF,CAAC,CAAC,CAAC,CACF,+BACE,SAAS,EAAC,2BAA2B,sBACnB,OAAO,EACzB,OAAO,EAAC,UAAU,EAClB,QAAQ,QACR,YAAY,EAAC,YAAY;YAEzB,gCAAQ,GAAG,EAAE,iBAAiB,CAAC,GAAG,CAAC,GAAI,CACjC,CACT;QACD,6BAAK,SAAS,EAAC,UAAU,EAAC,EAAE,EAAE,OAAO;YACnC,oBAAC,kBAAkB,IAAC,KAAK,EAAE,kBAAkB,IAAG,gBAAgB,CAAC,OAAO,CAAC,CAAsB;YAC9F,sBAAsB,IAAI,IAAI,IAAI,gCAAK,CAAC,CAAC,wBAAwB,EAAE,EAAE,KAAK,EAAE,sBAAsB,EAAE,CAAC,CAAM,CACxG,CACF,CACP,CAAA;AACH,CAAC;AAED,eAAe,KAAK,CAAC,IAAI,CAAC,KAAK,CAAC,CAAA"}
@@ -1,6 +0,0 @@
1
- import React from 'react';
2
- import { ExamComponentProps } from '../../createRenderChildNodes';
3
- declare function AudioGroup({ element, className, renderChildNodes }: ExamComponentProps): React.JSX.Element;
4
- declare const _default: React.MemoExoticComponent<typeof AudioGroup>;
5
- export default _default;
6
- //# sourceMappingURL=AudioGroup.d.ts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"AudioGroup.d.ts","sourceRoot":"","sources":["../../../../src/components/shared/AudioGroup.tsx"],"names":[],"mappings":"AACA,OAAO,KAAK,MAAM,OAAO,CAAA;AACzB,OAAO,EAAE,kBAAkB,EAAE,MAAM,8BAA8B,CAAA;AAEjE,iBAAS,UAAU,CAAC,EAAE,OAAO,EAAE,SAAS,EAAE,gBAAgB,EAAE,EAAE,kBAAkB,qBAS/E;;AAED,wBAAqC"}
@@ -1,9 +0,0 @@
1
- import classNames from 'classnames';
2
- import React from 'react';
3
- function AudioGroup({ element, className, renderChildNodes }) {
4
- return (React.createElement("div", { className: classNames('e-audio-group', className) },
5
- React.createElement("div", { className: "e-audio-group--separator e-font-size-xl e-mrg-y-4 e-color-link", role: "separator" }, "\u2732\u2732\u2732"),
6
- renderChildNodes(element)));
7
- }
8
- export default React.memo(AudioGroup);
9
- //# sourceMappingURL=AudioGroup.js.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"AudioGroup.js","sourceRoot":"","sources":["../../../../src/components/shared/AudioGroup.tsx"],"names":[],"mappings":"AAAA,OAAO,UAAU,MAAM,YAAY,CAAA;AACnC,OAAO,KAAK,MAAM,OAAO,CAAA;AAGzB,SAAS,UAAU,CAAC,EAAE,OAAO,EAAE,SAAS,EAAE,gBAAgB,EAAsB;IAC9E,OAAO,CACL,6BAAK,SAAS,EAAE,UAAU,CAAC,eAAe,EAAE,SAAS,CAAC;QACpD,6BAAK,SAAS,EAAC,gEAAgE,EAAC,IAAI,EAAC,WAAW,yBAE1F;QACL,gBAAgB,CAAC,OAAO,CAAC,CACtB,CACP,CAAA;AACH,CAAC;AAED,eAAe,KAAK,CAAC,IAAI,CAAC,UAAU,CAAC,CAAA"}
@@ -1,6 +0,0 @@
1
- import React from 'react';
2
- import { ExamComponentProps } from '../../createRenderChildNodes';
3
- declare function AudioTest({ element }: ExamComponentProps): React.JSX.Element;
4
- declare const _default: React.MemoExoticComponent<typeof AudioTest>;
5
- export default _default;
6
- //# sourceMappingURL=AudioTest.d.ts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"AudioTest.d.ts","sourceRoot":"","sources":["../../../../src/components/shared/AudioTest.tsx"],"names":[],"mappings":"AAEA,OAAO,KAA6B,MAAM,OAAO,CAAA;AAEjD,OAAO,EAAE,kBAAkB,EAAE,MAAM,8BAA8B,CAAA;AAQjE,iBAAS,SAAS,CAAC,EAAE,OAAO,EAAE,EAAE,kBAAkB,qBAoCjD;;AAED,wBAAoC"}
@@ -1,34 +0,0 @@
1
- import { faPlay } from '@fortawesome/free-solid-svg-icons';
2
- import { FontAwesomeIcon } from '@fortawesome/react-fontawesome';
3
- import React, { useContext, useRef } from 'react';
4
- import { useDispatch, useSelector } from 'react-redux';
5
- import { getNumericAttribute, NBSP } from '../../dom-utils';
6
- import { useExamTranslation } from '../../i18n';
7
- import { playAudio } from '../../store/audio/actions';
8
- import { getAudioPlaybackError, getAudioState } from '../../store/selectors';
9
- import AudioPlaybackError from './internal/AudioPlaybackError';
10
- import { CommonExamContext } from '../context/CommonExamContext';
11
- function AudioTest({ element }) {
12
- const src = element.getAttribute('src');
13
- const duration = getNumericAttribute(element, 'duration');
14
- const { t } = useExamTranslation();
15
- const audioState = useSelector(getAudioState(src));
16
- const audioPlaybackError = useSelector(getAudioPlaybackError(src));
17
- const dispatch = useDispatch();
18
- const { abitti2, resolveAttachment } = useContext(CommonExamContext);
19
- const audioRef = useRef(null);
20
- return (React.createElement("div", { className: "e-audio-test notification e-pad-2 e-mrg-b-4" },
21
- React.createElement("p", null, t('audio-test.instructions')),
22
- React.createElement("div", { className: "e-columns e-columns--center-v e-mrg-b-2" },
23
- React.createElement("div", { className: "e-column e-column--narrow" },
24
- abitti2 && (React.createElement("audio", { ref: audioRef, preload: "none" },
25
- React.createElement("source", { src: resolveAttachment(src) }))),
26
- React.createElement("button", { className: "e-button", disabled: audioState !== 'stopped', onClick: () => audioState === 'stopped' && dispatch(playAudio({ src, duration, audioRef })) },
27
- React.createElement(FontAwesomeIcon, { className: "e-mrg-r-1", icon: faPlay, fixedWidth: true }),
28
- t('audio-test.play'))),
29
- React.createElement("div", { className: "e-column" },
30
- React.createElement(AudioPlaybackError, { error: audioPlaybackError }, NBSP))),
31
- React.createElement("div", null, t('audio-test.volume'))));
32
- }
33
- export default React.memo(AudioTest);
34
- //# sourceMappingURL=AudioTest.js.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"AudioTest.js","sourceRoot":"","sources":["../../../../src/components/shared/A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C,yBAAyB,CAAC,CAAK;QACrC,6BAAK,SAAS,EAAC,yCAAyC;YACtD,6BAAK,SAAS,EAAC,2BAA2B;gBACvC,OAAO,IAAI,CACV,+BAAO,GAAG,EAAE,QAAQ,EAAE,OAAO,EAAC,MAAM;oBAClC,gCAAQ,GAAG,EAAE,iBAAiB,CAAC,GAAG,CAAC,GAAI,CACjC,CACT;gBACD,gCACE,SAAS,EAAC,UAAU,EACpB,QAAQ,EAAE,UAAU,KAAK,SAAS,EAClC,OAAO,EAAE,GAAG,EAAE,CAAC,UAAU,KAAK,SAAS,IAAI,QAAQ,CAAC,SAAS,CAAC,EAAE,GAAG,EAAE,QAAQ,EAAE,QAAQ,EAAE,CAAC,CAAC;oBAE3F,oBAAC,eAAe,IAAC,SAAS,EAAC,WAAW,EAAC,IAAI,EAAE,MAAM,EAAE,UAAU,SAAG;oBACjE,CAAC,CAAC,iBAAiB,CAAC,CACd,CACL;YACN,6BAAK,SAAS,EAAC,UAAU;gBACvB,oBAAC,kBAAkB,IAAC,KAAK,EAAE,kBAAkB,IAAG,IAAI,CAAsB,CACtE,CACF;QACN,iCAAM,CAAC,CAAC,mBAAmB,CAAC,CAAO,CAC/B,CACP,CAAA;AACH,CAAC;AAED,eAAe,KAAK,CAAC,IAAI,CAAC,SAAS,CAAC,CAAA"}
@@ -1,6 +0,0 @@
1
- import React from 'react';
2
- import { ExamComponentProps } from '../../createRenderChildNodes';
3
- declare function ExamTranslation({ element }: ExamComponentProps): React.JSX.Element;
4
- declare const _default: React.MemoExoticComponent<typeof ExamTranslation>;
5
- export default _default;
6
- //# sourceMappingURL=ExamTranslation.d.ts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"ExamTranslation.d.ts","sourceRoot":"","sources":["../../../../src/components/shared/ExamTranslation.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,MAAM,OAAO,CAAA;AACzB,OAAO,EAAE,kBAAkB,EAAE,MAAM,8BAA8B,CAAA;AAGjE,iBAAS,eAAe,CAAC,EAAE,OAAO,EAAE,EAAE,kBAAkB,qBAKvD;;AAED,wBAA0C"}
@@ -1,9 +0,0 @@
1
- import React from 'react';
2
- import { useExamTranslation } from '../../i18n';
3
- function ExamTranslation({ element }) {
4
- const { t } = useExamTranslation();
5
- const key = element.getAttribute('key');
6
- return React.createElement(React.Fragment, null, t(key));
7
- }
8
- export default React.memo(ExamTranslation);
9
- //# sourceMappingURL=ExamTranslation.js.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"ExamTranslation.js","sourceRoot":"","sources":["../../../../src/components/shared/ExamTranslation.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,MAAM,OAAO,CAAA;AAEzB,OAAO,EAAE,kBAAkB,EAAE,MAAM,YAAY,CAAA;AAE/C,SAAS,eAAe,CAAC,EAAE,OAAO,EAAsB;IACtD,MAAM,EAAE,CAAC,EAAE,GAAG,kBAAkB,EAAE,CAAA;IAClC,MAAM,GAAG,GAAG,OAAO,CAAC,YAAY,CAAC,KAAK,CAAE,CAAA;IAExC,OAAO,0CAAG,CAAC,CAAC,GAAG,CAAC,CAAI,CAAA;AACtB,CAAC;AAED,eAAe,KAAK,CAAC,IAAI,CAAC,eAAe,CAAC,CAAA"}
@@ -1,6 +0,0 @@
1
- import React from 'react';
2
- import { ExamComponentProps } from '../../createRenderChildNodes';
3
- declare function File({ element, className, renderChildNodes }: ExamComponentProps): React.JSX.Element;
4
- declare const _default: React.MemoExoticComponent<typeof File>;
5
- export default _default;
6
- //# sourceMappingURL=File.d.ts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"File.d.ts","sourceRoot":"","sources":["../../../../src/components/shared/File.tsx"],"names":[],"mappings":"AACA,OAAO,KAAqB,MAAM,OAAO,CAAA;AAEzC,OAAO,EAAE,kBAAkB,EAAE,MAAM,8BAA8B,CAAA;AAEjE,iBAAS,IAAI,CAAC,EAAE,OAAO,EAAE,SAAS,EAAE,gBAAgB,EAAE,EAAE,kBAAkB,qBAgBzE;;AAED,wBAA+B"}
@@ -1,15 +0,0 @@
1
- import classNames from 'classnames';
2
- import React, { useContext } from 'react';
3
- import { CommonExamContext } from '../context/CommonExamContext';
4
- function File({ element, className, renderChildNodes }) {
5
- const src = element.getAttribute('src');
6
- const hasDescription = element.hasChildNodes();
7
- const { resolveAttachment } = useContext(CommonExamContext);
8
- return (React.createElement("a", { className: classNames('file e-nowrap', className), href: resolveAttachment(src), download: true }, hasDescription ? (React.createElement(React.Fragment, null,
9
- renderChildNodes(element),
10
- " (",
11
- src,
12
- ")")) : (src)));
13
- }
14
- export default React.memo(File);
15
- //# sourceMappingURL=File.js.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"File.js","sourceRoot":"","sources":["../../../../src/components/shared/File.tsx"],"names":[],"mappings":"AAAA,OAAO,UAAU,MAAM,YAAY,CAAA;AACnC,OAAO,KAAK,EAAE,EAAE,UAAU,EAAE,MAAM,OAAO,CAAA;AACzC,OAAO,EAAE,iBAAiB,EAAE,MAAM,8BAA8B,CAAA;AAGhE,SAAS,IAAI,CAAC,EAAE,OAAO,EAAE,SAAS,EAAE,gBAAgB,EAAsB;IACxE,MAAM,GAAG,GAAG,OAAO,CAAC,YAAY,CAAC,KAAK,CAAE,CAAA;IACxC,MAAM,cAAc,GAAG,OAAO,CAAC,aAAa,EAAE,CAAA;IAC9C,MAAM,EAAE,iBAAiB,EAAE,GAAG,UAAU,CAAC,iBAAiB,CAAC,CAAA;IAE3D,OAAO,CACL,2BAAG,SAAS,EAAE,UAAU,CAAC,eAAe,EAAE,SAAS,CAAC,EAAE,IAAI,EAAE,iBAAiB,CAAC,GAAG,CAAC,EAAE,QAAQ,UACzF,cAAc,CAAC,CAAC,CAAC,CAChB;QACG,gBAAgB,CAAC,OAAO,CAAC;;QAAI,GAAG;YAChC,CACJ,CAAC,CAAC,CAAC,CACF,GAAG,CACJ,CACC,CACL,CAAA;AACH,CAAC;AAED,eAAe,KAAK,CAAC,IAAI,CAAC,IAAI,CAAC,CAAA"}
@@ -1,5 +0,0 @@
1
- import React from 'react';
2
- export declare const Footer: React.FC<{
3
- children?: React.ReactNode;
4
- }>;
5
- //# sourceMappingURL=Footer.d.ts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"Footer.d.ts","sourceRoot":"","sources":["../../../../src/components/shared/Footer.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,MAAM,OAAO,CAAA;AAEzB,eAAO,MAAM,MAAM,EAAE,KAAK,CAAC,EAAE,CAAC;IAAE,QAAQ,CAAC,EAAE,KAAK,CAAC,SAAS,CAAA;CAAE,CAE3D,CAAA"}
@@ -1,3 +0,0 @@
1
- import React from 'react';
2
- export const Footer = ({ children }) => (React.createElement("footer", { className: "e-footer" }, children));
3
- //# sourceMappingURL=Footer.js.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"Footer.js","sourceRoot":"","sources":["../../../../src/components/shared/Footer.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,MAAM,OAAO,CAAA;AAEzB,MAAM,CAAC,MAAM,MAAM,GAA6C,CAAC,EAAE,QAAQ,EAAE,EAAE,EAAE,CAAC,CAChF,gCAAQ,SAAS,EAAC,UAAU,IAAE,QAAQ,CAAU,CACjD,CAAA"}
@@ -1,6 +0,0 @@
1
- import React from 'react';
2
- import { ExamComponentProps } from '../../createRenderChildNodes';
3
- declare function Formula({ element, className }: ExamComponentProps): React.JSX.Element;
4
- declare const _default: React.MemoExoticComponent<typeof Formula>;
5
- export default _default;
6
- //# sourceMappingURL=Formula.d.ts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"Formula.d.ts","sourceRoot":"","sources":["../../../../src/components/shared/Formula.tsx"],"names":[],"mappings":"AACA,OAAO,KAAK,MAAM,OAAO,CAAA;AACzB,OAAO,EAAE,kBAAkB,EAAE,MAAM,8BAA8B,CAAA;AAGjE,iBAAS,OAAO,CAAC,EAAE,OAAO,EAAE,SAAS,EAAE,EAAE,kBAAkB,qBAe1D;;AAED,wBAAkC"}
@@ -1,13 +0,0 @@
1
- import classNames from 'classnames';
2
- import React from 'react';
3
- import { getAttribute } from '../../dom-utils';
4
- function Formula({ element, className }) {
5
- const svg = getAttribute(element, 'svg');
6
- const assistiveTitle = getAttribute(element, 'assistive-title');
7
- const isDisplayFormula = getAttribute(element, 'mode') === 'display';
8
- return (React.createElement(React.Fragment, null,
9
- React.createElement("span", { className: classNames('e-formula', { 'e-block e-text-center': isDisplayFormula }, className), dangerouslySetInnerHTML: { __html: svg }, "aria-hidden": "true" }),
10
- React.createElement("span", { className: "e-screen-reader-only" }, assistiveTitle || element.textContent)));
11
- }
12
- export default React.memo(Formula);
13
- //# sourceMappingURL=Formula.js.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"Formula.js","sourceRoot":"","sources":["../../../../src/components/shared/Formula.tsx"],"names":[],"mappings":"AAAA,OAAO,UAAU,MAAM,YAAY,CAAA;AACnC,OAAO,KAAK,MAAM,OAAO,CAAA;AAEzB,OAAO,EAAE,YAAY,EAAE,MAAM,iBAAiB,CAAA;AAE9C,SAAS,OAAO,CAAC,EAAE,OAAO,EAAE,SAAS,EAAsB;IACzD,MAAM,GAAG,GAAG,YAAY,CAAC,OAAO,EAAE,KAAK,CAAE,CAAA;IACzC,MAAM,cAAc,GAAG,YAAY,CAAC,OAAO,EAAE,iBAAiB,CAAC,CAAA;IAC/D,MAAM,gBAAgB,GAAG,YAAY,CAAC,OAAO,EAAE,MAAM,CAAC,KAAK,SAAS,CAAA;IAEpE,OAAO,CACL;QACE,8BACE,SAAS,EAAE,UAAU,CAAC,WAAW,EAAE,EAAE,uBAAuB,EAAE,gBAAgB,EAAE,EAAE,SAAS,CAAC,EAC5F,uBAAuB,EAAE,EAAE,MAAM,EAAE,GAAG,EAAE,iBAC5B,MAAM,GAClB;QACF,8BAAM,SAAS,EAAC,sBAAsB,IAAE,cAAc,IAAI,OAAO,CAAC,WAAW,CAAQ,CACpF,CACJ,CAAA;AACH,CAAC;AAED,eAAe,KAAK,CAAC,IAAI,CAAC,OAAO,CAAC,CAAA"}
@@ -1,6 +0,0 @@
1
- import React from 'react';
2
- import { ExamComponentProps } from '../../createRenderChildNodes';
3
- declare function Image({ element, className, renderChildNodes }: ExamComponentProps): React.JSX.Element;
4
- declare const _default: React.MemoExoticComponent<typeof Image>;
5
- export default _default;
6
- //# sourceMappingURL=Image.d.ts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"Image.d.ts","sourceRoot":"","sources":["../../../../src/components/shared/Image.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAqB,MAAM,OAAO,CAAA;AACzC,OAAO,EAAE,kBAAkB,EAAE,MAAM,8BAA8B,CAAA;AAQjE,iBAAS,KAAK,CAAC,EAAE,OAAO,EAAE,SAAS,EAAE,gBAAgB,EAAE,EAAE,kBAAkB,qBA8C1E;;AAED,wBAAgC"}
@@ -1,30 +0,0 @@
1
- import React, { useContext } from 'react';
2
- import { findChildElement, getAttribute, getNumericAttribute, queryAncestors } from '../../dom-utils';
3
- import { useExamTranslation } from '../../i18n';
4
- import { imageCaptionId } from '../../ids';
5
- import { CommonExamContext } from '../context/CommonExamContext';
6
- import ResponsiveMediaContainer from './internal/ResponsiveMediaContainer';
7
- import { isWhitespace } from '../../utils';
8
- function Image({ element, className, renderChildNodes }) {
9
- const { resolveAttachment } = useContext(CommonExamContext);
10
- const { t } = useExamTranslation();
11
- const src = getAttribute(element, 'src');
12
- const width = getNumericAttribute(element, 'width');
13
- const height = getNumericAttribute(element, 'height');
14
- const title = findChildElement(element, 'image-title');
15
- const children = title && renderChildNodes(title);
16
- const hasCaption = children != null && !children.every(isWhitespace);
17
- const caption = hasCaption ? children : undefined;
18
- const captionId = hasCaption ? imageCaptionId(element) : undefined;
19
- const imgUrl = resolveAttachment(src);
20
- const image = React.createElement("img", { className: "e-image", src: imgUrl, alt: "", "aria-labelledby": captionId });
21
- return (React.createElement(React.Fragment, null,
22
- React.createElement(ResponsiveMediaContainer, { className,
23
- width,
24
- height,
25
- caption,
26
- captionId,
27
- bordered: hasCaption || queryAncestors(element, 'choice-answer') != null }, queryAncestors(element, ['choice-answer', 'hint']) != null ? (image) : (React.createElement("a", { title: t.raw('zoom-in'), href: imgUrl, target: "original-picture", className: "e-zoomable", "aria-hidden": !hasCaption, tabIndex: -1 }, image)))));
28
- }
29
- export default React.memo(Image);
30
- //# sourceMappingURL=Image.js.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"Image.js","sourceRoot":"","sources":["../../../../src/components/shared/Image.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,EAAE,UAAU,EAAE,MAAM,OAAO,CAAA;AAEzC,OAAO,EAAE,gBAAgB,EAAE,YAAY,EAAE,mBAAmB,EAAE,cAAc,EAAE,MAAM,iBAAiB,CAAA;AACrG,OAAO,EAAE,kBAAkB,EAAE,MAAM,YAAY,CAAA;AAC/C,OAAO,EAAE,cAAc,EAAE,MAAM,WAAW,CAAA;AAC1C,OAAO,EAAE,iBAAiB,EAAE,MAAM,8BAA8B,CAAA;AAChE,OAAO,wBAAwB,MAAM,qCAAqC,CAAA;AAC1E,OAAO,EAAE,YAAY,EAAE,MAAM,aAAa,CAAA;AAE1C,SAAS,KAAK,CAAC,EAAE,OAAO,EAAE,SAAS,EAAE,gBAAgB,EAAsB;IACzE,MAAM,EAAE,iBAAiB,EAAE,GAAG,UAAU,CAAC,iBAAiB,CAAC,CAAA;IAC3D,MAAM,EAAE,CAAC,EAAE,GAAG,kBAAkB,EAAE,CAAA;IAElC,MAAM,GAAG,GAAG,YAAY,CAAC,OAAO,EAAE,KAAK,CAAE,CAAA;IACzC,MAAM,KAAK,GAAG,mBAAmB,CAAC,OAAO,EAAE,OAAO,CAAE,CAAA;IACpD,MAAM,MAAM,GAAG,mBAAmB,CAAC,OAAO,EAAE,QAAQ,CAAE,CAAA;IAEtD,MAAM,KAAK,GAAG,gBAAgB,CAAC,OAAO,EAAE,aAAa,CAAC,CAAA;IACtD,MAAM,QAAQ,GAAG,KAAK,IAAI,gBAAgB,CAAC,KAAK,CAAC,CAAA;IACjD,MAAM,UAAU,GAAG,QAAQ,IAAI,IAAI,IAAI,CAAC,QAAQ,CAAC,KAAK,CAAC,YAAY,CAAC,CAAA;IACpE,MAAM,OAAO,GAAG,UAAU,CAAC,CAAC,CAAC,QAAQ,CAAC,CAAC,CAAC,SAAS,CAAA;IACjD,MAAM,SAAS,GAAG,UAAU,CAAC,CAAC,CAAC,cAAc,CAAC,OAAO,CAAC,CAAC,CAAC,CAAC,SAAS,CAAA;IAElE,MAAM,MAAM,GAAG,iBAAiB,CAAC,GAAG,CAAC,CAAA;IACrC,MAAM,KAAK,GAAG,6BAAK,SAAS,EAAC,SAAS,EAAC,GAAG,EAAE,MAAM,EAAE,GAAG,EAAC,EAAE,qBAAkB,SAAS,GAAI,CAAA;IAEzF,OAAO,CACL;QACE,oBAAC,wBAAwB,IAErB,SAAS;YACT,KAAK;YACL,MAAM;YACN,OAAO;YACP,SAAS;YACT,QAAQ,EAAE,UAAU,IAAI,cAAc,CAAC,OAAO,EAAE,eAAe,CAAC,IAAI,IAAI,IAGzE,cAAc,CAAC,OAAO,EAAE,CAAC,eAAe,EAAE,MAAM,CAAC,CAAC,IAAI,IAAI,CAAC,CAAC,CAAC,CAC5D,KAAK,CACN,CAAC,CAAC,CAAC,CACF,2BACE,KAAK,EAAE,CAAC,CAAC,GAAG,CAAC,SAAS,CAAC,EACvB,IAAI,EAAE,MAAM,EACZ,MAAM,EAAC,kBAAkB,EACzB,SAAS,EAAC,YAAY,iBACT,CAAC,UAAU,EACxB,QAAQ,EAAE,CAAC,CAAC,IAEX,KAAK,CACJ,CACL,CACwB,CAC1B,CACJ,CAAA;AACH,CAAC;AAED,eAAe,KAAK,CAAC,IAAI,CAAC,KAAK,CAAC,CAAA"}
@@ -1,6 +0,0 @@
1
- import React from 'react';
2
- import { ExamComponentProps } from '../../createRenderChildNodes';
3
- declare function ImageOverlay({ element, renderChildNodes }: ExamComponentProps): React.JSX.Element;
4
- declare const _default: React.MemoExoticComponent<typeof ImageOverlay>;
5
- export default _default;
6
- //# sourceMappingURL=ImageOverlay.d.ts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"ImageOverlay.d.ts","sourceRoot":"","sources":["../../../../src/components/shared/ImageOverlay.tsx"],"names":[],"mappings":"AAIA,OAAO,KAA+B,MAAM,OAAO,CAAA;AACnD,OAAO,EAAE,kBAAkB,EAAE,MAAM,8BAA8B,CAAA;AAKjE,iBAAS,YAAY,CAAC,EAAE,OAAO,EAAE,gBAAgB,EAAE,EAAE,kBAAkB,qBAsCtE;;AAwDD,wBAAuC"}
@@ -1,43 +0,0 @@
1
- import { faEye, faEyeSlash } from '@fortawesome/free-solid-svg-icons';
2
- import { FontAwesomeIcon } from '@fortawesome/react-fontawesome';
3
- import classNames from 'classnames';
4
- import * as _ from 'lodash-es';
5
- import React, { useContext, useState } from 'react';
6
- import { findChildElement, getNumericAttribute, mapChildElements } from '../../dom-utils';
7
- import { CommonExamContext } from '../context/CommonExamContext';
8
- import ResponsiveMediaContainer from './internal/ResponsiveMediaContainer';
9
- function ImageOverlay({ element, renderChildNodes }) {
10
- const [opacities, setOpacities] = useState(() => _.times(element.children.length, i => (i === 0 ? 1 : 0)));
11
- const mkSetOpacity = (index) => (opacity) => {
12
- const updatedOpacities = [...opacities];
13
- updatedOpacities[index] = opacity;
14
- setOpacities(updatedOpacities);
15
- };
16
- return (React.createElement("div", { className: "e-image-overlay e-mrg-b-1" },
17
- React.createElement("div", { className: "e-columns e-columns--center-h" },
18
- React.createElement("div", null, mapChildElements(element, (child, index) => (React.createElement(Slider, { key: index, opacity: opacities[index], element: child, setOpacity: mkSetOpacity(index), renderChildNodes: renderChildNodes }))))),
19
- React.createElement("div", null,
20
- React.createElement("div", { className: "e-image-overlay__images-wrapper" }, mapChildElements(element, (child, index) => (React.createElement(ImageOverlayImage, { key: index, element: child, renderChildNodes: renderChildNodes, opacity: opacities[index], absolute: index > 0 })))))));
21
- }
22
- function Slider({ opacity, setOpacity, element, renderChildNodes }) {
23
- const title = findChildElement(element, 'image-title');
24
- return (React.createElement("div", { className: "e-columns e-columns--center-v e-mrg-b-1" },
25
- React.createElement("div", { className: "e-column e-text-right e-mrg-r-1" }, title && renderChildNodes(title)),
26
- React.createElement(FontAwesomeIcon, { icon: faEyeSlash, className: "e-mrg-r-1 e-pointer", onClick: () => setOpacity(0) }),
27
- React.createElement("input", { type: "range", min: 0, max: 1, step: 0.01, value: opacity, onChange: e => setOpacity(Number(e.target.value)) }),
28
- React.createElement(FontAwesomeIcon, { icon: faEye, className: "e-mrg-l-1 e-pointer", onClick: () => setOpacity(1) })));
29
- }
30
- function ImageOverlayImage({ element, absolute, opacity }) {
31
- const src = element.getAttribute('src');
32
- const width = getNumericAttribute(element, 'width');
33
- const height = getNumericAttribute(element, 'height');
34
- const imgUrl = useContext(CommonExamContext).resolveAttachment(src);
35
- return (React.createElement("div", { className: classNames('e-columns e-columns--center-h', { 'e-image-overlay__image-absolute': absolute }), style: {
36
- opacity: opacity
37
- } },
38
- React.createElement(ResponsiveMediaContainer, { width,
39
- height },
40
- React.createElement("img", { className: "e-image", src: imgUrl }))));
41
- }
42
- export default React.memo(ImageOverlay);
43
- //# sourceMappingURL=ImageOverlay.js.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"ImageOverlay.js","sourceRoot":"","sources":["../../../../src/components/shared/ImageOverlay.tsx"],"names":[],"mappings":"AAAA,OAAO,EAAE,KAAK,EAAE,UAAU,EAAE,MAAM,mCAAmC,CAAA;AACrE,OAAO,EAAE,eAAe,EAAE,MAAM,gCAAgC,CAAA;AAChE,OAAO,UAAU,MAAM,YAAY,CAAA;AACnC,OAAO,KAAK,CAAC,MAAM,WAAW,CAAA;AAC9B,OAAO,KAAK,EAAE,EAAE,UAAU,EAAE,QAAQ,EAAE,MAAM,OAAO,CAAA;AAEnD,OAAO,EAAE,gBAAgB,EAAE,mBAAmB,EAAE,gBAAgB,EAAE,MAAM,iBAAiB,CAAA;AACzF,OAAO,EAAE,iBAAiB,EAAE,MAAM,8BAA8B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AAC,iBAAiB,CAAC,GAAG,CAAC,CAAA;IACnE,OAAO,CACL,6BACE,SAAS,EAAE,UAAU,CAAC,+BAA+B,EAAE,EAAE,iCAAiC,EAAE,QAAQ,EAAE,CAAC,EACvG,KAAK,EAAE;YACL,OAAO,EAAE,OAAO;SACjB;QAED,oBAAC,wBAAwB,IAErB,KAAK;YACL,MAAM;YAGR,6BAAK,SAAS,EAAC,SAAS,EAAC,GAAG,EAAE,MAAM,GAAI,CACf,CACvB,CACP,CAAA;AACH,CAAC;AAED,eAAe,KAAK,CAAC,IAAI,CAAC,YAAY,CAAC,CAAA"}
@@ -1,4 +0,0 @@
1
- import React from 'react';
2
- import { ExamComponentProps } from '../../createRenderChildNodes';
3
- export declare function QuestionNumber({ element }: ExamComponentProps): React.JSX.Element;
4
- //# sourceMappingURL=QuestionNumber.d.ts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"QuestionNumber.d.ts","sourceRoot":"","sources":["../../../../src/components/shared/QuestionNumber.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAqB,MAAM,OAAO,CAAA;AACzC,OAAO,EAAE,kBAAkB,EAAE,MAAM,8BAA8B,CAAA;AAIjE,wBAAgB,cAAc,CAAC,EAAE,OAAO,EAAE,EAAE,kBAAkB,qBAS7D"}
@@ -1,12 +0,0 @@
1
- import React, { useContext } from 'react';
2
- import { QuestionContext } from '../context/QuestionContext';
3
- import * as _ from 'lodash-es';
4
- export function QuestionNumber({ element }) {
5
- const suffix = element.getAttribute('suffix');
6
- const { displayNumber } = useContext(QuestionContext);
7
- return (React.createElement(React.Fragment, null,
8
- _.first(displayNumber.split('.')),
9
- ".",
10
- suffix));
11
- }
12
- //# sourceMappingURL=QuestionNumber.js.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"QuestionNumber.js","sourceRoot":"","sources":["../../../../src/components/shared/QuestionNumber.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,EAAE,UAAU,EAAE,MAAM,OAAO,CAAA;AAEzC,OAAO,EAAE,eAAe,EAAE,MAAM,4BAA4B,CAAA;AAC5D,OAAO,KAAK,CAAC,MAAM,WAAW,CAAA;AAE9B,MAAM,UAAU,cAAc,CAAC,EAAE,OAAO,EAAsB;IAC5D,MAAM,MAAM,GAAG,OAAO,CAAC,YAAY,CAAC,QAAQ,CAAE,CAAA;IAC9C,MAAM,EAAE,aAAa,EAAE,GAAG,UAAU,CAAC,eAAe,CAAC,CAAA;IAErD,OAAO,CACL;QACG,CAAC,CAAC,KAAK,CAAC,aAAa,CAAC,KAAK,CAAC,GAAG,CAAC,CAAE;;QAAG,MAAM,CAC3C,CACJ,CAAA;AACH,CAAC"}
@@ -1,6 +0,0 @@
1
- import React from 'react';
2
- import { ExamComponentProps } from '../../createRenderChildNodes';
3
- declare function Reference({ element, renderChildNodes }: ExamComponentProps): React.JSX.Element;
4
- declare const _default: React.MemoExoticComponent<typeof Reference>;
5
- export default _default;
6
- //# sourceMappingURL=Reference.d.ts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"Reference.d.ts","sourceRoot":"","sources":["../../../../src/components/shared/Reference.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAqB,MAAM,OAAO,CAAA;AACzC,OAAO,EAAE,kBAAkB,EAAE,MAAM,8BAA8B,CAAA;AAOjE,iBAAS,SAAS,CAAC,EAAE,OAAO,EAAE,gBAAgB,EAAE,EAAE,kBAAkB,qBAqDnE;;AAgCD,wBAAoC"}