@clickview/lite 0.0.18-rc.1 → 0.0.18-rc.3

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 (316) hide show
  1. package/dist/css/11.chunk.css +14 -8
  2. package/dist/css/12.chunk.css +15 -5
  3. package/dist/css/13.chunk.css +5 -13
  4. package/dist/css/14.chunk.css +6 -6
  5. package/dist/css/15.chunk.css +15 -3
  6. package/dist/css/16.chunk.css +9 -3
  7. package/dist/css/17.chunk.css +4 -2
  8. package/dist/css/19.chunk.css +2 -6
  9. package/dist/css/2.chunk.css +0 -14
  10. package/dist/css/20.chunk.css +2 -2
  11. package/dist/css/21.chunk.css +7 -1
  12. package/dist/css/22.chunk.css +2 -2
  13. package/dist/css/23.chunk.css +2 -2
  14. package/dist/css/24.chunk.css +1 -1
  15. package/dist/css/25.chunk.css +2 -2
  16. package/dist/css/26.chunk.css +2 -2
  17. package/dist/css/27.chunk.css +1 -67
  18. package/dist/css/28.chunk.css +2 -48
  19. package/dist/css/29.chunk.css +2 -45
  20. package/dist/css/3.chunk.css +7 -13
  21. package/dist/css/31.chunk.css +1 -6
  22. package/dist/css/34.chunk.css +1 -5
  23. package/dist/css/38.chunk.css +2 -36
  24. package/dist/css/4.chunk.css +13 -5
  25. package/dist/css/44.chunk.css +1 -1
  26. package/dist/css/46.chunk.css +2 -0
  27. package/dist/css/5.chunk.css +8 -2
  28. package/dist/css/6.chunk.css +2 -0
  29. package/dist/scripts/0-d95e8444c4.chunk.js +1 -0
  30. package/dist/scripts/{1-f6fa17226d.chunk.js → 1-2b6afccaa5.chunk.js} +3 -3
  31. package/dist/scripts/11-d419aa0984.chunk.js +1 -0
  32. package/dist/scripts/12-b38a27f951.chunk.js +1 -0
  33. package/dist/scripts/13-1ad100c6fa.chunk.js +1 -0
  34. package/dist/scripts/14-9f08e07fae.chunk.js +1 -0
  35. package/dist/scripts/15-ee9fb81b9f.chunk.js +1 -0
  36. package/dist/scripts/{14-11868e2868.chunk.js → 16-8fe78e04c2.chunk.js} +1 -1
  37. package/dist/scripts/17-ea7fe3ea28.chunk.js +1 -0
  38. package/dist/scripts/18-1bb07c0b9b.chunk.js +1 -0
  39. package/dist/scripts/19-c869d34687.chunk.js +1 -0
  40. package/dist/scripts/2-a816feb2a1.chunk.js +1 -0
  41. package/dist/scripts/20-43ec005977.chunk.js +1 -0
  42. package/dist/scripts/21-8513db8251.chunk.js +1 -0
  43. package/dist/scripts/22-d4adb2384c.chunk.js +1 -0
  44. package/dist/scripts/23-d8b5b9ad2c.chunk.js +1 -0
  45. package/dist/scripts/{21-891207049a.chunk.js → 24-f2913e26e2.chunk.js} +1 -1
  46. package/dist/scripts/25-68705527ea.chunk.js +1 -0
  47. package/dist/scripts/26-7d25448f1c.chunk.js +1 -0
  48. package/dist/scripts/27-bab6c9f5c7.chunk.js +1 -0
  49. package/dist/scripts/28-080baa3fbc.chunk.js +1 -0
  50. package/dist/scripts/29-5e9889b68a.chunk.js +1 -0
  51. package/dist/scripts/3-6e2ac46662.chunk.js +7 -0
  52. package/dist/scripts/{27-f26afdae78.chunk.js → 30-cdbeea4fc5.chunk.js} +1 -1
  53. package/dist/scripts/31-6fa4413cdb.chunk.js +1 -0
  54. package/dist/scripts/32-d4725d3b7d.chunk.js +1 -0
  55. package/dist/scripts/33-bec24aab85.chunk.js +1 -0
  56. package/dist/scripts/34-c42c6cf42a.chunk.js +1 -0
  57. package/dist/scripts/{33-4579af9cf9.chunk.js → 35-4512b236f2.chunk.js} +1 -1
  58. package/dist/scripts/{34-d8b96d9f9f.chunk.js → 36-eede7769b2.chunk.js} +1 -1
  59. package/dist/scripts/37-80ed339c4f.chunk.js +1 -0
  60. package/dist/scripts/{37-afd3d321e3.chunk.js → 38-c11d4c88e3.chunk.js} +1 -1
  61. package/dist/scripts/{38-6ad53aa15b.chunk.js → 39-d0e74fb062.chunk.js} +1 -1
  62. package/dist/scripts/4-ea79bf1533.chunk.js +1 -0
  63. package/dist/scripts/{39-46c747b1d9.chunk.js → 40-d764e6157b.chunk.js} +1 -1
  64. package/dist/scripts/{40-c1b8806b1c.chunk.js → 41-0aa7093354.chunk.js} +1 -1
  65. package/dist/scripts/42-3d8c5fa14c.chunk.js +1 -0
  66. package/dist/scripts/43-969806e81e.chunk.js +1 -0
  67. package/dist/scripts/44-e8e3fef4c3.chunk.js +1 -0
  68. package/dist/scripts/45-d8f70269d6.chunk.js +1 -0
  69. package/dist/scripts/{44-7f92272274.chunk.js → 46-946ae22c1f.chunk.js} +1 -1
  70. package/dist/scripts/47-1579412cd0.chunk.js +1 -0
  71. package/dist/scripts/48-fdf97c1c73.chunk.js +1 -0
  72. package/dist/scripts/49-970fc479c8.chunk.js +1 -0
  73. package/dist/scripts/5-d1bb14adf6.chunk.js +1 -0
  74. package/dist/scripts/50-1257ab0b95.chunk.js +1 -0
  75. package/dist/scripts/{50-8cb0d9cd7d.chunk.js → 51-ac615445f0.chunk.js} +1 -1
  76. package/dist/scripts/52-874629b81c.chunk.js +1 -0
  77. package/dist/scripts/{52-bfb2683b5d.chunk.js → 53-22e3d0793b.chunk.js} +1 -1
  78. package/dist/scripts/{53-3cf5cd5f69.chunk.js → 54-da1a07610c.chunk.js} +1 -1
  79. package/dist/scripts/{54-26807e3e49.chunk.js → 55-02647df65c.chunk.js} +1 -1
  80. package/dist/scripts/56-1b6e6349fa.chunk.js +1 -0
  81. package/dist/scripts/57-8fc09ba02c.chunk.js +1 -0
  82. package/dist/scripts/{56-d4abc25ec3.chunk.js → 58-8e5cc56c3f.chunk.js} +1 -1
  83. package/dist/scripts/6-0e53df2ece.chunk.js +1 -0
  84. package/dist/scripts/7-26822045b2.chunk.js +1 -0
  85. package/dist/scripts/8-7450eff674.chunk.js +1 -0
  86. package/dist/scripts/9-f24f1577dd.chunk.js +1 -0
  87. package/dist/scripts/bundle-5ecb0c9441.min.js +1 -0
  88. package/dist/scripts/bundles.json +1 -1
  89. package/package.json +3 -3
  90. package/dist/css/0.chunk.css.map +0 -1
  91. package/dist/css/1.chunk.css +0 -146
  92. package/dist/css/1.chunk.css.map +0 -1
  93. package/dist/css/10.chunk.css +0 -20
  94. package/dist/css/10.chunk.css.map +0 -1
  95. package/dist/css/11.chunk.css.map +0 -1
  96. package/dist/css/12.chunk.css.map +0 -1
  97. package/dist/css/13.chunk.css.map +0 -1
  98. package/dist/css/14.chunk.css.map +0 -1
  99. package/dist/css/16.chunk.css.map +0 -1
  100. package/dist/css/18.chunk.css.map +0 -1
  101. package/dist/css/19.chunk.css.map +0 -1
  102. package/dist/css/21.chunk.css.map +0 -1
  103. package/dist/css/22.chunk.css.map +0 -1
  104. package/dist/css/23.chunk.css.map +0 -1
  105. package/dist/css/24.chunk.css.map +0 -1
  106. package/dist/css/25.chunk.css.map +0 -1
  107. package/dist/css/26.chunk.css.map +0 -1
  108. package/dist/css/27.chunk.css.map +0 -1
  109. package/dist/css/28.chunk.css.map +0 -1
  110. package/dist/css/29.chunk.css.map +0 -1
  111. package/dist/css/3.chunk.css.map +0 -1
  112. package/dist/css/30.chunk.css.map +0 -1
  113. package/dist/css/31.chunk.css.map +0 -1
  114. package/dist/css/32.chunk.css +0 -5
  115. package/dist/css/32.chunk.css.map +0 -1
  116. package/dist/css/34.chunk.css.map +0 -1
  117. package/dist/css/35.chunk.css +0 -7
  118. package/dist/css/35.chunk.css.map +0 -1
  119. package/dist/css/36.chunk.css +0 -4
  120. package/dist/css/36.chunk.css.map +0 -1
  121. package/dist/css/37.chunk.css +0 -4
  122. package/dist/css/37.chunk.css.map +0 -1
  123. package/dist/css/38.chunk.css.map +0 -1
  124. package/dist/css/4.chunk.css.map +0 -1
  125. package/dist/css/45.chunk.css +0 -9
  126. package/dist/css/45.chunk.css.map +0 -1
  127. package/dist/css/5.chunk.css.map +0 -1
  128. package/dist/css/9.chunk.css +0 -24
  129. package/dist/css/lite-app.css.map +0 -1
  130. package/dist/scripts/0-525bd75473.chunk.js +0 -1
  131. package/dist/scripts/0.chunk.js +0 -478
  132. package/dist/scripts/0.chunk.js.map +0 -1
  133. package/dist/scripts/1.chunk.js +0 -621
  134. package/dist/scripts/1.chunk.js.map +0 -1
  135. package/dist/scripts/10-f3b34b2d35.chunk.js +0 -1
  136. package/dist/scripts/10.chunk.js +0 -400
  137. package/dist/scripts/10.chunk.js.map +0 -1
  138. package/dist/scripts/11-a698af3f1c.chunk.js +0 -1
  139. package/dist/scripts/11.chunk.js +0 -1289
  140. package/dist/scripts/11.chunk.js.map +0 -1
  141. package/dist/scripts/12-9ace90fcbc.chunk.js +0 -1
  142. package/dist/scripts/12.chunk.js +0 -1059
  143. package/dist/scripts/12.chunk.js.map +0 -1
  144. package/dist/scripts/13-3a4f103546.chunk.js +0 -1
  145. package/dist/scripts/13.chunk.js +0 -751
  146. package/dist/scripts/13.chunk.js.map +0 -1
  147. package/dist/scripts/14.chunk.js +0 -425
  148. package/dist/scripts/14.chunk.js.map +0 -1
  149. package/dist/scripts/15-78ff5e8be2.chunk.js +0 -1
  150. package/dist/scripts/15.chunk.js +0 -609
  151. package/dist/scripts/15.chunk.js.map +0 -1
  152. package/dist/scripts/16-22f6224811.chunk.js +0 -1
  153. package/dist/scripts/16.chunk.js +0 -648
  154. package/dist/scripts/16.chunk.js.map +0 -1
  155. package/dist/scripts/17-afe6281dd5.chunk.js +0 -1
  156. package/dist/scripts/17.chunk.js +0 -541
  157. package/dist/scripts/17.chunk.js.map +0 -1
  158. package/dist/scripts/18-47be31c0b6.chunk.js +0 -1
  159. package/dist/scripts/18.chunk.js +0 -766
  160. package/dist/scripts/18.chunk.js.map +0 -1
  161. package/dist/scripts/19-89c0b2c20e.chunk.js +0 -1
  162. package/dist/scripts/19.chunk.js +0 -647
  163. package/dist/scripts/19.chunk.js.map +0 -1
  164. package/dist/scripts/2-3b37480a80.chunk.js +0 -7
  165. package/dist/scripts/2.chunk.js +0 -8259
  166. package/dist/scripts/2.chunk.js.map +0 -1
  167. package/dist/scripts/20-32ac3fe0b9.chunk.js +0 -1
  168. package/dist/scripts/20.chunk.js +0 -122
  169. package/dist/scripts/20.chunk.js.map +0 -1
  170. package/dist/scripts/21.chunk.js +0 -1571
  171. package/dist/scripts/21.chunk.js.map +0 -1
  172. package/dist/scripts/22-24236e6723.chunk.js +0 -1
  173. package/dist/scripts/22.chunk.js +0 -1387
  174. package/dist/scripts/22.chunk.js.map +0 -1
  175. package/dist/scripts/23-7b425169bc.chunk.js +0 -1
  176. package/dist/scripts/23.chunk.js +0 -1121
  177. package/dist/scripts/23.chunk.js.map +0 -1
  178. package/dist/scripts/24-40edd30087.chunk.js +0 -1
  179. package/dist/scripts/24.chunk.js +0 -1348
  180. package/dist/scripts/24.chunk.js.map +0 -1
  181. package/dist/scripts/25-887b9ef587.chunk.js +0 -1
  182. package/dist/scripts/25.chunk.js +0 -1137
  183. package/dist/scripts/25.chunk.js.map +0 -1
  184. package/dist/scripts/26-cbe0ff0f77.chunk.js +0 -1
  185. package/dist/scripts/26.chunk.js +0 -906
  186. package/dist/scripts/26.chunk.js.map +0 -1
  187. package/dist/scripts/27.chunk.js +0 -1143
  188. package/dist/scripts/27.chunk.js.map +0 -1
  189. package/dist/scripts/28-70414fd373.chunk.js +0 -1
  190. package/dist/scripts/28.chunk.js +0 -656
  191. package/dist/scripts/28.chunk.js.map +0 -1
  192. package/dist/scripts/29-944b5c01a7.chunk.js +0 -1
  193. package/dist/scripts/29.chunk.js +0 -616
  194. package/dist/scripts/29.chunk.js.map +0 -1
  195. package/dist/scripts/3-233f573a92.chunk.js +0 -1
  196. package/dist/scripts/3.chunk.js +0 -585
  197. package/dist/scripts/3.chunk.js.map +0 -1
  198. package/dist/scripts/30-3a229887e9.chunk.js +0 -1
  199. package/dist/scripts/30.chunk.js +0 -557
  200. package/dist/scripts/30.chunk.js.map +0 -1
  201. package/dist/scripts/31-ab038bfc0c.chunk.js +0 -1
  202. package/dist/scripts/31.chunk.js +0 -731
  203. package/dist/scripts/31.chunk.js.map +0 -1
  204. package/dist/scripts/32-8bd6703eef.chunk.js +0 -1
  205. package/dist/scripts/32.chunk.js +0 -957
  206. package/dist/scripts/32.chunk.js.map +0 -1
  207. package/dist/scripts/33.chunk.js +0 -938
  208. package/dist/scripts/33.chunk.js.map +0 -1
  209. package/dist/scripts/34.chunk.js +0 -523
  210. package/dist/scripts/34.chunk.js.map +0 -1
  211. package/dist/scripts/35-666d815525.chunk.js +0 -1
  212. package/dist/scripts/35.chunk.js +0 -414
  213. package/dist/scripts/35.chunk.js.map +0 -1
  214. package/dist/scripts/36-02ce5f3538.chunk.js +0 -1
  215. package/dist/scripts/36.chunk.js +0 -404
  216. package/dist/scripts/36.chunk.js.map +0 -1
  217. package/dist/scripts/37.chunk.js +0 -245
  218. package/dist/scripts/37.chunk.js.map +0 -1
  219. package/dist/scripts/38.chunk.js +0 -343
  220. package/dist/scripts/38.chunk.js.map +0 -1
  221. package/dist/scripts/39.chunk.js +0 -318
  222. package/dist/scripts/39.chunk.js.map +0 -1
  223. package/dist/scripts/4-6942fee782.chunk.js +0 -1
  224. package/dist/scripts/4.chunk.js +0 -1030
  225. package/dist/scripts/4.chunk.js.map +0 -1
  226. package/dist/scripts/40.chunk.js +0 -236
  227. package/dist/scripts/40.chunk.js.map +0 -1
  228. package/dist/scripts/41-f4c23477e3.chunk.js +0 -1
  229. package/dist/scripts/41.chunk.js +0 -231
  230. package/dist/scripts/41.chunk.js.map +0 -1
  231. package/dist/scripts/42-7a5b92d70b.chunk.js +0 -1
  232. package/dist/scripts/42.chunk.js +0 -350
  233. package/dist/scripts/42.chunk.js.map +0 -1
  234. package/dist/scripts/43-97193a87df.chunk.js +0 -1
  235. package/dist/scripts/43.chunk.js +0 -225
  236. package/dist/scripts/43.chunk.js.map +0 -1
  237. package/dist/scripts/44.chunk.js +0 -318
  238. package/dist/scripts/44.chunk.js.map +0 -1
  239. package/dist/scripts/45-265f1a7a42.chunk.js +0 -1
  240. package/dist/scripts/45.chunk.js +0 -64
  241. package/dist/scripts/45.chunk.js.map +0 -1
  242. package/dist/scripts/46-a594ad7eba.chunk.js +0 -1
  243. package/dist/scripts/46.chunk.js +0 -108
  244. package/dist/scripts/46.chunk.js.map +0 -1
  245. package/dist/scripts/47-99777c20cf.chunk.js +0 -1
  246. package/dist/scripts/47.chunk.js +0 -110
  247. package/dist/scripts/47.chunk.js.map +0 -1
  248. package/dist/scripts/48-9880523c82.chunk.js +0 -1
  249. package/dist/scripts/48.chunk.js +0 -148
  250. package/dist/scripts/48.chunk.js.map +0 -1
  251. package/dist/scripts/49-5e718594e5.chunk.js +0 -1
  252. package/dist/scripts/49.chunk.js +0 -142
  253. package/dist/scripts/49.chunk.js.map +0 -1
  254. package/dist/scripts/5-2f631dcd74.chunk.js +0 -1
  255. package/dist/scripts/5.chunk.js +0 -3262
  256. package/dist/scripts/5.chunk.js.map +0 -1
  257. package/dist/scripts/50.chunk.js +0 -145
  258. package/dist/scripts/50.chunk.js.map +0 -1
  259. package/dist/scripts/51-211b643ca5.chunk.js +0 -1
  260. package/dist/scripts/51.chunk.js +0 -176
  261. package/dist/scripts/51.chunk.js.map +0 -1
  262. package/dist/scripts/52.chunk.js +0 -160
  263. package/dist/scripts/52.chunk.js.map +0 -1
  264. package/dist/scripts/53.chunk.js +0 -98
  265. package/dist/scripts/53.chunk.js.map +0 -1
  266. package/dist/scripts/54.chunk.js +0 -48
  267. package/dist/scripts/54.chunk.js.map +0 -1
  268. package/dist/scripts/55-d38be4860b.chunk.js +0 -1
  269. package/dist/scripts/55.chunk.js +0 -99
  270. package/dist/scripts/55.chunk.js.map +0 -1
  271. package/dist/scripts/56.chunk.js +0 -64
  272. package/dist/scripts/56.chunk.js.map +0 -1
  273. package/dist/scripts/57.chunk.js +0 -72
  274. package/dist/scripts/57.chunk.js.map +0 -1
  275. package/dist/scripts/58.chunk.js +0 -73
  276. package/dist/scripts/58.chunk.js.map +0 -1
  277. package/dist/scripts/59.chunk.js +0 -70
  278. package/dist/scripts/59.chunk.js.map +0 -1
  279. package/dist/scripts/6-4d72a3c3fc.chunk.js +0 -1
  280. package/dist/scripts/6.chunk.js +0 -24
  281. package/dist/scripts/6.chunk.js.map +0 -1
  282. package/dist/scripts/60.chunk.js +0 -32
  283. package/dist/scripts/60.chunk.js.map +0 -1
  284. package/dist/scripts/61.chunk.js +0 -29
  285. package/dist/scripts/61.chunk.js.map +0 -1
  286. package/dist/scripts/62.chunk.js +0 -27
  287. package/dist/scripts/62.chunk.js.map +0 -1
  288. package/dist/scripts/63.chunk.js +0 -67
  289. package/dist/scripts/63.chunk.js.map +0 -1
  290. package/dist/scripts/64.chunk.js +0 -80
  291. package/dist/scripts/64.chunk.js.map +0 -1
  292. package/dist/scripts/65.chunk.js +0 -65
  293. package/dist/scripts/65.chunk.js.map +0 -1
  294. package/dist/scripts/66.chunk.js +0 -67
  295. package/dist/scripts/66.chunk.js.map +0 -1
  296. package/dist/scripts/67.chunk.js +0 -104
  297. package/dist/scripts/67.chunk.js.map +0 -1
  298. package/dist/scripts/68.chunk.js +0 -69
  299. package/dist/scripts/68.chunk.js.map +0 -1
  300. package/dist/scripts/69.chunk.js +0 -89
  301. package/dist/scripts/69.chunk.js.map +0 -1
  302. package/dist/scripts/7-90ad392b55.chunk.js +0 -1
  303. package/dist/scripts/7.chunk.js +0 -327
  304. package/dist/scripts/7.chunk.js.map +0 -1
  305. package/dist/scripts/70.chunk.js +0 -36
  306. package/dist/scripts/70.chunk.js.map +0 -1
  307. package/dist/scripts/8.chunk.js +0 -470
  308. package/dist/scripts/8.chunk.js.map +0 -1
  309. package/dist/scripts/9-52877087ef.chunk.js +0 -1
  310. package/dist/scripts/9.chunk.js +0 -471
  311. package/dist/scripts/9.chunk.js.map +0 -1
  312. package/dist/scripts/bundle-99976c17a2.min.js +0 -1
  313. package/dist/scripts/bundle-9f5ad50596.min.js +0 -1
  314. package/dist/scripts/bundle.js +0 -34769
  315. package/dist/scripts/bundle.js.map +0 -1
  316. /package/dist/css/{30.chunk.css → 8.chunk.css} +0 -0
@@ -1 +0,0 @@
1
- {"version":3,"sources":["file://C:/ClickView Projects/@clickview/packages/projects/lite/src/apps/classrooms/views/add-students-to-classroom/AddStudentsToClassroomView.tsx","file://C:/ClickView Projects/@clickview/packages/projects/lite/src/shared/components/share/sharee-item/ShareeItem.tsx","file://C:/ClickView Projects/@clickview/packages/projects/lite/src/shared/components/share/tokenized-typeahead/InputSelection.tsx","file://C:/ClickView Projects/@clickview/packages/projects/lite/src/shared/components/share/tokenized-typeahead/TokenizedTypeahead.tsx","webpack://@clickview/lite/./src/shared/components/share/tokenized-typeahead/tokenized-typeahead.scss?e9fc"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAAA;AACA;AAEA;AACA;AACA;AAEA;AACA;AACA;AACA;AAEA;AACA;AACA;AAGA;AAEA;AACA;AAEA,IAAM,SAAS,GAAG,mCAAlB;AACA,IAAM,SAAS,GAAG,kGAAe,CAAC,gBAAhB,CAAiC,SAAjC,CAAlB;AAEA,IAAM,qBAAqB,GAAG;AAC5B,aAAW,EAAE,8EAAW,CAAC,YADG;AAE5B,QAAM,EAAE,qEAAO,CAAC,WAAR,CAAoB;AAFA,CAA9B;AASM,SAAU,0BAAV,CAAqC,KAArC,EAA2E;AAAA,wBAC3B,4CAAK,CAAC,QAAN,CAAe,KAAf,CAD2B;AAAA;AAAA,MACvE,iBADuE;AAAA,MACpD,oBADoD;;AAAA,yBAGzC,4CAAK,CAAC,QAAN,CAA8B,EAA9B,CAHyC;AAAA;AAAA,MAGvE,UAHuE;AAAA,MAG3D,aAH2D;;AAK/E,MAAM,SAAS,GAAG,6DAAM,CAAC,aAAP,CAAoC,oGAAiB,CAAC,YAAlB,CAA+B,KAAK,CAAC,WAArC,CAApC,CAAlB,CAL+E,CAM/E;;AACA,MAAM,QAAQ,GAAG,6DAAM,CAAC,aAAP,CAAoC,wGAAkB,CAAC,kBAAnB,EAApC,CAAjB;AAEA,MAAM,QAAQ,GAAG,+DAAW,EAA5B;AACA,MAAM,MAAM,GAAG,kFAA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from 'react';\r\nimport { useDispatch } from 'react-redux';\r\n\r\nimport { LanguageService } from 'libs/common/backbone/services/LanguageService';\r\nimport { Flight } from 'libs/common/flight';\r\nimport { Popup } from 'libs/shared/components/popup/Popup';\r\nimport { PopupViewProps, PropsWithAnalyticsOptions, PropsWithPopupViewProps } from 'libs/shared/interfaces';\r\nimport { useAlerts } from 'libs/shared/hooks/UseAlerts';\r\nimport { PopupButtons } from 'libs/shared/components/popup/PopupButtons';\r\nimport { Text } from 'libs/shared/components/text/Text';\r\nimport { AppLink } from 'libs/shared/components/app-link/AppLink';\r\n\r\nimport { AppChannels } from 'shared/constants/LiteRadioChannels';\r\nimport { Actions } from 'shared/constants/LiteActions';\r\nimport { TokenizedTypeahead } from 'shared/components/share/tokenized-typeahead/TokenizedTypeahead';\r\n\r\nimport { MockClassroom } from 'apps/user-manager/interfaces/mocks/MockClassroom';\r\nimport { ClassroomRequests } from 'apps/classrooms/flight-requests/ClassroomRequests';\r\nimport { MockStudent } from 'apps/user-manager/interfaces';\r\nimport { SchoolUserRequests } from 'apps/user-manager/flight-requests/SchoolUserRequests';\r\nimport { AnalyticsHelper } from 'libs/analytics/AnalyticsHelper';\r\n\r\nconst namespace = 'classrooms.addStudentsToClassroom';\r\nconst getPhrase = LanguageService.encloseNamespace(namespace);\r\n\r\nconst studentManagerAppLink = {\r\n application: AppChannels.USER_MANAGER,\r\n action: Actions.UserManager.STUDENTS\r\n};\r\n\r\ntype AddStudentsToClassroomViewProps = PropsWithAnalyticsOptions<PropsWithPopupViewProps<{\r\n classroomId: string;\r\n}>>;\r\n\r\nexport function AddStudentsToClassroomView(props: AddStudentsToClassroomViewProps): JSX.Element {\r\n const [ showButtonSpinner, setShowButtonSpinner ] = React.useState(false);\r\n\r\n const [ selections, setSelections ] = React.useState<MockStudent[]>([]);\r\n\r\n const classroom = Flight.useBasicFetch<MockClassroom>(ClassroomRequests.getClassroom(props.classroomId));\r\n // Temp until we have instant search endpoint for users set up\r\n const students = Flight.useBasicFetch<MockStudent[]>(SchoolUserRequests.tempGetAllStudents());\r\n\r\n const dispatch = useDispatch();\r\n const alerts = useAlerts();\r\n\r\n function addStudents(): void {\r\n if (!selections)\r\n return;\r\n\r\n setShowButtonSpinner(true);\r\n\r\n Flight.fetch(dispatch, ClassroomRequests.addStudents(selections, props.classroomId, () => {\r\n setShowButtonSpinner(false);\r\n\r\n AnalyticsHelper.logUserAction({\r\n id: props.classroomId,\r\n userCount: selections.length\r\n }, props.analyticsOptions);\r\n\r\n alerts.success(getPhrase('success', {\r\n smartCount: selections.length,\r\n classroomName: classroom.data.name\r\n }));\r\n\r\n props.closePopup();\r\n }, () => {\r\n setShowButtonSpinner(false);\r\n alerts.error(getPhrase('error', { smartCount: selections.length }));\r\n props.closePopup();\r\n }));\r\n }\r\n\r\n return (\r\n <Popup\r\n title={getPhrase('title')}\r\n closePopup={props.closePopup}\r\n showLoadingSpinner={!classroom.data || !students.data}\r\n >\r\n {(classroom.data && students.data) &&\r\n <>\r\n <div className='pb-3'>\r\n <TokenizedTypeahead\r\n placeholder={getPhrase('placeholder')}\r\n selections={selections}\r\n updateSelections={(student: MockStudent) => setSelections([ ...selections, student ])}\r\n removeSelection={id => setSelections(selections.filter(s => s.id !== id))}\r\n localSuggestions={students.data}\r\n />\r\n </div>\r\n\r\n <p>\r\n <Text namespace={namespace} phrase='createNewStudent' />\r\n <AppLink className='info-link' onClick={props.closePopup} appLink={studentManagerAppLink}>\r\n <Text namespace={namespace} phrase='studentManager' />\r\n </AppLink>\r\n </p>\r\n\r\n <PopupButtons buttons={\r\n [\r\n {\r\n variant: 'link',\r\n onClick: props.closePopup,\r\n buttonText: getPhrase('cancel')\r\n },\r\n {\r\n variant: 'dark',\r\n onClick: addStudents,\r\n buttonText: getPhrase('add'),\r\n isSpinnerButton: true,\r\n showSpinner: showButtonSpinner\r\n }\r\n ]\r\n }/>\r\n </>\r\n }\r\n </Popup>\r\n );\r\n}","import React from 'react';\r\nimport { BaseObject } from 'libs/shared/interfaces';\r\nimport { Avatar } from 'shared/components/avatar/Avatar';\r\n\r\ninterface ShareeItemProps {\r\n entity: BaseObject;\r\n}\r\n\r\nexport function ShareeItem(props: ShareeItemProps): JSX.Element {\r\n return (\r\n <div className='d-flex align-items-center'>\r\n <div className='pr-2'>\r\n {/* TODO: Add avatar to user and classroom models? */}\r\n <Avatar imageUrl='' />\r\n </div>\r\n\r\n <div>\r\n <h4 className='font-size-normal font-weight-normal m-0'>{props.entity.name}</h4>\r\n <p className='text-muted m-0'>Email or classroom count here idk</p>\r\n </div>\r\n\r\n <div>\r\n\r\n </div>\r\n </div>\r\n );\r\n}","import React from 'react';\r\nimport { BaseObject } from 'libs/shared/interfaces';\r\nimport { cvSvgLibrary } from 'libs/shared/utils/SvgHelper';\r\nimport { SvgContainer } from 'libs/shared/components/svg-container/SvgContainer';\r\nimport { DivButton } from 'libs/shared/components/div-button/DivButton';\r\n\r\nimport styles from './tokenized-typeahead.scss';\r\n\r\nfunction mapEntityTypeToBackgroundColor(entityType: string): string {\r\n switch (entityType) {\r\n case 'user': {\r\n return styles.selectedUser;\r\n }\r\n\r\n case 'classroom': {\r\n return styles.selectedClassroom;\r\n }\r\n }\r\n}\r\n\r\ninterface InputSelectionProps {\r\n selection: BaseObject;\r\n onClickRemove: (id: string) => void;\r\n}\r\n\r\nexport function InputSelection(props: InputSelectionProps): JSX.Element {\r\n const colourClass = mapEntityTypeToBackgroundColor('user');\r\n\r\n return (\r\n <div className={`${colourClass} d-flex align-items-center pl-2 pr-1 mr-1 mt-1`}>\r\n <span className='mr-1'>{props.selection.name}</span>\r\n\r\n <DivButton className='cursor-pointer' onClick={() => props.onClickRemove(props.selection.id)}>\r\n <SvgContainer svgName={cvSvgLibrary.Close} />\r\n </DivButton>\r\n </div>\r\n );\r\n}","import React from 'react';\r\n\r\nimport { ArrayHelper } from 'libs/common/react/utils/ArrayHelper';\r\nimport { LanguageService } from 'libs/common/backbone/services/LanguageService';\r\nimport { BaseObject } from 'libs/shared/interfaces';\r\nimport { SearchBar } from 'libs/shared/components/search-bar/SearchBar';\r\nimport { SvgContainer } from 'libs/shared/components/svg-container/SvgContainer';\r\nimport { cvSvgLibrary } from 'libs/shared/utils/SvgHelper';\r\n\r\nimport { ShareeItem } from 'shared/components/share/sharee-item/ShareeItem';\r\nimport { InputSelection } from './InputSelection';\r\n\r\nimport styles from './tokenized-typeahead.scss';\r\n\r\nconst namespace = 'shared.tokenizedTypeahead';\r\n\r\ninterface TokenizedTypeaheadProps {\r\n placeholder: string;\r\n selections: BaseObject[];\r\n updateSelections: (suggestion: BaseObject) => void;\r\n removeSelection: (id: string) => void;\r\n recentSearchHeading?: string;\r\n endpoint?: string;\r\n localSuggestions?: BaseObject[];\r\n}\r\n\r\n/**\r\n * This component extends the functionality of the `SearchBar` component by\r\n * displaying a list of selections as tokens inside the search bar.\r\n * \r\n * Any component using this component is responsible for managing the state of\r\n * these tokens (selections). See `MainShareView` for an example.\r\n */\r\nexport function TokenizedTypeahead(props: TokenizedTypeaheadProps): JSX.Element {\r\n function onSuggestionSelected(suggestion: any): void {\r\n props.updateSelections(suggestion);\r\n }\r\n\r\n return (\r\n <div className='form-control h-auto d-flex flex-wrap align-items-center py-1 px-0 position-relative'>\r\n <SvgContainer className='svg-container mx-1 h-100 align-self-start' svgName={cvSvgLibrary.Search} />\r\n\r\n <div className={`${styles.selectionContainer} d-flex flex-wrap align-items-center mt-n1`}>\r\n {props.selections.map(s => (\r\n <InputSelection\r\n key={s.id}\r\n selection={s}\r\n onClickRemove={(id: string) => props.removeSelection(id)}\r\n />\r\n ))}\r\n\r\n <SearchBar\r\n onSuggestionSelected={onSuggestionSelected}\r\n onBackspace={() => props.removeSelection(ArrayHelper.last(props.selections).id)}\r\n local={props.localSuggestions}\r\n recentSearchHeading={props.recentSearchHeading || LanguageService.getPhrase(namespace, 'recentSearchHeading')}\r\n recentSearches={[]}\r\n placeholder={props.placeholder}\r\n searchIconPlacement={false}\r\n activationLength={2}\r\n clearQueryOnSelect\r\n getSuggestionComponent={suggestion => <ShareeItem entity={suggestion} />}\r\n theme={{\r\n container: styles.container,\r\n suggestionsContainerOpen: `bg-white py-1 rounded border mt-1 ${styles.suggestionsContainerOpen}`,\r\n suggestionsList: 'list-unstyled m-0',\r\n suggestion: 'cursor-pointer py-1 px-2',\r\n suggestionHighlighted: styles.suggestionHighlighted\r\n }}\r\n />\r\n </div>\r\n </div>\r\n );\r\n}","// extracted by mini-css-extract-plugin\nmodule.exports = {\"container\":\"cv--container--16rdL\",\"suggestionsContainerOpen\":\"cv--suggestionsContainerOpen--2886c\",\"selectionContainer\":\"cv--selectionContainer--12TCg\",\"suggestionHighlighted\":\"cv--suggestionHighlighted--3HZFR\",\"selectedUser\":\"cv--selectedUser--3NTEb\",\"selectedClassroom\":\"cv--selectedClassroom--x8G1B\"};"],"sourceRoot":""}
@@ -1,318 +0,0 @@
1
- (window["webpackJsonp_clickview_lite"] = window["webpackJsonp_clickview_lite"] || []).push([[39],{
2
-
3
- /***/ "../../libs/shared/src/apps/notifications/views/notifications/Notifications.hbs":
4
- /*!**************************************************************************************************************************!*\
5
- !*** C:/ClickView Projects/@clickview/packages/libs/shared/src/apps/notifications/views/notifications/Notifications.hbs ***!
6
- \**************************************************************************************************************************/
7
- /*! no static exports found */
8
- /***/ (function(module, exports, __webpack_require__) {
9
-
10
- var Handlebars = __webpack_require__(/*! handlebars */ "handlebars");
11
- module.exports = (Handlebars['default'] || Handlebars).template({"compiler":[8,">= 4.3.0"],"main":function(container,depth0,helpers,partials,data) {
12
- var alias1=container.propertyIsEnumerable;
13
-
14
- return "<div class=\"container-fluid bg-white p-3\">\r\n <h1 class=\"h3 header border-bottom pb-2 m-0\">"
15
- + container.escapeExpression((helpers.lang||(depth0 && depth0.lang)||container.hooks.helperMissing).call(depth0 != null ? depth0 : (container.nullContext || {}),"notifications",{"name":"lang","hash":{},"data":data}))
16
- + "</h1>\r\n <div class=\"list-region\"></div>\r\n <div class=\"pagination-region\"></div>\r\n</div>";
17
- },"useData":true});
18
-
19
- /***/ }),
20
-
21
- /***/ "../../libs/shared/src/apps/notifications/views/notifications/NotificationsView.ts":
22
- /*!*****************************************************************************************************************************!*\
23
- !*** C:/ClickView Projects/@clickview/packages/libs/shared/src/apps/notifications/views/notifications/NotificationsView.ts ***!
24
- \*****************************************************************************************************************************/
25
- /*! exports provided: NotificationsView */
26
- /***/ (function(module, __webpack_exports__, __webpack_require__) {
27
-
28
- "use strict";
29
- __webpack_require__.r(__webpack_exports__);
30
- /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "NotificationsView", function() { return NotificationsView; });
31
- /* harmony import */ var _common_src_backbone__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ../../../../../../common/src/backbone */ "../../libs/common/src/backbone/index.ts");
32
- /* harmony import */ var _common_src_backbone_services_LanguageService__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! ../../../../../../common/src/backbone/services/LanguageService */ "../../libs/common/src/backbone/services/LanguageService.tsx");
33
- /* harmony import */ var _common_src_backbone_services_InstanceManager__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! ../../../../../../common/src/backbone/services/InstanceManager */ "../../libs/common/src/backbone/services/InstanceManager.ts");
34
- /* harmony import */ var _enums_PartialLoading__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! ../../../../enums/PartialLoading */ "../../libs/shared/src/enums/PartialLoading.ts");
35
- /* harmony import */ var _constants_DataPrefixes__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(/*! ../../../../constants/DataPrefixes */ "../../libs/shared/src/constants/DataPrefixes.ts");
36
- /* harmony import */ var _constants_SharedServices__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__(/*! ../../../../constants/SharedServices */ "../../libs/shared/src/constants/SharedServices.ts");
37
- /* harmony import */ var _constants_AppVariables__WEBPACK_IMPORTED_MODULE_6__ = __webpack_require__(/*! ../../../../constants/AppVariables */ "../../libs/shared/src/constants/AppVariables.ts");
38
- /* harmony import */ var _legacy_interfaces__WEBPACK_IMPORTED_MODULE_7__ = __webpack_require__(/*! ../../../../legacy/interfaces */ "../../libs/shared/src/legacy/interfaces/index.ts");
39
- /* harmony import */ var _legacy_components_pagination_PaginationComponent__WEBPACK_IMPORTED_MODULE_8__ = __webpack_require__(/*! ../../../../legacy/components/pagination/PaginationComponent */ "../../libs/shared/src/legacy/components/pagination/PaginationComponent.ts");
40
- /* harmony import */ var _components_notification_list_NotificationListComponent__WEBPACK_IMPORTED_MODULE_9__ = __webpack_require__(/*! ../../components/notification-list/NotificationListComponent */ "../../libs/shared/src/apps/notifications/components/notification-list/NotificationListComponent.ts");
41
- /* harmony import */ var _Notifications_hbs__WEBPACK_IMPORTED_MODULE_10__ = __webpack_require__(/*! ./Notifications.hbs */ "../../libs/shared/src/apps/notifications/views/notifications/Notifications.hbs");
42
- /* harmony import */ var _Notifications_hbs__WEBPACK_IMPORTED_MODULE_10___default = /*#__PURE__*/__webpack_require__.n(_Notifications_hbs__WEBPACK_IMPORTED_MODULE_10__);
43
- /* harmony import */ var _components_notification_items_partial_loading_NotificationsPartial_hbs__WEBPACK_IMPORTED_MODULE_11__ = __webpack_require__(/*! ../../components/notification-items/partial-loading/NotificationsPartial.hbs */ "../../libs/shared/src/apps/notifications/components/notification-items/partial-loading/NotificationsPartial.hbs");
44
- /* harmony import */ var _components_notification_items_partial_loading_NotificationsPartial_hbs__WEBPACK_IMPORTED_MODULE_11___default = /*#__PURE__*/__webpack_require__.n(_components_notification_items_partial_loading_NotificationsPartial_hbs__WEBPACK_IMPORTED_MODULE_11__);
45
- /* harmony import */ var _components_notification_items_partial_loading_notification_partial_scss__WEBPACK_IMPORTED_MODULE_12__ = __webpack_require__(/*! ../../components/notification-items/partial-loading/notification-partial.scss */ "../../libs/shared/src/apps/notifications/components/notification-items/partial-loading/notification-partial.scss");
46
- /* harmony import */ var _components_notification_items_partial_loading_notification_partial_scss__WEBPACK_IMPORTED_MODULE_12___default = /*#__PURE__*/__webpack_require__.n(_components_notification_items_partial_loading_notification_partial_scss__WEBPACK_IMPORTED_MODULE_12__);
47
-
48
-
49
-
50
-
51
-
52
-
53
-
54
-
55
-
56
-
57
-
58
-
59
-
60
- class NotificationsView extends _common_src_backbone__WEBPACK_IMPORTED_MODULE_0__["Core"].View {
61
- constructor(options) {
62
- super(options);
63
- }
64
-
65
- get name() {
66
- return 'NotificationsView';
67
- }
68
-
69
- get title() {
70
- return _common_src_backbone_services_LanguageService__WEBPACK_IMPORTED_MODULE_1__["LanguageService"].getPhrase(this.lang, 'title');
71
- }
72
-
73
- get lang() {
74
- return 'notifications.notifications';
75
- }
76
-
77
- get className() {
78
- return 'notifications-container';
79
- }
80
-
81
- get template() {
82
- return _Notifications_hbs__WEBPACK_IMPORTED_MODULE_10___default.a;
83
- }
84
-
85
- regions() {
86
- return {
87
- notifications: {
88
- replaceElement: true,
89
- el: '.list-region',
90
- partialLoading: {
91
- component: _enums_PartialLoading__WEBPACK_IMPORTED_MODULE_3__["PartialLoadingComponentTypes"].ComponentCollection,
92
- options: {
93
- collectionLength: 5,
94
- childOptions: {
95
- template: _components_notification_items_partial_loading_NotificationsPartial_hbs__WEBPACK_IMPORTED_MODULE_11___default.a,
96
- className: `px-1 py-2`,
97
- viewOptions: {
98
- styles: _components_notification_items_partial_loading_notification_partial_scss__WEBPACK_IMPORTED_MODULE_12___default.a
99
- }
100
- }
101
- }
102
- }
103
- },
104
- pagination: {
105
- replaceElement: true,
106
- el: '.pagination-region'
107
- }
108
- };
109
- }
110
-
111
- initialize() {
112
- this.notificationService = _common_src_backbone_services_InstanceManager__WEBPACK_IMPORTED_MODULE_2__["InstanceManager"].getInstance(_constants_SharedServices__WEBPACK_IMPORTED_MODULE_5__["SharedServices"].Notification, this);
113
- this.appVariables = _common_src_backbone_services_InstanceManager__WEBPACK_IMPORTED_MODULE_2__["InstanceManager"].getInstance(_constants_AppVariables__WEBPACK_IMPORTED_MODULE_6__["AppVariables"].NOTIFICATIONS, this);
114
- }
115
-
116
- onData(collection) {
117
- this.collection = collection;
118
- this.render();
119
- }
120
-
121
- getCollectionIdentifier() {
122
- if (this.collectionIdentifier) return this.collectionIdentifier;
123
- return this.collectionIdentifier = new _legacy_interfaces__WEBPACK_IMPORTED_MODULE_7__["CollectionIdentifier"](Object.assign({
124
- collectionPrefix: _constants_DataPrefixes__WEBPACK_IMPORTED_MODULE_4__["SharedDataPrefixes"].NOTIFICATIONS
125
- }, this.options.params));
126
- }
127
-
128
- renderNotificationList() {
129
- const view = new _components_notification_list_NotificationListComponent__WEBPACK_IMPORTED_MODULE_9__["NotificationListComponent"]({
130
- collection: this.collection,
131
- childType: _components_notification_list_NotificationListComponent__WEBPACK_IMPORTED_MODULE_9__["NotificationChildType"].Default
132
- });
133
- this.showChildView('notifications', view);
134
- }
135
-
136
- renderPagination() {
137
- if (!this.collection.length) return;
138
- const cursors = this.notificationService.getNotificationsCursors(this.getCollectionIdentifier());
139
- const paginationComponent = new _legacy_components_pagination_PaginationComponent__WEBPACK_IMPORTED_MODULE_8__["PaginationComponent"]({
140
- cursors,
141
- appLink: Object.assign(Object.assign({}, this.appVariables.appLinks.notifications), {
142
- args: [],
143
- params: this.getCollectionIdentifier().toParams()
144
- })
145
- });
146
- this.showChildView('pagination', paginationComponent);
147
- }
148
-
149
- onBeforeRender() {
150
- if (!this.collection) {
151
- this.notificationService.getNotifications(this.options.params, this.getCollectionIdentifier(), collection => this.onData(collection));
152
- }
153
-
154
- return !!this.collection;
155
- }
156
-
157
- onRender() {
158
- this.renderNotificationList();
159
- this.renderPagination();
160
- }
161
-
162
- }
163
-
164
- /***/ }),
165
-
166
- /***/ "../../libs/shared/src/legacy/components/pagination/Pagination.hbs":
167
- /*!*************************************************************************************************************!*\
168
- !*** C:/ClickView Projects/@clickview/packages/libs/shared/src/legacy/components/pagination/Pagination.hbs ***!
169
- \*************************************************************************************************************/
170
- /*! no static exports found */
171
- /***/ (function(module, exports, __webpack_require__) {
172
-
173
- var Handlebars = __webpack_require__(/*! handlebars */ "handlebars");
174
- module.exports = (Handlebars['default'] || Handlebars).template({"1":function(container,depth0,helpers,partials,data) {
175
- return "disabled";
176
- },"compiler":[8,">= 4.3.0"],"main":function(container,depth0,helpers,partials,data) {
177
- var stack1, alias1=container.propertyIsEnumerable, alias2=depth0 != null ? depth0 : (container.nullContext || {}), alias3=container.hooks.helperMissing, alias4=container.escapeExpression;
178
-
179
- return "<div class=\"p-3\">\r\n <a class=\"btn previous-applink btn-secondary "
180
- + ((stack1 = helpers.unless.call(alias2,((stack1 = ((stack1 = (depth0 != null ? depth0.options : depth0)) != null ? stack1.cursors : stack1)) != null ? stack1.previous : stack1),{"name":"unless","hash":{},"fn":container.program(1, data, 0),"inverse":container.noop,"data":data})) != null ? stack1 : "")
181
- + "\">"
182
- + alias4((helpers.lang||(depth0 && depth0.lang)||alias3).call(alias2,"previous",{"name":"lang","hash":{},"data":data}))
183
- + "</a>\r\n <a class=\"btn next-applink btn-secondary "
184
- + ((stack1 = helpers.unless.call(alias2,((stack1 = ((stack1 = (depth0 != null ? depth0.options : depth0)) != null ? stack1.cursors : stack1)) != null ? stack1.next : stack1),{"name":"unless","hash":{},"fn":container.program(1, data, 0),"inverse":container.noop,"data":data})) != null ? stack1 : "")
185
- + "\">"
186
- + alias4((helpers.lang||(depth0 && depth0.lang)||alias3).call(alias2,"next",{"name":"lang","hash":{},"data":data}))
187
- + "</a>\r\n</div>";
188
- },"useData":true});
189
-
190
- /***/ }),
191
-
192
- /***/ "../../libs/shared/src/legacy/components/pagination/PaginationComponent.ts":
193
- /*!*********************************************************************************************************************!*\
194
- !*** C:/ClickView Projects/@clickview/packages/libs/shared/src/legacy/components/pagination/PaginationComponent.ts ***!
195
- \*********************************************************************************************************************/
196
- /*! exports provided: PaginationComponent */
197
- /***/ (function(module, __webpack_exports__, __webpack_require__) {
198
-
199
- "use strict";
200
- __webpack_require__.r(__webpack_exports__);
201
- /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "PaginationComponent", function() { return PaginationComponent; });
202
- /* harmony import */ var underscore__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! underscore */ "underscore");
203
- /* harmony import */ var underscore__WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(underscore__WEBPACK_IMPORTED_MODULE_0__);
204
- /* harmony import */ var _common_src_backbone__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! ../../../../../common/src/backbone */ "../../libs/common/src/backbone/index.ts");
205
- /* harmony import */ var _analytics_src_interfaces__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! ../../../../../analytics/src/interfaces */ "../../libs/analytics/src/interfaces/index.ts");
206
- /* harmony import */ var _analytics_src_AnalyticsHelper__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! ../../../../../analytics/src/AnalyticsHelper */ "../../libs/analytics/src/AnalyticsHelper.ts");
207
- /* harmony import */ var _Pagination_hbs__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(/*! ./Pagination.hbs */ "../../libs/shared/src/legacy/components/pagination/Pagination.hbs");
208
- /* harmony import */ var _Pagination_hbs__WEBPACK_IMPORTED_MODULE_4___default = /*#__PURE__*/__webpack_require__.n(_Pagination_hbs__WEBPACK_IMPORTED_MODULE_4__);
209
-
210
-
211
-
212
-
213
-
214
- class PaginationComponent extends _common_src_backbone__WEBPACK_IMPORTED_MODULE_1__["Core"].Component {
215
- constructor(options) {
216
- super(options);
217
- }
218
-
219
- get defaults() {
220
- return {
221
- cursors: {},
222
- cursorParamName: 'cursor'
223
- };
224
- }
225
-
226
- get name() {
227
- return 'PaginationComponent';
228
- }
229
-
230
- get template() {
231
- return _Pagination_hbs__WEBPACK_IMPORTED_MODULE_4___default.a;
232
- }
233
-
234
- get lang() {
235
- return 'shared._pagination';
236
- }
237
-
238
- get appLinks() {
239
- const appLinks = {};
240
- if (!this.options.cursors) return {};
241
-
242
- if (this.options.cursors.previous) {
243
- let previous = this.options.cursors.previous;
244
- const cursor = this.buildCursor(this.options.cursors.previous);
245
- /**
246
- * ** For legacy pagination only **
247
- * Remove the cursor param if the previous page is the first page.
248
- * This ensures that we don't unnecessarily re-fetch the first page
249
- * which in most cases would have been retrieved without using a cursor.
250
- */
251
-
252
- if (+previous <= 1 && this.options.allowFirstPageCursor !== true) delete cursor.params.cursor;
253
- appLinks['.previous-applink'] = cursor;
254
- }
255
-
256
- if (this.options.cursors.next) {
257
- appLinks['.next-applink'] = this.buildCursor(this.options.cursors.next);
258
- }
259
-
260
- return appLinks;
261
- }
262
-
263
- events() {
264
- return {
265
- 'click .previous-applink': 'onClickPrevious',
266
- 'click .next-applink': 'onClickNext'
267
- };
268
- }
269
-
270
- buildCursor(cursorParam) {
271
- return {
272
- application: this.options.appLink.application,
273
- action: this.options.appLink.action,
274
- args: this.options.appLink.args,
275
- params: underscore__WEBPACK_IMPORTED_MODULE_0__["extend"]({}, this.options.appLink.params, {
276
- [this.options.cursorParamName]: cursorParam
277
- })
278
- };
279
- }
280
-
281
- onClickPrevious() {
282
- this.logAction('previous');
283
- }
284
-
285
- onClickNext() {
286
- this.logAction('next');
287
- }
288
-
289
- logAction(page) {
290
- const analyticsOptions = _analytics_src_AnalyticsHelper__WEBPACK_IMPORTED_MODULE_3__["AnalyticsHelper"].mergeOptions(this.options.analyticsOptions, {
291
- location: _analytics_src_interfaces__WEBPACK_IMPORTED_MODULE_2__["LocationContext"].Pagination,
292
- entity: _analytics_src_interfaces__WEBPACK_IMPORTED_MODULE_2__["EntityType"].Pagination,
293
- actionType: _analytics_src_interfaces__WEBPACK_IMPORTED_MODULE_2__["UserAction"].Navigate,
294
- workflowPhase: _analytics_src_interfaces__WEBPACK_IMPORTED_MODULE_2__["WorkflowPhase"].Complete
295
- });
296
- const data = {
297
- id: this.options.collectionId,
298
- page
299
- };
300
- _analytics_src_AnalyticsHelper__WEBPACK_IMPORTED_MODULE_3__["AnalyticsHelper"].logUserAction(data, analyticsOptions);
301
- }
302
-
303
- viewOptions() {
304
- return {
305
- cursors: this.options.cursors
306
- };
307
- }
308
-
309
- onBeforeRender() {
310
- return !!this.options.cursors;
311
- }
312
-
313
- }
314
-
315
- /***/ })
316
-
317
- }]);
318
- //# sourceMappingURL=39.chunk.js.map
@@ -1 +0,0 @@
1
- {"version":3,"sources":["file://C:/ClickView Projects/@clickview/packages/libs/shared/src/apps/notifications/views/notifications/Notifications.hbs","file://C:/ClickView Projects/@clickview/packages/libs/shared/src/apps/notifications/views/notifications/NotificationsView.ts","file://C:/ClickView Projects/@clickview/packages/libs/shared/src/legacy/components/pagination/Pagination.hbs","file://C:/ClickView Projects/@clickview/packages/libs/shared/src/legacy/components/pagination/PaginationComponent.ts"],"names":[],"mappings":";;;;;;;;;AAAA,iBAAiB,mBAAO,CAAC,8BAAY;AACrC,iEAAiE;AACjE;;AAEA;AACA,mKAAmK,mBAAmB,uBAAuB,aAAa;AAC1N;AACA,CAAC,gBAAgB,E;;;;;;;;;;;;ACNjB;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AACA;AACA;AAGA;AACA;AACA;AACA;AACA;AACA;AAGA;AAGA;AAEA;AACA;AAMM,MAAO,iBAAP,SAAiC,yDAAI,CAAC,IAAtC,CAA0C;AAO9C,cAAmB,OAAnB,EAAoD;AAClD,UAAM,OAAN;AACD;;AAED,MAAW,IAAX,GAAe;AACb,WAAO,mBAAP;AACD;;AAED,MAAW,KAAX,GAAgB;AACd,WAAO,6FAAe,CAAC,SAAhB,CAA0B,KAAK,IAA/B,EAAqC,OAArC,CAAP;AACD;;AAED,MAAW,IAAX,GAAe;AACb,WAAO,6BAAP;AACD;;AAED,MAAW,SAAX,GAAoB;AAClB,WAAO,yBAAP;AACD;;AAED,MAAW,QAAX,GAAmB;AACjB,WAAO,0DAAP;AACD;;AAEM,SAAO;AACZ,WAAO;AACL,mBAAa,EAAE;AACb,sBAAc,EAAE,IADH;AAEb,U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SAAK,SAAL,CAAe,UAAf;AACD;;AAEO,aAAW;AACjB,SAAK,SAAL,CAAe,MAAf;AACD;;AAEO,WAAS,CAAC,IAAD,EAAa;AAC5B,UAAM,gBAAgB,GAAG,8EAAe,CAAC,YAAhB,CAA6B,KAAK,OAAL,CAAa,gBAA1C,EAA4D;AACnF,cAAQ,EAAE,yEAAe,CAAC,UADyD;AAEnF,YAAM,EAAE,oEAAU,CAAC,UAFgE;AAGnF,gBAAU,EAAE,oEAAU,CAAC,QAH4D;AAInF,mBAAa,EAAE,uEAAa,CAAC;AAJsD,KAA5D,CAAzB;AAOA,UAAM,IAAI,GAAG;AACX,QAAE,EAAE,KAAK,OAAL,CAAa,YADN;AAEX;AAFW,KAAb;AAKA,kFAAe,CAAC,aAAhB,CAA8B,IAA9B,EAAoC,gBAApC;AACD;;AAEM,aAAW;AAChB,WAAO;AACL,aAAO,EAAE,KAAK,OAAL,CAAa;AADjB,KAAP;AAGD;;AAEM,gBAAc;AACnB,WAAO,CAAC,CAAC,KAAK,OAAL,CAAa,OAAtB;AACD;;AAxGoD,C","file":"scripts/39.chunk.js","sourcesContent":["var Handlebars = require('handlebars');\nmodule.exports = (Handlebars['default'] || Handlebars).template({\"compiler\":[8,\">= 4.3.0\"],\"main\":function(container,depth0,helpers,partials,data) {\n var alias1=container.propertyIsEnumerable;\n\n return \"<div class=\\\"container-fluid bg-white p-3\\\">\\r\\n <h1 class=\\\"h3 header border-bottom pb-2 m-0\\\">\"\n + container.escapeExpression((helpers.lang||(depth0 && depth0.lang)||container.hooks.helperMissing).call(depth0 != null ? depth0 : (container.nullContext || {}),\"notifications\",{\"name\":\"lang\",\"hash\":{},\"data\":data}))\n + \"</h1>\\r\\n <div class=\\\"list-region\\\"></div>\\r\\n <div class=\\\"pagination-region\\\"></div>\\r\\n</div>\";\n},\"useData\":true});","import { ObjectHash } from 'backbone';\r\nimport { Core } from 'libs/common/core';\r\nimport { LanguageService } from 'libs/common/backbone/services/LanguageService';\r\nimport { InstanceManager } from 'libs/common/backbone/services/InstanceManager';\r\n\r\nimport { BaseNotificationsAppVariables } from 'libs/shared/interfaces';\r\nimport { PartialLoadingComponentTypes } from 'libs/shared/enums/PartialLoading';\r\nimport { SharedDataPrefixes } from 'libs/shared/constants/DataPrefixes';\r\nimport { SharedServices } from 'libs/shared/constants/SharedServices';\r\nimport { AppVariables } from 'libs/shared/constants/AppVariables';\r\nimport { CollectionIdentifier } from 'libs/shared/legacy/interfaces';\r\nimport { PaginationComponent } from 'libs/shared/legacy/components/pagination/PaginationComponent';\r\n\r\nimport { NotificationCollection } from 'libs/shared/apps/notifications/collections/NotificationCollection';\r\nimport { NotificationListComponent, NotificationChildType } from 'libs/shared/apps/notifications/components/notification-list/NotificationListComponent';\r\nimport { NotificationService } from 'libs/shared/apps/notifications/services/NotificationService';\r\n\r\nimport NotificationsTemplate from './Notifications.hbs';\r\n\r\nimport PartialLoadingTemplate from '../../components/notification-items/partial-loading/NotificationsPartial.hbs';\r\nimport PartialLoadingStyles from '../../components/notification-items/partial-loading/notification-partial.scss';\r\n\r\nexport interface NotificationsViewOptions extends Core.ViewOptions {\r\n params: ObjectHash;\r\n}\r\n\r\nexport class NotificationsView extends Core.View {\r\n protected options: NotificationsViewOptions;\r\n public collection: NotificationCollection;\r\n private collectionIdentifier: CollectionIdentifier;\r\n private notificationService: NotificationService;\r\n private appVariables: BaseNotificationsAppVariables;\r\n\r\n public constructor(options: NotificationsViewOptions) {\r\n super(options);\r\n }\r\n\r\n public get name(): string {\r\n return 'NotificationsView';\r\n }\r\n\r\n public get title(): string {\r\n return LanguageService.getPhrase(this.lang, 'title');\r\n }\r\n\r\n public get lang(): string {\r\n return 'notifications.notifications';\r\n }\r\n\r\n public get className(): string {\r\n return 'notifications-container';\r\n }\r\n\r\n public get template(): any {\r\n return NotificationsTemplate;\r\n }\r\n\r\n public regions(): ObjectHash {\r\n return {\r\n notifications: {\r\n replaceElement: true,\r\n el: '.list-region',\r\n partialLoading: {\r\n component: PartialLoadingComponentTypes.ComponentCollection,\r\n options: {\r\n collectionLength: 5,\r\n childOptions: {\r\n template: PartialLoadingTemplate,\r\n className: `px-1 py-2`,\r\n viewOptions: {\r\n styles: PartialLoadingStyles\r\n }\r\n }\r\n }\r\n }\r\n },\r\n pagination: {\r\n replaceElement: true,\r\n el: '.pagination-region',\r\n }\r\n };\r\n }\r\n\r\n public initialize(): void {\r\n this.notificationService = InstanceManager.getInstance(SharedServices.Notification, this);\r\n this.appVariables = InstanceManager.getInstance(AppVariables.NOTIFICATIONS, this);\r\n }\r\n\r\n private onData(collection: NotificationCollection): void {\r\n this.collection = collection;\r\n this.render();\r\n }\r\n\r\n private getCollectionIdentifier(): CollectionIdentifier {\r\n if (this.collectionIdentifier)\r\n return this.collectionIdentifier;\r\n\r\n return this.collectionIdentifier = new CollectionIdentifier({\r\n collectionPrefix: SharedDataPrefixes.NOTIFICATIONS,\r\n ...this.options.params\r\n });\r\n }\r\n\r\n private renderNotificationList(): void {\r\n const view = new NotificationListComponent({\r\n collection: this.collection,\r\n childType: NotificationChildType.Default,\r\n });\r\n\r\n this.showChildView('notifications', view);\r\n }\r\n\r\n private renderPagination(): void {\r\n if (!this.collection.length) return;\r\n\r\n const cursors = this.notificationService.getNotificationsCursors(this.getCollectionIdentifier());\r\n\r\n const paginationComponent = new PaginationComponent({\r\n cursors,\r\n appLink: {\r\n ...this.appVariables.appLinks.notifications,\r\n args: [],\r\n params: this.getCollectionIdentifier().toParams()\r\n }\r\n });\r\n\r\n this.showChildView('pagination', paginationComponent);\r\n }\r\n\r\n public onBeforeRender(): boolean {\r\n if (!this.collection) {\r\n this.notificationService.getNotifications(this.options.params,\r\n this.getCollectionIdentifier(),\r\n (collection: NotificationCollection) => this.onData(collection)\r\n );\r\n }\r\n\r\n return !!this.collection;\r\n }\r\n\r\n public onRender(): void {\r\n this.renderNotificationList();\r\n this.renderPagination();\r\n }\r\n}\r\n","var Handlebars = require('handlebars');\nmodule.exports = (Handlebars['default'] || Handlebars).template({\"1\":function(container,depth0,helpers,partials,data) {\n return \"disabled\";\n},\"compiler\":[8,\">= 4.3.0\"],\"main\":function(container,depth0,helpers,partials,data) {\n var stack1, alias1=container.propertyIsEnumerable, alias2=depth0 != null ? depth0 : (container.nullContext || {}), alias3=container.hooks.helperMissing, alias4=container.escapeExpression;\n\n return \"<div class=\\\"p-3\\\">\\r\\n <a class=\\\"btn previous-applink btn-secondary \"\n + ((stack1 = helpers.unless.call(alias2,((stack1 = ((stack1 = (depth0 != null ? depth0.options : depth0)) != null ? stack1.cursors : stack1)) != null ? stack1.previous : stack1),{\"name\":\"unless\",\"hash\":{},\"fn\":container.program(1, data, 0),\"inverse\":container.noop,\"data\":data})) != null ? stack1 : \"\")\n + \"\\\">\"\n + alias4((helpers.lang||(depth0 && depth0.lang)||alias3).call(alias2,\"previous\",{\"name\":\"lang\",\"hash\":{},\"data\":data}))\n + \"</a>\\r\\n <a class=\\\"btn next-applink btn-secondary \"\n + ((stack1 = helpers.unless.call(alias2,((stack1 = ((stack1 = (depth0 != null ? depth0.options : depth0)) != null ? stack1.cursors : stack1)) != null ? stack1.next : stack1),{\"name\":\"unless\",\"hash\":{},\"fn\":container.program(1, data, 0),\"inverse\":container.noop,\"data\":data})) != null ? stack1 : \"\")\n + \"\\\">\"\n + alias4((helpers.lang||(depth0 && depth0.lang)||alias3).call(alias2,\"next\",{\"name\":\"lang\",\"hash\":{},\"data\":data}))\n + \"</a>\\r\\n</div>\";\n},\"useData\":true});","import * as _ from 'underscore';\r\nimport { ObjectHash } from 'backbone';\r\n\r\nimport { Core } from 'libs/common/core';\r\nimport { Cursors } from 'libs/common/backbone/interfaces';\r\n\r\nimport { AnalyticsOptions, WorkflowPhase, UserAction, LocationContext, EntityType } from 'libs/analytics/interfaces';\r\nimport { AnalyticsHelper } from 'libs/analytics/AnalyticsHelper';\r\n\r\nimport PaginationTemplate from './Pagination.hbs';\r\n\r\ninterface PaginationComponentOptions extends Core.ComponentOptions {\r\n cursors: Cursors;\r\n appLink: Core.AppLink;\r\n collectionId?: string;\r\n allowFirstPageCursor?: boolean;\r\n analyticsOptions?: AnalyticsOptions;\r\n cursorParamName?: string;\r\n}\r\n\r\nexport class PaginationComponent extends Core.Component {\r\n public options: PaginationComponentOptions;\r\n\r\n constructor(options: PaginationComponentOptions) {\r\n super(options);\r\n }\r\n\r\n public get defaults(): ObjectHash {\r\n return {\r\n cursors: {},\r\n cursorParamName: 'cursor'\r\n };\r\n }\r\n\r\n public get name(): string {\r\n return 'PaginationComponent';\r\n }\r\n\r\n public get template(): any {\r\n return PaginationTemplate;\r\n }\r\n\r\n public get lang(): string {\r\n return 'shared._pagination';\r\n }\r\n\r\n public get appLinks(): Core.AppLinkHash {\r\n const appLinks: ObjectHash = {};\r\n\r\n if (!this.options.cursors)\r\n return {};\r\n\r\n if (this.options.cursors.previous) {\r\n let previous = this.options.cursors.previous;\r\n\r\n const cursor = this.buildCursor(this.options.cursors.previous);\r\n\r\n /**\r\n * ** For legacy pagination only **\r\n * Remove the cursor param if the previous page is the first page.\r\n * This ensures that we don't unnecessarily re-fetch the first page \r\n * which in most cases would have been retrieved without using a cursor. \r\n */\r\n if (+previous <= 1 && this.options.allowFirstPageCursor !== true)\r\n delete cursor.params.cursor;\r\n\r\n appLinks['.previous-applink'] = cursor;\r\n }\r\n\r\n if (this.options.cursors.next) {\r\n appLinks['.next-applink'] = this.buildCursor(this.options.cursors.next);\r\n }\r\n\r\n return appLinks;\r\n }\r\n\r\n public events(): ObjectHash {\r\n return {\r\n 'click .previous-applink': 'onClickPrevious',\r\n 'click .next-applink': 'onClickNext'\r\n };\r\n }\r\n\r\n private buildCursor(cursorParam: string): ObjectHash {\r\n return {\r\n application: this.options.appLink.application,\r\n action: this.options.appLink.action,\r\n args: this.options.appLink.args,\r\n params: _.extend({}, this.options.appLink.params, { [this.options.cursorParamName]: cursorParam })\r\n };\r\n }\r\n\r\n private onClickPrevious(): void {\r\n this.logAction('previous');\r\n }\r\n\r\n private onClickNext(): void {\r\n this.logAction('next');\r\n }\r\n\r\n private logAction(page: string): void {\r\n const analyticsOptions = AnalyticsHelper.mergeOptions(this.options.analyticsOptions, {\r\n location: LocationContext.Pagination,\r\n entity: EntityType.Pagination,\r\n actionType: UserAction.Navigate,\r\n workflowPhase: WorkflowPhase.Complete\r\n });\r\n\r\n const data = {\r\n id: this.options.collectionId,\r\n page\r\n };\r\n\r\n AnalyticsHelper.logUserAction(data, analyticsOptions);\r\n }\r\n\r\n public viewOptions(): ObjectHash {\r\n return {\r\n cursors: this.options.cursors\r\n };\r\n }\r\n\r\n public onBeforeRender(): boolean {\r\n return !!this.options.cursors;\r\n }\r\n}"],"sourceRoot":""}
@@ -1 +0,0 @@
1
- (window.webpackJsonp_clickview_lite=window.webpackJsonp_clickview_lite||[]).push([[4],{421:function(e,t,a){"use strict";a.d(t,"a",(function(){return s}));var n=a(16),r=a(27),i=function(e,t){var a={};for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&t.indexOf(n)<0&&(a[n]=e[n]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols){var r=0;for(n=Object.getOwnPropertySymbols(e);r<n.length;r++)t.indexOf(n[r])<0&&Object.prototype.propertyIsEnumerable.call(e,n[r])&&(a[n[r]]=e[n[r]])}return a};function l(e,t,a,r){return{url:"/api/domain/v2/objects/"+t,key:`favourite:video:${t}:${e}`,data:{favouriteVideos:e},type:n.a.PUT,invalidationKeys:["favourite:videos:"+t,"video:is:favourited:"+t],success:a,error:r}}function c(e,t,a,r){return{url:`/api/domain/v2/objects/${t}/favouriteVideos/${e}`,key:`favourite:video:${t}:${e}`,type:n.a.DELETE,invalidationKeys:["favourite:videos:"+t,"video:is:favourited:"+t],success:a,error:r}}const s={favouriteVideos:(e,t)=>({url:`/api/domain/v2/objects/${e}/favouriteVideos?query=${`${r.a.VIDEO_COLLECTION}${function(e){return e?"&cursor="+e:""}(t)}`}`,key:`favourite:videos:${e}${t?":"+t:""}`}),updateIsVideoFavourited:(e,t,a,n,r)=>(a?l:c)(e,t,n,r),isFavourited(e,t){const a=t.slice().sort();return{url:`/api/domain/v2/objects?query=favouritedBy{id:${e}}&${a.map(e=>"id="+e).join("&")}`,key:`video:is:favourited:${e}:by:id:${a.join(",")}`,formatData:e=>{var t;if(!(null===(t=e)||void 0===t?void 0:t.length))return e;return e.map(e=>{var t,a;const{favouritedBy:n}=e,r=i(e,["favouritedBy"]);return Object.assign(Object.assign({},r),{isFavourited:!!(null===(a=null===(t=n)||void 0===t?void 0:t.data)||void 0===a?void 0:a.length)})})}}}}},427:function(e,t,a){"use strict";a.d(t,"a",(function(){return s}));var n=a(0),r=a(7),i=a(33),l=a(34),c=a(10);function s({backToName:e,appLink:t,color:a}){const s=e?r.a.getPhrase("shared.backButton","backTo",{backToName:e}):r.a.getPhrase("shared.backButton","back"),o="black"===a?"":"text-light";return n.createElement(l.a,{appLink:t,className:"d-inline-flex align-items-center h5 mb-0 "+o},n.createElement(i.a,{svgName:c.b.ChevronLeft,size:i.b.Medium}),n.createElement("span",{className:"ml-1"},s))}s.defaultProps={color:"black"}},494:function(e,t,a){"use strict";a.d(t,"a",(function(){return l}));var n=a(68),r=a(4),i=a(11);function l(e,t){switch(t){case n.a.AddToPlaylist:return{application:r.a.PLAYLISTS,action:i.a.Playlists.ADD_TO_PLAYLIST,args:[e.id]};case n.a.Share:return{application:r.a.DEFAULT,action:i.a.Default.SHARE,args:[e.id],params:{entityType:"video"}}}}},557:function(e,t,a){"use strict";var n=a(0),r=a(51),i=a(26),l=a(35),c=a(48),s=a(427),o=a(444),m=a(129);function u(e){var t=e.video;return t.resources&&t.resources.data&&t.resources.data.length?n.createElement("div",{className:e.className},n.createElement("h2",{className:"h4"},"Resources"),t.resources.data.map((function(e,t){return n.createElement("div",{key:t},e.name)}))):n.createElement(n.Fragment,null)}var d=a(92),v=a.n(d),p=a(7),E=a(3),f=a(409),g=a(12),b=a(126),h=a(31),N=a(594),y=a.n(N);function L(e){var t=g.a.useBasicFetch(b.a.config),a=g.a.useBasicFetch({url:"/api/integrations/token/immersive-reader",key:"immersive:reader:token"});if(!t.data||!a.data)return n.createElement(n.Fragment,null);return e.title||(e.title=p.a.getPhrase("shared.immersiveReader","titleFallback")),n.createElement("div",{className:"".concat(y.a.button," ").concat(e.className||""),onClick:function(){h.a.logUserAction(e.analyticsData,e.analyticsOptions);var t={title:e.title,chunks:[{content:e.text}]},n=a.data,r=n.subdomain,i=n.token;f.launchAsync(i,r,t,{uiZIndex:5e3})}},n.createElement("svg",{viewBox:"0 0 40 37"},n.createElement("path",{d:"M37.4,0.9 L37.4,9.6 L35.4,9.6 L35.4,2.9 L24.4,2.9 C22.9,3.3 20,4.5 20,6 L20,17.2 L18,17.2 L18,6 C18,5 15.6,3.6 13.8,2.9 L2,2.9 L2,29 L12.4,29 L12.4,31 L0,31 L0,0.9 L14.1,0.9 L14.3,1 C15,1.2 17.5,2.2 18.9,3.7 C20.5,1.9 23.5,1.1 23.9,1 L24.1,1 L37.4,1 L37.4,0.9 Z",fill:"#000000"}),n.createElement("path",{d:"M27.4,37 L25.8,37 L18.4,29.4 L14,29.4 L14,21 L18.4,20.9 L26.1,13 L27.4,13 L27.4,37 Z M16,27.4 L19.2,27.4 L25.3,33.7 L25.3,16.6 L19.2,22.9 L15.9,22.9 L15.9,27.4 L16,27.4 Z",fill:"#0197F2"}),n.createElement("path",{d:"M31.3,32.7 L29.6,31.7 C29.6,31.7 31.7,28.3 31.7,25.2 C31.7,21.9 29.6,18.5 29.6,18.4 L31.3,17.4 C31.4,17.6 33.7,21.3 33.7,25.2 C33.7,28.8 31.4,32.6 31.3,32.7 Z",fill:"#0197F2"}),n.createElement("path",{d:"M36.4,36.2 L34.8,35 C34.8,35 38,30.8 38,25.2 C38,19.6 34.8,15.4 34.8,15.4 L36.4,14.2 C36.5,14.4 40,19 40,25.3 C40,31.5 36.5,36 36.4,36.2 Z",fill:"#0197F2"})))}var k=a(595),w=a.n(k);function x(e){var t=e.tags,a=e.className;return t&&t.data&&t.data.length?n.createElement("div",{className:a},n.createElement(c.b,{phrase:"tags"})," ",t.data.map((function(e,t){return n.createElement("span",{className:"badge mr-1 p-1 badge-light",key:t},e.name)}))):n.createElement(n.Fragment,null)}function P(e){var t=e.label,a=e.items,r=e.className;if(!(a&&a.data&&a.data.length))return n.createElement(n.Fragment,null);var i=a.data.map((function(e){return e.name})).join(", ");return n.createElement("div",{className:r},t,": ",i)}function O(e){var t=e.video,a=t.tags,r=t.rating,i=t.productionYear,l=t.productionCompanies,s=t.distributors,o=r&&r.code;return n.createElement(n.Fragment,null,n.createElement("h2",{className:"h4"},n.createElement(c.b,{phrase:"details"})),n.createElement("div",{className:"row no-gutters"},n.createElement("div",{className:"col-3"},o&&n.createElement("div",{className:"pb-2"},n.createElement(c.b,{phrase:"rating",options:{code:o}})),i&&n.createElement("div",{className:"pb-2"},n.createElement(c.b,{phrase:"productionYear",options:{year:i}}))),n.createElement("div",{className:"col-9"},n.createElement(P,{label:p.a.getPhrase("shared.videoDetails","productionCompanies"),items:l,className:"pb-2"}),n.createElement(P,{label:p.a.getPhrase("shared.videoDetails","distributors"),items:s,className:"pb-2"}),n.createElement(x,{tags:a,className:"pb-2"}))))}function C(e){var t,a=e.video;return(null===(t=a)||void 0===t?void 0:t.description)?n.createElement(n.Fragment,null,n.createElement("h2",{className:"h4"},n.createElement(c.b,{phrase:"description"}),n.createElement(L,{text:a.description,title:a.name,className:"pl-2",analyticsOptions:{location:E.j.PlayPage,entity:E.d.Video,actionType:E.n.Click,descriptor:E.b.LaunchImmersiveReader,workflowPhase:E.o.Complete},analyticsData:{id:a.id,type:"description"}})),n.createElement("p",null,a.description)):n.createElement(n.Fragment,null)}function F(e){var t=e.video;return n.createElement(c.a.Provider,{value:"shared.videoDetails"},n.createElement("div",{className:"rounded border px-3 mb-3"},n.createElement(v.a,{autoHeight:!0,autoHeightMax:368},n.createElement("div",{className:"py-3"},n.createElement(O,{video:t}),n.createElement(C,{video:t}),n.createElement("span",{className:"".concat(w.a.showGlance," cursor-pointer"),onClick:e.onClickShowSynopsis,role:"button",tabIndex:0},n.createElement("strong",null,n.createElement(c.b,{namespace:"shared.videoDetails",phrase:"showGlance"})))))))}var D=a(10),A=a(33),T=a(119),S=a(596),_=a.n(S);function j(e){var t=e.interactive,a=function(e){var t=e.owner;return t&&t.name&&t.surname?t.name.substring(0,1)+". "+t.surname:""}(t),r=function(e){var t,a,n,r,i;return null===(i=null===(r=null===(n=null===(a=null===(t=e.owner)||void 0===t?void 0:t.customers)||void 0===a?void 0:a.data)||void 0===n?void 0:n[0])||void 0===r?void 0:r.organisation)||void 0===i?void 0:i.name}(t);return n.createElement("div",{className:"border rounded w-33 py-3 px-1 d-flex align-items-center mr-3"},n.createElement("div",{className:"d-flex align-items-center w-100"},n.createElement(A.a,{className:"svg-container",svgName:D.b.Play,size:A.b.ExtraLarge}),n.createElement("span",{className:_.a.content},r&&n.createElement("small",null,a&&n.createElement(n.Fragment,null,a,", "),n.createElement("em",null,r)),n.createElement("h3",{className:"h6 mb-0 clamp-2 ".concat(_.a.clamped),title:t.name},t.name),n.createElement(A.a,{className:"svg-container align-middle mr-1",svgName:D.b.Preview}),n.createElement("span",{className:"text-info"},n.createElement(c.b,{namespace:"shared.interactives",phrase:"preview"}))),n.createElement(A.a,{className:"svg-container",svgName:D.b.More,size:A.b.ExtraLarge})))}function I(e){var t,a,r,i=e.video,l=null===(r=null===(a=null===(t=i)||void 0===t?void 0:t.interactives)||void 0===a?void 0:a.data)||void 0===r?void 0:r.length;return n.createElement("div",{className:"pb-3"},n.createElement("h2",{className:"h4"},n.createElement(c.b,{namespace:"shared.interactives",phrase:"interactives"}),n.createElement(T.a,{className:"btn btn-outline-dark ml-3 align-middle",svgName:D.b.Plus},n.createElement(c.b,{namespace:"shared.interactives",phrase:"create"}))),n.createElement("div",{className:"d-flex align-items-stretch"},l?i.interactives.data.map((function(e){return n.createElement(j,{interactive:e,key:e.id})})):n.createElement("div",null,n.createElement(A.a,{className:"svg-container mr-2 align-top",svgName:D.b.Star}),n.createElement(c.b,{namespace:"shared.interactives",phrase:"empty"}))))}var R=a(28),$=a(132),M=a(434),B=a(597),V=a.n(B);function Y(e){var t=e.clip,a=t.endTime-t.startTime,r=$.a.ToDisplayDuration(1e3*a),i=e.duration/1e3,l=t.startTime/i*100,c=a/i*100,s=n.createElement(R.Tooltip,{id:"tooltip-top"},r);return n.createElement("div",{className:"".concat(V.a.bar," rounded mt-2")},n.createElement(R.OverlayTrigger,{overlay:s},n.createElement("div",{className:"".concat(V.a.subBar," bg-primary rounded"),style:{width:"".concat(c,"%"),marginLeft:"".concat(l,"%")}})))}function H(e){var t=e.clip,a=t.endTime-t.startTime;return n.createElement("div",{className:"border rounded w-33 py-3 px-1 d-flex align-items-center mr-3 flex-wrap"},n.createElement("div",{className:"d-flex align-self-center w-100"},n.createElement(A.a,{className:"svg-container align-self-center",svgName:D.b.Play,size:A.b.ExtraLarge}),n.createElement("span",{className:V.a.content},n.createElement("div",{className:"d-flex"},n.createElement("h3",{className:"h6 mb-0 d-inline-block text-truncate",title:t.name},t.name),n.createElement("div",{className:"flex-shrink-0"},n.createElement(M.a,{type:M.b.Duration,data:1e3*a}))),t.description&&n.createElement("p",{className:"".concat(V.a.clampedDescription," mb-0 clamp-2"),title:t.description},t.description),n.createElement(Y,Object.assign({},e))),n.createElement(A.a,{className:"svg-container align-self-center",svgName:D.b.More,size:A.b.ExtraLarge})))}function U(e){var t,a,r,i=e.video,l=null===(r=null===(a=null===(t=i)||void 0===t?void 0:t.clips)||void 0===a?void 0:a.data)||void 0===r?void 0:r.length;return n.createElement("div",{className:"pb-3"},n.createElement("h2",{className:"h4"},n.createElement(c.b,{namespace:"shared.clips",phrase:"clips"}),n.createElement(T.a,{className:"btn btn-outline-dark ml-3 align-middle",svgName:D.b.Plus},n.createElement(c.b,{namespace:"shared.clips",phrase:"create"}))),n.createElement("div",{className:"d-flex align-items-stretch"},l?i.clips.data.map((function(e){return n.createElement(H,{duration:i.duration,clip:e,key:e.id})})):n.createElement("div",null,n.createElement(A.a,{className:"svg-container mr-2 align-top",svgName:D.b.Star}),n.createElement(c.b,{namespace:"shared.clips",phrase:"empty"}))))}function Z(e){return function(t){var a=n.useCallback(t,[]);n.useEffect((function(){return window.addEventListener(e,a),function(){return window.removeEventListener(e,a)}}),[])}}var K=Z("scroll"),z=Z("resize"),G=a(494),q=a(11),J=a(4),X=a(52),Q=a(130),W=a(474);function ee(e){var t=e.video,a={application:J.a.DEFAULT,action:q.a.Default.SERIES,args:t.series?[t.series.id,l.a.slugify(t.series.name)]:[]};return n.createElement("div",{className:"mb-2"},n.createElement("h1",{className:"h3 d-inline-block m-0"},!!t.series&&n.createElement(Q.a,{video:t,appLink:a}),t.name),!!i.a.isFunction(e.setFavourite)&&n.createElement(W.a,{setFavourite:e.setFavourite,video:t,className:"d-inline-block ml-2 align-text-bottom"}))}function te(e){var t=e.video,a=t.rating,r=t.productionYear;return n.createElement("div",null,a&&n.createElement("span",{className:"badge badge-light p-1 mr-1"},a.code),r&&n.createElement("span",{className:"badge badge-light p-1 mr-1"},r))}var ae=a(68);function ne(e){var t="btn btn-light float-right ml-2",a=n.useContext(m.a).getActionAppLink;return n.createElement(c.a.Provider,{value:"shared.playPage"},n.createElement("div",{className:"mt-3 clearfix"},n.createElement(T.a,{svgName:D.b.Plus,className:"btn btn-outline-secondary mr-2"},n.createElement(c.b,{phrase:"createInteractive"})),n.createElement(T.a,{svgName:D.b.Plus,className:"btn btn-outline-secondary mr-2"},n.createElement(c.b,{phrase:"createClip"})),n.createElement(T.a,{svgName:D.b.More,className:t},n.createElement(c.b,{phrase:"more"})),n.createElement(T.a,{svgName:D.b.Share,className:t,appLink:a(e.video,ae.a.Share)},n.createElement(c.b,{phrase:"share"})),n.createElement(T.a,{svgName:D.b.AddToPlaylists,className:t},n.createElement(c.b,{phrase:"addToPlaylist"})),n.createElement(T.a,{svgName:D.b.Plus,className:t},n.createElement(c.b,{phrase:"favourite"}))))}var re=a(410),ie=a(413),le=a(598),ce=a.n(le);function se(e){var t=e.video,a=e.onClickFullDescription;if(!t.glance||!t.glance.content||"text/markdown"!==t.glance.format)return a(),n.createElement(n.Fragment,null);var r=[{className:ce.a.topLeft,url:"https://i.imgur.com/3GafOwO.png"},{className:ce.a.topRight,url:"https://i.imgur.com/wcNZVth.png"},{className:ce.a.bottomLeft,url:"https://i.imgur.com/vUEo7H2.png"},{className:ce.a.bottomRight,url:"https://i.imgur.com/R3gcyGY.png"}];return n.createElement("div",{className:"rounded border px-3 position-relative d-flex align-items-center justify-content-center ".concat(ce.a.container)},n.createElement("div",{className:"".concat(ce.a.content," py-5")},n.createElement("h2",null,n.createElement(c.b,{namespace:"shared.synopsis",phrase:"videoAtAGlance"})),n.createElement("div",{dangerouslySetInnerHTML:{__html:re(t.glance.content)}}),n.createElement(ie.a,{onClick:e.onClickFullDescription,className:"cursor-pointer d-inline-block"},n.createElement("strong",null,n.createElement(c.b,{namespace:"shared.synopsis",phrase:"showFullDescription"})))),r.map((function(e,t){return n.createElement("div",{key:t,className:"".concat(e.className," ").concat(ce.a.background),style:{backgroundImage:"url('".concat(e.url,"')")}})})))}function oe(e,t){return function(e){if(Array.isArray(e))return e}(e)||function(e,t){if("undefined"==typeof Symbol||!(Symbol.iterator in Object(e)))return;var a=[],n=!0,r=!1,i=void 0;try{for(var l,c=e[Symbol.iterator]();!(n=(l=c.next()).done)&&(a.push(l.value),!t||a.length!==t);n=!0);}catch(e){r=!0,i=e}finally{try{n||null==c.return||c.return()}finally{if(r)throw i}}return a}(e,t)||function(e,t){if(!e)return;if("string"==typeof e)return me(e,t);var a=Object.prototype.toString.call(e).slice(8,-1);"Object"===a&&e.constructor&&(a=e.constructor.name);if("Map"===a||"Set"===a)return Array.from(e);if("Arguments"===a||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(a))return me(e,t)}(e,t)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function me(e,t){(null==t||t>e.length)&&(t=e.length);for(var a=0,n=new Array(t);a<t;a++)n[a]=e[a];return n}a.d(t,"a",(function(){return ve}));var ue=function(e){return{application:J.a.DEFAULT,action:q.a.Default.PLAY_VIDEO,args:[e.id,l.a.slugify(e.name)]}},de=function(e){return{application:J.a.DEFAULT,action:q.a.Default.SERIES,args:[e.id,l.a.slugify(e.name)]}};function ve(e){var t=e.video,a=e.relatedVideos,l=oe(Object(r.a)(X.a.WEB_PLAYER_DATA),2)[1],d=oe(n.useState(!0),2),v=d[0],p=d[1],E=n.useRef(null),f=n.useCallback((function(e){e&&(E.current=e,g())}),[]),g=n.useMemo((function(){return i.a.throttle(function(e,t){return function(){if(e.current){var a=e.current.getBoundingClientRect(),n=window.pageXOffset||document.documentElement.scrollLeft,r=window.pageYOffset||document.documentElement.scrollTop;a.top<-a.height?t("viewportPosition",null):t("viewportPosition",{top:r+a.top,left:n+a.left,width:a.width})}}}(E,l),100,{leading:!0,trailing:!0})}),[]);return K(g),z(g),n.useEffect((function(){return l("isOnPlayPage",!0),function(){l("viewportPosition",null),l("isOnPlayPage",!1)}}),[]),n.createElement(m.a.Provider,{value:{getActionAppLink:G.a}},n.createElement("div",{className:"d-flex justify-content-between"},n.createElement(s.a,{appLink:{application:J.a.DASHBOARD,action:q.a.Dashboard.HOME},backToName:"Home"}),n.createElement("button",{className:"btn btn-light"},n.createElement(c.b,{namespace:"shared.playPage",phrase:"classroomMode"}))),n.createElement("div",{className:"embed-responsive embed-responsive-16by9 my-3",ref:f}),n.createElement(ee,{video:t,setFavourite:e.setFavourite}),n.createElement(te,{video:t}),n.createElement(ne,{video:t}),n.createElement("hr",null),v?n.createElement(se,{video:t,onClickFullDescription:function(){return p(!1)}}):n.createElement(F,{video:t,onClickShowSynopsis:function(){return p(!0)}}),n.createElement(u,{video:t,className:"my-3"}),n.createElement(I,{video:t}),n.createElement(U,{video:t}),!!a&&n.createElement(n.Fragment,null,n.createElement("h2",{className:"h4 mt-3"},n.createElement(c.b,{namespace:"shared.playPage",phrase:"relatedVideos"})),n.createElement(o.c,{videos:a,getSeriesAppLink:de,getVideoAppLink:ue,setFavourite:e.setFavourite})))}},594:function(e,t,a){e.exports={button:"_10_KK"}},595:function(e,t,a){e.exports={showGlance:"_2fhqC"}},596:function(e,t,a){e.exports={content:"_1D6Hx",clamped:"_2sHZC"}},597:function(e,t,a){e.exports={content:"_22tRu",clamped:"_LK8Q",clampedDescription:"_18yOL",bar:"_3-kb8",subBar:"_1ROlV"}},598:function(e,t,a){e.exports={container:"_1XOYA",content:"UcxNO",background:"_3gpaY",topLeft:"_2s7I6",bottomLeft:"_23UKL",topRight:"ec_-l",bottomRight:"_1xMKp"}}}]);