@coorpacademy/components 10.3.22 → 10.3.26

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 (1082) hide show
  1. package/es/atom/autocomplete/test/fixtures/error.js +1 -1
  2. package/es/atom/autocomplete/test/fixtures/error.js.map +1 -1
  3. package/es/atom/autocomplete/test/fixtures/filled.js +1 -1
  4. package/es/atom/autocomplete/test/fixtures/filled.js.map +1 -1
  5. package/es/atom/autocomplete/test/fixtures/modified.js +1 -1
  6. package/es/atom/autocomplete/test/fixtures/modified.js.map +1 -1
  7. package/es/atom/clue/index.js.map +1 -1
  8. package/es/atom/content-badge/test/fixtures.js +2 -0
  9. package/es/atom/content-badge/test/fixtures.js.map +1 -1
  10. package/es/atom/cta/test/fixtures/certification.js +1 -1
  11. package/es/atom/cta/test/fixtures/certification.js.map +1 -1
  12. package/es/atom/cta/test/fixtures/disabled.js +1 -1
  13. package/es/atom/cta/test/fixtures/disabled.js.map +1 -1
  14. package/es/atom/cta/test/fixtures/light-small.js +1 -1
  15. package/es/atom/cta/test/fixtures/light-small.js.map +1 -1
  16. package/es/atom/cta/test/fixtures/light.js +1 -1
  17. package/es/atom/cta/test/fixtures/light.js.map +1 -1
  18. package/es/atom/cta/test/fixtures/logout.js +1 -1
  19. package/es/atom/cta/test/fixtures/logout.js.map +1 -1
  20. package/es/atom/cta/test/fixtures/primary-small.js +1 -1
  21. package/es/atom/cta/test/fixtures/primary-small.js.map +1 -1
  22. package/es/atom/cta/test/fixtures/rectangular-secondary-fullwidth.js +1 -1
  23. package/es/atom/cta/test/fixtures/rectangular-secondary-fullwidth.js.map +1 -1
  24. package/es/atom/cta/test/fixtures/rectangular-secondary.js +1 -1
  25. package/es/atom/cta/test/fixtures/rectangular-secondary.js.map +1 -1
  26. package/es/atom/cta/test/fixtures/rectangular.js +1 -1
  27. package/es/atom/cta/test/fixtures/rectangular.js.map +1 -1
  28. package/es/atom/cta/test/fixtures/secondary-small.js +1 -1
  29. package/es/atom/cta/test/fixtures/secondary-small.js.map +1 -1
  30. package/es/atom/cta/test/fixtures/secondary.js +1 -1
  31. package/es/atom/cta/test/fixtures/secondary.js.map +1 -1
  32. package/es/atom/drag-and-drop/index.js +1 -1
  33. package/es/atom/drag-and-drop/index.js.map +1 -1
  34. package/es/atom/drag-and-drop/test/fixtures/loading.js +1 -1
  35. package/es/atom/drag-and-drop/test/fixtures/loading.js.map +1 -1
  36. package/es/atom/drag-and-drop/test/fixtures/with-image-reset.js +1 -1
  37. package/es/atom/drag-and-drop/test/fixtures/with-image-reset.js.map +1 -1
  38. package/es/atom/image-upload/index.js +1 -1
  39. package/es/atom/image-upload/index.js.map +1 -1
  40. package/es/atom/image-upload/test/fixtures/desktop-reset-description-multiple.js +1 -1
  41. package/es/atom/image-upload/test/fixtures/desktop-reset-description-multiple.js.map +1 -1
  42. package/es/atom/image-upload/test/fixtures/desktop-reset-description-only-png.js +1 -1
  43. package/es/atom/image-upload/test/fixtures/desktop-reset-description-only-png.js.map +1 -1
  44. package/es/atom/image-upload/test/fixtures/desktop-reset-description.js +1 -1
  45. package/es/atom/image-upload/test/fixtures/desktop-reset-description.js.map +1 -1
  46. package/es/atom/image-upload/test/fixtures/desktop-reset-no-description.js +1 -1
  47. package/es/atom/image-upload/test/fixtures/desktop-reset-no-description.js.map +1 -1
  48. package/es/atom/image-upload/test/fixtures/email.js +1 -1
  49. package/es/atom/image-upload/test/fixtures/email.js.map +1 -1
  50. package/es/atom/image-upload/test/fixtures/mobile.js +1 -1
  51. package/es/atom/image-upload/test/fixtures/mobile.js.map +1 -1
  52. package/es/atom/image-upload/test/fixtures/modified.js +1 -1
  53. package/es/atom/image-upload/test/fixtures/modified.js.map +1 -1
  54. package/es/atom/input-html/index.js.map +1 -1
  55. package/es/atom/input-switch/index.js +13 -6
  56. package/es/atom/input-switch/index.js.map +1 -1
  57. package/es/atom/input-switch/style.css +46 -0
  58. package/es/atom/input-switch/test/fixtures/cm-left.js +11 -0
  59. package/es/atom/input-switch/test/fixtures/cm-left.js.map +1 -0
  60. package/es/atom/input-switch/test/fixtures/cm-right-checked.js +11 -0
  61. package/es/atom/input-switch/test/fixtures/cm-right-checked.js.map +1 -0
  62. package/es/atom/input-switch/test/fixtures/cm-right-disabled.js +11 -0
  63. package/es/atom/input-switch/test/fixtures/cm-right-disabled.js.map +1 -0
  64. package/es/atom/input-switch/test/fixtures/cm-right-modified.js +12 -0
  65. package/es/atom/input-switch/test/fixtures/cm-right-modified.js.map +1 -0
  66. package/es/atom/input-switch/test/fixtures/cm-right.js +11 -0
  67. package/es/atom/input-switch/test/fixtures/cm-right.js.map +1 -0
  68. package/es/atom/input-switch/test/fixtures/disabled.js +1 -1
  69. package/es/atom/input-switch/test/fixtures/disabled.js.map +1 -1
  70. package/es/atom/input-switch/test/fixtures.js +10 -0
  71. package/es/atom/input-switch/test/fixtures.js.map +1 -1
  72. package/es/atom/link/index.js +3 -2
  73. package/es/atom/link/index.js.map +1 -1
  74. package/es/atom/loader/index.js +15 -3
  75. package/es/atom/loader/index.js.map +1 -1
  76. package/es/atom/loader/style.css +55 -1
  77. package/es/atom/loader/test/fixtures/coorpmanager.js +7 -0
  78. package/es/atom/loader/test/fixtures/coorpmanager.js.map +1 -0
  79. package/es/atom/promo-code/index.js.map +1 -1
  80. package/es/atom/provider/index.js.map +1 -1
  81. package/es/atom/provider/test/index.js +1 -1
  82. package/es/atom/provider/test/index.js.map +1 -1
  83. package/es/atom/range/index.js +1 -1
  84. package/es/atom/range/index.js.map +1 -1
  85. package/es/atom/range/test/fixtures/multi.js +1 -1
  86. package/es/atom/range/test/fixtures/multi.js.map +1 -1
  87. package/es/atom/range/test/index.js +9 -9
  88. package/es/atom/range/test/index.js.map +1 -1
  89. package/es/atom/video-upload/index.js +1 -1
  90. package/es/atom/video-upload/index.js.map +1 -1
  91. package/es/atom/video-upload/test/fixtures/loading.js +1 -1
  92. package/es/atom/video-upload/test/fixtures/loading.js.map +1 -1
  93. package/es/atom/video-upload/test/fixtures/modified.js +1 -1
  94. package/es/atom/video-upload/test/fixtures/modified.js.map +1 -1
  95. package/es/hoc/animation-scheduler/index.js +3 -3
  96. package/es/hoc/animation-scheduler/index.js.map +1 -1
  97. package/es/hoc/swapper/index.js +4 -2
  98. package/es/hoc/swapper/index.js.map +1 -1
  99. package/es/hoc/transition/index.js +1 -1
  100. package/es/hoc/transition/index.js.map +1 -1
  101. package/es/molecule/add-to-my-list/index.js +1 -1
  102. package/es/molecule/add-to-my-list/index.js.map +1 -1
  103. package/es/molecule/answer/index.js +3 -2
  104. package/es/molecule/answer/index.js.map +1 -1
  105. package/es/molecule/answer/test/fixtures/audio.js +1 -1
  106. package/es/molecule/answer/test/fixtures/audio.js.map +1 -1
  107. package/es/molecule/answer/test/fixtures/default.js +1 -1
  108. package/es/molecule/answer/test/fixtures/default.js.map +1 -1
  109. package/es/molecule/answer/test/fixtures/drop-down.js +1 -1
  110. package/es/molecule/answer/test/fixtures/drop-down.js.map +1 -1
  111. package/es/molecule/answer/test/fixtures/qcm-arabic.js +1 -1
  112. package/es/molecule/answer/test/fixtures/qcm-arabic.js.map +1 -1
  113. package/es/molecule/answer/test/fixtures/qcm-drag.js +1 -1
  114. package/es/molecule/answer/test/fixtures/qcm-drag.js.map +1 -1
  115. package/es/molecule/answer/test/fixtures/qcm-graphic.js +1 -1
  116. package/es/molecule/answer/test/fixtures/qcm-graphic.js.map +1 -1
  117. package/es/molecule/answer/test/fixtures/qcm-short-audio.js +1 -1
  118. package/es/molecule/answer/test/fixtures/qcm-short-audio.js.map +1 -1
  119. package/es/molecule/answer/test/fixtures/qcm-short-video.js +1 -1
  120. package/es/molecule/answer/test/fixtures/qcm-short-video.js.map +1 -1
  121. package/es/molecule/answer/test/fixtures/qcm-short.js +1 -1
  122. package/es/molecule/answer/test/fixtures/qcm-short.js.map +1 -1
  123. package/es/molecule/answer/test/fixtures/qcm.js +1 -1
  124. package/es/molecule/answer/test/fixtures/qcm.js.map +1 -1
  125. package/es/molecule/answer/test/fixtures/range.js +1 -1
  126. package/es/molecule/answer/test/fixtures/range.js.map +1 -1
  127. package/es/molecule/answer/test/fixtures/template.js +1 -1
  128. package/es/molecule/answer/test/fixtures/template.js.map +1 -1
  129. package/es/molecule/banner/test/fixtures.js +8 -0
  130. package/es/molecule/banner/test/fixtures.js.map +1 -1
  131. package/es/molecule/brand-form-group/index.js +18 -18
  132. package/es/molecule/brand-form-group/index.js.map +1 -1
  133. package/es/molecule/brand-form-group/test/fixtures/analytics.js +1 -1
  134. package/es/molecule/brand-form-group/test/fixtures/analytics.js.map +1 -1
  135. package/es/molecule/brand-form-group/test/fixtures/animations.js +2 -2
  136. package/es/molecule/brand-form-group/test/fixtures/animations.js.map +1 -1
  137. package/es/molecule/brand-form-group/test/fixtures/cohort.js +1 -1
  138. package/es/molecule/brand-form-group/test/fixtures/cohort.js.map +1 -1
  139. package/es/molecule/brand-form-group/test/fixtures/dashboard.js +1 -1
  140. package/es/molecule/brand-form-group/test/fixtures/dashboard.js.map +1 -1
  141. package/es/molecule/brand-form-group/test/fixtures/images.js +3 -3
  142. package/es/molecule/brand-form-group/test/fixtures/images.js.map +1 -1
  143. package/es/molecule/brand-form-group/test/fixtures/slider.js +1 -1
  144. package/es/molecule/brand-form-group/test/fixtures/slider.js.map +1 -1
  145. package/es/molecule/card/index.js +1 -1
  146. package/es/molecule/card/index.js.map +1 -1
  147. package/es/molecule/card/test/fixtures/adaptiv-and-disabled.js +1 -1
  148. package/es/molecule/card/test/fixtures/adaptiv-and-disabled.js.map +1 -1
  149. package/es/molecule/card/test/fixtures/adaptiv.js +1 -1
  150. package/es/molecule/card/test/fixtures/adaptiv.js.map +1 -1
  151. package/es/molecule/card/test/fixtures/disabled.js +1 -1
  152. package/es/molecule/card/test/fixtures/disabled.js.map +1 -1
  153. package/es/molecule/card-content/test/fixtures/adaptiv-and-disabled.js +1 -1
  154. package/es/molecule/card-content/test/fixtures/adaptiv-and-disabled.js.map +1 -1
  155. package/es/molecule/card-content/test/fixtures/adaptiv.js +1 -1
  156. package/es/molecule/card-content/test/fixtures/adaptiv.js.map +1 -1
  157. package/es/molecule/card-content/test/fixtures/disabled.js +1 -1
  158. package/es/molecule/card-content/test/fixtures/disabled.js.map +1 -1
  159. package/es/molecule/card-with-button/index.js.map +1 -1
  160. package/es/molecule/coorp-manager-roles/index.js +1 -1
  161. package/es/molecule/coorp-manager-roles/index.js.map +1 -1
  162. package/es/molecule/dashboard/battle-request-list/index.js +1 -1
  163. package/es/molecule/dashboard/battle-request-list/index.js.map +1 -1
  164. package/es/molecule/dashboard/cards-list/test/fixtures/microlearning.js +1 -1
  165. package/es/molecule/dashboard/cards-list/test/fixtures/microlearning.js.map +1 -1
  166. package/es/molecule/dashboard/cards-list/test/fixtures/performance.js +1 -1
  167. package/es/molecule/dashboard/cards-list/test/fixtures/performance.js.map +1 -1
  168. package/es/molecule/dashboard/cards-list/test/index.js +1 -1
  169. package/es/molecule/dashboard/cards-list/test/index.js.map +1 -1
  170. package/es/molecule/dashboard/news-list/index.js +1 -1
  171. package/es/molecule/dashboard/news-list/index.js.map +1 -1
  172. package/es/molecule/dashboard/start-battle/index.js +1 -1
  173. package/es/molecule/dashboard/start-battle/index.js.map +1 -1
  174. package/es/molecule/discipline-header/test/fixtures/long-description.js.map +1 -1
  175. package/es/molecule/drag-and-drop/index.js +1 -1
  176. package/es/molecule/drag-and-drop/index.js.map +1 -1
  177. package/es/molecule/drag-and-drop/test/fixtures/error.js +1 -1
  178. package/es/molecule/drag-and-drop/test/fixtures/error.js.map +1 -1
  179. package/es/molecule/drag-and-drop/test/fixtures/loading.js +1 -1
  180. package/es/molecule/drag-and-drop/test/fixtures/loading.js.map +1 -1
  181. package/es/molecule/drag-and-drop/test/fixtures/ready-invalid.js +1 -1
  182. package/es/molecule/drag-and-drop/test/fixtures/ready-invalid.js.map +1 -1
  183. package/es/molecule/drag-and-drop/test/fixtures/ready.js +1 -1
  184. package/es/molecule/drag-and-drop/test/fixtures/ready.js.map +1 -1
  185. package/es/molecule/drag-and-drop/test/fixtures/success-video.js +1 -1
  186. package/es/molecule/drag-and-drop/test/fixtures/success-video.js.map +1 -1
  187. package/es/molecule/drag-and-drop/test/fixtures/success.js +1 -1
  188. package/es/molecule/drag-and-drop/test/fixtures/success.js.map +1 -1
  189. package/es/molecule/drag-and-drop/test/on-click.js +2 -2
  190. package/es/molecule/drag-and-drop/test/on-click.js.map +1 -1
  191. package/es/molecule/drag-and-drop/upload-report.js +1 -1
  192. package/es/molecule/drag-and-drop/upload-report.js.map +1 -1
  193. package/es/molecule/feedback/index.js +1 -1
  194. package/es/molecule/feedback/index.js.map +1 -1
  195. package/es/molecule/filters/test/fixtures/default.js +4 -4
  196. package/es/molecule/filters/test/fixtures/default.js.map +1 -1
  197. package/es/molecule/filters/test/fixtures/filters-list.js +6 -6
  198. package/es/molecule/filters/test/fixtures/filters-list.js.map +1 -1
  199. package/es/molecule/filters/test/fixtures/one.js +2 -2
  200. package/es/molecule/filters/test/fixtures/one.js.map +1 -1
  201. package/es/molecule/filters/test/fixtures/only-radio-group.js +1 -1
  202. package/es/molecule/filters/test/fixtures/only-radio-group.js.map +1 -1
  203. package/es/molecule/filters/test/fixtures/only-timer.js +1 -1
  204. package/es/molecule/filters/test/fixtures/only-timer.js.map +1 -1
  205. package/es/molecule/filters/test/fixtures/three.js +3 -3
  206. package/es/molecule/filters/test/fixtures/three.js.map +1 -1
  207. package/es/molecule/filters/test/fixtures/two.js +3 -3
  208. package/es/molecule/filters/test/fixtures/two.js.map +1 -1
  209. package/es/molecule/filters/test/fixtures/zero.js +1 -1
  210. package/es/molecule/filters/test/fixtures/zero.js.map +1 -1
  211. package/es/molecule/forum/forum-thread/test/fixtures/deep-answers.js +4 -4
  212. package/es/molecule/forum/forum-thread/test/fixtures/deep-answers.js.map +1 -1
  213. package/es/molecule/forum/forum-thread/test/fixtures/with-answers.js +1 -1
  214. package/es/molecule/forum/forum-thread/test/fixtures/with-answers.js.map +1 -1
  215. package/es/molecule/hero/test/fixtures/arabic.js +1 -1
  216. package/es/molecule/hero/test/fixtures/arabic.js.map +1 -1
  217. package/es/molecule/hero/test/fixtures/hero.js +1 -1
  218. package/es/molecule/hero/test/fixtures/hero.js.map +1 -1
  219. package/es/molecule/news/test/fixtures/long-description.js +1 -1
  220. package/es/molecule/news/test/fixtures/long-description.js.map +1 -1
  221. package/es/molecule/news/test/fixtures/long-title.js +1 -1
  222. package/es/molecule/news/test/fixtures/long-title.js.map +1 -1
  223. package/es/molecule/news/test/fixtures/small-desciption.js +1 -1
  224. package/es/molecule/news/test/fixtures/small-desciption.js.map +1 -1
  225. package/es/molecule/news/test/fixtures/small-title.js +1 -1
  226. package/es/molecule/news/test/fixtures/small-title.js.map +1 -1
  227. package/es/molecule/popin/index.js +1 -1
  228. package/es/molecule/popin/index.js.map +1 -1
  229. package/es/molecule/progress-bar/index.js +1 -1
  230. package/es/molecule/progress-bar/index.js.map +1 -1
  231. package/es/molecule/questions/drop-down/index.js +1 -1
  232. package/es/molecule/questions/drop-down/index.js.map +1 -1
  233. package/es/molecule/questions/question-range/index.js +3 -2
  234. package/es/molecule/questions/question-range/index.js.map +1 -1
  235. package/es/molecule/questions/template/index.js +2 -2
  236. package/es/molecule/questions/template/index.js.map +1 -1
  237. package/es/molecule/questions/template/test/index.js +1 -1
  238. package/es/molecule/questions/template/test/index.js.map +1 -1
  239. package/es/molecule/quick-access-card/index.js.map +1 -1
  240. package/es/molecule/resource-player/index.js +2 -1
  241. package/es/molecule/resource-player/index.js.map +1 -1
  242. package/es/molecule/select-multiple/index.js +3 -3
  243. package/es/molecule/select-multiple/index.js.map +1 -1
  244. package/es/molecule/select-multiple/style.css +1 -0
  245. package/es/molecule/select-multiple/test/fixtures.js +8 -0
  246. package/es/molecule/select-multiple/test/fixtures.js.map +1 -1
  247. package/es/molecule/select-multiple/test/index.js +2 -2
  248. package/es/molecule/select-multiple/test/index.js.map +1 -1
  249. package/es/molecule/setup-section/index.js +1 -1
  250. package/es/molecule/setup-section/index.js.map +1 -1
  251. package/es/molecule/setup-section/test/fixtures/first.js +1 -1
  252. package/es/molecule/setup-section/test/fixtures/first.js.map +1 -1
  253. package/es/molecule/setup-slide/index.js +8 -8
  254. package/es/molecule/setup-slide/index.js.map +1 -1
  255. package/es/molecule/share/index.js +1 -1
  256. package/es/molecule/share/index.js.map +1 -1
  257. package/es/molecule/video-iframe/index.js +1 -1
  258. package/es/molecule/video-iframe/index.js.map +1 -1
  259. package/es/molecule/video-player/index.js +3 -1
  260. package/es/molecule/video-player/index.js.map +1 -1
  261. package/es/molecule/video-player/jwplayer.js +2 -2
  262. package/es/molecule/video-player/jwplayer.js.map +1 -1
  263. package/es/molecule/video-player/test/fixtures/youtube.js +1 -1
  264. package/es/molecule/video-player/test/fixtures/youtube.js.map +1 -1
  265. package/es/molecule/video-player/vimeo.js +1 -1
  266. package/es/molecule/video-player/vimeo.js.map +1 -1
  267. package/es/molecule/wizard-summary/index.js +1 -0
  268. package/es/molecule/wizard-summary/index.js.map +1 -1
  269. package/es/molecule/wizard-summary/style.css +1 -1
  270. package/es/organism/accordion/coorp-manager/index.js +1 -1
  271. package/es/organism/accordion/coorp-manager/index.js.map +1 -1
  272. package/es/organism/accordion/toggler/index.js +1 -1
  273. package/es/organism/accordion/toggler/index.js.map +1 -1
  274. package/es/organism/accordion/toggler/test/render.js +2 -2
  275. package/es/organism/accordion/toggler/test/render.js.map +1 -1
  276. package/es/organism/brand-form/test/fixtures/sso.js +3 -3
  277. package/es/organism/brand-form/test/fixtures/sso.js.map +1 -1
  278. package/es/organism/content-translation/index.js +2 -2
  279. package/es/organism/content-translation/index.js.map +1 -1
  280. package/es/organism/content-translation/test/fixtures/default.js +2 -2
  281. package/es/organism/content-translation/test/fixtures/default.js.map +1 -1
  282. package/es/organism/content-translation/test/fixtures.js +15 -0
  283. package/es/organism/content-translation/test/fixtures.js.map +1 -0
  284. package/es/organism/course-selection/index.js +6 -3
  285. package/es/organism/course-selection/index.js.map +1 -1
  286. package/es/organism/course-selection/style.css +2 -1
  287. package/es/organism/course-selection/test/fixtures/default.js +14 -6
  288. package/es/organism/course-selection/test/fixtures/default.js.map +1 -1
  289. package/es/organism/course-selection/test/fixtures/empty.js +9 -0
  290. package/es/organism/course-selection/test/fixtures/empty.js.map +1 -1
  291. package/es/organism/course-selection/test/fixtures/filtered.js +11 -3
  292. package/es/organism/course-selection/test/fixtures/filtered.js.map +1 -1
  293. package/es/organism/course-selection/test/fixtures/sorted-selected.js +14 -6
  294. package/es/organism/course-selection/test/fixtures/sorted-selected.js.map +1 -1
  295. package/es/organism/course-selection/test/fixtures/switch-activated.js +23 -0
  296. package/es/organism/course-selection/test/fixtures/switch-activated.js.map +1 -0
  297. package/es/organism/course-selection/test/fixtures/unsorted-selected.js +14 -6
  298. package/es/organism/course-selection/test/fixtures/unsorted-selected.js.map +1 -1
  299. package/es/organism/course-selection/test/fixtures.js +2 -0
  300. package/es/organism/course-selection/test/fixtures.js.map +1 -1
  301. package/es/organism/discussion/test/fixtures/default.js +1 -1
  302. package/es/organism/discussion/test/fixtures/default.js.map +1 -1
  303. package/es/organism/discussion/test/fixtures/loading-more.js +1 -1
  304. package/es/organism/discussion/test/fixtures/loading-more.js.map +1 -1
  305. package/es/organism/discussion/test/fixtures/new-discussion.js +1 -1
  306. package/es/organism/discussion/test/fixtures/new-discussion.js.map +1 -1
  307. package/es/organism/get-the-app/index.js +2 -2
  308. package/es/organism/get-the-app/index.js.map +1 -1
  309. package/es/organism/list-item/test/fixtures.js +19 -0
  310. package/es/organism/list-item/test/fixtures.js.map +1 -0
  311. package/es/organism/list-items/test/fixtures/archived.js +1 -1
  312. package/es/organism/list-items/test/fixtures/archived.js.map +1 -1
  313. package/es/organism/list-items/test/fixtures/draft.js +1 -1
  314. package/es/organism/list-items/test/fixtures/draft.js.map +1 -1
  315. package/es/organism/list-items/test/fixtures/published.js +1 -1
  316. package/es/organism/list-items/test/fixtures/published.js.map +1 -1
  317. package/es/organism/list-items/test/fixtures.js +17 -0
  318. package/es/organism/list-items/test/fixtures.js.map +1 -0
  319. package/es/organism/mooc/image-slider/test/fixtures/multiple-slides.js +2 -2
  320. package/es/organism/mooc/image-slider/test/fixtures/multiple-slides.js.map +1 -1
  321. package/es/organism/mooc-header/test/fixtures/default.js +1 -1
  322. package/es/organism/mooc-header/test/fixtures/default.js.map +1 -1
  323. package/es/organism/mooc-header/test/fixtures/logged-with-battle-notifications.js +1 -1
  324. package/es/organism/mooc-header/test/fixtures/logged-with-battle-notifications.js.map +1 -1
  325. package/es/organism/popin/test/fixtures/default.js.map +1 -1
  326. package/es/organism/resource-browser/test/fixtures/jwplayer-with-overlay.js +1 -1
  327. package/es/organism/resource-browser/test/fixtures/jwplayer-with-overlay.js.map +1 -1
  328. package/es/organism/resource-browser/test/fixtures/jwplayer.js +1 -1
  329. package/es/organism/resource-browser/test/fixtures/jwplayer.js.map +1 -1
  330. package/es/organism/resource-browser/test/fixtures/kontiki.js +1 -1
  331. package/es/organism/resource-browser/test/fixtures/kontiki.js.map +1 -1
  332. package/es/organism/resource-browser/test/fixtures/mp4.js +1 -1
  333. package/es/organism/resource-browser/test/fixtures/mp4.js.map +1 -1
  334. package/es/organism/settings/index.js +3 -2
  335. package/es/organism/settings/index.js.map +1 -1
  336. package/es/organism/sidebar/index.js +11 -10
  337. package/es/organism/sidebar/index.js.map +1 -1
  338. package/es/organism/user-preferences/index.js +3 -2
  339. package/es/organism/user-preferences/index.js.map +1 -1
  340. package/es/organism/wizard-contents/index.js +10 -5
  341. package/es/organism/wizard-contents/index.js.map +1 -1
  342. package/es/organism/wizard-contents/style.css +0 -2
  343. package/es/organism/wizard-contents/test/fixtures/playlist-add-courses-create.js +2 -1
  344. package/es/organism/wizard-contents/test/fixtures/playlist-add-courses-create.js.map +1 -1
  345. package/es/organism/wizard-contents/test/fixtures/playlist-general-settings-create.js +2 -1
  346. package/es/organism/wizard-contents/test/fixtures/playlist-general-settings-create.js.map +1 -1
  347. package/es/organism/wizard-contents/test/fixtures/playlist-general-settings-edit.js +2 -1
  348. package/es/organism/wizard-contents/test/fixtures/playlist-general-settings-edit.js.map +1 -1
  349. package/es/organism/wizard-contents/test/fixtures/playlist-populations-create.js +2 -1
  350. package/es/organism/wizard-contents/test/fixtures/playlist-populations-create.js.map +1 -1
  351. package/es/organism/wizard-contents/test/fixtures/playlist-translate-edit.js +2 -1
  352. package/es/organism/wizard-contents/test/fixtures/playlist-translate-edit.js.map +1 -1
  353. package/es/organism/wizard-contents/test/fixtures.js +21 -0
  354. package/es/organism/wizard-contents/test/fixtures.js.map +1 -0
  355. package/es/template/activity/index.js +1 -1
  356. package/es/template/activity/index.js.map +1 -1
  357. package/es/template/activity/test/progression-item-test.js +1 -1
  358. package/es/template/activity/test/progression-item-test.js.map +1 -1
  359. package/es/template/app-player/player/slides/footer/index.js +1 -1
  360. package/es/template/app-player/player/slides/footer/index.js.map +1 -1
  361. package/es/template/app-player/player/slides/index.js +14 -11
  362. package/es/template/app-player/player/slides/index.js.map +1 -1
  363. package/es/template/app-player/player/slides/test/fixtures/arabic-context.js +2 -2
  364. package/es/template/app-player/player/slides/test/fixtures/arabic-context.js.map +1 -1
  365. package/es/template/app-player/player/slides/test/fixtures/arabic-qcm.js +1 -1
  366. package/es/template/app-player/player/slides/test/fixtures/arabic-qcm.js.map +1 -1
  367. package/es/template/app-player/player/slides/test/fixtures/arabic-resources.js +2 -2
  368. package/es/template/app-player/player/slides/test/fixtures/arabic-resources.js.map +1 -1
  369. package/es/template/app-player/player/slides/test/fixtures/arabic.js +2 -2
  370. package/es/template/app-player/player/slides/test/fixtures/arabic.js.map +1 -1
  371. package/es/template/app-player/player/slides/test/fixtures/clue.js +2 -2
  372. package/es/template/app-player/player/slides/test/fixtures/clue.js.map +1 -1
  373. package/es/template/app-player/player/slides/test/fixtures/context-with-audio.js +2 -2
  374. package/es/template/app-player/player/slides/test/fixtures/context-with-audio.js.map +1 -1
  375. package/es/template/app-player/player/slides/test/fixtures/context-with-image.js +2 -2
  376. package/es/template/app-player/player/slides/test/fixtures/context-with-image.js.map +1 -1
  377. package/es/template/app-player/player/slides/test/fixtures/context-with-pdf.js +2 -2
  378. package/es/template/app-player/player/slides/test/fixtures/context-with-pdf.js.map +1 -1
  379. package/es/template/app-player/player/slides/test/fixtures/context-with-video.js +2 -2
  380. package/es/template/app-player/player/slides/test/fixtures/context-with-video.js.map +1 -1
  381. package/es/template/app-player/player/slides/test/fixtures/context.js +2 -2
  382. package/es/template/app-player/player/slides/test/fixtures/context.js.map +1 -1
  383. package/es/template/app-player/player/slides/test/fixtures/default.js +2 -2
  384. package/es/template/app-player/player/slides/test/fixtures/default.js.map +1 -1
  385. package/es/template/app-player/player/slides/test/fixtures/drop-down.js +1 -1
  386. package/es/template/app-player/player/slides/test/fixtures/drop-down.js.map +1 -1
  387. package/es/template/app-player/player/slides/test/fixtures/free-text.js +1 -1
  388. package/es/template/app-player/player/slides/test/fixtures/free-text.js.map +1 -1
  389. package/es/template/app-player/player/slides/test/fixtures/media-h5p.js +2 -2
  390. package/es/template/app-player/player/slides/test/fixtures/media-h5p.js.map +1 -1
  391. package/es/template/app-player/player/slides/test/fixtures/media-omni-player.js +2 -2
  392. package/es/template/app-player/player/slides/test/fixtures/media-omni-player.js.map +1 -1
  393. package/es/template/app-player/player/slides/test/fixtures/media.js +2 -2
  394. package/es/template/app-player/player/slides/test/fixtures/media.js.map +1 -1
  395. package/es/template/app-player/player/slides/test/fixtures/no-clue.js +2 -2
  396. package/es/template/app-player/player/slides/test/fixtures/no-clue.js.map +1 -1
  397. package/es/template/app-player/player/slides/test/fixtures/no-question.js +2 -2
  398. package/es/template/app-player/player/slides/test/fixtures/no-question.js.map +1 -1
  399. package/es/template/app-player/player/slides/test/fixtures/no-total.js +1 -1
  400. package/es/template/app-player/player/slides/test/fixtures/no-total.js.map +1 -1
  401. package/es/template/app-player/player/slides/test/fixtures/only-clue.js +2 -2
  402. package/es/template/app-player/player/slides/test/fixtures/only-clue.js.map +1 -1
  403. package/es/template/app-player/player/slides/test/fixtures/qcm-drag.js +1 -1
  404. package/es/template/app-player/player/slides/test/fixtures/qcm-drag.js.map +1 -1
  405. package/es/template/app-player/player/slides/test/fixtures/qcm-graphic.js +1 -1
  406. package/es/template/app-player/player/slides/test/fixtures/qcm-graphic.js.map +1 -1
  407. package/es/template/app-player/player/slides/test/fixtures/qcm-see-lesson-no-step.js +1 -1
  408. package/es/template/app-player/player/slides/test/fixtures/qcm-see-lesson-no-step.js.map +1 -1
  409. package/es/template/app-player/player/slides/test/fixtures/qcm-see-lesson.js +1 -1
  410. package/es/template/app-player/player/slides/test/fixtures/qcm-see-lesson.js.map +1 -1
  411. package/es/template/app-player/player/slides/test/fixtures/qcm-short.js +1 -1
  412. package/es/template/app-player/player/slides/test/fixtures/qcm-short.js.map +1 -1
  413. package/es/template/app-player/player/slides/test/fixtures/qcm-template.js +1 -1
  414. package/es/template/app-player/player/slides/test/fixtures/qcm-template.js.map +1 -1
  415. package/es/template/app-player/player/slides/test/fixtures/qcm-with-review-lesson.js +1 -1
  416. package/es/template/app-player/player/slides/test/fixtures/qcm-with-review-lesson.js.map +1 -1
  417. package/es/template/app-player/player/slides/test/fixtures/qcm.js +1 -1
  418. package/es/template/app-player/player/slides/test/fixtures/qcm.js.map +1 -1
  419. package/es/template/app-player/player/slides/test/fixtures/range.js +1 -1
  420. package/es/template/app-player/player/slides/test/fixtures/range.js.map +1 -1
  421. package/es/template/app-player/player/slides/test/fixtures/template.js +1 -1
  422. package/es/template/app-player/player/slides/test/fixtures/template.js.map +1 -1
  423. package/es/template/app-player/player/slides/test/fixtures/with-min-height.js +1 -1
  424. package/es/template/app-player/player/slides/test/fixtures/with-min-height.js.map +1 -1
  425. package/es/template/app-player/player/test/fixtures/background.js +1 -1
  426. package/es/template/app-player/player/test/fixtures/background.js.map +1 -1
  427. package/es/template/app-player/popin-correction/index.js +3 -2
  428. package/es/template/app-player/popin-correction/index.js.map +1 -1
  429. package/es/template/app-player/popin-correction/test/fixtures/correct-closed-without-klf-and-tips.js +1 -1
  430. package/es/template/app-player/popin-correction/test/fixtures/correct-closed-without-klf-and-tips.js.map +1 -1
  431. package/es/template/app-player/popin-correction/test/fixtures/correct-closed.js +1 -1
  432. package/es/template/app-player/popin-correction/test/fixtures/correct-closed.js.map +1 -1
  433. package/es/template/app-player/popin-end/summary.js +11 -7
  434. package/es/template/app-player/popin-end/summary.js.map +1 -1
  435. package/es/template/app-player/popin-end/test/fixtures/adaptive.js +2 -2
  436. package/es/template/app-player/popin-end/test/fixtures/adaptive.js.map +1 -1
  437. package/es/template/app-player/popin-end/test/fixtures/infinite-lives.js +2 -2
  438. package/es/template/app-player/popin-end/test/fixtures/infinite-lives.js.map +1 -1
  439. package/es/template/app-player/popin-header/index.js +4 -3
  440. package/es/template/app-player/popin-header/index.js.map +1 -1
  441. package/es/template/back-office/brand-create/test/fixtures/default.js +1 -1
  442. package/es/template/back-office/brand-create/test/fixtures/default.js.map +1 -1
  443. package/es/template/back-office/brand-create/test/fixtures/loading.js +1 -1
  444. package/es/template/back-office/brand-create/test/fixtures/loading.js.map +1 -1
  445. package/es/template/back-office/brand-create/test/fixtures/modified.js +1 -1
  446. package/es/template/back-office/brand-create/test/fixtures/modified.js.map +1 -1
  447. package/es/template/back-office/brand-list/test/fixtures/default.js +1 -1
  448. package/es/template/back-office/brand-list/test/fixtures/default.js.map +1 -1
  449. package/es/template/back-office/brand-list/test/fixtures/rh.js +1 -1
  450. package/es/template/back-office/brand-list/test/fixtures/rh.js.map +1 -1
  451. package/es/template/back-office/brand-update/index.js +8 -8
  452. package/es/template/back-office/brand-update/index.js.map +1 -1
  453. package/es/template/back-office/brand-update/test/fixtures/list-items-archived.js +1 -1
  454. package/es/template/back-office/brand-update/test/fixtures/list-items-archived.js.map +1 -1
  455. package/es/template/back-office/brand-update/test/fixtures/list-items-draft.js +1 -1
  456. package/es/template/back-office/brand-update/test/fixtures/list-items-draft.js.map +1 -1
  457. package/es/template/back-office/brand-update/test/fixtures/list-items-published-with-popin.js +1 -1
  458. package/es/template/back-office/brand-update/test/fixtures/list-items-published-with-popin.js.map +1 -1
  459. package/es/template/back-office/brand-update/test/fixtures/list-items-published.js +1 -1
  460. package/es/template/back-office/brand-update/test/fixtures/list-items-published.js.map +1 -1
  461. package/es/template/back-office/brand-update/test/fixtures/manageusers-edit.js +1 -1
  462. package/es/template/back-office/brand-update/test/fixtures/manageusers-edit.js.map +1 -1
  463. package/es/template/back-office/brand-update/test/fixtures/quick-access.js +1 -1
  464. package/es/template/back-office/brand-update/test/fixtures/quick-access.js.map +1 -1
  465. package/es/template/back-office/brand-update/test/fixtures/uploadusers-loading.js +1 -1
  466. package/es/template/back-office/brand-update/test/fixtures/uploadusers-loading.js.map +1 -1
  467. package/es/template/back-office/brand-update/test/fixtures/uploadusers-successful.js +1 -1
  468. package/es/template/back-office/brand-update/test/fixtures/uploadusers-successful.js.map +1 -1
  469. package/es/template/back-office/brand-update/test/fixtures/uploadusers.js +1 -1
  470. package/es/template/back-office/brand-update/test/fixtures/uploadusers.js.map +1 -1
  471. package/es/template/back-office/brand-update/test/fixtures/wizard-add-courses-playlist.js +2 -1
  472. package/es/template/back-office/brand-update/test/fixtures/wizard-add-courses-playlist.js.map +1 -1
  473. package/es/template/back-office/brand-update/test/fixtures/wizard-form-create-playlist.js +2 -1
  474. package/es/template/back-office/brand-update/test/fixtures/wizard-form-create-playlist.js.map +1 -1
  475. package/es/template/back-office/brand-update/test/fixtures/wizard-form-edit-playlist.js +2 -1
  476. package/es/template/back-office/brand-update/test/fixtures/wizard-form-edit-playlist.js.map +1 -1
  477. package/es/template/back-office/brand-update/test/fixtures/wizard-populations-playlist-with-popin.js +2 -1
  478. package/es/template/back-office/brand-update/test/fixtures/wizard-populations-playlist-with-popin.js.map +1 -1
  479. package/es/template/back-office/brand-update/test/fixtures/wizard-populations-playlist.js +2 -1
  480. package/es/template/back-office/brand-update/test/fixtures/wizard-populations-playlist.js.map +1 -1
  481. package/es/template/back-office/brand-update/test/fixtures/wizard-translate-playlist.js +2 -1
  482. package/es/template/back-office/brand-update/test/fixtures/wizard-translate-playlist.js.map +1 -1
  483. package/es/template/back-office/brand-update/test/fixtures.js +20 -2
  484. package/es/template/back-office/brand-update/test/fixtures.js.map +1 -1
  485. package/es/template/cockpit/jw-uploader/index.js +1 -1
  486. package/es/template/cockpit/jw-uploader/index.js.map +1 -1
  487. package/es/template/common/dashboard/index.js +1 -1
  488. package/es/template/common/dashboard/index.js.map +1 -1
  489. package/es/template/common/dashboard/test/fixtures/empty-requests.js +1 -1
  490. package/es/template/common/dashboard/test/fixtures/empty-requests.js.map +1 -1
  491. package/es/template/common/dashboard/test/fixtures/with-hero-card.js +1 -1
  492. package/es/template/common/dashboard/test/fixtures/with-hero-card.js.map +1 -1
  493. package/es/template/common/discipline/test/fixtures/add-to-my-list.js +1 -1
  494. package/es/template/common/discipline/test/fixtures/add-to-my-list.js.map +1 -1
  495. package/es/template/common/discipline/test/fixtures/arabic.js +1 -1
  496. package/es/template/common/discipline/test/fixtures/arabic.js.map +1 -1
  497. package/es/template/common/discipline/test/fixtures/default.js +2 -2
  498. package/es/template/common/discipline/test/fixtures/default.js.map +1 -1
  499. package/es/template/common/discipline/test/fixtures/external-course-with-video.js +2 -2
  500. package/es/template/common/discipline/test/fixtures/external-course-with-video.js.map +1 -1
  501. package/es/template/common/discipline/test/fixtures/external-course-without-image.js +2 -2
  502. package/es/template/common/discipline/test/fixtures/external-course-without-image.js.map +1 -1
  503. package/es/template/common/discipline/test/fixtures/external-course.js +2 -2
  504. package/es/template/common/discipline/test/fixtures/external-course.js.map +1 -1
  505. package/es/template/common/discipline/test/fixtures/share.js +1 -1
  506. package/es/template/common/discipline/test/fixtures/share.js.map +1 -1
  507. package/es/template/teams-dashboard/test/fixtures/default.js +1 -1
  508. package/es/template/teams-dashboard/test/fixtures/default.js.map +1 -1
  509. package/es/template/teams-dashboard/test/fixtures/is-loading.js +1 -1
  510. package/es/template/teams-dashboard/test/fixtures/is-loading.js.map +1 -1
  511. package/es/template/teams-dashboard/test/fixtures/mobile.js +1 -1
  512. package/es/template/teams-dashboard/test/fixtures/mobile.js.map +1 -1
  513. package/es/util/shallow-compare.js.map +1 -1
  514. package/es/util/test/navigation.js +4 -3
  515. package/es/util/test/navigation.js.map +1 -1
  516. package/lib/atom/autocomplete/index.js +2 -2
  517. package/lib/atom/autocomplete/test/fixtures/error.js +1 -1
  518. package/lib/atom/autocomplete/test/fixtures/error.js.map +1 -1
  519. package/lib/atom/autocomplete/test/fixtures/filled.js +1 -1
  520. package/lib/atom/autocomplete/test/fixtures/filled.js.map +1 -1
  521. package/lib/atom/autocomplete/test/fixtures/modified.js +1 -1
  522. package/lib/atom/autocomplete/test/fixtures/modified.js.map +1 -1
  523. package/lib/atom/button-link/index.js +2 -2
  524. package/lib/atom/button-link-icon-only/index.js +2 -2
  525. package/lib/atom/button-menu/index.js +2 -2
  526. package/lib/atom/button-menu/test/fixtures/default.js +1 -1
  527. package/lib/atom/button-menu/test/fixtures/multiple-buttons.js +1 -1
  528. package/lib/atom/chips/index.js +2 -2
  529. package/lib/atom/clue/index.js.map +1 -1
  530. package/lib/atom/content-badge/test/fixtures.js +3 -0
  531. package/lib/atom/content-badge/test/fixtures.js.map +1 -1
  532. package/lib/atom/cta/test/fixtures/certification.js +1 -1
  533. package/lib/atom/cta/test/fixtures/certification.js.map +1 -1
  534. package/lib/atom/cta/test/fixtures/disabled.js +1 -1
  535. package/lib/atom/cta/test/fixtures/disabled.js.map +1 -1
  536. package/lib/atom/cta/test/fixtures/light-small.js +1 -1
  537. package/lib/atom/cta/test/fixtures/light-small.js.map +1 -1
  538. package/lib/atom/cta/test/fixtures/light.js +1 -1
  539. package/lib/atom/cta/test/fixtures/light.js.map +1 -1
  540. package/lib/atom/cta/test/fixtures/logout.js +1 -1
  541. package/lib/atom/cta/test/fixtures/logout.js.map +1 -1
  542. package/lib/atom/cta/test/fixtures/primary-small.js +1 -1
  543. package/lib/atom/cta/test/fixtures/primary-small.js.map +1 -1
  544. package/lib/atom/cta/test/fixtures/rectangular-secondary-fullwidth.js +1 -1
  545. package/lib/atom/cta/test/fixtures/rectangular-secondary-fullwidth.js.map +1 -1
  546. package/lib/atom/cta/test/fixtures/rectangular-secondary.js +1 -1
  547. package/lib/atom/cta/test/fixtures/rectangular-secondary.js.map +1 -1
  548. package/lib/atom/cta/test/fixtures/rectangular.js +1 -1
  549. package/lib/atom/cta/test/fixtures/rectangular.js.map +1 -1
  550. package/lib/atom/cta/test/fixtures/secondary-small.js +1 -1
  551. package/lib/atom/cta/test/fixtures/secondary-small.js.map +1 -1
  552. package/lib/atom/cta/test/fixtures/secondary.js +1 -1
  553. package/lib/atom/cta/test/fixtures/secondary.js.map +1 -1
  554. package/lib/atom/drag-and-drop/index.js +1 -1
  555. package/lib/atom/drag-and-drop/index.js.map +1 -1
  556. package/lib/atom/drag-and-drop/test/fixtures/loading.js +1 -1
  557. package/lib/atom/drag-and-drop/test/fixtures/loading.js.map +1 -1
  558. package/lib/atom/drag-and-drop/test/fixtures/with-image-reset.js +1 -1
  559. package/lib/atom/drag-and-drop/test/fixtures/with-image-reset.js.map +1 -1
  560. package/lib/atom/image-upload/index.js +3 -3
  561. package/lib/atom/image-upload/index.js.map +1 -1
  562. package/lib/atom/image-upload/test/fixtures/desktop-reset-description-multiple.js +1 -1
  563. package/lib/atom/image-upload/test/fixtures/desktop-reset-description-multiple.js.map +1 -1
  564. package/lib/atom/image-upload/test/fixtures/desktop-reset-description-only-png.js +1 -1
  565. package/lib/atom/image-upload/test/fixtures/desktop-reset-description-only-png.js.map +1 -1
  566. package/lib/atom/image-upload/test/fixtures/desktop-reset-description.js +1 -1
  567. package/lib/atom/image-upload/test/fixtures/desktop-reset-description.js.map +1 -1
  568. package/lib/atom/image-upload/test/fixtures/desktop-reset-no-description.js +1 -1
  569. package/lib/atom/image-upload/test/fixtures/desktop-reset-no-description.js.map +1 -1
  570. package/lib/atom/image-upload/test/fixtures/email.js +1 -1
  571. package/lib/atom/image-upload/test/fixtures/email.js.map +1 -1
  572. package/lib/atom/image-upload/test/fixtures/mobile.js +1 -1
  573. package/lib/atom/image-upload/test/fixtures/mobile.js.map +1 -1
  574. package/lib/atom/image-upload/test/fixtures/modified.js +1 -1
  575. package/lib/atom/image-upload/test/fixtures/modified.js.map +1 -1
  576. package/lib/atom/input-checkbox/index.js +2 -2
  577. package/lib/atom/input-color/index.js +2 -2
  578. package/lib/atom/input-doublestep/index.js +2 -2
  579. package/lib/atom/input-html/index.js.map +1 -1
  580. package/lib/atom/input-search/index.js +2 -2
  581. package/lib/atom/input-switch/index.js +15 -8
  582. package/lib/atom/input-switch/index.js.map +1 -1
  583. package/lib/atom/input-switch/style.css +46 -0
  584. package/lib/atom/input-switch/test/fixtures/cm-left.js +16 -0
  585. package/lib/atom/input-switch/test/fixtures/cm-left.js.map +1 -0
  586. package/lib/atom/input-switch/test/fixtures/cm-right-checked.js +16 -0
  587. package/lib/atom/input-switch/test/fixtures/cm-right-checked.js.map +1 -0
  588. package/lib/atom/input-switch/test/fixtures/cm-right-disabled.js +20 -0
  589. package/lib/atom/input-switch/test/fixtures/cm-right-disabled.js.map +1 -0
  590. package/lib/atom/input-switch/test/fixtures/cm-right-modified.js +17 -0
  591. package/lib/atom/input-switch/test/fixtures/cm-right-modified.js.map +1 -0
  592. package/lib/atom/input-switch/test/fixtures/cm-right.js +16 -0
  593. package/lib/atom/input-switch/test/fixtures/cm-right.js.map +1 -0
  594. package/lib/atom/input-switch/test/fixtures/disabled.js +1 -1
  595. package/lib/atom/input-switch/test/fixtures/disabled.js.map +1 -1
  596. package/lib/atom/input-switch/test/fixtures.js +15 -0
  597. package/lib/atom/input-switch/test/fixtures.js.map +1 -1
  598. package/lib/atom/input-text/index.js +2 -2
  599. package/lib/atom/input-textarea/index.js +2 -2
  600. package/lib/atom/link/index.js +4 -2
  601. package/lib/atom/link/index.js.map +1 -1
  602. package/lib/atom/loader/index.js +16 -3
  603. package/lib/atom/loader/index.js.map +1 -1
  604. package/lib/atom/loader/style.css +55 -1
  605. package/lib/atom/loader/test/fixtures/coorpmanager.js +12 -0
  606. package/lib/atom/loader/test/fixtures/coorpmanager.js.map +1 -0
  607. package/lib/atom/promo-code/index.js.map +1 -1
  608. package/lib/atom/provider/index.js.map +1 -1
  609. package/lib/atom/provider/test/index.js +1 -1
  610. package/lib/atom/provider/test/index.js.map +1 -1
  611. package/lib/atom/range/index.js +1 -1
  612. package/lib/atom/range/index.js.map +1 -1
  613. package/lib/atom/range/test/fixtures/multi.js +1 -1
  614. package/lib/atom/range/test/fixtures/multi.js.map +1 -1
  615. package/lib/atom/range/test/index.js +9 -9
  616. package/lib/atom/range/test/index.js.map +1 -1
  617. package/lib/atom/select/index.js +2 -2
  618. package/lib/atom/tab/index.js +2 -2
  619. package/lib/atom/video-upload/index.js +1 -1
  620. package/lib/atom/video-upload/index.js.map +1 -1
  621. package/lib/atom/video-upload/test/fixtures/loading.js +1 -1
  622. package/lib/atom/video-upload/test/fixtures/loading.js.map +1 -1
  623. package/lib/atom/video-upload/test/fixtures/modified.js +1 -1
  624. package/lib/atom/video-upload/test/fixtures/modified.js.map +1 -1
  625. package/lib/hoc/animation/index.js +1 -1
  626. package/lib/hoc/animation/test/on-mount.js +2 -2
  627. package/lib/hoc/animation-scheduler/index.js +4 -4
  628. package/lib/hoc/animation-scheduler/index.js.map +1 -1
  629. package/lib/hoc/animation-scheduler/test/fixtures/parallel.js +3 -3
  630. package/lib/hoc/animation-scheduler/test/fixtures/series.js +2 -2
  631. package/lib/hoc/animation-scheduler/test/on-mount.js +2 -2
  632. package/lib/hoc/swapper/index.js +5 -3
  633. package/lib/hoc/swapper/index.js.map +1 -1
  634. package/lib/hoc/swapper/test/on-mount.js +2 -2
  635. package/lib/hoc/transition/index.js +3 -3
  636. package/lib/hoc/transition/index.js.map +1 -1
  637. package/lib/molecule/add-to-my-list/index.js +4 -4
  638. package/lib/molecule/add-to-my-list/index.js.map +1 -1
  639. package/lib/molecule/answer/index.js +5 -3
  640. package/lib/molecule/answer/index.js.map +1 -1
  641. package/lib/molecule/answer/test/fixtures/audio.js +1 -1
  642. package/lib/molecule/answer/test/fixtures/audio.js.map +1 -1
  643. package/lib/molecule/answer/test/fixtures/default.js +1 -1
  644. package/lib/molecule/answer/test/fixtures/default.js.map +1 -1
  645. package/lib/molecule/answer/test/fixtures/drop-down.js +1 -1
  646. package/lib/molecule/answer/test/fixtures/drop-down.js.map +1 -1
  647. package/lib/molecule/answer/test/fixtures/qcm-arabic.js +1 -1
  648. package/lib/molecule/answer/test/fixtures/qcm-arabic.js.map +1 -1
  649. package/lib/molecule/answer/test/fixtures/qcm-drag.js +1 -1
  650. package/lib/molecule/answer/test/fixtures/qcm-drag.js.map +1 -1
  651. package/lib/molecule/answer/test/fixtures/qcm-graphic.js +1 -1
  652. package/lib/molecule/answer/test/fixtures/qcm-graphic.js.map +1 -1
  653. package/lib/molecule/answer/test/fixtures/qcm-short-audio.js +1 -1
  654. package/lib/molecule/answer/test/fixtures/qcm-short-audio.js.map +1 -1
  655. package/lib/molecule/answer/test/fixtures/qcm-short-video.js +1 -1
  656. package/lib/molecule/answer/test/fixtures/qcm-short-video.js.map +1 -1
  657. package/lib/molecule/answer/test/fixtures/qcm-short.js +1 -1
  658. package/lib/molecule/answer/test/fixtures/qcm-short.js.map +1 -1
  659. package/lib/molecule/answer/test/fixtures/qcm.js +1 -1
  660. package/lib/molecule/answer/test/fixtures/qcm.js.map +1 -1
  661. package/lib/molecule/answer/test/fixtures/range.js +1 -1
  662. package/lib/molecule/answer/test/fixtures/range.js.map +1 -1
  663. package/lib/molecule/answer/test/fixtures/template.js +1 -1
  664. package/lib/molecule/answer/test/fixtures/template.js.map +1 -1
  665. package/lib/molecule/banner/test/fixtures.js +12 -0
  666. package/lib/molecule/banner/test/fixtures.js.map +1 -1
  667. package/lib/molecule/brand-create-form/index.js +2 -2
  668. package/lib/molecule/brand-form-group/index.js +18 -18
  669. package/lib/molecule/brand-form-group/index.js.map +1 -1
  670. package/lib/molecule/brand-form-group/test/fixtures/analytics.js +1 -1
  671. package/lib/molecule/brand-form-group/test/fixtures/analytics.js.map +1 -1
  672. package/lib/molecule/brand-form-group/test/fixtures/animations.js +2 -2
  673. package/lib/molecule/brand-form-group/test/fixtures/animations.js.map +1 -1
  674. package/lib/molecule/brand-form-group/test/fixtures/cohort.js +1 -1
  675. package/lib/molecule/brand-form-group/test/fixtures/cohort.js.map +1 -1
  676. package/lib/molecule/brand-form-group/test/fixtures/dashboard.js +1 -1
  677. package/lib/molecule/brand-form-group/test/fixtures/dashboard.js.map +1 -1
  678. package/lib/molecule/brand-form-group/test/fixtures/images.js +3 -3
  679. package/lib/molecule/brand-form-group/test/fixtures/images.js.map +1 -1
  680. package/lib/molecule/brand-form-group/test/fixtures/slider.js +1 -1
  681. package/lib/molecule/brand-form-group/test/fixtures/slider.js.map +1 -1
  682. package/lib/molecule/bullet-point-menu-button/index.js +2 -2
  683. package/lib/molecule/card/index.js +3 -3
  684. package/lib/molecule/card/index.js.map +1 -1
  685. package/lib/molecule/card/test/fixtures/adaptiv-and-disabled.js +1 -1
  686. package/lib/molecule/card/test/fixtures/adaptiv-and-disabled.js.map +1 -1
  687. package/lib/molecule/card/test/fixtures/adaptiv.js +1 -1
  688. package/lib/molecule/card/test/fixtures/adaptiv.js.map +1 -1
  689. package/lib/molecule/card/test/fixtures/disabled.js +1 -1
  690. package/lib/molecule/card/test/fixtures/disabled.js.map +1 -1
  691. package/lib/molecule/card-content/test/fixtures/adaptiv-and-disabled.js +1 -1
  692. package/lib/molecule/card-content/test/fixtures/adaptiv-and-disabled.js.map +1 -1
  693. package/lib/molecule/card-content/test/fixtures/adaptiv.js +1 -1
  694. package/lib/molecule/card-content/test/fixtures/adaptiv.js.map +1 -1
  695. package/lib/molecule/card-content/test/fixtures/disabled.js +1 -1
  696. package/lib/molecule/card-content/test/fixtures/disabled.js.map +1 -1
  697. package/lib/molecule/card-with-button/index.js.map +1 -1
  698. package/lib/molecule/coorp-manager-roles/index.js +1 -1
  699. package/lib/molecule/coorp-manager-roles/index.js.map +1 -1
  700. package/lib/molecule/dashboard/battle-request-list/index.js +1 -1
  701. package/lib/molecule/dashboard/battle-request-list/index.js.map +1 -1
  702. package/lib/molecule/dashboard/cards-list/test/fixtures/microlearning.js +1 -1
  703. package/lib/molecule/dashboard/cards-list/test/fixtures/microlearning.js.map +1 -1
  704. package/lib/molecule/dashboard/cards-list/test/fixtures/performance.js +1 -1
  705. package/lib/molecule/dashboard/cards-list/test/fixtures/performance.js.map +1 -1
  706. package/lib/molecule/dashboard/cards-list/test/index.js +1 -1
  707. package/lib/molecule/dashboard/cards-list/test/index.js.map +1 -1
  708. package/lib/molecule/dashboard/news-list/index.js +1 -1
  709. package/lib/molecule/dashboard/news-list/index.js.map +1 -1
  710. package/lib/molecule/dashboard/start-battle/index.js +1 -1
  711. package/lib/molecule/dashboard/start-battle/index.js.map +1 -1
  712. package/lib/molecule/discipline-header/test/fixtures/long-description.js.map +1 -1
  713. package/lib/molecule/drag-and-drop/index.js +3 -3
  714. package/lib/molecule/drag-and-drop/index.js.map +1 -1
  715. package/lib/molecule/drag-and-drop/test/fixtures/error.js +1 -1
  716. package/lib/molecule/drag-and-drop/test/fixtures/error.js.map +1 -1
  717. package/lib/molecule/drag-and-drop/test/fixtures/loading.js +1 -1
  718. package/lib/molecule/drag-and-drop/test/fixtures/loading.js.map +1 -1
  719. package/lib/molecule/drag-and-drop/test/fixtures/ready-invalid.js +1 -1
  720. package/lib/molecule/drag-and-drop/test/fixtures/ready-invalid.js.map +1 -1
  721. package/lib/molecule/drag-and-drop/test/fixtures/ready.js +1 -1
  722. package/lib/molecule/drag-and-drop/test/fixtures/ready.js.map +1 -1
  723. package/lib/molecule/drag-and-drop/test/fixtures/success-video.js +1 -1
  724. package/lib/molecule/drag-and-drop/test/fixtures/success-video.js.map +1 -1
  725. package/lib/molecule/drag-and-drop/test/fixtures/success.js +1 -1
  726. package/lib/molecule/drag-and-drop/test/fixtures/success.js.map +1 -1
  727. package/lib/molecule/drag-and-drop/test/on-click.js +2 -2
  728. package/lib/molecule/drag-and-drop/test/on-click.js.map +1 -1
  729. package/lib/molecule/drag-and-drop/upload-report.js +3 -3
  730. package/lib/molecule/drag-and-drop/upload-report.js.map +1 -1
  731. package/lib/molecule/feedback/index.js +3 -3
  732. package/lib/molecule/feedback/index.js.map +1 -1
  733. package/lib/molecule/filters/test/fixtures/default.js +4 -4
  734. package/lib/molecule/filters/test/fixtures/default.js.map +1 -1
  735. package/lib/molecule/filters/test/fixtures/filters-list.js +6 -6
  736. package/lib/molecule/filters/test/fixtures/filters-list.js.map +1 -1
  737. package/lib/molecule/filters/test/fixtures/one.js +2 -2
  738. package/lib/molecule/filters/test/fixtures/one.js.map +1 -1
  739. package/lib/molecule/filters/test/fixtures/only-radio-group.js +1 -1
  740. package/lib/molecule/filters/test/fixtures/only-radio-group.js.map +1 -1
  741. package/lib/molecule/filters/test/fixtures/only-timer.js +1 -1
  742. package/lib/molecule/filters/test/fixtures/only-timer.js.map +1 -1
  743. package/lib/molecule/filters/test/fixtures/three.js +3 -3
  744. package/lib/molecule/filters/test/fixtures/three.js.map +1 -1
  745. package/lib/molecule/filters/test/fixtures/two.js +3 -3
  746. package/lib/molecule/filters/test/fixtures/two.js.map +1 -1
  747. package/lib/molecule/filters/test/fixtures/zero.js +1 -1
  748. package/lib/molecule/filters/test/fixtures/zero.js.map +1 -1
  749. package/lib/molecule/forum/forum-thread/test/fixtures/deep-answers.js +4 -4
  750. package/lib/molecule/forum/forum-thread/test/fixtures/deep-answers.js.map +1 -1
  751. package/lib/molecule/forum/forum-thread/test/fixtures/with-answers.js +1 -1
  752. package/lib/molecule/forum/forum-thread/test/fixtures/with-answers.js.map +1 -1
  753. package/lib/molecule/hero/index.js +2 -2
  754. package/lib/molecule/hero/test/fixtures/arabic.js +1 -1
  755. package/lib/molecule/hero/test/fixtures/arabic.js.map +1 -1
  756. package/lib/molecule/hero/test/fixtures/hero.js +1 -1
  757. package/lib/molecule/hero/test/fixtures/hero.js.map +1 -1
  758. package/lib/molecule/news/test/fixtures/long-description.js +1 -1
  759. package/lib/molecule/news/test/fixtures/long-description.js.map +1 -1
  760. package/lib/molecule/news/test/fixtures/long-title.js +1 -1
  761. package/lib/molecule/news/test/fixtures/long-title.js.map +1 -1
  762. package/lib/molecule/news/test/fixtures/small-desciption.js +1 -1
  763. package/lib/molecule/news/test/fixtures/small-desciption.js.map +1 -1
  764. package/lib/molecule/news/test/fixtures/small-title.js +1 -1
  765. package/lib/molecule/news/test/fixtures/small-title.js.map +1 -1
  766. package/lib/molecule/popin/index.js +3 -3
  767. package/lib/molecule/popin/index.js.map +1 -1
  768. package/lib/molecule/progress-bar/index.js +1 -1
  769. package/lib/molecule/progress-bar/index.js.map +1 -1
  770. package/lib/molecule/questions/drop-down/index.js +3 -3
  771. package/lib/molecule/questions/drop-down/index.js.map +1 -1
  772. package/lib/molecule/questions/free-text/index.js +2 -2
  773. package/lib/molecule/questions/question-range/index.js +4 -2
  774. package/lib/molecule/questions/question-range/index.js.map +1 -1
  775. package/lib/molecule/questions/template/index.js +2 -2
  776. package/lib/molecule/questions/template/index.js.map +1 -1
  777. package/lib/molecule/questions/template/test/index.js +1 -1
  778. package/lib/molecule/questions/template/test/index.js.map +1 -1
  779. package/lib/molecule/quick-access-card/index.js.map +1 -1
  780. package/lib/molecule/resource-player/index.js +4 -2
  781. package/lib/molecule/resource-player/index.js.map +1 -1
  782. package/lib/molecule/scope-tabs/index.js +2 -2
  783. package/lib/molecule/search-form/index.js +2 -2
  784. package/lib/molecule/select-multiple/index.js +6 -6
  785. package/lib/molecule/select-multiple/index.js.map +1 -1
  786. package/lib/molecule/select-multiple/style.css +1 -0
  787. package/lib/molecule/select-multiple/test/fixtures.js +12 -0
  788. package/lib/molecule/select-multiple/test/fixtures.js.map +1 -1
  789. package/lib/molecule/select-multiple/test/index.js +4 -4
  790. package/lib/molecule/select-multiple/test/index.js.map +1 -1
  791. package/lib/molecule/setup-section/index.js +1 -1
  792. package/lib/molecule/setup-section/index.js.map +1 -1
  793. package/lib/molecule/setup-section/test/fixtures/first.js +1 -1
  794. package/lib/molecule/setup-section/test/fixtures/first.js.map +1 -1
  795. package/lib/molecule/setup-sections/index.js +2 -2
  796. package/lib/molecule/setup-slide/index.js +8 -8
  797. package/lib/molecule/setup-slide/index.js.map +1 -1
  798. package/lib/molecule/share/index.js +4 -4
  799. package/lib/molecule/share/index.js.map +1 -1
  800. package/lib/molecule/titled-checkbox/index.js +2 -2
  801. package/lib/molecule/vertical-tabs/test/fixtures/default.js +1 -1
  802. package/lib/molecule/video-iframe/index.js +1 -1
  803. package/lib/molecule/video-iframe/index.js.map +1 -1
  804. package/lib/molecule/video-player/index.js +3 -1
  805. package/lib/molecule/video-player/index.js.map +1 -1
  806. package/lib/molecule/video-player/jwplayer.js +2 -2
  807. package/lib/molecule/video-player/jwplayer.js.map +1 -1
  808. package/lib/molecule/video-player/test/fixtures/youtube.js +1 -1
  809. package/lib/molecule/video-player/test/fixtures/youtube.js.map +1 -1
  810. package/lib/molecule/video-player/vimeo.js +1 -1
  811. package/lib/molecule/video-player/vimeo.js.map +1 -1
  812. package/lib/molecule/wizard-summary/index.js +3 -2
  813. package/lib/molecule/wizard-summary/index.js.map +1 -1
  814. package/lib/molecule/wizard-summary/style.css +1 -1
  815. package/lib/organism/accordion/container/index.js +2 -2
  816. package/lib/organism/accordion/coorp-manager/index.js +3 -3
  817. package/lib/organism/accordion/coorp-manager/index.js.map +1 -1
  818. package/lib/organism/accordion/toggler/index.js +1 -1
  819. package/lib/organism/accordion/toggler/index.js.map +1 -1
  820. package/lib/organism/accordion/toggler/test/render.js +2 -2
  821. package/lib/organism/accordion/toggler/test/render.js.map +1 -1
  822. package/lib/organism/brand-form/index.js +2 -2
  823. package/lib/organism/brand-form/test/fixtures/sso.js +3 -3
  824. package/lib/organism/brand-form/test/fixtures/sso.js.map +1 -1
  825. package/lib/organism/content-translation/index.js +2 -2
  826. package/lib/organism/content-translation/index.js.map +1 -1
  827. package/lib/organism/content-translation/test/fixtures/default.js +2 -2
  828. package/lib/organism/content-translation/test/fixtures/default.js.map +1 -1
  829. package/lib/organism/content-translation/test/fixtures.js +25 -0
  830. package/lib/organism/content-translation/test/fixtures.js.map +1 -0
  831. package/lib/organism/course-selection/index.js +7 -3
  832. package/lib/organism/course-selection/index.js.map +1 -1
  833. package/lib/organism/course-selection/style.css +2 -1
  834. package/lib/organism/course-selection/test/fixtures/default.js +14 -6
  835. package/lib/organism/course-selection/test/fixtures/default.js.map +1 -1
  836. package/lib/organism/course-selection/test/fixtures/empty.js +9 -0
  837. package/lib/organism/course-selection/test/fixtures/empty.js.map +1 -1
  838. package/lib/organism/course-selection/test/fixtures/filtered.js +11 -3
  839. package/lib/organism/course-selection/test/fixtures/filtered.js.map +1 -1
  840. package/lib/organism/course-selection/test/fixtures/sorted-selected.js +14 -6
  841. package/lib/organism/course-selection/test/fixtures/sorted-selected.js.map +1 -1
  842. package/lib/organism/course-selection/test/fixtures/switch-activated.js +32 -0
  843. package/lib/organism/course-selection/test/fixtures/switch-activated.js.map +1 -0
  844. package/lib/organism/course-selection/test/fixtures/unsorted-selected.js +14 -6
  845. package/lib/organism/course-selection/test/fixtures/unsorted-selected.js.map +1 -1
  846. package/lib/organism/course-selection/test/fixtures.js +3 -0
  847. package/lib/organism/course-selection/test/fixtures.js.map +1 -1
  848. package/lib/organism/discussion/test/fixtures/default.js +1 -1
  849. package/lib/organism/discussion/test/fixtures/default.js.map +1 -1
  850. package/lib/organism/discussion/test/fixtures/loading-more.js +1 -1
  851. package/lib/organism/discussion/test/fixtures/loading-more.js.map +1 -1
  852. package/lib/organism/discussion/test/fixtures/new-discussion.js +1 -1
  853. package/lib/organism/discussion/test/fixtures/new-discussion.js.map +1 -1
  854. package/lib/organism/get-the-app/index.js +2 -2
  855. package/lib/organism/get-the-app/index.js.map +1 -1
  856. package/lib/organism/list-item/test/fixtures.js +31 -0
  857. package/lib/organism/list-item/test/fixtures.js.map +1 -0
  858. package/lib/organism/list-items/test/fixtures/archived.js +1 -1
  859. package/lib/organism/list-items/test/fixtures/archived.js.map +1 -1
  860. package/lib/organism/list-items/test/fixtures/draft.js +1 -1
  861. package/lib/organism/list-items/test/fixtures/draft.js.map +1 -1
  862. package/lib/organism/list-items/test/fixtures/published.js +1 -1
  863. package/lib/organism/list-items/test/fixtures/published.js.map +1 -1
  864. package/lib/organism/list-items/test/fixtures.js +28 -0
  865. package/lib/organism/list-items/test/fixtures.js.map +1 -0
  866. package/lib/organism/mooc/image-slider/test/fixtures/multiple-slides.js +2 -2
  867. package/lib/organism/mooc/image-slider/test/fixtures/multiple-slides.js.map +1 -1
  868. package/lib/organism/mooc-header/test/fixtures/default.js +1 -1
  869. package/lib/organism/mooc-header/test/fixtures/default.js.map +1 -1
  870. package/lib/organism/mooc-header/test/fixtures/logged-with-battle-notifications.js +1 -1
  871. package/lib/organism/mooc-header/test/fixtures/logged-with-battle-notifications.js.map +1 -1
  872. package/lib/organism/popin/test/fixtures/default.js.map +1 -1
  873. package/lib/organism/resource-browser/test/fixtures/jwplayer-with-overlay.js +1 -1
  874. package/lib/organism/resource-browser/test/fixtures/jwplayer-with-overlay.js.map +1 -1
  875. package/lib/organism/resource-browser/test/fixtures/jwplayer.js +1 -1
  876. package/lib/organism/resource-browser/test/fixtures/jwplayer.js.map +1 -1
  877. package/lib/organism/resource-browser/test/fixtures/kontiki.js +1 -1
  878. package/lib/organism/resource-browser/test/fixtures/kontiki.js.map +1 -1
  879. package/lib/organism/resource-browser/test/fixtures/mp4.js +1 -1
  880. package/lib/organism/resource-browser/test/fixtures/mp4.js.map +1 -1
  881. package/lib/organism/settings/index.js +4 -2
  882. package/lib/organism/settings/index.js.map +1 -1
  883. package/lib/organism/sidebar/index.js +15 -13
  884. package/lib/organism/sidebar/index.js.map +1 -1
  885. package/lib/organism/user-preferences/index.js +4 -2
  886. package/lib/organism/user-preferences/index.js.map +1 -1
  887. package/lib/organism/wizard-contents/index.js +11 -5
  888. package/lib/organism/wizard-contents/index.js.map +1 -1
  889. package/lib/organism/wizard-contents/style.css +0 -2
  890. package/lib/organism/wizard-contents/test/fixtures/playlist-add-courses-create.js +2 -1
  891. package/lib/organism/wizard-contents/test/fixtures/playlist-add-courses-create.js.map +1 -1
  892. package/lib/organism/wizard-contents/test/fixtures/playlist-general-settings-create.js +2 -1
  893. package/lib/organism/wizard-contents/test/fixtures/playlist-general-settings-create.js.map +1 -1
  894. package/lib/organism/wizard-contents/test/fixtures/playlist-general-settings-edit.js +2 -1
  895. package/lib/organism/wizard-contents/test/fixtures/playlist-general-settings-edit.js.map +1 -1
  896. package/lib/organism/wizard-contents/test/fixtures/playlist-populations-create.js +2 -1
  897. package/lib/organism/wizard-contents/test/fixtures/playlist-populations-create.js.map +1 -1
  898. package/lib/organism/wizard-contents/test/fixtures/playlist-translate-edit.js +2 -1
  899. package/lib/organism/wizard-contents/test/fixtures/playlist-translate-edit.js.map +1 -1
  900. package/lib/organism/wizard-contents/test/fixtures.js +34 -0
  901. package/lib/organism/wizard-contents/test/fixtures.js.map +1 -0
  902. package/lib/template/activity/index.js +1 -1
  903. package/lib/template/activity/index.js.map +1 -1
  904. package/lib/template/activity/progression-item.js +2 -2
  905. package/lib/template/activity/test/progression-item-test.js +1 -1
  906. package/lib/template/activity/test/progression-item-test.js.map +1 -1
  907. package/lib/template/app-player/player/slides/footer/index.js +1 -1
  908. package/lib/template/app-player/player/slides/footer/index.js.map +1 -1
  909. package/lib/template/app-player/player/slides/index.js +15 -11
  910. package/lib/template/app-player/player/slides/index.js.map +1 -1
  911. package/lib/template/app-player/player/slides/test/fixtures/arabic-context.js +2 -2
  912. package/lib/template/app-player/player/slides/test/fixtures/arabic-context.js.map +1 -1
  913. package/lib/template/app-player/player/slides/test/fixtures/arabic-qcm.js +1 -1
  914. package/lib/template/app-player/player/slides/test/fixtures/arabic-qcm.js.map +1 -1
  915. package/lib/template/app-player/player/slides/test/fixtures/arabic-resources.js +2 -2
  916. package/lib/template/app-player/player/slides/test/fixtures/arabic-resources.js.map +1 -1
  917. package/lib/template/app-player/player/slides/test/fixtures/arabic.js +2 -2
  918. package/lib/template/app-player/player/slides/test/fixtures/arabic.js.map +1 -1
  919. package/lib/template/app-player/player/slides/test/fixtures/clue.js +2 -2
  920. package/lib/template/app-player/player/slides/test/fixtures/clue.js.map +1 -1
  921. package/lib/template/app-player/player/slides/test/fixtures/context-with-audio.js +2 -2
  922. package/lib/template/app-player/player/slides/test/fixtures/context-with-audio.js.map +1 -1
  923. package/lib/template/app-player/player/slides/test/fixtures/context-with-image.js +2 -2
  924. package/lib/template/app-player/player/slides/test/fixtures/context-with-image.js.map +1 -1
  925. package/lib/template/app-player/player/slides/test/fixtures/context-with-pdf.js +2 -2
  926. package/lib/template/app-player/player/slides/test/fixtures/context-with-pdf.js.map +1 -1
  927. package/lib/template/app-player/player/slides/test/fixtures/context-with-video.js +2 -2
  928. package/lib/template/app-player/player/slides/test/fixtures/context-with-video.js.map +1 -1
  929. package/lib/template/app-player/player/slides/test/fixtures/context.js +2 -2
  930. package/lib/template/app-player/player/slides/test/fixtures/context.js.map +1 -1
  931. package/lib/template/app-player/player/slides/test/fixtures/default.js +2 -2
  932. package/lib/template/app-player/player/slides/test/fixtures/default.js.map +1 -1
  933. package/lib/template/app-player/player/slides/test/fixtures/drop-down.js +1 -1
  934. package/lib/template/app-player/player/slides/test/fixtures/drop-down.js.map +1 -1
  935. package/lib/template/app-player/player/slides/test/fixtures/free-text.js +1 -1
  936. package/lib/template/app-player/player/slides/test/fixtures/free-text.js.map +1 -1
  937. package/lib/template/app-player/player/slides/test/fixtures/media-h5p.js +2 -2
  938. package/lib/template/app-player/player/slides/test/fixtures/media-h5p.js.map +1 -1
  939. package/lib/template/app-player/player/slides/test/fixtures/media-omni-player.js +2 -2
  940. package/lib/template/app-player/player/slides/test/fixtures/media-omni-player.js.map +1 -1
  941. package/lib/template/app-player/player/slides/test/fixtures/media.js +2 -2
  942. package/lib/template/app-player/player/slides/test/fixtures/media.js.map +1 -1
  943. package/lib/template/app-player/player/slides/test/fixtures/no-clue.js +2 -2
  944. package/lib/template/app-player/player/slides/test/fixtures/no-clue.js.map +1 -1
  945. package/lib/template/app-player/player/slides/test/fixtures/no-question.js +2 -2
  946. package/lib/template/app-player/player/slides/test/fixtures/no-question.js.map +1 -1
  947. package/lib/template/app-player/player/slides/test/fixtures/no-total.js +1 -1
  948. package/lib/template/app-player/player/slides/test/fixtures/no-total.js.map +1 -1
  949. package/lib/template/app-player/player/slides/test/fixtures/only-clue.js +2 -2
  950. package/lib/template/app-player/player/slides/test/fixtures/only-clue.js.map +1 -1
  951. package/lib/template/app-player/player/slides/test/fixtures/qcm-drag.js +1 -1
  952. package/lib/template/app-player/player/slides/test/fixtures/qcm-drag.js.map +1 -1
  953. package/lib/template/app-player/player/slides/test/fixtures/qcm-graphic.js +1 -1
  954. package/lib/template/app-player/player/slides/test/fixtures/qcm-graphic.js.map +1 -1
  955. package/lib/template/app-player/player/slides/test/fixtures/qcm-see-lesson-no-step.js +1 -1
  956. package/lib/template/app-player/player/slides/test/fixtures/qcm-see-lesson-no-step.js.map +1 -1
  957. package/lib/template/app-player/player/slides/test/fixtures/qcm-see-lesson.js +1 -1
  958. package/lib/template/app-player/player/slides/test/fixtures/qcm-see-lesson.js.map +1 -1
  959. package/lib/template/app-player/player/slides/test/fixtures/qcm-short.js +1 -1
  960. package/lib/template/app-player/player/slides/test/fixtures/qcm-short.js.map +1 -1
  961. package/lib/template/app-player/player/slides/test/fixtures/qcm-template.js +1 -1
  962. package/lib/template/app-player/player/slides/test/fixtures/qcm-template.js.map +1 -1
  963. package/lib/template/app-player/player/slides/test/fixtures/qcm-with-review-lesson.js +1 -1
  964. package/lib/template/app-player/player/slides/test/fixtures/qcm-with-review-lesson.js.map +1 -1
  965. package/lib/template/app-player/player/slides/test/fixtures/qcm.js +1 -1
  966. package/lib/template/app-player/player/slides/test/fixtures/qcm.js.map +1 -1
  967. package/lib/template/app-player/player/slides/test/fixtures/range.js +1 -1
  968. package/lib/template/app-player/player/slides/test/fixtures/range.js.map +1 -1
  969. package/lib/template/app-player/player/slides/test/fixtures/template.js +1 -1
  970. package/lib/template/app-player/player/slides/test/fixtures/template.js.map +1 -1
  971. package/lib/template/app-player/player/slides/test/fixtures/with-min-height.js +1 -1
  972. package/lib/template/app-player/player/slides/test/fixtures/with-min-height.js.map +1 -1
  973. package/lib/template/app-player/player/test/fixtures/background.js +1 -1
  974. package/lib/template/app-player/player/test/fixtures/background.js.map +1 -1
  975. package/lib/template/app-player/popin-correction/index.js +6 -4
  976. package/lib/template/app-player/popin-correction/index.js.map +1 -1
  977. package/lib/template/app-player/popin-correction/test/fixtures/correct-closed-without-klf-and-tips.js +1 -1
  978. package/lib/template/app-player/popin-correction/test/fixtures/correct-closed-without-klf-and-tips.js.map +1 -1
  979. package/lib/template/app-player/popin-correction/test/fixtures/correct-closed.js +1 -1
  980. package/lib/template/app-player/popin-correction/test/fixtures/correct-closed.js.map +1 -1
  981. package/lib/template/app-player/popin-end/summary.js +12 -7
  982. package/lib/template/app-player/popin-end/summary.js.map +1 -1
  983. package/lib/template/app-player/popin-end/test/fixtures/adaptive.js +2 -2
  984. package/lib/template/app-player/popin-end/test/fixtures/adaptive.js.map +1 -1
  985. package/lib/template/app-player/popin-end/test/fixtures/infinite-lives.js +2 -2
  986. package/lib/template/app-player/popin-end/test/fixtures/infinite-lives.js.map +1 -1
  987. package/lib/template/app-player/popin-header/index.js +7 -5
  988. package/lib/template/app-player/popin-header/index.js.map +1 -1
  989. package/lib/template/back-office/brand-create/test/fixtures/default.js +1 -1
  990. package/lib/template/back-office/brand-create/test/fixtures/default.js.map +1 -1
  991. package/lib/template/back-office/brand-create/test/fixtures/loading.js +1 -1
  992. package/lib/template/back-office/brand-create/test/fixtures/loading.js.map +1 -1
  993. package/lib/template/back-office/brand-create/test/fixtures/modified.js +1 -1
  994. package/lib/template/back-office/brand-create/test/fixtures/modified.js.map +1 -1
  995. package/lib/template/back-office/brand-list/test/fixtures/default.js +1 -1
  996. package/lib/template/back-office/brand-list/test/fixtures/default.js.map +1 -1
  997. package/lib/template/back-office/brand-list/test/fixtures/rh.js +1 -1
  998. package/lib/template/back-office/brand-list/test/fixtures/rh.js.map +1 -1
  999. package/lib/template/back-office/brand-update/index.js +8 -8
  1000. package/lib/template/back-office/brand-update/index.js.map +1 -1
  1001. package/lib/template/back-office/brand-update/test/fixtures/analytics.js +2 -2
  1002. package/lib/template/back-office/brand-update/test/fixtures/animations.js +2 -2
  1003. package/lib/template/back-office/brand-update/test/fixtures/cohort-error.js +2 -2
  1004. package/lib/template/back-office/brand-update/test/fixtures/cohort.js +2 -2
  1005. package/lib/template/back-office/brand-update/test/fixtures/dashboard.js +2 -2
  1006. package/lib/template/back-office/brand-update/test/fixtures/dashboards-analytics.js +2 -2
  1007. package/lib/template/back-office/brand-update/test/fixtures/default.js +1 -1
  1008. package/lib/template/back-office/brand-update/test/fixtures/list-items-archived.js +1 -1
  1009. package/lib/template/back-office/brand-update/test/fixtures/list-items-archived.js.map +1 -1
  1010. package/lib/template/back-office/brand-update/test/fixtures/list-items-draft.js +1 -1
  1011. package/lib/template/back-office/brand-update/test/fixtures/list-items-draft.js.map +1 -1
  1012. package/lib/template/back-office/brand-update/test/fixtures/list-items-published-with-popin.js +1 -1
  1013. package/lib/template/back-office/brand-update/test/fixtures/list-items-published-with-popin.js.map +1 -1
  1014. package/lib/template/back-office/brand-update/test/fixtures/list-items-published.js +1 -1
  1015. package/lib/template/back-office/brand-update/test/fixtures/list-items-published.js.map +1 -1
  1016. package/lib/template/back-office/brand-update/test/fixtures/lms-error.js +2 -2
  1017. package/lib/template/back-office/brand-update/test/fixtures/lms-modified.js +2 -2
  1018. package/lib/template/back-office/brand-update/test/fixtures/lms-success.js +2 -2
  1019. package/lib/template/back-office/brand-update/test/fixtures/lms.js +2 -2
  1020. package/lib/template/back-office/brand-update/test/fixtures/lookandfeel.js +2 -2
  1021. package/lib/template/back-office/brand-update/test/fixtures/manageusers-edit.js +1 -1
  1022. package/lib/template/back-office/brand-update/test/fixtures/manageusers-edit.js.map +1 -1
  1023. package/lib/template/back-office/brand-update/test/fixtures/quick-access.js +1 -1
  1024. package/lib/template/back-office/brand-update/test/fixtures/quick-access.js.map +1 -1
  1025. package/lib/template/back-office/brand-update/test/fixtures/sso.js +2 -2
  1026. package/lib/template/back-office/brand-update/test/fixtures/uploadusers-loading.js +1 -1
  1027. package/lib/template/back-office/brand-update/test/fixtures/uploadusers-loading.js.map +1 -1
  1028. package/lib/template/back-office/brand-update/test/fixtures/uploadusers-successful.js +1 -1
  1029. package/lib/template/back-office/brand-update/test/fixtures/uploadusers-successful.js.map +1 -1
  1030. package/lib/template/back-office/brand-update/test/fixtures/uploadusers.js +1 -1
  1031. package/lib/template/back-office/brand-update/test/fixtures/uploadusers.js.map +1 -1
  1032. package/lib/template/back-office/brand-update/test/fixtures/wizard-add-courses-playlist.js +2 -1
  1033. package/lib/template/back-office/brand-update/test/fixtures/wizard-add-courses-playlist.js.map +1 -1
  1034. package/lib/template/back-office/brand-update/test/fixtures/wizard-form-create-playlist.js +2 -1
  1035. package/lib/template/back-office/brand-update/test/fixtures/wizard-form-create-playlist.js.map +1 -1
  1036. package/lib/template/back-office/brand-update/test/fixtures/wizard-form-edit-playlist.js +2 -1
  1037. package/lib/template/back-office/brand-update/test/fixtures/wizard-form-edit-playlist.js.map +1 -1
  1038. package/lib/template/back-office/brand-update/test/fixtures/wizard-populations-playlist-with-popin.js +2 -1
  1039. package/lib/template/back-office/brand-update/test/fixtures/wizard-populations-playlist-with-popin.js.map +1 -1
  1040. package/lib/template/back-office/brand-update/test/fixtures/wizard-populations-playlist.js +2 -1
  1041. package/lib/template/back-office/brand-update/test/fixtures/wizard-populations-playlist.js.map +1 -1
  1042. package/lib/template/back-office/brand-update/test/fixtures/wizard-translate-playlist.js +2 -1
  1043. package/lib/template/back-office/brand-update/test/fixtures/wizard-translate-playlist.js.map +1 -1
  1044. package/lib/template/back-office/brand-update/test/fixtures.js +30 -3
  1045. package/lib/template/back-office/brand-update/test/fixtures.js.map +1 -1
  1046. package/lib/template/cockpit/jw-uploader/index.js +1 -1
  1047. package/lib/template/cockpit/jw-uploader/index.js.map +1 -1
  1048. package/lib/template/common/dashboard/index.js +1 -1
  1049. package/lib/template/common/dashboard/index.js.map +1 -1
  1050. package/lib/template/common/dashboard/test/fixtures/empty-requests.js +1 -1
  1051. package/lib/template/common/dashboard/test/fixtures/empty-requests.js.map +1 -1
  1052. package/lib/template/common/dashboard/test/fixtures/with-hero-card.js +1 -1
  1053. package/lib/template/common/dashboard/test/fixtures/with-hero-card.js.map +1 -1
  1054. package/lib/template/common/discipline/index.js +2 -2
  1055. package/lib/template/common/discipline/test/fixtures/add-to-my-list.js +1 -1
  1056. package/lib/template/common/discipline/test/fixtures/add-to-my-list.js.map +1 -1
  1057. package/lib/template/common/discipline/test/fixtures/arabic.js +1 -1
  1058. package/lib/template/common/discipline/test/fixtures/arabic.js.map +1 -1
  1059. package/lib/template/common/discipline/test/fixtures/default.js +2 -2
  1060. package/lib/template/common/discipline/test/fixtures/default.js.map +1 -1
  1061. package/lib/template/common/discipline/test/fixtures/external-course-with-video.js +2 -2
  1062. package/lib/template/common/discipline/test/fixtures/external-course-with-video.js.map +1 -1
  1063. package/lib/template/common/discipline/test/fixtures/external-course-without-image.js +2 -2
  1064. package/lib/template/common/discipline/test/fixtures/external-course-without-image.js.map +1 -1
  1065. package/lib/template/common/discipline/test/fixtures/external-course.js +2 -2
  1066. package/lib/template/common/discipline/test/fixtures/external-course.js.map +1 -1
  1067. package/lib/template/common/discipline/test/fixtures/share.js +1 -1
  1068. package/lib/template/common/discipline/test/fixtures/share.js.map +1 -1
  1069. package/lib/template/teams-dashboard/index.js +2 -2
  1070. package/lib/template/teams-dashboard/test/fixtures/default.js +2 -2
  1071. package/lib/template/teams-dashboard/test/fixtures/default.js.map +1 -1
  1072. package/lib/template/teams-dashboard/test/fixtures/is-loading.js +1 -1
  1073. package/lib/template/teams-dashboard/test/fixtures/is-loading.js.map +1 -1
  1074. package/lib/template/teams-dashboard/test/fixtures/mobile.js +1 -1
  1075. package/lib/template/teams-dashboard/test/fixtures/mobile.js.map +1 -1
  1076. package/lib/test/helpers/render-component.js +1 -1
  1077. package/lib/util/external-content.js +1 -1
  1078. package/lib/util/proptypes.js +1 -1
  1079. package/lib/util/shallow-compare.js.map +1 -1
  1080. package/lib/util/test/navigation.js +5 -3
  1081. package/lib/util/test/navigation.js.map +1 -1
  1082. package/package.json +3 -3
@@ -11,9 +11,9 @@ var _propTypes = _interopRequireDefault(require("prop-types"));
11
11
 
12
12
  var _style = _interopRequireDefault(require("./style.css"));
13
13
 
14
- function _getRequireWildcardCache() { if (typeof WeakMap !== "function") return null; var cache = new WeakMap(); _getRequireWildcardCache = function () { return cache; }; return cache; }
14
+ function _getRequireWildcardCache(nodeInterop) { if (typeof WeakMap !== "function") return null; var cacheBabelInterop = new WeakMap(); var cacheNodeInterop = new WeakMap(); return (_getRequireWildcardCache = function (nodeInterop) { return nodeInterop ? cacheNodeInterop : cacheBabelInterop; })(nodeInterop); }
15
15
 
16
- function _interopRequireWildcard(obj) { if (obj && obj.__esModule) { return obj; } if (obj === null || typeof obj !== "object" && typeof obj !== "function") { return { default: obj }; } var cache = _getRequireWildcardCache(); if (cache && cache.has(obj)) { return cache.get(obj); } var newObj = {}; var hasPropertyDescriptor = Object.defineProperty && Object.getOwnPropertyDescriptor; for (var key in obj) { if (Object.prototype.hasOwnProperty.call(obj, key)) { var desc = hasPropertyDescriptor ? Object.getOwnPropertyDescriptor(obj, key) : null; if (desc && (desc.get || desc.set)) { Object.defineProperty(newObj, key, desc); } else { newObj[key] = obj[key]; } } } newObj.default = obj; if (cache) { cache.set(obj, newObj); } return newObj; }
16
+ function _interopRequireWildcard(obj, nodeInterop) { if (!nodeInterop && obj && obj.__esModule) { return obj; } if (obj === null || typeof obj !== "object" && typeof obj !== "function") { return { default: obj }; } var cache = _getRequireWildcardCache(nodeInterop); if (cache && cache.has(obj)) { return cache.get(obj); } var newObj = {}; var hasPropertyDescriptor = Object.defineProperty && Object.getOwnPropertyDescriptor; for (var key in obj) { if (key !== "default" && Object.prototype.hasOwnProperty.call(obj, key)) { var desc = hasPropertyDescriptor ? Object.getOwnPropertyDescriptor(obj, key) : null; if (desc && (desc.get || desc.set)) { Object.defineProperty(newObj, key, desc); } else { newObj[key] = obj[key]; } } } newObj.default = obj; if (cache) { cache.set(obj, newObj); } return newObj; }
17
17
 
18
18
  function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }
19
19
 
@@ -45,7 +45,7 @@ const VideoUpload = ({
45
45
  onDragLeave: onDragStop
46
46
  }));
47
47
 
48
- VideoUpload.propTypes = process.env.NODE_ENV !== "production" ? _extends(_extends({}, _dragAndDrop.default.propTypes), {}, {
48
+ VideoUpload.propTypes = process.env.NODE_ENV !== "production" ? _extends({}, _dragAndDrop.default.propTypes, {
49
49
  name: _propTypes.default.string,
50
50
  onChange: _propTypes.default.func
51
51
  }) : {};
@@ -1 +1 @@
1
- {"version":3,"sources":["../../../src/atom/video-upload/index.js"],"names":["VideoUpload","title","description","previewLabel","uploadLabel","previewContent","loading","modified","onChange","name","onDragStart","onDragStop","style","input","propTypes","DragAndDrop","PropTypes","string","func"],"mappings":";;;;;AAAA;;AACA;;AACA;;AACA;;;;;;AAEA,MAAMA,WAAW,GAAG,CAAC;AACnBC,EAAAA,KADmB;AAEnBC,EAAAA,WAFmB;AAGnBC,EAAAA,YAHmB;AAInBC,EAAAA,WAJmB;AAKnBC,EAAAA,cALmB;AAMnBC,EAAAA,OANmB;AAOnBC,EAAAA,QAPmB;AAQnBC,EAAAA,QARmB;AASnBC,EAAAA;AATmB,CAAD,kBAWlB,6BAAC,oBAAD;AACE,EAAA,KAAK,EAAER,KADT;AAEE,EAAA,WAAW,EAAEC,WAFf;AAGE,EAAA,YAAY,EAAEC,YAHhB;AAIE,EAAA,WAAW,EAAEC,WAJf;AAKE,EAAA,cAAc,EAAEC,cALlB;AAME,EAAA,OAAO,EAAEC,OANX;AAOE,EAAA,QAAQ,EAAEC;AAPZ,GASG,CAACG,WAAD,EAAcC,UAAd,kBACC;AACE,EAAA,IAAI,EAAC,MADP;AAEE,EAAA,IAAI,EAAEF,IAFR;AAGE,EAAA,MAAM,EAAC,SAHT;AAIE,EAAA,QAAQ,EAAEH,OAJZ;AAKE,EAAA,SAAS,EAAEM,eAAMC,KALnB;AAME,EAAA,QAAQ,EAAEL,QANZ;AAOE,EAAA,WAAW,EAAEE,WAPf;AAQE,EAAA,MAAM,EAAEC,UARV;AASE,EAAA,WAAW,EAAEA;AATf,EAVJ,CAXF;;AAoCAX,WAAW,CAACc,SAAZ,iEACKC,qBAAYD,SADjB;AAEEL,EAAAA,IAAI,EAAEO,mBAAUC,MAFlB;AAGET,EAAAA,QAAQ,EAAEQ,mBAAUE;AAHtB;eAMelB,W","sourcesContent":["import React from 'react';\nimport PropTypes from 'prop-types';\nimport DragAndDrop from '../drag-and-drop';\nimport style from './style.css';\n\nconst VideoUpload = ({\n title,\n description,\n previewLabel,\n uploadLabel,\n previewContent,\n loading,\n modified,\n onChange,\n name\n}) => (\n <DragAndDrop\n title={title}\n description={description}\n previewLabel={previewLabel}\n uploadLabel={uploadLabel}\n previewContent={previewContent}\n loading={loading}\n modified={modified}\n >\n {(onDragStart, onDragStop) => (\n <input\n type=\"file\"\n name={name}\n accept=\"video/*\"\n disabled={loading}\n className={style.input}\n onChange={onChange}\n onDragEnter={onDragStart}\n onDrop={onDragStop}\n onDragLeave={onDragStop}\n />\n )}\n </DragAndDrop>\n);\n\nVideoUpload.propTypes = {\n ...DragAndDrop.propTypes,\n name: PropTypes.string,\n onChange: PropTypes.func\n};\n\nexport default VideoUpload;\n"],"file":"index.js"}
1
+ {"version":3,"sources":["../../../src/atom/video-upload/index.js"],"names":["VideoUpload","title","description","previewLabel","uploadLabel","previewContent","loading","modified","onChange","name","onDragStart","onDragStop","style","input","propTypes","DragAndDrop","PropTypes","string","func"],"mappings":";;;;;AAAA;;AACA;;AACA;;AACA;;;;;;AAEA,MAAMA,WAAW,GAAG,CAAC;AACnBC,EAAAA,KADmB;AAEnBC,EAAAA,WAFmB;AAGnBC,EAAAA,YAHmB;AAInBC,EAAAA,WAJmB;AAKnBC,EAAAA,cALmB;AAMnBC,EAAAA,OANmB;AAOnBC,EAAAA,QAPmB;AAQnBC,EAAAA,QARmB;AASnBC,EAAAA;AATmB,CAAD,kBAWlB,6BAAC,oBAAD;AACE,EAAA,KAAK,EAAER,KADT;AAEE,EAAA,WAAW,EAAEC,WAFf;AAGE,EAAA,YAAY,EAAEC,YAHhB;AAIE,EAAA,WAAW,EAAEC,WAJf;AAKE,EAAA,cAAc,EAAEC,cALlB;AAME,EAAA,OAAO,EAAEC,OANX;AAOE,EAAA,QAAQ,EAAEC;AAPZ,GASG,CAACG,WAAD,EAAcC,UAAd,kBACC;AACE,EAAA,IAAI,EAAC,MADP;AAEE,EAAA,IAAI,EAAEF,IAFR;AAGE,EAAA,MAAM,EAAC,SAHT;AAIE,EAAA,QAAQ,EAAEH,OAJZ;AAKE,EAAA,SAAS,EAAEM,eAAMC,KALnB;AAME,EAAA,QAAQ,EAAEL,QANZ;AAOE,EAAA,WAAW,EAAEE,WAPf;AAQE,EAAA,MAAM,EAAEC,UARV;AASE,EAAA,WAAW,EAAEA;AATf,EAVJ,CAXF;;AAoCAX,WAAW,CAACc,SAAZ,wDACKC,qBAAYD,SADjB;AAEEL,EAAAA,IAAI,EAAEO,mBAAUC,MAFlB;AAGET,EAAAA,QAAQ,EAAEQ,mBAAUE;AAHtB;eAMelB,W","sourcesContent":["import React from 'react';\nimport PropTypes from 'prop-types';\nimport DragAndDrop from '../drag-and-drop';\nimport style from './style.css';\n\nconst VideoUpload = ({\n title,\n description,\n previewLabel,\n uploadLabel,\n previewContent,\n loading,\n modified,\n onChange,\n name\n}) => (\n <DragAndDrop\n title={title}\n description={description}\n previewLabel={previewLabel}\n uploadLabel={uploadLabel}\n previewContent={previewContent}\n loading={loading}\n modified={modified}\n >\n {(onDragStart, onDragStop) => (\n <input\n type=\"file\"\n name={name}\n accept=\"video/*\"\n disabled={loading}\n className={style.input}\n onChange={onChange}\n onDragEnter={onDragStart}\n onDrop={onDragStop}\n onDragLeave={onDragStop}\n />\n )}\n </DragAndDrop>\n);\n\nVideoUpload.propTypes = {\n ...DragAndDrop.propTypes,\n name: PropTypes.string,\n onChange: PropTypes.func\n};\n\nexport default VideoUpload;\n"],"file":"index.js"}
@@ -13,7 +13,7 @@ const {
13
13
  props
14
14
  } = _withoutVideo.default;
15
15
  var _default = {
16
- props: _extends(_extends({}, props), {}, {
16
+ props: _extends({}, props, {
17
17
  loading: true
18
18
  })
19
19
  };
@@ -1 +1 @@
1
- {"version":3,"sources":["../../../../../src/atom/video-upload/test/fixtures/loading.js"],"names":["props","WithoutVideo","loading"],"mappings":";;;;;AAAA;;;;;;AAEA,MAAM;AAACA,EAAAA;AAAD,IAAUC,qBAAhB;eAEe;AACbD,EAAAA,KAAK,wBACAA,KADA;AAEHE,IAAAA,OAAO,EAAE;AAFN;AADQ,C","sourcesContent":["import WithoutVideo from './without-video';\n\nconst {props} = WithoutVideo;\n\nexport default {\n props: {\n ...props,\n loading: true\n }\n};\n"],"file":"loading.js"}
1
+ {"version":3,"sources":["../../../../../src/atom/video-upload/test/fixtures/loading.js"],"names":["props","WithoutVideo","loading"],"mappings":";;;;;AAAA;;;;;;AAEA,MAAM;AAACA,EAAAA;AAAD,IAAUC,qBAAhB;eAEe;AACbD,EAAAA,KAAK,eACAA,KADA;AAEHE,IAAAA,OAAO,EAAE;AAFN;AADQ,C","sourcesContent":["import WithoutVideo from './without-video';\n\nconst {props} = WithoutVideo;\n\nexport default {\n props: {\n ...props,\n loading: true\n }\n};\n"],"file":"loading.js"}
@@ -13,7 +13,7 @@ const {
13
13
  props
14
14
  } = _desktop.default;
15
15
  var _default = {
16
- props: _extends(_extends({}, props), {}, {
16
+ props: _extends({}, props, {
17
17
  modified: true
18
18
  })
19
19
  };
@@ -1 +1 @@
1
- {"version":3,"sources":["../../../../../src/atom/video-upload/test/fixtures/modified.js"],"names":["props","Desktop","modified"],"mappings":";;;;;AAAA;;;;;;AAEA,MAAM;AAACA,EAAAA;AAAD,IAAUC,gBAAhB;eAEe;AACbD,EAAAA,KAAK,wBACAA,KADA;AAEHE,IAAAA,QAAQ,EAAE;AAFP;AADQ,C","sourcesContent":["import Desktop from './desktop';\n\nconst {props} = Desktop;\n\nexport default {\n props: {\n ...props,\n modified: true\n }\n};\n"],"file":"modified.js"}
1
+ {"version":3,"sources":["../../../../../src/atom/video-upload/test/fixtures/modified.js"],"names":["props","Desktop","modified"],"mappings":";;;;;AAAA;;;;;;AAEA,MAAM;AAACA,EAAAA;AAAD,IAAUC,gBAAhB;eAEe;AACbD,EAAAA,KAAK,eACAA,KADA;AAEHE,IAAAA,QAAQ,EAAE;AAFP;AADQ,C","sourcesContent":["import Desktop from './desktop';\n\nconst {props} = Desktop;\n\nexport default {\n props: {\n ...props,\n modified: true\n }\n};\n"],"file":"modified.js"}
@@ -1,7 +1,7 @@
1
1
  "use strict";
2
2
 
3
3
  exports.__esModule = true;
4
- exports.default = exports.BOUNCE = exports.SWIFT_OUT = exports.EASE_IN_OUT_BACK = exports.EASE_IN_OUT_CIRC = exports.EASE_IN_OUT_EXPO = exports.EASE_IN_OUT_SINE = exports.EASE_IN_OUT_QUINT = exports.EASE_IN_OUT_QUART = exports.EASE_IN_OUT_CUBIC = exports.EASE_IN_OUT_QUAD = exports.EASE_OUT_BACK = exports.EASE_OUT_CIRC = exports.EASE_OUT_EXPO = exports.EASE_OUT_SINE = exports.EASE_OUT_QUINT = exports.EASE_OUT_QUART = exports.EASE_OUT_CUBIC = exports.EASE_OUT_QUAD = exports.EASE_IN_BACK = exports.EASE_IN_CIRC = exports.EASE_IN_EXPO = exports.EASE_IN_SINE = exports.EASE_IN_QUINT = exports.EASE_IN_QUART = exports.EASE_IN_CUBIC = exports.EASE_IN_QUAD = exports.LINEAR = void 0;
4
+ exports.default = exports.SWIFT_OUT = exports.LINEAR = exports.EASE_OUT_SINE = exports.EASE_OUT_QUINT = exports.EASE_OUT_QUART = exports.EASE_OUT_QUAD = exports.EASE_OUT_EXPO = exports.EASE_OUT_CUBIC = exports.EASE_OUT_CIRC = exports.EASE_OUT_BACK = exports.EASE_IN_SINE = exports.EASE_IN_QUINT = exports.EASE_IN_QUART = exports.EASE_IN_QUAD = exports.EASE_IN_OUT_SINE = exports.EASE_IN_OUT_QUINT = exports.EASE_IN_OUT_QUART = exports.EASE_IN_OUT_QUAD = exports.EASE_IN_OUT_EXPO = exports.EASE_IN_OUT_CUBIC = exports.EASE_IN_OUT_CIRC = exports.EASE_IN_OUT_BACK = exports.EASE_IN_EXPO = exports.EASE_IN_CUBIC = exports.EASE_IN_CIRC = exports.EASE_IN_BACK = exports.BOUNCE = void 0;
5
5
 
6
6
  var _noop2 = _interopRequireDefault(require("lodash/fp/noop"));
7
7
 
@@ -14,9 +14,9 @@ var _enzymeAdapterReact = _interopRequireDefault(require("enzyme-adapter-react-1
14
14
 
15
15
  var _ = _interopRequireWildcard(require(".."));
16
16
 
17
- function _getRequireWildcardCache() { if (typeof WeakMap !== "function") return null; var cache = new WeakMap(); _getRequireWildcardCache = function () { return cache; }; return cache; }
17
+ function _getRequireWildcardCache(nodeInterop) { if (typeof WeakMap !== "function") return null; var cacheBabelInterop = new WeakMap(); var cacheNodeInterop = new WeakMap(); return (_getRequireWildcardCache = function (nodeInterop) { return nodeInterop ? cacheNodeInterop : cacheBabelInterop; })(nodeInterop); }
18
18
 
19
- function _interopRequireWildcard(obj) { if (obj && obj.__esModule) { return obj; } if (obj === null || typeof obj !== "object" && typeof obj !== "function") { return { default: obj }; } var cache = _getRequireWildcardCache(); if (cache && cache.has(obj)) { return cache.get(obj); } var newObj = {}; var hasPropertyDescriptor = Object.defineProperty && Object.getOwnPropertyDescriptor; for (var key in obj) { if (Object.prototype.hasOwnProperty.call(obj, key)) { var desc = hasPropertyDescriptor ? Object.getOwnPropertyDescriptor(obj, key) : null; if (desc && (desc.get || desc.set)) { Object.defineProperty(newObj, key, desc); } else { newObj[key] = obj[key]; } } } newObj.default = obj; if (cache) { cache.set(obj, newObj); } return newObj; }
19
+ function _interopRequireWildcard(obj, nodeInterop) { if (!nodeInterop && obj && obj.__esModule) { return obj; } if (obj === null || typeof obj !== "object" && typeof obj !== "function") { return { default: obj }; } var cache = _getRequireWildcardCache(nodeInterop); if (cache && cache.has(obj)) { return cache.get(obj); } var newObj = {}; var hasPropertyDescriptor = Object.defineProperty && Object.getOwnPropertyDescriptor; for (var key in obj) { if (key !== "default" && Object.prototype.hasOwnProperty.call(obj, key)) { var desc = hasPropertyDescriptor ? Object.getOwnPropertyDescriptor(obj, key) : null; if (desc && (desc.get || desc.set)) { Object.defineProperty(newObj, key, desc); } else { newObj[key] = obj[key]; } } } newObj.default = obj; if (cache) { cache.set(obj, newObj); } return newObj; }
20
20
 
21
21
  function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }
22
22
 
@@ -1,7 +1,7 @@
1
1
  "use strict";
2
2
 
3
3
  exports.__esModule = true;
4
- exports.AnimationAdapter = exports.default = void 0;
4
+ exports.default = exports.AnimationAdapter = void 0;
5
5
 
6
6
  var _set2 = _interopRequireDefault(require("lodash/fp/set"));
7
7
 
@@ -53,7 +53,7 @@ const AnimationAdapter = ({
53
53
  name,
54
54
  children
55
55
  }) => {
56
- return _react.default.Children.map(children, child => _react.default.cloneElement(child, {
56
+ return _react.default.Children.map(children, child => /*#__PURE__*/_react.default.cloneElement(child, {
57
57
  animated,
58
58
  onAnimationEnd: () => onAnimationEnd(name)
59
59
  }));
@@ -75,7 +75,7 @@ const walker = (type, handler) => children => {
75
75
  if ((0, _isNil2.default)(child) || (0, _isString2.default)(child)) return child;
76
76
  const newChild = child.type === type ? handler(child) : child;
77
77
  if (_react.default.Children.count(newChild.props.children) === 0) return newChild;
78
- return _react.default.cloneElement(newChild, {}, walker(type, handler)(newChild.props.children));
78
+ return /*#__PURE__*/_react.default.cloneElement(newChild, {}, walker(type, handler)(newChild.props.children));
79
79
  });
80
80
  };
81
81
 
@@ -163,7 +163,7 @@ class AnimationScheduler extends _react.default.Component {
163
163
  onAnimationEnd = _noop2.default,
164
164
  after
165
165
  } = child.props;
166
- return _react.default.cloneElement(child, {
166
+ return /*#__PURE__*/_react.default.cloneElement(child, {
167
167
  animated: parentAnimated ? this.isAnimated(after) || animated : animated,
168
168
  onAnimationEnd: name => {
169
169
  this.handlerAnimationEnd(name);
@@ -1 +1 @@
1
- {"version":3,"sources":["../../../src/hoc/animation-scheduler/index.js"],"names":["AnimationAdapter","animated","onAnimationEnd","name","children","React","Children","map","child","cloneElement","propTypes","PropTypes","string","isRequired","func","bool","pickByWithKey","convert","cap","walker","type","handler","index","newChild","count","props","reduceChildren","fun","acc","newAcc","getAnimationNames","Animation","Transition","mergeAnimationStates","animations","names","value","key","AnimationScheduler","Component","getDerivedStateFromProps","state","constructor","isAnimated","after","handlerAnimationEnd","setState","hasPendingAnimation","processAnimation","parentAnimated","render","bind","node"],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAAA;;AACA;;AAoBA;;AACA;;;;AAEA,MAAMA,gBAAgB,GAAG,CAAC;AAACC,EAAAA,QAAD;AAAWC,EAAAA,cAAc,iBAAzB;AAAkCC,EAAAA,IAAlC;AAAwCC,EAAAA;AAAxC,CAAD,KAAuD;AAC9E,SAAOC,eAAMC,QAAN,CAAeC,GAAf,CAAmBH,QAAnB,EAA6BI,KAAK,IACvCH,eAAMI,YAAN,CAAmBD,KAAnB,EAA0B;AACxBP,IAAAA,QADwB;AAExBC,IAAAA,cAAc,EAAE,MAAMA,cAAc,CAACC,IAAD;AAFZ,GAA1B,CADK,CAAP;AAMD,CAPD;;;AASAH,gBAAgB,CAACU,SAAjB,2CAA6B;AAC3BP,EAAAA,IAAI,EAAEQ,mBAAUC,MAAV,CAAiB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,EAAEgD,cAAc,GAAG,KAAKN,UAAL,CAAgBC,KAAhB,KAA0B3C,QAA7B,GAAwCA,QADjC;AAE/BC,MAAAA,cAAc,EAAEC,IAAI,IAAI;AACtB,aAAK0C,mBAAL,CAAyB1C,IAAzB;AACA,eAAOD,cAAc,CAACC,IAAD,CAArB;AACD;AAL8B,KAA1B,CAAP;AAOD;;AAED+C,EAAAA,MAAM,GAAG;AACP,UAAM;AAAC9C,MAAAA;AAAD,QAAa,KAAKqB,KAAxB;AACA,WAAO,oBACLN,MAAM,CAACY,kBAAD,EAAY,KAAKiB,gBAAL,CAAsBG,IAAtB,CAA2B,IAA3B,CAAZ,CADD,EAELhC,MAAM,CAACa,mBAAD,EAAa,KAAKgB,gBAAL,CAAsBG,IAAtB,CAA2B,IAA3B,CAAb,CAFD,EAGLhC,MAAM,CAACnB,gBAAD,EAAmB,KAAKgD,gBAAL,CAAsBG,IAAtB,CAA2B,IAA3B,CAAnB,CAHD,EAIL/C,QAJK,CAAP;AAKD;;AArE8C;;AAA3CkC,kB,CACG5B,S,2CAAY;AACjBR,EAAAA,cAAc,EAAES,mBAAUG,IADT;AAEjBb,EAAAA,QAAQ,EAAEU,mBAAUI,IAFH;AAGjBX,EAAAA,QAAQ,EAAEO,mBAAUyC;AAHH,C;eAuENd,kB","sourcesContent":["import React from 'react';\nimport PropTypes from 'prop-types';\nimport {\n assign,\n every,\n getOr,\n get,\n includes,\n isArray,\n isNil,\n isString,\n noop,\n pickBy,\n some,\n negate,\n identity,\n values,\n pipe,\n reduce,\n set\n} from 'lodash/fp';\nimport Animation from '../animation';\nimport Transition from '../transition';\n\nconst AnimationAdapter = ({animated, onAnimationEnd = noop, name, children}) => {\n return React.Children.map(children, child =>\n React.cloneElement(child, {\n animated,\n onAnimationEnd: () => onAnimationEnd(name)\n })\n );\n};\n\nAnimationAdapter.propTypes = {\n name: PropTypes.string.isRequired,\n onAnimationEnd: PropTypes.func,\n animated: PropTypes.bool\n};\n\nconst pickByWithKey = pickBy.convert({cap: true});\n\nconst walker = (type, handler) => children => {\n return React.Children.map(children, (child, index) => {\n if (isNil(child) || isString(child)) return child;\n const newChild = child.type === type ? handler(child) : child;\n if (React.Children.count(newChild.props.children) === 0) return newChild;\n return React.cloneElement(newChild, {}, walker(type, handler)(newChild.props.children));\n });\n};\n\nconst reduceChildren = fun => acc => children => {\n let newAcc = acc;\n React.Children.map(children, child => {\n newAcc = fun(newAcc, child);\n return child;\n });\n return newAcc;\n};\n\nconst getAnimationNames = reduceChildren((acc, child) => {\n if (isString(child)) return acc;\n\n const {\n type,\n props: {children}\n } = child;\n if (Animation !== type && Transition !== type && AnimationAdapter !== type)\n return [...acc, ...getAnimationNames(children)];\n\n const {\n props: {name}\n } = child;\n return [name, ...acc, ...getAnimationNames(children)];\n})([]);\n\nconst mergeAnimationStates = (animations, children) => {\n const names = getAnimationNames(children);\n\n return pipe(\n pickByWithKey((value, key) => includes(key, names)),\n assign(reduce((acc, name) => set(name, false, acc), {}, names))\n )(animations);\n};\n\nclass AnimationScheduler extends React.Component {\n static propTypes = {\n onAnimationEnd: PropTypes.func,\n animated: PropTypes.bool,\n children: PropTypes.node\n };\n\n static getDerivedStateFromProps(props, state) {\n const {children} = props;\n const {animations} = state;\n return {\n animations: mergeAnimationStates(animations, children)\n };\n }\n\n constructor(props) {\n super(props);\n\n const {children} = props;\n this.state = {\n animations: mergeAnimationStates({}, children)\n };\n }\n\n isAnimated(after) {\n if (isNil(after)) return true;\n\n const {animations} = this.state;\n\n const isAnimated = every(\n name => getOr(false, name, animations),\n isArray(after) ? after : [after]\n );\n\n return isAnimated;\n }\n\n handlerAnimationEnd(name) {\n this.setState(set(['animations', name], true), () => {\n const hasPendingAnimation = pipe(\n get('state.animations'),\n values,\n some(negate(identity))\n )(this);\n const {onAnimationEnd = noop} = this.props;\n if (!hasPendingAnimation) return onAnimationEnd();\n });\n }\n\n processAnimation(child) {\n const {animated: parentAnimated} = this.props;\n const {animated, onAnimationEnd = noop, after} = child.props;\n\n return React.cloneElement(child, {\n animated: parentAnimated ? this.isAnimated(after) || animated : animated,\n onAnimationEnd: name => {\n this.handlerAnimationEnd(name);\n return onAnimationEnd(name);\n }\n });\n }\n\n render() {\n const {children} = this.props;\n return pipe(\n walker(Animation, this.processAnimation.bind(this)),\n walker(Transition, this.processAnimation.bind(this)),\n walker(AnimationAdapter, this.processAnimation.bind(this))\n )(children);\n }\n}\n\nexport default AnimationScheduler;\n\nexport {AnimationAdapter};\n"],"file":"index.js"}
1
+ {"version":3,"sources":["../../../src/hoc/animation-scheduler/index.js"],"names":["AnimationAdapter","animated","onAnimationEnd","name","children","React","Children","map","child","cloneElement","propTypes","PropTypes","string","isRequired","func","bool","pickByWithKey","convert","cap","walker","type","handler","index","newChild","count","props","reduceChildren","fun","acc","newAcc","getAnimationNames","Animation","Transition","mergeAnimationStates","animations","names","value","key","AnimationScheduler","Component","getDerivedStateFromProps","state","constructor","isAnimated","after","handlerAnimationEnd","setState","hasPendingAnimation","processAnimation","parentAnimated","render","bind","node"],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAAA;;AACA;;AAoBA;;AACA;;;;AAEA,MAAMA,gBAAgB,GAAG,CAAC;AAACC,EAAAA,QAAD;AAAWC,EAAAA,cAAc,iBAAzB;AAAkCC,EAAAA,IAAlC;AAAwCC,EAAAA;AAAxC,CAAD,KAAuD;AAC9E,SAAOC,eAAMC,QAAN,CAAeC,GAAf,CAAmBH,QAAnB,EAA6BI,KAAK,iBACvCH,eAAMI,YAAN,CAAmBD,KAAnB,EAA0B;AACxBP,IAAAA,QADwB;AAExBC,IAAAA,cAAc,EAAE,MAAMA,cAAc,CAACC,IAAD;AAFZ,GAA1B,CADK,CAAP;AAMD,CAPD;;;AASAH,gBAAgB,CAACU,SAAjB,2CAA6B;AAC3BP,EAAAA,IAAI,EAAEQ,mBAAUC,MAAV,CAAiBC,UADI;AAE3BX,EAAAA,cAAc,EAAES,mBAAUG,IAFC;AAG3Bb,EA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7B,GAAwCA,QADjC;AAE/BC,MAAAA,cAAc,EAAEC,IAAI,IAAI;AACtB,aAAK0C,mBAAL,CAAyB1C,IAAzB;AACA,eAAOD,cAAc,CAACC,IAAD,CAArB;AACD;AAL8B,KAA1B,CAAP;AAOD;;AAED+C,EAAAA,MAAM,GAAG;AACP,UAAM;AAAC9C,MAAAA;AAAD,QAAa,KAAKqB,KAAxB;AACA,WAAO,oBACLN,MAAM,CAACY,kBAAD,EAAY,KAAKiB,gBAAL,CAAsBG,IAAtB,CAA2B,IAA3B,CAAZ,CADD,EAELhC,MAAM,CAACa,mBAAD,EAAa,KAAKgB,gBAAL,CAAsBG,IAAtB,CAA2B,IAA3B,CAAb,CAFD,EAGLhC,MAAM,CAACnB,gBAAD,EAAmB,KAAKgD,gBAAL,CAAsBG,IAAtB,CAA2B,IAA3B,CAAnB,CAHD,EAIL/C,QAJK,CAAP;AAKD;;AArE8C;;AAA3CkC,kB,CACG5B,S,2CAAY;AACjBR,EAAAA,cAAc,EAAES,mBAAUG,IADT;AAEjBb,EAAAA,QAAQ,EAAEU,mBAAUI,IAFH;AAGjBX,EAAAA,QAAQ,EAAEO,mBAAUyC;AAHH,C;eAuENd,kB","sourcesContent":["import React from 'react';\nimport PropTypes from 'prop-types';\nimport {\n assign,\n every,\n getOr,\n get,\n includes,\n isArray,\n isNil,\n isString,\n noop,\n pickBy,\n some,\n negate,\n identity,\n values,\n pipe,\n reduce,\n set\n} from 'lodash/fp';\nimport Animation from '../animation';\nimport Transition from '../transition';\n\nconst AnimationAdapter = ({animated, onAnimationEnd = noop, name, children}) => {\n return React.Children.map(children, child =>\n React.cloneElement(child, {\n animated,\n onAnimationEnd: () => onAnimationEnd(name)\n })\n );\n};\n\nAnimationAdapter.propTypes = {\n name: PropTypes.string.isRequired,\n onAnimationEnd: PropTypes.func,\n animated: PropTypes.bool\n};\n\nconst pickByWithKey = pickBy.convert({cap: true});\n\nconst walker = (type, handler) => children => {\n return React.Children.map(children, (child, index) => {\n if (isNil(child) || isString(child)) return child;\n const newChild = child.type === type ? handler(child) : child;\n if (React.Children.count(newChild.props.children) === 0) return newChild;\n return React.cloneElement(newChild, {}, walker(type, handler)(newChild.props.children));\n });\n};\n\nconst reduceChildren = fun => acc => children => {\n let newAcc = acc;\n React.Children.map(children, child => {\n newAcc = fun(newAcc, child);\n return child;\n });\n return newAcc;\n};\n\nconst getAnimationNames = reduceChildren((acc, child) => {\n if (isString(child)) return acc;\n\n const {\n type,\n props: {children}\n } = child;\n if (Animation !== type && Transition !== type && AnimationAdapter !== type)\n return [...acc, ...getAnimationNames(children)];\n\n const {\n props: {name}\n } = child;\n return [name, ...acc, ...getAnimationNames(children)];\n})([]);\n\nconst mergeAnimationStates = (animations, children) => {\n const names = getAnimationNames(children);\n\n return pipe(\n pickByWithKey((value, key) => includes(key, names)),\n assign(reduce((acc, name) => set(name, false, acc), {}, names))\n )(animations);\n};\n\nclass AnimationScheduler extends React.Component {\n static propTypes = {\n onAnimationEnd: PropTypes.func,\n animated: PropTypes.bool,\n children: PropTypes.node\n };\n\n static getDerivedStateFromProps(props, state) {\n const {children} = props;\n const {animations} = state;\n return {\n animations: mergeAnimationStates(animations, children)\n };\n }\n\n constructor(props) {\n super(props);\n\n const {children} = props;\n this.state = {\n animations: mergeAnimationStates({}, children)\n };\n }\n\n isAnimated(after) {\n if (isNil(after)) return true;\n\n const {animations} = this.state;\n\n const isAnimated = every(\n name => getOr(false, name, animations),\n isArray(after) ? after : [after]\n );\n\n return isAnimated;\n }\n\n handlerAnimationEnd(name) {\n this.setState(set(['animations', name], true), () => {\n const hasPendingAnimation = pipe(\n get('state.animations'),\n values,\n some(negate(identity))\n )(this);\n const {onAnimationEnd = noop} = this.props;\n if (!hasPendingAnimation) return onAnimationEnd();\n });\n }\n\n processAnimation(child) {\n const {animated: parentAnimated} = this.props;\n const {animated, onAnimationEnd = noop, after} = child.props;\n\n return React.cloneElement(child, {\n animated: parentAnimated ? this.isAnimated(after) || animated : animated,\n onAnimationEnd: name => {\n this.handlerAnimationEnd(name);\n return onAnimationEnd(name);\n }\n });\n }\n\n render() {\n const {children} = this.props;\n return pipe(\n walker(Animation, this.processAnimation.bind(this)),\n walker(Transition, this.processAnimation.bind(this)),\n walker(AnimationAdapter, this.processAnimation.bind(this))\n )(children);\n }\n}\n\nexport default AnimationScheduler;\n\nexport {AnimationAdapter};\n"],"file":"index.js"}
@@ -1,15 +1,15 @@
1
1
  "use strict";
2
2
 
3
3
  exports.__esModule = true;
4
- exports.default = exports.state = void 0;
4
+ exports.state = exports.default = void 0;
5
5
 
6
6
  var _react = _interopRequireDefault(require("react"));
7
7
 
8
8
  var _animation = _interopRequireWildcard(require("../../../animation"));
9
9
 
10
- function _getRequireWildcardCache() { if (typeof WeakMap !== "function") return null; var cache = new WeakMap(); _getRequireWildcardCache = function () { return cache; }; return cache; }
10
+ function _getRequireWildcardCache(nodeInterop) { if (typeof WeakMap !== "function") return null; var cacheBabelInterop = new WeakMap(); var cacheNodeInterop = new WeakMap(); return (_getRequireWildcardCache = function (nodeInterop) { return nodeInterop ? cacheNodeInterop : cacheBabelInterop; })(nodeInterop); }
11
11
 
12
- function _interopRequireWildcard(obj) { if (obj && obj.__esModule) { return obj; } if (obj === null || typeof obj !== "object" && typeof obj !== "function") { return { default: obj }; } var cache = _getRequireWildcardCache(); if (cache && cache.has(obj)) { return cache.get(obj); } var newObj = {}; var hasPropertyDescriptor = Object.defineProperty && Object.getOwnPropertyDescriptor; for (var key in obj) { if (Object.prototype.hasOwnProperty.call(obj, key)) { var desc = hasPropertyDescriptor ? Object.getOwnPropertyDescriptor(obj, key) : null; if (desc && (desc.get || desc.set)) { Object.defineProperty(newObj, key, desc); } else { newObj[key] = obj[key]; } } } newObj.default = obj; if (cache) { cache.set(obj, newObj); } return newObj; }
12
+ function _interopRequireWildcard(obj, nodeInterop) { if (!nodeInterop && obj && obj.__esModule) { return obj; } if (obj === null || typeof obj !== "object" && typeof obj !== "function") { return { default: obj }; } var cache = _getRequireWildcardCache(nodeInterop); if (cache && cache.has(obj)) { return cache.get(obj); } var newObj = {}; var hasPropertyDescriptor = Object.defineProperty && Object.getOwnPropertyDescriptor; for (var key in obj) { if (key !== "default" && Object.prototype.hasOwnProperty.call(obj, key)) { var desc = hasPropertyDescriptor ? Object.getOwnPropertyDescriptor(obj, key) : null; if (desc && (desc.get || desc.set)) { Object.defineProperty(newObj, key, desc); } else { newObj[key] = obj[key]; } } } newObj.default = obj; if (cache) { cache.set(obj, newObj); } return newObj; }
13
13
 
14
14
  function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }
15
15
 
@@ -9,9 +9,9 @@ var _animation = _interopRequireWildcard(require("../../../animation"));
9
9
 
10
10
  var _parallel = require("./parallel");
11
11
 
12
- function _getRequireWildcardCache() { if (typeof WeakMap !== "function") return null; var cache = new WeakMap(); _getRequireWildcardCache = function () { return cache; }; return cache; }
12
+ function _getRequireWildcardCache(nodeInterop) { if (typeof WeakMap !== "function") return null; var cacheBabelInterop = new WeakMap(); var cacheNodeInterop = new WeakMap(); return (_getRequireWildcardCache = function (nodeInterop) { return nodeInterop ? cacheNodeInterop : cacheBabelInterop; })(nodeInterop); }
13
13
 
14
- function _interopRequireWildcard(obj) { if (obj && obj.__esModule) { return obj; } if (obj === null || typeof obj !== "object" && typeof obj !== "function") { return { default: obj }; } var cache = _getRequireWildcardCache(); if (cache && cache.has(obj)) { return cache.get(obj); } var newObj = {}; var hasPropertyDescriptor = Object.defineProperty && Object.getOwnPropertyDescriptor; for (var key in obj) { if (Object.prototype.hasOwnProperty.call(obj, key)) { var desc = hasPropertyDescriptor ? Object.getOwnPropertyDescriptor(obj, key) : null; if (desc && (desc.get || desc.set)) { Object.defineProperty(newObj, key, desc); } else { newObj[key] = obj[key]; } } } newObj.default = obj; if (cache) { cache.set(obj, newObj); } return newObj; }
14
+ function _interopRequireWildcard(obj, nodeInterop) { if (!nodeInterop && obj && obj.__esModule) { return obj; } if (obj === null || typeof obj !== "object" && typeof obj !== "function") { return { default: obj }; } var cache = _getRequireWildcardCache(nodeInterop); if (cache && cache.has(obj)) { return cache.get(obj); } var newObj = {}; var hasPropertyDescriptor = Object.defineProperty && Object.getOwnPropertyDescriptor; for (var key in obj) { if (key !== "default" && Object.prototype.hasOwnProperty.call(obj, key)) { var desc = hasPropertyDescriptor ? Object.getOwnPropertyDescriptor(obj, key) : null; if (desc && (desc.get || desc.set)) { Object.defineProperty(newObj, key, desc); } else { newObj[key] = obj[key]; } } } newObj.default = obj; if (cache) { cache.set(obj, newObj); } return newObj; }
15
15
 
16
16
  function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }
17
17
 
@@ -16,9 +16,9 @@ var _enzymeAdapterReact = _interopRequireDefault(require("enzyme-adapter-react-1
16
16
 
17
17
  var _ = _interopRequireWildcard(require(".."));
18
18
 
19
- function _getRequireWildcardCache() { if (typeof WeakMap !== "function") return null; var cache = new WeakMap(); _getRequireWildcardCache = function () { return cache; }; return cache; }
19
+ function _getRequireWildcardCache(nodeInterop) { if (typeof WeakMap !== "function") return null; var cacheBabelInterop = new WeakMap(); var cacheNodeInterop = new WeakMap(); return (_getRequireWildcardCache = function (nodeInterop) { return nodeInterop ? cacheNodeInterop : cacheBabelInterop; })(nodeInterop); }
20
20
 
21
- function _interopRequireWildcard(obj) { if (obj && obj.__esModule) { return obj; } if (obj === null || typeof obj !== "object" && typeof obj !== "function") { return { default: obj }; } var cache = _getRequireWildcardCache(); if (cache && cache.has(obj)) { return cache.get(obj); } var newObj = {}; var hasPropertyDescriptor = Object.defineProperty && Object.getOwnPropertyDescriptor; for (var key in obj) { if (Object.prototype.hasOwnProperty.call(obj, key)) { var desc = hasPropertyDescriptor ? Object.getOwnPropertyDescriptor(obj, key) : null; if (desc && (desc.get || desc.set)) { Object.defineProperty(newObj, key, desc); } else { newObj[key] = obj[key]; } } } newObj.default = obj; if (cache) { cache.set(obj, newObj); } return newObj; }
21
+ function _interopRequireWildcard(obj, nodeInterop) { if (!nodeInterop && obj && obj.__esModule) { return obj; } if (obj === null || typeof obj !== "object" && typeof obj !== "function") { return { default: obj }; } var cache = _getRequireWildcardCache(nodeInterop); if (cache && cache.has(obj)) { return cache.get(obj); } var newObj = {}; var hasPropertyDescriptor = Object.defineProperty && Object.getOwnPropertyDescriptor; for (var key in obj) { if (key !== "default" && Object.prototype.hasOwnProperty.call(obj, key)) { var desc = hasPropertyDescriptor ? Object.getOwnPropertyDescriptor(obj, key) : null; if (desc && (desc.get || desc.set)) { Object.defineProperty(newObj, key, desc); } else { newObj[key] = obj[key]; } } } newObj.default = obj; if (cache) { cache.set(obj, newObj); } return newObj; }
22
22
 
23
23
  function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }
24
24
 
@@ -1,12 +1,14 @@
1
1
  "use strict";
2
2
 
3
3
  exports.__esModule = true;
4
- exports.default = exports.safeCancelAnimationFrame = void 0;
4
+ exports.safeCancelAnimationFrame = exports.default = void 0;
5
5
 
6
6
  var _react = _interopRequireDefault(require("react"));
7
7
 
8
8
  var _propTypes = _interopRequireDefault(require("prop-types"));
9
9
 
10
+ const _excluded = ["children"];
11
+
10
12
  function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }
11
13
 
12
14
  function _objectWithoutPropertiesLoose(source, excluded) { if (source == null) return {}; var target = {}; var sourceKeys = Object.keys(source); var key, i; for (i = 0; i < sourceKeys.length; i++) { key = sourceKeys[i]; if (excluded.indexOf(key) >= 0) continue; target[key] = source[key]; } return target; }
@@ -46,11 +48,11 @@ class Swapper extends _react.default.Component {
46
48
  {
47
49
  children
48
50
  } = _this$props,
49
- props = _objectWithoutPropertiesLoose(_this$props, ["children"]);
51
+ props = _objectWithoutPropertiesLoose(_this$props, _excluded);
50
52
 
51
53
  const child = _react.default.Children.only(children);
52
54
 
53
- return init ? _react.default.cloneElement(child, props) : child;
55
+ return init ? /*#__PURE__*/_react.default.cloneElement(child, props) : child;
54
56
  }
55
57
 
56
58
  }
@@ -1 +1 @@
1
- {"version":3,"sources":["../../../src/hoc/swapper/index.js"],"names":["safeCancelAnimationFrame","requestId","cancelAnimationFrame","Swapper","React","Component","constructor","props","state","init","componentDidMount","requestAnimationFrame","requestID","setState","componentWillUnmount","undefined","render","children","child","Children","only","cloneElement","propTypes","PropTypes","node"],"mappings":";;;;;AAAA;;AACA;;;;;;AAEO,MAAMA,wBAAwB,GAAGC,SAAS,IAAIA,SAAS,IAAIC,oBAAoB,CAACD,SAAD,CAA/E;;;;AAEP,MAAME,OAAN,SAAsBC,eAAMC,SAA5B,CAAsC;AAKpCC,EAAAA,WAAW,CAACC,KAAD,EAAQ;AACjB,UAAMA,KAAN;AAEA,SAAKC,KAAL,GAAa;AACXC,MAAAA,IAAI,EAAE;AADK,KAAb;AAGD;;AAEDC,EAAAA,iBAAiB,GAAG;AAClB,QAAI,OAAOC,qBAAP,KAAiC,WAArC,EAAkD;AAChD,WAAKC,SAAL,GAAiBD,qBAAqB,CAAC,MAAM,KAAKE,QAAL,CAAc;AAACJ,QAAAA,IAAI,EAAE;AAAP,OAAd,CAAP,CAAtC;AACD;AACF;;AAEDK,EAAAA,oBAAoB,GAAG;AACrB,QAAI,KAAKF,SAAL,KAAmBG,SAAvB,EAAkC;AAChCf,MAAAA,wBAAwB,CAAC,KAAKY,SAAN,CAAxB;AACD;AACF;;AAEDI,EAAAA,MAAM,GAAG;AACP,UAAM;AAACP,MAAAA;AAAD,QAAS,KAAKD,KAApB;;AACA,wBAA6B,KAAKD,KAAlC;AAAA,UAAM;AAACU,MAAAA;AAAD,KAAN;AAAA,UAAoBV,KAApB;;AACA,UAAMW,KAAK,GAAGd,eAAMe,QAAN,CAAeC,IAAf,CAAoBH,QAApB,CAAd;;AAEA,WAAOR,IAAI,GAAGL,eAAMiB,YAAN,CAAmBH,KAAnB,EAA0BX,KAA1B,CAAH,GAAsCW,KAAjD;AACD;;AA/BmC;;AAAhCf,O,CACGmB,S,2CAAY;AACjBL,EAAAA,QAAQ,EAAEM,mBAAUC;AADH,C;eAiCNrB,O","sourcesContent":["import React from 'react';\nimport PropTypes from 'prop-types';\n\nexport const safeCancelAnimationFrame = requestId => requestId && cancelAnimationFrame(requestId);\n\nclass Swapper extends React.Component {\n static propTypes = {\n children: PropTypes.node\n };\n\n constructor(props) {\n super(props);\n\n this.state = {\n init: true\n };\n }\n\n componentDidMount() {\n if (typeof requestAnimationFrame !== 'undefined') {\n this.requestID = requestAnimationFrame(() => this.setState({init: false}));\n }\n }\n\n componentWillUnmount() {\n if (this.requestID !== undefined) {\n safeCancelAnimationFrame(this.requestID);\n }\n }\n\n render() {\n const {init} = this.state;\n const {children, ...props} = this.props;\n const child = React.Children.only(children);\n\n return init ? React.cloneElement(child, props) : child;\n }\n}\n\nexport default Swapper;\n"],"file":"index.js"}
1
+ {"version":3,"sources":["../../../src/hoc/swapper/index.js"],"names":["safeCancelAnimationFrame","requestId","cancelAnimationFrame","Swapper","React","Component","constructor","props","state","init","componentDidMount","requestAnimationFrame","requestID","setState","componentWillUnmount","undefined","render","children","child","Children","only","cloneElement","propTypes","PropTypes","node"],"mappings":";;;;;AAAA;;AACA;;;;;;;;AAEO,MAAMA,wBAAwB,GAAGC,SAAS,IAAIA,SAAS,IAAIC,oBAAoB,CAACD,SAAD,CAA/E;;;;AAEP,MAAME,OAAN,SAAsBC,eAAMC,SAA5B,CAAsC;AAKpCC,EAAAA,WAAW,CAACC,KAAD,EAAQ;AACjB,UAAMA,KAAN;AAEA,SAAKC,KAAL,GAAa;AACXC,MAAAA,IAAI,EAAE;AADK,KAAb;AAGD;;AAEDC,EAAAA,iBAAiB,GAAG;AAClB,QAAI,OAAOC,qBAAP,KAAiC,WAArC,EAAkD;AAChD,WAAKC,SAAL,GAAiBD,qBAAqB,CAAC,MAAM,KAAKE,QAAL,CAAc;AAACJ,QAAAA,IAAI,EAAE;AAAP,OAAd,CAAP,CAAtC;AACD;AACF;;AAEDK,EAAAA,oBAAoB,GAAG;AACrB,QAAI,KAAKF,SAAL,KAAmBG,SAAvB,EAAkC;AAChCf,MAAAA,wBAAwB,CAAC,KAAKY,SAAN,CAAxB;AACD;AACF;;AAEDI,EAAAA,MAAM,GAAG;AACP,UAAM;AAACP,MAAAA;AAAD,QAAS,KAAKD,KAApB;;AACA,wBAA6B,KAAKD,KAAlC;AAAA,UAAM;AAACU,MAAAA;AAAD,KAAN;AAAA,UAAoBV,KAApB;;AACA,UAAMW,KAAK,GAAGd,eAAMe,QAAN,CAAeC,IAAf,CAAoBH,QAApB,CAAd;;AAEA,WAAOR,IAAI,gBAAGL,eAAMiB,YAAN,CAAmBH,KAAnB,EAA0BX,KAA1B,CAAH,GAAsCW,KAAjD;AACD;;AA/BmC;;AAAhCf,O,CACGmB,S,2CAAY;AACjBL,EAAAA,QAAQ,EAAEM,mBAAUC;AADH,C;eAiCNrB,O","sourcesContent":["import React from 'react';\nimport PropTypes from 'prop-types';\n\nexport const safeCancelAnimationFrame = requestId => requestId && cancelAnimationFrame(requestId);\n\nclass Swapper extends React.Component {\n static propTypes = {\n children: PropTypes.node\n };\n\n constructor(props) {\n super(props);\n\n this.state = {\n init: true\n };\n }\n\n componentDidMount() {\n if (typeof requestAnimationFrame !== 'undefined') {\n this.requestID = requestAnimationFrame(() => this.setState({init: false}));\n }\n }\n\n componentWillUnmount() {\n if (this.requestID !== undefined) {\n safeCancelAnimationFrame(this.requestID);\n }\n }\n\n render() {\n const {init} = this.state;\n const {children, ...props} = this.props;\n const child = React.Children.only(children);\n\n return init ? React.cloneElement(child, props) : child;\n }\n}\n\nexport default Swapper;\n"],"file":"index.js"}
@@ -12,9 +12,9 @@ var _enzymeAdapterReact = _interopRequireDefault(require("enzyme-adapter-react-1
12
12
 
13
13
  var _ = _interopRequireWildcard(require(".."));
14
14
 
15
- function _getRequireWildcardCache() { if (typeof WeakMap !== "function") return null; var cache = new WeakMap(); _getRequireWildcardCache = function () { return cache; }; return cache; }
15
+ function _getRequireWildcardCache(nodeInterop) { if (typeof WeakMap !== "function") return null; var cacheBabelInterop = new WeakMap(); var cacheNodeInterop = new WeakMap(); return (_getRequireWildcardCache = function (nodeInterop) { return nodeInterop ? cacheNodeInterop : cacheBabelInterop; })(nodeInterop); }
16
16
 
17
- function _interopRequireWildcard(obj) { if (obj && obj.__esModule) { return obj; } if (obj === null || typeof obj !== "object" && typeof obj !== "function") { return { default: obj }; } var cache = _getRequireWildcardCache(); if (cache && cache.has(obj)) { return cache.get(obj); } var newObj = {}; var hasPropertyDescriptor = Object.defineProperty && Object.getOwnPropertyDescriptor; for (var key in obj) { if (Object.prototype.hasOwnProperty.call(obj, key)) { var desc = hasPropertyDescriptor ? Object.getOwnPropertyDescriptor(obj, key) : null; if (desc && (desc.get || desc.set)) { Object.defineProperty(newObj, key, desc); } else { newObj[key] = obj[key]; } } } newObj.default = obj; if (cache) { cache.set(obj, newObj); } return newObj; }
17
+ function _interopRequireWildcard(obj, nodeInterop) { if (!nodeInterop && obj && obj.__esModule) { return obj; } if (obj === null || typeof obj !== "object" && typeof obj !== "function") { return { default: obj }; } var cache = _getRequireWildcardCache(nodeInterop); if (cache && cache.has(obj)) { return cache.get(obj); } var newObj = {}; var hasPropertyDescriptor = Object.defineProperty && Object.getOwnPropertyDescriptor; for (var key in obj) { if (key !== "default" && Object.prototype.hasOwnProperty.call(obj, key)) { var desc = hasPropertyDescriptor ? Object.getOwnPropertyDescriptor(obj, key) : null; if (desc && (desc.get || desc.set)) { Object.defineProperty(newObj, key, desc); } else { newObj[key] = obj[key]; } } } newObj.default = obj; if (cache) { cache.set(obj, newObj); } return newObj; }
18
18
 
19
19
  function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }
20
20
 
@@ -11,9 +11,9 @@ var _propTypes = _interopRequireDefault(require("prop-types"));
11
11
 
12
12
  var _classnames = _interopRequireDefault(require("classnames"));
13
13
 
14
- function _getRequireWildcardCache() { if (typeof WeakMap !== "function") return null; var cache = new WeakMap(); _getRequireWildcardCache = function () { return cache; }; return cache; }
14
+ function _getRequireWildcardCache(nodeInterop) { if (typeof WeakMap !== "function") return null; var cacheBabelInterop = new WeakMap(); var cacheNodeInterop = new WeakMap(); return (_getRequireWildcardCache = function (nodeInterop) { return nodeInterop ? cacheNodeInterop : cacheBabelInterop; })(nodeInterop); }
15
15
 
16
- function _interopRequireWildcard(obj) { if (obj && obj.__esModule) { return obj; } if (obj === null || typeof obj !== "object" && typeof obj !== "function") { return { default: obj }; } var cache = _getRequireWildcardCache(); if (cache && cache.has(obj)) { return cache.get(obj); } var newObj = {}; var hasPropertyDescriptor = Object.defineProperty && Object.getOwnPropertyDescriptor; for (var key in obj) { if (Object.prototype.hasOwnProperty.call(obj, key)) { var desc = hasPropertyDescriptor ? Object.getOwnPropertyDescriptor(obj, key) : null; if (desc && (desc.get || desc.set)) { Object.defineProperty(newObj, key, desc); } else { newObj[key] = obj[key]; } } } newObj.default = obj; if (cache) { cache.set(obj, newObj); } return newObj; }
16
+ function _interopRequireWildcard(obj, nodeInterop) { if (!nodeInterop && obj && obj.__esModule) { return obj; } if (obj === null || typeof obj !== "object" && typeof obj !== "function") { return { default: obj }; } var cache = _getRequireWildcardCache(nodeInterop); if (cache && cache.has(obj)) { return cache.get(obj); } var newObj = {}; var hasPropertyDescriptor = Object.defineProperty && Object.getOwnPropertyDescriptor; for (var key in obj) { if (key !== "default" && Object.prototype.hasOwnProperty.call(obj, key)) { var desc = hasPropertyDescriptor ? Object.getOwnPropertyDescriptor(obj, key) : null; if (desc && (desc.get || desc.set)) { Object.defineProperty(newObj, key, desc); } else { newObj[key] = obj[key]; } } } newObj.default = obj; if (cache) { cache.set(obj, newObj); } return newObj; }
17
17
 
18
18
  function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }
19
19
 
@@ -38,7 +38,7 @@ const Transition = props => {
38
38
  const handlerAnimationEnd = (0, _react.useMemo)(() => () => {
39
39
  return onAnimationEnd(name);
40
40
  }, []);
41
- return _react.default.cloneElement(child, {
41
+ return /*#__PURE__*/_react.default.cloneElement(child, {
42
42
  className: (0, _classnames.default)(propClassName, className),
43
43
  onTransitionEnd: handlerAnimationEnd,
44
44
  onAnimationEnd: handlerAnimationEnd
@@ -1 +1 @@
1
- {"version":3,"sources":["../../../src/hoc/transition/index.js"],"names":["Transition","props","name","children","className","animated","onAnimationEnd","Child","child","propClassName","handlerAnimationEnd","React","cloneElement","onTransitionEnd","Children","map","propTypes","PropTypes","string","isRequired","func","bool"],"mappings":";;;;;;;AAAA;;AAEA;;AACA;;;;;;;;AAEA,MAAMA,UAAU,GAAGC,KAAK,IAAI;AAC1B,QAAM;AAACC,IAAAA,IAAD;AAAOC,IAAAA,QAAP;AAAiBC,IAAAA,SAAjB;AAA4BC,IAAAA,QAA5B;AAAsCC,IAAAA,cAAc;AAApD,MAA+DL,KAArE;AAEA,MAAI,CAACI,QAAL,EAAe,OAAOF,QAAP;;AAEf,QAAMI,KAAK,GAAG,CAAC;AAACC,IAAAA;AAAD,GAAD,KAAa;AACzB,UAAM;AACJP,MAAAA,KAAK,EAAE;AAACG,QAAAA,SAAS,EAAEK;AAAZ;AADH,QAEFD,KAFJ;AAIA,UAAME,mBAAmB,GAAG,oBAC1B,MAAM,MAAM;AACV,aAAOJ,cAAc,CAACJ,IAAD,CAArB;AACD,KAHyB,EAI1B,EAJ0B,CAA5B;AAOA,WAAOS,eAAMC,YAAN,CAAmBJ,KAAnB,EAA0B;AAC/BJ,MAAAA,SAAS,EAAE,yBAAWK,aAAX,EAA0BL,SAA1B,CADoB;AAE/BS,MAAAA,eAAe,EAAEH,mBAFc;AAG/BJ,MAAAA,cAAc,EAAEI;AAHe,KAA1B,CAAP;AAKD,GAjBD;;AAmBA,SAAOC,eAAMG,QAAN,CAAeC,GAAf,CAAmBZ,QAAnB,EAA6BK,KAAK,iBAAI,6BAAC,KAAD;AAAO,IAAA,KAAK,EAAEA;AAAd,IAAtC,CAAP;AACD,CAzBD;;AA2BAR,UAAU,CAACgB,SAAX,2CAAuB;AACrBd,EAAAA,IAAI,EAAEe,mBAAUC,MAAV,CAAiBC,UADF;AAErBb,EAAAA,cAAc,EAAEW,mBAAUG,IAFL;AAGrBf,EAAAA,QAAQ,EAAEY,mBAAUI;AAHC,CAAvB;eAMerB,U","sourcesContent":["import React, {useMemo} from 'react';\nimport {noop} from 'lodash/fp';\nimport PropTypes from 'prop-types';\nimport classnames from 'classnames';\n\nconst Transition = props => {\n const {name, children, className, animated, onAnimationEnd = noop} = props;\n\n if (!animated) return children;\n\n const Child = ({child}) => {\n const {\n props: {className: propClassName}\n } = child;\n\n const handlerAnimationEnd = useMemo(\n () => () => {\n return onAnimationEnd(name);\n },\n []\n );\n\n return React.cloneElement(child, {\n className: classnames(propClassName, className),\n onTransitionEnd: handlerAnimationEnd,\n onAnimationEnd: handlerAnimationEnd\n });\n };\n\n return React.Children.map(children, child => <Child child={child} />);\n};\n\nTransition.propTypes = {\n name: PropTypes.string.isRequired,\n onAnimationEnd: PropTypes.func,\n animated: PropTypes.bool\n};\n\nexport default Transition;\n"],"file":"index.js"}
1
+ {"version":3,"sources":["../../../src/hoc/transition/index.js"],"names":["Transition","props","name","children","className","animated","onAnimationEnd","Child","child","propClassName","handlerAnimationEnd","React","cloneElement","onTransitionEnd","Children","map","propTypes","PropTypes","string","isRequired","func","bool"],"mappings":";;;;;;;AAAA;;AAEA;;AACA;;;;;;;;AAEA,MAAMA,UAAU,GAAGC,KAAK,IAAI;AAC1B,QAAM;AAACC,IAAAA,IAAD;AAAOC,IAAAA,QAAP;AAAiBC,IAAAA,SAAjB;AAA4BC,IAAAA,QAA5B;AAAsCC,IAAAA,cAAc;AAApD,MAA+DL,KAArE;AAEA,MAAI,CAACI,QAAL,EAAe,OAAOF,QAAP;;AAEf,QAAMI,KAAK,GAAG,CAAC;AAACC,IAAAA;AAAD,GAAD,KAAa;AACzB,UAAM;AACJP,MAAAA,KAAK,EAAE;AAACG,QAAAA,SAAS,EAAEK;AAAZ;AADH,QAEFD,KAFJ;AAIA,UAAME,mBAAmB,GAAG,oBAC1B,MAAM,MAAM;AACV,aAAOJ,cAAc,CAACJ,IAAD,CAArB;AACD,KAHyB,EAI1B,EAJ0B,CAA5B;AAOA,wBAAOS,eAAMC,YAAN,CAAmBJ,KAAnB,EAA0B;AAC/BJ,MAAAA,SAAS,EAAE,yBAAWK,aAAX,EAA0BL,SAA1B,CADoB;AAE/BS,MAAAA,eAAe,EAAEH,mBAFc;AAG/BJ,MAAAA,cAAc,EAAEI;AAHe,KAA1B,CAAP;AAKD,GAjBD;;AAmBA,SAAOC,eAAMG,QAAN,CAAeC,GAAf,CAAmBZ,QAAnB,EAA6BK,KAAK,iBAAI,6BAAC,KAAD;AAAO,IAAA,KAAK,EAAEA;AAAd,IAAtC,CAAP;AACD,CAzBD;;AA2BAR,UAAU,CAACgB,SAAX,2CAAuB;AACrBd,EAAAA,IAAI,EAAEe,mBAAUC,MAAV,CAAiBC,UADF;AAErBb,EAAAA,cAAc,EAAEW,mBAAUG,IAFL;AAGrBf,EAAAA,QAAQ,EAAEY,mBAAUI;AAHC,CAAvB;eAMerB,U","sourcesContent":["import React, {useMemo} from 'react';\nimport {noop} from 'lodash/fp';\nimport PropTypes from 'prop-types';\nimport classnames from 'classnames';\n\nconst Transition = props => {\n const {name, children, className, animated, onAnimationEnd = noop} = props;\n\n if (!animated) return children;\n\n const Child = ({child}) => {\n const {\n props: {className: propClassName}\n } = child;\n\n const handlerAnimationEnd = useMemo(\n () => () => {\n return onAnimationEnd(name);\n },\n []\n );\n\n return React.cloneElement(child, {\n className: classnames(propClassName, className),\n onTransitionEnd: handlerAnimationEnd,\n onAnimationEnd: handlerAnimationEnd\n });\n };\n\n return React.Children.map(children, child => <Child child={child} />);\n};\n\nTransition.propTypes = {\n name: PropTypes.string.isRequired,\n onAnimationEnd: PropTypes.func,\n animated: PropTypes.bool\n};\n\nexport default Transition;\n"],"file":"index.js"}
@@ -1,7 +1,7 @@
1
1
  "use strict";
2
2
 
3
3
  exports.__esModule = true;
4
- exports.default = exports.AddToMyListFeedback = exports.AddToMyListStatusProvider = void 0;
4
+ exports.default = exports.AddToMyListStatusProvider = exports.AddToMyListFeedback = void 0;
5
5
 
6
6
  var _react = _interopRequireWildcard(require("react"));
7
7
 
@@ -17,16 +17,16 @@ var _style = _interopRequireDefault(require("./style.css"));
17
17
 
18
18
  function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }
19
19
 
20
- function _getRequireWildcardCache() { if (typeof WeakMap !== "function") return null; var cache = new WeakMap(); _getRequireWildcardCache = function () { return cache; }; return cache; }
20
+ function _getRequireWildcardCache(nodeInterop) { if (typeof WeakMap !== "function") return null; var cacheBabelInterop = new WeakMap(); var cacheNodeInterop = new WeakMap(); return (_getRequireWildcardCache = function (nodeInterop) { return nodeInterop ? cacheNodeInterop : cacheBabelInterop; })(nodeInterop); }
21
21
 
22
- function _interopRequireWildcard(obj) { if (obj && obj.__esModule) { return obj; } if (obj === null || typeof obj !== "object" && typeof obj !== "function") { return { default: obj }; } var cache = _getRequireWildcardCache(); if (cache && cache.has(obj)) { return cache.get(obj); } var newObj = {}; var hasPropertyDescriptor = Object.defineProperty && Object.getOwnPropertyDescriptor; for (var key in obj) { if (Object.prototype.hasOwnProperty.call(obj, key)) { var desc = hasPropertyDescriptor ? Object.getOwnPropertyDescriptor(obj, key) : null; if (desc && (desc.get || desc.set)) { Object.defineProperty(newObj, key, desc); } else { newObj[key] = obj[key]; } } } newObj.default = obj; if (cache) { cache.set(obj, newObj); } return newObj; }
22
+ function _interopRequireWildcard(obj, nodeInterop) { if (!nodeInterop && obj && obj.__esModule) { return obj; } if (obj === null || typeof obj !== "object" && typeof obj !== "function") { return { default: obj }; } var cache = _getRequireWildcardCache(nodeInterop); if (cache && cache.has(obj)) { return cache.get(obj); } var newObj = {}; var hasPropertyDescriptor = Object.defineProperty && Object.getOwnPropertyDescriptor; for (var key in obj) { if (key !== "default" && Object.prototype.hasOwnProperty.call(obj, key)) { var desc = hasPropertyDescriptor ? Object.getOwnPropertyDescriptor(obj, key) : null; if (desc && (desc.get || desc.set)) { Object.defineProperty(newObj, key, desc); } else { newObj[key] = obj[key]; } } } newObj.default = obj; if (cache) { cache.set(obj, newObj); } return newObj; }
23
23
 
24
24
  const ADD_TO_MY_LIST_STATUS = {
25
25
  IDLE: 'IDLE',
26
26
  SUCCESS: 'SUCCESS'
27
27
  };
28
28
 
29
- const StatusContext = _react.default.createContext(ADD_TO_MY_LIST_STATUS.IDLE);
29
+ const StatusContext = /*#__PURE__*/_react.default.createContext(ADD_TO_MY_LIST_STATUS.IDLE);
30
30
 
31
31
  const AddToMyListStatusProvider = ({
32
32
  children
@@ -1 +1 @@
1
- {"version":3,"sources":["../../../src/molecule/add-to-my-list/index.js"],"names":["ADD_TO_MY_LIST_STATUS","IDLE","SUCCESS","StatusContext","React","createContext","AddToMyListStatusProvider","children","status","setStatus","timeoutId","DURATION","setTimeout","clearTimeout","AddToMyListFeedback","addToMyListText","removeFromMyListText","favorite","styles","feedback","checkIcon","AddToMyList","style","addToMyListButton","onFavoriteClick","cb","onClick","container","cta","wrapper","shareIcon","propTypes","PropTypes","node","string","bool","func"],"mappings":";;;;;AAAA;;AACA;;AACA;;AACA;;AAIA;;AACA;;;;;;;;AAEA,MAAMA,qBAAqB,GAAG;AAC5BC,EAAAA,IAAI,EAAE,MADsB;AAE5BC,EAAAA,OAAO,EAAE;AAFmB,CAA9B;;AAKA,MAAMC,aAAa,GAAGC,eAAMC,aAAN,CAAoBL,qBAAqB,CAACC,IAA1C,CAAtB;;AAEO,MAAMK,yBAAyB,GAAG,CAAC;AAACC,EAAAA;AAAD,CAAD,KAAgB;AACvD,QAAM,CAACC,MAAD,EAASC,SAAT,IAAsB,qBAAST,qBAAqB,CAACC,IAA/B,CAA5B;AACA,wBAAU,MAAM;AACd,QAAIS,SAAJ;AACA,UAAMC,QAAQ,GAAG,IAAjB;;AACA,QAAIH,MAAM,KAAKR,qBAAqB,CAACC,IAArC,EAA2C;AACzCS,MAAAA,SAAS,GAAGE,UAAU,CAAC,MAA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AM,iBAAW,uBAAjB;AAA0C,IAAA,OAAO,EAAEI,OAAnD;AAA4D,IAAA,SAAS,EAAER,eAAOU;AAA9E,kBACE;AAAK,IAAA,SAAS,EAAEV,eAAOW;AAAvB,KACGZ,QAAQ,gBACP,6BAAC,2CAAD;AAAW,IAAA,SAAS,EAAEC,eAAOY,SAA7B;AAAwC,IAAA,KAAK,EAAE,EAA/C;AAAmD,IAAA,MAAM,EAAE;AAA3D,IADO,gBAGP,6BAAC,wCAAD;AAAU,IAAA,SAAS,EAAEZ,eAAOY,SAA5B;AAAuC,IAAA,KAAK,EAAE,EAA9C;AAAkD,IAAA,MAAM,EAAE;AAA1D,IAJJ,eAME,wCAAIP,iBAAJ,CANF,CADF,CADF,CADF;AAcD,CAtBD;;AAwBAjB,yBAAyB,CAACyB,SAA1B,2CAAsC;AACpCxB,EAAAA,QAAQ,EAAEyB,mBAAUC;AADgB,CAAtC;AAIAnB,mBAAmB,CAACiB,SAApB,2CAAgC;AAC9BhB,EAAAA,eAAe,EAAEiB,mBAAUE,MADG;AAE9BlB,EAAAA,oBAAoB,EAAEgB,mBAAUE,MAFF;AAG9BjB,EAAAA,QAAQ,EAAEe,mBAAUG;AAHU,CAAhC;AAMAd,WAAW,CAACU,SAAZ,2CAAwB;AACtBT,EAAAA,KAAK,EAAEU,mBAAUE,MADK;AAEtBX,EAAAA,iBAAiB,EAAES,mBAAUE,MAFP;AAGtBjB,EAAAA,QAAQ,EAAEe,mBAAUG,IAHE;AAItBX,EAAAA,eAAe,EAAEQ,mBAAUI;AAJL,CAAxB;eAOef,W","sourcesContent":["import React, {useState, useContext, useEffect} from 'react';\nimport PropTypes from 'prop-types';\nimport classnames from 'classnames';\nimport {\n NovaCompositionCoorpacademyCheck as CheckIcon,\n NovaCompositionNavigationMore as MoreIcon\n} from '@coorpacademy/nova-icons';\nimport Link from '../../atom/link';\nimport styles from './style.css';\n\nconst ADD_TO_MY_LIST_STATUS = {\n IDLE: 'IDLE',\n SUCCESS: 'SUCCESS'\n};\n\nconst StatusContext = React.createContext(ADD_TO_MY_LIST_STATUS.IDLE);\n\nexport const AddToMyListStatusProvider = ({children}) => {\n const [status, setStatus] = useState(ADD_TO_MY_LIST_STATUS.IDLE);\n useEffect(() => {\n let timeoutId;\n const DURATION = 3000;\n if (status !== ADD_TO_MY_LIST_STATUS.IDLE) {\n timeoutId = setTimeout(() => setStatus(ADD_TO_MY_LIST_STATUS.IDLE), DURATION);\n }\n return () => clearTimeout(timeoutId);\n }, [status]);\n return <StatusContext.Provider value={[status, setStatus]}>{children}</StatusContext.Provider>;\n};\n\nexport const AddToMyListFeedback = ({addToMyListText, removeFromMyListText, favorite}) => {\n const [status] = useContext(StatusContext);\n if (status === ADD_TO_MY_LIST_STATUS.IDLE) return null;\n\n return (\n <div className={classnames(styles.feedback)} data-name={'add-to-my-list-feedback'}>\n <CheckIcon className={styles.checkIcon} width={13} height={13} />\n <p>{favorite ? addToMyListText : removeFromMyListText}</p>\n </div>\n );\n};\n\nconst AddToMyList = ({style, addToMyListButton, favorite, onFavoriteClick}) => {\n const [, setStatus] = useContext(StatusContext);\n const cb = () => setStatus(ADD_TO_MY_LIST_STATUS.SUCCESS);\n\n function onClick() {\n onFavoriteClick(cb);\n }\n\n return (\n <div className={(styles.container, style)}>\n <Link data-name={'add-to-my-list-button'} onClick={onClick} className={styles.cta}>\n <div className={styles.wrapper}>\n {favorite ? (\n <CheckIcon className={styles.shareIcon} width={15} height={15} />\n ) : (\n <MoreIcon className={styles.shareIcon} width={12} height={12} />\n )}\n <p>{addToMyListButton}</p>\n </div>\n </Link>\n </div>\n );\n};\n\nAddToMyListStatusProvider.propTypes = {\n children: PropTypes.node\n};\n\nAddToMyListFeedback.propTypes = {\n addToMyListText: PropTypes.string,\n removeFromMyListText: PropTypes.string,\n favorite: PropTypes.bool\n};\n\nAddToMyList.propTypes = {\n style: PropTypes.string,\n addToMyListButton: PropTypes.string,\n favorite: PropTypes.bool,\n onFavoriteClick: PropTypes.func\n};\n\nexport default AddToMyList;\n"],"file":"index.js"}
1
+ {"version":3,"sources":["../../../src/molecule/add-to-my-list/index.js"],"names":["ADD_TO_MY_LIST_STATUS","IDLE","SUCCESS","StatusContext","React","createContext","AddToMyListStatusProvider","children","status","setStatus","timeoutId","DURATION","setTimeout","clearTimeout","AddToMyListFeedback","addToMyListText","removeFromMyListText","favorite","styles","feedback","checkIcon","AddToMyList","style","addToMyListButton","onFavoriteClick","cb","onClick","container","cta","wrapper","shareIcon","propTypes","PropTypes","node","string","bool","func"],"mappings":";;;;;AAAA;;AACA;;AACA;;AACA;;AAIA;;AACA;;;;;;;;AAEA,MAAMA,qBAAqB,GAAG;AAC5BC,EAAAA,IAAI,EAAE,MADsB;AAE5BC,EAAAA,OAAO,EAAE;AAFmB,CAA9B;;AAKA,MAAMC,aAAa,gBAAGC,eAAMC,aAAN,CAAoBL,qBAAqB,CAACC,IAA1C,CAAtB;;AAEO,MAAMK,yBAAyB,GAAG,CAAC;AAACC,EAAAA;AAAD,CAAD,KAAgB;AACvD,QAAM,CAACC,MAAD,EAASC,SAAT,IAAsB,qBAAST,qBAAqB,CAACC,IAA/B,CAA5B;AACA,wBAAU,MAAM;AACd,QAAIS,SAAJ;AACA,UAAMC,QAAQ,GAAG,IAAjB;;AACA,QAAIH,MAAM,KAAKR,qBAAqB,CAACC,IAArC,EAA2C;AACzCS,MAAAA,SAAS,GAAGE,UAAU,CAAC,MAAMH,SAAS,CAACT,qBAAqB,CAACC,IAAvB,CAAhB,EAA8CU,QAA9C,CAAtB;AACD;;AACD,WAAO,MAAME,YAAY,CAACH,SAAD,CAAzB;AACD,GAPD,EAOG,CAACF,MAAD,CAPH;AAQA,sBAAO,6BAAC,aAAD,CAAe,QAAf;AAAwB,IAAA,KAAK,EAAE,CAACA,MAAD,EAASC,SAAT;AAA/B,KAAqDF,QAArD,CAAP;AACD,CAXM;;;;AAaA,MAAMO,mBAAmB,GAAG,CAAC;AAACC,EAAAA,eAAD;AAAkBC,EAAAA,oBAAl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AA,KAAK,EAAE,EAA9C;AAAkD,IAAA,MAAM,EAAE;AAA1D,IAJJ,eAME,wCAAIP,iBAAJ,CANF,CADF,CADF,CADF;AAcD,CAtBD;;AAwBAjB,yBAAyB,CAACyB,SAA1B,2CAAsC;AACpCxB,EAAAA,QAAQ,EAAEyB,mBAAUC;AADgB,CAAtC;AAIAnB,mBAAmB,CAACiB,SAApB,2CAAgC;AAC9BhB,EAAAA,eAAe,EAAEiB,mBAAUE,MADG;AAE9BlB,EAAAA,oBAAoB,EAAEgB,mBAAUE,MAFF;AAG9BjB,EAAAA,QAAQ,EAAEe,mBAAUG;AAHU,CAAhC;AAMAd,WAAW,CAACU,SAAZ,2CAAwB;AACtBT,EAAAA,KAAK,EAAEU,mBAAUE,MADK;AAEtBX,EAAAA,iBAAiB,EAAES,mBAAUE,MAFP;AAGtBjB,EAAAA,QAAQ,EAAEe,mBAAUG,IAHE;AAItBX,EAAAA,eAAe,EAAEQ,mBAAUI;AAJL,CAAxB;eAOef,W","sourcesContent":["import React, {useState, useContext, useEffect} from 'react';\nimport PropTypes from 'prop-types';\nimport classnames from 'classnames';\nimport {\n NovaCompositionCoorpacademyCheck as CheckIcon,\n NovaCompositionNavigationMore as MoreIcon\n} from '@coorpacademy/nova-icons';\nimport Link from '../../atom/link';\nimport styles from './style.css';\n\nconst ADD_TO_MY_LIST_STATUS = {\n IDLE: 'IDLE',\n SUCCESS: 'SUCCESS'\n};\n\nconst StatusContext = React.createContext(ADD_TO_MY_LIST_STATUS.IDLE);\n\nexport const AddToMyListStatusProvider = ({children}) => {\n const [status, setStatus] = useState(ADD_TO_MY_LIST_STATUS.IDLE);\n useEffect(() => {\n let timeoutId;\n const DURATION = 3000;\n if (status !== ADD_TO_MY_LIST_STATUS.IDLE) {\n timeoutId = setTimeout(() => setStatus(ADD_TO_MY_LIST_STATUS.IDLE), DURATION);\n }\n return () => clearTimeout(timeoutId);\n }, [status]);\n return <StatusContext.Provider value={[status, setStatus]}>{children}</StatusContext.Provider>;\n};\n\nexport const AddToMyListFeedback = ({addToMyListText, removeFromMyListText, favorite}) => {\n const [status] = useContext(StatusContext);\n if (status === ADD_TO_MY_LIST_STATUS.IDLE) return null;\n\n return (\n <div className={classnames(styles.feedback)} data-name={'add-to-my-list-feedback'}>\n <CheckIcon className={styles.checkIcon} width={13} height={13} />\n <p>{favorite ? addToMyListText : removeFromMyListText}</p>\n </div>\n );\n};\n\nconst AddToMyList = ({style, addToMyListButton, favorite, onFavoriteClick}) => {\n const [, setStatus] = useContext(StatusContext);\n const cb = () => setStatus(ADD_TO_MY_LIST_STATUS.SUCCESS);\n\n function onClick() {\n onFavoriteClick(cb);\n }\n\n return (\n <div className={(styles.container, style)}>\n <Link data-name={'add-to-my-list-button'} onClick={onClick} className={styles.cta}>\n <div className={styles.wrapper}>\n {favorite ? (\n <CheckIcon className={styles.shareIcon} width={15} height={15} />\n ) : (\n <MoreIcon className={styles.shareIcon} width={12} height={12} />\n )}\n <p>{addToMyListButton}</p>\n </div>\n </Link>\n </div>\n );\n};\n\nAddToMyListStatusProvider.propTypes = {\n children: PropTypes.node\n};\n\nAddToMyListFeedback.propTypes = {\n addToMyListText: PropTypes.string,\n removeFromMyListText: PropTypes.string,\n favorite: PropTypes.bool\n};\n\nAddToMyList.propTypes = {\n style: PropTypes.string,\n addToMyListButton: PropTypes.string,\n favorite: PropTypes.bool,\n onFavoriteClick: PropTypes.func\n};\n\nexport default AddToMyList;\n"],"file":"index.js"}
@@ -1,7 +1,7 @@
1
1
  "use strict";
2
2
 
3
3
  exports.__esModule = true;
4
- exports.default = exports.TYPE_AUDIO = exports.TYPE_VIDEO = exports.TYPE_IMAGE = void 0;
4
+ exports.default = exports.TYPE_VIDEO = exports.TYPE_IMAGE = exports.TYPE_AUDIO = void 0;
5
5
 
6
6
  var _omit2 = _interopRequireDefault(require("lodash/fp/omit"));
7
7
 
@@ -29,6 +29,8 @@ var _audio = _interopRequireDefault(require("../audio"));
29
29
 
30
30
  var _style = _interopRequireDefault(require("./style.css"));
31
31
 
32
+ const _excluded = ["videoId", "type"];
33
+
32
34
  function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }
33
35
 
34
36
  function _extends() { _extends = Object.assign || function (target) { for (var i = 1; i < arguments.length; i++) { var source = arguments[i]; for (var key in source) { if (Object.prototype.hasOwnProperty.call(source, key)) { target[key] = source[key]; } } } return target; }; return _extends.apply(this, arguments); }
@@ -49,7 +51,7 @@ const MediaView = ({
49
51
  videoId,
50
52
  type
51
53
  } = media,
52
- childProps = _objectWithoutPropertiesLoose(media, ["videoId", "type"]);
54
+ childProps = _objectWithoutPropertiesLoose(media, _excluded);
53
55
 
54
56
  switch (type) {
55
57
  case TYPE_IMAGE:
@@ -83,7 +85,7 @@ const MediaView = ({
83
85
  };
84
86
 
85
87
  const isType = process.env.NODE_ENV !== "production" ? name => _propTypes.default.oneOf([name]) : {};
86
- const videoPropType = process.env.NODE_ENV !== "production" ? _propTypes.default.shape(_extends(_extends({}, _videoPlayer.default.propTypes), {}, {
88
+ const videoPropType = process.env.NODE_ENV !== "production" ? _propTypes.default.shape(_extends({}, _videoPlayer.default.propTypes, {
87
89
  type: isType(TYPE_VIDEO).isRequired
88
90
  })) : {};
89
91
  const imgPropType = process.env.NODE_ENV !== "production" ? _propTypes.default.shape({
@@ -1 +1 @@
1
- {"version":3,"sources":["../../../src/molecule/answer/index.js"],"names":["TYPE_IMAGE","TYPE_VIDEO","TYPE_AUDIO","MediaView","media","videoId","type","childProps","style","backgroundImage","url","video","audio","isType","name","PropTypes","oneOf","videoPropType","shape","VideoPlayer","propTypes","isRequired","imgPropType","string","audioPropType","mediaUrl","oneOfType","Answer","props","model","help","buildAnswer","answerView","wrapper"],"mappings":";;;;;;;AAAA;;AACA;;AAEA;;AACA;;AACA;;AACA;;AACA;;AACA;;AACA;;AACA;;AACA;;AACA;;;;;;;;AAEO,MAAMA,UAAU,GAAG,KAAnB;;AACA,MAAMC,UAAU,GAAG,OAAnB;;AACA,MAAM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EAAErB,eAAMyB;AAAzC,KACG7B,KAAK,gBAAG,6BAAC,SAAD;AAAW,IAAA,KAAK,EAAEA;AAAlB,IAAH,GAAiC,IADzC,EAEG4B,UAFH,CADF;AAMD,CA9BD;;AAgCAL,MAAM,CAACP,SAAP,2CAAmB;AACjBS,EAAAA,KAAK,EAAEd,mBAAUG,KAAV,CAAgB;AACrBZ,IAAAA,IAAI,EAAES,mBAAUC,KAAV,CAAgB,CACpB,SADoB,EAEpB,KAFoB,EAGpB,YAHoB,EAIpB,UAJoB,EAKpB,UALoB,EAMpB,QANoB,EAOpB,UAPoB,CAAhB,EAQHK;AATkB,GAAhB,CADU;AAYjBS,EAAAA,IAAI,EAAEf,mBAAUQ,MAZC;AAajBnB,EAAAA,KAAK,EAAED,SAAS,CAACiB,SAAV,CAAoBhB;AAbV,CAAnB;eAgBeuB,M","sourcesContent":["import React from 'react';\nimport PropTypes from 'prop-types';\nimport {omit} from 'lodash/fp';\nimport VideoPlayer from '../video-player';\nimport DropDown from '../questions/drop-down';\nimport FreeText from '../questions/free-text';\nimport QcmDrag from '../questions/qcm-drag';\nimport Qcm from '../questions/qcm';\nimport QcmGraphic from '../questions/qcm-graphic';\nimport QuestionRange from '../questions/question-range';\nimport Template from '../questions/template';\nimport Audio from '../audio';\nimport style from './style.css';\n\nexport const TYPE_IMAGE = 'img';\nexport const TYPE_VIDEO = 'video';\nexport const TYPE_AUDIO = 'audio';\n\nconst MediaView = ({media}) => {\n const {videoId, type, ...childProps} = media;\n switch (type) {\n case TYPE_IMAGE:\n return (\n <div\n className={style.media}\n style={{\n backgroundImage: `url(${media.url})`\n }}\n />\n );\n case TYPE_VIDEO:\n return (\n <div className={style.video}>\n <VideoPlayer {...omit('id', childProps)} id={videoId} height=\"100%\" width=\"100%\" />\n </div>\n );\n case TYPE_AUDIO:\n return (\n <div className={style.audio}>\n <Audio {...omit('id', childProps)} height=\"100%\" width=\"100%\" />\n </div>\n );\n default:\n return null;\n }\n};\n\nconst isType = name => PropTypes.oneOf([name]);\n\nconst videoPropType = PropTypes.shape({\n ...VideoPlayer.propTypes,\n type: isType(TYPE_VIDEO).isRequired\n});\n\nconst imgPropType = PropTypes.shape({\n type: isType(TYPE_IMAGE).isRequired,\n url: PropTypes.string.isRequired\n});\n\nconst audioPropType = PropTypes.shape({\n type: isType(TYPE_AUDIO).isRequired,\n mediaUrl: PropTypes.string.isRequired\n});\n\nMediaView.propTypes = {\n media: PropTypes.oneOfType([videoPropType, imgPropType, audioPropType])\n};\n\nconst Answer = props => {\n const {model, media, help} = props;\n const buildAnswer = () => {\n const {type} = model;\n\n switch (type) {\n case 'qcmDrag':\n return <QcmDrag {...model} help={help} />;\n case 'qcm':\n return <Qcm {...model} />;\n case 'qcmGraphic':\n return <QcmGraphic {...model} />;\n case 'freeText':\n return <FreeText {...model} />;\n case 'dropDown':\n return <DropDown {...model} />;\n case 'slider':\n return <QuestionRange {...model} />;\n case 'template':\n return <Template {...model} />;\n }\n };\n const answerView = buildAnswer(model);\n\n return (\n <div data-name=\"answer\" className={style.wrapper}>\n {media ? <MediaView media={media} /> : null}\n {answerView}\n </div>\n );\n};\n\nAnswer.propTypes = {\n model: PropTypes.shape({\n type: PropTypes.oneOf([\n 'qcmDrag',\n 'qcm',\n 'qcmGraphic',\n 'freeText',\n 'dropDown',\n 'slider',\n 'template'\n ]).isRequired\n }),\n help: PropTypes.string,\n media: MediaView.propTypes.media\n};\n\nexport default Answer;\n"],"file":"index.js"}
1
+ {"version":3,"sources":["../../../src/molecule/answer/index.js"],"names":["TYPE_IMAGE","TYPE_VIDEO","TYPE_AUDIO","MediaView","media","videoId","type","childProps","style","backgroundImage","url","video","audio","isType","name","PropTypes","oneOf","videoPropType","shape","VideoPlayer","propTypes","isRequired","imgPropType","string","audioPropType","mediaUrl","oneOfType","Answer","props","model","help","buildAnswer","answerView","wrapper"],"mappings":";;;;;;;AAAA;;AACA;;AAEA;;AACA;;AACA;;AACA;;AACA;;AACA;;AACA;;AACA;;AACA;;AACA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AU,GAAGD,WAAW,CAACF,KAAD,CAA9B;AAEA,sBACE;AAAK,iBAAU,QAAf;AAAwB,IAAA,SAAS,EAAErB,eAAMyB;AAAzC,KACG7B,KAAK,gBAAG,6BAAC,SAAD;AAAW,IAAA,KAAK,EAAEA;AAAlB,IAAH,GAAiC,IADzC,EAEG4B,UAFH,CADF;AAMD,CA9BD;;AAgCAL,MAAM,CAACP,SAAP,2CAAmB;AACjBS,EAAAA,KAAK,EAAEd,mBAAUG,KAAV,CAAgB;AACrBZ,IAAAA,IAAI,EAAES,mBAAUC,KAAV,CAAgB,CACpB,SADoB,EAEpB,KAFoB,EAGpB,YAHoB,EAIpB,UAJoB,EAKpB,UALoB,EAMpB,QANoB,EAOpB,UAPoB,CAAhB,EAQHK;AATkB,GAAhB,CADU;AAYjBS,EAAAA,IAAI,EAAEf,mBAAUQ,MAZC;AAajBnB,EAAAA,KAAK,EAAED,SAAS,CAACiB,SAAV,CAAoBhB;AAbV,CAAnB;eAgBeuB,M","sourcesContent":["import React from 'react';\nimport PropTypes from 'prop-types';\nimport {omit} from 'lodash/fp';\nimport VideoPlayer from '../video-player';\nimport DropDown from '../questions/drop-down';\nimport FreeText from '../questions/free-text';\nimport QcmDrag from '../questions/qcm-drag';\nimport Qcm from '../questions/qcm';\nimport QcmGraphic from '../questions/qcm-graphic';\nimport QuestionRange from '../questions/question-range';\nimport Template from '../questions/template';\nimport Audio from '../audio';\nimport style from './style.css';\n\nexport const TYPE_IMAGE = 'img';\nexport const TYPE_VIDEO = 'video';\nexport const TYPE_AUDIO = 'audio';\n\nconst MediaView = ({media}) => {\n const {videoId, type, ...childProps} = media;\n switch (type) {\n case TYPE_IMAGE:\n return (\n <div\n className={style.media}\n style={{\n backgroundImage: `url(${media.url})`\n }}\n />\n );\n case TYPE_VIDEO:\n return (\n <div className={style.video}>\n <VideoPlayer {...omit('id', childProps)} id={videoId} height=\"100%\" width=\"100%\" />\n </div>\n );\n case TYPE_AUDIO:\n return (\n <div className={style.audio}>\n <Audio {...omit('id', childProps)} height=\"100%\" width=\"100%\" />\n </div>\n );\n default:\n return null;\n }\n};\n\nconst isType = name => PropTypes.oneOf([name]);\n\nconst videoPropType = PropTypes.shape({\n ...VideoPlayer.propTypes,\n type: isType(TYPE_VIDEO).isRequired\n});\n\nconst imgPropType = PropTypes.shape({\n type: isType(TYPE_IMAGE).isRequired,\n url: PropTypes.string.isRequired\n});\n\nconst audioPropType = PropTypes.shape({\n type: isType(TYPE_AUDIO).isRequired,\n mediaUrl: PropTypes.string.isRequired\n});\n\nMediaView.propTypes = {\n media: PropTypes.oneOfType([videoPropType, imgPropType, audioPropType])\n};\n\nconst Answer = props => {\n const {model, media, help} = props;\n const buildAnswer = () => {\n const {type} = model;\n\n switch (type) {\n case 'qcmDrag':\n return <QcmDrag {...model} help={help} />;\n case 'qcm':\n return <Qcm {...model} />;\n case 'qcmGraphic':\n return <QcmGraphic {...model} />;\n case 'freeText':\n return <FreeText {...model} />;\n case 'dropDown':\n return <DropDown {...model} />;\n case 'slider':\n return <QuestionRange {...model} />;\n case 'template':\n return <Template {...model} />;\n }\n };\n const answerView = buildAnswer(model);\n\n return (\n <div data-name=\"answer\" className={style.wrapper}>\n {media ? <MediaView media={media} /> : null}\n {answerView}\n </div>\n );\n};\n\nAnswer.propTypes = {\n model: PropTypes.shape({\n type: PropTypes.oneOf([\n 'qcmDrag',\n 'qcm',\n 'qcmGraphic',\n 'freeText',\n 'dropDown',\n 'slider',\n 'template'\n ]).isRequired\n }),\n help: PropTypes.string,\n media: MediaView.propTypes.media\n};\n\nexport default Answer;\n"],"file":"index.js"}
@@ -11,7 +11,7 @@ function _extends() { _extends = Object.assign || function (target) { for (var i
11
11
 
12
12
  var _default = {
13
13
  props: {
14
- model: _extends(_extends({}, _default2.default.props), {}, {
14
+ model: _extends({}, _default2.default.props, {
15
15
  type: 'freeText'
16
16
  }),
17
17
  media: {
@@ -1 +1 @@
1
- {"version":3,"sources":["../../../../../src/molecule/answer/test/fixtures/audio.js"],"names":["props","model","FreeText","type","media","mediaUrl"],"mappings":";;;;;AAAA;;;;;;eAEe;AACbA,EAAAA,KAAK,EAAE;AACLC,IAAAA,KAAK,wBACAC,kBAASF,KADT;AAEHG,MAAAA,IAAI,EAAE;AAFH,MADA;AAKLC,IAAAA,KAAK,EAAE;AACLD,MAAAA,IAAI,EAAE,OADD;AAELE,MAAAA,QAAQ,EACN;AAHG;AALF;AADM,C","sourcesContent":["import FreeText from '../../../questions/free-text/test/fixtures/default';\n\nexport default {\n props: {\n model: {\n ...FreeText.props,\n type: 'freeText'\n },\n media: {\n type: 'audio',\n mediaUrl:\n 'https://static.coorpacademy.com/content/CoorpAcademy/content-bnpp/cockpit-letsgetdigital-migration/raw/sample-1618502603227.aac'\n }\n }\n};\n"],"file":"audio.js"}
1
+ {"version":3,"sources":["../../../../../src/molecule/answer/test/fixtures/audio.js"],"names":["props","model","FreeText","type","media","mediaUrl"],"mappings":";;;;;AAAA;;;;;;eAEe;AACbA,EAAAA,KAAK,EAAE;AACLC,IAAAA,KAAK,eACAC,kBAASF,KADT;AAEHG,MAAAA,IAAI,EAAE;AAFH,MADA;AAKLC,IAAAA,KAAK,EAAE;AACLD,MAAAA,IAAI,EAAE,OADD;AAELE,MAAAA,QAAQ,EACN;AAHG;AALF;AADM,C","sourcesContent":["import FreeText from '../../../questions/free-text/test/fixtures/default';\n\nexport default {\n props: {\n model: {\n ...FreeText.props,\n type: 'freeText'\n },\n media: {\n type: 'audio',\n mediaUrl:\n 'https://static.coorpacademy.com/content/CoorpAcademy/content-bnpp/cockpit-letsgetdigital-migration/raw/sample-1618502603227.aac'\n }\n }\n};\n"],"file":"audio.js"}
@@ -11,7 +11,7 @@ function _extends() { _extends = Object.assign || function (target) { for (var i
11
11
 
12
12
  var _default = {
13
13
  props: {
14
- model: _extends(_extends({}, _default2.default.props), {}, {
14
+ model: _extends({}, _default2.default.props, {
15
15
  type: 'freeText'
16
16
  }),
17
17
  media: {
@@ -1 +1 @@
1
- {"version":3,"sources":["../../../../../src/molecule/answer/test/fixtures/default.js"],"names":["props","model","FreeText","type","media","url"],"mappings":";;;;;AAAA;;;;;;eAEe;AACbA,EAAAA,KAAK,EAAE;AACLC,IAAAA,KAAK,wBACAC,kBAASF,KADT;AAEHG,MAAAA,IAAI,EAAE;AAFH,MADA;AAKLC,IAAAA,KAAK,EAAE;AACLD,MAAAA,IAAI,EAAE,KADD;AAELE,MAAAA,GAAG,EACD;AAHG;AALF;AADM,C","sourcesContent":["import FreeText from '../../../questions/free-text/test/fixtures/default';\n\nexport default {\n props: {\n model: {\n ...FreeText.props,\n type: 'freeText'\n },\n media: {\n type: 'img',\n url:\n 'https://api.coorpacademy.com/api-service/medias?url=https://static.coorpacademy.com/content/CoorpAcademy/content-minds-and-more/cockpit-minds-and-more/default/shutterstock_701165035-1518620484928.jpg&h=400&w=835&q=80&m=contain'\n }\n }\n};\n"],"file":"default.js"}
1
+ {"version":3,"sources":["../../../../../src/molecule/answer/test/fixtures/default.js"],"names":["props","model","FreeText","type","media","url"],"mappings":";;;;;AAAA;;;;;;eAEe;AACbA,EAAAA,KAAK,EAAE;AACLC,IAAAA,KAAK,eACAC,kBAASF,KADT;AAEHG,MAAAA,IAAI,EAAE;AAFH,MADA;AAKLC,IAAAA,KAAK,EAAE;AACLD,MAAAA,IAAI,EAAE,KADD;AAELE,MAAAA,GAAG,EACD;AAHG;AALF;AADM,C","sourcesContent":["import FreeText from '../../../questions/free-text/test/fixtures/default';\n\nexport default {\n props: {\n model: {\n ...FreeText.props,\n type: 'freeText'\n },\n media: {\n type: 'img',\n url:\n 'https://api.coorpacademy.com/api-service/medias?url=https://static.coorpacademy.com/content/CoorpAcademy/content-minds-and-more/cockpit-minds-and-more/default/shutterstock_701165035-1518620484928.jpg&h=400&w=835&q=80&m=contain'\n }\n }\n};\n"],"file":"default.js"}
@@ -12,7 +12,7 @@ function _extends() { _extends = Object.assign || function (target) { for (var i
12
12
  const answerProps = _default2.default.props;
13
13
  var _default = {
14
14
  props: {
15
- model: _extends(_extends({}, answerProps), {}, {
15
+ model: _extends({}, answerProps, {
16
16
  type: 'dropDown'
17
17
  }),
18
18
  media: {
@@ -1 +1 @@
1
- {"version":3,"sources":["../../../../../src/molecule/answer/test/fixtures/drop-down.js"],"names":["answerProps","DropDown","props","model","type","media","url"],"mappings":";;;;;AAAA;;;;;;AAEA,MAAMA,WAAW,GAAGC,kBAASC,KAA7B;eAEe;AACbA,EAAAA,KAAK,EAAE;AACLC,IAAAA,KAAK,wBACAH,WADA;AAEHI,MAAAA,IAAI,EAAE;AAFH,MADA;AAKLC,IAAAA,KAAK,EAAE;AACLD,MAAAA,IAAI,EAAE,KADD;AAELE,MAAAA,GAAG,EACD;AAHG;AALF;AADM,C","sourcesContent":["import DropDown from '../../../questions/drop-down/test/fixtures/default';\n\nconst answerProps = DropDown.props;\n\nexport default {\n props: {\n model: {\n ...answerProps,\n type: 'dropDown'\n },\n media: {\n type: 'img',\n url:\n 'https://api-staging.coorpacademy.com/api-service/medias?h=300&w=300&q=90&url=https://user-images.githubusercontent.com/7602475/28273504-db1da18a-6b0e-11e7-97cd-b2e307fc51c7.png'\n }\n }\n};\n"],"file":"drop-down.js"}
1
+ {"version":3,"sources":["../../../../../src/molecule/answer/test/fixtures/drop-down.js"],"names":["answerProps","DropDown","props","model","type","media","url"],"mappings":";;;;;AAAA;;;;;;AAEA,MAAMA,WAAW,GAAGC,kBAASC,KAA7B;eAEe;AACbA,EAAAA,KAAK,EAAE;AACLC,IAAAA,KAAK,eACAH,WADA;AAEHI,MAAAA,IAAI,EAAE;AAFH,MADA;AAKLC,IAAAA,KAAK,EAAE;AACLD,MAAAA,IAAI,EAAE,KADD;AAELE,MAAAA,GAAG,EACD;AAHG;AALF;AADM,C","sourcesContent":["import DropDown from '../../../questions/drop-down/test/fixtures/default';\n\nconst answerProps = DropDown.props;\n\nexport default {\n props: {\n model: {\n ...answerProps,\n type: 'dropDown'\n },\n media: {\n type: 'img',\n url:\n 'https://api-staging.coorpacademy.com/api-service/medias?h=300&w=300&q=90&url=https://user-images.githubusercontent.com/7602475/28273504-db1da18a-6b0e-11e7-97cd-b2e307fc51c7.png'\n }\n }\n};\n"],"file":"drop-down.js"}
@@ -12,7 +12,7 @@ function _extends() { _extends = Object.assign || function (target) { for (var i
12
12
  const answerProps = _arabic.default.props;
13
13
  var _default = {
14
14
  props: {
15
- model: _extends(_extends({}, answerProps), {}, {
15
+ model: _extends({}, answerProps, {
16
16
  type: 'qcm'
17
17
  }),
18
18
  media: {
@@ -1 +1 @@
1
- {"version":3,"sources":["../../../../../src/molecule/answer/test/fixtures/qcm-arabic.js"],"names":["answerProps","Qcm","props","model","type","media","url"],"mappings":";;;;;AAAA;;;;;;AAEA,MAAMA,WAAW,GAAGC,gBAAIC,KAAxB;eAEe;AACbA,EAAAA,KAAK,EAAE;AACLC,IAAAA,KAAK,wBACAH,WADA;AAEHI,MAAAA,IAAI,EAAE;AAFH,MADA;AAKLC,IAAAA,KAAK,EAAE;AACLD,MAAAA,IAAI,EAAE,KADD;AAELE,MAAAA,GAAG,EACD;AAHG;AALF;AADM,C","sourcesContent":["import Qcm from '../../../questions/qcm/test/fixtures/arabic';\n\nconst answerProps = Qcm.props;\n\nexport default {\n props: {\n model: {\n ...answerProps,\n type: 'qcm'\n },\n media: {\n type: 'img',\n url:\n 'https://user-images.githubusercontent.com/7602475/28273504-db1da18a-6b0e-11e7-97cd-b2e307fc51c7.png'\n }\n }\n};\n"],"file":"qcm-arabic.js"}
1
+ {"version":3,"sources":["../../../../../src/molecule/answer/test/fixtures/qcm-arabic.js"],"names":["answerProps","Qcm","props","model","type","media","url"],"mappings":";;;;;AAAA;;;;;;AAEA,MAAMA,WAAW,GAAGC,gBAAIC,KAAxB;eAEe;AACbA,EAAAA,KAAK,EAAE;AACLC,IAAAA,KAAK,eACAH,WADA;AAEHI,MAAAA,IAAI,EAAE;AAFH,MADA;AAKLC,IAAAA,KAAK,EAAE;AACLD,MAAAA,IAAI,EAAE,KADD;AAELE,MAAAA,GAAG,EACD;AAHG;AALF;AADM,C","sourcesContent":["import Qcm from '../../../questions/qcm/test/fixtures/arabic';\n\nconst answerProps = Qcm.props;\n\nexport default {\n props: {\n model: {\n ...answerProps,\n type: 'qcm'\n },\n media: {\n type: 'img',\n url:\n 'https://user-images.githubusercontent.com/7602475/28273504-db1da18a-6b0e-11e7-97cd-b2e307fc51c7.png'\n }\n }\n};\n"],"file":"qcm-arabic.js"}
@@ -12,7 +12,7 @@ function _extends() { _extends = Object.assign || function (target) { for (var i
12
12
  const answerProps = _default2.default.props;
13
13
  var _default = {
14
14
  props: {
15
- model: _extends(_extends({}, answerProps), {}, {
15
+ model: _extends({}, answerProps, {
16
16
  type: 'qcmDrag'
17
17
  }),
18
18
  help: 'Help text will appear here'
@@ -1 +1 @@
1
- {"version":3,"sources":["../../../../../src/molecule/answer/test/fixtures/qcm-drag.js"],"names":["answerProps","QcmDrag","props","model","type","help"],"mappings":";;;;;AAAA;;;;;;AAEA,MAAMA,WAAW,GAAGC,kBAAQC,KAA5B;eAEe;AACbA,EAAAA,KAAK,EAAE;AACLC,IAAAA,KAAK,wBACAH,WADA;AAEHI,MAAAA,IAAI,EAAE;AAFH,MADA;AAKLC,IAAAA,IAAI,EAAE;AALD;AADM,C","sourcesContent":["import QcmDrag from '../../../questions/qcm-drag/test/fixtures/default';\n\nconst answerProps = QcmDrag.props;\n\nexport default {\n props: {\n model: {\n ...answerProps,\n type: 'qcmDrag'\n },\n help: 'Help text will appear here'\n }\n};\n"],"file":"qcm-drag.js"}
1
+ {"version":3,"sources":["../../../../../src/molecule/answer/test/fixtures/qcm-drag.js"],"names":["answerProps","QcmDrag","props","model","type","help"],"mappings":";;;;;AAAA;;;;;;AAEA,MAAMA,WAAW,GAAGC,kBAAQC,KAA5B;eAEe;AACbA,EAAAA,KAAK,EAAE;AACLC,IAAAA,KAAK,eACAH,WADA;AAEHI,MAAAA,IAAI,EAAE;AAFH,MADA;AAKLC,IAAAA,IAAI,EAAE;AALD;AADM,C","sourcesContent":["import QcmDrag from '../../../questions/qcm-drag/test/fixtures/default';\n\nconst answerProps = QcmDrag.props;\n\nexport default {\n props: {\n model: {\n ...answerProps,\n type: 'qcmDrag'\n },\n help: 'Help text will appear here'\n }\n};\n"],"file":"qcm-drag.js"}
@@ -12,7 +12,7 @@ function _extends() { _extends = Object.assign || function (target) { for (var i
12
12
  const answerProps = _default2.default.props;
13
13
  var _default = {
14
14
  props: {
15
- model: _extends(_extends({}, answerProps), {}, {
15
+ model: _extends({}, answerProps, {
16
16
  type: 'qcmGraphic'
17
17
  })
18
18
  }