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

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (234) hide show
  1. package/dist/bundles.json +1 -1
  2. package/dist/css/0-library-editor.chunk.css +26 -0
  3. package/dist/css/10-library-editor.chunk.css +25 -0
  4. package/dist/css/11-library-editor.chunk.css +135 -0
  5. package/dist/css/12-library-editor.chunk.css +18 -0
  6. package/dist/css/13-library-editor.chunk.css +21 -0
  7. package/dist/css/14-library-editor.chunk.css +76 -0
  8. package/dist/css/16-library-editor.chunk.css +52 -0
  9. package/dist/css/17-library-editor.chunk.css +14 -0
  10. package/dist/css/18-library-editor.chunk.css +18 -0
  11. package/dist/css/2-library-editor.chunk.css +143 -0
  12. package/dist/css/21-library-editor.chunk.css +52 -0
  13. package/dist/css/22-library-editor.chunk.css +12 -0
  14. package/dist/css/23-library-editor.chunk.css +25 -0
  15. package/dist/css/25-library-editor.chunk.css +35 -0
  16. package/dist/css/26-library-editor.chunk.css +20 -0
  17. package/dist/css/28-library-editor.chunk.css +63 -0
  18. package/dist/css/29-library-editor.chunk.css +80 -0
  19. package/dist/css/3-library-editor.chunk.css +15 -0
  20. package/dist/css/30-library-editor.chunk.css +33 -0
  21. package/dist/css/31-library-editor.chunk.css +30 -0
  22. package/dist/css/32-library-editor.chunk.css +45 -0
  23. package/dist/css/33-library-editor.chunk.css +13 -0
  24. package/dist/css/34-library-editor.chunk.css +19 -0
  25. package/dist/css/35-library-editor.chunk.css +18 -0
  26. package/dist/css/36-library-editor.chunk.css +12 -0
  27. package/dist/css/37-library-editor.chunk.css +5 -0
  28. package/dist/css/38-library-editor.chunk.css +5 -0
  29. package/dist/css/40-library-editor.chunk.css +24 -0
  30. package/dist/css/41-library-editor.chunk.css +76 -0
  31. package/dist/css/42-library-editor.chunk.css +44 -0
  32. package/dist/css/43-library-editor.chunk.css +30 -0
  33. package/dist/css/44-library-editor.chunk.css +12 -0
  34. package/dist/css/45-library-editor.chunk.css +25 -0
  35. package/dist/css/46-library-editor.chunk.css +24 -0
  36. package/dist/css/47-library-editor.chunk.css +84 -0
  37. package/dist/css/48-library-editor.chunk.css +4 -0
  38. package/dist/css/49-library-editor.chunk.css +33 -0
  39. package/dist/css/50-library-editor.chunk.css +20 -0
  40. package/dist/css/51-library-editor.chunk.css +37 -0
  41. package/dist/css/52-library-editor.chunk.css +64 -0
  42. package/dist/css/55-library-editor.chunk.css +3 -0
  43. package/dist/css/56-library-editor.chunk.css +3 -0
  44. package/dist/css/58-library-editor.chunk.css +3 -0
  45. package/dist/css/59-library-editor.chunk.css +3 -0
  46. package/dist/css/6-library-editor.chunk.css +42 -0
  47. package/dist/css/60-library-editor.chunk.css +16 -0
  48. package/dist/css/62-library-editor.chunk.css +4 -0
  49. package/dist/css/63-library-editor.chunk.css +168 -0
  50. package/dist/css/67-library-editor.chunk.css +76 -0
  51. package/dist/css/68-library-editor.chunk.css +15 -0
  52. package/dist/css/69-library-editor.chunk.css +15 -0
  53. package/dist/css/7-library-editor.chunk.css +10 -0
  54. package/dist/css/70-library-editor.chunk.css +21 -0
  55. package/dist/css/71-library-editor.chunk.css +38 -0
  56. package/dist/css/72-library-editor.chunk.css +14 -0
  57. package/dist/css/73-library-editor.chunk.css +35 -0
  58. package/dist/css/74-library-editor.chunk.css +27 -0
  59. package/dist/css/75-library-editor.chunk.css +4 -0
  60. package/dist/css/76-library-editor.chunk.css +4 -0
  61. package/dist/css/8-library-editor.chunk.css +7 -0
  62. package/dist/css/library-editor-app.css +9282 -0
  63. package/dist/scripts/0-b6c23a57b8.chunk.js +1 -0
  64. package/dist/scripts/0.chunk.js +64 -0
  65. package/dist/scripts/1-b0fc29397e.chunk.js +1 -0
  66. package/dist/scripts/1.chunk.js +75 -0
  67. package/dist/scripts/10-8307bb975c.chunk.js +1 -0
  68. package/dist/scripts/10.chunk.js +62 -0
  69. package/dist/scripts/11-39d9259f5b.chunk.js +11 -0
  70. package/dist/scripts/11.chunk.js +317 -0
  71. package/dist/scripts/12-ddc68398b8.chunk.js +1 -0
  72. package/dist/scripts/12.chunk.js +56 -0
  73. package/dist/scripts/13-8f8a6ce349.chunk.js +1 -0
  74. package/dist/scripts/13.chunk.js +25 -0
  75. package/dist/scripts/14-537dcac148.chunk.js +1 -0
  76. package/dist/scripts/14.chunk.js +272 -0
  77. package/dist/scripts/15-4def28b998.chunk.js +1 -0
  78. package/dist/scripts/15.chunk.js +35 -0
  79. package/dist/scripts/16-5e62546a04.chunk.js +1 -0
  80. package/dist/scripts/16.chunk.js +79 -0
  81. package/dist/scripts/17-3c0509798b.chunk.js +1 -0
  82. package/dist/scripts/17.chunk.js +40 -0
  83. package/dist/scripts/18.chunk.js +40 -0
  84. package/dist/scripts/19.chunk.js +43 -0
  85. package/dist/scripts/2-6cbd574810.chunk.js +1 -0
  86. package/dist/scripts/2.chunk.js +33 -0
  87. package/dist/scripts/20-e47912d1b0.chunk.js +1 -0
  88. package/dist/scripts/20.chunk.js +18 -0
  89. package/dist/scripts/21-c319fe911a.chunk.js +1 -0
  90. package/dist/scripts/21.chunk.js +55 -0
  91. package/dist/scripts/22-d50d286ec0.chunk.js +1 -0
  92. package/dist/scripts/22.chunk.js +47 -0
  93. package/dist/scripts/23-0e07fa84ee.chunk.js +1 -0
  94. package/dist/scripts/23.chunk.js +47 -0
  95. package/dist/scripts/24-1f362efc95.chunk.js +1 -0
  96. package/dist/scripts/24.chunk.js +33 -0
  97. package/dist/scripts/25-7226ec568a.chunk.js +1 -0
  98. package/dist/scripts/25.chunk.js +25 -0
  99. package/dist/scripts/26-c29ef97409.chunk.js +1 -0
  100. package/dist/scripts/26.chunk.js +25 -0
  101. package/dist/scripts/27-d3686d48d4.chunk.js +1 -0
  102. package/dist/scripts/27.chunk.js +10 -0
  103. package/dist/scripts/28-4f694bc77e.chunk.js +1 -0
  104. package/dist/scripts/28.chunk.js +334 -0
  105. package/dist/scripts/29-7189ce20ea.chunk.js +1 -0
  106. package/dist/scripts/29.chunk.js +202 -0
  107. package/dist/scripts/3-2f121af17d.chunk.js +1 -0
  108. package/dist/scripts/3.chunk.js +57 -0
  109. package/dist/scripts/30-b2f66f0afd.chunk.js +1 -0
  110. package/dist/scripts/30.chunk.js +137 -0
  111. package/dist/scripts/31-b7048d8b68.chunk.js +1 -0
  112. package/dist/scripts/31.chunk.js +113 -0
  113. package/dist/scripts/32-5d4dc8cc7a.chunk.js +1 -0
  114. package/dist/scripts/32.chunk.js +115 -0
  115. package/dist/scripts/33-10a1be6537.chunk.js +1 -0
  116. package/dist/scripts/33.chunk.js +93 -0
  117. package/dist/scripts/34-7ab862c582.chunk.js +1 -0
  118. package/dist/scripts/34.chunk.js +63 -0
  119. package/dist/scripts/35-068e9c8b75.chunk.js +1 -0
  120. package/dist/scripts/35.chunk.js +48 -0
  121. package/dist/scripts/36-dd1e44631a.chunk.js +1 -0
  122. package/dist/scripts/36.chunk.js +33 -0
  123. package/dist/scripts/37-8ba3a7efee.chunk.js +1 -0
  124. package/dist/scripts/37.chunk.js +25 -0
  125. package/dist/scripts/38-31d7ee384c.chunk.js +1 -0
  126. package/dist/scripts/38.chunk.js +25 -0
  127. package/dist/scripts/39-6353c29940.chunk.js +1 -0
  128. package/dist/scripts/39.chunk.js +19 -0
  129. package/dist/scripts/4-efdd6d1f63.chunk.js +1 -0
  130. package/dist/scripts/4.chunk.js +26 -0
  131. package/dist/scripts/40-1cfde7b518.chunk.js +1 -0
  132. package/dist/scripts/40.chunk.js +182 -0
  133. package/dist/scripts/41-dc122f1ff3.chunk.js +1 -0
  134. package/dist/scripts/41.chunk.js +175 -0
  135. package/dist/scripts/42-761edb9a10.chunk.js +1 -0
  136. package/dist/scripts/42.chunk.js +176 -0
  137. package/dist/scripts/43-95935b47bd.chunk.js +1 -0
  138. package/dist/scripts/43.chunk.js +121 -0
  139. package/dist/scripts/44-d7c79e8244.chunk.js +1 -0
  140. package/dist/scripts/44.chunk.js +122 -0
  141. package/dist/scripts/45-d56b804684.chunk.js +1 -0
  142. package/dist/scripts/45.chunk.js +85 -0
  143. package/dist/scripts/46-c8e2513bf9.chunk.js +1 -0
  144. package/dist/scripts/46.chunk.js +78 -0
  145. package/dist/scripts/47-033c1cf18a.chunk.js +1 -0
  146. package/dist/scripts/47.chunk.js +70 -0
  147. package/dist/scripts/48-f37fb199cf.chunk.js +1 -0
  148. package/dist/scripts/48.chunk.js +88 -0
  149. package/dist/scripts/49-66c283603e.chunk.js +1 -0
  150. package/dist/scripts/49.chunk.js +62 -0
  151. package/dist/scripts/5-8d1b34023d.chunk.js +1 -0
  152. package/dist/scripts/5.chunk.js +10 -0
  153. package/dist/scripts/50-fffaebeef7.chunk.js +1 -0
  154. package/dist/scripts/50.chunk.js +64 -0
  155. package/dist/scripts/51-0bed92583d.chunk.js +1 -0
  156. package/dist/scripts/51.chunk.js +55 -0
  157. package/dist/scripts/52-fddf83dbc3.chunk.js +1 -0
  158. package/dist/scripts/52.chunk.js +47 -0
  159. package/dist/scripts/53-56ab6f2900.chunk.js +1 -0
  160. package/dist/scripts/53.chunk.js +56 -0
  161. package/dist/scripts/54-801ffeb350.chunk.js +1 -0
  162. package/dist/scripts/54.chunk.js +56 -0
  163. package/dist/scripts/55-9a90130bde.chunk.js +1 -0
  164. package/dist/scripts/55.chunk.js +41 -0
  165. package/dist/scripts/56-0bda1f8ade.chunk.js +1 -0
  166. package/dist/scripts/56.chunk.js +41 -0
  167. package/dist/scripts/57-3e97374d6d.chunk.js +1 -0
  168. package/dist/scripts/57.chunk.js +50 -0
  169. package/dist/scripts/58-5494e053a7.chunk.js +1 -0
  170. package/dist/scripts/58.chunk.js +33 -0
  171. package/dist/scripts/59-b4d8ec05b3.chunk.js +1 -0
  172. package/dist/scripts/59.chunk.js +33 -0
  173. package/dist/scripts/6-d90b512b74.chunk.js +1 -0
  174. package/dist/scripts/6.chunk.js +40 -0
  175. package/dist/scripts/60-3dbafa2f5d.chunk.js +1 -0
  176. package/dist/scripts/60.chunk.js +33 -0
  177. package/dist/scripts/61-3acc614e23.chunk.js +1 -0
  178. package/dist/scripts/61.chunk.js +33 -0
  179. package/dist/scripts/62-ec5abf4e57.chunk.js +1 -0
  180. package/dist/scripts/62.chunk.js +25 -0
  181. package/dist/scripts/63-9acef1097c.chunk.js +1 -0
  182. package/dist/scripts/63.chunk.js +25 -0
  183. package/dist/scripts/64-5bd60a10f3.chunk.js +1 -0
  184. package/dist/scripts/64.chunk.js +33 -0
  185. package/dist/scripts/65-1b7003dcf7.chunk.js +1 -0
  186. package/dist/scripts/65.chunk.js +34 -0
  187. package/dist/scripts/66-df6e6e9fbb.chunk.js +1 -0
  188. package/dist/scripts/66.chunk.js +33 -0
  189. package/dist/scripts/67-2219085773.chunk.js +1 -0
  190. package/dist/scripts/67.chunk.js +25 -0
  191. package/dist/scripts/68-c590eb4668.chunk.js +1 -0
  192. package/dist/scripts/68.chunk.js +25 -0
  193. package/dist/scripts/69-f4a16bd797.chunk.js +1 -0
  194. package/dist/scripts/69.chunk.js +25 -0
  195. package/dist/scripts/7-4bbf1e0b34.chunk.js +1 -0
  196. package/dist/scripts/7.chunk.js +33 -0
  197. package/dist/scripts/70-de3cbb5854.chunk.js +1 -0
  198. package/dist/scripts/70.chunk.js +25 -0
  199. package/dist/scripts/71-7eded412b8.chunk.js +1 -0
  200. package/dist/scripts/71.chunk.js +25 -0
  201. package/dist/scripts/72-354b272679.chunk.js +1 -0
  202. package/dist/scripts/72.chunk.js +25 -0
  203. package/dist/scripts/73.chunk.js +25 -0
  204. package/dist/scripts/74.chunk.js +25 -0
  205. package/dist/scripts/75.chunk.js +25 -0
  206. package/dist/scripts/76.chunk.js +25 -0
  207. package/dist/scripts/77.chunk.js +26 -0
  208. package/dist/scripts/78.chunk.js +26 -0
  209. package/dist/scripts/79.chunk.js +26 -0
  210. package/dist/scripts/8-ea382936d8.chunk.js +1 -0
  211. package/dist/scripts/8.chunk.js +33 -0
  212. package/dist/scripts/80.chunk.js +26 -0
  213. package/dist/scripts/81.chunk.js +26 -0
  214. package/dist/scripts/82.chunk.js +26 -0
  215. package/dist/scripts/83.chunk.js +26 -0
  216. package/dist/scripts/84.chunk.js +26 -0
  217. package/dist/scripts/85.chunk.js +26 -0
  218. package/dist/scripts/86.chunk.js +18 -0
  219. package/dist/scripts/87.chunk.js +18 -0
  220. package/dist/scripts/88.chunk.js +18 -0
  221. package/dist/scripts/89.chunk.js +18 -0
  222. package/dist/scripts/9-7deb869eb3.chunk.js +1 -0
  223. package/dist/scripts/9.chunk.js +18 -0
  224. package/dist/scripts/90.chunk.js +18 -0
  225. package/dist/scripts/91.chunk.js +18 -0
  226. package/dist/scripts/92.chunk.js +18 -0
  227. package/dist/scripts/bundle-0af60c1906.min.js +10 -0
  228. package/dist/scripts/bundle-632a7b00a4.min.js +10 -0
  229. package/dist/scripts/bundle-aa32cea8e4.min.js +10 -0
  230. package/dist/scripts/{bundle-d48195bc25.min.js → bundle-cd66cc1369.min.js} +1 -1
  231. package/dist/scripts/bundle.js +7806 -0
  232. package/dist/scripts/polyfills-1bf177c7ab.min.js +1 -0
  233. package/dist/scripts/polyfills.js +2701 -0
  234. package/package.json +3 -3
@@ -0,0 +1 @@
1
+ (window.webpackJsonp_clickview_library_editor=window.webpackJsonp_clickview_library_editor||[]).push([[28],{1007:function(e,n,t){"use strict";var o,r;t.d(n,"b",(function(){return o})),t.d(n,"a",(function(){return r})),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"}(r||(r={}))},1036:function(e,n,t){"use strict";t.d(n,"b",(function(){return r})),t.d(n,"a",(function(){return w}));var o,r,i=t(2),l=t(12),a=t(3),s=t(1104),u=t.n(s),c=t(1105),p=t.n(c);function f(e){return(f="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}function 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 d(e,n){return(d=Object.setPrototypeOf||function(e,n){return e.__proto__=n,e})(e,n)}function y(e){var n=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(e){return!1}}();return function(){var t,o=m(e);if(n){var r=m(this).constructor;t=Reflect.construct(o,arguments,r)}else t=o.apply(this,arguments);return g(this,t)}}function g(e,n){return!n||"object"!==f(n)&&"function"!=typeof n?function(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}(e):n}function m(e){return(m=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)})(e)}function v(e,n,t){return n in e?Object.defineProperty(e,n,{value:t,enumerable:!0,configurable:!0,writable:!0}):e[n]=t,e}!function(e){e.Small="sm",e.Large="lg"}(r||(r={}));var b=(v(o={},r.Small,3),v(o,r.Large,5),o),w=function(e){!function(e,n){if("function"!=typeof n&&null!==n)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(n&&n.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),n&&d(e,n)}(s,e);var n,t,o,i=y(s);function s(e){var n;return function(e,n){if(!(e instanceof n))throw new TypeError("Cannot call a class as a function")}(this,s),(n=i.call(this,e)).showingMore=!1,n}return n=s,(t=[{key:"name",get:function(){return"VideoDescriptionComponent"}},{key:"template",get:function(){return u.a}},{key:"lang",get:function(){return"shared.videoDescription"}},{key:"defaults",get:function(){return{size:"sm"}}},{key:"elements",get:function(){return{description:".description",ellipsis:this.options.allowExpand?".".concat(p.a.showMoreEllipsis):".".concat(p.a.singleEllipsis)}}},{key:"events",value:function(){return v({},"click .".concat(p.a.showMoreEllipsis),"onClickShowMore")}},{key:"onClickShowMore",value:function(e){e.preventDefault(),this.showingMore?this.showLessDescription():this.showMoreDescription()}},{key:"getDescription",value:function(){return this.options.linkify?l.w.linkifyText(l.w.escapeExpression(this.model.get("description"))):this.options.highlighter?l.w.wordsHighlighter(l.w.escapeExpression(this.model.get("description")),this.model.get("_matchedWords")):void 0}},{key:"getDescriptionElements",value:function(){return{descriptionTextEl:this.getUI("description"),ellipsisEl:this.getUI("ellipsis")}}},{key:"showMoreDescription",value:function(){var e=this.getDescriptionElements(),n=e.descriptionTextEl,t=e.ellipsisEl;n.removeClass(p.a.truncateLarge).addClass(p.a.open),t.text(a.a.getPhrase(this.lang,"showLess")),this.showingMore=!0}},{key:"showLessDescription",value:function(){var e,n=this.getDescriptionElements(),t=n.descriptionTextEl,o=n.ellipsisEl;this.options.size===r.Small&&(e="truncateSmall"),this.options.size===r.Large&&(e="truncateLarge"),t.addClass(p.a[e]),o.text(this.options.allowExpand?"... ".concat(a.a.getPhrase(this.lang,"showMore")):"...").removeClass(p.a.hideEllipsis).addClass(p.a.showEllipsis),this.showingMore=!1}},{key:"truncateDescription",value:function(){if(this.options.truncate){var e=this.getDescriptionElements().descriptionTextEl,n=b[this.options.size];e.height()<=21*n||this.showLessDescription()}}},{key:"viewOptions",value:function(){return{styles:p.a,truncate:this.options.truncate,expandable:this.options.allowExpand,description:this.getDescription()}}},{key:"onAttach",value:function(){this.truncateDescription()}}])&&h(n.prototype,t),o&&h(n,o),s}(i.a.Component)},1053:function(e,n,t){"use strict";t.d(n,"a",(function(){return C}));var o=t(1),r=t(6),i=t(2),l=t(4),a=t(42),s=t(192),u=t(190),c=t(289),p=t(12),f=t(0),h=t(1160),d=t(1106),y=t.n(d);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){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=k(e);if(n){var r=k(this).constructor;t=Reflect.construct(o,arguments,r)}else t=o.apply(this,arguments);return w(this,t)}}function w(e,n){return!n||"object"!==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 k(e){return(k=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)}(g,e);var n,t,i,d=b(g);function g(e){return function(e,n){if(!(e instanceof n))throw new TypeError("Cannot call a class as a function")}(this,g),d.call(this,e)}return n=g,(t=[{key:"initialize",value:function(){this.bindListeners()}},{key:"name",get:function(){return"VideoPreviewComponent"}},{key:"template",get:function(){return y.a}},{key:"instanceChannelName",get:function(){return p.k.generateUniqueChannelName(this)}},{key:"defaults",get:function(){return{captureAnalytics:!0}}},{key:"behaviors",get:function(){var e=this;return[{behaviorClass:c.c,selector:".lazy-img",callback:function(){r.Radio.channel(e.instanceChannelName).trigger("show:play:icon")},minBrowserSupportVersion:f.p}]}},{key:"regions",value:function(){return{player:{el:".video-player-region",replaceElement:!1},thumbnail:{el:".thumbnail-region",replaceElement:!0}}}},{key:"events",value:function(){return{click:"onClick"}}},{key:"bindListeners",value:function(){this.options.channelName&&this.listenTo(this.options.channelName,"update:chapter:time",this.onUpdateWebplayer)}},{key:"onUpdateWebplayer",value:function(e){if(!this.player)return this.listenToOnce(this.options.channelName,"webplayer:loaded",o.bind(this.seekToChapter,this,e)),void this.renderVideoPreview();this.seekToChapter(e)}},{key:"seekToChapter",value:function(e){this.player.seekTo(e)}},{key:"onClick",value:function(){this.player||this.renderVideoPreview()}},{key:"renderThumbnail",value:function(){this.showChildView("thumbnail",new u.a({model:this.model,thumbnailOptions:{size:s.a.Medium},playIcon:!0,lazyload:!0,channelName:this.instanceChannelName}))}},{key:"renderVideoPreview",value:function(){this.player=new h.a({model:this.model,webPlayerUrl:this.options.webPlayerUrl,parentChannelName:this.options.channelName,autoplay:!0,analyticsOptions:a.a.mergeOptions(this.options.analyticsOptions,{entity:l.EntityType.Video}),captureAnalytics:this.options.captureAnalytics,currentUser:this.options.currentUser}),this.showChildView("player",this.player)}},{key:"onRender",value:function(){this.renderThumbnail()}}])&&m(n.prototype,t),i&&m(n,i),g}(i.a.Component)},1104:function(e,n,t){var o=t(10);e.exports=(o.default||o).template({1:function(e,n,t,o,r){e.propertyIsEnumerable;var i,l=e.lambda,a=e.escapeExpression;return' <div class="'+a(l(null!=(i=null!=(i=null!=n?n.options:n)?i.styles:i)?i.descriptionWrapper:i,n))+'">\r\n <p class="description '+a(l(null!=(i=null!=(i=null!=n?n.options:n)?i.styles:i)?i.description:i,n))+'">'+(null!=(i=t.if.call(null!=n?n:e.nullContext||{},null!=(i=null!=n?n.options:n)?i.expandable:i,{name:"if",hash:{},fn:e.program(2,r,0),inverse:e.program(4,r,0),data:r}))?i:"")+"</p>\r\n </div>\r\n"},2:function(e,n,t,o,r){e.propertyIsEnumerable;var i,l=e.lambda,a=e.escapeExpression;return(null!=(i=l(null!=(i=null!=n?n.options:n)?i.description:i,n))?i:"")+'<span class="'+a(l(null!=(i=null!=(i=null!=n?n.options:n)?i.styles:i)?i.showMoreEllipsis:i,n))+" "+a(l(null!=(i=null!=(i=null!=n?n.options:n)?i.styles:i)?i.hideEllipsis:i,n))+'">... '+a((t.lang||n&&n.lang||e.hooks.helperMissing).call(null!=n?n:e.nullContext||{},"showMore",{name:"lang",hash:{},data:r}))+"</span>"},4:function(e,n,t,o,r){e.propertyIsEnumerable;var i,l=e.lambda,a=e.escapeExpression;return(null!=(i=l(null!=(i=null!=n?n.options:n)?i.description:i,n))?i:"")+'<span class="'+a(l(null!=(i=null!=(i=null!=n?n.options:n)?i.styles:i)?i.singleEllipsis:i,n))+" "+a(l(null!=(i=null!=(i=null!=n?n.options:n)?i.styles:i)?i.hideEllipsis:i,n))+'">...</span>'},6:function(e,n,t,o,r){e.propertyIsEnumerable;var i,l=e.lambda;return' <p class="'+e.escapeExpression(l(null!=(i=null!=(i=null!=n?n.options:n)?i.styles:i)?i.description:i,n))+'">'+(null!=(i=l(null!=(i=null!=n?n.options:n)?i.description:i,n))?i:"")+"</p>\r\n"},compiler:[8,">= 4.3.0"],main:function(e,n,t,o,r){var i;e.propertyIsEnumerable;return null!=(i=t.if.call(null!=n?n:e.nullContext||{},null!=(i=null!=n?n.options:n)?i.truncate:i,{name:"if",hash:{},fn:e.program(1,r,0),inverse:e.program(6,r,0),data:r}))?i:""},useData:!0})},1105:function(e,n,t){e.exports={columnNames:"_1a1Re",descriptionWrapper:"_2MZC5",description:"_3U9j9",ellipsis:"_1YjUg",singleEllipsis:"_3SNtn",showMoreEllipsis:"xy3i9",showEllipsis:"_1_L9t",hideEllipsis:"TCdgP",open:"_18ojI",truncateSmall:"nLuVF",truncateLarge:"sEELY"}},1106:function(e,n,t){var o=t(10);e.exports=(o.default||o).template({compiler:[8,">= 4.3.0"],main:function(e,n,t,o,r){return'<div class="video-player-region cursor-pointer responsize-img">\r\n <div class="thumbnail-region"></div>\r\n</div>'},useData:!0})},1371:function(e,n,t){var o=t(10);e.exports=(o.default||o).template({compiler:[8,">= 4.3.0"],main:function(e,n,t,o,r){return'<div class="videos-region"></div>'},useData:!0})},1372:function(e,n,t){var o=t(10);e.exports=(o.default||o).template({1:function(e,n,t,o,r){e.propertyIsEnumerable;return'<p class="text-uppercase text-muted">'+e.escapeExpression((t.lang||n&&n.lang||e.hooks.helperMissing).call(null!=n?n:e.nullContext||{},"description",{name:"lang",hash:{},data:r}))+"</p>\r\n"},compiler:[8,">= 4.3.0"],main:function(e,n,t,o,r){var i;e.propertyIsEnumerable;return(null!=(i=t.if.call(null!=n?n:e.nullContext||{},null!=n?n.description:n,{name:"if",hash:{},fn:e.program(1,r,0),inverse:e.noop,data:r}))?i:"")+'<div class="description-region"></div>\r\n<div class="webplayer-region col-5 pl-0"></div>'},useData:!0})},1373:function(e,n,t){var o=t(10);e.exports=(o.default||o).template({1:function(e,n,t,o,r){e.propertyIsEnumerable;return" <span>"+e.escapeExpression((t.lang||n&&n.lang||e.hooks.helperMissing).call(null!=n?n:e.nullContext||{},"series",{name:"lang",hash:{series:null!=n?n.series:n},data:r}))+"</span>\r\n"},3:function(e,n,t,o,r){e.propertyIsEnumerable;var i,l=null!=n?n:e.nullContext||{};return" "+(null!=(i=t.if.call(l,null!=n?n.series:n,{name:"if",hash:{},fn:e.program(4,r,0),inverse:e.noop,data:r}))?i:"")+"\r\n <span>"+e.escapeExpression((t.lang||n&&n.lang||e.hooks.helperMissing).call(l,"folder",{name:"lang",hash:{folder:null!=n?n.category:n},data:r}))+"</span>\r\n"},4:function(e,n,t,o,r){return'<span class="mx-1">|</span>'},6:function(e,n,t,o,r){e.propertyIsEnumerable;var i,l=e.lambda,a=e.escapeExpression;return' <span class="badge p-1 tool-tip '+a(l(null!=(i=null!=(i=null!=n?n.options:n)?i.styles:i)?i.rating:i,n))+" "+a(l(null!=(i=null!=n?n.options:n)?i.ratingColorClass:i,n))+'" title="'+a(l(null!=(i=null!=n?n.rating:n)?i.name:i,n))+'">'+a(l(null!=(i=null!=n?n.rating:n)?i.code:i,n))+"</span>\r\n"},8:function(e,n,t,o,r){var i;return null!=(i=t.if.call(null!=n?n:e.nullContext||{},n,{name:"if",hash:{},fn:e.program(9,r,0),inverse:e.noop,data:r}))?i:""},9:function(e,n,t,o,r){return' <div class="text-danger">'+e.escapeExpression(e.lambda(n,n))+"</div>\r\n"},compiler:[8,">= 4.3.0"],main:function(e,n,t,o,r){e.propertyIsEnumerable;var i,l,a=null!=n?n:e.nullContext||{};return'<div>\r\n <a class="h6">'+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:r}):l)+"</a>\r\n</div>\r\n<div>\r\n"+(null!=(i=t.if.call(a,null!=n?n.series:n,{name:"if",hash:{},fn:e.program(1,r,0),inverse:e.noop,data:r}))?i:"")+(null!=(i=t.if.call(a,null!=n?n.category:n,{name:"if",hash:{},fn:e.program(3,r,0),inverse:e.noop,data:r}))?i:"")+"</div>\r\n"+(null!=(i=t.if.call(a,null!=(i=null!=n?n.rating:n)?i.code:i,{name:"if",hash:{},fn:e.program(6,r,0),inverse:e.noop,data:r}))?i:"")+(null!=(i=t.each.call(a,null!=(i=null!=n?n.options:n)?i.errorStrings:i,{name:"each",hash:{},fn:e.program(8,r,0),inverse:e.noop,data:r}))?i:"")},useData:!0})},1374:function(e,n,t){e.exports={rating:"_3IJcl"}},1375:function(e,n,t){e.exports={svgContainer:"_-0ibU",selectedButton:"_28zhr",showPreview:"_2r4VF"}},1376:function(e,n,t){var o=t(10);e.exports=(o.default||o).template({1:function(e,n,t,o,r){e.propertyIsEnumerable;var i,l=e.lambda,a=e.escapeExpression;return' <button class="btn btn-success use-online-copy '+a(l(null!=(i=null!=(i=null!=n?n.options:n)?i.styles:i)?i.selectedButton:i,n))+'"><span class="'+a(l(null!=(i=null!=(i=null!=n?n.options:n)?i.styles:i)?i.svgContainer:i,n))+'">'+(null!=(i=l(null!=(i=null!=n?n.options:n)?i.checkSvg:i,n))?i:"")+"</span>"+a((t.lang||n&&n.lang||e.hooks.helperMissing).call(null!=n?n:e.nullContext||{},"resolve",{name:"lang",hash:{},data:r}))+"</button>\r\n"},3:function(e,n,t,o,r){e.propertyIsEnumerable;var i=null!=n?n:e.nullContext||{},l=e.hooks.helperMissing,a=e.escapeExpression;return' <button class="btn btn-link dismiss">'+a((t.lang||n&&n.lang||l).call(i,"dismiss",{name:"lang",hash:{},data:r}))+'</button>\r\n <button class="btn btn-outline-secondary use-online-copy">'+a((t.lang||n&&n.lang||l).call(i,"resolve",{name:"lang",hash:{},data:r}))+"</button>\r\n"},5:function(e,n,t,o,r){e.propertyIsEnumerable;return e.escapeExpression((t.lang||n&&n.lang||e.hooks.helperMissing).call(null!=n?n:e.nullContext||{},"hide",{name:"lang",hash:{},data:r}))},7:function(e,n,t,o,r){e.propertyIsEnumerable;return e.escapeExpression((t.lang||n&&n.lang||e.hooks.helperMissing).call(null!=n?n:e.nullContext||{},"show",{name:"lang",hash:{},data:r}))},compiler:[8,">= 4.3.0"],main:function(e,n,t,o,r){e.propertyIsEnumerable;var i,l=null!=n?n:e.nullContext||{},a=e.lambda,s=e.escapeExpression;return"<div>\r\n"+(null!=(i=t.if.call(l,null!=(i=null!=n?n.options:n)?i.selected:i,{name:"if",hash:{},fn:e.program(1,r,0),inverse:e.program(3,r,0),data:r}))?i:"")+'</div>\r\n<div class="mt-4 cursor-pointer video-item-show-preview text-right '+s(a(null!=(i=null!=(i=null!=n?n.options:n)?i.styles:i)?i.showPreview:i,n))+'">\r\n <span class="svg-container d-inline-block">'+(null!=(i=a(null!=(i=null!=n?n.options:n)?i.previewSvg:i,n))?i:"")+"</span>\r\n "+(null!=(i=t.if.call(l,null!=(i=null!=n?n.options:n)?i.previewDisplayed:i,{name:"if",hash:{},fn:e.program(5,r,0),inverse:e.program(7,r,0),data:r}))?i:"")+" "+s((t.lang||n&&n.lang||e.hooks.helperMissing).call(l,"preview",{name:"lang",hash:{},data:r}))+"\r\n</div>"},useData:!0})},1377:function(e,n,t){var o=t(10);e.exports=(o.default||o).template({1:function(e,n,t,o,r){return" cursor-pointer"},3:function(e,n,t,o,r){e.propertyIsEnumerable;var i,l=e.escapeExpression,a=null!=n?n:e.nullContext||{},s=e.hooks.helperMissing;return'<div class="'+l(e.lambda(null!=(i=null!=(i=null!=n?n.options:n)?i.styles:i)?i.doNotAdd:i,n))+' text-center">\r\n <p class="mb-0 mt-3">'+(null!=(i=(t.lang||n&&n.lang||s).call(a,"willNotBeAdded",{name:"lang",hash:{videoName:null!=n?n.name:n},data:r}))?i:"")+'</p>\r\n <p class="m-0">'+l((t.lang||n&&n.lang||s).call(a,"willBeRemoved",{name:"lang",hash:{},data:r}))+'</p>\r\n <button class="btn btn-link undo">'+l((t.lang||n&&n.lang||s).call(a,"undo",{name:"lang",hash:{},data:r}))+"</button>\r\n</div>\r\n"},compiler:[8,">= 4.3.0"],main:function(e,n,t,o,r){e.propertyIsEnumerable;var i,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!=(i=null!=(i=null!=n?n.options:n)?i.styles:i)?i.videoItem:i,n))+(null!=(i=t.if.call(s,null!=(i=null!=n?n.options:n)?i.isClickable:i,{name:"if",hash:{},fn:e.program(1,r,0),inverse:e.noop,data:r}))?i:"")+'">\r\n <div class="thumbnail-region d-inline-block '+a(l(null!=(i=null!=(i=null!=n?n.options:n)?i.styles:i)?i.thumbnailContainer:i,n))+'"></div>\r\n <div class="metadata-region d-inline-block px-3 '+a(l(null!=(i=null!=(i=null!=n?n.options:n)?i.styles:i)?i.metaContainer:i,n))+'"></div>\r\n <div class="video-actions-region d-inline-block '+a(l(null!=(i=null!=(i=null!=n?n.options:n)?i.styles:i)?i.actionsContainer:i,n))+'"></div>\r\n</div>\r\n<div class="video-info-region '+a(l(null!=(i=null!=(i=null!=n?n.options:n)?i.styles:i)?i.previewContainer:i,n))+'"></div>\r\n'+(null!=(i=t.if.call(s,null!=(i=null!=n?n.options:n)?i.doNotAdd:i,{name:"if",hash:{},fn:e.program(3,r,0),inverse:e.noop,data:r}))?i:"")},useData:!0})},1378:function(e,n,t){e.exports={component:"_13khy",thumbnailContainer:"_gEcp",metaContainer:"zuMb1",actionsContainer:"_1ppp8",videoItem:"_2Ru6c",doNotAdd:"_8l6WV"}},1379:function(e,n,t){var o=t(10);e.exports=(o.default||o).template({1:function(e,n,t,o,r){var i;e.propertyIsEnumerable;return'<span class="border-right d-inline-block align-middle pr-3">'+e.escapeExpression((t.lang||n&&n.lang||e.hooks.helperMissing).call(null!=n?n:e.nullContext||{},"videosAdded",{name:"lang",hash:{smartCount:null!=(i=null!=n?n.options:n)?i.count:i},data:r}))+"</span>\r\n"},3:function(e,n,t,o,r){return"disabled"},compiler:[8,">= 4.3.0"],main:function(e,n,t,o,r){e.propertyIsEnumerable;var i,l=null!=n?n:e.nullContext||{},a=e.hooks.helperMissing,s=e.escapeExpression;return(null!=(i=t.if.call(l,null!=(i=null!=n?n.options:n)?i.countPhrase:i,{name:"if",hash:{},fn:e.program(1,r,0),inverse:e.noop,data:r}))?i:"")+'<span class="d-inline-block align-middle"><button class="btn btn-link clear-all"'+(null!=(i=t.if.call(l,null!=(i=null!=n?n.options:n)?i.submitDisabled:i,{name:"if",hash:{},fn:e.program(3,r,0),inverse:e.noop,data:r}))?i:"")+">"+s((t.lang||n&&n.lang||a).call(l,"reset",{name:"lang",hash:{},data:r}))+'</button></span>\r\n<button class="btn btn-primary align-middle ml-2 submit" '+(null!=(i=t.if.call(l,null!=(i=null!=n?n.options:n)?i.submitDisabled:i,{name:"if",hash:{},fn:e.program(3,r,0),inverse:e.noop,data:r}))?i:"")+">"+s((t.lang||n&&n.lang||a).call(l,"submit",{name:"lang",hash:{},data:r}))+"</button>"},useData:!0})},1380:function(e,n,t){var o=t(10);e.exports=(o.default||o).template({1:function(e,n,t,o,r){e.propertyIsEnumerable;var i,l,a=e.escapeExpression,s=null!=n?n:e.nullContext||{},u=e.hooks.helperMissing;return'<div class="m-auto text-warning '+a(e.lambda(null!=(i=null!=n?n.styles:n)?i.svgContainer:i,n))+'">'+(null!=(i="function"==typeof(l=null!=(l=t.warningSvg||(null!=n?n.warningSvg:n))?l:u)?l.call(s,{name:"warningSvg",hash:{},data:r}):l)?i:"")+"</div>\r\n<p>\r\n <div>"+(null!=(i="function"==typeof(l=null!=(l=t.onlineCopyCountText||(null!=n?n.onlineCopyCountText:n))?l:u)?l.call(s,{name:"onlineCopyCountText",hash:{},data:r}):l)?i:"")+' will be migrated to your Library Editor ignoring all warnings.</div>\r\n <span class="text-danger">\r\n '+a("function"==typeof(l=null!=(l=t.warningText||(null!=n?n.warningText:n))?l:u)?l.call(s,{name:"warningText",hash:{},data:r}):l)+"\r\n </span>\r\n</p> \r\n"},3:function(e,n,t,o,r){var i,l;e.propertyIsEnumerable;return"<p>"+(null!=(i="function"==typeof(l=null!=(l=t.doNotAddCountText||(null!=n?n.doNotAddCountText:n))?l:e.hooks.helperMissing)?l.call(null!=n?n:e.nullContext||{},{name:"doNotAddCountText",hash:{},data:r}):l)?i:"")+" will be removed from this list and will not be added to your library.</p>\r\n"},compiler:[8,">= 4.3.0"],main:function(e,n,t,o,r){e.propertyIsEnumerable;var i,l=null!=n?n:e.nullContext||{};return(null!=(i=t.if.call(l,null!=n?n.onlineCopyCount:n,{name:"if",hash:{},fn:e.program(1,r,0),inverse:e.noop,data:r}))?i:"")+(null!=(i=t.if.call(l,null!=n?n.doNotAddCount:n,{name:"if",hash:{},fn:e.program(3,r,0),inverse:e.noop,data:r}))?i:"")},useData:!0})},1381:function(e,n,t){var o=t(10);e.exports=(o.default||o).template({1:function(e,n,t,o,r){e.propertyIsEnumerable;var i,l=null!=n?n:e.nullContext||{},a=e.hooks.helperMissing,s=e.escapeExpression;return' <h2 class="h3">'+s((t.lang||n&&n.lang||a).call(l,"couldNotBeMigrated",{name:"lang",hash:{smartCount:null!=(i=null!=n?n.options:n)?i.items:i},data:r}))+'</h2>\r\n <p class="mb-1">'+s((t.lang||n&&n.lang||a).call(l,"ensureValidity",{name:"lang",hash:{},data:r}))+'</p>\r\n <p class="mb-2"><a href="'+s(e.lambda(null!=(i=null!=n?n.options:n)?i.supportArticle:i,n))+'" target="_blank" class="text-info">'+s((t.lang||n&&n.lang||a).call(l,"moreInfo",{name:"lang",hash:{},data:r}))+'</a></p>\r\n <button class="approve-all btn btn-success d-inline-block mr-2" type="button">'+s((t.lang||n&&n.lang||a).call(l,"resolve",{name:"lang",hash:{},data:r}))+'</button>\r\n <button class="do-not-add btn btn-link d-inline-block" type="button">'+s((t.lang||n&&n.lang||a).call(l,"dismiss",{name:"lang",hash:{},data:r}))+"</button>\r\n"},3:function(e,n,t,o,r){return""},compiler:[8,">= 4.3.0"],main:function(e,n,t,o,r){e.propertyIsEnumerable;var i,l=e.lambda,a=e.escapeExpression;return'<div class="tab-region '+a(l(null!=(i=null!=(i=null!=n?n.options:n)?i.styles:i)?i.tabsContainer:i,n))+' border-bottom"></div>\r\n<div class="p-3 border-bottom '+a(l(null!=(i=null!=(i=null!=n?n.options:n)?i.styles:i)?i.headingContainer:i,n))+'">\r\n'+(null!=(i=t.if.call(null!=n?n:e.nullContext||{},null!=(i=null!=n?n.options:n)?i.items:i,{name:"if",hash:{},fn:e.program(1,r,0),inverse:e.program(3,r,0),data:r}))?i:"")+'</div>\r\n<div class="videos-region '+a(l(null!=(i=null!=(i=null!=n?n.options:n)?i.styles:i)?i.videoContainer:i,n))+'"></div>\r\n<div class="footer-region"></div>\r\n'},useData:!0})},1382:function(e,n,t){e.exports={migrationErrorView:"_1Jo6e",videoContainer:"_7tGnj",svgContainer:"csNIF",headingContainer:"_30NNv",tabsContainer:"_10__f"}},1434:function(e,n,t){"use strict";t.r(n);var o=t(1),r=t(2),i=t(5),l=t(30),a=t(3),s=t(16),u=t(293),c=t(4),p=t(42),f=t(188),h=t(0),d=t(9),y=t(12),g=t(289),m=t(1371),v=t(190),b=t(1007),w=t(98),k=t(1372),C=t(1036),E=t(1053);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,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 O(e,n){return(O=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=P(e);if(n){var r=P(this).constructor;t=Reflect.construct(o,arguments,r)}else t=o.apply(this,arguments);return _(this,t)}}function _(e,n){return!n||"object"!==x(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 P(e){return(P=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)})(e)}var R,V=function(e){!function(e,n){if("function"!=typeof n&&null!==n)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(n&&n.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),n&&O(e,n)}(i,e);var n,t,o,r=M(i);function i(e){return function(e,n){if(!(e instanceof n))throw new TypeError("Cannot call a class as a function")}(this,i),r.call(this,e)}return n=i,(t=[{key:"name",get:function(){return"ErroredVideoPreviewComponent"}},{key:"className",get:function(){return"p-3 border-top"}},{key:"template",get:function(){return k}},{key:"lang",get:function(){return"migrationWizard.erroredVideoPreview"}},{key:"regions",value:function(){return{description:{el:".description-region",replaceElement:!0},webplayer:{el:".webplayer-region"}}}},{key:"onRender",value:function(){this.showChildView("webplayer",new E.a({webPlayerUrl:this.options.webplayerUrl,model:new w.a({duration:1e3*this.model.get("duration"),thumbnail:{url:"".concat(this.options.imageCdnUrl,"v1/thumbnails/trackingcode/").concat(this.model.get("trackingCode"))},trackingCode:this.model.get("trackingCode")}),captureAnalytics:!1,currentUser:this.options.currentUser})),this.model.get("description")&&this.showChildView("description",new C.a({model:this.model,linkify:!0,size:C.b.Large,truncate:!0,allowExpand:!0}))}}])&&S(n.prototype,t),o&&S(n,o),i}(r.a.Component),j=t(1373),D=t(1374),T=t(53);function N(e,n,t){return n in e?Object.defineProperty(e,n,{value:t,enumerable:!0,configurable:!0,writable:!0}):e[n]=t,e}var I="migrationWizard.utils",A=function(){return a.a.getPhrase(I,"videoFileCorrupt")},U=function(){return a.a.getPhrase(I,"videoFileInformationMissing")},L=function(){return a.a.getPhrase(I,"resouceFileMissing")},B=(N(R={},T.f.BinaryRemoved,(function(){return""})),N(R,T.f.LocalFileNotFound,(function(){return a.a.getPhrase(I,"videoFileMissing")})),N(R,T.f.DbEmptyChapter,A),N(R,T.f.DbChapterChecksumNotFound,A),N(R,T.f.DbChapterDurationNotFound,U),N(R,T.f.DbChapterFileSizeNotFound,U),N(R,T.f.DbChapterChecksumNotMatch,U),N(R,T.f.DbChapterDurationNotMatch,U),N(R,T.f.DbChapterFileSizeNotMatch,U),N(R,T.f.SubtitleUploadFailure,(function(){return a.a.getPhrase(I,"subtitleFileMissing")})),N(R,T.f.ResourceUploadFailure,L),N(R,T.f.ResourceFileNotFound,L),N(R,T.f.ResourceFileInvalid,L),N(R,T.f.DbResourceChecksumNotFound,L),N(R,T.f.DbResourceExtensionNotFound,L),N(R,T.f.DbResourceFileSizeNotFound,L),N(R,T.f.DbResourceChecksumNotMatch,L),N(R,T.f.DbResourceFileSizeNotMatch,L),N(R,T.f.CoverImageUploadFailure,(function(){return a.a.getPhrase(I,"thumbnailMissing")})),R),z=function(e){return o.unique(o.map(e,(function(e){return B[e]()})))},F=t(1012);function W(e){return(W="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}function q(e,n){if(!(e instanceof n))throw new TypeError("Cannot call a class as a function")}function G(e,n){for(var t=0;t<n.length;t++){var o=n[t];o.enumerable=o.enumerable||!1,o.configurable=!0,"value"in o&&(o.writable=!0),Object.defineProperty(e,o.key,o)}}function H(e,n){return(H=Object.setPrototypeOf||function(e,n){return e.__proto__=n,e})(e,n)}function J(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=Z(e);if(n){var r=Z(this).constructor;t=Reflect.construct(o,arguments,r)}else t=o.apply(this,arguments);return Y(this,t)}}function Y(e,n){return!n||"object"!==W(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 Z(e){return(Z=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)})(e)}var K=function(e){!function(e,n){if("function"!=typeof n&&null!==n)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(n&&n.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),n&&H(e,n)}(i,e);var n,t,o,r=J(i);function i(){return q(this,i),r.apply(this,arguments)}return n=i,(t=[{key:"name",get:function(){return"ErroredVideoMetadataComponent"}},{key:"template",get:function(){return j}},{key:"lang",get:function(){return"migrationWizard.erroredVideoMetadata"}},{key:"viewOptions",value:function(){return{styles:D,errorStrings:z(this.model.get("clientValidationResults")),ratingColorClass:this.model.get("rating")&&F.h.mapRatingToClass(this.model.get("rating").value)}}}])&&G(n.prototype,t),o&&G(n,o),i}(r.a.Component),Q="use-online-copy",X="do-not-add",$="migration:errored:videos:preview",ee="migration:errored:videos:selected",ne=t(1375),te=t(1376);function oe(e){return(oe="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 le(e){var n=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(e){return!1}}();return function(){var t,o=se(e);if(n){var r=se(this).constructor;t=Reflect.construct(o,arguments,r)}else t=o.apply(this,arguments);return ae(this,t)}}function ae(e,n){return!n||"object"!==oe(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 se(e){return(se=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)})(e)}var ue=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)}(i,e);var n,t,o,r=le(i);function i(e){return function(e,n){if(!(e instanceof n))throw new TypeError("Cannot call a class as a function")}(this,i),r.call(this,e)}return n=i,(t=[{key:"initialize",value:function(){this.viewModel=l.a.get(ee),this.previewViewModel=l.a.get($),this.listenTo(this.viewModel,"change:".concat(this.model.get("id")),this.render)}},{key:"name",get:function(){return"ErroredVideoActionsComponent"}},{key:"template",get:function(){return te}},{key:"lang",get:function(){return"migrationWizard.erroredVideoActions"}},{key:"className",get:function(){return"text-right"}},{key:"events",value:function(){return{"click .use-online-copy":"onClickSelect","click .dismiss":"onClickDismiss"}}},{key:"isSelected",value:function(){return this.viewModel.get(this.model.get("id"))===Q}},{key:"onClickSelect",value:function(e){e.stopPropagation(),this.previewViewModel.get(this.model.get("id"))&&this.previewViewModel.clear(),this.isSelected()?this.viewModel.unset(this.model.get("id")):this.viewModel.set(this.model.get("id"),Q)}},{key:"onClickDismiss",value:function(e){e.stopPropagation(),this.previewViewModel.get(this.model.get("id"))&&this.previewViewModel.clear(),this.viewModel.set(this.model.get("id"),X)}},{key:"viewOptions",value:function(){return{styles:ne,selected:this.isSelected(),checkSvg:s.a.getSvg(s.b.Check),previewSvg:s.a.getSvg(s.b.Preview)}}}])&&re(n.prototype,t),o&&re(n,o),i}(r.a.Component),ce=t(1377),pe=t(1378);function fe(e){return(fe="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}function he(e,n,t){return n in e?Object.defineProperty(e,n,{value:t,enumerable:!0,configurable:!0,writable:!0}):e[n]=t,e}function de(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 ye(e,n){return(ye=Object.setPrototypeOf||function(e,n){return e.__proto__=n,e})(e,n)}function ge(e){var n=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(e){return!1}}();return function(){var t,o=ve(e);if(n){var r=ve(this).constructor;t=Reflect.construct(o,arguments,r)}else t=o.apply(this,arguments);return me(this,t)}}function me(e,n){return!n||"object"!==fe(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 be=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&&ye(e,n)}(i,e);var n,t,o,r=ge(i);function i(e){return function(e,n){if(!(e instanceof n))throw new TypeError("Cannot call a class as a function")}(this,i),r.call(this,e)}return n=i,(t=[{key:"initialize",value:function(){this.viewModel=l.a.get(ee),this.previewViewModel=l.a.get($),this.listenTo(this.viewModel,"change:".concat(this.model.get("id")),this.render),this.listenTo(this.previewViewModel,"change:".concat(this.model.get("id")),this.render),this.listenTo(this.channelName,"thumbnail:load",this.onThumbnailLoad)}},{key:"name",get:function(){return"ErroredVideoItemComponent"}},{key:"template",get:function(){return ce}},{key:"lang",get:function(){return"migrationWizard.erroredVideoItem"}},{key:"channelName",get:function(){return y.k.generateUniqueChannelName(this)}},{key:"className",get:function(){return"border-bottom ".concat(pe.component)}},{key:"regions",value:function(){var e;return he(e={},b.a.Thumbnail,".thumbnail-region"),he(e,b.a.Metadata,".metadata-region"),he(e,b.a.VideoActions,".video-actions-region"),he(e,b.a.VideoInfo,".video-info-region"),e}},{key:"events",value:function(){return{"click .drag-item":"onClick","click .undo":"onClickUndo"}}},{key:"onThumbnailLoad",value:function(){this.thumbnailLoaded=!0}},{key:"onClick",value:function(){this.previewViewModel.get(this.model.get("id"))?this.previewViewModel.unset(this.model.get("id")):(this.previewViewModel.clear(),this.previewViewModel.set(this.model.get("id"),!0))}},{key:"onClickUndo",value:function(){this.viewModel.unset(this.model.get("id"))}},{key:"shouldLazyLoadThumbnail",value:function(){return!!y.h.isLazyLoadSupported(h.p)&&!this.thumbnailLoaded}},{key:"renderThumbnail",value:function(){var e=new v.a({model:new w.a({duration:1e3*this.model.get("duration"),thumbnail:{url:"".concat(this.options.imageCdnUrl,"v1/thumbnails/trackingcode/").concat(this.model.get("trackingCode"))}}),lazyload:this.shouldLazyLoadThumbnail(),channelName:this.channelName});this.showChildView(b.a.Thumbnail,e)}},{key:"renderMetadata",value:function(){var e=new K({model:this.model});this.showChildView(b.a.Metadata,e)}},{key:"renderActions",value:function(){var e=new ue({model:this.model});this.showChildView(b.a.VideoActions,e)}},{key:"renderPreview",value:function(){if(this.previewViewModel.get(this.model.get("id"))){var e=new V({model:this.model,webplayerUrl:this.options.webplayerUrl,imageCdnUrl:this.options.imageCdnUrl,currentUser:this.options.currentUser});this.showChildView(b.a.VideoInfo,e)}}},{key:"viewOptions",value:function(){return{styles:pe,doNotAdd:this.viewModel.get(this.model.get("id"))===X}}},{key:"onRender",value:function(){this.renderThumbnail(),this.renderMetadata(),this.renderActions(),this.renderPreview()}}])&&de(n.prototype,t),o&&de(n,o),i}(r.a.Component);function we(e){return(we="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 ke(e,n){if(!(e instanceof n))throw new TypeError("Cannot call a class as a function")}function Ce(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 Ee(e,n,t){return n&&Ce(e.prototype,n),t&&Ce(e,t),e}function xe(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)}function Se(e,n){return(Se=Object.setPrototypeOf||function(e,n){return e.__proto__=n,e})(e,n)}function Oe(e){var n=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(e){return!1}}();return function(){var t,o=_e(e);if(n){var r=_e(this).constructor;t=Reflect.construct(o,arguments,r)}else t=o.apply(this,arguments);return Me(this,t)}}function Me(e,n){return!n||"object"!==we(n)&&"function"!=typeof n?function(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}(e):n}function _e(e){return(_e=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)})(e)}var Pe=function(e){xe(t,e);var n=Oe(t);function t(e){return ke(this,t),n.call(this,e)}return Ee(t,[{key:"name",get:function(){return"ErroredVideoItemComponentCollection"}},{key:"childView",get:function(){return be}},{key:"childViewOptions",get:function(){return this.options}}]),t}(r.a.ComponentCollection),Re=function(e){xe(t,e);var n=Oe(t);function t(e){return ke(this,t),n.call(this,e)}return Ee(t,[{key:"name",get:function(){return"ErroredVideoListComponent"}},{key:"template",get:function(){return m}},{key:"behaviors",get:function(){return[{behaviorClass:g.c,selector:".lazy-img",minBrowserSupportVersion:h.p}]}},{key:"regions",value:function(){return{videos:{el:".videos-region",replaceElement:!0}}}},{key:"onRender",value:function(){this.showChildView("videos",new Pe(this.options))}}]),t}(r.a.Component),Ve=t(1379),je=t(6);function De(e){return(De="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}function Te(e,n){for(var t=0;t<n.length;t++){var o=n[t];o.enumerable=o.enumerable||!1,o.configurable=!0,"value"in o&&(o.writable=!0),Object.defineProperty(e,o.key,o)}}function Ne(e,n){return(Ne=Object.setPrototypeOf||function(e,n){return e.__proto__=n,e})(e,n)}function Ie(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=Ue(e);if(n){var r=Ue(this).constructor;t=Reflect.construct(o,arguments,r)}else t=o.apply(this,arguments);return Ae(this,t)}}function Ae(e,n){return!n||"object"!==De(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 Ue(e){return(Ue=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)})(e)}var Le=function(e){!function(e,n){if("function"!=typeof n&&null!==n)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(n&&n.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),n&&Ne(e,n)}(a,e);var n,t,r,i=Ie(a);function a(e){return function(e,n){if(!(e instanceof n))throw new TypeError("Cannot call a class as a function")}(this,a),i.call(this,e)}return n=a,(t=[{key:"initialize",value:function(){this.viewModel=l.a.get(ee),this.listenTo(this.viewModel,"change",this.render)}},{key:"name",get:function(){return"ErroredVideoFooterComponent"}},{key:"template",get:function(){return Ve}},{key:"lang",get:function(){return"migrationWizard.erroredVideoFooter"}},{key:"className",get:function(){return"border-top px-3 py-2 text-right"}},{key:"events",value:function(){return{"click .clear-all":"onClickClearAll","click .submit":"onClickSubmit"}}},{key:"onClickClearAll",value:function(){this.viewModel.clear()}},{key:"onClickSubmit",value:function(){je.Radio.channel(this.options.channelName).trigger(this.options.submitEvent)}},{key:"canSubmit",value:function(){return this.viewModel.keys().length>0}},{key:"countWillBeAdded",value:function(){var e=this;return o.filter(this.viewModel.keys(),(function(n){return e.viewModel.get(n)===Q})).length}},{key:"viewOptions",value:function(){return{count:this.countWillBeAdded(),submitDisabled:!this.canSubmit()}}}])&&Te(n.prototype,t),r&&Te(n,r),a}(r.a.Component),Be=t(1097),ze=t(1090),Fe=t(1380),We=t(1381),qe=t(1382),Ge=t(134),He=t(292),Je=t(294);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 Ze(e,n){if(!(e instanceof n))throw new TypeError("Cannot call a class as a function")}function Ke(e,n){for(var t=0;t<n.length;t++){var o=n[t];o.enumerable=o.enumerable||!1,o.configurable=!0,"value"in o&&(o.writable=!0),Object.defineProperty(e,o.key,o)}}function Qe(e,n){return(Qe=Object.setPrototypeOf||function(e,n){return e.__proto__=n,e})(e,n)}function Xe(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=en(e);if(n){var r=en(this).constructor;t=Reflect.construct(o,arguments,r)}else t=o.apply(this,arguments);return $e(this,t)}}function $e(e,n){return!n||"object"!==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 en(e){return(en=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)})(e)}t.d(n,"MigrationErrorView",(function(){return nn}));var nn=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&&Qe(e,n)}(v,e);var n,t,g,m=Xe(v);function v(){return Ze(this,v),m.apply(this,arguments)}return n=v,(t=[{key:"initialize",value:function(){this.migrationVideoDataService=i.a.getInstance(h.g.MigrationVideo,this),this.navLockService=i.a.getInstance(h.x.NavLock,this),this.viewModel=l.a.get(ee),this.previewViewModel=l.a.get($),this.listenTo(h.e.MIGRATION,"manual:review:videos:sync",this.render),this.listenTo(this.channelName,"submit",this.onSubmit),this.listenTo(this.viewModel,"change",this.onChangeSelected),this.page=1}},{key:"name",get:function(){return"MigrationErrorView"}},{key:"title",get:function(){return a.a.getPhrase(this.lang,"title")}},{key:"lang",get:function(){return"migrationWizard.migrationError"}},{key:"channelName",get:function(){return y.k.generateUniqueChannelName(this)}},{key:"elements",get:function(){return{videos:".videos-region"}}},{key:"regions",value:function(){return{tabs:{el:".tab-region",replaceElement:!0},videos:{el:".videos-region",partialLoading:d.h.VideoList},footer:{el:".footer-region",replaceElement:!0}}}},{key:"behaviors",get:function(){return[{behaviorClass:u.a,region:"videos",type:d.c.ManualReviewVideos,emptyStateComponents:h.h}]}},{key:"template",get:function(){return We}},{key:"className",get:function(){return"bg-white w-100 ".concat(qe.migrationErrorView)}},{key:"events",value:function(){return{"click .approve-all":"onClickApproveAll","click .do-not-add":"onClickDoNotAdd"}}},{key:"onClickApproveAll",value:function(){var e={};this.collection.each((function(n){e[n.get("id")]=Q})),this.viewModel.set(e)}},{key:"onClickDoNotAdd",value:function(){this.previewViewModel.clear();var e={};this.collection.each((function(n){e[n.get("id")]=X})),this.viewModel.set(e)}},{key:"onChangeSelected",value:function(){this.viewModel.keys().length?this.navLockService.lock({title:a.a.getPhrase(this.lang,"navLockTitle"),text:a.a.getPhrase(this.lang,"navLockBody")}):this.navLockService.unlock()}},{key:"getDialog",value:function(e,n){return new y.d({title:a.a.getPhrase(this.lang,"dialogHeading"),text:Fe({onlineCopyCount:e,onlineCopyCountText:a.a.getPhrase(this.lang,"videos",{smartCount:e}),warningText:a.a.getPhrase(this.lang,"warningText",{smartCount:e}),doNotAddCount:n,doNotAddCountText:a.a.getPhrase(this.lang,"videos",{smartCount:n}),styles:qe,warningSvg:s.a.getSvg(s.b.Warning)}),buttons:[{text:a.a.getPhrase(this.lang,"submit"),className:"btn btn-primary",success:!0}]})}},{key:"getSelectedVideos",value:function(){var e=this,n=this.collection.filter((function(n){return e.viewModel.get(n.get("id"))===Q})),t=o.groupBy(n,(function(e){return e.get("category")})),i=o.map(o.keys(t),(function(e){return{folderChord:e,videoIds:o.map(t[e],(function(e){return e.get("id")}))}}));return new r.a.Collection(i)}},{key:"onSubmit",value:function(){var e=this,n=[],t=[];o.each(this.viewModel.keys(),(function(o){var r=e.viewModel.get(o);r===X&&n.push(+o),r===Q&&t.push(+o)}));var i=this.getDialog(t.length,n.length),l=!1,a=!1,s=0,u=function(){l&&a&&(t.length?(e.viewModel.clear({silent:!0}),e.navLockService.unlock(),r.a.AppLinkHelper.trigger({application:h.b.MIGRATION_WIZARD,action:h.a.MigrationWizard.PROGRESS,args:[s]})):(e.viewModel.clear(),e.migrationVideoDataService.clearCacheAndGetCustomerMetadata(),e.migrationVideoDataService.getManualReviewVideos(),delete e.collectionSubset))};i.render().done((function(){e.logMigrationActions(t,n),n.length?e.migrationVideoDataService.updateMigrationStatus(n,Be.a.HasNotBeenMigrated,(function(){l=!0,u()})):l=!0,t.length?e.migrationVideoDataService.finaliseCustomerVideos(e.getSelectedVideos(),!0,(function(e){a=!0,s=e.get("id"),u()})):a=!0}))}},{key:"logMigrationActions",value:function(e,n){var t=this;if(e.length){var r=o.map(e,(function(n){return t.processLogData(n,e)}));this.logData(c.UserAction.ResolveWarning,r)}if(n.length){var i=o.map(n,(function(e){return t.processLogData(e,n)}));this.logData(c.UserAction.DismissWarning,i)}}},{key:"logData",value:function(e,n){var t={location:c.LocationContext.MigrationWarnings,entity:c.EntityType.Video},o=n.length===this.collection.length;p.a.logUserAction(n,p.a.mergeOptions(t,{actionType:e,descriptor:o?c.OperationDescriptor.All:c.OperationDescriptor.Single}))}},{key:"processLogData",value:function(e,n){var t=this.collection.get(e).pick("name","trackingCode");return{id:e,name:t.name,trackingCode:t.trackingCode,actionCount:n.length,warningCount:this.collection.length}}},{key:"requiredResources",get:function(){return{config:f.b.config,currentUser:Ge.b.currentUser}}},{key:"unBindScroll",value:function(){this.getUI("videos").off("scroll")}},{key:"bindScroll",value:function(){this.scrollBound||(this.getUI("videos").on("scroll",o.bind(this.onScroll,this)),this.scrollBound=!0)}},{key:"onScroll",value:function(){var e=this.getUI("videos"),n=e.children().height()-e.height()/2;e.scrollTop()+e.height()<n||25*this.page>this.collection.length||(this.collectionSubset.add(o.first(this.collection.rest(25*this.page),25)),this.page++)}},{key:"viewOptions",value:function(){var e,n;return{styles:qe,supportArticle:Je.a.getArticle(null===(e=this.config)||void 0===e?void 0:e.get("supportSiteUrl"),He.a.ManuelReview,null===(n=this.currentUser)||void 0===n?void 0:n.get("countryCode")),items:this.collection&&this.collection.length}}},{key:"onBeforeRender",value:function(){return this.collection=this.migrationVideoDataService.getManualReviewVideos(),this.collection&&!this.collectionSubset&&(this.collectionSubset=new r.a.Collection(this.collection.first(25))),!!this.collection}},{key:"onRender",value:function(){this.showChildView("tabs",new ze.h({selected:"migration-errors"})),this.showChildView("videos",new Re({collection:this.collectionSubset,imageCdnUrl:this.config.get("imageCdnUrl"),webplayerUrl:this.config.get("webPlayerUrl"),currentUser:this.currentUser})),this.showChildView("footer",new Le({channelName:this.channelName,submitEvent:"submit"})),this.bindScroll()}},{key:"onBeforeDestroy",value:function(){this.unBindScroll()}},{key:"onDestroy",value:function(){l.a.clear($),l.a.clear(ee)}}])&&Ke(n.prototype,t),g&&Ke(n,g),v}(r.a.View)}}]);