@instructure/canvas-rce 5.6.2 → 5.6.4

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 (2986) hide show
  1. package/CHANGELOG.md +21 -0
  2. package/coverage/canvas-rce-jest.xml +2147 -2131
  3. package/coverage/canvas-rce-junit.xml +376 -372
  4. package/es/common/fileUrl.js +4 -3
  5. package/es/enhance-user-content/doc_previews.js +1 -1
  6. package/es/enhance-user-content/enhance_user_content.js +26 -9
  7. package/es/enhance-user-content/instructure_helper.js +12 -3
  8. package/es/rce/contentRendering.js +2 -2
  9. package/es/rce/plugins/instructure_icon_maker/components/CreateIconMakerForm/Header.js +1 -0
  10. package/es/rce/plugins/instructure_wordcount/components/WordCountModal.js +2 -1
  11. package/es/rce/plugins/instructure_wordcount/utils/countContent.js +3 -3
  12. package/es/rce/plugins/shared/CanvasContentTray.js +22 -23
  13. package/es/rce/plugins/shared/RceFileBrowser.js +13 -5
  14. package/es/rcs/api.js +3 -2
  15. package/es/sidebar/store/initialState.js +4 -2
  16. package/es/translations/locales/ar.js +36 -0
  17. package/es/translations/locales/ca.js +36 -0
  18. package/es/translations/locales/cy.js +36 -0
  19. package/es/translations/locales/da-x-k12.js +36 -0
  20. package/es/translations/locales/da.js +36 -0
  21. package/es/translations/locales/de.js +36 -0
  22. package/es/translations/locales/en-AU-x-unimelb.js +36 -0
  23. package/es/translations/locales/en-GB-x-ukhe.js +36 -0
  24. package/es/translations/locales/en_AU.js +36 -0
  25. package/es/translations/locales/en_CA.js +36 -0
  26. package/es/translations/locales/en_CY.js +36 -0
  27. package/es/translations/locales/en_GB.js +36 -0
  28. package/es/translations/locales/es.js +36 -0
  29. package/es/translations/locales/es_ES.js +36 -0
  30. package/es/translations/locales/fi.js +36 -0
  31. package/es/translations/locales/fr.js +36 -0
  32. package/es/translations/locales/fr_CA.js +36 -0
  33. package/es/translations/locales/ht.js +36 -0
  34. package/es/translations/locales/is.js +36 -0
  35. package/es/translations/locales/it.js +36 -0
  36. package/es/translations/locales/ja.js +36 -0
  37. package/es/translations/locales/mi.js +36 -0
  38. package/es/translations/locales/nb-x-k12.js +36 -0
  39. package/es/translations/locales/nb.js +36 -0
  40. package/es/translations/locales/nl.js +36 -0
  41. package/es/translations/locales/pl.js +36 -0
  42. package/es/translations/locales/pt.js +36 -0
  43. package/es/translations/locales/pt_BR.js +36 -0
  44. package/es/translations/locales/sl.js +36 -0
  45. package/es/translations/locales/sv-x-k12.js +36 -0
  46. package/es/translations/locales/zh-Hans.js +36 -0
  47. package/es/translations/locales/zh-Hant.js +36 -0
  48. package/es/translations/locales/zh.js +36 -0
  49. package/es/translations/locales/zh_HK.js +36 -0
  50. package/lib/common/fileUrl.js +4 -3
  51. package/lib/enhance-user-content/doc_previews.js +1 -1
  52. package/lib/enhance-user-content/enhance_user_content.js +26 -9
  53. package/lib/enhance-user-content/instructure_helper.js +12 -3
  54. package/lib/rce/contentRendering.js +2 -2
  55. package/lib/rce/plugins/instructure_icon_maker/components/CreateIconMakerForm/Header.js +1 -0
  56. package/lib/rce/plugins/instructure_wordcount/components/WordCountModal.js +2 -1
  57. package/lib/rce/plugins/instructure_wordcount/utils/countContent.js +3 -3
  58. package/lib/rce/plugins/shared/CanvasContentTray.js +22 -23
  59. package/lib/rce/plugins/shared/RceFileBrowser.js +13 -5
  60. package/lib/rcs/api.js +3 -2
  61. package/lib/sidebar/store/initialState.js +4 -2
  62. package/lib/translated/ar/modules/common/fileUrl.js +4 -3
  63. package/lib/translated/ar/modules/enhance-user-content/__tests__/enhance_user_content.test.js +55 -1
  64. package/lib/translated/ar/modules/enhance-user-content/doc_previews.js +3 -3
  65. package/lib/translated/ar/modules/enhance-user-content/enhance_user_content.js +30 -13
  66. package/lib/translated/ar/modules/enhance-user-content/instructure_helper.js +14 -5
  67. package/lib/translated/ar/modules/enhance-user-content/media_comment_thumbnail.js +2 -2
  68. package/lib/translated/ar/modules/rce/StatusBar.js +1 -1
  69. package/lib/translated/ar/modules/rce/__tests__/contentInsertion.test.js +1 -1
  70. package/lib/translated/ar/modules/rce/__tests__/contentRendering.test.js +10 -0
  71. package/lib/translated/ar/modules/rce/contentRendering.js +2 -2
  72. package/lib/translated/ar/modules/rce/plugins/instructure_icon_maker/components/CreateIconMakerForm/Header.js +1 -0
  73. package/lib/translated/ar/modules/rce/plugins/instructure_wordcount/components/WordCountModal.js +2 -1
  74. package/lib/translated/ar/modules/rce/plugins/instructure_wordcount/utils/__tests__/countContent.test.js +2 -2
  75. package/lib/translated/ar/modules/rce/plugins/instructure_wordcount/utils/countContent.js +3 -3
  76. package/lib/translated/ar/modules/rce/plugins/shared/CanvasContentTray.js +22 -23
  77. package/lib/translated/ar/modules/rce/plugins/shared/RceFileBrowser.js +13 -5
  78. package/lib/translated/ar/modules/rcs/api.js +3 -2
  79. package/lib/translated/ar/modules/sidebar/store/initialState.js +4 -2
  80. package/lib/translated/ar/modules/translations/locales/ar.js +36 -0
  81. package/lib/translated/ar/modules/translations/locales/ca.js +36 -0
  82. package/lib/translated/ar/modules/translations/locales/cy.js +36 -0
  83. package/lib/translated/ar/modules/translations/locales/da-x-k12.js +36 -0
  84. package/lib/translated/ar/modules/translations/locales/da.js +36 -0
  85. package/lib/translated/ar/modules/translations/locales/de.js +36 -0
  86. package/lib/translated/ar/modules/translations/locales/en-AU-x-unimelb.js +36 -0
  87. package/lib/translated/ar/modules/translations/locales/en-GB-x-ukhe.js +36 -0
  88. package/lib/translated/ar/modules/translations/locales/en_AU.js +36 -0
  89. package/lib/translated/ar/modules/translations/locales/en_CA.js +36 -0
  90. package/lib/translated/ar/modules/translations/locales/en_CY.js +36 -0
  91. package/lib/translated/ar/modules/translations/locales/en_GB.js +36 -0
  92. package/lib/translated/ar/modules/translations/locales/es.js +36 -0
  93. package/lib/translated/ar/modules/translations/locales/es_ES.js +36 -0
  94. package/lib/translated/ar/modules/translations/locales/fi.js +36 -0
  95. package/lib/translated/ar/modules/translations/locales/fr.js +36 -0
  96. package/lib/translated/ar/modules/translations/locales/fr_CA.js +36 -0
  97. package/lib/translated/ar/modules/translations/locales/ht.js +36 -0
  98. package/lib/translated/ar/modules/translations/locales/is.js +36 -0
  99. package/lib/translated/ar/modules/translations/locales/it.js +36 -0
  100. package/lib/translated/ar/modules/translations/locales/ja.js +36 -0
  101. package/lib/translated/ar/modules/translations/locales/mi.js +36 -0
  102. package/lib/translated/ar/modules/translations/locales/nb-x-k12.js +36 -0
  103. package/lib/translated/ar/modules/translations/locales/nb.js +36 -0
  104. package/lib/translated/ar/modules/translations/locales/nl.js +36 -0
  105. package/lib/translated/ar/modules/translations/locales/pl.js +36 -0
  106. package/lib/translated/ar/modules/translations/locales/pt.js +36 -0
  107. package/lib/translated/ar/modules/translations/locales/pt_BR.js +36 -0
  108. package/lib/translated/ar/modules/translations/locales/sl.js +36 -0
  109. package/lib/translated/ar/modules/translations/locales/sv-x-k12.js +36 -0
  110. package/lib/translated/ar/modules/translations/locales/zh-Hans.js +36 -0
  111. package/lib/translated/ar/modules/translations/locales/zh-Hant.js +36 -0
  112. package/lib/translated/ar/modules/translations/locales/zh.js +36 -0
  113. package/lib/translated/ar/modules/translations/locales/zh_HK.js +36 -0
  114. package/lib/translated/ca/modules/common/fileUrl.js +4 -3
  115. package/lib/translated/ca/modules/enhance-user-content/__tests__/enhance_user_content.test.js +55 -1
  116. package/lib/translated/ca/modules/enhance-user-content/doc_previews.js +3 -3
  117. package/lib/translated/ca/modules/enhance-user-content/enhance_user_content.js +30 -13
  118. package/lib/translated/ca/modules/enhance-user-content/instructure_helper.js +14 -5
  119. package/lib/translated/ca/modules/enhance-user-content/media_comment_thumbnail.js +2 -2
  120. package/lib/translated/ca/modules/rce/StatusBar.js +1 -1
  121. package/lib/translated/ca/modules/rce/__tests__/contentInsertion.test.js +1 -1
  122. package/lib/translated/ca/modules/rce/__tests__/contentRendering.test.js +10 -0
  123. package/lib/translated/ca/modules/rce/contentRendering.js +2 -2
  124. package/lib/translated/ca/modules/rce/plugins/instructure_icon_maker/components/CreateIconMakerForm/Header.js +1 -0
  125. package/lib/translated/ca/modules/rce/plugins/instructure_wordcount/components/WordCountModal.js +2 -1
  126. package/lib/translated/ca/modules/rce/plugins/instructure_wordcount/utils/__tests__/countContent.test.js +2 -2
  127. package/lib/translated/ca/modules/rce/plugins/instructure_wordcount/utils/countContent.js +3 -3
  128. package/lib/translated/ca/modules/rce/plugins/shared/CanvasContentTray.js +22 -23
  129. package/lib/translated/ca/modules/rce/plugins/shared/RceFileBrowser.js +13 -5
  130. package/lib/translated/ca/modules/rcs/api.js +3 -2
  131. package/lib/translated/ca/modules/sidebar/store/initialState.js +4 -2
  132. package/lib/translated/ca/modules/translations/locales/ar.js +36 -0
  133. package/lib/translated/ca/modules/translations/locales/ca.js +36 -0
  134. package/lib/translated/ca/modules/translations/locales/cy.js +36 -0
  135. package/lib/translated/ca/modules/translations/locales/da-x-k12.js +36 -0
  136. package/lib/translated/ca/modules/translations/locales/da.js +36 -0
  137. package/lib/translated/ca/modules/translations/locales/de.js +36 -0
  138. package/lib/translated/ca/modules/translations/locales/en-AU-x-unimelb.js +36 -0
  139. package/lib/translated/ca/modules/translations/locales/en-GB-x-ukhe.js +36 -0
  140. package/lib/translated/ca/modules/translations/locales/en_AU.js +36 -0
  141. package/lib/translated/ca/modules/translations/locales/en_CA.js +36 -0
  142. package/lib/translated/ca/modules/translations/locales/en_CY.js +36 -0
  143. package/lib/translated/ca/modules/translations/locales/en_GB.js +36 -0
  144. package/lib/translated/ca/modules/translations/locales/es.js +36 -0
  145. package/lib/translated/ca/modules/translations/locales/es_ES.js +36 -0
  146. package/lib/translated/ca/modules/translations/locales/fi.js +36 -0
  147. package/lib/translated/ca/modules/translations/locales/fr.js +36 -0
  148. package/lib/translated/ca/modules/translations/locales/fr_CA.js +36 -0
  149. package/lib/translated/ca/modules/translations/locales/ht.js +36 -0
  150. package/lib/translated/ca/modules/translations/locales/is.js +36 -0
  151. package/lib/translated/ca/modules/translations/locales/it.js +36 -0
  152. package/lib/translated/ca/modules/translations/locales/ja.js +36 -0
  153. package/lib/translated/ca/modules/translations/locales/mi.js +36 -0
  154. package/lib/translated/ca/modules/translations/locales/nb-x-k12.js +36 -0
  155. package/lib/translated/ca/modules/translations/locales/nb.js +36 -0
  156. package/lib/translated/ca/modules/translations/locales/nl.js +36 -0
  157. package/lib/translated/ca/modules/translations/locales/pl.js +36 -0
  158. package/lib/translated/ca/modules/translations/locales/pt.js +36 -0
  159. package/lib/translated/ca/modules/translations/locales/pt_BR.js +36 -0
  160. package/lib/translated/ca/modules/translations/locales/sl.js +36 -0
  161. package/lib/translated/ca/modules/translations/locales/sv-x-k12.js +36 -0
  162. package/lib/translated/ca/modules/translations/locales/zh-Hans.js +36 -0
  163. package/lib/translated/ca/modules/translations/locales/zh-Hant.js +36 -0
  164. package/lib/translated/ca/modules/translations/locales/zh.js +36 -0
  165. package/lib/translated/ca/modules/translations/locales/zh_HK.js +36 -0
  166. package/lib/translated/cy/modules/common/fileUrl.js +4 -3
  167. package/lib/translated/cy/modules/enhance-user-content/__tests__/enhance_user_content.test.js +55 -1
  168. package/lib/translated/cy/modules/enhance-user-content/doc_previews.js +3 -3
  169. package/lib/translated/cy/modules/enhance-user-content/enhance_user_content.js +30 -13
  170. package/lib/translated/cy/modules/enhance-user-content/instructure_helper.js +14 -5
  171. package/lib/translated/cy/modules/enhance-user-content/media_comment_thumbnail.js +2 -2
  172. package/lib/translated/cy/modules/rce/StatusBar.js +1 -1
  173. package/lib/translated/cy/modules/rce/__tests__/contentInsertion.test.js +1 -1
  174. package/lib/translated/cy/modules/rce/__tests__/contentRendering.test.js +10 -0
  175. package/lib/translated/cy/modules/rce/contentRendering.js +2 -2
  176. package/lib/translated/cy/modules/rce/plugins/instructure_icon_maker/components/CreateIconMakerForm/Header.js +1 -0
  177. package/lib/translated/cy/modules/rce/plugins/instructure_wordcount/components/WordCountModal.js +2 -1
  178. package/lib/translated/cy/modules/rce/plugins/instructure_wordcount/utils/__tests__/countContent.test.js +2 -2
  179. package/lib/translated/cy/modules/rce/plugins/instructure_wordcount/utils/countContent.js +3 -3
  180. package/lib/translated/cy/modules/rce/plugins/shared/CanvasContentTray.js +22 -23
  181. package/lib/translated/cy/modules/rce/plugins/shared/RceFileBrowser.js +13 -5
  182. package/lib/translated/cy/modules/rcs/api.js +3 -2
  183. package/lib/translated/cy/modules/sidebar/store/initialState.js +4 -2
  184. package/lib/translated/cy/modules/translations/locales/ar.js +36 -0
  185. package/lib/translated/cy/modules/translations/locales/ca.js +36 -0
  186. package/lib/translated/cy/modules/translations/locales/cy.js +36 -0
  187. package/lib/translated/cy/modules/translations/locales/da-x-k12.js +36 -0
  188. package/lib/translated/cy/modules/translations/locales/da.js +36 -0
  189. package/lib/translated/cy/modules/translations/locales/de.js +36 -0
  190. package/lib/translated/cy/modules/translations/locales/en-AU-x-unimelb.js +36 -0
  191. package/lib/translated/cy/modules/translations/locales/en-GB-x-ukhe.js +36 -0
  192. package/lib/translated/cy/modules/translations/locales/en_AU.js +36 -0
  193. package/lib/translated/cy/modules/translations/locales/en_CA.js +36 -0
  194. package/lib/translated/cy/modules/translations/locales/en_CY.js +36 -0
  195. package/lib/translated/cy/modules/translations/locales/en_GB.js +36 -0
  196. package/lib/translated/cy/modules/translations/locales/es.js +36 -0
  197. package/lib/translated/cy/modules/translations/locales/es_ES.js +36 -0
  198. package/lib/translated/cy/modules/translations/locales/fi.js +36 -0
  199. package/lib/translated/cy/modules/translations/locales/fr.js +36 -0
  200. package/lib/translated/cy/modules/translations/locales/fr_CA.js +36 -0
  201. package/lib/translated/cy/modules/translations/locales/ht.js +36 -0
  202. package/lib/translated/cy/modules/translations/locales/is.js +36 -0
  203. package/lib/translated/cy/modules/translations/locales/it.js +36 -0
  204. package/lib/translated/cy/modules/translations/locales/ja.js +36 -0
  205. package/lib/translated/cy/modules/translations/locales/mi.js +36 -0
  206. package/lib/translated/cy/modules/translations/locales/nb-x-k12.js +36 -0
  207. package/lib/translated/cy/modules/translations/locales/nb.js +36 -0
  208. package/lib/translated/cy/modules/translations/locales/nl.js +36 -0
  209. package/lib/translated/cy/modules/translations/locales/pl.js +36 -0
  210. package/lib/translated/cy/modules/translations/locales/pt.js +36 -0
  211. package/lib/translated/cy/modules/translations/locales/pt_BR.js +36 -0
  212. package/lib/translated/cy/modules/translations/locales/sl.js +36 -0
  213. package/lib/translated/cy/modules/translations/locales/sv-x-k12.js +36 -0
  214. package/lib/translated/cy/modules/translations/locales/zh-Hans.js +36 -0
  215. package/lib/translated/cy/modules/translations/locales/zh-Hant.js +36 -0
  216. package/lib/translated/cy/modules/translations/locales/zh.js +36 -0
  217. package/lib/translated/cy/modules/translations/locales/zh_HK.js +36 -0
  218. package/lib/translated/da/modules/common/fileUrl.js +4 -3
  219. package/lib/translated/da/modules/enhance-user-content/__tests__/enhance_user_content.test.js +55 -1
  220. package/lib/translated/da/modules/enhance-user-content/doc_previews.js +3 -3
  221. package/lib/translated/da/modules/enhance-user-content/enhance_user_content.js +29 -12
  222. package/lib/translated/da/modules/enhance-user-content/instructure_helper.js +14 -5
  223. package/lib/translated/da/modules/enhance-user-content/media_comment_thumbnail.js +2 -2
  224. package/lib/translated/da/modules/rce/StatusBar.js +1 -1
  225. package/lib/translated/da/modules/rce/__tests__/contentInsertion.test.js +1 -1
  226. package/lib/translated/da/modules/rce/__tests__/contentRendering.test.js +10 -0
  227. package/lib/translated/da/modules/rce/contentRendering.js +2 -2
  228. package/lib/translated/da/modules/rce/plugins/instructure_icon_maker/components/CreateIconMakerForm/Header.js +1 -0
  229. package/lib/translated/da/modules/rce/plugins/instructure_wordcount/components/WordCountModal.js +2 -1
  230. package/lib/translated/da/modules/rce/plugins/instructure_wordcount/utils/__tests__/countContent.test.js +2 -2
  231. package/lib/translated/da/modules/rce/plugins/instructure_wordcount/utils/countContent.js +3 -3
  232. package/lib/translated/da/modules/rce/plugins/shared/CanvasContentTray.js +22 -23
  233. package/lib/translated/da/modules/rce/plugins/shared/RceFileBrowser.js +13 -5
  234. package/lib/translated/da/modules/rcs/api.js +3 -2
  235. package/lib/translated/da/modules/sidebar/store/initialState.js +4 -2
  236. package/lib/translated/da/modules/translations/locales/ar.js +36 -0
  237. package/lib/translated/da/modules/translations/locales/ca.js +36 -0
  238. package/lib/translated/da/modules/translations/locales/cy.js +36 -0
  239. package/lib/translated/da/modules/translations/locales/da-x-k12.js +36 -0
  240. package/lib/translated/da/modules/translations/locales/da.js +36 -0
  241. package/lib/translated/da/modules/translations/locales/de.js +36 -0
  242. package/lib/translated/da/modules/translations/locales/en-AU-x-unimelb.js +36 -0
  243. package/lib/translated/da/modules/translations/locales/en-GB-x-ukhe.js +36 -0
  244. package/lib/translated/da/modules/translations/locales/en_AU.js +36 -0
  245. package/lib/translated/da/modules/translations/locales/en_CA.js +36 -0
  246. package/lib/translated/da/modules/translations/locales/en_CY.js +36 -0
  247. package/lib/translated/da/modules/translations/locales/en_GB.js +36 -0
  248. package/lib/translated/da/modules/translations/locales/es.js +36 -0
  249. package/lib/translated/da/modules/translations/locales/es_ES.js +36 -0
  250. package/lib/translated/da/modules/translations/locales/fi.js +36 -0
  251. package/lib/translated/da/modules/translations/locales/fr.js +36 -0
  252. package/lib/translated/da/modules/translations/locales/fr_CA.js +36 -0
  253. package/lib/translated/da/modules/translations/locales/ht.js +36 -0
  254. package/lib/translated/da/modules/translations/locales/is.js +36 -0
  255. package/lib/translated/da/modules/translations/locales/it.js +36 -0
  256. package/lib/translated/da/modules/translations/locales/ja.js +36 -0
  257. package/lib/translated/da/modules/translations/locales/mi.js +36 -0
  258. package/lib/translated/da/modules/translations/locales/nb-x-k12.js +36 -0
  259. package/lib/translated/da/modules/translations/locales/nb.js +36 -0
  260. package/lib/translated/da/modules/translations/locales/nl.js +36 -0
  261. package/lib/translated/da/modules/translations/locales/pl.js +36 -0
  262. package/lib/translated/da/modules/translations/locales/pt.js +36 -0
  263. package/lib/translated/da/modules/translations/locales/pt_BR.js +36 -0
  264. package/lib/translated/da/modules/translations/locales/sl.js +36 -0
  265. package/lib/translated/da/modules/translations/locales/sv-x-k12.js +36 -0
  266. package/lib/translated/da/modules/translations/locales/zh-Hans.js +36 -0
  267. package/lib/translated/da/modules/translations/locales/zh-Hant.js +36 -0
  268. package/lib/translated/da/modules/translations/locales/zh.js +36 -0
  269. package/lib/translated/da/modules/translations/locales/zh_HK.js +36 -0
  270. package/lib/translated/da-x-k12/modules/common/fileUrl.js +4 -3
  271. package/lib/translated/da-x-k12/modules/enhance-user-content/__tests__/enhance_user_content.test.js +55 -1
  272. package/lib/translated/da-x-k12/modules/enhance-user-content/doc_previews.js +3 -3
  273. package/lib/translated/da-x-k12/modules/enhance-user-content/enhance_user_content.js +29 -12
  274. package/lib/translated/da-x-k12/modules/enhance-user-content/instructure_helper.js +14 -5
  275. package/lib/translated/da-x-k12/modules/enhance-user-content/media_comment_thumbnail.js +2 -2
  276. package/lib/translated/da-x-k12/modules/rce/StatusBar.js +1 -1
  277. package/lib/translated/da-x-k12/modules/rce/__tests__/contentInsertion.test.js +1 -1
  278. package/lib/translated/da-x-k12/modules/rce/__tests__/contentRendering.test.js +10 -0
  279. package/lib/translated/da-x-k12/modules/rce/contentRendering.js +2 -2
  280. package/lib/translated/da-x-k12/modules/rce/plugins/instructure_icon_maker/components/CreateIconMakerForm/Header.js +1 -0
  281. package/lib/translated/da-x-k12/modules/rce/plugins/instructure_wordcount/components/WordCountModal.js +2 -1
  282. package/lib/translated/da-x-k12/modules/rce/plugins/instructure_wordcount/utils/__tests__/countContent.test.js +2 -2
  283. package/lib/translated/da-x-k12/modules/rce/plugins/instructure_wordcount/utils/countContent.js +3 -3
  284. package/lib/translated/da-x-k12/modules/rce/plugins/shared/CanvasContentTray.js +22 -23
  285. package/lib/translated/da-x-k12/modules/rce/plugins/shared/RceFileBrowser.js +13 -5
  286. package/lib/translated/da-x-k12/modules/rcs/api.js +3 -2
  287. package/lib/translated/da-x-k12/modules/sidebar/store/initialState.js +4 -2
  288. package/lib/translated/da-x-k12/modules/translations/locales/ar.js +36 -0
  289. package/lib/translated/da-x-k12/modules/translations/locales/ca.js +36 -0
  290. package/lib/translated/da-x-k12/modules/translations/locales/cy.js +36 -0
  291. package/lib/translated/da-x-k12/modules/translations/locales/da-x-k12.js +36 -0
  292. package/lib/translated/da-x-k12/modules/translations/locales/da.js +36 -0
  293. package/lib/translated/da-x-k12/modules/translations/locales/de.js +36 -0
  294. package/lib/translated/da-x-k12/modules/translations/locales/en-AU-x-unimelb.js +36 -0
  295. package/lib/translated/da-x-k12/modules/translations/locales/en-GB-x-ukhe.js +36 -0
  296. package/lib/translated/da-x-k12/modules/translations/locales/en_AU.js +36 -0
  297. package/lib/translated/da-x-k12/modules/translations/locales/en_CA.js +36 -0
  298. package/lib/translated/da-x-k12/modules/translations/locales/en_CY.js +36 -0
  299. package/lib/translated/da-x-k12/modules/translations/locales/en_GB.js +36 -0
  300. package/lib/translated/da-x-k12/modules/translations/locales/es.js +36 -0
  301. package/lib/translated/da-x-k12/modules/translations/locales/es_ES.js +36 -0
  302. package/lib/translated/da-x-k12/modules/translations/locales/fi.js +36 -0
  303. package/lib/translated/da-x-k12/modules/translations/locales/fr.js +36 -0
  304. package/lib/translated/da-x-k12/modules/translations/locales/fr_CA.js +36 -0
  305. package/lib/translated/da-x-k12/modules/translations/locales/ht.js +36 -0
  306. package/lib/translated/da-x-k12/modules/translations/locales/is.js +36 -0
  307. package/lib/translated/da-x-k12/modules/translations/locales/it.js +36 -0
  308. package/lib/translated/da-x-k12/modules/translations/locales/ja.js +36 -0
  309. package/lib/translated/da-x-k12/modules/translations/locales/mi.js +36 -0
  310. package/lib/translated/da-x-k12/modules/translations/locales/nb-x-k12.js +36 -0
  311. package/lib/translated/da-x-k12/modules/translations/locales/nb.js +36 -0
  312. package/lib/translated/da-x-k12/modules/translations/locales/nl.js +36 -0
  313. package/lib/translated/da-x-k12/modules/translations/locales/pl.js +36 -0
  314. package/lib/translated/da-x-k12/modules/translations/locales/pt.js +36 -0
  315. package/lib/translated/da-x-k12/modules/translations/locales/pt_BR.js +36 -0
  316. package/lib/translated/da-x-k12/modules/translations/locales/sl.js +36 -0
  317. package/lib/translated/da-x-k12/modules/translations/locales/sv-x-k12.js +36 -0
  318. package/lib/translated/da-x-k12/modules/translations/locales/zh-Hans.js +36 -0
  319. package/lib/translated/da-x-k12/modules/translations/locales/zh-Hant.js +36 -0
  320. package/lib/translated/da-x-k12/modules/translations/locales/zh.js +36 -0
  321. package/lib/translated/da-x-k12/modules/translations/locales/zh_HK.js +36 -0
  322. package/lib/translated/de/modules/common/fileUrl.js +4 -3
  323. package/lib/translated/de/modules/enhance-user-content/__tests__/enhance_user_content.test.js +55 -1
  324. package/lib/translated/de/modules/enhance-user-content/doc_previews.js +3 -3
  325. package/lib/translated/de/modules/enhance-user-content/enhance_user_content.js +30 -13
  326. package/lib/translated/de/modules/enhance-user-content/instructure_helper.js +14 -5
  327. package/lib/translated/de/modules/enhance-user-content/media_comment_thumbnail.js +2 -2
  328. package/lib/translated/de/modules/rce/StatusBar.js +1 -1
  329. package/lib/translated/de/modules/rce/__tests__/contentInsertion.test.js +1 -1
  330. package/lib/translated/de/modules/rce/__tests__/contentRendering.test.js +10 -0
  331. package/lib/translated/de/modules/rce/contentRendering.js +2 -2
  332. package/lib/translated/de/modules/rce/plugins/instructure_icon_maker/components/CreateIconMakerForm/Header.js +1 -0
  333. package/lib/translated/de/modules/rce/plugins/instructure_wordcount/components/WordCountModal.js +2 -1
  334. package/lib/translated/de/modules/rce/plugins/instructure_wordcount/utils/__tests__/countContent.test.js +2 -2
  335. package/lib/translated/de/modules/rce/plugins/instructure_wordcount/utils/countContent.js +3 -3
  336. package/lib/translated/de/modules/rce/plugins/shared/CanvasContentTray.js +22 -23
  337. package/lib/translated/de/modules/rce/plugins/shared/RceFileBrowser.js +13 -5
  338. package/lib/translated/de/modules/rcs/api.js +3 -2
  339. package/lib/translated/de/modules/sidebar/store/initialState.js +4 -2
  340. package/lib/translated/de/modules/translations/locales/ar.js +36 -0
  341. package/lib/translated/de/modules/translations/locales/ca.js +36 -0
  342. package/lib/translated/de/modules/translations/locales/cy.js +36 -0
  343. package/lib/translated/de/modules/translations/locales/da-x-k12.js +36 -0
  344. package/lib/translated/de/modules/translations/locales/da.js +36 -0
  345. package/lib/translated/de/modules/translations/locales/de.js +36 -0
  346. package/lib/translated/de/modules/translations/locales/en-AU-x-unimelb.js +36 -0
  347. package/lib/translated/de/modules/translations/locales/en-GB-x-ukhe.js +36 -0
  348. package/lib/translated/de/modules/translations/locales/en_AU.js +36 -0
  349. package/lib/translated/de/modules/translations/locales/en_CA.js +36 -0
  350. package/lib/translated/de/modules/translations/locales/en_CY.js +36 -0
  351. package/lib/translated/de/modules/translations/locales/en_GB.js +36 -0
  352. package/lib/translated/de/modules/translations/locales/es.js +36 -0
  353. package/lib/translated/de/modules/translations/locales/es_ES.js +36 -0
  354. package/lib/translated/de/modules/translations/locales/fi.js +36 -0
  355. package/lib/translated/de/modules/translations/locales/fr.js +36 -0
  356. package/lib/translated/de/modules/translations/locales/fr_CA.js +36 -0
  357. package/lib/translated/de/modules/translations/locales/ht.js +36 -0
  358. package/lib/translated/de/modules/translations/locales/is.js +36 -0
  359. package/lib/translated/de/modules/translations/locales/it.js +36 -0
  360. package/lib/translated/de/modules/translations/locales/ja.js +36 -0
  361. package/lib/translated/de/modules/translations/locales/mi.js +36 -0
  362. package/lib/translated/de/modules/translations/locales/nb-x-k12.js +36 -0
  363. package/lib/translated/de/modules/translations/locales/nb.js +36 -0
  364. package/lib/translated/de/modules/translations/locales/nl.js +36 -0
  365. package/lib/translated/de/modules/translations/locales/pl.js +36 -0
  366. package/lib/translated/de/modules/translations/locales/pt.js +36 -0
  367. package/lib/translated/de/modules/translations/locales/pt_BR.js +36 -0
  368. package/lib/translated/de/modules/translations/locales/sl.js +36 -0
  369. package/lib/translated/de/modules/translations/locales/sv-x-k12.js +36 -0
  370. package/lib/translated/de/modules/translations/locales/zh-Hans.js +36 -0
  371. package/lib/translated/de/modules/translations/locales/zh-Hant.js +36 -0
  372. package/lib/translated/de/modules/translations/locales/zh.js +36 -0
  373. package/lib/translated/de/modules/translations/locales/zh_HK.js +36 -0
  374. package/lib/translated/el/modules/common/fileUrl.js +4 -3
  375. package/lib/translated/el/modules/enhance-user-content/__tests__/enhance_user_content.test.js +55 -1
  376. package/lib/translated/el/modules/enhance-user-content/doc_previews.js +1 -1
  377. package/lib/translated/el/modules/enhance-user-content/enhance_user_content.js +26 -9
  378. package/lib/translated/el/modules/enhance-user-content/instructure_helper.js +12 -3
  379. package/lib/translated/el/modules/rce/__tests__/contentInsertion.test.js +1 -1
  380. package/lib/translated/el/modules/rce/__tests__/contentRendering.test.js +10 -0
  381. package/lib/translated/el/modules/rce/contentRendering.js +2 -2
  382. package/lib/translated/el/modules/rce/plugins/instructure_icon_maker/components/CreateIconMakerForm/Header.js +1 -0
  383. package/lib/translated/el/modules/rce/plugins/instructure_wordcount/components/WordCountModal.js +2 -1
  384. package/lib/translated/el/modules/rce/plugins/instructure_wordcount/utils/__tests__/countContent.test.js +2 -2
  385. package/lib/translated/el/modules/rce/plugins/instructure_wordcount/utils/countContent.js +3 -3
  386. package/lib/translated/el/modules/rce/plugins/shared/CanvasContentTray.js +22 -23
  387. package/lib/translated/el/modules/rce/plugins/shared/RceFileBrowser.js +13 -5
  388. package/lib/translated/el/modules/rcs/api.js +3 -2
  389. package/lib/translated/el/modules/sidebar/store/initialState.js +4 -2
  390. package/lib/translated/el/modules/translations/locales/ar.js +36 -0
  391. package/lib/translated/el/modules/translations/locales/ca.js +36 -0
  392. package/lib/translated/el/modules/translations/locales/cy.js +36 -0
  393. package/lib/translated/el/modules/translations/locales/da-x-k12.js +36 -0
  394. package/lib/translated/el/modules/translations/locales/da.js +36 -0
  395. package/lib/translated/el/modules/translations/locales/de.js +36 -0
  396. package/lib/translated/el/modules/translations/locales/en-AU-x-unimelb.js +36 -0
  397. package/lib/translated/el/modules/translations/locales/en-GB-x-ukhe.js +36 -0
  398. package/lib/translated/el/modules/translations/locales/en_AU.js +36 -0
  399. package/lib/translated/el/modules/translations/locales/en_CA.js +36 -0
  400. package/lib/translated/el/modules/translations/locales/en_CY.js +36 -0
  401. package/lib/translated/el/modules/translations/locales/en_GB.js +36 -0
  402. package/lib/translated/el/modules/translations/locales/es.js +36 -0
  403. package/lib/translated/el/modules/translations/locales/es_ES.js +36 -0
  404. package/lib/translated/el/modules/translations/locales/fi.js +36 -0
  405. package/lib/translated/el/modules/translations/locales/fr.js +36 -0
  406. package/lib/translated/el/modules/translations/locales/fr_CA.js +36 -0
  407. package/lib/translated/el/modules/translations/locales/ht.js +36 -0
  408. package/lib/translated/el/modules/translations/locales/is.js +36 -0
  409. package/lib/translated/el/modules/translations/locales/it.js +36 -0
  410. package/lib/translated/el/modules/translations/locales/ja.js +36 -0
  411. package/lib/translated/el/modules/translations/locales/mi.js +36 -0
  412. package/lib/translated/el/modules/translations/locales/nb-x-k12.js +36 -0
  413. package/lib/translated/el/modules/translations/locales/nb.js +36 -0
  414. package/lib/translated/el/modules/translations/locales/nl.js +36 -0
  415. package/lib/translated/el/modules/translations/locales/pl.js +36 -0
  416. package/lib/translated/el/modules/translations/locales/pt.js +36 -0
  417. package/lib/translated/el/modules/translations/locales/pt_BR.js +36 -0
  418. package/lib/translated/el/modules/translations/locales/sl.js +36 -0
  419. package/lib/translated/el/modules/translations/locales/sv-x-k12.js +36 -0
  420. package/lib/translated/el/modules/translations/locales/zh-Hans.js +36 -0
  421. package/lib/translated/el/modules/translations/locales/zh-Hant.js +36 -0
  422. package/lib/translated/el/modules/translations/locales/zh.js +36 -0
  423. package/lib/translated/el/modules/translations/locales/zh_HK.js +36 -0
  424. package/lib/translated/en/modules/common/fileUrl.js +4 -3
  425. package/lib/translated/en/modules/enhance-user-content/__tests__/enhance_user_content.test.js +55 -1
  426. package/lib/translated/en/modules/enhance-user-content/doc_previews.js +1 -1
  427. package/lib/translated/en/modules/enhance-user-content/enhance_user_content.js +26 -9
  428. package/lib/translated/en/modules/enhance-user-content/instructure_helper.js +12 -3
  429. package/lib/translated/en/modules/rce/__tests__/contentInsertion.test.js +1 -1
  430. package/lib/translated/en/modules/rce/__tests__/contentRendering.test.js +10 -0
  431. package/lib/translated/en/modules/rce/contentRendering.js +2 -2
  432. package/lib/translated/en/modules/rce/plugins/instructure_icon_maker/components/CreateIconMakerForm/Header.js +1 -0
  433. package/lib/translated/en/modules/rce/plugins/instructure_wordcount/components/WordCountModal.js +2 -1
  434. package/lib/translated/en/modules/rce/plugins/instructure_wordcount/utils/__tests__/countContent.test.js +2 -2
  435. package/lib/translated/en/modules/rce/plugins/instructure_wordcount/utils/countContent.js +3 -3
  436. package/lib/translated/en/modules/rce/plugins/shared/CanvasContentTray.js +22 -23
  437. package/lib/translated/en/modules/rce/plugins/shared/RceFileBrowser.js +13 -5
  438. package/lib/translated/en/modules/rcs/api.js +3 -2
  439. package/lib/translated/en/modules/sidebar/store/initialState.js +4 -2
  440. package/lib/translated/en/modules/translations/locales/ar.js +36 -0
  441. package/lib/translated/en/modules/translations/locales/ca.js +36 -0
  442. package/lib/translated/en/modules/translations/locales/cy.js +36 -0
  443. package/lib/translated/en/modules/translations/locales/da-x-k12.js +36 -0
  444. package/lib/translated/en/modules/translations/locales/da.js +36 -0
  445. package/lib/translated/en/modules/translations/locales/de.js +36 -0
  446. package/lib/translated/en/modules/translations/locales/en-AU-x-unimelb.js +36 -0
  447. package/lib/translated/en/modules/translations/locales/en-GB-x-ukhe.js +36 -0
  448. package/lib/translated/en/modules/translations/locales/en_AU.js +36 -0
  449. package/lib/translated/en/modules/translations/locales/en_CA.js +36 -0
  450. package/lib/translated/en/modules/translations/locales/en_CY.js +36 -0
  451. package/lib/translated/en/modules/translations/locales/en_GB.js +36 -0
  452. package/lib/translated/en/modules/translations/locales/es.js +36 -0
  453. package/lib/translated/en/modules/translations/locales/es_ES.js +36 -0
  454. package/lib/translated/en/modules/translations/locales/fi.js +36 -0
  455. package/lib/translated/en/modules/translations/locales/fr.js +36 -0
  456. package/lib/translated/en/modules/translations/locales/fr_CA.js +36 -0
  457. package/lib/translated/en/modules/translations/locales/ht.js +36 -0
  458. package/lib/translated/en/modules/translations/locales/is.js +36 -0
  459. package/lib/translated/en/modules/translations/locales/it.js +36 -0
  460. package/lib/translated/en/modules/translations/locales/ja.js +36 -0
  461. package/lib/translated/en/modules/translations/locales/mi.js +36 -0
  462. package/lib/translated/en/modules/translations/locales/nb-x-k12.js +36 -0
  463. package/lib/translated/en/modules/translations/locales/nb.js +36 -0
  464. package/lib/translated/en/modules/translations/locales/nl.js +36 -0
  465. package/lib/translated/en/modules/translations/locales/pl.js +36 -0
  466. package/lib/translated/en/modules/translations/locales/pt.js +36 -0
  467. package/lib/translated/en/modules/translations/locales/pt_BR.js +36 -0
  468. package/lib/translated/en/modules/translations/locales/sl.js +36 -0
  469. package/lib/translated/en/modules/translations/locales/sv-x-k12.js +36 -0
  470. package/lib/translated/en/modules/translations/locales/zh-Hans.js +36 -0
  471. package/lib/translated/en/modules/translations/locales/zh-Hant.js +36 -0
  472. package/lib/translated/en/modules/translations/locales/zh.js +36 -0
  473. package/lib/translated/en/modules/translations/locales/zh_HK.js +36 -0
  474. package/lib/translated/en-AU-x-unimelb/modules/common/fileUrl.js +4 -3
  475. package/lib/translated/en-AU-x-unimelb/modules/enhance-user-content/__tests__/enhance_user_content.test.js +55 -1
  476. package/lib/translated/en-AU-x-unimelb/modules/enhance-user-content/doc_previews.js +1 -1
  477. package/lib/translated/en-AU-x-unimelb/modules/enhance-user-content/enhance_user_content.js +27 -10
  478. package/lib/translated/en-AU-x-unimelb/modules/enhance-user-content/instructure_helper.js +13 -4
  479. package/lib/translated/en-AU-x-unimelb/modules/rce/__tests__/contentInsertion.test.js +1 -1
  480. package/lib/translated/en-AU-x-unimelb/modules/rce/__tests__/contentRendering.test.js +10 -0
  481. package/lib/translated/en-AU-x-unimelb/modules/rce/contentRendering.js +2 -2
  482. package/lib/translated/en-AU-x-unimelb/modules/rce/plugins/instructure_icon_maker/components/CreateIconMakerForm/Header.js +1 -0
  483. package/lib/translated/en-AU-x-unimelb/modules/rce/plugins/instructure_wordcount/components/WordCountModal.js +2 -1
  484. package/lib/translated/en-AU-x-unimelb/modules/rce/plugins/instructure_wordcount/utils/__tests__/countContent.test.js +2 -2
  485. package/lib/translated/en-AU-x-unimelb/modules/rce/plugins/instructure_wordcount/utils/countContent.js +3 -3
  486. package/lib/translated/en-AU-x-unimelb/modules/rce/plugins/shared/CanvasContentTray.js +22 -23
  487. package/lib/translated/en-AU-x-unimelb/modules/rce/plugins/shared/RceFileBrowser.js +13 -5
  488. package/lib/translated/en-AU-x-unimelb/modules/rcs/api.js +3 -2
  489. package/lib/translated/en-AU-x-unimelb/modules/sidebar/store/initialState.js +4 -2
  490. package/lib/translated/en-AU-x-unimelb/modules/translations/locales/ar.js +36 -0
  491. package/lib/translated/en-AU-x-unimelb/modules/translations/locales/ca.js +36 -0
  492. package/lib/translated/en-AU-x-unimelb/modules/translations/locales/cy.js +36 -0
  493. package/lib/translated/en-AU-x-unimelb/modules/translations/locales/da-x-k12.js +36 -0
  494. package/lib/translated/en-AU-x-unimelb/modules/translations/locales/da.js +36 -0
  495. package/lib/translated/en-AU-x-unimelb/modules/translations/locales/de.js +36 -0
  496. package/lib/translated/en-AU-x-unimelb/modules/translations/locales/en-AU-x-unimelb.js +36 -0
  497. package/lib/translated/en-AU-x-unimelb/modules/translations/locales/en-GB-x-ukhe.js +36 -0
  498. package/lib/translated/en-AU-x-unimelb/modules/translations/locales/en_AU.js +36 -0
  499. package/lib/translated/en-AU-x-unimelb/modules/translations/locales/en_CA.js +36 -0
  500. package/lib/translated/en-AU-x-unimelb/modules/translations/locales/en_CY.js +36 -0
  501. package/lib/translated/en-AU-x-unimelb/modules/translations/locales/en_GB.js +36 -0
  502. package/lib/translated/en-AU-x-unimelb/modules/translations/locales/es.js +36 -0
  503. package/lib/translated/en-AU-x-unimelb/modules/translations/locales/es_ES.js +36 -0
  504. package/lib/translated/en-AU-x-unimelb/modules/translations/locales/fi.js +36 -0
  505. package/lib/translated/en-AU-x-unimelb/modules/translations/locales/fr.js +36 -0
  506. package/lib/translated/en-AU-x-unimelb/modules/translations/locales/fr_CA.js +36 -0
  507. package/lib/translated/en-AU-x-unimelb/modules/translations/locales/ht.js +36 -0
  508. package/lib/translated/en-AU-x-unimelb/modules/translations/locales/is.js +36 -0
  509. package/lib/translated/en-AU-x-unimelb/modules/translations/locales/it.js +36 -0
  510. package/lib/translated/en-AU-x-unimelb/modules/translations/locales/ja.js +36 -0
  511. package/lib/translated/en-AU-x-unimelb/modules/translations/locales/mi.js +36 -0
  512. package/lib/translated/en-AU-x-unimelb/modules/translations/locales/nb-x-k12.js +36 -0
  513. package/lib/translated/en-AU-x-unimelb/modules/translations/locales/nb.js +36 -0
  514. package/lib/translated/en-AU-x-unimelb/modules/translations/locales/nl.js +36 -0
  515. package/lib/translated/en-AU-x-unimelb/modules/translations/locales/pl.js +36 -0
  516. package/lib/translated/en-AU-x-unimelb/modules/translations/locales/pt.js +36 -0
  517. package/lib/translated/en-AU-x-unimelb/modules/translations/locales/pt_BR.js +36 -0
  518. package/lib/translated/en-AU-x-unimelb/modules/translations/locales/sl.js +36 -0
  519. package/lib/translated/en-AU-x-unimelb/modules/translations/locales/sv-x-k12.js +36 -0
  520. package/lib/translated/en-AU-x-unimelb/modules/translations/locales/zh-Hans.js +36 -0
  521. package/lib/translated/en-AU-x-unimelb/modules/translations/locales/zh-Hant.js +36 -0
  522. package/lib/translated/en-AU-x-unimelb/modules/translations/locales/zh.js +36 -0
  523. package/lib/translated/en-AU-x-unimelb/modules/translations/locales/zh_HK.js +36 -0
  524. package/lib/translated/en-GB-x-ukhe/modules/common/fileUrl.js +4 -3
  525. package/lib/translated/en-GB-x-ukhe/modules/enhance-user-content/__tests__/enhance_user_content.test.js +55 -1
  526. package/lib/translated/en-GB-x-ukhe/modules/enhance-user-content/doc_previews.js +1 -1
  527. package/lib/translated/en-GB-x-ukhe/modules/enhance-user-content/enhance_user_content.js +27 -10
  528. package/lib/translated/en-GB-x-ukhe/modules/enhance-user-content/instructure_helper.js +13 -4
  529. package/lib/translated/en-GB-x-ukhe/modules/rce/__tests__/contentInsertion.test.js +1 -1
  530. package/lib/translated/en-GB-x-ukhe/modules/rce/__tests__/contentRendering.test.js +10 -0
  531. package/lib/translated/en-GB-x-ukhe/modules/rce/contentRendering.js +2 -2
  532. package/lib/translated/en-GB-x-ukhe/modules/rce/plugins/instructure_icon_maker/components/CreateIconMakerForm/Header.js +1 -0
  533. package/lib/translated/en-GB-x-ukhe/modules/rce/plugins/instructure_wordcount/components/WordCountModal.js +2 -1
  534. package/lib/translated/en-GB-x-ukhe/modules/rce/plugins/instructure_wordcount/utils/__tests__/countContent.test.js +2 -2
  535. package/lib/translated/en-GB-x-ukhe/modules/rce/plugins/instructure_wordcount/utils/countContent.js +3 -3
  536. package/lib/translated/en-GB-x-ukhe/modules/rce/plugins/shared/CanvasContentTray.js +22 -23
  537. package/lib/translated/en-GB-x-ukhe/modules/rce/plugins/shared/RceFileBrowser.js +13 -5
  538. package/lib/translated/en-GB-x-ukhe/modules/rcs/api.js +3 -2
  539. package/lib/translated/en-GB-x-ukhe/modules/sidebar/store/initialState.js +4 -2
  540. package/lib/translated/en-GB-x-ukhe/modules/translations/locales/ar.js +36 -0
  541. package/lib/translated/en-GB-x-ukhe/modules/translations/locales/ca.js +36 -0
  542. package/lib/translated/en-GB-x-ukhe/modules/translations/locales/cy.js +36 -0
  543. package/lib/translated/en-GB-x-ukhe/modules/translations/locales/da-x-k12.js +36 -0
  544. package/lib/translated/en-GB-x-ukhe/modules/translations/locales/da.js +36 -0
  545. package/lib/translated/en-GB-x-ukhe/modules/translations/locales/de.js +36 -0
  546. package/lib/translated/en-GB-x-ukhe/modules/translations/locales/en-AU-x-unimelb.js +36 -0
  547. package/lib/translated/en-GB-x-ukhe/modules/translations/locales/en-GB-x-ukhe.js +36 -0
  548. package/lib/translated/en-GB-x-ukhe/modules/translations/locales/en_AU.js +36 -0
  549. package/lib/translated/en-GB-x-ukhe/modules/translations/locales/en_CA.js +36 -0
  550. package/lib/translated/en-GB-x-ukhe/modules/translations/locales/en_CY.js +36 -0
  551. package/lib/translated/en-GB-x-ukhe/modules/translations/locales/en_GB.js +36 -0
  552. package/lib/translated/en-GB-x-ukhe/modules/translations/locales/es.js +36 -0
  553. package/lib/translated/en-GB-x-ukhe/modules/translations/locales/es_ES.js +36 -0
  554. package/lib/translated/en-GB-x-ukhe/modules/translations/locales/fi.js +36 -0
  555. package/lib/translated/en-GB-x-ukhe/modules/translations/locales/fr.js +36 -0
  556. package/lib/translated/en-GB-x-ukhe/modules/translations/locales/fr_CA.js +36 -0
  557. package/lib/translated/en-GB-x-ukhe/modules/translations/locales/ht.js +36 -0
  558. package/lib/translated/en-GB-x-ukhe/modules/translations/locales/is.js +36 -0
  559. package/lib/translated/en-GB-x-ukhe/modules/translations/locales/it.js +36 -0
  560. package/lib/translated/en-GB-x-ukhe/modules/translations/locales/ja.js +36 -0
  561. package/lib/translated/en-GB-x-ukhe/modules/translations/locales/mi.js +36 -0
  562. package/lib/translated/en-GB-x-ukhe/modules/translations/locales/nb-x-k12.js +36 -0
  563. package/lib/translated/en-GB-x-ukhe/modules/translations/locales/nb.js +36 -0
  564. package/lib/translated/en-GB-x-ukhe/modules/translations/locales/nl.js +36 -0
  565. package/lib/translated/en-GB-x-ukhe/modules/translations/locales/pl.js +36 -0
  566. package/lib/translated/en-GB-x-ukhe/modules/translations/locales/pt.js +36 -0
  567. package/lib/translated/en-GB-x-ukhe/modules/translations/locales/pt_BR.js +36 -0
  568. package/lib/translated/en-GB-x-ukhe/modules/translations/locales/sl.js +36 -0
  569. package/lib/translated/en-GB-x-ukhe/modules/translations/locales/sv-x-k12.js +36 -0
  570. package/lib/translated/en-GB-x-ukhe/modules/translations/locales/zh-Hans.js +36 -0
  571. package/lib/translated/en-GB-x-ukhe/modules/translations/locales/zh-Hant.js +36 -0
  572. package/lib/translated/en-GB-x-ukhe/modules/translations/locales/zh.js +36 -0
  573. package/lib/translated/en-GB-x-ukhe/modules/translations/locales/zh_HK.js +36 -0
  574. package/lib/translated/en_AU/modules/common/fileUrl.js +4 -3
  575. package/lib/translated/en_AU/modules/enhance-user-content/__tests__/enhance_user_content.test.js +55 -1
  576. package/lib/translated/en_AU/modules/enhance-user-content/doc_previews.js +1 -1
  577. package/lib/translated/en_AU/modules/enhance-user-content/enhance_user_content.js +27 -10
  578. package/lib/translated/en_AU/modules/enhance-user-content/instructure_helper.js +13 -4
  579. package/lib/translated/en_AU/modules/rce/__tests__/contentInsertion.test.js +1 -1
  580. package/lib/translated/en_AU/modules/rce/__tests__/contentRendering.test.js +10 -0
  581. package/lib/translated/en_AU/modules/rce/contentRendering.js +2 -2
  582. package/lib/translated/en_AU/modules/rce/plugins/instructure_icon_maker/components/CreateIconMakerForm/Header.js +1 -0
  583. package/lib/translated/en_AU/modules/rce/plugins/instructure_wordcount/components/WordCountModal.js +2 -1
  584. package/lib/translated/en_AU/modules/rce/plugins/instructure_wordcount/utils/__tests__/countContent.test.js +2 -2
  585. package/lib/translated/en_AU/modules/rce/plugins/instructure_wordcount/utils/countContent.js +3 -3
  586. package/lib/translated/en_AU/modules/rce/plugins/shared/CanvasContentTray.js +22 -23
  587. package/lib/translated/en_AU/modules/rce/plugins/shared/RceFileBrowser.js +13 -5
  588. package/lib/translated/en_AU/modules/rcs/api.js +3 -2
  589. package/lib/translated/en_AU/modules/sidebar/store/initialState.js +4 -2
  590. package/lib/translated/en_AU/modules/translations/locales/ar.js +36 -0
  591. package/lib/translated/en_AU/modules/translations/locales/ca.js +36 -0
  592. package/lib/translated/en_AU/modules/translations/locales/cy.js +36 -0
  593. package/lib/translated/en_AU/modules/translations/locales/da-x-k12.js +36 -0
  594. package/lib/translated/en_AU/modules/translations/locales/da.js +36 -0
  595. package/lib/translated/en_AU/modules/translations/locales/de.js +36 -0
  596. package/lib/translated/en_AU/modules/translations/locales/en-AU-x-unimelb.js +36 -0
  597. package/lib/translated/en_AU/modules/translations/locales/en-GB-x-ukhe.js +36 -0
  598. package/lib/translated/en_AU/modules/translations/locales/en_AU.js +36 -0
  599. package/lib/translated/en_AU/modules/translations/locales/en_CA.js +36 -0
  600. package/lib/translated/en_AU/modules/translations/locales/en_CY.js +36 -0
  601. package/lib/translated/en_AU/modules/translations/locales/en_GB.js +36 -0
  602. package/lib/translated/en_AU/modules/translations/locales/es.js +36 -0
  603. package/lib/translated/en_AU/modules/translations/locales/es_ES.js +36 -0
  604. package/lib/translated/en_AU/modules/translations/locales/fi.js +36 -0
  605. package/lib/translated/en_AU/modules/translations/locales/fr.js +36 -0
  606. package/lib/translated/en_AU/modules/translations/locales/fr_CA.js +36 -0
  607. package/lib/translated/en_AU/modules/translations/locales/ht.js +36 -0
  608. package/lib/translated/en_AU/modules/translations/locales/is.js +36 -0
  609. package/lib/translated/en_AU/modules/translations/locales/it.js +36 -0
  610. package/lib/translated/en_AU/modules/translations/locales/ja.js +36 -0
  611. package/lib/translated/en_AU/modules/translations/locales/mi.js +36 -0
  612. package/lib/translated/en_AU/modules/translations/locales/nb-x-k12.js +36 -0
  613. package/lib/translated/en_AU/modules/translations/locales/nb.js +36 -0
  614. package/lib/translated/en_AU/modules/translations/locales/nl.js +36 -0
  615. package/lib/translated/en_AU/modules/translations/locales/pl.js +36 -0
  616. package/lib/translated/en_AU/modules/translations/locales/pt.js +36 -0
  617. package/lib/translated/en_AU/modules/translations/locales/pt_BR.js +36 -0
  618. package/lib/translated/en_AU/modules/translations/locales/sl.js +36 -0
  619. package/lib/translated/en_AU/modules/translations/locales/sv-x-k12.js +36 -0
  620. package/lib/translated/en_AU/modules/translations/locales/zh-Hans.js +36 -0
  621. package/lib/translated/en_AU/modules/translations/locales/zh-Hant.js +36 -0
  622. package/lib/translated/en_AU/modules/translations/locales/zh.js +36 -0
  623. package/lib/translated/en_AU/modules/translations/locales/zh_HK.js +36 -0
  624. package/lib/translated/en_CA/modules/common/fileUrl.js +4 -3
  625. package/lib/translated/en_CA/modules/enhance-user-content/__tests__/enhance_user_content.test.js +55 -1
  626. package/lib/translated/en_CA/modules/enhance-user-content/doc_previews.js +1 -1
  627. package/lib/translated/en_CA/modules/enhance-user-content/enhance_user_content.js +26 -9
  628. package/lib/translated/en_CA/modules/enhance-user-content/instructure_helper.js +12 -3
  629. package/lib/translated/en_CA/modules/rce/__tests__/contentInsertion.test.js +1 -1
  630. package/lib/translated/en_CA/modules/rce/__tests__/contentRendering.test.js +10 -0
  631. package/lib/translated/en_CA/modules/rce/contentRendering.js +2 -2
  632. package/lib/translated/en_CA/modules/rce/plugins/instructure_icon_maker/components/CreateIconMakerForm/Header.js +1 -0
  633. package/lib/translated/en_CA/modules/rce/plugins/instructure_wordcount/components/WordCountModal.js +2 -1
  634. package/lib/translated/en_CA/modules/rce/plugins/instructure_wordcount/utils/__tests__/countContent.test.js +2 -2
  635. package/lib/translated/en_CA/modules/rce/plugins/instructure_wordcount/utils/countContent.js +3 -3
  636. package/lib/translated/en_CA/modules/rce/plugins/shared/CanvasContentTray.js +22 -23
  637. package/lib/translated/en_CA/modules/rce/plugins/shared/RceFileBrowser.js +13 -5
  638. package/lib/translated/en_CA/modules/rcs/api.js +3 -2
  639. package/lib/translated/en_CA/modules/sidebar/store/initialState.js +4 -2
  640. package/lib/translated/en_CA/modules/translations/locales/ar.js +36 -0
  641. package/lib/translated/en_CA/modules/translations/locales/ca.js +36 -0
  642. package/lib/translated/en_CA/modules/translations/locales/cy.js +36 -0
  643. package/lib/translated/en_CA/modules/translations/locales/da-x-k12.js +36 -0
  644. package/lib/translated/en_CA/modules/translations/locales/da.js +36 -0
  645. package/lib/translated/en_CA/modules/translations/locales/de.js +36 -0
  646. package/lib/translated/en_CA/modules/translations/locales/en-AU-x-unimelb.js +36 -0
  647. package/lib/translated/en_CA/modules/translations/locales/en-GB-x-ukhe.js +36 -0
  648. package/lib/translated/en_CA/modules/translations/locales/en_AU.js +36 -0
  649. package/lib/translated/en_CA/modules/translations/locales/en_CA.js +36 -0
  650. package/lib/translated/en_CA/modules/translations/locales/en_CY.js +36 -0
  651. package/lib/translated/en_CA/modules/translations/locales/en_GB.js +36 -0
  652. package/lib/translated/en_CA/modules/translations/locales/es.js +36 -0
  653. package/lib/translated/en_CA/modules/translations/locales/es_ES.js +36 -0
  654. package/lib/translated/en_CA/modules/translations/locales/fi.js +36 -0
  655. package/lib/translated/en_CA/modules/translations/locales/fr.js +36 -0
  656. package/lib/translated/en_CA/modules/translations/locales/fr_CA.js +36 -0
  657. package/lib/translated/en_CA/modules/translations/locales/ht.js +36 -0
  658. package/lib/translated/en_CA/modules/translations/locales/is.js +36 -0
  659. package/lib/translated/en_CA/modules/translations/locales/it.js +36 -0
  660. package/lib/translated/en_CA/modules/translations/locales/ja.js +36 -0
  661. package/lib/translated/en_CA/modules/translations/locales/mi.js +36 -0
  662. package/lib/translated/en_CA/modules/translations/locales/nb-x-k12.js +36 -0
  663. package/lib/translated/en_CA/modules/translations/locales/nb.js +36 -0
  664. package/lib/translated/en_CA/modules/translations/locales/nl.js +36 -0
  665. package/lib/translated/en_CA/modules/translations/locales/pl.js +36 -0
  666. package/lib/translated/en_CA/modules/translations/locales/pt.js +36 -0
  667. package/lib/translated/en_CA/modules/translations/locales/pt_BR.js +36 -0
  668. package/lib/translated/en_CA/modules/translations/locales/sl.js +36 -0
  669. package/lib/translated/en_CA/modules/translations/locales/sv-x-k12.js +36 -0
  670. package/lib/translated/en_CA/modules/translations/locales/zh-Hans.js +36 -0
  671. package/lib/translated/en_CA/modules/translations/locales/zh-Hant.js +36 -0
  672. package/lib/translated/en_CA/modules/translations/locales/zh.js +36 -0
  673. package/lib/translated/en_CA/modules/translations/locales/zh_HK.js +36 -0
  674. package/lib/translated/en_CY/modules/common/fileUrl.js +4 -3
  675. package/lib/translated/en_CY/modules/enhance-user-content/__tests__/enhance_user_content.test.js +55 -1
  676. package/lib/translated/en_CY/modules/enhance-user-content/doc_previews.js +1 -1
  677. package/lib/translated/en_CY/modules/enhance-user-content/enhance_user_content.js +27 -10
  678. package/lib/translated/en_CY/modules/enhance-user-content/instructure_helper.js +13 -4
  679. package/lib/translated/en_CY/modules/rce/__tests__/contentInsertion.test.js +1 -1
  680. package/lib/translated/en_CY/modules/rce/__tests__/contentRendering.test.js +10 -0
  681. package/lib/translated/en_CY/modules/rce/contentRendering.js +2 -2
  682. package/lib/translated/en_CY/modules/rce/plugins/instructure_icon_maker/components/CreateIconMakerForm/Header.js +1 -0
  683. package/lib/translated/en_CY/modules/rce/plugins/instructure_wordcount/components/WordCountModal.js +2 -1
  684. package/lib/translated/en_CY/modules/rce/plugins/instructure_wordcount/utils/__tests__/countContent.test.js +2 -2
  685. package/lib/translated/en_CY/modules/rce/plugins/instructure_wordcount/utils/countContent.js +3 -3
  686. package/lib/translated/en_CY/modules/rce/plugins/shared/CanvasContentTray.js +22 -23
  687. package/lib/translated/en_CY/modules/rce/plugins/shared/RceFileBrowser.js +13 -5
  688. package/lib/translated/en_CY/modules/rcs/api.js +3 -2
  689. package/lib/translated/en_CY/modules/sidebar/store/initialState.js +4 -2
  690. package/lib/translated/en_CY/modules/translations/locales/ar.js +36 -0
  691. package/lib/translated/en_CY/modules/translations/locales/ca.js +36 -0
  692. package/lib/translated/en_CY/modules/translations/locales/cy.js +36 -0
  693. package/lib/translated/en_CY/modules/translations/locales/da-x-k12.js +36 -0
  694. package/lib/translated/en_CY/modules/translations/locales/da.js +36 -0
  695. package/lib/translated/en_CY/modules/translations/locales/de.js +36 -0
  696. package/lib/translated/en_CY/modules/translations/locales/en-AU-x-unimelb.js +36 -0
  697. package/lib/translated/en_CY/modules/translations/locales/en-GB-x-ukhe.js +36 -0
  698. package/lib/translated/en_CY/modules/translations/locales/en_AU.js +36 -0
  699. package/lib/translated/en_CY/modules/translations/locales/en_CA.js +36 -0
  700. package/lib/translated/en_CY/modules/translations/locales/en_CY.js +36 -0
  701. package/lib/translated/en_CY/modules/translations/locales/en_GB.js +36 -0
  702. package/lib/translated/en_CY/modules/translations/locales/es.js +36 -0
  703. package/lib/translated/en_CY/modules/translations/locales/es_ES.js +36 -0
  704. package/lib/translated/en_CY/modules/translations/locales/fi.js +36 -0
  705. package/lib/translated/en_CY/modules/translations/locales/fr.js +36 -0
  706. package/lib/translated/en_CY/modules/translations/locales/fr_CA.js +36 -0
  707. package/lib/translated/en_CY/modules/translations/locales/ht.js +36 -0
  708. package/lib/translated/en_CY/modules/translations/locales/is.js +36 -0
  709. package/lib/translated/en_CY/modules/translations/locales/it.js +36 -0
  710. package/lib/translated/en_CY/modules/translations/locales/ja.js +36 -0
  711. package/lib/translated/en_CY/modules/translations/locales/mi.js +36 -0
  712. package/lib/translated/en_CY/modules/translations/locales/nb-x-k12.js +36 -0
  713. package/lib/translated/en_CY/modules/translations/locales/nb.js +36 -0
  714. package/lib/translated/en_CY/modules/translations/locales/nl.js +36 -0
  715. package/lib/translated/en_CY/modules/translations/locales/pl.js +36 -0
  716. package/lib/translated/en_CY/modules/translations/locales/pt.js +36 -0
  717. package/lib/translated/en_CY/modules/translations/locales/pt_BR.js +36 -0
  718. package/lib/translated/en_CY/modules/translations/locales/sl.js +36 -0
  719. package/lib/translated/en_CY/modules/translations/locales/sv-x-k12.js +36 -0
  720. package/lib/translated/en_CY/modules/translations/locales/zh-Hans.js +36 -0
  721. package/lib/translated/en_CY/modules/translations/locales/zh-Hant.js +36 -0
  722. package/lib/translated/en_CY/modules/translations/locales/zh.js +36 -0
  723. package/lib/translated/en_CY/modules/translations/locales/zh_HK.js +36 -0
  724. package/lib/translated/en_GB/modules/common/fileUrl.js +4 -3
  725. package/lib/translated/en_GB/modules/enhance-user-content/__tests__/enhance_user_content.test.js +55 -1
  726. package/lib/translated/en_GB/modules/enhance-user-content/doc_previews.js +1 -1
  727. package/lib/translated/en_GB/modules/enhance-user-content/enhance_user_content.js +27 -10
  728. package/lib/translated/en_GB/modules/enhance-user-content/instructure_helper.js +13 -4
  729. package/lib/translated/en_GB/modules/rce/__tests__/contentInsertion.test.js +1 -1
  730. package/lib/translated/en_GB/modules/rce/__tests__/contentRendering.test.js +10 -0
  731. package/lib/translated/en_GB/modules/rce/contentRendering.js +2 -2
  732. package/lib/translated/en_GB/modules/rce/plugins/instructure_icon_maker/components/CreateIconMakerForm/Header.js +1 -0
  733. package/lib/translated/en_GB/modules/rce/plugins/instructure_wordcount/components/WordCountModal.js +2 -1
  734. package/lib/translated/en_GB/modules/rce/plugins/instructure_wordcount/utils/__tests__/countContent.test.js +2 -2
  735. package/lib/translated/en_GB/modules/rce/plugins/instructure_wordcount/utils/countContent.js +3 -3
  736. package/lib/translated/en_GB/modules/rce/plugins/shared/CanvasContentTray.js +22 -23
  737. package/lib/translated/en_GB/modules/rce/plugins/shared/RceFileBrowser.js +13 -5
  738. package/lib/translated/en_GB/modules/rcs/api.js +3 -2
  739. package/lib/translated/en_GB/modules/sidebar/store/initialState.js +4 -2
  740. package/lib/translated/en_GB/modules/translations/locales/ar.js +36 -0
  741. package/lib/translated/en_GB/modules/translations/locales/ca.js +36 -0
  742. package/lib/translated/en_GB/modules/translations/locales/cy.js +36 -0
  743. package/lib/translated/en_GB/modules/translations/locales/da-x-k12.js +36 -0
  744. package/lib/translated/en_GB/modules/translations/locales/da.js +36 -0
  745. package/lib/translated/en_GB/modules/translations/locales/de.js +36 -0
  746. package/lib/translated/en_GB/modules/translations/locales/en-AU-x-unimelb.js +36 -0
  747. package/lib/translated/en_GB/modules/translations/locales/en-GB-x-ukhe.js +36 -0
  748. package/lib/translated/en_GB/modules/translations/locales/en_AU.js +36 -0
  749. package/lib/translated/en_GB/modules/translations/locales/en_CA.js +36 -0
  750. package/lib/translated/en_GB/modules/translations/locales/en_CY.js +36 -0
  751. package/lib/translated/en_GB/modules/translations/locales/en_GB.js +36 -0
  752. package/lib/translated/en_GB/modules/translations/locales/es.js +36 -0
  753. package/lib/translated/en_GB/modules/translations/locales/es_ES.js +36 -0
  754. package/lib/translated/en_GB/modules/translations/locales/fi.js +36 -0
  755. package/lib/translated/en_GB/modules/translations/locales/fr.js +36 -0
  756. package/lib/translated/en_GB/modules/translations/locales/fr_CA.js +36 -0
  757. package/lib/translated/en_GB/modules/translations/locales/ht.js +36 -0
  758. package/lib/translated/en_GB/modules/translations/locales/is.js +36 -0
  759. package/lib/translated/en_GB/modules/translations/locales/it.js +36 -0
  760. package/lib/translated/en_GB/modules/translations/locales/ja.js +36 -0
  761. package/lib/translated/en_GB/modules/translations/locales/mi.js +36 -0
  762. package/lib/translated/en_GB/modules/translations/locales/nb-x-k12.js +36 -0
  763. package/lib/translated/en_GB/modules/translations/locales/nb.js +36 -0
  764. package/lib/translated/en_GB/modules/translations/locales/nl.js +36 -0
  765. package/lib/translated/en_GB/modules/translations/locales/pl.js +36 -0
  766. package/lib/translated/en_GB/modules/translations/locales/pt.js +36 -0
  767. package/lib/translated/en_GB/modules/translations/locales/pt_BR.js +36 -0
  768. package/lib/translated/en_GB/modules/translations/locales/sl.js +36 -0
  769. package/lib/translated/en_GB/modules/translations/locales/sv-x-k12.js +36 -0
  770. package/lib/translated/en_GB/modules/translations/locales/zh-Hans.js +36 -0
  771. package/lib/translated/en_GB/modules/translations/locales/zh-Hant.js +36 -0
  772. package/lib/translated/en_GB/modules/translations/locales/zh.js +36 -0
  773. package/lib/translated/en_GB/modules/translations/locales/zh_HK.js +36 -0
  774. package/lib/translated/es/modules/common/fileUrl.js +4 -3
  775. package/lib/translated/es/modules/enhance-user-content/__tests__/enhance_user_content.test.js +55 -1
  776. package/lib/translated/es/modules/enhance-user-content/doc_previews.js +3 -3
  777. package/lib/translated/es/modules/enhance-user-content/enhance_user_content.js +30 -13
  778. package/lib/translated/es/modules/enhance-user-content/instructure_helper.js +14 -5
  779. package/lib/translated/es/modules/enhance-user-content/media_comment_thumbnail.js +2 -2
  780. package/lib/translated/es/modules/rce/StatusBar.js +1 -1
  781. package/lib/translated/es/modules/rce/__tests__/contentInsertion.test.js +1 -1
  782. package/lib/translated/es/modules/rce/__tests__/contentRendering.test.js +10 -0
  783. package/lib/translated/es/modules/rce/contentRendering.js +2 -2
  784. package/lib/translated/es/modules/rce/plugins/instructure_icon_maker/components/CreateIconMakerForm/Header.js +1 -0
  785. package/lib/translated/es/modules/rce/plugins/instructure_wordcount/components/WordCountModal.js +2 -1
  786. package/lib/translated/es/modules/rce/plugins/instructure_wordcount/utils/__tests__/countContent.test.js +2 -2
  787. package/lib/translated/es/modules/rce/plugins/instructure_wordcount/utils/countContent.js +3 -3
  788. package/lib/translated/es/modules/rce/plugins/shared/CanvasContentTray.js +22 -23
  789. package/lib/translated/es/modules/rce/plugins/shared/RceFileBrowser.js +13 -5
  790. package/lib/translated/es/modules/rcs/api.js +3 -2
  791. package/lib/translated/es/modules/sidebar/store/initialState.js +4 -2
  792. package/lib/translated/es/modules/translations/locales/ar.js +36 -0
  793. package/lib/translated/es/modules/translations/locales/ca.js +36 -0
  794. package/lib/translated/es/modules/translations/locales/cy.js +36 -0
  795. package/lib/translated/es/modules/translations/locales/da-x-k12.js +36 -0
  796. package/lib/translated/es/modules/translations/locales/da.js +36 -0
  797. package/lib/translated/es/modules/translations/locales/de.js +36 -0
  798. package/lib/translated/es/modules/translations/locales/en-AU-x-unimelb.js +36 -0
  799. package/lib/translated/es/modules/translations/locales/en-GB-x-ukhe.js +36 -0
  800. package/lib/translated/es/modules/translations/locales/en_AU.js +36 -0
  801. package/lib/translated/es/modules/translations/locales/en_CA.js +36 -0
  802. package/lib/translated/es/modules/translations/locales/en_CY.js +36 -0
  803. package/lib/translated/es/modules/translations/locales/en_GB.js +36 -0
  804. package/lib/translated/es/modules/translations/locales/es.js +36 -0
  805. package/lib/translated/es/modules/translations/locales/es_ES.js +36 -0
  806. package/lib/translated/es/modules/translations/locales/fi.js +36 -0
  807. package/lib/translated/es/modules/translations/locales/fr.js +36 -0
  808. package/lib/translated/es/modules/translations/locales/fr_CA.js +36 -0
  809. package/lib/translated/es/modules/translations/locales/ht.js +36 -0
  810. package/lib/translated/es/modules/translations/locales/is.js +36 -0
  811. package/lib/translated/es/modules/translations/locales/it.js +36 -0
  812. package/lib/translated/es/modules/translations/locales/ja.js +36 -0
  813. package/lib/translated/es/modules/translations/locales/mi.js +36 -0
  814. package/lib/translated/es/modules/translations/locales/nb-x-k12.js +36 -0
  815. package/lib/translated/es/modules/translations/locales/nb.js +36 -0
  816. package/lib/translated/es/modules/translations/locales/nl.js +36 -0
  817. package/lib/translated/es/modules/translations/locales/pl.js +36 -0
  818. package/lib/translated/es/modules/translations/locales/pt.js +36 -0
  819. package/lib/translated/es/modules/translations/locales/pt_BR.js +36 -0
  820. package/lib/translated/es/modules/translations/locales/sl.js +36 -0
  821. package/lib/translated/es/modules/translations/locales/sv-x-k12.js +36 -0
  822. package/lib/translated/es/modules/translations/locales/zh-Hans.js +36 -0
  823. package/lib/translated/es/modules/translations/locales/zh-Hant.js +36 -0
  824. package/lib/translated/es/modules/translations/locales/zh.js +36 -0
  825. package/lib/translated/es/modules/translations/locales/zh_HK.js +36 -0
  826. package/lib/translated/es_ES/modules/common/fileUrl.js +4 -3
  827. package/lib/translated/es_ES/modules/enhance-user-content/__tests__/enhance_user_content.test.js +55 -1
  828. package/lib/translated/es_ES/modules/enhance-user-content/doc_previews.js +3 -3
  829. package/lib/translated/es_ES/modules/enhance-user-content/enhance_user_content.js +30 -13
  830. package/lib/translated/es_ES/modules/enhance-user-content/instructure_helper.js +14 -5
  831. package/lib/translated/es_ES/modules/enhance-user-content/media_comment_thumbnail.js +2 -2
  832. package/lib/translated/es_ES/modules/rce/StatusBar.js +1 -1
  833. package/lib/translated/es_ES/modules/rce/__tests__/contentInsertion.test.js +1 -1
  834. package/lib/translated/es_ES/modules/rce/__tests__/contentRendering.test.js +10 -0
  835. package/lib/translated/es_ES/modules/rce/contentRendering.js +2 -2
  836. package/lib/translated/es_ES/modules/rce/plugins/instructure_icon_maker/components/CreateIconMakerForm/Header.js +1 -0
  837. package/lib/translated/es_ES/modules/rce/plugins/instructure_wordcount/components/WordCountModal.js +2 -1
  838. package/lib/translated/es_ES/modules/rce/plugins/instructure_wordcount/utils/__tests__/countContent.test.js +2 -2
  839. package/lib/translated/es_ES/modules/rce/plugins/instructure_wordcount/utils/countContent.js +3 -3
  840. package/lib/translated/es_ES/modules/rce/plugins/shared/CanvasContentTray.js +22 -23
  841. package/lib/translated/es_ES/modules/rce/plugins/shared/RceFileBrowser.js +13 -5
  842. package/lib/translated/es_ES/modules/rcs/api.js +3 -2
  843. package/lib/translated/es_ES/modules/sidebar/store/initialState.js +4 -2
  844. package/lib/translated/es_ES/modules/translations/locales/ar.js +36 -0
  845. package/lib/translated/es_ES/modules/translations/locales/ca.js +36 -0
  846. package/lib/translated/es_ES/modules/translations/locales/cy.js +36 -0
  847. package/lib/translated/es_ES/modules/translations/locales/da-x-k12.js +36 -0
  848. package/lib/translated/es_ES/modules/translations/locales/da.js +36 -0
  849. package/lib/translated/es_ES/modules/translations/locales/de.js +36 -0
  850. package/lib/translated/es_ES/modules/translations/locales/en-AU-x-unimelb.js +36 -0
  851. package/lib/translated/es_ES/modules/translations/locales/en-GB-x-ukhe.js +36 -0
  852. package/lib/translated/es_ES/modules/translations/locales/en_AU.js +36 -0
  853. package/lib/translated/es_ES/modules/translations/locales/en_CA.js +36 -0
  854. package/lib/translated/es_ES/modules/translations/locales/en_CY.js +36 -0
  855. package/lib/translated/es_ES/modules/translations/locales/en_GB.js +36 -0
  856. package/lib/translated/es_ES/modules/translations/locales/es.js +36 -0
  857. package/lib/translated/es_ES/modules/translations/locales/es_ES.js +36 -0
  858. package/lib/translated/es_ES/modules/translations/locales/fi.js +36 -0
  859. package/lib/translated/es_ES/modules/translations/locales/fr.js +36 -0
  860. package/lib/translated/es_ES/modules/translations/locales/fr_CA.js +36 -0
  861. package/lib/translated/es_ES/modules/translations/locales/ht.js +36 -0
  862. package/lib/translated/es_ES/modules/translations/locales/is.js +36 -0
  863. package/lib/translated/es_ES/modules/translations/locales/it.js +36 -0
  864. package/lib/translated/es_ES/modules/translations/locales/ja.js +36 -0
  865. package/lib/translated/es_ES/modules/translations/locales/mi.js +36 -0
  866. package/lib/translated/es_ES/modules/translations/locales/nb-x-k12.js +36 -0
  867. package/lib/translated/es_ES/modules/translations/locales/nb.js +36 -0
  868. package/lib/translated/es_ES/modules/translations/locales/nl.js +36 -0
  869. package/lib/translated/es_ES/modules/translations/locales/pl.js +36 -0
  870. package/lib/translated/es_ES/modules/translations/locales/pt.js +36 -0
  871. package/lib/translated/es_ES/modules/translations/locales/pt_BR.js +36 -0
  872. package/lib/translated/es_ES/modules/translations/locales/sl.js +36 -0
  873. package/lib/translated/es_ES/modules/translations/locales/sv-x-k12.js +36 -0
  874. package/lib/translated/es_ES/modules/translations/locales/zh-Hans.js +36 -0
  875. package/lib/translated/es_ES/modules/translations/locales/zh-Hant.js +36 -0
  876. package/lib/translated/es_ES/modules/translations/locales/zh.js +36 -0
  877. package/lib/translated/es_ES/modules/translations/locales/zh_HK.js +36 -0
  878. package/lib/translated/es_GT/modules/common/fileUrl.js +4 -3
  879. package/lib/translated/es_GT/modules/enhance-user-content/__tests__/enhance_user_content.test.js +55 -1
  880. package/lib/translated/es_GT/modules/enhance-user-content/doc_previews.js +1 -1
  881. package/lib/translated/es_GT/modules/enhance-user-content/enhance_user_content.js +26 -9
  882. package/lib/translated/es_GT/modules/enhance-user-content/instructure_helper.js +12 -3
  883. package/lib/translated/es_GT/modules/rce/__tests__/contentInsertion.test.js +1 -1
  884. package/lib/translated/es_GT/modules/rce/__tests__/contentRendering.test.js +10 -0
  885. package/lib/translated/es_GT/modules/rce/contentRendering.js +2 -2
  886. package/lib/translated/es_GT/modules/rce/plugins/instructure_icon_maker/components/CreateIconMakerForm/Header.js +1 -0
  887. package/lib/translated/es_GT/modules/rce/plugins/instructure_wordcount/components/WordCountModal.js +2 -1
  888. package/lib/translated/es_GT/modules/rce/plugins/instructure_wordcount/utils/__tests__/countContent.test.js +2 -2
  889. package/lib/translated/es_GT/modules/rce/plugins/instructure_wordcount/utils/countContent.js +3 -3
  890. package/lib/translated/es_GT/modules/rce/plugins/shared/CanvasContentTray.js +22 -23
  891. package/lib/translated/es_GT/modules/rce/plugins/shared/RceFileBrowser.js +13 -5
  892. package/lib/translated/es_GT/modules/rcs/api.js +3 -2
  893. package/lib/translated/es_GT/modules/sidebar/store/initialState.js +4 -2
  894. package/lib/translated/es_GT/modules/translations/locales/ar.js +36 -0
  895. package/lib/translated/es_GT/modules/translations/locales/ca.js +36 -0
  896. package/lib/translated/es_GT/modules/translations/locales/cy.js +36 -0
  897. package/lib/translated/es_GT/modules/translations/locales/da-x-k12.js +36 -0
  898. package/lib/translated/es_GT/modules/translations/locales/da.js +36 -0
  899. package/lib/translated/es_GT/modules/translations/locales/de.js +36 -0
  900. package/lib/translated/es_GT/modules/translations/locales/en-AU-x-unimelb.js +36 -0
  901. package/lib/translated/es_GT/modules/translations/locales/en-GB-x-ukhe.js +36 -0
  902. package/lib/translated/es_GT/modules/translations/locales/en_AU.js +36 -0
  903. package/lib/translated/es_GT/modules/translations/locales/en_CA.js +36 -0
  904. package/lib/translated/es_GT/modules/translations/locales/en_CY.js +36 -0
  905. package/lib/translated/es_GT/modules/translations/locales/en_GB.js +36 -0
  906. package/lib/translated/es_GT/modules/translations/locales/es.js +36 -0
  907. package/lib/translated/es_GT/modules/translations/locales/es_ES.js +36 -0
  908. package/lib/translated/es_GT/modules/translations/locales/fi.js +36 -0
  909. package/lib/translated/es_GT/modules/translations/locales/fr.js +36 -0
  910. package/lib/translated/es_GT/modules/translations/locales/fr_CA.js +36 -0
  911. package/lib/translated/es_GT/modules/translations/locales/ht.js +36 -0
  912. package/lib/translated/es_GT/modules/translations/locales/is.js +36 -0
  913. package/lib/translated/es_GT/modules/translations/locales/it.js +36 -0
  914. package/lib/translated/es_GT/modules/translations/locales/ja.js +36 -0
  915. package/lib/translated/es_GT/modules/translations/locales/mi.js +36 -0
  916. package/lib/translated/es_GT/modules/translations/locales/nb-x-k12.js +36 -0
  917. package/lib/translated/es_GT/modules/translations/locales/nb.js +36 -0
  918. package/lib/translated/es_GT/modules/translations/locales/nl.js +36 -0
  919. package/lib/translated/es_GT/modules/translations/locales/pl.js +36 -0
  920. package/lib/translated/es_GT/modules/translations/locales/pt.js +36 -0
  921. package/lib/translated/es_GT/modules/translations/locales/pt_BR.js +36 -0
  922. package/lib/translated/es_GT/modules/translations/locales/sl.js +36 -0
  923. package/lib/translated/es_GT/modules/translations/locales/sv-x-k12.js +36 -0
  924. package/lib/translated/es_GT/modules/translations/locales/zh-Hans.js +36 -0
  925. package/lib/translated/es_GT/modules/translations/locales/zh-Hant.js +36 -0
  926. package/lib/translated/es_GT/modules/translations/locales/zh.js +36 -0
  927. package/lib/translated/es_GT/modules/translations/locales/zh_HK.js +36 -0
  928. package/lib/translated/fa_IR/modules/common/fileUrl.js +4 -3
  929. package/lib/translated/fa_IR/modules/enhance-user-content/__tests__/enhance_user_content.test.js +55 -1
  930. package/lib/translated/fa_IR/modules/enhance-user-content/doc_previews.js +1 -1
  931. package/lib/translated/fa_IR/modules/enhance-user-content/enhance_user_content.js +26 -9
  932. package/lib/translated/fa_IR/modules/enhance-user-content/instructure_helper.js +12 -3
  933. package/lib/translated/fa_IR/modules/rce/__tests__/contentInsertion.test.js +1 -1
  934. package/lib/translated/fa_IR/modules/rce/__tests__/contentRendering.test.js +10 -0
  935. package/lib/translated/fa_IR/modules/rce/contentRendering.js +2 -2
  936. package/lib/translated/fa_IR/modules/rce/plugins/instructure_icon_maker/components/CreateIconMakerForm/Header.js +1 -0
  937. package/lib/translated/fa_IR/modules/rce/plugins/instructure_wordcount/components/WordCountModal.js +2 -1
  938. package/lib/translated/fa_IR/modules/rce/plugins/instructure_wordcount/utils/__tests__/countContent.test.js +2 -2
  939. package/lib/translated/fa_IR/modules/rce/plugins/instructure_wordcount/utils/countContent.js +3 -3
  940. package/lib/translated/fa_IR/modules/rce/plugins/shared/CanvasContentTray.js +22 -23
  941. package/lib/translated/fa_IR/modules/rce/plugins/shared/RceFileBrowser.js +13 -5
  942. package/lib/translated/fa_IR/modules/rcs/api.js +3 -2
  943. package/lib/translated/fa_IR/modules/sidebar/store/initialState.js +4 -2
  944. package/lib/translated/fa_IR/modules/translations/locales/ar.js +36 -0
  945. package/lib/translated/fa_IR/modules/translations/locales/ca.js +36 -0
  946. package/lib/translated/fa_IR/modules/translations/locales/cy.js +36 -0
  947. package/lib/translated/fa_IR/modules/translations/locales/da-x-k12.js +36 -0
  948. package/lib/translated/fa_IR/modules/translations/locales/da.js +36 -0
  949. package/lib/translated/fa_IR/modules/translations/locales/de.js +36 -0
  950. package/lib/translated/fa_IR/modules/translations/locales/en-AU-x-unimelb.js +36 -0
  951. package/lib/translated/fa_IR/modules/translations/locales/en-GB-x-ukhe.js +36 -0
  952. package/lib/translated/fa_IR/modules/translations/locales/en_AU.js +36 -0
  953. package/lib/translated/fa_IR/modules/translations/locales/en_CA.js +36 -0
  954. package/lib/translated/fa_IR/modules/translations/locales/en_CY.js +36 -0
  955. package/lib/translated/fa_IR/modules/translations/locales/en_GB.js +36 -0
  956. package/lib/translated/fa_IR/modules/translations/locales/es.js +36 -0
  957. package/lib/translated/fa_IR/modules/translations/locales/es_ES.js +36 -0
  958. package/lib/translated/fa_IR/modules/translations/locales/fi.js +36 -0
  959. package/lib/translated/fa_IR/modules/translations/locales/fr.js +36 -0
  960. package/lib/translated/fa_IR/modules/translations/locales/fr_CA.js +36 -0
  961. package/lib/translated/fa_IR/modules/translations/locales/ht.js +36 -0
  962. package/lib/translated/fa_IR/modules/translations/locales/is.js +36 -0
  963. package/lib/translated/fa_IR/modules/translations/locales/it.js +36 -0
  964. package/lib/translated/fa_IR/modules/translations/locales/ja.js +36 -0
  965. package/lib/translated/fa_IR/modules/translations/locales/mi.js +36 -0
  966. package/lib/translated/fa_IR/modules/translations/locales/nb-x-k12.js +36 -0
  967. package/lib/translated/fa_IR/modules/translations/locales/nb.js +36 -0
  968. package/lib/translated/fa_IR/modules/translations/locales/nl.js +36 -0
  969. package/lib/translated/fa_IR/modules/translations/locales/pl.js +36 -0
  970. package/lib/translated/fa_IR/modules/translations/locales/pt.js +36 -0
  971. package/lib/translated/fa_IR/modules/translations/locales/pt_BR.js +36 -0
  972. package/lib/translated/fa_IR/modules/translations/locales/sl.js +36 -0
  973. package/lib/translated/fa_IR/modules/translations/locales/sv-x-k12.js +36 -0
  974. package/lib/translated/fa_IR/modules/translations/locales/zh-Hans.js +36 -0
  975. package/lib/translated/fa_IR/modules/translations/locales/zh-Hant.js +36 -0
  976. package/lib/translated/fa_IR/modules/translations/locales/zh.js +36 -0
  977. package/lib/translated/fa_IR/modules/translations/locales/zh_HK.js +36 -0
  978. package/lib/translated/fi/modules/common/fileUrl.js +4 -3
  979. package/lib/translated/fi/modules/enhance-user-content/__tests__/enhance_user_content.test.js +55 -1
  980. package/lib/translated/fi/modules/enhance-user-content/doc_previews.js +3 -3
  981. package/lib/translated/fi/modules/enhance-user-content/enhance_user_content.js +30 -13
  982. package/lib/translated/fi/modules/enhance-user-content/instructure_helper.js +14 -5
  983. package/lib/translated/fi/modules/enhance-user-content/media_comment_thumbnail.js +2 -2
  984. package/lib/translated/fi/modules/rce/StatusBar.js +1 -1
  985. package/lib/translated/fi/modules/rce/__tests__/contentInsertion.test.js +1 -1
  986. package/lib/translated/fi/modules/rce/__tests__/contentRendering.test.js +10 -0
  987. package/lib/translated/fi/modules/rce/contentRendering.js +2 -2
  988. package/lib/translated/fi/modules/rce/plugins/instructure_icon_maker/components/CreateIconMakerForm/Header.js +1 -0
  989. package/lib/translated/fi/modules/rce/plugins/instructure_wordcount/components/WordCountModal.js +2 -1
  990. package/lib/translated/fi/modules/rce/plugins/instructure_wordcount/utils/__tests__/countContent.test.js +2 -2
  991. package/lib/translated/fi/modules/rce/plugins/instructure_wordcount/utils/countContent.js +3 -3
  992. package/lib/translated/fi/modules/rce/plugins/shared/CanvasContentTray.js +22 -23
  993. package/lib/translated/fi/modules/rce/plugins/shared/RceFileBrowser.js +13 -5
  994. package/lib/translated/fi/modules/rcs/api.js +3 -2
  995. package/lib/translated/fi/modules/sidebar/store/initialState.js +4 -2
  996. package/lib/translated/fi/modules/translations/locales/ar.js +36 -0
  997. package/lib/translated/fi/modules/translations/locales/ca.js +36 -0
  998. package/lib/translated/fi/modules/translations/locales/cy.js +36 -0
  999. package/lib/translated/fi/modules/translations/locales/da-x-k12.js +36 -0
  1000. package/lib/translated/fi/modules/translations/locales/da.js +36 -0
  1001. package/lib/translated/fi/modules/translations/locales/de.js +36 -0
  1002. package/lib/translated/fi/modules/translations/locales/en-AU-x-unimelb.js +36 -0
  1003. package/lib/translated/fi/modules/translations/locales/en-GB-x-ukhe.js +36 -0
  1004. package/lib/translated/fi/modules/translations/locales/en_AU.js +36 -0
  1005. package/lib/translated/fi/modules/translations/locales/en_CA.js +36 -0
  1006. package/lib/translated/fi/modules/translations/locales/en_CY.js +36 -0
  1007. package/lib/translated/fi/modules/translations/locales/en_GB.js +36 -0
  1008. package/lib/translated/fi/modules/translations/locales/es.js +36 -0
  1009. package/lib/translated/fi/modules/translations/locales/es_ES.js +36 -0
  1010. package/lib/translated/fi/modules/translations/locales/fi.js +36 -0
  1011. package/lib/translated/fi/modules/translations/locales/fr.js +36 -0
  1012. package/lib/translated/fi/modules/translations/locales/fr_CA.js +36 -0
  1013. package/lib/translated/fi/modules/translations/locales/ht.js +36 -0
  1014. package/lib/translated/fi/modules/translations/locales/is.js +36 -0
  1015. package/lib/translated/fi/modules/translations/locales/it.js +36 -0
  1016. package/lib/translated/fi/modules/translations/locales/ja.js +36 -0
  1017. package/lib/translated/fi/modules/translations/locales/mi.js +36 -0
  1018. package/lib/translated/fi/modules/translations/locales/nb-x-k12.js +36 -0
  1019. package/lib/translated/fi/modules/translations/locales/nb.js +36 -0
  1020. package/lib/translated/fi/modules/translations/locales/nl.js +36 -0
  1021. package/lib/translated/fi/modules/translations/locales/pl.js +36 -0
  1022. package/lib/translated/fi/modules/translations/locales/pt.js +36 -0
  1023. package/lib/translated/fi/modules/translations/locales/pt_BR.js +36 -0
  1024. package/lib/translated/fi/modules/translations/locales/sl.js +36 -0
  1025. package/lib/translated/fi/modules/translations/locales/sv-x-k12.js +36 -0
  1026. package/lib/translated/fi/modules/translations/locales/zh-Hans.js +36 -0
  1027. package/lib/translated/fi/modules/translations/locales/zh-Hant.js +36 -0
  1028. package/lib/translated/fi/modules/translations/locales/zh.js +36 -0
  1029. package/lib/translated/fi/modules/translations/locales/zh_HK.js +36 -0
  1030. package/lib/translated/fr/modules/common/fileUrl.js +4 -3
  1031. package/lib/translated/fr/modules/enhance-user-content/__tests__/enhance_user_content.test.js +55 -1
  1032. package/lib/translated/fr/modules/enhance-user-content/doc_previews.js +3 -3
  1033. package/lib/translated/fr/modules/enhance-user-content/enhance_user_content.js +30 -13
  1034. package/lib/translated/fr/modules/enhance-user-content/instructure_helper.js +14 -5
  1035. package/lib/translated/fr/modules/enhance-user-content/media_comment_thumbnail.js +2 -2
  1036. package/lib/translated/fr/modules/rce/StatusBar.js +1 -1
  1037. package/lib/translated/fr/modules/rce/__tests__/contentInsertion.test.js +1 -1
  1038. package/lib/translated/fr/modules/rce/__tests__/contentRendering.test.js +10 -0
  1039. package/lib/translated/fr/modules/rce/contentRendering.js +2 -2
  1040. package/lib/translated/fr/modules/rce/plugins/instructure_icon_maker/components/CreateIconMakerForm/Header.js +1 -0
  1041. package/lib/translated/fr/modules/rce/plugins/instructure_wordcount/components/WordCountModal.js +2 -1
  1042. package/lib/translated/fr/modules/rce/plugins/instructure_wordcount/utils/__tests__/countContent.test.js +2 -2
  1043. package/lib/translated/fr/modules/rce/plugins/instructure_wordcount/utils/countContent.js +3 -3
  1044. package/lib/translated/fr/modules/rce/plugins/shared/CanvasContentTray.js +22 -23
  1045. package/lib/translated/fr/modules/rce/plugins/shared/RceFileBrowser.js +13 -5
  1046. package/lib/translated/fr/modules/rcs/api.js +3 -2
  1047. package/lib/translated/fr/modules/sidebar/store/initialState.js +4 -2
  1048. package/lib/translated/fr/modules/translations/locales/ar.js +36 -0
  1049. package/lib/translated/fr/modules/translations/locales/ca.js +36 -0
  1050. package/lib/translated/fr/modules/translations/locales/cy.js +36 -0
  1051. package/lib/translated/fr/modules/translations/locales/da-x-k12.js +36 -0
  1052. package/lib/translated/fr/modules/translations/locales/da.js +36 -0
  1053. package/lib/translated/fr/modules/translations/locales/de.js +36 -0
  1054. package/lib/translated/fr/modules/translations/locales/en-AU-x-unimelb.js +36 -0
  1055. package/lib/translated/fr/modules/translations/locales/en-GB-x-ukhe.js +36 -0
  1056. package/lib/translated/fr/modules/translations/locales/en_AU.js +36 -0
  1057. package/lib/translated/fr/modules/translations/locales/en_CA.js +36 -0
  1058. package/lib/translated/fr/modules/translations/locales/en_CY.js +36 -0
  1059. package/lib/translated/fr/modules/translations/locales/en_GB.js +36 -0
  1060. package/lib/translated/fr/modules/translations/locales/es.js +36 -0
  1061. package/lib/translated/fr/modules/translations/locales/es_ES.js +36 -0
  1062. package/lib/translated/fr/modules/translations/locales/fi.js +36 -0
  1063. package/lib/translated/fr/modules/translations/locales/fr.js +36 -0
  1064. package/lib/translated/fr/modules/translations/locales/fr_CA.js +36 -0
  1065. package/lib/translated/fr/modules/translations/locales/ht.js +36 -0
  1066. package/lib/translated/fr/modules/translations/locales/is.js +36 -0
  1067. package/lib/translated/fr/modules/translations/locales/it.js +36 -0
  1068. package/lib/translated/fr/modules/translations/locales/ja.js +36 -0
  1069. package/lib/translated/fr/modules/translations/locales/mi.js +36 -0
  1070. package/lib/translated/fr/modules/translations/locales/nb-x-k12.js +36 -0
  1071. package/lib/translated/fr/modules/translations/locales/nb.js +36 -0
  1072. package/lib/translated/fr/modules/translations/locales/nl.js +36 -0
  1073. package/lib/translated/fr/modules/translations/locales/pl.js +36 -0
  1074. package/lib/translated/fr/modules/translations/locales/pt.js +36 -0
  1075. package/lib/translated/fr/modules/translations/locales/pt_BR.js +36 -0
  1076. package/lib/translated/fr/modules/translations/locales/sl.js +36 -0
  1077. package/lib/translated/fr/modules/translations/locales/sv-x-k12.js +36 -0
  1078. package/lib/translated/fr/modules/translations/locales/zh-Hans.js +36 -0
  1079. package/lib/translated/fr/modules/translations/locales/zh-Hant.js +36 -0
  1080. package/lib/translated/fr/modules/translations/locales/zh.js +36 -0
  1081. package/lib/translated/fr/modules/translations/locales/zh_HK.js +36 -0
  1082. package/lib/translated/fr_CA/modules/common/fileUrl.js +4 -3
  1083. package/lib/translated/fr_CA/modules/enhance-user-content/__tests__/enhance_user_content.test.js +55 -1
  1084. package/lib/translated/fr_CA/modules/enhance-user-content/doc_previews.js +3 -3
  1085. package/lib/translated/fr_CA/modules/enhance-user-content/enhance_user_content.js +30 -13
  1086. package/lib/translated/fr_CA/modules/enhance-user-content/instructure_helper.js +14 -5
  1087. package/lib/translated/fr_CA/modules/enhance-user-content/media_comment_thumbnail.js +2 -2
  1088. package/lib/translated/fr_CA/modules/rce/StatusBar.js +1 -1
  1089. package/lib/translated/fr_CA/modules/rce/__tests__/contentInsertion.test.js +1 -1
  1090. package/lib/translated/fr_CA/modules/rce/__tests__/contentRendering.test.js +10 -0
  1091. package/lib/translated/fr_CA/modules/rce/contentRendering.js +2 -2
  1092. package/lib/translated/fr_CA/modules/rce/plugins/instructure_icon_maker/components/CreateIconMakerForm/Header.js +1 -0
  1093. package/lib/translated/fr_CA/modules/rce/plugins/instructure_wordcount/components/WordCountModal.js +2 -1
  1094. package/lib/translated/fr_CA/modules/rce/plugins/instructure_wordcount/utils/__tests__/countContent.test.js +2 -2
  1095. package/lib/translated/fr_CA/modules/rce/plugins/instructure_wordcount/utils/countContent.js +3 -3
  1096. package/lib/translated/fr_CA/modules/rce/plugins/shared/CanvasContentTray.js +22 -23
  1097. package/lib/translated/fr_CA/modules/rce/plugins/shared/RceFileBrowser.js +13 -5
  1098. package/lib/translated/fr_CA/modules/rcs/api.js +3 -2
  1099. package/lib/translated/fr_CA/modules/sidebar/store/initialState.js +4 -2
  1100. package/lib/translated/fr_CA/modules/translations/locales/ar.js +36 -0
  1101. package/lib/translated/fr_CA/modules/translations/locales/ca.js +36 -0
  1102. package/lib/translated/fr_CA/modules/translations/locales/cy.js +36 -0
  1103. package/lib/translated/fr_CA/modules/translations/locales/da-x-k12.js +36 -0
  1104. package/lib/translated/fr_CA/modules/translations/locales/da.js +36 -0
  1105. package/lib/translated/fr_CA/modules/translations/locales/de.js +36 -0
  1106. package/lib/translated/fr_CA/modules/translations/locales/en-AU-x-unimelb.js +36 -0
  1107. package/lib/translated/fr_CA/modules/translations/locales/en-GB-x-ukhe.js +36 -0
  1108. package/lib/translated/fr_CA/modules/translations/locales/en_AU.js +36 -0
  1109. package/lib/translated/fr_CA/modules/translations/locales/en_CA.js +36 -0
  1110. package/lib/translated/fr_CA/modules/translations/locales/en_CY.js +36 -0
  1111. package/lib/translated/fr_CA/modules/translations/locales/en_GB.js +36 -0
  1112. package/lib/translated/fr_CA/modules/translations/locales/es.js +36 -0
  1113. package/lib/translated/fr_CA/modules/translations/locales/es_ES.js +36 -0
  1114. package/lib/translated/fr_CA/modules/translations/locales/fi.js +36 -0
  1115. package/lib/translated/fr_CA/modules/translations/locales/fr.js +36 -0
  1116. package/lib/translated/fr_CA/modules/translations/locales/fr_CA.js +36 -0
  1117. package/lib/translated/fr_CA/modules/translations/locales/ht.js +36 -0
  1118. package/lib/translated/fr_CA/modules/translations/locales/is.js +36 -0
  1119. package/lib/translated/fr_CA/modules/translations/locales/it.js +36 -0
  1120. package/lib/translated/fr_CA/modules/translations/locales/ja.js +36 -0
  1121. package/lib/translated/fr_CA/modules/translations/locales/mi.js +36 -0
  1122. package/lib/translated/fr_CA/modules/translations/locales/nb-x-k12.js +36 -0
  1123. package/lib/translated/fr_CA/modules/translations/locales/nb.js +36 -0
  1124. package/lib/translated/fr_CA/modules/translations/locales/nl.js +36 -0
  1125. package/lib/translated/fr_CA/modules/translations/locales/pl.js +36 -0
  1126. package/lib/translated/fr_CA/modules/translations/locales/pt.js +36 -0
  1127. package/lib/translated/fr_CA/modules/translations/locales/pt_BR.js +36 -0
  1128. package/lib/translated/fr_CA/modules/translations/locales/sl.js +36 -0
  1129. package/lib/translated/fr_CA/modules/translations/locales/sv-x-k12.js +36 -0
  1130. package/lib/translated/fr_CA/modules/translations/locales/zh-Hans.js +36 -0
  1131. package/lib/translated/fr_CA/modules/translations/locales/zh-Hant.js +36 -0
  1132. package/lib/translated/fr_CA/modules/translations/locales/zh.js +36 -0
  1133. package/lib/translated/fr_CA/modules/translations/locales/zh_HK.js +36 -0
  1134. package/lib/translated/he/modules/common/fileUrl.js +4 -3
  1135. package/lib/translated/he/modules/enhance-user-content/__tests__/enhance_user_content.test.js +55 -1
  1136. package/lib/translated/he/modules/enhance-user-content/doc_previews.js +1 -1
  1137. package/lib/translated/he/modules/enhance-user-content/enhance_user_content.js +26 -9
  1138. package/lib/translated/he/modules/enhance-user-content/instructure_helper.js +12 -3
  1139. package/lib/translated/he/modules/rce/__tests__/contentInsertion.test.js +1 -1
  1140. package/lib/translated/he/modules/rce/__tests__/contentRendering.test.js +10 -0
  1141. package/lib/translated/he/modules/rce/contentRendering.js +2 -2
  1142. package/lib/translated/he/modules/rce/plugins/instructure_icon_maker/components/CreateIconMakerForm/Header.js +1 -0
  1143. package/lib/translated/he/modules/rce/plugins/instructure_wordcount/components/WordCountModal.js +2 -1
  1144. package/lib/translated/he/modules/rce/plugins/instructure_wordcount/utils/__tests__/countContent.test.js +2 -2
  1145. package/lib/translated/he/modules/rce/plugins/instructure_wordcount/utils/countContent.js +3 -3
  1146. package/lib/translated/he/modules/rce/plugins/shared/CanvasContentTray.js +22 -23
  1147. package/lib/translated/he/modules/rce/plugins/shared/RceFileBrowser.js +13 -5
  1148. package/lib/translated/he/modules/rcs/api.js +3 -2
  1149. package/lib/translated/he/modules/sidebar/store/initialState.js +4 -2
  1150. package/lib/translated/he/modules/translations/locales/ar.js +36 -0
  1151. package/lib/translated/he/modules/translations/locales/ca.js +36 -0
  1152. package/lib/translated/he/modules/translations/locales/cy.js +36 -0
  1153. package/lib/translated/he/modules/translations/locales/da-x-k12.js +36 -0
  1154. package/lib/translated/he/modules/translations/locales/da.js +36 -0
  1155. package/lib/translated/he/modules/translations/locales/de.js +36 -0
  1156. package/lib/translated/he/modules/translations/locales/en-AU-x-unimelb.js +36 -0
  1157. package/lib/translated/he/modules/translations/locales/en-GB-x-ukhe.js +36 -0
  1158. package/lib/translated/he/modules/translations/locales/en_AU.js +36 -0
  1159. package/lib/translated/he/modules/translations/locales/en_CA.js +36 -0
  1160. package/lib/translated/he/modules/translations/locales/en_CY.js +36 -0
  1161. package/lib/translated/he/modules/translations/locales/en_GB.js +36 -0
  1162. package/lib/translated/he/modules/translations/locales/es.js +36 -0
  1163. package/lib/translated/he/modules/translations/locales/es_ES.js +36 -0
  1164. package/lib/translated/he/modules/translations/locales/fi.js +36 -0
  1165. package/lib/translated/he/modules/translations/locales/fr.js +36 -0
  1166. package/lib/translated/he/modules/translations/locales/fr_CA.js +36 -0
  1167. package/lib/translated/he/modules/translations/locales/ht.js +36 -0
  1168. package/lib/translated/he/modules/translations/locales/is.js +36 -0
  1169. package/lib/translated/he/modules/translations/locales/it.js +36 -0
  1170. package/lib/translated/he/modules/translations/locales/ja.js +36 -0
  1171. package/lib/translated/he/modules/translations/locales/mi.js +36 -0
  1172. package/lib/translated/he/modules/translations/locales/nb-x-k12.js +36 -0
  1173. package/lib/translated/he/modules/translations/locales/nb.js +36 -0
  1174. package/lib/translated/he/modules/translations/locales/nl.js +36 -0
  1175. package/lib/translated/he/modules/translations/locales/pl.js +36 -0
  1176. package/lib/translated/he/modules/translations/locales/pt.js +36 -0
  1177. package/lib/translated/he/modules/translations/locales/pt_BR.js +36 -0
  1178. package/lib/translated/he/modules/translations/locales/sl.js +36 -0
  1179. package/lib/translated/he/modules/translations/locales/sv-x-k12.js +36 -0
  1180. package/lib/translated/he/modules/translations/locales/zh-Hans.js +36 -0
  1181. package/lib/translated/he/modules/translations/locales/zh-Hant.js +36 -0
  1182. package/lib/translated/he/modules/translations/locales/zh.js +36 -0
  1183. package/lib/translated/he/modules/translations/locales/zh_HK.js +36 -0
  1184. package/lib/translated/ht/modules/common/fileUrl.js +4 -3
  1185. package/lib/translated/ht/modules/enhance-user-content/__tests__/enhance_user_content.test.js +55 -1
  1186. package/lib/translated/ht/modules/enhance-user-content/doc_previews.js +3 -3
  1187. package/lib/translated/ht/modules/enhance-user-content/enhance_user_content.js +30 -13
  1188. package/lib/translated/ht/modules/enhance-user-content/instructure_helper.js +14 -5
  1189. package/lib/translated/ht/modules/enhance-user-content/media_comment_thumbnail.js +2 -2
  1190. package/lib/translated/ht/modules/rce/StatusBar.js +1 -1
  1191. package/lib/translated/ht/modules/rce/__tests__/contentInsertion.test.js +1 -1
  1192. package/lib/translated/ht/modules/rce/__tests__/contentRendering.test.js +10 -0
  1193. package/lib/translated/ht/modules/rce/contentRendering.js +2 -2
  1194. package/lib/translated/ht/modules/rce/plugins/instructure_icon_maker/components/CreateIconMakerForm/Header.js +1 -0
  1195. package/lib/translated/ht/modules/rce/plugins/instructure_wordcount/components/WordCountModal.js +2 -1
  1196. package/lib/translated/ht/modules/rce/plugins/instructure_wordcount/utils/__tests__/countContent.test.js +2 -2
  1197. package/lib/translated/ht/modules/rce/plugins/instructure_wordcount/utils/countContent.js +3 -3
  1198. package/lib/translated/ht/modules/rce/plugins/shared/CanvasContentTray.js +22 -23
  1199. package/lib/translated/ht/modules/rce/plugins/shared/RceFileBrowser.js +13 -5
  1200. package/lib/translated/ht/modules/rcs/api.js +3 -2
  1201. package/lib/translated/ht/modules/sidebar/store/initialState.js +4 -2
  1202. package/lib/translated/ht/modules/translations/locales/ar.js +36 -0
  1203. package/lib/translated/ht/modules/translations/locales/ca.js +36 -0
  1204. package/lib/translated/ht/modules/translations/locales/cy.js +36 -0
  1205. package/lib/translated/ht/modules/translations/locales/da-x-k12.js +36 -0
  1206. package/lib/translated/ht/modules/translations/locales/da.js +36 -0
  1207. package/lib/translated/ht/modules/translations/locales/de.js +36 -0
  1208. package/lib/translated/ht/modules/translations/locales/en-AU-x-unimelb.js +36 -0
  1209. package/lib/translated/ht/modules/translations/locales/en-GB-x-ukhe.js +36 -0
  1210. package/lib/translated/ht/modules/translations/locales/en_AU.js +36 -0
  1211. package/lib/translated/ht/modules/translations/locales/en_CA.js +36 -0
  1212. package/lib/translated/ht/modules/translations/locales/en_CY.js +36 -0
  1213. package/lib/translated/ht/modules/translations/locales/en_GB.js +36 -0
  1214. package/lib/translated/ht/modules/translations/locales/es.js +36 -0
  1215. package/lib/translated/ht/modules/translations/locales/es_ES.js +36 -0
  1216. package/lib/translated/ht/modules/translations/locales/fi.js +36 -0
  1217. package/lib/translated/ht/modules/translations/locales/fr.js +36 -0
  1218. package/lib/translated/ht/modules/translations/locales/fr_CA.js +36 -0
  1219. package/lib/translated/ht/modules/translations/locales/ht.js +36 -0
  1220. package/lib/translated/ht/modules/translations/locales/is.js +36 -0
  1221. package/lib/translated/ht/modules/translations/locales/it.js +36 -0
  1222. package/lib/translated/ht/modules/translations/locales/ja.js +36 -0
  1223. package/lib/translated/ht/modules/translations/locales/mi.js +36 -0
  1224. package/lib/translated/ht/modules/translations/locales/nb-x-k12.js +36 -0
  1225. package/lib/translated/ht/modules/translations/locales/nb.js +36 -0
  1226. package/lib/translated/ht/modules/translations/locales/nl.js +36 -0
  1227. package/lib/translated/ht/modules/translations/locales/pl.js +36 -0
  1228. package/lib/translated/ht/modules/translations/locales/pt.js +36 -0
  1229. package/lib/translated/ht/modules/translations/locales/pt_BR.js +36 -0
  1230. package/lib/translated/ht/modules/translations/locales/sl.js +36 -0
  1231. package/lib/translated/ht/modules/translations/locales/sv-x-k12.js +36 -0
  1232. package/lib/translated/ht/modules/translations/locales/zh-Hans.js +36 -0
  1233. package/lib/translated/ht/modules/translations/locales/zh-Hant.js +36 -0
  1234. package/lib/translated/ht/modules/translations/locales/zh.js +36 -0
  1235. package/lib/translated/ht/modules/translations/locales/zh_HK.js +36 -0
  1236. package/lib/translated/hu/modules/common/fileUrl.js +4 -3
  1237. package/lib/translated/hu/modules/enhance-user-content/__tests__/enhance_user_content.test.js +55 -1
  1238. package/lib/translated/hu/modules/enhance-user-content/doc_previews.js +1 -1
  1239. package/lib/translated/hu/modules/enhance-user-content/enhance_user_content.js +26 -9
  1240. package/lib/translated/hu/modules/enhance-user-content/instructure_helper.js +12 -3
  1241. package/lib/translated/hu/modules/rce/__tests__/contentInsertion.test.js +1 -1
  1242. package/lib/translated/hu/modules/rce/__tests__/contentRendering.test.js +10 -0
  1243. package/lib/translated/hu/modules/rce/contentRendering.js +2 -2
  1244. package/lib/translated/hu/modules/rce/plugins/instructure_icon_maker/components/CreateIconMakerForm/Header.js +1 -0
  1245. package/lib/translated/hu/modules/rce/plugins/instructure_wordcount/components/WordCountModal.js +2 -1
  1246. package/lib/translated/hu/modules/rce/plugins/instructure_wordcount/utils/__tests__/countContent.test.js +2 -2
  1247. package/lib/translated/hu/modules/rce/plugins/instructure_wordcount/utils/countContent.js +3 -3
  1248. package/lib/translated/hu/modules/rce/plugins/shared/CanvasContentTray.js +22 -23
  1249. package/lib/translated/hu/modules/rce/plugins/shared/RceFileBrowser.js +13 -5
  1250. package/lib/translated/hu/modules/rcs/api.js +3 -2
  1251. package/lib/translated/hu/modules/sidebar/store/initialState.js +4 -2
  1252. package/lib/translated/hu/modules/translations/locales/ar.js +36 -0
  1253. package/lib/translated/hu/modules/translations/locales/ca.js +36 -0
  1254. package/lib/translated/hu/modules/translations/locales/cy.js +36 -0
  1255. package/lib/translated/hu/modules/translations/locales/da-x-k12.js +36 -0
  1256. package/lib/translated/hu/modules/translations/locales/da.js +36 -0
  1257. package/lib/translated/hu/modules/translations/locales/de.js +36 -0
  1258. package/lib/translated/hu/modules/translations/locales/en-AU-x-unimelb.js +36 -0
  1259. package/lib/translated/hu/modules/translations/locales/en-GB-x-ukhe.js +36 -0
  1260. package/lib/translated/hu/modules/translations/locales/en_AU.js +36 -0
  1261. package/lib/translated/hu/modules/translations/locales/en_CA.js +36 -0
  1262. package/lib/translated/hu/modules/translations/locales/en_CY.js +36 -0
  1263. package/lib/translated/hu/modules/translations/locales/en_GB.js +36 -0
  1264. package/lib/translated/hu/modules/translations/locales/es.js +36 -0
  1265. package/lib/translated/hu/modules/translations/locales/es_ES.js +36 -0
  1266. package/lib/translated/hu/modules/translations/locales/fi.js +36 -0
  1267. package/lib/translated/hu/modules/translations/locales/fr.js +36 -0
  1268. package/lib/translated/hu/modules/translations/locales/fr_CA.js +36 -0
  1269. package/lib/translated/hu/modules/translations/locales/ht.js +36 -0
  1270. package/lib/translated/hu/modules/translations/locales/is.js +36 -0
  1271. package/lib/translated/hu/modules/translations/locales/it.js +36 -0
  1272. package/lib/translated/hu/modules/translations/locales/ja.js +36 -0
  1273. package/lib/translated/hu/modules/translations/locales/mi.js +36 -0
  1274. package/lib/translated/hu/modules/translations/locales/nb-x-k12.js +36 -0
  1275. package/lib/translated/hu/modules/translations/locales/nb.js +36 -0
  1276. package/lib/translated/hu/modules/translations/locales/nl.js +36 -0
  1277. package/lib/translated/hu/modules/translations/locales/pl.js +36 -0
  1278. package/lib/translated/hu/modules/translations/locales/pt.js +36 -0
  1279. package/lib/translated/hu/modules/translations/locales/pt_BR.js +36 -0
  1280. package/lib/translated/hu/modules/translations/locales/sl.js +36 -0
  1281. package/lib/translated/hu/modules/translations/locales/sv-x-k12.js +36 -0
  1282. package/lib/translated/hu/modules/translations/locales/zh-Hans.js +36 -0
  1283. package/lib/translated/hu/modules/translations/locales/zh-Hant.js +36 -0
  1284. package/lib/translated/hu/modules/translations/locales/zh.js +36 -0
  1285. package/lib/translated/hu/modules/translations/locales/zh_HK.js +36 -0
  1286. package/lib/translated/hy/modules/common/fileUrl.js +4 -3
  1287. package/lib/translated/hy/modules/enhance-user-content/__tests__/enhance_user_content.test.js +55 -1
  1288. package/lib/translated/hy/modules/enhance-user-content/doc_previews.js +1 -1
  1289. package/lib/translated/hy/modules/enhance-user-content/enhance_user_content.js +26 -9
  1290. package/lib/translated/hy/modules/enhance-user-content/instructure_helper.js +12 -3
  1291. package/lib/translated/hy/modules/rce/__tests__/contentInsertion.test.js +1 -1
  1292. package/lib/translated/hy/modules/rce/__tests__/contentRendering.test.js +10 -0
  1293. package/lib/translated/hy/modules/rce/contentRendering.js +2 -2
  1294. package/lib/translated/hy/modules/rce/plugins/instructure_icon_maker/components/CreateIconMakerForm/Header.js +1 -0
  1295. package/lib/translated/hy/modules/rce/plugins/instructure_wordcount/components/WordCountModal.js +2 -1
  1296. package/lib/translated/hy/modules/rce/plugins/instructure_wordcount/utils/__tests__/countContent.test.js +2 -2
  1297. package/lib/translated/hy/modules/rce/plugins/instructure_wordcount/utils/countContent.js +3 -3
  1298. package/lib/translated/hy/modules/rce/plugins/shared/CanvasContentTray.js +22 -23
  1299. package/lib/translated/hy/modules/rce/plugins/shared/RceFileBrowser.js +13 -5
  1300. package/lib/translated/hy/modules/rcs/api.js +3 -2
  1301. package/lib/translated/hy/modules/sidebar/store/initialState.js +4 -2
  1302. package/lib/translated/hy/modules/translations/locales/ar.js +36 -0
  1303. package/lib/translated/hy/modules/translations/locales/ca.js +36 -0
  1304. package/lib/translated/hy/modules/translations/locales/cy.js +36 -0
  1305. package/lib/translated/hy/modules/translations/locales/da-x-k12.js +36 -0
  1306. package/lib/translated/hy/modules/translations/locales/da.js +36 -0
  1307. package/lib/translated/hy/modules/translations/locales/de.js +36 -0
  1308. package/lib/translated/hy/modules/translations/locales/en-AU-x-unimelb.js +36 -0
  1309. package/lib/translated/hy/modules/translations/locales/en-GB-x-ukhe.js +36 -0
  1310. package/lib/translated/hy/modules/translations/locales/en_AU.js +36 -0
  1311. package/lib/translated/hy/modules/translations/locales/en_CA.js +36 -0
  1312. package/lib/translated/hy/modules/translations/locales/en_CY.js +36 -0
  1313. package/lib/translated/hy/modules/translations/locales/en_GB.js +36 -0
  1314. package/lib/translated/hy/modules/translations/locales/es.js +36 -0
  1315. package/lib/translated/hy/modules/translations/locales/es_ES.js +36 -0
  1316. package/lib/translated/hy/modules/translations/locales/fi.js +36 -0
  1317. package/lib/translated/hy/modules/translations/locales/fr.js +36 -0
  1318. package/lib/translated/hy/modules/translations/locales/fr_CA.js +36 -0
  1319. package/lib/translated/hy/modules/translations/locales/ht.js +36 -0
  1320. package/lib/translated/hy/modules/translations/locales/is.js +36 -0
  1321. package/lib/translated/hy/modules/translations/locales/it.js +36 -0
  1322. package/lib/translated/hy/modules/translations/locales/ja.js +36 -0
  1323. package/lib/translated/hy/modules/translations/locales/mi.js +36 -0
  1324. package/lib/translated/hy/modules/translations/locales/nb-x-k12.js +36 -0
  1325. package/lib/translated/hy/modules/translations/locales/nb.js +36 -0
  1326. package/lib/translated/hy/modules/translations/locales/nl.js +36 -0
  1327. package/lib/translated/hy/modules/translations/locales/pl.js +36 -0
  1328. package/lib/translated/hy/modules/translations/locales/pt.js +36 -0
  1329. package/lib/translated/hy/modules/translations/locales/pt_BR.js +36 -0
  1330. package/lib/translated/hy/modules/translations/locales/sl.js +36 -0
  1331. package/lib/translated/hy/modules/translations/locales/sv-x-k12.js +36 -0
  1332. package/lib/translated/hy/modules/translations/locales/zh-Hans.js +36 -0
  1333. package/lib/translated/hy/modules/translations/locales/zh-Hant.js +36 -0
  1334. package/lib/translated/hy/modules/translations/locales/zh.js +36 -0
  1335. package/lib/translated/hy/modules/translations/locales/zh_HK.js +36 -0
  1336. package/lib/translated/is/modules/common/fileUrl.js +4 -3
  1337. package/lib/translated/is/modules/enhance-user-content/__tests__/enhance_user_content.test.js +55 -1
  1338. package/lib/translated/is/modules/enhance-user-content/doc_previews.js +3 -3
  1339. package/lib/translated/is/modules/enhance-user-content/enhance_user_content.js +30 -13
  1340. package/lib/translated/is/modules/enhance-user-content/instructure_helper.js +14 -5
  1341. package/lib/translated/is/modules/enhance-user-content/media_comment_thumbnail.js +2 -2
  1342. package/lib/translated/is/modules/rce/StatusBar.js +1 -1
  1343. package/lib/translated/is/modules/rce/__tests__/contentInsertion.test.js +1 -1
  1344. package/lib/translated/is/modules/rce/__tests__/contentRendering.test.js +10 -0
  1345. package/lib/translated/is/modules/rce/contentRendering.js +2 -2
  1346. package/lib/translated/is/modules/rce/plugins/instructure_icon_maker/components/CreateIconMakerForm/Header.js +1 -0
  1347. package/lib/translated/is/modules/rce/plugins/instructure_wordcount/components/WordCountModal.js +2 -1
  1348. package/lib/translated/is/modules/rce/plugins/instructure_wordcount/utils/__tests__/countContent.test.js +2 -2
  1349. package/lib/translated/is/modules/rce/plugins/instructure_wordcount/utils/countContent.js +3 -3
  1350. package/lib/translated/is/modules/rce/plugins/shared/CanvasContentTray.js +22 -23
  1351. package/lib/translated/is/modules/rce/plugins/shared/RceFileBrowser.js +13 -5
  1352. package/lib/translated/is/modules/rcs/api.js +3 -2
  1353. package/lib/translated/is/modules/sidebar/store/initialState.js +4 -2
  1354. package/lib/translated/is/modules/translations/locales/ar.js +36 -0
  1355. package/lib/translated/is/modules/translations/locales/ca.js +36 -0
  1356. package/lib/translated/is/modules/translations/locales/cy.js +36 -0
  1357. package/lib/translated/is/modules/translations/locales/da-x-k12.js +36 -0
  1358. package/lib/translated/is/modules/translations/locales/da.js +36 -0
  1359. package/lib/translated/is/modules/translations/locales/de.js +36 -0
  1360. package/lib/translated/is/modules/translations/locales/en-AU-x-unimelb.js +36 -0
  1361. package/lib/translated/is/modules/translations/locales/en-GB-x-ukhe.js +36 -0
  1362. package/lib/translated/is/modules/translations/locales/en_AU.js +36 -0
  1363. package/lib/translated/is/modules/translations/locales/en_CA.js +36 -0
  1364. package/lib/translated/is/modules/translations/locales/en_CY.js +36 -0
  1365. package/lib/translated/is/modules/translations/locales/en_GB.js +36 -0
  1366. package/lib/translated/is/modules/translations/locales/es.js +36 -0
  1367. package/lib/translated/is/modules/translations/locales/es_ES.js +36 -0
  1368. package/lib/translated/is/modules/translations/locales/fi.js +36 -0
  1369. package/lib/translated/is/modules/translations/locales/fr.js +36 -0
  1370. package/lib/translated/is/modules/translations/locales/fr_CA.js +36 -0
  1371. package/lib/translated/is/modules/translations/locales/ht.js +36 -0
  1372. package/lib/translated/is/modules/translations/locales/is.js +36 -0
  1373. package/lib/translated/is/modules/translations/locales/it.js +36 -0
  1374. package/lib/translated/is/modules/translations/locales/ja.js +36 -0
  1375. package/lib/translated/is/modules/translations/locales/mi.js +36 -0
  1376. package/lib/translated/is/modules/translations/locales/nb-x-k12.js +36 -0
  1377. package/lib/translated/is/modules/translations/locales/nb.js +36 -0
  1378. package/lib/translated/is/modules/translations/locales/nl.js +36 -0
  1379. package/lib/translated/is/modules/translations/locales/pl.js +36 -0
  1380. package/lib/translated/is/modules/translations/locales/pt.js +36 -0
  1381. package/lib/translated/is/modules/translations/locales/pt_BR.js +36 -0
  1382. package/lib/translated/is/modules/translations/locales/sl.js +36 -0
  1383. package/lib/translated/is/modules/translations/locales/sv-x-k12.js +36 -0
  1384. package/lib/translated/is/modules/translations/locales/zh-Hans.js +36 -0
  1385. package/lib/translated/is/modules/translations/locales/zh-Hant.js +36 -0
  1386. package/lib/translated/is/modules/translations/locales/zh.js +36 -0
  1387. package/lib/translated/is/modules/translations/locales/zh_HK.js +36 -0
  1388. package/lib/translated/it/modules/common/fileUrl.js +4 -3
  1389. package/lib/translated/it/modules/enhance-user-content/__tests__/enhance_user_content.test.js +55 -1
  1390. package/lib/translated/it/modules/enhance-user-content/doc_previews.js +3 -3
  1391. package/lib/translated/it/modules/enhance-user-content/enhance_user_content.js +30 -13
  1392. package/lib/translated/it/modules/enhance-user-content/instructure_helper.js +14 -5
  1393. package/lib/translated/it/modules/enhance-user-content/media_comment_thumbnail.js +2 -2
  1394. package/lib/translated/it/modules/rce/StatusBar.js +1 -1
  1395. package/lib/translated/it/modules/rce/__tests__/contentInsertion.test.js +1 -1
  1396. package/lib/translated/it/modules/rce/__tests__/contentRendering.test.js +10 -0
  1397. package/lib/translated/it/modules/rce/contentRendering.js +2 -2
  1398. package/lib/translated/it/modules/rce/plugins/instructure_icon_maker/components/CreateIconMakerForm/Header.js +1 -0
  1399. package/lib/translated/it/modules/rce/plugins/instructure_wordcount/components/WordCountModal.js +2 -1
  1400. package/lib/translated/it/modules/rce/plugins/instructure_wordcount/utils/__tests__/countContent.test.js +2 -2
  1401. package/lib/translated/it/modules/rce/plugins/instructure_wordcount/utils/countContent.js +3 -3
  1402. package/lib/translated/it/modules/rce/plugins/shared/CanvasContentTray.js +22 -23
  1403. package/lib/translated/it/modules/rce/plugins/shared/RceFileBrowser.js +13 -5
  1404. package/lib/translated/it/modules/rcs/api.js +3 -2
  1405. package/lib/translated/it/modules/sidebar/store/initialState.js +4 -2
  1406. package/lib/translated/it/modules/translations/locales/ar.js +36 -0
  1407. package/lib/translated/it/modules/translations/locales/ca.js +36 -0
  1408. package/lib/translated/it/modules/translations/locales/cy.js +36 -0
  1409. package/lib/translated/it/modules/translations/locales/da-x-k12.js +36 -0
  1410. package/lib/translated/it/modules/translations/locales/da.js +36 -0
  1411. package/lib/translated/it/modules/translations/locales/de.js +36 -0
  1412. package/lib/translated/it/modules/translations/locales/en-AU-x-unimelb.js +36 -0
  1413. package/lib/translated/it/modules/translations/locales/en-GB-x-ukhe.js +36 -0
  1414. package/lib/translated/it/modules/translations/locales/en_AU.js +36 -0
  1415. package/lib/translated/it/modules/translations/locales/en_CA.js +36 -0
  1416. package/lib/translated/it/modules/translations/locales/en_CY.js +36 -0
  1417. package/lib/translated/it/modules/translations/locales/en_GB.js +36 -0
  1418. package/lib/translated/it/modules/translations/locales/es.js +36 -0
  1419. package/lib/translated/it/modules/translations/locales/es_ES.js +36 -0
  1420. package/lib/translated/it/modules/translations/locales/fi.js +36 -0
  1421. package/lib/translated/it/modules/translations/locales/fr.js +36 -0
  1422. package/lib/translated/it/modules/translations/locales/fr_CA.js +36 -0
  1423. package/lib/translated/it/modules/translations/locales/ht.js +36 -0
  1424. package/lib/translated/it/modules/translations/locales/is.js +36 -0
  1425. package/lib/translated/it/modules/translations/locales/it.js +36 -0
  1426. package/lib/translated/it/modules/translations/locales/ja.js +36 -0
  1427. package/lib/translated/it/modules/translations/locales/mi.js +36 -0
  1428. package/lib/translated/it/modules/translations/locales/nb-x-k12.js +36 -0
  1429. package/lib/translated/it/modules/translations/locales/nb.js +36 -0
  1430. package/lib/translated/it/modules/translations/locales/nl.js +36 -0
  1431. package/lib/translated/it/modules/translations/locales/pl.js +36 -0
  1432. package/lib/translated/it/modules/translations/locales/pt.js +36 -0
  1433. package/lib/translated/it/modules/translations/locales/pt_BR.js +36 -0
  1434. package/lib/translated/it/modules/translations/locales/sl.js +36 -0
  1435. package/lib/translated/it/modules/translations/locales/sv-x-k12.js +36 -0
  1436. package/lib/translated/it/modules/translations/locales/zh-Hans.js +36 -0
  1437. package/lib/translated/it/modules/translations/locales/zh-Hant.js +36 -0
  1438. package/lib/translated/it/modules/translations/locales/zh.js +36 -0
  1439. package/lib/translated/it/modules/translations/locales/zh_HK.js +36 -0
  1440. package/lib/translated/ja/modules/common/fileUrl.js +4 -3
  1441. package/lib/translated/ja/modules/enhance-user-content/__tests__/enhance_user_content.test.js +55 -1
  1442. package/lib/translated/ja/modules/enhance-user-content/doc_previews.js +3 -3
  1443. package/lib/translated/ja/modules/enhance-user-content/enhance_user_content.js +30 -13
  1444. package/lib/translated/ja/modules/enhance-user-content/instructure_helper.js +14 -5
  1445. package/lib/translated/ja/modules/enhance-user-content/media_comment_thumbnail.js +2 -2
  1446. package/lib/translated/ja/modules/rce/StatusBar.js +1 -1
  1447. package/lib/translated/ja/modules/rce/__tests__/contentInsertion.test.js +1 -1
  1448. package/lib/translated/ja/modules/rce/__tests__/contentRendering.test.js +10 -0
  1449. package/lib/translated/ja/modules/rce/contentRendering.js +2 -2
  1450. package/lib/translated/ja/modules/rce/plugins/instructure_icon_maker/components/CreateIconMakerForm/Header.js +1 -0
  1451. package/lib/translated/ja/modules/rce/plugins/instructure_wordcount/components/WordCountModal.js +2 -1
  1452. package/lib/translated/ja/modules/rce/plugins/instructure_wordcount/utils/__tests__/countContent.test.js +2 -2
  1453. package/lib/translated/ja/modules/rce/plugins/instructure_wordcount/utils/countContent.js +3 -3
  1454. package/lib/translated/ja/modules/rce/plugins/shared/CanvasContentTray.js +22 -23
  1455. package/lib/translated/ja/modules/rce/plugins/shared/RceFileBrowser.js +13 -5
  1456. package/lib/translated/ja/modules/rcs/api.js +3 -2
  1457. package/lib/translated/ja/modules/sidebar/store/initialState.js +4 -2
  1458. package/lib/translated/ja/modules/translations/locales/ar.js +36 -0
  1459. package/lib/translated/ja/modules/translations/locales/ca.js +36 -0
  1460. package/lib/translated/ja/modules/translations/locales/cy.js +36 -0
  1461. package/lib/translated/ja/modules/translations/locales/da-x-k12.js +36 -0
  1462. package/lib/translated/ja/modules/translations/locales/da.js +36 -0
  1463. package/lib/translated/ja/modules/translations/locales/de.js +36 -0
  1464. package/lib/translated/ja/modules/translations/locales/en-AU-x-unimelb.js +36 -0
  1465. package/lib/translated/ja/modules/translations/locales/en-GB-x-ukhe.js +36 -0
  1466. package/lib/translated/ja/modules/translations/locales/en_AU.js +36 -0
  1467. package/lib/translated/ja/modules/translations/locales/en_CA.js +36 -0
  1468. package/lib/translated/ja/modules/translations/locales/en_CY.js +36 -0
  1469. package/lib/translated/ja/modules/translations/locales/en_GB.js +36 -0
  1470. package/lib/translated/ja/modules/translations/locales/es.js +36 -0
  1471. package/lib/translated/ja/modules/translations/locales/es_ES.js +36 -0
  1472. package/lib/translated/ja/modules/translations/locales/fi.js +36 -0
  1473. package/lib/translated/ja/modules/translations/locales/fr.js +36 -0
  1474. package/lib/translated/ja/modules/translations/locales/fr_CA.js +36 -0
  1475. package/lib/translated/ja/modules/translations/locales/ht.js +36 -0
  1476. package/lib/translated/ja/modules/translations/locales/is.js +36 -0
  1477. package/lib/translated/ja/modules/translations/locales/it.js +36 -0
  1478. package/lib/translated/ja/modules/translations/locales/ja.js +36 -0
  1479. package/lib/translated/ja/modules/translations/locales/mi.js +36 -0
  1480. package/lib/translated/ja/modules/translations/locales/nb-x-k12.js +36 -0
  1481. package/lib/translated/ja/modules/translations/locales/nb.js +36 -0
  1482. package/lib/translated/ja/modules/translations/locales/nl.js +36 -0
  1483. package/lib/translated/ja/modules/translations/locales/pl.js +36 -0
  1484. package/lib/translated/ja/modules/translations/locales/pt.js +36 -0
  1485. package/lib/translated/ja/modules/translations/locales/pt_BR.js +36 -0
  1486. package/lib/translated/ja/modules/translations/locales/sl.js +36 -0
  1487. package/lib/translated/ja/modules/translations/locales/sv-x-k12.js +36 -0
  1488. package/lib/translated/ja/modules/translations/locales/zh-Hans.js +36 -0
  1489. package/lib/translated/ja/modules/translations/locales/zh-Hant.js +36 -0
  1490. package/lib/translated/ja/modules/translations/locales/zh.js +36 -0
  1491. package/lib/translated/ja/modules/translations/locales/zh_HK.js +36 -0
  1492. package/lib/translated/ko/modules/common/fileUrl.js +4 -3
  1493. package/lib/translated/ko/modules/enhance-user-content/__tests__/enhance_user_content.test.js +55 -1
  1494. package/lib/translated/ko/modules/enhance-user-content/doc_previews.js +1 -1
  1495. package/lib/translated/ko/modules/enhance-user-content/enhance_user_content.js +26 -9
  1496. package/lib/translated/ko/modules/enhance-user-content/instructure_helper.js +12 -3
  1497. package/lib/translated/ko/modules/rce/__tests__/contentInsertion.test.js +1 -1
  1498. package/lib/translated/ko/modules/rce/__tests__/contentRendering.test.js +10 -0
  1499. package/lib/translated/ko/modules/rce/contentRendering.js +2 -2
  1500. package/lib/translated/ko/modules/rce/plugins/instructure_icon_maker/components/CreateIconMakerForm/Header.js +1 -0
  1501. package/lib/translated/ko/modules/rce/plugins/instructure_wordcount/components/WordCountModal.js +2 -1
  1502. package/lib/translated/ko/modules/rce/plugins/instructure_wordcount/utils/__tests__/countContent.test.js +2 -2
  1503. package/lib/translated/ko/modules/rce/plugins/instructure_wordcount/utils/countContent.js +3 -3
  1504. package/lib/translated/ko/modules/rce/plugins/shared/CanvasContentTray.js +22 -23
  1505. package/lib/translated/ko/modules/rce/plugins/shared/RceFileBrowser.js +13 -5
  1506. package/lib/translated/ko/modules/rcs/api.js +3 -2
  1507. package/lib/translated/ko/modules/sidebar/store/initialState.js +4 -2
  1508. package/lib/translated/ko/modules/translations/locales/ar.js +36 -0
  1509. package/lib/translated/ko/modules/translations/locales/ca.js +36 -0
  1510. package/lib/translated/ko/modules/translations/locales/cy.js +36 -0
  1511. package/lib/translated/ko/modules/translations/locales/da-x-k12.js +36 -0
  1512. package/lib/translated/ko/modules/translations/locales/da.js +36 -0
  1513. package/lib/translated/ko/modules/translations/locales/de.js +36 -0
  1514. package/lib/translated/ko/modules/translations/locales/en-AU-x-unimelb.js +36 -0
  1515. package/lib/translated/ko/modules/translations/locales/en-GB-x-ukhe.js +36 -0
  1516. package/lib/translated/ko/modules/translations/locales/en_AU.js +36 -0
  1517. package/lib/translated/ko/modules/translations/locales/en_CA.js +36 -0
  1518. package/lib/translated/ko/modules/translations/locales/en_CY.js +36 -0
  1519. package/lib/translated/ko/modules/translations/locales/en_GB.js +36 -0
  1520. package/lib/translated/ko/modules/translations/locales/es.js +36 -0
  1521. package/lib/translated/ko/modules/translations/locales/es_ES.js +36 -0
  1522. package/lib/translated/ko/modules/translations/locales/fi.js +36 -0
  1523. package/lib/translated/ko/modules/translations/locales/fr.js +36 -0
  1524. package/lib/translated/ko/modules/translations/locales/fr_CA.js +36 -0
  1525. package/lib/translated/ko/modules/translations/locales/ht.js +36 -0
  1526. package/lib/translated/ko/modules/translations/locales/is.js +36 -0
  1527. package/lib/translated/ko/modules/translations/locales/it.js +36 -0
  1528. package/lib/translated/ko/modules/translations/locales/ja.js +36 -0
  1529. package/lib/translated/ko/modules/translations/locales/mi.js +36 -0
  1530. package/lib/translated/ko/modules/translations/locales/nb-x-k12.js +36 -0
  1531. package/lib/translated/ko/modules/translations/locales/nb.js +36 -0
  1532. package/lib/translated/ko/modules/translations/locales/nl.js +36 -0
  1533. package/lib/translated/ko/modules/translations/locales/pl.js +36 -0
  1534. package/lib/translated/ko/modules/translations/locales/pt.js +36 -0
  1535. package/lib/translated/ko/modules/translations/locales/pt_BR.js +36 -0
  1536. package/lib/translated/ko/modules/translations/locales/sl.js +36 -0
  1537. package/lib/translated/ko/modules/translations/locales/sv-x-k12.js +36 -0
  1538. package/lib/translated/ko/modules/translations/locales/zh-Hans.js +36 -0
  1539. package/lib/translated/ko/modules/translations/locales/zh-Hant.js +36 -0
  1540. package/lib/translated/ko/modules/translations/locales/zh.js +36 -0
  1541. package/lib/translated/ko/modules/translations/locales/zh_HK.js +36 -0
  1542. package/lib/translated/mi/modules/common/fileUrl.js +4 -3
  1543. package/lib/translated/mi/modules/enhance-user-content/__tests__/enhance_user_content.test.js +55 -1
  1544. package/lib/translated/mi/modules/enhance-user-content/doc_previews.js +3 -3
  1545. package/lib/translated/mi/modules/enhance-user-content/enhance_user_content.js +30 -13
  1546. package/lib/translated/mi/modules/enhance-user-content/instructure_helper.js +14 -5
  1547. package/lib/translated/mi/modules/enhance-user-content/media_comment_thumbnail.js +2 -2
  1548. package/lib/translated/mi/modules/rce/StatusBar.js +1 -1
  1549. package/lib/translated/mi/modules/rce/__tests__/contentInsertion.test.js +1 -1
  1550. package/lib/translated/mi/modules/rce/__tests__/contentRendering.test.js +10 -0
  1551. package/lib/translated/mi/modules/rce/contentRendering.js +2 -2
  1552. package/lib/translated/mi/modules/rce/plugins/instructure_icon_maker/components/CreateIconMakerForm/Header.js +1 -0
  1553. package/lib/translated/mi/modules/rce/plugins/instructure_wordcount/components/WordCountModal.js +2 -1
  1554. package/lib/translated/mi/modules/rce/plugins/instructure_wordcount/utils/__tests__/countContent.test.js +2 -2
  1555. package/lib/translated/mi/modules/rce/plugins/instructure_wordcount/utils/countContent.js +3 -3
  1556. package/lib/translated/mi/modules/rce/plugins/shared/CanvasContentTray.js +22 -23
  1557. package/lib/translated/mi/modules/rce/plugins/shared/RceFileBrowser.js +13 -5
  1558. package/lib/translated/mi/modules/rcs/api.js +3 -2
  1559. package/lib/translated/mi/modules/sidebar/store/initialState.js +4 -2
  1560. package/lib/translated/mi/modules/translations/locales/ar.js +36 -0
  1561. package/lib/translated/mi/modules/translations/locales/ca.js +36 -0
  1562. package/lib/translated/mi/modules/translations/locales/cy.js +36 -0
  1563. package/lib/translated/mi/modules/translations/locales/da-x-k12.js +36 -0
  1564. package/lib/translated/mi/modules/translations/locales/da.js +36 -0
  1565. package/lib/translated/mi/modules/translations/locales/de.js +36 -0
  1566. package/lib/translated/mi/modules/translations/locales/en-AU-x-unimelb.js +36 -0
  1567. package/lib/translated/mi/modules/translations/locales/en-GB-x-ukhe.js +36 -0
  1568. package/lib/translated/mi/modules/translations/locales/en_AU.js +36 -0
  1569. package/lib/translated/mi/modules/translations/locales/en_CA.js +36 -0
  1570. package/lib/translated/mi/modules/translations/locales/en_CY.js +36 -0
  1571. package/lib/translated/mi/modules/translations/locales/en_GB.js +36 -0
  1572. package/lib/translated/mi/modules/translations/locales/es.js +36 -0
  1573. package/lib/translated/mi/modules/translations/locales/es_ES.js +36 -0
  1574. package/lib/translated/mi/modules/translations/locales/fi.js +36 -0
  1575. package/lib/translated/mi/modules/translations/locales/fr.js +36 -0
  1576. package/lib/translated/mi/modules/translations/locales/fr_CA.js +36 -0
  1577. package/lib/translated/mi/modules/translations/locales/ht.js +36 -0
  1578. package/lib/translated/mi/modules/translations/locales/is.js +36 -0
  1579. package/lib/translated/mi/modules/translations/locales/it.js +36 -0
  1580. package/lib/translated/mi/modules/translations/locales/ja.js +36 -0
  1581. package/lib/translated/mi/modules/translations/locales/mi.js +36 -0
  1582. package/lib/translated/mi/modules/translations/locales/nb-x-k12.js +36 -0
  1583. package/lib/translated/mi/modules/translations/locales/nb.js +36 -0
  1584. package/lib/translated/mi/modules/translations/locales/nl.js +36 -0
  1585. package/lib/translated/mi/modules/translations/locales/pl.js +36 -0
  1586. package/lib/translated/mi/modules/translations/locales/pt.js +36 -0
  1587. package/lib/translated/mi/modules/translations/locales/pt_BR.js +36 -0
  1588. package/lib/translated/mi/modules/translations/locales/sl.js +36 -0
  1589. package/lib/translated/mi/modules/translations/locales/sv-x-k12.js +36 -0
  1590. package/lib/translated/mi/modules/translations/locales/zh-Hans.js +36 -0
  1591. package/lib/translated/mi/modules/translations/locales/zh-Hant.js +36 -0
  1592. package/lib/translated/mi/modules/translations/locales/zh.js +36 -0
  1593. package/lib/translated/mi/modules/translations/locales/zh_HK.js +36 -0
  1594. package/lib/translated/nb/modules/common/fileUrl.js +4 -3
  1595. package/lib/translated/nb/modules/enhance-user-content/__tests__/enhance_user_content.test.js +55 -1
  1596. package/lib/translated/nb/modules/enhance-user-content/doc_previews.js +3 -3
  1597. package/lib/translated/nb/modules/enhance-user-content/enhance_user_content.js +30 -13
  1598. package/lib/translated/nb/modules/enhance-user-content/instructure_helper.js +14 -5
  1599. package/lib/translated/nb/modules/enhance-user-content/media_comment_thumbnail.js +2 -2
  1600. package/lib/translated/nb/modules/rce/StatusBar.js +1 -1
  1601. package/lib/translated/nb/modules/rce/__tests__/contentInsertion.test.js +1 -1
  1602. package/lib/translated/nb/modules/rce/__tests__/contentRendering.test.js +10 -0
  1603. package/lib/translated/nb/modules/rce/contentRendering.js +2 -2
  1604. package/lib/translated/nb/modules/rce/plugins/instructure_icon_maker/components/CreateIconMakerForm/Header.js +1 -0
  1605. package/lib/translated/nb/modules/rce/plugins/instructure_wordcount/components/WordCountModal.js +2 -1
  1606. package/lib/translated/nb/modules/rce/plugins/instructure_wordcount/utils/__tests__/countContent.test.js +2 -2
  1607. package/lib/translated/nb/modules/rce/plugins/instructure_wordcount/utils/countContent.js +3 -3
  1608. package/lib/translated/nb/modules/rce/plugins/shared/CanvasContentTray.js +22 -23
  1609. package/lib/translated/nb/modules/rce/plugins/shared/RceFileBrowser.js +13 -5
  1610. package/lib/translated/nb/modules/rcs/api.js +3 -2
  1611. package/lib/translated/nb/modules/sidebar/store/initialState.js +4 -2
  1612. package/lib/translated/nb/modules/translations/locales/ar.js +36 -0
  1613. package/lib/translated/nb/modules/translations/locales/ca.js +36 -0
  1614. package/lib/translated/nb/modules/translations/locales/cy.js +36 -0
  1615. package/lib/translated/nb/modules/translations/locales/da-x-k12.js +36 -0
  1616. package/lib/translated/nb/modules/translations/locales/da.js +36 -0
  1617. package/lib/translated/nb/modules/translations/locales/de.js +36 -0
  1618. package/lib/translated/nb/modules/translations/locales/en-AU-x-unimelb.js +36 -0
  1619. package/lib/translated/nb/modules/translations/locales/en-GB-x-ukhe.js +36 -0
  1620. package/lib/translated/nb/modules/translations/locales/en_AU.js +36 -0
  1621. package/lib/translated/nb/modules/translations/locales/en_CA.js +36 -0
  1622. package/lib/translated/nb/modules/translations/locales/en_CY.js +36 -0
  1623. package/lib/translated/nb/modules/translations/locales/en_GB.js +36 -0
  1624. package/lib/translated/nb/modules/translations/locales/es.js +36 -0
  1625. package/lib/translated/nb/modules/translations/locales/es_ES.js +36 -0
  1626. package/lib/translated/nb/modules/translations/locales/fi.js +36 -0
  1627. package/lib/translated/nb/modules/translations/locales/fr.js +36 -0
  1628. package/lib/translated/nb/modules/translations/locales/fr_CA.js +36 -0
  1629. package/lib/translated/nb/modules/translations/locales/ht.js +36 -0
  1630. package/lib/translated/nb/modules/translations/locales/is.js +36 -0
  1631. package/lib/translated/nb/modules/translations/locales/it.js +36 -0
  1632. package/lib/translated/nb/modules/translations/locales/ja.js +36 -0
  1633. package/lib/translated/nb/modules/translations/locales/mi.js +36 -0
  1634. package/lib/translated/nb/modules/translations/locales/nb-x-k12.js +36 -0
  1635. package/lib/translated/nb/modules/translations/locales/nb.js +36 -0
  1636. package/lib/translated/nb/modules/translations/locales/nl.js +36 -0
  1637. package/lib/translated/nb/modules/translations/locales/pl.js +36 -0
  1638. package/lib/translated/nb/modules/translations/locales/pt.js +36 -0
  1639. package/lib/translated/nb/modules/translations/locales/pt_BR.js +36 -0
  1640. package/lib/translated/nb/modules/translations/locales/sl.js +36 -0
  1641. package/lib/translated/nb/modules/translations/locales/sv-x-k12.js +36 -0
  1642. package/lib/translated/nb/modules/translations/locales/zh-Hans.js +36 -0
  1643. package/lib/translated/nb/modules/translations/locales/zh-Hant.js +36 -0
  1644. package/lib/translated/nb/modules/translations/locales/zh.js +36 -0
  1645. package/lib/translated/nb/modules/translations/locales/zh_HK.js +36 -0
  1646. package/lib/translated/nb-x-k12/modules/common/fileUrl.js +4 -3
  1647. package/lib/translated/nb-x-k12/modules/enhance-user-content/__tests__/enhance_user_content.test.js +55 -1
  1648. package/lib/translated/nb-x-k12/modules/enhance-user-content/doc_previews.js +3 -3
  1649. package/lib/translated/nb-x-k12/modules/enhance-user-content/enhance_user_content.js +30 -13
  1650. package/lib/translated/nb-x-k12/modules/enhance-user-content/instructure_helper.js +14 -5
  1651. package/lib/translated/nb-x-k12/modules/enhance-user-content/media_comment_thumbnail.js +2 -2
  1652. package/lib/translated/nb-x-k12/modules/rce/StatusBar.js +1 -1
  1653. package/lib/translated/nb-x-k12/modules/rce/__tests__/contentInsertion.test.js +1 -1
  1654. package/lib/translated/nb-x-k12/modules/rce/__tests__/contentRendering.test.js +10 -0
  1655. package/lib/translated/nb-x-k12/modules/rce/contentRendering.js +2 -2
  1656. package/lib/translated/nb-x-k12/modules/rce/plugins/instructure_icon_maker/components/CreateIconMakerForm/Header.js +1 -0
  1657. package/lib/translated/nb-x-k12/modules/rce/plugins/instructure_wordcount/components/WordCountModal.js +2 -1
  1658. package/lib/translated/nb-x-k12/modules/rce/plugins/instructure_wordcount/utils/__tests__/countContent.test.js +2 -2
  1659. package/lib/translated/nb-x-k12/modules/rce/plugins/instructure_wordcount/utils/countContent.js +3 -3
  1660. package/lib/translated/nb-x-k12/modules/rce/plugins/shared/CanvasContentTray.js +22 -23
  1661. package/lib/translated/nb-x-k12/modules/rce/plugins/shared/RceFileBrowser.js +13 -5
  1662. package/lib/translated/nb-x-k12/modules/rcs/api.js +3 -2
  1663. package/lib/translated/nb-x-k12/modules/sidebar/store/initialState.js +4 -2
  1664. package/lib/translated/nb-x-k12/modules/translations/locales/ar.js +36 -0
  1665. package/lib/translated/nb-x-k12/modules/translations/locales/ca.js +36 -0
  1666. package/lib/translated/nb-x-k12/modules/translations/locales/cy.js +36 -0
  1667. package/lib/translated/nb-x-k12/modules/translations/locales/da-x-k12.js +36 -0
  1668. package/lib/translated/nb-x-k12/modules/translations/locales/da.js +36 -0
  1669. package/lib/translated/nb-x-k12/modules/translations/locales/de.js +36 -0
  1670. package/lib/translated/nb-x-k12/modules/translations/locales/en-AU-x-unimelb.js +36 -0
  1671. package/lib/translated/nb-x-k12/modules/translations/locales/en-GB-x-ukhe.js +36 -0
  1672. package/lib/translated/nb-x-k12/modules/translations/locales/en_AU.js +36 -0
  1673. package/lib/translated/nb-x-k12/modules/translations/locales/en_CA.js +36 -0
  1674. package/lib/translated/nb-x-k12/modules/translations/locales/en_CY.js +36 -0
  1675. package/lib/translated/nb-x-k12/modules/translations/locales/en_GB.js +36 -0
  1676. package/lib/translated/nb-x-k12/modules/translations/locales/es.js +36 -0
  1677. package/lib/translated/nb-x-k12/modules/translations/locales/es_ES.js +36 -0
  1678. package/lib/translated/nb-x-k12/modules/translations/locales/fi.js +36 -0
  1679. package/lib/translated/nb-x-k12/modules/translations/locales/fr.js +36 -0
  1680. package/lib/translated/nb-x-k12/modules/translations/locales/fr_CA.js +36 -0
  1681. package/lib/translated/nb-x-k12/modules/translations/locales/ht.js +36 -0
  1682. package/lib/translated/nb-x-k12/modules/translations/locales/is.js +36 -0
  1683. package/lib/translated/nb-x-k12/modules/translations/locales/it.js +36 -0
  1684. package/lib/translated/nb-x-k12/modules/translations/locales/ja.js +36 -0
  1685. package/lib/translated/nb-x-k12/modules/translations/locales/mi.js +36 -0
  1686. package/lib/translated/nb-x-k12/modules/translations/locales/nb-x-k12.js +36 -0
  1687. package/lib/translated/nb-x-k12/modules/translations/locales/nb.js +36 -0
  1688. package/lib/translated/nb-x-k12/modules/translations/locales/nl.js +36 -0
  1689. package/lib/translated/nb-x-k12/modules/translations/locales/pl.js +36 -0
  1690. package/lib/translated/nb-x-k12/modules/translations/locales/pt.js +36 -0
  1691. package/lib/translated/nb-x-k12/modules/translations/locales/pt_BR.js +36 -0
  1692. package/lib/translated/nb-x-k12/modules/translations/locales/sl.js +36 -0
  1693. package/lib/translated/nb-x-k12/modules/translations/locales/sv-x-k12.js +36 -0
  1694. package/lib/translated/nb-x-k12/modules/translations/locales/zh-Hans.js +36 -0
  1695. package/lib/translated/nb-x-k12/modules/translations/locales/zh-Hant.js +36 -0
  1696. package/lib/translated/nb-x-k12/modules/translations/locales/zh.js +36 -0
  1697. package/lib/translated/nb-x-k12/modules/translations/locales/zh_HK.js +36 -0
  1698. package/lib/translated/nl/modules/common/fileUrl.js +4 -3
  1699. package/lib/translated/nl/modules/enhance-user-content/__tests__/enhance_user_content.test.js +55 -1
  1700. package/lib/translated/nl/modules/enhance-user-content/doc_previews.js +3 -3
  1701. package/lib/translated/nl/modules/enhance-user-content/enhance_user_content.js +30 -13
  1702. package/lib/translated/nl/modules/enhance-user-content/instructure_helper.js +14 -5
  1703. package/lib/translated/nl/modules/enhance-user-content/media_comment_thumbnail.js +2 -2
  1704. package/lib/translated/nl/modules/rce/StatusBar.js +1 -1
  1705. package/lib/translated/nl/modules/rce/__tests__/contentInsertion.test.js +1 -1
  1706. package/lib/translated/nl/modules/rce/__tests__/contentRendering.test.js +10 -0
  1707. package/lib/translated/nl/modules/rce/contentRendering.js +2 -2
  1708. package/lib/translated/nl/modules/rce/plugins/instructure_icon_maker/components/CreateIconMakerForm/Header.js +1 -0
  1709. package/lib/translated/nl/modules/rce/plugins/instructure_wordcount/components/WordCountModal.js +2 -1
  1710. package/lib/translated/nl/modules/rce/plugins/instructure_wordcount/utils/__tests__/countContent.test.js +2 -2
  1711. package/lib/translated/nl/modules/rce/plugins/instructure_wordcount/utils/countContent.js +3 -3
  1712. package/lib/translated/nl/modules/rce/plugins/shared/CanvasContentTray.js +22 -23
  1713. package/lib/translated/nl/modules/rce/plugins/shared/RceFileBrowser.js +13 -5
  1714. package/lib/translated/nl/modules/rcs/api.js +3 -2
  1715. package/lib/translated/nl/modules/sidebar/store/initialState.js +4 -2
  1716. package/lib/translated/nl/modules/translations/locales/ar.js +36 -0
  1717. package/lib/translated/nl/modules/translations/locales/ca.js +36 -0
  1718. package/lib/translated/nl/modules/translations/locales/cy.js +36 -0
  1719. package/lib/translated/nl/modules/translations/locales/da-x-k12.js +36 -0
  1720. package/lib/translated/nl/modules/translations/locales/da.js +36 -0
  1721. package/lib/translated/nl/modules/translations/locales/de.js +36 -0
  1722. package/lib/translated/nl/modules/translations/locales/en-AU-x-unimelb.js +36 -0
  1723. package/lib/translated/nl/modules/translations/locales/en-GB-x-ukhe.js +36 -0
  1724. package/lib/translated/nl/modules/translations/locales/en_AU.js +36 -0
  1725. package/lib/translated/nl/modules/translations/locales/en_CA.js +36 -0
  1726. package/lib/translated/nl/modules/translations/locales/en_CY.js +36 -0
  1727. package/lib/translated/nl/modules/translations/locales/en_GB.js +36 -0
  1728. package/lib/translated/nl/modules/translations/locales/es.js +36 -0
  1729. package/lib/translated/nl/modules/translations/locales/es_ES.js +36 -0
  1730. package/lib/translated/nl/modules/translations/locales/fi.js +36 -0
  1731. package/lib/translated/nl/modules/translations/locales/fr.js +36 -0
  1732. package/lib/translated/nl/modules/translations/locales/fr_CA.js +36 -0
  1733. package/lib/translated/nl/modules/translations/locales/ht.js +36 -0
  1734. package/lib/translated/nl/modules/translations/locales/is.js +36 -0
  1735. package/lib/translated/nl/modules/translations/locales/it.js +36 -0
  1736. package/lib/translated/nl/modules/translations/locales/ja.js +36 -0
  1737. package/lib/translated/nl/modules/translations/locales/mi.js +36 -0
  1738. package/lib/translated/nl/modules/translations/locales/nb-x-k12.js +36 -0
  1739. package/lib/translated/nl/modules/translations/locales/nb.js +36 -0
  1740. package/lib/translated/nl/modules/translations/locales/nl.js +36 -0
  1741. package/lib/translated/nl/modules/translations/locales/pl.js +36 -0
  1742. package/lib/translated/nl/modules/translations/locales/pt.js +36 -0
  1743. package/lib/translated/nl/modules/translations/locales/pt_BR.js +36 -0
  1744. package/lib/translated/nl/modules/translations/locales/sl.js +36 -0
  1745. package/lib/translated/nl/modules/translations/locales/sv-x-k12.js +36 -0
  1746. package/lib/translated/nl/modules/translations/locales/zh-Hans.js +36 -0
  1747. package/lib/translated/nl/modules/translations/locales/zh-Hant.js +36 -0
  1748. package/lib/translated/nl/modules/translations/locales/zh.js +36 -0
  1749. package/lib/translated/nl/modules/translations/locales/zh_HK.js +36 -0
  1750. package/lib/translated/nn/modules/common/fileUrl.js +4 -3
  1751. package/lib/translated/nn/modules/enhance-user-content/__tests__/enhance_user_content.test.js +55 -1
  1752. package/lib/translated/nn/modules/enhance-user-content/doc_previews.js +1 -1
  1753. package/lib/translated/nn/modules/enhance-user-content/enhance_user_content.js +26 -9
  1754. package/lib/translated/nn/modules/enhance-user-content/instructure_helper.js +12 -3
  1755. package/lib/translated/nn/modules/rce/__tests__/contentInsertion.test.js +1 -1
  1756. package/lib/translated/nn/modules/rce/__tests__/contentRendering.test.js +10 -0
  1757. package/lib/translated/nn/modules/rce/contentRendering.js +2 -2
  1758. package/lib/translated/nn/modules/rce/plugins/instructure_icon_maker/components/CreateIconMakerForm/Header.js +1 -0
  1759. package/lib/translated/nn/modules/rce/plugins/instructure_wordcount/components/WordCountModal.js +2 -1
  1760. package/lib/translated/nn/modules/rce/plugins/instructure_wordcount/utils/__tests__/countContent.test.js +2 -2
  1761. package/lib/translated/nn/modules/rce/plugins/instructure_wordcount/utils/countContent.js +3 -3
  1762. package/lib/translated/nn/modules/rce/plugins/shared/CanvasContentTray.js +22 -23
  1763. package/lib/translated/nn/modules/rce/plugins/shared/RceFileBrowser.js +13 -5
  1764. package/lib/translated/nn/modules/rcs/api.js +3 -2
  1765. package/lib/translated/nn/modules/sidebar/store/initialState.js +4 -2
  1766. package/lib/translated/nn/modules/translations/locales/ar.js +36 -0
  1767. package/lib/translated/nn/modules/translations/locales/ca.js +36 -0
  1768. package/lib/translated/nn/modules/translations/locales/cy.js +36 -0
  1769. package/lib/translated/nn/modules/translations/locales/da-x-k12.js +36 -0
  1770. package/lib/translated/nn/modules/translations/locales/da.js +36 -0
  1771. package/lib/translated/nn/modules/translations/locales/de.js +36 -0
  1772. package/lib/translated/nn/modules/translations/locales/en-AU-x-unimelb.js +36 -0
  1773. package/lib/translated/nn/modules/translations/locales/en-GB-x-ukhe.js +36 -0
  1774. package/lib/translated/nn/modules/translations/locales/en_AU.js +36 -0
  1775. package/lib/translated/nn/modules/translations/locales/en_CA.js +36 -0
  1776. package/lib/translated/nn/modules/translations/locales/en_CY.js +36 -0
  1777. package/lib/translated/nn/modules/translations/locales/en_GB.js +36 -0
  1778. package/lib/translated/nn/modules/translations/locales/es.js +36 -0
  1779. package/lib/translated/nn/modules/translations/locales/es_ES.js +36 -0
  1780. package/lib/translated/nn/modules/translations/locales/fi.js +36 -0
  1781. package/lib/translated/nn/modules/translations/locales/fr.js +36 -0
  1782. package/lib/translated/nn/modules/translations/locales/fr_CA.js +36 -0
  1783. package/lib/translated/nn/modules/translations/locales/ht.js +36 -0
  1784. package/lib/translated/nn/modules/translations/locales/is.js +36 -0
  1785. package/lib/translated/nn/modules/translations/locales/it.js +36 -0
  1786. package/lib/translated/nn/modules/translations/locales/ja.js +36 -0
  1787. package/lib/translated/nn/modules/translations/locales/mi.js +36 -0
  1788. package/lib/translated/nn/modules/translations/locales/nb-x-k12.js +36 -0
  1789. package/lib/translated/nn/modules/translations/locales/nb.js +36 -0
  1790. package/lib/translated/nn/modules/translations/locales/nl.js +36 -0
  1791. package/lib/translated/nn/modules/translations/locales/pl.js +36 -0
  1792. package/lib/translated/nn/modules/translations/locales/pt.js +36 -0
  1793. package/lib/translated/nn/modules/translations/locales/pt_BR.js +36 -0
  1794. package/lib/translated/nn/modules/translations/locales/sl.js +36 -0
  1795. package/lib/translated/nn/modules/translations/locales/sv-x-k12.js +36 -0
  1796. package/lib/translated/nn/modules/translations/locales/zh-Hans.js +36 -0
  1797. package/lib/translated/nn/modules/translations/locales/zh-Hant.js +36 -0
  1798. package/lib/translated/nn/modules/translations/locales/zh.js +36 -0
  1799. package/lib/translated/nn/modules/translations/locales/zh_HK.js +36 -0
  1800. package/lib/translated/pl/modules/common/fileUrl.js +4 -3
  1801. package/lib/translated/pl/modules/enhance-user-content/__tests__/enhance_user_content.test.js +55 -1
  1802. package/lib/translated/pl/modules/enhance-user-content/doc_previews.js +3 -3
  1803. package/lib/translated/pl/modules/enhance-user-content/enhance_user_content.js +30 -13
  1804. package/lib/translated/pl/modules/enhance-user-content/instructure_helper.js +14 -5
  1805. package/lib/translated/pl/modules/enhance-user-content/media_comment_thumbnail.js +2 -2
  1806. package/lib/translated/pl/modules/rce/StatusBar.js +1 -1
  1807. package/lib/translated/pl/modules/rce/__tests__/contentInsertion.test.js +1 -1
  1808. package/lib/translated/pl/modules/rce/__tests__/contentRendering.test.js +10 -0
  1809. package/lib/translated/pl/modules/rce/contentRendering.js +2 -2
  1810. package/lib/translated/pl/modules/rce/plugins/instructure_icon_maker/components/CreateIconMakerForm/Header.js +1 -0
  1811. package/lib/translated/pl/modules/rce/plugins/instructure_wordcount/components/WordCountModal.js +2 -1
  1812. package/lib/translated/pl/modules/rce/plugins/instructure_wordcount/utils/__tests__/countContent.test.js +2 -2
  1813. package/lib/translated/pl/modules/rce/plugins/instructure_wordcount/utils/countContent.js +3 -3
  1814. package/lib/translated/pl/modules/rce/plugins/shared/CanvasContentTray.js +22 -23
  1815. package/lib/translated/pl/modules/rce/plugins/shared/RceFileBrowser.js +13 -5
  1816. package/lib/translated/pl/modules/rcs/api.js +3 -2
  1817. package/lib/translated/pl/modules/sidebar/store/initialState.js +4 -2
  1818. package/lib/translated/pl/modules/translations/locales/ar.js +36 -0
  1819. package/lib/translated/pl/modules/translations/locales/ca.js +36 -0
  1820. package/lib/translated/pl/modules/translations/locales/cy.js +36 -0
  1821. package/lib/translated/pl/modules/translations/locales/da-x-k12.js +36 -0
  1822. package/lib/translated/pl/modules/translations/locales/da.js +36 -0
  1823. package/lib/translated/pl/modules/translations/locales/de.js +36 -0
  1824. package/lib/translated/pl/modules/translations/locales/en-AU-x-unimelb.js +36 -0
  1825. package/lib/translated/pl/modules/translations/locales/en-GB-x-ukhe.js +36 -0
  1826. package/lib/translated/pl/modules/translations/locales/en_AU.js +36 -0
  1827. package/lib/translated/pl/modules/translations/locales/en_CA.js +36 -0
  1828. package/lib/translated/pl/modules/translations/locales/en_CY.js +36 -0
  1829. package/lib/translated/pl/modules/translations/locales/en_GB.js +36 -0
  1830. package/lib/translated/pl/modules/translations/locales/es.js +36 -0
  1831. package/lib/translated/pl/modules/translations/locales/es_ES.js +36 -0
  1832. package/lib/translated/pl/modules/translations/locales/fi.js +36 -0
  1833. package/lib/translated/pl/modules/translations/locales/fr.js +36 -0
  1834. package/lib/translated/pl/modules/translations/locales/fr_CA.js +36 -0
  1835. package/lib/translated/pl/modules/translations/locales/ht.js +36 -0
  1836. package/lib/translated/pl/modules/translations/locales/is.js +36 -0
  1837. package/lib/translated/pl/modules/translations/locales/it.js +36 -0
  1838. package/lib/translated/pl/modules/translations/locales/ja.js +36 -0
  1839. package/lib/translated/pl/modules/translations/locales/mi.js +36 -0
  1840. package/lib/translated/pl/modules/translations/locales/nb-x-k12.js +36 -0
  1841. package/lib/translated/pl/modules/translations/locales/nb.js +36 -0
  1842. package/lib/translated/pl/modules/translations/locales/nl.js +36 -0
  1843. package/lib/translated/pl/modules/translations/locales/pl.js +36 -0
  1844. package/lib/translated/pl/modules/translations/locales/pt.js +36 -0
  1845. package/lib/translated/pl/modules/translations/locales/pt_BR.js +36 -0
  1846. package/lib/translated/pl/modules/translations/locales/sl.js +36 -0
  1847. package/lib/translated/pl/modules/translations/locales/sv-x-k12.js +36 -0
  1848. package/lib/translated/pl/modules/translations/locales/zh-Hans.js +36 -0
  1849. package/lib/translated/pl/modules/translations/locales/zh-Hant.js +36 -0
  1850. package/lib/translated/pl/modules/translations/locales/zh.js +36 -0
  1851. package/lib/translated/pl/modules/translations/locales/zh_HK.js +36 -0
  1852. package/lib/translated/pt/modules/common/fileUrl.js +4 -3
  1853. package/lib/translated/pt/modules/enhance-user-content/__tests__/enhance_user_content.test.js +55 -1
  1854. package/lib/translated/pt/modules/enhance-user-content/doc_previews.js +3 -3
  1855. package/lib/translated/pt/modules/enhance-user-content/enhance_user_content.js +30 -13
  1856. package/lib/translated/pt/modules/enhance-user-content/instructure_helper.js +14 -5
  1857. package/lib/translated/pt/modules/enhance-user-content/media_comment_thumbnail.js +2 -2
  1858. package/lib/translated/pt/modules/rce/StatusBar.js +1 -1
  1859. package/lib/translated/pt/modules/rce/__tests__/contentInsertion.test.js +1 -1
  1860. package/lib/translated/pt/modules/rce/__tests__/contentRendering.test.js +10 -0
  1861. package/lib/translated/pt/modules/rce/contentRendering.js +2 -2
  1862. package/lib/translated/pt/modules/rce/plugins/instructure_icon_maker/components/CreateIconMakerForm/Header.js +1 -0
  1863. package/lib/translated/pt/modules/rce/plugins/instructure_wordcount/components/WordCountModal.js +2 -1
  1864. package/lib/translated/pt/modules/rce/plugins/instructure_wordcount/utils/__tests__/countContent.test.js +2 -2
  1865. package/lib/translated/pt/modules/rce/plugins/instructure_wordcount/utils/countContent.js +3 -3
  1866. package/lib/translated/pt/modules/rce/plugins/shared/CanvasContentTray.js +22 -23
  1867. package/lib/translated/pt/modules/rce/plugins/shared/RceFileBrowser.js +13 -5
  1868. package/lib/translated/pt/modules/rcs/api.js +3 -2
  1869. package/lib/translated/pt/modules/sidebar/store/initialState.js +4 -2
  1870. package/lib/translated/pt/modules/translations/locales/ar.js +36 -0
  1871. package/lib/translated/pt/modules/translations/locales/ca.js +36 -0
  1872. package/lib/translated/pt/modules/translations/locales/cy.js +36 -0
  1873. package/lib/translated/pt/modules/translations/locales/da-x-k12.js +36 -0
  1874. package/lib/translated/pt/modules/translations/locales/da.js +36 -0
  1875. package/lib/translated/pt/modules/translations/locales/de.js +36 -0
  1876. package/lib/translated/pt/modules/translations/locales/en-AU-x-unimelb.js +36 -0
  1877. package/lib/translated/pt/modules/translations/locales/en-GB-x-ukhe.js +36 -0
  1878. package/lib/translated/pt/modules/translations/locales/en_AU.js +36 -0
  1879. package/lib/translated/pt/modules/translations/locales/en_CA.js +36 -0
  1880. package/lib/translated/pt/modules/translations/locales/en_CY.js +36 -0
  1881. package/lib/translated/pt/modules/translations/locales/en_GB.js +36 -0
  1882. package/lib/translated/pt/modules/translations/locales/es.js +36 -0
  1883. package/lib/translated/pt/modules/translations/locales/es_ES.js +36 -0
  1884. package/lib/translated/pt/modules/translations/locales/fi.js +36 -0
  1885. package/lib/translated/pt/modules/translations/locales/fr.js +36 -0
  1886. package/lib/translated/pt/modules/translations/locales/fr_CA.js +36 -0
  1887. package/lib/translated/pt/modules/translations/locales/ht.js +36 -0
  1888. package/lib/translated/pt/modules/translations/locales/is.js +36 -0
  1889. package/lib/translated/pt/modules/translations/locales/it.js +36 -0
  1890. package/lib/translated/pt/modules/translations/locales/ja.js +36 -0
  1891. package/lib/translated/pt/modules/translations/locales/mi.js +36 -0
  1892. package/lib/translated/pt/modules/translations/locales/nb-x-k12.js +36 -0
  1893. package/lib/translated/pt/modules/translations/locales/nb.js +36 -0
  1894. package/lib/translated/pt/modules/translations/locales/nl.js +36 -0
  1895. package/lib/translated/pt/modules/translations/locales/pl.js +36 -0
  1896. package/lib/translated/pt/modules/translations/locales/pt.js +36 -0
  1897. package/lib/translated/pt/modules/translations/locales/pt_BR.js +36 -0
  1898. package/lib/translated/pt/modules/translations/locales/sl.js +36 -0
  1899. package/lib/translated/pt/modules/translations/locales/sv-x-k12.js +36 -0
  1900. package/lib/translated/pt/modules/translations/locales/zh-Hans.js +36 -0
  1901. package/lib/translated/pt/modules/translations/locales/zh-Hant.js +36 -0
  1902. package/lib/translated/pt/modules/translations/locales/zh.js +36 -0
  1903. package/lib/translated/pt/modules/translations/locales/zh_HK.js +36 -0
  1904. package/lib/translated/pt_BR/modules/common/fileUrl.js +4 -3
  1905. package/lib/translated/pt_BR/modules/enhance-user-content/__tests__/enhance_user_content.test.js +55 -1
  1906. package/lib/translated/pt_BR/modules/enhance-user-content/doc_previews.js +3 -3
  1907. package/lib/translated/pt_BR/modules/enhance-user-content/enhance_user_content.js +30 -13
  1908. package/lib/translated/pt_BR/modules/enhance-user-content/instructure_helper.js +14 -5
  1909. package/lib/translated/pt_BR/modules/enhance-user-content/media_comment_thumbnail.js +2 -2
  1910. package/lib/translated/pt_BR/modules/rce/StatusBar.js +1 -1
  1911. package/lib/translated/pt_BR/modules/rce/__tests__/contentInsertion.test.js +1 -1
  1912. package/lib/translated/pt_BR/modules/rce/__tests__/contentRendering.test.js +10 -0
  1913. package/lib/translated/pt_BR/modules/rce/contentRendering.js +2 -2
  1914. package/lib/translated/pt_BR/modules/rce/plugins/instructure_icon_maker/components/CreateIconMakerForm/Header.js +1 -0
  1915. package/lib/translated/pt_BR/modules/rce/plugins/instructure_wordcount/components/WordCountModal.js +2 -1
  1916. package/lib/translated/pt_BR/modules/rce/plugins/instructure_wordcount/utils/__tests__/countContent.test.js +2 -2
  1917. package/lib/translated/pt_BR/modules/rce/plugins/instructure_wordcount/utils/countContent.js +3 -3
  1918. package/lib/translated/pt_BR/modules/rce/plugins/shared/CanvasContentTray.js +22 -23
  1919. package/lib/translated/pt_BR/modules/rce/plugins/shared/RceFileBrowser.js +13 -5
  1920. package/lib/translated/pt_BR/modules/rcs/api.js +3 -2
  1921. package/lib/translated/pt_BR/modules/sidebar/store/initialState.js +4 -2
  1922. package/lib/translated/pt_BR/modules/translations/locales/ar.js +36 -0
  1923. package/lib/translated/pt_BR/modules/translations/locales/ca.js +36 -0
  1924. package/lib/translated/pt_BR/modules/translations/locales/cy.js +36 -0
  1925. package/lib/translated/pt_BR/modules/translations/locales/da-x-k12.js +36 -0
  1926. package/lib/translated/pt_BR/modules/translations/locales/da.js +36 -0
  1927. package/lib/translated/pt_BR/modules/translations/locales/de.js +36 -0
  1928. package/lib/translated/pt_BR/modules/translations/locales/en-AU-x-unimelb.js +36 -0
  1929. package/lib/translated/pt_BR/modules/translations/locales/en-GB-x-ukhe.js +36 -0
  1930. package/lib/translated/pt_BR/modules/translations/locales/en_AU.js +36 -0
  1931. package/lib/translated/pt_BR/modules/translations/locales/en_CA.js +36 -0
  1932. package/lib/translated/pt_BR/modules/translations/locales/en_CY.js +36 -0
  1933. package/lib/translated/pt_BR/modules/translations/locales/en_GB.js +36 -0
  1934. package/lib/translated/pt_BR/modules/translations/locales/es.js +36 -0
  1935. package/lib/translated/pt_BR/modules/translations/locales/es_ES.js +36 -0
  1936. package/lib/translated/pt_BR/modules/translations/locales/fi.js +36 -0
  1937. package/lib/translated/pt_BR/modules/translations/locales/fr.js +36 -0
  1938. package/lib/translated/pt_BR/modules/translations/locales/fr_CA.js +36 -0
  1939. package/lib/translated/pt_BR/modules/translations/locales/ht.js +36 -0
  1940. package/lib/translated/pt_BR/modules/translations/locales/is.js +36 -0
  1941. package/lib/translated/pt_BR/modules/translations/locales/it.js +36 -0
  1942. package/lib/translated/pt_BR/modules/translations/locales/ja.js +36 -0
  1943. package/lib/translated/pt_BR/modules/translations/locales/mi.js +36 -0
  1944. package/lib/translated/pt_BR/modules/translations/locales/nb-x-k12.js +36 -0
  1945. package/lib/translated/pt_BR/modules/translations/locales/nb.js +36 -0
  1946. package/lib/translated/pt_BR/modules/translations/locales/nl.js +36 -0
  1947. package/lib/translated/pt_BR/modules/translations/locales/pl.js +36 -0
  1948. package/lib/translated/pt_BR/modules/translations/locales/pt.js +36 -0
  1949. package/lib/translated/pt_BR/modules/translations/locales/pt_BR.js +36 -0
  1950. package/lib/translated/pt_BR/modules/translations/locales/sl.js +36 -0
  1951. package/lib/translated/pt_BR/modules/translations/locales/sv-x-k12.js +36 -0
  1952. package/lib/translated/pt_BR/modules/translations/locales/zh-Hans.js +36 -0
  1953. package/lib/translated/pt_BR/modules/translations/locales/zh-Hant.js +36 -0
  1954. package/lib/translated/pt_BR/modules/translations/locales/zh.js +36 -0
  1955. package/lib/translated/pt_BR/modules/translations/locales/zh_HK.js +36 -0
  1956. package/lib/translated/ru/modules/common/fileUrl.js +4 -3
  1957. package/lib/translated/ru/modules/enhance-user-content/__tests__/enhance_user_content.test.js +55 -1
  1958. package/lib/translated/ru/modules/enhance-user-content/doc_previews.js +1 -1
  1959. package/lib/translated/ru/modules/enhance-user-content/enhance_user_content.js +26 -9
  1960. package/lib/translated/ru/modules/enhance-user-content/instructure_helper.js +12 -3
  1961. package/lib/translated/ru/modules/rce/__tests__/contentInsertion.test.js +1 -1
  1962. package/lib/translated/ru/modules/rce/__tests__/contentRendering.test.js +10 -0
  1963. package/lib/translated/ru/modules/rce/contentRendering.js +2 -2
  1964. package/lib/translated/ru/modules/rce/plugins/instructure_icon_maker/components/CreateIconMakerForm/Header.js +1 -0
  1965. package/lib/translated/ru/modules/rce/plugins/instructure_wordcount/components/WordCountModal.js +2 -1
  1966. package/lib/translated/ru/modules/rce/plugins/instructure_wordcount/utils/__tests__/countContent.test.js +2 -2
  1967. package/lib/translated/ru/modules/rce/plugins/instructure_wordcount/utils/countContent.js +3 -3
  1968. package/lib/translated/ru/modules/rce/plugins/shared/CanvasContentTray.js +22 -23
  1969. package/lib/translated/ru/modules/rce/plugins/shared/RceFileBrowser.js +13 -5
  1970. package/lib/translated/ru/modules/rcs/api.js +3 -2
  1971. package/lib/translated/ru/modules/sidebar/store/initialState.js +4 -2
  1972. package/lib/translated/ru/modules/translations/locales/ar.js +36 -0
  1973. package/lib/translated/ru/modules/translations/locales/ca.js +36 -0
  1974. package/lib/translated/ru/modules/translations/locales/cy.js +36 -0
  1975. package/lib/translated/ru/modules/translations/locales/da-x-k12.js +36 -0
  1976. package/lib/translated/ru/modules/translations/locales/da.js +36 -0
  1977. package/lib/translated/ru/modules/translations/locales/de.js +36 -0
  1978. package/lib/translated/ru/modules/translations/locales/en-AU-x-unimelb.js +36 -0
  1979. package/lib/translated/ru/modules/translations/locales/en-GB-x-ukhe.js +36 -0
  1980. package/lib/translated/ru/modules/translations/locales/en_AU.js +36 -0
  1981. package/lib/translated/ru/modules/translations/locales/en_CA.js +36 -0
  1982. package/lib/translated/ru/modules/translations/locales/en_CY.js +36 -0
  1983. package/lib/translated/ru/modules/translations/locales/en_GB.js +36 -0
  1984. package/lib/translated/ru/modules/translations/locales/es.js +36 -0
  1985. package/lib/translated/ru/modules/translations/locales/es_ES.js +36 -0
  1986. package/lib/translated/ru/modules/translations/locales/fi.js +36 -0
  1987. package/lib/translated/ru/modules/translations/locales/fr.js +36 -0
  1988. package/lib/translated/ru/modules/translations/locales/fr_CA.js +36 -0
  1989. package/lib/translated/ru/modules/translations/locales/ht.js +36 -0
  1990. package/lib/translated/ru/modules/translations/locales/is.js +36 -0
  1991. package/lib/translated/ru/modules/translations/locales/it.js +36 -0
  1992. package/lib/translated/ru/modules/translations/locales/ja.js +36 -0
  1993. package/lib/translated/ru/modules/translations/locales/mi.js +36 -0
  1994. package/lib/translated/ru/modules/translations/locales/nb-x-k12.js +36 -0
  1995. package/lib/translated/ru/modules/translations/locales/nb.js +36 -0
  1996. package/lib/translated/ru/modules/translations/locales/nl.js +36 -0
  1997. package/lib/translated/ru/modules/translations/locales/pl.js +36 -0
  1998. package/lib/translated/ru/modules/translations/locales/pt.js +36 -0
  1999. package/lib/translated/ru/modules/translations/locales/pt_BR.js +36 -0
  2000. package/lib/translated/ru/modules/translations/locales/sl.js +36 -0
  2001. package/lib/translated/ru/modules/translations/locales/sv-x-k12.js +36 -0
  2002. package/lib/translated/ru/modules/translations/locales/zh-Hans.js +36 -0
  2003. package/lib/translated/ru/modules/translations/locales/zh-Hant.js +36 -0
  2004. package/lib/translated/ru/modules/translations/locales/zh.js +36 -0
  2005. package/lib/translated/ru/modules/translations/locales/zh_HK.js +36 -0
  2006. package/lib/translated/se/modules/common/fileUrl.js +4 -3
  2007. package/lib/translated/se/modules/enhance-user-content/__tests__/enhance_user_content.test.js +55 -1
  2008. package/lib/translated/se/modules/enhance-user-content/doc_previews.js +1 -1
  2009. package/lib/translated/se/modules/enhance-user-content/enhance_user_content.js +26 -9
  2010. package/lib/translated/se/modules/enhance-user-content/instructure_helper.js +12 -3
  2011. package/lib/translated/se/modules/rce/__tests__/contentInsertion.test.js +1 -1
  2012. package/lib/translated/se/modules/rce/__tests__/contentRendering.test.js +10 -0
  2013. package/lib/translated/se/modules/rce/contentRendering.js +2 -2
  2014. package/lib/translated/se/modules/rce/plugins/instructure_icon_maker/components/CreateIconMakerForm/Header.js +1 -0
  2015. package/lib/translated/se/modules/rce/plugins/instructure_wordcount/components/WordCountModal.js +2 -1
  2016. package/lib/translated/se/modules/rce/plugins/instructure_wordcount/utils/__tests__/countContent.test.js +2 -2
  2017. package/lib/translated/se/modules/rce/plugins/instructure_wordcount/utils/countContent.js +3 -3
  2018. package/lib/translated/se/modules/rce/plugins/shared/CanvasContentTray.js +22 -23
  2019. package/lib/translated/se/modules/rce/plugins/shared/RceFileBrowser.js +13 -5
  2020. package/lib/translated/se/modules/rcs/api.js +3 -2
  2021. package/lib/translated/se/modules/sidebar/store/initialState.js +4 -2
  2022. package/lib/translated/se/modules/translations/locales/ar.js +36 -0
  2023. package/lib/translated/se/modules/translations/locales/ca.js +36 -0
  2024. package/lib/translated/se/modules/translations/locales/cy.js +36 -0
  2025. package/lib/translated/se/modules/translations/locales/da-x-k12.js +36 -0
  2026. package/lib/translated/se/modules/translations/locales/da.js +36 -0
  2027. package/lib/translated/se/modules/translations/locales/de.js +36 -0
  2028. package/lib/translated/se/modules/translations/locales/en-AU-x-unimelb.js +36 -0
  2029. package/lib/translated/se/modules/translations/locales/en-GB-x-ukhe.js +36 -0
  2030. package/lib/translated/se/modules/translations/locales/en_AU.js +36 -0
  2031. package/lib/translated/se/modules/translations/locales/en_CA.js +36 -0
  2032. package/lib/translated/se/modules/translations/locales/en_CY.js +36 -0
  2033. package/lib/translated/se/modules/translations/locales/en_GB.js +36 -0
  2034. package/lib/translated/se/modules/translations/locales/es.js +36 -0
  2035. package/lib/translated/se/modules/translations/locales/es_ES.js +36 -0
  2036. package/lib/translated/se/modules/translations/locales/fi.js +36 -0
  2037. package/lib/translated/se/modules/translations/locales/fr.js +36 -0
  2038. package/lib/translated/se/modules/translations/locales/fr_CA.js +36 -0
  2039. package/lib/translated/se/modules/translations/locales/ht.js +36 -0
  2040. package/lib/translated/se/modules/translations/locales/is.js +36 -0
  2041. package/lib/translated/se/modules/translations/locales/it.js +36 -0
  2042. package/lib/translated/se/modules/translations/locales/ja.js +36 -0
  2043. package/lib/translated/se/modules/translations/locales/mi.js +36 -0
  2044. package/lib/translated/se/modules/translations/locales/nb-x-k12.js +36 -0
  2045. package/lib/translated/se/modules/translations/locales/nb.js +36 -0
  2046. package/lib/translated/se/modules/translations/locales/nl.js +36 -0
  2047. package/lib/translated/se/modules/translations/locales/pl.js +36 -0
  2048. package/lib/translated/se/modules/translations/locales/pt.js +36 -0
  2049. package/lib/translated/se/modules/translations/locales/pt_BR.js +36 -0
  2050. package/lib/translated/se/modules/translations/locales/sl.js +36 -0
  2051. package/lib/translated/se/modules/translations/locales/sv-x-k12.js +36 -0
  2052. package/lib/translated/se/modules/translations/locales/zh-Hans.js +36 -0
  2053. package/lib/translated/se/modules/translations/locales/zh-Hant.js +36 -0
  2054. package/lib/translated/se/modules/translations/locales/zh.js +36 -0
  2055. package/lib/translated/se/modules/translations/locales/zh_HK.js +36 -0
  2056. package/lib/translated/sl/modules/common/fileUrl.js +4 -3
  2057. package/lib/translated/sl/modules/enhance-user-content/__tests__/enhance_user_content.test.js +55 -1
  2058. package/lib/translated/sl/modules/enhance-user-content/doc_previews.js +3 -3
  2059. package/lib/translated/sl/modules/enhance-user-content/enhance_user_content.js +30 -13
  2060. package/lib/translated/sl/modules/enhance-user-content/instructure_helper.js +14 -5
  2061. package/lib/translated/sl/modules/enhance-user-content/media_comment_thumbnail.js +2 -2
  2062. package/lib/translated/sl/modules/rce/StatusBar.js +1 -1
  2063. package/lib/translated/sl/modules/rce/__tests__/contentInsertion.test.js +1 -1
  2064. package/lib/translated/sl/modules/rce/__tests__/contentRendering.test.js +10 -0
  2065. package/lib/translated/sl/modules/rce/contentRendering.js +2 -2
  2066. package/lib/translated/sl/modules/rce/plugins/instructure_icon_maker/components/CreateIconMakerForm/Header.js +1 -0
  2067. package/lib/translated/sl/modules/rce/plugins/instructure_wordcount/components/WordCountModal.js +2 -1
  2068. package/lib/translated/sl/modules/rce/plugins/instructure_wordcount/utils/__tests__/countContent.test.js +2 -2
  2069. package/lib/translated/sl/modules/rce/plugins/instructure_wordcount/utils/countContent.js +3 -3
  2070. package/lib/translated/sl/modules/rce/plugins/shared/CanvasContentTray.js +22 -23
  2071. package/lib/translated/sl/modules/rce/plugins/shared/RceFileBrowser.js +13 -5
  2072. package/lib/translated/sl/modules/rcs/api.js +3 -2
  2073. package/lib/translated/sl/modules/sidebar/store/initialState.js +4 -2
  2074. package/lib/translated/sl/modules/translations/locales/ar.js +36 -0
  2075. package/lib/translated/sl/modules/translations/locales/ca.js +36 -0
  2076. package/lib/translated/sl/modules/translations/locales/cy.js +36 -0
  2077. package/lib/translated/sl/modules/translations/locales/da-x-k12.js +36 -0
  2078. package/lib/translated/sl/modules/translations/locales/da.js +36 -0
  2079. package/lib/translated/sl/modules/translations/locales/de.js +36 -0
  2080. package/lib/translated/sl/modules/translations/locales/en-AU-x-unimelb.js +36 -0
  2081. package/lib/translated/sl/modules/translations/locales/en-GB-x-ukhe.js +36 -0
  2082. package/lib/translated/sl/modules/translations/locales/en_AU.js +36 -0
  2083. package/lib/translated/sl/modules/translations/locales/en_CA.js +36 -0
  2084. package/lib/translated/sl/modules/translations/locales/en_CY.js +36 -0
  2085. package/lib/translated/sl/modules/translations/locales/en_GB.js +36 -0
  2086. package/lib/translated/sl/modules/translations/locales/es.js +36 -0
  2087. package/lib/translated/sl/modules/translations/locales/es_ES.js +36 -0
  2088. package/lib/translated/sl/modules/translations/locales/fi.js +36 -0
  2089. package/lib/translated/sl/modules/translations/locales/fr.js +36 -0
  2090. package/lib/translated/sl/modules/translations/locales/fr_CA.js +36 -0
  2091. package/lib/translated/sl/modules/translations/locales/ht.js +36 -0
  2092. package/lib/translated/sl/modules/translations/locales/is.js +36 -0
  2093. package/lib/translated/sl/modules/translations/locales/it.js +36 -0
  2094. package/lib/translated/sl/modules/translations/locales/ja.js +36 -0
  2095. package/lib/translated/sl/modules/translations/locales/mi.js +36 -0
  2096. package/lib/translated/sl/modules/translations/locales/nb-x-k12.js +36 -0
  2097. package/lib/translated/sl/modules/translations/locales/nb.js +36 -0
  2098. package/lib/translated/sl/modules/translations/locales/nl.js +36 -0
  2099. package/lib/translated/sl/modules/translations/locales/pl.js +36 -0
  2100. package/lib/translated/sl/modules/translations/locales/pt.js +36 -0
  2101. package/lib/translated/sl/modules/translations/locales/pt_BR.js +36 -0
  2102. package/lib/translated/sl/modules/translations/locales/sl.js +36 -0
  2103. package/lib/translated/sl/modules/translations/locales/sv-x-k12.js +36 -0
  2104. package/lib/translated/sl/modules/translations/locales/zh-Hans.js +36 -0
  2105. package/lib/translated/sl/modules/translations/locales/zh-Hant.js +36 -0
  2106. package/lib/translated/sl/modules/translations/locales/zh.js +36 -0
  2107. package/lib/translated/sl/modules/translations/locales/zh_HK.js +36 -0
  2108. package/lib/translated/sv/modules/common/fileUrl.js +4 -3
  2109. package/lib/translated/sv/modules/enhance-user-content/__tests__/enhance_user_content.test.js +55 -1
  2110. package/lib/translated/sv/modules/enhance-user-content/doc_previews.js +1 -1
  2111. package/lib/translated/sv/modules/enhance-user-content/enhance_user_content.js +26 -9
  2112. package/lib/translated/sv/modules/enhance-user-content/instructure_helper.js +12 -3
  2113. package/lib/translated/sv/modules/rce/__tests__/contentInsertion.test.js +1 -1
  2114. package/lib/translated/sv/modules/rce/__tests__/contentRendering.test.js +10 -0
  2115. package/lib/translated/sv/modules/rce/contentRendering.js +2 -2
  2116. package/lib/translated/sv/modules/rce/plugins/instructure_icon_maker/components/CreateIconMakerForm/Header.js +1 -0
  2117. package/lib/translated/sv/modules/rce/plugins/instructure_wordcount/components/WordCountModal.js +2 -1
  2118. package/lib/translated/sv/modules/rce/plugins/instructure_wordcount/utils/__tests__/countContent.test.js +2 -2
  2119. package/lib/translated/sv/modules/rce/plugins/instructure_wordcount/utils/countContent.js +3 -3
  2120. package/lib/translated/sv/modules/rce/plugins/shared/CanvasContentTray.js +22 -23
  2121. package/lib/translated/sv/modules/rce/plugins/shared/RceFileBrowser.js +13 -5
  2122. package/lib/translated/sv/modules/rcs/api.js +3 -2
  2123. package/lib/translated/sv/modules/sidebar/store/initialState.js +4 -2
  2124. package/lib/translated/sv/modules/translations/locales/ar.js +36 -0
  2125. package/lib/translated/sv/modules/translations/locales/ca.js +36 -0
  2126. package/lib/translated/sv/modules/translations/locales/cy.js +36 -0
  2127. package/lib/translated/sv/modules/translations/locales/da-x-k12.js +36 -0
  2128. package/lib/translated/sv/modules/translations/locales/da.js +36 -0
  2129. package/lib/translated/sv/modules/translations/locales/de.js +36 -0
  2130. package/lib/translated/sv/modules/translations/locales/en-AU-x-unimelb.js +36 -0
  2131. package/lib/translated/sv/modules/translations/locales/en-GB-x-ukhe.js +36 -0
  2132. package/lib/translated/sv/modules/translations/locales/en_AU.js +36 -0
  2133. package/lib/translated/sv/modules/translations/locales/en_CA.js +36 -0
  2134. package/lib/translated/sv/modules/translations/locales/en_CY.js +36 -0
  2135. package/lib/translated/sv/modules/translations/locales/en_GB.js +36 -0
  2136. package/lib/translated/sv/modules/translations/locales/es.js +36 -0
  2137. package/lib/translated/sv/modules/translations/locales/es_ES.js +36 -0
  2138. package/lib/translated/sv/modules/translations/locales/fi.js +36 -0
  2139. package/lib/translated/sv/modules/translations/locales/fr.js +36 -0
  2140. package/lib/translated/sv/modules/translations/locales/fr_CA.js +36 -0
  2141. package/lib/translated/sv/modules/translations/locales/ht.js +36 -0
  2142. package/lib/translated/sv/modules/translations/locales/is.js +36 -0
  2143. package/lib/translated/sv/modules/translations/locales/it.js +36 -0
  2144. package/lib/translated/sv/modules/translations/locales/ja.js +36 -0
  2145. package/lib/translated/sv/modules/translations/locales/mi.js +36 -0
  2146. package/lib/translated/sv/modules/translations/locales/nb-x-k12.js +36 -0
  2147. package/lib/translated/sv/modules/translations/locales/nb.js +36 -0
  2148. package/lib/translated/sv/modules/translations/locales/nl.js +36 -0
  2149. package/lib/translated/sv/modules/translations/locales/pl.js +36 -0
  2150. package/lib/translated/sv/modules/translations/locales/pt.js +36 -0
  2151. package/lib/translated/sv/modules/translations/locales/pt_BR.js +36 -0
  2152. package/lib/translated/sv/modules/translations/locales/sl.js +36 -0
  2153. package/lib/translated/sv/modules/translations/locales/sv-x-k12.js +36 -0
  2154. package/lib/translated/sv/modules/translations/locales/zh-Hans.js +36 -0
  2155. package/lib/translated/sv/modules/translations/locales/zh-Hant.js +36 -0
  2156. package/lib/translated/sv/modules/translations/locales/zh.js +36 -0
  2157. package/lib/translated/sv/modules/translations/locales/zh_HK.js +36 -0
  2158. package/lib/translated/sv-x-k12/modules/common/fileUrl.js +4 -3
  2159. package/lib/translated/sv-x-k12/modules/enhance-user-content/__tests__/enhance_user_content.test.js +55 -1
  2160. package/lib/translated/sv-x-k12/modules/enhance-user-content/doc_previews.js +3 -3
  2161. package/lib/translated/sv-x-k12/modules/enhance-user-content/enhance_user_content.js +30 -13
  2162. package/lib/translated/sv-x-k12/modules/enhance-user-content/instructure_helper.js +14 -5
  2163. package/lib/translated/sv-x-k12/modules/enhance-user-content/media_comment_thumbnail.js +2 -2
  2164. package/lib/translated/sv-x-k12/modules/rce/StatusBar.js +1 -1
  2165. package/lib/translated/sv-x-k12/modules/rce/__tests__/contentInsertion.test.js +1 -1
  2166. package/lib/translated/sv-x-k12/modules/rce/__tests__/contentRendering.test.js +10 -0
  2167. package/lib/translated/sv-x-k12/modules/rce/contentRendering.js +2 -2
  2168. package/lib/translated/sv-x-k12/modules/rce/plugins/instructure_icon_maker/components/CreateIconMakerForm/Header.js +1 -0
  2169. package/lib/translated/sv-x-k12/modules/rce/plugins/instructure_wordcount/components/WordCountModal.js +2 -1
  2170. package/lib/translated/sv-x-k12/modules/rce/plugins/instructure_wordcount/utils/__tests__/countContent.test.js +2 -2
  2171. package/lib/translated/sv-x-k12/modules/rce/plugins/instructure_wordcount/utils/countContent.js +3 -3
  2172. package/lib/translated/sv-x-k12/modules/rce/plugins/shared/CanvasContentTray.js +22 -23
  2173. package/lib/translated/sv-x-k12/modules/rce/plugins/shared/RceFileBrowser.js +13 -5
  2174. package/lib/translated/sv-x-k12/modules/rcs/api.js +3 -2
  2175. package/lib/translated/sv-x-k12/modules/sidebar/store/initialState.js +4 -2
  2176. package/lib/translated/sv-x-k12/modules/translations/locales/ar.js +36 -0
  2177. package/lib/translated/sv-x-k12/modules/translations/locales/ca.js +36 -0
  2178. package/lib/translated/sv-x-k12/modules/translations/locales/cy.js +36 -0
  2179. package/lib/translated/sv-x-k12/modules/translations/locales/da-x-k12.js +36 -0
  2180. package/lib/translated/sv-x-k12/modules/translations/locales/da.js +36 -0
  2181. package/lib/translated/sv-x-k12/modules/translations/locales/de.js +36 -0
  2182. package/lib/translated/sv-x-k12/modules/translations/locales/en-AU-x-unimelb.js +36 -0
  2183. package/lib/translated/sv-x-k12/modules/translations/locales/en-GB-x-ukhe.js +36 -0
  2184. package/lib/translated/sv-x-k12/modules/translations/locales/en_AU.js +36 -0
  2185. package/lib/translated/sv-x-k12/modules/translations/locales/en_CA.js +36 -0
  2186. package/lib/translated/sv-x-k12/modules/translations/locales/en_CY.js +36 -0
  2187. package/lib/translated/sv-x-k12/modules/translations/locales/en_GB.js +36 -0
  2188. package/lib/translated/sv-x-k12/modules/translations/locales/es.js +36 -0
  2189. package/lib/translated/sv-x-k12/modules/translations/locales/es_ES.js +36 -0
  2190. package/lib/translated/sv-x-k12/modules/translations/locales/fi.js +36 -0
  2191. package/lib/translated/sv-x-k12/modules/translations/locales/fr.js +36 -0
  2192. package/lib/translated/sv-x-k12/modules/translations/locales/fr_CA.js +36 -0
  2193. package/lib/translated/sv-x-k12/modules/translations/locales/ht.js +36 -0
  2194. package/lib/translated/sv-x-k12/modules/translations/locales/is.js +36 -0
  2195. package/lib/translated/sv-x-k12/modules/translations/locales/it.js +36 -0
  2196. package/lib/translated/sv-x-k12/modules/translations/locales/ja.js +36 -0
  2197. package/lib/translated/sv-x-k12/modules/translations/locales/mi.js +36 -0
  2198. package/lib/translated/sv-x-k12/modules/translations/locales/nb-x-k12.js +36 -0
  2199. package/lib/translated/sv-x-k12/modules/translations/locales/nb.js +36 -0
  2200. package/lib/translated/sv-x-k12/modules/translations/locales/nl.js +36 -0
  2201. package/lib/translated/sv-x-k12/modules/translations/locales/pl.js +36 -0
  2202. package/lib/translated/sv-x-k12/modules/translations/locales/pt.js +36 -0
  2203. package/lib/translated/sv-x-k12/modules/translations/locales/pt_BR.js +36 -0
  2204. package/lib/translated/sv-x-k12/modules/translations/locales/sl.js +36 -0
  2205. package/lib/translated/sv-x-k12/modules/translations/locales/sv-x-k12.js +36 -0
  2206. package/lib/translated/sv-x-k12/modules/translations/locales/zh-Hans.js +36 -0
  2207. package/lib/translated/sv-x-k12/modules/translations/locales/zh-Hant.js +36 -0
  2208. package/lib/translated/sv-x-k12/modules/translations/locales/zh.js +36 -0
  2209. package/lib/translated/sv-x-k12/modules/translations/locales/zh_HK.js +36 -0
  2210. package/lib/translated/sv_SE/modules/common/fileUrl.js +4 -3
  2211. package/lib/translated/sv_SE/modules/enhance-user-content/__tests__/enhance_user_content.test.js +55 -1
  2212. package/lib/translated/sv_SE/modules/enhance-user-content/doc_previews.js +1 -1
  2213. package/lib/translated/sv_SE/modules/enhance-user-content/enhance_user_content.js +26 -9
  2214. package/lib/translated/sv_SE/modules/enhance-user-content/instructure_helper.js +12 -3
  2215. package/lib/translated/sv_SE/modules/rce/__tests__/contentInsertion.test.js +1 -1
  2216. package/lib/translated/sv_SE/modules/rce/__tests__/contentRendering.test.js +10 -0
  2217. package/lib/translated/sv_SE/modules/rce/contentRendering.js +2 -2
  2218. package/lib/translated/sv_SE/modules/rce/plugins/instructure_icon_maker/components/CreateIconMakerForm/Header.js +1 -0
  2219. package/lib/translated/sv_SE/modules/rce/plugins/instructure_wordcount/components/WordCountModal.js +2 -1
  2220. package/lib/translated/sv_SE/modules/rce/plugins/instructure_wordcount/utils/__tests__/countContent.test.js +2 -2
  2221. package/lib/translated/sv_SE/modules/rce/plugins/instructure_wordcount/utils/countContent.js +3 -3
  2222. package/lib/translated/sv_SE/modules/rce/plugins/shared/CanvasContentTray.js +22 -23
  2223. package/lib/translated/sv_SE/modules/rce/plugins/shared/RceFileBrowser.js +13 -5
  2224. package/lib/translated/sv_SE/modules/rcs/api.js +3 -2
  2225. package/lib/translated/sv_SE/modules/sidebar/store/initialState.js +4 -2
  2226. package/lib/translated/sv_SE/modules/translations/locales/ar.js +36 -0
  2227. package/lib/translated/sv_SE/modules/translations/locales/ca.js +36 -0
  2228. package/lib/translated/sv_SE/modules/translations/locales/cy.js +36 -0
  2229. package/lib/translated/sv_SE/modules/translations/locales/da-x-k12.js +36 -0
  2230. package/lib/translated/sv_SE/modules/translations/locales/da.js +36 -0
  2231. package/lib/translated/sv_SE/modules/translations/locales/de.js +36 -0
  2232. package/lib/translated/sv_SE/modules/translations/locales/en-AU-x-unimelb.js +36 -0
  2233. package/lib/translated/sv_SE/modules/translations/locales/en-GB-x-ukhe.js +36 -0
  2234. package/lib/translated/sv_SE/modules/translations/locales/en_AU.js +36 -0
  2235. package/lib/translated/sv_SE/modules/translations/locales/en_CA.js +36 -0
  2236. package/lib/translated/sv_SE/modules/translations/locales/en_CY.js +36 -0
  2237. package/lib/translated/sv_SE/modules/translations/locales/en_GB.js +36 -0
  2238. package/lib/translated/sv_SE/modules/translations/locales/es.js +36 -0
  2239. package/lib/translated/sv_SE/modules/translations/locales/es_ES.js +36 -0
  2240. package/lib/translated/sv_SE/modules/translations/locales/fi.js +36 -0
  2241. package/lib/translated/sv_SE/modules/translations/locales/fr.js +36 -0
  2242. package/lib/translated/sv_SE/modules/translations/locales/fr_CA.js +36 -0
  2243. package/lib/translated/sv_SE/modules/translations/locales/ht.js +36 -0
  2244. package/lib/translated/sv_SE/modules/translations/locales/is.js +36 -0
  2245. package/lib/translated/sv_SE/modules/translations/locales/it.js +36 -0
  2246. package/lib/translated/sv_SE/modules/translations/locales/ja.js +36 -0
  2247. package/lib/translated/sv_SE/modules/translations/locales/mi.js +36 -0
  2248. package/lib/translated/sv_SE/modules/translations/locales/nb-x-k12.js +36 -0
  2249. package/lib/translated/sv_SE/modules/translations/locales/nb.js +36 -0
  2250. package/lib/translated/sv_SE/modules/translations/locales/nl.js +36 -0
  2251. package/lib/translated/sv_SE/modules/translations/locales/pl.js +36 -0
  2252. package/lib/translated/sv_SE/modules/translations/locales/pt.js +36 -0
  2253. package/lib/translated/sv_SE/modules/translations/locales/pt_BR.js +36 -0
  2254. package/lib/translated/sv_SE/modules/translations/locales/sl.js +36 -0
  2255. package/lib/translated/sv_SE/modules/translations/locales/sv-x-k12.js +36 -0
  2256. package/lib/translated/sv_SE/modules/translations/locales/zh-Hans.js +36 -0
  2257. package/lib/translated/sv_SE/modules/translations/locales/zh-Hant.js +36 -0
  2258. package/lib/translated/sv_SE/modules/translations/locales/zh.js +36 -0
  2259. package/lib/translated/sv_SE/modules/translations/locales/zh_HK.js +36 -0
  2260. package/lib/translated/tg/modules/common/fileUrl.js +4 -3
  2261. package/lib/translated/tg/modules/enhance-user-content/__tests__/enhance_user_content.test.js +55 -1
  2262. package/lib/translated/tg/modules/enhance-user-content/doc_previews.js +1 -1
  2263. package/lib/translated/tg/modules/enhance-user-content/enhance_user_content.js +26 -9
  2264. package/lib/translated/tg/modules/enhance-user-content/instructure_helper.js +12 -3
  2265. package/lib/translated/tg/modules/rce/__tests__/contentInsertion.test.js +1 -1
  2266. package/lib/translated/tg/modules/rce/__tests__/contentRendering.test.js +10 -0
  2267. package/lib/translated/tg/modules/rce/contentRendering.js +2 -2
  2268. package/lib/translated/tg/modules/rce/plugins/instructure_icon_maker/components/CreateIconMakerForm/Header.js +1 -0
  2269. package/lib/translated/tg/modules/rce/plugins/instructure_wordcount/components/WordCountModal.js +2 -1
  2270. package/lib/translated/tg/modules/rce/plugins/instructure_wordcount/utils/__tests__/countContent.test.js +2 -2
  2271. package/lib/translated/tg/modules/rce/plugins/instructure_wordcount/utils/countContent.js +3 -3
  2272. package/lib/translated/tg/modules/rce/plugins/shared/CanvasContentTray.js +22 -23
  2273. package/lib/translated/tg/modules/rce/plugins/shared/RceFileBrowser.js +13 -5
  2274. package/lib/translated/tg/modules/rcs/api.js +3 -2
  2275. package/lib/translated/tg/modules/sidebar/store/initialState.js +4 -2
  2276. package/lib/translated/tg/modules/translations/locales/ar.js +36 -0
  2277. package/lib/translated/tg/modules/translations/locales/ca.js +36 -0
  2278. package/lib/translated/tg/modules/translations/locales/cy.js +36 -0
  2279. package/lib/translated/tg/modules/translations/locales/da-x-k12.js +36 -0
  2280. package/lib/translated/tg/modules/translations/locales/da.js +36 -0
  2281. package/lib/translated/tg/modules/translations/locales/de.js +36 -0
  2282. package/lib/translated/tg/modules/translations/locales/en-AU-x-unimelb.js +36 -0
  2283. package/lib/translated/tg/modules/translations/locales/en-GB-x-ukhe.js +36 -0
  2284. package/lib/translated/tg/modules/translations/locales/en_AU.js +36 -0
  2285. package/lib/translated/tg/modules/translations/locales/en_CA.js +36 -0
  2286. package/lib/translated/tg/modules/translations/locales/en_CY.js +36 -0
  2287. package/lib/translated/tg/modules/translations/locales/en_GB.js +36 -0
  2288. package/lib/translated/tg/modules/translations/locales/es.js +36 -0
  2289. package/lib/translated/tg/modules/translations/locales/es_ES.js +36 -0
  2290. package/lib/translated/tg/modules/translations/locales/fi.js +36 -0
  2291. package/lib/translated/tg/modules/translations/locales/fr.js +36 -0
  2292. package/lib/translated/tg/modules/translations/locales/fr_CA.js +36 -0
  2293. package/lib/translated/tg/modules/translations/locales/ht.js +36 -0
  2294. package/lib/translated/tg/modules/translations/locales/is.js +36 -0
  2295. package/lib/translated/tg/modules/translations/locales/it.js +36 -0
  2296. package/lib/translated/tg/modules/translations/locales/ja.js +36 -0
  2297. package/lib/translated/tg/modules/translations/locales/mi.js +36 -0
  2298. package/lib/translated/tg/modules/translations/locales/nb-x-k12.js +36 -0
  2299. package/lib/translated/tg/modules/translations/locales/nb.js +36 -0
  2300. package/lib/translated/tg/modules/translations/locales/nl.js +36 -0
  2301. package/lib/translated/tg/modules/translations/locales/pl.js +36 -0
  2302. package/lib/translated/tg/modules/translations/locales/pt.js +36 -0
  2303. package/lib/translated/tg/modules/translations/locales/pt_BR.js +36 -0
  2304. package/lib/translated/tg/modules/translations/locales/sl.js +36 -0
  2305. package/lib/translated/tg/modules/translations/locales/sv-x-k12.js +36 -0
  2306. package/lib/translated/tg/modules/translations/locales/zh-Hans.js +36 -0
  2307. package/lib/translated/tg/modules/translations/locales/zh-Hant.js +36 -0
  2308. package/lib/translated/tg/modules/translations/locales/zh.js +36 -0
  2309. package/lib/translated/tg/modules/translations/locales/zh_HK.js +36 -0
  2310. package/lib/translated/th/modules/common/fileUrl.js +4 -3
  2311. package/lib/translated/th/modules/enhance-user-content/__tests__/enhance_user_content.test.js +55 -1
  2312. package/lib/translated/th/modules/enhance-user-content/doc_previews.js +1 -1
  2313. package/lib/translated/th/modules/enhance-user-content/enhance_user_content.js +26 -9
  2314. package/lib/translated/th/modules/enhance-user-content/instructure_helper.js +12 -3
  2315. package/lib/translated/th/modules/rce/__tests__/contentInsertion.test.js +1 -1
  2316. package/lib/translated/th/modules/rce/__tests__/contentRendering.test.js +10 -0
  2317. package/lib/translated/th/modules/rce/contentRendering.js +2 -2
  2318. package/lib/translated/th/modules/rce/plugins/instructure_icon_maker/components/CreateIconMakerForm/Header.js +1 -0
  2319. package/lib/translated/th/modules/rce/plugins/instructure_wordcount/components/WordCountModal.js +2 -1
  2320. package/lib/translated/th/modules/rce/plugins/instructure_wordcount/utils/__tests__/countContent.test.js +2 -2
  2321. package/lib/translated/th/modules/rce/plugins/instructure_wordcount/utils/countContent.js +3 -3
  2322. package/lib/translated/th/modules/rce/plugins/shared/CanvasContentTray.js +22 -23
  2323. package/lib/translated/th/modules/rce/plugins/shared/RceFileBrowser.js +13 -5
  2324. package/lib/translated/th/modules/rcs/api.js +3 -2
  2325. package/lib/translated/th/modules/sidebar/store/initialState.js +4 -2
  2326. package/lib/translated/th/modules/translations/locales/ar.js +36 -0
  2327. package/lib/translated/th/modules/translations/locales/ca.js +36 -0
  2328. package/lib/translated/th/modules/translations/locales/cy.js +36 -0
  2329. package/lib/translated/th/modules/translations/locales/da-x-k12.js +36 -0
  2330. package/lib/translated/th/modules/translations/locales/da.js +36 -0
  2331. package/lib/translated/th/modules/translations/locales/de.js +36 -0
  2332. package/lib/translated/th/modules/translations/locales/en-AU-x-unimelb.js +36 -0
  2333. package/lib/translated/th/modules/translations/locales/en-GB-x-ukhe.js +36 -0
  2334. package/lib/translated/th/modules/translations/locales/en_AU.js +36 -0
  2335. package/lib/translated/th/modules/translations/locales/en_CA.js +36 -0
  2336. package/lib/translated/th/modules/translations/locales/en_CY.js +36 -0
  2337. package/lib/translated/th/modules/translations/locales/en_GB.js +36 -0
  2338. package/lib/translated/th/modules/translations/locales/es.js +36 -0
  2339. package/lib/translated/th/modules/translations/locales/es_ES.js +36 -0
  2340. package/lib/translated/th/modules/translations/locales/fi.js +36 -0
  2341. package/lib/translated/th/modules/translations/locales/fr.js +36 -0
  2342. package/lib/translated/th/modules/translations/locales/fr_CA.js +36 -0
  2343. package/lib/translated/th/modules/translations/locales/ht.js +36 -0
  2344. package/lib/translated/th/modules/translations/locales/is.js +36 -0
  2345. package/lib/translated/th/modules/translations/locales/it.js +36 -0
  2346. package/lib/translated/th/modules/translations/locales/ja.js +36 -0
  2347. package/lib/translated/th/modules/translations/locales/mi.js +36 -0
  2348. package/lib/translated/th/modules/translations/locales/nb-x-k12.js +36 -0
  2349. package/lib/translated/th/modules/translations/locales/nb.js +36 -0
  2350. package/lib/translated/th/modules/translations/locales/nl.js +36 -0
  2351. package/lib/translated/th/modules/translations/locales/pl.js +36 -0
  2352. package/lib/translated/th/modules/translations/locales/pt.js +36 -0
  2353. package/lib/translated/th/modules/translations/locales/pt_BR.js +36 -0
  2354. package/lib/translated/th/modules/translations/locales/sl.js +36 -0
  2355. package/lib/translated/th/modules/translations/locales/sv-x-k12.js +36 -0
  2356. package/lib/translated/th/modules/translations/locales/zh-Hans.js +36 -0
  2357. package/lib/translated/th/modules/translations/locales/zh-Hant.js +36 -0
  2358. package/lib/translated/th/modules/translations/locales/zh.js +36 -0
  2359. package/lib/translated/th/modules/translations/locales/zh_HK.js +36 -0
  2360. package/lib/translated/th_TH/modules/common/fileUrl.js +4 -3
  2361. package/lib/translated/th_TH/modules/enhance-user-content/__tests__/enhance_user_content.test.js +55 -1
  2362. package/lib/translated/th_TH/modules/enhance-user-content/doc_previews.js +1 -1
  2363. package/lib/translated/th_TH/modules/enhance-user-content/enhance_user_content.js +26 -9
  2364. package/lib/translated/th_TH/modules/enhance-user-content/instructure_helper.js +12 -3
  2365. package/lib/translated/th_TH/modules/rce/__tests__/contentInsertion.test.js +1 -1
  2366. package/lib/translated/th_TH/modules/rce/__tests__/contentRendering.test.js +10 -0
  2367. package/lib/translated/th_TH/modules/rce/contentRendering.js +2 -2
  2368. package/lib/translated/th_TH/modules/rce/plugins/instructure_icon_maker/components/CreateIconMakerForm/Header.js +1 -0
  2369. package/lib/translated/th_TH/modules/rce/plugins/instructure_wordcount/components/WordCountModal.js +2 -1
  2370. package/lib/translated/th_TH/modules/rce/plugins/instructure_wordcount/utils/__tests__/countContent.test.js +2 -2
  2371. package/lib/translated/th_TH/modules/rce/plugins/instructure_wordcount/utils/countContent.js +3 -3
  2372. package/lib/translated/th_TH/modules/rce/plugins/shared/CanvasContentTray.js +22 -23
  2373. package/lib/translated/th_TH/modules/rce/plugins/shared/RceFileBrowser.js +13 -5
  2374. package/lib/translated/th_TH/modules/rcs/api.js +3 -2
  2375. package/lib/translated/th_TH/modules/sidebar/store/initialState.js +4 -2
  2376. package/lib/translated/th_TH/modules/translations/locales/ar.js +36 -0
  2377. package/lib/translated/th_TH/modules/translations/locales/ca.js +36 -0
  2378. package/lib/translated/th_TH/modules/translations/locales/cy.js +36 -0
  2379. package/lib/translated/th_TH/modules/translations/locales/da-x-k12.js +36 -0
  2380. package/lib/translated/th_TH/modules/translations/locales/da.js +36 -0
  2381. package/lib/translated/th_TH/modules/translations/locales/de.js +36 -0
  2382. package/lib/translated/th_TH/modules/translations/locales/en-AU-x-unimelb.js +36 -0
  2383. package/lib/translated/th_TH/modules/translations/locales/en-GB-x-ukhe.js +36 -0
  2384. package/lib/translated/th_TH/modules/translations/locales/en_AU.js +36 -0
  2385. package/lib/translated/th_TH/modules/translations/locales/en_CA.js +36 -0
  2386. package/lib/translated/th_TH/modules/translations/locales/en_CY.js +36 -0
  2387. package/lib/translated/th_TH/modules/translations/locales/en_GB.js +36 -0
  2388. package/lib/translated/th_TH/modules/translations/locales/es.js +36 -0
  2389. package/lib/translated/th_TH/modules/translations/locales/es_ES.js +36 -0
  2390. package/lib/translated/th_TH/modules/translations/locales/fi.js +36 -0
  2391. package/lib/translated/th_TH/modules/translations/locales/fr.js +36 -0
  2392. package/lib/translated/th_TH/modules/translations/locales/fr_CA.js +36 -0
  2393. package/lib/translated/th_TH/modules/translations/locales/ht.js +36 -0
  2394. package/lib/translated/th_TH/modules/translations/locales/is.js +36 -0
  2395. package/lib/translated/th_TH/modules/translations/locales/it.js +36 -0
  2396. package/lib/translated/th_TH/modules/translations/locales/ja.js +36 -0
  2397. package/lib/translated/th_TH/modules/translations/locales/mi.js +36 -0
  2398. package/lib/translated/th_TH/modules/translations/locales/nb-x-k12.js +36 -0
  2399. package/lib/translated/th_TH/modules/translations/locales/nb.js +36 -0
  2400. package/lib/translated/th_TH/modules/translations/locales/nl.js +36 -0
  2401. package/lib/translated/th_TH/modules/translations/locales/pl.js +36 -0
  2402. package/lib/translated/th_TH/modules/translations/locales/pt.js +36 -0
  2403. package/lib/translated/th_TH/modules/translations/locales/pt_BR.js +36 -0
  2404. package/lib/translated/th_TH/modules/translations/locales/sl.js +36 -0
  2405. package/lib/translated/th_TH/modules/translations/locales/sv-x-k12.js +36 -0
  2406. package/lib/translated/th_TH/modules/translations/locales/zh-Hans.js +36 -0
  2407. package/lib/translated/th_TH/modules/translations/locales/zh-Hant.js +36 -0
  2408. package/lib/translated/th_TH/modules/translations/locales/zh.js +36 -0
  2409. package/lib/translated/th_TH/modules/translations/locales/zh_HK.js +36 -0
  2410. package/lib/translated/tr/modules/common/fileUrl.js +4 -3
  2411. package/lib/translated/tr/modules/enhance-user-content/__tests__/enhance_user_content.test.js +55 -1
  2412. package/lib/translated/tr/modules/enhance-user-content/doc_previews.js +1 -1
  2413. package/lib/translated/tr/modules/enhance-user-content/enhance_user_content.js +26 -9
  2414. package/lib/translated/tr/modules/enhance-user-content/instructure_helper.js +12 -3
  2415. package/lib/translated/tr/modules/rce/__tests__/contentInsertion.test.js +1 -1
  2416. package/lib/translated/tr/modules/rce/__tests__/contentRendering.test.js +10 -0
  2417. package/lib/translated/tr/modules/rce/contentRendering.js +2 -2
  2418. package/lib/translated/tr/modules/rce/plugins/instructure_icon_maker/components/CreateIconMakerForm/Header.js +1 -0
  2419. package/lib/translated/tr/modules/rce/plugins/instructure_wordcount/components/WordCountModal.js +2 -1
  2420. package/lib/translated/tr/modules/rce/plugins/instructure_wordcount/utils/__tests__/countContent.test.js +2 -2
  2421. package/lib/translated/tr/modules/rce/plugins/instructure_wordcount/utils/countContent.js +3 -3
  2422. package/lib/translated/tr/modules/rce/plugins/shared/CanvasContentTray.js +22 -23
  2423. package/lib/translated/tr/modules/rce/plugins/shared/RceFileBrowser.js +13 -5
  2424. package/lib/translated/tr/modules/rcs/api.js +3 -2
  2425. package/lib/translated/tr/modules/sidebar/store/initialState.js +4 -2
  2426. package/lib/translated/tr/modules/translations/locales/ar.js +36 -0
  2427. package/lib/translated/tr/modules/translations/locales/ca.js +36 -0
  2428. package/lib/translated/tr/modules/translations/locales/cy.js +36 -0
  2429. package/lib/translated/tr/modules/translations/locales/da-x-k12.js +36 -0
  2430. package/lib/translated/tr/modules/translations/locales/da.js +36 -0
  2431. package/lib/translated/tr/modules/translations/locales/de.js +36 -0
  2432. package/lib/translated/tr/modules/translations/locales/en-AU-x-unimelb.js +36 -0
  2433. package/lib/translated/tr/modules/translations/locales/en-GB-x-ukhe.js +36 -0
  2434. package/lib/translated/tr/modules/translations/locales/en_AU.js +36 -0
  2435. package/lib/translated/tr/modules/translations/locales/en_CA.js +36 -0
  2436. package/lib/translated/tr/modules/translations/locales/en_CY.js +36 -0
  2437. package/lib/translated/tr/modules/translations/locales/en_GB.js +36 -0
  2438. package/lib/translated/tr/modules/translations/locales/es.js +36 -0
  2439. package/lib/translated/tr/modules/translations/locales/es_ES.js +36 -0
  2440. package/lib/translated/tr/modules/translations/locales/fi.js +36 -0
  2441. package/lib/translated/tr/modules/translations/locales/fr.js +36 -0
  2442. package/lib/translated/tr/modules/translations/locales/fr_CA.js +36 -0
  2443. package/lib/translated/tr/modules/translations/locales/ht.js +36 -0
  2444. package/lib/translated/tr/modules/translations/locales/is.js +36 -0
  2445. package/lib/translated/tr/modules/translations/locales/it.js +36 -0
  2446. package/lib/translated/tr/modules/translations/locales/ja.js +36 -0
  2447. package/lib/translated/tr/modules/translations/locales/mi.js +36 -0
  2448. package/lib/translated/tr/modules/translations/locales/nb-x-k12.js +36 -0
  2449. package/lib/translated/tr/modules/translations/locales/nb.js +36 -0
  2450. package/lib/translated/tr/modules/translations/locales/nl.js +36 -0
  2451. package/lib/translated/tr/modules/translations/locales/pl.js +36 -0
  2452. package/lib/translated/tr/modules/translations/locales/pt.js +36 -0
  2453. package/lib/translated/tr/modules/translations/locales/pt_BR.js +36 -0
  2454. package/lib/translated/tr/modules/translations/locales/sl.js +36 -0
  2455. package/lib/translated/tr/modules/translations/locales/sv-x-k12.js +36 -0
  2456. package/lib/translated/tr/modules/translations/locales/zh-Hans.js +36 -0
  2457. package/lib/translated/tr/modules/translations/locales/zh-Hant.js +36 -0
  2458. package/lib/translated/tr/modules/translations/locales/zh.js +36 -0
  2459. package/lib/translated/tr/modules/translations/locales/zh_HK.js +36 -0
  2460. package/lib/translated/uk_UA/modules/common/fileUrl.js +4 -3
  2461. package/lib/translated/uk_UA/modules/enhance-user-content/__tests__/enhance_user_content.test.js +55 -1
  2462. package/lib/translated/uk_UA/modules/enhance-user-content/doc_previews.js +1 -1
  2463. package/lib/translated/uk_UA/modules/enhance-user-content/enhance_user_content.js +26 -9
  2464. package/lib/translated/uk_UA/modules/enhance-user-content/instructure_helper.js +12 -3
  2465. package/lib/translated/uk_UA/modules/rce/__tests__/contentInsertion.test.js +1 -1
  2466. package/lib/translated/uk_UA/modules/rce/__tests__/contentRendering.test.js +10 -0
  2467. package/lib/translated/uk_UA/modules/rce/contentRendering.js +2 -2
  2468. package/lib/translated/uk_UA/modules/rce/plugins/instructure_icon_maker/components/CreateIconMakerForm/Header.js +1 -0
  2469. package/lib/translated/uk_UA/modules/rce/plugins/instructure_wordcount/components/WordCountModal.js +2 -1
  2470. package/lib/translated/uk_UA/modules/rce/plugins/instructure_wordcount/utils/__tests__/countContent.test.js +2 -2
  2471. package/lib/translated/uk_UA/modules/rce/plugins/instructure_wordcount/utils/countContent.js +3 -3
  2472. package/lib/translated/uk_UA/modules/rce/plugins/shared/CanvasContentTray.js +22 -23
  2473. package/lib/translated/uk_UA/modules/rce/plugins/shared/RceFileBrowser.js +13 -5
  2474. package/lib/translated/uk_UA/modules/rcs/api.js +3 -2
  2475. package/lib/translated/uk_UA/modules/sidebar/store/initialState.js +4 -2
  2476. package/lib/translated/uk_UA/modules/translations/locales/ar.js +36 -0
  2477. package/lib/translated/uk_UA/modules/translations/locales/ca.js +36 -0
  2478. package/lib/translated/uk_UA/modules/translations/locales/cy.js +36 -0
  2479. package/lib/translated/uk_UA/modules/translations/locales/da-x-k12.js +36 -0
  2480. package/lib/translated/uk_UA/modules/translations/locales/da.js +36 -0
  2481. package/lib/translated/uk_UA/modules/translations/locales/de.js +36 -0
  2482. package/lib/translated/uk_UA/modules/translations/locales/en-AU-x-unimelb.js +36 -0
  2483. package/lib/translated/uk_UA/modules/translations/locales/en-GB-x-ukhe.js +36 -0
  2484. package/lib/translated/uk_UA/modules/translations/locales/en_AU.js +36 -0
  2485. package/lib/translated/uk_UA/modules/translations/locales/en_CA.js +36 -0
  2486. package/lib/translated/uk_UA/modules/translations/locales/en_CY.js +36 -0
  2487. package/lib/translated/uk_UA/modules/translations/locales/en_GB.js +36 -0
  2488. package/lib/translated/uk_UA/modules/translations/locales/es.js +36 -0
  2489. package/lib/translated/uk_UA/modules/translations/locales/es_ES.js +36 -0
  2490. package/lib/translated/uk_UA/modules/translations/locales/fi.js +36 -0
  2491. package/lib/translated/uk_UA/modules/translations/locales/fr.js +36 -0
  2492. package/lib/translated/uk_UA/modules/translations/locales/fr_CA.js +36 -0
  2493. package/lib/translated/uk_UA/modules/translations/locales/ht.js +36 -0
  2494. package/lib/translated/uk_UA/modules/translations/locales/is.js +36 -0
  2495. package/lib/translated/uk_UA/modules/translations/locales/it.js +36 -0
  2496. package/lib/translated/uk_UA/modules/translations/locales/ja.js +36 -0
  2497. package/lib/translated/uk_UA/modules/translations/locales/mi.js +36 -0
  2498. package/lib/translated/uk_UA/modules/translations/locales/nb-x-k12.js +36 -0
  2499. package/lib/translated/uk_UA/modules/translations/locales/nb.js +36 -0
  2500. package/lib/translated/uk_UA/modules/translations/locales/nl.js +36 -0
  2501. package/lib/translated/uk_UA/modules/translations/locales/pl.js +36 -0
  2502. package/lib/translated/uk_UA/modules/translations/locales/pt.js +36 -0
  2503. package/lib/translated/uk_UA/modules/translations/locales/pt_BR.js +36 -0
  2504. package/lib/translated/uk_UA/modules/translations/locales/sl.js +36 -0
  2505. package/lib/translated/uk_UA/modules/translations/locales/sv-x-k12.js +36 -0
  2506. package/lib/translated/uk_UA/modules/translations/locales/zh-Hans.js +36 -0
  2507. package/lib/translated/uk_UA/modules/translations/locales/zh-Hant.js +36 -0
  2508. package/lib/translated/uk_UA/modules/translations/locales/zh.js +36 -0
  2509. package/lib/translated/uk_UA/modules/translations/locales/zh_HK.js +36 -0
  2510. package/lib/translated/vi/modules/common/fileUrl.js +4 -3
  2511. package/lib/translated/vi/modules/enhance-user-content/__tests__/enhance_user_content.test.js +55 -1
  2512. package/lib/translated/vi/modules/enhance-user-content/doc_previews.js +1 -1
  2513. package/lib/translated/vi/modules/enhance-user-content/enhance_user_content.js +26 -9
  2514. package/lib/translated/vi/modules/enhance-user-content/instructure_helper.js +12 -3
  2515. package/lib/translated/vi/modules/rce/__tests__/contentInsertion.test.js +1 -1
  2516. package/lib/translated/vi/modules/rce/__tests__/contentRendering.test.js +10 -0
  2517. package/lib/translated/vi/modules/rce/contentRendering.js +2 -2
  2518. package/lib/translated/vi/modules/rce/plugins/instructure_icon_maker/components/CreateIconMakerForm/Header.js +1 -0
  2519. package/lib/translated/vi/modules/rce/plugins/instructure_wordcount/components/WordCountModal.js +2 -1
  2520. package/lib/translated/vi/modules/rce/plugins/instructure_wordcount/utils/__tests__/countContent.test.js +2 -2
  2521. package/lib/translated/vi/modules/rce/plugins/instructure_wordcount/utils/countContent.js +3 -3
  2522. package/lib/translated/vi/modules/rce/plugins/shared/CanvasContentTray.js +22 -23
  2523. package/lib/translated/vi/modules/rce/plugins/shared/RceFileBrowser.js +13 -5
  2524. package/lib/translated/vi/modules/rcs/api.js +3 -2
  2525. package/lib/translated/vi/modules/sidebar/store/initialState.js +4 -2
  2526. package/lib/translated/vi/modules/translations/locales/ar.js +36 -0
  2527. package/lib/translated/vi/modules/translations/locales/ca.js +36 -0
  2528. package/lib/translated/vi/modules/translations/locales/cy.js +36 -0
  2529. package/lib/translated/vi/modules/translations/locales/da-x-k12.js +36 -0
  2530. package/lib/translated/vi/modules/translations/locales/da.js +36 -0
  2531. package/lib/translated/vi/modules/translations/locales/de.js +36 -0
  2532. package/lib/translated/vi/modules/translations/locales/en-AU-x-unimelb.js +36 -0
  2533. package/lib/translated/vi/modules/translations/locales/en-GB-x-ukhe.js +36 -0
  2534. package/lib/translated/vi/modules/translations/locales/en_AU.js +36 -0
  2535. package/lib/translated/vi/modules/translations/locales/en_CA.js +36 -0
  2536. package/lib/translated/vi/modules/translations/locales/en_CY.js +36 -0
  2537. package/lib/translated/vi/modules/translations/locales/en_GB.js +36 -0
  2538. package/lib/translated/vi/modules/translations/locales/es.js +36 -0
  2539. package/lib/translated/vi/modules/translations/locales/es_ES.js +36 -0
  2540. package/lib/translated/vi/modules/translations/locales/fi.js +36 -0
  2541. package/lib/translated/vi/modules/translations/locales/fr.js +36 -0
  2542. package/lib/translated/vi/modules/translations/locales/fr_CA.js +36 -0
  2543. package/lib/translated/vi/modules/translations/locales/ht.js +36 -0
  2544. package/lib/translated/vi/modules/translations/locales/is.js +36 -0
  2545. package/lib/translated/vi/modules/translations/locales/it.js +36 -0
  2546. package/lib/translated/vi/modules/translations/locales/ja.js +36 -0
  2547. package/lib/translated/vi/modules/translations/locales/mi.js +36 -0
  2548. package/lib/translated/vi/modules/translations/locales/nb-x-k12.js +36 -0
  2549. package/lib/translated/vi/modules/translations/locales/nb.js +36 -0
  2550. package/lib/translated/vi/modules/translations/locales/nl.js +36 -0
  2551. package/lib/translated/vi/modules/translations/locales/pl.js +36 -0
  2552. package/lib/translated/vi/modules/translations/locales/pt.js +36 -0
  2553. package/lib/translated/vi/modules/translations/locales/pt_BR.js +36 -0
  2554. package/lib/translated/vi/modules/translations/locales/sl.js +36 -0
  2555. package/lib/translated/vi/modules/translations/locales/sv-x-k12.js +36 -0
  2556. package/lib/translated/vi/modules/translations/locales/zh-Hans.js +36 -0
  2557. package/lib/translated/vi/modules/translations/locales/zh-Hant.js +36 -0
  2558. package/lib/translated/vi/modules/translations/locales/zh.js +36 -0
  2559. package/lib/translated/vi/modules/translations/locales/zh_HK.js +36 -0
  2560. package/lib/translated/vi_VN/modules/common/fileUrl.js +4 -3
  2561. package/lib/translated/vi_VN/modules/enhance-user-content/__tests__/enhance_user_content.test.js +55 -1
  2562. package/lib/translated/vi_VN/modules/enhance-user-content/doc_previews.js +1 -1
  2563. package/lib/translated/vi_VN/modules/enhance-user-content/enhance_user_content.js +26 -9
  2564. package/lib/translated/vi_VN/modules/enhance-user-content/instructure_helper.js +12 -3
  2565. package/lib/translated/vi_VN/modules/rce/__tests__/contentInsertion.test.js +1 -1
  2566. package/lib/translated/vi_VN/modules/rce/__tests__/contentRendering.test.js +10 -0
  2567. package/lib/translated/vi_VN/modules/rce/contentRendering.js +2 -2
  2568. package/lib/translated/vi_VN/modules/rce/plugins/instructure_icon_maker/components/CreateIconMakerForm/Header.js +1 -0
  2569. package/lib/translated/vi_VN/modules/rce/plugins/instructure_wordcount/components/WordCountModal.js +2 -1
  2570. package/lib/translated/vi_VN/modules/rce/plugins/instructure_wordcount/utils/__tests__/countContent.test.js +2 -2
  2571. package/lib/translated/vi_VN/modules/rce/plugins/instructure_wordcount/utils/countContent.js +3 -3
  2572. package/lib/translated/vi_VN/modules/rce/plugins/shared/CanvasContentTray.js +22 -23
  2573. package/lib/translated/vi_VN/modules/rce/plugins/shared/RceFileBrowser.js +13 -5
  2574. package/lib/translated/vi_VN/modules/rcs/api.js +3 -2
  2575. package/lib/translated/vi_VN/modules/sidebar/store/initialState.js +4 -2
  2576. package/lib/translated/vi_VN/modules/translations/locales/ar.js +36 -0
  2577. package/lib/translated/vi_VN/modules/translations/locales/ca.js +36 -0
  2578. package/lib/translated/vi_VN/modules/translations/locales/cy.js +36 -0
  2579. package/lib/translated/vi_VN/modules/translations/locales/da-x-k12.js +36 -0
  2580. package/lib/translated/vi_VN/modules/translations/locales/da.js +36 -0
  2581. package/lib/translated/vi_VN/modules/translations/locales/de.js +36 -0
  2582. package/lib/translated/vi_VN/modules/translations/locales/en-AU-x-unimelb.js +36 -0
  2583. package/lib/translated/vi_VN/modules/translations/locales/en-GB-x-ukhe.js +36 -0
  2584. package/lib/translated/vi_VN/modules/translations/locales/en_AU.js +36 -0
  2585. package/lib/translated/vi_VN/modules/translations/locales/en_CA.js +36 -0
  2586. package/lib/translated/vi_VN/modules/translations/locales/en_CY.js +36 -0
  2587. package/lib/translated/vi_VN/modules/translations/locales/en_GB.js +36 -0
  2588. package/lib/translated/vi_VN/modules/translations/locales/es.js +36 -0
  2589. package/lib/translated/vi_VN/modules/translations/locales/es_ES.js +36 -0
  2590. package/lib/translated/vi_VN/modules/translations/locales/fi.js +36 -0
  2591. package/lib/translated/vi_VN/modules/translations/locales/fr.js +36 -0
  2592. package/lib/translated/vi_VN/modules/translations/locales/fr_CA.js +36 -0
  2593. package/lib/translated/vi_VN/modules/translations/locales/ht.js +36 -0
  2594. package/lib/translated/vi_VN/modules/translations/locales/is.js +36 -0
  2595. package/lib/translated/vi_VN/modules/translations/locales/it.js +36 -0
  2596. package/lib/translated/vi_VN/modules/translations/locales/ja.js +36 -0
  2597. package/lib/translated/vi_VN/modules/translations/locales/mi.js +36 -0
  2598. package/lib/translated/vi_VN/modules/translations/locales/nb-x-k12.js +36 -0
  2599. package/lib/translated/vi_VN/modules/translations/locales/nb.js +36 -0
  2600. package/lib/translated/vi_VN/modules/translations/locales/nl.js +36 -0
  2601. package/lib/translated/vi_VN/modules/translations/locales/pl.js +36 -0
  2602. package/lib/translated/vi_VN/modules/translations/locales/pt.js +36 -0
  2603. package/lib/translated/vi_VN/modules/translations/locales/pt_BR.js +36 -0
  2604. package/lib/translated/vi_VN/modules/translations/locales/sl.js +36 -0
  2605. package/lib/translated/vi_VN/modules/translations/locales/sv-x-k12.js +36 -0
  2606. package/lib/translated/vi_VN/modules/translations/locales/zh-Hans.js +36 -0
  2607. package/lib/translated/vi_VN/modules/translations/locales/zh-Hant.js +36 -0
  2608. package/lib/translated/vi_VN/modules/translations/locales/zh.js +36 -0
  2609. package/lib/translated/vi_VN/modules/translations/locales/zh_HK.js +36 -0
  2610. package/lib/translated/zh/modules/common/fileUrl.js +4 -3
  2611. package/lib/translated/zh/modules/enhance-user-content/__tests__/enhance_user_content.test.js +55 -1
  2612. package/lib/translated/zh/modules/enhance-user-content/doc_previews.js +3 -3
  2613. package/lib/translated/zh/modules/enhance-user-content/enhance_user_content.js +30 -13
  2614. package/lib/translated/zh/modules/enhance-user-content/instructure_helper.js +14 -5
  2615. package/lib/translated/zh/modules/enhance-user-content/media_comment_thumbnail.js +2 -2
  2616. package/lib/translated/zh/modules/rce/StatusBar.js +1 -1
  2617. package/lib/translated/zh/modules/rce/__tests__/contentInsertion.test.js +1 -1
  2618. package/lib/translated/zh/modules/rce/__tests__/contentRendering.test.js +10 -0
  2619. package/lib/translated/zh/modules/rce/contentRendering.js +2 -2
  2620. package/lib/translated/zh/modules/rce/plugins/instructure_icon_maker/components/CreateIconMakerForm/Header.js +1 -0
  2621. package/lib/translated/zh/modules/rce/plugins/instructure_wordcount/components/WordCountModal.js +2 -1
  2622. package/lib/translated/zh/modules/rce/plugins/instructure_wordcount/utils/__tests__/countContent.test.js +2 -2
  2623. package/lib/translated/zh/modules/rce/plugins/instructure_wordcount/utils/countContent.js +3 -3
  2624. package/lib/translated/zh/modules/rce/plugins/shared/CanvasContentTray.js +22 -23
  2625. package/lib/translated/zh/modules/rce/plugins/shared/RceFileBrowser.js +13 -5
  2626. package/lib/translated/zh/modules/rcs/api.js +3 -2
  2627. package/lib/translated/zh/modules/sidebar/store/initialState.js +4 -2
  2628. package/lib/translated/zh/modules/translations/locales/ar.js +36 -0
  2629. package/lib/translated/zh/modules/translations/locales/ca.js +36 -0
  2630. package/lib/translated/zh/modules/translations/locales/cy.js +36 -0
  2631. package/lib/translated/zh/modules/translations/locales/da-x-k12.js +36 -0
  2632. package/lib/translated/zh/modules/translations/locales/da.js +36 -0
  2633. package/lib/translated/zh/modules/translations/locales/de.js +36 -0
  2634. package/lib/translated/zh/modules/translations/locales/en-AU-x-unimelb.js +36 -0
  2635. package/lib/translated/zh/modules/translations/locales/en-GB-x-ukhe.js +36 -0
  2636. package/lib/translated/zh/modules/translations/locales/en_AU.js +36 -0
  2637. package/lib/translated/zh/modules/translations/locales/en_CA.js +36 -0
  2638. package/lib/translated/zh/modules/translations/locales/en_CY.js +36 -0
  2639. package/lib/translated/zh/modules/translations/locales/en_GB.js +36 -0
  2640. package/lib/translated/zh/modules/translations/locales/es.js +36 -0
  2641. package/lib/translated/zh/modules/translations/locales/es_ES.js +36 -0
  2642. package/lib/translated/zh/modules/translations/locales/fi.js +36 -0
  2643. package/lib/translated/zh/modules/translations/locales/fr.js +36 -0
  2644. package/lib/translated/zh/modules/translations/locales/fr_CA.js +36 -0
  2645. package/lib/translated/zh/modules/translations/locales/ht.js +36 -0
  2646. package/lib/translated/zh/modules/translations/locales/is.js +36 -0
  2647. package/lib/translated/zh/modules/translations/locales/it.js +36 -0
  2648. package/lib/translated/zh/modules/translations/locales/ja.js +36 -0
  2649. package/lib/translated/zh/modules/translations/locales/mi.js +36 -0
  2650. package/lib/translated/zh/modules/translations/locales/nb-x-k12.js +36 -0
  2651. package/lib/translated/zh/modules/translations/locales/nb.js +36 -0
  2652. package/lib/translated/zh/modules/translations/locales/nl.js +36 -0
  2653. package/lib/translated/zh/modules/translations/locales/pl.js +36 -0
  2654. package/lib/translated/zh/modules/translations/locales/pt.js +36 -0
  2655. package/lib/translated/zh/modules/translations/locales/pt_BR.js +36 -0
  2656. package/lib/translated/zh/modules/translations/locales/sl.js +36 -0
  2657. package/lib/translated/zh/modules/translations/locales/sv-x-k12.js +36 -0
  2658. package/lib/translated/zh/modules/translations/locales/zh-Hans.js +36 -0
  2659. package/lib/translated/zh/modules/translations/locales/zh-Hant.js +36 -0
  2660. package/lib/translated/zh/modules/translations/locales/zh.js +36 -0
  2661. package/lib/translated/zh/modules/translations/locales/zh_HK.js +36 -0
  2662. package/lib/translated/zh-Hans/modules/common/fileUrl.js +4 -3
  2663. package/lib/translated/zh-Hans/modules/enhance-user-content/__tests__/enhance_user_content.test.js +55 -1
  2664. package/lib/translated/zh-Hans/modules/enhance-user-content/doc_previews.js +3 -3
  2665. package/lib/translated/zh-Hans/modules/enhance-user-content/enhance_user_content.js +30 -13
  2666. package/lib/translated/zh-Hans/modules/enhance-user-content/instructure_helper.js +14 -5
  2667. package/lib/translated/zh-Hans/modules/enhance-user-content/media_comment_thumbnail.js +2 -2
  2668. package/lib/translated/zh-Hans/modules/rce/StatusBar.js +1 -1
  2669. package/lib/translated/zh-Hans/modules/rce/__tests__/contentInsertion.test.js +1 -1
  2670. package/lib/translated/zh-Hans/modules/rce/__tests__/contentRendering.test.js +10 -0
  2671. package/lib/translated/zh-Hans/modules/rce/contentRendering.js +2 -2
  2672. package/lib/translated/zh-Hans/modules/rce/plugins/instructure_icon_maker/components/CreateIconMakerForm/Header.js +1 -0
  2673. package/lib/translated/zh-Hans/modules/rce/plugins/instructure_wordcount/components/WordCountModal.js +2 -1
  2674. package/lib/translated/zh-Hans/modules/rce/plugins/instructure_wordcount/utils/__tests__/countContent.test.js +2 -2
  2675. package/lib/translated/zh-Hans/modules/rce/plugins/instructure_wordcount/utils/countContent.js +3 -3
  2676. package/lib/translated/zh-Hans/modules/rce/plugins/shared/CanvasContentTray.js +22 -23
  2677. package/lib/translated/zh-Hans/modules/rce/plugins/shared/RceFileBrowser.js +13 -5
  2678. package/lib/translated/zh-Hans/modules/rcs/api.js +3 -2
  2679. package/lib/translated/zh-Hans/modules/sidebar/store/initialState.js +4 -2
  2680. package/lib/translated/zh-Hans/modules/translations/locales/ar.js +36 -0
  2681. package/lib/translated/zh-Hans/modules/translations/locales/ca.js +36 -0
  2682. package/lib/translated/zh-Hans/modules/translations/locales/cy.js +36 -0
  2683. package/lib/translated/zh-Hans/modules/translations/locales/da-x-k12.js +36 -0
  2684. package/lib/translated/zh-Hans/modules/translations/locales/da.js +36 -0
  2685. package/lib/translated/zh-Hans/modules/translations/locales/de.js +36 -0
  2686. package/lib/translated/zh-Hans/modules/translations/locales/en-AU-x-unimelb.js +36 -0
  2687. package/lib/translated/zh-Hans/modules/translations/locales/en-GB-x-ukhe.js +36 -0
  2688. package/lib/translated/zh-Hans/modules/translations/locales/en_AU.js +36 -0
  2689. package/lib/translated/zh-Hans/modules/translations/locales/en_CA.js +36 -0
  2690. package/lib/translated/zh-Hans/modules/translations/locales/en_CY.js +36 -0
  2691. package/lib/translated/zh-Hans/modules/translations/locales/en_GB.js +36 -0
  2692. package/lib/translated/zh-Hans/modules/translations/locales/es.js +36 -0
  2693. package/lib/translated/zh-Hans/modules/translations/locales/es_ES.js +36 -0
  2694. package/lib/translated/zh-Hans/modules/translations/locales/fi.js +36 -0
  2695. package/lib/translated/zh-Hans/modules/translations/locales/fr.js +36 -0
  2696. package/lib/translated/zh-Hans/modules/translations/locales/fr_CA.js +36 -0
  2697. package/lib/translated/zh-Hans/modules/translations/locales/ht.js +36 -0
  2698. package/lib/translated/zh-Hans/modules/translations/locales/is.js +36 -0
  2699. package/lib/translated/zh-Hans/modules/translations/locales/it.js +36 -0
  2700. package/lib/translated/zh-Hans/modules/translations/locales/ja.js +36 -0
  2701. package/lib/translated/zh-Hans/modules/translations/locales/mi.js +36 -0
  2702. package/lib/translated/zh-Hans/modules/translations/locales/nb-x-k12.js +36 -0
  2703. package/lib/translated/zh-Hans/modules/translations/locales/nb.js +36 -0
  2704. package/lib/translated/zh-Hans/modules/translations/locales/nl.js +36 -0
  2705. package/lib/translated/zh-Hans/modules/translations/locales/pl.js +36 -0
  2706. package/lib/translated/zh-Hans/modules/translations/locales/pt.js +36 -0
  2707. package/lib/translated/zh-Hans/modules/translations/locales/pt_BR.js +36 -0
  2708. package/lib/translated/zh-Hans/modules/translations/locales/sl.js +36 -0
  2709. package/lib/translated/zh-Hans/modules/translations/locales/sv-x-k12.js +36 -0
  2710. package/lib/translated/zh-Hans/modules/translations/locales/zh-Hans.js +36 -0
  2711. package/lib/translated/zh-Hans/modules/translations/locales/zh-Hant.js +36 -0
  2712. package/lib/translated/zh-Hans/modules/translations/locales/zh.js +36 -0
  2713. package/lib/translated/zh-Hans/modules/translations/locales/zh_HK.js +36 -0
  2714. package/lib/translated/zh-Hant/modules/common/fileUrl.js +4 -3
  2715. package/lib/translated/zh-Hant/modules/enhance-user-content/__tests__/enhance_user_content.test.js +55 -1
  2716. package/lib/translated/zh-Hant/modules/enhance-user-content/doc_previews.js +3 -3
  2717. package/lib/translated/zh-Hant/modules/enhance-user-content/enhance_user_content.js +30 -13
  2718. package/lib/translated/zh-Hant/modules/enhance-user-content/instructure_helper.js +14 -5
  2719. package/lib/translated/zh-Hant/modules/enhance-user-content/media_comment_thumbnail.js +2 -2
  2720. package/lib/translated/zh-Hant/modules/rce/StatusBar.js +1 -1
  2721. package/lib/translated/zh-Hant/modules/rce/__tests__/contentInsertion.test.js +1 -1
  2722. package/lib/translated/zh-Hant/modules/rce/__tests__/contentRendering.test.js +10 -0
  2723. package/lib/translated/zh-Hant/modules/rce/contentRendering.js +2 -2
  2724. package/lib/translated/zh-Hant/modules/rce/plugins/instructure_icon_maker/components/CreateIconMakerForm/Header.js +1 -0
  2725. package/lib/translated/zh-Hant/modules/rce/plugins/instructure_wordcount/components/WordCountModal.js +2 -1
  2726. package/lib/translated/zh-Hant/modules/rce/plugins/instructure_wordcount/utils/__tests__/countContent.test.js +2 -2
  2727. package/lib/translated/zh-Hant/modules/rce/plugins/instructure_wordcount/utils/countContent.js +3 -3
  2728. package/lib/translated/zh-Hant/modules/rce/plugins/shared/CanvasContentTray.js +22 -23
  2729. package/lib/translated/zh-Hant/modules/rce/plugins/shared/RceFileBrowser.js +13 -5
  2730. package/lib/translated/zh-Hant/modules/rcs/api.js +3 -2
  2731. package/lib/translated/zh-Hant/modules/sidebar/store/initialState.js +4 -2
  2732. package/lib/translated/zh-Hant/modules/translations/locales/ar.js +36 -0
  2733. package/lib/translated/zh-Hant/modules/translations/locales/ca.js +36 -0
  2734. package/lib/translated/zh-Hant/modules/translations/locales/cy.js +36 -0
  2735. package/lib/translated/zh-Hant/modules/translations/locales/da-x-k12.js +36 -0
  2736. package/lib/translated/zh-Hant/modules/translations/locales/da.js +36 -0
  2737. package/lib/translated/zh-Hant/modules/translations/locales/de.js +36 -0
  2738. package/lib/translated/zh-Hant/modules/translations/locales/en-AU-x-unimelb.js +36 -0
  2739. package/lib/translated/zh-Hant/modules/translations/locales/en-GB-x-ukhe.js +36 -0
  2740. package/lib/translated/zh-Hant/modules/translations/locales/en_AU.js +36 -0
  2741. package/lib/translated/zh-Hant/modules/translations/locales/en_CA.js +36 -0
  2742. package/lib/translated/zh-Hant/modules/translations/locales/en_CY.js +36 -0
  2743. package/lib/translated/zh-Hant/modules/translations/locales/en_GB.js +36 -0
  2744. package/lib/translated/zh-Hant/modules/translations/locales/es.js +36 -0
  2745. package/lib/translated/zh-Hant/modules/translations/locales/es_ES.js +36 -0
  2746. package/lib/translated/zh-Hant/modules/translations/locales/fi.js +36 -0
  2747. package/lib/translated/zh-Hant/modules/translations/locales/fr.js +36 -0
  2748. package/lib/translated/zh-Hant/modules/translations/locales/fr_CA.js +36 -0
  2749. package/lib/translated/zh-Hant/modules/translations/locales/ht.js +36 -0
  2750. package/lib/translated/zh-Hant/modules/translations/locales/is.js +36 -0
  2751. package/lib/translated/zh-Hant/modules/translations/locales/it.js +36 -0
  2752. package/lib/translated/zh-Hant/modules/translations/locales/ja.js +36 -0
  2753. package/lib/translated/zh-Hant/modules/translations/locales/mi.js +36 -0
  2754. package/lib/translated/zh-Hant/modules/translations/locales/nb-x-k12.js +36 -0
  2755. package/lib/translated/zh-Hant/modules/translations/locales/nb.js +36 -0
  2756. package/lib/translated/zh-Hant/modules/translations/locales/nl.js +36 -0
  2757. package/lib/translated/zh-Hant/modules/translations/locales/pl.js +36 -0
  2758. package/lib/translated/zh-Hant/modules/translations/locales/pt.js +36 -0
  2759. package/lib/translated/zh-Hant/modules/translations/locales/pt_BR.js +36 -0
  2760. package/lib/translated/zh-Hant/modules/translations/locales/sl.js +36 -0
  2761. package/lib/translated/zh-Hant/modules/translations/locales/sv-x-k12.js +36 -0
  2762. package/lib/translated/zh-Hant/modules/translations/locales/zh-Hans.js +36 -0
  2763. package/lib/translated/zh-Hant/modules/translations/locales/zh-Hant.js +36 -0
  2764. package/lib/translated/zh-Hant/modules/translations/locales/zh.js +36 -0
  2765. package/lib/translated/zh-Hant/modules/translations/locales/zh_HK.js +36 -0
  2766. package/lib/translated/zh_HK/modules/common/fileUrl.js +4 -3
  2767. package/lib/translated/zh_HK/modules/enhance-user-content/__tests__/enhance_user_content.test.js +55 -1
  2768. package/lib/translated/zh_HK/modules/enhance-user-content/doc_previews.js +3 -3
  2769. package/lib/translated/zh_HK/modules/enhance-user-content/enhance_user_content.js +30 -13
  2770. package/lib/translated/zh_HK/modules/enhance-user-content/instructure_helper.js +14 -5
  2771. package/lib/translated/zh_HK/modules/enhance-user-content/media_comment_thumbnail.js +2 -2
  2772. package/lib/translated/zh_HK/modules/rce/StatusBar.js +1 -1
  2773. package/lib/translated/zh_HK/modules/rce/__tests__/contentInsertion.test.js +1 -1
  2774. package/lib/translated/zh_HK/modules/rce/__tests__/contentRendering.test.js +10 -0
  2775. package/lib/translated/zh_HK/modules/rce/contentRendering.js +2 -2
  2776. package/lib/translated/zh_HK/modules/rce/plugins/instructure_icon_maker/components/CreateIconMakerForm/Header.js +1 -0
  2777. package/lib/translated/zh_HK/modules/rce/plugins/instructure_wordcount/components/WordCountModal.js +2 -1
  2778. package/lib/translated/zh_HK/modules/rce/plugins/instructure_wordcount/utils/__tests__/countContent.test.js +2 -2
  2779. package/lib/translated/zh_HK/modules/rce/plugins/instructure_wordcount/utils/countContent.js +3 -3
  2780. package/lib/translated/zh_HK/modules/rce/plugins/shared/CanvasContentTray.js +22 -23
  2781. package/lib/translated/zh_HK/modules/rce/plugins/shared/RceFileBrowser.js +13 -5
  2782. package/lib/translated/zh_HK/modules/rcs/api.js +3 -2
  2783. package/lib/translated/zh_HK/modules/sidebar/store/initialState.js +4 -2
  2784. package/lib/translated/zh_HK/modules/translations/locales/ar.js +36 -0
  2785. package/lib/translated/zh_HK/modules/translations/locales/ca.js +36 -0
  2786. package/lib/translated/zh_HK/modules/translations/locales/cy.js +36 -0
  2787. package/lib/translated/zh_HK/modules/translations/locales/da-x-k12.js +36 -0
  2788. package/lib/translated/zh_HK/modules/translations/locales/da.js +36 -0
  2789. package/lib/translated/zh_HK/modules/translations/locales/de.js +36 -0
  2790. package/lib/translated/zh_HK/modules/translations/locales/en-AU-x-unimelb.js +36 -0
  2791. package/lib/translated/zh_HK/modules/translations/locales/en-GB-x-ukhe.js +36 -0
  2792. package/lib/translated/zh_HK/modules/translations/locales/en_AU.js +36 -0
  2793. package/lib/translated/zh_HK/modules/translations/locales/en_CA.js +36 -0
  2794. package/lib/translated/zh_HK/modules/translations/locales/en_CY.js +36 -0
  2795. package/lib/translated/zh_HK/modules/translations/locales/en_GB.js +36 -0
  2796. package/lib/translated/zh_HK/modules/translations/locales/es.js +36 -0
  2797. package/lib/translated/zh_HK/modules/translations/locales/es_ES.js +36 -0
  2798. package/lib/translated/zh_HK/modules/translations/locales/fi.js +36 -0
  2799. package/lib/translated/zh_HK/modules/translations/locales/fr.js +36 -0
  2800. package/lib/translated/zh_HK/modules/translations/locales/fr_CA.js +36 -0
  2801. package/lib/translated/zh_HK/modules/translations/locales/ht.js +36 -0
  2802. package/lib/translated/zh_HK/modules/translations/locales/is.js +36 -0
  2803. package/lib/translated/zh_HK/modules/translations/locales/it.js +36 -0
  2804. package/lib/translated/zh_HK/modules/translations/locales/ja.js +36 -0
  2805. package/lib/translated/zh_HK/modules/translations/locales/mi.js +36 -0
  2806. package/lib/translated/zh_HK/modules/translations/locales/nb-x-k12.js +36 -0
  2807. package/lib/translated/zh_HK/modules/translations/locales/nb.js +36 -0
  2808. package/lib/translated/zh_HK/modules/translations/locales/nl.js +36 -0
  2809. package/lib/translated/zh_HK/modules/translations/locales/pl.js +36 -0
  2810. package/lib/translated/zh_HK/modules/translations/locales/pt.js +36 -0
  2811. package/lib/translated/zh_HK/modules/translations/locales/pt_BR.js +36 -0
  2812. package/lib/translated/zh_HK/modules/translations/locales/sl.js +36 -0
  2813. package/lib/translated/zh_HK/modules/translations/locales/sv-x-k12.js +36 -0
  2814. package/lib/translated/zh_HK/modules/translations/locales/zh-Hans.js +36 -0
  2815. package/lib/translated/zh_HK/modules/translations/locales/zh-Hant.js +36 -0
  2816. package/lib/translated/zh_HK/modules/translations/locales/zh.js +36 -0
  2817. package/lib/translated/zh_HK/modules/translations/locales/zh_HK.js +36 -0
  2818. package/lib/translations/locales/ar.js +36 -0
  2819. package/lib/translations/locales/ca.js +36 -0
  2820. package/lib/translations/locales/cy.js +36 -0
  2821. package/lib/translations/locales/da-x-k12.js +36 -0
  2822. package/lib/translations/locales/da.js +36 -0
  2823. package/lib/translations/locales/de.js +36 -0
  2824. package/lib/translations/locales/en-AU-x-unimelb.js +36 -0
  2825. package/lib/translations/locales/en-GB-x-ukhe.js +36 -0
  2826. package/lib/translations/locales/en_AU.js +36 -0
  2827. package/lib/translations/locales/en_CA.js +36 -0
  2828. package/lib/translations/locales/en_CY.js +36 -0
  2829. package/lib/translations/locales/en_GB.js +36 -0
  2830. package/lib/translations/locales/es.js +36 -0
  2831. package/lib/translations/locales/es_ES.js +36 -0
  2832. package/lib/translations/locales/fi.js +36 -0
  2833. package/lib/translations/locales/fr.js +36 -0
  2834. package/lib/translations/locales/fr_CA.js +36 -0
  2835. package/lib/translations/locales/ht.js +36 -0
  2836. package/lib/translations/locales/is.js +36 -0
  2837. package/lib/translations/locales/it.js +36 -0
  2838. package/lib/translations/locales/ja.js +36 -0
  2839. package/lib/translations/locales/mi.js +36 -0
  2840. package/lib/translations/locales/nb-x-k12.js +36 -0
  2841. package/lib/translations/locales/nb.js +36 -0
  2842. package/lib/translations/locales/nl.js +36 -0
  2843. package/lib/translations/locales/pl.js +36 -0
  2844. package/lib/translations/locales/pt.js +36 -0
  2845. package/lib/translations/locales/pt_BR.js +36 -0
  2846. package/lib/translations/locales/sl.js +36 -0
  2847. package/lib/translations/locales/sv-x-k12.js +36 -0
  2848. package/lib/translations/locales/zh-Hans.js +36 -0
  2849. package/lib/translations/locales/zh-Hant.js +36 -0
  2850. package/lib/translations/locales/zh.js +36 -0
  2851. package/lib/translations/locales/zh_HK.js +36 -0
  2852. package/package.json +2 -2
  2853. package/testcafe/build/100.js +1 -1
  2854. package/testcafe/build/101.js +1 -1
  2855. package/testcafe/build/102.js +1 -1
  2856. package/testcafe/build/103.js +1 -1
  2857. package/testcafe/build/22.js +1 -1
  2858. package/testcafe/build/36.js +1 -1
  2859. package/testcafe/build/39.js +1 -1
  2860. package/testcafe/build/40.js +1 -1
  2861. package/testcafe/build/41.js +1 -1
  2862. package/testcafe/build/42.js +1 -1
  2863. package/testcafe/build/44.js +1 -1
  2864. package/testcafe/build/45.js +1 -1
  2865. package/testcafe/build/46.js +1 -1
  2866. package/testcafe/build/47.js +1 -1
  2867. package/testcafe/build/49.js +1 -1
  2868. package/testcafe/build/53.js +1 -1
  2869. package/testcafe/build/54.js +1 -1
  2870. package/testcafe/build/56.js +1 -1
  2871. package/testcafe/build/57.js +1 -1
  2872. package/testcafe/build/58.js +1 -1
  2873. package/testcafe/build/59.js +1 -1
  2874. package/testcafe/build/61.js +1 -1
  2875. package/testcafe/build/74.js +1 -1
  2876. package/testcafe/build/77.js +1 -1
  2877. package/testcafe/build/78.js +1 -1
  2878. package/testcafe/build/80.js +1 -1
  2879. package/testcafe/build/81.js +1 -1
  2880. package/testcafe/build/82.js +1 -1
  2881. package/testcafe/build/83.js +1 -1
  2882. package/testcafe/build/85.js +1 -1
  2883. package/testcafe/build/86.js +1 -1
  2884. package/testcafe/build/87.js +1 -1
  2885. package/testcafe/build/88.js +1 -1
  2886. package/testcafe/build/89.js +1 -1
  2887. package/testcafe/build/90.js +1 -1
  2888. package/testcafe/build/91.js +1 -1
  2889. package/testcafe/build/94.js +1 -1
  2890. package/testcafe/build/testcafe.js +10 -10
  2891. package/es/rce/plugins/instructure_icon_maker/components/CreateIconMakerForm/ImageSection/__tests__/ImageOptions.test.js +0 -282
  2892. package/es/rce/plugins/instructure_icon_maker/components/CreateIconMakerForm/ImageSection/__tests__/ImageSection.test.js +0 -590
  2893. package/es/rce/plugins/instructure_icon_maker/components/CreateIconMakerForm/ImageSection/__tests__/ModeSelect.test.js +0 -98
  2894. package/es/rce/plugins/instructure_icon_maker/components/CreateIconMakerForm/ImageSection/__tests__/SVGIcon.test.js +0 -53
  2895. package/es/rce/plugins/instructure_icon_maker/components/CreateIconMakerForm/ImageSection/__tests__/SVGList.test.js +0 -72
  2896. package/es/rce/plugins/instructure_icon_maker/components/CreateIconMakerForm/ImageSection/__tests__/Upload.test.js +0 -186
  2897. package/es/rce/plugins/instructure_icon_maker/components/CreateIconMakerForm/ImageSection/__tests__/compressionUtils.test.js +0 -114
  2898. package/es/rce/plugins/instructure_icon_maker/components/CreateIconMakerForm/ImageSection/__tests__/utils.test.js +0 -75
  2899. package/es/rce/plugins/instructure_icon_maker/components/CreateIconMakerForm/__tests__/ColorSection.test.js +0 -87
  2900. package/es/rce/plugins/instructure_icon_maker/components/CreateIconMakerForm/__tests__/Footer.test.js +0 -127
  2901. package/es/rce/plugins/instructure_icon_maker/components/CreateIconMakerForm/__tests__/Header.test.js +0 -108
  2902. package/es/rce/plugins/instructure_icon_maker/components/CreateIconMakerForm/__tests__/PreviewSection.test.js +0 -101
  2903. package/es/rce/plugins/instructure_icon_maker/components/CreateIconMakerForm/__tests__/ShapeSection.test.js +0 -103
  2904. package/es/rce/plugins/instructure_icon_maker/components/CreateIconMakerForm/__tests__/TextSection.test.js +0 -150
  2905. package/es/rce/plugins/instructure_icon_maker/components/__tests__/IconMakerTray.test.js +0 -630
  2906. package/es/rce/plugins/instructure_icon_maker/components/__tests__/SavedIconMakerList.test.js +0 -190
  2907. package/es/rce/plugins/instructure_icon_maker/reducers/__tests__/ImageSection.test.js +0 -92
  2908. package/es/rce/plugins/instructure_icon_maker/reducers/__tests__/imageCropper.test.js +0 -63
  2909. package/es/rce/plugins/instructure_icon_maker/reducers/__tests__/svgSettings.test.js +0 -108
  2910. package/es/rce/plugins/instructure_icon_maker/svg/__tests__/image.test.js +0 -584
  2911. package/es/rce/plugins/instructure_icon_maker/svg/__tests__/index.test.js +0 -407
  2912. package/es/rce/plugins/instructure_icon_maker/svg/__tests__/metadata.test.js +0 -48
  2913. package/es/rce/plugins/instructure_icon_maker/svg/__tests__/settings.test.js +0 -619
  2914. package/es/rce/plugins/instructure_icon_maker/svg/__tests__/shape.test.js +0 -406
  2915. package/es/rce/plugins/instructure_icon_maker/svg/__tests__/text.test.js +0 -560
  2916. package/es/rce/plugins/instructure_icon_maker/svg/__tests__/utils.test.js +0 -101
  2917. package/es/rce/plugins/instructure_icon_maker/utils/__tests__/IconMakerFormHasChanges.test.js +0 -328
  2918. package/es/rce/plugins/instructure_icon_maker/utils/__tests__/addIconMakerAttributes.test.js +0 -38
  2919. package/es/rce/plugins/instructure_icon_maker/utils/__tests__/iconValidation.test.js +0 -86
  2920. package/es/rce/plugins/instructure_icon_maker/utils/__tests__/round.test.js +0 -31
  2921. package/es/rce/plugins/instructure_icon_maker/utils/__tests__/useDebouncedValue.test.js +0 -95
  2922. package/es/rce/plugins/instructure_icon_maker/utils/__tests__/useMockedDebouncedValue.js +0 -35
  2923. package/es/rce/plugins/instructure_image/ImageList/__tests__/Image.test.js +0 -144
  2924. package/es/rce/plugins/instructure_image/ImageList/__tests__/ImageList.test.js +0 -74
  2925. package/es/rce/plugins/instructure_image/ImageOptionsTray/__tests__/ImageOptionsTray.test.js +0 -325
  2926. package/es/rce/plugins/instructure_image/ImageOptionsTray/__tests__/ImageOptionsTrayDriver.js +0 -158
  2927. package/es/rce/plugins/instructure_image/ImageOptionsTray/__tests__/TrayController.IconOptions.test.js +0 -161
  2928. package/es/rce/plugins/instructure_image/ImageOptionsTray/__tests__/TrayController.test.js +0 -205
  2929. package/es/rce/plugins/instructure_image/Images/__tests__/Images.test.js +0 -215
  2930. package/es/rce/plugins/instructure_image/__tests__/ImageEmbedOptions.test.js +0 -540
  2931. package/es/rce/plugins/instructure_image/__tests__/clickCallback.test.js +0 -83
  2932. package/es/rce/plugins/instructure_links/components/LinkOptionsDialog/__tests__/LinkOptionsDialog.test.js +0 -144
  2933. package/es/rce/plugins/instructure_links/components/LinkOptionsDialog/__tests__/LinkOptionsDialogController.test.js +0 -97
  2934. package/es/rce/plugins/instructure_links/components/LinkOptionsDialog/__tests__/LinkOptionsDialogDriver.js +0 -87
  2935. package/es/rce/plugins/instructure_links/components/LinkOptionsTray/__tests__/LinkOptionsTray.test.js +0 -249
  2936. package/es/rce/plugins/instructure_links/components/LinkOptionsTray/__tests__/LinkOptionsTrayController.test.js +0 -88
  2937. package/es/rce/plugins/instructure_links/components/LinkOptionsTray/__tests__/LinkOptionsTrayDriver.js +0 -132
  2938. package/es/rce/plugins/instructure_links/components/__tests__/AccordionSection.test.js +0 -62
  2939. package/es/rce/plugins/instructure_links/components/__tests__/CollectionPanel.test.js +0 -77
  2940. package/es/rce/plugins/instructure_links/components/__tests__/Link.test.js +0 -468
  2941. package/es/rce/plugins/instructure_links/components/__tests__/LinkSet.test.js +0 -183
  2942. package/es/rce/plugins/instructure_links/components/__tests__/LinksPanel.test.js +0 -113
  2943. package/es/rce/plugins/instructure_links/components/__tests__/NavigationPanel.test.js +0 -63
  2944. package/es/rce/plugins/instructure_media_embed/__tests__/clickCallback.test.js +0 -49
  2945. package/es/rce/plugins/instructure_media_embed/components/__tests__/Embed.test.js +0 -84
  2946. package/es/rce/plugins/instructure_record/AudioOptionsTray/__tests__/AudioOptionsTray.test.js +0 -64
  2947. package/es/rce/plugins/instructure_record/AudioOptionsTray/__tests__/AudioOptionsTrayDriver.js +0 -50
  2948. package/es/rce/plugins/instructure_record/AudioOptionsTray/__tests__/TrayController.test.js +0 -124
  2949. package/es/rce/plugins/instructure_record/MediaPanel/__tests__/MediaPanel.test.js +0 -181
  2950. package/es/rce/plugins/instructure_record/VideoOptionsTray/__tests__/TrayController.test.js +0 -231
  2951. package/es/rce/plugins/instructure_record/VideoOptionsTray/__tests__/VideoOptionsTray.test.js +0 -214
  2952. package/es/rce/plugins/instructure_record/VideoOptionsTray/__tests__/VideoOptionsTrayDriver.js +0 -116
  2953. package/es/rce/plugins/instructure_record/__tests__/clickCallback.test.js +0 -90
  2954. package/es/rce/plugins/instructure_wordcount/components/__tests__/WordCountModal.test.js +0 -91
  2955. package/es/rce/plugins/instructure_wordcount/utils/__tests__/countContent.test.js +0 -164
  2956. package/es/rce/plugins/instructure_wordcount/utils/__tests__/tableContent.test.js +0 -41
  2957. package/es/rce/plugins/shared/DimensionsInput/__tests__/DimensionsInput.test.js +0 -1152
  2958. package/es/rce/plugins/shared/DimensionsInput/__tests__/DimensionsInputDriver.js +0 -76
  2959. package/es/rce/plugins/shared/DimensionsInput/__tests__/NumberInputDriver.js +0 -77
  2960. package/es/rce/plugins/shared/Upload/__tests__/CategoryProcessor.test.js +0 -65
  2961. package/es/rce/plugins/shared/Upload/__tests__/ComputerPanel.test.js +0 -283
  2962. package/es/rce/plugins/shared/Upload/__tests__/SvgCategoryProcessor.test.js +0 -71
  2963. package/es/rce/plugins/shared/Upload/__tests__/UnsplashPanel.test.js +0 -357
  2964. package/es/rce/plugins/shared/Upload/__tests__/UploadFile.test.js +0 -468
  2965. package/es/rce/plugins/shared/Upload/__tests__/UploadFileModal.test.js +0 -129
  2966. package/es/rce/plugins/shared/Upload/__tests__/UrlPanel.test.js +0 -37
  2967. package/es/rce/plugins/shared/__tests__/CanvasContentTray.test.js +0 -247
  2968. package/es/rce/plugins/shared/__tests__/CheckerboardStyling.test.js +0 -28
  2969. package/es/rce/plugins/shared/__tests__/ColorInput.test.js +0 -94
  2970. package/es/rce/plugins/shared/__tests__/ConditionalTooltip.test.js +0 -79
  2971. package/es/rce/plugins/shared/__tests__/ContentSelection.test.js +0 -322
  2972. package/es/rce/plugins/shared/__tests__/DimensionUtils.test.js +0 -342
  2973. package/es/rce/plugins/shared/__tests__/FakeEditor.js +0 -179
  2974. package/es/rce/plugins/shared/__tests__/Filter.test.js +0 -428
  2975. package/es/rce/plugins/shared/__tests__/FixedContentTray.test.js +0 -70
  2976. package/es/rce/plugins/shared/__tests__/LinkDisplay.test.js +0 -119
  2977. package/es/rce/plugins/shared/__tests__/PreviewIcon.test.js +0 -131
  2978. package/es/rce/plugins/shared/__tests__/RceFileBrowser.test.js +0 -113
  2979. package/es/rce/plugins/shared/__tests__/buildDownloadUrl.test.js +0 -52
  2980. package/es/rce/plugins/shared/__tests__/dateUtils.test.js +0 -122
  2981. package/es/rce/plugins/shared/__tests__/fileTypeUtils.test.js +0 -96
  2982. package/es/rce/plugins/shared/__tests__/linkUtils.test.js +0 -61
  2983. package/es/rce/plugins/shared/__tests__/trayUtils.test.js +0 -53
  2984. package/es/rce/plugins/shared/__tests__/useDataUrl.test.js +0 -110
  2985. package/es/rcs/__tests__/api.test.js +0 -164
  2986. package/es/rcs/__tests__/buildError.test.js +0 -77
@@ -17387,7 +17387,7 @@ eval("__webpack_require__.r(__webpack_exports__);\n/* harmony export (binding) *
17387
17387
  /***/ (function(module, __webpack_exports__, __webpack_require__) {
17388
17388
 
17389
17389
  "use strict";
17390
- eval("__webpack_require__.r(__webpack_exports__);\n/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, \"absoluteToRelativeUrl\", function() { return absoluteToRelativeUrl; });\n/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, \"downloadToWrap\", function() { return downloadToWrap; });\n/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, \"fixupFileUrl\", function() { return fixupFileUrl; });\n/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, \"prepEmbedSrc\", function() { return prepEmbedSrc; });\n/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, \"prepLinkedSrc\", function() { return prepLinkedSrc; });\n/* harmony import */ var _babel_runtime_corejs3_core_js_stable_instance_includes__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! @babel/runtime-corejs3/core-js-stable/instance/includes */ \"../../node_modules/@babel/runtime-corejs3/core-js-stable/instance/includes.js\");\n/* harmony import */ var _babel_runtime_corejs3_core_js_stable_instance_includes__WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(_babel_runtime_corejs3_core_js_stable_instance_includes__WEBPACK_IMPORTED_MODULE_0__);\n/* harmony import */ var url__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! url */ \"../../node_modules/url/url.js\");\n/* harmony import */ var url__WEBPACK_IMPORTED_MODULE_1___default = /*#__PURE__*/__webpack_require__.n(url__WEBPACK_IMPORTED_MODULE_1__);\n\n\n/*\n * Copyright (C) 2018 - present Instructure, Inc.\n *\n * This file is part of Canvas.\n *\n * Canvas is free software: you can redistribute it and/or modify it under\n * the terms of the GNU Affero General Public License as published by the Free\n * Software Foundation, version 3 of the License.\n *\n * Canvas is distributed in the hope that it will be useful, but WITHOUT ANY\n * WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR\n * A PARTICULAR PURPOSE. See the GNU Affero General Public License for more\n * details.\n *\n * You should have received a copy of the GNU Affero General Public License along\n * with this program. If not, see <http://www.gnu.org/licenses/>.\n */\n// I really want to use the native URL api, but it's requirement of an absolute URL\n// or a base URL makes testing difficult, esp since window.location is \"about:blank\"\n// in mocha tests.\n\n\nfunction parseCanvasUrl(url) {\n let canvasOrigin = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : window.location.origin;\n\n if (!url) {\n return null;\n }\n\n const parsed = Object(url__WEBPACK_IMPORTED_MODULE_1__[\"parse\"])(url, true);\n const canvasHost = Object(url__WEBPACK_IMPORTED_MODULE_1__[\"parse\"])(canvasOrigin, true).host;\n\n if (parsed.host && canvasHost !== parsed.host) {\n return null;\n }\n\n return parsed;\n}\n\nfunction absoluteToRelativeUrl(url, canvasOrigin) {\n const parsed = parseCanvasUrl(url, canvasOrigin);\n\n if (!parsed) {\n return url;\n }\n\n parsed.host = '';\n parsed.hostname = '';\n parsed.slashes = false;\n parsed.protocol = '';\n const newUrl = Object(url__WEBPACK_IMPORTED_MODULE_1__[\"format\"])(parsed);\n return newUrl;\n}\n\nfunction changeDownloadToWrapParams(parsedUrl) {\n delete parsedUrl.search;\n delete parsedUrl.query.download_frd;\n parsedUrl.query.wrap = '1';\n parsedUrl.pathname = parsedUrl.pathname.replace(/\\/(?:download|preview)\\/?$/, '');\n return parsedUrl;\n}\n\nfunction addContext(parsedUrl, contextType, contextId) {\n // if this is a http://canvas/files... url. change it to be contextual\n if (/^\\/files/.test(parsedUrl.pathname)) {\n const context = contextType.replace(/([^s])$/, '$1s'); // canvas contexts are plural\n\n parsedUrl.pathname = `/${context}/${contextId}${parsedUrl.pathname}`;\n }\n\n return parsedUrl;\n} // simply replaces the download_frd url param with wrap\n// wrap=1 will (often) cause the resource to be loaded\n// in an iframe on canvas' files page\n\n\nfunction downloadToWrap(url) {\n const parsed = parseCanvasUrl(url);\n\n if (!parsed) {\n return url;\n }\n\n return Object(url__WEBPACK_IMPORTED_MODULE_1__[\"format\"])(changeDownloadToWrapParams(parsed));\n} // take a url to a file (e.g. /files/17), and convert it to\n// it's in-context url (e.g. /courses/2/files/17).\n// Add wrap=1 to the url so it previews, not downloads\n// If it is a user file, add the verifier\n// NOTE: this can be removed once canvas-rce-api is updated\n// to normalize the file URLs it returns.\n\nfunction fixupFileUrl(contextType, contextId, fileInfo) {\n // it's annoying, but depending on how we got here\n // the file may have an href or a url\n const key = fileInfo.href ? 'href' : 'url';\n\n if (fileInfo[key]) {\n let parsed = parseCanvasUrl(fileInfo[key]);\n\n if (!parsed) {\n return fileInfo;\n }\n\n parsed = changeDownloadToWrapParams(parsed);\n parsed = addContext(parsed, contextType, contextId); // if this is a user file, add the verifier\n\n if (fileInfo.uuid && _babel_runtime_corejs3_core_js_stable_instance_includes__WEBPACK_IMPORTED_MODULE_0___default()(contextType).call(contextType, 'user')) {\n delete parsed.search;\n parsed.query.verifier = fileInfo.uuid;\n }\n\n fileInfo[key] = Object(url__WEBPACK_IMPORTED_MODULE_1__[\"format\"])(parsed);\n }\n\n return fileInfo;\n} // embedded resources, like an <img src=url> with /preview\n// in the url will not be logged as a view in canvas.\n// This is appropriate for images in some rce content.\n// Remove wrap=1 to indicate we want the file downloaded\n// (which is necessary to show in an <img> tag), not viewed\n\nfunction prepEmbedSrc(url) {\n const parsed = parseCanvasUrl(url);\n\n if (!parsed) {\n return url;\n }\n\n if (!/\\/preview(?:\\?|$)/.test(parsed.pathname)) {\n parsed.pathname = parsed.pathname.replace(/(?:\\/download)?\\/?(\\?|$)/, '/preview$1');\n }\n\n delete parsed.search;\n delete parsed.query.wrap;\n return Object(url__WEBPACK_IMPORTED_MODULE_1__[\"format\"])(parsed);\n} // when the user opens a link to a resource, we want its view\n// logged, so remove /preview\n// Add wrap=1 to indicate clicking on the link should open a preview\n// and not download the file (this doesn't work if the original link is a download link)\n\nfunction prepLinkedSrc(url) {\n const parsed = parseCanvasUrl(url);\n\n if (!parsed) {\n return url;\n }\n\n delete parsed.search;\n parsed.pathname = parsed.pathname.replace(/\\/preview(\\?|$)/, '$1');\n parsed.query.wrap = '1';\n return Object(url__WEBPACK_IMPORTED_MODULE_1__[\"format\"])(parsed);\n}\n\n//# sourceURL=webpack:///./src/common/fileUrl.js?");
17390
+ eval("__webpack_require__.r(__webpack_exports__);\n/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, \"absoluteToRelativeUrl\", function() { return absoluteToRelativeUrl; });\n/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, \"downloadToWrap\", function() { return downloadToWrap; });\n/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, \"fixupFileUrl\", function() { return fixupFileUrl; });\n/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, \"prepEmbedSrc\", function() { return prepEmbedSrc; });\n/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, \"prepLinkedSrc\", function() { return prepLinkedSrc; });\n/* harmony import */ var _babel_runtime_corejs3_core_js_stable_instance_includes__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! @babel/runtime-corejs3/core-js-stable/instance/includes */ \"../../node_modules/@babel/runtime-corejs3/core-js-stable/instance/includes.js\");\n/* harmony import */ var _babel_runtime_corejs3_core_js_stable_instance_includes__WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(_babel_runtime_corejs3_core_js_stable_instance_includes__WEBPACK_IMPORTED_MODULE_0__);\n/* harmony import */ var url__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! url */ \"../../node_modules/url/url.js\");\n/* harmony import */ var url__WEBPACK_IMPORTED_MODULE_1___default = /*#__PURE__*/__webpack_require__.n(url__WEBPACK_IMPORTED_MODULE_1__);\n\n\n/*\n * Copyright (C) 2018 - present Instructure, Inc.\n *\n * This file is part of Canvas.\n *\n * Canvas is free software: you can redistribute it and/or modify it under\n * the terms of the GNU Affero General Public License as published by the Free\n * Software Foundation, version 3 of the License.\n *\n * Canvas is distributed in the hope that it will be useful, but WITHOUT ANY\n * WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR\n * A PARTICULAR PURPOSE. See the GNU Affero General Public License for more\n * details.\n *\n * You should have received a copy of the GNU Affero General Public License along\n * with this program. If not, see <http://www.gnu.org/licenses/>.\n */\n// I really want to use the native URL api, but it's requirement of an absolute URL\n// or a base URL makes testing difficult, esp since window.location is \"about:blank\"\n// in mocha tests.\n\n\nfunction parseCanvasUrl(url) {\n let canvasOrigin = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : window.location.origin;\n\n if (!url) {\n return null;\n }\n\n const parsed = Object(url__WEBPACK_IMPORTED_MODULE_1__[\"parse\"])(url, true);\n const canvasHost = Object(url__WEBPACK_IMPORTED_MODULE_1__[\"parse\"])(canvasOrigin, true).host;\n\n if (parsed.host && canvasHost !== parsed.host) {\n return null;\n }\n\n return parsed;\n}\n\nfunction absoluteToRelativeUrl(url, canvasOrigin) {\n const parsed = parseCanvasUrl(url, canvasOrigin);\n\n if (!parsed) {\n return url;\n }\n\n parsed.host = '';\n parsed.hostname = '';\n parsed.slashes = false;\n parsed.protocol = '';\n const newUrl = Object(url__WEBPACK_IMPORTED_MODULE_1__[\"format\"])(parsed);\n return newUrl;\n}\n\nfunction changeDownloadToWrapParams(parsedUrl) {\n delete parsedUrl.search;\n delete parsedUrl.query.download_frd;\n parsedUrl.query.wrap = '1';\n parsedUrl.pathname = parsedUrl.pathname.replace(/\\/(?:download|preview)\\/?$/, '');\n return parsedUrl;\n}\n\nfunction addContext(parsedUrl, contextType, contextId) {\n // if this is a http://canvas/files... url. change it to be contextual\n if (/^\\/files/.test(parsedUrl.pathname)) {\n const context = contextType.replace(/([^s])$/, '$1s'); // canvas contexts are plural\n\n parsedUrl.pathname = `/${context}/${contextId}${parsedUrl.pathname}`;\n }\n\n return parsedUrl;\n} // simply replaces the download_frd url param with wrap\n// wrap=1 will (often) cause the resource to be loaded\n// in an iframe on canvas' files page\n\n\nfunction downloadToWrap(url) {\n const parsed = parseCanvasUrl(url);\n\n if (!parsed) {\n return url;\n }\n\n return Object(url__WEBPACK_IMPORTED_MODULE_1__[\"format\"])(changeDownloadToWrapParams(parsed));\n} // take a url to a file (e.g. /files/17), and convert it to\n// it's in-context url (e.g. /courses/2/files/17).\n// Add wrap=1 to the url so it previews, not downloads\n// If it is a user file, add the verifier\n// NOTE: this can be removed once canvas-rce-api is updated\n// to normalize the file URLs it returns.\n\nfunction fixupFileUrl(contextType, contextId, fileInfo, canvasOrigin) {\n // it's annoying, but depending on how we got here\n // the file may have an href or a url\n const key = fileInfo.href ? 'href' : 'url';\n\n if (fileInfo[key]) {\n let parsed = parseCanvasUrl(fileInfo[key], canvasOrigin);\n\n if (!parsed) {\n return fileInfo;\n }\n\n parsed = changeDownloadToWrapParams(parsed);\n parsed = addContext(parsed, contextType, contextId); // if this is a user file, add the verifier\n\n if (fileInfo.uuid && _babel_runtime_corejs3_core_js_stable_instance_includes__WEBPACK_IMPORTED_MODULE_0___default()(contextType).call(contextType, 'user')) {\n delete parsed.search;\n parsed.query.verifier = fileInfo.uuid;\n }\n\n fileInfo[key] = Object(url__WEBPACK_IMPORTED_MODULE_1__[\"format\"])(parsed);\n }\n\n return fileInfo;\n} // embedded resources, like an <img src=url> with /preview\n// in the url will not be logged as a view in canvas.\n// This is appropriate for images in some rce content.\n// Remove wrap=1 to indicate we want the file downloaded\n// (which is necessary to show in an <img> tag), not viewed\n\nfunction prepEmbedSrc(url) {\n let canvasOrigin = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : window.location.origin;\n const parsed = parseCanvasUrl(url, canvasOrigin);\n\n if (!parsed) {\n return url;\n }\n\n if (!/\\/preview(?:\\?|$)/.test(parsed.pathname)) {\n parsed.pathname = parsed.pathname.replace(/(?:\\/download)?\\/?(\\?|$)/, '/preview$1');\n }\n\n delete parsed.search;\n delete parsed.query.wrap;\n return Object(url__WEBPACK_IMPORTED_MODULE_1__[\"format\"])(parsed);\n} // when the user opens a link to a resource, we want its view\n// logged, so remove /preview\n// Add wrap=1 to indicate clicking on the link should open a preview\n// and not download the file (this doesn't work if the original link is a download link)\n\nfunction prepLinkedSrc(url) {\n const parsed = parseCanvasUrl(url);\n\n if (!parsed) {\n return url;\n }\n\n delete parsed.search;\n parsed.pathname = parsed.pathname.replace(/\\/preview(\\?|$)/, '$1');\n parsed.query.wrap = '1';\n return Object(url__WEBPACK_IMPORTED_MODULE_1__[\"format\"])(parsed);\n}\n\n//# sourceURL=webpack:///./src/common/fileUrl.js?");
17391
17391
 
17392
17392
  /***/ }),
17393
17393
 
@@ -17471,7 +17471,7 @@ eval("__webpack_require__.r(__webpack_exports__);\n/*\n * Copyright (C) 2021 - p
17471
17471
  /***/ (function(module, __webpack_exports__, __webpack_require__) {
17472
17472
 
17473
17473
  "use strict";
17474
- eval("__webpack_require__.r(__webpack_exports__);\n/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, \"previewableMimeTypes\", function() { return previewableMimeTypes; });\n/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, \"isPreviewable\", function() { return isPreviewable; });\n/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, \"showLoadingImage\", function() { return showLoadingImage; });\n/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, \"removeLoadingImage\", function() { return removeLoadingImage; });\n/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, \"loadDocPreview\", function() { return loadDocPreview; });\n/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, \"sanitizeUrl\", function() { return sanitizeUrl; });\n/* harmony import */ var _babel_runtime_corejs3_core_js_stable_instance_includes__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! @babel/runtime-corejs3/core-js-stable/instance/includes */ \"../../node_modules/@babel/runtime-corejs3/core-js-stable/instance/includes.js\");\n/* harmony import */ var _babel_runtime_corejs3_core_js_stable_instance_includes__WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(_babel_runtime_corejs3_core_js_stable_instance_includes__WEBPACK_IMPORTED_MODULE_0__);\n/* harmony import */ var react__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! react */ \"../../node_modules/react/index.js\");\n/* harmony import */ var react__WEBPACK_IMPORTED_MODULE_1___default = /*#__PURE__*/__webpack_require__.n(react__WEBPACK_IMPORTED_MODULE_1__);\n/* harmony import */ var react_dom__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! react-dom */ \"../../node_modules/react-dom/index.js\");\n/* harmony import */ var react_dom__WEBPACK_IMPORTED_MODULE_2___default = /*#__PURE__*/__webpack_require__.n(react_dom__WEBPACK_IMPORTED_MODULE_2__);\n/* harmony import */ var _format_message__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! ../format-message */ \"./src/format-message.js\");\n/* harmony import */ var _instructure_ui_spinner__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(/*! @instructure/ui-spinner */ \"../../node_modules/@instructure/ui-spinner/es/index.js\");\n/* harmony import */ var escape_html__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__(/*! escape-html */ \"../../node_modules/escape-html/index.js\");\n/* harmony import */ var escape_html__WEBPACK_IMPORTED_MODULE_5___default = /*#__PURE__*/__webpack_require__.n(escape_html__WEBPACK_IMPORTED_MODULE_5__);\n/* harmony import */ var _jqueryish_funcs__WEBPACK_IMPORTED_MODULE_6__ = __webpack_require__(/*! ./jqueryish_funcs */ \"./src/enhance-user-content/jqueryish_funcs.js\");\n\n\n/*\n * Copyright (C) 2022 - present Instructure, Inc.\n *\n * This file is part of Canvas.\n *\n * Canvas is free software: you can redistribute it and/or modify it under\n * the terms of the GNU Affero General Public License as published by the Free\n * Software Foundation, version 3 of the License.\n *\n * Canvas is distributed in the hope that it will be useful, but WITHOUT ANY\n * WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR\n * A PARTICULAR PURPOSE. See the GNU Affero General Public License for more\n * details.\n *\n * You should have received a copy of the GNU Affero General Public License along\n * with this program. If not, see <http://www.gnu.org/licenses/>.\n */\n\n\n\n\n\n\nconst previewableMimeTypes = ['application/vnd.openxmlformats-officedocument.wordprocessingml.template', 'application/vnd.oasis.opendocument.spreadsheet', 'application/vnd.sun.xml.writer', 'application/excel', 'application/vnd.openxmlformats-officedocument.spreadsheetml.sheet', 'text/rtf', 'application/vnd.openxmlformats-officedocument.spreadsheetml.template', 'application/vnd.sun.xml.impress', 'application/vnd.sun.xml.calc', 'application/vnd.ms-excel', 'application/msword', 'application/mspowerpoint', 'application/rtf', 'application/vnd.oasis.opendocument.presentation', 'application/vnd.oasis.opendocument.text', 'application/vnd.openxmlformats-officedocument.presentationml.template', 'application/vnd.openxmlformats-officedocument.presentationml.slideshow', 'text/plain', 'application/vnd.openxmlformats-officedocument.presentationml.presentation', 'application/vnd.openxmlformats-officedocument.wordprocessingml.document', 'application/postscript', 'application/pdf', 'application/vnd.ms-powerpoint']; // check to see if a file of a certan mimeType is previewable inline in the browser\n// ex: isPreviewable(\"application/mspowerpoint\") -> true\n\nfunction isPreviewable(mimeType) {\n return _babel_runtime_corejs3_core_js_stable_instance_includes__WEBPACK_IMPORTED_MODULE_0___default()(previewableMimeTypes).call(previewableMimeTypes, mimeType);\n} // Show a loading spinner\n// The typical use is to show the spinner next to a canvas file link\n// while the inline preview is loading. It's also used when previewing\n// student submitted files in speedgrader, in which case $link is really\n// the div containing the preview iframe. We handle these 2 cases by\n// telling the function to put the spinner adjacent to $link,\n// or to put it in the center of the preview container.\n//\n// $link: the DOM node that serves as the reference for locating the spinner\n// position: one of 'adjacent' or 'centered'\n\nfunction showLoadingImage($link) {\n let position = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : 'adjacent';\n const dir = $link && window.getComputedStyle($link).direction || 'ltr';\n const boundingBox = $link.getBoundingClientRect();\n const offsetLeft = boundingBox.left + (position === 'adjacent' ? dir === 'ltr' ? boundingBox.width : -24 : boundingBox.width / 2);\n $link.style.marginInlineEnd = '28px';\n const imageMarginInlineStart = position === 'adjacent' ? '5px' : '-12px';\n const imageMarginTop = position === 'adjacent' ? 0 : '-12px';\n const zIndex = parseInt($link.style.zIndex || 0, 10) + 1;\n const $imageHolder = document.createElement('div');\n $imageHolder.setAttribute('class', 'loading_image_holder');\n const list = Object(_jqueryish_funcs__WEBPACK_IMPORTED_MODULE_6__[\"getData\"])($link, 'loading_images') || [];\n list.push($imageHolder);\n Object(_jqueryish_funcs__WEBPACK_IMPORTED_MODULE_6__[\"setData\"])($link, 'loading_images', list);\n\n if (!$link.style.position || $link.style.position === 'static') {\n const top = `${boundingBox.top + window.scrollY + (position === 'adjacent' ? 0 : boundingBox.height / 2)}px`;\n const left = `${offsetLeft}px`;\n $imageHolder.setAttribute('style', `z-index: ${zIndex}; position: absolute; top: ${top}; left: ${left}; margin-inline-start: ${imageMarginInlineStart}; margin-top: ${imageMarginTop}`);\n document.body.appendChild($imageHolder);\n } else {\n const top = `${position === 'adjacent' ? 0 : boundingBox.height / 2}px`;\n const left = `${offsetLeft}px`;\n $imageHolder.setAttribute('style', `z-index:${zIndex}; position: absolute; top: ${top}; left: ${left}; margin-inline-start:${imageMarginInlineStart}; margin-top: ${imageMarginTop}`);\n $link.appendChild($imageHolder);\n }\n\n react_dom__WEBPACK_IMPORTED_MODULE_2___default.a.render( /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1___default.a.createElement(_instructure_ui_spinner__WEBPACK_IMPORTED_MODULE_4__[\"Spinner\"], {\n size: \"x-small\",\n title: Object(_format_message__WEBPACK_IMPORTED_MODULE_3__[\"default\"])('Loading')\n }), $imageHolder);\n return $link;\n}\nfunction removeLoadingImage($link) {\n var _$link$querySelector;\n\n (_$link$querySelector = $link.querySelector('.loading_image')) === null || _$link$querySelector === void 0 ? void 0 : _$link$querySelector.remove();\n const list = Object(_jqueryish_funcs__WEBPACK_IMPORTED_MODULE_6__[\"getData\"])($link, 'loading_images') || [];\n list.forEach(item => {\n if (item) {\n item.remove();\n }\n });\n Object(_jqueryish_funcs__WEBPACK_IMPORTED_MODULE_6__[\"setData\"])($link, 'loading_images', null);\n $link.style.marginInlineEnd = '';\n return $link;\n}\nfunction loadDocPreview($container, options) {\n let opts = {\n width: '100%',\n height: '400px',\n ...Object(_jqueryish_funcs__WEBPACK_IMPORTED_MODULE_6__[\"getData\"])($container),\n ...options\n };\n if (!$container) return; // an issue in specs\n\n function tellAppIViewedThisInline() {\n // if I have a url to ping back to the app that I viewed this file inline, ping it.\n if (opts.attachment_view_inline_ping_url) {\n fetch(opts.attachment_view_inline_ping_url, {\n method: 'POST'\n });\n }\n }\n\n if (opts.crocodoc_session_url) {\n const sanitizedUrl = sanitizeUrl(opts.crocodoc_session_url);\n const iframe = document.createElement('iframe');\n iframe.setAttribute('src', sanitizedUrl);\n iframe.setAttribute('width', opts.width);\n iframe.setAttribute('height', opts.height);\n iframe.setAttribute('allowfullscreen', '1');\n iframe.id = opts.id;\n $container.appendChild(iframe);\n iframe.load(() => {\n tellAppIViewedThisInline('crocodoc');\n if (typeof opts.ready === 'function') opts.ready();\n });\n } else if (opts.canvadoc_session_url) {\n const canvadocWrapper = document.createElement('div');\n canvadocWrapper.setAttribute('style', 'overflow: auto; resize: vertical; border: 1px solid transparent; height: 100%;');\n $container.appendChild(canvadocWrapper);\n const minHeight = opts.iframe_min_height !== undefined ? opts.iframe_min_height : '800px';\n const sanitizedUrl = sanitizeUrl(opts.canvadoc_session_url);\n const iframe = document.createElement('iframe');\n iframe.addEventListener('load', () => {\n tellAppIViewedThisInline('canvadocs');\n if (typeof opts.ready === 'function') opts.ready();\n });\n iframe.setAttribute('src', sanitizedUrl);\n iframe.setAttribute('width', opts.width);\n iframe.setAttribute('allowfullscreen', '1');\n iframe.setAttribute('style', `border: 0; overflow: auto; height: 99%; min-height': ${minHeight}`);\n iframe.id = opts.id;\n canvadocWrapper.appendChild(iframe);\n } else if (!opts.disableGooglePreviews && (!opts.mimetype || isPreviewable(opts.mimetype)) && opts.attachment_id || opts.public_url) {\n // else if it's something google docs preview can handle and we can get a public url to this document.\n const loadGooglePreview = function () {\n // this handles both ssl and plain http.\n const googleDocPreviewUrl = `//docs.google.com/viewer?${new URLSearchParams({\n embedded: true,\n url: opts.public_url\n }).toString()}`;\n\n if (!opts.ajax_valid || opts.ajax_valid()) {\n const iframe = document.createElement('iframe');\n iframe.addEventListener('load', () => {\n tellAppIViewedThisInline('google');\n\n if (typeof opts.ready === 'function') {\n opts.ready();\n }\n });\n iframe.setAttribute('src', googleDocPreviewUrl);\n iframe.setAttribute('height', opts.height);\n iframe.setAttribute('width', '100%');\n $container.appendChild(iframe);\n }\n };\n\n if (opts.public_url) {\n loadGooglePreview();\n } else if (opts.attachment_id) {\n let url = `/api/v1/files/${opts.attachment_id}/public_url.json`;\n\n if (opts.submission_id) {\n url += '?' + new URLSearchParams({\n submission_id: opts.submission_id\n }).toString();\n }\n\n if (opts.verifier) {\n url += `${opts.submission_id ? '&' : '?'}verifier=${opts.verifier}`;\n } else {\n const match = window.location.search.match(/verifier=([^&]+)(?:&|$)/);\n const ver = match && match[1];\n\n if (ver) {\n url += `${opts.submission_id ? '&' : '?'}verifier=${ver}`;\n }\n }\n\n showLoadingImage($container, 'centered');\n fetch(url).then(response => {\n if (!response.ok) throw new Error(`${response.status}: ${response.statusText}`);\n return response;\n }).then(response => response.json()).then(data => {\n if (data.public_url) {\n opts = { ...opts,\n ...data\n };\n loadGooglePreview();\n }\n }).catch(ex => {\n // eslint-disable-next-line no-console\n console.error(ex);\n }).finally(() => {\n removeLoadingImage($container);\n });\n }\n } else {\n // else fall back with a message that the document can't be viewed inline\n // eslint-disable-next-line no-lonely-if\n if (opts.attachment_preview_processing) {\n $container.innerHTML = `<p>\n ${escape_html__WEBPACK_IMPORTED_MODULE_5___default()(Object(_format_message__WEBPACK_IMPORTED_MODULE_3__[\"default\"])('The document preview is currently being processed. Please try again later.'))}\n </p>`;\n } else {\n $container.innerHTML = `<p>${escape_html__WEBPACK_IMPORTED_MODULE_5___default()(Object(_format_message__WEBPACK_IMPORTED_MODULE_3__[\"default\"])('This document cannot be displayed within Canvas.'))}</p>`;\n }\n }\n}\n/**\n * Replaces bad urls with harmless urls in cases where bad urls might cause harm\n * @param {string} url\n */\n\nfunction sanitizeUrl(url) {\n const defaultUrl = 'about:blank';\n\n try {\n const parsedUrl = new URL(url, window.location.origin); // eslint-disable-next-line no-script-url\n\n if (parsedUrl.protocol === 'javascript:') {\n return defaultUrl;\n }\n\n return url;\n } catch (e) {\n // URL() throws TypeError if url is not a valid URL\n return defaultUrl;\n }\n}\n\n//# sourceURL=webpack:///./src/enhance-user-content/doc_previews.js?");
17474
+ eval("__webpack_require__.r(__webpack_exports__);\n/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, \"previewableMimeTypes\", function() { return previewableMimeTypes; });\n/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, \"isPreviewable\", function() { return isPreviewable; });\n/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, \"showLoadingImage\", function() { return showLoadingImage; });\n/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, \"removeLoadingImage\", function() { return removeLoadingImage; });\n/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, \"loadDocPreview\", function() { return loadDocPreview; });\n/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, \"sanitizeUrl\", function() { return sanitizeUrl; });\n/* harmony import */ var _babel_runtime_corejs3_core_js_stable_instance_includes__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! @babel/runtime-corejs3/core-js-stable/instance/includes */ \"../../node_modules/@babel/runtime-corejs3/core-js-stable/instance/includes.js\");\n/* harmony import */ var _babel_runtime_corejs3_core_js_stable_instance_includes__WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(_babel_runtime_corejs3_core_js_stable_instance_includes__WEBPACK_IMPORTED_MODULE_0__);\n/* harmony import */ var react__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! react */ \"../../node_modules/react/index.js\");\n/* harmony import */ var react__WEBPACK_IMPORTED_MODULE_1___default = /*#__PURE__*/__webpack_require__.n(react__WEBPACK_IMPORTED_MODULE_1__);\n/* harmony import */ var react_dom__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! react-dom */ \"../../node_modules/react-dom/index.js\");\n/* harmony import */ var react_dom__WEBPACK_IMPORTED_MODULE_2___default = /*#__PURE__*/__webpack_require__.n(react_dom__WEBPACK_IMPORTED_MODULE_2__);\n/* harmony import */ var _format_message__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! ../format-message */ \"./src/format-message.js\");\n/* harmony import */ var _instructure_ui_spinner__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(/*! @instructure/ui-spinner */ \"../../node_modules/@instructure/ui-spinner/es/index.js\");\n/* harmony import */ var escape_html__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__(/*! escape-html */ \"../../node_modules/escape-html/index.js\");\n/* harmony import */ var escape_html__WEBPACK_IMPORTED_MODULE_5___default = /*#__PURE__*/__webpack_require__.n(escape_html__WEBPACK_IMPORTED_MODULE_5__);\n/* harmony import */ var _jqueryish_funcs__WEBPACK_IMPORTED_MODULE_6__ = __webpack_require__(/*! ./jqueryish_funcs */ \"./src/enhance-user-content/jqueryish_funcs.js\");\n\n\n/*\n * Copyright (C) 2022 - present Instructure, Inc.\n *\n * This file is part of Canvas.\n *\n * Canvas is free software: you can redistribute it and/or modify it under\n * the terms of the GNU Affero General Public License as published by the Free\n * Software Foundation, version 3 of the License.\n *\n * Canvas is distributed in the hope that it will be useful, but WITHOUT ANY\n * WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR\n * A PARTICULAR PURPOSE. See the GNU Affero General Public License for more\n * details.\n *\n * You should have received a copy of the GNU Affero General Public License along\n * with this program. If not, see <http://www.gnu.org/licenses/>.\n */\n\n\n\n\n\n\nconst previewableMimeTypes = ['application/vnd.openxmlformats-officedocument.wordprocessingml.template', 'application/vnd.oasis.opendocument.spreadsheet', 'application/vnd.sun.xml.writer', 'application/excel', 'application/vnd.openxmlformats-officedocument.spreadsheetml.sheet', 'text/rtf', 'application/vnd.openxmlformats-officedocument.spreadsheetml.template', 'application/vnd.sun.xml.impress', 'application/vnd.sun.xml.calc', 'application/vnd.ms-excel', 'application/msword', 'application/mspowerpoint', 'application/rtf', 'application/vnd.oasis.opendocument.presentation', 'application/vnd.oasis.opendocument.text', 'application/vnd.openxmlformats-officedocument.presentationml.template', 'application/vnd.openxmlformats-officedocument.presentationml.slideshow', 'text/plain', 'application/vnd.openxmlformats-officedocument.presentationml.presentation', 'application/vnd.openxmlformats-officedocument.wordprocessingml.document', 'application/postscript', 'application/pdf', 'application/vnd.ms-powerpoint']; // check to see if a file of a certan mimeType is previewable inline in the browser\n// ex: isPreviewable(\"application/mspowerpoint\") -> true\n\nfunction isPreviewable(mimeType) {\n return _babel_runtime_corejs3_core_js_stable_instance_includes__WEBPACK_IMPORTED_MODULE_0___default()(previewableMimeTypes).call(previewableMimeTypes, mimeType);\n} // Show a loading spinner\n// The typical use is to show the spinner next to a canvas file link\n// while the inline preview is loading. It's also used when previewing\n// student submitted files in speedgrader, in which case $link is really\n// the div containing the preview iframe. We handle these 2 cases by\n// telling the function to put the spinner adjacent to $link,\n// or to put it in the center of the preview container.\n//\n// $link: the DOM node that serves as the reference for locating the spinner\n// position: one of 'adjacent' or 'centered'\n\nfunction showLoadingImage($link) {\n let position = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : 'adjacent';\n const dir = $link && window.getComputedStyle($link).direction || 'ltr';\n const boundingBox = $link.getBoundingClientRect();\n const offsetLeft = boundingBox.left + (position === 'adjacent' ? dir === 'ltr' ? boundingBox.width : -24 : boundingBox.width / 2);\n $link.style.marginInlineEnd = '28px';\n const imageMarginInlineStart = position === 'adjacent' ? '5px' : '-12px';\n const imageMarginTop = position === 'adjacent' ? 0 : '-12px';\n const zIndex = parseInt($link.style.zIndex || 0, 10) + 1;\n const $imageHolder = document.createElement('div');\n $imageHolder.setAttribute('class', 'loading_image_holder');\n const list = Object(_jqueryish_funcs__WEBPACK_IMPORTED_MODULE_6__[\"getData\"])($link, 'loading_images') || [];\n list.push($imageHolder);\n Object(_jqueryish_funcs__WEBPACK_IMPORTED_MODULE_6__[\"setData\"])($link, 'loading_images', list);\n\n if (!$link.style.position || $link.style.position === 'static') {\n const top = `${boundingBox.top + window.scrollY + (position === 'adjacent' ? 0 : boundingBox.height / 2)}px`;\n const left = `${offsetLeft}px`;\n $imageHolder.setAttribute('style', `z-index: ${zIndex}; position: absolute; top: ${top}; left: ${left}; margin-inline-start: ${imageMarginInlineStart}; margin-top: ${imageMarginTop}`);\n document.body.appendChild($imageHolder);\n } else {\n const top = `${position === 'adjacent' ? 0 : boundingBox.height / 2}px`;\n const left = `${offsetLeft}px`;\n $imageHolder.setAttribute('style', `z-index:${zIndex}; position: absolute; top: ${top}; left: ${left}; margin-inline-start:${imageMarginInlineStart}; margin-top: ${imageMarginTop}`);\n $link.appendChild($imageHolder);\n }\n\n react_dom__WEBPACK_IMPORTED_MODULE_2___default.a.render( /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1___default.a.createElement(_instructure_ui_spinner__WEBPACK_IMPORTED_MODULE_4__[\"Spinner\"], {\n size: \"x-small\",\n title: Object(_format_message__WEBPACK_IMPORTED_MODULE_3__[\"default\"])('Loading')\n }), $imageHolder);\n return $link;\n}\nfunction removeLoadingImage($link) {\n var _$link$querySelector;\n\n (_$link$querySelector = $link.querySelector('.loading_image')) === null || _$link$querySelector === void 0 ? void 0 : _$link$querySelector.remove();\n const list = Object(_jqueryish_funcs__WEBPACK_IMPORTED_MODULE_6__[\"getData\"])($link, 'loading_images') || [];\n list.forEach(item => {\n if (item) {\n item.remove();\n }\n });\n Object(_jqueryish_funcs__WEBPACK_IMPORTED_MODULE_6__[\"setData\"])($link, 'loading_images', null);\n $link.style.marginInlineEnd = '';\n return $link;\n}\nfunction loadDocPreview($container, options) {\n let opts = {\n width: '100%',\n height: '400px',\n ...Object(_jqueryish_funcs__WEBPACK_IMPORTED_MODULE_6__[\"getData\"])($container),\n ...options\n };\n if (!$container) return; // an issue in specs\n\n function tellAppIViewedThisInline() {\n // if I have a url to ping back to the app that I viewed this file inline, ping it.\n if (opts.attachment_view_inline_ping_url) {\n fetch(opts.attachment_view_inline_ping_url, {\n method: 'POST'\n });\n }\n }\n\n if (opts.crocodoc_session_url) {\n const sanitizedUrl = sanitizeUrl(opts.crocodoc_session_url);\n const iframe = document.createElement('iframe');\n iframe.setAttribute('src', sanitizedUrl);\n iframe.setAttribute('width', opts.width);\n iframe.setAttribute('height', opts.height);\n iframe.setAttribute('allowfullscreen', '1');\n iframe.id = opts.id;\n $container.appendChild(iframe);\n iframe.load(() => {\n tellAppIViewedThisInline('crocodoc');\n if (typeof opts.ready === 'function') opts.ready();\n });\n } else if (opts.canvadoc_session_url) {\n const canvadocWrapper = document.createElement('div');\n canvadocWrapper.setAttribute('style', 'overflow: auto; resize: vertical; border: 1px solid transparent; height: 100%;');\n $container.appendChild(canvadocWrapper);\n const minHeight = opts.iframe_min_height !== undefined ? opts.iframe_min_height : '800px';\n const sanitizedUrl = sanitizeUrl(opts.canvadoc_session_url);\n const iframe = document.createElement('iframe');\n iframe.addEventListener('load', () => {\n tellAppIViewedThisInline('canvadocs');\n if (typeof opts.ready === 'function') opts.ready();\n });\n iframe.setAttribute('src', sanitizedUrl);\n iframe.setAttribute('width', opts.width);\n iframe.setAttribute('allowfullscreen', '1');\n iframe.setAttribute('style', `border: 0; overflow: auto; height: 99%; min-height: ${minHeight}`);\n iframe.id = opts.id;\n canvadocWrapper.appendChild(iframe);\n } else if (!opts.disableGooglePreviews && (!opts.mimetype || isPreviewable(opts.mimetype)) && opts.attachment_id || opts.public_url) {\n // else if it's something google docs preview can handle and we can get a public url to this document.\n const loadGooglePreview = function () {\n // this handles both ssl and plain http.\n const googleDocPreviewUrl = `//docs.google.com/viewer?${new URLSearchParams({\n embedded: true,\n url: opts.public_url\n }).toString()}`;\n\n if (!opts.ajax_valid || opts.ajax_valid()) {\n const iframe = document.createElement('iframe');\n iframe.addEventListener('load', () => {\n tellAppIViewedThisInline('google');\n\n if (typeof opts.ready === 'function') {\n opts.ready();\n }\n });\n iframe.setAttribute('src', googleDocPreviewUrl);\n iframe.setAttribute('height', opts.height);\n iframe.setAttribute('width', '100%');\n $container.appendChild(iframe);\n }\n };\n\n if (opts.public_url) {\n loadGooglePreview();\n } else if (opts.attachment_id) {\n let url = `/api/v1/files/${opts.attachment_id}/public_url.json`;\n\n if (opts.submission_id) {\n url += '?' + new URLSearchParams({\n submission_id: opts.submission_id\n }).toString();\n }\n\n if (opts.verifier) {\n url += `${opts.submission_id ? '&' : '?'}verifier=${opts.verifier}`;\n } else {\n const match = window.location.search.match(/verifier=([^&]+)(?:&|$)/);\n const ver = match && match[1];\n\n if (ver) {\n url += `${opts.submission_id ? '&' : '?'}verifier=${ver}`;\n }\n }\n\n showLoadingImage($container, 'centered');\n fetch(url).then(response => {\n if (!response.ok) throw new Error(`${response.status}: ${response.statusText}`);\n return response;\n }).then(response => response.json()).then(data => {\n if (data.public_url) {\n opts = { ...opts,\n ...data\n };\n loadGooglePreview();\n }\n }).catch(ex => {\n // eslint-disable-next-line no-console\n console.error(ex);\n }).finally(() => {\n removeLoadingImage($container);\n });\n }\n } else {\n // else fall back with a message that the document can't be viewed inline\n // eslint-disable-next-line no-lonely-if\n if (opts.attachment_preview_processing) {\n $container.innerHTML = `<p>\n ${escape_html__WEBPACK_IMPORTED_MODULE_5___default()(Object(_format_message__WEBPACK_IMPORTED_MODULE_3__[\"default\"])('The document preview is currently being processed. Please try again later.'))}\n </p>`;\n } else {\n $container.innerHTML = `<p>${escape_html__WEBPACK_IMPORTED_MODULE_5___default()(Object(_format_message__WEBPACK_IMPORTED_MODULE_3__[\"default\"])('This document cannot be displayed within Canvas.'))}</p>`;\n }\n }\n}\n/**\n * Replaces bad urls with harmless urls in cases where bad urls might cause harm\n * @param {string} url\n */\n\nfunction sanitizeUrl(url) {\n const defaultUrl = 'about:blank';\n\n try {\n const parsedUrl = new URL(url, window.location.origin); // eslint-disable-next-line no-script-url\n\n if (parsedUrl.protocol === 'javascript:') {\n return defaultUrl;\n }\n\n return url;\n } catch (e) {\n // URL() throws TypeError if url is not a valid URL\n return defaultUrl;\n }\n}\n\n//# sourceURL=webpack:///./src/enhance-user-content/doc_previews.js?");
17475
17475
 
17476
17476
  /***/ }),
17477
17477
 
@@ -17483,7 +17483,7 @@ eval("__webpack_require__.r(__webpack_exports__);\n/* harmony export (binding) *
17483
17483
  /***/ (function(module, __webpack_exports__, __webpack_require__) {
17484
17484
 
17485
17485
  "use strict";
17486
- eval("__webpack_require__.r(__webpack_exports__);\n/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, \"enhanceUserContent\", function() { return enhanceUserContent; });\n/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, \"makeAllExternalLinksExternalLinks\", function() { return makeAllExternalLinksExternalLinks; });\n/* harmony import */ var escape_html__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! escape-html */ \"../../node_modules/escape-html/index.js\");\n/* harmony import */ var escape_html__WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(escape_html__WEBPACK_IMPORTED_MODULE_0__);\n/* harmony import */ var _instructure_ui_icons_es_svg__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! @instructure/ui-icons/es/svg */ \"../../node_modules/@instructure/ui-icons/es/svg/index.js\");\n/* harmony import */ var _format_message__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! ../format-message */ \"./src/format-message.js\");\n/* harmony import */ var _jqueryish_funcs__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! ./jqueryish_funcs */ \"./src/enhance-user-content/jqueryish_funcs.js\");\n/* harmony import */ var _instructure_helper__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(/*! ./instructure_helper */ \"./src/enhance-user-content/instructure_helper.js\");\n/* harmony import */ var _media_comment_thumbnail__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__(/*! ./media_comment_thumbnail */ \"./src/enhance-user-content/media_comment_thumbnail.js\");\n/*\n * Copyright (C) 2011 - present Instructure, Inc.\n *\n * This file is part of Canvas.\n *\n * Canvas is free software: you can redistribute it and/or modify it under\n * the terms of the GNU Affero General Public License as published by the Free\n * Software Foundation, version 3 of the License.\n *\n * Canvas is distributed in the hope that it will be useful, but WITHOUT ANY\n * WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR\n * A PARTICULAR PURPOSE. See the GNU Affero General Public License for more\n * details.\n *\n * You should have received a copy of the GNU Affero General Public License along\n * with this program. If not, see <http://www.gnu.org/licenses/>.\n */\n\n\n\n\n\n // in jest the es directory doesn't exist so stub the undefined svg\n\nconst IconDownloadSVG = (_instructure_ui_icons_es_svg__WEBPACK_IMPORTED_MODULE_1__[\"IconDownloadLine\"] === null || _instructure_ui_icons_es_svg__WEBPACK_IMPORTED_MODULE_1__[\"IconDownloadLine\"] === void 0 ? void 0 : _instructure_ui_icons_es_svg__WEBPACK_IMPORTED_MODULE_1__[\"IconDownloadLine\"].src) || '<svg></svg>';\nconst IconExternalLinkSVG = (_instructure_ui_icons_es_svg__WEBPACK_IMPORTED_MODULE_1__[\"IconExternalLinkLine\"] === null || _instructure_ui_icons_es_svg__WEBPACK_IMPORTED_MODULE_1__[\"IconExternalLinkLine\"] === void 0 ? void 0 : _instructure_ui_icons_es_svg__WEBPACK_IMPORTED_MODULE_1__[\"IconExternalLinkLine\"].src) || '<svg></svg>';\n\nfunction makeDownloadButton(download_url, filename) {\n const a = document.createElement('a');\n a.setAttribute('class', 'file_download_btn');\n a.setAttribute('role', 'button');\n a.setAttribute('download', '');\n a.setAttribute('style', 'margin-inline-start: 5px; text-decoration: none;');\n a.setAttribute('href', download_url);\n const $icon = document.createElement('span');\n $icon.setAttribute('role', 'presentation');\n $icon.innerHTML = IconDownloadSVG;\n $icon.firstChild.setAttribute('style', 'width:1em; height:1em; vertical-align:middle; fill:currentColor');\n a.appendChild($icon);\n const srspan = document.createElement('span');\n srspan.setAttribute('class', 'screenreader-only');\n srspan.innerHTML = escape_html__WEBPACK_IMPORTED_MODULE_0___default()(Object(_format_message__WEBPACK_IMPORTED_MODULE_2__[\"default\"])('Download {filename}', {\n filename\n }));\n a.appendChild(srspan);\n return a;\n}\n\nfunction makeExternalLinkIcon(forLink) {\n const dir = forLink && window.getComputedStyle(forLink).direction || 'ltr';\n const $icon = document.createElement('span');\n $icon.setAttribute('class', 'external_link_icon');\n const style = `margin-inline-start: 5px; ${dir === 'rtl' ? 'transform:scale(-1, 1)' : ''}`;\n $icon.setAttribute('style', style);\n $icon.setAttribute('role', 'presentation');\n $icon.innerHTML = IconExternalLinkSVG;\n $icon.firstChild.setAttribute('style', 'width:1em; height:1em; vertical-align:middle; fill:currentColor');\n const srspan = document.createElement('span');\n srspan.setAttribute('class', 'screenreader-only');\n srspan.innerHTML = escape_html__WEBPACK_IMPORTED_MODULE_0___default()(Object(_format_message__WEBPACK_IMPORTED_MODULE_2__[\"default\"])('Links to an external site.'));\n $icon.appendChild(srspan);\n return $icon;\n}\n\nfunction handleYoutubeLink($link) {\n const href = $link.getAttribute('href');\n const id = Object(_instructure_helper__WEBPACK_IMPORTED_MODULE_4__[\"youTubeID\"])(href || '');\n\n if (id && !$link.classList.contains('inline_disabled')) {\n const $after = document.createElement('a');\n $after.setAttribute('href', href);\n $after.setAttribute('class', 'youtubed');\n $after.innerHTML = `\n <img src=\"/images/play_overlay.png\"\n class=\"media_comment_thumbnail\"\n style=\"background-image: url(//img.youtube.com/vi/${escape_html__WEBPACK_IMPORTED_MODULE_0___default()(id)}/2.jpg)\"\n alt=\"${escape_html__WEBPACK_IMPORTED_MODULE_0___default()(Object(_jqueryish_funcs__WEBPACK_IMPORTED_MODULE_3__[\"getData\"])($link, 'preview-alt') || '')}\"\n />\n `;\n $after.addEventListener('click', function (event) {\n event.preventDefault();\n const $this = event.currentTarget;\n const $video = document.createElement('span');\n $video.setAttribute('class', 'youtube_holder');\n $video.style.display = 'block';\n $video.innerHTML = `\n <iframe\n src='//www.youtube.com/embed/${escape_html__WEBPACK_IMPORTED_MODULE_0___default()(id)}?autoplay=1&rel=0&hl=en_US&fs=1'\n frameborder='0'\n width='425'\n height='344'\n allowfullscreen\n ></iframe>\n <br/>\n <a\n href='#'\n style='font-size: 0.8em;'\n class='hide_youtube_embed_link'\n >\n ${escape_html__WEBPACK_IMPORTED_MODULE_0___default()(Object(_format_message__WEBPACK_IMPORTED_MODULE_2__[\"default\"])('Minimize Video'))}\n </a>\n `;\n $video.querySelectorAll('.hide_youtube_embed_link').forEach($elem => {\n $elem.addEventListener('click', function (event2) {\n event2.preventDefault();\n $video.parentElement.removeChild($video);\n Object(_jqueryish_funcs__WEBPACK_IMPORTED_MODULE_3__[\"show\"])($after);\n });\n });\n Object(_jqueryish_funcs__WEBPACK_IMPORTED_MODULE_3__[\"insertAfter\"])($video, $this);\n Object(_jqueryish_funcs__WEBPACK_IMPORTED_MODULE_3__[\"hide\"])($this);\n });\n $link.classList.add('youtubed');\n Object(_jqueryish_funcs__WEBPACK_IMPORTED_MODULE_3__[\"insertAfter\"])($after, $link);\n }\n}\n\nlet preview_counter = 0;\n\nfunction previewId() {\n return `preview_${++preview_counter}`;\n}\n\nfunction buildUrl(url) {\n try {\n return new URL(url);\n } catch (e) {// Don't raise an error\n }\n}\n\nfunction enhanceUserContent() {\n let container = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : document;\n let opts = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : {};\n const {\n customEnhanceFunc,\n canvasOrigin,\n kalturaSettings,\n disableGooglePreviews\n } = opts;\n const content = container instanceof HTMLElement && container || document.getElementById('content') || document;\n\n const showFilePreviewEx = event => Object(_instructure_helper__WEBPACK_IMPORTED_MODULE_4__[\"showFilePreview\"])(event, {\n canvasOrigin,\n disableGooglePreviews\n });\n\n content.querySelectorAll('.user_content:not(.enhanced)').forEach(elem => elem.classList.add('unenhanced'));\n content.querySelectorAll('.unenhanced').forEach(unenhanced_elem => {\n unenhanced_elem.querySelectorAll('img').forEach(img => {\n // if the image file is unpublished it's replaced with the lock image\n // and canvas adds hidden=1 to the URL.\n // we also need to strip the alt text\n if (/hidden=1$/.test(img.getAttribute('src'))) {\n img.setAttribute('alt', Object(_format_message__WEBPACK_IMPORTED_MODULE_2__[\"default\"])('This image is currently unavailable'));\n }\n });\n Object(_jqueryish_funcs__WEBPACK_IMPORTED_MODULE_3__[\"setData\"])(unenhanced_elem, 'unenhanced_content_html', unenhanced_elem.innerHTML); // guarantee relative links point to canvas\n\n if (canvasOrigin) {\n unenhanced_elem.querySelectorAll('a').forEach(link => {\n try {\n const href = link.getAttribute('href');\n\n if (href[0] !== '#') {\n const url = new URL(href, canvasOrigin);\n link.setAttribute('href', url.href);\n }\n } catch (_ignore) {// canvasOrigin probably isn't a valid base url\n }\n });\n }\n\n unenhanced_elem.querySelectorAll('a:not(.not_external, .external)').forEach(childLink => {\n if (!Object(_instructure_helper__WEBPACK_IMPORTED_MODULE_4__[\"isExternalLink\"])(childLink)) return;\n if (childLink.tagName === 'IMG' || childLink.querySelectorAll('img').length > 0) return;\n childLink.classList.add('external');\n childLink.setAttribute('target', '_blank');\n childLink.setAttribute('rel', 'noreferrer noopener');\n const $linkSpan = document.createElement('span');\n const $linkText = childLink.innerHTML;\n $linkSpan.innerHTML = $linkText;\n\n while (childLink.firstChild) childLink.removeChild(childLink.firstChild);\n\n childLink.appendChild($linkSpan);\n const externalLinkIcon = makeExternalLinkIcon(childLink);\n childLink.appendChild(externalLinkIcon);\n });\n });\n content.querySelectorAll('a.instructure_file_link, a.instructure_scribd_file').forEach(file_link => {\n const href = buildUrl(file_link.href); // Don't attempt to enhance links with no href\n\n if (!href) return;\n const matchesCanvasFile = href.pathname.match(/(?:\\/(courses|groups|users)\\/(\\d+))?\\/files\\/(\\d+)/);\n\n if (!matchesCanvasFile) {\n // a bug in the new RCE added instructure_file_link class name to all links\n // only proceed if this is a canvas file link\n return;\n }\n\n if (file_link.textContent.trim()) {\n file_link.addEventListener('click', showFilePreviewEx);\n const filename = file_link.textContent; // instructure_file_link_holder is used to find file_preview_link\n\n const $span = document.createElement('span');\n $span.setAttribute('class', 'instructure_file_holder link_holder instructure_file_link_holder');\n const qs = href.searchParams;\n qs.delete('wrap');\n qs.append('download_frd', '1');\n const download_url = `${href.origin}${href.pathname.replace(/(?:\\/(download|preview))?$/, '/download')}?${qs}`;\n const $download_btn = makeDownloadButton(download_url, filename);\n\n if (file_link.classList.contains('instructure_scribd_file')) {\n if (file_link.classList.contains('no_preview')) {\n // link downloads\n file_link.setAttribute('href', download_url);\n file_link.removeAttribute('target');\n } else if (file_link.classList.contains('inline_disabled')) {\n // link opens in overlay\n file_link.classList.add('preview_in_overlay');\n } else {\n // link previews\n file_link.classList.add('file_preview_link');\n }\n }\n\n file_link.classList.remove('instructure_file_link');\n file_link.classList.remove('instructure_scribd_file');\n file_link.parentElement.replaceChild($span, file_link);\n $span.appendChild(file_link);\n if ($download_btn) $span.appendChild($download_btn);\n }\n }); // Some schools have been using 'file_preview_link' for inline previews\n // outside of the RCE so find them all after we've gone through and\n // added our own (above)\n\n content.querySelectorAll('.instructure_file_link_holder a.file_preview_link, .instructure_file_link_holder a.scribd_file_preview_link').forEach($link => {\n if ($link.classList.contains('previewable')) {\n return;\n }\n\n const preview_id = previewId();\n $link.setAttribute('aria-expanded', 'false');\n $link.setAttribute('aria-controls', preview_id);\n $link.classList.add('previewable');\n $link.addEventListener('click', showFilePreviewEx);\n const $preview_container = document.createElement('div');\n $preview_container.setAttribute('role', 'region');\n $preview_container.setAttribute('class', 'preview_container');\n $preview_container.id = preview_id;\n $preview_container.setAttribute('style', 'display: none;');\n $link.parentElement.appendChild($preview_container);\n\n if ($link.classList.contains('auto_open')) {\n $link.click();\n }\n });\n const unenhanced_anchors = content.querySelectorAll('.user_content.unenhanced a, .user_content.unenhanced+div.answers a');\n unenhanced_anchors.forEach($anchor => {\n $anchor.querySelectorAll('img.media_comment_thumbnail').forEach($thumbnail => {\n const a = Object(_jqueryish_funcs__WEBPACK_IMPORTED_MODULE_3__[\"closest\"])($thumbnail, 'a', content);\n a === null || a === void 0 ? void 0 : a.classList.add('instructure_inline_media_comment');\n });\n\n if ($anchor.matches('.instructure_inline_media_comment')) {\n $anchor.classList.remove('no-underline');\n Object(_media_comment_thumbnail__WEBPACK_IMPORTED_MODULE_5__[\"default\"])($anchor, 'normal', false, kalturaSettings);\n }\n\n if ($anchor.matches('.instructure_video_link, .instructure_audio_link')) {\n Object(_media_comment_thumbnail__WEBPACK_IMPORTED_MODULE_5__[\"default\"])($anchor, 'normal', true, kalturaSettings);\n }\n\n if (!$anchor.matches('.youtubed')) {\n handleYoutubeLink($anchor);\n }\n });\n\n if (customEnhanceFunc) {\n customEnhanceFunc();\n }\n\n content.querySelectorAll('.user_content.unenhanced').forEach($elem => {\n $elem.classList.remove('unenhanced');\n $elem.classList.add('enhanced');\n });\n setTimeout(() => {\n content.querySelectorAll('.user_content form.user_content_post_form:not(.submitted)').forEach($elem => {\n $elem.submit();\n $elem.classList.add('submitted');\n });\n }, 10); // Remove sandbox attribute from user content iframes to fix busted\n // third-party content, like Google Drive documents.\n\n document.querySelectorAll('.user_content iframe[sandbox=\"allow-scripts allow-forms allow-same-origin\"]').forEach(frame => {\n frame.removeAttribute('sandbox');\n const src = frame.src;\n frame.src = src;\n });\n}\nfunction makeAllExternalLinksExternalLinks() {\n // in 100ms (to give time for everything else to load), find all the external links and add give them\n // the external link look and behavior (force them to open in a new tab)\n setTimeout(function () {\n const content = document.getElementById('content');\n if (!content) return;\n const tld = Object(_instructure_helper__WEBPACK_IMPORTED_MODULE_4__[\"getTld\"])(window.location.hostname);\n const links = content.querySelectorAll(`a[href*=\"//\"]:not([href*=\"${tld}\"])`); // technique for finding \"external\" links copied from https://davidwalsh.name/external-links-css\n\n for (let i = 0; i < links.length; i++) {\n const $link = links[i]; // don't mess with the ones that were already processed in enhanceUserContent\n\n if ($link.classList.contains('external')) continue;\n if ($link.matches('.open_in_a_new_tab')) continue;\n if ($link.querySelectorAll('img').length > 0) continue;\n if ($link.matches('.not_external')) continue;\n if ($link.matches('.exclude_external_icon')) continue; // we have some pre-instui buttons that are styled links\n\n if ($link.classList.contains('btn')) continue;\n const $linkToReplace = $link;\n\n if ($linkToReplace) {\n const $linkIndicator = makeExternalLinkIcon();\n $linkToReplace.classList.add('external');\n $linkToReplace.querySelectorAll('span.ui-icon-extlink').forEach(c => c.remove);\n $linkToReplace.setAttribute('target', '_blank');\n $linkToReplace.setAttribute('rel', 'noreferrer noopener');\n const $linkSpan = document.createElement('span');\n const $linkText = $linkToReplace.innerHTML;\n $linkSpan.innerHTML = $linkText;\n\n while ($linkToReplace.firstChild) $linkToReplace.removeChild($linkToReplace.firstChild);\n\n $linkToReplace.appendChild($linkSpan);\n $linkToReplace.appendChild($linkIndicator);\n }\n }\n }, 100);\n}\n\n//# sourceURL=webpack:///./src/enhance-user-content/enhance_user_content.js?");
17486
+ eval("__webpack_require__.r(__webpack_exports__);\n/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, \"enhanceUserContent\", function() { return enhanceUserContent; });\n/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, \"makeAllExternalLinksExternalLinks\", function() { return makeAllExternalLinksExternalLinks; });\n/* harmony import */ var escape_html__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! escape-html */ \"../../node_modules/escape-html/index.js\");\n/* harmony import */ var escape_html__WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(escape_html__WEBPACK_IMPORTED_MODULE_0__);\n/* harmony import */ var _instructure_ui_icons_es_svg__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! @instructure/ui-icons/es/svg */ \"../../node_modules/@instructure/ui-icons/es/svg/index.js\");\n/* harmony import */ var _format_message__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! ../format-message */ \"./src/format-message.js\");\n/* harmony import */ var _jqueryish_funcs__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! ./jqueryish_funcs */ \"./src/enhance-user-content/jqueryish_funcs.js\");\n/* harmony import */ var _instructure_helper__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(/*! ./instructure_helper */ \"./src/enhance-user-content/instructure_helper.js\");\n/* harmony import */ var _media_comment_thumbnail__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__(/*! ./media_comment_thumbnail */ \"./src/enhance-user-content/media_comment_thumbnail.js\");\n/*\n * Copyright (C) 2011 - present Instructure, Inc.\n *\n * This file is part of Canvas.\n *\n * Canvas is free software: you can redistribute it and/or modify it under\n * the terms of the GNU Affero General Public License as published by the Free\n * Software Foundation, version 3 of the License.\n *\n * Canvas is distributed in the hope that it will be useful, but WITHOUT ANY\n * WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR\n * A PARTICULAR PURPOSE. See the GNU Affero General Public License for more\n * details.\n *\n * You should have received a copy of the GNU Affero General Public License along\n * with this program. If not, see <http://www.gnu.org/licenses/>.\n */\n\n\n\n\n\n // in jest the es directory doesn't exist so stub the undefined svg\n\nconst IconDownloadSVG = (_instructure_ui_icons_es_svg__WEBPACK_IMPORTED_MODULE_1__[\"IconDownloadLine\"] === null || _instructure_ui_icons_es_svg__WEBPACK_IMPORTED_MODULE_1__[\"IconDownloadLine\"] === void 0 ? void 0 : _instructure_ui_icons_es_svg__WEBPACK_IMPORTED_MODULE_1__[\"IconDownloadLine\"].src) || '<svg></svg>';\nconst IconExternalLinkSVG = (_instructure_ui_icons_es_svg__WEBPACK_IMPORTED_MODULE_1__[\"IconExternalLinkLine\"] === null || _instructure_ui_icons_es_svg__WEBPACK_IMPORTED_MODULE_1__[\"IconExternalLinkLine\"] === void 0 ? void 0 : _instructure_ui_icons_es_svg__WEBPACK_IMPORTED_MODULE_1__[\"IconExternalLinkLine\"].src) || '<svg></svg>';\n\nfunction makeDownloadButton(download_url, filename) {\n const a = document.createElement('a');\n a.setAttribute('class', 'file_download_btn');\n a.setAttribute('role', 'button');\n a.setAttribute('download', '');\n a.setAttribute('style', 'margin-inline-start: 5px; text-decoration: none;');\n a.setAttribute('href', download_url);\n const $icon = document.createElement('span');\n $icon.setAttribute('role', 'presentation');\n $icon.innerHTML = IconDownloadSVG;\n $icon.firstChild.setAttribute('style', 'width:1em; height:1em; vertical-align:middle; fill:currentColor');\n a.appendChild($icon);\n const srspan = document.createElement('span');\n srspan.setAttribute('class', 'screenreader-only');\n srspan.innerHTML = escape_html__WEBPACK_IMPORTED_MODULE_0___default()(Object(_format_message__WEBPACK_IMPORTED_MODULE_2__[\"default\"])('Download {filename}', {\n filename\n }));\n a.appendChild(srspan);\n return a;\n}\n\nfunction makeExternalLinkIcon(forLink) {\n const dir = forLink && window.getComputedStyle(forLink).direction || 'ltr';\n const $icon = document.createElement('span');\n $icon.setAttribute('class', 'external_link_icon');\n const style = `margin-inline-start: 5px; ${dir === 'rtl' ? 'transform:scale(-1, 1)' : ''}`;\n $icon.setAttribute('style', style);\n $icon.setAttribute('role', 'presentation');\n $icon.innerHTML = IconExternalLinkSVG;\n $icon.firstChild.setAttribute('style', 'width:1em; height:1em; vertical-align:middle; fill:currentColor');\n const srspan = document.createElement('span');\n srspan.setAttribute('class', 'screenreader-only');\n srspan.innerHTML = escape_html__WEBPACK_IMPORTED_MODULE_0___default()(Object(_format_message__WEBPACK_IMPORTED_MODULE_2__[\"default\"])('Links to an external site.'));\n $icon.appendChild(srspan);\n return $icon;\n}\n\nfunction handleYoutubeLink($link) {\n const href = $link.getAttribute('href');\n const id = Object(_instructure_helper__WEBPACK_IMPORTED_MODULE_4__[\"youTubeID\"])(href || '');\n\n if (id && !$link.classList.contains('inline_disabled')) {\n const $after = document.createElement('a');\n $after.setAttribute('href', href);\n $after.setAttribute('class', 'youtubed');\n $after.innerHTML = `\n <img src=\"/images/play_overlay.png\"\n class=\"media_comment_thumbnail\"\n style=\"background-image: url(//img.youtube.com/vi/${escape_html__WEBPACK_IMPORTED_MODULE_0___default()(id)}/2.jpg)\"\n alt=\"${escape_html__WEBPACK_IMPORTED_MODULE_0___default()(Object(_jqueryish_funcs__WEBPACK_IMPORTED_MODULE_3__[\"getData\"])($link, 'preview-alt') || '')}\"\n />\n `;\n $after.addEventListener('click', function (event) {\n event.preventDefault();\n const $this = event.currentTarget;\n const $video = document.createElement('span');\n $video.setAttribute('class', 'youtube_holder');\n $video.style.display = 'block';\n $video.innerHTML = `\n <iframe\n src='//www.youtube.com/embed/${escape_html__WEBPACK_IMPORTED_MODULE_0___default()(id)}?autoplay=1&rel=0&hl=en_US&fs=1'\n frameborder='0'\n width='425'\n height='344'\n allowfullscreen\n ></iframe>\n <br/>\n <a\n href='#'\n style='font-size: 0.8em;'\n class='hide_youtube_embed_link'\n >\n ${escape_html__WEBPACK_IMPORTED_MODULE_0___default()(Object(_format_message__WEBPACK_IMPORTED_MODULE_2__[\"default\"])('Minimize Video'))}\n </a>\n `;\n $video.querySelectorAll('.hide_youtube_embed_link').forEach($elem => {\n $elem.addEventListener('click', function (event2) {\n event2.preventDefault();\n $video.parentElement.removeChild($video);\n Object(_jqueryish_funcs__WEBPACK_IMPORTED_MODULE_3__[\"show\"])($after);\n });\n });\n Object(_jqueryish_funcs__WEBPACK_IMPORTED_MODULE_3__[\"insertAfter\"])($video, $this);\n Object(_jqueryish_funcs__WEBPACK_IMPORTED_MODULE_3__[\"hide\"])($this);\n });\n $link.classList.add('youtubed');\n Object(_jqueryish_funcs__WEBPACK_IMPORTED_MODULE_3__[\"insertAfter\"])($after, $link);\n }\n}\n\nlet preview_counter = 0;\n\nfunction previewId() {\n return `preview_${++preview_counter}`;\n}\n\nfunction buildUrl(url) {\n try {\n return new URL(url);\n } catch (e) {// Don't raise an error\n }\n}\n\nfunction enhanceUserContent() {\n let container = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : document;\n let opts = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : {};\n const {\n customEnhanceFunc,\n canvasOrigin,\n kalturaSettings,\n disableGooglePreviews,\n canvasLinksTarget\n } = opts;\n const content = container instanceof HTMLElement && container || document.getElementById('content') || document;\n\n const showFilePreviewEx = event => Object(_instructure_helper__WEBPACK_IMPORTED_MODULE_4__[\"showFilePreview\"])(event, {\n canvasOrigin,\n disableGooglePreviews\n });\n\n content.querySelectorAll('.user_content:not(.enhanced)').forEach(elem => elem.classList.add('unenhanced'));\n content.querySelectorAll('.unenhanced').forEach(unenhanced_elem => {\n unenhanced_elem.querySelectorAll('img').forEach(img => {\n const src = img.getAttribute('src');\n\n if (!/^\\/[^/]/.test(src)) {\n return;\n } // if the image file is unpublished it's replaced with the lock image\n // and canvas adds hidden=1 to the URL.\n // we also need to strip the alt text\n\n\n if (/hidden=1$/.test(src)) {\n img.setAttribute('alt', Object(_format_message__WEBPACK_IMPORTED_MODULE_2__[\"default\"])('This image is currently unavailable'));\n }\n });\n Object(_jqueryish_funcs__WEBPACK_IMPORTED_MODULE_3__[\"setData\"])(unenhanced_elem, 'unenhanced_content_html', unenhanced_elem.innerHTML); // guarantee relative links point to canvas\n\n if (canvasOrigin) {\n const attributes = ['href', 'src'];\n const selector = '[href], [src]';\n unenhanced_elem.querySelectorAll(selector).forEach(element => {\n try {\n for (const a of attributes) {\n const potentialUrl = element.getAttribute(a);\n\n if (!/^\\/[^/]/.test(potentialUrl)) {\n continue;\n }\n\n const absoluteUrl = new URL(potentialUrl, canvasOrigin);\n element.setAttribute(a, absoluteUrl.href);\n\n if (canvasLinksTarget && element.tagName === 'A' && (!element.getAttribute('target') || element.getAttribute('target') === '_blank')) {\n element.setAttribute('target', canvasLinksTarget);\n }\n }\n } catch (_ignore) {// canvasOrigin probably isn't a valid base url\n }\n });\n }\n\n unenhanced_elem.querySelectorAll('a:not(.not_external, .external)').forEach(childLink => {\n if (!Object(_instructure_helper__WEBPACK_IMPORTED_MODULE_4__[\"isExternalLink\"])(childLink, canvasOrigin)) return;\n if (childLink.tagName === 'IMG' || childLink.querySelectorAll('img').length > 0) return;\n childLink.classList.add('external');\n childLink.setAttribute('target', '_blank');\n childLink.setAttribute('rel', 'noreferrer noopener');\n const $linkSpan = document.createElement('span');\n const $linkText = childLink.innerHTML;\n $linkSpan.innerHTML = $linkText;\n\n while (childLink.firstChild) childLink.removeChild(childLink.firstChild);\n\n childLink.appendChild($linkSpan);\n const externalLinkIcon = makeExternalLinkIcon(childLink);\n childLink.appendChild(externalLinkIcon);\n });\n });\n content.querySelectorAll('a.instructure_file_link, a.instructure_scribd_file').forEach(file_link => {\n const href = buildUrl(file_link.href); // Don't attempt to enhance links with no href\n\n if (!href) return;\n const matchesCanvasFile = href.pathname.match(/(?:\\/(courses|groups|users)\\/(\\d+))?\\/files\\/(\\d+)/);\n\n if (!matchesCanvasFile) {\n // a bug in the new RCE added instructure_file_link class name to all links\n // only proceed if this is a canvas file link\n return;\n }\n\n if (file_link.textContent.trim()) {\n file_link.addEventListener('click', showFilePreviewEx);\n const filename = file_link.textContent; // instructure_file_link_holder is used to find file_preview_link\n\n const $span = document.createElement('span');\n $span.setAttribute('class', 'instructure_file_holder link_holder instructure_file_link_holder');\n const qs = href.searchParams;\n qs.delete('wrap');\n qs.append('download_frd', '1');\n const download_url = `${href.origin}${href.pathname.replace(/(?:\\/(download|preview))?$/, '/download')}?${qs}`;\n const $download_btn = makeDownloadButton(download_url, filename);\n\n if (file_link.classList.contains('instructure_scribd_file')) {\n if (file_link.classList.contains('no_preview')) {\n // link downloads\n file_link.setAttribute('href', download_url);\n file_link.removeAttribute('target');\n } else if (file_link.classList.contains('inline_disabled')) {\n // link opens in overlay\n file_link.classList.add('preview_in_overlay');\n } else {\n // link previews\n file_link.classList.add('file_preview_link');\n }\n }\n\n file_link.classList.remove('instructure_file_link');\n file_link.classList.remove('instructure_scribd_file');\n file_link.parentElement.replaceChild($span, file_link);\n $span.appendChild(file_link);\n if ($download_btn) $span.appendChild($download_btn);\n }\n }); // Some schools have been using 'file_preview_link' for inline previews\n // outside of the RCE so find them all after we've gone through and\n // added our own (above)\n\n content.querySelectorAll('.instructure_file_link_holder a.file_preview_link, .instructure_file_link_holder a.scribd_file_preview_link').forEach($link => {\n if ($link.classList.contains('previewable')) {\n return;\n }\n\n const preview_id = previewId();\n $link.setAttribute('aria-expanded', 'false');\n $link.setAttribute('aria-controls', preview_id);\n $link.classList.add('previewable');\n $link.addEventListener('click', showFilePreviewEx);\n const $preview_container = document.createElement('div');\n $preview_container.setAttribute('role', 'region');\n $preview_container.setAttribute('class', 'preview_container');\n $preview_container.id = preview_id;\n $preview_container.setAttribute('style', 'display: none;');\n $link.parentElement.appendChild($preview_container);\n\n if ($link.classList.contains('auto_open')) {\n $link.click();\n }\n });\n const unenhanced_anchors = content.querySelectorAll('.user_content.unenhanced a, .user_content.unenhanced+div.answers a');\n unenhanced_anchors.forEach($anchor => {\n $anchor.querySelectorAll('img.media_comment_thumbnail').forEach($thumbnail => {\n const a = Object(_jqueryish_funcs__WEBPACK_IMPORTED_MODULE_3__[\"closest\"])($thumbnail, 'a', content);\n a === null || a === void 0 ? void 0 : a.classList.add('instructure_inline_media_comment');\n });\n\n if ($anchor.matches('.instructure_inline_media_comment')) {\n $anchor.classList.remove('no-underline');\n Object(_media_comment_thumbnail__WEBPACK_IMPORTED_MODULE_5__[\"default\"])($anchor, 'normal', false, kalturaSettings);\n }\n\n if ($anchor.matches('.instructure_video_link, .instructure_audio_link')) {\n Object(_media_comment_thumbnail__WEBPACK_IMPORTED_MODULE_5__[\"default\"])($anchor, 'normal', true, kalturaSettings);\n }\n\n if (!$anchor.matches('.youtubed')) {\n handleYoutubeLink($anchor);\n }\n });\n\n if (customEnhanceFunc) {\n customEnhanceFunc();\n }\n\n content.querySelectorAll('.user_content.unenhanced').forEach($elem => {\n $elem.classList.remove('unenhanced');\n $elem.classList.add('enhanced');\n });\n setTimeout(() => {\n content.querySelectorAll('.user_content form.user_content_post_form:not(.submitted)').forEach($elem => {\n $elem.submit();\n $elem.classList.add('submitted');\n });\n }, 10); // Remove sandbox attribute from user content iframes to fix busted\n // third-party content, like Google Drive documents.\n\n document.querySelectorAll('.user_content iframe[sandbox=\"allow-scripts allow-forms allow-same-origin\"]').forEach(frame => {\n frame.removeAttribute('sandbox');\n const src = frame.src;\n frame.src = src;\n });\n}\nfunction makeAllExternalLinksExternalLinks() {\n // in 100ms (to give time for everything else to load), find all the external links and add give them\n // the external link look and behavior (force them to open in a new tab)\n setTimeout(function () {\n const content = document.getElementById('content');\n if (!content) return;\n const tld = Object(_instructure_helper__WEBPACK_IMPORTED_MODULE_4__[\"getTld\"])(window.location.hostname);\n const links = content.querySelectorAll(`a[href*=\"//\"]:not([href*=\"${tld}\"])`); // technique for finding \"external\" links copied from https://davidwalsh.name/external-links-css\n\n for (let i = 0; i < links.length; i++) {\n const $link = links[i]; // don't mess with the ones that were already processed in enhanceUserContent\n\n if ($link.classList.contains('external')) continue;\n if ($link.matches('.open_in_a_new_tab')) continue;\n if ($link.querySelectorAll('img').length > 0) continue;\n if ($link.matches('.not_external')) continue;\n if ($link.matches('.exclude_external_icon')) continue; // we have some pre-instui buttons that are styled links\n\n if ($link.classList.contains('btn')) continue;\n const $linkToReplace = $link;\n\n if ($linkToReplace) {\n const $linkIndicator = makeExternalLinkIcon();\n $linkToReplace.classList.add('external');\n $linkToReplace.querySelectorAll('span.ui-icon-extlink').forEach(c => c.remove);\n $linkToReplace.setAttribute('target', '_blank');\n $linkToReplace.setAttribute('rel', 'noreferrer noopener');\n const $linkSpan = document.createElement('span');\n const $linkText = $linkToReplace.innerHTML;\n $linkSpan.innerHTML = $linkText;\n\n while ($linkToReplace.firstChild) $linkToReplace.removeChild($linkToReplace.firstChild);\n\n $linkToReplace.appendChild($linkSpan);\n $linkToReplace.appendChild($linkIndicator);\n }\n }\n }, 100);\n}\n\n//# sourceURL=webpack:///./src/enhance-user-content/enhance_user_content.js?");
17487
17487
 
17488
17488
  /***/ }),
17489
17489
 
@@ -17507,7 +17507,7 @@ eval("__webpack_require__.r(__webpack_exports__);\n/* harmony import */ var _med
17507
17507
  /***/ (function(module, __webpack_exports__, __webpack_require__) {
17508
17508
 
17509
17509
  "use strict";
17510
- eval("__webpack_require__.r(__webpack_exports__);\n/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, \"youTubeID\", function() { return youTubeID; });\n/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, \"getTld\", function() { return getTld; });\n/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, \"isExternalLink\", function() { return isExternalLink; });\n/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, \"showFilePreview\", function() { return showFilePreview; });\n/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, \"showFilePreviewInOverlay\", function() { return showFilePreviewInOverlay; });\n/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, \"showFilePreviewInline\", function() { return showFilePreviewInline; });\n/* harmony import */ var escape_html__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! escape-html */ \"../../node_modules/escape-html/index.js\");\n/* harmony import */ var escape_html__WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(escape_html__WEBPACK_IMPORTED_MODULE_0__);\n/* harmony import */ var _format_message__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! ../format-message */ \"./src/format-message.js\");\n/* harmony import */ var _common_FlashAlert__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! ../common/FlashAlert */ \"./src/common/FlashAlert.js\");\n/* harmony import */ var _doc_previews__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! ./doc_previews */ \"./src/enhance-user-content/doc_previews.js\");\n/* harmony import */ var _jqueryish_funcs__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(/*! ./jqueryish_funcs */ \"./src/enhance-user-content/jqueryish_funcs.js\");\n/*\n * Copyright (C) 2022 - present Instructure, Inc.\n *\n * This file is part of Canvas.\n *\n * Canvas is free software: you can redistribute it and/or modify it under\n * the terms of the GNU Affero General Public License as published by the Free\n * Software Foundation, version 3 of the License.\n *\n * Canvas is distributed in the hope that it will be useful, but WITHOUT ANY\n * WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR\n * A PARTICULAR PURPOSE. See the GNU Affero General Public License for more\n * details.\n *\n * You should have received a copy of the GNU Affero General Public License along\n * with this program. If not, see <http://www.gnu.org/licenses/>.\n */\n\n\n\n\n\nconst youTubeRegEx = /^https?:\\/\\/(www\\.youtube\\.com\\/watch.*v(=|\\/)|youtu\\.be\\/)([^&#]*)/;\nfunction youTubeID(path) {\n const match = path.match(youTubeRegEx);\n\n if (match && match[match.length - 1]) {\n return match[match.length - 1];\n }\n\n return null;\n}\nfunction getTld(hostname) {\n hostname = (hostname || '').split(':')[0];\n const parts = hostname.split('.'),\n length = parts.length;\n return (length > 1 ? [parts[length - 2], parts[length - 1]] : parts).join('.');\n}\nconst locationTld = getTld(window.location.hostname);\nfunction isExternalLink(element) {\n const href = element.getAttribute('href'); // if a browser doesnt support <a>.hostname then just dont mark anything as external, better to not get false positives.\n\n return !!(href && href.length && !href.match(/^(mailto\\:|javascript\\:)/) && element.hostname && getTld(element.hostname) !== locationTld);\n}\nfunction showFilePreview(event) {\n var _event$target, _event$currentTarget;\n\n let opts = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : {};\n const {\n canvasOrigin,\n disableGooglePreviews\n } = { ...opts\n };\n let target = null;\n\n if ((_event$target = event.target) !== null && _event$target !== void 0 && _event$target.href) {\n target = event.target;\n } else if ((_event$currentTarget = event.currentTarget) !== null && _event$currentTarget !== void 0 && _event$currentTarget.href) {\n target = event.currentTarget;\n } else {\n return;\n }\n\n if (target.classList.contains('no_preview')) {\n return;\n }\n\n if (target.classList.contains('inline_disabled') || target.classList.contains('preview_in_overlay')) {\n showFilePreviewInOverlay(event, canvasOrigin);\n } else {\n showFilePreviewInline(event, disableGooglePreviews);\n }\n}\nfunction showFilePreviewInOverlay(event, canvasOrigin) {\n var _event$target2, _event$currentTarget2, _target;\n\n let target = null;\n\n if ((_event$target2 = event.target) !== null && _event$target2 !== void 0 && _event$target2.href) {\n target = event.target;\n } else if ((_event$currentTarget2 = event.currentTarget) !== null && _event$currentTarget2 !== void 0 && _event$currentTarget2.href) {\n target = event.currentTarget;\n }\n\n const matches = (_target = target) === null || _target === void 0 ? void 0 : _target.href.match(/\\/files\\/(\\d+)/);\n\n if (matches) {\n if (event.ctrlKey || event.altKey || event.metaKey || event.shiftKey) {\n // if any modifier keys are pressed, do the browser default thing\n return;\n }\n\n event.preventDefault();\n const url = new URL(target.href);\n const verifier = url === null || url === void 0 ? void 0 : url.searchParams.get('verifier');\n const file_id = matches[1]; // TODO:\n // 1. what window should be be using\n // 2. is that the right origin?\n // 3. this is temporary until we can decouple the file previewer from canvas\n\n window.top.postMessage({\n subject: 'preview_file',\n file_id,\n verifier\n }, canvasOrigin);\n }\n}\nfunction showFilePreviewInline(event, disableGooglePreviews) {\n if (event.ctrlKey || event.altKey || event.metaKey || event.shiftKey) {\n // if any modifier keys are pressed, do the browser default thing\n return;\n }\n\n event.preventDefault();\n const $link = event.currentTarget || event.target;\n\n if ($link.getAttribute('aria-expanded') === 'true') {\n // close the preview by clicking the \"Minimize File Preview\" link\n const $preview = document.getElementById($link.getAttribute('aria-controls'));\n $preview.querySelector('.hide_file_preview_link').click();\n return;\n }\n\n Object(_doc_previews__WEBPACK_IMPORTED_MODULE_3__[\"showLoadingImage\"])($link);\n fetch($link.getAttribute('href').replace(/\\/(download|preview)/, '') // download as part of the path\n .replace(/wrap=1&?/, '') // wrap=1 as part of the query_string\n .replace(/[?&]$/, ''), // any trailing chars if wrap=1 was at the end\n {\n method: 'GET',\n headers: {\n Accept: 'application/json'\n }\n }).then(response => {\n if (!response.ok) throw new Error(`${response.status}: ${response.statusText}`);\n return response;\n }).then(response => response.json()).then(data => {\n const attachment = data && data.attachment;\n Object(_doc_previews__WEBPACK_IMPORTED_MODULE_3__[\"removeLoadingImage\"])($link);\n\n if (attachment && (!disableGooglePreviews && Object(_doc_previews__WEBPACK_IMPORTED_MODULE_3__[\"isPreviewable\"])(attachment.content_type) || attachment.canvadoc_session_url)) {\n $link.setAttribute('aria-expanded', 'true');\n const $div = document.querySelector(`[id=\"${$link.getAttribute('aria-controls')}\"]`);\n $div.style.display = 'block';\n Object(_doc_previews__WEBPACK_IMPORTED_MODULE_3__[\"loadDocPreview\"])($div, {\n canvadoc_session_url: attachment.canvadoc_session_url,\n mimeType: attachment.content_type,\n public_url: attachment.public_url,\n attachment_preview_processing: attachment.workflow_state === 'pending_upload' || attachment.workflow_state === 'processing',\n disableGooglePreviews\n });\n const $minimizeLink = document.createElement('a');\n $minimizeLink.setAttribute('href', '#');\n $minimizeLink.setAttribute('style', 'font-size: 0.8em;');\n $minimizeLink.setAttribute('class', 'hide_file_preview_link');\n $minimizeLink.innerHTML = escape_html__WEBPACK_IMPORTED_MODULE_0___default()(Object(_format_message__WEBPACK_IMPORTED_MODULE_1__[\"default\"])('Minimize File Preview'));\n $minimizeLink.addEventListener('click', event2 => {\n event2.preventDefault();\n resetInlinePreview($link, $div);\n });\n $div.prepend($minimizeLink);\n\n if (Object.prototype.hasOwnProperty.call(event, 'originalEvent')) {\n // Only focus this link if the open preview link was initiated by a real browser event\n // If it was triggered by our auto_open stuff it shouldn't focus here.\n $minimizeLink.focus();\n }\n }\n }).catch(ex => {\n Object(_common_FlashAlert__WEBPACK_IMPORTED_MODULE_2__[\"showFlashAlert\"])({\n message: Object(_format_message__WEBPACK_IMPORTED_MODULE_1__[\"default\"])('Failed getting file contents'),\n type: 'error'\n }); // eslint-disable-next-line no-console\n\n console.error(ex);\n resetInlinePreview($link);\n Object(_doc_previews__WEBPACK_IMPORTED_MODULE_3__[\"removeLoadingImage\"])($link);\n });\n}\n\nfunction resetInlinePreview($link, $previewContainer) {\n $link.setAttribute('aria-expanded', 'false');\n Object(_jqueryish_funcs__WEBPACK_IMPORTED_MODULE_4__[\"show\"])($link);\n $link.focus();\n\n if ($previewContainer) {\n $previewContainer.innerHTML = '';\n $previewContainer.style.display = 'none';\n }\n}\n\n//# sourceURL=webpack:///./src/enhance-user-content/instructure_helper.js?");
17510
+ eval("__webpack_require__.r(__webpack_exports__);\n/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, \"youTubeID\", function() { return youTubeID; });\n/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, \"getTld\", function() { return getTld; });\n/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, \"isExternalLink\", function() { return isExternalLink; });\n/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, \"showFilePreview\", function() { return showFilePreview; });\n/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, \"showFilePreviewInOverlay\", function() { return showFilePreviewInOverlay; });\n/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, \"showFilePreviewInline\", function() { return showFilePreviewInline; });\n/* harmony import */ var escape_html__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! escape-html */ \"../../node_modules/escape-html/index.js\");\n/* harmony import */ var escape_html__WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(escape_html__WEBPACK_IMPORTED_MODULE_0__);\n/* harmony import */ var _format_message__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! ../format-message */ \"./src/format-message.js\");\n/* harmony import */ var _common_FlashAlert__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! ../common/FlashAlert */ \"./src/common/FlashAlert.js\");\n/* harmony import */ var _doc_previews__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! ./doc_previews */ \"./src/enhance-user-content/doc_previews.js\");\n/* harmony import */ var _jqueryish_funcs__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(/*! ./jqueryish_funcs */ \"./src/enhance-user-content/jqueryish_funcs.js\");\n/*\n * Copyright (C) 2022 - present Instructure, Inc.\n *\n * This file is part of Canvas.\n *\n * Canvas is free software: you can redistribute it and/or modify it under\n * the terms of the GNU Affero General Public License as published by the Free\n * Software Foundation, version 3 of the License.\n *\n * Canvas is distributed in the hope that it will be useful, but WITHOUT ANY\n * WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR\n * A PARTICULAR PURPOSE. See the GNU Affero General Public License for more\n * details.\n *\n * You should have received a copy of the GNU Affero General Public License along\n * with this program. If not, see <http://www.gnu.org/licenses/>.\n */\n\n\n\n\n\nconst youTubeRegEx = /^https?:\\/\\/(www\\.youtube\\.com\\/watch.*v(=|\\/)|youtu\\.be\\/)([^&#]*)/;\nfunction youTubeID(path) {\n const match = path.match(youTubeRegEx);\n\n if (match && match[match.length - 1]) {\n return match[match.length - 1];\n }\n\n return null;\n}\nfunction getTld(hostname) {\n hostname = (hostname || '').split(':')[0];\n const parts = hostname.split('.'),\n length = parts.length;\n return (length > 1 ? [parts[length - 2], parts[length - 1]] : parts).join('.');\n}\nfunction isExternalLink(element) {\n let canvasOrigin = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : window.location.origin;\n let canvasHost;\n\n try {\n canvasHost = new URL(canvasOrigin).hostname;\n } catch (_ex) {\n canvasHost = window.location.hostname;\n }\n\n const href = element.getAttribute('href'); // if a browser doesnt support <a>.hostname then just dont mark anything as external, better to not get false positives.\n\n return !!(href && href.length && !href.match(/^(mailto\\:|javascript\\:)/) && element.hostname && getTld(element.hostname) !== getTld(canvasHost));\n}\nfunction showFilePreview(event) {\n var _event$target, _event$currentTarget;\n\n let opts = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : {};\n const {\n canvasOrigin,\n disableGooglePreviews\n } = { ...opts\n };\n let target = null;\n\n if ((_event$target = event.target) !== null && _event$target !== void 0 && _event$target.href) {\n target = event.target;\n } else if ((_event$currentTarget = event.currentTarget) !== null && _event$currentTarget !== void 0 && _event$currentTarget.href) {\n target = event.currentTarget;\n } else {\n return;\n }\n\n if (target.classList.contains('no_preview')) {\n return;\n }\n\n if (target.classList.contains('inline_disabled') || target.classList.contains('preview_in_overlay')) {\n showFilePreviewInOverlay(event, canvasOrigin);\n } else {\n showFilePreviewInline(event, disableGooglePreviews);\n }\n}\nfunction showFilePreviewInOverlay(event, canvasOrigin) {\n var _event$target2, _event$currentTarget2, _target;\n\n let target = null;\n\n if ((_event$target2 = event.target) !== null && _event$target2 !== void 0 && _event$target2.href) {\n target = event.target;\n } else if ((_event$currentTarget2 = event.currentTarget) !== null && _event$currentTarget2 !== void 0 && _event$currentTarget2.href) {\n target = event.currentTarget;\n }\n\n const matches = (_target = target) === null || _target === void 0 ? void 0 : _target.href.match(/\\/files\\/(\\d+)/);\n\n if (matches) {\n if (event.ctrlKey || event.altKey || event.metaKey || event.shiftKey) {\n // if any modifier keys are pressed, do the browser default thing\n return;\n }\n\n event.preventDefault();\n const url = new URL(target.href);\n const verifier = url === null || url === void 0 ? void 0 : url.searchParams.get('verifier');\n const file_id = matches[1]; // TODO:\n // 1. what window should be be using\n // 2. is that the right origin?\n // 3. this is temporary until we can decouple the file previewer from canvas\n\n window.top.postMessage({\n subject: 'preview_file',\n file_id,\n verifier\n }, canvasOrigin);\n }\n}\nfunction showFilePreviewInline(event, disableGooglePreviews) {\n if (event.ctrlKey || event.altKey || event.metaKey || event.shiftKey) {\n // if any modifier keys are pressed, do the browser default thing\n return;\n }\n\n event.preventDefault();\n const $link = event.currentTarget || event.target;\n\n if ($link.getAttribute('aria-expanded') === 'true') {\n // close the preview by clicking the \"Minimize File Preview\" link\n const $preview = document.getElementById($link.getAttribute('aria-controls'));\n $preview.querySelector('.hide_file_preview_link').click();\n return;\n }\n\n Object(_doc_previews__WEBPACK_IMPORTED_MODULE_3__[\"showLoadingImage\"])($link);\n fetch($link.getAttribute('href').replace(/\\/(download|preview)/, '') // download as part of the path\n .replace(/wrap=1&?/, '') // wrap=1 as part of the query_string\n .replace(/[?&]$/, ''), // any trailing chars if wrap=1 was at the end\n {\n method: 'GET',\n headers: {\n Accept: 'application/json'\n },\n credentials: 'include'\n }).then(response => {\n if (!response.ok) throw new Error(`${response.status}: ${response.statusText}`);\n return response;\n }).then(response => response.json()).then(data => {\n const attachment = data && data.attachment;\n Object(_doc_previews__WEBPACK_IMPORTED_MODULE_3__[\"removeLoadingImage\"])($link);\n\n if (attachment && (!disableGooglePreviews && Object(_doc_previews__WEBPACK_IMPORTED_MODULE_3__[\"isPreviewable\"])(attachment.content_type) || attachment.canvadoc_session_url)) {\n $link.setAttribute('aria-expanded', 'true');\n const $div = document.querySelector(`[id=\"${$link.getAttribute('aria-controls')}\"]`);\n $div.style.display = 'block';\n Object(_doc_previews__WEBPACK_IMPORTED_MODULE_3__[\"loadDocPreview\"])($div, {\n canvadoc_session_url: attachment.canvadoc_session_url,\n mimeType: attachment.content_type,\n public_url: attachment.public_url,\n attachment_preview_processing: attachment.workflow_state === 'pending_upload' || attachment.workflow_state === 'processing',\n disableGooglePreviews\n });\n const $minimizeLink = document.createElement('a');\n $minimizeLink.setAttribute('href', '#');\n $minimizeLink.setAttribute('style', 'font-size: 0.8em;');\n $minimizeLink.setAttribute('class', 'hide_file_preview_link');\n $minimizeLink.innerHTML = escape_html__WEBPACK_IMPORTED_MODULE_0___default()(Object(_format_message__WEBPACK_IMPORTED_MODULE_1__[\"default\"])('Minimize File Preview'));\n $minimizeLink.addEventListener('click', event2 => {\n event2.preventDefault();\n resetInlinePreview($link, $div);\n });\n $div.prepend($minimizeLink);\n\n if (Object.prototype.hasOwnProperty.call(event, 'originalEvent')) {\n // Only focus this link if the open preview link was initiated by a real browser event\n // If it was triggered by our auto_open stuff it shouldn't focus here.\n $minimizeLink.focus();\n }\n }\n }).catch(ex => {\n Object(_common_FlashAlert__WEBPACK_IMPORTED_MODULE_2__[\"showFlashAlert\"])({\n message: Object(_format_message__WEBPACK_IMPORTED_MODULE_1__[\"default\"])('Failed getting file contents'),\n type: 'error'\n }); // eslint-disable-next-line no-console\n\n console.error(ex);\n resetInlinePreview($link);\n Object(_doc_previews__WEBPACK_IMPORTED_MODULE_3__[\"removeLoadingImage\"])($link);\n });\n}\n\nfunction resetInlinePreview($link, $previewContainer) {\n $link.setAttribute('aria-expanded', 'false');\n Object(_jqueryish_funcs__WEBPACK_IMPORTED_MODULE_4__[\"show\"])($link);\n $link.focus();\n\n if ($previewContainer) {\n $previewContainer.innerHTML = '';\n $previewContainer.style.display = 'none';\n }\n}\n\n//# sourceURL=webpack:///./src/enhance-user-content/instructure_helper.js?");
17511
17511
 
17512
17512
  /***/ }),
17513
17513
 
@@ -17711,7 +17711,7 @@ eval("__webpack_require__.r(__webpack_exports__);\n/* harmony export (binding) *
17711
17711
  /***/ (function(module, __webpack_exports__, __webpack_require__) {
17712
17712
 
17713
17713
  "use strict";
17714
- eval("__webpack_require__.r(__webpack_exports__);\n/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, \"renderLink\", function() { return renderLink; });\n/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, \"renderLinkedImage\", function() { return renderLinkedImage; });\n/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, \"constructJSXImageElement\", function() { return constructJSXImageElement; });\n/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, \"renderImage\", function() { return renderImage; });\n/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, \"renderVideo\", function() { return renderVideo; });\n/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, \"renderAudio\", function() { return renderAudio; });\n/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, \"getMediaId\", function() { return getMediaId; });\n/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, \"updateImage\", function() { return updateImage; });\n/* harmony import */ var _babel_runtime_corejs3_helpers_esm_extends__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! @babel/runtime-corejs3/helpers/esm/extends */ \"../../node_modules/@babel/runtime-corejs3/helpers/esm/extends.js\");\n/* harmony import */ var react__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! react */ \"../../node_modules/react/index.js\");\n/* harmony import */ var react__WEBPACK_IMPORTED_MODULE_1___default = /*#__PURE__*/__webpack_require__.n(react__WEBPACK_IMPORTED_MODULE_1__);\n/* harmony import */ var react_dom_server__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! react-dom/server */ \"../../node_modules/react-dom/server.browser.js\");\n/* harmony import */ var react_dom_server__WEBPACK_IMPORTED_MODULE_2___default = /*#__PURE__*/__webpack_require__.n(react_dom_server__WEBPACK_IMPORTED_MODULE_2__);\n/* harmony import */ var _contentInsertionUtils__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! ./contentInsertionUtils */ \"./src/rce/contentInsertionUtils.js\");\n/* harmony import */ var _format_message__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(/*! ../format-message */ \"./src/format-message.js\");\n/* harmony import */ var _plugins_instructure_record_VideoOptionsTray_TrayController__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__(/*! ./plugins/instructure_record/VideoOptionsTray/TrayController */ \"./src/rce/plugins/instructure_record/VideoOptionsTray/TrayController.js\");\n/* harmony import */ var _plugins_shared_fileTypeUtils__WEBPACK_IMPORTED_MODULE_6__ = __webpack_require__(/*! ./plugins/shared/fileTypeUtils */ \"./src/rce/plugins/shared/fileTypeUtils.js\");\n/* harmony import */ var _common_fileUrl__WEBPACK_IMPORTED_MODULE_7__ = __webpack_require__(/*! ../common/fileUrl */ \"./src/common/fileUrl.js\");\n\n\n/*\n * Copyright (C) 2018 - present Instructure, Inc.\n *\n * This file is part of Canvas.\n *\n * Canvas is free software: you can redistribute it and/or modify it under\n * the terms of the GNU Affero General Public License as published by the Free\n * Software Foundation, version 3 of the License.\n *\n * Canvas is distributed in the hope that it will be useful, but WITHOUT ANY\n * WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR\n * A PARTICULAR PURPOSE. See the GNU Affero General Public License for more\n * details.\n *\n * You should have received a copy of the GNU Affero General Public License along\n * with this program. If not, see <http://www.gnu.org/licenses/>.\n */\n\n\n\n\n\n\n\nfunction renderLink(data, contents, canvasOrigin) {\n const linkAttrs = { ...data\n };\n linkAttrs.href = Object(_common_fileUrl__WEBPACK_IMPORTED_MODULE_7__[\"prepLinkedSrc\"])(linkAttrs.href || linkAttrs.url);\n delete linkAttrs.url;\n\n if (linkAttrs.href) {\n linkAttrs.href = Object(_common_fileUrl__WEBPACK_IMPORTED_MODULE_7__[\"absoluteToRelativeUrl\"])(Object(_contentInsertionUtils__WEBPACK_IMPORTED_MODULE_3__[\"cleanUrl\"])(linkAttrs.href), canvasOrigin);\n }\n\n linkAttrs.title = linkAttrs.title || Object(_format_message__WEBPACK_IMPORTED_MODULE_4__[\"default\"])('Link');\n const children = contents || linkAttrs.text || linkAttrs.title;\n delete linkAttrs.selectionDetails;\n delete linkAttrs.text;\n linkAttrs.className = linkAttrs.class;\n delete linkAttrs.class; // renderToStaticMarkup isn't happy with bool attributes\n\n Object.keys(linkAttrs).forEach(attr => {\n if (typeof linkAttrs[attr] === 'boolean') linkAttrs[attr] = linkAttrs[attr].toString();\n });\n return Object(react_dom_server__WEBPACK_IMPORTED_MODULE_2__[\"renderToStaticMarkup\"])( /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1___default.a.createElement(\"a\", linkAttrs, children));\n}\nfunction renderLinkedImage(linkElem, image, canvasOrigin) {\n const linkHref = linkElem.getAttribute('href');\n image.href = Object(_common_fileUrl__WEBPACK_IMPORTED_MODULE_7__[\"prepEmbedSrc\"])(image.href);\n return Object(react_dom_server__WEBPACK_IMPORTED_MODULE_2__[\"renderToStaticMarkup\"])( /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1___default.a.createElement(\"a\", {\n href: Object(_common_fileUrl__WEBPACK_IMPORTED_MODULE_7__[\"absoluteToRelativeUrl\"])(linkHref, canvasOrigin),\n \"data-mce-href\": linkHref\n }, constructJSXImageElement(image, canvasOrigin, {\n doNotLink: true\n })));\n}\nfunction constructJSXImageElement(image, canvasOrigin) {\n let opts = arguments.length > 2 && arguments[2] !== undefined ? arguments[2] : {};\n const {\n href,\n url,\n src,\n title,\n display_name,\n alt_text,\n isDecorativeImage,\n link,\n ...otherAttributes\n } = image;\n const imageSrc = Object(_common_fileUrl__WEBPACK_IMPORTED_MODULE_7__[\"absoluteToRelativeUrl\"])(href || url || src, canvasOrigin);\n let altText = alt_text || title || display_name || '';\n\n if (isDecorativeImage) {\n altText = '';\n otherAttributes.role = 'presentation';\n }\n\n const ret = /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1___default.a.createElement(\"img\", Object(_babel_runtime_corejs3_helpers_esm_extends__WEBPACK_IMPORTED_MODULE_0__[\"default\"])({\n alt: altText,\n src: imageSrc,\n width: image.width,\n height: image.height\n }, otherAttributes));\n\n if (link && !opts.doNotLink) {\n return /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1___default.a.createElement(\"a\", {\n href: Object(_common_fileUrl__WEBPACK_IMPORTED_MODULE_7__[\"absoluteToRelativeUrl\"])(link, canvasOrigin),\n target: \"_blank\",\n rel: \"noopener noreferrer\"\n }, ret);\n }\n\n return ret;\n}\nfunction renderImage(image, canvasOrigin, opts) {\n image.href = Object(_common_fileUrl__WEBPACK_IMPORTED_MODULE_7__[\"prepEmbedSrc\"])(image.href);\n return Object(react_dom_server__WEBPACK_IMPORTED_MODULE_2__[\"renderToStaticMarkup\"])(constructJSXImageElement(image, canvasOrigin, opts));\n}\nfunction renderVideo(video, canvasOrigin) {\n const src = Object(_plugins_shared_fileTypeUtils__WEBPACK_IMPORTED_MODULE_6__[\"mediaPlayerURLFromFile\"])(video, canvasOrigin);\n return `\n <iframe\n allow=\"fullscreen\"\n allowfullscreen\n data-media-id=\"${getMediaId(video)}\"\n data-media-type=\"video\"\n src=\"${src}\"\n style=\"width:${_plugins_instructure_record_VideoOptionsTray_TrayController__WEBPACK_IMPORTED_MODULE_5__[\"VIDEO_SIZE_DEFAULT\"].width};height:${_plugins_instructure_record_VideoOptionsTray_TrayController__WEBPACK_IMPORTED_MODULE_5__[\"VIDEO_SIZE_DEFAULT\"].height};display:inline-block;\"\n title=\"${Object(_format_message__WEBPACK_IMPORTED_MODULE_4__[\"default\"])('Video player for {title}', {\n title: video.title || video.name || video.text\n })}\"></iframe>\n `.trim().replace(/\\s+/g, ' ');\n}\nfunction renderAudio(audio, canvasOrigin) {\n const src = Object(_plugins_shared_fileTypeUtils__WEBPACK_IMPORTED_MODULE_6__[\"mediaPlayerURLFromFile\"])(audio, canvasOrigin);\n return `\n <iframe\n data-media-id=\"${getMediaId(audio)}\"\n data-media-type=\"audio\"\n src=\"${src}\"\n style=\"width:${_plugins_instructure_record_VideoOptionsTray_TrayController__WEBPACK_IMPORTED_MODULE_5__[\"AUDIO_PLAYER_SIZE\"].width};height:${_plugins_instructure_record_VideoOptionsTray_TrayController__WEBPACK_IMPORTED_MODULE_5__[\"AUDIO_PLAYER_SIZE\"].height};display:inline-block;\"\n title=\"${Object(_format_message__WEBPACK_IMPORTED_MODULE_4__[\"default\"])('Audio player for {title}', {\n title: audio.title || audio.name || audio.text\n })}\"></iframe>\n `.trim().replace(/\\s+/g, ' ');\n}\nfunction getMediaId(media) {\n if (!media) return;\n return media.media_id || media.media_entry_id || media.id || media.file_id;\n}\nfunction updateImage(editor, img, attrs) {\n var _editor$rceWrapper;\n\n // Workaround: When passing empty string to editor.dom.setAttribs it removes the attribute\n img.setAttribute('alt', attrs.altText);\n editor.dom.setAttribs(img, {\n src: Object(_common_fileUrl__WEBPACK_IMPORTED_MODULE_7__[\"absoluteToRelativeUrl\"])(attrs.url, (_editor$rceWrapper = editor.rceWrapper) === null || _editor$rceWrapper === void 0 ? void 0 : _editor$rceWrapper.getCanvasUrl()),\n role: attrs.isDecorativeImage ? 'presentation' : null,\n width: attrs.appliedWidth,\n height: attrs.appliedHeight\n });\n}\n\n//# sourceURL=webpack:///./src/rce/contentRendering.js?");
17714
+ eval("__webpack_require__.r(__webpack_exports__);\n/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, \"renderLink\", function() { return renderLink; });\n/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, \"renderLinkedImage\", function() { return renderLinkedImage; });\n/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, \"constructJSXImageElement\", function() { return constructJSXImageElement; });\n/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, \"renderImage\", function() { return renderImage; });\n/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, \"renderVideo\", function() { return renderVideo; });\n/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, \"renderAudio\", function() { return renderAudio; });\n/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, \"getMediaId\", function() { return getMediaId; });\n/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, \"updateImage\", function() { return updateImage; });\n/* harmony import */ var _babel_runtime_corejs3_helpers_esm_extends__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! @babel/runtime-corejs3/helpers/esm/extends */ \"../../node_modules/@babel/runtime-corejs3/helpers/esm/extends.js\");\n/* harmony import */ var react__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! react */ \"../../node_modules/react/index.js\");\n/* harmony import */ var react__WEBPACK_IMPORTED_MODULE_1___default = /*#__PURE__*/__webpack_require__.n(react__WEBPACK_IMPORTED_MODULE_1__);\n/* harmony import */ var react_dom_server__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! react-dom/server */ \"../../node_modules/react-dom/server.browser.js\");\n/* harmony import */ var react_dom_server__WEBPACK_IMPORTED_MODULE_2___default = /*#__PURE__*/__webpack_require__.n(react_dom_server__WEBPACK_IMPORTED_MODULE_2__);\n/* harmony import */ var _contentInsertionUtils__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! ./contentInsertionUtils */ \"./src/rce/contentInsertionUtils.js\");\n/* harmony import */ var _format_message__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(/*! ../format-message */ \"./src/format-message.js\");\n/* harmony import */ var _plugins_instructure_record_VideoOptionsTray_TrayController__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__(/*! ./plugins/instructure_record/VideoOptionsTray/TrayController */ \"./src/rce/plugins/instructure_record/VideoOptionsTray/TrayController.js\");\n/* harmony import */ var _plugins_shared_fileTypeUtils__WEBPACK_IMPORTED_MODULE_6__ = __webpack_require__(/*! ./plugins/shared/fileTypeUtils */ \"./src/rce/plugins/shared/fileTypeUtils.js\");\n/* harmony import */ var _common_fileUrl__WEBPACK_IMPORTED_MODULE_7__ = __webpack_require__(/*! ../common/fileUrl */ \"./src/common/fileUrl.js\");\n\n\n/*\n * Copyright (C) 2018 - present Instructure, Inc.\n *\n * This file is part of Canvas.\n *\n * Canvas is free software: you can redistribute it and/or modify it under\n * the terms of the GNU Affero General Public License as published by the Free\n * Software Foundation, version 3 of the License.\n *\n * Canvas is distributed in the hope that it will be useful, but WITHOUT ANY\n * WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR\n * A PARTICULAR PURPOSE. See the GNU Affero General Public License for more\n * details.\n *\n * You should have received a copy of the GNU Affero General Public License along\n * with this program. If not, see <http://www.gnu.org/licenses/>.\n */\n\n\n\n\n\n\n\nfunction renderLink(data, contents, canvasOrigin) {\n const linkAttrs = { ...data\n };\n linkAttrs.href = Object(_common_fileUrl__WEBPACK_IMPORTED_MODULE_7__[\"prepLinkedSrc\"])(linkAttrs.href || linkAttrs.url);\n delete linkAttrs.url;\n\n if (linkAttrs.href) {\n linkAttrs.href = Object(_common_fileUrl__WEBPACK_IMPORTED_MODULE_7__[\"absoluteToRelativeUrl\"])(Object(_contentInsertionUtils__WEBPACK_IMPORTED_MODULE_3__[\"cleanUrl\"])(linkAttrs.href), canvasOrigin);\n }\n\n linkAttrs.title = linkAttrs.title || Object(_format_message__WEBPACK_IMPORTED_MODULE_4__[\"default\"])('Link');\n const children = contents || linkAttrs.text || linkAttrs.title;\n delete linkAttrs.selectionDetails;\n delete linkAttrs.text;\n linkAttrs.className = linkAttrs.class;\n delete linkAttrs.class; // renderToStaticMarkup isn't happy with bool attributes\n\n Object.keys(linkAttrs).forEach(attr => {\n if (typeof linkAttrs[attr] === 'boolean') linkAttrs[attr] = linkAttrs[attr].toString();\n });\n return Object(react_dom_server__WEBPACK_IMPORTED_MODULE_2__[\"renderToStaticMarkup\"])( /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1___default.a.createElement(\"a\", linkAttrs, children));\n}\nfunction renderLinkedImage(linkElem, image, canvasOrigin) {\n const linkHref = linkElem.getAttribute('href');\n image.href = Object(_common_fileUrl__WEBPACK_IMPORTED_MODULE_7__[\"prepEmbedSrc\"])(image.href, canvasOrigin);\n return Object(react_dom_server__WEBPACK_IMPORTED_MODULE_2__[\"renderToStaticMarkup\"])( /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1___default.a.createElement(\"a\", {\n href: Object(_common_fileUrl__WEBPACK_IMPORTED_MODULE_7__[\"absoluteToRelativeUrl\"])(linkHref, canvasOrigin),\n \"data-mce-href\": linkHref\n }, constructJSXImageElement(image, canvasOrigin, {\n doNotLink: true\n })));\n}\nfunction constructJSXImageElement(image, canvasOrigin) {\n let opts = arguments.length > 2 && arguments[2] !== undefined ? arguments[2] : {};\n const {\n href,\n url,\n src,\n title,\n display_name,\n alt_text,\n isDecorativeImage,\n link,\n ...otherAttributes\n } = image;\n const imageSrc = Object(_common_fileUrl__WEBPACK_IMPORTED_MODULE_7__[\"absoluteToRelativeUrl\"])(href || url || src, canvasOrigin);\n let altText = alt_text || title || display_name || '';\n\n if (isDecorativeImage) {\n altText = '';\n otherAttributes.role = 'presentation';\n }\n\n const ret = /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1___default.a.createElement(\"img\", Object(_babel_runtime_corejs3_helpers_esm_extends__WEBPACK_IMPORTED_MODULE_0__[\"default\"])({\n alt: altText,\n src: imageSrc,\n width: image.width,\n height: image.height\n }, otherAttributes));\n\n if (link && !opts.doNotLink) {\n return /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1___default.a.createElement(\"a\", {\n href: Object(_common_fileUrl__WEBPACK_IMPORTED_MODULE_7__[\"absoluteToRelativeUrl\"])(link, canvasOrigin),\n target: \"_blank\",\n rel: \"noopener noreferrer\"\n }, ret);\n }\n\n return ret;\n}\nfunction renderImage(image, canvasOrigin, opts) {\n image.href = Object(_common_fileUrl__WEBPACK_IMPORTED_MODULE_7__[\"prepEmbedSrc\"])(image.href, canvasOrigin);\n return Object(react_dom_server__WEBPACK_IMPORTED_MODULE_2__[\"renderToStaticMarkup\"])(constructJSXImageElement(image, canvasOrigin, opts));\n}\nfunction renderVideo(video, canvasOrigin) {\n const src = Object(_plugins_shared_fileTypeUtils__WEBPACK_IMPORTED_MODULE_6__[\"mediaPlayerURLFromFile\"])(video, canvasOrigin);\n return `\n <iframe\n allow=\"fullscreen\"\n allowfullscreen\n data-media-id=\"${getMediaId(video)}\"\n data-media-type=\"video\"\n src=\"${src}\"\n style=\"width:${_plugins_instructure_record_VideoOptionsTray_TrayController__WEBPACK_IMPORTED_MODULE_5__[\"VIDEO_SIZE_DEFAULT\"].width};height:${_plugins_instructure_record_VideoOptionsTray_TrayController__WEBPACK_IMPORTED_MODULE_5__[\"VIDEO_SIZE_DEFAULT\"].height};display:inline-block;\"\n title=\"${Object(_format_message__WEBPACK_IMPORTED_MODULE_4__[\"default\"])('Video player for {title}', {\n title: video.title || video.name || video.text\n })}\"></iframe>\n `.trim().replace(/\\s+/g, ' ');\n}\nfunction renderAudio(audio, canvasOrigin) {\n const src = Object(_plugins_shared_fileTypeUtils__WEBPACK_IMPORTED_MODULE_6__[\"mediaPlayerURLFromFile\"])(audio, canvasOrigin);\n return `\n <iframe\n data-media-id=\"${getMediaId(audio)}\"\n data-media-type=\"audio\"\n src=\"${src}\"\n style=\"width:${_plugins_instructure_record_VideoOptionsTray_TrayController__WEBPACK_IMPORTED_MODULE_5__[\"AUDIO_PLAYER_SIZE\"].width};height:${_plugins_instructure_record_VideoOptionsTray_TrayController__WEBPACK_IMPORTED_MODULE_5__[\"AUDIO_PLAYER_SIZE\"].height};display:inline-block;\"\n title=\"${Object(_format_message__WEBPACK_IMPORTED_MODULE_4__[\"default\"])('Audio player for {title}', {\n title: audio.title || audio.name || audio.text\n })}\"></iframe>\n `.trim().replace(/\\s+/g, ' ');\n}\nfunction getMediaId(media) {\n if (!media) return;\n return media.media_id || media.media_entry_id || media.id || media.file_id;\n}\nfunction updateImage(editor, img, attrs) {\n var _editor$rceWrapper;\n\n // Workaround: When passing empty string to editor.dom.setAttribs it removes the attribute\n img.setAttribute('alt', attrs.altText);\n editor.dom.setAttribs(img, {\n src: Object(_common_fileUrl__WEBPACK_IMPORTED_MODULE_7__[\"absoluteToRelativeUrl\"])(attrs.url, (_editor$rceWrapper = editor.rceWrapper) === null || _editor$rceWrapper === void 0 ? void 0 : _editor$rceWrapper.getCanvasUrl()),\n role: attrs.isDecorativeImage ? 'presentation' : null,\n width: attrs.appliedWidth,\n height: attrs.appliedHeight\n });\n}\n\n//# sourceURL=webpack:///./src/rce/contentRendering.js?");
17715
17715
 
17716
17716
  /***/ }),
17717
17717
 
@@ -17838,11 +17838,11 @@ eval("__webpack_require__.r(__webpack_exports__);\n/* harmony import */ var _for
17838
17838
  /*!*********************************************************************!*\
17839
17839
  !*** ./src/rce/plugins/instructure_wordcount/utils/countContent.ts ***!
17840
17840
  \*********************************************************************/
17841
- /*! exports provided: IGNORE_ATTRIBUTE, countWords, countCharsNoSpaces, countChars, callbackForCategory, countShouldIgnore, getTinymceCount, countContent */
17841
+ /*! exports provided: IGNORE_WORDCOUNT_ATTRIBUTE, countWords, countCharsNoSpaces, countChars, callbackForCategory, countShouldIgnore, getTinymceCount, countContent */
17842
17842
  /***/ (function(module, __webpack_exports__, __webpack_require__) {
17843
17843
 
17844
17844
  "use strict";
17845
- eval("__webpack_require__.r(__webpack_exports__);\n/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, \"IGNORE_ATTRIBUTE\", function() { return IGNORE_ATTRIBUTE; });\n/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, \"countWords\", function() { return countWords; });\n/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, \"countCharsNoSpaces\", function() { return countCharsNoSpaces; });\n/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, \"countChars\", function() { return countChars; });\n/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, \"callbackForCategory\", function() { return callbackForCategory; });\n/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, \"countShouldIgnore\", function() { return countShouldIgnore; });\n/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, \"getTinymceCount\", function() { return getTinymceCount; });\n/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, \"countContent\", function() { return countContent; });\n/*\n * Copyright (C) 2022 - present Instructure, Inc.\n *\n * This file is part of Canvas.\n *\n * Canvas is free software: you can redistribute it and/or modify it under\n * the terms of the GNU Affero General Public License as published by the Free\n * Software Foundation, version 3 of the License.\n *\n * Canvas is distributed in the hope that it will be useful, but WITHOUT ANY\n * WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR\n * A PARTICULAR PURPOSE. See the GNU Affero General Public License for more\n * details.\n *\n * You should have received a copy of the GNU Affero General Public License along\n * with this program. If not, see <http://www.gnu.org/licenses/>.\n */\nconst IGNORE_ATTRIBUTE = 'data-ignore-wordcount';\nconst countWords = node => {\n if (node.getAttribute(IGNORE_ATTRIBUTE) === 'chars-only') return 0;\n const textContent = (node === null || node === void 0 ? void 0 : node.innerText) || '';\n const trimmedTextContent = textContent.trim();\n if (trimmedTextContent.length === 0) return 0;\n return trimmedTextContent.split(/\\s+/).length;\n};\nconst countCharsNoSpaces = node => {\n const textContent = (node === null || node === void 0 ? void 0 : node.innerText) || '';\n const matches = textContent.match(/ /g); // a single space\n\n const spaces = matches ? matches.length : 0;\n return countChars(node) - spaces;\n};\nconst countChars = node => {\n const textContent = (node === null || node === void 0 ? void 0 : node.innerText) || '';\n const iterator = textContent[Symbol.iterator]();\n let count = 0;\n\n while (!iterator.next().done) {\n count++;\n }\n\n return count;\n};\nconst callbackForCategory = category => {\n switch (category) {\n case 'words':\n return countWords;\n\n case 'chars-no-spaces':\n return countCharsNoSpaces;\n\n case 'chars':\n return countChars;\n }\n};\nconst countShouldIgnore = (ed, scope, category) => {\n if (scope === 'selection') return 0;\n const nodesToCount = Array.from(ed.getBody().querySelectorAll(`[${IGNORE_ATTRIBUTE}]`));\n const callback = callbackForCategory(category);\n return nodesToCount.reduce((total, node) => total + callback(node), 0);\n};\nconst getTinymceCount = (ed, scope, category) => {\n const wc = ed.plugins.wordcount[scope];\n\n switch (category) {\n case 'words':\n return wc.getWordCount();\n\n case 'chars-no-spaces':\n return wc.getCharacterCountWithoutSpaces();\n\n case 'chars':\n return wc.getCharacterCount();\n }\n};\nconst countContent = (ed, scope, category) => {\n return getTinymceCount(ed, scope, category) - countShouldIgnore(ed, scope, category);\n};\n\n//# sourceURL=webpack:///./src/rce/plugins/instructure_wordcount/utils/countContent.ts?");
17845
+ eval("__webpack_require__.r(__webpack_exports__);\n/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, \"IGNORE_WORDCOUNT_ATTRIBUTE\", function() { return IGNORE_WORDCOUNT_ATTRIBUTE; });\n/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, \"countWords\", function() { return countWords; });\n/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, \"countCharsNoSpaces\", function() { return countCharsNoSpaces; });\n/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, \"countChars\", function() { return countChars; });\n/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, \"callbackForCategory\", function() { return callbackForCategory; });\n/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, \"countShouldIgnore\", function() { return countShouldIgnore; });\n/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, \"getTinymceCount\", function() { return getTinymceCount; });\n/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, \"countContent\", function() { return countContent; });\n/*\n * Copyright (C) 2022 - present Instructure, Inc.\n *\n * This file is part of Canvas.\n *\n * Canvas is free software: you can redistribute it and/or modify it under\n * the terms of the GNU Affero General Public License as published by the Free\n * Software Foundation, version 3 of the License.\n *\n * Canvas is distributed in the hope that it will be useful, but WITHOUT ANY\n * WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR\n * A PARTICULAR PURPOSE. See the GNU Affero General Public License for more\n * details.\n *\n * You should have received a copy of the GNU Affero General Public License along\n * with this program. If not, see <http://www.gnu.org/licenses/>.\n */\nconst IGNORE_WORDCOUNT_ATTRIBUTE = 'data-ignore-wordcount';\nconst countWords = node => {\n if (node.getAttribute(IGNORE_WORDCOUNT_ATTRIBUTE) === 'chars-only') return 0;\n const textContent = (node === null || node === void 0 ? void 0 : node.innerText) || '';\n const trimmedTextContent = textContent.trim();\n if (trimmedTextContent.length === 0) return 0;\n return trimmedTextContent.split(/\\s+/).length;\n};\nconst countCharsNoSpaces = node => {\n const textContent = (node === null || node === void 0 ? void 0 : node.innerText) || '';\n const matches = textContent.match(/ /g); // a single space\n\n const spaces = matches ? matches.length : 0;\n return countChars(node) - spaces;\n};\nconst countChars = node => {\n const textContent = (node === null || node === void 0 ? void 0 : node.innerText) || '';\n const iterator = textContent[Symbol.iterator]();\n let count = 0;\n\n while (!iterator.next().done) {\n count++;\n }\n\n return count;\n};\nconst callbackForCategory = category => {\n switch (category) {\n case 'words':\n return countWords;\n\n case 'chars-no-spaces':\n return countCharsNoSpaces;\n\n case 'chars':\n return countChars;\n }\n};\nconst countShouldIgnore = (ed, scope, category) => {\n if (scope === 'selection') return 0;\n const nodesToCount = Array.from(ed.getBody().querySelectorAll(`[${IGNORE_WORDCOUNT_ATTRIBUTE}]`));\n const callback = callbackForCategory(category);\n return nodesToCount.reduce((total, node) => total + callback(node), 0);\n};\nconst getTinymceCount = (ed, scope, category) => {\n const wc = ed.plugins.wordcount[scope];\n\n switch (category) {\n case 'words':\n return wc.getWordCount();\n\n case 'chars-no-spaces':\n return wc.getCharacterCountWithoutSpaces();\n\n case 'chars':\n return wc.getCharacterCount();\n }\n};\nconst countContent = (ed, scope, category) => {\n return getTinymceCount(ed, scope, category) - countShouldIgnore(ed, scope, category);\n};\n\n//# sourceURL=webpack:///./src/rce/plugins/instructure_wordcount/utils/countContent.ts?");
17846
17846
 
17847
17847
  /***/ }),
17848
17848
 
@@ -17854,7 +17854,7 @@ eval("__webpack_require__.r(__webpack_exports__);\n/* harmony export (binding) *
17854
17854
  /***/ (function(module, __webpack_exports__, __webpack_require__) {
17855
17855
 
17856
17856
  "use strict";
17857
- eval("__webpack_require__.r(__webpack_exports__);\n/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, \"default\", function() { return CanvasContentTray; });\n/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, \"trayPropTypes\", function() { return trayPropTypes; });\n/* harmony import */ var _babel_runtime_corejs3_helpers_esm_extends__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! @babel/runtime-corejs3/helpers/esm/extends */ \"../../node_modules/@babel/runtime-corejs3/helpers/esm/extends.js\");\n/* harmony import */ var react__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! react */ \"../../node_modules/react/index.js\");\n/* harmony import */ var react__WEBPACK_IMPORTED_MODULE_1___default = /*#__PURE__*/__webpack_require__.n(react__WEBPACK_IMPORTED_MODULE_1__);\n/* harmony import */ var prop_types__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! prop-types */ \"../../node_modules/prop-types/index.js\");\n/* harmony import */ var prop_types__WEBPACK_IMPORTED_MODULE_2___default = /*#__PURE__*/__webpack_require__.n(prop_types__WEBPACK_IMPORTED_MODULE_2__);\n/* harmony import */ var _instructure_ui_tray__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! @instructure/ui-tray */ \"../../node_modules/@instructure/ui-tray/es/index.js\");\n/* harmony import */ var _instructure_ui_buttons__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(/*! @instructure/ui-buttons */ \"../../node_modules/@instructure/ui-buttons/es/index.js\");\n/* harmony import */ var _instructure_ui_heading__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__(/*! @instructure/ui-heading */ \"../../node_modules/@instructure/ui-heading/es/index.js\");\n/* harmony import */ var _instructure_ui_spinner__WEBPACK_IMPORTED_MODULE_6__ = __webpack_require__(/*! @instructure/ui-spinner */ \"../../node_modules/@instructure/ui-spinner/es/index.js\");\n/* harmony import */ var _instructure_ui_flex__WEBPACK_IMPORTED_MODULE_7__ = __webpack_require__(/*! @instructure/ui-flex */ \"../../node_modules/@instructure/ui-flex/es/index.js\");\n/* harmony import */ var _ErrorBoundary__WEBPACK_IMPORTED_MODULE_8__ = __webpack_require__(/*! ./ErrorBoundary */ \"./src/rce/plugins/shared/ErrorBoundary.js\");\n/* harmony import */ var _bridge_Bridge__WEBPACK_IMPORTED_MODULE_9__ = __webpack_require__(/*! ../../../bridge/Bridge */ \"./src/bridge/Bridge.js\");\n/* harmony import */ var _format_message__WEBPACK_IMPORTED_MODULE_10__ = __webpack_require__(/*! ../../../format-message */ \"./src/format-message.js\");\n/* harmony import */ var _Filter__WEBPACK_IMPORTED_MODULE_11__ = __webpack_require__(/*! ./Filter */ \"./src/rce/plugins/shared/Filter.js\");\n/* harmony import */ var _StoreContext__WEBPACK_IMPORTED_MODULE_12__ = __webpack_require__(/*! ./StoreContext */ \"./src/rce/plugins/shared/StoreContext.js\");\n/* harmony import */ var _trayUtils__WEBPACK_IMPORTED_MODULE_13__ = __webpack_require__(/*! ./trayUtils */ \"./src/rce/plugins/shared/trayUtils.js\");\n/* harmony import */ var _instructure_icon_maker_svg_constants__WEBPACK_IMPORTED_MODULE_14__ = __webpack_require__(/*! ../instructure_icon_maker/svg/constants */ \"./src/rce/plugins/instructure_icon_maker/svg/constants.js\");\n/* harmony import */ var _ContentSelection__WEBPACK_IMPORTED_MODULE_15__ = __webpack_require__(/*! ./ContentSelection */ \"./src/rce/plugins/shared/ContentSelection.js\");\n/* harmony import */ var _linkUtils__WEBPACK_IMPORTED_MODULE_16__ = __webpack_require__(/*! ./linkUtils */ \"./src/rce/plugins/shared/linkUtils.js\");\n/* harmony import */ var _LinkDisplay__WEBPACK_IMPORTED_MODULE_17__ = __webpack_require__(/*! ./LinkDisplay */ \"./src/rce/plugins/shared/LinkDisplay.js\");\n\n\n/*\n * Copyright (C) 2019 - present Instructure, Inc.\n *\n * This file is part of Canvas.\n *\n * Canvas is free software: you can redistribute it and/or modify it under\n * the terms of the GNU Affero General Public License as published by the Free\n * Software Foundation, version 3 of the License.\n *\n * Canvas is distributed in the hope that it will be useful, but WITHOUT ANY\n * WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR\n * A PARTICULAR PURPOSE. See the GNU Affero General Public License for more\n * details.\n *\n * You should have received a copy of the GNU Affero General Public License along\n * with this program. If not, see <http://www.gnu.org/licenses/>.\n */\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n/**\n * Returns the translated tray label\n * @param {string} contentType - The type of content showing on tray\n * @param {string} contentSubtype - The current subtype of content loaded in the tray\n * @param {string} contextType - The user's context\n * @returns {string}\n */\n\nfunction getTrayLabel(contentType, contentSubtype, contextType) {\n if (contentType === 'links' && contextType === 'course') {\n return Object(_format_message__WEBPACK_IMPORTED_MODULE_10__[\"default\"])('Course Links');\n } else if (contentType === 'links' && contextType === 'group') {\n return Object(_format_message__WEBPACK_IMPORTED_MODULE_10__[\"default\"])('Group Links');\n }\n\n switch (contentSubtype) {\n case _instructure_icon_maker_svg_constants__WEBPACK_IMPORTED_MODULE_14__[\"ICON_MAKER_ICONS\"]:\n return Object(_format_message__WEBPACK_IMPORTED_MODULE_10__[\"default\"])('Icon Maker Icons');\n\n case 'images':\n if (contentType === 'course_files') return Object(_format_message__WEBPACK_IMPORTED_MODULE_10__[\"default\"])('Course Images');\n if (contentType === 'group_files') return Object(_format_message__WEBPACK_IMPORTED_MODULE_10__[\"default\"])('Group Images');\n return Object(_format_message__WEBPACK_IMPORTED_MODULE_10__[\"default\"])('User Images');\n\n case 'media':\n if (contentType === 'course_files') return Object(_format_message__WEBPACK_IMPORTED_MODULE_10__[\"default\"])('Course Media');\n if (contentType === 'group_files') return Object(_format_message__WEBPACK_IMPORTED_MODULE_10__[\"default\"])('Group Media');\n return Object(_format_message__WEBPACK_IMPORTED_MODULE_10__[\"default\"])('User Media');\n\n case 'documents':\n if (contentType === 'course_files') return Object(_format_message__WEBPACK_IMPORTED_MODULE_10__[\"default\"])('Course Documents');\n if (contentType === 'group_files') return Object(_format_message__WEBPACK_IMPORTED_MODULE_10__[\"default\"])('Group Documents');\n return Object(_format_message__WEBPACK_IMPORTED_MODULE_10__[\"default\"])('User Documents');\n\n default:\n return Object(_format_message__WEBPACK_IMPORTED_MODULE_10__[\"default\"])('Tray');\n // Shouldn't ever get here\n }\n}\n\nconst thePanels = {\n icon_maker_icons: /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1___default.a.lazy(() => Promise.all(/*! import() */[__webpack_require__.e(0), __webpack_require__.e(3), __webpack_require__.e(1), __webpack_require__.e(32)]).then(__webpack_require__.bind(null, /*! ../instructure_icon_maker/components/SavedIconMakerList */ \"./src/rce/plugins/instructure_icon_maker/components/SavedIconMakerList.js\"))),\n links: /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1___default.a.lazy(() => Promise.all(/*! import() */[__webpack_require__.e(2), __webpack_require__.e(28)]).then(__webpack_require__.bind(null, /*! ../instructure_links/components/LinksPanel */ \"./src/rce/plugins/instructure_links/components/LinksPanel.js\"))),\n images: /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1___default.a.lazy(() => Promise.all(/*! import() */[__webpack_require__.e(0), __webpack_require__.e(3), __webpack_require__.e(1), __webpack_require__.e(35)]).then(__webpack_require__.bind(null, /*! ../instructure_image/Images */ \"./src/rce/plugins/instructure_image/Images/index.js\"))),\n documents: /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1___default.a.lazy(() => Promise.all(/*! import() */[__webpack_require__.e(1), __webpack_require__.e(33)]).then(__webpack_require__.bind(null, /*! ../instructure_documents/components/DocumentsPanel */ \"./src/rce/plugins/instructure_documents/components/DocumentsPanel.js\"))),\n media: /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1___default.a.lazy(() => Promise.all(/*! import() */[__webpack_require__.e(1), __webpack_require__.e(34)]).then(__webpack_require__.bind(null, /*! ../instructure_record/MediaPanel */ \"./src/rce/plugins/instructure_record/MediaPanel/index.js\"))),\n all: /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1___default.a.lazy(() => Promise.all(/*! import() */[__webpack_require__.e(0), __webpack_require__.e(29), __webpack_require__.e(36)]).then(__webpack_require__.bind(null, /*! ./RceFileBrowser */ \"./src/rce/plugins/shared/RceFileBrowser.js\"))),\n unknown: /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1___default.a.lazy(() => __webpack_require__.e(/*! import() */ 75).then(__webpack_require__.bind(null, /*! ./UnknownFileTypePanel */ \"./src/rce/plugins/shared/UnknownFileTypePanel.js\")))\n}; // Returns a Suspense wrapped lazy loaded component\n// pulled from useLazy's cache\n\nfunction DynamicPanel(props) {\n let key = '';\n\n if (props.contentType === 'links') {\n key = 'links';\n } else {\n key = props.contentSubtype in thePanels ? props.contentSubtype : 'unknown';\n }\n\n const Component = thePanels[key];\n return /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1___default.a.createElement(react__WEBPACK_IMPORTED_MODULE_1__[\"Suspense\"], {\n fallback: /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1___default.a.createElement(_instructure_ui_spinner__WEBPACK_IMPORTED_MODULE_6__[\"Spinner\"], {\n renderTitle: renderLoading,\n size: \"large\"\n })\n }, /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1___default.a.createElement(Component, props));\n}\n\nfunction renderLoading() {\n return Object(_format_message__WEBPACK_IMPORTED_MODULE_10__[\"default\"])('Loading');\n}\n\nconst FILTER_SETTINGS_BY_PLUGIN = {\n user_documents: {\n contextType: 'user',\n contentType: 'user_files',\n contentSubtype: 'documents',\n sortValue: 'date_added',\n sortDir: 'desc',\n searchString: ''\n },\n course_documents: {\n contextType: 'course',\n contentType: 'course_files',\n contentSubtype: 'documents',\n sortValue: 'date_added',\n sortDir: 'desc',\n searchString: ''\n },\n group_documents: {\n contextType: 'group',\n contentType: 'group_files',\n contentSubtype: 'documents',\n sortValue: 'date_added',\n sortDir: 'desc',\n searchString: ''\n },\n user_images: {\n contextType: 'user',\n contentType: 'user_files',\n contentSubtype: 'images',\n sortValue: 'date_added',\n sortDir: 'desc',\n searchString: ''\n },\n course_images: {\n contextType: 'course',\n contentType: 'course_files',\n contentSubtype: 'images',\n sortValue: 'date_added',\n sortDir: 'desc',\n searchString: ''\n },\n group_images: {\n contextType: 'group',\n contentType: 'group_files',\n contentSubtype: 'images',\n sortValue: 'date_added',\n sortDir: 'desc',\n searchString: ''\n },\n user_media: {\n contextType: 'user',\n contentType: 'user_files',\n contentSubtype: 'media',\n sortValue: 'date_added',\n sortDir: 'desc',\n searchString: ''\n },\n course_media: {\n contextType: 'course',\n contentType: 'course_files',\n contentSubtype: 'media',\n sortValue: 'date_added',\n sortDir: 'desc',\n searchString: ''\n },\n group_media: {\n contextType: 'group',\n contentType: 'group_files',\n contentSubtype: 'media',\n sortValue: 'date_added',\n sortDir: 'desc',\n searchString: ''\n },\n course_links: {\n contextType: 'course',\n contentType: 'links',\n contentSubtype: 'all',\n sortValue: 'date_added',\n sortDir: 'desc',\n searchString: ''\n },\n course_link_edit: {\n contextType: 'course',\n contentType: 'links',\n contentSubtype: 'edit',\n sortValue: 'date_added',\n sortDir: 'desc',\n searchString: ''\n },\n group_links: {\n contextType: 'group',\n contentType: 'links',\n contentSubtype: 'all',\n sortValue: 'date_added',\n sortDir: 'desc',\n searchString: ''\n },\n list_icon_maker_icons: {\n contextType: 'course',\n contentType: 'course_files',\n contentSubtype: _instructure_icon_maker_svg_constants__WEBPACK_IMPORTED_MODULE_14__[\"ICON_MAKER_ICONS\"],\n sortValue: 'date_added',\n sortDir: 'desc',\n searchString: ''\n },\n all: {\n contextType: 'course',\n contentType: 'course_files',\n contentSubtype: 'all',\n sortValue: 'alphabetical',\n sortDir: 'asc',\n searchString: ''\n }\n};\n\nfunction isLoading(cprops) {\n var _cprops$collections$a, _cprops$collections$a2, _cprops$collections$d, _cprops$collections$m, _cprops$collections$q, _cprops$collections$w, _cprops$documents$cou, _cprops$documents$use, _cprops$documents$gro, _cprops$media$course, _cprops$media$user, _cprops$media$group, _cprops$all_files;\n\n return ((_cprops$collections$a = cprops.collections.announcements) === null || _cprops$collections$a === void 0 ? void 0 : _cprops$collections$a.isLoading) || ((_cprops$collections$a2 = cprops.collections.assignments) === null || _cprops$collections$a2 === void 0 ? void 0 : _cprops$collections$a2.isLoading) || ((_cprops$collections$d = cprops.collections.discussions) === null || _cprops$collections$d === void 0 ? void 0 : _cprops$collections$d.isLoading) || ((_cprops$collections$m = cprops.collections.modules) === null || _cprops$collections$m === void 0 ? void 0 : _cprops$collections$m.isLoading) || ((_cprops$collections$q = cprops.collections.quizzes) === null || _cprops$collections$q === void 0 ? void 0 : _cprops$collections$q.isLoading) || ((_cprops$collections$w = cprops.collections.wikiPages) === null || _cprops$collections$w === void 0 ? void 0 : _cprops$collections$w.isLoading) || ((_cprops$documents$cou = cprops.documents.course) === null || _cprops$documents$cou === void 0 ? void 0 : _cprops$documents$cou.isLoading) || ((_cprops$documents$use = cprops.documents.user) === null || _cprops$documents$use === void 0 ? void 0 : _cprops$documents$use.isLoading) || ((_cprops$documents$gro = cprops.documents.group) === null || _cprops$documents$gro === void 0 ? void 0 : _cprops$documents$gro.isLoading) || ((_cprops$media$course = cprops.media.course) === null || _cprops$media$course === void 0 ? void 0 : _cprops$media$course.isLoading) || ((_cprops$media$user = cprops.media.user) === null || _cprops$media$user === void 0 ? void 0 : _cprops$media$user.isLoading) || ((_cprops$media$group = cprops.media.group) === null || _cprops$media$group === void 0 ? void 0 : _cprops$media$group.isLoading) || ((_cprops$all_files = cprops.all_files) === null || _cprops$all_files === void 0 ? void 0 : _cprops$all_files.isLoading);\n}\n/**\n * This component is used within various plugins to handle loading in content\n * from Canvas. It is essentially the main component.\n */\n\n\nfunction CanvasContentTray(props) {\n // should the tray be rendered open?\n const [isOpen, setIsOpen] = Object(react__WEBPACK_IMPORTED_MODULE_1__[\"useState\"])(false); // has the tray fully opened. we use this to defer rendering the content\n // until the tray is open.\n\n const [hasOpened, setHasOpened] = Object(react__WEBPACK_IMPORTED_MODULE_1__[\"useState\"])(false); // should we close the tray after the user clicks on something in it?\n\n const [hidingTrayOnAction, setHidingTrayOnAction] = Object(react__WEBPACK_IMPORTED_MODULE_1__[\"useState\"])(true);\n const trayRef = Object(react__WEBPACK_IMPORTED_MODULE_1__[\"useRef\"])(null);\n const scrollingAreaRef = Object(react__WEBPACK_IMPORTED_MODULE_1__[\"useRef\"])(null);\n const [filterSettings, setFilterSettings] = Object(_Filter__WEBPACK_IMPORTED_MODULE_11__[\"useFilterSettings\"])();\n const [isEditTray, setIsEditTray] = Object(react__WEBPACK_IMPORTED_MODULE_1__[\"useState\"])(false);\n const [link, setLink] = Object(react__WEBPACK_IMPORTED_MODULE_1__[\"useState\"])(null);\n const [linkText, setLinkText] = Object(react__WEBPACK_IMPORTED_MODULE_1__[\"useState\"])(null);\n const [placeholderText, setPlaceholderText] = Object(react__WEBPACK_IMPORTED_MODULE_1__[\"useState\"])(null);\n const Icon = Object(_linkUtils__WEBPACK_IMPORTED_MODULE_16__[\"getIcon\"])(link === null || link === void 0 ? void 0 : link.type);\n const {\n bridge,\n editor,\n onTrayClosing\n } = { ...props\n };\n const handleDismissTray = Object(react__WEBPACK_IMPORTED_MODULE_1__[\"useCallback\"])(() => {\n // return focus to the RCE if focus was on this tray\n if (trayRef.current && trayRef.current.contains(document.activeElement)) {\n bridge.focusActiveEditor(false);\n }\n\n onTrayClosing && onTrayClosing(CanvasContentTray.globalOpenCount); // tell RCEWrapper we're closing if we're open\n\n setIsOpen(false);\n }, [bridge, onTrayClosing]);\n Object(react__WEBPACK_IMPORTED_MODULE_1__[\"useEffect\"])(() => {\n const controller = {\n showTrayForPlugin(plugin) {\n // increment a counter that's used as the key when rendering\n // this gets us a new instance everytime, which is necessary\n // to get the queries run so we have up to date data.\n ++CanvasContentTray.globalOpenCount;\n setFilterSettings(FILTER_SETTINGS_BY_PLUGIN[plugin]);\n setIsOpen(true);\n\n if (plugin === 'course_link_edit') {\n setIsEditTray(true);\n const {\n fileName,\n contentType,\n url,\n published,\n text\n } = Object(_ContentSelection__WEBPACK_IMPORTED_MODULE_15__[\"getLinkContentFromEditor\"])(editor.editor);\n setLink({\n title: fileName,\n type: contentType,\n href: url,\n published\n });\n setLinkText(text);\n setPlaceholderText(text);\n } else {\n setIsEditTray(false);\n }\n },\n\n hideTray(forceClose) {\n if (forceClose || hidingTrayOnAction) {\n handleDismissTray();\n }\n }\n\n };\n bridge.attachController(controller, editor.id);\n return () => {\n bridge.detachController(editor.id);\n }; // it's OK the setFilterSettings is not a dependency\n // eslint-disable-next-line react-hooks/exhaustive-deps\n }, [editor.id, bridge, handleDismissTray, hidingTrayOnAction]);\n Object(react__WEBPACK_IMPORTED_MODULE_1__[\"useEffect\"])(() => {\n if (hasOpened && scrollingAreaRef.current && !scrollingAreaRef.current.style.overscrollBehaviorY) {\n scrollingAreaRef.current.style.overscrollBehaviorY = 'contain';\n }\n }, [hasOpened]);\n\n function handleOpenTray() {\n bridge.focusEditor(editor);\n setHasOpened(true);\n }\n\n function handleExitTray() {\n onTrayClosing && onTrayClosing(true); // tell RCEWrapper we're closing\n }\n\n function handleCloseTray() {\n setHasOpened(false);\n onTrayClosing && onTrayClosing(false); // tell RCEWrapper we're closed\n }\n\n function handleReplaceButton() {\n handleDismissTray();\n const newLink = { ...link,\n forceRename: true,\n text: linkText || placeholderText\n };\n bridge.insertLink(newLink);\n }\n\n function renderFooter() {\n return /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1___default.a.createElement(_instructure_ui_flex__WEBPACK_IMPORTED_MODULE_7__[\"Flex\"].Item, {\n background: \"secondary\",\n borderWidth: \"small none none none\",\n padding: \"small medium\",\n textAlign: \"end\"\n }, /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1___default.a.createElement(_instructure_ui_buttons__WEBPACK_IMPORTED_MODULE_4__[\"Button\"], {\n onClick: handleDismissTray\n }, Object(_format_message__WEBPACK_IMPORTED_MODULE_10__[\"default\"])('Cancel')), /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1___default.a.createElement(_instructure_ui_buttons__WEBPACK_IMPORTED_MODULE_4__[\"Button\"], {\n margin: \"0 0 0 x-small\",\n color: \"primary\",\n onClick: handleReplaceButton,\n \"data-testid\": \"replace-link-button\"\n }, Object(_format_message__WEBPACK_IMPORTED_MODULE_10__[\"default\"])('Replace')));\n }\n\n function handleFilterChange(newFilter, onChangeContext, onChangeSearchString, onChangeSortBy) {\n const newFilterSettings = { ...newFilter\n };\n\n if (newFilterSettings.sortValue) {\n newFilterSettings.sortDir = newFilterSettings.sortValue === 'alphabetical' ? 'asc' : 'desc';\n onChangeSortBy({\n sort: newFilterSettings.sortValue,\n dir: newFilterSettings.sortDir\n });\n }\n\n if ('searchString' in newFilterSettings && filterSettings.searchString !== newFilterSettings.searchString) {\n onChangeSearchString(newFilterSettings.searchString);\n }\n\n setFilterSettings(newFilterSettings);\n\n if (newFilterSettings.contentType) {\n let contextType, contextId;\n\n switch (newFilterSettings.contentType) {\n case 'user_files':\n contextType = 'user';\n contextId = props.containingContext.userId;\n break;\n\n case 'group_files':\n contextType = 'group';\n contextId = props.containingContext.contextId;\n break;\n\n case 'course_files':\n contextType = props.contextType;\n contextId = props.containingContext.contextId;\n break;\n\n case 'links':\n contextType = props.containingContext.contextType;\n contextId = props.containingContext.contextId;\n }\n\n onChangeContext({\n contextType,\n contextId\n });\n }\n }\n\n function getHeader() {\n return isEditTray ? Object(_format_message__WEBPACK_IMPORTED_MODULE_10__[\"default\"])('Edit Course Link') : Object(_format_message__WEBPACK_IMPORTED_MODULE_10__[\"default\"])('Add');\n }\n\n return /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1___default.a.createElement(_StoreContext__WEBPACK_IMPORTED_MODULE_12__[\"StoreProvider\"], Object(_babel_runtime_corejs3_helpers_esm_extends__WEBPACK_IMPORTED_MODULE_0__[\"default\"])({}, props, {\n key: CanvasContentTray.globalOpenCount,\n contextType: filterSettings.contextType || props.contextType\n }), contentProps => /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1___default.a.createElement(_instructure_ui_tray__WEBPACK_IMPORTED_MODULE_3__[\"Tray\"], {\n \"data-mce-component\": true,\n \"data-testid\": \"CanvasContentTray\",\n label: getTrayLabel(filterSettings.contentType, filterSettings.contentSubtype, contentProps.contextType),\n open: isOpen,\n placement: \"end\",\n size: \"regular\",\n shouldContainFocus: true,\n shouldReturnFocus: false,\n shouldCloseOnDocumentClick: false,\n onDismiss: handleDismissTray,\n onClose: handleCloseTray,\n onExit: handleExitTray,\n onOpen: handleOpenTray,\n onEntered: () => {\n const c = document.querySelector('[role=\"main\"]');\n let target_w = 0;\n\n if (c) {\n var _trayRef$current;\n\n const margin = window.getComputedStyle(c).direction === 'ltr' ? document.body.getBoundingClientRect().right - c.getBoundingClientRect().right : c.getBoundingClientRect().left;\n target_w = c.offsetWidth - ((_trayRef$current = trayRef.current) === null || _trayRef$current === void 0 ? void 0 : _trayRef$current.offsetWidth) + margin;\n\n if (target_w >= 320 && target_w < c.offsetWidth) {\n c.style.boxSizing = 'border-box';\n c.style.width = `${target_w}px`;\n }\n }\n\n setHidingTrayOnAction(target_w < 320);\n },\n onExiting: () => {\n const c = document.querySelector('[role=\"main\"]');\n if (c) c.style.width = '';\n },\n onExited: () => console.log('exited'),\n contentRef: el => trayRef.current = el\n }, isOpen && hasOpened ? /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1___default.a.createElement(_instructure_ui_flex__WEBPACK_IMPORTED_MODULE_7__[\"Flex\"], {\n direction: \"column\",\n as: \"div\",\n height: Object(_trayUtils__WEBPACK_IMPORTED_MODULE_13__[\"getTrayHeight\"])(),\n overflowY: \"hidden\",\n tabIndex: \"-1\",\n \"data-canvascontenttray-content\": true\n }, /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1___default.a.createElement(_instructure_ui_flex__WEBPACK_IMPORTED_MODULE_7__[\"Flex\"].Item, {\n padding: \"medium\",\n shadow: \"above\"\n }, /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1___default.a.createElement(_instructure_ui_flex__WEBPACK_IMPORTED_MODULE_7__[\"Flex\"], {\n margin: \"none none medium none\"\n }, /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1___default.a.createElement(_instructure_ui_flex__WEBPACK_IMPORTED_MODULE_7__[\"Flex\"].Item, {\n shouldgrow: true,\n shouldshrink: true\n }, /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1___default.a.createElement(_instructure_ui_heading__WEBPACK_IMPORTED_MODULE_5__[\"Heading\"], {\n level: \"h2\"\n }, getHeader())), /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1___default.a.createElement(_instructure_ui_flex__WEBPACK_IMPORTED_MODULE_7__[\"Flex\"].Item, null, /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1___default.a.createElement(_instructure_ui_buttons__WEBPACK_IMPORTED_MODULE_4__[\"CloseButton\"], {\n placement: \"end\",\n onClick: handleDismissTray,\n \"data-testid\": \"CloseButton_ContentTray\",\n screenReaderLabel: Object(_format_message__WEBPACK_IMPORTED_MODULE_10__[\"default\"])('Close')\n }))), isEditTray && /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1___default.a.createElement(_LinkDisplay__WEBPACK_IMPORTED_MODULE_17__[\"LinkDisplay\"], {\n linkText: linkText,\n Icon: Icon,\n placeholderText: placeholderText,\n linkFileName: (link === null || link === void 0 ? void 0 : link.title) || '',\n published: (link === null || link === void 0 ? void 0 : link.published) || false,\n handleTextChange: setLinkText\n }), /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1___default.a.createElement(_Filter__WEBPACK_IMPORTED_MODULE_11__[\"default\"], Object(_babel_runtime_corejs3_helpers_esm_extends__WEBPACK_IMPORTED_MODULE_0__[\"default\"])({}, filterSettings, {\n userContextType: props.contextType,\n containingContextType: props.containingContext.contextType,\n onChange: newFilter => {\n handleFilterChange(newFilter, contentProps.onChangeContext, contentProps.onChangeSearchString, contentProps.onChangeSortBy);\n },\n isContentLoading: isLoading(contentProps),\n use_rce_icon_maker: props.use_rce_icon_maker\n }))), /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1___default.a.createElement(_instructure_ui_flex__WEBPACK_IMPORTED_MODULE_7__[\"Flex\"].Item, {\n grow: true,\n shrink: true,\n margin: \"xx-small xxx-small 0\",\n elementRef: el => scrollingAreaRef.current = el\n }, /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1___default.a.createElement(_instructure_ui_flex__WEBPACK_IMPORTED_MODULE_7__[\"Flex\"], {\n justifyItems: \"space-between\",\n direction: \"column\",\n height: \"100%\"\n }, /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1___default.a.createElement(_instructure_ui_flex__WEBPACK_IMPORTED_MODULE_7__[\"Flex\"].Item, {\n shouldGrow: true,\n shouldShrink: true\n }, /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1___default.a.createElement(_ErrorBoundary__WEBPACK_IMPORTED_MODULE_8__[\"default\"], null, /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1___default.a.createElement(DynamicPanel, Object(_babel_runtime_corejs3_helpers_esm_extends__WEBPACK_IMPORTED_MODULE_0__[\"default\"])({\n contentType: filterSettings.contentType,\n contentSubtype: filterSettings.contentSubtype,\n sortBy: {\n sort: filterSettings.sortValue,\n order: filterSettings.sortDir\n },\n searchString: filterSettings.searchString,\n source: props.source,\n canvasOrigin: props.canvasOrigin,\n jwt: props.jwt,\n host: props.host,\n refreshToken: props.refreshToken,\n context: {\n type: props.contextType,\n id: props.contextId\n },\n editing: isEditTray,\n onEditClick: setLink\n }, contentProps)))), isEditTray && renderFooter()))) : null));\n}\nCanvasContentTray.globalOpenCount = 0;\n\nfunction requiredWithoutSource(props, propName, componentName) {\n if (props.source == null && props[propName] == null) {\n throw new Error(`The prop \\`${propName}\\` is marked as required in \\`${componentName}\\`, but its value is \\`${props[propName]}\\`.`);\n }\n}\n\nconst trayPropsMap = {\n canUploadFiles: prop_types__WEBPACK_IMPORTED_MODULE_2__[\"bool\"].isRequired,\n contextId: prop_types__WEBPACK_IMPORTED_MODULE_2__[\"string\"].isRequired,\n // initial value indicating the user's context (e.g. student v teacher), not the tray's\n contextType: prop_types__WEBPACK_IMPORTED_MODULE_2__[\"string\"].isRequired,\n // initial value indicating the user's context, not the tray's\n containingContext: Object(prop_types__WEBPACK_IMPORTED_MODULE_2__[\"shape\"])({\n contextType: prop_types__WEBPACK_IMPORTED_MODULE_2__[\"string\"].isRequired,\n contextId: prop_types__WEBPACK_IMPORTED_MODULE_2__[\"string\"].isRequired,\n userId: prop_types__WEBPACK_IMPORTED_MODULE_2__[\"string\"].isRequired\n }),\n filesTabDisabled: prop_types__WEBPACK_IMPORTED_MODULE_2__[\"bool\"],\n host: requiredWithoutSource,\n jwt: requiredWithoutSource,\n refreshToken: prop_types__WEBPACK_IMPORTED_MODULE_2__[\"func\"],\n source: Object(prop_types__WEBPACK_IMPORTED_MODULE_2__[\"shape\"])({\n fetchImages: prop_types__WEBPACK_IMPORTED_MODULE_2__[\"func\"].isRequired\n }),\n themeUrl: prop_types__WEBPACK_IMPORTED_MODULE_2__[\"string\"]\n};\nconst trayPropTypes = Object(prop_types__WEBPACK_IMPORTED_MODULE_2__[\"shape\"])(trayPropsMap);\nCanvasContentTray.propTypes = {\n bridge: Object(prop_types__WEBPACK_IMPORTED_MODULE_2__[\"instanceOf\"])(_bridge_Bridge__WEBPACK_IMPORTED_MODULE_9__[\"default\"]).isRequired,\n editor: Object(prop_types__WEBPACK_IMPORTED_MODULE_2__[\"shape\"])({\n id: prop_types__WEBPACK_IMPORTED_MODULE_2__[\"string\"]\n }).isRequired,\n onTrayClosing: prop_types__WEBPACK_IMPORTED_MODULE_2__[\"func\"],\n // called with true when the tray starts closing, false once closed\n onEditClick: prop_types__WEBPACK_IMPORTED_MODULE_2__[\"func\"],\n ...trayPropsMap\n}; // the way we define trayProps, eslint doesn't recognize the following as props\n\n/* eslint-disable react/default-props-match-prop-types */\n\nCanvasContentTray.defaultProps = {\n canUploadFiles: false,\n filesTabDisabled: false,\n refreshToken: null,\n source: null,\n themeUrl: null\n};\n/* eslint-enable react/default-props-match-prop-types */\n\n//# sourceURL=webpack:///./src/rce/plugins/shared/CanvasContentTray.js?");
17857
+ eval("__webpack_require__.r(__webpack_exports__);\n/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, \"default\", function() { return CanvasContentTray; });\n/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, \"trayPropTypes\", function() { return trayPropTypes; });\n/* harmony import */ var _babel_runtime_corejs3_helpers_esm_extends__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! @babel/runtime-corejs3/helpers/esm/extends */ \"../../node_modules/@babel/runtime-corejs3/helpers/esm/extends.js\");\n/* harmony import */ var react__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! react */ \"../../node_modules/react/index.js\");\n/* harmony import */ var react__WEBPACK_IMPORTED_MODULE_1___default = /*#__PURE__*/__webpack_require__.n(react__WEBPACK_IMPORTED_MODULE_1__);\n/* harmony import */ var prop_types__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! prop-types */ \"../../node_modules/prop-types/index.js\");\n/* harmony import */ var prop_types__WEBPACK_IMPORTED_MODULE_2___default = /*#__PURE__*/__webpack_require__.n(prop_types__WEBPACK_IMPORTED_MODULE_2__);\n/* harmony import */ var _instructure_ui_tray__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! @instructure/ui-tray */ \"../../node_modules/@instructure/ui-tray/es/index.js\");\n/* harmony import */ var _instructure_ui_buttons__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(/*! @instructure/ui-buttons */ \"../../node_modules/@instructure/ui-buttons/es/index.js\");\n/* harmony import */ var _instructure_ui_heading__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__(/*! @instructure/ui-heading */ \"../../node_modules/@instructure/ui-heading/es/index.js\");\n/* harmony import */ var _instructure_ui_spinner__WEBPACK_IMPORTED_MODULE_6__ = __webpack_require__(/*! @instructure/ui-spinner */ \"../../node_modules/@instructure/ui-spinner/es/index.js\");\n/* harmony import */ var _instructure_ui_flex__WEBPACK_IMPORTED_MODULE_7__ = __webpack_require__(/*! @instructure/ui-flex */ \"../../node_modules/@instructure/ui-flex/es/index.js\");\n/* harmony import */ var _ErrorBoundary__WEBPACK_IMPORTED_MODULE_8__ = __webpack_require__(/*! ./ErrorBoundary */ \"./src/rce/plugins/shared/ErrorBoundary.js\");\n/* harmony import */ var _bridge_Bridge__WEBPACK_IMPORTED_MODULE_9__ = __webpack_require__(/*! ../../../bridge/Bridge */ \"./src/bridge/Bridge.js\");\n/* harmony import */ var _format_message__WEBPACK_IMPORTED_MODULE_10__ = __webpack_require__(/*! ../../../format-message */ \"./src/format-message.js\");\n/* harmony import */ var _Filter__WEBPACK_IMPORTED_MODULE_11__ = __webpack_require__(/*! ./Filter */ \"./src/rce/plugins/shared/Filter.js\");\n/* harmony import */ var _StoreContext__WEBPACK_IMPORTED_MODULE_12__ = __webpack_require__(/*! ./StoreContext */ \"./src/rce/plugins/shared/StoreContext.js\");\n/* harmony import */ var _trayUtils__WEBPACK_IMPORTED_MODULE_13__ = __webpack_require__(/*! ./trayUtils */ \"./src/rce/plugins/shared/trayUtils.js\");\n/* harmony import */ var _instructure_icon_maker_svg_constants__WEBPACK_IMPORTED_MODULE_14__ = __webpack_require__(/*! ../instructure_icon_maker/svg/constants */ \"./src/rce/plugins/instructure_icon_maker/svg/constants.js\");\n/* harmony import */ var _ContentSelection__WEBPACK_IMPORTED_MODULE_15__ = __webpack_require__(/*! ./ContentSelection */ \"./src/rce/plugins/shared/ContentSelection.js\");\n/* harmony import */ var _linkUtils__WEBPACK_IMPORTED_MODULE_16__ = __webpack_require__(/*! ./linkUtils */ \"./src/rce/plugins/shared/linkUtils.js\");\n/* harmony import */ var _LinkDisplay__WEBPACK_IMPORTED_MODULE_17__ = __webpack_require__(/*! ./LinkDisplay */ \"./src/rce/plugins/shared/LinkDisplay.js\");\n\n\n/*\n * Copyright (C) 2019 - present Instructure, Inc.\n *\n * This file is part of Canvas.\n *\n * Canvas is free software: you can redistribute it and/or modify it under\n * the terms of the GNU Affero General Public License as published by the Free\n * Software Foundation, version 3 of the License.\n *\n * Canvas is distributed in the hope that it will be useful, but WITHOUT ANY\n * WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR\n * A PARTICULAR PURPOSE. See the GNU Affero General Public License for more\n * details.\n *\n * You should have received a copy of the GNU Affero General Public License along\n * with this program. If not, see <http://www.gnu.org/licenses/>.\n */\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n/**\n * Returns the translated tray label\n * @param {string} contentType - The type of content showing on tray\n * @param {string} contentSubtype - The current subtype of content loaded in the tray\n * @param {string} contextType - The user's context\n * @returns {string}\n */\n\nfunction getTrayLabel(contentType, contentSubtype, contextType) {\n if (contentType === 'links' && contextType === 'course') {\n return Object(_format_message__WEBPACK_IMPORTED_MODULE_10__[\"default\"])('Course Links');\n } else if (contentType === 'links' && contextType === 'group') {\n return Object(_format_message__WEBPACK_IMPORTED_MODULE_10__[\"default\"])('Group Links');\n }\n\n switch (contentSubtype) {\n case _instructure_icon_maker_svg_constants__WEBPACK_IMPORTED_MODULE_14__[\"ICON_MAKER_ICONS\"]:\n return Object(_format_message__WEBPACK_IMPORTED_MODULE_10__[\"default\"])('Icon Maker Icons');\n\n case 'images':\n if (contentType === 'course_files') return Object(_format_message__WEBPACK_IMPORTED_MODULE_10__[\"default\"])('Course Images');\n if (contentType === 'group_files') return Object(_format_message__WEBPACK_IMPORTED_MODULE_10__[\"default\"])('Group Images');\n return Object(_format_message__WEBPACK_IMPORTED_MODULE_10__[\"default\"])('User Images');\n\n case 'media':\n if (contentType === 'course_files') return Object(_format_message__WEBPACK_IMPORTED_MODULE_10__[\"default\"])('Course Media');\n if (contentType === 'group_files') return Object(_format_message__WEBPACK_IMPORTED_MODULE_10__[\"default\"])('Group Media');\n return Object(_format_message__WEBPACK_IMPORTED_MODULE_10__[\"default\"])('User Media');\n\n case 'documents':\n if (contentType === 'course_files') return Object(_format_message__WEBPACK_IMPORTED_MODULE_10__[\"default\"])('Course Documents');\n if (contentType === 'group_files') return Object(_format_message__WEBPACK_IMPORTED_MODULE_10__[\"default\"])('Group Documents');\n return Object(_format_message__WEBPACK_IMPORTED_MODULE_10__[\"default\"])('User Documents');\n\n default:\n return Object(_format_message__WEBPACK_IMPORTED_MODULE_10__[\"default\"])('Tray');\n // Shouldn't ever get here\n }\n}\n\nconst thePanels = {\n icon_maker_icons: /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1___default.a.lazy(() => Promise.all(/*! import() */[__webpack_require__.e(0), __webpack_require__.e(3), __webpack_require__.e(1), __webpack_require__.e(32)]).then(__webpack_require__.bind(null, /*! ../instructure_icon_maker/components/SavedIconMakerList */ \"./src/rce/plugins/instructure_icon_maker/components/SavedIconMakerList.js\"))),\n links: /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1___default.a.lazy(() => Promise.all(/*! import() */[__webpack_require__.e(2), __webpack_require__.e(28)]).then(__webpack_require__.bind(null, /*! ../instructure_links/components/LinksPanel */ \"./src/rce/plugins/instructure_links/components/LinksPanel.js\"))),\n images: /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1___default.a.lazy(() => Promise.all(/*! import() */[__webpack_require__.e(0), __webpack_require__.e(3), __webpack_require__.e(1), __webpack_require__.e(35)]).then(__webpack_require__.bind(null, /*! ../instructure_image/Images */ \"./src/rce/plugins/instructure_image/Images/index.js\"))),\n documents: /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1___default.a.lazy(() => Promise.all(/*! import() */[__webpack_require__.e(1), __webpack_require__.e(33)]).then(__webpack_require__.bind(null, /*! ../instructure_documents/components/DocumentsPanel */ \"./src/rce/plugins/instructure_documents/components/DocumentsPanel.js\"))),\n media: /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1___default.a.lazy(() => Promise.all(/*! import() */[__webpack_require__.e(1), __webpack_require__.e(34)]).then(__webpack_require__.bind(null, /*! ../instructure_record/MediaPanel */ \"./src/rce/plugins/instructure_record/MediaPanel/index.js\"))),\n all: /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1___default.a.lazy(() => Promise.all(/*! import() */[__webpack_require__.e(0), __webpack_require__.e(29), __webpack_require__.e(36)]).then(__webpack_require__.bind(null, /*! ./RceFileBrowser */ \"./src/rce/plugins/shared/RceFileBrowser.js\"))),\n unknown: /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1___default.a.lazy(() => __webpack_require__.e(/*! import() */ 75).then(__webpack_require__.bind(null, /*! ./UnknownFileTypePanel */ \"./src/rce/plugins/shared/UnknownFileTypePanel.js\")))\n}; // Returns a Suspense wrapped lazy loaded component\n// pulled from useLazy's cache\n\nfunction DynamicPanel(props) {\n let key = '';\n\n if (props.contentType === 'links') {\n key = 'links';\n } else {\n key = props.contentSubtype in thePanels ? props.contentSubtype : 'unknown';\n }\n\n const Component = thePanels[key];\n return /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1___default.a.createElement(react__WEBPACK_IMPORTED_MODULE_1__[\"Suspense\"], {\n fallback: /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1___default.a.createElement(_instructure_ui_spinner__WEBPACK_IMPORTED_MODULE_6__[\"Spinner\"], {\n renderTitle: renderLoading,\n size: \"large\"\n })\n }, /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1___default.a.createElement(Component, props));\n}\n\nfunction renderLoading() {\n return Object(_format_message__WEBPACK_IMPORTED_MODULE_10__[\"default\"])('Loading');\n}\n\nconst FILTER_SETTINGS_BY_PLUGIN = {\n user_documents: {\n contextType: 'user',\n contentType: 'user_files',\n contentSubtype: 'documents',\n sortValue: 'date_added',\n sortDir: 'desc',\n searchString: ''\n },\n course_documents: {\n contextType: 'course',\n contentType: 'course_files',\n contentSubtype: 'documents',\n sortValue: 'date_added',\n sortDir: 'desc',\n searchString: ''\n },\n group_documents: {\n contextType: 'group',\n contentType: 'group_files',\n contentSubtype: 'documents',\n sortValue: 'date_added',\n sortDir: 'desc',\n searchString: ''\n },\n user_images: {\n contextType: 'user',\n contentType: 'user_files',\n contentSubtype: 'images',\n sortValue: 'date_added',\n sortDir: 'desc',\n searchString: ''\n },\n course_images: {\n contextType: 'course',\n contentType: 'course_files',\n contentSubtype: 'images',\n sortValue: 'date_added',\n sortDir: 'desc',\n searchString: ''\n },\n group_images: {\n contextType: 'group',\n contentType: 'group_files',\n contentSubtype: 'images',\n sortValue: 'date_added',\n sortDir: 'desc',\n searchString: ''\n },\n user_media: {\n contextType: 'user',\n contentType: 'user_files',\n contentSubtype: 'media',\n sortValue: 'date_added',\n sortDir: 'desc',\n searchString: ''\n },\n course_media: {\n contextType: 'course',\n contentType: 'course_files',\n contentSubtype: 'media',\n sortValue: 'date_added',\n sortDir: 'desc',\n searchString: ''\n },\n group_media: {\n contextType: 'group',\n contentType: 'group_files',\n contentSubtype: 'media',\n sortValue: 'date_added',\n sortDir: 'desc',\n searchString: ''\n },\n course_links: {\n contextType: 'course',\n contentType: 'links',\n contentSubtype: 'all',\n sortValue: 'date_added',\n sortDir: 'desc',\n searchString: ''\n },\n course_link_edit: {\n contextType: 'course',\n contentType: 'links',\n contentSubtype: 'edit',\n sortValue: 'date_added',\n sortDir: 'desc',\n searchString: ''\n },\n group_links: {\n contextType: 'group',\n contentType: 'links',\n contentSubtype: 'all',\n sortValue: 'date_added',\n sortDir: 'desc',\n searchString: ''\n },\n list_icon_maker_icons: {\n contextType: 'course',\n contentType: 'course_files',\n contentSubtype: _instructure_icon_maker_svg_constants__WEBPACK_IMPORTED_MODULE_14__[\"ICON_MAKER_ICONS\"],\n sortValue: 'date_added',\n sortDir: 'desc',\n searchString: ''\n },\n all: {\n contextType: 'course',\n contentType: 'course_files',\n contentSubtype: 'all',\n sortValue: 'alphabetical',\n sortDir: 'asc',\n searchString: ''\n }\n};\n\nfunction isLoading(cprops) {\n var _cprops$collections$a, _cprops$collections$a2, _cprops$collections$d, _cprops$collections$m, _cprops$collections$q, _cprops$collections$w, _cprops$documents$cou, _cprops$documents$use, _cprops$documents$gro, _cprops$media$course, _cprops$media$user, _cprops$media$group, _cprops$all_files;\n\n return ((_cprops$collections$a = cprops.collections.announcements) === null || _cprops$collections$a === void 0 ? void 0 : _cprops$collections$a.isLoading) || ((_cprops$collections$a2 = cprops.collections.assignments) === null || _cprops$collections$a2 === void 0 ? void 0 : _cprops$collections$a2.isLoading) || ((_cprops$collections$d = cprops.collections.discussions) === null || _cprops$collections$d === void 0 ? void 0 : _cprops$collections$d.isLoading) || ((_cprops$collections$m = cprops.collections.modules) === null || _cprops$collections$m === void 0 ? void 0 : _cprops$collections$m.isLoading) || ((_cprops$collections$q = cprops.collections.quizzes) === null || _cprops$collections$q === void 0 ? void 0 : _cprops$collections$q.isLoading) || ((_cprops$collections$w = cprops.collections.wikiPages) === null || _cprops$collections$w === void 0 ? void 0 : _cprops$collections$w.isLoading) || ((_cprops$documents$cou = cprops.documents.course) === null || _cprops$documents$cou === void 0 ? void 0 : _cprops$documents$cou.isLoading) || ((_cprops$documents$use = cprops.documents.user) === null || _cprops$documents$use === void 0 ? void 0 : _cprops$documents$use.isLoading) || ((_cprops$documents$gro = cprops.documents.group) === null || _cprops$documents$gro === void 0 ? void 0 : _cprops$documents$gro.isLoading) || ((_cprops$media$course = cprops.media.course) === null || _cprops$media$course === void 0 ? void 0 : _cprops$media$course.isLoading) || ((_cprops$media$user = cprops.media.user) === null || _cprops$media$user === void 0 ? void 0 : _cprops$media$user.isLoading) || ((_cprops$media$group = cprops.media.group) === null || _cprops$media$group === void 0 ? void 0 : _cprops$media$group.isLoading) || ((_cprops$all_files = cprops.all_files) === null || _cprops$all_files === void 0 ? void 0 : _cprops$all_files.isLoading);\n}\n/**\n * This component is used within various plugins to handle loading in content\n * from Canvas. It is essentially the main component.\n */\n\n\nfunction CanvasContentTray(props) {\n // should the tray be rendered open?\n const [isOpen, setIsOpen] = Object(react__WEBPACK_IMPORTED_MODULE_1__[\"useState\"])(false); // has the tray fully opened. we use this to defer rendering the content\n // until the tray is open.\n\n const [hasOpened, setHasOpened] = Object(react__WEBPACK_IMPORTED_MODULE_1__[\"useState\"])(false); // should we close the tray after the user clicks on something in it?\n\n const [hidingTrayOnAction, setHidingTrayOnAction] = Object(react__WEBPACK_IMPORTED_MODULE_1__[\"useState\"])(true);\n const trayRef = Object(react__WEBPACK_IMPORTED_MODULE_1__[\"useRef\"])(null);\n const scrollingAreaRef = Object(react__WEBPACK_IMPORTED_MODULE_1__[\"useRef\"])(null);\n const [filterSettings, setFilterSettings] = Object(_Filter__WEBPACK_IMPORTED_MODULE_11__[\"useFilterSettings\"])();\n const [isEditTray, setIsEditTray] = Object(react__WEBPACK_IMPORTED_MODULE_1__[\"useState\"])(false);\n const [link, setLink] = Object(react__WEBPACK_IMPORTED_MODULE_1__[\"useState\"])(null);\n const [linkText, setLinkText] = Object(react__WEBPACK_IMPORTED_MODULE_1__[\"useState\"])(null);\n const [placeholderText, setPlaceholderText] = Object(react__WEBPACK_IMPORTED_MODULE_1__[\"useState\"])(null);\n const Icon = Object(_linkUtils__WEBPACK_IMPORTED_MODULE_16__[\"getIcon\"])(link === null || link === void 0 ? void 0 : link.type);\n const {\n bridge,\n editor,\n onTrayClosing\n } = { ...props\n };\n const handleDismissTray = Object(react__WEBPACK_IMPORTED_MODULE_1__[\"useCallback\"])(() => {\n // return focus to the RCE if focus was on this tray\n if (trayRef.current && trayRef.current.contains(document.activeElement)) {\n bridge.focusActiveEditor(false);\n }\n\n onTrayClosing && onTrayClosing(CanvasContentTray.globalOpenCount); // tell RCEWrapper we're closing if we're open\n\n setIsOpen(false);\n }, [bridge, onTrayClosing]);\n Object(react__WEBPACK_IMPORTED_MODULE_1__[\"useEffect\"])(() => {\n const controller = {\n showTrayForPlugin(plugin) {\n // increment a counter that's used as the key when rendering\n // this gets us a new instance everytime, which is necessary\n // to get the queries run so we have up to date data.\n ++CanvasContentTray.globalOpenCount;\n setFilterSettings(FILTER_SETTINGS_BY_PLUGIN[plugin]);\n setIsOpen(true);\n\n if (plugin === 'course_link_edit') {\n setIsEditTray(true);\n const {\n fileName,\n contentType,\n url,\n published,\n text\n } = Object(_ContentSelection__WEBPACK_IMPORTED_MODULE_15__[\"getLinkContentFromEditor\"])(editor.editor);\n setLink({\n title: fileName,\n type: contentType,\n href: url,\n published\n });\n setLinkText(text);\n setPlaceholderText(text);\n } else {\n setIsEditTray(false);\n }\n },\n\n hideTray(forceClose) {\n if (forceClose || hidingTrayOnAction) {\n handleDismissTray();\n }\n }\n\n };\n bridge.attachController(controller, editor.id);\n return () => {\n bridge.detachController(editor.id);\n }; // it's OK the setFilterSettings is not a dependency\n // eslint-disable-next-line react-hooks/exhaustive-deps\n }, [editor.id, bridge, handleDismissTray, hidingTrayOnAction]);\n Object(react__WEBPACK_IMPORTED_MODULE_1__[\"useEffect\"])(() => {\n if (hasOpened && scrollingAreaRef.current && !scrollingAreaRef.current.style.overscrollBehaviorY) {\n scrollingAreaRef.current.style.overscrollBehaviorY = 'contain';\n }\n }, [hasOpened]);\n Object(react__WEBPACK_IMPORTED_MODULE_1__[\"useEffect\"])(() => {\n var _trayRef$current;\n\n if (!hasOpened) return;\n let c = document.querySelector('[role=\"main\"]');\n let target_w = 0;\n if (!c) return;\n const margin = window.getComputedStyle(c).direction === 'ltr' ? document.body.getBoundingClientRect().right - c.getBoundingClientRect().right : c.getBoundingClientRect().left;\n target_w = c.offsetWidth - ((_trayRef$current = trayRef.current) === null || _trayRef$current === void 0 ? void 0 : _trayRef$current.offsetWidth) + margin;\n\n if (target_w >= 320 && target_w < c.offsetWidth) {\n c.style.boxSizing = 'border-box';\n c.style.width = `${target_w}px`;\n }\n\n setHidingTrayOnAction(target_w < 320);\n return () => {\n c = document.querySelector('[role=\"main\"]');\n if (!c) return;\n c.style.width = '';\n };\n }, [hasOpened]);\n\n function handleOpenTray() {\n bridge.focusEditor(editor);\n setHasOpened(true);\n }\n\n function handleExitTray() {\n onTrayClosing && onTrayClosing(true); // tell RCEWrapper we're closing\n }\n\n function handleCloseTray() {\n setHasOpened(false);\n onTrayClosing && onTrayClosing(false); // tell RCEWrapper we're closed\n }\n\n function handleReplaceButton() {\n handleDismissTray();\n const newLink = { ...link,\n forceRename: true,\n text: linkText || placeholderText\n };\n bridge.insertLink(newLink);\n }\n\n function renderFooter() {\n return /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1___default.a.createElement(_instructure_ui_flex__WEBPACK_IMPORTED_MODULE_7__[\"Flex\"].Item, {\n background: \"secondary\",\n borderWidth: \"small none none none\",\n padding: \"small medium\",\n textAlign: \"end\"\n }, /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1___default.a.createElement(_instructure_ui_buttons__WEBPACK_IMPORTED_MODULE_4__[\"Button\"], {\n onClick: handleDismissTray\n }, Object(_format_message__WEBPACK_IMPORTED_MODULE_10__[\"default\"])('Cancel')), /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1___default.a.createElement(_instructure_ui_buttons__WEBPACK_IMPORTED_MODULE_4__[\"Button\"], {\n margin: \"0 0 0 x-small\",\n color: \"primary\",\n onClick: handleReplaceButton,\n \"data-testid\": \"replace-link-button\"\n }, Object(_format_message__WEBPACK_IMPORTED_MODULE_10__[\"default\"])('Replace')));\n }\n\n function handleFilterChange(newFilter, onChangeContext, onChangeSearchString, onChangeSortBy) {\n const newFilterSettings = { ...newFilter\n };\n\n if (newFilterSettings.sortValue) {\n newFilterSettings.sortDir = newFilterSettings.sortValue === 'alphabetical' ? 'asc' : 'desc';\n onChangeSortBy({\n sort: newFilterSettings.sortValue,\n dir: newFilterSettings.sortDir\n });\n }\n\n if ('searchString' in newFilterSettings && filterSettings.searchString !== newFilterSettings.searchString) {\n onChangeSearchString(newFilterSettings.searchString);\n }\n\n setFilterSettings(newFilterSettings);\n\n if (newFilterSettings.contentType) {\n let contextType, contextId;\n\n switch (newFilterSettings.contentType) {\n case 'user_files':\n contextType = 'user';\n contextId = props.containingContext.userId;\n break;\n\n case 'group_files':\n contextType = 'group';\n contextId = props.containingContext.contextId;\n break;\n\n case 'course_files':\n contextType = props.contextType;\n contextId = props.containingContext.contextId;\n break;\n\n case 'links':\n contextType = props.containingContext.contextType;\n contextId = props.containingContext.contextId;\n }\n\n onChangeContext({\n contextType,\n contextId\n });\n }\n }\n\n function getHeader() {\n return isEditTray ? Object(_format_message__WEBPACK_IMPORTED_MODULE_10__[\"default\"])('Edit Course Link') : Object(_format_message__WEBPACK_IMPORTED_MODULE_10__[\"default\"])('Add');\n }\n\n return /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1___default.a.createElement(_StoreContext__WEBPACK_IMPORTED_MODULE_12__[\"StoreProvider\"], Object(_babel_runtime_corejs3_helpers_esm_extends__WEBPACK_IMPORTED_MODULE_0__[\"default\"])({}, props, {\n key: CanvasContentTray.globalOpenCount,\n contextType: filterSettings.contextType || props.contextType\n }), contentProps => /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1___default.a.createElement(_instructure_ui_tray__WEBPACK_IMPORTED_MODULE_3__[\"Tray\"], {\n \"data-mce-component\": true,\n \"data-testid\": \"CanvasContentTray\",\n label: getTrayLabel(filterSettings.contentType, filterSettings.contentSubtype, contentProps.contextType),\n open: isOpen,\n placement: \"end\",\n size: \"regular\",\n shouldContainFocus: true,\n shouldReturnFocus: false,\n shouldCloseOnDocumentClick: false,\n onDismiss: handleDismissTray,\n onClose: handleCloseTray,\n onExit: handleExitTray,\n onOpen: handleOpenTray,\n contentRef: el => trayRef.current = el\n }, isOpen && hasOpened ? /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1___default.a.createElement(_instructure_ui_flex__WEBPACK_IMPORTED_MODULE_7__[\"Flex\"], {\n direction: \"column\",\n as: \"div\",\n height: Object(_trayUtils__WEBPACK_IMPORTED_MODULE_13__[\"getTrayHeight\"])(),\n overflowY: \"hidden\",\n tabIndex: \"-1\",\n \"data-canvascontenttray-content\": true\n }, /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1___default.a.createElement(_instructure_ui_flex__WEBPACK_IMPORTED_MODULE_7__[\"Flex\"].Item, {\n padding: \"medium\",\n shadow: \"above\"\n }, /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1___default.a.createElement(_instructure_ui_flex__WEBPACK_IMPORTED_MODULE_7__[\"Flex\"], {\n margin: \"none none medium none\"\n }, /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1___default.a.createElement(_instructure_ui_flex__WEBPACK_IMPORTED_MODULE_7__[\"Flex\"].Item, {\n shouldgrow: true,\n shouldshrink: true\n }, /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1___default.a.createElement(_instructure_ui_heading__WEBPACK_IMPORTED_MODULE_5__[\"Heading\"], {\n level: \"h2\"\n }, getHeader())), /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1___default.a.createElement(_instructure_ui_flex__WEBPACK_IMPORTED_MODULE_7__[\"Flex\"].Item, null, /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1___default.a.createElement(_instructure_ui_buttons__WEBPACK_IMPORTED_MODULE_4__[\"CloseButton\"], {\n placement: \"end\",\n onClick: handleDismissTray,\n \"data-testid\": \"CloseButton_ContentTray\",\n screenReaderLabel: Object(_format_message__WEBPACK_IMPORTED_MODULE_10__[\"default\"])('Close')\n }))), isEditTray && /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1___default.a.createElement(_LinkDisplay__WEBPACK_IMPORTED_MODULE_17__[\"LinkDisplay\"], {\n linkText: linkText,\n Icon: Icon,\n placeholderText: placeholderText,\n linkFileName: (link === null || link === void 0 ? void 0 : link.title) || '',\n published: (link === null || link === void 0 ? void 0 : link.published) || false,\n handleTextChange: setLinkText\n }), /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1___default.a.createElement(_Filter__WEBPACK_IMPORTED_MODULE_11__[\"default\"], Object(_babel_runtime_corejs3_helpers_esm_extends__WEBPACK_IMPORTED_MODULE_0__[\"default\"])({}, filterSettings, {\n userContextType: props.contextType,\n containingContextType: props.containingContext.contextType,\n onChange: newFilter => {\n handleFilterChange(newFilter, contentProps.onChangeContext, contentProps.onChangeSearchString, contentProps.onChangeSortBy);\n },\n isContentLoading: isLoading(contentProps),\n use_rce_icon_maker: props.use_rce_icon_maker\n }))), /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1___default.a.createElement(_instructure_ui_flex__WEBPACK_IMPORTED_MODULE_7__[\"Flex\"].Item, {\n grow: true,\n shrink: true,\n margin: \"xx-small xxx-small 0\",\n elementRef: el => scrollingAreaRef.current = el\n }, /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1___default.a.createElement(_instructure_ui_flex__WEBPACK_IMPORTED_MODULE_7__[\"Flex\"], {\n justifyItems: \"space-between\",\n direction: \"column\",\n height: \"100%\"\n }, /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1___default.a.createElement(_instructure_ui_flex__WEBPACK_IMPORTED_MODULE_7__[\"Flex\"].Item, {\n shouldGrow: true,\n shouldShrink: true\n }, /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1___default.a.createElement(_ErrorBoundary__WEBPACK_IMPORTED_MODULE_8__[\"default\"], null, /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_1___default.a.createElement(DynamicPanel, Object(_babel_runtime_corejs3_helpers_esm_extends__WEBPACK_IMPORTED_MODULE_0__[\"default\"])({\n contentType: filterSettings.contentType,\n contentSubtype: filterSettings.contentSubtype,\n sortBy: {\n sort: filterSettings.sortValue,\n order: filterSettings.sortDir\n },\n searchString: filterSettings.searchString,\n source: props.source,\n canvasOrigin: props.canvasOrigin,\n jwt: props.jwt,\n host: props.host,\n refreshToken: props.refreshToken,\n context: {\n type: props.contextType,\n id: props.contextId\n },\n editing: isEditTray,\n onEditClick: setLink\n }, contentProps)))), isEditTray && renderFooter()))) : null));\n}\nCanvasContentTray.globalOpenCount = 0;\n\nfunction requiredWithoutSource(props, propName, componentName) {\n if (props.source == null && props[propName] == null) {\n throw new Error(`The prop \\`${propName}\\` is marked as required in \\`${componentName}\\`, but its value is \\`${props[propName]}\\`.`);\n }\n}\n\nconst trayPropsMap = {\n canUploadFiles: prop_types__WEBPACK_IMPORTED_MODULE_2__[\"bool\"].isRequired,\n contextId: prop_types__WEBPACK_IMPORTED_MODULE_2__[\"string\"].isRequired,\n // initial value indicating the user's context (e.g. student v teacher), not the tray's\n contextType: prop_types__WEBPACK_IMPORTED_MODULE_2__[\"string\"].isRequired,\n // initial value indicating the user's context, not the tray's\n containingContext: Object(prop_types__WEBPACK_IMPORTED_MODULE_2__[\"shape\"])({\n contextType: prop_types__WEBPACK_IMPORTED_MODULE_2__[\"string\"].isRequired,\n contextId: prop_types__WEBPACK_IMPORTED_MODULE_2__[\"string\"].isRequired,\n userId: prop_types__WEBPACK_IMPORTED_MODULE_2__[\"string\"].isRequired\n }),\n filesTabDisabled: prop_types__WEBPACK_IMPORTED_MODULE_2__[\"bool\"],\n host: requiredWithoutSource,\n jwt: requiredWithoutSource,\n refreshToken: prop_types__WEBPACK_IMPORTED_MODULE_2__[\"func\"],\n source: Object(prop_types__WEBPACK_IMPORTED_MODULE_2__[\"shape\"])({\n fetchImages: prop_types__WEBPACK_IMPORTED_MODULE_2__[\"func\"].isRequired\n }),\n themeUrl: prop_types__WEBPACK_IMPORTED_MODULE_2__[\"string\"]\n};\nconst trayPropTypes = Object(prop_types__WEBPACK_IMPORTED_MODULE_2__[\"shape\"])(trayPropsMap);\nCanvasContentTray.propTypes = {\n bridge: Object(prop_types__WEBPACK_IMPORTED_MODULE_2__[\"instanceOf\"])(_bridge_Bridge__WEBPACK_IMPORTED_MODULE_9__[\"default\"]).isRequired,\n editor: Object(prop_types__WEBPACK_IMPORTED_MODULE_2__[\"shape\"])({\n id: prop_types__WEBPACK_IMPORTED_MODULE_2__[\"string\"]\n }).isRequired,\n onTrayClosing: prop_types__WEBPACK_IMPORTED_MODULE_2__[\"func\"],\n // called with true when the tray starts closing, false once closed\n onEditClick: prop_types__WEBPACK_IMPORTED_MODULE_2__[\"func\"],\n ...trayPropsMap\n}; // the way we define trayProps, eslint doesn't recognize the following as props\n\n/* eslint-disable react/default-props-match-prop-types */\n\nCanvasContentTray.defaultProps = {\n canUploadFiles: false,\n filesTabDisabled: false,\n refreshToken: null,\n source: null,\n themeUrl: null\n};\n/* eslint-enable react/default-props-match-prop-types */\n\n//# sourceURL=webpack:///./src/rce/plugins/shared/CanvasContentTray.js?");
17858
17858
 
17859
17859
  /***/ }),
17860
17860
 
@@ -18106,7 +18106,7 @@ eval("__webpack_require__.r(__webpack_exports__);\n/* harmony export (binding) *
18106
18106
  /***/ (function(module, __webpack_exports__, __webpack_require__) {
18107
18107
 
18108
18108
  "use strict";
18109
- eval("__webpack_require__.r(__webpack_exports__);\n/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, \"headerFor\", function() { return headerFor; });\n/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, \"originFromHost\", function() { return originFromHost; });\n/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, \"getSearchParam\", function() { return getSearchParam; });\n/* harmony import */ var _babel_runtime_corejs3_core_js_stable_instance_includes__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! @babel/runtime-corejs3/core-js-stable/instance/includes */ \"../../node_modules/@babel/runtime-corejs3/core-js-stable/instance/includes.js\");\n/* harmony import */ var _babel_runtime_corejs3_core_js_stable_instance_includes__WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(_babel_runtime_corejs3_core_js_stable_instance_includes__WEBPACK_IMPORTED_MODULE_0__);\n/* harmony import */ var isomorphic_fetch__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! isomorphic-fetch */ \"../../node_modules/isomorphic-fetch/fetch-npm-browserify.js\");\n/* harmony import */ var isomorphic_fetch__WEBPACK_IMPORTED_MODULE_1___default = /*#__PURE__*/__webpack_require__.n(isomorphic_fetch__WEBPACK_IMPORTED_MODULE_1__);\n/* harmony import */ var url__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! url */ \"../../node_modules/url/url.js\");\n/* harmony import */ var url__WEBPACK_IMPORTED_MODULE_2___default = /*#__PURE__*/__webpack_require__.n(url__WEBPACK_IMPORTED_MODULE_2__);\n/* harmony import */ var _instructure_canvas_media__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! @instructure/canvas-media */ \"../canvas-media/es/index.js\");\n/* harmony import */ var _common_fileUrl__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(/*! ../common/fileUrl */ \"./src/common/fileUrl.js\");\n/* harmony import */ var _rce_alertHandler__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__(/*! ../rce/alertHandler */ \"./src/rce/alertHandler.js\");\n/* harmony import */ var _buildError__WEBPACK_IMPORTED_MODULE_6__ = __webpack_require__(/*! ./buildError */ \"./src/rcs/buildError.js\");\n\n\n/*\n * Copyright (C) 2018 - present Instructure, Inc.\n *\n * This file is part of Canvas.\n *\n * Canvas is free software: you can redistribute it and/or modify it under\n * the terms of the GNU Affero General Public License as published by the Free\n * Software Foundation, version 3 of the License.\n *\n * Canvas is distributed in the hope that it will be useful, but WITHOUT ANY\n * WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR\n * A PARTICULAR PURPOSE. See the GNU Affero General Public License for more\n * details.\n *\n * You should have received a copy of the GNU Affero General Public License along\n * with this program. If not, see <http://www.gnu.org/licenses/>.\n */\n\n\n\n\n\n\nfunction headerFor(jwt) {\n return {\n Authorization: 'Bearer ' + jwt\n };\n}\nfunction originFromHost(host, windowOverride) {\n let origin = host;\n\n if (typeof origin !== 'string') {\n origin = '';\n } else if (origin && origin.substr(0, 4) !== 'http') {\n var _windowHandle$locatio;\n\n origin = `//${origin}`;\n const windowHandle = windowOverride || (typeof window !== 'undefined' ? window : undefined);\n\n if (origin.length > 0 && windowHandle !== null && windowHandle !== void 0 && (_windowHandle$locatio = windowHandle.location) !== null && _windowHandle$locatio !== void 0 && _windowHandle$locatio.protocol) {\n origin = `${windowHandle.location.protocol}${origin}`;\n }\n }\n\n return origin;\n} // filter a response to raise an error on a 400+ status\n\nfunction checkStatus(response) {\n if (response.status < 400) {\n return response;\n } else {\n const error = new Error(response.statusText);\n error.response = response;\n throw error;\n }\n}\n\nfunction defaultRefreshTokenHandler() {\n throw new Error('Token expired, no refresh function provided');\n}\n\nfunction normalizeFileData(file) {\n return {\n // copy the name to the default display name if none provided\n display_name: file.name,\n ...file,\n // wrap the url\n href: Object(_common_fileUrl__WEBPACK_IMPORTED_MODULE_4__[\"downloadToWrap\"])(file.href || file.url)\n };\n}\n\nfunction throwConnectionError(error) {\n if (error.name === 'TypeError') {\n // eslint-disable-next-line no-console\n console.error(`Failed to fetch from the canvas-rce-api.\n Did you forget to start it or configure it?\n Details can be found at https://github.com/instructure/canvas-rce-api\n `);\n }\n\n throw error;\n}\n\nclass RceApiSource {\n constructor() {\n let options = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : {};\n this.jwt = options.jwt;\n this.host = options.host;\n this.refreshToken = options.refreshToken || defaultRefreshTokenHandler;\n this.hasSession = false;\n this.alertFunc = options.alertFunc || _rce_alertHandler__WEBPACK_IMPORTED_MODULE_5__[\"default\"].handleAlert;\n }\n\n getSession() {\n const headers = headerFor(this.jwt);\n const uri = this.baseUri('session');\n return this.apiReallyFetch(uri, headers).then(data => {\n this.hasSession = true;\n return data;\n }).catch(throwConnectionError);\n } // initial state of a collection is empty, not loading, with bookmark set to\n // uri for initial page fetch\n\n\n initializeCollection(endpoint, props) {\n return {\n links: [],\n bookmark: this.uriFor(endpoint, props),\n isLoading: false,\n hasMore: true,\n searchString: props.searchString\n };\n }\n\n initializeUpload() {\n return {\n uploading: false,\n folders: {},\n formExpanded: false\n };\n }\n\n initializeImages(props) {\n return this.initializeDocuments(props);\n }\n\n initializeDocuments(props) {\n return {\n [props.contextType]: {\n files: [],\n bookmark: null,\n isLoading: false,\n hasMore: true\n },\n searchString: ''\n };\n }\n\n initializeMedia(props) {\n return this.initializeDocuments(props);\n }\n\n initializeFlickr() {\n return {\n searchResults: [],\n searching: false,\n formExpanded: false\n };\n } // fetches the given URI and filters it to either an error or parsed response\n\n\n fetchPage(uri) {\n return this.apiFetch(uri, headerFor(this.jwt));\n }\n\n fetchBookmarkedData(fetchFunction, properties, onSuccess, onError, bookmark) {\n return fetchFunction(properties, bookmark).then(result => {\n onSuccess(result);\n\n if (result.bookmark) {\n this.fetchBookmarkedData(fetchFunction, properties, onSuccess, onError, result.bookmark);\n }\n }).catch(error => {\n onError(error);\n });\n }\n\n fetchDocs(props) {\n const documents = props.documents[props.contextType];\n const uri = documents.bookmark || this.uriFor('documents', props);\n return this.apiFetch(uri, headerFor(this.jwt)).then(_ref => {\n let {\n bookmark,\n files\n } = _ref;\n return {\n bookmark,\n files: files.map(f => Object(_common_fileUrl__WEBPACK_IMPORTED_MODULE_4__[\"fixupFileUrl\"])(props.contextType, props.contextId, f))\n };\n });\n }\n\n fetchMedia(props) {\n const media = props.media[props.contextType];\n const uri = media.bookmark || this.uriFor('media', props);\n return this.apiFetch(uri, headerFor(this.jwt));\n }\n\n fetchFiles(uri) {\n return this.fetchPage(uri).then(_ref2 => {\n let {\n bookmark,\n files\n } = _ref2;\n return {\n bookmark,\n files: files.map(normalizeFileData)\n };\n });\n }\n\n fetchLinks(key, props) {\n const {\n collections\n } = props;\n const bookmark = collections[key].bookmark || this.uriFor(key, props);\n return this.fetchPage(bookmark);\n }\n\n fetchRootFolder(props) {\n return this.fetchPage(this.uriFor('folders', props), this.jwt);\n }\n\n mediaServerSession() {\n return this.apiPost(this.baseUri('v1/services/kaltura_session'), headerFor(this.jwt), {});\n }\n\n uploadMediaToCanvas(mediaObject) {\n var _context;\n\n const body = {\n id: mediaObject.entryId,\n type: {\n 2: 'image',\n 5: 'audio'\n }[mediaObject.mediaType] || _babel_runtime_corejs3_core_js_stable_instance_includes__WEBPACK_IMPORTED_MODULE_0___default()(_context = mediaObject.type).call(_context, 'audio') ? 'audio' : 'video',\n context_code: mediaObject.contextCode,\n title: mediaObject.title,\n user_entered_title: mediaObject.userTitle\n };\n return this.apiPost(this.baseUri('media_objects'), headerFor(this.jwt), body);\n }\n\n updateMediaObject(apiProps, _ref3) {\n let {\n media_object_id,\n title\n } = _ref3;\n const uri = `${this.baseUri('media_objects', apiProps.host)}/${media_object_id}?user_entered_title=${encodeURIComponent(title)}`;\n return this.apiPost(uri, headerFor(this.jwt), null, 'PUT');\n } // PUT to //RCS/api/media_objects/:mediaId/media_tracks [{locale, content}, ...]\n // receive back a 200 with the new subtitles, or a 4xx error\n\n\n updateClosedCaptions(apiProps, _ref4, maxBytes) {\n let {\n media_object_id,\n subtitles\n } = _ref4;\n return Object(_instructure_canvas_media__WEBPACK_IMPORTED_MODULE_3__[\"saveClosedCaptions\"])(media_object_id, subtitles, {\n origin: originFromHost(apiProps.host),\n headers: headerFor(apiProps.jwt)\n }, maxBytes || _instructure_canvas_media__WEBPACK_IMPORTED_MODULE_3__[\"CONSTANTS\"].CC_FILE_MAX_BYTES).catch(e => {\n console.error('Failed saving CC', e);\n this.alertFunc(Object(_buildError__WEBPACK_IMPORTED_MODULE_6__[\"default\"])({\n message: 'failed to save captions'\n }, e));\n });\n } // GET /media_objects/:mediaId/media_tracks\n // receive back the current list of media_tracks\n\n\n fetchClosedCaptions(_mediaId) {\n return Promise.resolve([{\n locale: 'af',\n content: '1\\r\\n00:00:00,000 --> 00:00:01,251\\r\\nThis is the content\\r\\n'\n }, {\n locale: 'es',\n content: '1\\r\\n00:00:00,000 --> 00:00:01,251\\r\\nThis is the content\\r\\n'\n }]);\n } // fetches folders for the given context to upload files to\n\n\n fetchFolders(props, bookmark) {\n const headers = headerFor(this.jwt);\n const uri = bookmark || this.uriFor('folders/all', props);\n return this.apiFetch(uri, headers);\n } // Fetches all files for a given folder\n\n\n fetchFilesForFolder(props, bookmark) {\n let uri;\n\n if (!bookmark) {\n const perPageQuery = props.perPage ? `per_page=${props.perPage}` : '';\n const searchParam = getSearchParam(props.searchString);\n uri = `${props.filesUrl}`;\n uri += perPageQuery ? `?${perPageQuery}` : '';\n\n if (searchParam) {\n uri += perPageQuery ? `${searchParam}` : `?${searchParam}`;\n }\n\n if (props.sortBy) {\n uri += `${getSortParams(props.sortBy.sort, props.sortBy.order)}`;\n }\n }\n\n return this.fetchPage(uri || bookmark, this.jwt);\n }\n\n fetchSubFolders(props, bookmark) {\n const uri = bookmark || `${this.baseUri('folders', props.host)}/${props.folderId}`;\n return this.apiFetch(uri, headerFor(this.jwt));\n }\n\n fetchIconMakerFolder(_ref5) {\n let {\n contextId,\n contextType\n } = _ref5;\n const uri = this.uriFor('folders/icon_maker', {\n contextId,\n contextType,\n host: this.host,\n jwt: this.jwt\n });\n return this.fetchPage(uri);\n }\n\n fetchMediaFolder(props) {\n let uri;\n\n if (props.contextType === 'user') {\n uri = this.uriFor('folders', props);\n } else {\n uri = this.uriFor('folders/media', props);\n }\n\n return this.fetchPage(uri);\n }\n\n fetchMediaObjectIframe(mediaObjectId) {\n return this.fetchPage(this.uriFor(`media_objects_iframe/${mediaObjectId}`));\n }\n\n fetchImages(props) {\n const images = props.images[props.contextType];\n const uri = images.bookmark || this.uriFor('images', props);\n const headers = headerFor(this.jwt);\n return this.apiFetch(uri, headers).then(_ref6 => {\n let {\n bookmark,\n files\n } = _ref6;\n return {\n bookmark,\n files: files.map(f => Object(_common_fileUrl__WEBPACK_IMPORTED_MODULE_4__[\"fixupFileUrl\"])(props.contextType, props.contextId, f)),\n searchString: props.searchString\n };\n });\n }\n\n preflightUpload(fileProps, apiProps) {\n const headers = headerFor(this.jwt);\n const uri = this.baseUri('upload', apiProps.host);\n const body = {\n contextId: apiProps.contextId,\n contextType: apiProps.contextType,\n file: fileProps,\n no_redirect: true,\n onDuplicate: apiProps.onDuplicate,\n category: apiProps.category\n };\n return this.apiPost(uri, headers, body);\n }\n\n uploadFRD(fileDomObject, preflightProps) {\n var _context2;\n\n const data = new window.FormData();\n Object.keys(preflightProps.upload_params).forEach(uploadProp => {\n data.append(uploadProp, preflightProps.upload_params[uploadProp]);\n });\n data.append('file', fileDomObject);\n const fetchOptions = {\n method: 'POST',\n body: data\n };\n\n if (!preflightProps.upload_params['x-amz-signature'] && !_babel_runtime_corejs3_core_js_stable_instance_includes__WEBPACK_IMPORTED_MODULE_0___default()(_context2 = preflightProps.upload_url).call(_context2, 'files_api')) {\n // _not_ an S3 upload, include the credentials in the upload POST\n // local uploads can include crendentials for same-origin requests\n fetchOptions.credentials = 'include';\n }\n\n return fetch(preflightProps.upload_url, fetchOptions).then(checkStatus).then(res => res.json()).then(uploadResults => {\n return this.finalizeUpload(preflightProps, uploadResults);\n }).catch(e => {\n this.alertFunc(Object(_buildError__WEBPACK_IMPORTED_MODULE_6__[\"default\"])({}, e));\n });\n }\n\n finalizeUpload(preflightProps, uploadResults) {\n if (preflightProps.upload_params.success_url) {\n // s3 upload, follow-up at success_url to finalize. the success_url doesn't\n // require authentication\n return fetch(preflightProps.upload_params.success_url).then(checkStatus).then(res => res.json());\n } else if (uploadResults.location) {\n // inst-fs upload, follow-up by fetching file identified by location in\n // response. we can't just fetch the location as would be intended because\n // it requires Canvas authentication. we also don't have an RCE API\n // endpoint to forward it through.\n const {\n pathname\n } = Object(url__WEBPACK_IMPORTED_MODULE_2__[\"parse\"])(uploadResults.location);\n const matchData = pathname.match(/^\\/api\\/v1\\/files\\/((?:\\d+~)?\\d+)$/);\n\n if (!matchData) {\n const error = new Error('cannot determine file ID from location');\n error.location = uploadResults.location;\n throw error;\n }\n\n const fileId = matchData[1];\n return this.getFile(fileId).then(fileResults => {\n fileResults.uuid = uploadResults.uuid; // if present, we'll need the uuid for the file verifier downstream\n\n return fileResults;\n });\n } else {\n // local-storage upload, this _is_ the attachment information\n return Promise.resolve(uploadResults);\n }\n }\n\n setUsageRights(fileId, usageRights) {\n const headers = headerFor(this.jwt);\n const uri = this.baseUri('usage_rights');\n const body = {\n fileId,\n ...usageRights\n };\n return this.apiPost(uri, headers, body);\n }\n\n searchFlickr(term, apiProps) {\n const headers = headerFor(this.jwt);\n const base = this.baseUri('flickr_search', apiProps.host);\n const uri = `${base}?term=${encodeURIComponent(term)}`;\n return this.apiFetch(uri, headers);\n }\n\n searchUnsplash(term, page) {\n const headers = headerFor(this.jwt);\n const base = this.baseUri('unsplash/search');\n const uri = `${base}?term=${encodeURIComponent(term)}&page=${page}&per_page=12`;\n return this.apiFetch(uri, headers);\n }\n\n pingbackUnsplash(id) {\n const headers = headerFor(this.jwt);\n const base = this.baseUri('unsplash/pingback');\n const uri = `${base}?id=${id}`;\n return this.apiFetch(uri, headers, {\n skipParse: true\n });\n }\n\n getFile(id) {\n let options = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : {};\n const headers = headerFor(this.jwt);\n const base = this.baseUri('file'); // Valid query parameters for getFile\n\n const {\n replacement_chain_context_type,\n replacement_chain_context_id\n } = options;\n const uri = this.addParamsIfPresent(`${base}/${id}`, {\n replacement_chain_context_type,\n replacement_chain_context_id\n });\n return this.apiFetch(uri, headers).then(normalizeFileData);\n } // @private\n\n\n addParamsIfPresent(uri, params) {\n let url;\n\n try {\n url = new URL(uri);\n } catch (e) {\n // Just return the URI if it was invalid\n return uri;\n } // Add all truthy parameters to the URL\n\n\n for (const [name, value] of Object.entries(params)) {\n if (!value) continue;\n url.searchParams.append(name, value);\n }\n\n return url.toString();\n } // @private\n\n\n async apiFetch(uri, headers, options) {\n if (!this.hasSession) {\n await this.getSession();\n }\n\n return this.apiReallyFetch(uri, headers, options);\n }\n\n apiReallyFetch(uri, headers) {\n let options = arguments.length > 2 && arguments[2] !== undefined ? arguments[2] : {};\n uri = this.normalizeUriProtocol(uri);\n return fetch(uri, {\n headers\n }).then(response => {\n if (response.status === 401) {\n // retry once with fresh token\n return this.buildRetryHeaders(headers).then(newHeaders => {\n return fetch(uri, {\n headers: newHeaders\n });\n });\n } else {\n return response;\n }\n }).then(checkStatus).then(options.skipParse ? () => {} : res => res.json()).catch(throwConnectionError).catch(e => {\n this.alertFunc(Object(_buildError__WEBPACK_IMPORTED_MODULE_6__[\"default\"])(e));\n throw e;\n });\n } // @private\n\n\n apiPost(uri, headers, body) {\n let method = arguments.length > 3 && arguments[3] !== undefined ? arguments[3] : 'POST';\n headers = { ...headers,\n 'Content-Type': 'application/json'\n };\n const fetchOptions = {\n method,\n headers\n };\n\n if (body) {\n fetchOptions.body = JSON.stringify(body);\n } else {\n fetchOptions.form = body;\n }\n\n uri = this.normalizeUriProtocol(uri);\n return fetch(uri, fetchOptions).then(response => {\n if (response.status === 401) {\n // retry once with fresh token\n return this.buildRetryHeaders(fetchOptions.headers).then(newHeaders => {\n const newOptions = { ...fetchOptions,\n headers: newHeaders\n };\n return fetch(uri, newOptions);\n });\n } else {\n return response;\n }\n }).then(checkStatus).then(res => res.json()).catch(throwConnectionError).catch(e => e.response.json().then(body => {\n console.error(e); // eslint-disable-line no-console\n\n this.alertFunc(Object(_buildError__WEBPACK_IMPORTED_MODULE_6__[\"default\"])(body));\n throw e;\n }));\n } // @private\n\n\n normalizeUriProtocol(uri, windowOverride) {\n const windowHandle = windowOverride || (typeof window !== 'undefined' ? window : undefined);\n\n if (windowHandle && windowHandle.location && windowHandle.location.protocol === 'https:') {\n return uri.replace('http://', 'https://');\n }\n\n return uri;\n } // @private\n\n\n buildRetryHeaders(headers) {\n return new Promise(resolve => {\n this.refreshToken(freshToken => {\n this.jwt = freshToken;\n const freshHeader = headerFor(freshToken);\n const mergedHeaders = { ...headers,\n ...freshHeader\n };\n resolve(mergedHeaders);\n });\n });\n }\n\n baseUri(endpoint, host, windowOverride) {\n if (!host && this.host) {\n host = this.host;\n }\n\n host = originFromHost(host, windowOverride);\n const sharedEndpoints = ['images', 'media', 'documents', 'all']; // 'all' will eventually be something different\n\n const endpt = _babel_runtime_corejs3_core_js_stable_instance_includes__WEBPACK_IMPORTED_MODULE_0___default()(sharedEndpoints).call(sharedEndpoints, endpoint) ? 'documents' : endpoint;\n return `${host}/api/${endpt}`;\n } // returns the URI to use with the fetchPage method to fetch the first page of\n // the given endpoint. e.g. for wikiPages it might return:\n //\n // //rce.docker/api/wikiPages?context_type=course&context_id=42\n //\n\n\n uriFor(endpoint, props) {\n const {\n host,\n contextType,\n contextId,\n sortBy,\n searchString,\n perPage\n } = props;\n let extra = '';\n const pageSizeParam = perPage ? `&per_page=${perPage}` : '';\n\n switch (endpoint) {\n case 'images':\n extra = `&content_types=image${getSortParams(sortBy.sort, sortBy.dir)}${getSearchParam(searchString)}${optionalQuery(props, 'category')}`;\n break;\n\n case 'media':\n // when requesting media files via the documents endpoint\n extra = `&content_types=video,audio${getSortParams(sortBy.sort, sortBy.dir)}${getSearchParam(searchString)}`;\n break;\n\n case 'documents':\n extra = `&exclude_content_types=image,video,audio${getSortParams(sortBy.sort, sortBy.dir)}${getSearchParam(searchString)}`;\n break;\n\n case 'media_objects':\n // when requesting media objects (this is the currently used branch)\n extra = `${getSortParams(sortBy.sort === 'alphabetical' ? 'title' : 'date', sortBy.dir)}${getSearchParam(searchString)}`;\n break;\n\n default:\n extra = getSearchParam(searchString);\n }\n\n return `${this.baseUri(endpoint, host)}?contextType=${contextType}&contextId=${contextId}${pageSizeParam}${extra}`;\n }\n\n}\n\nfunction getSortParams(sort, dir) {\n let sortBy = sort;\n\n if (sortBy === 'date_added') {\n sortBy = 'created_at';\n } else if (sortBy === 'alphabetical') {\n sortBy = 'name';\n }\n\n return `&sort=${sortBy}&order=${dir}`;\n}\n\nfunction optionalQuery(props, name) {\n return props[name] ? `&${name}=${props[name]}` : '';\n}\n\nfunction getSearchParam(searchString) {\n return (searchString === null || searchString === void 0 ? void 0 : searchString.length) >= 3 ? `&search_term=${encodeURIComponent(searchString)}` : '';\n}\n/* harmony default export */ __webpack_exports__[\"default\"] = (RceApiSource);\n\n//# sourceURL=webpack:///./src/rcs/api.js?");
18109
+ eval("__webpack_require__.r(__webpack_exports__);\n/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, \"headerFor\", function() { return headerFor; });\n/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, \"originFromHost\", function() { return originFromHost; });\n/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, \"getSearchParam\", function() { return getSearchParam; });\n/* harmony import */ var _babel_runtime_corejs3_core_js_stable_instance_includes__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! @babel/runtime-corejs3/core-js-stable/instance/includes */ \"../../node_modules/@babel/runtime-corejs3/core-js-stable/instance/includes.js\");\n/* harmony import */ var _babel_runtime_corejs3_core_js_stable_instance_includes__WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(_babel_runtime_corejs3_core_js_stable_instance_includes__WEBPACK_IMPORTED_MODULE_0__);\n/* harmony import */ var isomorphic_fetch__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! isomorphic-fetch */ \"../../node_modules/isomorphic-fetch/fetch-npm-browserify.js\");\n/* harmony import */ var isomorphic_fetch__WEBPACK_IMPORTED_MODULE_1___default = /*#__PURE__*/__webpack_require__.n(isomorphic_fetch__WEBPACK_IMPORTED_MODULE_1__);\n/* harmony import */ var url__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! url */ \"../../node_modules/url/url.js\");\n/* harmony import */ var url__WEBPACK_IMPORTED_MODULE_2___default = /*#__PURE__*/__webpack_require__.n(url__WEBPACK_IMPORTED_MODULE_2__);\n/* harmony import */ var _instructure_canvas_media__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! @instructure/canvas-media */ \"../canvas-media/es/index.js\");\n/* harmony import */ var _common_fileUrl__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(/*! ../common/fileUrl */ \"./src/common/fileUrl.js\");\n/* harmony import */ var _rce_alertHandler__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__(/*! ../rce/alertHandler */ \"./src/rce/alertHandler.js\");\n/* harmony import */ var _buildError__WEBPACK_IMPORTED_MODULE_6__ = __webpack_require__(/*! ./buildError */ \"./src/rcs/buildError.js\");\n\n\n/*\n * Copyright (C) 2018 - present Instructure, Inc.\n *\n * This file is part of Canvas.\n *\n * Canvas is free software: you can redistribute it and/or modify it under\n * the terms of the GNU Affero General Public License as published by the Free\n * Software Foundation, version 3 of the License.\n *\n * Canvas is distributed in the hope that it will be useful, but WITHOUT ANY\n * WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR\n * A PARTICULAR PURPOSE. See the GNU Affero General Public License for more\n * details.\n *\n * You should have received a copy of the GNU Affero General Public License along\n * with this program. If not, see <http://www.gnu.org/licenses/>.\n */\n\n\n\n\n\n\nfunction headerFor(jwt) {\n return {\n Authorization: 'Bearer ' + jwt\n };\n}\nfunction originFromHost(host, windowOverride) {\n let origin = host;\n\n if (typeof origin !== 'string') {\n origin = '';\n } else if (origin && origin.substr(0, 4) !== 'http') {\n var _windowHandle$locatio;\n\n origin = `//${origin}`;\n const windowHandle = windowOverride || (typeof window !== 'undefined' ? window : undefined);\n\n if (origin.length > 0 && windowHandle !== null && windowHandle !== void 0 && (_windowHandle$locatio = windowHandle.location) !== null && _windowHandle$locatio !== void 0 && _windowHandle$locatio.protocol) {\n origin = `${windowHandle.location.protocol}${origin}`;\n }\n }\n\n return origin;\n} // filter a response to raise an error on a 400+ status\n\nfunction checkStatus(response) {\n if (response.status < 400) {\n return response;\n } else {\n const error = new Error(response.statusText);\n error.response = response;\n throw error;\n }\n}\n\nfunction defaultRefreshTokenHandler() {\n throw new Error('Token expired, no refresh function provided');\n}\n\nfunction normalizeFileData(file) {\n return {\n // copy the name to the default display name if none provided\n display_name: file.name,\n ...file,\n // wrap the url\n href: Object(_common_fileUrl__WEBPACK_IMPORTED_MODULE_4__[\"downloadToWrap\"])(file.href || file.url)\n };\n}\n\nfunction throwConnectionError(error) {\n if (error.name === 'TypeError') {\n // eslint-disable-next-line no-console\n console.error(`Failed to fetch from the canvas-rce-api.\n Did you forget to start it or configure it?\n Details can be found at https://github.com/instructure/canvas-rce-api\n `);\n }\n\n throw error;\n}\n\nclass RceApiSource {\n constructor() {\n let options = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : {};\n this.jwt = options.jwt;\n this.host = options.host;\n this.refreshToken = options.refreshToken || defaultRefreshTokenHandler;\n this.hasSession = false;\n this.alertFunc = options.alertFunc || _rce_alertHandler__WEBPACK_IMPORTED_MODULE_5__[\"default\"].handleAlert;\n this.canvasOrigin = options.canvasOrigin || window.origin;\n }\n\n getSession() {\n const headers = headerFor(this.jwt);\n const uri = this.baseUri('session');\n return this.apiReallyFetch(uri, headers).then(data => {\n this.hasSession = true;\n return data;\n }).catch(throwConnectionError);\n } // initial state of a collection is empty, not loading, with bookmark set to\n // uri for initial page fetch\n\n\n initializeCollection(endpoint, props) {\n return {\n links: [],\n bookmark: this.uriFor(endpoint, props),\n isLoading: false,\n hasMore: true,\n searchString: props.searchString\n };\n }\n\n initializeUpload() {\n return {\n uploading: false,\n folders: {},\n formExpanded: false\n };\n }\n\n initializeImages(props) {\n return this.initializeDocuments(props);\n }\n\n initializeDocuments(props) {\n return {\n [props.contextType]: {\n files: [],\n bookmark: null,\n isLoading: false,\n hasMore: true\n },\n searchString: ''\n };\n }\n\n initializeMedia(props) {\n return this.initializeDocuments(props);\n }\n\n initializeFlickr() {\n return {\n searchResults: [],\n searching: false,\n formExpanded: false\n };\n } // fetches the given URI and filters it to either an error or parsed response\n\n\n fetchPage(uri) {\n return this.apiFetch(uri, headerFor(this.jwt));\n }\n\n fetchBookmarkedData(fetchFunction, properties, onSuccess, onError, bookmark) {\n return fetchFunction(properties, bookmark).then(result => {\n onSuccess(result);\n\n if (result.bookmark) {\n this.fetchBookmarkedData(fetchFunction, properties, onSuccess, onError, result.bookmark);\n }\n }).catch(error => {\n onError(error);\n });\n }\n\n fetchDocs(props) {\n const documents = props.documents[props.contextType];\n const uri = documents.bookmark || this.uriFor('documents', props);\n return this.apiFetch(uri, headerFor(this.jwt)).then(_ref => {\n let {\n bookmark,\n files\n } = _ref;\n return {\n bookmark,\n files: files.map(f => Object(_common_fileUrl__WEBPACK_IMPORTED_MODULE_4__[\"fixupFileUrl\"])(props.contextType, props.contextId, f, this.canvasOrigin))\n };\n });\n }\n\n fetchMedia(props) {\n const media = props.media[props.contextType];\n const uri = media.bookmark || this.uriFor('media', props);\n return this.apiFetch(uri, headerFor(this.jwt));\n }\n\n fetchFiles(uri) {\n return this.fetchPage(uri).then(_ref2 => {\n let {\n bookmark,\n files\n } = _ref2;\n return {\n bookmark,\n files: files.map(normalizeFileData)\n };\n });\n }\n\n fetchLinks(key, props) {\n const {\n collections\n } = props;\n const bookmark = collections[key].bookmark || this.uriFor(key, props);\n return this.fetchPage(bookmark);\n }\n\n fetchRootFolder(props) {\n return this.fetchPage(this.uriFor('folders', props), this.jwt);\n }\n\n mediaServerSession() {\n return this.apiPost(this.baseUri('v1/services/kaltura_session'), headerFor(this.jwt), {});\n }\n\n uploadMediaToCanvas(mediaObject) {\n var _context;\n\n const body = {\n id: mediaObject.entryId,\n type: {\n 2: 'image',\n 5: 'audio'\n }[mediaObject.mediaType] || _babel_runtime_corejs3_core_js_stable_instance_includes__WEBPACK_IMPORTED_MODULE_0___default()(_context = mediaObject.type).call(_context, 'audio') ? 'audio' : 'video',\n context_code: mediaObject.contextCode,\n title: mediaObject.title,\n user_entered_title: mediaObject.userTitle\n };\n return this.apiPost(this.baseUri('media_objects'), headerFor(this.jwt), body);\n }\n\n updateMediaObject(apiProps, _ref3) {\n let {\n media_object_id,\n title\n } = _ref3;\n const uri = `${this.baseUri('media_objects', apiProps.host)}/${media_object_id}?user_entered_title=${encodeURIComponent(title)}`;\n return this.apiPost(uri, headerFor(this.jwt), null, 'PUT');\n } // PUT to //RCS/api/media_objects/:mediaId/media_tracks [{locale, content}, ...]\n // receive back a 200 with the new subtitles, or a 4xx error\n\n\n updateClosedCaptions(apiProps, _ref4, maxBytes) {\n let {\n media_object_id,\n subtitles\n } = _ref4;\n return Object(_instructure_canvas_media__WEBPACK_IMPORTED_MODULE_3__[\"saveClosedCaptions\"])(media_object_id, subtitles, {\n origin: originFromHost(apiProps.host),\n headers: headerFor(apiProps.jwt)\n }, maxBytes || _instructure_canvas_media__WEBPACK_IMPORTED_MODULE_3__[\"CONSTANTS\"].CC_FILE_MAX_BYTES).catch(e => {\n console.error('Failed saving CC', e);\n this.alertFunc(Object(_buildError__WEBPACK_IMPORTED_MODULE_6__[\"default\"])({\n message: 'failed to save captions'\n }, e));\n });\n } // GET /media_objects/:mediaId/media_tracks\n // receive back the current list of media_tracks\n\n\n fetchClosedCaptions(_mediaId) {\n return Promise.resolve([{\n locale: 'af',\n content: '1\\r\\n00:00:00,000 --> 00:00:01,251\\r\\nThis is the content\\r\\n'\n }, {\n locale: 'es',\n content: '1\\r\\n00:00:00,000 --> 00:00:01,251\\r\\nThis is the content\\r\\n'\n }]);\n } // fetches folders for the given context to upload files to\n\n\n fetchFolders(props, bookmark) {\n const headers = headerFor(this.jwt);\n const uri = bookmark || this.uriFor('folders/all', props);\n return this.apiFetch(uri, headers);\n } // Fetches all files for a given folder\n\n\n fetchFilesForFolder(props, bookmark) {\n let uri;\n\n if (!bookmark) {\n const perPageQuery = props.perPage ? `per_page=${props.perPage}` : '';\n const searchParam = getSearchParam(props.searchString);\n uri = `${props.filesUrl}`;\n uri += perPageQuery ? `?${perPageQuery}` : '';\n\n if (searchParam) {\n uri += perPageQuery ? `${searchParam}` : `?${searchParam}`;\n }\n\n if (props.sortBy) {\n uri += `${getSortParams(props.sortBy.sort, props.sortBy.order)}`;\n }\n }\n\n return this.fetchPage(uri || bookmark, this.jwt);\n }\n\n fetchSubFolders(props, bookmark) {\n const uri = bookmark || `${this.baseUri('folders', props.host)}/${props.folderId}`;\n return this.apiFetch(uri, headerFor(this.jwt));\n }\n\n fetchIconMakerFolder(_ref5) {\n let {\n contextId,\n contextType\n } = _ref5;\n const uri = this.uriFor('folders/icon_maker', {\n contextId,\n contextType,\n host: this.host,\n jwt: this.jwt\n });\n return this.fetchPage(uri);\n }\n\n fetchMediaFolder(props) {\n let uri;\n\n if (props.contextType === 'user') {\n uri = this.uriFor('folders', props);\n } else {\n uri = this.uriFor('folders/media', props);\n }\n\n return this.fetchPage(uri);\n }\n\n fetchMediaObjectIframe(mediaObjectId) {\n return this.fetchPage(this.uriFor(`media_objects_iframe/${mediaObjectId}`));\n }\n\n fetchImages(props) {\n const images = props.images[props.contextType];\n const uri = images.bookmark || this.uriFor('images', props);\n const headers = headerFor(this.jwt);\n return this.apiFetch(uri, headers).then(_ref6 => {\n let {\n bookmark,\n files\n } = _ref6;\n return {\n bookmark,\n files: files.map(f => Object(_common_fileUrl__WEBPACK_IMPORTED_MODULE_4__[\"fixupFileUrl\"])(props.contextType, props.contextId, f, this.canvasOrigin)),\n searchString: props.searchString\n };\n });\n }\n\n preflightUpload(fileProps, apiProps) {\n const headers = headerFor(this.jwt);\n const uri = this.baseUri('upload', apiProps.host);\n const body = {\n contextId: apiProps.contextId,\n contextType: apiProps.contextType,\n file: fileProps,\n no_redirect: true,\n onDuplicate: apiProps.onDuplicate,\n category: apiProps.category\n };\n return this.apiPost(uri, headers, body);\n }\n\n uploadFRD(fileDomObject, preflightProps) {\n var _context2;\n\n const data = new window.FormData();\n Object.keys(preflightProps.upload_params).forEach(uploadProp => {\n data.append(uploadProp, preflightProps.upload_params[uploadProp]);\n });\n data.append('file', fileDomObject);\n const fetchOptions = {\n method: 'POST',\n body: data\n };\n\n if (!preflightProps.upload_params['x-amz-signature'] && !_babel_runtime_corejs3_core_js_stable_instance_includes__WEBPACK_IMPORTED_MODULE_0___default()(_context2 = preflightProps.upload_url).call(_context2, 'files_api')) {\n // _not_ an S3 upload, include the credentials in the upload POST\n // local uploads can include crendentials for same-origin requests\n fetchOptions.credentials = 'include';\n }\n\n return fetch(preflightProps.upload_url, fetchOptions).then(checkStatus).then(res => res.json()).then(uploadResults => {\n return this.finalizeUpload(preflightProps, uploadResults);\n }).catch(e => {\n this.alertFunc(Object(_buildError__WEBPACK_IMPORTED_MODULE_6__[\"default\"])({}, e));\n });\n }\n\n finalizeUpload(preflightProps, uploadResults) {\n if (preflightProps.upload_params.success_url) {\n // s3 upload, follow-up at success_url to finalize. the success_url doesn't\n // require authentication\n return fetch(preflightProps.upload_params.success_url).then(checkStatus).then(res => res.json());\n } else if (uploadResults.location) {\n // inst-fs upload, follow-up by fetching file identified by location in\n // response. we can't just fetch the location as would be intended because\n // it requires Canvas authentication. we also don't have an RCE API\n // endpoint to forward it through.\n const {\n pathname\n } = Object(url__WEBPACK_IMPORTED_MODULE_2__[\"parse\"])(uploadResults.location);\n const matchData = pathname.match(/^\\/api\\/v1\\/files\\/((?:\\d+~)?\\d+)$/);\n\n if (!matchData) {\n const error = new Error('cannot determine file ID from location');\n error.location = uploadResults.location;\n throw error;\n }\n\n const fileId = matchData[1];\n return this.getFile(fileId).then(fileResults => {\n fileResults.uuid = uploadResults.uuid; // if present, we'll need the uuid for the file verifier downstream\n\n return fileResults;\n });\n } else {\n // local-storage upload, this _is_ the attachment information\n return Promise.resolve(uploadResults);\n }\n }\n\n setUsageRights(fileId, usageRights) {\n const headers = headerFor(this.jwt);\n const uri = this.baseUri('usage_rights');\n const body = {\n fileId,\n ...usageRights\n };\n return this.apiPost(uri, headers, body);\n }\n\n searchFlickr(term, apiProps) {\n const headers = headerFor(this.jwt);\n const base = this.baseUri('flickr_search', apiProps.host);\n const uri = `${base}?term=${encodeURIComponent(term)}`;\n return this.apiFetch(uri, headers);\n }\n\n searchUnsplash(term, page) {\n const headers = headerFor(this.jwt);\n const base = this.baseUri('unsplash/search');\n const uri = `${base}?term=${encodeURIComponent(term)}&page=${page}&per_page=12`;\n return this.apiFetch(uri, headers);\n }\n\n pingbackUnsplash(id) {\n const headers = headerFor(this.jwt);\n const base = this.baseUri('unsplash/pingback');\n const uri = `${base}?id=${id}`;\n return this.apiFetch(uri, headers, {\n skipParse: true\n });\n }\n\n getFile(id) {\n let options = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : {};\n const headers = headerFor(this.jwt);\n const base = this.baseUri('file'); // Valid query parameters for getFile\n\n const {\n replacement_chain_context_type,\n replacement_chain_context_id\n } = options;\n const uri = this.addParamsIfPresent(`${base}/${id}`, {\n replacement_chain_context_type,\n replacement_chain_context_id\n });\n return this.apiFetch(uri, headers).then(normalizeFileData);\n } // @private\n\n\n addParamsIfPresent(uri, params) {\n let url;\n\n try {\n url = new URL(uri);\n } catch (e) {\n // Just return the URI if it was invalid\n return uri;\n } // Add all truthy parameters to the URL\n\n\n for (const [name, value] of Object.entries(params)) {\n if (!value) continue;\n url.searchParams.append(name, value);\n }\n\n return url.toString();\n } // @private\n\n\n async apiFetch(uri, headers, options) {\n if (!this.hasSession) {\n await this.getSession();\n }\n\n return this.apiReallyFetch(uri, headers, options);\n }\n\n apiReallyFetch(uri, headers) {\n let options = arguments.length > 2 && arguments[2] !== undefined ? arguments[2] : {};\n uri = this.normalizeUriProtocol(uri);\n return fetch(uri, {\n headers\n }).then(response => {\n if (response.status === 401) {\n // retry once with fresh token\n return this.buildRetryHeaders(headers).then(newHeaders => {\n return fetch(uri, {\n headers: newHeaders\n });\n });\n } else {\n return response;\n }\n }).then(checkStatus).then(options.skipParse ? () => {} : res => res.json()).catch(throwConnectionError).catch(e => {\n this.alertFunc(Object(_buildError__WEBPACK_IMPORTED_MODULE_6__[\"default\"])(e));\n throw e;\n });\n } // @private\n\n\n apiPost(uri, headers, body) {\n let method = arguments.length > 3 && arguments[3] !== undefined ? arguments[3] : 'POST';\n headers = { ...headers,\n 'Content-Type': 'application/json'\n };\n const fetchOptions = {\n method,\n headers\n };\n\n if (body) {\n fetchOptions.body = JSON.stringify(body);\n } else {\n fetchOptions.form = body;\n }\n\n uri = this.normalizeUriProtocol(uri);\n return fetch(uri, fetchOptions).then(response => {\n if (response.status === 401) {\n // retry once with fresh token\n return this.buildRetryHeaders(fetchOptions.headers).then(newHeaders => {\n const newOptions = { ...fetchOptions,\n headers: newHeaders\n };\n return fetch(uri, newOptions);\n });\n } else {\n return response;\n }\n }).then(checkStatus).then(res => res.json()).catch(throwConnectionError).catch(e => e.response.json().then(body => {\n console.error(e); // eslint-disable-line no-console\n\n this.alertFunc(Object(_buildError__WEBPACK_IMPORTED_MODULE_6__[\"default\"])(body));\n throw e;\n }));\n } // @private\n\n\n normalizeUriProtocol(uri, windowOverride) {\n const windowHandle = windowOverride || (typeof window !== 'undefined' ? window : undefined);\n\n if (windowHandle && windowHandle.location && windowHandle.location.protocol === 'https:') {\n return uri.replace('http://', 'https://');\n }\n\n return uri;\n } // @private\n\n\n buildRetryHeaders(headers) {\n return new Promise(resolve => {\n this.refreshToken(freshToken => {\n this.jwt = freshToken;\n const freshHeader = headerFor(freshToken);\n const mergedHeaders = { ...headers,\n ...freshHeader\n };\n resolve(mergedHeaders);\n });\n });\n }\n\n baseUri(endpoint, host, windowOverride) {\n if (!host && this.host) {\n host = this.host;\n }\n\n host = originFromHost(host, windowOverride);\n const sharedEndpoints = ['images', 'media', 'documents', 'all']; // 'all' will eventually be something different\n\n const endpt = _babel_runtime_corejs3_core_js_stable_instance_includes__WEBPACK_IMPORTED_MODULE_0___default()(sharedEndpoints).call(sharedEndpoints, endpoint) ? 'documents' : endpoint;\n return `${host}/api/${endpt}`;\n } // returns the URI to use with the fetchPage method to fetch the first page of\n // the given endpoint. e.g. for wikiPages it might return:\n //\n // //rce.docker/api/wikiPages?context_type=course&context_id=42\n //\n\n\n uriFor(endpoint, props) {\n const {\n host,\n contextType,\n contextId,\n sortBy,\n searchString,\n perPage\n } = props;\n let extra = '';\n const pageSizeParam = perPage ? `&per_page=${perPage}` : '';\n\n switch (endpoint) {\n case 'images':\n extra = `&content_types=image${getSortParams(sortBy.sort, sortBy.dir)}${getSearchParam(searchString)}${optionalQuery(props, 'category')}`;\n break;\n\n case 'media':\n // when requesting media files via the documents endpoint\n extra = `&content_types=video,audio${getSortParams(sortBy.sort, sortBy.dir)}${getSearchParam(searchString)}`;\n break;\n\n case 'documents':\n extra = `&exclude_content_types=image,video,audio${getSortParams(sortBy.sort, sortBy.dir)}${getSearchParam(searchString)}`;\n break;\n\n case 'media_objects':\n // when requesting media objects (this is the currently used branch)\n extra = `${getSortParams(sortBy.sort === 'alphabetical' ? 'title' : 'date', sortBy.dir)}${getSearchParam(searchString)}`;\n break;\n\n default:\n extra = getSearchParam(searchString);\n }\n\n return `${this.baseUri(endpoint, host)}?contextType=${contextType}&contextId=${contextId}${pageSizeParam}${extra}`;\n }\n\n}\n\nfunction getSortParams(sort, dir) {\n let sortBy = sort;\n\n if (sortBy === 'date_added') {\n sortBy = 'created_at';\n } else if (sortBy === 'alphabetical') {\n sortBy = 'name';\n }\n\n return `&sort=${sortBy}&order=${dir}`;\n}\n\nfunction optionalQuery(props, name) {\n return props[name] ? `&${name}=${props[name]}` : '';\n}\n\nfunction getSearchParam(searchString) {\n return (searchString === null || searchString === void 0 ? void 0 : searchString.length) >= 3 ? `&search_term=${encodeURIComponent(searchString)}` : '';\n}\n/* harmony default export */ __webpack_exports__[\"default\"] = (RceApiSource);\n\n//# sourceURL=webpack:///./src/rcs/api.js?");
18110
18110
 
18111
18111
  /***/ }),
18112
18112
 
@@ -18526,7 +18526,7 @@ eval("__webpack_require__.r(__webpack_exports__);\n/* harmony import */ var redu
18526
18526
  /***/ (function(module, __webpack_exports__, __webpack_require__) {
18527
18527
 
18528
18528
  "use strict";
18529
- eval("__webpack_require__.r(__webpack_exports__);\n/* harmony import */ var _rcs_api__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ../../rcs/api */ \"./src/rcs/api.js\");\n/*\n * Copyright (C) 2018 - present Instructure, Inc.\n *\n * This file is part of Canvas.\n *\n * Canvas is free software: you can redistribute it and/or modify it under\n * the terms of the GNU Affero General Public License as published by the Free\n * Software Foundation, version 3 of the License.\n *\n * Canvas is distributed in the hope that it will be useful, but WITHOUT ANY\n * WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR\n * A PARTICULAR PURPOSE. See the GNU Affero General Public License for more\n * details.\n *\n * You should have received a copy of the GNU Affero General Public License along\n * with this program. If not, see <http://www.gnu.org/licenses/>.\n */\n // normalize contextType. e.g. accept either of 'course' or 'courses', but\n// only store 'course'\n\nfunction normalizeContextType(contextType) {\n switch (contextType) {\n case 'course':\n case 'courses':\n return 'course';\n\n case 'group':\n case 'groups':\n return 'group';\n\n case 'user':\n case 'users':\n return 'user';\n\n default:\n return undefined;\n }\n}\n/* eslint-disable prefer-const */\n\n\n/* harmony default export */ __webpack_exports__[\"default\"] = (function () {\n let props = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : {};\n let {\n source,\n jwt,\n refreshToken,\n host,\n contextType,\n contextId,\n collections,\n files,\n folders,\n upload,\n images,\n documents,\n media,\n flickr,\n newPageLinkExpanded,\n searchString,\n sortBy,\n all_files\n } = props;\n /* eslint-enable prefer-const */\n // normalize contextType (including in props)\n\n contextType = normalizeContextType(contextType);\n props = { ...props,\n contextType\n };\n\n if (searchString === undefined) {\n searchString = '';\n }\n\n if (all_files === undefined) {\n all_files = {\n isLoading: false\n };\n }\n\n if (!sortBy) sortBy = {};\n sortBy = {\n sort: 'date_added',\n dir: 'desc',\n ...sortBy\n }; // default to API source\n\n if (source == null) {\n source = new _rcs_api__WEBPACK_IMPORTED_MODULE_0__[\"default\"]({\n jwt,\n refreshToken,\n host\n });\n } // create collections in default state if none provided\n\n\n if (collections === undefined) {\n collections = {\n announcements: source.initializeCollection('announcements', props),\n assignments: source.initializeCollection('assignments', props),\n discussions: source.initializeCollection('discussions', props),\n modules: source.initializeCollection('modules', props),\n quizzes: source.initializeCollection('quizzes', props),\n wikiPages: source.initializeCollection('wikiPages', props)\n };\n }\n\n if (upload === undefined) {\n upload = source.initializeUpload(props);\n }\n\n if (flickr === undefined) {\n flickr = source.initializeFlickr(props);\n }\n\n if (images === undefined) {\n images = source.initializeImages(props);\n }\n\n if (documents === undefined) {\n documents = source.initializeDocuments(props);\n }\n\n if (media === undefined) {\n media = source.initializeMedia(props);\n }\n\n if (newPageLinkExpanded === undefined) {\n newPageLinkExpanded = false;\n }\n\n function getAccordionIndex() {\n try {\n return window.sessionStorage.getItem('canvas_rce_links_accordion_index');\n } catch (err) {\n // If there is an error accessing session storage, just ignore it.\n // We are likely in a test environment\n return undefined;\n }\n }\n\n const ui = {\n selectedAccordionIndex: getAccordionIndex()\n };\n return {\n ui,\n source,\n jwt,\n host,\n contextType,\n contextId,\n collections,\n files,\n folders,\n upload,\n images,\n documents,\n media,\n flickr,\n newPageLinkExpanded,\n searchString,\n sortBy,\n all_files\n };\n});\n\n//# sourceURL=webpack:///./src/sidebar/store/initialState.js?");
18529
+ eval("__webpack_require__.r(__webpack_exports__);\n/* harmony import */ var _rcs_api__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ../../rcs/api */ \"./src/rcs/api.js\");\n/*\n * Copyright (C) 2018 - present Instructure, Inc.\n *\n * This file is part of Canvas.\n *\n * Canvas is free software: you can redistribute it and/or modify it under\n * the terms of the GNU Affero General Public License as published by the Free\n * Software Foundation, version 3 of the License.\n *\n * Canvas is distributed in the hope that it will be useful, but WITHOUT ANY\n * WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR\n * A PARTICULAR PURPOSE. See the GNU Affero General Public License for more\n * details.\n *\n * You should have received a copy of the GNU Affero General Public License along\n * with this program. If not, see <http://www.gnu.org/licenses/>.\n */\n // normalize contextType. e.g. accept either of 'course' or 'courses', but\n// only store 'course'\n\nfunction normalizeContextType(contextType) {\n switch (contextType) {\n case 'course':\n case 'courses':\n return 'course';\n\n case 'group':\n case 'groups':\n return 'group';\n\n case 'user':\n case 'users':\n return 'user';\n\n default:\n return undefined;\n }\n}\n/* eslint-disable prefer-const */\n\n\n/* harmony default export */ __webpack_exports__[\"default\"] = (function () {\n let props = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : {};\n let {\n source,\n jwt,\n refreshToken,\n host,\n contextType,\n contextId,\n collections,\n files,\n folders,\n upload,\n images,\n documents,\n media,\n flickr,\n newPageLinkExpanded,\n searchString,\n sortBy,\n all_files,\n canvasOrigin\n } = props;\n /* eslint-enable prefer-const */\n // normalize contextType (including in props)\n\n contextType = normalizeContextType(contextType);\n props = { ...props,\n contextType\n };\n\n if (searchString === undefined) {\n searchString = '';\n }\n\n if (all_files === undefined) {\n all_files = {\n isLoading: false\n };\n }\n\n if (!sortBy) sortBy = {};\n sortBy = {\n sort: 'date_added',\n dir: 'desc',\n ...sortBy\n }; // default to API source\n\n if (source == null) {\n source = new _rcs_api__WEBPACK_IMPORTED_MODULE_0__[\"default\"]({\n jwt,\n refreshToken,\n host,\n canvasOrigin\n });\n } // create collections in default state if none provided\n\n\n if (collections === undefined) {\n collections = {\n announcements: source.initializeCollection('announcements', props),\n assignments: source.initializeCollection('assignments', props),\n discussions: source.initializeCollection('discussions', props),\n modules: source.initializeCollection('modules', props),\n quizzes: source.initializeCollection('quizzes', props),\n wikiPages: source.initializeCollection('wikiPages', props)\n };\n }\n\n if (upload === undefined) {\n upload = source.initializeUpload(props);\n }\n\n if (flickr === undefined) {\n flickr = source.initializeFlickr(props);\n }\n\n if (images === undefined) {\n images = source.initializeImages(props);\n }\n\n if (documents === undefined) {\n documents = source.initializeDocuments(props);\n }\n\n if (media === undefined) {\n media = source.initializeMedia(props);\n }\n\n if (newPageLinkExpanded === undefined) {\n newPageLinkExpanded = false;\n }\n\n function getAccordionIndex() {\n try {\n return window.sessionStorage.getItem('canvas_rce_links_accordion_index');\n } catch (err) {\n // If there is an error accessing session storage, just ignore it.\n // We are likely in a test environment\n return undefined;\n }\n }\n\n const ui = {\n selectedAccordionIndex: getAccordionIndex()\n };\n return {\n ui,\n source,\n jwt,\n host,\n contextType,\n contextId,\n collections,\n files,\n folders,\n upload,\n images,\n documents,\n media,\n flickr,\n newPageLinkExpanded,\n searchString,\n sortBy,\n all_files\n };\n});\n\n//# sourceURL=webpack:///./src/sidebar/store/initialState.js?");
18530
18530
 
18531
18531
  /***/ }),
18532
18532