@clickview/library-editor 1.1.45-rc.3 → 1.1.46-rc.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (382) hide show
  1. package/dist/bundles.json +3 -3
  2. package/dist/css/{library-editor-app-9c24416a39.css → library-editor-app-d4e455dc19.css} +1 -1
  3. package/dist/scripts/{0-2f5a66d67a.chunk.js → 0-39b4264c40.chunk.js} +1 -1
  4. package/dist/scripts/{1-6e8dcc5ca2.chunk.js → 1-c2f2ee50e1.chunk.js} +1 -1
  5. package/dist/scripts/{10-a4ab5eff50.chunk.js → 10-74b6a07baa.chunk.js} +1 -1
  6. package/dist/scripts/{11-3dec7d2c7e.chunk.js → 11-f9ca151e61.chunk.js} +1 -1
  7. package/dist/scripts/{12-bb9475eac6.chunk.js → 12-a961dabbb5.chunk.js} +1 -1
  8. package/dist/scripts/{13-de5b2bb606.chunk.js → 13-31b759d4dc.chunk.js} +1 -1
  9. package/dist/scripts/{14-c671e8bc46.chunk.js → 14-28ab8d5025.chunk.js} +1 -1
  10. package/dist/scripts/{15-7de7fc2b35.chunk.js → 15-e326770074.chunk.js} +1 -1
  11. package/dist/scripts/{16-382f0c41cf.chunk.js → 16-33bc415c72.chunk.js} +1 -1
  12. package/dist/scripts/{17-1eb8479302.chunk.js → 17-4d85362caa.chunk.js} +1 -1
  13. package/dist/scripts/{2-7cc9176e8a.chunk.js → 2-6334a56d75.chunk.js} +1 -1
  14. package/dist/scripts/{20-d3444fe825.chunk.js → 20-be33eea416.chunk.js} +1 -1
  15. package/dist/scripts/{21-df15d4d827.chunk.js → 21-d07eac93af.chunk.js} +1 -1
  16. package/dist/scripts/{22-5d9b14f0b0.chunk.js → 22-f61848d852.chunk.js} +1 -1
  17. package/dist/scripts/{23-7922bfa9d3.chunk.js → 23-883535facb.chunk.js} +1 -1
  18. package/dist/scripts/{24-a675687323.chunk.js → 24-28d1ee1ddb.chunk.js} +1 -1
  19. package/dist/scripts/{25-a1259842aa.chunk.js → 25-36f6c0f04c.chunk.js} +1 -1
  20. package/dist/scripts/{26-bbf1c17cb5.chunk.js → 26-41d73fb1cc.chunk.js} +1 -1
  21. package/dist/scripts/{27-eff11570d8.chunk.js → 27-9faadbc5ad.chunk.js} +1 -1
  22. package/dist/scripts/{28-285eb18d9a.chunk.js → 28-1abda5ddcd.chunk.js} +1 -1
  23. package/dist/scripts/{29-b7d2b7cde1.chunk.js → 29-e1b5688929.chunk.js} +1 -1
  24. package/dist/scripts/{3-aa8256fe40.chunk.js → 3-c468e5f805.chunk.js} +1 -1
  25. package/dist/scripts/{30-6fdc3a1e11.chunk.js → 30-4331611384.chunk.js} +1 -1
  26. package/dist/scripts/{31-4a94075827.chunk.js → 31-f594f549df.chunk.js} +1 -1
  27. package/dist/scripts/{32-7e2b293f23.chunk.js → 32-b5a8e7c2a3.chunk.js} +1 -1
  28. package/dist/scripts/{33-8de738bfb9.chunk.js → 33-b88d856ab0.chunk.js} +1 -1
  29. package/dist/scripts/{34-7d112464d3.chunk.js → 34-7fcaaeddea.chunk.js} +1 -1
  30. package/dist/scripts/{35-e850443dff.chunk.js → 35-e210da4f12.chunk.js} +1 -1
  31. package/dist/scripts/{36-a480ba6fea.chunk.js → 36-524bf056e4.chunk.js} +1 -1
  32. package/dist/scripts/{37-43b5d8c3af.chunk.js → 37-0336031536.chunk.js} +1 -1
  33. package/dist/scripts/{38-1b53bc0747.chunk.js → 38-1aa8ca825c.chunk.js} +1 -1
  34. package/dist/scripts/{39-674f9ca697.chunk.js → 39-faf8a59822.chunk.js} +1 -1
  35. package/dist/scripts/{4-9915802afa.chunk.js → 4-4c62127fb2.chunk.js} +1 -1
  36. package/dist/scripts/{40-4f0571b8a2.chunk.js → 40-9b473a87c2.chunk.js} +1 -1
  37. package/dist/scripts/{41-5ed5f9712e.chunk.js → 41-20fe91435b.chunk.js} +1 -1
  38. package/dist/scripts/{42-c280d7752c.chunk.js → 42-143ac3914b.chunk.js} +1 -1
  39. package/dist/scripts/{43-c0a7d44737.chunk.js → 43-ce726c3839.chunk.js} +1 -1
  40. package/dist/scripts/{44-b04dab25e6.chunk.js → 44-fc7c025c5f.chunk.js} +1 -1
  41. package/dist/scripts/{45-a6b9650b26.chunk.js → 45-1e84cd6639.chunk.js} +1 -1
  42. package/dist/scripts/{46-319d735448.chunk.js → 46-26b40a870e.chunk.js} +1 -1
  43. package/dist/scripts/{47-87b93cae7d.chunk.js → 47-f03e03252c.chunk.js} +1 -1
  44. package/dist/scripts/{48-92ee4ae7a7.chunk.js → 48-c9a61fd1e3.chunk.js} +1 -1
  45. package/dist/scripts/{49-5c6fe71808.chunk.js → 49-2879e96eed.chunk.js} +1 -1
  46. package/dist/scripts/{5-5341544820.chunk.js → 5-5d2e1c890e.chunk.js} +1 -1
  47. package/dist/scripts/{50-38186c72b7.chunk.js → 50-b76b6c7d52.chunk.js} +1 -1
  48. package/dist/scripts/{51-37749b146e.chunk.js → 51-c252822f95.chunk.js} +1 -1
  49. package/dist/scripts/{52-67c9e2601b.chunk.js → 52-ecde4fecf3.chunk.js} +1 -1
  50. package/dist/scripts/{53-16ef9ed0cb.chunk.js → 53-3ab3b83088.chunk.js} +1 -1
  51. package/dist/scripts/{54-8d377c5aff.chunk.js → 54-0e921db390.chunk.js} +1 -1
  52. package/dist/scripts/{55-2360f690da.chunk.js → 55-bd9dc838cd.chunk.js} +1 -1
  53. package/dist/scripts/{56-d6e13d4afb.chunk.js → 56-6528a68474.chunk.js} +1 -1
  54. package/dist/scripts/{57-d31643829d.chunk.js → 57-3477d4f9b5.chunk.js} +1 -1
  55. package/dist/scripts/{58-21714dd15f.chunk.js → 58-2c62df5dbd.chunk.js} +1 -1
  56. package/dist/scripts/{59-b36d9e7be9.chunk.js → 59-13ade58ba1.chunk.js} +1 -1
  57. package/dist/scripts/{6-19be7f0d3b.chunk.js → 6-1fdfa2191a.chunk.js} +1 -1
  58. package/dist/scripts/{60-86a780fb81.chunk.js → 60-f36c57ef33.chunk.js} +1 -1
  59. package/dist/scripts/{61-897e3aacfb.chunk.js → 61-24acf3201f.chunk.js} +1 -1
  60. package/dist/scripts/{62-35425b2e29.chunk.js → 62-d869eccf9a.chunk.js} +1 -1
  61. package/dist/scripts/{63-714e5c1ee7.chunk.js → 63-d35e9ced47.chunk.js} +1 -1
  62. package/dist/scripts/{64-6ee45d0114.chunk.js → 64-dfc3cd19ee.chunk.js} +1 -1
  63. package/dist/scripts/{65-4041af23f8.chunk.js → 65-b66a158393.chunk.js} +1 -1
  64. package/dist/scripts/{66-1089ec4f34.chunk.js → 66-89b577d70f.chunk.js} +1 -1
  65. package/dist/scripts/{67-c03fd65497.chunk.js → 67-83b2b3ad1a.chunk.js} +1 -1
  66. package/dist/scripts/{68-53e4b905db.chunk.js → 68-452e0327d9.chunk.js} +1 -1
  67. package/dist/scripts/{69-6e315af542.chunk.js → 69-0491a8faf5.chunk.js} +1 -1
  68. package/dist/scripts/{7-8626ad1134.chunk.js → 7-13b4886b73.chunk.js} +1 -1
  69. package/dist/scripts/{70-64d4bc3567.chunk.js → 70-62aff2ab4e.chunk.js} +1 -1
  70. package/dist/scripts/{71-979bac4e9f.chunk.js → 71-91b4d4dfcb.chunk.js} +1 -1
  71. package/dist/scripts/{72-be5d02bfe6.chunk.js → 72-4d851db609.chunk.js} +1 -1
  72. package/dist/scripts/{8-ed9e11c370.chunk.js → 8-55ea9736c8.chunk.js} +1 -1
  73. package/dist/scripts/{9-82e97cb80a.chunk.js → 9-175ec73a5d.chunk.js} +1 -1
  74. package/dist/scripts/bundle-804e733ae8.min.js +10 -0
  75. package/dist/scripts/polyfills-e2b8375767.min.js +1 -0
  76. package/package.json +3 -3
  77. package/typings/libs/trackjs.d.ts +3 -0
  78. package/dist/css/0-library-editor.chunk.css +0 -26
  79. package/dist/css/10-library-editor.chunk.css +0 -25
  80. package/dist/css/11-library-editor.chunk.css +0 -135
  81. package/dist/css/12-library-editor.chunk.css +0 -18
  82. package/dist/css/13-library-editor.chunk.css +0 -21
  83. package/dist/css/14-library-editor.chunk.css +0 -76
  84. package/dist/css/16-library-editor.chunk.css +0 -52
  85. package/dist/css/17-library-editor.chunk.css +0 -14
  86. package/dist/css/18-library-editor.chunk.css +0 -18
  87. package/dist/css/2-library-editor.chunk.css +0 -143
  88. package/dist/css/21-library-editor.chunk.css +0 -52
  89. package/dist/css/22-library-editor.chunk.css +0 -12
  90. package/dist/css/23-library-editor.chunk.css +0 -25
  91. package/dist/css/25-library-editor.chunk.css +0 -35
  92. package/dist/css/26-library-editor.chunk.css +0 -20
  93. package/dist/css/28-library-editor.chunk.css +0 -63
  94. package/dist/css/29-library-editor.chunk.css +0 -80
  95. package/dist/css/3-library-editor.chunk.css +0 -15
  96. package/dist/css/30-library-editor.chunk.css +0 -33
  97. package/dist/css/31-library-editor.chunk.css +0 -30
  98. package/dist/css/32-library-editor.chunk.css +0 -45
  99. package/dist/css/33-library-editor.chunk.css +0 -13
  100. package/dist/css/34-library-editor.chunk.css +0 -19
  101. package/dist/css/35-library-editor.chunk.css +0 -18
  102. package/dist/css/36-library-editor.chunk.css +0 -12
  103. package/dist/css/37-library-editor.chunk.css +0 -5
  104. package/dist/css/38-library-editor.chunk.css +0 -5
  105. package/dist/css/40-library-editor.chunk.css +0 -24
  106. package/dist/css/41-library-editor.chunk.css +0 -76
  107. package/dist/css/42-library-editor.chunk.css +0 -44
  108. package/dist/css/43-library-editor.chunk.css +0 -30
  109. package/dist/css/44-library-editor.chunk.css +0 -12
  110. package/dist/css/45-library-editor.chunk.css +0 -25
  111. package/dist/css/46-library-editor.chunk.css +0 -24
  112. package/dist/css/47-library-editor.chunk.css +0 -84
  113. package/dist/css/48-library-editor.chunk.css +0 -4
  114. package/dist/css/49-library-editor.chunk.css +0 -33
  115. package/dist/css/50-library-editor.chunk.css +0 -20
  116. package/dist/css/51-library-editor.chunk.css +0 -37
  117. package/dist/css/52-library-editor.chunk.css +0 -64
  118. package/dist/css/55-library-editor.chunk.css +0 -3
  119. package/dist/css/56-library-editor.chunk.css +0 -3
  120. package/dist/css/58-library-editor.chunk.css +0 -3
  121. package/dist/css/59-library-editor.chunk.css +0 -3
  122. package/dist/css/6-library-editor.chunk.css +0 -42
  123. package/dist/css/60-library-editor.chunk.css +0 -16
  124. package/dist/css/62-library-editor.chunk.css +0 -4
  125. package/dist/css/63-library-editor.chunk.css +0 -168
  126. package/dist/css/67-library-editor.chunk.css +0 -76
  127. package/dist/css/68-library-editor.chunk.css +0 -15
  128. package/dist/css/69-library-editor.chunk.css +0 -15
  129. package/dist/css/7-library-editor.chunk.css +0 -10
  130. package/dist/css/70-library-editor.chunk.css +0 -21
  131. package/dist/css/71-library-editor.chunk.css +0 -38
  132. package/dist/css/72-library-editor.chunk.css +0 -14
  133. package/dist/css/73-library-editor.chunk.css +0 -35
  134. package/dist/css/74-library-editor.chunk.css +0 -27
  135. package/dist/css/75-library-editor.chunk.css +0 -4
  136. package/dist/css/76-library-editor.chunk.css +0 -4
  137. package/dist/css/8-library-editor.chunk.css +0 -7
  138. package/dist/css/library-editor-app.css +0 -9291
  139. package/dist/scripts/0-298010e33a.chunk.js +0 -1
  140. package/dist/scripts/0-aaa3608203.chunk.js +0 -1
  141. package/dist/scripts/0.chunk.js +0 -64
  142. package/dist/scripts/1-323257c9af.chunk.js +0 -1
  143. package/dist/scripts/1-c690200bdb.chunk.js +0 -1
  144. package/dist/scripts/1.chunk.js +0 -75
  145. package/dist/scripts/10-466cc9683b.chunk.js +0 -1
  146. package/dist/scripts/10-abb1be81df.chunk.js +0 -1
  147. package/dist/scripts/10.chunk.js +0 -62
  148. package/dist/scripts/11-2356f4df85.chunk.js +0 -11
  149. package/dist/scripts/11-3ea7c37829.chunk.js +0 -11
  150. package/dist/scripts/11.chunk.js +0 -317
  151. package/dist/scripts/12-26db35cb21.chunk.js +0 -1
  152. package/dist/scripts/12-c76d68628d.chunk.js +0 -1
  153. package/dist/scripts/12.chunk.js +0 -56
  154. package/dist/scripts/13-a886aeba95.chunk.js +0 -1
  155. package/dist/scripts/13-ffdf6d7db4.chunk.js +0 -1
  156. package/dist/scripts/13.chunk.js +0 -25
  157. package/dist/scripts/14-377ed1af74.chunk.js +0 -1
  158. package/dist/scripts/14-d80e0ddb3c.chunk.js +0 -1
  159. package/dist/scripts/14.chunk.js +0 -272
  160. package/dist/scripts/15-3c4f92249c.chunk.js +0 -1
  161. package/dist/scripts/15-ac502fa5ec.chunk.js +0 -1
  162. package/dist/scripts/15.chunk.js +0 -35
  163. package/dist/scripts/16-082a975dbb.chunk.js +0 -1
  164. package/dist/scripts/16-783d3e4092.chunk.js +0 -1
  165. package/dist/scripts/16.chunk.js +0 -79
  166. package/dist/scripts/17-b13fb41bd3.chunk.js +0 -1
  167. package/dist/scripts/17-c66a2978ae.chunk.js +0 -1
  168. package/dist/scripts/17.chunk.js +0 -40
  169. package/dist/scripts/18.chunk.js +0 -40
  170. package/dist/scripts/19.chunk.js +0 -43
  171. package/dist/scripts/2-717e5953ab.chunk.js +0 -1
  172. package/dist/scripts/2-8e809f7467.chunk.js +0 -1
  173. package/dist/scripts/2.chunk.js +0 -33
  174. package/dist/scripts/20-6dd45d4f46.chunk.js +0 -1
  175. package/dist/scripts/20-fa33bbf746.chunk.js +0 -1
  176. package/dist/scripts/20.chunk.js +0 -18
  177. package/dist/scripts/21-4de1bd55b0.chunk.js +0 -1
  178. package/dist/scripts/21-dadfbacfbc.chunk.js +0 -1
  179. package/dist/scripts/21.chunk.js +0 -55
  180. package/dist/scripts/22-6d8b1c21c5.chunk.js +0 -1
  181. package/dist/scripts/22-d381139a29.chunk.js +0 -1
  182. package/dist/scripts/22.chunk.js +0 -47
  183. package/dist/scripts/23-30dffdfecf.chunk.js +0 -1
  184. package/dist/scripts/23-9f6cc70b65.chunk.js +0 -1
  185. package/dist/scripts/23.chunk.js +0 -47
  186. package/dist/scripts/24-7406b564f6.chunk.js +0 -1
  187. package/dist/scripts/24-b6ec3366cb.chunk.js +0 -1
  188. package/dist/scripts/24.chunk.js +0 -33
  189. package/dist/scripts/25-7faa89d5e3.chunk.js +0 -1
  190. package/dist/scripts/25-d7396e955d.chunk.js +0 -1
  191. package/dist/scripts/25.chunk.js +0 -25
  192. package/dist/scripts/26-2d98320aae.chunk.js +0 -1
  193. package/dist/scripts/26-c1fc20583b.chunk.js +0 -1
  194. package/dist/scripts/26.chunk.js +0 -25
  195. package/dist/scripts/27-31485d4b2a.chunk.js +0 -1
  196. package/dist/scripts/27-531532942a.chunk.js +0 -1
  197. package/dist/scripts/27.chunk.js +0 -10
  198. package/dist/scripts/28-b71b9ac0eb.chunk.js +0 -1
  199. package/dist/scripts/28-e85da77e0f.chunk.js +0 -1
  200. package/dist/scripts/28.chunk.js +0 -334
  201. package/dist/scripts/29-7be825c44d.chunk.js +0 -1
  202. package/dist/scripts/29-d980d0cbb5.chunk.js +0 -1
  203. package/dist/scripts/29.chunk.js +0 -202
  204. package/dist/scripts/3-151fc3d544.chunk.js +0 -1
  205. package/dist/scripts/3-eeb2d3d492.chunk.js +0 -1
  206. package/dist/scripts/3.chunk.js +0 -57
  207. package/dist/scripts/30-0e805630f4.chunk.js +0 -1
  208. package/dist/scripts/30-ad62e78d54.chunk.js +0 -1
  209. package/dist/scripts/30.chunk.js +0 -137
  210. package/dist/scripts/31-49c7676cff.chunk.js +0 -1
  211. package/dist/scripts/31-b1a679306a.chunk.js +0 -1
  212. package/dist/scripts/31.chunk.js +0 -113
  213. package/dist/scripts/32-042cda92ae.chunk.js +0 -1
  214. package/dist/scripts/32-e448ef7e82.chunk.js +0 -1
  215. package/dist/scripts/32.chunk.js +0 -115
  216. package/dist/scripts/33-36ddd95595.chunk.js +0 -1
  217. package/dist/scripts/33-b5cf4cfa6f.chunk.js +0 -1
  218. package/dist/scripts/33.chunk.js +0 -93
  219. package/dist/scripts/34-894005f525.chunk.js +0 -1
  220. package/dist/scripts/34-b206a218e9.chunk.js +0 -1
  221. package/dist/scripts/34.chunk.js +0 -63
  222. package/dist/scripts/35-9cdb858587.chunk.js +0 -1
  223. package/dist/scripts/35-d0137a950e.chunk.js +0 -1
  224. package/dist/scripts/35.chunk.js +0 -48
  225. package/dist/scripts/36-54624daa85.chunk.js +0 -1
  226. package/dist/scripts/36-846ab1a7ae.chunk.js +0 -1
  227. package/dist/scripts/36.chunk.js +0 -33
  228. package/dist/scripts/37-3314327a46.chunk.js +0 -1
  229. package/dist/scripts/37-6ffb96d64b.chunk.js +0 -1
  230. package/dist/scripts/37.chunk.js +0 -25
  231. package/dist/scripts/38-a18528bd5a.chunk.js +0 -1
  232. package/dist/scripts/38-d5dc6c775d.chunk.js +0 -1
  233. package/dist/scripts/38.chunk.js +0 -25
  234. package/dist/scripts/39-a4d5bf70ed.chunk.js +0 -1
  235. package/dist/scripts/39-d1b6c2defd.chunk.js +0 -1
  236. package/dist/scripts/39.chunk.js +0 -19
  237. package/dist/scripts/4-3516e54324.chunk.js +0 -1
  238. package/dist/scripts/4-adab2b69d4.chunk.js +0 -1
  239. package/dist/scripts/4.chunk.js +0 -26
  240. package/dist/scripts/40-264a3768ac.chunk.js +0 -1
  241. package/dist/scripts/40-bc2c6ae993.chunk.js +0 -1
  242. package/dist/scripts/40.chunk.js +0 -182
  243. package/dist/scripts/41-2084077727.chunk.js +0 -1
  244. package/dist/scripts/41-a4121258fa.chunk.js +0 -1
  245. package/dist/scripts/41.chunk.js +0 -175
  246. package/dist/scripts/42-16c4690eeb.chunk.js +0 -1
  247. package/dist/scripts/42-6b99047385.chunk.js +0 -1
  248. package/dist/scripts/42.chunk.js +0 -176
  249. package/dist/scripts/43-16efe31266.chunk.js +0 -1
  250. package/dist/scripts/43-f0a2833261.chunk.js +0 -1
  251. package/dist/scripts/43.chunk.js +0 -121
  252. package/dist/scripts/44-66950d4440.chunk.js +0 -1
  253. package/dist/scripts/44-dbc3731bcb.chunk.js +0 -1
  254. package/dist/scripts/44.chunk.js +0 -122
  255. package/dist/scripts/45-6dd66a0ec6.chunk.js +0 -1
  256. package/dist/scripts/45-bc07f6ed34.chunk.js +0 -1
  257. package/dist/scripts/45.chunk.js +0 -85
  258. package/dist/scripts/46-1188acdeb9.chunk.js +0 -1
  259. package/dist/scripts/46-b403f6be5b.chunk.js +0 -1
  260. package/dist/scripts/46.chunk.js +0 -78
  261. package/dist/scripts/47-2964488de7.chunk.js +0 -1
  262. package/dist/scripts/47-b482682154.chunk.js +0 -1
  263. package/dist/scripts/47.chunk.js +0 -70
  264. package/dist/scripts/48-48a409c875.chunk.js +0 -1
  265. package/dist/scripts/48-d924ddb603.chunk.js +0 -1
  266. package/dist/scripts/48.chunk.js +0 -88
  267. package/dist/scripts/49-3728b15a3c.chunk.js +0 -1
  268. package/dist/scripts/49-a76be85054.chunk.js +0 -1
  269. package/dist/scripts/49.chunk.js +0 -62
  270. package/dist/scripts/5-3fe2876121.chunk.js +0 -1
  271. package/dist/scripts/5-c3a1e51e77.chunk.js +0 -1
  272. package/dist/scripts/5.chunk.js +0 -10
  273. package/dist/scripts/50-06212d1dc8.chunk.js +0 -1
  274. package/dist/scripts/50-a20245292f.chunk.js +0 -1
  275. package/dist/scripts/50.chunk.js +0 -64
  276. package/dist/scripts/51-4e98f3c73f.chunk.js +0 -1
  277. package/dist/scripts/51-af622cc279.chunk.js +0 -1
  278. package/dist/scripts/51.chunk.js +0 -55
  279. package/dist/scripts/52-1ece273b07.chunk.js +0 -1
  280. package/dist/scripts/52-c988320a6f.chunk.js +0 -1
  281. package/dist/scripts/52.chunk.js +0 -47
  282. package/dist/scripts/53-1514119651.chunk.js +0 -1
  283. package/dist/scripts/53-eae4eb72dc.chunk.js +0 -1
  284. package/dist/scripts/53.chunk.js +0 -56
  285. package/dist/scripts/54-56e7cb4493.chunk.js +0 -1
  286. package/dist/scripts/54-f489df5eda.chunk.js +0 -1
  287. package/dist/scripts/54.chunk.js +0 -56
  288. package/dist/scripts/55-b621cecfd3.chunk.js +0 -1
  289. package/dist/scripts/55-c7303d997f.chunk.js +0 -1
  290. package/dist/scripts/55.chunk.js +0 -41
  291. package/dist/scripts/56-53c4bdf797.chunk.js +0 -1
  292. package/dist/scripts/56-db9dbfd5fa.chunk.js +0 -1
  293. package/dist/scripts/56.chunk.js +0 -41
  294. package/dist/scripts/57-be599f08b2.chunk.js +0 -1
  295. package/dist/scripts/57-fb4f8ce1ab.chunk.js +0 -1
  296. package/dist/scripts/57.chunk.js +0 -50
  297. package/dist/scripts/58-8d1653ecd7.chunk.js +0 -1
  298. package/dist/scripts/58-c0e985cbc4.chunk.js +0 -1
  299. package/dist/scripts/58.chunk.js +0 -33
  300. package/dist/scripts/59-9b9c8c0f2d.chunk.js +0 -1
  301. package/dist/scripts/59-fcf6a940d6.chunk.js +0 -1
  302. package/dist/scripts/59.chunk.js +0 -33
  303. package/dist/scripts/6-a39d1f4585.chunk.js +0 -1
  304. package/dist/scripts/6-deb7609cc9.chunk.js +0 -1
  305. package/dist/scripts/6.chunk.js +0 -40
  306. package/dist/scripts/60-6995cd4cf5.chunk.js +0 -1
  307. package/dist/scripts/60-b4f7090720.chunk.js +0 -1
  308. package/dist/scripts/60.chunk.js +0 -33
  309. package/dist/scripts/61-7d1475b277.chunk.js +0 -1
  310. package/dist/scripts/61-cac68e627b.chunk.js +0 -1
  311. package/dist/scripts/61.chunk.js +0 -33
  312. package/dist/scripts/62-2aa55f08d5.chunk.js +0 -1
  313. package/dist/scripts/62-3a96a88b11.chunk.js +0 -1
  314. package/dist/scripts/62.chunk.js +0 -25
  315. package/dist/scripts/63-65744e61fe.chunk.js +0 -1
  316. package/dist/scripts/63-90bb249d0f.chunk.js +0 -1
  317. package/dist/scripts/63.chunk.js +0 -25
  318. package/dist/scripts/64-4f64cd6916.chunk.js +0 -1
  319. package/dist/scripts/64-b92f429d9a.chunk.js +0 -1
  320. package/dist/scripts/64.chunk.js +0 -33
  321. package/dist/scripts/65-179891d951.chunk.js +0 -1
  322. package/dist/scripts/65-fe362dec65.chunk.js +0 -1
  323. package/dist/scripts/65.chunk.js +0 -34
  324. package/dist/scripts/66-0bda221806.chunk.js +0 -1
  325. package/dist/scripts/66-b1de02727e.chunk.js +0 -1
  326. package/dist/scripts/66.chunk.js +0 -33
  327. package/dist/scripts/67-9773a2f9cf.chunk.js +0 -1
  328. package/dist/scripts/67-fc341ce660.chunk.js +0 -1
  329. package/dist/scripts/67.chunk.js +0 -25
  330. package/dist/scripts/68-2ff366d408.chunk.js +0 -1
  331. package/dist/scripts/68-c6ef8701a2.chunk.js +0 -1
  332. package/dist/scripts/68.chunk.js +0 -25
  333. package/dist/scripts/69-4af679bc4c.chunk.js +0 -1
  334. package/dist/scripts/69-5368c32a2e.chunk.js +0 -1
  335. package/dist/scripts/69.chunk.js +0 -25
  336. package/dist/scripts/7-c387d70c9b.chunk.js +0 -1
  337. package/dist/scripts/7-c86af5cc3a.chunk.js +0 -1
  338. package/dist/scripts/7.chunk.js +0 -33
  339. package/dist/scripts/70-3650ef74f8.chunk.js +0 -1
  340. package/dist/scripts/70-e782f523de.chunk.js +0 -1
  341. package/dist/scripts/70.chunk.js +0 -25
  342. package/dist/scripts/71-a45419aed7.chunk.js +0 -1
  343. package/dist/scripts/71-cf362223a9.chunk.js +0 -1
  344. package/dist/scripts/71.chunk.js +0 -25
  345. package/dist/scripts/72-3f71367bdd.chunk.js +0 -1
  346. package/dist/scripts/72-93adcc17c5.chunk.js +0 -1
  347. package/dist/scripts/72.chunk.js +0 -25
  348. package/dist/scripts/73.chunk.js +0 -25
  349. package/dist/scripts/74.chunk.js +0 -25
  350. package/dist/scripts/75.chunk.js +0 -25
  351. package/dist/scripts/76.chunk.js +0 -25
  352. package/dist/scripts/77.chunk.js +0 -26
  353. package/dist/scripts/78.chunk.js +0 -26
  354. package/dist/scripts/79.chunk.js +0 -26
  355. package/dist/scripts/8-2e66d6cb35.chunk.js +0 -1
  356. package/dist/scripts/8-82c9c86dfd.chunk.js +0 -1
  357. package/dist/scripts/8.chunk.js +0 -33
  358. package/dist/scripts/80.chunk.js +0 -26
  359. package/dist/scripts/81.chunk.js +0 -26
  360. package/dist/scripts/82.chunk.js +0 -26
  361. package/dist/scripts/83.chunk.js +0 -26
  362. package/dist/scripts/84.chunk.js +0 -26
  363. package/dist/scripts/85.chunk.js +0 -26
  364. package/dist/scripts/86.chunk.js +0 -18
  365. package/dist/scripts/87.chunk.js +0 -18
  366. package/dist/scripts/88.chunk.js +0 -18
  367. package/dist/scripts/89.chunk.js +0 -18
  368. package/dist/scripts/9-61225547b6.chunk.js +0 -1
  369. package/dist/scripts/9-bd46228181.chunk.js +0 -1
  370. package/dist/scripts/9.chunk.js +0 -18
  371. package/dist/scripts/90.chunk.js +0 -18
  372. package/dist/scripts/91.chunk.js +0 -18
  373. package/dist/scripts/92.chunk.js +0 -18
  374. package/dist/scripts/bundle-39b749b21d.min.js +0 -10
  375. package/dist/scripts/bundle-42046b5b88.min.js +0 -10
  376. package/dist/scripts/bundle-a8b8854ef1.min.js +0 -10
  377. package/dist/scripts/bundle-f18858be26.min.js +0 -10
  378. package/dist/scripts/bundle.js +0 -8153
  379. package/dist/scripts/polyfills-022d27190f.min.js +0 -1
  380. package/dist/scripts/polyfills-5139b6bb05.min.js +0 -1
  381. package/dist/scripts/polyfills-b0f2bc073f.min.js +0 -1
  382. package/dist/scripts/polyfills.js +0 -2701
@@ -1 +0,0 @@
1
- (window.webpackJsonp_clickview_library_editor=window.webpackJsonp_clickview_library_editor||[]).push([[13],{1102:function(e,n,t){"use strict";t.d(n,"a",(function(){return k}));var o=t(1),r=t(6),a=t(2),i=t(18),l=t(17),s=t(98),u=t(13),c=t(1153),p=t.n(c),d=t(1154),f=t.n(d);function h(e){return(h="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,n){for(var t=0;t<n.length;t++){var o=n[t];o.enumerable=o.enumerable||!1,o.configurable=!0,"value"in o&&(o.writable=!0),Object.defineProperty(e,o.key,o)}}function g(e,n){return(g=Object.setPrototypeOf||function(e,n){return e.__proto__=n,e})(e,n)}function y(e){var n=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(e){return!1}}();return function(){var t,o=v(e);if(n){var r=v(this).constructor;t=Reflect.construct(o,arguments,r)}else t=o.apply(this,arguments);return b(this,t)}}function b(e,n){return!n||"object"!==h(n)&&"function"!=typeof n?function(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}(e):n}function v(e){return(v=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)})(e)}var k=function(e){!function(e,n){if("function"!=typeof n&&null!==n)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(n&&n.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),n&&g(e,n)}(h,e);var n,t,c,d=y(h);function h(e){return function(e,n){if(!(e instanceof n))throw new TypeError("Cannot call a class as a function")}(this,h),d.call(this,e)}return n=h,(t=[{key:"name",get:function(){return"SearchTypeaheadComponent"}},{key:"template",get:function(){return p.a}},{key:"className",get:function(){return"search-container ".concat(f.a.typeaheadContainer," mb-2")}},{key:"channelName",get:function(){return u.k.generateUniqueChannelName(this)}},{key:"elements",get:function(){return{input:"#".concat(this.options.inputId)}}},{key:"defaults",get:function(){return{inputId:"search-typeahead",placeholderText:"Search",stickItProperty:"name",selectEvent:"select:result",additionalClasses:"",editable:!0}}},{key:"events",value:function(){return{submit:"onSubmit","click .remove":"onClickRemove"}}},{key:"initialize",value:function(){this.model||this.options.parentChannelName||a.a.ErrorHelper.throw(new i.a("Either pass a model or a channelName to access the typeahead selection")),this.model||(this.model=new a.a.Model),this.options.inputName||(this.options.inputName=this.options.inputId),this.bindListeners()}},{key:"bindListeners",value:function(){this.options.parentChannelName&&(this.parentChannel=r.Radio.channel(this.options.parentChannelName)),this.listenTo(this.channelName,"typeahead:set:input",this.setInput),this.listenTo(this.channelName,"typeahead:clear:input",this.clearInput)}},{key:"bindings",get:function(){var e,n,t,o="[name=".concat(this.options.inputName,"]");return e={},n=o,t={observe:this.options.stickItProperty,setOptions:{validate:!0}},n in e?Object.defineProperty(e,n,{value:t,enumerable:!0,configurable:!0,writable:!0}):e[n]=t,e}},{key:"clearInput",value:function(){this.getUI("input").typeahead("val",null)}},{key:"setInput",value:function(e){this.getUI("input").typeahead("val",e)}},{key:"onTypeaheadSelect",value:function(e,n){var t;e.preventDefault(),t="string"==typeof n?n:n.title||n.name||n.query,this.model.set(this.options.stickItProperty,t),this.parentChannel&&this.options.selectEvent&&this.parentChannel.trigger(this.options.selectEvent,n),this.onSubmit(e),this.toggleRemove()}},{key:"onSubmit",value:function(e){var n=this;if(e.preventDefault(),!this.isDestroyed()&&this.getTypeaheadActionOptions().clearOnSelect)return this.getUI("input").typeahead("close"),setTimeout((function(){n.model.clear(),n.clearInput()}),0),!1}},{key:"onClickRemove",value:function(){this.model.clear(),this.parentChannel.trigger(this.options.removeEvent,this.model),this.toggleRemove()}},{key:"getSources",value:function(){return o.isArray(this.options.typeaheadConfigs)?s.a.getSearchSources(this.options.typeaheadConfigs):s.a.getSearchSources([this.options.typeaheadConfigs])}},{key:"getTypeaheadOptions",value:function(){var e={minLength:1,highlight:!0};return this.options.typeaheadOptions?o.extend({},e,this.options.typeaheadOptions):e}},{key:"getTypeaheadActionOptions",value:function(){var e={clearOnSelect:!1};return o.isObject(this.options.actionOptions)?o.extend({},e,this.options.actionOptions):e}},{key:"bindOptionalCallbacks",value:function(){o.isObject(this.options.callbacks)&&(o.isFunction(this.options.callbacks.onRender)&&this.getUI("input").on("typeahead:render",o.bind(this.options.callbacks.onRender,this)),o.isFunction(this.options.callbacks.onInput)&&this.listenTo(this.model,"change:".concat(this.options.stickItProperty),this.options.callbacks.onInput),o.isFunction(this.options.callbacks.onBlur)&&this.getUI("input").on("blur",o.bind(this.options.callbacks.onBlur,this,this.channelName,this.options.stickItProperty)))}},{key:"initTypeahead",value:function(){this.getUI("input").typeahead(this.getTypeaheadOptions(),this.getSources())}},{key:"initTypeaheadListeners",value:function(){this.getUI("input").on("typeahead:select",o.bind(this.onTypeaheadSelect,this)),this.bindOptionalCallbacks()}},{key:"toggleRemove",value:function(){this.shouldShowRemove()?this.$el.find(".remove").show():this.$el.find(".remove").hide()}},{key:"shouldShowRemove",value:function(){return!!this.options.editable&&(!!this.options.forceShowRemoveButton||this.options.removeEvent&&!!this.model.get(this.options.stickItProperty))}},{key:"viewOptions",value:function(){return Object.assign(Object.assign({styles:f.a},this.options),{showRemove:this.shouldShowRemove(),svgRemove:l.a.getSvg(l.b.Close)})}},{key:"onRender",value:function(){var e=this;this.stickit(),this.initTypeahead(),this.initTypeaheadListeners(),r.Validation.bind(this),this.toggleRemove(),this.options.autofocus&&window.requestAnimationFrame((function(){e.getUI("input").focus()}))}},{key:"onClose",value:function(){this.getUI("input").off(),this.unstickit(),r.Validation.unbind(this)}}])&&m(n.prototype,t),c&&m(n,c),h}(a.a.Component)},1153:function(e,n,t){var o=t(10);e.exports=(o.default||o).template({1:function(e,n,t,o,r){var a;e.propertyIsEnumerable;return e.escapeExpression(e.lambda(null!=(a=null!=(a=null!=n?n.options:n)?a.styles:a)?a.disabled:a,n))},3:function(e,n,t,o,r){return"autofocus"},5:function(e,n,t,o,r){return"disabled"},compiler:[8,">= 4.3.0"],main:function(e,n,t,o,r){e.propertyIsEnumerable;var a,i=e.lambda,l=e.escapeExpression,s=null!=n?n:e.nullContext||{};return'<input\r\n name="'+l(i(null!=(a=null!=n?n.options:n)?a.inputName:a,n))+'"\r\n type="text"\r\n class="form-control '+(null!=(a=t.unless.call(s,null!=(a=null!=n?n.options:n)?a.editable:a,{name:"unless",hash:{},fn:e.program(1,r,0),inverse:e.noop,data:r}))?a:"")+" "+l(i(null!=(a=null!=n?n.options:n)?a.additionalClasses:a,n))+'"\r\n id="'+l(i(null!=(a=null!=n?n.options:n)?a.inputId:a,n))+'"\r\n autocomplete="off"\r\n placeholder="'+l(i(null!=(a=null!=n?n.options:n)?a.placeholderText:a,n))+'"\r\n '+(null!=(a=t.if.call(s,null!=(a=null!=n?n.options:n)?a.autofocus:a,{name:"if",hash:{},fn:e.program(3,r,0),inverse:e.noop,data:r}))?a:"")+"\r\n "+(null!=(a=t.unless.call(s,null!=(a=null!=n?n.options:n)?a.editable:a,{name:"unless",hash:{},fn:e.program(5,r,0),inverse:e.noop,data:r}))?a:"")+'\r\n></input>\r\n<span class="svg-container mb-2 '+l(i(null!=(a=null!=(a=null!=n?n.options:n)?a.styles:a)?a.svg:a,n))+' remove" style="display: none;">'+(null!=(a=i(null!=(a=null!=n?n.options:n)?a.svgRemove:a,n))?a:"")+"</span>"},useData:!0})},1154:function(e,n,t){e.exports={svg:"_1iL3O",typeaheadContainer:"_1SWXc",disabled:"_3C2O8"}},1197:function(e,n,t){"use strict";t.d(n,"a",(function(){return w}));var o=t(6),r=t(2),a=t(17),i=t(1201),l=t(1199),s=t(3),u=t(0),c=t(195),p=t(1259),d=t.n(p),f=t(1101),h=t.n(f);function m(e){return(m="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 g(e,n){for(var t=0;t<n.length;t++){var o=n[t];o.enumerable=o.enumerable||!1,o.configurable=!0,"value"in o&&(o.writable=!0),Object.defineProperty(e,o.key,o)}}function y(e,n){return(y=Object.setPrototypeOf||function(e,n){return e.__proto__=n,e})(e,n)}function b(e){var n=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(e){return!1}}();return function(){var t,o=k(e);if(n){var r=k(this).constructor;t=Reflect.construct(o,arguments,r)}else t=o.apply(this,arguments);return v(this,t)}}function v(e,n){return!n||"object"!==m(n)&&"function"!=typeof n?function(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}(e):n}function k(e){return(k=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)})(e)}var w=function(e){!function(e,n){if("function"!=typeof n&&null!==n)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(n&&n.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),n&&y(e,n)}(f,e);var n,t,r,p=b(f);function f(e){return function(e,n){if(!(e instanceof n))throw new TypeError("Cannot call a class as a function")}(this,f),p.call(this,e)}return n=f,(t=[{key:"name",get:function(){return"EditBasicInfoComponent"}},{key:"tagName",get:function(){return"form"}},{key:"template",get:function(){return d.a}},{key:"lang",get:function(){return"shared.editBasicInfo"}},{key:"channelName",get:function(){return this.options.channelName}},{key:"className",get:function(){return"edit-basic-info"}},{key:"events",value:function(){return{submit:function(e){return e.preventDefault()}}}},{key:"regions",value:function(){return{description:{el:".description-region",replaceElement:!0},ratings:{el:".ratings-region",replaceElement:!0}}}},{key:"appLinks",get:function(){return{".suggest-title":{application:u.b.LIBRARY_EDITOR,action:u.a.LibraryEditor.SUGGEST_AN_EDIT,args:[this.model.get("id")],params:{metadata:c.MetadataType.VideoTitle}},".suggest-description":{application:u.b.LIBRARY_EDITOR,action:u.a.LibraryEditor.SUGGEST_AN_EDIT,args:[this.model.get("id")],params:{metadata:c.MetadataType.Description}},".applink-publisher-video":{application:u.b.LIBRARY_EDITOR,action:u.a.LibraryEditor.SHOW_PUBLISHER_VIDEO,args:[this.model.get("id")]}}}},{key:"bindings",get:function(){return{"[name=name]":{observe:"name",setOptions:{validate:!0}},"[name=description]":{observe:"description",setOptions:{validate:!0}}}}},{key:"renderDescription",value:function(){this.showChildView("description",new l.a({name:"description",class:"form-control ".concat(!this.options.editable&&h.a.disabled),placeholder:this.options.editable?s.a.getPhrase(this.lang,"descriptionPlaceholder"):"",id:"edit-description",disabled:!this.options.editable}))}},{key:"renderRatings",value:function(){this.showChildView("ratings",new i.a({model:this.model.rating,collection:this.options.ratings,parentChannelName:this.options.channelName,editable:this.options.editable,videoId:this.model.get("id")}))}},{key:"viewOptions",value:function(){return{styles:h.a,requiredFields:this.options.requiredFields,videoTitlePlaceholder:this.options.editable?s.a.getPhrase(this.lang,"titlePlaceholder"):"",editable:this.options.editable,publisherArchiveSvg:a.a.getSvg(a.b.PublisherArchive),showPublisherVideoDetails:this.options.showPublisherVideoDetails,showingSaveButton:this.options.showingSaveButton}}},{key:"onRender",value:function(){this.renderDescription(),this.renderRatings(),this.stickit(),o.Validation.bind(this)}},{key:"onDestroy",value:function(){this.unstickit(),o.Validation.unbind(this)}}])&&g(n.prototype,t),r&&g(n,r),f}(r.a.Component)},1199:function(e,n,t){"use strict";t.d(n,"a",(function(){return m}));var o=t(1),r=t(2),a=t(1257),i=t.n(a),l=t(1258),s=t.n(l);function u(e){return(u="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 c(e,n){for(var t=0;t<n.length;t++){var o=n[t];o.enumerable=o.enumerable||!1,o.configurable=!0,"value"in o&&(o.writable=!0),Object.defineProperty(e,o.key,o)}}function p(e,n){return(p=Object.setPrototypeOf||function(e,n){return e.__proto__=n,e})(e,n)}function d(e){var n=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(e){return!1}}();return function(){var t,o=h(e);if(n){var r=h(this).constructor;t=Reflect.construct(o,arguments,r)}else t=o.apply(this,arguments);return f(this,t)}}function f(e,n){return!n||"object"!==u(n)&&"function"!=typeof n?function(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}(e):n}function h(e){return(h=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)})(e)}var m=function(e){!function(e,n){if("function"!=typeof n&&null!==n)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(n&&n.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),n&&p(e,n)}(l,e);var n,t,r,a=d(l);function l(e){return function(e,n){if(!(e instanceof n))throw new TypeError("Cannot call a class as a function")}(this,l),a.call(this,e)}return n=l,(t=[{key:"name",get:function(){return"ResizingTextAreaComponent"}},{key:"template",get:function(){return i.a}},{key:"events",value:function(){return{"input .event-selector":"onInput"}}},{key:"onInput",value:function(e){var n=e.target;n.style.height="inherit";var t=window.getComputedStyle(n),o=parseInt(t.getPropertyValue("border-top-width"),10)+parseInt(t.getPropertyValue("padding-top"),10)+n.scrollHeight+parseInt(t.getPropertyValue("padding-bottom"),10)+parseInt(t.getPropertyValue("border-bottom-width"),10);n.style.height=o+"px"}},{key:"viewOptions",value:function(){return o.extend({},this.options,{styles:s.a})}}])&&c(n.prototype,t),r&&c(n,r),l}(r.a.Component)},1200:function(e,n,t){"use strict";var o=t(1),r=t(6),a=t(2),i=t(98),l=t(301),s=t(1102),u=t(363),c=t(0),p=t(29),d=t(17),f=t(1262),h=t.n(f),m=t(1263),g=t.n(m);function y(e){return(y="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 b(e,n){for(var t=0;t<n.length;t++){var o=n[t];o.enumerable=o.enumerable||!1,o.configurable=!0,"value"in o&&(o.writable=!0),Object.defineProperty(e,o.key,o)}}function v(e,n){return(v=Object.setPrototypeOf||function(e,n){return e.__proto__=n,e})(e,n)}function k(e){var n=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(e){return!1}}();return function(){var t,o=E(e);if(n){var r=E(this).constructor;t=Reflect.construct(o,arguments,r)}else t=o.apply(this,arguments);return w(this,t)}}function w(e,n){return!n||"object"!==y(n)&&"function"!=typeof n?function(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}(e):n}function E(e){return(E=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)})(e)}var C=function(e){!function(e,n){if("function"!=typeof n&&null!==n)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(n&&n.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),n&&v(e,n)}(i,e);var n,t,o,a=k(i);function i(e){return function(e,n){if(!(e instanceof n))throw new TypeError("Cannot call a class as a function")}(this,i),a.call(this,e)}return n=i,(t=[{key:"name",get:function(){return"ClearButtonComponent"}},{key:"className",get:function(){return"".concat(g.a.clearButton)}},{key:"template",get:function(){return h.a}},{key:"events",value:function(){return{click:"onClick"}}},{key:"onClick",value:function(){r.Radio.channel(this.options.channelName).trigger("clear:date")}},{key:"onBeforeRender",value:function(){return!!this.options.shouldRender}},{key:"viewOptions",value:function(){return{styles:g.a,svgClear:d.a.getSvg(d.b.Close)}}}])&&b(n.prototype,t),o&&b(n,o),i}(a.a.Component),S=t(3),O=t(195),x=t(1264),T=t.n(x),I=t(1265),R=t.n(I),P=t(1101),_=t.n(P);function D(e){return(D="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 N(e,n,t){return n in e?Object.defineProperty(e,n,{value:t,enumerable:!0,configurable:!0,writable:!0}):e[n]=t,e}function B(e,n){for(var t=0;t<n.length;t++){var o=n[t];o.enumerable=o.enumerable||!1,o.configurable=!0,"value"in o&&(o.writable=!0),Object.defineProperty(e,o.key,o)}}function j(e,n){return(j=Object.setPrototypeOf||function(e,n){return e.__proto__=n,e})(e,n)}function A(e){var n=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(e){return!1}}();return function(){var t,o=M(e);if(n){var r=M(this).constructor;t=Reflect.construct(o,arguments,r)}else t=o.apply(this,arguments);return L(this,t)}}function L(e,n){return!n||"object"!==D(n)&&"function"!=typeof n?function(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}(e):n}function M(e){return(M=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)})(e)}var V=function(e){!function(e,n){if("function"!=typeof n&&null!==n)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(n&&n.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),n&&j(e,n)}(i,e);var n,t,r,a=A(i);function i(e){return function(e,n){if(!(e instanceof n))throw new TypeError("Cannot call a class as a function")}(this,i),a.call(this,e)}return n=i,(t=[{key:"initialize",value:function(){this.listenTo(this.model,"change:".concat(this.options.modelAttr),this.renderClearDateButton),this.listenTo(this.channelName,"clear:date",this.onClearDate)}},{key:"name",get:function(){return"DatePickerComponent"}},{key:"template",get:function(){return T.a}},{key:"lang",get:function(){return"shared.datePicker"}},{key:"channelName",get:function(){return"".concat(this.name,":").concat(this.cid)}},{key:"elements",get:function(){return{date:"#".concat(this.options.modelAttr)}}},{key:"regions",value:function(){return{clearButton:{el:".clear-button-region"}}}},{key:"appLinks",get:function(){return{".suggest-broadcast-date":{application:c.b.LIBRARY_EDITOR,action:c.a.LibraryEditor.SUGGEST_AN_EDIT,args:[this.model.get("id")],params:{metadata:O.MetadataType.BroadcastDate}}}}},{key:"defaults",get:function(){return{placeholderText:S.a.getPhrase(this.lang,"placeholder"),allowTextInput:!1,allowClearDate:!0,minYear:1900,editable:!0}}},{key:"behaviors",get:function(){return[{behaviorClass:l.a},{behaviorClass:l.f}]}},{key:"bindings",get:function(){var e=this;return N({},"[name=".concat(this.options.modelAttr,"]"),{observe:this.options.modelAttr,setOptions:{validate:!0},onGet:function(n){return e.getFormattedDisplayDate(n)},onSet:function(n){return e.getFormattedSavedDate(n)}})}},{key:"events",value:function(){return N({"keydown @ui.date":"onKeyDownDate"},"click .".concat(R.a.calendarSvg),"onClickCalendarIcon")}},{key:"getInstanceClassName",value:function(){return"datetimepicker-".concat(this.cid)}},{key:"initDatePicker",value:function(){this.getUI("date").datetimepicker({format:this.options.displayedTimeFormat,minDate:p().year(this.options.minYear),maxDate:p(),icons:{previous:R.a.previous,next:R.a.next}})}},{key:"getFormattedDisplayDate",value:function(e){if(e)return o.isFunction(this.options.formatDisplayDate)?this.options.formatDisplayDate(e):p.utc(e).local().format(this.options.displayedTimeFormat)}},{key:"getFormattedSavedDate",value:function(e){if(e)return o.isFunction(this.options.formatSavedDate)?this.options.formatSavedDate(e):this.options.savedTimeFormat?p.utc(e).format(this.options.savedTimeFormat):p.utc(e).format()}},{key:"onClickCalendarIcon",value:function(){if(this.options.editable)return this.getUI("date").datetimepicker("toggle"),!0}},{key:"onClearDate",value:function(){return!this.options.allowClearDate||(this.model.set(N({},"".concat(this.options.modelAttr),null)),!0)}},{key:"onKeyDownDate",value:function(e){this.options.allowTextInput||e.preventDefault()}},{key:"renderClearDateButton",value:function(){this.showChildView("clearButton",new C({channelName:this.channelName,shouldRender:this.options.allowClearDate&&!!this.model.get("dateBroadcast")}))}},{key:"viewOptions",value:function(){return{styles:o.extend(_.a,R.a),label:this.options.label,modelAttr:this.options.modelAttr,instanceClass:this.getInstanceClassName(),placeholderText:this.options.placeholderText,displayedTimeFormat:this.options.displayedTimeFormat,svgCalendar:d.a.getSvg(d.b.Calendar),svgClear:d.a.getSvg(d.b.Close),editable:this.options.editable}}},{key:"onRender",value:function(){this.initDatePicker(),this.renderClearDateButton()}}])&&B(n.prototype,t),r&&B(n,r),i}(a.a.Component),F=t(9),U=t(310),Y=t(1266),G=t.n(Y);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 q(e,n){for(var t=0;t<n.length;t++){var o=n[t];o.enumerable=o.enumerable||!1,o.configurable=!0,"value"in o&&(o.writable=!0),Object.defineProperty(e,o.key,o)}}function J(e,n){return(J=Object.setPrototypeOf||function(e,n){return e.__proto__=n,e})(e,n)}function H(e){var n=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(e){return!1}}();return function(){var t,o=K(e);if(n){var r=K(this).constructor;t=Reflect.construct(o,arguments,r)}else t=o.apply(this,arguments);return W(this,t)}}function W(e,n){return!n||"object"!==z(n)&&"function"!=typeof n?function(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}(e):n}function K(e){return(K=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)})(e)}var Z=function(e){!function(e,n){if("function"!=typeof n&&null!==n)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(n&&n.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),n&&J(e,n)}(a,e);var n,t,o,r=H(a);function a(e){return function(e,n){if(!(e instanceof n))throw new TypeError("Cannot call a class as a function")}(this,a),r.call(this,e)}return n=a,(t=[{key:"name",get:function(){return"EditBroadcastComponent"}},{key:"template",get:function(){return G.a}},{key:"lang",get:function(){return"shared.editBroadcast"}},{key:"className",get:function(){return"edit-broadcast"}},{key:"regions",value:function(){return{dateBroadcast:{el:".date-broadcast-region",replaceElement:!0},channelSearch:{el:".channel-search-region",replaceElement:!0}}}},{key:"appLinks",get:function(){return{".suggest-channel":{application:c.b.LIBRARY_EDITOR,action:c.a.LibraryEditor.SUGGEST_AN_EDIT,args:[this.model.get("id")],params:{metadata:O.MetadataType.Channel}}}}},{key:"buildTypeaheadConfig",value:function(){return{name:c.v.ChannelRaw,typeaheadConfig:U.a.getTypeaheadConfig(),bloodhoundConfig:U.a.getBloodhoundConfig()}}},{key:"renderBroadcastDate",value:function(){this.showChildView("dateBroadcast",new V({model:this.model,label:S.a.getPhrase(this.lang,"broadcastDate"),modelAttr:"dateBroadcast",displayedTimeFormat:F.l.FULL_YEAR,placeholderText:this.options.editable?S.a.getPhrase(this.lang,"selectBroadcastDate"):"",allowClearDate:this.options.editable,editable:this.options.editable}))}},{key:"renderChannelTypeahead",value:function(){this.model.get("channel")||this.model.set("channel",new u.a),this.showChildView("channelSearch",new s.a({model:this.model.get("channel"),parentChannelName:this.options.channelName,inputId:"channel-search",selectEvent:"select:channel",placeholderText:this.options.editable?S.a.getPhrase(this.lang,"searchChannels"):"",typeaheadConfigs:this.buildTypeaheadConfig(),callbacks:{onInput:i.a.emitEventOnInput(this.options.channelName,O.LibraryEditorActions.DetectInput,"channel"),onBlur:i.a.resetAssociationOnBlur(this.model.get("channel").toJSON())},editable:this.options.editable,removeEvent:"remove:channel"}))}},{key:"viewOptions",value:function(){return{styles:_.a,editable:this.options.editable}}},{key:"onRender",value:function(){this.renderBroadcastDate(),this.renderChannelTypeahead()}}])&&q(n.prototype,t),o&&q(n,o),a}(a.a.Component),$=t(1267),X=t.n($),Q=t(1268),ee=t.n(Q);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 te(e,n){for(var t=0;t<n.length;t++){var o=n[t];o.enumerable=o.enumerable||!1,o.configurable=!0,"value"in o&&(o.writable=!0),Object.defineProperty(e,o.key,o)}}function oe(e,n){return(oe=Object.setPrototypeOf||function(e,n){return e.__proto__=n,e})(e,n)}function re(e){var n=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(e){return!1}}();return function(){var t,o=ie(e);if(n){var r=ie(this).constructor;t=Reflect.construct(o,arguments,r)}else t=o.apply(this,arguments);return ae(this,t)}}function ae(e,n){return!n||"object"!==ne(n)&&"function"!=typeof n?function(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}(e):n}function ie(e){return(ie=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)})(e)}var le=function(e){!function(e,n){if("function"!=typeof n&&null!==n)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(n&&n.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),n&&oe(e,n)}(a,e);var n,t,o,r=re(a);function a(e){return function(e,n){if(!(e instanceof n))throw new TypeError("Cannot call a class as a function")}(this,a),r.call(this,e)}return n=a,(t=[{key:"name",get:function(){return"ToggleBroadcastComponent"}},{key:"template",get:function(){return X.a}},{key:"lang",get:function(){return"shared.toggleBroadcast"}},{key:"className",get:function(){return"toggle-broadcast"}},{key:"regions",value:function(){return{broadcast:{el:".broadcast-region",replaceElement:!0}}}},{key:"behaviors",get:function(){return this.options.hideToggle?[]:[{behaviorClass:l.a},{behaviorClass:l.f}]}},{key:"bindings",get:function(){return{"[name=toggleBroadcast]":{observe:"hasBroadcast"}}}},{key:"initialize",value:function(){this.listenTo(this.model,"change:hasBroadcast",this.render),this.initBroadcast()}},{key:"initBroadcast",value:function(){var e=this.model.get("channel"),n=this.model.get("dateBroadcast")||e&&e.get("id");this.model.set("hasBroadcast",!!n,{silent:!0})}},{key:"renderEditBroadcast",value:function(){this.model.get("hasBroadcast")||this.options.hideToggle?this.showChildView("broadcast",new Z({model:this.model,channelName:this.options.channelName,editable:this.options.editable})):this.getRegion("broadcast").empty()}},{key:"viewOptions",value:function(){return Object.assign({styles:ee.a},this.options)}},{key:"onRender",value:function(){this.renderEditBroadcast()}}])&&te(n.prototype,t),o&&te(n,o),a}(a.a.Component),se=t(30),ue=t(262),ce=t(13),pe=t(1041),de=t(1269),fe=t.n(de),he=t(1270),me=t.n(he),ge=t(1271),ye=t.n(ge);function be(e){return(be="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 ve(e,n){if(!(e instanceof n))throw new TypeError("Cannot call a class as a function")}function ke(e,n){for(var t=0;t<n.length;t++){var o=n[t];o.enumerable=o.enumerable||!1,o.configurable=!0,"value"in o&&(o.writable=!0),Object.defineProperty(e,o.key,o)}}function we(e,n,t){return n&&ke(e.prototype,n),t&&ke(e,t),e}function Ee(e,n){if("function"!=typeof n&&null!==n)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(n&&n.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),n&&Ce(e,n)}function Ce(e,n){return(Ce=Object.setPrototypeOf||function(e,n){return e.__proto__=n,e})(e,n)}function Se(e){var n=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(e){return!1}}();return function(){var t,o=xe(e);if(n){var r=xe(this).constructor;t=Reflect.construct(o,arguments,r)}else t=o.apply(this,arguments);return Oe(this,t)}}function Oe(e,n){return!n||"object"!==be(n)&&"function"!=typeof n?function(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}(e):n}function xe(e){return(xe=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)})(e)}var Te=function(e){Ee(t,e);var n=Se(t);function t(e){var o;return ve(this,t),(o=n.call(this,e)).showSpinner=!1,o.disableBtn=!0,o}return we(t,[{key:"initialize",value:function(){this.bindListeners()}},{key:"name",get:function(){return"CreateSeasonComponent"}},{key:"template",get:function(){return fe.a}},{key:"className",get:function(){return"px-2"}},{key:"bindings",get:function(){return{"[name=number]":{observe:"number",setOptions:{validate:!0}}}}},{key:"regions",value:function(){return{button:{el:".button-region",replaceElement:!0}}}},{key:"behaviors",get:function(){return[{behaviorClass:l.f},{behaviorClass:l.a}]}},{key:"bindListeners",value:function(){this.listenTo(this.model,"change",this.onChange),this.listenTo(this.options.channelName,"create:season",this.onCreateSeason),this.listenTo(c.e.SERIES,"".concat(c.f.CREATE_SEASON,":").concat(this.options.seriesId,":sync"),this.onSync)}},{key:"onChange",value:function(){this.disableBtn=!this.model.isValid(),this.renderButton()}},{key:"onCreateSeason",value:function(){this.disableBtn||(this.model.validate(),this.model.isValid()&&(this.showSpinner=!0,this.renderButton(),this.model.set("number",parseInt(this.model.get("number"))),r.Radio.channel(this.options.channelName).trigger("select:season",this.model.toJSON())))}},{key:"onSync",value:function(){this.disableBtn=!0,this.showSpinner=!1,this.model.clear(),this.renderButton()}},{key:"viewOptions",value:function(){return{model:this.model,show:this.options.show}}},{key:"renderButton",value:function(){this.options.show&&this.showChildView("button",new ue.a({channelName:this.options.channelName,saveEvent:"create:season",extraButtonClass:"btn btn-primary",buttonText:"Create",buttonType:"submit",showSpinner:this.showSpinner,disabled:this.disableBtn,spinnerOptions:{size:ce.s.Small}}))}},{key:"onRender",value:function(){this.stickit(),this.renderButton()}},{key:"onClose",value:function(){this.unstickit()}}]),t}(a.a.Component),Ie=function(e){Ee(t,e);var n=Se(t);function t(e){return ve(this,t),n.call(this,e)}return we(t,[{key:"initialize",value:function(){this.model.get("season.id")&&ce.c.setSelected(this.model.get("season.id"),this.collection),this.viewModel=se.a.get("".concat(this.name,":").concat(this.model.get("id"))),this.options.disabled||this.viewModel.addValidation(pe.e)}},{key:"name",get:function(){return"EditSeasonInfoComponent"}},{key:"template",get:function(){return me.a}},{key:"className",get:function(){return ye.a.seasonContainer}},{key:"lang",get:function(){return"shared.editSeasonInfo"}},{key:"events",value:function(){return{"click .dropdown-btn":"onToggleDropdown","click .dropdown-menu":"onClickPopover","click .create":"onClickCreateNewSeason","change .custom-select":"onSelectOption","click .remove":"onClickRemove"}}},{key:"elements",get:function(){return{dropdownBtn:".dropdown-btn"}}},{key:"regions",value:function(){return{create:{el:".create-region",replaceElement:!0}}}},{key:"onToggleDropdown",value:function(e){this.options.disabled?e.stopPropagation():this.renderCreate()}},{key:"onClickPopover",value:function(e){e.stopPropagation()}},{key:"onClickCreateNewSeason",value:function(e){e.preventDefault(),this.showCreateForm=!0,this.renderCreate()}},{key:"onSelectOption",value:function(e){var n=e.target.value,t="-1"===n?null:this.collection.findWhere({number:+n}).toJSON();this.setButtonText(n),r.Radio.channel(this.options.channelName).trigger("select:season",t),this.showCreateForm=!1,this.render()}},{key:"onClickRemove",value:function(e){e.stopPropagation(),r.Radio.channel(this.options.channelName).trigger("select:season",null),this.showCreateForm=!1,this.render()}},{key:"setButtonText",value:function(e){if(this.options.isSuggestEdit){var n=e&&"-1"!==e?S.a.getPhrase(this.lang,"season",{number:e}):"";this.getUI("dropdownBtn").text(n)}else{var t=e&&"-1"!==e?"season":"placeholder";this.getUI("dropdownBtn").text(S.a.getPhrase(this.lang,t,{number:e}))}}},{key:"renderCreate",value:function(){this.showChildView("create",new Te({model:this.viewModel,channelName:this.options.channelName,show:this.showCreateForm,seriesId:this.model.get("series.id")}))}},{key:"viewOptions",value:function(){return{styles:ye.a,disabled:this.options.disabled,seasons:this.collection.toJSON(),svgRemove:d.a.getSvg(d.b.Close),showRemoveIcon:!!this.model.get("season.id")&&!this.options.isSuggestEdit}}},{key:"onRender",value:function(){this.renderCreate(),this.setButtonText(this.model.get("season.number"))}}]),t}(a.a.Component),Re=t(316),Pe=t(1272),_e=t.n(Pe),De=t(1273),Ne=t.n(De);function Be(e){return(Be="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 je(e,n){for(var t=0;t<n.length;t++){var o=n[t];o.enumerable=o.enumerable||!1,o.configurable=!0,"value"in o&&(o.writable=!0),Object.defineProperty(e,o.key,o)}}function Ae(e,n){return(Ae=Object.setPrototypeOf||function(e,n){return e.__proto__=n,e})(e,n)}function Le(e){var n=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(e){return!1}}();return function(){var t,o=Ve(e);if(n){var r=Ve(this).constructor;t=Reflect.construct(o,arguments,r)}else t=o.apply(this,arguments);return Me(this,t)}}function Me(e,n){return!n||"object"!==Be(n)&&"function"!=typeof n?function(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}(e):n}function Ve(e){return(Ve=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)})(e)}t.d(n,"a",(function(){return Fe}));var Fe=function(e){!function(e,n){if("function"!=typeof n&&null!==n)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(n&&n.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),n&&Ae(e,n)}(d,e);var n,t,u,p=Le(d);function d(e){return function(e,n){if(!(e instanceof n))throw new TypeError("Cannot call a class as a function")}(this,d),p.call(this,e)}return n=d,(t=[{key:"initialize",value:function(){this.listenTo(this.options.channelName,"select:season",this.onSelectSeason),this.listenTo(this.options.channelName,"clear:series",this.onSeriesChange),this.listenTo(this.model,"change:series",this.onSeriesChange),this.lockSeasonAndEpisode=!this.options.editable||!this.model.get("series.id")}},{key:"name",get:function(){return"EditAdditionalInfoComponent"}},{key:"tagName",get:function(){return"form"}},{key:"lang",get:function(){return"shared.editAdditionalInfo"}},{key:"template",get:function(){return _e.a}},{key:"className",get:function(){return"edit-additional-info border-top pt-3"}},{key:"events",value:function(){return{submit:function(e){return e.preventDefault()}}}},{key:"elements",get:function(){return{episodeNumberField:".episode-number",seriesTypeahead:".tt-input"}}},{key:"appLinks",get:function(){return{".suggest-series-title":{application:c.b.LIBRARY_EDITOR,action:c.a.LibraryEditor.SUGGEST_AN_EDIT,args:[this.model.get("id")],params:{metadata:O.MetadataType.SeriesTitle}},".suggest-season-number":{application:c.b.LIBRARY_EDITOR,action:c.a.LibraryEditor.SUGGEST_AN_EDIT,args:[this.model.get("id")],params:{metadata:O.MetadataType.Season}},".suggest-episode-number":{application:c.b.LIBRARY_EDITOR,action:c.a.LibraryEditor.SUGGEST_AN_EDIT,args:[this.model.get("id")],params:{metadata:O.MetadataType.EpisodeNumber}}}}},{key:"regions",value:function(){return{series:{el:".edit-series-region",replaceElement:!0},season:{el:".edit-season-region",replaceElement:!0},broadcast:{el:".edit-broadcast-region",replaceElement:!0}}}},{key:"behaviors",get:function(){return[{behaviorClass:l.f},{behaviorClass:l.a}]}},{key:"bindings",get:function(){return{"[name=episodeNumber]":{observe:"episodeNumber",setOptions:{validate:!0},onSet:function(e){return e?+e:null}}}}},{key:"onSelectSeason",value:function(e){e&&this.getUI("episodeNumberField").focus(),r.Radio.channel(this.options.channelName).trigger("add:season",e)}},{key:"onSeriesChange",value:function(e){this.lockSeasonAndEpisode=!e||!e.get("id"),this.renderEditSeason();var n=this.getUI("episodeNumberField");this.lockSeasonAndEpisode?(n.attr("disabled","disabled"),n.attr("class","form-control ".concat(Ne.a.disabled))):(n.removeAttr("disabled"),n.attr("class","form-control"))}},{key:"getLibraryIds",value:function(e){return e&&e.map((function(e){return e.id})).join(",")}},{key:"getTypeaheadConfigs",value:function(){var e=ce.m.getTypeaheadConfig(),n=ce.m.getBloodhoundConfig(),t={newType:c.v.Series},o={newType:c.v.Series,footerTemplate:i.a.getConfirmSelectionTemplate()};return[{name:c.v.Series,typeaheadConfig:e,bloodhoundConfig:n,options:{hideEmptyResults:!0}},{name:"add-new",typeaheadConfig:e,bloodhoundConfig:n,options:t},{name:"empty-suggestion",typeaheadConfig:e,bloodhoundConfig:n,options:o}]}},{key:"renderSeriesTypeahead",value:function(){var e=this.model.series||new a.a.Model;this.showChildView("series",new s.a({model:e,editable:this.options.editable,parentChannelName:this.options.channelName,inputId:"series-search",selectEvent:"select:series",placeholderText:this.options.editable?S.a.getPhrase(this.lang,"searchSeries"):"",typeaheadConfigs:this.getTypeaheadConfigs(),typeaheadOptions:{hint:!1},callbacks:{onRender:i.a.selectFirstResult,onInput:i.a.emitEventOnInput(this.options.channelName,O.LibraryEditorActions.DetectInput,"series"),onBlur:i.a.resetAssociationOnBlur(e.toJSON())},removeEvent:"remove:series"}))}},{key:"renderEditSeason",value:function(){var e=this,n=this.model.get("series.seasons")||new Re.a,t=new Re.a(n.map((function(n){return n.set("displayName",S.a.getPhrase(e.lang,"seasonNumber",{number:n.get("number")}))})));this.showChildView("season",new Ie({model:this.model,collection:t,channelName:this.options.channelName,disabled:!this.options.editable||this.lockSeasonAndEpisode,isSuggestEdit:!this.options.editable}))}},{key:"renderEditBroadcast",value:function(){this.showChildView("broadcast",new le({model:this.model,channelName:this.options.channelName,hideToggle:!0,editable:this.options.editable}))}},{key:"viewOptions",value:function(){return{styles:o.extend({},_.a,Ne.a),editable:this.options.editable,lockEpisodeNumber:this.lockSeasonAndEpisode,episodeNumberPlaceholderText:this.options.editable?S.a.getPhrase(this.lang,"epNumberPlaceholder"):""}}},{key:"onRender",value:function(){this.stickit(),r.Validation.bind(this),this.renderSeriesTypeahead(),this.renderEditSeason(),this.renderEditBroadcast()}},{key:"onClose",value:function(){this.unstickit(),r.Validation.unbind(this)}}])&&je(n.prototype,t),u&&je(n,u),d}(a.a.Component)},1202:function(e,n,t){"use strict";var o=t(1),r=t(6),a=t(2),i=t(17),l=t(98),s=t(301),u=t(0),c=t(3),p=t(1102),d=t(195),f=t(1260),h=t.n(f);function m(e){return(m="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 g(e,n){if(!(e instanceof n))throw new TypeError("Cannot call a class as a function")}function y(e,n){for(var t=0;t<n.length;t++){var o=n[t];o.enumerable=o.enumerable||!1,o.configurable=!0,"value"in o&&(o.writable=!0),Object.defineProperty(e,o.key,o)}}function b(e,n,t){return n&&y(e.prototype,n),t&&y(e,t),e}function v(e,n){if("function"!=typeof n&&null!==n)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(n&&n.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),n&&k(e,n)}function k(e,n){return(k=Object.setPrototypeOf||function(e,n){return e.__proto__=n,e})(e,n)}function w(e){var n=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(e){return!1}}();return function(){var t,o=C(e);if(n){var r=C(this).constructor;t=Reflect.construct(o,arguments,r)}else t=o.apply(this,arguments);return E(this,t)}}function E(e,n){return!n||"object"!==m(n)&&"function"!=typeof n?function(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}(e):n}function C(e){return(C=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)})(e)}var S=function(e){v(t,e);var n=w(t);function t(e){return g(this,t),n.call(this,e)}return b(t,[{key:"name",get:function(){return"TypeaheadListComponentCollection"}},{key:"childViewOptions",get:function(){return Object.assign({},this.options)}},{key:"childView",get:function(){return O}}]),t}(a.a.ComponentCollection),O=function(e){v(t,e);var n=w(t);function t(e){return g(this,t),n.call(this,e)}return b(t,[{key:"name",get:function(){return"TypeaheadListComponent"}},{key:"template",get:function(){return h.a}},{key:"modelId",get:function(){return this.model.get("id")||"new-model"}},{key:"bindings",get:function(){return e={},n="[name=".concat(this.modelId,"]"),t={observe:"name",setOptions:{validate:!0}},n in e?Object.defineProperty(e,n,{value:t,enumerable:!0,configurable:!0,writable:!0}):e[n]=t,e;var e,n,t}},{key:"regions",value:function(){return{typeahead:{el:".typeahead-region",replaceElement:!1}}}},{key:"renderTypeahead",value:function(){this.showChildView("typeahead",new p.a({model:this.model,parentChannelName:this.options.channelName,inputId:this.options.inputId,selectEvent:this.options.selectEvent,typeaheadConfigs:this.options.typeaheadConfig,placeholderText:this.options.editable?this.options.placeholderText:"",callbacks:{onRender:l.a.selectFirstResult,onInput:l.a.emitEventOnInput(this.options.channelName,d.LibraryEditorActions.DetectInput,this.options.modelType,{isCollection:!0})},editable:this.options.editable,actionOptions:{clearOnSelect:!0},removeEvent:this.options.removeEvent,forceShowRemoveButton:this.collection.length>1||!!this.model.get("name")}))}},{key:"viewOptions",value:function(){return{id:this.modelId}}},{key:"onRender",value:function(){this.renderTypeahead()}}]),t}(a.a.Component),x=t(310),T=t(9),I=t(691),R=t(690),P=t(692),_=t(693),D=t(1261),N=t.n(D),B=t(1101),j=t.n(B);function A(e){return(A="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 L(e,n){for(var t=0;t<n.length;t++){var o=n[t];o.enumerable=o.enumerable||!1,o.configurable=!0,"value"in o&&(o.writable=!0),Object.defineProperty(e,o.key,o)}}function M(e,n){return(M=Object.setPrototypeOf||function(e,n){return e.__proto__=n,e})(e,n)}function V(e){var n=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(e){return!1}}();return function(){var t,o=U(e);if(n){var r=U(this).constructor;t=Reflect.construct(o,arguments,r)}else t=o.apply(this,arguments);return F(this,t)}}function F(e,n){return!n||"object"!==A(n)&&"function"!=typeof n?function(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}(e):n}function U(e){return(U=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)})(e)}t.d(n,"a",(function(){return Y}));var Y=function(e){!function(e,n){if("function"!=typeof n&&null!==n)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(n&&n.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),n&&M(e,n)}(f,e);var n,t,a,p=V(f);function f(e){return function(e,n){if(!(e instanceof n))throw new TypeError("Cannot call a class as a function")}(this,f),p.call(this,e)}return n=f,(t=[{key:"initialize",value:function(){var e=this.options.channelName;this.listenTo(e,"select:distributor",this.onSelectDistributor),this.listenTo(e,"select:production:company",this.onSelectProductionCompany),this.listenTo(e,"select:director",this.onSelectDirector),this.listenTo(e,"select:producer",this.onSelectProducer),this.listenTo(e,"remove:distributor",this.onRemoveDistributor),this.listenTo(e,"remove:production:company",this.onRemoveProductionCompany),this.listenTo(e,"remove:director",this.onRemoveDirector),this.listenTo(e,"remove:producer",this.onRemoveProducer)}},{key:"name",get:function(){return"EditProductionInfoComponent"}},{key:"tagName",get:function(){return"form"}},{key:"template",get:function(){return N.a}},{key:"lang",get:function(){return"shared.editProductionInfo"}},{key:"className",get:function(){return"edit-production-info border-top pt-3"}},{key:"elements",get:function(){return{tooltips:".info-tooltip"}}},{key:"events",value:function(){return{submit:function(e){return e.preventDefault()},"click .new-producer":"onClickAddNewProducer","click .new-director":"onClickAddNewDirector","click .new-distributor":"onClickAddNewDistributor","click .new-production-company":"onClickAddNewProductionCompany"}}},{key:"regions",value:function(){return{distributors:{el:".distributor-region",replaceElement:!0},productionCompanies:{el:".production-company-region",replaceElement:!0},directors:{el:".directors-region",replaceElement:!0},producers:{el:".producers-region",replaceElement:!0}}}},{key:"bindings",get:function(){return{"[name=productionYear]":{observe:"productionYear",setOptions:{validate:!0},onSet:function(e){return e}}}}},{key:"behaviors",get:function(){return[{behaviorClass:s.a},{behaviorClass:s.f}]}},{key:"appLinks",get:function(){var e={application:u.b.LIBRARY_EDITOR,action:u.a.LibraryEditor.SUGGEST_AN_EDIT,args:[this.model.get("id")]};return{".suggest-production-year":o.extend({},e,{params:{metadata:d.MetadataType.ProductionYear}}),".suggest-distributors":o.extend({},e,{params:{metadata:d.MetadataType.Distributors}}),".suggest-production-companies":o.extend({},e,{params:{metadata:d.MetadataType.ProductionCompanies}}),".suggest-directors":o.extend({},e,{params:{metadata:d.MetadataType.Directors}}),".suggest-producers":o.extend({},e,{params:{metadata:d.MetadataType.Producers}})}}},{key:"onClickAddNewProducer",value:function(){this.expandPersonList(T.a.Producer)}},{key:"onClickAddNewDirector",value:function(){this.expandPersonList(T.a.Director)}},{key:"onClickAddNewDistributor",value:function(){this.expandPersonList(T.a.Distributor)}},{key:"onClickAddNewProductionCompany",value:function(){this.expandPersonList(T.a.ProductionCompany)}},{key:"expandPersonList",value:function(e){var n=this.model.get(e);5!==n.length&&n.add({}),this.render()}},{key:"onSelectDistributor",value:function(e){this.onSelect(e,T.a.Distributor)}},{key:"onSelectProductionCompany",value:function(e){this.onSelect(e,T.a.ProductionCompany)}},{key:"onSelectDirector",value:function(e){this.onSelect(e,T.a.Director)}},{key:"onSelectProducer",value:function(e){this.onSelect(e,T.a.Producer)}},{key:"onSelect",value:function(e,n){r.Radio.channel(this.options.channelName).trigger("add:".concat(n),e),this.render()}},{key:"onRemoveDistributor",value:function(e){this.onRemove(e,T.a.Distributor)}},{key:"onRemoveProductionCompany",value:function(e){this.onRemove(e,T.a.ProductionCompany)}},{key:"onRemoveDirector",value:function(e){this.onRemove(e,T.a.Director)}},{key:"onRemoveProducer",value:function(e){this.onRemove(e,T.a.Producer)}},{key:"onRemove",value:function(e,n){this.model.get(n).remove(e),r.Radio.channel(this.options.channelName).trigger("remove:".concat(n),e),this.render()}},{key:"buildTypeaheadConfig",value:function(e){var n=x.a.getTypeaheadConfig(),t=x.a.getBloodhoundConfig();return[{name:e,typeaheadConfig:n,bloodhoundConfig:t,options:{hideEmptyResults:!0}},{name:"add-new",typeaheadConfig:n,bloodhoundConfig:t,options:{newType:e}},{name:"empty-suggestion",typeaheadConfig:n,bloodhoundConfig:t,options:{newType:e,footerTemplate:l.a.getConfirmSelectionTemplate()}}]}},{key:"allowAdditional",value:function(e){return!!this.options.editable&&this.model.get(e)&&5!==this.model.get(e).length}},{key:"renderDistributors",value:function(){this.showChildView("distributors",new S({collection:this.model.get("distributors"),channelName:this.options.channelName,typeaheadConfig:this.buildTypeaheadConfig(u.v.Distributors),removeEvent:"remove:distributor",selectEvent:"select:distributor",inputId:"distributor-search",editable:this.options.editable,placeholderText:"Search content distributors",modelType:"distributors"}))}},{key:"renderProductionCompanies",value:function(){this.showChildView("productionCompanies",new S({collection:this.model.get("productionCompanies"),channelName:this.options.channelName,typeaheadConfig:this.buildTypeaheadConfig(u.v.ProductionCompanies),removeEvent:"remove:production:company",selectEvent:"select:production:company",inputId:"production-company-search",editable:this.options.editable,placeholderText:"Search content production companies",modelType:"productionCompanies"}))}},{key:"renderDirectors",value:function(){this.showChildView("directors",new S({collection:this.model.get("directors"),channelName:this.options.channelName,typeaheadConfig:this.buildTypeaheadConfig(u.v.Directors),removeEvent:"remove:director",selectEvent:"select:director",inputId:"director-search",editable:this.options.editable,placeholderText:"Search content directors",modelType:"directors"}))}},{key:"renderProducers",value:function(){this.showChildView("producers",new S({collection:this.model.get("producers"),channelName:this.options.channelName,typeaheadConfig:this.buildTypeaheadConfig(u.v.Producers),removeEvent:"remove:producer",selectEvent:"select:producer",inputId:"producer-search",editable:this.options.editable,placeholderText:"Search content producers",modelType:"producers"}))}},{key:"onBeforeRender",value:function(){this.model.get("distributors")||this.model.set("distributors",new I.a([{}])),this.model.get("productionCompanies")||this.model.set("productionCompanies",new P.a([{}])),this.model.get("directors")||this.model.set("directors",new _.a([{}])),this.model.get("producers")||this.model.set("producers",new R.a([{}])),this.model.get("distributors").length||this.model.get("distributors").add({}),this.model.get("productionCompanies").length||this.model.get("productionCompanies").add({}),this.model.get("directors").length||this.model.get("directors").add({}),this.model.get("producers").length||this.model.get("producers").add({})}},{key:"viewOptions",value:function(){return{styles:j.a,editable:this.options.editable,productionYearPlaceholderText:this.options.editable?c.a.getPhrase(this.lang,"productionYearPlaceholder"):"",allowAdditionalDirector:this.allowAdditional(T.a.Director),allowAdditionalProducer:this.allowAdditional(T.a.Producer),allowAdditionalDistributor:this.allowAdditional(T.a.Distributor),allowAdditionalProductionCompany:this.allowAdditional(T.a.ProductionCompany),infoSvg:i.a.getSvg(i.b.Info)}}},{key:"onRender",value:function(){this.renderDistributors(),this.renderProductionCompanies(),this.renderDirectors(),this.renderProducers(),this.getUI("tooltips").tooltip()}},{key:"onBeforeDestroy",value:function(){this.getUI("tooltips").tooltip("dispose")}}])&&L(n.prototype,t),a&&L(n,a),f}(a.a.Component)},1257:function(e,n,t){var o=t(10);e.exports=(o.default||o).template({1:function(e,n,t,o,r){return"required"},3:function(e,n,t,o,r){return"readonly"},5:function(e,n,t,o,r){return"disabled"},compiler:[8,">= 4.3.0"],main:function(e,n,t,o,r){e.propertyIsEnumerable;var a,i=e.lambda,l=e.escapeExpression,s=null!=n?n:e.nullContext||{};return'<textarea\r\n name="'+l(i(null!=(a=null!=n?n.options:n)?a.name:a,n))+'"\r\n id="'+l(i(null!=(a=null!=n?n.options:n)?a.id:a,n))+'"\r\n autocomplete="false"\r\n class="'+l(i(null!=(a=null!=n?n.options:n)?a.class:a,n))+" event-selector "+l(i(null!=(a=null!=(a=null!=n?n.options:n)?a.styles:a)?a.resizingTextarea:a,n))+'"\r\n placeholder="'+l(i(null!=(a=null!=n?n.options:n)?a.placeholder:a,n))+'"\r\n '+(null!=(a=t.if.call(s,null!=(a=null!=n?n.options:n)?a.required:a,{name:"if",hash:{},fn:e.program(1,r,0),inverse:e.noop,data:r}))?a:"")+"\r\n "+(null!=(a=t.if.call(s,null!=(a=null!=n?n.options:n)?a.readonly:a,{name:"if",hash:{},fn:e.program(3,r,0),inverse:e.noop,data:r}))?a:"")+"\r\n "+(null!=(a=t.if.call(s,null!=(a=null!=n?n.options:n)?a.disabled:a,{name:"if",hash:{},fn:e.program(5,r,0),inverse:e.noop,data:r}))?a:"")+"\r\n></textarea>"},useData:!0})},1258:function(e,n,t){e.exports={resizingTextarea:"qKxbV"}},1259:function(e,n,t){var o=t(10);e.exports=(o.default||o).template({1:function(e,n,t,o,r){return"d-inline-block"},3:function(e,n,t,o,r){e.propertyIsEnumerable;var a,i=null!=n?n:e.nullContext||{},l=e.lambda,s=e.escapeExpression;return" "+(null!=(a=t.if.call(i,null!=(a=null!=n?n.options:n)?a.showingSaveButton:a,{name:"if",hash:{},fn:e.program(4,r,0),inverse:e.noop,data:r}))?a:"")+'\r\n <a class="'+(null!=(a=t.unless.call(i,null!=(a=null!=n?n.options:n)?a.showingSaveButton:a,{name:"unless",hash:{},fn:e.program(6,r,0),inverse:e.noop,data:r}))?a:"")+'cursor-pointer applink-publisher-video">\r\n <span class="d-inline-block align-middle '+s(l(null!=(a=null!=(a=null!=n?n.options:n)?a.styles:a)?a.icon:a,n))+'">'+(null!=(a=l(null!=(a=null!=n?n.options:n)?a.publisherArchiveSvg:a,n))?a:"")+"</span> "+s((t.lang||n&&n.lang||e.hooks.helperMissing).call(i,"viewInPublisherArchive",{name:"lang",hash:{},data:r}))+"\r\n </a>\r\n"},4:function(e,n,t,o,r){return"-"},6:function(e,n,t,o,r){return"float-right "},8:function(e,n,t,o,r){var a;e.propertyIsEnumerable;return e.escapeExpression(e.lambda(null!=(a=null!=(a=null!=n?n.options:n)?a.styles:a)?a.programTitle:a,n))},10:function(e,n,t,o,r){var a;e.propertyIsEnumerable;return'<span class="'+e.escapeExpression(e.lambda(null!=(a=null!=(a=null!=n?n.options:n)?a.styles:a)?a.requiredStar:a,n))+'">*</span>'},12:function(e,n,t,o,r){e.propertyIsEnumerable;var a,i=e.escapeExpression;return'<span class="'+i(e.lambda(null!=(a=null!=(a=null!=n?n.options:n)?a.styles:a)?a.suggestEdit:a,n))+'">- <a class="suggest-title">'+i((t.lang||n&&n.lang||e.hooks.helperMissing).call(null!=n?n:e.nullContext||{},"suggestEdit",{name:"lang",hash:{},data:r}))+"</a></span>"},14:function(e,n,t,o,r){var a;e.propertyIsEnumerable;return e.escapeExpression(e.lambda(null!=(a=null!=(a=null!=n?n.options:n)?a.styles:a)?a.disabled:a,n))},16:function(e,n,t,o,r){return"disabled"},18:function(e,n,t,o,r){var a;e.propertyIsEnumerable;return e.escapeExpression(e.lambda(null!=(a=null!=(a=null!=n?n.options:n)?a.styles:a)?a.description:a,n))},20:function(e,n,t,o,r){e.propertyIsEnumerable;var a,i=e.escapeExpression;return'<span class="'+i(e.lambda(null!=(a=null!=(a=null!=n?n.options:n)?a.styles:a)?a.suggestEdit:a,n))+'">- <a class="suggest-description">'+i((t.lang||n&&n.lang||e.hooks.helperMissing).call(null!=n?n:e.nullContext||{},"suggestEdit",{name:"lang",hash:{},data:r}))+"</a></span>"},compiler:[8,">= 4.3.0"],main:function(e,n,t,o,r){e.propertyIsEnumerable;var a,i=null!=n?n:e.nullContext||{},l=e.hooks.helperMissing,s=e.escapeExpression;return'<div class="position-relative '+(null!=(a=t.if.call(i,null!=(a=null!=n?n.options:n)?a.showingSaveButton:a,{name:"if",hash:{},fn:e.program(1,r,0),inverse:e.noop,data:r}))?a:"")+'">\r\n <h5 class="d-inline-block">'+s((t.lang||n&&n.lang||l).call(i,"heading",{name:"lang",hash:{},data:r}))+"</h5>\r\n\r\n"+(null!=(a=t.if.call(i,null!=(a=null!=n?n.options:n)?a.showPublisherVideoDetails:a,{name:"if",hash:{},fn:e.program(3,r,0),inverse:e.noop,data:r}))?a:"")+'</div>\r\n<div class="form-group '+(null!=(a=t.unless.call(i,null!=(a=null!=n?n.options:n)?a.editable:a,{name:"unless",hash:{},fn:e.program(8,r,0),inverse:e.noop,data:r}))?a:"")+'">\r\n <label for="edit-title">'+s((t.lang||n&&n.lang||l).call(i,"title",{name:"lang",hash:{},data:r}))+(null!=(a=t.if.call(i,null!=(a=null!=(a=null!=n?n.options:n)?a.requiredFields:a)?a.programTitle:a,{name:"if",hash:{},fn:e.program(10,r,0),inverse:e.noop,data:r}))?a:"")+"</label>\r\n "+(null!=(a=t.unless.call(i,null!=(a=null!=n?n.options:n)?a.editable:a,{name:"unless",hash:{},fn:e.program(12,r,0),inverse:e.noop,data:r}))?a:"")+'\r\n <input\r\n name="name"\r\n type="text"\r\n class="form-control '+(null!=(a=t.unless.call(i,null!=(a=null!=n?n.options:n)?a.editable:a,{name:"unless",hash:{},fn:e.program(14,r,0),inverse:e.noop,data:r}))?a:"")+'"\r\n placeholder="'+s((t.lang||n&&n.lang||l).call(i,"titlePlaceholder",{name:"lang",hash:{},data:r}))+'"\r\n id="edit-title"\r\n autocomplete="off"\r\n '+(null!=(a=t.unless.call(i,null!=(a=null!=n?n.options:n)?a.editable:a,{name:"unless",hash:{},fn:e.program(16,r,0),inverse:e.noop,data:r}))?a:"")+'\r\n >\r\n <div class="form-feedback"></div>\r\n</div>\r\n<div class="form-group '+(null!=(a=t.unless.call(i,null!=(a=null!=n?n.options:n)?a.editable:a,{name:"unless",hash:{},fn:e.program(18,r,0),inverse:e.noop,data:r}))?a:"")+'">\r\n <label for="edit-description">'+s((t.lang||n&&n.lang||l).call(i,"description",{name:"lang",hash:{},data:r}))+"</label>\r\n "+(null!=(a=t.unless.call(i,null!=(a=null!=n?n.options:n)?a.editable:a,{name:"unless",hash:{},fn:e.program(20,r,0),inverse:e.noop,data:r}))?a:"")+'\r\n <div class="description-region"></div>\r\n <div class="form-feedback"></div>\r\n</div>\r\n<div class="ratings-region"></div>'},useData:!0})},1260:function(e,n,t){var o=t(10);e.exports=(o.default||o).template({compiler:[8,">= 4.3.0"],main:function(e,n,t,o,r){var a;e.propertyIsEnumerable;return'<div class="typeahead-region '+e.escapeExpression(e.lambda(null!=(a=null!=(a=null!=n?n.options:n)?a.styles:a)?a.typeahead:a,n))+'"></div>'},useData:!0})},1261:function(e,n,t){var o=t(10);e.exports=(o.default||o).template({1:function(e,n,t,o,r){var a;e.propertyIsEnumerable;return e.escapeExpression(e.lambda(null!=(a=null!=(a=null!=n?n.options:n)?a.styles:a)?a.productionYear:a,n))},3:function(e,n,t,o,r){e.propertyIsEnumerable;var a,i=e.escapeExpression;return'<span class="'+i(e.lambda(null!=(a=null!=(a=null!=n?n.options:n)?a.styles:a)?a.suggestEdit:a,n))+'">- <a class="suggest-production-year">'+i((t.lang||n&&n.lang||e.hooks.helperMissing).call(null!=n?n:e.nullContext||{},"suggestEdit",{name:"lang",hash:{},data:r}))+"</a></span>"},5:function(e,n,t,o,r){var a;e.propertyIsEnumerable;return e.escapeExpression(e.lambda(null!=(a=null!=(a=null!=n?n.options:n)?a.styles:a)?a.disabled:a,n))},7:function(e,n,t,o,r){return"disabled"},9:function(e,n,t,o,r){var a;e.propertyIsEnumerable;return e.escapeExpression(e.lambda(null!=(a=null!=(a=null!=n?n.options:n)?a.styles:a)?a.productionCompanies:a,n))},11:function(e,n,t,o,r){e.propertyIsEnumerable;var a,i=e.escapeExpression;return'<span class="'+i(e.lambda(null!=(a=null!=(a=null!=n?n.options:n)?a.styles:a)?a.suggestEdit:a,n))+'">- <a class="suggest-production-companies">'+i((t.lang||n&&n.lang||e.hooks.helperMissing).call(null!=n?n:e.nullContext||{},"suggestEdit",{name:"lang",hash:{},data:r}))+"</a></span>"},13:function(e,n,t,o,r){e.propertyIsEnumerable;return' <p class="info-link pb-0 new-production-company">'+e.escapeExpression((t.lang||n&&n.lang||e.hooks.helperMissing).call(null!=n?n:e.nullContext||{},"newProductionCompany",{name:"lang",hash:{},data:r}))+"</p>\r\n"},15:function(e,n,t,o,r){var a;e.propertyIsEnumerable;return e.escapeExpression(e.lambda(null!=(a=null!=(a=null!=n?n.options:n)?a.styles:a)?a.distributors:a,n))},17:function(e,n,t,o,r){e.propertyIsEnumerable;var a,i=e.escapeExpression;return'<span class="'+i(e.lambda(null!=(a=null!=(a=null!=n?n.options:n)?a.styles:a)?a.suggestEdit:a,n))+'">- <a class="suggest-distributors">'+i((t.lang||n&&n.lang||e.hooks.helperMissing).call(null!=n?n:e.nullContext||{},"suggestEdit",{name:"lang",hash:{},data:r}))+"</a></span>"},19:function(e,n,t,o,r){e.propertyIsEnumerable;return' <p class="info-link pb-0 new-distributor">'+e.escapeExpression((t.lang||n&&n.lang||e.hooks.helperMissing).call(null!=n?n:e.nullContext||{},"newDistributor",{name:"lang",hash:{},data:r}))+"</p>\r\n"},21:function(e,n,t,o,r){var a;e.propertyIsEnumerable;return e.escapeExpression(e.lambda(null!=(a=null!=(a=null!=n?n.options:n)?a.styles:a)?a.producers:a,n))},23:function(e,n,t,o,r){e.propertyIsEnumerable;var a,i=e.escapeExpression;return'<span class="'+i(e.lambda(null!=(a=null!=(a=null!=n?n.options:n)?a.styles:a)?a.suggestEdit:a,n))+'">- <a class="suggest-producers">'+i((t.lang||n&&n.lang||e.hooks.helperMissing).call(null!=n?n:e.nullContext||{},"suggestEdit",{name:"lang",hash:{},data:r}))+"</a></span>"},25:function(e,n,t,o,r){e.propertyIsEnumerable;return' <p class="info-link pb-0 new-producer">'+e.escapeExpression((t.lang||n&&n.lang||e.hooks.helperMissing).call(null!=n?n:e.nullContext||{},"newProducer",{name:"lang",hash:{},data:r}))+"</p>\r\n"},27:function(e,n,t,o,r){var a;e.propertyIsEnumerable;return e.escapeExpression(e.lambda(null!=(a=null!=(a=null!=n?n.options:n)?a.styles:a)?a.directors:a,n))},29:function(e,n,t,o,r){e.propertyIsEnumerable;var a,i=e.escapeExpression;return'<span class="'+i(e.lambda(null!=(a=null!=(a=null!=n?n.options:n)?a.styles:a)?a.suggestEdit:a,n))+'">- <a class="suggest-directors">'+i((t.lang||n&&n.lang||e.hooks.helperMissing).call(null!=n?n:e.nullContext||{},"suggestEdit",{name:"lang",hash:{},data:r}))+"</a></span>"},31:function(e,n,t,o,r){e.propertyIsEnumerable;return' <p class="info-link pb-0 new-director">'+e.escapeExpression((t.lang||n&&n.lang||e.hooks.helperMissing).call(null!=n?n:e.nullContext||{},"newDirector",{name:"lang",hash:{},data:r}))+"</p>\r\n"},compiler:[8,">= 4.3.0"],main:function(e,n,t,o,r){e.propertyIsEnumerable;var a,i=null!=n?n:e.nullContext||{},l=e.hooks.helperMissing,s=e.escapeExpression,u=e.lambda;return"<h5>"+s((t.lang||n&&n.lang||l).call(i,"heading",{name:"lang",hash:{},data:r}))+'</h5>\r\n\r\n<div class="container-fluid p-0">\r\n <div class="row">\r\n <div class="form-group col-4 pr-0 '+(null!=(a=t.unless.call(i,null!=(a=null!=n?n.options:n)?a.editable:a,{name:"unless",hash:{},fn:e.program(1,r,0),inverse:e.noop,data:r}))?a:"")+'">\r\n <label for="edit-production-year">'+s((t.lang||n&&n.lang||l).call(i,"productionYear",{name:"lang",hash:{},data:r}))+"</label>\r\n "+(null!=(a=t.unless.call(i,null!=(a=null!=n?n.options:n)?a.editable:a,{name:"unless",hash:{},fn:e.program(3,r,0),inverse:e.noop,data:r}))?a:"")+'\r\n <input\r\n name="productionYear"\r\n type="number"\r\n class="form-control '+(null!=(a=t.unless.call(i,null!=(a=null!=n?n.options:n)?a.editable:a,{name:"unless",hash:{},fn:e.program(5,r,0),inverse:e.noop,data:r}))?a:"")+'"\r\n id="edit-production-year"\r\n placeholder="'+s(u(null!=(a=null!=n?n.options:n)?a.productionYearPlaceholderText:a,n))+'"\r\n autocomplete="off"\r\n '+(null!=(a=t.unless.call(i,null!=(a=null!=n?n.options:n)?a.editable:a,{name:"unless",hash:{},fn:e.program(7,r,0),inverse:e.noop,data:r}))?a:"")+'\r\n >\r\n <div class="form-feedback"></div>\r\n </div>\r\n </div>\r\n\r\n <div class="row">\r\n <div class="form-group col-6 '+(null!=(a=t.unless.call(i,null!=(a=null!=n?n.options:n)?a.editable:a,{name:"unless",hash:{},fn:e.program(9,r,0),inverse:e.noop,data:r}))?a:"")+'">\r\n <label for="production-company-search">\r\n '+s((t.lang||n&&n.lang||l).call(i,"productionCompanies",{name:"lang",hash:{},data:r}))+'\r\n <span class="'+s(u(null!=(a=null!=(a=null!=n?n.options:n)?a.styles:a)?a.infoSvgContainer:a,n))+' info-tooltip" \r\n title="'+s((t.lang||n&&n.lang||l).call(i,"productionCompanyInfo",{name:"lang",hash:{},data:r}))+'"\r\n >'+(null!=(a=u(null!=(a=null!=n?n.options:n)?a.infoSvg:a,n))?a:"")+"</span>\r\n </label>\r\n "+(null!=(a=t.unless.call(i,null!=(a=null!=n?n.options:n)?a.editable:a,{name:"unless",hash:{},fn:e.program(11,r,0),inverse:e.noop,data:r}))?a:"")+'\r\n <div class="production-company-region"></div>\r\n'+(null!=(a=t.if.call(i,null!=(a=null!=n?n.options:n)?a.allowAdditionalProductionCompany:a,{name:"if",hash:{},fn:e.program(13,r,0),inverse:e.noop,data:r}))?a:"")+' </div>\r\n\r\n <div class="form-group col-6 pr-0 '+(null!=(a=t.unless.call(i,null!=(a=null!=n?n.options:n)?a.editable:a,{name:"unless",hash:{},fn:e.program(15,r,0),inverse:e.noop,data:r}))?a:"")+'">\r\n <label for="distributor-search">\r\n '+s((t.lang||n&&n.lang||l).call(i,"distributors",{name:"lang",hash:{},data:r}))+'\r\n <span class="'+s(u(null!=(a=null!=(a=null!=n?n.options:n)?a.styles:a)?a.infoSvgContainer:a,n))+' info-tooltip"\r\n title="'+s((t.lang||n&&n.lang||l).call(i,"distributorInfo",{name:"lang",hash:{},data:r}))+'"\r\n >'+(null!=(a=u(null!=(a=null!=n?n.options:n)?a.infoSvg:a,n))?a:"")+"</span>\r\n </label>\r\n "+(null!=(a=t.unless.call(i,null!=(a=null!=n?n.options:n)?a.editable:a,{name:"unless",hash:{},fn:e.program(17,r,0),inverse:e.noop,data:r}))?a:"")+'\r\n <div class="distributor-region"></div>\r\n'+(null!=(a=t.if.call(i,null!=(a=null!=n?n.options:n)?a.allowAdditionalDistributor:a,{name:"if",hash:{},fn:e.program(19,r,0),inverse:e.noop,data:r}))?a:"")+' </div>\r\n </div>\r\n\r\n <div class="row">\r\n <div class="form-group col-6 '+(null!=(a=t.unless.call(i,null!=(a=null!=n?n.options:n)?a.editable:a,{name:"unless",hash:{},fn:e.program(21,r,0),inverse:e.noop,data:r}))?a:"")+'">\r\n <label for="producer-search">\r\n '+s((t.lang||n&&n.lang||l).call(i,"producers",{name:"lang",hash:{},data:r}))+'\r\n <span class="'+s(u(null!=(a=null!=(a=null!=n?n.options:n)?a.styles:a)?a.infoSvgContainer:a,n))+' info-tooltip"\r\n title="'+s((t.lang||n&&n.lang||l).call(i,"producerInfo",{name:"lang",hash:{},data:r}))+'"\r\n >'+(null!=(a=u(null!=(a=null!=n?n.options:n)?a.infoSvg:a,n))?a:"")+"</span>\r\n </label>\r\n "+(null!=(a=t.unless.call(i,null!=(a=null!=n?n.options:n)?a.editable:a,{name:"unless",hash:{},fn:e.program(23,r,0),inverse:e.noop,data:r}))?a:"")+'\r\n <div class="producers-region"></div>\r\n'+(null!=(a=t.if.call(i,null!=(a=null!=n?n.options:n)?a.allowAdditionalProducer:a,{name:"if",hash:{},fn:e.program(25,r,0),inverse:e.noop,data:r}))?a:"")+' </div>\r\n\r\n <div class="form-group col-6 pr-0 '+(null!=(a=t.unless.call(i,null!=(a=null!=n?n.options:n)?a.editable:a,{name:"unless",hash:{},fn:e.program(27,r,0),inverse:e.noop,data:r}))?a:"")+'">\r\n <label for="director-search">\r\n '+s((t.lang||n&&n.lang||l).call(i,"directors",{name:"lang",hash:{},data:r}))+'\r\n <span class="'+s(u(null!=(a=null!=(a=null!=n?n.options:n)?a.styles:a)?a.infoSvgContainer:a,n))+' info-tooltip"\r\n title="'+s((t.lang||n&&n.lang||l).call(i,"directorInfo",{name:"lang",hash:{},data:r}))+'"\r\n >'+(null!=(a=u(null!=(a=null!=n?n.options:n)?a.infoSvg:a,n))?a:"")+"</span>\r\n </label>\r\n "+(null!=(a=t.unless.call(i,null!=(a=null!=n?n.options:n)?a.editable:a,{name:"unless",hash:{},fn:e.program(29,r,0),inverse:e.noop,data:r}))?a:"")+'\r\n <div class="directors-region"></div>\r\n'+(null!=(a=t.if.call(i,null!=(a=null!=n?n.options:n)?a.allowAdditionalDirector:a,{name:"if",hash:{},fn:e.program(31,r,0),inverse:e.noop,data:r}))?a:"")+" </div>\r\n </div>\r\n</div>"},useData:!0})},1262:function(e,n,t){var o=t(10);e.exports=(o.default||o).template({compiler:[8,">= 4.3.0"],main:function(e,n,t,o,r){e.propertyIsEnumerable;var a,i=e.lambda;return'<span class="svg-container '+e.escapeExpression(i(null!=(a=null!=(a=null!=n?n.options:n)?a.styles:a)?a.clearSvg:a,n))+' clear-button">'+(null!=(a=i(null!=(a=null!=n?n.options:n)?a.svgClear:a,n))?a:"")+"</span>"},useData:!0})},1263:function(e,n,t){e.exports={clearSvg:"_2-D4Z"}},1264:function(e,n,t){var o=t(10);e.exports=(o.default||o).template({1:function(e,n,t,o,r){e.propertyIsEnumerable;var a,i=e.lambda,l=e.escapeExpression;return' <label for="'+l(i(null!=(a=null!=n?n.options:n)?a.modelAttr:a,n))+'">'+l(i(null!=(a=null!=n?n.options:n)?a.label:a,n))+"</label>\r\n "+(null!=(a=t.unless.call(null!=n?n:e.nullContext||{},null!=(a=null!=n?n.options:n)?a.editable:a,{name:"unless",hash:{},fn:e.program(2,r,0),inverse:e.noop,data:r}))?a:"")+"\r\n"},2:function(e,n,t,o,r){e.propertyIsEnumerable;var a,i=e.escapeExpression;return'<span class="'+i(e.lambda(null!=(a=null!=(a=null!=n?n.options:n)?a.styles:a)?a.suggestEdit:a,n))+'">- <a class="suggest-broadcast-date">'+i((t.lang||n&&n.lang||e.hooks.helperMissing).call(null!=n?n:e.nullContext||{},"suggestEdit",{name:"lang",hash:{},data:r}))+"</a></span>"},4:function(e,n,t,o,r){var a;e.propertyIsEnumerable;return e.escapeExpression(e.lambda(null!=(a=null!=(a=null!=n?n.options:n)?a.styles:a)?a.disabled:a,n))},6:function(e,n,t,o,r){return"disabled"},8:function(e,n,t,o,r){return"cursor-pointer"},compiler:[8,">= 4.3.0"],main:function(e,n,t,o,r){e.propertyIsEnumerable;var a,i=e.lambda,l=e.escapeExpression,s=null!=n?n:e.nullContext||{};return'<div class="'+l(i(null!=(a=null!=(a=null!=n?n.options:n)?a.styles:a)?a.datePicker:a,n))+" "+l(i(null!=(a=null!=(a=null!=n?n.options:n)?a.styles:a)?a.broadcastDate:a,n))+'">\r\n'+(null!=(a=t.if.call(s,null!=(a=null!=n?n.options:n)?a.label:a,{name:"if",hash:{},fn:e.program(1,r,0),inverse:e.noop,data:r}))?a:"")+' <input\r\n name="'+l(i(null!=(a=null!=n?n.options:n)?a.modelAttr:a,n))+'"\r\n class="form-control datetimepicker-input '+l(i(null!=(a=null!=n?n.options:n)?a.instanceClass:a,n))+" "+(null!=(a=t.unless.call(s,null!=(a=null!=n?n.options:n)?a.editable:a,{name:"unless",hash:{},fn:e.program(4,r,0),inverse:e.noop,data:r}))?a:"")+'"\r\n id="'+l(i(null!=(a=null!=n?n.options:n)?a.modelAttr:a,n))+'"\r\n placeholder="'+l(i(null!=(a=null!=n?n.options:n)?a.placeholderText:a,n))+'"\r\n data-toggle="datetimepicker"\r\n data-target=".'+l(i(null!=(a=null!=n?n.options:n)?a.instanceClass:a,n))+'"\r\n autocomplete="off"\r\n '+(null!=(a=t.unless.call(s,null!=(a=null!=n?n.options:n)?a.editable:a,{name:"unless",hash:{},fn:e.program(6,r,0),inverse:e.noop,data:r}))?a:"")+'\r\n />\r\n <span class="clear-button-region clear-svg"></span>\r\n <span class="svg-container '+l(i(null!=(a=null!=(a=null!=n?n.options:n)?a.styles:a)?a.calendarSvg:a,n))+" "+(null!=(a=t.if.call(s,null!=(a=null!=n?n.options:n)?a.editable:a,{name:"if",hash:{},fn:e.program(8,r,0),inverse:e.program(4,r,0),data:r}))?a:"")+'">'+(null!=(a=i(null!=(a=null!=n?n.options:n)?a.svgCalendar:a,n))?a:"")+'</span>\r\n <div class="form-feedback"></div>\r\n</div>'},useData:!0})},1265:function(e,n,t){e.exports={next:"_1sAku",previous:"_3zc5V",datePicker:"_1j_H7",calendarSvg:"_3ViTN",disabled:"DzdxT"}},1266:function(e,n,t){var o=t(10);e.exports=(o.default||o).template({1:function(e,n,t,o,r){e.propertyIsEnumerable;var a,i=e.escapeExpression;return'<span class="'+i(e.lambda(null!=(a=null!=(a=null!=n?n.options:n)?a.styles:a)?a.suggestEdit:a,n))+'">- <a class="suggest-channel">'+i((t.lang||n&&n.lang||e.hooks.helperMissing).call(null!=n?n:e.nullContext||{},"suggestEdit",{name:"lang",hash:{},data:r}))+"</a></span>"},compiler:[8,">= 4.3.0"],main:function(e,n,t,o,r){e.propertyIsEnumerable;var a,i=e.escapeExpression,l=null!=n?n:e.nullContext||{};return'<div class="container-fluid">\r\n <div class="row">\r\n <div class="form-group col-6 px-0">\r\n <div class="date-broadcast-region"></div>\r\n </div>\r\n <div class="form-group col-6 pr-0 '+i(e.lambda(null!=(a=null!=(a=null!=n?n.options:n)?a.styles:a)?a.channel:a,n))+'">\r\n <label for="channel-search">'+i((t.lang||n&&n.lang||e.hooks.helperMissing).call(l,"channel",{name:"lang",hash:{},data:r}))+"</label>\r\n "+(null!=(a=t.unless.call(l,null!=(a=null!=n?n.options:n)?a.editable:a,{name:"unless",hash:{},fn:e.program(1,r,0),inverse:e.noop,data:r}))?a:"")+'\r\n <div class="channel-search-region"></div>\r\n </div>\r\n </div>\r\n</div>'},useData:!0})},1267:function(e,n,t){var o=t(10);e.exports=(o.default||o).template({1:function(e,n,t,o,r){e.propertyIsEnumerable;var a,i=null!=n?n:e.nullContext||{};return'<div class="form-group"> \r\n <div class="custom-control custom-checkbox">\r\n <input\r\n name="toggleBroadcast"\r\n type="checkbox"\r\n class="custom-control-input '+(null!=(a=t.unless.call(i,null!=(a=null!=n?n.options:n)?a.editable:a,{name:"unless",hash:{},fn:e.program(2,r,0),inverse:e.noop,data:r}))?a:"")+'"\r\n id="toggle-broadcast"\r\n '+(null!=(a=t.unless.call(i,null!=(a=null!=n?n.options:n)?a.editable:a,{name:"unless",hash:{},fn:e.program(4,r,0),inverse:e.noop,data:r}))?a:"")+'\r\n >\r\n <label class="custom-control-label" for="toggle-broadcast">'+e.escapeExpression((t.lang||n&&n.lang||e.hooks.helperMissing).call(i,"tv",{name:"lang",hash:{},data:r}))+"</label>\r\n </div>\r\n</div>\r\n"},2:function(e,n,t,o,r){var a;e.propertyIsEnumerable;return e.escapeExpression(e.lambda(null!=(a=null!=(a=null!=n?n.options:n)?a.styles:a)?a.disabled:a,n))},4:function(e,n,t,o,r){return"disabled"},compiler:[8,">= 4.3.0"],main:function(e,n,t,o,r){var a;e.propertyIsEnumerable;return(null!=(a=t.unless.call(null!=n?n:e.nullContext||{},null!=(a=null!=n?n.options:n)?a.hideToggle:a,{name:"unless",hash:{},fn:e.program(1,r,0),inverse:e.noop,data:r}))?a:"")+'<div class="broadcast-region"></div>\r\n'},useData:!0})},1268:function(e,n,t){e.exports={disabled:"_3TIct"}},1269:function(e,n,t){var o=t(10);e.exports=(o.default||o).template({1:function(e,n,t,o,r){return'<div class="">\r\n <button class="btn btn-light create w-100">+ Create a season</button>\r\n</div>\r\n'},3:function(e,n,t,o,r){return'<div class="form-group mb-2">\r\n <input type="number" class="form-control" name="number" min="1" placeholder="Season number">\r\n <div class="form-feedback"></div>\r\n</div>\r\n'},compiler:[8,">= 4.3.0"],main:function(e,n,t,o,r){var a;e.propertyIsEnumerable;return(null!=(a=t.unless.call(null!=n?n:e.nullContext||{},null!=(a=null!=n?n.options:n)?a.show:a,{name:"unless",hash:{},fn:e.program(1,r,0),inverse:e.program(3,r,0),data:r}))?a:"")+'<div class="text-right">\r\n <div class="button-region"></div>\r\n</div>'},useData:!0})},1270:function(e,n,t){var o=t(10);e.exports=(o.default||o).template({1:function(e,n,t,o,r){var a;e.propertyIsEnumerable;return e.escapeExpression(e.lambda(null!=(a=null!=(a=null!=n?n.options:n)?a.styles:a)?a.disabled:a,n))},3:function(e,n,t,o,r){return"selected"},5:function(e,n,t,o,r){e.propertyIsEnumerable;var a,i=e.lambda,l=e.escapeExpression;return' <option value="'+l(i(null!=n?n.number:n,n))+'" '+(null!=(a=t.if.call(null!=n?n:e.nullContext||{},null!=n?n.selected:n,{name:"if",hash:{},fn:e.program(3,r,0),inverse:e.noop,data:r}))?a:"")+">"+l(i(null!=n?n.displayName:n,n))+"</option>\r\n"},7:function(e,n,t,o,r){e.propertyIsEnumerable;var a,i=e.lambda;return'<span class="svg-container mb-2 '+e.escapeExpression(i(null!=(a=null!=(a=null!=n?n.options:n)?a.styles:a)?a.svg:a,n))+' remove">'+(null!=(a=i(null!=(a=null!=n?n.options:n)?a.svgRemove:a,n))?a:"")+"</span>\r\n"},compiler:[8,">= 4.3.0"],main:function(e,n,t,o,r){e.propertyIsEnumerable;var a,i=e.escapeExpression,l=null!=n?n:e.nullContext||{};return'<div\r\n data-toggle="dropdown"\r\n aria-haspopup="true"\r\n aria-expanded="false"\r\n class="cursor-pointer w-100 dropdown-btn btn btn-link '+i(e.lambda(null!=(a=null!=(a=null!=n?n.options:n)?a.styles:a)?a.button:a,n))+" "+(null!=(a=t.if.call(l,null!=(a=null!=n?n.options:n)?a.disabled:a,{name:"if",hash:{},fn:e.program(1,r,0),inverse:e.noop,data:r}))?a:"")+'"\r\n name="season"\r\n></div>\r\n<div class="dropdown-menu dropdown-menu-right dropdown-arrow w-100">\r\n <div class="text-center px-2">\r\n <select name="season" class="custom-select">\r\n <option value="-1" '+(null!=(a=t.unless.call(l,null!=(a=null!=n?n.options:n)?a.hasSelected:a,{name:"unless",hash:{},fn:e.program(3,r,0),inverse:e.noop,data:r}))?a:"")+">"+i((t.lang||n&&n.lang||e.hooks.helperMissing).call(l,"selectASeason",{name:"lang",hash:{},data:r}))+"</option>\r\n"+(null!=(a=t.each.call(l,null!=(a=null!=n?n.options:n)?a.seasons:a,{name:"each",hash:{},fn:e.program(5,r,0),inverse:e.noop,data:r}))?a:"")+' </select>\r\n </div>\r\n\r\n <div class="dropdown-divider"></div>\r\n\r\n <div class="create-region"></div>\r\n</div>\r\n'+(null!=(a=t.if.call(l,null!=(a=null!=n?n.options:n)?a.showRemoveIcon:a,{name:"if",hash:{},fn:e.program(7,r,0),inverse:e.noop,data:r}))?a:"")},useData:!0})},1271:function(e,n,t){e.exports={button:"_39NvM",svg:"_2Tl0W",disabled:"_2julA",seasonContainer:"_SpZq"}},1272:function(e,n,t){var o=t(10);e.exports=(o.default||o).template({1:function(e,n,t,o,r){var a;e.propertyIsEnumerable;return e.escapeExpression(e.lambda(null!=(a=null!=(a=null!=n?n.options:n)?a.styles:a)?a.seriesTitle:a,n))},3:function(e,n,t,o,r){e.propertyIsEnumerable;var a,i=e.escapeExpression;return'<span class="'+i(e.lambda(null!=(a=null!=(a=null!=n?n.options:n)?a.styles:a)?a.suggestEdit:a,n))+'">- <a class="suggest-series-title">'+i((t.lang||n&&n.lang||e.hooks.helperMissing).call(null!=n?n:e.nullContext||{},"suggestEdit",{name:"lang",hash:{},data:r}))+"</a></span>"},5:function(e,n,t,o,r){var a;e.propertyIsEnumerable;return e.escapeExpression(e.lambda(null!=(a=null!=(a=null!=n?n.options:n)?a.styles:a)?a.seasonNumber:a,n))},7:function(e,n,t,o,r){e.propertyIsEnumerable;var a,i=e.escapeExpression;return'<span class="'+i(e.lambda(null!=(a=null!=(a=null!=n?n.options:n)?a.styles:a)?a.suggestEdit:a,n))+'">- <a class="suggest-season-number">'+i((t.lang||n&&n.lang||e.hooks.helperMissing).call(null!=n?n:e.nullContext||{},"suggestEdit",{name:"lang",hash:{},data:r}))+"</a></span>"},9:function(e,n,t,o,r){var a;e.propertyIsEnumerable;return e.escapeExpression(e.lambda(null!=(a=null!=(a=null!=n?n.options:n)?a.styles:a)?a.episodeNumber:a,n))},11:function(e,n,t,o,r){e.propertyIsEnumerable;var a,i=e.escapeExpression;return'<span class="'+i(e.lambda(null!=(a=null!=(a=null!=n?n.options:n)?a.styles:a)?a.suggestEdit:a,n))+'">- <a class="suggest-episode-number">'+i((t.lang||n&&n.lang||e.hooks.helperMissing).call(null!=n?n:e.nullContext||{},"suggestEdit",{name:"lang",hash:{},data:r}))+"</a></span>"},13:function(e,n,t,o,r){var a;e.propertyIsEnumerable;return e.escapeExpression(e.lambda(null!=(a=null!=(a=null!=n?n.options:n)?a.styles:a)?a.disabled:a,n))},15:function(e,n,t,o,r){return"disabled"},compiler:[8,">= 4.3.0"],main:function(e,n,t,o,r){e.propertyIsEnumerable;var a,i=null!=n?n:e.nullContext||{},l=e.hooks.helperMissing,s=e.escapeExpression;return"<h5>"+s((t.lang||n&&n.lang||l).call(i,"heading",{name:"lang",hash:{},data:r}))+'</h5>\r\n<div class="container-fluid">\r\n <div class="row">\r\n <div class="form-group col-6 p-0 '+(null!=(a=t.unless.call(i,null!=(a=null!=n?n.options:n)?a.editable:a,{name:"unless",hash:{},fn:e.program(1,r,0),inverse:e.noop,data:r}))?a:"")+'">\r\n <label for="edit-title">'+s((t.lang||n&&n.lang||l).call(i,"series",{name:"lang",hash:{},data:r}))+"</label>\r\n "+(null!=(a=t.unless.call(i,null!=(a=null!=n?n.options:n)?a.editable:a,{name:"unless",hash:{},fn:e.program(3,r,0),inverse:e.noop,data:r}))?a:"")+'\r\n <div class="edit-series-region"></div>\r\n <div class="form-feedback"></div>\r\n </div>\r\n\r\n <div class="form-group col-3 pr-0 '+(null!=(a=t.unless.call(i,null!=(a=null!=n?n.options:n)?a.editable:a,{name:"unless",hash:{},fn:e.program(5,r,0),inverse:e.noop,data:r}))?a:"")+'">\r\n <label for="edit-season-number">'+s((t.lang||n&&n.lang||l).call(i,"season",{name:"lang",hash:{},data:r}))+"</label>\r\n "+(null!=(a=t.unless.call(i,null!=(a=null!=n?n.options:n)?a.editable:a,{name:"unless",hash:{},fn:e.program(7,r,0),inverse:e.noop,data:r}))?a:"")+'\r\n <div class="edit-season-region"></div>\r\n <div class="form-feedback"></div>\r\n </div>\r\n \r\n <div class="form-group col-3 pr-0 '+(null!=(a=t.unless.call(i,null!=(a=null!=n?n.options:n)?a.editable:a,{name:"unless",hash:{},fn:e.program(9,r,0),inverse:e.noop,data:r}))?a:"")+'">\r\n <label for="edit-episode-number">'+s((t.lang||n&&n.lang||l).call(i,"episode",{name:"lang",hash:{},data:r}))+"</label>\r\n "+(null!=(a=t.unless.call(i,null!=(a=null!=n?n.options:n)?a.editable:a,{name:"unless",hash:{},fn:e.program(11,r,0),inverse:e.noop,data:r}))?a:"")+'\r\n <input\r\n name="episodeNumber"\r\n type="number"\r\n class="form-control episode-number '+(null!=(a=t.if.call(i,null!=(a=null!=n?n.options:n)?a.lockEpisodeNumber:a,{name:"if",hash:{},fn:e.program(13,r,0),inverse:e.noop,data:r}))?a:"")+'"\r\n id="edit-episode-number"\r\n placeholder="'+s(e.lambda(null!=(a=null!=n?n.options:n)?a.episodeNumberPlaceholderText:a,n))+'"\r\n autocomplete="off"\r\n min="1"\r\n '+(null!=(a=t.if.call(i,null!=(a=null!=n?n.options:n)?a.lockEpisodeNumber:a,{name:"if",hash:{},fn:e.program(15,r,0),inverse:e.noop,data:r}))?a:"")+'\r\n >\r\n <div class="form-feedback"></div>\r\n </div>\r\n </div>\r\n</div>\r\n\r\n<div class="edit-broadcast-region"></div>'},useData:!0})},1273:function(e,n,t){e.exports={disabled:"tOHRz"}}}]);
@@ -1,25 +0,0 @@
1
- (window["webpackJsonp_clickview_library_editor"] = window["webpackJsonp_clickview_library_editor"] || []).push([[13],{
2
-
3
- /***/ "./src/shared/components/select/Select.hbs":
4
- /***/ (function(module, exports, __webpack_require__) {
5
-
6
- eval("var Handlebars = __webpack_require__(\"handlebars\");\nmodule.exports = (Handlebars['default'] || Handlebars).template({\"1\":function(container,depth0,helpers,partials,data) {\n var stack1, alias1=container.propertyIsEnumerable;\n\n return container.escapeExpression(container.lambda(((stack1 = ((stack1 = (depth0 != null ? depth0.options : depth0)) != null ? stack1.styles : stack1)) != null ? stack1.disabled : stack1), depth0));\n},\"3\":function(container,depth0,helpers,partials,data) {\n return \" disabled\";\n},\"compiler\":[8,\">= 4.3.0\"],\"main\":function(container,depth0,helpers,partials,data) {\n var stack1, alias1=container.propertyIsEnumerable, alias2=container.lambda, alias3=container.escapeExpression, alias4=depth0 != null ? depth0 : (container.nullContext || {});\n\n return \"<button \\r\\n class=\\\"dropdown-toggle form-control btn-block text-left position-relative \"\n + alias3(alias2(((stack1 = ((stack1 = (depth0 != null ? depth0.options : depth0)) != null ? stack1.styles : stack1)) != null ? stack1.selectButton : stack1), depth0))\n + \" \"\n + ((stack1 = helpers[\"if\"].call(alias4,((stack1 = (depth0 != null ? depth0.options : depth0)) != null ? stack1.disabled : stack1),{\"name\":\"if\",\"hash\":{},\"fn\":container.program(1, data, 0),\"inverse\":container.noop,\"data\":data})) != null ? stack1 : \"\")\n + \"\\\" \\r\\n type=\\\"button\\\" \\r\\n id=\\\"dropdownMenuButton\\\" \\r\\n data-toggle=\\\"dropdown\\\" \\r\\n aria-haspopup=\\\"true\\\" \\r\\n aria-expanded=\\\"false\\\"\\r\\n \"\n + ((stack1 = helpers[\"if\"].call(alias4,((stack1 = (depth0 != null ? depth0.options : depth0)) != null ? stack1.disabled : stack1),{\"name\":\"if\",\"hash\":{},\"fn\":container.program(3, data, 0),\"inverse\":container.noop,\"data\":data})) != null ? stack1 : \"\")\n + \" \\r\\n name=\\\"\"\n + alias3(alias2(((stack1 = (depth0 != null ? depth0.options : depth0)) != null ? stack1.inputName : stack1), depth0))\n + \"\\\"\\r\\n >\\r\\n \"\n + alias3(alias2(((stack1 = (depth0 != null ? depth0.options : depth0)) != null ? stack1.placeholderText : stack1), depth0))\n + \"\\r\\n</button>\\r\\n<div class=\\\"dropdown-region\\\"></div>\\r\\n<div class=\\\"form-feedback\\\"></div>\";\n},\"useData\":true});//# sourceURL=[module]\n//# sourceMappingURL=data:application/json;charset=utf-8;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoiLi9zcmMvc2hhcmVkL2NvbXBvbmVudHMvc2VsZWN0L1NlbGVjdC5oYnMuanMiLCJzb3VyY2VzIjpbImZpbGU6Ly9DOi9DbGlja1ZpZXcgUHJvamVjdHMvQGNsaWNrdmlldy9wYWNrYWdlcy9wcm9qZWN0cy9saWJyYXJ5LWVkaXRvci9zcmMvc2h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DQTtBQUNBO0FBQ0E7QUFDQTtBQUNBO0FBQ0E7QUFDQSIsInNvdXJjZVJvb3QiOiIifQ==\n//# sourceURL=webpack-internal:///./src/shared/components/select/Select.hbs\n");
7
-
8
- /***/ }),
9
-
10
- /***/ "./src/shared/components/select/SelectComponent.ts":
11
- /***/ (function(module, __webpack_exports__, __webpack_require__) {
12
-
13
- "use strict";
14
- eval("__webpack_require__.r(__webpack_exports__);\n/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, \"SelectComponent\", function() { return SelectComponent; });\n/* harmony import */ var underscore__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(\"underscore\");\n/* harmony import */ var underscore__WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(underscore__WEBPACK_IMPORTED_MODULE_0__);\n/* harmony import */ var backbone__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(\"backbone\");\n/* harmony import */ var backbone__WEBPACK_IMPORTED_MODULE_1___default = /*#__PURE__*/__webpack_require__.n(backbone__WEBPACK_IMPORTED_MODULE_1__);\n/* harmony import */ var libs_common_core__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(\"../../libs/common/src/backbone/index.ts\");\n/* harmony import */ var shared_components_dropdown_DropdownComponentCollection__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(\"./src/shared/components/dropdown/DropdownComponentCollection.ts\");\n/* harmony import */ var shared_utils__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(\"./src/shared/utils/index.ts\");\n/* harmony import */ var _Select_hbs__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__(\"./src/shared/components/select/Select.hbs\");\n/* harmony import */ var _Select_hbs__WEBPACK_IMPORTED_MODULE_5___default = /*#__PURE__*/__webpack_require__.n(_Select_hbs__WEBPACK_IMPORTED_MODULE_5__);\n/* harmony import */ var _select_scss__WEBPACK_IMPORTED_MODULE_6__ = __webpack_require__(\"./src/shared/components/select/select.scss\");\n/* harmony import */ var _select_scss__WEBPACK_IMPORTED_MODULE_6___default = /*#__PURE__*/__webpack_require__.n(_select_scss__WEBPACK_IMPORTED_MODULE_6__);\nfunction _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); }\n\nfunction _classCallCheck(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError(\"Cannot call a class as a function\"); } }\n\nfunction _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); } }\n\nfunction _createClass(Constructor, protoProps, staticProps) { if (protoProps) _defineProperties(Constructor.prototype, protoProps); if (staticProps) _defineProperties(Constructor, staticProps); return Constructor; }\n\nfunction _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); }\n\nfunction _setPrototypeOf(o, p) { _setPrototypeOf = Object.setPrototypeOf || function _setPrototypeOf(o, p) { o.__proto__ = p; return o; }; return _setPrototypeOf(o, p); }\n\nfunction _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); }; }\n\nfunction _possibleConstructorReturn(self, call) { if (call && (_typeof(call) === \"object\" || typeof call === \"function\")) { return call; } return _assertThisInitialized(self); }\n\nfunction _assertThisInitialized(self) { if (self === void 0) { throw new ReferenceError(\"this hasn't been initialised - super() hasn't been called\"); } return self; }\n\nfunction _isNativeReflectConstruct() { if (typeof Reflect === \"undefined\" || !Reflect.construct) return false; if (Reflect.construct.sham) return false; if (typeof Proxy === \"function\") return true; try { Boolean.prototype.valueOf.call(Reflect.construct(Boolean, [], function () {})); return true; } catch (e) { return false; } }\n\nfunction _getPrototypeOf(o) { _getPrototypeOf = Object.setPrototypeOf ? Object.getPrototypeOf : function _getPrototypeOf(o) { return o.__proto__ || Object.getPrototypeOf(o); }; return _getPrototypeOf(o); }\n\n\n\n\n\n\n\n\nvar ENTER_KEYCODE = 13;\nvar UP_ARROW_KEYCODE = 38;\nvar DOWN_ARROW_KEYCODE = 40;\nvar TYPING_TIMEOUT = 500;\nvar SelectComponent = /*#__PURE__*/function (_Core$Component) {\n _inherits(SelectComponent, _Core$Component);\n\n var _super = _createSuper(SelectComponent);\n\n function SelectComponent(options) {\n var _this;\n\n _classCallCheck(this, SelectComponent);\n\n _this = _super.call(this, options); // Component state\n\n _this.selectSearch = '';\n _this.sameCharIndex = 1;\n _this.optionStep = 1;\n return _this;\n }\n\n _createClass(SelectComponent, [{\n key: \"initialize\",\n value: function initialize() {\n this.setModel();\n this.bindListeners();\n }\n }, {\n key: \"name\",\n get: function get() {\n return 'SelectComponent';\n }\n }, {\n key: \"template\",\n get: function get() {\n return _Select_hbs__WEBPACK_IMPORTED_MODULE_5___default.a;\n }\n }, {\n key: \"regions\",\n value: function regions() {\n return {\n dropdown: {\n el: '.dropdown-region',\n replaceElement: true\n }\n };\n }\n }, {\n key: \"events\",\n value: function events() {\n return {\n 'keydown': 'onKeydown',\n 'shown.bs.dropdown': 'onShowDropdown'\n };\n }\n }, {\n key: \"defaults\",\n get: function get() {\n return {\n displayProperty: 'name'\n };\n }\n }, {\n key: \"elements\",\n get: function get() {\n return {\n dropdownToggle: '.dropdown-toggle'\n };\n }\n }, {\n key: \"bindListeners\",\n value: function bindListeners() {\n this.listenTo(this.options.channelName, this.options.childOptions.eventName, this.onSelect);\n }\n }, {\n key: \"onShowDropdown\",\n value: function onShowDropdown() {\n var radio = backbone__WEBPACK_IMPORTED_MODULE_1__[\"Radio\"].channel(this.options.channelName);\n radio.trigger('center:dropdown');\n }\n }, {\n key: \"onKeydown\",\n value: function onKeydown(event) {\n if (event.keyCode === UP_ARROW_KEYCODE || event.keyCode === DOWN_ARROW_KEYCODE) {\n this.onArrowKeyDown(event);\n } else if (event.keyCode === ENTER_KEYCODE) {\n this.render();\n } else {\n this.onType(event);\n }\n\n var radio = backbone__WEBPACK_IMPORTED_MODULE_1__[\"Radio\"].channel(this.options.channelName);\n radio.trigger('center:dropdown');\n }\n }, {\n key: \"onArrowKeyDown\",\n value: function onArrowKeyDown(event) {\n if (shared_utils__WEBPACK_IMPORTED_MODULE_4__[\"CollectionHelpers\"].getSelected(this.collection)) {\n this.optionStep = 1;\n } else {\n this.optionStep = 0;\n }\n\n var selectedModel = this.getNextModel(event.keyCode);\n\n if (!selectedModel) {\n shared_utils__WEBPACK_IMPORTED_MODULE_4__[\"CollectionHelpers\"].deselectAll(this.collection);\n selectedModel = this.getNextModel(event.keyCode);\n }\n\n while (this.isDisabled(selectedModel)) {\n this.optionStep++;\n selectedModel = this.getNextModel(event.keyCode);\n }\n\n this.onSelect(selectedModel);\n }\n }, {\n key: \"onType\",\n value: function onType(event) {\n // Returns if keys such as \"Tab\" or \"Backspace\" are pressed\n if (event.key.toString().length !== 1) return;\n var modelMatch = this.getModelMatch(event);\n if (modelMatch) this.onSelect(modelMatch);\n this.runTimer();\n }\n }, {\n key: \"onSelect\",\n value: function onSelect(model) {\n if (this.isDisabled(model)) return;\n shared_utils__WEBPACK_IMPORTED_MODULE_4__[\"CollectionHelpers\"].setSelected(model.get('id'), this.collection);\n this.setModel();\n this.getUI('dropdownToggle').text(this.getButtonText());\n var radio = backbone__WEBPACK_IMPORTED_MODULE_1__[\"Radio\"].channel(this.options.channelName);\n radio.trigger('select:option:selected', model);\n }\n }, {\n key: \"setModel\",\n value: function setModel() {\n this.model = shared_utils__WEBPACK_IMPORTED_MODULE_4__[\"CollectionHelpers\"].getSelected(this.collection);\n }\n }, {\n key: \"getNextModel\",\n value: function getNextModel(key) {\n var currentModel = shared_utils__WEBPACK_IMPORTED_MODULE_4__[\"CollectionHelpers\"].getSelected(this.collection) || this.collection.first();\n var index = this.collection.indexOf(currentModel);\n var nextModel;\n\n if (key === UP_ARROW_KEYCODE) {\n nextModel = this.collection.at(index - this.optionStep);\n } else {\n nextModel = this.collection.at(index + this.optionStep);\n }\n /**\r\n * This handles cases where users downstroke into 1 or more\r\n * disabled folders that stretch until the end of the collection.\r\n * This will wrap their selection back to the top.\r\n */\n\n\n if (!nextModel) {\n shared_utils__WEBPACK_IMPORTED_MODULE_4__[\"CollectionHelpers\"].deselectAll(this.collection);\n nextModel = this.collection.first();\n this.optionStep = 0;\n }\n\n return nextModel;\n }\n }, {\n key: \"getModelMatch\",\n value: function getModelMatch(event) {\n var _this2 = this;\n\n var modelSearchResult;\n\n if (this.selectSearch.length === 1 && this.selectSearch === event.key) {\n modelSearchResult = this.handleSameCharIndex(event.key);\n } else {\n this.selectSearch += event.key;\n this.sameCharIndex = 1;\n }\n\n if (!modelSearchResult) {\n modelSearchResult = underscore__WEBPACK_IMPORTED_MODULE_0__[\"find\"](this.collection.models, function (model) {\n return model.get(_this2.options.displayProperty).toLowerCase().slice(0, _this2.selectSearch.length).includes(_this2.selectSearch.toLowerCase());\n });\n }\n\n return modelSearchResult;\n }\n }, {\n key: \"handleSameCharIndex\",\n value: function handleSameCharIndex(keyCode) {\n var _this3 = this;\n\n var models = underscore__WEBPACK_IMPORTED_MODULE_0__[\"filter\"](this.collection.models, function (model) {\n return model.get(_this3.options.displayProperty).toLowerCase().slice(0, 1) === keyCode;\n });\n\n if (models.length > 1) {\n /**\r\n * When a user types the first char of their search, then they\r\n * type that char again, rather than append that char to the search\r\n * string (e.g. \"aa\"), we instead search for the next option in the\r\n * dropdown that starts with \"a\", then increment sameCharIndex for cases\r\n * where the user continues pressing \"a\" for example.\r\n */\n var modelSearchResult = models[this.sameCharIndex];\n\n if (!modelSearchResult) {\n modelSearchResult = underscore__WEBPACK_IMPORTED_MODULE_0__[\"first\"](models);\n this.sameCharIndex = 0;\n }\n\n this.sameCharIndex++;\n return modelSearchResult;\n } else {\n return underscore__WEBPACK_IMPORTED_MODULE_0__[\"first\"](models);\n }\n }\n }, {\n key: \"runTimer\",\n value: function runTimer() {\n var _this4 = this;\n\n if (this.scopedTimerIndex) clearTimeout(this.scopedTimerIndex);\n this.scopedTimerIndex = window.setTimeout(function () {\n _this4.selectSearch = '';\n }, TYPING_TIMEOUT);\n }\n }, {\n key: \"isDisabled\",\n value: function isDisabled(model) {\n var _this$options$childOp;\n\n if (model.get('divider')) return true;\n if (!underscore__WEBPACK_IMPORTED_MODULE_0__[\"isFunction\"](this.options.childOptions.isDisabled)) return false;\n\n for (var _len = arguments.length, args = new Array(_len > 1 ? _len - 1 : 0), _key = 1; _key < _len; _key++) {\n args[_key - 1] = arguments[_key];\n }\n\n return (_this$options$childOp = this.options.childOptions.isDisabled).call.apply(_this$options$childOp, [this, model].concat(args));\n }\n }, {\n key: \"getButtonText\",\n value: function getButtonText() {\n if (this.options.disabled) return this.options.noOptionsText;\n var selection = shared_utils__WEBPACK_IMPORTED_MODULE_4__[\"CollectionHelpers\"].getSelected(this.collection);\n return selection && selection.get(this.options.displayProperty) || this.options.placeholderText;\n }\n }, {\n key: \"viewOptions\",\n value: function viewOptions() {\n return {\n styles: _select_scss__WEBPACK_IMPORTED_MODULE_6___default.a,\n inputName: this.options.inputName,\n disabled: this.options.disabled,\n placeholderText: this.getButtonText()\n };\n }\n }, {\n key: \"onRender\",\n value: function onRender() {\n this.showChildView('dropdown', new shared_components_dropdown_DropdownComponentCollection__WEBPACK_IMPORTED_MODULE_3__[\"DropdownComponentCollection\"]({\n collection: this.collection,\n channelName: this.options.channelName,\n childOptions: underscore__WEBPACK_IMPORTED_MODULE_0__[\"extend\"](this.options.childOptions),\n displayOptions: {\n extraClasses: \"w-100 \".concat(_select_scss__WEBPACK_IMPORTED_MODULE_6___default.a.dropdownMenu)\n },\n analyticsHelper: this.options.analyticsHelper\n }));\n }\n }]);\n\n return SelectComponent;\n}(libs_common_core__WEBPACK_IMPORTED_MODULE_2__[\"Core\"].Component);//# sourceURL=[module]\n//# sourceMappingURL=data:application/json;charset=utf-8;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoiLi9zcmMvc2hhcmVkL2NvbXBvbmVudHMvc2VsZWN0L1NlbGVjdENvbXBvbmVudC50cy5qcyIsInNvdXJjZXMiOlsiZmlsZTovL0M6L0NsaWNrVmlldyBQcm9qZWN0cy9AY2xpY2t2aWV3L3BhY2thZ2VzL3Byb2plY3RzL2xpYnJhcnktZWRpdG9yL3NyYy9zaGFyZWQvY29tcG9uZW50cy9zZWxlY3QvU2VsZWN0Q29tcG9uZW50LnRzIl0sInNvdXJjZXNDb250ZW50IjpbImltcG9ydCAqIGFzIF8gZnJvbSAndW5kZXJzY29yZSc7XHJcbmltcG9ydCB7IE9iamVjdEhhc2gsIFJhZGlvIH0gZnJvbSAnYmFja2JvbmUnO1xyXG5cclxuaW1wb3J0IHsgQ29yZSB9IGZyb20gJ2xpYnMvY29tbW9uL2NvcmUnO1xyXG5cclxuaW1wb3J0IHsgRHJvcGRvd25Db21wb25lbnRDb2xsZWN0aW9uLCBEcm9wZG93bkFuYWx5dGljc0hlbHBlciB9IGZyb20gJ3NoYXJlZC9jb21wb25lbnRzL2Ryb3Bkb3duL0Ryb3Bkb3duQ29tcG9uZW50Q29sbGVjdGlvbic7XHJcbmltcG9ydCB7IENvbGxlY3Rpb25IZWxwZXJzIH0gZnJvbSAnc2hhcmVkL3V0aWxzJztcclxuXHJcbmltcG9ydCBTZWxlY3RUZW1wbGF0ZSBmcm9tICcuL1NlbGVjdC5oYnMnO1xyXG5pbXBvcnQgc3R5bGVzIGZyb20gJy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QUFBQTtBQUNBO0FBTUE7QUFDQTtBQXJOQTtBQUFBO0FBQUE7QUF3TkE7QUFHQTtBQUNBO0FBQ0E7QUE3TkE7QUFBQTtBQUFBO0FBZ09BO0FBQ0E7QUFDQTtBQUNBO0FBQ0E7QUFKQTtBQU1BO0FBdE9BO0FBQUE7QUFBQTtBQXlPQTtBQUNBO0FBQ0E7QUFDQTtBQUNBO0FBQ0E7QUFEQTtBQUdBO0FBUEE7QUFTQTtBQWxQQTtBQUNBO0FBREE7QUFBQSIsInNvdXJjZVJvb3QiOiIifQ==\n//# sourceURL=webpack-internal:///./src/shared/components/select/SelectComponent.ts\n");
15
-
16
- /***/ }),
17
-
18
- /***/ "./src/shared/components/select/select.scss":
19
- /***/ (function(module, exports, __webpack_require__) {
20
-
21
- eval("// extracted by mini-css-extract-plugin\nmodule.exports = {\"dropdownMenu\":\"cv--dropdownMenu--2RaQu\",\"selectButton\":\"cv--selectButton--2xGqi\",\"disabled\":\"cv--disabled--15kWr\"};//# sourceURL=[module]\n//# sourceMappingURL=data:application/json;charset=utf-8;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoiLi9zcmMvc2hhcmVkL2NvbXBvbmVudHMvc2VsZWN0L3NlbGVjdC5zY3NzLmpzIiwic291cmNlcyI6WyJmaWxlOi8vQzovQ2xpY2tWaWV3IFByb2plY3RzL0BjbGlja3ZpZXcvcGFja2FnZXMvcHJvamVjdHMvbGlicmFyeS1lZGl0b3Ivc3JjL3NoYXJlZC9jb21wb25lbnRzL3NlbGVjdC9zZWxlY3Quc2NzcyJdLCJzb3VyY2VzQ29udGVudCI6WyIvLyBleHRyYWN0ZWQgYnkgbWluaS1jc3MtZXh0cmFjdC1wbHVnaW5cbm1vZHVsZS5leHBvcnRzID0ge1wiZHJvcGRvd25NZW51XCI6XCJjdi0tZHJvcGRvd25NZW51LS0yUmFRdVwiLFwic2VsZWN0QnV0dG9uXCI6XCJjdi0tc2VsZWN0QnV0dG9uLS0yeEdxaVwiLFwiZGlzYWJsZWRcIjpcImN2LS1kaXNhYmxlZC0tMTVrV3JcIn07Il0sIm1hcHBpbmdzIjoiQUFBQTtBQUNBIiwic291cmNlUm9vdCI6IiJ9\n//# sourceURL=webpack-internal:///./src/shared/components/select/select.scss\n");
22
-
23
- /***/ })
24
-
25
- }]);
@@ -1 +0,0 @@
1
- (window.webpackJsonp_clickview_library_editor=window.webpackJsonp_clickview_library_editor||[]).push([[14],{1052:function(e,t,n){"use strict";n.d(t,"a",(function(){return v}));var o=n(6),r=n(2),i=n(3),l=n(1066),s=n(13),a=n(1053),c=n.n(a),u=n(1054),f=n.n(u);function p(e){return(p="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 d(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 h(e,t){return(h=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e})(e,t)}function y(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 Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(e){return!1}}();return function(){var n,o=g(e);if(t){var r=g(this).constructor;n=Reflect.construct(o,arguments,r)}else n=o.apply(this,arguments);return m(this,n)}}function m(e,t){return!t||"object"!==p(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 g(e){return(g=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)})(e)}var v=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&&h(e,t)}(u,e);var t,n,r,a=y(u);function u(e){return function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,u),a.call(this,e)}return t=u,(n=[{key:"initialize",value:function(){this.listenTo(this.options.channelName,"folder:selected new:folder:selected",this.setButtonText),this.listenTo(this.options.channelName,"re:render:selector",this.renderSelector),this.disabledIds=this.options.disabledIds&&this.options.disabledIds.reduce((function(e,t){return Object.assign(Object.assign({},e),function(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}({},t,!0))}),{})}},{key:"name",get:function(){return"TreeDropdownComponent"}},{key:"template",get:function(){return c.a}},{key:"className",get:function(){return"position-relative"}},{key:"lang",get:function(){return"libraryEditor.treeDropdown"}},{key:"regions",value:function(){return{selector:{el:".selector-region",replaceElement:!1}}}},{key:"events",value:function(){return{"click .create-new":"onClickCreateNew"}}},{key:"defaults",get:function(){return{disabledIds:[]}}},{key:"elements",get:function(){return{button:".custom-select"}}},{key:"onClickCreateNew",value:function(e){e.preventDefault(),o.Radio.channel(this.options.channelName).trigger("create:folder:clicked")}},{key:"setButtonText",value:function(e,t){if(e&&!t){var n=e.get("name");this.getUI("button").text(n)}else{var o=s.f.getSelected(this.options.folderTreeKey,this.collection),r=o?o.get("name"):i.a.getPhrase(this.lang,"button");this.getUI("button").text(r)}}},{key:"renderSelector",value:function(){this.showChildView("selector",new l.a({styles:f.a,collection:this.collection,channelName:this.options.channelName,childrenProperty:"children",folderTreeId:this.options.folderTreeKey,extraClass:f.a.list,extraClasses:f.a.list,isSelector:!0,disabledIds:this.disabledIds||{}}))}},{key:"viewOptions",value:function(){return{styles:f.a,name:this.options.name||this.options.channelName,buttonText:this.buttonText,canCreateNew:this.options.canCreateNew}}},{key:"onRender",value:function(){this.setButtonText(),this.renderSelector()}}])&&d(t.prototype,n),r&&d(t,r),u}(r.a.Component)},1053:function(e,t,n){var o=n(10);e.exports=(o.default||o).template({1:function(e,t,n,o,r){e.propertyIsEnumerable;var i,l=e.escapeExpression;return' <button class="create-new btn font-weight-bold rounded-0 w-100 text-left '+l(e.lambda(null!=(i=null!=(i=null!=t?t.options:t)?i.styles:i)?i.customItem:i,t))+'">'+l((n.lang||t&&t.lang||e.hooks.helperMissing).call(null!=t?t:e.nullContext||{},"createNew",{name:"lang",hash:{},data:r}))+"</button>\r\n"},compiler:[8,">= 4.3.0"],main:function(e,t,n,o,r){e.propertyIsEnumerable;var i,l=e.lambda,s=e.escapeExpression;return'<button\r\n class="'+s(l(null!=(i=null!=(i=null!=t?t.options:t)?i.styles:i)?i.selectBtn:i,t))+' custom-select form-control"\r\n data-toggle="dropdown"\r\n aria-haspopup="true"\r\n aria-expanded="false"\r\n name='+s(l(null!=(i=null!=t?t.options:t)?i.name:i,t))+"\r\n>"+s(l(null!=(i=null!=t?t.options:t)?i.buttonText:i,t))+'</button>\r\n<div class="dropdown-menu '+s(l(null!=(i=null!=(i=null!=t?t.options:t)?i.styles:i)?i.selector:i,t))+'">\r\n <div class="selector-region"></div>\r\n'+(null!=(i=n.if.call(null!=t?t:e.nullContext||{},null!=(i=null!=t?t.options:t)?i.canCreateNew:i,{name:"if",hash:{},fn:e.program(1,r,0),inverse:e.noop,data:r}))?i:"")+'</div>\r\n<div class="form-feedback"></div>'},useData:!0})},1054:function(e,t,n){e.exports={selectBtn:"_2TTgs",list:"_3wN7o",selector:"_3Xf1P",customItem:"_199PI"}},1089:function(e,t,n){"use strict";n.d(t,"a",(function(){return v}));var o=n(1),r=n(6),i=n(2),l=n(1044),s=n(13),a=n(1090),c=n.n(a),u=n(1091),f=n.n(u);function p(e){return(p="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 d(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 h(e,t){return(h=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e})(e,t)}function y(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 Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(e){return!1}}();return function(){var n,o=g(e);if(t){var r=g(this).constructor;n=Reflect.construct(o,arguments,r)}else n=o.apply(this,arguments);return m(this,n)}}function m(e,t){return!t||"object"!==p(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 g(e){return(g=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)})(e)}var v=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&&h(e,t)}(u,e);var t,n,i,a=y(u);function u(e){var t;return function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,u),(t=a.call(this,e)).selectSearch="",t.sameCharIndex=1,t.optionStep=1,t}return t=u,(n=[{key:"initialize",value:function(){this.setModel(),this.bindListeners()}},{key:"name",get:function(){return"SelectComponent"}},{key:"template",get:function(){return c.a}},{key:"regions",value:function(){return{dropdown:{el:".dropdown-region",replaceElement:!0}}}},{key:"events",value:function(){return{keydown:"onKeydown","shown.bs.dropdown":"onShowDropdown"}}},{key:"defaults",get:function(){return{displayProperty:"name"}}},{key:"elements",get:function(){return{dropdownToggle:".dropdown-toggle"}}},{key:"bindListeners",value:function(){this.listenTo(this.options.channelName,this.options.childOptions.eventName,this.onSelect)}},{key:"onShowDropdown",value:function(){r.Radio.channel(this.options.channelName).trigger("center:dropdown")}},{key:"onKeydown",value:function(e){38===e.keyCode||40===e.keyCode?this.onArrowKeyDown(e):13===e.keyCode?this.render():this.onType(e),r.Radio.channel(this.options.channelName).trigger("center:dropdown")}},{key:"onArrowKeyDown",value:function(e){s.c.getSelected(this.collection)?this.optionStep=1:this.optionStep=0;var t=this.getNextModel(e.keyCode);for(t||(s.c.deselectAll(this.collection),t=this.getNextModel(e.keyCode));this.isDisabled(t);)this.optionStep++,t=this.getNextModel(e.keyCode);this.onSelect(t)}},{key:"onType",value:function(e){if(1===e.key.toString().length){var t=this.getModelMatch(e);t&&this.onSelect(t),this.runTimer()}}},{key:"onSelect",value:function(e){this.isDisabled(e)||(s.c.setSelected(e.get("id"),this.collection),this.setModel(),this.getUI("dropdownToggle").text(this.getButtonText()),r.Radio.channel(this.options.channelName).trigger("select:option:selected",e))}},{key:"setModel",value:function(){this.model=s.c.getSelected(this.collection)}},{key:"getNextModel",value:function(e){var t,n=s.c.getSelected(this.collection)||this.collection.first(),o=this.collection.indexOf(n);return(t=38===e?this.collection.at(o-this.optionStep):this.collection.at(o+this.optionStep))||(s.c.deselectAll(this.collection),t=this.collection.first(),this.optionStep=0),t}},{key:"getModelMatch",value:function(e){var t,n=this;return 1===this.selectSearch.length&&this.selectSearch===e.key?t=this.handleSameCharIndex(e.key):(this.selectSearch+=e.key,this.sameCharIndex=1),t||(t=o.find(this.collection.models,(function(e){return e.get(n.options.displayProperty).toLowerCase().slice(0,n.selectSearch.length).includes(n.selectSearch.toLowerCase())}))),t}},{key:"handleSameCharIndex",value:function(e){var t=this,n=o.filter(this.collection.models,(function(n){return n.get(t.options.displayProperty).toLowerCase().slice(0,1)===e}));if(n.length>1){var r=n[this.sameCharIndex];return r||(r=o.first(n),this.sameCharIndex=0),this.sameCharIndex++,r}return o.first(n)}},{key:"runTimer",value:function(){var e=this;this.scopedTimerIndex&&clearTimeout(this.scopedTimerIndex),this.scopedTimerIndex=window.setTimeout((function(){e.selectSearch=""}),500)}},{key:"isDisabled",value:function(e){var t;if(e.get("divider"))return!0;if(!o.isFunction(this.options.childOptions.isDisabled))return!1;for(var n=arguments.length,r=new Array(n>1?n-1:0),i=1;i<n;i++)r[i-1]=arguments[i];return(t=this.options.childOptions.isDisabled).call.apply(t,[this,e].concat(r))}},{key:"getButtonText",value:function(){if(this.options.disabled)return this.options.noOptionsText;var e=s.c.getSelected(this.collection);return e&&e.get(this.options.displayProperty)||this.options.placeholderText}},{key:"viewOptions",value:function(){return{styles:f.a,inputName:this.options.inputName,disabled:this.options.disabled,placeholderText:this.getButtonText()}}},{key:"onRender",value:function(){this.showChildView("dropdown",new l.a({collection:this.collection,channelName:this.options.channelName,childOptions:o.extend(this.options.childOptions),displayOptions:{extraClasses:"w-100 ".concat(f.a.dropdownMenu)},analyticsHelper:this.options.analyticsHelper}))}}])&&d(t.prototype,n),i&&d(t,i),u}(i.a.Component)},1090:function(e,t,n){var o=n(10);e.exports=(o.default||o).template({1:function(e,t,n,o,r){var i;e.propertyIsEnumerable;return e.escapeExpression(e.lambda(null!=(i=null!=(i=null!=t?t.options:t)?i.styles:i)?i.disabled:i,t))},3: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=e.lambda,s=e.escapeExpression,a=null!=t?t:e.nullContext||{};return'<button \r\n class="dropdown-toggle form-control btn-block text-left position-relative '+s(l(null!=(i=null!=(i=null!=t?t.options:t)?i.styles:i)?i.selectButton:i,t))+" "+(null!=(i=n.if.call(a,null!=(i=null!=t?t.options:t)?i.disabled:i,{name:"if",hash:{},fn:e.program(1,r,0),inverse:e.noop,data:r}))?i:"")+'" \r\n type="button" \r\n id="dropdownMenuButton" \r\n data-toggle="dropdown" \r\n aria-haspopup="true" \r\n aria-expanded="false"\r\n '+(null!=(i=n.if.call(a,null!=(i=null!=t?t.options:t)?i.disabled:i,{name:"if",hash:{},fn:e.program(3,r,0),inverse:e.noop,data:r}))?i:"")+' \r\n name="'+s(l(null!=(i=null!=t?t.options:t)?i.inputName:i,t))+'"\r\n >\r\n '+s(l(null!=(i=null!=t?t.options:t)?i.placeholderText:i,t))+'\r\n</button>\r\n<div class="dropdown-region"></div>\r\n<div class="form-feedback"></div>'},useData:!0})},1091:function(e,t,n){e.exports={dropdownMenu:"_2RaQu",selectButton:"_2xGqi",disabled:"_15kWr"}},1112:function(e,t,n){"use strict";n.d(t,"a",(function(){return v}));var o=n(1),r=n(6),i=n(2),l=n(3),s=n(42),a=n(1089),c=n(13),u=n(1113),f=n.n(u);function p(e){return(p="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 d(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 h(e,t){return(h=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e})(e,t)}function y(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 Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(e){return!1}}();return function(){var n,o=g(e);if(t){var r=g(this).constructor;n=Reflect.construct(o,arguments,r)}else n=o.apply(this,arguments);return m(this,n)}}function m(e,t){return!t||"object"!==p(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 g(e){return(g=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)})(e)}var v=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&&h(e,t)}(p,e);var t,n,i,u=y(p);function p(e){return function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,p),u.call(this,e)}return t=p,(n=[{key:"initialize",value:function(){this.bindListeners(),c.c.deselectAll(this.collection),c.c.setSelected(this.options.currentLibraryId,this.collection)}},{key:"name",get:function(){return"LibrarySelectComponent"}},{key:"channelName",get:function(){return"".concat(this.name).concat(this.cid)}},{key:"className",get:function(){return"position-relative"}},{key:"lang",get:function(){return"libraryEditor.librarySelect"}},{key:"template",get:function(){return f.a}},{key:"regions",value:function(){return{dropdown:{el:".dropdown-menu-region",replaceElement:!0}}}},{key:"bindListeners",value:function(){var e=this;this.listenTo(this.channelName,"select:option:selected",(function(t){r.Radio.channel(e.options.channelName).trigger("library:selected",t)}))}},{key:"getIsOptionDisabledFn",value:function(){var e=this.options.disabledLibraryIds;return function(t){var n=t||this.model;if(o.contains(e,n.get("id")+""))return!0}}},{key:"onRender",value:function(){this.showChildView("dropdown",new a.a({collection:this.collection,channelName:this.channelName,childOptions:{titleProperty:"name",eventName:"select:option:click",isDisabled:this.getIsOptionDisabledFn()},placeholderText:this.options.placeholderText||l.a.getPhrase(this.lang,"placeholder"),noOptionsText:l.a.getPhrase(this.lang,"noLibraries"),inputName:this.options.inputName,disabled:0===this.collection.length||this.options.disabled,analyticsHelper:s.a}))}}])&&d(t.prototype,n),i&&d(t,i),p}(i.a.Component)},1113:function(e,t,n){var o=n(10);e.exports=(o.default||o).template({compiler:[8,">= 4.3.0"],main:function(e,t,n,o,r){return'<div class="dropdown-menu-region"></div>\r\n<div class="form-feedback"></div>'},useData:!0})},1150:function(e,t,n){"use strict";n.d(t,"a",(function(){return E}));var o=n(1),r=n(29),i=n(2),l=n(59),s=n(17),a=n(140),c=n(0),u=n(9),f=n(1065),p=n(1040),d=n(1041),h=n(1151),y=n.n(h),m=n(1152),g=n.n(m),v=n(3);function b(e){return(b="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 k(e,t){return(k=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e})(e,t)}function S(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 Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(e){return!1}}();return function(){var n,o=R(e);if(t){var r=R(this).constructor;n=Reflect.construct(o,arguments,r)}else n=o.apply(this,arguments);return C(this,n)}}function C(e,t){return!t||"object"!==b(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 R(e){return(R=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)})(e)}var E=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&&k(e,t)}(m,e);var t,n,i,h=S(m);function m(e){return function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,m),h.call(this,e)}return t=m,(n=[{key:"name",get:function(){return"VideoBasicInfoComponent"}},{key:"template",get:function(){return g.a}},{key:"lang",get:function(){return"shared.videoBasicInfo"}},{key:"defaults",get:function(){return{truncateDescription:!0}}},{key:"behaviors",get:function(){return[{behaviorClass:a.a,selector:".tool-tip"}]}},{key:"regions",value:function(){return{description:{el:".description-region",replaceElement:!0,partialLoading:u.h.VideoBasicInfo},series:{el:".series-region",replaceElement:!0}}}},{key:"appLinks",get:function(){return{".applink-publisher-video":{application:c.b.LIBRARY_EDITOR,action:c.a.LibraryEditor.SHOW_PUBLISHER_VIDEO,args:[this.model.get("id")]}}}},{key:"getBroadcastDate",value:function(){return this.model.get("dateBroadcast")?r(this.model.get("dateBroadcast")).format(u.l.FULL_YEAR):""}},{key:"getSeriesUrl",value:function(){if(this.options.externalSeriesLink&&this.model.series)return l.a.urlBuilder(l.a.safeUrlConcat(this.options.config.get("onlineUrl"),"series/".concat(this.model.series.id)),{loginPrompt:!1})}},{key:"renderSeries",value:function(){this.model.series&&this.model.series.get("name")&&this.showChildView("series",new p.a({model:this.model,highlight:!1,seriesUrl:this.getSeriesUrl(),styleUppercase:!1}))}},{key:"renderDescription",value:function(){if(this.model&&this.model.get("description")){var e=new f.a({model:this.model,linkify:!0,size:f.b.Large,truncate:this.options.truncateDescription,allowExpand:!0});this.showChildView("description",e)}}},{key:"getSubtitleLanguage",value:function(){var e=this;return this.model.subtitles&&this.model.get("subtitles").length?o.uniq(this.model.get("subtitles").map((function(t){var n,o=t.get("language"),r=CVLanguages.getFullEnglishName(o);return(null===(n=t.get("metadata"))||void 0===n?void 0:n.autoGenerated)?v.a.getPhrase(e.lang,"autoGenerated",{name:r}):r}))).join(", "):""}},{key:"getCitationHeading",value:function(e,t,n){return this.model.get(e)?this.model.get(e).length>1?n:t:""}},{key:"getCitationHeadings",value:function(){return{productionCompaniesText:this.getCitationHeading(u.a.ProductionCompany,"Production Company","Production Companies"),producersText:this.getCitationHeading(u.a.Producer,"Producer","Producers"),disributorsText:this.getCitationHeading(u.a.Distributor,"Distributor","Distributors"),directorsText:this.getCitationHeading(u.a.Director,"Director","Directors")}}},{key:"viewOptions",value:function(){return Object.assign({styles:y.a,ratingClass:this.model.rating&&d.h.mapRatingToClass(this.model.rating.get("value")),broadcastDate:this.getBroadcastDate(),showHeading:this.options.showHeading,subtitles:this.getSubtitleLanguage(),publisherArchiveSvg:s.a.getSvg(s.b.PublisherArchive),showPublisherVideoDetails:this.options.showPublisherVideoDetails},this.getCitationHeadings())}},{key:"onRender",value:function(){this.renderSeries(),this.renderDescription()}}])&&w(t.prototype,n),i&&w(t,i),m}(i.a.Component)},1151:function(e,t,n){e.exports={columnNames:"_1N_VT",seriesContainer:"_4pk2s",icon:"_3SoBV",citationValues:"_1nYZg"}},1152:function(e,t,n){var o=n(10);e.exports=(o.default||o).template({1:function(e,t,n,o,r){e.propertyIsEnumerable;var i,l=null!=t?t:e.nullContext||{};return'<div class="position-relative">\r\n <h5 class="d-inline-block">'+e.escapeExpression((n.lang||t&&t.lang||e.hooks.helperMissing).call(l,"basicInfo",{name:"lang",hash:{},data:r}))+"</h5>\r\n"+(null!=(i=n.if.call(l,null!=(i=null!=t?t.options:t)?i.showPublisherVideoDetails:i,{name:"if",hash:{},fn:e.program(2,r,0),inverse:e.noop,data:r}))?i:"")+"</div>\r\n"},2:function(e,t,n,o,r){e.propertyIsEnumerable;var i,l=e.lambda,s=e.escapeExpression;return' <a class="float-right cursor-pointer applink-publisher-video">\r\n <span class="d-inline-block align-middle '+s(l(null!=(i=null!=(i=null!=t?t.options:t)?i.styles:i)?i.icon:i,t))+'">'+(null!=(i=l(null!=(i=null!=t?t.options:t)?i.publisherArchiveSvg:i,t))?i:"")+"</span> "+s((n.lang||t&&t.lang||e.hooks.helperMissing).call(null!=t?t:e.nullContext||{},"viewInPublisherArchive",{name:"lang",hash:{},data:r}))+"\r\n </a>\r\n"},4:function(e,t,n,o,r){e.propertyIsEnumerable;var i,l,s=e.escapeExpression,a=null!=t?t:e.nullContext||{},c=e.hooks.helperMissing;return' <div class="col-3 '+s(e.lambda(null!=(i=null!=(i=null!=t?t.options:t)?i.styles:i)?i.columnNames:i,t))+'">'+s((n.lang||t&&t.lang||c).call(a,"videoTitle",{name:"lang",hash:{},data:r}))+'</div>\r\n <p class="col-9">'+s("function"==typeof(l=null!=(l=n.name||(null!=t?t.name:t))?l:c)?l.call(a,{name:"name",hash:{},data:r}):l)+"</p>\r\n"},6:function(e,t,n,o,r){e.propertyIsEnumerable;var i,l=e.lambda,s=e.escapeExpression;return' <div class="col-3 '+s(l(null!=(i=null!=(i=null!=t?t.options:t)?i.styles:i)?i.columnNames:i,t))+'">'+s((n.lang||t&&t.lang||e.hooks.helperMissing).call(null!=t?t:e.nullContext||{},"series",{name:"lang",hash:{},data:r}))+'</div>\r\n <div class="col-9 '+s(l(null!=(i=null!=(i=null!=t?t.options:t)?i.styles:i)?i.seriesContainer:i,t))+'"><div class="series-region"></div></div>\r\n'},8:function(e,t,n,o,r){e.propertyIsEnumerable;var i,l=e.lambda,s=e.escapeExpression;return' <div class="col-3 '+s(l(null!=(i=null!=(i=null!=t?t.options:t)?i.styles:i)?i.columnNames:i,t))+'">'+s((n.lang||t&&t.lang||e.hooks.helperMissing).call(null!=t?t:e.nullContext||{},"rating",{name:"lang",hash:{},data:r}))+'</div>\r\n <p class="col-9"><span class="p-1 badge text-white tool-tip '+s(l(null!=(i=null!=t?t.options:t)?i.ratingClass:i,t))+" "+s(l(null!=(i=null!=(i=null!=t?t.options:t)?i.styles:i)?i.rating:i,t))+'" title="'+s(l(null!=(i=null!=t?t.rating:t)?i.name:i,t))+'">'+s(l(null!=(i=null!=t?t.rating:t)?i.code:i,t))+"</span></p>\r\n"},10:function(e,t,n,o,r){e.propertyIsEnumerable;var i,l=e.escapeExpression;return' <div class="col-3 '+l(e.lambda(null!=(i=null!=(i=null!=t?t.options:t)?i.styles:i)?i.columnNames:i,t))+'">'+l((n.lang||t&&t.lang||e.hooks.helperMissing).call(null!=t?t:e.nullContext||{},"description",{name:"lang",hash:{},data:r}))+'</div>\r\n <div class="col-9">\r\n <div class="description-region"></div>\r\n </div>\r\n'},12:function(e,t,n,o,r){e.propertyIsEnumerable;var i,l,s=e.escapeExpression,a=null!=t?t:e.nullContext||{},c=e.hooks.helperMissing;return' <div class="col-3 '+s(e.lambda(null!=(i=null!=(i=null!=t?t.options:t)?i.styles:i)?i.columnNames:i,t))+'">'+s((n.lang||t&&t.lang||c).call(a,"productionYear",{name:"lang",hash:{},data:r}))+'</div>\r\n <p class="col-9">'+s("function"==typeof(l=null!=(l=n.productionYear||(null!=t?t.productionYear:t))?l:c)?l.call(a,{name:"productionYear",hash:{},data:r}):l)+"</p>\r\n"},14:function(e,t,n,o,r){e.propertyIsEnumerable;var i,l=e.lambda,s=e.escapeExpression,a=null!=t?t:e.nullContext||{};return' <div class="col-3 '+s(l(null!=(i=null!=(i=null!=t?t.options:t)?i.styles:i)?i.columnNames:i,t))+'">'+s((n.lang||t&&t.lang||e.hooks.helperMissing).call(a,"producers",{name:"lang",hash:{},data:r}))+'</div>\r\n <div class="col-9 '+s(l(null!=(i=null!=(i=null!=t?t.options:t)?i.styles:i)?i.citationValues:i,t))+'">\r\n <p>\r\n'+(null!=(i=n.each.call(a,null!=t?t.producers:t,{name:"each",hash:{},fn:e.program(15,r,0),inverse:e.noop,data:r}))?i:"")+" </p>\r\n </div>\r\n"},15:function(e,t,n,o,r){var i;e.propertyIsEnumerable;return" <span>"+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)+"</span>\r\n"},17:function(e,t,n,o,r){e.propertyIsEnumerable;var i,l=e.lambda,s=e.escapeExpression,a=null!=t?t:e.nullContext||{};return' <div class="col-3 '+s(l(null!=(i=null!=(i=null!=t?t.options:t)?i.styles:i)?i.columnNames:i,t))+'">'+s((n.lang||t&&t.lang||e.hooks.helperMissing).call(a,"directors",{name:"lang",hash:{},data:r}))+'</div>\r\n <div class="col-9 '+s(l(null!=(i=null!=(i=null!=t?t.options:t)?i.styles:i)?i.citationValues:i,t))+'">\r\n <p>\r\n'+(null!=(i=n.each.call(a,null!=t?t.directors:t,{name:"each",hash:{},fn:e.program(15,r,0),inverse:e.noop,data:r}))?i:"")+" </p>\r\n </div>\r\n"},19:function(e,t,n,o,r){e.propertyIsEnumerable;var i,l=e.lambda,s=e.escapeExpression,a=null!=t?t:e.nullContext||{};return' <div class="col-3 '+s(l(null!=(i=null!=(i=null!=t?t.options:t)?i.styles:i)?i.columnNames:i,t))+'">'+s((n.lang||t&&t.lang||e.hooks.helperMissing).call(a,"productionCompanies",{name:"lang",hash:{},data:r}))+'</div>\r\n <div class="col-9 '+s(l(null!=(i=null!=(i=null!=t?t.options:t)?i.styles:i)?i.citationValues:i,t))+'">\r\n <p>\r\n'+(null!=(i=n.each.call(a,null!=t?t.productionCompanies:t,{name:"each",hash:{},fn:e.program(15,r,0),inverse:e.noop,data:r}))?i:"")+" </p>\r\n </div>\r\n"},21:function(e,t,n,o,r){e.propertyIsEnumerable;var i,l=e.lambda,s=e.escapeExpression,a=null!=t?t:e.nullContext||{};return' <div class="col-3 '+s(l(null!=(i=null!=(i=null!=t?t.options:t)?i.styles:i)?i.columnNames:i,t))+'">'+s((n.lang||t&&t.lang||e.hooks.helperMissing).call(a,"distributors",{name:"lang",hash:{},data:r}))+'</div>\r\n <div class="col-9 '+s(l(null!=(i=null!=(i=null!=t?t.options:t)?i.styles:i)?i.citationValues:i,t))+'">\r\n <p>\r\n'+(null!=(i=n.each.call(a,null!=t?t.distributors:t,{name:"each",hash:{},fn:e.program(15,r,0),inverse:e.noop,data:r}))?i:"")+" </p>\r\n </div>\r\n"},23:function(e,t,n,o,r){var i;e.propertyIsEnumerable;return null!=(i=n.if.call(null!=t?t:e.nullContext||{},null!=t?t.channel:t,{name:"if",hash:{},fn:e.program(24,r,0),inverse:e.noop,data:r}))?i:""},24:function(e,t,n,o,r){e.propertyIsEnumerable;var i,l=e.lambda,s=e.escapeExpression;return'\r\n <div class="col-3 '+s(l(null!=(i=null!=(i=null!=t?t.options:t)?i.styles:i)?i.columnNames:i,t))+'">'+s((n.lang||t&&t.lang||e.hooks.helperMissing).call(null!=t?t:e.nullContext||{},"channel",{name:"lang",hash:{},data:r}))+'</div>\r\n <p class="col-9">'+s(l(null!=(i=null!=t?t.channel:t)?i.name:i,t))+"</p>\r\n "},26:function(e,t,n,o,r){e.propertyIsEnumerable;var i,l=e.lambda,s=e.escapeExpression;return' <div class="col-3 '+s(l(null!=(i=null!=(i=null!=t?t.options:t)?i.styles:i)?i.columnNames:i,t))+'">'+s((n.lang||t&&t.lang||e.hooks.helperMissing).call(null!=t?t:e.nullContext||{},"broadcastDate",{name:"lang",hash:{},data:r}))+'</div>\r\n <p class="col-9">'+s(l(null!=(i=null!=t?t.options:t)?i.broadcastDate:i,t))+"</p>\r\n"},28:function(e,t,n,o,r){e.propertyIsEnumerable;var i,l=e.lambda,s=e.escapeExpression;return' <div class="col-3 '+s(l(null!=(i=null!=(i=null!=t?t.options:t)?i.styles:i)?i.columnNames:i,t))+'">'+s((n.lang||t&&t.lang||e.hooks.helperMissing).call(null!=t?t:e.nullContext||{},"subtitles",{name:"lang",hash:{},data:r}))+'</div>\r\n <p class="col-9">'+s(l(null!=(i=null!=t?t.options:t)?i.subtitles:i,t))+"</p>\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.showHeading:i,{name:"if",hash:{},fn:e.program(1,r,0),inverse:e.noop,data:r}))?i:"")+'<div class="row mb-0">\r\n'+(null!=(i=n.if.call(l,null!=t?t.name:t,{name:"if",hash:{},fn:e.program(4,r,0),inverse:e.noop,data:r}))?i:"")+"\r\n"+(null!=(i=n.if.call(l,null!=(i=null!=t?t.series:t)?i.name:i,{name:"if",hash:{},fn:e.program(6,r,0),inverse:e.noop,data:r}))?i:"")+"\r\n"+(null!=(i=n.if.call(l,null!=(i=null!=t?t.rating:t)?i.code:i,{name:"if",hash:{},fn:e.program(8,r,0),inverse:e.noop,data:r}))?i:"")+"\r\n"+(null!=(i=n.if.call(l,null!=t?t.description:t,{name:"if",hash:{},fn:e.program(10,r,0),inverse:e.noop,data:r}))?i:"")+"\r\n"+(null!=(i=n.if.call(l,null!=t?t.productionYear:t,{name:"if",hash:{},fn:e.program(12,r,0),inverse:e.noop,data:r}))?i:"")+"\r\n"+(null!=(i=n.if.call(l,null!=(i=null!=t?t.producers:t)?i.length:i,{name:"if",hash:{},fn:e.program(14,r,0),inverse:e.noop,data:r}))?i:"")+"\r\n"+(null!=(i=n.if.call(l,null!=(i=null!=t?t.directors:t)?i.length:i,{name:"if",hash:{},fn:e.program(17,r,0),inverse:e.noop,data:r}))?i:"")+"\r\n"+(null!=(i=n.if.call(l,null!=(i=null!=t?t.productionCompanies:t)?i.length:i,{name:"if",hash:{},fn:e.program(19,r,0),inverse:e.noop,data:r}))?i:"")+"\r\n"+(null!=(i=n.if.call(l,null!=(i=null!=t?t.distributors:t)?i.length:i,{name:"if",hash:{},fn:e.program(21,r,0),inverse:e.noop,data:r}))?i:"")+"\r\n "+(null!=(i=n.if.call(l,null!=(i=null!=t?t.channel:t)?i.name:i,{name:"if",hash:{},fn:e.program(23,r,0),inverse:e.noop,data:r}))?i:"")+"\r\n\r\n"+(null!=(i=n.if.call(l,null!=(i=null!=t?t.options:t)?i.broadcastDate:i,{name:"if",hash:{},fn:e.program(26,r,0),inverse:e.noop,data:r}))?i:"")+"\r\n"+(null!=(i=n.if.call(l,null!=(i=null!=t?t.options:t)?i.subtitles:i,{name:"if",hash:{},fn:e.program(28,r,0),inverse:e.noop,data:r}))?i:"")+"</div>"},useData:!0})},1191:function(e,t,n){"use strict";var o=n(3),r="staffRequests.utils",i={destinationLibrary:function(e){if(!e||!e.id)return o.a.getPhrase(r,"selectLibrary")},destinationFolder:function(e){if(!e||!e.id)return o.a.getPhrase(r,"selectFolder")}},l={message:[{required:!0,msg:function(){return o.a.getPhrase("staffRequests.utils","provideMessage")}}]};n.d(t,"a",(function(){return i})),n.d(t,"b",(function(){return l}))},1327:function(e,t,n){var o=n(10);e.exports=(o.default||o).template({1:function(e,t,n,o,r){return" text-muted"},compiler:[8,">= 4.3.0"],main:function(e,t,n,o,r){e.propertyIsEnumerable;var i,l,s=e.lambda,a=e.escapeExpression,c=null!=t?t:e.nullContext||{},u=e.hooks.helperMissing;return'<h6 class="mb-1">'+a(s(null!=(i=null!=t?t.video:t)?i.name:i,t))+'</h6>\r\n<p class="m-0">'+a((n.lang||t&&t.lang||u).call(c,"request",{name:"lang",hash:{lastName:null!=(i=null!=t?t.options:t)?i.lastName:i,firstName:null!=(i=null!=t?t.options:t)?i.firstName:i},data:r}))+'</p>\r\n<time class="m-0'+(null!=(i=n.unless.call(c,null!=(i=null!=t?t.options:t)?i.isSelected:i,{name:"unless",hash:{},fn:e.program(1,r,0),inverse:e.noop,data:r}))?i:"")+'" datetime='+a("function"==typeof(l=null!=(l=n.dateCreated||(null!=t?t.dateCreated:t))?l:u)?l.call(c,{name:"dateCreated",hash:{},data:r}):l)+">"+a(s(null!=(i=null!=t?t.options:t)?i.dateRequested:i,t))+"</time"},useData:!0})},1328:function(e,t,n){e.exports={list:"_3aP3V",item:"_1uqg-",selected:"_29kkj"}},1329:function(e,t,n){e.exports={actions:"_2xyI4",source:"_153F1",button:"_3I7SQ"}},1330:function(e,t,n){var o=n(10);e.exports=(o.default||o).template({1:function(e,t,n,o,r){var i;e.propertyIsEnumerable;return" <span>"+e.escapeExpression(e.lambda(null!=(i=null!=t?t.sourceFolder:t)?i.name:i,t))+"</span>\r\n"},3:function(e,t,n,o,r){return' <div class="form-group m-0 pb-2">\r\n <div class="library-select-region"></div>\r\n </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||{},s=e.hooks.helperMissing,a=e.escapeExpression,c=e.lambda;return'<div class="row align-items-center py-2">\r\n <div class="col-3"><strong>'+a((n.lang||t&&t.lang||s).call(l,"source",{name:"lang",hash:{},data:r}))+'</strong></div>\r\n <div class="col-5">\r\n <span class="badge p-1 mr-1 '+a(c(null!=(i=null!=t?t.options:t)?i.sourceClass:i,t))+'">'+a(c(null!=(i=null!=t?t.options:t)?i.sourceLibraryName:i,t))+"</span>\r\n"+(null!=(i=n.if.call(l,null!=(i=null!=t?t.sourceFolder:t)?i.name:i,{name:"if",hash:{},fn:e.program(1,r,0),inverse:e.noop,data:r}))?i:"")+' </div>\r\n <div class="col-4 text-right">\r\n <button class="btn btn-success btn-sm '+a(c(null!=(i=null!=(i=null!=t?t.options:t)?i.styles:i)?i.button:i,t))+' approve" type="button">'+a((n.lang||t&&t.lang||s).call(l,"approve",{name:"lang",hash:{},data:r}))+'</button>\r\n <button class="btn btn-light btn-sm border-secondary '+a(c(null!=(i=null!=(i=null!=t?t.options:t)?i.styles:i)?i.button:i,t))+' reject" type="button">'+a((n.lang||t&&t.lang||s).call(l,"reject",{name:"lang",hash:{},data:r}))+'</button>\r\n </div>\r\n</div>\r\n<div class="row align-items-center py-2">\r\n <div class="col-3"><strong>'+a((n.lang||t&&t.lang||s).call(l,"moveVideo",{name:"lang",hash:{},data:r}))+'</strong></div>\r\n <div class="col-5">\r\n'+(null!=(i=n.if.call(l,null!=(i=null!=t?t.options:t)?i.showLibrarySelect:i,{name:"if",hash:{},fn:e.program(3,r,0),inverse:e.noop,data:r}))?i:"")+' <div class="form-group m-0">\r\n <div class="folder-select-region"></div>\r\n </div> \r\n </div>\r\n</div>'},useData:!0})},1331:function(e,t,n){var o=n(10);e.exports=(o.default||o).template({1:function(e,t,n,o,r){e.propertyIsEnumerable;var i,l=e.lambda,s=e.escapeExpression;return'<div class="border-bottom">\r\n <div class="d-inline-block mr-2 '+s(l(null!=(i=null!=(i=null!=t?t.options:t)?i.styles:i)?i.avatar:i,t))+'" style="background-image: url(\''+s(l(null!=(i=null!=t?t.options:t)?i.avatarUrl:i,t))+'\')">\r\n &nbsp\r\n </div>\r\n <div class="d-inline-block">\r\n <p>'+(null!=(i=(n.lang||t&&t.lang||e.hooks.helperMissing).call(null!=t?t:e.nullContext||{},"requestNote",{name:"lang",hash:{lastName:null!=(i=null!=t?t.options:t)?i.lastName:i,firstName:null!=(i=null!=t?t.options:t)?i.firstName:i},data:r}))?i:"")+'</p>\r\n <p class="pl-2 '+s(l(null!=(i=null!=(i=null!=t?t.options:t)?i.styles:i)?i.message:i,t))+'">'+s(l(null!=(i=null!=(i=null!=t?t.options:t)?i.message:i)?i.message:i,t))+"</p>\r\n </div> \r\n</div>\r\n"},3:function(e,t,n,o,r){e.propertyIsEnumerable;var i,l=e.escapeExpression;return'<span class="badge p-1 '+l(e.lambda(null!=(i=null!=(i=null!=t?t.options:t)?i.styles:i)?i.interactive:i,t))+'">'+l((n.lang||t&&t.lang||e.hooks.helperMissing).call(null!=t?t:e.nullContext||{},"interactive",{name:"lang",hash:{},data:r}))+"</span>\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="request-action-region"></div>\r\n<div class="p-3">\r\n'+(null!=(i=n.if.call(l,null!=(i=null!=t?t.options:t)?i.message:i,{name:"if",hash:{},fn:e.program(1,r,0),inverse:e.noop,data:r}))?i:"")+'<div class="video-preview-region responsize-img col-7 pt-3 pb-2 px-0">\r\n <img class="img-fluid cursor-pointer" src="'+e.escapeExpression(e.lambda(null!=(i=null!=(i=null!=t?t.video:t)?i.thumbnail:i)?i.url:i,t))+'"/>\r\n</div>\r\n'+(null!=(i=n.if.call(l,null!=(i=null!=t?t.options:t)?i.interactive:i,{name:"if",hash:{},fn:e.program(3,r,0),inverse:e.noop,data:r}))?i:"")+'<div class="video-info-region py-1"></div>\r\n</div>'},useData:!0})},1332:function(e,t,n){e.exports={avatar:"_2c8zD",message:"EQzqm",interactive:"mnE2L"}},1333:function(e,t,n){var o=n(10);e.exports=(o.default||o).template({compiler:[8,">= 4.3.0"],main:function(e,t,n,o,r){e.propertyIsEnumerable;var i,l=e.escapeExpression,s=e.lambda;return'<div class="border-bottom">\r\n <h1 class="h3 p-3 m-0">'+l((n.lang||t&&t.lang||e.hooks.helperMissing).call(null!=t?t:e.nullContext||{},"staffRequests",{name:"lang",hash:{},data:r}))+'</h1>\r\n</div>\r\n<div class="request-list-region border-right d-inline-block '+l(s(null!=(i=null!=(i=null!=t?t.options:t)?i.styles:i)?i.requestList:i,t))+'"></div><div class="request-details-region border-left d-inline-block '+l(s(null!=(i=null!=(i=null!=t?t.options:t)?i.styles:i)?i.requestDetails:i,t))+'"></div>\r\n<div class="empty-region"></div>'},useData:!0})},1334:function(e,t,n){e.exports={requestList:"_3DFfh",requestDetails:"_2ezub"}},1470:function(e,t,n){"use strict";n.r(t);var o=n(6),r=n(5),i=n(3),l=n(2),s=n(101),a=n(492),c=n(491),u=n(305),f=n(0),p=n(196),d=n(141),h=n(9),y=n(253),m=n(29),g=n(1327),v=n.n(g),b=n(1328),w=n.n(b);function k(e){return(k="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 S(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function C(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 R(e,t,n){return t&&C(e.prototype,t),n&&C(e,n),e}function E(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&&x(e,t)}function x(e,t){return(x=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e})(e,t)}function O(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 Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(e){return!1}}();return function(){var n,o=_(e);if(t){var r=_(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"!==k(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){return(_=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)})(e)}var I=function(e){E(n,e);var t=O(n);function n(e){return S(this,n),t.call(this,e)}return R(n,[{key:"name",get:function(){return"StaffRequestItemComponent"}},{key:"template",get:function(){return v.a}},{key:"lang",get:function(){return"staffRequests.staffRequestItem"}},{key:"className",get:function(){var e="p-3 border-bottom cursor-pointer ".concat(w.a.item);return this.isSelected()&&(e+=" ".concat(w.a.selected)),e}},{key:"events",value:function(){return{click:"onClick"}}},{key:"isSelected",value:function(){return this.options.selectedRequestId&&this.model.get("id").toString()===this.options.selectedRequestId.toString()}},{key:"onClick",value:function(){l.a.AppLinkHelper.trigger({application:f.b.STAFF_REQUESTS,action:f.a.StaffRequests.EDIT_REQUEST,args:[this.model.get("id")]})}},{key:"viewOptions",value:function(){return{dateRequested:m.parseZone(this.model.get("dateCreated")).local().fromNow(),isSelected:this.isSelected(),firstName:this.model.user.get("name"),lastName:this.model.user.get("surname")}}}]),n}(l.a.Component),q=function(e){E(n,e);var t=O(n);function n(e){return S(this,n),t.call(this,e)}return R(n,[{key:"name",get:function(){return"StaffRequestListComponent"}},{key:"className",get:function(){return w.a.list}},{key:"childView",get:function(){return I}},{key:"childViewOptions",get:function(){return{selectedRequestId:this.options.selectedRequestId,currentUser:this.options.currentUser}}}]),n}(l.a.ComponentCollection),N=n(13),P=n(4),L=n(1150),D=n(1082),F=n(1045),M=n(30),j=n(42),A=n(48),U=n(83),V=n(1052),B=n(155),H=n(1191),Q=n(1112),K=n(1329),z=n.n(K),Y=n(1330),J=n.n(Y);function W(e){return(W="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 G(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 Z(e,t){return(Z=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 Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(e){return!1}}();return function(){var n,o=ee(e);if(t){var r=ee(this).constructor;n=Reflect.construct(o,arguments,r)}else n=o.apply(this,arguments);return $(this,n)}}function $(e,t){return!t||"object"!==W(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 ee(e){return(ee=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)})(e)}var te=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&&Z(e,t)}(s,e);var t,n,r,i=X(s);function s(e){return function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,s),i.call(this,e)}return t=s,(n=[{key:"initialize",value:function(){this.bindListeners(),this.getViewModel();var e=this.viewModel.destinationLibrary&&this.viewModel.destinationLibrary.get("id"),t=e&&this.collection.get(e);this.folderCollection=t?t.children:new U.a,A.a.setSelected(this.folderTreeKey,this.viewModel.destinationFolder,this.folderCollection)}},{key:"name",get:function(){return"StaffRequestActionsComponent"}},{key:"template",get:function(){return J.a}},{key:"lang",get:function(){return"staffRequests.staffRequestActions"}},{key:"folderTreeKey",get:function(){return"staff:requests:folder:select"}},{key:"className",get:function(){return"p-3 border-bottom ".concat(z.a.actions)}},{key:"channelName",get:function(){return"".concat(this.name).concat(this.cid)}},{key:"viewModelName",get:function(){return"".concat(this.name,":").concat(this.model.get("id"))}},{key:"regions",value:function(){return{librarySelect:{el:".library-select-region",replaceElement:!0},folderSelect:{el:".folder-select-region",replaceElement:!0}}}},{key:"events",value:function(){return{"click .approve":"onClickApprove","click .reject":"onClickReject"}}},{key:"bindListeners",value:function(){var e=this;this.listenTo(this.channelName,"library:selected",this.onLibrarySelected),this.listenTo(this.channelName,"folder:selected",this.onFolderSelected),this.listenTo(this.channelName,"create:folder:clicked",this.onClickCreateFolder),this.listenTo(this.options.staffRequestsChannel,"select:folder",(function(t){e.onFolderSelected(t),e.render()}))}},{key:"getViewModel",value:function(){var e={},t=this.collection.get(this.model.destinationLibrary);t&&(e.destinationLibrary=t.toJSON());var n=A.a.getModelFromCollection(this.model.destinationFolder.get("id"),this.collection);n&&(e.destinationFolder=n.toJSON()),this.viewModel=M.a.get(this.viewModelName,e,{ctor:B.a}),this.viewModel.addValidation(H.a);var o=this.viewModel.get("destinationFolder");o&&(o.collection=n.collection)}},{key:"onLibrarySelected",value:function(e){this.viewModel.set("destinationLibrary",e.toJSON()),this.viewModel.unset("destinationFolder"),this.viewModel.set("destinationFolder",{}),A.a.deselectAll(this.folderTreeKey,this.folderCollection),this.folderCollection=e.get("children"),this.renderFolderSelect()}},{key:"onFolderSelected",value:function(e){this.viewModel.set("destinationFolder",e.toJSON()),this.viewModel.get("destinationFolder").collection=e.collection,A.a.setSelected(this.folderTreeKey,e,this.folderCollection)}},{key:"onClickApprove",value:function(){var e=this.model.get("id"),t=this.viewModel.destinationLibrary.get("id"),n=this.viewModel.destinationFolder.get("id");e&&t&&n&&(l.a.AppLinkHelper.trigger({application:f.b.STAFF_REQUESTS,action:f.a.StaffRequests.APPROVE_REQUEST,args:[e,t,n]}),this.logStaffRequestAction(P.UserAction.Approve))}},{key:"onClickReject",value:function(){l.a.AppLinkHelper.trigger({application:f.b.STAFF_REQUESTS,action:f.a.StaffRequests.REJECT_REQUEST,args:[this.model.get("id")]}),this.logStaffRequestAction(P.UserAction.Reject)}},{key:"onClickCreateFolder",value:function(){l.a.AppLinkHelper.trigger({application:f.b.STAFF_REQUESTS,action:f.a.Shared.NEW_FOLDER,args:[this.viewModel.destinationLibrary.get("id")]}),this.logCreateFolderAction()}},{key:"logStaffRequestAction",value:function(e){var t={location:P.LocationContext.StaffRequestDetails,actionType:e,entity:P.EntityType.StaffRequest,workflowPhase:P.WorkflowPhase.Start},n={id:this.model.get("id"),videoId:this.model.get("video")&&this.model.get("video").get("id"),requestingUserId:this.model.get("user")&&this.model.get("user").get("id"),sourceLibraryId:this.model.get("sourceLibrary")&&this.model.get("sourceLibrary").get("id"),sourceFolderId:this.model.get("sourceFolder")&&this.model.get("sourceFolder").get("id"),destinationLibraryId:this.viewModel.destinationLibrary.get("id"),destinationFolderId:this.viewModel.destinationFolder.get("id")};j.a.logUserAction(n,t)}},{key:"logCreateFolderAction",value:function(){var e={location:P.LocationContext.StaffRequestDetails,actionType:P.UserAction.Create,entity:P.EntityType.Folder,workflowPhase:P.WorkflowPhase.Start},t={libraryId:this.viewModel.destinationLibrary.get("id")};j.a.logUserAction(t,e)}},{key:"renderLibrarySelect",value:function(){this.collection.length<2||this.showChildView("librarySelect",new Q.a({collection:this.collection,channelName:this.channelName,currentLibraryId:this.viewModel.destinationLibrary&&this.viewModel.destinationLibrary.get("id"),inputName:"destinationLibrary",placeholderText:this.viewModel.destinationLibrary&&this.viewModel.destinationLibrary.get("name"),disabledLibraryIds:this.options.disabledLibraryIds}))}},{key:"renderFolderSelect",value:function(){this.showChildView("folderSelect",new V.a({collection:this.folderCollection,channelName:this.channelName,folderTreeKey:this.folderTreeKey,canCreateNew:!0}))}},{key:"viewOptions",value:function(){return{styles:z.a,sourceLibraryName:F.a.mapSourceToDisplayName(this.model.sourceLibrary),sourceClass:"".concat(z.a.source," ").concat(F.a.mapSourceToClass(this.model.sourceLibrary.get("type"))),showLibrarySelect:this.collection&&this.collection.length>1}}},{key:"onRender",value:function(){this.renderLibrarySelect(),this.renderFolderSelect(),o.Validation.bind(this,{model:this.viewModel})}}])&&G(t.prototype,n),r&&G(t,r),s}(l.a.Component),ne=n(1331),oe=n.n(ne),re=n(1332),ie=n.n(re);function le(e){return(le="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 se(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 ae(e,t){return(ae=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e})(e,t)}function ce(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 Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(e){return!1}}();return function(){var n,o=fe(e);if(t){var r=fe(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"!==le(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 fe(e){return(fe=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&&ae(e,t)}(i,e);var t,n,o,r=ce(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"StaffRequestDetailsComponent"}},{key:"template",get:function(){return oe.a}},{key:"lang",get:function(){return"staffRequests.staffRequestDetails"}},{key:"regions",value:function(){return{actions:{el:".request-action-region",replaceElement:!0},preview:{el:".video-preview-region",replaceElement:!1},info:{el:".video-info-region",replaceElement:!1}}}},{key:"getAvatarUrl",value:function(){var e=this.collection&&this.collection.first(),t=e&&e.user&&e.user.avatar;if(t&&t.get("url"))return t.get("url");var n="".concat(this.options.config.get("imageCdnUrl"),"/v1/profile-images?initials=").concat(this.getInitials());return N.g.createUrl(n,{size:"small"})}},{key:"getInitials",value:function(){var e=this.collection&&this.collection.first();if(e&&e.user){var t=e.user.get("name"),n=e.user.get("surname");return"".concat(t&&t.trim()[0]).concat(n&&n.trim()[0])}}},{key:"renderActions",value:function(){this.showChildView("actions",new te({model:this.model,collection:this.options.libraryCollection,disabledLibraryIds:this.options.disabledLibraryIds,staffRequestsChannel:this.options.channelName}))}},{key:"renderVideoPreview",value:function(){this.showChildView("preview",new D.a({model:this.model.video,webPlayerUrl:this.options.config.get("webPlayerUrl"),analyticsOptions:{location:P.LocationContext.VideoRequest},currentUser:this.options.currentUser}))}},{key:"renderVideoInfo",value:function(){this.showChildView("info",new L.a({model:this.model.video,config:this.options.config,externalSeriesLink:!0}))}},{key:"viewOptions",value:function(){return{styles:ie.a,avatarUrl:this.getAvatarUrl(),message:this.collection&&this.collection.length&&this.collection.first().toJSON(),interactive:F.a.isInteractive(this.model.video),firstName:this.model.user.get("name"),lastName:this.model.user.get("surname")}}},{key:"onRender",value:function(){this.renderActions(),this.renderVideoPreview(),this.renderVideoInfo()}}])&&se(t.prototype,n),o&&se(t,o),i}(l.a.Component),de=n(143),he=n(1333),ye=n.n(he),me=n(1334),ge=n.n(me);function ve(e){return(ve="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 be(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 we(e,t){return(we=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e})(e,t)}function ke(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 Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(e){return!1}}();return function(){var n,o=Ce(e);if(t){var r=Ce(this).constructor;n=Reflect.construct(o,arguments,r)}else n=o.apply(this,arguments);return Se(this,n)}}function Se(e,t){return!t||"object"!==ve(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 Ce(e){return(Ce=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)})(e)}n.d(t,"StaffRequestsView",(function(){return Re}));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&&we(e,t)}(v,e);var t,n,m,g=ke(v);function v(e){var t;return function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,v),(t=g.call(this,e)).unavailableLibraryIds=[],t}return t=v,(n=[{key:"initialize",value:function(){this.staffRequestDataService=r.a.getInstance(f.g.StaffRequests,this),this.videoDataService=r.a.getInstance(f.g.Video,this),this.options.referrer===a.a.Notification&&this.staffRequestDataService.clearRequestCache(),this.bindListeners()}},{key:"name",get:function(){return"StaffRequestsView"}},{key:"lang",get:function(){return"staffRequests.staffRequests"}},{key:"title",get:function(){return i.a.getPhrase(this.lang,"title")}},{key:"template",get:function(){return ye.a}},{key:"className",get:function(){return"bg-white"}},{key:"channelName",get:function(){return"".concat(this.name).concat(this.cid)}},{key:"regions",value:function(){return{requestList:{el:".request-list-region",partialLoading:h.h.StaffRequestList,replaceElement:!1},requestDetails:{el:".request-details-region",partialLoading:h.h.StaffRequestDetails,replaceElement:!1},emptyState:{el:".empty-region",replaceElement:!0}}}},{key:"behaviors",get:function(){var e=this;return[{behaviorClass:u.a,collectionName:"staffRequestCollection",region:"emptyState",type:h.c.StaffRequests,shouldRender:c.a.isCollectionEmpty.bind(null,this,"staffRequestCollection"),componentOptions:{description:function(){return e.getEmptyStateDescription()},emptyState:function(){return i.a.getPhrase(e.lang,"emptyStateHeading")}},emptyStateComponents:f.h}]}},{key:"bindListeners",value:function(){if(this.listenTo(f.e.LIBRARY,"folder:created",this.onFolderCreated),this.options.requestId){this.listenTo(f.e.STAFF_REQUEST,"cache:cleared",this.render);var e="".concat(f.f.STAFF_REQUEST_BY_ID,":").concat(this.options.requestId);this.listenTo(f.e.STAFF_REQUEST,"".concat(e,":sync"),this.render),this.listenTo(f.e.STAFF_REQUEST,"".concat(e,":error"),this.onError),this.listenTo(f.e.STAFF_REQUEST,"".concat(f.f.STAFF_REQUESTS,":invalidate"),this.onUpdate);var t="".concat(f.f.STAFF_REQUEST_MESSAGES,":").concat(this.options.requestId);this.listenTo(f.e.STAFF_REQUEST,"".concat(t,":sync"),this.render),this.listenTo(f.e.STAFF_REQUEST,"".concat(t,":error"),this.onError)}}},{key:"onUpdate",value:function(){this.staffRequestCollection=null,this.render()}},{key:"fetchData",value:function(){var e=this;if(this.staffRequestCollection||this.staffRequestDataService.getStaffRequests((function(t){e.staffRequestCollection=t,e.onRequestsSync()})),this.options.requestId&&(this.model=this.staffRequestDataService.getStaffRequest(this.options.requestId),this.staffRequestMessageCollection=this.staffRequestDataService.getMessages(this.options.requestId),this.libraryCollection&&this.libraryCollection.length>1&&this.model&&!this.unavailableLibraryIds.length)){var t=this.model.get("video");this.videoDataService.getLibraries(t.get("id"),(function(t){e.unavailableLibraryIds=t.map((function(e){return e.get("id")+""})),e.render()}))}}},{key:"onRequestsSync",value:function(){var e;this.options.requestId&&(e=this.staffRequestCollection.get(this.options.requestId)),!e&&this.staffRequestCollection.first()?(e=this.staffRequestCollection.first(),l.a.AppLinkHelper.trigger({application:f.b.STAFF_REQUESTS,action:f.a.StaffRequests.EDIT_REQUEST,args:[e.id]},{replace:!0})):this.render()}},{key:"onError",value:function(){this.redirectToHome()}},{key:"onFolderCreated",value:function(e){o.Radio.channel(this.channelName).trigger("select:folder",e),this.render()}},{key:"redirectToHome",value:function(){l.a.AppLinkHelper.trigger({application:f.b.STAFF_REQUESTS,action:f.a.StaffRequests.HOME})}},{key:"getEmptyStateDescription",value:function(){return this.libraryCollection?!this.libraryCollection.length||this.libraryCollection.every((function(e){return e.get("status")!==s.a.Published}))?i.a.getPhrase(this.lang,"emptyStateNoLibraries"):i.a.getPhrase(this.lang,"emptyStateDescription"):""}},{key:"renderRequestList",value:function(){this.staffRequestCollection?this.showChildView("requestList",new q({collection:this.staffRequestCollection,selectedRequestId:this.options.requestId,currentUser:this.currentUser})):this.renderPartialLoading("requestList")}},{key:"renderRequestDetails",value:function(){var e=!!this.libraryCollection,t=e&&!!this.model&&!!this.staffRequestMessageCollection;!this.options.requestId&&!e||this.options.requestId&&!t?this.renderPartialLoading("requestDetails"):this.options.requestId&&this.showChildView("requestDetails",new pe({model:this.model,collection:this.staffRequestMessageCollection,libraryCollection:this.libraryCollection,disabledLibraryIds:this.unavailableLibraryIds,config:this.config,channelName:this.channelName,currentUser:this.currentUser}))}},{key:"viewOptions",value:function(){return{styles:ge.a}}},{key:"requiredResources",get:function(){return{config:p.b.config,libraryCollection:de.b.libraries,currentUser:d.b.currentUser}}},{key:"onBeforeRender",value:function(){return this.fetchData(),!this.model||this.model.get("status")===y.a.Pending||(this.redirectToHome(),!1)}},{key:"onRender",value:function(){this.renderRequestList(),this.renderRequestDetails()}}])&&be(t.prototype,n),m&&be(t,m),v}(l.a.View)}}]);