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

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 (306) hide show
  1. package/dist/bundles.json +1 -1
  2. package/dist/scripts/{bundle-f18858be26.min.js → bundle-d78cc0ce15.min.js} +1 -1
  3. package/package.json +3 -3
  4. package/dist/css/0-library-editor.chunk.css +0 -26
  5. package/dist/css/10-library-editor.chunk.css +0 -25
  6. package/dist/css/11-library-editor.chunk.css +0 -135
  7. package/dist/css/12-library-editor.chunk.css +0 -18
  8. package/dist/css/13-library-editor.chunk.css +0 -21
  9. package/dist/css/14-library-editor.chunk.css +0 -76
  10. package/dist/css/16-library-editor.chunk.css +0 -52
  11. package/dist/css/17-library-editor.chunk.css +0 -14
  12. package/dist/css/18-library-editor.chunk.css +0 -18
  13. package/dist/css/2-library-editor.chunk.css +0 -143
  14. package/dist/css/21-library-editor.chunk.css +0 -52
  15. package/dist/css/22-library-editor.chunk.css +0 -12
  16. package/dist/css/23-library-editor.chunk.css +0 -25
  17. package/dist/css/25-library-editor.chunk.css +0 -35
  18. package/dist/css/26-library-editor.chunk.css +0 -20
  19. package/dist/css/28-library-editor.chunk.css +0 -63
  20. package/dist/css/29-library-editor.chunk.css +0 -80
  21. package/dist/css/3-library-editor.chunk.css +0 -15
  22. package/dist/css/30-library-editor.chunk.css +0 -33
  23. package/dist/css/31-library-editor.chunk.css +0 -30
  24. package/dist/css/32-library-editor.chunk.css +0 -45
  25. package/dist/css/33-library-editor.chunk.css +0 -13
  26. package/dist/css/34-library-editor.chunk.css +0 -19
  27. package/dist/css/35-library-editor.chunk.css +0 -18
  28. package/dist/css/36-library-editor.chunk.css +0 -12
  29. package/dist/css/37-library-editor.chunk.css +0 -5
  30. package/dist/css/38-library-editor.chunk.css +0 -5
  31. package/dist/css/40-library-editor.chunk.css +0 -24
  32. package/dist/css/41-library-editor.chunk.css +0 -76
  33. package/dist/css/42-library-editor.chunk.css +0 -44
  34. package/dist/css/43-library-editor.chunk.css +0 -30
  35. package/dist/css/44-library-editor.chunk.css +0 -12
  36. package/dist/css/45-library-editor.chunk.css +0 -25
  37. package/dist/css/46-library-editor.chunk.css +0 -24
  38. package/dist/css/47-library-editor.chunk.css +0 -84
  39. package/dist/css/48-library-editor.chunk.css +0 -4
  40. package/dist/css/49-library-editor.chunk.css +0 -33
  41. package/dist/css/50-library-editor.chunk.css +0 -20
  42. package/dist/css/51-library-editor.chunk.css +0 -37
  43. package/dist/css/52-library-editor.chunk.css +0 -64
  44. package/dist/css/55-library-editor.chunk.css +0 -3
  45. package/dist/css/56-library-editor.chunk.css +0 -3
  46. package/dist/css/58-library-editor.chunk.css +0 -3
  47. package/dist/css/59-library-editor.chunk.css +0 -3
  48. package/dist/css/6-library-editor.chunk.css +0 -42
  49. package/dist/css/60-library-editor.chunk.css +0 -16
  50. package/dist/css/62-library-editor.chunk.css +0 -4
  51. package/dist/css/63-library-editor.chunk.css +0 -168
  52. package/dist/css/67-library-editor.chunk.css +0 -76
  53. package/dist/css/68-library-editor.chunk.css +0 -15
  54. package/dist/css/69-library-editor.chunk.css +0 -15
  55. package/dist/css/7-library-editor.chunk.css +0 -10
  56. package/dist/css/70-library-editor.chunk.css +0 -21
  57. package/dist/css/71-library-editor.chunk.css +0 -38
  58. package/dist/css/72-library-editor.chunk.css +0 -14
  59. package/dist/css/73-library-editor.chunk.css +0 -35
  60. package/dist/css/74-library-editor.chunk.css +0 -27
  61. package/dist/css/75-library-editor.chunk.css +0 -4
  62. package/dist/css/76-library-editor.chunk.css +0 -4
  63. package/dist/css/8-library-editor.chunk.css +0 -7
  64. package/dist/css/library-editor-app.css +0 -9291
  65. package/dist/scripts/0-2f5a66d67a.chunk.js +0 -1
  66. package/dist/scripts/0-aaa3608203.chunk.js +0 -1
  67. package/dist/scripts/0.chunk.js +0 -64
  68. package/dist/scripts/1-323257c9af.chunk.js +0 -1
  69. package/dist/scripts/1-c690200bdb.chunk.js +0 -1
  70. package/dist/scripts/1.chunk.js +0 -75
  71. package/dist/scripts/10-466cc9683b.chunk.js +0 -1
  72. package/dist/scripts/10-abb1be81df.chunk.js +0 -1
  73. package/dist/scripts/10.chunk.js +0 -62
  74. package/dist/scripts/11-3dec7d2c7e.chunk.js +0 -11
  75. package/dist/scripts/11-3ea7c37829.chunk.js +0 -11
  76. package/dist/scripts/11.chunk.js +0 -317
  77. package/dist/scripts/12-26db35cb21.chunk.js +0 -1
  78. package/dist/scripts/12-bb9475eac6.chunk.js +0 -1
  79. package/dist/scripts/12.chunk.js +0 -56
  80. package/dist/scripts/13-a886aeba95.chunk.js +0 -1
  81. package/dist/scripts/13-de5b2bb606.chunk.js +0 -1
  82. package/dist/scripts/13.chunk.js +0 -25
  83. package/dist/scripts/14-c671e8bc46.chunk.js +0 -1
  84. package/dist/scripts/14-d80e0ddb3c.chunk.js +0 -1
  85. package/dist/scripts/14.chunk.js +0 -272
  86. package/dist/scripts/15-3c4f92249c.chunk.js +0 -1
  87. package/dist/scripts/15-ac502fa5ec.chunk.js +0 -1
  88. package/dist/scripts/15.chunk.js +0 -35
  89. package/dist/scripts/16-082a975dbb.chunk.js +0 -1
  90. package/dist/scripts/16-783d3e4092.chunk.js +0 -1
  91. package/dist/scripts/16.chunk.js +0 -79
  92. package/dist/scripts/17-b13fb41bd3.chunk.js +0 -1
  93. package/dist/scripts/17-c66a2978ae.chunk.js +0 -1
  94. package/dist/scripts/17.chunk.js +0 -40
  95. package/dist/scripts/18.chunk.js +0 -40
  96. package/dist/scripts/19.chunk.js +0 -43
  97. package/dist/scripts/2-7cc9176e8a.chunk.js +0 -1
  98. package/dist/scripts/2-8e809f7467.chunk.js +0 -1
  99. package/dist/scripts/2.chunk.js +0 -33
  100. package/dist/scripts/20-6dd45d4f46.chunk.js +0 -1
  101. package/dist/scripts/20-d3444fe825.chunk.js +0 -1
  102. package/dist/scripts/20.chunk.js +0 -18
  103. package/dist/scripts/21-4de1bd55b0.chunk.js +0 -1
  104. package/dist/scripts/21-df15d4d827.chunk.js +0 -1
  105. package/dist/scripts/21.chunk.js +0 -55
  106. package/dist/scripts/22-5d9b14f0b0.chunk.js +0 -1
  107. package/dist/scripts/22-6d8b1c21c5.chunk.js +0 -1
  108. package/dist/scripts/22.chunk.js +0 -47
  109. package/dist/scripts/23-30dffdfecf.chunk.js +0 -1
  110. package/dist/scripts/23-9f6cc70b65.chunk.js +0 -1
  111. package/dist/scripts/23.chunk.js +0 -47
  112. package/dist/scripts/24-a675687323.chunk.js +0 -1
  113. package/dist/scripts/24-b6ec3366cb.chunk.js +0 -1
  114. package/dist/scripts/24.chunk.js +0 -33
  115. package/dist/scripts/25-7faa89d5e3.chunk.js +0 -1
  116. package/dist/scripts/25-a1259842aa.chunk.js +0 -1
  117. package/dist/scripts/25.chunk.js +0 -25
  118. package/dist/scripts/26-2d98320aae.chunk.js +0 -1
  119. package/dist/scripts/26-bbf1c17cb5.chunk.js +0 -1
  120. package/dist/scripts/26.chunk.js +0 -25
  121. package/dist/scripts/27-531532942a.chunk.js +0 -1
  122. package/dist/scripts/27-eff11570d8.chunk.js +0 -1
  123. package/dist/scripts/27.chunk.js +0 -10
  124. package/dist/scripts/28-285eb18d9a.chunk.js +0 -1
  125. package/dist/scripts/28-b71b9ac0eb.chunk.js +0 -1
  126. package/dist/scripts/28.chunk.js +0 -334
  127. package/dist/scripts/29-7be825c44d.chunk.js +0 -1
  128. package/dist/scripts/29-b7d2b7cde1.chunk.js +0 -1
  129. package/dist/scripts/29.chunk.js +0 -202
  130. package/dist/scripts/3-151fc3d544.chunk.js +0 -1
  131. package/dist/scripts/3-eeb2d3d492.chunk.js +0 -1
  132. package/dist/scripts/3.chunk.js +0 -57
  133. package/dist/scripts/30-0e805630f4.chunk.js +0 -1
  134. package/dist/scripts/30-6fdc3a1e11.chunk.js +0 -1
  135. package/dist/scripts/30.chunk.js +0 -137
  136. package/dist/scripts/31-49c7676cff.chunk.js +0 -1
  137. package/dist/scripts/31-b1a679306a.chunk.js +0 -1
  138. package/dist/scripts/31.chunk.js +0 -113
  139. package/dist/scripts/32-7e2b293f23.chunk.js +0 -1
  140. package/dist/scripts/32-e448ef7e82.chunk.js +0 -1
  141. package/dist/scripts/32.chunk.js +0 -115
  142. package/dist/scripts/33-8de738bfb9.chunk.js +0 -1
  143. package/dist/scripts/33-b5cf4cfa6f.chunk.js +0 -1
  144. package/dist/scripts/33.chunk.js +0 -93
  145. package/dist/scripts/34-894005f525.chunk.js +0 -1
  146. package/dist/scripts/34-b206a218e9.chunk.js +0 -1
  147. package/dist/scripts/34.chunk.js +0 -63
  148. package/dist/scripts/35-9cdb858587.chunk.js +0 -1
  149. package/dist/scripts/35-d0137a950e.chunk.js +0 -1
  150. package/dist/scripts/35.chunk.js +0 -48
  151. package/dist/scripts/36-54624daa85.chunk.js +0 -1
  152. package/dist/scripts/36-846ab1a7ae.chunk.js +0 -1
  153. package/dist/scripts/36.chunk.js +0 -33
  154. package/dist/scripts/37-43b5d8c3af.chunk.js +0 -1
  155. package/dist/scripts/37-6ffb96d64b.chunk.js +0 -1
  156. package/dist/scripts/37.chunk.js +0 -25
  157. package/dist/scripts/38-1b53bc0747.chunk.js +0 -1
  158. package/dist/scripts/38-d5dc6c775d.chunk.js +0 -1
  159. package/dist/scripts/38.chunk.js +0 -25
  160. package/dist/scripts/39-674f9ca697.chunk.js +0 -1
  161. package/dist/scripts/39-d1b6c2defd.chunk.js +0 -1
  162. package/dist/scripts/39.chunk.js +0 -19
  163. package/dist/scripts/4-3516e54324.chunk.js +0 -1
  164. package/dist/scripts/4-adab2b69d4.chunk.js +0 -1
  165. package/dist/scripts/4.chunk.js +0 -26
  166. package/dist/scripts/40-4f0571b8a2.chunk.js +0 -1
  167. package/dist/scripts/40-bc2c6ae993.chunk.js +0 -1
  168. package/dist/scripts/40.chunk.js +0 -182
  169. package/dist/scripts/41-2084077727.chunk.js +0 -1
  170. package/dist/scripts/41-a4121258fa.chunk.js +0 -1
  171. package/dist/scripts/41.chunk.js +0 -175
  172. package/dist/scripts/42-16c4690eeb.chunk.js +0 -1
  173. package/dist/scripts/42-c280d7752c.chunk.js +0 -1
  174. package/dist/scripts/42.chunk.js +0 -176
  175. package/dist/scripts/43-16efe31266.chunk.js +0 -1
  176. package/dist/scripts/43-c0a7d44737.chunk.js +0 -1
  177. package/dist/scripts/43.chunk.js +0 -121
  178. package/dist/scripts/44-b04dab25e6.chunk.js +0 -1
  179. package/dist/scripts/44-dbc3731bcb.chunk.js +0 -1
  180. package/dist/scripts/44.chunk.js +0 -122
  181. package/dist/scripts/45-a6b9650b26.chunk.js +0 -1
  182. package/dist/scripts/45-bc07f6ed34.chunk.js +0 -1
  183. package/dist/scripts/45.chunk.js +0 -85
  184. package/dist/scripts/46-319d735448.chunk.js +0 -1
  185. package/dist/scripts/46-b403f6be5b.chunk.js +0 -1
  186. package/dist/scripts/46.chunk.js +0 -78
  187. package/dist/scripts/47-87b93cae7d.chunk.js +0 -1
  188. package/dist/scripts/47-b482682154.chunk.js +0 -1
  189. package/dist/scripts/47.chunk.js +0 -70
  190. package/dist/scripts/48-92ee4ae7a7.chunk.js +0 -1
  191. package/dist/scripts/48-d924ddb603.chunk.js +0 -1
  192. package/dist/scripts/48.chunk.js +0 -88
  193. package/dist/scripts/49-3728b15a3c.chunk.js +0 -1
  194. package/dist/scripts/49-5c6fe71808.chunk.js +0 -1
  195. package/dist/scripts/49.chunk.js +0 -62
  196. package/dist/scripts/5-3fe2876121.chunk.js +0 -1
  197. package/dist/scripts/5-c3a1e51e77.chunk.js +0 -1
  198. package/dist/scripts/5.chunk.js +0 -10
  199. package/dist/scripts/50-38186c72b7.chunk.js +0 -1
  200. package/dist/scripts/50-a20245292f.chunk.js +0 -1
  201. package/dist/scripts/50.chunk.js +0 -64
  202. package/dist/scripts/51-37749b146e.chunk.js +0 -1
  203. package/dist/scripts/51-4e98f3c73f.chunk.js +0 -1
  204. package/dist/scripts/51.chunk.js +0 -55
  205. package/dist/scripts/52-1ece273b07.chunk.js +0 -1
  206. package/dist/scripts/52-67c9e2601b.chunk.js +0 -1
  207. package/dist/scripts/52.chunk.js +0 -47
  208. package/dist/scripts/53-16ef9ed0cb.chunk.js +0 -1
  209. package/dist/scripts/53-eae4eb72dc.chunk.js +0 -1
  210. package/dist/scripts/53.chunk.js +0 -56
  211. package/dist/scripts/54-56e7cb4493.chunk.js +0 -1
  212. package/dist/scripts/54-8d377c5aff.chunk.js +0 -1
  213. package/dist/scripts/54.chunk.js +0 -56
  214. package/dist/scripts/55-b621cecfd3.chunk.js +0 -1
  215. package/dist/scripts/55-c7303d997f.chunk.js +0 -1
  216. package/dist/scripts/55.chunk.js +0 -41
  217. package/dist/scripts/56-53c4bdf797.chunk.js +0 -1
  218. package/dist/scripts/56-db9dbfd5fa.chunk.js +0 -1
  219. package/dist/scripts/56.chunk.js +0 -41
  220. package/dist/scripts/57-be599f08b2.chunk.js +0 -1
  221. package/dist/scripts/57-d31643829d.chunk.js +0 -1
  222. package/dist/scripts/57.chunk.js +0 -50
  223. package/dist/scripts/58-8d1653ecd7.chunk.js +0 -1
  224. package/dist/scripts/58-c0e985cbc4.chunk.js +0 -1
  225. package/dist/scripts/58.chunk.js +0 -33
  226. package/dist/scripts/59-b36d9e7be9.chunk.js +0 -1
  227. package/dist/scripts/59-fcf6a940d6.chunk.js +0 -1
  228. package/dist/scripts/59.chunk.js +0 -33
  229. package/dist/scripts/6-19be7f0d3b.chunk.js +0 -1
  230. package/dist/scripts/6-deb7609cc9.chunk.js +0 -1
  231. package/dist/scripts/6.chunk.js +0 -40
  232. package/dist/scripts/60-6995cd4cf5.chunk.js +0 -1
  233. package/dist/scripts/60-b4f7090720.chunk.js +0 -1
  234. package/dist/scripts/60.chunk.js +0 -33
  235. package/dist/scripts/61-7d1475b277.chunk.js +0 -1
  236. package/dist/scripts/61-cac68e627b.chunk.js +0 -1
  237. package/dist/scripts/61.chunk.js +0 -33
  238. package/dist/scripts/62-35425b2e29.chunk.js +0 -1
  239. package/dist/scripts/62-3a96a88b11.chunk.js +0 -1
  240. package/dist/scripts/62.chunk.js +0 -25
  241. package/dist/scripts/63-714e5c1ee7.chunk.js +0 -1
  242. package/dist/scripts/63-90bb249d0f.chunk.js +0 -1
  243. package/dist/scripts/63.chunk.js +0 -25
  244. package/dist/scripts/64-4f64cd6916.chunk.js +0 -1
  245. package/dist/scripts/64-b92f429d9a.chunk.js +0 -1
  246. package/dist/scripts/64.chunk.js +0 -33
  247. package/dist/scripts/65-4041af23f8.chunk.js +0 -1
  248. package/dist/scripts/65-fe362dec65.chunk.js +0 -1
  249. package/dist/scripts/65.chunk.js +0 -34
  250. package/dist/scripts/66-0bda221806.chunk.js +0 -1
  251. package/dist/scripts/66-1089ec4f34.chunk.js +0 -1
  252. package/dist/scripts/66.chunk.js +0 -33
  253. package/dist/scripts/67-9773a2f9cf.chunk.js +0 -1
  254. package/dist/scripts/67-c03fd65497.chunk.js +0 -1
  255. package/dist/scripts/67.chunk.js +0 -25
  256. package/dist/scripts/68-2ff366d408.chunk.js +0 -1
  257. package/dist/scripts/68-53e4b905db.chunk.js +0 -1
  258. package/dist/scripts/68.chunk.js +0 -25
  259. package/dist/scripts/69-5368c32a2e.chunk.js +0 -1
  260. package/dist/scripts/69-6e315af542.chunk.js +0 -1
  261. package/dist/scripts/69.chunk.js +0 -25
  262. package/dist/scripts/7-8626ad1134.chunk.js +0 -1
  263. package/dist/scripts/7-c86af5cc3a.chunk.js +0 -1
  264. package/dist/scripts/7.chunk.js +0 -33
  265. package/dist/scripts/70-3650ef74f8.chunk.js +0 -1
  266. package/dist/scripts/70-e782f523de.chunk.js +0 -1
  267. package/dist/scripts/70.chunk.js +0 -25
  268. package/dist/scripts/71-979bac4e9f.chunk.js +0 -1
  269. package/dist/scripts/71-a45419aed7.chunk.js +0 -1
  270. package/dist/scripts/71.chunk.js +0 -25
  271. package/dist/scripts/72-93adcc17c5.chunk.js +0 -1
  272. package/dist/scripts/72-be5d02bfe6.chunk.js +0 -1
  273. package/dist/scripts/72.chunk.js +0 -25
  274. package/dist/scripts/73.chunk.js +0 -25
  275. package/dist/scripts/74.chunk.js +0 -25
  276. package/dist/scripts/75.chunk.js +0 -25
  277. package/dist/scripts/76.chunk.js +0 -25
  278. package/dist/scripts/77.chunk.js +0 -26
  279. package/dist/scripts/78.chunk.js +0 -26
  280. package/dist/scripts/79.chunk.js +0 -26
  281. package/dist/scripts/8-2e66d6cb35.chunk.js +0 -1
  282. package/dist/scripts/8-82c9c86dfd.chunk.js +0 -1
  283. package/dist/scripts/8.chunk.js +0 -33
  284. package/dist/scripts/80.chunk.js +0 -26
  285. package/dist/scripts/81.chunk.js +0 -26
  286. package/dist/scripts/82.chunk.js +0 -26
  287. package/dist/scripts/83.chunk.js +0 -26
  288. package/dist/scripts/84.chunk.js +0 -26
  289. package/dist/scripts/85.chunk.js +0 -26
  290. package/dist/scripts/86.chunk.js +0 -18
  291. package/dist/scripts/87.chunk.js +0 -18
  292. package/dist/scripts/88.chunk.js +0 -18
  293. package/dist/scripts/89.chunk.js +0 -18
  294. package/dist/scripts/9-61225547b6.chunk.js +0 -1
  295. package/dist/scripts/9-bd46228181.chunk.js +0 -1
  296. package/dist/scripts/9.chunk.js +0 -18
  297. package/dist/scripts/90.chunk.js +0 -18
  298. package/dist/scripts/91.chunk.js +0 -18
  299. package/dist/scripts/92.chunk.js +0 -18
  300. package/dist/scripts/bundle-39b749b21d.min.js +0 -10
  301. package/dist/scripts/bundle-42046b5b88.min.js +0 -10
  302. package/dist/scripts/bundle-a8b8854ef1.min.js +0 -10
  303. package/dist/scripts/bundle.js +0 -8153
  304. package/dist/scripts/polyfills-022d27190f.min.js +0 -1
  305. package/dist/scripts/polyfills-5139b6bb05.min.js +0 -1
  306. package/dist/scripts/polyfills.js +0 -2701
@@ -1,56 +0,0 @@
1
- (window["webpackJsonp_clickview_library_editor"] = window["webpackJsonp_clickview_library_editor"] || []).push([[12],{
2
-
3
- /***/ "./src/apps/library-editor/components/folder-details/FolderDetails.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 alias1=container.propertyIsEnumerable, alias2=depth0 != null ? depth0 : (container.nullContext || {}), alias3=container.hooks.helperMissing, alias4=container.escapeExpression;\n\n return \" <div class=\\\"form-group\\\">\\r\\n <label for=\\\"name\\\" class=\\\"control-label\\\">\"\n + alias4((helpers.lang||(depth0 && depth0.lang)||alias3).call(alias2,\"name\",{\"name\":\"lang\",\"hash\":{},\"data\":data}))\n + \"</label>\\r\\n <input name=\\\"name\\\" id=\\\"name\\\" type=\\\"text\\\" class=\\\"form-control\\\" placeholder=\\\"\"\n + alias4((helpers.lang||(depth0 && depth0.lang)||alias3).call(alias2,\"namePlaceholder\",{\"name\":\"lang\",\"hash\":{},\"data\":data}))\n + \"\\\" autocomplete=\\\"off\\\" autofocus/>\\r\\n <div class=\\\"form-feedback\\\"></div>\\r\\n </div>\\r\\n\";\n},\"3\":function(container,depth0,helpers,partials,data) {\n var alias1=container.propertyIsEnumerable;\n\n return \" <div class=\\\"form-group pt-2\\\">\\r\\n <label for=\\\"parentId\\\" class=\\\"control-label\\\">\"\n + container.escapeExpression((helpers.lang||(depth0 && depth0.lang)||container.hooks.helperMissing).call(depth0 != null ? depth0 : (container.nullContext || {}),\"parent\",{\"name\":\"lang\",\"hash\":{},\"data\":data}))\n + \"</label>\\r\\n <div class=\\\"parent-folder-region\\\"></div>\\r\\n </div>\\r\\n\";\n},\"compiler\":[8,\">= 4.3.0\"],\"main\":function(container,depth0,helpers,partials,data) {\n var stack1, alias1=container.propertyIsEnumerable, alias2=depth0 != null ? depth0 : (container.nullContext || {});\n\n return \"<form>\\r\\n\"\n + ((stack1 = helpers[\"if\"].call(alias2,((stack1 = (depth0 != null ? depth0.options : depth0)) != null ? stack1.editName : stack1),{\"name\":\"if\",\"hash\":{},\"fn\":container.program(1, data, 0),\"inverse\":container.noop,\"data\":data})) != null ? stack1 : \"\")\n + ((stack1 = helpers[\"if\"].call(alias2,((stack1 = (depth0 != null ? depth0.options : depth0)) != null ? stack1.editParent : stack1),{\"name\":\"if\",\"hash\":{},\"fn\":container.program(3, data, 0),\"inverse\":container.noop,\"data\":data})) != null ? stack1 : \"\")\n + \"</form>\";\n},\"useData\":true});//# sourceURL=[module]\n//# sourceMappingURL=data:application/json;charset=utf-8;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoiLi9zcmMvYXBwcy9saWJyYXJ5LWVkaXRvci9jb21wb25lbnRzL2ZvbGRlci1kZXRhaWxzL0ZvbGRlckRldGFpbHMuaGJzLmpzIiwic291cmNlcyI6WyJmaWxlOi8vQzovQ2xpY2tWaWV3IFByb2plY3RzL0BjbGlja3ZpZXcvcGFja2FnZXMvcHJvamVjdHMvbGlicmFyeS1lZGl0b3Ivc3JjL2FwcHMvbGlicmFyeS1lZGl0b3IvY29tcG9uZW50cy9mb2xkZXItZGV0YWlscy9Gb2xkZXJEZXRhaWxzLmhicyJdLCJzb3VyY2VzQ29udGVudCI6WyJ2YXIgSGFuZGxlYmFycyA9IHJlcXVpcmUoJ2hhbmRsZWJhcnMnKTtcbm1vZHVsZS5leHBvcnRzID0gKEhhbmRsZWJhcnNbJ2RlZmF1bHQnXSB8fCBIYW5kbGViYXJzKS50ZW1wbGF0ZSh7XCIxXCI6ZnVuY3Rpb24oY29udGFpbmVyLGRlcHRoMCxoZWxwZXJzLHBhcnRpYWxzLGRhdGEpIHtcbiAgICB2YXIgYWxpYXMxPWNvbnRhaW5lci5wcm9wZXJ0eUlzRW51bWVyYWJsZSwgYWxpYXMyPWRlcHRoMCAhPSBudWxsID8gZGVwdGgwIDogKGNvbnRhaW5lci5udWxsQ29udGV4dCB8fCB7fSksIGFsaWFzMz1jb250YWluZXIuaG9va3MuaGVscGVyTWlzc2luZywgYWxpYXM0PWNvbnRhaW5lci5lc2NhcGVFeHByZXNzaW9uO1xuXG4gIHJldHVybiB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DApLFwiaW52ZXJzZVwiOmNvbnRhaW5lci5ub29wLFwiZGF0YVwiOmRhdGF9KSkgIT0gbnVsbCA/IHN0YWNrMSA6IFwiXCIpXG4gICAgKyAoKHN0YWNrMSA9IGhlbHBlcnNbXCJpZlwiXS5jYWxsKGFsaWFzMiwoKHN0YWNrMSA9IChkZXB0aDAgIT0gbnVsbCA/IGRlcHRoMC5vcHRpb25zIDogZGVwdGgwKSkgIT0gbnVsbCA/IHN0YWNrMS5lZGl0UGFyZW50IDogc3RhY2sxKSx7XCJuYW1lXCI6XCJpZlwiLFwiaGFzaFwiOnt9LFwiZm5cIjpjb250YWluZXIucHJvZ3JhbSgzLCBkYXRhLCAwKSxcImludmVyc2VcIjpjb250YWluZXIubm9vcCxcImRhdGFcIjpkYXRhfSkpICE9IG51bGwgPyBzdGFjazEgOiBcIlwiKVxuICAgICsgXCI8L2Zvcm0+XCI7XG59LFwidXNlRGF0YVwiOnRydWV9KTsiXSwibWFwcGluZ3MiOiJBQUFBO0FBQ0E7QUFDQTtBQUNBO0FBQ0E7QUFDQTtBQUNBO0FBQ0E7QUFDQTtBQUNBO0FBQ0E7QUFDQTtBQUNBO0FBQ0E7QUFDQTtBQUNBO0FBQ0E7QUFDQTtBQUNBO0FBQ0E7QUFDQTtBQUNBO0FBQ0EiLCJzb3VyY2VSb290IjoiIn0=\n//# sourceURL=webpack-internal:///./src/apps/library-editor/components/folder-details/FolderDetails.hbs\n");
7
-
8
- /***/ }),
9
-
10
- /***/ "./src/apps/library-editor/components/folder-details/FolderDetailsComponent.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__, \"FolderDetailsComponent\", function() { return FolderDetailsComponent; });\n/* harmony import */ var libs_common_core__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(\"../../libs/common/src/backbone/index.ts\");\n/* harmony import */ var shared_behaviors__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(\"./src/shared/behaviors/index.ts\");\n/* harmony import */ var shared_utils__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(\"./src/shared/utils/index.ts\");\n/* harmony import */ var shared_components_tree_dropdown_TreeDropdownComponent__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(\"./src/shared/components/tree-dropdown/TreeDropdownComponent.ts\");\n/* harmony import */ var apps_library_editor_utils_FolderValidation__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(\"./src/apps/library-editor/utils/FolderValidation.ts\");\n/* harmony import */ var _FolderDetails_hbs__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__(\"./src/apps/library-editor/components/folder-details/FolderDetails.hbs\");\n/* harmony import */ var _FolderDetails_hbs__WEBPACK_IMPORTED_MODULE_5___default = /*#__PURE__*/__webpack_require__.n(_FolderDetails_hbs__WEBPACK_IMPORTED_MODULE_5__);\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\nvar FolderDetailsComponent = /*#__PURE__*/function (_Core$Component) {\n _inherits(FolderDetailsComponent, _Core$Component);\n\n var _super = _createSuper(FolderDetailsComponent);\n\n function FolderDetailsComponent(options) {\n _classCallCheck(this, FolderDetailsComponent);\n\n return _super.call(this, options);\n }\n\n _createClass(FolderDetailsComponent, [{\n key: \"initialize\",\n value: function initialize() {\n this.bindListeners();\n }\n }, {\n key: \"bindListeners\",\n value: function bindListeners() {\n this.listenTo(this.options.channelName, 'folder:selected', this.onFolderSelected);\n }\n }, {\n key: \"name\",\n get: function get() {\n return 'FolderDetailsComponent';\n }\n }, {\n key: \"template\",\n get: function get() {\n return _FolderDetails_hbs__WEBPACK_IMPORTED_MODULE_5___default.a;\n }\n }, {\n key: \"lang\",\n get: function get() {\n return 'libraryEditor.folderDetails';\n }\n }, {\n key: \"folderTreeKey\",\n get: function get() {\n return this.options.folderTreeKey || \"folderselect:\".concat(this.cid);\n }\n }, {\n key: \"regions\",\n value: function regions() {\n return {\n parentFolder: '.parent-folder-region'\n };\n }\n }, {\n key: \"behaviors\",\n get: function get() {\n return [{\n behaviorClass: shared_behaviors__WEBPACK_IMPORTED_MODULE_1__[\"BackboneValidationBehavior\"],\n modelValidation: Object(apps_library_editor_utils_FolderValidation__WEBPACK_IMPORTED_MODULE_4__[\"FolderValidation\"])({\n validateName: this.options.editName,\n validateParent: this.options.editParent,\n folder: this.options.model,\n collection: this.options.collection\n })\n }, {\n behaviorClass: shared_behaviors__WEBPACK_IMPORTED_MODULE_1__[\"StickitBehavior\"]\n }];\n }\n }, {\n key: \"bindings\",\n get: function get() {\n return {\n '[name=name]': {\n observe: 'name',\n setOptions: {\n validate: true\n }\n }\n };\n }\n }, {\n key: \"onFolderSelected\",\n value: function onFolderSelected(model, isDisabled) {\n if (!model) return;\n shared_utils__WEBPACK_IMPORTED_MODULE_2__[\"FolderTreeHelpers\"].setSelected(this.folderTreeKey, model, this.collection, isDisabled);\n if (!isDisabled) this.model.set('parentId', model.get('id'), {\n validate: true\n });\n }\n }, {\n key: \"renderSubFolders\",\n value: function renderSubFolders() {\n if (!this.options.editParent) return;\n this.showChildView('parentFolder', new shared_components_tree_dropdown_TreeDropdownComponent__WEBPACK_IMPORTED_MODULE_3__[\"TreeDropdownComponent\"]({\n collection: this.collection,\n channelName: this.options.channelName,\n folderTreeKey: this.folderTreeKey,\n disabledIds: this.options.disabledParentFolderIds\n }));\n }\n }, {\n key: \"viewOptions\",\n value: function viewOptions() {\n return {\n editName: this.options.editName,\n editParent: this.options.editParent\n };\n }\n }, {\n key: \"onRender\",\n value: function onRender() {\n this.renderSubFolders();\n }\n }]);\n\n return FolderDetailsComponent;\n}(libs_common_core__WEBPACK_IMPORTED_MODULE_0__[\"Core\"].Component);//# sourceURL=[module]\n//# sourceMappingURL=data:application/json;charset=utf-8;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoiLi9zcmMvYXBwcy9saWJyYXJ5LWVkaXRvci9jb21wb25lbnRzL2ZvbGRlci1kZXRhaWxzL0ZvbGRlckRldGFpbHNDb21wb25lbnQudHMuanMiLCJzb3VyY2VzIjpbImZpbGU6Ly9DOi9DbGlja1ZpZXcgUHJvamVjdHMvQGNsaWNrdmlldy9wYWNrYWdlcy9wcm9qZWN0cy9saWJyYXJ5LWVkaXRvci9zcmMvYXBwcy9saWJyYXJ5LWVkaXRvci9jb21wb25lbnRzL2ZvbGRlci1kZXRhaWxzL0ZvbGRlckRldGFpbHNDb21wb25lbnQudHMiXSwic291cmNlc0NvbnRlbnQiOlsiaW1wb3J0IHsgQ29yZSB9IGZyb20gJ2xpYnMvY29tbW9uL2NvcmUnO1xyXG5pbXBvcnQgeyBPYmplY3RIYXNoIH0gZnJvbSAnYmFja2JvbmUnO1xyXG5cclxuaW1wb3J0IHsgRm9sZGVyIH0gZnJvbSAnc2hhcmVkL21vZGVscy9Gb2xkZXInO1xyXG5pbXBvcnQgeyBMaWJyYXJ5IH0gZnJvbSAnc2hhcmVkL21vZGVscy9MaWJyYXJ5JztcclxuaW1wb3J0IHsgRm9sZGVyQ29sbGVjdGlvbiB9IGZyb20gJ3NoYXJlZC9jb2xsZWN0aW9ucy9Gb2xkZXJDb2xsZWN0aW9uJztcclxuaW1wb3J0IHsgQmFja2JvbmVWYWxpZGF0aW9uQmVoYXZpb3IsIFN0aWNraXRCZWhhdmlvciB9IGZyb20gJ3NoYXJlZC9iZWhhdmlvcnMnO1xyXG5pbXBvcnQgeyBGb2xkZXJUcmVlSGVscGVycyB9IGZyb20gJ3NoYXJlZC91dGlscyc7XHJcbmltcG9ydC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0FBQUE7QUFBQTtBQWtCQTtBQUNBO0FBbkJBO0FBQUE7QUFBQTtBQXNCQTtBQUNBO0FBdkJBO0FBQUE7QUFBQTtBQTBCQTtBQUNBO0FBM0JBO0FBQUE7QUFBQTtBQThCQTtBQUNBO0FBL0JBO0FBQUE7QUFBQTtBQWtDQTtBQUNBO0FBREE7QUFHQTtBQXJDQTtBQUFBO0FBQUE7QUF3Q0E7QUFDQTtBQUNBO0FBQ0E7QUFDQTtBQUNBO0FBQ0E7QUFKQTtBQUZBO0FBU0E7QUFEQTtBQUdBO0FBbkRBO0FBQUE7QUFBQTtBQXNEQTtBQUNBO0FBQ0E7QUFDQTtBQUFBO0FBQUE7QUFGQTtBQURBO0FBTUE7QUE1REE7QUFBQTtBQUFBO0FBK0RBO0FBR0E7QUFFQTtBQUNBO0FBQUE7QUFDQTtBQXRFQTtBQUFBO0FBQUE7QUF5RUE7QUFHQTtBQUNBO0FBQ0E7QUFDQTtBQUNBO0FBSkE7QUFNQTtBQWxGQTtBQUFBO0FBQUE7QUFxRkE7QUFDQTtBQUNBO0FBRkE7QUFJQTtBQXpGQTtBQUFBO0FBQUE7QUE0RkE7QUFDQTtBQTdGQTtBQUNBO0FBREE7QUFBQSIsInNvdXJjZVJvb3QiOiIifQ==\n//# sourceURL=webpack-internal:///./src/apps/library-editor/components/folder-details/FolderDetailsComponent.ts\n");
15
-
16
- /***/ }),
17
-
18
- /***/ "./src/apps/library-editor/utils/FolderValidation.ts":
19
- /***/ (function(module, __webpack_exports__, __webpack_require__) {
20
-
21
- "use strict";
22
- eval("__webpack_require__.r(__webpack_exports__);\n/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, \"FolderValidation\", function() { return FolderValidation; });\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 shared_utils_FolderTreeHelpers__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(\"./src/shared/utils/FolderTreeHelpers.ts\");\n/* harmony import */ var shared_constants_Misc__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(\"./src/shared/constants/Misc.ts\");\n/* harmony import */ var libs_common_backbone_services_LanguageService__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(\"../../libs/common/src/backbone/services/LanguageService.tsx\");\n\n\n\n\nvar lang = 'libraryEditor.utils';\nvar FolderNameValidation = {\n name: [{\n required: true,\n msg: function msg() {\n return libs_common_backbone_services_LanguageService__WEBPACK_IMPORTED_MODULE_3__[\"LanguageService\"].getPhrase(lang, 'folderNameRequired');\n }\n }, {\n maxLength: 255,\n msg: function msg() {\n return libs_common_backbone_services_LanguageService__WEBPACK_IMPORTED_MODULE_3__[\"LanguageService\"].getPhrase(lang, 'folderNameExceeds');\n }\n }]\n};\n\nvar FolderParentValidation = function FolderParentValidation(folder, collection) {\n return {\n parentId: function parentId(value) {\n if (!value) {\n return libs_common_backbone_services_LanguageService__WEBPACK_IMPORTED_MODULE_3__[\"LanguageService\"].getPhrase(lang, 'selectParentFolder');\n }\n\n var depth = shared_utils_FolderTreeHelpers__WEBPACK_IMPORTED_MODULE_1__[\"FolderTreeHelpers\"].calculateDestinationFolderDepth(folder, value, collection);\n /**\r\n * Only allow a move where the destination folder (and the depth of its ancestorss) + the selected folder\r\n * AND the depth of its children does not exceed the max folder length\r\n */\n\n if (depth > shared_constants_Misc__WEBPACK_IMPORTED_MODULE_2__[\"MiscConstants\"].MAX_FOLDER_DEPTH) {\n return libs_common_backbone_services_LanguageService__WEBPACK_IMPORTED_MODULE_3__[\"LanguageService\"].getPhrase(lang, 'maxFolderDepth', {\n maxDepth: shared_constants_Misc__WEBPACK_IMPORTED_MODULE_2__[\"MiscConstants\"].MAX_FOLDER_DEPTH\n });\n }\n\n return '';\n }\n };\n};\n\nvar FolderValidation = function FolderValidation(options) {\n var validateName = options.validateName,\n validateParent = options.validateParent,\n folder = options.folder,\n collection = options.collection;\n if (validateName && validateParent) return underscore__WEBPACK_IMPORTED_MODULE_0__[\"extend\"]({}, FolderNameValidation, FolderParentValidation(folder, collection));\n if (validateName) return FolderNameValidation;\n if (validateParent) return FolderParentValidation(folder, collection);\n};//# sourceURL=[module]\n//# sourceMappingURL=data:application/json;charset=utf-8;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoiLi9zcmMvYXBwcy9saWJyYXJ5LWVkaXRvci91dGlscy9Gb2xkZXJWYWxpZGF0aW9uLnRzLmpzIiwic291cmNlcyI6WyJmaWxlOi8vQzovQ2xpY2tWaWV3IFByb2plY3RzL0BjbGlja3ZpZXcvcGFja2FnZXMvcHJvamVjdHMvbGlicmFyeS1lZGl0b3Ivc3JjL2FwcHMvbGlicmFyeS1lZGl0b3IvdXRpbHMvRm9sZGVyVmFsaWRhdGlvbi50cyJdLCJzb3VyY2VzQ29udGVudCI6WyJpbXBvcnQgKiBhcyBfIGZyb20gJ3VuZGVyc2NvcmUnO1xyXG5pbXBvcnQgeyBPYmplY3RIYXNoIH0gZnJvbSAnYmFja2JvbmUnO1xyXG5cclxuaW1wb3J0IHsgRm9sZGVyQ29sbGVjdGlvbiB9IGZyb20gJ3NoYXJlZC9jb2xsZWN0aW9ucy9Gb2xkZXJDb2xsZWN0aW9uJztcclxuaW1wb3J0IHsgRm9sZGVyVHJlZUhlbHBlcnMgfSBmcm9tICdzaGFyZWQvdXRpbHMvRm9sZGVyVHJlZUhlbHBlcnMnO1xyXG5pbXBvcnQgeyBNaXNjQ29uc3RhbnRzIH0gZnJvbSAnc2hhcmVkL2NvbnN0YW50cy9NaXNjJztcclxuaW1wb3J0IHsgTGFuZ3VhZ2VTZXJ2aWNlIH0gZnJvbSAnbGlicy9jb21tb24vYmFja2JvbmUvc2VydmljZXMvTGFuZ3VhZ2VTZXJ2aWNlJztcclxuaW1wb3J0IHsgRm9sZGVyIH0gZnJvbSAnc2hhcmV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7QUFBQTtBQUFBO0FBSUE7QUFDQTtBQUNBO0FBR0E7QUFFQTtBQUNBO0FBQ0E7QUFBQTtBQUFBO0FBQUE7QUFBQTtBQUNBO0FBQUE7QUFBQTtBQUFBO0FBQUE7QUFIQTtBQUNBO0FBTUE7QUFDQTtBQUNBO0FBQ0E7QUFDQTtBQUNBO0FBQ0E7QUFDQTtBQUVBOzs7QUFHQTtBQUNBO0FBQUE7QUFDQTtBQUNBO0FBREE7QUFHQTtBQUNBO0FBQ0E7QUFDQTtBQW5CQTtBQXFCQTtBQUNBO0FBQ0E7QUFBQTtBQUFBO0FBQUE7QUFBQTtBQUdBO0FBR0E7QUFHQTtBQUVBIiwic291cmNlUm9vdCI6IiJ9\n//# sourceURL=webpack-internal:///./src/apps/library-editor/utils/FolderValidation.ts\n");
23
-
24
- /***/ }),
25
-
26
- /***/ "./src/shared/components/tree-dropdown/TreeDropdown.hbs":
27
- /***/ (function(module, exports, __webpack_require__) {
28
-
29
- 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, alias2=container.escapeExpression;\n\n return \" <button class=\\\"create-new btn font-weight-bold rounded-0 w-100 text-left \"\n + alias2(container.lambda(((stack1 = ((stack1 = (depth0 != null ? depth0.options : depth0)) != null ? stack1.styles : stack1)) != null ? stack1.customItem : stack1), depth0))\n + \"\\\">\"\n + alias2((helpers.lang||(depth0 && depth0.lang)||container.hooks.helperMissing).call(depth0 != null ? depth0 : (container.nullContext || {}),\"createNew\",{\"name\":\"lang\",\"hash\":{},\"data\":data}))\n + \"</button>\\r\\n\";\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;\n\n return \"<button\\r\\n class=\\\"\"\n + alias3(alias2(((stack1 = ((stack1 = (depth0 != null ? depth0.options : depth0)) != null ? stack1.styles : stack1)) != null ? stack1.selectBtn : stack1), depth0))\n + \" custom-select form-control\\\"\\r\\n data-toggle=\\\"dropdown\\\"\\r\\n aria-haspopup=\\\"true\\\"\\r\\n aria-expanded=\\\"false\\\"\\r\\n name=\"\n + alias3(alias2(((stack1 = (depth0 != null ? depth0.options : depth0)) != null ? stack1.name : stack1), depth0))\n + \"\\r\\n>\"\n + alias3(alias2(((stack1 = (depth0 != null ? depth0.options : depth0)) != null ? stack1.buttonText : stack1), depth0))\n + \"</button>\\r\\n<div class=\\\"dropdown-menu \"\n + alias3(alias2(((stack1 = ((stack1 = (depth0 != null ? depth0.options : depth0)) != null ? stack1.styles : stack1)) != null ? stack1.selector : stack1), depth0))\n + \"\\\">\\r\\n <div class=\\\"selector-region\\\"></div>\\r\\n\"\n + ((stack1 = helpers[\"if\"].call(depth0 != null ? depth0 : (container.nullContext || {}),((stack1 = (depth0 != null ? depth0.options : depth0)) != null ? stack1.canCreateNew : stack1),{\"name\":\"if\",\"hash\":{},\"fn\":container.program(1, data, 0),\"inverse\":container.noop,\"data\":data})) != null ? stack1 : \"\")\n + \"</div>\\r\\n<div class=\\\"form-feedback\\\"></div>\";\n},\"useData\":true});//# sourceURL=[module]\n//# sourceMappingURL=data:application/json;charset=utf-8;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoiLi9zcmMvc2hhcmVkL2NvbXBvbmVudHMvdHJlZS1kcm9wZG93bi9UcmVlRHJvcGRvd24uaGJzLmpzIiwic291cmNlcyI6WyJmaWxlOi8vQzovQ2xpY2tWaWV3IFByb2plY3RzL0BjbGlja3ZpZXcvcGFja2FnZXMvcHJvamVjdHMvbGlicmFyeS1lZGl0b3Ivc3JjL3NoYXJlZC9jb21wb25lbnRzL3RyZWUtZHJvcGRvd24vVHJlZURyb3Bkb3duLmhicyJdLCJzb3VyY2VzQ29udGVudCI6WyJ2YXIgSGFuZGxlYmFycyA9IHJlcXVpcmUoJ2hhbmRsZWJhcnMnKTtc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3QiOiIifQ==\n//# sourceURL=webpack-internal:///./src/shared/components/tree-dropdown/TreeDropdown.hbs\n");
30
-
31
- /***/ }),
32
-
33
- /***/ "./src/shared/components/tree-dropdown/TreeDropdownComponent.ts":
34
- /***/ (function(module, __webpack_exports__, __webpack_require__) {
35
-
36
- "use strict";
37
- eval("__webpack_require__.r(__webpack_exports__);\n/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, \"TreeDropdownComponent\", function() { return TreeDropdownComponent; });\n/* harmony import */ var backbone__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(\"backbone\");\n/* harmony import */ var backbone__WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(backbone__WEBPACK_IMPORTED_MODULE_0__);\n/* harmony import */ var libs_common_core__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(\"../../libs/common/src/backbone/index.ts\");\n/* harmony import */ var libs_common_backbone_services_LanguageService__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(\"../../libs/common/src/backbone/services/LanguageService.tsx\");\n/* harmony import */ var shared_components_left_nav_LeftNavComponent__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(\"./src/shared/components/left-nav/LeftNavComponent.ts\");\n/* harmony import */ var shared_utils__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(\"./src/shared/utils/index.ts\");\n/* harmony import */ var _TreeDropdown_hbs__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__(\"./src/shared/components/tree-dropdown/TreeDropdown.hbs\");\n/* harmony import */ var _TreeDropdown_hbs__WEBPACK_IMPORTED_MODULE_5___default = /*#__PURE__*/__webpack_require__.n(_TreeDropdown_hbs__WEBPACK_IMPORTED_MODULE_5__);\n/* harmony import */ var _tree_dropdown_scss__WEBPACK_IMPORTED_MODULE_6__ = __webpack_require__(\"./src/shared/components/tree-dropdown/tree-dropdown.scss\");\n/* harmony import */ var _tree_dropdown_scss__WEBPACK_IMPORTED_MODULE_6___default = /*#__PURE__*/__webpack_require__.n(_tree_dropdown_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 _defineProperty(obj, key, value) { if (key in obj) { Object.defineProperty(obj, key, { value: value, enumerable: true, configurable: true, writable: true }); } else { obj[key] = value; } return obj; }\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 TreeDropdownComponent = /*#__PURE__*/function (_Core$Component) {\n _inherits(TreeDropdownComponent, _Core$Component);\n\n var _super = _createSuper(TreeDropdownComponent);\n\n function TreeDropdownComponent(options) {\n _classCallCheck(this, TreeDropdownComponent);\n\n return _super.call(this, options);\n }\n\n _createClass(TreeDropdownComponent, [{\n key: \"initialize\",\n value: function initialize() {\n this.listenTo(this.options.channelName, 'folder:selected new:folder:selected', this.setButtonText);\n this.listenTo(this.options.channelName, 're:render:selector', this.renderSelector);\n this.disabledIds = this.options.disabledIds && this.options.disabledIds.reduce(function (obj, id) {\n return Object.assign(Object.assign({}, obj), _defineProperty({}, id, true));\n }, {});\n }\n }, {\n key: \"name\",\n get: function get() {\n return 'TreeDropdownComponent';\n }\n }, {\n key: \"template\",\n get: function get() {\n return _TreeDropdown_hbs__WEBPACK_IMPORTED_MODULE_5___default.a;\n }\n }, {\n key: \"className\",\n get: function get() {\n return 'position-relative';\n }\n }, {\n key: \"lang\",\n get: function get() {\n return 'libraryEditor.treeDropdown';\n }\n }, {\n key: \"regions\",\n value: function regions() {\n return {\n selector: {\n el: '.selector-region',\n replaceElement: false\n }\n };\n }\n }, {\n key: \"events\",\n value: function events() {\n return {\n 'click .create-new': 'onClickCreateNew'\n };\n }\n }, {\n key: \"defaults\",\n get: function get() {\n return {\n disabledIds: []\n };\n }\n }, {\n key: \"elements\",\n get: function get() {\n return {\n button: '.custom-select'\n };\n }\n }, {\n key: \"onClickCreateNew\",\n value: function onClickCreateNew(e) {\n e.preventDefault();\n var channel = backbone__WEBPACK_IMPORTED_MODULE_0__[\"Radio\"].channel(this.options.channelName);\n channel.trigger('create:folder:clicked');\n }\n }, {\n key: \"setButtonText\",\n value: function setButtonText(model, isDisabled) {\n if (!model || isDisabled) {\n var selection = shared_utils__WEBPACK_IMPORTED_MODULE_4__[\"FolderTreeHelpers\"].getSelected(this.options.folderTreeKey, this.collection);\n var text = selection ? selection.get('name') : libs_common_backbone_services_LanguageService__WEBPACK_IMPORTED_MODULE_2__[\"LanguageService\"].getPhrase(this.lang, 'button');\n this.getUI('button').text(text);\n return;\n }\n\n var name = model.get('name');\n this.getUI('button').text(name);\n }\n }, {\n key: \"renderSelector\",\n value: function renderSelector() {\n // TODO: analytics\n this.showChildView('selector', new shared_components_left_nav_LeftNavComponent__WEBPACK_IMPORTED_MODULE_3__[\"LeftNavComponent\"]({\n styles: _tree_dropdown_scss__WEBPACK_IMPORTED_MODULE_6___default.a,\n collection: this.collection,\n channelName: this.options.channelName,\n childrenProperty: 'children',\n folderTreeId: this.options.folderTreeKey,\n extraClass: _tree_dropdown_scss__WEBPACK_IMPORTED_MODULE_6___default.a.list,\n extraClasses: _tree_dropdown_scss__WEBPACK_IMPORTED_MODULE_6___default.a.list,\n isSelector: true,\n disabledIds: this.disabledIds || {}\n }));\n }\n }, {\n key: \"viewOptions\",\n value: function viewOptions() {\n return {\n styles: _tree_dropdown_scss__WEBPACK_IMPORTED_MODULE_6___default.a,\n name: this.options.name || this.options.channelName,\n buttonText: this.buttonText,\n canCreateNew: this.options.canCreateNew\n };\n }\n }, {\n key: \"onRender\",\n value: function onRender() {\n this.setButtonText();\n this.renderSelector();\n }\n }]);\n\n return TreeDropdownComponent;\n}(libs_common_core__WEBPACK_IMPORTED_MODULE_1__[\"Core\"].Component);//# sourceURL=[module]\n//# sourceMappingURL=data:application/json;charset=utf-8;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoiLi9zcmMvc2hhcmVkL2NvbXBvbmVudHMvdHJlZS1kcm9wZG93bi9UcmVlRHJvcGRvd25Db21wb25lbnQudHMuanMiLCJzb3VyY2VzIjpbImZpbGU6Ly9DOi9DbGlja1ZpZXcgUHJvamVjdHMvQGNsaWNrdmlldy9wYWNrYWdlcy9wcm9qZWN0cy9saWJyYXJ5LWVkaXRvci9zcmMvc2hhcmVkL2NvbXBvbmVudHMvdHJlZS1kcm9wZG93bi9UcmVlRHJvcGRvd25Db21wb25lbnQudHMiXSwic291cmNlc0NvbnRlbnQiOlsiaW1wb3J0IHsgT2JqZWN0SGFzaCwgUmFkaW8gfSBmcm9tICdiYWNrYm9uZSc7XHJcblxyXG5pbXBvcnQgeyBDb3JlIH0gZnJvbSAnbGlicy9jb21tb24vY29yZSc7XHJcbmltcG9ydCB7IExhbmd1YWdlU2VydmljZSB9IGZyb20gJ2xpYnMvY29tbW9uL2JhY2tib25lL3NlcnZpY2VzL0xhbmd1YWdlU2VydmljZSc7XHJcblxyXG5pbXBvcnQgeyBGb2xkZXJDb2xsZWN0aW9uIH0gZnJvbSAnc2hhcmVkL2NvbGxlY3Rpb25zL0ZvbGRlckNvbGxlY3Rpb24nO1xyXG5pbXBvcnQgeyBMZWZ0TmF2Q29tcG9uZW50IH0gZnJvbSAnc2hhcmVkL2NvbXBvbmVudHMvbGVmdC1uYXYvTGVmdE5hdkNvbXBvbmVudCc7XHJcbmltcG9ydCB7IEZvbGRlclRyZWVIZWxwZXJzIH0gZnJvbSAnc2hhcmVkL3V0aWxzJztcclxuXHJcbmltcG9ydCBUcmVlRHJvcGRvd25UZW1wbGF0ZSBmcm9tICcuL1RyZWVEcm9wZG93bi5oYnMnO1xyXG5pbXBvcnQgc3R5bGVzIGZyb20gJy4vdHJlZS1kcm9wZG93bi5zY3Nz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E7QUFNQTtBQTVHQTtBQUFBO0FBQUE7QUErR0E7QUFDQTtBQUNBO0FBakhBO0FBQ0E7QUFEQTtBQUFBIiwic291cmNlUm9vdCI6IiJ9\n//# sourceURL=webpack-internal:///./src/shared/components/tree-dropdown/TreeDropdownComponent.ts\n");
38
-
39
- /***/ }),
40
-
41
- /***/ "./src/shared/components/tree-dropdown/tree-dropdown.scss":
42
- /***/ (function(module, exports, __webpack_require__) {
43
-
44
- eval("// extracted by mini-css-extract-plugin\nmodule.exports = {\"selectBtn\":\"cv--selectBtn--2TTgs\",\"list\":\"cv--list--3wN7o\",\"selector\":\"cv--selector--3Xf1P\",\"customItem\":\"cv--customItem--199PI\"};//# sourceURL=[module]\n//# sourceMappingURL=data:application/json;charset=utf-8;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoiLi9zcmMvc2hhcmVkL2NvbXBvbmVudHMvdHJlZS1kcm9wZG93bi90cmVlLWRyb3Bkb3duLnNjc3MuanMiLCJzb3VyY2VzIjpbImZpbGU6Ly9DOi9DbGlja1ZpZXcgUHJvamVjdHMvQGNsaWNrdmlldy9wYWNrYWdlcy9wcm9qZWN0cy9saWJyYXJ5LWVkaXRvci9zcmMvc2hhcmVkL2NvbXBvbmVudHMvdHJlZS1kcm9wZG93bi90cmVlLWRyb3Bkb3duLnNjc3MiXSwic291cmNlc0NvbnRlbnQiOlsiLy8gZXh0cmFjdGVkIGJ5IG1pbmktY3NzLWV4dHJhY3QtcGx1Z2luXG5tb2R1bGUuZXhwb3J0cyA9IHtcInNlbGVjdEJ0blwiOlwiY3YtLXNlbGVjdEJ0bi0tMlRUZ3NcIixcImxpc3RcIjpcImN2LS1saXN0LS0zd043b1wiLFwic2VsZWN0b3JcIjpcImN2LS1zZWxlY3Rvci0tM1hmMVBcIixcImN1c3RvbUl0ZW1cIjpcImN2LS1jdXN0b21JdGVtLS0xOTlQSVwifTsiXSwibWFwcGluZ3MiOiJBQUFBO0FBQ0EiLCJzb3VyY2VSb290IjoiIn0=\n//# sourceURL=webpack-internal:///./src/shared/components/tree-dropdown/tree-dropdown.scss\n");
45
-
46
- /***/ }),
47
-
48
- /***/ "./src/shared/models/DisabledSpinnerModel.ts":
49
- /***/ (function(module, __webpack_exports__, __webpack_require__) {
50
-
51
- "use strict";
52
- eval("__webpack_require__.r(__webpack_exports__);\n/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, \"DisabledSpinnerModel\", function() { return DisabledSpinnerModel; });\n/* harmony import */ var libs_common_core__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(\"../../libs/common/src/backbone/index.ts\");\n/* harmony import */ var shared_components_spinner_button_SpinnerButtonComponent__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(\"./src/shared/components/spinner-button/SpinnerButtonComponent.ts\");\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 _defineProperty(obj, key, value) { if (key in obj) { Object.defineProperty(obj, key, { value: value, enumerable: true, configurable: true, writable: true }); } else { obj[key] = value; } return obj; }\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\nvar DisabledSpinnerModel = /*#__PURE__*/function (_Core$Model) {\n _inherits(DisabledSpinnerModel, _Core$Model);\n\n var _super = _createSuper(DisabledSpinnerModel);\n\n function DisabledSpinnerModel() {\n _classCallCheck(this, DisabledSpinnerModel);\n\n return _super.apply(this, arguments);\n }\n\n _createClass(DisabledSpinnerModel, [{\n key: \"defaults\",\n value: function defaults() {\n return _defineProperty({}, shared_components_spinner_button_SpinnerButtonComponent__WEBPACK_IMPORTED_MODULE_1__[\"SpinnerButtonModelAttributes\"].Disabled, true);\n }\n }]);\n\n return DisabledSpinnerModel;\n}(libs_common_core__WEBPACK_IMPORTED_MODULE_0__[\"Core\"].Model);//# sourceURL=[module]\n//# sourceMappingURL=data:application/json;charset=utf-8;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoiLi9zcmMvc2hhcmVkL21vZGVscy9EaXNhYmxlZFNwaW5uZXJNb2RlbC50cy5qcyIsInNvdXJjZXMiOlsiZmlsZTovL0M6L0NsaWNrVmlldyBQcm9qZWN0cy9AY2xpY2t2aWV3L3BhY2thZ2VzL3Byb2plY3RzL2xpYnJhcnktZWRpdG9yL3NyYy9zaGFyZWQvbW9kZWxzL0Rpc2FibGVkU3Bpbm5lck1vZGVsLnRzIl0sInNvdXJjZXNDb250ZW50IjpbImltcG9ydCB7IE9iamVjdEhhc2ggfSBmcm9tICdiYWNrYm9uZSc7XHJcbmltcG9ydCB7IENvcmUgfSBmcm9tICdsaWJzL2NvbW1vbi9jb3JlJztcclxuaW1wb3J0IHsgU3Bpbm5lckJ1dHRvbk1vZGVsQXR0cmlidXRlcyB9IGZyb20gJ3NoYXJlZC9jb21wb25lbnRzL3NwaW5uZXItYnV0dG9uL1NwaW5uZXJCdXR0b25Db21wb25lbnQnO1xyXG5cclxuZXhwb3J0IGNsYXNzIERpc2FibGVkU3Bpbm5lck1vZGVsIGV4dGVuZHMgQ29yZS5Nb2RlbCB7XHJcbiAgcHVibGljIGRlZmF1bHRzKCk6IE9iamVjdEhhc2gge1xyXG4gICAgcmV0dXJuIHtcclxuICAgICAgW1NwaW5uZXJCdXR0b25Nb2RlbEF0dHJpYnV0ZXMuRGlzYWJsZWRdOiB0cnVlXHJcbiAgICB9O1xyXG4gIH1cclxufSJdLCJtYXBwaW5ncyI6Ijs7Ozs7Ozs7Ozs7Ozs7Ozs7Ozs7Ozs7Ozs7OztBQUNBO0FBQ0E7QUFFQTtBQUFBO0FBQ0E7QUFEQTtBQUNBO0FBREE7QUFBQTtBQUNBO0FBREE7QUFBQTtBQUNBO0FBREE7QUFBQTtBQUFBO0FBRUE7QUFHQTtBQUxBO0FBQ0E7QUFEQTtBQUFBIiwic291cmNlUm9vdCI6IiJ9\n//# sourceURL=webpack-internal:///./src/shared/models/DisabledSpinnerModel.ts\n");
53
-
54
- /***/ })
55
-
56
- }]);
@@ -1 +0,0 @@
1
- (window.webpackJsonp_clickview_library_editor=window.webpackJsonp_clickview_library_editor||[]).push([[13],{1093: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(99),u=t(13),c=t(1144),p=t.n(c),d=t(1145),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)},1144: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})},1145:function(e,n,t){e.exports={svg:"_1iL3O",typeaheadContainer:"_1SWXc",disabled:"_3C2O8"}},1188: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(1192),l=t(1190),s=t(3),u=t(0),c=t(195),p=t(1250),d=t.n(p),f=t(1092),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)},1190:function(e,n,t){"use strict";t.d(n,"a",(function(){return m}));var o=t(1),r=t(2),a=t(1248),i=t.n(a),l=t(1249),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)},1191:function(e,n,t){"use strict";var o=t(1),r=t(6),a=t(2),i=t(99),l=t(301),s=t(1093),u=t(365),c=t(0),p=t(29),d=t(17),f=t(1253),h=t.n(f),m=t(1254),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(1255),T=t.n(x),I=t(1256),R=t.n(I),P=t(1092),_=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(1257),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(1258),X=t.n($),Q=t(1259),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(1032),de=t(1260),fe=t.n(de),he=t(1261),me=t.n(he),ge=t(1262),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(1263),_e=t.n(Pe),De=t(1264),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)},1193:function(e,n,t){"use strict";var o=t(1),r=t(6),a=t(2),i=t(17),l=t(99),s=t(301),u=t(0),c=t(3),p=t(1093),d=t(195),f=t(1251),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(686),R=t(685),P=t(687),_=t(688),D=t(1252),N=t.n(D),B=t(1092),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)},1248: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})},1249:function(e,n,t){e.exports={resizingTextarea:"qKxbV"}},1250: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})},1251: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})},1252: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})},1253: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})},1254:function(e,n,t){e.exports={clearSvg:"_2-D4Z"}},1255: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})},1256:function(e,n,t){e.exports={next:"_1sAku",previous:"_3zc5V",datePicker:"_1j_H7",calendarSvg:"_3ViTN",disabled:"DzdxT"}},1257: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})},1258: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})},1259:function(e,n,t){e.exports={disabled:"_3TIct"}},1260: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})},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.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})},1262:function(e,n,t){e.exports={button:"_39NvM",svg:"_2Tl0W",disabled:"_2julA",seasonContainer:"_SpZq"}},1263: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})},1264:function(e,n,t){e.exports={disabled:"tOHRz"}}}]);