@coorpacademy/components 11.40.25 → 11.41.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (327) hide show
  1. package/es/atom/chip/index.d.ts +1 -0
  2. package/es/atom/chip/index.d.ts.map +1 -1
  3. package/es/atom/chip/index.js +6 -3
  4. package/es/atom/chip/index.js.map +1 -1
  5. package/es/atom/drag-and-drop/index.d.ts +2 -0
  6. package/es/atom/drag-and-drop/index.d.ts.map +1 -1
  7. package/es/atom/drag-and-drop/index.js +9 -4
  8. package/es/atom/drag-and-drop/index.js.map +1 -1
  9. package/es/atom/input-date/index.d.ts +21 -0
  10. package/es/atom/input-date/index.d.ts.map +1 -0
  11. package/es/atom/input-date/index.js +73 -0
  12. package/es/atom/input-date/index.js.map +1 -0
  13. package/es/atom/input-date/style.css +88 -0
  14. package/es/atom/input-file-draggable/index.d.ts +10 -2
  15. package/es/atom/input-file-draggable/index.d.ts.map +1 -1
  16. package/es/atom/input-file-draggable/index.js +12 -4
  17. package/es/atom/input-file-draggable/index.js.map +1 -1
  18. package/es/atom/radio-with-title/index.d.ts +1 -0
  19. package/es/atom/radio-with-title/index.d.ts.map +1 -1
  20. package/es/atom/radio-with-title/types.d.ts +1 -0
  21. package/es/atom/radio-with-title/types.d.ts.map +1 -1
  22. package/es/atom/title/index.d.ts +1 -0
  23. package/es/atom/title/index.d.ts.map +1 -1
  24. package/es/atom/title/index.js +16 -6
  25. package/es/atom/title/index.js.map +1 -1
  26. package/es/atom/title/style.css +4 -0
  27. package/es/atom/video-upload/index.d.ts +2 -0
  28. package/es/molecule/assignment-card/index.d.ts +62 -0
  29. package/es/molecule/assignment-card/index.d.ts.map +1 -0
  30. package/es/molecule/assignment-card/index.js +91 -0
  31. package/es/molecule/assignment-card/index.js.map +1 -0
  32. package/es/molecule/assignment-card/style.css +98 -0
  33. package/es/molecule/assignment-status-tag/index.d.ts +13 -0
  34. package/es/molecule/assignment-status-tag/index.d.ts.map +1 -0
  35. package/es/molecule/assignment-status-tag/index.js +42 -0
  36. package/es/molecule/assignment-status-tag/index.js.map +1 -0
  37. package/es/molecule/assignment-status-tag/types.d.ts +15 -0
  38. package/es/molecule/assignment-status-tag/types.d.ts.map +1 -0
  39. package/es/molecule/assignment-status-tag/types.js +8 -0
  40. package/es/molecule/assignment-status-tag/types.js.map +1 -0
  41. package/es/molecule/brand-form-group/index.d.ts.map +1 -1
  42. package/es/molecule/brand-form-group/index.js +7 -0
  43. package/es/molecule/brand-form-group/index.js.map +1 -1
  44. package/es/molecule/card/index.d.ts +1 -0
  45. package/es/molecule/card/index.d.ts.map +1 -1
  46. package/es/molecule/card/index.js +3 -0
  47. package/es/molecule/card/index.js.map +1 -1
  48. package/es/molecule/card-content/index.d.ts +3 -1
  49. package/es/molecule/card-content/index.d.ts.map +1 -1
  50. package/es/molecule/card-content/index.js +7 -1
  51. package/es/molecule/card-content/index.js.map +1 -1
  52. package/es/molecule/cm-popin/types.d.ts +11 -0
  53. package/es/molecule/cm-popin/types.d.ts.map +1 -1
  54. package/es/molecule/dashboard/cards-list/index.d.ts +3 -0
  55. package/es/molecule/dashboard/cards-list/index.d.ts.map +1 -1
  56. package/es/molecule/dashboard/cards-list/index.js +11 -5
  57. package/es/molecule/dashboard/cards-list/index.js.map +1 -1
  58. package/es/molecule/dashboard/cards-list/prop-types.d.ts +1 -0
  59. package/es/molecule/dashboard/cards-list/prop-types.d.ts.map +1 -1
  60. package/es/molecule/dashboard/cards-list/prop-types.js.map +1 -1
  61. package/es/molecule/drag-and-drop-wrapper/index.d.ts +6 -0
  62. package/es/molecule/draggable-list/index.d.ts +63 -54
  63. package/es/molecule/tabs/index.d.ts +1 -0
  64. package/es/molecule/tabs/index.d.ts.map +1 -1
  65. package/es/molecule/tabs/index.js +7 -3
  66. package/es/molecule/tabs/index.js.map +1 -1
  67. package/es/molecule/tabs/style.css +4 -0
  68. package/es/molecule/title-and-checkbox-wrapper/index.d.ts +13 -0
  69. package/es/molecule/title-radio-wrapper/index.d.ts +7 -0
  70. package/es/molecule/title-radio-wrapper/index.d.ts.map +1 -1
  71. package/es/molecule/title-radio-wrapper/types.d.ts +7 -0
  72. package/es/molecule/title-radio-wrapper/types.d.ts.map +1 -1
  73. package/es/organism/assignment-audience/index.d.ts +92 -0
  74. package/es/organism/assignment-audience/index.d.ts.map +1 -0
  75. package/es/organism/assignment-audience/index.js +236 -0
  76. package/es/organism/assignment-audience/index.js.map +1 -0
  77. package/es/organism/assignment-audience/style.css +115 -0
  78. package/es/organism/assignment-audience/types.d.ts +193 -0
  79. package/es/organism/assignment-audience/types.d.ts.map +1 -0
  80. package/es/organism/assignment-audience/types.js +108 -0
  81. package/es/organism/assignment-audience/types.js.map +1 -0
  82. package/es/organism/assignment-audience/upload-result.css +47 -0
  83. package/es/organism/assignment-audience/upload-result.d.ts +26 -0
  84. package/es/organism/assignment-audience/upload-result.d.ts.map +1 -0
  85. package/es/organism/assignment-audience/upload-result.js +89 -0
  86. package/es/organism/assignment-audience/upload-result.js.map +1 -0
  87. package/es/organism/assignment-row/index.d.ts +55 -0
  88. package/es/organism/assignment-row/index.d.ts.map +1 -0
  89. package/es/organism/assignment-row/index.js +38 -0
  90. package/es/organism/assignment-row/index.js.map +1 -0
  91. package/es/organism/assignment-row/types.d.ts +83 -0
  92. package/es/organism/assignment-row/types.d.ts.map +1 -0
  93. package/es/organism/assignment-row/types.js +29 -0
  94. package/es/organism/assignment-row/types.js.map +1 -0
  95. package/es/organism/brand-learning-priorities/index.d.ts +63 -54
  96. package/es/organism/content-skill-modal/index.d.ts +10 -0
  97. package/es/organism/content-skill-modal/index.d.ts.map +1 -1
  98. package/es/organism/content-skill-modal/types.d.ts +10 -0
  99. package/es/organism/content-skill-modal/types.d.ts.map +1 -1
  100. package/es/organism/list-item/index.d.ts +13 -1
  101. package/es/organism/list-item/index.d.ts.map +1 -1
  102. package/es/organism/list-item/index.js +45 -3
  103. package/es/organism/list-item/index.js.map +1 -1
  104. package/es/organism/list-item/style.css +36 -0
  105. package/es/organism/list-items/index.d.ts +10 -0
  106. package/es/organism/list-items/index.d.ts.map +1 -1
  107. package/es/organism/list-items/index.js +4 -1
  108. package/es/organism/list-items/index.js.map +1 -1
  109. package/es/organism/mooc-header/index.d.ts +7 -0
  110. package/es/organism/mooc-header/index.d.ts.map +1 -1
  111. package/es/organism/mooc-header/index.js +30 -1
  112. package/es/organism/mooc-header/index.js.map +1 -1
  113. package/es/organism/mooc-header/style.css +11 -0
  114. package/es/organism/rewards-form/index.d.ts +13 -0
  115. package/es/organism/select-opponents/index.d.ts +13 -0
  116. package/es/organism/select-opponents/index.d.ts.map +1 -1
  117. package/es/organism/select-opponents/types.d.ts +13 -0
  118. package/es/organism/select-opponents/types.d.ts.map +1 -1
  119. package/es/organism/title-and-input/index.d.ts +14 -0
  120. package/es/organism/title-and-input/index.d.ts.map +1 -1
  121. package/es/organism/title-and-input/types.d.ts +14 -0
  122. package/es/organism/title-and-input/types.d.ts.map +1 -1
  123. package/es/organism/wizard-contents/index.d.ts +13 -0
  124. package/es/template/activity/index.d.ts +1 -0
  125. package/es/template/activity/progression-item.css +16 -4
  126. package/es/template/activity/progression-item.d.ts +1 -0
  127. package/es/template/activity/progression-item.d.ts.map +1 -1
  128. package/es/template/activity/progression-item.js +14 -3
  129. package/es/template/activity/progression-item.js.map +1 -1
  130. package/es/template/app-player/loading/index.d.ts +11 -0
  131. package/es/template/app-player/player/index.d.ts +22 -0
  132. package/es/template/app-player/player/slides/index.d.ts +11 -0
  133. package/es/template/app-player/player/slides/index.d.ts.map +1 -1
  134. package/es/template/app-player/popin-correction/index.d.ts +11 -0
  135. package/es/template/app-player/popin-correction/index.d.ts.map +1 -1
  136. package/es/template/app-player/popin-end/index.d.ts +14 -0
  137. package/es/template/app-player/popin-end/summary.d.ts +3 -0
  138. package/es/template/app-review/index.d.ts +11 -0
  139. package/es/template/app-review/index.d.ts.map +1 -1
  140. package/es/template/app-review/player/prop-types.d.ts +11 -0
  141. package/es/template/app-review/player/prop-types.d.ts.map +1 -1
  142. package/es/template/app-review/prop-types.d.ts +11 -0
  143. package/es/template/app-review/prop-types.d.ts.map +1 -1
  144. package/es/template/back-office/brand-update/index.d.ts +95 -54
  145. package/es/template/certification-detail/index.d.ts +11 -0
  146. package/es/template/cockpit/jw-uploader/index.d.ts +2 -0
  147. package/es/template/common/dashboard/index.d.ts +22 -0
  148. package/es/template/common/dashboard/index.d.ts.map +1 -1
  149. package/es/template/common/dashboard/index.js +37 -1
  150. package/es/template/common/dashboard/index.js.map +1 -1
  151. package/es/template/common/search-page/index.d.ts +17 -0
  152. package/es/template/external-course/index.d.ts +11 -0
  153. package/es/template/my-assignments/index.d.ts +167 -0
  154. package/es/template/my-assignments/index.d.ts.map +1 -0
  155. package/es/template/my-assignments/index.js +221 -0
  156. package/es/template/my-assignments/index.js.map +1 -0
  157. package/es/template/my-assignments/style.css +84 -0
  158. package/es/template/my-learning/index.d.ts +3 -0
  159. package/es/template/playlist-detail/index.d.ts +11 -0
  160. package/es/template/teams-dashboard/index.d.ts +3 -0
  161. package/es/util/proptypes.d.ts.map +1 -1
  162. package/es/util/proptypes.js +2 -2
  163. package/es/util/proptypes.js.map +1 -1
  164. package/lib/atom/chip/index.d.ts +1 -0
  165. package/lib/atom/chip/index.d.ts.map +1 -1
  166. package/lib/atom/chip/index.js +6 -3
  167. package/lib/atom/chip/index.js.map +1 -1
  168. package/lib/atom/drag-and-drop/index.d.ts +2 -0
  169. package/lib/atom/drag-and-drop/index.d.ts.map +1 -1
  170. package/lib/atom/drag-and-drop/index.js +9 -4
  171. package/lib/atom/drag-and-drop/index.js.map +1 -1
  172. package/lib/atom/input-date/index.d.ts +21 -0
  173. package/lib/atom/input-date/index.d.ts.map +1 -0
  174. package/lib/atom/input-date/index.js +80 -0
  175. package/lib/atom/input-date/index.js.map +1 -0
  176. package/lib/atom/input-date/style.css +88 -0
  177. package/lib/atom/input-file-draggable/index.d.ts +10 -2
  178. package/lib/atom/input-file-draggable/index.d.ts.map +1 -1
  179. package/lib/atom/input-file-draggable/index.js +12 -4
  180. package/lib/atom/input-file-draggable/index.js.map +1 -1
  181. package/lib/atom/radio-with-title/index.d.ts +1 -0
  182. package/lib/atom/radio-with-title/index.d.ts.map +1 -1
  183. package/lib/atom/radio-with-title/types.d.ts +1 -0
  184. package/lib/atom/radio-with-title/types.d.ts.map +1 -1
  185. package/lib/atom/title/index.d.ts +1 -0
  186. package/lib/atom/title/index.d.ts.map +1 -1
  187. package/lib/atom/title/index.js +16 -6
  188. package/lib/atom/title/index.js.map +1 -1
  189. package/lib/atom/title/style.css +4 -0
  190. package/lib/atom/video-upload/index.d.ts +2 -0
  191. package/lib/molecule/assignment-card/index.d.ts +62 -0
  192. package/lib/molecule/assignment-card/index.d.ts.map +1 -0
  193. package/lib/molecule/assignment-card/index.js +97 -0
  194. package/lib/molecule/assignment-card/index.js.map +1 -0
  195. package/lib/molecule/assignment-card/style.css +98 -0
  196. package/lib/molecule/assignment-status-tag/index.d.ts +13 -0
  197. package/lib/molecule/assignment-status-tag/index.d.ts.map +1 -0
  198. package/lib/molecule/assignment-status-tag/index.js +47 -0
  199. package/lib/molecule/assignment-status-tag/index.js.map +1 -0
  200. package/lib/molecule/assignment-status-tag/types.d.ts +15 -0
  201. package/lib/molecule/assignment-status-tag/types.d.ts.map +1 -0
  202. package/lib/molecule/assignment-status-tag/types.js +13 -0
  203. package/lib/molecule/assignment-status-tag/types.js.map +1 -0
  204. package/lib/molecule/brand-form-group/index.d.ts.map +1 -1
  205. package/lib/molecule/brand-form-group/index.js +7 -0
  206. package/lib/molecule/brand-form-group/index.js.map +1 -1
  207. package/lib/molecule/card/index.d.ts +1 -0
  208. package/lib/molecule/card/index.d.ts.map +1 -1
  209. package/lib/molecule/card/index.js +3 -0
  210. package/lib/molecule/card/index.js.map +1 -1
  211. package/lib/molecule/card-content/index.d.ts +3 -1
  212. package/lib/molecule/card-content/index.d.ts.map +1 -1
  213. package/lib/molecule/card-content/index.js +7 -1
  214. package/lib/molecule/card-content/index.js.map +1 -1
  215. package/lib/molecule/cm-popin/types.d.ts +11 -0
  216. package/lib/molecule/cm-popin/types.d.ts.map +1 -1
  217. package/lib/molecule/dashboard/cards-list/index.d.ts +3 -0
  218. package/lib/molecule/dashboard/cards-list/index.d.ts.map +1 -1
  219. package/lib/molecule/dashboard/cards-list/index.js +11 -5
  220. package/lib/molecule/dashboard/cards-list/index.js.map +1 -1
  221. package/lib/molecule/dashboard/cards-list/prop-types.d.ts +1 -0
  222. package/lib/molecule/dashboard/cards-list/prop-types.d.ts.map +1 -1
  223. package/lib/molecule/dashboard/cards-list/prop-types.js.map +1 -1
  224. package/lib/molecule/drag-and-drop-wrapper/index.d.ts +6 -0
  225. package/lib/molecule/draggable-list/index.d.ts +63 -54
  226. package/lib/molecule/tabs/index.d.ts +1 -0
  227. package/lib/molecule/tabs/index.d.ts.map +1 -1
  228. package/lib/molecule/tabs/index.js +7 -3
  229. package/lib/molecule/tabs/index.js.map +1 -1
  230. package/lib/molecule/tabs/style.css +4 -0
  231. package/lib/molecule/title-and-checkbox-wrapper/index.d.ts +13 -0
  232. package/lib/molecule/title-radio-wrapper/index.d.ts +7 -0
  233. package/lib/molecule/title-radio-wrapper/index.d.ts.map +1 -1
  234. package/lib/molecule/title-radio-wrapper/types.d.ts +7 -0
  235. package/lib/molecule/title-radio-wrapper/types.d.ts.map +1 -1
  236. package/lib/organism/assignment-audience/index.d.ts +92 -0
  237. package/lib/organism/assignment-audience/index.d.ts.map +1 -0
  238. package/lib/organism/assignment-audience/index.js +242 -0
  239. package/lib/organism/assignment-audience/index.js.map +1 -0
  240. package/lib/organism/assignment-audience/style.css +115 -0
  241. package/lib/organism/assignment-audience/types.d.ts +193 -0
  242. package/lib/organism/assignment-audience/types.d.ts.map +1 -0
  243. package/lib/organism/assignment-audience/types.js +112 -0
  244. package/lib/organism/assignment-audience/types.js.map +1 -0
  245. package/lib/organism/assignment-audience/upload-result.css +47 -0
  246. package/lib/organism/assignment-audience/upload-result.d.ts +26 -0
  247. package/lib/organism/assignment-audience/upload-result.d.ts.map +1 -0
  248. package/lib/organism/assignment-audience/upload-result.js +94 -0
  249. package/lib/organism/assignment-audience/upload-result.js.map +1 -0
  250. package/lib/organism/assignment-row/index.d.ts +55 -0
  251. package/lib/organism/assignment-row/index.d.ts.map +1 -0
  252. package/lib/organism/assignment-row/index.js +45 -0
  253. package/lib/organism/assignment-row/index.js.map +1 -0
  254. package/lib/organism/assignment-row/types.d.ts +83 -0
  255. package/lib/organism/assignment-row/types.d.ts.map +1 -0
  256. package/lib/organism/assignment-row/types.js +34 -0
  257. package/lib/organism/assignment-row/types.js.map +1 -0
  258. package/lib/organism/brand-learning-priorities/index.d.ts +63 -54
  259. package/lib/organism/content-skill-modal/index.d.ts +10 -0
  260. package/lib/organism/content-skill-modal/index.d.ts.map +1 -1
  261. package/lib/organism/content-skill-modal/types.d.ts +10 -0
  262. package/lib/organism/content-skill-modal/types.d.ts.map +1 -1
  263. package/lib/organism/list-item/index.d.ts +13 -1
  264. package/lib/organism/list-item/index.d.ts.map +1 -1
  265. package/lib/organism/list-item/index.js +44 -3
  266. package/lib/organism/list-item/index.js.map +1 -1
  267. package/lib/organism/list-item/style.css +36 -0
  268. package/lib/organism/list-items/index.d.ts +10 -0
  269. package/lib/organism/list-items/index.d.ts.map +1 -1
  270. package/lib/organism/list-items/index.js +4 -1
  271. package/lib/organism/list-items/index.js.map +1 -1
  272. package/lib/organism/mooc-header/index.d.ts +7 -0
  273. package/lib/organism/mooc-header/index.d.ts.map +1 -1
  274. package/lib/organism/mooc-header/index.js +30 -1
  275. package/lib/organism/mooc-header/index.js.map +1 -1
  276. package/lib/organism/mooc-header/style.css +11 -0
  277. package/lib/organism/rewards-form/index.d.ts +13 -0
  278. package/lib/organism/select-opponents/index.d.ts +13 -0
  279. package/lib/organism/select-opponents/index.d.ts.map +1 -1
  280. package/lib/organism/select-opponents/types.d.ts +13 -0
  281. package/lib/organism/select-opponents/types.d.ts.map +1 -1
  282. package/lib/organism/title-and-input/index.d.ts +14 -0
  283. package/lib/organism/title-and-input/index.d.ts.map +1 -1
  284. package/lib/organism/title-and-input/types.d.ts +14 -0
  285. package/lib/organism/title-and-input/types.d.ts.map +1 -1
  286. package/lib/organism/wizard-contents/index.d.ts +13 -0
  287. package/lib/template/activity/index.d.ts +1 -0
  288. package/lib/template/activity/progression-item.css +16 -4
  289. package/lib/template/activity/progression-item.d.ts +1 -0
  290. package/lib/template/activity/progression-item.d.ts.map +1 -1
  291. package/lib/template/activity/progression-item.js +14 -3
  292. package/lib/template/activity/progression-item.js.map +1 -1
  293. package/lib/template/app-player/loading/index.d.ts +11 -0
  294. package/lib/template/app-player/player/index.d.ts +22 -0
  295. package/lib/template/app-player/player/slides/index.d.ts +11 -0
  296. package/lib/template/app-player/player/slides/index.d.ts.map +1 -1
  297. package/lib/template/app-player/popin-correction/index.d.ts +11 -0
  298. package/lib/template/app-player/popin-correction/index.d.ts.map +1 -1
  299. package/lib/template/app-player/popin-end/index.d.ts +14 -0
  300. package/lib/template/app-player/popin-end/summary.d.ts +3 -0
  301. package/lib/template/app-review/index.d.ts +11 -0
  302. package/lib/template/app-review/index.d.ts.map +1 -1
  303. package/lib/template/app-review/player/prop-types.d.ts +11 -0
  304. package/lib/template/app-review/player/prop-types.d.ts.map +1 -1
  305. package/lib/template/app-review/prop-types.d.ts +11 -0
  306. package/lib/template/app-review/prop-types.d.ts.map +1 -1
  307. package/lib/template/back-office/brand-update/index.d.ts +95 -54
  308. package/lib/template/certification-detail/index.d.ts +11 -0
  309. package/lib/template/cockpit/jw-uploader/index.d.ts +2 -0
  310. package/lib/template/common/dashboard/index.d.ts +22 -0
  311. package/lib/template/common/dashboard/index.d.ts.map +1 -1
  312. package/lib/template/common/dashboard/index.js +37 -1
  313. package/lib/template/common/dashboard/index.js.map +1 -1
  314. package/lib/template/common/search-page/index.d.ts +17 -0
  315. package/lib/template/external-course/index.d.ts +11 -0
  316. package/lib/template/my-assignments/index.d.ts +167 -0
  317. package/lib/template/my-assignments/index.d.ts.map +1 -0
  318. package/lib/template/my-assignments/index.js +227 -0
  319. package/lib/template/my-assignments/index.js.map +1 -0
  320. package/lib/template/my-assignments/style.css +84 -0
  321. package/lib/template/my-learning/index.d.ts +3 -0
  322. package/lib/template/playlist-detail/index.d.ts +11 -0
  323. package/lib/template/teams-dashboard/index.d.ts +3 -0
  324. package/lib/util/proptypes.d.ts.map +1 -1
  325. package/lib/util/proptypes.js +2 -2
  326. package/lib/util/proptypes.js.map +1 -1
  327. package/package.json +2 -2
@@ -1 +1 @@
1
- {"version":3,"file":"index.js","names":["React","PropTypes","Provider","Slide","HeroCard","BattleRequestList","CardsList","NewsList","StartBattle","CMPopin","ReviewBanner","LearningProfileBanner","Title","style","Hero","memo","hero","welcome","createElement","className","propTypes","process","env","NODE_ENV","shape","Dashboard","props","context","translate","sections","cookie","popinWithCards","showMoreOnLeftOrRightAriaLabel","buildSectionComponent","section","type","_extends","title","subtitle","icon","iconName","iconColor","borderRadius","backgroundColor","tag","label","_size","cards","size","buildSection","index","sectionView","key","sectionsList","map","wrapper","contextTypes","childContextTypes","arrayOf","oneOfType"],"sources":["../../../../src/template/common/dashboard/index.js"],"sourcesContent":["import React from 'react';\nimport PropTypes from 'prop-types';\nimport {size} from 'lodash/fp';\nimport Provider from '../../../atom/provider';\nimport Slide from '../../../atom/slide';\nimport HeroCard from '../../../molecule/hero';\nimport BattleRequestList from '../../../molecule/dashboard/battle-request-list';\nimport CardsList from '../../../molecule/dashboard/cards-list';\nimport NewsList from '../../../molecule/dashboard/news-list';\nimport StartBattle from '../../../molecule/dashboard/start-battle';\nimport CMPopin from '../../../molecule/cm-popin';\nimport ReviewBanner from '../../../molecule/dashboard/review-banner';\nimport LearningProfileBanner from '../../../molecule/dashboard/learning-profile-banner';\nimport Title from '../../../atom/title';\nimport style from './style.css';\n\nconst Hero = React.memo(function Hero({hero, welcome}) {\n return <div className={style.hero}>{hero ? <HeroCard {...hero} /> : <Slide {...welcome} />}</div>;\n});\n\nHero.propTypes = {\n hero: PropTypes.shape(HeroCard.propTypes),\n welcome: PropTypes.shape(Slide.propTypes)\n};\n\nconst Dashboard = (props, context) => {\n const {translate} = context;\n const {\n sections = [],\n hero,\n welcome,\n cookie,\n popinWithCards,\n 'arrows-aria-label': showMoreOnLeftOrRightAriaLabel\n } = props;\n const buildSectionComponent = section => {\n const {type} = section;\n switch (type) {\n case 'hero':\n return <Hero hero={hero} welcome={welcome} />;\n case 'battleRequests':\n return <BattleRequestList {...section} />;\n case 'learningPrioritiesCards': {\n return (\n <CardsList\n {...section}\n title={\n <Title\n {...{\n type: 'form-group',\n title: translate('learning_priorities'),\n subtitle: translate('learning_priorities_description'),\n icon: {\n iconName: 'sign-post',\n iconColor: '#A32700',\n borderRadius: '12px',\n backgroundColor: '#FFDCD1'\n },\n tag: {\n label: `${size(section.cards)}`,\n size: 'S'\n }\n }}\n />\n }\n arrows-aria-label={showMoreOnLeftOrRightAriaLabel}\n />\n );\n }\n case 'cards':\n return <CardsList {...section} arrows-aria-label={showMoreOnLeftOrRightAriaLabel} />;\n case 'news':\n return <NewsList {...section} />;\n case 'battle':\n return <StartBattle {...section} />;\n case 'review':\n return <ReviewBanner {...section} />;\n case 'learningProfile':\n return <LearningProfileBanner {...section} />;\n default:\n return null;\n }\n };\n\n const buildSection = (section, index) => {\n const sectionView = buildSectionComponent(section);\n\n return <div key={index}>{sectionView}</div>;\n };\n\n const sectionsList = [{type: 'hero', key: 'hero'}, ...sections].map(section => (\n <div key={section.key}>{buildSection(section)}</div>\n ));\n return (\n <div className={style.wrapper} data-name=\"dashboard\">\n {sectionsList}\n {cookie ? <CMPopin {...cookie} /> : null}\n {popinWithCards ? (\n <div className={style.popinWithCards}>\n <CMPopin {...popinWithCards} />\n </div>\n ) : null}\n </div>\n );\n};\n\nDashboard.contextTypes = {\n translate: Provider.childContextTypes.translate\n};\n\nDashboard.propTypes = {\n hero: Hero.propTypes.hero,\n welcome: Hero.propTypes.welcome,\n sections: PropTypes.arrayOf(\n PropTypes.oneOfType([\n PropTypes.shape(BattleRequestList.propTypes),\n PropTypes.shape(CardsList.propTypes),\n PropTypes.shape(NewsList.propTypes),\n PropTypes.shape(StartBattle.propTypes),\n PropTypes.shape(ReviewBanner.propTypes),\n PropTypes.shape(LearningProfileBanner.propTypes)\n ])\n ),\n cookie: PropTypes.shape(CMPopin.propTypes),\n 'arrows-aria-label': CardsList.propTypes['arrows-aria-label'],\n popinWithCards: PropTypes.shape(CMPopin.propTypes)\n};\nexport default Dashboard;\n"],"mappings":";;AAAA,OAAOA,KAAK,MAAM,OAAO;AACzB,OAAOC,SAAS,MAAM,YAAY;AAElC,OAAOC,QAAQ,MAAM,wBAAwB;AAC7C,OAAOC,KAAK,MAAM,qBAAqB;AACvC,OAAOC,QAAQ,MAAM,wBAAwB;AAC7C,OAAOC,iBAAiB,MAAM,iDAAiD;AAC/E,OAAOC,SAAS,MAAM,wCAAwC;AAC9D,OAAOC,QAAQ,MAAM,uCAAuC;AAC5D,OAAOC,WAAW,MAAM,0CAA0C;AAClE,OAAOC,OAAO,MAAM,4BAA4B;AAChD,OAAOC,YAAY,MAAM,2CAA2C;AACpE,OAAOC,qBAAqB,MAAM,qDAAqD;AACvF,OAAOC,KAAK,MAAM,qBAAqB;AACvC,OAAOC,KAAK,MAAM,aAAa;AAE/B,MAAMC,IAAI,gBAAGd,KAAK,CAACe,IAAI,CAAC,SAASD,IAAIA,CAAC;EAACE,IAAI;EAAEC;AAAO,CAAC,EAAE;EACrD,oBAAOjB,KAAA,CAAAkB,aAAA;IAAKC,SAAS,EAAEN,KAAK,CAACG;EAAK,GAAEA,IAAI,gBAAGhB,KAAA,CAAAkB,aAAA,CAACd,QAAQ,EAAKY,IAAO,CAAC,gBAAGhB,KAAA,CAAAkB,aAAA,CAACf,KAAK,EAAKc,OAAU,CAAO,CAAC;AACnG,CAAC,CAAC;AAEFH,IAAI,CAACM,SAAS,GAAAC,OAAA,CAAAC,GAAA,CAAA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AC,GAAG,IAAI,EACvCC,cAAc,gBACb/B,KAAA,CAAAkB,aAAA;IAAKC,SAAS,EAAEN,KAAK,CAACkB;EAAe,gBACnC/B,KAAA,CAAAkB,aAAA,CAACT,OAAO,EAAKsB,cAAiB,CAC3B,CAAC,GACJ,IACD,CAAC;AAEV,CAAC;AAEDN,SAAS,CAAC+B,YAAY,GAAG;EACvB5B,SAAS,EAAE1B,QAAQ,CAACuD,iBAAiB,CAAC7B;AACxC,CAAC;AAEDH,SAAS,CAACL,SAAS,GAAAC,OAAA,CAAAC,GAAA,CAAAC,QAAA,oBAAG;EACpBP,IAAI,EAAEF,IAAI,CAACM,SAAS,CAACJ,IAAI;EACzBC,OAAO,EAAEH,IAAI,CAACM,SAAS,CAACH,OAAO;EAC/BY,QAAQ,EAAE5B,SAAS,CAACyD,OAAO,CACzBzD,SAAS,CAAC0D,SAAS,CAAC,CAClB1D,SAAS,CAACuB,KAAK,CAACnB,iBAAiB,CAACe,SAAS,CAAC,EAC5CnB,SAAS,CAACuB,KAAK,CAAClB,SAAS,CAACc,SAAS,CAAC,EACpCnB,SAAS,CAACuB,KAAK,CAACjB,QAAQ,CAACa,SAAS,CAAC,EACnCnB,SAAS,CAACuB,KAAK,CAAChB,WAAW,CAACY,SAAS,CAAC,EACtCnB,SAAS,CAACuB,KAAK,CAACd,YAAY,CAACU,SAAS,CAAC,EACvCnB,SAAS,CAACuB,KAAK,CAACb,qBAAqB,CAACS,SAAS,CAAC,CACjD,CACH,CAAC;EACDU,MAAM,EAAE7B,SAAS,CAACuB,KAAK,CAACf,OAAO,CAACW,SAAS,CAAC;EAC1C,mBAAmB,EAAEd,SAAS,CAACc,SAAS,CAAC,mBAAmB,CAAC;EAC7DW,cAAc,EAAE9B,SAAS,CAACuB,KAAK,CAACf,OAAO,CAACW,SAAS;AACnD,CAAC;AACD,eAAeK,SAAS","ignoreList":[]}
1
+ {"version":3,"file":"index.js","names":["React","PropTypes","Provider","Slide","HeroCard","BattleRequestList","CardsList","NewsList","StartBattle","CMPopin","ReviewBanner","LearningProfileBanner","Title","AssignmentCard","style","ASSIGNED_ICON","iconName","iconColor","borderRadius","backgroundColor","Hero","memo","hero","welcome","createElement","className","propTypes","process","env","NODE_ENV","shape","Dashboard","props","context","translate","sections","cookie","popinWithCards","showMoreOnLeftOrRightAriaLabel","buildSectionComponent","section","type","_extends","title","subtitle","icon","tag","label","_size","cards","size","String","count","alwaysShowMore","buildSection","index","sectionView","key","sectionsList","map","wrapper","contextTypes","childContextTypes","arrayOf","oneOfType","oneOf","string","number","isRequired","showMore","onShowMore","func"],"sources":["../../../../src/template/common/dashboard/index.js"],"sourcesContent":["import React from 'react';\nimport PropTypes from 'prop-types';\nimport {size} from 'lodash/fp';\nimport Provider from '../../../atom/provider';\nimport Slide from '../../../atom/slide';\nimport HeroCard from '../../../molecule/hero';\nimport BattleRequestList from '../../../molecule/dashboard/battle-request-list';\nimport CardsList from '../../../molecule/dashboard/cards-list';\nimport NewsList from '../../../molecule/dashboard/news-list';\nimport StartBattle from '../../../molecule/dashboard/start-battle';\nimport CMPopin from '../../../molecule/cm-popin';\nimport ReviewBanner from '../../../molecule/dashboard/review-banner';\nimport LearningProfileBanner from '../../../molecule/dashboard/learning-profile-banner';\nimport Title from '../../../atom/title';\nimport AssignmentCard from '../../../molecule/assignment-card';\nimport style from './style.css';\n\nconst ASSIGNED_ICON = {\n iconName: 'clipboard-list',\n iconColor: '#A32700',\n borderRadius: '12px',\n backgroundColor: '#FFDCD1'\n};\n\nconst Hero = React.memo(function Hero({hero, welcome}) {\n return <div className={style.hero}>{hero ? <HeroCard {...hero} /> : <Slide {...welcome} />}</div>;\n});\n\nHero.propTypes = {\n hero: PropTypes.shape(HeroCard.propTypes),\n welcome: PropTypes.shape(Slide.propTypes)\n};\n\nconst Dashboard = (props, context) => {\n const {translate} = context;\n const {\n sections = [],\n hero,\n welcome,\n cookie,\n popinWithCards,\n 'arrows-aria-label': showMoreOnLeftOrRightAriaLabel\n } = props;\n const buildSectionComponent = section => {\n const {type} = section;\n switch (type) {\n case 'hero':\n return <Hero hero={hero} welcome={welcome} />;\n case 'battleRequests':\n return <BattleRequestList {...section} />;\n case 'learningPrioritiesCards': {\n return (\n <CardsList\n {...section}\n title={\n <Title\n {...{\n type: 'form-group',\n title: translate('learning_priorities'),\n subtitle: translate('learning_priorities_description'),\n icon: {\n iconName: 'sign-post',\n iconColor: '#A32700',\n borderRadius: '12px',\n backgroundColor: '#FFDCD1'\n },\n tag: {\n label: `${size(section.cards)}`,\n size: 'S'\n }\n }}\n />\n }\n arrows-aria-label={showMoreOnLeftOrRightAriaLabel}\n />\n );\n }\n case 'assignments': {\n // « Assigned to you »: a strip with arrows, and « See all » even when the strip fits. The\n // count is every open module, not the cards loaded in the strip.\n return (\n <CardsList\n {...section}\n title={\n <Title\n type=\"form-group\"\n title={section.title}\n icon={ASSIGNED_ICON}\n tag={{label: String(section.count), size: 'S'}}\n />\n }\n alwaysShowMore\n arrows-aria-label={showMoreOnLeftOrRightAriaLabel}\n />\n );\n }\n case 'cards':\n return <CardsList {...section} arrows-aria-label={showMoreOnLeftOrRightAriaLabel} />;\n case 'news':\n return <NewsList {...section} />;\n case 'battle':\n return <StartBattle {...section} />;\n case 'review':\n return <ReviewBanner {...section} />;\n case 'learningProfile':\n return <LearningProfileBanner {...section} />;\n default:\n return null;\n }\n };\n\n const buildSection = (section, index) => {\n const sectionView = buildSectionComponent(section);\n\n return <div key={index}>{sectionView}</div>;\n };\n\n const sectionsList = [{type: 'hero', key: 'hero'}, ...sections].map(section => (\n <div key={section.key}>{buildSection(section)}</div>\n ));\n return (\n <div className={style.wrapper} data-name=\"dashboard\">\n {sectionsList}\n {cookie ? <CMPopin {...cookie} /> : null}\n {popinWithCards ? (\n <div className={style.popinWithCards}>\n <CMPopin {...popinWithCards} />\n </div>\n ) : null}\n </div>\n );\n};\n\nDashboard.contextTypes = {\n translate: Provider.childContextTypes.translate\n};\n\nDashboard.propTypes = {\n hero: Hero.propTypes.hero,\n welcome: Hero.propTypes.welcome,\n sections: PropTypes.arrayOf(\n PropTypes.oneOfType([\n PropTypes.shape({\n type: PropTypes.oneOf(['assignments']),\n // « Assigned to you »\n title: PropTypes.string,\n // Every open module, whatever the number of cards loaded\n count: PropTypes.number.isRequired,\n // Open modules only, already sorted by the MOOC (N3)\n cards: PropTypes.arrayOf(PropTypes.shape(AssignmentCard.propTypes)),\n // « See all », to the assignments page\n showMore: PropTypes.string,\n onShowMore: PropTypes.func\n }),\n PropTypes.shape(BattleRequestList.propTypes),\n PropTypes.shape(CardsList.propTypes),\n PropTypes.shape(NewsList.propTypes),\n PropTypes.shape(StartBattle.propTypes),\n PropTypes.shape(ReviewBanner.propTypes),\n PropTypes.shape(LearningProfileBanner.propTypes)\n ])\n ),\n cookie: PropTypes.shape(CMPopin.propTypes),\n 'arrows-aria-label': CardsList.propTypes['arrows-aria-label'],\n popinWithCards: PropTypes.shape(CMPopin.propTypes)\n};\nexport default Dashboard;\n"],"mappings":";;AAAA,OAAOA,KAAK,MAAM,OAAO;AACzB,OAAOC,SAAS,MAAM,YAAY;AAElC,OAAOC,QAAQ,MAAM,wBAAwB;AAC7C,OAAOC,KAAK,MAAM,qBAAqB;AACvC,OAAOC,QAAQ,MAAM,wBAAwB;AAC7C,OAAOC,iBAAiB,MAAM,iDAAiD;AAC/E,OAAOC,SAAS,MAAM,wCAAwC;AAC9D,OAAOC,QAAQ,MAAM,uCAAuC;AAC5D,OAAOC,WAAW,MAAM,0CAA0C;AAClE,OAAOC,OAAO,MAAM,4BAA4B;AAChD,OAAOC,YAAY,MAAM,2CAA2C;AACpE,OAAOC,qBAAqB,MAAM,qDAAqD;AACvF,OAAOC,KAAK,MAAM,qBAAqB;AACvC,OAAOC,cAAc,MAAM,mCAAmC;AAC9D,OAAOC,KAAK,MAAM,aAAa;AAE/B,MAAMC,aAAa,GAAG;EACpBC,QAAQ,EAAE,gBAAgB;EAC1BC,SAAS,EAAE,SAAS;EACpBC,YAAY,EAAE,MAAM;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eAAeK,SAAS","ignoreList":[]}
@@ -207,12 +207,14 @@ declare namespace SearchPage {
207
207
  dataName: PropTypes.Requireable<string>;
208
208
  title: PropTypes.Requireable<NonNullable<PropTypes.ReactNodeLike>>;
209
209
  showMore: PropTypes.Requireable<string>;
210
+ alwaysShowMore: PropTypes.Requireable<boolean>;
210
211
  cards: PropTypes.Requireable<(NonNullable<PropTypes.InferProps<{
211
212
  badge: PropTypes.Requireable<string>;
212
213
  image: PropTypes.Requireable<string>;
213
214
  disabled: PropTypes.Requireable<boolean>;
214
215
  adaptiv: PropTypes.Requireable<boolean>;
215
216
  type: PropTypes.Requireable<string>;
217
+ typeLabel: PropTypes.Requireable<string>;
216
218
  title: PropTypes.Requireable<string>;
217
219
  author: PropTypes.Requireable<string>;
218
220
  certifiedAuthor: PropTypes.Requireable<boolean>;
@@ -272,6 +274,7 @@ declare namespace SearchPage {
272
274
  onClick: PropTypes.Requireable<(...args: any[]) => any>;
273
275
  isActive: PropTypes.Requireable<boolean>;
274
276
  }> | null | undefined)[]>;
277
+ compact: PropTypes.Requireable<boolean>;
275
278
  }>>;
276
279
  customStyle: PropTypes.Requireable<{
277
280
  [x: string]: string | null | undefined;
@@ -369,6 +372,7 @@ declare namespace SearchPage {
369
372
  customLabelClassName: PropTypes.Requireable<string>;
370
373
  }>>;
371
374
  required: PropTypes.Requireable<boolean>;
375
+ headingLevel: PropTypes.Requireable<number>;
372
376
  }>>;
373
377
  headerIcon: PropTypes.Requireable<string>;
374
378
  backgroundImage: PropTypes.Requireable<string>;
@@ -519,6 +523,15 @@ declare namespace SearchPage {
519
523
  items: PropTypes.Requireable<(PropTypes.InferProps<{
520
524
  title: PropTypes.Validator<string>;
521
525
  subtitle: PropTypes.Requireable<string>;
526
+ titleTags: PropTypes.Requireable<(PropTypes.InferProps<{
527
+ label: PropTypes.Validator<string>;
528
+ type: PropTypes.Requireable<string>;
529
+ }> | null | undefined)[]>;
530
+ details: PropTypes.Requireable<string>;
531
+ progress: PropTypes.Requireable<PropTypes.InferProps<{
532
+ value: PropTypes.Validator<number>;
533
+ label: PropTypes.Validator<string>;
534
+ }>>;
522
535
  'data-name': PropTypes.Requireable<string>;
523
536
  provider: PropTypes.Requireable<PropTypes.InferProps<{
524
537
  label: PropTypes.Requireable<string>;
@@ -965,6 +978,7 @@ declare namespace SearchPage {
965
978
  customLabelClassName: PropTypes.Requireable<string>;
966
979
  }>>;
967
980
  required: PropTypes.Requireable<boolean>;
981
+ headingLevel: PropTypes.Requireable<number>;
968
982
  }> | null | undefined>>;
969
983
  isFetching: PropTypes.Requireable<boolean>;
970
984
  search: PropTypes.Requireable<PropTypes.InferProps<{
@@ -1198,6 +1212,7 @@ declare namespace SearchPage {
1198
1212
  onClick: PropTypes.Requireable<(...args: any[]) => any>;
1199
1213
  isActive: PropTypes.Requireable<boolean>;
1200
1214
  }> | null | undefined)[]>;
1215
+ compact: PropTypes.Requireable<boolean>;
1201
1216
  }>>;
1202
1217
  const sections: PropTypes.Requireable<{
1203
1218
  [x: string]: PropTypes.InferProps<{
@@ -1255,6 +1270,7 @@ declare namespace SearchPage {
1255
1270
  disabled: PropTypes.Requireable<boolean>;
1256
1271
  adaptiv: PropTypes.Requireable<boolean>;
1257
1272
  type: PropTypes.Requireable<string>;
1273
+ typeLabel: PropTypes.Requireable<string>;
1258
1274
  title: PropTypes.Requireable<string>;
1259
1275
  author: PropTypes.Requireable<string>;
1260
1276
  certifiedAuthor: PropTypes.Requireable<boolean>;
@@ -1314,6 +1330,7 @@ declare namespace SearchPage {
1314
1330
  onClick: PropTypes.Requireable<(...args: any[]) => any>;
1315
1331
  isActive: PropTypes.Requireable<boolean>;
1316
1332
  }> | null | undefined)[]>;
1333
+ compact: PropTypes.Requireable<boolean>;
1317
1334
  }>>;
1318
1335
  showMore: PropTypes.Requireable<string>;
1319
1336
  onShowMore: PropTypes.Requireable<(...args: any[]) => any>;
@@ -106,6 +106,7 @@ declare namespace ExternalCourse {
106
106
  customLabelClassName: PropTypes.Requireable<string>;
107
107
  }>>;
108
108
  required: PropTypes.Requireable<boolean>;
109
+ headingLevel: PropTypes.Requireable<number>;
109
110
  }>>;
110
111
  headerIcon: PropTypes.Requireable<string>;
111
112
  backgroundImage: PropTypes.Requireable<string>;
@@ -256,6 +257,15 @@ declare namespace ExternalCourse {
256
257
  items: PropTypes.Requireable<(PropTypes.InferProps<{
257
258
  title: PropTypes.Validator<string>;
258
259
  subtitle: PropTypes.Requireable<string>;
260
+ titleTags: PropTypes.Requireable<(PropTypes.InferProps<{
261
+ label: PropTypes.Validator<string>;
262
+ type: PropTypes.Requireable<string>;
263
+ }> | null | undefined)[]>;
264
+ details: PropTypes.Requireable<string>;
265
+ progress: PropTypes.Requireable<PropTypes.InferProps<{
266
+ value: PropTypes.Validator<number>;
267
+ label: PropTypes.Validator<string>;
268
+ }>>;
259
269
  'data-name': PropTypes.Requireable<string>;
260
270
  provider: PropTypes.Requireable<PropTypes.InferProps<{
261
271
  label: PropTypes.Requireable<string>;
@@ -702,6 +712,7 @@ declare namespace ExternalCourse {
702
712
  customLabelClassName: PropTypes.Requireable<string>;
703
713
  }>>;
704
714
  required: PropTypes.Requireable<boolean>;
715
+ headingLevel: PropTypes.Requireable<number>;
705
716
  }> | null | undefined>>;
706
717
  isFetching: PropTypes.Requireable<boolean>;
707
718
  search: PropTypes.Requireable<PropTypes.InferProps<{
@@ -0,0 +1,167 @@
1
+ export default MyAssignments;
2
+ declare function MyAssignments({ title, tabs, sections, cards, emptyState, loading, onCardClick }: {
3
+ title: any;
4
+ tabs?: any[] | undefined;
5
+ sections?: any[] | undefined;
6
+ cards?: any[] | undefined;
7
+ emptyState: any;
8
+ loading?: boolean | undefined;
9
+ onCardClick: any;
10
+ }): JSX.Element;
11
+ declare namespace MyAssignments {
12
+ namespace propTypes {
13
+ export const title: PropTypes.Requireable<string>;
14
+ export const tabs: PropTypes.Requireable<(PropTypes.InferProps<{
15
+ key: PropTypes.Validator<string>;
16
+ label: PropTypes.Requireable<string>;
17
+ count: PropTypes.Requireable<number>;
18
+ selected: PropTypes.Requireable<boolean>;
19
+ onClick: PropTypes.Requireable<(...args: any[]) => any>;
20
+ }> | null | undefined)[]>;
21
+ export const sections: PropTypes.Requireable<(PropTypes.InferProps<{
22
+ key: PropTypes.Validator<string>;
23
+ title: PropTypes.Requireable<string>;
24
+ subtitle: PropTypes.Requireable<string>;
25
+ count: PropTypes.Validator<number>;
26
+ cards: PropTypes.Validator<(PropTypes.InferProps<{
27
+ typeLabel: PropTypes.Requireable<string>;
28
+ dueState: PropTypes.Validator<string>;
29
+ dueStateLabel: PropTypes.Validator<string>;
30
+ dueDateLabel: PropTypes.Validator<string>;
31
+ badge: PropTypes.Requireable<string>;
32
+ image: PropTypes.Requireable<string>;
33
+ disabled: PropTypes.Requireable<boolean>;
34
+ adaptiv: PropTypes.Requireable<boolean>;
35
+ type: PropTypes.Requireable<string>;
36
+ title: PropTypes.Requireable<string>;
37
+ author: PropTypes.Requireable<string>;
38
+ certifiedAuthor: PropTypes.Requireable<boolean>;
39
+ customer: PropTypes.Requireable<PropTypes.InferProps<{
40
+ theme: PropTypes.Requireable<string>;
41
+ type: PropTypes.Requireable<string>;
42
+ name: PropTypes.Requireable<string>;
43
+ coorpOriginal: PropTypes.Validator<boolean>;
44
+ disabled: PropTypes.Requireable<boolean>;
45
+ 'aria-label': PropTypes.Requireable<string>;
46
+ }>>;
47
+ progress: PropTypes.Requireable<number>;
48
+ favorite: PropTypes.Requireable<boolean>;
49
+ addFavoriteToolTip: PropTypes.Requireable<string>;
50
+ removeFavoriteToolTip: PropTypes.Requireable<string>;
51
+ onClick: PropTypes.Requireable<(...args: any[]) => any>;
52
+ onFavoriteClick: PropTypes.Requireable<(...args: any[]) => any>;
53
+ isSelected: PropTypes.Requireable<boolean>;
54
+ notification: PropTypes.Requireable<PropTypes.InferProps<{
55
+ message: PropTypes.Validator<string>;
56
+ icon: PropTypes.Validator<string>;
57
+ }>>;
58
+ badgeCategory: PropTypes.Requireable<string>;
59
+ badgeLabel: PropTypes.Requireable<string>;
60
+ theme: PropTypes.Requireable<string>;
61
+ disabledContent: PropTypes.Requireable<string>;
62
+ 'aria-label': PropTypes.Requireable<string>;
63
+ 'background-aria-label': PropTypes.Requireable<string>;
64
+ 'favorite-aria-label': PropTypes.Requireable<PropTypes.InferProps<{
65
+ favorite: PropTypes.Requireable<string>;
66
+ addToFavorite: PropTypes.Requireable<string>;
67
+ removeFromFavorite: PropTypes.Requireable<string>;
68
+ }>>;
69
+ 'selectable-aria-label': PropTypes.Requireable<PropTypes.InferProps<{
70
+ select: PropTypes.Requireable<string>;
71
+ unSelect: PropTypes.Requireable<string>;
72
+ }>>;
73
+ 'customer-aria-label': PropTypes.Requireable<string>;
74
+ 'badge-aria-label': PropTypes.Requireable<string>;
75
+ 'disabled-aria-label': PropTypes.Requireable<string>;
76
+ 'card-content-aria-label': PropTypes.Requireable<PropTypes.InferProps<{
77
+ author: PropTypes.Requireable<string>;
78
+ progression: PropTypes.Requireable<string>;
79
+ adaptive: PropTypes.Requireable<string>;
80
+ }>>;
81
+ }> | null | undefined)[]>;
82
+ }> | null | undefined)[]>;
83
+ import cards = cards;
84
+ export { cards };
85
+ export const loading: PropTypes.Requireable<boolean>;
86
+ export const emptyState: PropTypes.Requireable<PropTypes.InferProps<{
87
+ title: PropTypes.Requireable<string>;
88
+ message: PropTypes.Requireable<string>;
89
+ link: PropTypes.Requireable<PropTypes.InferProps<{
90
+ label: PropTypes.Requireable<string>;
91
+ href: PropTypes.Requireable<string>;
92
+ onClick: PropTypes.Requireable<(...args: any[]) => any>;
93
+ }>>;
94
+ }>>;
95
+ export const onCardClick: PropTypes.Requireable<(...args: any[]) => any>;
96
+ }
97
+ }
98
+ import PropTypes from "prop-types";
99
+ declare function Grid({ cards, onCardClick, "data-name": dataName }: {
100
+ cards: any;
101
+ onCardClick: any;
102
+ "data-name": any;
103
+ }): JSX.Element;
104
+ declare namespace Grid {
105
+ const propTypes_1: {
106
+ cards: PropTypes.Requireable<(PropTypes.InferProps<{
107
+ typeLabel: PropTypes.Requireable<string>;
108
+ dueState: PropTypes.Validator<string>;
109
+ dueStateLabel: PropTypes.Validator<string>;
110
+ dueDateLabel: PropTypes.Validator<string>;
111
+ badge: PropTypes.Requireable<string>;
112
+ image: PropTypes.Requireable<string>;
113
+ disabled: PropTypes.Requireable<boolean>;
114
+ adaptiv: PropTypes.Requireable<boolean>;
115
+ type: PropTypes.Requireable<string>;
116
+ title: PropTypes.Requireable<string>;
117
+ author: PropTypes.Requireable<string>;
118
+ certifiedAuthor: PropTypes.Requireable<boolean>;
119
+ customer: PropTypes.Requireable<PropTypes.InferProps<{
120
+ theme: PropTypes.Requireable<string>;
121
+ type: PropTypes.Requireable<string>;
122
+ name: PropTypes.Requireable<string>;
123
+ coorpOriginal: PropTypes.Validator<boolean>;
124
+ disabled: PropTypes.Requireable<boolean>;
125
+ 'aria-label': PropTypes.Requireable<string>;
126
+ }>>;
127
+ progress: PropTypes.Requireable<number>;
128
+ favorite: PropTypes.Requireable<boolean>;
129
+ addFavoriteToolTip: PropTypes.Requireable<string>;
130
+ removeFavoriteToolTip: PropTypes.Requireable<string>;
131
+ onClick: PropTypes.Requireable<(...args: any[]) => any>;
132
+ onFavoriteClick: PropTypes.Requireable<(...args: any[]) => any>;
133
+ isSelected: PropTypes.Requireable<boolean>;
134
+ notification: PropTypes.Requireable<PropTypes.InferProps<{
135
+ message: PropTypes.Validator<string>;
136
+ icon: PropTypes.Validator<string>;
137
+ }>>;
138
+ badgeCategory: PropTypes.Requireable<string>;
139
+ badgeLabel: PropTypes.Requireable<string>;
140
+ theme: PropTypes.Requireable<string>;
141
+ disabledContent: PropTypes.Requireable<string>;
142
+ 'aria-label': PropTypes.Requireable<string>;
143
+ 'background-aria-label': PropTypes.Requireable<string>;
144
+ 'favorite-aria-label': PropTypes.Requireable<PropTypes.InferProps<{
145
+ favorite: PropTypes.Requireable<string>;
146
+ addToFavorite: PropTypes.Requireable<string>;
147
+ removeFromFavorite: PropTypes.Requireable<string>;
148
+ }>>;
149
+ 'selectable-aria-label': PropTypes.Requireable<PropTypes.InferProps<{
150
+ select: PropTypes.Requireable<string>;
151
+ unSelect: PropTypes.Requireable<string>;
152
+ }>>;
153
+ 'customer-aria-label': PropTypes.Requireable<string>;
154
+ 'badge-aria-label': PropTypes.Requireable<string>;
155
+ 'disabled-aria-label': PropTypes.Requireable<string>;
156
+ 'card-content-aria-label': PropTypes.Requireable<PropTypes.InferProps<{
157
+ author: PropTypes.Requireable<string>;
158
+ progression: PropTypes.Requireable<string>;
159
+ adaptive: PropTypes.Requireable<string>;
160
+ }>>;
161
+ }> | null | undefined)[]>;
162
+ onCardClick: PropTypes.Requireable<(...args: any[]) => any>;
163
+ 'data-name': PropTypes.Requireable<string>;
164
+ };
165
+ export { propTypes_1 as propTypes };
166
+ }
167
+ //# sourceMappingURL=index.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/template/my-assignments/index.js"],"names":[],"mappings":";AAuEA;;;;;;;;gBAyEC;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAlHD;;;;gBAMC"}
@@ -0,0 +1,221 @@
1
+ function _extends() { return _extends = Object.assign ? Object.assign.bind() : function (n) { for (var e = 1; e < arguments.length; e++) { var t = arguments[e]; for (var r in t) ({}).hasOwnProperty.call(t, r) && (n[r] = t[r]); } return n; }, _extends.apply(null, arguments); }
2
+ import React, { useCallback } from 'react';
3
+ import PropTypes from 'prop-types';
4
+ import Title from '../../atom/title';
5
+ import Tabs from '../../molecule/tabs';
6
+ import Loader from '../../atom/loader';
7
+ import Link from '../../atom/link';
8
+ import FaIcon from '../../atom/icon';
9
+ import Tag from '../../atom/tag';
10
+ import { COLORS } from '../../variables/colors';
11
+ import AssignmentCard from '../../molecule/assignment-card';
12
+ import style from './style.css';
13
+
14
+ // To do is split by due date, always in this order (N4). "Later" is gone.
15
+ const SECTIONS = {
16
+ overdue: {
17
+ iconName: 'triangle-exclamation',
18
+ color: COLORS.cm_negative_200
19
+ },
20
+ dueThisWeek: {
21
+ iconName: 'clock',
22
+ color: COLORS.cm_yellow_400
23
+ },
24
+ dueAfterThisWeek: {
25
+ iconName: 'circle',
26
+ color: COLORS.cm_grey_500
27
+ }
28
+ };
29
+ const SECTION_KEYS = ['overdue', 'dueThisWeek', 'dueAfterThisWeek'];
30
+ const GridCard = ({
31
+ card,
32
+ onCardClick
33
+ }) => {
34
+ const handleClick = useCallback(event => onCardClick(card, event), [card, onCardClick]);
35
+ return /*#__PURE__*/React.createElement(AssignmentCard, _extends({}, card, {
36
+ onClick: onCardClick ? handleClick : card.onClick
37
+ }));
38
+ };
39
+ GridCard.propTypes = process.env.NODE_ENV !== "production" ? {
40
+ card: PropTypes.shape(AssignmentCard.propTypes),
41
+ onCardClick: PropTypes.func
42
+ } : {};
43
+ const Grid = ({
44
+ cards,
45
+ onCardClick,
46
+ 'data-name': dataName
47
+ }) => /*#__PURE__*/React.createElement("div", {
48
+ className: style.grid,
49
+ "data-name": dataName
50
+ }, cards.map((card, index) => /*#__PURE__*/React.createElement(GridCard, {
51
+ key: index,
52
+ card: card,
53
+ onCardClick: onCardClick
54
+ })));
55
+ Grid.propTypes = process.env.NODE_ENV !== "production" ? {
56
+ cards: PropTypes.arrayOf(PropTypes.shape(AssignmentCard.propTypes)),
57
+ onCardClick: PropTypes.func,
58
+ 'data-name': PropTypes.string
59
+ } : {};
60
+ const DueSection = ({
61
+ sectionKey,
62
+ title,
63
+ subtitle,
64
+ count,
65
+ cards,
66
+ onCardClick
67
+ }) => {
68
+ const {
69
+ iconName,
70
+ color
71
+ } = SECTIONS[sectionKey];
72
+ return /*#__PURE__*/React.createElement("section", {
73
+ className: style.section,
74
+ "data-name": "due-section",
75
+ "data-key": sectionKey
76
+ }, /*#__PURE__*/React.createElement("div", {
77
+ className: style.sectionHead
78
+ }, /*#__PURE__*/React.createElement(FaIcon, {
79
+ iconName: iconName,
80
+ iconColor: color,
81
+ size: {
82
+ faSize: 16,
83
+ wrapperSize: 16
84
+ }
85
+ }), /*#__PURE__*/React.createElement("h2", {
86
+ className: style.sectionTitle
87
+ }, title), /*#__PURE__*/React.createElement(Tag, {
88
+ label: String(count),
89
+ size: "S"
90
+ }), subtitle ? /*#__PURE__*/React.createElement("span", {
91
+ className: style.sectionSubtitle
92
+ }, subtitle) : null), /*#__PURE__*/React.createElement(Grid, {
93
+ cards: cards,
94
+ onCardClick: onCardClick
95
+ }));
96
+ };
97
+ DueSection.propTypes = process.env.NODE_ENV !== "production" ? {
98
+ sectionKey: PropTypes.oneOf(SECTION_KEYS),
99
+ title: PropTypes.string,
100
+ subtitle: PropTypes.string,
101
+ count: PropTypes.number,
102
+ cards: Grid.propTypes.cards,
103
+ onCardClick: PropTypes.func
104
+ } : {};
105
+
106
+ // « Assigned to you » at /assigned (N4): two tabs, To do (not started + in progress) in three
107
+ // due-date sections, and Finished as a flat grid. The MOOC sorts every list; lateness is never
108
+ // shown (L0) and no assignment is ever named (L5).
109
+ const MyAssignments = ({
110
+ title,
111
+ tabs = [],
112
+ sections = [],
113
+ cards = [],
114
+ emptyState,
115
+ loading = false,
116
+ onCardClick
117
+ }) => {
118
+ const selectedTab = tabs.find(tab => tab.selected);
119
+ const isTodo = !selectedTab || selectedTab.key === 'todo';
120
+ const visibleSections = SECTION_KEYS.map(key => sections.find(section => section.key === key)).filter(section => section && section.cards.length > 0);
121
+ const isEmpty = isTodo ? visibleSections.length === 0 : cards.length === 0;
122
+ const handleEmptyLinkClick = emptyState && emptyState.link && emptyState.link.onClick;
123
+ let panel;
124
+ if (loading) {
125
+ panel = /*#__PURE__*/React.createElement(Loader, null);
126
+ } else if (isEmpty) {
127
+ panel = emptyState ? /*#__PURE__*/React.createElement("div", {
128
+ className: style.empty,
129
+ "data-name": "empty-state"
130
+ }, /*#__PURE__*/React.createElement("h2", {
131
+ className: style.emptyTitle
132
+ }, emptyState.title), /*#__PURE__*/React.createElement("p", {
133
+ className: style.emptyMessage
134
+ }, emptyState.message), emptyState.link ? /*#__PURE__*/React.createElement(Link, {
135
+ className: style.emptyLink,
136
+ href: emptyState.link.href,
137
+ onClick: handleEmptyLinkClick
138
+ }, emptyState.link.label) : null) : null;
139
+ } else if (isTodo) {
140
+ panel = visibleSections.map(section => /*#__PURE__*/React.createElement(DueSection, {
141
+ key: section.key,
142
+ sectionKey: section.key,
143
+ title: section.title,
144
+ subtitle: section.subtitle,
145
+ count: section.count,
146
+ cards: section.cards,
147
+ onCardClick: onCardClick
148
+ }));
149
+ } else {
150
+ panel = /*#__PURE__*/React.createElement(Grid, {
151
+ cards: cards,
152
+ onCardClick: onCardClick,
153
+ "data-name": "finished-grid"
154
+ });
155
+ }
156
+ return /*#__PURE__*/React.createElement("div", {
157
+ className: style.backgroundContainer
158
+ }, /*#__PURE__*/React.createElement("div", {
159
+ className: style.container
160
+ }, title ? /*#__PURE__*/React.createElement(Title, {
161
+ type: "page",
162
+ title: title
163
+ }) : null, /*#__PURE__*/React.createElement(Tabs, {
164
+ compact: true,
165
+ items: tabs.map(({
166
+ key,
167
+ label,
168
+ count,
169
+ selected,
170
+ onClick
171
+ }) => ({
172
+ key,
173
+ title: label,
174
+ count,
175
+ isActive: selected,
176
+ onClick
177
+ }))
178
+ }), /*#__PURE__*/React.createElement("div", {
179
+ role: "tabpanel",
180
+ "aria-label": selectedTab && selectedTab.label,
181
+ "aria-busy": loading
182
+ }, panel)));
183
+ };
184
+ MyAssignments.propTypes = process.env.NODE_ENV !== "production" ? {
185
+ // « Assigned to you »
186
+ title: PropTypes.string,
187
+ tabs: PropTypes.arrayOf(PropTypes.shape({
188
+ key: PropTypes.oneOf(['todo', 'done']).isRequired,
189
+ label: PropTypes.string,
190
+ count: PropTypes.number,
191
+ selected: PropTypes.bool,
192
+ onClick: PropTypes.func
193
+ })),
194
+ // To do: Overdue / Due this week / Due after this week. An empty section is not rendered.
195
+ sections: PropTypes.arrayOf(PropTypes.shape({
196
+ key: PropTypes.oneOf(SECTION_KEYS).isRequired,
197
+ title: PropTypes.string,
198
+ // A date range label, e.g. "Wed 21 Oct – Wed 28 Oct"
199
+ subtitle: PropTypes.string,
200
+ // Every module of the section, whatever the number of cards loaded
201
+ count: PropTypes.number.isRequired,
202
+ cards: Grid.propTypes.cards.isRequired
203
+ })),
204
+ // Finished: most recently finished first (D1)
205
+ cards: Grid.propTypes.cards,
206
+ loading: PropTypes.bool,
207
+ // The empty state of the selected tab
208
+ emptyState: PropTypes.shape({
209
+ title: PropTypes.string,
210
+ message: PropTypes.string,
211
+ link: PropTypes.shape({
212
+ label: PropTypes.string,
213
+ href: PropTypes.string,
214
+ onClick: PropTypes.func
215
+ })
216
+ }),
217
+ // Receives the card's content and the click event
218
+ onCardClick: PropTypes.func
219
+ } : {};
220
+ export default MyAssignments;
221
+ //# sourceMappingURL=index.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.js","names":["React","useCallback","PropTypes","Title","Tabs","Loader","Link","FaIcon","Tag","COLORS","AssignmentCard","style","SECTIONS","overdue","iconName","color","cm_negative_200","dueThisWeek","cm_yellow_400","dueAfterThisWeek","cm_grey_500","SECTION_KEYS","GridCard","card","onCardClick","handleClick","event","createElement","_extends","onClick","propTypes","process","env","NODE_ENV","shape","func","Grid","cards","dataName","className","grid","map","index","key","arrayOf","string","DueSection","sectionKey","title","subtitle","count","section","sectionHead","iconColor","size","faSize","wrapperSize","sectionTitle","label","String","sectionSubtitle","oneOf","number","MyAssignments","tabs","sections","emptyState","loading","selectedTab","find","tab","selected","isTodo","visibleSections","filter","length","isEmpty","handleEmptyLinkClick","link","panel","empty","emptyTitle","emptyMessage","message","emptyLink","href","backgroundContainer","container","type","compact","items","isActive","role","isRequired","bool"],"sources":["../../../src/template/my-assignments/index.js"],"sourcesContent":["import React, {useCallback} from 'react';\nimport PropTypes from 'prop-types';\nimport Title from '../../atom/title';\nimport Tabs from '../../molecule/tabs';\nimport Loader from '../../atom/loader';\nimport Link from '../../atom/link';\nimport FaIcon from '../../atom/icon';\nimport Tag from '../../atom/tag';\nimport {COLORS} from '../../variables/colors';\nimport AssignmentCard from '../../molecule/assignment-card';\nimport style from './style.css';\n\n// To do is split by due date, always in this order (N4). \"Later\" is gone.\nconst SECTIONS = {\n overdue: {iconName: 'triangle-exclamation', color: COLORS.cm_negative_200},\n dueThisWeek: {iconName: 'clock', color: COLORS.cm_yellow_400},\n dueAfterThisWeek: {iconName: 'circle', color: COLORS.cm_grey_500}\n};\nconst SECTION_KEYS = ['overdue', 'dueThisWeek', 'dueAfterThisWeek'];\n\nconst GridCard = ({card, onCardClick}) => {\n const handleClick = useCallback(event => onCardClick(card, event), [card, onCardClick]);\n return <AssignmentCard {...card} onClick={onCardClick ? handleClick : card.onClick} />;\n};\n\nGridCard.propTypes = {\n card: PropTypes.shape(AssignmentCard.propTypes),\n onCardClick: PropTypes.func\n};\n\nconst Grid = ({cards, onCardClick, 'data-name': dataName}) => (\n <div className={style.grid} data-name={dataName}>\n {cards.map((card, index) => (\n <GridCard key={index} card={card} onCardClick={onCardClick} />\n ))}\n </div>\n);\n\nGrid.propTypes = {\n cards: PropTypes.arrayOf(PropTypes.shape(AssignmentCard.propTypes)),\n onCardClick: PropTypes.func,\n 'data-name': PropTypes.string\n};\n\nconst DueSection = ({sectionKey, title, subtitle, count, cards, onCardClick}) => {\n const {iconName, color} = SECTIONS[sectionKey];\n return (\n <section className={style.section} data-name=\"due-section\" data-key={sectionKey}>\n <div className={style.sectionHead}>\n <FaIcon iconName={iconName} iconColor={color} size={{faSize: 16, wrapperSize: 16}} />\n <h2 className={style.sectionTitle}>{title}</h2>\n <Tag label={String(count)} size=\"S\" />\n {subtitle ? <span className={style.sectionSubtitle}>{subtitle}</span> : null}\n </div>\n <Grid cards={cards} onCardClick={onCardClick} />\n </section>\n );\n};\n\nDueSection.propTypes = {\n sectionKey: PropTypes.oneOf(SECTION_KEYS),\n title: PropTypes.string,\n subtitle: PropTypes.string,\n count: PropTypes.number,\n cards: Grid.propTypes.cards,\n onCardClick: PropTypes.func\n};\n\n// « Assigned to you » at /assigned (N4): two tabs, To do (not started + in progress) in three\n// due-date sections, and Finished as a flat grid. The MOOC sorts every list; lateness is never\n// shown (L0) and no assignment is ever named (L5).\nconst MyAssignments = ({\n title,\n tabs = [],\n sections = [],\n cards = [],\n emptyState,\n loading = false,\n onCardClick\n}) => {\n const selectedTab = tabs.find(tab => tab.selected);\n const isTodo = !selectedTab || selectedTab.key === 'todo';\n const visibleSections = SECTION_KEYS.map(key =>\n sections.find(section => section.key === key)\n ).filter(section => section && section.cards.length > 0);\n const isEmpty = isTodo ? visibleSections.length === 0 : cards.length === 0;\n\n const handleEmptyLinkClick = emptyState && emptyState.link && emptyState.link.onClick;\n\n let panel;\n if (loading) {\n panel = <Loader />;\n } else if (isEmpty) {\n panel = emptyState ? (\n <div className={style.empty} data-name=\"empty-state\">\n <h2 className={style.emptyTitle}>{emptyState.title}</h2>\n <p className={style.emptyMessage}>{emptyState.message}</p>\n {emptyState.link ? (\n <Link\n className={style.emptyLink}\n href={emptyState.link.href}\n onClick={handleEmptyLinkClick}\n >\n {emptyState.link.label}\n </Link>\n ) : null}\n </div>\n ) : null;\n } else if (isTodo) {\n panel = visibleSections.map(section => (\n <DueSection\n key={section.key}\n sectionKey={section.key}\n title={section.title}\n subtitle={section.subtitle}\n count={section.count}\n cards={section.cards}\n onCardClick={onCardClick}\n />\n ));\n } else {\n panel = <Grid cards={cards} onCardClick={onCardClick} data-name=\"finished-grid\" />;\n }\n\n return (\n <div className={style.backgroundContainer}>\n <div className={style.container}>\n {title ? <Title type=\"page\" title={title} /> : null}\n <Tabs\n compact\n items={tabs.map(({key, label, count, selected, onClick}) => ({\n key,\n title: label,\n count,\n isActive: selected,\n onClick\n }))}\n />\n <div role=\"tabpanel\" aria-label={selectedTab && selectedTab.label} aria-busy={loading}>\n {panel}\n </div>\n </div>\n </div>\n );\n};\n\nMyAssignments.propTypes = {\n // « Assigned to you »\n title: PropTypes.string,\n tabs: PropTypes.arrayOf(\n PropTypes.shape({\n key: PropTypes.oneOf(['todo', 'done']).isRequired,\n label: PropTypes.string,\n count: PropTypes.number,\n selected: PropTypes.bool,\n onClick: PropTypes.func\n })\n ),\n // To do: Overdue / Due this week / Due after this week. An empty section is not rendered.\n sections: PropTypes.arrayOf(\n PropTypes.shape({\n key: PropTypes.oneOf(SECTION_KEYS).isRequired,\n title: PropTypes.string,\n // A date range label, e.g. \"Wed 21 Oct – Wed 28 Oct\"\n subtitle: PropTypes.string,\n // Every module of the section, whatever the number of cards loaded\n count: PropTypes.number.isRequired,\n cards: Grid.propTypes.cards.isRequired\n })\n ),\n // Finished: most recently finished first (D1)\n cards: Grid.propTypes.cards,\n loading: PropTypes.bool,\n // The empty state of the selected tab\n emptyState: PropTypes.shape({\n title: PropTypes.string,\n message: PropTypes.string,\n link: PropTypes.shape({\n label: PropTypes.string,\n href: PropTypes.string,\n onClick: PropTypes.func\n })\n }),\n // Receives the card's content and the click event\n onCardClick: PropTypes.func\n};\n\nexport default MyAssignments;\n"],"mappings":";AAAA,OAAOA,KAAK,IAAGC,WAAW,QAAO,OAAO;AACxC,OAAOC,SAAS,MAAM,YAAY;AAClC,OAAOC,KAAK,MAAM,kBAAkB;AACpC,OAAOC,IAAI,MAAM,qBAAqB;AACtC,OAAOC,MAAM,MAAM,mBAAmB;AACtC,OAAOC,IAAI,MAAM,iBAAiB;AAClC,OAAOC,MAAM,MAAM,iBAAiB;AACpC,OAAOC,GAAG,MAAM,gBAAgB;AAChC,SAAQC,MAAM,QAAO,wBAAwB;AAC7C,OAAOC,cAAc,MAAM,gCAAgC;AAC3D,OAAOC,KAAK,MAAM,aAAa;;AAE/B;AACA,MAAMC,QAAQ,GAAG;EACfC,OAAO,EAAE;IAACC,QAAQ,EAAE,sBAAsB;IAAEC,KAAK,EAAEN,MAAM,CAACO;EAAe,CAAC;EAC1EC,WAAW,EAAE;IAACH,QAA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