@magmamath/students-features 0.4.0-rc.0 → 0.4.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (623) hide show
  1. package/dist/commonjs/features/celebrations/components/Celebrations.js +51 -0
  2. package/dist/commonjs/features/celebrations/components/Celebrations.js.map +1 -0
  3. package/dist/commonjs/features/celebrations/components/Particle.js +84 -0
  4. package/dist/commonjs/features/celebrations/components/Particle.js.map +1 -0
  5. package/dist/commonjs/features/celebrations/components/ParticleBatch.js +45 -0
  6. package/dist/commonjs/features/celebrations/components/ParticleBatch.js.map +1 -0
  7. package/dist/commonjs/features/celebrations/components/Spark.js +23 -0
  8. package/dist/commonjs/features/celebrations/components/Spark.js.map +1 -0
  9. package/dist/commonjs/features/celebrations/config.js +199 -0
  10. package/dist/commonjs/features/celebrations/config.js.map +1 -0
  11. package/dist/commonjs/features/celebrations/helpers.js +94 -0
  12. package/dist/commonjs/features/celebrations/helpers.js.map +1 -0
  13. package/dist/commonjs/features/celebrations/index.js +28 -0
  14. package/dist/commonjs/features/celebrations/index.js.map +1 -0
  15. package/dist/commonjs/features/celebrations/types.js +15 -0
  16. package/dist/commonjs/features/celebrations/types.js.map +1 -0
  17. package/dist/commonjs/features/chatbot/components/ChatMessage/ChatMessage.js.map +1 -1
  18. package/dist/commonjs/features/chatbot/components/ChatMessage/ReceivedMessage.js +4 -6
  19. package/dist/commonjs/features/chatbot/components/ChatMessage/ReceivedMessage.js.map +1 -1
  20. package/dist/commonjs/features/chatbot/components/ChatMessages/ChatbotMessages.js +1 -12
  21. package/dist/commonjs/features/chatbot/components/ChatMessages/ChatbotMessages.js.map +1 -1
  22. package/dist/commonjs/features/chatbot/components/Chatbot.js +1 -5
  23. package/dist/commonjs/features/chatbot/components/Chatbot.js.map +1 -1
  24. package/dist/commonjs/features/chatbot/index.js +7 -0
  25. package/dist/commonjs/features/chatbot/index.js.map +1 -1
  26. package/dist/commonjs/features/chatbot/model/{ChatBotThreadManager.js → ChatBotMessageHandler.js} +17 -28
  27. package/dist/commonjs/features/chatbot/model/ChatBotMessageHandler.js.map +1 -0
  28. package/dist/commonjs/features/chatbot/model/ChatBotModel.js +117 -136
  29. package/dist/commonjs/features/chatbot/model/ChatBotModel.js.map +1 -1
  30. package/dist/commonjs/features/chatbot/model/DefaultMessageCreator.js +1 -0
  31. package/dist/commonjs/features/chatbot/model/DefaultMessageCreator.js.map +1 -1
  32. package/dist/commonjs/features/chatbot/model/ThreadItem.js +8 -21
  33. package/dist/commonjs/features/chatbot/model/ThreadItem.js.map +1 -1
  34. package/dist/commonjs/features/chatbot/model/{ChatbotApi.js → api.js} +1 -16
  35. package/dist/commonjs/features/chatbot/model/api.js.map +1 -0
  36. package/dist/commonjs/features/chatbot/model/messagesHelper.js +5 -1
  37. package/dist/commonjs/features/chatbot/model/messagesHelper.js.map +1 -1
  38. package/dist/commonjs/features/chatbot/model/t2s.js +6 -0
  39. package/dist/commonjs/features/chatbot/model/t2s.js.map +1 -1
  40. package/dist/commonjs/features/chatbot/model/translation.helpers.js.map +1 -1
  41. package/dist/commonjs/features/chatbot/model/translation.js +45 -54
  42. package/dist/commonjs/features/chatbot/model/translation.js.map +1 -1
  43. package/dist/commonjs/features/chatbot/types/api.types.js +0 -4
  44. package/dist/commonjs/features/chatbot/types/model.types.js.map +1 -1
  45. package/dist/commonjs/features/endOfAssignment/components/CheatDetected/CheatDetected.js +58 -0
  46. package/dist/commonjs/features/endOfAssignment/components/CheatDetected/CheatDetected.js.map +1 -0
  47. package/dist/commonjs/features/endOfAssignment/components/CorrectAnswer/AnimatedCard.js +247 -0
  48. package/dist/commonjs/features/endOfAssignment/components/CorrectAnswer/AnimatedCard.js.map +1 -0
  49. package/dist/commonjs/features/endOfAssignment/components/CorrectAnswer/CorrectAnswer.js +131 -0
  50. package/dist/commonjs/features/endOfAssignment/components/CorrectAnswer/CorrectAnswer.js.map +1 -0
  51. package/dist/commonjs/features/endOfAssignment/components/CorrectAnswer/CorrectAnswerSparks.js +56 -0
  52. package/dist/commonjs/features/endOfAssignment/components/CorrectAnswer/CorrectAnswerSparks.js.map +1 -0
  53. package/dist/commonjs/features/endOfAssignment/components/CorrectAnswer/GoodDrawingSparks.js +68 -0
  54. package/dist/commonjs/features/endOfAssignment/components/CorrectAnswer/GoodDrawingSparks.js.map +1 -0
  55. package/dist/commonjs/features/endOfAssignment/components/CorrectAnswer/Spark.js +53 -0
  56. package/dist/commonjs/features/endOfAssignment/components/CorrectAnswer/Spark.js.map +1 -0
  57. package/dist/commonjs/features/endOfAssignment/components/EOAModal.js +47 -0
  58. package/dist/commonjs/features/endOfAssignment/components/EOAModal.js.map +1 -0
  59. package/dist/commonjs/features/endOfAssignment/components/ExamLeave/ExamLeave.js +69 -0
  60. package/dist/commonjs/features/endOfAssignment/components/ExamLeave/ExamLeave.js.map +1 -0
  61. package/dist/commonjs/features/endOfAssignment/components/ExamPaused/ExamPaused.js +55 -0
  62. package/dist/commonjs/features/endOfAssignment/components/ExamPaused/ExamPaused.js.map +1 -0
  63. package/dist/commonjs/features/endOfAssignment/components/ExamSubmit/ExamSubmit.js +102 -0
  64. package/dist/commonjs/features/endOfAssignment/components/ExamSubmit/ExamSubmit.js.map +1 -0
  65. package/dist/commonjs/features/endOfAssignment/components/ExamSubmit/ExamSubmitContent.js +83 -0
  66. package/dist/commonjs/features/endOfAssignment/components/ExamSubmit/ExamSubmitContent.js.map +1 -0
  67. package/dist/commonjs/features/endOfAssignment/components/ExamSubmit/blurred-card.png +0 -0
  68. package/dist/commonjs/features/endOfAssignment/components/Modal/Modal.js +96 -0
  69. package/dist/commonjs/features/endOfAssignment/components/Modal/Modal.js.map +1 -0
  70. package/dist/commonjs/features/endOfAssignment/components/Modal/ModalBackground.js +44 -0
  71. package/dist/commonjs/features/endOfAssignment/components/Modal/ModalBackground.js.map +1 -0
  72. package/dist/commonjs/features/endOfAssignment/components/Modal/assets/SunrisingIcon.js +233 -0
  73. package/dist/commonjs/features/endOfAssignment/components/Modal/assets/SunrisingIcon.js.map +1 -0
  74. package/dist/commonjs/features/endOfAssignment/components/Modal/assets/TrophyIcon.js +63 -0
  75. package/dist/commonjs/features/endOfAssignment/components/Modal/assets/TrophyIcon.js.map +1 -0
  76. package/dist/commonjs/features/endOfAssignment/components/Modal/model.js +34 -0
  77. package/dist/commonjs/features/endOfAssignment/components/Modal/model.js.map +1 -0
  78. package/dist/commonjs/features/endOfAssignment/components/NoAnswer/NoAnswer.js +91 -0
  79. package/dist/commonjs/features/endOfAssignment/components/NoAnswer/NoAnswer.js.map +1 -0
  80. package/dist/commonjs/features/endOfAssignment/components/NoAnswer/NoAnswerContent.js +107 -0
  81. package/dist/commonjs/features/endOfAssignment/components/NoAnswer/NoAnswerContent.js.map +1 -0
  82. package/dist/commonjs/features/endOfAssignment/constants.js +55 -0
  83. package/dist/commonjs/features/endOfAssignment/constants.js.map +1 -0
  84. package/dist/commonjs/features/endOfAssignment/helpers.js +64 -0
  85. package/dist/commonjs/features/endOfAssignment/helpers.js.map +1 -0
  86. package/dist/commonjs/features/endOfAssignment/hooks/useSparkAnimation.js +51 -0
  87. package/dist/commonjs/features/endOfAssignment/hooks/useSparkAnimation.js.map +1 -0
  88. package/dist/commonjs/features/endOfAssignment/index.js +40 -0
  89. package/dist/commonjs/features/endOfAssignment/index.js.map +1 -0
  90. package/dist/commonjs/features/endOfAssignment/model/model.js +53 -0
  91. package/dist/commonjs/features/endOfAssignment/model/model.js.map +1 -0
  92. package/dist/commonjs/features/endOfAssignment/types.js +33 -0
  93. package/dist/commonjs/features/endOfAssignment/types.js.map +1 -0
  94. package/dist/commonjs/features/endOfAssignment/ui/EOABadge.js +43 -0
  95. package/dist/commonjs/features/endOfAssignment/ui/EOABadge.js.map +1 -0
  96. package/dist/commonjs/features/endOfAssignment/ui/PracticeButton.js +30 -0
  97. package/dist/commonjs/features/endOfAssignment/ui/PracticeButton.js.map +1 -0
  98. package/dist/commonjs/features/endOfAssignment/ui/PracticeButtonGroup.js +65 -0
  99. package/dist/commonjs/features/endOfAssignment/ui/PracticeButtonGroup.js.map +1 -0
  100. package/dist/commonjs/features/endOfAssignment/ui/SparkIcon.js +29 -0
  101. package/dist/commonjs/features/endOfAssignment/ui/SparkIcon.js.map +1 -0
  102. package/dist/commonjs/features/endOfAssignment/ui/ThumbUpIcon.js +32 -0
  103. package/dist/commonjs/features/endOfAssignment/ui/ThumbUpIcon.js.map +1 -0
  104. package/dist/commonjs/index.js +24 -0
  105. package/dist/commonjs/index.js.map +1 -1
  106. package/dist/commonjs/lib/effector/createEntityFieldStore.js +0 -4
  107. package/dist/commonjs/lib/effector/createEntityFieldStore.js.map +1 -1
  108. package/dist/commonjs/shared/icons/Halloween.js +54 -0
  109. package/dist/commonjs/shared/icons/Halloween.js.map +1 -0
  110. package/dist/commonjs/shared/icons/Pi.js +30 -0
  111. package/dist/commonjs/shared/icons/Pi.js.map +1 -0
  112. package/dist/commonjs/shared/icons/Star.js +30 -0
  113. package/dist/commonjs/shared/icons/Star.js.map +1 -0
  114. package/dist/commonjs/shared/icons/{StopIcon.js → Valentine.js} +9 -12
  115. package/dist/commonjs/shared/icons/Valentine.js.map +1 -0
  116. package/dist/commonjs/shared/icons/Winter.js +32 -0
  117. package/dist/commonjs/shared/icons/Winter.js.map +1 -0
  118. package/dist/commonjs/shared/icons/icon.types.js +0 -4
  119. package/dist/module/features/celebrations/components/Celebrations.js +45 -0
  120. package/dist/module/features/celebrations/components/Celebrations.js.map +1 -0
  121. package/dist/module/features/celebrations/components/Particle.js +76 -0
  122. package/dist/module/features/celebrations/components/Particle.js.map +1 -0
  123. package/dist/module/features/celebrations/components/ParticleBatch.js +38 -0
  124. package/dist/module/features/celebrations/components/ParticleBatch.js.map +1 -0
  125. package/dist/module/features/celebrations/components/Spark.js +17 -0
  126. package/dist/module/features/celebrations/components/Spark.js.map +1 -0
  127. package/dist/module/features/celebrations/config.js +194 -0
  128. package/dist/module/features/celebrations/config.js.map +1 -0
  129. package/dist/module/features/celebrations/helpers.js +87 -0
  130. package/dist/module/features/celebrations/helpers.js.map +1 -0
  131. package/dist/module/features/celebrations/index.js +5 -0
  132. package/dist/module/features/celebrations/index.js.map +1 -0
  133. package/dist/module/features/celebrations/types.js +11 -0
  134. package/dist/module/features/celebrations/types.js.map +1 -0
  135. package/dist/module/features/chatbot/components/ChatMessage/ChatMessage.js.map +1 -1
  136. package/dist/module/features/chatbot/components/ChatMessage/ReceivedMessage.js +4 -6
  137. package/dist/module/features/chatbot/components/ChatMessage/ReceivedMessage.js.map +1 -1
  138. package/dist/module/features/chatbot/components/ChatMessages/ChatbotMessages.js +1 -12
  139. package/dist/module/features/chatbot/components/ChatMessages/ChatbotMessages.js.map +1 -1
  140. package/dist/module/features/chatbot/components/Chatbot.js +2 -6
  141. package/dist/module/features/chatbot/components/Chatbot.js.map +1 -1
  142. package/dist/module/features/chatbot/index.js +1 -0
  143. package/dist/module/features/chatbot/index.js.map +1 -1
  144. package/dist/module/features/chatbot/model/{ChatBotThreadManager.js → ChatBotMessageHandler.js} +15 -26
  145. package/dist/module/features/chatbot/model/ChatBotMessageHandler.js.map +1 -0
  146. package/dist/module/features/chatbot/model/ChatBotModel.js +119 -138
  147. package/dist/module/features/chatbot/model/ChatBotModel.js.map +1 -1
  148. package/dist/module/features/chatbot/model/DefaultMessageCreator.js +1 -0
  149. package/dist/module/features/chatbot/model/DefaultMessageCreator.js.map +1 -1
  150. package/dist/module/features/chatbot/model/ThreadItem.js +8 -21
  151. package/dist/module/features/chatbot/model/ThreadItem.js.map +1 -1
  152. package/dist/module/features/chatbot/model/{ChatbotApi.js → api.js} +1 -16
  153. package/dist/module/features/chatbot/model/api.js.map +1 -0
  154. package/dist/module/features/chatbot/model/messagesHelper.js +5 -1
  155. package/dist/module/features/chatbot/model/messagesHelper.js.map +1 -1
  156. package/dist/module/features/chatbot/model/t2s.js +7 -1
  157. package/dist/module/features/chatbot/model/t2s.js.map +1 -1
  158. package/dist/module/features/chatbot/model/translation.helpers.js.map +1 -1
  159. package/dist/module/features/chatbot/model/translation.js +45 -54
  160. package/dist/module/features/chatbot/model/translation.js.map +1 -1
  161. package/dist/module/features/chatbot/types/api.types.js +0 -2
  162. package/dist/module/features/chatbot/types/model.types.js.map +1 -1
  163. package/dist/module/features/endOfAssignment/components/CheatDetected/CheatDetected.js +52 -0
  164. package/dist/module/features/endOfAssignment/components/CheatDetected/CheatDetected.js.map +1 -0
  165. package/dist/module/features/endOfAssignment/components/CorrectAnswer/AnimatedCard.js +241 -0
  166. package/dist/module/features/endOfAssignment/components/CorrectAnswer/AnimatedCard.js.map +1 -0
  167. package/dist/module/features/endOfAssignment/components/CorrectAnswer/CorrectAnswer.js +124 -0
  168. package/dist/module/features/endOfAssignment/components/CorrectAnswer/CorrectAnswer.js.map +1 -0
  169. package/dist/module/features/endOfAssignment/components/CorrectAnswer/CorrectAnswerSparks.js +50 -0
  170. package/dist/module/features/endOfAssignment/components/CorrectAnswer/CorrectAnswerSparks.js.map +1 -0
  171. package/dist/module/features/endOfAssignment/components/CorrectAnswer/GoodDrawingSparks.js +62 -0
  172. package/dist/module/features/endOfAssignment/components/CorrectAnswer/GoodDrawingSparks.js.map +1 -0
  173. package/dist/module/features/endOfAssignment/components/CorrectAnswer/Spark.js +47 -0
  174. package/dist/module/features/endOfAssignment/components/CorrectAnswer/Spark.js.map +1 -0
  175. package/dist/module/features/endOfAssignment/components/EOAModal.js +41 -0
  176. package/dist/module/features/endOfAssignment/components/EOAModal.js.map +1 -0
  177. package/dist/module/features/endOfAssignment/components/ExamLeave/ExamLeave.js +63 -0
  178. package/dist/module/features/endOfAssignment/components/ExamLeave/ExamLeave.js.map +1 -0
  179. package/dist/module/features/endOfAssignment/components/ExamPaused/ExamPaused.js +49 -0
  180. package/dist/module/features/endOfAssignment/components/ExamPaused/ExamPaused.js.map +1 -0
  181. package/dist/module/features/endOfAssignment/components/ExamSubmit/ExamSubmit.js +96 -0
  182. package/dist/module/features/endOfAssignment/components/ExamSubmit/ExamSubmit.js.map +1 -0
  183. package/dist/module/features/endOfAssignment/components/ExamSubmit/ExamSubmitContent.js +77 -0
  184. package/dist/module/features/endOfAssignment/components/ExamSubmit/ExamSubmitContent.js.map +1 -0
  185. package/dist/module/features/endOfAssignment/components/ExamSubmit/blurred-card.png +0 -0
  186. package/dist/module/features/endOfAssignment/components/Modal/Modal.js +89 -0
  187. package/dist/module/features/endOfAssignment/components/Modal/Modal.js.map +1 -0
  188. package/dist/module/features/endOfAssignment/components/Modal/ModalBackground.js +38 -0
  189. package/dist/module/features/endOfAssignment/components/Modal/ModalBackground.js.map +1 -0
  190. package/dist/module/features/endOfAssignment/components/Modal/assets/SunrisingIcon.js +226 -0
  191. package/dist/module/features/endOfAssignment/components/Modal/assets/SunrisingIcon.js.map +1 -0
  192. package/dist/module/features/endOfAssignment/components/Modal/assets/TrophyIcon.js +56 -0
  193. package/dist/module/features/endOfAssignment/components/Modal/assets/TrophyIcon.js.map +1 -0
  194. package/dist/module/features/endOfAssignment/components/Modal/model.js +29 -0
  195. package/dist/module/features/endOfAssignment/components/Modal/model.js.map +1 -0
  196. package/dist/module/features/endOfAssignment/components/NoAnswer/NoAnswer.js +85 -0
  197. package/dist/module/features/endOfAssignment/components/NoAnswer/NoAnswer.js.map +1 -0
  198. package/dist/module/features/endOfAssignment/components/NoAnswer/NoAnswerContent.js +100 -0
  199. package/dist/module/features/endOfAssignment/components/NoAnswer/NoAnswerContent.js.map +1 -0
  200. package/dist/module/features/endOfAssignment/constants.js +51 -0
  201. package/dist/module/features/endOfAssignment/constants.js.map +1 -0
  202. package/dist/module/features/endOfAssignment/helpers.js +58 -0
  203. package/dist/module/features/endOfAssignment/helpers.js.map +1 -0
  204. package/dist/module/features/endOfAssignment/hooks/useSparkAnimation.js +46 -0
  205. package/dist/module/features/endOfAssignment/hooks/useSparkAnimation.js.map +1 -0
  206. package/dist/module/features/endOfAssignment/index.js +6 -0
  207. package/dist/module/features/endOfAssignment/index.js.map +1 -0
  208. package/dist/module/features/endOfAssignment/model/model.js +48 -0
  209. package/dist/module/features/endOfAssignment/model/model.js.map +1 -0
  210. package/dist/module/features/endOfAssignment/types.js +29 -0
  211. package/dist/module/features/endOfAssignment/types.js.map +1 -0
  212. package/dist/module/features/endOfAssignment/ui/EOABadge.js +37 -0
  213. package/dist/module/features/endOfAssignment/ui/EOABadge.js.map +1 -0
  214. package/dist/module/features/endOfAssignment/ui/PracticeButton.js +24 -0
  215. package/dist/module/features/endOfAssignment/ui/PracticeButton.js.map +1 -0
  216. package/dist/module/features/endOfAssignment/ui/PracticeButtonGroup.js +58 -0
  217. package/dist/module/features/endOfAssignment/ui/PracticeButtonGroup.js.map +1 -0
  218. package/dist/module/features/endOfAssignment/ui/SparkIcon.js +21 -0
  219. package/dist/module/features/endOfAssignment/ui/SparkIcon.js.map +1 -0
  220. package/dist/module/features/endOfAssignment/ui/ThumbUpIcon.js +24 -0
  221. package/dist/module/features/endOfAssignment/ui/ThumbUpIcon.js.map +1 -0
  222. package/dist/module/index.js +2 -0
  223. package/dist/module/index.js.map +1 -1
  224. package/dist/module/lib/effector/createEntityFieldStore.js +0 -4
  225. package/dist/module/lib/effector/createEntityFieldStore.js.map +1 -1
  226. package/dist/module/shared/icons/Halloween.js +47 -0
  227. package/dist/module/shared/icons/Halloween.js.map +1 -0
  228. package/dist/module/shared/icons/Pi.js +23 -0
  229. package/dist/module/shared/icons/Pi.js.map +1 -0
  230. package/dist/module/shared/icons/Star.js +23 -0
  231. package/dist/module/shared/icons/Star.js.map +1 -0
  232. package/dist/module/shared/icons/Valentine.js +23 -0
  233. package/dist/module/shared/icons/Valentine.js.map +1 -0
  234. package/dist/module/shared/icons/Winter.js +25 -0
  235. package/dist/module/shared/icons/Winter.js.map +1 -0
  236. package/dist/module/shared/icons/icon.types.js +0 -2
  237. package/dist/typescript/commonjs/features/celebrations/components/Celebrations.d.ts +10 -0
  238. package/dist/typescript/commonjs/features/celebrations/components/Celebrations.d.ts.map +1 -0
  239. package/dist/typescript/commonjs/features/celebrations/components/Particle.d.ts +19 -0
  240. package/dist/typescript/commonjs/features/celebrations/components/Particle.d.ts.map +1 -0
  241. package/dist/typescript/commonjs/features/celebrations/components/ParticleBatch.d.ts +26 -0
  242. package/dist/typescript/commonjs/features/celebrations/components/ParticleBatch.d.ts.map +1 -0
  243. package/dist/typescript/commonjs/features/celebrations/components/Spark.d.ts +4 -0
  244. package/dist/typescript/commonjs/features/celebrations/components/Spark.d.ts.map +1 -0
  245. package/dist/typescript/commonjs/features/celebrations/config.d.ts +167 -0
  246. package/dist/typescript/commonjs/features/celebrations/config.d.ts.map +1 -0
  247. package/dist/typescript/commonjs/features/celebrations/helpers.d.ts +6 -0
  248. package/dist/typescript/commonjs/features/celebrations/helpers.d.ts.map +1 -0
  249. package/dist/typescript/commonjs/features/celebrations/index.d.ts +3 -0
  250. package/dist/typescript/commonjs/features/celebrations/index.d.ts.map +1 -0
  251. package/dist/typescript/commonjs/features/celebrations/types.d.ts +11 -0
  252. package/dist/typescript/commonjs/features/celebrations/types.d.ts.map +1 -0
  253. package/dist/typescript/commonjs/features/chatbot/components/ChatMessage/ChatMessage.d.ts +0 -1
  254. package/dist/typescript/commonjs/features/chatbot/components/ChatMessage/ChatMessage.d.ts.map +1 -1
  255. package/dist/typescript/commonjs/features/chatbot/components/ChatMessage/ReceivedMessage.d.ts +1 -1
  256. package/dist/typescript/commonjs/features/chatbot/components/ChatMessage/ReceivedMessage.d.ts.map +1 -1
  257. package/dist/typescript/commonjs/features/chatbot/components/ChatMessages/ChatbotMessages.d.ts.map +1 -1
  258. package/dist/typescript/commonjs/features/chatbot/components/Chatbot.d.ts.map +1 -1
  259. package/dist/typescript/commonjs/features/chatbot/index.d.ts +3 -4
  260. package/dist/typescript/commonjs/features/chatbot/index.d.ts.map +1 -1
  261. package/dist/typescript/commonjs/features/chatbot/model/{ChatBotThreadManager.d.ts → ChatBotMessageHandler.d.ts} +8 -11
  262. package/dist/typescript/commonjs/features/chatbot/model/ChatBotMessageHandler.d.ts.map +1 -0
  263. package/dist/typescript/commonjs/features/chatbot/model/ChatBotModel.d.ts +14 -19
  264. package/dist/typescript/commonjs/features/chatbot/model/ChatBotModel.d.ts.map +1 -1
  265. package/dist/typescript/commonjs/features/chatbot/model/DefaultMessageCreator.d.ts +2 -3
  266. package/dist/typescript/commonjs/features/chatbot/model/DefaultMessageCreator.d.ts.map +1 -1
  267. package/dist/typescript/commonjs/features/chatbot/model/ThreadItem.d.ts +6 -12
  268. package/dist/typescript/commonjs/features/chatbot/model/ThreadItem.d.ts.map +1 -1
  269. package/dist/typescript/commonjs/features/chatbot/model/{ChatbotApi.d.ts → api.d.ts} +3 -4
  270. package/dist/typescript/commonjs/features/chatbot/model/api.d.ts.map +1 -0
  271. package/dist/typescript/commonjs/features/chatbot/model/messagesHelper.d.ts +4 -3
  272. package/dist/typescript/commonjs/features/chatbot/model/messagesHelper.d.ts.map +1 -1
  273. package/dist/typescript/commonjs/features/chatbot/model/t2s.d.ts +4 -2
  274. package/dist/typescript/commonjs/features/chatbot/model/t2s.d.ts.map +1 -1
  275. package/dist/typescript/commonjs/features/chatbot/model/translation.d.ts +8 -7
  276. package/dist/typescript/commonjs/features/chatbot/model/translation.d.ts.map +1 -1
  277. package/dist/typescript/commonjs/features/chatbot/model/translation.helpers.d.ts +1 -2
  278. package/dist/typescript/commonjs/features/chatbot/model/translation.helpers.d.ts.map +1 -1
  279. package/dist/typescript/commonjs/features/chatbot/types/api.types.d.ts +11 -2
  280. package/dist/typescript/commonjs/features/chatbot/types/api.types.d.ts.map +1 -1
  281. package/dist/typescript/commonjs/features/chatbot/types/model.types.d.ts +19 -26
  282. package/dist/typescript/commonjs/features/chatbot/types/model.types.d.ts.map +1 -1
  283. package/dist/typescript/commonjs/features/chatbot/types/translation.types.d.ts +1 -2
  284. package/dist/typescript/commonjs/features/chatbot/types/translation.types.d.ts.map +1 -1
  285. package/dist/typescript/commonjs/features/endOfAssignment/components/CheatDetected/CheatDetected.d.ts +4 -0
  286. package/dist/typescript/commonjs/features/endOfAssignment/components/CheatDetected/CheatDetected.d.ts.map +1 -0
  287. package/dist/typescript/commonjs/features/endOfAssignment/components/CorrectAnswer/AnimatedCard.d.ts +15 -0
  288. package/dist/typescript/commonjs/features/endOfAssignment/components/CorrectAnswer/AnimatedCard.d.ts.map +1 -0
  289. package/dist/typescript/commonjs/features/endOfAssignment/components/CorrectAnswer/CorrectAnswer.d.ts +4 -0
  290. package/dist/typescript/commonjs/features/endOfAssignment/components/CorrectAnswer/CorrectAnswer.d.ts.map +1 -0
  291. package/dist/typescript/commonjs/features/endOfAssignment/components/CorrectAnswer/CorrectAnswerSparks.d.ts +8 -0
  292. package/dist/typescript/commonjs/features/endOfAssignment/components/CorrectAnswer/CorrectAnswerSparks.d.ts.map +1 -0
  293. package/dist/typescript/commonjs/features/endOfAssignment/components/CorrectAnswer/GoodDrawingSparks.d.ts +8 -0
  294. package/dist/typescript/commonjs/features/endOfAssignment/components/CorrectAnswer/GoodDrawingSparks.d.ts.map +1 -0
  295. package/dist/typescript/commonjs/features/endOfAssignment/components/CorrectAnswer/Spark.d.ts +12 -0
  296. package/dist/typescript/commonjs/features/endOfAssignment/components/CorrectAnswer/Spark.d.ts.map +1 -0
  297. package/dist/typescript/commonjs/features/endOfAssignment/components/EOAModal.d.ts +11 -0
  298. package/dist/typescript/commonjs/features/endOfAssignment/components/EOAModal.d.ts.map +1 -0
  299. package/dist/typescript/commonjs/features/endOfAssignment/components/ExamLeave/ExamLeave.d.ts +4 -0
  300. package/dist/typescript/commonjs/features/endOfAssignment/components/ExamLeave/ExamLeave.d.ts.map +1 -0
  301. package/dist/typescript/commonjs/features/endOfAssignment/components/ExamPaused/ExamPaused.d.ts +4 -0
  302. package/dist/typescript/commonjs/features/endOfAssignment/components/ExamPaused/ExamPaused.d.ts.map +1 -0
  303. package/dist/typescript/commonjs/features/endOfAssignment/components/ExamSubmit/ExamSubmit.d.ts +4 -0
  304. package/dist/typescript/commonjs/features/endOfAssignment/components/ExamSubmit/ExamSubmit.d.ts.map +1 -0
  305. package/dist/typescript/commonjs/features/endOfAssignment/components/ExamSubmit/ExamSubmitContent.d.ts +8 -0
  306. package/dist/typescript/commonjs/features/endOfAssignment/components/ExamSubmit/ExamSubmitContent.d.ts.map +1 -0
  307. package/dist/typescript/commonjs/features/endOfAssignment/components/Modal/Modal.d.ts +20 -0
  308. package/dist/typescript/commonjs/features/endOfAssignment/components/Modal/Modal.d.ts.map +1 -0
  309. package/dist/typescript/commonjs/features/endOfAssignment/components/Modal/ModalBackground.d.ts +3 -0
  310. package/dist/typescript/commonjs/features/endOfAssignment/components/Modal/ModalBackground.d.ts.map +1 -0
  311. package/dist/typescript/commonjs/features/endOfAssignment/components/Modal/assets/SunrisingIcon.d.ts +4 -0
  312. package/dist/typescript/commonjs/features/endOfAssignment/components/Modal/assets/SunrisingIcon.d.ts.map +1 -0
  313. package/dist/typescript/commonjs/features/endOfAssignment/components/Modal/assets/TrophyIcon.d.ts +4 -0
  314. package/dist/typescript/commonjs/features/endOfAssignment/components/Modal/assets/TrophyIcon.d.ts.map +1 -0
  315. package/dist/typescript/commonjs/features/endOfAssignment/components/Modal/model.d.ts +14 -0
  316. package/dist/typescript/commonjs/features/endOfAssignment/components/Modal/model.d.ts.map +1 -0
  317. package/dist/typescript/commonjs/features/endOfAssignment/components/NoAnswer/NoAnswer.d.ts +4 -0
  318. package/dist/typescript/commonjs/features/endOfAssignment/components/NoAnswer/NoAnswer.d.ts.map +1 -0
  319. package/dist/typescript/commonjs/features/endOfAssignment/components/NoAnswer/NoAnswerContent.d.ts +8 -0
  320. package/dist/typescript/commonjs/features/endOfAssignment/components/NoAnswer/NoAnswerContent.d.ts.map +1 -0
  321. package/dist/typescript/commonjs/features/endOfAssignment/constants.d.ts +41 -0
  322. package/dist/typescript/commonjs/features/endOfAssignment/constants.d.ts.map +1 -0
  323. package/dist/typescript/commonjs/features/endOfAssignment/helpers.d.ts +9 -0
  324. package/dist/typescript/commonjs/features/endOfAssignment/helpers.d.ts.map +1 -0
  325. package/dist/typescript/commonjs/features/endOfAssignment/hooks/useSparkAnimation.d.ts +27 -0
  326. package/dist/typescript/commonjs/features/endOfAssignment/hooks/useSparkAnimation.d.ts.map +1 -0
  327. package/dist/typescript/commonjs/features/endOfAssignment/index.d.ts +4 -0
  328. package/dist/typescript/commonjs/features/endOfAssignment/index.d.ts.map +1 -0
  329. package/dist/typescript/commonjs/features/endOfAssignment/model/model.d.ts +14 -0
  330. package/dist/typescript/commonjs/features/endOfAssignment/model/model.d.ts.map +1 -0
  331. package/dist/typescript/commonjs/features/endOfAssignment/types.d.ts +60 -0
  332. package/dist/typescript/commonjs/features/endOfAssignment/types.d.ts.map +1 -0
  333. package/dist/typescript/commonjs/features/endOfAssignment/ui/EOABadge.d.ts +11 -0
  334. package/dist/typescript/commonjs/features/endOfAssignment/ui/EOABadge.d.ts.map +1 -0
  335. package/dist/typescript/commonjs/features/endOfAssignment/ui/PracticeButton.d.ts +10 -0
  336. package/dist/typescript/commonjs/features/endOfAssignment/ui/PracticeButton.d.ts.map +1 -0
  337. package/dist/typescript/commonjs/features/endOfAssignment/ui/PracticeButtonGroup.d.ts +14 -0
  338. package/dist/typescript/commonjs/features/endOfAssignment/ui/PracticeButtonGroup.d.ts.map +1 -0
  339. package/dist/typescript/commonjs/features/endOfAssignment/ui/SparkIcon.d.ts +4 -0
  340. package/dist/typescript/commonjs/features/endOfAssignment/ui/SparkIcon.d.ts.map +1 -0
  341. package/dist/typescript/commonjs/features/endOfAssignment/ui/ThumbUpIcon.d.ts +4 -0
  342. package/dist/typescript/commonjs/features/endOfAssignment/ui/ThumbUpIcon.d.ts.map +1 -0
  343. package/dist/typescript/commonjs/index.d.ts +2 -0
  344. package/dist/typescript/commonjs/index.d.ts.map +1 -1
  345. package/dist/typescript/commonjs/lib/effector/createEntityFieldStore.d.ts +0 -2
  346. package/dist/typescript/commonjs/lib/effector/createEntityFieldStore.d.ts.map +1 -1
  347. package/dist/typescript/commonjs/shared/icons/Halloween.d.ts +5 -0
  348. package/dist/typescript/commonjs/shared/icons/Halloween.d.ts.map +1 -0
  349. package/dist/typescript/commonjs/shared/icons/Pi.d.ts +5 -0
  350. package/dist/typescript/commonjs/shared/icons/Pi.d.ts.map +1 -0
  351. package/dist/typescript/commonjs/shared/icons/Star.d.ts +5 -0
  352. package/dist/typescript/commonjs/shared/icons/Star.d.ts.map +1 -0
  353. package/dist/typescript/commonjs/shared/icons/Valentine.d.ts +5 -0
  354. package/dist/typescript/commonjs/shared/icons/Valentine.d.ts.map +1 -0
  355. package/dist/typescript/commonjs/shared/icons/Winter.d.ts +5 -0
  356. package/dist/typescript/commonjs/shared/icons/Winter.d.ts.map +1 -0
  357. package/dist/typescript/commonjs/shared/icons/icon.types.d.ts +0 -2
  358. package/dist/typescript/commonjs/shared/icons/icon.types.d.ts.map +1 -1
  359. package/dist/typescript/module/features/celebrations/components/Celebrations.d.ts +10 -0
  360. package/dist/typescript/module/features/celebrations/components/Celebrations.d.ts.map +1 -0
  361. package/dist/typescript/module/features/celebrations/components/Particle.d.ts +19 -0
  362. package/dist/typescript/module/features/celebrations/components/Particle.d.ts.map +1 -0
  363. package/dist/typescript/module/features/celebrations/components/ParticleBatch.d.ts +26 -0
  364. package/dist/typescript/module/features/celebrations/components/ParticleBatch.d.ts.map +1 -0
  365. package/dist/typescript/module/features/celebrations/components/Spark.d.ts +4 -0
  366. package/dist/typescript/module/features/celebrations/components/Spark.d.ts.map +1 -0
  367. package/dist/typescript/module/features/celebrations/config.d.ts +167 -0
  368. package/dist/typescript/module/features/celebrations/config.d.ts.map +1 -0
  369. package/dist/typescript/module/features/celebrations/helpers.d.ts +6 -0
  370. package/dist/typescript/module/features/celebrations/helpers.d.ts.map +1 -0
  371. package/dist/typescript/module/features/celebrations/index.d.ts +3 -0
  372. package/dist/typescript/module/features/celebrations/index.d.ts.map +1 -0
  373. package/dist/typescript/module/features/celebrations/types.d.ts +11 -0
  374. package/dist/typescript/module/features/celebrations/types.d.ts.map +1 -0
  375. package/dist/typescript/module/features/chatbot/components/ChatMessage/ChatMessage.d.ts +0 -1
  376. package/dist/typescript/module/features/chatbot/components/ChatMessage/ChatMessage.d.ts.map +1 -1
  377. package/dist/typescript/module/features/chatbot/components/ChatMessage/ReceivedMessage.d.ts +1 -1
  378. package/dist/typescript/module/features/chatbot/components/ChatMessage/ReceivedMessage.d.ts.map +1 -1
  379. package/dist/typescript/module/features/chatbot/components/ChatMessages/ChatbotMessages.d.ts.map +1 -1
  380. package/dist/typescript/module/features/chatbot/components/Chatbot.d.ts.map +1 -1
  381. package/dist/typescript/module/features/chatbot/index.d.ts +3 -4
  382. package/dist/typescript/module/features/chatbot/index.d.ts.map +1 -1
  383. package/dist/typescript/module/features/chatbot/model/{ChatBotThreadManager.d.ts → ChatBotMessageHandler.d.ts} +8 -11
  384. package/dist/typescript/module/features/chatbot/model/ChatBotMessageHandler.d.ts.map +1 -0
  385. package/dist/typescript/module/features/chatbot/model/ChatBotModel.d.ts +14 -19
  386. package/dist/typescript/module/features/chatbot/model/ChatBotModel.d.ts.map +1 -1
  387. package/dist/typescript/module/features/chatbot/model/DefaultMessageCreator.d.ts +2 -3
  388. package/dist/typescript/module/features/chatbot/model/DefaultMessageCreator.d.ts.map +1 -1
  389. package/dist/typescript/module/features/chatbot/model/ThreadItem.d.ts +6 -12
  390. package/dist/typescript/module/features/chatbot/model/ThreadItem.d.ts.map +1 -1
  391. package/dist/typescript/module/features/chatbot/model/{ChatbotApi.d.ts → api.d.ts} +3 -4
  392. package/dist/typescript/module/features/chatbot/model/api.d.ts.map +1 -0
  393. package/dist/typescript/module/features/chatbot/model/messagesHelper.d.ts +4 -3
  394. package/dist/typescript/module/features/chatbot/model/messagesHelper.d.ts.map +1 -1
  395. package/dist/typescript/module/features/chatbot/model/t2s.d.ts +4 -2
  396. package/dist/typescript/module/features/chatbot/model/t2s.d.ts.map +1 -1
  397. package/dist/typescript/module/features/chatbot/model/translation.d.ts +8 -7
  398. package/dist/typescript/module/features/chatbot/model/translation.d.ts.map +1 -1
  399. package/dist/typescript/module/features/chatbot/model/translation.helpers.d.ts +1 -2
  400. package/dist/typescript/module/features/chatbot/model/translation.helpers.d.ts.map +1 -1
  401. package/dist/typescript/module/features/chatbot/types/api.types.d.ts +11 -2
  402. package/dist/typescript/module/features/chatbot/types/api.types.d.ts.map +1 -1
  403. package/dist/typescript/module/features/chatbot/types/model.types.d.ts +19 -26
  404. package/dist/typescript/module/features/chatbot/types/model.types.d.ts.map +1 -1
  405. package/dist/typescript/module/features/chatbot/types/translation.types.d.ts +1 -2
  406. package/dist/typescript/module/features/chatbot/types/translation.types.d.ts.map +1 -1
  407. package/dist/typescript/module/features/endOfAssignment/components/CheatDetected/CheatDetected.d.ts +4 -0
  408. package/dist/typescript/module/features/endOfAssignment/components/CheatDetected/CheatDetected.d.ts.map +1 -0
  409. package/dist/typescript/module/features/endOfAssignment/components/CorrectAnswer/AnimatedCard.d.ts +15 -0
  410. package/dist/typescript/module/features/endOfAssignment/components/CorrectAnswer/AnimatedCard.d.ts.map +1 -0
  411. package/dist/typescript/module/features/endOfAssignment/components/CorrectAnswer/CorrectAnswer.d.ts +4 -0
  412. package/dist/typescript/module/features/endOfAssignment/components/CorrectAnswer/CorrectAnswer.d.ts.map +1 -0
  413. package/dist/typescript/module/features/endOfAssignment/components/CorrectAnswer/CorrectAnswerSparks.d.ts +8 -0
  414. package/dist/typescript/module/features/endOfAssignment/components/CorrectAnswer/CorrectAnswerSparks.d.ts.map +1 -0
  415. package/dist/typescript/module/features/endOfAssignment/components/CorrectAnswer/GoodDrawingSparks.d.ts +8 -0
  416. package/dist/typescript/module/features/endOfAssignment/components/CorrectAnswer/GoodDrawingSparks.d.ts.map +1 -0
  417. package/dist/typescript/module/features/endOfAssignment/components/CorrectAnswer/Spark.d.ts +12 -0
  418. package/dist/typescript/module/features/endOfAssignment/components/CorrectAnswer/Spark.d.ts.map +1 -0
  419. package/dist/typescript/module/features/endOfAssignment/components/EOAModal.d.ts +11 -0
  420. package/dist/typescript/module/features/endOfAssignment/components/EOAModal.d.ts.map +1 -0
  421. package/dist/typescript/module/features/endOfAssignment/components/ExamLeave/ExamLeave.d.ts +4 -0
  422. package/dist/typescript/module/features/endOfAssignment/components/ExamLeave/ExamLeave.d.ts.map +1 -0
  423. package/dist/typescript/module/features/endOfAssignment/components/ExamPaused/ExamPaused.d.ts +4 -0
  424. package/dist/typescript/module/features/endOfAssignment/components/ExamPaused/ExamPaused.d.ts.map +1 -0
  425. package/dist/typescript/module/features/endOfAssignment/components/ExamSubmit/ExamSubmit.d.ts +4 -0
  426. package/dist/typescript/module/features/endOfAssignment/components/ExamSubmit/ExamSubmit.d.ts.map +1 -0
  427. package/dist/typescript/module/features/endOfAssignment/components/ExamSubmit/ExamSubmitContent.d.ts +8 -0
  428. package/dist/typescript/module/features/endOfAssignment/components/ExamSubmit/ExamSubmitContent.d.ts.map +1 -0
  429. package/dist/typescript/module/features/endOfAssignment/components/Modal/Modal.d.ts +20 -0
  430. package/dist/typescript/module/features/endOfAssignment/components/Modal/Modal.d.ts.map +1 -0
  431. package/dist/typescript/module/features/endOfAssignment/components/Modal/ModalBackground.d.ts +3 -0
  432. package/dist/typescript/module/features/endOfAssignment/components/Modal/ModalBackground.d.ts.map +1 -0
  433. package/dist/typescript/module/features/endOfAssignment/components/Modal/assets/SunrisingIcon.d.ts +4 -0
  434. package/dist/typescript/module/features/endOfAssignment/components/Modal/assets/SunrisingIcon.d.ts.map +1 -0
  435. package/dist/typescript/module/features/endOfAssignment/components/Modal/assets/TrophyIcon.d.ts +4 -0
  436. package/dist/typescript/module/features/endOfAssignment/components/Modal/assets/TrophyIcon.d.ts.map +1 -0
  437. package/dist/typescript/module/features/endOfAssignment/components/Modal/model.d.ts +14 -0
  438. package/dist/typescript/module/features/endOfAssignment/components/Modal/model.d.ts.map +1 -0
  439. package/dist/typescript/module/features/endOfAssignment/components/NoAnswer/NoAnswer.d.ts +4 -0
  440. package/dist/typescript/module/features/endOfAssignment/components/NoAnswer/NoAnswer.d.ts.map +1 -0
  441. package/dist/typescript/module/features/endOfAssignment/components/NoAnswer/NoAnswerContent.d.ts +8 -0
  442. package/dist/typescript/module/features/endOfAssignment/components/NoAnswer/NoAnswerContent.d.ts.map +1 -0
  443. package/dist/typescript/module/features/endOfAssignment/constants.d.ts +41 -0
  444. package/dist/typescript/module/features/endOfAssignment/constants.d.ts.map +1 -0
  445. package/dist/typescript/module/features/endOfAssignment/helpers.d.ts +9 -0
  446. package/dist/typescript/module/features/endOfAssignment/helpers.d.ts.map +1 -0
  447. package/dist/typescript/module/features/endOfAssignment/hooks/useSparkAnimation.d.ts +27 -0
  448. package/dist/typescript/module/features/endOfAssignment/hooks/useSparkAnimation.d.ts.map +1 -0
  449. package/dist/typescript/module/features/endOfAssignment/index.d.ts +4 -0
  450. package/dist/typescript/module/features/endOfAssignment/index.d.ts.map +1 -0
  451. package/dist/typescript/module/features/endOfAssignment/model/model.d.ts +14 -0
  452. package/dist/typescript/module/features/endOfAssignment/model/model.d.ts.map +1 -0
  453. package/dist/typescript/module/features/endOfAssignment/types.d.ts +60 -0
  454. package/dist/typescript/module/features/endOfAssignment/types.d.ts.map +1 -0
  455. package/dist/typescript/module/features/endOfAssignment/ui/EOABadge.d.ts +11 -0
  456. package/dist/typescript/module/features/endOfAssignment/ui/EOABadge.d.ts.map +1 -0
  457. package/dist/typescript/module/features/endOfAssignment/ui/PracticeButton.d.ts +10 -0
  458. package/dist/typescript/module/features/endOfAssignment/ui/PracticeButton.d.ts.map +1 -0
  459. package/dist/typescript/module/features/endOfAssignment/ui/PracticeButtonGroup.d.ts +14 -0
  460. package/dist/typescript/module/features/endOfAssignment/ui/PracticeButtonGroup.d.ts.map +1 -0
  461. package/dist/typescript/module/features/endOfAssignment/ui/SparkIcon.d.ts +4 -0
  462. package/dist/typescript/module/features/endOfAssignment/ui/SparkIcon.d.ts.map +1 -0
  463. package/dist/typescript/module/features/endOfAssignment/ui/ThumbUpIcon.d.ts +4 -0
  464. package/dist/typescript/module/features/endOfAssignment/ui/ThumbUpIcon.d.ts.map +1 -0
  465. package/dist/typescript/module/index.d.ts +2 -0
  466. package/dist/typescript/module/index.d.ts.map +1 -1
  467. package/dist/typescript/module/lib/effector/createEntityFieldStore.d.ts +0 -2
  468. package/dist/typescript/module/lib/effector/createEntityFieldStore.d.ts.map +1 -1
  469. package/dist/typescript/module/shared/icons/Halloween.d.ts +5 -0
  470. package/dist/typescript/module/shared/icons/Halloween.d.ts.map +1 -0
  471. package/dist/typescript/module/shared/icons/Pi.d.ts +5 -0
  472. package/dist/typescript/module/shared/icons/Pi.d.ts.map +1 -0
  473. package/dist/typescript/module/shared/icons/Star.d.ts +5 -0
  474. package/dist/typescript/module/shared/icons/Star.d.ts.map +1 -0
  475. package/dist/typescript/module/shared/icons/Valentine.d.ts +5 -0
  476. package/dist/typescript/module/shared/icons/Valentine.d.ts.map +1 -0
  477. package/dist/typescript/module/shared/icons/Winter.d.ts +5 -0
  478. package/dist/typescript/module/shared/icons/Winter.d.ts.map +1 -0
  479. package/dist/typescript/module/shared/icons/icon.types.d.ts +0 -2
  480. package/dist/typescript/module/shared/icons/icon.types.d.ts.map +1 -1
  481. package/package.json +4 -2
  482. package/src/features/celebrations/components/Celebrations.tsx +62 -0
  483. package/src/features/celebrations/components/Particle.tsx +99 -0
  484. package/src/features/celebrations/components/ParticleBatch.tsx +56 -0
  485. package/src/features/celebrations/components/Spark.tsx +14 -0
  486. package/src/features/celebrations/config.ts +199 -0
  487. package/src/features/celebrations/helpers.ts +96 -0
  488. package/src/features/celebrations/index.ts +2 -0
  489. package/src/features/celebrations/types.ts +11 -0
  490. package/src/features/chatbot/components/ChatMessage/ChatMessage.tsx +0 -1
  491. package/src/features/chatbot/components/ChatMessage/ReceivedMessage.tsx +0 -3
  492. package/src/features/chatbot/components/ChatMessages/ChatbotMessages.tsx +0 -14
  493. package/src/features/chatbot/components/Chatbot.tsx +2 -3
  494. package/src/features/chatbot/index.ts +3 -3
  495. package/src/features/chatbot/model/{ChatBotThreadManager.ts → ChatBotMessageHandler.ts} +16 -28
  496. package/src/features/chatbot/model/ChatBotModel.ts +124 -123
  497. package/src/features/chatbot/model/DefaultMessageCreator.ts +3 -3
  498. package/src/features/chatbot/model/ThreadItem.ts +9 -20
  499. package/src/features/chatbot/model/{ChatbotApi.ts → api.ts} +2 -19
  500. package/src/features/chatbot/model/messagesHelper.ts +6 -2
  501. package/src/features/chatbot/model/t2s.ts +10 -3
  502. package/src/features/chatbot/model/translation.helpers.ts +1 -2
  503. package/src/features/chatbot/model/translation.ts +46 -52
  504. package/src/features/chatbot/types/api.types.ts +12 -2
  505. package/src/features/chatbot/types/model.types.ts +26 -38
  506. package/src/features/chatbot/types/translation.types.ts +1 -2
  507. package/src/features/endOfAssignment/components/CheatDetected/CheatDetected.tsx +48 -0
  508. package/src/features/endOfAssignment/components/CorrectAnswer/AnimatedCard.tsx +293 -0
  509. package/src/features/endOfAssignment/components/CorrectAnswer/CorrectAnswer.tsx +128 -0
  510. package/src/features/endOfAssignment/components/CorrectAnswer/CorrectAnswerSparks.tsx +39 -0
  511. package/src/features/endOfAssignment/components/CorrectAnswer/GoodDrawingSparks.tsx +40 -0
  512. package/src/features/endOfAssignment/components/CorrectAnswer/Spark.tsx +45 -0
  513. package/src/features/endOfAssignment/components/EOAModal.tsx +64 -0
  514. package/src/features/endOfAssignment/components/ExamLeave/ExamLeave.tsx +56 -0
  515. package/src/features/endOfAssignment/components/ExamPaused/ExamPaused.tsx +46 -0
  516. package/src/features/endOfAssignment/components/ExamSubmit/ExamSubmit.tsx +102 -0
  517. package/src/features/endOfAssignment/components/ExamSubmit/ExamSubmitContent.tsx +69 -0
  518. package/src/features/endOfAssignment/components/ExamSubmit/blurred-card.png +0 -0
  519. package/src/features/endOfAssignment/components/Modal/Modal.tsx +105 -0
  520. package/src/features/endOfAssignment/components/Modal/ModalBackground.tsx +33 -0
  521. package/src/features/endOfAssignment/components/Modal/assets/SunrisingIcon.tsx +196 -0
  522. package/src/features/endOfAssignment/components/Modal/assets/TrophyIcon.tsx +62 -0
  523. package/src/features/endOfAssignment/components/Modal/model.ts +34 -0
  524. package/src/features/endOfAssignment/components/NoAnswer/NoAnswer.tsx +85 -0
  525. package/src/features/endOfAssignment/components/NoAnswer/NoAnswerContent.tsx +107 -0
  526. package/src/features/endOfAssignment/constants.ts +53 -0
  527. package/src/features/endOfAssignment/helpers.ts +28 -0
  528. package/src/features/endOfAssignment/hooks/useSparkAnimation.tsx +78 -0
  529. package/src/features/endOfAssignment/index.ts +3 -0
  530. package/src/features/endOfAssignment/model/model.ts +57 -0
  531. package/src/features/endOfAssignment/types.ts +65 -0
  532. package/src/features/endOfAssignment/ui/EOABadge.tsx +47 -0
  533. package/src/features/endOfAssignment/ui/PracticeButton.tsx +27 -0
  534. package/src/features/endOfAssignment/ui/PracticeButtonGroup.tsx +75 -0
  535. package/src/features/endOfAssignment/ui/SparkIcon.tsx +15 -0
  536. package/src/features/endOfAssignment/ui/ThumbUpIcon.tsx +17 -0
  537. package/src/index.ts +2 -0
  538. package/src/lib/effector/createEntityFieldStore.ts +1 -9
  539. package/src/shared/icons/Halloween.tsx +33 -0
  540. package/src/shared/icons/Pi.tsx +16 -0
  541. package/src/shared/icons/Star.tsx +16 -0
  542. package/src/shared/icons/Valentine.tsx +16 -0
  543. package/src/shared/icons/Winter.tsx +19 -0
  544. package/src/shared/icons/icon.types.ts +6 -9
  545. package/dist/commonjs/features/chatbot/context/ChatBotContext.js +0 -17
  546. package/dist/commonjs/features/chatbot/context/ChatBotContext.js.map +0 -1
  547. package/dist/commonjs/features/chatbot/errorSpotting/ErrorSpottingButton.js +0 -58
  548. package/dist/commonjs/features/chatbot/errorSpotting/ErrorSpottingButton.js.map +0 -1
  549. package/dist/commonjs/features/chatbot/errorSpotting/ErrorSpottingModel.js +0 -99
  550. package/dist/commonjs/features/chatbot/errorSpotting/ErrorSpottingModel.js.map +0 -1
  551. package/dist/commonjs/features/chatbot/model/ChatBotThreadManager.js.map +0 -1
  552. package/dist/commonjs/features/chatbot/model/ChatbotApi.js.map +0 -1
  553. package/dist/commonjs/features/chatbot/model/ChatsCacheModel.js +0 -110
  554. package/dist/commonjs/features/chatbot/model/ChatsCacheModel.js.map +0 -1
  555. package/dist/commonjs/features/chatbot/types/units.types.js +0 -2
  556. package/dist/commonjs/features/chatbot/types/units.types.js.map +0 -1
  557. package/dist/commonjs/lib/helpers/randomElements.js +0 -24
  558. package/dist/commonjs/lib/helpers/randomElements.js.map +0 -1
  559. package/dist/commonjs/shared/icons/HighlighterIcon.js +0 -36
  560. package/dist/commonjs/shared/icons/HighlighterIcon.js.map +0 -1
  561. package/dist/commonjs/shared/icons/StopIcon.js.map +0 -1
  562. package/dist/module/features/chatbot/context/ChatBotContext.js +0 -12
  563. package/dist/module/features/chatbot/context/ChatBotContext.js.map +0 -1
  564. package/dist/module/features/chatbot/errorSpotting/ErrorSpottingButton.js +0 -52
  565. package/dist/module/features/chatbot/errorSpotting/ErrorSpottingButton.js.map +0 -1
  566. package/dist/module/features/chatbot/errorSpotting/ErrorSpottingModel.js +0 -94
  567. package/dist/module/features/chatbot/errorSpotting/ErrorSpottingModel.js.map +0 -1
  568. package/dist/module/features/chatbot/model/ChatBotThreadManager.js.map +0 -1
  569. package/dist/module/features/chatbot/model/ChatbotApi.js.map +0 -1
  570. package/dist/module/features/chatbot/model/ChatsCacheModel.js +0 -104
  571. package/dist/module/features/chatbot/model/ChatsCacheModel.js.map +0 -1
  572. package/dist/module/features/chatbot/types/units.types.js +0 -2
  573. package/dist/module/features/chatbot/types/units.types.js.map +0 -1
  574. package/dist/module/lib/helpers/randomElements.js +0 -20
  575. package/dist/module/lib/helpers/randomElements.js.map +0 -1
  576. package/dist/module/shared/icons/HighlighterIcon.js +0 -29
  577. package/dist/module/shared/icons/HighlighterIcon.js.map +0 -1
  578. package/dist/module/shared/icons/StopIcon.js +0 -26
  579. package/dist/module/shared/icons/StopIcon.js.map +0 -1
  580. package/dist/typescript/commonjs/features/chatbot/context/ChatBotContext.d.ts +0 -8
  581. package/dist/typescript/commonjs/features/chatbot/context/ChatBotContext.d.ts.map +0 -1
  582. package/dist/typescript/commonjs/features/chatbot/errorSpotting/ErrorSpottingButton.d.ts +0 -3
  583. package/dist/typescript/commonjs/features/chatbot/errorSpotting/ErrorSpottingButton.d.ts.map +0 -1
  584. package/dist/typescript/commonjs/features/chatbot/errorSpotting/ErrorSpottingModel.d.ts +0 -28
  585. package/dist/typescript/commonjs/features/chatbot/errorSpotting/ErrorSpottingModel.d.ts.map +0 -1
  586. package/dist/typescript/commonjs/features/chatbot/model/ChatBotThreadManager.d.ts.map +0 -1
  587. package/dist/typescript/commonjs/features/chatbot/model/ChatbotApi.d.ts.map +0 -1
  588. package/dist/typescript/commonjs/features/chatbot/model/ChatsCacheModel.d.ts +0 -26
  589. package/dist/typescript/commonjs/features/chatbot/model/ChatsCacheModel.d.ts.map +0 -1
  590. package/dist/typescript/commonjs/features/chatbot/types/units.types.d.ts +0 -31
  591. package/dist/typescript/commonjs/features/chatbot/types/units.types.d.ts.map +0 -1
  592. package/dist/typescript/commonjs/lib/helpers/randomElements.d.ts +0 -2
  593. package/dist/typescript/commonjs/lib/helpers/randomElements.d.ts.map +0 -1
  594. package/dist/typescript/commonjs/shared/icons/HighlighterIcon.d.ts +0 -4
  595. package/dist/typescript/commonjs/shared/icons/HighlighterIcon.d.ts.map +0 -1
  596. package/dist/typescript/commonjs/shared/icons/StopIcon.d.ts +0 -4
  597. package/dist/typescript/commonjs/shared/icons/StopIcon.d.ts.map +0 -1
  598. package/dist/typescript/module/features/chatbot/context/ChatBotContext.d.ts +0 -8
  599. package/dist/typescript/module/features/chatbot/context/ChatBotContext.d.ts.map +0 -1
  600. package/dist/typescript/module/features/chatbot/errorSpotting/ErrorSpottingButton.d.ts +0 -3
  601. package/dist/typescript/module/features/chatbot/errorSpotting/ErrorSpottingButton.d.ts.map +0 -1
  602. package/dist/typescript/module/features/chatbot/errorSpotting/ErrorSpottingModel.d.ts +0 -28
  603. package/dist/typescript/module/features/chatbot/errorSpotting/ErrorSpottingModel.d.ts.map +0 -1
  604. package/dist/typescript/module/features/chatbot/model/ChatBotThreadManager.d.ts.map +0 -1
  605. package/dist/typescript/module/features/chatbot/model/ChatbotApi.d.ts.map +0 -1
  606. package/dist/typescript/module/features/chatbot/model/ChatsCacheModel.d.ts +0 -26
  607. package/dist/typescript/module/features/chatbot/model/ChatsCacheModel.d.ts.map +0 -1
  608. package/dist/typescript/module/features/chatbot/types/units.types.d.ts +0 -31
  609. package/dist/typescript/module/features/chatbot/types/units.types.d.ts.map +0 -1
  610. package/dist/typescript/module/lib/helpers/randomElements.d.ts +0 -2
  611. package/dist/typescript/module/lib/helpers/randomElements.d.ts.map +0 -1
  612. package/dist/typescript/module/shared/icons/HighlighterIcon.d.ts +0 -4
  613. package/dist/typescript/module/shared/icons/HighlighterIcon.d.ts.map +0 -1
  614. package/dist/typescript/module/shared/icons/StopIcon.d.ts +0 -4
  615. package/dist/typescript/module/shared/icons/StopIcon.d.ts.map +0 -1
  616. package/src/features/chatbot/context/ChatBotContext.ts +0 -18
  617. package/src/features/chatbot/errorSpotting/ErrorSpottingButton.tsx +0 -53
  618. package/src/features/chatbot/errorSpotting/ErrorSpottingModel.ts +0 -116
  619. package/src/features/chatbot/model/ChatsCacheModel.ts +0 -94
  620. package/src/features/chatbot/types/units.types.ts +0 -34
  621. package/src/lib/helpers/randomElements.ts +0 -22
  622. package/src/shared/icons/HighlighterIcon.tsx +0 -21
  623. package/src/shared/icons/StopIcon.tsx +0 -17
@@ -0,0 +1,47 @@
1
+ "use strict";
2
+
3
+ Object.defineProperty(exports, "__esModule", {
4
+ value: true
5
+ });
6
+ exports.EOAModal = void 0;
7
+ var _react = _interopRequireDefault(require("react"));
8
+ var _effectorReact = require("effector-react");
9
+ var _types = require("../types.js");
10
+ var _Modal = require("./Modal/Modal.js");
11
+ var _NoAnswer = require("./NoAnswer/NoAnswer.js");
12
+ var _CheatDetected = require("./CheatDetected/CheatDetected.js");
13
+ var _CorrectAnswer = require("./CorrectAnswer/CorrectAnswer.js");
14
+ var _ExamLeave = require("./ExamLeave/ExamLeave.js");
15
+ var _ExamPaused = require("./ExamPaused/ExamPaused.js");
16
+ var _ExamSubmit = require("./ExamSubmit/ExamSubmit.js");
17
+ var _helpers = require("../helpers.js");
18
+ var _jsxRuntime = require("react/jsx-runtime");
19
+ function _interopRequireDefault(e) { return e && e.__esModule ? e : { default: e }; }
20
+ const MODAL_CONTENT_VARIANTS_MAP = new Map([[_types.EOAModalVariant.NO_CORRECT_ANSWERS, _NoAnswer.NoAnswer], [_types.EOAModalVariant.HAS_CORRECT_ANSWERS, _CorrectAnswer.CorrectAnswer], [_types.EOAModalVariant.HAS_GOOD_DRAWING, _CorrectAnswer.CorrectAnswer], [_types.EOAModalVariant.EXAM_FINISHED_NO_CORRECT_ANSWERS, _NoAnswer.NoAnswer], [_types.EOAModalVariant.EXAM_FINISHED_HAS_CORRECT_ANSWERS, _CorrectAnswer.CorrectAnswer], [_types.EOAModalVariant.EXAM_SAFE_MODE_SUBMIT, _ExamSubmit.ExamSubmit], [_types.EOAModalVariant.EXAM_SUBMIT, _ExamSubmit.ExamSubmit], [_types.EOAModalVariant.EXAM_PAUSED, _ExamPaused.ExamPaused], [_types.EOAModalVariant.EXAM_SAFE_MODE_CHEAT_DETECTED, _CheatDetected.CheatDetected], [_types.EOAModalVariant.EXAM_SAFE_MODE_LEAVE, _ExamLeave.ExamLeave]]);
21
+ const EOAModal = ({
22
+ model,
23
+ textContent,
24
+ onPracticePress
25
+ }) => {
26
+ const popUpData = (0, _effectorReact.useUnit)(model.$popUpData);
27
+ const modalVariant = (0, _effectorReact.useUnit)(model.$modalVariant);
28
+ if (!popUpData || !modalVariant) return null;
29
+ const withBackground = (0, _helpers.shouldDisplayModalBackground)(modalVariant);
30
+ const isDismissable = popUpData.eventType !== _types.EOAEventType.CHEAT_DETECTED && popUpData.eventType !== _types.EOAEventType.EXAM_PAUSED;
31
+ const ModalContent = MODAL_CONTENT_VARIANTS_MAP.get(modalVariant);
32
+ if (!ModalContent) return null;
33
+ return /*#__PURE__*/(0, _jsxRuntime.jsx)(_Modal.Modal, {
34
+ isVisible: true,
35
+ isDismissable: isDismissable,
36
+ style: (0, _helpers.getModalContainerSize)(modalVariant),
37
+ onClose: model.hidePopUp,
38
+ content: /*#__PURE__*/(0, _jsxRuntime.jsx)(ModalContent, {
39
+ model: model,
40
+ textContent: textContent,
41
+ onPracticePress: onPracticePress
42
+ }),
43
+ withBackground: withBackground
44
+ });
45
+ };
46
+ exports.EOAModal = EOAModal;
47
+ //# sourceMappingURL=EOAModal.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"names":["_react","_interopRequireDefault","require","_effectorReact","_types","_Modal","_NoAnswer","_CheatDetected","_CorrectAnswer","_ExamLeave","_ExamPaused","_ExamSubmit","_helpers","_jsxRuntime","e","__esModule","default","MODAL_CONTENT_VARIANTS_MAP","Map","EOAModalVariant","NO_CORRECT_ANSWERS","NoAnswer","HAS_CORRECT_ANSWERS","CorrectAnswer","HAS_GOOD_DRAWING","EXAM_FINISHED_NO_CORRECT_ANSWERS","EXAM_FINISHED_HAS_CORRECT_ANSWERS","EXAM_SAFE_MODE_SUBMIT","ExamSubmit","EXAM_SUBMIT","EXAM_PAUSED","ExamPaused","EXAM_SAFE_MODE_CHEAT_DETECTED","CheatDetected","EXAM_SAFE_MODE_LEAVE","ExamLeave","EOAModal","model","textContent","onPracticePress","popUpData","useUnit","$popUpData","modalVariant","$modalVariant","withBackground","shouldDisplayModalBackground","isDismissable","eventType","EOAEventType","CHEAT_DETECTED","ModalContent","get","jsx","Modal","isVisible","style","getModalContainerSize","onClose","hidePopUp","content","exports"],"sourceRoot":"../../../../../src","sources":["features/endOfAssignment/components/EOAModal.tsx"],"mappings":";;;;;;AAAA,IAAAA,MAAA,GAAAC,sBAAA,CAAAC,OAAA;AACA,IAAAC,cAAA,GAAAD,OAAA;AAGA,IAAAE,MAAA,GAAAF,OAAA;AAE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AEjD,IAAI,CAACJ,SAAS,IAAI,CAACG,YAAY,EAAE,OAAO,IAAI;EAE5C,MAAME,cAAc,GAAG,IAAAC,qCAA4B,EAACH,YAAY,CAAC;EACjE,MAAMI,aAAa,GACjBP,SAAS,CAACQ,SAAS,KAAKC,mBAAY,CAACC,cAAc,IACnDV,SAAS,CAACQ,SAAS,KAAKC,mBAAY,CAACnB,WAAW;EAElD,MAAMqB,YAAY,GAAGlC,0BAA0B,CAACmC,GAAG,CAACT,YAAY,CAAC;EAEjE,IAAI,CAACQ,YAAY,EAAE,OAAO,IAAI;EAE9B,oBACE,IAAAtC,WAAA,CAAAwC,GAAA,EAAChD,MAAA,CAAAiD,KAAK;IACJC,SAAS,EAAE,IAAK;IAChBR,aAAa,EAAEA,aAAc;IAC7BS,KAAK,EAAE,IAAAC,8BAAqB,EAACd,YAAY,CAAE;IAC3Ce,OAAO,EAAErB,KAAK,CAACsB,SAAU;IACzBC,OAAO,eACL,IAAA/C,WAAA,CAAAwC,GAAA,EAACF,YAAY;MAACd,KAAK,EAAEA,KAAM;MAACC,WAAW,EAAEA,WAAY;MAACC,eAAe,EAAEA;IAAgB,CAAE,CAC1F;IACDM,cAAc,EAAEA;EAAe,CAChC,CAAC;AAEN,CAAC;AAAAgB,OAAA,CAAAzB,QAAA,GAAAA,QAAA","ignoreList":[]}
@@ -0,0 +1,69 @@
1
+ "use strict";
2
+
3
+ Object.defineProperty(exports, "__esModule", {
4
+ value: true
5
+ });
6
+ exports.ExamLeave = void 0;
7
+ var _react = _interopRequireDefault(require("react"));
8
+ var _reactNative = require("react-native");
9
+ var _reactNativeUi = require("@magmamath/react-native-ui");
10
+ var _jsxRuntime = require("react/jsx-runtime");
11
+ function _interopRequireDefault(e) { return e && e.__esModule ? e : { default: e }; }
12
+ const ExamLeave = ({
13
+ textContent,
14
+ model
15
+ }) => {
16
+ const handleDismiss = () => model.hidePopUp();
17
+ return /*#__PURE__*/(0, _jsxRuntime.jsxs)(_reactNative.View, {
18
+ style: styles.container,
19
+ children: [/*#__PURE__*/(0, _jsxRuntime.jsx)(_reactNativeUi.Typography, {
20
+ variant: "h1",
21
+ style: styles.description,
22
+ children: textContent.description
23
+ }), /*#__PURE__*/(0, _jsxRuntime.jsxs)(_reactNative.View, {
24
+ style: styles.buttonsContainer,
25
+ children: [/*#__PURE__*/(0, _jsxRuntime.jsx)(_reactNativeUi.Button, {
26
+ variant: "tertiary",
27
+ size: "large",
28
+ style: {
29
+ text: styles.buttonText
30
+ },
31
+ onPress: handleDismiss,
32
+ children: textContent.leftButtonText
33
+ }), /*#__PURE__*/(0, _jsxRuntime.jsx)(_reactNativeUi.Button, {
34
+ variant: "primary",
35
+ colorScheme: "red",
36
+ size: "large",
37
+ style: {
38
+ text: styles.buttonText
39
+ },
40
+ onPress: model.hidePopUpAndLeave,
41
+ children: textContent.rightButtonText
42
+ })]
43
+ })]
44
+ });
45
+ };
46
+ exports.ExamLeave = ExamLeave;
47
+ const styles = _reactNative.StyleSheet.create({
48
+ container: {
49
+ flex: 1,
50
+ gap: _reactNativeUi.SPACING[800],
51
+ paddingTop: _reactNativeUi.SPACING[800],
52
+ alignItems: 'center',
53
+ justifyContent: 'space-between'
54
+ },
55
+ description: {
56
+ textAlign: 'center',
57
+ fontWeight: '700',
58
+ color: _reactNativeUi.COLORS.NEUTRAL_9
59
+ },
60
+ buttonsContainer: {
61
+ flexDirection: 'row',
62
+ alignItems: 'center',
63
+ gap: _reactNativeUi.SPACING[200]
64
+ },
65
+ buttonText: {
66
+ textTransform: 'uppercase'
67
+ }
68
+ });
69
+ //# sourceMappingURL=ExamLeave.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"names":["_react","_interopRequireDefault","require","_reactNative","_reactNativeUi","_jsxRuntime","e","__esModule","default","ExamLeave","textContent","model","handleDismiss","hidePopUp","jsxs","View","style","styles","container","children","jsx","Typography","variant","description","buttonsContainer","Button","size","text","buttonText","onPress","leftButtonText","colorScheme","hidePopUpAndLeave","rightButtonText","exports","StyleSheet","create","flex","gap","SPACING","paddingTop","alignItems","justifyContent","textAlign","fontWeight","color","COLORS","NEUTRAL_9","flexDirection","textTransform"],"sourceRoot":"../../../../../../src","sources":["features/endOfAssignment/components/ExamLeave/ExamLeave.tsx"],"mappings":";;;;;;AAAA,IAAAA,MAAA,GAAAC,sBAAA,CAAAC,OAAA;AACA,IAAAC,YAAA,GAAAD,OAAA;AACA,IAAAE,cAAA,GAAAF,OAAA;AAAgF,IAAAG,WAAA,GAAAH,OAAA;AAAA,SAAAD,uBAAAK,CAAA,WAAAA,CAAA,IAAAA,CAAA,CAAAC,UAAA,GAAAD,CAAA,KAAAE,OAAA,EAAAF,CAAA;AAIzE,MAAMG,SAAS,GAAGA,CAAC;EAAEC,WAAW;EAAEC;AAA4B,CAAC,KAAK;EACzE,MAAMC,aAAa,GAAGA,CAAA,KAAMD,KAAK,CAACE,SAAS,CAAC,CAAC;EAE7C,oBACE,IAAAR,WAAA,CAAAS,IAAA,EAACX,YAAA,CAAAY,IAAI;IAACC,KAAK,EAAEC,MAAM,CAACC,SAAU;IAAAC,QAAA,gBAC5B,IAAAd,WAAA,CAAAe,GAAA,EAAChB,cAAA,CAAAiB,UAAU;MAACC,OAAO,EAAC,IAAI;MAACN,KAAK,EAAEC,MAAM,CAACM,WAAY;MAAAJ,QAAA,EAChDT,WAAW,CAACa;IAAW,CACd,CAAC,eAEb,IAAAlB,WAAA,CAAAS,IAAA,EAACX,YAAA,CAAAY,IAAI;MAACC,KAAK,EAAEC,MAAM,CAACO,gBAAiB;MAAAL,QAAA,gBACnC,IAAAd,WAAA,CAAAe,GAAA,EAAChB,cAAA,CAAAqB,MAAM;QAACH,OAAO,EAAC,UAAU;QAACI,IAAI,EAAC,OAAO;QAACV,KAAK,EAAE;UAAEW,IAAI,EAAEV,MAAM,CAACW;QAAW,CAAE;QAACC,OAAO,EAAEjB,aAAc;QAAAO,QAAA,EAChGT,WAAW,CAACoB;MAAc,CACrB,CAAC,eAET,IAAAzB,WAAA,CAAAe,GAAA,EAAChB,cAAA,CAAAqB,MAAM;QACLH,OAAO,EAAC,SAAS;QACjBS,WAAW,EAAC,KAAK;QACjBL,IAAI,EAAC,OAAO;QACZV,KAAK,EAAE;UAAEW,IAAI,EAAEV,MAAM,CAACW;QAAW,CAAE;QACnCC,OAAO,EAAElB,KAAK,CAACqB,iBAAkB;QAAAb,QAAA,EAEhCT,WAAW,CAACuB;MAAe,CACtB,CAAC;IAAA,CACL,CAAC;EAAA,CACH,CAAC;AAEX,CAAC;AAAAC,OAAA,CAAAzB,SAAA,GAAAA,SAAA;AAED,MAAMQ,MAAM,GAAGkB,uBAAU,CAACC,MAAM,CAAC;EAC/BlB,SAAS,EAAE;IACTmB,IAAI,EAAE,CAAC;IACPC,GAAG,EAAEC,sBAAO,CAAC,GAAG,CAAC;IACjBC,UAAU,EAAED,sBAAO,CAAC,GAAG,CAAC;IACxBE,UAAU,EAAE,QAAQ;IACpBC,cAAc,EAAE;EAClB,CAAC;EACDnB,WAAW,EAAE;IACXoB,SAAS,EAAE,QAAQ;IACnBC,UAAU,EAAE,KAAK;IACjBC,KAAK,EAAEC,qBAAM,CAACC;EAChB,CAAC;EACDvB,gBAAgB,EAAE;IAChBwB,aAAa,EAAE,KAAK;IACpBP,UAAU,EAAE,QAAQ;IACpBH,GAAG,EAAEC,sBAAO,CAAC,GAAG;EAClB,CAAC;EACDX,UAAU,EAAE;IACVqB,aAAa,EAAE;EACjB;AACF,CAAC,CAAC","ignoreList":[]}
@@ -0,0 +1,55 @@
1
+ "use strict";
2
+
3
+ Object.defineProperty(exports, "__esModule", {
4
+ value: true
5
+ });
6
+ exports.ExamPaused = void 0;
7
+ var _react = _interopRequireDefault(require("react"));
8
+ var _reactNative = require("react-native");
9
+ var _reactNativeUi = require("@magmamath/react-native-ui");
10
+ var _jsxRuntime = require("react/jsx-runtime");
11
+ function _interopRequireDefault(e) { return e && e.__esModule ? e : { default: e }; }
12
+ const ExamPaused = ({
13
+ textContent,
14
+ model
15
+ }) => {
16
+ return /*#__PURE__*/(0, _jsxRuntime.jsxs)(_reactNative.View, {
17
+ style: styles.container,
18
+ children: [/*#__PURE__*/(0, _jsxRuntime.jsx)(_reactNativeUi.Typography, {
19
+ variant: "h2",
20
+ style: styles.title,
21
+ children: textContent.title
22
+ }), /*#__PURE__*/(0, _jsxRuntime.jsx)(_reactNativeUi.Typography, {
23
+ variant: "h1",
24
+ style: styles.description,
25
+ children: textContent.description
26
+ }), /*#__PURE__*/(0, _jsxRuntime.jsx)(_reactNativeUi.Button, {
27
+ variant: "primary",
28
+ colorScheme: "purple",
29
+ size: "large",
30
+ style: {
31
+ text: styles.buttonText
32
+ },
33
+ onPress: model.hidePopUpAndLeave,
34
+ children: textContent.leftButtonText
35
+ })]
36
+ });
37
+ };
38
+ exports.ExamPaused = ExamPaused;
39
+ const styles = _reactNative.StyleSheet.create({
40
+ container: {
41
+ gap: _reactNativeUi.SPACING[800],
42
+ alignItems: 'center'
43
+ },
44
+ title: {
45
+ color: _reactNativeUi.COLORS.NEUTRAL_9
46
+ },
47
+ description: {
48
+ textAlign: 'center',
49
+ fontWeight: '700'
50
+ },
51
+ buttonText: {
52
+ textTransform: 'uppercase'
53
+ }
54
+ });
55
+ //# sourceMappingURL=ExamPaused.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"names":["_react","_interopRequireDefault","require","_reactNative","_reactNativeUi","_jsxRuntime","e","__esModule","default","ExamPaused","textContent","model","jsxs","View","style","styles","container","children","jsx","Typography","variant","title","description","Button","colorScheme","size","text","buttonText","onPress","hidePopUpAndLeave","leftButtonText","exports","StyleSheet","create","gap","SPACING","alignItems","color","COLORS","NEUTRAL_9","textAlign","fontWeight","textTransform"],"sourceRoot":"../../../../../../src","sources":["features/endOfAssignment/components/ExamPaused/ExamPaused.tsx"],"mappings":";;;;;;AAAA,IAAAA,MAAA,GAAAC,sBAAA,CAAAC,OAAA;AACA,IAAAC,YAAA,GAAAD,OAAA;AACA,IAAAE,cAAA,GAAAF,OAAA;AA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CAACC;EAChB,CAAC;EACDjB,WAAW,EAAE;IACXkB,SAAS,EAAE,QAAQ;IACnBC,UAAU,EAAE;EACd,CAAC;EACDd,UAAU,EAAE;IACVe,aAAa,EAAE;EACjB;AACF,CAAC,CAAC","ignoreList":[]}
@@ -0,0 +1,102 @@
1
+ "use strict";
2
+
3
+ Object.defineProperty(exports, "__esModule", {
4
+ value: true
5
+ });
6
+ exports.ExamSubmit = void 0;
7
+ var _react = _interopRequireDefault(require("react"));
8
+ var _reactNative = require("react-native");
9
+ var _effectorReact = require("effector-react");
10
+ var _reactNativeUi = require("@magmamath/react-native-ui");
11
+ var _ExamSubmitContent = require("./ExamSubmitContent.js");
12
+ var _PracticeButton = require("../../ui/PracticeButton.js");
13
+ var _jsxRuntime = require("react/jsx-runtime");
14
+ function _interopRequireDefault(e) { return e && e.__esModule ? e : { default: e }; }
15
+ const ExamSubmit = ({
16
+ textContent,
17
+ model,
18
+ onPracticePress
19
+ }) => {
20
+ const popUpData = (0, _effectorReact.useUnit)(model.$popUpData);
21
+ const problemsAmount = popUpData?.stats?.problemsAmount ?? 0;
22
+ const practiceModeEnabled = popUpData?.user.practiceMode;
23
+ const leaveAssignmentButtonVariant = !practiceModeEnabled || popUpData?.newerAssignmentAvailable ? _reactNativeUi.ButtonVariant.PRIMARY : _reactNativeUi.ButtonVariant.TERTIARY;
24
+ const handlePracticePress = () => {
25
+ onPracticePress?.();
26
+ model.hidePopUp();
27
+ };
28
+ return /*#__PURE__*/(0, _jsxRuntime.jsxs)(_reactNative.View, {
29
+ style: styles.container,
30
+ children: [/*#__PURE__*/(0, _jsxRuntime.jsx)(_reactNative.View, {
31
+ style: styles.contentBackground,
32
+ children: _reactNativeUi.IS_MOBILE ? /*#__PURE__*/(0, _jsxRuntime.jsx)(_reactNative.Image, {
33
+ source: require('./blurred-card.png')
34
+ }) : /*#__PURE__*/(0, _jsxRuntime.jsx)(_ExamSubmitContent.ExamSubmitContent, {
35
+ problemsAmount: problemsAmount
36
+ })
37
+ }), /*#__PURE__*/(0, _jsxRuntime.jsx)(_reactNativeUi.Typography, {
38
+ variant: "h2",
39
+ style: styles.title,
40
+ children: textContent.title
41
+ }), /*#__PURE__*/(0, _jsxRuntime.jsx)(_reactNativeUi.Typography, {
42
+ variant: "h1",
43
+ style: styles.description,
44
+ children: textContent.description
45
+ }), /*#__PURE__*/(0, _jsxRuntime.jsxs)(_reactNative.View, {
46
+ style: styles.buttonsContainer,
47
+ children: [/*#__PURE__*/(0, _jsxRuntime.jsx)(_reactNativeUi.Button, {
48
+ variant: leaveAssignmentButtonVariant,
49
+ size: "large",
50
+ colorScheme: popUpData?.isExam ? 'purple' : 'blue',
51
+ style: {
52
+ text: {
53
+ textTransform: 'uppercase'
54
+ }
55
+ },
56
+ onPress: model.hidePopUpAndLeave,
57
+ children: textContent.leftButtonText ?? ''
58
+ }), !!practiceModeEnabled && !popUpData?.newerAssignmentAvailable && /*#__PURE__*/(0, _jsxRuntime.jsx)(_PracticeButton.PracticeButton, {
59
+ onPress: handlePracticePress,
60
+ text: textContent.rightButtonText
61
+ })]
62
+ })]
63
+ });
64
+ };
65
+ exports.ExamSubmit = ExamSubmit;
66
+ const styles = _reactNative.StyleSheet.create({
67
+ container: {
68
+ flex: 1,
69
+ gap: _reactNativeUi.SPACING[400],
70
+ alignItems: 'center',
71
+ justifyContent: 'space-between'
72
+ },
73
+ title: {
74
+ color: _reactNativeUi.COLORS.NEUTRAL_9,
75
+ paddingVertical: _reactNativeUi.SPACING[100]
76
+ },
77
+ description: {
78
+ color: _reactNativeUi.COLORS.NEUTRAL_9,
79
+ textAlign: 'center',
80
+ fontWeight: 700,
81
+ paddingTop: _reactNativeUi.SPACING[800],
82
+ paddingBottom: _reactNativeUi.SPACING[1600]
83
+ },
84
+ contentBackground: {
85
+ position: 'absolute',
86
+ zIndex: -1,
87
+ top: '22%',
88
+ ...(_reactNative.Platform.OS === 'web' && {
89
+ filter: 'blur(4px)'
90
+ })
91
+ },
92
+ buttonsContainer: {
93
+ height: 62,
94
+ flexDirection: 'row',
95
+ alignItems: 'center',
96
+ gap: _reactNativeUi.SPACING[200]
97
+ },
98
+ buttonText: {
99
+ textTransform: 'uppercase'
100
+ }
101
+ });
102
+ //# sourceMappingURL=ExamSubmit.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"names":["_react","_interopRequireDefault","require","_reactNative","_effectorReact","_reactNativeUi","_ExamSubmitContent","_PracticeButton","_jsxRuntime","e","__esModule","default","ExamSubmit","textContent","model","onPracticePress","popUpData","useUnit","$popUpData","problemsAmount","stats","practiceModeEnabled","user","practiceMode","leaveAssignmentButtonVariant","newerAssignmentAvailable","ButtonVariant","PRIMARY","TERTIARY","handlePracticePress","hidePopUp","jsxs","View","style","styles","container","children","jsx","contentBackground","IS_MOBILE","Image","source","ExamSubmitContent","Typography","variant","title","description","buttonsContainer","Button","size","colorScheme","isExam","text","textTransform","onPress","hidePopUpAndLeave","leftButtonText","PracticeButton","rightButtonText","exports","StyleSheet","create","flex","gap","SPACING","alignItems","justifyContent","color","COLORS","NEUTRAL_9","paddingVertical","textAlign","fontWeight","paddingTop","paddingBottom","position","zIndex","top","Platform","OS","filter","height","flexDirection","buttonText"],"sourceRoot":"../../../../../../src","sources":["features/endOfAssignment/components/ExamSubmit/ExamSubmit.tsx"],"mappings":";;;;;;AAAA,IAAAA,MAAA,GAAAC,sBAAA,CAAAC,OAAA;AACA,IAAAC,YAAA,GAAAD,OAAA;AACA,IAAAE,cAAA,GAAAF,OAAA;AACA,IAAAG,cAAA,GAAAH,OAAA;AASA,IAAAI,kBAAA,GAAAJ,OAAA;AAEA,IAAAK,eAAA,GAAAL,OAAA;AAAwD,IAAAM,WAAA,GAAAN,OAAA;AAAA,SAAAD,uBAAAQ,CAAA,WAAAA,CAAA,IAAAA,CAAA,CAAAC,UAAA,GAAAD,CAAA,KAAAE,OAAA,EAAAF,CAAA;AAEjD,MAAMG,UAAU,GAAGA,CAAC;EAAEC,WAAW;EAAEC,KAAK;EAAEC;AAA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E,SAAS,EAAE,QAAQ;IACnBC,UAAU,EAAE,GAAG;IACfC,UAAU,EAAET,sBAAO,CAAC,GAAG,CAAC;IACxBU,aAAa,EAAEV,sBAAO,CAAC,IAAI;EAC7B,CAAC;EACD1B,iBAAiB,EAAE;IACjBqC,QAAQ,EAAE,UAAU;IACpBC,MAAM,EAAE,CAAC,CAAC;IACVC,GAAG,EAAE,KAAK;IACV,IAAIC,qBAAQ,CAACC,EAAE,KAAK,KAAK,IAAI;MAC3BC,MAAM,EAAE;IACV,CAAC;EACH,CAAC;EACDjC,gBAAgB,EAAE;IAChBkC,MAAM,EAAE,EAAE;IACVC,aAAa,EAAE,KAAK;IACpBjB,UAAU,EAAE,QAAQ;IACpBF,GAAG,EAAEC,sBAAO,CAAC,GAAG;EAClB,CAAC;EACDmB,UAAU,EAAE;IACV9B,aAAa,EAAE;EACjB;AACF,CAAC,CAAC","ignoreList":[]}
@@ -0,0 +1,83 @@
1
+ "use strict";
2
+
3
+ Object.defineProperty(exports, "__esModule", {
4
+ value: true
5
+ });
6
+ exports.ExamSubmitContent = void 0;
7
+ var _react = _interopRequireDefault(require("react"));
8
+ var _reactNative = require("react-native");
9
+ var _reactNativeUi = require("@magmamath/react-native-ui");
10
+ var _jsxRuntime = require("react/jsx-runtime");
11
+ function _interopRequireDefault(e) { return e && e.__esModule ? e : { default: e }; }
12
+ const ExamSubmitContent = ({
13
+ problemsAmount,
14
+ description
15
+ }) => {
16
+ return /*#__PURE__*/(0, _jsxRuntime.jsx)(_reactNative.View, {
17
+ style: styles.container,
18
+ children: /*#__PURE__*/(0, _jsxRuntime.jsxs)(_reactNative.View, {
19
+ style: styles.content,
20
+ children: [/*#__PURE__*/(0, _jsxRuntime.jsx)(_reactNative.View, {
21
+ style: styles.iconContainer,
22
+ children: /*#__PURE__*/(0, _jsxRuntime.jsx)(_reactNativeUi.CorrectIcon, {
23
+ size: 70,
24
+ color: _reactNativeUi.COLORS.NEUTRAL_1
25
+ })
26
+ }), /*#__PURE__*/(0, _jsxRuntime.jsxs)(_reactNative.View, {
27
+ style: styles.textContainer,
28
+ children: [/*#__PURE__*/(0, _jsxRuntime.jsx)(_reactNativeUi.Typography, {
29
+ variant: "xxl",
30
+ style: styles.largeText,
31
+ children: description || '?'
32
+ }), /*#__PURE__*/(0, _jsxRuntime.jsxs)(_reactNativeUi.Typography, {
33
+ style: styles.text,
34
+ children: ["/", problemsAmount]
35
+ })]
36
+ })]
37
+ })
38
+ });
39
+ };
40
+ exports.ExamSubmitContent = ExamSubmitContent;
41
+ const styles = _reactNative.StyleSheet.create({
42
+ container: {
43
+ opacity: 0.4,
44
+ paddingHorizontal: _reactNativeUi.SPACING[100],
45
+ paddingTop: _reactNativeUi.SPACING[100],
46
+ paddingBottom: 38,
47
+ marginBottom: _reactNativeUi.SPACING[800],
48
+ backgroundColor: _reactNativeUi.COLORS.NEUTRAL_5,
49
+ borderRadius: _reactNativeUi.BORDER_RADIUS[400]
50
+ },
51
+ content: {
52
+ flexDirection: 'row',
53
+ borderRadius: _reactNativeUi.BORDER_RADIUS[200],
54
+ paddingVertical: _reactNativeUi.SPACING[400],
55
+ paddingHorizontal: _reactNativeUi.SPACING[800],
56
+ backgroundColor: _reactNativeUi.COLORS.NEUTRAL_1,
57
+ gap: _reactNativeUi.SPACING[500]
58
+ },
59
+ iconContainer: {
60
+ backgroundColor: _reactNativeUi.COLORS.NEUTRAL_5,
61
+ padding: _reactNativeUi.SPACING[200],
62
+ borderRadius: 100,
63
+ height: 70,
64
+ width: 70,
65
+ justifyContent: 'center',
66
+ alignItems: 'center'
67
+ },
68
+ textContainer: {
69
+ flexDirection: 'row'
70
+ },
71
+ text: {
72
+ fontWeight: '700',
73
+ color: _reactNativeUi.COLORS.NEUTRAL_5,
74
+ alignSelf: 'flex-end'
75
+ },
76
+ largeText: {
77
+ fontSize: 48,
78
+ fontWeight: '700',
79
+ lineHeight: 48,
80
+ color: _reactNativeUi.COLORS.NEUTRAL_5
81
+ }
82
+ });
83
+ //# sourceMappingURL=ExamSubmitContent.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"names":["_react","_interopRequireDefault","require","_reactNative","_reactNativeUi","_jsxRuntime","e","__esModule","default","ExamSubmitContent","problemsAmount","description","jsx","View","style","styles","container","children","jsxs","content","iconContainer","CorrectIcon","size","color","COLORS","NEUTRAL_1","textContainer","Typography","variant","largeText","text","exports","StyleSheet","create","opacity","paddingHorizontal","SPACING","paddingTop","paddingBottom","marginBottom","backgroundColor","NEUTRAL_5","borderRadius","BORDER_RADIUS","flexDirection","paddingVertical","gap","padding","height","width","justifyContent","alignItems","fontWeight","alignSelf","fontSize","lineHeight"],"sourceRoot":"../../../../../../src","sources":["features/endOfAssignment/components/ExamSubmit/ExamSubmitContent.tsx"],"mappings":";;;;;;AAAA,IAAAA,MAAA,GAAAC,sBAAA,CAAAC,OAAA;AACA,IAAAC,YAAA,GAAAD,OAAA;AACA,IAAAE,cAAA,GAAAF,OAAA;AAAoG,IAAAG,WAAA,GAAAH,OAAA;AAAA,SAAAD,uBAAAK,CAAA,WAAAA,CAAA,IAAAA,CAAA,CAAAC,UAAA,GAAAD,CAAA,KAAAE,OAAA,EAAAF,CAAA;AAO7F,MAAMG,iBAAiB,GAAGA,CAAC;EAAEC,cAAc;EAAEC;AAAmC,CAAC,KAAK;EAC3F,oBACE,IAAAN,WAAA,CAAAO,GAAA,EAACT,YAAA,CAAAU,IAAI;IAACC,KAAK,EAAEC,MAAM,CAACC,SAAU;IAAAC,QAAA,eAC5B,IAAAZ,WAAA,CAAAa,IAAA,EAACf,YAAA,CAAAU,IAAI;MAACC,KAAK,EAAEC,MAAM,CAACI,OAAQ;MAAAF,QAAA,gBAC1B,IAAAZ,WAAA,CAAAO,GAAA,EAACT,YAAA,CAAAU,IAAI;QAACC,KAAK,EAAEC,MAAM,CAACK,aAAc;QAAAH,QAAA,eAChC,IAAAZ,WAAA,CAAAO,GAAA,EAACR,cAAA,CAAAiB,WAAW;UAACC,IAAI,EAAE,EAAG;UAACC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ACDhB,aAAa,EAAE;IACboB,eAAe,EAAEhB,qBAAM,CAACiB,SAAS;IACjCM,OAAO,EAAEX,sBAAO,CAAC,GAAG,CAAC;IACrBM,YAAY,EAAE,GAAG;IACjBM,MAAM,EAAE,EAAE;IACVC,KAAK,EAAE,EAAE;IACTC,cAAc,EAAE,QAAQ;IACxBC,UAAU,EAAE;EACd,CAAC;EACDzB,aAAa,EAAE;IACbkB,aAAa,EAAE;EACjB,CAAC;EACDd,IAAI,EAAE;IACJsB,UAAU,EAAE,KAAK;IACjB7B,KAAK,EAAEC,qBAAM,CAACiB,SAAS;IACvBY,SAAS,EAAE;EACb,CAAC;EACDxB,SAAS,EAAE;IACTyB,QAAQ,EAAE,EAAE;IACZF,UAAU,EAAE,KAAK;IACjBG,UAAU,EAAE,EAAE;IACdhC,KAAK,EAAEC,qBAAM,CAACiB;EAChB;AACF,CAAC,CAAC","ignoreList":[]}
@@ -0,0 +1,96 @@
1
+ "use strict";
2
+
3
+ Object.defineProperty(exports, "__esModule", {
4
+ value: true
5
+ });
6
+ exports.Modal = void 0;
7
+ var _react = _interopRequireWildcard(require("react"));
8
+ var _reactNativeUi = require("@magmamath/react-native-ui");
9
+ var _reactNative = require("react-native");
10
+ var _model = require("./model.js");
11
+ var _ModalBackground = require("./ModalBackground.js");
12
+ var _jsxRuntime = require("react/jsx-runtime");
13
+ function _getRequireWildcardCache(e) { if ("function" != typeof WeakMap) return null; var r = new WeakMap(), t = new WeakMap(); return (_getRequireWildcardCache = function (e) { return e ? t : r; })(e); }
14
+ function _interopRequireWildcard(e, r) { if (!r && e && e.__esModule) return e; if (null === e || "object" != typeof e && "function" != typeof e) return { default: e }; var t = _getRequireWildcardCache(r); if (t && t.has(e)) return t.get(e); var n = { __proto__: null }, a = Object.defineProperty && Object.getOwnPropertyDescriptor; for (var u in e) if ("default" !== u && {}.hasOwnProperty.call(e, u)) { var i = a ? Object.getOwnPropertyDescriptor(e, u) : null; i && (i.get || i.set) ? Object.defineProperty(n, u, i) : n[u] = e[u]; } return n.default = e, t && t.set(e, n), n; }
15
+ const stopPropagation = {
16
+ onTouchStart: event => {
17
+ event.stopPropagation();
18
+ },
19
+ onMouseDown: event => {
20
+ event.stopPropagation();
21
+ }
22
+ };
23
+ const Modal = ({
24
+ isVisible,
25
+ isDismissable = true,
26
+ onClose,
27
+ style,
28
+ content,
29
+ withBackground
30
+ }) => {
31
+ const [modalModel] = (0, _react.useState)(() => new _model.ModalModel());
32
+ (0, _react.useEffect)(() => {
33
+ if (isVisible) {
34
+ modalModel.animation.show();
35
+ }
36
+ }, [isVisible]);
37
+ if (!isVisible) return null;
38
+ return /*#__PURE__*/(0, _jsxRuntime.jsx)(_reactNative.TouchableWithoutFeedback, {
39
+ onPress: () => isDismissable && onClose?.(),
40
+ children: /*#__PURE__*/(0, _jsxRuntime.jsx)(_reactNative.Animated.View, {
41
+ style: [styles.overlay, style?.overlay, modalModel.animatedStyle],
42
+ children: /*#__PURE__*/(0, _jsxRuntime.jsx)(_reactNative.TouchableWithoutFeedback, {
43
+ ...stopPropagation,
44
+ children: /*#__PURE__*/(0, _jsxRuntime.jsxs)(_reactNative.View, {
45
+ style: [styles.container, style?.container],
46
+ children: [withBackground && /*#__PURE__*/(0, _jsxRuntime.jsx)(_reactNative.View, {
47
+ style: styles.backgroundWrapper,
48
+ children: /*#__PURE__*/(0, _jsxRuntime.jsx)(_ModalBackground.ModalBackground, {})
49
+ }), isDismissable && /*#__PURE__*/(0, _jsxRuntime.jsx)(_reactNative.View, {
50
+ style: [styles.closeButton, style?.closeButton],
51
+ children: /*#__PURE__*/(0, _jsxRuntime.jsx)(_reactNativeUi.Button, {
52
+ variant: _reactNativeUi.ButtonVariant.TERTIARY,
53
+ icon: /*#__PURE__*/(0, _jsxRuntime.jsx)(_reactNativeUi.CrossIcon, {
54
+ size: 18,
55
+ color: _reactNativeUi.COLORS.NEUTRAL_7
56
+ }),
57
+ onPress: onClose
58
+ })
59
+ }), content]
60
+ })
61
+ })
62
+ })
63
+ });
64
+ };
65
+ exports.Modal = Modal;
66
+ const styles = _reactNative.StyleSheet.create({
67
+ overlay: {
68
+ ..._reactNative.StyleSheet.absoluteFillObject,
69
+ justifyContent: 'center',
70
+ alignItems: 'center',
71
+ backgroundColor: 'rgba(0, 0, 0, 0.2)',
72
+ zIndex: 10001
73
+ },
74
+ container: {
75
+ position: 'relative',
76
+ justifyContent: 'space-between',
77
+ backgroundColor: _reactNativeUi.COLORS.NEUTRAL_1,
78
+ minWidth: 300,
79
+ maxWidth: 957,
80
+ borderRadius: _reactNativeUi.BORDER_RADIUS['400'],
81
+ paddingHorizontal: _reactNativeUi.SPACING['1600'],
82
+ paddingVertical: _reactNativeUi.SPACING['800'],
83
+ gap: _reactNativeUi.SPACING['600'],
84
+ ..._reactNativeUi.SHADOWS['5']
85
+ },
86
+ closeButton: {
87
+ position: 'absolute',
88
+ top: _reactNativeUi.SPACING['400'],
89
+ right: _reactNativeUi.SPACING['400']
90
+ },
91
+ backgroundWrapper: {
92
+ ..._reactNative.StyleSheet.absoluteFillObject,
93
+ zIndex: -1
94
+ }
95
+ });
96
+ //# sourceMappingURL=Modal.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"names":["_react","_interopRequireWildcard","require","_reactNativeUi","_reactNative","_model","_ModalBackground","_jsxRuntime","_getRequireWildcardCache","e","WeakMap","r","t","__esModule","default","has","get","n","__proto__","a","Object","defineProperty","getOwnPropertyDescriptor","u","hasOwnProperty","call","i","set","stopPropagation","onTouchStart","event","onMouseDown","Modal","isVisible","isDismissable","onClose","style","content","withBackground","modalModel","useState","ModalModel","useEffect","animation","show","jsx","TouchableWithoutFeedback","onPress","children","Animated","View","styles","overlay","animatedStyle","jsxs","container","backgroundWrapper","ModalBackground","closeButton","Button","variant","ButtonVariant","TERTIARY","icon","CrossIcon","size","color","COLORS","NEUTRAL_7","exports","StyleSheet","create","absoluteFillObject","justifyContent","alignItems","backgroundColor","zIndex","position","NEUTRAL_1","minWidth","maxWidth","borderRadius","BORDER_RADIUS","paddingHorizontal","SPACING","paddingVertical","gap","SHADOWS","top","right"],"sourceRoot":"../../../../../../src","sources":["features/endOfAssignment/components/Modal/Modal.tsx"],"mappings":";;;;;;AAAA,IAAAA,MAAA,GAAAC,uBAAA,CAAAC,OAAA;AACA,IAAAC,cAAA,GAAAD,OAAA;AACA,IAAAE,YAAA,GAAAF,OAAA;AAWA,IAAAG,MAAA,GAAAH,OAAA;AACA,IAAAI,gBAAA,GAAAJ,OAAA;AAAmD,IAAAK,WAAA,GAAAL,OAAA;AAAA,SAAAM,yBAAAC,CAAA,6BAAAC,OAAA,mBAAAC,CAAA,OAAAD,OAAA,IAAAE,CAAA,OAAAF,OAAA,YAAAF,wBAAA,YAAAA,CAAAC,CAAA,WAAAA,CAAA,GAAAG,CAAA,GAAAD,CAAA,KAAAF,CAAA;AAAA,SAAAR,wBAAAQ,CAAA,EAAAE,CAAA,SAAAA,CAAA,IAAAF,CAAA,IAAAA,CAAA,CAAAI,UAAA,SAAAJ,CAAA,eAAAA,CAAA,uBAAAA,CAAA,yBAAAA,CAAA,WAAAK,OAAA,EAAAL,CAAA,QAAAG,CAAA,GAAAJ,wBAAA,CAAAG,CAAA,OAAAC,CAAA,IAAAA,CAAA,CAAAG,GAAA,CAAAN,CAAA,UAAAG,CAAA,CAAAI,GAAA,CAAAP,CAAA,OAAAQ,CAAA,KAAAC,SAAA,UAAAC,CAAA,GAAAC,MAAA,CAAAC,cAAA,IAAAD,MAAA,CAAAE,wBAAA,WAAAC,CAAA,IAAAd,CAAA,oBAAAc,CAAA,OAAAC,cAAA,CAAAC,IAAA,CAAAhB,CAAA,EAAAc,CAAA,SAAAG,CAAA,GAAAP,CAAA,GAAAC,MAAA,CAAAE,wBAAA,CAAAb,CAAA,EAAAc,CAAA,UAAAG,CAAA,KAAAA,CAAA,CAAAV,GAAA,IAAAU,CAAA,CAAAC,GAAA,IAAAP,MAAA,CAAAC,cAAA,CAAAJ,CAAA,EAAAM,CAAA,EAAAG,CAAA,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EAAE,UAAU;IACpBJ,cAAc,EAAE,eAAe;IAC/BE,eAAe,EAAER,qBAAM,CAACW,SAAS;IACjCC,QAAQ,EAAE,GAAG;IACbC,QAAQ,EAAE,GAAG;IACbC,YAAY,EAAEC,4BAAa,CAAC,KAAK,CAAC;IAClCC,iBAAiB,EAAEC,sBAAO,CAAC,MAAM,CAAC;IAClCC,eAAe,EAAED,sBAAO,CAAC,KAAK,CAAC;IAC/BE,GAAG,EAAEF,sBAAO,CAAC,KAAK,CAAC;IACnB,GAAGG,sBAAO,CAAC,GAAG;EAChB,CAAC;EACD7B,WAAW,EAAE;IACXmB,QAAQ,EAAE,UAAU;IACpBW,GAAG,EAAEJ,sBAAO,CAAC,KAAK,CAAC;IACnBK,KAAK,EAAEL,sBAAO,CAAC,KAAK;EACtB,CAAC;EACD5B,iBAAiB,EAAE;IACjB,GAAGc,uBAAU,CAACE,kBAAkB;IAChCI,MAAM,EAAE,CAAC;EACX;AACF,CAAC,CAAC","ignoreList":[]}
@@ -0,0 +1,44 @@
1
+ "use strict";
2
+
3
+ Object.defineProperty(exports, "__esModule", {
4
+ value: true
5
+ });
6
+ exports.ModalBackground = void 0;
7
+ var _react = _interopRequireDefault(require("react"));
8
+ var _reactNative = require("react-native");
9
+ var _reactNativeUi = require("@magmamath/react-native-ui");
10
+ var _TrophyIcon = require("./assets/TrophyIcon.js");
11
+ var _SunrisingIcon = require("./assets/SunrisingIcon.js");
12
+ var _jsxRuntime = require("react/jsx-runtime");
13
+ function _interopRequireDefault(e) { return e && e.__esModule ? e : { default: e }; }
14
+ const ModalBackground = () => /*#__PURE__*/(0, _jsxRuntime.jsxs)(_reactNative.View, {
15
+ style: [_reactNative.StyleSheet.absoluteFill, styles.backgroundContainer],
16
+ children: [/*#__PURE__*/(0, _jsxRuntime.jsx)(_reactNative.View, {
17
+ style: styles.bgImageLeft,
18
+ children: /*#__PURE__*/(0, _jsxRuntime.jsx)(_TrophyIcon.TrophyIcon, {
19
+ size: 466
20
+ })
21
+ }), /*#__PURE__*/(0, _jsxRuntime.jsx)(_reactNative.View, {
22
+ style: styles.bgImageRight,
23
+ children: /*#__PURE__*/(0, _jsxRuntime.jsx)(_SunrisingIcon.SunrisingIcon, {
24
+ size: 909
25
+ })
26
+ })]
27
+ });
28
+ exports.ModalBackground = ModalBackground;
29
+ const styles = _reactNative.StyleSheet.create({
30
+ backgroundContainer: {
31
+ borderRadius: _reactNativeUi.BORDER_RADIUS[400],
32
+ overflow: 'hidden'
33
+ },
34
+ bgImageLeft: {
35
+ position: 'absolute',
36
+ bottom: 0,
37
+ zIndex: -1
38
+ },
39
+ bgImageRight: {
40
+ position: 'absolute',
41
+ zIndex: -2
42
+ }
43
+ });
44
+ //# sourceMappingURL=ModalBackground.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"names":["_react","_interopRequireDefault","require","_reactNative","_reactNativeUi","_TrophyIcon","_SunrisingIcon","_jsxRuntime","e","__esModule","default","ModalBackground","jsxs","View","style","StyleSheet","absoluteFill","styles","backgroundContainer","children","jsx","bgImageLeft","TrophyIcon","size","bgImageRight","SunrisingIcon","exports","create","borderRadius","BORDER_RADIUS","overflow","position","bottom","zIndex"],"sourceRoot":"../../../../../../src","sources":["features/endOfAssignment/components/Modal/ModalBackground.tsx"],"mappings":";;;;;;AAAA,IAAAA,MAAA,GAAAC,sBAAA,CAAAC,OAAA;AACA,IAAAC,YAAA,GAAAD,OAAA;AACA,IAAAE,cAAA,GAAAF,OAAA;AAEA,IAAAG,WAAA,GAAAH,OAAA;AACA,IAAAI,cAAA,GAAAJ,OAAA;AAAsD,IAAAK,WAAA,GAAAL,OAAA;AAAA,SAAAD,uBAAAO,CAAA,WAAAA,CAAA,IAAAA,CAAA,CAAAC,UAAA,GAAAD,CAAA,KAAAE,OAAA,EAAAF,CAAA;AAE/C,MAAMG,eAAe,GAAGA,CAAA,kBAC7B,IAAAJ,WAAA,CAAAK,IAAA,EAACT,YAAA,CAAAU,IAAI;EAACC,KAAK,EAAE,CAACC,u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