@clickview/library-editor 1.1.19-rc.2 → 1.1.19-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 (455) hide show
  1. package/dist/css/12.chunk.css +17 -7
  2. package/dist/css/13.chunk.css +7 -7
  3. package/dist/css/14.chunk.css +10 -4
  4. package/dist/css/16.chunk.css +1 -1
  5. package/dist/css/17.chunk.css +1 -1
  6. package/dist/css/19.chunk.css +34 -0
  7. package/dist/css/20.chunk.css +15 -7
  8. package/dist/css/21.chunk.css +14 -8
  9. package/dist/css/22.chunk.css +13 -5
  10. package/dist/css/23.chunk.css +12 -6
  11. package/dist/css/24.chunk.css +7 -7
  12. package/dist/css/25.chunk.css +9 -5
  13. package/dist/css/26.chunk.css +5 -5
  14. package/dist/css/27.chunk.css +6 -4
  15. package/dist/css/29.chunk.css +4 -4
  16. package/dist/css/3.chunk.css +2 -15
  17. package/dist/css/30.chunk.css +5 -3
  18. package/dist/css/31.chunk.css +3 -3
  19. package/dist/css/42.chunk.css +1 -1
  20. package/dist/css/43.chunk.css +1 -1
  21. package/dist/css/44.chunk.css +1 -1
  22. package/dist/css/45.chunk.css +1 -1
  23. package/dist/css/46.chunk.css +1 -1
  24. package/dist/css/47.chunk.css +1 -1
  25. package/dist/css/49.chunk.css +1 -34
  26. package/dist/css/5.chunk.css +3 -13
  27. package/dist/css/50.chunk.css +1 -1
  28. package/dist/css/53.chunk.css +2 -0
  29. package/dist/css/54.chunk.css +1 -1
  30. package/dist/css/55.chunk.css +1 -1
  31. package/dist/css/56.chunk.css +1 -1
  32. package/dist/css/57.chunk.css +1 -1
  33. package/dist/css/58.chunk.css +1 -1
  34. package/dist/css/60.chunk.css +1 -17
  35. package/dist/css/61.chunk.css +1 -1
  36. package/dist/projects/library-editor/src/app.d.ts +1 -0
  37. package/dist/scripts/0-2be1201a7f.chunk.js +1 -0
  38. package/dist/scripts/1-d3c96b4670.chunk.js +1 -0
  39. package/dist/scripts/10-2cebec08a5.chunk.js +1 -0
  40. package/dist/scripts/{11-805aab3b80.chunk.js → 11-f6440b4817.chunk.js} +1 -1
  41. package/dist/scripts/12-b168953b47.chunk.js +1 -0
  42. package/dist/scripts/13-8e3a8d1629.chunk.js +1 -0
  43. package/dist/scripts/14-1c1b7086df.chunk.js +1 -0
  44. package/dist/scripts/15-6df8e05fe9.chunk.js +1 -0
  45. package/dist/scripts/16-19085b3dd0.chunk.js +1 -0
  46. package/dist/scripts/17-b7c4c476aa.chunk.js +1 -0
  47. package/dist/scripts/19-affb19e639.chunk.js +1 -0
  48. package/dist/scripts/2-adb587d50b.chunk.js +1 -0
  49. package/dist/scripts/20-5dcf516232.chunk.js +1 -0
  50. package/dist/scripts/21-782b1e8947.chunk.js +1 -0
  51. package/dist/scripts/22-77a9f00273.chunk.js +1 -0
  52. package/dist/scripts/23-c380087827.chunk.js +1 -0
  53. package/dist/scripts/24-5ca282f342.chunk.js +1 -0
  54. package/dist/scripts/25-a595940248.chunk.js +1 -0
  55. package/dist/scripts/26-52d8ede81f.chunk.js +1 -0
  56. package/dist/scripts/27-00d6b5a4bd.chunk.js +1 -0
  57. package/dist/scripts/28-58cc01c876.chunk.js +1 -0
  58. package/dist/scripts/29-552493a7ad.chunk.js +1 -0
  59. package/dist/scripts/3-a32cc1fdf4.chunk.js +1 -0
  60. package/dist/scripts/30-3b0ed0fdaa.chunk.js +1 -0
  61. package/dist/scripts/31-d46eb161fa.chunk.js +1 -0
  62. package/dist/scripts/32-728cc1e053.chunk.js +1 -0
  63. package/dist/scripts/33-9f130fa663.chunk.js +1 -0
  64. package/dist/scripts/34-45ad8a1808.chunk.js +1 -0
  65. package/dist/scripts/35-38b73094a5.chunk.js +1 -0
  66. package/dist/scripts/36-6cc9b2e1f9.chunk.js +1 -0
  67. package/dist/scripts/37-18f74bd058.chunk.js +1 -0
  68. package/dist/scripts/38-ca9a95b14a.chunk.js +1 -0
  69. package/dist/scripts/39-21e6ce932e.chunk.js +1 -0
  70. package/dist/scripts/4-7f5573ad9d.chunk.js +1 -0
  71. package/dist/scripts/40-040a76d3cb.chunk.js +1 -0
  72. package/dist/scripts/41-ea0bd0118f.chunk.js +1 -0
  73. package/dist/scripts/42-ede0513e1c.chunk.js +1 -0
  74. package/dist/scripts/43-512f52a709.chunk.js +1 -0
  75. package/dist/scripts/44-2b494ad559.chunk.js +1 -0
  76. package/dist/scripts/45-74c1071058.chunk.js +1 -0
  77. package/dist/scripts/46-fa6537374c.chunk.js +1 -0
  78. package/dist/scripts/47-4fbd9bf958.chunk.js +1 -0
  79. package/dist/scripts/48-de58133c08.chunk.js +1 -0
  80. package/dist/scripts/49-4035147a3b.chunk.js +1 -0
  81. package/dist/scripts/5-08ffe0918e.chunk.js +1 -0
  82. package/dist/scripts/50-c2be46fa7e.chunk.js +1 -0
  83. package/dist/scripts/51-beb5c51318.chunk.js +1 -0
  84. package/dist/scripts/52-773e36d3f9.chunk.js +1 -0
  85. package/dist/scripts/{54-8df01312cc.chunk.js → 53-a5d949340b.chunk.js} +1 -1
  86. package/dist/scripts/54-4083e51a52.chunk.js +1 -0
  87. package/dist/scripts/55-622f7871d6.chunk.js +1 -0
  88. package/dist/scripts/56-b48e08b8ef.chunk.js +1 -0
  89. package/dist/scripts/57-1feff40a08.chunk.js +1 -0
  90. package/dist/scripts/{59-cc8e184cce.chunk.js → 58-46d9ab3567.chunk.js} +1 -1
  91. package/dist/scripts/59-4f532af025.chunk.js +1 -0
  92. package/dist/scripts/6-0aba54255e.chunk.js +1 -0
  93. package/dist/scripts/60-b977e9f98a.chunk.js +1 -0
  94. package/dist/scripts/61-a08050a033.chunk.js +1 -0
  95. package/dist/scripts/62-2d7c9575cd.chunk.js +1 -0
  96. package/dist/scripts/63-1b5541b59d.chunk.js +1 -0
  97. package/dist/scripts/64-5802c4c4a1.chunk.js +1 -0
  98. package/dist/scripts/65-a5583b77b5.chunk.js +1 -0
  99. package/dist/scripts/66-e6cbf6eff1.chunk.js +1 -0
  100. package/dist/scripts/67-147f6e38b8.chunk.js +1 -0
  101. package/dist/scripts/68-09d43f4bf6.chunk.js +1 -0
  102. package/dist/scripts/69-730a9f6e1b.chunk.js +1 -0
  103. package/dist/scripts/7-3a6b348c77.chunk.js +1 -0
  104. package/dist/scripts/70-99fa48a87e.chunk.js +1 -0
  105. package/dist/scripts/71-e6e4debb3b.chunk.js +1 -0
  106. package/dist/scripts/8-e6e81f44e1.chunk.js +1 -0
  107. package/dist/scripts/9-350230f5b4.chunk.js +1 -0
  108. package/dist/scripts/bundle-11b849726e.min.js +1 -0
  109. package/dist/scripts/bundles.json +1 -1
  110. package/package.json +4 -4
  111. package/dist/css/1.chunk.css.map +0 -1
  112. package/dist/css/10.chunk.css.map +0 -1
  113. package/dist/css/11.chunk.css +0 -137
  114. package/dist/css/11.chunk.css.map +0 -1
  115. package/dist/css/12.chunk.css.map +0 -1
  116. package/dist/css/13.chunk.css.map +0 -1
  117. package/dist/css/14.chunk.css.map +0 -1
  118. package/dist/css/16.chunk.css.map +0 -1
  119. package/dist/css/17.chunk.css.map +0 -1
  120. package/dist/css/18.chunk.css +0 -2
  121. package/dist/css/18.chunk.css.map +0 -1
  122. package/dist/css/2.chunk.css +0 -4
  123. package/dist/css/2.chunk.css.map +0 -1
  124. package/dist/css/21.chunk.css.map +0 -1
  125. package/dist/css/22.chunk.css.map +0 -1
  126. package/dist/css/23.chunk.css.map +0 -1
  127. package/dist/css/25.chunk.css.map +0 -1
  128. package/dist/css/26.chunk.css.map +0 -1
  129. package/dist/css/28.chunk.css.map +0 -1
  130. package/dist/css/29.chunk.css.map +0 -1
  131. package/dist/css/3.chunk.css.map +0 -1
  132. package/dist/css/30.chunk.css.map +0 -1
  133. package/dist/css/31.chunk.css.map +0 -1
  134. package/dist/css/32.chunk.css.map +0 -1
  135. package/dist/css/33.chunk.css +0 -16
  136. package/dist/css/33.chunk.css.map +0 -1
  137. package/dist/css/34.chunk.css +0 -21
  138. package/dist/css/34.chunk.css.map +0 -1
  139. package/dist/css/35.chunk.css +0 -20
  140. package/dist/css/35.chunk.css.map +0 -1
  141. package/dist/css/36.chunk.css.map +0 -1
  142. package/dist/css/37.chunk.css.map +0 -1
  143. package/dist/css/38.chunk.css.map +0 -1
  144. package/dist/css/4.chunk.css +0 -6
  145. package/dist/css/40.chunk.css.map +0 -1
  146. package/dist/css/41.chunk.css.map +0 -1
  147. package/dist/css/42.chunk.css.map +0 -1
  148. package/dist/css/43.chunk.css.map +0 -1
  149. package/dist/css/44.chunk.css.map +0 -1
  150. package/dist/css/45.chunk.css.map +0 -1
  151. package/dist/css/46.chunk.css.map +0 -1
  152. package/dist/css/47.chunk.css.map +0 -1
  153. package/dist/css/48.chunk.css +0 -2
  154. package/dist/css/48.chunk.css.map +0 -1
  155. package/dist/css/49.chunk.css.map +0 -1
  156. package/dist/css/50.chunk.css.map +0 -1
  157. package/dist/css/51.chunk.css +0 -2
  158. package/dist/css/51.chunk.css.map +0 -1
  159. package/dist/css/52.chunk.css +0 -66
  160. package/dist/css/52.chunk.css.map +0 -1
  161. package/dist/css/55.chunk.css.map +0 -1
  162. package/dist/css/56.chunk.css.map +0 -1
  163. package/dist/css/58.chunk.css.map +0 -1
  164. package/dist/css/59.chunk.css +0 -2
  165. package/dist/css/59.chunk.css.map +0 -1
  166. package/dist/css/6.chunk.css.map +0 -1
  167. package/dist/css/60.chunk.css.map +0 -1
  168. package/dist/css/62.chunk.css +0 -2
  169. package/dist/css/62.chunk.css.map +0 -1
  170. package/dist/css/63.chunk.css +0 -170
  171. package/dist/css/63.chunk.css.map +0 -1
  172. package/dist/css/67.chunk.css +0 -78
  173. package/dist/css/67.chunk.css.map +0 -1
  174. package/dist/css/68.chunk.css +0 -17
  175. package/dist/css/68.chunk.css.map +0 -1
  176. package/dist/css/69.chunk.css +0 -17
  177. package/dist/css/69.chunk.css.map +0 -1
  178. package/dist/css/7.chunk.css.map +0 -1
  179. package/dist/css/70.chunk.css +0 -23
  180. package/dist/css/70.chunk.css.map +0 -1
  181. package/dist/css/71.chunk.css +0 -40
  182. package/dist/css/71.chunk.css.map +0 -1
  183. package/dist/css/72.chunk.css +0 -16
  184. package/dist/css/72.chunk.css.map +0 -1
  185. package/dist/css/73.chunk.css +0 -37
  186. package/dist/css/73.chunk.css.map +0 -1
  187. package/dist/css/74.chunk.css +0 -29
  188. package/dist/css/74.chunk.css.map +0 -1
  189. package/dist/css/75.chunk.css +0 -6
  190. package/dist/css/75.chunk.css.map +0 -1
  191. package/dist/css/76.chunk.css +0 -6
  192. package/dist/css/76.chunk.css.map +0 -1
  193. package/dist/css/8.chunk.css.map +0 -1
  194. package/dist/css/library-editor-app.css.map +0 -1
  195. package/dist/scripts/0-8cdf48d69e.chunk.js +0 -1
  196. package/dist/scripts/0.chunk.js +0 -1034
  197. package/dist/scripts/0.chunk.js.map +0 -1
  198. package/dist/scripts/1-a197f0efeb.chunk.js +0 -1
  199. package/dist/scripts/1.chunk.js +0 -442
  200. package/dist/scripts/1.chunk.js.map +0 -1
  201. package/dist/scripts/10-48aa375ebe.chunk.js +0 -1
  202. package/dist/scripts/10.chunk.js +0 -820
  203. package/dist/scripts/10.chunk.js.map +0 -1
  204. package/dist/scripts/11.chunk.js +0 -4091
  205. package/dist/scripts/11.chunk.js.map +0 -1
  206. package/dist/scripts/12-57671136e8.chunk.js +0 -1
  207. package/dist/scripts/12.chunk.js +0 -555
  208. package/dist/scripts/12.chunk.js.map +0 -1
  209. package/dist/scripts/13-46bc40cc23.chunk.js +0 -1
  210. package/dist/scripts/13.chunk.js +0 -373
  211. package/dist/scripts/13.chunk.js.map +0 -1
  212. package/dist/scripts/14-556e982a73.chunk.js +0 -1
  213. package/dist/scripts/14.chunk.js +0 -2386
  214. package/dist/scripts/14.chunk.js.map +0 -1
  215. package/dist/scripts/15-2edbad42a0.chunk.js +0 -1
  216. package/dist/scripts/15.chunk.js +0 -314
  217. package/dist/scripts/15.chunk.js.map +0 -1
  218. package/dist/scripts/16-60b9a789b4.chunk.js +0 -1
  219. package/dist/scripts/16.chunk.js +0 -1290
  220. package/dist/scripts/16.chunk.js.map +0 -1
  221. package/dist/scripts/17-d6083dbd9b.chunk.js +0 -1
  222. package/dist/scripts/17.chunk.js +0 -381
  223. package/dist/scripts/17.chunk.js.map +0 -1
  224. package/dist/scripts/18-31ce9284d0.chunk.js +0 -1
  225. package/dist/scripts/18.chunk.js +0 -393
  226. package/dist/scripts/18.chunk.js.map +0 -1
  227. package/dist/scripts/19.chunk.js +0 -364
  228. package/dist/scripts/19.chunk.js.map +0 -1
  229. package/dist/scripts/2-33fcca96e3.chunk.js +0 -1
  230. package/dist/scripts/2.chunk.js +0 -519
  231. package/dist/scripts/2.chunk.js.map +0 -1
  232. package/dist/scripts/20-3c2f3fb166.chunk.js +0 -1
  233. package/dist/scripts/20.chunk.js +0 -317
  234. package/dist/scripts/20.chunk.js.map +0 -1
  235. package/dist/scripts/21-9497f03cd8.chunk.js +0 -1
  236. package/dist/scripts/21.chunk.js +0 -531
  237. package/dist/scripts/21.chunk.js.map +0 -1
  238. package/dist/scripts/22-22cd929ad4.chunk.js +0 -1
  239. package/dist/scripts/22.chunk.js +0 -354
  240. package/dist/scripts/22.chunk.js.map +0 -1
  241. package/dist/scripts/23-16b02d09f5.chunk.js +0 -1
  242. package/dist/scripts/23.chunk.js +0 -605
  243. package/dist/scripts/23.chunk.js.map +0 -1
  244. package/dist/scripts/24-24699f9007.chunk.js +0 -1
  245. package/dist/scripts/24.chunk.js +0 -318
  246. package/dist/scripts/24.chunk.js.map +0 -1
  247. package/dist/scripts/25-7a210f731b.chunk.js +0 -1
  248. package/dist/scripts/25.chunk.js +0 -365
  249. package/dist/scripts/25.chunk.js.map +0 -1
  250. package/dist/scripts/26-263cf0ebce.chunk.js +0 -1
  251. package/dist/scripts/26.chunk.js +0 -437
  252. package/dist/scripts/26.chunk.js.map +0 -1
  253. package/dist/scripts/27-707d8b29f0.chunk.js +0 -1
  254. package/dist/scripts/27.chunk.js +0 -3565
  255. package/dist/scripts/27.chunk.js.map +0 -1
  256. package/dist/scripts/28-d748f747fa.chunk.js +0 -1
  257. package/dist/scripts/28.chunk.js +0 -3129
  258. package/dist/scripts/28.chunk.js.map +0 -1
  259. package/dist/scripts/29-ef4aaa5fd8.chunk.js +0 -1
  260. package/dist/scripts/29.chunk.js +0 -3088
  261. package/dist/scripts/29.chunk.js.map +0 -1
  262. package/dist/scripts/3-9ac062f7ab.chunk.js +0 -1
  263. package/dist/scripts/3.chunk.js +0 -782
  264. package/dist/scripts/3.chunk.js.map +0 -1
  265. package/dist/scripts/30-1b84ae2ac7.chunk.js +0 -1
  266. package/dist/scripts/30.chunk.js +0 -1809
  267. package/dist/scripts/30.chunk.js.map +0 -1
  268. package/dist/scripts/31-b51d47f02b.chunk.js +0 -1
  269. package/dist/scripts/31.chunk.js +0 -958
  270. package/dist/scripts/31.chunk.js.map +0 -1
  271. package/dist/scripts/32-3f5cffb858.chunk.js +0 -1
  272. package/dist/scripts/32.chunk.js +0 -1235
  273. package/dist/scripts/32.chunk.js.map +0 -1
  274. package/dist/scripts/33-bd5b8ad402.chunk.js +0 -1
  275. package/dist/scripts/33.chunk.js +0 -792
  276. package/dist/scripts/33.chunk.js.map +0 -1
  277. package/dist/scripts/34-16c6ce9391.chunk.js +0 -1
  278. package/dist/scripts/34.chunk.js +0 -990
  279. package/dist/scripts/34.chunk.js.map +0 -1
  280. package/dist/scripts/35-f0ff6077b5.chunk.js +0 -1
  281. package/dist/scripts/35.chunk.js +0 -518
  282. package/dist/scripts/35.chunk.js.map +0 -1
  283. package/dist/scripts/36-6d5df4dbb0.chunk.js +0 -1
  284. package/dist/scripts/36.chunk.js +0 -335
  285. package/dist/scripts/36.chunk.js.map +0 -1
  286. package/dist/scripts/37-1aedf84774.chunk.js +0 -1
  287. package/dist/scripts/37.chunk.js +0 -236
  288. package/dist/scripts/37.chunk.js.map +0 -1
  289. package/dist/scripts/38-9411624870.chunk.js +0 -1
  290. package/dist/scripts/38.chunk.js +0 -315
  291. package/dist/scripts/38.chunk.js.map +0 -1
  292. package/dist/scripts/39-f46d2f69b1.chunk.js +0 -1
  293. package/dist/scripts/39.chunk.js +0 -116
  294. package/dist/scripts/39.chunk.js.map +0 -1
  295. package/dist/scripts/4-2bf2f1b864.chunk.js +0 -1
  296. package/dist/scripts/4.chunk.js +0 -335
  297. package/dist/scripts/4.chunk.js.map +0 -1
  298. package/dist/scripts/40-2134ac47ae.chunk.js +0 -1
  299. package/dist/scripts/40.chunk.js +0 -1782
  300. package/dist/scripts/40.chunk.js.map +0 -1
  301. package/dist/scripts/41-38841ce7ed.chunk.js +0 -1
  302. package/dist/scripts/41.chunk.js +0 -2347
  303. package/dist/scripts/41.chunk.js.map +0 -1
  304. package/dist/scripts/42-06cb96ddaf.chunk.js +0 -1
  305. package/dist/scripts/42.chunk.js +0 -2111
  306. package/dist/scripts/42.chunk.js.map +0 -1
  307. package/dist/scripts/43-164d1aaf84.chunk.js +0 -1
  308. package/dist/scripts/43.chunk.js +0 -2243
  309. package/dist/scripts/43.chunk.js.map +0 -1
  310. package/dist/scripts/44-234dd1aac7.chunk.js +0 -1
  311. package/dist/scripts/44.chunk.js +0 -1024
  312. package/dist/scripts/44.chunk.js.map +0 -1
  313. package/dist/scripts/45-26c33d7856.chunk.js +0 -1
  314. package/dist/scripts/45.chunk.js +0 -1065
  315. package/dist/scripts/45.chunk.js.map +0 -1
  316. package/dist/scripts/46-07c390591d.chunk.js +0 -1
  317. package/dist/scripts/46.chunk.js +0 -613
  318. package/dist/scripts/46.chunk.js.map +0 -1
  319. package/dist/scripts/47-6a9c70d236.chunk.js +0 -1
  320. package/dist/scripts/47.chunk.js +0 -735
  321. package/dist/scripts/47.chunk.js.map +0 -1
  322. package/dist/scripts/48-ee3bf3e841.chunk.js +0 -1
  323. package/dist/scripts/48.chunk.js +0 -994
  324. package/dist/scripts/48.chunk.js.map +0 -1
  325. package/dist/scripts/49-73ebbe96d0.chunk.js +0 -1
  326. package/dist/scripts/49.chunk.js +0 -759
  327. package/dist/scripts/49.chunk.js.map +0 -1
  328. package/dist/scripts/5-19ce45d023.chunk.js +0 -1
  329. package/dist/scripts/5.chunk.js +0 -40
  330. package/dist/scripts/5.chunk.js.map +0 -1
  331. package/dist/scripts/50-a1439e0fa7.chunk.js +0 -1
  332. package/dist/scripts/50.chunk.js +0 -528
  333. package/dist/scripts/50.chunk.js.map +0 -1
  334. package/dist/scripts/51-cad32e2046.chunk.js +0 -1
  335. package/dist/scripts/51.chunk.js +0 -932
  336. package/dist/scripts/51.chunk.js.map +0 -1
  337. package/dist/scripts/52-1d3e8eb21e.chunk.js +0 -1
  338. package/dist/scripts/52.chunk.js +0 -408
  339. package/dist/scripts/52.chunk.js.map +0 -1
  340. package/dist/scripts/53-5e80e33e98.chunk.js +0 -1
  341. package/dist/scripts/53.chunk.js +0 -754
  342. package/dist/scripts/53.chunk.js.map +0 -1
  343. package/dist/scripts/54.chunk.js +0 -681
  344. package/dist/scripts/54.chunk.js.map +0 -1
  345. package/dist/scripts/55-4c8d7b57f9.chunk.js +0 -1
  346. package/dist/scripts/55.chunk.js +0 -645
  347. package/dist/scripts/55.chunk.js.map +0 -1
  348. package/dist/scripts/56-1d96fdfcd3.chunk.js +0 -1
  349. package/dist/scripts/56.chunk.js +0 -346
  350. package/dist/scripts/56.chunk.js.map +0 -1
  351. package/dist/scripts/57-c17cdf728f.chunk.js +0 -1
  352. package/dist/scripts/57.chunk.js +0 -422
  353. package/dist/scripts/57.chunk.js.map +0 -1
  354. package/dist/scripts/58-ce34e558f4.chunk.js +0 -1
  355. package/dist/scripts/58.chunk.js +0 -437
  356. package/dist/scripts/58.chunk.js.map +0 -1
  357. package/dist/scripts/59.chunk.js +0 -342
  358. package/dist/scripts/59.chunk.js.map +0 -1
  359. package/dist/scripts/6-e9685801b5.chunk.js +0 -1
  360. package/dist/scripts/6.chunk.js +0 -484
  361. package/dist/scripts/6.chunk.js.map +0 -1
  362. package/dist/scripts/60-8d73b65e4e.chunk.js +0 -1
  363. package/dist/scripts/60.chunk.js +0 -254
  364. package/dist/scripts/60.chunk.js.map +0 -1
  365. package/dist/scripts/61-bd804db13e.chunk.js +0 -1
  366. package/dist/scripts/61.chunk.js +0 -318
  367. package/dist/scripts/61.chunk.js.map +0 -1
  368. package/dist/scripts/62-827229b727.chunk.js +0 -1
  369. package/dist/scripts/62.chunk.js +0 -142
  370. package/dist/scripts/62.chunk.js.map +0 -1
  371. package/dist/scripts/63-7251ac44d0.chunk.js +0 -1
  372. package/dist/scripts/63.chunk.js +0 -147
  373. package/dist/scripts/63.chunk.js.map +0 -1
  374. package/dist/scripts/64-33ca5259e4.chunk.js +0 -1
  375. package/dist/scripts/64.chunk.js +0 -439
  376. package/dist/scripts/64.chunk.js.map +0 -1
  377. package/dist/scripts/65-50d52bf3df.chunk.js +0 -1
  378. package/dist/scripts/65.chunk.js +0 -582
  379. package/dist/scripts/65.chunk.js.map +0 -1
  380. package/dist/scripts/66-fe41a3b54a.chunk.js +0 -1
  381. package/dist/scripts/66.chunk.js +0 -442
  382. package/dist/scripts/66.chunk.js.map +0 -1
  383. package/dist/scripts/67-1508455eb9.chunk.js +0 -1
  384. package/dist/scripts/67.chunk.js +0 -295
  385. package/dist/scripts/67.chunk.js.map +0 -1
  386. package/dist/scripts/68-21e8520126.chunk.js +0 -1
  387. package/dist/scripts/68.chunk.js +0 -165
  388. package/dist/scripts/68.chunk.js.map +0 -1
  389. package/dist/scripts/69-4d26485024.chunk.js +0 -1
  390. package/dist/scripts/69.chunk.js +0 -248
  391. package/dist/scripts/69.chunk.js.map +0 -1
  392. package/dist/scripts/7-d0085fdf2e.chunk.js +0 -1
  393. package/dist/scripts/7.chunk.js +0 -309
  394. package/dist/scripts/7.chunk.js.map +0 -1
  395. package/dist/scripts/70-8e1d03a7d8.chunk.js +0 -1
  396. package/dist/scripts/70.chunk.js +0 -207
  397. package/dist/scripts/70.chunk.js.map +0 -1
  398. package/dist/scripts/71-b835514c89.chunk.js +0 -1
  399. package/dist/scripts/71.chunk.js +0 -237
  400. package/dist/scripts/71.chunk.js.map +0 -1
  401. package/dist/scripts/72-23d6083900.chunk.js +0 -1
  402. package/dist/scripts/72.chunk.js +0 -331
  403. package/dist/scripts/72.chunk.js.map +0 -1
  404. package/dist/scripts/73.chunk.js +0 -404
  405. package/dist/scripts/73.chunk.js.map +0 -1
  406. package/dist/scripts/74.chunk.js +0 -301
  407. package/dist/scripts/74.chunk.js.map +0 -1
  408. package/dist/scripts/75.chunk.js +0 -231
  409. package/dist/scripts/75.chunk.js.map +0 -1
  410. package/dist/scripts/76.chunk.js +0 -157
  411. package/dist/scripts/76.chunk.js.map +0 -1
  412. package/dist/scripts/77.chunk.js +0 -307
  413. package/dist/scripts/77.chunk.js.map +0 -1
  414. package/dist/scripts/78.chunk.js +0 -249
  415. package/dist/scripts/78.chunk.js.map +0 -1
  416. package/dist/scripts/79.chunk.js +0 -282
  417. package/dist/scripts/79.chunk.js.map +0 -1
  418. package/dist/scripts/8-0ebd446b65.chunk.js +0 -1
  419. package/dist/scripts/8.chunk.js +0 -307
  420. package/dist/scripts/8.chunk.js.map +0 -1
  421. package/dist/scripts/80.chunk.js +0 -308
  422. package/dist/scripts/80.chunk.js.map +0 -1
  423. package/dist/scripts/81.chunk.js +0 -366
  424. package/dist/scripts/81.chunk.js.map +0 -1
  425. package/dist/scripts/82.chunk.js +0 -314
  426. package/dist/scripts/82.chunk.js.map +0 -1
  427. package/dist/scripts/83.chunk.js +0 -328
  428. package/dist/scripts/83.chunk.js.map +0 -1
  429. package/dist/scripts/84.chunk.js +0 -313
  430. package/dist/scripts/84.chunk.js.map +0 -1
  431. package/dist/scripts/85.chunk.js +0 -291
  432. package/dist/scripts/85.chunk.js.map +0 -1
  433. package/dist/scripts/86.chunk.js +0 -119
  434. package/dist/scripts/86.chunk.js.map +0 -1
  435. package/dist/scripts/87.chunk.js +0 -219
  436. package/dist/scripts/87.chunk.js.map +0 -1
  437. package/dist/scripts/88.chunk.js +0 -194
  438. package/dist/scripts/88.chunk.js.map +0 -1
  439. package/dist/scripts/89.chunk.js +0 -522
  440. package/dist/scripts/89.chunk.js.map +0 -1
  441. package/dist/scripts/9-0476e7c063.chunk.js +0 -1
  442. package/dist/scripts/9.chunk.js +0 -222
  443. package/dist/scripts/9.chunk.js.map +0 -1
  444. package/dist/scripts/90.chunk.js +0 -337
  445. package/dist/scripts/90.chunk.js.map +0 -1
  446. package/dist/scripts/91.chunk.js +0 -131
  447. package/dist/scripts/91.chunk.js.map +0 -1
  448. package/dist/scripts/92.chunk.js +0 -266
  449. package/dist/scripts/92.chunk.js.map +0 -1
  450. package/dist/scripts/bundle-1efd9147e1.min.js +0 -1
  451. package/dist/scripts/bundle-486bb6fa60.min.js +0 -1
  452. package/dist/scripts/bundle-511dc1956b.min.js +0 -1
  453. package/dist/scripts/bundle-8468900bf9.min.js +0 -1
  454. package/dist/scripts/bundle.js +0 -57527
  455. package/dist/scripts/bundle.js.map +0 -1
@@ -1 +0,0 @@
1
- {"version":3,"sources":["file://C:/ClickView Projects/@clickview/packages/libs/shared/src/utils/EmbedHelper.ts","file://C:/ClickView Projects/@clickview/packages/projects/library-editor/src/shared/views/share/EmbedString.hbs","file://C:/ClickView Projects/@clickview/packages/projects/library-editor/src/shared/views/share/Share.hbs","file://C:/ClickView Projects/@clickview/packages/projects/library-editor/src/shared/views/share/ShareFooter.hbs","file://C:/ClickView Projects/@clickview/packages/projects/library-editor/src/shared/views/share/ShareView.ts","webpack://@clickview/library-editor/./src/shared/views/share/share.scss?8952"],"names":[],"mappings":";;;;;;;;;;AAAA;AAAA;AAAA;AAAA;AAEA,MAAM,SAAS,GAAG,qBAAlB;AAQO,MAAM,WAAW,GAAG;AACzB,qBAAmB;AACjB,WAAO,CACL;AACE,WAAK,EAAE,6FAAe,CAAC,SAAhB,CAA0B,SAA1B,EAAqC,YAArC,CADT;AAEE,WAAK,EAAE,MAFT;AAGE,YAAM,EAAE;AAHV,KADK,EAML;AACE,WAAK,EAAE,6FAAe,CAAC,SAAhB,CAA0B,SAA1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LanguageService } from 'libs/common/backbone/services/LanguageService';\r\n\r\nconst namespace = 'shared.shared-utils';\r\n\r\nexport interface EmbedResolution {\r\n width: '100%' | '640' | '1014' | '1280';\r\n height: '100%' | '360' | '576' | '720';\r\n label: string;\r\n}\r\n\r\nexport const EmbedHelper = {\r\n getEmbedResolutions(): EmbedResolution[] {\r\n return [\r\n {\r\n label: LanguageService.getPhrase(namespace, 'responsive'),\r\n width: '100%',\r\n height: '100%'\r\n },\r\n {\r\n label: LanguageService.getPhrase(namespace, 'small'),\r\n width: '640',\r\n height: '360'\r\n },\r\n {\r\n label: LanguageService.getPhrase(namespace, 'medium'),\r\n width: '1014',\r\n height: '576'\r\n },\r\n {\r\n label: LanguageService.getPhrase(namespace, 'large'),\r\n width: '1280',\r\n height: '720'\r\n }\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 \"style=\\\"position:absolute; top:0; left:0; width:100%; height:100%;\\\"\";\n},\"3\":function(container,depth0,helpers,partials,data) {\n var stack1, alias1=container.propertyIsEnumerable, alias2=container.lambda, alias3=container.escapeExpression;\n\n return \"width=\\\"\"\n + alias3(alias2(((stack1 = (depth0 != null ? depth0.videoSize : depth0)) != null ? stack1.width : stack1), depth0))\n + \"\\\" height=\\\"\"\n + alias3(alias2(((stack1 = (depth0 != null ? depth0.videoSize : depth0)) != null ? stack1.height : stack1), depth0))\n + \"\\\"\";\n},\"compiler\":[8,\">= 4.3.0\"],\"main\":function(container,depth0,helpers,partials,data) {\n var stack1, helper, alias1=container.propertyIsEnumerable, alias2=depth0 != null ? depth0 : (container.nullContext || {}), alias3=container.hooks.helperMissing, alias4=\"function\", alias5=container.escapeExpression;\n\n return \"<iframe frameborder=\\\"0\\\" allowfullscreen webkitallowfullscreen mozallowfullscreen \"\n + ((stack1 = helpers[\"if\"].call(alias2,(depth0 != null ? depth0.isResponsive : depth0),{\"name\":\"if\",\"hash\":{},\"fn\":container.program(1, data, 0),\"inverse\":container.program(3, data, 0),\"data\":data})) != null ? stack1 : \"\")\n + \" src=\\\"\"\n + alias5(((helper = (helper = helpers.baseUrl || (depth0 != null ? depth0.baseUrl : depth0)) != null ? helper : alias3),(typeof helper === alias4 ? helper.call(alias2,{\"name\":\"baseUrl\",\"hash\":{},\"data\":data}) : helper)))\n + \"?shareCode=\"\n + alias5(((helper = (helper = helpers.shortCode || (depth0 != null ? depth0.shortCode : depth0)) != null ? helper : alias3),(typeof helper === alias4 ? helper.call(alias2,{\"name\":\"shortCode\",\"hash\":{},\"data\":data}) : helper)))\n + \"&a=\"\n + alias5(((helper = (helper = helpers.autoplay || (depth0 != null ? depth0.autoplay : depth0)) != null ? helper : alias3),(typeof helper === alias4 ? helper.call(alias2,{\"name\":\"autoplay\",\"hash\":{},\"data\":data}) : helper)))\n + \"\\\"></iframe>\";\n},\"useData\":true});","var Handlebars = require('handlebars');\nmodule.exports = (Handlebars['default'] || Handlebars).template({\"1\":function(container,depth0,helpers,partials,data) {\n var stack1, alias1=container.propertyIsEnumerable;\n\n return ((stack1 = container.lambda(((stack1 = (depth0 != null ? depth0.options : depth0)) != null ? stack1.spinnerEl : stack1), depth0)) != null ? stack1 : \"\")\n + \"\\r\\n\";\n},\"3\":function(container,depth0,helpers,partials,data) {\n var stack1, helper, alias1=container.propertyIsEnumerable, alias2=container.lambda, alias3=container.escapeExpression, alias4=depth0 != null ? depth0 : (container.nullContext || {}), alias5=container.hooks.helperMissing;\n\n return \"\\r\\n<div class=\\\"\"\n + alias3(alias2(((stack1 = ((stack1 = (depth0 != null ? depth0.options : depth0)) != null ? stack1.styles : stack1)) != null ? stack1.container : stack1), depth0))\n + \"\\\">\\r\\n <label for=\\\"share-input\\\" class=\\\"mb-0 h6\\\">\"\n + alias3((helpers.lang||(depth0 && depth0.lang)||alias5).call(alias4,\"shareLink\",{\"name\":\"lang\",\"hash\":{},\"data\":data}))\n + \"</label>\\r\\n <div class=\\\"input-group mb-2\\\">\\r\\n <input type=\\\"text\\\" autocomplete=\\\"off\\\" class=\\\"form-control \"\n + alias3(alias2(((stack1 = ((stack1 = (depth0 != null ? depth0.options : depth0)) != null ? stack1.styles : stack1)) != null ? stack1.shareInput : stack1), depth0))\n + \"\\\" id=\\\"share-input\\\" spellcheck=\\\"false\\\" readonly=\\\"true\\\" value=\"\n + alias3(((helper = (helper = helpers.shortUrl || (depth0 != null ? depth0.shortUrl : depth0)) != null ? helper : alias5),(typeof helper === \"function\" ? helper.call(alias4,{\"name\":\"shortUrl\",\"hash\":{},\"data\":data}) : helper)))\n + \">\\r\\n <div class=\\\"input-group-append\\\">\\r\\n <button class=\\\"btn bg-white copy \"\n + alias3(alias2(((stack1 = ((stack1 = (depth0 != null ? depth0.options : depth0)) != null ? stack1.styles : stack1)) != null ? stack1.copyBtn : stack1), depth0))\n + \"\\\" type=\\\"button\\\" data-clipboard-target=\\\"#share-input\\\">\"\n + alias3((helpers.lang||(depth0 && depth0.lang)||alias5).call(alias4,\"copy\",{\"name\":\"lang\",\"hash\":{},\"data\":data}))\n + \"</button>\\r\\n </div>\\r\\n </div>\\r\\n\\r\\n\"\n + ((stack1 = helpers.unless.call(alias4,((stack1 = (depth0 != null ? depth0.options : depth0)) != null ? stack1.showEmbed : stack1),{\"name\":\"unless\",\"hash\":{},\"fn\":container.program(4, data, 0),\"inverse\":container.noop,\"data\":data})) != null ? stack1 : \"\")\n + \"\\r\\n\"\n + ((stack1 = helpers[\"if\"].call(alias4,((stack1 = (depth0 != null ? depth0.options : depth0)) != null ? stack1.showEmbed : stack1),{\"name\":\"if\",\"hash\":{},\"fn\":container.program(6, data, 0),\"inverse\":container.noop,\"data\":data})) != null ? stack1 : \"\")\n + \"</div>\\r\\n\";\n},\"4\":function(container,depth0,helpers,partials,data) {\n var alias1=container.propertyIsEnumerable;\n\n return \" <small class=\\\"embed-toggle\\\"><a class=\\\"text-info cursor-pointer hover-text-underline\\\">\"\n + container.escapeExpression((helpers.lang||(depth0 && depth0.lang)||container.hooks.helperMissing).call(depth0 != null ? depth0 : (container.nullContext || {}),\"showOptions\",{\"name\":\"lang\",\"hash\":{},\"data\":data}))\n + \"</a></small>\\r\\n\";\n},\"6\":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, alias5=container.lambda;\n\n return \" <hr class=\\\"mt-4\\\">\\r\\n <label for=\\\"link-options-input\\\" class=\\\"mb-2 h6\\\">\"\n + alias4((helpers.lang||(depth0 && depth0.lang)||alias3).call(alias2,\"linkOptions\",{\"name\":\"lang\",\"hash\":{},\"data\":data}))\n + \"</label>\\r\\n <div class=\\\"custom-control custom-checkbox mb-2\\\">\\r\\n <input type=\\\"checkbox\\\" autocomplete=\\\"off\\\" class=\\\"custom-control-input public-checkbox\\\" id=\\\"public-checkbox\\\" name=\\\"public\\\" \"\n + ((stack1 = helpers.unless.call(alias2,((stack1 = (depth0 != null ? depth0.options : depth0)) != null ? stack1.canPublicShare : stack1),{\"name\":\"unless\",\"hash\":{},\"fn\":container.program(7, data, 0),\"inverse\":container.noop,\"data\":data})) != null ? stack1 : \"\")\n + \">\\r\\n <label class=\\\"custom-control-label\\\" for=\\\"public-checkbox\\\">\"\n + alias4((helpers.lang||(depth0 && depth0.lang)||alias3).call(alias2,\"publicCheckbox\",{\"name\":\"lang\",\"hash\":{},\"data\":data}))\n + \"</label>\\r\\n \"\n + ((stack1 = helpers.unless.call(alias2,((stack1 = (depth0 != null ? depth0.options : depth0)) != null ? stack1.canPublicShare : stack1),{\"name\":\"unless\",\"hash\":{},\"fn\":container.program(9, data, 0),\"inverse\":container.noop,\"data\":data})) != null ? stack1 : \"\")\n + \"\\r\\n </div>\\r\\n <hr class=\\\"mt-4\\\">\\r\\n <label for=\\\"embed-input\\\" class=\\\"mb-0 mt-2 h6\\\">\"\n + alias4((helpers.lang||(depth0 && depth0.lang)||alias3).call(alias2,\"embed\",{\"name\":\"lang\",\"hash\":{},\"data\":data}))\n + \"</label>\\r\\n <div class=\\\"input-group mb-2 \"\n + alias4(alias5(((stack1 = ((stack1 = (depth0 != null ? depth0.options : depth0)) != null ? stack1.styles : stack1)) != null ? stack1.textareaContainer : stack1), depth0))\n + \"\\\">\\r\\n <textarea type=\\\"text\\\" class=\\\"form-control rounded w-100 h-100 \"\n + alias4(alias5(((stack1 = ((stack1 = (depth0 != null ? depth0.options : depth0)) != null ? stack1.styles : stack1)) != null ? stack1.embedInput : stack1), depth0))\n + \"\\\" id=\\\"embed-input\\\" spellcheck=\\\"false\\\" readonly=\\\"true\\\">\"\n + alias4(alias5(((stack1 = (depth0 != null ? depth0.options : depth0)) != null ? stack1.embedString : stack1), depth0))\n + \"</textarea>\\r\\n <div class=\\\"input-group-append \"\n + alias4(alias5(((stack1 = ((stack1 = (depth0 != null ? depth0.options : depth0)) != null ? stack1.styles : stack1)) != null ? stack1.embedCopyBtn : stack1), depth0))\n + \" rounded\\\">\\r\\n <button class=\\\"btn bg-white copy \"\n + alias4(alias5(((stack1 = ((stack1 = (depth0 != null ? depth0.options : depth0)) != null ? stack1.styles : stack1)) != null ? stack1.copyBtn : stack1), depth0))\n + \"\\\" type=\\\"button\\\" data-clipboard-target=\\\"#embed-input\\\">\"\n + alias4((helpers.lang||(depth0 && depth0.lang)||alias3).call(alias2,\"copy\",{\"name\":\"lang\",\"hash\":{},\"data\":data}))\n + \"</button>\\r\\n </div>\\r\\n </div>\\r\\n\"\n + ((stack1 = helpers[\"if\"].call(alias2,((stack1 = (depth0 != null ? depth0.options : depth0)) != null ? stack1.videoSizes : stack1),{\"name\":\"if\",\"hash\":{},\"fn\":container.program(11, data, 0),\"inverse\":container.noop,\"data\":data})) != null ? stack1 : \"\")\n + \" <div class=\\\"custom-control custom-checkbox d-inline-block\\\">\\r\\n <input type=\\\"checkbox\\\" autocomplete=\\\"off\\\" class=\\\"custom-control-input autoplay-checkbox\\\" id=\\\"autoplay-checkbox\\\" name=\\\"autoplay\\\">\\r\\n <label class=\\\"custom-control-label\\\" for=\\\"autoplay-checkbox\\\">\"\n + alias4((helpers.lang||(depth0 && depth0.lang)||alias3).call(alias2,\"autoplay\",{\"name\":\"lang\",\"hash\":{},\"data\":data}))\n + \"</label>\\r\\n </div>\\r\\n\";\n},\"7\":function(container,depth0,helpers,partials,data) {\n return \"disabled\";\n},\"9\":function(container,depth0,helpers,partials,data) {\n var stack1, alias1=container.propertyIsEnumerable;\n\n return \"<div class=\\\"text-muted\\\">\"\n + container.escapeExpression(container.lambda(((stack1 = (depth0 != null ? depth0.options : depth0)) != null ? stack1.cannotPublicShareText : stack1), depth0))\n + \"</div>\";\n},\"11\":function(container,depth0,helpers,partials,data) {\n var alias1=container.propertyIsEnumerable;\n\n return \" <label for=\\\"size-select\\\" class=\\\"d-block pt-2 h6\\\">\"\n + container.escapeExpression((helpers.lang||(depth0 && depth0.lang)||container.hooks.helperMissing).call(depth0 != null ? depth0 : (container.nullContext || {}),\"playerSize\",{\"name\":\"lang\",\"hash\":{},\"data\":data}))\n + \"</label>\\r\\n <select class=\\\"custom-select w-25 mr-4 size-select\\\" id=\\\"#size-select\\\" name=\\\"selectedVideoSize\\\"></select>\\r\\n\";\n},\"compiler\":[8,\">= 4.3.0\"],\"main\":function(container,depth0,helpers,partials,data) {\n var stack1, alias1=container.propertyIsEnumerable;\n\n return ((stack1 = helpers[\"if\"].call(depth0 != null ? depth0 : (container.nullContext || {}),((stack1 = (depth0 != null ? depth0.options : depth0)) != null ? stack1.showLoader : stack1),{\"name\":\"if\",\"hash\":{},\"fn\":container.program(1, data, 0),\"inverse\":container.program(3, data, 0),\"data\":data})) != null ? stack1 : \"\");\n},\"useData\":true});","var Handlebars = require('handlebars');\nmodule.exports = (Handlebars['default'] || Handlebars).template({\"compiler\":[8,\">= 4.3.0\"],\"main\":function(container,depth0,helpers,partials,data) {\n var stack1, alias1=container.propertyIsEnumerable, alias2=container.lambda, alias3=container.escapeExpression;\n\n return \"<small class=\\\"text-left w-100 mb-0 \"\n + alias3(alias2(((stack1 = (depth0 != null ? depth0.options : depth0)) != null ? stack1.footerTextClass : stack1), depth0))\n + \"\\\">\"\n + alias3(alias2(((stack1 = (depth0 != null ? depth0.options : depth0)) != null ? stack1.privacyDescription : stack1), depth0))\n + \"</small>\";\n},\"useData\":true});","import * as _ from 'underscore';\r\nimport { ObjectHash } from 'backbone';\r\nimport * as ClipboardJS from 'clipboard';\r\n\r\nimport { InstanceManager } from 'libs/common/backbone/services/InstanceManager';\r\nimport { ViewModelService } from 'libs/common/backbone/services/ViewModelService';\r\nimport { Core } from 'libs/common/core';\r\nimport { LanguageService } from 'libs/common/backbone/services/LanguageService';\r\nimport { UrlHelper } from 'libs/common/backbone/utils/UrlHelper';\r\n\r\nimport { EmbedHelper, EmbedResolution } from 'libs/shared/utils/EmbedHelper';\r\n\r\nimport { PopupBehavior, StickitBehavior } from 'shared/behaviors';\r\nimport { ConfigDataServiceHelper } from 'shared/services/ConfigDataService';\r\nimport { DataServices } from 'shared/constants/Services';\r\nimport { SharedResourcePrivacy } from 'shared/enums';\r\nimport { Config } from 'shared/models/Config';\r\nimport { Video } from 'shared/models/Video';\r\nimport { SharedResource } from 'shared/models/SharedResource';\r\n\r\nimport { SpinnerHelper, SpinnerSize, PermissionsHelper, VideoHelper } from 'shared/utils';\r\n\r\nimport { VideoDataService } from 'apps/library-editor/services/VideoDataService';\r\n\r\nimport styles from './share.scss';\r\nimport ShareTemplate from './Share.hbs';\r\nimport ShareFooterTemplate from './ShareFooter.hbs';\r\nimport EmbedStringTemplate from './EmbedString.hbs';\r\nimport { DataChannels, DataPrefixes } from 'shared/constants';\r\n\r\ninterface ShareFooterComponentOptions extends Core.ComponentOptions {\r\n privacyDescription: string;\r\n}\r\n\r\nclass ShareFooterComponent extends Core.Component {\r\n protected options: ShareFooterComponentOptions;\r\n\r\n constructor(options: ShareFooterComponentOptions) {\r\n super(options);\r\n }\r\n\r\n public get name(): string {\r\n return 'ShareFooterComponent';\r\n }\r\n\r\n public get className(): string {\r\n return 'modal-footer bg-light rounded-bottom';\r\n }\r\n\r\n public get template(): any {\r\n return ShareFooterTemplate;\r\n }\r\n\r\n public viewOptions(): ObjectHash {\r\n return {\r\n footerTextClass: styles.footerText,\r\n privacyDescription: this.options.privacyDescription\r\n };\r\n }\r\n}\r\n\r\nexport interface ShareViewOptions extends Core.ViewOptions {\r\n videoSizes?: EmbedResolution[];\r\n videoId: string;\r\n}\r\n\r\nexport class ShareView extends Core.View<SharedResource> {\r\n private videoId: string;\r\n private videoDataService: VideoDataService;\r\n private config: Config;\r\n private clipboards: ClipboardJS[] = [];\r\n protected options: ShareViewOptions;\r\n private video: Video;\r\n\r\n constructor(options?: ShareViewOptions) {\r\n super(options);\r\n }\r\n\r\n public initialize(): void {\r\n this.setUpViewModel();\r\n this.bindListeners();\r\n\r\n this.videoDataService = InstanceManager.getInstance(DataServices.Video, this);\r\n }\r\n\r\n public get name(): string {\r\n return 'ShareView';\r\n }\r\n\r\n public get title(): boolean {\r\n return false;\r\n }\r\n\r\n public get template(): any {\r\n return ShareTemplate;\r\n }\r\n\r\n public get lang(): string {\r\n return 'shared.share';\r\n }\r\n\r\n public get props(): string[] {\r\n return ['videoId'];\r\n }\r\n\r\n public get elements(): ObjectHash {\r\n return {\r\n copy: '.copy',\r\n embedToggle: '.embed-toggle'\r\n };\r\n }\r\n\r\n public events(): ObjectHash {\r\n return {\r\n 'click @ui.copy': 'onClickCopy',\r\n 'click @ui.embedToggle': 'onClickEmbed',\r\n };\r\n }\r\n\r\n public regions(): ObjectHash {\r\n return {\r\n container: {\r\n el: `.${styles.container}`,\r\n replaceElement: false\r\n },\r\n footer: {\r\n el: '.modal-footer',\r\n replaceElement: true\r\n }\r\n };\r\n }\r\n\r\n public get defaults(): ObjectHash {\r\n return {\r\n autoplay: false,\r\n selectedVideoSize: 0,\r\n videoSizes: EmbedHelper.getEmbedResolutions()\r\n };\r\n }\r\n\r\n public get behaviors(): any[] {\r\n return [\r\n {\r\n behaviorClass: PopupBehavior,\r\n\r\n title: LanguageService.getPhrase(this.lang, 'share'),\r\n hideCloseButton: true\r\n },\r\n {\r\n behaviorClass: StickitBehavior,\r\n bindViewModel: true\r\n }\r\n ];\r\n }\r\n\r\n private bindListeners(): void {\r\n this.listenTo(this.viewModel, 'change:autoplay change:selectedVideoSize', this.render);\r\n this.listenTo(this.viewModel, 'change:public', this.onTogglePublic);\r\n this.listenTo(DataChannels.VIDEO, `${DataPrefixes.VIDEOS}:${this.options.videoId}:sync`, this.render);\r\n }\r\n\r\n public get bindings(): ObjectHash {\r\n const collection = () =>\r\n _.map(this.options.videoSizes, (item, index) =>\r\n ({ label: item.label, value: index }));\r\n\r\n return {\r\n '[name=autoplay]': 'autoplay',\r\n '[name=selectedVideoSize]': {\r\n observe: 'selectedVideoSize',\r\n selectOptions: {\r\n collection\r\n }\r\n },\r\n '[name=public]': 'public'\r\n };\r\n }\r\n\r\n private setUpViewModel(): void {\r\n this.viewModel = ViewModelService.get(`share:${this.options.videoId}`, this.options);\r\n }\r\n\r\n private onTogglePublic(): void {\r\n const privacy = this.viewModel.get('public') ? SharedResourcePrivacy.Public : SharedResourcePrivacy.SchoolOnly;\r\n this.videoDataService.getSharedResource(this.videoId, privacy, (data: SharedResource) => {\r\n /**\r\n * This is a hack fixing staging shortcode api returning a stale privacy id\r\n */\r\n data.set('privacyId', privacy);\r\n this.onSharedResourceSync(data);\r\n });\r\n }\r\n\r\n private updateViewModel(): void {\r\n this.viewModel.set('public', this.model.get('privacyId') === SharedResourcePrivacy.Public, { silent: true });\r\n }\r\n\r\n private onSharedResourceSync(data: SharedResource): void {\r\n this.model = data;\r\n this.updateViewModel();\r\n this.render();\r\n }\r\n\r\n private fetchData(): void {\r\n this.video = this.videoDataService.getVideo(this.videoId);\r\n\r\n if (this.model) return;\r\n\r\n this.videoDataService.getSharedResource(\r\n this.videoId, null, _.bind(this.onSharedResourceSync, this));\r\n }\r\n\r\n private buildEmbedString(): string {\r\n const embedOptions = _.extend({}, this.model.toJSON(), this.viewModel.toJSON());\r\n\r\n const selectedSize = this.options.videoSizes[embedOptions.selectedVideoSize];\r\n const isResponsive = selectedSize.height === '100%' && selectedSize.width === '100%';\r\n\r\n embedOptions.videoSize = selectedSize;\r\n embedOptions.baseUrl = UrlHelper.safeUrlConcat(this.config.get('onlineUrl'), '/share/embed');\r\n embedOptions.isResponsive = isResponsive;\r\n\r\n const iframeTemplate = EmbedStringTemplate(embedOptions);\r\n\r\n return isResponsive\r\n ? `<div style=\"padding:56.25% 0 0 0; position:relative;\">${iframeTemplate}</div>`\r\n : iframeTemplate;\r\n }\r\n\r\n private onClickEmbed(): void {\r\n this.viewModel.set('showEmbed', true);\r\n this.render();\r\n }\r\n\r\n private onClickCopy(e: any): void {\r\n this.$(e.currentTarget).text(LanguageService.getPhrase(this.lang, 'copied'));\r\n }\r\n\r\n private getPrivacyDescription(privacy: string): string {\r\n switch (privacy) {\r\n case SharedResourcePrivacy[SharedResourcePrivacy.Private]:\r\n return LanguageService.getPhrase(this.lang, 'private');\r\n\r\n case SharedResourcePrivacy[SharedResourcePrivacy.SchoolOnly]:\r\n return LanguageService.getPhrase(this.lang, 'schoolOnly');\r\n\r\n case SharedResourcePrivacy[SharedResourcePrivacy.Public]:\r\n return LanguageService.getPhrase(this.lang, 'public');\r\n\r\n default:\r\n return '';\r\n }\r\n }\r\n\r\n private initClipboards(): void {\r\n this.destroyClipboards();\r\n this.getUI('copy').each((index, element) => {\r\n this.clipboards.push(new ClipboardJS(element));\r\n });\r\n }\r\n\r\n private destroyClipboards(): void {\r\n _.each(this.clipboards, cp => cp.destroy());\r\n this.clipboards = [];\r\n }\r\n\r\n public get requiredResources(): Core.RequiredResourceHash {\r\n return {\r\n config: ConfigDataServiceHelper.config\r\n };\r\n }\r\n\r\n private getCannotPublicShareText(): string {\r\n if (!this.video)\r\n return '';\r\n\r\n if (VideoHelper.isExchangeVideo(this.video))\r\n return LanguageService.getPhrase(this.lang, 'cannotShareExchange');\r\n\r\n return LanguageService.getPhrase(this.lang, 'cannotShareClickView');\r\n }\r\n\r\n public onBeforeDestroy(): void {\r\n this.destroyClipboards();\r\n }\r\n\r\n private renderFooter(): void {\r\n const privacyDescription = this.model && this.getPrivacyDescription(this.model.get('privacy'));\r\n\r\n this.showChildView('footer', new ShareFooterComponent({\r\n privacyDescription\r\n }));\r\n }\r\n\r\n public viewOptions(): ObjectHash {\r\n return {\r\n styles,\r\n ...this.viewModel.toJSON(),\r\n embedString: this.model && this.buildEmbedString(),\r\n spinnerEl: SpinnerHelper.getSpinner({ size: SpinnerSize.Large, extraClasses: 'mx-auto' }),\r\n showLoader: !this.model || !this.video,\r\n canPublicShare: this.video && PermissionsHelper.canPublicShare(this.video),\r\n cannotPublicShareText: this.getCannotPublicShareText()\r\n };\r\n }\r\n\r\n public onBeforeRender(): void {\r\n this.fetchData();\r\n }\r\n\r\n public onRender(): void {\r\n this.initClipboards();\r\n this.renderFooter();\r\n }\r\n}","// extracted by mini-css-extract-plugin\nmodule.exports = {\"container\":\"cv--container--2SYyd\",\"embedInput\":\"cv--embedInput--ozkKz\",\"textareaContainer\":\"cv--textareaContainer--1monr\",\"shareInput\":\"cv--shareInput--36Arj\",\"copyBtn\":\"cv--copyBtn--2UGxe\",\"embedCopyBtn\":\"cv--embedCopyBtn--gaJap\",\"footerText\":\"cv--footerText--3ydjG\"};"],"sourceRoot":""}
@@ -1 +0,0 @@
1
- (window.webpackJsonp_clickview_library_editor=window.webpackJsonp_clickview_library_editor||[]).push([[24],{1089:function(t,e,n){"use strict";n.r(e);var r=n(1),o=n(2),i=n(5),a=n(3),c=n(4),u=n(13),l=n(179),s=n(28),f=n(119),p=n(0),y=n(6),d=n(680),h=n(805),b=n.n(h),g=n(806),m=n.n(g),v=n(11),w=n(686),O=(n(714),n(681)),R=n(691);function _(t){return(_="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t})(t)}function k(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}function S(t,e){for(var n=0;n<e.length;n++){var r=e[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(t,r.key,r)}}function E(t,e,n){return e&&S(t.prototype,e),n&&S(t,n),t}function P(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function");t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,writable:!0,configurable:!0}}),e&&D(t,e)}function D(t,e){return(D=Object.setPrototypeOf||function(t,e){return t.__proto__=e,t})(t,e)}function j(t){var e=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Date.prototype.toString.call(Reflect.construct(Date,[],(function(){}))),!0}catch(t){return!1}}();return function(){var n,r=I(t);if(e){var o=I(this).constructor;n=Reflect.construct(r,arguments,o)}else n=r.apply(this,arguments);return C(this,n)}}function C(t,e){return!e||"object"!==_(e)&&"function"!=typeof e?function(t){if(void 0===t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return t}(t):e}function I(t){return(I=Object.setPrototypeOf?Object.getPrototypeOf:function(t){return t.__proto__||Object.getPrototypeOf(t)})(t)}var T=function(t){P(n,t);var e=j(n);function n(t){return k(this,n),e.call(this,t)}return E(n,[{key:"initialize",value:function(){this.listenTo(this.model,"change:name",this.render)}},{key:"regions",value:function(){return{actions:{el:".actions-region",replaceElement:!0}}}},{key:"viewOptions",value:function(){var t=v.g.createFolderThumbnailUrl(this.model.thumbnail,{fallbackBaseUrl:this.options.imageCdnUrl,fallbackCategoryName:this.model.get("name"),type:y.f.Thumbnails});return{styles:m.a,imageUrl:t}}},{key:"onRender",value:function(){this.showChildView("actions",new R.a({model:this.model,extraClasses:"".concat(m.a.actions," rounded-circle"),buttonClass:"text-light",analyticsOptions:{location:c.k.LibraryTiles}}))}},{key:"name",get:function(){return"LibraryFolderItemComponent"}},{key:"template",get:function(){return b.a}},{key:"className",get:function(){return"col-3 p-2"}},{key:"appLinks",get:function(){return{a:{application:p.b.LIBRARY_EDITOR,action:p.a.LibraryEditor.FOLDER,args:[this.model.get("id")]}}}},{key:"behaviors",get:function(){return[{behaviorClass:O.a,channelNames:[p.w.VIDEO_DRAG_DROP,p.w.FOLDER_DRAG_DROP],analyticsOptions:{location:c.k.LibraryTiles}},{behaviorClass:w.a}]}}]),n}(o.a.Component),x=function(t){P(n,t);var e=j(n);function n(t){return k(this,n),e.call(this,t)}return E(n,[{key:"name",get:function(){return"LibraryFolderListComponent"}},{key:"className",get:function(){return"row"}},{key:"childView",get:function(){return T}},{key:"childViewOptions",get:function(){return this.options.childOptions}}]),n}(o.a.ComponentCollection),L=n(725),A=n(807),F=n.n(A),B=n(808),N=n.n(B);function V(t){return(V="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t})(t)}function M(t,e){for(var n=0;n<e.length;n++){var r=e[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(t,r.key,r)}}function U(t,e){return(U=Object.setPrototypeOf||function(t,e){return t.__proto__=e,t})(t,e)}function Y(t){var e=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Date.prototype.toString.call(Reflect.construct(Date,[],(function(){}))),!0}catch(t){return!1}}();return function(){var n,r=G(t);if(e){var o=G(this).constructor;n=Reflect.construct(r,arguments,o)}else n=r.apply(this,arguments);return q(this,n)}}function q(t,e){return!e||"object"!==V(e)&&"function"!=typeof e?function(t){if(void 0===t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return t}(t):e}function G(t){return(G=Object.setPrototypeOf?Object.getPrototypeOf:function(t){return t.__proto__||Object.getPrototypeOf(t)})(t)}n.d(e,"LibraryView",(function(){return H}));var H=function(t){!function(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function");t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,writable:!0,configurable:!0}}),e&&U(t,e)}(b,t);var e,n,o,h=Y(b);function b(t){return function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,b),h.call(this,t)}return e=b,(n=[{key:"initialize",value:function(){var t=this;this.libraryDataService=i.a.getInstance(p.g.Library,this),this.listenTo(p.e.LIBRARY,"clear:library:folder:cache",(function(){t.folders=null,t.render()}))}},{key:"regions",value:function(){return{folders:{el:".folders-region",replaceElement:!0,partialLoading:y.j.LibraryFolders},actions:{el:".actions-region",replaceElement:!0}}}},{key:"renderFolders",value:function(){this.showChildView("folders",new x({collection:this.folders,childOptions:{imageCdnUrl:this.config.get("imageCdnUrl")}}))}},{key:"renderActions",value:function(){this.showChildView("actions",new L.a({model:this.model,extraClasses:"".concat(N.a.actions," rounded-circle mr-2 mt-2"),analyticsOptions:{location:c.k.Banner}}))}},{key:"bindScrollListener",value:function(){var t=this;if(!this.scrollBound){this.scrollBound=!0;var e=$(window),n=r.debounce((function(){if(e.scrollTop()+e.height()>t.$el.offset().top+t.$el.height()&&t.currentIdentifier){var n=t.libraryDataService.getLibraryFoldersCursors(t.currentIdentifier);n&&n.next&&t.libraryDataService.getLibraryFolders(t.getNewCollectionIdentifier(n.next),(function(e){t.folders.add(e.toJSON())}))}}),333);e.scroll(n),window.setTimeout(n,100)}}},{key:"getNewCollectionIdentifier",value:function(t){return this.currentIdentifier=new d.a(this.model.categoryTree.get("id"),s.a.AtoZ,t)}},{key:"onBeforeRender",value:function(){var t=this;if(this.model)return this.folders||this.libraryDataService.getLibraryFolders(this.getNewCollectionIdentifier(),(function(e){t.folders=e,t.render()})),!!this.model&&!!this.folders;this.libraryDataService.getLibraries((function(e){t.model=e.get(t.options.libraryId),t.listenTo(t.model,"change:name",t.render),t.render()}))}},{key:"onRender",value:function(){this.renderFolders(),this.renderActions(),this.bindScrollListener()}},{key:"name",get:function(){return"LibraryView"}},{key:"title",get:function(){return!!this.model&&this.model.get("name")}},{key:"lang",get:function(){return"libraryEditor.library"}},{key:"template",get:function(){return F.a}},{key:"className",get:function(){return"bg-white px-3 pt-3 pb-2 position-relative ".concat(N.a.library)}},{key:"behaviors",get:function(){var t=this;return[{behaviorClass:l.a,region:"folders",type:y.c.Library,shouldRender:function(){return t.model&&!t.model.children.length},componentOptions:{libraryId:this.options.libraryId,moreSvg:u.a.getSvg(u.b.More),heading:a.a.getPhrase(this.lang,"emptyStateHeading"),description:a.a.getPhrase(this.lang,"emptyStateInfo",{moreSvg:'<span class="d-inline-block svg-container align-top">\n '.concat(u.a.getSvg(u.b.More),"</span>")})},emptyStateComponents:p.h}]}},{key:"requiredResources",get:function(){return{config:f.b.config}}}])&&M(e.prototype,n),o&&M(e,o),b}(o.a.View)},659:function(t,e,n){"use strict";n.d(e,"a",(function(){return p}));var r=n(1),o=n(2),i=n(178);function a(t){return(a="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t})(t)}function c(t,e){for(var n=0;n<e.length;n++){var r=e[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(t,r.key,r)}}function u(t,e){return(u=Object.setPrototypeOf||function(t,e){return t.__proto__=e,t})(t,e)}function l(t){var e=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Date.prototype.toString.call(Reflect.construct(Date,[],(function(){}))),!0}catch(t){return!1}}();return function(){var n,r=f(t);if(e){var o=f(this).constructor;n=Reflect.construct(r,arguments,o)}else n=r.apply(this,arguments);return s(this,n)}}function s(t,e){return!e||"object"!==a(e)&&"function"!=typeof e?function(t){if(void 0===t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return t}(t):e}function f(t){return(f=Object.setPrototypeOf?Object.getPrototypeOf:function(t){return t.__proto__||Object.getPrototypeOf(t)})(t)}var p=function(t){!function(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function");t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,writable:!0,configurable:!0}}),e&&u(t,e)}(s,t);var e,n,o,a=l(s);function s(t){return function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,s),a.call(this,t)}return e=s,(n=[{key:"initialize",value:function(){this.listenTo(this.options.channelName,"center:dropdown",this.centerSelectedItem)}},{key:"getExtraClasses",value:function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},e=t.alignment,n=void 0===e?"left":e,r=t.extraClasses,o="dropdown-menu-".concat(n);return r&&(o="".concat(o," ").concat(r)),o}},{key:"centerSelectedItem",value:function(){var t=this.$el.find(".active");if(t.length){var e=this.$el.scrollTop()+t.position().top,n=.5*this.$el.height()+.5*t.height();this.$el.scrollTop(e-n)}}},{key:"name",get:function(){return"DropdownCollectionComponent"}},{key:"className",get:function(){return"dropdown-menu items-viewpart ".concat(this.getExtraClasses(this.options.displayOptions))}},{key:"attributes",get:function(){return{"aria-labelledby":"dropdownSelector"}}},{key:"childView",get:function(){return i.a}},{key:"childViewOptions",get:function(){var t={channelName:this.options.channelName,analyticsHelper:this.options.analyticsHelper};return r.extend(t,this.options.childOptions)}}])&&c(e.prototype,n),o&&c(e,o),s}(o.a.ComponentCollection)},669:function(t,e,n){t.exports={dragItem:"_2TIZ7",svgContainer:"_3JzEU",dragText:"_1Kdwj"}},670:function(t,e,n){var r=n(8);t.exports=(r.default||r).template({compiler:[8,">= 4.3.0"],main:function(t,e,n,r,o){t.propertyIsEnumerable;var i,a=t.lambda,c=t.escapeExpression;return'<span class="'+c(a(null!=(i=null!=(i=null!=e?e.options:e)?i.styles:i)?i.svgContainer:i,e))+' mr-2">'+(null!=(i=a(null!=(i=null!=e?e.options:e)?i.svg:i,e))?i:"")+'</span>\r\n<span class="'+c(a(null!=(i=null!=(i=null!=e?e.options:e)?i.styles:i)?i.dragText:i,e))+'">'+c(a(null!=(i=null!=e?e.options:e)?i.text:i,e))+"</span>"},useData:!0})},680:function(t,e,n){"use strict";var r=n(121),o=n(1),i=n(120),a=n(0),c=n(88),u=n(176);function l(t){return(l="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t})(t)}function s(t){return function(t){if(Array.isArray(t))return f(t)}(t)||function(t){if("undefined"!=typeof Symbol&&Symbol.iterator in Object(t))return Array.from(t)}(t)||function(t,e){if(!t)return;if("string"==typeof t)return f(t,e);var n=Object.prototype.toString.call(t).slice(8,-1);"Object"===n&&t.constructor&&(n=t.constructor.name);if("Map"===n||"Set"===n)return Array.from(t);if("Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n))return f(t,e)}(t)||function(){throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function f(t,e){(null==e||e>t.length)&&(e=t.length);for(var n=0,r=new Array(e);n<e;n++)r[n]=t[n];return r}function p(t,e){for(var n=0;n<e.length;n++){var r=e[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(t,r.key,r)}}function y(t,e){return(y=Object.setPrototypeOf||function(t,e){return t.__proto__=e,t})(t,e)}function d(t){var e=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Date.prototype.toString.call(Reflect.construct(Date,[],(function(){}))),!0}catch(t){return!1}}();return function(){var n,r=b(t);if(e){var o=b(this).constructor;n=Reflect.construct(r,arguments,o)}else n=r.apply(this,arguments);return h(this,n)}}function h(t,e){return!e||"object"!==l(e)&&"function"!=typeof e?function(t){if(void 0===t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return t}(t):e}function b(t){return(b=Object.setPrototypeOf?Object.getPrototypeOf:function(t){return t.__proto__||Object.getPrototypeOf(t)})(t)}var g=function(t){!function(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function");t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,writable:!0,configurable:!0}}),e&&y(t,e)}(l,t);var e,n,r,i=d(l);function l(t){var e;return function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,l),(e=i.call(this,{collectionPrefix:"".concat(a.f.RECENT_VIDEOS,":collection"),cursor:t.cursor,sort:t.sort})).setAdditionalData(t),e}return e=l,(n=[{key:"setAdditionalData",value:function(t){var e=t.libraryIds,n=t.dateQueryString,r=t.subjects;e&&(this.libraryIds=e),r&&(o.isArray(r)&&r.length&&(this.subjects=r),o.isArray(r)||(this.subjects=[r]));var i=o.findWhere(u.g,{queryString:n})||u.e;this.dateOption=new c.b(i)}},{key:"toString",value:function(){var t=this.subjects&&this.subjects.length&&this.subjects.map((function(t){return escape(t.get("name"))}))||[];return[this.collectionPrefix,this.libraryIds,this.dateOption.get("from"),this.dateOption.get("to")].concat(s(t),[this.cursor]).filter(Boolean).join(":")}},{key:"toParams",value:function(){var t={};return this.libraryIds&&(t.libraryIds=this.libraryIds),this.dateOption&&(t.from=this.dateOption.get("from"),t.to=this.dateOption.get("to")),this.subjects&&(t.subjectIds=o.flatten(this.subjects.map((function(t){return t.get("subjectIds")})))),this.cursor&&(t.cursor=this.cursor),t}}])&&p(e.prototype,n),r&&p(e,r),l}(i.a);function m(t){return(m="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t})(t)}function v(t,e){for(var n=0;n<e.length;n++){var r=e[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(t,r.key,r)}}function w(t,e){return(w=Object.setPrototypeOf||function(t,e){return t.__proto__=e,t})(t,e)}function O(t){var e=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Date.prototype.toString.call(Reflect.construct(Date,[],(function(){}))),!0}catch(t){return!1}}();return function(){var n,r=_(t);if(e){var o=_(this).constructor;n=Reflect.construct(r,arguments,o)}else n=r.apply(this,arguments);return R(this,n)}}function R(t,e){return!e||"object"!==m(e)&&"function"!=typeof e?function(t){if(void 0===t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return t}(t):e}function _(t){return(_=Object.setPrototypeOf?Object.getPrototypeOf:function(t){return t.__proto__||Object.getPrototypeOf(t)})(t)}var k=function(t){!function(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function");t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,writable:!0,configurable:!0}}),e&&w(t,e)}(l,t);var e,n,r,i=O(l);function l(t){var e;return function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,l),(e=i.call(this,{collectionPrefix:"".concat(a.f.RECENT_SUBJECTS,":collection"),sort:t.sort})).setAdditionalData(t),e}return e=l,(n=[{key:"setAdditionalData",value:function(t){var e=t.libraryIds,n=t.dateQueryString;e&&(this.libraryIds=e);var r=o.findWhere(u.g,{queryString:n})||u.e;this.dateOption=new c.b(r)}},{key:"toString",value:function(){return[this.collectionPrefix,this.libraryIds,this.dateOption.get("from"),this.dateOption.get("to")].filter(Boolean).join(":")}},{key:"toParams",value:function(){var t={};return this.libraryIds&&(t.libraryIds=this.libraryIds),this.dateOption&&(t.from=this.dateOption.get("from"),t.to=this.dateOption.get("to")),t}}])&&v(e.prototype,n),r&&v(e,r),l}(i.a);function S(t){return(S="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t})(t)}function E(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}function P(t,e){return(P=Object.setPrototypeOf||function(t,e){return t.__proto__=e,t})(t,e)}function D(t){var e=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Date.prototype.toString.call(Reflect.construct(Date,[],(function(){}))),!0}catch(t){return!1}}();return function(){var n,r=C(t);if(e){var o=C(this).constructor;n=Reflect.construct(r,arguments,o)}else n=r.apply(this,arguments);return j(this,n)}}function j(t,e){return!e||"object"!==S(e)&&"function"!=typeof e?function(t){if(void 0===t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return t}(t):e}function C(t){return(C=Object.setPrototypeOf?Object.getPrototypeOf:function(t){return t.__proto__||Object.getPrototypeOf(t)})(t)}var I=function(t){!function(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function");t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,writable:!0,configurable:!0}}),e&&P(t,e)}(n,t);var e=D(n);function n(t,r){var o=arguments.length>2&&void 0!==arguments[2]?arguments[2]:"";return E(this,n),e.call(this,{collectionPrefix:a.f.LIBRARY_FOLDERS,id:t,sort:r,cursor:o})}return n}(i.a);n.d(e,"d",(function(){return r.a})),n.d(e,"b",(function(){return g})),n.d(e,"c",(function(){return k})),n.d(e,"a",(function(){return I}))},681:function(t,e,n){"use strict";n.d(e,"a",(function(){return d}));var r=n(1),o=n(7),i=n(2),a=n(91);function c(t){return(c="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t})(t)}function u(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}function l(t,e){for(var n=0;n<e.length;n++){var r=e[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(t,r.key,r)}}function s(t,e){return(s=Object.setPrototypeOf||function(t,e){return t.__proto__=e,t})(t,e)}function f(t){var e=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Date.prototype.toString.call(Reflect.construct(Date,[],(function(){}))),!0}catch(t){return!1}}();return function(){var n,r=y(t);if(e){var o=y(this).constructor;n=Reflect.construct(r,arguments,o)}else n=r.apply(this,arguments);return p(this,n)}}function p(t,e){return!e||"object"!==c(e)&&"function"!=typeof e?function(t){if(void 0===t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return t}(t):e}function y(t){return(y=Object.setPrototypeOf?Object.getPrototypeOf:function(t){return t.__proto__||Object.getPrototypeOf(t)})(t)}var d=function(t){!function(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function");t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,writable:!0,configurable:!0}}),e&&s(t,e)}(p,t);var e,n,i,c=f(p);function p(){return u(this,p),c.apply(this,arguments)}return e=p,(n=[{key:"getDroppableElement",value:function(){return this.options.ui?this.view.getUI(this.options.ui):this.$el}},{key:"drop",value:function(){var t=this;r.each(this.options.channelNames,(function(e){o.Radio.channel(e).trigger("drag:drop",t.view.model,t.options.analyticsOptions)}))}},{key:"accept",value:function(){var t=this,e=!1;return r.each(this.options.channelNames,(function(n){!0===o.Radio.channel(n).request("accept",t.view.model)&&(e=!0)})),e}},{key:"over",value:function(){var t=this;this.isHoveringOver=!0,window.setTimeout((function(){t.isHoveringOver&&t.view.trigger("open:sub:folders",a.active)}),500)}},{key:"out",value:function(){this.isHoveringOver=!1}},{key:"onRender",value:function(){var t={tolerance:"pointer",drop:r.bind(this.drop,this),accept:r.bind(this.accept,this),over:r.bind(this.over,this),out:r.bind(this.out,this)};t.classes={"ui-droppable":a.droppable,"ui-droppable-active":a.active,"ui-droppable-hover":a.hover},this.getDroppableElement().droppable(t)}},{key:"onBeforeDestroy",value:function(){this.getDroppableElement().droppable("instance")&&this.getDroppableElement().droppable("destroy")}}])&&l(e.prototype,n),i&&l(e,i),p}(i.a.Behavior)},685:function(t,e,n){"use strict";var r=n(669),o=n.n(r),i=n(670),a=n.n(i);function c(t){return(c="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t})(t)}function u(t,e){for(var n=0;n<e.length;n++){var r=e[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(t,r.key,r)}}function l(t,e){return(l=Object.setPrototypeOf||function(t,e){return t.__proto__=e,t})(t,e)}function s(t){var e=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Date.prototype.toString.call(Reflect.construct(Date,[],(function(){}))),!0}catch(t){return!1}}();return function(){var n,r=p(t);if(e){var o=p(this).constructor;n=Reflect.construct(r,arguments,o)}else n=r.apply(this,arguments);return f(this,n)}}function f(t,e){return!e||"object"!==c(e)&&"function"!=typeof e?function(t){if(void 0===t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return t}(t):e}function p(t){return(p=Object.setPrototypeOf?Object.getPrototypeOf:function(t){return t.__proto__||Object.getPrototypeOf(t)})(t)}var y=function(t){!function(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function");t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,writable:!0,configurable:!0}}),e&&l(t,e)}(c,t);var e,n,r,i=s(c);function c(t){return function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,c),i.call(this,t)}return e=c,(n=[{key:"viewOptions",value:function(){return Object.assign({styles:o.a},this.options)}},{key:"name",get:function(){return"DraggableItemComponent"}},{key:"template",get:function(){return a.a}},{key:"className",get:function(){return"".concat(o.a.dragItem," p-3")}}])&&u(e.prototype,n),r&&u(e,r),c}(n(2).a.Component),d={delay:150,cursorAt:{left:-20,top:10},refreshPositions:!0};n.d(e,"c",(function(){return o.a})),n.d(e,"b",(function(){return y})),n.d(e,"a",(function(){return d}))},686:function(t,e,n){"use strict";n.d(e,"a",(function(){return m}));var r=n(1),o=n(7),i=n(2),a=n(13),c=n(0),u=n(685),l=n(693),s=n.n(l);function f(t){return(f="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t})(t)}function p(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}function y(t,e){for(var n=0;n<e.length;n++){var r=e[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(t,r.key,r)}}function d(t,e){return(d=Object.setPrototypeOf||function(t,e){return t.__proto__=e,t})(t,e)}function h(t){var e=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Date.prototype.toString.call(Reflect.construct(Date,[],(function(){}))),!0}catch(t){return!1}}();return function(){var n,r=g(t);if(e){var o=g(this).constructor;n=Reflect.construct(r,arguments,o)}else n=r.apply(this,arguments);return b(this,n)}}function b(t,e){return!e||"object"!==f(e)&&"function"!=typeof e?function(t){if(void 0===t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return t}(t):e}function g(t){return(g=Object.setPrototypeOf?Object.getPrototypeOf:function(t){return t.__proto__||Object.getPrototypeOf(t)})(t)}var m=function(t){!function(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function");t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,writable:!0,configurable:!0}}),e&&d(t,e)}(f,t);var e,n,i,l=h(f);function f(){return p(this,f),l.apply(this,arguments)}return e=f,(n=[{key:"getClassMappings",value:function(){return{"ui-draggable":u.c.draggable,"ui-draggable-handle":u.c.handle,"ui-draggable-disabled":u.c.disabled,"ui-draggable-dragging":u.c.dragging}}},{key:"helper",value:function(){return new u.b({text:this.view.model.get("name"),svg:a.a.getSvg(a.b.Folder)}).render().el}},{key:"start",value:function(){o.Radio.channel(c.w.FOLDER_DRAG_DROP).trigger("drag:start",this.view.model),this.view.$el.addClass(s.a.draggingFolder)}},{key:"stop",value:function(){o.Radio.channel(c.w.FOLDER_DRAG_DROP).trigger("drag:stop"),this.view.$el.removeClass(s.a.draggingFolder)}},{key:"onRender",value:function(){var t={helper:r.bind(this.helper,this),start:r.bind(this.start,this),stop:r.bind(this.stop,this)};t.classes=this.getClassMappings(),this.view.$el.draggable(r.extend({},u.a,t))}},{key:"onBeforeDestroy",value:function(){this.view.$el.draggable("instance")&&this.view.$el.draggable("destroy")}}])&&y(e.prototype,n),i&&y(e,i),f}(i.a.Behavior)},691:function(t,e,n){"use strict";var r=n(2),o=n(13),i=n(54),a=n(4),c=n(31),u=n(659),l=n(0),s=n(3),f=n(694),p=n.n(f);function y(t){return(y="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t})(t)}function d(t,e){for(var n=0;n<e.length;n++){var r=e[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(t,r.key,r)}}function h(t,e){return(h=Object.setPrototypeOf||function(t,e){return t.__proto__=e,t})(t,e)}function b(t){var e=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Date.prototype.toString.call(Reflect.construct(Date,[],(function(){}))),!0}catch(t){return!1}}();return function(){var n,r=m(t);if(e){var o=m(this).constructor;n=Reflect.construct(r,arguments,o)}else n=r.apply(this,arguments);return g(this,n)}}function g(t,e){return!e||"object"!==y(e)&&"function"!=typeof e?function(t){if(void 0===t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return t}(t):e}function m(t){return(m=Object.setPrototypeOf?Object.getPrototypeOf:function(t){return t.__proto__||Object.getPrototypeOf(t)})(t)}var v=function(t){!function(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function");t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,writable:!0,configurable:!0}}),e&&h(t,e)}(f,t);var e,n,o,i=b(f);function f(t){return function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,f),i.call(this,t)}return e=f,(n=[{key:"regions",value:function(){return{items:{el:".items-region",replaceElement:!0}}}},{key:"getFolderActions",value:function(){return[{title:s.a.getPhrase(this.lang,"addSubfolder"),analyticsOptions:c.a.mergeOptions(this.options.analyticsOptions,{actionType:a.q.Create,entity:a.e.Folder,workflowPhase:a.r.Start}),appLink:{application:l.b.LIBRARY_EDITOR,action:l.a.LibraryEditor.NEW_SUB_FOLDER,args:[this.model.get("id")]}},{title:s.a.getPhrase(this.lang,"rename"),analyticsOptions:c.a.mergeOptions(this.options.analyticsOptions,{actionType:a.q.Rename,entity:a.e.Folder,workflowPhase:a.r.Start}),appLink:{application:l.b.LIBRARY_EDITOR,action:l.a.LibraryEditor.RENAME_FOLDER,args:[this.model.get("id")]}},{title:s.a.getPhrase(this.lang,"move"),analyticsOptions:c.a.mergeOptions(this.options.analyticsOptions,{actionType:a.q.Move,entity:a.e.Folder,workflowPhase:a.r.Start}),appLink:{application:l.b.LIBRARY_EDITOR,action:l.a.LibraryEditor.MOVE_FOLDER,args:[this.model.get("id")]}},{title:s.a.getPhrase(this.lang,"editImages"),analyticsOptions:c.a.mergeOptions(this.options.analyticsOptions,{actionType:a.q.EditAssoc,entity:a.e.Folder,workflowPhase:a.r.Start,descriptor:a.a.Image}),appLink:{application:l.b.LIBRARY_EDITOR,action:l.a.LibraryEditor.EDIT_FOLDER_IMAGES,args:[this.model.get("id")]}},{title:s.a.getPhrase(this.lang,"generatePdf"),analyticsOptions:c.a.mergeOptions(this.options.analyticsOptions,{actionType:a.q.Create,entity:a.e.PDF,workflowPhase:a.r.Start}),appLink:{application:l.b.LIBRARY_EDITOR,action:l.a.LibraryEditor.GENERATE_PDF,args:[this.model.get("id")]}},{title:s.a.getPhrase(this.lang,"remove"),analyticsOptions:c.a.mergeOptions(this.options.analyticsOptions,{actionType:a.q.Delete,entity:a.e.Folder,workflowPhase:a.r.Start}),classes:"text-danger",appLink:{application:l.b.LIBRARY_EDITOR,action:l.a.LibraryEditor.DELETE_FOLDER,args:[this.model.get("id")]}}]}},{key:"onRender",value:function(){this.showChildView("items",new u.a({analyticsHelper:c.a,displayOptions:{alignment:"right"},channelName:this.channelName,collection:new r.a.Collection(this.getFolderActions()),childOptions:{isDisabled:function(){return this.model.get("disabled")}}}))}},{key:"name",get:function(){return"FolderActionsDropdownComponent"}},{key:"template",get:function(){return p.a}},{key:"lang",get:function(){return"libraryEditor.folderActionsDropdown"}},{key:"channelName",get:function(){return"".concat(this.name).concat(this.cid)}}])&&d(e.prototype,n),o&&d(e,o),f}(r.a.Component),w=n(695),O=n.n(w),R=n(696),_=n.n(R);function k(t){return(k="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t})(t)}function S(t,e){for(var n=0;n<e.length;n++){var r=e[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(t,r.key,r)}}function E(t,e){return(E=Object.setPrototypeOf||function(t,e){return t.__proto__=e,t})(t,e)}function P(t){var e=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Date.prototype.toString.call(Reflect.construct(Date,[],(function(){}))),!0}catch(t){return!1}}();return function(){var n,r=j(t);if(e){var o=j(this).constructor;n=Reflect.construct(r,arguments,o)}else n=r.apply(this,arguments);return D(this,n)}}function D(t,e){return!e||"object"!==k(e)&&"function"!=typeof e?function(t){if(void 0===t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return t}(t):e}function j(t){return(j=Object.setPrototypeOf?Object.getPrototypeOf:function(t){return t.__proto__||Object.getPrototypeOf(t)})(t)}n.d(e,"a",(function(){return C}));var C=function(t){!function(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function");t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,writable:!0,configurable:!0}}),e&&E(t,e)}(c,t);var e,n,r,a=P(c);function c(t){return function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,c),a.call(this,t)}return e=c,(n=[{key:"events",value:function(){return{"click @ui.dropdownToggle":"onClickDropdownToggle","click @ui.dropdownItem":"onClickDropdownItem"}}},{key:"regions",value:function(){return{items:{replaceElement:!0,el:".items-region"}}}},{key:"onClickDropdownToggle",value:function(){this.model instanceof i.a&&this.showChildView("items",new v({model:this.model,analyticsOptions:this.options.analyticsOptions}))}},{key:"onClickDropdownItem",value:function(t){t.stopPropagation(),t.preventDefault(),this.getUI("dropdownToggle").dropdown("toggle")}},{key:"viewOptions",value:function(){return{hasActions:this.model instanceof i.a,dropdownClass:"".concat(_.a.dropdownButton," ").concat(this.options.buttonClass),svg:o.a.getSvg(o.b.More)}}},{key:"name",get:function(){return"VideoCollectionActionsComponent"}},{key:"channelName",get:function(){return"".concat(this.name).concat(this.cid)}},{key:"className",get:function(){if(this.model instanceof i.a)return"position-absolute ".concat(_.a.dropdownContainer," ").concat(this.options.extraClasses," ")}},{key:"elements",get:function(){return{dropdownToggle:".ui-dropdown-toggle",dropdownItem:".dropdown-item"}}},{key:"template",get:function(){return O.a}}])&&S(e.prototype,n),r&&S(e,r),c}(r.a.Component)},693:function(t,e,n){t.exports={dragging:"_2wBn3",draggingFolder:"_1r3AS"}},694:function(t,e,n){var r=n(8);t.exports=(r.default||r).template({compiler:[8,">= 4.3.0"],main:function(t,e,n,r,o){return'<div class="items-region"></div>'},useData:!0})},695:function(t,e,n){var r=n(8);t.exports=(r.default||r).template({1:function(t,e,n,r,o){t.propertyIsEnumerable;var i,a=t.lambda;return'<span data-toggle="dropdown" aria-haspopup="true" aria-expanded="false" class="'+t.escapeExpression(a(null!=(i=null!=e?e.options:e)?i.dropdownClass:i,e))+' d-inline-block ui-dropdown-toggle">\r\n '+(null!=(i=a(null!=(i=null!=e?e.options:e)?i.svg:i,e))?i:"")+'\r\n</span>\r\n<div class="items-region"></div>\r\n'},compiler:[8,">= 4.3.0"],main:function(t,e,n,r,o){var i;t.propertyIsEnumerable;return null!=(i=n.if.call(null!=e?e:t.nullContext||{},null!=(i=null!=e?e.options:e)?i.hasActions:i,{name:"if",hash:{},fn:t.program(1,o,0),inverse:t.noop,data:o}))?i:""},useData:!0})},696:function(t,e,n){t.exports={dropdownContainer:"_2F3Cz",dropdownButton:"_2TdId"}},714:function(t,e,n){"use strict";n.d(e,"a",(function(){return R}));var r=n(1),o=n(7),i=n(2),a=n(16),c=n(13),u=n(0),l=n(11),s=n(3),f=n(685),p=n(118),y=n(724),d=n.n(y);function h(t){return(h="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t})(t)}function b(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}function g(t,e){for(var n=0;n<e.length;n++){var r=e[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(t,r.key,r)}}function m(t,e){return(m=Object.setPrototypeOf||function(t,e){return t.__proto__=e,t})(t,e)}function v(t){var e=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Date.prototype.toString.call(Reflect.construct(Date,[],(function(){}))),!0}catch(t){return!1}}();return function(){var n,r=O(t);if(e){var o=O(this).constructor;n=Reflect.construct(r,arguments,o)}else n=r.apply(this,arguments);return w(this,n)}}function w(t,e){return!e||"object"!==h(e)&&"function"!=typeof e?function(t){if(void 0===t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return t}(t):e}function O(t){return(O=Object.setPrototypeOf?Object.getPrototypeOf:function(t){return t.__proto__||Object.getPrototypeOf(t)})(t)}var R=function(t){!function(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function");t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,writable:!0,configurable:!0}}),e&&m(t,e)}(w,t);var e,n,y,h=v(w);function w(){return b(this,w),h.apply(this,arguments)}return e=w,(n=[{key:"initialize",value:function(){this.options.model||i.a.ErrorHelper.throw(new a.a("DraggableVideoBehavior must be passed a Video model")),this.listenTo(u.w.VIDEO_DRAG_DROP,"drag:style:".concat(this.options.model.id),this.styleDragStart),this.listenTo(u.w.VIDEO_DRAG_DROP,"drag:stop",this.styleDragStop)}},{key:"helper",value:function(){var t=this.getVideoModels();return new f.b({text:t.length>1?s.a.getPhrase(this.lang,"videos",{videoCount:t.length}):t[0].get("name"),svg:c.a.getSvg(c.b.Play)}).render().el}},{key:"getSelector",value:function(){return this.view.getUI(this.options.selector)}},{key:"styleDragStart",value:function(){this.getSelector().addClass(d.a.draggingVideo)}},{key:"styleDragStop",value:function(){this.getSelector().removeClass(d.a.draggingVideo)}},{key:"start",value:function(){var t=this.getVideoModels(),e=o.Radio.channel(u.w.VIDEO_DRAG_DROP);e.trigger("drag:start",t,this.options.collectionIdentifier),r.each(t,(function(t){return e.trigger("drag:style:".concat(t.id))}))}},{key:"stop",value:function(){o.Radio.channel(u.w.VIDEO_DRAG_DROP).trigger("drag:stop")}},{key:"getVideoModels",value:function(){var t=this,e=l.a.GetSelectedModels({key:this.options.collectionIdentifier.toString(),type:p.a.VIDEO_LIST,collection:this.view.model.collection});return r.any(e,(function(e){return e.id===t.view.model.id}))||(e=[this.view.model]),e.length?e:[this.view.model]}},{key:"getClassMappings",value:function(){return{"ui-draggable":f.c.draggable,"ui-draggable-disabled":f.c.disabled,"ui-draggable-handle":f.c.handle,"ui-draggable-dragging":f.c.dragging}}},{key:"onRender",value:function(){var t=this.getSelector(),e={helper:r.bind(this.helper,this),start:r.bind(this.start,this),stop:r.bind(this.stop,this)};e.classes=this.getClassMappings(),t.draggable(r.extend({},f.a,e))}},{key:"onBeforeDestroy",value:function(){var t=this.getSelector();t.draggable("instance")&&t.draggable("destroy")}},{key:"lang",get:function(){return"libraryEditor.behaviors"}}])&&g(e.prototype,n),y&&g(e,y),w}(i.a.Behavior)},724:function(t,e,n){t.exports={draggingVideo:"_3cCHx"}},725:function(t,e,n){"use strict";n.d(e,"a",(function(){return w}));var r=n(2),o=n(13),i=n(4),a=n(31),c=n(659),u=n(0),l=n(3),s=n(726),f=n.n(s),p=n(727),y=n.n(p);function d(t){return(d="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t})(t)}function h(t,e){for(var n=0;n<e.length;n++){var r=e[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(t,r.key,r)}}function b(t,e){return(b=Object.setPrototypeOf||function(t,e){return t.__proto__=e,t})(t,e)}function g(t){var e=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Date.prototype.toString.call(Reflect.construct(Date,[],(function(){}))),!0}catch(t){return!1}}();return function(){var n,r=v(t);if(e){var o=v(this).constructor;n=Reflect.construct(r,arguments,o)}else n=r.apply(this,arguments);return m(this,n)}}function m(t,e){return!e||"object"!==d(e)&&"function"!=typeof e?function(t){if(void 0===t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return t}(t):e}function v(t){return(v=Object.setPrototypeOf?Object.getPrototypeOf:function(t){return t.__proto__||Object.getPrototypeOf(t)})(t)}var w=function(t){!function(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function");t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,writable:!0,configurable:!0}}),e&&b(t,e)}(d,t);var e,n,s,p=g(d);function d(t){return function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,d),p.call(this,t)}return e=d,(n=[{key:"events",value:function(){return{"click @ui.dropdownToggle":"onClickDropdownToggle","click @ui.dropdownItem":"onClickDropdownItem"}}},{key:"regions",value:function(){return{dropdownItems:{replaceElement:!0,el:".items-region"}}}},{key:"onClickDropdownToggle",value:function(){this.showChildView("dropdownItems",new c.a({analyticsHelper:a.a,displayOptions:{alignment:"right"},channelName:this.channelName,collection:new r.a.Collection([{title:l.a.getPhrase(this.lang,"addFolder"),analyticsOptions:a.a.mergeOptions(this.options.analyticsOptions,{actionType:i.q.Create,entity:i.e.Folder,workflowPhase:i.r.Start}),appLink:{application:u.b.LIBRARY_EDITOR,action:u.a.Shared.NEW_FOLDER,args:[this.model.get("id")]}},{title:l.a.getPhrase(this.lang,"rename"),analyticsOptions:a.a.mergeOptions(this.options.analyticsOptions,{actionType:i.q.Rename,entity:i.e.Library,workflowPhase:i.r.Start}),appLink:{application:u.b.LIBRARY_EDITOR,action:u.a.LibraryEditor.RENAME_LIBRARY,args:[this.model.get("id")]}},{title:l.a.getPhrase(this.lang,"remove"),analyticsOptions:a.a.mergeOptions(this.options.analyticsOptions,{actionType:i.q.Delete,entity:i.e.Library,workflowPhase:i.r.Start}),appLink:{application:u.b.LIBRARY_EDITOR,action:u.a.LibraryEditor.DELETE_LIBRARY,args:[this.model.get("id")]},classes:"text-danger"}])}))}},{key:"onClickDropdownItem",value:function(t){t.stopPropagation(),t.preventDefault(),this.getUI("dropdownToggle").dropdown("toggle")}},{key:"viewOptions",value:function(){return{dropdownClass:"".concat(y.a.dropdownButton," ").concat(this.options.buttonClass),svg:o.a.getSvg(o.b.More)}}},{key:"name",get:function(){return"LibraryActionsComponent"}},{key:"template",get:function(){return f.a}},{key:"channelName",get:function(){return"".concat(this.name).concat(this.cid)}},{key:"lang",get:function(){return"libraryEditor.libraryActions"}},{key:"className",get:function(){return"position-absolute ".concat(y.a.dropdownContainer," ").concat(this.options.extraClasses," ")}},{key:"elements",get:function(){return{dropdownToggle:".ui-dropdown-toggle",dropdownItem:".dropdown-item"}}}])&&h(e.prototype,n),s&&h(e,s),d}(r.a.Component)},726:function(t,e,n){var r=n(8);t.exports=(r.default||r).template({compiler:[8,">= 4.3.0"],main:function(t,e,n,r,o){t.propertyIsEnumerable;var i,a=t.lambda;return'<span data-toggle="dropdown" aria-haspopup="true" aria-expanded="false" class="'+t.escapeExpression(a(null!=(i=null!=e?e.options:e)?i.dropdownClass:i,e))+' d-inline-block ui-dropdown-toggle">\r\n '+(null!=(i=a(null!=(i=null!=e?e.options:e)?i.svg:i,e))?i:"")+'\r\n</span>\r\n<div class="items-region"></div>'},useData:!0})},727:function(t,e,n){t.exports={dropdownContainer:"_293SV",dropdownButton:"_23YxG"}},805:function(t,e,n){var r=n(8);t.exports=(r.default||r).template({compiler:[8,">= 4.3.0"],main:function(t,e,n,r,o){t.propertyIsEnumerable;var i,a,c=t.lambda,u=t.escapeExpression;return'<a\r\n class="d-block cursor-pointer no-decoration '+u(c(null!=(i=null!=(i=null!=e?e.options:e)?i.styles:i)?i.folder:i,e))+'"\r\n style="background-image: url(\''+u(c(null!=(i=null!=e?e.options:e)?i.imageUrl:i,e))+'\')"\r\n>\r\n <h3 class="position-absolute text-white text-center m-0">'+u("function"==typeof(a=null!=(a=n.name||(null!=e?e.name:e))?a:t.hooks.helperMissing)?a.call(null!=e?e:t.nullContext||{},{name:"name",hash:{},data:o}):a)+'</h3>\r\n</a>\r\n<div class="actions-region"></div>'},useData:!0})},806:function(t,e,n){t.exports={folder:"_1MHyt",actions:"_3-hwy"}},807:function(t,e,n){var r=n(8);t.exports=(r.default||r).template({compiler:[8,">= 4.3.0"],main:function(t,e,n,r,o){var i;t.propertyIsEnumerable;return'<h1 class="h3">'+t.escapeExpression("function"==typeof(i=null!=(i=n.name||(null!=e?e.name:e))?i:t.hooks.helperMissing)?i.call(null!=e?e:t.nullContext||{},{name:"name",hash:{},data:o}):i)+'</h1>\r\n<div class="folders-region"></div>\r\n<div class="actions-region"></div>'},useData:!0})},808:function(t,e,n){t.exports={actions:"_3vCmp"}}}]);
@@ -1,318 +0,0 @@
1
- (window["webpackJsonp_clickview_library_editor"] = window["webpackJsonp_clickview_library_editor"] || []).push([[24],{
2
-
3
- /***/ "./src/shared/components/breadcrumbs/BreadcrumbComponentCollection.ts":
4
- /*!****************************************************************************!*\
5
- !*** ./src/shared/components/breadcrumbs/BreadcrumbComponentCollection.ts ***!
6
- \****************************************************************************/
7
- /*! exports provided: BreadcrumbComponentCollection */
8
- /***/ (function(module, __webpack_exports__, __webpack_require__) {
9
-
10
- "use strict";
11
- __webpack_require__.r(__webpack_exports__);
12
- /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "BreadcrumbComponentCollection", function() { return BreadcrumbComponentCollection; });
13
- /* harmony import */ var _libs_common_src_backbone__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ../../../../../../libs/common/src/backbone */ "../../libs/common/src/backbone/index.ts");
14
- /* harmony import */ var _BreadcrumbItem_hbs__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! ./BreadcrumbItem.hbs */ "./src/shared/components/breadcrumbs/BreadcrumbItem.hbs");
15
- /* harmony import */ var _BreadcrumbItem_hbs__WEBPACK_IMPORTED_MODULE_1___default = /*#__PURE__*/__webpack_require__.n(_BreadcrumbItem_hbs__WEBPACK_IMPORTED_MODULE_1__);
16
- function _typeof(obj) { "@babel/helpers - typeof"; if (typeof Symbol === "function" && typeof Symbol.iterator === "symbol") { _typeof = function _typeof(obj) { return typeof obj; }; } else { _typeof = function _typeof(obj) { return obj && typeof Symbol === "function" && obj.constructor === Symbol && obj !== Symbol.prototype ? "symbol" : typeof obj; }; } return _typeof(obj); }
17
-
18
- function _classCallCheck(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError("Cannot call a class as a function"); } }
19
-
20
- function _defineProperties(target, props) { for (var i = 0; i < props.length; i++) { var descriptor = props[i]; descriptor.enumerable = descriptor.enumerable || false; descriptor.configurable = true; if ("value" in descriptor) descriptor.writable = true; Object.defineProperty(target, descriptor.key, descriptor); } }
21
-
22
- function _createClass(Constructor, protoProps, staticProps) { if (protoProps) _defineProperties(Constructor.prototype, protoProps); if (staticProps) _defineProperties(Constructor, staticProps); return Constructor; }
23
-
24
- function _inherits(subClass, superClass) { if (typeof superClass !== "function" && superClass !== null) { throw new TypeError("Super expression must either be null or a function"); } subClass.prototype = Object.create(superClass && superClass.prototype, { constructor: { value: subClass, writable: true, configurable: true } }); if (superClass) _setPrototypeOf(subClass, superClass); }
25
-
26
- function _setPrototypeOf(o, p) { _setPrototypeOf = Object.setPrototypeOf || function _setPrototypeOf(o, p) { o.__proto__ = p; return o; }; return _setPrototypeOf(o, p); }
27
-
28
- function _createSuper(Derived) { var hasNativeReflectConstruct = _isNativeReflectConstruct(); return function _createSuperInternal() { var Super = _getPrototypeOf(Derived), result; if (hasNativeReflectConstruct) { var NewTarget = _getPrototypeOf(this).constructor; result = Reflect.construct(Super, arguments, NewTarget); } else { result = Super.apply(this, arguments); } return _possibleConstructorReturn(this, result); }; }
29
-
30
- function _possibleConstructorReturn(self, call) { if (call && (_typeof(call) === "object" || typeof call === "function")) { return call; } return _assertThisInitialized(self); }
31
-
32
- function _assertThisInitialized(self) { if (self === void 0) { throw new ReferenceError("this hasn't been initialised - super() hasn't been called"); } return self; }
33
-
34
- function _isNativeReflectConstruct() { if (typeof Reflect === "undefined" || !Reflect.construct) return false; if (Reflect.construct.sham) return false; if (typeof Proxy === "function") return true; try { Date.prototype.toString.call(Reflect.construct(Date, [], function () {})); return true; } catch (e) { return false; } }
35
-
36
- function _getPrototypeOf(o) { _getPrototypeOf = Object.setPrototypeOf ? Object.getPrototypeOf : function _getPrototypeOf(o) { return o.__proto__ || Object.getPrototypeOf(o); }; return _getPrototypeOf(o); }
37
-
38
-
39
-
40
-
41
- var BreadcrumbItemComponent = /*#__PURE__*/function (_Core$Component) {
42
- _inherits(BreadcrumbItemComponent, _Core$Component);
43
-
44
- var _super = _createSuper(BreadcrumbItemComponent);
45
-
46
- function BreadcrumbItemComponent() {
47
- _classCallCheck(this, BreadcrumbItemComponent);
48
-
49
- return _super.apply(this, arguments);
50
- }
51
-
52
- _createClass(BreadcrumbItemComponent, [{
53
- key: "viewOptions",
54
- value: function viewOptions() {
55
- return {
56
- isActive: this.model.get('active')
57
- };
58
- }
59
- }, {
60
- key: "name",
61
- get: function get() {
62
- return 'BreadcrumbItemComponent';
63
- }
64
- }, {
65
- key: "template",
66
- get: function get() {
67
- return _BreadcrumbItem_hbs__WEBPACK_IMPORTED_MODULE_1___default.a;
68
- }
69
- }, {
70
- key: "tagName",
71
- get: function get() {
72
- return 'li';
73
- }
74
- }, {
75
- key: "className",
76
- get: function get() {
77
- var className = 'breadcrumb-item';
78
- if (this.model.get('active')) className += ' active';
79
- return className;
80
- }
81
- }, {
82
- key: "attributes",
83
- get: function get() {
84
- if (!this.model.get('active')) return {};
85
- return {
86
- 'aria-current': 'page'
87
- };
88
- }
89
- }, {
90
- key: "appLinks",
91
- get: function get() {
92
- if (this.model.get('active')) return {};
93
- return {
94
- a: this.model.get('appLink')
95
- };
96
- }
97
- }]);
98
-
99
- return BreadcrumbItemComponent;
100
- }(_libs_common_src_backbone__WEBPACK_IMPORTED_MODULE_0__["Core"].Component);
101
-
102
- var BreadcrumbComponentCollection = /*#__PURE__*/function (_Core$ComponentCollec) {
103
- _inherits(BreadcrumbComponentCollection, _Core$ComponentCollec);
104
-
105
- var _super2 = _createSuper(BreadcrumbComponentCollection);
106
-
107
- function BreadcrumbComponentCollection() {
108
- _classCallCheck(this, BreadcrumbComponentCollection);
109
-
110
- return _super2.apply(this, arguments);
111
- }
112
-
113
- _createClass(BreadcrumbComponentCollection, [{
114
- key: "name",
115
- get: function get() {
116
- return 'BreadcrumbComponentCollection';
117
- }
118
- }, {
119
- key: "tagName",
120
- get: function get() {
121
- return 'ol';
122
- }
123
- }, {
124
- key: "className",
125
- get: function get() {
126
- return 'breadcrumb m-0 p-0';
127
- }
128
- }, {
129
- key: "childView",
130
- get: function get() {
131
- return BreadcrumbItemComponent;
132
- }
133
- }]);
134
-
135
- return BreadcrumbComponentCollection;
136
- }(_libs_common_src_backbone__WEBPACK_IMPORTED_MODULE_0__["Core"].ComponentCollection);
137
-
138
- /***/ }),
139
-
140
- /***/ "./src/shared/components/breadcrumbs/BreadcrumbItem.hbs":
141
- /*!**************************************************************!*\
142
- !*** ./src/shared/components/breadcrumbs/BreadcrumbItem.hbs ***!
143
- \**************************************************************/
144
- /*! no static exports found */
145
- /***/ (function(module, exports, __webpack_require__) {
146
-
147
- var Handlebars = __webpack_require__(/*! handlebars */ "handlebars");
148
- module.exports = (Handlebars['default'] || Handlebars).template({"1":function(container,depth0,helpers,partials,data) {
149
- var helper, alias1=container.propertyIsEnumerable;
150
-
151
- return container.escapeExpression(((helper = (helper = helpers.name || (depth0 != null ? depth0.name : depth0)) != null ? helper : container.hooks.helperMissing),(typeof helper === "function" ? helper.call(depth0 != null ? depth0 : (container.nullContext || {}),{"name":"name","hash":{},"data":data}) : helper)))
152
- + "\r\n";
153
- },"3":function(container,depth0,helpers,partials,data) {
154
- var helper, alias1=container.propertyIsEnumerable;
155
-
156
- return "<a class=\"info-link\">"
157
- + container.escapeExpression(((helper = (helper = helpers.name || (depth0 != null ? depth0.name : depth0)) != null ? helper : container.hooks.helperMissing),(typeof helper === "function" ? helper.call(depth0 != null ? depth0 : (container.nullContext || {}),{"name":"name","hash":{},"data":data}) : helper)))
158
- + "</a>\r\n";
159
- },"compiler":[8,">= 4.3.0"],"main":function(container,depth0,helpers,partials,data) {
160
- var stack1, alias1=container.propertyIsEnumerable;
161
-
162
- return ((stack1 = helpers["if"].call(depth0 != null ? depth0 : (container.nullContext || {}),((stack1 = (depth0 != null ? depth0.options : depth0)) != null ? stack1.isActive : stack1),{"name":"if","hash":{},"fn":container.program(1, data, 0),"inverse":container.program(3, data, 0),"data":data})) != null ? stack1 : "");
163
- },"useData":true});
164
-
165
- /***/ }),
166
-
167
- /***/ "./src/shared/components/breadcrumbs/Breadcrumbs.hbs":
168
- /*!***********************************************************!*\
169
- !*** ./src/shared/components/breadcrumbs/Breadcrumbs.hbs ***!
170
- \***********************************************************/
171
- /*! no static exports found */
172
- /***/ (function(module, exports, __webpack_require__) {
173
-
174
- var Handlebars = __webpack_require__(/*! handlebars */ "handlebars");
175
- module.exports = (Handlebars['default'] || Handlebars).template({"compiler":[8,">= 4.3.0"],"main":function(container,depth0,helpers,partials,data) {
176
- return "<nav class=\"breadcrumbs-region\" aria-label=\"breadcrumb\"></nav>";
177
- },"useData":true});
178
-
179
- /***/ }),
180
-
181
- /***/ "./src/shared/components/breadcrumbs/BreadcrumbsComponent.ts":
182
- /*!*******************************************************************!*\
183
- !*** ./src/shared/components/breadcrumbs/BreadcrumbsComponent.ts ***!
184
- \*******************************************************************/
185
- /*! exports provided: BreadcrumbsComponent */
186
- /***/ (function(module, __webpack_exports__, __webpack_require__) {
187
-
188
- "use strict";
189
- __webpack_require__.r(__webpack_exports__);
190
- /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "BreadcrumbsComponent", function() { return BreadcrumbsComponent; });
191
- /* harmony import */ var _libs_common_src_backbone__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ../../../../../../libs/common/src/backbone */ "../../libs/common/src/backbone/index.ts");
192
- /* harmony import */ var _Breadcrumbs_hbs__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! ./Breadcrumbs.hbs */ "./src/shared/components/breadcrumbs/Breadcrumbs.hbs");
193
- /* harmony import */ var _Breadcrumbs_hbs__WEBPACK_IMPORTED_MODULE_1___default = /*#__PURE__*/__webpack_require__.n(_Breadcrumbs_hbs__WEBPACK_IMPORTED_MODULE_1__);
194
- /* harmony import */ var _BreadcrumbComponentCollection__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! ./BreadcrumbComponentCollection */ "./src/shared/components/breadcrumbs/BreadcrumbComponentCollection.ts");
195
- /* harmony import */ var _utils_FolderTreeHelpers__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! ../../utils/FolderTreeHelpers */ "./src/shared/utils/FolderTreeHelpers.ts");
196
- /* harmony import */ var _constants__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(/*! ../../constants */ "./src/shared/constants/index.ts");
197
- function _typeof(obj) { "@babel/helpers - typeof"; if (typeof Symbol === "function" && typeof Symbol.iterator === "symbol") { _typeof = function _typeof(obj) { return typeof obj; }; } else { _typeof = function _typeof(obj) { return obj && typeof Symbol === "function" && obj.constructor === Symbol && obj !== Symbol.prototype ? "symbol" : typeof obj; }; } return _typeof(obj); }
198
-
199
- function _classCallCheck(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError("Cannot call a class as a function"); } }
200
-
201
- function _defineProperties(target, props) { for (var i = 0; i < props.length; i++) { var descriptor = props[i]; descriptor.enumerable = descriptor.enumerable || false; descriptor.configurable = true; if ("value" in descriptor) descriptor.writable = true; Object.defineProperty(target, descriptor.key, descriptor); } }
202
-
203
- function _createClass(Constructor, protoProps, staticProps) { if (protoProps) _defineProperties(Constructor.prototype, protoProps); if (staticProps) _defineProperties(Constructor, staticProps); return Constructor; }
204
-
205
- function _inherits(subClass, superClass) { if (typeof superClass !== "function" && superClass !== null) { throw new TypeError("Super expression must either be null or a function"); } subClass.prototype = Object.create(superClass && superClass.prototype, { constructor: { value: subClass, writable: true, configurable: true } }); if (superClass) _setPrototypeOf(subClass, superClass); }
206
-
207
- function _setPrototypeOf(o, p) { _setPrototypeOf = Object.setPrototypeOf || function _setPrototypeOf(o, p) { o.__proto__ = p; return o; }; return _setPrototypeOf(o, p); }
208
-
209
- function _createSuper(Derived) { var hasNativeReflectConstruct = _isNativeReflectConstruct(); return function _createSuperInternal() { var Super = _getPrototypeOf(Derived), result; if (hasNativeReflectConstruct) { var NewTarget = _getPrototypeOf(this).constructor; result = Reflect.construct(Super, arguments, NewTarget); } else { result = Super.apply(this, arguments); } return _possibleConstructorReturn(this, result); }; }
210
-
211
- function _possibleConstructorReturn(self, call) { if (call && (_typeof(call) === "object" || typeof call === "function")) { return call; } return _assertThisInitialized(self); }
212
-
213
- function _assertThisInitialized(self) { if (self === void 0) { throw new ReferenceError("this hasn't been initialised - super() hasn't been called"); } return self; }
214
-
215
- function _isNativeReflectConstruct() { if (typeof Reflect === "undefined" || !Reflect.construct) return false; if (Reflect.construct.sham) return false; if (typeof Proxy === "function") return true; try { Date.prototype.toString.call(Reflect.construct(Date, [], function () {})); return true; } catch (e) { return false; } }
216
-
217
- function _getPrototypeOf(o) { _getPrototypeOf = Object.setPrototypeOf ? Object.getPrototypeOf : function _getPrototypeOf(o) { return o.__proto__ || Object.getPrototypeOf(o); }; return _getPrototypeOf(o); }
218
-
219
-
220
-
221
-
222
-
223
-
224
- var BreadcrumbsComponent = /*#__PURE__*/function (_Core$Component) {
225
- _inherits(BreadcrumbsComponent, _Core$Component);
226
-
227
- var _super = _createSuper(BreadcrumbsComponent);
228
-
229
- function BreadcrumbsComponent(options) {
230
- _classCallCheck(this, BreadcrumbsComponent);
231
-
232
- return _super.call(this, options);
233
- }
234
-
235
- _createClass(BreadcrumbsComponent, [{
236
- key: "initialize",
237
- value: function initialize() {
238
- this.getBreadcrumbs();
239
- }
240
- }, {
241
- key: "regions",
242
- value: function regions() {
243
- return {
244
- breadcrumbs: '.breadcrumbs-region'
245
- };
246
- }
247
- }, {
248
- key: "getBreadcrumbs",
249
- value: function getBreadcrumbs() {
250
- this.breadcrumbCollection = new _libs_common_src_backbone__WEBPACK_IMPORTED_MODULE_0__["Core"].Collection();
251
- var current = this.options.folder;
252
- var parent;
253
-
254
- do {
255
- parent = _utils_FolderTreeHelpers__WEBPACK_IMPORTED_MODULE_3__["FolderTreeHelpers"].getParent(current.id, this.options.libraries);
256
- this.breadcrumbCollection.add(this.getBreadcrumb(current, !!parent), {
257
- at: 0
258
- });
259
- if (!parent) break;
260
- current = parent;
261
- } while (parent);
262
-
263
- if (this.options.video) this.breadcrumbCollection.add({
264
- name: this.options.video.get('name'),
265
- appLink: {
266
- application: _constants__WEBPACK_IMPORTED_MODULE_4__["AppChannels"].LIBRARY_EDITOR,
267
- action: _constants__WEBPACK_IMPORTED_MODULE_4__["Actions"].LibraryEditor.VIDEO_DETAILS,
268
- args: [this.options.video.id]
269
- }
270
- });
271
- if (!this.breadcrumbCollection.length) return;
272
- this.breadcrumbCollection.last().set('active', !this.options.enableLastItemAppLink);
273
- }
274
- }, {
275
- key: "getBreadcrumb",
276
- value: function getBreadcrumb(folder, hasParent) {
277
- var action = hasParent ? _constants__WEBPACK_IMPORTED_MODULE_4__["Actions"].LibraryEditor.FOLDER : _constants__WEBPACK_IMPORTED_MODULE_4__["Actions"].LibraryEditor.LIBRARY;
278
- return {
279
- name: folder.get('name'),
280
- appLink: {
281
- application: _constants__WEBPACK_IMPORTED_MODULE_4__["AppChannels"].LIBRARY_EDITOR,
282
- action: action,
283
- args: [folder.id]
284
- }
285
- };
286
- }
287
- }, {
288
- key: "onRender",
289
- value: function onRender() {
290
- var breadcrumbComponentCollection = new _BreadcrumbComponentCollection__WEBPACK_IMPORTED_MODULE_2__["BreadcrumbComponentCollection"]({
291
- collection: this.breadcrumbCollection
292
- });
293
- this.showChildView('breadcrumbs', breadcrumbComponentCollection);
294
- }
295
- }, {
296
- key: "name",
297
- get: function get() {
298
- return 'BreadcrumbsComponent';
299
- }
300
- }, {
301
- key: "template",
302
- get: function get() {
303
- return _Breadcrumbs_hbs__WEBPACK_IMPORTED_MODULE_1___default.a;
304
- }
305
- }, {
306
- key: "className",
307
- get: function get() {
308
- return 'd-inline-block';
309
- }
310
- }]);
311
-
312
- return BreadcrumbsComponent;
313
- }(_libs_common_src_backbone__WEBPACK_IMPORTED_MODULE_0__["Core"].Component);
314
-
315
- /***/ })
316
-
317
- }]);
318
- //# sourceMappingURL=24.chunk.js.map
@@ -1 +0,0 @@
1
- {"version":3,"sources":["file://C:/ClickView Projects/@clickview/packages/projects/library-editor/src/shared/components/breadcrumbs/BreadcrumbComponentCollection.ts","file://C:/ClickView Projects/@clickview/packages/projects/library-editor/src/shared/components/breadcrumbs/BreadcrumbItem.hbs","file://C:/ClickView Projects/@clickview/packages/projects/library-editor/src/shared/components/breadcrumbs/Breadcrumbs.hbs","file://C:/ClickView Projects/@clickview/packages/projects/library-editor/src/shared/components/breadcrumbs/BreadcrumbsComponent.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AACA;AAEA;;IAEM,uB;;;;;;;;;;;;;kCAsCc;AAChB,aAAO;AACL,gBAAQ,EAAE,KAAK,KAAL,CAAW,GAAX,CAAe,QAAf;AADL,OAAP;AAGD;;;wBAzCc;AACb,aAAO,yBAAP;AACD;;;wBAEkB;AACjB,aAAO,0DAAP;AACD;;;wBAEiB;AAChB,aAAO,IAAP;AACD;;;wBAEmB;AAClB,UAAI,SAAS,GAAG,iBAAhB;AAEA,UAAI,KAAK,KAAL,CAAW,GAAX,CAAe,QAAf,CAAJ,EACE,SAAS,IAAI,SAAb;AAEF,aAAO,SAAP;AACD;;;wBAEoB;AACnB,UAAI,CAAC,KAAK,KAAL,CAAW,GAAX,CAAe,QAAf,CAAL,EAA+B,OAAO,EAAP;AAE/B,aAAO;AACL,wBAAgB;AADX,OAAP;AAGD;;;wBAEkB;AACjB,UAAI,KAAK,KAAL,CAAW,GAAX,CAAe,QAAf,CAAJ,EAA8B,OAAO,EAAP;AAE9B,aAAO;AACL,SAAC,EAAE,KAAK,KAAL,CAAW,GAAX,CAAe,SAAf;AADE,OAAP;AAGD;;;;EApCmC,8DAAI,CAAC,S;;AA6CpC,IAAM,6BAAb;AAAA;;AAAA;;AAAA;AAAA;;AAAA;AAAA;;AAAA;AAAA;AAAA,wBACiB;AACb,aAAO,+BAA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kBqB;AACjB,aAAO,uDAAP;AACD;AApBH;AAAA;AAAA,wBAsBsB;AAClB,aAAO,gBAAP;AACD;AAxBH;;AAAA;AAAA,EAA0C,8DAAI,CAAC,SAA/C,E","file":"scripts/24.chunk.js","sourcesContent":["import { ObjectHash } from 'backbone';\r\nimport { Core } from 'libs/common/core';\r\n\r\nimport BreadcrumbItemTemplate from './BreadcrumbItem.hbs';\r\n\r\nclass BreadcrumbItemComponent extends Core.Component {\r\n public get name(): string {\r\n return 'BreadcrumbItemComponent';\r\n }\r\n\r\n public get template(): any {\r\n return BreadcrumbItemTemplate;\r\n }\r\n\r\n public get tagName(): string {\r\n return 'li';\r\n }\r\n\r\n public get className(): string {\r\n let className = 'breadcrumb-item';\r\n\r\n if (this.model.get('active'))\r\n className += ' active';\r\n\r\n return className;\r\n }\r\n\r\n public get attributes(): ObjectHash {\r\n if (!this.model.get('active')) return {};\r\n\r\n return {\r\n 'aria-current': 'page'\r\n };\r\n }\r\n\r\n public get appLinks(): Core.AppLinkHash {\r\n if (this.model.get('active')) return {};\r\n\r\n return {\r\n a: this.model.get('appLink')\r\n };\r\n }\r\n\r\n public viewOptions(): ObjectHash {\r\n return {\r\n isActive: this.model.get('active')\r\n };\r\n }\r\n}\r\n\r\nexport class BreadcrumbComponentCollection extends Core.ComponentCollection {\r\n public get name(): string {\r\n return 'BreadcrumbComponentCollection';\r\n }\r\n\r\n public get tagName(): string {\r\n return 'ol';\r\n }\r\n\r\n public get className(): string {\r\n return 'breadcrumb m-0 p-0';\r\n }\r\n\r\n public get childView(): typeof BreadcrumbItemComponent {\r\n return BreadcrumbItemComponent;\r\n }\r\n}","var Handlebars = require('handlebars');\nmodule.exports = (Handlebars['default'] || Handlebars).template({\"1\":function(container,depth0,helpers,partials,data) {\n var helper, alias1=container.propertyIsEnumerable;\n\n return container.escapeExpression(((helper = (helper = helpers.name || (depth0 != null ? depth0.name : depth0)) != null ? helper : container.hooks.helperMissing),(typeof helper === \"function\" ? helper.call(depth0 != null ? depth0 : (container.nullContext || {}),{\"name\":\"name\",\"hash\":{},\"data\":data}) : helper)))\n + \"\\r\\n\";\n},\"3\":function(container,depth0,helpers,partials,data) {\n var helper, alias1=container.propertyIsEnumerable;\n\n return \"<a class=\\\"info-link\\\">\"\n + container.escapeExpression(((helper = (helper = helpers.name || (depth0 != null ? depth0.name : depth0)) != null ? helper : container.hooks.helperMissing),(typeof helper === \"function\" ? helper.call(depth0 != null ? depth0 : (container.nullContext || {}),{\"name\":\"name\",\"hash\":{},\"data\":data}) : helper)))\n + \"</a>\\r\\n\";\n},\"compiler\":[8,\">= 4.3.0\"],\"main\":function(container,depth0,helpers,partials,data) {\n var stack1, alias1=container.propertyIsEnumerable;\n\n return ((stack1 = helpers[\"if\"].call(depth0 != null ? depth0 : (container.nullContext || {}),((stack1 = (depth0 != null ? depth0.options : depth0)) != null ? stack1.isActive : stack1),{\"name\":\"if\",\"hash\":{},\"fn\":container.program(1, data, 0),\"inverse\":container.program(3, data, 0),\"data\":data})) != null ? stack1 : \"\");\n},\"useData\":true});","var Handlebars = require('handlebars');\nmodule.exports = (Handlebars['default'] || Handlebars).template({\"compiler\":[8,\">= 4.3.0\"],\"main\":function(container,depth0,helpers,partials,data) {\n return \"<nav class=\\\"breadcrumbs-region\\\" aria-label=\\\"breadcrumb\\\"></nav>\";\n},\"useData\":true});","import * as _ from 'underscore';\r\nimport { ObjectHash } from 'backbone';\r\nimport { Core } from 'libs/common/core';\r\n\r\nimport BreadcrumbsComponentTemplate from './Breadcrumbs.hbs';\r\nimport { BreadcrumbComponentCollection } from './BreadcrumbComponentCollection';\r\n\r\nimport { FolderCollection } from 'shared/collections/FolderCollection';\r\nimport { Folder } from 'shared/models/Folder';\r\nimport { Video } from 'shared/models/Video';\r\nimport { FolderTreeHelpers } from 'shared/utils/FolderTreeHelpers';\r\nimport { Actions, AppChannels } from 'shared/constants';\r\n\r\ninterface Breadcrumb {\r\n name: string;\r\n active?: boolean;\r\n appLink?: Core.AppLink;\r\n}\r\n\r\ninterface BreadcrumbsComponentOptions extends Core.ComponentOptions {\r\n folder: Folder;\r\n libraries: FolderCollection;\r\n video?: Video;\r\n enableLastItemAppLink?: boolean;\r\n}\r\n\r\nexport class BreadcrumbsComponent extends Core.Component {\r\n public breadcrumbCollection: Core.Collection;\r\n public folder: Folder;\r\n public libraries: FolderCollection;\r\n public options: BreadcrumbsComponentOptions;\r\n\r\n constructor(options: BreadcrumbsComponentOptions) {\r\n super(options);\r\n }\r\n\r\n public initialize(): void {\r\n this.getBreadcrumbs();\r\n }\r\n\r\n public get name(): string {\r\n return 'BreadcrumbsComponent';\r\n }\r\n\r\n public get template(): any {\r\n return BreadcrumbsComponentTemplate;\r\n }\r\n\r\n public get className(): string {\r\n return 'd-inline-block';\r\n }\r\n\r\n public regions(): ObjectHash {\r\n return {\r\n breadcrumbs: '.breadcrumbs-region'\r\n };\r\n }\r\n\r\n private getBreadcrumbs(): void {\r\n this.breadcrumbCollection = new Core.Collection();\r\n\r\n let current = this.options.folder;\r\n let parent;\r\n do {\r\n parent = FolderTreeHelpers.getParent(current.id, this.options.libraries);\r\n\r\n this.breadcrumbCollection.add(this.getBreadcrumb(current, !!parent), { at: 0 });\r\n\r\n if (!parent) break;\r\n\r\n current = parent;\r\n } while (parent);\r\n\r\n if (this.options.video)\r\n this.breadcrumbCollection.add({\r\n name: this.options.video.get('name'),\r\n appLink: {\r\n application: AppChannels.LIBRARY_EDITOR,\r\n action: Actions.LibraryEditor.VIDEO_DETAILS,\r\n args: [this.options.video.id]\r\n }\r\n });\r\n\r\n if (!this.breadcrumbCollection.length) return;\r\n\r\n this.breadcrumbCollection.last().set('active', !this.options.enableLastItemAppLink);\r\n }\r\n\r\n private getBreadcrumb(folder: Folder, hasParent: boolean): Breadcrumb {\r\n const action = hasParent ? Actions.LibraryEditor.FOLDER : Actions.LibraryEditor.LIBRARY;\r\n\r\n return {\r\n name: folder.get('name') ,\r\n appLink: {\r\n application: AppChannels.LIBRARY_EDITOR,\r\n action,\r\n args: [folder.id]\r\n }\r\n };\r\n\r\n }\r\n\r\n public onRender(): void {\r\n const breadcrumbComponentCollection = new BreadcrumbComponentCollection({\r\n collection: this.breadcrumbCollection\r\n });\r\n\r\n this.showChildView('breadcrumbs', breadcrumbComponentCollection);\r\n }\r\n}"],"sourceRoot":""}