@clickview/library-editor 1.1.38-rc.1 → 1.1.38

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 (234) hide show
  1. package/dist/bundles.json +1 -1
  2. package/dist/css/0-library-editor.chunk.css +26 -0
  3. package/dist/css/10-library-editor.chunk.css +25 -0
  4. package/dist/css/11-library-editor.chunk.css +135 -0
  5. package/dist/css/12-library-editor.chunk.css +18 -0
  6. package/dist/css/13-library-editor.chunk.css +21 -0
  7. package/dist/css/14-library-editor.chunk.css +76 -0
  8. package/dist/css/16-library-editor.chunk.css +52 -0
  9. package/dist/css/17-library-editor.chunk.css +14 -0
  10. package/dist/css/18-library-editor.chunk.css +18 -0
  11. package/dist/css/2-library-editor.chunk.css +143 -0
  12. package/dist/css/21-library-editor.chunk.css +52 -0
  13. package/dist/css/22-library-editor.chunk.css +12 -0
  14. package/dist/css/23-library-editor.chunk.css +25 -0
  15. package/dist/css/25-library-editor.chunk.css +35 -0
  16. package/dist/css/26-library-editor.chunk.css +20 -0
  17. package/dist/css/28-library-editor.chunk.css +63 -0
  18. package/dist/css/29-library-editor.chunk.css +80 -0
  19. package/dist/css/3-library-editor.chunk.css +15 -0
  20. package/dist/css/30-library-editor.chunk.css +33 -0
  21. package/dist/css/31-library-editor.chunk.css +30 -0
  22. package/dist/css/32-library-editor.chunk.css +45 -0
  23. package/dist/css/33-library-editor.chunk.css +13 -0
  24. package/dist/css/34-library-editor.chunk.css +19 -0
  25. package/dist/css/35-library-editor.chunk.css +18 -0
  26. package/dist/css/36-library-editor.chunk.css +12 -0
  27. package/dist/css/37-library-editor.chunk.css +5 -0
  28. package/dist/css/38-library-editor.chunk.css +5 -0
  29. package/dist/css/40-library-editor.chunk.css +24 -0
  30. package/dist/css/41-library-editor.chunk.css +76 -0
  31. package/dist/css/42-library-editor.chunk.css +44 -0
  32. package/dist/css/43-library-editor.chunk.css +30 -0
  33. package/dist/css/44-library-editor.chunk.css +12 -0
  34. package/dist/css/45-library-editor.chunk.css +25 -0
  35. package/dist/css/46-library-editor.chunk.css +24 -0
  36. package/dist/css/47-library-editor.chunk.css +84 -0
  37. package/dist/css/48-library-editor.chunk.css +4 -0
  38. package/dist/css/49-library-editor.chunk.css +33 -0
  39. package/dist/css/50-library-editor.chunk.css +20 -0
  40. package/dist/css/51-library-editor.chunk.css +37 -0
  41. package/dist/css/52-library-editor.chunk.css +64 -0
  42. package/dist/css/55-library-editor.chunk.css +3 -0
  43. package/dist/css/56-library-editor.chunk.css +3 -0
  44. package/dist/css/58-library-editor.chunk.css +3 -0
  45. package/dist/css/59-library-editor.chunk.css +3 -0
  46. package/dist/css/6-library-editor.chunk.css +42 -0
  47. package/dist/css/60-library-editor.chunk.css +16 -0
  48. package/dist/css/62-library-editor.chunk.css +4 -0
  49. package/dist/css/63-library-editor.chunk.css +168 -0
  50. package/dist/css/67-library-editor.chunk.css +76 -0
  51. package/dist/css/68-library-editor.chunk.css +15 -0
  52. package/dist/css/69-library-editor.chunk.css +15 -0
  53. package/dist/css/7-library-editor.chunk.css +10 -0
  54. package/dist/css/70-library-editor.chunk.css +21 -0
  55. package/dist/css/71-library-editor.chunk.css +38 -0
  56. package/dist/css/72-library-editor.chunk.css +14 -0
  57. package/dist/css/73-library-editor.chunk.css +35 -0
  58. package/dist/css/74-library-editor.chunk.css +27 -0
  59. package/dist/css/75-library-editor.chunk.css +4 -0
  60. package/dist/css/76-library-editor.chunk.css +4 -0
  61. package/dist/css/8-library-editor.chunk.css +7 -0
  62. package/dist/css/library-editor-app.css +9282 -0
  63. package/dist/scripts/0-b6c23a57b8.chunk.js +1 -0
  64. package/dist/scripts/0.chunk.js +64 -0
  65. package/dist/scripts/1-b0fc29397e.chunk.js +1 -0
  66. package/dist/scripts/1.chunk.js +75 -0
  67. package/dist/scripts/10-8307bb975c.chunk.js +1 -0
  68. package/dist/scripts/10.chunk.js +62 -0
  69. package/dist/scripts/11-39d9259f5b.chunk.js +11 -0
  70. package/dist/scripts/11.chunk.js +317 -0
  71. package/dist/scripts/12-ddc68398b8.chunk.js +1 -0
  72. package/dist/scripts/12.chunk.js +56 -0
  73. package/dist/scripts/13-8f8a6ce349.chunk.js +1 -0
  74. package/dist/scripts/13.chunk.js +25 -0
  75. package/dist/scripts/14-537dcac148.chunk.js +1 -0
  76. package/dist/scripts/14.chunk.js +272 -0
  77. package/dist/scripts/15-4def28b998.chunk.js +1 -0
  78. package/dist/scripts/15.chunk.js +35 -0
  79. package/dist/scripts/16-5e62546a04.chunk.js +1 -0
  80. package/dist/scripts/16.chunk.js +79 -0
  81. package/dist/scripts/17-3c0509798b.chunk.js +1 -0
  82. package/dist/scripts/17.chunk.js +40 -0
  83. package/dist/scripts/18.chunk.js +40 -0
  84. package/dist/scripts/19.chunk.js +43 -0
  85. package/dist/scripts/2-6cbd574810.chunk.js +1 -0
  86. package/dist/scripts/2.chunk.js +33 -0
  87. package/dist/scripts/20-e47912d1b0.chunk.js +1 -0
  88. package/dist/scripts/20.chunk.js +18 -0
  89. package/dist/scripts/21-c319fe911a.chunk.js +1 -0
  90. package/dist/scripts/21.chunk.js +55 -0
  91. package/dist/scripts/22-d50d286ec0.chunk.js +1 -0
  92. package/dist/scripts/22.chunk.js +47 -0
  93. package/dist/scripts/23-0e07fa84ee.chunk.js +1 -0
  94. package/dist/scripts/23.chunk.js +47 -0
  95. package/dist/scripts/24-1f362efc95.chunk.js +1 -0
  96. package/dist/scripts/24.chunk.js +33 -0
  97. package/dist/scripts/25-7226ec568a.chunk.js +1 -0
  98. package/dist/scripts/25.chunk.js +25 -0
  99. package/dist/scripts/26-c29ef97409.chunk.js +1 -0
  100. package/dist/scripts/26.chunk.js +25 -0
  101. package/dist/scripts/27-d3686d48d4.chunk.js +1 -0
  102. package/dist/scripts/27.chunk.js +10 -0
  103. package/dist/scripts/28-4f694bc77e.chunk.js +1 -0
  104. package/dist/scripts/28.chunk.js +334 -0
  105. package/dist/scripts/29-7189ce20ea.chunk.js +1 -0
  106. package/dist/scripts/29.chunk.js +202 -0
  107. package/dist/scripts/3-2f121af17d.chunk.js +1 -0
  108. package/dist/scripts/3.chunk.js +57 -0
  109. package/dist/scripts/30-b2f66f0afd.chunk.js +1 -0
  110. package/dist/scripts/30.chunk.js +137 -0
  111. package/dist/scripts/31-b7048d8b68.chunk.js +1 -0
  112. package/dist/scripts/31.chunk.js +113 -0
  113. package/dist/scripts/32-5d4dc8cc7a.chunk.js +1 -0
  114. package/dist/scripts/32.chunk.js +115 -0
  115. package/dist/scripts/33-10a1be6537.chunk.js +1 -0
  116. package/dist/scripts/33.chunk.js +93 -0
  117. package/dist/scripts/34-7ab862c582.chunk.js +1 -0
  118. package/dist/scripts/34.chunk.js +63 -0
  119. package/dist/scripts/35-068e9c8b75.chunk.js +1 -0
  120. package/dist/scripts/35.chunk.js +48 -0
  121. package/dist/scripts/36-dd1e44631a.chunk.js +1 -0
  122. package/dist/scripts/36.chunk.js +33 -0
  123. package/dist/scripts/37-8ba3a7efee.chunk.js +1 -0
  124. package/dist/scripts/37.chunk.js +25 -0
  125. package/dist/scripts/38-31d7ee384c.chunk.js +1 -0
  126. package/dist/scripts/38.chunk.js +25 -0
  127. package/dist/scripts/39-6353c29940.chunk.js +1 -0
  128. package/dist/scripts/39.chunk.js +19 -0
  129. package/dist/scripts/4-efdd6d1f63.chunk.js +1 -0
  130. package/dist/scripts/4.chunk.js +26 -0
  131. package/dist/scripts/40-1cfde7b518.chunk.js +1 -0
  132. package/dist/scripts/40.chunk.js +182 -0
  133. package/dist/scripts/41-dc122f1ff3.chunk.js +1 -0
  134. package/dist/scripts/41.chunk.js +175 -0
  135. package/dist/scripts/42-761edb9a10.chunk.js +1 -0
  136. package/dist/scripts/42.chunk.js +176 -0
  137. package/dist/scripts/43-95935b47bd.chunk.js +1 -0
  138. package/dist/scripts/43.chunk.js +121 -0
  139. package/dist/scripts/44-d7c79e8244.chunk.js +1 -0
  140. package/dist/scripts/44.chunk.js +122 -0
  141. package/dist/scripts/45-d56b804684.chunk.js +1 -0
  142. package/dist/scripts/45.chunk.js +85 -0
  143. package/dist/scripts/46-c8e2513bf9.chunk.js +1 -0
  144. package/dist/scripts/46.chunk.js +78 -0
  145. package/dist/scripts/47-033c1cf18a.chunk.js +1 -0
  146. package/dist/scripts/47.chunk.js +70 -0
  147. package/dist/scripts/48-f37fb199cf.chunk.js +1 -0
  148. package/dist/scripts/48.chunk.js +88 -0
  149. package/dist/scripts/49-66c283603e.chunk.js +1 -0
  150. package/dist/scripts/49.chunk.js +62 -0
  151. package/dist/scripts/5-8d1b34023d.chunk.js +1 -0
  152. package/dist/scripts/5.chunk.js +10 -0
  153. package/dist/scripts/50-fffaebeef7.chunk.js +1 -0
  154. package/dist/scripts/50.chunk.js +64 -0
  155. package/dist/scripts/51-0bed92583d.chunk.js +1 -0
  156. package/dist/scripts/51.chunk.js +55 -0
  157. package/dist/scripts/52-fddf83dbc3.chunk.js +1 -0
  158. package/dist/scripts/52.chunk.js +47 -0
  159. package/dist/scripts/53-56ab6f2900.chunk.js +1 -0
  160. package/dist/scripts/53.chunk.js +56 -0
  161. package/dist/scripts/54-801ffeb350.chunk.js +1 -0
  162. package/dist/scripts/54.chunk.js +56 -0
  163. package/dist/scripts/55-9a90130bde.chunk.js +1 -0
  164. package/dist/scripts/55.chunk.js +41 -0
  165. package/dist/scripts/56-0bda1f8ade.chunk.js +1 -0
  166. package/dist/scripts/56.chunk.js +41 -0
  167. package/dist/scripts/57-3e97374d6d.chunk.js +1 -0
  168. package/dist/scripts/57.chunk.js +50 -0
  169. package/dist/scripts/58-5494e053a7.chunk.js +1 -0
  170. package/dist/scripts/58.chunk.js +33 -0
  171. package/dist/scripts/59-b4d8ec05b3.chunk.js +1 -0
  172. package/dist/scripts/59.chunk.js +33 -0
  173. package/dist/scripts/6-d90b512b74.chunk.js +1 -0
  174. package/dist/scripts/6.chunk.js +40 -0
  175. package/dist/scripts/60-3dbafa2f5d.chunk.js +1 -0
  176. package/dist/scripts/60.chunk.js +33 -0
  177. package/dist/scripts/61-3acc614e23.chunk.js +1 -0
  178. package/dist/scripts/61.chunk.js +33 -0
  179. package/dist/scripts/62-ec5abf4e57.chunk.js +1 -0
  180. package/dist/scripts/62.chunk.js +25 -0
  181. package/dist/scripts/63-9acef1097c.chunk.js +1 -0
  182. package/dist/scripts/63.chunk.js +25 -0
  183. package/dist/scripts/64-5bd60a10f3.chunk.js +1 -0
  184. package/dist/scripts/64.chunk.js +33 -0
  185. package/dist/scripts/65-1b7003dcf7.chunk.js +1 -0
  186. package/dist/scripts/65.chunk.js +34 -0
  187. package/dist/scripts/66-df6e6e9fbb.chunk.js +1 -0
  188. package/dist/scripts/66.chunk.js +33 -0
  189. package/dist/scripts/67-2219085773.chunk.js +1 -0
  190. package/dist/scripts/67.chunk.js +25 -0
  191. package/dist/scripts/68-c590eb4668.chunk.js +1 -0
  192. package/dist/scripts/68.chunk.js +25 -0
  193. package/dist/scripts/69-f4a16bd797.chunk.js +1 -0
  194. package/dist/scripts/69.chunk.js +25 -0
  195. package/dist/scripts/7-4bbf1e0b34.chunk.js +1 -0
  196. package/dist/scripts/7.chunk.js +33 -0
  197. package/dist/scripts/70-de3cbb5854.chunk.js +1 -0
  198. package/dist/scripts/70.chunk.js +25 -0
  199. package/dist/scripts/71-7eded412b8.chunk.js +1 -0
  200. package/dist/scripts/71.chunk.js +25 -0
  201. package/dist/scripts/72-354b272679.chunk.js +1 -0
  202. package/dist/scripts/72.chunk.js +25 -0
  203. package/dist/scripts/73.chunk.js +25 -0
  204. package/dist/scripts/74.chunk.js +25 -0
  205. package/dist/scripts/75.chunk.js +25 -0
  206. package/dist/scripts/76.chunk.js +25 -0
  207. package/dist/scripts/77.chunk.js +26 -0
  208. package/dist/scripts/78.chunk.js +26 -0
  209. package/dist/scripts/79.chunk.js +26 -0
  210. package/dist/scripts/8-ea382936d8.chunk.js +1 -0
  211. package/dist/scripts/8.chunk.js +33 -0
  212. package/dist/scripts/80.chunk.js +26 -0
  213. package/dist/scripts/81.chunk.js +26 -0
  214. package/dist/scripts/82.chunk.js +26 -0
  215. package/dist/scripts/83.chunk.js +26 -0
  216. package/dist/scripts/84.chunk.js +26 -0
  217. package/dist/scripts/85.chunk.js +26 -0
  218. package/dist/scripts/86.chunk.js +18 -0
  219. package/dist/scripts/87.chunk.js +18 -0
  220. package/dist/scripts/88.chunk.js +18 -0
  221. package/dist/scripts/89.chunk.js +18 -0
  222. package/dist/scripts/9-7deb869eb3.chunk.js +1 -0
  223. package/dist/scripts/9.chunk.js +18 -0
  224. package/dist/scripts/90.chunk.js +18 -0
  225. package/dist/scripts/91.chunk.js +18 -0
  226. package/dist/scripts/92.chunk.js +18 -0
  227. package/dist/scripts/bundle-0af60c1906.min.js +10 -0
  228. package/dist/scripts/bundle-632a7b00a4.min.js +10 -0
  229. package/dist/scripts/bundle-aa32cea8e4.min.js +10 -0
  230. package/dist/scripts/{bundle-d48195bc25.min.js → bundle-cd66cc1369.min.js} +1 -1
  231. package/dist/scripts/bundle.js +7806 -0
  232. package/dist/scripts/polyfills-1bf177c7ab.min.js +1 -0
  233. package/dist/scripts/polyfills.js +2701 -0
  234. package/package.json +3 -3
@@ -0,0 +1 @@
1
+ (window.webpackJsonp_clickview_library_editor=window.webpackJsonp_clickview_library_editor||[]).push([[26],{1009:function(t,e,n){t.exports={dragItem:"_2TIZ7",svgContainer:"_3JzEU",dragText:"_1Kdwj"}},1010:function(t,e,n){var o=n(10);t.exports=(o.default||o).template({compiler:[8,">= 4.3.0"],main:function(t,e,n,o,r){t.propertyIsEnumerable;var i,a=t.lambda,c=t.escapeExpression;return'<span class="'+c(a(null!=(i=null!=(i=null!=e?e.options:e)?i.styles:i)?i.svgContainer:i,e))+' mr-2">'+(null!=(i=a(null!=(i=null!=e?e.options:e)?i.svg:i,e))?i:"")+'</span>\r\n<span class="'+c(a(null!=(i=null!=(i=null!=e?e.options:e)?i.styles:i)?i.dragText:i,e))+'">'+c(a(null!=(i=null!=e?e.options:e)?i.text:i,e))+"</span>"},useData:!0})},1015:function(t,e,n){"use strict";n.d(e,"a",(function(){return p}));var o=n(1),r=n(2),i=n(296);function a(t){return(a="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t})(t)}function c(t,e){for(var n=0;n<e.length;n++){var o=e[n];o.enumerable=o.enumerable||!1,o.configurable=!0,"value"in o&&(o.writable=!0),Object.defineProperty(t,o.key,o)}}function u(t,e){return(u=Object.setPrototypeOf||function(t,e){return t.__proto__=e,t})(t,e)}function l(t){var e=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(t){return!1}}();return function(){var n,o=f(t);if(e){var r=f(this).constructor;n=Reflect.construct(o,arguments,r)}else n=o.apply(this,arguments);return s(this,n)}}function s(t,e){return!e||"object"!==a(e)&&"function"!=typeof e?function(t){if(void 0===t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return t}(t):e}function f(t){return(f=Object.setPrototypeOf?Object.getPrototypeOf:function(t){return t.__proto__||Object.getPrototypeOf(t)})(t)}var p=function(t){!function(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function");t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,writable:!0,configurable:!0}}),e&&u(t,e)}(s,t);var e,n,r,a=l(s);function s(t){return function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,s),a.call(this,t)}return e=s,(n=[{key:"name",get:function(){return"DropdownCollectionComponent"}},{key:"className",get:function(){return"dropdown-menu items-viewpart ".concat(this.getExtraClasses(this.options.displayOptions))}},{key:"attributes",get:function(){return{"aria-labelledby":"dropdownSelector"}}},{key:"initialize",value:function(){this.listenTo(this.options.channelName,"center:dropdown",this.centerSelectedItem)}},{key:"childView",get:function(){return i.a}},{key:"childViewOptions",get:function(){var t={channelName:this.options.channelName,analyticsHelper:this.options.analyticsHelper};return o.extend(t,this.options.childOptions)}},{key:"getExtraClasses",value:function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},e=t.alignment,n=void 0===e?"left":e,o=t.extraClasses,r="dropdown-menu-".concat(n);return o&&(r="".concat(r," ").concat(o)),r}},{key:"centerSelectedItem",value:function(){var t=this.$el.find(".active");if(t.length){var e=this.$el.scrollTop()+t.position().top,n=.5*this.$el.height()+.5*t.height();this.$el.scrollTop(e-n)}}}])&&c(e.prototype,n),r&&c(e,r),s}(r.a.ComponentCollection)},1026:function(t,e,n){"use strict";var o=n(1009),r=n.n(o),i=n(1010),a=n.n(i);function c(t){return(c="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t})(t)}function u(t,e){for(var n=0;n<e.length;n++){var o=e[n];o.enumerable=o.enumerable||!1,o.configurable=!0,"value"in o&&(o.writable=!0),Object.defineProperty(t,o.key,o)}}function l(t,e){return(l=Object.setPrototypeOf||function(t,e){return t.__proto__=e,t})(t,e)}function s(t){var e=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(t){return!1}}();return function(){var n,o=p(t);if(e){var r=p(this).constructor;n=Reflect.construct(o,arguments,r)}else n=o.apply(this,arguments);return f(this,n)}}function f(t,e){return!e||"object"!==c(e)&&"function"!=typeof e?function(t){if(void 0===t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return t}(t):e}function p(t){return(p=Object.setPrototypeOf?Object.getPrototypeOf:function(t){return t.__proto__||Object.getPrototypeOf(t)})(t)}var y=function(t){!function(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function");t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,writable:!0,configurable:!0}}),e&&l(t,e)}(c,t);var e,n,o,i=s(c);function c(t){return function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,c),i.call(this,t)}return e=c,(n=[{key:"name",get:function(){return"DraggableItemComponent"}},{key:"template",get:function(){return a.a}},{key:"className",get:function(){return"".concat(r.a.dragItem," p-3")}},{key:"viewOptions",value:function(){return Object.assign({styles:r.a},this.options)}}])&&u(e.prototype,n),o&&u(e,o),c}(n(2).a.Component),d={delay:150,cursorAt:{left:-20,top:10},refreshPositions:!0};n.d(e,"c",(function(){return r.a})),n.d(e,"b",(function(){return y})),n.d(e,"a",(function(){return d}))},1031:function(t,e,n){"use strict";n.d(e,"a",(function(){return k}));var o=n(1),r=n(6),i=n(2),a=n(20),c=n(16),u=n(0),l=n(12),s=n(3),f=n(1026),p=n(187),y=n(1034),d=n.n(y);function h(t){return(h="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t})(t)}function b(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}function g(t,e){for(var n=0;n<e.length;n++){var o=e[n];o.enumerable=o.enumerable||!1,o.configurable=!0,"value"in o&&(o.writable=!0),Object.defineProperty(t,o.key,o)}}function m(t,e){return(m=Object.setPrototypeOf||function(t,e){return t.__proto__=e,t})(t,e)}function v(t){var e=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(t){return!1}}();return function(){var n,o=O(t);if(e){var r=O(this).constructor;n=Reflect.construct(o,arguments,r)}else n=o.apply(this,arguments);return w(this,n)}}function w(t,e){return!e||"object"!==h(e)&&"function"!=typeof e?function(t){if(void 0===t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return t}(t):e}function O(t){return(O=Object.setPrototypeOf?Object.getPrototypeOf:function(t){return t.__proto__||Object.getPrototypeOf(t)})(t)}var k=function(t){!function(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function");t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,writable:!0,configurable:!0}}),e&&m(t,e)}(w,t);var e,n,y,h=v(w);function w(){return b(this,w),h.apply(this,arguments)}return e=w,(n=[{key:"initialize",value:function(){this.options.model||i.a.ErrorHelper.throw(new a.a("DraggableVideoBehavior must be passed a Video model")),this.listenTo(u.w.VIDEO_DRAG_DROP,"drag:style:".concat(this.options.model.id),this.styleDragStart),this.listenTo(u.w.VIDEO_DRAG_DROP,"drag:stop",this.styleDragStop)}},{key:"lang",get:function(){return"libraryEditor.behaviors"}},{key:"helper",value:function(){var t=this.getVideoModels();return new f.b({text:t.length>1?s.a.getPhrase(this.lang,"videos",{videoCount:t.length}):t[0].get("name"),svg:c.a.getSvg(c.b.Play)}).render().el}},{key:"getSelector",value:function(){return this.view.getUI(this.options.selector)}},{key:"styleDragStart",value:function(){this.getSelector().addClass(d.a.draggingVideo)}},{key:"styleDragStop",value:function(){this.getSelector().removeClass(d.a.draggingVideo)}},{key:"start",value:function(){var t=this.getVideoModels(),e=r.Radio.channel(u.w.VIDEO_DRAG_DROP);e.trigger("drag:start",t,this.options.collectionIdentifier),o.each(t,(function(t){return e.trigger("drag:style:".concat(t.id))}))}},{key:"stop",value:function(){r.Radio.channel(u.w.VIDEO_DRAG_DROP).trigger("drag:stop")}},{key:"getVideoModels",value:function(){var t=this,e=l.a.GetSelectedModels({key:this.options.collectionIdentifier.toString(),type:p.CheckboxTypes.VIDEO_LIST,collection:this.view.model.collection});return o.any(e,(function(e){return e.id===t.view.model.id}))||(e=[this.view.model]),e.length?e:[this.view.model]}},{key:"getClassMappings",value:function(){return{"ui-draggable":f.c.draggable,"ui-draggable-disabled":f.c.disabled,"ui-draggable-handle":f.c.handle,"ui-draggable-dragging":f.c.dragging}}},{key:"onRender",value:function(){var t=this.getSelector(),e={helper:o.bind(this.helper,this),start:o.bind(this.start,this),stop:o.bind(this.stop,this)};e.classes=this.getClassMappings(),t.draggable(o.extend({},f.a,e))}},{key:"onBeforeDestroy",value:function(){var t=this.getSelector();t.draggable("instance")&&t.draggable("destroy")}}])&&g(e.prototype,n),y&&g(e,y),w}(i.a.Behavior)},1034:function(t,e,n){t.exports={draggingVideo:"_3cCHx"}},1066:function(t,e,n){"use strict";var o=n(191),r=n(1),i=n(189),a=n(0),c=n(135),u=n(291);function l(t){return(l="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t})(t)}function s(t){return function(t){if(Array.isArray(t))return f(t)}(t)||function(t){if("undefined"!=typeof Symbol&&Symbol.iterator in Object(t))return Array.from(t)}(t)||function(t,e){if(!t)return;if("string"==typeof t)return f(t,e);var n=Object.prototype.toString.call(t).slice(8,-1);"Object"===n&&t.constructor&&(n=t.constructor.name);if("Map"===n||"Set"===n)return Array.from(t);if("Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n))return f(t,e)}(t)||function(){throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function f(t,e){(null==e||e>t.length)&&(e=t.length);for(var n=0,o=new Array(e);n<e;n++)o[n]=t[n];return o}function p(t,e){for(var n=0;n<e.length;n++){var o=e[n];o.enumerable=o.enumerable||!1,o.configurable=!0,"value"in o&&(o.writable=!0),Object.defineProperty(t,o.key,o)}}function y(t,e){return(y=Object.setPrototypeOf||function(t,e){return t.__proto__=e,t})(t,e)}function d(t){var e=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(t){return!1}}();return function(){var n,o=b(t);if(e){var r=b(this).constructor;n=Reflect.construct(o,arguments,r)}else n=o.apply(this,arguments);return h(this,n)}}function h(t,e){return!e||"object"!==l(e)&&"function"!=typeof e?function(t){if(void 0===t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return t}(t):e}function b(t){return(b=Object.setPrototypeOf?Object.getPrototypeOf:function(t){return t.__proto__||Object.getPrototypeOf(t)})(t)}var g=function(t){!function(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function");t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,writable:!0,configurable:!0}}),e&&y(t,e)}(l,t);var e,n,o,i=d(l);function l(t){var e;return function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,l),(e=i.call(this,{collectionPrefix:"".concat(a.f.RECENT_VIDEOS,":collection"),cursor:t.cursor,sort:t.sort})).setAdditionalData(t),e}return e=l,(n=[{key:"setAdditionalData",value:function(t){var e=t.libraryIds,n=t.dateQueryString,o=t.subjects;e&&(this.libraryIds=e),o&&(r.isArray(o)&&o.length&&(this.subjects=o),r.isArray(o)||(this.subjects=[o]));var i=r.findWhere(u.g,{queryString:n})||u.e;this.dateOption=new c.b(i)}},{key:"toString",value:function(){var t=this.subjects&&this.subjects.length&&this.subjects.map((function(t){return escape(t.get("name"))}))||[];return[this.collectionPrefix,this.libraryIds,this.dateOption.get("from"),this.dateOption.get("to")].concat(s(t),[this.cursor]).filter(Boolean).join(":")}},{key:"toParams",value:function(){var t={};return this.libraryIds&&(t.libraryIds=this.libraryIds),this.dateOption&&(t.from=this.dateOption.get("from"),t.to=this.dateOption.get("to")),this.subjects&&(t.subjectIds=r.flatten(this.subjects.map((function(t){return t.get("subjectIds")})))),this.cursor&&(t.cursor=this.cursor),t}}])&&p(e.prototype,n),o&&p(e,o),l}(i.a);function m(t){return(m="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t})(t)}function v(t,e){for(var n=0;n<e.length;n++){var o=e[n];o.enumerable=o.enumerable||!1,o.configurable=!0,"value"in o&&(o.writable=!0),Object.defineProperty(t,o.key,o)}}function w(t,e){return(w=Object.setPrototypeOf||function(t,e){return t.__proto__=e,t})(t,e)}function O(t){var e=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(t){return!1}}();return function(){var n,o=R(t);if(e){var r=R(this).constructor;n=Reflect.construct(o,arguments,r)}else n=o.apply(this,arguments);return k(this,n)}}function k(t,e){return!e||"object"!==m(e)&&"function"!=typeof e?function(t){if(void 0===t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return t}(t):e}function R(t){return(R=Object.setPrototypeOf?Object.getPrototypeOf:function(t){return t.__proto__||Object.getPrototypeOf(t)})(t)}var _=function(t){!function(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function");t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,writable:!0,configurable:!0}}),e&&w(t,e)}(l,t);var e,n,o,i=O(l);function l(t){var e;return function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,l),(e=i.call(this,{collectionPrefix:"".concat(a.f.RECENT_SUBJECTS,":collection"),sort:t.sort})).setAdditionalData(t),e}return e=l,(n=[{key:"setAdditionalData",value:function(t){var e=t.libraryIds,n=t.dateQueryString;e&&(this.libraryIds=e);var o=r.findWhere(u.g,{queryString:n})||u.e;this.dateOption=new c.b(o)}},{key:"toString",value:function(){return[this.collectionPrefix,this.libraryIds,this.dateOption.get("from"),this.dateOption.get("to")].filter(Boolean).join(":")}},{key:"toParams",value:function(){var t={};return this.libraryIds&&(t.libraryIds=this.libraryIds),this.dateOption&&(t.from=this.dateOption.get("from"),t.to=this.dateOption.get("to")),t}}])&&v(e.prototype,n),o&&v(e,o),l}(i.a);function S(t){return(S="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t})(t)}function E(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}function P(t,e){return(P=Object.setPrototypeOf||function(t,e){return t.__proto__=e,t})(t,e)}function j(t){var e=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(t){return!1}}();return function(){var n,o=D(t);if(e){var r=D(this).constructor;n=Reflect.construct(o,arguments,r)}else n=o.apply(this,arguments);return C(this,n)}}function C(t,e){return!e||"object"!==S(e)&&"function"!=typeof e?function(t){if(void 0===t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return t}(t):e}function D(t){return(D=Object.setPrototypeOf?Object.getPrototypeOf:function(t){return t.__proto__||Object.getPrototypeOf(t)})(t)}var I=function(t){!function(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function");t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,writable:!0,configurable:!0}}),e&&P(t,e)}(n,t);var e=j(n);function n(t,o){var r=arguments.length>2&&void 0!==arguments[2]?arguments[2]:"";return E(this,n),e.call(this,{collectionPrefix:a.f.LIBRARY_FOLDERS,id:t,sort:o,cursor:r})}return n}(i.a);n.d(e,"d",(function(){return o.a})),n.d(e,"b",(function(){return g})),n.d(e,"c",(function(){return _})),n.d(e,"a",(function(){return I}))},1068:function(t,e,n){"use strict";n.d(e,"a",(function(){return d}));var o=n(1),r=n(6),i=n(2),a=n(146);function c(t){return(c="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t})(t)}function u(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}function l(t,e){for(var n=0;n<e.length;n++){var o=e[n];o.enumerable=o.enumerable||!1,o.configurable=!0,"value"in o&&(o.writable=!0),Object.defineProperty(t,o.key,o)}}function s(t,e){return(s=Object.setPrototypeOf||function(t,e){return t.__proto__=e,t})(t,e)}function f(t){var e=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(t){return!1}}();return function(){var n,o=y(t);if(e){var r=y(this).constructor;n=Reflect.construct(o,arguments,r)}else n=o.apply(this,arguments);return p(this,n)}}function p(t,e){return!e||"object"!==c(e)&&"function"!=typeof e?function(t){if(void 0===t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return t}(t):e}function y(t){return(y=Object.setPrototypeOf?Object.getPrototypeOf:function(t){return t.__proto__||Object.getPrototypeOf(t)})(t)}var d=function(t){!function(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function");t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,writable:!0,configurable:!0}}),e&&s(t,e)}(p,t);var e,n,i,c=f(p);function p(){return u(this,p),c.apply(this,arguments)}return e=p,(n=[{key:"getDroppableElement",value:function(){return this.options.ui?this.view.getUI(this.options.ui):this.$el}},{key:"drop",value:function(){var t=this;o.each(this.options.channelNames,(function(e){r.Radio.channel(e).trigger("drag:drop",t.view.model,t.options.analyticsOptions)}))}},{key:"accept",value:function(){var t=this,e=!1;return o.each(this.options.channelNames,(function(n){!0===r.Radio.channel(n).request("accept",t.view.model)&&(e=!0)})),e}},{key:"over",value:function(){var t=this;this.isHoveringOver=!0,window.setTimeout((function(){t.isHoveringOver&&t.view.trigger("open:sub:folders",a.active)}),500)}},{key:"out",value:function(){this.isHoveringOver=!1}},{key:"onRender",value:function(){var t={tolerance:"pointer",drop:o.bind(this.drop,this),accept:o.bind(this.accept,this),over:o.bind(this.over,this),out:o.bind(this.out,this)};t.classes={"ui-droppable":a.droppable,"ui-droppable-active":a.active,"ui-droppable-hover":a.hover},this.getDroppableElement().droppable(t)}},{key:"onBeforeDestroy",value:function(){this.getDroppableElement().droppable("instance")&&this.getDroppableElement().droppable("destroy")}}])&&l(e.prototype,n),i&&l(e,i),p}(i.a.Behavior)},1071:function(t,e,n){"use strict";n.d(e,"a",(function(){return m}));var o=n(1),r=n(6),i=n(2),a=n(16),c=n(0),u=n(1026),l=n(1077),s=n.n(l);function f(t){return(f="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t})(t)}function p(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}function y(t,e){for(var n=0;n<e.length;n++){var o=e[n];o.enumerable=o.enumerable||!1,o.configurable=!0,"value"in o&&(o.writable=!0),Object.defineProperty(t,o.key,o)}}function d(t,e){return(d=Object.setPrototypeOf||function(t,e){return t.__proto__=e,t})(t,e)}function h(t){var e=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(t){return!1}}();return function(){var n,o=g(t);if(e){var r=g(this).constructor;n=Reflect.construct(o,arguments,r)}else n=o.apply(this,arguments);return b(this,n)}}function b(t,e){return!e||"object"!==f(e)&&"function"!=typeof e?function(t){if(void 0===t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return t}(t):e}function g(t){return(g=Object.setPrototypeOf?Object.getPrototypeOf:function(t){return t.__proto__||Object.getPrototypeOf(t)})(t)}var m=function(t){!function(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function");t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,writable:!0,configurable:!0}}),e&&d(t,e)}(f,t);var e,n,i,l=h(f);function f(){return p(this,f),l.apply(this,arguments)}return e=f,(n=[{key:"getClassMappings",value:function(){return{"ui-draggable":u.c.draggable,"ui-draggable-handle":u.c.handle,"ui-draggable-disabled":u.c.disabled,"ui-draggable-dragging":u.c.dragging}}},{key:"helper",value:function(){return new u.b({text:this.view.model.get("name"),svg:a.a.getSvg(a.b.Folder)}).render().el}},{key:"start",value:function(){r.Radio.channel(c.w.FOLDER_DRAG_DROP).trigger("drag:start",this.view.model),this.view.$el.addClass(s.a.draggingFolder)}},{key:"stop",value:function(){r.Radio.channel(c.w.FOLDER_DRAG_DROP).trigger("drag:stop"),this.view.$el.removeClass(s.a.draggingFolder)}},{key:"onRender",value:function(){var t={helper:o.bind(this.helper,this),start:o.bind(this.start,this),stop:o.bind(this.stop,this)};t.classes=this.getClassMappings(),this.view.$el.draggable(o.extend({},u.a,t))}},{key:"onBeforeDestroy",value:function(){this.view.$el.draggable("instance")&&this.view.$el.draggable("destroy")}}])&&y(e.prototype,n),i&&y(e,i),f}(i.a.Behavior)},1075:function(t,e,n){"use strict";var o=n(2),r=n(16),i=n(82),a=n(4),c=n(42),u=n(1015),l=n(0),s=n(3),f=n(1078),p=n.n(f);function y(t){return(y="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t})(t)}function d(t,e){for(var n=0;n<e.length;n++){var o=e[n];o.enumerable=o.enumerable||!1,o.configurable=!0,"value"in o&&(o.writable=!0),Object.defineProperty(t,o.key,o)}}function h(t,e){return(h=Object.setPrototypeOf||function(t,e){return t.__proto__=e,t})(t,e)}function b(t){var e=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(t){return!1}}();return function(){var n,o=m(t);if(e){var r=m(this).constructor;n=Reflect.construct(o,arguments,r)}else n=o.apply(this,arguments);return g(this,n)}}function g(t,e){return!e||"object"!==y(e)&&"function"!=typeof e?function(t){if(void 0===t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return t}(t):e}function m(t){return(m=Object.setPrototypeOf?Object.getPrototypeOf:function(t){return t.__proto__||Object.getPrototypeOf(t)})(t)}var v=function(t){!function(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function");t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,writable:!0,configurable:!0}}),e&&h(t,e)}(f,t);var e,n,r,i=b(f);function f(t){return function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,f),i.call(this,t)}return e=f,(n=[{key:"name",get:function(){return"FolderActionsDropdownComponent"}},{key:"template",get:function(){return p.a}},{key:"lang",get:function(){return"libraryEditor.folderActionsDropdown"}},{key:"channelName",get:function(){return"".concat(this.name).concat(this.cid)}},{key:"regions",value:function(){return{items:{el:".items-region",replaceElement:!0}}}},{key:"getFolderActions",value:function(){return[{title:s.a.getPhrase(this.lang,"addSubfolder"),analyticsOptions:c.a.mergeOptions(this.options.analyticsOptions,{actionType:a.UserAction.Create,entity:a.EntityType.Folder,workflowPhase:a.WorkflowPhase.Start}),appLink:{application:l.b.LIBRARY_EDITOR,action:l.a.LibraryEditor.NEW_SUB_FOLDER,args:[this.model.get("id")]}},{title:s.a.getPhrase(this.lang,"rename"),analyticsOptions:c.a.mergeOptions(this.options.analyticsOptions,{actionType:a.UserAction.Rename,entity:a.EntityType.Folder,workflowPhase:a.WorkflowPhase.Start}),appLink:{application:l.b.LIBRARY_EDITOR,action:l.a.LibraryEditor.RENAME_FOLDER,args:[this.model.get("id")]}},{title:s.a.getPhrase(this.lang,"move"),analyticsOptions:c.a.mergeOptions(this.options.analyticsOptions,{actionType:a.UserAction.Move,entity:a.EntityType.Folder,workflowPhase:a.WorkflowPhase.Start}),appLink:{application:l.b.LIBRARY_EDITOR,action:l.a.LibraryEditor.MOVE_FOLDER,args:[this.model.get("id")]}},{title:s.a.getPhrase(this.lang,"editImages"),analyticsOptions:c.a.mergeOptions(this.options.analyticsOptions,{actionType:a.UserAction.EditAssoc,entity:a.EntityType.Folder,workflowPhase:a.WorkflowPhase.Start,descriptor:a.AssocDescriptor.Image}),appLink:{application:l.b.LIBRARY_EDITOR,action:l.a.LibraryEditor.EDIT_FOLDER_IMAGES,args:[this.model.get("id")]}},{title:s.a.getPhrase(this.lang,"generatePdf"),analyticsOptions:c.a.mergeOptions(this.options.analyticsOptions,{actionType:a.UserAction.Create,entity:a.EntityType.PDF,workflowPhase:a.WorkflowPhase.Start}),appLink:{application:l.b.LIBRARY_EDITOR,action:l.a.LibraryEditor.GENERATE_PDF,args:[this.model.get("id")]}},{title:s.a.getPhrase(this.lang,"remove"),analyticsOptions:c.a.mergeOptions(this.options.analyticsOptions,{actionType:a.UserAction.Delete,entity:a.EntityType.Folder,workflowPhase:a.WorkflowPhase.Start}),classes:"text-danger",appLink:{application:l.b.LIBRARY_EDITOR,action:l.a.LibraryEditor.DELETE_FOLDER,args:[this.model.get("id")]}}]}},{key:"onRender",value:function(){this.showChildView("items",new u.a({analyticsHelper:c.a,displayOptions:{alignment:"right"},channelName:this.channelName,collection:new o.a.Collection(this.getFolderActions()),childOptions:{isDisabled:function(){return this.model.get("disabled")}}}))}}])&&d(e.prototype,n),r&&d(e,r),f}(o.a.Component),w=n(1079),O=n.n(w),k=n(1080),R=n.n(k);function _(t){return(_="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t})(t)}function S(t,e){for(var n=0;n<e.length;n++){var o=e[n];o.enumerable=o.enumerable||!1,o.configurable=!0,"value"in o&&(o.writable=!0),Object.defineProperty(t,o.key,o)}}function E(t,e){return(E=Object.setPrototypeOf||function(t,e){return t.__proto__=e,t})(t,e)}function P(t){var e=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(t){return!1}}();return function(){var n,o=C(t);if(e){var r=C(this).constructor;n=Reflect.construct(o,arguments,r)}else n=o.apply(this,arguments);return j(this,n)}}function j(t,e){return!e||"object"!==_(e)&&"function"!=typeof e?function(t){if(void 0===t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return t}(t):e}function C(t){return(C=Object.setPrototypeOf?Object.getPrototypeOf:function(t){return t.__proto__||Object.getPrototypeOf(t)})(t)}n.d(e,"a",(function(){return D}));var D=function(t){!function(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function");t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,writable:!0,configurable:!0}}),e&&E(t,e)}(c,t);var e,n,o,a=P(c);function c(t){return function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,c),a.call(this,t)}return e=c,(n=[{key:"name",get:function(){return"VideoCollectionActionsComponent"}},{key:"channelName",get:function(){return"".concat(this.name).concat(this.cid)}},{key:"className",get:function(){if(this.model instanceof i.a)return"position-absolute ".concat(this.options.overrideClasses?"":R.a.dropdownContainer," ").concat(this.options.extraClasses," ")}},{key:"elements",get:function(){return{dropdownToggle:".ui-dropdown-toggle",dropdownItem:".dropdown-item"}}},{key:"events",value:function(){return{"click @ui.dropdownToggle":"onClickDropdownToggle","click @ui.dropdownItem":"onClickDropdownItem"}}},{key:"template",get:function(){return O.a}},{key:"regions",value:function(){return{items:{replaceElement:!0,el:".items-region"}}}},{key:"onClickDropdownToggle",value:function(){this.model instanceof i.a&&this.showChildView("items",new v({model:this.model,analyticsOptions:this.options.analyticsOptions}))}},{key:"onClickDropdownItem",value:function(t){t.stopPropagation(),t.preventDefault(),this.getUI("dropdownToggle").dropdown("toggle")}},{key:"viewOptions",value:function(){return{hasActions:this.model instanceof i.a,dropdownClass:"".concat(R.a.dropdownButton," ").concat(this.options.buttonClass),svg:r.a.getSvg(r.b.More)}}}])&&S(e.prototype,n),o&&S(e,o),c}(o.a.Component)},1077:function(t,e,n){t.exports={dragging:"_2wBn3",draggingFolder:"_1r3AS"}},1078:function(t,e,n){var o=n(10);t.exports=(o.default||o).template({compiler:[8,">= 4.3.0"],main:function(t,e,n,o,r){return'<div class="items-region"></div>'},useData:!0})},1079:function(t,e,n){var o=n(10);t.exports=(o.default||o).template({1:function(t,e,n,o,r){t.propertyIsEnumerable;var i,a=t.lambda;return'<span data-toggle="dropdown" aria-haspopup="true" aria-expanded="false" class="'+t.escapeExpression(a(null!=(i=null!=e?e.options:e)?i.dropdownClass:i,e))+' d-inline-block ui-dropdown-toggle">\r\n '+(null!=(i=a(null!=(i=null!=e?e.options:e)?i.svg:i,e))?i:"")+'\r\n</span>\r\n<div class="items-region"></div>\r\n'},compiler:[8,">= 4.3.0"],main:function(t,e,n,o,r){var i;t.propertyIsEnumerable;return null!=(i=n.if.call(null!=e?e:t.nullContext||{},null!=(i=null!=e?e.options:e)?i.hasActions:i,{name:"if",hash:{},fn:t.program(1,r,0),inverse:t.noop,data:r}))?i:""},useData:!0})},1080:function(t,e,n){t.exports={dropdownContainer:"_2F3Cz",dropdownButton:"_2TdId"}},1101:function(t,e,n){"use strict";n.d(e,"a",(function(){return w}));var o=n(2),r=n(16),i=n(4),a=n(42),c=n(1015),u=n(0),l=n(3),s=n(1102),f=n.n(s),p=n(1103),y=n.n(p);function d(t){return(d="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t})(t)}function h(t,e){for(var n=0;n<e.length;n++){var o=e[n];o.enumerable=o.enumerable||!1,o.configurable=!0,"value"in o&&(o.writable=!0),Object.defineProperty(t,o.key,o)}}function b(t,e){return(b=Object.setPrototypeOf||function(t,e){return t.__proto__=e,t})(t,e)}function g(t){var e=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(t){return!1}}();return function(){var n,o=v(t);if(e){var r=v(this).constructor;n=Reflect.construct(o,arguments,r)}else n=o.apply(this,arguments);return m(this,n)}}function m(t,e){return!e||"object"!==d(e)&&"function"!=typeof e?function(t){if(void 0===t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return t}(t):e}function v(t){return(v=Object.setPrototypeOf?Object.getPrototypeOf:function(t){return t.__proto__||Object.getPrototypeOf(t)})(t)}var w=function(t){!function(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function");t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,writable:!0,configurable:!0}}),e&&b(t,e)}(d,t);var e,n,s,p=g(d);function d(t){return function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,d),p.call(this,t)}return e=d,(n=[{key:"name",get:function(){return"LibraryActionsComponent"}},{key:"template",get:function(){return f.a}},{key:"channelName",get:function(){return"".concat(this.name).concat(this.cid)}},{key:"lang",get:function(){return"libraryEditor.libraryActions"}},{key:"className",get:function(){return"position-absolute ".concat(y.a.dropdownContainer," ").concat(this.options.extraClasses," ")}},{key:"elements",get:function(){return{dropdownToggle:".ui-dropdown-toggle",dropdownItem:".dropdown-item"}}},{key:"events",value:function(){return{"click @ui.dropdownToggle":"onClickDropdownToggle","click @ui.dropdownItem":"onClickDropdownItem"}}},{key:"regions",value:function(){return{dropdownItems:{replaceElement:!0,el:".items-region"}}}},{key:"onClickDropdownToggle",value:function(){this.showChildView("dropdownItems",new c.a({analyticsHelper:a.a,displayOptions:{alignment:"right"},channelName:this.channelName,collection:new o.a.Collection([{title:l.a.getPhrase(this.lang,"addFolder"),analyticsOptions:a.a.mergeOptions(this.options.analyticsOptions,{actionType:i.UserAction.Create,entity:i.EntityType.Folder,workflowPhase:i.WorkflowPhase.Start}),appLink:{application:u.b.LIBRARY_EDITOR,action:u.a.Shared.NEW_FOLDER,args:[this.model.get("id")]}},{title:l.a.getPhrase(this.lang,"rename"),analyticsOptions:a.a.mergeOptions(this.options.analyticsOptions,{actionType:i.UserAction.Rename,entity:i.EntityType.Library,workflowPhase:i.WorkflowPhase.Start}),appLink:{application:u.b.LIBRARY_EDITOR,action:u.a.LibraryEditor.RENAME_LIBRARY,args:[this.model.get("id")]}},{title:l.a.getPhrase(this.lang,"remove"),analyticsOptions:a.a.mergeOptions(this.options.analyticsOptions,{actionType:i.UserAction.Delete,entity:i.EntityType.Library,workflowPhase:i.WorkflowPhase.Start}),appLink:{application:u.b.LIBRARY_EDITOR,action:u.a.LibraryEditor.DELETE_LIBRARY,args:[this.model.get("id")]},classes:"text-danger"}])}))}},{key:"onClickDropdownItem",value:function(t){t.stopPropagation(),t.preventDefault(),this.getUI("dropdownToggle").dropdown("toggle")}},{key:"viewOptions",value:function(){return{dropdownClass:"".concat(y.a.dropdownButton," ").concat(this.options.buttonClass),svg:r.a.getSvg(r.b.More)}}}])&&h(e.prototype,n),s&&h(e,s),d}(o.a.Component)},1102:function(t,e,n){var o=n(10);t.exports=(o.default||o).template({compiler:[8,">= 4.3.0"],main:function(t,e,n,o,r){t.propertyIsEnumerable;var i,a=t.lambda;return'<span data-toggle="dropdown" aria-haspopup="true" aria-expanded="false" class="'+t.escapeExpression(a(null!=(i=null!=e?e.options:e)?i.dropdownClass:i,e))+' d-inline-block ui-dropdown-toggle">\r\n '+(null!=(i=a(null!=(i=null!=e?e.options:e)?i.svg:i,e))?i:"")+'\r\n</span>\r\n<div class="items-region"></div>'},useData:!0})},1103:function(t,e,n){t.exports={dropdownContainer:"_293SV",dropdownButton:"_23YxG"}},1180:function(t,e,n){var o=n(10);t.exports=(o.default||o).template({compiler:[8,">= 4.3.0"],main:function(t,e,n,o,r){t.propertyIsEnumerable;var i,a,c=t.lambda,u=t.escapeExpression;return'<a\r\n class="d-block cursor-pointer no-decoration '+u(c(null!=(i=null!=(i=null!=e?e.options:e)?i.styles:i)?i.folder:i,e))+'"\r\n style="background-image: url(\''+u(c(null!=(i=null!=e?e.options:e)?i.imageUrl:i,e))+'\')"\r\n>\r\n <h3 class="position-absolute text-white text-center m-0">'+u("function"==typeof(a=null!=(a=n.name||(null!=e?e.name:e))?a:t.hooks.helperMissing)?a.call(null!=e?e:t.nullContext||{},{name:"name",hash:{},data:r}):a)+'</h3>\r\n</a>\r\n<div class="actions-region"></div>'},useData:!0})},1181:function(t,e,n){t.exports={folder:"_1MHyt",actions:"_3-hwy"}},1182:function(t,e,n){var o=n(10);t.exports=(o.default||o).template({compiler:[8,">= 4.3.0"],main:function(t,e,n,o,r){var i;t.propertyIsEnumerable;return'<h1 class="h3">'+t.escapeExpression("function"==typeof(i=null!=(i=n.name||(null!=e?e.name:e))?i:t.hooks.helperMissing)?i.call(null!=e?e:t.nullContext||{},{name:"name",hash:{},data:r}):i)+'</h1>\r\n<div class="folders-region"></div>\r\n<div class="actions-region"></div>'},useData:!0})},1183:function(t,e,n){t.exports={actions:"_3vCmp"}},1443:function(t,e,n){"use strict";n.r(e);var o=n(1),r=n(2),i=n(5),a=n(3),c=n(4),u=n(16),l=n(293),s=n(35),f=n(188),p=n(0),y=n(9),d=n(1066),h=n(1180),b=n.n(h),g=n(1181),m=n.n(g),v=n(12),w=n(1071),O=(n(1031),n(1068)),k=n(1075);function R(t){return(R="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t})(t)}function _(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}function S(t,e){for(var n=0;n<e.length;n++){var o=e[n];o.enumerable=o.enumerable||!1,o.configurable=!0,"value"in o&&(o.writable=!0),Object.defineProperty(t,o.key,o)}}function E(t,e,n){return e&&S(t.prototype,e),n&&S(t,n),t}function P(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function");t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,writable:!0,configurable:!0}}),e&&j(t,e)}function j(t,e){return(j=Object.setPrototypeOf||function(t,e){return t.__proto__=e,t})(t,e)}function C(t){var e=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(t){return!1}}();return function(){var n,o=I(t);if(e){var r=I(this).constructor;n=Reflect.construct(o,arguments,r)}else n=o.apply(this,arguments);return D(this,n)}}function D(t,e){return!e||"object"!==R(e)&&"function"!=typeof e?function(t){if(void 0===t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return t}(t):e}function I(t){return(I=Object.setPrototypeOf?Object.getPrototypeOf:function(t){return t.__proto__||Object.getPrototypeOf(t)})(t)}var T=function(t){P(n,t);var e=C(n);function n(t){return _(this,n),e.call(this,t)}return E(n,[{key:"initialize",value:function(){this.listenTo(this.model,"change:name",this.render)}},{key:"name",get:function(){return"LibraryFolderItemComponent"}},{key:"template",get:function(){return b.a}},{key:"className",get:function(){return"col-3 p-2"}},{key:"appLinks",get:function(){return{a:{application:p.b.LIBRARY_EDITOR,action:p.a.LibraryEditor.FOLDER,args:[this.model.get("id")]}}}},{key:"regions",value:function(){return{actions:{el:".actions-region",replaceElement:!0}}}},{key:"behaviors",get:function(){return[{behaviorClass:O.a,channelNames:[p.w.VIDEO_DRAG_DROP,p.w.FOLDER_DRAG_DROP],analyticsOptions:{location:c.LocationContext.LibraryTiles}},{behaviorClass:w.a}]}},{key:"viewOptions",value:function(){var t=v.g.createFolderThumbnailUrl(this.model.thumbnail,{fallbackBaseUrl:this.options.imageCdnUrl,fallbackCategoryName:this.model.get("name"),type:y.f.Thumbnails});return{styles:m.a,imageUrl:t}}},{key:"onRender",value:function(){this.showChildView("actions",new k.a({model:this.model,extraClasses:"".concat(m.a.actions," rounded-circle"),buttonClass:"text-light",analyticsOptions:{location:c.LocationContext.LibraryTiles},overrideClasses:!0}))}}]),n}(r.a.Component),x=function(t){P(n,t);var e=C(n);function n(t){return _(this,n),e.call(this,t)}return E(n,[{key:"name",get:function(){return"LibraryFolderListComponent"}},{key:"className",get:function(){return"row"}},{key:"childView",get:function(){return T}},{key:"childViewOptions",get:function(){return this.options.childOptions}}]),n}(r.a.ComponentCollection),L=n(1101),A=n(1182),B=n.n(A),F=n(1183),N=n.n(F);function V(t){return(V="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t})(t)}function U(t,e){for(var n=0;n<e.length;n++){var o=e[n];o.enumerable=o.enumerable||!1,o.configurable=!0,"value"in o&&(o.writable=!0),Object.defineProperty(t,o.key,o)}}function M(t,e){return(M=Object.setPrototypeOf||function(t,e){return t.__proto__=e,t})(t,e)}function Y(t){var e=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(t){return!1}}();return function(){var n,o=G(t);if(e){var r=G(this).constructor;n=Reflect.construct(o,arguments,r)}else n=o.apply(this,arguments);return W(this,n)}}function W(t,e){return!e||"object"!==V(e)&&"function"!=typeof e?function(t){if(void 0===t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return t}(t):e}function G(t){return(G=Object.setPrototypeOf?Object.getPrototypeOf:function(t){return t.__proto__||Object.getPrototypeOf(t)})(t)}n.d(e,"LibraryView",(function(){return H}));var H=function(t){!function(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function");t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,writable:!0,configurable:!0}}),e&&M(t,e)}(b,t);var e,n,r,h=Y(b);function b(t){return function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,b),h.call(this,t)}return e=b,(n=[{key:"initialize",value:function(){var t=this;this.libraryDataService=i.a.getInstance(p.g.Library,this),this.listenTo(p.e.LIBRARY,"clear:library:folder:cache",(function(){t.folders=null,t.render()}))}},{key:"name",get:function(){return"LibraryView"}},{key:"title",get:function(){return!!this.model&&this.model.get("name")}},{key:"lang",get:function(){return"libraryEditor.library"}},{key:"template",get:function(){return B.a}},{key:"className",get:function(){return"bg-white px-3 pt-3 pb-2 position-relative ".concat(N.a.library)}},{key:"behaviors",get:function(){var t=this;return[{behaviorClass:l.a,region:"folders",type:y.c.Library,shouldRender:function(){return t.model&&!t.model.children.length},componentOptions:{libraryId:this.options.libraryId,moreSvg:u.a.getSvg(u.b.More),heading:a.a.getPhrase(this.lang,"emptyStateHeading"),description:a.a.getPhrase(this.lang,"emptyStateInfo",{moreSvg:'<span class="d-inline-block svg-container align-top">\n '.concat(u.a.getSvg(u.b.More),"</span>")})},emptyStateComponents:p.h}]}},{key:"regions",value:function(){return{folders:{el:".folders-region",replaceElement:!0,partialLoading:y.h.LibraryFolders},actions:{el:".actions-region",replaceElement:!0}}}},{key:"renderFolders",value:function(){this.showChildView("folders",new x({collection:this.folders,childOptions:{imageCdnUrl:this.config.get("imageCdnUrl")}}))}},{key:"renderActions",value:function(){this.showChildView("actions",new L.a({model:this.model,extraClasses:"".concat(N.a.actions," rounded-circle mr-2 mt-2"),analyticsOptions:{location:c.LocationContext.Banner}}))}},{key:"requiredResources",get:function(){return{config:f.b.config}}},{key:"bindScrollListener",value:function(){var t=this;if(!this.scrollBound){this.scrollBound=!0;var e=$(window),n=o.debounce((function(){if(e.scrollTop()+e.height()>t.$el.offset().top+t.$el.height()&&t.currentIdentifier){var n=t.libraryDataService.getLibraryFoldersCursors(t.currentIdentifier);n&&n.next&&t.libraryDataService.getLibraryFolders(t.getNewCollectionIdentifier(n.next),(function(e){t.folders.add(e.toJSON())}))}}),333);e.scroll(n),window.setTimeout(n,100)}}},{key:"getNewCollectionIdentifier",value:function(t){return this.currentIdentifier=new d.a(this.model.categoryTree.get("id"),s.a.AtoZ,t)}},{key:"onBeforeRender",value:function(){var t=this;if(this.model)return this.folders||this.libraryDataService.getLibraryFolders(this.getNewCollectionIdentifier(),(function(e){t.folders=e,t.render()})),!!this.model&&!!this.folders;this.libraryDataService.getLibraries((function(e){t.model=e.get(t.options.libraryId),t.listenTo(t.model,"change:name",t.render),t.render()}))}},{key:"onRender",value:function(){this.renderFolders(),this.renderActions(),this.bindScrollListener()}}])&&U(e.prototype,n),r&&U(e,r),b}(r.a.View)}}]);
@@ -0,0 +1,25 @@
1
+ (window["webpackJsonp_clickview_library_editor"] = window["webpackJsonp_clickview_library_editor"] || []).push([[26],{
2
+
3
+ /***/ "./src/shared/components/video-basic-info/VideoBasicInfo.hbs":
4
+ /***/ (function(module, exports, __webpack_require__) {
5
+
6
+ eval("var Handlebars = __webpack_require__(\"handlebars\");\nmodule.exports = (Handlebars['default'] || Handlebars).template({\"1\":function(container,depth0,helpers,partials,data) {\n var stack1, alias1=container.propertyIsEnumerable, alias2=depth0 != null ? depth0 : (container.nullContext || {});\n\n return \"<div class=\\\"position-relative\\\">\\r\\n <h5 class=\\\"d-inline-block\\\">\"\n + container.escapeExpression((helpers.lang||(depth0 && depth0.lang)||container.hooks.helperMissing).call(alias2,\"basicInfo\",{\"name\":\"lang\",\"hash\":{},\"data\":data}))\n + \"</h5>\\r\\n\"\n + ((stack1 = helpers[\"if\"].call(alias2,((stack1 = (depth0 != null ? depth0.options : depth0)) != null ? stack1.showPublisherVideoDetails : stack1),{\"name\":\"if\",\"hash\":{},\"fn\":container.program(2, data, 0),\"inverse\":container.noop,\"data\":data})) != null ? stack1 : \"\")\n + \"</div>\\r\\n\";\n},\"2\":function(container,depth0,helpers,partials,data) {\n var stack1, alias1=container.propertyIsEnumerable, alias2=container.lambda, alias3=container.escapeExpression;\n\n return \" <a class=\\\"float-right cursor-pointer applink-publisher-video\\\">\\r\\n <span class=\\\"d-inline-block align-middle \"\n + alias3(alias2(((stack1 = ((stack1 = (depth0 != null ? depth0.options : depth0)) != null ? stack1.styles : stack1)) != null ? stack1.icon : stack1), depth0))\n + \"\\\">\"\n + ((stack1 = alias2(((stack1 = (depth0 != null ? depth0.options : depth0)) != null ? stack1.publisherArchiveSvg : stack1), depth0)) != null ? stack1 : \"\")\n + \"</span> \"\n + alias3((helpers.lang||(depth0 && depth0.lang)||container.hooks.helperMissing).call(depth0 != null ? depth0 : (container.nullContext || {}),\"viewInPublisherArchive\",{\"name\":\"lang\",\"hash\":{},\"data\":data}))\n + \"\\r\\n </a>\\r\\n\";\n},\"4\":function(container,depth0,helpers,partials,data) {\n var stack1, helper, alias1=container.propertyIsEnumerable, alias2=container.escapeExpression, alias3=depth0 != null ? depth0 : (container.nullContext || {}), alias4=container.hooks.helperMissing;\n\n return \" <div class=\\\"col-3 \"\n + alias2(container.lambda(((stack1 = ((stack1 = (depth0 != null ? depth0.options : depth0)) != null ? stack1.styles : stack1)) != null ? stack1.columnNames : stack1), depth0))\n + \"\\\">\"\n + alias2((helpers.lang||(depth0 && depth0.lang)||alias4).call(alias3,\"videoTitle\",{\"name\":\"lang\",\"hash\":{},\"data\":data}))\n + \"</div>\\r\\n <p class=\\\"col-9\\\">\"\n + alias2(((helper = (helper = helpers.name || (depth0 != null ? depth0.name : depth0)) != null ? helper : alias4),(typeof helper === \"function\" ? helper.call(alias3,{\"name\":\"name\",\"hash\":{},\"data\":data}) : helper)))\n + \"</p>\\r\\n\";\n},\"6\":function(container,depth0,helpers,partials,data) {\n var stack1, alias1=container.propertyIsEnumerable, alias2=container.lambda, alias3=container.escapeExpression;\n\n return \" <div class=\\\"col-3 \"\n + alias3(alias2(((stack1 = ((stack1 = (depth0 != null ? depth0.options : depth0)) != null ? stack1.styles : stack1)) != null ? stack1.columnNames : stack1), depth0))\n + \"\\\">\"\n + alias3((helpers.lang||(depth0 && depth0.lang)||container.hooks.helperMissing).call(depth0 != null ? depth0 : (container.nullContext || {}),\"series\",{\"name\":\"lang\",\"hash\":{},\"data\":data}))\n + \"</div>\\r\\n <div class=\\\"col-9 \"\n + alias3(alias2(((stack1 = ((stack1 = (depth0 != null ? depth0.options : depth0)) != null ? stack1.styles : stack1)) != null ? stack1.seriesContainer : stack1), depth0))\n + \"\\\"><div class=\\\"series-region\\\"></div></div>\\r\\n\";\n},\"8\":function(container,depth0,helpers,partials,data) {\n var stack1, alias1=container.propertyIsEnumerable, alias2=container.lambda, alias3=container.escapeExpression;\n\n return \" <div class=\\\"col-3 \"\n + alias3(alias2(((stack1 = ((stack1 = (depth0 != null ? depth0.options : depth0)) != null ? stack1.styles : stack1)) != null ? stack1.columnNames : stack1), depth0))\n + \"\\\">\"\n + alias3((helpers.lang||(depth0 && depth0.lang)||container.hooks.helperMissing).call(depth0 != null ? depth0 : (container.nullContext || {}),\"rating\",{\"name\":\"lang\",\"hash\":{},\"data\":data}))\n + \"</div>\\r\\n <p class=\\\"col-9\\\"><span class=\\\"p-1 badge text-white tool-tip \"\n + alias3(alias2(((stack1 = (depth0 != null ? depth0.options : depth0)) != null ? stack1.ratingClass : stack1), depth0))\n + \" \"\n + alias3(alias2(((stack1 = ((stack1 = (depth0 != null ? depth0.options : depth0)) != null ? stack1.styles : stack1)) != null ? stack1.rating : stack1), depth0))\n + \"\\\" title=\\\"\"\n + alias3(alias2(((stack1 = (depth0 != null ? depth0.rating : depth0)) != null ? stack1.name : stack1), depth0))\n + \"\\\">\"\n + alias3(alias2(((stack1 = (depth0 != null ? depth0.rating : depth0)) != null ? stack1.code : stack1), depth0))\n + \"</span></p>\\r\\n\";\n},\"10\":function(container,depth0,helpers,partials,data) {\n var stack1, alias1=container.propertyIsEnumerable, alias2=container.escapeExpression;\n\n return \" <div class=\\\"col-3 \"\n + alias2(container.lambda(((stack1 = ((stack1 = (depth0 != null ? depth0.options : depth0)) != null ? stack1.styles : stack1)) != null ? stack1.columnNames : stack1), depth0))\n + \"\\\">\"\n + alias2((helpers.lang||(depth0 && depth0.lang)||container.hooks.helperMissing).call(depth0 != null ? depth0 : (container.nullContext || {}),\"description\",{\"name\":\"lang\",\"hash\":{},\"data\":data}))\n + \"</div>\\r\\n <div class=\\\"col-9\\\">\\r\\n <div class=\\\"description-region\\\"></div>\\r\\n </div>\\r\\n\";\n},\"12\":function(container,depth0,helpers,partials,data) {\n var stack1, helper, alias1=container.propertyIsEnumerable, alias2=container.escapeExpression, alias3=depth0 != null ? depth0 : (container.nullContext || {}), alias4=container.hooks.helperMissing;\n\n return \" <div class=\\\"col-3 \"\n + alias2(container.lambda(((stack1 = ((stack1 = (depth0 != null ? depth0.options : depth0)) != null ? stack1.styles : stack1)) != null ? stack1.columnNames : stack1), depth0))\n + \"\\\">\"\n + alias2((helpers.lang||(depth0 && depth0.lang)||alias4).call(alias3,\"productionYear\",{\"name\":\"lang\",\"hash\":{},\"data\":data}))\n + \"</div>\\r\\n <p class=\\\"col-9\\\">\"\n + alias2(((helper = (helper = helpers.productionYear || (depth0 != null ? depth0.productionYear : depth0)) != null ? helper : alias4),(typeof helper === \"function\" ? helper.call(alias3,{\"name\":\"productionYear\",\"hash\":{},\"data\":data}) : helper)))\n + \"</p>\\r\\n\";\n},\"14\":function(container,depth0,helpers,partials,data) {\n var stack1, alias1=container.propertyIsEnumerable, alias2=container.lambda, alias3=container.escapeExpression, alias4=depth0 != null ? depth0 : (container.nullContext || {});\n\n return \" <div class=\\\"col-3 \"\n + alias3(alias2(((stack1 = ((stack1 = (depth0 != null ? depth0.options : depth0)) != null ? stack1.styles : stack1)) != null ? stack1.columnNames : stack1), depth0))\n + \"\\\">\"\n + alias3((helpers.lang||(depth0 && depth0.lang)||container.hooks.helperMissing).call(alias4,\"producers\",{\"name\":\"lang\",\"hash\":{},\"data\":data}))\n + \"</div>\\r\\n <div class=\\\"col-9 \"\n + alias3(alias2(((stack1 = ((stack1 = (depth0 != null ? depth0.options : depth0)) != null ? stack1.styles : stack1)) != null ? stack1.citationValues : stack1), depth0))\n + \"\\\">\\r\\n <p>\\r\\n\"\n + ((stack1 = helpers.each.call(alias4,(depth0 != null ? depth0.producers : depth0),{\"name\":\"each\",\"hash\":{},\"fn\":container.program(15, data, 0),\"inverse\":container.noop,\"data\":data})) != null ? stack1 : \"\")\n + \" </p>\\r\\n </div>\\r\\n\";\n},\"15\":function(container,depth0,helpers,partials,data) {\n var helper, alias1=container.propertyIsEnumerable;\n\n return \" <span>\"\n + container.escapeExpression(((helper = (helper = helpers.name || (depth0 != null ? depth0.name : depth0)) != null ? helper : container.hooks.helperMissing),(typeof helper === \"function\" ? helper.call(depth0 != null ? depth0 : (container.nullContext || {}),{\"name\":\"name\",\"hash\":{},\"data\":data}) : helper)))\n + \"</span>\\r\\n\";\n},\"17\":function(container,depth0,helpers,partials,data) {\n var stack1, alias1=container.propertyIsEnumerable, alias2=container.lambda, alias3=container.escapeExpression, alias4=depth0 != null ? depth0 : (container.nullContext || {});\n\n return \" <div class=\\\"col-3 \"\n + alias3(alias2(((stack1 = ((stack1 = (depth0 != null ? depth0.options : depth0)) != null ? stack1.styles : stack1)) != null ? stack1.columnNames : stack1), depth0))\n + \"\\\">\"\n + alias3((helpers.lang||(depth0 && depth0.lang)||container.hooks.helperMissing).call(alias4,\"directors\",{\"name\":\"lang\",\"hash\":{},\"data\":data}))\n + \"</div>\\r\\n <div class=\\\"col-9 \"\n + alias3(alias2(((stack1 = ((stack1 = (depth0 != null ? depth0.options : depth0)) != null ? stack1.styles : stack1)) != null ? stack1.citationValues : stack1), depth0))\n + \"\\\">\\r\\n <p>\\r\\n\"\n + ((stack1 = helpers.each.call(alias4,(depth0 != null ? depth0.directors : depth0),{\"name\":\"each\",\"hash\":{},\"fn\":container.program(15, data, 0),\"inverse\":container.noop,\"data\":data})) != null ? stack1 : \"\")\n + \" </p>\\r\\n </div>\\r\\n\";\n},\"19\":function(container,depth0,helpers,partials,data) {\n var stack1, alias1=container.propertyIsEnumerable, alias2=container.lambda, alias3=container.escapeExpression, alias4=depth0 != null ? depth0 : (container.nullContext || {});\n\n return \" <div class=\\\"col-3 \"\n + alias3(alias2(((stack1 = ((stack1 = (depth0 != null ? depth0.options : depth0)) != null ? stack1.styles : stack1)) != null ? stack1.columnNames : stack1), depth0))\n + \"\\\">\"\n + alias3((helpers.lang||(depth0 && depth0.lang)||container.hooks.helperMissing).call(alias4,\"productionCompanies\",{\"name\":\"lang\",\"hash\":{},\"data\":data}))\n + \"</div>\\r\\n <div class=\\\"col-9 \"\n + alias3(alias2(((stack1 = ((stack1 = (depth0 != null ? depth0.options : depth0)) != null ? stack1.styles : stack1)) != null ? stack1.citationValues : stack1), depth0))\n + \"\\\">\\r\\n <p>\\r\\n\"\n + ((stack1 = helpers.each.call(alias4,(depth0 != null ? depth0.productionCompanies : depth0),{\"name\":\"each\",\"hash\":{},\"fn\":container.program(15, data, 0),\"inverse\":container.noop,\"data\":data})) != null ? stack1 : \"\")\n + \" </p>\\r\\n </div>\\r\\n\";\n},\"21\":function(container,depth0,helpers,partials,data) {\n var stack1, alias1=container.propertyIsEnumerable, alias2=container.lambda, alias3=container.escapeExpression, alias4=depth0 != null ? depth0 : (container.nullContext || {});\n\n return \" <div class=\\\"col-3 \"\n + alias3(alias2(((stack1 = ((stack1 = (depth0 != null ? depth0.options : depth0)) != null ? stack1.styles : stack1)) != null ? stack1.columnNames : stack1), depth0))\n + \"\\\">\"\n + alias3((helpers.lang||(depth0 && depth0.lang)||container.hooks.helperMissing).call(alias4,\"distributors\",{\"name\":\"lang\",\"hash\":{},\"data\":data}))\n + \"</div>\\r\\n <div class=\\\"col-9 \"\n + alias3(alias2(((stack1 = ((stack1 = (depth0 != null ? depth0.options : depth0)) != null ? stack1.styles : stack1)) != null ? stack1.citationValues : stack1), depth0))\n + \"\\\">\\r\\n <p>\\r\\n\"\n + ((stack1 = helpers.each.call(alias4,(depth0 != null ? depth0.distributors : depth0),{\"name\":\"each\",\"hash\":{},\"fn\":container.program(15, data, 0),\"inverse\":container.noop,\"data\":data})) != null ? stack1 : \"\")\n + \" </p>\\r\\n </div>\\r\\n\";\n},\"23\":function(container,depth0,helpers,partials,data) {\n var stack1, alias1=container.propertyIsEnumerable;\n\n return ((stack1 = helpers[\"if\"].call(depth0 != null ? depth0 : (container.nullContext || {}),(depth0 != null ? depth0.channel : depth0),{\"name\":\"if\",\"hash\":{},\"fn\":container.program(24, data, 0),\"inverse\":container.noop,\"data\":data})) != null ? stack1 : \"\");\n},\"24\":function(container,depth0,helpers,partials,data) {\n var stack1, alias1=container.propertyIsEnumerable, alias2=container.lambda, alias3=container.escapeExpression;\n\n return \"\\r\\n <div class=\\\"col-3 \"\n + alias3(alias2(((stack1 = ((stack1 = (depth0 != null ? depth0.options : depth0)) != null ? stack1.styles : stack1)) != null ? stack1.columnNames : stack1), depth0))\n + \"\\\">\"\n + alias3((helpers.lang||(depth0 && depth0.lang)||container.hooks.helperMissing).call(depth0 != null ? depth0 : (container.nullContext || {}),\"channel\",{\"name\":\"lang\",\"hash\":{},\"data\":data}))\n + \"</div>\\r\\n <p class=\\\"col-9\\\">\"\n + alias3(alias2(((stack1 = (depth0 != null ? depth0.channel : depth0)) != null ? stack1.name : stack1), depth0))\n + \"</p>\\r\\n \";\n},\"26\":function(container,depth0,helpers,partials,data) {\n var stack1, alias1=container.propertyIsEnumerable, alias2=container.lambda, alias3=container.escapeExpression;\n\n return \" <div class=\\\"col-3 \"\n + alias3(alias2(((stack1 = ((stack1 = (depth0 != null ? depth0.options : depth0)) != null ? stack1.styles : stack1)) != null ? stack1.columnNames : stack1), depth0))\n + \"\\\">\"\n + alias3((helpers.lang||(depth0 && depth0.lang)||container.hooks.helperMissing).call(depth0 != null ? depth0 : (container.nullContext || {}),\"broadcastDate\",{\"name\":\"lang\",\"hash\":{},\"data\":data}))\n + \"</div>\\r\\n <p class=\\\"col-9\\\">\"\n + alias3(alias2(((stack1 = (depth0 != null ? depth0.options : depth0)) != null ? stack1.broadcastDate : stack1), depth0))\n + \"</p>\\r\\n\";\n},\"28\":function(container,depth0,helpers,partials,data) {\n var stack1, alias1=container.propertyIsEnumerable, alias2=container.lambda, alias3=container.escapeExpression;\n\n return \" <div class=\\\"col-3 \"\n + alias3(alias2(((stack1 = ((stack1 = (depth0 != null ? depth0.options : depth0)) != null ? stack1.styles : stack1)) != null ? stack1.columnNames : stack1), depth0))\n + \"\\\">\"\n + alias3((helpers.lang||(depth0 && depth0.lang)||container.hooks.helperMissing).call(depth0 != null ? depth0 : (container.nullContext || {}),\"subtitles\",{\"name\":\"lang\",\"hash\":{},\"data\":data}))\n + \"</div>\\r\\n <p class=\\\"col-9\\\">\"\n + alias3(alias2(((stack1 = (depth0 != null ? depth0.options : depth0)) != null ? stack1.subtitles : stack1), depth0))\n + \"</p>\\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 ((stack1 = helpers[\"if\"].call(alias2,((stack1 = (depth0 != null ? depth0.options : depth0)) != null ? stack1.showHeading : stack1),{\"name\":\"if\",\"hash\":{},\"fn\":container.program(1, data, 0),\"inverse\":container.noop,\"data\":data})) != null ? stack1 : \"\")\n + \"<div class=\\\"row mb-0\\\">\\r\\n\"\n + ((stack1 = helpers[\"if\"].call(alias2,(depth0 != null ? depth0.name : depth0),{\"name\":\"if\",\"hash\":{},\"fn\":container.program(4, data, 0),\"inverse\":container.noop,\"data\":data})) != null ? stack1 : \"\")\n + \"\\r\\n\"\n + ((stack1 = helpers[\"if\"].call(alias2,((stack1 = (depth0 != null ? depth0.series : depth0)) != null ? stack1.name : stack1),{\"name\":\"if\",\"hash\":{},\"fn\":container.program(6, data, 0),\"inverse\":container.noop,\"data\":data})) != null ? stack1 : \"\")\n + \"\\r\\n\"\n + ((stack1 = helpers[\"if\"].call(alias2,((stack1 = (depth0 != null ? depth0.rating : depth0)) != null ? stack1.code : stack1),{\"name\":\"if\",\"hash\":{},\"fn\":container.program(8, data, 0),\"inverse\":container.noop,\"data\":data})) != null ? stack1 : \"\")\n + \"\\r\\n\"\n + ((stack1 = helpers[\"if\"].call(alias2,(depth0 != null ? depth0.description : depth0),{\"name\":\"if\",\"hash\":{},\"fn\":container.program(10, data, 0),\"inverse\":container.noop,\"data\":data})) != null ? stack1 : \"\")\n + \"\\r\\n\"\n + ((stack1 = helpers[\"if\"].call(alias2,(depth0 != null ? depth0.productionYear : depth0),{\"name\":\"if\",\"hash\":{},\"fn\":container.program(12, data, 0),\"inverse\":container.noop,\"data\":data})) != null ? stack1 : \"\")\n + \"\\r\\n\"\n + ((stack1 = helpers[\"if\"].call(alias2,((stack1 = (depth0 != null ? depth0.producers : depth0)) != null ? stack1.length : stack1),{\"name\":\"if\",\"hash\":{},\"fn\":container.program(14, data, 0),\"inverse\":container.noop,\"data\":data})) != null ? stack1 : \"\")\n + \"\\r\\n\"\n + ((stack1 = helpers[\"if\"].call(alias2,((stack1 = (depth0 != null ? depth0.directors : depth0)) != null ? stack1.length : stack1),{\"name\":\"if\",\"hash\":{},\"fn\":container.program(17, data, 0),\"inverse\":container.noop,\"data\":data})) != null ? stack1 : \"\")\n + \"\\r\\n\"\n + ((stack1 = helpers[\"if\"].call(alias2,((stack1 = (depth0 != null ? depth0.productionCompanies : depth0)) != null ? stack1.length : stack1),{\"name\":\"if\",\"hash\":{},\"fn\":container.program(19, data, 0),\"inverse\":container.noop,\"data\":data})) != null ? stack1 : \"\")\n + \"\\r\\n\"\n + ((stack1 = helpers[\"if\"].call(alias2,((stack1 = (depth0 != null ? depth0.distributors : depth0)) != null ? stack1.length : stack1),{\"name\":\"if\",\"hash\":{},\"fn\":container.program(21, data, 0),\"inverse\":container.noop,\"data\":data})) != null ? stack1 : \"\")\n + \"\\r\\n \"\n + ((stack1 = helpers[\"if\"].call(alias2,((stack1 = (depth0 != null ? depth0.channel : depth0)) != null ? stack1.name : stack1),{\"name\":\"if\",\"hash\":{},\"fn\":container.program(23, data, 0),\"inverse\":container.noop,\"data\":data})) != null ? stack1 : \"\")\n + \"\\r\\n\\r\\n\"\n + ((stack1 = helpers[\"if\"].call(alias2,((stack1 = (depth0 != null ? depth0.options : depth0)) != null ? stack1.broadcastDate : stack1),{\"name\":\"if\",\"hash\":{},\"fn\":container.program(26, data, 0),\"inverse\":container.noop,\"data\":data})) != null ? stack1 : \"\")\n + \"\\r\\n\"\n + ((stack1 = helpers[\"if\"].call(alias2,((stack1 = (depth0 != null ? depth0.options : depth0)) != null ? stack1.subtitles : stack1),{\"name\":\"if\",\"hash\":{},\"fn\":container.program(28, data, 0),\"inverse\":container.noop,\"data\":data})) != null ? stack1 : \"\")\n + \"</div>\";\n},\"useData\":true});//# sourceURL=[module]\n//# sourceMappingURL=data:application/json;charset=utf-8;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoiLi9zcmMvc2hhcmVkL2NvbXBvbmVudHMvdmlkZW8tYmFzaWMtaW5mby9WaWRlb0Jhc2ljSW5mby5oYnMuanMiLCJzb3VyY2VzIjpbImZpbGU6Ly9DOi9DbGlja1ZpZXcgUHJvamVjdHMvQGNsaWNrdmlldy9wYWNrYWdlcy9wcm9qZWN0cy9saWJyYXJ5LWVkaXRvci9zcmMvc2hhcmVkL2NvbXBvbmVudHMvdmlkZW8tYmFzaWMtaW5mby9WaWRlb0Jhc2ljSW5mby5oYnMiXSwic291cmNlc0NvbnRlbnQiOlsidmFyIEhhbmRsZWJhcnMgPSByZXF1aXJlKCdoYW5kbGViYXJzJyk7XG5tb2R1bGUuZXhwb3J0cyA9IChIYW5kbGViYXJzWydkZWZhdWx0J10gfHwgSGFuZGxlYmFycykudGVtcGxhdGUoe1wiMVwiOmZ1bmN0aW9uKGNvbnRhaW5lcixkZXB0aDAsaGVscGVycyxwYXJ0aWFscyxkYXRhKSB7XG4gICAgdmFyIHN0YWNrMSwgYWxpYXMxPWNvbnRhaW5lci5wcm9wZXJ0eUlzRW51bWVyYWJsZSwgYWxpYXMyPWRlcHRoMCAhPSBudWxsID8gZGVwdGgwIDogKGNvbnRh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0FBQ0E7QUFDQTtBQUNBO0FBQ0E7QUFDQTtBQUNBO0FBQ0E7QUFDQTtBQUNBO0FBQ0E7QUFDQTtBQUNBO0FBQ0E7QUFDQTtBQUNBO0FBQ0E7QUFDQTtBQUNBO0FBQ0E7QUFDQTtBQUNBO0FBQ0E7QUFDQTtBQUNBO0FBQ0E7QUFDQTtBQUNBO0FBQ0E7QUFDQTtBQUNBO0FBQ0E7QUFDQTtBQUNBO0FBQ0E7QUFDQTtBQUNBO0FBQ0E7QUFDQTtBQUNBO0FBQ0E7QUFDQTtBQUNBO0FBQ0E7QUFDQTtBQUNBO0FBQ0E7QUFDQTtBQUNBO0FBQ0E7QUFDQTtBQUNBO0FBQ0E7QUFDQTtBQUNBO0FBQ0E7QUFDQTtBQUNBO0FBQ0E7QUFDQTtBQUNBO0FBQ0E7QUFDQTtBQUNBO0FBQ0E7QUFDQTtBQUNBO0FBQ0E7QUFDQTtBQUNBO0FBQ0E7QUFDQTtBQUNBO0FBQ0E7QUFDQTtBQUNBO0FBQ0E7QUFDQTtBQUNBO0FBQ0E7QUFDQTtBQUNBO0FBQ0E7QUFDQTtBQUNBO0FBQ0E7QUFDQTtBQUNBO0FBQ0E7QUFDQTtBQUNBO0FBQ0E7QUFDQTtBQUNBO0FBQ0E7QUFDQTtBQUNBO0FBQ0E7QUFDQTtBQUNBO0FBQ0E7QUFDQTtBQUNBO0FBQ0E7QUFDQTtBQUNBO0FBQ0E7QUFDQTtBQUNBO0FBQ0E7QUFDQTtBQUNBO0FBQ0E7QUFDQTtBQUNBO0FBQ0E7QUFDQTtBQUNBO0FBQ0E7QUFDQSIsInNvdXJjZVJvb3QiOiIifQ==\n//# sourceURL=webpack-internal:///./src/shared/components/video-basic-info/VideoBasicInfo.hbs\n");
7
+
8
+ /***/ }),
9
+
10
+ /***/ "./src/shared/components/video-basic-info/VideoBasicInfoComponent.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__, \"VideoBasicInfoComponent\", function() { return VideoBasicInfoComponent; });\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 moment__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(\"moment\");\n/* harmony import */ var moment__WEBPACK_IMPORTED_MODULE_1___default = /*#__PURE__*/__webpack_require__.n(moment__WEBPACK_IMPORTED_MODULE_1__);\n/* harmony import */ var libs_common_core__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(\"../../libs/common/src/backbone/index.ts\");\n/* harmony import */ var libs_common_backbone_utils_UrlHelper__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(\"../../libs/common/src/backbone/utils/UrlHelper.ts\");\n/* harmony import */ var libs_shared_utils_SvgHelper__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(\"../../libs/shared/src/utils/SvgHelper.ts\");\n/* harmony import */ var libs_shared_legacy_behaviors_tooltip_TooltipBehavior__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__(\"../../libs/shared/src/legacy/behaviors/tooltip/TooltipBehavior.ts\");\n/* harmony import */ var shared_constants__WEBPACK_IMPORTED_MODULE_6__ = __webpack_require__(\"./src/shared/constants/index.ts\");\n/* harmony import */ var shared_enums__WEBPACK_IMPORTED_MODULE_7__ = __webpack_require__(\"./src/shared/enums/index.ts\");\n/* harmony import */ var shared_components_video_description_VideoDescriptionComponent__WEBPACK_IMPORTED_MODULE_8__ = __webpack_require__(\"./src/shared/components/video-description/VideoDescriptionComponent.ts\");\n/* harmony import */ var shared_components_video_item_video_item_metadata_video_item_series_VideoItemSeriesComponent__WEBPACK_IMPORTED_MODULE_9__ = __webpack_require__(\"./src/shared/components/video-item/video-item-metadata/video-item-series/VideoItemSeriesComponent.ts\");\n/* harmony import */ var apps_library_editor_utils__WEBPACK_IMPORTED_MODULE_10__ = __webpack_require__(\"./src/apps/library-editor/utils/index.ts\");\n/* harmony import */ var _video_basic_info_scss__WEBPACK_IMPORTED_MODULE_11__ = __webpack_require__(\"./src/shared/components/video-basic-info/video-basic-info.scss\");\n/* harmony import */ var _video_basic_info_scss__WEBPACK_IMPORTED_MODULE_11___default = /*#__PURE__*/__webpack_require__.n(_video_basic_info_scss__WEBPACK_IMPORTED_MODULE_11__);\n/* harmony import */ var _VideoBasicInfo_hbs__WEBPACK_IMPORTED_MODULE_12__ = __webpack_require__(\"./src/shared/components/video-basic-info/VideoBasicInfo.hbs\");\n/* harmony import */ var _VideoBasicInfo_hbs__WEBPACK_IMPORTED_MODULE_12___default = /*#__PURE__*/__webpack_require__.n(_VideoBasicInfo_hbs__WEBPACK_IMPORTED_MODULE_12__);\n/* harmony import */ var libs_common_backbone_services_LanguageService__WEBPACK_IMPORTED_MODULE_13__ = __webpack_require__(\"../../libs/common/src/backbone/services/LanguageService.tsx\");\nfunction _typeof(obj) { \"@babel/helpers - typeof\"; if (typeof Symbol === \"function\" && typeof Symbol.iterator === \"symbol\") { _typeof = function _typeof(obj) { return typeof obj; }; } else { _typeof = function _typeof(obj) { return obj && typeof Symbol === \"function\" && obj.constructor === Symbol && obj !== Symbol.prototype ? \"symbol\" : typeof obj; }; } return _typeof(obj); }\n\nfunction _classCallCheck(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError(\"Cannot call a class as a function\"); } }\n\nfunction _defineProperties(target, props) { for (var i = 0; i < props.length; i++) { var descriptor = props[i]; descriptor.enumerable = descriptor.enumerable || false; descriptor.configurable = true; if (\"value\" in descriptor) descriptor.writable = true; Object.defineProperty(target, descriptor.key, descriptor); } }\n\nfunction _createClass(Constructor, protoProps, staticProps) { if (protoProps) _defineProperties(Constructor.prototype, protoProps); if (staticProps) _defineProperties(Constructor, staticProps); return Constructor; }\n\nfunction _inherits(subClass, superClass) { if (typeof superClass !== \"function\" && superClass !== null) { throw new TypeError(\"Super expression must either be null or a function\"); } subClass.prototype = Object.create(superClass && superClass.prototype, { constructor: { value: subClass, writable: true, configurable: true } }); if (superClass) _setPrototypeOf(subClass, superClass); }\n\nfunction _setPrototypeOf(o, p) { _setPrototypeOf = Object.setPrototypeOf || function _setPrototypeOf(o, p) { o.__proto__ = p; return o; }; return _setPrototypeOf(o, p); }\n\nfunction _createSuper(Derived) { var hasNativeReflectConstruct = _isNativeReflectConstruct(); return function _createSuperInternal() { var Super = _getPrototypeOf(Derived), result; if (hasNativeReflectConstruct) { var NewTarget = _getPrototypeOf(this).constructor; result = Reflect.construct(Super, arguments, NewTarget); } else { result = Super.apply(this, arguments); } return _possibleConstructorReturn(this, result); }; }\n\nfunction _possibleConstructorReturn(self, call) { if (call && (_typeof(call) === \"object\" || typeof call === \"function\")) { return call; } return _assertThisInitialized(self); }\n\nfunction _assertThisInitialized(self) { if (self === void 0) { throw new ReferenceError(\"this hasn't been initialised - super() hasn't been called\"); } return self; }\n\nfunction _isNativeReflectConstruct() { if (typeof Reflect === \"undefined\" || !Reflect.construct) return false; if (Reflect.construct.sham) return false; if (typeof Proxy === \"function\") return true; try { Boolean.prototype.valueOf.call(Reflect.construct(Boolean, [], function () {})); return true; } catch (e) { return false; } }\n\nfunction _getPrototypeOf(o) { _getPrototypeOf = Object.setPrototypeOf ? Object.getPrototypeOf : function _getPrototypeOf(o) { return o.__proto__ || Object.getPrototypeOf(o); }; return _getPrototypeOf(o); }\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\nvar VideoBasicInfoComponent = /*#__PURE__*/function (_Core$Component) {\n _inherits(VideoBasicInfoComponent, _Core$Component);\n\n var _super = _createSuper(VideoBasicInfoComponent);\n\n function VideoBasicInfoComponent(options) {\n _classCallCheck(this, VideoBasicInfoComponent);\n\n return _super.call(this, options);\n }\n\n _createClass(VideoBasicInfoComponent, [{\n key: \"name\",\n get: function get() {\n return 'VideoBasicInfoComponent';\n }\n }, {\n key: \"template\",\n get: function get() {\n return _VideoBasicInfo_hbs__WEBPACK_IMPORTED_MODULE_12___default.a;\n }\n }, {\n key: \"lang\",\n get: function get() {\n return 'shared.videoBasicInfo';\n }\n }, {\n key: \"defaults\",\n get: function get() {\n return {\n truncateDescription: true\n };\n }\n }, {\n key: \"behaviors\",\n get: function get() {\n return [{\n behaviorClass: libs_shared_legacy_behaviors_tooltip_TooltipBehavior__WEBPACK_IMPORTED_MODULE_5__[\"TooltipBehavior\"],\n selector: '.tool-tip'\n }];\n }\n }, {\n key: \"regions\",\n value: function regions() {\n return {\n description: {\n el: '.description-region',\n replaceElement: true,\n partialLoading: shared_enums__WEBPACK_IMPORTED_MODULE_7__[\"PartialLoading\"].VideoBasicInfo\n },\n series: {\n el: '.series-region',\n replaceElement: true\n }\n };\n }\n }, {\n key: \"appLinks\",\n get: function get() {\n return {\n '.applink-publisher-video': {\n application: shared_constants__WEBPACK_IMPORTED_MODULE_6__[\"AppChannels\"].LIBRARY_EDITOR,\n action: shared_constants__WEBPACK_IMPORTED_MODULE_6__[\"Actions\"].LibraryEditor.SHOW_PUBLISHER_VIDEO,\n args: [this.model.get('id')]\n }\n };\n }\n }, {\n key: \"getBroadcastDate\",\n value: function getBroadcastDate() {\n if (!this.model.get('dateBroadcast')) return '';\n return moment__WEBPACK_IMPORTED_MODULE_1__(this.model.get('dateBroadcast')).format(shared_enums__WEBPACK_IMPORTED_MODULE_7__[\"TimeType\"].FULL_YEAR);\n }\n }, {\n key: \"getSeriesUrl\",\n value: function getSeriesUrl() {\n if (!this.options.externalSeriesLink || !this.model.series) return;\n return libs_common_backbone_utils_UrlHelper__WEBPACK_IMPORTED_MODULE_3__[\"UrlHelper\"].urlBuilder(libs_common_backbone_utils_UrlHelper__WEBPACK_IMPORTED_MODULE_3__[\"UrlHelper\"].safeUrlConcat(this.options.config.get('onlineUrl'), \"series/\".concat(this.model.series.id)), {\n loginPrompt: false\n });\n }\n }, {\n key: \"renderSeries\",\n value: function renderSeries() {\n if (!this.model.series || !this.model.series.get('name')) return;\n this.showChildView('series', new shared_components_video_item_video_item_metadata_video_item_series_VideoItemSeriesComponent__WEBPACK_IMPORTED_MODULE_9__[\"VideoItemSeriesComponent\"]({\n model: this.model,\n highlight: false,\n seriesUrl: this.getSeriesUrl(),\n styleUppercase: false\n }));\n }\n }, {\n key: \"renderDescription\",\n value: function renderDescription() {\n if (!this.model || !this.model.get('description')) return;\n var view = new shared_components_video_description_VideoDescriptionComponent__WEBPACK_IMPORTED_MODULE_8__[\"VideoDescriptionComponent\"]({\n model: this.model,\n linkify: true,\n size: shared_components_video_description_VideoDescriptionComponent__WEBPACK_IMPORTED_MODULE_8__[\"VideoDescriptionTruncationSize\"].Large,\n truncate: this.options.truncateDescription,\n allowExpand: true\n });\n this.showChildView('description', view);\n }\n }, {\n key: \"getSubtitleLanguage\",\n value: function getSubtitleLanguage() {\n var _this = this;\n\n if (!(this.model.subtitles && this.model.get('subtitles').length)) return '';\n return underscore__WEBPACK_IMPORTED_MODULE_0__[\"uniq\"](this.model.get('subtitles').map(function (subtitle) {\n var _a;\n\n var code = subtitle.get('language');\n var fullName = CVLanguages.getFullEnglishName(code);\n return ((_a = subtitle.get('metadata')) === null || _a === void 0 ? void 0 : _a.autoGenerated) ? libs_common_backbone_services_LanguageService__WEBPACK_IMPORTED_MODULE_13__[\"LanguageService\"].getPhrase(_this.lang, 'autoGenerated', {\n name: fullName\n }) : fullName;\n })).join(', ');\n }\n }, {\n key: \"getCitationHeading\",\n value: function getCitationHeading(type, single, plural) {\n if (!this.model.get(type)) return '';\n return this.model.get(type).length > 1 ? plural : single;\n }\n }, {\n key: \"getCitationHeadings\",\n value: function getCitationHeadings() {\n return {\n productionCompaniesText: this.getCitationHeading(shared_enums__WEBPACK_IMPORTED_MODULE_7__[\"CitationType\"].ProductionCompany, 'Production Company', 'Production Companies'),\n producersText: this.getCitationHeading(shared_enums__WEBPACK_IMPORTED_MODULE_7__[\"CitationType\"].Producer, 'Producer', 'Producers'),\n disributorsText: this.getCitationHeading(shared_enums__WEBPACK_IMPORTED_MODULE_7__[\"CitationType\"].Distributor, 'Distributor', 'Distributors'),\n directorsText: this.getCitationHeading(shared_enums__WEBPACK_IMPORTED_MODULE_7__[\"CitationType\"].Director, 'Director', 'Directors')\n };\n }\n }, {\n key: \"viewOptions\",\n value: function viewOptions() {\n return Object.assign({\n styles: _video_basic_info_scss__WEBPACK_IMPORTED_MODULE_11___default.a,\n ratingClass: this.model.rating && apps_library_editor_utils__WEBPACK_IMPORTED_MODULE_10__[\"VideoDetailsHelper\"].mapRatingToClass(this.model.rating.get('value')),\n broadcastDate: this.getBroadcastDate(),\n showHeading: this.options.showHeading,\n subtitles: this.getSubtitleLanguage(),\n publisherArchiveSvg: libs_shared_utils_SvgHelper__WEBPACK_IMPORTED_MODULE_4__[\"SvgHelper\"].getSvg(libs_shared_utils_SvgHelper__WEBPACK_IMPORTED_MODULE_4__[\"cvSvgLibrary\"].PublisherArchive),\n showPublisherVideoDetails: this.options.showPublisherVideoDetails\n }, this.getCitationHeadings());\n }\n }, {\n key: \"onRender\",\n value: function onRender() {\n this.renderSeries();\n this.renderDescription();\n }\n }]);\n\n return VideoBasicInfoComponent;\n}(libs_common_core__WEBPACK_IMPORTED_MODULE_2__[\"Core\"].Component);//# sourceURL=[module]\n//# sourceMappingURL=data:application/json;charset=utf-8;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoiLi9zcmMvc2hhcmVkL2NvbXBvbmVudHMvdmlkZW8tYmFzaWMtaW5mby9WaWRlb0Jhc2ljSW5mb0NvbXBvbmVudC50cy5qcyIsInNvdXJjZXMiOlsiZmlsZTovL0M6L0NsaWNrVmlldyBQcm9qZWN0cy9AY2xpY2t2aWV3L3BhY2thZ2VzL3Byb2plY3RzL2xpYnJhcnktZWRpdG9yL3NyYy9zaGFyZWQvY29tcG9uZW50cy92aWRlby1iYXNpYy1pbmZvL1ZpZGVvQmFzaW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UFDQTtBQUNBO0FBRkE7QUFOQTtBQVdBO0FBNUNBO0FBQUE7QUFBQTtBQStDQTtBQUNBO0FBQ0E7QUFDQTtBQUNBO0FBSEE7QUFEQTtBQU9BO0FBdERBO0FBQUE7QUFBQTtBQXlEQTtBQUVBO0FBQ0E7QUE1REE7QUFBQTtBQUFBO0FBK0RBO0FBRUE7QUFFQTtBQUFBO0FBRUE7QUFyRUE7QUFBQTtBQUFBO0FBd0VBO0FBR0E7QUFDQTtBQUNBO0FBQ0E7QUFDQTtBQUpBO0FBTUE7QUFqRkE7QUFBQTtBQUFBO0FBb0ZBO0FBRUE7QUFDQTtBQUNBO0FBQ0E7QUFDQTtBQUNBO0FBTEE7QUFPQTtBQUNBO0FBOUZBO0FBQUE7QUFBQTtBQWdHQTtBQUNBO0FBQUE7QUFFQTs7O0FBQ0E7QUFDQTtBQUVBO0FBQ0E7QUFBQTtBQUVBO0FBQ0E7QUEzR0E7QUFBQTtBQUFBO0FBK0dBO0FBR0E7QUFDQTtBQW5IQTtBQUFBO0FBQUE7QUFzSEE7QUFDQTtBQUNBO0FBQ0E7QUFDQTtBQUpBO0FBTUE7QUE1SEE7QUFBQTtBQUFBO0FBK0hBO0FBQ0E7QUFDQTtBQUNBO0FBQ0E7QUFDQTtBQUNBO0FBQ0E7QUFQQTtBQVVBO0FBeklBO0FBQUE7QUFBQTtBQTRJQTtBQUNBO0FBQ0E7QUE5SUE7QUFDQTtBQURBO0FBQUEiLCJzb3VyY2VSb290IjoiIn0=\n//# sourceURL=webpack-internal:///./src/shared/components/video-basic-info/VideoBasicInfoComponent.ts\n");
15
+
16
+ /***/ }),
17
+
18
+ /***/ "./src/shared/components/video-basic-info/video-basic-info.scss":
19
+ /***/ (function(module, exports, __webpack_require__) {
20
+
21
+ eval("// extracted by mini-css-extract-plugin\nmodule.exports = {\"columnNames\":\"cv--columnNames--1N_VT\",\"seriesContainer\":\"cv--seriesContainer--4pk2s\",\"icon\":\"cv--icon--3SoBV\",\"citationValues\":\"cv--citationValues--1nYZg\"};//# sourceURL=[module]\n//# sourceMappingURL=data:application/json;charset=utf-8;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoiLi9zcmMvc2hhcmVkL2NvbXBvbmVudHMvdmlkZW8tYmFzaWMtaW5mby92aWRlby1iYXNpYy1pbmZvLnNjc3MuanMiLCJzb3VyY2VzIjpbImZpbGU6Ly9DOi9DbGlja1ZpZXcgUHJvamVjdHMvQGNsaWNrdmlldy9wYWNrYWdlcy9wcm9qZWN0cy9saWJyYXJ5LWVkaXRvci9zcmMvc2hhcmVkL2NvbXBvbmVudHMvdmlkZW8tYmFzaWMtaW5mby92aWRlby1iYXNpYy1pbmZvLnNjc3MiXSwic291cmNlc0NvbnRlbnQiOlsiLy8gZXh0cmFjdGVkIGJ5IG1pbmktY3NzLWV4dHJhY3QtcGx1Z2luXG5tb2R1bGUuZXhwb3J0cyA9IHtcImNvbHVtbk5hbWVzXCI6XCJjdi0tY29sdW1uTmFtZXMtLTFOX1ZUXCIsXCJzZXJpZXNDb250YWluZXJcIjpcImN2LS1zZXJpZXNDb250YWluZXItLTRwazJzXCIsXCJpY29uXCI6XCJjdi0taWNvbi0tM1NvQlZcIixcImNpdGF0aW9uVmFsdWVzXCI6XCJjdi0tY2l0YXRpb25WYWx1ZXMtLTFuWVpnXCJ9OyJdLCJtYXBwaW5ncyI6IkFBQUE7QUFDQSIsInNvdXJjZVJvb3QiOiIifQ==\n//# sourceURL=webpack-internal:///./src/shared/components/video-basic-info/video-basic-info.scss\n");
22
+
23
+ /***/ })
24
+
25
+ }]);
@@ -0,0 +1 @@
1
+ (window.webpackJsonp_clickview_library_editor=window.webpackJsonp_clickview_library_editor||[]).push([[27],{1038:function(e,t,n){"use strict";var o=n(2),i=n(20),r=n(6),a=n(0),s=n(290),l=n(1107),c=n.n(l),u=n(1108),h=n.n(u);function f(e){return(f="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}function d(e,t){for(var n=0;n<t.length;n++){var o=t[n];o.enumerable=o.enumerable||!1,o.configurable=!0,"value"in o&&(o.writable=!0),Object.defineProperty(e,o.key,o)}}function p(e,t){return(p=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e})(e,t)}function v(e){var t=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(e){return!1}}();return function(){var n,o=y(e);if(t){var i=y(this).constructor;n=Reflect.construct(o,arguments,i)}else n=o.apply(this,arguments);return m(this,n)}}function m(e,t){return!t||"object"!==f(t)&&"function"!=typeof t?function(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}(e):t}function y(e){return(y=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)})(e)}var b=function(e){!function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),t&&p(e,t)}(l,e);var t,n,o,i=v(l);function l(e){return function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,l),i.call(this,e)}return t=l,(n=[{key:"name",get:function(){return"TagItemComponent"}},{key:"tagName",get:function(){return this.options.behavior===s.b.Link?"a":"span"}},{key:"className",get:function(){var e="".concat(this.options.orientation===s.c.Vertical?"":" d-inline-flex"),t="".concat(this.isSaving()?" saving":""),n="".concat(this.options.behavior===s.b.Disabled?" ".concat(h.a.disabled):""),o="".concat(this.options.behavior===s.b.Filter?" cursor-pointer":"");return"badge-pill tag py-1 px-2 my-1 mr-1".concat(o).concat(e).concat(t).concat(n)}},{key:"template",get:function(){return c.a}},{key:"elements",get:function(){return{close:".close"}}},{key:"appLinks",get:function(){return this.options.behavior!==s.b.Link?{}:{"[this]":{application:a.b.SEARCH,action:a.a.Search.HOME,params:{tag:this.model.get("name")}}}}},{key:"defaults",get:function(){return{behavior:s.b.Link,orientation:s.c.Flex}}},{key:"events",value:function(){return this.options.removeEvent?{"click @ui.close":"onRemoveTag"}:{click:"onClickTag"}}},{key:"initialize",value:function(){this.options.behavior===s.b.Edit&&this.listenTo(this.model,"change",this.render)}},{key:"isSaving",value:function(){if(this.options.behavior!==s.b.Filter){var e=this.model.pick("id","name","remove"),t=e.id,n=e.name;return!!e.remove||!t||!n}}},{key:"onRemoveTag",value:function(e){if(e.stopPropagation(),!this.isSaving())return this.model.set("remove",!0),r.Radio.channel(this.options.channelName).trigger(this.options.removeEvent,this.model),!1}},{key:"onClickTag",value:function(){this.options.behavior!==s.b.Filter||this.options.removeEvent||r.Radio.channel(this.options.channelName).trigger(this.options.clickEvent,this.model)}},{key:"viewOptions",value:function(){return{removable:this.options.removeEvent}}},{key:"onRender",value:function(){this.resetClassName()}}])&&d(t.prototype,n),o&&d(t,o),l}(o.a.Component);function g(e){return(g="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}function w(e,t){for(var n=0;n<t.length;n++){var o=t[n];o.enumerable=o.enumerable||!1,o.configurable=!0,"value"in o&&(o.writable=!0),Object.defineProperty(e,o.key,o)}}function k(e,t){return(k=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e})(e,t)}function S(e){var t=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(e){return!1}}();return function(){var n,o=T(e);if(t){var i=T(this).constructor;n=Reflect.construct(o,arguments,i)}else n=o.apply(this,arguments);return E(this,n)}}function E(e,t){return!t||"object"!==g(t)&&"function"!=typeof t?function(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}(e):t}function T(e){return(T=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)})(e)}n.d(t,"a",(function(){return C}));var C=function(e){!function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),t&&k(e,t)}(l,e);var t,n,r,a=S(l);function l(e){return function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,l),a.call(this,e)}return t=l,(n=[{key:"initialize",value:function(){this.options.behavior!==s.b.Edit||this.options.removeEvent||o.a.ErrorHelper.throw(new i.a("removeEvent is required to edit tags."))}},{key:"name",get:function(){return"TagComponentCollection"}},{key:"defaults",get:function(){return{orientation:s.c.Flex}}},{key:"className",get:function(){var e="".concat(this.options.orientation===s.c.Vertical?" d-flex align-items-start flex-column":"");return"tags".concat(e)}},{key:"childViewOptions",get:function(){return{channelName:this.options.channelName,behavior:this.options.behavior,orientation:this.options.orientation,removeEvent:this.options.removeEvent,clickEvent:this.options.clickEvent}}},{key:"childView",get:function(){return b}}])&&w(t.prototype,n),r&&w(t,r),l}(o.a.ComponentCollection)},1063:function(e,t,n){"use strict";n.d(t,"a",(function(){return v}));var o=n(1),i=n(2),r=n(1064),a=n.n(r),s=n(1065),l=n.n(s);function c(e){return(c="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 u(e,t){for(var n=0;n<t.length;n++){var o=t[n];o.enumerable=o.enumerable||!1,o.configurable=!0,"value"in o&&(o.writable=!0),Object.defineProperty(e,o.key,o)}}function h(e,t){return(h=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e})(e,t)}function f(e){var t=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(e){return!1}}();return function(){var n,o=p(e);if(t){var i=p(this).constructor;n=Reflect.construct(o,arguments,i)}else n=o.apply(this,arguments);return d(this,n)}}function d(e,t){return!t||"object"!==c(t)&&"function"!=typeof t?function(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}(e):t}function p(e){return(p=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)})(e)}var v=function(e){!function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),t&&h(e,t)}(s,e);var t,n,i,r=f(s);function s(e){return function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,s),r.call(this,e)}return t=s,(n=[{key:"name",get:function(){return"TabsView"}},{key:"className",get:function(){var e="bg-white py-2 border-bottom";return this.options.className&&(e+=" ".concat(this.options.className)),e}},{key:"template",get:function(){return l.a}},{key:"appLinks",get:function(){var e={};return this.options.tabs.forEach((function(t){return e[t.link.selector]=t.link.appLink})),e}},{key:"viewOptions",value:function(){var e=this.options.tabs.map((function(e){return Object.assign(Object.assign({},e),{link:e.link.selector.replace(".","")})}));return{styles:a.a,tabs:e}}},{key:"setActiveTab",value:function(){var e=this,t=!1;if(this.options.tabs.forEach((function(n){n.active=!1,n.link.selector===e.options.activeTab&&(n.active=!0,t=!0)})),!t){var n=o.first(this.options.tabs);n&&(n.active=!0)}}},{key:"onBeforeRender",value:function(){this.setActiveTab()}}])&&u(t.prototype,n),i&&u(t,i),s}(i.a.Component)},1064:function(e,t,n){e.exports={link:"_5idZs",active:"_3Ty4M"}},1065:function(e,t,n){var o=n(10);e.exports=(o.default||o).template({1:function(e,t,n,o,i,r,a){var s;e.propertyIsEnumerable;return null!=(s=n.unless.call(null!=t?t:e.nullContext||{},null!=t?t.hide:t,{name:"unless",hash:{},fn:e.program(2,i,0,r,a),inverse:e.noop,data:i}))?s:""},2:function(e,t,n,o,i,r,a){e.propertyIsEnumerable;var s,l=e.lambda,c=e.escapeExpression;return' <a class="'+c(l(null!=(s=null!=(s=null!=a[1]?a[1].options:a[1])?s.styles:s)?s.link:s,t))+" p-2 "+c(l(null!=t?t.link:t,t))+" "+(null!=(s=n.if.call(null!=t?t:e.nullContext||{},null!=t?t.active:t,{name:"if",hash:{},fn:e.program(3,i,0,r,a),inverse:e.noop,data:i}))?s:"")+'">'+c(l(null!=t?t.name:t,t))+"</a>\r\n"},3:function(e,t,n,o,i,r,a){var s;e.propertyIsEnumerable;return e.escapeExpression(e.lambda(null!=(s=null!=(s=null!=a[1]?a[1].options:a[1])?s.styles:s)?s.active:s,t))+" border-bottom border-primary text-primary"},compiler:[8,">= 4.3.0"],main:function(e,t,n,o,i,r,a){var s;e.propertyIsEnumerable;return null!=(s=n.each.call(null!=t?t:e.nullContext||{},null!=(s=null!=t?t.options:t)?s.tabs:s,{name:"each",hash:{},fn:e.program(1,i,0,r,a),inverse:e.noop,data:i}))?s:""},useData:!0,useDepths:!0})},1085:function(e,t,n){"use strict";n.d(t,"a",(function(){return b}));var o=n(6),i=n(2),r=n(16),a=n(1086),s=n.n(a),l=n(1087),c=n.n(l),u=n(0),h=n(1063);function f(e){return(f="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}function d(e,t){for(var n=0;n<t.length;n++){var o=t[n];o.enumerable=o.enumerable||!1,o.configurable=!0,"value"in o&&(o.writable=!0),Object.defineProperty(e,o.key,o)}}function p(e,t){return(p=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e})(e,t)}function v(e){var t=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(e){return!1}}();return function(){var n,o=y(e);if(t){var i=y(this).constructor;n=Reflect.construct(o,arguments,i)}else n=o.apply(this,arguments);return m(this,n)}}function m(e,t){return!t||"object"!==f(t)&&"function"!=typeof t?function(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}(e):t}function y(e){return(y=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)})(e)}var b=function(e){!function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),t&&p(e,t)}(l,e);var t,n,i,a=v(l);function l(e){return function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,l),a.call(this,e)}return t=l,(n=[{key:"name",get:function(){return"EditVideoTabsComponent"}},{key:"className",get:function(){return"bg-white"}},{key:"regions",value:function(){return{tabs:{el:".tabs-region",replaceElement:!0}}}},{key:"template",get:function(){return c.a}},{key:"appLinks",get:function(){var e,t,n,o=this.options.goBackTab.link;return e={},t=o.selector,n=o.appLink,t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}},{key:"viewOptions",value:function(){var e=Object.assign(Object.assign({},this.options.goBackTab),{link:this.options.goBackTab.link.selector.replace(".","")});return{styles:s.a,backTab:e,backArrow:r.a.getSvg(r.b.ArrowLeft)}}},{key:"onSave",value:function(){o.Radio.channel(u.b.LIBRARY_EDITOR).trigger(u.a.LibraryEditor.SAVE_VIDEO)}},{key:"onRender",value:function(){this.showChildView("tabs",new h.a({tabs:this.options.tabs,activeTab:this.options.activeTab}))}}])&&d(t.prototype,n),i&&d(t,i),l}(i.a.Component)},1086:function(e,t,n){e.exports={svgContainer:"_27gR6"}},1087:function(e,t,n){var o=n(10);e.exports=(o.default||o).template({compiler:[8,">= 4.3.0"],main:function(e,t,n,o,i){e.propertyIsEnumerable;var r,a=e.lambda,s=e.escapeExpression;return'<div class="row">\r\n <h4>\r\n <a class="d-inline-flex align-items-center '+s(a(null!=(r=null!=(r=null!=t?t.options:t)?r.styles:r)?r.link:r,t))+" "+s(a(null!=(r=null!=(r=null!=t?t.options:t)?r.backTab:r)?r.link:r,t))+'">\r\n <span class="'+s(a(null!=(r=null!=(r=null!=t?t.options:t)?r.styles:r)?r.svgContainer:r,t))+' d-inline-block mx-2">'+(null!=(r=a(null!=(r=null!=t?t.options:t)?r.backArrow:r,t))?r:"")+"</span>\r\n "+s(a(null!=(r=null!=(r=null!=t?t.options:t)?r.backTab:r)?r.name:r,t))+'\r\n </a>\r\n </h4>\r\n</div>\r\n<div class="tabs-region pl-2"></div>'},useData:!0})},1107:function(e,t,n){var o=n(10);e.exports=(o.default||o).template({1:function(e,t,n,o,i){return'<span class="close cursor-pointer" aria-hidden="true">&times;</span>\r\n'},compiler:[8,">= 4.3.0"],main:function(e,t,n,o,i){e.propertyIsEnumerable;var r,a,s=null!=t?t:e.nullContext||{},l=e.hooks.helperMissing,c=e.escapeExpression;return'<span class="clamp-1" title="'+c("function"==typeof(a=null!=(a=n.name||(null!=t?t.name:t))?a:l)?a.call(s,{name:"name",hash:{},data:i}):a)+'">'+c("function"==typeof(a=null!=(a=n.name||(null!=t?t.name:t))?a:l)?a.call(s,{name:"name",hash:{},data:i}):a)+"</span>\r\n"+(null!=(r=n.if.call(s,null!=(r=null!=t?t.options:t)?r.removable:r,{name:"if",hash:{},fn:e.program(1,i,0),inverse:e.noop,data:i}))?r:"")},useData:!0})},1108:function(e,t,n){e.exports={disabled:"_3Vziu"}},1245:function(e,t,n){var o=n(10);e.exports=(o.default||o).template({compiler:[8,">= 4.3.0"],main:function(e,t,n,o,i){var r;e.propertyIsEnumerable;return'<div class="form-group">\r\n <label for="edit-description">'+e.escapeExpression("function"==typeof(r=null!=(r=n.name||(null!=t?t.name:t))?r:e.hooks.helperMissing)?r.call(null!=t?t:e.nullContext||{},{name:"name",hash:{},data:i}):r)+'</label>\r\n <div class="text-area-region"></div>\r\n <div class="form-feedback"></div>\r\n</div>'},useData:!0})},1246:function(e,t,n){var o=n(10);e.exports=(o.default||o).template({compiler:[8,">= 4.3.0"],main:function(e,t,n,o,i){return'<h5 class="mb-0">Extra Information</h5>\r\n<div class="text-muted mb-3">This information is only visible to admins and will not be searchable</div>\r\n<div class="fields-region"></div>'},useData:!0})},1247:function(e,t,n){var o=n(10);e.exports=(o.default||o).template({1:function(e,t,n,o,i){var r;e.propertyIsEnumerable;return"<h5>"+e.escapeExpression(e.lambda(null!=(r=null!=t?t.options:t)?r.headerText:r,t))+"</h5>\r\n"},3:function(e,t,n,o,i){var r;e.propertyIsEnumerable;return"<p>"+e.escapeExpression(e.lambda(null!=(r=null!=t?t.options:t)?r.emptyStateText:r,t))+"</p>\r\n"},5:function(e,t,n,o,i){return'<div class="tag-selector-region"></div>\r\n'},compiler:[8,">= 4.3.0"],main:function(e,t,n,o,i){e.propertyIsEnumerable;var r,a=null!=t?t:e.nullContext||{};return(null!=(r=n.if.call(a,null!=(r=null!=t?t.options:t)?r.headerText:r,{name:"if",hash:{},fn:e.program(1,i,0),inverse:e.noop,data:i}))?r:"")+(null!=(r=n.if.call(a,null!=(r=null!=t?t.options:t)?r.emptyStateText:r,{name:"if",hash:{},fn:e.program(3,i,0),inverse:e.noop,data:i}))?r:"")+(null!=(r=n.if.call(a,null!=(r=null!=t?t.options:t)?r.editable:r,{name:"if",hash:{},fn:e.program(5,i,0),inverse:e.noop,data:i}))?r:"")+'<div class="tag-list-region"></div>'},useData:!0})},1248:function(e,t,n){var o=n(10);e.exports=(o.default||o).template({1:function(e,t,n,o,i){e.propertyIsEnumerable;var r,a=e.escapeExpression;return'<span class="text-muted mx-2 undo '+a(e.lambda(null!=(r=null!=(r=null!=t?t.options:t)?r.styles:r)?r.undo:r,t))+'">'+a((n.lang||t&&t.lang||e.hooks.helperMissing).call(null!=t?t:e.nullContext||{},"undo",{name:"lang",hash:{},data:i}))+"</span>\r\n"},compiler:[8,">= 4.3.0"],main:function(e,t,n,o,i){var r;e.propertyIsEnumerable;return(null!=(r=n.if.call(null!=t?t:e.nullContext||{},null!=(r=null!=t?t.options:t)?r.allowUndo:r,{name:"if",hash:{},fn:e.program(1,i,0),inverse:e.noop,data:i}))?r:"")+'<div class="save-region"></div>'},useData:!0})},1249:function(e,t,n){e.exports={saveButton:"_2FsA6",undo:"v6msX"}},1250:function(e,t,n){var o=n(10);e.exports=(o.default||o).template({1:function(e,t,n,o,i){e.propertyIsEnumerable;return"<h5>"+e.escapeExpression((n.lang||t&&t.lang||e.hooks.helperMissing).call(null!=t?t:e.nullContext||{},"label",{name:"lang",hash:{},data:i}))+"</h5>\r\n"},3:function(e,t,n,o,i){return"my-2"},5:function(e,t,n,o,i){e.propertyIsEnumerable;var r,a=null!=t?t:e.nullContext||{},s=e.hooks.helperMissing,l=e.escapeExpression;return' <div class="text-muted mt-3 mb-1"><em>'+l((n.lang||t&&t.lang||s).call(a,"recommendedSize",{name:"lang",hash:{height:null!=(r=null!=(r=null!=t?t.options:t)?r.dimensions:r)?r.height:r,width:null!=(r=null!=(r=null!=t?t.options:t)?r.dimensions:r)?r.width:r},data:i}))+'</em></div>\r\n <button class="upload-thumbnail btn btn-light mb-3 w-100">'+l((n.lang||t&&t.lang||s).call(a,"upload",{name:"lang",hash:{},data:i}))+"</button>\r\n"},compiler:[8,">= 4.3.0"],main:function(e,t,n,o,i){e.propertyIsEnumerable;var r,a=null!=t?t:e.nullContext||{};return(null!=(r=n.if.call(a,null!=(r=null!=t?t.options:t)?r.editable:r,{name:"if",hash:{},fn:e.program(1,i,0),inverse:e.noop,data:i}))?r:"")+'<div class="thumbnail-region"></div>\r\n<div class="'+(null!=(r=n.unless.call(a,null!=(r=null!=t?t.options:t)?r.editable:r,{name:"unless",hash:{},fn:e.program(3,i,0),inverse:e.noop,data:i}))?r:"")+'">\r\n'+(null!=(r=n.if.call(a,null!=(r=null!=t?t.options:t)?r.editable:r,{name:"if",hash:{},fn:e.program(5,i,0),inverse:e.noop,data:i}))?r:"")+"</div>"},useData:!0})},1251:function(e,t,n){var o=n(10);e.exports=(o.default||o).template({1:function(e,t,n,o,i){return"mb-4"},3:function(e,t,n,o,i){var r;e.propertyIsEnumerable;return' <p class="mb-2 py-1 px-2 alert alert-info '+e.escapeExpression(e.lambda(null!=(r=null!=(r=null!=t?t.options:t)?r.styles:r)?r.suggestEdit:r,t))+'">\r\n'+(null!=(r=n.if.call(null!=t?t:e.nullContext||{},null!=(r=null!=t?t.options:t)?r.isExchange:r,{name:"if",hash:{},fn:e.program(4,i,0),inverse:e.program(6,i,0),data:i}))?r:"")+" </p>\r\n"},4:function(e,t,n,o,i){var r;e.propertyIsEnumerable;return" "+(null!=(r=(n.lang||t&&t.lang||e.hooks.helperMissing).call(null!=t?t:e.nullContext||{},"suggestEditExchange",{name:"lang",hash:{classNames:null!=(r=null!=t?t.options:t)?r.suggestEditClasses:r},data:i}))?r:"")+"\r\n"},6:function(e,t,n,o,i){var r;e.propertyIsEnumerable;return" "+(null!=(r=(n.lang||t&&t.lang||e.hooks.helperMissing).call(null!=t?t:e.nullContext||{},"suggestEdit",{name:"lang",hash:{classNames:null!=(r=null!=t?t.options:t)?r.suggestEditClasses:r},data:i}))?r:"")+"\r\n"},compiler:[8,">= 4.3.0"],main:function(e,t,n,o,i){e.propertyIsEnumerable;var r,a=null!=t?t:e.nullContext||{};return'<div class="row">\r\n <div class="left-pane col-4">\r\n <div class="thumbnail-region"></div>\r\n <div class="cv-tags-region '+(null!=(r=n.unless.call(a,null!=(r=null!=t?t.options:t)?r.editable:r,{name:"unless",hash:{},fn:e.program(1,i,0),inverse:e.noop,data:i}))?r:"")+'"></div>\r\n <div class="customer-tags-region"></div>\r\n </div>\r\n <div class="right-pane col-8">\r\n'+(null!=(r=n.unless.call(a,null!=(r=null!=t?t.options:t)?r.editable:r,{name:"unless",hash:{},fn:e.program(3,i,0),inverse:e.noop,data:i}))?r:"")+' <div class="top-save-region"></div>\r\n <div class="basic-info-region mb-4"></div> \r\n <div class="additional-details-region mb-4"></div> \r\n <div class="production-info-region mb-4"></div> \r\n <div class="fields-region mb-4"></div>\r\n <div class="bottom-save-region"></div>\r\n </div>\r\n</div>'},useData:!0})},1252:function(e,t,n){e.exports={suggestEdit:"_1X4l5"}},1253:function(e,t,n){var o=n(10);e.exports=(o.default||o).template({compiler:[8,">= 4.3.0"],main:function(e,t,n,o,i){return'<div class="tab-region"></div>\r\n<div class="edit-content-region"></div>\r\n<div class="dialog-region"></div>'},useData:!0})},1437:function(e,t,n){"use strict";n.r(t);var o=n(1),i=n(6),r=n(2),a=n(20),s=n(30),l=n(3),c=n(14),u=n(5),h=n(113),f=n(0),d=n(304),p=n(134),v=n(12),m=n(98),y=n(224),b=n(302),g=n(9),w=n(4),k=n(42),S=n(187),E=n(136),T=n(1013),C=n(1168),O=n(1173),R=n(1171),x=n(1170),N=n(1245),_=n.n(N);function P(e){return(P="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}function M(e,t){for(var n=0;n<t.length;n++){var o=t[n];o.enumerable=o.enumerable||!1,o.configurable=!0,"value"in o&&(o.writable=!0),Object.defineProperty(e,o.key,o)}}function D(e,t){return(D=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e})(e,t)}function j(e){var t=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(e){return!1}}();return function(){var n,o=I(e);if(t){var i=I(this).constructor;n=Reflect.construct(o,arguments,i)}else n=o.apply(this,arguments);return V(this,n)}}function V(e,t){return!t||"object"!==P(t)&&"function"!=typeof t?function(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}(e):t}function I(e){return(I=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)})(e)}var L=function(e){!function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),t&&D(e,t)}(a,e);var t,n,o,r=j(a);function a(e){return function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,a),r.call(this,e)}return t=a,(n=[{key:"initialize",value:function(){var e=this;this.listenTo(this.model,"change",(function(){return e.options.viewModel.validate()}))}},{key:"template",get:function(){return _.a}},{key:"name",get:function(){return"ExtraInfoItemComponent"}},{key:"regions",value:function(){return{textArea:{el:".text-area-region",replaceElement:!0}}}},{key:"bindings",get:function(){return{"[name=value]":{observe:"value",setOptions:{validate:!0}}}}},{key:"onRender",value:function(){this.showChildView("textArea",new x.a({name:"value",class:"form-control",placeholder:this.model.get("placeholder"),id:"admin-notes"})),this.stickit(),i.Validation.bind(this)}},{key:"onDestroy",value:function(){this.unstickit(),i.Validation.unbind(this)}}])&&M(t.prototype,n),o&&M(t,o),a}(r.a.Component),B=n(1246),A=n.n(B);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 F(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function J(e,t){for(var n=0;n<t.length;n++){var o=t[n];o.enumerable=o.enumerable||!1,o.configurable=!0,"value"in o&&(o.writable=!0),Object.defineProperty(e,o.key,o)}}function z(e,t,n){return t&&J(e.prototype,t),n&&J(e,n),e}function H(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),t&&G(e,t)}function G(e,t){return(G=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e})(e,t)}function Y(e){var t=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(e){return!1}}();return function(){var n,o=q(e);if(t){var i=q(this).constructor;n=Reflect.construct(o,arguments,i)}else n=o.apply(this,arguments);return W(this,n)}}function W(e,t){return!t||"object"!==U(t)&&"function"!=typeof t?function(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}(e):t}function q(e){return(q=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)})(e)}var X=function(e){H(n,e);var t=Y(n);function n(e){return F(this,n),t.call(this,e)}return z(n,[{key:"name",get:function(){return"ExtraInfoComponentCollection"}},{key:"childView",get:function(){return L}},{key:"childViewOptions",get:function(){return{viewModel:this.options.viewModel}}}]),n}(r.a.ComponentCollection),K=function(e){H(n,e);var t=Y(n);function n(e){return F(this,n),t.call(this,e)}return z(n,[{key:"name",get:function(){return"ExtraInfoComponent"}},{key:"template",get:function(){return A.a}},{key:"className",get:function(){return"border-top pt-3"}},{key:"regions",value:function(){return{fields:{el:".fields-region",replaceElement:!0}}}},{key:"onRender",value:function(){this.showChildView("fields",new X({collection:this.model.fields,viewModel:this.model}))}}]),n}(r.a.Component),Z=n(251),Q=n(93),$=n(298),ee=n(1073),te=n(1038),ne=n(290),oe=n(1247),ie=n.n(oe);function re(e){return(re="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 ae(e,t){for(var n=0;n<t.length;n++){var o=t[n];o.enumerable=o.enumerable||!1,o.configurable=!0,"value"in o&&(o.writable=!0),Object.defineProperty(e,o.key,o)}}function se(e,t){return(se=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e})(e,t)}function le(e){var t=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(e){return!1}}();return function(){var n,o=ue(e);if(t){var i=ue(this).constructor;n=Reflect.construct(o,arguments,i)}else n=o.apply(this,arguments);return ce(this,n)}}function ce(e,t){return!t||"object"!==re(t)&&"function"!=typeof t?function(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}(e):t}function ue(e){return(ue=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)})(e)}var he=function(e){!function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),t&&se(e,t)}(s,e);var t,n,o,i=le(s);function s(e){return function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,s),i.call(this,e)}return t=s,(n=[{key:"name",get:function(){return"TagsComponent"}},{key:"template",get:function(){return ie.a}},{key:"lang",get:function(){return"libraryEditor.tags"}},{key:"defaults",get:function(){return{headerText:l.a.getPhrase(this.lang,"heading"),orientation:ne.c.Flex}}},{key:"regions",value:function(){return{tagList:{el:".tag-list-region",replaceElement:!0},tagSelector:{el:".tag-selector-region",replaceElement:!0}}}},{key:"initialize",value:function(){this.options.behavior!==ne.b.Edit||this.options.parentId||r.a.ErrorHelper.throw(new a.a("parentId is required to edit tags."))}},{key:"getTypeaheadConfigs",value:function(){var e=$.a.getTypeaheadConfig(),t=$.a.getBloodhoundConfig(),n={newType:f.v.TagsRaw},o={newType:f.v.TagsRaw,footerTemplate:Q.a.getConfirmSelectionTemplate()};return[{name:f.v.TagsRaw,typeaheadConfig:e,bloodhoundConfig:t,options:{hideEmptyResults:!0}},{name:"add-new",typeaheadConfig:e,bloodhoundConfig:t,options:n},{name:"empty-suggestion",typeaheadConfig:e,bloodhoundConfig:t,options:o}]}},{key:"viewOptions",value:function(){var e;return this.showEmptyStateText()&&(e=this.options.emptyStateText),{headerText:this.options.headerText,editable:this.options.behavior===ne.b.Edit,emptyStateText:e}}},{key:"showEmptyStateText",value:function(){return this.options.behavior!==ne.b.Edit&&!this.collection.length&&!!this.options.emptyStateText}},{key:"renderTagSelector",value:function(){this.options.behavior===ne.b.Edit&&this.showChildView("tagSelector",new ee.a({model:this.model,parentChannelName:this.options.channelName,inputId:"tag-select",selectEvent:"add:tag",typeaheadConfigs:this.getTypeaheadConfigs(),placeholderText:l.a.getPhrase(this.lang,"placeholder"),callbacks:{onRender:Q.a.selectFirstResult,onBlur:Q.a.clearInputOnBlur},typeaheadOptions:{hint:!1},actionOptions:{clearOnSelect:!0},autofocus:this.options.autofocus}))}},{key:"renderTagList",value:function(){this.showEmptyStateText()||this.showChildView("tagList",new te.a({collection:this.collection,channelName:this.options.channelName,behavior:this.options.behavior,orientation:this.options.orientation,removeEvent:this.options.removeEvent}))}},{key:"onRender",value:function(){this.renderTagSelector(),this.renderTagList()}}])&&ae(t.prototype,n),o&&ae(t,o),s}(r.a.Component),fe=n(250),de=n(1248),pe=n.n(de),ve=n(1249),me=n.n(ve);function ye(e){return(ye="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}function be(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function ge(e,t){for(var n=0;n<t.length;n++){var o=t[n];o.enumerable=o.enumerable||!1,o.configurable=!0,"value"in o&&(o.writable=!0),Object.defineProperty(e,o.key,o)}}function we(e,t){return(we=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e})(e,t)}function ke(e){var t=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(e){return!1}}();return function(){var n,o=Ee(e);if(t){var i=Ee(this).constructor;n=Reflect.construct(o,arguments,i)}else n=o.apply(this,arguments);return Se(this,n)}}function Se(e,t){return!t||"object"!==ye(t)&&"function"!=typeof t?function(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}(e):t}function Ee(e){return(Ee=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)})(e)}var Te=function(e){!function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),t&&we(e,t)}(s,e);var t,n,o,a=ke(s);function s(e){return function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,s),a.call(this,e)}return t=s,(n=[{key:"name",get:function(){return"SaveComponent"}},{key:"template",get:function(){return pe.a}},{key:"className",get:function(){return"save-component ".concat(this.options.extraClasses)}},{key:"lang",get:function(){return"libraryEditor.save"}},{key:"getParentChannel",value:function(){return i.Radio.channel(this.options.channelName)}},{key:"getSaveChannelName",value:function(){return"".concat(this.name,":").concat(this.cid)}},{key:"regions",value:function(){return{save:{el:".save-region",replaceElement:!0}}}},{key:"events",value:function(){return{"click .undo":"onUndo"}}},{key:"initialize",value:function(){var e;this.model||(this.model=new r.a.Model((be(e={},fe.c.ShowSpinner,this.options.showSpinner),be(e,fe.c.Disabled,this.options.isDisabled),e)));var t=this.options.channelName;this.listenTo(t,S.LibraryEditorActions.DisableSave,this.onDisableSave),this.listenTo(t,S.LibraryEditorActions.EnableSave,this.onEnableSave),this.listenTo(t,S.LibraryEditorActions.CancelSave,this.onCancelSave);var n=i.Radio.channel(this.getSaveChannelName());this.listenTo(n,S.LibraryEditorActions.Save,this.onSave),this.options.allowUndo&&(this.options.hasChanges&&this.model.set("showUndo",!0),this.listenTo(this.model,"change:showUndo",this.render))}},{key:"onCancelSave",value:function(){this.model.set(fe.c.ShowSpinner,!1)}},{key:"onEnableSave",value:function(){this.model.set(fe.c.Disabled,!1),this.options.allowUndo&&this.model.set("showUndo",!0)}},{key:"onDisableSave",value:function(){this.model.get(fe.c.ShowSpinner)&&this.model.set(fe.c.ShowSpinner,!1,{silent:!0}),this.model.set(fe.c.Disabled,!0),this.options.allowUndo&&this.model.set("showUndo",!1)}},{key:"onUndo",value:function(e){e.stopPropagation(),this.getParentChannel().trigger(S.LibraryEditorActions.Undo)}},{key:"onSave",value:function(){this.model.set(fe.c.ShowSpinner,!0),this.getParentChannel().trigger(S.LibraryEditorActions.Save)}},{key:"viewOptions",value:function(){return{allowUndo:this.options.allowUndo&&this.model.get("showUndo"),styles:me.a}}},{key:"renderSaveButton",value:function(){var e=new fe.a({saveEvent:S.LibraryEditorActions.Save,channelName:this.getSaveChannelName(),model:this.model,buttonText:l.a.getPhrase(this.lang,"save"),extraButtonClass:"btn-primary ".concat(me.a.saveButton),spinnerOptions:{size:v.s.Small,type:v.t.Light,extraClasses:"mx-auto"}});this.showChildView("save",e)}},{key:"onRender",value:function(){this.renderSaveButton()}}])&&ge(t.prototype,n),o&&ge(t,o),s}(r.a.Component),Ce=n(190),Oe=n(192),Re=n(289),xe=n(1250),Ne=n.n(xe);function _e(e){return(_e="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 Pe(e,t){for(var n=0;n<t.length;n++){var o=t[n];o.enumerable=o.enumerable||!1,o.configurable=!0,"value"in o&&(o.writable=!0),Object.defineProperty(e,o.key,o)}}function Me(e,t){return(Me=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e})(e,t)}function De(e){var t=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(e){return!1}}();return function(){var n,o=Ve(e);if(t){var i=Ve(this).constructor;n=Reflect.construct(o,arguments,i)}else n=o.apply(this,arguments);return je(this,n)}}function je(e,t){return!t||"object"!==_e(t)&&"function"!=typeof t?function(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}(e):t}function Ve(e){return(Ve=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)})(e)}var Ie=function(e){!function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),t&&Me(e,t)}(r,e);var t,n,o,i=De(r);function r(e){return function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,r),i.call(this,e)}return t=r,(n=[{key:"initialize",value:function(){this.viewModel=s.a.get("image:storage")}},{key:"name",get:function(){return"EditThumbnailComponent"}},{key:"lang",get:function(){return"libraryEditor.editThumbnail"}},{key:"template",get:function(){return Ne.a}},{key:"behaviors",get:function(){var e=this;return[{behaviorClass:Re.b,channelName:this.options.channelName,buttonSelector:".upload-thumbnail",imageType:g.f.Thumbnails,appLink:{application:f.b.LIBRARY_EDITOR,action:f.a.LibraryEditor.UPLOAD_THUMBNAIL,args:[this.options.model.id]},saveImage:function(t){return e.viewModel.set({dataUrl:t})}}]}},{key:"defaults",get:function(){return{editable:!0}}},{key:"regions",value:function(){return{thumbnail:{el:".thumbnail-region",replaceElement:!0}}}},{key:"viewOptions",value:function(){return{editable:this.options.editable,dimensions:f.m[g.f.Thumbnails]}}},{key:"onRender",value:function(){this.showChildView("thumbnail",new Ce.a({model:this.model,thumbnailOptions:{size:Oe.a.Medium}}))}}])&&Pe(t.prototype,n),o&&Pe(t,o),r}(r.a.Component),Le=n(1251),Be=n.n(Le),Ae=n(1252),Ue=n.n(Ae);function Fe(e){return(Fe="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,t){for(var n=0;n<t.length;n++){var o=t[n];o.enumerable=o.enumerable||!1,o.configurable=!0,"value"in o&&(o.writable=!0),Object.defineProperty(e,o.key,o)}}function ze(e,t){return(ze=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e})(e,t)}function He(e){var t=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(e){return!1}}();return function(){var n,o=Ye(e);if(t){var i=Ye(this).constructor;n=Reflect.construct(o,arguments,i)}else n=o.apply(this,arguments);return Ge(this,n)}}function Ge(e,t){return!t||"object"!==Fe(t)&&"function"!=typeof t?function(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}(e):t}function Ye(e){return(Ye=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)})(e)}var We=function(e){!function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),t&&ze(e,t)}(r,e);var t,n,o,i=He(r);function r(e){return function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,r),i.call(this,e)}return t=r,(n=[{key:"initialize",value:function(){var e=this;this.listenTo(this.options.channelName,"update:tags",(function(){return e.renderCustomerTags(!0)}))}},{key:"name",get:function(){return"EditVideoDetailsComponent"}},{key:"className",get:function(){return"edit-video-detail py-3"}},{key:"lang",get:function(){return"libraryEditor.editVideoDetails"}},{key:"template",get:function(){return Be.a}},{key:"appLinks",get:function(){return{".suggest-edit":{application:f.b.LIBRARY_EDITOR,action:f.a.LibraryEditor.SUGGEST_AN_EDIT,args:[this.model.id]}}}},{key:"regions",value:function(){return{topSave:{el:".top-save-region",replaceElement:!0},bottomSave:{el:".bottom-save-region",replaceElement:!0},thumbnail:{el:".thumbnail-region",replaceElement:!0},basicInfo:{el:".basic-info-region",replaceElement:!0},additionalInfo:{el:".additional-details-region",replaceElement:!0},productionInfo:{el:".production-info-region",replaceElement:!0},fields:{el:".fields-region",replaceElement:!0},clickViewTags:{el:".cv-tags-region",replaceElement:!1},customerTags:{el:".customer-tags-region",replaceElement:!0}}}},{key:"renderSave",value:function(){this.options.editable&&this.showChildView("topSave",new Te({channelName:this.options.channelName,allowUndo:!0,isDisabled:this.options.isSaveDisabled,hasChanges:this.options.hasChanges,extraClasses:"float-right"})),this.showChildView("bottomSave",new Te({channelName:this.options.channelName,allowUndo:!0,isDisabled:this.options.isSaveDisabled,hasChanges:this.options.hasChanges,extraClasses:"float-right"}))}},{key:"renderBasicInfo",value:function(){this.showChildView("basicInfo",new C.a({model:this.model,ratings:this.options.ratings,channelName:this.options.channelName,editable:this.options.editable,showingSaveButton:this.options.editable,showPublisherVideoDetails:this.options.showPublisherVideoDetails}))}},{key:"renderThumbnail",value:function(){this.showChildView("thumbnail",new Ie({model:this.model,channelName:this.options.channelName,editable:this.options.editable}))}},{key:"renderAdditionalInfo",value:function(){this.showChildView("additionalInfo",new R.a({model:this.model,channelName:this.options.channelName,libraries:this.options.libraries,hostedLibraries:this.options.hostedLibraries,editable:this.options.editable}))}},{key:"renderProductionInfo",value:function(){this.showChildView("productionInfo",new O.a({model:this.model,channelName:this.options.channelName,editable:this.options.editable}))}},{key:"renderFields",value:function(){this.showChildView("fields",new K({model:this.model,channelName:this.options.channelName}))}},{key:"renderClickViewTags",value:function(){if(!this.options.editable){var e=v.j.filterObjectsByOwnerType(this.model.tags,Z.a.ClickView,this.options.currentUser.get("customerId"));this.showChildView("clickViewTags",new he({parentId:this.model.get("id"),collection:e,orientation:ne.c.Flex,behavior:ne.b.Disabled,channelName:this.options.channelName,headerText:l.a.getPhrase(this.lang,"clickviewTags"),emptyStateText:l.a.getPhrase(this.lang,"clickviewTagsEmpty")}))}}},{key:"renderCustomerTags",value:function(e){var t=v.j.filterObjectsByOwnerType(this.model.tags,Z.a.Customer,this.options.currentUser.get("customerId"));this.showChildView("customerTags",new he({parentId:this.model.get("id"),collection:t,channelName:this.options.channelName,behavior:ne.b.Edit,headerText:l.a.getPhrase(this.lang,"customerTags"),removeEvent:"remove:tag",autofocus:!!e}))}},{key:"renderTags",value:function(){this.renderClickViewTags(),this.renderCustomerTags()}},{key:"viewOptions",value:function(){return{styles:Ue.a,editable:this.options.editable,suggestEditClasses:"info-link text-underline suggest-edit",isExchange:v.y.isExchangeVideo(this.model)}}},{key:"onRender",value:function(){this.renderSave(),this.renderBasicInfo(),this.renderThumbnail(),this.renderAdditionalInfo(),this.renderProductionInfo(),this.renderFields(),this.renderTags()}}])&&Je(t.prototype,n),o&&Je(t,o),r}(r.a.Component),qe=n(1085),Xe=n(299),Ke=n(300),Ze=n(1253),Qe=n.n(Ze);function $e(e){return($e="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 et(e,t){for(var n=0;n<t.length;n++){var o=t[n];o.enumerable=o.enumerable||!1,o.configurable=!0,"value"in o&&(o.writable=!0),Object.defineProperty(e,o.key,o)}}function tt(e,t){return(tt=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e})(e,t)}function nt(e){var t=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(e){return!1}}();return function(){var n,o=it(e);if(t){var i=it(this).constructor;n=Reflect.construct(o,arguments,i)}else n=o.apply(this,arguments);return ot(this,n)}}function ot(e,t){return!t||"object"!==$e(t)&&"function"!=typeof t?function(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}(e):t}function it(e){return(it=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)})(e)}n.d(t,"EditVideoView",(function(){return rt}));var rt=function(e){!function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),t&&tt(e,t)}(R,e);var t,n,C,O=nt(R);function R(e){var t;return function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,R),(t=O.call(this,e)).editable=!1,t}return t=R,(n=[{key:"name",get:function(){return"EditVideoView"}},{key:"title",get:function(){return this.model&&this.model.get("name")}},{key:"lang",get:function(){return"libraryEditor.editVideo"}},{key:"className",get:function(){return"bg-white p-3"}},{key:"channelName",get:function(){return"".concat(this.name,":").concat(this.cid)}},{key:"viewModelName",get:function(){return"".concat(this.name,":").concat(this.options.videoId)}},{key:"template",get:function(){return Qe.a}},{key:"regions",value:function(){return{tabs:{el:".tab-region",replaceElement:!0,partialLoading:g.h.EditVideoTabs},content:{el:".edit-content-region",replaceElement:!0,partialLoading:g.h.EditVideoDetails}}}},{key:"initialize",value:function(){this.navLock=u.a.getInstance(f.x.NavLock,this),this.initDataListeners(),v.v.initBackButton(),this.initServices()}},{key:"initServices",value:function(){this.videoDataService=u.a.getInstance(f.g.Video,this),this.tagDataService=u.a.getInstance(f.g.Tags,this),this.libraryDataService=u.a.getInstance(f.g.Library,this),this.seriesDataService=u.a.getInstance(f.g.Series,this),this.ratingsDataService=u.a.getInstance(f.g.Ratings,this),this.migrationVideoDataService=u.a.getInstance(f.g.MigrationVideo,this),this.fieldsDataService=u.a.getInstance(f.g.Fields,this),this.alertService=u.a.getInstance(f.x.Alerts,this),this.personDataService=u.a.getInstance(f.g.Person,this),this.companyDataService=u.a.getInstance(f.g.Company,this)}},{key:"initDataListeners",value:function(){this.listenTo(c.a.SHELL,r.a.EventNames.NAV_UNLOCKED_BY_USER,this.onNavigateAway),this.listenTo(f.e.VIDEO,"videos:".concat(this.options.videoId,":sync"),this.render),this.listenTo(f.e.VIDEO,"videos:".concat(this.options.videoId,":error"),this.onError),this.listenTo(f.e.RATINGS,"".concat(f.f.RATINGS,":sync"),this.render),this.listenTo(f.e.VIDEO,"".concat(f.f.UPDATE_VIDEO_THUMBNAIL,":").concat(this.options.videoId,":sync"),this.onThumbnailUpdated),this.listenTo(f.e.LIBRARY,"hosted:libraries:sync",this.render),this.listenTo(this.channelName,"select:rating",o.partial(this.onTypeaheadSelection,o,"rating")),this.listenTo(this.channelName,"select:channel",o.partial(this.onTypeaheadSelection,o,"channel")),this.listenTo(this.channelName,"select:series",this.onSelectSeries),this.listenTo(this.channelName,"add:season",this.onSelectSeason),this.listenTo(this.channelName,"add:distributors",this.onSelectDistributor),this.listenTo(this.channelName,"add:productionCompanies",this.onSelectProductionCompany),this.listenTo(this.channelName,"add:directors",this.onSelectDirector),this.listenTo(this.channelName,"add:producers",this.onSelectProducer),this.listenTo(this.channelName,"add:tag",this.onAddTag),this.listenTo(this.channelName,"remove:distributors",this.onRemoveDistributor),this.listenTo(this.channelName,"remove:productionCompanies",this.onRemoveProductionCompany),this.listenTo(this.channelName,"remove:directors",this.onRemoveDirector),this.listenTo(this.channelName,"remove:producers",this.onRemoveProducer),this.listenTo(this.channelName,"remove:tag",this.onRemoveTag),this.listenTo(this.channelName,S.LibraryEditorActions.Save,this.onSave),this.listenTo(this.channelName,S.LibraryEditorActions.Undo,this.onUndo),this.listenTo(this.channelName,S.LibraryEditorActions.DetectInput,this.onTypeaheadInput),this.listenTo(this.channelName,"image:load",this.onBeforeThumbnailUpload)}},{key:"onError",value:function(e){switch(e.type){case h.a.NotFound:r.a.ErrorHelper.throw(new Ke.a);break;case h.a.Forbidden:r.a.ErrorHelper.throw(new Xe.a)}}},{key:"onTypeaheadSelection",value:function(e,t,n){if(n){var i=this.viewModel.get(t),r=i.filter({name:e.name});o.each(r,(function(e){return i.remove(e)})),i.add(e)}else this.viewModel.set(t,e);this.onModelChange(e,{manualUpdate:!0})}},{key:"onTypeaheadInput",value:function(e,t,n){e.get("name")||(n&&n.isCollection?this.viewModel.get(t).remove(e.get("id"),{silent:!0}):this.viewModel.get(t).clear({silent:!0}),this.onModelChange(null,{manualUpdate:!0}),"series"===t&&(this.validateSeries(),i.Radio.channel(this.channelName).trigger("clear:series")))}},{key:"onSelectSeries",value:function(e){var t=this;e.id?this.seriesDataService.getSeries(e.id,(function(e){t.viewModel.unset("season"),t.viewModel.set("episodeNumber",null),t.onTypeaheadSelection(e.toJSON(),"series")})):e.name&&this.seriesDataService.createSeries(e.name,(function(e){t.viewModel.unset("season"),t.viewModel.set("episodeNumber",null),t.onTypeaheadSelection({id:e.id},"series")}))}},{key:"onSelectSeason",value:function(e){var t=this;if(o.isNull(e))return this.viewModel.get("season").clear({silent:!0}),this.viewModel.set("episodeNumber",null),v.c.deselectAll(this.viewModel.get("series.seasons")),void this.onModelChange(null,{manualUpdate:!0});if(e.id)return this.viewModel.set("season",e),v.c.setSelected(e.id,this.viewModel.get("series.seasons")),void this.onModelChange(e,{manualUpdate:!0});if(e.number){var n=this.viewModel.get("series.id");this.seriesDataService.createSeason(e,n,(function(e){t.viewModel.set("season",e.toJSON()),!t.viewModel.get("series.seasons")&&t.viewModel.get("series").set("seasons",new d.a),t.viewModel.get("series.seasons").add(e.toJSON()),v.c.setSelected(e.id,t.viewModel.get("series.seasons")),t.onModelChange(e.toJSON(),{manualUpdate:!0}),t.render()}))}}},{key:"onSelectDistributor",value:function(e){var t=this;e.id?this.onTypeaheadSelection(e,"distributors",!0):e.name&&this.companyDataService.createCompany(e.name,(function(e){t.onTypeaheadSelection(e.toJSON(),"distributors",!0)}))}},{key:"onSelectProductionCompany",value:function(e){var t=this;e.id?this.onTypeaheadSelection(e,"productionCompanies",!0):e.name&&this.companyDataService.createCompany(e.name,(function(e){t.onTypeaheadSelection(e.toJSON(),"productionCompanies",!0)}))}},{key:"onSelectDirector",value:function(e){var t=this;e.id?this.onTypeaheadSelection(e,"directors",!0):e.name&&this.personDataService.createPerson(e.name,(function(e){t.onTypeaheadSelection(e.toJSON(),"directors",!0)}))}},{key:"onSelectProducer",value:function(e){var t=this;e.id?this.onTypeaheadSelection(e,"producers",!0):e.name&&this.personDataService.createPerson(e.name,(function(e){t.onTypeaheadSelection(e.toJSON(),"producers",!0)}))}},{key:"onRemoveDistributor",value:function(e){this.removeFromCollection(e,"distributors")}},{key:"onRemoveProductionCompany",value:function(e){this.removeFromCollection(e,"productionCompanies")}},{key:"onRemoveDirector",value:function(e){this.removeFromCollection(e,"directors")}},{key:"onRemoveProducer",value:function(e){this.removeFromCollection(e,"producers")}},{key:"removeFromCollection",value:function(e,t){e&&e.id&&t&&(this.viewModel.get(t).remove(e.id),this.onModelChange(null,{manualUpdate:!0}))}},{key:"onAddTag",value:function(e){var t=this;if(e&&e.name){var n=e.name.trim().toLowerCase();if(n&&!v.c.findModelByName(n,this.viewModel.tags)){var o=new y.a({name:n});this.viewModel.tags.add(o),this.tagDataService.createTag(n,this.model.get("id"),(function(e){o.set(e.toJSON()),i.Radio.channel(t.channelName).trigger("update:tags")}))}}}},{key:"onRemoveTag",value:function(e){var t=this;e instanceof y.a&&e.id&&this.tagDataService.dissociateTag(e.id,this.model.get("id"),(function(){t.viewModel.tags.remove(e),i.Radio.channel(t.channelName).trigger("update:tags"),t.logDissocAction(t.model.get("id"),e,w.EntityType.Tag)}))}},{key:"saveFields",value:function(e,t){var n=this,i=0;e.updatedVideo=o.extend({},e.updatedVideo||{});var r=function(){++i===e.dataChanges.fields.length&&t(e)};o.each(e.dataChanges.fields,(function(e){if(e.id&&!e.value)return n.viewModel.fields.remove(n.viewModel.fields.findWhere({id:e.id})),void n.fieldsDataService.deleteField(e.id,r);!e.id||e.id>0?n.fieldsDataService.updateField(e,r):n.fieldsDataService.addField(n.options.videoId,e,(function(t){n.viewModel.fields.findWhere({id:e.id}).set("id",t.id),r()}))}))}},{key:"bulkDissoc",value:function(e,t){this.videoDataService.bulkDissoc(this.model.id,e.pendingDissocs,(function(){t(e)}))}},{key:"saveVideo",value:function(e,t){var n=this,i=o.omit(e.dataChanges,"fields");if(o.isEmpty(i))t(e);else{var r=o.omit(e.dataChanges,"fields");this.videoDataService.updateVideo(this.model.get("id"),this.folder.get("id"),r,(function(i){(e.dataChanges.series&&e.dataChanges.series.id||e.dataChanges.episodeNumber||e.dataChanges.season)&&n.videoDataService.clearVideoCache(),e.updatedVideo=o.extend({},e.updatedVideo||{},i),t(e)}))}}},{key:"afterSave",value:function(e){if(this.viewModel){e.updatedVideo&&this.updateState(e.updatedVideo),this.unlockNav(),this.updateSaveButton(S.LibraryEditorActions.DisableSave),this.logEditAction(e.dataChanges,w.WorkflowPhase.Save);var t=b.a.updatedVideoAlert(this.viewModel.get("name"));this.alertService.success(t||"Video was successfully updated")()}}},{key:"onSave",value:function(){if(this.viewModel.validate(),!1===this.viewModel.isValid())return this.updateSaveButton(S.LibraryEditorActions.CancelSave),!1;this.validateSeries();var e=T.a.getChanges(this.model,this.viewModel),t=T.a.getRemovedObjectIds(this.model,this.viewModel);if(!e&&!o.keys(t).length)return this.updateSaveButton(S.LibraryEditorActions.CancelSave),!1;var n=new r.a.Middleware;return e&&e.fields&&n.use(o.bind(this.saveFields,this)),t&&o.keys(t).length&&n.use(o.bind(this.bulkDissoc,this)),this.editable&&n.use(o.bind(this.saveVideo,this)),n.use(o.bind(this.afterSave,this)),n.go({dataChanges:e,pendingDissocs:t},null),!1}},{key:"onUndo",value:function(){var e=this;new v.d({title:l.a.getPhrase(this.lang,"undoTitle"),text:l.a.getPhrase(this.lang,"undoBody",{videoName:this.model.get("name")}),buttons:[{text:l.a.getPhrase(this.lang,"undo"),className:"btn btn-danger",success:!0},{text:l.a.getPhrase(this.lang,"cancel"),className:"btn btn-secondary",close:!0}]}).render().done((function(){e.logEditAction({},w.WorkflowPhase.Discard),e.revertState({undo:!0}),e.render()}))}},{key:"updateState",value:function(e){this.stopListening(this.viewModel),T.a.updateModelState(this.model,this.viewModel,e),s.a.clear(this.viewModelName),this.getViewModel(),this.renderContent()}},{key:"onNavigateAway",value:function(){this.revertState()}},{key:"revertState",value:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t=e.undo;this.stopListening(this.viewModel),s.a.clear(this.viewModelName),delete this.viewModel,this.unlockNav(),t&&this.getViewModel()}},{key:"lockNav",value:function(){this.navLock.lock({title:l.a.getPhrase(this.lang,"navLockHeading"),text:l.a.getPhrase(this.lang,"navLockBody")})}},{key:"unlockNav",value:function(){this.navLock.unlock()}},{key:"onBeforeThumbnailUpload",value:function(){this.navLock.isLocked()&&(this.navLock.unlock(),s.a.get("upload:thumbnail:options").set("lockNav",!0))}},{key:"onModelChange",value:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};if(t.stickitChange||t.manualUpdate)if(this.viewModel.validate(),!1!==this.viewModel.isValid()){var n=T.a.getChanges(this.model,this.viewModel)||o.keys(T.a.getRemovedObjectIds(this.model,this.viewModel)).length;if(!n)return this.unlockNav(),void this.updateSaveButton(S.LibraryEditorActions.DisableSave);this.lockNav(),this.updateSaveButton(S.LibraryEditorActions.EnableSave)}else this.updateSaveButton(S.LibraryEditorActions.DisableSave)}},{key:"updateSaveButton",value:function(e){var t=i.Radio.channel(this.channelName),n=S.LibraryEditorActions.EnableSave,o=S.LibraryEditorActions.DisableSave,s=S.LibraryEditorActions.CancelSave;switch(e){case n:return void t.trigger(n);case o:return void t.trigger(o);case s:return void t.trigger(s)}r.a.ErrorHelper.throw(new a.a("Save action type is not valid."))}},{key:"onThumbnailUpdated",value:function(){var e=this;this.videoDataService.clearCacheAndGetVideo(this.options.videoId,(function(t){e.model=t,e.viewModel.set("thumbnail",e.model.thumbnail.toJSON())}))}},{key:"logEditAction",value:function(e,t){var n=Object.assign({id:this.model.get("id")},e);k.a.logUserAction(n,{actionType:w.UserAction.Edit,entity:w.EntityType.Video,location:w.LocationContext.EditVideoDetails,workflowPhase:t})}},{key:"logDissocAction",value:function(e,t,n){var o=Object.assign({videoId:e},t.pick("id","name"));k.a.logUserAction(o,{actionType:w.UserAction.Dissociate,entity:n,location:w.LocationContext.EditVideoDetails})}},{key:"onValidation",value:function(e){this.viewModel.set("disabled",!e)}},{key:"getViewModel",value:function(){this.model.fields&&this.model.fields.length||this.model.set("fields",Object(T.d)()),this.viewModel=s.a.get(this.viewModelName,this.model.toJSON(),{ctor:m.a}),this.editable&&(this.viewModel.addValidation(T.k),this.viewModel.addValidation(T.e)),this.viewModel.addValidation(T.b),this.listenTo(this.viewModel,"validated",this.onValidation),this.listenTo(this.viewModel,"change",this.onModelChange),this.listenTo(this.viewModel,"change:dateBroadcast",o.partial(this.onModelChange,o,{manualUpdate:!0})),this.viewModel.fields&&(this.viewModel.fields&&this.viewModel.fields.each((function(e){return e.addValidation(T.c)})),this.listenTo(this.viewModel.fields,"change",this.onModelChange))}},{key:"validateSeries",value:function(){this.viewModel.get("series.id")||(this.viewModel.unset("season"),this.viewModel.set("episodeNumber",null))}},{key:"fetchData",value:function(){var e=this;this.model=this.videoDataService.getVideo(this.options.videoId),this.ratings=this.ratingsDataService.getAllRatings(),this.hostedLibraries=this.libraryDataService.getHostedLibraries(),this.migrationVideoDataService.getCustomerVideoByMasterId(this.options.videoId,(function(t){var n=!!e.publisherVideo;e.publisherVideo=t,n&&e.isRendered()&&e.renderContent()})),this.model&&(this.editable=v.j.canEditVideo(this.model),this.folder=this.model.categories.first(),this.ratings&&this.hostedLibraries&&(this.viewModel instanceof m.a||this.getViewModel()))}},{key:"requiredResources",get:function(){return{libraries:E.b.libraries,currentUser:p.b.currentUser}}},{key:"onBeforeRender",value:function(){return this.fetchData(),!!this.model&&!!this.ratings&&!!this.viewModel}},{key:"renderContent",value:function(){var e=T.a.getChanges(this.model,this.viewModel)||o.keys(T.a.getRemovedObjectIds(this.model,this.viewModel)).length;this.showChildView("content",new We({model:this.viewModel,ratings:this.ratings,libraries:this.libraries,hostedLibraries:this.hostedLibraries,channelName:this.channelName,isSaveDisabled:!e,hasChanges:!!e,editable:this.editable,currentUser:this.currentUser,showPublisherVideoDetails:!!this.publisherVideo}))}},{key:"renderTabs",value:function(){this.showChildView("tabs",new qe.a({tabs:v.v.getEditVideoTabs(this.options.videoId,{hideChaptersTab:!this.editable}),activeTab:".edit-video-applink",goBackTab:v.v.getBackButton(this.options.videoId)}))}},{key:"onRender",value:function(){this.renderTabs(),this.renderContent()}}])&&et(t.prototype,n),C&&et(t,C),R}(r.a.View)}}]);