@clickview/library-editor 1.1.52 → 1.1.53-dev.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (185) hide show
  1. package/dist/bundles.json +3 -3
  2. package/dist/css/15-library-editor-6fd06eea2a.chunk.css +4 -0
  3. package/dist/css/{26-library-editor-f0118cbca0.chunk.css → 32-library-editor-9dfe56513f.chunk.css} +0 -4
  4. package/dist/css/{31-library-editor-4d763bac2b.chunk.css → 41-library-editor-234f39ca94.chunk.css} +0 -4
  5. package/dist/css/43-library-editor-ca20e9d127.chunk.css +2 -0
  6. package/dist/css/{library-editor-app-e3fef1181d.css → library-editor-app-24fbc5672c.css} +1 -1
  7. package/dist/en.json +1 -1
  8. package/dist/scripts/0-bba0145c77.chunk.js +1 -0
  9. package/dist/scripts/1-5577f6a3f7.chunk.js +1 -0
  10. package/dist/scripts/10-395e6f0d3f.chunk.js +1 -0
  11. package/dist/scripts/12-9ed28b9350.chunk.js +1 -0
  12. package/dist/scripts/13-50189e51fb.chunk.js +1 -0
  13. package/dist/scripts/14-748901431d.chunk.js +1 -0
  14. package/dist/scripts/15-d04c2395cb.chunk.js +1 -0
  15. package/dist/scripts/16-720a6228d9.chunk.js +1 -0
  16. package/dist/scripts/17-d885d92c20.chunk.js +1 -0
  17. package/dist/scripts/18-5977623df8.chunk.js +1 -0
  18. package/dist/scripts/19-5bdab3ec81.chunk.js +1 -0
  19. package/dist/scripts/{2-0c5fba8b60.chunk.js → 2-b4df362f89.chunk.js} +1 -1
  20. package/dist/scripts/22-ae40bff289.chunk.js +1 -0
  21. package/dist/scripts/23-ec60db0a2f.chunk.js +1 -0
  22. package/dist/scripts/24-c9ead3a5f0.chunk.js +1 -0
  23. package/dist/scripts/25-c316ef959e.chunk.js +1 -0
  24. package/dist/scripts/26-a45dd4bd85.chunk.js +1 -0
  25. package/dist/scripts/27-f60580ec4c.chunk.js +1 -0
  26. package/dist/scripts/28-7f81db6a72.chunk.js +1 -0
  27. package/dist/scripts/29-1719c127c2.chunk.js +1 -0
  28. package/dist/scripts/3-93f8c8b29c.chunk.js +1 -0
  29. package/dist/scripts/30-78f9ae88f8.chunk.js +1 -0
  30. package/dist/scripts/31-3eb784eddf.chunk.js +1 -0
  31. package/dist/scripts/32-e8241989c0.chunk.js +1 -0
  32. package/dist/scripts/33-1070fd472f.chunk.js +1 -0
  33. package/dist/scripts/34-f87b33c7e9.chunk.js +1 -0
  34. package/dist/scripts/35-e9d6a8b62f.chunk.js +1 -0
  35. package/dist/scripts/36-723d306d4b.chunk.js +1 -0
  36. package/dist/scripts/37-79e61046ac.chunk.js +1 -0
  37. package/dist/scripts/38-212e31c46a.chunk.js +1 -0
  38. package/dist/scripts/39-f1a08c3c13.chunk.js +1 -0
  39. package/dist/scripts/4-25b1d9b931.chunk.js +1 -0
  40. package/dist/scripts/40-a23493aa65.chunk.js +1 -0
  41. package/dist/scripts/41-e85021f013.chunk.js +1 -0
  42. package/dist/scripts/42-3df7979970.chunk.js +1 -0
  43. package/dist/scripts/43-60ab02c464.chunk.js +1 -0
  44. package/dist/scripts/44-d5bb0ed64a.chunk.js +1 -0
  45. package/dist/scripts/45-f1b7a85e1f.chunk.js +1 -0
  46. package/dist/scripts/46-a9758e6ae3.chunk.js +1 -0
  47. package/dist/scripts/47-9438225608.chunk.js +1 -0
  48. package/dist/scripts/48-c2442aeabc.chunk.js +1 -0
  49. package/dist/scripts/49-aeef82658f.chunk.js +1 -0
  50. package/dist/scripts/5-8cc15ac513.chunk.js +1 -0
  51. package/dist/scripts/50-10cb81acb2.chunk.js +1 -0
  52. package/dist/scripts/51-27b1c14df0.chunk.js +1 -0
  53. package/dist/scripts/52-95c57ffde9.chunk.js +1 -0
  54. package/dist/scripts/53-5be97c8405.chunk.js +1 -0
  55. package/dist/scripts/54-c375c80f2f.chunk.js +1 -0
  56. package/dist/scripts/55-f1f6c64710.chunk.js +1 -0
  57. package/dist/scripts/56-e81e20968e.chunk.js +1 -0
  58. package/dist/scripts/57-0abfa42a18.chunk.js +1 -0
  59. package/dist/scripts/58-596eaa36e1.chunk.js +1 -0
  60. package/dist/scripts/59-4a6dc51102.chunk.js +1 -0
  61. package/dist/scripts/6-3cfc29cd25.chunk.js +1 -0
  62. package/dist/scripts/{58-c0d48a915f.chunk.js → 60-ec99d4c0ec.chunk.js} +1 -1
  63. package/dist/scripts/61-94aba0214c.chunk.js +1 -0
  64. package/dist/scripts/62-078a1c7a79.chunk.js +1 -0
  65. package/dist/scripts/63-4d411f9dbc.chunk.js +1 -0
  66. package/dist/scripts/64-7cb7526007.chunk.js +1 -0
  67. package/dist/scripts/65-115a7df284.chunk.js +1 -0
  68. package/dist/scripts/66-f293f5aaf9.chunk.js +1 -0
  69. package/dist/scripts/67-4779bb083c.chunk.js +1 -0
  70. package/dist/scripts/68-ff8fdd5b00.chunk.js +1 -0
  71. package/dist/scripts/69-ae2fee4118.chunk.js +1 -0
  72. package/dist/scripts/7-0b561c5906.chunk.js +1 -0
  73. package/dist/scripts/70-1301052ad4.chunk.js +1 -0
  74. package/dist/scripts/71-37410a7494.chunk.js +1 -0
  75. package/dist/scripts/{70-d2472d2122.chunk.js → 72-04f3d7e7da.chunk.js} +1 -1
  76. package/dist/scripts/73-c2d2ad43c2.chunk.js +1 -0
  77. package/dist/scripts/74-f030ed93a4.chunk.js +1 -0
  78. package/dist/scripts/8-df0693826e.chunk.js +1 -0
  79. package/dist/scripts/9-d87db5e300.chunk.js +1 -0
  80. package/dist/scripts/bundle-7de62968ab.min.js +10 -0
  81. package/dist/scripts/polyfills-383fa05a74.min.js +1 -0
  82. package/package.json +100 -100
  83. package/dist/css/32-library-editor-d962911bc5.chunk.css +0 -6
  84. package/dist/scripts/0-5f0c2cd8fe.chunk.js +0 -1
  85. package/dist/scripts/1-7a35a849f0.chunk.js +0 -1
  86. package/dist/scripts/10-d534563266.chunk.js +0 -1
  87. package/dist/scripts/12-f0c771aad1.chunk.js +0 -1
  88. package/dist/scripts/13-d70fedb2e0.chunk.js +0 -1
  89. package/dist/scripts/14-fafea6f32c.chunk.js +0 -1
  90. package/dist/scripts/15-7aa65c016d.chunk.js +0 -1
  91. package/dist/scripts/16-56c022c016.chunk.js +0 -1
  92. package/dist/scripts/17-14a7b2aed1.chunk.js +0 -1
  93. package/dist/scripts/20-48346c1412.chunk.js +0 -1
  94. package/dist/scripts/21-f9ff3e0692.chunk.js +0 -1
  95. package/dist/scripts/22-82ad962fa7.chunk.js +0 -1
  96. package/dist/scripts/23-d534e3d903.chunk.js +0 -1
  97. package/dist/scripts/24-264b454456.chunk.js +0 -1
  98. package/dist/scripts/25-e1743bb45d.chunk.js +0 -1
  99. package/dist/scripts/26-0d7e56893b.chunk.js +0 -1
  100. package/dist/scripts/27-4ddeaff155.chunk.js +0 -1
  101. package/dist/scripts/28-96aef6893a.chunk.js +0 -1
  102. package/dist/scripts/29-554f426b85.chunk.js +0 -1
  103. package/dist/scripts/3-75a0223960.chunk.js +0 -1
  104. package/dist/scripts/30-9bdc787ec5.chunk.js +0 -1
  105. package/dist/scripts/31-67f46f7d90.chunk.js +0 -1
  106. package/dist/scripts/32-afdbc7da12.chunk.js +0 -1
  107. package/dist/scripts/33-6c83870de4.chunk.js +0 -1
  108. package/dist/scripts/34-486d783b77.chunk.js +0 -1
  109. package/dist/scripts/35-44dfa1d229.chunk.js +0 -1
  110. package/dist/scripts/36-6e22a76e9d.chunk.js +0 -1
  111. package/dist/scripts/37-247574943e.chunk.js +0 -1
  112. package/dist/scripts/38-c053771304.chunk.js +0 -1
  113. package/dist/scripts/39-0034f40388.chunk.js +0 -1
  114. package/dist/scripts/4-bbf9a27d2b.chunk.js +0 -1
  115. package/dist/scripts/40-4c9075f25f.chunk.js +0 -1
  116. package/dist/scripts/41-9ef30d9bce.chunk.js +0 -1
  117. package/dist/scripts/42-d5ebd7e173.chunk.js +0 -1
  118. package/dist/scripts/43-18cb4a605c.chunk.js +0 -1
  119. package/dist/scripts/44-c501392a17.chunk.js +0 -1
  120. package/dist/scripts/45-6f27b84b9a.chunk.js +0 -1
  121. package/dist/scripts/46-26943c79e1.chunk.js +0 -1
  122. package/dist/scripts/47-58f15ff5f7.chunk.js +0 -1
  123. package/dist/scripts/48-59c60086c6.chunk.js +0 -1
  124. package/dist/scripts/49-c7095beb6f.chunk.js +0 -1
  125. package/dist/scripts/5-a06b2153c3.chunk.js +0 -1
  126. package/dist/scripts/50-015c9c420c.chunk.js +0 -1
  127. package/dist/scripts/51-0cca989dae.chunk.js +0 -1
  128. package/dist/scripts/52-3cc8a4a0c6.chunk.js +0 -1
  129. package/dist/scripts/53-b0a20bc5a0.chunk.js +0 -1
  130. package/dist/scripts/54-79dca3d489.chunk.js +0 -1
  131. package/dist/scripts/55-8c5eba8730.chunk.js +0 -1
  132. package/dist/scripts/56-4d5b5fecd6.chunk.js +0 -1
  133. package/dist/scripts/57-84eff54b39.chunk.js +0 -1
  134. package/dist/scripts/59-53d002a1db.chunk.js +0 -1
  135. package/dist/scripts/6-6c8dac1a42.chunk.js +0 -1
  136. package/dist/scripts/60-9ba5670a0b.chunk.js +0 -1
  137. package/dist/scripts/61-7189b10e86.chunk.js +0 -1
  138. package/dist/scripts/62-6c382c4af3.chunk.js +0 -1
  139. package/dist/scripts/63-d55def5355.chunk.js +0 -1
  140. package/dist/scripts/64-4925cb46d4.chunk.js +0 -1
  141. package/dist/scripts/65-28d1f3d305.chunk.js +0 -1
  142. package/dist/scripts/66-dd4f73d58f.chunk.js +0 -1
  143. package/dist/scripts/67-25c6582829.chunk.js +0 -1
  144. package/dist/scripts/68-4962d3fcfc.chunk.js +0 -1
  145. package/dist/scripts/69-2067a2189e.chunk.js +0 -1
  146. package/dist/scripts/7-881a9b64de.chunk.js +0 -1
  147. package/dist/scripts/71-3f1e0d4f31.chunk.js +0 -1
  148. package/dist/scripts/72-d5c52637ca.chunk.js +0 -1
  149. package/dist/scripts/8-ef172e304b.chunk.js +0 -1
  150. package/dist/scripts/9-d5b2cc8210.chunk.js +0 -1
  151. package/dist/scripts/bundle-c6afc7b324.min.js +0 -10
  152. package/dist/scripts/polyfills-35ff77d456.min.js +0 -1
  153. /package/dist/css/{33-library-editor-630c133693.chunk.css → 16-library-editor-6b9ba08288.chunk.css} +0 -0
  154. /package/dist/css/{15-library-editor-b08725a10e.chunk.css → 17-library-editor-b08725a10e.chunk.css} +0 -0
  155. /package/dist/css/{16-library-editor-89ad109c63.chunk.css → 18-library-editor-89ad109c63.chunk.css} +0 -0
  156. /package/dist/css/{20-library-editor-2bd52b5a32.chunk.css → 22-library-editor-2bd52b5a32.chunk.css} +0 -0
  157. /package/dist/css/{21-library-editor-a7633bece5.chunk.css → 23-library-editor-a7633bece5.chunk.css} +0 -0
  158. /package/dist/css/{22-library-editor-459b106aec.chunk.css → 24-library-editor-459b106aec.chunk.css} +0 -0
  159. /package/dist/css/{23-library-editor-33acb75c24.chunk.css → 25-library-editor-33acb75c24.chunk.css} +0 -0
  160. /package/dist/css/{24-library-editor-b180014922.chunk.css → 26-library-editor-b180014922.chunk.css} +0 -0
  161. /package/dist/css/{25-library-editor-4c64aed388.chunk.css → 27-library-editor-4c64aed388.chunk.css} +0 -0
  162. /package/dist/css/{27-library-editor-b72d0e2d36.chunk.css → 28-library-editor-b72d0e2d36.chunk.css} +0 -0
  163. /package/dist/css/{28-library-editor-de55d150ef.chunk.css → 29-library-editor-de55d150ef.chunk.css} +0 -0
  164. /package/dist/css/{29-library-editor-b0e16f882d.chunk.css → 30-library-editor-b0e16f882d.chunk.css} +0 -0
  165. /package/dist/css/{30-library-editor-10f54d8a75.chunk.css → 31-library-editor-10f54d8a75.chunk.css} +0 -0
  166. /package/dist/css/{37-library-editor-d18b8a3619.chunk.css → 36-library-editor-d18b8a3619.chunk.css} +0 -0
  167. /package/dist/css/{38-library-editor-8b225d15f4.chunk.css → 37-library-editor-8b225d15f4.chunk.css} +0 -0
  168. /package/dist/css/{40-library-editor-b08725a10e.chunk.css → 38-library-editor-b08725a10e.chunk.css} +0 -0
  169. /package/dist/css/{41-library-editor-9a2d011500.chunk.css → 40-library-editor-9a2d011500.chunk.css} +0 -0
  170. /package/dist/css/{43-library-editor-aa3e9bea9a.chunk.css → 44-library-editor-aa3e9bea9a.chunk.css} +0 -0
  171. /package/dist/css/{44-library-editor-7b1cd4a5cc.chunk.css → 45-library-editor-7b1cd4a5cc.chunk.css} +0 -0
  172. /package/dist/css/{45-library-editor-f1820aeeff.chunk.css → 46-library-editor-f1820aeeff.chunk.css} +0 -0
  173. /package/dist/css/{46-library-editor-547abc7492.chunk.css → 47-library-editor-547abc7492.chunk.css} +0 -0
  174. /package/dist/css/{47-library-editor-3f6fb7f3ab.chunk.css → 48-library-editor-3f6fb7f3ab.chunk.css} +0 -0
  175. /package/dist/css/{48-library-editor-467e156ba3.chunk.css → 49-library-editor-467e156ba3.chunk.css} +0 -0
  176. /package/dist/css/{50-library-editor-7aca18778d.chunk.css → 51-library-editor-7aca18778d.chunk.css} +0 -0
  177. /package/dist/css/{51-library-editor-81c5aced1f.chunk.css → 52-library-editor-81c5aced1f.chunk.css} +0 -0
  178. /package/dist/css/{54-library-editor-d3b8bb68f9.chunk.css → 56-library-editor-d3b8bb68f9.chunk.css} +0 -0
  179. /package/dist/css/{55-library-editor-94a8c4e7fa.chunk.css → 57-library-editor-94a8c4e7fa.chunk.css} +0 -0
  180. /package/dist/css/{56-library-editor-61808b02a0.chunk.css → 58-library-editor-61808b02a0.chunk.css} +0 -0
  181. /package/dist/css/{57-library-editor-c49b3847df.chunk.css → 59-library-editor-c49b3847df.chunk.css} +0 -0
  182. /package/dist/css/{58-library-editor-8f5e04b64a.chunk.css → 60-library-editor-8f5e04b64a.chunk.css} +0 -0
  183. /package/dist/css/{59-library-editor-b64f6f3e74.chunk.css → 61-library-editor-b64f6f3e74.chunk.css} +0 -0
  184. /package/dist/css/{61-library-editor-7f123672b2.chunk.css → 63-library-editor-7f123672b2.chunk.css} +0 -0
  185. /package/dist/css/{62-library-editor-61e4c24a7b.chunk.css → 64-library-editor-61e4c24a7b.chunk.css} +0 -0
@@ -1 +0,0 @@
1
- (window.webpackJsonp_clickview_library_editor=window.webpackJsonp_clickview_library_editor||[]).push([[24],{1031:function(e,n,t){"use strict";var o,i;t.d(n,"b",(function(){return o})),t.d(n,"a",(function(){return i})),function(e){e[e.Base=0]="Base",e[e.AwaitingReview=1]="AwaitingReview",e[e.PastReleases=2]="PastReleases",e[e.VideoAccess=3]="VideoAccess",e[e.ProcessingVideo=4]="ProcessingVideo",e[e.Draggable=5]="Draggable",e[e.Search=6]="Search"}(o||(o={})),function(e){e.Checkbox="checkbox",e.Thumbnail="thumbnail",e.Metadata="metadata",e.VideoActions="videoActions",e.VideoInfo="videoInfo"}(i||(i={}))},1032:function(e,n,t){e.exports={lock:"_25RMJ",svgContainer:"_1k8KB"}},1033:function(e,n,t){e.exports={dragItem:"_2TIZ7",svgContainer:"_3JzEU",dragText:"_1Kdwj"}},1034:function(e,n,t){var o=t(10);e.exports=(o.default||o).template({compiler:[8,">= 4.3.0"],main:function(e,n,t,o,i){e.propertyIsEnumerable;var r,l=e.lambda,a=e.escapeExpression;return'<span class="'+a(l(null!=(r=null!=(r=null!=n?n.options:n)?r.styles:r)?r.svgContainer:r,n))+' mr-2">'+(null!=(r=l(null!=(r=null!=n?n.options:n)?r.svg:r,n))?r:"")+'</span>\r\n<span class="'+a(l(null!=(r=null!=(r=null!=n?n.options:n)?r.styles:r)?r.dragText:r,n))+'">'+a(l(null!=(r=null!=n?n.options:n)?r.text:r,n))+"</span>"},useData:!0})},1043:function(e,n,t){e.exports={actions:"_34Z19",showPreview:"cZAmH"}},1045:function(e,n,t){var o=t(10);e.exports=(o.default||o).template({1:function(e,n,t,o,i){return" cursor-pointer"},3:function(e,n,t,o,i){return"checked"},5:function(e,n,t,o,i){return"disabled"},compiler:[8,">= 4.3.0"],main:function(e,n,t,o,i){e.propertyIsEnumerable;var r,l=e.lambda,a=e.escapeExpression,s=null!=n?n:e.nullContext||{};return'<div class="custom-control custom-checkbox '+a(l(null!=(r=null!=n?n.options:n)?r.checkboxClassName:r,n))+'">\r\n <input name="checkbox-'+a(l(null!=(r=null!=n?n.options:n)?r.id:r,n))+'" id="checkbox-'+a(l(null!=(r=null!=n?n.options:n)?r.id:r,n))+'" type="checkbox" class="custom-control-input'+(null!=(r=t.unless.call(s,null!=(r=null!=n?n.options:n)?r.disabled:r,{name:"unless",hash:{},fn:e.program(1,i,0),inverse:e.noop,data:i}))?r:"")+'" '+(null!=(r=t.if.call(s,null!=(r=null!=n?n.options:n)?r.checked:r,{name:"if",hash:{},fn:e.program(3,i,0),inverse:e.noop,data:i}))?r:"")+" "+(null!=(r=t.if.call(s,null!=(r=null!=n?n.options:n)?r.disabled:r,{name:"if",hash:{},fn:e.program(5,i,0),inverse:e.noop,data:i}))?r:"")+' />\r\n <label class="custom-control-label'+(null!=(r=t.unless.call(s,null!=(r=null!=n?n.options:n)?r.disabled:r,{name:"unless",hash:{},fn:e.program(1,i,0),inverse:e.noop,data:i}))?r:"")+'" for="checkbox-'+a(l(null!=(r=null!=n?n.options:n)?r.id:r,n))+'">&nbsp;</label>\r\n</div>'},useData:!0})},1050:function(e,n,t){"use strict";var o=t(1033),i=t.n(o),r=t(1034),l=t.n(r);function a(e){return(a="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}function s(e,n){for(var t=0;t<n.length;t++){var o=n[t];o.enumerable=o.enumerable||!1,o.configurable=!0,"value"in o&&(o.writable=!0),Object.defineProperty(e,o.key,o)}}function u(e,n){return(u=Object.setPrototypeOf||function(e,n){return e.__proto__=n,e})(e,n)}function c(e){var n=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(e){return!1}}();return function(){var t,o=f(e);if(n){var i=f(this).constructor;t=Reflect.construct(o,arguments,i)}else t=o.apply(this,arguments);return p(this,t)}}function p(e,n){return!n||"object"!==a(n)&&"function"!=typeof n?function(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}(e):n}function f(e){return(f=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)})(e)}var h=function(e){!function(e,n){if("function"!=typeof n&&null!==n)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(n&&n.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),n&&u(e,n)}(a,e);var n,t,o,r=c(a);function a(e){return function(e,n){if(!(e instanceof n))throw new TypeError("Cannot call a class as a function")}(this,a),r.call(this,e)}return n=a,(t=[{key:"name",get:function(){return"DraggableItemComponent"}},{key:"template",get:function(){return l.a}},{key:"className",get:function(){return"".concat(i.a.dragItem," p-3")}},{key:"viewOptions",value:function(){return Object.assign({styles:i.a},this.options)}}])&&s(n.prototype,t),o&&s(n,o),a}(t(2).a.Component),d={delay:150,cursorAt:{left:-20,top:10},refreshPositions:!0};t.d(n,"c",(function(){return i.a})),t.d(n,"b",(function(){return h})),t.d(n,"a",(function(){return d}))},1051:function(e,n,t){e.exports={checkboxContainer:"_3BLCF",thumbnailContainer:"_16jlV",metaContainer:"_2mMws",actionsContainer:"I31I0",allowBulk:"_2VkOe",videoItem:"PoHa-",processingVideo:"qFjv2",bulkPlaceholder:"_3iAFa",previewContainer:"_2UBZX"}},1052:function(e,n,t){"use strict";t.d(n,"a",(function(){return g})),t.d(n,"b",(function(){return m}));var o=t(1),i=t(2),r=t(1045),l=t.n(r),a=t(13);function s(e){return(s="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}function u(e,n,t){return n in e?Object.defineProperty(e,n,{value:t,enumerable:!0,configurable:!0,writable:!0}):e[n]=t,e}function c(e,n){for(var t=0;t<n.length;t++){var o=n[t];o.enumerable=o.enumerable||!1,o.configurable=!0,"value"in o&&(o.writable=!0),Object.defineProperty(e,o.key,o)}}function p(e,n){return(p=Object.setPrototypeOf||function(e,n){return e.__proto__=n,e})(e,n)}function f(e){var n=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(e){return!1}}();return function(){var t,o=d(e);if(n){var i=d(this).constructor;t=Reflect.construct(o,arguments,i)}else t=o.apply(this,arguments);return h(this,t)}}function h(e,n){return!n||"object"!==s(n)&&"function"!=typeof n?function(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}(e):n}function d(e){return(d=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)})(e)}var g="checkbox-all",m=function(e){!function(e,n){if("function"!=typeof n&&null!==n)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(n&&n.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),n&&p(e,n)}(s,e);var n,t,i,r=f(s);function s(e){return function(e,n){if(!(e instanceof n))throw new TypeError("Cannot call a class as a function")}(this,s),r.call(this,e)}return n=s,(t=[{key:"initialize",value:function(){this.getViewModel(),this.bindListeners()}},{key:"name",get:function(){return"BulkCheckboxComponent"}},{key:"className",get:function(){return this.options.className}},{key:"template",get:function(){return l.a}},{key:"getViewModel",value:function(){this.model=a.a.GetViewModel(this.options.key,this.options.type)}},{key:"bindListeners",value:function(){this.options.disabled||this.listenTo(this.model,"change",this.onChange)}},{key:"events",value:function(){return{"change .custom-control-input":"onClick"}}},{key:"onChange",value:function(){this.checkAllChecked(),this.render()}},{key:"checkAllChecked",value:function(){var e=o.values(this.model.omit("all",g));o.every(e,(function(e){return!!e}))&&(this.model.get("all")||e.length===this.options.numberOfItems)&&this.model.set(u({all:!0},this.getItemId(),!0))}},{key:"getItemId",value:function(){return g}},{key:"onClick",value:function(){this.model.get(this.getItemId())?this.model.clear():(this.model.clear(),this.model.set(u({all:!0},this.getItemId(),!0)))}},{key:"viewOptions",value:function(){return{id:this.getItemId(),checked:this.model.get(g),disabled:this.options.disabled,checkboxClassName:this.options.checkboxClassName}}}])&&c(n.prototype,t),i&&c(n,i),s}(i.a.Component)},1053:function(e,n,t){"use strict";var o=t(0),i=t(59),r=t(202),l=t(204),a=t(1059),s=t(1),u=t(2),c=t(16),p=t(143),f=t(13),h=t(1036),d=t(1065),g=t.n(d),m=t(1066),y=t.n(m);function v(e){return(v="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}function b(e,n){for(var t=0;t<n.length;t++){var o=n[t];o.enumerable=o.enumerable||!1,o.configurable=!0,"value"in o&&(o.writable=!0),Object.defineProperty(e,o.key,o)}}function k(e,n){return(k=Object.setPrototypeOf||function(e,n){return e.__proto__=n,e})(e,n)}function w(e){var n=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(e){return!1}}();return function(){var t,o=O(e);if(n){var i=O(this).constructor;t=Reflect.construct(o,arguments,i)}else t=o.apply(this,arguments);return C(this,t)}}function C(e,n){return!n||"object"!==v(n)&&"function"!=typeof n?function(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}(e):n}function O(e){return(O=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)})(e)}var x=function(e){!function(e,n){if("function"!=typeof n&&null!==n)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(n&&n.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),n&&k(e,n)}(r,e);var n,t,o,i=w(r);function r(e){return function(e,n){if(!(e instanceof n))throw new TypeError("Cannot call a class as a function")}(this,r),i.call(this,e)}return n=r,(t=[{key:"name",get:function(){return"VideoItemBadgesComponent"}},{key:"template",get:function(){return g.a}},{key:"lang",get:function(){return"shared.videoItemBadges"}},{key:"behaviors",get:function(){return[{behaviorClass:p.a,selector:".tool-tip"}]}},{key:"defaults",get:function(){return{showRestrictionBadge:!1,showReviewBadge:!1}}},{key:"events",value:function(){return{"click span":"onClick"}}},{key:"onClick",value:function(e){e.stopPropagation()}},{key:"viewOptions",value:function(){var e=this.options.showReviewBadge&&f.o.getRestrictionTooltipMessage(this.model),n=this.options.showRestrictionBadge&&f.o.getRestrictionTooltipMessage(this.model);return{styles:y.a,interactive:h.h.isInteractive(this.model),subtitles:!1,resources:!1,ratingColorClass:h.h.mapRatingToClass(this.model.rating.get("value")),closeCaptionSvg:c.a.getSvg(c.b.CloseCaptionBadge),resourcesSvg:c.a.getSvg(c.b.Resources),awaitingReviewMessage:e,awaitingReviewBadgeClass:f.o.getReviewBadgeClassName(this.model,y.a.reviewBadge,y.a.urgentReviewBadge),restrictionMessage:n}}}])&&b(n.prototype,t),o&&b(n,o),r}(u.a.Component),E=t(1046),S=t(1035),P=t(1067),R=t.n(P),I=t(1032),_=t.n(I);function T(e){return(T="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}function V(e,n){for(var t=0;t<n.length;t++){var o=n[t];o.enumerable=o.enumerable||!1,o.configurable=!0,"value"in o&&(o.writable=!0),Object.defineProperty(e,o.key,o)}}function j(e,n){return(j=Object.setPrototypeOf||function(e,n){return e.__proto__=n,e})(e,n)}function M(e){var n=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(e){return!1}}();return function(){var t,o=B(e);if(n){var i=B(this).constructor;t=Reflect.construct(o,arguments,i)}else t=o.apply(this,arguments);return L(this,t)}}function L(e,n){return!n||"object"!==T(n)&&"function"!=typeof n?function(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}(e):n}function B(e){return(B=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)})(e)}var A=function(e){!function(e,n){if("function"!=typeof n&&null!==n)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(n&&n.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),n&&j(e,n)}(l,e);var n,t,i,r=M(l);function l(e){return function(e,n){if(!(e instanceof n))throw new TypeError("Cannot call a class as a function")}(this,l),r.call(this,e)}return n=l,(t=[{key:"initialize",value:function(){this.listenTo(this.model,"change:restrictions",this.render)}},{key:"name",get:function(){return"VideoItemMetadataComponent"}},{key:"template",get:function(){return R.a}},{key:"behaviors",get:function(){return[{behaviorClass:p.a,selector:".tool-tip"}]}},{key:"appLinks",get:function(){return{".applink-show-video":{application:o.b.LIBRARY_EDITOR,action:o.a.LibraryEditor.VIDEO_DETAILS,args:[this.model.get("id")]}}}},{key:"regions",value:function(){return{sources:{el:".sources-region",replaceElement:!0},badges:{el:".badges-region",replaceElement:!0},series:{el:".series-region",replaceElement:!0}}}},{key:"events",value:function(){return e={},n="click .".concat(_.a.svgContainer),t="onClickBadge",n in e?Object.defineProperty(e,n,{value:t,enumerable:!0,configurable:!0,writable:!0}):e[n]=t,e;var e,n,t}},{key:"onClickBadge",value:function(e){e.stopPropagation()}},{key:"renderSources",value:function(){var e=s.extend({},{model:this.model},this.options.sourceMetadataOptions);this.showChildView("sources",new E.a(e))}},{key:"renderSeries",value:function(){this.showChildView("series",new S.a({model:this.model,highlight:this.options.sourceMetadataOptions&&!!this.options.sourceMetadataOptions.highlight}))}},{key:"renderBadges",value:function(){this.showChildView("badges",new x({model:this.model}))}},{key:"viewOptions",value:function(){return{styles:_.a,hasAdminRestriction:f.o.hasAdminRestriction(this.model),restrictionMessage:f.o.getRestrictionTooltipMessage(this.model),lockSvg:c.a.getSvg(c.b.Lock)}}},{key:"onRender",value:function(){this.renderSeries(),this.renderSources(),this.renderBadges()}}])&&V(n.prototype,t),i&&V(n,i),l}(u.a.Component),D=t(1068),N=t.n(D);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 H(e,n){for(var t=0;t<n.length;t++){var o=n[t];o.enumerable=o.enumerable||!1,o.configurable=!0,"value"in o&&(o.writable=!0),Object.defineProperty(e,o.key,o)}}function W(e,n){return(W=Object.setPrototypeOf||function(e,n){return e.__proto__=n,e})(e,n)}function z(e){var n=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(e){return!1}}();return function(){var t,o=Y(e);if(n){var i=Y(this).constructor;t=Reflect.construct(o,arguments,i)}else t=o.apply(this,arguments);return F(this,t)}}function F(e,n){return!n||"object"!==U(n)&&"function"!=typeof n?function(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}(e):n}function Y(e){return(Y=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)})(e)}var G=function(e){!function(e,n){if("function"!=typeof n&&null!==n)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(n&&n.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),n&&W(e,n)}(a,e);var n,t,r,l=z(a);function a(e){return function(e,n){if(!(e instanceof n))throw new TypeError("Cannot call a class as a function")}(this,a),l.call(this,e)}return n=a,(t=[{key:"initialize",value:function(){this.listenTo(this.model,"change:restrictions",this.render)}},{key:"name",get:function(){return"VideoItemVideoAccessMetadataComponent"}},{key:"template",get:function(){return N.a}},{key:"behaviors",get:function(){return[{behaviorClass:p.a,selector:".tool-tip"}]}},{key:"appLinks",get:function(){if(f.y.hasCustomLibrary(this.model))return{".applink-show-video":{application:o.b.LIBRARY_EDITOR,action:o.a.LibraryEditor.VIDEO_DETAILS,args:[this.model.get("id")]}}}},{key:"regions",value:function(){return{sources:{el:".sources-region",replaceElement:!0},badges:{el:".badges-region",replaceElement:!0},series:{el:".series-region",replaceElement:!0}}}},{key:"events",value:function(){return e={click:"onClick","click .video-title":"onClickMetadata"},n="click .".concat(_.a.svgContainer),t="onClickMetadata",n in e?Object.defineProperty(e,n,{value:t,enumerable:!0,configurable:!0,writable:!0}):e[n]=t,e;var e,n,t}},{key:"onClickMetadata",value:function(e){e.stopPropagation()}},{key:"getVideoUrl",value:function(){var e=i.a.safeUrlConcat(this.options.config.get("onlineUrl"),"videos/".concat(this.model.get("id")));return i.a.urlBuilder(e,{loginPrompt:!1})}},{key:"renderSources",value:function(){if(f.y.hasCustomLibrary(this.model)){var e=s.extend({},{model:this.model},this.options.sourceMetadataOptions);this.showChildView("sources",new E.a(e))}}},{key:"renderSeries",value:function(){f.y.hasCustomLibrary(this.model)&&this.showChildView("series",new S.a({model:this.model,highlight:this.options.sourceMetadataOptions&&!!this.options.sourceMetadataOptions.highlight}))}},{key:"renderBadges",value:function(){this.showChildView("badges",new x({model:this.model,showRestrictionBadge:!0}))}},{key:"viewOptions",value:function(){return{styles:_.a,restrictionMessage:f.o.getRestrictionTooltipMessage(this.model),lockSvg:c.a.getSvg(c.b.Lock),linkToOnline:!f.y.hasCustomLibrary(this.model),videoUrl:this.getVideoUrl(),openExternalSvg:c.a.getSvg(c.b.NewWindow)}}},{key:"onRender",value:function(){this.renderSeries(),this.renderSources(),this.renderBadges()}}])&&H(n.prototype,t),r&&H(n,r),a}(u.a.Component),K=t(102),q=t(104),J=t(1069),Z=t.n(J);function Q(e){return(Q="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}function $(e,n){for(var t=0;t<n.length;t++){var o=n[t];o.enumerable=o.enumerable||!1,o.configurable=!0,"value"in o&&(o.writable=!0),Object.defineProperty(e,o.key,o)}}function X(e,n){return(X=Object.setPrototypeOf||function(e,n){return e.__proto__=n,e})(e,n)}function ee(e){var n=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(e){return!1}}();return function(){var t,o=te(e);if(n){var i=te(this).constructor;t=Reflect.construct(o,arguments,i)}else t=o.apply(this,arguments);return ne(this,t)}}function ne(e,n){return!n||"object"!==Q(n)&&"function"!=typeof n?function(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}(e):n}function te(e){return(te=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)})(e)}var oe=function(e){!function(e,n){if("function"!=typeof n&&null!==n)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(n&&n.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),n&&X(e,n)}(l,e);var n,t,i,r=ee(l);function l(e){return function(e,n){if(!(e instanceof n))throw new TypeError("Cannot call a class as a function")}(this,l),r.call(this,e)}return n=l,(t=[{key:"initialize",value:function(){this.bindListeners()}},{key:"bindListeners",value:function(){this.model.get("status")===K.a.Processing&&this.options.pendingItems&&(this.pendingItem||(this.listenTo(this.options.pendingItems,"update",this.mapPendingItem),this.mapPendingItem()))}},{key:"lang",get:function(){return"shared.videoItemProcessingMetadata"}},{key:"mapPendingItem",value:function(){this.pendingItem=this.options.pendingItems.get(this.model.get("id")),this.render(),this.pendingItem&&(this.stopListening(this.options.pendingItems,"update"),this.listenTo(this.pendingItem,"change:foregroundProgress change:backgroundProgress change:pendingProcessStatus",this.render))}},{key:"name",get:function(){return"VideoItemProcessingMetadataComponent"}},{key:"template",get:function(){return Z.a}},{key:"appLinks",get:function(){var e=this.model.series?this.model.series.id:"";return{".applink-series":{application:o.b.LIBRARY_EDITOR,action:o.a.LibraryEditor.FOLDER,args:[e]}}}},{key:"viewOptions",value:function(){return this.pendingItem?{status:q.a.getStatus(this.pendingItem),hasError:q.a.hasError(this.pendingItem),hasPendingItem:!0}:{hasPendingItem:!1}}}])&&$(n.prototype,t),i&&$(n,i),l}(u.a.Component),ie=t(1070),re=t.n(ie);function le(e){return(le="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}function ae(e,n){for(var t=0;t<n.length;t++){var o=n[t];o.enumerable=o.enumerable||!1,o.configurable=!0,"value"in o&&(o.writable=!0),Object.defineProperty(e,o.key,o)}}function se(e,n){return(se=Object.setPrototypeOf||function(e,n){return e.__proto__=n,e})(e,n)}function ue(e){var n=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(e){return!1}}();return function(){var t,o=pe(e);if(n){var i=pe(this).constructor;t=Reflect.construct(o,arguments,i)}else t=o.apply(this,arguments);return ce(this,t)}}function ce(e,n){return!n||"object"!==le(n)&&"function"!=typeof n?function(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}(e):n}function pe(e){return(pe=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)})(e)}var fe=function(e){!function(e,n){if("function"!=typeof n&&null!==n)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(n&&n.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),n&&se(e,n)}(l,e);var n,t,o,r=ue(l);function l(e){return function(e,n){if(!(e instanceof n))throw new TypeError("Cannot call a class as a function")}(this,l),r.call(this,e)}return n=l,(t=[{key:"name",get:function(){return"VideoItemAwaitingReviewMetadataComponent"}},{key:"template",get:function(){return re.a}},{key:"events",value:function(){return{"click .video-title":"onClickMetadata","click .svg-container":"onClickMetadata"}}},{key:"regions",value:function(){return{badges:{el:".badges-region",replaceElement:!0},series:{el:".series-region",replaceElement:!0}}}},{key:"onClickMetadata",value:function(e){e.stopPropagation()}},{key:"getVideoUrl",value:function(){var e=i.a.safeUrlConcat(this.options.config.get("onlineUrl"),"videos/".concat(this.model.get("id")));return i.a.urlBuilder(e,{loginPrompt:!1})}},{key:"getSeriesUrl",value:function(){if(this.model.series){var e=i.a.safeUrlConcat(this.options.config.get("onlineUrl"),"series/".concat(this.model.series.id));return i.a.urlBuilder(e,{loginPrompt:!1})}}},{key:"renderBadges",value:function(){this.showChildView("badges",new x({model:this.model,showReviewBadge:!0}))}},{key:"renderSeries",value:function(){this.showChildView("series",new S.a({model:this.model,highlight:!1,seriesUrl:this.getSeriesUrl()}))}},{key:"viewOptions",value:function(){return{styles:_.a,videoUrl:this.getVideoUrl(),openExternalSvg:c.a.getSvg(c.b.NewWindow)}}},{key:"onRender",value:function(){this.renderSeries(),this.renderBadges()}}])&&ae(n.prototype,t),o&&ae(n,o),l}(u.a.Component),he=t(1071),de=t.n(he),ge=t(1072),me=t.n(ge);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 ve(e,n,t){return n in e?Object.defineProperty(e,n,{value:t,enumerable:!0,configurable:!0,writable:!0}):e[n]=t,e}function be(e,n){for(var t=0;t<n.length;t++){var o=n[t];o.enumerable=o.enumerable||!1,o.configurable=!0,"value"in o&&(o.writable=!0),Object.defineProperty(e,o.key,o)}}function ke(e,n){return(ke=Object.setPrototypeOf||function(e,n){return e.__proto__=n,e})(e,n)}function we(e){var n=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(e){return!1}}();return function(){var t,o=Oe(e);if(n){var i=Oe(this).constructor;t=Reflect.construct(o,arguments,i)}else t=o.apply(this,arguments);return Ce(this,t)}}function Ce(e,n){return!n||"object"!==ye(n)&&"function"!=typeof n?function(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}(e):n}function Oe(e){return(Oe=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)})(e)}var xe=function(e){!function(e,n){if("function"!=typeof n&&null!==n)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(n&&n.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),n&&ke(e,n)}(l,e);var n,t,o,r=we(l);function l(e){return function(e,n){if(!(e instanceof n))throw new TypeError("Cannot call a class as a function")}(this,l),r.call(this,e)}return n=l,(t=[{key:"initialize",value:function(){this.listenTo(this.model,"change:restrictions",this.render)}},{key:"name",get:function(){return"VideoItemPastReleasesMetadataComponent"}},{key:"template",get:function(){return de.a}},{key:"lang",get:function(){return"shared.videoItemPastReleasesMetadata"}},{key:"behaviors",get:function(){return[{behaviorClass:p.a,selector:".tool-tip"}]}},{key:"regions",value:function(){return{badges:{el:".badges-region",replaceElement:!0},series:{el:".series-region",replaceElement:!0}}}},{key:"events",value:function(){var e;return ve(e={"click .video-title":"onClickMetadata"},"click .".concat(me.a.series),"onClickMetadata"),ve(e,"click .svg-container","onClickMetadata"),e}},{key:"onClickMetadata",value:function(e){e.stopPropagation()}},{key:"getVideoUrl",value:function(){var e=i.a.safeUrlConcat(this.options.config.get("onlineUrl"),"videos/".concat(this.model.get("id")));return i.a.urlBuilder(e,{loginPrompt:!1})}},{key:"getSeriesUrl",value:function(){if(this.model.series){var e=i.a.safeUrlConcat(this.options.config.get("onlineUrl"),"series/".concat(this.model.series.id));return i.a.urlBuilder(e,{loginPrompt:!1})}}},{key:"renderBadges",value:function(){this.showChildView("badges",new x({model:this.model}))}},{key:"renderSeries",value:function(){this.showChildView("series",new S.a({model:this.model,highlight:!1,seriesUrl:this.getSeriesUrl()}))}},{key:"viewOptions",value:function(){return{styles:s.extend({},_.a,me.a),videoUrl:this.getVideoUrl(),openExternalSvg:c.a.getSvg(c.b.NewWindow),hasAdminRestriction:f.o.hasAdminRestriction(this.model),restrictionMessage:f.o.getRestrictionTooltipMessage(this.model),lockSvg:c.a.getSvg(c.b.Lock)}}},{key:"onRender",value:function(){this.renderSeries(),this.renderBadges()}}])&&be(n.prototype,t),o&&be(n,o),l}(u.a.Component),Ee=t(1073),Se=t.n(Ee);function Pe(e){return(Pe="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}function Re(e,n){for(var t=0;t<n.length;t++){var o=n[t];o.enumerable=o.enumerable||!1,o.configurable=!0,"value"in o&&(o.writable=!0),Object.defineProperty(e,o.key,o)}}function Ie(e,n){return(Ie=Object.setPrototypeOf||function(e,n){return e.__proto__=n,e})(e,n)}function _e(e){var n=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(e){return!1}}();return function(){var t,o=Ve(e);if(n){var i=Ve(this).constructor;t=Reflect.construct(o,arguments,i)}else t=o.apply(this,arguments);return Te(this,t)}}function Te(e,n){return!n||"object"!==Pe(n)&&"function"!=typeof n?function(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}(e):n}function Ve(e){return(Ve=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)})(e)}var je=function(e){!function(e,n){if("function"!=typeof n&&null!==n)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(n&&n.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),n&&Ie(e,n)}(l,e);var n,t,i,r=_e(l);function l(e){return function(e,n){if(!(e instanceof n))throw new TypeError("Cannot call a class as a function")}(this,l),r.call(this,e)}return n=l,(t=[{key:"initialize",value:function(){this.listenTo(this.model,"change:restrictions",this.render)}},{key:"name",get:function(){return"VideoItemSearchMetadataComponent"}},{key:"template",get:function(){return Se.a}},{key:"behaviors",get:function(){return[{behaviorClass:p.a,selector:".tool-tip"}]}},{key:"appLinks",get:function(){return{".applink-show-video":{application:o.b.LIBRARY_EDITOR,action:o.a.LibraryEditor.VIDEO_DETAILS,args:[this.model.get("id")]}}}},{key:"regions",value:function(){return{sources:{el:".sources-region",replaceElement:!0},badges:{el:".badges-region",replaceElement:!0},series:{el:".series-region",replaceElement:!0}}}},{key:"events",value:function(){return e={click:"onClick"},n="click ".concat(_.a.svgContainer),t="onClickSvg",n in e?Object.defineProperty(e,n,{value:t,enumerable:!0,configurable:!0,writable:!0}):e[n]=t,e;var e,n,t}},{key:"onClickSvg",value:function(e){e.stopPropagation()}},{key:"getKeyPhrases",value:function(){var e=this;return f.w.extractKeyPhrases(this.model.get("description"),this.model.get("_matchedWords"),100,2).map((function(n){return f.w.wordsHighlighter(f.w.escapeExpression(n),e.model.get("_matchedWords"))}))}},{key:"renderSources",value:function(){var e=s.extend({},{model:this.model},this.options.sourceMetadataOptions);this.showChildView("sources",new E.a(e))}},{key:"renderSeries",value:function(){this.showChildView("series",new S.a({model:this.model,highlight:this.options.sourceMetadataOptions&&!!this.options.sourceMetadataOptions.highlight}))}},{key:"renderBadges",value:function(){this.showChildView("badges",new x({model:this.model}))}},{key:"viewOptions",value:function(){return{styles:_.a,name:f.w.wordsHighlighter(f.w.escapeExpression(this.model.get("name")),this.model.get("_matchedWords")),keyPhrases:this.getKeyPhrases(),hasAdminRestriction:f.o.hasAdminRestriction(this.model),restrictionMessage:f.o.getRestrictionTooltipMessage(this.model),lockSvg:c.a.getSvg(c.b.Lock)}}},{key:"onRender",value:function(){this.renderSeries(),this.renderSources(),this.renderBadges()}}])&&Re(n.prototype,t),i&&Re(n,i),l}(u.a.Component),Me=t(6),Le=t(1100),Be=t(1074),Ae=t.n(Be),De=t(1043),Ne=t.n(De);function Ue(e){return(Ue="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}function He(e,n){for(var t=0;t<n.length;t++){var o=n[t];o.enumerable=o.enumerable||!1,o.configurable=!0,"value"in o&&(o.writable=!0),Object.defineProperty(e,o.key,o)}}function We(e,n){return(We=Object.setPrototypeOf||function(e,n){return e.__proto__=n,e})(e,n)}function ze(e){var n=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(e){return!1}}();return function(){var t,o=Ye(e);if(n){var i=Ye(this).constructor;t=Reflect.construct(o,arguments,i)}else t=o.apply(this,arguments);return Fe(this,t)}}function Fe(e,n){return!n||"object"!==Ue(n)&&"function"!=typeof n?function(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}(e):n}function Ye(e){return(Ye=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)})(e)}var Ge=function(e){!function(e,n){if("function"!=typeof n&&null!==n)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(n&&n.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),n&&We(e,n)}(r,e);var n,t,o,i=ze(r);function r(e){return function(e,n){if(!(e instanceof n))throw new TypeError("Cannot call a class as a function")}(this,r),i.call(this,e)}return n=r,(t=[{key:"name",get:function(){return"VideoItemActionsComponent"}},{key:"template",get:function(){return Ae.a}},{key:"className",get:function(){return"d-flex h-100 flex-column align-items-end justify-content-between"}},{key:"lang",get:function(){return"shared._videoItemActions"}},{key:"regions",value:function(){return{videoActions:".video-actions-region"}}},{key:"events",value:function(){return e={},n="click .".concat(Ne.a.showPreview),t="onClickShowPreview",n in e?Object.defineProperty(e,n,{value:t,enumerable:!0,configurable:!0,writable:!0}):e[n]=t,e;var e,n,t}},{key:"onClickShowPreview",value:function(e){e.stopPropagation(),this.options.channelName&&Me.Radio.channel(this.options.channelName).trigger("click:show:preview")}},{key:"renderVideoActions",value:function(){this.showChildView("videoActions",new Le.a(this.options.videoActionsOptions))}},{key:"viewOptions",value:function(){return{styles:Ne.a,previewDisplayed:this.options.previewDisplayed,previewSvg:c.a.getSvg(c.b.Preview)}}},{key:"onRender",value:function(){this.renderVideoActions()}}])&&He(n.prototype,t),o&&He(n,o),r}(u.a.Component),Ke=t(5),qe=t(4),Je=t(42),Ze=t(1075),Qe=t.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 Xe(e,n){for(var t=0;t<n.length;t++){var o=n[t];o.enumerable=o.enumerable||!1,o.configurable=!0,"value"in o&&(o.writable=!0),Object.defineProperty(e,o.key,o)}}function en(e,n){return(en=Object.setPrototypeOf||function(e,n){return e.__proto__=n,e})(e,n)}function nn(e){var n=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(e){return!1}}();return function(){var t,o=on(e);if(n){var i=on(this).constructor;t=Reflect.construct(o,arguments,i)}else t=o.apply(this,arguments);return tn(this,t)}}function tn(e,n){return!n||"object"!==$e(n)&&"function"!=typeof n?function(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}(e):n}function on(e){return(on=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)})(e)}var rn=function(e){!function(e,n){if("function"!=typeof n&&null!==n)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(n&&n.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),n&&en(e,n)}(l,e);var n,t,i,r=nn(l);function l(e){return function(e,n){if(!(e instanceof n))throw new TypeError("Cannot call a class as a function")}(this,l),r.call(this,e)}return n=l,(t=[{key:"initialize",value:function(){this.restrictedVideoDataService=Ke.a.getInstance(o.g.RestrictedVideo,this)}},{key:"name",get:function(){return"VideoItemReviewActionsComponent"}},{key:"template",get:function(){return Qe.a}},{key:"lang",get:function(){return"shared.videoItemReviewActions"}},{key:"className",get:function(){return"d-flex h-100 flex-column align-items-end"}},{key:"events",value:function(){return e={"click .approve":"onClickApprove","click .applink-manage-video-access":"onClickManageVideoAccess"},n="click .".concat(Ne.a.showPreview),t="onClickShowPreview",n in e?Object.defineProperty(e,n,{value:t,enumerable:!0,configurable:!0,writable:!0}):e[n]=t,e;var e,n,t}},{key:"appLinks",get:function(){return{".applink-manage-video-access":{application:o.b.CONTENT_UPDATES,action:o.a.Shared.MANAGE_VIDEO_ACCESS,args:[this.model.get("id")]}}}},{key:"onClickApprove",value:function(e){e.stopPropagation(),this.restrictedVideoDataService.deleteVideoRestriction(this.model.get("id")),this.logApproveAction()}},{key:"onClickManageVideoAccess",value:function(e){e.stopPropagation(),this.logManageAccessAction()}},{key:"onClickShowPreview",value:function(e){e.stopPropagation(),this.options.channelName&&Me.Radio.channel(this.options.channelName).trigger("click:show:preview")}},{key:"logApproveAction",value:function(){var e={location:qe.LocationContext.AwaitingReviewVideoItem,actionType:qe.UserAction.Approve,entity:qe.EntityType.Video,descriptor:qe.OperationDescriptor.Single,workflowPhase:qe.WorkflowPhase.Complete},n={id:this.model.get("id")};Je.a.logUserAction(n,e)}},{key:"logManageAccessAction",value:function(){var e={location:qe.LocationContext.AwaitingReviewVideoItem,actionType:qe.UserAction.SetAccess,entity:qe.EntityType.Video,workflowPhase:qe.WorkflowPhase.Start},n={id:this.model.get("id")};Je.a.logUserAction(n,e)}},{key:"viewOptions",value:function(){return{styles:Ne.a,previewDisplayed:this.options.previewDisplayed,previewSvg:c.a.getSvg(c.b.Preview)}}}])&&Xe(n.prototype,t),i&&Xe(n,i),l}(u.a.Component),ln=t(1076),an=t.n(ln);function sn(e){return(sn="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 un(e,n){for(var t=0;t<n.length;t++){var o=n[t];o.enumerable=o.enumerable||!1,o.configurable=!0,"value"in o&&(o.writable=!0),Object.defineProperty(e,o.key,o)}}function cn(e,n){return(cn=Object.setPrototypeOf||function(e,n){return e.__proto__=n,e})(e,n)}function pn(e){var n=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(e){return!1}}();return function(){var t,o=hn(e);if(n){var i=hn(this).constructor;t=Reflect.construct(o,arguments,i)}else t=o.apply(this,arguments);return fn(this,t)}}function fn(e,n){return!n||"object"!==sn(n)&&"function"!=typeof n?function(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}(e):n}function hn(e){return(hn=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)})(e)}var dn=function(e){!function(e,n){if("function"!=typeof n&&null!==n)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(n&&n.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),n&&cn(e,n)}(l,e);var n,t,i,r=pn(l);function l(e){return function(e,n){if(!(e instanceof n))throw new TypeError("Cannot call a class as a function")}(this,l),r.call(this,e)}return n=l,(t=[{key:"name",get:function(){return"VideoItemVideoAccessComponent"}},{key:"template",get:function(){return an.a}},{key:"lang",get:function(){return"shared.videoItemVideoAccessActions"}},{key:"className",get:function(){return"d-flex h-100 flex-column align-items-end justify-content-between"}},{key:"appLinks",get:function(){return{".applink-manage-video-access":{application:o.b.VIDEO_ACCESS,action:o.a.Shared.MANAGE_VIDEO_ACCESS,args:[this.model.get("id")]}}}},{key:"events",value:function(){return e={"click .applink-manage-video-access":"onClickManageVideoAccess"},n="click .".concat(Ne.a.showPreview),t="onClickShowPreview",n in e?Object.defineProperty(e,n,{value:t,enumerable:!0,configurable:!0,writable:!0}):e[n]=t,e;var e,n,t}},{key:"onClickManageVideoAccess",value:function(e){e.stopPropagation(),this.logAction()}},{key:"onClickShowPreview",value:function(e){e.stopPropagation(),this.options.channelName&&Me.Radio.channel(this.options.channelName).trigger("click:show:preview")}},{key:"logAction",value:function(){var e={location:qe.LocationContext.VideoListItem,actionType:qe.UserAction.SetAccess,entity:qe.EntityType.Video,workflowPhase:qe.WorkflowPhase.Start},n={id:this.model.get("id")};Je.a.logUserAction(n,e)}},{key:"viewOptions",value:function(){return{styles:Ne.a,previewDisplayed:this.options.previewDisplayed,previewSvg:c.a.getSvg(c.b.Preview)}}}])&&un(n.prototype,t),i&&un(n,i),l}(u.a.Component),gn=t(1060),mn=t(1077),yn=t(9),vn=t(3),bn=t(311),kn=t(1062),wn=t(304),Cn=t(1078),On=t.n(Cn);function xn(e){return(xn="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 En(e,n){for(var t=0;t<n.length;t++){var o=n[t];o.enumerable=o.enumerable||!1,o.configurable=!0,"value"in o&&(o.writable=!0),Object.defineProperty(e,o.key,o)}}function Sn(e,n){return(Sn=Object.setPrototypeOf||function(e,n){return e.__proto__=n,e})(e,n)}function Pn(e){var n=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(e){return!1}}();return function(){var t,o=In(e);if(n){var i=In(this).constructor;t=Reflect.construct(o,arguments,i)}else t=o.apply(this,arguments);return Rn(this,t)}}function Rn(e,n){return!n||"object"!==xn(n)&&"function"!=typeof n?function(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}(e):n}function In(e){return(In=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)})(e)}var _n=function(e){!function(e,n){if("function"!=typeof n&&null!==n)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(n&&n.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),n&&Sn(e,n)}(l,e);var n,t,i,r=Pn(l);function l(e){return function(e,n){if(!(e instanceof n))throw new TypeError("Cannot call a class as a function")}(this,l),r.call(this,e)}return n=l,(t=[{key:"name",get:function(){return"ExpandableTagListComponent"}},{key:"template",get:function(){return On.a}},{key:"lang",get:function(){return"libraryEditor.expandableTagList"}},{key:"defaults",get:function(){return{initialTagDisplayCount:5,expandedTagDisplayCount:10}}},{key:"appLinks",get:function(){return{".applink-video-details":{application:o.b.LIBRARY_EDITOR,action:o.a.LibraryEditor.VIDEO_DETAILS,args:[this.options.videoId]}}}},{key:"events",value:function(){return{"click .show-more-tags":"onClickShowMoreTags"}}},{key:"regions",value:function(){return{tags:{replaceElement:!0,el:".tags-region"}}}},{key:"onClickShowMoreTags",value:function(){this.showingMoreTags=!0,this.options.channelName&&Me.Radio.channel(this.options.channelName).trigger("show:more:tags"),this.render()}},{key:"getTagCollection",value:function(){var e=this.showingMoreTags?this.options.expandedTagDisplayCount:this.options.initialTagDisplayCount;return new bn.a(this.collection.slice(0,e))}},{key:"getExtraTagsInfo",value:function(){if(!this.showingMoreTags)return vn.a.getPhrase(this.lang,"extraTags",{smartCount:s.max([this.collection.length-this.options.initialTagDisplayCount,0])})}},{key:"renderTags",value:function(){var e=new kn.a({collection:this.getTagCollection(),behavior:wn.b.Link});this.showChildView("tags",e)}},{key:"viewOptions",value:function(){return{expandable:this.collection.length>this.options.initialTagDisplayCount&&!this.showingMoreTags,extraTagsText:this.getExtraTagsInfo(),moreTags:this.showingMoreTags&&this.collection.length>this.options.expandedTagDisplayCount}}},{key:"onRender",value:function(){this.renderTags()}}])&&En(n.prototype,t),i&&En(n,i),l}(u.a.Component),Tn=t(1079),Vn=t.n(Tn),jn=t(1080),Mn=t.n(jn);function Ln(e){return(Ln="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 Bn(e,n){for(var t=0;t<n.length;t++){var o=n[t];o.enumerable=o.enumerable||!1,o.configurable=!0,"value"in o&&(o.writable=!0),Object.defineProperty(e,o.key,o)}}function An(e,n){return(An=Object.setPrototypeOf||function(e,n){return e.__proto__=n,e})(e,n)}function Dn(e){var n=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(e){return!1}}();return function(){var t,o=Un(e);if(n){var i=Un(this).constructor;t=Reflect.construct(o,arguments,i)}else t=o.apply(this,arguments);return Nn(this,t)}}function Nn(e,n){return!n||"object"!==Ln(n)&&"function"!=typeof n?function(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}(e):n}function Un(e){return(Un=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)})(e)}var Hn=function(e){!function(e,n){if("function"!=typeof n&&null!==n)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(n&&n.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),n&&An(e,n)}(l,e);var n,t,i,r=Dn(l);function l(e){return function(e,n){if(!(e instanceof n))throw new TypeError("Cannot call a class as a function")}(this,l),r.call(this,e)}return n=l,(t=[{key:"initialize",value:function(){this.listenTo(this.model,"change",this.render),this.listenTo(this.channelName,"show:more:tags",this.onClickShowMoreTags)}},{key:"name",get:function(){return"VideoItemPreviewComponent"}},{key:"template",get:function(){return Vn.a}},{key:"lang",get:function(){return"shared.videoItemPreview"}},{key:"className",get:function(){return"row border-top px-3 m-0"}},{key:"channelName",get:function(){return"".concat(this.name).concat(this.cid)}},{key:"appLinks",get:function(){return{".applink-video-details":{application:o.b.LIBRARY_EDITOR,action:o.a.LibraryEditor.VIDEO_DETAILS,args:[this.model.get("id")]}}}},{key:"behaviors",get:function(){return[{behaviorClass:p.a,selector:".tool-tip"}]}},{key:"regions",value:function(){return{partialLoadingContainer:{el:".content-container-region",replaceElement:!1,partialLoading:yn.h.VideoItemPreview},description:".description-region",preview:".video-preview-region",tags:{replaceElement:!0,el:".tags-region"}}}},{key:"events",value:function(){return{click:"onClick"}}},{key:"onClick",value:function(e){e.stopPropagation()}},{key:"onClickShowMoreTags",value:function(){Me.Radio.channel(this.options.channelName).trigger("resize:preview")}},{key:"showTags",value:function(){return!(!this.model.tags||!this.model.tags.length)}},{key:"renderDescription",value:function(){if(this.model&&this.model.get("description")){var e=new gn.a({model:this.model,highlighter:!0,size:gn.b.Small,truncate:!0});this.showChildView("description",e)}}},{key:"renderTags",value:function(){if(this.showTags()){var e=new _n({collection:this.model.tags,videoId:this.model.id&&this.model.get("id"),channelName:this.channelName});this.showChildView("tags",e)}}},{key:"renderVideoPreview",value:function(){var e=new mn.a({model:this.model,webPlayerUrl:this.options.webPlayerUrl,analyticsOptions:{location:qe.LocationContext.VideoItemPreview},currentUser:this.options.currentUser});this.showChildView("preview",e)}},{key:"getSubtitleLanguage",value:function(){if(!this.model.subtitles||!this.model.get("subtitles").length)return"";var e=s.uniq(this.model.get("subtitles").map((function(e){return e.get("language")})));return s.map(e,(function(e){return CVLanguages.getFullEnglishName(e)})).join(", ")}},{key:"getDetails",value:function(e){if(!this.model[e]||!this.model.get(e).length)return"";var n=this.model.get(e).length;return n>1?"".concat(n," ").concat(e):"".concat(vn.a.getPhrase(this.lang,"one")," ").concat(e.slice(0,-1))}},{key:"onBeforeRender",value:function(){return!(!this.model||!this.model.get("dataFetched"))||(Me.Radio.channel(this.options.collectionViewChannel).trigger("fetch:video:with:metadata",this.options.videoId),!(!this.model||!this.model.get("dataFetched"))&&void 0)}},{key:"viewOptions",value:function(){if(this.model&&this.model.get("dataFetched")){var e=this.model.get("duration");return{styles:Mn.a,ratingClass:this.model.rating&&h.h.mapRatingToClass(this.model.rating.get("value")),showTags:this.showTags(),description:this.model.get("description"),duration:e&&f.e.ToDisplayDuration(e),chapters:this.getDetails("chapters"),interactives:this.model.interactives&&this.model.get("interactives").length,subtitles:this.getSubtitleLanguage(),resources:this.getDetails("resources"),links:this.getDetails("links"),externalLink:this.options.externalLink,openExternalSvg:c.a.getSvg(c.b.NewWindow)}}}},{key:"onRender",value:function(){this.renderDescription(),this.renderTags(),this.renderVideoPreview()}}])&&Bn(n.prototype,t),i&&Bn(n,i),l}(u.a.Component),Wn=t(1081),zn=t.n(Wn);function Fn(e){return(Fn="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 Yn(e,n){for(var t=0;t<n.length;t++){var o=n[t];o.enumerable=o.enumerable||!1,o.configurable=!0,"value"in o&&(o.writable=!0),Object.defineProperty(e,o.key,o)}}function Gn(e,n){return(Gn=Object.setPrototypeOf||function(e,n){return e.__proto__=n,e})(e,n)}function Kn(e){var n=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(e){return!1}}();return function(){var t,o=Jn(e);if(n){var i=Jn(this).constructor;t=Reflect.construct(o,arguments,i)}else t=o.apply(this,arguments);return qn(this,t)}}function qn(e,n){return!n||"object"!==Fn(n)&&"function"!=typeof n?function(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}(e):n}function Jn(e){return(Jn=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)})(e)}var Zn,Qn,$n,Xn,et,nt,tt,ot,it,rt=function(e){!function(e,n){if("function"!=typeof n&&null!==n)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(n&&n.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),n&&Gn(e,n)}(r,e);var n,t,o,i=Kn(r);function r(e){return function(e,n){if(!(e instanceof n))throw new TypeError("Cannot call a class as a function")}(this,r),i.call(this,e)}return n=r,(t=[{key:"initialize",value:function(){this.bindListeners()}},{key:"name",get:function(){return"VideoItemProcessingActionsComponent"}},{key:"template",get:function(){return zn.a}},{key:"lang",get:function(){return"shared.videoItemProcessingActions"}},{key:"className",get:function(){return"d-flex h-100 flex-column align-items-end justify-content-between"}},{key:"events",value:function(){return{"click .cancel":"onClickCancel","click .retry":"onClickRetry"}}},{key:"onClickCancel",value:function(){var e=this.pendingItem.get("video").get("name");f.b.generateDialog(e,this.options.channelName,"cancel:pending:item",this.pendingItem)}},{key:"onClickRetry",value:function(){Me.Radio.channel(this.options.channelName).trigger("retry:pending:item",this.pendingItem)}},{key:"bindListeners",value:function(){this.model.get("status")===K.a.Processing&&this.options.pendingItems&&(this.pendingItem||(this.listenTo(this.options.pendingItems,"update",this.mapPendingItem),this.mapPendingItem()))}},{key:"mapPendingItem",value:function(){this.pendingItem=this.options.pendingItems.get(this.model.get("id")),this.render(),this.pendingItem&&(this.stopListening(this.options.pendingItems,"update"),this.listenTo(this.pendingItem,"change:pendingProcessStatus",this.render))}},{key:"viewOptions",value:function(){return{hasError:q.a.hasError(this.pendingItem)}}},{key:"onBeforeRender",value:function(){return!!this.pendingItem}}])&&Yn(n.prototype,t),o&&Yn(n,o),r}(u.a.Component),lt=t(1051),at=t.n(lt),st=t(199),ut=t(1031);function ct(e,n,t){return n in e?Object.defineProperty(e,n,{value:t,enumerable:!0,configurable:!0,writable:!0}):e[n]=t,e}t.d(n,"a",(function(){return mt}));var pt=ut.b,ft=ut.a,ht=function(e){return{component:r.a,options:{model:e.model,lazyload:e.shouldLazyLoadThumbnail(),thumbnailOptions:{size:l.a.Small},href:i.a.urlBuilder(i.a.safeUrlConcat(e.options.config.get("onlineUrl"),"videos/".concat(e.model.id)),{loginPrompt:!1}),channelName:e.channelName}}},dt=function(e){return{component:Hn,options:{model:e.options.videoWithMetadata,videoId:e.model.id.toString(),channelName:e.channelName,collectionViewChannel:e.options.collectionViewChannel,webPlayerUrl:e.options.config.get("webPlayerUrl"),currentUser:e.options.currentUser}}},gt=function(e){return{component:Hn,options:{model:e.options.videoWithMetadata,videoId:e.model.id.toString(),channelName:e.channelName,collectionViewChannel:e.options.collectionViewChannel,webPlayerUrl:e.options.config.get("webPlayerUrl"),externalLink:i.a.urlBuilder(i.a.safeUrlConcat(e.options.config.get("onlineUrl"),"videos/".concat(e.model.id)),{loginPrompt:!1}),currentUser:e.options.currentUser}}},mt={componentOptions:(nt={},ct(nt,pt.Base,(Zn={},ct(Zn,ft.Checkbox,(function(e){return{component:a.a,options:{className:"d-inline-flex align-items-center mr-3 ".concat(at.a.checkboxContainer),checkboxClassName:at.a.checkbox,itemId:e.model.id,key:e.collectionIdentifier.toString(),type:st.CheckboxTypes.VIDEO_LIST}}})),ct(Zn,ft.Thumbnail,(function(e){return{component:r.a,options:{model:e.model,lazyload:e.shouldLazyLoadThumbnail(),thumbnailOptions:{size:l.a.Small},appLink:{application:o.b.LIBRARY_EDITOR,action:o.a.LibraryEditor.VIDEO_DETAILS,args:[e.model.id]},channelName:e.channelName}}})),ct(Zn,ft.Metadata,(function(e){return{component:A,options:{model:e.model,sourceMetadataOptions:e.options.sourceMetadataOptions}}})),ct(Zn,ft.VideoActions,(function(e){return{component:Ge,options:{model:e.model,channelName:e.channelName,previewDisplayed:e.viewModel.get("previewOpen"),videoActionsOptions:{model:e.model,application:e.options.application,collectionIdentifier:e.options.collectionIdentifier,customerHasLocalCache:e.options.customerHasLocalCache,customerHasExchange:e.options.customerHasExchange,customerHasCustomLibrary:e.options.customerHasCustomLibrary,analyticsOptions:e.options.analyticsOptions,config:e.options.config,collectionSource:e.options.videoCollectionSource}}}})),ct(Zn,ft.VideoInfo,dt),Zn)),ct(nt,pt.AwaitingReview,(Qn={},ct(Qn,ft.Thumbnail,ht),ct(Qn,ft.Metadata,(function(e){return{component:fe,options:{model:e.model,config:e.options.config}}})),ct(Qn,ft.VideoActions,(function(e){return{component:rn,options:{model:e.model,channelName:e.channelName,previewDisplayed:e.viewModel.get("previewOpen"),analyticsOptions:e.options.analyticsOptions}}})),ct(Qn,ft.VideoInfo,gt),Qn)),ct(nt,pt.PastReleases,($n={},ct($n,ft.Thumbnail,ht),ct($n,ft.Metadata,(function(e){return{component:xe,options:{model:e.model,config:e.options.config}}})),ct($n,ft.VideoInfo,gt),$n)),ct(nt,pt.VideoAccess,(Xn={},ct(Xn,ft.VideoActions,(function(e){return{component:dn,options:{model:e.model,channelName:e.channelName,previewDisplayed:e.viewModel.get("previewOpen"),analyticsOptions:e.options.analyticsOptions}}})),ct(Xn,ft.Metadata,(function(e){return{component:G,options:{model:e.model,config:e.options.config,sourceMetadataOptions:{showFolder:!0}}}})),ct(Xn,ft.VideoInfo,(function(e){return f.y.hasCustomLibrary(e.model)?dt(e):gt(e)})),Xn)),ct(nt,pt.ProcessingVideo,(et={},ct(et,ft.Metadata,(function(e){return{component:oe,options:{model:e.model,pendingItems:e.options.pendingItems}}})),ct(et,ft.VideoActions,(function(e){return{component:rt,options:{model:e.model,pendingItems:e.options.pendingItems,channelName:e.options.collectionViewChannel,analyticsOptions:e.options.analyticsOptions}}})),et)),ct(nt,pt.Draggable,{}),ct(nt,pt.Search,ct({},ft.Metadata,(function(e){return{component:je,options:{model:e.model,sourceMetadataOptions:{showFolder:!0,highlight:!0}}}}))),nt),onBeforeRender:(it={},ct(it,pt.Base,(tt={},ct(tt,ft.Checkbox,(function(e){return!!e.options.allowBulk})),ct(tt,ft.VideoInfo,(function(e){return!!e.viewModel.get("previewOpen")})),tt)),ct(it,pt.ProcessingVideo,(ot={},ct(ot,ft.Checkbox,(function(){return!1})),ct(ot,ft.VideoInfo,(function(){return!1})),ot)),it)}},1054:function(e,n,t){"use strict";var o=t(2),i=t(1),r=t(1031),l=t(1053),a=t(1055);var s,u,c,p=(s={},u=r.b.Draggable,c=function(e){return[{behaviorClass:a.a,collectionIdentifier:e.options.collectionIdentifier,model:e.options.model,selector:"drag-selector"}]},u in s?Object.defineProperty(s,u,{value:c,enumerable:!0,configurable:!0,writable:!0}):s[u]=c,s),f=t(19);t.d(n,"a",(function(){return g}));var h=r.b.Base,d=l.a,g={renderRegions:function(e,n){i.each(e.regions,(function(t,o){m.onBeforeRenderRegion(e,n,o)&&m.renderRegion(e,n,o)}))},onBeforeRenderRegion:function(e,n,t){var o=d.onBeforeRender[n];if(o||(o=d.onBeforeRender[h]),!o)return!0;var r=o[t];return!r||(!i.isFunction(r)||r(e))},renderRegion:function(e,n,t){var o=m.getComponent(e,n,t);e.showChildView(t,o)},getComponent:function(e,n,t){var i=d.componentOptions[n];i||o.a.ErrorHelper.throw(new f.a("Must define VideoItemComponent type options: ".concat(r.b[n],".")));var l=i[t];l||(l=d.componentOptions[h][t]),l||o.a.ErrorHelper.throw(new f.a("Must define VideoItemComponent region options: ".concat(t,".")));var a=l(e);return a.component||o.a.ErrorHelper.throw(new f.a("Must define component for region: ".concat(t,",\n in VideoItemComponent type: ").concat(r.b[n],"."))),new a.component(a.options||{})},getBehaviors:function(e,n){return p[n]?p[n](e):null}},m=g},1055:function(e,n,t){"use strict";t.d(n,"a",(function(){return C}));var o=t(1),i=t(6),r=t(2),l=t(19),a=t(16),s=t(0),u=t(13),c=t(3),p=t(1050),f=t(199),h=t(1058),d=t.n(h);function g(e){return(g="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}function m(e,n){if(!(e instanceof n))throw new TypeError("Cannot call a class as a function")}function y(e,n){for(var t=0;t<n.length;t++){var o=n[t];o.enumerable=o.enumerable||!1,o.configurable=!0,"value"in o&&(o.writable=!0),Object.defineProperty(e,o.key,o)}}function v(e,n){return(v=Object.setPrototypeOf||function(e,n){return e.__proto__=n,e})(e,n)}function b(e){var n=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(e){return!1}}();return function(){var t,o=w(e);if(n){var i=w(this).constructor;t=Reflect.construct(o,arguments,i)}else t=o.apply(this,arguments);return k(this,t)}}function k(e,n){return!n||"object"!==g(n)&&"function"!=typeof n?function(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}(e):n}function w(e){return(w=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)})(e)}var C=function(e){!function(e,n){if("function"!=typeof n&&null!==n)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(n&&n.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),n&&v(e,n)}(k,e);var n,t,h,g=b(k);function k(){return m(this,k),g.apply(this,arguments)}return n=k,(t=[{key:"initialize",value:function(){this.options.model||r.a.ErrorHelper.throw(new l.a("DraggableVideoBehavior must be passed a Video model")),this.listenTo(s.w.VIDEO_DRAG_DROP,"drag:style:".concat(this.options.model.id),this.styleDragStart),this.listenTo(s.w.VIDEO_DRAG_DROP,"drag:stop",this.styleDragStop)}},{key:"lang",get:function(){return"libraryEditor.behaviors"}},{key:"helper",value:function(){var e=this.getVideoModels();return new p.b({text:e.length>1?c.a.getPhrase(this.lang,"videos",{videoCount:e.length}):e[0].get("name"),svg:a.a.getSvg(a.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 e=this.getVideoModels(),n=i.Radio.channel(s.w.VIDEO_DRAG_DROP);n.trigger("drag:start",e,this.options.collectionIdentifier),o.each(e,(function(e){return n.trigger("drag:style:".concat(e.id))}))}},{key:"stop",value:function(){i.Radio.channel(s.w.VIDEO_DRAG_DROP).trigger("drag:stop")}},{key:"getVideoModels",value:function(){var e=this,n=u.a.GetSelectedModels({key:this.options.collectionIdentifier.toString(),type:f.CheckboxTypes.VIDEO_LIST,collection:this.view.model.collection});return o.any(n,(function(n){return n.id===e.view.model.id}))||(n=[this.view.model]),n.length?n:[this.view.model]}},{key:"getClassMappings",value:function(){return{"ui-draggable":p.c.draggable,"ui-draggable-disabled":p.c.disabled,"ui-draggable-handle":p.c.handle,"ui-draggable-dragging":p.c.dragging}}},{key:"onRender",value:function(){var e=this.getSelector(),n={helper:o.bind(this.helper,this),start:o.bind(this.start,this),stop:o.bind(this.stop,this)};n.classes=this.getClassMappings(),e.draggable(o.extend({},p.a,n))}},{key:"onBeforeDestroy",value:function(){var e=this.getSelector();e.draggable("instance")&&e.draggable("destroy")}}])&&y(n.prototype,t),h&&y(n,h),k}(r.a.Behavior)},1058:function(e,n,t){e.exports={draggingVideo:"_3cCHx"}},1059:function(e,n,t){"use strict";t.d(n,"a",(function(){return d}));var o=t(2),i=t(1045),r=t.n(i),l=t(13),a=t(1052);function s(e){return(s="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}function u(e,n){for(var t=0;t<n.length;t++){var o=n[t];o.enumerable=o.enumerable||!1,o.configurable=!0,"value"in o&&(o.writable=!0),Object.defineProperty(e,o.key,o)}}function c(e,n){return(c=Object.setPrototypeOf||function(e,n){return e.__proto__=n,e})(e,n)}function p(e){var n=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(e){return!1}}();return function(){var t,o=h(e);if(n){var i=h(this).constructor;t=Reflect.construct(o,arguments,i)}else t=o.apply(this,arguments);return f(this,t)}}function f(e,n){return!n||"object"!==s(n)&&"function"!=typeof n?function(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}(e):n}function h(e){return(h=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)})(e)}var d=function(e){!function(e,n){if("function"!=typeof n&&null!==n)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(n&&n.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),n&&c(e,n)}(s,e);var n,t,o,i=p(s);function s(e){return function(e,n){if(!(e instanceof n))throw new TypeError("Cannot call a class as a function")}(this,s),i.call(this,e)}return n=s,(t=[{key:"initialize",value:function(){if(this.getViewModel(),this.bindListeners(),this.options.checked){var e=this.getItemId();this.model.set(e,!0,{silent:!0})}}},{key:"name",get:function(){return"CheckboxComponent"}},{key:"className",get:function(){return this.options.className}},{key:"template",get:function(){return r.a}},{key:"getViewModel",value:function(){this.model=l.a.GetViewModel(this.options.key,this.options.type)}},{key:"bindListeners",value:function(){this.options.disabled||this.listenTo(this.model,"change:all change:".concat(this.getItemId()),this.render)}},{key:"events",value:function(){return{"click .custom-checkbox":"onClickCheckbox","change .custom-control-input":"onChangeCheckbox"}}},{key:"getItemId",value:function(){return this.options.itemId.toString()}},{key:"onClickCheckbox",value:function(e){e.stopPropagation()}},{key:"onChangeCheckbox",value:function(){if(!this.options.disabled){var e=this.getItemId();this.model.has(e)||this.model.get("all")?!1===this.model.get(e)?this.model.set(e,!0):(this.model.set(e,!1),this.model.set(a.a,!1)):this.model.set(e,!0)}}},{key:"viewOptions",value:function(){var e=this.getItemId();return{id:e,checked:this.model.has(e)?this.model.get(e):this.model.get("all"),disabled:this.options.disabled,checkboxClassName:this.options.checkboxClassName}}}])&&u(n.prototype,t),o&&u(n,o),s}(o.a.Component)},1063:function(e,n,t){"use strict";t.d(n,"a",(function(){return g}));var o=t(1),i=t(2),r=t(4),l=t(42),a=t(1064),s=t.n(a);function u(e){return(u="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}function c(e,n){for(var t=0;t<n.length;t++){var o=n[t];o.enumerable=o.enumerable||!1,o.configurable=!0,"value"in o&&(o.writable=!0),Object.defineProperty(e,o.key,o)}}function p(e,n){return(p=Object.setPrototypeOf||function(e,n){return e.__proto__=n,e})(e,n)}function f(e){var n=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(e){return!1}}();return function(){var t,o=d(e);if(n){var i=d(this).constructor;t=Reflect.construct(o,arguments,i)}else t=o.apply(this,arguments);return h(this,t)}}function h(e,n){return!n||"object"!==u(n)&&"function"!=typeof n?function(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}(e):n}function d(e){return(d=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)})(e)}var g=function(e){!function(e,n){if("function"!=typeof n&&null!==n)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(n&&n.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),n&&p(e,n)}(u,e);var n,t,i,a=f(u);function u(e){return function(e,n){if(!(e instanceof n))throw new TypeError("Cannot call a class as a function")}(this,u),a.call(this,e)}return n=u,(t=[{key:"defaults",get:function(){return{cursors:{},cursorParamName:"cursor"}}},{key:"name",get:function(){return"PaginationComponent"}},{key:"template",get:function(){return s.a}},{key:"lang",get:function(){return"shared._pagination"}},{key:"appLinks",get:function(){var e={};if(!this.options.cursors)return{};if(this.options.cursors.previous){var n=this.options.cursors.previous,t=this.buildCursor(this.options.cursors.previous);+n<=1&&!0!==this.options.allowFirstPageCursor&&delete t.params.cursor,e[".previous-applink"]=t}return this.options.cursors.next&&(e[".next-applink"]=this.buildCursor(this.options.cursors.next)),e}},{key:"events",value:function(){return{"click .previous-applink":"onClickPrevious","click .next-applink":"onClickNext"}}},{key:"buildCursor",value:function(e){return{application:this.options.appLink.application,action:this.options.appLink.action,args:this.options.appLink.args,params:o.extend({},this.options.appLink.params,(n={},t=this.options.cursorParamName,i=e,t in n?Object.defineProperty(n,t,{value:i,enumerable:!0,configurable:!0,writable:!0}):n[t]=i,n))};var n,t,i}},{key:"onClickPrevious",value:function(){this.logAction("previous")}},{key:"onClickNext",value:function(){this.logAction("next")}},{key:"logAction",value:function(e){var n=l.a.mergeOptions(this.options.analyticsOptions,{location:r.LocationContext.Pagination,entity:r.EntityType.Pagination,actionType:r.UserAction.Navigate}),t={id:this.options.collectionId,page:e};l.a.logUserAction(t,n)}},{key:"viewOptions",value:function(){return{cursors:this.options.cursors}}},{key:"onBeforeRender",value:function(){return!!this.options.cursors}}])&&c(n.prototype,t),i&&c(n,i),u}(i.a.Component)},1064:function(e,n,t){var o=t(10);e.exports=(o.default||o).template({1:function(e,n,t,o,i){return"disabled"},compiler:[8,">= 4.3.0"],main:function(e,n,t,o,i){e.propertyIsEnumerable;var r,l=null!=n?n:e.nullContext||{},a=e.hooks.helperMissing,s=e.escapeExpression;return'<div class="p-3">\r\n <a class="btn previous-applink btn-secondary '+(null!=(r=t.unless.call(l,null!=(r=null!=(r=null!=n?n.options:n)?r.cursors:r)?r.previous:r,{name:"unless",hash:{},fn:e.program(1,i,0),inverse:e.noop,data:i}))?r:"")+'">'+s((t.lang||n&&n.lang||a).call(l,"previous",{name:"lang",hash:{},data:i}))+'</a>\r\n <a class="btn next-applink btn-secondary '+(null!=(r=t.unless.call(l,null!=(r=null!=(r=null!=n?n.options:n)?r.cursors:r)?r.next:r,{name:"unless",hash:{},fn:e.program(1,i,0),inverse:e.noop,data:i}))?r:"")+'">'+s((t.lang||n&&n.lang||a).call(l,"next",{name:"lang",hash:{},data:i}))+"</a>\r\n</div>"},useData:!0})},1065:function(e,n,t){var o=t(10);e.exports=(o.default||o).template({1:function(e,n,t,o,i){e.propertyIsEnumerable;var r,l=e.escapeExpression;return' <span class="badge p-1 '+l(e.lambda(null!=(r=null!=(r=null!=n?n.options:n)?r.styles:r)?r.interactive:r,n))+'">'+l((t.lang||n&&n.lang||e.hooks.helperMissing).call(null!=n?n:e.nullContext||{},"interactive",{name:"lang",hash:{},data:i}))+"</span>\r\n"},3:function(e,n,t,o,i){e.propertyIsEnumerable;var r,l=e.lambda,a=e.escapeExpression;return' <span class="badge p-1 tool-tip '+a(l(null!=(r=null!=(r=null!=n?n.options:n)?r.styles:r)?r.rating:r,n))+" "+a(l(null!=(r=null!=n?n.options:n)?r.ratingColorClass:r,n))+'" title="'+a(l(null!=(r=null!=n?n.rating:n)?r.name:r,n))+'">'+a(l(null!=(r=null!=n?n.rating:n)?r.code:r,n))+"</span>\r\n"},5:function(e,n,t,o,i){e.propertyIsEnumerable;var r,l=e.lambda;return' <span class="d-inline-block tool-tip '+e.escapeExpression(l(null!=(r=null!=(r=null!=n?n.options:n)?r.styles:r)?r.svgContainer:r,n))+'" title="Subtitles">'+(null!=(r=l(null!=(r=null!=n?n.options:n)?r.closeCaptionSvg:r,n))?r:"")+"</span>\r\n"},7:function(e,n,t,o,i){e.propertyIsEnumerable;var r,l=e.lambda;return' <span class="d-inline-block tool-tip '+e.escapeExpression(l(null!=(r=null!=(r=null!=n?n.options:n)?r.styles:r)?r.svgContainer:r,n))+'" title="Resources">'+(null!=(r=l(null!=(r=null!=n?n.options:n)?r.resourcesSvg:r,n))?r:"")+"</span>\r\n"},9:function(e,n,t,o,i){e.propertyIsEnumerable;var r,l=e.lambda,a=e.escapeExpression;return' <span class="badge p-1 '+a(l(null!=(r=null!=n?n.options:n)?r.awaitingReviewBadgeClass:r,n))+'">'+a(l(null!=(r=null!=n?n.options:n)?r.awaitingReviewMsg:r,n))+"</span>\r\n"},11:function(e,n,t,o,i){e.propertyIsEnumerable;var r,l=e.lambda,a=e.escapeExpression;return' <span class="badge p-1 '+a(l(null!=(r=null!=(r=null!=n?n.options:n)?r.styles:r)?r.restrictionBadgeClass:r,n))+'">'+a(l(null!=(r=null!=n?n.options:n)?r.restrictionMessage:r,n))+"</span>\r\n"},compiler:[8,">= 4.3.0"],main:function(e,n,t,o,i){e.propertyIsEnumerable;var r,l=null!=n?n:e.nullContext||{};return'<div class="mt-1 '+e.escapeExpression(e.lambda(null!=(r=null!=(r=null!=n?n.options:n)?r.styles:r)?r.badgesWrapper:r,n))+'">\r\n'+(null!=(r=t.if.call(l,null!=(r=null!=n?n.options:n)?r.interactive:r,{name:"if",hash:{},fn:e.program(1,i,0),inverse:e.noop,data:i}))?r:"")+"\r\n"+(null!=(r=t.if.call(l,null!=(r=null!=n?n.rating:n)?r.code:r,{name:"if",hash:{},fn:e.program(3,i,0),inverse:e.noop,data:i}))?r:"")+"\r\n"+(null!=(r=t.if.call(l,null!=(r=null!=n?n.options:n)?r.subtitles:r,{name:"if",hash:{},fn:e.program(5,i,0),inverse:e.noop,data:i}))?r:"")+"\r\n"+(null!=(r=t.if.call(l,null!=(r=null!=n?n.options:n)?r.resources:r,{name:"if",hash:{},fn:e.program(7,i,0),inverse:e.noop,data:i}))?r:"")+"\r\n"+(null!=(r=t.if.call(l,null!=(r=null!=n?n.options:n)?r.awaitingReviewMsg:r,{name:"if",hash:{},fn:e.program(9,i,0),inverse:e.noop,data:i}))?r:"")+"\r\n"+(null!=(r=t.if.call(l,null!=(r=null!=n?n.options:n)?r.restrictionMessage:r,{name:"if",hash:{},fn:e.program(11,i,0),inverse:e.noop,data:i}))?r:"")+"</div>"},useData:!0})},1066:function(e,n,t){e.exports={interactive:"_37GpR",rating:"_2lAYT",svgContainer:"_19ncQ",badgesWrapper:"_26lCi",restrictionBadgeClass:"UdQeS",reviewBadge:"ExFLF",urgentReviewBadge:"_3dcfL"}},1067:function(e,n,t){var o=t(10);e.exports=(o.default||o).template({1:function(e,n,t,o,i){e.propertyIsEnumerable;var r,l=e.lambda,a=e.escapeExpression;return' <span class="d-inline-block ml-1 tool-tip '+a(l(null!=(r=null!=(r=null!=n?n.options:n)?r.styles:r)?r.svgContainer:r,n))+'" title="'+a(l(null!=(r=null!=n?n.options:n)?r.restrictionMessage:r,n))+'">'+(null!=(r=l(null!=(r=null!=n?n.options:n)?r.lockSvg:r,n))?r:"")+"</span>\r\n"},compiler:[8,">= 4.3.0"],main:function(e,n,t,o,i){e.propertyIsEnumerable;var r,l,a=null!=n?n:e.nullContext||{};return'<div class="series-region"></div>\r\n<a class="cursor-pointer applink-show-video h6 text-dark">'+e.escapeExpression("function"==typeof(l=null!=(l=t.name||(null!=n?n.name:n))?l:e.hooks.helperMissing)?l.call(a,{name:"name",hash:{},data:i}):l)+"</a>\r\n"+(null!=(r=t.if.call(a,null!=(r=null!=n?n.options:n)?r.hasAdminRestriction:r,{name:"if",hash:{},fn:e.program(1,i,0),inverse:e.noop,data:i}))?r:"")+'<div class="sources-region"></div>\r\n<div class="badges-region"></div>'},useData:!0})},1068:function(e,n,t){var o=t(10);e.exports=(o.default||o).template({1:function(e,n,t,o,i){e.propertyIsEnumerable;var r,l,a=e.lambda,s=e.escapeExpression;return'<a class="cursor-pointer h6 video-title text-dark" href="'+s(a(null!=(r=null!=n?n.options:n)?r.videoUrl:r,n))+'" target="_blank">'+s("function"==typeof(l=null!=(l=t.name||(null!=n?n.name:n))?l:e.hooks.helperMissing)?l.call(null!=n?n:e.nullContext||{},{name:"name",hash:{},data:i}):l)+'</a>\r\n<a class="svg-container d-inline-block align-bottom text-muted no-decoration" href="'+s(a(null!=(r=null!=n?n.options:n)?r.videoUrl:r,n))+'" target="_blank">'+(null!=(r=a(null!=(r=null!=n?n.options:n)?r.openExternalSvg:r,n))?r:"")+"</a>\r\n"},3:function(e,n,t,o,i){var r;e.propertyIsEnumerable;return'<a class="cursor-pointer applink-show-video h6">'+e.escapeExpression("function"==typeof(r=null!=(r=t.name||(null!=n?n.name:n))?r:e.hooks.helperMissing)?r.call(null!=n?n:e.nullContext||{},{name:"name",hash:{},data:i}):r)+"</a>\r\n"},compiler:[8,">= 4.3.0"],main:function(e,n,t,o,i){e.propertyIsEnumerable;var r,l=e.lambda,a=e.escapeExpression;return'<div class="series-region"></div>\r\n'+(null!=(r=t.if.call(null!=n?n:e.nullContext||{},null!=(r=null!=n?n.options:n)?r.linkToOnline:r,{name:"if",hash:{},fn:e.program(1,i,0),inverse:e.program(3,i,0),data:i}))?r:"")+'<span class="d-inline-block ml-1 tool-tip '+a(l(null!=(r=null!=(r=null!=n?n.options:n)?r.styles:r)?r.lock:r,n))+" "+a(l(null!=(r=null!=(r=null!=n?n.options:n)?r.styles:r)?r.svgContainer:r,n))+'" title="'+a(l(null!=(r=null!=n?n.options:n)?r.restrictionMessage:r,n))+'">'+(null!=(r=l(null!=(r=null!=n?n.options:n)?r.lockSvg:r,n))?r:"")+'</span>\r\n<div class="sources-region"></div>\r\n<div class="badges-region"></div>'},useData:!0})},1069:function(e,n,t){var o=t(10);e.exports=(o.default||o).template({1:function(e,n,t,o,i){e.propertyIsEnumerable;var r,l=e.lambda;return' <span class="d-inline-block align-middle ml-1 '+e.escapeExpression(l(null!=(r=null!=(r=null!=n?n.options:n)?r.styles:r)?r.lockSvgContainer:r,n))+'">'+(null!=(r=l(null!=(r=null!=n?n.options:n)?r.lockSvg:r,n))?r:"")+"</span>\r\n"},3:function(e,n,t,o,i){return"text-danger"},5:function(e,n,t,o,i){var r;e.propertyIsEnumerable;return" "+e.escapeExpression(e.lambda(null!=(r=null!=n?n.options:n)?r.status:r,n))+"\r\n"},7:function(e,n,t,o,i){e.propertyIsEnumerable;return" "+e.escapeExpression((t.lang||n&&n.lang||e.hooks.helperMissing).call(null!=n?n:e.nullContext||{},"waiting",{name:"lang",hash:{},data:i}))+"\r\n"},9:function(e,n,t,o,i){e.propertyIsEnumerable;return" <br><i>"+e.escapeExpression((t.lang||n&&n.lang||e.hooks.helperMissing).call(null!=n?n:e.nullContext||{},"anotherAdmin",{name:"lang",hash:{},data:i}))+"</i>\r\n"},compiler:[8,">= 4.3.0"],main:function(e,n,t,o,i){e.propertyIsEnumerable;var r,l,a=null!=n?n:e.nullContext||{};return'<a class="applink-show-video h6 text-dark">'+e.escapeExpression("function"==typeof(l=null!=(l=t.name||(null!=n?n.name:n))?l:e.hooks.helperMissing)?l.call(a,{name:"name",hash:{},data:i}):l)+"</a>\r\n"+(null!=(r=t.if.call(a,null!=(r=null!=n?n.options:n)?r.hasAdminRestriction:r,{name:"if",hash:{},fn:e.program(1,i,0),inverse:e.noop,data:i}))?r:"")+'<div class="processing '+(null!=(r=t.if.call(a,null!=(r=null!=n?n.options:n)?r.hasError:r,{name:"if",hash:{},fn:e.program(3,i,0),inverse:e.noop,data:i}))?r:"")+'">\r\n'+(null!=(r=t.if.call(a,null!=(r=null!=n?n.options:n)?r.hasPendingItem:r,{name:"if",hash:{},fn:e.program(5,i,0),inverse:e.program(7,i,0),data:i}))?r:"")+(null!=(r=t.unless.call(a,null!=(r=null!=n?n.options:n)?r.hasPendingItem:r,{name:"unless",hash:{},fn:e.program(9,i,0),inverse:e.noop,data:i}))?r:"")+"</div>"},useData:!0})},1070:function(e,n,t){var o=t(10);e.exports=(o.default||o).template({compiler:[8,">= 4.3.0"],main:function(e,n,t,o,i){e.propertyIsEnumerable;var r,l,a=e.lambda,s=e.escapeExpression;return'<div class="series-region"></div>\r\n<a class="cursor-pointer h6 video-title text-dark" href="'+s(a(null!=(r=null!=n?n.options:n)?r.videoUrl:r,n))+'" target="_blank">'+s("function"==typeof(l=null!=(l=t.name||(null!=n?n.name:n))?l:e.hooks.helperMissing)?l.call(null!=n?n:e.nullContext||{},{name:"name",hash:{},data:i}):l)+'</a>\r\n<a class="svg-container d-inline-block align-bottom text-muted no-decoration" href="'+s(a(null!=(r=null!=n?n.options:n)?r.videoUrl:r,n))+'" target="_blank">'+(null!=(r=a(null!=(r=null!=n?n.options:n)?r.openExternalSvg:r,n))?r:"")+'</a>\r\n<div class="badges-region"></div>'},useData:!0})},1071:function(e,n,t){var o=t(10);e.exports=(o.default||o).template({1:function(e,n,t,o,i){e.propertyIsEnumerable;var r,l=e.lambda,a=e.escapeExpression;return' <span class="d-inline-block svg-container align-bottom tool-tip '+a(l(null!=(r=null!=(r=null!=n?n.options:n)?r.styles:r)?r.lock:r,n))+'" title="'+a(l(null!=(r=null!=n?n.options:n)?r.restrictionMessage:r,n))+'">'+(null!=(r=l(null!=(r=null!=n?n.options:n)?r.lockSvg:r,n))?r:"")+"</span>\r\n"},compiler:[8,">= 4.3.0"],main:function(e,n,t,o,i){e.propertyIsEnumerable;var r,l,a=e.lambda,s=e.escapeExpression,u=null!=n?n:e.nullContext||{};return'<div class="series-region"></div>\r\n<a class="cursor-pointer h6 video-title text-dark" href="'+s(a(null!=(r=null!=n?n.options:n)?r.videoUrl:r,n))+'" target="_blank">'+s("function"==typeof(l=null!=(l=t.name||(null!=n?n.name:n))?l:e.hooks.helperMissing)?l.call(u,{name:"name",hash:{},data:i}):l)+'</a>\r\n<a class="svg-container d-inline-block align-bottom text-muted no-decoration" href="'+s(a(null!=(r=null!=n?n.options:n)?r.videoUrl:r,n))+'" target="_blank">'+(null!=(r=a(null!=(r=null!=n?n.options:n)?r.openExternalSvg:r,n))?r:"")+"</a>\r\n"+(null!=(r=t.if.call(u,null!=(r=null!=n?n.options:n)?r.hasAdminRestriction:r,{name:"if",hash:{},fn:e.program(1,i,0),inverse:e.noop,data:i}))?r:"")+'<div class="badges-region"></div>'},useData:!0})},1072:function(e,n,t){e.exports={series:"P3914"}},1073:function(e,n,t){var o=t(10);e.exports=(o.default||o).template({1:function(e,n,t,o,i){e.propertyIsEnumerable;var r,l=e.lambda,a=e.escapeExpression;return' <span class="d-inline-block ml-1 tool-tip '+a(l(null!=(r=null!=(r=null!=n?n.options:n)?r.styles:r)?r.svgContainer:r,n))+'" title="'+a(l(null!=(r=null!=n?n.options:n)?r.restrictionMessage:r,n))+'">'+(null!=(r=l(null!=(r=null!=n?n.options:n)?r.lockSvg:r,n))?r:"")+"</span>\r\n"},3:function(e,n,t,o,i){var r;return' <span class="d-block pt-1">'+(null!=(r=e.lambda(n,n))?r:"")+"</span>\r\n"},compiler:[8,">= 4.3.0"],main:function(e,n,t,o,i){e.propertyIsEnumerable;var r,l=null!=n?n:e.nullContext||{};return'<div class="series-region"></div>\r\n<a class="cursor-pointer applink-show-video h6 text-dark">'+(null!=(r=e.lambda(null!=(r=null!=n?n.options:n)?r.name:r,n))?r:"")+"</a>\r\n"+(null!=(r=t.if.call(l,null!=(r=null!=n?n.options:n)?r.hasAdminRestriction:r,{name:"if",hash:{},fn:e.program(1,i,0),inverse:e.noop,data:i}))?r:"")+'<div class="sources-region"></div>\r\n<div class="badges-region"></div>\r\n'+(null!=(r=t.each.call(l,null!=(r=null!=n?n.options:n)?r.keyPhrases:r,{name:"each",hash:{},fn:e.program(3,i,0),inverse:e.noop,data:i}))?r:"")},useData:!0})},1074:function(e,n,t){var o=t(10);e.exports=(o.default||o).template({1:function(e,n,t,o,i){e.propertyIsEnumerable;return e.escapeExpression((t.lang||n&&n.lang||e.hooks.helperMissing).call(null!=n?n:e.nullContext||{},"hide",{name:"lang",hash:{},data:i}))},3:function(e,n,t,o,i){e.propertyIsEnumerable;return e.escapeExpression((t.lang||n&&n.lang||e.hooks.helperMissing).call(null!=n?n:e.nullContext||{},"show",{name:"lang",hash:{},data:i}))},compiler:[8,">= 4.3.0"],main:function(e,n,t,o,i){e.propertyIsEnumerable;var r,l=e.lambda,a=e.escapeExpression,s=null!=n?n:e.nullContext||{};return'<div class="video-actions-region row no-gutters video-item-actions '+a(l(null!=(r=null!=(r=null!=n?n.options:n)?r.styles:r)?r.actions:r,n))+'"></div>\r\n<div class="row no-gutters cursor-pointer video-item-show-preview '+a(l(null!=(r=null!=(r=null!=n?n.options:n)?r.styles:r)?r.showPreview:r,n))+'">\r\n <span class="svg-container">'+(null!=(r=l(null!=(r=null!=n?n.options:n)?r.previewSvg:r,n))?r:"")+"</span>\r\n "+(null!=(r=t.if.call(s,null!=(r=null!=n?n.options:n)?r.previewDisplayed:r,{name:"if",hash:{},fn:e.program(1,i,0),inverse:e.program(3,i,0),data:i}))?r:"")+" "+a((t.lang||n&&n.lang||e.hooks.helperMissing).call(s,"preview",{name:"lang",hash:{},data:i}))+"\r\n</div>"},useData:!0})},1075:function(e,n,t){var o=t(10);e.exports=(o.default||o).template({1:function(e,n,t,o,i){e.propertyIsEnumerable;return e.escapeExpression((t.lang||n&&n.lang||e.hooks.helperMissing).call(null!=n?n:e.nullContext||{},"hide",{name:"lang",hash:{},data:i}))},3:function(e,n,t,o,i){e.propertyIsEnumerable;return e.escapeExpression((t.lang||n&&n.lang||e.hooks.helperMissing).call(null!=n?n:e.nullContext||{},"show",{name:"lang",hash:{},data:i}))},compiler:[8,">= 4.3.0"],main:function(e,n,t,o,i){e.propertyIsEnumerable;var r,l=null!=n?n:e.nullContext||{},a=e.hooks.helperMissing,s=e.escapeExpression,u=e.lambda;return'<button class="approve d-flex btn btn-sm btn-outline-success" type="button">'+s((t.lang||n&&n.lang||a).call(l,"approve",{name:"lang",hash:{},data:i}))+'</button>\r\n<a class="applink-manage-video-access cursor-pointer hover-text-underline py-1">'+(null!=(r=(t.lang||n&&n.lang||a).call(l,"manageAccess",{name:"lang",hash:{},data:i}))?r:"")+'</a> \r\n<div class="row no-gutters cursor-pointer video-item-show-preview '+s(u(null!=(r=null!=(r=null!=n?n.options:n)?r.styles:r)?r.showPreview:r,n))+'"> \r\n <span class="svg-container">'+(null!=(r=u(null!=(r=null!=n?n.options:n)?r.previewSvg:r,n))?r:"")+"</span> \r\n "+(null!=(r=t.if.call(l,null!=(r=null!=n?n.options:n)?r.previewDisplayed:r,{name:"if",hash:{},fn:e.program(1,i,0),inverse:e.program(3,i,0),data:i}))?r:"")+" "+s((t.lang||n&&n.lang||a).call(l,"preview",{name:"lang",hash:{},data:i}))+"\r\n</div> "},useData:!0})},1076:function(e,n,t){var o=t(10);e.exports=(o.default||o).template({1:function(e,n,t,o,i){e.propertyIsEnumerable;return e.escapeExpression((t.lang||n&&n.lang||e.hooks.helperMissing).call(null!=n?n:e.nullContext||{},"hide",{name:"lang",hash:{},data:i}))},3:function(e,n,t,o,i){e.propertyIsEnumerable;return e.escapeExpression((t.lang||n&&n.lang||e.hooks.helperMissing).call(null!=n?n:e.nullContext||{},"show",{name:"lang",hash:{},data:i}))},compiler:[8,">= 4.3.0"],main:function(e,n,t,o,i){e.propertyIsEnumerable;var r,l=null!=n?n:e.nullContext||{},a=e.hooks.helperMissing,s=e.escapeExpression,u=e.lambda;return'<button class="applink-manage-video-access d-flex btn btn-sm btn-secondary" type="button">'+s((t.lang||n&&n.lang||a).call(l,"manageAccess",{name:"lang",hash:{},data:i}))+'</button>\r\n<div class="row no-gutters cursor-pointer video-item-show-preview '+s(u(null!=(r=null!=(r=null!=n?n.options:n)?r.styles:r)?r.showPreview:r,n))+'">\r\n <span class="svg-container">'+(null!=(r=u(null!=(r=null!=n?n.options:n)?r.previewSvg:r,n))?r:"")+"</span>\r\n "+(null!=(r=t.if.call(l,null!=(r=null!=n?n.options:n)?r.previewDisplayed:r,{name:"if",hash:{},fn:e.program(1,i,0),inverse:e.program(3,i,0),data:i}))?r:"")+" "+s((t.lang||n&&n.lang||a).call(l,"preview",{name:"lang",hash:{},data:i}))+"\r\n</div>"},useData:!0})},1078:function(e,n,t){var o=t(10);e.exports=(o.default||o).template({1:function(e,n,t,o,i){var r;e.propertyIsEnumerable;return' <a class="info-link show-more-tags">'+e.escapeExpression(e.lambda(null!=(r=null!=n?n.options:n)?r.extraTagsText:r,n))+"</a>\r\n"},3:function(e,n,t,o,i){e.propertyIsEnumerable;return' <a class="info-link applink-video-details">'+e.escapeExpression((t.lang||n&&n.lang||e.hooks.helperMissing).call(null!=n?n:e.nullContext||{},"viewAllTags",{name:"lang",hash:{},data:i}))+"</a>\r\n"},compiler:[8,">= 4.3.0"],main:function(e,n,t,o,i){e.propertyIsEnumerable;var r,l=null!=n?n:e.nullContext||{};return'<div class="tags-region"></div>\r\n\r\n'+(null!=(r=t.if.call(l,null!=(r=null!=n?n.options:n)?r.expandable:r,{name:"if",hash:{},fn:e.program(1,i,0),inverse:e.noop,data:i}))?r:"")+(null!=(r=t.if.call(l,null!=(r=null!=n?n.options:n)?r.moreTags:r,{name:"if",hash:{},fn:e.program(3,i,0),inverse:e.noop,data:i}))?r:"")},useData:!0})},1079:function(e,n,t){var o=t(10);e.exports=(o.default||o).template({1:function(e,n,t,o,i){e.propertyIsEnumerable;return" <p>"+e.escapeExpression((t.lang||n&&n.lang||e.hooks.helperMissing).call(null!=n?n:e.nullContext||{},"noDescription",{name:"lang",hash:{},data:i}))+"</p>\r\n"},3:function(e,n,t,o,i){return' <div class="description-region"></div>\r\n'},5:function(e,n,t,o,i){e.propertyIsEnumerable;var r,l=e.lambda,a=e.escapeExpression;return' <div class="col-6 pb-1 '+a(l(null!=(r=null!=(r=null!=n?n.options:n)?r.styles:r)?r.columnNames:r,n))+'">'+a((t.lang||n&&n.lang||e.hooks.helperMissing).call(null!=n?n:e.nullContext||{},"rating",{name:"lang",hash:{},data:i}))+'</div>\r\n <div class="col-6 mb-0 pb-1">\r\n <span class="badge p-1 text-white tool-tip '+a(l(null!=(r=null!=n?n.options:n)?r.ratingClass:r,n))+'" title="'+a(l(null!=(r=null!=n?n.rating:n)?r.name:r,n))+'">'+a(l(null!=(r=null!=n?n.rating:n)?r.code:r,n))+"</span>\r\n </div>\r\n"},7:function(e,n,t,o,i){e.propertyIsEnumerable;var r,l,a=e.escapeExpression,s=null!=n?n:e.nullContext||{},u=e.hooks.helperMissing;return' <div class="col-6 py-1 '+a(e.lambda(null!=(r=null!=(r=null!=n?n.options:n)?r.styles:r)?r.columnNames:r,n))+'">'+a((t.lang||n&&n.lang||u).call(s,"productionYear",{name:"lang",hash:{},data:i}))+'</div>\r\n <p class="col-6 mb-0 py-1">'+a("function"==typeof(l=null!=(l=t.productionYear||(null!=n?n.productionYear:n))?l:u)?l.call(s,{name:"productionYear",hash:{},data:i}):l)+"</p>\r\n"},9:function(e,n,t,o,i){e.propertyIsEnumerable;var r,l=e.lambda,a=e.escapeExpression,s=null!=n?n:e.nullContext||{};return' <div class="col-6 py-1 '+a(l(null!=(r=null!=(r=null!=n?n.options:n)?r.styles:r)?r.columnNames:r,n))+'">'+a((t.lang||n&&n.lang||e.hooks.helperMissing).call(s,"chapters",{name:"lang",hash:{},data:i}))+'</div>\r\n <a\r\n class="col-6 info-link mb-0 py-1 '+(null!=(r=t.unless.call(s,null!=(r=null!=n?n.options:n)?r.externalLink:r,{name:"unless",hash:{},fn:e.program(10,i,0),inverse:e.noop,data:i}))?r:"")+'"\r\n'+(null!=(r=t.if.call(s,null!=(r=null!=n?n.options:n)?r.externalLink:r,{name:"if",hash:{},fn:e.program(12,i,0),inverse:e.noop,data:i}))?r:"")+" >\r\n "+a(l(null!=(r=null!=n?n.options:n)?r.chapters:r,n))+"\r\n "+(null!=(r=t.if.call(s,null!=(r=null!=n?n.options:n)?r.externalLink:r,{name:"if",hash:{},fn:e.program(14,i,0),inverse:e.noop,data:i}))?r:"")+"\r\n </a>\r\n"},10:function(e,n,t,o,i){return"applink-video-details"},12:function(e,n,t,o,i){var r;e.propertyIsEnumerable;return' href="'+e.escapeExpression(e.lambda(null!=(r=null!=n?n.options:n)?r.externalLink:r,n))+'"\r\n target="_blank"\r\n'},14:function(e,n,t,o,i){e.propertyIsEnumerable;var r,l=e.lambda;return'<div class="d-inline-block '+e.escapeExpression(l(null!=(r=null!=(r=null!=n?n.options:n)?r.styles:r)?r.smallSvgContainer:r,n))+'">'+(null!=(r=l(null!=(r=null!=n?n.options:n)?r.openExternalSvg:r,n))?r:"")+"</div>"},16:function(e,n,t,o,i){e.propertyIsEnumerable;var r,l=e.lambda,a=e.escapeExpression;return' <div class="col-6 py-1 '+a(l(null!=(r=null!=(r=null!=n?n.options:n)?r.styles:r)?r.columnNames:r,n))+'">'+a((t.lang||n&&n.lang||e.hooks.helperMissing).call(null!=n?n:e.nullContext||{},"interactives",{name:"lang",hash:{},data:i}))+'</div>\r\n <p class="col-6 mb-0 py-1">'+a(l(null!=(r=null!=n?n.options:n)?r.interactives:r,n))+"</p>\r\n"},18:function(e,n,t,o,i){e.propertyIsEnumerable;var r,l=e.lambda,a=e.escapeExpression;return' <div class="col-6 py-1 '+a(l(null!=(r=null!=(r=null!=n?n.options:n)?r.styles:r)?r.columnNames:r,n))+'">'+a((t.lang||n&&n.lang||e.hooks.helperMissing).call(null!=n?n:e.nullContext||{},"subtitles",{name:"lang",hash:{},data:i}))+'</div>\r\n <p class="col-6 mb-0 py-1">'+a(l(null!=(r=null!=n?n.options:n)?r.subtitles:r,n))+"</p>\r\n"},20:function(e,n,t,o,i){e.propertyIsEnumerable;var r,l=e.lambda,a=e.escapeExpression,s=null!=n?n:e.nullContext||{};return' <div class="col-6 py-1 '+a(l(null!=(r=null!=(r=null!=n?n.options:n)?r.styles:r)?r.columnNames:r,n))+'">'+a((t.lang||n&&n.lang||e.hooks.helperMissing).call(s,"resources",{name:"lang",hash:{},data:i}))+'</div>\r\n <a\r\n class="col-6 info-link mb-0 py-1 '+(null!=(r=t.unless.call(s,null!=(r=null!=n?n.options:n)?r.externalLink:r,{name:"unless",hash:{},fn:e.program(10,i,0),inverse:e.noop,data:i}))?r:"")+'"\r\n'+(null!=(r=t.if.call(s,null!=(r=null!=n?n.options:n)?r.externalLink:r,{name:"if",hash:{},fn:e.program(12,i,0),inverse:e.noop,data:i}))?r:"")+" >\r\n "+a(l(null!=(r=null!=n?n.options:n)?r.resources:r,n))+"\r\n "+(null!=(r=t.if.call(s,null!=(r=null!=n?n.options:n)?r.externalLink:r,{name:"if",hash:{},fn:e.program(14,i,0),inverse:e.noop,data:i}))?r:"")+"\r\n </a>\r\n"},22:function(e,n,t,o,i){e.propertyIsEnumerable;var r,l=e.lambda,a=e.escapeExpression,s=null!=n?n:e.nullContext||{};return' <div class="col-6 py-1 '+a(l(null!=(r=null!=(r=null!=n?n.options:n)?r.styles:r)?r.columnNames:r,n))+'">'+a((t.lang||n&&n.lang||e.hooks.helperMissing).call(s,"links",{name:"lang",hash:{},data:i}))+'</div>\r\n <a\r\n class="col-6 info-link mb-0 py-1 '+(null!=(r=t.unless.call(s,null!=(r=null!=n?n.options:n)?r.externalLink:r,{name:"unless",hash:{},fn:e.program(10,i,0),inverse:e.noop,data:i}))?r:"")+'"\r\n'+(null!=(r=t.if.call(s,null!=(r=null!=n?n.options:n)?r.externalLink:r,{name:"if",hash:{},fn:e.program(12,i,0),inverse:e.noop,data:i}))?r:"")+" >\r\n "+a(l(null!=(r=null!=n?n.options:n)?r.links:r,n))+"\r\n "+(null!=(r=t.if.call(s,null!=(r=null!=n?n.options:n)?r.externalLink:r,{name:"if",hash:{},fn:e.program(14,i,0),inverse:e.noop,data:i}))?r:"")+"\r\n </a>\r\n"},24:function(e,n,t,o,i){e.propertyIsEnumerable;var r,l=e.escapeExpression;return' <div class="py-1 '+l(e.lambda(null!=(r=null!=(r=null!=n?n.options:n)?r.styles:r)?r.columnNames:r,n))+'">'+l((t.lang||n&&n.lang||e.hooks.helperMissing).call(null!=n?n:e.nullContext||{},"tags",{name:"lang",hash:{},data:i}))+'</div>\r\n <div class="tags-region"></div>\r\n <div class="col-12">&nbsp;</div>\r\n'},26:function(e,n,t,o,i){e.propertyIsEnumerable;var r,l=e.lambda,a=e.escapeExpression;return' <a href="'+a(l(null!=(r=null!=n?n.options:n)?r.externalLink:r,n))+'" target="_blank" class="info-link d-inline-block pt-3 '+a(l(null!=(r=null!=(r=null!=n?n.options:n)?r.styles:r)?r.columnNames:r,n))+'">\r\n '+a((t.lang||n&&n.lang||e.hooks.helperMissing).call(null!=n?n:e.nullContext||{},"goToVideo",{name:"lang",hash:{},data:i}))+'\r\n <div class="d-inline-block svg-container">'+(null!=(r=l(null!=(r=null!=n?n.options:n)?r.openExternalSvg:r,n))?r:"")+"</div>\r\n </a>\r\n"},28:function(e,n,t,o,i){e.propertyIsEnumerable;var r,l=e.escapeExpression;return' <a class="info-link applink-video-details d-inline-block pt-3 '+l(e.lambda(null!=(r=null!=(r=null!=n?n.options:n)?r.styles:r)?r.columnNames:r,n))+'">'+l((t.lang||n&&n.lang||e.hooks.helperMissing).call(null!=n?n:e.nullContext||{},"viewFullDetails",{name:"lang",hash:{},data:i}))+"</a>\r\n"},compiler:[8,">= 4.3.0"],main:function(e,n,t,o,i){e.propertyIsEnumerable;var r,l=e.lambda,a=e.escapeExpression,s=null!=n?n:e.nullContext||{},u=e.hooks.helperMissing;return'<div class="content-container-region row w-100 pl-0">\r\n <div class="col-8 border-right pt-3">\r\n <p class="text-uppercase text-muted '+a(l(null!=(r=null!=(r=null!=n?n.options:n)?r.styles:r)?r.columnNames:r,n))+'">'+a((t.lang||n&&n.lang||u).call(s,"description",{name:"lang",hash:{},data:i}))+"</p>\r\n \r\n"+(null!=(r=t.unless.call(s,null!=(r=null!=n?n.options:n)?r.description:r,{name:"unless",hash:{},fn:e.program(1,i,0),inverse:e.program(3,i,0),data:i}))?r:"")+' \r\n <div class="video-preview-region col-7 my-3 pl-0"></div>\r\n </div>\r\n <div class="col-4 my-3 pr-0 pl-3">\r\n <p class="text-uppercase text-muted '+a(l(null!=(r=null!=(r=null!=n?n.options:n)?r.styles:r)?r.columnNames:r,n))+'">'+a((t.lang||n&&n.lang||u).call(s,"details",{name:"lang",hash:{},data:i}))+'</p>\r\n\r\n <div class="row">\r\n'+(null!=(r=t.if.call(s,null!=(r=null!=n?n.rating:n)?r.code:r,{name:"if",hash:{},fn:e.program(5,i,0),inverse:e.noop,data:i}))?r:"")+"\r\n"+(null!=(r=t.if.call(s,null!=n?n.productionYear:n,{name:"if",hash:{},fn:e.program(7,i,0),inverse:e.noop,data:i}))?r:"")+'\r\n <div class="col-6 py-1 '+a(l(null!=(r=null!=(r=null!=n?n.options:n)?r.styles:r)?r.columnNames:r,n))+'">'+a((t.lang||n&&n.lang||u).call(s,"duration",{name:"lang",hash:{},data:i}))+'</div>\r\n <p class="col-6 mb-0 py-1">'+a(l(null!=(r=null!=n?n.options:n)?r.duration:r,n))+"</p>\r\n\r\n"+(null!=(r=t.if.call(s,null!=(r=null!=n?n.options:n)?r.chapters:r,{name:"if",hash:{},fn:e.program(9,i,0),inverse:e.noop,data:i}))?r:"")+"\r\n"+(null!=(r=t.if.call(s,null!=(r=null!=n?n.options:n)?r.interactives:r,{name:"if",hash:{},fn:e.program(16,i,0),inverse:e.noop,data:i}))?r:"")+"\r\n"+(null!=(r=t.if.call(s,null!=(r=null!=n?n.options:n)?r.subtitles:r,{name:"if",hash:{},fn:e.program(18,i,0),inverse:e.noop,data:i}))?r:"")+"\r\n"+(null!=(r=t.if.call(s,null!=(r=null!=n?n.options:n)?r.resources:r,{name:"if",hash:{},fn:e.program(20,i,0),inverse:e.noop,data:i}))?r:"")+"\r\n"+(null!=(r=t.if.call(s,null!=(r=null!=n?n.options:n)?r.links:r,{name:"if",hash:{},fn:e.program(22,i,0),inverse:e.noop,data:i}))?r:"")+" </div>\r\n\r\n"+(null!=(r=t.if.call(s,null!=(r=null!=n?n.options:n)?r.showTags:r,{name:"if",hash:{},fn:e.program(24,i,0),inverse:e.noop,data:i}))?r:"")+"\r\n"+(null!=(r=t.if.call(s,null!=(r=null!=n?n.options:n)?r.externalLink:r,{name:"if",hash:{},fn:e.program(26,i,0),inverse:e.program(28,i,0),data:i}))?r:"")+" </div>\r\n</div>"},useData:!0})},1080:function(e,n,t){e.exports={columnNames:"QvhY0",smallSvgContainer:"_2qax8"}},1081:function(e,n,t){var o=t(10);e.exports=(o.default||o).template({1:function(e,n,t,o,i){e.propertyIsEnumerable;return' <button class="btn btn-light retry">'+e.escapeExpression((t.lang||n&&n.lang||e.hooks.helperMissing).call(null!=n?n:e.nullContext||{},"retry",{name:"lang",hash:{},data:i}))+"</button>\r\n"},compiler:[8,">= 4.3.0"],main:function(e,n,t,o,i){e.propertyIsEnumerable;var r,l=null!=n?n:e.nullContext||{};return"<div>\r\n"+(null!=(r=t.if.call(l,null!=(r=null!=n?n.options:n)?r.hasError:r,{name:"if",hash:{},fn:e.program(1,i,0),inverse:e.noop,data:i}))?r:"")+' <button class="btn btn-light cancel">'+e.escapeExpression((t.lang||n&&n.lang||e.hooks.helperMissing).call(l,"cancel",{name:"lang",hash:{},data:i}))+"</button>\r\n</div>\r\n"},useData:!0})},1082:function(e,n,t){var o=t(10);e.exports=(o.default||o).template({1:function(e,n,t,o,i){return" cursor-pointer"},3:function(e,n,t,o,i){var r;e.propertyIsEnumerable;return' <div class="bulk-checkbox-region '+(null!=(r=t.if.call(null!=n?n:e.nullContext||{},null!=(r=null!=n?n.options:n)?r.bulkPlaceholder:r,{name:"if",hash:{},fn:e.program(4,i,0),inverse:e.noop,data:i}))?r:"")+'"></div>\r\n'},4:function(e,n,t,o,i){var r;e.propertyIsEnumerable;return e.escapeExpression(e.lambda(null!=(r=null!=(r=null!=n?n.options:n)?r.styles:r)?r.bulkPlaceholder:r,n))},compiler:[8,">= 4.3.0"],main:function(e,n,t,o,i){e.propertyIsEnumerable;var r,l=e.lambda,a=e.escapeExpression,s=null!=n?n:e.nullContext||{};return'<div class="d-flex justify-content-between align-items-stretch p-3 drag-item '+a(l(null!=(r=null!=(r=null!=n?n.options:n)?r.styles:r)?r.videoItem:r,n))+(null!=(r=t.if.call(s,null!=(r=null!=n?n.options:n)?r.isClickable:r,{name:"if",hash:{},fn:e.program(1,i,0),inverse:e.noop,data:i}))?r:"")+'">\r\n'+(null!=(r=t.if.call(s,null!=(r=null!=n?n.options:n)?r.allowBulk:r,{name:"if",hash:{},fn:e.program(3,i,0),inverse:e.noop,data:i}))?r:"")+' <div class="thumbnail-region d-inline-block '+a(l(null!=(r=null!=(r=null!=n?n.options:n)?r.styles:r)?r.thumbnailContainer:r,n))+'"></div>\r\n <div class="metadata-region d-inline-block px-3 '+a(l(null!=(r=null!=(r=null!=n?n.options:n)?r.styles:r)?r.metaContainer:r,n))+'"></div>\r\n <div class="video-actions-region d-inline-block '+a(l(null!=(r=null!=(r=null!=n?n.options:n)?r.styles:r)?r.actionsContainer:r,n))+'"></div>\r\n</div>\r\n<div class="video-info-region '+a(l(null!=(r=null!=(r=null!=n?n.options:n)?r.styles:r)?r.previewContainer:r,n))+'"></div>'},useData:!0})},1083:function(e,n,t){var o=t(10);e.exports=(o.default||o).template({compiler:[8,">= 4.3.0"],main:function(e,n,t,o,i){return'<div class="videos-region"></div>'},useData:!0})},1091:function(e,n,t){"use strict";var o=t(2),i=t(4),r=t(42),l=t(307),a=t(6),s=t(30),u=t(15),c=t(0),p=t(13),f=t(1054),h=t(1031),d=t(1082),g=t.n(d),m=t(1051),y=t.n(m);function v(e){return(v="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}function b(e,n,t){return n in e?Object.defineProperty(e,n,{value:t,enumerable:!0,configurable:!0,writable:!0}):e[n]=t,e}function k(e,n){for(var t=0;t<n.length;t++){var o=n[t];o.enumerable=o.enumerable||!1,o.configurable=!0,"value"in o&&(o.writable=!0),Object.defineProperty(e,o.key,o)}}function w(e,n){return(w=Object.setPrototypeOf||function(e,n){return e.__proto__=n,e})(e,n)}function C(e){var n=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(e){return!1}}();return function(){var t,o=x(e);if(n){var i=x(this).constructor;t=Reflect.construct(o,arguments,i)}else t=o.apply(this,arguments);return O(this,t)}}function O(e,n){return!n||"object"!==v(n)&&"function"!=typeof n?function(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}(e):n}function x(e){return(x=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)})(e)}var E=function(e){!function(e,n){if("function"!=typeof n&&null!==n)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(n&&n.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),n&&w(e,n)}(m,e);var n,t,l,d=C(m);function m(e){return function(e,n){if(!(e instanceof n))throw new TypeError("Cannot call a class as a function")}(this,m),d.call(this,e)}return n=m,(t=[{key:"initialize",value:function(){this.initViewModel(),this.listenTo(this.channelName,"thumbnail:load",this.onThumbnailLoad),this.listenTo(this.channelName,"click:show:preview",this.onClickTogglePreview),this.listenTo(this.options.collectionViewChannel,"close:preview",this.onCloseCollectionPreview)}},{key:"name",get:function(){return"VideoItemComponent"}},{key:"defaults",get:function(){return{componentType:h.b.Base,allowBulk:!1}}},{key:"behaviors",get:function(){return f.a.getBehaviors(this,this.options.componentType)}},{key:"template",get:function(){return g.a}},{key:"channelName",get:function(){return p.k.generateUniqueChannelName(this)}},{key:"getTypeClassName",value:function(){switch(this.options.componentType){case h.b.ProcessingVideo:return y.a.processingVideo;default:return""}}},{key:"className",get:function(){var e="border-bottom";return this.options.allowBulk&&(e+=" ".concat(y.a.allowBulk)),this.options.componentType&&(e+=" ".concat(this.getTypeClassName())),e}},{key:"props",get:function(){return["collectionIdentifier"]}},{key:"elements",get:function(){return{"drag-selector":".drag-item",previewContainer:".".concat(y.a.previewContainer)}}},{key:"regions",value:function(){var e;return b(e={},h.a.Checkbox,{replaceElement:!0,el:".bulk-checkbox-region"}),b(e,h.a.Thumbnail,".thumbnail-region"),b(e,h.a.Metadata,".metadata-region"),b(e,h.a.VideoActions,".video-actions-region"),b(e,h.a.VideoInfo,".video-info-region"),e}},{key:"events",value:function(){return{click:"onClick"}}},{key:"initViewModel",value:function(){this.viewModel=s.a.get("".concat(this.name,":").concat(this.model.get("id")),{previewOpen:!1})}},{key:"isClickable",value:function(){return this.options.componentType!==h.b.ProcessingVideo}},{key:"onThumbnailLoad",value:function(){this.thumbnailLoaded=!0}},{key:"onClick",value:function(){this.isClickable()&&this.onClickTogglePreview(!1)}},{key:"onClickTogglePreview",value:function(){var e=!(arguments.length>0&&void 0!==arguments[0])||arguments[0];a.Radio.channel(this.options.collectionViewChannel).trigger("close:preview",this.cid),this.togglePreview(!this.viewModel.get("previewOpen")),this.logTogglePreviewAction(e)}},{key:"onNavigateAway",value:function(){this.viewModel.set({previewOpen:!1})}},{key:"togglePreview",value:function(e){var n=this;if(this.viewModel.set({previewOpen:e}),e)return this.setPreviewHeight(),this.listenToOnce(u.a.SHELL,o.a.EventNames.ROUTE,this.onNavigateAway),void this.render();this.stopListening(a.Radio.channel(u.a.SHELL),o.a.EventNames.ROUTE),this.getUI("previewContainer").height(0),window.setTimeout((function(){return n.render()}),300)}},{key:"setPreviewHeight",value:function(){var e=this;this.listenToOnce(this.getRegion(h.a.VideoInfo),"show",(function(){var n=e.getRegion(h.a.VideoInfo).currentView;e.listenTo(n,"render",(function(){e.getUI("previewContainer").height(n.$el.outerHeight())})),e.listenTo(e.channelName,"resize:preview",(function(){window.setTimeout((function(){return e.getUI("previewContainer").height(n.$el.outerHeight())}),0)})),n.isRendered()&&e.getUI("previewContainer").height(n.$el.outerHeight())}))}},{key:"onCloseCollectionPreview",value:function(e){this.cid!==e&&this.viewModel.get("previewOpen")&&this.togglePreview(!1)}},{key:"shouldLazyLoadThumbnail",value:function(){return!!p.h.isLazyLoadSupported(c.p)&&!this.thumbnailLoaded}},{key:"logTogglePreviewAction",value:function(e){var n=r.a.mergeOptions(this.options.analyticsOptions,{actionType:i.UserAction.Click,descriptor:i.ClickDescriptor.TogglePreview,workflowPhase:i.WorkflowPhase.Complete}),t={buttonClicked:e,show:this.viewModel.get("previewOpen")};r.a.logUserAction(t,n)}},{key:"viewOptions",value:function(){return{styles:y.a,allowBulk:this.options.allowBulk,bulkPlaceholder:this.options.componentType===h.b.ProcessingVideo&&this.options.allowBulk,isClickable:this.isClickable()}}},{key:"onRender",value:function(){f.a.renderRegions(this,this.options.componentType)}},{key:"onAttach",value:function(){this.viewModel.get("previewOpen")&&this.togglePreview(!0)}}])&&k(n.prototype,t),l&&k(n,l),m}(o.a.Component),S=t(303),P=t(102),R=t(9),I=t(304),_=t(1083),T=t.n(_);function V(e){return(V="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}function j(e,n){if(!(e instanceof n))throw new TypeError("Cannot call a class as a function")}function M(e,n){for(var t=0;t<n.length;t++){var o=n[t];o.enumerable=o.enumerable||!1,o.configurable=!0,"value"in o&&(o.writable=!0),Object.defineProperty(e,o.key,o)}}function L(e,n,t){return n&&M(e.prototype,n),t&&M(e,t),e}function B(e,n){if("function"!=typeof n&&null!==n)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(n&&n.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),n&&A(e,n)}function A(e,n){return(A=Object.setPrototypeOf||function(e,n){return e.__proto__=n,e})(e,n)}function D(e){var n=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(e){return!1}}();return function(){var t,o=U(e);if(n){var i=U(this).constructor;t=Reflect.construct(o,arguments,i)}else t=o.apply(this,arguments);return N(this,t)}}function N(e,n){return!n||"object"!==V(n)&&"function"!=typeof n?function(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}(e):n}function U(e){return(U=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)})(e)}t.d(n,"a",(function(){return W}));var H=function(e){B(t,e);var n=D(t);function t(e){return j(this,t),n.call(this,e)}return L(t,[{key:"name",get:function(){return"VideoItemListComponent"}},{key:"childView",get:function(){return E}},{key:"childViewOptions",get:function(){var e=this;return function(n){return{componentType:n.get("status")===P.a.Processing?h.b.ProcessingVideo:e.options.videoItemComponentType,videoWithMetadata:e.options.videosWithMetadata&&e.options.videosWithMetadata.get(n.get("id")),allowBulk:e.options.allowBulk,collectionIdentifier:e.options.collectionIdentifier,application:e.options.application,pendingItems:e.options.pendingItems,config:e.options.config,sourceMetadataOptions:e.options.sourceMetadataOptions,collectionViewChannel:e.options.collectionViewChannel,customerHasLocalCache:e.options.customerHasLocalCache,customerHasExchange:e.options.customerHasExchange,customerHasCustomLibrary:e.options.customerHasCustomLibrary,analyticsOptions:e.options.analyticsOptions,videoCollectionSource:e.options.videoCollectionSource,currentUser:e.options.currentUser}}}}]),t}(o.a.ComponentCollection),W=function(e){B(t,e);var n=D(t);function t(e){return j(this,t),n.call(this,e)}return L(t,[{key:"name",get:function(){return"VideoListView"}},{key:"className",get:function(){return"bg-white"}},{key:"props",get:function(){return["collectionIdentifier"]}},{key:"template",get:function(){return T.a}},{key:"defaults",get:function(){return{videoItemComponentType:h.b.Base,allowBulk:!1,emptyState:R.c.Default,videoCollectionSource:I.d.Folder}}},{key:"behaviors",get:function(){return[{behaviorClass:S.c,selector:".lazy-img",minBrowserSupportVersion:c.p},{behaviorClass:l.a,region:"videos",type:this.options.emptyStateType,componentOptions:this.options.emptyStateOptions,emptyStateComponents:c.h}]}},{key:"regions",value:function(){return{videos:".videos-region"}}},{key:"onRender",value:function(){var e=new H({collection:this.collection,videosWithMetadata:this.options.videosWithMetadata,videoItemComponentType:this.options.videoItemComponentType,allowBulk:this.options.allowBulk,collectionIdentifier:this.collectionIdentifier,application:this.options.application,pendingItems:this.options.pendingItems,config:this.options.config,sourceMetadataOptions:this.options.sourceMetadataOptions,collectionViewChannel:this.options.collectionViewChannel,customerHasLocalCache:this.options.customerHasLocalCache,customerHasExchange:this.options.customerHasExchange,customerHasCustomLibrary:this.options.customerHasCustomLibrary,analyticsOptions:r.a.mergeOptions(this.options.analyticsOptions,{location:i.LocationContext.VideoListItem,entity:i.EntityType.Video}),videoCollectionSource:this.options.videoCollectionSource,currentUser:this.options.currentUser});this.showChildView("videos",e)}}]),t}(o.a.Component)},1320:function(e,n,t){e.exports={svgContainer:"_2KSbB"}},1321:function(e,n,t){var o=t(10);e.exports=(o.default||o).template({1:function(e,n,t,o,i){e.propertyIsEnumerable;var r,l=e.lambda,a=e.escapeExpression;return' <a class="d-inline-block ml-2 '+a(l(null!=(r=null!=(r=null!=n?n.options:n)?r.styles:r)?r.svgContainer:r,n))+'" href="'+a(l(null!=(r=null!=n?n.options:n)?r.supportUrl:r,n))+'">'+(null!=(r=l(null!=(r=null!=n?n.options:n)?r.svg:r,n))?r:"")+"</a>\r\n"},compiler:[8,">= 4.3.0"],main:function(e,n,t,o,i){e.propertyIsEnumerable;var r,l=null!=n?n:e.nullContext||{},a=e.hooks.helperMissing,s=e.escapeExpression;return'<div class="pl-3 pt-3 pr-3">\r\n <div class="border-bottom">\r\n <div class="d-flex align-items-center pb-3 border-bottom">\r\n <h1 class="h3 d-inline-block m-0">'+s((t.lang||n&&n.lang||a).call(l,"heading",{name:"lang",hash:{},data:i}))+" </h1>\r\n"+(null!=(r=t.if.call(l,null!=(r=null!=n?n.options:n)?r.supportUrl:r,{name:"if",hash:{},fn:e.program(1,i,0),inverse:e.noop,data:i}))?r:"")+' </div>\r\n <p class="py-3 m-0">\r\n '+s((t.lang||n&&n.lang||a).call(l,"description",{name:"lang",hash:{},data:i}))+'\r\n </p>\r\n </div> \r\n</div>\r\n<div class="video-list-region"></div>\r\n<div class="pagination-region"></div>\r\n<div class="empty-region"></div>'},useData:!0})},1436:function(e,n,t){"use strict";t.r(n),t.d(n,"RestrictedVideoListView",(function(){return I}));var o=t(2),i=t(5),r=t(3),l=t(16),a=t(143),s=t(1063),u=t(308),c=t(306),p=t(49),f=t(0),h=t(9),d=t(200),g=t(103),m=t(1091),y=t(1031),v=t(144),b=t(1320),k=t.n(b),w=t(1321),C=t.n(w);function O(e){return(O="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 x(e,n){for(var t=0;t<n.length;t++){var o=n[t];o.enumerable=o.enumerable||!1,o.configurable=!0,"value"in o&&(o.writable=!0),Object.defineProperty(e,o.key,o)}}function E(e,n){return(E=Object.setPrototypeOf||function(e,n){return e.__proto__=n,e})(e,n)}function S(e){var n=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(e){return!1}}();return function(){var t,o=R(e);if(n){var i=R(this).constructor;t=Reflect.construct(o,arguments,i)}else t=o.apply(this,arguments);return P(this,t)}}function P(e,n){return!n||"object"!==O(n)&&"function"!=typeof n?function(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}(e):n}function R(e){return(R=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)})(e)}var I=function(e){!function(e,n){if("function"!=typeof n&&null!==n)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(n&&n.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),n&&E(e,n)}(w,e);var n,t,o,b=S(w);function w(e){return function(e,n){if(!(e instanceof n))throw new TypeError("Cannot call a class as a function")}(this,w),b.call(this,e)}return n=w,(t=[{key:"initialize",value:function(){this.bindListeners(),this.restrictedVideoDataService=i.a.getInstance(f.g.RestrictedVideo,this),this.videoDataService=i.a.getInstance(f.g.Video,this)}},{key:"bindListeners",value:function(){this.listenTo(f.e.RESTRICTED_VIDEO,"".concat(f.f.RESTRICTED_VIDEOS,":").concat(this.options.page,":sync"),this.render),this.listenTo(this.channelName,"fetch:video:with:metadata",this.fetchVideoWithMetadata),this.listenTo(f.e.RESTRICTED_VIDEO,"cache:cleared",this.render)}},{key:"name",get:function(){return"RestrictedVideoListView"}},{key:"title",get:function(){return r.a.getPhrase(this.lang,"title")}},{key:"className",get:function(){return"bg-white"}},{key:"channelName",get:function(){return"".concat(this.name).concat(this.cid)}},{key:"template",get:function(){return C.a}},{key:"lang",get:function(){return"videoAccess.restrictedVideoList"}},{key:"behaviors",get:function(){return[{behaviorClass:a.a,selector:".".concat(k.a.svgContainer),title:r.a.getPhrase(this.lang,"findOutMore")}]}},{key:"defaults",get:function(){return{page:1}}},{key:"regions",value:function(){return{videos:{replaceElement:!0,el:".video-list-region",partialLoading:h.h.VideoList},pagination:{replaceElement:!0,el:".pagination-region"},empty:{replaceElement:!0,el:".empty-region"}}}},{key:"setVideosWithMetadata",value:function(){this.videoCollection&&!this.videosWithMetadata&&(this.videosWithMetadata=new p.a(this.videoCollection.map((function(e){return new g.a({id:e.get("id")})}))))}},{key:"renderVideoList",value:function(){this.showChildView("videos",new m.a({collection:this.videoCollection,videosWithMetadata:this.videosWithMetadata,application:f.b.VIDEO_ACCESS,collectionIdentifier:null,videoItemComponentType:y.b.VideoAccess,config:this.config,emptyStateType:h.c.VideoAccess,emptyStateOptions:{heading:r.a.getPhrase(this.lang,"emptyStateHeading")},collectionViewChannel:this.channelName,currentUser:this.currentUser}))}},{key:"renderPagination",value:function(){var e=this.restrictedVideoDataService.getPaginationCursors(this.options.page);this.showChildView("pagination",new s.a({cursors:e,appLink:{application:f.b.VIDEO_ACCESS,action:f.a.VideoAccess.HOME},cursorParamName:"page"}))}},{key:"fetchVideoWithMetadata",value:function(e){var n=this;this.videoDataService.getVideo(e,(function(t){var o=n.videosWithMetadata.get(e);o&&(o.set(t.toJSON()),o.set({dataFetched:!0}))}))}},{key:"requiredResources",get:function(){return{config:d.b.config,currentUser:v.b.currentUser}}},{key:"onBeforeRender",value:function(){return this.videoCollection=this.restrictedVideoDataService.getRestrictedVideos(this.options.page),!!this.videoCollection&&(this.setVideosWithMetadata(),!0)}},{key:"viewOptions",value:function(){var e,n;return{styles:k.a,supportUrl:u.a.getArticle(null===(e=this.config)||void 0===e?void 0:e.get("supportSiteUrl"),c.a.VideoAccess,null===(n=this.currentUser)||void 0===n?void 0:n.get("countryCode")),svg:l.a.getSvg(l.b.Info)}}},{key:"onRender",value:function(){this.renderVideoList(),this.renderPagination()}}])&&x(n.prototype,t),o&&x(n,o),w}(o.a.View)}}]);
@@ -1 +0,0 @@
1
- (window.webpackJsonp_clickview_library_editor=window.webpackJsonp_clickview_library_editor||[]).push([[25],{1090:function(e,t,n){"use strict";var o=n(203),r=n(1),i=n(201),a=n(0),l=n(145),s=n(305);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){return function(e){if(Array.isArray(e))return f(e)}(e)||function(e){if("undefined"!=typeof Symbol&&Symbol.iterator in Object(e))return Array.from(e)}(e)||function(e,t){if(!e)return;if("string"==typeof e)return f(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);"Object"===n&&e.constructor&&(n=e.constructor.name);if("Map"===n||"Set"===n)return Array.from(e);if("Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n))return f(e,t)}(e)||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(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,o=new Array(t);n<t;n++)o[n]=e[n];return o}function p(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 d(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 r=y(this).constructor;n=Reflect.construct(o,arguments,r)}else n=o.apply(this,arguments);return m(this,n)}}function m(e,t){return!t||"object"!==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 y(e){return(y=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)})(e)}var g=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)}(c,e);var t,n,o,i=d(c);function c(e){var t;return function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,c),(t=i.call(this,{collectionPrefix:"".concat(a.f.RECENT_VIDEOS,":collection"),cursor:e.cursor,sort:e.sort})).setAdditionalData(e),t}return t=c,(n=[{key:"setAdditionalData",value:function(e){var t=e.libraryIds,n=e.dateQueryString,o=e.subjects;t&&(this.libraryIds=t),o&&(r.isArray(o)&&o.length&&(this.subjects=o),r.isArray(o)||(this.subjects=[o]));var i=r.findWhere(s.g,{queryString:n})||s.e;this.dateOption=new l.b(i)}},{key:"toString",value:function(){var e=this.subjects&&this.subjects.length&&this.subjects.map((function(e){return escape(e.get("name"))}))||[];return[this.collectionPrefix,this.libraryIds,this.dateOption.get("from"),this.dateOption.get("to")].concat(u(e),[this.cursor]).filter(Boolean).join(":")}},{key:"toParams",value:function(){var e={};return this.libraryIds&&(e.libraryIds=this.libraryIds),this.dateOption&&(e.from=this.dateOption.get("from"),e.to=this.dateOption.get("to")),this.subjects&&(e.subjectIds=r.flatten(this.subjects.map((function(e){return e.get("subjectIds")})))),this.cursor&&(e.cursor=this.cursor),e}}])&&p(t.prototype,n),o&&p(t,o),c}(i.a);function b(e){return(b="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}function v(e,t){for(var n=0;n<t.length;n++){var o=t[n];o.enumerable=o.enumerable||!1,o.configurable=!0,"value"in o&&(o.writable=!0),Object.defineProperty(e,o.key,o)}}function w(e,t){return(w=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e})(e,t)}function k(e){var t=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(e){return!1}}();return function(){var n,o=E(e);if(t){var r=E(this).constructor;n=Reflect.construct(o,arguments,r)}else n=o.apply(this,arguments);return C(this,n)}}function C(e,t){return!t||"object"!==b(t)&&"function"!=typeof t?function(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}(e):t}function E(e){return(E=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)})(e)}var O=function(e){!function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),t&&w(e,t)}(c,e);var t,n,o,i=k(c);function c(e){var t;return function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,c),(t=i.call(this,{collectionPrefix:"".concat(a.f.RECENT_SUBJECTS,":collection"),sort:e.sort})).setAdditionalData(e),t}return t=c,(n=[{key:"setAdditionalData",value:function(e){var t=e.libraryIds,n=e.dateQueryString;t&&(this.libraryIds=t);var o=r.findWhere(s.g,{queryString:n})||s.e;this.dateOption=new l.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 e={};return this.libraryIds&&(e.libraryIds=this.libraryIds),this.dateOption&&(e.from=this.dateOption.get("from"),e.to=this.dateOption.get("to")),e}}])&&v(t.prototype,n),o&&v(t,o),c}(i.a);function x(e){return(x="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}function S(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function R(e,t){return(R=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e})(e,t)}function _(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 r=T(this).constructor;n=Reflect.construct(o,arguments,r)}else n=o.apply(this,arguments);return P(this,n)}}function P(e,t){return!t||"object"!==x(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)}var I=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&&R(e,t)}(n,e);var t=_(n);function n(e,o){var r=arguments.length>2&&void 0!==arguments[2]?arguments[2]:"";return S(this,n),t.call(this,{collectionPrefix:a.f.LIBRARY_FOLDERS,id:e,sort:o,cursor:r})}return n}(i.a);n.d(t,"d",(function(){return o.a})),n.d(t,"b",(function(){return g})),n.d(t,"c",(function(){return O})),n.d(t,"a",(function(){return I}))},1115:function(e,t,n){"use strict";n.d(t,"a",(function(){return v}));var o=n(6),r=n(2),i=n(30),a=n(16),l=n(303),s=n(13),c=n(1041),u=n(199),f=n(1138),p=n.n(f);function h(e){return(h="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}function 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 m(e,t){return(m=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=b(e);if(t){var r=b(this).constructor;n=Reflect.construct(o,arguments,r)}else n=o.apply(this,arguments);return g(this,n)}}function g(e,t){return!t||"object"!==h(t)&&"function"!=typeof t?function(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}(e):t}function b(e){return(b=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)})(e)}var 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&&m(e,t)}(h,e);var t,n,r,f=y(h);function h(e){return function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,h),f.call(this,e)}return t=h,(n=[{key:"initialize",value:function(){this.options.playerViewModelKey&&this.listenToPlayerViewModel(),this.initViewModel(),this.options.editing&&this.syncTime()}},{key:"name",get:function(){return"ChapterFormComponent"}},{key:"lang",get:function(){return"libraryEditor.chapterForm"}},{key:"tagName",get:function(){return"form"}},{key:"viewModelName",get:function(){return"".concat(this.name,":").concat(this.cid)}},{key:"template",get:function(){return p.a}},{key:"className",get:function(){return this.options.creating?"py-3":"border-top p-2"}},{key:"behaviors",get:function(){return[{behaviorClass:l.a,bindViewModel:!0},{behaviorClass:l.f,bindViewModel:!0}]}},{key:"events",value:function(){return{submit:"onSubmit","change .chapter-name":"validateName","keyup .chapter-name":"validateName","change .time-input":"onTimeInputUpdate","click .time-input":"onTimeInputUpdate","keyup .time-input":"onTimeInputUpdate","click .cancel":"destroyView"}}},{key:"bindings",get:function(){return{"[name=name]":{observe:"name",setOptions:{validate:!0}},"[name=hours]":{observe:"hours",setOptions:{validate:!0}},"[name=minutes]":{observe:"minutes",setOptions:{validate:!0}},"[name=seconds]":{observe:"seconds",setOptions:{validate:!0}}}}},{key:"initViewModel",value:function(){this.viewModel=i.a.get(this.viewModelName,this.model.toJSON())}},{key:"listenToPlayerViewModel",value:function(){var e=i.a.get(this.options.playerViewModelKey);this.listenTo(e,"change:currenttime",this.updateTime)}},{key:"updateTime",value:function(e){this.webPlayerTime=e.get("currenttime"),this.syncTime()}},{key:"syncTime",value:function(){var e=this.viewModel.get("startTime")||this.webPlayerTime;this.viewModel.set({hours:s.x.getHoursComponent(e),minutes:s.x.getMinutesComponent(e),seconds:s.x.getSecondsComponent(e)})}},{key:"getNewTime",value:function(){return this.enabled()?s.x.parseTime(this.viewModel.pick("hours","minutes","seconds")):0}},{key:"enabled",value:function(){return this.options.creating||0!==this.model.collection.indexOf(this.model)}},{key:"maxTimes",value:function(){var e=s.x.millisecondsToSeconds(this.options.duration),t=s.x.getHoursComponent(e),n=t>0?59:s.x.getMinutesComponent(e);return{maxHr:t,maxMin:n,maxSec:n>0?59:s.x.getSecondsComponent(e)}}},{key:"onTimeInputUpdate",value:function(){o.Radio.channel(this.options.channelName).trigger(u.LibraryEditorActions.UpdateChapterTime,this.getNewTime()),this.validateStartTime()}},{key:"destroyView",value:function(){o.Radio.channel(this.options.channelName).trigger(u.LibraryEditorActions.CancelChapterEdit),this.destroy()}},{key:"onSubmit",value:function(e){if(e.preventDefault(),!this.validate())return!1;var t={id:this.viewModel.get("id"),name:this.viewModel.get("name"),startTime:this.getNewTime()},n=o.Radio.channel(this.options.channelName),r=u.LibraryEditorActions.CreateChapter;this.options.editing&&(r=u.LibraryEditorActions.UpdateChapter),n.trigger(r,t),this.stopListening(this.viewModel),i.a.clear(this.viewModelName)}},{key:"validate",value:function(){this.viewModel.validate();var e=this.validateStartTime(),t=this.validateName();return this.viewModel.isValid()&&e&&t}},{key:"validateStartTime",value:function(){var e=this,t=o.Validation.callbacks,n=t.valid,r=t.invalid,i=this.model.collection||this.options.collection,a=this.getNewTime(),l=c.a.isValidChapterTime(this.model,a,this.options.duration,i),s=[],u=["seconds","minutes","hours"];return a<0?s=u:l&&(s.push("seconds"),a>59&&s.push("minutes"),a>3540&&s.push("hours")),u.forEach((function(t){return n(e,t,null)})),s.forEach((function(t){return r(e,t,l,null)})),!l}},{key:"validateName",value:function(e){if(!e||13!==e.keyCode){var t=o.Validation.callbacks,n=t.valid,r=t.invalid,i=this.model.collection||this.options.collection,a=c.a.isValidChapterName(this.model,this.viewModel.get("name"),i);return a?r(this,"name",a,null):n(this,"name",null),!a}}},{key:"viewOptions",value:function(){var e=this.maxTimes(),t=e.maxHr,n=e.maxMin,o=0===e.maxSec,r=0===n,i=0===t;return Object.assign(Object.assign({},this.options),{enabled:this.enabled(),timeId:"".concat(this.cid,"-time"),chapterId:"".concat(this.cid,"-chapter-name"),plusSvg:a.a.getSvg(a.b.Plus),secDisabled:o,minDisabled:r,hrDisabled:i})}}])&&d(t.prototype,n),r&&d(t,r),h}(r.a.Component)},1123:function(e,t,n){"use strict";var o=n(2),r=n(6),i=n(1135),a=n.n(i),l=n(111),s=n(4),c=n(42),u=n(16),f=n(1124),p=n(1136),h=n.n(p),d=n(1137),m=n.n(d);function y(e){return(y="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}function g(e,t){for(var n=0;n<t.length;n++){var o=t[n];o.enumerable=o.enumerable||!1,o.configurable=!0,"value"in o&&(o.writable=!0),Object.defineProperty(e,o.key,o)}}function b(e,t){return(b=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=k(e);if(t){var r=k(this).constructor;n=Reflect.construct(o,arguments,r)}else n=o.apply(this,arguments);return w(this,n)}}function w(e,t){return!t||"object"!==y(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 k(e){return(k=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)})(e)}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&&b(e,t)}(i,e);var t,n,o,r=v(i);function i(e){return function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,i),r.call(this,e)}return t=i,(n=[{key:"name",get:function(){return"ResourceItemComponent"}},{key:"template",get:function(){return h.a}},{key:"className",get:function(){return"".concat(m.a.container," rounded p-2 mb-2")}},{key:"events",value:function(){return{"click .delete":"onClickDelete","click .edit":"onClickEdit"}}},{key:"appLinks",get:function(){return{".edit":this.options.getEditAppLink(this.model.get("id"))}}},{key:"onClickEdit",value:function(){var e=c.a.mergeOptions(this.options.analyticsOptions,{actionType:s.UserAction.Edit,entity:s.EntityType.Resource,workflowPhase:s.WorkflowPhase.Start}),t={id:this.model.get("id"),parentId:+this.options.videoId};c.a.logUserAction(t,e)}},{key:"onClickDelete",value:function(){l.a.isFunction(this.options.onClickDelete)&&this.options.onClickDelete(this.model)}},{key:"viewOptions",value:function(){var e=this.model.get("metadata"),t=e?e.type:"";return{editable:this.options.editable,extension:f.a.mapTypeToExtension(t),svg:u.a.getSvg(f.a.mapTypeToSvg(t)),iconClass:f.a.mapTypeToClass(t),resourceType:f.a.mapTypeToName(t),editSvg:u.a.getSvg(u.b.Edit),trashSvg:u.a.getSvg(u.b.Delete)}}}])&&g(t.prototype,n),o&&g(t,o),i}(o.a.Component),E=n(3),O=n(120),x=n(152),S=n(206);function R(e){return(R="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}function _(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function P(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 T(e,t,n){return t&&P(e.prototype,t),n&&P(e,n),e}function I(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&&j(e,t)}function j(e,t){return(j=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e})(e,t)}function D(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=V(e);if(t){var r=V(this).constructor;n=Reflect.construct(o,arguments,r)}else n=o.apply(this,arguments);return L(this,n)}}function L(e,t){return!t||"object"!==R(t)&&"function"!=typeof t?function(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}(e):t}function V(e){return(V=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)})(e)}n.d(t,"b",(function(){return N})),n.d(t,"a",(function(){return B}));var N=function(e){I(n,e);var t=D(n);function n(e){return _(this,n),t.call(this,e)}return T(n,[{key:"name",get:function(){return"VideoResourcesComponentCollection"}},{key:"className",get:function(){return"mt-3"}},{key:"lang",get:function(){return"libraryEditor.videoResources"}},{key:"childView",get:function(){return C}},{key:"childViewOptions",get:function(){var e=this;return{editable:this.options.editable,videoId:this.options.videoId,analyticsOptions:this.options.analyticsOptions,onClickDelete:function(t){return e.onClickDelete(t)},getEditAppLink:function(t){return{application:O.a.LIBRARY_EDITOR,action:x.a.LibraryEditor.EDIT_RESOURCE,args:[e.options.videoId,t]}}}}},{key:"onClickDelete",value:function(e){var t=this;new S.a({title:E.a.getPhrase(this.lang,"removeHeading"),text:E.a.getPhrase(this.lang,"removeBody",{resourceName:e.get("name")}),buttons:[{text:E.a.getPhrase(this.lang,"remove"),className:"btn btn-danger",success:!0},{text:E.a.getPhrase(this.lang,"cancel"),className:"btn btn-secondary",close:!0}],channelName:"".concat(this.name).concat(this.cid)}).render().done((function(){r.Radio.channel(t.options.channelName).trigger("delete:resource",e.get("id"))}))}}]),n}(o.a.ComponentCollection),B=function(e){I(n,e);var t=D(n);function n(e){return _(this,n),t.call(this,e)}return T(n,[{key:"name",get:function(){return"VideoResourcesComponent"}},{key:"template",get:function(){return a.a}},{key:"lang",get:function(){return"libraryEditor.videoResources"}},{key:"channelName",get:function(){return"".concat(this.name).concat(this.cid)}},{key:"className",get:function(){return this.options.customCollection?"":"py-3 border-top"}},{key:"regions",value:function(){return{resources:{replaceElement:!0,el:".resource-list-region"}}}},{key:"renderResources",value:function(){var e=new N({collection:this.options.customCollection||this.model.resources,editable:this.options.editable||!1,videoId:this.options.videoId||this.model.get("id"),channelName:this.options.parentChannelName||this.channelName});this.showChildView("resources",e)}},{key:"viewOptions",value:function(){return{resourcesHeadingText:this.options.headerText||E.a.getPhrase(this.lang,"heading"),emptyStateText:this.options.emptyStateText}}},{key:"onRender",value:function(){this.renderResources()}}]),n}(o.a.Component)},1124:function(e,t,n){"use strict";var o,r=n(3),i=n(16),a=n(62);function l(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}!function(e){e.Pdf="pdf",e.Image="image",e.PowerPoint="powerpoint",e.Document="document",e.Excel="excel",e.Zip="archive",e.File="text"}(o||(o={})),n.d(t,"a",(function(){return c}));var s="shared.shared-utils",c={mapRatingToClass:function(e){if(!e)return"";return function(e){switch(!0){case e<32:return"bg-purple";case e<48:return"bg-green";case e<80:return"bg-info";case e<96:return"bg-red";case e<128:return"bg-pink";case e>=128:return"bg-yellow";default:return""}}(e)},mapSourceToDisplayName:function(e){switch(e.type){case a.a.HostedLibrary:case a.a.CustomLibrary:return e.name;case a.a.Exchange:return r.a.getPhrase(s,"exchange");case a.a.Workspace:return r.a.getPhrase(s,"workspace");default:return""}},mapSourceToClass:function(e){switch(e){case a.a.HostedLibrary:case a.a.CustomLibrary:return"bg-info";case a.a.Exchange:return"bg-green";case a.a.Workspace:default:return"bg-red"}},isInteractive:function(e){var t,n;return!!(null===(n=null===(t=null==e?void 0:e.interactives)||void 0===t?void 0:t.data)||void 0===n?void 0:n.length)},mapTypeToSvg:function(e){var t,n=(l(t={},o.Pdf,i.b.FilePDF),l(t,o.Image,i.b.FileImg),l(t,o.PowerPoint,i.b.FilePowerpoint),l(t,o.Document,i.b.FileWord),l(t,o.Excel,i.b.FileExcel),l(t,o.Zip,i.b.FileZip),l(t,o.File,i.b.File),t)[e];return n||(n=i.b.Folder),n},mapTypeToClass:function(e){switch(e){case o.Pdf:return"icon-red";case o.Image:return"icon-purple";case o.Document:return"icon-blue";case o.Excel:return"icon-green";case o.PowerPoint:return"icon-orange";case o.Zip:return"icon-teal";case o.File:return"icon-gray";default:return""}},mapTypeToExtension:function(e){if(!e)return"";return{pdf:"pdf",image:"png",powerpoint:"pptx"}[e.toLowerCase()]},mapTypeToName:function(e){if(!e)return"";switch(e){case o.Pdf:return r.a.getPhrase(s,"pdf");case o.Image:return r.a.getPhrase(s,"image");case o.Document:return r.a.getPhrase(s,"document");case o.Excel:return r.a.getPhrase(s,"spreadsheet");case o.PowerPoint:return r.a.getPhrase(s,"presentation");case o.Zip:return r.a.getPhrase(s,"zipArchive");case o.File:return r.a.getPhrase(s,"file");default:return""}}}},1133:function(e,t,n){var o=n(10);e.exports=(o.default||o).template({compiler:[8,">= 4.3.0"],main:function(e,t,n,o,r){return'<nav class="breadcrumbs-region" aria-label="breadcrumb"></nav>'},useData:!0})},1134:function(e,t,n){var o=n(10);e.exports=(o.default||o).template({1:function(e,t,n,o,r){var i;e.propertyIsEnumerable;return e.escapeExpression("function"==typeof(i=null!=(i=n.name||(null!=t?t.name:t))?i:e.hooks.helperMissing)?i.call(null!=t?t:e.nullContext||{},{name:"name",hash:{},data:r}):i)+"\r\n"},3:function(e,t,n,o,r){var i;e.propertyIsEnumerable;return'<a class="info-link">'+e.escapeExpression("function"==typeof(i=null!=(i=n.name||(null!=t?t.name:t))?i:e.hooks.helperMissing)?i.call(null!=t?t:e.nullContext||{},{name:"name",hash:{},data:r}):i)+"</a>\r\n"},compiler:[8,">= 4.3.0"],main:function(e,t,n,o,r){var i;e.propertyIsEnumerable;return null!=(i=n.if.call(null!=t?t:e.nullContext||{},null!=(i=null!=t?t.options:t)?i.isActive:i,{name:"if",hash:{},fn:e.program(1,r,0),inverse:e.program(3,r,0),data:r}))?i:""},useData:!0})},1135:function(e,t,n){var o=n(10);e.exports=(o.default||o).template({1:function(e,t,n,o,r){var i;e.propertyIsEnumerable;return"<p>"+e.escapeExpression(e.lambda(null!=(i=null!=t?t.options:t)?i.emptyStateText:i,t))+"</p>"},compiler:[8,">= 4.3.0"],main:function(e,t,n,o,r){var i;e.propertyIsEnumerable;return"<h5>"+e.escapeExpression(e.lambda(null!=(i=null!=t?t.options:t)?i.resourcesHeadingText:i,t))+"</h5>\r\n"+(null!=(i=n.if.call(null!=t?t:e.nullContext||{},null!=(i=null!=t?t.options:t)?i.emptyStateText:i,{name:"if",hash:{},fn:e.program(1,r,0),inverse:e.noop,data:r}))?i:"")+'\r\n<div class="resource-list-region"></div>'},useData:!0})},1136:function(e,t,n){var o=n(10);e.exports=(o.default||o).template({1:function(e,t,n,o,r){e.propertyIsEnumerable;var i,a=e.lambda;return'<a class="float-right svg-container cursor-pointer text-muted delete">'+(null!=(i=a(null!=(i=null!=t?t.options:t)?i.trashSvg:i,t))?i:"")+'</a>\r\n<a class="float-right svg-container cursor-pointer text-muted edit">'+(null!=(i=a(null!=(i=null!=t?t.options:t)?i.editSvg:i,t))?i:"")+"</a>\r\n"},compiler:[8,">= 4.3.0"],main:function(e,t,n,o,r){e.propertyIsEnumerable;var i,a,l=e.lambda,s=e.escapeExpression,c=null!=t?t:e.nullContext||{},u=e.hooks.helperMissing;return'<span title="'+s(l(null!=(i=null!=t?t.options:t)?i.resourceType:i,t))+'" class="d-inline-block align-middle mr-2 svg-container '+s(l(null!=(i=null!=t?t.options:t)?i.iconClass:i,t))+'">'+(null!=(i=l(null!=(i=null!=t?t.options:t)?i.svg:i,t))?i:"")+'</span>\r\n<a href="'+s("function"==typeof(a=null!=(a=n.url||(null!=t?t.url:t))?a:u)?a.call(c,{name:"url",hash:{},data:r}):a)+"?name="+s("function"==typeof(a=null!=(a=n.name||(null!=t?t.name:t))?a:u)?a.call(c,{name:"name",hash:{},data:r}):a)+'" class="align-middle">\r\n '+s("function"==typeof(a=null!=(a=n.name||(null!=t?t.name:t))?a:u)?a.call(c,{name:"name",hash:{},data:r}):a)+"\r\n</a>\r\n"+(null!=(i=n.if.call(c,null!=(i=null!=t?t.options:t)?i.editable:i,{name:"if",hash:{},fn:e.program(1,r,0),inverse:e.noop,data:r}))?i:"")},useData:!0})},1137:function(e,t,n){e.exports={container:"f6lVD"}},1138:function(e,t,n){var o=n(10);e.exports=(o.default||o).template({1:function(e,t,n,o,r){e.propertyIsEnumerable;var i,a=e.lambda,l=e.escapeExpression,s=null!=t?t:e.nullContext||{},c=e.hooks.helperMissing;return' <div class="col-6 form-group">\r\n <label class="d-block" for="'+l(a(null!=(i=null!=t?t.options:t)?i.timeId:i,t))+'">'+l((n.lang||t&&t.lang||c).call(s,"startTimeLabel",{name:"lang",hash:{},data:r}))+'</label>\r\n <input\r\n class="form-control d-inline-block col-3 time-input hour-input"\r\n type="number"\r\n placeholder="'+l((n.lang||t&&t.lang||c).call(s,"hoursPlaceholder",{name:"lang",hash:{},data:r}))+'"\r\n name="hours"\r\n autocomplete="off"\r\n '+(null!=(i=n.if.call(s,null!=(i=null!=t?t.options:t)?i.hrDisabled:i,{name:"if",hash:{},fn:e.program(2,r,0),inverse:e.noop,data:r}))?i:"")+'> <b>:</b>\r\n <input\r\n class="form-control d-inline-block col-3 time-input minute-input"\r\n type="number"\r\n placeholder="'+l((n.lang||t&&t.lang||c).call(s,"minutesPlaceholder",{name:"lang",hash:{},data:r}))+'"\r\n name="minutes"\r\n autocomplete="off"\r\n '+(null!=(i=n.if.call(s,null!=(i=null!=t?t.options:t)?i.minDisabled:i,{name:"if",hash:{},fn:e.program(2,r,0),inverse:e.noop,data:r}))?i:"")+'> <b>:</b>\r\n <input\r\n class="form-control d-inline-block col-3 time-input second-input"\r\n type="number"\r\n placeholder="'+l((n.lang||t&&t.lang||c).call(s,"secondsPlaceholder",{name:"lang",hash:{},data:r}))+'"\r\n name="seconds"\r\n id="'+l(a(null!=(i=null!=t?t.options:t)?i.timeId:i,t))+'"\r\n autocomplete="off"\r\n '+(null!=(i=n.if.call(s,null!=(i=null!=t?t.options:t)?i.secDisabled:i,{name:"if",hash:{},fn:e.program(2,r,0),inverse:e.noop,data:r}))?i:"")+'>\r\n <div class="form-feedback"></div>\r\n </div>\r\n'},2:function(e,t,n,o,r){return"disabled"},4:function(e,t,n,o,r){var i;e.propertyIsEnumerable;return' <button type="submit" class="btn btn-primary btn-sm ml-2">\r\n <span class="d-inline-block align-middle svg-container">'+(null!=(i=e.lambda(null!=(i=null!=t?t.options:t)?i.plusSvg:i,t))?i:"")+'</span>\r\n <span class="align-middle">'+e.escapeExpression((n.lang||t&&t.lang||e.hooks.helperMissing).call(null!=t?t:e.nullContext||{},"add",{name:"lang",hash:{},data:r}))+"</span>\r\n </button>\r\n"},6:function(e,t,n,o,r){e.propertyIsEnumerable;var i=null!=t?t:e.nullContext||{},a=e.hooks.helperMissing,l=e.escapeExpression;return' <button type="submit" class="btn btn-primary btn-sm ml-2">'+l((n.lang||t&&t.lang||a).call(i,"save",{name:"lang",hash:{},data:r}))+'</button>\r\n <button type="button" class="btn btn-secondary btn-sm cancel ml-2">'+l((n.lang||t&&t.lang||a).call(i,"cancel",{name:"lang",hash:{},data:r}))+"</button>\r\n"},compiler:[8,">= 4.3.0"],main:function(e,t,n,o,r){e.propertyIsEnumerable;var i,a=e.lambda,l=e.escapeExpression,s=null!=t?t:e.nullContext||{},c=e.hooks.helperMissing;return'<div class="row">\r\n <div class="col-6 form-group">\r\n <label for="'+l(a(null!=(i=null!=t?t.options:t)?i.chapterId:i,t))+'">'+l((n.lang||t&&t.lang||c).call(s,"nameLabel",{name:"lang",hash:{},data:r}))+'</label>\r\n <input type="text" class="form-control chapter-name" name="name" id="'+l(a(null!=(i=null!=t?t.options:t)?i.chapterId:i,t))+'" placeholder="'+l((n.lang||t&&t.lang||c).call(s,"namePlaceholder",{name:"lang",hash:{},data:r}))+'" autofocus autocomplete="off">\r\n <div class="form-feedback"></div>\r\n </div>\r\n'+(null!=(i=n.if.call(s,null!=(i=null!=t?t.options:t)?i.enabled:i,{name:"if",hash:{},fn:e.program(1,r,0),inverse:e.noop,data:r}))?i:"")+'</div>\r\n\r\n<div class="row">\r\n'+(null!=(i=n.if.call(s,null!=(i=null!=t?t.options:t)?i.creating:i,{name:"if",hash:{},fn:e.program(4,r,0),inverse:e.noop,data:r}))?i:"")+"\r\n"+(null!=(i=n.if.call(s,null!=(i=null!=t?t.options:t)?i.editing:i,{name:"if",hash:{},fn:e.program(6,r,0),inverse:e.noop,data:r}))?i:"")+"</div>"},useData:!0})},1139:function(e,t,n){var o=n(10);e.exports=(o.default||o).template({1:function(e,t,n,o,r){var i;e.propertyIsEnumerable;return e.escapeExpression(e.lambda(null!=(i=null!=(i=null!=t?t.options:t)?i.styles:i)?i.loading:i,t))},3:function(e,t,n,o,r){e.propertyIsEnumerable;var i,a=e.lambda,l=e.escapeExpression,s=null!=t?t:e.nullContext||{};return' <div class="col-2 text-right">\r\n <a class="action edit-chapter my-2 svg-container '+l(a(null!=(i=null!=(i=null!=t?t.options:t)?i.styles:i)?i.svgContainer:i,t))+' d-inline-block text-muted"\r\n title="'+l((n.lang||t&&t.lang||e.hooks.helperMissing).call(s,"edit",{name:"lang",hash:{},data:r}))+'">'+(null!=(i=a(null!=(i=null!=t?t.options:t)?i.editSvg:i,t))?i:"")+"</a>\r\n"+(null!=(i=n.if.call(s,null!=(i=null!=t?t.options:t)?i.allowDelete:i,{name:"if",hash:{},fn:e.program(4,r,0),inverse:e.noop,data:r}))?i:"")+" </div>\r\n"},4:function(e,t,n,o,r){e.propertyIsEnumerable;var i,a=e.lambda,l=e.escapeExpression;return' <a class="action delete-chapter my-2 svg-container '+l(a(null!=(i=null!=(i=null!=t?t.options:t)?i.styles:i)?i.svgContainer:i,t))+' d-inline-block text-muted"\r\n title="'+l((n.lang||t&&t.lang||e.hooks.helperMissing).call(null!=t?t:e.nullContext||{},"delete",{name:"lang",hash:{},data:r}))+'">'+(null!=(i=a(null!=(i=null!=t?t.options:t)?i.deleteSvg:i,t))?i:"")+"</a>\r\n"},compiler:[8,">= 4.3.0"],main:function(e,t,n,o,r){e.propertyIsEnumerable;var i,a,l=null!=t?t:e.nullContext||{},s=e.lambda,c=e.escapeExpression;return'<div class="row mx-0 border-top chapter-item '+(null!=(i=n.if.call(l,null!=(i=null!=t?t.options:t)?i.loading:i,{name:"if",hash:{},fn:e.program(1,r,0),inverse:e.noop,data:r}))?i:"")+'">\r\n <div class="clickable-seek col-1">\r\n <p class="m-0 py-2">'+c(s(null!=(i=null!=t?t.options:t)?i.index:i,t))+'</p>\r\n </div>\r\n <div class="clickable-seek col-6">\r\n <p class="m-0 py-2">'+c("function"==typeof(a=null!=(a=n.name||(null!=t?t.name:t))?a:e.hooks.helperMissing)?a.call(l,{name:"name",hash:{},data:r}):a)+'</p>\r\n </div>\r\n <div class="clickable-seek col-3 text-right">\r\n <p class="m-0 py-2">'+c(s(null!=(i=null!=t?t.options:t)?i.time:i,t))+"</p>\r\n </div>\r\n"+(null!=(i=n.if.call(l,null!=(i=null!=t?t.options:t)?i.showActions:i,{name:"if",hash:{},fn:e.program(3,r,0),inverse:e.noop,data:r}))?i:"")+'</div>\r\n<div class="edit-form-region"></div>\r\n'},useData:!0})},1140:function(e,t,n){e.exports={darkBackground:"_2jtQl",loading:"_152ia",svgContainer:"xdD5o",chapterItem:"_3G38c"}},1141:function(e,t,n){var o=n(10);e.exports=(o.default||o).template({compiler:[8,">= 4.3.0"],main:function(e,t,n,o,r){e.propertyIsEnumerable;var i=null!=t?t:e.nullContext||{},a=e.hooks.helperMissing,l=e.escapeExpression;return"<h5>"+l((n.lang||t&&t.lang||a).call(i,"chapters",{name:"lang",hash:{},data:r}))+'</h5>\r\n<div class="row mt-3 m-0 border-bottom">\r\n <div class="col-1">\r\n <label>#</label>\r\n </div>\r\n <div class="col-6">\r\n <label>'+l((n.lang||t&&t.lang||a).call(i,"nameLabel",{name:"lang",hash:{},data:r}))+'</label>\r\n </div>\r\n <div class="col-3 text-right">\r\n <label>'+l((n.lang||t&&t.lang||a).call(i,"startLabel",{name:"lang",hash:{},data:r}))+'</>\r\n </div>\r\n</div>\r\n<div class="chapter-list-region"></div>'},useData:!0})},1142:function(e,t,n){var o=n(10);e.exports=(o.default||o).template({1:function(e,t,n,o,r){e.propertyIsEnumerable;var i,a=e.lambda,l=e.escapeExpression;return'<a class="float-right '+l(a(null!=(i=null!=(i=null!=t?t.options:t)?i.styles:i)?i.svgContainer:i,t))+" "+l(a(null!=(i=null!=(i=null!=t?t.options:t)?i.styles:i)?i.actionSvg:i,t))+' text-muted delete">'+(null!=(i=a(null!=(i=null!=t?t.options:t)?i.trashSvg:i,t))?i:"")+'</a>\r\n<a class="float-right '+l(a(null!=(i=null!=(i=null!=t?t.options:t)?i.styles:i)?i.svgContainer:i,t))+" "+l(a(null!=(i=null!=(i=null!=t?t.options:t)?i.styles:i)?i.actionSvg:i,t))+' text-muted edit">'+(null!=(i=a(null!=(i=null!=t?t.options:t)?i.editSvg:i,t))?i:"")+"</a>\r\n"},compiler:[8,">= 4.3.0"],main:function(e,t,n,o,r){e.propertyIsEnumerable;var i,a,l=e.lambda,s=e.escapeExpression,c=null!=t?t:e.nullContext||{},u=e.hooks.helperMissing;return'<span class="d-inline-block align-middle mr-2 icon-blue '+s(l(null!=(i=null!=(i=null!=t?t.options:t)?i.styles:i)?i.svgContainer:i,t))+'">'+(null!=(i=l(null!=(i=null!=t?t.options:t)?i.linkSvg:i,t))?i:"")+'</span>\r\n<a href="'+s("function"==typeof(a=null!=(a=n.url||(null!=t?t.url:t))?a:u)?a.call(c,{name:"url",hash:{},data:r}):a)+'" target="_blank" class="align-middle">\r\n '+s("function"==typeof(a=null!=(a=n.name||(null!=t?t.name:t))?a:u)?a.call(c,{name:"name",hash:{},data:r}):a)+"\r\n</a>\r\n"+(null!=(i=n.if.call(c,null!=(i=null!=t?t.options:t)?i.editable:i,{name:"if",hash:{},fn:e.program(1,r,0),inverse:e.noop,data:r}))?i:"")},useData:!0})},1143:function(e,t,n){e.exports={container:"_3Qewt",svgContainer:"_3T40U",actionSvg:"_3FRzz"}},1144:function(e,t,n){var o=n(10);e.exports=(o.default||o).template({1:function(e,t,n,o,r){var i;e.propertyIsEnumerable;return"<p>"+e.escapeExpression(e.lambda(null!=(i=null!=t?t.options:t)?i.emptyStateText:i,t))+"</p>"},compiler:[8,">= 4.3.0"],main:function(e,t,n,o,r){var i;e.propertyIsEnumerable;return"<h5>"+e.escapeExpression(e.lambda(null!=(i=null!=t?t.options:t)?i.headingText:i,t))+"</h5>\r\n"+(null!=(i=n.if.call(null!=t?t:e.nullContext||{},null!=(i=null!=t?t.options:t)?i.emptyStateText:i,{name:"if",hash:{},fn:e.program(1,r,0),inverse:e.noop,data:r}))?i:"")+'\r\n<div class="links-region"></div>'},useData:!0})},1145:function(e,t,n){"use strict";n.d(t,"a",(function(){return x}));var o=n(1),r=n(29),i=n(2),a=n(59),l=n(16),s=n(143),c=n(0),u=n(9),f=n(1060),p=n(1035),h=n(1036),d=n(1146),m=n.n(d),y=n(1147),g=n.n(y),b=n(3);function v(e){return(v="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 C(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=O(e);if(t){var r=O(this).constructor;n=Reflect.construct(o,arguments,r)}else n=o.apply(this,arguments);return E(this,n)}}function E(e,t){return!t||"object"!==v(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 O(e){return(O=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)})(e)}var x=function(e){!function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),t&&k(e,t)}(y,e);var t,n,i,d=C(y);function y(e){return function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,y),d.call(this,e)}return t=y,(n=[{key:"name",get:function(){return"VideoBasicInfoComponent"}},{key:"template",get:function(){return g.a}},{key:"lang",get:function(){return"shared.videoBasicInfo"}},{key:"defaults",get:function(){return{truncateDescription:!0}}},{key:"behaviors",get:function(){return[{behaviorClass:s.a,selector:".tool-tip"}]}},{key:"regions",value:function(){return{description:{el:".description-region",replaceElement:!0,partialLoading:u.h.VideoBasicInfo},series:{el:".series-region",replaceElement:!0}}}},{key:"appLinks",get:function(){return{".applink-publisher-video":{application:c.b.LIBRARY_EDITOR,action:c.a.LibraryEditor.SHOW_PUBLISHER_VIDEO,args:[this.model.get("id")]}}}},{key:"getBroadcastDate",value:function(){return this.model.get("dateBroadcast")?r(this.model.get("dateBroadcast")).format(u.l.FULL_YEAR):""}},{key:"getSeriesUrl",value:function(){if(this.options.externalSeriesLink&&this.model.series)return a.a.urlBuilder(a.a.safeUrlConcat(this.options.config.get("onlineUrl"),"series/".concat(this.model.series.id)),{loginPrompt:!1})}},{key:"renderSeries",value:function(){this.model.series&&this.model.series.get("name")&&this.showChildView("series",new p.a({model:this.model,highlight:!1,seriesUrl:this.getSeriesUrl(),styleUppercase:!1}))}},{key:"renderDescription",value:function(){if(this.model&&this.model.get("description")){var e=new f.a({model:this.model,linkify:!0,size:f.b.Large,truncate:this.options.truncateDescription,allowExpand:!0});this.showChildView("description",e)}}},{key:"getSubtitleLanguage",value:function(){var e=this;return this.model.subtitles&&this.model.get("subtitles").length?o.uniq(this.model.get("subtitles").map((function(t){var n,o=t.get("language"),r=CVLanguages.getFullEnglishName(o);return(null===(n=t.get("metadata"))||void 0===n?void 0:n.autoGenerated)?b.a.getPhrase(e.lang,"autoGenerated",{name:r}):r}))).join(", "):""}},{key:"getCitationHeading",value:function(e,t,n){return this.model.get(e)?this.model.get(e).length>1?n:t:""}},{key:"getCitationHeadings",value:function(){return{productionCompaniesText:this.getCitationHeading(u.a.ProductionCompany,"Production Company","Production Companies"),producersText:this.getCitationHeading(u.a.Producer,"Producer","Producers"),disributorsText:this.getCitationHeading(u.a.Distributor,"Distributor","Distributors"),directorsText:this.getCitationHeading(u.a.Director,"Director","Directors")}}},{key:"viewOptions",value:function(){return Object.assign({styles:m.a,ratingClass:this.model.rating&&h.h.mapRatingToClass(this.model.rating.get("value")),broadcastDate:this.getBroadcastDate(),showHeading:this.options.showHeading,subtitles:this.getSubtitleLanguage(),publisherArchiveSvg:l.a.getSvg(l.b.PublisherArchive),showPublisherVideoDetails:this.options.showPublisherVideoDetails},this.getCitationHeadings())}},{key:"onRender",value:function(){this.renderSeries(),this.renderDescription()}}])&&w(t.prototype,n),i&&w(t,i),y}(i.a.Component)},1146:function(e,t,n){e.exports={columnNames:"_1N_VT",seriesContainer:"_4pk2s",icon:"_3SoBV",citationValues:"_1nYZg"}},1147:function(e,t,n){var o=n(10);e.exports=(o.default||o).template({1:function(e,t,n,o,r){e.propertyIsEnumerable;var i,a=null!=t?t:e.nullContext||{};return'<div class="position-relative">\r\n <h5 class="d-inline-block">'+e.escapeExpression((n.lang||t&&t.lang||e.hooks.helperMissing).call(a,"basicInfo",{name:"lang",hash:{},data:r}))+"</h5>\r\n"+(null!=(i=n.if.call(a,null!=(i=null!=t?t.options:t)?i.showPublisherVideoDetails:i,{name:"if",hash:{},fn:e.program(2,r,0),inverse:e.noop,data:r}))?i:"")+"</div>\r\n"},2:function(e,t,n,o,r){e.propertyIsEnumerable;var i,a=e.lambda,l=e.escapeExpression;return' <a class="float-right cursor-pointer applink-publisher-video">\r\n <span class="d-inline-block align-middle '+l(a(null!=(i=null!=(i=null!=t?t.options:t)?i.styles:i)?i.icon:i,t))+'">'+(null!=(i=a(null!=(i=null!=t?t.options:t)?i.publisherArchiveSvg:i,t))?i:"")+"</span> "+l((n.lang||t&&t.lang||e.hooks.helperMissing).call(null!=t?t:e.nullContext||{},"viewInPublisherArchive",{name:"lang",hash:{},data:r}))+"\r\n </a>\r\n"},4:function(e,t,n,o,r){e.propertyIsEnumerable;var i,a,l=e.escapeExpression,s=null!=t?t:e.nullContext||{},c=e.hooks.helperMissing;return' <div class="col-3 '+l(e.lambda(null!=(i=null!=(i=null!=t?t.options:t)?i.styles:i)?i.columnNames:i,t))+'">'+l((n.lang||t&&t.lang||c).call(s,"videoTitle",{name:"lang",hash:{},data:r}))+'</div>\r\n <p class="col-9">'+l("function"==typeof(a=null!=(a=n.name||(null!=t?t.name:t))?a:c)?a.call(s,{name:"name",hash:{},data:r}):a)+"</p>\r\n"},6:function(e,t,n,o,r){e.propertyIsEnumerable;var i,a=e.lambda,l=e.escapeExpression;return' <div class="col-3 '+l(a(null!=(i=null!=(i=null!=t?t.options:t)?i.styles:i)?i.columnNames:i,t))+'">'+l((n.lang||t&&t.lang||e.hooks.helperMissing).call(null!=t?t:e.nullContext||{},"series",{name:"lang",hash:{},data:r}))+'</div>\r\n <div class="col-9 '+l(a(null!=(i=null!=(i=null!=t?t.options:t)?i.styles:i)?i.seriesContainer:i,t))+'"><div class="series-region"></div></div>\r\n'},8:function(e,t,n,o,r){e.propertyIsEnumerable;var i,a=e.lambda,l=e.escapeExpression;return' <div class="col-3 '+l(a(null!=(i=null!=(i=null!=t?t.options:t)?i.styles:i)?i.columnNames:i,t))+'">'+l((n.lang||t&&t.lang||e.hooks.helperMissing).call(null!=t?t:e.nullContext||{},"rating",{name:"lang",hash:{},data:r}))+'</div>\r\n <p class="col-9"><span class="p-1 badge text-white tool-tip '+l(a(null!=(i=null!=t?t.options:t)?i.ratingClass:i,t))+" "+l(a(null!=(i=null!=(i=null!=t?t.options:t)?i.styles:i)?i.rating:i,t))+'" title="'+l(a(null!=(i=null!=t?t.rating:t)?i.name:i,t))+'">'+l(a(null!=(i=null!=t?t.rating:t)?i.code:i,t))+"</span></p>\r\n"},10:function(e,t,n,o,r){e.propertyIsEnumerable;var i,a=e.escapeExpression;return' <div class="col-3 '+a(e.lambda(null!=(i=null!=(i=null!=t?t.options:t)?i.styles:i)?i.columnNames:i,t))+'">'+a((n.lang||t&&t.lang||e.hooks.helperMissing).call(null!=t?t:e.nullContext||{},"description",{name:"lang",hash:{},data:r}))+'</div>\r\n <div class="col-9">\r\n <div class="description-region"></div>\r\n </div>\r\n'},12:function(e,t,n,o,r){e.propertyIsEnumerable;var i,a,l=e.escapeExpression,s=null!=t?t:e.nullContext||{},c=e.hooks.helperMissing;return' <div class="col-3 '+l(e.lambda(null!=(i=null!=(i=null!=t?t.options:t)?i.styles:i)?i.columnNames:i,t))+'">'+l((n.lang||t&&t.lang||c).call(s,"productionYear",{name:"lang",hash:{},data:r}))+'</div>\r\n <p class="col-9">'+l("function"==typeof(a=null!=(a=n.productionYear||(null!=t?t.productionYear:t))?a:c)?a.call(s,{name:"productionYear",hash:{},data:r}):a)+"</p>\r\n"},14:function(e,t,n,o,r){e.propertyIsEnumerable;var i,a=e.lambda,l=e.escapeExpression,s=null!=t?t:e.nullContext||{};return' <div class="col-3 '+l(a(null!=(i=null!=(i=null!=t?t.options:t)?i.styles:i)?i.columnNames:i,t))+'">'+l((n.lang||t&&t.lang||e.hooks.helperMissing).call(s,"producers",{name:"lang",hash:{},data:r}))+'</div>\r\n <div class="col-9 '+l(a(null!=(i=null!=(i=null!=t?t.options:t)?i.styles:i)?i.citationValues:i,t))+'">\r\n <p>\r\n'+(null!=(i=n.each.call(s,null!=t?t.producers:t,{name:"each",hash:{},fn:e.program(15,r,0),inverse:e.noop,data:r}))?i:"")+" </p>\r\n </div>\r\n"},15:function(e,t,n,o,r){var i;e.propertyIsEnumerable;return" <span>"+e.escapeExpression("function"==typeof(i=null!=(i=n.name||(null!=t?t.name:t))?i:e.hooks.helperMissing)?i.call(null!=t?t:e.nullContext||{},{name:"name",hash:{},data:r}):i)+"</span>\r\n"},17:function(e,t,n,o,r){e.propertyIsEnumerable;var i,a=e.lambda,l=e.escapeExpression,s=null!=t?t:e.nullContext||{};return' <div class="col-3 '+l(a(null!=(i=null!=(i=null!=t?t.options:t)?i.styles:i)?i.columnNames:i,t))+'">'+l((n.lang||t&&t.lang||e.hooks.helperMissing).call(s,"directors",{name:"lang",hash:{},data:r}))+'</div>\r\n <div class="col-9 '+l(a(null!=(i=null!=(i=null!=t?t.options:t)?i.styles:i)?i.citationValues:i,t))+'">\r\n <p>\r\n'+(null!=(i=n.each.call(s,null!=t?t.directors:t,{name:"each",hash:{},fn:e.program(15,r,0),inverse:e.noop,data:r}))?i:"")+" </p>\r\n </div>\r\n"},19:function(e,t,n,o,r){e.propertyIsEnumerable;var i,a=e.lambda,l=e.escapeExpression,s=null!=t?t:e.nullContext||{};return' <div class="col-3 '+l(a(null!=(i=null!=(i=null!=t?t.options:t)?i.styles:i)?i.columnNames:i,t))+'">'+l((n.lang||t&&t.lang||e.hooks.helperMissing).call(s,"productionCompanies",{name:"lang",hash:{},data:r}))+'</div>\r\n <div class="col-9 '+l(a(null!=(i=null!=(i=null!=t?t.options:t)?i.styles:i)?i.citationValues:i,t))+'">\r\n <p>\r\n'+(null!=(i=n.each.call(s,null!=t?t.productionCompanies:t,{name:"each",hash:{},fn:e.program(15,r,0),inverse:e.noop,data:r}))?i:"")+" </p>\r\n </div>\r\n"},21:function(e,t,n,o,r){e.propertyIsEnumerable;var i,a=e.lambda,l=e.escapeExpression,s=null!=t?t:e.nullContext||{};return' <div class="col-3 '+l(a(null!=(i=null!=(i=null!=t?t.options:t)?i.styles:i)?i.columnNames:i,t))+'">'+l((n.lang||t&&t.lang||e.hooks.helperMissing).call(s,"distributors",{name:"lang",hash:{},data:r}))+'</div>\r\n <div class="col-9 '+l(a(null!=(i=null!=(i=null!=t?t.options:t)?i.styles:i)?i.citationValues:i,t))+'">\r\n <p>\r\n'+(null!=(i=n.each.call(s,null!=t?t.distributors:t,{name:"each",hash:{},fn:e.program(15,r,0),inverse:e.noop,data:r}))?i:"")+" </p>\r\n </div>\r\n"},23:function(e,t,n,o,r){var i;e.propertyIsEnumerable;return null!=(i=n.if.call(null!=t?t:e.nullContext||{},null!=t?t.channel:t,{name:"if",hash:{},fn:e.program(24,r,0),inverse:e.noop,data:r}))?i:""},24:function(e,t,n,o,r){e.propertyIsEnumerable;var i,a=e.lambda,l=e.escapeExpression;return'\r\n <div class="col-3 '+l(a(null!=(i=null!=(i=null!=t?t.options:t)?i.styles:i)?i.columnNames:i,t))+'">'+l((n.lang||t&&t.lang||e.hooks.helperMissing).call(null!=t?t:e.nullContext||{},"channel",{name:"lang",hash:{},data:r}))+'</div>\r\n <p class="col-9">'+l(a(null!=(i=null!=t?t.channel:t)?i.name:i,t))+"</p>\r\n "},26:function(e,t,n,o,r){e.propertyIsEnumerable;var i,a=e.lambda,l=e.escapeExpression;return' <div class="col-3 '+l(a(null!=(i=null!=(i=null!=t?t.options:t)?i.styles:i)?i.columnNames:i,t))+'">'+l((n.lang||t&&t.lang||e.hooks.helperMissing).call(null!=t?t:e.nullContext||{},"broadcastDate",{name:"lang",hash:{},data:r}))+'</div>\r\n <p class="col-9">'+l(a(null!=(i=null!=t?t.options:t)?i.broadcastDate:i,t))+"</p>\r\n"},28:function(e,t,n,o,r){e.propertyIsEnumerable;var i,a=e.lambda,l=e.escapeExpression;return' <div class="col-3 '+l(a(null!=(i=null!=(i=null!=t?t.options:t)?i.styles:i)?i.columnNames:i,t))+'">'+l((n.lang||t&&t.lang||e.hooks.helperMissing).call(null!=t?t:e.nullContext||{},"subtitles",{name:"lang",hash:{},data:r}))+'</div>\r\n <p class="col-9">'+l(a(null!=(i=null!=t?t.options:t)?i.subtitles:i,t))+"</p>\r\n"},compiler:[8,">= 4.3.0"],main:function(e,t,n,o,r){e.propertyIsEnumerable;var i,a=null!=t?t:e.nullContext||{};return(null!=(i=n.if.call(a,null!=(i=null!=t?t.options:t)?i.showHeading:i,{name:"if",hash:{},fn:e.program(1,r,0),inverse:e.noop,data:r}))?i:"")+'<div class="row mb-0">\r\n'+(null!=(i=n.if.call(a,null!=t?t.name:t,{name:"if",hash:{},fn:e.program(4,r,0),inverse:e.noop,data:r}))?i:"")+"\r\n"+(null!=(i=n.if.call(a,null!=(i=null!=t?t.series:t)?i.name:i,{name:"if",hash:{},fn:e.program(6,r,0),inverse:e.noop,data:r}))?i:"")+"\r\n"+(null!=(i=n.if.call(a,null!=(i=null!=t?t.rating:t)?i.code:i,{name:"if",hash:{},fn:e.program(8,r,0),inverse:e.noop,data:r}))?i:"")+"\r\n"+(null!=(i=n.if.call(a,null!=t?t.description:t,{name:"if",hash:{},fn:e.program(10,r,0),inverse:e.noop,data:r}))?i:"")+"\r\n"+(null!=(i=n.if.call(a,null!=t?t.productionYear:t,{name:"if",hash:{},fn:e.program(12,r,0),inverse:e.noop,data:r}))?i:"")+"\r\n"+(null!=(i=n.if.call(a,null!=(i=null!=t?t.producers:t)?i.length:i,{name:"if",hash:{},fn:e.program(14,r,0),inverse:e.noop,data:r}))?i:"")+"\r\n"+(null!=(i=n.if.call(a,null!=(i=null!=t?t.directors:t)?i.length:i,{name:"if",hash:{},fn:e.program(17,r,0),inverse:e.noop,data:r}))?i:"")+"\r\n"+(null!=(i=n.if.call(a,null!=(i=null!=t?t.productionCompanies:t)?i.length:i,{name:"if",hash:{},fn:e.program(19,r,0),inverse:e.noop,data:r}))?i:"")+"\r\n"+(null!=(i=n.if.call(a,null!=(i=null!=t?t.distributors:t)?i.length:i,{name:"if",hash:{},fn:e.program(21,r,0),inverse:e.noop,data:r}))?i:"")+"\r\n "+(null!=(i=n.if.call(a,null!=(i=null!=t?t.channel:t)?i.name:i,{name:"if",hash:{},fn:e.program(23,r,0),inverse:e.noop,data:r}))?i:"")+"\r\n\r\n"+(null!=(i=n.if.call(a,null!=(i=null!=t?t.options:t)?i.broadcastDate:i,{name:"if",hash:{},fn:e.program(26,r,0),inverse:e.noop,data:r}))?i:"")+"\r\n"+(null!=(i=n.if.call(a,null!=(i=null!=t?t.options:t)?i.subtitles:i,{name:"if",hash:{},fn:e.program(28,r,0),inverse:e.noop,data:r}))?i:"")+"</div>"},useData:!0})},1185:function(e,t,n){"use strict";var o=n(2),r=n(6),i=n(16),a=n(143),l=n(13),s=n(1115),c=n(199),u=n(1139),f=n.n(u),p=n(1140),h=n.n(p);function d(e){return(d="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}function 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 y(e,t){return(y=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e})(e,t)}function g(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=v(e);if(t){var r=v(this).constructor;n=Reflect.construct(o,arguments,r)}else n=o.apply(this,arguments);return b(this,n)}}function b(e,t){return!t||"object"!==d(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 v(e){return(v=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)})(e)}var w=function(e){!function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),t&&y(e,t)}(p,e);var t,n,o,u=g(p);function p(e){return function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,p),u.call(this,e)}return t=p,(n=[{key:"initialize",value:function(){this.bindListeners()}},{key:"name",get:function(){return"ChapterItemComponent"}},{key:"lang",get:function(){return"libraryEditor.chapterItem"}},{key:"instanceChannelName",get:function(){return"".concat(this.name).concat(this.cid)}},{key:"template",get:function(){return f.a}},{key:"className",get:function(){return"chapter ".concat(h.a.chapterItem)}},{key:"behaviors",get:function(){return[{behaviorClass:a.a,selector:".action"}]}},{key:"regions",value:function(){return{editForm:{replaceElement:!1,el:".edit-form-region"}}}},{key:"elements",get:function(){return{chapterItem:".chapter-item",editChapter:".edit-chapter",deleteChapter:".delete-chapter"}}},{key:"events",value:function(){return{"click @ui.editChapter":"onEditChapter","click @ui.deleteChapter":"onDeleteChapter","click .clickable-seek":"onClick"}}},{key:"bindListeners",value:function(){this.listenTo(this.instanceChannelName,c.LibraryEditorActions.CancelChapterEdit,this.onCancelEdit),this.listenTo(this.instanceChannelName,c.LibraryEditorActions.UpdateChapter,this.onUpdateChapter),this.listenTo(this.instanceChannelName,c.LibraryEditorActions.UpdateChapterTime,this.onUpdateChapterTime),this.listenTo(this.model,"change:showEditor",this.onShowEditorChange),this.listenTo(this.model,"change:loading",this.onLoadingChange);var e=this.model.collection.first();this.model!==e?this.listenTo(this.model.collection,"sort",this.render):this.listenTo(this.model.collection,"add remove sort",this.render)}},{key:"onClick",value:function(){var e=r.Radio.channel(this.options.channelName);this.model.get("isPhysicalChapter")?e.trigger(c.LibraryEditorActions.SeekToChapter,this.model.get("index")):e.trigger(c.LibraryEditorActions.UpdateChapterTime,this.model.get("startTime"))}},{key:"onLoadingChange",value:function(){var e=this.model.get("loading")?"disable":"enable";this.getUI("editChapter").tooltip(e),this.getUI("deleteChapter").tooltip(e),this.model.set("showEditor",!1,{silent:!0}),this.render()}},{key:"onShowEditorChange",value:function(){this.model.get("loading")||(this.model.get("showEditor")?this.showEditView():this.hideEditView())}},{key:"showEditView",value:function(){this.renderEditForm(),this.getUI("chapterItem").addClass(h.a.darkBackground)}},{key:"hideEditView",value:function(){this.model.set("showEditor",!1,{silent:!0}),this.getUI("chapterItem").removeClass(h.a.darkBackground),this.detachChildView("editForm")}},{key:"onCancelEdit",value:function(){this.hideEditView()}},{key:"onDeleteChapter",value:function(){this.model.get("loading")||r.Radio.channel(this.options.channelName).trigger(c.LibraryEditorActions.DeleteChapter,this.model)}},{key:"onUpdateChapter",value:function(e){r.Radio.channel(this.options.channelName).trigger(c.LibraryEditorActions.UpdateChapter,e),this.render()}},{key:"onUpdateChapterTime",value:function(e){r.Radio.channel(this.options.channelName).trigger(c.LibraryEditorActions.UpdateChapterTime,e)}},{key:"onEditChapter",value:function(){r.Radio.channel(this.options.channelName).trigger(c.LibraryEditorActions.ToggleEdit,this.model)}},{key:"canDelete",value:function(e){var t=this.model.collection.length;return 1===e&&1===t||!(1===e&&t>1)}},{key:"viewOptions",value:function(){var e=this.model.collection.indexOf(this.model)+1,t=l.x.trimToMinutes(l.x.secondsToHoursFormatted(this.model.get("startTime")));return Object.assign(Object.assign({},this.options),{styles:h.a,time:t,index:e,loading:this.model.get("loading"),allowDelete:this.canDelete(e),editSvg:i.a.getSvg(i.b.Edit),deleteSvg:i.a.getSvg(i.b.Delete)})}},{key:"renderEditForm",value:function(){this.showChildView("editForm",new s.a({model:this.model,editing:!0,channelName:this.instanceChannelName,duration:this.options.duration}))}},{key:"onBeforeDetach",value:function(){$(".tooltip").remove()}}])&&m(t.prototype,n),o&&m(t,o),p}(o.a.Component);function k(e){return(k="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}function C(e,t){for(var n=0;n<t.length;n++){var o=t[n];o.enumerable=o.enumerable||!1,o.configurable=!0,"value"in o&&(o.writable=!0),Object.defineProperty(e,o.key,o)}}function E(e,t){return(E=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e})(e,t)}function O(e){var t=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(e){return!1}}();return function(){var n,o=S(e);if(t){var r=S(this).constructor;n=Reflect.construct(o,arguments,r)}else n=o.apply(this,arguments);return x(this,n)}}function x(e,t){return!t||"object"!==k(t)&&"function"!=typeof t?function(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}(e):t}function S(e){return(S=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)})(e)}var R=function(e){!function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),t&&E(e,t)}(i,e);var t,n,o,r=O(i);function i(e){return function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,i),r.call(this,e)}return t=i,(n=[{key:"initialize",value:function(){this.bindEditorListeners()}},{key:"name",get:function(){return"ChapterComponentCollection"}},{key:"className",get:function(){return"chapters"}},{key:"childView",get:function(){return w}},{key:"bindEditorListeners",value:function(){this.options.editable&&this.listenTo(this.options.channelName,c.LibraryEditorActions.ToggleEdit,this.toggleEditForm)}},{key:"toggleEditForm",value:function(e){this.collection.each((function(t){return t!==e&&t.set("showEditor",!1)})),e.set("showEditor",!e.get("showEditor"))}},{key:"childViewOptions",get:function(){return{showActions:this.options.showActions,duration:this.options.duration,channelName:this.options.channelName}}}])&&C(t.prototype,n),o&&C(t,o),i}(o.a.ComponentCollection),_=n(1141),P=n.n(_);function T(e){return(T="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 I(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 j(e,t){return(j=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e})(e,t)}function D(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=V(e);if(t){var r=V(this).constructor;n=Reflect.construct(o,arguments,r)}else n=o.apply(this,arguments);return L(this,n)}}function L(e,t){return!t||"object"!==T(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 V(e){return(V=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)})(e)}n.d(t,"a",(function(){return N}));var N=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&&j(e,t)}(i,e);var t,n,o,r=D(i);function i(e){return function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,i),r.call(this,e)}return t=i,(n=[{key:"name",get:function(){return"ChaptersComponent"}},{key:"template",get:function(){return P.a}},{key:"lang",get:function(){return"libraryEditor.chapters"}},{key:"className",get:function(){return"chapters ".concat(!this.options.editable&&"py-3 border-top")}},{key:"regions",value:function(){return{chapterList:{replaceElement:!0,el:".chapter-list-region"}}}},{key:"viewOptions",value:function(){return{showHeader:this.options.showHeader}}},{key:"onRender",value:function(){this.showChildView("chapterList",new R({collection:this.collection,duration:this.options.duration,channelName:this.options.channelName,showActions:this.options.showActions,editable:this.options.editable}))}}])&&I(t.prototype,n),o&&I(t,o),i}(o.a.Component)},1187:function(e,t,n){"use strict";var o=n(2),r=n(1133),i=n.n(r),a=n(1134),l=n.n(a);function s(e){return(s="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}function c(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}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 f(e,t,n){return t&&u(e.prototype,t),n&&u(e,n),e}function p(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)}function h(e,t){return(h=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e})(e,t)}function d(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 r=y(this).constructor;n=Reflect.construct(o,arguments,r)}else n=o.apply(this,arguments);return m(this,n)}}function m(e,t){return!t||"object"!==s(t)&&"function"!=typeof t?function(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}(e):t}function y(e){return(y=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)})(e)}var g=function(e){p(n,e);var t=d(n);function n(){return c(this,n),t.apply(this,arguments)}return f(n,[{key:"name",get:function(){return"BreadcrumbItemComponent"}},{key:"template",get:function(){return l.a}},{key:"tagName",get:function(){return"li"}},{key:"className",get:function(){var e="breadcrumb-item";return this.model.get("active")&&(e+=" active"),e}},{key:"attributes",get:function(){return this.model.get("active")?{"aria-current":"page"}:{}}},{key:"appLinks",get:function(){return this.model.get("active")?{}:{a:this.model.get("appLink")}}},{key:"viewOptions",value:function(){return{isActive:this.model.get("active")}}}]),n}(o.a.Component),b=function(e){p(n,e);var t=d(n);function n(){return c(this,n),t.apply(this,arguments)}return f(n,[{key:"name",get:function(){return"BreadcrumbComponentCollection"}},{key:"tagName",get:function(){return"ol"}},{key:"className",get:function(){return"breadcrumb m-0 p-0"}},{key:"childView",get:function(){return g}}]),n}(o.a.ComponentCollection),v=n(48),w=n(0);function k(e){return(k="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}function C(e,t){for(var n=0;n<t.length;n++){var o=t[n];o.enumerable=o.enumerable||!1,o.configurable=!0,"value"in o&&(o.writable=!0),Object.defineProperty(e,o.key,o)}}function E(e,t){return(E=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e})(e,t)}function O(e){var t=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(e){return!1}}();return function(){var n,o=S(e);if(t){var r=S(this).constructor;n=Reflect.construct(o,arguments,r)}else n=o.apply(this,arguments);return x(this,n)}}function x(e,t){return!t||"object"!==k(t)&&"function"!=typeof t?function(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}(e):t}function S(e){return(S=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)})(e)}n.d(t,"a",(function(){return R}));var R=function(e){!function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),t&&E(e,t)}(l,e);var t,n,r,a=O(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.getBreadcrumbs()}},{key:"name",get:function(){return"BreadcrumbsComponent"}},{key:"template",get:function(){return i.a}},{key:"className",get:function(){return"d-inline-block"}},{key:"regions",value:function(){return{breadcrumbs:".breadcrumbs-region"}}},{key:"getBreadcrumbs",value:function(){this.breadcrumbCollection=new o.a.Collection;var e,t=this.options.folder;do{if(e=v.a.getParent(t.id,this.options.libraries),this.breadcrumbCollection.add(this.getBreadcrumb(t,!!e),{at:0}),!e)break;t=e}while(e);this.options.video&&this.breadcrumbCollection.add({name:this.options.video.get("name"),appLink:{application:w.b.LIBRARY_EDITOR,action:w.a.LibraryEditor.VIDEO_DETAILS,args:[this.options.video.id]}}),this.breadcrumbCollection.length&&this.breadcrumbCollection.last().set("active",!this.options.enableLastItemAppLink)}},{key:"getBreadcrumb",value:function(e,t){var n=t?w.a.LibraryEditor.FOLDER:w.a.LibraryEditor.LIBRARY;return{name:e.get("name"),appLink:{application:w.b.LIBRARY_EDITOR,action:n,args:[e.id]}}}},{key:"onRender",value:function(){var e=new b({collection:this.breadcrumbCollection});this.showChildView("breadcrumbs",e)}}])&&C(t.prototype,n),r&&C(t,r),l}(o.a.Component)},1188:function(e,t,n){"use strict";var o=n(2),r=n(6),i=n(16),a=n(4),l=n(42),s=n(13),c=n(0),u=n(1142),f=n.n(u),p=n(1143),h=n.n(p),d=n(3);function m(e){return(m="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}function y(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 g(e,t){return(g=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e})(e,t)}function b(e){var t=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(e){return!1}}();return function(){var n,o=w(e);if(t){var r=w(this).constructor;n=Reflect.construct(o,arguments,r)}else n=o.apply(this,arguments);return v(this,n)}}function v(e,t){return!t||"object"!==m(t)&&"function"!=typeof t?function(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}(e):t}function w(e){return(w=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)})(e)}var k=function(e){!function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),t&&g(e,t)}(p,e);var t,n,o,u=b(p);function p(e){return function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,p),u.call(this,e)}return t=p,(n=[{key:"name",get:function(){return"LinkItemComponent"}},{key:"template",get:function(){return f.a}},{key:"className",get:function(){return"".concat(h.a.container," rounded p-2 mb-2")}},{key:"lang",get:function(){return"libraryEditor.editLinks"}},{key:"events",value:function(){return{"click .delete":"onClickDelete","click .edit":"onClickEdit"}}},{key:"appLinks",get:function(){return{".edit":{application:c.b.LIBRARY_EDITOR,action:c.a.LibraryEditor.EDIT_LINK,args:[this.options.videoId,this.model.get("id")]}}}},{key:"onClickEdit",value:function(){var e=l.a.mergeOptions(this.options.analyticsOptions,{actionType:a.UserAction.Edit,entity:a.EntityType.Resource,workflowPhase:a.WorkflowPhase.Start}),t={id:this.model.get("id"),parentId:+this.options.videoId};l.a.logUserAction(t,e)}},{key:"onClickDelete",value:function(){var e=this;new s.d({title:d.a.getPhrase(this.lang,"removeHeading"),text:d.a.getPhrase(this.lang,"removeConfirm",{name:s.w.escapeExpression(this.model.get("name"))}),buttons:[{text:d.a.getPhrase(this.lang,"remove"),className:"btn btn-danger",success:!0},{text:d.a.getPhrase(this.lang,"cancel"),className:"btn btn-secondary",close:!0}],channelName:s.k.generateUniqueChannelName(this)}).render().done((function(){r.Radio.channel(e.options.channelName).trigger("delete:link",e.model.get("id"))}))}},{key:"viewOptions",value:function(){return{styles:h.a,editable:this.options.editable,linkSvg:i.a.getSvg(i.b.Link),editSvg:i.a.getSvg(i.b.Edit),trashSvg:i.a.getSvg(i.b.Delete)}}}])&&y(t.prototype,n),o&&y(t,o),p}(o.a.Component),C=n(1144),E=n.n(C);function O(e){return(O="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 x(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function S(e,t){for(var n=0;n<t.length;n++){var o=t[n];o.enumerable=o.enumerable||!1,o.configurable=!0,"value"in o&&(o.writable=!0),Object.defineProperty(e,o.key,o)}}function R(e,t,n){return t&&S(e.prototype,t),n&&S(e,n),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)}function P(e,t){return(P=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e})(e,t)}function T(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=j(e);if(t){var r=j(this).constructor;n=Reflect.construct(o,arguments,r)}else n=o.apply(this,arguments);return I(this,n)}}function I(e,t){return!t||"object"!==O(t)&&"function"!=typeof t?function(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}(e):t}function j(e){return(j=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)})(e)}n.d(t,"a",(function(){return D}));var D=function(e){_(n,e);var t=T(n);function n(e){return x(this,n),t.call(this,e)}return R(n,[{key:"name",get:function(){return"VideoLinksComponent"}},{key:"template",get:function(){return E.a}},{key:"className",get:function(){return this.options.customCollection?"":"py-3 border-top"}},{key:"regions",value:function(){return{links:{el:".links-region",replaceElement:!0}}}},{key:"viewOptions",value:function(){return this.options}},{key:"onRender",value:function(){this.showChildView("links",new L({collection:this.options.customCollection||this.model.get("links"),channelName:this.options.channelName,analyticsOptions:this.options.analyticsOptions,editable:this.options.editable,videoId:this.options.videoId,headingText:this.options.headingText,emptyStateText:this.options.emptyStateText}))}}]),n}(o.a.Component),L=function(e){_(n,e);var t=T(n);function n(e){return x(this,n),t.call(this,e)}return R(n,[{key:"name",get:function(){return"LinkItemComponentCollection"}},{key:"childViewOptions",get:function(){return this.options}},{key:"childView",get:function(){return k}}]),n}(o.a.ComponentCollection)},1233:function(e,t,n){e.exports={svgContainer:"_2fUyj"}},1234:function(e,t,n){var o=n(10);e.exports=(o.default||o).template({1:function(e,t,n,o,r){e.propertyIsEnumerable;var i,a=e.lambda,l=e.escapeExpression;return' <span class="d-inline-block ml-2 '+l(a(null!=(i=null!=(i=null!=t?t.options:t)?i.styles:i)?i.svgContainer:i,t))+'" title="'+l(a(null!=(i=null!=t?t.options:t)?i.restrictionMessage:i,t))+'">'+(null!=(i=a(null!=(i=null!=t?t.options:t)?i.lockSvg:i,t))?i:"")+"</span>\r\n"},compiler:[8,">= 4.3.0"],main:function(e,t,n,o,r){e.propertyIsEnumerable;var i,a,l=null!=t?t:e.nullContext||{};return'<div class="d-inline-flex align-items-center">\r\n <h4 class="d-inline-block mb-0">'+e.escapeExpression("function"==typeof(a=null!=(a=n.name||(null!=t?t.name:t))?a:e.hooks.helperMissing)?a.call(l,{name:"name",hash:{},data:r}):a)+"</h4>\r\n"+(null!=(i=n.if.call(l,null!=(i=null!=t?t.options:t)?i.hasRestriction:i,{name:"if",hash:{},fn:e.program(1,r,0),inverse:e.noop,data:r}))?i:"")+'</div>\r\n<div class="video-actions-region d-inline-block"></div>'},useData:!0})},1235:function(e,t,n){var o=n(10);e.exports=(o.default||o).template({1:function(e,t,n,o,r){e.propertyIsEnumerable;var i,a=e.escapeExpression;return' <span class="badge p-1 '+a(e.lambda(null!=(i=null!=(i=null!=t?t.options:t)?i.styles:i)?i.interactive:i,t))+'">'+a((n.lang||t&&t.lang||e.hooks.helperMissing).call(null!=t?t:e.nullContext||{},"interactive",{name:"lang",hash:{},data:r}))+"</span>\r\n"},3:function(e,t,n,o,r){var i;e.propertyIsEnumerable;return' <div class="mt-3">\r\n <h5>'+e.escapeExpression((n.lang||t&&t.lang||e.hooks.helperMissing).call(null!=t?t:e.nullContext||{},"folders",{name:"lang",hash:{smartCount:null!=(i=null!=t?t.options:t)?i.folders:i},data:r}))+'</h5>\r\n <div class="folders-region"></div>\r\n </div>\r\n'},5:function(e,t,n,o,r){e.propertyIsEnumerable;return' <div class="mt-3">\r\n <h5>'+e.escapeExpression((n.lang||t&&t.lang||e.hooks.helperMissing).call(null!=t?t:e.nullContext||{},"tags",{name:"lang",hash:{},data:r}))+'</h5>\r\n <div class="tags-region"></div>\r\n </div>\r\n'},7:function(e,t,n,o,r){e.propertyIsEnumerable;var i,a=e.escapeExpression;return' <div class="mt-3">\r\n <h5>'+a((n.lang||t&&t.lang||e.hooks.helperMissing).call(null!=t?t:e.nullContext||{},"curriculumLinks",{name:"lang",hash:{},data:r}))+"</h5>\r\n <p>"+a(e.lambda(null!=(i=null!=t?t.options:t)?i.links:i,t))+"</p>\r\n </div>\r\n"},compiler:[8,">= 4.3.0"],main:function(e,t,n,o,r){e.propertyIsEnumerable;var i,a=null!=t?t:e.nullContext||{};return'<div class="border-right h-100 pl-2 pr-3">\r\n <div class="video-preview-region"></div>\r\n <div class="mt-3">\r\n'+(null!=(i=n.if.call(a,null!=(i=null!=t?t.options:t)?i.interactive:i,{name:"if",hash:{},fn:e.program(1,r,0),inverse:e.noop,data:r}))?i:"")+" </div>\r\n\r\n"+(null!=(i=n.if.call(a,null!=(i=null!=t?t.options:t)?i.folders:i,{name:"if",hash:{},fn:e.program(3,r,0),inverse:e.noop,data:r}))?i:"")+"\r\n"+(null!=(i=n.if.call(a,null!=(i=null!=t?t.options:t)?i.tags:i,{name:"if",hash:{},fn:e.program(5,r,0),inverse:e.noop,data:r}))?i:"")+"\r\n"+(null!=(i=n.if.call(a,null!=(i=null!=t?t.options:t)?i.links:i,{name:"if",hash:{},fn:e.program(7,r,0),inverse:e.noop,data:r}))?i:"")+"</div>"},useData:!0})},1236:function(e,t,n){e.exports={interactive:"cAujD"}},1237:function(e,t,n){var o=n(10);e.exports=(o.default||o).template({compiler:[8,">= 4.3.0"],main:function(e,t,n,o,r){e.propertyIsEnumerable;var i,a,l=e.escapeExpression;return'<div class="col-3 '+l(e.lambda(null!=(i=null!=(i=null!=t?t.options:t)?i.styles:i)?i.columnNames:i,t))+'">'+l("function"==typeof(a=null!=(a=n.name||(null!=t?t.name:t))?a:e.hooks.helperMissing)?a.call(null!=t?t:e.nullContext||{},{name:"name",hash:{},data:r}):a)+'</div>\r\n<div class="col-9">\r\n <div class="description-region"></div>\r\n</div>'},useData:!0})},1238:function(e,t,n){var o=n(10);e.exports=(o.default||o).template({compiler:[8,">= 4.3.0"],main:function(e,t,n,o,r){return'<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})},1239:function(e,t,n){e.exports={columnNames:"_1ZuuN"}},1240:function(e,t,n){var o=n(10);e.exports=(o.default||o).template({compiler:[8,">= 4.3.0"],main:function(e,t,n,o,r){e.propertyIsEnumerable;var i,a=e.lambda,l=e.escapeExpression;return'<div class="d-inline-block '+l(a(null!=(i=null!=(i=null!=t?t.options:t)?i.styles:i)?i.licenseContainer:i,t))+'">\r\n <div class="'+l(a(null!=(i=null!=t?t.options:t)?i.logoClass:i,t))+'">'+l(a(null!=(i=null!=t?t.options:t)?i.labelText:i,t))+'</div>\r\n <p class="'+l(a(null!=(i=null!=(i=null!=t?t.options:t)?i.styles:i)?i.license:i,t))+' bg-white p-2 border box-shadow">\r\n '+(null!=(i=a(null!=(i=null!=t?t.options:t)?i.licenseText:i,t))?i:"")+"\r\n </p>\r\n</div>"},useData:!0})},1241:function(e,t,n){e.exports={licenseContainer:"_3xIoE",license:"_1fpgM",era:"_3S6te"}},1242:function(e,t,n){var o=n(10);e.exports=(o.default||o).template({1:function(e,t,n,o,r){return'<div class="row pl-3 pt-3 pr-3">\r\n <div class="breadcrumbs-region"></div>\r\n</div>\r\n'},3:function(e,t,n,o,r){return' <div class="fields-region"></div>\r\n'},5:function(e,t,n,o,r){return' <div class="video-chapters-region"></div>\r\n'},7:function(e,t,n,o,r){return' <div class="video-resources-region"></div>\r\n'},9:function(e,t,n,o,r){return' <div class="video-links-region"></div>\r\n'},11:function(e,t,n,o,r){return' <div class="screenright-disclaimer-region"></div>\r\n'},compiler:[8,">= 4.3.0"],main:function(e,t,n,o,r){e.propertyIsEnumerable;var i,a=null!=t?t:e.nullContext||{};return(null!=(i=n.if.call(a,null!=(i=null!=t?t.options:t)?i.hasFolder:i,{name:"if",hash:{},fn:e.program(1,r,0),inverse:e.noop,data:r}))?i:"")+'<div class="row border-bottom">\r\n <div class="video-header-region"></div>\r\n</div>\r\n<div class="row">\r\n <div class="col-4">\r\n <div class="main-video-information-region"></div>\r\n </div>\r\n <div class="col-8">\r\n <div class="basic-video-information-region py-3 pr-2"></div>\r\n'+(null!=(i=n.if.call(a,null!=(i=null!=t?t.options:t)?i.hasFields:i,{name:"if",hash:{},fn:e.program(3,r,0),inverse:e.noop,data:r}))?i:"")+(null!=(i=n.if.call(a,null!=(i=null!=t?t.options:t)?i.hasChapters:i,{name:"if",hash:{},fn:e.program(5,r,0),inverse:e.noop,data:r}))?i:"")+(null!=(i=n.if.call(a,null!=(i=null!=t?t.options:t)?i.hasResources:i,{name:"if",hash:{},fn:e.program(7,r,0),inverse:e.noop,data:r}))?i:"")+(null!=(i=n.if.call(a,null!=(i=null!=t?t.options:t)?i.hasLinks:i,{name:"if",hash:{},fn:e.program(9,r,0),inverse:e.noop,data:r}))?i:"")+(null!=(i=n.if.call(a,null!=(i=null!=t?t.options:t)?i.showScreenrightsDisclaimer:i,{name:"if",hash:{},fn:e.program(11,r,0),inverse:e.noop,data:r}))?i:"")+" </div>\r\n</div>"},useData:!0})},1462:function(e,t,n){"use strict";n.r(t);var o,r=n(2);!function(e){e.AU="content-ap-southeast-1",e.NZ="content-ap-southeast-2",e.UK="content-eu-west-1",e.SCOT="content-eu-west-2",e.US="content-na-central-1",e.GLOBAL="content-global"}(o||(o={}));var i=n(0),a=n(1),l=n(4),s=n(16),c=n(143),u=n(13),f=n(1100),p=n(1233),h=n.n(p),d=n(1234),m=n.n(d);function y(e){return(y="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}function g(e,t){for(var n=0;n<t.length;n++){var o=t[n];o.enumerable=o.enumerable||!1,o.configurable=!0,"value"in o&&(o.writable=!0),Object.defineProperty(e,o.key,o)}}function b(e,t){return(b=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=k(e);if(t){var r=k(this).constructor;n=Reflect.construct(o,arguments,r)}else n=o.apply(this,arguments);return w(this,n)}}function w(e,t){return!t||"object"!==y(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 k(e){return(k=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)})(e)}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&&b(e,t)}(p,e);var t,n,o,r=v(p);function p(e){return function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,p),r.call(this,e)}return t=p,(n=[{key:"name",get:function(){return"VideoHeaderComponent"}},{key:"template",get:function(){return m.a}},{key:"className",get:function(){return"d-flex align-items-center justify-content-between p-3 w-100"}},{key:"behaviors",get:function(){return[{behaviorClass:c.a,selector:".".concat(h.a.svgContainer)}]}},{key:"regions",value:function(){return{actions:{el:".video-actions-region",replaceElement:!1}}}},{key:"viewOptions",value:function(){return{styles:h.a,lockSvg:s.a.getSvg(s.b.Lock),hasRestriction:!a.isUndefined(this.model.get("restrictions")),restrictionMessage:u.o.getRestrictionTooltipMessage(this.model)}}},{key:"onRender",value:function(){this.showChildView("actions",new f.a({model:this.model,showActionLabels:!0,application:i.b.LIBRARY_EDITOR,customerHasLocalCache:this.options.customerHasLocalCache,customerHasExchange:this.options.customerHasExchange,collectionIdentifier:this.options.collectionIdentifier,routeToFolderOnDelete:!0,analyticsOptions:{entity:l.EntityType.Video,location:l.LocationContext.VideoDetailsHeader,descriptor:l.OperationDescriptor.Single},config:this.options.config}))}}])&&g(t.prototype,n),o&&g(t,o),p}(r.a.Component),E=n(1123),O=n(1077),x=n(1046),S=n(144),R=n(265),_=n(1062),P=n(1040),T=n(304),I=n(1235),j=n.n(I),D=n(1236),L=n.n(D);function V(e){return(V="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}function N(e,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 B(e,t){return(B=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e})(e,t)}function A(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=U(e);if(t){var r=U(this).constructor;n=Reflect.construct(o,arguments,r)}else n=o.apply(this,arguments);return M(this,n)}}function M(e,t){return!t||"object"!==V(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 U(e){return(U=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)})(e)}var F=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&&B(e,t)}(i,e);var t,n,o,r=A(i);function i(e){return function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,i),r.call(this,e)}return t=i,(n=[{key:"initialize",value:function(){this.isClickViewContent=this.model&&!u.j.canEditVideo(this.model)}},{key:"name",get:function(){return"VideoSidebarInfoComponent"}},{key:"lang",get:function(){return"libraryEditor.videoSidebarInfo"}},{key:"className",get:function(){return"py-3 h-100"}},{key:"template",get:function(){return j.a}},{key:"regions",value:function(){return{preview:{el:".video-preview-region",replaceElement:!0},folders:{el:".folders-region",replaceElement:!0},tags:{el:".tags-region",replaceElement:!0}}}},{key:"requiredResources",get:function(){return{currentUser:S.b.currentUser}}},{key:"renderVideoPreview",value:function(){this.showChildView("preview",new O.a({model:this.model,webPlayerUrl:this.options.webPlayerUrl,channelName:this.options.channelName,analyticsOptions:{location:l.LocationContext.VideoDetails},currentUser:this.options.currentUser}))}},{key:"renderTags",value:function(){this.model.get("tags")&&this.model.get("tags").length&&this.showChildView("tags",new _.a({collection:this.model.get("tags"),orientation:T.c.Flex,behavior:T.b.Link}))}},{key:"renderFolders",value:function(){this.model.get("categories")&&this.model.get("categories").length&&this.showChildView("folders",new x.a({model:this.model,showFolder:!0,hideLabel:!0}))}},{key:"viewOptions",value:function(){return{styles:L.a,interactive:P.a.isInteractive(this.model),duration:u.e.ToDisplayDuration(this.model.get("duration")),folders:this.model.categories&&this.model.categories.length,multipleFolders:this.model.categories.length>1,tags:this.model.get("tags")&&this.model.get("tags").length,isClickViewContent:this.isClickViewContent,hasCustomerTags:this.isClickViewContent&&u.j.filterObjectsByOwnerType(this.model.tags,R.a.Customer,this.options.currentUser.get("customerId")).length}}},{key:"onRender",value:function(){this.renderVideoPreview(),this.renderTags(),this.renderFolders()}}])&&N(t.prototype,n),o&&N(t,o),i}(r.a.Component),H=n(1185),Y=n(1188),z=n(1145),Z=n(1187),W=n(1060),q=n(1237),J=n.n(q),K=n(1238),G=n.n(K),Q=n(1239),$=n.n(Q);function X(e){return(X="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 ee(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function te(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 ne(e,t,n){return t&&te(e.prototype,t),n&&te(e,n),e}function oe(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&&re(e,t)}function re(e,t){return(re=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e})(e,t)}function ie(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=le(e);if(t){var r=le(this).constructor;n=Reflect.construct(o,arguments,r)}else n=o.apply(this,arguments);return ae(this,n)}}function ae(e,t){return!t||"object"!==X(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 le(e){return(le=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)})(e)}var se=function(e){oe(n,e);var t=ie(n);function n(){return ee(this,n),t.apply(this,arguments)}return ne(n,[{key:"name",get:function(){return"FieldComponent"}},{key:"template",get:function(){return J.a}},{key:"className",get:function(){return"row mb-0"}},{key:"regions",value:function(){return{description:{el:".description-region",replaceElement:!0}}}},{key:"viewOptions",value:function(){return{styles:$.a}}},{key:"renderDescription",value:function(){this.model.get("value")&&this.showChildView("description",new W.a({model:new r.a.Model({description:this.model.get("value")}),linkify:!0,size:W.b.Large,truncate:!0,allowExpand:!0}))}},{key:"onRender",value:function(){this.renderDescription()}}]),n}(r.a.Component),ce=function(e){oe(n,e);var t=ie(n);function n(){return ee(this,n),t.apply(this,arguments)}return ne(n,[{key:"name",get:function(){return"FieldsComponentCollection"}},{key:"childView",get:function(){return se}}]),n}(r.a.ComponentCollection),ue=function(e){oe(n,e);var t=ie(n);function n(){return ee(this,n),t.apply(this,arguments)}return ne(n,[{key:"name",get:function(){return"FieldsComponent"}},{key:"template",get:function(){return G.a}},{key:"className",get:function(){return"py-3 border-top"}},{key:"regions",value:function(){return{fields:{el:".fields-region",replaceElement:!0}}}},{key:"onRender",value:function(){this.showChildView("fields",new ce({collection:this.collection}))}}]),n}(r.a.Component),fe=n(32),pe=n(5),he=n(14),de=n(200),me=n(9),ye=n(314),ge=n(121),be=n(313),ve=n(146),we=n(1090),ke=n(3),Ce=n(1240),Ee=n.n(Ce),Oe=n(1241),xe=n.n(Oe);function Se(e){return(Se="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}function Re(e,t){for(var n=0;n<t.length;n++){var o=t[n];o.enumerable=o.enumerable||!1,o.configurable=!0,"value"in o&&(o.writable=!0),Object.defineProperty(e,o.key,o)}}function _e(e,t){return(_e=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e})(e,t)}function Pe(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=Ie(e);if(t){var r=Ie(this).constructor;n=Reflect.construct(o,arguments,r)}else n=o.apply(this,arguments);return Te(this,n)}}function Te(e,t){return!t||"object"!==Se(t)&&"function"!=typeof t?function(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}(e):t}function Ie(e){return(Ie=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)})(e)}var je=function(e){!function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),t&&_e(e,t)}(a,e);var t,n,r,i=Pe(a);function a(e){return function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,a),i.call(this,e)}return t=a,(n=[{key:"name",get:function(){return"ScreenrightsDisclaimerComponent"}},{key:"template",get:function(){return Ee.a}},{key:"lang",get:function(){return"shared.screenrightsDisclaimer"}},{key:"className",get:function(){return"py-3 border-top"}},{key:"getLogoClass",value:function(){return u.n.isInContentRegion(this.options.contentRegion,o.UK)?xe.a.era:""}},{key:"getLicenseText",value:function(){switch(this.options.contentRegion){case o.UK:return ke.a.getPhrase(this.lang,"era");case o.AU:return ke.a.getPhrase(this.lang,"copyrightAct");case o.NZ:default:return""}}},{key:"viewOptions",value:function(){var e=u.n.isInContentRegion(this.options.contentRegion,o.AU);return{styles:xe.a,logoClass:this.getLogoClass(),labelText:e?ke.a.getPhrase(this.lang,"labelAu"):"",licenseText:this.getLicenseText()}}}])&&Re(t.prototype,n),r&&Re(t,r),a}(r.a.Component),De=n(1242),Le=n.n(De);function Ve(e){return(Ve="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}function Ne(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 Be(e,t){return(Be=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e})(e,t)}function Ae(e){var t=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(e){return!1}}();return function(){var n,o=Ue(e);if(t){var r=Ue(this).constructor;n=Reflect.construct(o,arguments,r)}else n=o.apply(this,arguments);return Me(this,n)}}function Me(e,t){return!t||"object"!==Ve(t)&&"function"!=typeof t?function(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}(e):t}function Ue(e){return(Ue=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)})(e)}n.d(t,"VideoDetailsView",(function(){return Fe}));var Fe=function(e){!function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),t&&Be(e,t)}(s,e);var t,n,a,l=Ae(s);function s(e){return function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,s),l.call(this,e)}return t=s,(n=[{key:"initialize",value:function(){this.bindListeners(),this.videoDataService=pe.a.getInstance(he.a.Video,this),this.videoMixinService=pe.a.getInstance(he.b.VideoMixin,this),this.localCacheDataService=pe.a.getInstance(he.a.LocalCache,this),this.migrationVideoDataService=pe.a.getInstance(he.a.MigrationVideo,this)}},{key:"bindListeners",value:function(){this.listenTo(i.e.VIDEO,"".concat(fe.a.VIDEOS,":").concat(this.options.videoId,":sync"),this.render),this.listenTo(i.e.VIDEO,"".concat(fe.a.VIDEOS,":").concat(this.options.videoId,":error"),this.onError),this.listenTo(i.e.VIDEO,"".concat(fe.a.RESTRICTED_OBJECTS,":").concat(this.options.videoId,":sync"),this.render),this.listenTo(i.e.VIDEO,"cache:cleared",this.render),this.listenTo(i.e.LIBRARY,"libraries:sync",this.render),this.listenTo(i.e.RESTRICTED_VIDEO,"".concat(fe.a.UPDATE_VIDEO_RESTRICTION,":sync"),this.updateRestriction),this.listenTo(i.e.RESTRICTED_VIDEO,"".concat(fe.a.RESTRICTED_OBJECTS,":").concat(this.options.videoId,":sync"),this.render),this.listenTo(i.e.LOCAL_CACHE,"".concat(fe.a.LOCAL_CACHE_DEVICES,":sync"),this.render),this.listenTo(i.e.LOCAL_CACHE,"".concat(fe.a.LOCAL_CACHE_DEVICES,":error"),this.onError)}},{key:"name",get:function(){return"VideoDetailsView"}},{key:"title",get:function(){return this.video&&this.video.get("name")}},{key:"channelName",get:function(){return"".concat(this.name).concat(this.cid)}},{key:"template",get:function(){return Le.a}},{key:"className",get:function(){return"container-fluid h-100 bg-white"}},{key:"onError",value:function(e){switch(e.type){case ge.a.NotFound:r.a.ErrorHelper.throw(new ye.a);break;case ge.a.Forbidden:r.a.ErrorHelper.throw(new be.a)}}},{key:"regions",value:function(){return{breadcrumbs:{el:".breadcrumbs-region",replaceElement:!1},header:{replaceElement:!0,el:".video-header-region",partialLoading:me.h.VideoHeader},main:{replaceElement:!0,el:".main-video-information-region",partialLoading:me.h.VideoSidebarInfo},basic:{replaceElement:!1,el:".basic-video-information-region",partialLoading:me.h.VideoBasicInfo},chapters:{replaceElement:!0,el:".video-chapters-region"},resources:{replaceElement:!0,el:".video-resources-region"},fields:{replaceElement:!0,el:".fields-region"},links:{replaceElement:!0,el:".video-links-region"},screenrightsDisclaimer:{replaceElement:!0,el:".screenright-disclaimer-region"}}}},{key:"updateRestriction",value:function(){this.videoMixinService.getAndMixinVideoRestriction(this.video)}},{key:"showLicense",value:function(){return!(!this.video||u.n.isInContentRegion(this.currentUser.get("contentRegion"),o.NZ)||(!this.video.get("channel")||!this.video.get("channel").get("id"))&&!this.video.get("dateBroadcast"))}},{key:"renderBreadcrumbs",value:function(){this.folder&&this.showChildView("breadcrumbs",new Z.a({folder:this.folder,libraries:this.libraries,enableLastItemAppLink:!0}))}},{key:"renderVideoHeader",value:function(){this.showChildView("header",new C({model:this.video,customerHasLocalCache:u.i.customerHasLocalCache(this.devices,this.currentUser.get("customerId")),customerHasExchange:this.exchanges.any(),collectionIdentifier:this.folder&&new we.d(this.folder.id,u.q.GetCurrentSortType()),config:this.config}))}},{key:"renderSidebarInfo",value:function(){this.showChildView("main",new F({model:this.video,webPlayerUrl:this.config.get("webPlayerUrl"),channelName:this.channelName,currentUser:this.currentUser}))}},{key:"renderBasicInfo",value:function(){this.video&&this.showChildView("basic",new z.a({model:this.video,showHeading:!0,showPublisherVideoDetails:!!this.publisherVideo,config:this.config}))}},{key:"renderFields",value:function(){this.video.fields&&this.video.fields.length&&this.showChildView("fields",new ue({collection:this.video.fields}))}},{key:"renderChapters",value:function(){var e=this.video.chapters;e&&e.length>0&&this.showChildView("chapters",new H.a({channelName:this.channelName,collection:this.video.chapters}))}},{key:"renderResources",value:function(){var e=this.video.resources;e&&e.length>0&&this.showChildView("resources",new E.a({model:this.video}))}},{key:"renderLinks",value:function(){var e=this.video.links;e&&e.length&&this.showChildView("links",new Y.a({model:this.video,headingText:"Links"}))}},{key:"renderScreenrightsDisclaimer",value:function(){this.showLicense()&&this.showChildView("screenrightsDisclaimer",new je({contentRegion:this.currentUser.get("contentRegion")}))}},{key:"requiredResources",get:function(){return{config:de.b.config,currentUser:S.b.currentUser,libraries:ve.b.libraries,exchanges:ve.b.exchanges}}},{key:"onBeforeRender",value:function(){var e=this;return this.video=this.videoDataService.getVideo(this.options.videoId),this.video&&(this.folder=this.video.categories.first()),this.devices=this.localCacheDataService.getDevices(this.currentUser.get("customerId")),this.migrationVideoDataService.getCustomerVideoByMasterId(this.options.videoId,(function(t){var n=!!e.publisherVideo;e.publisherVideo=t,n&&e.isRendered()&&e.renderBasicInfo()})),!!this.video}},{key:"viewOptions",value:function(){if(this.video){var e=this.video,t=e.chapters,n=e.resources,o=e.fields,r=e.links;return{hasFolder:!!this.folder,hasChapters:t&&t.length,hasResources:n&&n.length,hasFields:o&&o.length,hasLinks:r&&r.length,showScreenrightsDisclaimer:this.showLicense()}}}},{key:"onRender",value:function(){this.renderBreadcrumbs(),this.renderVideoHeader(),this.renderSidebarInfo(),this.renderBasicInfo(),this.renderFields(),this.renderChapters(),this.renderResources(),this.renderLinks(),this.renderScreenrightsDisclaimer()}}])&&Ne(t.prototype,n),a&&Ne(t,a),s}(r.a.View)}}]);