@magmamath/students-features 0.9.113 → 0.9.114-rc.1

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 (367) hide show
  1. package/dist/commonjs/features/chatbot/components/ChatInput/RequestHintButton.js.map +1 -1
  2. package/dist/commonjs/features/chatbot/components/ChatMessage/MessageButtonsBlock.js.map +1 -1
  3. package/dist/commonjs/features/chatbot/components/ChatMessage/MessageTextToSpeech.js +8 -48
  4. package/dist/commonjs/features/chatbot/components/ChatMessage/MessageTextToSpeech.js.map +1 -1
  5. package/dist/commonjs/features/chatbot/constants.js +4 -4
  6. package/dist/commonjs/features/chatbot/constants.js.map +1 -1
  7. package/dist/commonjs/features/gifCelebrations/helpers.js +1 -0
  8. package/dist/commonjs/features/gifCelebrations/helpers.js.map +1 -1
  9. package/dist/commonjs/features/voice/constants.js +22 -0
  10. package/dist/commonjs/features/voice/constants.js.map +1 -0
  11. package/dist/commonjs/features/voice/helpers.js +211 -0
  12. package/dist/commonjs/features/voice/helpers.js.map +1 -0
  13. package/dist/commonjs/features/voice/index.js +138 -0
  14. package/dist/commonjs/features/voice/index.js.map +1 -0
  15. package/dist/commonjs/features/voice/model/index.js +68 -0
  16. package/dist/commonjs/features/voice/model/index.js.map +1 -0
  17. package/dist/commonjs/features/voice/playing/components/VoiceIcon.js +49 -0
  18. package/dist/commonjs/features/voice/playing/components/VoiceIcon.js.map +1 -0
  19. package/dist/commonjs/features/voice/playing/components/VoiceTranscriptionsDropdown.js +208 -0
  20. package/dist/commonjs/features/voice/playing/components/VoiceTranscriptionsDropdown.js.map +1 -0
  21. package/dist/commonjs/features/voice/playing/components/VoiceTranscriptionsDropdownItem.js +108 -0
  22. package/dist/commonjs/features/voice/playing/components/VoiceTranscriptionsDropdownItem.js.map +1 -0
  23. package/dist/commonjs/features/voice/playing/hooks/useVoiceTranscriptionsDropdown.js +50 -0
  24. package/dist/commonjs/features/voice/playing/hooks/useVoiceTranscriptionsDropdown.js.map +1 -0
  25. package/dist/commonjs/features/voice/playing/hooks/useVoiceTranscriptionsDropdownItemAnimation.js +34 -0
  26. package/dist/commonjs/features/voice/playing/hooks/useVoiceTranscriptionsDropdownItemAnimation.js.map +1 -0
  27. package/dist/commonjs/features/voice/playing/model/Player.model.js +87 -0
  28. package/dist/commonjs/features/voice/playing/model/Player.model.js.map +1 -0
  29. package/dist/commonjs/features/voice/playing/model/VoicePlayer.model.js +244 -0
  30. package/dist/commonjs/features/voice/playing/model/VoicePlayer.model.js.map +1 -0
  31. package/dist/commonjs/features/voice/playing/model/VoiceTranscriptionsCollection.js +41 -0
  32. package/dist/commonjs/features/voice/playing/model/VoiceTranscriptionsCollection.js.map +1 -0
  33. package/dist/commonjs/features/voice/playing/model/VoiceTranscriptionsDownloader.model.js +39 -0
  34. package/dist/commonjs/features/voice/playing/model/VoiceTranscriptionsDownloader.model.js.map +1 -0
  35. package/dist/commonjs/features/voice/playing/model/VoiceTranscriptionsDropdown.model.js +15 -0
  36. package/dist/commonjs/features/voice/playing/model/VoiceTranscriptionsDropdown.model.js.map +1 -0
  37. package/dist/commonjs/features/voice/playing/model/index.js +47 -0
  38. package/dist/commonjs/features/voice/playing/model/index.js.map +1 -0
  39. package/dist/commonjs/features/voice/recording/components/VoiceRecord.js +74 -0
  40. package/dist/commonjs/features/voice/recording/components/VoiceRecord.js.map +1 -0
  41. package/dist/commonjs/features/voice/recording/components/VoiceRecordButton.js +61 -0
  42. package/dist/commonjs/features/voice/recording/components/VoiceRecordButton.js.map +1 -0
  43. package/dist/commonjs/features/voice/recording/components/VoiceRecordDeleteButton.js +35 -0
  44. package/dist/commonjs/features/voice/recording/components/VoiceRecordDeleteButton.js.map +1 -0
  45. package/dist/commonjs/features/voice/recording/components/VoiceRecordDevider.js +27 -0
  46. package/dist/commonjs/features/voice/recording/components/VoiceRecordDevider.js.map +1 -0
  47. package/dist/commonjs/features/voice/recording/components/VoiceRecordTimer.js +50 -0
  48. package/dist/commonjs/features/voice/recording/components/VoiceRecordTimer.js.map +1 -0
  49. package/dist/commonjs/features/voice/recording/hooks/useVoiceRecorder.js +59 -0
  50. package/dist/commonjs/features/voice/recording/hooks/useVoiceRecorder.js.map +1 -0
  51. package/dist/commonjs/features/voice/recording/hooks/useVoiceRecorderAnimation.js +22 -0
  52. package/dist/commonjs/features/voice/recording/hooks/useVoiceRecorderAnimation.js.map +1 -0
  53. package/dist/commonjs/features/voice/recording/modal/ModalFooterButtons.js +53 -0
  54. package/dist/commonjs/features/voice/recording/modal/ModalFooterButtons.js.map +1 -0
  55. package/dist/commonjs/features/voice/recording/modal/VoiceRecordDeleteModal.js +78 -0
  56. package/dist/commonjs/features/voice/recording/modal/VoiceRecordDeleteModal.js.map +1 -0
  57. package/dist/commonjs/features/voice/recording/modal/VoiceRecordUndoModal.js +51 -0
  58. package/dist/commonjs/features/voice/recording/modal/VoiceRecordUndoModal.js.map +1 -0
  59. package/dist/commonjs/features/voice/recording/model/Recorder.model.js +54 -0
  60. package/dist/commonjs/features/voice/recording/model/Recorder.model.js.map +1 -0
  61. package/dist/commonjs/features/voice/recording/model/Uploader.model.js +44 -0
  62. package/dist/commonjs/features/voice/recording/model/Uploader.model.js.map +1 -0
  63. package/dist/commonjs/features/voice/recording/model/VoiceRecord.model.js +239 -0
  64. package/dist/commonjs/features/voice/recording/model/VoiceRecord.model.js.map +1 -0
  65. package/dist/commonjs/features/voice/recording/model/VoiceRecordCollection.js +30 -0
  66. package/dist/commonjs/features/voice/recording/model/VoiceRecordCollection.js.map +1 -0
  67. package/dist/commonjs/features/voice/recording/model/index.js +34 -0
  68. package/dist/commonjs/features/voice/recording/model/index.js.map +1 -0
  69. package/dist/commonjs/features/voice/types.js +6 -0
  70. package/dist/commonjs/features/voice/types.js.map +1 -0
  71. package/dist/commonjs/index.js +12 -0
  72. package/dist/commonjs/index.js.map +1 -1
  73. package/dist/commonjs/shared/components/PlayButton.js +70 -0
  74. package/dist/commonjs/shared/components/PlayButton.js.map +1 -0
  75. package/dist/commonjs/shared/translation/localization/ca.json +17 -0
  76. package/dist/commonjs/shared/translation/localization/de.json +17 -0
  77. package/dist/commonjs/shared/translation/localization/en.json +17 -0
  78. package/dist/commonjs/shared/translation/localization/gb.json +17 -0
  79. package/dist/commonjs/shared/translation/localization/sct.json +17 -0
  80. package/dist/commonjs/shared/translation/localization/sw.json +17 -0
  81. package/dist/module/features/chatbot/components/ChatInput/RequestHintButton.js.map +1 -1
  82. package/dist/module/features/chatbot/components/ChatMessage/MessageButtonsBlock.js.map +1 -1
  83. package/dist/module/features/chatbot/components/ChatMessage/MessageTextToSpeech.js +9 -49
  84. package/dist/module/features/chatbot/components/ChatMessage/MessageTextToSpeech.js.map +1 -1
  85. package/dist/module/features/chatbot/constants.js +5 -5
  86. package/dist/module/features/chatbot/constants.js.map +1 -1
  87. package/dist/module/features/gifCelebrations/helpers.js +1 -0
  88. package/dist/module/features/gifCelebrations/helpers.js.map +1 -1
  89. package/dist/module/features/voice/constants.js +18 -0
  90. package/dist/module/features/voice/constants.js.map +1 -0
  91. package/dist/module/features/voice/helpers.js +194 -0
  92. package/dist/module/features/voice/helpers.js.map +1 -0
  93. package/dist/module/features/voice/index.js +20 -0
  94. package/dist/module/features/voice/index.js.map +1 -0
  95. package/dist/module/features/voice/model/index.js +15 -0
  96. package/dist/module/features/voice/model/index.js.map +1 -0
  97. package/dist/module/features/voice/playing/components/VoiceIcon.js +41 -0
  98. package/dist/module/features/voice/playing/components/VoiceIcon.js.map +1 -0
  99. package/dist/module/features/voice/playing/components/VoiceTranscriptionsDropdown.js +201 -0
  100. package/dist/module/features/voice/playing/components/VoiceTranscriptionsDropdown.js.map +1 -0
  101. package/dist/module/features/voice/playing/components/VoiceTranscriptionsDropdownItem.js +102 -0
  102. package/dist/module/features/voice/playing/components/VoiceTranscriptionsDropdownItem.js.map +1 -0
  103. package/dist/module/features/voice/playing/hooks/useVoiceTranscriptionsDropdown.js +45 -0
  104. package/dist/module/features/voice/playing/hooks/useVoiceTranscriptionsDropdown.js.map +1 -0
  105. package/dist/module/features/voice/playing/hooks/useVoiceTranscriptionsDropdownItemAnimation.js +29 -0
  106. package/dist/module/features/voice/playing/hooks/useVoiceTranscriptionsDropdownItemAnimation.js.map +1 -0
  107. package/dist/module/features/voice/playing/model/Player.model.js +82 -0
  108. package/dist/module/features/voice/playing/model/Player.model.js.map +1 -0
  109. package/dist/module/features/voice/playing/model/VoicePlayer.model.js +234 -0
  110. package/dist/module/features/voice/playing/model/VoicePlayer.model.js.map +1 -0
  111. package/dist/module/features/voice/playing/model/VoiceTranscriptionsCollection.js +36 -0
  112. package/dist/module/features/voice/playing/model/VoiceTranscriptionsCollection.js.map +1 -0
  113. package/dist/module/features/voice/playing/model/VoiceTranscriptionsDownloader.model.js +34 -0
  114. package/dist/module/features/voice/playing/model/VoiceTranscriptionsDownloader.model.js.map +1 -0
  115. package/dist/module/features/voice/playing/model/VoiceTranscriptionsDropdown.model.js +10 -0
  116. package/dist/module/features/voice/playing/model/VoiceTranscriptionsDropdown.model.js.map +1 -0
  117. package/dist/module/features/voice/playing/model/index.js +8 -0
  118. package/dist/module/features/voice/playing/model/index.js.map +1 -0
  119. package/dist/module/features/voice/recording/components/VoiceRecord.js +67 -0
  120. package/dist/module/features/voice/recording/components/VoiceRecord.js.map +1 -0
  121. package/dist/module/features/voice/recording/components/VoiceRecordButton.js +55 -0
  122. package/dist/module/features/voice/recording/components/VoiceRecordButton.js.map +1 -0
  123. package/dist/module/features/voice/recording/components/VoiceRecordDeleteButton.js +29 -0
  124. package/dist/module/features/voice/recording/components/VoiceRecordDeleteButton.js.map +1 -0
  125. package/dist/module/features/voice/recording/components/VoiceRecordDevider.js +21 -0
  126. package/dist/module/features/voice/recording/components/VoiceRecordDevider.js.map +1 -0
  127. package/dist/module/features/voice/recording/components/VoiceRecordTimer.js +44 -0
  128. package/dist/module/features/voice/recording/components/VoiceRecordTimer.js.map +1 -0
  129. package/dist/module/features/voice/recording/hooks/useVoiceRecorder.js +54 -0
  130. package/dist/module/features/voice/recording/hooks/useVoiceRecorder.js.map +1 -0
  131. package/dist/module/features/voice/recording/hooks/useVoiceRecorderAnimation.js +17 -0
  132. package/dist/module/features/voice/recording/hooks/useVoiceRecorderAnimation.js.map +1 -0
  133. package/dist/module/features/voice/recording/modal/ModalFooterButtons.js +47 -0
  134. package/dist/module/features/voice/recording/modal/ModalFooterButtons.js.map +1 -0
  135. package/dist/module/features/voice/recording/modal/VoiceRecordDeleteModal.js +71 -0
  136. package/dist/module/features/voice/recording/modal/VoiceRecordDeleteModal.js.map +1 -0
  137. package/dist/module/features/voice/recording/modal/VoiceRecordUndoModal.js +45 -0
  138. package/dist/module/features/voice/recording/modal/VoiceRecordUndoModal.js.map +1 -0
  139. package/dist/module/features/voice/recording/model/Recorder.model.js +49 -0
  140. package/dist/module/features/voice/recording/model/Recorder.model.js.map +1 -0
  141. package/dist/module/features/voice/recording/model/Uploader.model.js +39 -0
  142. package/dist/module/features/voice/recording/model/Uploader.model.js.map +1 -0
  143. package/dist/module/features/voice/recording/model/VoiceRecord.model.js +234 -0
  144. package/dist/module/features/voice/recording/model/VoiceRecord.model.js.map +1 -0
  145. package/dist/module/features/voice/recording/model/VoiceRecordCollection.js +25 -0
  146. package/dist/module/features/voice/recording/model/VoiceRecordCollection.js.map +1 -0
  147. package/dist/module/features/voice/recording/model/index.js +7 -0
  148. package/dist/module/features/voice/recording/model/index.js.map +1 -0
  149. package/dist/module/features/voice/types.js +4 -0
  150. package/dist/module/features/voice/types.js.map +1 -0
  151. package/dist/module/index.js +1 -0
  152. package/dist/module/index.js.map +1 -1
  153. package/dist/module/shared/components/PlayButton.js +64 -0
  154. package/dist/module/shared/components/PlayButton.js.map +1 -0
  155. package/dist/module/shared/translation/localization/ca.json +17 -0
  156. package/dist/module/shared/translation/localization/de.json +17 -0
  157. package/dist/module/shared/translation/localization/en.json +17 -0
  158. package/dist/module/shared/translation/localization/gb.json +17 -0
  159. package/dist/module/shared/translation/localization/sct.json +17 -0
  160. package/dist/module/shared/translation/localization/sw.json +17 -0
  161. package/dist/typescript/commonjs/features/chatbot/components/ChatInput/RequestHintButton.d.ts.map +1 -1
  162. package/dist/typescript/commonjs/features/chatbot/components/ChatMessage/MessageButtonsBlock.d.ts.map +1 -1
  163. package/dist/typescript/commonjs/features/chatbot/components/ChatMessage/MessageTextToSpeech.d.ts +2 -2
  164. package/dist/typescript/commonjs/features/chatbot/components/ChatMessage/MessageTextToSpeech.d.ts.map +1 -1
  165. package/dist/typescript/commonjs/features/chatbot/constants.d.ts +5 -5
  166. package/dist/typescript/commonjs/features/chatbot/constants.d.ts.map +1 -1
  167. package/dist/typescript/commonjs/features/gifCelebrations/helpers.d.ts.map +1 -1
  168. package/dist/typescript/commonjs/features/voice/constants.d.ts +15 -0
  169. package/dist/typescript/commonjs/features/voice/constants.d.ts.map +1 -0
  170. package/dist/typescript/commonjs/features/voice/helpers.d.ts +46 -0
  171. package/dist/typescript/commonjs/features/voice/helpers.d.ts.map +1 -0
  172. package/dist/typescript/commonjs/features/voice/index.d.ts +13 -0
  173. package/dist/typescript/commonjs/features/voice/index.d.ts.map +1 -0
  174. package/dist/typescript/commonjs/features/voice/model/index.d.ts +11 -0
  175. package/dist/typescript/commonjs/features/voice/model/index.d.ts.map +1 -0
  176. package/dist/typescript/commonjs/features/voice/playing/components/VoiceIcon.d.ts +8 -0
  177. package/dist/typescript/commonjs/features/voice/playing/components/VoiceIcon.d.ts.map +1 -0
  178. package/dist/typescript/commonjs/features/voice/playing/components/VoiceTranscriptionsDropdown.d.ts +15 -0
  179. package/dist/typescript/commonjs/features/voice/playing/components/VoiceTranscriptionsDropdown.d.ts.map +1 -0
  180. package/dist/typescript/commonjs/features/voice/playing/components/VoiceTranscriptionsDropdownItem.d.ts +12 -0
  181. package/dist/typescript/commonjs/features/voice/playing/components/VoiceTranscriptionsDropdownItem.d.ts.map +1 -0
  182. package/dist/typescript/commonjs/features/voice/playing/hooks/useVoiceTranscriptionsDropdown.d.ts +16 -0
  183. package/dist/typescript/commonjs/features/voice/playing/hooks/useVoiceTranscriptionsDropdown.d.ts.map +1 -0
  184. package/dist/typescript/commonjs/features/voice/playing/hooks/useVoiceTranscriptionsDropdownItemAnimation.d.ts +11 -0
  185. package/dist/typescript/commonjs/features/voice/playing/hooks/useVoiceTranscriptionsDropdownItemAnimation.d.ts.map +1 -0
  186. package/dist/typescript/commonjs/features/voice/playing/model/Player.model.d.ts +21 -0
  187. package/dist/typescript/commonjs/features/voice/playing/model/Player.model.d.ts.map +1 -0
  188. package/dist/typescript/commonjs/features/voice/playing/model/VoicePlayer.model.d.ts +41 -0
  189. package/dist/typescript/commonjs/features/voice/playing/model/VoicePlayer.model.d.ts.map +1 -0
  190. package/dist/typescript/commonjs/features/voice/playing/model/VoiceTranscriptionsCollection.d.ts +26 -0
  191. package/dist/typescript/commonjs/features/voice/playing/model/VoiceTranscriptionsCollection.d.ts.map +1 -0
  192. package/dist/typescript/commonjs/features/voice/playing/model/VoiceTranscriptionsDownloader.model.d.ts +18 -0
  193. package/dist/typescript/commonjs/features/voice/playing/model/VoiceTranscriptionsDownloader.model.d.ts.map +1 -0
  194. package/dist/typescript/commonjs/features/voice/playing/model/VoiceTranscriptionsDropdown.model.d.ts +7 -0
  195. package/dist/typescript/commonjs/features/voice/playing/model/VoiceTranscriptionsDropdown.model.d.ts.map +1 -0
  196. package/dist/typescript/commonjs/features/voice/playing/model/index.d.ts +7 -0
  197. package/dist/typescript/commonjs/features/voice/playing/model/index.d.ts.map +1 -0
  198. package/dist/typescript/commonjs/features/voice/recording/components/VoiceRecord.d.ts +10 -0
  199. package/dist/typescript/commonjs/features/voice/recording/components/VoiceRecord.d.ts.map +1 -0
  200. package/dist/typescript/commonjs/features/voice/recording/components/VoiceRecordButton.d.ts +10 -0
  201. package/dist/typescript/commonjs/features/voice/recording/components/VoiceRecordButton.d.ts.map +1 -0
  202. package/dist/typescript/commonjs/features/voice/recording/components/VoiceRecordDeleteButton.d.ts +8 -0
  203. package/dist/typescript/commonjs/features/voice/recording/components/VoiceRecordDeleteButton.d.ts.map +1 -0
  204. package/dist/typescript/commonjs/features/voice/recording/components/VoiceRecordDevider.d.ts +3 -0
  205. package/dist/typescript/commonjs/features/voice/recording/components/VoiceRecordDevider.d.ts.map +1 -0
  206. package/dist/typescript/commonjs/features/voice/recording/components/VoiceRecordTimer.d.ts +11 -0
  207. package/dist/typescript/commonjs/features/voice/recording/components/VoiceRecordTimer.d.ts.map +1 -0
  208. package/dist/typescript/commonjs/features/voice/recording/hooks/useVoiceRecorder.d.ts +5 -0
  209. package/dist/typescript/commonjs/features/voice/recording/hooks/useVoiceRecorder.d.ts.map +1 -0
  210. package/dist/typescript/commonjs/features/voice/recording/hooks/useVoiceRecorderAnimation.d.ts +6 -0
  211. package/dist/typescript/commonjs/features/voice/recording/hooks/useVoiceRecorderAnimation.d.ts.map +1 -0
  212. package/dist/typescript/commonjs/features/voice/recording/modal/ModalFooterButtons.d.ts +12 -0
  213. package/dist/typescript/commonjs/features/voice/recording/modal/ModalFooterButtons.d.ts.map +1 -0
  214. package/dist/typescript/commonjs/features/voice/recording/modal/VoiceRecordDeleteModal.d.ts +11 -0
  215. package/dist/typescript/commonjs/features/voice/recording/modal/VoiceRecordDeleteModal.d.ts.map +1 -0
  216. package/dist/typescript/commonjs/features/voice/recording/modal/VoiceRecordUndoModal.d.ts +11 -0
  217. package/dist/typescript/commonjs/features/voice/recording/modal/VoiceRecordUndoModal.d.ts.map +1 -0
  218. package/dist/typescript/commonjs/features/voice/recording/model/Recorder.model.d.ts +19 -0
  219. package/dist/typescript/commonjs/features/voice/recording/model/Recorder.model.d.ts.map +1 -0
  220. package/dist/typescript/commonjs/features/voice/recording/model/Uploader.model.d.ts +18 -0
  221. package/dist/typescript/commonjs/features/voice/recording/model/Uploader.model.d.ts.map +1 -0
  222. package/dist/typescript/commonjs/features/voice/recording/model/VoiceRecord.model.d.ts +50 -0
  223. package/dist/typescript/commonjs/features/voice/recording/model/VoiceRecord.model.d.ts.map +1 -0
  224. package/dist/typescript/commonjs/features/voice/recording/model/VoiceRecordCollection.d.ts +10 -0
  225. package/dist/typescript/commonjs/features/voice/recording/model/VoiceRecordCollection.d.ts.map +1 -0
  226. package/dist/typescript/commonjs/features/voice/recording/model/index.d.ts +5 -0
  227. package/dist/typescript/commonjs/features/voice/recording/model/index.d.ts.map +1 -0
  228. package/dist/typescript/commonjs/features/voice/types.d.ts +58 -0
  229. package/dist/typescript/commonjs/features/voice/types.d.ts.map +1 -0
  230. package/dist/typescript/commonjs/index.d.ts +1 -0
  231. package/dist/typescript/commonjs/index.d.ts.map +1 -1
  232. package/dist/typescript/commonjs/shared/components/PlayButton.d.ts +18 -0
  233. package/dist/typescript/commonjs/shared/components/PlayButton.d.ts.map +1 -0
  234. package/dist/typescript/commonjs/shared/translation/constants.d.ts +102 -0
  235. package/dist/typescript/commonjs/shared/translation/constants.d.ts.map +1 -1
  236. package/dist/typescript/commonjs/shared/translation/model.d.ts +34 -0
  237. package/dist/typescript/commonjs/shared/translation/model.d.ts.map +1 -1
  238. package/dist/typescript/commonjs/types/common.types.d.ts +3 -0
  239. package/dist/typescript/commonjs/types/common.types.d.ts.map +1 -1
  240. package/dist/typescript/module/features/chatbot/components/ChatInput/RequestHintButton.d.ts.map +1 -1
  241. package/dist/typescript/module/features/chatbot/components/ChatMessage/MessageButtonsBlock.d.ts.map +1 -1
  242. package/dist/typescript/module/features/chatbot/components/ChatMessage/MessageTextToSpeech.d.ts +2 -2
  243. package/dist/typescript/module/features/chatbot/components/ChatMessage/MessageTextToSpeech.d.ts.map +1 -1
  244. package/dist/typescript/module/features/chatbot/constants.d.ts +5 -5
  245. package/dist/typescript/module/features/chatbot/constants.d.ts.map +1 -1
  246. package/dist/typescript/module/features/gifCelebrations/helpers.d.ts.map +1 -1
  247. package/dist/typescript/module/features/voice/constants.d.ts +15 -0
  248. package/dist/typescript/module/features/voice/constants.d.ts.map +1 -0
  249. package/dist/typescript/module/features/voice/helpers.d.ts +46 -0
  250. package/dist/typescript/module/features/voice/helpers.d.ts.map +1 -0
  251. package/dist/typescript/module/features/voice/index.d.ts +13 -0
  252. package/dist/typescript/module/features/voice/index.d.ts.map +1 -0
  253. package/dist/typescript/module/features/voice/model/index.d.ts +11 -0
  254. package/dist/typescript/module/features/voice/model/index.d.ts.map +1 -0
  255. package/dist/typescript/module/features/voice/playing/components/VoiceIcon.d.ts +8 -0
  256. package/dist/typescript/module/features/voice/playing/components/VoiceIcon.d.ts.map +1 -0
  257. package/dist/typescript/module/features/voice/playing/components/VoiceTranscriptionsDropdown.d.ts +15 -0
  258. package/dist/typescript/module/features/voice/playing/components/VoiceTranscriptionsDropdown.d.ts.map +1 -0
  259. package/dist/typescript/module/features/voice/playing/components/VoiceTranscriptionsDropdownItem.d.ts +12 -0
  260. package/dist/typescript/module/features/voice/playing/components/VoiceTranscriptionsDropdownItem.d.ts.map +1 -0
  261. package/dist/typescript/module/features/voice/playing/hooks/useVoiceTranscriptionsDropdown.d.ts +16 -0
  262. package/dist/typescript/module/features/voice/playing/hooks/useVoiceTranscriptionsDropdown.d.ts.map +1 -0
  263. package/dist/typescript/module/features/voice/playing/hooks/useVoiceTranscriptionsDropdownItemAnimation.d.ts +11 -0
  264. package/dist/typescript/module/features/voice/playing/hooks/useVoiceTranscriptionsDropdownItemAnimation.d.ts.map +1 -0
  265. package/dist/typescript/module/features/voice/playing/model/Player.model.d.ts +21 -0
  266. package/dist/typescript/module/features/voice/playing/model/Player.model.d.ts.map +1 -0
  267. package/dist/typescript/module/features/voice/playing/model/VoicePlayer.model.d.ts +41 -0
  268. package/dist/typescript/module/features/voice/playing/model/VoicePlayer.model.d.ts.map +1 -0
  269. package/dist/typescript/module/features/voice/playing/model/VoiceTranscriptionsCollection.d.ts +26 -0
  270. package/dist/typescript/module/features/voice/playing/model/VoiceTranscriptionsCollection.d.ts.map +1 -0
  271. package/dist/typescript/module/features/voice/playing/model/VoiceTranscriptionsDownloader.model.d.ts +18 -0
  272. package/dist/typescript/module/features/voice/playing/model/VoiceTranscriptionsDownloader.model.d.ts.map +1 -0
  273. package/dist/typescript/module/features/voice/playing/model/VoiceTranscriptionsDropdown.model.d.ts +7 -0
  274. package/dist/typescript/module/features/voice/playing/model/VoiceTranscriptionsDropdown.model.d.ts.map +1 -0
  275. package/dist/typescript/module/features/voice/playing/model/index.d.ts +7 -0
  276. package/dist/typescript/module/features/voice/playing/model/index.d.ts.map +1 -0
  277. package/dist/typescript/module/features/voice/recording/components/VoiceRecord.d.ts +10 -0
  278. package/dist/typescript/module/features/voice/recording/components/VoiceRecord.d.ts.map +1 -0
  279. package/dist/typescript/module/features/voice/recording/components/VoiceRecordButton.d.ts +10 -0
  280. package/dist/typescript/module/features/voice/recording/components/VoiceRecordButton.d.ts.map +1 -0
  281. package/dist/typescript/module/features/voice/recording/components/VoiceRecordDeleteButton.d.ts +8 -0
  282. package/dist/typescript/module/features/voice/recording/components/VoiceRecordDeleteButton.d.ts.map +1 -0
  283. package/dist/typescript/module/features/voice/recording/components/VoiceRecordDevider.d.ts +3 -0
  284. package/dist/typescript/module/features/voice/recording/components/VoiceRecordDevider.d.ts.map +1 -0
  285. package/dist/typescript/module/features/voice/recording/components/VoiceRecordTimer.d.ts +11 -0
  286. package/dist/typescript/module/features/voice/recording/components/VoiceRecordTimer.d.ts.map +1 -0
  287. package/dist/typescript/module/features/voice/recording/hooks/useVoiceRecorder.d.ts +5 -0
  288. package/dist/typescript/module/features/voice/recording/hooks/useVoiceRecorder.d.ts.map +1 -0
  289. package/dist/typescript/module/features/voice/recording/hooks/useVoiceRecorderAnimation.d.ts +6 -0
  290. package/dist/typescript/module/features/voice/recording/hooks/useVoiceRecorderAnimation.d.ts.map +1 -0
  291. package/dist/typescript/module/features/voice/recording/modal/ModalFooterButtons.d.ts +12 -0
  292. package/dist/typescript/module/features/voice/recording/modal/ModalFooterButtons.d.ts.map +1 -0
  293. package/dist/typescript/module/features/voice/recording/modal/VoiceRecordDeleteModal.d.ts +11 -0
  294. package/dist/typescript/module/features/voice/recording/modal/VoiceRecordDeleteModal.d.ts.map +1 -0
  295. package/dist/typescript/module/features/voice/recording/modal/VoiceRecordUndoModal.d.ts +11 -0
  296. package/dist/typescript/module/features/voice/recording/modal/VoiceRecordUndoModal.d.ts.map +1 -0
  297. package/dist/typescript/module/features/voice/recording/model/Recorder.model.d.ts +19 -0
  298. package/dist/typescript/module/features/voice/recording/model/Recorder.model.d.ts.map +1 -0
  299. package/dist/typescript/module/features/voice/recording/model/Uploader.model.d.ts +18 -0
  300. package/dist/typescript/module/features/voice/recording/model/Uploader.model.d.ts.map +1 -0
  301. package/dist/typescript/module/features/voice/recording/model/VoiceRecord.model.d.ts +50 -0
  302. package/dist/typescript/module/features/voice/recording/model/VoiceRecord.model.d.ts.map +1 -0
  303. package/dist/typescript/module/features/voice/recording/model/VoiceRecordCollection.d.ts +10 -0
  304. package/dist/typescript/module/features/voice/recording/model/VoiceRecordCollection.d.ts.map +1 -0
  305. package/dist/typescript/module/features/voice/recording/model/index.d.ts +5 -0
  306. package/dist/typescript/module/features/voice/recording/model/index.d.ts.map +1 -0
  307. package/dist/typescript/module/features/voice/types.d.ts +58 -0
  308. package/dist/typescript/module/features/voice/types.d.ts.map +1 -0
  309. package/dist/typescript/module/index.d.ts +1 -0
  310. package/dist/typescript/module/index.d.ts.map +1 -1
  311. package/dist/typescript/module/shared/components/PlayButton.d.ts +18 -0
  312. package/dist/typescript/module/shared/components/PlayButton.d.ts.map +1 -0
  313. package/dist/typescript/module/shared/translation/constants.d.ts +102 -0
  314. package/dist/typescript/module/shared/translation/constants.d.ts.map +1 -1
  315. package/dist/typescript/module/shared/translation/model.d.ts +34 -0
  316. package/dist/typescript/module/shared/translation/model.d.ts.map +1 -1
  317. package/dist/typescript/module/types/common.types.d.ts +3 -0
  318. package/dist/typescript/module/types/common.types.d.ts.map +1 -1
  319. package/package.json +11 -4
  320. package/src/features/chatbot/components/ChatInput/RequestHintButton.tsx +0 -1
  321. package/src/features/chatbot/components/ChatMessage/MessageButtonsBlock.tsx +1 -1
  322. package/src/features/chatbot/components/ChatMessage/MessageTextToSpeech.tsx +9 -51
  323. package/src/features/chatbot/constants.ts +4 -4
  324. package/src/features/gifCelebrations/helpers.ts +1 -0
  325. package/src/features/voice/constants.ts +14 -0
  326. package/src/features/voice/helpers.ts +254 -0
  327. package/src/features/voice/index.ts +17 -0
  328. package/src/features/voice/model/index.ts +13 -0
  329. package/src/features/voice/playing/components/VoiceIcon.tsx +38 -0
  330. package/src/features/voice/playing/components/VoiceTranscriptionsDropdown.tsx +239 -0
  331. package/src/features/voice/playing/components/VoiceTranscriptionsDropdownItem.tsx +127 -0
  332. package/src/features/voice/playing/hooks/useVoiceTranscriptionsDropdown.ts +54 -0
  333. package/src/features/voice/playing/hooks/useVoiceTranscriptionsDropdownItemAnimation.ts +40 -0
  334. package/src/features/voice/playing/model/Player.model.ts +92 -0
  335. package/src/features/voice/playing/model/VoicePlayer.model.ts +282 -0
  336. package/src/features/voice/playing/model/VoiceTranscriptionsCollection.ts +53 -0
  337. package/src/features/voice/playing/model/VoiceTranscriptionsDownloader.model.ts +43 -0
  338. package/src/features/voice/playing/model/VoiceTranscriptionsDropdown.model.ts +12 -0
  339. package/src/features/voice/playing/model/index.ts +6 -0
  340. package/src/features/voice/recording/components/VoiceRecord.tsx +65 -0
  341. package/src/features/voice/recording/components/VoiceRecordButton.tsx +63 -0
  342. package/src/features/voice/recording/components/VoiceRecordDeleteButton.tsx +25 -0
  343. package/src/features/voice/recording/components/VoiceRecordDevider.tsx +17 -0
  344. package/src/features/voice/recording/components/VoiceRecordTimer.tsx +49 -0
  345. package/src/features/voice/recording/hooks/useVoiceRecorder.ts +62 -0
  346. package/src/features/voice/recording/hooks/useVoiceRecorderAnimation.ts +19 -0
  347. package/src/features/voice/recording/modal/ModalFooterButtons.tsx +54 -0
  348. package/src/features/voice/recording/modal/VoiceRecordDeleteModal.tsx +82 -0
  349. package/src/features/voice/recording/modal/VoiceRecordUndoModal.tsx +50 -0
  350. package/src/features/voice/recording/model/Recorder.model.ts +62 -0
  351. package/src/features/voice/recording/model/Uploader.model.ts +48 -0
  352. package/src/features/voice/recording/model/VoiceRecord.model.ts +278 -0
  353. package/src/features/voice/recording/model/VoiceRecordCollection.ts +26 -0
  354. package/src/features/voice/recording/model/index.ts +4 -0
  355. package/src/features/voice/types.ts +69 -0
  356. package/src/index.ts +1 -0
  357. package/src/shared/components/PlayButton.tsx +84 -0
  358. package/src/shared/translation/localization/ca.json +17 -0
  359. package/src/shared/translation/localization/de.json +17 -0
  360. package/src/shared/translation/localization/en.json +17 -0
  361. package/src/shared/translation/localization/gb.json +17 -0
  362. package/src/shared/translation/localization/sct.json +17 -0
  363. package/src/shared/translation/localization/sw.json +17 -0
  364. package/src/types/common.types.ts +1 -0
  365. package/dist/commonjs/features/chatbot/TTS_HIGHLIGHTING.md +0 -120
  366. package/dist/module/features/chatbot/TTS_HIGHLIGHTING.md +0 -120
  367. package/src/features/chatbot/TTS_HIGHLIGHTING.md +0 -120
@@ -0,0 +1,234 @@
1
+ "use strict";
2
+
3
+ import { attach, createEffect, createEvent, restore } from 'effector';
4
+ import { VoiceTranscriptionsCollection } from "./VoiceTranscriptionsCollection.js";
5
+ import { VoiceTranscriptionsDownloaderModel } from "./VoiceTranscriptionsDownloader.model.js";
6
+ import { VoiceTranscriptionsDropdownModel } from "./VoiceTranscriptionsDropdown.model.js";
7
+ import { PlayerModel, PlayerState } from "./Player.model.js";
8
+ import { NO_AUDIO_BE_MESSAGE, TRANSCRIPT_MAX_RETRIES, TRANSCRIPT_RETRY_INTERVAL_MS } from "../../constants.js";
9
+ export { PlayerState };
10
+ export class VoicePlayerModel {
11
+ collection = new VoiceTranscriptionsCollection();
12
+ downloader = new VoiceTranscriptionsDownloaderModel();
13
+ dropdown = new VoiceTranscriptionsDropdownModel();
14
+ playerModel = new PlayerModel();
15
+ currentPlayingAttempt = null;
16
+ setCurrentAttempt = createEvent();
17
+ setTranscriptsLoaded = createEvent();
18
+ reset = createEvent();
19
+ $currentAttempt = restore(this.setCurrentAttempt, null).reset(this.reset);
20
+ $transcriptsLoaded = restore(this.setTranscriptsLoaded, false).reset(this.reset);
21
+ $playerState = this.playerModel.$playerState;
22
+ pauseAudio = this.playerModel.pause;
23
+ stopAudio = createEffect(() => {
24
+ this.playerModel.stop();
25
+ this.currentPlayingAttempt = null;
26
+ this.setCurrentAttempt(null);
27
+ });
28
+ constructor(params) {
29
+ this.api = params.api;
30
+ this.downloader.setApi(params.api);
31
+ this.playerModel.playbackFinished.watch(() => {
32
+ this.currentPlayingAttempt = null;
33
+ this.setCurrentAttempt(null);
34
+ });
35
+ if (params.audios) {
36
+ this.initializeCollectionFromAudios(params.audios);
37
+ }
38
+ }
39
+ initializeWithAudios(answerAudio) {
40
+ this.setTranscriptsLoaded(false);
41
+ this.collection.clear();
42
+ this.initializeCollectionFromAudios(answerAudio);
43
+ }
44
+ initializeCollectionFromAudios(audios) {
45
+ if (!audios) {
46
+ console.warn('VoicePlayerModel: audios is not provided');
47
+ return;
48
+ }
49
+ audios.forEach((audio, index) => {
50
+ const attemptNumber = index + 1;
51
+ if (!audio.audioFileId) {
52
+ console.warn('VoicePlayerModel: audioFileId is missing for audio', audio);
53
+ return;
54
+ }
55
+ this.collection.add(attemptNumber, {
56
+ attemptNumber,
57
+ audioFileId: audio.audioFileId,
58
+ _id: audio._id,
59
+ hasDrawing: !!audio.drawing
60
+ });
61
+ });
62
+ }
63
+ async fetchTranscriptWithRetry(audioFileId) {
64
+ for (let attempt = 0; attempt < TRANSCRIPT_MAX_RETRIES; attempt++) {
65
+ const response = await this.api.getAudioFileTranscript(audioFileId);
66
+ if (response.status === 'completed') {
67
+ return response.text;
68
+ }
69
+ if (response.status === 'failed') {
70
+ return NO_AUDIO_BE_MESSAGE;
71
+ }
72
+ if (attempt < TRANSCRIPT_MAX_RETRIES - 1) {
73
+ await new Promise(resolve => setTimeout(resolve, TRANSCRIPT_RETRY_INTERVAL_MS));
74
+ }
75
+ }
76
+ return NO_AUDIO_BE_MESSAGE;
77
+ }
78
+ loadAllTranscripts = createEffect(async () => {
79
+ const attempts = this.collection.getAll();
80
+ const transcriptPromises = attempts.map(async item => {
81
+ if (this.collection.hasTranscript(item.attemptNumber)) {
82
+ return;
83
+ }
84
+ this.collection.update(item.attemptNumber, {
85
+ transcriptLoading: true
86
+ });
87
+ try {
88
+ const text = await this.fetchTranscriptWithRetry(item.audioFileId);
89
+ this.collection.update(item.attemptNumber, {
90
+ transcript: text,
91
+ transcriptLoading: false,
92
+ transcriptError: undefined
93
+ });
94
+ } catch (error) {
95
+ this.collection.update(item.attemptNumber, {
96
+ transcriptLoading: false,
97
+ transcriptError: error instanceof Error ? error.message : 'Failed to load transcript'
98
+ });
99
+ }
100
+ });
101
+ await Promise.all(transcriptPromises);
102
+ this.setTranscriptsLoaded(true);
103
+ });
104
+ handlePlayAttempt = createEffect(async attemptNumber => {
105
+ const item = this.collection.get(attemptNumber);
106
+ if (!item) return;
107
+ if (this.currentPlayingAttempt !== null && this.currentPlayingAttempt !== attemptNumber) {
108
+ const previousItem = this.collection.get(this.currentPlayingAttempt);
109
+ if (previousItem?.controller && previousItem?.audioLoading) {
110
+ this.downloader.abortDownload(previousItem.controller);
111
+ this.collection.update(this.currentPlayingAttempt, {
112
+ audioLoading: false,
113
+ controller: undefined,
114
+ audioDownloadPromise: undefined
115
+ });
116
+ }
117
+ }
118
+ if (this.collection.hasAudio(attemptNumber)) {
119
+ this.playAudioFx(attemptNumber);
120
+ return;
121
+ }
122
+ try {
123
+ this.playerModel.setPlayerState(PlayerState.LOADING);
124
+ const {
125
+ collectionItem,
126
+ downloadPromise
127
+ } = await this.downloader.download({
128
+ audioFileId: item.audioFileId,
129
+ attemptNumber
130
+ });
131
+ this.collection.update(attemptNumber, collectionItem);
132
+ const result = await downloadPromise;
133
+ this.collection.update(attemptNumber, {
134
+ audioUri: result.uri,
135
+ audioLoading: false,
136
+ audioError: undefined,
137
+ controller: undefined,
138
+ audioDownloadPromise: undefined
139
+ });
140
+ this.playerModel.setPlayerState(PlayerState.IDLE);
141
+ this.playAudioFx(attemptNumber);
142
+ } catch (error) {
143
+ console.error('Audio download error:', error);
144
+ if (error instanceof Error && error.name === 'AbortError') {
145
+ return;
146
+ }
147
+ this.collection.update(attemptNumber, {
148
+ audioLoading: false,
149
+ audioError: error instanceof Error ? error.message : 'Failed to download audio',
150
+ controller: undefined,
151
+ audioDownloadPromise: undefined
152
+ });
153
+ }
154
+ });
155
+ playAudioFx = createEffect(async attemptNumber => {
156
+ const item = this.collection.get(attemptNumber);
157
+ if (!item?.audioUri) {
158
+ console.warn('No audio URI available for attempt:', attemptNumber);
159
+ return;
160
+ }
161
+ try {
162
+ if (this.currentPlayingAttempt !== null && this.currentPlayingAttempt !== attemptNumber) {
163
+ this.playerModel.player?.remove();
164
+ }
165
+ if (this.currentPlayingAttempt === attemptNumber && this.playerModel.player?.playing) {
166
+ this.playerModel.pause();
167
+ return;
168
+ }
169
+ if (this.currentPlayingAttempt === attemptNumber && !this.playerModel.player?.playing) {
170
+ this.playerModel.resume();
171
+ return;
172
+ }
173
+ this.currentPlayingAttempt = attemptNumber;
174
+ this.setCurrentAttempt(attemptNumber);
175
+ await this.playerModel.play(item.audioUri);
176
+ } catch (error) {
177
+ console.error('Error playing audio:', error);
178
+ this.playerModel.setPlayerState(PlayerState.IDLE);
179
+ this.collection.update(attemptNumber, {
180
+ audioError: error instanceof Error ? error.message : 'Failed to play audio'
181
+ });
182
+ }
183
+ });
184
+ getTranscript(attemptNumber) {
185
+ return this.collection.get(attemptNumber)?.transcript;
186
+ }
187
+ isTranscriptLoading(attemptNumber) {
188
+ return this.collection.get(attemptNumber)?.transcriptLoading || false;
189
+ }
190
+ isAudioLoading(attemptNumber) {
191
+ return this.collection.get(attemptNumber)?.audioLoading || false;
192
+ }
193
+ getAllAttempts() {
194
+ return this.collection.getAll();
195
+ }
196
+ reinitializePlayer() {
197
+ this.playerModel.reinitialize();
198
+ }
199
+ cleanup() {
200
+ this.collection.getAll().forEach(item => {
201
+ if (item.audioUri && item.audioUri.startsWith('blob:')) {
202
+ try {
203
+ URL.revokeObjectURL(item.audioUri);
204
+ } catch (e) {}
205
+ }
206
+ if (item.controller) {
207
+ this.downloader.abortDownload(item.controller);
208
+ }
209
+ });
210
+ this.collection.clear();
211
+ this.currentPlayingAttempt = null;
212
+ this.reset();
213
+ this.dropdown.reset();
214
+ this.playerModel.release();
215
+ }
216
+ togglePlayPause = attach({
217
+ source: this.playerModel.$playerState,
218
+ mapParams: (attemptNumber, playerState) => ({
219
+ attemptNumber,
220
+ playerState
221
+ }),
222
+ effect: createEffect(({
223
+ attemptNumber,
224
+ playerState
225
+ }) => {
226
+ if (this.currentPlayingAttempt === attemptNumber && playerState === PlayerState.PLAYING) {
227
+ this.pauseAudio();
228
+ } else {
229
+ this.handlePlayAttempt(attemptNumber);
230
+ }
231
+ })
232
+ });
233
+ }
234
+ //# sourceMappingURL=VoicePlayer.model.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"names":["attach","createEffect","createEvent","restore","VoiceTranscriptionsCollection","VoiceTranscriptionsDownloaderModel","VoiceTranscriptionsDropdownModel","PlayerModel","PlayerState","NO_AUDIO_BE_MESSAGE","TRANSCRIPT_MAX_RETRIES","TRANSCRIPT_RETRY_INTERVAL_MS","VoicePlayerModel","collection","downloader","dropdown","playerModel","currentPlayingAttempt","setCurrentAttempt","setTranscriptsLoaded","reset","$currentAttempt","$transcriptsLoaded","$playerState","pauseAudio","pause","stopAudio","stop","constructor","params","api","setApi","playbackFinished","watch","audios","initializeCollectionFromAudios","initializeWithAudios","answerAudio","clear","console","warn","forEach","audio","index","attemptNumber","audioFileId","add","_id","hasDrawing","drawing","fetchTranscriptWithRetry","attempt","response","getAudioFileTranscript","status","text","Promise","resolve","setTimeout","loadAllTranscripts","attempts","getAll","transcriptPromises","map","item","hasTranscript","update","transcriptLoading","transcript","transcriptError","undefined","error","Error","message","all","handlePlayAttempt","get","previousItem","controller","audioLoading","abortDownload","audioDownloadPromise","hasAudio","playAudioFx","setPlayerState","LOADING","collectionItem","downloadPromise","download","result","audioUri","uri","audioError","IDLE","name","player","remove","playing","resume","play","getTranscript","isTranscriptLoading","isAudioLoading","getAllAttempts","reinitializePlayer","reinitialize","cleanup","startsWith","URL","revokeObjectURL","e","release","togglePlayPause","source","mapParams","playerState","effect","PLAYING"],"sourceRoot":"../../../../../../src","sources":["features/voice/playing/model/VoicePlayer.model.ts"],"mappings":";;AAAA,SAASA,MAAM,EAAEC,YAAY,EAAEC,WAAW,EAAEC,OAAO,QAAQ,UAAU;AACrE,SACEC,6BAA6B,QAExB,oCAAiC;AACxC,SAASC,kCAAkC,QAAQ,0CAAuC;AAC1F,SAASC,gCAAgC,QAAQ,wCAAqC;AAEtF,SAASC,WAAW,EAAEC,WAAW,QAAQ,mBAAgB;AACzD,SACEC,mBAAmB,EACnBC,sBAAsB,EACtBC,4BAA4B,QACvB,oBAAiB;AAWxB,SAASH,WAAW;AAEpB,OAAO,MAAMI,gBAAgB,CAAC;EACZC,UAAU,GAAG,IAAIT,6BAA6B,CAAC,CAAC;EAChDU,UAAU,GAAG,IAAIT,kCAAkC,CAAC,CAAC;EACrDU,QAAQ,GAAG,IAAIT,gCAAgC,CAAC,CAAC;EACjDU,WAAW,GAAG,IAAIT,WAAW,CAAC,CAAC;EAEvCU,qBAAqB,GAAkB,IAAI;EAEnCC,iBAAiB,GAAGhB,WAAW,CAAgB,CAAC;EAChDiB,oBAAoB,GAAGjB,WAAW,CAAU,CAAC;EAC7CkB,KAAK,GAAGlB,WAAW,CAAC,CAAC;EAErBmB,eAAe,GAAGlB,OAAO,CAAC,IAAI,CAACe,iBAAiB,EAAE,IAAI,CAAC,CAACE,KAAK,CAAC,IAAI,CAACA,KAAK,CAAC;EACzEE,kBAAkB,GAAGnB,OAAO,CAAC,IAAI,CAACgB,oBAAoB,EAAE,KAAK,CAAC,CAACC,KAAK,CAAC,IAAI,CAACA,KAAK,CAAC;EAChFG,YAAY,GAAG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;IACvB,IAAI,CAACrB,qBAAqB,GAAG,IAAI;IACjC,IAAI,CAACG,KAAK,CAAC,CAAC;IACZ,IAAI,CAACL,QAAQ,CAACK,KAAK,CAAC,CAAC;IACrB,IAAI,CAACJ,WAAW,CAAC+F,OAAO,CAAC,CAAC;EAC5B;EAEOC,eAAe,GAAGhH,MAAM,CAAC;IAC9BiH,MAAM,EAAE,IAAI,CAACjG,WAAW,CAACO,YAAY;IACrC2F,SAAS,EAAEA,CAACtE,aAAqB,EAAEuE,WAAW,MAAM;MAAEvE,aAAa;MAAEuE;IAAY,CAAC,CAAC;IACnFC,MAAM,EAAEnH,YAAY,CAAC,CAAC;MAAE2C,aAAa;MAAEuE;IAAmC,CAAC,KAAK;MAC9E,IAAI,IAAI,CAAClG,qBAAqB,KAAK2B,aAAa,IAAIuE,WAAW,KAAK3G,WAAW,CAAC6G,OAAO,EAAE;QACvF,IAAI,CAAC7F,UAAU,CAAC,CAAC;MACnB,CAAC,MAAM;QACL,IAAI,CAACmD,iBAAiB,CAAC/B,aAAa,CAAC;MACvC;IACF,CAAC;EACH,CAAC,CAAC;AACJ","ignoreList":[]}
@@ -0,0 +1,36 @@
1
+ "use strict";
2
+
3
+ export class VoiceTranscriptionsCollection {
4
+ collection = new Map();
5
+ add(attemptNumber, item) {
6
+ this.collection.set(attemptNumber, item);
7
+ }
8
+ update(attemptNumber, item) {
9
+ const existingItem = this.collection.get(attemptNumber) || {};
10
+ this.collection.set(attemptNumber, {
11
+ ...existingItem,
12
+ ...item
13
+ });
14
+ }
15
+ delete(attemptNumber) {
16
+ this.collection.delete(attemptNumber);
17
+ }
18
+ get(attemptNumber) {
19
+ return this.collection.get(attemptNumber);
20
+ }
21
+ getAll() {
22
+ return Array.from(this.collection.values());
23
+ }
24
+ clear() {
25
+ this.collection.clear();
26
+ }
27
+ hasTranscript(attemptNumber) {
28
+ const item = this.collection.get(attemptNumber);
29
+ return !!item?.transcript;
30
+ }
31
+ hasAudio(attemptNumber) {
32
+ const item = this.collection.get(attemptNumber);
33
+ return !!item?.audioUri;
34
+ }
35
+ }
36
+ //# sourceMappingURL=VoiceTranscriptionsCollection.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"names":["VoiceTranscriptionsCollection","collection","Map","add","attemptNumber","item","set","update","existingItem","get","delete","getAll","Array","from","values","clear","hasTranscript","transcript","hasAudio","audioUri"],"sourceRoot":"../../../../../../src","sources":["features/voice/playing/model/VoiceTranscriptionsCollection.ts"],"mappings":";;AAeA,OAAO,MAAMA,6BAA6B,CAAC;EACzBC,UAAU,GAAwC,IAAIC,GAAG,CAAC,CAAC;EAEpEC,GAAGA,CAACC,aAAqB,EAAEC,IAA4B,EAAE;IAC9D,IAAI,CAACJ,UAAU,CAACK,GAAG,CAACF,aAAa,EAAEC,IAAI,CAAC;EAC1C;EAEOE,MAAMA,CAACH,aAAqB,EAAEC,IAAqC,EAAE;IAC1E,MAAMG,YAAY,GAAG,IAAI,CAACP,UAAU,CAACQ,GAAG,CAACL,aAAa,CAAC,IAAK,CAAC,CAA4B;IACzF,IAAI,CAACH,UAAU,CAACK,GAAG,CAACF,aAAa,EAAE;MAAE,GAAGI,YAAY;MAAE,GAAGH;IAAK,CAAC,CAAC;EAClE;EAEOK,MAAMA,CAACN,aAAqB,EAAE;IACnC,IAAI,CAACH,UAAU,CAACS,MAAM,CAACN,aAAa,CAAC;EACvC;EAEOK,GAAGA,CAACL,aAAqB,EAAE;IAChC,OAAO,IAAI,CAACH,UAAU,CAACQ,GAAG,CAACL,aAAa,CAAC;EAC3C;EAEOO,MAAMA,CAAA,EAAG;IACd,OAAOC,KAAK,CAACC,IAAI,CAAC,IAAI,CAACZ,UAAU,CAACa,MAAM,CAAC,CAAC,CAAC;EAC7C;EAEOC,KAAKA,CAAA,EAAG;IACb,IAAI,CAACd,UAAU,CAACc,KAAK,CAAC,CAAC;EACzB;EAEOC,aAAaA,CAACZ,aAAqB,EAAE;IAC1C,MAAMC,IAAI,GAAG,IAAI,CAACJ,UAAU,CAACQ,GAAG,CAACL,aAAa,CAAC;IAC/C,OAAO,CAAC,CAACC,IAAI,EAAEY,UAAU;EAC3B;EAEOC,QAAQA,CAACd,aAAqB,EAAE;IACrC,MAAMC,IAAI,GAAG,IAAI,CAACJ,UAAU,CAACQ,GAAG,CAACL,aAAa,CAAC;IAC/C,OAAO,CAAC,CAACC,IAAI,EAAEc,QAAQ;EACzB;AACF","ignoreList":[]}
@@ -0,0 +1,34 @@
1
+ "use strict";
2
+
3
+ import { createEffect } from 'effector';
4
+ import { downloadAudioFileRequestGenerator } from "../../helpers.js";
5
+ export class VoiceTranscriptionsDownloaderModel {
6
+ setApi = api => {
7
+ this.api = api;
8
+ };
9
+ download = createEffect(async ({
10
+ audioFileId,
11
+ attemptNumber
12
+ }) => {
13
+ const {
14
+ downloadAudio,
15
+ controller
16
+ } = downloadAudioFileRequestGenerator(audioFileId, this.api);
17
+ const downloadPromise = downloadAudio();
18
+ const collectionItem = {
19
+ attemptNumber,
20
+ audioFileId,
21
+ audioLoading: true,
22
+ audioDownloadPromise: downloadPromise,
23
+ controller
24
+ };
25
+ return {
26
+ collectionItem,
27
+ downloadPromise
28
+ };
29
+ });
30
+ abortDownload = controller => {
31
+ controller?.abort();
32
+ };
33
+ }
34
+ //# sourceMappingURL=VoiceTranscriptionsDownloader.model.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"names":["createEffect","downloadAudioFileRequestGenerator","VoiceTranscriptionsDownloaderModel","setApi","api","download","audioFileId","attemptNumber","downloadAudio","controller","downloadPromise","collectionItem","audioLoading","audioDownloadPromise","abortDownload","abort"],"sourceRoot":"../../../../../../src","sources":["features/voice/playing/model/VoiceTranscriptionsDownloader.model.ts"],"mappings":";;AAAA,SAASA,YAAY,QAAQ,UAAU;AAGvC,SAASC,iCAAiC,QAAQ,kBAAe;AAYjE,OAAO,MAAMC,kCAAkC,CAAC;EAG9BC,MAAM,GAAIC,GAAmB,IAAK;IAChD,IAAI,CAACA,GAAG,GAAGA,GAAG;EAChB,CAAC;EAEeC,QAAQ,GAAGL,YAAY,CACrC,OAAO;IAAEM,WAAW;IAAEC;EAA8B,CAAC,KAA8B;IACjF,MAAM;MAAEC,aAAa;MAAEC;IAAW,CAAC,GAAGR,iCAAiC,CAACK,WAAW,EAAE,IAAI,CAACF,GAAG,CAAC;IAC9F,MAAMM,eAAe,GAAGF,aAAa,CAAC,CAAC;IAEvC,MAAMG,cAA+C,GAAG;MACtDJ,aAAa;MACbD,WAAW;MACXM,YAAY,EAAE,IAAI;MAClBC,oBAAoB,EAAEH,eAAe;MACrCD;IACF,CAAC;IAED,OAAO;MAAEE,cAAc;MAAED;IAAgB,CAAC;EAC5C,CACF,CAAC;EAEeI,aAAa,GAAIL,UAA4B,IAAK;IAChEA,UAAU,EAAEM,KAAK,CAAC,CAAC;EACrB,CAAC;AACH","ignoreList":[]}
@@ -0,0 +1,10 @@
1
+ "use strict";
2
+
3
+ import { createEvent, createStore } from 'effector';
4
+ export class VoiceTranscriptionsDropdownModel {
5
+ toggleExpand = createEvent();
6
+ setExpanded = createEvent();
7
+ reset = createEvent();
8
+ $isExpanded = createStore(false).on(this.setExpanded, (_, value) => value).on(this.toggleExpand, state => !state).reset(this.reset);
9
+ }
10
+ //# sourceMappingURL=VoiceTranscriptionsDropdown.model.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"names":["createEvent","createStore","VoiceTranscriptionsDropdownModel","toggleExpand","setExpanded","reset","$isExpanded","on","_","value","state"],"sourceRoot":"../../../../../../src","sources":["features/voice/playing/model/VoiceTranscriptionsDropdown.model.ts"],"mappings":";;AAAA,SAASA,WAAW,EAAEC,WAAW,QAAQ,UAAU;AAEnD,OAAO,MAAMC,gCAAgC,CAAC;EAC5BC,YAAY,GAAGH,WAAW,CAAC,CAAC;EAC5BI,WAAW,GAAGJ,WAAW,CAAU,CAAC;EACpCK,KAAK,GAAGL,WAAW,CAAC,CAAC;EAErBM,WAAW,GAAGL,WAAW,CAAC,KAAK,CAAC,CAC7CM,EAAE,CAAC,IAAI,CAACH,WAAW,EAAE,CAACI,CAAC,EAAEC,KAAK,KAAKA,KAAK,CAAC,CACzCF,EAAE,CAAC,IAAI,CAACJ,YAAY,EAAGO,KAAK,IAAK,CAACA,KAAK,CAAC,CACxCL,KAAK,CAAC,IAAI,CAACA,KAAK,CAAC;AACtB","ignoreList":[]}
@@ -0,0 +1,8 @@
1
+ "use strict";
2
+
3
+ export { VoicePlayerModel } from "./VoicePlayer.model.js";
4
+ export { PlayerModel, PlayerState } from "./Player.model.js";
5
+ export { VoiceTranscriptionsCollection } from "./VoiceTranscriptionsCollection.js";
6
+ export { VoiceTranscriptionsDownloaderModel } from "./VoiceTranscriptionsDownloader.model.js";
7
+ export { VoiceTranscriptionsDropdownModel } from "./VoiceTranscriptionsDropdown.model.js";
8
+ //# sourceMappingURL=index.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"names":["VoicePlayerModel","PlayerModel","PlayerState","VoiceTranscriptionsCollection","VoiceTranscriptionsDownloaderModel","VoiceTranscriptionsDropdownModel"],"sourceRoot":"../../../../../../src","sources":["features/voice/playing/model/index.ts"],"mappings":";;AAAA,SAASA,gBAAgB,QAAQ,wBAAqB;AACtD,SAASC,WAAW,EAAEC,WAAW,QAAQ,mBAAgB;AACzD,SAASC,6BAA6B,QAAQ,oCAAiC;AAE/E,SAASC,kCAAkC,QAAQ,0CAAuC;AAC1F,SAASC,gCAAgC,QAAQ,wCAAqC","ignoreList":[]}
@@ -0,0 +1,67 @@
1
+ "use strict";
2
+
3
+ import { StyleSheet } from 'react-native';
4
+ import { VoiceRecordButton } from "./VoiceRecordButton.js";
5
+ import React, { useEffect } from 'react';
6
+ import { COLORS, SPACING } from '@magmamath/react-native-ui';
7
+ import { VoiceRecordDeleteButton } from "./VoiceRecordDeleteButton.js";
8
+ import { VoiceRecordDevider } from "./VoiceRecordDevider.js";
9
+ import { VoiceRecordTimer } from "./VoiceRecordTimer.js";
10
+ import Animated, { FadeIn, FadeOut } from 'react-native-reanimated';
11
+ import { useVoiceRecorder } from "../hooks/useVoiceRecorder.js";
12
+ import { useVoiceRecorderAnimation } from "../hooks/useVoiceRecorderAnimation.js";
13
+ import { useUnit } from 'effector-react';
14
+ import { jsx as _jsx, jsxs as _jsxs } from "react/jsx-runtime";
15
+ export const VoiceRecord = ({
16
+ style,
17
+ model
18
+ }) => {
19
+ const {
20
+ recorderState
21
+ } = useVoiceRecorder(model);
22
+ const [isExpanded, isDisabled] = useUnit([model.$isExpanded, model.$isButtonDisabled]);
23
+ const {
24
+ containerAnimatedStyle
25
+ } = useVoiceRecorderAnimation(isExpanded);
26
+ useEffect(() => {
27
+ return () => {
28
+ model.cleanup();
29
+ };
30
+ }, [model]);
31
+ return /*#__PURE__*/_jsxs(Animated.View, {
32
+ style: [styles.container, style, containerAnimatedStyle],
33
+ children: [/*#__PURE__*/_jsx(VoiceRecordButton, {
34
+ model: model
35
+ }), isExpanded && /*#__PURE__*/_jsxs(Animated.View, {
36
+ entering: FadeIn,
37
+ exiting: FadeOut,
38
+ style: styles.expendedContainer,
39
+ children: [/*#__PURE__*/_jsx(VoiceRecordTimer, {
40
+ style: styles.timer,
41
+ model: model,
42
+ recordingFileDurationMs: recorderState.durationMillis
43
+ }), /*#__PURE__*/_jsx(VoiceRecordDevider, {}), /*#__PURE__*/_jsx(VoiceRecordDeleteButton, {
44
+ isDisabled: isDisabled,
45
+ onPress: model.events.deleteRecord
46
+ })]
47
+ })]
48
+ });
49
+ };
50
+ const styles = StyleSheet.create({
51
+ container: {
52
+ alignItems: 'center',
53
+ padding: 3,
54
+ paddingBottom: 6,
55
+ backgroundColor: COLORS.NEUTRAL_3,
56
+ borderRadius: 32,
57
+ boxShadow: '0 1px 3px 0 rgba(51, 51, 51, 0.10), 0 0 1px 0 rgba(51, 51, 51, 0.40)',
58
+ overflow: 'hidden'
59
+ },
60
+ timer: {
61
+ marginTop: SPACING[400]
62
+ },
63
+ expendedContainer: {
64
+ alignItems: 'center'
65
+ }
66
+ });
67
+ //# sourceMappingURL=VoiceRecord.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"names":["StyleSheet","VoiceRecordButton","React","useEffect","COLORS","SPACING","VoiceRecordDeleteButton","VoiceRecordDevider","VoiceRecordTimer","Animated","FadeIn","FadeOut","useVoiceRecorder","useVoiceRecorderAnimation","useUnit","jsx","_jsx","jsxs","_jsxs","VoiceRecord","style","model","recorderState","isExpanded","isDisabled","$isExpanded","$isButtonDisabled","containerAnimatedStyle","cleanup","View","styles","container","children","entering","exiting","expendedContainer","timer","recordingFileDurationMs","durationMillis","onPress","events","deleteRecord","create","alignItems","padding","paddingBottom","backgroundColor","NEUTRAL_3","borderRadius","boxShadow","overflow","marginTop"],"sourceRoot":"../../../../../../src","sources":["features/voice/recording/components/VoiceRecord.tsx"],"mappings":";;AAAA,SAA+BA,UAAU,QAAQ,cAAc;AAC/D,SAASC,iBAAiB,QAAQ,wBAAqB;AACvD,OAAOC,KAAK,IAAIC,SAAS,QAAQ,OAAO;AACxC,SAASC,MAAM,EAAEC,OAAO,QAAQ,4BAA4B;AAC5D,SAASC,uBAAuB,QAAQ,8BAA2B;AACnE,SAASC,kBAAkB,QAAQ,yBAAsB;AACzD,SAASC,gBAAgB,QAAQ,uBAAoB;AACrD,OAAOC,QAAQ,IAAIC,MAAM,EAAEC,OAAO,QAAQ,yBAAyB;AAEnE,SAASC,gBAAgB,QAAQ,8BAA2B;AAC5D,SAASC,yBAAyB,QAAQ,uCAAoC;AAC9E,SAASC,OAAO,QAAQ,gBAAgB;AAAA,SAAAC,GAAA,IAAAC,IAAA,EAAAC,IAAA,IAAAC,KAAA;AAOxC,OAAO,MAAMC,WAAW,GAAGA,CAAC;EAAEC,KAAK;EAAEC;AAAwB,CAAC,KAAK;EACjE,MAAM;IAAEC;EAAc,CAAC,GAAGV,gBAAgB,CAACS,KAAK,CAAC;EACjD,MAAM,CAACE,UAAU,EAAEC,UAAU,CAAC,GAAGV,OAAO,CAAC,CAACO,KAAK,CAACI,WAAW,EAAEJ,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Dd,KAAK,EAAE;IACLe,SAAS,EAAE9C,OAAO,CAAC,GAAG;EACxB,CAAC;EACD8B,iBAAiB,EAAE;IACjBQ,UAAU,EAAE;EACd;AACF,CAAC,CAAC","ignoreList":[]}
@@ -0,0 +1,55 @@
1
+ "use strict";
2
+
3
+ import React, { useMemo } from 'react';
4
+ import { Button, ButtonColor, ButtonSize, ButtonVariant, IS_WEB } from '@magmamath/react-native-ui';
5
+ import { Pressable } from 'react-native';
6
+ import { MicrophoneIcon, CheckIcon } from '@magmamath/react-native-ui';
7
+ import { useUnit } from 'effector-react';
8
+ import { VoiceRecorderState } from "../../constants.js";
9
+ import { useText } from "../../../../shared/translation/index.js";
10
+ import { jsx as _jsx } from "react/jsx-runtime";
11
+ export const VoiceRecordButton = ({
12
+ style,
13
+ model
14
+ }) => {
15
+ const t = useText();
16
+ const availableInputs = useUnit(model.recorderModel.$availableInputs);
17
+ const voiceRecordState = useUnit(model.recorderModel.$voiceRecordState);
18
+ const isButtonDisabled = useUnit(model.$isButtonDisabled);
19
+ const combinedStyles = useMemo(() => {
20
+ return {
21
+ button: [{
22
+ width: 50
23
+ }, style?.button],
24
+ container: [style?.container],
25
+ text: [style?.text]
26
+ };
27
+ }, [style]);
28
+ return /*#__PURE__*/_jsx(Pressable, {
29
+ onPressIn: e => {
30
+ if (availableInputs.length) return;
31
+ e.preventDefault();
32
+ model.notification.warning(t('voice.noMicrophoneFound'));
33
+ },
34
+ pointerEvents: !availableInputs.length ? 'box-only' : 'auto',
35
+ children: /*#__PURE__*/_jsx(Button, {
36
+ disabled: isButtonDisabled || !availableInputs.length,
37
+ onPressIn: () => model.recorderButtonHandler(),
38
+ style: combinedStyles,
39
+ size: ButtonSize.LARGE,
40
+ variant: ButtonVariant.SECONDARY,
41
+ colorScheme: ButtonColor.WHITE,
42
+ icon: voiceRecordState === VoiceRecorderState.RECORDING ? /*#__PURE__*/_jsx(CheckIcon, {
43
+ size: 25
44
+ }) : /*#__PURE__*/_jsx(MicrophoneIcon, {
45
+ style: IS_WEB ? {
46
+ width: 21
47
+ } : {
48
+ minWidth: 23,
49
+ minHeight: 23
50
+ }
51
+ })
52
+ })
53
+ });
54
+ };
55
+ //# sourceMappingURL=VoiceRecordButton.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"names":["React","useMemo","Button","ButtonColor","ButtonSize","ButtonVariant","IS_WEB","Pressable","MicrophoneIcon","CheckIcon","useUnit","VoiceRecorderState","useText","jsx","_jsx","VoiceRecordButton","style","model","t","availableInputs","recorderModel","$availableInputs","voiceRecordState","$voiceRecordState","isButtonDisabled","$isButtonDisabled","combinedStyles","button","width","container","text","onPressIn","e","length","preventDefault","notification","warning","pointerEvents","children","disabled","recorderButtonHandler","size","LARGE","variant","SECONDARY","colorScheme","WHITE","icon","RECORDING","minWidth","minHeight"],"sourceRoot":"../../../../../../src","sources":["features/voice/recording/components/VoiceRecordButton.tsx"],"mappings":";;AAAA,OAAOA,KAAK,IAAIC,OAAO,QAAQ,OAAO;AACtC,SACEC,MAAM,EACNC,WAAW,EACXC,UAAU,EAEVC,aAAa,EACbC,MAAM,QACD,4BAA4B;AACnC,SAASC,SAAS,QAAQ,cAAc;AACxC,SAASC,cAAc,EAAEC,SAAS,QAAQ,4BAA4B;AAEtE,SAASC,OAAO,QAAQ,gBAAgB;AACxC,SAASC,kBAAkB,QAAQ,oBAAiB;AACpD,SAASC,OAAO,QAAQ,yCAAgC;AAAA,SAAAC,GAAA,IAAAC,IAAA;AAOxD,OAAO,MAAMC,iBAAiB,GAAGA,CAAC;EAAEC,KAAK;EAAEC;AAA8B,CAAC,KAAK;EAC7E,MAAMC,CAAC,GAAGN,OAAO,CAAC,CAAC;EAEnB,MAAMO,eAAe,GAAGT,OAAO,CAACO,KAAK,CAACG,aAAa,CAACC,gBAAgB,CAAC;EACrE,MAAMC,gBAAgB,GAAGZ,OAAO,CAACO,KAAK,CAACG,aAAa,CAACG,iBAAiB,CAAC;EACvE,MAAMC,gBAAgB,GAAGd,OAAO,CAAC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AE,CAAE;IAErF,CACF;EAAC,CACO,CAAC;AAEhB,CAAC","ignoreList":[]}
@@ -0,0 +1,29 @@
1
+ "use strict";
2
+
3
+ import { StyleSheet, TouchableOpacity } from 'react-native';
4
+ import { COLORS, TrashcanIcon } from '@magmamath/react-native-ui';
5
+ import React from 'react';
6
+ import { jsx as _jsx } from "react/jsx-runtime";
7
+ export const VoiceRecordDeleteButton = ({
8
+ onPress,
9
+ isDisabled
10
+ }) => {
11
+ return /*#__PURE__*/_jsx(TouchableOpacity, {
12
+ style: styles.container,
13
+ onPress: onPress,
14
+ disabled: isDisabled,
15
+ children: /*#__PURE__*/_jsx(TrashcanIcon, {
16
+ size: 20,
17
+ color: isDisabled ? COLORS.NEUTRAL_5 : COLORS.NEUTRAL_9
18
+ })
19
+ });
20
+ };
21
+ const styles = StyleSheet.create({
22
+ container: {
23
+ width: 36,
24
+ height: 36,
25
+ alignItems: 'center',
26
+ justifyContent: 'center'
27
+ }
28
+ });
29
+ //# sourceMappingURL=VoiceRecordDeleteButton.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"names":["StyleSheet","TouchableOpacity","COLORS","TrashcanIcon","React","jsx","_jsx","VoiceRecordDeleteButton","onPress","isDisabled","style","styles","container","disabled","children","size","color","NEUTRAL_5","NEUTRAL_9","create","width","height","alignItems","justifyContent"],"sourceRoot":"../../../../../../src","sources":["features/voice/recording/components/VoiceRecordDeleteButton.tsx"],"mappings":";;AAAA,SAASA,UAAU,EAAEC,gBAAgB,QAAQ,cAAc;AAC3D,SAASC,MAAM,EAAEC,YAAY,QAAQ,4BAA4B;AACjE,OAAOC,KAAK,MAAM,OAAO;AAAA,SAAAC,GAAA,IAAAC,IAAA;AAOzB,OAAO,MAAMC,uBAAuB,GAAGA,CAAC;EAAEC,OAAO;EAAEC;AAAmC,CAAC,KAAK;EAC1F,oBACEH,IAAA,CAACL,gBAAgB;IAACS,KAAK,EAAEC,MAAM,CAACC,SAAU;IAACJ,OAAO,EAAEA,OAAQ;IAACK,QAAQ,EAAEJ,UAAW;IAAAK,QAAA,eAChFR,IAAA,CAACH,YAAY;MAACY,IAAI,EAAE,EAAG;MAACC,KAAK,EAAEP,UAAU,GAAGP,MAAM,CAACe,SAAS,GAAGf,MAAM,CAACgB;IAAU,CAAE;EAAC,CACnE,CAAC;AAEvB,CAAC;AAED,MAAMP,MAAM,GAAGX,UAAU,CAACmB,MAAM,CAAC;EAC/BP,SAAS,EAAE;IACTQ,KAAK,EAAE,EAAE;IACTC,MAAM,EAAE,EAAE;IACVC,UAAU,EAAE,QAAQ;IACpBC,cAAc,EAAE;EAClB;AACF,CAAC,CAAC","ignoreList":[]}
@@ -0,0 +1,21 @@
1
+ "use strict";
2
+
3
+ import { StyleSheet, View } from 'react-native';
4
+ import React from 'react';
5
+ import { COLORS } from '@magmamath/react-native-ui';
6
+ import { jsx as _jsx } from "react/jsx-runtime";
7
+ export const VoiceRecordDevider = () => {
8
+ return /*#__PURE__*/_jsx(View, {
9
+ style: styles.container
10
+ });
11
+ };
12
+ const styles = StyleSheet.create({
13
+ container: {
14
+ height: 1,
15
+ borderRadius: 1,
16
+ width: 28,
17
+ margin: 8,
18
+ backgroundColor: COLORS.NEUTRAL_6
19
+ }
20
+ });
21
+ //# sourceMappingURL=VoiceRecordDevider.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"names":["StyleSheet","View","React","COLORS","jsx","_jsx","VoiceRecordDevider","style","styles","container","create","height","borderRadius","width","margin","backgroundColor","NEUTRAL_6"],"sourceRoot":"../../../../../../src","sources":["features/voice/recording/components/VoiceRecordDevider.tsx"],"mappings":";;AAAA,SAASA,UAAU,EAAEC,IAAI,QAAQ,cAAc;AAC/C,OAAOC,KAAK,MAAM,OAAO;AACzB,SAASC,MAAM,QAAQ,4BAA4B;AAAA,SAAAC,GAAA,IAAAC,IAAA;AAEnD,OAAO,MAAMC,kBAAkB,GAAGA,CAAA,KAAM;EACtC,oBAAOD,IAAA,CAACJ,IAAI;IAACM,KAAK,EAAEC,MAAM,CAACC;EAAU,CAAE,CAAC;AAC1C,CAAC;AAED,MAAMD,MAAM,GAAGR,UAAU,CAACU,MAAM,CAAC;EAC/BD,SAAS,EAAE;IACTE,MAAM,EAAE,CAAC;IACTC,YAAY,EAAE,CAAC;IACfC,KAAK,EAAE,EAAE;IACTC,MAAM,EAAE,CAAC;IACTC,eAAe,EAAEZ,MAAM,CAACa;EAC1B;AACF,CAAC,CAAC","ignoreList":[]}
@@ -0,0 +1,44 @@
1
+ "use strict";
2
+
3
+ import { StyleSheet, View } from 'react-native';
4
+ import { COLORS, Typography } from '@magmamath/react-native-ui';
5
+ import React from 'react';
6
+ import { useUnit } from 'effector-react';
7
+ import { formatDuration } from "../../helpers.js";
8
+ import { jsx as _jsx } from "react/jsx-runtime";
9
+ export const VoiceRecordTimer = ({
10
+ style,
11
+ model,
12
+ recordingFileDurationMs
13
+ }) => {
14
+ const savedAudioFileDurationMs = useUnit(model.$currentRecord)?.durationMs || 0;
15
+ const displayDurationMs = recordingFileDurationMs || savedAudioFileDurationMs;
16
+ return /*#__PURE__*/_jsx(View, {
17
+ style: [styles.container, style],
18
+ children: /*#__PURE__*/_jsx(Typography, {
19
+ variant: "h9",
20
+ style: styles.text,
21
+ children: displayDurationMs ? formatDuration(displayDurationMs) : '0:00'
22
+ })
23
+ });
24
+ };
25
+ const styles = StyleSheet.create({
26
+ container: {
27
+ backgroundColor: COLORS.NEUTRAL_1,
28
+ paddingHorizontal: 8,
29
+ paddingVertical: 2,
30
+ alignItems: 'center',
31
+ borderWidth: 0.5,
32
+ borderColor: COLORS.NEUTRAL_4,
33
+ borderRadius: 18,
34
+ minWidth: 45
35
+ },
36
+ text: {
37
+ color: COLORS.NEUTRAL_10,
38
+ fontSize: 13,
39
+ fontWeight: '600',
40
+ lineHeight: 18,
41
+ textTransform: 'uppercase'
42
+ }
43
+ });
44
+ //# sourceMappingURL=VoiceRecordTimer.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"names":["StyleSheet","View","COLORS","Typography","React","useUnit","formatDuration","jsx","_jsx","VoiceRecordTimer","style","model","recordingFileDurationMs","savedAudioFileDurationMs","$currentRecord","durationMs","displayDurationMs","styles","container","children","variant","text","create","backgroundColor","NEUTRAL_1","paddingHorizontal","paddingVertical","alignItems","borderWidth","borderColor","NEUTRAL_4","borderRadius","minWidth","color","NEUTRAL_10","fontSize","fontWeight","lineHeight","textTransform"],"sourceRoot":"../../../../../../src","sources":["features/voice/recording/components/VoiceRecordTimer.tsx"],"mappings":";;AAAA,SAAoBA,UAAU,EAAEC,IAAI,QAAmB,cAAc;AACrE,SAASC,MAAM,EAAEC,UAAU,QAAQ,4BAA4B;AAC/D,OAAOC,KAAK,MAAM,OAAO;AAEzB,SAASC,OAAO,QAAQ,gBAAgB;AACxC,SAASC,cAAc,QAAQ,kBAAe;AAAA,SAAAC,GAAA,IAAAC,IAAA;AAQ9C,OAAO,MAAMC,gBAAgB,GAAGA,CAAC;EAC/BC,KAAK;EACLC,KAAK;EACLC;AACqB,CAAC,KAAK;EAC3B,MAAMC,wBAAwB,GAAGR,OAAO,CAACM,KAAK,CAACG,cAAc,CAAC,EAAEC,UAAU,IAAI,CAAC;EAC/E,MAAMC,iBAAiB,GAAGJ,uBAAuB,IAAIC,wBAAwB;EAE7E,oBACEL,IAAA,CAACP,IAAI;IAACS,KAAK,EAAE,CAACO,MAAM,CAACC,SAAS,EAAER,KAAK,CAAE;IAAAS,QAAA,eACrCX,IAAA,CAACL,UAAU;MAACiB,OAAO,EAAC,IAAI;MAACV,KAAK,EAAEO,MAAM,CAACI,IAAK;MAAAF,QAAA,EACzCH,iBAAiB,GAAGV,cAAc,CAACU,iBAAiB,CAAC,GAAG;IAAM,CACrD;EAAC,CACT,CAAC;AAEX,CAAC;AAED,MAAMC,MAAM,GAAGjB,UAAU,CAACsB,MAAM,CAAC;EAC/BJ,SAAS,EAAE;IACTK,eAAe,EAAErB,MAAM,CAACsB,SAAS;IACjCC,iBAAiB,EAAE,CAAC;IACpBC,eAAe,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