@magmamath/students-features 1.3.23-rc.9 → 1.3.23

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 (332) hide show
  1. package/dist/commonjs/features/pmProgress/components/chart/chart.helpers.js +1 -0
  2. package/dist/commonjs/features/pmProgress/components/chart/chart.helpers.js.map +1 -1
  3. package/dist/commonjs/features/pmProgress/components/header/StartButton.js +10 -1
  4. package/dist/commonjs/features/pmProgress/components/header/StartButton.js.map +1 -1
  5. package/dist/commonjs/features/pmProgress/components/list/{ListCard.js → DomainCard.js} +10 -22
  6. package/dist/commonjs/features/pmProgress/components/list/DomainCard.js.map +1 -0
  7. package/dist/commonjs/features/pmProgress/components/list/Fluency.js +3 -3
  8. package/dist/commonjs/features/pmProgress/components/list/Fluency.js.map +1 -1
  9. package/dist/commonjs/features/pmProgress/components/list/PmDomainList.js +3 -3
  10. package/dist/commonjs/features/pmProgress/components/list/PmDomainList.js.map +1 -1
  11. package/dist/commonjs/features/pmProgress/components/list/{ListItem.js → StandardItem.js} +5 -5
  12. package/dist/commonjs/features/pmProgress/components/list/StandardItem.js.map +1 -0
  13. package/dist/commonjs/features/pmProgress/components/recs/PmTeacherRecs.js +7 -4
  14. package/dist/commonjs/features/pmProgress/components/recs/PmTeacherRecs.js.map +1 -1
  15. package/dist/commonjs/features/pmProgress/components/standard/StandardTag.js +1 -8
  16. package/dist/commonjs/features/pmProgress/components/standard/StandardTag.js.map +1 -1
  17. package/dist/commonjs/features/pmProgress/shared/pmProgress.helpers.js +1 -1
  18. package/dist/commonjs/features/pmProgress/shared/pmProgress.helpers.js.map +1 -1
  19. package/dist/commonjs/features/voice/index.js +4 -4
  20. package/dist/commonjs/features/voice/index.js.map +1 -1
  21. package/dist/commonjs/features/voice/playing/components/VoiceTranscriptionsDropdown.js +245 -0
  22. package/dist/commonjs/features/voice/playing/components/VoiceTranscriptionsDropdown.js.map +1 -0
  23. package/dist/commonjs/features/voice/playing/components/VoiceTranscriptionsDropdownItem.js +109 -0
  24. package/dist/commonjs/features/voice/playing/components/VoiceTranscriptionsDropdownItem.js.map +1 -0
  25. package/dist/commonjs/features/voice/playing/hooks/{useVoiceTranscription.js → useVoiceTranscriptionsDropdown.js} +4 -4
  26. package/dist/commonjs/features/voice/playing/hooks/useVoiceTranscriptionsDropdown.js.map +1 -0
  27. package/dist/commonjs/features/voice/playing/hooks/useVoiceTranscriptionsDropdownItemAnimation.js +34 -0
  28. package/dist/commonjs/features/voice/playing/hooks/useVoiceTranscriptionsDropdownItemAnimation.js.map +1 -0
  29. package/dist/commonjs/features/voice/playing/model/TranscriptionsDownloaderModel.js +4 -18
  30. package/dist/commonjs/features/voice/playing/model/TranscriptionsDownloaderModel.js.map +1 -1
  31. package/dist/commonjs/features/voice/playing/model/VoicePlayer.model.js +2 -6
  32. package/dist/commonjs/features/voice/playing/model/VoicePlayer.model.js.map +1 -1
  33. package/dist/commonjs/features/voice/playing/model/{VoiceTranscription.model.js → VoiceTranscriptionsDropdown.model.js} +4 -4
  34. package/dist/commonjs/features/voice/playing/model/VoiceTranscriptionsDropdown.model.js.map +1 -0
  35. package/dist/commonjs/features/voice/types.js +1 -6
  36. package/dist/commonjs/features/voice/types.js.map +1 -1
  37. package/dist/commonjs/index.js +0 -12
  38. package/dist/commonjs/index.js.map +1 -1
  39. package/dist/module/features/pmProgress/components/chart/chart.helpers.js +1 -0
  40. package/dist/module/features/pmProgress/components/chart/chart.helpers.js.map +1 -1
  41. package/dist/module/features/pmProgress/components/header/StartButton.js +10 -1
  42. package/dist/module/features/pmProgress/components/header/StartButton.js.map +1 -1
  43. package/dist/module/features/pmProgress/components/list/{ListCard.js → DomainCard.js} +8 -20
  44. package/dist/module/features/pmProgress/components/list/DomainCard.js.map +1 -0
  45. package/dist/module/features/pmProgress/components/list/Fluency.js +3 -3
  46. package/dist/module/features/pmProgress/components/list/Fluency.js.map +1 -1
  47. package/dist/module/features/pmProgress/components/list/PmDomainList.js +3 -3
  48. package/dist/module/features/pmProgress/components/list/PmDomainList.js.map +1 -1
  49. package/dist/module/features/pmProgress/components/list/{ListItem.js → StandardItem.js} +3 -3
  50. package/dist/module/features/pmProgress/components/list/StandardItem.js.map +1 -0
  51. package/dist/module/features/pmProgress/components/recs/PmTeacherRecs.js +7 -4
  52. package/dist/module/features/pmProgress/components/recs/PmTeacherRecs.js.map +1 -1
  53. package/dist/module/features/pmProgress/components/standard/StandardTag.js +2 -9
  54. package/dist/module/features/pmProgress/components/standard/StandardTag.js.map +1 -1
  55. package/dist/module/features/pmProgress/shared/pmProgress.helpers.js +1 -1
  56. package/dist/module/features/pmProgress/shared/pmProgress.helpers.js.map +1 -1
  57. package/dist/module/features/voice/index.js +1 -1
  58. package/dist/module/features/voice/index.js.map +1 -1
  59. package/dist/module/features/voice/playing/components/VoiceTranscriptionsDropdown.js +238 -0
  60. package/dist/module/features/voice/playing/components/VoiceTranscriptionsDropdown.js.map +1 -0
  61. package/dist/module/features/voice/playing/components/VoiceTranscriptionsDropdownItem.js +103 -0
  62. package/dist/module/features/voice/playing/components/VoiceTranscriptionsDropdownItem.js.map +1 -0
  63. package/dist/module/features/voice/playing/hooks/{useVoiceTranscription.js → useVoiceTranscriptionsDropdown.js} +2 -2
  64. package/dist/module/features/voice/playing/hooks/useVoiceTranscriptionsDropdown.js.map +1 -0
  65. package/dist/module/features/voice/playing/hooks/useVoiceTranscriptionsDropdownItemAnimation.js +29 -0
  66. package/dist/module/features/voice/playing/hooks/useVoiceTranscriptionsDropdownItemAnimation.js.map +1 -0
  67. package/dist/module/features/voice/playing/model/TranscriptionsDownloaderModel.js +4 -18
  68. package/dist/module/features/voice/playing/model/TranscriptionsDownloaderModel.js.map +1 -1
  69. package/dist/module/features/voice/playing/model/VoicePlayer.model.js +2 -6
  70. package/dist/module/features/voice/playing/model/VoicePlayer.model.js.map +1 -1
  71. package/dist/module/features/voice/playing/model/{VoiceTranscription.model.js → VoiceTranscriptionsDropdown.model.js} +2 -2
  72. package/dist/module/features/voice/playing/model/VoiceTranscriptionsDropdown.model.js.map +1 -0
  73. package/dist/module/features/voice/types.js +0 -5
  74. package/dist/module/features/voice/types.js.map +1 -1
  75. package/dist/module/index.js +0 -1
  76. package/dist/module/index.js.map +1 -1
  77. package/dist/typescript/commonjs/features/pmProgress/components/chart/chart.helpers.d.ts.map +1 -1
  78. package/dist/typescript/commonjs/features/pmProgress/components/header/StartButton.d.ts.map +1 -1
  79. package/dist/typescript/commonjs/features/pmProgress/components/list/{ListCard.d.ts → DomainCard.d.ts} +6 -6
  80. package/dist/typescript/commonjs/features/pmProgress/components/list/DomainCard.d.ts.map +1 -0
  81. package/dist/typescript/commonjs/features/pmProgress/components/list/StandardItem.d.ts +13 -0
  82. package/dist/typescript/commonjs/features/pmProgress/components/list/StandardItem.d.ts.map +1 -0
  83. package/dist/typescript/commonjs/features/pmProgress/components/recs/PmTeacherRecs.d.ts.map +1 -1
  84. package/dist/typescript/commonjs/features/pmProgress/shared/pmProgress.helpers.d.ts.map +1 -1
  85. package/dist/typescript/commonjs/features/voice/index.d.ts +1 -1
  86. package/dist/typescript/commonjs/features/voice/index.d.ts.map +1 -1
  87. package/dist/typescript/commonjs/features/voice/playing/components/VoiceTranscriptionsDropdown.d.ts +16 -0
  88. package/dist/typescript/commonjs/features/voice/playing/components/VoiceTranscriptionsDropdown.d.ts.map +1 -0
  89. package/dist/typescript/commonjs/features/voice/playing/components/VoiceTranscriptionsDropdownItem.d.ts +12 -0
  90. package/dist/typescript/commonjs/features/voice/playing/components/VoiceTranscriptionsDropdownItem.d.ts.map +1 -0
  91. package/dist/typescript/commonjs/features/voice/playing/hooks/{useVoiceTranscription.d.ts → useVoiceTranscriptionsDropdown.d.ts} +3 -3
  92. package/dist/typescript/commonjs/features/voice/playing/hooks/useVoiceTranscriptionsDropdown.d.ts.map +1 -0
  93. package/dist/typescript/commonjs/features/voice/playing/hooks/useVoiceTranscriptionsDropdownItemAnimation.d.ts +11 -0
  94. package/dist/typescript/commonjs/features/voice/playing/hooks/useVoiceTranscriptionsDropdownItemAnimation.d.ts.map +1 -0
  95. package/dist/typescript/commonjs/features/voice/playing/model/TranscriptionsDownloaderModel.d.ts +0 -1
  96. package/dist/typescript/commonjs/features/voice/playing/model/TranscriptionsDownloaderModel.d.ts.map +1 -1
  97. package/dist/typescript/commonjs/features/voice/playing/model/VoicePlayer.model.d.ts +2 -4
  98. package/dist/typescript/commonjs/features/voice/playing/model/VoicePlayer.model.d.ts.map +1 -1
  99. package/dist/typescript/commonjs/features/voice/playing/model/{VoiceTranscription.model.d.ts → VoiceTranscriptionsDropdown.model.d.ts} +2 -2
  100. package/dist/typescript/commonjs/features/voice/playing/model/VoiceTranscriptionsDropdown.model.d.ts.map +1 -0
  101. package/dist/typescript/commonjs/features/voice/types.d.ts +1 -9
  102. package/dist/typescript/commonjs/features/voice/types.d.ts.map +1 -1
  103. package/dist/typescript/commonjs/index.d.ts +0 -1
  104. package/dist/typescript/commonjs/index.d.ts.map +1 -1
  105. package/dist/typescript/module/features/pmProgress/components/chart/chart.helpers.d.ts.map +1 -1
  106. package/dist/typescript/module/features/pmProgress/components/header/StartButton.d.ts.map +1 -1
  107. package/dist/typescript/module/features/pmProgress/components/list/{ListCard.d.ts → DomainCard.d.ts} +6 -6
  108. package/dist/typescript/module/features/pmProgress/components/list/DomainCard.d.ts.map +1 -0
  109. package/dist/typescript/module/features/pmProgress/components/list/StandardItem.d.ts +13 -0
  110. package/dist/typescript/module/features/pmProgress/components/list/StandardItem.d.ts.map +1 -0
  111. package/dist/typescript/module/features/pmProgress/components/recs/PmTeacherRecs.d.ts.map +1 -1
  112. package/dist/typescript/module/features/pmProgress/shared/pmProgress.helpers.d.ts.map +1 -1
  113. package/dist/typescript/module/features/voice/index.d.ts +1 -1
  114. package/dist/typescript/module/features/voice/index.d.ts.map +1 -1
  115. package/dist/typescript/module/features/voice/playing/components/VoiceTranscriptionsDropdown.d.ts +16 -0
  116. package/dist/typescript/module/features/voice/playing/components/VoiceTranscriptionsDropdown.d.ts.map +1 -0
  117. package/dist/typescript/module/features/voice/playing/components/VoiceTranscriptionsDropdownItem.d.ts +12 -0
  118. package/dist/typescript/module/features/voice/playing/components/VoiceTranscriptionsDropdownItem.d.ts.map +1 -0
  119. package/dist/typescript/module/features/voice/playing/hooks/{useVoiceTranscription.d.ts → useVoiceTranscriptionsDropdown.d.ts} +3 -3
  120. package/dist/typescript/module/features/voice/playing/hooks/useVoiceTranscriptionsDropdown.d.ts.map +1 -0
  121. package/dist/typescript/module/features/voice/playing/hooks/useVoiceTranscriptionsDropdownItemAnimation.d.ts +11 -0
  122. package/dist/typescript/module/features/voice/playing/hooks/useVoiceTranscriptionsDropdownItemAnimation.d.ts.map +1 -0
  123. package/dist/typescript/module/features/voice/playing/model/TranscriptionsDownloaderModel.d.ts +0 -1
  124. package/dist/typescript/module/features/voice/playing/model/TranscriptionsDownloaderModel.d.ts.map +1 -1
  125. package/dist/typescript/module/features/voice/playing/model/VoicePlayer.model.d.ts +2 -4
  126. package/dist/typescript/module/features/voice/playing/model/VoicePlayer.model.d.ts.map +1 -1
  127. package/dist/typescript/module/features/voice/playing/model/{VoiceTranscription.model.d.ts → VoiceTranscriptionsDropdown.model.d.ts} +2 -2
  128. package/dist/typescript/module/features/voice/playing/model/VoiceTranscriptionsDropdown.model.d.ts.map +1 -0
  129. package/dist/typescript/module/features/voice/types.d.ts +1 -9
  130. package/dist/typescript/module/features/voice/types.d.ts.map +1 -1
  131. package/dist/typescript/module/index.d.ts +0 -1
  132. package/dist/typescript/module/index.d.ts.map +1 -1
  133. package/package.json +1 -1
  134. package/src/features/pmProgress/components/chart/chart.helpers.ts +1 -0
  135. package/src/features/pmProgress/components/header/StartButton.tsx +11 -1
  136. package/src/features/pmProgress/components/list/{ListCard.tsx → DomainCard.tsx} +12 -19
  137. package/src/features/pmProgress/components/list/Fluency.tsx +3 -3
  138. package/src/features/pmProgress/components/list/PmDomainList.tsx +3 -3
  139. package/src/features/pmProgress/components/list/{ListItem.tsx → StandardItem.tsx} +4 -4
  140. package/src/features/pmProgress/components/recs/PmTeacherRecs.tsx +8 -4
  141. package/src/features/pmProgress/components/standard/StandardTag.tsx +2 -6
  142. package/src/features/pmProgress/shared/pmProgress.helpers.ts +1 -2
  143. package/src/features/voice/index.ts +1 -1
  144. package/src/features/voice/playing/components/VoiceTranscriptionsDropdown.tsx +296 -0
  145. package/src/features/voice/playing/components/VoiceTranscriptionsDropdownItem.tsx +128 -0
  146. package/src/features/voice/playing/hooks/{useVoiceTranscription.ts → useVoiceTranscriptionsDropdown.ts} +2 -2
  147. package/src/features/voice/playing/hooks/useVoiceTranscriptionsDropdownItemAnimation.ts +40 -0
  148. package/src/features/voice/playing/model/TranscriptionsDownloaderModel.ts +5 -12
  149. package/src/features/voice/playing/model/VoicePlayer.model.ts +2 -7
  150. package/src/features/voice/playing/model/{VoiceTranscription.model.ts → VoiceTranscriptionsDropdown.model.ts} +2 -2
  151. package/src/features/voice/types.ts +0 -15
  152. package/src/index.ts +0 -1
  153. package/dist/commonjs/features/pmProgress/components/list/ListCard.js.map +0 -1
  154. package/dist/commonjs/features/pmProgress/components/list/ListItem.js.map +0 -1
  155. package/dist/commonjs/features/translation/constants.js +0 -11
  156. package/dist/commonjs/features/translation/constants.js.map +0 -1
  157. package/dist/commonjs/features/translation/helpers.js +0 -60
  158. package/dist/commonjs/features/translation/helpers.js.map +0 -1
  159. package/dist/commonjs/features/translation/index.js +0 -105
  160. package/dist/commonjs/features/translation/index.js.map +0 -1
  161. package/dist/commonjs/features/translation/model/TranslationModel.js +0 -122
  162. package/dist/commonjs/features/translation/model/TranslationModel.js.map +0 -1
  163. package/dist/commonjs/features/translation/model/TranslationPreprocessor.js +0 -142
  164. package/dist/commonjs/features/translation/model/TranslationPreprocessor.js.map +0 -1
  165. package/dist/commonjs/features/translation/model/TranslationService.js +0 -112
  166. package/dist/commonjs/features/translation/model/TranslationService.js.map +0 -1
  167. package/dist/commonjs/features/translation/preserve/wordsToPreserve.js +0 -314
  168. package/dist/commonjs/features/translation/preserve/wordsToPreserve.js.map +0 -1
  169. package/dist/commonjs/features/translation/providers/google/GoogleTranslationProvider.js +0 -50
  170. package/dist/commonjs/features/translation/providers/google/GoogleTranslationProvider.js.map +0 -1
  171. package/dist/commonjs/features/translation/providers/google/supportedLanguages.js +0 -230
  172. package/dist/commonjs/features/translation/providers/google/supportedLanguages.js.map +0 -1
  173. package/dist/commonjs/features/translation/providers/google.types.js +0 -2
  174. package/dist/commonjs/features/translation/providers/google.types.js.map +0 -1
  175. package/dist/commonjs/features/translation/providers/translation.interface.js +0 -49
  176. package/dist/commonjs/features/translation/providers/translation.interface.js.map +0 -1
  177. package/dist/commonjs/features/translation/types.js +0 -2
  178. package/dist/commonjs/features/translation/types.js.map +0 -1
  179. package/dist/commonjs/features/voice/playing/components/VoiceTranscriptContent.js +0 -44
  180. package/dist/commonjs/features/voice/playing/components/VoiceTranscriptContent.js.map +0 -1
  181. package/dist/commonjs/features/voice/playing/components/VoiceTranscription.js +0 -135
  182. package/dist/commonjs/features/voice/playing/components/VoiceTranscription.js.map +0 -1
  183. package/dist/commonjs/features/voice/playing/components/VoiceTranscriptionCollapsible.js +0 -66
  184. package/dist/commonjs/features/voice/playing/components/VoiceTranscriptionCollapsible.js.map +0 -1
  185. package/dist/commonjs/features/voice/playing/components/VoiceTranscriptionHeaderActions.js +0 -59
  186. package/dist/commonjs/features/voice/playing/components/VoiceTranscriptionHeaderActions.js.map +0 -1
  187. package/dist/commonjs/features/voice/playing/hooks/useVoiceTranscription.js.map +0 -1
  188. package/dist/commonjs/features/voice/playing/hooks/useVoiceTranscriptionEffects.js +0 -37
  189. package/dist/commonjs/features/voice/playing/hooks/useVoiceTranscriptionEffects.js.map +0 -1
  190. package/dist/commonjs/features/voice/playing/model/VoiceTranscription.model.js.map +0 -1
  191. package/dist/commonjs/features/voice/playing/model/VoiceTranscriptionTranslation.model.js +0 -62
  192. package/dist/commonjs/features/voice/playing/model/VoiceTranscriptionTranslation.model.js.map +0 -1
  193. package/dist/module/features/pmProgress/components/list/ListCard.js.map +0 -1
  194. package/dist/module/features/pmProgress/components/list/ListItem.js.map +0 -1
  195. package/dist/module/features/translation/constants.js +0 -7
  196. package/dist/module/features/translation/constants.js.map +0 -1
  197. package/dist/module/features/translation/helpers.js +0 -53
  198. package/dist/module/features/translation/helpers.js.map +0 -1
  199. package/dist/module/features/translation/index.js +0 -12
  200. package/dist/module/features/translation/index.js.map +0 -1
  201. package/dist/module/features/translation/model/TranslationModel.js +0 -117
  202. package/dist/module/features/translation/model/TranslationModel.js.map +0 -1
  203. package/dist/module/features/translation/model/TranslationPreprocessor.js +0 -137
  204. package/dist/module/features/translation/model/TranslationPreprocessor.js.map +0 -1
  205. package/dist/module/features/translation/model/TranslationService.js +0 -107
  206. package/dist/module/features/translation/model/TranslationService.js.map +0 -1
  207. package/dist/module/features/translation/preserve/wordsToPreserve.js +0 -310
  208. package/dist/module/features/translation/preserve/wordsToPreserve.js.map +0 -1
  209. package/dist/module/features/translation/providers/google/GoogleTranslationProvider.js +0 -45
  210. package/dist/module/features/translation/providers/google/GoogleTranslationProvider.js.map +0 -1
  211. package/dist/module/features/translation/providers/google/supportedLanguages.js +0 -225
  212. package/dist/module/features/translation/providers/google/supportedLanguages.js.map +0 -1
  213. package/dist/module/features/translation/providers/google.types.js +0 -2
  214. package/dist/module/features/translation/providers/google.types.js.map +0 -1
  215. package/dist/module/features/translation/providers/translation.interface.js +0 -44
  216. package/dist/module/features/translation/providers/translation.interface.js.map +0 -1
  217. package/dist/module/features/translation/types.js +0 -2
  218. package/dist/module/features/translation/types.js.map +0 -1
  219. package/dist/module/features/voice/playing/components/VoiceTranscriptContent.js +0 -38
  220. package/dist/module/features/voice/playing/components/VoiceTranscriptContent.js.map +0 -1
  221. package/dist/module/features/voice/playing/components/VoiceTranscription.js +0 -127
  222. package/dist/module/features/voice/playing/components/VoiceTranscription.js.map +0 -1
  223. package/dist/module/features/voice/playing/components/VoiceTranscriptionCollapsible.js +0 -58
  224. package/dist/module/features/voice/playing/components/VoiceTranscriptionCollapsible.js.map +0 -1
  225. package/dist/module/features/voice/playing/components/VoiceTranscriptionHeaderActions.js +0 -51
  226. package/dist/module/features/voice/playing/components/VoiceTranscriptionHeaderActions.js.map +0 -1
  227. package/dist/module/features/voice/playing/hooks/useVoiceTranscription.js.map +0 -1
  228. package/dist/module/features/voice/playing/hooks/useVoiceTranscriptionEffects.js +0 -32
  229. package/dist/module/features/voice/playing/hooks/useVoiceTranscriptionEffects.js.map +0 -1
  230. package/dist/module/features/voice/playing/model/VoiceTranscription.model.js.map +0 -1
  231. package/dist/module/features/voice/playing/model/VoiceTranscriptionTranslation.model.js +0 -57
  232. package/dist/module/features/voice/playing/model/VoiceTranscriptionTranslation.model.js.map +0 -1
  233. package/dist/typescript/commonjs/features/pmProgress/components/list/ListCard.d.ts.map +0 -1
  234. package/dist/typescript/commonjs/features/pmProgress/components/list/ListItem.d.ts +0 -13
  235. package/dist/typescript/commonjs/features/pmProgress/components/list/ListItem.d.ts.map +0 -1
  236. package/dist/typescript/commonjs/features/translation/constants.d.ts +0 -5
  237. package/dist/typescript/commonjs/features/translation/constants.d.ts.map +0 -1
  238. package/dist/typescript/commonjs/features/translation/helpers.d.ts +0 -9
  239. package/dist/typescript/commonjs/features/translation/helpers.d.ts.map +0 -1
  240. package/dist/typescript/commonjs/features/translation/index.d.ts +0 -12
  241. package/dist/typescript/commonjs/features/translation/index.d.ts.map +0 -1
  242. package/dist/typescript/commonjs/features/translation/model/TranslationModel.d.ts +0 -33
  243. package/dist/typescript/commonjs/features/translation/model/TranslationModel.d.ts.map +0 -1
  244. package/dist/typescript/commonjs/features/translation/model/TranslationPreprocessor.d.ts +0 -34
  245. package/dist/typescript/commonjs/features/translation/model/TranslationPreprocessor.d.ts.map +0 -1
  246. package/dist/typescript/commonjs/features/translation/model/TranslationService.d.ts +0 -40
  247. package/dist/typescript/commonjs/features/translation/model/TranslationService.d.ts.map +0 -1
  248. package/dist/typescript/commonjs/features/translation/preserve/wordsToPreserve.d.ts +0 -3
  249. package/dist/typescript/commonjs/features/translation/preserve/wordsToPreserve.d.ts.map +0 -1
  250. package/dist/typescript/commonjs/features/translation/providers/google/GoogleTranslationProvider.d.ts +0 -17
  251. package/dist/typescript/commonjs/features/translation/providers/google/GoogleTranslationProvider.d.ts.map +0 -1
  252. package/dist/typescript/commonjs/features/translation/providers/google/supportedLanguages.d.ts +0 -209
  253. package/dist/typescript/commonjs/features/translation/providers/google/supportedLanguages.d.ts.map +0 -1
  254. package/dist/typescript/commonjs/features/translation/providers/google.types.d.ts +0 -15
  255. package/dist/typescript/commonjs/features/translation/providers/google.types.d.ts.map +0 -1
  256. package/dist/typescript/commonjs/features/translation/providers/translation.interface.d.ts +0 -30
  257. package/dist/typescript/commonjs/features/translation/providers/translation.interface.d.ts.map +0 -1
  258. package/dist/typescript/commonjs/features/translation/types.d.ts +0 -27
  259. package/dist/typescript/commonjs/features/translation/types.d.ts.map +0 -1
  260. package/dist/typescript/commonjs/features/voice/playing/components/VoiceTranscriptContent.d.ts +0 -8
  261. package/dist/typescript/commonjs/features/voice/playing/components/VoiceTranscriptContent.d.ts.map +0 -1
  262. package/dist/typescript/commonjs/features/voice/playing/components/VoiceTranscription.d.ts +0 -16
  263. package/dist/typescript/commonjs/features/voice/playing/components/VoiceTranscription.d.ts.map +0 -1
  264. package/dist/typescript/commonjs/features/voice/playing/components/VoiceTranscriptionCollapsible.d.ts +0 -10
  265. package/dist/typescript/commonjs/features/voice/playing/components/VoiceTranscriptionCollapsible.d.ts.map +0 -1
  266. package/dist/typescript/commonjs/features/voice/playing/components/VoiceTranscriptionHeaderActions.d.ts +0 -12
  267. package/dist/typescript/commonjs/features/voice/playing/components/VoiceTranscriptionHeaderActions.d.ts.map +0 -1
  268. package/dist/typescript/commonjs/features/voice/playing/hooks/useVoiceTranscription.d.ts.map +0 -1
  269. package/dist/typescript/commonjs/features/voice/playing/hooks/useVoiceTranscriptionEffects.d.ts +0 -12
  270. package/dist/typescript/commonjs/features/voice/playing/hooks/useVoiceTranscriptionEffects.d.ts.map +0 -1
  271. package/dist/typescript/commonjs/features/voice/playing/model/VoiceTranscription.model.d.ts.map +0 -1
  272. package/dist/typescript/commonjs/features/voice/playing/model/VoiceTranscriptionTranslation.model.d.ts +0 -25
  273. package/dist/typescript/commonjs/features/voice/playing/model/VoiceTranscriptionTranslation.model.d.ts.map +0 -1
  274. package/dist/typescript/module/features/pmProgress/components/list/ListCard.d.ts.map +0 -1
  275. package/dist/typescript/module/features/pmProgress/components/list/ListItem.d.ts +0 -13
  276. package/dist/typescript/module/features/pmProgress/components/list/ListItem.d.ts.map +0 -1
  277. package/dist/typescript/module/features/translation/constants.d.ts +0 -5
  278. package/dist/typescript/module/features/translation/constants.d.ts.map +0 -1
  279. package/dist/typescript/module/features/translation/helpers.d.ts +0 -9
  280. package/dist/typescript/module/features/translation/helpers.d.ts.map +0 -1
  281. package/dist/typescript/module/features/translation/index.d.ts +0 -12
  282. package/dist/typescript/module/features/translation/index.d.ts.map +0 -1
  283. package/dist/typescript/module/features/translation/model/TranslationModel.d.ts +0 -33
  284. package/dist/typescript/module/features/translation/model/TranslationModel.d.ts.map +0 -1
  285. package/dist/typescript/module/features/translation/model/TranslationPreprocessor.d.ts +0 -34
  286. package/dist/typescript/module/features/translation/model/TranslationPreprocessor.d.ts.map +0 -1
  287. package/dist/typescript/module/features/translation/model/TranslationService.d.ts +0 -40
  288. package/dist/typescript/module/features/translation/model/TranslationService.d.ts.map +0 -1
  289. package/dist/typescript/module/features/translation/preserve/wordsToPreserve.d.ts +0 -3
  290. package/dist/typescript/module/features/translation/preserve/wordsToPreserve.d.ts.map +0 -1
  291. package/dist/typescript/module/features/translation/providers/google/GoogleTranslationProvider.d.ts +0 -17
  292. package/dist/typescript/module/features/translation/providers/google/GoogleTranslationProvider.d.ts.map +0 -1
  293. package/dist/typescript/module/features/translation/providers/google/supportedLanguages.d.ts +0 -209
  294. package/dist/typescript/module/features/translation/providers/google/supportedLanguages.d.ts.map +0 -1
  295. package/dist/typescript/module/features/translation/providers/google.types.d.ts +0 -15
  296. package/dist/typescript/module/features/translation/providers/google.types.d.ts.map +0 -1
  297. package/dist/typescript/module/features/translation/providers/translation.interface.d.ts +0 -30
  298. package/dist/typescript/module/features/translation/providers/translation.interface.d.ts.map +0 -1
  299. package/dist/typescript/module/features/translation/types.d.ts +0 -27
  300. package/dist/typescript/module/features/translation/types.d.ts.map +0 -1
  301. package/dist/typescript/module/features/voice/playing/components/VoiceTranscriptContent.d.ts +0 -8
  302. package/dist/typescript/module/features/voice/playing/components/VoiceTranscriptContent.d.ts.map +0 -1
  303. package/dist/typescript/module/features/voice/playing/components/VoiceTranscription.d.ts +0 -16
  304. package/dist/typescript/module/features/voice/playing/components/VoiceTranscription.d.ts.map +0 -1
  305. package/dist/typescript/module/features/voice/playing/components/VoiceTranscriptionCollapsible.d.ts +0 -10
  306. package/dist/typescript/module/features/voice/playing/components/VoiceTranscriptionCollapsible.d.ts.map +0 -1
  307. package/dist/typescript/module/features/voice/playing/components/VoiceTranscriptionHeaderActions.d.ts +0 -12
  308. package/dist/typescript/module/features/voice/playing/components/VoiceTranscriptionHeaderActions.d.ts.map +0 -1
  309. package/dist/typescript/module/features/voice/playing/hooks/useVoiceTranscription.d.ts.map +0 -1
  310. package/dist/typescript/module/features/voice/playing/hooks/useVoiceTranscriptionEffects.d.ts +0 -12
  311. package/dist/typescript/module/features/voice/playing/hooks/useVoiceTranscriptionEffects.d.ts.map +0 -1
  312. package/dist/typescript/module/features/voice/playing/model/VoiceTranscription.model.d.ts.map +0 -1
  313. package/dist/typescript/module/features/voice/playing/model/VoiceTranscriptionTranslation.model.d.ts +0 -25
  314. package/dist/typescript/module/features/voice/playing/model/VoiceTranscriptionTranslation.model.d.ts.map +0 -1
  315. package/src/features/translation/constants.ts +0 -4
  316. package/src/features/translation/helpers.ts +0 -63
  317. package/src/features/translation/index.ts +0 -30
  318. package/src/features/translation/model/TranslationModel.ts +0 -174
  319. package/src/features/translation/model/TranslationPreprocessor.ts +0 -171
  320. package/src/features/translation/model/TranslationService.ts +0 -148
  321. package/src/features/translation/preserve/wordsToPreserve.ts +0 -87
  322. package/src/features/translation/providers/google/GoogleTranslationProvider.ts +0 -50
  323. package/src/features/translation/providers/google/supportedLanguages.ts +0 -229
  324. package/src/features/translation/providers/google.types.ts +0 -16
  325. package/src/features/translation/providers/translation.interface.ts +0 -63
  326. package/src/features/translation/types.ts +0 -30
  327. package/src/features/voice/playing/components/VoiceTranscriptContent.tsx +0 -37
  328. package/src/features/voice/playing/components/VoiceTranscription.tsx +0 -172
  329. package/src/features/voice/playing/components/VoiceTranscriptionCollapsible.tsx +0 -59
  330. package/src/features/voice/playing/components/VoiceTranscriptionHeaderActions.tsx +0 -62
  331. package/src/features/voice/playing/hooks/useVoiceTranscriptionEffects.ts +0 -44
  332. package/src/features/voice/playing/model/VoiceTranscriptionTranslation.model.ts +0 -75
@@ -0,0 +1,245 @@
1
+ "use strict";
2
+
3
+ Object.defineProperty(exports, "__esModule", {
4
+ value: true
5
+ });
6
+ exports.VoiceTranscriptionsDropdown = void 0;
7
+ var _reactNativeUi = require("@magmamath/react-native-ui");
8
+ var _effectorReact = require("effector-react");
9
+ var _react = _interopRequireWildcard(require("react"));
10
+ var _reactNative = require("react-native");
11
+ var _reactNativeReanimated = _interopRequireWildcard(require("react-native-reanimated"));
12
+ var _useVoiceTranscriptionsDropdown = require("../hooks/useVoiceTranscriptionsDropdown.js");
13
+ var _index = require("../model/index.js");
14
+ var _VoiceTranscriptionsDropdownItem = require("./VoiceTranscriptionsDropdownItem.js");
15
+ var _constants = require("../../constants.js");
16
+ var _i18n = require("../../../../i18n/i18n.js");
17
+ var _PlayButton = require("../../../../shared/components/PlayButton.js");
18
+ var _helpers = require("../../helpers.js");
19
+ var _jsxRuntime = require("react/jsx-runtime");
20
+ 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); }
21
+ 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; }
22
+ const AnimatedTouchableOpacity = _reactNativeReanimated.default.createAnimatedComponent(_reactNative.TouchableOpacity);
23
+ const VoiceTranscriptionsDropdown = ({
24
+ style,
25
+ model,
26
+ answers,
27
+ attemptOffset,
28
+ onAttemptOffsetChange,
29
+ attemptsCount,
30
+ problemId
31
+ }) => {
32
+ const [attempts, setAttempts] = (0, _react.useState)([]);
33
+ const scrollRef = (0, _react.useRef)(null);
34
+ const scrollViewRef = (0, _react.useRef)(null);
35
+ const itemLayoutsRef = (0, _react.useRef)(new Map());
36
+ const answersRef = (0, _react.useRef)(answers);
37
+ answersRef.current = answers;
38
+ const t = (0, _i18n.useText)();
39
+ const [currentAttempt, transcriptsLoaded, playerState, isDropdownExpanded] = (0, _effectorReact.useUnit)([model.$currentAttempt, model.loader.$transcriptsLoaded, model.$playerState, model.dropdown.$isExpanded]);
40
+ const activeAttempt = (0, _helpers.getActiveAttempt)(attemptOffset, attemptsCount);
41
+ const answersKey = (0, _react.useMemo)(() => answers.map(a => `${a._id}:${a.audioFileId ?? ''}`).join(','), [answers]);
42
+ const hasActiveTranscript = activeAttempt !== null && answers?.[activeAttempt - 1]?.audioFileId !== undefined;
43
+ const playButtonState = {
44
+ isActive: playerState !== _index.PlayerState.IDLE,
45
+ isLoading: playerState === _index.PlayerState.LOADING,
46
+ status: (0, _helpers.getAudioStatus)(playerState)
47
+ };
48
+ const {
49
+ listAnimatedStyle,
50
+ iconAnimatedStyle,
51
+ onListLayout
52
+ } = (0, _useVoiceTranscriptionsDropdown.useVoiceTranscriptionsDropdown)(model.dropdown);
53
+ const handleItemLayout = (0, _react.useCallback)((id, event) => {
54
+ itemLayoutsRef.current.set(id, event.nativeEvent.layout.y);
55
+ }, []);
56
+ const scrollToAttempt = (0, _react.useCallback)(attemptNumber => {
57
+ if (_reactNativeUi.IS_WEB) {
58
+ const item = attempts.find(item => item.attemptNumber === attemptNumber);
59
+ if (item) {
60
+ const y = itemLayoutsRef.current.get(item._id);
61
+ if (y !== undefined) {
62
+ scrollViewRef.current?.scrollTo({
63
+ y,
64
+ animated: true
65
+ });
66
+ }
67
+ }
68
+ return;
69
+ }
70
+ const index = attempts.findIndex(item => item.attemptNumber === attemptNumber);
71
+ if (index !== -1) {
72
+ scrollRef.current?.scrollToIndex({
73
+ index,
74
+ animated: true,
75
+ viewPosition: 0
76
+ });
77
+ }
78
+ }, [attempts]);
79
+ const handleItemToggle = (0, _react.useCallback)(attempt => {
80
+ if (onAttemptOffsetChange && attemptsCount !== undefined) {
81
+ onAttemptOffsetChange(attemptsCount - attempt);
82
+ }
83
+ }, [onAttemptOffsetChange, attemptsCount]);
84
+ const handlePlayPress = (0, _react.useCallback)(() => {
85
+ if (activeAttempt) {
86
+ model.togglePlayPause(activeAttempt);
87
+ }
88
+ }, [model, activeAttempt]);
89
+ const handleScrollToIndexFailed = (0, _react.useCallback)(info => {
90
+ setTimeout(() => {
91
+ scrollRef.current?.scrollToIndex({
92
+ index: info.index,
93
+ animated: true,
94
+ viewPosition: 0
95
+ });
96
+ }, 100);
97
+ }, []);
98
+ (0, _react.useEffect)(() => {
99
+ model.reinitializePlayer();
100
+ return () => model.cleanup();
101
+ }, [model]);
102
+ (0, _react.useEffect)(() => {
103
+ const isLastAttemptsWithoutDrowing = !answers[answers.length - 1].drawing;
104
+ if (answers.length > 0 && isLastAttemptsWithoutDrowing) {
105
+ model.dropdown.setExpanded(true);
106
+ } else {
107
+ model.dropdown.setExpanded(false);
108
+ }
109
+ model.resetPlayer();
110
+ }, [problemId]);
111
+ (0, _react.useEffect)(() => {
112
+ if (answersRef.current.some(answer => answer.audioFileId)) {
113
+ model.initializeWithAudios(answersRef.current);
114
+ model.loader.loadAllTranscripts();
115
+ }
116
+ }, [model, answersKey]);
117
+ (0, _react.useEffect)(() => {
118
+ model.stopAudio();
119
+ }, [activeAttempt]);
120
+ (0, _react.useEffect)(() => {
121
+ const allAttempts = model.getAllAttempts();
122
+ setAttempts(allAttempts);
123
+ }, [answersKey, transcriptsLoaded, currentAttempt, model]);
124
+ (0, _react.useEffect)(() => {
125
+ if (isDropdownExpanded && activeAttempt !== null) {
126
+ setTimeout(() => {
127
+ scrollToAttempt(activeAttempt);
128
+ }, 500);
129
+ }
130
+ }, [isDropdownExpanded, answersKey]);
131
+ const renderItem = (0, _react.useCallback)(({
132
+ item
133
+ }) => {
134
+ const isLoading = model.loader.isTranscriptLoading(item.attemptNumber);
135
+ const transcript = model.loader.getTranscript(item.attemptNumber);
136
+ const isActive = activeAttempt === item.attemptNumber;
137
+ return /*#__PURE__*/(0, _jsxRuntime.jsx)(_VoiceTranscriptionsDropdownItem.VoiceTranscriptionsDropdownItem, {
138
+ isLoading: isActive && isLoading,
139
+ attempt: item.attemptNumber,
140
+ content: transcript && transcript !== _constants.NO_AUDIO_BE_MESSAGE ? transcript : t('voice.transcriptNotAvailable'),
141
+ isActive: isActive,
142
+ onToggle: handleItemToggle,
143
+ scrollToAttempt: scrollToAttempt
144
+ });
145
+ }, [model, activeAttempt, t, handleItemToggle, scrollToAttempt]);
146
+ return /*#__PURE__*/(0, _jsxRuntime.jsxs)(_reactNativeReanimated.default.View, {
147
+ style: [styles.container, style],
148
+ children: [/*#__PURE__*/(0, _jsxRuntime.jsxs)(_reactNative.View, {
149
+ style: styles.header,
150
+ children: [/*#__PURE__*/(0, _jsxRuntime.jsx)(_reactNativeUi.Typography, {
151
+ style: styles.title,
152
+ variant: "h7",
153
+ children: t('voice.transcriptions')
154
+ }), hasActiveTranscript && /*#__PURE__*/(0, _jsxRuntime.jsx)(_reactNativeReanimated.default.View, {
155
+ entering: _reactNativeReanimated.FadeIn.duration(120),
156
+ exiting: _reactNativeReanimated.FadeOut.duration(120),
157
+ children: /*#__PURE__*/(0, _jsxRuntime.jsx)(_PlayButton.PlayButton, {
158
+ state: playButtonState,
159
+ onPress: handlePlayPress,
160
+ activityIndicatorColor: _reactNativeUi.COLORS.NEUTRAL_1
161
+ })
162
+ })]
163
+ }), /*#__PURE__*/(0, _jsxRuntime.jsx)(_reactNativeReanimated.default.View, {
164
+ style: [listAnimatedStyle, {
165
+ overflow: 'hidden'
166
+ }],
167
+ children: /*#__PURE__*/(0, _jsxRuntime.jsx)(_reactNative.View, {
168
+ onLayout: onListLayout,
169
+ style: styles.listContainer,
170
+ children: _reactNativeUi.IS_WEB ? /*#__PURE__*/(0, _jsxRuntime.jsx)(_reactNativeUi.ScrollableListScrollView, {
171
+ bounces: false,
172
+ ref: scrollViewRef,
173
+ hideShadow: true,
174
+ style: styles.list,
175
+ contentContainerStyle: styles.listContent,
176
+ children: attempts.map(item => /*#__PURE__*/(0, _jsxRuntime.jsx)(_reactNative.View, {
177
+ onLayout: e => handleItemLayout(item._id, e),
178
+ children: renderItem({
179
+ item
180
+ })
181
+ }, item._id))
182
+ }) : /*#__PURE__*/(0, _jsxRuntime.jsx)(_reactNativeUi.ScrollableList, {
183
+ bounces: false,
184
+ ref: scrollRef,
185
+ hideShadow: true,
186
+ data: attempts,
187
+ keyExtractor: item => item._id,
188
+ onScrollToIndexFailed: handleScrollToIndexFailed,
189
+ renderItem: renderItem,
190
+ contentContainerStyle: styles.listContent
191
+ })
192
+ })
193
+ }), /*#__PURE__*/(0, _jsxRuntime.jsx)(AnimatedTouchableOpacity, {
194
+ style: [styles.expandButton, iconAnimatedStyle],
195
+ onPress: () => model.dropdown.toggleExpand(),
196
+ children: /*#__PURE__*/(0, _jsxRuntime.jsx)(_reactNativeUi.CaretDownIcon, {
197
+ size: 22
198
+ })
199
+ })]
200
+ });
201
+ };
202
+ exports.VoiceTranscriptionsDropdown = VoiceTranscriptionsDropdown;
203
+ const styles = _reactNative.StyleSheet.create({
204
+ container: {
205
+ position: 'absolute',
206
+ top: 56,
207
+ left: 8,
208
+ width: 222,
209
+ maxHeight: 405,
210
+ minHeight: 51,
211
+ padding: 4,
212
+ boxShadow: '0px 1px 3px 0px rgba(51, 51, 51, 0.25)',
213
+ borderRadius: 12,
214
+ backgroundColor: _reactNativeUi.COLORS.NEUTRAL_1,
215
+ overflow: 'hidden'
216
+ },
217
+ header: {
218
+ flexDirection: 'row',
219
+ justifyContent: 'space-between',
220
+ alignItems: 'center',
221
+ padding: 4,
222
+ marginBottom: 4,
223
+ height: 32
224
+ },
225
+ title: {
226
+ color: _reactNativeUi.COLORS.NEUTRAL_9,
227
+ marginLeft: 4
228
+ },
229
+ list: {
230
+ flex: 1
231
+ },
232
+ expandButton: {
233
+ justifyContent: 'center',
234
+ alignItems: 'center'
235
+ },
236
+ listContainer: {
237
+ position: 'absolute',
238
+ maxHeight: _constants.DROPDOWN_MAX_CONTENT_HEIGHT,
239
+ width: '100%'
240
+ },
241
+ listContent: {
242
+ paddingHorizontal: 4
243
+ }
244
+ });
245
+ //# sourceMappingURL=VoiceTranscriptionsDropdown.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"names":["_reactNativeUi","require","_effectorReact","_react","_interopRequireWildcard","_reactNative","_reactNativeReanimated","_useVoiceTranscriptionsDropdown","_index","_VoiceTranscriptionsDropdownItem","_constants","_i18n","_PlayButton","_helpers","_jsxRuntime","_getRequireWildcardCache","e","WeakMap","r","t","__esModule","default","has","get","n","__proto__","a","Object","defineProperty","getOwnPropertyDescriptor","u","hasOwnProperty","call","i","set","AnimatedTouchableOpacity","Animated","createAnimatedComponent","TouchableOpacity","VoiceTranscriptionsDropdown","style","model","answers","attemptOffset","onAttemptOffsetChange","attemptsCount","problemId","attempts","setAttempts","useState","scrollRef","useRef","scrollViewRef","itemLayoutsRef","Map","answersRef","current","useText","currentAttempt","transcriptsLoaded","playerState","isDropdownExpanded","useUnit","$currentAttempt","loader","$transcriptsLoaded","$playerState","dropdown","$isExpanded","activeAttempt","getActiveAttempt","answersKey","useMemo","map","_id","audioFileId","join","hasActiveTranscript","undefined","playButtonState","isActive","PlayerState","IDLE","isLoading","LOADING","status","getAudioStatus","listAnimatedStyle","iconAnimatedStyle","onListLayout","useVoiceTranscriptionsDropdown","handleItemLayout","useCallback","id","event","nativeEvent","layout","y","scrollToAttempt","attemptNumber","IS_WEB","item","find","scrollTo","animated","index","findIndex","scrollToIndex","viewPosition","handleItemToggle","attempt","handlePlayPress","togglePlayPause","handleScrollToIndexFailed","info","setTimeout","useEffect","reinitializePlayer","cleanup","isLastAttemptsWithoutDrowing","length","drawing","setExpanded","resetPlayer","some","answer","initializeWithAudios","loadAllTranscripts","stopAudio","allAttempts","getAllAttempts","renderItem","isTranscriptLoading","transcript","getTranscript","jsx","VoiceTranscriptionsDropdownItem","content","NO_AUDIO_BE_MESSAGE","onToggle","jsxs","View","styles","container","children","header","Typography","title","variant","entering","FadeIn","duration","exiting","FadeOut","PlayButton","state","onPress","activityIndicatorColor","COLORS","NEUTRAL_1","overflow","onLayout","listContainer","ScrollableListScrollView","bounces","ref","hideShadow","list","contentContainerStyle","listContent","ScrollableList","data","keyExtractor","onScrollToIndexFailed","expandButton","toggleExpand","CaretDownIcon","size","exports","StyleSheet","create","position","top","left","width","maxHeight","minHeight","padding","boxShadow","borderRadius","backgroundColor","flexDirection","justifyContent","alignItems","marginBottom","height","color","NEUTRAL_9","marginLeft","flex","DROPDOWN_MAX_CONTENT_HEIGHT","paddingHorizontal"],"sourceRoot":"../../../../../../src","sources":["features/voice/playing/components/VoiceTranscriptionsDropdown.tsx"],"mappings":";;;;;;AAAA,IAAAA,cAAA,GAAAC,OAAA;AAQA,IAAAC,cAAA,GAAAD,OAAA;AACA,IAAAE,MAAA,GAAAC,uBAAA,CAAAH,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IACbC,OAAO,EAAE,CAAC;IACVC,SAAS,EAAE,wCAAwC;IACnDC,YAAY,EAAE,EAAE;IAChBC,eAAe,EAAEhC,qBAAM,CAACC,SAAS;IACjCC,QAAQ,EAAE;EACZ,CAAC;EACDf,MAAM,EAAE;IACN8C,aAAa,EAAE,KAAK;IACpBC,cAAc,EAAE,eAAe;IAC/BC,UAAU,EAAE,QAAQ;IACpBN,OAAO,EAAE,CAAC;IACVO,YAAY,EAAE,CAAC;IACfC,MAAM,EAAE;EACV,CAAC;EACDhD,KAAK,EAAE;IACLiD,KAAK,EAAEtC,qBAAM,CAACuC,SAAS;IACvBC,UAAU,EAAE;EACd,CAAC;EACD/B,IAAI,EAAE;IAAEgC,IAAI,EAAE;EAAE,CAAC;EACjBzB,YAAY,EAAE;IACZkB,cAAc,EAAE,QAAQ;IACxBC,UAAU,EAAE;EACd,CAAC;EACD/B,aAAa,EAAE;IACbmB,QAAQ,EAAE,UAAU;IACpBI,SAAS,EAAEe,sCAA2B;IACtChB,KAAK,EAAE;EACT,CAAC;EACDf,WAAW,EAAE;IACXgC,iBAAiB,EAAE;EACrB;AACF,CAAC,CAAC","ignoreList":[]}
@@ -0,0 +1,109 @@
1
+ "use strict";
2
+
3
+ Object.defineProperty(exports, "__esModule", {
4
+ value: true
5
+ });
6
+ exports.VoiceTranscriptionsDropdownItem = void 0;
7
+ var _reactNative = require("react-native");
8
+ var _react = _interopRequireWildcard(require("react"));
9
+ var _reactNativeUi = require("@magmamath/react-native-ui");
10
+ var _reactNativeReanimated = _interopRequireWildcard(require("react-native-reanimated"));
11
+ var _useVoiceTranscriptionsDropdownItemAnimation = require("../hooks/useVoiceTranscriptionsDropdownItemAnimation.js");
12
+ var _i18n = require("../../../../i18n/i18n.js");
13
+ var _jsxRuntime = require("react/jsx-runtime");
14
+ 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); }
15
+ 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; }
16
+ const VoiceTranscriptionsDropdownItem = exports.VoiceTranscriptionsDropdownItem = /*#__PURE__*/(0, _react.memo)(({
17
+ attempt,
18
+ content,
19
+ isActive,
20
+ isLoading,
21
+ onToggle,
22
+ scrollToAttempt
23
+ }) => {
24
+ const t = (0, _i18n.useText)();
25
+ const isActiveRef = (0, _react.useRef)(isActive);
26
+ isActiveRef.current = isActive;
27
+ const {
28
+ contentAnimatedStyle,
29
+ onLayout,
30
+ progress
31
+ } = (0, _useVoiceTranscriptionsDropdownItemAnimation.useVoiceTranscriptionsDropdownItemAnimation)(isActive);
32
+ const handleScrollToAttempt = (0, _react.useCallback)(attemptNumber => {
33
+ if (!isActiveRef.current) return;
34
+ scrollToAttempt(attemptNumber);
35
+ }, [scrollToAttempt]);
36
+ (0, _reactNativeReanimated.useAnimatedReaction)(() => progress.value, progress => {
37
+ if (progress === 1 && isActive) {
38
+ (0, _reactNativeReanimated.runOnJS)(handleScrollToAttempt)(attempt);
39
+ }
40
+ }, [progress, attempt, isActive]);
41
+ return /*#__PURE__*/(0, _jsxRuntime.jsxs)(_reactNative.View, {
42
+ style: styles.container,
43
+ children: [/*#__PURE__*/(0, _jsxRuntime.jsx)(_reactNative.Pressable, {
44
+ disabled: isActive,
45
+ style: styles.itemHeader,
46
+ onPress: () => onToggle(attempt),
47
+ children: /*#__PURE__*/(0, _jsxRuntime.jsx)(_reactNativeUi.Button, {
48
+ onPress: () => !isActive && onToggle(attempt),
49
+ size: _reactNativeUi.ButtonSize.SMALL,
50
+ variant: _reactNativeUi.ButtonVariant.TERTIARY,
51
+ style: {
52
+ text: {
53
+ textTransform: 'uppercase',
54
+ color: isActive ? _reactNativeUi.COLORS.NEUTRAL_9 : _reactNativeUi.COLORS.NEUTRAL_7
55
+ }
56
+ },
57
+ children: t('voice.attempt', {
58
+ number: String(attempt)
59
+ })
60
+ })
61
+ }), isLoading ? /*#__PURE__*/(0, _jsxRuntime.jsx)(_reactNative.View, {
62
+ style: styles.loaderContainer,
63
+ children: /*#__PURE__*/(0, _jsxRuntime.jsx)(_reactNativeUi.Loader, {
64
+ size: _reactNativeUi.LoaderSize.SMALL,
65
+ color: _reactNativeUi.LoaderColor.BLUE
66
+ })
67
+ }) : /*#__PURE__*/(0, _jsxRuntime.jsx)(_reactNativeReanimated.default.View, {
68
+ style: contentAnimatedStyle,
69
+ children: /*#__PURE__*/(0, _jsxRuntime.jsx)(_reactNative.View, {
70
+ onLayout: onLayout,
71
+ style: styles.contentWrapper,
72
+ children: /*#__PURE__*/(0, _jsxRuntime.jsx)(_reactNativeUi.Typography, {
73
+ variant: "h8",
74
+ style: [styles.itemContent, {
75
+ color: isActive ? _reactNativeUi.COLORS.NEUTRAL_9 : _reactNativeUi.COLORS.NEUTRAL_7
76
+ }],
77
+ children: content
78
+ })
79
+ })
80
+ })]
81
+ });
82
+ });
83
+ const styles = _reactNative.StyleSheet.create({
84
+ container: {
85
+ borderTopWidth: 1,
86
+ borderColor: _reactNativeUi.COLORS.NEUTRAL_3
87
+ },
88
+ itemHeader: {
89
+ flexDirection: 'row',
90
+ justifyContent: 'space-between',
91
+ alignItems: 'center',
92
+ width: '100%',
93
+ paddingVertical: 8
94
+ },
95
+ itemContent: {
96
+ paddingHorizontal: 8
97
+ },
98
+ contentWrapper: {
99
+ width: '100%',
100
+ position: 'absolute'
101
+ },
102
+ loaderContainer: {
103
+ justifyContent: 'center',
104
+ alignItems: 'center',
105
+ paddingTop: 4,
106
+ paddingBottom: 8
107
+ }
108
+ });
109
+ //# sourceMappingURL=VoiceTranscriptionsDropdownItem.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"names":["_reactNative","require","_react","_interopRequireWildcard","_reactNativeUi","_reactNativeReanimated","_useVoiceTranscriptionsDropdownItemAnimation","_i18n","_jsxRuntime","_getRequireWildcardCache","e","WeakMap","r","t","__esModule","default","has","get","n","__proto__","a","Object","defineProperty","getOwnPropertyDescriptor","u","hasOwnProperty","call","i","set","VoiceTranscriptionsDropdownItem","exports","memo","attempt","content","isActive","isLoading","onToggle","scrollToAttempt","useText","isActiveRef","useRef","current","contentAnimatedStyle","onLayout","progress","useVoiceTranscriptionsDropdownItemAnimation","handleScrollToAttempt","useCallback","attemptNumber","useAnimatedReaction","value","runOnJS","jsxs","View","style","styles","container","children","jsx","Pressable","disabled","itemHeader","onPress","Button","size","ButtonSize","SMALL","variant","ButtonVariant","TERTIARY","text","textTransform","color","COLORS","NEUTRAL_9","NEUTRAL_7","number","String","loaderContainer","Loader","LoaderSize","LoaderColor","BLUE","contentWrapper","Typography","itemContent","StyleSheet","create","borderTopWidth","borderColor","NEUTRAL_3","flexDirection","justifyContent","alignItems","width","paddingVertical","paddingHorizontal","position","paddingTop","paddingBottom"],"sourceRoot":"../../../../../../src","sources":["features/voice/playing/components/VoiceTranscriptionsDropdownItem.tsx"],"mappings":";;;;;;AAAA,IAAAA,YAAA,GAAAC,OAAA;AACA,IAAAC,MAAA,GAAAC,uBAAA,CAAAF,OAAA;AACA,IAAAG,cAAA,GAAAH,OAAA;AAUA,IAAAI,sBAAA,GAAAF,uBAAA,CAAAF,OAAA;AACA,IAAAK,4CAAA,GAAAL,OAAA;AACA,IAAAM,KAAA,GAAAN,OAAA;AAA+C,IAAAO,WAAA,GAAAP,OAAA;AAAA,SAAAQ,yBAAAC,CAAA,6BAAAC,OAAA,mBAAAC,CAAA,OAAAD,OAAA,IAAAE,CAAA,OAAAF,OAAA,YAAAF,wBAAA,YAAAA,CAAAC,CAAA,WAAAA,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IACV8B,aAAa,EAAE,KAAK;IACpBC,cAAc,EAAE,eAAe;IAC/BC,UAAU,EAAE,QAAQ;IACpBC,KAAK,EAAE,MAAM;IACbC,eAAe,EAAE;EACnB,CAAC;EACDV,WAAW,EAAE;IACXW,iBAAiB,EAAE;EACrB,CAAC;EACDb,cAAc,EAAE;IACdW,KAAK,EAAE,MAAM;IACbG,QAAQ,EAAE;EACZ,CAAC;EACDnB,eAAe,EAAE;IACfc,cAAc,EAAE,QAAQ;IACxBC,UAAU,EAAE,QAAQ;IACpBK,UAAU,EAAE,CAAC;IACbC,aAAa,EAAE;EACjB;AACF,CAAC,CAAC","ignoreList":[]}
@@ -3,12 +3,12 @@
3
3
  Object.defineProperty(exports, "__esModule", {
4
4
  value: true
5
5
  });
6
- exports.useVoiceTranscriptionDropdown = void 0;
6
+ exports.useVoiceTranscriptionsDropdown = void 0;
7
7
  var _react = require("react");
8
8
  var _effectorReact = require("effector-react");
9
9
  var _reactNativeReanimated = require("react-native-reanimated");
10
10
  var _constants = require("../../constants.js");
11
- const useVoiceTranscriptionDropdown = model => {
11
+ const useVoiceTranscriptionsDropdown = model => {
12
12
  const isExpanded = (0, _effectorReact.useUnit)(model.$isExpanded);
13
13
  const contentHeight = (0, _reactNativeReanimated.useSharedValue)(0);
14
14
  const animationProgress = (0, _reactNativeReanimated.useSharedValue)(isExpanded ? 1 : 0);
@@ -46,5 +46,5 @@ const useVoiceTranscriptionDropdown = model => {
46
46
  onListLayout
47
47
  };
48
48
  };
49
- exports.useVoiceTranscriptionDropdown = useVoiceTranscriptionDropdown;
50
- //# sourceMappingURL=useVoiceTranscription.js.map
49
+ exports.useVoiceTranscriptionsDropdown = useVoiceTranscriptionsDropdown;
50
+ //# sourceMappingURL=useVoiceTranscriptionsDropdown.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"names":["_react","require","_effectorReact","_reactNativeReanimated","_constants","useVoiceTranscriptionsDropdown","model","isExpanded","useUnit","$isExpanded","contentHeight","useSharedValue","animationProgress","onListLayout","event","measuredHeight","nativeEvent","layout","height","value","listAnimatedStyle","useAnimatedStyle","interpolate","DROPDOWN_MAX_CONTENT_HEIGHT","opacity","iconAnimatedStyle","rotation","transform","rotate","useEffect","withTiming","duration","exports"],"sourceRoot":"../../../../../../src","sources":["features/voice/playing/hooks/useVoiceTranscriptionsDropdown.ts"],"mappings":";;;;;;AAAA,IAAAA,MAAA,GAAAC,OAAA;AACA,IAAAC,cAAA,GAAAD,OAAA;AACA,IAAAE,sBAAA,GAAAF,OAAA;AAEA,IAAAG,UAAA,GAAAH,OAAA;AAGO,MAAMI,8BAA8B,GAAIC,KAAuC,IAAK;EACzF,MAAMC,UAAU,GAAG,IAAAC,sBAAO,EAACF,KAAK,CAACG,WAAW,CAAC;EAE7C,MAAMC,aAAa,GAAG,IAAAC,qCAAc,EAAC,CAAC,CAAC;EACvC,MAAMC,iBAAiB,GAAG,IAAAD,qCAAc,EAACJ,UAAU,GAAG,CAAC,GAAG,CAAC,CAAC;EAE5D,MAAMM,YAAY,GAAIC,KAAwB,IAAK;IACjD,MAAMC,cAAc,GAAGD,KAAK,CAACE,WAAW,CAACC,MAAM,CAACC,MAAM;IACtD,IAAIH,cAAc,GAAG,CAAC,EAAE;MACtBL,aAAa,CAACS,KAAK,GAAGJ,cAAc;IACtC;EACF,CAAC;EAED,MAAMK,iBAAiB,GAAG,IAAAC,uCAAgB,EAAC,MAAM;IAC/C,MAAMH,MAAM,GAAG,IAAAI,kCAAW,EACxBV,iBAAiB,CAACO,KAAK,EACvB,CAAC,CAAC,EAAE,CAAC,CAAC,EACN,CAAC,CAAC,EAAET,aAAa,CAACS,KAAK,IAAII,sCAA2B,CACxD,CAAC;IAED,MAAMC,OAAO,GAAG,IAAAF,kCAAW,EAACV,iBAAiB,CAACO,KAAK,EAAE,CAAC,CAAC,EAAE,GAAG,EAAE,CAAC,CAAC,EAAE,CAAC,CAAC,EAAE,CAAC,EAAE,CAAC,CAAC,CAAC;IAE5E,OAAO;MACLD,MAAM;MACNM;IACF,CAAC;EACH,CAAC,EAAE,CAACZ,iBAAiB,EAAEF,aAAa,CAAC,CAAC;EAEtC,MAAMe,iBAAiB,GAAG,IAAAJ,uCAAgB,EAAC,MAAM;IAC/C,MAAMK,QAAQ,GAAG,IAAAJ,kCAAW,EAACV,iBAAiB,CAACO,KAAK,EAAE,CAAC,CAAC,EAAE,CAAC,CAAC,EAAE,CAAC,CAAC,EAAE,GAAG,CAAC,CAAC;IAEvE,OAAO;MACLQ,SAAS,EAAE,CAAC;QAAEC,MAAM,EAAE,GAAGF,QAAQ;MAAM,CAAC;IAC1C,CAAC;EACH,CAAC,EAAE,CAACd,iBAAiB,CAAC,CAAC;EAEvB,IAAAiB,gBAAS,EAAC,MAAM;IACdjB,iBAAiB,CAACO,KAAK,GAAG,IAAAW,iCAAU,EAACvB,UAAU,GAAG,CAAC,GAAG,CAAC,EAAE;MAAEwB,QAAQ,EAAE;IAAI,CAAC,CAAC;EAC7E,CAAC,EAAE,CAACxB,UAAU,EAAEK,iBAAiB,CAAC,CAAC;EAEnC,OAAO;IACLL,UAAU;IACVa,iBAAiB;IACjBK,iBAAiB;IACjBZ;EACF,CAAC;AACH,CAAC;AAAAmB,OAAA,CAAA3B,8BAAA,GAAAA,8BAAA","ignoreList":[]}
@@ -0,0 +1,34 @@
1
+ "use strict";
2
+
3
+ Object.defineProperty(exports, "__esModule", {
4
+ value: true
5
+ });
6
+ exports.useVoiceTranscriptionsDropdownItemAnimation = void 0;
7
+ var _react = require("react");
8
+ var _reactNativeReanimated = require("react-native-reanimated");
9
+ const useVoiceTranscriptionsDropdownItemAnimation = isExpanded => {
10
+ const height = (0, _reactNativeReanimated.useSharedValue)(0);
11
+ const progress = (0, _reactNativeReanimated.useSharedValue)(isExpanded ? 1 : 0);
12
+ (0, _react.useEffect)(() => {
13
+ progress.value = (0, _reactNativeReanimated.withTiming)(isExpanded ? 1 : 0);
14
+ }, [isExpanded, progress]);
15
+ const derivedHeight = (0, _reactNativeReanimated.useDerivedValue)(() => height.value * progress.value, [height, progress]);
16
+ const contentAnimatedStyle = (0, _reactNativeReanimated.useAnimatedStyle)(() => {
17
+ const opacity = (0, _reactNativeReanimated.interpolate)(progress.value, [0, 0.3, 1], [0, 0, 1]);
18
+ return {
19
+ height: derivedHeight.value,
20
+ opacity,
21
+ overflow: 'hidden'
22
+ };
23
+ }, [progress, derivedHeight]);
24
+ const onLayout = event => {
25
+ height.value = event.nativeEvent.layout.height;
26
+ };
27
+ return {
28
+ contentAnimatedStyle,
29
+ onLayout,
30
+ progress
31
+ };
32
+ };
33
+ exports.useVoiceTranscriptionsDropdownItemAnimation = useVoiceTranscriptionsDropdownItemAnimation;
34
+ //# sourceMappingURL=useVoiceTranscriptionsDropdownItemAnimation.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"names":["_react","require","_reactNativeReanimated","useVoiceTranscriptionsDropdownItemAnimation","isExpanded","height","useSharedValue","progress","useEffect","value","withTiming","derivedHeight","useDerivedValue","contentAnimatedStyle","useAnimatedStyle","opacity","interpolate","overflow","onLayout","event","nativeEvent","layout","exports"],"sourceRoot":"../../../../../../src","sources":["features/voice/playing/hooks/useVoiceTranscriptionsDropdownItemAnimation.ts"],"mappings":";;;;;;AAAA,IAAAA,MAAA,GAAAC,OAAA;AAEA,IAAAC,sBAAA,GAAAD,OAAA;AAQO,MAAME,2CAA2C,GAAIC,UAAmB,IAAK;EAClF,MAAMC,MAAM,GAAG,IAAAC,qCAAc,EAAC,CAAC,CAAC;EAChC,MAAMC,QAAQ,GAAG,IAAAD,qCAAc,EAACF,UAAU,GAAG,CAAC,GAAG,CAAC,CAAC;EAEnD,IAAAI,gBAAS,EAAC,MAAM;IACdD,QAAQ,CAACE,KAAK,GAAG,IAAAC,iCAAU,EAACN,UAAU,GAAG,CAAC,GAAG,CAAC,CAAC;EACjD,CAAC,EAAE,CAACA,UAAU,EAAEG,QAAQ,CAAC,CAAC;EAE1B,MAAMI,aAAa,GAAG,IAAAC,sCAAe,EAAC,MAAMP,MAAM,CAACI,KAAK,GAAGF,QAAQ,CAACE,KAAK,EAAE,CAACJ,MAAM,EAAEE,QAAQ,CAAC,CAAC;EAE9F,MAAMM,oBAAoB,GAAG,IAAAC,uCAAgB,EAAC,MAAM;IAClD,MAAMC,OAAO,GAAG,IAAAC,kCAAW,EAACT,QAAQ,CAACE,KAAK,EAAE,CAAC,CAAC,EAAE,GAAG,EAAE,CAAC,CAAC,EAAE,CAAC,CAAC,EAAE,CAAC,EAAE,CAAC,CAAC,CAAC;IAEnE,OAAO;MACLJ,MAAM,EAAEM,aAAa,CAACF,KAAK;MAC3BM,OAAO;MACPE,QAAQ,EAAE;IACZ,CAAC;EACH,CAAC,EAAE,CAACV,QAAQ,EAAEI,aAAa,CAAC,CAAC;EAE7B,MAAMO,QAAQ,GAAIC,KAAwB,IAAK;IAC7Cd,MAAM,CAACI,KAAK,GAAGU,KAAK,CAACC,WAAW,CAACC,MAAM,CAAChB,MAAM;EAChD,CAAC;EAED,OAAO;IACLQ,oBAAoB;IACpBK,QAAQ;IACRX;EACF,CAAC;AACH,CAAC;AAAAe,OAAA,CAAAnB,2CAAA,GAAAA,2CAAA","ignoreList":[]}
@@ -18,23 +18,16 @@ class TranscriptionsDownloaderModel {
18
18
  for (let attempt = 0; attempt < _constants.TRANSCRIPT_MAX_RETRIES; attempt++) {
19
19
  const response = await this.api.getAudioFileTranscript(audioFileId);
20
20
  if (response.status === 'completed') {
21
- return {
22
- text: response.text,
23
- language: response.language
24
- };
21
+ return response.text;
25
22
  }
26
23
  if (response.status === 'failed') {
27
- return {
28
- text: _constants.NO_AUDIO_BE_MESSAGE
29
- };
24
+ return _constants.NO_AUDIO_BE_MESSAGE;
30
25
  }
31
26
  if (attempt < _constants.TRANSCRIPT_MAX_RETRIES - 1) {
32
27
  await new Promise(resolve => setTimeout(resolve, _constants.TRANSCRIPT_RETRY_INTERVAL_MS));
33
28
  }
34
29
  }
35
- return {
36
- text: _constants.NO_AUDIO_BE_MESSAGE
37
- };
30
+ return _constants.NO_AUDIO_BE_MESSAGE;
38
31
  }
39
32
  loadAllTranscripts = (0, _effector.createEffect)(async () => {
40
33
  const attempts = this.collection.getAll();
@@ -46,13 +39,9 @@ class TranscriptionsDownloaderModel {
46
39
  transcriptLoading: true
47
40
  });
48
41
  try {
49
- const {
50
- text,
51
- language
52
- } = await this.fetchTranscriptWithRetry(item.audioFileId);
42
+ const text = await this.fetchTranscriptWithRetry(item.audioFileId);
53
43
  this.collection.update(item.attemptNumber, {
54
44
  transcript: text,
55
- transcriptLanguage: language,
56
45
  transcriptLoading: false,
57
46
  transcriptError: undefined
58
47
  });
@@ -69,9 +58,6 @@ class TranscriptionsDownloaderModel {
69
58
  getTranscript(attemptNumber) {
70
59
  return this.collection.get(attemptNumber)?.transcript;
71
60
  }
72
- getTranscriptLanguage(attemptNumber) {
73
- return this.collection.get(attemptNumber)?.transcriptLanguage;
74
- }
75
61
  isTranscriptLoading(attemptNumber) {
76
62
  return this.collection.get(attemptNumber)?.transcriptLoading || false;
77
63
  }
@@ -1 +1 @@
1
- {"version":3,"names":["_effector","require","_constants","TranscriptionsDownloaderModel","setTranscriptsLoaded","createEvent","reset","$transcriptsLoaded","restore","constructor","collection","api","fetchTranscriptWithRetry","audioFileId","attempt","TRANSCRIPT_MAX_RETRIES","response","getAudioFileTranscript","status","text","language","NO_AUDIO_BE_MESSAGE","Promise","resolve","setTimeout","TRANSCRIPT_RETRY_INTERVAL_MS","loadAllTranscripts","createEffect","attempts","getAll","transcriptPromises","map","item","hasTranscript","attemptNumber","update","transcriptLoading","transcript","transcriptLanguage","transcriptError","undefined","error","Error","message","all","getTranscript","get","getTranscriptLanguage","isTranscriptLoading","exports"],"sourceRoot":"../../../../../../src","sources":["features/voice/playing/model/TranscriptionsDownloaderModel.ts"],"mappings":";;;;;;AAAA,IAAAA,SAAA,GAAAC,OAAA;AAGA,IAAAC,UAAA,GAAAD,OAAA;AAMO,MAAME,6BAA6B,CAAC;EAIzBC,oBAAoB,GAA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,KAAK;EACvE;AACF;AAACa,OAAA,CAAA9C,6BAAA,GAAAA,6BAAA","ignoreList":[]}
1
+ {"version":3,"names":["_effector","require","_constants","TranscriptionsDownloaderModel","setTranscriptsLoaded","createEvent","reset","$transcriptsLoaded","restore","constructor","collection","api","fetchTranscriptWithRetry","audioFileId","attempt","TRANSCRIPT_MAX_RETRIES","response","getAudioFileTranscript","status","text","NO_AUDIO_BE_MESSAGE","Promise","resolve","setTimeout","TRANSCRIPT_RETRY_INTERVAL_MS","loadAllTranscripts","createEffect","attempts","getAll","transcriptPromises","map","item","hasTranscript","attemptNumber","update","transcriptLoading","transcript","transcriptError","undefined","error","Error","message","all","getTranscript","get","isTranscriptLoading","exports"],"sourceRoot":"../../../../../../src","sources":["features/voice/playing/model/TranscriptionsDownloaderModel.ts"],"mappings":";;;;;;AAAA,IAAAA,SAAA,GAAAC,OAAA;AAGA,IAAAC,UAAA,GAAAD,OAAA;AAMO,MAAME,6BAA6B,CAAC;EAIzBC,oBAAoB,GAAG,IAAAC,qBAAW,EAAU,CAAC;EAC7CC,KAAK,GAAG,IAAAD,qBAAW,EAAC,CAAC;EAErBE,kBAAkB,GAAG,IAAAC,iBAAO,EAAC,IAAI,CAACJ,oBAAoB,EAAE,KAAK,CAAC,CAACE,KAAK,CAAC,IAAI,CAACA,KAAK,CAAC;EAEhGG,WAAWA,CAACC,UAAyC,EAAEC,GAAmB,EAAE;IAC1E,IAAI,CAACD,UAAU,GAAGA,UAAU;IAC5B,IAAI,CAACC,GAAG,GAAGA,GAAG;EAChB;EAEA,MAAcC,wBAAwBA,CAACC,WAAmB,EAAmB;IAC3E,KAAK,IAAIC,OAAO,GAAG,CAAC,EAAEA,OAAO,GAAGC,iCAAsB,EAAED,OAAO,EAAE,EAAE;MACjE,MAAME,QAAQ,GAAG,MAAM,IAAI,CAACL,GAAG,CAACM,sBAAsB,CAACJ,WAAW,CAAC;MAEnE,IAAIG,QAAQ,CAACE,MAAM,KAAK,WAAW,EAAE;QACnC,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,CAACb,kBAAkB,CAAC;IACrC,IAAI,CAACzB,oBAAoB,CAAC,IAAI,CAAC;EACjC,CAAC,CAAC;EAEKuC,aAAaA,CAACV,aAAqB,EAAsB;IAC9D,OAAO,IAAI,CAACvB,UAAU,CAACkC,GAAG,CAACX,aAAa,CAAC,EAAEG,UAAU;EACvD;EAEOS,mBAAmBA,CAACZ,aAAqB,EAAW;IACzD,OAAO,IAAI,CAACvB,UAAU,CAACkC,GAAG,CAACX,aAAa,CAAC,EAAEE,iBAAiB,IAAI,KAAK;EACvE;AACF;AAACW,OAAA,CAAA3C,6BAAA,GAAAA,6BAAA","ignoreList":[]}
@@ -7,14 +7,13 @@ exports.VoicePlayerModel = void 0;
7
7
  var _effector = require("effector");
8
8
  var _VoiceTranscriptionsCollection = require("./VoiceTranscriptionsCollection.js");
9
9
  var _VoiceFileDownloaderModel = require("./VoiceFileDownloader.model.js");
10
- var _VoiceTranscriptionModel = require("./VoiceTranscription.model.js");
11
- var _VoiceTranscriptionTranslationModel = require("./VoiceTranscriptionTranslation.model.js");
10
+ var _VoiceTranscriptionsDropdownModel = require("./VoiceTranscriptionsDropdown.model.js");
12
11
  var _PlayerModel = require("./Player.model.js");
13
12
  var _TranscriptionsDownloaderModel = require("./TranscriptionsDownloaderModel.js");
14
13
  class VoicePlayerModel {
15
14
  collection = new _VoiceTranscriptionsCollection.VoiceTranscriptionsCollection();
16
15
  downloader = new _VoiceFileDownloaderModel.VoiceFileDownloaderModel();
17
- dropdown = new _VoiceTranscriptionModel.VoiceTranscriptionModel();
16
+ dropdown = new _VoiceTranscriptionsDropdownModel.VoiceTranscriptionsDropdownModel();
18
17
  playerModel = new _PlayerModel.PlayerModel();
19
18
  currentPlayingAttempt = null;
20
19
  shouldPreventPlayback = false;
@@ -37,12 +36,10 @@ class VoicePlayerModel {
37
36
  this.currentPlayingAttempt = null;
38
37
  this.setCurrentAttempt(null);
39
38
  this.collection.clear();
40
- this.translation.clearCache();
41
39
  };
42
40
  constructor(params) {
43
41
  this.api = params.api;
44
42
  this.loader = new _TranscriptionsDownloaderModel.TranscriptionsDownloaderModel(this.collection, params.api);
45
- this.translation = new _VoiceTranscriptionTranslationModel.VoiceTranscriptionTranslationModel(this.collection, params.api);
46
43
  this.downloader.setApi(params.api);
47
44
  this.playerModel.playbackFinished.watch(() => {
48
45
  this.currentPlayingAttempt = null;
@@ -202,7 +199,6 @@ class VoicePlayerModel {
202
199
  this.reset();
203
200
  this.loader.reset();
204
201
  this.dropdown.reset();
205
- this.translation.reset();
206
202
  this.playerModel.release();
207
203
  }
208
204
  togglePlayPause = (0, _effector.attach)({
@@ -1 +1 @@
1
- {"version":3,"names":["_effector","require","_VoiceTranscriptionsCollection","_VoiceFileDownloaderModel","_VoiceTranscriptionModel","_VoiceTranscriptionTranslationModel","_PlayerModel","_TranscriptionsDownloaderModel","VoicePlayerModel","collection","VoiceTranscriptionsCollection","downloader","VoiceFileDownloaderModel","dropdown","VoiceTranscriptionModel","playerModel","PlayerModel","currentPlayingAttempt","shouldPreventPlayback","setCurrentAttempt","createEvent","reset","$currentAttempt","restore","$playerState","pauseAudio","pause","stopAudio","abortAllDownloads","stop","resetPlayer","releaseCollectionResources","clear","translation","clearCache","constructor","params","api","loader","TranscriptionsDownloaderModel","VoiceTranscriptionTranslationModel","setApi","playbackFinished","watch","audios","initializeCollectionFromAudios","setupAudioMode","initializeWithAudios","answerAudio","setTranscriptsLoaded","console","warn","forEach","audio","index","attemptNumber","audioFileId","add","_id","hasDrawing","drawing","getAll","item","controller","abortDownload","audioUri","startsWith","URL","revokeObjectURL","e","audioLoading","update","undefined","audioDownloadPromise","handlePlayAttempt","createEffect","get","hasAudio","playAudioFx","setPlayerState","PlayerState","LOADING","collectionItem","downloadPromise","download","abort","result","uri","audioError","IDLE","error","Error","name","message","player","remove","playing","resume","play","isAudioLoading","getAllAttempts","reinitializePlayer","reinitialize","cleanup","release","togglePlayPause","attach","source","mapParams","playerState","effect","PLAYING","exports"],"sourceRoot":"../../../../../../src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WAAW,CAACuF,YAAY,CAAC,CAAC;EACjC;EAEOC,OAAOA,CAAA,EAAG;IACf,IAAI,CAACxE,0BAA0B,CAAC,CAAC;IACjC,IAAI,CAACtB,UAAU,CAACuB,KAAK,CAAC,CAAC;IACvB,IAAI,CAACf,qBAAqB,GAAG,IAAI;IACjC,IAAI,CAACI,KAAK,CAAC,CAAC;IACZ,IAAI,CAACiB,MAAM,CAACjB,KAAK,CAAC,CAAC;IACnB,IAAI,CAACR,QAAQ,CAACQ,KAAK,CAAC,CAAC;IACrB,IAAI,CAACY,WAAW,CAACZ,KAAK,CAAC,CAAC;IACxB,IAAI,CAACN,WAAW,CAACyF,OAAO,CAAC,CAAC;EAC5B;EAEOC,eAAe,GAAG,IAAAC,gBAAM,EAAC;IAC9BC,MAAM,EAAE,IAAI,CAAC5F,WAAW,CAACS,YAAY;IACrCoF,SAAS,EAAEA,CAACrD,aAAqB,EAAEsD,WAAW,MAAM;MAAEtD,aAAa;MAAEsD;IAAY,CAAC,CAAC;IACnFC,MAAM,EAAE,IAAAnC,sBAAY,EAAC,CAAC;MAAEpB,aAAa;MAAEsD;IAAmC,CAAC,KAAK;MAC9E,IAAI,IAAI,CAAC5F,qBAAqB,KAAKsC,aAAa,IAAIsD,WAAW,KAAK7B,wBAAW,CAAC+B,OAAO,EAAE;QACvF,IAAI,CAACtF,UAAU,CAAC,CAAC;MACnB,CAAC,MAAM;QACL,IAAI,CAACiD,iBAAiB,CAACnB,aAAa,CAAC;MACvC;IACF,CAAC;EACH,CAAC,CAAC;AACJ;AAACyD,OAAA,CAAAxG,gBAAA,GAAAA,gBAAA","ignoreList":[]}
1
+ {"version":3,"names":["_effector","require","_VoiceTranscriptionsCollection","_VoiceFileDownloaderModel","_VoiceTranscriptionsDropdownModel","_PlayerModel","_TranscriptionsDownloaderModel","VoicePlayerModel","collection","VoiceTranscriptionsCollection","downloader","VoiceFileDownloaderModel","dropdown","VoiceTranscriptionsDropdownModel","playerModel","PlayerModel","currentPlayingAttempt","shouldPreventPlayback","setCurrentAttempt","createEvent","reset","$currentAttempt","restore","$playerState","pauseAudio","pause","stopAudio","abortAllDownloads","stop","resetPlayer","releaseCollectionResources","clear","constructor","params","api","loader","TranscriptionsDownloaderModel","setApi","playbackFinished","watch","audios","initializeCollectionFromAudios","setupAudioMode","initializeWithAudios","answerAudio","setTranscriptsLoaded","console","warn","forEach","audio","index","attemptNumber","audioFileId","add","_id","hasDrawing","drawing","getAll","item","controller","abortDownload","audioUri","startsWith","URL","revokeObjectURL","e","audioLoading","update","undefined","audioDownloadPromise","handlePlayAttempt","createEffect","get","hasAudio","playAudioFx","setPlayerState","PlayerState","LOADING","collectionItem","downloadPromise","download","abort","result","uri","audioError","IDLE","error","Error","name","message","player","remove","playing","resume","play","isAudioLoading","getAllAttempts","reinitializePlayer","reinitialize","cleanup","release","togglePlayPause","attach","source","mapParams","playerState","effect","PLAYING","exports"],"sourceRoot":"../../../../../../src","sources":["features/voice/playing/model/VoicePlayer.model.ts"],"mappings":";;;;;;AAAA,IAAAA,SAAA,GAAAC,OAAA;AACA,IAAAC,8BAAA,GAAAD,OAAA;AACA,IAAAE,yBAAA,GAAAF,OAAA;AACA,IAAAG,iCAAA,GAAAH,OAAA;AAEA,IAAAI,YAAA,GAAAJ,OAAA;AACA,IAAAK,8BAAA,GAAAL,OAAA;AAWO,MAAMM,gBAAgB,CAAC;EACZC,UAAU,GAAG,IAAIC,4DAA6B,CAAC,CAAC;EAChDC,UAAU,GAAG,IAAIC,kDAAwB,CAAC,CAAC;EAC3CC,QAAQ,GAAG,IAAIC,kEAAgC,CAAC,CAAC;EACjDC,WAAW,GAAG,IAAIC,wBAAW,CAAC,CAAC;EAGvCC,qBAAqB,GAAkB,IAAI;EAC3CC,qBAAqB,GAAG,KAAK;EAErBC,iBAAiB,GAAG,IAAAC,qBAAW,EAAgB,CAAC;EAChDC,KAAK,GAAG,IAAAD,qBAAW,EAAC,CAAC;EAErBE,eAAe,GAAG,IAAAC,iBAAO,EAAC,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