@clickview/library-editor 1.1.45 → 1.1.46-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 (79) hide show
  1. package/dist/bundles.json +3 -3
  2. package/dist/css/{library-editor-app-9c24416a39.css → library-editor-app-d4e455dc19.css} +1 -1
  3. package/dist/scripts/{0-298010e33a.chunk.js → 0-39b4264c40.chunk.js} +1 -1
  4. package/dist/scripts/{1-6e8dcc5ca2.chunk.js → 1-c2f2ee50e1.chunk.js} +1 -1
  5. package/dist/scripts/{10-a4ab5eff50.chunk.js → 10-74b6a07baa.chunk.js} +1 -1
  6. package/dist/scripts/{11-2356f4df85.chunk.js → 11-f9ca151e61.chunk.js} +1 -1
  7. package/dist/scripts/{12-c76d68628d.chunk.js → 12-a961dabbb5.chunk.js} +1 -1
  8. package/dist/scripts/{13-ffdf6d7db4.chunk.js → 13-31b759d4dc.chunk.js} +1 -1
  9. package/dist/scripts/{14-377ed1af74.chunk.js → 14-28ab8d5025.chunk.js} +1 -1
  10. package/dist/scripts/{15-7de7fc2b35.chunk.js → 15-e326770074.chunk.js} +1 -1
  11. package/dist/scripts/{16-382f0c41cf.chunk.js → 16-33bc415c72.chunk.js} +1 -1
  12. package/dist/scripts/{17-1eb8479302.chunk.js → 17-4d85362caa.chunk.js} +1 -1
  13. package/dist/scripts/{2-717e5953ab.chunk.js → 2-6334a56d75.chunk.js} +1 -1
  14. package/dist/scripts/{20-fa33bbf746.chunk.js → 20-be33eea416.chunk.js} +1 -1
  15. package/dist/scripts/{21-dadfbacfbc.chunk.js → 21-d07eac93af.chunk.js} +1 -1
  16. package/dist/scripts/{22-d381139a29.chunk.js → 22-f61848d852.chunk.js} +1 -1
  17. package/dist/scripts/{23-7922bfa9d3.chunk.js → 23-883535facb.chunk.js} +1 -1
  18. package/dist/scripts/{24-7406b564f6.chunk.js → 24-28d1ee1ddb.chunk.js} +1 -1
  19. package/dist/scripts/{25-d7396e955d.chunk.js → 25-36f6c0f04c.chunk.js} +1 -1
  20. package/dist/scripts/{26-c1fc20583b.chunk.js → 26-41d73fb1cc.chunk.js} +1 -1
  21. package/dist/scripts/{27-31485d4b2a.chunk.js → 27-9faadbc5ad.chunk.js} +1 -1
  22. package/dist/scripts/{28-e85da77e0f.chunk.js → 28-1abda5ddcd.chunk.js} +1 -1
  23. package/dist/scripts/{29-d980d0cbb5.chunk.js → 29-e1b5688929.chunk.js} +1 -1
  24. package/dist/scripts/{3-aa8256fe40.chunk.js → 3-c468e5f805.chunk.js} +1 -1
  25. package/dist/scripts/{30-ad62e78d54.chunk.js → 30-4331611384.chunk.js} +1 -1
  26. package/dist/scripts/{31-4a94075827.chunk.js → 31-f594f549df.chunk.js} +1 -1
  27. package/dist/scripts/{32-042cda92ae.chunk.js → 32-b5a8e7c2a3.chunk.js} +1 -1
  28. package/dist/scripts/{33-36ddd95595.chunk.js → 33-b88d856ab0.chunk.js} +1 -1
  29. package/dist/scripts/{34-7d112464d3.chunk.js → 34-7fcaaeddea.chunk.js} +1 -1
  30. package/dist/scripts/{35-e850443dff.chunk.js → 35-e210da4f12.chunk.js} +1 -1
  31. package/dist/scripts/{36-a480ba6fea.chunk.js → 36-524bf056e4.chunk.js} +1 -1
  32. package/dist/scripts/{37-3314327a46.chunk.js → 37-0336031536.chunk.js} +1 -1
  33. package/dist/scripts/{38-a18528bd5a.chunk.js → 38-1aa8ca825c.chunk.js} +1 -1
  34. package/dist/scripts/{39-a4d5bf70ed.chunk.js → 39-faf8a59822.chunk.js} +1 -1
  35. package/dist/scripts/{4-9915802afa.chunk.js → 4-4c62127fb2.chunk.js} +1 -1
  36. package/dist/scripts/{40-264a3768ac.chunk.js → 40-9b473a87c2.chunk.js} +1 -1
  37. package/dist/scripts/{41-5ed5f9712e.chunk.js → 41-20fe91435b.chunk.js} +1 -1
  38. package/dist/scripts/{42-6b99047385.chunk.js → 42-143ac3914b.chunk.js} +1 -1
  39. package/dist/scripts/{43-f0a2833261.chunk.js → 43-ce726c3839.chunk.js} +1 -1
  40. package/dist/scripts/{44-66950d4440.chunk.js → 44-fc7c025c5f.chunk.js} +1 -1
  41. package/dist/scripts/{45-6dd66a0ec6.chunk.js → 45-1e84cd6639.chunk.js} +1 -1
  42. package/dist/scripts/{46-1188acdeb9.chunk.js → 46-26b40a870e.chunk.js} +1 -1
  43. package/dist/scripts/{47-2964488de7.chunk.js → 47-f03e03252c.chunk.js} +1 -1
  44. package/dist/scripts/{48-48a409c875.chunk.js → 48-c9a61fd1e3.chunk.js} +1 -1
  45. package/dist/scripts/{49-a76be85054.chunk.js → 49-2879e96eed.chunk.js} +1 -1
  46. package/dist/scripts/{5-5341544820.chunk.js → 5-5d2e1c890e.chunk.js} +1 -1
  47. package/dist/scripts/{50-06212d1dc8.chunk.js → 50-b76b6c7d52.chunk.js} +1 -1
  48. package/dist/scripts/{51-af622cc279.chunk.js → 51-c252822f95.chunk.js} +1 -1
  49. package/dist/scripts/{52-c988320a6f.chunk.js → 52-ecde4fecf3.chunk.js} +1 -1
  50. package/dist/scripts/{53-1514119651.chunk.js → 53-3ab3b83088.chunk.js} +1 -1
  51. package/dist/scripts/{54-f489df5eda.chunk.js → 54-0e921db390.chunk.js} +1 -1
  52. package/dist/scripts/{55-2360f690da.chunk.js → 55-bd9dc838cd.chunk.js} +1 -1
  53. package/dist/scripts/{56-d6e13d4afb.chunk.js → 56-6528a68474.chunk.js} +1 -1
  54. package/dist/scripts/{57-fb4f8ce1ab.chunk.js → 57-3477d4f9b5.chunk.js} +1 -1
  55. package/dist/scripts/{58-21714dd15f.chunk.js → 58-2c62df5dbd.chunk.js} +1 -1
  56. package/dist/scripts/{59-9b9c8c0f2d.chunk.js → 59-13ade58ba1.chunk.js} +1 -1
  57. package/dist/scripts/{6-a39d1f4585.chunk.js → 6-1fdfa2191a.chunk.js} +1 -1
  58. package/dist/scripts/{60-86a780fb81.chunk.js → 60-f36c57ef33.chunk.js} +1 -1
  59. package/dist/scripts/{61-897e3aacfb.chunk.js → 61-24acf3201f.chunk.js} +1 -1
  60. package/dist/scripts/{62-2aa55f08d5.chunk.js → 62-d869eccf9a.chunk.js} +1 -1
  61. package/dist/scripts/{63-65744e61fe.chunk.js → 63-d35e9ced47.chunk.js} +1 -1
  62. package/dist/scripts/{64-6ee45d0114.chunk.js → 64-dfc3cd19ee.chunk.js} +1 -1
  63. package/dist/scripts/{65-179891d951.chunk.js → 65-b66a158393.chunk.js} +1 -1
  64. package/dist/scripts/{66-b1de02727e.chunk.js → 66-89b577d70f.chunk.js} +1 -1
  65. package/dist/scripts/{67-fc341ce660.chunk.js → 67-83b2b3ad1a.chunk.js} +1 -1
  66. package/dist/scripts/{68-c6ef8701a2.chunk.js → 68-452e0327d9.chunk.js} +1 -1
  67. package/dist/scripts/{69-4af679bc4c.chunk.js → 69-0491a8faf5.chunk.js} +1 -1
  68. package/dist/scripts/{7-c387d70c9b.chunk.js → 7-13b4886b73.chunk.js} +1 -1
  69. package/dist/scripts/{70-64d4bc3567.chunk.js → 70-62aff2ab4e.chunk.js} +1 -1
  70. package/dist/scripts/{71-cf362223a9.chunk.js → 71-91b4d4dfcb.chunk.js} +1 -1
  71. package/dist/scripts/{72-3f71367bdd.chunk.js → 72-4d851db609.chunk.js} +1 -1
  72. package/dist/scripts/{8-ed9e11c370.chunk.js → 8-55ea9736c8.chunk.js} +1 -1
  73. package/dist/scripts/{9-82e97cb80a.chunk.js → 9-175ec73a5d.chunk.js} +1 -1
  74. package/dist/scripts/bundle-804e733ae8.min.js +10 -0
  75. package/dist/scripts/polyfills-e2b8375767.min.js +1 -0
  76. package/package.json +2 -2
  77. package/typings/libs/trackjs.d.ts +3 -0
  78. package/dist/scripts/bundle-d78cc0ce15.min.js +0 -10
  79. package/dist/scripts/polyfills-b0f2bc073f.min.js +0 -1
@@ -1 +1 @@
1
- (window.webpackJsonp_clickview_library_editor=window.webpackJsonp_clickview_library_editor||[]).push([[24],{1036:function(e,n,t){"use strict";var o,i;t.d(n,"b",(function(){return o})),t.d(n,"a",(function(){return i})),function(e){e[e.Base=0]="Base",e[e.AwaitingReview=1]="AwaitingReview",e[e.PastReleases=2]="PastReleases",e[e.VideoAccess=3]="VideoAccess",e[e.ProcessingVideo=4]="ProcessingVideo",e[e.Draggable=5]="Draggable",e[e.Search=6]="Search"}(o||(o={})),function(e){e.Checkbox="checkbox",e.Thumbnail="thumbnail",e.Metadata="metadata",e.VideoActions="videoActions",e.VideoInfo="videoInfo"}(i||(i={}))},1037:function(e,n,t){e.exports={lock:"_25RMJ",svgContainer:"_1k8KB"}},1038:function(e,n,t){e.exports={dragItem:"_2TIZ7",svgContainer:"_3JzEU",dragText:"_1Kdwj"}},1039:function(e,n,t){var o=t(10);e.exports=(o.default||o).template({compiler:[8,">= 4.3.0"],main:function(e,n,t,o,i){e.propertyIsEnumerable;var r,l=e.lambda,a=e.escapeExpression;return'<span class="'+a(l(null!=(r=null!=(r=null!=n?n.options:n)?r.styles:r)?r.svgContainer:r,n))+' mr-2">'+(null!=(r=l(null!=(r=null!=n?n.options:n)?r.svg:r,n))?r:"")+'</span>\r\n<span class="'+a(l(null!=(r=null!=(r=null!=n?n.options:n)?r.styles:r)?r.dragText:r,n))+'">'+a(l(null!=(r=null!=n?n.options:n)?r.text:r,n))+"</span>"},useData:!0})},1048:function(e,n,t){e.exports={actions:"_34Z19",showPreview:"cZAmH"}},1050:function(e,n,t){var o=t(10);e.exports=(o.default||o).template({1:function(e,n,t,o,i){return" cursor-pointer"},3:function(e,n,t,o,i){return"checked"},5:function(e,n,t,o,i){return"disabled"},compiler:[8,">= 4.3.0"],main:function(e,n,t,o,i){e.propertyIsEnumerable;var r,l=e.lambda,a=e.escapeExpression,s=null!=n?n:e.nullContext||{};return'<div class="custom-control custom-checkbox '+a(l(null!=(r=null!=n?n.options:n)?r.checkboxClassName:r,n))+'">\r\n <input name="checkbox-'+a(l(null!=(r=null!=n?n.options:n)?r.id:r,n))+'" id="checkbox-'+a(l(null!=(r=null!=n?n.options:n)?r.id:r,n))+'" type="checkbox" class="custom-control-input'+(null!=(r=t.unless.call(s,null!=(r=null!=n?n.options:n)?r.disabled:r,{name:"unless",hash:{},fn:e.program(1,i,0),inverse:e.noop,data:i}))?r:"")+'" '+(null!=(r=t.if.call(s,null!=(r=null!=n?n.options:n)?r.checked:r,{name:"if",hash:{},fn:e.program(3,i,0),inverse:e.noop,data:i}))?r:"")+" "+(null!=(r=t.if.call(s,null!=(r=null!=n?n.options:n)?r.disabled:r,{name:"if",hash:{},fn:e.program(5,i,0),inverse:e.noop,data:i}))?r:"")+' />\r\n <label class="custom-control-label'+(null!=(r=t.unless.call(s,null!=(r=null!=n?n.options:n)?r.disabled:r,{name:"unless",hash:{},fn:e.program(1,i,0),inverse:e.noop,data:i}))?r:"")+'" for="checkbox-'+a(l(null!=(r=null!=n?n.options:n)?r.id:r,n))+'">&nbsp;</label>\r\n</div>'},useData:!0})},1055:function(e,n,t){"use strict";var o=t(1038),i=t.n(o),r=t(1039),l=t.n(r);function a(e){return(a="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}function s(e,n){for(var t=0;t<n.length;t++){var o=n[t];o.enumerable=o.enumerable||!1,o.configurable=!0,"value"in o&&(o.writable=!0),Object.defineProperty(e,o.key,o)}}function u(e,n){return(u=Object.setPrototypeOf||function(e,n){return e.__proto__=n,e})(e,n)}function c(e){var n=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(e){return!1}}();return function(){var t,o=f(e);if(n){var i=f(this).constructor;t=Reflect.construct(o,arguments,i)}else t=o.apply(this,arguments);return p(this,t)}}function p(e,n){return!n||"object"!==a(n)&&"function"!=typeof n?function(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}(e):n}function f(e){return(f=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)})(e)}var h=function(e){!function(e,n){if("function"!=typeof n&&null!==n)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(n&&n.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),n&&u(e,n)}(a,e);var n,t,o,r=c(a);function a(e){return function(e,n){if(!(e instanceof n))throw new TypeError("Cannot call a class as a function")}(this,a),r.call(this,e)}return n=a,(t=[{key:"name",get:function(){return"DraggableItemComponent"}},{key:"template",get:function(){return l.a}},{key:"className",get:function(){return"".concat(i.a.dragItem," p-3")}},{key:"viewOptions",value:function(){return Object.assign({styles:i.a},this.options)}}])&&s(n.prototype,t),o&&s(n,o),a}(t(2).a.Component),d={delay:150,cursorAt:{left:-20,top:10},refreshPositions:!0};t.d(n,"c",(function(){return i.a})),t.d(n,"b",(function(){return h})),t.d(n,"a",(function(){return d}))},1056:function(e,n,t){e.exports={checkboxContainer:"_3BLCF",thumbnailContainer:"_16jlV",metaContainer:"_2mMws",actionsContainer:"I31I0",allowBulk:"_2VkOe",videoItem:"PoHa-",processingVideo:"qFjv2",bulkPlaceholder:"_3iAFa",previewContainer:"_2UBZX"}},1057:function(e,n,t){"use strict";t.d(n,"a",(function(){return g})),t.d(n,"b",(function(){return m}));var o=t(1),i=t(2),r=t(1050),l=t.n(r),a=t(13);function s(e){return(s="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}function u(e,n,t){return n in e?Object.defineProperty(e,n,{value:t,enumerable:!0,configurable:!0,writable:!0}):e[n]=t,e}function c(e,n){for(var t=0;t<n.length;t++){var o=n[t];o.enumerable=o.enumerable||!1,o.configurable=!0,"value"in o&&(o.writable=!0),Object.defineProperty(e,o.key,o)}}function p(e,n){return(p=Object.setPrototypeOf||function(e,n){return e.__proto__=n,e})(e,n)}function f(e){var n=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(e){return!1}}();return function(){var t,o=d(e);if(n){var i=d(this).constructor;t=Reflect.construct(o,arguments,i)}else t=o.apply(this,arguments);return h(this,t)}}function h(e,n){return!n||"object"!==s(n)&&"function"!=typeof n?function(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}(e):n}function d(e){return(d=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)})(e)}var g="checkbox-all",m=function(e){!function(e,n){if("function"!=typeof n&&null!==n)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(n&&n.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),n&&p(e,n)}(s,e);var n,t,i,r=f(s);function s(e){return function(e,n){if(!(e instanceof n))throw new TypeError("Cannot call a class as a function")}(this,s),r.call(this,e)}return n=s,(t=[{key:"initialize",value:function(){this.getViewModel(),this.bindListeners()}},{key:"name",get:function(){return"BulkCheckboxComponent"}},{key:"className",get:function(){return this.options.className}},{key:"template",get:function(){return l.a}},{key:"getViewModel",value:function(){this.model=a.a.GetViewModel(this.options.key,this.options.type)}},{key:"bindListeners",value:function(){this.options.disabled||this.listenTo(this.model,"change",this.onChange)}},{key:"events",value:function(){return{"change .custom-control-input":"onClick"}}},{key:"onChange",value:function(){this.checkAllChecked(),this.render()}},{key:"checkAllChecked",value:function(){var e=o.values(this.model.omit("all",g));o.every(e,(function(e){return!!e}))&&(this.model.get("all")||e.length===this.options.numberOfItems)&&this.model.set(u({all:!0},this.getItemId(),!0))}},{key:"getItemId",value:function(){return g}},{key:"onClick",value:function(){this.model.get(this.getItemId())?this.model.clear():(this.model.clear(),this.model.set(u({all:!0},this.getItemId(),!0)))}},{key:"viewOptions",value:function(){return{id:this.getItemId(),checked:this.model.get(g),disabled:this.options.disabled,checkboxClassName:this.options.checkboxClassName}}}])&&c(n.prototype,t),i&&c(n,i),s}(i.a.Component)},1058:function(e,n,t){"use strict";var o=t(0),i=t(59),r=t(198),l=t(200),a=t(1064),s=t(1),u=t(2),c=t(17),p=t(140),f=t(13),h=t(1041),d=t(1070),g=t.n(d),m=t(1071),y=t.n(m);function v(e){return(v="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}function b(e,n){for(var t=0;t<n.length;t++){var o=n[t];o.enumerable=o.enumerable||!1,o.configurable=!0,"value"in o&&(o.writable=!0),Object.defineProperty(e,o.key,o)}}function k(e,n){return(k=Object.setPrototypeOf||function(e,n){return e.__proto__=n,e})(e,n)}function w(e){var n=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(e){return!1}}();return function(){var t,o=O(e);if(n){var i=O(this).constructor;t=Reflect.construct(o,arguments,i)}else t=o.apply(this,arguments);return C(this,t)}}function C(e,n){return!n||"object"!==v(n)&&"function"!=typeof n?function(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}(e):n}function O(e){return(O=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)})(e)}var x=function(e){!function(e,n){if("function"!=typeof n&&null!==n)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(n&&n.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),n&&k(e,n)}(r,e);var n,t,o,i=w(r);function r(e){return function(e,n){if(!(e instanceof n))throw new TypeError("Cannot call a class as a function")}(this,r),i.call(this,e)}return n=r,(t=[{key:"name",get:function(){return"VideoItemBadgesComponent"}},{key:"template",get:function(){return g.a}},{key:"lang",get:function(){return"shared.videoItemBadges"}},{key:"behaviors",get:function(){return[{behaviorClass:p.a,selector:".tool-tip"}]}},{key:"defaults",get:function(){return{showRestrictionBadge:!1,showReviewBadge:!1}}},{key:"events",value:function(){return{"click span":"onClick"}}},{key:"onClick",value:function(e){e.stopPropagation()}},{key:"viewOptions",value:function(){var e=this.options.showReviewBadge&&f.o.getRestrictionTooltipMessage(this.model),n=this.options.showRestrictionBadge&&f.o.getRestrictionTooltipMessage(this.model);return{styles:y.a,interactive:h.h.isInteractive(this.model),subtitles:!1,resources:!1,ratingColorClass:h.h.mapRatingToClass(this.model.rating.get("value")),closeCaptionSvg:c.a.getSvg(c.b.CloseCaptionBadge),resourcesSvg:c.a.getSvg(c.b.Resources),awaitingReviewMessage:e,awaitingReviewBadgeClass:f.o.getReviewBadgeClassName(this.model,y.a.reviewBadge,y.a.urgentReviewBadge),restrictionMessage:n}}}])&&b(n.prototype,t),o&&b(n,o),r}(u.a.Component),E=t(1051),S=t(1040),P=t(1072),R=t.n(P),I=t(1037),_=t.n(I);function T(e){return(T="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}function V(e,n){for(var t=0;t<n.length;t++){var o=n[t];o.enumerable=o.enumerable||!1,o.configurable=!0,"value"in o&&(o.writable=!0),Object.defineProperty(e,o.key,o)}}function j(e,n){return(j=Object.setPrototypeOf||function(e,n){return e.__proto__=n,e})(e,n)}function M(e){var n=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(e){return!1}}();return function(){var t,o=B(e);if(n){var i=B(this).constructor;t=Reflect.construct(o,arguments,i)}else t=o.apply(this,arguments);return L(this,t)}}function L(e,n){return!n||"object"!==T(n)&&"function"!=typeof n?function(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}(e):n}function B(e){return(B=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)})(e)}var A=function(e){!function(e,n){if("function"!=typeof n&&null!==n)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(n&&n.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),n&&j(e,n)}(l,e);var n,t,i,r=M(l);function l(e){return function(e,n){if(!(e instanceof n))throw new TypeError("Cannot call a class as a function")}(this,l),r.call(this,e)}return n=l,(t=[{key:"initialize",value:function(){this.listenTo(this.model,"change:restrictions",this.render)}},{key:"name",get:function(){return"VideoItemMetadataComponent"}},{key:"template",get:function(){return R.a}},{key:"behaviors",get:function(){return[{behaviorClass:p.a,selector:".tool-tip"}]}},{key:"appLinks",get:function(){return{".applink-show-video":{application:o.b.LIBRARY_EDITOR,action:o.a.LibraryEditor.VIDEO_DETAILS,args:[this.model.get("id")]}}}},{key:"regions",value:function(){return{sources:{el:".sources-region",replaceElement:!0},badges:{el:".badges-region",replaceElement:!0},series:{el:".series-region",replaceElement:!0}}}},{key:"events",value:function(){return e={},n="click .".concat(_.a.svgContainer),t="onClickBadge",n in e?Object.defineProperty(e,n,{value:t,enumerable:!0,configurable:!0,writable:!0}):e[n]=t,e;var e,n,t}},{key:"onClickBadge",value:function(e){e.stopPropagation()}},{key:"renderSources",value:function(){var e=s.extend({},{model:this.model},this.options.sourceMetadataOptions);this.showChildView("sources",new E.a(e))}},{key:"renderSeries",value:function(){this.showChildView("series",new S.a({model:this.model,highlight:this.options.sourceMetadataOptions&&!!this.options.sourceMetadataOptions.highlight}))}},{key:"renderBadges",value:function(){this.showChildView("badges",new x({model:this.model}))}},{key:"viewOptions",value:function(){return{styles:_.a,hasAdminRestriction:f.o.hasAdminRestriction(this.model),restrictionMessage:f.o.getRestrictionTooltipMessage(this.model),lockSvg:c.a.getSvg(c.b.Lock)}}},{key:"onRender",value:function(){this.renderSeries(),this.renderSources(),this.renderBadges()}}])&&V(n.prototype,t),i&&V(n,i),l}(u.a.Component),D=t(1073),N=t.n(D);function U(e){return(U="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}function H(e,n){for(var t=0;t<n.length;t++){var o=n[t];o.enumerable=o.enumerable||!1,o.configurable=!0,"value"in o&&(o.writable=!0),Object.defineProperty(e,o.key,o)}}function W(e,n){return(W=Object.setPrototypeOf||function(e,n){return e.__proto__=n,e})(e,n)}function z(e){var n=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(e){return!1}}();return function(){var t,o=Y(e);if(n){var i=Y(this).constructor;t=Reflect.construct(o,arguments,i)}else t=o.apply(this,arguments);return F(this,t)}}function F(e,n){return!n||"object"!==U(n)&&"function"!=typeof n?function(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}(e):n}function Y(e){return(Y=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)})(e)}var G=function(e){!function(e,n){if("function"!=typeof n&&null!==n)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(n&&n.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),n&&W(e,n)}(a,e);var n,t,r,l=z(a);function a(e){return function(e,n){if(!(e instanceof n))throw new TypeError("Cannot call a class as a function")}(this,a),l.call(this,e)}return n=a,(t=[{key:"initialize",value:function(){this.listenTo(this.model,"change:restrictions",this.render)}},{key:"name",get:function(){return"VideoItemVideoAccessMetadataComponent"}},{key:"template",get:function(){return N.a}},{key:"behaviors",get:function(){return[{behaviorClass:p.a,selector:".tool-tip"}]}},{key:"appLinks",get:function(){if(f.y.hasCustomLibrary(this.model))return{".applink-show-video":{application:o.b.LIBRARY_EDITOR,action:o.a.LibraryEditor.VIDEO_DETAILS,args:[this.model.get("id")]}}}},{key:"regions",value:function(){return{sources:{el:".sources-region",replaceElement:!0},badges:{el:".badges-region",replaceElement:!0},series:{el:".series-region",replaceElement:!0}}}},{key:"events",value:function(){return e={click:"onClick","click .video-title":"onClickMetadata"},n="click .".concat(_.a.svgContainer),t="onClickMetadata",n in e?Object.defineProperty(e,n,{value:t,enumerable:!0,configurable:!0,writable:!0}):e[n]=t,e;var e,n,t}},{key:"onClickMetadata",value:function(e){e.stopPropagation()}},{key:"getVideoUrl",value:function(){var e=i.a.safeUrlConcat(this.options.config.get("onlineUrl"),"videos/".concat(this.model.get("id")));return i.a.urlBuilder(e,{loginPrompt:!1})}},{key:"renderSources",value:function(){if(f.y.hasCustomLibrary(this.model)){var e=s.extend({},{model:this.model},this.options.sourceMetadataOptions);this.showChildView("sources",new E.a(e))}}},{key:"renderSeries",value:function(){f.y.hasCustomLibrary(this.model)&&this.showChildView("series",new S.a({model:this.model,highlight:this.options.sourceMetadataOptions&&!!this.options.sourceMetadataOptions.highlight}))}},{key:"renderBadges",value:function(){this.showChildView("badges",new x({model:this.model,showRestrictionBadge:!0}))}},{key:"viewOptions",value:function(){return{styles:_.a,restrictionMessage:f.o.getRestrictionTooltipMessage(this.model),lockSvg:c.a.getSvg(c.b.Lock),linkToOnline:!f.y.hasCustomLibrary(this.model),videoUrl:this.getVideoUrl(),openExternalSvg:c.a.getSvg(c.b.NewWindow)}}},{key:"onRender",value:function(){this.renderSeries(),this.renderSources(),this.renderBadges()}}])&&H(n.prototype,t),r&&H(n,r),a}(u.a.Component),K=t(101),q=t(103),J=t(1074),Z=t.n(J);function Q(e){return(Q="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}function $(e,n){for(var t=0;t<n.length;t++){var o=n[t];o.enumerable=o.enumerable||!1,o.configurable=!0,"value"in o&&(o.writable=!0),Object.defineProperty(e,o.key,o)}}function X(e,n){return(X=Object.setPrototypeOf||function(e,n){return e.__proto__=n,e})(e,n)}function ee(e){var n=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(e){return!1}}();return function(){var t,o=te(e);if(n){var i=te(this).constructor;t=Reflect.construct(o,arguments,i)}else t=o.apply(this,arguments);return ne(this,t)}}function ne(e,n){return!n||"object"!==Q(n)&&"function"!=typeof n?function(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}(e):n}function te(e){return(te=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)})(e)}var oe=function(e){!function(e,n){if("function"!=typeof n&&null!==n)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(n&&n.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),n&&X(e,n)}(l,e);var n,t,i,r=ee(l);function l(e){return function(e,n){if(!(e instanceof n))throw new TypeError("Cannot call a class as a function")}(this,l),r.call(this,e)}return n=l,(t=[{key:"initialize",value:function(){this.bindListeners()}},{key:"bindListeners",value:function(){this.model.get("status")===K.a.Processing&&this.options.pendingItems&&(this.pendingItem||(this.listenTo(this.options.pendingItems,"update",this.mapPendingItem),this.mapPendingItem()))}},{key:"lang",get:function(){return"shared.videoItemProcessingMetadata"}},{key:"mapPendingItem",value:function(){this.pendingItem=this.options.pendingItems.get(this.model.get("id")),this.render(),this.pendingItem&&(this.stopListening(this.options.pendingItems,"update"),this.listenTo(this.pendingItem,"change:foregroundProgress change:backgroundProgress change:pendingProcessStatus",this.render))}},{key:"name",get:function(){return"VideoItemProcessingMetadataComponent"}},{key:"template",get:function(){return Z.a}},{key:"appLinks",get:function(){var e=this.model.series?this.model.series.id:"";return{".applink-series":{application:o.b.LIBRARY_EDITOR,action:o.a.LibraryEditor.FOLDER,args:[e]}}}},{key:"viewOptions",value:function(){return this.pendingItem?{status:q.a.getStatus(this.pendingItem),hasError:q.a.hasError(this.pendingItem),hasPendingItem:!0}:{hasPendingItem:!1}}}])&&$(n.prototype,t),i&&$(n,i),l}(u.a.Component),ie=t(1075),re=t.n(ie);function le(e){return(le="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}function ae(e,n){for(var t=0;t<n.length;t++){var o=n[t];o.enumerable=o.enumerable||!1,o.configurable=!0,"value"in o&&(o.writable=!0),Object.defineProperty(e,o.key,o)}}function se(e,n){return(se=Object.setPrototypeOf||function(e,n){return e.__proto__=n,e})(e,n)}function ue(e){var n=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(e){return!1}}();return function(){var t,o=pe(e);if(n){var i=pe(this).constructor;t=Reflect.construct(o,arguments,i)}else t=o.apply(this,arguments);return ce(this,t)}}function ce(e,n){return!n||"object"!==le(n)&&"function"!=typeof n?function(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}(e):n}function pe(e){return(pe=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)})(e)}var fe=function(e){!function(e,n){if("function"!=typeof n&&null!==n)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(n&&n.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),n&&se(e,n)}(l,e);var n,t,o,r=ue(l);function l(e){return function(e,n){if(!(e instanceof n))throw new TypeError("Cannot call a class as a function")}(this,l),r.call(this,e)}return n=l,(t=[{key:"name",get:function(){return"VideoItemAwaitingReviewMetadataComponent"}},{key:"template",get:function(){return re.a}},{key:"events",value:function(){return{"click .video-title":"onClickMetadata","click .svg-container":"onClickMetadata"}}},{key:"regions",value:function(){return{badges:{el:".badges-region",replaceElement:!0},series:{el:".series-region",replaceElement:!0}}}},{key:"onClickMetadata",value:function(e){e.stopPropagation()}},{key:"getVideoUrl",value:function(){var e=i.a.safeUrlConcat(this.options.config.get("onlineUrl"),"videos/".concat(this.model.get("id")));return i.a.urlBuilder(e,{loginPrompt:!1})}},{key:"getSeriesUrl",value:function(){if(this.model.series){var e=i.a.safeUrlConcat(this.options.config.get("onlineUrl"),"series/".concat(this.model.series.id));return i.a.urlBuilder(e,{loginPrompt:!1})}}},{key:"renderBadges",value:function(){this.showChildView("badges",new x({model:this.model,showReviewBadge:!0}))}},{key:"renderSeries",value:function(){this.showChildView("series",new S.a({model:this.model,highlight:!1,seriesUrl:this.getSeriesUrl()}))}},{key:"viewOptions",value:function(){return{styles:_.a,videoUrl:this.getVideoUrl(),openExternalSvg:c.a.getSvg(c.b.NewWindow)}}},{key:"onRender",value:function(){this.renderSeries(),this.renderBadges()}}])&&ae(n.prototype,t),o&&ae(n,o),l}(u.a.Component),he=t(1076),de=t.n(he),ge=t(1077),me=t.n(ge);function ye(e){return(ye="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}function ve(e,n,t){return n in e?Object.defineProperty(e,n,{value:t,enumerable:!0,configurable:!0,writable:!0}):e[n]=t,e}function be(e,n){for(var t=0;t<n.length;t++){var o=n[t];o.enumerable=o.enumerable||!1,o.configurable=!0,"value"in o&&(o.writable=!0),Object.defineProperty(e,o.key,o)}}function ke(e,n){return(ke=Object.setPrototypeOf||function(e,n){return e.__proto__=n,e})(e,n)}function we(e){var n=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(e){return!1}}();return function(){var t,o=Oe(e);if(n){var i=Oe(this).constructor;t=Reflect.construct(o,arguments,i)}else t=o.apply(this,arguments);return Ce(this,t)}}function Ce(e,n){return!n||"object"!==ye(n)&&"function"!=typeof n?function(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}(e):n}function Oe(e){return(Oe=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)})(e)}var xe=function(e){!function(e,n){if("function"!=typeof n&&null!==n)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(n&&n.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),n&&ke(e,n)}(l,e);var n,t,o,r=we(l);function l(e){return function(e,n){if(!(e instanceof n))throw new TypeError("Cannot call a class as a function")}(this,l),r.call(this,e)}return n=l,(t=[{key:"initialize",value:function(){this.listenTo(this.model,"change:restrictions",this.render)}},{key:"name",get:function(){return"VideoItemPastReleasesMetadataComponent"}},{key:"template",get:function(){return de.a}},{key:"lang",get:function(){return"shared.videoItemPastReleasesMetadata"}},{key:"behaviors",get:function(){return[{behaviorClass:p.a,selector:".tool-tip"}]}},{key:"regions",value:function(){return{badges:{el:".badges-region",replaceElement:!0},series:{el:".series-region",replaceElement:!0}}}},{key:"events",value:function(){var e;return ve(e={"click .video-title":"onClickMetadata"},"click .".concat(me.a.series),"onClickMetadata"),ve(e,"click .svg-container","onClickMetadata"),e}},{key:"onClickMetadata",value:function(e){e.stopPropagation()}},{key:"getVideoUrl",value:function(){var e=i.a.safeUrlConcat(this.options.config.get("onlineUrl"),"videos/".concat(this.model.get("id")));return i.a.urlBuilder(e,{loginPrompt:!1})}},{key:"getSeriesUrl",value:function(){if(this.model.series){var e=i.a.safeUrlConcat(this.options.config.get("onlineUrl"),"series/".concat(this.model.series.id));return i.a.urlBuilder(e,{loginPrompt:!1})}}},{key:"renderBadges",value:function(){this.showChildView("badges",new x({model:this.model}))}},{key:"renderSeries",value:function(){this.showChildView("series",new S.a({model:this.model,highlight:!1,seriesUrl:this.getSeriesUrl()}))}},{key:"viewOptions",value:function(){return{styles:s.extend({},_.a,me.a),videoUrl:this.getVideoUrl(),openExternalSvg:c.a.getSvg(c.b.NewWindow),hasAdminRestriction:f.o.hasAdminRestriction(this.model),restrictionMessage:f.o.getRestrictionTooltipMessage(this.model),lockSvg:c.a.getSvg(c.b.Lock)}}},{key:"onRender",value:function(){this.renderSeries(),this.renderBadges()}}])&&be(n.prototype,t),o&&be(n,o),l}(u.a.Component),Ee=t(1078),Se=t.n(Ee);function Pe(e){return(Pe="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}function Re(e,n){for(var t=0;t<n.length;t++){var o=n[t];o.enumerable=o.enumerable||!1,o.configurable=!0,"value"in o&&(o.writable=!0),Object.defineProperty(e,o.key,o)}}function Ie(e,n){return(Ie=Object.setPrototypeOf||function(e,n){return e.__proto__=n,e})(e,n)}function _e(e){var n=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(e){return!1}}();return function(){var t,o=Ve(e);if(n){var i=Ve(this).constructor;t=Reflect.construct(o,arguments,i)}else t=o.apply(this,arguments);return Te(this,t)}}function Te(e,n){return!n||"object"!==Pe(n)&&"function"!=typeof n?function(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}(e):n}function Ve(e){return(Ve=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)})(e)}var je=function(e){!function(e,n){if("function"!=typeof n&&null!==n)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(n&&n.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),n&&Ie(e,n)}(l,e);var n,t,i,r=_e(l);function l(e){return function(e,n){if(!(e instanceof n))throw new TypeError("Cannot call a class as a function")}(this,l),r.call(this,e)}return n=l,(t=[{key:"initialize",value:function(){this.listenTo(this.model,"change:restrictions",this.render)}},{key:"name",get:function(){return"VideoItemSearchMetadataComponent"}},{key:"template",get:function(){return Se.a}},{key:"behaviors",get:function(){return[{behaviorClass:p.a,selector:".tool-tip"}]}},{key:"appLinks",get:function(){return{".applink-show-video":{application:o.b.LIBRARY_EDITOR,action:o.a.LibraryEditor.VIDEO_DETAILS,args:[this.model.get("id")]}}}},{key:"regions",value:function(){return{sources:{el:".sources-region",replaceElement:!0},badges:{el:".badges-region",replaceElement:!0},series:{el:".series-region",replaceElement:!0}}}},{key:"events",value:function(){return e={click:"onClick"},n="click ".concat(_.a.svgContainer),t="onClickSvg",n in e?Object.defineProperty(e,n,{value:t,enumerable:!0,configurable:!0,writable:!0}):e[n]=t,e;var e,n,t}},{key:"onClickSvg",value:function(e){e.stopPropagation()}},{key:"getKeyPhrases",value:function(){var e=this;return f.w.extractKeyPhrases(this.model.get("description"),this.model.get("_matchedWords"),100,2).map((function(n){return f.w.wordsHighlighter(f.w.escapeExpression(n),e.model.get("_matchedWords"))}))}},{key:"renderSources",value:function(){var e=s.extend({},{model:this.model},this.options.sourceMetadataOptions);this.showChildView("sources",new E.a(e))}},{key:"renderSeries",value:function(){this.showChildView("series",new S.a({model:this.model,highlight:this.options.sourceMetadataOptions&&!!this.options.sourceMetadataOptions.highlight}))}},{key:"renderBadges",value:function(){this.showChildView("badges",new x({model:this.model}))}},{key:"viewOptions",value:function(){return{styles:_.a,name:f.w.wordsHighlighter(f.w.escapeExpression(this.model.get("name")),this.model.get("_matchedWords")),keyPhrases:this.getKeyPhrases(),hasAdminRestriction:f.o.hasAdminRestriction(this.model),restrictionMessage:f.o.getRestrictionTooltipMessage(this.model),lockSvg:c.a.getSvg(c.b.Lock)}}},{key:"onRender",value:function(){this.renderSeries(),this.renderSources(),this.renderBadges()}}])&&Re(n.prototype,t),i&&Re(n,i),l}(u.a.Component),Me=t(6),Le=t(1105),Be=t(1079),Ae=t.n(Be),De=t(1048),Ne=t.n(De);function Ue(e){return(Ue="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}function He(e,n){for(var t=0;t<n.length;t++){var o=n[t];o.enumerable=o.enumerable||!1,o.configurable=!0,"value"in o&&(o.writable=!0),Object.defineProperty(e,o.key,o)}}function We(e,n){return(We=Object.setPrototypeOf||function(e,n){return e.__proto__=n,e})(e,n)}function ze(e){var n=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(e){return!1}}();return function(){var t,o=Ye(e);if(n){var i=Ye(this).constructor;t=Reflect.construct(o,arguments,i)}else t=o.apply(this,arguments);return Fe(this,t)}}function Fe(e,n){return!n||"object"!==Ue(n)&&"function"!=typeof n?function(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}(e):n}function Ye(e){return(Ye=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)})(e)}var Ge=function(e){!function(e,n){if("function"!=typeof n&&null!==n)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(n&&n.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),n&&We(e,n)}(r,e);var n,t,o,i=ze(r);function r(e){return function(e,n){if(!(e instanceof n))throw new TypeError("Cannot call a class as a function")}(this,r),i.call(this,e)}return n=r,(t=[{key:"name",get:function(){return"VideoItemActionsComponent"}},{key:"template",get:function(){return Ae.a}},{key:"className",get:function(){return"d-flex h-100 flex-column align-items-end justify-content-between"}},{key:"lang",get:function(){return"shared._videoItemActions"}},{key:"regions",value:function(){return{videoActions:".video-actions-region"}}},{key:"events",value:function(){return e={},n="click .".concat(Ne.a.showPreview),t="onClickShowPreview",n in e?Object.defineProperty(e,n,{value:t,enumerable:!0,configurable:!0,writable:!0}):e[n]=t,e;var e,n,t}},{key:"onClickShowPreview",value:function(e){e.stopPropagation(),this.options.channelName&&Me.Radio.channel(this.options.channelName).trigger("click:show:preview")}},{key:"renderVideoActions",value:function(){this.showChildView("videoActions",new Le.a(this.options.videoActionsOptions))}},{key:"viewOptions",value:function(){return{styles:Ne.a,previewDisplayed:this.options.previewDisplayed,previewSvg:c.a.getSvg(c.b.Preview)}}},{key:"onRender",value:function(){this.renderVideoActions()}}])&&He(n.prototype,t),o&&He(n,o),r}(u.a.Component),Ke=t(5),qe=t(4),Je=t(42),Ze=t(1080),Qe=t.n(Ze);function $e(e){return($e="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}function Xe(e,n){for(var t=0;t<n.length;t++){var o=n[t];o.enumerable=o.enumerable||!1,o.configurable=!0,"value"in o&&(o.writable=!0),Object.defineProperty(e,o.key,o)}}function en(e,n){return(en=Object.setPrototypeOf||function(e,n){return e.__proto__=n,e})(e,n)}function nn(e){var n=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(e){return!1}}();return function(){var t,o=on(e);if(n){var i=on(this).constructor;t=Reflect.construct(o,arguments,i)}else t=o.apply(this,arguments);return tn(this,t)}}function tn(e,n){return!n||"object"!==$e(n)&&"function"!=typeof n?function(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}(e):n}function on(e){return(on=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)})(e)}var rn=function(e){!function(e,n){if("function"!=typeof n&&null!==n)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(n&&n.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),n&&en(e,n)}(l,e);var n,t,i,r=nn(l);function l(e){return function(e,n){if(!(e instanceof n))throw new TypeError("Cannot call a class as a function")}(this,l),r.call(this,e)}return n=l,(t=[{key:"initialize",value:function(){this.restrictedVideoDataService=Ke.a.getInstance(o.g.RestrictedVideo,this)}},{key:"name",get:function(){return"VideoItemReviewActionsComponent"}},{key:"template",get:function(){return Qe.a}},{key:"lang",get:function(){return"shared.videoItemReviewActions"}},{key:"className",get:function(){return"d-flex h-100 flex-column align-items-end"}},{key:"events",value:function(){return e={"click .approve":"onClickApprove","click .applink-manage-video-access":"onClickManageVideoAccess"},n="click .".concat(Ne.a.showPreview),t="onClickShowPreview",n in e?Object.defineProperty(e,n,{value:t,enumerable:!0,configurable:!0,writable:!0}):e[n]=t,e;var e,n,t}},{key:"appLinks",get:function(){return{".applink-manage-video-access":{application:o.b.CONTENT_UPDATES,action:o.a.Shared.MANAGE_VIDEO_ACCESS,args:[this.model.get("id")]}}}},{key:"onClickApprove",value:function(e){e.stopPropagation(),this.restrictedVideoDataService.deleteVideoRestriction(this.model.get("id")),this.logApproveAction()}},{key:"onClickManageVideoAccess",value:function(e){e.stopPropagation(),this.logManageAccessAction()}},{key:"onClickShowPreview",value:function(e){e.stopPropagation(),this.options.channelName&&Me.Radio.channel(this.options.channelName).trigger("click:show:preview")}},{key:"logApproveAction",value:function(){var e={location:qe.LocationContext.AwaitingReviewVideoItem,actionType:qe.UserAction.Approve,entity:qe.EntityType.Video,descriptor:qe.OperationDescriptor.Single,workflowPhase:qe.WorkflowPhase.Complete},n={id:this.model.get("id")};Je.a.logUserAction(n,e)}},{key:"logManageAccessAction",value:function(){var e={location:qe.LocationContext.AwaitingReviewVideoItem,actionType:qe.UserAction.SetAccess,entity:qe.EntityType.Video,workflowPhase:qe.WorkflowPhase.Start},n={id:this.model.get("id")};Je.a.logUserAction(n,e)}},{key:"viewOptions",value:function(){return{styles:Ne.a,previewDisplayed:this.options.previewDisplayed,previewSvg:c.a.getSvg(c.b.Preview)}}}])&&Xe(n.prototype,t),i&&Xe(n,i),l}(u.a.Component),ln=t(1081),an=t.n(ln);function sn(e){return(sn="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}function un(e,n){for(var t=0;t<n.length;t++){var o=n[t];o.enumerable=o.enumerable||!1,o.configurable=!0,"value"in o&&(o.writable=!0),Object.defineProperty(e,o.key,o)}}function cn(e,n){return(cn=Object.setPrototypeOf||function(e,n){return e.__proto__=n,e})(e,n)}function pn(e){var n=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(e){return!1}}();return function(){var t,o=hn(e);if(n){var i=hn(this).constructor;t=Reflect.construct(o,arguments,i)}else t=o.apply(this,arguments);return fn(this,t)}}function fn(e,n){return!n||"object"!==sn(n)&&"function"!=typeof n?function(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}(e):n}function hn(e){return(hn=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)})(e)}var dn=function(e){!function(e,n){if("function"!=typeof n&&null!==n)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(n&&n.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),n&&cn(e,n)}(l,e);var n,t,i,r=pn(l);function l(e){return function(e,n){if(!(e instanceof n))throw new TypeError("Cannot call a class as a function")}(this,l),r.call(this,e)}return n=l,(t=[{key:"name",get:function(){return"VideoItemVideoAccessComponent"}},{key:"template",get:function(){return an.a}},{key:"lang",get:function(){return"shared.videoItemVideoAccessActions"}},{key:"className",get:function(){return"d-flex h-100 flex-column align-items-end justify-content-between"}},{key:"appLinks",get:function(){return{".applink-manage-video-access":{application:o.b.VIDEO_ACCESS,action:o.a.Shared.MANAGE_VIDEO_ACCESS,args:[this.model.get("id")]}}}},{key:"events",value:function(){return e={"click .applink-manage-video-access":"onClickManageVideoAccess"},n="click .".concat(Ne.a.showPreview),t="onClickShowPreview",n in e?Object.defineProperty(e,n,{value:t,enumerable:!0,configurable:!0,writable:!0}):e[n]=t,e;var e,n,t}},{key:"onClickManageVideoAccess",value:function(e){e.stopPropagation(),this.logAction()}},{key:"onClickShowPreview",value:function(e){e.stopPropagation(),this.options.channelName&&Me.Radio.channel(this.options.channelName).trigger("click:show:preview")}},{key:"logAction",value:function(){var e={location:qe.LocationContext.VideoListItem,actionType:qe.UserAction.SetAccess,entity:qe.EntityType.Video,workflowPhase:qe.WorkflowPhase.Start},n={id:this.model.get("id")};Je.a.logUserAction(n,e)}},{key:"viewOptions",value:function(){return{styles:Ne.a,previewDisplayed:this.options.previewDisplayed,previewSvg:c.a.getSvg(c.b.Preview)}}}])&&un(n.prototype,t),i&&un(n,i),l}(u.a.Component),gn=t(1065),mn=t(1082),yn=t(9),vn=t(3),bn=t(309),kn=t(1067),wn=t(302),Cn=t(1083),On=t.n(Cn);function xn(e){return(xn="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}function En(e,n){for(var t=0;t<n.length;t++){var o=n[t];o.enumerable=o.enumerable||!1,o.configurable=!0,"value"in o&&(o.writable=!0),Object.defineProperty(e,o.key,o)}}function Sn(e,n){return(Sn=Object.setPrototypeOf||function(e,n){return e.__proto__=n,e})(e,n)}function Pn(e){var n=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(e){return!1}}();return function(){var t,o=In(e);if(n){var i=In(this).constructor;t=Reflect.construct(o,arguments,i)}else t=o.apply(this,arguments);return Rn(this,t)}}function Rn(e,n){return!n||"object"!==xn(n)&&"function"!=typeof n?function(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}(e):n}function In(e){return(In=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)})(e)}var _n=function(e){!function(e,n){if("function"!=typeof n&&null!==n)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(n&&n.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),n&&Sn(e,n)}(l,e);var n,t,i,r=Pn(l);function l(e){return function(e,n){if(!(e instanceof n))throw new TypeError("Cannot call a class as a function")}(this,l),r.call(this,e)}return n=l,(t=[{key:"name",get:function(){return"ExpandableTagListComponent"}},{key:"template",get:function(){return On.a}},{key:"lang",get:function(){return"libraryEditor.expandableTagList"}},{key:"defaults",get:function(){return{initialTagDisplayCount:5,expandedTagDisplayCount:10}}},{key:"appLinks",get:function(){return{".applink-video-details":{application:o.b.LIBRARY_EDITOR,action:o.a.LibraryEditor.VIDEO_DETAILS,args:[this.options.videoId]}}}},{key:"events",value:function(){return{"click .show-more-tags":"onClickShowMoreTags"}}},{key:"regions",value:function(){return{tags:{replaceElement:!0,el:".tags-region"}}}},{key:"onClickShowMoreTags",value:function(){this.showingMoreTags=!0,this.options.channelName&&Me.Radio.channel(this.options.channelName).trigger("show:more:tags"),this.render()}},{key:"getTagCollection",value:function(){var e=this.showingMoreTags?this.options.expandedTagDisplayCount:this.options.initialTagDisplayCount;return new bn.a(this.collection.slice(0,e))}},{key:"getExtraTagsInfo",value:function(){if(!this.showingMoreTags)return vn.a.getPhrase(this.lang,"extraTags",{smartCount:s.max([this.collection.length-this.options.initialTagDisplayCount,0])})}},{key:"renderTags",value:function(){var e=new kn.a({collection:this.getTagCollection(),behavior:wn.b.Link});this.showChildView("tags",e)}},{key:"viewOptions",value:function(){return{expandable:this.collection.length>this.options.initialTagDisplayCount&&!this.showingMoreTags,extraTagsText:this.getExtraTagsInfo(),moreTags:this.showingMoreTags&&this.collection.length>this.options.expandedTagDisplayCount}}},{key:"onRender",value:function(){this.renderTags()}}])&&En(n.prototype,t),i&&En(n,i),l}(u.a.Component),Tn=t(1084),Vn=t.n(Tn),jn=t(1085),Mn=t.n(jn);function Ln(e){return(Ln="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}function Bn(e,n){for(var t=0;t<n.length;t++){var o=n[t];o.enumerable=o.enumerable||!1,o.configurable=!0,"value"in o&&(o.writable=!0),Object.defineProperty(e,o.key,o)}}function An(e,n){return(An=Object.setPrototypeOf||function(e,n){return e.__proto__=n,e})(e,n)}function Dn(e){var n=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(e){return!1}}();return function(){var t,o=Un(e);if(n){var i=Un(this).constructor;t=Reflect.construct(o,arguments,i)}else t=o.apply(this,arguments);return Nn(this,t)}}function Nn(e,n){return!n||"object"!==Ln(n)&&"function"!=typeof n?function(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}(e):n}function Un(e){return(Un=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)})(e)}var Hn=function(e){!function(e,n){if("function"!=typeof n&&null!==n)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(n&&n.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),n&&An(e,n)}(l,e);var n,t,i,r=Dn(l);function l(e){return function(e,n){if(!(e instanceof n))throw new TypeError("Cannot call a class as a function")}(this,l),r.call(this,e)}return n=l,(t=[{key:"initialize",value:function(){this.listenTo(this.model,"change",this.render),this.listenTo(this.channelName,"show:more:tags",this.onClickShowMoreTags)}},{key:"name",get:function(){return"VideoItemPreviewComponent"}},{key:"template",get:function(){return Vn.a}},{key:"lang",get:function(){return"shared.videoItemPreview"}},{key:"className",get:function(){return"row border-top px-3 m-0"}},{key:"channelName",get:function(){return"".concat(this.name).concat(this.cid)}},{key:"appLinks",get:function(){return{".applink-video-details":{application:o.b.LIBRARY_EDITOR,action:o.a.LibraryEditor.VIDEO_DETAILS,args:[this.model.get("id")]}}}},{key:"behaviors",get:function(){return[{behaviorClass:p.a,selector:".tool-tip"}]}},{key:"regions",value:function(){return{partialLoadingContainer:{el:".content-container-region",replaceElement:!1,partialLoading:yn.h.VideoItemPreview},description:".description-region",preview:".video-preview-region",tags:{replaceElement:!0,el:".tags-region"}}}},{key:"events",value:function(){return{click:"onClick"}}},{key:"onClick",value:function(e){e.stopPropagation()}},{key:"onClickShowMoreTags",value:function(){Me.Radio.channel(this.options.channelName).trigger("resize:preview")}},{key:"showTags",value:function(){return!(!this.model.tags||!this.model.tags.length)}},{key:"renderDescription",value:function(){if(this.model&&this.model.get("description")){var e=new gn.a({model:this.model,highlighter:!0,size:gn.b.Small,truncate:!0});this.showChildView("description",e)}}},{key:"renderTags",value:function(){if(this.showTags()){var e=new _n({collection:this.model.tags,videoId:this.model.id&&this.model.get("id"),channelName:this.channelName});this.showChildView("tags",e)}}},{key:"renderVideoPreview",value:function(){var e=new mn.a({model:this.model,webPlayerUrl:this.options.webPlayerUrl,analyticsOptions:{location:qe.LocationContext.VideoItemPreview},currentUser:this.options.currentUser});this.showChildView("preview",e)}},{key:"getSubtitleLanguage",value:function(){if(!this.model.subtitles||!this.model.get("subtitles").length)return"";var e=s.uniq(this.model.get("subtitles").map((function(e){return e.get("language")})));return s.map(e,(function(e){return CVLanguages.getFullEnglishName(e)})).join(", ")}},{key:"getDetails",value:function(e){if(!this.model[e]||!this.model.get(e).length)return"";var n=this.model.get(e).length;return n>1?"".concat(n," ").concat(e):"".concat(vn.a.getPhrase(this.lang,"one")," ").concat(e.slice(0,-1))}},{key:"onBeforeRender",value:function(){return!(!this.model||!this.model.get("dataFetched"))||(Me.Radio.channel(this.options.collectionViewChannel).trigger("fetch:video:with:metadata",this.options.videoId),!(!this.model||!this.model.get("dataFetched"))&&void 0)}},{key:"viewOptions",value:function(){if(this.model&&this.model.get("dataFetched")){var e=this.model.get("duration");return{styles:Mn.a,ratingClass:this.model.rating&&h.h.mapRatingToClass(this.model.rating.get("value")),showTags:this.showTags(),description:this.model.get("description"),duration:e&&f.e.ToDisplayDuration(e),chapters:this.getDetails("chapters"),interactives:this.model.interactives&&this.model.get("interactives").length,subtitles:this.getSubtitleLanguage(),resources:this.getDetails("resources"),links:this.getDetails("links"),externalLink:this.options.externalLink,openExternalSvg:c.a.getSvg(c.b.NewWindow)}}}},{key:"onRender",value:function(){this.renderDescription(),this.renderTags(),this.renderVideoPreview()}}])&&Bn(n.prototype,t),i&&Bn(n,i),l}(u.a.Component),Wn=t(1086),zn=t.n(Wn);function Fn(e){return(Fn="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}function Yn(e,n){for(var t=0;t<n.length;t++){var o=n[t];o.enumerable=o.enumerable||!1,o.configurable=!0,"value"in o&&(o.writable=!0),Object.defineProperty(e,o.key,o)}}function Gn(e,n){return(Gn=Object.setPrototypeOf||function(e,n){return e.__proto__=n,e})(e,n)}function Kn(e){var n=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(e){return!1}}();return function(){var t,o=Jn(e);if(n){var i=Jn(this).constructor;t=Reflect.construct(o,arguments,i)}else t=o.apply(this,arguments);return qn(this,t)}}function qn(e,n){return!n||"object"!==Fn(n)&&"function"!=typeof n?function(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}(e):n}function Jn(e){return(Jn=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)})(e)}var Zn,Qn,$n,Xn,et,nt,tt,ot,it,rt=function(e){!function(e,n){if("function"!=typeof n&&null!==n)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(n&&n.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),n&&Gn(e,n)}(r,e);var n,t,o,i=Kn(r);function r(e){return function(e,n){if(!(e instanceof n))throw new TypeError("Cannot call a class as a function")}(this,r),i.call(this,e)}return n=r,(t=[{key:"initialize",value:function(){this.bindListeners()}},{key:"name",get:function(){return"VideoItemProcessingActionsComponent"}},{key:"template",get:function(){return zn.a}},{key:"lang",get:function(){return"shared.videoItemProcessingActions"}},{key:"className",get:function(){return"d-flex h-100 flex-column align-items-end justify-content-between"}},{key:"events",value:function(){return{"click .cancel":"onClickCancel","click .retry":"onClickRetry"}}},{key:"onClickCancel",value:function(){var e=this.pendingItem.get("video").get("name");f.b.generateDialog(e,this.options.channelName,"cancel:pending:item",this.pendingItem)}},{key:"onClickRetry",value:function(){Me.Radio.channel(this.options.channelName).trigger("retry:pending:item",this.pendingItem)}},{key:"bindListeners",value:function(){this.model.get("status")===K.a.Processing&&this.options.pendingItems&&(this.pendingItem||(this.listenTo(this.options.pendingItems,"update",this.mapPendingItem),this.mapPendingItem()))}},{key:"mapPendingItem",value:function(){this.pendingItem=this.options.pendingItems.get(this.model.get("id")),this.render(),this.pendingItem&&(this.stopListening(this.options.pendingItems,"update"),this.listenTo(this.pendingItem,"change:pendingProcessStatus",this.render))}},{key:"viewOptions",value:function(){return{hasError:q.a.hasError(this.pendingItem)}}},{key:"onBeforeRender",value:function(){return!!this.pendingItem}}])&&Yn(n.prototype,t),o&&Yn(n,o),r}(u.a.Component),lt=t(1056),at=t.n(lt),st=t(195),ut=t(1036);function ct(e,n,t){return n in e?Object.defineProperty(e,n,{value:t,enumerable:!0,configurable:!0,writable:!0}):e[n]=t,e}t.d(n,"a",(function(){return mt}));var pt=ut.b,ft=ut.a,ht=function(e){return{component:r.a,options:{model:e.model,lazyload:e.shouldLazyLoadThumbnail(),thumbnailOptions:{size:l.a.Small},href:i.a.urlBuilder(i.a.safeUrlConcat(e.options.config.get("onlineUrl"),"videos/".concat(e.model.id)),{loginPrompt:!1}),channelName:e.channelName}}},dt=function(e){return{component:Hn,options:{model:e.options.videoWithMetadata,videoId:e.model.id.toString(),channelName:e.channelName,collectionViewChannel:e.options.collectionViewChannel,webPlayerUrl:e.options.config.get("webPlayerUrl"),currentUser:e.options.currentUser}}},gt=function(e){return{component:Hn,options:{model:e.options.videoWithMetadata,videoId:e.model.id.toString(),channelName:e.channelName,collectionViewChannel:e.options.collectionViewChannel,webPlayerUrl:e.options.config.get("webPlayerUrl"),externalLink:i.a.urlBuilder(i.a.safeUrlConcat(e.options.config.get("onlineUrl"),"videos/".concat(e.model.id)),{loginPrompt:!1}),currentUser:e.options.currentUser}}},mt={componentOptions:(nt={},ct(nt,pt.Base,(Zn={},ct(Zn,ft.Checkbox,(function(e){return{component:a.a,options:{className:"d-inline-flex align-items-center mr-3 ".concat(at.a.checkboxContainer),checkboxClassName:at.a.checkbox,itemId:e.model.id,key:e.collectionIdentifier.toString(),type:st.CheckboxTypes.VIDEO_LIST}}})),ct(Zn,ft.Thumbnail,(function(e){return{component:r.a,options:{model:e.model,lazyload:e.shouldLazyLoadThumbnail(),thumbnailOptions:{size:l.a.Small},appLink:{application:o.b.LIBRARY_EDITOR,action:o.a.LibraryEditor.VIDEO_DETAILS,args:[e.model.id]},channelName:e.channelName}}})),ct(Zn,ft.Metadata,(function(e){return{component:A,options:{model:e.model,sourceMetadataOptions:e.options.sourceMetadataOptions}}})),ct(Zn,ft.VideoActions,(function(e){return{component:Ge,options:{model:e.model,channelName:e.channelName,previewDisplayed:e.viewModel.get("previewOpen"),videoActionsOptions:{model:e.model,application:e.options.application,collectionIdentifier:e.options.collectionIdentifier,customerHasLocalCache:e.options.customerHasLocalCache,customerHasExchange:e.options.customerHasExchange,customerHasCustomLibrary:e.options.customerHasCustomLibrary,analyticsOptions:e.options.analyticsOptions,config:e.options.config,collectionSource:e.options.videoCollectionSource}}}})),ct(Zn,ft.VideoInfo,dt),Zn)),ct(nt,pt.AwaitingReview,(Qn={},ct(Qn,ft.Thumbnail,ht),ct(Qn,ft.Metadata,(function(e){return{component:fe,options:{model:e.model,config:e.options.config}}})),ct(Qn,ft.VideoActions,(function(e){return{component:rn,options:{model:e.model,channelName:e.channelName,previewDisplayed:e.viewModel.get("previewOpen"),analyticsOptions:e.options.analyticsOptions}}})),ct(Qn,ft.VideoInfo,gt),Qn)),ct(nt,pt.PastReleases,($n={},ct($n,ft.Thumbnail,ht),ct($n,ft.Metadata,(function(e){return{component:xe,options:{model:e.model,config:e.options.config}}})),ct($n,ft.VideoInfo,gt),$n)),ct(nt,pt.VideoAccess,(Xn={},ct(Xn,ft.VideoActions,(function(e){return{component:dn,options:{model:e.model,channelName:e.channelName,previewDisplayed:e.viewModel.get("previewOpen"),analyticsOptions:e.options.analyticsOptions}}})),ct(Xn,ft.Metadata,(function(e){return{component:G,options:{model:e.model,config:e.options.config,sourceMetadataOptions:{showFolder:!0}}}})),ct(Xn,ft.VideoInfo,(function(e){return f.y.hasCustomLibrary(e.model)?dt(e):gt(e)})),Xn)),ct(nt,pt.ProcessingVideo,(et={},ct(et,ft.Metadata,(function(e){return{component:oe,options:{model:e.model,pendingItems:e.options.pendingItems}}})),ct(et,ft.VideoActions,(function(e){return{component:rt,options:{model:e.model,pendingItems:e.options.pendingItems,channelName:e.options.collectionViewChannel,analyticsOptions:e.options.analyticsOptions}}})),et)),ct(nt,pt.Draggable,{}),ct(nt,pt.Search,ct({},ft.Metadata,(function(e){return{component:je,options:{model:e.model,sourceMetadataOptions:{showFolder:!0,highlight:!0}}}}))),nt),onBeforeRender:(it={},ct(it,pt.Base,(tt={},ct(tt,ft.Checkbox,(function(e){return!!e.options.allowBulk})),ct(tt,ft.VideoInfo,(function(e){return!!e.viewModel.get("previewOpen")})),tt)),ct(it,pt.ProcessingVideo,(ot={},ct(ot,ft.Checkbox,(function(){return!1})),ct(ot,ft.VideoInfo,(function(){return!1})),ot)),it)}},1059:function(e,n,t){"use strict";var o=t(2),i=t(1),r=t(1036),l=t(1058),a=t(1060);var s,u,c,p=(s={},u=r.b.Draggable,c=function(e){return[{behaviorClass:a.a,collectionIdentifier:e.options.collectionIdentifier,model:e.options.model,selector:"drag-selector"}]},u in s?Object.defineProperty(s,u,{value:c,enumerable:!0,configurable:!0,writable:!0}):s[u]=c,s),f=t(18);t.d(n,"a",(function(){return g}));var h=r.b.Base,d=l.a,g={renderRegions:function(e,n){i.each(e.regions,(function(t,o){m.onBeforeRenderRegion(e,n,o)&&m.renderRegion(e,n,o)}))},onBeforeRenderRegion:function(e,n,t){var o=d.onBeforeRender[n];if(o||(o=d.onBeforeRender[h]),!o)return!0;var r=o[t];return!r||(!i.isFunction(r)||r(e))},renderRegion:function(e,n,t){var o=m.getComponent(e,n,t);e.showChildView(t,o)},getComponent:function(e,n,t){var i=d.componentOptions[n];i||o.a.ErrorHelper.throw(new f.a("Must define VideoItemComponent type options: ".concat(r.b[n],".")));var l=i[t];l||(l=d.componentOptions[h][t]),l||o.a.ErrorHelper.throw(new f.a("Must define VideoItemComponent region options: ".concat(t,".")));var a=l(e);return a.component||o.a.ErrorHelper.throw(new f.a("Must define component for region: ".concat(t,",\n in VideoItemComponent type: ").concat(r.b[n],"."))),new a.component(a.options||{})},getBehaviors:function(e,n){return p[n]?p[n](e):null}},m=g},1060:function(e,n,t){"use strict";t.d(n,"a",(function(){return C}));var o=t(1),i=t(6),r=t(2),l=t(18),a=t(17),s=t(0),u=t(13),c=t(3),p=t(1055),f=t(195),h=t(1063),d=t.n(h);function g(e){return(g="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}function m(e,n){if(!(e instanceof n))throw new TypeError("Cannot call a class as a function")}function y(e,n){for(var t=0;t<n.length;t++){var o=n[t];o.enumerable=o.enumerable||!1,o.configurable=!0,"value"in o&&(o.writable=!0),Object.defineProperty(e,o.key,o)}}function v(e,n){return(v=Object.setPrototypeOf||function(e,n){return e.__proto__=n,e})(e,n)}function b(e){var n=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(e){return!1}}();return function(){var t,o=w(e);if(n){var i=w(this).constructor;t=Reflect.construct(o,arguments,i)}else t=o.apply(this,arguments);return k(this,t)}}function k(e,n){return!n||"object"!==g(n)&&"function"!=typeof n?function(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}(e):n}function w(e){return(w=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)})(e)}var C=function(e){!function(e,n){if("function"!=typeof n&&null!==n)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(n&&n.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),n&&v(e,n)}(k,e);var n,t,h,g=b(k);function k(){return m(this,k),g.apply(this,arguments)}return n=k,(t=[{key:"initialize",value:function(){this.options.model||r.a.ErrorHelper.throw(new l.a("DraggableVideoBehavior must be passed a Video model")),this.listenTo(s.w.VIDEO_DRAG_DROP,"drag:style:".concat(this.options.model.id),this.styleDragStart),this.listenTo(s.w.VIDEO_DRAG_DROP,"drag:stop",this.styleDragStop)}},{key:"lang",get:function(){return"libraryEditor.behaviors"}},{key:"helper",value:function(){var e=this.getVideoModels();return new p.b({text:e.length>1?c.a.getPhrase(this.lang,"videos",{videoCount:e.length}):e[0].get("name"),svg:a.a.getSvg(a.b.Play)}).render().el}},{key:"getSelector",value:function(){return this.view.getUI(this.options.selector)}},{key:"styleDragStart",value:function(){this.getSelector().addClass(d.a.draggingVideo)}},{key:"styleDragStop",value:function(){this.getSelector().removeClass(d.a.draggingVideo)}},{key:"start",value:function(){var e=this.getVideoModels(),n=i.Radio.channel(s.w.VIDEO_DRAG_DROP);n.trigger("drag:start",e,this.options.collectionIdentifier),o.each(e,(function(e){return n.trigger("drag:style:".concat(e.id))}))}},{key:"stop",value:function(){i.Radio.channel(s.w.VIDEO_DRAG_DROP).trigger("drag:stop")}},{key:"getVideoModels",value:function(){var e=this,n=u.a.GetSelectedModels({key:this.options.collectionIdentifier.toString(),type:f.CheckboxTypes.VIDEO_LIST,collection:this.view.model.collection});return o.any(n,(function(n){return n.id===e.view.model.id}))||(n=[this.view.model]),n.length?n:[this.view.model]}},{key:"getClassMappings",value:function(){return{"ui-draggable":p.c.draggable,"ui-draggable-disabled":p.c.disabled,"ui-draggable-handle":p.c.handle,"ui-draggable-dragging":p.c.dragging}}},{key:"onRender",value:function(){var e=this.getSelector(),n={helper:o.bind(this.helper,this),start:o.bind(this.start,this),stop:o.bind(this.stop,this)};n.classes=this.getClassMappings(),e.draggable(o.extend({},p.a,n))}},{key:"onBeforeDestroy",value:function(){var e=this.getSelector();e.draggable("instance")&&e.draggable("destroy")}}])&&y(n.prototype,t),h&&y(n,h),k}(r.a.Behavior)},1063:function(e,n,t){e.exports={draggingVideo:"_3cCHx"}},1064:function(e,n,t){"use strict";t.d(n,"a",(function(){return d}));var o=t(2),i=t(1050),r=t.n(i),l=t(13),a=t(1057);function s(e){return(s="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}function u(e,n){for(var t=0;t<n.length;t++){var o=n[t];o.enumerable=o.enumerable||!1,o.configurable=!0,"value"in o&&(o.writable=!0),Object.defineProperty(e,o.key,o)}}function c(e,n){return(c=Object.setPrototypeOf||function(e,n){return e.__proto__=n,e})(e,n)}function p(e){var n=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(e){return!1}}();return function(){var t,o=h(e);if(n){var i=h(this).constructor;t=Reflect.construct(o,arguments,i)}else t=o.apply(this,arguments);return f(this,t)}}function f(e,n){return!n||"object"!==s(n)&&"function"!=typeof n?function(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}(e):n}function h(e){return(h=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)})(e)}var d=function(e){!function(e,n){if("function"!=typeof n&&null!==n)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(n&&n.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),n&&c(e,n)}(s,e);var n,t,o,i=p(s);function s(e){return function(e,n){if(!(e instanceof n))throw new TypeError("Cannot call a class as a function")}(this,s),i.call(this,e)}return n=s,(t=[{key:"initialize",value:function(){if(this.getViewModel(),this.bindListeners(),this.options.checked){var e=this.getItemId();this.model.set(e,!0,{silent:!0})}}},{key:"name",get:function(){return"CheckboxComponent"}},{key:"className",get:function(){return this.options.className}},{key:"template",get:function(){return r.a}},{key:"getViewModel",value:function(){this.model=l.a.GetViewModel(this.options.key,this.options.type)}},{key:"bindListeners",value:function(){this.options.disabled||this.listenTo(this.model,"change:all change:".concat(this.getItemId()),this.render)}},{key:"events",value:function(){return{"click .custom-checkbox":"onClickCheckbox","change .custom-control-input":"onChangeCheckbox"}}},{key:"getItemId",value:function(){return this.options.itemId.toString()}},{key:"onClickCheckbox",value:function(e){e.stopPropagation()}},{key:"onChangeCheckbox",value:function(){if(!this.options.disabled){var e=this.getItemId();this.model.has(e)||this.model.get("all")?!1===this.model.get(e)?this.model.set(e,!0):(this.model.set(e,!1),this.model.set(a.a,!1)):this.model.set(e,!0)}}},{key:"viewOptions",value:function(){var e=this.getItemId();return{id:e,checked:this.model.has(e)?this.model.get(e):this.model.get("all"),disabled:this.options.disabled,checkboxClassName:this.options.checkboxClassName}}}])&&u(n.prototype,t),o&&u(n,o),s}(o.a.Component)},1068:function(e,n,t){"use strict";t.d(n,"a",(function(){return g}));var o=t(1),i=t(2),r=t(4),l=t(42),a=t(1069),s=t.n(a);function u(e){return(u="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}function c(e,n){for(var t=0;t<n.length;t++){var o=n[t];o.enumerable=o.enumerable||!1,o.configurable=!0,"value"in o&&(o.writable=!0),Object.defineProperty(e,o.key,o)}}function p(e,n){return(p=Object.setPrototypeOf||function(e,n){return e.__proto__=n,e})(e,n)}function f(e){var n=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(e){return!1}}();return function(){var t,o=d(e);if(n){var i=d(this).constructor;t=Reflect.construct(o,arguments,i)}else t=o.apply(this,arguments);return h(this,t)}}function h(e,n){return!n||"object"!==u(n)&&"function"!=typeof n?function(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}(e):n}function d(e){return(d=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)})(e)}var g=function(e){!function(e,n){if("function"!=typeof n&&null!==n)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(n&&n.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),n&&p(e,n)}(u,e);var n,t,i,a=f(u);function u(e){return function(e,n){if(!(e instanceof n))throw new TypeError("Cannot call a class as a function")}(this,u),a.call(this,e)}return n=u,(t=[{key:"defaults",get:function(){return{cursors:{},cursorParamName:"cursor"}}},{key:"name",get:function(){return"PaginationComponent"}},{key:"template",get:function(){return s.a}},{key:"lang",get:function(){return"shared._pagination"}},{key:"appLinks",get:function(){var e={};if(!this.options.cursors)return{};if(this.options.cursors.previous){var n=this.options.cursors.previous,t=this.buildCursor(this.options.cursors.previous);+n<=1&&!0!==this.options.allowFirstPageCursor&&delete t.params.cursor,e[".previous-applink"]=t}return this.options.cursors.next&&(e[".next-applink"]=this.buildCursor(this.options.cursors.next)),e}},{key:"events",value:function(){return{"click .previous-applink":"onClickPrevious","click .next-applink":"onClickNext"}}},{key:"buildCursor",value:function(e){return{application:this.options.appLink.application,action:this.options.appLink.action,args:this.options.appLink.args,params:o.extend({},this.options.appLink.params,(n={},t=this.options.cursorParamName,i=e,t in n?Object.defineProperty(n,t,{value:i,enumerable:!0,configurable:!0,writable:!0}):n[t]=i,n))};var n,t,i}},{key:"onClickPrevious",value:function(){this.logAction("previous")}},{key:"onClickNext",value:function(){this.logAction("next")}},{key:"logAction",value:function(e){var n=l.a.mergeOptions(this.options.analyticsOptions,{location:r.LocationContext.Pagination,entity:r.EntityType.Pagination,actionType:r.UserAction.Navigate}),t={id:this.options.collectionId,page:e};l.a.logUserAction(t,n)}},{key:"viewOptions",value:function(){return{cursors:this.options.cursors}}},{key:"onBeforeRender",value:function(){return!!this.options.cursors}}])&&c(n.prototype,t),i&&c(n,i),u}(i.a.Component)},1069:function(e,n,t){var o=t(10);e.exports=(o.default||o).template({1:function(e,n,t,o,i){return"disabled"},compiler:[8,">= 4.3.0"],main:function(e,n,t,o,i){e.propertyIsEnumerable;var r,l=null!=n?n:e.nullContext||{},a=e.hooks.helperMissing,s=e.escapeExpression;return'<div class="p-3">\r\n <a class="btn previous-applink btn-secondary '+(null!=(r=t.unless.call(l,null!=(r=null!=(r=null!=n?n.options:n)?r.cursors:r)?r.previous:r,{name:"unless",hash:{},fn:e.program(1,i,0),inverse:e.noop,data:i}))?r:"")+'">'+s((t.lang||n&&n.lang||a).call(l,"previous",{name:"lang",hash:{},data:i}))+'</a>\r\n <a class="btn next-applink btn-secondary '+(null!=(r=t.unless.call(l,null!=(r=null!=(r=null!=n?n.options:n)?r.cursors:r)?r.next:r,{name:"unless",hash:{},fn:e.program(1,i,0),inverse:e.noop,data:i}))?r:"")+'">'+s((t.lang||n&&n.lang||a).call(l,"next",{name:"lang",hash:{},data:i}))+"</a>\r\n</div>"},useData:!0})},1070:function(e,n,t){var o=t(10);e.exports=(o.default||o).template({1:function(e,n,t,o,i){e.propertyIsEnumerable;var r,l=e.escapeExpression;return' <span class="badge p-1 '+l(e.lambda(null!=(r=null!=(r=null!=n?n.options:n)?r.styles:r)?r.interactive:r,n))+'">'+l((t.lang||n&&n.lang||e.hooks.helperMissing).call(null!=n?n:e.nullContext||{},"interactive",{name:"lang",hash:{},data:i}))+"</span>\r\n"},3:function(e,n,t,o,i){e.propertyIsEnumerable;var r,l=e.lambda,a=e.escapeExpression;return' <span class="badge p-1 tool-tip '+a(l(null!=(r=null!=(r=null!=n?n.options:n)?r.styles:r)?r.rating:r,n))+" "+a(l(null!=(r=null!=n?n.options:n)?r.ratingColorClass:r,n))+'" title="'+a(l(null!=(r=null!=n?n.rating:n)?r.name:r,n))+'">'+a(l(null!=(r=null!=n?n.rating:n)?r.code:r,n))+"</span>\r\n"},5:function(e,n,t,o,i){e.propertyIsEnumerable;var r,l=e.lambda;return' <span class="d-inline-block tool-tip '+e.escapeExpression(l(null!=(r=null!=(r=null!=n?n.options:n)?r.styles:r)?r.svgContainer:r,n))+'" title="Subtitles">'+(null!=(r=l(null!=(r=null!=n?n.options:n)?r.closeCaptionSvg:r,n))?r:"")+"</span>\r\n"},7:function(e,n,t,o,i){e.propertyIsEnumerable;var r,l=e.lambda;return' <span class="d-inline-block tool-tip '+e.escapeExpression(l(null!=(r=null!=(r=null!=n?n.options:n)?r.styles:r)?r.svgContainer:r,n))+'" title="Resources">'+(null!=(r=l(null!=(r=null!=n?n.options:n)?r.resourcesSvg:r,n))?r:"")+"</span>\r\n"},9:function(e,n,t,o,i){e.propertyIsEnumerable;var r,l=e.lambda,a=e.escapeExpression;return' <span class="badge p-1 '+a(l(null!=(r=null!=n?n.options:n)?r.awaitingReviewBadgeClass:r,n))+'">'+a(l(null!=(r=null!=n?n.options:n)?r.awaitingReviewMsg:r,n))+"</span>\r\n"},11:function(e,n,t,o,i){e.propertyIsEnumerable;var r,l=e.lambda,a=e.escapeExpression;return' <span class="badge p-1 '+a(l(null!=(r=null!=(r=null!=n?n.options:n)?r.styles:r)?r.restrictionBadgeClass:r,n))+'">'+a(l(null!=(r=null!=n?n.options:n)?r.restrictionMessage:r,n))+"</span>\r\n"},compiler:[8,">= 4.3.0"],main:function(e,n,t,o,i){e.propertyIsEnumerable;var r,l=null!=n?n:e.nullContext||{};return'<div class="mt-1 '+e.escapeExpression(e.lambda(null!=(r=null!=(r=null!=n?n.options:n)?r.styles:r)?r.badgesWrapper:r,n))+'">\r\n'+(null!=(r=t.if.call(l,null!=(r=null!=n?n.options:n)?r.interactive:r,{name:"if",hash:{},fn:e.program(1,i,0),inverse:e.noop,data:i}))?r:"")+"\r\n"+(null!=(r=t.if.call(l,null!=(r=null!=n?n.rating:n)?r.code:r,{name:"if",hash:{},fn:e.program(3,i,0),inverse:e.noop,data:i}))?r:"")+"\r\n"+(null!=(r=t.if.call(l,null!=(r=null!=n?n.options:n)?r.subtitles:r,{name:"if",hash:{},fn:e.program(5,i,0),inverse:e.noop,data:i}))?r:"")+"\r\n"+(null!=(r=t.if.call(l,null!=(r=null!=n?n.options:n)?r.resources:r,{name:"if",hash:{},fn:e.program(7,i,0),inverse:e.noop,data:i}))?r:"")+"\r\n"+(null!=(r=t.if.call(l,null!=(r=null!=n?n.options:n)?r.awaitingReviewMsg:r,{name:"if",hash:{},fn:e.program(9,i,0),inverse:e.noop,data:i}))?r:"")+"\r\n"+(null!=(r=t.if.call(l,null!=(r=null!=n?n.options:n)?r.restrictionMessage:r,{name:"if",hash:{},fn:e.program(11,i,0),inverse:e.noop,data:i}))?r:"")+"</div>"},useData:!0})},1071:function(e,n,t){e.exports={interactive:"_37GpR",rating:"_2lAYT",svgContainer:"_19ncQ",badgesWrapper:"_26lCi",restrictionBadgeClass:"UdQeS",reviewBadge:"ExFLF",urgentReviewBadge:"_3dcfL"}},1072:function(e,n,t){var o=t(10);e.exports=(o.default||o).template({1:function(e,n,t,o,i){e.propertyIsEnumerable;var r,l=e.lambda,a=e.escapeExpression;return' <span class="d-inline-block ml-1 tool-tip '+a(l(null!=(r=null!=(r=null!=n?n.options:n)?r.styles:r)?r.svgContainer:r,n))+'" title="'+a(l(null!=(r=null!=n?n.options:n)?r.restrictionMessage:r,n))+'">'+(null!=(r=l(null!=(r=null!=n?n.options:n)?r.lockSvg:r,n))?r:"")+"</span>\r\n"},compiler:[8,">= 4.3.0"],main:function(e,n,t,o,i){e.propertyIsEnumerable;var r,l,a=null!=n?n:e.nullContext||{};return'<div class="series-region"></div>\r\n<a class="cursor-pointer applink-show-video h6 text-dark">'+e.escapeExpression("function"==typeof(l=null!=(l=t.name||(null!=n?n.name:n))?l:e.hooks.helperMissing)?l.call(a,{name:"name",hash:{},data:i}):l)+"</a>\r\n"+(null!=(r=t.if.call(a,null!=(r=null!=n?n.options:n)?r.hasAdminRestriction:r,{name:"if",hash:{},fn:e.program(1,i,0),inverse:e.noop,data:i}))?r:"")+'<div class="sources-region"></div>\r\n<div class="badges-region"></div>'},useData:!0})},1073:function(e,n,t){var o=t(10);e.exports=(o.default||o).template({1:function(e,n,t,o,i){e.propertyIsEnumerable;var r,l,a=e.lambda,s=e.escapeExpression;return'<a class="cursor-pointer h6 video-title text-dark" href="'+s(a(null!=(r=null!=n?n.options:n)?r.videoUrl:r,n))+'" target="_blank">'+s("function"==typeof(l=null!=(l=t.name||(null!=n?n.name:n))?l:e.hooks.helperMissing)?l.call(null!=n?n:e.nullContext||{},{name:"name",hash:{},data:i}):l)+'</a>\r\n<a class="svg-container d-inline-block align-bottom text-muted no-decoration" href="'+s(a(null!=(r=null!=n?n.options:n)?r.videoUrl:r,n))+'" target="_blank">'+(null!=(r=a(null!=(r=null!=n?n.options:n)?r.openExternalSvg:r,n))?r:"")+"</a>\r\n"},3:function(e,n,t,o,i){var r;e.propertyIsEnumerable;return'<a class="cursor-pointer applink-show-video h6">'+e.escapeExpression("function"==typeof(r=null!=(r=t.name||(null!=n?n.name:n))?r:e.hooks.helperMissing)?r.call(null!=n?n:e.nullContext||{},{name:"name",hash:{},data:i}):r)+"</a>\r\n"},compiler:[8,">= 4.3.0"],main:function(e,n,t,o,i){e.propertyIsEnumerable;var r,l=e.lambda,a=e.escapeExpression;return'<div class="series-region"></div>\r\n'+(null!=(r=t.if.call(null!=n?n:e.nullContext||{},null!=(r=null!=n?n.options:n)?r.linkToOnline:r,{name:"if",hash:{},fn:e.program(1,i,0),inverse:e.program(3,i,0),data:i}))?r:"")+'<span class="d-inline-block ml-1 tool-tip '+a(l(null!=(r=null!=(r=null!=n?n.options:n)?r.styles:r)?r.lock:r,n))+" "+a(l(null!=(r=null!=(r=null!=n?n.options:n)?r.styles:r)?r.svgContainer:r,n))+'" title="'+a(l(null!=(r=null!=n?n.options:n)?r.restrictionMessage:r,n))+'">'+(null!=(r=l(null!=(r=null!=n?n.options:n)?r.lockSvg:r,n))?r:"")+'</span>\r\n<div class="sources-region"></div>\r\n<div class="badges-region"></div>'},useData:!0})},1074:function(e,n,t){var o=t(10);e.exports=(o.default||o).template({1:function(e,n,t,o,i){e.propertyIsEnumerable;var r,l=e.lambda;return' <span class="d-inline-block align-middle ml-1 '+e.escapeExpression(l(null!=(r=null!=(r=null!=n?n.options:n)?r.styles:r)?r.lockSvgContainer:r,n))+'">'+(null!=(r=l(null!=(r=null!=n?n.options:n)?r.lockSvg:r,n))?r:"")+"</span>\r\n"},3:function(e,n,t,o,i){return"text-danger"},5:function(e,n,t,o,i){var r;e.propertyIsEnumerable;return" "+e.escapeExpression(e.lambda(null!=(r=null!=n?n.options:n)?r.status:r,n))+"\r\n"},7:function(e,n,t,o,i){e.propertyIsEnumerable;return" "+e.escapeExpression((t.lang||n&&n.lang||e.hooks.helperMissing).call(null!=n?n:e.nullContext||{},"waiting",{name:"lang",hash:{},data:i}))+"\r\n"},9:function(e,n,t,o,i){e.propertyIsEnumerable;return" <br><i>"+e.escapeExpression((t.lang||n&&n.lang||e.hooks.helperMissing).call(null!=n?n:e.nullContext||{},"anotherAdmin",{name:"lang",hash:{},data:i}))+"</i>\r\n"},compiler:[8,">= 4.3.0"],main:function(e,n,t,o,i){e.propertyIsEnumerable;var r,l,a=null!=n?n:e.nullContext||{};return'<a class="applink-show-video h6 text-dark">'+e.escapeExpression("function"==typeof(l=null!=(l=t.name||(null!=n?n.name:n))?l:e.hooks.helperMissing)?l.call(a,{name:"name",hash:{},data:i}):l)+"</a>\r\n"+(null!=(r=t.if.call(a,null!=(r=null!=n?n.options:n)?r.hasAdminRestriction:r,{name:"if",hash:{},fn:e.program(1,i,0),inverse:e.noop,data:i}))?r:"")+'<div class="processing '+(null!=(r=t.if.call(a,null!=(r=null!=n?n.options:n)?r.hasError:r,{name:"if",hash:{},fn:e.program(3,i,0),inverse:e.noop,data:i}))?r:"")+'">\r\n'+(null!=(r=t.if.call(a,null!=(r=null!=n?n.options:n)?r.hasPendingItem:r,{name:"if",hash:{},fn:e.program(5,i,0),inverse:e.program(7,i,0),data:i}))?r:"")+(null!=(r=t.unless.call(a,null!=(r=null!=n?n.options:n)?r.hasPendingItem:r,{name:"unless",hash:{},fn:e.program(9,i,0),inverse:e.noop,data:i}))?r:"")+"</div>"},useData:!0})},1075:function(e,n,t){var o=t(10);e.exports=(o.default||o).template({compiler:[8,">= 4.3.0"],main:function(e,n,t,o,i){e.propertyIsEnumerable;var r,l,a=e.lambda,s=e.escapeExpression;return'<div class="series-region"></div>\r\n<a class="cursor-pointer h6 video-title text-dark" href="'+s(a(null!=(r=null!=n?n.options:n)?r.videoUrl:r,n))+'" target="_blank">'+s("function"==typeof(l=null!=(l=t.name||(null!=n?n.name:n))?l:e.hooks.helperMissing)?l.call(null!=n?n:e.nullContext||{},{name:"name",hash:{},data:i}):l)+'</a>\r\n<a class="svg-container d-inline-block align-bottom text-muted no-decoration" href="'+s(a(null!=(r=null!=n?n.options:n)?r.videoUrl:r,n))+'" target="_blank">'+(null!=(r=a(null!=(r=null!=n?n.options:n)?r.openExternalSvg:r,n))?r:"")+'</a>\r\n<div class="badges-region"></div>'},useData:!0})},1076:function(e,n,t){var o=t(10);e.exports=(o.default||o).template({1:function(e,n,t,o,i){e.propertyIsEnumerable;var r,l=e.lambda,a=e.escapeExpression;return' <span class="d-inline-block svg-container align-bottom tool-tip '+a(l(null!=(r=null!=(r=null!=n?n.options:n)?r.styles:r)?r.lock:r,n))+'" title="'+a(l(null!=(r=null!=n?n.options:n)?r.restrictionMessage:r,n))+'">'+(null!=(r=l(null!=(r=null!=n?n.options:n)?r.lockSvg:r,n))?r:"")+"</span>\r\n"},compiler:[8,">= 4.3.0"],main:function(e,n,t,o,i){e.propertyIsEnumerable;var r,l,a=e.lambda,s=e.escapeExpression,u=null!=n?n:e.nullContext||{};return'<div class="series-region"></div>\r\n<a class="cursor-pointer h6 video-title text-dark" href="'+s(a(null!=(r=null!=n?n.options:n)?r.videoUrl:r,n))+'" target="_blank">'+s("function"==typeof(l=null!=(l=t.name||(null!=n?n.name:n))?l:e.hooks.helperMissing)?l.call(u,{name:"name",hash:{},data:i}):l)+'</a>\r\n<a class="svg-container d-inline-block align-bottom text-muted no-decoration" href="'+s(a(null!=(r=null!=n?n.options:n)?r.videoUrl:r,n))+'" target="_blank">'+(null!=(r=a(null!=(r=null!=n?n.options:n)?r.openExternalSvg:r,n))?r:"")+"</a>\r\n"+(null!=(r=t.if.call(u,null!=(r=null!=n?n.options:n)?r.hasAdminRestriction:r,{name:"if",hash:{},fn:e.program(1,i,0),inverse:e.noop,data:i}))?r:"")+'<div class="badges-region"></div>'},useData:!0})},1077:function(e,n,t){e.exports={series:"P3914"}},1078:function(e,n,t){var o=t(10);e.exports=(o.default||o).template({1:function(e,n,t,o,i){e.propertyIsEnumerable;var r,l=e.lambda,a=e.escapeExpression;return' <span class="d-inline-block ml-1 tool-tip '+a(l(null!=(r=null!=(r=null!=n?n.options:n)?r.styles:r)?r.svgContainer:r,n))+'" title="'+a(l(null!=(r=null!=n?n.options:n)?r.restrictionMessage:r,n))+'">'+(null!=(r=l(null!=(r=null!=n?n.options:n)?r.lockSvg:r,n))?r:"")+"</span>\r\n"},3:function(e,n,t,o,i){var r;return' <span class="d-block pt-1">'+(null!=(r=e.lambda(n,n))?r:"")+"</span>\r\n"},compiler:[8,">= 4.3.0"],main:function(e,n,t,o,i){e.propertyIsEnumerable;var r,l=null!=n?n:e.nullContext||{};return'<div class="series-region"></div>\r\n<a class="cursor-pointer applink-show-video h6 text-dark">'+(null!=(r=e.lambda(null!=(r=null!=n?n.options:n)?r.name:r,n))?r:"")+"</a>\r\n"+(null!=(r=t.if.call(l,null!=(r=null!=n?n.options:n)?r.hasAdminRestriction:r,{name:"if",hash:{},fn:e.program(1,i,0),inverse:e.noop,data:i}))?r:"")+'<div class="sources-region"></div>\r\n<div class="badges-region"></div>\r\n'+(null!=(r=t.each.call(l,null!=(r=null!=n?n.options:n)?r.keyPhrases:r,{name:"each",hash:{},fn:e.program(3,i,0),inverse:e.noop,data:i}))?r:"")},useData:!0})},1079:function(e,n,t){var o=t(10);e.exports=(o.default||o).template({1:function(e,n,t,o,i){e.propertyIsEnumerable;return e.escapeExpression((t.lang||n&&n.lang||e.hooks.helperMissing).call(null!=n?n:e.nullContext||{},"hide",{name:"lang",hash:{},data:i}))},3:function(e,n,t,o,i){e.propertyIsEnumerable;return e.escapeExpression((t.lang||n&&n.lang||e.hooks.helperMissing).call(null!=n?n:e.nullContext||{},"show",{name:"lang",hash:{},data:i}))},compiler:[8,">= 4.3.0"],main:function(e,n,t,o,i){e.propertyIsEnumerable;var r,l=e.lambda,a=e.escapeExpression,s=null!=n?n:e.nullContext||{};return'<div class="video-actions-region row no-gutters video-item-actions '+a(l(null!=(r=null!=(r=null!=n?n.options:n)?r.styles:r)?r.actions:r,n))+'"></div>\r\n<div class="row no-gutters cursor-pointer video-item-show-preview '+a(l(null!=(r=null!=(r=null!=n?n.options:n)?r.styles:r)?r.showPreview:r,n))+'">\r\n <span class="svg-container">'+(null!=(r=l(null!=(r=null!=n?n.options:n)?r.previewSvg:r,n))?r:"")+"</span>\r\n "+(null!=(r=t.if.call(s,null!=(r=null!=n?n.options:n)?r.previewDisplayed:r,{name:"if",hash:{},fn:e.program(1,i,0),inverse:e.program(3,i,0),data:i}))?r:"")+" "+a((t.lang||n&&n.lang||e.hooks.helperMissing).call(s,"preview",{name:"lang",hash:{},data:i}))+"\r\n</div>"},useData:!0})},1080:function(e,n,t){var o=t(10);e.exports=(o.default||o).template({1:function(e,n,t,o,i){e.propertyIsEnumerable;return e.escapeExpression((t.lang||n&&n.lang||e.hooks.helperMissing).call(null!=n?n:e.nullContext||{},"hide",{name:"lang",hash:{},data:i}))},3:function(e,n,t,o,i){e.propertyIsEnumerable;return e.escapeExpression((t.lang||n&&n.lang||e.hooks.helperMissing).call(null!=n?n:e.nullContext||{},"show",{name:"lang",hash:{},data:i}))},compiler:[8,">= 4.3.0"],main:function(e,n,t,o,i){e.propertyIsEnumerable;var r,l=null!=n?n:e.nullContext||{},a=e.hooks.helperMissing,s=e.escapeExpression,u=e.lambda;return'<button class="approve d-flex btn btn-sm btn-outline-success" type="button">'+s((t.lang||n&&n.lang||a).call(l,"approve",{name:"lang",hash:{},data:i}))+'</button>\r\n<a class="applink-manage-video-access cursor-pointer hover-text-underline py-1">'+(null!=(r=(t.lang||n&&n.lang||a).call(l,"manageAccess",{name:"lang",hash:{},data:i}))?r:"")+'</a> \r\n<div class="row no-gutters cursor-pointer video-item-show-preview '+s(u(null!=(r=null!=(r=null!=n?n.options:n)?r.styles:r)?r.showPreview:r,n))+'"> \r\n <span class="svg-container">'+(null!=(r=u(null!=(r=null!=n?n.options:n)?r.previewSvg:r,n))?r:"")+"</span> \r\n "+(null!=(r=t.if.call(l,null!=(r=null!=n?n.options:n)?r.previewDisplayed:r,{name:"if",hash:{},fn:e.program(1,i,0),inverse:e.program(3,i,0),data:i}))?r:"")+" "+s((t.lang||n&&n.lang||a).call(l,"preview",{name:"lang",hash:{},data:i}))+"\r\n</div> "},useData:!0})},1081:function(e,n,t){var o=t(10);e.exports=(o.default||o).template({1:function(e,n,t,o,i){e.propertyIsEnumerable;return e.escapeExpression((t.lang||n&&n.lang||e.hooks.helperMissing).call(null!=n?n:e.nullContext||{},"hide",{name:"lang",hash:{},data:i}))},3:function(e,n,t,o,i){e.propertyIsEnumerable;return e.escapeExpression((t.lang||n&&n.lang||e.hooks.helperMissing).call(null!=n?n:e.nullContext||{},"show",{name:"lang",hash:{},data:i}))},compiler:[8,">= 4.3.0"],main:function(e,n,t,o,i){e.propertyIsEnumerable;var r,l=null!=n?n:e.nullContext||{},a=e.hooks.helperMissing,s=e.escapeExpression,u=e.lambda;return'<button class="applink-manage-video-access d-flex btn btn-sm btn-secondary" type="button">'+s((t.lang||n&&n.lang||a).call(l,"manageAccess",{name:"lang",hash:{},data:i}))+'</button>\r\n<div class="row no-gutters cursor-pointer video-item-show-preview '+s(u(null!=(r=null!=(r=null!=n?n.options:n)?r.styles:r)?r.showPreview:r,n))+'">\r\n <span class="svg-container">'+(null!=(r=u(null!=(r=null!=n?n.options:n)?r.previewSvg:r,n))?r:"")+"</span>\r\n "+(null!=(r=t.if.call(l,null!=(r=null!=n?n.options:n)?r.previewDisplayed:r,{name:"if",hash:{},fn:e.program(1,i,0),inverse:e.program(3,i,0),data:i}))?r:"")+" "+s((t.lang||n&&n.lang||a).call(l,"preview",{name:"lang",hash:{},data:i}))+"\r\n</div>"},useData:!0})},1083:function(e,n,t){var o=t(10);e.exports=(o.default||o).template({1:function(e,n,t,o,i){var r;e.propertyIsEnumerable;return' <a class="info-link show-more-tags">'+e.escapeExpression(e.lambda(null!=(r=null!=n?n.options:n)?r.extraTagsText:r,n))+"</a>\r\n"},3:function(e,n,t,o,i){e.propertyIsEnumerable;return' <a class="info-link applink-video-details">'+e.escapeExpression((t.lang||n&&n.lang||e.hooks.helperMissing).call(null!=n?n:e.nullContext||{},"viewAllTags",{name:"lang",hash:{},data:i}))+"</a>\r\n"},compiler:[8,">= 4.3.0"],main:function(e,n,t,o,i){e.propertyIsEnumerable;var r,l=null!=n?n:e.nullContext||{};return'<div class="tags-region"></div>\r\n\r\n'+(null!=(r=t.if.call(l,null!=(r=null!=n?n.options:n)?r.expandable:r,{name:"if",hash:{},fn:e.program(1,i,0),inverse:e.noop,data:i}))?r:"")+(null!=(r=t.if.call(l,null!=(r=null!=n?n.options:n)?r.moreTags:r,{name:"if",hash:{},fn:e.program(3,i,0),inverse:e.noop,data:i}))?r:"")},useData:!0})},1084:function(e,n,t){var o=t(10);e.exports=(o.default||o).template({1:function(e,n,t,o,i){e.propertyIsEnumerable;return" <p>"+e.escapeExpression((t.lang||n&&n.lang||e.hooks.helperMissing).call(null!=n?n:e.nullContext||{},"noDescription",{name:"lang",hash:{},data:i}))+"</p>\r\n"},3:function(e,n,t,o,i){return' <div class="description-region"></div>\r\n'},5:function(e,n,t,o,i){e.propertyIsEnumerable;var r,l=e.lambda,a=e.escapeExpression;return' <div class="col-6 pb-1 '+a(l(null!=(r=null!=(r=null!=n?n.options:n)?r.styles:r)?r.columnNames:r,n))+'">'+a((t.lang||n&&n.lang||e.hooks.helperMissing).call(null!=n?n:e.nullContext||{},"rating",{name:"lang",hash:{},data:i}))+'</div>\r\n <div class="col-6 mb-0 pb-1">\r\n <span class="badge p-1 text-white tool-tip '+a(l(null!=(r=null!=n?n.options:n)?r.ratingClass:r,n))+'" title="'+a(l(null!=(r=null!=n?n.rating:n)?r.name:r,n))+'">'+a(l(null!=(r=null!=n?n.rating:n)?r.code:r,n))+"</span>\r\n </div>\r\n"},7:function(e,n,t,o,i){e.propertyIsEnumerable;var r,l,a=e.escapeExpression,s=null!=n?n:e.nullContext||{},u=e.hooks.helperMissing;return' <div class="col-6 py-1 '+a(e.lambda(null!=(r=null!=(r=null!=n?n.options:n)?r.styles:r)?r.columnNames:r,n))+'">'+a((t.lang||n&&n.lang||u).call(s,"productionYear",{name:"lang",hash:{},data:i}))+'</div>\r\n <p class="col-6 mb-0 py-1">'+a("function"==typeof(l=null!=(l=t.productionYear||(null!=n?n.productionYear:n))?l:u)?l.call(s,{name:"productionYear",hash:{},data:i}):l)+"</p>\r\n"},9:function(e,n,t,o,i){e.propertyIsEnumerable;var r,l=e.lambda,a=e.escapeExpression,s=null!=n?n:e.nullContext||{};return' <div class="col-6 py-1 '+a(l(null!=(r=null!=(r=null!=n?n.options:n)?r.styles:r)?r.columnNames:r,n))+'">'+a((t.lang||n&&n.lang||e.hooks.helperMissing).call(s,"chapters",{name:"lang",hash:{},data:i}))+'</div>\r\n <a\r\n class="col-6 info-link mb-0 py-1 '+(null!=(r=t.unless.call(s,null!=(r=null!=n?n.options:n)?r.externalLink:r,{name:"unless",hash:{},fn:e.program(10,i,0),inverse:e.noop,data:i}))?r:"")+'"\r\n'+(null!=(r=t.if.call(s,null!=(r=null!=n?n.options:n)?r.externalLink:r,{name:"if",hash:{},fn:e.program(12,i,0),inverse:e.noop,data:i}))?r:"")+" >\r\n "+a(l(null!=(r=null!=n?n.options:n)?r.chapters:r,n))+"\r\n "+(null!=(r=t.if.call(s,null!=(r=null!=n?n.options:n)?r.externalLink:r,{name:"if",hash:{},fn:e.program(14,i,0),inverse:e.noop,data:i}))?r:"")+"\r\n </a>\r\n"},10:function(e,n,t,o,i){return"applink-video-details"},12:function(e,n,t,o,i){var r;e.propertyIsEnumerable;return' href="'+e.escapeExpression(e.lambda(null!=(r=null!=n?n.options:n)?r.externalLink:r,n))+'"\r\n target="_blank"\r\n'},14:function(e,n,t,o,i){e.propertyIsEnumerable;var r,l=e.lambda;return'<div class="d-inline-block '+e.escapeExpression(l(null!=(r=null!=(r=null!=n?n.options:n)?r.styles:r)?r.smallSvgContainer:r,n))+'">'+(null!=(r=l(null!=(r=null!=n?n.options:n)?r.openExternalSvg:r,n))?r:"")+"</div>"},16:function(e,n,t,o,i){e.propertyIsEnumerable;var r,l=e.lambda,a=e.escapeExpression;return' <div class="col-6 py-1 '+a(l(null!=(r=null!=(r=null!=n?n.options:n)?r.styles:r)?r.columnNames:r,n))+'">'+a((t.lang||n&&n.lang||e.hooks.helperMissing).call(null!=n?n:e.nullContext||{},"interactives",{name:"lang",hash:{},data:i}))+'</div>\r\n <p class="col-6 mb-0 py-1">'+a(l(null!=(r=null!=n?n.options:n)?r.interactives:r,n))+"</p>\r\n"},18:function(e,n,t,o,i){e.propertyIsEnumerable;var r,l=e.lambda,a=e.escapeExpression;return' <div class="col-6 py-1 '+a(l(null!=(r=null!=(r=null!=n?n.options:n)?r.styles:r)?r.columnNames:r,n))+'">'+a((t.lang||n&&n.lang||e.hooks.helperMissing).call(null!=n?n:e.nullContext||{},"subtitles",{name:"lang",hash:{},data:i}))+'</div>\r\n <p class="col-6 mb-0 py-1">'+a(l(null!=(r=null!=n?n.options:n)?r.subtitles:r,n))+"</p>\r\n"},20:function(e,n,t,o,i){e.propertyIsEnumerable;var r,l=e.lambda,a=e.escapeExpression,s=null!=n?n:e.nullContext||{};return' <div class="col-6 py-1 '+a(l(null!=(r=null!=(r=null!=n?n.options:n)?r.styles:r)?r.columnNames:r,n))+'">'+a((t.lang||n&&n.lang||e.hooks.helperMissing).call(s,"resources",{name:"lang",hash:{},data:i}))+'</div>\r\n <a\r\n class="col-6 info-link mb-0 py-1 '+(null!=(r=t.unless.call(s,null!=(r=null!=n?n.options:n)?r.externalLink:r,{name:"unless",hash:{},fn:e.program(10,i,0),inverse:e.noop,data:i}))?r:"")+'"\r\n'+(null!=(r=t.if.call(s,null!=(r=null!=n?n.options:n)?r.externalLink:r,{name:"if",hash:{},fn:e.program(12,i,0),inverse:e.noop,data:i}))?r:"")+" >\r\n "+a(l(null!=(r=null!=n?n.options:n)?r.resources:r,n))+"\r\n "+(null!=(r=t.if.call(s,null!=(r=null!=n?n.options:n)?r.externalLink:r,{name:"if",hash:{},fn:e.program(14,i,0),inverse:e.noop,data:i}))?r:"")+"\r\n </a>\r\n"},22:function(e,n,t,o,i){e.propertyIsEnumerable;var r,l=e.lambda,a=e.escapeExpression,s=null!=n?n:e.nullContext||{};return' <div class="col-6 py-1 '+a(l(null!=(r=null!=(r=null!=n?n.options:n)?r.styles:r)?r.columnNames:r,n))+'">'+a((t.lang||n&&n.lang||e.hooks.helperMissing).call(s,"links",{name:"lang",hash:{},data:i}))+'</div>\r\n <a\r\n class="col-6 info-link mb-0 py-1 '+(null!=(r=t.unless.call(s,null!=(r=null!=n?n.options:n)?r.externalLink:r,{name:"unless",hash:{},fn:e.program(10,i,0),inverse:e.noop,data:i}))?r:"")+'"\r\n'+(null!=(r=t.if.call(s,null!=(r=null!=n?n.options:n)?r.externalLink:r,{name:"if",hash:{},fn:e.program(12,i,0),inverse:e.noop,data:i}))?r:"")+" >\r\n "+a(l(null!=(r=null!=n?n.options:n)?r.links:r,n))+"\r\n "+(null!=(r=t.if.call(s,null!=(r=null!=n?n.options:n)?r.externalLink:r,{name:"if",hash:{},fn:e.program(14,i,0),inverse:e.noop,data:i}))?r:"")+"\r\n </a>\r\n"},24:function(e,n,t,o,i){e.propertyIsEnumerable;var r,l=e.escapeExpression;return' <div class="py-1 '+l(e.lambda(null!=(r=null!=(r=null!=n?n.options:n)?r.styles:r)?r.columnNames:r,n))+'">'+l((t.lang||n&&n.lang||e.hooks.helperMissing).call(null!=n?n:e.nullContext||{},"tags",{name:"lang",hash:{},data:i}))+'</div>\r\n <div class="tags-region"></div>\r\n <div class="col-12">&nbsp;</div>\r\n'},26:function(e,n,t,o,i){e.propertyIsEnumerable;var r,l=e.lambda,a=e.escapeExpression;return' <a href="'+a(l(null!=(r=null!=n?n.options:n)?r.externalLink:r,n))+'" target="_blank" class="info-link d-inline-block pt-3 '+a(l(null!=(r=null!=(r=null!=n?n.options:n)?r.styles:r)?r.columnNames:r,n))+'">\r\n '+a((t.lang||n&&n.lang||e.hooks.helperMissing).call(null!=n?n:e.nullContext||{},"goToVideo",{name:"lang",hash:{},data:i}))+'\r\n <div class="d-inline-block svg-container">'+(null!=(r=l(null!=(r=null!=n?n.options:n)?r.openExternalSvg:r,n))?r:"")+"</div>\r\n </a>\r\n"},28:function(e,n,t,o,i){e.propertyIsEnumerable;var r,l=e.escapeExpression;return' <a class="info-link applink-video-details d-inline-block pt-3 '+l(e.lambda(null!=(r=null!=(r=null!=n?n.options:n)?r.styles:r)?r.columnNames:r,n))+'">'+l((t.lang||n&&n.lang||e.hooks.helperMissing).call(null!=n?n:e.nullContext||{},"viewFullDetails",{name:"lang",hash:{},data:i}))+"</a>\r\n"},compiler:[8,">= 4.3.0"],main:function(e,n,t,o,i){e.propertyIsEnumerable;var r,l=e.lambda,a=e.escapeExpression,s=null!=n?n:e.nullContext||{},u=e.hooks.helperMissing;return'<div class="content-container-region row w-100 pl-0">\r\n <div class="col-8 border-right pt-3">\r\n <p class="text-uppercase text-muted '+a(l(null!=(r=null!=(r=null!=n?n.options:n)?r.styles:r)?r.columnNames:r,n))+'">'+a((t.lang||n&&n.lang||u).call(s,"description",{name:"lang",hash:{},data:i}))+"</p>\r\n \r\n"+(null!=(r=t.unless.call(s,null!=(r=null!=n?n.options:n)?r.description:r,{name:"unless",hash:{},fn:e.program(1,i,0),inverse:e.program(3,i,0),data:i}))?r:"")+' \r\n <div class="video-preview-region col-7 my-3 pl-0"></div>\r\n </div>\r\n <div class="col-4 my-3 pr-0 pl-3">\r\n <p class="text-uppercase text-muted '+a(l(null!=(r=null!=(r=null!=n?n.options:n)?r.styles:r)?r.columnNames:r,n))+'">'+a((t.lang||n&&n.lang||u).call(s,"details",{name:"lang",hash:{},data:i}))+'</p>\r\n\r\n <div class="row">\r\n'+(null!=(r=t.if.call(s,null!=(r=null!=n?n.rating:n)?r.code:r,{name:"if",hash:{},fn:e.program(5,i,0),inverse:e.noop,data:i}))?r:"")+"\r\n"+(null!=(r=t.if.call(s,null!=n?n.productionYear:n,{name:"if",hash:{},fn:e.program(7,i,0),inverse:e.noop,data:i}))?r:"")+'\r\n <div class="col-6 py-1 '+a(l(null!=(r=null!=(r=null!=n?n.options:n)?r.styles:r)?r.columnNames:r,n))+'">'+a((t.lang||n&&n.lang||u).call(s,"duration",{name:"lang",hash:{},data:i}))+'</div>\r\n <p class="col-6 mb-0 py-1">'+a(l(null!=(r=null!=n?n.options:n)?r.duration:r,n))+"</p>\r\n\r\n"+(null!=(r=t.if.call(s,null!=(r=null!=n?n.options:n)?r.chapters:r,{name:"if",hash:{},fn:e.program(9,i,0),inverse:e.noop,data:i}))?r:"")+"\r\n"+(null!=(r=t.if.call(s,null!=(r=null!=n?n.options:n)?r.interactives:r,{name:"if",hash:{},fn:e.program(16,i,0),inverse:e.noop,data:i}))?r:"")+"\r\n"+(null!=(r=t.if.call(s,null!=(r=null!=n?n.options:n)?r.subtitles:r,{name:"if",hash:{},fn:e.program(18,i,0),inverse:e.noop,data:i}))?r:"")+"\r\n"+(null!=(r=t.if.call(s,null!=(r=null!=n?n.options:n)?r.resources:r,{name:"if",hash:{},fn:e.program(20,i,0),inverse:e.noop,data:i}))?r:"")+"\r\n"+(null!=(r=t.if.call(s,null!=(r=null!=n?n.options:n)?r.links:r,{name:"if",hash:{},fn:e.program(22,i,0),inverse:e.noop,data:i}))?r:"")+" </div>\r\n\r\n"+(null!=(r=t.if.call(s,null!=(r=null!=n?n.options:n)?r.showTags:r,{name:"if",hash:{},fn:e.program(24,i,0),inverse:e.noop,data:i}))?r:"")+"\r\n"+(null!=(r=t.if.call(s,null!=(r=null!=n?n.options:n)?r.externalLink:r,{name:"if",hash:{},fn:e.program(26,i,0),inverse:e.program(28,i,0),data:i}))?r:"")+" </div>\r\n</div>"},useData:!0})},1085:function(e,n,t){e.exports={columnNames:"QvhY0",smallSvgContainer:"_2qax8"}},1086:function(e,n,t){var o=t(10);e.exports=(o.default||o).template({1:function(e,n,t,o,i){e.propertyIsEnumerable;return' <button class="btn btn-light retry">'+e.escapeExpression((t.lang||n&&n.lang||e.hooks.helperMissing).call(null!=n?n:e.nullContext||{},"retry",{name:"lang",hash:{},data:i}))+"</button>\r\n"},compiler:[8,">= 4.3.0"],main:function(e,n,t,o,i){e.propertyIsEnumerable;var r,l=null!=n?n:e.nullContext||{};return"<div>\r\n"+(null!=(r=t.if.call(l,null!=(r=null!=n?n.options:n)?r.hasError:r,{name:"if",hash:{},fn:e.program(1,i,0),inverse:e.noop,data:i}))?r:"")+' <button class="btn btn-light cancel">'+e.escapeExpression((t.lang||n&&n.lang||e.hooks.helperMissing).call(l,"cancel",{name:"lang",hash:{},data:i}))+"</button>\r\n</div>\r\n"},useData:!0})},1087:function(e,n,t){var o=t(10);e.exports=(o.default||o).template({1:function(e,n,t,o,i){return" cursor-pointer"},3:function(e,n,t,o,i){var r;e.propertyIsEnumerable;return' <div class="bulk-checkbox-region '+(null!=(r=t.if.call(null!=n?n:e.nullContext||{},null!=(r=null!=n?n.options:n)?r.bulkPlaceholder:r,{name:"if",hash:{},fn:e.program(4,i,0),inverse:e.noop,data:i}))?r:"")+'"></div>\r\n'},4:function(e,n,t,o,i){var r;e.propertyIsEnumerable;return e.escapeExpression(e.lambda(null!=(r=null!=(r=null!=n?n.options:n)?r.styles:r)?r.bulkPlaceholder:r,n))},compiler:[8,">= 4.3.0"],main:function(e,n,t,o,i){e.propertyIsEnumerable;var r,l=e.lambda,a=e.escapeExpression,s=null!=n?n:e.nullContext||{};return'<div class="d-flex justify-content-between align-items-stretch p-3 drag-item '+a(l(null!=(r=null!=(r=null!=n?n.options:n)?r.styles:r)?r.videoItem:r,n))+(null!=(r=t.if.call(s,null!=(r=null!=n?n.options:n)?r.isClickable:r,{name:"if",hash:{},fn:e.program(1,i,0),inverse:e.noop,data:i}))?r:"")+'">\r\n'+(null!=(r=t.if.call(s,null!=(r=null!=n?n.options:n)?r.allowBulk:r,{name:"if",hash:{},fn:e.program(3,i,0),inverse:e.noop,data:i}))?r:"")+' <div class="thumbnail-region d-inline-block '+a(l(null!=(r=null!=(r=null!=n?n.options:n)?r.styles:r)?r.thumbnailContainer:r,n))+'"></div>\r\n <div class="metadata-region d-inline-block px-3 '+a(l(null!=(r=null!=(r=null!=n?n.options:n)?r.styles:r)?r.metaContainer:r,n))+'"></div>\r\n <div class="video-actions-region d-inline-block '+a(l(null!=(r=null!=(r=null!=n?n.options:n)?r.styles:r)?r.actionsContainer:r,n))+'"></div>\r\n</div>\r\n<div class="video-info-region '+a(l(null!=(r=null!=(r=null!=n?n.options:n)?r.styles:r)?r.previewContainer:r,n))+'"></div>'},useData:!0})},1088:function(e,n,t){var o=t(10);e.exports=(o.default||o).template({compiler:[8,">= 4.3.0"],main:function(e,n,t,o,i){return'<div class="videos-region"></div>'},useData:!0})},1096:function(e,n,t){"use strict";var o=t(2),i=t(4),r=t(42),l=t(305),a=t(6),s=t(30),u=t(15),c=t(0),p=t(13),f=t(1059),h=t(1036),d=t(1087),g=t.n(d),m=t(1056),y=t.n(m);function v(e){return(v="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}function b(e,n,t){return n in e?Object.defineProperty(e,n,{value:t,enumerable:!0,configurable:!0,writable:!0}):e[n]=t,e}function k(e,n){for(var t=0;t<n.length;t++){var o=n[t];o.enumerable=o.enumerable||!1,o.configurable=!0,"value"in o&&(o.writable=!0),Object.defineProperty(e,o.key,o)}}function w(e,n){return(w=Object.setPrototypeOf||function(e,n){return e.__proto__=n,e})(e,n)}function C(e){var n=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(e){return!1}}();return function(){var t,o=x(e);if(n){var i=x(this).constructor;t=Reflect.construct(o,arguments,i)}else t=o.apply(this,arguments);return O(this,t)}}function O(e,n){return!n||"object"!==v(n)&&"function"!=typeof n?function(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}(e):n}function x(e){return(x=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)})(e)}var E=function(e){!function(e,n){if("function"!=typeof n&&null!==n)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(n&&n.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),n&&w(e,n)}(m,e);var n,t,l,d=C(m);function m(e){return function(e,n){if(!(e instanceof n))throw new TypeError("Cannot call a class as a function")}(this,m),d.call(this,e)}return n=m,(t=[{key:"initialize",value:function(){this.initViewModel(),this.listenTo(this.channelName,"thumbnail:load",this.onThumbnailLoad),this.listenTo(this.channelName,"click:show:preview",this.onClickTogglePreview),this.listenTo(this.options.collectionViewChannel,"close:preview",this.onCloseCollectionPreview)}},{key:"name",get:function(){return"VideoItemComponent"}},{key:"defaults",get:function(){return{componentType:h.b.Base,allowBulk:!1}}},{key:"behaviors",get:function(){return f.a.getBehaviors(this,this.options.componentType)}},{key:"template",get:function(){return g.a}},{key:"channelName",get:function(){return p.k.generateUniqueChannelName(this)}},{key:"getTypeClassName",value:function(){switch(this.options.componentType){case h.b.ProcessingVideo:return y.a.processingVideo;default:return""}}},{key:"className",get:function(){var e="border-bottom";return this.options.allowBulk&&(e+=" ".concat(y.a.allowBulk)),this.options.componentType&&(e+=" ".concat(this.getTypeClassName())),e}},{key:"props",get:function(){return["collectionIdentifier"]}},{key:"elements",get:function(){return{"drag-selector":".drag-item",previewContainer:".".concat(y.a.previewContainer)}}},{key:"regions",value:function(){var e;return b(e={},h.a.Checkbox,{replaceElement:!0,el:".bulk-checkbox-region"}),b(e,h.a.Thumbnail,".thumbnail-region"),b(e,h.a.Metadata,".metadata-region"),b(e,h.a.VideoActions,".video-actions-region"),b(e,h.a.VideoInfo,".video-info-region"),e}},{key:"events",value:function(){return{click:"onClick"}}},{key:"initViewModel",value:function(){this.viewModel=s.a.get("".concat(this.name,":").concat(this.model.get("id")),{previewOpen:!1})}},{key:"isClickable",value:function(){return this.options.componentType!==h.b.ProcessingVideo}},{key:"onThumbnailLoad",value:function(){this.thumbnailLoaded=!0}},{key:"onClick",value:function(){this.isClickable()&&this.onClickTogglePreview(!1)}},{key:"onClickTogglePreview",value:function(){var e=!(arguments.length>0&&void 0!==arguments[0])||arguments[0];a.Radio.channel(this.options.collectionViewChannel).trigger("close:preview",this.cid),this.togglePreview(!this.viewModel.get("previewOpen")),this.logTogglePreviewAction(e)}},{key:"onNavigateAway",value:function(){this.viewModel.set({previewOpen:!1})}},{key:"togglePreview",value:function(e){var n=this;if(this.viewModel.set({previewOpen:e}),e)return this.setPreviewHeight(),this.listenToOnce(u.a.SHELL,o.a.EventNames.ROUTE,this.onNavigateAway),void this.render();this.stopListening(a.Radio.channel(u.a.SHELL),o.a.EventNames.ROUTE),this.getUI("previewContainer").height(0),window.setTimeout((function(){return n.render()}),300)}},{key:"setPreviewHeight",value:function(){var e=this;this.listenToOnce(this.getRegion(h.a.VideoInfo),"show",(function(){var n=e.getRegion(h.a.VideoInfo).currentView;e.listenTo(n,"render",(function(){e.getUI("previewContainer").height(n.$el.outerHeight())})),e.listenTo(e.channelName,"resize:preview",(function(){window.setTimeout((function(){return e.getUI("previewContainer").height(n.$el.outerHeight())}),0)})),n.isRendered()&&e.getUI("previewContainer").height(n.$el.outerHeight())}))}},{key:"onCloseCollectionPreview",value:function(e){this.cid!==e&&this.viewModel.get("previewOpen")&&this.togglePreview(!1)}},{key:"shouldLazyLoadThumbnail",value:function(){return!!p.h.isLazyLoadSupported(c.p)&&!this.thumbnailLoaded}},{key:"logTogglePreviewAction",value:function(e){var n=r.a.mergeOptions(this.options.analyticsOptions,{actionType:i.UserAction.Click,descriptor:i.ClickDescriptor.TogglePreview,workflowPhase:i.WorkflowPhase.Complete}),t={buttonClicked:e,show:this.viewModel.get("previewOpen")};r.a.logUserAction(t,n)}},{key:"viewOptions",value:function(){return{styles:y.a,allowBulk:this.options.allowBulk,bulkPlaceholder:this.options.componentType===h.b.ProcessingVideo&&this.options.allowBulk,isClickable:this.isClickable()}}},{key:"onRender",value:function(){f.a.renderRegions(this,this.options.componentType)}},{key:"onAttach",value:function(){this.viewModel.get("previewOpen")&&this.togglePreview(!0)}}])&&k(n.prototype,t),l&&k(n,l),m}(o.a.Component),S=t(301),P=t(101),R=t(9),I=t(302),_=t(1088),T=t.n(_);function V(e){return(V="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}function j(e,n){if(!(e instanceof n))throw new TypeError("Cannot call a class as a function")}function M(e,n){for(var t=0;t<n.length;t++){var o=n[t];o.enumerable=o.enumerable||!1,o.configurable=!0,"value"in o&&(o.writable=!0),Object.defineProperty(e,o.key,o)}}function L(e,n,t){return n&&M(e.prototype,n),t&&M(e,t),e}function B(e,n){if("function"!=typeof n&&null!==n)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(n&&n.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),n&&A(e,n)}function A(e,n){return(A=Object.setPrototypeOf||function(e,n){return e.__proto__=n,e})(e,n)}function D(e){var n=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(e){return!1}}();return function(){var t,o=U(e);if(n){var i=U(this).constructor;t=Reflect.construct(o,arguments,i)}else t=o.apply(this,arguments);return N(this,t)}}function N(e,n){return!n||"object"!==V(n)&&"function"!=typeof n?function(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}(e):n}function U(e){return(U=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)})(e)}t.d(n,"a",(function(){return W}));var H=function(e){B(t,e);var n=D(t);function t(e){return j(this,t),n.call(this,e)}return L(t,[{key:"name",get:function(){return"VideoItemListComponent"}},{key:"childView",get:function(){return E}},{key:"childViewOptions",get:function(){var e=this;return function(n){return{componentType:n.get("status")===P.a.Processing?h.b.ProcessingVideo:e.options.videoItemComponentType,videoWithMetadata:e.options.videosWithMetadata&&e.options.videosWithMetadata.get(n.get("id")),allowBulk:e.options.allowBulk,collectionIdentifier:e.options.collectionIdentifier,application:e.options.application,pendingItems:e.options.pendingItems,config:e.options.config,sourceMetadataOptions:e.options.sourceMetadataOptions,collectionViewChannel:e.options.collectionViewChannel,customerHasLocalCache:e.options.customerHasLocalCache,customerHasExchange:e.options.customerHasExchange,customerHasCustomLibrary:e.options.customerHasCustomLibrary,analyticsOptions:e.options.analyticsOptions,videoCollectionSource:e.options.videoCollectionSource,currentUser:e.options.currentUser}}}}]),t}(o.a.ComponentCollection),W=function(e){B(t,e);var n=D(t);function t(e){return j(this,t),n.call(this,e)}return L(t,[{key:"name",get:function(){return"VideoListView"}},{key:"className",get:function(){return"bg-white"}},{key:"props",get:function(){return["collectionIdentifier"]}},{key:"template",get:function(){return T.a}},{key:"defaults",get:function(){return{videoItemComponentType:h.b.Base,allowBulk:!1,emptyState:R.c.Default,videoCollectionSource:I.d.Folder}}},{key:"behaviors",get:function(){return[{behaviorClass:S.c,selector:".lazy-img",minBrowserSupportVersion:c.p},{behaviorClass:l.a,region:"videos",type:this.options.emptyStateType,componentOptions:this.options.emptyStateOptions,emptyStateComponents:c.h}]}},{key:"regions",value:function(){return{videos:".videos-region"}}},{key:"onRender",value:function(){var e=new H({collection:this.collection,videosWithMetadata:this.options.videosWithMetadata,videoItemComponentType:this.options.videoItemComponentType,allowBulk:this.options.allowBulk,collectionIdentifier:this.collectionIdentifier,application:this.options.application,pendingItems:this.options.pendingItems,config:this.options.config,sourceMetadataOptions:this.options.sourceMetadataOptions,collectionViewChannel:this.options.collectionViewChannel,customerHasLocalCache:this.options.customerHasLocalCache,customerHasExchange:this.options.customerHasExchange,customerHasCustomLibrary:this.options.customerHasCustomLibrary,analyticsOptions:r.a.mergeOptions(this.options.analyticsOptions,{location:i.LocationContext.VideoListItem,entity:i.EntityType.Video}),videoCollectionSource:this.options.videoCollectionSource,currentUser:this.options.currentUser});this.showChildView("videos",e)}}]),t}(o.a.Component)},1325:function(e,n,t){e.exports={svgContainer:"_2KSbB"}},1326:function(e,n,t){var o=t(10);e.exports=(o.default||o).template({1:function(e,n,t,o,i){e.propertyIsEnumerable;var r,l=e.lambda,a=e.escapeExpression;return' <a class="d-inline-block ml-2 '+a(l(null!=(r=null!=(r=null!=n?n.options:n)?r.styles:r)?r.svgContainer:r,n))+'" href="'+a(l(null!=(r=null!=n?n.options:n)?r.supportUrl:r,n))+'">'+(null!=(r=l(null!=(r=null!=n?n.options:n)?r.svg:r,n))?r:"")+"</a>\r\n"},compiler:[8,">= 4.3.0"],main:function(e,n,t,o,i){e.propertyIsEnumerable;var r,l=null!=n?n:e.nullContext||{},a=e.hooks.helperMissing,s=e.escapeExpression;return'<div class="pl-3 pt-3 pr-3">\r\n <div class="border-bottom">\r\n <div class="d-flex align-items-center pb-3 border-bottom">\r\n <h1 class="h3 d-inline-block m-0">'+s((t.lang||n&&n.lang||a).call(l,"heading",{name:"lang",hash:{},data:i}))+" </h1>\r\n"+(null!=(r=t.if.call(l,null!=(r=null!=n?n.options:n)?r.supportUrl:r,{name:"if",hash:{},fn:e.program(1,i,0),inverse:e.noop,data:i}))?r:"")+' </div>\r\n <p class="py-3 m-0">\r\n '+s((t.lang||n&&n.lang||a).call(l,"description",{name:"lang",hash:{},data:i}))+'\r\n </p>\r\n </div> \r\n</div>\r\n<div class="video-list-region"></div>\r\n<div class="pagination-region"></div>\r\n<div class="empty-region"></div>'},useData:!0})},1441:function(e,n,t){"use strict";t.r(n),t.d(n,"RestrictedVideoListView",(function(){return I}));var o=t(2),i=t(5),r=t(3),l=t(17),a=t(140),s=t(1068),u=t(306),c=t(304),p=t(49),f=t(0),h=t(9),d=t(196),g=t(102),m=t(1096),y=t(1036),v=t(141),b=t(1325),k=t.n(b),w=t(1326),C=t.n(w);function O(e){return(O="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}function x(e,n){for(var t=0;t<n.length;t++){var o=n[t];o.enumerable=o.enumerable||!1,o.configurable=!0,"value"in o&&(o.writable=!0),Object.defineProperty(e,o.key,o)}}function E(e,n){return(E=Object.setPrototypeOf||function(e,n){return e.__proto__=n,e})(e,n)}function S(e){var n=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(e){return!1}}();return function(){var t,o=R(e);if(n){var i=R(this).constructor;t=Reflect.construct(o,arguments,i)}else t=o.apply(this,arguments);return P(this,t)}}function P(e,n){return!n||"object"!==O(n)&&"function"!=typeof n?function(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}(e):n}function R(e){return(R=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)})(e)}var I=function(e){!function(e,n){if("function"!=typeof n&&null!==n)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(n&&n.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),n&&E(e,n)}(w,e);var n,t,o,b=S(w);function w(e){return function(e,n){if(!(e instanceof n))throw new TypeError("Cannot call a class as a function")}(this,w),b.call(this,e)}return n=w,(t=[{key:"initialize",value:function(){this.bindListeners(),this.restrictedVideoDataService=i.a.getInstance(f.g.RestrictedVideo,this),this.videoDataService=i.a.getInstance(f.g.Video,this)}},{key:"bindListeners",value:function(){this.listenTo(f.e.RESTRICTED_VIDEO,"".concat(f.f.RESTRICTED_VIDEOS,":").concat(this.options.page,":sync"),this.render),this.listenTo(this.channelName,"fetch:video:with:metadata",this.fetchVideoWithMetadata),this.listenTo(f.e.RESTRICTED_VIDEO,"cache:cleared",this.render)}},{key:"name",get:function(){return"RestrictedVideoListView"}},{key:"title",get:function(){return r.a.getPhrase(this.lang,"title")}},{key:"className",get:function(){return"bg-white"}},{key:"channelName",get:function(){return"".concat(this.name).concat(this.cid)}},{key:"template",get:function(){return C.a}},{key:"lang",get:function(){return"videoAccess.restrictedVideoList"}},{key:"behaviors",get:function(){return[{behaviorClass:a.a,selector:".".concat(k.a.svgContainer),title:r.a.getPhrase(this.lang,"findOutMore")}]}},{key:"defaults",get:function(){return{page:1}}},{key:"regions",value:function(){return{videos:{replaceElement:!0,el:".video-list-region",partialLoading:h.h.VideoList},pagination:{replaceElement:!0,el:".pagination-region"},empty:{replaceElement:!0,el:".empty-region"}}}},{key:"setVideosWithMetadata",value:function(){this.videoCollection&&!this.videosWithMetadata&&(this.videosWithMetadata=new p.a(this.videoCollection.map((function(e){return new g.a({id:e.get("id")})}))))}},{key:"renderVideoList",value:function(){this.showChildView("videos",new m.a({collection:this.videoCollection,videosWithMetadata:this.videosWithMetadata,application:f.b.VIDEO_ACCESS,collectionIdentifier:null,videoItemComponentType:y.b.VideoAccess,config:this.config,emptyStateType:h.c.VideoAccess,emptyStateOptions:{heading:r.a.getPhrase(this.lang,"emptyStateHeading")},collectionViewChannel:this.channelName,currentUser:this.currentUser}))}},{key:"renderPagination",value:function(){var e=this.restrictedVideoDataService.getPaginationCursors(this.options.page);this.showChildView("pagination",new s.a({cursors:e,appLink:{application:f.b.VIDEO_ACCESS,action:f.a.VideoAccess.HOME},cursorParamName:"page"}))}},{key:"fetchVideoWithMetadata",value:function(e){var n=this;this.videoDataService.getVideo(e,(function(t){var o=n.videosWithMetadata.get(e);o&&(o.set(t.toJSON()),o.set({dataFetched:!0}))}))}},{key:"requiredResources",get:function(){return{config:d.b.config,currentUser:v.b.currentUser}}},{key:"onBeforeRender",value:function(){return this.videoCollection=this.restrictedVideoDataService.getRestrictedVideos(this.options.page),!!this.videoCollection&&(this.setVideosWithMetadata(),!0)}},{key:"viewOptions",value:function(){var e,n;return{styles:k.a,supportUrl:u.a.getArticle(null===(e=this.config)||void 0===e?void 0:e.get("supportSiteUrl"),c.a.VideoAccess,null===(n=this.currentUser)||void 0===n?void 0:n.get("countryCode")),svg:l.a.getSvg(l.b.Info)}}},{key:"onRender",value:function(){this.renderVideoList(),this.renderPagination()}}])&&x(n.prototype,t),o&&x(n,o),w}(o.a.View)}}]);
1
+ (window.webpackJsonp_clickview_library_editor=window.webpackJsonp_clickview_library_editor||[]).push([[24],{1028:function(e,n,t){"use strict";var o,i;t.d(n,"b",(function(){return o})),t.d(n,"a",(function(){return i})),function(e){e[e.Base=0]="Base",e[e.AwaitingReview=1]="AwaitingReview",e[e.PastReleases=2]="PastReleases",e[e.VideoAccess=3]="VideoAccess",e[e.ProcessingVideo=4]="ProcessingVideo",e[e.Draggable=5]="Draggable",e[e.Search=6]="Search"}(o||(o={})),function(e){e.Checkbox="checkbox",e.Thumbnail="thumbnail",e.Metadata="metadata",e.VideoActions="videoActions",e.VideoInfo="videoInfo"}(i||(i={}))},1029:function(e,n,t){e.exports={lock:"_25RMJ",svgContainer:"_1k8KB"}},1030:function(e,n,t){e.exports={dragItem:"_2TIZ7",svgContainer:"_3JzEU",dragText:"_1Kdwj"}},1031:function(e,n,t){var o=t(10);e.exports=(o.default||o).template({compiler:[8,">= 4.3.0"],main:function(e,n,t,o,i){e.propertyIsEnumerable;var r,l=e.lambda,a=e.escapeExpression;return'<span class="'+a(l(null!=(r=null!=(r=null!=n?n.options:n)?r.styles:r)?r.svgContainer:r,n))+' mr-2">'+(null!=(r=l(null!=(r=null!=n?n.options:n)?r.svg:r,n))?r:"")+'</span>\r\n<span class="'+a(l(null!=(r=null!=(r=null!=n?n.options:n)?r.styles:r)?r.dragText:r,n))+'">'+a(l(null!=(r=null!=n?n.options:n)?r.text:r,n))+"</span>"},useData:!0})},1040:function(e,n,t){e.exports={actions:"_34Z19",showPreview:"cZAmH"}},1042:function(e,n,t){var o=t(10);e.exports=(o.default||o).template({1:function(e,n,t,o,i){return" cursor-pointer"},3:function(e,n,t,o,i){return"checked"},5:function(e,n,t,o,i){return"disabled"},compiler:[8,">= 4.3.0"],main:function(e,n,t,o,i){e.propertyIsEnumerable;var r,l=e.lambda,a=e.escapeExpression,s=null!=n?n:e.nullContext||{};return'<div class="custom-control custom-checkbox '+a(l(null!=(r=null!=n?n.options:n)?r.checkboxClassName:r,n))+'">\r\n <input name="checkbox-'+a(l(null!=(r=null!=n?n.options:n)?r.id:r,n))+'" id="checkbox-'+a(l(null!=(r=null!=n?n.options:n)?r.id:r,n))+'" type="checkbox" class="custom-control-input'+(null!=(r=t.unless.call(s,null!=(r=null!=n?n.options:n)?r.disabled:r,{name:"unless",hash:{},fn:e.program(1,i,0),inverse:e.noop,data:i}))?r:"")+'" '+(null!=(r=t.if.call(s,null!=(r=null!=n?n.options:n)?r.checked:r,{name:"if",hash:{},fn:e.program(3,i,0),inverse:e.noop,data:i}))?r:"")+" "+(null!=(r=t.if.call(s,null!=(r=null!=n?n.options:n)?r.disabled:r,{name:"if",hash:{},fn:e.program(5,i,0),inverse:e.noop,data:i}))?r:"")+' />\r\n <label class="custom-control-label'+(null!=(r=t.unless.call(s,null!=(r=null!=n?n.options:n)?r.disabled:r,{name:"unless",hash:{},fn:e.program(1,i,0),inverse:e.noop,data:i}))?r:"")+'" for="checkbox-'+a(l(null!=(r=null!=n?n.options:n)?r.id:r,n))+'">&nbsp;</label>\r\n</div>'},useData:!0})},1047:function(e,n,t){"use strict";var o=t(1030),i=t.n(o),r=t(1031),l=t.n(r);function a(e){return(a="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}function s(e,n){for(var t=0;t<n.length;t++){var o=n[t];o.enumerable=o.enumerable||!1,o.configurable=!0,"value"in o&&(o.writable=!0),Object.defineProperty(e,o.key,o)}}function u(e,n){return(u=Object.setPrototypeOf||function(e,n){return e.__proto__=n,e})(e,n)}function c(e){var n=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(e){return!1}}();return function(){var t,o=f(e);if(n){var i=f(this).constructor;t=Reflect.construct(o,arguments,i)}else t=o.apply(this,arguments);return p(this,t)}}function p(e,n){return!n||"object"!==a(n)&&"function"!=typeof n?function(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}(e):n}function f(e){return(f=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)})(e)}var h=function(e){!function(e,n){if("function"!=typeof n&&null!==n)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(n&&n.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),n&&u(e,n)}(a,e);var n,t,o,r=c(a);function a(e){return function(e,n){if(!(e instanceof n))throw new TypeError("Cannot call a class as a function")}(this,a),r.call(this,e)}return n=a,(t=[{key:"name",get:function(){return"DraggableItemComponent"}},{key:"template",get:function(){return l.a}},{key:"className",get:function(){return"".concat(i.a.dragItem," p-3")}},{key:"viewOptions",value:function(){return Object.assign({styles:i.a},this.options)}}])&&s(n.prototype,t),o&&s(n,o),a}(t(2).a.Component),d={delay:150,cursorAt:{left:-20,top:10},refreshPositions:!0};t.d(n,"c",(function(){return i.a})),t.d(n,"b",(function(){return h})),t.d(n,"a",(function(){return d}))},1048:function(e,n,t){e.exports={checkboxContainer:"_3BLCF",thumbnailContainer:"_16jlV",metaContainer:"_2mMws",actionsContainer:"I31I0",allowBulk:"_2VkOe",videoItem:"PoHa-",processingVideo:"qFjv2",bulkPlaceholder:"_3iAFa",previewContainer:"_2UBZX"}},1049:function(e,n,t){"use strict";t.d(n,"a",(function(){return g})),t.d(n,"b",(function(){return m}));var o=t(1),i=t(2),r=t(1042),l=t.n(r),a=t(13);function s(e){return(s="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}function u(e,n,t){return n in e?Object.defineProperty(e,n,{value:t,enumerable:!0,configurable:!0,writable:!0}):e[n]=t,e}function c(e,n){for(var t=0;t<n.length;t++){var o=n[t];o.enumerable=o.enumerable||!1,o.configurable=!0,"value"in o&&(o.writable=!0),Object.defineProperty(e,o.key,o)}}function p(e,n){return(p=Object.setPrototypeOf||function(e,n){return e.__proto__=n,e})(e,n)}function f(e){var n=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(e){return!1}}();return function(){var t,o=d(e);if(n){var i=d(this).constructor;t=Reflect.construct(o,arguments,i)}else t=o.apply(this,arguments);return h(this,t)}}function h(e,n){return!n||"object"!==s(n)&&"function"!=typeof n?function(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}(e):n}function d(e){return(d=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)})(e)}var g="checkbox-all",m=function(e){!function(e,n){if("function"!=typeof n&&null!==n)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(n&&n.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),n&&p(e,n)}(s,e);var n,t,i,r=f(s);function s(e){return function(e,n){if(!(e instanceof n))throw new TypeError("Cannot call a class as a function")}(this,s),r.call(this,e)}return n=s,(t=[{key:"initialize",value:function(){this.getViewModel(),this.bindListeners()}},{key:"name",get:function(){return"BulkCheckboxComponent"}},{key:"className",get:function(){return this.options.className}},{key:"template",get:function(){return l.a}},{key:"getViewModel",value:function(){this.model=a.a.GetViewModel(this.options.key,this.options.type)}},{key:"bindListeners",value:function(){this.options.disabled||this.listenTo(this.model,"change",this.onChange)}},{key:"events",value:function(){return{"change .custom-control-input":"onClick"}}},{key:"onChange",value:function(){this.checkAllChecked(),this.render()}},{key:"checkAllChecked",value:function(){var e=o.values(this.model.omit("all",g));o.every(e,(function(e){return!!e}))&&(this.model.get("all")||e.length===this.options.numberOfItems)&&this.model.set(u({all:!0},this.getItemId(),!0))}},{key:"getItemId",value:function(){return g}},{key:"onClick",value:function(){this.model.get(this.getItemId())?this.model.clear():(this.model.clear(),this.model.set(u({all:!0},this.getItemId(),!0)))}},{key:"viewOptions",value:function(){return{id:this.getItemId(),checked:this.model.get(g),disabled:this.options.disabled,checkboxClassName:this.options.checkboxClassName}}}])&&c(n.prototype,t),i&&c(n,i),s}(i.a.Component)},1050:function(e,n,t){"use strict";var o=t(0),i=t(59),r=t(199),l=t(201),a=t(1056),s=t(1),u=t(2),c=t(17),p=t(142),f=t(13),h=t(1033),d=t(1062),g=t.n(d),m=t(1063),y=t.n(m);function v(e){return(v="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}function b(e,n){for(var t=0;t<n.length;t++){var o=n[t];o.enumerable=o.enumerable||!1,o.configurable=!0,"value"in o&&(o.writable=!0),Object.defineProperty(e,o.key,o)}}function k(e,n){return(k=Object.setPrototypeOf||function(e,n){return e.__proto__=n,e})(e,n)}function w(e){var n=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(e){return!1}}();return function(){var t,o=O(e);if(n){var i=O(this).constructor;t=Reflect.construct(o,arguments,i)}else t=o.apply(this,arguments);return C(this,t)}}function C(e,n){return!n||"object"!==v(n)&&"function"!=typeof n?function(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}(e):n}function O(e){return(O=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)})(e)}var x=function(e){!function(e,n){if("function"!=typeof n&&null!==n)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(n&&n.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),n&&k(e,n)}(r,e);var n,t,o,i=w(r);function r(e){return function(e,n){if(!(e instanceof n))throw new TypeError("Cannot call a class as a function")}(this,r),i.call(this,e)}return n=r,(t=[{key:"name",get:function(){return"VideoItemBadgesComponent"}},{key:"template",get:function(){return g.a}},{key:"lang",get:function(){return"shared.videoItemBadges"}},{key:"behaviors",get:function(){return[{behaviorClass:p.a,selector:".tool-tip"}]}},{key:"defaults",get:function(){return{showRestrictionBadge:!1,showReviewBadge:!1}}},{key:"events",value:function(){return{"click span":"onClick"}}},{key:"onClick",value:function(e){e.stopPropagation()}},{key:"viewOptions",value:function(){var e=this.options.showReviewBadge&&f.o.getRestrictionTooltipMessage(this.model),n=this.options.showRestrictionBadge&&f.o.getRestrictionTooltipMessage(this.model);return{styles:y.a,interactive:h.h.isInteractive(this.model),subtitles:!1,resources:!1,ratingColorClass:h.h.mapRatingToClass(this.model.rating.get("value")),closeCaptionSvg:c.a.getSvg(c.b.CloseCaptionBadge),resourcesSvg:c.a.getSvg(c.b.Resources),awaitingReviewMessage:e,awaitingReviewBadgeClass:f.o.getReviewBadgeClassName(this.model,y.a.reviewBadge,y.a.urgentReviewBadge),restrictionMessage:n}}}])&&b(n.prototype,t),o&&b(n,o),r}(u.a.Component),E=t(1043),S=t(1032),P=t(1064),R=t.n(P),I=t(1029),_=t.n(I);function T(e){return(T="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}function V(e,n){for(var t=0;t<n.length;t++){var o=n[t];o.enumerable=o.enumerable||!1,o.configurable=!0,"value"in o&&(o.writable=!0),Object.defineProperty(e,o.key,o)}}function j(e,n){return(j=Object.setPrototypeOf||function(e,n){return e.__proto__=n,e})(e,n)}function M(e){var n=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(e){return!1}}();return function(){var t,o=B(e);if(n){var i=B(this).constructor;t=Reflect.construct(o,arguments,i)}else t=o.apply(this,arguments);return L(this,t)}}function L(e,n){return!n||"object"!==T(n)&&"function"!=typeof n?function(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}(e):n}function B(e){return(B=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)})(e)}var A=function(e){!function(e,n){if("function"!=typeof n&&null!==n)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(n&&n.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),n&&j(e,n)}(l,e);var n,t,i,r=M(l);function l(e){return function(e,n){if(!(e instanceof n))throw new TypeError("Cannot call a class as a function")}(this,l),r.call(this,e)}return n=l,(t=[{key:"initialize",value:function(){this.listenTo(this.model,"change:restrictions",this.render)}},{key:"name",get:function(){return"VideoItemMetadataComponent"}},{key:"template",get:function(){return R.a}},{key:"behaviors",get:function(){return[{behaviorClass:p.a,selector:".tool-tip"}]}},{key:"appLinks",get:function(){return{".applink-show-video":{application:o.b.LIBRARY_EDITOR,action:o.a.LibraryEditor.VIDEO_DETAILS,args:[this.model.get("id")]}}}},{key:"regions",value:function(){return{sources:{el:".sources-region",replaceElement:!0},badges:{el:".badges-region",replaceElement:!0},series:{el:".series-region",replaceElement:!0}}}},{key:"events",value:function(){return e={},n="click .".concat(_.a.svgContainer),t="onClickBadge",n in e?Object.defineProperty(e,n,{value:t,enumerable:!0,configurable:!0,writable:!0}):e[n]=t,e;var e,n,t}},{key:"onClickBadge",value:function(e){e.stopPropagation()}},{key:"renderSources",value:function(){var e=s.extend({},{model:this.model},this.options.sourceMetadataOptions);this.showChildView("sources",new E.a(e))}},{key:"renderSeries",value:function(){this.showChildView("series",new S.a({model:this.model,highlight:this.options.sourceMetadataOptions&&!!this.options.sourceMetadataOptions.highlight}))}},{key:"renderBadges",value:function(){this.showChildView("badges",new x({model:this.model}))}},{key:"viewOptions",value:function(){return{styles:_.a,hasAdminRestriction:f.o.hasAdminRestriction(this.model),restrictionMessage:f.o.getRestrictionTooltipMessage(this.model),lockSvg:c.a.getSvg(c.b.Lock)}}},{key:"onRender",value:function(){this.renderSeries(),this.renderSources(),this.renderBadges()}}])&&V(n.prototype,t),i&&V(n,i),l}(u.a.Component),D=t(1065),N=t.n(D);function U(e){return(U="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}function H(e,n){for(var t=0;t<n.length;t++){var o=n[t];o.enumerable=o.enumerable||!1,o.configurable=!0,"value"in o&&(o.writable=!0),Object.defineProperty(e,o.key,o)}}function W(e,n){return(W=Object.setPrototypeOf||function(e,n){return e.__proto__=n,e})(e,n)}function z(e){var n=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(e){return!1}}();return function(){var t,o=Y(e);if(n){var i=Y(this).constructor;t=Reflect.construct(o,arguments,i)}else t=o.apply(this,arguments);return F(this,t)}}function F(e,n){return!n||"object"!==U(n)&&"function"!=typeof n?function(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}(e):n}function Y(e){return(Y=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)})(e)}var G=function(e){!function(e,n){if("function"!=typeof n&&null!==n)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(n&&n.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),n&&W(e,n)}(a,e);var n,t,r,l=z(a);function a(e){return function(e,n){if(!(e instanceof n))throw new TypeError("Cannot call a class as a function")}(this,a),l.call(this,e)}return n=a,(t=[{key:"initialize",value:function(){this.listenTo(this.model,"change:restrictions",this.render)}},{key:"name",get:function(){return"VideoItemVideoAccessMetadataComponent"}},{key:"template",get:function(){return N.a}},{key:"behaviors",get:function(){return[{behaviorClass:p.a,selector:".tool-tip"}]}},{key:"appLinks",get:function(){if(f.y.hasCustomLibrary(this.model))return{".applink-show-video":{application:o.b.LIBRARY_EDITOR,action:o.a.LibraryEditor.VIDEO_DETAILS,args:[this.model.get("id")]}}}},{key:"regions",value:function(){return{sources:{el:".sources-region",replaceElement:!0},badges:{el:".badges-region",replaceElement:!0},series:{el:".series-region",replaceElement:!0}}}},{key:"events",value:function(){return e={click:"onClick","click .video-title":"onClickMetadata"},n="click .".concat(_.a.svgContainer),t="onClickMetadata",n in e?Object.defineProperty(e,n,{value:t,enumerable:!0,configurable:!0,writable:!0}):e[n]=t,e;var e,n,t}},{key:"onClickMetadata",value:function(e){e.stopPropagation()}},{key:"getVideoUrl",value:function(){var e=i.a.safeUrlConcat(this.options.config.get("onlineUrl"),"videos/".concat(this.model.get("id")));return i.a.urlBuilder(e,{loginPrompt:!1})}},{key:"renderSources",value:function(){if(f.y.hasCustomLibrary(this.model)){var e=s.extend({},{model:this.model},this.options.sourceMetadataOptions);this.showChildView("sources",new E.a(e))}}},{key:"renderSeries",value:function(){f.y.hasCustomLibrary(this.model)&&this.showChildView("series",new S.a({model:this.model,highlight:this.options.sourceMetadataOptions&&!!this.options.sourceMetadataOptions.highlight}))}},{key:"renderBadges",value:function(){this.showChildView("badges",new x({model:this.model,showRestrictionBadge:!0}))}},{key:"viewOptions",value:function(){return{styles:_.a,restrictionMessage:f.o.getRestrictionTooltipMessage(this.model),lockSvg:c.a.getSvg(c.b.Lock),linkToOnline:!f.y.hasCustomLibrary(this.model),videoUrl:this.getVideoUrl(),openExternalSvg:c.a.getSvg(c.b.NewWindow)}}},{key:"onRender",value:function(){this.renderSeries(),this.renderSources(),this.renderBadges()}}])&&H(n.prototype,t),r&&H(n,r),a}(u.a.Component),K=t(102),q=t(104),J=t(1066),Z=t.n(J);function Q(e){return(Q="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}function $(e,n){for(var t=0;t<n.length;t++){var o=n[t];o.enumerable=o.enumerable||!1,o.configurable=!0,"value"in o&&(o.writable=!0),Object.defineProperty(e,o.key,o)}}function X(e,n){return(X=Object.setPrototypeOf||function(e,n){return e.__proto__=n,e})(e,n)}function ee(e){var n=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(e){return!1}}();return function(){var t,o=te(e);if(n){var i=te(this).constructor;t=Reflect.construct(o,arguments,i)}else t=o.apply(this,arguments);return ne(this,t)}}function ne(e,n){return!n||"object"!==Q(n)&&"function"!=typeof n?function(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}(e):n}function te(e){return(te=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)})(e)}var oe=function(e){!function(e,n){if("function"!=typeof n&&null!==n)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(n&&n.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),n&&X(e,n)}(l,e);var n,t,i,r=ee(l);function l(e){return function(e,n){if(!(e instanceof n))throw new TypeError("Cannot call a class as a function")}(this,l),r.call(this,e)}return n=l,(t=[{key:"initialize",value:function(){this.bindListeners()}},{key:"bindListeners",value:function(){this.model.get("status")===K.a.Processing&&this.options.pendingItems&&(this.pendingItem||(this.listenTo(this.options.pendingItems,"update",this.mapPendingItem),this.mapPendingItem()))}},{key:"lang",get:function(){return"shared.videoItemProcessingMetadata"}},{key:"mapPendingItem",value:function(){this.pendingItem=this.options.pendingItems.get(this.model.get("id")),this.render(),this.pendingItem&&(this.stopListening(this.options.pendingItems,"update"),this.listenTo(this.pendingItem,"change:foregroundProgress change:backgroundProgress change:pendingProcessStatus",this.render))}},{key:"name",get:function(){return"VideoItemProcessingMetadataComponent"}},{key:"template",get:function(){return Z.a}},{key:"appLinks",get:function(){var e=this.model.series?this.model.series.id:"";return{".applink-series":{application:o.b.LIBRARY_EDITOR,action:o.a.LibraryEditor.FOLDER,args:[e]}}}},{key:"viewOptions",value:function(){return this.pendingItem?{status:q.a.getStatus(this.pendingItem),hasError:q.a.hasError(this.pendingItem),hasPendingItem:!0}:{hasPendingItem:!1}}}])&&$(n.prototype,t),i&&$(n,i),l}(u.a.Component),ie=t(1067),re=t.n(ie);function le(e){return(le="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}function ae(e,n){for(var t=0;t<n.length;t++){var o=n[t];o.enumerable=o.enumerable||!1,o.configurable=!0,"value"in o&&(o.writable=!0),Object.defineProperty(e,o.key,o)}}function se(e,n){return(se=Object.setPrototypeOf||function(e,n){return e.__proto__=n,e})(e,n)}function ue(e){var n=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(e){return!1}}();return function(){var t,o=pe(e);if(n){var i=pe(this).constructor;t=Reflect.construct(o,arguments,i)}else t=o.apply(this,arguments);return ce(this,t)}}function ce(e,n){return!n||"object"!==le(n)&&"function"!=typeof n?function(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}(e):n}function pe(e){return(pe=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)})(e)}var fe=function(e){!function(e,n){if("function"!=typeof n&&null!==n)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(n&&n.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),n&&se(e,n)}(l,e);var n,t,o,r=ue(l);function l(e){return function(e,n){if(!(e instanceof n))throw new TypeError("Cannot call a class as a function")}(this,l),r.call(this,e)}return n=l,(t=[{key:"name",get:function(){return"VideoItemAwaitingReviewMetadataComponent"}},{key:"template",get:function(){return re.a}},{key:"events",value:function(){return{"click .video-title":"onClickMetadata","click .svg-container":"onClickMetadata"}}},{key:"regions",value:function(){return{badges:{el:".badges-region",replaceElement:!0},series:{el:".series-region",replaceElement:!0}}}},{key:"onClickMetadata",value:function(e){e.stopPropagation()}},{key:"getVideoUrl",value:function(){var e=i.a.safeUrlConcat(this.options.config.get("onlineUrl"),"videos/".concat(this.model.get("id")));return i.a.urlBuilder(e,{loginPrompt:!1})}},{key:"getSeriesUrl",value:function(){if(this.model.series){var e=i.a.safeUrlConcat(this.options.config.get("onlineUrl"),"series/".concat(this.model.series.id));return i.a.urlBuilder(e,{loginPrompt:!1})}}},{key:"renderBadges",value:function(){this.showChildView("badges",new x({model:this.model,showReviewBadge:!0}))}},{key:"renderSeries",value:function(){this.showChildView("series",new S.a({model:this.model,highlight:!1,seriesUrl:this.getSeriesUrl()}))}},{key:"viewOptions",value:function(){return{styles:_.a,videoUrl:this.getVideoUrl(),openExternalSvg:c.a.getSvg(c.b.NewWindow)}}},{key:"onRender",value:function(){this.renderSeries(),this.renderBadges()}}])&&ae(n.prototype,t),o&&ae(n,o),l}(u.a.Component),he=t(1068),de=t.n(he),ge=t(1069),me=t.n(ge);function ye(e){return(ye="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}function ve(e,n,t){return n in e?Object.defineProperty(e,n,{value:t,enumerable:!0,configurable:!0,writable:!0}):e[n]=t,e}function be(e,n){for(var t=0;t<n.length;t++){var o=n[t];o.enumerable=o.enumerable||!1,o.configurable=!0,"value"in o&&(o.writable=!0),Object.defineProperty(e,o.key,o)}}function ke(e,n){return(ke=Object.setPrototypeOf||function(e,n){return e.__proto__=n,e})(e,n)}function we(e){var n=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(e){return!1}}();return function(){var t,o=Oe(e);if(n){var i=Oe(this).constructor;t=Reflect.construct(o,arguments,i)}else t=o.apply(this,arguments);return Ce(this,t)}}function Ce(e,n){return!n||"object"!==ye(n)&&"function"!=typeof n?function(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}(e):n}function Oe(e){return(Oe=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)})(e)}var xe=function(e){!function(e,n){if("function"!=typeof n&&null!==n)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(n&&n.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),n&&ke(e,n)}(l,e);var n,t,o,r=we(l);function l(e){return function(e,n){if(!(e instanceof n))throw new TypeError("Cannot call a class as a function")}(this,l),r.call(this,e)}return n=l,(t=[{key:"initialize",value:function(){this.listenTo(this.model,"change:restrictions",this.render)}},{key:"name",get:function(){return"VideoItemPastReleasesMetadataComponent"}},{key:"template",get:function(){return de.a}},{key:"lang",get:function(){return"shared.videoItemPastReleasesMetadata"}},{key:"behaviors",get:function(){return[{behaviorClass:p.a,selector:".tool-tip"}]}},{key:"regions",value:function(){return{badges:{el:".badges-region",replaceElement:!0},series:{el:".series-region",replaceElement:!0}}}},{key:"events",value:function(){var e;return ve(e={"click .video-title":"onClickMetadata"},"click .".concat(me.a.series),"onClickMetadata"),ve(e,"click .svg-container","onClickMetadata"),e}},{key:"onClickMetadata",value:function(e){e.stopPropagation()}},{key:"getVideoUrl",value:function(){var e=i.a.safeUrlConcat(this.options.config.get("onlineUrl"),"videos/".concat(this.model.get("id")));return i.a.urlBuilder(e,{loginPrompt:!1})}},{key:"getSeriesUrl",value:function(){if(this.model.series){var e=i.a.safeUrlConcat(this.options.config.get("onlineUrl"),"series/".concat(this.model.series.id));return i.a.urlBuilder(e,{loginPrompt:!1})}}},{key:"renderBadges",value:function(){this.showChildView("badges",new x({model:this.model}))}},{key:"renderSeries",value:function(){this.showChildView("series",new S.a({model:this.model,highlight:!1,seriesUrl:this.getSeriesUrl()}))}},{key:"viewOptions",value:function(){return{styles:s.extend({},_.a,me.a),videoUrl:this.getVideoUrl(),openExternalSvg:c.a.getSvg(c.b.NewWindow),hasAdminRestriction:f.o.hasAdminRestriction(this.model),restrictionMessage:f.o.getRestrictionTooltipMessage(this.model),lockSvg:c.a.getSvg(c.b.Lock)}}},{key:"onRender",value:function(){this.renderSeries(),this.renderBadges()}}])&&be(n.prototype,t),o&&be(n,o),l}(u.a.Component),Ee=t(1070),Se=t.n(Ee);function Pe(e){return(Pe="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}function Re(e,n){for(var t=0;t<n.length;t++){var o=n[t];o.enumerable=o.enumerable||!1,o.configurable=!0,"value"in o&&(o.writable=!0),Object.defineProperty(e,o.key,o)}}function Ie(e,n){return(Ie=Object.setPrototypeOf||function(e,n){return e.__proto__=n,e})(e,n)}function _e(e){var n=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(e){return!1}}();return function(){var t,o=Ve(e);if(n){var i=Ve(this).constructor;t=Reflect.construct(o,arguments,i)}else t=o.apply(this,arguments);return Te(this,t)}}function Te(e,n){return!n||"object"!==Pe(n)&&"function"!=typeof n?function(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}(e):n}function Ve(e){return(Ve=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)})(e)}var je=function(e){!function(e,n){if("function"!=typeof n&&null!==n)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(n&&n.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),n&&Ie(e,n)}(l,e);var n,t,i,r=_e(l);function l(e){return function(e,n){if(!(e instanceof n))throw new TypeError("Cannot call a class as a function")}(this,l),r.call(this,e)}return n=l,(t=[{key:"initialize",value:function(){this.listenTo(this.model,"change:restrictions",this.render)}},{key:"name",get:function(){return"VideoItemSearchMetadataComponent"}},{key:"template",get:function(){return Se.a}},{key:"behaviors",get:function(){return[{behaviorClass:p.a,selector:".tool-tip"}]}},{key:"appLinks",get:function(){return{".applink-show-video":{application:o.b.LIBRARY_EDITOR,action:o.a.LibraryEditor.VIDEO_DETAILS,args:[this.model.get("id")]}}}},{key:"regions",value:function(){return{sources:{el:".sources-region",replaceElement:!0},badges:{el:".badges-region",replaceElement:!0},series:{el:".series-region",replaceElement:!0}}}},{key:"events",value:function(){return e={click:"onClick"},n="click ".concat(_.a.svgContainer),t="onClickSvg",n in e?Object.defineProperty(e,n,{value:t,enumerable:!0,configurable:!0,writable:!0}):e[n]=t,e;var e,n,t}},{key:"onClickSvg",value:function(e){e.stopPropagation()}},{key:"getKeyPhrases",value:function(){var e=this;return f.w.extractKeyPhrases(this.model.get("description"),this.model.get("_matchedWords"),100,2).map((function(n){return f.w.wordsHighlighter(f.w.escapeExpression(n),e.model.get("_matchedWords"))}))}},{key:"renderSources",value:function(){var e=s.extend({},{model:this.model},this.options.sourceMetadataOptions);this.showChildView("sources",new E.a(e))}},{key:"renderSeries",value:function(){this.showChildView("series",new S.a({model:this.model,highlight:this.options.sourceMetadataOptions&&!!this.options.sourceMetadataOptions.highlight}))}},{key:"renderBadges",value:function(){this.showChildView("badges",new x({model:this.model}))}},{key:"viewOptions",value:function(){return{styles:_.a,name:f.w.wordsHighlighter(f.w.escapeExpression(this.model.get("name")),this.model.get("_matchedWords")),keyPhrases:this.getKeyPhrases(),hasAdminRestriction:f.o.hasAdminRestriction(this.model),restrictionMessage:f.o.getRestrictionTooltipMessage(this.model),lockSvg:c.a.getSvg(c.b.Lock)}}},{key:"onRender",value:function(){this.renderSeries(),this.renderSources(),this.renderBadges()}}])&&Re(n.prototype,t),i&&Re(n,i),l}(u.a.Component),Me=t(6),Le=t(1097),Be=t(1071),Ae=t.n(Be),De=t(1040),Ne=t.n(De);function Ue(e){return(Ue="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}function He(e,n){for(var t=0;t<n.length;t++){var o=n[t];o.enumerable=o.enumerable||!1,o.configurable=!0,"value"in o&&(o.writable=!0),Object.defineProperty(e,o.key,o)}}function We(e,n){return(We=Object.setPrototypeOf||function(e,n){return e.__proto__=n,e})(e,n)}function ze(e){var n=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(e){return!1}}();return function(){var t,o=Ye(e);if(n){var i=Ye(this).constructor;t=Reflect.construct(o,arguments,i)}else t=o.apply(this,arguments);return Fe(this,t)}}function Fe(e,n){return!n||"object"!==Ue(n)&&"function"!=typeof n?function(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}(e):n}function Ye(e){return(Ye=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)})(e)}var Ge=function(e){!function(e,n){if("function"!=typeof n&&null!==n)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(n&&n.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),n&&We(e,n)}(r,e);var n,t,o,i=ze(r);function r(e){return function(e,n){if(!(e instanceof n))throw new TypeError("Cannot call a class as a function")}(this,r),i.call(this,e)}return n=r,(t=[{key:"name",get:function(){return"VideoItemActionsComponent"}},{key:"template",get:function(){return Ae.a}},{key:"className",get:function(){return"d-flex h-100 flex-column align-items-end justify-content-between"}},{key:"lang",get:function(){return"shared._videoItemActions"}},{key:"regions",value:function(){return{videoActions:".video-actions-region"}}},{key:"events",value:function(){return e={},n="click .".concat(Ne.a.showPreview),t="onClickShowPreview",n in e?Object.defineProperty(e,n,{value:t,enumerable:!0,configurable:!0,writable:!0}):e[n]=t,e;var e,n,t}},{key:"onClickShowPreview",value:function(e){e.stopPropagation(),this.options.channelName&&Me.Radio.channel(this.options.channelName).trigger("click:show:preview")}},{key:"renderVideoActions",value:function(){this.showChildView("videoActions",new Le.a(this.options.videoActionsOptions))}},{key:"viewOptions",value:function(){return{styles:Ne.a,previewDisplayed:this.options.previewDisplayed,previewSvg:c.a.getSvg(c.b.Preview)}}},{key:"onRender",value:function(){this.renderVideoActions()}}])&&He(n.prototype,t),o&&He(n,o),r}(u.a.Component),Ke=t(5),qe=t(4),Je=t(42),Ze=t(1072),Qe=t.n(Ze);function $e(e){return($e="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}function Xe(e,n){for(var t=0;t<n.length;t++){var o=n[t];o.enumerable=o.enumerable||!1,o.configurable=!0,"value"in o&&(o.writable=!0),Object.defineProperty(e,o.key,o)}}function en(e,n){return(en=Object.setPrototypeOf||function(e,n){return e.__proto__=n,e})(e,n)}function nn(e){var n=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(e){return!1}}();return function(){var t,o=on(e);if(n){var i=on(this).constructor;t=Reflect.construct(o,arguments,i)}else t=o.apply(this,arguments);return tn(this,t)}}function tn(e,n){return!n||"object"!==$e(n)&&"function"!=typeof n?function(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}(e):n}function on(e){return(on=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)})(e)}var rn=function(e){!function(e,n){if("function"!=typeof n&&null!==n)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(n&&n.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),n&&en(e,n)}(l,e);var n,t,i,r=nn(l);function l(e){return function(e,n){if(!(e instanceof n))throw new TypeError("Cannot call a class as a function")}(this,l),r.call(this,e)}return n=l,(t=[{key:"initialize",value:function(){this.restrictedVideoDataService=Ke.a.getInstance(o.g.RestrictedVideo,this)}},{key:"name",get:function(){return"VideoItemReviewActionsComponent"}},{key:"template",get:function(){return Qe.a}},{key:"lang",get:function(){return"shared.videoItemReviewActions"}},{key:"className",get:function(){return"d-flex h-100 flex-column align-items-end"}},{key:"events",value:function(){return e={"click .approve":"onClickApprove","click .applink-manage-video-access":"onClickManageVideoAccess"},n="click .".concat(Ne.a.showPreview),t="onClickShowPreview",n in e?Object.defineProperty(e,n,{value:t,enumerable:!0,configurable:!0,writable:!0}):e[n]=t,e;var e,n,t}},{key:"appLinks",get:function(){return{".applink-manage-video-access":{application:o.b.CONTENT_UPDATES,action:o.a.Shared.MANAGE_VIDEO_ACCESS,args:[this.model.get("id")]}}}},{key:"onClickApprove",value:function(e){e.stopPropagation(),this.restrictedVideoDataService.deleteVideoRestriction(this.model.get("id")),this.logApproveAction()}},{key:"onClickManageVideoAccess",value:function(e){e.stopPropagation(),this.logManageAccessAction()}},{key:"onClickShowPreview",value:function(e){e.stopPropagation(),this.options.channelName&&Me.Radio.channel(this.options.channelName).trigger("click:show:preview")}},{key:"logApproveAction",value:function(){var e={location:qe.LocationContext.AwaitingReviewVideoItem,actionType:qe.UserAction.Approve,entity:qe.EntityType.Video,descriptor:qe.OperationDescriptor.Single,workflowPhase:qe.WorkflowPhase.Complete},n={id:this.model.get("id")};Je.a.logUserAction(n,e)}},{key:"logManageAccessAction",value:function(){var e={location:qe.LocationContext.AwaitingReviewVideoItem,actionType:qe.UserAction.SetAccess,entity:qe.EntityType.Video,workflowPhase:qe.WorkflowPhase.Start},n={id:this.model.get("id")};Je.a.logUserAction(n,e)}},{key:"viewOptions",value:function(){return{styles:Ne.a,previewDisplayed:this.options.previewDisplayed,previewSvg:c.a.getSvg(c.b.Preview)}}}])&&Xe(n.prototype,t),i&&Xe(n,i),l}(u.a.Component),ln=t(1073),an=t.n(ln);function sn(e){return(sn="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}function un(e,n){for(var t=0;t<n.length;t++){var o=n[t];o.enumerable=o.enumerable||!1,o.configurable=!0,"value"in o&&(o.writable=!0),Object.defineProperty(e,o.key,o)}}function cn(e,n){return(cn=Object.setPrototypeOf||function(e,n){return e.__proto__=n,e})(e,n)}function pn(e){var n=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(e){return!1}}();return function(){var t,o=hn(e);if(n){var i=hn(this).constructor;t=Reflect.construct(o,arguments,i)}else t=o.apply(this,arguments);return fn(this,t)}}function fn(e,n){return!n||"object"!==sn(n)&&"function"!=typeof n?function(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}(e):n}function hn(e){return(hn=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)})(e)}var dn=function(e){!function(e,n){if("function"!=typeof n&&null!==n)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(n&&n.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),n&&cn(e,n)}(l,e);var n,t,i,r=pn(l);function l(e){return function(e,n){if(!(e instanceof n))throw new TypeError("Cannot call a class as a function")}(this,l),r.call(this,e)}return n=l,(t=[{key:"name",get:function(){return"VideoItemVideoAccessComponent"}},{key:"template",get:function(){return an.a}},{key:"lang",get:function(){return"shared.videoItemVideoAccessActions"}},{key:"className",get:function(){return"d-flex h-100 flex-column align-items-end justify-content-between"}},{key:"appLinks",get:function(){return{".applink-manage-video-access":{application:o.b.VIDEO_ACCESS,action:o.a.Shared.MANAGE_VIDEO_ACCESS,args:[this.model.get("id")]}}}},{key:"events",value:function(){return e={"click .applink-manage-video-access":"onClickManageVideoAccess"},n="click .".concat(Ne.a.showPreview),t="onClickShowPreview",n in e?Object.defineProperty(e,n,{value:t,enumerable:!0,configurable:!0,writable:!0}):e[n]=t,e;var e,n,t}},{key:"onClickManageVideoAccess",value:function(e){e.stopPropagation(),this.logAction()}},{key:"onClickShowPreview",value:function(e){e.stopPropagation(),this.options.channelName&&Me.Radio.channel(this.options.channelName).trigger("click:show:preview")}},{key:"logAction",value:function(){var e={location:qe.LocationContext.VideoListItem,actionType:qe.UserAction.SetAccess,entity:qe.EntityType.Video,workflowPhase:qe.WorkflowPhase.Start},n={id:this.model.get("id")};Je.a.logUserAction(n,e)}},{key:"viewOptions",value:function(){return{styles:Ne.a,previewDisplayed:this.options.previewDisplayed,previewSvg:c.a.getSvg(c.b.Preview)}}}])&&un(n.prototype,t),i&&un(n,i),l}(u.a.Component),gn=t(1057),mn=t(1074),yn=t(9),vn=t(3),bn=t(310),kn=t(1059),wn=t(303),Cn=t(1075),On=t.n(Cn);function xn(e){return(xn="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}function En(e,n){for(var t=0;t<n.length;t++){var o=n[t];o.enumerable=o.enumerable||!1,o.configurable=!0,"value"in o&&(o.writable=!0),Object.defineProperty(e,o.key,o)}}function Sn(e,n){return(Sn=Object.setPrototypeOf||function(e,n){return e.__proto__=n,e})(e,n)}function Pn(e){var n=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(e){return!1}}();return function(){var t,o=In(e);if(n){var i=In(this).constructor;t=Reflect.construct(o,arguments,i)}else t=o.apply(this,arguments);return Rn(this,t)}}function Rn(e,n){return!n||"object"!==xn(n)&&"function"!=typeof n?function(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}(e):n}function In(e){return(In=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)})(e)}var _n=function(e){!function(e,n){if("function"!=typeof n&&null!==n)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(n&&n.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),n&&Sn(e,n)}(l,e);var n,t,i,r=Pn(l);function l(e){return function(e,n){if(!(e instanceof n))throw new TypeError("Cannot call a class as a function")}(this,l),r.call(this,e)}return n=l,(t=[{key:"name",get:function(){return"ExpandableTagListComponent"}},{key:"template",get:function(){return On.a}},{key:"lang",get:function(){return"libraryEditor.expandableTagList"}},{key:"defaults",get:function(){return{initialTagDisplayCount:5,expandedTagDisplayCount:10}}},{key:"appLinks",get:function(){return{".applink-video-details":{application:o.b.LIBRARY_EDITOR,action:o.a.LibraryEditor.VIDEO_DETAILS,args:[this.options.videoId]}}}},{key:"events",value:function(){return{"click .show-more-tags":"onClickShowMoreTags"}}},{key:"regions",value:function(){return{tags:{replaceElement:!0,el:".tags-region"}}}},{key:"onClickShowMoreTags",value:function(){this.showingMoreTags=!0,this.options.channelName&&Me.Radio.channel(this.options.channelName).trigger("show:more:tags"),this.render()}},{key:"getTagCollection",value:function(){var e=this.showingMoreTags?this.options.expandedTagDisplayCount:this.options.initialTagDisplayCount;return new bn.a(this.collection.slice(0,e))}},{key:"getExtraTagsInfo",value:function(){if(!this.showingMoreTags)return vn.a.getPhrase(this.lang,"extraTags",{smartCount:s.max([this.collection.length-this.options.initialTagDisplayCount,0])})}},{key:"renderTags",value:function(){var e=new kn.a({collection:this.getTagCollection(),behavior:wn.b.Link});this.showChildView("tags",e)}},{key:"viewOptions",value:function(){return{expandable:this.collection.length>this.options.initialTagDisplayCount&&!this.showingMoreTags,extraTagsText:this.getExtraTagsInfo(),moreTags:this.showingMoreTags&&this.collection.length>this.options.expandedTagDisplayCount}}},{key:"onRender",value:function(){this.renderTags()}}])&&En(n.prototype,t),i&&En(n,i),l}(u.a.Component),Tn=t(1076),Vn=t.n(Tn),jn=t(1077),Mn=t.n(jn);function Ln(e){return(Ln="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}function Bn(e,n){for(var t=0;t<n.length;t++){var o=n[t];o.enumerable=o.enumerable||!1,o.configurable=!0,"value"in o&&(o.writable=!0),Object.defineProperty(e,o.key,o)}}function An(e,n){return(An=Object.setPrototypeOf||function(e,n){return e.__proto__=n,e})(e,n)}function Dn(e){var n=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(e){return!1}}();return function(){var t,o=Un(e);if(n){var i=Un(this).constructor;t=Reflect.construct(o,arguments,i)}else t=o.apply(this,arguments);return Nn(this,t)}}function Nn(e,n){return!n||"object"!==Ln(n)&&"function"!=typeof n?function(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}(e):n}function Un(e){return(Un=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)})(e)}var Hn=function(e){!function(e,n){if("function"!=typeof n&&null!==n)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(n&&n.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),n&&An(e,n)}(l,e);var n,t,i,r=Dn(l);function l(e){return function(e,n){if(!(e instanceof n))throw new TypeError("Cannot call a class as a function")}(this,l),r.call(this,e)}return n=l,(t=[{key:"initialize",value:function(){this.listenTo(this.model,"change",this.render),this.listenTo(this.channelName,"show:more:tags",this.onClickShowMoreTags)}},{key:"name",get:function(){return"VideoItemPreviewComponent"}},{key:"template",get:function(){return Vn.a}},{key:"lang",get:function(){return"shared.videoItemPreview"}},{key:"className",get:function(){return"row border-top px-3 m-0"}},{key:"channelName",get:function(){return"".concat(this.name).concat(this.cid)}},{key:"appLinks",get:function(){return{".applink-video-details":{application:o.b.LIBRARY_EDITOR,action:o.a.LibraryEditor.VIDEO_DETAILS,args:[this.model.get("id")]}}}},{key:"behaviors",get:function(){return[{behaviorClass:p.a,selector:".tool-tip"}]}},{key:"regions",value:function(){return{partialLoadingContainer:{el:".content-container-region",replaceElement:!1,partialLoading:yn.h.VideoItemPreview},description:".description-region",preview:".video-preview-region",tags:{replaceElement:!0,el:".tags-region"}}}},{key:"events",value:function(){return{click:"onClick"}}},{key:"onClick",value:function(e){e.stopPropagation()}},{key:"onClickShowMoreTags",value:function(){Me.Radio.channel(this.options.channelName).trigger("resize:preview")}},{key:"showTags",value:function(){return!(!this.model.tags||!this.model.tags.length)}},{key:"renderDescription",value:function(){if(this.model&&this.model.get("description")){var e=new gn.a({model:this.model,highlighter:!0,size:gn.b.Small,truncate:!0});this.showChildView("description",e)}}},{key:"renderTags",value:function(){if(this.showTags()){var e=new _n({collection:this.model.tags,videoId:this.model.id&&this.model.get("id"),channelName:this.channelName});this.showChildView("tags",e)}}},{key:"renderVideoPreview",value:function(){var e=new mn.a({model:this.model,webPlayerUrl:this.options.webPlayerUrl,analyticsOptions:{location:qe.LocationContext.VideoItemPreview},currentUser:this.options.currentUser});this.showChildView("preview",e)}},{key:"getSubtitleLanguage",value:function(){if(!this.model.subtitles||!this.model.get("subtitles").length)return"";var e=s.uniq(this.model.get("subtitles").map((function(e){return e.get("language")})));return s.map(e,(function(e){return CVLanguages.getFullEnglishName(e)})).join(", ")}},{key:"getDetails",value:function(e){if(!this.model[e]||!this.model.get(e).length)return"";var n=this.model.get(e).length;return n>1?"".concat(n," ").concat(e):"".concat(vn.a.getPhrase(this.lang,"one")," ").concat(e.slice(0,-1))}},{key:"onBeforeRender",value:function(){return!(!this.model||!this.model.get("dataFetched"))||(Me.Radio.channel(this.options.collectionViewChannel).trigger("fetch:video:with:metadata",this.options.videoId),!(!this.model||!this.model.get("dataFetched"))&&void 0)}},{key:"viewOptions",value:function(){if(this.model&&this.model.get("dataFetched")){var e=this.model.get("duration");return{styles:Mn.a,ratingClass:this.model.rating&&h.h.mapRatingToClass(this.model.rating.get("value")),showTags:this.showTags(),description:this.model.get("description"),duration:e&&f.e.ToDisplayDuration(e),chapters:this.getDetails("chapters"),interactives:this.model.interactives&&this.model.get("interactives").length,subtitles:this.getSubtitleLanguage(),resources:this.getDetails("resources"),links:this.getDetails("links"),externalLink:this.options.externalLink,openExternalSvg:c.a.getSvg(c.b.NewWindow)}}}},{key:"onRender",value:function(){this.renderDescription(),this.renderTags(),this.renderVideoPreview()}}])&&Bn(n.prototype,t),i&&Bn(n,i),l}(u.a.Component),Wn=t(1078),zn=t.n(Wn);function Fn(e){return(Fn="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}function Yn(e,n){for(var t=0;t<n.length;t++){var o=n[t];o.enumerable=o.enumerable||!1,o.configurable=!0,"value"in o&&(o.writable=!0),Object.defineProperty(e,o.key,o)}}function Gn(e,n){return(Gn=Object.setPrototypeOf||function(e,n){return e.__proto__=n,e})(e,n)}function Kn(e){var n=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(e){return!1}}();return function(){var t,o=Jn(e);if(n){var i=Jn(this).constructor;t=Reflect.construct(o,arguments,i)}else t=o.apply(this,arguments);return qn(this,t)}}function qn(e,n){return!n||"object"!==Fn(n)&&"function"!=typeof n?function(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}(e):n}function Jn(e){return(Jn=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)})(e)}var Zn,Qn,$n,Xn,et,nt,tt,ot,it,rt=function(e){!function(e,n){if("function"!=typeof n&&null!==n)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(n&&n.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),n&&Gn(e,n)}(r,e);var n,t,o,i=Kn(r);function r(e){return function(e,n){if(!(e instanceof n))throw new TypeError("Cannot call a class as a function")}(this,r),i.call(this,e)}return n=r,(t=[{key:"initialize",value:function(){this.bindListeners()}},{key:"name",get:function(){return"VideoItemProcessingActionsComponent"}},{key:"template",get:function(){return zn.a}},{key:"lang",get:function(){return"shared.videoItemProcessingActions"}},{key:"className",get:function(){return"d-flex h-100 flex-column align-items-end justify-content-between"}},{key:"events",value:function(){return{"click .cancel":"onClickCancel","click .retry":"onClickRetry"}}},{key:"onClickCancel",value:function(){var e=this.pendingItem.get("video").get("name");f.b.generateDialog(e,this.options.channelName,"cancel:pending:item",this.pendingItem)}},{key:"onClickRetry",value:function(){Me.Radio.channel(this.options.channelName).trigger("retry:pending:item",this.pendingItem)}},{key:"bindListeners",value:function(){this.model.get("status")===K.a.Processing&&this.options.pendingItems&&(this.pendingItem||(this.listenTo(this.options.pendingItems,"update",this.mapPendingItem),this.mapPendingItem()))}},{key:"mapPendingItem",value:function(){this.pendingItem=this.options.pendingItems.get(this.model.get("id")),this.render(),this.pendingItem&&(this.stopListening(this.options.pendingItems,"update"),this.listenTo(this.pendingItem,"change:pendingProcessStatus",this.render))}},{key:"viewOptions",value:function(){return{hasError:q.a.hasError(this.pendingItem)}}},{key:"onBeforeRender",value:function(){return!!this.pendingItem}}])&&Yn(n.prototype,t),o&&Yn(n,o),r}(u.a.Component),lt=t(1048),at=t.n(lt),st=t(196),ut=t(1028);function ct(e,n,t){return n in e?Object.defineProperty(e,n,{value:t,enumerable:!0,configurable:!0,writable:!0}):e[n]=t,e}t.d(n,"a",(function(){return mt}));var pt=ut.b,ft=ut.a,ht=function(e){return{component:r.a,options:{model:e.model,lazyload:e.shouldLazyLoadThumbnail(),thumbnailOptions:{size:l.a.Small},href:i.a.urlBuilder(i.a.safeUrlConcat(e.options.config.get("onlineUrl"),"videos/".concat(e.model.id)),{loginPrompt:!1}),channelName:e.channelName}}},dt=function(e){return{component:Hn,options:{model:e.options.videoWithMetadata,videoId:e.model.id.toString(),channelName:e.channelName,collectionViewChannel:e.options.collectionViewChannel,webPlayerUrl:e.options.config.get("webPlayerUrl"),currentUser:e.options.currentUser}}},gt=function(e){return{component:Hn,options:{model:e.options.videoWithMetadata,videoId:e.model.id.toString(),channelName:e.channelName,collectionViewChannel:e.options.collectionViewChannel,webPlayerUrl:e.options.config.get("webPlayerUrl"),externalLink:i.a.urlBuilder(i.a.safeUrlConcat(e.options.config.get("onlineUrl"),"videos/".concat(e.model.id)),{loginPrompt:!1}),currentUser:e.options.currentUser}}},mt={componentOptions:(nt={},ct(nt,pt.Base,(Zn={},ct(Zn,ft.Checkbox,(function(e){return{component:a.a,options:{className:"d-inline-flex align-items-center mr-3 ".concat(at.a.checkboxContainer),checkboxClassName:at.a.checkbox,itemId:e.model.id,key:e.collectionIdentifier.toString(),type:st.CheckboxTypes.VIDEO_LIST}}})),ct(Zn,ft.Thumbnail,(function(e){return{component:r.a,options:{model:e.model,lazyload:e.shouldLazyLoadThumbnail(),thumbnailOptions:{size:l.a.Small},appLink:{application:o.b.LIBRARY_EDITOR,action:o.a.LibraryEditor.VIDEO_DETAILS,args:[e.model.id]},channelName:e.channelName}}})),ct(Zn,ft.Metadata,(function(e){return{component:A,options:{model:e.model,sourceMetadataOptions:e.options.sourceMetadataOptions}}})),ct(Zn,ft.VideoActions,(function(e){return{component:Ge,options:{model:e.model,channelName:e.channelName,previewDisplayed:e.viewModel.get("previewOpen"),videoActionsOptions:{model:e.model,application:e.options.application,collectionIdentifier:e.options.collectionIdentifier,customerHasLocalCache:e.options.customerHasLocalCache,customerHasExchange:e.options.customerHasExchange,customerHasCustomLibrary:e.options.customerHasCustomLibrary,analyticsOptions:e.options.analyticsOptions,config:e.options.config,collectionSource:e.options.videoCollectionSource}}}})),ct(Zn,ft.VideoInfo,dt),Zn)),ct(nt,pt.AwaitingReview,(Qn={},ct(Qn,ft.Thumbnail,ht),ct(Qn,ft.Metadata,(function(e){return{component:fe,options:{model:e.model,config:e.options.config}}})),ct(Qn,ft.VideoActions,(function(e){return{component:rn,options:{model:e.model,channelName:e.channelName,previewDisplayed:e.viewModel.get("previewOpen"),analyticsOptions:e.options.analyticsOptions}}})),ct(Qn,ft.VideoInfo,gt),Qn)),ct(nt,pt.PastReleases,($n={},ct($n,ft.Thumbnail,ht),ct($n,ft.Metadata,(function(e){return{component:xe,options:{model:e.model,config:e.options.config}}})),ct($n,ft.VideoInfo,gt),$n)),ct(nt,pt.VideoAccess,(Xn={},ct(Xn,ft.VideoActions,(function(e){return{component:dn,options:{model:e.model,channelName:e.channelName,previewDisplayed:e.viewModel.get("previewOpen"),analyticsOptions:e.options.analyticsOptions}}})),ct(Xn,ft.Metadata,(function(e){return{component:G,options:{model:e.model,config:e.options.config,sourceMetadataOptions:{showFolder:!0}}}})),ct(Xn,ft.VideoInfo,(function(e){return f.y.hasCustomLibrary(e.model)?dt(e):gt(e)})),Xn)),ct(nt,pt.ProcessingVideo,(et={},ct(et,ft.Metadata,(function(e){return{component:oe,options:{model:e.model,pendingItems:e.options.pendingItems}}})),ct(et,ft.VideoActions,(function(e){return{component:rt,options:{model:e.model,pendingItems:e.options.pendingItems,channelName:e.options.collectionViewChannel,analyticsOptions:e.options.analyticsOptions}}})),et)),ct(nt,pt.Draggable,{}),ct(nt,pt.Search,ct({},ft.Metadata,(function(e){return{component:je,options:{model:e.model,sourceMetadataOptions:{showFolder:!0,highlight:!0}}}}))),nt),onBeforeRender:(it={},ct(it,pt.Base,(tt={},ct(tt,ft.Checkbox,(function(e){return!!e.options.allowBulk})),ct(tt,ft.VideoInfo,(function(e){return!!e.viewModel.get("previewOpen")})),tt)),ct(it,pt.ProcessingVideo,(ot={},ct(ot,ft.Checkbox,(function(){return!1})),ct(ot,ft.VideoInfo,(function(){return!1})),ot)),it)}},1051:function(e,n,t){"use strict";var o=t(2),i=t(1),r=t(1028),l=t(1050),a=t(1052);var s,u,c,p=(s={},u=r.b.Draggable,c=function(e){return[{behaviorClass:a.a,collectionIdentifier:e.options.collectionIdentifier,model:e.options.model,selector:"drag-selector"}]},u in s?Object.defineProperty(s,u,{value:c,enumerable:!0,configurable:!0,writable:!0}):s[u]=c,s),f=t(18);t.d(n,"a",(function(){return g}));var h=r.b.Base,d=l.a,g={renderRegions:function(e,n){i.each(e.regions,(function(t,o){m.onBeforeRenderRegion(e,n,o)&&m.renderRegion(e,n,o)}))},onBeforeRenderRegion:function(e,n,t){var o=d.onBeforeRender[n];if(o||(o=d.onBeforeRender[h]),!o)return!0;var r=o[t];return!r||(!i.isFunction(r)||r(e))},renderRegion:function(e,n,t){var o=m.getComponent(e,n,t);e.showChildView(t,o)},getComponent:function(e,n,t){var i=d.componentOptions[n];i||o.a.ErrorHelper.throw(new f.a("Must define VideoItemComponent type options: ".concat(r.b[n],".")));var l=i[t];l||(l=d.componentOptions[h][t]),l||o.a.ErrorHelper.throw(new f.a("Must define VideoItemComponent region options: ".concat(t,".")));var a=l(e);return a.component||o.a.ErrorHelper.throw(new f.a("Must define component for region: ".concat(t,",\n in VideoItemComponent type: ").concat(r.b[n],"."))),new a.component(a.options||{})},getBehaviors:function(e,n){return p[n]?p[n](e):null}},m=g},1052:function(e,n,t){"use strict";t.d(n,"a",(function(){return C}));var o=t(1),i=t(6),r=t(2),l=t(18),a=t(17),s=t(0),u=t(13),c=t(3),p=t(1047),f=t(196),h=t(1055),d=t.n(h);function g(e){return(g="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}function m(e,n){if(!(e instanceof n))throw new TypeError("Cannot call a class as a function")}function y(e,n){for(var t=0;t<n.length;t++){var o=n[t];o.enumerable=o.enumerable||!1,o.configurable=!0,"value"in o&&(o.writable=!0),Object.defineProperty(e,o.key,o)}}function v(e,n){return(v=Object.setPrototypeOf||function(e,n){return e.__proto__=n,e})(e,n)}function b(e){var n=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(e){return!1}}();return function(){var t,o=w(e);if(n){var i=w(this).constructor;t=Reflect.construct(o,arguments,i)}else t=o.apply(this,arguments);return k(this,t)}}function k(e,n){return!n||"object"!==g(n)&&"function"!=typeof n?function(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}(e):n}function w(e){return(w=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)})(e)}var C=function(e){!function(e,n){if("function"!=typeof n&&null!==n)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(n&&n.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),n&&v(e,n)}(k,e);var n,t,h,g=b(k);function k(){return m(this,k),g.apply(this,arguments)}return n=k,(t=[{key:"initialize",value:function(){this.options.model||r.a.ErrorHelper.throw(new l.a("DraggableVideoBehavior must be passed a Video model")),this.listenTo(s.w.VIDEO_DRAG_DROP,"drag:style:".concat(this.options.model.id),this.styleDragStart),this.listenTo(s.w.VIDEO_DRAG_DROP,"drag:stop",this.styleDragStop)}},{key:"lang",get:function(){return"libraryEditor.behaviors"}},{key:"helper",value:function(){var e=this.getVideoModels();return new p.b({text:e.length>1?c.a.getPhrase(this.lang,"videos",{videoCount:e.length}):e[0].get("name"),svg:a.a.getSvg(a.b.Play)}).render().el}},{key:"getSelector",value:function(){return this.view.getUI(this.options.selector)}},{key:"styleDragStart",value:function(){this.getSelector().addClass(d.a.draggingVideo)}},{key:"styleDragStop",value:function(){this.getSelector().removeClass(d.a.draggingVideo)}},{key:"start",value:function(){var e=this.getVideoModels(),n=i.Radio.channel(s.w.VIDEO_DRAG_DROP);n.trigger("drag:start",e,this.options.collectionIdentifier),o.each(e,(function(e){return n.trigger("drag:style:".concat(e.id))}))}},{key:"stop",value:function(){i.Radio.channel(s.w.VIDEO_DRAG_DROP).trigger("drag:stop")}},{key:"getVideoModels",value:function(){var e=this,n=u.a.GetSelectedModels({key:this.options.collectionIdentifier.toString(),type:f.CheckboxTypes.VIDEO_LIST,collection:this.view.model.collection});return o.any(n,(function(n){return n.id===e.view.model.id}))||(n=[this.view.model]),n.length?n:[this.view.model]}},{key:"getClassMappings",value:function(){return{"ui-draggable":p.c.draggable,"ui-draggable-disabled":p.c.disabled,"ui-draggable-handle":p.c.handle,"ui-draggable-dragging":p.c.dragging}}},{key:"onRender",value:function(){var e=this.getSelector(),n={helper:o.bind(this.helper,this),start:o.bind(this.start,this),stop:o.bind(this.stop,this)};n.classes=this.getClassMappings(),e.draggable(o.extend({},p.a,n))}},{key:"onBeforeDestroy",value:function(){var e=this.getSelector();e.draggable("instance")&&e.draggable("destroy")}}])&&y(n.prototype,t),h&&y(n,h),k}(r.a.Behavior)},1055:function(e,n,t){e.exports={draggingVideo:"_3cCHx"}},1056:function(e,n,t){"use strict";t.d(n,"a",(function(){return d}));var o=t(2),i=t(1042),r=t.n(i),l=t(13),a=t(1049);function s(e){return(s="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}function u(e,n){for(var t=0;t<n.length;t++){var o=n[t];o.enumerable=o.enumerable||!1,o.configurable=!0,"value"in o&&(o.writable=!0),Object.defineProperty(e,o.key,o)}}function c(e,n){return(c=Object.setPrototypeOf||function(e,n){return e.__proto__=n,e})(e,n)}function p(e){var n=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(e){return!1}}();return function(){var t,o=h(e);if(n){var i=h(this).constructor;t=Reflect.construct(o,arguments,i)}else t=o.apply(this,arguments);return f(this,t)}}function f(e,n){return!n||"object"!==s(n)&&"function"!=typeof n?function(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}(e):n}function h(e){return(h=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)})(e)}var d=function(e){!function(e,n){if("function"!=typeof n&&null!==n)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(n&&n.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),n&&c(e,n)}(s,e);var n,t,o,i=p(s);function s(e){return function(e,n){if(!(e instanceof n))throw new TypeError("Cannot call a class as a function")}(this,s),i.call(this,e)}return n=s,(t=[{key:"initialize",value:function(){if(this.getViewModel(),this.bindListeners(),this.options.checked){var e=this.getItemId();this.model.set(e,!0,{silent:!0})}}},{key:"name",get:function(){return"CheckboxComponent"}},{key:"className",get:function(){return this.options.className}},{key:"template",get:function(){return r.a}},{key:"getViewModel",value:function(){this.model=l.a.GetViewModel(this.options.key,this.options.type)}},{key:"bindListeners",value:function(){this.options.disabled||this.listenTo(this.model,"change:all change:".concat(this.getItemId()),this.render)}},{key:"events",value:function(){return{"click .custom-checkbox":"onClickCheckbox","change .custom-control-input":"onChangeCheckbox"}}},{key:"getItemId",value:function(){return this.options.itemId.toString()}},{key:"onClickCheckbox",value:function(e){e.stopPropagation()}},{key:"onChangeCheckbox",value:function(){if(!this.options.disabled){var e=this.getItemId();this.model.has(e)||this.model.get("all")?!1===this.model.get(e)?this.model.set(e,!0):(this.model.set(e,!1),this.model.set(a.a,!1)):this.model.set(e,!0)}}},{key:"viewOptions",value:function(){var e=this.getItemId();return{id:e,checked:this.model.has(e)?this.model.get(e):this.model.get("all"),disabled:this.options.disabled,checkboxClassName:this.options.checkboxClassName}}}])&&u(n.prototype,t),o&&u(n,o),s}(o.a.Component)},1060:function(e,n,t){"use strict";t.d(n,"a",(function(){return g}));var o=t(1),i=t(2),r=t(4),l=t(42),a=t(1061),s=t.n(a);function u(e){return(u="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}function c(e,n){for(var t=0;t<n.length;t++){var o=n[t];o.enumerable=o.enumerable||!1,o.configurable=!0,"value"in o&&(o.writable=!0),Object.defineProperty(e,o.key,o)}}function p(e,n){return(p=Object.setPrototypeOf||function(e,n){return e.__proto__=n,e})(e,n)}function f(e){var n=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(e){return!1}}();return function(){var t,o=d(e);if(n){var i=d(this).constructor;t=Reflect.construct(o,arguments,i)}else t=o.apply(this,arguments);return h(this,t)}}function h(e,n){return!n||"object"!==u(n)&&"function"!=typeof n?function(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}(e):n}function d(e){return(d=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)})(e)}var g=function(e){!function(e,n){if("function"!=typeof n&&null!==n)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(n&&n.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),n&&p(e,n)}(u,e);var n,t,i,a=f(u);function u(e){return function(e,n){if(!(e instanceof n))throw new TypeError("Cannot call a class as a function")}(this,u),a.call(this,e)}return n=u,(t=[{key:"defaults",get:function(){return{cursors:{},cursorParamName:"cursor"}}},{key:"name",get:function(){return"PaginationComponent"}},{key:"template",get:function(){return s.a}},{key:"lang",get:function(){return"shared._pagination"}},{key:"appLinks",get:function(){var e={};if(!this.options.cursors)return{};if(this.options.cursors.previous){var n=this.options.cursors.previous,t=this.buildCursor(this.options.cursors.previous);+n<=1&&!0!==this.options.allowFirstPageCursor&&delete t.params.cursor,e[".previous-applink"]=t}return this.options.cursors.next&&(e[".next-applink"]=this.buildCursor(this.options.cursors.next)),e}},{key:"events",value:function(){return{"click .previous-applink":"onClickPrevious","click .next-applink":"onClickNext"}}},{key:"buildCursor",value:function(e){return{application:this.options.appLink.application,action:this.options.appLink.action,args:this.options.appLink.args,params:o.extend({},this.options.appLink.params,(n={},t=this.options.cursorParamName,i=e,t in n?Object.defineProperty(n,t,{value:i,enumerable:!0,configurable:!0,writable:!0}):n[t]=i,n))};var n,t,i}},{key:"onClickPrevious",value:function(){this.logAction("previous")}},{key:"onClickNext",value:function(){this.logAction("next")}},{key:"logAction",value:function(e){var n=l.a.mergeOptions(this.options.analyticsOptions,{location:r.LocationContext.Pagination,entity:r.EntityType.Pagination,actionType:r.UserAction.Navigate}),t={id:this.options.collectionId,page:e};l.a.logUserAction(t,n)}},{key:"viewOptions",value:function(){return{cursors:this.options.cursors}}},{key:"onBeforeRender",value:function(){return!!this.options.cursors}}])&&c(n.prototype,t),i&&c(n,i),u}(i.a.Component)},1061:function(e,n,t){var o=t(10);e.exports=(o.default||o).template({1:function(e,n,t,o,i){return"disabled"},compiler:[8,">= 4.3.0"],main:function(e,n,t,o,i){e.propertyIsEnumerable;var r,l=null!=n?n:e.nullContext||{},a=e.hooks.helperMissing,s=e.escapeExpression;return'<div class="p-3">\r\n <a class="btn previous-applink btn-secondary '+(null!=(r=t.unless.call(l,null!=(r=null!=(r=null!=n?n.options:n)?r.cursors:r)?r.previous:r,{name:"unless",hash:{},fn:e.program(1,i,0),inverse:e.noop,data:i}))?r:"")+'">'+s((t.lang||n&&n.lang||a).call(l,"previous",{name:"lang",hash:{},data:i}))+'</a>\r\n <a class="btn next-applink btn-secondary '+(null!=(r=t.unless.call(l,null!=(r=null!=(r=null!=n?n.options:n)?r.cursors:r)?r.next:r,{name:"unless",hash:{},fn:e.program(1,i,0),inverse:e.noop,data:i}))?r:"")+'">'+s((t.lang||n&&n.lang||a).call(l,"next",{name:"lang",hash:{},data:i}))+"</a>\r\n</div>"},useData:!0})},1062:function(e,n,t){var o=t(10);e.exports=(o.default||o).template({1:function(e,n,t,o,i){e.propertyIsEnumerable;var r,l=e.escapeExpression;return' <span class="badge p-1 '+l(e.lambda(null!=(r=null!=(r=null!=n?n.options:n)?r.styles:r)?r.interactive:r,n))+'">'+l((t.lang||n&&n.lang||e.hooks.helperMissing).call(null!=n?n:e.nullContext||{},"interactive",{name:"lang",hash:{},data:i}))+"</span>\r\n"},3:function(e,n,t,o,i){e.propertyIsEnumerable;var r,l=e.lambda,a=e.escapeExpression;return' <span class="badge p-1 tool-tip '+a(l(null!=(r=null!=(r=null!=n?n.options:n)?r.styles:r)?r.rating:r,n))+" "+a(l(null!=(r=null!=n?n.options:n)?r.ratingColorClass:r,n))+'" title="'+a(l(null!=(r=null!=n?n.rating:n)?r.name:r,n))+'">'+a(l(null!=(r=null!=n?n.rating:n)?r.code:r,n))+"</span>\r\n"},5:function(e,n,t,o,i){e.propertyIsEnumerable;var r,l=e.lambda;return' <span class="d-inline-block tool-tip '+e.escapeExpression(l(null!=(r=null!=(r=null!=n?n.options:n)?r.styles:r)?r.svgContainer:r,n))+'" title="Subtitles">'+(null!=(r=l(null!=(r=null!=n?n.options:n)?r.closeCaptionSvg:r,n))?r:"")+"</span>\r\n"},7:function(e,n,t,o,i){e.propertyIsEnumerable;var r,l=e.lambda;return' <span class="d-inline-block tool-tip '+e.escapeExpression(l(null!=(r=null!=(r=null!=n?n.options:n)?r.styles:r)?r.svgContainer:r,n))+'" title="Resources">'+(null!=(r=l(null!=(r=null!=n?n.options:n)?r.resourcesSvg:r,n))?r:"")+"</span>\r\n"},9:function(e,n,t,o,i){e.propertyIsEnumerable;var r,l=e.lambda,a=e.escapeExpression;return' <span class="badge p-1 '+a(l(null!=(r=null!=n?n.options:n)?r.awaitingReviewBadgeClass:r,n))+'">'+a(l(null!=(r=null!=n?n.options:n)?r.awaitingReviewMsg:r,n))+"</span>\r\n"},11:function(e,n,t,o,i){e.propertyIsEnumerable;var r,l=e.lambda,a=e.escapeExpression;return' <span class="badge p-1 '+a(l(null!=(r=null!=(r=null!=n?n.options:n)?r.styles:r)?r.restrictionBadgeClass:r,n))+'">'+a(l(null!=(r=null!=n?n.options:n)?r.restrictionMessage:r,n))+"</span>\r\n"},compiler:[8,">= 4.3.0"],main:function(e,n,t,o,i){e.propertyIsEnumerable;var r,l=null!=n?n:e.nullContext||{};return'<div class="mt-1 '+e.escapeExpression(e.lambda(null!=(r=null!=(r=null!=n?n.options:n)?r.styles:r)?r.badgesWrapper:r,n))+'">\r\n'+(null!=(r=t.if.call(l,null!=(r=null!=n?n.options:n)?r.interactive:r,{name:"if",hash:{},fn:e.program(1,i,0),inverse:e.noop,data:i}))?r:"")+"\r\n"+(null!=(r=t.if.call(l,null!=(r=null!=n?n.rating:n)?r.code:r,{name:"if",hash:{},fn:e.program(3,i,0),inverse:e.noop,data:i}))?r:"")+"\r\n"+(null!=(r=t.if.call(l,null!=(r=null!=n?n.options:n)?r.subtitles:r,{name:"if",hash:{},fn:e.program(5,i,0),inverse:e.noop,data:i}))?r:"")+"\r\n"+(null!=(r=t.if.call(l,null!=(r=null!=n?n.options:n)?r.resources:r,{name:"if",hash:{},fn:e.program(7,i,0),inverse:e.noop,data:i}))?r:"")+"\r\n"+(null!=(r=t.if.call(l,null!=(r=null!=n?n.options:n)?r.awaitingReviewMsg:r,{name:"if",hash:{},fn:e.program(9,i,0),inverse:e.noop,data:i}))?r:"")+"\r\n"+(null!=(r=t.if.call(l,null!=(r=null!=n?n.options:n)?r.restrictionMessage:r,{name:"if",hash:{},fn:e.program(11,i,0),inverse:e.noop,data:i}))?r:"")+"</div>"},useData:!0})},1063:function(e,n,t){e.exports={interactive:"_37GpR",rating:"_2lAYT",svgContainer:"_19ncQ",badgesWrapper:"_26lCi",restrictionBadgeClass:"UdQeS",reviewBadge:"ExFLF",urgentReviewBadge:"_3dcfL"}},1064:function(e,n,t){var o=t(10);e.exports=(o.default||o).template({1:function(e,n,t,o,i){e.propertyIsEnumerable;var r,l=e.lambda,a=e.escapeExpression;return' <span class="d-inline-block ml-1 tool-tip '+a(l(null!=(r=null!=(r=null!=n?n.options:n)?r.styles:r)?r.svgContainer:r,n))+'" title="'+a(l(null!=(r=null!=n?n.options:n)?r.restrictionMessage:r,n))+'">'+(null!=(r=l(null!=(r=null!=n?n.options:n)?r.lockSvg:r,n))?r:"")+"</span>\r\n"},compiler:[8,">= 4.3.0"],main:function(e,n,t,o,i){e.propertyIsEnumerable;var r,l,a=null!=n?n:e.nullContext||{};return'<div class="series-region"></div>\r\n<a class="cursor-pointer applink-show-video h6 text-dark">'+e.escapeExpression("function"==typeof(l=null!=(l=t.name||(null!=n?n.name:n))?l:e.hooks.helperMissing)?l.call(a,{name:"name",hash:{},data:i}):l)+"</a>\r\n"+(null!=(r=t.if.call(a,null!=(r=null!=n?n.options:n)?r.hasAdminRestriction:r,{name:"if",hash:{},fn:e.program(1,i,0),inverse:e.noop,data:i}))?r:"")+'<div class="sources-region"></div>\r\n<div class="badges-region"></div>'},useData:!0})},1065:function(e,n,t){var o=t(10);e.exports=(o.default||o).template({1:function(e,n,t,o,i){e.propertyIsEnumerable;var r,l,a=e.lambda,s=e.escapeExpression;return'<a class="cursor-pointer h6 video-title text-dark" href="'+s(a(null!=(r=null!=n?n.options:n)?r.videoUrl:r,n))+'" target="_blank">'+s("function"==typeof(l=null!=(l=t.name||(null!=n?n.name:n))?l:e.hooks.helperMissing)?l.call(null!=n?n:e.nullContext||{},{name:"name",hash:{},data:i}):l)+'</a>\r\n<a class="svg-container d-inline-block align-bottom text-muted no-decoration" href="'+s(a(null!=(r=null!=n?n.options:n)?r.videoUrl:r,n))+'" target="_blank">'+(null!=(r=a(null!=(r=null!=n?n.options:n)?r.openExternalSvg:r,n))?r:"")+"</a>\r\n"},3:function(e,n,t,o,i){var r;e.propertyIsEnumerable;return'<a class="cursor-pointer applink-show-video h6">'+e.escapeExpression("function"==typeof(r=null!=(r=t.name||(null!=n?n.name:n))?r:e.hooks.helperMissing)?r.call(null!=n?n:e.nullContext||{},{name:"name",hash:{},data:i}):r)+"</a>\r\n"},compiler:[8,">= 4.3.0"],main:function(e,n,t,o,i){e.propertyIsEnumerable;var r,l=e.lambda,a=e.escapeExpression;return'<div class="series-region"></div>\r\n'+(null!=(r=t.if.call(null!=n?n:e.nullContext||{},null!=(r=null!=n?n.options:n)?r.linkToOnline:r,{name:"if",hash:{},fn:e.program(1,i,0),inverse:e.program(3,i,0),data:i}))?r:"")+'<span class="d-inline-block ml-1 tool-tip '+a(l(null!=(r=null!=(r=null!=n?n.options:n)?r.styles:r)?r.lock:r,n))+" "+a(l(null!=(r=null!=(r=null!=n?n.options:n)?r.styles:r)?r.svgContainer:r,n))+'" title="'+a(l(null!=(r=null!=n?n.options:n)?r.restrictionMessage:r,n))+'">'+(null!=(r=l(null!=(r=null!=n?n.options:n)?r.lockSvg:r,n))?r:"")+'</span>\r\n<div class="sources-region"></div>\r\n<div class="badges-region"></div>'},useData:!0})},1066:function(e,n,t){var o=t(10);e.exports=(o.default||o).template({1:function(e,n,t,o,i){e.propertyIsEnumerable;var r,l=e.lambda;return' <span class="d-inline-block align-middle ml-1 '+e.escapeExpression(l(null!=(r=null!=(r=null!=n?n.options:n)?r.styles:r)?r.lockSvgContainer:r,n))+'">'+(null!=(r=l(null!=(r=null!=n?n.options:n)?r.lockSvg:r,n))?r:"")+"</span>\r\n"},3:function(e,n,t,o,i){return"text-danger"},5:function(e,n,t,o,i){var r;e.propertyIsEnumerable;return" "+e.escapeExpression(e.lambda(null!=(r=null!=n?n.options:n)?r.status:r,n))+"\r\n"},7:function(e,n,t,o,i){e.propertyIsEnumerable;return" "+e.escapeExpression((t.lang||n&&n.lang||e.hooks.helperMissing).call(null!=n?n:e.nullContext||{},"waiting",{name:"lang",hash:{},data:i}))+"\r\n"},9:function(e,n,t,o,i){e.propertyIsEnumerable;return" <br><i>"+e.escapeExpression((t.lang||n&&n.lang||e.hooks.helperMissing).call(null!=n?n:e.nullContext||{},"anotherAdmin",{name:"lang",hash:{},data:i}))+"</i>\r\n"},compiler:[8,">= 4.3.0"],main:function(e,n,t,o,i){e.propertyIsEnumerable;var r,l,a=null!=n?n:e.nullContext||{};return'<a class="applink-show-video h6 text-dark">'+e.escapeExpression("function"==typeof(l=null!=(l=t.name||(null!=n?n.name:n))?l:e.hooks.helperMissing)?l.call(a,{name:"name",hash:{},data:i}):l)+"</a>\r\n"+(null!=(r=t.if.call(a,null!=(r=null!=n?n.options:n)?r.hasAdminRestriction:r,{name:"if",hash:{},fn:e.program(1,i,0),inverse:e.noop,data:i}))?r:"")+'<div class="processing '+(null!=(r=t.if.call(a,null!=(r=null!=n?n.options:n)?r.hasError:r,{name:"if",hash:{},fn:e.program(3,i,0),inverse:e.noop,data:i}))?r:"")+'">\r\n'+(null!=(r=t.if.call(a,null!=(r=null!=n?n.options:n)?r.hasPendingItem:r,{name:"if",hash:{},fn:e.program(5,i,0),inverse:e.program(7,i,0),data:i}))?r:"")+(null!=(r=t.unless.call(a,null!=(r=null!=n?n.options:n)?r.hasPendingItem:r,{name:"unless",hash:{},fn:e.program(9,i,0),inverse:e.noop,data:i}))?r:"")+"</div>"},useData:!0})},1067:function(e,n,t){var o=t(10);e.exports=(o.default||o).template({compiler:[8,">= 4.3.0"],main:function(e,n,t,o,i){e.propertyIsEnumerable;var r,l,a=e.lambda,s=e.escapeExpression;return'<div class="series-region"></div>\r\n<a class="cursor-pointer h6 video-title text-dark" href="'+s(a(null!=(r=null!=n?n.options:n)?r.videoUrl:r,n))+'" target="_blank">'+s("function"==typeof(l=null!=(l=t.name||(null!=n?n.name:n))?l:e.hooks.helperMissing)?l.call(null!=n?n:e.nullContext||{},{name:"name",hash:{},data:i}):l)+'</a>\r\n<a class="svg-container d-inline-block align-bottom text-muted no-decoration" href="'+s(a(null!=(r=null!=n?n.options:n)?r.videoUrl:r,n))+'" target="_blank">'+(null!=(r=a(null!=(r=null!=n?n.options:n)?r.openExternalSvg:r,n))?r:"")+'</a>\r\n<div class="badges-region"></div>'},useData:!0})},1068:function(e,n,t){var o=t(10);e.exports=(o.default||o).template({1:function(e,n,t,o,i){e.propertyIsEnumerable;var r,l=e.lambda,a=e.escapeExpression;return' <span class="d-inline-block svg-container align-bottom tool-tip '+a(l(null!=(r=null!=(r=null!=n?n.options:n)?r.styles:r)?r.lock:r,n))+'" title="'+a(l(null!=(r=null!=n?n.options:n)?r.restrictionMessage:r,n))+'">'+(null!=(r=l(null!=(r=null!=n?n.options:n)?r.lockSvg:r,n))?r:"")+"</span>\r\n"},compiler:[8,">= 4.3.0"],main:function(e,n,t,o,i){e.propertyIsEnumerable;var r,l,a=e.lambda,s=e.escapeExpression,u=null!=n?n:e.nullContext||{};return'<div class="series-region"></div>\r\n<a class="cursor-pointer h6 video-title text-dark" href="'+s(a(null!=(r=null!=n?n.options:n)?r.videoUrl:r,n))+'" target="_blank">'+s("function"==typeof(l=null!=(l=t.name||(null!=n?n.name:n))?l:e.hooks.helperMissing)?l.call(u,{name:"name",hash:{},data:i}):l)+'</a>\r\n<a class="svg-container d-inline-block align-bottom text-muted no-decoration" href="'+s(a(null!=(r=null!=n?n.options:n)?r.videoUrl:r,n))+'" target="_blank">'+(null!=(r=a(null!=(r=null!=n?n.options:n)?r.openExternalSvg:r,n))?r:"")+"</a>\r\n"+(null!=(r=t.if.call(u,null!=(r=null!=n?n.options:n)?r.hasAdminRestriction:r,{name:"if",hash:{},fn:e.program(1,i,0),inverse:e.noop,data:i}))?r:"")+'<div class="badges-region"></div>'},useData:!0})},1069:function(e,n,t){e.exports={series:"P3914"}},1070:function(e,n,t){var o=t(10);e.exports=(o.default||o).template({1:function(e,n,t,o,i){e.propertyIsEnumerable;var r,l=e.lambda,a=e.escapeExpression;return' <span class="d-inline-block ml-1 tool-tip '+a(l(null!=(r=null!=(r=null!=n?n.options:n)?r.styles:r)?r.svgContainer:r,n))+'" title="'+a(l(null!=(r=null!=n?n.options:n)?r.restrictionMessage:r,n))+'">'+(null!=(r=l(null!=(r=null!=n?n.options:n)?r.lockSvg:r,n))?r:"")+"</span>\r\n"},3:function(e,n,t,o,i){var r;return' <span class="d-block pt-1">'+(null!=(r=e.lambda(n,n))?r:"")+"</span>\r\n"},compiler:[8,">= 4.3.0"],main:function(e,n,t,o,i){e.propertyIsEnumerable;var r,l=null!=n?n:e.nullContext||{};return'<div class="series-region"></div>\r\n<a class="cursor-pointer applink-show-video h6 text-dark">'+(null!=(r=e.lambda(null!=(r=null!=n?n.options:n)?r.name:r,n))?r:"")+"</a>\r\n"+(null!=(r=t.if.call(l,null!=(r=null!=n?n.options:n)?r.hasAdminRestriction:r,{name:"if",hash:{},fn:e.program(1,i,0),inverse:e.noop,data:i}))?r:"")+'<div class="sources-region"></div>\r\n<div class="badges-region"></div>\r\n'+(null!=(r=t.each.call(l,null!=(r=null!=n?n.options:n)?r.keyPhrases:r,{name:"each",hash:{},fn:e.program(3,i,0),inverse:e.noop,data:i}))?r:"")},useData:!0})},1071:function(e,n,t){var o=t(10);e.exports=(o.default||o).template({1:function(e,n,t,o,i){e.propertyIsEnumerable;return e.escapeExpression((t.lang||n&&n.lang||e.hooks.helperMissing).call(null!=n?n:e.nullContext||{},"hide",{name:"lang",hash:{},data:i}))},3:function(e,n,t,o,i){e.propertyIsEnumerable;return e.escapeExpression((t.lang||n&&n.lang||e.hooks.helperMissing).call(null!=n?n:e.nullContext||{},"show",{name:"lang",hash:{},data:i}))},compiler:[8,">= 4.3.0"],main:function(e,n,t,o,i){e.propertyIsEnumerable;var r,l=e.lambda,a=e.escapeExpression,s=null!=n?n:e.nullContext||{};return'<div class="video-actions-region row no-gutters video-item-actions '+a(l(null!=(r=null!=(r=null!=n?n.options:n)?r.styles:r)?r.actions:r,n))+'"></div>\r\n<div class="row no-gutters cursor-pointer video-item-show-preview '+a(l(null!=(r=null!=(r=null!=n?n.options:n)?r.styles:r)?r.showPreview:r,n))+'">\r\n <span class="svg-container">'+(null!=(r=l(null!=(r=null!=n?n.options:n)?r.previewSvg:r,n))?r:"")+"</span>\r\n "+(null!=(r=t.if.call(s,null!=(r=null!=n?n.options:n)?r.previewDisplayed:r,{name:"if",hash:{},fn:e.program(1,i,0),inverse:e.program(3,i,0),data:i}))?r:"")+" "+a((t.lang||n&&n.lang||e.hooks.helperMissing).call(s,"preview",{name:"lang",hash:{},data:i}))+"\r\n</div>"},useData:!0})},1072:function(e,n,t){var o=t(10);e.exports=(o.default||o).template({1:function(e,n,t,o,i){e.propertyIsEnumerable;return e.escapeExpression((t.lang||n&&n.lang||e.hooks.helperMissing).call(null!=n?n:e.nullContext||{},"hide",{name:"lang",hash:{},data:i}))},3:function(e,n,t,o,i){e.propertyIsEnumerable;return e.escapeExpression((t.lang||n&&n.lang||e.hooks.helperMissing).call(null!=n?n:e.nullContext||{},"show",{name:"lang",hash:{},data:i}))},compiler:[8,">= 4.3.0"],main:function(e,n,t,o,i){e.propertyIsEnumerable;var r,l=null!=n?n:e.nullContext||{},a=e.hooks.helperMissing,s=e.escapeExpression,u=e.lambda;return'<button class="approve d-flex btn btn-sm btn-outline-success" type="button">'+s((t.lang||n&&n.lang||a).call(l,"approve",{name:"lang",hash:{},data:i}))+'</button>\r\n<a class="applink-manage-video-access cursor-pointer hover-text-underline py-1">'+(null!=(r=(t.lang||n&&n.lang||a).call(l,"manageAccess",{name:"lang",hash:{},data:i}))?r:"")+'</a> \r\n<div class="row no-gutters cursor-pointer video-item-show-preview '+s(u(null!=(r=null!=(r=null!=n?n.options:n)?r.styles:r)?r.showPreview:r,n))+'"> \r\n <span class="svg-container">'+(null!=(r=u(null!=(r=null!=n?n.options:n)?r.previewSvg:r,n))?r:"")+"</span> \r\n "+(null!=(r=t.if.call(l,null!=(r=null!=n?n.options:n)?r.previewDisplayed:r,{name:"if",hash:{},fn:e.program(1,i,0),inverse:e.program(3,i,0),data:i}))?r:"")+" "+s((t.lang||n&&n.lang||a).call(l,"preview",{name:"lang",hash:{},data:i}))+"\r\n</div> "},useData:!0})},1073:function(e,n,t){var o=t(10);e.exports=(o.default||o).template({1:function(e,n,t,o,i){e.propertyIsEnumerable;return e.escapeExpression((t.lang||n&&n.lang||e.hooks.helperMissing).call(null!=n?n:e.nullContext||{},"hide",{name:"lang",hash:{},data:i}))},3:function(e,n,t,o,i){e.propertyIsEnumerable;return e.escapeExpression((t.lang||n&&n.lang||e.hooks.helperMissing).call(null!=n?n:e.nullContext||{},"show",{name:"lang",hash:{},data:i}))},compiler:[8,">= 4.3.0"],main:function(e,n,t,o,i){e.propertyIsEnumerable;var r,l=null!=n?n:e.nullContext||{},a=e.hooks.helperMissing,s=e.escapeExpression,u=e.lambda;return'<button class="applink-manage-video-access d-flex btn btn-sm btn-secondary" type="button">'+s((t.lang||n&&n.lang||a).call(l,"manageAccess",{name:"lang",hash:{},data:i}))+'</button>\r\n<div class="row no-gutters cursor-pointer video-item-show-preview '+s(u(null!=(r=null!=(r=null!=n?n.options:n)?r.styles:r)?r.showPreview:r,n))+'">\r\n <span class="svg-container">'+(null!=(r=u(null!=(r=null!=n?n.options:n)?r.previewSvg:r,n))?r:"")+"</span>\r\n "+(null!=(r=t.if.call(l,null!=(r=null!=n?n.options:n)?r.previewDisplayed:r,{name:"if",hash:{},fn:e.program(1,i,0),inverse:e.program(3,i,0),data:i}))?r:"")+" "+s((t.lang||n&&n.lang||a).call(l,"preview",{name:"lang",hash:{},data:i}))+"\r\n</div>"},useData:!0})},1075:function(e,n,t){var o=t(10);e.exports=(o.default||o).template({1:function(e,n,t,o,i){var r;e.propertyIsEnumerable;return' <a class="info-link show-more-tags">'+e.escapeExpression(e.lambda(null!=(r=null!=n?n.options:n)?r.extraTagsText:r,n))+"</a>\r\n"},3:function(e,n,t,o,i){e.propertyIsEnumerable;return' <a class="info-link applink-video-details">'+e.escapeExpression((t.lang||n&&n.lang||e.hooks.helperMissing).call(null!=n?n:e.nullContext||{},"viewAllTags",{name:"lang",hash:{},data:i}))+"</a>\r\n"},compiler:[8,">= 4.3.0"],main:function(e,n,t,o,i){e.propertyIsEnumerable;var r,l=null!=n?n:e.nullContext||{};return'<div class="tags-region"></div>\r\n\r\n'+(null!=(r=t.if.call(l,null!=(r=null!=n?n.options:n)?r.expandable:r,{name:"if",hash:{},fn:e.program(1,i,0),inverse:e.noop,data:i}))?r:"")+(null!=(r=t.if.call(l,null!=(r=null!=n?n.options:n)?r.moreTags:r,{name:"if",hash:{},fn:e.program(3,i,0),inverse:e.noop,data:i}))?r:"")},useData:!0})},1076:function(e,n,t){var o=t(10);e.exports=(o.default||o).template({1:function(e,n,t,o,i){e.propertyIsEnumerable;return" <p>"+e.escapeExpression((t.lang||n&&n.lang||e.hooks.helperMissing).call(null!=n?n:e.nullContext||{},"noDescription",{name:"lang",hash:{},data:i}))+"</p>\r\n"},3:function(e,n,t,o,i){return' <div class="description-region"></div>\r\n'},5:function(e,n,t,o,i){e.propertyIsEnumerable;var r,l=e.lambda,a=e.escapeExpression;return' <div class="col-6 pb-1 '+a(l(null!=(r=null!=(r=null!=n?n.options:n)?r.styles:r)?r.columnNames:r,n))+'">'+a((t.lang||n&&n.lang||e.hooks.helperMissing).call(null!=n?n:e.nullContext||{},"rating",{name:"lang",hash:{},data:i}))+'</div>\r\n <div class="col-6 mb-0 pb-1">\r\n <span class="badge p-1 text-white tool-tip '+a(l(null!=(r=null!=n?n.options:n)?r.ratingClass:r,n))+'" title="'+a(l(null!=(r=null!=n?n.rating:n)?r.name:r,n))+'">'+a(l(null!=(r=null!=n?n.rating:n)?r.code:r,n))+"</span>\r\n </div>\r\n"},7:function(e,n,t,o,i){e.propertyIsEnumerable;var r,l,a=e.escapeExpression,s=null!=n?n:e.nullContext||{},u=e.hooks.helperMissing;return' <div class="col-6 py-1 '+a(e.lambda(null!=(r=null!=(r=null!=n?n.options:n)?r.styles:r)?r.columnNames:r,n))+'">'+a((t.lang||n&&n.lang||u).call(s,"productionYear",{name:"lang",hash:{},data:i}))+'</div>\r\n <p class="col-6 mb-0 py-1">'+a("function"==typeof(l=null!=(l=t.productionYear||(null!=n?n.productionYear:n))?l:u)?l.call(s,{name:"productionYear",hash:{},data:i}):l)+"</p>\r\n"},9:function(e,n,t,o,i){e.propertyIsEnumerable;var r,l=e.lambda,a=e.escapeExpression,s=null!=n?n:e.nullContext||{};return' <div class="col-6 py-1 '+a(l(null!=(r=null!=(r=null!=n?n.options:n)?r.styles:r)?r.columnNames:r,n))+'">'+a((t.lang||n&&n.lang||e.hooks.helperMissing).call(s,"chapters",{name:"lang",hash:{},data:i}))+'</div>\r\n <a\r\n class="col-6 info-link mb-0 py-1 '+(null!=(r=t.unless.call(s,null!=(r=null!=n?n.options:n)?r.externalLink:r,{name:"unless",hash:{},fn:e.program(10,i,0),inverse:e.noop,data:i}))?r:"")+'"\r\n'+(null!=(r=t.if.call(s,null!=(r=null!=n?n.options:n)?r.externalLink:r,{name:"if",hash:{},fn:e.program(12,i,0),inverse:e.noop,data:i}))?r:"")+" >\r\n "+a(l(null!=(r=null!=n?n.options:n)?r.chapters:r,n))+"\r\n "+(null!=(r=t.if.call(s,null!=(r=null!=n?n.options:n)?r.externalLink:r,{name:"if",hash:{},fn:e.program(14,i,0),inverse:e.noop,data:i}))?r:"")+"\r\n </a>\r\n"},10:function(e,n,t,o,i){return"applink-video-details"},12:function(e,n,t,o,i){var r;e.propertyIsEnumerable;return' href="'+e.escapeExpression(e.lambda(null!=(r=null!=n?n.options:n)?r.externalLink:r,n))+'"\r\n target="_blank"\r\n'},14:function(e,n,t,o,i){e.propertyIsEnumerable;var r,l=e.lambda;return'<div class="d-inline-block '+e.escapeExpression(l(null!=(r=null!=(r=null!=n?n.options:n)?r.styles:r)?r.smallSvgContainer:r,n))+'">'+(null!=(r=l(null!=(r=null!=n?n.options:n)?r.openExternalSvg:r,n))?r:"")+"</div>"},16:function(e,n,t,o,i){e.propertyIsEnumerable;var r,l=e.lambda,a=e.escapeExpression;return' <div class="col-6 py-1 '+a(l(null!=(r=null!=(r=null!=n?n.options:n)?r.styles:r)?r.columnNames:r,n))+'">'+a((t.lang||n&&n.lang||e.hooks.helperMissing).call(null!=n?n:e.nullContext||{},"interactives",{name:"lang",hash:{},data:i}))+'</div>\r\n <p class="col-6 mb-0 py-1">'+a(l(null!=(r=null!=n?n.options:n)?r.interactives:r,n))+"</p>\r\n"},18:function(e,n,t,o,i){e.propertyIsEnumerable;var r,l=e.lambda,a=e.escapeExpression;return' <div class="col-6 py-1 '+a(l(null!=(r=null!=(r=null!=n?n.options:n)?r.styles:r)?r.columnNames:r,n))+'">'+a((t.lang||n&&n.lang||e.hooks.helperMissing).call(null!=n?n:e.nullContext||{},"subtitles",{name:"lang",hash:{},data:i}))+'</div>\r\n <p class="col-6 mb-0 py-1">'+a(l(null!=(r=null!=n?n.options:n)?r.subtitles:r,n))+"</p>\r\n"},20:function(e,n,t,o,i){e.propertyIsEnumerable;var r,l=e.lambda,a=e.escapeExpression,s=null!=n?n:e.nullContext||{};return' <div class="col-6 py-1 '+a(l(null!=(r=null!=(r=null!=n?n.options:n)?r.styles:r)?r.columnNames:r,n))+'">'+a((t.lang||n&&n.lang||e.hooks.helperMissing).call(s,"resources",{name:"lang",hash:{},data:i}))+'</div>\r\n <a\r\n class="col-6 info-link mb-0 py-1 '+(null!=(r=t.unless.call(s,null!=(r=null!=n?n.options:n)?r.externalLink:r,{name:"unless",hash:{},fn:e.program(10,i,0),inverse:e.noop,data:i}))?r:"")+'"\r\n'+(null!=(r=t.if.call(s,null!=(r=null!=n?n.options:n)?r.externalLink:r,{name:"if",hash:{},fn:e.program(12,i,0),inverse:e.noop,data:i}))?r:"")+" >\r\n "+a(l(null!=(r=null!=n?n.options:n)?r.resources:r,n))+"\r\n "+(null!=(r=t.if.call(s,null!=(r=null!=n?n.options:n)?r.externalLink:r,{name:"if",hash:{},fn:e.program(14,i,0),inverse:e.noop,data:i}))?r:"")+"\r\n </a>\r\n"},22:function(e,n,t,o,i){e.propertyIsEnumerable;var r,l=e.lambda,a=e.escapeExpression,s=null!=n?n:e.nullContext||{};return' <div class="col-6 py-1 '+a(l(null!=(r=null!=(r=null!=n?n.options:n)?r.styles:r)?r.columnNames:r,n))+'">'+a((t.lang||n&&n.lang||e.hooks.helperMissing).call(s,"links",{name:"lang",hash:{},data:i}))+'</div>\r\n <a\r\n class="col-6 info-link mb-0 py-1 '+(null!=(r=t.unless.call(s,null!=(r=null!=n?n.options:n)?r.externalLink:r,{name:"unless",hash:{},fn:e.program(10,i,0),inverse:e.noop,data:i}))?r:"")+'"\r\n'+(null!=(r=t.if.call(s,null!=(r=null!=n?n.options:n)?r.externalLink:r,{name:"if",hash:{},fn:e.program(12,i,0),inverse:e.noop,data:i}))?r:"")+" >\r\n "+a(l(null!=(r=null!=n?n.options:n)?r.links:r,n))+"\r\n "+(null!=(r=t.if.call(s,null!=(r=null!=n?n.options:n)?r.externalLink:r,{name:"if",hash:{},fn:e.program(14,i,0),inverse:e.noop,data:i}))?r:"")+"\r\n </a>\r\n"},24:function(e,n,t,o,i){e.propertyIsEnumerable;var r,l=e.escapeExpression;return' <div class="py-1 '+l(e.lambda(null!=(r=null!=(r=null!=n?n.options:n)?r.styles:r)?r.columnNames:r,n))+'">'+l((t.lang||n&&n.lang||e.hooks.helperMissing).call(null!=n?n:e.nullContext||{},"tags",{name:"lang",hash:{},data:i}))+'</div>\r\n <div class="tags-region"></div>\r\n <div class="col-12">&nbsp;</div>\r\n'},26:function(e,n,t,o,i){e.propertyIsEnumerable;var r,l=e.lambda,a=e.escapeExpression;return' <a href="'+a(l(null!=(r=null!=n?n.options:n)?r.externalLink:r,n))+'" target="_blank" class="info-link d-inline-block pt-3 '+a(l(null!=(r=null!=(r=null!=n?n.options:n)?r.styles:r)?r.columnNames:r,n))+'">\r\n '+a((t.lang||n&&n.lang||e.hooks.helperMissing).call(null!=n?n:e.nullContext||{},"goToVideo",{name:"lang",hash:{},data:i}))+'\r\n <div class="d-inline-block svg-container">'+(null!=(r=l(null!=(r=null!=n?n.options:n)?r.openExternalSvg:r,n))?r:"")+"</div>\r\n </a>\r\n"},28:function(e,n,t,o,i){e.propertyIsEnumerable;var r,l=e.escapeExpression;return' <a class="info-link applink-video-details d-inline-block pt-3 '+l(e.lambda(null!=(r=null!=(r=null!=n?n.options:n)?r.styles:r)?r.columnNames:r,n))+'">'+l((t.lang||n&&n.lang||e.hooks.helperMissing).call(null!=n?n:e.nullContext||{},"viewFullDetails",{name:"lang",hash:{},data:i}))+"</a>\r\n"},compiler:[8,">= 4.3.0"],main:function(e,n,t,o,i){e.propertyIsEnumerable;var r,l=e.lambda,a=e.escapeExpression,s=null!=n?n:e.nullContext||{},u=e.hooks.helperMissing;return'<div class="content-container-region row w-100 pl-0">\r\n <div class="col-8 border-right pt-3">\r\n <p class="text-uppercase text-muted '+a(l(null!=(r=null!=(r=null!=n?n.options:n)?r.styles:r)?r.columnNames:r,n))+'">'+a((t.lang||n&&n.lang||u).call(s,"description",{name:"lang",hash:{},data:i}))+"</p>\r\n \r\n"+(null!=(r=t.unless.call(s,null!=(r=null!=n?n.options:n)?r.description:r,{name:"unless",hash:{},fn:e.program(1,i,0),inverse:e.program(3,i,0),data:i}))?r:"")+' \r\n <div class="video-preview-region col-7 my-3 pl-0"></div>\r\n </div>\r\n <div class="col-4 my-3 pr-0 pl-3">\r\n <p class="text-uppercase text-muted '+a(l(null!=(r=null!=(r=null!=n?n.options:n)?r.styles:r)?r.columnNames:r,n))+'">'+a((t.lang||n&&n.lang||u).call(s,"details",{name:"lang",hash:{},data:i}))+'</p>\r\n\r\n <div class="row">\r\n'+(null!=(r=t.if.call(s,null!=(r=null!=n?n.rating:n)?r.code:r,{name:"if",hash:{},fn:e.program(5,i,0),inverse:e.noop,data:i}))?r:"")+"\r\n"+(null!=(r=t.if.call(s,null!=n?n.productionYear:n,{name:"if",hash:{},fn:e.program(7,i,0),inverse:e.noop,data:i}))?r:"")+'\r\n <div class="col-6 py-1 '+a(l(null!=(r=null!=(r=null!=n?n.options:n)?r.styles:r)?r.columnNames:r,n))+'">'+a((t.lang||n&&n.lang||u).call(s,"duration",{name:"lang",hash:{},data:i}))+'</div>\r\n <p class="col-6 mb-0 py-1">'+a(l(null!=(r=null!=n?n.options:n)?r.duration:r,n))+"</p>\r\n\r\n"+(null!=(r=t.if.call(s,null!=(r=null!=n?n.options:n)?r.chapters:r,{name:"if",hash:{},fn:e.program(9,i,0),inverse:e.noop,data:i}))?r:"")+"\r\n"+(null!=(r=t.if.call(s,null!=(r=null!=n?n.options:n)?r.interactives:r,{name:"if",hash:{},fn:e.program(16,i,0),inverse:e.noop,data:i}))?r:"")+"\r\n"+(null!=(r=t.if.call(s,null!=(r=null!=n?n.options:n)?r.subtitles:r,{name:"if",hash:{},fn:e.program(18,i,0),inverse:e.noop,data:i}))?r:"")+"\r\n"+(null!=(r=t.if.call(s,null!=(r=null!=n?n.options:n)?r.resources:r,{name:"if",hash:{},fn:e.program(20,i,0),inverse:e.noop,data:i}))?r:"")+"\r\n"+(null!=(r=t.if.call(s,null!=(r=null!=n?n.options:n)?r.links:r,{name:"if",hash:{},fn:e.program(22,i,0),inverse:e.noop,data:i}))?r:"")+" </div>\r\n\r\n"+(null!=(r=t.if.call(s,null!=(r=null!=n?n.options:n)?r.showTags:r,{name:"if",hash:{},fn:e.program(24,i,0),inverse:e.noop,data:i}))?r:"")+"\r\n"+(null!=(r=t.if.call(s,null!=(r=null!=n?n.options:n)?r.externalLink:r,{name:"if",hash:{},fn:e.program(26,i,0),inverse:e.program(28,i,0),data:i}))?r:"")+" </div>\r\n</div>"},useData:!0})},1077:function(e,n,t){e.exports={columnNames:"QvhY0",smallSvgContainer:"_2qax8"}},1078:function(e,n,t){var o=t(10);e.exports=(o.default||o).template({1:function(e,n,t,o,i){e.propertyIsEnumerable;return' <button class="btn btn-light retry">'+e.escapeExpression((t.lang||n&&n.lang||e.hooks.helperMissing).call(null!=n?n:e.nullContext||{},"retry",{name:"lang",hash:{},data:i}))+"</button>\r\n"},compiler:[8,">= 4.3.0"],main:function(e,n,t,o,i){e.propertyIsEnumerable;var r,l=null!=n?n:e.nullContext||{};return"<div>\r\n"+(null!=(r=t.if.call(l,null!=(r=null!=n?n.options:n)?r.hasError:r,{name:"if",hash:{},fn:e.program(1,i,0),inverse:e.noop,data:i}))?r:"")+' <button class="btn btn-light cancel">'+e.escapeExpression((t.lang||n&&n.lang||e.hooks.helperMissing).call(l,"cancel",{name:"lang",hash:{},data:i}))+"</button>\r\n</div>\r\n"},useData:!0})},1079:function(e,n,t){var o=t(10);e.exports=(o.default||o).template({1:function(e,n,t,o,i){return" cursor-pointer"},3:function(e,n,t,o,i){var r;e.propertyIsEnumerable;return' <div class="bulk-checkbox-region '+(null!=(r=t.if.call(null!=n?n:e.nullContext||{},null!=(r=null!=n?n.options:n)?r.bulkPlaceholder:r,{name:"if",hash:{},fn:e.program(4,i,0),inverse:e.noop,data:i}))?r:"")+'"></div>\r\n'},4:function(e,n,t,o,i){var r;e.propertyIsEnumerable;return e.escapeExpression(e.lambda(null!=(r=null!=(r=null!=n?n.options:n)?r.styles:r)?r.bulkPlaceholder:r,n))},compiler:[8,">= 4.3.0"],main:function(e,n,t,o,i){e.propertyIsEnumerable;var r,l=e.lambda,a=e.escapeExpression,s=null!=n?n:e.nullContext||{};return'<div class="d-flex justify-content-between align-items-stretch p-3 drag-item '+a(l(null!=(r=null!=(r=null!=n?n.options:n)?r.styles:r)?r.videoItem:r,n))+(null!=(r=t.if.call(s,null!=(r=null!=n?n.options:n)?r.isClickable:r,{name:"if",hash:{},fn:e.program(1,i,0),inverse:e.noop,data:i}))?r:"")+'">\r\n'+(null!=(r=t.if.call(s,null!=(r=null!=n?n.options:n)?r.allowBulk:r,{name:"if",hash:{},fn:e.program(3,i,0),inverse:e.noop,data:i}))?r:"")+' <div class="thumbnail-region d-inline-block '+a(l(null!=(r=null!=(r=null!=n?n.options:n)?r.styles:r)?r.thumbnailContainer:r,n))+'"></div>\r\n <div class="metadata-region d-inline-block px-3 '+a(l(null!=(r=null!=(r=null!=n?n.options:n)?r.styles:r)?r.metaContainer:r,n))+'"></div>\r\n <div class="video-actions-region d-inline-block '+a(l(null!=(r=null!=(r=null!=n?n.options:n)?r.styles:r)?r.actionsContainer:r,n))+'"></div>\r\n</div>\r\n<div class="video-info-region '+a(l(null!=(r=null!=(r=null!=n?n.options:n)?r.styles:r)?r.previewContainer:r,n))+'"></div>'},useData:!0})},1080:function(e,n,t){var o=t(10);e.exports=(o.default||o).template({compiler:[8,">= 4.3.0"],main:function(e,n,t,o,i){return'<div class="videos-region"></div>'},useData:!0})},1088:function(e,n,t){"use strict";var o=t(2),i=t(4),r=t(42),l=t(306),a=t(6),s=t(30),u=t(15),c=t(0),p=t(13),f=t(1051),h=t(1028),d=t(1079),g=t.n(d),m=t(1048),y=t.n(m);function v(e){return(v="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}function b(e,n,t){return n in e?Object.defineProperty(e,n,{value:t,enumerable:!0,configurable:!0,writable:!0}):e[n]=t,e}function k(e,n){for(var t=0;t<n.length;t++){var o=n[t];o.enumerable=o.enumerable||!1,o.configurable=!0,"value"in o&&(o.writable=!0),Object.defineProperty(e,o.key,o)}}function w(e,n){return(w=Object.setPrototypeOf||function(e,n){return e.__proto__=n,e})(e,n)}function C(e){var n=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(e){return!1}}();return function(){var t,o=x(e);if(n){var i=x(this).constructor;t=Reflect.construct(o,arguments,i)}else t=o.apply(this,arguments);return O(this,t)}}function O(e,n){return!n||"object"!==v(n)&&"function"!=typeof n?function(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}(e):n}function x(e){return(x=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)})(e)}var E=function(e){!function(e,n){if("function"!=typeof n&&null!==n)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(n&&n.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),n&&w(e,n)}(m,e);var n,t,l,d=C(m);function m(e){return function(e,n){if(!(e instanceof n))throw new TypeError("Cannot call a class as a function")}(this,m),d.call(this,e)}return n=m,(t=[{key:"initialize",value:function(){this.initViewModel(),this.listenTo(this.channelName,"thumbnail:load",this.onThumbnailLoad),this.listenTo(this.channelName,"click:show:preview",this.onClickTogglePreview),this.listenTo(this.options.collectionViewChannel,"close:preview",this.onCloseCollectionPreview)}},{key:"name",get:function(){return"VideoItemComponent"}},{key:"defaults",get:function(){return{componentType:h.b.Base,allowBulk:!1}}},{key:"behaviors",get:function(){return f.a.getBehaviors(this,this.options.componentType)}},{key:"template",get:function(){return g.a}},{key:"channelName",get:function(){return p.k.generateUniqueChannelName(this)}},{key:"getTypeClassName",value:function(){switch(this.options.componentType){case h.b.ProcessingVideo:return y.a.processingVideo;default:return""}}},{key:"className",get:function(){var e="border-bottom";return this.options.allowBulk&&(e+=" ".concat(y.a.allowBulk)),this.options.componentType&&(e+=" ".concat(this.getTypeClassName())),e}},{key:"props",get:function(){return["collectionIdentifier"]}},{key:"elements",get:function(){return{"drag-selector":".drag-item",previewContainer:".".concat(y.a.previewContainer)}}},{key:"regions",value:function(){var e;return b(e={},h.a.Checkbox,{replaceElement:!0,el:".bulk-checkbox-region"}),b(e,h.a.Thumbnail,".thumbnail-region"),b(e,h.a.Metadata,".metadata-region"),b(e,h.a.VideoActions,".video-actions-region"),b(e,h.a.VideoInfo,".video-info-region"),e}},{key:"events",value:function(){return{click:"onClick"}}},{key:"initViewModel",value:function(){this.viewModel=s.a.get("".concat(this.name,":").concat(this.model.get("id")),{previewOpen:!1})}},{key:"isClickable",value:function(){return this.options.componentType!==h.b.ProcessingVideo}},{key:"onThumbnailLoad",value:function(){this.thumbnailLoaded=!0}},{key:"onClick",value:function(){this.isClickable()&&this.onClickTogglePreview(!1)}},{key:"onClickTogglePreview",value:function(){var e=!(arguments.length>0&&void 0!==arguments[0])||arguments[0];a.Radio.channel(this.options.collectionViewChannel).trigger("close:preview",this.cid),this.togglePreview(!this.viewModel.get("previewOpen")),this.logTogglePreviewAction(e)}},{key:"onNavigateAway",value:function(){this.viewModel.set({previewOpen:!1})}},{key:"togglePreview",value:function(e){var n=this;if(this.viewModel.set({previewOpen:e}),e)return this.setPreviewHeight(),this.listenToOnce(u.a.SHELL,o.a.EventNames.ROUTE,this.onNavigateAway),void this.render();this.stopListening(a.Radio.channel(u.a.SHELL),o.a.EventNames.ROUTE),this.getUI("previewContainer").height(0),window.setTimeout((function(){return n.render()}),300)}},{key:"setPreviewHeight",value:function(){var e=this;this.listenToOnce(this.getRegion(h.a.VideoInfo),"show",(function(){var n=e.getRegion(h.a.VideoInfo).currentView;e.listenTo(n,"render",(function(){e.getUI("previewContainer").height(n.$el.outerHeight())})),e.listenTo(e.channelName,"resize:preview",(function(){window.setTimeout((function(){return e.getUI("previewContainer").height(n.$el.outerHeight())}),0)})),n.isRendered()&&e.getUI("previewContainer").height(n.$el.outerHeight())}))}},{key:"onCloseCollectionPreview",value:function(e){this.cid!==e&&this.viewModel.get("previewOpen")&&this.togglePreview(!1)}},{key:"shouldLazyLoadThumbnail",value:function(){return!!p.h.isLazyLoadSupported(c.p)&&!this.thumbnailLoaded}},{key:"logTogglePreviewAction",value:function(e){var n=r.a.mergeOptions(this.options.analyticsOptions,{actionType:i.UserAction.Click,descriptor:i.ClickDescriptor.TogglePreview,workflowPhase:i.WorkflowPhase.Complete}),t={buttonClicked:e,show:this.viewModel.get("previewOpen")};r.a.logUserAction(t,n)}},{key:"viewOptions",value:function(){return{styles:y.a,allowBulk:this.options.allowBulk,bulkPlaceholder:this.options.componentType===h.b.ProcessingVideo&&this.options.allowBulk,isClickable:this.isClickable()}}},{key:"onRender",value:function(){f.a.renderRegions(this,this.options.componentType)}},{key:"onAttach",value:function(){this.viewModel.get("previewOpen")&&this.togglePreview(!0)}}])&&k(n.prototype,t),l&&k(n,l),m}(o.a.Component),S=t(302),P=t(102),R=t(9),I=t(303),_=t(1080),T=t.n(_);function V(e){return(V="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}function j(e,n){if(!(e instanceof n))throw new TypeError("Cannot call a class as a function")}function M(e,n){for(var t=0;t<n.length;t++){var o=n[t];o.enumerable=o.enumerable||!1,o.configurable=!0,"value"in o&&(o.writable=!0),Object.defineProperty(e,o.key,o)}}function L(e,n,t){return n&&M(e.prototype,n),t&&M(e,t),e}function B(e,n){if("function"!=typeof n&&null!==n)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(n&&n.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),n&&A(e,n)}function A(e,n){return(A=Object.setPrototypeOf||function(e,n){return e.__proto__=n,e})(e,n)}function D(e){var n=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(e){return!1}}();return function(){var t,o=U(e);if(n){var i=U(this).constructor;t=Reflect.construct(o,arguments,i)}else t=o.apply(this,arguments);return N(this,t)}}function N(e,n){return!n||"object"!==V(n)&&"function"!=typeof n?function(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}(e):n}function U(e){return(U=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)})(e)}t.d(n,"a",(function(){return W}));var H=function(e){B(t,e);var n=D(t);function t(e){return j(this,t),n.call(this,e)}return L(t,[{key:"name",get:function(){return"VideoItemListComponent"}},{key:"childView",get:function(){return E}},{key:"childViewOptions",get:function(){var e=this;return function(n){return{componentType:n.get("status")===P.a.Processing?h.b.ProcessingVideo:e.options.videoItemComponentType,videoWithMetadata:e.options.videosWithMetadata&&e.options.videosWithMetadata.get(n.get("id")),allowBulk:e.options.allowBulk,collectionIdentifier:e.options.collectionIdentifier,application:e.options.application,pendingItems:e.options.pendingItems,config:e.options.config,sourceMetadataOptions:e.options.sourceMetadataOptions,collectionViewChannel:e.options.collectionViewChannel,customerHasLocalCache:e.options.customerHasLocalCache,customerHasExchange:e.options.customerHasExchange,customerHasCustomLibrary:e.options.customerHasCustomLibrary,analyticsOptions:e.options.analyticsOptions,videoCollectionSource:e.options.videoCollectionSource,currentUser:e.options.currentUser}}}}]),t}(o.a.ComponentCollection),W=function(e){B(t,e);var n=D(t);function t(e){return j(this,t),n.call(this,e)}return L(t,[{key:"name",get:function(){return"VideoListView"}},{key:"className",get:function(){return"bg-white"}},{key:"props",get:function(){return["collectionIdentifier"]}},{key:"template",get:function(){return T.a}},{key:"defaults",get:function(){return{videoItemComponentType:h.b.Base,allowBulk:!1,emptyState:R.c.Default,videoCollectionSource:I.d.Folder}}},{key:"behaviors",get:function(){return[{behaviorClass:S.c,selector:".lazy-img",minBrowserSupportVersion:c.p},{behaviorClass:l.a,region:"videos",type:this.options.emptyStateType,componentOptions:this.options.emptyStateOptions,emptyStateComponents:c.h}]}},{key:"regions",value:function(){return{videos:".videos-region"}}},{key:"onRender",value:function(){var e=new H({collection:this.collection,videosWithMetadata:this.options.videosWithMetadata,videoItemComponentType:this.options.videoItemComponentType,allowBulk:this.options.allowBulk,collectionIdentifier:this.collectionIdentifier,application:this.options.application,pendingItems:this.options.pendingItems,config:this.options.config,sourceMetadataOptions:this.options.sourceMetadataOptions,collectionViewChannel:this.options.collectionViewChannel,customerHasLocalCache:this.options.customerHasLocalCache,customerHasExchange:this.options.customerHasExchange,customerHasCustomLibrary:this.options.customerHasCustomLibrary,analyticsOptions:r.a.mergeOptions(this.options.analyticsOptions,{location:i.LocationContext.VideoListItem,entity:i.EntityType.Video}),videoCollectionSource:this.options.videoCollectionSource,currentUser:this.options.currentUser});this.showChildView("videos",e)}}]),t}(o.a.Component)},1317:function(e,n,t){e.exports={svgContainer:"_2KSbB"}},1318:function(e,n,t){var o=t(10);e.exports=(o.default||o).template({1:function(e,n,t,o,i){e.propertyIsEnumerable;var r,l=e.lambda,a=e.escapeExpression;return' <a class="d-inline-block ml-2 '+a(l(null!=(r=null!=(r=null!=n?n.options:n)?r.styles:r)?r.svgContainer:r,n))+'" href="'+a(l(null!=(r=null!=n?n.options:n)?r.supportUrl:r,n))+'">'+(null!=(r=l(null!=(r=null!=n?n.options:n)?r.svg:r,n))?r:"")+"</a>\r\n"},compiler:[8,">= 4.3.0"],main:function(e,n,t,o,i){e.propertyIsEnumerable;var r,l=null!=n?n:e.nullContext||{},a=e.hooks.helperMissing,s=e.escapeExpression;return'<div class="pl-3 pt-3 pr-3">\r\n <div class="border-bottom">\r\n <div class="d-flex align-items-center pb-3 border-bottom">\r\n <h1 class="h3 d-inline-block m-0">'+s((t.lang||n&&n.lang||a).call(l,"heading",{name:"lang",hash:{},data:i}))+" </h1>\r\n"+(null!=(r=t.if.call(l,null!=(r=null!=n?n.options:n)?r.supportUrl:r,{name:"if",hash:{},fn:e.program(1,i,0),inverse:e.noop,data:i}))?r:"")+' </div>\r\n <p class="py-3 m-0">\r\n '+s((t.lang||n&&n.lang||a).call(l,"description",{name:"lang",hash:{},data:i}))+'\r\n </p>\r\n </div> \r\n</div>\r\n<div class="video-list-region"></div>\r\n<div class="pagination-region"></div>\r\n<div class="empty-region"></div>'},useData:!0})},1433:function(e,n,t){"use strict";t.r(n),t.d(n,"RestrictedVideoListView",(function(){return I}));var o=t(2),i=t(5),r=t(3),l=t(17),a=t(142),s=t(1060),u=t(307),c=t(305),p=t(49),f=t(0),h=t(9),d=t(197),g=t(103),m=t(1088),y=t(1028),v=t(143),b=t(1317),k=t.n(b),w=t(1318),C=t.n(w);function O(e){return(O="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}function x(e,n){for(var t=0;t<n.length;t++){var o=n[t];o.enumerable=o.enumerable||!1,o.configurable=!0,"value"in o&&(o.writable=!0),Object.defineProperty(e,o.key,o)}}function E(e,n){return(E=Object.setPrototypeOf||function(e,n){return e.__proto__=n,e})(e,n)}function S(e){var n=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(e){return!1}}();return function(){var t,o=R(e);if(n){var i=R(this).constructor;t=Reflect.construct(o,arguments,i)}else t=o.apply(this,arguments);return P(this,t)}}function P(e,n){return!n||"object"!==O(n)&&"function"!=typeof n?function(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}(e):n}function R(e){return(R=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)})(e)}var I=function(e){!function(e,n){if("function"!=typeof n&&null!==n)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(n&&n.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),n&&E(e,n)}(w,e);var n,t,o,b=S(w);function w(e){return function(e,n){if(!(e instanceof n))throw new TypeError("Cannot call a class as a function")}(this,w),b.call(this,e)}return n=w,(t=[{key:"initialize",value:function(){this.bindListeners(),this.restrictedVideoDataService=i.a.getInstance(f.g.RestrictedVideo,this),this.videoDataService=i.a.getInstance(f.g.Video,this)}},{key:"bindListeners",value:function(){this.listenTo(f.e.RESTRICTED_VIDEO,"".concat(f.f.RESTRICTED_VIDEOS,":").concat(this.options.page,":sync"),this.render),this.listenTo(this.channelName,"fetch:video:with:metadata",this.fetchVideoWithMetadata),this.listenTo(f.e.RESTRICTED_VIDEO,"cache:cleared",this.render)}},{key:"name",get:function(){return"RestrictedVideoListView"}},{key:"title",get:function(){return r.a.getPhrase(this.lang,"title")}},{key:"className",get:function(){return"bg-white"}},{key:"channelName",get:function(){return"".concat(this.name).concat(this.cid)}},{key:"template",get:function(){return C.a}},{key:"lang",get:function(){return"videoAccess.restrictedVideoList"}},{key:"behaviors",get:function(){return[{behaviorClass:a.a,selector:".".concat(k.a.svgContainer),title:r.a.getPhrase(this.lang,"findOutMore")}]}},{key:"defaults",get:function(){return{page:1}}},{key:"regions",value:function(){return{videos:{replaceElement:!0,el:".video-list-region",partialLoading:h.h.VideoList},pagination:{replaceElement:!0,el:".pagination-region"},empty:{replaceElement:!0,el:".empty-region"}}}},{key:"setVideosWithMetadata",value:function(){this.videoCollection&&!this.videosWithMetadata&&(this.videosWithMetadata=new p.a(this.videoCollection.map((function(e){return new g.a({id:e.get("id")})}))))}},{key:"renderVideoList",value:function(){this.showChildView("videos",new m.a({collection:this.videoCollection,videosWithMetadata:this.videosWithMetadata,application:f.b.VIDEO_ACCESS,collectionIdentifier:null,videoItemComponentType:y.b.VideoAccess,config:this.config,emptyStateType:h.c.VideoAccess,emptyStateOptions:{heading:r.a.getPhrase(this.lang,"emptyStateHeading")},collectionViewChannel:this.channelName,currentUser:this.currentUser}))}},{key:"renderPagination",value:function(){var e=this.restrictedVideoDataService.getPaginationCursors(this.options.page);this.showChildView("pagination",new s.a({cursors:e,appLink:{application:f.b.VIDEO_ACCESS,action:f.a.VideoAccess.HOME},cursorParamName:"page"}))}},{key:"fetchVideoWithMetadata",value:function(e){var n=this;this.videoDataService.getVideo(e,(function(t){var o=n.videosWithMetadata.get(e);o&&(o.set(t.toJSON()),o.set({dataFetched:!0}))}))}},{key:"requiredResources",get:function(){return{config:d.b.config,currentUser:v.b.currentUser}}},{key:"onBeforeRender",value:function(){return this.videoCollection=this.restrictedVideoDataService.getRestrictedVideos(this.options.page),!!this.videoCollection&&(this.setVideosWithMetadata(),!0)}},{key:"viewOptions",value:function(){var e,n;return{styles:k.a,supportUrl:u.a.getArticle(null===(e=this.config)||void 0===e?void 0:e.get("supportSiteUrl"),c.a.VideoAccess,null===(n=this.currentUser)||void 0===n?void 0:n.get("countryCode")),svg:l.a.getSvg(l.b.Info)}}},{key:"onRender",value:function(){this.renderVideoList(),this.renderPagination()}}])&&x(n.prototype,t),o&&x(n,o),w}(o.a.View)}}]);