@clickview/library-editor 1.1.19-rc.2 → 1.1.19

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 (456) 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/bundle-185116e7ce.min.js +1 -0
  110. package/dist/scripts/bundles.json +1 -1
  111. package/package.json +4 -4
  112. package/dist/css/1.chunk.css.map +0 -1
  113. package/dist/css/10.chunk.css.map +0 -1
  114. package/dist/css/11.chunk.css +0 -137
  115. package/dist/css/11.chunk.css.map +0 -1
  116. package/dist/css/12.chunk.css.map +0 -1
  117. package/dist/css/13.chunk.css.map +0 -1
  118. package/dist/css/14.chunk.css.map +0 -1
  119. package/dist/css/16.chunk.css.map +0 -1
  120. package/dist/css/17.chunk.css.map +0 -1
  121. package/dist/css/18.chunk.css +0 -2
  122. package/dist/css/18.chunk.css.map +0 -1
  123. package/dist/css/2.chunk.css +0 -4
  124. package/dist/css/2.chunk.css.map +0 -1
  125. package/dist/css/21.chunk.css.map +0 -1
  126. package/dist/css/22.chunk.css.map +0 -1
  127. package/dist/css/23.chunk.css.map +0 -1
  128. package/dist/css/25.chunk.css.map +0 -1
  129. package/dist/css/26.chunk.css.map +0 -1
  130. package/dist/css/28.chunk.css.map +0 -1
  131. package/dist/css/29.chunk.css.map +0 -1
  132. package/dist/css/3.chunk.css.map +0 -1
  133. package/dist/css/30.chunk.css.map +0 -1
  134. package/dist/css/31.chunk.css.map +0 -1
  135. package/dist/css/32.chunk.css.map +0 -1
  136. package/dist/css/33.chunk.css +0 -16
  137. package/dist/css/33.chunk.css.map +0 -1
  138. package/dist/css/34.chunk.css +0 -21
  139. package/dist/css/34.chunk.css.map +0 -1
  140. package/dist/css/35.chunk.css +0 -20
  141. package/dist/css/35.chunk.css.map +0 -1
  142. package/dist/css/36.chunk.css.map +0 -1
  143. package/dist/css/37.chunk.css.map +0 -1
  144. package/dist/css/38.chunk.css.map +0 -1
  145. package/dist/css/4.chunk.css +0 -6
  146. package/dist/css/40.chunk.css.map +0 -1
  147. package/dist/css/41.chunk.css.map +0 -1
  148. package/dist/css/42.chunk.css.map +0 -1
  149. package/dist/css/43.chunk.css.map +0 -1
  150. package/dist/css/44.chunk.css.map +0 -1
  151. package/dist/css/45.chunk.css.map +0 -1
  152. package/dist/css/46.chunk.css.map +0 -1
  153. package/dist/css/47.chunk.css.map +0 -1
  154. package/dist/css/48.chunk.css +0 -2
  155. package/dist/css/48.chunk.css.map +0 -1
  156. package/dist/css/49.chunk.css.map +0 -1
  157. package/dist/css/50.chunk.css.map +0 -1
  158. package/dist/css/51.chunk.css +0 -2
  159. package/dist/css/51.chunk.css.map +0 -1
  160. package/dist/css/52.chunk.css +0 -66
  161. package/dist/css/52.chunk.css.map +0 -1
  162. package/dist/css/55.chunk.css.map +0 -1
  163. package/dist/css/56.chunk.css.map +0 -1
  164. package/dist/css/58.chunk.css.map +0 -1
  165. package/dist/css/59.chunk.css +0 -2
  166. package/dist/css/59.chunk.css.map +0 -1
  167. package/dist/css/6.chunk.css.map +0 -1
  168. package/dist/css/60.chunk.css.map +0 -1
  169. package/dist/css/62.chunk.css +0 -2
  170. package/dist/css/62.chunk.css.map +0 -1
  171. package/dist/css/63.chunk.css +0 -170
  172. package/dist/css/63.chunk.css.map +0 -1
  173. package/dist/css/67.chunk.css +0 -78
  174. package/dist/css/67.chunk.css.map +0 -1
  175. package/dist/css/68.chunk.css +0 -17
  176. package/dist/css/68.chunk.css.map +0 -1
  177. package/dist/css/69.chunk.css +0 -17
  178. package/dist/css/69.chunk.css.map +0 -1
  179. package/dist/css/7.chunk.css.map +0 -1
  180. package/dist/css/70.chunk.css +0 -23
  181. package/dist/css/70.chunk.css.map +0 -1
  182. package/dist/css/71.chunk.css +0 -40
  183. package/dist/css/71.chunk.css.map +0 -1
  184. package/dist/css/72.chunk.css +0 -16
  185. package/dist/css/72.chunk.css.map +0 -1
  186. package/dist/css/73.chunk.css +0 -37
  187. package/dist/css/73.chunk.css.map +0 -1
  188. package/dist/css/74.chunk.css +0 -29
  189. package/dist/css/74.chunk.css.map +0 -1
  190. package/dist/css/75.chunk.css +0 -6
  191. package/dist/css/75.chunk.css.map +0 -1
  192. package/dist/css/76.chunk.css +0 -6
  193. package/dist/css/76.chunk.css.map +0 -1
  194. package/dist/css/8.chunk.css.map +0 -1
  195. package/dist/css/library-editor-app.css.map +0 -1
  196. package/dist/scripts/0-8cdf48d69e.chunk.js +0 -1
  197. package/dist/scripts/0.chunk.js +0 -1034
  198. package/dist/scripts/0.chunk.js.map +0 -1
  199. package/dist/scripts/1-a197f0efeb.chunk.js +0 -1
  200. package/dist/scripts/1.chunk.js +0 -442
  201. package/dist/scripts/1.chunk.js.map +0 -1
  202. package/dist/scripts/10-48aa375ebe.chunk.js +0 -1
  203. package/dist/scripts/10.chunk.js +0 -820
  204. package/dist/scripts/10.chunk.js.map +0 -1
  205. package/dist/scripts/11.chunk.js +0 -4091
  206. package/dist/scripts/11.chunk.js.map +0 -1
  207. package/dist/scripts/12-57671136e8.chunk.js +0 -1
  208. package/dist/scripts/12.chunk.js +0 -555
  209. package/dist/scripts/12.chunk.js.map +0 -1
  210. package/dist/scripts/13-46bc40cc23.chunk.js +0 -1
  211. package/dist/scripts/13.chunk.js +0 -373
  212. package/dist/scripts/13.chunk.js.map +0 -1
  213. package/dist/scripts/14-556e982a73.chunk.js +0 -1
  214. package/dist/scripts/14.chunk.js +0 -2386
  215. package/dist/scripts/14.chunk.js.map +0 -1
  216. package/dist/scripts/15-2edbad42a0.chunk.js +0 -1
  217. package/dist/scripts/15.chunk.js +0 -314
  218. package/dist/scripts/15.chunk.js.map +0 -1
  219. package/dist/scripts/16-60b9a789b4.chunk.js +0 -1
  220. package/dist/scripts/16.chunk.js +0 -1290
  221. package/dist/scripts/16.chunk.js.map +0 -1
  222. package/dist/scripts/17-d6083dbd9b.chunk.js +0 -1
  223. package/dist/scripts/17.chunk.js +0 -381
  224. package/dist/scripts/17.chunk.js.map +0 -1
  225. package/dist/scripts/18-31ce9284d0.chunk.js +0 -1
  226. package/dist/scripts/18.chunk.js +0 -393
  227. package/dist/scripts/18.chunk.js.map +0 -1
  228. package/dist/scripts/19.chunk.js +0 -364
  229. package/dist/scripts/19.chunk.js.map +0 -1
  230. package/dist/scripts/2-33fcca96e3.chunk.js +0 -1
  231. package/dist/scripts/2.chunk.js +0 -519
  232. package/dist/scripts/2.chunk.js.map +0 -1
  233. package/dist/scripts/20-3c2f3fb166.chunk.js +0 -1
  234. package/dist/scripts/20.chunk.js +0 -317
  235. package/dist/scripts/20.chunk.js.map +0 -1
  236. package/dist/scripts/21-9497f03cd8.chunk.js +0 -1
  237. package/dist/scripts/21.chunk.js +0 -531
  238. package/dist/scripts/21.chunk.js.map +0 -1
  239. package/dist/scripts/22-22cd929ad4.chunk.js +0 -1
  240. package/dist/scripts/22.chunk.js +0 -354
  241. package/dist/scripts/22.chunk.js.map +0 -1
  242. package/dist/scripts/23-16b02d09f5.chunk.js +0 -1
  243. package/dist/scripts/23.chunk.js +0 -605
  244. package/dist/scripts/23.chunk.js.map +0 -1
  245. package/dist/scripts/24-24699f9007.chunk.js +0 -1
  246. package/dist/scripts/24.chunk.js +0 -318
  247. package/dist/scripts/24.chunk.js.map +0 -1
  248. package/dist/scripts/25-7a210f731b.chunk.js +0 -1
  249. package/dist/scripts/25.chunk.js +0 -365
  250. package/dist/scripts/25.chunk.js.map +0 -1
  251. package/dist/scripts/26-263cf0ebce.chunk.js +0 -1
  252. package/dist/scripts/26.chunk.js +0 -437
  253. package/dist/scripts/26.chunk.js.map +0 -1
  254. package/dist/scripts/27-707d8b29f0.chunk.js +0 -1
  255. package/dist/scripts/27.chunk.js +0 -3565
  256. package/dist/scripts/27.chunk.js.map +0 -1
  257. package/dist/scripts/28-d748f747fa.chunk.js +0 -1
  258. package/dist/scripts/28.chunk.js +0 -3129
  259. package/dist/scripts/28.chunk.js.map +0 -1
  260. package/dist/scripts/29-ef4aaa5fd8.chunk.js +0 -1
  261. package/dist/scripts/29.chunk.js +0 -3088
  262. package/dist/scripts/29.chunk.js.map +0 -1
  263. package/dist/scripts/3-9ac062f7ab.chunk.js +0 -1
  264. package/dist/scripts/3.chunk.js +0 -782
  265. package/dist/scripts/3.chunk.js.map +0 -1
  266. package/dist/scripts/30-1b84ae2ac7.chunk.js +0 -1
  267. package/dist/scripts/30.chunk.js +0 -1809
  268. package/dist/scripts/30.chunk.js.map +0 -1
  269. package/dist/scripts/31-b51d47f02b.chunk.js +0 -1
  270. package/dist/scripts/31.chunk.js +0 -958
  271. package/dist/scripts/31.chunk.js.map +0 -1
  272. package/dist/scripts/32-3f5cffb858.chunk.js +0 -1
  273. package/dist/scripts/32.chunk.js +0 -1235
  274. package/dist/scripts/32.chunk.js.map +0 -1
  275. package/dist/scripts/33-bd5b8ad402.chunk.js +0 -1
  276. package/dist/scripts/33.chunk.js +0 -792
  277. package/dist/scripts/33.chunk.js.map +0 -1
  278. package/dist/scripts/34-16c6ce9391.chunk.js +0 -1
  279. package/dist/scripts/34.chunk.js +0 -990
  280. package/dist/scripts/34.chunk.js.map +0 -1
  281. package/dist/scripts/35-f0ff6077b5.chunk.js +0 -1
  282. package/dist/scripts/35.chunk.js +0 -518
  283. package/dist/scripts/35.chunk.js.map +0 -1
  284. package/dist/scripts/36-6d5df4dbb0.chunk.js +0 -1
  285. package/dist/scripts/36.chunk.js +0 -335
  286. package/dist/scripts/36.chunk.js.map +0 -1
  287. package/dist/scripts/37-1aedf84774.chunk.js +0 -1
  288. package/dist/scripts/37.chunk.js +0 -236
  289. package/dist/scripts/37.chunk.js.map +0 -1
  290. package/dist/scripts/38-9411624870.chunk.js +0 -1
  291. package/dist/scripts/38.chunk.js +0 -315
  292. package/dist/scripts/38.chunk.js.map +0 -1
  293. package/dist/scripts/39-f46d2f69b1.chunk.js +0 -1
  294. package/dist/scripts/39.chunk.js +0 -116
  295. package/dist/scripts/39.chunk.js.map +0 -1
  296. package/dist/scripts/4-2bf2f1b864.chunk.js +0 -1
  297. package/dist/scripts/4.chunk.js +0 -335
  298. package/dist/scripts/4.chunk.js.map +0 -1
  299. package/dist/scripts/40-2134ac47ae.chunk.js +0 -1
  300. package/dist/scripts/40.chunk.js +0 -1782
  301. package/dist/scripts/40.chunk.js.map +0 -1
  302. package/dist/scripts/41-38841ce7ed.chunk.js +0 -1
  303. package/dist/scripts/41.chunk.js +0 -2347
  304. package/dist/scripts/41.chunk.js.map +0 -1
  305. package/dist/scripts/42-06cb96ddaf.chunk.js +0 -1
  306. package/dist/scripts/42.chunk.js +0 -2111
  307. package/dist/scripts/42.chunk.js.map +0 -1
  308. package/dist/scripts/43-164d1aaf84.chunk.js +0 -1
  309. package/dist/scripts/43.chunk.js +0 -2243
  310. package/dist/scripts/43.chunk.js.map +0 -1
  311. package/dist/scripts/44-234dd1aac7.chunk.js +0 -1
  312. package/dist/scripts/44.chunk.js +0 -1024
  313. package/dist/scripts/44.chunk.js.map +0 -1
  314. package/dist/scripts/45-26c33d7856.chunk.js +0 -1
  315. package/dist/scripts/45.chunk.js +0 -1065
  316. package/dist/scripts/45.chunk.js.map +0 -1
  317. package/dist/scripts/46-07c390591d.chunk.js +0 -1
  318. package/dist/scripts/46.chunk.js +0 -613
  319. package/dist/scripts/46.chunk.js.map +0 -1
  320. package/dist/scripts/47-6a9c70d236.chunk.js +0 -1
  321. package/dist/scripts/47.chunk.js +0 -735
  322. package/dist/scripts/47.chunk.js.map +0 -1
  323. package/dist/scripts/48-ee3bf3e841.chunk.js +0 -1
  324. package/dist/scripts/48.chunk.js +0 -994
  325. package/dist/scripts/48.chunk.js.map +0 -1
  326. package/dist/scripts/49-73ebbe96d0.chunk.js +0 -1
  327. package/dist/scripts/49.chunk.js +0 -759
  328. package/dist/scripts/49.chunk.js.map +0 -1
  329. package/dist/scripts/5-19ce45d023.chunk.js +0 -1
  330. package/dist/scripts/5.chunk.js +0 -40
  331. package/dist/scripts/5.chunk.js.map +0 -1
  332. package/dist/scripts/50-a1439e0fa7.chunk.js +0 -1
  333. package/dist/scripts/50.chunk.js +0 -528
  334. package/dist/scripts/50.chunk.js.map +0 -1
  335. package/dist/scripts/51-cad32e2046.chunk.js +0 -1
  336. package/dist/scripts/51.chunk.js +0 -932
  337. package/dist/scripts/51.chunk.js.map +0 -1
  338. package/dist/scripts/52-1d3e8eb21e.chunk.js +0 -1
  339. package/dist/scripts/52.chunk.js +0 -408
  340. package/dist/scripts/52.chunk.js.map +0 -1
  341. package/dist/scripts/53-5e80e33e98.chunk.js +0 -1
  342. package/dist/scripts/53.chunk.js +0 -754
  343. package/dist/scripts/53.chunk.js.map +0 -1
  344. package/dist/scripts/54.chunk.js +0 -681
  345. package/dist/scripts/54.chunk.js.map +0 -1
  346. package/dist/scripts/55-4c8d7b57f9.chunk.js +0 -1
  347. package/dist/scripts/55.chunk.js +0 -645
  348. package/dist/scripts/55.chunk.js.map +0 -1
  349. package/dist/scripts/56-1d96fdfcd3.chunk.js +0 -1
  350. package/dist/scripts/56.chunk.js +0 -346
  351. package/dist/scripts/56.chunk.js.map +0 -1
  352. package/dist/scripts/57-c17cdf728f.chunk.js +0 -1
  353. package/dist/scripts/57.chunk.js +0 -422
  354. package/dist/scripts/57.chunk.js.map +0 -1
  355. package/dist/scripts/58-ce34e558f4.chunk.js +0 -1
  356. package/dist/scripts/58.chunk.js +0 -437
  357. package/dist/scripts/58.chunk.js.map +0 -1
  358. package/dist/scripts/59.chunk.js +0 -342
  359. package/dist/scripts/59.chunk.js.map +0 -1
  360. package/dist/scripts/6-e9685801b5.chunk.js +0 -1
  361. package/dist/scripts/6.chunk.js +0 -484
  362. package/dist/scripts/6.chunk.js.map +0 -1
  363. package/dist/scripts/60-8d73b65e4e.chunk.js +0 -1
  364. package/dist/scripts/60.chunk.js +0 -254
  365. package/dist/scripts/60.chunk.js.map +0 -1
  366. package/dist/scripts/61-bd804db13e.chunk.js +0 -1
  367. package/dist/scripts/61.chunk.js +0 -318
  368. package/dist/scripts/61.chunk.js.map +0 -1
  369. package/dist/scripts/62-827229b727.chunk.js +0 -1
  370. package/dist/scripts/62.chunk.js +0 -142
  371. package/dist/scripts/62.chunk.js.map +0 -1
  372. package/dist/scripts/63-7251ac44d0.chunk.js +0 -1
  373. package/dist/scripts/63.chunk.js +0 -147
  374. package/dist/scripts/63.chunk.js.map +0 -1
  375. package/dist/scripts/64-33ca5259e4.chunk.js +0 -1
  376. package/dist/scripts/64.chunk.js +0 -439
  377. package/dist/scripts/64.chunk.js.map +0 -1
  378. package/dist/scripts/65-50d52bf3df.chunk.js +0 -1
  379. package/dist/scripts/65.chunk.js +0 -582
  380. package/dist/scripts/65.chunk.js.map +0 -1
  381. package/dist/scripts/66-fe41a3b54a.chunk.js +0 -1
  382. package/dist/scripts/66.chunk.js +0 -442
  383. package/dist/scripts/66.chunk.js.map +0 -1
  384. package/dist/scripts/67-1508455eb9.chunk.js +0 -1
  385. package/dist/scripts/67.chunk.js +0 -295
  386. package/dist/scripts/67.chunk.js.map +0 -1
  387. package/dist/scripts/68-21e8520126.chunk.js +0 -1
  388. package/dist/scripts/68.chunk.js +0 -165
  389. package/dist/scripts/68.chunk.js.map +0 -1
  390. package/dist/scripts/69-4d26485024.chunk.js +0 -1
  391. package/dist/scripts/69.chunk.js +0 -248
  392. package/dist/scripts/69.chunk.js.map +0 -1
  393. package/dist/scripts/7-d0085fdf2e.chunk.js +0 -1
  394. package/dist/scripts/7.chunk.js +0 -309
  395. package/dist/scripts/7.chunk.js.map +0 -1
  396. package/dist/scripts/70-8e1d03a7d8.chunk.js +0 -1
  397. package/dist/scripts/70.chunk.js +0 -207
  398. package/dist/scripts/70.chunk.js.map +0 -1
  399. package/dist/scripts/71-b835514c89.chunk.js +0 -1
  400. package/dist/scripts/71.chunk.js +0 -237
  401. package/dist/scripts/71.chunk.js.map +0 -1
  402. package/dist/scripts/72-23d6083900.chunk.js +0 -1
  403. package/dist/scripts/72.chunk.js +0 -331
  404. package/dist/scripts/72.chunk.js.map +0 -1
  405. package/dist/scripts/73.chunk.js +0 -404
  406. package/dist/scripts/73.chunk.js.map +0 -1
  407. package/dist/scripts/74.chunk.js +0 -301
  408. package/dist/scripts/74.chunk.js.map +0 -1
  409. package/dist/scripts/75.chunk.js +0 -231
  410. package/dist/scripts/75.chunk.js.map +0 -1
  411. package/dist/scripts/76.chunk.js +0 -157
  412. package/dist/scripts/76.chunk.js.map +0 -1
  413. package/dist/scripts/77.chunk.js +0 -307
  414. package/dist/scripts/77.chunk.js.map +0 -1
  415. package/dist/scripts/78.chunk.js +0 -249
  416. package/dist/scripts/78.chunk.js.map +0 -1
  417. package/dist/scripts/79.chunk.js +0 -282
  418. package/dist/scripts/79.chunk.js.map +0 -1
  419. package/dist/scripts/8-0ebd446b65.chunk.js +0 -1
  420. package/dist/scripts/8.chunk.js +0 -307
  421. package/dist/scripts/8.chunk.js.map +0 -1
  422. package/dist/scripts/80.chunk.js +0 -308
  423. package/dist/scripts/80.chunk.js.map +0 -1
  424. package/dist/scripts/81.chunk.js +0 -366
  425. package/dist/scripts/81.chunk.js.map +0 -1
  426. package/dist/scripts/82.chunk.js +0 -314
  427. package/dist/scripts/82.chunk.js.map +0 -1
  428. package/dist/scripts/83.chunk.js +0 -328
  429. package/dist/scripts/83.chunk.js.map +0 -1
  430. package/dist/scripts/84.chunk.js +0 -313
  431. package/dist/scripts/84.chunk.js.map +0 -1
  432. package/dist/scripts/85.chunk.js +0 -291
  433. package/dist/scripts/85.chunk.js.map +0 -1
  434. package/dist/scripts/86.chunk.js +0 -119
  435. package/dist/scripts/86.chunk.js.map +0 -1
  436. package/dist/scripts/87.chunk.js +0 -219
  437. package/dist/scripts/87.chunk.js.map +0 -1
  438. package/dist/scripts/88.chunk.js +0 -194
  439. package/dist/scripts/88.chunk.js.map +0 -1
  440. package/dist/scripts/89.chunk.js +0 -522
  441. package/dist/scripts/89.chunk.js.map +0 -1
  442. package/dist/scripts/9-0476e7c063.chunk.js +0 -1
  443. package/dist/scripts/9.chunk.js +0 -222
  444. package/dist/scripts/9.chunk.js.map +0 -1
  445. package/dist/scripts/90.chunk.js +0 -337
  446. package/dist/scripts/90.chunk.js.map +0 -1
  447. package/dist/scripts/91.chunk.js +0 -131
  448. package/dist/scripts/91.chunk.js.map +0 -1
  449. package/dist/scripts/92.chunk.js +0 -266
  450. package/dist/scripts/92.chunk.js.map +0 -1
  451. package/dist/scripts/bundle-1efd9147e1.min.js +0 -1
  452. package/dist/scripts/bundle-486bb6fa60.min.js +0 -1
  453. package/dist/scripts/bundle-511dc1956b.min.js +0 -1
  454. package/dist/scripts/bundle-8468900bf9.min.js +0 -1
  455. package/dist/scripts/bundle.js +0 -57527
  456. package/dist/scripts/bundle.js.map +0 -1
@@ -1 +0,0 @@
1
- (window.webpackJsonp_clickview_library_editor=window.webpackJsonp_clickview_library_editor||[]).push([[22],{1092:function(e,t,n){"use strict";n.r(t);var o=n(1),r=n(7),i=n(2),l=n(5),c=n(24),a=n(3),u=n(18),s=n(120),f=n(672),p=n(0),h=n(26),y=n(37),d=n(61),g=n(15),m=n(119),v=n(89),b=n(88),k=n(80),w=n(781),O=n(939),C=n.n(O);function S(e){return(S="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}function R(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function _(e,t){for(var n=0;n<t.length;n++){var o=t[n];o.enumerable=o.enumerable||!1,o.configurable=!0,"value"in o&&(o.writable=!0),Object.defineProperty(e,o.key,o)}}function E(e,t){return(E=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e})(e,t)}function F(e){var t=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(e){return!1}}();return function(){var n,o=P(e);if(t){var r=P(this).constructor;n=Reflect.construct(o,arguments,r)}else n=o.apply(this,arguments);return T(this,n)}}function T(e,t){return!t||"object"!==S(t)&&"function"!=typeof t?function(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}(e):t}function P(e){return(P=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)})(e)}var x=function(e){!function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),t&&E(e,t)}(i,e);var t,n,o,r=F(i);function i(){return R(this,i),r.apply(this,arguments)}return t=i,(n=[{key:"regions",value:function(){return{filters:{el:".filters-region",replaceElement:!0}}}},{key:"renderFilters",value:function(){var e=new w.f({collection:this.collection,channelName:this.options.channelName});this.showChildView("filters",e)}},{key:"onRender",value:function(){this.renderFilters()}},{key:"name",get:function(){return"SearchHeaderComponent"}},{key:"template",get:function(){return C.a}},{key:"lang",get:function(){return"search.searchHeader"}},{key:"className",get:function(){return"bg-white border-bottom p-3"}}])&&_(t.prototype,n),o&&_(t,o),i}(i.a.Component),j=n(6),N=n(712),D=n(769),I=n(940),M=n.n(I);function L(e){return(L="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}function V(e,t){for(var n=0;n<t.length;n++){var o=t[n];o.enumerable=o.enumerable||!1,o.configurable=!0,"value"in o&&(o.writable=!0),Object.defineProperty(e,o.key,o)}}function A(e,t){return(A=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e})(e,t)}function H(e){var t=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(e){return!1}}();return function(){var n,o=B(e);if(t){var r=B(this).constructor;n=Reflect.construct(o,arguments,r)}else n=o.apply(this,arguments);return q(this,n)}}function q(e,t){return!t||"object"!==L(t)&&"function"!=typeof t?function(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}(e):t}function B(e){return(B=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)})(e)}var z=function(e){!function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),t&&A(e,t)}(i,e);var t,n,o,r=H(i);function i(e){return function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,i),r.call(this,e)}return t=i,(n=[{key:"regions",value:function(){return{results:{replaceElement:!0,el:".results-region",partialLoading:j.j.VideoList}}}},{key:"onBeforeRender",value:function(){return!!this.collection}},{key:"onRender",value:function(){var e=new N.a({collection:this.collection,videosWithMetadata:this.options.videosWithMetadata,application:p.b.SEARCH,videoItemComponentType:D.a.Search,collectionIdentifier:null,config:this.options.config,emptyStateType:j.c.Search,emptyStateOptions:{heading:a.a.getPhrase(this.lang,"emptyStateHeading"),description:a.a.getPhrase(this.lang,"emptyStateDescription")},collectionViewChannel:this.options.collectionViewChannel,customerHasExchange:this.options.customerHasExchange});this.showChildView("results",e)}},{key:"name",get:function(){return"SearchResultsComponent"}},{key:"template",get:function(){return M.a}},{key:"lang",get:function(){return"search.searchResults"}},{key:"className",get:function(){return"bg-white"}}])&&V(t.prototype,n),o&&V(t,o),i}(i.a.Component),W=n(690),Q=n(941),U=n.n(Q);function G(e){return(G="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}function J(e,t){for(var n=0;n<t.length;n++){var o=t[n];o.enumerable=o.enumerable||!1,o.configurable=!0,"value"in o&&(o.writable=!0),Object.defineProperty(e,o.key,o)}}function Y(e,t){return(Y=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e})(e,t)}function X(e){var t=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(e){return!1}}();return function(){var n,o=Z(e);if(t){var r=Z(this).constructor;n=Reflect.construct(o,arguments,r)}else n=o.apply(this,arguments);return $(this,n)}}function $(e,t){return!t||"object"!==G(t)&&"function"!=typeof t?function(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}(e):t}function Z(e){return(Z=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)})(e)}n.d(t,"SearchView",(function(){return K}));var K=function(e){!function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),t&&Y(e,t)}(C,e);var t,n,w,O=X(C);function C(e){return function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,C),O.call(this,e)}return t=C,(n=[{key:"initialize",value:function(){this.initializeQuery(),this.bindListeners(),this.contextualSearchService=l.a.getInstance(u.b.ContextualSearch,this),this.searchDataService=l.a.getInstance(u.a.Search,this),this.videoDataService=l.a.getInstance(g.a.Video,this),this.ratingsDataService=l.a.getInstance(g.a.Ratings,this),this.collectionIdentifier=new s.a(Object.assign({collectionPrefix:h.a.SEARCH_VIDEOS},this.options.queryParams))}},{key:"initializeQuery",value:function(){this.queryModel=this.getSearchModel()}},{key:"bindListeners",value:function(){this.listenTo(p.e.RATINGS,"".concat(h.a.RATINGS,":sync"),this.render),this.listenTo(this.channelName,p.i.Filters.FILTER_CHANGED,o.debounce(this.onFilterChange,100)),this.listenTo(this.channelName,"fetch:video:with:metadata",this.fetchVideoWithMetadata),this.listenTo(W.a.TagFilter,"change:relevant:tags",this.updateSearchResults)}},{key:"regions",value:function(){return{header:{replaceElement:!0,el:".header-region"},results:{replaceElement:!0,el:".results-region"},pagination:{el:".pagination-region",replaceElement:!0}}}},{key:"getSearchModel",value:function(){return c.a.get("search",{ctor:b.c})}},{key:"fetchSearchData",value:function(){this.ratings=this.ratingsDataService.getAllRatings(),this.ratings&&!this.filterCollection&&this.initializeFilterCollection()}},{key:"initializeFilterCollection",value:function(){this.filterCollection=k.b.getFilterCollection(this.sources,this.ratings),this.setQueryParams()}},{key:"setQueryParams",value:function(){k.c.setQueryParams(Object.assign(Object.assign({},this.options.queryParams),this.getContextParams()),this.queryModel,this.filterCollection)}},{key:"getContextParams",value:function(){if(!this.queryModel.get("query"))return r.Radio.channel(p.w.CONTEXTUAL_SEARCH).trigger("reset:search:context"),{};var e,t,n,o=this.contextualSearchService.getSearchContext();return o&&o.get("filterParam")?(e={},t=o.get("filterParam"),n=o.get("filterValue"),t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e):{}}},{key:"onFilterChange",value:function(){i.a.AppLinkHelper.trigger({application:p.b.SEARCH,action:p.a.Search.HOME,params:k.c.getRouteQueryParams(this.queryModel,this.filterCollection,this.sources)})}},{key:"setVideosWithMetadata",value:function(){this.resultCollection&&!this.videosWithMetadata&&(this.videosWithMetadata=new y.a(this.resultCollection.map((function(e){return new d.a({id:e.get("id")})}))))}},{key:"updateSearchResults",value:function(){var e=this;this.resultCollection=null,this.renderResults(),this.queryString=k.c.getQueryString(this.queryModel,this.filterCollection,this.collectionIdentifier.cursor);var t=function(){return i.a.AppLinkHelper.trigger({application:p.b.SEARCH,action:p.a.Search.HOME,params:k.c.getRouteQueryParams(e.queryModel,e.filterCollection,e.sources)})};this.queryString?this.searchDataService.searchVideos(this.queryString,this.collectionIdentifier,t):t()}},{key:"renderHeader",value:function(){var e=new x({collection:this.filterCollection,channelName:this.channelName});this.showChildView("header",e)}},{key:"renderResults",value:function(){var e=new z({collection:this.resultCollection,videosWithMetadata:this.videosWithMetadata,config:this.config,collectionViewChannel:this.channelName,customerHasExchange:this.exchanges.any()});this.showChildView("results",e)}},{key:"renderPagination",value:function(){if(this.resultCollection&&this.resultCollection.length){var e=this.videoDataService.getVideoCollectionCursors(this.collectionIdentifier),t=new f.a({cursors:e,appLink:{application:p.b.SEARCH,action:p.a.Search.HOME,params:k.c.getRouteQueryParams(this.queryModel,this.filterCollection,this.sources)}});this.showChildView("pagination",t)}}},{key:"fetchResults",value:function(){var e=this;if(this.filterCollection){this.queryString=k.c.getQueryString(this.queryModel,this.filterCollection,this.collectionIdentifier.cursor);var t=k.c.getDynamicFilterQueryString(this.queryModel,this.filterCollection);if(this.dynamicFiltersFetched||this.searchDataService.getDynamicFilters(t,(function(t){e.dynamicFiltersFetched||(e.filterCollection.add(t.toJSON(),{merge:!0}),e.dynamicFiltersFetched=!0,e.render())})),!this.resultCollection){var n=function(t){e.resultCollection=t,e.setVideosWithMetadata(),e.render()};this.queryString?this.searchDataService.searchVideos(this.queryString,this.collectionIdentifier,n):n(new y.a([]))}}}},{key:"fetchVideoWithMetadata",value:function(e){var t=this;this.videoDataService.getVideo(e,(function(n){var o=t.videosWithMetadata.get(e);o&&(o.set(n.toJSON()),o.set({dataFetched:!0}))}))}},{key:"onBeforeRender",value:function(){return this.fetchSearchData(),this.fetchResults(),!0}},{key:"onRender",value:function(){this.renderHeader(),this.renderResults(),this.renderPagination()}},{key:"onBeforeDestroy",value:function(){this.queryModel.clear()}},{key:"name",get:function(){return"SearchView"}},{key:"title",get:function(){return a.a.getPhrase(this.lang,"title")}},{key:"lang",get:function(){return"search.search"}},{key:"template",get:function(){return U.a}},{key:"className",get:function(){return"bg-white"}},{key:"channelName",get:function(){return"".concat(this.name).concat(this.cid)}},{key:"requiredResources",get:function(){return{config:m.b.config,sources:v.b.libraries,exchanges:v.b.exchanges}}}])&&J(t.prototype,n),w&&J(t,w),C}(i.a.View)},672:function(e,t,n){"use strict";n.d(t,"a",(function(){return u}));var o=n(1),r=n(2),i=n(4),l=n(31),c=n(673),a=n.n(c);class u extends r.a.Component{constructor(e){super(e)}get defaults(){return{cursors:{},cursorParamName:"cursor"}}get name(){return"PaginationComponent"}get template(){return a.a}get lang(){return"shared._pagination"}get appLinks(){const e={};if(!this.options.cursors)return{};if(this.options.cursors.previous){let t=this.options.cursors.previous;const n=this.buildCursor(this.options.cursors.previous);+t<=1&&!0!==this.options.allowFirstPageCursor&&delete n.params.cursor,e[".previous-applink"]=n}return this.options.cursors.next&&(e[".next-applink"]=this.buildCursor(this.options.cursors.next)),e}events(){return{"click .previous-applink":"onClickPrevious","click .next-applink":"onClickNext"}}buildCursor(e){return{application:this.options.appLink.application,action:this.options.appLink.action,args:this.options.appLink.args,params:o.extend({},this.options.appLink.params,{[this.options.cursorParamName]:e})}}onClickPrevious(){this.logAction("previous")}onClickNext(){this.logAction("next")}logAction(e){const t=l.a.mergeOptions(this.options.analyticsOptions,{location:i.k.Pagination,entity:i.e.Pagination,actionType:i.q.Navigate,workflowPhase:i.r.Complete}),n={id:this.options.collectionId,page:e};l.a.logUserAction(n,t)}viewOptions(){return{cursors:this.options.cursors}}onBeforeRender(){return!!this.options.cursors}}},673:function(e,t,n){var o=n(8);e.exports=(o.default||o).template({1:function(e,t,n,o,r){return"disabled"},compiler:[8,">= 4.3.0"],main:function(e,t,n,o,r){e.propertyIsEnumerable;var i,l=null!=t?t:e.nullContext||{},c=e.hooks.helperMissing,a=e.escapeExpression;return'<div class="p-3">\r\n <a class="btn previous-applink btn-secondary '+(null!=(i=n.unless.call(l,null!=(i=null!=(i=null!=t?t.options:t)?i.cursors:i)?i.previous:i,{name:"unless",hash:{},fn:e.program(1,r,0),inverse:e.noop,data:r}))?i:"")+'">'+a((n.lang||t&&t.lang||c).call(l,"previous",{name:"lang",hash:{},data:r}))+'</a>\r\n <a class="btn next-applink btn-secondary '+(null!=(i=n.unless.call(l,null!=(i=null!=(i=null!=t?t.options:t)?i.cursors:i)?i.next:i,{name:"unless",hash:{},fn:e.program(1,r,0),inverse:e.noop,data:r}))?i:"")+'">'+a((n.lang||t&&t.lang||c).call(l,"next",{name:"lang",hash:{},data:r}))+"</a>\r\n</div>"},useData:!0})},683:function(e,t,n){e.exports={label:"_3iMZr",filterButton:"_1xOts",dropdownMenu:"_1Yzts"}},690:function(e,t,n){"use strict";var o={TagFilter:"tag:filter"};n.d(t,"a",(function(){return o}))},752:function(e,t,n){var o=n(8);e.exports=(o.default||o).template({compiler:[8,">= 4.3.0"],main:function(e,t,n,o,r){var i;e.propertyIsEnumerable;return'<h6 class="mb-0">'+e.escapeExpression("function"==typeof(i=null!=(i=n.title||(null!=t?t.title:t))?i:e.hooks.helperMissing)?i.call(null!=t?t:e.nullContext||{},{name:"title",hash:{},data:r}):i)+'</h6>\r\n<div class="options-region"></div>'},useData:!0})},753:function(e,t,n){var o=n(8);e.exports=(o.default||o).template({1:function(e,t,n,o,r){e.propertyIsEnumerable;return' <a class="clear-filters float-left text-muted hover-text-underline cursor-pointer">'+e.escapeExpression((n.lang||t&&t.lang||e.hooks.helperMissing).call(null!=t?t:e.nullContext||{},"reset",{name:"lang",hash:{},data:r}))+"</a>\r\n"},3:function(e,t,n,o,r){e.propertyIsEnumerable;return' <a class="apply-filters d-block text-right info-link">'+e.escapeExpression((n.lang||t&&t.lang||e.hooks.helperMissing).call(null!=t?t:e.nullContext||{},"apply",{name:"lang",hash:{},data:r}))+"</a>\r\n"},compiler:[8,">= 4.3.0"],main:function(e,t,n,o,r){e.propertyIsEnumerable;var i,l=null!=t?t:e.nullContext||{};return'<div class="filter-list-region"></div>\r\n<div>\r\n'+(null!=(i=n.if.call(l,null!=(i=null!=t?t.options:t)?i.showClearFilters:i,{name:"if",hash:{},fn:e.program(1,r,0),inverse:e.noop,data:r}))?i:"")+(null!=(i=n.if.call(l,null!=(i=null!=t?t.options:t)?i.showApplyFilters:i,{name:"if",hash:{},fn:e.program(3,r,0),inverse:e.noop,data:r}))?i:"")+"</div>"},useData:!0})},754:function(e,t,n){var o=n(8);e.exports=(o.default||o).template({compiler:[8,">= 4.3.0"],main:function(e,t,n,o,r){e.propertyIsEnumerable;var i,l=e.lambda,c=e.escapeExpression;return'<button class="'+c(l(null!=(i=null!=t?t.options:t)?i.buttonClass:i,t))+' dropdown-btn" type="button" data-toggle="dropdown" aria-haspopup="true" aria-expanded="false">\r\n '+c(l(null!=(i=null!=t?t.options:t)?i.label:i,t))+'\r\n</button>\r\n<div class="dropdown-menu p-2 filters-region"></div>'},useData:!0})},755:function(e,t,n){e.exports={moreFiltersButton:"_3sym3"}},756:function(e,t,n){var o=n(8);e.exports=(o.default||o).template({1:function(e,t,n,o,r){e.propertyIsEnumerable;return'<div class="d-inline-block text-right">\r\n <a class="clear-filters cursor-pointer hover-text-underline">'+e.escapeExpression((n.lang||t&&t.lang||e.hooks.helperMissing).call(null!=t?t:e.nullContext||{},"reset",{name:"lang",hash:{},data:r}))+"</a>\r\n</div>\r\n"},compiler:[8,">= 4.3.0"],main:function(e,t,n,o,r){e.propertyIsEnumerable;var i,l=e.escapeExpression,c=null!=t?t:e.nullContext||{};return'<div class="d-inline-block border-right py-1 pr-3 '+l(e.lambda(null!=(i=null!=t?t.options:t)?i.labelClass:i,t))+'"><strong>'+l((n.lang||t&&t.lang||e.hooks.helperMissing).call(c,"heading",{name:"lang",hash:{},data:r}))+'</strong></div>\r\n<div class="filter-list-region d-inline-block pl-2"></div>\r\n<div class="more-filters-region d-inline-block mr-2"></div>\r\n'+(null!=(i=n.if.call(c,null!=(i=null!=t?t.options:t)?i.hasFiltersSelected:i,{name:"if",hash:{},fn:e.program(1,r,0),inverse:e.noop,data:r}))?i:"")},useData:!0})},757:function(e,t,n){var o=n(8);e.exports=(o.default||o).template({compiler:[8,">= 4.3.0"],main:function(e,t,n,o,r){e.propertyIsEnumerable;var i,l=e.lambda,c=e.escapeExpression;return'<button class="'+c(l(null!=(i=null!=t?t.options:t)?i.buttonClass:i,t))+' dropdown-btn cursor-pointer" type="button" data-toggle="dropdown" aria-haspopup="true" aria-expanded="false">\r\n '+c(l(null!=(i=null!=t?t.options:t)?i.label:i,t))+'\r\n</button>\r\n<div class="dropdown-menu '+c(l(null!=(i=null!=(i=null!=t?t.options:t)?i.styles:i)?i.dropdownMenu:i,t))+' p-2 filter-region"></div>'},useData:!0})},758:function(e,t,n){var o=n(8);e.exports=(o.default||o).template({compiler:[8,">= 4.3.0"],main:function(e,t,n,o,r){return'<div class="option-list-region"></div>'},useData:!0})},759:function(e,t,n){var o=n(8);e.exports=(o.default||o).template({1:function(e,t,n,o,r){e.propertyIsEnumerable;var i,l=e.lambda,c=e.escapeExpression;return'<div class="default-option py-1">\r\n <div class="custom-control custom-'+c(l(null!=(i=null!=t?t.options:t)?i.inputType:i,t))+'">\r\n <input type='+c(l(null!=(i=null!=t?t.options:t)?i.inputType:i,t))+' autocomplete="off" class="custom-control-input"'+(null!=(i=n.if.call(null!=t?t:e.nullContext||{},null!=(i=null!=t?t.options:t)?i.defaultOptionSelected:i,{name:"if",hash:{},fn:e.program(2,r,0),inverse:e.noop,data:r}))?i:"")+'>\r\n <label class="custom-control-label align-middle cursor-pointer">'+c(l(null!=(i=null!=t?t.options:t)?i.defaultOptionLabel:i,t))+"</label>\r\n </div>\r\n</div>\r\n"},2:function(e,t,n,o,r){return" checked"},compiler:[8,">= 4.3.0"],main:function(e,t,n,o,r){var i;e.propertyIsEnumerable;return(null!=(i=n.if.call(null!=t?t:e.nullContext||{},null!=(i=null!=t?t.options:t)?i.defaultOptionLabel:i,{name:"if",hash:{},fn:e.program(1,r,0),inverse:e.noop,data:r}))?i:"")+'<div class="options-region"></div>'},useData:!0})},760:function(e,t,n){var o=n(8);e.exports=(o.default||o).template({1:function(e,t,n,o,r){return" checked"},compiler:[8,">= 4.3.0"],main:function(e,t,n,o,r){e.propertyIsEnumerable;var i,l,c=e.lambda,a=e.escapeExpression,u=null!=t?t:e.nullContext||{};return'<div class="custom-control custom-'+a(c(null!=(i=null!=t?t.options:t)?i.inputType:i,t))+'">\r\n <input type='+a(c(null!=(i=null!=t?t.options:t)?i.inputType:i,t))+' autocomplete="off" class="custom-control-input"'+(null!=(i=n.if.call(u,null!=t?t.active:t,{name:"if",hash:{},fn:e.program(1,r,0),inverse:e.noop,data:r}))?i:"")+'>\r\n <label class="custom-control-label align-middle cursor-pointer">'+a("function"==typeof(l=null!=(l=n.name||(null!=t?t.name:t))?l:e.hooks.helperMissing)?l.call(u,{name:"name",hash:{},data:r}):l)+"</label>\r\n</div>"},useData:!0})},761:function(e,t,n){var o=n(8);e.exports=(o.default||o).template({1:function(e,t,n,o,r){return" on"},compiler:[8,">= 4.3.0"],main:function(e,t,n,o,r){e.propertyIsEnumerable;var i,l,c=null!=t?t:e.nullContext||{};return'<div class="custom-toggle toggle-option float-right'+(null!=(i=n.if.call(c,null!=(i=null!=t?t.options:t)?i.isSelected:i,{name:"if",hash:{},fn:e.program(1,r,0),inverse:e.noop,data:r}))?i:"")+'"><span class="handle"></span></div>\r\n<p>'+e.escapeExpression("function"==typeof(l=null!=(l=n.description||(null!=t?t.description:t))?l:e.hooks.helperMissing)?l.call(c,{name:"description",hash:{},data:r}):l)+"</p>"},useData:!0})},762:function(e,t,n){var o=n(8);e.exports=(o.default||o).template({compiler:[8,">= 4.3.0"],main:function(e,t,n,o,r){var i;e.propertyIsEnumerable;return e.escapeExpression("function"==typeof(i=null!=(i=n.name||(null!=t?t.name:t))?i:e.hooks.helperMissing)?i.call(null!=t?t:e.nullContext||{},{name:"name",hash:{},data:r}):i)},useData:!0})},763:function(e,t,n){e.exports={options:"_6o30E",option:"_3yReT"}},764:function(e,t,n){var o=n(8);e.exports=(o.default||o).template({compiler:[8,">= 4.3.0"],main:function(e,t,n,o,r){e.propertyIsEnumerable;var i,l,c=e.escapeExpression,a=null!=t?t:e.nullContext||{},u=e.hooks.helperMissing;return'<button type="button" class="d-block option-btn w-100 '+c(e.lambda(null!=(i=null!=t?t.options:t)?i.buttonClass:i,t))+'">\r\n '+c("function"==typeof(l=null!=(l=n.name||(null!=t?t.name:t))?l:u)?l.call(a,{name:"name",hash:{},data:r}):l)+'\r\n</button>\r\n<div class="text-center">'+c("function"==typeof(l=null!=(l=n.description||(null!=t?t.description:t))?l:u)?l.call(a,{name:"description",hash:{},data:r}):l)+"</div>"},useData:!0})},765:function(e,t,n){e.exports={optionItem:"_3jzt0",customOptionItem:"_78r7L",selected:"aFhSG"}},766:function(e,t,n){e.exports={container:"_1SMXf"}},767:function(e,t,n){var o=n(8);e.exports=(o.default||o).template({1:function(e,t,n,o,r){e.propertyIsEnumerable;return'<p class="mb-0">'+e.escapeExpression((n.lang||t&&t.lang||e.hooks.helperMissing).call(null!=t?t:e.nullContext||{},"emptyState",{name:"lang",hash:{},data:r}))+"</p>\r\n"},3:function(e,t,n,o,r){return'<div class="dropdown-divider"></div>\r\n'},compiler:[8,">= 4.3.0"],main:function(e,t,n,o,r){e.propertyIsEnumerable;var i,l=null!=t?t:e.nullContext||{};return(null!=(i=n.if.call(l,null!=(i=null!=t?t.options:t)?i.showEmptyState:i,{name:"if",hash:{},fn:e.program(1,r,0),inverse:e.noop,data:r}))?i:"")+'\r\n<div class="selected-tags-region"></div>\r\n'+(null!=(i=n.if.call(l,null!=(i=null!=t?t.options:t)?i.useDivider:i,{name:"if",hash:{},fn:e.program(3,r,0),inverse:e.noop,data:r}))?i:"")+'<div class="relevant-tags-region"></div>'},useData:!0})},768:function(e,t,n){var o=n(8);e.exports=(o.default||o).template({compiler:[8,">= 4.3.0"],main:function(e,t,n,o,r){return'<div class="tags-region"></div>'},useData:!0})},769:function(e,t,n){"use strict";var o=n(663);n.d(t,"a",(function(){return o.b}));n(710),n(713)},781:function(e,t,n){"use strict";var o=n(7),r=n(2),i=n(0),l=n(6),c=n(4),a=n(31),u=n(24),s=n(3),f=n(17),p=n(80),h=n(690),y=n(752),d=n.n(y);function g(e){return(g="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}function m(e,t){for(var n=0;n<t.length;n++){var o=t[n];o.enumerable=o.enumerable||!1,o.configurable=!0,"value"in o&&(o.writable=!0),Object.defineProperty(e,o.key,o)}}function v(e,t){return(v=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e})(e,t)}function b(e){var t=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(e){return!1}}();return function(){var n,o=w(e);if(t){var r=w(this).constructor;n=Reflect.construct(o,arguments,r)}else n=o.apply(this,arguments);return k(this,n)}}function k(e,t){return!t||"object"!==g(t)&&"function"!=typeof t?function(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}(e):t}function w(e){return(w=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)})(e)}var O=function(e){!function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),t&&v(e,t)}(i,e);var t,n,o,r=b(i);function i(e){return function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,i),r.call(this,e)}return t=i,(n=[{key:"regions",value:function(){return{options:{el:".options-region",replaceElement:!0}}}},{key:"renderOptions",value:function(){this.showChildView("options",new Pe({collection:this.model.options,model:this.model,channelName:this.options.channelName}))}},{key:"onRender",value:function(){this.renderOptions()}},{key:"name",get:function(){return"FilterItemComponent"}},{key:"template",get:function(){return d.a}},{key:"className",get:function(){return"py-1"}}])&&m(t.prototype,n),o&&m(t,o),i}(r.a.Component),C=n(753),S=n.n(C);function R(e){return(R="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}function _(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function E(e,t){for(var n=0;n<t.length;n++){var o=t[n];o.enumerable=o.enumerable||!1,o.configurable=!0,"value"in o&&(o.writable=!0),Object.defineProperty(e,o.key,o)}}function F(e,t,n){return t&&E(e.prototype,t),n&&E(e,n),e}function T(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),t&&P(e,t)}function P(e,t){return(P=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e})(e,t)}function x(e){var t=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(e){return!1}}();return function(){var n,o=N(e);if(t){var r=N(this).constructor;n=Reflect.construct(o,arguments,r)}else n=o.apply(this,arguments);return j(this,n)}}function j(e,t){return!t||"object"!==R(t)&&"function"!=typeof t?function(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}(e):t}function N(e){return(N=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)})(e)}var D=function(e){T(n,e);var t=x(n);function n(){return _(this,n),t.apply(this,arguments)}return F(n,[{key:"initialize",value:function(){this.bindListeners()}},{key:"regions",value:function(){return{filterList:{el:".filter-list-region",replaceElement:!0}}}},{key:"events",value:function(){return{click:"onClick","click .apply-filters":"onClickApplyFilters","click .clear-filters":"onClickClearFilters"}}},{key:"bindListeners",value:function(){this.listenTo(this.channelName,i.i.Filters.OPTION_SELECTED,this.render)}},{key:"onClick",value:function(e){e.stopPropagation()}},{key:"onClickApplyFilters",value:function(e){e.stopPropagation(),this.applyFilters(),this.render()}},{key:"onClickClearFilters",value:function(e){e.stopPropagation(),o.Radio.channel(this.options.channelName).trigger("reset:filters"),p.b.clearFilters(this.collection),this.isTagFilterType()&&o.Radio.channel(h.a.TagFilter).trigger("change:relevant:tags"),this.render()}},{key:"applyFilters",value:function(){o.Radio.channel(this.options.channelName).trigger(i.i.Filters.APPLY_FILTER)}},{key:"hasFiltersSelected",value:function(){return this.collection.some((function(e){return p.b.isSelected(e)}))}},{key:"isTagFilterType",value:function(){return!!this.collection.findWhere({type:f.a.Tags})}},{key:"viewOptions",value:function(){return{showApplyFilters:!this.isTagFilterType(),showClearFilters:this.hasFiltersSelected()}}},{key:"onRender",value:function(){this.showChildView("filterList",new I({collection:this.collection,channelName:this.channelName}))}},{key:"name",get:function(){return"FilterListComponent"}},{key:"template",get:function(){return S.a}},{key:"lang",get:function(){return"search.filterList"}},{key:"className",get:function(){return"px-1"}},{key:"channelName",get:function(){return"".concat(this.name).concat(this.cid)}}]),n}(r.a.Component),I=function(e){T(n,e);var t=x(n);function n(e){return _(this,n),t.call(this,e)}return F(n,[{key:"name",get:function(){return"FilterComponentCollection"}},{key:"tagName",get:function(){return"ul"}},{key:"className",get:function(){return"m-0 p-0"}},{key:"childView",get:function(){return O}},{key:"childViewOptions",get:function(){return{channelName:this.options.channelName}}}]),n}(r.a.ComponentCollection),M=n(62),L=n(683),V=n.n(L),A=n(754),H=n.n(A),q=n(755),B=n.n(q);function z(e){return(z="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}function W(e,t){for(var n=0;n<t.length;n++){var o=t[n];o.enumerable=o.enumerable||!1,o.configurable=!0,"value"in o&&(o.writable=!0),Object.defineProperty(e,o.key,o)}}function Q(e,t){return(Q=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e})(e,t)}function U(e){var t=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(e){return!1}}();return function(){var n,o=J(e);if(t){var r=J(this).constructor;n=Reflect.construct(o,arguments,r)}else n=o.apply(this,arguments);return G(this,n)}}function G(e,t){return!t||"object"!==z(t)&&"function"!=typeof t?function(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}(e):t}function J(e){return(J=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)})(e)}var Y=function(e){!function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),t&&Q(e,t)}(f,e);var t,n,r,l=U(f);function f(e){return function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,f),l.call(this,e)}return t=f,(n=[{key:"initialize",value:function(){this.getViewModel(),this.setInitialFilters(),this.bindListeners()}},{key:"regions",value:function(){return{filters:{el:".filters-region",replaceElement:!1}}}},{key:"events",value:function(){return{"hide.bs.dropdown":"onHideDropdown","show.bs.dropdown":"onShowDropdown"}}},{key:"getViewModel",value:function(){this.viewModel=u.a.get(this.viewModelName)}},{key:"bindListeners",value:function(){this.listenTo(this.channelName,i.i.Filters.APPLY_FILTER,this.onClickApplyFilters),this.listenTo(this.channelName,"reset:filters",this.logFilterResetAction)}},{key:"setInitialFilters",value:function(){this.initialFilters=new M.a(this.collection.toJSON())}},{key:"onClickApplyFilters",value:function(){this.viewModel.get("dropdownVisible")&&(this.viewModel.set({applyClicked:!0}),this.toggleDropdown())}},{key:"onShowDropdown",value:function(){this.viewModel.set("dropdownVisible",!0)}},{key:"onHideDropdown",value:function(){var e=this.viewModel.get("applyClicked");this.viewModel.unset("applyClicked"),this.viewModel.set("dropdownVisible",!1),this.applyFilters(!!e)}},{key:"toggleDropdown",value:function(){this.getUI("dropdownToggle").dropdown("toggle")}},{key:"applyFilters",value:function(){var e=!(arguments.length>0&&void 0!==arguments[0])||arguments[0];this.haveFiltersChanged()&&(this.logFilterApplyAction(e),this.setInitialFilters(),o.Radio.channel(this.options.channelName).trigger(i.i.Filters.FILTER_CHANGED),this.render())}},{key:"haveFiltersChanged",value:function(){var e=this;return!this.collection.every((function(t,n){return!p.b.hasFilterChanged(e.initialFilters.at(n),t)}))}},{key:"isSelected",value:function(){return this.collection.some((function(e){return p.b.isSelected(e)}))}},{key:"numSelectedFilters",value:function(){return this.collection.filter((function(e){return p.b.isSelected(e)})).length}},{key:"getLabel",value:function(){var e=s.a.getPhrase(this.lang,"moreFilters"),t=this.numSelectedFilters();return t&&(e+=" - ".concat(t)),e}},{key:"getButtonClass",value:function(){var e="btn ".concat(V.a.filterButton);return this.isSelected()?e+=" btn-info":e+=" btn-light",e}},{key:"logFilterApplyAction",value:function(e){var t=this;this.collection.each((function(n,o){p.b.hasFilterChanged(t.initialFilters.at(o),n)&&t.logFilter(n,e)}))}},{key:"logFilter",value:function(e,t){var n={location:c.k.SearchFilters,actionType:c.q.Filter,entity:c.e.Video,workflowPhase:c.r.Complete},o={filter:e.get("title"),selectedOption:p.b.getFilterSelectedOptionsAnalyticsData(e),applyClicked:t};a.a.logUserAction(o,n)}},{key:"logFilterResetAction",value:function(){var e={location:c.k.SearchFilters,actionType:c.q.Filter,descriptor:c.h.Reset,entity:c.e.Video,workflowPhase:c.r.Complete};a.a.logUserAction({filter:"More Filters"},e)}},{key:"viewOptions",value:function(){return{label:this.getLabel(),buttonClass:this.getButtonClass()}}},{key:"renderFilters",value:function(){this.showChildView("filters",new D({collection:this.collection,channelName:this.channelName}))}},{key:"onRender",value:function(){this.renderFilters(),this.viewModel.get("dropdownVisible")&&this.toggleDropdown()}},{key:"name",get:function(){return"MoreFiltersButtonComponent"}},{key:"template",get:function(){return H.a}},{key:"lang",get:function(){return"search.moreFiltersButton"}},{key:"className",get:function(){return"rounded cursor-pointer ".concat(B.a.moreFiltersButton)}},{key:"channelName",get:function(){return"".concat(this.name).concat(this.cid)}},{key:"viewModelName",get:function(){return this.name}},{key:"elements",get:function(){return{dropdownToggle:".dropdown-btn"}}}])&&W(t.prototype,n),r&&W(t,r),f}(r.a.Component),X=n(756),$=n.n(X);function Z(e){return(Z="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}function K(e,t){for(var n=0;n<t.length;n++){var o=t[n];o.enumerable=o.enumerable||!1,o.configurable=!0,"value"in o&&(o.writable=!0),Object.defineProperty(e,o.key,o)}}function ee(e,t){return(ee=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e})(e,t)}function te(e){var t=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(e){return!1}}();return function(){var n,o=oe(e);if(t){var r=oe(this).constructor;n=Reflect.construct(o,arguments,r)}else n=o.apply(this,arguments);return ne(this,n)}}function ne(e,t){return!t||"object"!==Z(t)&&"function"!=typeof t?function(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}(e):t}function oe(e){return(oe=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)})(e)}var re=function(e){!function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),t&&ee(e,t)}(s,e);var t,n,r,u=te(s);function s(e){return function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,s),u.call(this,e)}return t=s,(n=[{key:"regions",value:function(){return{filterList:{el:".filter-list-region",replaceRegion:!0,partialLoading:l.j.SearchFilter},moreFilters:{el:".more-filters-region",replaceRegion:!0}}}},{key:"events",value:function(){return{"click .clear-filters":"onClickClearFilters"}}},{key:"onClickClearFilters",value:function(){p.b.clearFilters(this.collection),o.Radio.channel(this.options.channelName).trigger(i.i.Filters.FILTER_CHANGED),this.logFilterResetAction()}},{key:"getVisibleFilters",value:function(){return new M.a(this.collection.filter((function(e){return!e.get("showInMoreFilters")&&p.b.showFilter(e)})))}},{key:"getMoreFilters",value:function(){return new M.a(this.collection.filter((function(e){return e.get("showInMoreFilters")&&p.b.showFilter(e)})))}},{key:"hasFiltersSelected",value:function(){return this.collection.some((function(e){return p.b.isSelected(e)}))}},{key:"logFilterResetAction",value:function(){var e={location:c.k.SearchFilters,actionType:c.q.Filter,descriptor:c.h.Reset,entity:c.e.Video,workflowPhase:c.r.Complete};a.a.logUserAction({filter:"All"},e)}},{key:"renderFilterList",value:function(){var e=new fe({collection:this.getVisibleFilters(),channelName:this.options.channelName});this.showChildView("filterList",e)}},{key:"renderMoreFilters",value:function(){var e=new Y({collection:this.getMoreFilters(),channelName:this.options.channelName});this.showChildView("moreFilters",e)}},{key:"viewOptions",value:function(){return{labelClass:V.a.label,hasFiltersSelected:this.collection&&this.hasFiltersSelected(),clearFiltersClass:V.a.clearFilters}}},{key:"onBeforeRender",value:function(){return!!this.collection}},{key:"onRender",value:function(){this.renderFilterList(),this.renderMoreFilters()}},{key:"name",get:function(){return"FiltersComponent"}},{key:"template",get:function(){return $.a}},{key:"lang",get:function(){return"search.filters"}}])&&K(t.prototype,n),r&&K(t,r),s}(r.a.Component);function ie(e){return(ie="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}function le(e,t){for(var n=0;n<t.length;n++){var o=t[n];o.enumerable=o.enumerable||!1,o.configurable=!0,"value"in o&&(o.writable=!0),Object.defineProperty(e,o.key,o)}}function ce(e,t){return(ce=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e})(e,t)}function ae(e){var t=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(e){return!1}}();return function(){var n,o=se(e);if(t){var r=se(this).constructor;n=Reflect.construct(o,arguments,r)}else n=o.apply(this,arguments);return ue(this,n)}}function ue(e,t){return!t||"object"!==ie(t)&&"function"!=typeof t?function(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}(e):t}function se(e){return(se=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)})(e)}var fe=function(e){!function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),t&&ce(e,t)}(i,e);var t,n,o,r=ae(i);function i(e){return function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,i),r.call(this,e)}return t=i,(n=[{key:"name",get:function(){return"FilterListComponent"}},{key:"tagName",get:function(){return"ul"}},{key:"className",get:function(){return"m-0 p-0"}},{key:"childView",get:function(){return we}},{key:"childViewOptions",get:function(){return{channelName:this.options.channelName,analyticsOptions:{location:c.k.SearchFilters,entity:c.e.Video}}}}])&&le(t.prototype,n),o&&le(t,o),i}(r.a.ComponentCollection),pe=n(88),he=n(757),ye=n.n(he);function de(e){return(de="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}function ge(e,t){for(var n=0;n<t.length;n++){var o=t[n];o.enumerable=o.enumerable||!1,o.configurable=!0,"value"in o&&(o.writable=!0),Object.defineProperty(e,o.key,o)}}function me(e,t){return(me=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e})(e,t)}function ve(e){var t=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(e){return!1}}();return function(){var n,o=ke(e);if(t){var r=ke(this).constructor;n=Reflect.construct(o,arguments,r)}else n=o.apply(this,arguments);return be(this,n)}}function be(e,t){return!t||"object"!==de(t)&&"function"!=typeof t?function(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}(e):t}function ke(e){return(ke=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)})(e)}var we=function(e){!function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),t&&me(e,t)}(h,e);var t,n,l,s=ve(h);function h(e){return function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,h),s.call(this,e)}return t=h,(n=[{key:"initialize",value:function(){this.getViewModel(),this.setInitialFilter(),this.bindListeners()}},{key:"regions",value:function(){return{filter:{el:".filter-region",replaceElement:!1}}}},{key:"events",value:function(){return{"hide.bs.dropdown":"onHideDropdown","show.bs.dropdown":"onShowDropdown"}}},{key:"getViewModel",value:function(){this.viewModel=u.a.get(this.viewModelName)}},{key:"bindListeners",value:function(){this.listenTo(this.channelName,i.i.Filters.APPLY_FILTER,this.onClickApplyFilter),this.listenTo(this.channelName,"reset:filters",this.logFilterResetAction)}},{key:"setInitialFilter",value:function(){this.initialFilter=new pe.a(this.model.toJSON())}},{key:"onClickApplyFilter",value:function(){this.viewModel.get("dropdownVisible")&&(this.viewModel.set({applyClicked:!0}),this.toggleDropdown())}},{key:"onShowDropdown",value:function(){this.viewModel.set("dropdownVisible",!0)}},{key:"onHideDropdown",value:function(){var e=this.viewModel.get("applyClicked");this.viewModel.unset("applyClicked"),this.viewModel.set("dropdownVisible",!1),this.applyFilter(!!e)}},{key:"toggleDropdown",value:function(){this.getUI("dropdownToggle").dropdown("toggle")}},{key:"applyFilter",value:function(e){p.b.hasFilterChanged(this.initialFilter,this.model)&&this.model.get("type")!==f.a.Tags&&(this.setInitialFilter(),o.Radio.channel(this.options.channelName).trigger(i.i.Filters.FILTER_CHANGED),this.logFilterApplyAction(e))}},{key:"getLabel",value:function(){return p.b.isSelected(this.model)?p.b.getFilterLabel(this.model):this.model.get("title")}},{key:"getButtonClass",value:function(){var e="btn ".concat(V.a.filterButton);return p.b.isSelected(this.model)?e+=" btn-info":e+=" btn-light",e}},{key:"logFilterApplyAction",value:function(e){var t=a.a.mergeOptions(this.options.analyticsOptions,{actionType:c.q.Filter,workflowPhase:c.r.Complete}),n={filter:this.model.get("title"),selectedOption:p.b.getFilterSelectedOptionsAnalyticsData(this.model),applyClicked:e};a.a.logUserAction(n,t)}},{key:"logFilterResetAction",value:function(){var e=a.a.mergeOptions(this.options.analyticsOptions,{actionType:c.q.Filter,descriptor:c.h.Reset,workflowPhase:c.r.Complete}),t={filter:this.model.get("title")};a.a.logUserAction(t,e)}},{key:"viewOptions",value:function(){return{styles:V.a,label:this.getLabel(),buttonClass:this.getButtonClass()}}},{key:"renderFilter",value:function(){this.showChildView("filter",new D({collection:new r.a.Collection([this.model]),channelName:this.channelName}))}},{key:"onRender",value:function(){this.renderFilter(),this.viewModel.get("dropdownVisible")&&this.toggleDropdown()}},{key:"name",get:function(){return"FilterButtonItemComponent"}},{key:"template",get:function(){return ye.a}},{key:"className",get:function(){return"d-inline-block m-1"}},{key:"channelName",get:function(){return"".concat(this.name).concat(this.cid)}},{key:"viewModelName",get:function(){return"".concat(this.name,":").concat(this.model.get("type"))}},{key:"elements",get:function(){return{dropdownToggle:".dropdown-btn"}}}])&&ge(t.prototype,n),l&&ge(t,l),h}(r.a.Component),Oe=n(758),Ce=n.n(Oe);function Se(e){return(Se="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}function Re(e,t){for(var n=0;n<t.length;n++){var o=t[n];o.enumerable=o.enumerable||!1,o.configurable=!0,"value"in o&&(o.writable=!0),Object.defineProperty(e,o.key,o)}}function _e(e,t){return(_e=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e})(e,t)}function Ee(e){var t=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(e){return!1}}();return function(){var n,o=Te(e);if(t){var r=Te(this).constructor;n=Reflect.construct(o,arguments,r)}else n=o.apply(this,arguments);return Fe(this,n)}}function Fe(e,t){return!t||"object"!==Se(t)&&"function"!=typeof t?function(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}(e):t}function Te(e){return(Te=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)})(e)}var Pe=function(e){!function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),t&&_e(e,t)}(c,e);var t,n,r,l=Ee(c);function c(e){return function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,c),l.call(this,e)}return t=c,(n=[{key:"initialize",value:function(){this.bindListeners()}},{key:"regions",value:function(){return{optionsList:".option-list-region"}}},{key:"bindListeners",value:function(){this.listenTo(this.channelName,i.i.Filters.OPTION_SELECTED,this.onChangeOption)}},{key:"onChangeOption",value:function(e,t){e&&this.isInclusiveType()&&this.onChangeInclusiveOption(e),e&&this.isExclusiveType()&&this.onChangeExclusiveOption(e),e&&this.isRangeType()&&this.onChangeRangeOption(e),e&&this.isTagType()&&this.onChangeTagOption(e),t||(o.Radio.channel(this.options.channelName).trigger(i.i.Filters.OPTION_SELECTED),this.render())}},{key:"onChangeInclusiveOption",value:function(e){e.set("active",!e.get("active"))}},{key:"onChangeExclusiveOption",value:function(e){p.b.clearOptions(this.model),e.set("active",!0)}},{key:"onChangeRangeOption",value:function(e){p.b.clearOptions(this.model),this.collection.each((function(t){t.get("value")<=e.get("value")&&t.set("active",!0)}))}},{key:"onChangeTagOption",value:function(e){var t=this.collection.findWhere({name:e.get("name")});t.set("active",!t.get("active"))}},{key:"isBooleanType",value:function(){return this.model.get("behavior")===p.a.Boolean}},{key:"isInclusiveType",value:function(){return this.model.get("behavior")===p.a.Inclusive}},{key:"isExclusiveType",value:function(){return this.model.get("behavior")===p.a.Exclusive}},{key:"isRangeType",value:function(){return this.model.get("behavior")===p.a.Range}},{key:"isTagType",value:function(){return this.model.get("behavior")===p.a.Tag}},{key:"getChildComponent",value:function(){return this.model.get("type")===f.a.Duration?Mt:this.isTagType()?cn:this.isRangeType()?wt:this.isBooleanType()?ct:Be}},{key:"renderOptionsList",value:function(){this.showChildView("optionsList",new(this.getChildComponent())({collection:this.collection,model:this.model,channelName:this.channelName,isExclusiveType:this.isExclusiveType()}))}},{key:"onRender",value:function(){this.renderOptionsList()}},{key:"name",get:function(){return"FilterOptionsComponent"}},{key:"template",get:function(){return Ce.a}},{key:"className",get:function(){return"py-1"}},{key:"channelName",get:function(){return"".concat(this.name).concat(this.cid)}}])&&Re(t.prototype,n),r&&Re(t,r),c}(r.a.Component),xe=n(759),je=n.n(xe);function Ne(e){return(Ne="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}function De(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function Ie(e,t){for(var n=0;n<t.length;n++){var o=t[n];o.enumerable=o.enumerable||!1,o.configurable=!0,"value"in o&&(o.writable=!0),Object.defineProperty(e,o.key,o)}}function Me(e,t,n){return t&&Ie(e.prototype,t),n&&Ie(e,n),e}function Le(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),t&&Ve(e,t)}function Ve(e,t){return(Ve=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e})(e,t)}function Ae(e){var t=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(e){return!1}}();return function(){var n,o=qe(e);if(t){var r=qe(this).constructor;n=Reflect.construct(o,arguments,r)}else n=o.apply(this,arguments);return He(this,n)}}function He(e,t){return!t||"object"!==Ne(t)&&"function"!=typeof t?function(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}(e):t}function qe(e){return(qe=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)})(e)}var Be=function(e){Le(n,e);var t=Ae(n);function n(e){return De(this,n),t.call(this,e)}return Me(n,[{key:"regions",value:function(){return{options:".options-region"}}},{key:"events",value:function(){return{"click .default-option":"onClickDefaultOption"}}},{key:"onClickDefaultOption",value:function(e){e.stopPropagation(),this.model.get("behavior")===p.a.Inclusive?p.b.selectAllOptions(this.model):p.b.clearOptions(this.model),o.Radio.channel(this.options.channelName).trigger(i.i.Filters.OPTION_SELECTED),this.render()}},{key:"defaultOptionSelected",value:function(){return this.model.get("behavior")===p.a.Inclusive?p.b.allOptionsSelected(this.model):!p.b.hasOptionSelected(this.model)}},{key:"getInputType",value:function(){return this.options.isExclusiveType?"radio":"checkbox"}},{key:"viewOptions",value:function(){return{inputType:this.getInputType(),defaultOptionSelected:this.defaultOptionSelected(),defaultOptionLabel:this.model.get("defaultOptionLabel")}}},{key:"renderOptions",value:function(){this.showChildView("options",new ze({collection:this.collection,childOptions:{channelName:this.options.channelName,isExclusiveType:this.options.isExclusiveType}}))}},{key:"onRender",value:function(){this.renderOptions()}},{key:"name",get:function(){return"FilterOptionsListComponent"}},{key:"template",get:function(){return je.a}}]),n}(r.a.Component),ze=function(e){Le(n,e);var t=Ae(n);function n(e){return De(this,n),t.call(this,e)}return Me(n,[{key:"name",get:function(){return"FilterOptionComponentCollection"}},{key:"childView",get:function(){return Ze}},{key:"childViewOptions",get:function(){return this.options.childOptions}}]),n}(r.a.ComponentCollection),We=n(760),Qe=n.n(We);function Ue(e){return(Ue="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}function Ge(e,t){for(var n=0;n<t.length;n++){var o=t[n];o.enumerable=o.enumerable||!1,o.configurable=!0,"value"in o&&(o.writable=!0),Object.defineProperty(e,o.key,o)}}function Je(e,t){return(Je=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e})(e,t)}function Ye(e){var t=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(e){return!1}}();return function(){var n,o=$e(e);if(t){var r=$e(this).constructor;n=Reflect.construct(o,arguments,r)}else n=o.apply(this,arguments);return Xe(this,n)}}function Xe(e,t){return!t||"object"!==Ue(t)&&"function"!=typeof t?function(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}(e):t}function $e(e){return($e=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)})(e)}var Ze=function(e){!function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),t&&Je(e,t)}(c,e);var t,n,r,l=Ye(c);function c(e){return function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,c),l.call(this,e)}return t=c,(n=[{key:"initialize",value:function(){this.bindListeners()}},{key:"events",value:function(){return{click:"onClick"}}},{key:"bindListeners",value:function(){this.listenTo(this.model,"change",this.render)}},{key:"onClick",value:function(e){e.stopPropagation(),o.Radio.channel(this.options.channelName).trigger(i.i.Filters.OPTION_SELECTED,this.model)}},{key:"getInputType",value:function(){return this.options.isExclusiveType?"radio":"checkbox"}},{key:"viewOptions",value:function(){return{inputType:this.getInputType()}}},{key:"name",get:function(){return"FilterOptionItemComponent"}},{key:"template",get:function(){return Qe.a}},{key:"className",get:function(){return"filter-option-item py-1 cursor-pointer"}}])&&Ge(t.prototype,n),r&&Ge(t,r),c}(r.a.Component),Ke=n(761),et=n.n(Ke);function tt(e){return(tt="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}function nt(e,t){for(var n=0;n<t.length;n++){var o=t[n];o.enumerable=o.enumerable||!1,o.configurable=!0,"value"in o&&(o.writable=!0),Object.defineProperty(e,o.key,o)}}function ot(e,t){return(ot=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e})(e,t)}function rt(e){var t=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(e){return!1}}();return function(){var n,o=lt(e);if(t){var r=lt(this).constructor;n=Reflect.construct(o,arguments,r)}else n=o.apply(this,arguments);return it(this,n)}}function it(e,t){return!t||"object"!==tt(t)&&"function"!=typeof t?function(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}(e):t}function lt(e){return(lt=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)})(e)}var ct=function(e){!function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),t&&ot(e,t)}(c,e);var t,n,r,l=rt(c);function c(e){return function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,c),l.call(this,e)}return t=c,(n=[{key:"events",value:function(){return{"click .toggle-option":"onClickToggleOption"}}},{key:"onClickToggleOption",value:function(e){e.stopPropagation(),this.model.set("active",!this.model.get("active")),o.Radio.channel(this.options.channelName).trigger(i.i.Filters.OPTION_SELECTED),this.render()}},{key:"viewOptions",value:function(){return{isSelected:this.model.get("active")}}},{key:"name",get:function(){return"BoolFilterOptionComponent"}},{key:"template",get:function(){return et.a}}])&&nt(t.prototype,n),r&&nt(t,r),c}(r.a.Component),at=n(762),ut=n.n(at),st=n(763),ft=n.n(st);function pt(e){return(pt="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}function ht(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function yt(e,t){for(var n=0;n<t.length;n++){var o=t[n];o.enumerable=o.enumerable||!1,o.configurable=!0,"value"in o&&(o.writable=!0),Object.defineProperty(e,o.key,o)}}function dt(e,t,n){return t&&yt(e.prototype,t),n&&yt(e,n),e}function gt(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),t&&mt(e,t)}function mt(e,t){return(mt=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e})(e,t)}function vt(e){var t=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(e){return!1}}();return function(){var n,o=kt(e);if(t){var r=kt(this).constructor;n=Reflect.construct(o,arguments,r)}else n=o.apply(this,arguments);return bt(this,n)}}function bt(e,t){return!t||"object"!==pt(t)&&"function"!=typeof t?function(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}(e):t}function kt(e){return(kt=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)})(e)}var wt=function(e){gt(n,e);var t=vt(n);function n(){return ht(this,n),t.apply(this,arguments)}return dt(n,[{key:"name",get:function(){return"RatingFilterOptionComponentCollection"}},{key:"className",get:function(){return"btn-group ".concat(ft.a.options," py-2")}},{key:"attributes",get:function(){return{role:"group"}}},{key:"childView",get:function(){return Ot}},{key:"childViewOptions",get:function(){return{channelName:this.options.channelName}}}]),n}(r.a.ComponentCollection),Ot=function(e){gt(n,e);var t=vt(n);function n(){return ht(this,n),t.apply(this,arguments)}return dt(n,[{key:"events",value:function(){return{click:"onClick"}}},{key:"onClick",value:function(e){e.stopPropagation(),o.Radio.channel(this.options.channelName).trigger(i.i.Filters.OPTION_SELECTED,this.model)}},{key:"isSelected",value:function(){return this.model.get("active")}},{key:"onRender",value:function(){this.$el.tooltip()}},{key:"onBeforeDestroy",value:function(){this.$el.tooltip("dispose")}},{key:"name",get:function(){return"RatingFilterOptionItemComponent"}},{key:"template",get:function(){return ut.a}},{key:"tagName",get:function(){return"button"}},{key:"className",get:function(){var e="".concat(ft.a.option," border btn btn-");return this.isSelected()?"".concat(e,"info"):"".concat(e,"light")}},{key:"attributes",get:function(){return{type:"button",title:this.model.get("fullName")}}}]),n}(r.a.Component),Ct=n(764),St=n.n(Ct),Rt=n(765),_t=n.n(Rt);function Et(e){return(Et="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}function Ft(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function Tt(e,t){for(var n=0;n<t.length;n++){var o=t[n];o.enumerable=o.enumerable||!1,o.configurable=!0,"value"in o&&(o.writable=!0),Object.defineProperty(e,o.key,o)}}function Pt(e,t,n){return t&&Tt(e.prototype,t),n&&Tt(e,n),e}function xt(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),t&&jt(e,t)}function jt(e,t){return(jt=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e})(e,t)}function Nt(e){var t=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(e){return!1}}();return function(){var n,o=It(e);if(t){var r=It(this).constructor;n=Reflect.construct(o,arguments,r)}else n=o.apply(this,arguments);return Dt(this,n)}}function Dt(e,t){return!t||"object"!==Et(t)&&"function"!=typeof t?function(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}(e):t}function It(e){return(It=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)})(e)}var Mt=function(e){xt(n,e);var t=Nt(n);function n(){return Ft(this,n),t.apply(this,arguments)}return Pt(n,[{key:"getOptionItemClassName",value:function(){var e=_t.a.optionItem;return 4===this.collection.length&&(e+=" ".concat(_t.a.customOptionItem)),e}},{key:"name",get:function(){return"DurationFilterOptionComponentCollection"}},{key:"childView",get:function(){return Lt}},{key:"className",get:function(){return _t.a.options}},{key:"childViewOptions",get:function(){return{channelName:this.options.channelName,optionItemClassName:this.getOptionItemClassName()}}}]),n}(r.a.ComponentCollection),Lt=function(e){xt(n,e);var t=Nt(n);function n(e){return Ft(this,n),t.call(this,e)}return Pt(n,[{key:"events",value:function(){return{"click .option-btn":"onClickOption"}}},{key:"viewOptions",value:function(){return{buttonClass:this.getButtonClass()}}},{key:"onClickOption",value:function(e){e.stopPropagation(),o.Radio.channel(this.options.channelName).trigger(i.i.Filters.OPTION_SELECTED,this.model)}},{key:"isSelected",value:function(){return this.model.get("active")}},{key:"getButtonClass",value:function(){var e="btn ".concat(_t.a.optionButton," p-1");return this.isSelected()?e+=" btn-info":e+=" btn-light",e}},{key:"name",get:function(){return"DurationFilterItemComponent"}},{key:"template",get:function(){return St.a}},{key:"className",get:function(){return"d-inline-block p-1 ".concat(this.options.optionItemClassName)}}]),n}(r.a.Component),Vt=n(1),At=n(105),Ht=n(766),qt=n.n(Ht),Bt=n(767),zt=n.n(Bt),Wt=n(692),Qt=n(768),Ut=n.n(Qt);function Gt(e){return(Gt="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}function Jt(e,t){for(var n=0;n<t.length;n++){var o=t[n];o.enumerable=o.enumerable||!1,o.configurable=!0,"value"in o&&(o.writable=!0),Object.defineProperty(e,o.key,o)}}function Yt(e,t){return(Yt=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e})(e,t)}function Xt(e){var t=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(e){return!1}}();return function(){var n,o=Zt(e);if(t){var r=Zt(this).constructor;n=Reflect.construct(o,arguments,r)}else n=o.apply(this,arguments);return $t(this,n)}}function $t(e,t){return!t||"object"!==Gt(t)&&"function"!=typeof t?function(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}(e):t}function Zt(e){return(Zt=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)})(e)}var Kt=function(e){!function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),t&&Yt(e,t)}(i,e);var t,n,o,r=Xt(i);function i(e){return function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,i),r.call(this,e)}return t=i,(n=[{key:"regions",value:function(){return{tags:{el:".tags-region",replaceElement:!0,partialLoading:l.j.TagFilter}}}},{key:"onBeforeRender",value:function(){return!Vt.isNull(this.collection)}},{key:"onRender",value:function(){this.showChildView("tags",new Wt.a({collection:this.collection,channelName:this.options.channelName,behavior:this.options.behavior,removeEvent:this.options.removeEvent,clickEvent:this.options.clickEvent}))}},{key:"name",get:function(){return"TagFilterOptionsListComponent"}},{key:"template",get:function(){return Ut.a}}])&&Jt(t.prototype,n),o&&Jt(t,o),i}(r.a.Component);function en(e){return(en="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}function tn(e,t){for(var n=0;n<t.length;n++){var o=t[n];o.enumerable=o.enumerable||!1,o.configurable=!0,"value"in o&&(o.writable=!0),Object.defineProperty(e,o.key,o)}}function nn(e,t){return(nn=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e})(e,t)}function on(e){var t=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(e){return!1}}();return function(){var n,o=ln(e);if(t){var r=ln(this).constructor;n=Reflect.construct(o,arguments,r)}else n=o.apply(this,arguments);return rn(this,n)}}function rn(e,t){return!t||"object"!==en(t)&&"function"!=typeof t?function(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}(e):t}function ln(e){return(ln=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)})(e)}var cn=function(e){!function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),t&&nn(e,t)}(c,e);var t,n,r,l=on(c);function c(e){return function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,c),l.call(this,e)}return t=c,(n=[{key:"initialize",value:function(){this.bindListeners(),this.setRelevantTags()}},{key:"regions",value:function(){return{selectedTags:{el:".selected-tags-region",replaceElement:!0},relevantTags:{el:".relevant-tags-region",replaceElement:!0}}}},{key:"bindListeners",value:function(){this.listenTo(this.channelName,"on:option:change",this.onChange)}},{key:"onChange",value:function(e){o.Radio.channel(this.options.channelName).trigger(i.i.Filters.OPTION_SELECTED,e,!0),o.Radio.channel(h.a.TagFilter).trigger("change:relevant:tags"),this.relevantTags=null,this.render()}},{key:"setRelevantTags",value:function(){var e=p.b.getSelectedOptions(this.collection).map((function(e){return e.get("id")}));this.collection.length!==e.length?this.relevantTags=new M.b(this.collection.filter((function(t){return!Vt.contains(e,t.get("id"))})).slice(0,5)):this.relevantTags=null}},{key:"hasSelectedTags",value:function(){var e=p.b.getSelectedOptions(this.collection);return e&&!!e.length}},{key:"hasRelevantTags",value:function(){return Vt.isNull(this.relevantTags)||this.relevantTags&&!!this.relevantTags.length}},{key:"renderSelectedTags",value:function(){if(this.hasSelectedTags()){var e=p.b.getSelectedOptions(this.collection);this.showChildView("selectedTags",new Kt({collection:e,channelName:this.channelName,behavior:At.c.Filter,removeEvent:"on:option:change"}))}}},{key:"renderRelevantTags",value:function(){this.showChildView("relevantTags",new Kt({collection:this.relevantTags,channelName:this.channelName,behavior:At.c.Filter,clickEvent:"on:option:change"}))}},{key:"viewOptions",value:function(){return{showEmptyState:!this.hasSelectedTags()&&!this.hasRelevantTags(),useDivider:this.hasSelectedTags()&&this.hasRelevantTags()}}},{key:"onRender",value:function(){this.renderSelectedTags(),this.renderRelevantTags()}},{key:"name",get:function(){return"TagFilterOptionsComponent"}},{key:"template",get:function(){return zt.a}},{key:"lang",get:function(){return"search.tagFilterOptions"}},{key:"className",get:function(){return"".concat(qt.a.container)}},{key:"channelName",get:function(){return"".concat(this.name).concat(this.cid)}}])&&tn(t.prototype,n),r&&tn(t,r),c}(r.a.Component);n.d(t,"f",(function(){return re})),n.d(t,"b",(function(){return fe})),n.d(t,"a",(function(){return we})),n.d(t,"d",(function(){return Pe})),n.d(t,"e",(function(){return Be})),n.d(t,"c",(function(){return Ze}))},939:function(e,t,n){var o=n(8);e.exports=(o.default||o).template({compiler:[8,">= 4.3.0"],main:function(e,t,n,o,r){e.propertyIsEnumerable;return"<h3>"+e.escapeExpression((n.lang||t&&t.lang||e.hooks.helperMissing).call(null!=t?t:e.nullContext||{},"header",{name:"lang",hash:{},data:r}))+'</h3>\r\n<div class="filters-region"></div>'},useData:!0})},940:function(e,t,n){var o=n(8);e.exports=(o.default||o).template({compiler:[8,">= 4.3.0"],main:function(e,t,n,o,r){return'<div class="results-region"></div>'},useData:!0})},941:function(e,t,n){var o=n(8);e.exports=(o.default||o).template({compiler:[8,">= 4.3.0"],main:function(e,t,n,o,r){return'<div class="header-region"></div>\r\n<div class="results-region"></div>\r\n<div class="pagination-region"></div>'},useData:!0})}}]);
@@ -1,354 +0,0 @@
1
- (window["webpackJsonp_clickview_library_editor"] = window["webpackJsonp_clickview_library_editor"] || []).push([[22],{
2
-
3
- /***/ "./src/apps/library-editor/components/edit-video-tabs/EditVideoTabs.hbs":
4
- /*!******************************************************************************!*\
5
- !*** ./src/apps/library-editor/components/edit-video-tabs/EditVideoTabs.hbs ***!
6
- \******************************************************************************/
7
- /*! no static exports found */
8
- /***/ (function(module, exports, __webpack_require__) {
9
-
10
- var Handlebars = __webpack_require__(/*! handlebars */ "handlebars");
11
- module.exports = (Handlebars['default'] || Handlebars).template({"compiler":[8,">= 4.3.0"],"main":function(container,depth0,helpers,partials,data) {
12
- var stack1, alias1=container.propertyIsEnumerable, alias2=container.lambda, alias3=container.escapeExpression;
13
-
14
- return "<div class=\"row\">\r\n <h4>\r\n <a class=\"d-inline-flex align-items-center "
15
- + alias3(alias2(((stack1 = ((stack1 = (depth0 != null ? depth0.options : depth0)) != null ? stack1.styles : stack1)) != null ? stack1.link : stack1), depth0))
16
- + " "
17
- + alias3(alias2(((stack1 = ((stack1 = (depth0 != null ? depth0.options : depth0)) != null ? stack1.backTab : stack1)) != null ? stack1.link : stack1), depth0))
18
- + "\">\r\n <span class=\""
19
- + alias3(alias2(((stack1 = ((stack1 = (depth0 != null ? depth0.options : depth0)) != null ? stack1.styles : stack1)) != null ? stack1.svgContainer : stack1), depth0))
20
- + " d-inline-block mx-2\">"
21
- + ((stack1 = alias2(((stack1 = (depth0 != null ? depth0.options : depth0)) != null ? stack1.backArrow : stack1), depth0)) != null ? stack1 : "")
22
- + "</span>\r\n "
23
- + alias3(alias2(((stack1 = ((stack1 = (depth0 != null ? depth0.options : depth0)) != null ? stack1.backTab : stack1)) != null ? stack1.name : stack1), depth0))
24
- + "\r\n </a>\r\n </h4>\r\n</div>\r\n<div class=\"tabs-region pl-2\"></div>";
25
- },"useData":true});
26
-
27
- /***/ }),
28
-
29
- /***/ "./src/apps/library-editor/components/edit-video-tabs/EditVideoTabsComponent.ts":
30
- /*!**************************************************************************************!*\
31
- !*** ./src/apps/library-editor/components/edit-video-tabs/EditVideoTabsComponent.ts ***!
32
- \**************************************************************************************/
33
- /*! exports provided: EditVideoTabsComponent */
34
- /***/ (function(module, __webpack_exports__, __webpack_require__) {
35
-
36
- "use strict";
37
- __webpack_require__.r(__webpack_exports__);
38
- /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "EditVideoTabsComponent", function() { return EditVideoTabsComponent; });
39
- /* harmony import */ var backbone__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! backbone */ "backbone");
40
- /* harmony import */ var backbone__WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(backbone__WEBPACK_IMPORTED_MODULE_0__);
41
- /* harmony import */ var _libs_common_src_backbone__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! ../../../../../../../libs/common/src/backbone */ "../../libs/common/src/backbone/index.ts");
42
- /* harmony import */ var _libs_shared_src_utils_SvgHelper__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! ../../../../../../../libs/shared/src/utils/SvgHelper */ "../../libs/shared/src/utils/SvgHelper.ts");
43
- /* harmony import */ var _edit_video_tabs_scss__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! ./edit-video-tabs.scss */ "./src/apps/library-editor/components/edit-video-tabs/edit-video-tabs.scss");
44
- /* harmony import */ var _edit_video_tabs_scss__WEBPACK_IMPORTED_MODULE_3___default = /*#__PURE__*/__webpack_require__.n(_edit_video_tabs_scss__WEBPACK_IMPORTED_MODULE_3__);
45
- /* harmony import */ var _EditVideoTabs_hbs__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(/*! ./EditVideoTabs.hbs */ "./src/apps/library-editor/components/edit-video-tabs/EditVideoTabs.hbs");
46
- /* harmony import */ var _EditVideoTabs_hbs__WEBPACK_IMPORTED_MODULE_4___default = /*#__PURE__*/__webpack_require__.n(_EditVideoTabs_hbs__WEBPACK_IMPORTED_MODULE_4__);
47
- /* harmony import */ var _shared_constants__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__(/*! ../../../../shared/constants */ "./src/shared/constants/index.ts");
48
- /* harmony import */ var _shared_components_tabs_TabsComponent__WEBPACK_IMPORTED_MODULE_6__ = __webpack_require__(/*! ../../../../shared/components/tabs/TabsComponent */ "./src/shared/components/tabs/TabsComponent.ts");
49
- 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); }
50
-
51
- function _defineProperty(obj, key, value) { if (key in obj) { Object.defineProperty(obj, key, { value: value, enumerable: true, configurable: true, writable: true }); } else { obj[key] = value; } return obj; }
52
-
53
- function _classCallCheck(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError("Cannot call a class as a function"); } }
54
-
55
- 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); } }
56
-
57
- function _createClass(Constructor, protoProps, staticProps) { if (protoProps) _defineProperties(Constructor.prototype, protoProps); if (staticProps) _defineProperties(Constructor, staticProps); return Constructor; }
58
-
59
- 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); }
60
-
61
- function _setPrototypeOf(o, p) { _setPrototypeOf = Object.setPrototypeOf || function _setPrototypeOf(o, p) { o.__proto__ = p; return o; }; return _setPrototypeOf(o, p); }
62
-
63
- 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); }; }
64
-
65
- function _possibleConstructorReturn(self, call) { if (call && (_typeof(call) === "object" || typeof call === "function")) { return call; } return _assertThisInitialized(self); }
66
-
67
- function _assertThisInitialized(self) { if (self === void 0) { throw new ReferenceError("this hasn't been initialised - super() hasn't been called"); } return self; }
68
-
69
- 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; } }
70
-
71
- function _getPrototypeOf(o) { _getPrototypeOf = Object.setPrototypeOf ? Object.getPrototypeOf : function _getPrototypeOf(o) { return o.__proto__ || Object.getPrototypeOf(o); }; return _getPrototypeOf(o); }
72
-
73
-
74
-
75
-
76
-
77
-
78
-
79
-
80
- var EditVideoTabsComponent = /*#__PURE__*/function (_Core$Component) {
81
- _inherits(EditVideoTabsComponent, _Core$Component);
82
-
83
- var _super = _createSuper(EditVideoTabsComponent);
84
-
85
- function EditVideoTabsComponent(options) {
86
- _classCallCheck(this, EditVideoTabsComponent);
87
-
88
- return _super.call(this, options);
89
- }
90
-
91
- _createClass(EditVideoTabsComponent, [{
92
- key: "regions",
93
- value: function regions() {
94
- return {
95
- tabs: {
96
- el: '.tabs-region',
97
- replaceElement: true
98
- }
99
- };
100
- }
101
- }, {
102
- key: "viewOptions",
103
- value: function viewOptions() {
104
- var backTab = Object.assign(Object.assign({}, this.options.goBackTab), {
105
- link: this.options.goBackTab.link.selector.replace('.', '')
106
- });
107
- return {
108
- styles: _edit_video_tabs_scss__WEBPACK_IMPORTED_MODULE_3___default.a,
109
- backTab: backTab,
110
- backArrow: _libs_shared_src_utils_SvgHelper__WEBPACK_IMPORTED_MODULE_2__["SvgHelper"].getSvg(_libs_shared_src_utils_SvgHelper__WEBPACK_IMPORTED_MODULE_2__["cvSvgLibrary"].ArrowLeft)
111
- };
112
- }
113
- /**
114
- * On save trigger save event which the active view can listen to
115
- */
116
-
117
- }, {
118
- key: "onSave",
119
- value: function onSave() {
120
- /**
121
- * TODO: This shouldn't be on the library editor application channel
122
- */
123
- var libraryEditorChannel = backbone__WEBPACK_IMPORTED_MODULE_0__["Radio"].channel(_shared_constants__WEBPACK_IMPORTED_MODULE_5__["AppChannels"].LIBRARY_EDITOR);
124
- /**
125
- * TODO: SAVE_VIDEO shouldnt be an action it should be an eventname
126
- */
127
-
128
- libraryEditorChannel.trigger(_shared_constants__WEBPACK_IMPORTED_MODULE_5__["Actions"].LibraryEditor.SAVE_VIDEO);
129
- }
130
- }, {
131
- key: "onRender",
132
- value: function onRender() {
133
- this.showChildView('tabs', new _shared_components_tabs_TabsComponent__WEBPACK_IMPORTED_MODULE_6__["TabsComponent"]({
134
- tabs: this.options.tabs,
135
- activeTab: this.options.activeTab
136
- }));
137
- }
138
- }, {
139
- key: "name",
140
- get: function get() {
141
- return 'EditVideoTabsComponent';
142
- }
143
- }, {
144
- key: "className",
145
- get: function get() {
146
- return 'bg-white';
147
- }
148
- }, {
149
- key: "template",
150
- get: function get() {
151
- return _EditVideoTabs_hbs__WEBPACK_IMPORTED_MODULE_4___default.a;
152
- }
153
- }, {
154
- key: "appLinks",
155
- get: function get() {
156
- var link = this.options.goBackTab.link;
157
- return _defineProperty({}, link.selector, link.appLink);
158
- }
159
- }]);
160
-
161
- return EditVideoTabsComponent;
162
- }(_libs_common_src_backbone__WEBPACK_IMPORTED_MODULE_1__["Core"].Component);
163
-
164
- /***/ }),
165
-
166
- /***/ "./src/apps/library-editor/components/edit-video-tabs/edit-video-tabs.scss":
167
- /*!*********************************************************************************!*\
168
- !*** ./src/apps/library-editor/components/edit-video-tabs/edit-video-tabs.scss ***!
169
- \*********************************************************************************/
170
- /*! no static exports found */
171
- /***/ (function(module, exports, __webpack_require__) {
172
-
173
- // extracted by mini-css-extract-plugin
174
- module.exports = {"svgContainer":"cv--svgContainer--27gR6"};
175
-
176
- /***/ }),
177
-
178
- /***/ "./src/shared/components/tabs/Tabs.hbs":
179
- /*!*********************************************!*\
180
- !*** ./src/shared/components/tabs/Tabs.hbs ***!
181
- \*********************************************/
182
- /*! no static exports found */
183
- /***/ (function(module, exports, __webpack_require__) {
184
-
185
- var Handlebars = __webpack_require__(/*! handlebars */ "handlebars");
186
- module.exports = (Handlebars['default'] || Handlebars).template({"1":function(container,depth0,helpers,partials,data,blockParams,depths) {
187
- var stack1, alias1=container.propertyIsEnumerable;
188
-
189
- return ((stack1 = helpers.unless.call(depth0 != null ? depth0 : (container.nullContext || {}),(depth0 != null ? depth0.hide : depth0),{"name":"unless","hash":{},"fn":container.program(2, data, 0, blockParams, depths),"inverse":container.noop,"data":data})) != null ? stack1 : "");
190
- },"2":function(container,depth0,helpers,partials,data,blockParams,depths) {
191
- var stack1, alias1=container.propertyIsEnumerable, alias2=container.lambda, alias3=container.escapeExpression;
192
-
193
- return " <a class=\""
194
- + alias3(alias2(((stack1 = ((stack1 = (depths[1] != null ? depths[1].options : depths[1])) != null ? stack1.styles : stack1)) != null ? stack1.link : stack1), depth0))
195
- + " p-2 "
196
- + alias3(alias2((depth0 != null ? depth0.link : depth0), depth0))
197
- + " "
198
- + ((stack1 = helpers["if"].call(depth0 != null ? depth0 : (container.nullContext || {}),(depth0 != null ? depth0.active : depth0),{"name":"if","hash":{},"fn":container.program(3, data, 0, blockParams, depths),"inverse":container.noop,"data":data})) != null ? stack1 : "")
199
- + "\">"
200
- + alias3(alias2((depth0 != null ? depth0.name : depth0), depth0))
201
- + "</a>\r\n";
202
- },"3":function(container,depth0,helpers,partials,data,blockParams,depths) {
203
- var stack1, alias1=container.propertyIsEnumerable;
204
-
205
- return container.escapeExpression(container.lambda(((stack1 = ((stack1 = (depths[1] != null ? depths[1].options : depths[1])) != null ? stack1.styles : stack1)) != null ? stack1.active : stack1), depth0))
206
- + " border-bottom border-primary text-primary";
207
- },"compiler":[8,">= 4.3.0"],"main":function(container,depth0,helpers,partials,data,blockParams,depths) {
208
- var stack1, alias1=container.propertyIsEnumerable;
209
-
210
- return ((stack1 = helpers.each.call(depth0 != null ? depth0 : (container.nullContext || {}),((stack1 = (depth0 != null ? depth0.options : depth0)) != null ? stack1.tabs : stack1),{"name":"each","hash":{},"fn":container.program(1, data, 0, blockParams, depths),"inverse":container.noop,"data":data})) != null ? stack1 : "");
211
- },"useData":true,"useDepths":true});
212
-
213
- /***/ }),
214
-
215
- /***/ "./src/shared/components/tabs/TabsComponent.ts":
216
- /*!*****************************************************!*\
217
- !*** ./src/shared/components/tabs/TabsComponent.ts ***!
218
- \*****************************************************/
219
- /*! exports provided: TabsComponent */
220
- /***/ (function(module, __webpack_exports__, __webpack_require__) {
221
-
222
- "use strict";
223
- __webpack_require__.r(__webpack_exports__);
224
- /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "TabsComponent", function() { return TabsComponent; });
225
- /* harmony import */ var underscore__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! underscore */ "underscore");
226
- /* harmony import */ var underscore__WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(underscore__WEBPACK_IMPORTED_MODULE_0__);
227
- /* harmony import */ var _libs_common_src_backbone__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! ../../../../../../libs/common/src/backbone */ "../../libs/common/src/backbone/index.ts");
228
- /* harmony import */ var _tabs_scss__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! ./tabs.scss */ "./src/shared/components/tabs/tabs.scss");
229
- /* harmony import */ var _tabs_scss__WEBPACK_IMPORTED_MODULE_2___default = /*#__PURE__*/__webpack_require__.n(_tabs_scss__WEBPACK_IMPORTED_MODULE_2__);
230
- /* harmony import */ var _Tabs_hbs__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! ./Tabs.hbs */ "./src/shared/components/tabs/Tabs.hbs");
231
- /* harmony import */ var _Tabs_hbs__WEBPACK_IMPORTED_MODULE_3___default = /*#__PURE__*/__webpack_require__.n(_Tabs_hbs__WEBPACK_IMPORTED_MODULE_3__);
232
- 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); }
233
-
234
- function _classCallCheck(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError("Cannot call a class as a function"); } }
235
-
236
- 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); } }
237
-
238
- function _createClass(Constructor, protoProps, staticProps) { if (protoProps) _defineProperties(Constructor.prototype, protoProps); if (staticProps) _defineProperties(Constructor, staticProps); return Constructor; }
239
-
240
- 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); }
241
-
242
- function _setPrototypeOf(o, p) { _setPrototypeOf = Object.setPrototypeOf || function _setPrototypeOf(o, p) { o.__proto__ = p; return o; }; return _setPrototypeOf(o, p); }
243
-
244
- 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); }; }
245
-
246
- function _possibleConstructorReturn(self, call) { if (call && (_typeof(call) === "object" || typeof call === "function")) { return call; } return _assertThisInitialized(self); }
247
-
248
- function _assertThisInitialized(self) { if (self === void 0) { throw new ReferenceError("this hasn't been initialised - super() hasn't been called"); } return self; }
249
-
250
- 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; } }
251
-
252
- function _getPrototypeOf(o) { _getPrototypeOf = Object.setPrototypeOf ? Object.getPrototypeOf : function _getPrototypeOf(o) { return o.__proto__ || Object.getPrototypeOf(o); }; return _getPrototypeOf(o); }
253
-
254
-
255
-
256
-
257
-
258
- var TabsComponent = /*#__PURE__*/function (_Core$Component) {
259
- _inherits(TabsComponent, _Core$Component);
260
-
261
- var _super = _createSuper(TabsComponent);
262
-
263
- function TabsComponent(options) {
264
- _classCallCheck(this, TabsComponent);
265
-
266
- return _super.call(this, options);
267
- }
268
-
269
- _createClass(TabsComponent, [{
270
- key: "viewOptions",
271
- value: function viewOptions() {
272
- var tabs = this.options.tabs;
273
- var pageTabs = tabs.map(function (tab) {
274
- return Object.assign(Object.assign({}, tab), {
275
- link: tab.link.selector.replace('.', '')
276
- });
277
- });
278
- return {
279
- styles: _tabs_scss__WEBPACK_IMPORTED_MODULE_2___default.a,
280
- tabs: pageTabs
281
- };
282
- }
283
- }, {
284
- key: "setActiveTab",
285
- value: function setActiveTab() {
286
- var _this = this;
287
-
288
- // Find active applink and set it as active if exists, or set first tab as active
289
- var found = false;
290
- this.options.tabs.forEach(function (t) {
291
- // First reset all tabs to not active
292
- t.active = false;
293
- if (t.link.selector !== _this.options.activeTab) return;
294
- t.active = true;
295
- found = true;
296
- });
297
- if (found) return;
298
-
299
- var firstTab = underscore__WEBPACK_IMPORTED_MODULE_0__["first"](this.options.tabs);
300
-
301
- if (firstTab) firstTab.active = true;
302
- }
303
- }, {
304
- key: "onBeforeRender",
305
- value: function onBeforeRender() {
306
- this.setActiveTab();
307
- }
308
- }, {
309
- key: "name",
310
- get: function get() {
311
- return 'TabsView';
312
- }
313
- }, {
314
- key: "className",
315
- get: function get() {
316
- var className = 'bg-white py-2 border-bottom';
317
- if (this.options.className) className += " ".concat(this.options.className);
318
- return className;
319
- }
320
- }, {
321
- key: "template",
322
- get: function get() {
323
- return _Tabs_hbs__WEBPACK_IMPORTED_MODULE_3___default.a;
324
- }
325
- }, {
326
- key: "appLinks",
327
- get: function get() {
328
- var links = {};
329
- this.options.tabs.forEach(function (tab) {
330
- return links[tab.link.selector] = tab.link.appLink;
331
- });
332
- return links;
333
- }
334
- }]);
335
-
336
- return TabsComponent;
337
- }(_libs_common_src_backbone__WEBPACK_IMPORTED_MODULE_1__["Core"].Component);
338
-
339
- /***/ }),
340
-
341
- /***/ "./src/shared/components/tabs/tabs.scss":
342
- /*!**********************************************!*\
343
- !*** ./src/shared/components/tabs/tabs.scss ***!
344
- \**********************************************/
345
- /*! no static exports found */
346
- /***/ (function(module, exports, __webpack_require__) {
347
-
348
- // extracted by mini-css-extract-plugin
349
- module.exports = {"link":"cv--link--5idZs","active":"cv--active--3Ty4M"};
350
-
351
- /***/ })
352
-
353
- }]);
354
- //# sourceMappingURL=22.chunk.js.map
@@ -1 +0,0 @@
1
- {"version":3,"sources":["file://C:/ClickView Projects/@clickview/packages/projects/library-editor/src/apps/library-editor/components/edit-video-tabs/EditVideoTabs.hbs","file://C:/ClickView Projects/@clickview/packages/projects/library-editor/src/apps/library-editor/components/edit-video-tabs/EditVideoTabsComponent.ts","webpack://@clickview/library-editor/./src/apps/library-editor/components/edit-video-tabs/edit-video-tabs.scss?b099","file://C:/ClickView Projects/@clickview/packages/projects/library-editor/src/shared/components/tabs/Tabs.hbs","file://C:/ClickView Projects/@clickview/packages/projects/library-editor/src/shared/components/tabs/TabsComponent.ts","webpack://@clickview/library-editor/./src/shared/components/tabs/tabs.scss?41c9"],"names":[],"mappings":";;;;;;;;;AAAA,iBAAiB,mBAAO,CAAC,8BAAY;AACrC,iEAAiE;AACjE;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,CAAC,gBAAgB,E;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;ACdjB;AAEA;AACA;AAEA;AACA;AACA;AACA;AAQO,IAAM,sBAAb;AAAA;;AAAA;;AAGE,kCAAY,OAAZ,EAAkD;AAAA;;AAAA,6BAC1C,OAD0C;AAEjD;;AALH;AAAA;AAAA,8BAcgB;AACZ,aAAO;AACL,YAAI,EAAE;AACJ,YAAE,EAAE,cADA;AAEJ,wBAAc,EAAE;AAFZ;AADD,OAAP;AAMD;AArBH;AAAA;AAAA,kCAmCoB;AAChB,UAAM,OAAO,mCACR,KAAK,OAAL,CAAa,SADL,GACc;AACzB,YAAI,EAAE,KAAK,OAAL,CAAa,SAAb,CAAuB,IAAvB,CAA4B,QAA5B,CAAqC,OAArC,CAA6C,GAA7C,EAAkD,EAAlD;AADmB,OADd,CAAb;AAKA,aAAO;AACL,cAAM,EAAN,4DADK;AAEL,eAAO,EAAP,OAFK;AAGL,iBAAS,EAAE,0EAAS,CAAC,MAAV,CAAiB,6EAAY,CAAC,SAA9B;AAHN,OAAP;AAKD;AAED;;;;AAhDF;AAAA;AAAA,6BAmDgB;AACZ;;;AAGA,UAAM,oBAAoB,GAAG,8CAAK,CAAC,OAAN,CAAc,6DAAW,CAAC,cAA1B,CAA7B;AAEA;;;;AAGA,0BAAoB,CAAC,OAArB,CAA6B,yDAAO,CAAC,aAAR,CAAsB,UAAnD;AACD;AA7DH;AAAA;AAAA,+BA+DiB;AACb,WAAK,aAAL,CAAmB,MAAnB,EAA2B,IAAI,mFAAJ,CAAkB;AAC3C,YAAI,EAAE,KAAK,OAAL,CAAa,IADwB;AAE3C,iBAAS,EAAE,KAAK,OAAL,CAAa;AAFmB,OAAlB,CAA3B;AAID;AApEH;AAAA;AAAA,wBAMiB;AACb,aAAO,wBAAP;AACD;AARH;AAAA;AAAA,wBAUsB;AAClB,aAAO,UAAP;AACD;AAZH;AAAA;AAAA,wBAuBqB;AACjB,aAAO,yDAAP;AACD;AAzBH;AAAA;AAAA,wBA2BqB;AACjB,UAAM,IAAI,GAAG,KAAK,OAAL,CAAa,SAAb,CAAuB,IAApC;AAEA,iCACG,IAAI,CAAC,QADR,EACmB,IAAI,CAAC,OADxB;AAGD;AAjCH;;AAAA;AAAA,EAA4C,8DAAI,CAAC,SAAjD,E;;;;;;;;;;;ACjBA;AACA,kBAAkB,0C;;;;;;;;;;;ACDlB,iBAAiB,mBAAO,CAAC,8BAAY;AACrC,iEAAiE;AACjE;;AAEA,8FAA8F,2CAA2C,yBAAyB,8FAA8F;AAChQ,CAAC;AACD;;AAEA;AACA;AACA;AACA;AACA;AACA,0FAA0F,6CAA6C,qBAAqB,8FAA8F;AAC1P;AACA;AACA;AACA,CAAC;AACD;;AAEA;AACA;AACA,CAAC;AACD;;AAEA,4FAA4F,0FAA0F,uBAAuB,8FAA8F;AAC3S,CAAC,iCAAiC,E;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AC1BlC;AAGA;AAEA;AACA;AAmBO,IAAM,aAAb;AAAA;;AAAA;;AAGE,yBAAY,OAAZ,EAAyC;AAAA;;AAAA,6BACjC,OADiC;AAExC;;AALH;AAAA;AAAA,kCAgCoB;AAAA,UACR,IADQ,GACC,KAAK,OADN,CACR,IADQ;AAGhB,UAAM,QAAQ,GAAG,IAAI,CAAC,GAAL,CAAS,UAAC,GAAD,EAAa;AACrC,+CACK,GADL,GACQ;AACN,cAAI,EAAE,GAAG,CAAC,IAAJ,CAAS,QAAT,CAAkB,OAAlB,CAA0B,GAA1B,EAA+B,EAA/B;AADA,SADR;AAID,OALgB,CAAjB;AAOA,aAAO;AACL,cAAM,EAAN,iDADK;AAEL,YAAI,EAAE;AAFD,OAAP;AAID;AA9CH;AAAA;AAAA,mCAgDsB;AAAA;;AAClB;AACA,UAAI,KAAK,GAAG,KAAZ;AAEA,WAAK,OAAL,CAAa,IAAb,CAAkB,OAAlB,CAA0B,UAAC,CAAD,EAAW;AACnC;AACA,SAAC,CAAC,MAAF,GAAW,KAAX;AAEA,YAAI,CAAC,CAAC,IAAF,CAAO,QAAP,KAAoB,KAAI,CAAC,OAAL,CAAa,SAArC,EACE;AAEF,SAAC,CAAC,MAAF,GAAW,IAAX;AACA,aAAK,GAAG,IAAR;AACD,OATD;AAWA,UAAI,KAAJ,EACE;;AAEF,UAAM,QAAQ,GAAG,iDAAQ,KAAK,OAAL,CAAa,IAArB,CAAjB;;AAEA,UAAI,QAAJ,EACE,QAAQ,CAAC,MAAT,GAAkB,IAAlB;AACH;AAtEH;AAAA;AAAA,qCAwEuB;AACnB,WAAK,YAAL;AACD;AA1EH;AAAA;AAAA,wBAOiB;AACb,aAAO,UAAP;AACD;AATH;AAAA;AAAA,wBAWsB;AAClB,UAAI,SAAS,GAAG,6BAAhB;AAEA,UAAI,KAAK,OAAL,CAAa,SAAjB,EACE,SAAS,eAAQ,KAAK,OAAL,CAAa,SAArB,CAAT;AAEF,aAAO,SAAP;AACD;AAlBH;AAAA;AAAA,wBAoBqB;AACjB,aAAO,gDAAP;AACD;AAtBH;AAAA;AAAA,wBAwBqB;AACjB,UAAM,KAAK,GAAiC,EAA5C;AAEA,WAAK,OAAL,CAAa,IAAb,CAAkB,OAAlB,CAA0B,UAAC,GAAD;AAAA,eAAc,KAAK,CAAC,GAAG,CAAC,IAAJ,CAAS,QAAV,CAAL,GAA2B,GAAG,CAAC,IAAJ,CAAS,OAAlD;AAAA,OAA1B;AAEA,aAAO,KAAP;AACD;AA9BH;;AAAA;AAAA,EAAmC,8DAAI,CAAC,SAAxC,E;;;;;;;;;;;ACzBA;AACA,kBAAkB,uD","file":"scripts/22.chunk.js","sourcesContent":["var Handlebars = require('handlebars');\nmodule.exports = (Handlebars['default'] || Handlebars).template({\"compiler\":[8,\">= 4.3.0\"],\"main\":function(container,depth0,helpers,partials,data) {\n var stack1, alias1=container.propertyIsEnumerable, alias2=container.lambda, alias3=container.escapeExpression;\n\n return \"<div class=\\\"row\\\">\\r\\n <h4>\\r\\n <a class=\\\"d-inline-flex align-items-center \"\n + alias3(alias2(((stack1 = ((stack1 = (depth0 != null ? depth0.options : depth0)) != null ? stack1.styles : stack1)) != null ? stack1.link : stack1), depth0))\n + \" \"\n + alias3(alias2(((stack1 = ((stack1 = (depth0 != null ? depth0.options : depth0)) != null ? stack1.backTab : stack1)) != null ? stack1.link : stack1), depth0))\n + \"\\\">\\r\\n <span class=\\\"\"\n + alias3(alias2(((stack1 = ((stack1 = (depth0 != null ? depth0.options : depth0)) != null ? stack1.styles : stack1)) != null ? stack1.svgContainer : stack1), depth0))\n + \" d-inline-block mx-2\\\">\"\n + ((stack1 = alias2(((stack1 = (depth0 != null ? depth0.options : depth0)) != null ? stack1.backArrow : stack1), depth0)) != null ? stack1 : \"\")\n + \"</span>\\r\\n \"\n + alias3(alias2(((stack1 = ((stack1 = (depth0 != null ? depth0.options : depth0)) != null ? stack1.backTab : stack1)) != null ? stack1.name : stack1), depth0))\n + \"\\r\\n </a>\\r\\n </h4>\\r\\n</div>\\r\\n<div class=\\\"tabs-region pl-2\\\"></div>\";\n},\"useData\":true});","import * as _ from 'underscore';\r\nimport { ObjectHash, Radio } from 'backbone';\r\n\r\nimport { Core } from 'libs/common/core';\r\nimport { SvgHelper, cvSvgLibrary } from 'libs/shared/utils/SvgHelper';\r\n\r\nimport styles from './edit-video-tabs.scss';\r\nimport EditVideoTabsTemplate from './EditVideoTabs.hbs';\r\nimport { Actions, AppChannels } from 'shared/constants';\r\nimport { Tab, TabsComponent } from 'shared/components/tabs/TabsComponent';\r\n\r\ninterface EditVideoTabsComponentOptions extends Core.ComponentOptions {\r\n tabs: Array<Tab>;\r\n activeTab: string;\r\n goBackTab: Tab;\r\n}\r\n\r\nexport class EditVideoTabsComponent extends Core.Component {\r\n protected options: EditVideoTabsComponentOptions;\r\n\r\n constructor(options: EditVideoTabsComponentOptions) {\r\n super(options);\r\n }\r\n public get name(): string {\r\n return 'EditVideoTabsComponent';\r\n }\r\n\r\n public get className(): string {\r\n return 'bg-white';\r\n }\r\n\r\n public regions(): ObjectHash {\r\n return {\r\n tabs: {\r\n el: '.tabs-region',\r\n replaceElement: true\r\n }\r\n };\r\n }\r\n\r\n public get template(): any {\r\n return EditVideoTabsTemplate;\r\n }\r\n\r\n public get appLinks(): ObjectHash {\r\n const link = this.options.goBackTab.link;\r\n\r\n return {\r\n [link.selector]: link.appLink\r\n };\r\n }\r\n\r\n public viewOptions(): ObjectHash {\r\n const backTab = {\r\n ...this.options.goBackTab,\r\n link: this.options.goBackTab.link.selector.replace('.', '')\r\n };\r\n\r\n return {\r\n styles,\r\n backTab,\r\n backArrow: SvgHelper.getSvg(cvSvgLibrary.ArrowLeft)\r\n };\r\n }\r\n\r\n /**\r\n * On save trigger save event which the active view can listen to\r\n */\r\n private onSave(): void {\r\n /**\r\n * TODO: This shouldn't be on the library editor application channel\r\n */\r\n const libraryEditorChannel = Radio.channel(AppChannels.LIBRARY_EDITOR);\r\n\r\n /**\r\n * TODO: SAVE_VIDEO shouldnt be an action it should be an eventname\r\n */\r\n libraryEditorChannel.trigger(Actions.LibraryEditor.SAVE_VIDEO);\r\n }\r\n\r\n public onRender(): void {\r\n this.showChildView('tabs', new TabsComponent({\r\n tabs: this.options.tabs,\r\n activeTab: this.options.activeTab\r\n }));\r\n }\r\n}","// extracted by mini-css-extract-plugin\nmodule.exports = {\"svgContainer\":\"cv--svgContainer--27gR6\"};","var Handlebars = require('handlebars');\nmodule.exports = (Handlebars['default'] || Handlebars).template({\"1\":function(container,depth0,helpers,partials,data,blockParams,depths) {\n var stack1, alias1=container.propertyIsEnumerable;\n\n return ((stack1 = helpers.unless.call(depth0 != null ? depth0 : (container.nullContext || {}),(depth0 != null ? depth0.hide : depth0),{\"name\":\"unless\",\"hash\":{},\"fn\":container.program(2, data, 0, blockParams, depths),\"inverse\":container.noop,\"data\":data})) != null ? stack1 : \"\");\n},\"2\":function(container,depth0,helpers,partials,data,blockParams,depths) {\n var stack1, alias1=container.propertyIsEnumerable, alias2=container.lambda, alias3=container.escapeExpression;\n\n return \" <a class=\\\"\"\n + alias3(alias2(((stack1 = ((stack1 = (depths[1] != null ? depths[1].options : depths[1])) != null ? stack1.styles : stack1)) != null ? stack1.link : stack1), depth0))\n + \" p-2 \"\n + alias3(alias2((depth0 != null ? depth0.link : depth0), depth0))\n + \" \"\n + ((stack1 = helpers[\"if\"].call(depth0 != null ? depth0 : (container.nullContext || {}),(depth0 != null ? depth0.active : depth0),{\"name\":\"if\",\"hash\":{},\"fn\":container.program(3, data, 0, blockParams, depths),\"inverse\":container.noop,\"data\":data})) != null ? stack1 : \"\")\n + \"\\\">\"\n + alias3(alias2((depth0 != null ? depth0.name : depth0), depth0))\n + \"</a>\\r\\n\";\n},\"3\":function(container,depth0,helpers,partials,data,blockParams,depths) {\n var stack1, alias1=container.propertyIsEnumerable;\n\n return container.escapeExpression(container.lambda(((stack1 = ((stack1 = (depths[1] != null ? depths[1].options : depths[1])) != null ? stack1.styles : stack1)) != null ? stack1.active : stack1), depth0))\n + \" border-bottom border-primary text-primary\";\n},\"compiler\":[8,\">= 4.3.0\"],\"main\":function(container,depth0,helpers,partials,data,blockParams,depths) {\n var stack1, alias1=container.propertyIsEnumerable;\n\n return ((stack1 = helpers.each.call(depth0 != null ? depth0 : (container.nullContext || {}),((stack1 = (depth0 != null ? depth0.options : depth0)) != null ? stack1.tabs : stack1),{\"name\":\"each\",\"hash\":{},\"fn\":container.program(1, data, 0, blockParams, depths),\"inverse\":container.noop,\"data\":data})) != null ? stack1 : \"\");\n},\"useData\":true,\"useDepths\":true});","import * as _ from 'underscore';\r\nimport { ObjectHash } from 'backbone';\r\n\r\nimport { Core } from 'libs/common/core';\r\n\r\nimport styles from './tabs.scss';\r\nimport TabsTemplate from './Tabs.hbs';\r\n\r\ninterface TabAppLink {\r\n selector: string;\r\n appLink: Object;\r\n}\r\n\r\nexport interface Tab {\r\n name: string | (() => string);\r\n active?: boolean;\r\n link: TabAppLink;\r\n hide?: boolean;\r\n}\r\n\r\ninterface TabsComponentOptions extends Core.ComponentOptions {\r\n tabs: Array<Tab>;\r\n activeTab: string;\r\n}\r\n\r\nexport class TabsComponent extends Core.Component {\r\n public options: TabsComponentOptions;\r\n\r\n constructor(options: TabsComponentOptions) {\r\n super(options);\r\n }\r\n\r\n public get name(): string {\r\n return 'TabsView';\r\n }\r\n\r\n public get className(): string {\r\n let className = 'bg-white py-2 border-bottom';\r\n\r\n if (this.options.className)\r\n className += ` ${this.options.className}`;\r\n\r\n return className;\r\n }\r\n\r\n public get template(): any {\r\n return TabsTemplate;\r\n }\r\n\r\n public get appLinks(): ObjectHash {\r\n const links: {[selector: string]: Object} = {};\r\n\r\n this.options.tabs.forEach((tab: Tab) => links[tab.link.selector] = tab.link.appLink);\r\n\r\n return links;\r\n }\r\n\r\n public viewOptions(): ObjectHash {\r\n const { tabs } = this.options;\r\n\r\n const pageTabs = tabs.map((tab: Tab) => {\r\n return {\r\n ...tab,\r\n link: tab.link.selector.replace('.', '')\r\n };\r\n });\r\n\r\n return {\r\n styles,\r\n tabs: pageTabs\r\n };\r\n }\r\n\r\n private setActiveTab(): void {\r\n // Find active applink and set it as active if exists, or set first tab as active\r\n let found = false;\r\n\r\n this.options.tabs.forEach((t: Tab) => {\r\n // First reset all tabs to not active\r\n t.active = false;\r\n\r\n if (t.link.selector !== this.options.activeTab)\r\n return;\r\n\r\n t.active = true;\r\n found = true;\r\n });\r\n\r\n if (found)\r\n return;\r\n\r\n const firstTab = _.first(this.options.tabs);\r\n\r\n if (firstTab)\r\n firstTab.active = true;\r\n }\r\n\r\n public onBeforeRender(): void {\r\n this.setActiveTab();\r\n }\r\n}","// extracted by mini-css-extract-plugin\nmodule.exports = {\"link\":\"cv--link--5idZs\",\"active\":\"cv--active--3Ty4M\"};"],"sourceRoot":""}