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