@clickview/library-editor 1.1.50-dev.1 → 1.1.50-rc.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (78) hide show
  1. package/dist/bundles.json +2 -2
  2. package/dist/en.json +1 -1
  3. package/dist/scripts/{0-5f0c2cd8fe.chunk.js → 0-39b4264c40.chunk.js} +1 -1
  4. package/dist/scripts/{1-7a35a849f0.chunk.js → 1-b4853334f7.chunk.js} +1 -1
  5. package/dist/scripts/{10-45d2a5ef25.chunk.js → 10-74b6a07baa.chunk.js} +1 -1
  6. package/dist/scripts/{11-74bc3f2d9f.chunk.js → 11-f9ca151e61.chunk.js} +1 -1
  7. package/dist/scripts/{12-f0c771aad1.chunk.js → 12-a961dabbb5.chunk.js} +1 -1
  8. package/dist/scripts/{13-d70fedb2e0.chunk.js → 13-31b759d4dc.chunk.js} +1 -1
  9. package/dist/scripts/{14-fafea6f32c.chunk.js → 14-28ab8d5025.chunk.js} +1 -1
  10. package/dist/scripts/{15-7aa65c016d.chunk.js → 15-e326770074.chunk.js} +1 -1
  11. package/dist/scripts/{16-56c022c016.chunk.js → 16-33bc415c72.chunk.js} +1 -1
  12. package/dist/scripts/{17-14a7b2aed1.chunk.js → 17-4d85362caa.chunk.js} +1 -1
  13. package/dist/scripts/{2-0c5fba8b60.chunk.js → 2-6334a56d75.chunk.js} +1 -1
  14. package/dist/scripts/{20-48346c1412.chunk.js → 20-09959dbb36.chunk.js} +1 -1
  15. package/dist/scripts/{21-f9ff3e0692.chunk.js → 21-d07eac93af.chunk.js} +1 -1
  16. package/dist/scripts/{22-82ad962fa7.chunk.js → 22-d5cba8a51b.chunk.js} +1 -1
  17. package/dist/scripts/{23-d534e3d903.chunk.js → 23-6f0c2ffe34.chunk.js} +1 -1
  18. package/dist/scripts/{24-264b454456.chunk.js → 24-28d1ee1ddb.chunk.js} +1 -1
  19. package/dist/scripts/{25-e1743bb45d.chunk.js → 25-3b12323e76.chunk.js} +1 -1
  20. package/dist/scripts/{26-0d7e56893b.chunk.js → 26-41d73fb1cc.chunk.js} +1 -1
  21. package/dist/scripts/{27-4ddeaff155.chunk.js → 27-9faadbc5ad.chunk.js} +1 -1
  22. package/dist/scripts/{28-96aef6893a.chunk.js → 28-1abda5ddcd.chunk.js} +1 -1
  23. package/dist/scripts/{29-554f426b85.chunk.js → 29-89a17b3cd5.chunk.js} +1 -1
  24. package/dist/scripts/{3-75a0223960.chunk.js → 3-c468e5f805.chunk.js} +1 -1
  25. package/dist/scripts/{30-9bdc787ec5.chunk.js → 30-4331611384.chunk.js} +1 -1
  26. package/dist/scripts/{31-67f46f7d90.chunk.js → 31-0522a0350b.chunk.js} +1 -1
  27. package/dist/scripts/{32-afdbc7da12.chunk.js → 32-e9df7dd92c.chunk.js} +1 -1
  28. package/dist/scripts/{33-6c83870de4.chunk.js → 33-b88d856ab0.chunk.js} +1 -1
  29. package/dist/scripts/{34-486d783b77.chunk.js → 34-c677ede372.chunk.js} +1 -1
  30. package/dist/scripts/{35-44dfa1d229.chunk.js → 35-58a7bef4a3.chunk.js} +1 -1
  31. package/dist/scripts/{36-6e22a76e9d.chunk.js → 36-22798bd81a.chunk.js} +1 -1
  32. package/dist/scripts/{37-247574943e.chunk.js → 37-0336031536.chunk.js} +1 -1
  33. package/dist/scripts/{38-c053771304.chunk.js → 38-b424c6398c.chunk.js} +1 -1
  34. package/dist/scripts/{39-0034f40388.chunk.js → 39-faf8a59822.chunk.js} +1 -1
  35. package/dist/scripts/{4-bbf9a27d2b.chunk.js → 4-4c62127fb2.chunk.js} +1 -1
  36. package/dist/scripts/{40-4c9075f25f.chunk.js → 40-9b473a87c2.chunk.js} +1 -1
  37. package/dist/scripts/{41-9ef30d9bce.chunk.js → 41-20fe91435b.chunk.js} +1 -1
  38. package/dist/scripts/{42-d5ebd7e173.chunk.js → 42-143ac3914b.chunk.js} +1 -1
  39. package/dist/scripts/{43-18cb4a605c.chunk.js → 43-ce726c3839.chunk.js} +1 -1
  40. package/dist/scripts/{44-c501392a17.chunk.js → 44-fc7c025c5f.chunk.js} +1 -1
  41. package/dist/scripts/{45-6f27b84b9a.chunk.js → 45-1e84cd6639.chunk.js} +1 -1
  42. package/dist/scripts/{46-26943c79e1.chunk.js → 46-26b40a870e.chunk.js} +1 -1
  43. package/dist/scripts/{47-58f15ff5f7.chunk.js → 47-f03e03252c.chunk.js} +1 -1
  44. package/dist/scripts/{48-59c60086c6.chunk.js → 48-c9a61fd1e3.chunk.js} +1 -1
  45. package/dist/scripts/{49-c7095beb6f.chunk.js → 49-2879e96eed.chunk.js} +1 -1
  46. package/dist/scripts/{5-a06b2153c3.chunk.js → 5-96980a85ac.chunk.js} +1 -1
  47. package/dist/scripts/{50-015c9c420c.chunk.js → 50-b76b6c7d52.chunk.js} +1 -1
  48. package/dist/scripts/{51-0cca989dae.chunk.js → 51-c252822f95.chunk.js} +1 -1
  49. package/dist/scripts/{52-3cc8a4a0c6.chunk.js → 52-ecde4fecf3.chunk.js} +1 -1
  50. package/dist/scripts/{53-b0a20bc5a0.chunk.js → 53-3ab3b83088.chunk.js} +1 -1
  51. package/dist/scripts/{54-79dca3d489.chunk.js → 54-0e921db390.chunk.js} +1 -1
  52. package/dist/scripts/{55-8c5eba8730.chunk.js → 55-bd9dc838cd.chunk.js} +1 -1
  53. package/dist/scripts/{56-4d5b5fecd6.chunk.js → 56-6528a68474.chunk.js} +1 -1
  54. package/dist/scripts/{57-84eff54b39.chunk.js → 57-3477d4f9b5.chunk.js} +1 -1
  55. package/dist/scripts/{58-c0d48a915f.chunk.js → 58-2c62df5dbd.chunk.js} +1 -1
  56. package/dist/scripts/{59-53d002a1db.chunk.js → 59-13ade58ba1.chunk.js} +1 -1
  57. package/dist/scripts/{6-6c8dac1a42.chunk.js → 6-1fdfa2191a.chunk.js} +1 -1
  58. package/dist/scripts/{60-9ba5670a0b.chunk.js → 60-f36c57ef33.chunk.js} +1 -1
  59. package/dist/scripts/{61-7189b10e86.chunk.js → 61-24acf3201f.chunk.js} +1 -1
  60. package/dist/scripts/{62-6c382c4af3.chunk.js → 62-d869eccf9a.chunk.js} +1 -1
  61. package/dist/scripts/{63-d55def5355.chunk.js → 63-d35e9ced47.chunk.js} +1 -1
  62. package/dist/scripts/{64-4925cb46d4.chunk.js → 64-dfc3cd19ee.chunk.js} +1 -1
  63. package/dist/scripts/{65-28d1f3d305.chunk.js → 65-b66a158393.chunk.js} +1 -1
  64. package/dist/scripts/{66-dd4f73d58f.chunk.js → 66-89b577d70f.chunk.js} +1 -1
  65. package/dist/scripts/{67-25c6582829.chunk.js → 67-029aaf6fac.chunk.js} +1 -1
  66. package/dist/scripts/{68-4962d3fcfc.chunk.js → 68-452e0327d9.chunk.js} +1 -1
  67. package/dist/scripts/{69-2067a2189e.chunk.js → 69-0491a8faf5.chunk.js} +1 -1
  68. package/dist/scripts/{7-881a9b64de.chunk.js → 7-13b4886b73.chunk.js} +1 -1
  69. package/dist/scripts/{70-d2472d2122.chunk.js → 70-62aff2ab4e.chunk.js} +1 -1
  70. package/dist/scripts/{71-3f1e0d4f31.chunk.js → 71-91b4d4dfcb.chunk.js} +1 -1
  71. package/dist/scripts/{72-d5c52637ca.chunk.js → 72-4d851db609.chunk.js} +1 -1
  72. package/dist/scripts/{8-ef172e304b.chunk.js → 8-55ea9736c8.chunk.js} +1 -1
  73. package/dist/scripts/{9-d5b2cc8210.chunk.js → 9-e4f29db920.chunk.js} +1 -1
  74. package/dist/scripts/bundle-361d3bdf1a.min.js +10 -0
  75. package/dist/scripts/polyfills-e9aab74cda.min.js +1 -0
  76. package/package.json +3 -3
  77. package/dist/scripts/bundle-2b9531d6bc.min.js +0 -10
  78. package/dist/scripts/polyfills-35ff77d456.min.js +0 -1
@@ -1 +1 @@
1
- (window.webpackJsonp_clickview_library_editor=window.webpackJsonp_clickview_library_editor||[]).push([[28],{1031: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={}))},1060: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(13),a=t(3),s=t(1128),u=t.n(s),c=t(1129),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)},1077: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(204),u=t(202),c=t(303),p=t(13),f=t(0),h=t(1184),d=t(1130),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)},1128: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})},1129: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"}},1130: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})},1395: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})},1396: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})},1397: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})},1398:function(e,n,t){e.exports={rating:"_3IJcl"}},1399:function(e,n,t){e.exports={svgContainer:"_-0ibU",selectedButton:"_28zhr",showPreview:"_2r4VF"}},1400: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})},1401: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})},1402:function(e,n,t){e.exports={component:"_13khy",thumbnailContainer:"_gEcp",metaContainer:"zuMb1",actionsContainer:"_1ppp8",videoItem:"_2Ru6c",doNotAdd:"_8l6WV"}},1403: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})},1404: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})},1405: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})},1406:function(e,n,t){e.exports={migrationErrorView:"_1Jo6e",videoContainer:"_7tGnj",svgContainer:"csNIF",headingContainer:"_30NNv",tabsContainer:"_10__f"}},1458: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(307),c=t(4),p=t(42),f=t(200),h=t(0),d=t(9),y=t(13),g=t(303),m=t(1395),v=t(202),b=t(1031),w=t(103),k=t(1396),C=t(1060),E=t(1077);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(1397),D=t(1398),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(1036);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(1399),te=t(1400);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(1401),pe=t(1402);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(1403),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(1121),ze=t(1114),Fe=t(1404),We=t(1405),qe=t(1406),Ge=t(144),He=t(306),Je=t(308);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)}}]);
1
+ (window.webpackJsonp_clickview_library_editor=window.webpackJsonp_clickview_library_editor||[]).push([[28],{1028: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={}))},1057: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(13),a=t(3),s=t(1125),u=t.n(s),c=t(1126),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)},1074: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(201),u=t(199),c=t(302),p=t(13),f=t(0),h=t(1181),d=t(1127),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)},1125: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})},1126: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"}},1127: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})},1392: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})},1393: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})},1394: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})},1395:function(e,n,t){e.exports={rating:"_3IJcl"}},1396:function(e,n,t){e.exports={svgContainer:"_-0ibU",selectedButton:"_28zhr",showPreview:"_2r4VF"}},1397: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})},1398: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})},1399:function(e,n,t){e.exports={component:"_13khy",thumbnailContainer:"_gEcp",metaContainer:"zuMb1",actionsContainer:"_1ppp8",videoItem:"_2Ru6c",doNotAdd:"_8l6WV"}},1400: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})},1401: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})},1402: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})},1403:function(e,n,t){e.exports={migrationErrorView:"_1Jo6e",videoContainer:"_7tGnj",svgContainer:"csNIF",headingContainer:"_30NNv",tabsContainer:"_10__f"}},1455: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(17),u=t(306),c=t(4),p=t(42),f=t(197),h=t(0),d=t(9),y=t(13),g=t(302),m=t(1392),v=t(199),b=t(1028),w=t(103),k=t(1393),C=t(1057),E=t(1074);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(1394),D=t(1395),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(1033);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(1396),te=t(1397);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(1398),pe=t(1399);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(1400),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(1118),ze=t(1111),Fe=t(1401),We=t(1402),qe=t(1403),Ge=t(143),He=t(305),Je=t(307);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)}}]);