@nualang/nualang-ui-components 0.1.1400 → 0.2.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (953) hide show
  1. package/package.json +1 -1
  2. package/dist/Assignments/AssignmentBotSelection/AssignmentBotSelection.js +0 -278
  3. package/dist/Assignments/AssignmentBotSelection/package.json +0 -6
  4. package/dist/Assignments/AssignmentCard/AssignmentCard.js +0 -297
  5. package/dist/Assignments/AssignmentCard/package.json +0 -6
  6. package/dist/Assignments/AssignmentCardsList/AssignmentCardsList.js +0 -389
  7. package/dist/Assignments/AssignmentCardsList/package.json +0 -6
  8. package/dist/Assignments/AssignmentCourseSelection/AssignmentCourseSelection.js +0 -280
  9. package/dist/Assignments/AssignmentCourseSelection/package.json +0 -6
  10. package/dist/Assignments/AssignmentExerciseSelection/AssignmentExerciseSelection.js +0 -1056
  11. package/dist/Assignments/AssignmentExerciseSelection/package.json +0 -6
  12. package/dist/Assignments/AssignmentExerciseSelector/AssignmentExerciseSelector.js +0 -53
  13. package/dist/Assignments/AssignmentExerciseSelector/package.json +0 -6
  14. package/dist/Assignments/AssignmentPhraseListSelection/AssignmentPhraseListSelection.js +0 -469
  15. package/dist/Assignments/AssignmentPhraseListSelection/package.json +0 -6
  16. package/dist/Assignments/AssignmentRoleplaySelection/AssignmentRoleplaySelection.js +0 -498
  17. package/dist/Assignments/AssignmentRoleplaySelection/package.json +0 -6
  18. package/dist/Assignments/AssignmentSelectExercise/AssignmentSelectExercise.js +0 -113
  19. package/dist/Assignments/CreateAssignmentDialog/CreateAssignmentDialog.js +0 -654
  20. package/dist/Assignments/CreateAssignmentDialog/package.json +0 -6
  21. package/dist/Assignments/SelectAssignmentTypeDialog/SelectAssignmentTypeDialog.js +0 -168
  22. package/dist/Assignments/SelectAssignmentTypeDialog/package.json +0 -6
  23. package/dist/Cards/Avatar/Avatar.js +0 -45
  24. package/dist/Cards/Bot/Bot.js +0 -399
  25. package/dist/Cards/Bot/Bot.test.js +0 -21
  26. package/dist/Cards/Bot/package.json +0 -6
  27. package/dist/Cards/CardElements/CardSubheader/CardSubheader.js +0 -28
  28. package/dist/Cards/CardElements/CardSubheader/package.json +0 -6
  29. package/dist/Cards/CardElements/CardTitle/CardTitle.js +0 -30
  30. package/dist/Cards/CardElements/CardTitle/package.json +0 -6
  31. package/dist/Cards/CardElements/CardVisibility/CardVisibility.js +0 -80
  32. package/dist/Cards/CardElements/CardVisibility/package.json +0 -6
  33. package/dist/Cards/CardElements/index.js +0 -181
  34. package/dist/Cards/Category/Category.js +0 -92
  35. package/dist/Cards/Category/sample.png +0 -0
  36. package/dist/Cards/Classroom/Classroom.js +0 -414
  37. package/dist/Cards/Classroom/Classroom.test.js +0 -30
  38. package/dist/Cards/Classroom/package.json +0 -6
  39. package/dist/Cards/Course/Course.js +0 -704
  40. package/dist/Cards/Course/Course.test.js +0 -30
  41. package/dist/Cards/Course/package.json +0 -6
  42. package/dist/Cards/FeedbackCard/FeedbackCard.js +0 -624
  43. package/dist/Cards/LoadingCard/LoadingCard.js +0 -39
  44. package/dist/Cards/PreviewCard/PreviewCard.js +0 -63
  45. package/dist/Cards/PreviewCard/PreviewCard.test.js +0 -20
  46. package/dist/Cards/RecordingCard/RecordingCard.js +0 -250
  47. package/dist/Cards/Roleplay/Roleplay.js +0 -398
  48. package/dist/Cards/Roleplay/Roleplay.test.js +0 -21
  49. package/dist/Cards/Roleplay/package.json +0 -6
  50. package/dist/Cards/ScheduleCard/ScheduleCard.js +0 -152
  51. package/dist/Cards/SubmissionsCard/SubmissionsCard.js +0 -138
  52. package/dist/Cards/SubscriptionPlan/SubscriptionPlan.js +0 -395
  53. package/dist/Cards/SubscriptionPlan/SubscriptionPlan.test.js +0 -20
  54. package/dist/Cards/SubscriptionPlan/nuala.svg +0 -28
  55. package/dist/Cards/SubscriptionPlan/package.json +0 -6
  56. package/dist/Cards/SubscriptionPlan/plus.svg +0 -4
  57. package/dist/Cards/Topic/Topic.js +0 -276
  58. package/dist/Cards/Topic/Topic.test.js +0 -21
  59. package/dist/Cards/Topic/package.json +0 -6
  60. package/dist/Cards/index.js +0 -2
  61. package/dist/Charts/Bar/Exercises/Exercises.js +0 -118
  62. package/dist/Charts/Bar/Exercises/package.json +0 -6
  63. package/dist/Charts/Bar/TotalGrades/TotalGrades.js +0 -123
  64. package/dist/Charts/Bar/TotalGrades/package.json +0 -6
  65. package/dist/Charts/Doughnut/AnswerMethod/AnswerMethod.js +0 -97
  66. package/dist/Charts/Doughnut/AnswerMethod/package.json +0 -6
  67. package/dist/Charts/Doughnut/AnswersBreakdown/AnswersBreakdown.js +0 -105
  68. package/dist/Charts/Doughnut/AnswersBreakdown/package.json +0 -6
  69. package/dist/Charts/Doughnut/RecordingAttendance/RecordingAttendance.js +0 -100
  70. package/dist/Charts/Doughnut/SubmittedRecordings/SubmittedRecordings.js +0 -87
  71. package/dist/Chat/BottomBar/BottomBar.js +0 -375
  72. package/dist/Chat/BottomBar/package.json +0 -6
  73. package/dist/Chat/Chat.js +0 -205
  74. package/dist/Chat/ChatLoading/ChatLoading.js +0 -224
  75. package/dist/Chat/ChatLoading/package.json +0 -6
  76. package/dist/Chat/Messages/Message/Message.js +0 -710
  77. package/dist/Chat/Messages/Message/package.json +0 -6
  78. package/dist/Chat/Messages/Messages.js +0 -270
  79. package/dist/Chat/Messages/Question/Question.js +0 -485
  80. package/dist/Chat/Messages/Question/package.json +0 -6
  81. package/dist/Chat/Messages/package.json +0 -6
  82. package/dist/Chat/TopBar/TopBar.js +0 -123
  83. package/dist/Chat/TopBar/package.json +0 -6
  84. package/dist/Chat/VoiceMessage/VoiceMessage.js +0 -144
  85. package/dist/Chat/VoiceMessage/package.json +0 -6
  86. package/dist/Chat/package.json +0 -6
  87. package/dist/Containers/App/App.js +0 -537
  88. package/dist/Containers/App/package.json +0 -6
  89. package/dist/Dialogs/AddToClassroom/AddToClassroom.js +0 -117
  90. package/dist/Dialogs/AddToClassroom/AddToClassroom.test.js +0 -15
  91. package/dist/Dialogs/AddToClassroom/package.json +0 -6
  92. package/dist/Dialogs/AddToCourse/AddToCourse.js +0 -73
  93. package/dist/Dialogs/Alternatives/Alternatives.js +0 -67
  94. package/dist/Dialogs/Alternatives/package.json +0 -6
  95. package/dist/Dialogs/AvatarDialog/AvatarDialog.js +0 -585
  96. package/dist/Dialogs/AvatarDialog/options.js +0 -120
  97. package/dist/Dialogs/BotPreview/BotPreview.js +0 -350
  98. package/dist/Dialogs/BotPreview/package.json +0 -6
  99. package/dist/Dialogs/Code/Code.js +0 -147
  100. package/dist/Dialogs/Code/Code.test.js +0 -20
  101. package/dist/Dialogs/Code/package.json +0 -6
  102. package/dist/Dialogs/ConfirmDeleteDiscussion/ConfirmDeleteDiscussion.js +0 -46
  103. package/dist/Dialogs/ConfirmDialog/ConfirmDialog.js +0 -198
  104. package/dist/Dialogs/CourseOutline/CourseOutline.js +0 -27
  105. package/dist/Dialogs/CourseOutline/CourseOutline.test.js +0 -28
  106. package/dist/Dialogs/CourseOutline/package.json +0 -6
  107. package/dist/Dialogs/CreatePhrase/CreatePhrase.js +0 -733
  108. package/dist/Dialogs/CreatePhrase/CreatePhrase.test.js +0 -20
  109. package/dist/Dialogs/CreatePhrase/package.json +0 -6
  110. package/dist/Dialogs/CreatePhraseGroupDialog/CreatePhraseGroupDialog.js +0 -188
  111. package/dist/Dialogs/CreatePhraseListFromSelectionDialog/CreatePhraseListFromSelectionDialog.js +0 -49
  112. package/dist/Dialogs/CreateQuestion/CreateQuestion.js +0 -282
  113. package/dist/Dialogs/CreateQuestion/CreateQuestion.test.js +0 -15
  114. package/dist/Dialogs/CreateQuestion/package.json +0 -6
  115. package/dist/Dialogs/CreateSection/CreateSection.js +0 -51
  116. package/dist/Dialogs/CreateSection/CreateSection.test.js +0 -15
  117. package/dist/Dialogs/CreateSection/package.json +0 -6
  118. package/dist/Dialogs/CreateTopic/CreateTopic.js +0 -135
  119. package/dist/Dialogs/CreateTopic/CreateTopic.test.js +0 -15
  120. package/dist/Dialogs/CreateTopic/package.json +0 -6
  121. package/dist/Dialogs/CreatorNotSubscribed/CreatorNotSubscribed.js +0 -19
  122. package/dist/Dialogs/CreatorNotSubscribedUpgrade/CreatorNotSubscribedUpgrade.js +0 -50
  123. package/dist/Dialogs/DynamicAIWarning/DynamicAIWarning.js +0 -183
  124. package/dist/Dialogs/DynamicAIWarning/owl.png +0 -0
  125. package/dist/Dialogs/EnrollmentKeyDialog/EnrollmentKeyDialog.js +0 -47
  126. package/dist/Dialogs/ExerciseMenu/ExerciseMenu.js +0 -92
  127. package/dist/Dialogs/ExerciseMenu/Menus/CloseBotPreview/CloseBotPreview.js +0 -20
  128. package/dist/Dialogs/ExerciseMenu/Menus/CloseBotPreview/package.json +0 -6
  129. package/dist/Dialogs/ExerciseMenu/Menus/CloseExercise/CloseExercise.js +0 -52
  130. package/dist/Dialogs/ExerciseMenu/Menus/CloseExercise/package.json +0 -6
  131. package/dist/Dialogs/ExerciseMenu/Menus/CompletedExcercise/CompletedExcercise.js +0 -60
  132. package/dist/Dialogs/ExerciseMenu/Menus/CompletedExcercise/package.json +0 -6
  133. package/dist/Dialogs/ExerciseMenu/Menus/InProgressExercise/InProgressExercise.js +0 -43
  134. package/dist/Dialogs/ExerciseMenu/Menus/InProgressExercise/package.json +0 -6
  135. package/dist/Dialogs/ExerciseMenu/package.json +0 -6
  136. package/dist/Dialogs/Feedback/FeedbackDialog.js +0 -86
  137. package/dist/Dialogs/FeedbackDialog/FeedbackDialog.js +0 -123
  138. package/dist/Dialogs/FeedbackInfoDialog/FeedbackInfoDialog.js +0 -39
  139. package/dist/Dialogs/FindTopicsDialog/FindTopicsDialog.js +0 -442
  140. package/dist/Dialogs/GenerateBot/GenerateBot.js +0 -429
  141. package/dist/Dialogs/GenerateBot/package.json +0 -6
  142. package/dist/Dialogs/GenerateDefinitions/GenerateDefinitions.js +0 -217
  143. package/dist/Dialogs/GenerateDefinitions/package.json +0 -6
  144. package/dist/Dialogs/GenerateDiscussion/GenerateDiscussion.js +0 -275
  145. package/dist/Dialogs/GeneratePhrases/GeneratePhrases.js +0 -379
  146. package/dist/Dialogs/GeneratePhrases/package.json +0 -6
  147. package/dist/Dialogs/GenerateQuestion/GenerateQuestion.js +0 -212
  148. package/dist/Dialogs/GenerateQuestion/package.json +0 -6
  149. package/dist/Dialogs/GenerateRoleplay/GenerateRoleplay.js +0 -735
  150. package/dist/Dialogs/GenerateRoleplay/package.json +0 -6
  151. package/dist/Dialogs/GroupedFeedbackDialog/GroupedFeedbackDialog.js +0 -711
  152. package/dist/Dialogs/GroupedFeedbackDialog/package.json +0 -6
  153. package/dist/Dialogs/Icons/Icons.js +0 -18
  154. package/dist/Dialogs/Icons/package.json +0 -6
  155. package/dist/Dialogs/ImageLibrary/ImageLibrary.js +0 -34
  156. package/dist/Dialogs/ImageLibrary/ImageLibrary.test.js +0 -20
  157. package/dist/Dialogs/ImageLibrary/package.json +0 -6
  158. package/dist/Dialogs/ImageLibraryDialog/ImageLibraryDialog.js +0 -33
  159. package/dist/Dialogs/InactivePopover/InactivePopover.js +0 -71
  160. package/dist/Dialogs/InviteDialog/InviteDialog.js +0 -695
  161. package/dist/Dialogs/InviteDialog/package.json +0 -6
  162. package/dist/Dialogs/InviteDialog/upload-emails-csv.png +0 -0
  163. package/dist/Dialogs/Listener/Listener.js +0 -87
  164. package/dist/Dialogs/Listener/Listener.test.js +0 -24
  165. package/dist/Dialogs/Listener/package.json +0 -6
  166. package/dist/Dialogs/LiveGameTutorial/LiveGameTutorial.js +0 -166
  167. package/dist/Dialogs/LiveGameTutorial/package.json +0 -6
  168. package/dist/Dialogs/Members/Members.js +0 -27
  169. package/dist/Dialogs/Members/Members.test.js +0 -20
  170. package/dist/Dialogs/Members/package.json +0 -6
  171. package/dist/Dialogs/ModeratedDialog/ModeratedDialog.js +0 -35
  172. package/dist/Dialogs/PDFViewer/PDFViewer.js +0 -252
  173. package/dist/Dialogs/PDFViewer/pdf24.pdf +0 -0
  174. package/dist/Dialogs/PDFViewer/rubrics/level1Rubric.pdf +0 -0
  175. package/dist/Dialogs/PDFViewer/rubrics/level2Rubric.pdf +0 -0
  176. package/dist/Dialogs/PDFViewer/rubrics/level3Rubric.pdf +0 -0
  177. package/dist/Dialogs/PDFViewer/rubrics/level4Rubric.pdf +0 -0
  178. package/dist/Dialogs/PhraseNameDialog/PhraseNameDialog.js +0 -30
  179. package/dist/Dialogs/QuickCreateClassroomDialog/QuickCreateClassroomDialog.js +0 -266
  180. package/dist/Dialogs/QuickCreateCourseDialog/QuickCreateCourseDialog.js +0 -283
  181. package/dist/Dialogs/QuickCreateTopicDialog/QuickCreateTopicDialog.js +0 -260
  182. package/dist/Dialogs/RecordingDialog/RecordingDialog.js +0 -288
  183. package/dist/Dialogs/ReportProblem/ReportProblem.js +0 -287
  184. package/dist/Dialogs/ReportProblem/ReportProblem.test.js +0 -15
  185. package/dist/Dialogs/ReportProblem/package.json +0 -6
  186. package/dist/Dialogs/ResponsiveDialog/ResponsiveDialog.js +0 -108
  187. package/dist/Dialogs/ResponsiveDialog/ResponsiveDialog.test.js +0 -15
  188. package/dist/Dialogs/ResponsiveDialog/package.json +0 -6
  189. package/dist/Dialogs/RewardEarned/RewardEarned.js +0 -111
  190. package/dist/Dialogs/RewardEarned/package.json +0 -6
  191. package/dist/Dialogs/RoleplayPreview/RoleplayPreview.js +0 -87
  192. package/dist/Dialogs/SearchTopic/SearchTopic.js +0 -87
  193. package/dist/Dialogs/SelectActor/SelectActor.js +0 -157
  194. package/dist/Dialogs/SelectActor/package.json +0 -6
  195. package/dist/Dialogs/SelectClassroom/SelectClassroom.js +0 -81
  196. package/dist/Dialogs/SelectClassroom/package.json +0 -6
  197. package/dist/Dialogs/SelectExercise/SelectExercise.js +0 -47
  198. package/dist/Dialogs/SelectExercise/package.json +0 -6
  199. package/dist/Dialogs/Substitution/Substitution.js +0 -82
  200. package/dist/Dialogs/Substitution/package.json +0 -6
  201. package/dist/Dialogs/Topic/Topic.js +0 -69
  202. package/dist/Dialogs/Topic/package.json +0 -6
  203. package/dist/Dialogs/TopicPreview/TopicPreview.js +0 -39
  204. package/dist/Dialogs/TopicPreview/package.json +0 -6
  205. package/dist/Dialogs/TransferPhrase/TransferPhrase.js +0 -115
  206. package/dist/Dialogs/Trigger/Trigger.js +0 -213
  207. package/dist/Dialogs/Trigger/package.json +0 -6
  208. package/dist/Dialogs/UpgradeSubscription/UpgradeSubscription.js +0 -40
  209. package/dist/Dialogs/UploadBotVars/UploadBotVars.jpeg +0 -0
  210. package/dist/Dialogs/UploadBotVars/UploadBotVars.js +0 -186
  211. package/dist/Dialogs/UploadBotVars/UploadBotVars.test.js +0 -20
  212. package/dist/Dialogs/UploadBotVars/package.json +0 -6
  213. package/dist/Dialogs/UploadPhrases/UploadPhrases.js +0 -553
  214. package/dist/Dialogs/UploadPhrases/UploadPhrases.test.js +0 -20
  215. package/dist/Dialogs/UploadPhrases/package.json +0 -6
  216. package/dist/Dialogs/UploadPhrases/upload-phrases-csv.png +0 -0
  217. package/dist/Dialogs/UploadRoleplayScript/UploadRoleplayScript.js +0 -287
  218. package/dist/Dialogs/UploadRoleplayScript/UploadRoleplayScript.test.js +0 -20
  219. package/dist/Dialogs/UploadRoleplayScript/package.json +0 -6
  220. package/dist/Dialogs/UploadRoleplayScript/roleplay-script-csv.png +0 -0
  221. package/dist/Dialogs/UploadVideo/UploadVideo.js +0 -80
  222. package/dist/Dialogs/UploadVideo/UploadVideo.test.js +0 -20
  223. package/dist/Dialogs/UploadVideo/package.json +0 -6
  224. package/dist/Dialogs/Variable/Variable.js +0 -74
  225. package/dist/Dialogs/Variable/package.json +0 -6
  226. package/dist/Dialogs/VideoViewer/VideoViewer.js +0 -61
  227. package/dist/Dialogs/ViewImageDialog/ViewImageDialog.js +0 -24
  228. package/dist/Dialogs/WaveformDialog/WaveformDialog.js +0 -110
  229. package/dist/Editors/Bot/Bot.js +0 -843
  230. package/dist/Editors/Bot/Editor/BotDesigner/AddImageModal/AddImageModal.js +0 -98
  231. package/dist/Editors/Bot/Editor/BotDesigner/AddImageModal/AddImageModal.test.js +0 -12
  232. package/dist/Editors/Bot/Editor/BotDesigner/AddImageModal/package.json +0 -6
  233. package/dist/Editors/Bot/Editor/BotDesigner/AddLinkModal/AddLinkModal.js +0 -95
  234. package/dist/Editors/Bot/Editor/BotDesigner/AddLinkModal/AddLinkModal.test.js +0 -12
  235. package/dist/Editors/Bot/Editor/BotDesigner/AddLinkModal/package.json +0 -6
  236. package/dist/Editors/Bot/Editor/BotDesigner/AlternativesList.js +0 -88
  237. package/dist/Editors/Bot/Editor/BotDesigner/BotDesigner.js +0 -66
  238. package/dist/Editors/Bot/Editor/BotDesigner/BotDesigner.test.js +0 -34
  239. package/dist/Editors/Bot/Editor/BotDesigner/VarList.js +0 -324
  240. package/dist/Editors/Bot/Editor/BotDesigner/package.json +0 -6
  241. package/dist/Editors/Bot/Editor/Editor.js +0 -628
  242. package/dist/Editors/Bot/Editor/package.json +0 -6
  243. package/dist/Editors/Bot/Tutorial.js +0 -154
  244. package/dist/Editors/Bot/package.json +0 -6
  245. package/dist/Editors/PhraseList/PhraseList.js +0 -388
  246. package/dist/Editors/Phrases/Phrases.js +0 -617
  247. package/dist/Editors/Phrases/SpreadsheetEditor/SpreadsheetEditor.js +0 -146
  248. package/dist/Editors/Roleplay/Roleplay.js +0 -955
  249. package/dist/Editors/Roleplay/package.json +0 -6
  250. package/dist/Exercises/Bot/Bot.js +0 -716
  251. package/dist/Exercises/Bot/Bot.test.js +0 -25
  252. package/dist/Exercises/Bot/package.json +0 -6
  253. package/dist/Exercises/ListenAndSpeak/ListenAndSpeak.js +0 -968
  254. package/dist/Exercises/Listener/Listener.js +0 -1029
  255. package/dist/Exercises/Listener/Listener.test.js +0 -25
  256. package/dist/Exercises/Listener/package.json +0 -6
  257. package/dist/Exercises/Meaning/Meaning.js +0 -805
  258. package/dist/Exercises/MeaningReadWrite/MeaningReadWriteGame.js +0 -731
  259. package/dist/Exercises/PhraseGroup/Games/ListenAndSpeakGame/ListenAndSpeakGame.js +0 -97
  260. package/dist/Exercises/PhraseGroup/Games/ListeningGame/ListeningGame.js +0 -91
  261. package/dist/Exercises/PhraseGroup/Games/MeaningGame/MeaningGame.js +0 -90
  262. package/dist/Exercises/PhraseGroup/Games/MeaningReadWriteGame/MeaningReadWriteGame.js +0 -90
  263. package/dist/Exercises/PhraseGroup/Games/PronunciationGame/PronunciationGame.js +0 -87
  264. package/dist/Exercises/PhraseGroup/Games/TranslationGame/TranslationGame.js +0 -92
  265. package/dist/Exercises/PhraseGroup/Games/index.js +0 -7
  266. package/dist/Exercises/PhraseGroup/PhraseGroup.js +0 -271
  267. package/dist/Exercises/PhraseGroup/PhraseGroup.test.js +0 -28
  268. package/dist/Exercises/PhraseGroup/PhraseGroupGameOptions/PhraseGroupGame/PhraseGroupGame.js +0 -296
  269. package/dist/Exercises/PhraseGroup/PhraseGroupGameOptions/PhraseGroupGames.js +0 -70
  270. package/dist/Exercises/PhraseGroup/PhraseGroupInfo/PhraseGroupInfo.js +0 -135
  271. package/dist/Exercises/PhraseGroup/package.json +0 -7
  272. package/dist/Exercises/Pronouncer/Pronouncer.js +0 -978
  273. package/dist/Exercises/Pronouncer/Pronouncer.test.js +0 -23
  274. package/dist/Exercises/Pronouncer/package.json +0 -6
  275. package/dist/Exercises/Roleplay/Games/ActItOutGame/ActItOutGame.js +0 -502
  276. package/dist/Exercises/Roleplay/Games/ActItOutGame/package.json +0 -6
  277. package/dist/Exercises/Roleplay/Games/ActItOutGameListening/ActItOutGameListening.js +0 -505
  278. package/dist/Exercises/Roleplay/Games/ActItOutGameListening/package.json +0 -6
  279. package/dist/Exercises/Roleplay/Games/ActItOutGameListeningAndSpeaking/ActItOutGame.js +0 -735
  280. package/dist/Exercises/Roleplay/Games/ActItOutGameListeningAndSpeaking/package.json +0 -6
  281. package/dist/Exercises/Roleplay/Games/ActItOutGameSpeaking/ActItOutGame.js +0 -725
  282. package/dist/Exercises/Roleplay/Games/ActItOutGameSpeaking/package.json +0 -6
  283. package/dist/Exercises/Roleplay/Games/BeforeElements.js +0 -68
  284. package/dist/Exercises/Roleplay/Games/FillInTheBlanksGame/FillInBlanks.js +0 -264
  285. package/dist/Exercises/Roleplay/Games/FillInTheBlanksGame/FillInTheBlanksGame.js +0 -360
  286. package/dist/Exercises/Roleplay/Games/FillInTheBlanksGame/package.json +0 -6
  287. package/dist/Exercises/Roleplay/Games/StoryGame/StoryGame.js +0 -347
  288. package/dist/Exercises/Roleplay/Games/StoryGame/package.json +0 -6
  289. package/dist/Exercises/Roleplay/Games/TopBarActions.js +0 -336
  290. package/dist/Exercises/Roleplay/Games/Transition.js +0 -9
  291. package/dist/Exercises/Roleplay/Games/index.js +0 -7
  292. package/dist/Exercises/Roleplay/OriginalRoleplay.js +0 -946
  293. package/dist/Exercises/Roleplay/Roleplay.js +0 -399
  294. package/dist/Exercises/Roleplay/Roleplay.test.js +0 -30
  295. package/dist/Exercises/Roleplay/RoleplayGameOptions/RoleplayGame/RoleplayGame.js +0 -194
  296. package/dist/Exercises/Roleplay/RoleplayGameOptions/RoleplayGame/RoleplayGame.test.js +0 -23
  297. package/dist/Exercises/Roleplay/RoleplayGameOptions/RoleplayGame/package.json +0 -6
  298. package/dist/Exercises/Roleplay/RoleplayGameOptions/RoleplayGames.js +0 -61
  299. package/dist/Exercises/Roleplay/RoleplayGameOptions/RoleplayGames.test.js +0 -23
  300. package/dist/Exercises/Roleplay/RoleplayGameOptions/package.json +0 -6
  301. package/dist/Exercises/Roleplay/RoleplayInfo/RoleplayInfo.js +0 -153
  302. package/dist/Exercises/Roleplay/RoleplayInfo/RoleplayInfo.test.js +0 -23
  303. package/dist/Exercises/Roleplay/RoleplayInfo/package.json +0 -6
  304. package/dist/Exercises/Roleplay/package.json +0 -6
  305. package/dist/Exercises/Translator/Translator.js +0 -1028
  306. package/dist/Exercises/Translator/Translator.test.js +0 -29
  307. package/dist/Exercises/Translator/package.json +0 -6
  308. package/dist/Forms/AppContact/AppContact.js +0 -141
  309. package/dist/Forms/ChipInput/ChipInput.js +0 -74
  310. package/dist/Forms/ChipInput/package.json +0 -6
  311. package/dist/Forms/Contact/Contact.js +0 -363
  312. package/dist/Forms/CreateBot/CreateBot.js +0 -77
  313. package/dist/Forms/CreateBot/CreateBot.test.js +0 -20
  314. package/dist/Forms/CreateBot/Steps/BotInformation/BotInformation.js +0 -649
  315. package/dist/Forms/CreateBot/Steps/BotInformation/__mocks__/react-simplemde-editor.js +0 -8
  316. package/dist/Forms/CreateBot/Steps/BotInformation/package.json +0 -6
  317. package/dist/Forms/CreateBot/Steps/BotSettings/BotSettings.js +0 -199
  318. package/dist/Forms/CreateBot/Steps/BotSettings/package.json +0 -6
  319. package/dist/Forms/CreateBot/Steps/Confirmation/Confirmation.js +0 -237
  320. package/dist/Forms/CreateBot/Steps/Confirmation/package.json +0 -6
  321. package/dist/Forms/CreateBot/Steps/index.js +0 -4
  322. package/dist/Forms/CreateBot/package.json +0 -6
  323. package/dist/Forms/CreateClassroom/CreateClassroom.js +0 -53
  324. package/dist/Forms/CreateClassroom/CreateClassroom.test.js +0 -20
  325. package/dist/Forms/CreateClassroom/Steps/ClassroomInformation/ClassroomInformation.js +0 -168
  326. package/dist/Forms/CreateClassroom/Steps/ClassroomInformation/package.json +0 -6
  327. package/dist/Forms/CreateClassroom/Steps/ClassroomSettings/ClassroomSettings.js +0 -401
  328. package/dist/Forms/CreateClassroom/Steps/ClassroomSettings/package.json +0 -6
  329. package/dist/Forms/CreateClassroom/Steps/Confirmation/Confirmation.js +0 -117
  330. package/dist/Forms/CreateClassroom/Steps/Confirmation/package.json +0 -6
  331. package/dist/Forms/CreateClassroom/Steps/CourseSettings/CourseSettings.js +0 -340
  332. package/dist/Forms/CreateClassroom/Steps/CourseSettings/package.json +0 -6
  333. package/dist/Forms/CreateClassroom/Steps/Customization/Customization.js +0 -77
  334. package/dist/Forms/CreateClassroom/Steps/Customization/package.json +0 -6
  335. package/dist/Forms/CreateClassroom/Steps/index.js +0 -6
  336. package/dist/Forms/CreateClassroom/package.json +0 -6
  337. package/dist/Forms/CreateCourse/CreateCourse.js +0 -62
  338. package/dist/Forms/CreateCourse/CreateCourse.test.js +0 -20
  339. package/dist/Forms/CreateCourse/Steps/Confirmation/Confirmation.js +0 -117
  340. package/dist/Forms/CreateCourse/Steps/Confirmation/package.json +0 -6
  341. package/dist/Forms/CreateCourse/Steps/CourseInformation/CourseInformation.js +0 -194
  342. package/dist/Forms/CreateCourse/Steps/CourseInformation/package.json +0 -6
  343. package/dist/Forms/CreateCourse/Steps/CourseSettings/CourseSettings.js +0 -257
  344. package/dist/Forms/CreateCourse/Steps/CourseSettings/package.json +0 -6
  345. package/dist/Forms/CreateCourse/Steps/Customization/Customization.js +0 -77
  346. package/dist/Forms/CreateCourse/Steps/Customization/package.json +0 -6
  347. package/dist/Forms/CreateCourse/Steps/index.js +0 -5
  348. package/dist/Forms/CreateCourse/package.json +0 -6
  349. package/dist/Forms/CreateGroup/CreateGroup.js +0 -55
  350. package/dist/Forms/CreateGroup/CreateGroup.test.js +0 -20
  351. package/dist/Forms/CreateGroup/Steps/Confirmation/Confirmation.js +0 -172
  352. package/dist/Forms/CreateGroup/Steps/Confirmation/package.json +0 -6
  353. package/dist/Forms/CreateGroup/Steps/GroupInformation/GroupInformation.js +0 -130
  354. package/dist/Forms/CreateGroup/Steps/GroupInformation/package.json +0 -6
  355. package/dist/Forms/CreateGroup/Steps/GroupSettings/GroupSettings.js +0 -171
  356. package/dist/Forms/CreateGroup/Steps/GroupSettings/package.json +0 -6
  357. package/dist/Forms/CreateGroup/Steps/index.js +0 -4
  358. package/dist/Forms/CreateGroup/package.json +0 -6
  359. package/dist/Forms/CreateMeetingMultiStepForm/CreateMeetingMultiStepForm.js +0 -88
  360. package/dist/Forms/CreateMeetingMultiStepForm/GroupAssignment.js +0 -919
  361. package/dist/Forms/CreateMeetingMultiStepForm/MeetingForm.js +0 -501
  362. package/dist/Forms/CreateMeetingMultiStepForm/images/input1.js +0 -2
  363. package/dist/Forms/CreateMeetingMultiStepForm/images/input5.js +0 -2
  364. package/dist/Forms/CreateMeetingMultiStepForm/images/mode1.js +0 -2
  365. package/dist/Forms/CreateMeetingMultiStepForm/images/mode2.js +0 -2
  366. package/dist/Forms/CreateMeetingMultiStepForm/sampleTemplates.js +0 -44
  367. package/dist/Forms/CreateRoleplay/CreateRoleplay.js +0 -87
  368. package/dist/Forms/CreateRoleplay/CreateRoleplay.test.js +0 -20
  369. package/dist/Forms/CreateRoleplay/Steps/Confirmation/Confirmation.js +0 -166
  370. package/dist/Forms/CreateRoleplay/Steps/Confirmation/package.json +0 -6
  371. package/dist/Forms/CreateRoleplay/Steps/RoleplayInformation/RoleplayInformation.js +0 -501
  372. package/dist/Forms/CreateRoleplay/Steps/RoleplayInformation/package.json +0 -6
  373. package/dist/Forms/CreateRoleplay/Steps/RoleplaySettings/RoleplaySettings.js +0 -261
  374. package/dist/Forms/CreateRoleplay/Steps/RoleplaySettings/package.json +0 -6
  375. package/dist/Forms/CreateRoleplay/Steps/index.js +0 -4
  376. package/dist/Forms/CreateRoleplay/package.json +0 -6
  377. package/dist/Forms/CreateRoleplayHook/CreateRoleplayHook.js +0 -83
  378. package/dist/Forms/CreateRoleplayHook/CreateRoleplayHook.test.js +0 -20
  379. package/dist/Forms/CreateRoleplayHook/Steps/Confirmation/Confirmation.js +0 -174
  380. package/dist/Forms/CreateRoleplayHook/Steps/Confirmation/package.json +0 -6
  381. package/dist/Forms/CreateRoleplayHook/Steps/RoleplayInformation/RoleplayInformation.js +0 -487
  382. package/dist/Forms/CreateRoleplayHook/Steps/RoleplayInformation/package.json +0 -6
  383. package/dist/Forms/CreateRoleplayHook/Steps/RoleplaySettings/RoleplaySettings.js +0 -330
  384. package/dist/Forms/CreateRoleplayHook/Steps/RoleplaySettings/package.json +0 -6
  385. package/dist/Forms/CreateRoleplayHook/Steps/index.js +0 -4
  386. package/dist/Forms/CreateRoleplayHook/package.json +0 -6
  387. package/dist/Forms/CreateTopic/CreateTopic.js +0 -52
  388. package/dist/Forms/CreateTopic/CreateTopic.test.js +0 -20
  389. package/dist/Forms/CreateTopic/Steps/Confirmation/Confirmation.js +0 -111
  390. package/dist/Forms/CreateTopic/Steps/Confirmation/package.json +0 -6
  391. package/dist/Forms/CreateTopic/Steps/Customization/Customization.js +0 -77
  392. package/dist/Forms/CreateTopic/Steps/Customization/package.json +0 -6
  393. package/dist/Forms/CreateTopic/Steps/TopicInformation/TopicInformation.js +0 -190
  394. package/dist/Forms/CreateTopic/Steps/TopicInformation/package.json +0 -6
  395. package/dist/Forms/CreateTopic/Steps/TopicSettings/TopicSettings.js +0 -81
  396. package/dist/Forms/CreateTopic/Steps/TopicSettings/package.json +0 -6
  397. package/dist/Forms/CreateTopic/Steps/index.js +0 -4
  398. package/dist/Forms/CreateTopic/package.json +0 -6
  399. package/dist/Forms/CreateUser/CreateUser.js +0 -77
  400. package/dist/Forms/DiscussImageSelector/ImageSelector.js +0 -311
  401. package/dist/Forms/DiscussImageSelector/package.json +0 -6
  402. package/dist/Forms/DiscussMultiStepFormDialog/MultiStepFormDialog.js +0 -402
  403. package/dist/Forms/DiscussMultiStepFormDialog/package.json +0 -6
  404. package/dist/Forms/FeedbackForm/FeedbackForm.js +0 -1036
  405. package/dist/Forms/FeedbackInfo/FeedbackInfo.js +0 -233
  406. package/dist/Forms/ImageSelector/ImageSelector.js +0 -516
  407. package/dist/Forms/ImageSelector/package.json +0 -6
  408. package/dist/Forms/InputHelper/InputHelper.js +0 -277
  409. package/dist/Forms/InputHelper/package.json +0 -6
  410. package/dist/Forms/LanguageSelector/LanguageSelector.js +0 -49
  411. package/dist/Forms/LanguageSelector/LanguageSelector.test.js +0 -15
  412. package/dist/Forms/MarkdownEditor/MarkdownEditor.js +0 -72
  413. package/dist/Forms/MarkdownEditor/MarkdownEditor.test.js +0 -35
  414. package/dist/Forms/MarkdownEditor/package.json +0 -6
  415. package/dist/Forms/MultiStepForm/Debug.js +0 -38
  416. package/dist/Forms/MultiStepForm/MultiStepForm.js +0 -278
  417. package/dist/Forms/MultiStepForm/MultiStepForm.test.js +0 -20
  418. package/dist/Forms/MultiStepForm/package.json +0 -6
  419. package/dist/Forms/MultiStepFormDialog/MultiStepFormDialog.js +0 -354
  420. package/dist/Forms/MultiStepFormDialog/MultiStepFormDialog.test.js +0 -20
  421. package/dist/Forms/MultiStepFormDialog/package.json +0 -6
  422. package/dist/Forms/MultiStepFormHook/MultiStepFormHook.js +0 -279
  423. package/dist/Forms/PdfUploader/PdfUploader.js +0 -250
  424. package/dist/Forms/PdfUploader/package.json +0 -6
  425. package/dist/Forms/RecordingInfo/RecordingInfo.js +0 -140
  426. package/dist/Forms/Settings/Settings.js +0 -138
  427. package/dist/Forms/Settings/Tabs/Display/Display.js +0 -106
  428. package/dist/Forms/Settings/Tabs/Display/package.json +0 -6
  429. package/dist/Forms/Settings/Tabs/EmailNotifications/EmailNotifications.js +0 -108
  430. package/dist/Forms/Settings/Tabs/EmailNotifications/package.json +0 -6
  431. package/dist/Forms/Settings/Tabs/General/General.js +0 -534
  432. package/dist/Forms/Settings/Tabs/General/package.json +0 -6
  433. package/dist/Forms/Settings/Tabs/Subscription/Subscription.js +0 -259
  434. package/dist/Forms/Settings/Tabs/Subscription/package.json +0 -6
  435. package/dist/Forms/Settings/package.json +0 -6
  436. package/dist/Forms/SortBySelector/SortBySelector.js +0 -47
  437. package/dist/Forms/UpdateBot/UpdateBot.js +0 -234
  438. package/dist/Forms/UpdateBot/UpdateBot.test.js +0 -23
  439. package/dist/Forms/UpdateBot/package.json +0 -6
  440. package/dist/Forms/UpdateClassroom/UpdateClassroom.js +0 -368
  441. package/dist/Forms/UpdateClassroom/UpdateClassroom.test.js +0 -20
  442. package/dist/Forms/UpdateClassroom/package.json +0 -6
  443. package/dist/Forms/UpdateCourse/UpdateCourse.js +0 -260
  444. package/dist/Forms/UpdateCourse/UpdateCourse.test.js +0 -20
  445. package/dist/Forms/UpdateCourse/package.json +0 -6
  446. package/dist/Forms/UpdateGroup/UpdateGroup.js +0 -185
  447. package/dist/Forms/UpdateGroup/UpdateGroup.test.js +0 -25
  448. package/dist/Forms/UpdateGroup/package.json +0 -6
  449. package/dist/Forms/UpdatePhraseList/UpdatePhraseList.js +0 -529
  450. package/dist/Forms/UpdateRoleplay/UpdateRoleplay.js +0 -238
  451. package/dist/Forms/UpdateRoleplay/UpdateRoleplay.test.js +0 -20
  452. package/dist/Forms/UpdateRoleplay/package.json +0 -6
  453. package/dist/Forms/UpdateTopic/UpdateTopic.js +0 -248
  454. package/dist/Forms/UpdateTopic/UpdateTopic.test.js +0 -20
  455. package/dist/Forms/UpdateTopic/package.json +0 -6
  456. package/dist/Forms/VideoUploader/VideoUploader.js +0 -197
  457. package/dist/Forms/VideoUploader/package.json +0 -6
  458. package/dist/Forms/VoiceSelector/VoiceSelector.js +0 -343
  459. package/dist/Forms/VoiceSelector/VoiceSelector.test.js +0 -15
  460. package/dist/Forms/VoiceSelector/package.json +0 -6
  461. package/dist/Lists/Avatars/Avatars.js +0 -67
  462. package/dist/Lists/Bots/Bots.js +0 -208
  463. package/dist/Lists/Bots/Bots.test.js +0 -24
  464. package/dist/Lists/Bots/package.json +0 -6
  465. package/dist/Lists/Categories/Categories.js +0 -93
  466. package/dist/Lists/Categories/Categories.test.js +0 -22
  467. package/dist/Lists/Categories/package.json +0 -6
  468. package/dist/Lists/Categories/sample.png +0 -0
  469. package/dist/Lists/Classrooms/Classrooms.js +0 -117
  470. package/dist/Lists/Classrooms/Classrooms.test.js +0 -30
  471. package/dist/Lists/Classrooms/package.json +0 -6
  472. package/dist/Lists/CourseOutline/CourseOutline.js +0 -1542
  473. package/dist/Lists/CourseOutline/CourseOutline.test.js +0 -23
  474. package/dist/Lists/CourseOutline/package.json +0 -6
  475. package/dist/Lists/CourseSelection/CourseSelection.js +0 -166
  476. package/dist/Lists/Courses/Courses.js +0 -184
  477. package/dist/Lists/Courses/Courses.test.js +0 -30
  478. package/dist/Lists/Courses/package.json +0 -6
  479. package/dist/Lists/ExerciseSelection/ExerciseSelection.js +0 -523
  480. package/dist/Lists/Exercises/Exercises.js +0 -1630
  481. package/dist/Lists/Exercises/Exercises.test.js +0 -29
  482. package/dist/Lists/Exercises/package.json +0 -6
  483. package/dist/Lists/Leaderboard/Leaderboard.js +0 -405
  484. package/dist/Lists/Leaderboard/package.json +0 -6
  485. package/dist/Lists/ListElements/index.js +0 -35
  486. package/dist/Lists/Members/Members.js +0 -433
  487. package/dist/Lists/Members/Members.test.js +0 -20
  488. package/dist/Lists/Members/package.json +0 -6
  489. package/dist/Lists/ParseScriptErrors/ParseScriptErrors.js +0 -29
  490. package/dist/Lists/PhraseListSelection/PhraseListSelection.js +0 -238
  491. package/dist/Lists/Phrases/Phrases.js +0 -716
  492. package/dist/Lists/Phrases/Phrases.test.js +0 -28
  493. package/dist/Lists/Phrases/package.json +0 -6
  494. package/dist/Lists/RoleplaySelection/RoleplaySelection.js +0 -192
  495. package/dist/Lists/Roleplays/Roleplays.js +0 -218
  496. package/dist/Lists/Roleplays/Roleplays.test.js +0 -24
  497. package/dist/Lists/Roleplays/package.json +0 -6
  498. package/dist/Lists/Sections/Sections.js +0 -238
  499. package/dist/Lists/Sections/Sections.test.js +0 -20
  500. package/dist/Lists/Sections/package.json +0 -6
  501. package/dist/Lists/SubscriptionPlans/SubscriptionPlans.js +0 -49
  502. package/dist/Lists/SubscriptionPlans/SubscriptionPlans.test.js +0 -20
  503. package/dist/Lists/SubscriptionPlans/package.json +0 -6
  504. package/dist/Lists/Timeline/EventItem.js +0 -154
  505. package/dist/Lists/Timeline/EventList.js +0 -34
  506. package/dist/Lists/Timeline/TimelineLoaded.js +0 -65
  507. package/dist/Lists/Timeline/groupByDay.js +0 -24
  508. package/dist/Lists/TopicPreview/TopicPreview.js +0 -454
  509. package/dist/Lists/TopicPreview/package.json +0 -6
  510. package/dist/Lists/Topics/Topics.js +0 -123
  511. package/dist/Lists/Topics/Topics.test.js +0 -21
  512. package/dist/Lists/Topics/package.json +0 -6
  513. package/dist/Lists/Voices/Voices.js +0 -257
  514. package/dist/Lists/Voices/Voices.test.js +0 -15
  515. package/dist/Lists/Voices/horse.ogm +0 -0
  516. package/dist/Lists/Voices/package.json +0 -6
  517. package/dist/Live/Game/Game.js +0 -682
  518. package/dist/Live/Game/package.json +0 -6
  519. package/dist/Live/GameControls/GameControls.js +0 -69
  520. package/dist/Live/GameControls/package.json +0 -6
  521. package/dist/Live/GameMembers/GameMembers.js +0 -185
  522. package/dist/Live/GameMembers/package.json +0 -6
  523. package/dist/Live/GameQuestionResults/GameQuestionResults.js +0 -96
  524. package/dist/Live/GameQuestionResults/package.json +0 -6
  525. package/dist/Live/GameSettings/GameSettings.js +0 -248
  526. package/dist/Live/GameSettings/package.json +0 -6
  527. package/dist/Live/HowToJoin/HowToJoin.js +0 -120
  528. package/dist/Live/HowToJoin/package.json +0 -6
  529. package/dist/Live/LiveListener/LiveListener.js +0 -612
  530. package/dist/Live/LiveListener/package.json +0 -6
  531. package/dist/Live/LiveMeaning/LiveMeaning.js +0 -389
  532. package/dist/Live/LiveMeaningReadWrite/LiveMeaningReadWrite.js +0 -396
  533. package/dist/Live/LiveRoleplay/LiveStory/LiveStory.js +0 -260
  534. package/dist/Live/LiveRoleplay/LiveStory/package.json +0 -6
  535. package/dist/Live/LiveTranslator/LiveTranslator.js +0 -732
  536. package/dist/Live/Misc/FinalScoreDrawer/FinalScoreDrawer.js +0 -245
  537. package/dist/Live/Misc/FinalScoreDrawer/package.json +0 -6
  538. package/dist/Live/Misc/StudentAnswerDrawer/StudentAnswerDrawer.js +0 -146
  539. package/dist/Live/Misc/StudentAnswerDrawer/package.json +0 -6
  540. package/dist/Live/WaitingRoom/WaitingRoom.js +0 -422
  541. package/dist/Live/WaitingRoom/package.json +0 -6
  542. package/dist/Misc/AiExperienceIcon/AiExperienceIcon.js +0 -128
  543. package/dist/Misc/AnswerResult/AnswerResult.js +0 -882
  544. package/dist/Misc/AnswerResult/package.json +0 -6
  545. package/dist/Misc/AvatarSelector/AvatarSelector.js +0 -183
  546. package/dist/Misc/AvatarSwitcher/AvatarSwitcher.js +0 -57
  547. package/dist/Misc/AxiosRestExample/AxiosRestExample.js +0 -46
  548. package/dist/Misc/AxiosRestExample/AxiosRestPostExample.js +0 -65
  549. package/dist/Misc/CSVUploader/CSVUploader.js +0 -153
  550. package/dist/Misc/CSVUploader/package.json +0 -6
  551. package/dist/Misc/ChatBubble/ChatBubble.js +0 -71
  552. package/dist/Misc/ColorLinearProgress/ColorLinearProgress.js +0 -28
  553. package/dist/Misc/ColorLinearProgress/package.json +0 -6
  554. package/dist/Misc/ColorSelector/ColorSelector.js +0 -143
  555. package/dist/Misc/ColorSelector/package.json +0 -6
  556. package/dist/Misc/CustomChipInput/CustomChipInput.js +0 -391
  557. package/dist/Misc/CustomChipInput/package.json +0 -6
  558. package/dist/Misc/DefaultColourButton/DefaultColourButton.js +0 -39
  559. package/dist/Misc/DefaultColourButton/package.json +0 -6
  560. package/dist/Misc/DiscussionTopicSelector/TopicSelector.js +0 -191
  561. package/dist/Misc/DiscussionTopicSelector/package.json +0 -6
  562. package/dist/Misc/DragAndDropPreview/DragAndDropPreview.js +0 -40
  563. package/dist/Misc/DragAndDropPreview/package.json +0 -6
  564. package/dist/Misc/EmojiInput/EmojiInput.js +0 -83
  565. package/dist/Misc/EmojiInput/css/emoji-mart.css +0 -497
  566. package/dist/Misc/ExerciseBottomBar/ExerciseBottomBar.js +0 -95
  567. package/dist/Misc/ExerciseBottomBar/package.json +0 -6
  568. package/dist/Misc/ExerciseProgressBar/ExerciseProgressBar.js +0 -56
  569. package/dist/Misc/ExerciseProgressBar/package.json +0 -6
  570. package/dist/Misc/FabContainer/FabContainer.js +0 -42
  571. package/dist/Misc/FabContainer/package.json +0 -6
  572. package/dist/Misc/HideOnScroll/HideOnScroll.js +0 -27
  573. package/dist/Misc/HideOnScroll/package.json +0 -6
  574. package/dist/Misc/HoverText/HoverText.js +0 -303
  575. package/dist/Misc/HtmlTooltipComponent/HtmlTooltipComponent.js +0 -69
  576. package/dist/Misc/HtmlTooltipComponent/package.json +0 -6
  577. package/dist/Misc/ImageLibrary/ImageLibrary.js +0 -311
  578. package/dist/Misc/ImagePreview/ImagePreview.js +0 -43
  579. package/dist/Misc/InfiniteScroll/InfiniteScroll.js +0 -37
  580. package/dist/Misc/InfiniteScroll/package.json +0 -6
  581. package/dist/Misc/LanguageSelector/LanguageSelector.js +0 -163
  582. package/dist/Misc/LanguageSelector/package.json +0 -6
  583. package/dist/Misc/MedalSelector/BronzeMedal.js +0 -1362
  584. package/dist/Misc/MedalSelector/GoldMedal.js +0 -1322
  585. package/dist/Misc/MedalSelector/MedalSelector.js +0 -55
  586. package/dist/Misc/MedalSelector/SilverMedal.js +0 -1862
  587. package/dist/Misc/MedalSelector/styles.css +0 -24
  588. package/dist/Misc/NotFound/Bot.js +0 -62
  589. package/dist/Misc/NotFound/Bots.js +0 -75
  590. package/dist/Misc/NotFound/ClassCourses.js +0 -200
  591. package/dist/Misc/NotFound/Classroom.js +0 -61
  592. package/dist/Misc/NotFound/Classrooms.js +0 -93
  593. package/dist/Misc/NotFound/Course.js +0 -62
  594. package/dist/Misc/NotFound/Courses.js +0 -111
  595. package/dist/Misc/NotFound/Discussions.js +0 -52
  596. package/dist/Misc/NotFound/Members.js +0 -48
  597. package/dist/Misc/NotFound/Roleplay.js +0 -62
  598. package/dist/Misc/NotFound/Roleplays.js +0 -75
  599. package/dist/Misc/NotFound/Script.js +0 -47
  600. package/dist/Misc/NotFound/Sections.js +0 -63
  601. package/dist/Misc/NotFound/Topic.js +0 -62
  602. package/dist/Misc/Notes/Notes.js +0 -77
  603. package/dist/Misc/Notes/Notes.test.js +0 -20
  604. package/dist/Misc/Notes/package.json +0 -6
  605. package/dist/Misc/NualaCreating/Nuala1.js +0 -352
  606. package/dist/Misc/NualaCreating/Nuala2.js +0 -455
  607. package/dist/Misc/NualaCreating/Nuala3.js +0 -462
  608. package/dist/Misc/NualaCreating/NualaCreating.js +0 -23
  609. package/dist/Misc/NualaCreating/styles.css +0 -68
  610. package/dist/Misc/NualangVerifiedIcon/NualangVerifiedIcon.js +0 -19
  611. package/dist/Misc/OnboardingEnrolment/CheckIfCourse.js +0 -33
  612. package/dist/Misc/OnboardingEnrolment/ClassCodeInvalid.js +0 -14
  613. package/dist/Misc/OnboardingEnrolment/ClassroomCodeInvalid.js +0 -14
  614. package/dist/Misc/OnboardingEnrolment/EnrolKey.js +0 -14
  615. package/dist/Misc/Overlay/Overlay.js +0 -59
  616. package/dist/Misc/Overlay/package.json +0 -6
  617. package/dist/Misc/PhraseDisplay/PhraseDisplay.js +0 -123
  618. package/dist/Misc/ProgressiveCardMedia/ProgressiveCardMedia.js +0 -38
  619. package/dist/Misc/ProgressiveCardMedia/package.json +0 -6
  620. package/dist/Misc/PronunciationScore/PronunciationScore.js +0 -92
  621. package/dist/Misc/PronunciationScore/package.json +0 -6
  622. package/dist/Misc/QuickCreateNualaAnimations/ChatbotNualaAnimation.js +0 -154
  623. package/dist/Misc/QuickCreateNualaAnimations/ClassroomNualaAnimation.js +0 -201
  624. package/dist/Misc/QuickCreateNualaAnimations/CourseNualaAnimation.js +0 -154
  625. package/dist/Misc/QuickCreateNualaAnimations/PhraseListNualaAnimation.js +0 -268
  626. package/dist/Misc/QuickCreateNualaAnimations/ScenarioNualaAnimation.js +0 -128
  627. package/dist/Misc/QuickCreateNualaAnimations/TopicNualaAnimation.js +0 -134
  628. package/dist/Misc/QuickCreateNualaAnimations/characterMotion.js +0 -172
  629. package/dist/Misc/Recorder/Recorder.js +0 -151
  630. package/dist/Misc/Recorder/package.json +0 -6
  631. package/dist/Misc/ReportProblem/ReportProblem.js +0 -64
  632. package/dist/Misc/ReportProblem/package.json +0 -6
  633. package/dist/Misc/RoleplayChatWaveForm/RoleplayChatWaveForm.js +0 -199
  634. package/dist/Misc/RoleplayChatWaveForm/package.json +0 -6
  635. package/dist/Misc/RoleplayWaveform/RoleplayWaveform.js +0 -95
  636. package/dist/Misc/RoleplayWaveform/package.json +0 -6
  637. package/dist/Misc/RubyText/RubyText.js +0 -27
  638. package/dist/Misc/ShareButton/ShareButton.js +0 -69
  639. package/dist/Misc/ShareButton/ShareDrawer.js +0 -241
  640. package/dist/Misc/ShareButton/package.json +0 -6
  641. package/dist/Misc/SignOut/SignOut.js +0 -132
  642. package/dist/Misc/SignOut/package.json +0 -6
  643. package/dist/Misc/SiteLanguageSelector/SiteLanguageSelector.js +0 -107
  644. package/dist/Misc/SiteLanguageSelector/package.json +0 -6
  645. package/dist/Misc/Snackbar/Snackbar.js +0 -98
  646. package/dist/Misc/Snackbar/package.json +0 -6
  647. package/dist/Misc/SpeedDial/SpeedDial.js +0 -49
  648. package/dist/Misc/SpeedDial/package.json +0 -6
  649. package/dist/Misc/StudentWaitingMessage/StudentWaitingMessage.js +0 -38
  650. package/dist/Misc/SubmitTextField/SubmitTextField.js +0 -48
  651. package/dist/Misc/Testimonials/Testimonials.js +0 -82
  652. package/dist/Misc/Testimonials/package.json +0 -6
  653. package/dist/Misc/ThemeToggle/ThemeToggle.js +0 -39
  654. package/dist/Misc/ThemeToggle/package.json +0 -6
  655. package/dist/Misc/VoiceSpeed/VoiceSpeed.js +0 -68
  656. package/dist/Misc/VoiceSpeed/package.json +0 -6
  657. package/dist/Misc/WaveFormLite/WaveFormLite.js +0 -138
  658. package/dist/Misc/WaveFormLite/package.json +0 -6
  659. package/dist/Misc/Waveform/Waveform.js +0 -93
  660. package/dist/Misc/Waveform/package.json +0 -6
  661. package/dist/Misc/WhatsNew/WhatsNew.js +0 -105
  662. package/dist/Misc/WhatsNew/package.json +0 -6
  663. package/dist/Misc/WhatsNew/whatsnew.md +0 -41
  664. package/dist/Navigation/BottomBar/BottomBar.js +0 -72
  665. package/dist/Navigation/Breadcrumbs/Breadcrumbs.js +0 -113
  666. package/dist/Navigation/Breadcrumbs/Breadcrumbs.test.js +0 -24
  667. package/dist/Navigation/Breadcrumbs/package.json +0 -6
  668. package/dist/Navigation/Header/Header.js +0 -90
  669. package/dist/Navigation/Header/Header.test.js +0 -20
  670. package/dist/Navigation/Header/package.json +0 -6
  671. package/dist/Navigation/ResponsiveDrawer/ResponsiveDrawer.js +0 -532
  672. package/dist/Navigation/ResponsiveDrawer/ResponsiveDrawer.test.js +0 -23
  673. package/dist/Navigation/ResponsiveDrawer/package.json +0 -6
  674. package/dist/Navigation/ResponsiveStepper/ResponsiveStepper.js +0 -253
  675. package/dist/Navigation/ResponsiveStepper/ResponsiveStepper.test.js +0 -20
  676. package/dist/Navigation/ResponsiveStepper/package.json +0 -6
  677. package/dist/Navigation/ResponsiveTabs/ResponsiveTabs.js +0 -379
  678. package/dist/Navigation/ResponsiveTabs/TabContainer.js +0 -28
  679. package/dist/Navigation/ResponsiveTabs/package.json +0 -6
  680. package/dist/Navigation/_nav.js +0 -164
  681. package/dist/Payments/FreeTrial/FreeTrial.js +0 -106
  682. package/dist/Payments/FreeTrial/package.json +0 -6
  683. package/dist/Tables/Attempt/Attempt.js +0 -322
  684. package/dist/Tables/BotRows/BotRows.js +0 -132
  685. package/dist/Tables/BotRows/package.json +0 -6
  686. package/dist/Tables/Bots/Bots.js +0 -280
  687. package/dist/Tables/Bots/package.json +0 -6
  688. package/dist/Tables/Chart/Chart.js +0 -54
  689. package/dist/Tables/Chart/package.json +0 -5
  690. package/dist/Tables/ClassroomRows/ClassroomRows.js +0 -152
  691. package/dist/Tables/ClassroomRows/package.json +0 -6
  692. package/dist/Tables/Classrooms/Classrooms.js +0 -282
  693. package/dist/Tables/Classrooms/package.json +0 -6
  694. package/dist/Tables/CourseRows/CourseRows.js +0 -185
  695. package/dist/Tables/CourseRows/package.json +0 -6
  696. package/dist/Tables/Courses/Courses.js +0 -287
  697. package/dist/Tables/Courses/Courses.test.js +0 -29
  698. package/dist/Tables/Courses/package.json +0 -6
  699. package/dist/Tables/CreatedDiscussionsTable/CreatedDiscussionsTable.js +0 -188
  700. package/dist/Tables/GameRows/GameRows.js +0 -87
  701. package/dist/Tables/GameRows/package.json +0 -6
  702. package/dist/Tables/Games/Games.js +0 -258
  703. package/dist/Tables/Games/package.json +0 -6
  704. package/dist/Tables/MeetingPrompstList/MeetingPromptsList.js +0 -565
  705. package/dist/Tables/Phrases/Phrases.js +0 -200
  706. package/dist/Tables/Phrases/Phrases.test.js +0 -20
  707. package/dist/Tables/Phrases/package.json +0 -6
  708. package/dist/Tables/Plans/Plans.js +0 -74
  709. package/dist/Tables/Plans/plans.json +0 -162
  710. package/dist/Tables/Plans/plans2.json +0 -151
  711. package/dist/Tables/Progress/Header.js +0 -559
  712. package/dist/Tables/Progress/Progress.js +0 -502
  713. package/dist/Tables/Progress/ProgressList.js +0 -905
  714. package/dist/Tables/Progress/ProgressList.test.js +0 -48
  715. package/dist/Tables/Progress/ProgressTable.js +0 -882
  716. package/dist/Tables/Progress/ProgressTable.test.js +0 -258
  717. package/dist/Tables/Progress/ProgressTableRow.js +0 -295
  718. package/dist/Tables/Progress/README.md +0 -53
  719. package/dist/Tables/Progress/SelectMembers.js +0 -64
  720. package/dist/Tables/Progress/TableToolbar.js +0 -134
  721. package/dist/Tables/Progress/TableToolbar.test.js +0 -69
  722. package/dist/Tables/Progress/cells/index.js +0 -523
  723. package/dist/Tables/Progress/cells/index.test.js +0 -334
  724. package/dist/Tables/Progress/constants.js +0 -11
  725. package/dist/Tables/Progress/exportToExcel.js +0 -224
  726. package/dist/Tables/Progress/exportToExcel.test.js +0 -135
  727. package/dist/Tables/Progress/helpers.js +0 -42
  728. package/dist/Tables/Progress/helpers.test.js +0 -23
  729. package/dist/Tables/Progress/package.json +0 -6
  730. package/dist/Tables/Progress/sorting.js +0 -78
  731. package/dist/Tables/Progress/sorting.test.js +0 -69
  732. package/dist/Tables/Progress/styledComponents.js +0 -156
  733. package/dist/Tables/Progress/useProgressUrlParams.js +0 -162
  734. package/dist/Tables/Progress/useProgressUrlParams.test.js +0 -183
  735. package/dist/Tables/Progress/utils.js +0 -214
  736. package/dist/Tables/Progress/utils.test.js +0 -129
  737. package/dist/Tables/Progress/viewState.js +0 -27
  738. package/dist/Tables/RecordingListCards/RecordingListCards.js +0 -192
  739. package/dist/Tables/RoleplayRows/RoleplayRows.js +0 -129
  740. package/dist/Tables/RoleplayRows/package.json +0 -6
  741. package/dist/Tables/Roleplays/Roleplays.js +0 -280
  742. package/dist/Tables/Roleplays/package.json +0 -6
  743. package/dist/Tables/ScheduleListCards/ScheduleListCards.js +0 -92
  744. package/dist/Tables/SubmissionsTableCards/SubmissionsTableCards.js +0 -296
  745. package/dist/Tables/TrialUsers/TrialUsers.js +0 -155
  746. package/dist/Tables/Unanswered/Unanswered.js +0 -97
  747. package/dist/Tables/User/UserTable.js +0 -139
  748. package/dist/Tables/Users/UsersTable.js +0 -159
  749. package/dist/animations/celebrationCharacterMotion.js +0 -336
  750. package/dist/animations/index.js +0 -30
  751. package/dist/animations/nuala_10_celebrating.js +0 -233
  752. package/dist/animations/nuala_11_celebrating.js +0 -190
  753. package/dist/animations/nuala_12_celebrating.js +0 -172
  754. package/dist/animations/nuala_13_celebrating.js +0 -160
  755. package/dist/animations/nuala_14_celebrating.js +0 -135
  756. package/dist/animations/nuala_15_celebrating.js +0 -139
  757. package/dist/animations/nuala_16_celebrating.js +0 -121
  758. package/dist/animations/nuala_17_celebrating.js +0 -140
  759. package/dist/animations/nuala_18_celebrating.js +0 -134
  760. package/dist/animations/nuala_19_celebrating.js +0 -216
  761. package/dist/animations/nuala_1_celebrating.js +0 -131
  762. package/dist/animations/nuala_1_speaking.js +0 -163
  763. package/dist/animations/nuala_20_celebrating.js +0 -138
  764. package/dist/animations/nuala_21_celebrating.js +0 -137
  765. package/dist/animations/nuala_2_celebrating.js +0 -102
  766. package/dist/animations/nuala_2_speaking.js +0 -139
  767. package/dist/animations/nuala_3_celebrating.js +0 -104
  768. package/dist/animations/nuala_3_speaking.js +0 -136
  769. package/dist/animations/nuala_4_celebrating.js +0 -145
  770. package/dist/animations/nuala_5_celebrating.js +0 -131
  771. package/dist/animations/nuala_6_celebrating.js +0 -141
  772. package/dist/animations/nuala_7_celebrating.js +0 -160
  773. package/dist/animations/nuala_8_celebrating.js +0 -108
  774. package/dist/animations/nuala_9_celebrating.js +0 -119
  775. package/dist/animations/speakingCharacterMotion.js +0 -157
  776. package/dist/config.js +0 -414
  777. package/dist/hooks/handleBotVarsDownload.js +0 -40
  778. package/dist/hooks/handleScriptDownload.js +0 -93
  779. package/dist/hooks/useClassroomState.js +0 -55
  780. package/dist/hooks/useClassroomStateOld.js +0 -81
  781. package/dist/hooks/useConfirm.js +0 -19
  782. package/dist/hooks/useCourseState.js +0 -62
  783. package/dist/hooks/useCourseStateOld.js +0 -89
  784. package/dist/hooks/useDebounce.js +0 -20
  785. package/dist/hooks/useExerciseDocumentTitle.js +0 -15
  786. package/dist/hooks/useExerciseState.js +0 -2063
  787. package/dist/hooks/useLanguageTokens.js +0 -73
  788. package/dist/hooks/useListScroll.js +0 -19
  789. package/dist/hooks/usePhonetics.js +0 -64
  790. package/dist/hooks/usePhraseNameDialog.js +0 -10
  791. package/dist/hooks/useProgressiveImg.js +0 -21
  792. package/dist/hooks/useRecognition.js +0 -455
  793. package/dist/hooks/useSpreadsheetState.js +0 -87
  794. package/dist/hooks/useUrlQueryParam.js +0 -27
  795. package/dist/hooks/useWordBankFocus.js +0 -80
  796. package/dist/icons/AccountBalanceOff.js +0 -5
  797. package/dist/icons/KeyBoardOffDark.js +0 -22
  798. package/dist/icons/KeyBoardOffLight.js +0 -22
  799. package/dist/img/0-nuala-001.svg +0 -34
  800. package/dist/img/1-teacher-001.svg +0 -38
  801. package/dist/img/AudioNuala.svg +0 -165
  802. package/dist/img/Bronze Medal.svg +0 -545
  803. package/dist/img/Bronze.svg +0 -349
  804. package/dist/img/BronzeBadge.svg +0 -493
  805. package/dist/img/BronzeBadgeWithoutRibbon.svg +0 -317
  806. package/dist/img/Frame 51.svg +0 -98
  807. package/dist/img/Frame 52.svg +0 -131
  808. package/dist/img/Frame 53.svg +0 -139
  809. package/dist/img/Gold Badge.svg +0 -362
  810. package/dist/img/Gold Medal.svg +0 -481
  811. package/dist/img/GoldBadge.svg +0 -470
  812. package/dist/img/GoldBadgeWithoutRibbon.svg +0 -324
  813. package/dist/img/NewText.svg +0 -5
  814. package/dist/img/NualaCreateImage.svg +0 -129
  815. package/dist/img/NualaHeadphonesBackground.svg +0 -39
  816. package/dist/img/NualangLiveAnswerQuickly.svg +0 -103
  817. package/dist/img/NualangLiveAnwerQuicklyListening.svg +0 -3608
  818. package/dist/img/NualangLiveListen.png +0 -0
  819. package/dist/img/NualangLiveListen.svg +0 -42
  820. package/dist/img/NualangLiveListenQuickly.png +0 -0
  821. package/dist/img/NualangLiveListenToPhrase.svg +0 -4286
  822. package/dist/img/NualangLivePickAnswer.svg +0 -134
  823. package/dist/img/NualangLiveResult.png +0 -0
  824. package/dist/img/NualangLiveResult.svg +0 -1235
  825. package/dist/img/NualangLiveRoleplayAnswer.png +0 -0
  826. package/dist/img/NualangLiveRoleplayAnswer.svg +0 -334
  827. package/dist/img/NualangLiveRoleplayConvo.png +0 -0
  828. package/dist/img/NualangLiveRoleplayConvo.svg +0 -282
  829. package/dist/img/NualangLiveSeePlace.svg +0 -134
  830. package/dist/img/NualangLiveTranslate.png +0 -0
  831. package/dist/img/NualangLiveTranslate.svg +0 -54
  832. package/dist/img/NualangLiveTranslateQuickly.png +0 -0
  833. package/dist/img/NualangLiveTranslateQuickly.svg +0 -197
  834. package/dist/img/NualangLiveViewConversations.svg +0 -135
  835. package/dist/img/Polly.svg +0 -18
  836. package/dist/img/Silver Badge.svg +0 -523
  837. package/dist/img/Silver Medal.svg +0 -549
  838. package/dist/img/SilverBadge.svg +0 -655
  839. package/dist/img/SilverBadgeWithoutRibbon.svg +0 -491
  840. package/dist/img/aaron-square.jpg +0 -0
  841. package/dist/img/aaronAvatar.png +0 -0
  842. package/dist/img/add-file.svg +0 -1
  843. package/dist/img/avatars/0-nuala-001.svg +0 -34
  844. package/dist/img/avatars/0-nuala-002.svg +0 -25
  845. package/dist/img/avatars/0-nuala-003.svg +0 -27
  846. package/dist/img/avatars/0-nuala-004.svg +0 -41
  847. package/dist/img/avatars/0-nuala-005.svg +0 -33
  848. package/dist/img/avatars/0-nuala-006.svg +0 -32
  849. package/dist/img/avatars/0-nuala-007.svg +0 -37
  850. package/dist/img/avatars/0-nuala-008.svg +0 -21
  851. package/dist/img/avatars/0-nuala-009.svg +0 -21
  852. package/dist/img/avatars/0-nuala-010.svg +0 -39
  853. package/dist/img/avatars/0-nuala-011.svg +0 -33
  854. package/dist/img/avatars/0-nuala-012.svg +0 -43
  855. package/dist/img/avatars/0-nuala-013.svg +0 -36
  856. package/dist/img/avatars/0-nuala-014.svg +0 -30
  857. package/dist/img/avatars/0-nuala-015.svg +0 -28
  858. package/dist/img/avatars/0-nuala-016.svg +0 -24
  859. package/dist/img/avatars/0-nuala-017.svg +0 -31
  860. package/dist/img/avatars/0-nuala-018.svg +0 -29
  861. package/dist/img/avatars/0-nuala-019.svg +0 -57
  862. package/dist/img/avatars/0-nuala-020.svg +0 -30
  863. package/dist/img/avatars/0-nuala-021.svg +0 -28
  864. package/dist/img/avatars/001-man.svg +0 -104
  865. package/dist/img/avatars/002-girl.svg +0 -92
  866. package/dist/img/avatars/006-woman-1.svg +0 -99
  867. package/dist/img/avatars/028-woman-7.svg +0 -95
  868. package/dist/img/avatars/029-man-8.svg +0 -95
  869. package/dist/img/avatars/035-woman-9.svg +0 -86
  870. package/dist/img/avatars/066-boy-6.svg +0 -91
  871. package/dist/img/avatars/1-teacher-001.svg +0 -38
  872. package/dist/img/avatars/1-teacher-002.svg +0 -52
  873. package/dist/img/avatars/1-teacher-003.svg +0 -86
  874. package/dist/img/avatars/avatar1.png +0 -0
  875. package/dist/img/avatars/avatar2.png +0 -0
  876. package/dist/img/avatars/nuala_10_speaking.svg +0 -45
  877. package/dist/img/avatars/nuala_11_speaking.svg +0 -41
  878. package/dist/img/avatars/nuala_12_speaking.svg +0 -49
  879. package/dist/img/avatars/nuala_13_speaking.svg +0 -44
  880. package/dist/img/avatars/nuala_14_speaking.svg +0 -36
  881. package/dist/img/avatars/nuala_15_speaking.svg +0 -36
  882. package/dist/img/avatars/nuala_16_speaking.svg +0 -32
  883. package/dist/img/avatars/nuala_17_speaking.svg +0 -39
  884. package/dist/img/avatars/nuala_18_speaking.svg +0 -37
  885. package/dist/img/avatars/nuala_19_speaking.svg +0 -65
  886. package/dist/img/avatars/nuala_1_celebrating.svg +0 -30
  887. package/dist/img/avatars/nuala_1_speaking.svg +0 -37
  888. package/dist/img/avatars/nuala_20_speaking.svg +0 -38
  889. package/dist/img/avatars/nuala_21_speaking.svg +0 -36
  890. package/dist/img/avatars/nuala_2_speaking.svg +0 -29
  891. package/dist/img/avatars/nuala_3_speaking.svg +0 -28
  892. package/dist/img/avatars/nuala_4_speaking.svg +0 -41
  893. package/dist/img/avatars/nuala_5_speaking.svg +0 -36
  894. package/dist/img/avatars/nuala_6_speaking.svg +0 -36
  895. package/dist/img/avatars/nuala_7_speaking.svg +0 -43
  896. package/dist/img/avatars/nuala_8_speaking.svg +0 -29
  897. package/dist/img/avatars/nuala_9_speaking.svg +0 -27
  898. package/dist/img/aws.svg +0 -6
  899. package/dist/img/azure.svg +0 -10
  900. package/dist/img/bot-error.svg +0 -28
  901. package/dist/img/bot_nuala.svg +0 -45
  902. package/dist/img/classroom.svg +0 -178
  903. package/dist/img/connorAvatar.png +0 -0
  904. package/dist/img/course.svg +0 -113
  905. package/dist/img/dashboard.svg +0 -104
  906. package/dist/img/defaultImg.png +0 -0
  907. package/dist/img/google-classroom.svg +0 -1
  908. package/dist/img/jamieAvatar.png +0 -0
  909. package/dist/img/nuala_1_celebrating.svg +0 -33
  910. package/dist/img/nuala_2_celebrating.svg +0 -20
  911. package/dist/img/nuala_3_celebrating.svg +0 -21
  912. package/dist/img/nuala_4_celebrating.svg +0 -30
  913. package/dist/img/nuala_5_celebrating.svg +0 -30
  914. package/dist/img/nuala_celebrating.svg +0 -39
  915. package/dist/img/nuala_sign_in.svg +0 -62
  916. package/dist/img/nuala_speaking.svg +0 -41
  917. package/dist/img/nuala_speaking_2.svg +0 -41
  918. package/dist/img/nuala_speaking_3.svg +0 -41
  919. package/dist/img/nuala_speaking_4.svg +0 -41
  920. package/dist/img/nualang-logo-primary.svg +0 -17
  921. package/dist/img/nualangSquareIcon.svg +0 -18
  922. package/dist/img/nualas.svg +0 -185
  923. package/dist/img/photos.svg +0 -1
  924. package/dist/img/sentiment_dissatisfied_24px.svg +0 -3
  925. package/dist/img/sentiment_satisfied_24px.svg +0 -3
  926. package/dist/img/sentiment_very_satisfied_24px.svg +0 -3
  927. package/dist/img/soundWave.png +0 -0
  928. package/dist/img/stars1.svg +0 -44
  929. package/dist/img/stars2.svg +0 -30
  930. package/dist/img/stephenAvatar.png +0 -0
  931. package/dist/img/structuring.svg +0 -76
  932. package/dist/img/teacher-create-2.svg +0 -81
  933. package/dist/img/teacher-create.svg +0 -49
  934. package/dist/img/teacher-world.svg +0 -271
  935. package/dist/img/teacher.svg +0 -89
  936. package/dist/img/work-chat.svg +0 -1
  937. package/dist/img/world.svg +0 -41
  938. package/dist/index.js +0 -4
  939. package/dist/logger.js +0 -6
  940. package/dist/theme/colors/primary.js +0 -17
  941. package/dist/theme/colors/secondary.js +0 -17
  942. package/dist/theme/getComponents.js +0 -242
  943. package/dist/theme/index.js +0 -82
  944. package/dist/utils/Styles.js +0 -59
  945. package/dist/utils/canvasUtils.js +0 -55
  946. package/dist/utils/constants.js +0 -32
  947. package/dist/utils/currency-code-map.json +0 -1460
  948. package/dist/utils/dragAndDrop/dragAndDrop.js +0 -222
  949. package/dist/utils/index.js +0 -641
  950. package/dist/utils/japaneseTokenizer.js +0 -91
  951. package/dist/utils/languageHelpers.js +0 -41
  952. package/dist/utils/placeholder-images/index.js +0 -13
  953. package/dist/utils/voiceImages.js +0 -16
@@ -1,1542 +0,0 @@
1
- import { useEffect, useState, useCallback, useRef } from "react";
2
- import { Link as RouterLink, useNavigate, useParams } from "react-router";
3
- import { ListSubheader, List, ListItem, ListItemIcon, ListItemText, ListItemAvatar, ListItemSecondaryAction, IconButton, Button, Collapse, Typography, Box, Tooltip, Menu, MenuItem, Avatar } from "@mui/material";
4
- import { useTheme, alpha } from "@mui/material/styles";
5
- import { makeStyles } from "tss-react/mui";
6
- import CheckBox from "@mui/icons-material/CheckBox";
7
- import CheckBoxOutlineBlank from "@mui/icons-material/CheckBoxOutlineBlank";
8
- import AddCircle from "@mui/icons-material/AddCircle";
9
- import ArrowForward from "@mui/icons-material/ArrowForward";
10
- import DragHandle from "@mui/icons-material/DragHandle";
11
- import Add from "@mui/icons-material/Add";
12
- import Search from "@mui/icons-material/Search";
13
- import Delete from "@mui/icons-material/Delete";
14
- import Update from "@mui/icons-material/Create";
15
- import Show from "@mui/icons-material/Visibility";
16
- import Hidden from "@mui/icons-material/VisibilityOff";
17
- import PictureAsPdfIcon from "@mui/icons-material/PictureAsPdf";
18
- import { useDrag, useDrop } from "react-dnd";
19
- import update from "immutability-helper";
20
- import UpdateSectionDialog from "../../Dialogs/CreateSection/CreateSection";
21
- import QuickCreateTopicDialog from "../../Dialogs/QuickCreateTopicDialog/QuickCreateTopicDialog";
22
- import MoreVertIcon from "@mui/icons-material/MoreVert";
23
- import TimelineIcon from "@mui/icons-material/Timeline";
24
- import useMediaQuery from "@mui/material/useMediaQuery";
25
- import CopyIcon from "@mui/icons-material/FileCopy";
26
- import ImageSearchIcon from "@mui/icons-material/ImageSearch";
27
- import Skeleton from "@mui/material/Skeleton";
28
- import OndemandVideoIcon from "@mui/icons-material/OndemandVideo";
29
- import ColorLinearProgress from "../../Misc/ColorLinearProgress/ColorLinearProgress";
30
- import { calcCompletions, calcPercentageCompletion } from "../../utils/index";
31
- import SelectClassroom from "../../Dialogs/SelectClassroom/SelectClassroom";
32
- import FindTopicsDialog from "../../Dialogs/FindTopicsDialog/FindTopicsDialog";
33
- import { CardInfoSectionItem } from "../../Cards/CardElements";
34
- import { jsx as _jsx, jsxs as _jsxs, Fragment as _Fragment } from "react/jsx-runtime";
35
- const useStyles = makeStyles()(theme => ({
36
- root: {
37
- width: "100%"
38
- },
39
- nested: {
40
- paddingLeft: theme.spacing(4)
41
- },
42
- completed: {
43
- color: theme.palette.success.main
44
- },
45
- greenColor: {
46
- color: theme.palette.success ? theme.palette.success.main : ""
47
- }
48
- }));
49
- function OverflowMenu({
50
- children,
51
- anchorEl,
52
- handleClose
53
- }) {
54
- return /*#__PURE__*/_jsx(Menu, {
55
- anchorEl: anchorEl,
56
- keepMounted: true,
57
- open: Boolean(anchorEl),
58
- onClose: handleClose,
59
- children: children
60
- });
61
- }
62
- function ProgressIcon({
63
- completedCount
64
- }) {
65
- const {
66
- classes
67
- } = useStyles();
68
- return completedCount > 0 ? /*#__PURE__*/_jsx(Tooltip, {
69
- title: `Completed ${completedCount} ${completedCount === 1 ? "time" : "times"}`,
70
- children: /*#__PURE__*/_jsx(CheckBox, {
71
- className: classes.completed
72
- })
73
- }) : /*#__PURE__*/_jsx(CheckBoxOutlineBlank, {});
74
- }
75
- function Exercise({
76
- t,
77
- name,
78
- completedCount,
79
- courseId,
80
- sectionId,
81
- topicId,
82
- isMember,
83
- handleViewCourseTopic,
84
- classroomId
85
- }) {
86
- const {
87
- classes,
88
- cx
89
- } = useStyles();
90
- return /*#__PURE__*/_jsxs(ListItem, {
91
- button: true,
92
- className: classes.nested,
93
- onClick: () => handleViewCourseTopic(courseId, sectionId, topicId, classroomId),
94
- children: [isMember && /*#__PURE__*/_jsx(ListItemIcon, {
95
- children: /*#__PURE__*/_jsx(ProgressIcon, {
96
- completedCount: completedCount
97
- })
98
- }), /*#__PURE__*/_jsx(ListItemText, {
99
- primary: t(name),
100
- className: cx({
101
- [classes.nested]: !isMember
102
- })
103
- })]
104
- });
105
- }
106
- function ExerciseList({
107
- t,
108
- exercises = [],
109
- completion,
110
- isMember,
111
- classroomId,
112
- ...otherProps
113
- }) {
114
- const {
115
- classes,
116
- cx
117
- } = useStyles();
118
- const completedExerciseCount = exercises.reduce((acc, e) => {
119
- if (e.completedCount > 0) {
120
- acc += 1;
121
- }
122
- return acc;
123
- }, 0);
124
- return /*#__PURE__*/_jsx(List, {
125
- component: "div",
126
- disablePadding: true,
127
- subheader: /*#__PURE__*/_jsx(ListSubheader, {
128
- disableSticky: true,
129
- className: classes.nested,
130
- component: "div",
131
- id: "roleplay-list-subheader",
132
- children: /*#__PURE__*/_jsxs(Box, {
133
- sx: {
134
- display: "flex"
135
- },
136
- children: [/*#__PURE__*/_jsx(Box, {
137
- children: t("exercises")
138
- }), /*#__PURE__*/_jsx(Box, {
139
- sx: {
140
- flexGrow: 1
141
- }
142
- }), isMember && /*#__PURE__*/_jsxs(Box, {
143
- className: cx({
144
- [classes.completed]: completedExerciseCount === exercises.length
145
- }),
146
- children: [completedExerciseCount, " / ", exercises.length]
147
- })]
148
- })
149
- }),
150
- children: exercises.map((exercise, i) => {
151
- const keyId = `exerc_${exercise.name}${i}`;
152
- return /*#__PURE__*/_jsx(Exercise, {
153
- t: t,
154
- ...exercise,
155
- isMember: isMember,
156
- classroomId: classroomId,
157
- ...otherProps
158
- }, keyId);
159
- })
160
- });
161
- }
162
- function Roleplay({
163
- courseId,
164
- sectionId,
165
- topicId,
166
- roleplayName,
167
- isMember,
168
- completedCount,
169
- handleViewCourseTopic,
170
- classroomId
171
- }) {
172
- const {
173
- classes,
174
- cx
175
- } = useStyles();
176
- return /*#__PURE__*/_jsxs(ListItem, {
177
- button: true,
178
- className: classes.nested,
179
- onClick: () => handleViewCourseTopic(courseId, sectionId, topicId, classroomId),
180
- children: [isMember && /*#__PURE__*/_jsx(ListItemIcon, {
181
- children: /*#__PURE__*/_jsx(ProgressIcon, {
182
- completedCount: completedCount
183
- })
184
- }), /*#__PURE__*/_jsx(ListItemText, {
185
- primary: roleplayName,
186
- className: cx({
187
- [classes.nested]: !isMember
188
- })
189
- })]
190
- });
191
- }
192
- function RoleplayList({
193
- roleplays = [],
194
- completion = {},
195
- isMember,
196
- classroomId,
197
- ...otherProps
198
- }) {
199
- const {
200
- classes,
201
- cx
202
- } = useStyles();
203
- return /*#__PURE__*/_jsx(List, {
204
- component: "div",
205
- disablePadding: true,
206
- subheader: /*#__PURE__*/_jsx(ListSubheader, {
207
- disableSticky: true,
208
- className: classes.nested,
209
- component: "div",
210
- id: "roleplay-list-subheader",
211
- children: /*#__PURE__*/_jsxs(Box, {
212
- sx: {
213
- display: "flex"
214
- },
215
- children: [/*#__PURE__*/_jsx(Box, {
216
- children: "Roleplays"
217
- }), /*#__PURE__*/_jsx(Box, {
218
- sx: {
219
- flexGrow: 1
220
- }
221
- }), isMember && /*#__PURE__*/_jsxs(Box, {
222
- className: cx({
223
- [classes.completed]: completion.completed === completion.total
224
- }),
225
- children: [completion.completed, " / ", completion.total]
226
- })]
227
- })
228
- }),
229
- children: roleplays.map((roleplay, i) => {
230
- return /*#__PURE__*/_jsx(Roleplay, {
231
- ...roleplay,
232
- isMember: isMember,
233
- classroomId: classroomId,
234
- ...otherProps
235
- }, roleplay.roleplayId);
236
- })
237
- });
238
- }
239
- function Bot({
240
- courseId,
241
- sectionId,
242
- topicId,
243
- botName,
244
- isMember,
245
- completedCount,
246
- handleViewCourseTopic,
247
- classroomId
248
- }) {
249
- const {
250
- classes,
251
- cx
252
- } = useStyles();
253
- return /*#__PURE__*/_jsxs(ListItem, {
254
- button: true,
255
- className: classes.nested,
256
- onClick: () => handleViewCourseTopic(courseId, sectionId, topicId, classroomId),
257
- children: [isMember && /*#__PURE__*/_jsx(ListItemIcon, {
258
- children: /*#__PURE__*/_jsx(ProgressIcon, {
259
- completedCount: completedCount
260
- })
261
- }), /*#__PURE__*/_jsx(ListItemText, {
262
- primary: botName,
263
- className: cx({
264
- [classes.nested]: !isMember
265
- })
266
- })]
267
- });
268
- }
269
- function BotList({
270
- bots = [],
271
- completion = {},
272
- isMember,
273
- classroomId,
274
- ...otherProps
275
- }) {
276
- const {
277
- classes,
278
- cx
279
- } = useStyles();
280
- return /*#__PURE__*/_jsx(List, {
281
- component: "div",
282
- disablePadding: true,
283
- subheader: /*#__PURE__*/_jsx(ListSubheader, {
284
- disableSticky: true,
285
- className: classes.nested,
286
- component: "div",
287
- id: "bot-list-subheader",
288
- children: /*#__PURE__*/_jsxs(Box, {
289
- sx: {
290
- display: "flex"
291
- },
292
- children: [/*#__PURE__*/_jsx(Box, {
293
- children: "Bots"
294
- }), /*#__PURE__*/_jsx(Box, {
295
- sx: {
296
- flexGrow: 1
297
- }
298
- }), isMember && /*#__PURE__*/_jsxs(Box, {
299
- className: cx({
300
- [classes.completed]: completion.completed === completion.total
301
- }),
302
- children: [completion.completed, " / ", completion.total]
303
- })]
304
- })
305
- }),
306
- children: bots.map((bot, i) => {
307
- return /*#__PURE__*/_jsx(Bot, {
308
- ...bot,
309
- isMember: isMember,
310
- ...otherProps,
311
- classroomId: classroomId
312
- }, bot.botId);
313
- })
314
- });
315
- }
316
- function Topic({
317
- t,
318
- topic,
319
- courseId,
320
- sectionId,
321
- topicId,
322
- topicName,
323
- description,
324
- picture,
325
- roleplays = [],
326
- bots = [],
327
- completions = [],
328
- isCreator,
329
- isMember,
330
- handleViewCourseTopic,
331
- handleUpdateSectionTopic,
332
- handleDuplicateTopic,
333
- handleDeleteCourseSectionTopic,
334
- isTopicHidden,
335
- completion = {},
336
- sectionIndex,
337
- index,
338
- moveTopic,
339
- onDropSection,
340
- disableDrag,
341
- classroomId,
342
- courseSettings,
343
- showViewTopicButton,
344
- isClassroomArchived = false,
345
- ...otherProps
346
- }) {
347
- const theme = useTheme();
348
- const isLargeScreen = useMediaQuery(theme.breakpoints.up("sm"));
349
- const [open] = useState(false);
350
- const [anchorEl, setAnchorEl] = useState(null);
351
- const handleClickMenu = event => {
352
- setAnchorEl(event.currentTarget);
353
- };
354
- const handleCloseMenu = () => {
355
- setAnchorEl(null);
356
- };
357
- const handleTopicVisibility = async () => {
358
- await handleUpdateSectionTopic(courseId, sectionId, topicId, {
359
- isTopicHidden: !isTopicHidden
360
- });
361
- };
362
- const handleClick = () => {
363
- handleViewCourseTopic(courseId, sectionId, topicId, classroomId);
364
- };
365
- const exercises = [{
366
- name: "pronunciation",
367
- completedCount: completion && completion.pronunciation ? completion.pronunciation.completedCount : 0
368
- }, {
369
- name: "translation",
370
- completedCount: completion && completion.translation ? completion.translation.completedCount : 0
371
- }, {
372
- name: "listening",
373
- completedCount: completion && completion.listening ? completion.listening.completedCount : 0
374
- }];
375
- const ref = useRef(null);
376
- const [{
377
- handlerId
378
- }, drop] = useDrop({
379
- type: `${sectionId}-topic`,
380
- accept: `${sectionId}-topic`,
381
- hover(item, monitor) {
382
- if (!ref.current) {
383
- return;
384
- }
385
- const dragIndex = item.index;
386
- const hoverIndex = index;
387
- // Don't replace items with themselves
388
- if (dragIndex === hoverIndex) {
389
- return;
390
- }
391
- // Determine rectangle on screen
392
- const hoverBoundingRect = ref.current.getBoundingClientRect();
393
- // Get vertical middle
394
- const hoverMiddleY = (hoverBoundingRect.bottom - hoverBoundingRect.top) / 2;
395
- // Determine mouse position
396
- const clientOffset = monitor.getClientOffset();
397
- // Get pixels to the top
398
- const hoverClientY = clientOffset.y - hoverBoundingRect.top;
399
- // Only perform the move when the mouse has crossed half of the items height
400
- // When dragging downwards, only move when the cursor is below 50%
401
- // When dragging upwards, only move when the cursor is above 50%
402
- // Dragging downwards
403
- if (dragIndex < hoverIndex && hoverClientY < hoverMiddleY) {
404
- return;
405
- }
406
- // Dragging upwards
407
- if (dragIndex > hoverIndex && hoverClientY > hoverMiddleY) {
408
- return;
409
- }
410
- // Time to actually perform the action
411
- moveTopic(sectionIndex, dragIndex, hoverIndex);
412
- // Note: we're mutating the monitor item here!
413
- // Generally it's better to avoid mutations,
414
- // but it's good here for the sake of performance
415
- // to avoid expensive index searches.
416
- item.index = hoverIndex;
417
- }
418
- });
419
- const [{
420
- isDragging
421
- }, drag] = useDrag({
422
- type: `${sectionId}-topic`,
423
- canDrag: isCreator && isLargeScreen && !disableDrag ? true : false,
424
- item: {
425
- topicId,
426
- index,
427
- primary: topicName,
428
- secondary: description,
429
- image: picture
430
- },
431
- collect: monitor => ({
432
- isDragging: monitor.isDragging()
433
- }),
434
- end: (dropResult, monitor) => {
435
- onDropSection();
436
- }
437
- });
438
- const opacity = isDragging ? 0 : 1;
439
- drag(drop(ref));
440
- return /*#__PURE__*/_jsxs(_Fragment, {
441
- children: [(!isTopicHidden || isCreator) && /*#__PURE__*/_jsxs(ListItem, {
442
- display: "flex",
443
- alignItems: "center",
444
- justifyContent: "space-between",
445
- ref: ref,
446
- style: {
447
- opacity,
448
- cursor: handleClick ? "pointer" : "default"
449
- },
450
- button: true,
451
- onClick: isClassroomArchived ? null : handleClick,
452
- "data-cy": "topic-list-item",
453
- children: [isLargeScreen && /*#__PURE__*/_jsx(ListItemAvatar, {
454
- children: picture ? /*#__PURE__*/_jsx(Avatar, {
455
- src: picture,
456
- alt: ""
457
- }) : /*#__PURE__*/_jsx(Avatar, {
458
- alt: "",
459
- children: /*#__PURE__*/_jsx(ImageSearchIcon, {})
460
- })
461
- }), /*#__PURE__*/_jsx(Box, {
462
- sx: {
463
- fontWeight: "fontWeightBold",
464
- width: "100%"
465
- },
466
- children: /*#__PURE__*/_jsx(ListItemText, {
467
- primary: isLargeScreen ? topicName || "" : /*#__PURE__*/_jsxs(_Fragment, {
468
- children: [/*#__PURE__*/_jsx(Box, {
469
- sx: {
470
- mb: 1
471
- },
472
- children: picture ? /*#__PURE__*/_jsx(Avatar, {
473
- src: picture,
474
- alt: ""
475
- }) : /*#__PURE__*/_jsx(Avatar, {
476
- alt: "",
477
- children: /*#__PURE__*/_jsx(ImageSearchIcon, {})
478
- })
479
- }), /*#__PURE__*/_jsx(Typography, {
480
- variant: "body1",
481
- children: topicName || ""
482
- })]
483
- }),
484
- secondary: /*#__PURE__*/_jsxs(_Fragment, {
485
- children: [/*#__PURE__*/_jsx(Typography, {
486
- sx: theme => ({
487
- maxWidth: "85%",
488
- [theme.breakpoints.down("sm")]: {
489
- maxWidth: "70%"
490
- },
491
- [theme.breakpoints.down("md")]: {
492
- maxWidth: "50%"
493
- },
494
- [theme.breakpoints.down("lg")]: {
495
- maxWidth: isLargeScreen ? "40%" : "80%"
496
- }
497
- }),
498
- variant: "body2",
499
- component: "p",
500
- color: "textSecondary",
501
- children: description
502
- }), /*#__PURE__*/_jsxs(Box, {
503
- sx: {
504
- display: "flex",
505
- alignItems: "center",
506
- mt: 1
507
- },
508
- children: [topic?.pdf && /*#__PURE__*/_jsx(Box, {
509
- sx: {
510
- display: "flex",
511
- alignItems: "center"
512
- },
513
- children: /*#__PURE__*/_jsxs(CardInfoSectionItem, {
514
- variant: "body2",
515
- component: "span",
516
- children: [/*#__PURE__*/_jsx(PictureAsPdfIcon, {}), /*#__PURE__*/_jsx(Typography, {
517
- variant: "caption",
518
- sx: {
519
- ml: 0.5,
520
- color: theme => theme.palette.text.primary
521
- },
522
- children: t("story_included")
523
- })]
524
- })
525
- }), topic?.videoUrl && /*#__PURE__*/_jsx(Box, {
526
- sx: {
527
- display: "flex",
528
- alignItems: "center",
529
- ml: 1
530
- },
531
- children: /*#__PURE__*/_jsxs(CardInfoSectionItem, {
532
- variant: "body2",
533
- component: "span",
534
- children: [/*#__PURE__*/_jsx(OndemandVideoIcon, {}), /*#__PURE__*/_jsx(Typography, {
535
- variant: "caption",
536
- sx: {
537
- ml: 0.5,
538
- color: theme => theme.palette.text.primary
539
- },
540
- children: t("video_included")
541
- })]
542
- })
543
- })]
544
- }), isMember && !isCreator && /*#__PURE__*/_jsxs(Box, {
545
- sx: {
546
- display: "flex",
547
- alignItems: "center",
548
- justifyContent: "space-between",
549
- mt: 1,
550
- width: isLargeScreen ? "40%" : "100%"
551
- },
552
- children: [/*#__PURE__*/_jsx(Box, {
553
- sx: {
554
- display: "inline",
555
- flexGrow: 1
556
- },
557
- children: /*#__PURE__*/_jsx(Tooltip, {
558
- title: `Completed ${completion.completed} / ${completion.total} exercises`,
559
- children: /*#__PURE__*/_jsx(ColorLinearProgress, {
560
- variant: "determinate",
561
- value: completion.percentage
562
- })
563
- })
564
- }), /*#__PURE__*/_jsxs(Box, {
565
- sx: {
566
- ml: 1,
567
- fontSize: 14,
568
- minWidth: 35
569
- },
570
- children: [completion && completion.percentage ? completion.percentage.toFixed(0) : 0, "%"]
571
- })]
572
- })]
573
- })
574
- })
575
- }), /*#__PURE__*/_jsxs(ListItemSecondaryAction, {
576
- children: [isMember && !isCreator && showViewTopicButton && /*#__PURE__*/_jsx(IconButton, {
577
- onClick: handleClick,
578
- "aria-label": "View topic",
579
- tabIndex: "-1",
580
- children: /*#__PURE__*/_jsx(ArrowForward, {})
581
- }), isCreator && isLargeScreen && /*#__PURE__*/_jsx(Tooltip, {
582
- title: t("duplicate_topic"),
583
- children: /*#__PURE__*/_jsx("span", {
584
- children: /*#__PURE__*/_jsx(IconButton, {
585
- onClick: e => {
586
- e.stopPropagation();
587
- handleDuplicateTopic(courseId, sectionId, topicId);
588
- },
589
- "aria-label": "Duplicate topic",
590
- disabled: isCreator ? false : true,
591
- children: /*#__PURE__*/_jsx(CopyIcon, {})
592
- })
593
- })
594
- }), isCreator && isLargeScreen && /*#__PURE__*/_jsx(Tooltip, {
595
- title: t("delete_topic"),
596
- children: /*#__PURE__*/_jsx("span", {
597
- children: /*#__PURE__*/_jsx(IconButton, {
598
- onClick: e => {
599
- e.stopPropagation();
600
- handleDeleteCourseSectionTopic(courseId, sectionId, topicId);
601
- },
602
- "aria-label": "Remove topic",
603
- disabled: isCreator ? false : true,
604
- children: /*#__PURE__*/_jsx(Delete, {})
605
- })
606
- })
607
- }), isCreator && isLargeScreen && /*#__PURE__*/_jsx(Tooltip, {
608
- title: isTopicHidden ? t("show_topic") : t("hide_topic"),
609
- children: /*#__PURE__*/_jsx("span", {
610
- children: /*#__PURE__*/_jsx(IconButton, {
611
- onClick: e => {
612
- e.stopPropagation();
613
- handleTopicVisibility(e);
614
- },
615
- "aria-label": "Toggle Topic Visibility",
616
- disabled: isCreator ? false : true,
617
- children: isTopicHidden ? /*#__PURE__*/_jsx(Hidden, {}) : /*#__PURE__*/_jsx(Show, {})
618
- })
619
- })
620
- }), isCreator && !isLargeScreen && /*#__PURE__*/_jsx(Tooltip, {
621
- title: t("more_options"),
622
- children: /*#__PURE__*/_jsx("span", {
623
- children: /*#__PURE__*/_jsx(IconButton, {
624
- "aria-label": t("more_options"),
625
- disabled: isCreator ? false : true,
626
- onClick: e => {
627
- e.stopPropagation();
628
- handleClickMenu(e);
629
- },
630
- "aria-expanded": Boolean(anchorEl),
631
- children: /*#__PURE__*/_jsx(MoreVertIcon, {})
632
- })
633
- })
634
- }), isCreator && /*#__PURE__*/_jsx(Tooltip, {
635
- title: t("move_topic"),
636
- children: /*#__PURE__*/_jsx(IconButton, {
637
- "data-handler-id": handlerId,
638
- style: {
639
- cursor: "move"
640
- },
641
- "aria-label": "Move Topic",
642
- disabled: isCreator ? false : true,
643
- children: /*#__PURE__*/_jsx(DragHandle, {})
644
- })
645
- })]
646
- })]
647
- }), /*#__PURE__*/_jsxs(Collapse, {
648
- in: open,
649
- timeout: "auto",
650
- unmountOnExit: true,
651
- children: [/*#__PURE__*/_jsx(ExerciseList, {
652
- t: t,
653
- topicInfo: {
654
- topicName,
655
- description
656
- },
657
- exercises: exercises,
658
- isMember: isMember,
659
- completion: completion,
660
- courseId: courseId,
661
- sectionId: sectionId,
662
- topicId: topicId,
663
- handleViewCourseTopic: handleViewCourseTopic,
664
- classroomId: classroomId,
665
- courseSettings: courseSettings,
666
- ...otherProps
667
- }), /*#__PURE__*/_jsx(RoleplayList, {
668
- t: t,
669
- roleplays: roleplays,
670
- isMember: isMember,
671
- completion: completion ? completion.roleplays : {},
672
- courseId: courseId,
673
- sectionId: sectionId,
674
- topicId: topicId,
675
- handleViewCourseTopic: handleViewCourseTopic,
676
- classroomId: classroomId,
677
- ...otherProps
678
- }), /*#__PURE__*/_jsx(BotList, {
679
- t: t,
680
- bots: bots,
681
- isMember: isMember,
682
- completion: completion ? completion.bots : {},
683
- courseId: courseId,
684
- sectionId: sectionId,
685
- topicId: topicId,
686
- handleViewCourseTopic: handleViewCourseTopic,
687
- classroomId: classroomId,
688
- ...otherProps
689
- })]
690
- }), /*#__PURE__*/_jsxs(OverflowMenu, {
691
- anchorEl: anchorEl,
692
- handleClose: handleCloseMenu,
693
- children: [/*#__PURE__*/_jsxs(MenuItem, {
694
- onClick: handleTopicVisibility,
695
- "aria-label": "topic_visibility",
696
- disabled: isCreator ? false : true,
697
- children: [/*#__PURE__*/_jsx(ListItemIcon, {
698
- children: isTopicHidden ? /*#__PURE__*/_jsx(Hidden, {}) : /*#__PURE__*/_jsx(Show, {})
699
- }), /*#__PURE__*/_jsx(ListItemText, {
700
- primary: isTopicHidden ? t("show_topic") : t("hide_topic")
701
- })]
702
- }), /*#__PURE__*/_jsxs(MenuItem, {
703
- onClick: () => handleDeleteCourseSectionTopic(courseId, sectionId, topicId),
704
- "aria-label": "Remove topic",
705
- disabled: isCreator ? false : true,
706
- children: [/*#__PURE__*/_jsx(ListItemIcon, {
707
- children: /*#__PURE__*/_jsx(Delete, {})
708
- }), /*#__PURE__*/_jsx(ListItemText, {
709
- primary: t("delete_topic")
710
- })]
711
- })]
712
- })]
713
- });
714
- }
715
- function TopicList({
716
- topics = [],
717
- handleUpdateTopics,
718
- sectionId,
719
- handleDuplicateTopic,
720
- handleUpdateSectionTopic,
721
- isCreator,
722
- disableDrag,
723
- classroomId,
724
- courseSettings,
725
- showViewTopicButton,
726
- loading,
727
- isClassroomArchived = false,
728
- ...otherProps
729
- }) {
730
- const onDropSection = () => {
731
- handleUpdateTopics(sectionId, topics);
732
- };
733
- const duplicateTopic = (courseId, sectionId, topicId) => {
734
- const foundTopic = topics.find(t => t.topicId === topicId);
735
- handleDuplicateTopic(courseId, sectionId, topicId, foundTopic);
736
- };
737
- topics.sort((a, b) => a.idx - b.idx);
738
- return /*#__PURE__*/_jsx(_Fragment, {
739
- children: topics.map((topic, i) => {
740
- return /*#__PURE__*/_jsx(Topic, {
741
- index: i,
742
- topics: topics,
743
- topicLength: topics.length,
744
- onDropSection: onDropSection,
745
- handleUpdateSectionTopic: handleUpdateSectionTopic,
746
- handleDuplicateTopic: duplicateTopic,
747
- sectionId: sectionId,
748
- disableDrag: disableDrag,
749
- ...topic,
750
- ...otherProps,
751
- picture: topic.picture,
752
- isCreator: isCreator,
753
- completion: topic.completion,
754
- classroomId: classroomId,
755
- courseSettings: courseSettings,
756
- showViewTopicButton: showViewTopicButton,
757
- videoUrl: topic?.videoUrl,
758
- loading: loading,
759
- topic: topic,
760
- isClassroomArchived: isClassroomArchived
761
- }, `${sectionId}-${topic.topicId}`);
762
- })
763
- });
764
- }
765
- function Section({
766
- t,
767
- courseId,
768
- sectionId,
769
- isCreator,
770
- sectionName,
771
- isHidden,
772
- isMember,
773
- topics = [],
774
- handleDeleteCourseSection,
775
- handleUpdateCourseSection,
776
- handleUpdateSectionTopic,
777
- handleDuplicateTopic,
778
- handleCreateCourseSectionTopic,
779
- handleQuickCreateCourseSectionTopic,
780
- handleFindCourseSectionTopic,
781
- handleAddTopicsToSection,
782
- communityTopics,
783
- getTeachTopics,
784
- isLoadingLibraryTopics = false,
785
- isLoadingCommunityTopics = false,
786
- onLoadMoreCommunity,
787
- hasMoreCommunity = false,
788
- isLoadingMoreCommunity = false,
789
- moveSection,
790
- moveTopic,
791
- index,
792
- onDropSection,
793
- teachClassrooms,
794
- disableDrag,
795
- courseSettings,
796
- showViewTopicButton,
797
- isClassroomArchived = false,
798
- fileSizeLimit,
799
- verificationStatus,
800
- difficulty,
801
- learnLang,
802
- forLang,
803
- userImage,
804
- coursePicture,
805
- ...otherProps
806
- }) {
807
- const {
808
- classes
809
- } = useStyles();
810
- const theme = useTheme();
811
- const isLargeScreen = useMediaQuery(theme.breakpoints.up("sm"));
812
- const initialSectionState = {
813
- sectionName: sectionName
814
- };
815
- const [section, setSection] = useState(initialSectionState);
816
- const [libraryTopics, setLibraryTopics] = useState([]);
817
- const [isSelectClassroomDialogOpen, setIsSelectClassroomDialogOpen] = useState(false);
818
- const params = useParams();
819
- const {
820
- classroomId
821
- } = params;
822
- const handleOpenSelectClassroomDialog = () => {
823
- setIsSelectClassroomDialogOpen(true);
824
- };
825
- const handleCloseSelectClassroomDialog = () => {
826
- setIsSelectClassroomDialogOpen(false);
827
- };
828
- const handleSectionChange = event => {
829
- const value = event.target.value;
830
- const name = event.target.name;
831
- setSection(prevSection => ({
832
- ...prevSection,
833
- [name]: value
834
- }));
835
- };
836
- const handleUpdateSection = async () => {
837
- await handleUpdateCourseSection(sectionId, section);
838
- handleCloseUpdateSection();
839
- };
840
- const handleSectionVisibility = async () => {
841
- await handleUpdateCourseSection(sectionId, {
842
- isHidden: !isHidden
843
- });
844
- };
845
- const [isUpdateSectionOpen, setIsUpdateSectionOpen] = useState(false);
846
- const handleClickOpenUpdateSection = () => {
847
- setIsUpdateSectionOpen(true);
848
- };
849
- const handleCloseUpdateSection = () => {
850
- setIsUpdateSectionOpen(false);
851
- };
852
- const [isQuickCreateTopicOpen, setIsQuickCreateTopicOpen] = useState(false);
853
- const [isFindTopicOpen, setIsFindTopicOpen] = useState(false);
854
- const handleFindTopic = () => {
855
- handleFindCourseSectionTopic?.(sectionId);
856
- setIsFindTopicOpen(true);
857
- };
858
- const [addTopicMenuAnchorEl, setAddTopicMenuAnchorEl] = useState(null);
859
- const handleOpenAddTopicMenu = event => setAddTopicMenuAnchorEl(event.currentTarget);
860
- const handleCloseAddTopicMenu = () => setAddTopicMenuAnchorEl(null);
861
- const ref = useRef(null);
862
- const [{
863
- handlerId
864
- }, drop] = useDrop({
865
- accept: "section",
866
- hover(item, monitor) {
867
- if (!ref.current) {
868
- return;
869
- }
870
- const dragIndex = item.index;
871
- const hoverIndex = index;
872
- // Don't replace items with themselves
873
- if (dragIndex === hoverIndex) {
874
- return;
875
- }
876
- // Determine rectangle on screen
877
- const hoverBoundingRect = ref.current.getBoundingClientRect();
878
- // Get vertical middle
879
- const hoverMiddleY = (hoverBoundingRect.bottom - hoverBoundingRect.top) / 2;
880
- // Determine mouse position
881
- const clientOffset = monitor.getClientOffset();
882
- // Get pixels to the top
883
- const hoverClientY = clientOffset.y - hoverBoundingRect.top;
884
- // Only perform the move when the mouse has crossed half of the items height
885
- // When dragging downwards, only move when the cursor is below 50%
886
- // When dragging upwards, only move when the cursor is above 50%
887
- // Dragging downwards
888
- if (dragIndex < hoverIndex && hoverClientY < hoverMiddleY) {
889
- return;
890
- }
891
- // Dragging upwards
892
- if (dragIndex > hoverIndex && hoverClientY > hoverMiddleY) {
893
- return;
894
- }
895
- // Time to actually perform the action
896
- moveSection(dragIndex, hoverIndex);
897
- // Note: we're mutating the monitor item here!
898
- // Generally it's better to avoid mutations,
899
- // but it's good here for the sake of performance
900
- // to avoid expensive index searches.
901
- item.index = hoverIndex;
902
- }
903
- });
904
- const [{
905
- isDragging
906
- }, drag] = useDrag({
907
- type: "section",
908
- canDrag: isCreator && isLargeScreen && !disableDrag ? true : false,
909
- item: {
910
- sectionId,
911
- index,
912
- primary: sectionName
913
- },
914
- collect: monitor => ({
915
- isDragging: monitor.isDragging()
916
- }),
917
- end: () => {
918
- onDropSection();
919
- }
920
- });
921
- const opacity = isDragging ? 0 : 1;
922
- drag(drop(ref));
923
- const [anchorEl, setAnchorEl] = useState(null);
924
- const handleClickMenu = event => {
925
- setAnchorEl(event.currentTarget);
926
- };
927
- const handleCloseMenu = () => {
928
- setAnchorEl(null);
929
- };
930
- const navigate = useNavigate();
931
- const getMyLibraryTopics = async sectionId => {
932
- const teachTopics = await getTeachTopics(sectionId);
933
- setLibraryTopics(teachTopics);
934
- };
935
- useEffect(() => {
936
- if (isFindTopicOpen) {
937
- getMyLibraryTopics(sectionId);
938
- }
939
- }, [isFindTopicOpen, sectionId]);
940
- return /*#__PURE__*/_jsxs(_Fragment, {
941
- children: [(!isHidden || isCreator) && /*#__PURE__*/_jsxs(List, {
942
- ref: ref,
943
- style: {
944
- opacity
945
- },
946
- component: "nav",
947
- "aria-labelledby": "section-list-subheader",
948
- subheader: /*#__PURE__*/_jsx(ListSubheader, {
949
- disableSticky: true,
950
- component: "div",
951
- id: "section-list-subheader",
952
- children: /*#__PURE__*/_jsxs(Box, {
953
- sx: {
954
- display: "flex"
955
- },
956
- children: [/*#__PURE__*/_jsx(Box, {
957
- sx: {
958
- fontWeight: "fontWeightBold",
959
- flexGrow: 1
960
- },
961
- children: sectionName
962
- }), !isLargeScreen ? /*#__PURE__*/_jsxs(_Fragment, {
963
- children: [/*#__PURE__*/_jsx(Box, {
964
- children: isCreator ? /*#__PURE__*/_jsx(Tooltip, {
965
- title: t("more_options"),
966
- children: /*#__PURE__*/_jsx("span", {
967
- children: /*#__PURE__*/_jsx(IconButton, {
968
- "aria-label": t("more_options"),
969
- disabled: isCreator ? false : true,
970
- onClick: handleClickMenu,
971
- "aria-expanded": Boolean(anchorEl),
972
- children: /*#__PURE__*/_jsx(MoreVertIcon, {})
973
- })
974
- })
975
- }) : null
976
- }), /*#__PURE__*/_jsxs(OverflowMenu, {
977
- anchorEl: anchorEl,
978
- handleClose: handleCloseMenu,
979
- children: [/*#__PURE__*/_jsxs(MenuItem, {
980
- onClick: () => {
981
- setIsQuickCreateTopicOpen(true);
982
- handleCloseMenu();
983
- },
984
- "aria-label": t("create_topic") || "Create Topic",
985
- disabled: isCreator ? false : true,
986
- children: [/*#__PURE__*/_jsx(ListItemIcon, {
987
- children: /*#__PURE__*/_jsx(AddCircle, {})
988
- }), /*#__PURE__*/_jsx(ListItemText, {
989
- primary: t("create_topic")
990
- })]
991
- }), /*#__PURE__*/_jsxs(MenuItem, {
992
- onClick: () => {
993
- handleFindTopic();
994
- handleCloseMenu();
995
- },
996
- "aria-label": t("find_topic"),
997
- disabled: isCreator ? false : true,
998
- children: [/*#__PURE__*/_jsx(ListItemIcon, {
999
- children: /*#__PURE__*/_jsx(Search, {})
1000
- }), /*#__PURE__*/_jsx(ListItemText, {
1001
- primary: t("find_topic")
1002
- })]
1003
- }), /*#__PURE__*/_jsxs(MenuItem, {
1004
- component: RouterLink,
1005
- to: `/courses/${courseId}/${sectionId}/activity`,
1006
- "aria-label": t("view_activity"),
1007
- disabled: isCreator ? false : true,
1008
- children: [/*#__PURE__*/_jsx(ListItemIcon, {
1009
- children: /*#__PURE__*/_jsx(TimelineIcon, {})
1010
- }), /*#__PURE__*/_jsx(ListItemText, {
1011
- primary: t("view_activity")
1012
- })]
1013
- }), /*#__PURE__*/_jsxs(MenuItem, {
1014
- onClick: handleClickOpenUpdateSection,
1015
- "aria-label": t("update_section"),
1016
- disabled: isCreator ? false : true,
1017
- children: [/*#__PURE__*/_jsx(ListItemIcon, {
1018
- children: /*#__PURE__*/_jsx(Update, {})
1019
- }), /*#__PURE__*/_jsx(ListItemText, {
1020
- primary: t("update_section")
1021
- })]
1022
- }), /*#__PURE__*/_jsxs(MenuItem, {
1023
- onClick: () => handleDeleteCourseSection(courseId, sectionId),
1024
- "aria-label": t("delete_section"),
1025
- disabled: isCreator ? false : true,
1026
- children: [/*#__PURE__*/_jsx(ListItemIcon, {
1027
- children: /*#__PURE__*/_jsx(Delete, {})
1028
- }), /*#__PURE__*/_jsx(ListItemText, {
1029
- primary: t("delete_section")
1030
- })]
1031
- }), /*#__PURE__*/_jsxs(MenuItem, {
1032
- onClick: handleSectionVisibility,
1033
- "aria-label": t("section_visibility"),
1034
- disabled: isCreator ? false : true,
1035
- children: [/*#__PURE__*/_jsx(ListItemIcon, {
1036
- children: isHidden ? /*#__PURE__*/_jsx(Hidden, {}) : /*#__PURE__*/_jsx(Show, {})
1037
- }), /*#__PURE__*/_jsx(ListItemText, {
1038
- primary: t("section_visibility")
1039
- })]
1040
- })]
1041
- }), /*#__PURE__*/_jsx(Box, {
1042
- children: isCreator ? /*#__PURE__*/_jsx(Tooltip, {
1043
- title: t("move_section"),
1044
- children: /*#__PURE__*/_jsx(IconButton, {
1045
- "data-handler-id": handlerId,
1046
- style: {
1047
- cursor: "move"
1048
- },
1049
- "aria-label": "Move Section",
1050
- disabled: isCreator ? false : true,
1051
- children: /*#__PURE__*/_jsx(DragHandle, {})
1052
- })
1053
- }) : null
1054
- })]
1055
- }) : /*#__PURE__*/_jsxs(_Fragment, {
1056
- children: [/*#__PURE__*/_jsx(Box, {
1057
- children: /*#__PURE__*/_jsx(Tooltip, {
1058
- title: t("view_activity"),
1059
- children: (isCreator || isMember && classroomId) && /*#__PURE__*/_jsx(IconButton, {
1060
- "data-cy": "section-view-activity",
1061
- onClick: () => {
1062
- if (isCreator) {
1063
- handleOpenSelectClassroomDialog();
1064
- } else if (isMember && classroomId) {
1065
- navigate(`/classrooms/${classroomId}?courseId=${courseId}#Progress`);
1066
- }
1067
- },
1068
- "aria-label": t("view_activity"),
1069
- children: /*#__PURE__*/_jsx(TimelineIcon, {})
1070
- })
1071
- })
1072
- }), /*#__PURE__*/_jsx(Box, {
1073
- children: isCreator ? /*#__PURE__*/_jsx(Tooltip, {
1074
- title: t("update_section"),
1075
- children: /*#__PURE__*/_jsx("span", {
1076
- children: /*#__PURE__*/_jsx(IconButton, {
1077
- onClick: handleClickOpenUpdateSection,
1078
- "aria-label": t("update_section"),
1079
- disabled: isCreator ? false : true,
1080
- children: /*#__PURE__*/_jsx(Update, {})
1081
- })
1082
- })
1083
- }) : null
1084
- }), /*#__PURE__*/_jsx(Box, {
1085
- children: isCreator ? /*#__PURE__*/_jsx(Tooltip, {
1086
- title: t("delete_section"),
1087
- children: /*#__PURE__*/_jsx("span", {
1088
- children: /*#__PURE__*/_jsx(IconButton, {
1089
- onClick: () => handleDeleteCourseSection(courseId, sectionId),
1090
- "aria-label": t("delete_section"),
1091
- disabled: isCreator ? false : true,
1092
- children: /*#__PURE__*/_jsx(Delete, {})
1093
- })
1094
- })
1095
- }) : null
1096
- }), /*#__PURE__*/_jsx(Box, {
1097
- children: isCreator ? /*#__PURE__*/_jsx(Tooltip, {
1098
- title: isHidden ? t("show_section") : t("hide_section"),
1099
- children: /*#__PURE__*/_jsx("span", {
1100
- children: /*#__PURE__*/_jsx(IconButton, {
1101
- onClick: handleSectionVisibility,
1102
- "aria-label": t("section_visibility"),
1103
- disabled: isCreator ? false : true,
1104
- children: isHidden ? /*#__PURE__*/_jsx(Hidden, {}) : /*#__PURE__*/_jsx(Show, {})
1105
- })
1106
- })
1107
- }) : null
1108
- }), /*#__PURE__*/_jsx(Box, {
1109
- children: isCreator ? /*#__PURE__*/_jsx(Tooltip, {
1110
- title: t("move_section"),
1111
- children: /*#__PURE__*/_jsx(IconButton, {
1112
- "data-handler-id": handlerId,
1113
- style: {
1114
- cursor: "move"
1115
- },
1116
- "aria-label": "Move Section",
1117
- disabled: isCreator ? false : true,
1118
- children: /*#__PURE__*/_jsx(DragHandle, {})
1119
- })
1120
- }) : null
1121
- })]
1122
- })]
1123
- })
1124
- }),
1125
- className: classes.root,
1126
- children: [/*#__PURE__*/_jsxs("div", {
1127
- className: classes.nested,
1128
- children: [/*#__PURE__*/_jsx(TopicList, {
1129
- t: t,
1130
- topics: topics,
1131
- isCreator: isCreator,
1132
- courseId: courseId,
1133
- sectionId: sectionId,
1134
- sectionIndex: index,
1135
- handleUpdateSectionTopic: handleUpdateSectionTopic,
1136
- handleDuplicateTopic: handleDuplicateTopic,
1137
- moveTopic: moveTopic,
1138
- isMember: isMember,
1139
- disableDrag: disableDrag,
1140
- courseSettings: courseSettings,
1141
- showViewTopicButton: showViewTopicButton,
1142
- isClassroomArchived: isClassroomArchived,
1143
- ...otherProps
1144
- }), isCreator && /*#__PURE__*/_jsxs(_Fragment, {
1145
- children: [/*#__PURE__*/_jsxs(ListItem, {
1146
- button: true,
1147
- onClick: handleOpenAddTopicMenu,
1148
- "data-cy": "create-topic",
1149
- children: [/*#__PURE__*/_jsx(ListItemIcon, {
1150
- children: /*#__PURE__*/_jsx(Add, {
1151
- className: classes.greenColor
1152
- })
1153
- }), /*#__PURE__*/_jsx(ListItemText, {
1154
- primary: t("add_new")
1155
- })]
1156
- }), /*#__PURE__*/_jsxs(Menu, {
1157
- anchorEl: addTopicMenuAnchorEl,
1158
- open: Boolean(addTopicMenuAnchorEl),
1159
- onClose: handleCloseAddTopicMenu,
1160
- PaperProps: {
1161
- sx: {
1162
- borderRadius: 2,
1163
- minWidth: 360,
1164
- p: 0.5
1165
- }
1166
- },
1167
- children: [/*#__PURE__*/_jsxs(MenuItem, {
1168
- onClick: () => {
1169
- setIsQuickCreateTopicOpen(true);
1170
- handleCloseAddTopicMenu();
1171
- },
1172
- sx: {
1173
- borderRadius: 1.5,
1174
- mb: 0.5,
1175
- "&:hover": {
1176
- bgcolor: theme => alpha(theme.palette.primary.main, 0.08),
1177
- "& .MuiListItemIcon-root": {
1178
- color: "primary.main"
1179
- },
1180
- "& .MuiListItemText-primary": {
1181
- color: "primary.main"
1182
- }
1183
- }
1184
- },
1185
- children: [/*#__PURE__*/_jsx(ListItemIcon, {
1186
- children: /*#__PURE__*/_jsx(AddCircle, {})
1187
- }), /*#__PURE__*/_jsx(ListItemText, {
1188
- primary: t("create_topic") || "Create Topic"
1189
- })]
1190
- }), /*#__PURE__*/_jsxs(MenuItem, {
1191
- onClick: () => {
1192
- handleFindTopic();
1193
- handleCloseAddTopicMenu();
1194
- },
1195
- sx: {
1196
- borderRadius: 1.5,
1197
- mb: 0.5,
1198
- "&:hover": {
1199
- bgcolor: theme => alpha(theme.palette.primary.main, 0.08),
1200
- "& .MuiListItemIcon-root": {
1201
- color: "primary.main"
1202
- },
1203
- "& .MuiListItemText-primary": {
1204
- color: "primary.main"
1205
- }
1206
- }
1207
- },
1208
- children: [/*#__PURE__*/_jsx(ListItemIcon, {
1209
- children: /*#__PURE__*/_jsx(Search, {})
1210
- }), /*#__PURE__*/_jsx(ListItemText, {
1211
- primary: t("find_topic") || "Find Topic"
1212
- })]
1213
- })]
1214
- })]
1215
- })]
1216
- }), /*#__PURE__*/_jsx(UpdateSectionDialog, {
1217
- t: t,
1218
- section: section,
1219
- handleInputChange: handleSectionChange,
1220
- open: isUpdateSectionOpen,
1221
- handleClose: handleCloseUpdateSection,
1222
- handleSubmit: handleUpdateSection,
1223
- update: true
1224
- }), /*#__PURE__*/_jsx(QuickCreateTopicDialog, {
1225
- t: t,
1226
- open: isQuickCreateTopicOpen,
1227
- handleClose: () => setIsQuickCreateTopicOpen(false),
1228
- handleCreate: values => handleQuickCreateCourseSectionTopic(values, sectionId),
1229
- onCreated: () => setIsQuickCreateTopicOpen(false),
1230
- fileSizeLimit: fileSizeLimit,
1231
- verificationStatus: verificationStatus,
1232
- difficulty: difficulty,
1233
- learnLang: learnLang,
1234
- forLang: forLang,
1235
- userImage: userImage,
1236
- coursePicture: coursePicture
1237
- }), /*#__PURE__*/_jsx(FindTopicsDialog, {
1238
- t: t,
1239
- open: isFindTopicOpen,
1240
- handleClose: () => setIsFindTopicOpen(false),
1241
- onAddTopics: selectedTopics => {
1242
- handleAddTopicsToSection?.(selectedTopics, sectionId);
1243
- setIsFindTopicOpen(false);
1244
- },
1245
- libraryTopics: libraryTopics,
1246
- communityTopics: communityTopics,
1247
- isLoadingLibrary: isLoadingLibraryTopics,
1248
- isLoadingCommunity: isLoadingCommunityTopics,
1249
- onLoadMoreCommunity: onLoadMoreCommunity,
1250
- hasMoreCommunity: hasMoreCommunity,
1251
- isLoadingMoreCommunity: isLoadingMoreCommunity,
1252
- getTeachTopics: getTeachTopics
1253
- })]
1254
- }), /*#__PURE__*/_jsx(SelectClassroom, {
1255
- t: t,
1256
- open: isSelectClassroomDialogOpen,
1257
- handleClose: handleCloseSelectClassroomDialog,
1258
- title: t("select_a_classroom"),
1259
- teachClassrooms: teachClassrooms || [],
1260
- type: "section",
1261
- courseId: courseId,
1262
- sectionId: sectionId
1263
- })]
1264
- });
1265
- }
1266
- function SectionList({
1267
- sections = [],
1268
- handleUpdateSections,
1269
- handleUpdateCourseSection,
1270
- handleDeleteCourseSection,
1271
- handleDuplicateTopic,
1272
- handleUpdateSectionTopic,
1273
- teachClassrooms,
1274
- isCreator,
1275
- disableDrag,
1276
- courseSettings,
1277
- showViewTopicButton,
1278
- isClassroomArchived = false,
1279
- ...otherProps
1280
- }) {
1281
- const onDropSection = () => {
1282
- handleUpdateSections(sections);
1283
- };
1284
- return /*#__PURE__*/_jsx(_Fragment, {
1285
- children: sections.map((section, index) => {
1286
- return /*#__PURE__*/_jsx(Section, {
1287
- index: index,
1288
- onDropSection: onDropSection,
1289
- handleUpdateCourseSection: handleUpdateCourseSection,
1290
- handleDeleteCourseSection: handleDeleteCourseSection,
1291
- handleUpdateSectionTopic: handleUpdateSectionTopic,
1292
- handleDuplicateTopic: handleDuplicateTopic,
1293
- teachClassrooms: teachClassrooms,
1294
- isCreator: isCreator,
1295
- courseSettings: courseSettings,
1296
- ...section,
1297
- ...otherProps,
1298
- disableDrag: disableDrag,
1299
- showViewTopicButton: showViewTopicButton,
1300
- isClassroomArchived: isClassroomArchived
1301
- }, section.sectionId);
1302
- })
1303
- });
1304
- }
1305
- function CourseOutline({
1306
- t = text => text,
1307
- sections = [],
1308
- completions = [],
1309
- isMember,
1310
- isCreator,
1311
- disableDrag,
1312
- courseId,
1313
- handleViewCourseTopic,
1314
- handleUpdateSectionTopic,
1315
- handleClickOpenCreateSection,
1316
- handleCreateCourseSectionTopic,
1317
- handleQuickCreateCourseSectionTopic,
1318
- handleFindCourseSectionTopic,
1319
- handleAddTopicsToSection,
1320
- getTeachTopics,
1321
- // libraryTopics,
1322
- communityTopics,
1323
- isLoadingLibraryTopics = false,
1324
- isLoadingCommunityTopics = false,
1325
- onLoadMoreCommunity,
1326
- hasMoreCommunity = false,
1327
- isLoadingMoreCommunity = false,
1328
- handleUpdateCourseSection,
1329
- handleDuplicateTopic,
1330
- handleDeleteCourseSectionTopic,
1331
- handleDeleteCourseSection,
1332
- handleUpdateSections,
1333
- handleDeleteSectionVideo,
1334
- handleUpdateTopics,
1335
- isPublic,
1336
- handleSwitchChange,
1337
- isLoading,
1338
- loading,
1339
- teachClassrooms,
1340
- courseSettings,
1341
- showViewTopicButton = true,
1342
- isClassroomArchived = false,
1343
- classroomId,
1344
- isChallengeModeStudent = false,
1345
- isReadWriteModeStudent = false,
1346
- ...otherProps
1347
- }) {
1348
- const [percentageCompletion, setPercentageCompletion] = useState({
1349
- completed: 0,
1350
- total: 0,
1351
- percentage: 0
1352
- });
1353
- const [sects, setSects] = useState([]);
1354
- useEffect(() => {
1355
- if (isMember) {
1356
- const sectionsWithProgress = calcCompletions(sections, completions, null, isChallengeModeStudent, isReadWriteModeStudent);
1357
- const percentCompletion = calcPercentageCompletion(sectionsWithProgress);
1358
- setSects(sectionsWithProgress);
1359
- setPercentageCompletion(percentCompletion);
1360
- } else {
1361
- setSects(sections);
1362
- setPercentageCompletion({
1363
- completed: 0,
1364
- total: 0,
1365
- percentage: 0
1366
- });
1367
- }
1368
- }, [isMember, isChallengeModeStudent, isReadWriteModeStudent, JSON.stringify(sections), JSON.stringify(completions)]);
1369
- const moveSection = useCallback((dragIndex, hoverIndex) => {
1370
- const dragSection = sects[dragIndex];
1371
- const newSections = update(sects, {
1372
- $splice: [[dragIndex, 1], [hoverIndex, 0, {
1373
- ...dragSection,
1374
- idx: hoverIndex
1375
- }]]
1376
- });
1377
- setSects(newSections);
1378
- }, [sects]);
1379
- const moveTopic = useCallback((sectionIndex, dragIndex, hoverIndex) => {
1380
- const dragTopic = sects[sectionIndex].topics[dragIndex];
1381
- const newTopics = update(sects[sectionIndex].topics, {
1382
- $splice: [[dragIndex, 1], [hoverIndex, 0, {
1383
- ...dragTopic,
1384
- idx: hoverIndex
1385
- }]]
1386
- });
1387
- const newSections = update(sects, {
1388
- $splice: [[sectionIndex, 1], [sectionIndex, 0, {
1389
- ...sects[sectionIndex],
1390
- topics: newTopics
1391
- }]]
1392
- });
1393
- setSects(newSections);
1394
- }, [sects]);
1395
- const {
1396
- percentage,
1397
- completed,
1398
- total
1399
- } = percentageCompletion;
1400
- if (isLoading) {
1401
- return /*#__PURE__*/_jsx(_Fragment, {
1402
- children: Array(3).fill("").map((_, idx) => /*#__PURE__*/_jsxs("div", {
1403
- children: [/*#__PURE__*/_jsx(Box, {
1404
- sx: {
1405
- ml: 2,
1406
- py: 2
1407
- },
1408
- children: /*#__PURE__*/_jsx(Typography, {
1409
- variant: "h5",
1410
- component: "h2",
1411
- children: /*#__PURE__*/_jsx(Skeleton, {
1412
- variant: "rect",
1413
- height: 30,
1414
- width: 150
1415
- })
1416
- })
1417
- }), /*#__PURE__*/_jsx(Box, {
1418
- sx: {
1419
- ml: 4
1420
- },
1421
- children: Array(2).fill("").map((_, idy) => /*#__PURE__*/_jsxs(ListItem, {
1422
- display: "flex",
1423
- alignItems: "center",
1424
- justifyContent: "space-between",
1425
- children: [/*#__PURE__*/_jsx(ListItemAvatar, {
1426
- children: /*#__PURE__*/_jsx(Skeleton, {
1427
- variant: "circular",
1428
- height: 40,
1429
- width: 40
1430
- })
1431
- }), /*#__PURE__*/_jsx(Box, {
1432
- sx: {
1433
- fontWeight: "fontWeightBold",
1434
- width: "100%"
1435
- },
1436
- children: /*#__PURE__*/_jsx(ListItemText, {
1437
- primary: /*#__PURE__*/_jsx(Typography, {
1438
- variant: "body1",
1439
- children: /*#__PURE__*/_jsx(Skeleton, {
1440
- variant: "rect",
1441
- height: 40,
1442
- width: "100%"
1443
- })
1444
- })
1445
- })
1446
- })]
1447
- }, `section_${idx}_topic_${idy}`))
1448
- })]
1449
- }, `section_${idx}`))
1450
- });
1451
- }
1452
- return /*#__PURE__*/_jsxs(_Fragment, {
1453
- children: [/*#__PURE__*/_jsx(Typography, {
1454
- variant: "subtitle1",
1455
- children: /*#__PURE__*/_jsxs(Box, {
1456
- sx: {
1457
- display: "flex",
1458
- alignItems: "center",
1459
- justifyContent: "space-between"
1460
- },
1461
- children: [/*#__PURE__*/_jsx(Box, {
1462
- sx: {
1463
- fontWeight: "fontWeightBold"
1464
- },
1465
- children: isMember && !isCreator ? t("course_progress") : t(isCreator || isCreator && isMember ? "course_outline" : "course_progress")
1466
- }), isMember && !isCreator && /*#__PURE__*/_jsxs(_Fragment, {
1467
- children: [/*#__PURE__*/_jsx(Box, {
1468
- sx: {
1469
- display: "inline",
1470
- flexGrow: 1,
1471
- ml: 6
1472
- },
1473
- children: /*#__PURE__*/_jsx(Tooltip, {
1474
- title: `Completed ${completed} / ${total} exercises`,
1475
- children: /*#__PURE__*/_jsx(ColorLinearProgress, {
1476
- variant: "determinate",
1477
- value: percentage
1478
- })
1479
- })
1480
- }), /*#__PURE__*/_jsxs(Box, {
1481
- sx: {
1482
- ml: 1,
1483
- fontSize: 14
1484
- },
1485
- children: [percentage, "%"]
1486
- })]
1487
- }), /*#__PURE__*/_jsx(Box, {
1488
- children: isCreator && /*#__PURE__*/_jsx(Button, {
1489
- variant: "contained",
1490
- color: "primary",
1491
- onClick: handleClickOpenCreateSection,
1492
- size: "small",
1493
- "data-cy": "add-section",
1494
- children: t("add_section")
1495
- })
1496
- })]
1497
- })
1498
- }), /*#__PURE__*/_jsx(SectionList, {
1499
- t: t,
1500
- sections: sects,
1501
- completions: completions,
1502
- isMember: isMember,
1503
- courseId: courseId,
1504
- handleViewCourseTopic: handleViewCourseTopic,
1505
- handleCreateCourseSectionTopic: handleCreateCourseSectionTopic,
1506
- handleFindCourseSectionTopic: handleFindCourseSectionTopic,
1507
- handleQuickCreateCourseSectionTopic: handleQuickCreateCourseSectionTopic,
1508
- handleAddTopicsToSection: handleAddTopicsToSection,
1509
- getTeachTopics: getTeachTopics
1510
- // libraryTopics={libraryTopics}
1511
- ,
1512
- communityTopics: communityTopics,
1513
- isLoadingLibraryTopics: isLoadingLibraryTopics,
1514
- isLoadingCommunityTopics: isLoadingCommunityTopics,
1515
- onLoadMoreCommunity: onLoadMoreCommunity,
1516
- hasMoreCommunity: hasMoreCommunity,
1517
- isLoadingMoreCommunity: isLoadingMoreCommunity,
1518
- handleDeleteCourseSection: handleDeleteCourseSection,
1519
- handleUpdateCourseSection: handleUpdateCourseSection,
1520
- handleDuplicateTopic: handleDuplicateTopic,
1521
- handleDeleteCourseSectionTopic: handleDeleteCourseSectionTopic,
1522
- handleDeleteSectionVideo: handleDeleteSectionVideo,
1523
- handleUpdateSectionTopic: handleUpdateSectionTopic,
1524
- isCreator: isCreator,
1525
- moveSection: moveSection,
1526
- moveTopic: moveTopic,
1527
- handleUpdateSections: handleUpdateSections,
1528
- handleUpdateTopics: handleUpdateTopics,
1529
- isPublic: isPublic,
1530
- handleSwitchChange: handleSwitchChange,
1531
- teachClassrooms: teachClassrooms,
1532
- ...otherProps,
1533
- loading: loading,
1534
- disableDrag: disableDrag,
1535
- courseSettings: courseSettings,
1536
- showViewTopicButton: showViewTopicButton,
1537
- isClassroomArchived: isClassroomArchived,
1538
- classroomId: classroomId
1539
- })]
1540
- });
1541
- }
1542
- export default CourseOutline;