@clickview/library-editor 1.36.0 → 1.36.1
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.
- package/dist/bundles.json +1 -1
- package/dist/languages/en.json +1 -1
- package/dist/scripts/1010-8fff0f8d13.chunk.js +1 -0
- package/dist/scripts/1086-e8af280ffb.chunk.js +1 -0
- package/dist/scripts/112-e12297c056.chunk.js +1 -0
- package/dist/scripts/1216-4ca9b12e2d.chunk.js +1 -0
- package/dist/scripts/1269-acbb46db66.chunk.js +1 -0
- package/dist/scripts/1409-a35e935afe.chunk.js +1 -0
- package/dist/scripts/1492-307fdc91b9.chunk.js +1 -0
- package/dist/scripts/1601-2420d5adfd.chunk.js +2 -0
- package/dist/scripts/1703-fe8afddbb1.chunk.js +1 -0
- package/dist/scripts/1832-ba7102fc98.chunk.js +1 -0
- package/dist/scripts/1876-68b682bedb.chunk.js +1 -0
- package/dist/scripts/2417-8e04800595.chunk.js +1 -0
- package/dist/scripts/243-deef0aa1b8.chunk.js +1 -0
- package/dist/scripts/2482-87564f7874.chunk.js +1 -0
- package/dist/scripts/259-4df316602f.chunk.js +1 -0
- package/dist/scripts/2601-d720204adc.chunk.js +1 -0
- package/dist/scripts/2644-159adfaad6.chunk.js +1 -0
- package/dist/scripts/2692-88db0d0d77.chunk.js +1 -0
- package/dist/scripts/2803-403caf73d8.chunk.js +1 -0
- package/dist/scripts/2888-cc4110ed32.chunk.js +1 -0
- package/dist/scripts/299-f4cd99228b.chunk.js +1 -0
- package/dist/scripts/2998-c652787bf9.chunk.js +1 -0
- package/dist/scripts/3400-0982c29b3f.chunk.js +1 -0
- package/dist/scripts/343-db62a4653d.chunk.js +1 -0
- package/dist/scripts/35-438a013146.chunk.js +1 -0
- package/dist/scripts/3551-f9e42a608e.chunk.js +1 -0
- package/dist/scripts/3639-6f85164408.chunk.js +1 -0
- package/dist/scripts/376-7d729e74cc.chunk.js +1 -0
- package/dist/scripts/3763-14cb5eba8b.chunk.js +1 -0
- package/dist/scripts/4201-1127e73b2a.chunk.js +1 -0
- package/dist/scripts/4245-bd9476ab05.chunk.js +1 -0
- package/dist/scripts/4591-c8e25180d5.chunk.js +1 -0
- package/dist/scripts/4860-4ca1a4e51d.chunk.js +1 -0
- package/dist/scripts/5046-cf64750c31.chunk.js +1 -0
- package/dist/scripts/514-1c92d29abf.chunk.js +1 -0
- package/dist/scripts/5286-03cfd80b6f.chunk.js +1 -0
- package/dist/scripts/5412-4fcfecee5c.chunk.js +1 -0
- package/dist/scripts/5418-a4b09bf2b6.chunk.js +1 -0
- package/dist/scripts/5424-ee744a34d1.chunk.js +1 -0
- package/dist/scripts/546-0e65b37c79.chunk.js +1 -0
- package/dist/scripts/5524-73dce4a640.chunk.js +1 -0
- package/dist/scripts/5582-fc64a02c8a.chunk.js +2 -0
- package/dist/scripts/{5698-15d5eceb56.chunk.js → 5698-3d0dbbbb24.chunk.js} +1 -1
- package/dist/scripts/5707-e852e0ab0a.chunk.js +1 -0
- package/dist/scripts/5747-22e78fc02a.chunk.js +1 -0
- package/dist/scripts/6093-9a90c064ec.chunk.js +1 -0
- package/dist/scripts/61-19c661d56c.chunk.js +2 -0
- package/dist/scripts/6352-3f49199fca.chunk.js +1 -0
- package/dist/scripts/6732-00df2c6583.chunk.js +1 -0
- package/dist/scripts/6774-837012ac23.chunk.js +1 -0
- package/dist/scripts/6788-62a321db6d.chunk.js +1 -0
- package/dist/scripts/7002-48bafca25c.chunk.js +1 -0
- package/dist/scripts/7053-63bd766cc8.chunk.js +1 -0
- package/dist/scripts/7071-917715b410.chunk.js +1 -0
- package/dist/scripts/708-bb186270f7.chunk.js +1 -0
- package/dist/scripts/7190-892b865b01.chunk.js +1 -0
- package/dist/scripts/7376-a589320e1c.chunk.js +1 -0
- package/dist/scripts/7408-1463a332e9.chunk.js +1 -0
- package/dist/scripts/8113-f16b2f9e26.chunk.js +1 -0
- package/dist/scripts/8213-8af5c4d45b.chunk.js +1 -0
- package/dist/scripts/8362-584b78235f.chunk.js +1 -0
- package/dist/scripts/8542-12aeadfe39.chunk.js +1 -0
- package/dist/scripts/8726-619f5876a1.chunk.js +1 -0
- package/dist/scripts/8727-64fe668f3b.chunk.js +1 -0
- package/dist/scripts/8762-3391a1b55c.chunk.js +1 -0
- package/dist/scripts/8906-e276c0ff3c.chunk.js +1 -0
- package/dist/scripts/9219-670da4d5fe.chunk.js +1 -0
- package/dist/scripts/9309-6d8328e336.chunk.js +1 -0
- package/dist/scripts/9357-15f9f50960.chunk.js +1 -0
- package/dist/scripts/9383-0c17fdf3cc.chunk.js +1 -0
- package/dist/scripts/9695-a0ea892377.chunk.js +1 -0
- package/dist/scripts/9927-e154a1838c.chunk.js +1 -0
- package/dist/scripts/bundle-47083fe7e1.min.js +2 -0
- package/package.json +1 -1
- package/dist/scripts/1010-4d193dac9e.chunk.js +0 -1
- package/dist/scripts/1086-aad27f7c95.chunk.js +0 -1
- package/dist/scripts/112-87fb888ad1.chunk.js +0 -1
- package/dist/scripts/1216-1770d561b9.chunk.js +0 -1
- package/dist/scripts/1269-f10222a29e.chunk.js +0 -1
- package/dist/scripts/1409-ac31418286.chunk.js +0 -1
- package/dist/scripts/1492-58e6c2cfda.chunk.js +0 -1
- package/dist/scripts/1601-b0af727472.chunk.js +0 -2
- package/dist/scripts/1703-ffaf83218d.chunk.js +0 -1
- package/dist/scripts/1832-714a73ab92.chunk.js +0 -1
- package/dist/scripts/1876-dbf77c66df.chunk.js +0 -1
- package/dist/scripts/2254-799d6c5eee.chunk.js +0 -1
- package/dist/scripts/2417-96e0949602.chunk.js +0 -1
- package/dist/scripts/243-918a686085.chunk.js +0 -1
- package/dist/scripts/2482-671052e75b.chunk.js +0 -1
- package/dist/scripts/259-ec48acb47c.chunk.js +0 -1
- package/dist/scripts/2601-7783feb529.chunk.js +0 -1
- package/dist/scripts/2644-999d466e90.chunk.js +0 -1
- package/dist/scripts/2692-4703edbf92.chunk.js +0 -1
- package/dist/scripts/2803-536f4de2e5.chunk.js +0 -1
- package/dist/scripts/2888-82154ef78f.chunk.js +0 -1
- package/dist/scripts/299-b7dbf0ebbf.chunk.js +0 -1
- package/dist/scripts/2998-f85af341b9.chunk.js +0 -1
- package/dist/scripts/3400-a38cfe2a5d.chunk.js +0 -1
- package/dist/scripts/343-2bb74aab84.chunk.js +0 -1
- package/dist/scripts/35-e2ba312901.chunk.js +0 -1
- package/dist/scripts/3551-f798a3120d.chunk.js +0 -1
- package/dist/scripts/3639-33630e86bc.chunk.js +0 -1
- package/dist/scripts/376-4824e2507c.chunk.js +0 -1
- package/dist/scripts/3763-1b221d69b3.chunk.js +0 -1
- package/dist/scripts/4201-d2cd82d164.chunk.js +0 -1
- package/dist/scripts/4245-9f4579221d.chunk.js +0 -1
- package/dist/scripts/4591-f4bbb00b24.chunk.js +0 -1
- package/dist/scripts/4860-b4b567b013.chunk.js +0 -1
- package/dist/scripts/5046-67e1a09620.chunk.js +0 -1
- package/dist/scripts/514-899d11ac93.chunk.js +0 -1
- package/dist/scripts/5286-24bd355a31.chunk.js +0 -1
- package/dist/scripts/5412-1bb7fe0d88.chunk.js +0 -1
- package/dist/scripts/5418-8f4b817a2a.chunk.js +0 -1
- package/dist/scripts/5424-c54610a1f0.chunk.js +0 -1
- package/dist/scripts/546-08908e5aea.chunk.js +0 -1
- package/dist/scripts/5524-b4a0c38b11.chunk.js +0 -1
- package/dist/scripts/5582-2ee445770c.chunk.js +0 -2
- package/dist/scripts/5707-64c933b19e.chunk.js +0 -1
- package/dist/scripts/5747-7d4c5072db.chunk.js +0 -1
- package/dist/scripts/6093-a270c23508.chunk.js +0 -1
- package/dist/scripts/61-4c10cb4bf1.chunk.js +0 -2
- package/dist/scripts/6352-abcf2f36d3.chunk.js +0 -1
- package/dist/scripts/6357-38195d7d56.chunk.js +0 -1
- package/dist/scripts/6505-97a161c568.chunk.js +0 -1
- package/dist/scripts/6732-a50459c84d.chunk.js +0 -1
- package/dist/scripts/6774-d9478103b4.chunk.js +0 -1
- package/dist/scripts/6788-587666f144.chunk.js +0 -1
- package/dist/scripts/7002-913b8786d0.chunk.js +0 -1
- package/dist/scripts/7053-27fd687560.chunk.js +0 -1
- package/dist/scripts/7071-421b07bea8.chunk.js +0 -1
- package/dist/scripts/708-83d4f20c11.chunk.js +0 -1
- package/dist/scripts/7190-0ca846cc20.chunk.js +0 -1
- package/dist/scripts/7376-30a7796bd8.chunk.js +0 -1
- package/dist/scripts/8113-a5da448af4.chunk.js +0 -1
- package/dist/scripts/8213-76e961afd7.chunk.js +0 -1
- package/dist/scripts/8362-ee0581a213.chunk.js +0 -1
- package/dist/scripts/8542-03571f78c0.chunk.js +0 -1
- package/dist/scripts/8726-9cf2439dab.chunk.js +0 -1
- package/dist/scripts/8727-2db647e01c.chunk.js +0 -1
- package/dist/scripts/8762-b961ffc598.chunk.js +0 -1
- package/dist/scripts/8906-b3e2cf9511.chunk.js +0 -1
- package/dist/scripts/9219-b18cb10733.chunk.js +0 -1
- package/dist/scripts/9309-7a99312d12.chunk.js +0 -1
- package/dist/scripts/9357-730d572872.chunk.js +0 -1
- package/dist/scripts/9695-8485f54457.chunk.js +0 -1
- package/dist/scripts/9927-a5554b6c8f.chunk.js +0 -1
- package/dist/scripts/bundle-674a6be0bf.min.js +0 -2
- /package/dist/css/{2254-library-editor-58e2f5e100.chunk.css → 7408-library-editor-58e2f5e100.chunk.css} +0 -0
- /package/dist/css/{6505-library-editor-0862b9edab.chunk.css → 9383-library-editor-0862b9edab.chunk.css} +0 -0
- /package/dist/scripts/{1601-b0af727472.chunk.js.LICENSE.txt → 1601-2420d5adfd.chunk.js.LICENSE.txt} +0 -0
- /package/dist/scripts/{3969-68e167f1d6.chunk.js → 3969-a7a10eb86b.chunk.js} +0 -0
- /package/dist/scripts/{5582-2ee445770c.chunk.js.LICENSE.txt → 5582-fc64a02c8a.chunk.js.LICENSE.txt} +0 -0
- /package/dist/scripts/{61-4c10cb4bf1.chunk.js.LICENSE.txt → 61-19c661d56c.chunk.js.LICENSE.txt} +0 -0
- /package/dist/scripts/{bundle-674a6be0bf.min.js.LICENSE.txt → bundle-47083fe7e1.min.js.LICENSE.txt} +0 -0
|
@@ -1 +0,0 @@
|
|
|
1
|
-
(self.webpackChunk_clickview_library_editor=self.webpackChunk_clickview_library_editor||[]).push([[7071],{98001:function(e,t,n){"use strict";n.d(t,{u:function(){return g}});var o=n(48088),r=n(39479),i=n(11306),l=n(57857),a=n(31647),s=n(63791),u=n(57098),c=n(93569),p=n(93421),f=n(40622),d="bimhO";function h(e){return h="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},h(e)}function y(e,t){for(var n=0;n<t.length;n++){var o=t[n];o.enumerable=o.enumerable||!1,o.configurable=!0,"value"in o&&(o.writable=!0),Object.defineProperty(e,(void 0,r=function(e,t){if("object"!==h(e)||null===e)return e;var n=e[Symbol.toPrimitive];if(void 0!==n){var o=n.call(e,"string");if("object"!==h(o))return o;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}(o.key),"symbol"===h(r)?r:String(r)),o)}var r}function m(e,t){return m=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(e,t){return e.__proto__=t,e},m(e,t)}function v(e){return v=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(e){return e.__proto__||Object.getPrototypeOf(e)},v(e)}var g=function(e){!function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),Object.defineProperty(e,"prototype",{writable:!1}),t&&m(e,t)}(k,e);var t,n,g,b,w=(g=k,b=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}}(),function(){var e,t=v(g);if(b){var n=v(this).constructor;e=Reflect.construct(t,arguments,n)}else e=t.apply(this,arguments);return function(e,t){if(t&&("object"===h(t)||"function"==typeof t))return t;if(void 0!==t)throw new TypeError("Derived constructors may only return object or undefined");return function(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}(e)}(this,e)});function k(){return function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,k),w.apply(this,arguments)}return t=k,(n=[{key:"initialize",value:function(){this.options.model||a.Q.Ry.throw(new i.H("DraggableVideoBehavior must be passed a Video model")),this.listenTo(u.jr.VIDEO_DRAG_DROP,"drag:style:".concat(this.options.model.id),this.styleDragStart),this.listenTo(u.jr.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.ND({text:e.length>1?l.T.getPhrase(this.lang,"videos",{videoCount:e.length}):e[0].get("name"),svg:s.Nj.getSvg(s.vn.Play)}).render().el}},{key:"getSelector",value:function(){return this.view.getUI(this.options.selector)}},{key:"styleDragStart",value:function(){this.getSelector().addClass(d)}},{key:"styleDragStop",value:function(){this.getSelector().removeClass(d)}},{key:"start",value:function(){var e=this.getVideoModels(),t=o.Radio.channel(u.jr.VIDEO_DRAG_DROP);t.trigger("drag:start",e,this.options.collectionIdentifier),r.each(e,(function(e){return t.trigger("drag:style:".concat(e.id))}))}},{key:"stop",value:function(){o.Radio.channel(u.jr.VIDEO_DRAG_DROP).trigger("drag:stop")}},{key:"getVideoModels",value:function(){var e=this,t=c.S0.GetSelectedModels({key:this.options.collectionIdentifier.toString(),type:f.De.VIDEO_LIST,collection:this.view.model.collection});return r.any(t,(function(t){return t.id===e.view.model.id}))||(t=[this.view.model]),t.length?t:[this.view.model]}},{key:"getClassMappings",value:function(){return{"ui-draggable":p.W2.draggable,"ui-draggable-disabled":p.W2.disabled,"ui-draggable-handle":p.W2.handle,"ui-draggable-dragging":p.W2.dragging}}},{key:"onRender",value:function(){var e=this.getSelector(),t={helper:r.bind(this.helper,this),start:r.bind(this.start,this),stop:r.bind(this.stop,this)};t.classes=this.getClassMappings(),e.draggable(r.extend({},p.wc,t))}},{key:"onBeforeDestroy",value:function(){var e=this.getSelector();e.draggable("instance")&&e.draggable("destroy")}}])&&y(t.prototype,n),Object.defineProperty(t,"prototype",{writable:!1}),k}(a.Q.cg)},93421:function(e,t,n){"use strict";n.d(t,{wc:function(){return p},ND:function(){return c},W2:function(){return i}});var o=n(62699),r=n.n(o),i={dragItem:"GYPuI",svgContainer:"olYDa",dragText:"O53FV"};function l(e){return l="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},l(e)}function a(e,t){for(var n=0;n<t.length;n++){var o=t[n];o.enumerable=o.enumerable||!1,o.configurable=!0,"value"in o&&(o.writable=!0),Object.defineProperty(e,(void 0,r=function(e,t){if("object"!==l(e)||null===e)return e;var n=e[Symbol.toPrimitive];if(void 0!==n){var o=n.call(e,"string");if("object"!==l(o))return o;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}(o.key),"symbol"===l(r)?r:String(r)),o)}var r}function s(e,t){return s=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(e,t){return e.__proto__=t,e},s(e,t)}function u(e){return u=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(e){return e.__proto__||Object.getPrototypeOf(e)},u(e)}var c=function(e){!function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),Object.defineProperty(e,"prototype",{writable:!1}),t&&s(e,t)}(f,e);var t,n,o,c,p=(o=f,c=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}}(),function(){var e,t=u(o);if(c){var n=u(this).constructor;e=Reflect.construct(t,arguments,n)}else e=t.apply(this,arguments);return function(e,t){if(t&&("object"===l(t)||"function"==typeof t))return t;if(void 0!==t)throw new TypeError("Derived constructors may only return object or undefined");return function(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}(e)}(this,e)});function f(e){return function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,f),p.call(this,e)}return t=f,(n=[{key:"name",get:function(){return"DraggableItemComponent"}},{key:"template",get:function(){return r()}},{key:"className",get:function(){return"".concat(i.dragItem," p-3")}},{key:"viewOptions",value:function(){return Object.assign({styles:i},this.options)}}])&&a(t.prototype,n),Object.defineProperty(t,"prototype",{writable:!1}),f}(n(31647).Q.wA),p={delay:150,cursorAt:{left:-20,top:10},refreshPositions:!0}},12542:function(e,t,n){"use strict";n.d(t,{X:function(){return h},Y:function(){return y}});var o=n(39479),r=n(31647),i=n(93569),l=n(16317),a=n.n(l);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},s(e)}function u(e,t,n){return(t=p(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function c(e,t){for(var n=0;n<t.length;n++){var o=t[n];o.enumerable=o.enumerable||!1,o.configurable=!0,"value"in o&&(o.writable=!0),Object.defineProperty(e,p(o.key),o)}}function p(e){var t=function(e,t){if("object"!==s(e)||null===e)return e;var n=e[Symbol.toPrimitive];if(void 0!==n){var o=n.call(e,"string");if("object"!==s(o))return o;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}(e);return"symbol"===s(t)?t:String(t)}function f(e,t){return f=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(e,t){return e.__proto__=t,e},f(e,t)}function d(e){return d=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(e){return e.__proto__||Object.getPrototypeOf(e)},d(e)}var h="checkbox-all",y=function(e){!function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),Object.defineProperty(e,"prototype",{writable:!1}),t&&f(e,t)}(y,e);var t,n,r,l,p=(r=y,l=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}}(),function(){var e,t=d(r);if(l){var n=d(this).constructor;e=Reflect.construct(t,arguments,n)}else e=t.apply(this,arguments);return function(e,t){if(t&&("object"===s(t)||"function"==typeof t))return t;if(void 0!==t)throw new TypeError("Derived constructors may only return object or undefined");return function(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}(e)}(this,e)});function y(e){return function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,y),p.call(this,e)}return t=y,(n=[{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 a()}},{key:"getViewModel",value:function(){this.model=i.S0.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 .form-check-input":"onClick"}}},{key:"onChange",value:function(){this.checkAllChecked(),this.render()}},{key:"checkAllChecked",value:function(){var e=o.values(this.model.omit("all",h));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 h}},{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(h),disabled:this.options.disabled,checkboxClassName:this.options.checkboxClassName}}}])&&c(t.prototype,n),Object.defineProperty(t,"prototype",{writable:!1}),y}(r.Q.wA)},38115:function(e,t,n){"use strict";n.d(t,{s:function(){return f}});var o=n(31647),r=n(27866),i=n(30225),l=n.n(i),a={durationBar:"zIvWt"};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},s(e)}function u(e,t){for(var n=0;n<t.length;n++){var o=t[n];o.enumerable=o.enumerable||!1,o.configurable=!0,"value"in o&&(o.writable=!0),Object.defineProperty(e,(void 0,r=function(e,t){if("object"!==s(e)||null===e)return e;var n=e[Symbol.toPrimitive];if(void 0!==n){var o=n.call(e,"string");if("object"!==s(o))return o;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}(o.key),"symbol"===s(r)?r:String(r)),o)}var r}function c(e,t){return c=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(e,t){return e.__proto__=t,e},c(e,t)}function p(e){return p=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(e){return e.__proto__||Object.getPrototypeOf(e)},p(e)}var f=function(e){!function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),Object.defineProperty(e,"prototype",{writable:!1}),t&&c(e,t)}(d,e);var t,n,o,i,f=(o=d,i=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}}(),function(){var e,t=p(o);if(i){var n=p(this).constructor;e=Reflect.construct(t,arguments,n)}else e=t.apply(this,arguments);return function(e,t){if(t&&("object"===s(t)||"function"==typeof t))return t;if(void 0!==t)throw new TypeError("Derived constructors may only return object or undefined");return function(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}(e)}(this,e)});function d(e){return function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,d),f.call(this,e)}return t=d,(n=[{key:"name",get:function(){return"ClipDurationIndicatorComponent"}},{key:"template",get:function(){return l()}},{key:"getDuration",value:function(){return 1e3*(this.model.get("endTime")-this.model.get("startTime"))}},{key:"getDisplayDuration",value:function(){var e=r.T.ToDisplayDurationNewStyle(this.getDuration(),!0),t=r.T.ToDisplayDuration(1e3*this.model.get("startTime")),n=r.T.ToDisplayDuration(1e3*this.model.get("endTime"));return"".concat(e," (").concat(t," - ").concat(n,")")}},{key:"getClipPosition",value:function(){var e;return"left:"+this.model.get("startTime")/((null===(e=this.model._parentVideo)||void 0===e?void 0:e.get("duration"))/1e3)*100+"%"}},{key:"getClipDurationWidth",value:function(){return"width:"+Math.round(this.getDuration()/this.model._parentVideo.get("duration")*100)+"%"}},{key:"viewOptions",value:function(){return{styles:a,startDuration:r.T.ToDisplayDuration(0),parentDuration:r.T.ToDisplayDuration(this.model._parentVideo.get("duration")),clipDurationWidth:this.getClipDurationWidth(),clipPosition:this.getClipPosition(),duration:this.getDisplayDuration()}}}])&&u(t.prototype,n),Object.defineProperty(t,"prototype",{writable:!1}),d}(o.Q.wA)},50002:function(e,t,n){"use strict";n.d(t,{F:function(){return h}});var o=n(31647),r=n(57857),i=n(27866),l=n(58542),a=n(96088),s=n(27718),u=n.n(s);function c(e){return c="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},c(e)}function p(e,t){for(var n=0;n<t.length;n++){var o=t[n];o.enumerable=o.enumerable||!1,o.configurable=!0,"value"in o&&(o.writable=!0),Object.defineProperty(e,(void 0,r=function(e,t){if("object"!==c(e)||null===e)return e;var n=e[Symbol.toPrimitive];if(void 0!==n){var o=n.call(e,"string");if("object"!==c(o))return o;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}(o.key),"symbol"===c(r)?r:String(r)),o)}var r}function f(e,t){return f=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(e,t){return e.__proto__=t,e},f(e,t)}function d(e){return d=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(e){return e.__proto__||Object.getPrototypeOf(e)},d(e)}var h=function(e){!function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),Object.defineProperty(e,"prototype",{writable:!1}),t&&f(e,t)}(y,e);var t,n,o,s,h=(o=y,s=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}}(),function(){var e,t=d(o);if(s){var n=d(this).constructor;e=Reflect.construct(t,arguments,n)}else e=t.apply(this,arguments);return function(e,t){if(t&&("object"===c(t)||"function"==typeof t))return t;if(void 0!==t)throw new TypeError("Derived constructors may only return object or undefined");return function(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}(e)}(this,e)});function y(e){return function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,y),h.call(this,e)}return t=y,(n=[{key:"name",get:function(){return"InteractiveQuestionListComponent"}},{key:"defaults",get:function(){return{preview:!1}}},{key:"template",get:function(){return u()}},{key:"lang",get:function(){return"shared.interactiveQuestionList"}},{key:"getHeading",value:function(){return this.options.preview?r.T.getPhrase(this.lang,"previewHeading",{previewLength:this.getPreviewInteractions().length,fullLength:this.getInteractions().length}):r.T.getPhrase(this.lang,"heading",{length:this.getInteractions().length})}},{key:"getQuestionList",value:function(){return this.options.preview?this.getPreviewInteractions():this.getInteractions()}},{key:"getQuestionListElements",value:function(){return this.getQuestionList().map((function(e){var t=e.interactions.first(),n=l.w.getTypeInfo(t.get("typeId")),o=n.bgClassName,r=n.svgEl,a=n.name;return{bgClassName:o,svgEl:r,name:t.get("name"),time:i.T.ToDisplayDuration(e.get("visibleAt")),typeName:a}}))}},{key:"getPreviewInteractions",value:function(){return new a.Y(this.getInteractions().slice(0,5))}},{key:"getInteractions",value:function(){return this.model._timepoints}},{key:"viewOptions",value:function(){return{heading:this.getHeading(),questionList:this.getQuestionList(),questionListElements:this.getQuestionListElements()}}}])&&p(t.prototype,n),Object.defineProperty(t,"prototype",{writable:!1}),y}(o.Q.wA)},53609:function(e,t,n){"use strict";n.d(t,{b:function(){return h}});var o=n(31647),r=n(88483),i=n(2772),l=n(63791),a=n(93569),s=n(75176),u=n.n(s);function c(e){return c="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},c(e)}function p(e,t){for(var n=0;n<t.length;n++){var o=t[n];o.enumerable=o.enumerable||!1,o.configurable=!0,"value"in o&&(o.writable=!0),Object.defineProperty(e,(void 0,r=function(e,t){if("object"!==c(e)||null===e)return e;var n=e[Symbol.toPrimitive];if(void 0!==n){var o=n.call(e,"string");if("object"!==c(o))return o;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}(o.key),"symbol"===c(r)?r:String(r)),o)}var r}function f(e,t){return f=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(e,t){return e.__proto__=t,e},f(e,t)}function d(e){return d=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(e){return e.__proto__||Object.getPrototypeOf(e)},d(e)}var h=function(e){!function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),Object.defineProperty(e,"prototype",{writable:!1}),t&&f(e,t)}(y,e);var t,n,o,s,h=(o=y,s=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}}(),function(){var e,t=d(o);if(s){var n=d(this).constructor;e=Reflect.construct(t,arguments,n)}else e=t.apply(this,arguments);return function(e,t){if(t&&("object"===c(t)||"function"==typeof t))return t;if(void 0!==t)throw new TypeError("Derived constructors may only return object or undefined");return function(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}(e)}(this,e)});function y(e){return function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,y),h.call(this,e)}return t=y,(n=[{key:"name",get:function(){return"InteractiveThumbnailComponent"}},{key:"template",get:function(){return u()}},{key:"regions",value:function(){return{thumbnail:{el:".thumbnail-region",replaceElement:!0}}}},{key:"getInteractiveUrl",value:function(){return a.M2.getProductUrl(this.model,this.options.config)}},{key:"renderThumbnail",value:function(){var e=new i.Z({model:this.model,thumbnailOptions:{size:r.h2.Medium},thumbnail:a.M2.getThumbnail(this.model),playIcon:!0,duration:this.model._parentVideo.get("duration"),durationNewStyle:!0});this.showChildView("thumbnail",e)}},{key:"viewOptions",value:function(){return{externalLink:this.getInteractiveUrl(),externalLinkSvg:l.Nj.getSvg(l.vn.NewWindow)}}},{key:"onRender",value:function(){this.renderThumbnail()}}])&&p(t.prototype,n),Object.defineProperty(t,"prototype",{writable:!1}),y}(o.Q.wA)},30831:function(e,t,n){"use strict";n.d(t,{Z:function(){return v}});var o=n(57857),r=n(31647),i=n(83324),l=n(93569),a=n(7190),s=n(85348),u=n.n(s),c={mediaTypeBadge:"goWw9"};function p(e){return p="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},p(e)}function f(e,t,n){return(t=h(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function d(e,t){for(var n=0;n<t.length;n++){var o=t[n];o.enumerable=o.enumerable||!1,o.configurable=!0,"value"in o&&(o.writable=!0),Object.defineProperty(e,h(o.key),o)}}function h(e){var t=function(e,t){if("object"!==p(e)||null===e)return e;var n=e[Symbol.toPrimitive];if(void 0!==n){var o=n.call(e,"string");if("object"!==p(o))return o;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}(e);return"symbol"===p(t)?t:String(t)}function y(e,t){return y=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(e,t){return e.__proto__=t,e},y(e,t)}function m(e){return m=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(e){return e.__proto__||Object.getPrototypeOf(e)},m(e)}var v=function(e){!function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),Object.defineProperty(e,"prototype",{writable:!1}),t&&y(e,t)}(v,e);var t,n,r,s,h=(r=v,s=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}}(),function(){var e,t=m(r);if(s){var n=m(this).constructor;e=Reflect.construct(t,arguments,n)}else e=t.apply(this,arguments);return function(e,t){if(t&&("object"===p(t)||"function"==typeof t))return t;if(void 0!==t)throw new TypeError("Derived constructors may only return object or undefined");return function(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}(e)}(this,e)});function v(e){return function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,v),h.call(this,e)}return t=v,(n=[{key:"name",get:function(){return"MediaTypeBadgeComponent"}},{key:"template",get:function(){return u()}},{key:"lang",get:function(){return"shared.mediaTypeBadge"}},{key:"getMediaTypeOptions",value:function(e){var t=f(f({},i.D.Interactive,"interactiveLabel"),i.D.Clip,"clipLabel");return{bgClass:a.uB.mapMediaTypeToClass(e),label:o.T.getPhrase(this.lang,t[l.M2.getMediaType(e)]),svg:a.uB.mapMediaTypeToSvg(e)}}},{key:"viewOptions",value:function(){return{styles:c,mediaType:this.getMediaTypeOptions(this.model)}}}])&&d(t.prototype,n),Object.defineProperty(t,"prototype",{writable:!1}),v}(r.Q.wA)},37071:function(e,t,n){"use strict";n.d(t,{j:function(){return O}});var o=n(48088),r=n(25417),i=n(99249),l=n(31647),a=n(52076),s=n(70065),u=n(14898),c=n(58688),p=n(57098),f=n(93569),d=n(56704),h=n.n(d),y=n(53426);function m(e){return m="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},m(e)}function v(e,t,n){return(t=b(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function g(e,t){for(var n=0;n<t.length;n++){var o=t[n];o.enumerable=o.enumerable||!1,o.configurable=!0,"value"in o&&(o.writable=!0),Object.defineProperty(e,b(o.key),o)}}function b(e){var t=function(e,t){if("object"!==m(e)||null===e)return e;var n=e[Symbol.toPrimitive];if(void 0!==n){var o=n.call(e,"string");if("object"!==m(o))return o;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}(e);return"symbol"===m(t)?t:String(t)}function w(e,t){return w=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(e,t){return e.__proto__=t,e},w(e,t)}function k(e){return k=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(e){return e.__proto__||Object.getPrototypeOf(e)},k(e)}var O=function(e){!function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),Object.defineProperty(e,"prototype",{writable:!1}),t&&w(e,t)}(P,e);var t,n,d,b,O=(d=P,b=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}}(),function(){var e,t=k(d);if(b){var n=k(this).constructor;e=Reflect.construct(t,arguments,n)}else e=t.apply(this,arguments);return function(e,t){if(t&&("object"===m(t)||"function"==typeof t))return t;if(void 0!==t)throw new TypeError("Derived constructors may only return object or undefined");return function(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}(e)}(this,e)});function P(e){return function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,P),O.call(this,e)}return t=P,n=[{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:c.U.Base,allowBulk:!1}}},{key:"behaviors",get:function(){return u.a.getBehaviors(this,this.options.componentType)}},{key:"template",get:function(){return h()}},{key:"channelName",get:function(){return f.N0.generateUniqueChannelName(this)}},{key:"getTypeClassName",value:function(){return this.options.componentType===c.U.ProcessingVideo?y.Z.processingVideo:""}},{key:"className",get:function(){var e="";return this.options.allowBulk&&(e+=" ".concat(y.Z.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.Z.previewContainer)}}},{key:"regions",value:function(){return v(v(v(v(v({},c.H.Checkbox,{replaceElement:!0,el:".bulk-checkbox-region"}),c.H.Thumbnail,".thumbnail-region"),c.H.Metadata,".metadata-region"),c.H.VideoActions,".video-actions-region"),c.H.VideoInfo,".video-info-region")}},{key:"events",value:function(){return{click:"onClick"}}},{key:"initViewModel",value:function(){this.viewModel=i.r.get("".concat(this.name,":").concat(this.model.get("id")),{previewOpen:!1})}},{key:"isClickable",value:function(){return this.options.componentType!==c.U.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];o.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 t=this;if(this.viewModel.set({previewOpen:e}),e)return this.setPreviewHeight(),this.listenToOnce(r.G.SHELL,l.Q.Vy.ROUTE,this.onNavigateAway),void this.render();this.stopListening(o.Radio.channel(r.G.SHELL),l.Q.Vy.ROUTE),this.getUI("previewContainer").height(0),window.setTimeout((function(){return t.render()}),300)}},{key:"setPreviewHeight",value:function(){var e=this;this.listenToOnce(this.getRegion(c.H.VideoInfo),"show",(function(){var t=e.getRegion(c.H.VideoInfo).currentView;e.listenTo(t,"render",(function(){e.getUI("previewContainer").height(t.$el.outerHeight())})),e.listenTo(e.channelName,"resize:preview",(function(){window.setTimeout((function(){return e.getUI("previewContainer").height(t.$el.outerHeight())}),0)})),t.isRendered()&&e.getUI("previewContainer").height(t.$el.outerHeight())}))}},{key:"onCloseCollectionPreview",value:function(e){this.cid!==e&&this.viewModel.get("previewOpen")&&this.togglePreview(!1)}},{key:"shouldLazyLoadThumbnail",value:function(){return!!f.Vm.isLazyLoadSupported(p.v9)&&!this.thumbnailLoaded}},{key:"logTogglePreviewAction",value:function(e){var t=a.k.mergeOptions(this.options.analyticsOptions,{actionType:s.Vw.Click,descriptor:s._S.TogglePreview,workflowPhase:s.eu.Complete}),n={buttonClicked:e,show:this.viewModel.get("previewOpen")};a.k.logUserAction(n,t)}},{key:"viewOptions",value:function(){return{styles:y.Z,allowBulk:this.options.allowBulk,bulkPlaceholder:this.options.componentType===c.U.ProcessingVideo&&this.options.allowBulk,isClickable:this.isClickable(),isLastItem:this.options.isLastItem}}},{key:"onRender",value:function(){u.a.renderRegions(this,this.options.componentType)}},{key:"onAttach",value:function(){this.viewModel.get("previewOpen")&&this.togglePreview(!0)}}],n&&g(t.prototype,n),Object.defineProperty(t,"prototype",{writable:!1}),P}(l.Q.wA)},14898:function(e,t,n){"use strict";n.d(t,{a:function(){return g}});var o=n(39479),r=n(11306),i=n(31647),l=n(58688),a=n(98001);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},s(e)}var u,c,p,f=(u={},p=function(e){return[{behaviorClass:a.u,collectionIdentifier:e.options.collectionIdentifier,model:e.options.model,selector:"drag-selector"}]},(c=function(e){var t=function(e,t){if("object"!==s(e)||null===e)return e;var n=e[Symbol.toPrimitive];if(void 0!==n){var o=n.call(e,"string");if("object"!==s(o))return o;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}(e);return"symbol"===s(t)?t:String(t)}(c=l.U.Draggable))in u?Object.defineProperty(u,c,{value:p,enumerable:!0,configurable:!0,writable:!0}):u[c]=p,u),d=n(93569),h=n(19969);function y(e){return y="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},y(e)}var m=l.U.Base,v=h.E,g={renderRegions:function(e,t){o.each(e.regions,(function(n,o){b.onBeforeRenderRegion(e,t,o)&&b.renderRegion(e,t,o,d.M2.getMediaType(e.model))}))},onBeforeRenderRegion:function(e,t,n){var r=v.onBeforeRender[t];if(r||(r=v.onBeforeRender[m]),!r)return!0;var i=r[n];return!i||!o.isFunction(i)||i(e)},renderRegion:function(e,t,n,o){var r=b.getComponent(e,t,n,o);e.showChildView(n,r)},getComponent:function(e,t,n,o){var a=v.componentOptions[t];a||i.Q.Ry.throw(new r.H("Must define VideoItemComponent type options: ".concat(l.U[t],".")));var s=a[n];s||(s=v.componentOptions[m][n]),"object"===y(s)&&(s=s[o]),s||i.Q.Ry.throw(new r.H("Must define VideoItemComponent region options: ".concat(n,".")));var u=s(e);return u.component||i.Q.Ry.throw(new r.H("Must define component for region: ".concat(n,",\n in VideoItemComponent type: ").concat(l.U[t],"."))),new u.component(u.options||{})},getBehaviors:function(e,t){return f[t]?f[t](e):null}},b=g},58688:function(e,t,n){"use strict";var o,r;n.d(t,{H:function(){return r},U:function(){return o}}),function(e){e[e.Base=0]="Base",e[e.AwaitingReview=1]="AwaitingReview",e[e.PastReleases=2]="PastReleases",e[e.VideoAccess=3]="VideoAccess",e[e.ProcessingVideo=4]="ProcessingVideo",e[e.Draggable=5]="Draggable",e[e.Search=6]="Search"}(o||(o={})),function(e){e.Checkbox="checkbox",e.Thumbnail="thumbnail",e.Metadata="metadata",e.VideoActions="videoActions",e.VideoInfo="videoInfo"}(r||(r={}))},19969:function(e,t,n){"use strict";n.d(t,{E:function(){return _e}});var o=n(88483),r=n(2772),i=n(31647),l=n(93569),a=n(12542),s=n(16317),u=n.n(s);function c(e){return c="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},c(e)}function p(e,t){for(var n=0;n<t.length;n++){var o=t[n];o.enumerable=o.enumerable||!1,o.configurable=!0,"value"in o&&(o.writable=!0),Object.defineProperty(e,(void 0,r=function(e,t){if("object"!==c(e)||null===e)return e;var n=e[Symbol.toPrimitive];if(void 0!==n){var o=n.call(e,"string");if("object"!==c(o))return o;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}(o.key),"symbol"===c(r)?r:String(r)),o)}var r}function f(e,t){return f=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(e,t){return e.__proto__=t,e},f(e,t)}function d(e){return d=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(e){return e.__proto__||Object.getPrototypeOf(e)},d(e)}var h=function(e){!function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),Object.defineProperty(e,"prototype",{writable:!1}),t&&f(e,t)}(s,e);var t,n,o,r,i=(o=s,r=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}}(),function(){var e,t=d(o);if(r){var n=d(this).constructor;e=Reflect.construct(t,arguments,n)}else e=t.apply(this,arguments);return function(e,t){if(t&&("object"===c(t)||"function"==typeof t))return t;if(void 0!==t)throw new TypeError("Derived constructors may only return object or undefined");return function(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}(e)}(this,e)});function s(e){return function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,s),i.call(this,e)}return t=s,(n=[{key:"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 u()}},{key:"getViewModel",value:function(){this.model=l.S0.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 .form-check":"onClickCheckbox","change .form-check-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.X,!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}}}])&&p(t.prototype,n),Object.defineProperty(t,"prototype",{writable:!1}),s}(i.Q.wA),y=n(48088),m=n(70065),v=n(56210),g=n(38115),b=n(23130),w=n(61356),k=n(29457),O=n(19496),P=n.n(O);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},S(e)}function j(e,t){for(var n=0;n<t.length;n++){var o=t[n];o.enumerable=o.enumerable||!1,o.configurable=!0,"value"in o&&(o.writable=!0),Object.defineProperty(e,(void 0,r=function(e,t){if("object"!==S(e)||null===e)return e;var n=e[Symbol.toPrimitive];if(void 0!==n){var o=n.call(e,"string");if("object"!==S(o))return o;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}(o.key),"symbol"===S(r)?r:String(r)),o)}var r}function E(e,t){return E=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(e,t){return e.__proto__=t,e},E(e,t)}function C(e){return C=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(e){return e.__proto__||Object.getPrototypeOf(e)},C(e)}var x=function(e){!function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),Object.defineProperty(e,"prototype",{writable:!1}),t&&E(e,t)}(a,e);var t,n,o,r,i=(o=a,r=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}}(),function(){var e,t=C(o);if(r){var n=C(this).constructor;e=Reflect.construct(t,arguments,n)}else e=t.apply(this,arguments);return function(e,t){if(t&&("object"===S(t)||"function"==typeof t))return t;if(void 0!==t)throw new TypeError("Derived constructors may only return object or undefined");return function(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}(e)}(this,e)});function a(e){return function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,a),i.call(this,e)}return t=a,(n=[{key:"initialize",value:function(){this.listenTo(this.model,"change",this.render)}},{key:"name",get:function(){return"ClipItemPreviewComponent"}},{key:"template",get:function(){return P()}},{key:"lang",get:function(){return"shared.clipItemPreview"}},{key:"channelName",get:function(){return"".concat(this.name).concat(this.cid)}},{key:"appLinks",get:function(){return{".applink-video-details":l.M2.getDetailsAppLink(this.model)}}},{key:"behaviors",get:function(){return[{behaviorClass:v.H,selector:".tool-tip"}]}},{key:"regions",value:function(){return{partialLoadingContainer:{el:".content-container-region",replaceElement:!1,partialLoading:k.LP.ClipItemPreview},description:".description-region",clips:{el:".clips-region",replaceElement:!0},preview:".video-preview-region",duration:{el:".clip-duration-region",replaceElement:!0}}}},{key:"events",value:function(){return{click:"onClick"}}},{key:"onClick",value:function(e){e.stopPropagation()}},{key:"renderDescription",value:function(){if(this.model&&this.model.get("description")){var e=new b.Z({model:this.model,highlighter:!0,size:b.t.Small,truncate:!0});this.showChildView("description",e)}}},{key:"renderVideoPreview",value:function(){var e=new w.c({model:this.model,webPlayerUrl:this.options.webPlayerUrl,analyticsOptions:{location:m.LZ.ClipItemPreview},currentUser:this.options.currentUser,channelName:this.options.channelName,createViewKey:this.options.createViewKey,playerApiUrl:this.options.playerApiUrl});this.showChildView("preview",e)}},{key:"renderDuration",value:function(){var e=new g.s({model:this.model});this.showChildView("duration",e)}},{key:"onBeforeRender",value:function(){return!(!this.model||!this.model.get("dataFetched"))||(y.Radio.channel(this.options.collectionViewChannel).trigger("fetch:video:with:metadata",this.options.videoId,this.options.typeId),!(!this.model||!this.model.get("dataFetched"))&&void 0)}},{key:"viewOptions",value:function(){if(this.model&&this.model.get("dataFetched"))return{description:this.model.get("description")}}},{key:"onRender",value:function(){this.renderDescription(),this.renderVideoPreview(),this.renderDuration()}}])&&j(t.prototype,n),Object.defineProperty(t,"prototype",{writable:!1}),a}(i.Q.wA),I=n(50002),T=n(53609),R=n(78208),_=n.n(R);function M(e){return M="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},M(e)}function V(e,t){for(var n=0;n<t.length;n++){var o=t[n];o.enumerable=o.enumerable||!1,o.configurable=!0,"value"in o&&(o.writable=!0),Object.defineProperty(e,(void 0,r=function(e,t){if("object"!==M(e)||null===e)return e;var n=e[Symbol.toPrimitive];if(void 0!==n){var o=n.call(e,"string");if("object"!==M(o))return o;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}(o.key),"symbol"===M(r)?r:String(r)),o)}var r}function D(e,t){return D=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(e,t){return e.__proto__=t,e},D(e,t)}function A(e){return A=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(e){return e.__proto__||Object.getPrototypeOf(e)},A(e)}var N=function(e){!function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),Object.defineProperty(e,"prototype",{writable:!1}),t&&D(e,t)}(a,e);var t,n,o,r,i=(o=a,r=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}}(),function(){var e,t=A(o);if(r){var n=A(this).constructor;e=Reflect.construct(t,arguments,n)}else e=t.apply(this,arguments);return function(e,t){if(t&&("object"===M(t)||"function"==typeof t))return t;if(void 0!==t)throw new TypeError("Derived constructors may only return object or undefined");return function(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}(e)}(this,e)});function a(e){return function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,a),i.call(this,e)}return t=a,(n=[{key:"initialize",value:function(){this.listenTo(this.model,"change",this.render)}},{key:"name",get:function(){return"InteractiveItemPreviewComponent"}},{key:"template",get:function(){return _()}},{key:"lang",get:function(){return"shared.interactiveItemPreview"}},{key:"channelName",get:function(){return"".concat(this.name).concat(this.cid)}},{key:"appLinks",get:function(){return{".applink-video-details":l.M2.getDetailsAppLink(this.model)}}},{key:"behaviors",get:function(){return[{behaviorClass:v.H,selector:".tool-tip"}]}},{key:"regions",value:function(){return{partialLoadingContainer:{el:".content-container-region",replaceElement:!1,partialLoading:k.LP.InteractiveItemPreview},description:".description-region",interactives:{el:".interactives-region",replaceElement:!0},interactiveThumbnail:{el:".interactive-thumbnail-region",replaceElement:!0}}}},{key:"events",value:function(){return{click:"onClick"}}},{key:"onClick",value:function(e){e.stopPropagation()}},{key:"renderDescription",value:function(){if(this.model&&this.model.get("description")){var e=new b.Z({model:this.model,highlighter:!0,size:b.t.Small,truncate:!0});this.showChildView("description",e)}}},{key:"renderInteractives",value:function(){if(this.model._timepoints.length){var e=new I.F({model:this.model,preview:!0});this.showChildView("interactives",e)}}},{key:"renderInteractiveThumbnail",value:function(){var e=new T.b({model:this.model,config:this.options.config});this.showChildView("interactiveThumbnail",e)}},{key:"onBeforeRender",value:function(){return!(!this.model||!this.model.get("dataFetched"))||(y.Radio.channel(this.options.collectionViewChannel).trigger("fetch:video:with:metadata",this.options.interactiveId,this.options.typeId),!(!this.model||!this.model.get("dataFetched"))&&void 0)}},{key:"viewOptions",value:function(){if(this.model&&this.model.get("dataFetched"))return{description:this.model.get("description"),hasInteractions:this.model._timepoints.length}}},{key:"onRender",value:function(){this.renderDescription(),this.renderInteractives(),this.renderInteractiveThumbnail()}}])&&V(t.prototype,n),Object.defineProperty(t,"prototype",{writable:!1}),a}(i.Q.wA),B=n(53426),L=n(73176),U=n(17017),H=n(79238),Q=n(69051),Z=n(67743),z=n(38890),W=n(42511),F=n(60371),K=n(67430),Y=n(2496),X=n(39479),G=n(57857),$=n(63791),q=n(57098),J=n(58085),ee=n(44391),te=n(26457),ne=n(85597),oe=n.n(ne);function re(e){return re="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},re(e)}function ie(e,t){for(var n=0;n<t.length;n++){var o=t[n];o.enumerable=o.enumerable||!1,o.configurable=!0,"value"in o&&(o.writable=!0),Object.defineProperty(e,(void 0,r=function(e,t){if("object"!==re(e)||null===e)return e;var n=e[Symbol.toPrimitive];if(void 0!==n){var o=n.call(e,"string");if("object"!==re(o))return o;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}(o.key),"symbol"===re(r)?r:String(r)),o)}var r}function le(e,t){return le=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(e,t){return e.__proto__=t,e},le(e,t)}function ae(e){return ae=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(e){return e.__proto__||Object.getPrototypeOf(e)},ae(e)}var se=function(e){!function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),Object.defineProperty(e,"prototype",{writable:!1}),t&&le(e,t)}(l,e);var t,n,o,r,i=(o=l,r=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}}(),function(){var e,t=ae(o);if(r){var n=ae(this).constructor;e=Reflect.construct(t,arguments,n)}else e=t.apply(this,arguments);return function(e,t){if(t&&("object"===re(t)||"function"==typeof t))return t;if(void 0!==t)throw new TypeError("Derived constructors may only return object or undefined");return function(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}(e)}(this,e)});function l(e){return function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,l),i.call(this,e)}return t=l,(n=[{key:"name",get:function(){return"ExpandableTagListComponent"}},{key:"template",get:function(){return oe()}},{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:q.OV.LIBRARY_EDITOR,action:q.eX.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&&y.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 J.E(this.collection.slice(0,e))}},{key:"getExtraTagsInfo",value:function(){if(!this.showingMoreTags)return G.T.getPhrase(this.lang,"extraTags",{smartCount:X.max([this.collection.length-this.options.initialTagDisplayCount,0])})}},{key:"renderTags",value:function(){var e=new ee.K({collection:this.getTagCollection(),behavior:te.Dm.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()}}])&&ie(t.prototype,n),Object.defineProperty(t,"prototype",{writable:!1}),l}(i.Q.wA),ue=n(7190),ce=n(15035),pe=n.n(ce),fe={columnNames:"vMHcA",smallSvgContainer:"xw6kv"};function de(e){return de="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},de(e)}function he(e,t){for(var n=0;n<t.length;n++){var o=t[n];o.enumerable=o.enumerable||!1,o.configurable=!0,"value"in o&&(o.writable=!0),Object.defineProperty(e,(void 0,r=function(e,t){if("object"!==de(e)||null===e)return e;var n=e[Symbol.toPrimitive];if(void 0!==n){var o=n.call(e,"string");if("object"!==de(o))return o;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}(o.key),"symbol"===de(r)?r:String(r)),o)}var r}function ye(e,t){return ye=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(e,t){return e.__proto__=t,e},ye(e,t)}function me(e){return me=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(e){return e.__proto__||Object.getPrototypeOf(e)},me(e)}var ve=function(e){!function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),Object.defineProperty(e,"prototype",{writable:!1}),t&&ye(e,t)}(a,e);var t,n,o,r,i=(o=a,r=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}}(),function(){var e,t=me(o);if(r){var n=me(this).constructor;e=Reflect.construct(t,arguments,n)}else e=t.apply(this,arguments);return function(e,t){if(t&&("object"===de(t)||"function"==typeof t))return t;if(void 0!==t)throw new TypeError("Derived constructors may only return object or undefined");return function(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}(e)}(this,e)});function a(e){return function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,a),i.call(this,e)}return t=a,(n=[{key:"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 pe()}},{key:"lang",get:function(){return"shared.videoItemPreview"}},{key:"channelName",get:function(){return"".concat(this.name).concat(this.cid)}},{key:"appLinks",get:function(){return{".applink-video-details":{application:q.OV.LIBRARY_EDITOR,action:q.eX.LibraryEditor.VIDEO_DETAILS,args:[this.model.get("id")]}}}},{key:"behaviors",get:function(){return[{behaviorClass:v.H,selector:".tool-tip"}]}},{key:"regions",value:function(){return{partialLoadingContainer:{el:".content-container-region",replaceElement:!1,partialLoading:k.LP.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(){y.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 b.Z({model:this.model,highlighter:!0,size:b.t.Small,truncate:!0});this.showChildView("description",e)}}},{key:"renderTags",value:function(){if(this.showTags()){var e=new se({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 w.c({model:this.model,webPlayerUrl:this.options.webPlayerUrl,analyticsOptions:{location:m.LZ.VideoItemPreview},currentUser:this.options.currentUser,channelName:this.options.channelName,createViewKey:this.options.createViewKey,playerApiUrl:this.options.playerApiUrl});this.showChildView("preview",e)}},{key:"getSubtitleLanguage",value:function(){if(!this.model.subtitles||!this.model.get("subtitles").length)return"";var e=X.uniq(this.model.get("subtitles").map((function(e){return e.get("language")})));return X.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 t=this.model.get(e).length;return t>1?"".concat(t," ").concat(e):"".concat(G.T.getPhrase(this.lang,"one")," ").concat(e.slice(0,-1))}},{key:"onBeforeRender",value:function(){return!(!this.model||!this.model.get("dataFetched"))||(y.Radio.channel(this.options.collectionViewChannel).trigger("fetch:video:with:metadata",this.options.videoId,this.options.typeId),!(!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:fe,ratingClass:this.model.rating&&ue.uB.mapRatingToClass(this.model.rating.get("value")),showTags:this.showTags(),description:this.model.get("description"),duration:e&&l.T.ToDisplayDuration(e),chapters:this.getDetails("chapters"),subtitles:this.getSubtitleLanguage(),resources:this.getDetails("resources"),links:this.getDetails("links"),externalLink:this.options.externalLink,openExternalSvg:$.Nj.getSvg($.vn.NewWindow)}}}},{key:"onRender",value:function(){this.renderDescription(),this.renderTags(),this.renderVideoPreview()}}])&&he(t.prototype,n),Object.defineProperty(t,"prototype",{writable:!1}),a}(i.Q.wA),ge=n(83324),be=n(610),we=n(86205),ke=n(64404),Oe=n(89707),Pe=n(40622),Se=n(58688);function je(e){return je="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},je(e)}function Ee(e,t,n){return(t=function(e){var t=function(e,t){if("object"!==je(e)||null===e)return e;var n=e[Symbol.toPrimitive];if(void 0!==n){var o=n.call(e,"string");if("object"!==je(o))return o;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}(e);return"symbol"===je(t)?t:String(t)}(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}var Ce=Se.U,xe=Se.H,Ie=function(e){var t="videos/".concat(e.model.id);return{component:r.Z,options:{model:e.model,lazyload:e.shouldLazyLoadThumbnail(),thumbnailOptions:{size:o.h2.Small},href:Oe.k.getMainProductUrl(e.options.config,t,t),channelName:e.channelName,thumbnail:l.M2.getThumbnail(e.model),duration:l.M2.getDuration(e.model),durationNewStyle:!0}}},Te=function(e){return e.options.videoWithMetadata instanceof ke.n?{component:ve,options:{model:e.options.videoWithMetadata,videoId:e.model.id.toString(),typeId:e.model.attributes.typeId,channelName:e.channelName,collectionViewChannel:e.options.collectionViewChannel,webPlayerUrl:e.options.config.get("webPlayerUrl"),currentUser:e.options.currentUser,playerApiUrl:e.options.playerApiUrl,createViewKey:e.options.createViewKey}}:null},Re=function(e){if(!(e.options.videoWithMetadata instanceof ke.n))return null;var t="videos/".concat(e.model.id);return{component:ve,options:{model:e.options.videoWithMetadata,videoId:e.model.id.toString(),channelName:e.channelName,collectionViewChannel:e.options.collectionViewChannel,webPlayerUrl:e.options.config.get("webPlayerUrl"),externalLink:Oe.k.getMainProductUrl(e.options.config,t,t),currentUser:e.options.currentUser,playerApiUrl:e.options.playerApiUrl,createViewKey:e.options.createViewKey}}},_e={componentOptions:Ee(Ee(Ee(Ee(Ee(Ee(Ee({},Ce.Base,Ee(Ee(Ee(Ee(Ee({},xe.Checkbox,(function(e){return{component:h,options:{className:"d-inline-flex align-items-center me-3 ".concat(B.Z.checkboxContainer),checkboxClassName:B.Z.checkbox,itemId:e.model.id,key:e.collectionIdentifier.toString(),type:Pe.De.VIDEO_LIST}}})),xe.Thumbnail,(function(e){return{component:r.Z,options:{model:e.model,lazyload:e.shouldLazyLoadThumbnail(),thumbnailOptions:{size:o.h2.Small},appLink:l.M2.getDetailsAppLink(e.model),channelName:e.channelName,thumbnail:l.M2.getThumbnail(e.model),duration:l.M2.getDuration(e.model),durationNewStyle:!0}}})),xe.Metadata,(function(e){return{component:Z.f,options:{model:e.model,sourceMetadataOptions:e.options.sourceMetadataOptions}}})),xe.VideoActions,(function(e){return{component:L.W,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,products:e.options.products,libraries:e.options.libraries}}}})),xe.VideoInfo,Ee(Ee(Ee({},ge.D.Video,Te),ge.D.Interactive,(function(e){return e.options.videoWithMetadata instanceof we.v?{component:N,options:{model:e.options.videoWithMetadata,interactiveId:e.model.id.toString(),typeId:e.model.attributes.typeId,channelName:e.channelName,collectionViewChannel:e.options.collectionViewChannel,config:e.options.config}}:null})),ge.D.Clip,(function(e){return e.options.videoWithMetadata instanceof be.b?{component:x,options:{model:e.options.videoWithMetadata,videoId:e.model.id.toString(),typeId:e.model.attributes.typeId,channelName:e.channelName,collectionViewChannel:e.options.collectionViewChannel,webPlayerUrl:e.options.config.get("webPlayerUrl"),currentUser:e.options.currentUser,playerApiUrl:e.options.playerApiUrl,createViewKey:e.options.createViewKey}}:null})))),Ce.AwaitingReview,Ee(Ee(Ee(Ee({},xe.Thumbnail,Ie),xe.Metadata,(function(e){return{component:z.l,options:{model:e.model,config:e.options.config}}})),xe.VideoActions,(function(e){return{component:H.s,options:{model:e.model,channelName:e.channelName,previewDisplayed:e.viewModel.get("previewOpen"),analyticsOptions:e.options.analyticsOptions}}})),xe.VideoInfo,Re)),Ce.PastReleases,Ee(Ee(Ee({},xe.Thumbnail,Ie),xe.Metadata,(function(e){return{component:W.x,options:{model:e.model,config:e.options.config}}})),xe.VideoInfo,Re)),Ce.VideoAccess,Ee(Ee(Ee({},xe.VideoActions,(function(e){return{component:Q.P,options:{model:e.model,channelName:e.channelName,previewDisplayed:e.viewModel.get("previewOpen"),analyticsOptions:e.options.analyticsOptions}}})),xe.Metadata,(function(e){return{component:Y.g,options:{model:e.model,config:e.options.config,sourceMetadataOptions:{showFolder:!0,libraries:e.options.libraries}}}})),xe.VideoInfo,(function(e){return l.M2.hasCustomLibrary(e.model)?Te(e):Re(e)}))),Ce.ProcessingVideo,Ee(Ee({},xe.Metadata,(function(e){return{component:F.x,options:{model:e.model,pendingItems:e.options.pendingItems}}})),xe.VideoActions,(function(e){return{component:U.w,options:{model:e.model,pendingItems:e.options.pendingItems,channelName:e.options.collectionViewChannel,analyticsOptions:e.options.analyticsOptions}}}))),Ce.Draggable,{}),Ce.Search,Ee({},xe.Metadata,(function(e){return{component:K.b,options:{model:e.model,sourceMetadataOptions:{showFolder:!0,highlight:!0,libraries:e.options.libraries}}}}))),onBeforeRender:Ee(Ee({},Ce.Base,Ee(Ee({},xe.Checkbox,(function(e){return!!e.options.allowBulk})),xe.VideoInfo,(function(e){return!!e.viewModel.get("previewOpen")}))),Ce.ProcessingVideo,Ee(Ee({},xe.Checkbox,(function(){return!1})),xe.VideoInfo,(function(){return!1})))}},73176:function(e,t,n){"use strict";n.d(t,{W:function(){return y}});var o=n(48088),r=n(31647),i=n(63791),l=n(66882),a=n(15900),s=n.n(a),u=n(69639);function c(e){return c="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},c(e)}function p(e,t){for(var n=0;n<t.length;n++){var o=t[n];o.enumerable=o.enumerable||!1,o.configurable=!0,"value"in o&&(o.writable=!0),Object.defineProperty(e,f(o.key),o)}}function f(e){var t=function(e,t){if("object"!==c(e)||null===e)return e;var n=e[Symbol.toPrimitive];if(void 0!==n){var o=n.call(e,"string");if("object"!==c(o))return o;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}(e);return"symbol"===c(t)?t:String(t)}function d(e,t){return d=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(e,t){return e.__proto__=t,e},d(e,t)}function h(e){return h=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(e){return e.__proto__||Object.getPrototypeOf(e)},h(e)}var y=function(e){!function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),Object.defineProperty(e,"prototype",{writable:!1}),t&&d(e,t)}(m,e);var t,n,r,a,y=(r=m,a=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}}(),function(){var e,t=h(r);if(a){var n=h(this).constructor;e=Reflect.construct(t,arguments,n)}else e=t.apply(this,arguments);return function(e,t){if(t&&("object"===c(t)||"function"==typeof t))return t;if(void 0!==t)throw new TypeError("Derived constructors may only return object or undefined");return function(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}(e)}(this,e)});function m(e){return function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,m),y.call(this,e)}return t=m,(n=[{key:"name",get:function(){return"VideoItemActionsComponent"}},{key:"template",get:function(){return s()}},{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="onClickShowPreview",(t=f(t="click .".concat(u.Z.showPreview)))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e;var e,t,n}},{key:"onClickShowPreview",value:function(e){e.stopPropagation(),this.options.channelName&&o.Radio.channel(this.options.channelName).trigger("click:show:preview")}},{key:"renderVideoActions",value:function(){this.showChildView("videoActions",new l.R(this.options.videoActionsOptions))}},{key:"viewOptions",value:function(){return{styles:u.Z,previewDisplayed:this.options.previewDisplayed,previewSvg:i.Nj.getSvg(i.vn.Preview)}}},{key:"onRender",value:function(){this.renderVideoActions()}}])&&p(t.prototype,n),Object.defineProperty(t,"prototype",{writable:!1}),m}(r.Q.wA)},17017:function(e,t,n){"use strict";n.d(t,{w:function(){return h}});var o=n(48088),r=n(31647),i=n(5854),l=n(50028),a=n(93569),s=n(71548),u=n.n(s);function c(e){return c="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},c(e)}function p(e,t){for(var n=0;n<t.length;n++){var o=t[n];o.enumerable=o.enumerable||!1,o.configurable=!0,"value"in o&&(o.writable=!0),Object.defineProperty(e,(void 0,r=function(e,t){if("object"!==c(e)||null===e)return e;var n=e[Symbol.toPrimitive];if(void 0!==n){var o=n.call(e,"string");if("object"!==c(o))return o;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}(o.key),"symbol"===c(r)?r:String(r)),o)}var r}function f(e,t){return f=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(e,t){return e.__proto__=t,e},f(e,t)}function d(e){return d=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(e){return e.__proto__||Object.getPrototypeOf(e)},d(e)}var h=function(e){!function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),Object.defineProperty(e,"prototype",{writable:!1}),t&&f(e,t)}(y,e);var t,n,r,s,h=(r=y,s=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}}(),function(){var e,t=d(r);if(s){var n=d(this).constructor;e=Reflect.construct(t,arguments,n)}else e=t.apply(this,arguments);return function(e,t){if(t&&("object"===c(t)||"function"==typeof t))return t;if(void 0!==t)throw new TypeError("Derived constructors may only return object or undefined");return function(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}(e)}(this,e)});function y(e){return function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,y),h.call(this,e)}return t=y,(n=[{key:"initialize",value:function(){this.bindListeners()}},{key:"name",get:function(){return"VideoItemProcessingActionsComponent"}},{key:"template",get:function(){return u()}},{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");a.Ce.generateDialog(e,this.options.channelName,"cancel:pending:item",this.pendingItem)}},{key:"onClickRetry",value:function(){o.Radio.channel(this.options.channelName).trigger("retry:pending:item",this.pendingItem)}},{key:"bindListeners",value:function(){this.model.get("status")===l.X.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:i.S.hasError(this.pendingItem)}}},{key:"onBeforeRender",value:function(){return!!this.pendingItem}}])&&p(t.prototype,n),Object.defineProperty(t,"prototype",{writable:!1}),y}(r.Q.wA)},79238:function(e,t,n){"use strict";n.d(t,{s:function(){return g}});var o=n(48088),r=n(21679),i=n(31647),l=n(52076),a=n(70065),s=n(63791),u=n(69639),c=n(57098),p=n(72108),f=n.n(p);function d(e){return d="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},d(e)}function h(e,t){for(var n=0;n<t.length;n++){var o=t[n];o.enumerable=o.enumerable||!1,o.configurable=!0,"value"in o&&(o.writable=!0),Object.defineProperty(e,y(o.key),o)}}function y(e){var t=function(e,t){if("object"!==d(e)||null===e)return e;var n=e[Symbol.toPrimitive];if(void 0!==n){var o=n.call(e,"string");if("object"!==d(o))return o;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}(e);return"symbol"===d(t)?t:String(t)}function m(e,t){return m=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(e,t){return e.__proto__=t,e},m(e,t)}function v(e){return v=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(e){return e.__proto__||Object.getPrototypeOf(e)},v(e)}var g=function(e){!function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),Object.defineProperty(e,"prototype",{writable:!1}),t&&m(e,t)}(b,e);var t,n,i,p,g=(i=b,p=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}}(),function(){var e,t=v(i);if(p){var n=v(this).constructor;e=Reflect.construct(t,arguments,n)}else e=t.apply(this,arguments);return function(e,t){if(t&&("object"===d(t)||"function"==typeof t))return t;if(void 0!==t)throw new TypeError("Derived constructors may only return object or undefined");return function(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}(e)}(this,e)});function b(e){return function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,b),g.call(this,e)}return t=b,(n=[{key:"initialize",value:function(){this.restrictedVideoDataService=r.u.getInstance(c.Or.RestrictedVideo,this)}},{key:"name",get:function(){return"VideoItemReviewActionsComponent"}},{key:"template",get:function(){return f()}},{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="onClickShowPreview",(t=y(t="click .".concat(u.Z.showPreview)))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e;var e,t,n}},{key:"appLinks",get:function(){return{".applink-manage-video-access":{application:c.OV.CONTENT_UPDATES,action:c.eX.Shared.MANAGE_VIDEO_ACCESS,args:[this.model.get("id").toString(),this.model.get("typeId")]}}}},{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&&o.Radio.channel(this.options.channelName).trigger("click:show:preview")}},{key:"logApproveAction",value:function(){var e={location:a.LZ.AwaitingReviewVideoItem,actionType:a.Vw.Approve,entity:a.py.Video,descriptor:a.yh.Single,workflowPhase:a.eu.Complete},t={id:this.model.get("id")};l.k.logUserAction(t,e)}},{key:"logManageAccessAction",value:function(){var e={location:a.LZ.AwaitingReviewVideoItem,actionType:a.Vw.SetAccess,entity:a.py.Video,workflowPhase:a.eu.Start},t={id:this.model.get("id")};l.k.logUserAction(t,e)}},{key:"viewOptions",value:function(){return{styles:u.Z,previewDisplayed:this.options.previewDisplayed,previewSvg:s.Nj.getSvg(s.vn.Preview)}}}])&&h(t.prototype,n),Object.defineProperty(t,"prototype",{writable:!1}),b}(i.Q.wA)},69051:function(e,t,n){"use strict";n.d(t,{P:function(){return v}});var o=n(48088),r=n(31647),i=n(52076),l=n(70065),a=n(63791),s=n(69639),u=n(57098),c=n(66774),p=n.n(c);function f(e){return f="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},f(e)}function d(e,t){for(var n=0;n<t.length;n++){var o=t[n];o.enumerable=o.enumerable||!1,o.configurable=!0,"value"in o&&(o.writable=!0),Object.defineProperty(e,h(o.key),o)}}function h(e){var t=function(e,t){if("object"!==f(e)||null===e)return e;var n=e[Symbol.toPrimitive];if(void 0!==n){var o=n.call(e,"string");if("object"!==f(o))return o;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}(e);return"symbol"===f(t)?t:String(t)}function y(e,t){return y=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(e,t){return e.__proto__=t,e},y(e,t)}function m(e){return m=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(e){return e.__proto__||Object.getPrototypeOf(e)},m(e)}var v=function(e){!function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),Object.defineProperty(e,"prototype",{writable:!1}),t&&y(e,t)}(g,e);var t,n,r,c,v=(r=g,c=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}}(),function(){var e,t=m(r);if(c){var n=m(this).constructor;e=Reflect.construct(t,arguments,n)}else e=t.apply(this,arguments);return function(e,t){if(t&&("object"===f(t)||"function"==typeof t))return t;if(void 0!==t)throw new TypeError("Derived constructors may only return object or undefined");return function(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}(e)}(this,e)});function g(e){return function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,g),v.call(this,e)}return t=g,(n=[{key:"name",get:function(){return"VideoItemVideoAccessComponent"}},{key:"template",get:function(){return p()}},{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:u.OV.VIDEO_ACCESS,action:u.eX.Shared.MANAGE_VIDEO_ACCESS,args:[this.model.get("id").toString(),this.model.get("typeId")]}}}},{key:"events",value:function(){return e={"click .applink-manage-video-access":"onClickManageVideoAccess"},n="onClickShowPreview",(t=h(t="click .".concat(s.Z.showPreview)))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e;var e,t,n}},{key:"onClickManageVideoAccess",value:function(e){e.stopPropagation(),this.logAction()}},{key:"onClickShowPreview",value:function(e){e.stopPropagation(),this.options.channelName&&o.Radio.channel(this.options.channelName).trigger("click:show:preview")}},{key:"logAction",value:function(){var e={location:l.LZ.VideoListItem,actionType:l.Vw.SetAccess,entity:l.py.Video,workflowPhase:l.eu.Start},t={id:this.model.get("id")};i.k.logUserAction(t,e)}},{key:"viewOptions",value:function(){return{styles:s.Z,previewDisplayed:this.options.previewDisplayed,previewSvg:a.Nj.getSvg(a.vn.Preview)}}}])&&d(t.prototype,n),Object.defineProperty(t,"prototype",{writable:!1}),g}(r.Q.wA)},67743:function(e,t,n){"use strict";n.d(t,{f:function(){return b}});var o=n(39479),r=n(31647),i=n(56210),l=n(63791),a=n(91850),s=n(37570),u=n(7427),c=n(93569),p=n(27367),f=n.n(p),d=n(90402);function h(e){return h="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},h(e)}function y(e,t){for(var n=0;n<t.length;n++){var o=t[n];o.enumerable=o.enumerable||!1,o.configurable=!0,"value"in o&&(o.writable=!0),Object.defineProperty(e,m(o.key),o)}}function m(e){var t=function(e,t){if("object"!==h(e)||null===e)return e;var n=e[Symbol.toPrimitive];if(void 0!==n){var o=n.call(e,"string");if("object"!==h(o))return o;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}(e);return"symbol"===h(t)?t:String(t)}function v(e,t){return v=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(e,t){return e.__proto__=t,e},v(e,t)}function g(e){return g=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(e){return e.__proto__||Object.getPrototypeOf(e)},g(e)}var b=function(e){!function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),Object.defineProperty(e,"prototype",{writable:!1}),t&&v(e,t)}(w,e);var t,n,r,p,b=(r=w,p=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}}(),function(){var e,t=g(r);if(p){var n=g(this).constructor;e=Reflect.construct(t,arguments,n)}else e=t.apply(this,arguments);return function(e,t){if(t&&("object"===h(t)||"function"==typeof t))return t;if(void 0!==t)throw new TypeError("Derived constructors may only return object or undefined");return function(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}(e)}(this,e)});function w(e){return function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,w),b.call(this,e)}return t=w,(n=[{key:"initialize",value:function(){this.listenTo(this.model,"change:restrictions",this.render)}},{key:"name",get:function(){return"VideoItemMetadataComponent"}},{key:"template",get:function(){return f()}},{key:"behaviors",get:function(){return[{behaviorClass:i.H,selector:".tool-tip"}]}},{key:"appLinks",get:function(){return{".applink-show-video":c.M2.getDetailsAppLink(this.model)}}},{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="onClickBadge",(t=m(t="click .".concat(d.Z.svgContainer)))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e;var e,t,n}},{key:"onClickBadge",value:function(e){e.stopPropagation()}},{key:"renderSources",value:function(){var e=o.extend({},{model:this.model},this.options.sourceMetadataOptions);this.showChildView("sources",new u.V(e))}},{key:"renderSeries",value:function(){this.showChildView("series",new s.O({model:this.model,highlight:this.options.sourceMetadataOptions&&!!this.options.sourceMetadataOptions.highlight}))}},{key:"renderBadges",value:function(){this.showChildView("badges",new a.k({model:this.model}))}},{key:"viewOptions",value:function(){return{styles:d.Z,hasAdminRestriction:c.S9.hasAdminRestriction(this.model),restrictionMessage:c.S9.getRestrictionTooltipMessage(this.model),lockSvg:l.Nj.getSvg(l.vn.Lock)}}},{key:"onRender",value:function(){this.renderSeries(),this.renderSources(),this.renderBadges()}}])&&y(t.prototype,n),Object.defineProperty(t,"prototype",{writable:!1}),w}(r.Q.wA)},38890:function(e,t,n){"use strict";n.d(t,{l:function(){return y}});var o=n(31647),r=n(63791),i=n(90402),l=n(91850),a=n(37570),s=n(89707),u=n(61539),c=n.n(u);function p(e){return p="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},p(e)}function f(e,t){for(var n=0;n<t.length;n++){var o=t[n];o.enumerable=o.enumerable||!1,o.configurable=!0,"value"in o&&(o.writable=!0),Object.defineProperty(e,(void 0,r=function(e,t){if("object"!==p(e)||null===e)return e;var n=e[Symbol.toPrimitive];if(void 0!==n){var o=n.call(e,"string");if("object"!==p(o))return o;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}(o.key),"symbol"===p(r)?r:String(r)),o)}var r}function d(e,t){return d=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(e,t){return e.__proto__=t,e},d(e,t)}function h(e){return h=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(e){return e.__proto__||Object.getPrototypeOf(e)},h(e)}var y=function(e){!function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),Object.defineProperty(e,"prototype",{writable:!1}),t&&d(e,t)}(m,e);var t,n,o,u,y=(o=m,u=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}}(),function(){var e,t=h(o);if(u){var n=h(this).constructor;e=Reflect.construct(t,arguments,n)}else e=t.apply(this,arguments);return function(e,t){if(t&&("object"===p(t)||"function"==typeof t))return t;if(void 0!==t)throw new TypeError("Derived constructors may only return object or undefined");return function(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}(e)}(this,e)});function m(e){return function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,m),y.call(this,e)}return t=m,(n=[{key:"name",get:function(){return"VideoItemAwaitingReviewMetadataComponent"}},{key:"template",get:function(){return c()}},{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="videos/".concat(this.model.get("id"));return s.k.getMainProductUrl(this.options.config,e,e)}},{key:"getSeriesUrl",value:function(){if(this.model.series){var e="series/".concat(this.model.series.id);return s.k.getMainProductUrl(this.options.config,e,e)}}},{key:"renderBadges",value:function(){this.showChildView("badges",new l.k({model:this.model,showReviewBadge:!0}))}},{key:"renderSeries",value:function(){this.showChildView("series",new a.O({model:this.model,highlight:!1,seriesUrl:this.getSeriesUrl()}))}},{key:"viewOptions",value:function(){return{styles:i.Z,videoUrl:this.getVideoUrl(),openExternalSvg:r.Nj.getSvg(r.vn.NewWindow)}}},{key:"onRender",value:function(){this.renderSeries(),this.renderBadges()}}])&&f(t.prototype,n),Object.defineProperty(t,"prototype",{writable:!1}),m}(o.Q.wA)},91850:function(e,t,n){"use strict";n.d(t,{k:function(){return v}});var o=n(31647),r=n(56210),i=n(63791),l=n(30831),a=n(64404),s=n(93569),u=n(7190),c=n(53885),p=n.n(c),f={interactive:"ggsOm",rating:"CPfqH",svgContainer:"lp1lA",badgesWrapper:"Jh1rs",restrictionBadgeClass:"M6hY4",reviewBadge:"wkjr7",urgentReviewBadge:"rScjU"};function d(e){return d="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},d(e)}function h(e,t){for(var n=0;n<t.length;n++){var o=t[n];o.enumerable=o.enumerable||!1,o.configurable=!0,"value"in o&&(o.writable=!0),Object.defineProperty(e,(void 0,r=function(e,t){if("object"!==d(e)||null===e)return e;var n=e[Symbol.toPrimitive];if(void 0!==n){var o=n.call(e,"string");if("object"!==d(o))return o;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}(o.key),"symbol"===d(r)?r:String(r)),o)}var r}function y(e,t){return y=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(e,t){return e.__proto__=t,e},y(e,t)}function m(e){return m=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(e){return e.__proto__||Object.getPrototypeOf(e)},m(e)}var v=function(e){!function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),Object.defineProperty(e,"prototype",{writable:!1}),t&&y(e,t)}(g,e);var t,n,o,c,v=(o=g,c=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}}(),function(){var e,t=m(o);if(c){var n=m(this).constructor;e=Reflect.construct(t,arguments,n)}else e=t.apply(this,arguments);return function(e,t){if(t&&("object"===d(t)||"function"==typeof t))return t;if(void 0!==t)throw new TypeError("Derived constructors may only return object or undefined");return function(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}(e)}(this,e)});function g(e){return function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,g),v.call(this,e)}return t=g,(n=[{key:"name",get:function(){return"VideoItemBadgesComponent"}},{key:"template",get:function(){return p()}},{key:"lang",get:function(){return"shared.videoItemBadges"}},{key:"behaviors",get:function(){return[{behaviorClass:r.H,selector:".tool-tip"}]}},{key:"defaults",get:function(){return{showRestrictionBadge:!1,showReviewBadge:!1}}},{key:"regions",value:function(){return{mediaType:{el:".media-type-region",replaceElement:!0}}}},{key:"events",value:function(){return{"click span":"onClick"}}},{key:"onClick",value:function(e){e.stopPropagation()}},{key:"renderMediaTypeBadge",value:function(){if(!s.M2.isVideo(this.model)){var e=new l.Z({model:this.model});this.showChildView("mediaType",e)}}},{key:"viewOptions",value:function(){var e=this.options.showReviewBadge&&s.S9.getRestrictionTooltipMessage(this.model),t=this.options.showRestrictionBadge&&s.S9.getRestrictionTooltipMessage(this.model),n=this.model instanceof a.n?this.model.rating.toJSON():null;return{styles:f,interactive:u.uB.isInteractive(this.model),mediaType:!s.M2.isVideo(this.model),subtitles:!1,resources:!1,ratingColorClass:n&&u.uB.mapRatingToClass(n.value),closeCaptionSvg:i.Nj.getSvg(i.vn.CloseCaptionBadge),resourcesSvg:i.Nj.getSvg(i.vn.Resources),awaitingReviewMessage:e,awaitingReviewBadgeClass:s.S9.getReviewBadgeClassName(this.model,f.reviewBadge,f.urgentReviewBadge),restrictionMessage:t,rating:n}}},{key:"onRender",value:function(){this.renderMediaTypeBadge()}}])&&h(t.prototype,n),Object.defineProperty(t,"prototype",{writable:!1}),g}(o.Q.wA)},42511:function(e,t,n){"use strict";n.d(t,{x:function(){return k}});var o=n(39479),r=n(31647),i=n(56210),l=n(63791),a=n(90402),s=n(91850),u=n(93569),c=n(89707),p=n(37570),f=n(94559),d=n.n(f),h={series:"IEOid"};function y(e){return y="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},y(e)}function m(e,t,n){return(t=g(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function v(e,t){for(var n=0;n<t.length;n++){var o=t[n];o.enumerable=o.enumerable||!1,o.configurable=!0,"value"in o&&(o.writable=!0),Object.defineProperty(e,g(o.key),o)}}function g(e){var t=function(e,t){if("object"!==y(e)||null===e)return e;var n=e[Symbol.toPrimitive];if(void 0!==n){var o=n.call(e,"string");if("object"!==y(o))return o;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}(e);return"symbol"===y(t)?t:String(t)}function b(e,t){return b=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(e,t){return e.__proto__=t,e},b(e,t)}function w(e){return w=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(e){return e.__proto__||Object.getPrototypeOf(e)},w(e)}var k=function(e){!function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),Object.defineProperty(e,"prototype",{writable:!1}),t&&b(e,t)}(k,e);var t,n,r,f,g=(r=k,f=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}}(),function(){var e,t=w(r);if(f){var n=w(this).constructor;e=Reflect.construct(t,arguments,n)}else e=t.apply(this,arguments);return function(e,t){if(t&&("object"===y(t)||"function"==typeof t))return t;if(void 0!==t)throw new TypeError("Derived constructors may only return object or undefined");return function(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}(e)}(this,e)});function k(e){return function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,k),g.call(this,e)}return t=k,(n=[{key:"initialize",value:function(){this.listenTo(this.model,"change:restrictions",this.render)}},{key:"name",get:function(){return"VideoItemPastReleasesMetadataComponent"}},{key:"template",get:function(){return d()}},{key:"lang",get:function(){return"shared.videoItemPastReleasesMetadata"}},{key:"behaviors",get:function(){return[{behaviorClass:i.H,selector:".tool-tip"}]}},{key:"regions",value:function(){return{badges:{el:".badges-region",replaceElement:!0},series:{el:".series-region",replaceElement:!0}}}},{key:"events",value:function(){return m(m({"click .video-title":"onClickMetadata"},"click .".concat(h.series),"onClickMetadata"),"click .svg-container","onClickMetadata")}},{key:"onClickMetadata",value:function(e){e.stopPropagation()}},{key:"getVideoUrl",value:function(){var e="videos/".concat(this.model.get("id"));return c.k.getMainProductUrl(this.options.config,e,e)}},{key:"getSeriesUrl",value:function(){if(this.model.series){var e="series/".concat(this.model.series.id);return c.k.getMainProductUrl(this.options.config,e,e)}}},{key:"renderBadges",value:function(){this.showChildView("badges",new s.k({model:this.model}))}},{key:"renderSeries",value:function(){this.showChildView("series",new p.O({model:this.model,highlight:!1,seriesUrl:this.getSeriesUrl()}))}},{key:"viewOptions",value:function(){return{styles:o.extend({},a.Z,h),videoUrl:this.getVideoUrl(),openExternalSvg:l.Nj.getSvg(l.vn.NewWindow),hasAdminRestriction:u.S9.hasAdminRestriction(this.model),restrictionMessage:u.S9.getRestrictionTooltipMessage(this.model),lockSvg:l.Nj.getSvg(l.vn.Lock)}}},{key:"onRender",value:function(){this.renderSeries(),this.renderBadges()}}])&&v(t.prototype,n),Object.defineProperty(t,"prototype",{writable:!1}),k}(r.Q.wA)},60371:function(e,t,n){"use strict";n.d(t,{x:function(){return d}});var o=n(31647),r=n(5854),i=n(50028),l=n(57098),a=n(56914),s=n.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},u(e)}function c(e,t){for(var n=0;n<t.length;n++){var o=t[n];o.enumerable=o.enumerable||!1,o.configurable=!0,"value"in o&&(o.writable=!0),Object.defineProperty(e,(void 0,r=function(e,t){if("object"!==u(e)||null===e)return e;var n=e[Symbol.toPrimitive];if(void 0!==n){var o=n.call(e,"string");if("object"!==u(o))return o;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}(o.key),"symbol"===u(r)?r:String(r)),o)}var r}function p(e,t){return p=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(e,t){return e.__proto__=t,e},p(e,t)}function f(e){return f=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(e){return e.__proto__||Object.getPrototypeOf(e)},f(e)}var d=function(e){!function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),Object.defineProperty(e,"prototype",{writable:!1}),t&&p(e,t)}(h,e);var t,n,o,a,d=(o=h,a=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}}(),function(){var e,t=f(o);if(a){var n=f(this).constructor;e=Reflect.construct(t,arguments,n)}else e=t.apply(this,arguments);return function(e,t){if(t&&("object"===u(t)||"function"==typeof t))return t;if(void 0!==t)throw new TypeError("Derived constructors may only return object or undefined");return function(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}(e)}(this,e)});function h(e){return function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,h),d.call(this,e)}return t=h,(n=[{key:"initialize",value:function(){this.bindListeners()}},{key:"bindListeners",value:function(){this.model.get("status")===i.X.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 s()}},{key:"appLinks",get:function(){var e=this.model.series?this.model.series.id:"";return{".applink-series":{application:l.OV.LIBRARY_EDITOR,action:l.eX.LibraryEditor.FOLDER,args:[e]}}}},{key:"viewOptions",value:function(){return this.pendingItem?{status:r.S.getStatus(this.pendingItem),hasError:r.S.hasError(this.pendingItem),hasPendingItem:!0}:{hasPendingItem:!1}}}])&&c(t.prototype,n),Object.defineProperty(t,"prototype",{writable:!1}),h}(o.Q.wA)},67430:function(e,t,n){"use strict";n.d(t,{b:function(){return b}});var o=n(39479),r=n(31647),i=n(56210),l=n(63791),a=n(91850),s=n(7427),u=n(93569),c=n(37570),p=n(47062),f=n.n(p),d=n(90402);function h(e){return h="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},h(e)}function y(e,t){for(var n=0;n<t.length;n++){var o=t[n];o.enumerable=o.enumerable||!1,o.configurable=!0,"value"in o&&(o.writable=!0),Object.defineProperty(e,m(o.key),o)}}function m(e){var t=function(e,t){if("object"!==h(e)||null===e)return e;var n=e[Symbol.toPrimitive];if(void 0!==n){var o=n.call(e,"string");if("object"!==h(o))return o;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}(e);return"symbol"===h(t)?t:String(t)}function v(e,t){return v=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(e,t){return e.__proto__=t,e},v(e,t)}function g(e){return g=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(e){return e.__proto__||Object.getPrototypeOf(e)},g(e)}var b=function(e){!function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),Object.defineProperty(e,"prototype",{writable:!1}),t&&v(e,t)}(w,e);var t,n,r,p,b=(r=w,p=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}}(),function(){var e,t=g(r);if(p){var n=g(this).constructor;e=Reflect.construct(t,arguments,n)}else e=t.apply(this,arguments);return function(e,t){if(t&&("object"===h(t)||"function"==typeof t))return t;if(void 0!==t)throw new TypeError("Derived constructors may only return object or undefined");return function(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}(e)}(this,e)});function w(e){return function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,w),b.call(this,e)}return t=w,(n=[{key:"initialize",value:function(){this.listenTo(this.model,"change:restrictions",this.render)}},{key:"name",get:function(){return"VideoItemSearchMetadataComponent"}},{key:"template",get:function(){return f()}},{key:"behaviors",get:function(){return[{behaviorClass:i.H,selector:".tool-tip"}]}},{key:"appLinks",get:function(){return{".applink-show-video":u.M2.getDetailsAppLink(this.model)}}},{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="onClickSvg",(t=m(t="click ".concat(d.Z.svgContainer)))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e;var e,t,n}},{key:"onClickSvg",value:function(e){e.stopPropagation()}},{key:"getKeyPhrases",value:function(){var e=this;return u.m$.extractKeyPhrases(this.model.get("description"),this.model.get("_matchedWords"),100,2).map((function(t){return u.m$.wordsHighlighter(u.m$.escapeExpression(t),e.model.get("_matchedWords"))}))}},{key:"renderSources",value:function(){var e=o.extend({},{model:this.model},this.options.sourceMetadataOptions);this.showChildView("sources",new s.V(e))}},{key:"renderSeries",value:function(){this.showChildView("series",new c.O({model:this.model,highlight:this.options.sourceMetadataOptions&&!!this.options.sourceMetadataOptions.highlight}))}},{key:"renderBadges",value:function(){this.showChildView("badges",new a.k({model:this.model}))}},{key:"viewOptions",value:function(){return{styles:d.Z,name:u.m$.wordsHighlighter(u.m$.escapeExpression(this.model.get("name")),this.model.get("_matchedWords")),keyPhrases:this.getKeyPhrases(),hasAdminRestriction:u.S9.hasAdminRestriction(this.model),restrictionMessage:u.S9.getRestrictionTooltipMessage(this.model),lockSvg:l.Nj.getSvg(l.vn.Lock)}}},{key:"onRender",value:function(){this.renderSeries(),this.renderSources(),this.renderBadges()}}])&&y(t.prototype,n),Object.defineProperty(t,"prototype",{writable:!1}),w}(r.Q.wA)},37570:function(e,t,n){"use strict";n.d(t,{O:function(){return h}});var o=n(31647),r=n(63791),i=n(57098),l=n(93569),a=n(19021),s=n.n(a),u={svgContainer:"kKrQJ",series:"zJvxj"};function c(e){return c="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},c(e)}function p(e,t){for(var n=0;n<t.length;n++){var o=t[n];o.enumerable=o.enumerable||!1,o.configurable=!0,"value"in o&&(o.writable=!0),Object.defineProperty(e,(void 0,r=function(e,t){if("object"!==c(e)||null===e)return e;var n=e[Symbol.toPrimitive];if(void 0!==n){var o=n.call(e,"string");if("object"!==c(o))return o;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}(o.key),"symbol"===c(r)?r:String(r)),o)}var r}function f(e,t){return f=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(e,t){return e.__proto__=t,e},f(e,t)}function d(e){return d=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(e){return e.__proto__||Object.getPrototypeOf(e)},d(e)}var h=function(e){!function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),Object.defineProperty(e,"prototype",{writable:!1}),t&&f(e,t)}(y,e);var t,n,o,a,h=(o=y,a=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}}(),function(){var e,t=d(o);if(a){var n=d(this).constructor;e=Reflect.construct(t,arguments,n)}else e=t.apply(this,arguments);return function(e,t){if(t&&("object"===c(t)||"function"==typeof t))return t;if(void 0!==t)throw new TypeError("Derived constructors may only return object or undefined");return function(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}(e)}(this,e)});function y(e){return function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,y),h.call(this,e)}return t=y,(n=[{key:"defaults",get:function(){return{styleUppercase:!0}}},{key:"name",get:function(){return"VideoItemSeriesComponent"}},{key:"template",get:function(){return s()}},{key:"appLinks",get:function(){return this.options.seriesUrl||!this.model.series?{}:{".series-applink":{application:i.OV.LIBRARY_EDITOR,action:i.eX.LibraryEditor.SERIES,args:[this.model.series.get("id")]}}}},{key:"padNumber",value:function(e){if(!e)return null;var t=e.toString(),n=2;if(t.length>=n)return t;for(n-=t.length;n>0;)t="0"+t,n--;return t}},{key:"getSeriesName",value:function(){var e=l.m$.escapeExpression(this.model.series.get("name"));return this.options.highlight?l.m$.wordsHighlighter(e,this.model.get("_matchedWords")):e}},{key:"viewOptions",value:function(){return this.model.series?{styles:u,seasonNumber:this.padNumber(this.model.season&&this.model.season.get("number")),episodeNumber:this.padNumber(this.model.get("episodeNumber")),seriesName:this.getSeriesName(),seriesUrl:this.options.seriesUrl,externalSvg:r.Nj.getSvg(r.vn.NewWindow),styleUppercase:this.options.styleUppercase}:{}}},{key:"onBeforeRender",value:function(){return this.model.series&&!!this.model.series.get("id")}}])&&p(t.prototype,n),Object.defineProperty(t,"prototype",{writable:!1}),y}(o.Q.wA)},2496:function(e,t,n){"use strict";n.d(t,{g:function(){return k}});var o=n(39479),r=n(31647),i=n(56210),l=n(63791),a=n(91850),s=n(37570),u=n(7427),c=n(57098),p=n(93569),f=n(89707),d=n(94446),h=n.n(d),y=n(90402);function m(e){return m="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},m(e)}function v(e,t){for(var n=0;n<t.length;n++){var o=t[n];o.enumerable=o.enumerable||!1,o.configurable=!0,"value"in o&&(o.writable=!0),Object.defineProperty(e,g(o.key),o)}}function g(e){var t=function(e,t){if("object"!==m(e)||null===e)return e;var n=e[Symbol.toPrimitive];if(void 0!==n){var o=n.call(e,"string");if("object"!==m(o))return o;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}(e);return"symbol"===m(t)?t:String(t)}function b(e,t){return b=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(e,t){return e.__proto__=t,e},b(e,t)}function w(e){return w=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(e){return e.__proto__||Object.getPrototypeOf(e)},w(e)}var k=function(e){!function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),Object.defineProperty(e,"prototype",{writable:!1}),t&&b(e,t)}(O,e);var t,n,r,d,k=(r=O,d=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}}(),function(){var e,t=w(r);if(d){var n=w(this).constructor;e=Reflect.construct(t,arguments,n)}else e=t.apply(this,arguments);return function(e,t){if(t&&("object"===m(t)||"function"==typeof t))return t;if(void 0!==t)throw new TypeError("Derived constructors may only return object or undefined");return function(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}(e)}(this,e)});function O(e){return function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,O),k.call(this,e)}return t=O,(n=[{key:"initialize",value:function(){this.listenTo(this.model,"change:restrictions",this.render)}},{key:"name",get:function(){return"VideoItemVideoAccessMetadataComponent"}},{key:"template",get:function(){return h()}},{key:"behaviors",get:function(){return[{behaviorClass:i.H,selector:".tool-tip"}]}},{key:"appLinks",get:function(){if(p.M2.hasCustomLibrary(this.model))return{".applink-show-video":{application:c.OV.LIBRARY_EDITOR,action:c.eX.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="onClickMetadata",(t=g(t="click .".concat(y.Z.svgContainer)))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e;var e,t,n}},{key:"onClickMetadata",value:function(e){e.stopPropagation()}},{key:"getVideoUrl",value:function(){var e="videos/".concat(this.model.get("id"));return f.k.getMainProductUrl(this.options.config,e,e)}},{key:"renderSources",value:function(){if(p.M2.hasCustomLibrary(this.model)){var e=o.extend({},{model:this.model},this.options.sourceMetadataOptions);this.showChildView("sources",new u.V(e))}}},{key:"renderSeries",value:function(){p.M2.hasCustomLibrary(this.model)&&this.showChildView("series",new s.O({model:this.model,highlight:this.options.sourceMetadataOptions&&!!this.options.sourceMetadataOptions.highlight}))}},{key:"renderBadges",value:function(){this.showChildView("badges",new a.k({model:this.model,showRestrictionBadge:!0}))}},{key:"viewOptions",value:function(){return{styles:y.Z,restrictionMessage:p.S9.getRestrictionTooltipMessage(this.model),lockSvg:l.Nj.getSvg(l.vn.Lock),linkToOnline:!p.M2.hasCustomLibrary(this.model),videoUrl:this.getVideoUrl(),openExternalSvg:l.Nj.getSvg(l.vn.NewWindow)}}},{key:"onRender",value:function(){this.renderSeries(),this.renderSources(),this.renderBadges()}}])&&v(t.prototype,n),Object.defineProperty(t,"prototype",{writable:!1}),O}(r.Q.wA)},62699:function(e,t,n){var o=n(32227);e.exports=(o.default||o).template({compiler:[8,">= 4.3.0"],main:function(e,t,n,o,r){e.propertyIsEnumerable;var i,l=e.lambda,a=e.escapeExpression;return'<span class="'+a(l(null!=(i=null!=(i=null!=t?t.options:t)?i.styles:i)?i.svgContainer:i,t))+' me-2">'+(null!=(i=l(null!=(i=null!=t?t.options:t)?i.svg:i,t))?i:"")+'</span>\n<span class="'+a(l(null!=(i=null!=(i=null!=t?t.options:t)?i.styles:i)?i.dragText:i,t))+'">'+a(l(null!=(i=null!=t?t.options:t)?i.text:i,t))+"</span>"},useData:!0})},85597:function(e,t,n){var o=n(32227);e.exports=(o.default||o).template({1:function(e,t,n,o,r){var i;return e.propertyIsEnumerable,' <a class="info-link show-more-tags">'+e.escapeExpression(e.lambda(null!=(i=null!=t?t.options:t)?i.extraTagsText:i,t))+"</a>\n"},3:function(e,t,n,o,r){return e.propertyIsEnumerable,' <a class="info-link applink-video-details">'+e.escapeExpression((n.lang||t&&t.lang||e.hooks.helperMissing).call(null!=t?t:e.nullContext||{},"viewAllTags",{name:"lang",hash:{},data:r}))+"</a>\n"},compiler:[8,">= 4.3.0"],main:function(e,t,n,o,r){e.propertyIsEnumerable;var i,l=null!=t?t:e.nullContext||{};return'<div class="tags-region"></div>\n\n'+(null!=(i=n.if.call(l,null!=(i=null!=t?t.options:t)?i.expandable:i,{name:"if",hash:{},fn:e.program(1,r,0),inverse:e.noop,data:r}))?i:"")+(null!=(i=n.if.call(l,null!=(i=null!=t?t.options:t)?i.moreTags:i,{name:"if",hash:{},fn:e.program(3,r,0),inverse:e.noop,data:r}))?i:"")},useData:!0})},16317:function(e,t,n){var o=n(32227);e.exports=(o.default||o).template({1:function(e,t,n,o,r){return" cursor-pointer"},3:function(e,t,n,o,r){return"checked"},5:function(e,t,n,o,r){return"disabled"},compiler:[8,">= 4.3.0"],main:function(e,t,n,o,r){e.propertyIsEnumerable;var i,l=e.lambda,a=e.escapeExpression,s=null!=t?t:e.nullContext||{};return'<div class="form-check '+a(l(null!=(i=null!=t?t.options:t)?i.checkboxClassName:i,t))+'">\n <input name="checkbox-'+a(l(null!=(i=null!=t?t.options:t)?i.id:i,t))+'" id="checkbox-'+a(l(null!=(i=null!=t?t.options:t)?i.id:i,t))+'" type="checkbox" class="form-check-input'+(null!=(i=n.unless.call(s,null!=(i=null!=t?t.options:t)?i.disabled:i,{name:"unless",hash:{},fn:e.program(1,r,0),inverse:e.noop,data:r}))?i:"")+'" '+(null!=(i=n.if.call(s,null!=(i=null!=t?t.options:t)?i.checked:i,{name:"if",hash:{},fn:e.program(3,r,0),inverse:e.noop,data:r}))?i:"")+" "+(null!=(i=n.if.call(s,null!=(i=null!=t?t.options:t)?i.disabled:i,{name:"if",hash:{},fn:e.program(5,r,0),inverse:e.noop,data:r}))?i:"")+' />\n <label class="form-check-label'+(null!=(i=n.unless.call(s,null!=(i=null!=t?t.options:t)?i.disabled:i,{name:"unless",hash:{},fn:e.program(1,r,0),inverse:e.noop,data:r}))?i:"")+'" for="checkbox-'+a(l(null!=(i=null!=t?t.options:t)?i.id:i,t))+'"> </label>\n</div>'},useData:!0})},30225:function(e,t,n){var o=n(32227);e.exports=(o.default||o).template({compiler:[8,">= 4.3.0"],main:function(e,t,n,o,r){e.propertyIsEnumerable;var i,l=e.lambda,a=e.escapeExpression;return"<p>"+a(l(null!=(i=null!=t?t.options:t)?i.duration:i,t))+"</p>\n\n<div class='overflow-hidden rounded-3 border border-secondary-subtle p-3'>\n <div class='position-relative z-1'>\n <div class='position-absolute w-100'>\n <div class='bg-light rounded-3 "+a(l(null!=(i=null!=(i=null!=t?t.options:t)?i.styles:i)?i.durationBar:i,t))+"'></div>\n </div>\n </div>\n <div class='position-relative z-1' style="+a(l(null!=(i=null!=t?t.options:t)?i.clipPosition:i,t))+">\n <div class='bg-blue rounded-3 px-1 "+a(l(null!=(i=null!=(i=null!=t?t.options:t)?i.styles:i)?i.durationBar:i,t))+"' style="+a(l(null!=(i=null!=t?t.options:t)?i.clipDurationWidth:i,t))+" />\n </div>\n <div class='d-flex justify-content-between text-body-secondary'>\n <span>"+a(l(null!=(i=null!=t?t.options:t)?i.startDuration:i,t))+"</span>\n <span>"+a(l(null!=(i=null!=t?t.options:t)?i.parentDuration:i,t))+"</span>\n </div>\n</div>"},useData:!0})},19496:function(e,t,n){var o=n(32227);e.exports=(o.default||o).template({1:function(e,t,n,o,r){return e.propertyIsEnumerable," <p>"+e.escapeExpression((n.lang||t&&t.lang||e.hooks.helperMissing).call(null!=t?t:e.nullContext||{},"noDescription",{name:"lang",hash:{},data:r}))+"</p>\n"},3:function(e,t,n,o,r){return' <div class="description-region"></div>\n'},compiler:[8,">= 4.3.0"],main:function(e,t,n,o,r){e.propertyIsEnumerable;var i,l=null!=t?t:e.nullContext||{},a=e.hooks.helperMissing,s=e.escapeExpression;return'<div class="content-container-region row w-100 py-3 ps-0">\n <div class="col-5">\n <div class="video-preview-region"></div>\n </div>\n <div class="col-7 ps-3 pe-0">\n <p class="h5">'+s((n.lang||t&&t.lang||a).call(l,"details",{name:"lang",hash:{},data:r}))+'</p>\n\n <div class="row mb-3">\n <p class="fw-semibold col-3">'+s((n.lang||t&&t.lang||a).call(l,"description",{name:"lang",hash:{},data:r}))+'</p>\n\n <div class="col-9">\n'+(null!=(i=n.unless.call(l,null!=(i=null!=t?t.options:t)?i.description:i,{name:"unless",hash:{},fn:e.program(1,r,0),inverse:e.program(3,r,0),data:r}))?i:"")+' </div>\n\n <p class="fw-semibold col-3">'+s((n.lang||t&&t.lang||a).call(l,"duration",{name:"lang",hash:{},data:r}))+'</p>\n\n <div class="col-9">\n <div class="clip-duration-region"></div>\n </div>\n </div>\n\n\n <div class="text-end">\n <a class="info-link applink-video-details d-inline-block fw-semibold">\n '+s((n.lang||t&&t.lang||a).call(l,"viewFullDetails",{name:"lang",hash:{},data:r}))+"\n </a>\n </div>\n </div>\n</div>"},useData:!0})},78208:function(e,t,n){var o=n(32227);e.exports=(o.default||o).template({1:function(e,t,n,o,r){return e.propertyIsEnumerable," <p>"+e.escapeExpression((n.lang||t&&t.lang||e.hooks.helperMissing).call(null!=t?t:e.nullContext||{},"noDescription",{name:"lang",hash:{},data:r}))+"</p>\n"},3:function(e,t,n,o,r){return' <div class="description-region"></div>\n'},5:function(e,t,n,o,r){return' <div class="mb-3">\n <div class="interactives-region"></div>\n </div>\n'},compiler:[8,">= 4.3.0"],main:function(e,t,n,o,r){e.propertyIsEnumerable;var i,l=null!=t?t:e.nullContext||{},a=e.hooks.helperMissing,s=e.escapeExpression;return'<div class="content-container-region row w-100 py-3 ps-0">\n <div class="col-5">\n <div class="interactive-thumbnail-region"></div>\n </div>\n <div class="col-7 ps-3 pe-0">\n <p class="h5">'+s((n.lang||t&&t.lang||a).call(l,"details",{name:"lang",hash:{},data:r}))+'</p>\n\n <div class="row">\n <p class="fw-semibold col-3">'+s((n.lang||t&&t.lang||a).call(l,"description",{name:"lang",hash:{},data:r}))+'</p>\n\n <div class="col-9">\n'+(null!=(i=n.unless.call(l,null!=(i=null!=t?t.options:t)?i.description:i,{name:"unless",hash:{},fn:e.program(1,r,0),inverse:e.program(3,r,0),data:r}))?i:"")+" </div>\n </div>\n\n"+(null!=(i=n.if.call(l,null!=(i=null!=t?t.options:t)?i.hasInteractions:i,{name:"if",hash:{},fn:e.program(5,r,0),inverse:e.noop,data:r}))?i:"")+'\n <div class="text-end">\n <a class="info-link applink-video-details d-inline-block fw-semibold">\n '+s((n.lang||t&&t.lang||a).call(l,"viewFullDetails",{name:"lang",hash:{},data:r}))+"\n </a>\n </div>\n </div>\n</div>"},useData:!0})},27718:function(e,t,n){var o=n(32227);e.exports=(o.default||o).template({1:function(e,t,n,o,r){e.propertyIsEnumerable;var i,l,a=null!=t?t:e.nullContext||{},s=e.hooks.helperMissing,u="function",c=e.escapeExpression;return' <div class="d-flex gap-4">\n <span>'+c(typeof(l=null!=(l=n.time||(null!=t?t.time:t))?l:s)===u?l.call(a,{name:"time",hash:{},data:r}):l)+'</span>\n <div class="'+c(typeof(l=null!=(l=n.bgClassName||(null!=t?t.bgClassName:t))?l:s)===u?l.call(a,{name:"bgClassName",hash:{},data:r}):l)+' interaction-type-icon d-flex flex-shrink-0 sm">'+(null!=(i=typeof(l=null!=(l=n.svgEl||(null!=t?t.svgEl:t))?l:s)===u?l.call(a,{name:"svgEl",hash:{},data:r}):l)?i:"")+'</div>\n <span class="fw-semibold col-2">'+c(typeof(l=null!=(l=n.typeName||(null!=t?t.typeName:t))?l:s)===u?l.call(a,{name:"typeName",hash:{},data:r}):l)+"</span>\n <span>"+c(typeof(l=null!=(l=n.name||(null!=t?t.name:t))?l:s)===u?l.call(a,{name:"name",hash:{},data:r}):l)+"</span>\n </div>\n"},compiler:[8,">= 4.3.0"],main:function(e,t,n,o,r){var i;return e.propertyIsEnumerable,'<p class="fw-semibold">'+e.escapeExpression(e.lambda(null!=(i=null!=t?t.options:t)?i.heading:i,t))+'</p>\n<div class="d-flex flex-column gap-3">\n'+(null!=(i=n.each.call(null!=t?t:e.nullContext||{},null!=(i=null!=t?t.options:t)?i.questionListElements:i,{name:"each",hash:{},fn:e.program(1,r,0),inverse:e.noop,data:r}))?i:"")+"</div>"},useData:!0})},75176:function(e,t,n){var o=n(32227);e.exports=(o.default||o).template({compiler:[8,">= 4.3.0"],main:function(e,t,n,o,r){e.propertyIsEnumerable;var i,l=e.lambda,a=e.escapeExpression;return'<a href="'+a(l(null!=(i=null!=t?t.options:t)?i.externalLink:i,t))+'" target="_blank" class="position-relative '+a(l(null!=(i=null!=(i=null!=t?t.options:t)?i.styles:i)?i.interactiveThumbnail:i,t))+'">\n <div class="'+a(l(null!=(i=null!=(i=null!=t?t.options:t)?i.styles:i)?i.newWindowIcon:i,t))+' position-absolute top-0 end-0 z-3 bg-white bg-opacity-75 rounded-circle p-1 m-2">\n <div class="svg-container md">\n '+(null!=(i=l(null!=(i=null!=t?t.options:t)?i.externalLinkSvg:i,t))?i:"")+'\n </div>\n </div>\n <div class="thumbnail-region"></div>\n</a>'},useData:!0})},85348:function(e,t,n){var o=n(32227);e.exports=(o.default||o).template({compiler:[8,">= 4.3.0"],main:function(e,t,n,o,r){e.propertyIsEnumerable;var i,l=e.lambda,a=e.escapeExpression;return'<div class="d-inline-block rounded-pill text-white ps-1 pe-2 '+a(l(null!=(i=null!=(i=null!=t?t.options:t)?i.styles:i)?i.mediaTypeBadge:i,t))+" "+a(l(null!=(i=null!=(i=null!=t?t.options:t)?i.mediaType:i)?i.bgClass:i,t))+'">\n <div class="svg-container sm">'+(null!=(i=l(null!=(i=null!=(i=null!=t?t.options:t)?i.mediaType:i)?i.svg:i,t))?i:"")+'</div>\n <span class="font-size-sm align-text-top">'+a(l(null!=(i=null!=(i=null!=t?t.options:t)?i.mediaType:i)?i.label:i,t))+"</span>\n</div>"},useData:!0})},15035:function(e,t,n){var o=n(32227);e.exports=(o.default||o).template({1:function(e,t,n,o,r){return e.propertyIsEnumerable,' <p class="col-9 mb-0 pb-1">'+e.escapeExpression((n.lang||t&&t.lang||e.hooks.helperMissing).call(null!=t?t:e.nullContext||{},"noDescription",{name:"lang",hash:{},data:r}))+"</p>\n"},3:function(e,t,n,o,r){return' <div class="col-9">\n <div class="description-region"></div>\n </div>\n'},5:function(e,t,n,o,r){e.propertyIsEnumerable;var i,l=e.lambda,a=e.escapeExpression;return' <div class="col-3 '+a(l(null!=(i=null!=(i=null!=t?t.options:t)?i.styles:i)?i.columnNames:i,t))+'">'+a((n.lang||t&&t.lang||e.hooks.helperMissing).call(null!=t?t:e.nullContext||{},"rating",{name:"lang",hash:{},data:r}))+'</div>\n <p class="col-9">\n <span class="badge text-white tool-tip '+a(l(null!=(i=null!=t?t.options:t)?i.ratingClass:i,t))+'" title="'+a(l(null!=(i=null!=t?t.rating:t)?i.name:i,t))+'">'+a(l(null!=(i=null!=t?t.rating:t)?i.code:i,t))+"</span>\n </p>\n"},7:function(e,t,n,o,r){e.propertyIsEnumerable;var i,l,a=e.escapeExpression,s=null!=t?t:e.nullContext||{},u=e.hooks.helperMissing;return' <div class="col-3 '+a(e.lambda(null!=(i=null!=(i=null!=t?t.options:t)?i.styles:i)?i.columnNames:i,t))+'">'+a((n.lang||t&&t.lang||u).call(s,"productionYear",{name:"lang",hash:{},data:r}))+'</div>\n <p class="col-9">'+a("function"==typeof(l=null!=(l=n.productionYear||(null!=t?t.productionYear:t))?l:u)?l.call(s,{name:"productionYear",hash:{},data:r}):l)+"</p>\n"},9:function(e,t,n,o,r){e.propertyIsEnumerable;var i,l=e.lambda,a=e.escapeExpression,s=null!=t?t:e.nullContext||{};return' <div class="col-3 '+a(l(null!=(i=null!=(i=null!=t?t.options:t)?i.styles:i)?i.columnNames:i,t))+'">'+a((n.lang||t&&t.lang||e.hooks.helperMissing).call(s,"chapters",{name:"lang",hash:{},data:r}))+'</div>\n <p class="col-9">\n <a\n class="info-link '+(null!=(i=n.unless.call(s,null!=(i=null!=t?t.options:t)?i.externalLink:i,{name:"unless",hash:{},fn:e.program(10,r,0),inverse:e.noop,data:r}))?i:"")+'"\n'+(null!=(i=n.if.call(s,null!=(i=null!=t?t.options:t)?i.externalLink:i,{name:"if",hash:{},fn:e.program(12,r,0),inverse:e.noop,data:r}))?i:"")+" >\n "+a(l(null!=(i=null!=t?t.options:t)?i.chapters:i,t))+"\n "+(null!=(i=n.if.call(s,null!=(i=null!=t?t.options:t)?i.externalLink:i,{name:"if",hash:{},fn:e.program(14,r,0),inverse:e.noop,data:r}))?i:"")+"\n </a>\n </p>\n"},10:function(e,t,n,o,r){return"applink-video-details"},12:function(e,t,n,o,r){var i;return e.propertyIsEnumerable,' href="'+e.escapeExpression(e.lambda(null!=(i=null!=t?t.options:t)?i.externalLink:i,t))+'"\n target="_blank"\n'},14:function(e,t,n,o,r){e.propertyIsEnumerable;var i,l=e.lambda;return'<div class="d-inline-block '+e.escapeExpression(l(null!=(i=null!=(i=null!=t?t.options:t)?i.styles:i)?i.smallSvgContainer:i,t))+'">'+(null!=(i=l(null!=(i=null!=t?t.options:t)?i.openExternalSvg:i,t))?i:"")+"</div>"},16:function(e,t,n,o,r){e.propertyIsEnumerable;var i,l=e.lambda,a=e.escapeExpression;return' <div class="col-3 '+a(l(null!=(i=null!=(i=null!=t?t.options:t)?i.styles:i)?i.columnNames:i,t))+'">'+a((n.lang||t&&t.lang||e.hooks.helperMissing).call(null!=t?t:e.nullContext||{},"interactives",{name:"lang",hash:{},data:r}))+'</div>\n <p class="col-9">'+a(l(null!=(i=null!=t?t.options:t)?i.interactives:i,t))+"</p>\n"},18:function(e,t,n,o,r){e.propertyIsEnumerable;var i,l=e.lambda,a=e.escapeExpression;return' <div class="col-3 '+a(l(null!=(i=null!=(i=null!=t?t.options:t)?i.styles:i)?i.columnNames:i,t))+'">'+a((n.lang||t&&t.lang||e.hooks.helperMissing).call(null!=t?t:e.nullContext||{},"subtitles",{name:"lang",hash:{},data:r}))+'</div>\n <p class="col-9">'+a(l(null!=(i=null!=t?t.options:t)?i.subtitles:i,t))+"</p>\n"},20:function(e,t,n,o,r){e.propertyIsEnumerable;var i,l=e.lambda,a=e.escapeExpression,s=null!=t?t:e.nullContext||{};return' <div class="col-3 '+a(l(null!=(i=null!=(i=null!=t?t.options:t)?i.styles:i)?i.columnNames:i,t))+'">'+a((n.lang||t&&t.lang||e.hooks.helperMissing).call(s,"resources",{name:"lang",hash:{},data:r}))+'</div>\n <p class="col-9">\n <a\n class="info-link '+(null!=(i=n.unless.call(s,null!=(i=null!=t?t.options:t)?i.externalLink:i,{name:"unless",hash:{},fn:e.program(10,r,0),inverse:e.noop,data:r}))?i:"")+'"\n'+(null!=(i=n.if.call(s,null!=(i=null!=t?t.options:t)?i.externalLink:i,{name:"if",hash:{},fn:e.program(12,r,0),inverse:e.noop,data:r}))?i:"")+" >\n "+a(l(null!=(i=null!=t?t.options:t)?i.resources:i,t))+"\n "+(null!=(i=n.if.call(s,null!=(i=null!=t?t.options:t)?i.externalLink:i,{name:"if",hash:{},fn:e.program(14,r,0),inverse:e.noop,data:r}))?i:"")+"\n </a>\n </p>\n"},22:function(e,t,n,o,r){e.propertyIsEnumerable;var i,l=e.lambda,a=e.escapeExpression,s=null!=t?t:e.nullContext||{};return' <div class="col-3 '+a(l(null!=(i=null!=(i=null!=t?t.options:t)?i.styles:i)?i.columnNames:i,t))+'">'+a((n.lang||t&&t.lang||e.hooks.helperMissing).call(s,"links",{name:"lang",hash:{},data:r}))+'</div>\n <p class="col-9">\n <a\n class="info-link '+(null!=(i=n.unless.call(s,null!=(i=null!=t?t.options:t)?i.externalLink:i,{name:"unless",hash:{},fn:e.program(10,r,0),inverse:e.noop,data:r}))?i:"")+'"\n'+(null!=(i=n.if.call(s,null!=(i=null!=t?t.options:t)?i.externalLink:i,{name:"if",hash:{},fn:e.program(12,r,0),inverse:e.noop,data:r}))?i:"")+" >\n "+a(l(null!=(i=null!=t?t.options:t)?i.links:i,t))+"\n "+(null!=(i=n.if.call(s,null!=(i=null!=t?t.options:t)?i.externalLink:i,{name:"if",hash:{},fn:e.program(14,r,0),inverse:e.noop,data:r}))?i:"")+"\n </a>\n </p>\n"},24:function(e,t,n,o,r){e.propertyIsEnumerable;var i,l=e.escapeExpression;return' <p class="col-3 '+l(e.lambda(null!=(i=null!=(i=null!=t?t.options:t)?i.styles:i)?i.columnNames:i,t))+'">'+l((n.lang||t&&t.lang||e.hooks.helperMissing).call(null!=t?t:e.nullContext||{},"tags",{name:"lang",hash:{},data:r}))+'</p>\n <div class="col-9 mb-3">\n <div class="tags-region"></div>\n </div>\n'},26:function(e,t,n,o,r){e.propertyIsEnumerable;var i,l=e.lambda,a=e.escapeExpression;return' <a href="'+a(l(null!=(i=null!=t?t.options:t)?i.externalLink:i,t))+'" target="_blank" class="info-link d-inline-block '+a(l(null!=(i=null!=(i=null!=t?t.options:t)?i.styles:i)?i.columnNames:i,t))+'">\n '+a((n.lang||t&&t.lang||e.hooks.helperMissing).call(null!=t?t:e.nullContext||{},"goToVideo",{name:"lang",hash:{},data:r}))+'\n <div class="d-inline-block svg-container">'+(null!=(i=l(null!=(i=null!=t?t.options:t)?i.openExternalSvg:i,t))?i:"")+"</div>\n </a>\n"},28:function(e,t,n,o,r){e.propertyIsEnumerable;var i,l=e.escapeExpression;return' <a class="info-link applink-video-details d-inline-block '+l(e.lambda(null!=(i=null!=(i=null!=t?t.options:t)?i.styles:i)?i.columnNames:i,t))+'">'+l((n.lang||t&&t.lang||e.hooks.helperMissing).call(null!=t?t:e.nullContext||{},"viewFullDetails",{name:"lang",hash:{},data:r}))+"</a>\n"},compiler:[8,">= 4.3.0"],main:function(e,t,n,o,r){e.propertyIsEnumerable;var i,l=e.lambda,a=e.escapeExpression,s=null!=t?t:e.nullContext||{},u=e.hooks.helperMissing;return'<div class="content-container-region row w-100 py-3 ps-0">\n <div class="col-5">\n <div class="video-preview-region"></div>\n </div>\n <div class="col-7 ps-3 pe-0">\n <p class="h5 '+a(l(null!=(i=null!=(i=null!=t?t.options:t)?i.styles:i)?i.columnNames:i,t))+'">'+a((n.lang||t&&t.lang||u).call(s,"details",{name:"lang",hash:{},data:r}))+'</p>\n\n <div class="row">\n <div class="col-3 '+a(l(null!=(i=null!=(i=null!=t?t.options:t)?i.styles:i)?i.columnNames:i,t))+'">'+a((n.lang||t&&t.lang||u).call(s,"description",{name:"lang",hash:{},data:r}))+"</div>\n"+(null!=(i=n.unless.call(s,null!=(i=null!=t?t.options:t)?i.description:i,{name:"unless",hash:{},fn:e.program(1,r,0),inverse:e.program(3,r,0),data:r}))?i:"")+"\n"+(null!=(i=n.if.call(s,null!=(i=null!=t?t.rating:t)?i.code:i,{name:"if",hash:{},fn:e.program(5,r,0),inverse:e.noop,data:r}))?i:"")+"\n"+(null!=(i=n.if.call(s,null!=t?t.productionYear:t,{name:"if",hash:{},fn:e.program(7,r,0),inverse:e.noop,data:r}))?i:"")+'\n <div class="col-3 '+a(l(null!=(i=null!=(i=null!=t?t.options:t)?i.styles:i)?i.columnNames:i,t))+'">'+a((n.lang||t&&t.lang||u).call(s,"duration",{name:"lang",hash:{},data:r}))+'</div>\n <p class="col-9">'+a(l(null!=(i=null!=t?t.options:t)?i.duration:i,t))+"</p>\n\n"+(null!=(i=n.if.call(s,null!=(i=null!=t?t.options:t)?i.chapters:i,{name:"if",hash:{},fn:e.program(9,r,0),inverse:e.noop,data:r}))?i:"")+"\n"+(null!=(i=n.if.call(s,null!=(i=null!=t?t.options:t)?i.interactives:i,{name:"if",hash:{},fn:e.program(16,r,0),inverse:e.noop,data:r}))?i:"")+"\n"+(null!=(i=n.if.call(s,null!=(i=null!=t?t.options:t)?i.subtitles:i,{name:"if",hash:{},fn:e.program(18,r,0),inverse:e.noop,data:r}))?i:"")+"\n"+(null!=(i=n.if.call(s,null!=(i=null!=t?t.options:t)?i.resources:i,{name:"if",hash:{},fn:e.program(20,r,0),inverse:e.noop,data:r}))?i:"")+"\n"+(null!=(i=n.if.call(s,null!=(i=null!=t?t.options:t)?i.links:i,{name:"if",hash:{},fn:e.program(22,r,0),inverse:e.noop,data:r}))?i:"")+" \n"+(null!=(i=n.if.call(s,null!=(i=null!=t?t.options:t)?i.showTags:i,{name:"if",hash:{},fn:e.program(24,r,0),inverse:e.noop,data:r}))?i:"")+' </div>\n\n <div class="text-end">\n'+(null!=(i=n.if.call(s,null!=(i=null!=t?t.options:t)?i.externalLink:i,{name:"if",hash:{},fn:e.program(26,r,0),inverse:e.program(28,r,0),data:r}))?i:"")+" </div>\n </div>\n</div>"},useData:!0})},56704:function(e,t,n){var o=n(32227);e.exports=(o.default||o).template({1:function(e,t,n,o,r){return" cursor-pointer"},3:function(e,t,n,o,r){return" rounded-bottom"},5:function(e,t,n,o,r){var i;return e.propertyIsEnumerable,' <div class="bulk-checkbox-region '+(null!=(i=n.if.call(null!=t?t:e.nullContext||{},null!=(i=null!=t?t.options:t)?i.bulkPlaceholder:i,{name:"if",hash:{},fn:e.program(6,r,0),inverse:e.noop,data:r}))?i:"")+'"></div>\n'},6:function(e,t,n,o,r){var i;return e.propertyIsEnumerable,e.escapeExpression(e.lambda(null!=(i=null!=(i=null!=t?t.options:t)?i.styles:i)?i.bulkPlaceholder:i,t))},8:function(e,t,n,o,r){return"ps-5"},10:function(e,t,n,o,r){return" ps-3"},compiler:[8,">= 4.3.0"],main:function(e,t,n,o,r){e.propertyIsEnumerable;var i,l=e.lambda,a=e.escapeExpression,s=null!=t?t:e.nullContext||{};return'<div class="d-flex justify-content-between align-items-stretch p-3 drag-item '+a(l(null!=(i=null!=(i=null!=t?t.options:t)?i.styles:i)?i.videoItem:i,t))+(null!=(i=n.if.call(s,null!=(i=null!=t?t.options:t)?i.isClickable:i,{name:"if",hash:{},fn:e.program(1,r,0),inverse:e.noop,data:r}))?i:"")+(null!=(i=n.if.call(s,null!=(i=null!=t?t.options:t)?i.isLastItem:i,{name:"if",hash:{},fn:e.program(3,r,0),inverse:e.noop,data:r}))?i:"")+'">\n'+(null!=(i=n.if.call(s,null!=(i=null!=t?t.options:t)?i.allowBulk:i,{name:"if",hash:{},fn:e.program(5,r,0),inverse:e.noop,data:r}))?i:"")+' <div class="thumbnail-region d-inline-block '+a(l(null!=(i=null!=(i=null!=t?t.options:t)?i.styles:i)?i.thumbnailContainer:i,t))+'"></div>\n <div class="metadata-region d-inline-block px-3 '+a(l(null!=(i=null!=(i=null!=t?t.options:t)?i.styles:i)?i.metaContainer:i,t))+'"></div>\n <div class="video-actions-region d-inline-block '+a(l(null!=(i=null!=(i=null!=t?t.options:t)?i.styles:i)?i.actionsContainer:i,t))+'"></div>\n</div>\n<div class="video-info-region '+(null!=(i=n.if.call(s,null!=(i=null!=t?t.options:t)?i.allowBulk:i,{name:"if",hash:{},fn:e.program(8,r,0),inverse:e.program(10,r,0),data:r}))?i:"")+" pe-3 "+a(l(null!=(i=null!=(i=null!=t?t.options:t)?i.styles:i)?i.previewContainer:i,t))+'"></div>'},useData:!0})},15900:function(e,t,n){var o=n(32227);e.exports=(o.default||o).template({1:function(e,t,n,o,r){return e.propertyIsEnumerable,e.escapeExpression((n.lang||t&&t.lang||e.hooks.helperMissing).call(null!=t?t:e.nullContext||{},"hide",{name:"lang",hash:{},data:r}))},3:function(e,t,n,o,r){return e.propertyIsEnumerable,e.escapeExpression((n.lang||t&&t.lang||e.hooks.helperMissing).call(null!=t?t:e.nullContext||{},"show",{name:"lang",hash:{},data:r}))},compiler:[8,">= 4.3.0"],main:function(e,t,n,o,r){e.propertyIsEnumerable;var i,l=e.lambda,a=e.escapeExpression,s=null!=t?t:e.nullContext||{};return'<div class="video-actions-region row g-0 video-item-actions '+a(l(null!=(i=null!=(i=null!=t?t.options:t)?i.styles:i)?i.actions:i,t))+'"></div>\n<div class="row g-0 cursor-pointer video-item-show-preview '+a(l(null!=(i=null!=(i=null!=t?t.options:t)?i.styles:i)?i.showPreview:i,t))+'">\n <span class="svg-container me-2">'+(null!=(i=l(null!=(i=null!=t?t.options:t)?i.previewSvg:i,t))?i:"")+"</span>\n "+(null!=(i=n.if.call(s,null!=(i=null!=t?t.options:t)?i.previewDisplayed:i,{name:"if",hash:{},fn:e.program(1,r,0),inverse:e.program(3,r,0),data:r}))?i:"")+" "+a((n.lang||t&&t.lang||e.hooks.helperMissing).call(s,"preview",{name:"lang",hash:{},data:r}))+"\n</div>"},useData:!0})},71548:function(e,t,n){var o=n(32227);e.exports=(o.default||o).template({1:function(e,t,n,o,r){return e.propertyIsEnumerable,' <button class="btn btn-outline-dark retry">'+e.escapeExpression((n.lang||t&&t.lang||e.hooks.helperMissing).call(null!=t?t:e.nullContext||{},"retry",{name:"lang",hash:{},data:r}))+"</button>\n"},compiler:[8,">= 4.3.0"],main:function(e,t,n,o,r){e.propertyIsEnumerable;var i,l=null!=t?t:e.nullContext||{};return"<div>\n"+(null!=(i=n.if.call(l,null!=(i=null!=t?t.options:t)?i.hasError:i,{name:"if",hash:{},fn:e.program(1,r,0),inverse:e.noop,data:r}))?i:"")+' <button class="btn btn-outline-dark cancel">'+e.escapeExpression((n.lang||t&&t.lang||e.hooks.helperMissing).call(l,"cancel",{name:"lang",hash:{},data:r}))+"</button>\n</div>\n"},useData:!0})},72108:function(e,t,n){var o=n(32227);e.exports=(o.default||o).template({1:function(e,t,n,o,r){return e.propertyIsEnumerable,e.escapeExpression((n.lang||t&&t.lang||e.hooks.helperMissing).call(null!=t?t:e.nullContext||{},"hide",{name:"lang",hash:{},data:r}))},3:function(e,t,n,o,r){return e.propertyIsEnumerable,e.escapeExpression((n.lang||t&&t.lang||e.hooks.helperMissing).call(null!=t?t:e.nullContext||{},"show",{name:"lang",hash:{},data:r}))},compiler:[8,">= 4.3.0"],main:function(e,t,n,o,r){e.propertyIsEnumerable;var i,l=null!=t?t:e.nullContext||{},a=e.hooks.helperMissing,s=e.escapeExpression,u=e.lambda;return'<button class="approve d-flex btn btn btn-outline-dark" type="button">'+s((n.lang||t&&t.lang||a).call(l,"approve",{name:"lang",hash:{},data:r}))+'</button>\n<a class="applink-manage-video-access cursor-pointer hover-text-underline py-1">'+(null!=(i=(n.lang||t&&t.lang||a).call(l,"manageAccess",{name:"lang",hash:{},data:r}))?i:"")+'</a> \n<div class="row g-0 cursor-pointer video-item-show-preview '+s(u(null!=(i=null!=(i=null!=t?t.options:t)?i.styles:i)?i.showPreview:i,t))+'"> \n <span class="svg-container">'+(null!=(i=u(null!=(i=null!=t?t.options:t)?i.previewSvg:i,t))?i:"")+"</span> \n "+(null!=(i=n.if.call(l,null!=(i=null!=t?t.options:t)?i.previewDisplayed:i,{name:"if",hash:{},fn:e.program(1,r,0),inverse:e.program(3,r,0),data:r}))?i:"")+" "+s((n.lang||t&&t.lang||a).call(l,"preview",{name:"lang",hash:{},data:r}))+"\n</div> "},useData:!0})},66774:function(e,t,n){var o=n(32227);e.exports=(o.default||o).template({1:function(e,t,n,o,r){return e.propertyIsEnumerable,e.escapeExpression((n.lang||t&&t.lang||e.hooks.helperMissing).call(null!=t?t:e.nullContext||{},"hide",{name:"lang",hash:{},data:r}))},3:function(e,t,n,o,r){return e.propertyIsEnumerable,e.escapeExpression((n.lang||t&&t.lang||e.hooks.helperMissing).call(null!=t?t:e.nullContext||{},"show",{name:"lang",hash:{},data:r}))},compiler:[8,">= 4.3.0"],main:function(e,t,n,o,r){e.propertyIsEnumerable;var i,l=null!=t?t:e.nullContext||{},a=e.hooks.helperMissing,s=e.escapeExpression,u=e.lambda;return'<button class="applink-manage-video-access d-flex btn btn-outline-dark" type="button">'+s((n.lang||t&&t.lang||a).call(l,"manageAccess",{name:"lang",hash:{},data:r}))+'</button>\n<div class="row g-0 cursor-pointer video-item-show-preview '+s(u(null!=(i=null!=(i=null!=t?t.options:t)?i.styles:i)?i.showPreview:i,t))+'">\n <span class="svg-container">'+(null!=(i=u(null!=(i=null!=t?t.options:t)?i.previewSvg:i,t))?i:"")+"</span>\n "+(null!=(i=n.if.call(l,null!=(i=null!=t?t.options:t)?i.previewDisplayed:i,{name:"if",hash:{},fn:e.program(1,r,0),inverse:e.program(3,r,0),data:r}))?i:"")+" "+s((n.lang||t&&t.lang||a).call(l,"preview",{name:"lang",hash:{},data:r}))+"\n</div>"},useData:!0})},27367:function(e,t,n){var o=n(32227);e.exports=(o.default||o).template({1:function(e,t,n,o,r){e.propertyIsEnumerable;var i,l=e.lambda,a=e.escapeExpression;return' <span class="d-inline-block ms-1 tool-tip '+a(l(null!=(i=null!=(i=null!=t?t.options:t)?i.styles:i)?i.svgContainer:i,t))+'" title="'+a(l(null!=(i=null!=t?t.options:t)?i.restrictionMessage:i,t))+'">'+(null!=(i=l(null!=(i=null!=t?t.options:t)?i.lockSvg:i,t))?i:"")+"</span>\n"},compiler:[8,">= 4.3.0"],main:function(e,t,n,o,r){e.propertyIsEnumerable;var i,l,a=null!=t?t:e.nullContext||{};return'<div class="series-region"></div>\n<a class="cursor-pointer applink-show-video h5 text-dark">'+e.escapeExpression("function"==typeof(l=null!=(l=n.name||(null!=t?t.name:t))?l:e.hooks.helperMissing)?l.call(a,{name:"name",hash:{},data:r}):l)+"</a>\n"+(null!=(i=n.if.call(a,null!=(i=null!=t?t.options:t)?i.hasAdminRestriction:i,{name:"if",hash:{},fn:e.program(1,r,0),inverse:e.noop,data:r}))?i:"")+'<div class="sources-region"></div>\n<div class="badges-region"></div>'},useData:!0})},61539:function(e,t,n){var o=n(32227);e.exports=(o.default||o).template({compiler:[8,">= 4.3.0"],main:function(e,t,n,o,r){e.propertyIsEnumerable;var i,l,a=e.lambda,s=e.escapeExpression;return'<div class="series-region"></div>\n<a class="cursor-pointer h5 video-title text-dark" href="'+s(a(null!=(i=null!=t?t.options:t)?i.videoUrl:i,t))+'" target="_blank">'+s("function"==typeof(l=null!=(l=n.name||(null!=t?t.name:t))?l:e.hooks.helperMissing)?l.call(null!=t?t:e.nullContext||{},{name:"name",hash:{},data:r}):l)+'</a>\n<a class="svg-container d-inline-block align-bottom text-muted no-decoration" href="'+s(a(null!=(i=null!=t?t.options:t)?i.videoUrl:i,t))+'" target="_blank">'+(null!=(i=a(null!=(i=null!=t?t.options:t)?i.openExternalSvg:i,t))?i:"")+'</a>\n<div class="badges-region"></div>'},useData:!0})},53885:function(e,t,n){var o=n(32227);e.exports=(o.default||o).template({1:function(e,t,n,o,r){return' <div class="media-type-region"></div>\n'},3:function(e,t,n,o,r){e.propertyIsEnumerable;var i,l=e.escapeExpression;return' <span class="badge p-1 '+l(e.lambda(null!=(i=null!=(i=null!=t?t.options:t)?i.styles:i)?i.interactive:i,t))+'">'+l((n.lang||t&&t.lang||e.hooks.helperMissing).call(null!=t?t:e.nullContext||{},"interactive",{name:"lang",hash:{},data:r}))+"</span>\n"},5:function(e,t,n,o,r){e.propertyIsEnumerable;var i,l=e.lambda,a=e.escapeExpression;return' <span class="badge p-1 tool-tip '+a(l(null!=(i=null!=(i=null!=t?t.options:t)?i.styles:i)?i.rating:i,t))+" "+a(l(null!=(i=null!=t?t.options:t)?i.ratingColorClass:i,t))+'" title="'+a(l(null!=(i=null!=(i=null!=t?t.options:t)?i.rating:i)?i.name:i,t))+'">'+a(l(null!=(i=null!=(i=null!=t?t.options:t)?i.rating:i)?i.code:i,t))+"</span>\n"},7:function(e,t,n,o,r){e.propertyIsEnumerable;var i,l=e.lambda;return' <span class="d-inline-block tool-tip '+e.escapeExpression(l(null!=(i=null!=(i=null!=t?t.options:t)?i.styles:i)?i.svgContainer:i,t))+'" title="Subtitles">'+(null!=(i=l(null!=(i=null!=t?t.options:t)?i.closeCaptionSvg:i,t))?i:"")+"</span>\n"},9:function(e,t,n,o,r){e.propertyIsEnumerable;var i,l=e.lambda;return' <span class="d-inline-block tool-tip '+e.escapeExpression(l(null!=(i=null!=(i=null!=t?t.options:t)?i.styles:i)?i.svgContainer:i,t))+'" title="Resources">'+(null!=(i=l(null!=(i=null!=t?t.options:t)?i.resourcesSvg:i,t))?i:"")+"</span>\n"},11:function(e,t,n,o,r){e.propertyIsEnumerable;var i,l=e.lambda,a=e.escapeExpression;return' <span class="badge p-1 '+a(l(null!=(i=null!=t?t.options:t)?i.awaitingReviewBadgeClass:i,t))+'">'+a(l(null!=(i=null!=t?t.options:t)?i.awaitingReviewMsg:i,t))+"</span>\n"},13:function(e,t,n,o,r){e.propertyIsEnumerable;var i,l=e.lambda,a=e.escapeExpression;return' <span class="badge p-1 '+a(l(null!=(i=null!=(i=null!=t?t.options:t)?i.styles:i)?i.restrictionBadgeClass:i,t))+'">'+a(l(null!=(i=null!=t?t.options:t)?i.restrictionMessage:i,t))+"</span>\n"},compiler:[8,">= 4.3.0"],main:function(e,t,n,o,r){e.propertyIsEnumerable;var i,l=null!=t?t:e.nullContext||{};return'<div class="mt-1 '+e.escapeExpression(e.lambda(null!=(i=null!=(i=null!=t?t.options:t)?i.styles:i)?i.badgesWrapper:i,t))+'">\n'+(null!=(i=n.if.call(l,null!=(i=null!=t?t.options:t)?i.mediaType:i,{name:"if",hash:{},fn:e.program(1,r,0),inverse:e.noop,data:r}))?i:"")+"\n"+(null!=(i=n.if.call(l,null!=(i=null!=t?t.options:t)?i.interactive:i,{name:"if",hash:{},fn:e.program(3,r,0),inverse:e.noop,data:r}))?i:"")+"\n"+(null!=(i=n.if.call(l,null!=(i=null!=(i=null!=t?t.options:t)?i.rating:i)?i.code:i,{name:"if",hash:{},fn:e.program(5,r,0),inverse:e.noop,data:r}))?i:"")+"\n"+(null!=(i=n.if.call(l,null!=(i=null!=t?t.options:t)?i.subtitles:i,{name:"if",hash:{},fn:e.program(7,r,0),inverse:e.noop,data:r}))?i:"")+"\n"+(null!=(i=n.if.call(l,null!=(i=null!=t?t.options:t)?i.resources:i,{name:"if",hash:{},fn:e.program(9,r,0),inverse:e.noop,data:r}))?i:"")+"\n"+(null!=(i=n.if.call(l,null!=(i=null!=t?t.options:t)?i.awaitingReviewMsg:i,{name:"if",hash:{},fn:e.program(11,r,0),inverse:e.noop,data:r}))?i:"")+"\n"+(null!=(i=n.if.call(l,null!=(i=null!=t?t.options:t)?i.restrictionMessage:i,{name:"if",hash:{},fn:e.program(13,r,0),inverse:e.noop,data:r}))?i:"")+"</div>"},useData:!0})},94559:function(e,t,n){var o=n(32227);e.exports=(o.default||o).template({1:function(e,t,n,o,r){e.propertyIsEnumerable;var i,l=e.lambda,a=e.escapeExpression;return' <span class="d-inline-block svg-container align-bottom tool-tip '+a(l(null!=(i=null!=(i=null!=t?t.options:t)?i.styles:i)?i.lock:i,t))+'" title="'+a(l(null!=(i=null!=t?t.options:t)?i.restrictionMessage:i,t))+'">'+(null!=(i=l(null!=(i=null!=t?t.options:t)?i.lockSvg:i,t))?i:"")+"</span>\n"},compiler:[8,">= 4.3.0"],main:function(e,t,n,o,r){e.propertyIsEnumerable;var i,l,a=e.lambda,s=e.escapeExpression,u=null!=t?t:e.nullContext||{};return'<div class="series-region"></div>\n<a class="cursor-pointer h5 video-title text-dark" href="'+s(a(null!=(i=null!=t?t.options:t)?i.videoUrl:i,t))+'" target="_blank">'+s("function"==typeof(l=null!=(l=n.name||(null!=t?t.name:t))?l:e.hooks.helperMissing)?l.call(u,{name:"name",hash:{},data:r}):l)+'</a>\n<a class="svg-container d-inline-block align-bottom text-muted no-decoration" href="'+s(a(null!=(i=null!=t?t.options:t)?i.videoUrl:i,t))+'" target="_blank">'+(null!=(i=a(null!=(i=null!=t?t.options:t)?i.openExternalSvg:i,t))?i:"")+"</a>\n"+(null!=(i=n.if.call(u,null!=(i=null!=t?t.options:t)?i.hasAdminRestriction:i,{name:"if",hash:{},fn:e.program(1,r,0),inverse:e.noop,data:r}))?i:"")+'<div class="badges-region"></div>'},useData:!0})},56914:function(e,t,n){var o=n(32227);e.exports=(o.default||o).template({1:function(e,t,n,o,r){e.propertyIsEnumerable;var i,l=e.lambda;return' <span class="d-inline-block align-middle ms-1 '+e.escapeExpression(l(null!=(i=null!=(i=null!=t?t.options:t)?i.styles:i)?i.lockSvgContainer:i,t))+'">'+(null!=(i=l(null!=(i=null!=t?t.options:t)?i.lockSvg:i,t))?i:"")+"</span>\n"},3:function(e,t,n,o,r){return"text-danger"},5:function(e,t,n,o,r){var i;return e.propertyIsEnumerable," "+e.escapeExpression(e.lambda(null!=(i=null!=t?t.options:t)?i.status:i,t))+"\n"},7:function(e,t,n,o,r){return e.propertyIsEnumerable," "+e.escapeExpression((n.lang||t&&t.lang||e.hooks.helperMissing).call(null!=t?t:e.nullContext||{},"waiting",{name:"lang",hash:{},data:r}))+"\n"},9:function(e,t,n,o,r){return e.propertyIsEnumerable," <br><i>"+e.escapeExpression((n.lang||t&&t.lang||e.hooks.helperMissing).call(null!=t?t:e.nullContext||{},"anotherAdmin",{name:"lang",hash:{},data:r}))+"</i>\n"},compiler:[8,">= 4.3.0"],main:function(e,t,n,o,r){e.propertyIsEnumerable;var i,l,a=null!=t?t:e.nullContext||{};return'<a class="applink-show-video h5 text-dark">'+e.escapeExpression("function"==typeof(l=null!=(l=n.name||(null!=t?t.name:t))?l:e.hooks.helperMissing)?l.call(a,{name:"name",hash:{},data:r}):l)+"</a>\n"+(null!=(i=n.if.call(a,null!=(i=null!=t?t.options:t)?i.hasAdminRestriction:i,{name:"if",hash:{},fn:e.program(1,r,0),inverse:e.noop,data:r}))?i:"")+'<div class="processing '+(null!=(i=n.if.call(a,null!=(i=null!=t?t.options:t)?i.hasError:i,{name:"if",hash:{},fn:e.program(3,r,0),inverse:e.noop,data:r}))?i:"")+'">\n'+(null!=(i=n.if.call(a,null!=(i=null!=t?t.options:t)?i.hasPendingItem:i,{name:"if",hash:{},fn:e.program(5,r,0),inverse:e.program(7,r,0),data:r}))?i:"")+(null!=(i=n.unless.call(a,null!=(i=null!=t?t.options:t)?i.hasPendingItem:i,{name:"unless",hash:{},fn:e.program(9,r,0),inverse:e.noop,data:r}))?i:"")+"</div>"},useData:!0})},47062:function(e,t,n){var o=n(32227);e.exports=(o.default||o).template({1:function(e,t,n,o,r){e.propertyIsEnumerable;var i,l=e.lambda,a=e.escapeExpression;return' <span class="d-inline-block ms-1 tool-tip '+a(l(null!=(i=null!=(i=null!=t?t.options:t)?i.styles:i)?i.svgContainer:i,t))+'" title="'+a(l(null!=(i=null!=t?t.options:t)?i.restrictionMessage:i,t))+'">'+(null!=(i=l(null!=(i=null!=t?t.options:t)?i.lockSvg:i,t))?i:"")+"</span>\n"},3:function(e,t,n,o,r){var i;return' <span class="d-block pt-1">'+(null!=(i=e.lambda(t,t))?i:"")+"</span>\n"},compiler:[8,">= 4.3.0"],main:function(e,t,n,o,r){e.propertyIsEnumerable;var i,l=null!=t?t:e.nullContext||{};return'<div class="series-region"></div>\n<a class="cursor-pointer applink-show-video h5 text-dark">'+(null!=(i=e.lambda(null!=(i=null!=t?t.options:t)?i.name:i,t))?i:"")+"</a>\n"+(null!=(i=n.if.call(l,null!=(i=null!=t?t.options:t)?i.hasAdminRestriction:i,{name:"if",hash:{},fn:e.program(1,r,0),inverse:e.noop,data:r}))?i:"")+'<div class="sources-region"></div>\n<div class="badges-region"></div>\n'+(null!=(i=n.each.call(l,null!=(i=null!=t?t.options:t)?i.keyPhrases:i,{name:"each",hash:{},fn:e.program(3,r,0),inverse:e.noop,data:r}))?i:"")},useData:!0})},19021:function(e,t,n){var o=n(32227);e.exports=(o.default||o).template({1:function(e,t,n,o,r){var i;return e.propertyIsEnumerable,e.escapeExpression(e.lambda(null!=(i=null!=(i=null!=t?t.options:t)?i.styles:i)?i.series:i,t))},3:function(e,t,n,o,r){var i;return e.propertyIsEnumerable,'href="'+e.escapeExpression(e.lambda(null!=(i=null!=t?t.options:t)?i.seriesUrl:i,t))+'" target="_blank"'},5:function(e,t,n,o,r){var i;return e.propertyIsEnumerable,(null!=(i=n.if.call(null!=t?t:e.nullContext||{},null!=(i=null!=t?t.options:t)?i.seasonNumber:i,{name:"if",hash:{},fn:e.program(6,r,0),inverse:e.noop,data:r}))?i:"")+" E"+e.escapeExpression(e.lambda(null!=(i=null!=t?t.options:t)?i.episodeNumber:i,t))+"\n"},6:function(e,t,n,o,r){var i;return e.propertyIsEnumerable," S"+e.escapeExpression(e.lambda(null!=(i=null!=t?t.options:t)?i.seasonNumber:i,t))+" •"},compiler:[8,">= 4.3.0"],main:function(e,t,n,o,r){e.propertyIsEnumerable;var i,l=null!=t?t:e.nullContext||{};return'<a class="series-applink text-reset '+(null!=(i=n.if.call(l,null!=(i=null!=t?t.options:t)?i.styleUppercase:i,{name:"if",hash:{},fn:e.program(1,r,0),inverse:e.noop,data:r}))?i:"")+'" '+(null!=(i=n.if.call(l,null!=(i=null!=t?t.options:t)?i.seriesUrl:i,{name:"if",hash:{},fn:e.program(3,r,0),inverse:e.noop,data:r}))?i:"")+">\n "+(null!=(i=e.lambda(null!=(i=null!=t?t.options:t)?i.seriesName:i,t))?i:"")+(null!=(i=n.if.call(l,null!=(i=null!=t?t.options:t)?i.episodeNumber:i,{name:"if",hash:{},fn:e.program(5,r,0),inverse:e.noop,data:r}))?i:"")+"</a>"},useData:!0})},94446:function(e,t,n){var o=n(32227);e.exports=(o.default||o).template({1:function(e,t,n,o,r){e.propertyIsEnumerable;var i,l,a=e.lambda,s=e.escapeExpression;return'<a class="cursor-pointer h5 video-title text-dark" href="'+s(a(null!=(i=null!=t?t.options:t)?i.videoUrl:i,t))+'" target="_blank">'+s("function"==typeof(l=null!=(l=n.name||(null!=t?t.name:t))?l:e.hooks.helperMissing)?l.call(null!=t?t:e.nullContext||{},{name:"name",hash:{},data:r}):l)+'</a>\n<a class="svg-container d-inline-block align-bottom text-muted no-decoration" href="'+s(a(null!=(i=null!=t?t.options:t)?i.videoUrl:i,t))+'" target="_blank">'+(null!=(i=a(null!=(i=null!=t?t.options:t)?i.openExternalSvg:i,t))?i:"")+"</a>\n"},3:function(e,t,n,o,r){var i;return e.propertyIsEnumerable,'<a class="cursor-pointer applink-show-video h6">'+e.escapeExpression("function"==typeof(i=null!=(i=n.name||(null!=t?t.name:t))?i:e.hooks.helperMissing)?i.call(null!=t?t:e.nullContext||{},{name:"name",hash:{},data:r}):i)+"</a>\n"},compiler:[8,">= 4.3.0"],main:function(e,t,n,o,r){e.propertyIsEnumerable;var i,l=e.lambda,a=e.escapeExpression;return'<div class="series-region"></div>\n'+(null!=(i=n.if.call(null!=t?t:e.nullContext||{},null!=(i=null!=t?t.options:t)?i.linkToOnline:i,{name:"if",hash:{},fn:e.program(1,r,0),inverse:e.program(3,r,0),data:r}))?i:"")+'<span class="d-inline-block ms-1 tool-tip '+a(l(null!=(i=null!=(i=null!=t?t.options:t)?i.styles:i)?i.lock:i,t))+" "+a(l(null!=(i=null!=(i=null!=t?t.options:t)?i.styles:i)?i.svgContainer:i,t))+'" title="'+a(l(null!=(i=null!=t?t.options:t)?i.restrictionMessage:i,t))+'">'+(null!=(i=l(null!=(i=null!=t?t.options:t)?i.lockSvg:i,t))?i:"")+'</span>\n<div class="sources-region"></div>\n<div class="badges-region"></div>'},useData:!0})},69639:function(e,t){"use strict";t.Z={actions:"xyPxU",showPreview:"XMkZv"}},90402:function(e,t){"use strict";t.Z={lock:"I7AaK",svgContainer:"avSZT"}},53426:function(e,t){"use strict";t.Z={checkboxContainer:"sfB6X",thumbnailContainer:"u9oVV",metaContainer:"jnomD",actionsContainer:"BjK6Z",allowBulk:"VSdyH",videoItem:"p5AgE",processingVideo:"OOtNp",bulkPlaceholder:"IU_AK",previewContainer:"h4Ml1"}}}]);
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
(self.webpackChunk_clickview_library_editor=self.webpackChunk_clickview_library_editor||[]).push([[708],{43953:function(e,t,n){"use strict";n.d(t,{J:function(){return m}});var o=n(57857),r=n(31647),i=n(52076),a=n(70065),l=n(63791),s=n(71641),c=n(57098),u=n(8050),p=n.n(u);function f(e){return f="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},f(e)}function y(e,t){for(var n=0;n<t.length;n++){var o=t[n];o.enumerable=o.enumerable||!1,o.configurable=!0,"value"in o&&(o.writable=!0),Object.defineProperty(e,(void 0,r=function(e,t){if("object"!==f(e)||null===e)return e;var n=e[Symbol.toPrimitive];if(void 0!==n){var o=n.call(e,"string");if("object"!==f(o))return o;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}(o.key),"symbol"===f(r)?r:String(r)),o)}var r}function d(e,t){return d=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(e,t){return e.__proto__=t,e},d(e,t)}function h(e){return h=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(e){return e.__proto__||Object.getPrototypeOf(e)},h(e)}var m=function(e){!function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),Object.defineProperty(e,"prototype",{writable:!1}),t&&d(e,t)}(b,e);var t,n,u,m,g=(u=b,m=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}}(),function(){var e,t=h(u);if(m){var n=h(this).constructor;e=Reflect.construct(t,arguments,n)}else e=t.apply(this,arguments);return function(e,t){if(t&&("object"===f(t)||"function"==typeof t))return t;if(void 0!==t)throw new TypeError("Derived constructors may only return object or undefined");return function(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}(e)}(this,e)});function b(e){return function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,b),g.call(this,e)}return t=b,(n=[{key:"name",get:function(){return"LibraryActionsComponent"}},{key:"template",get:function(){return p()}},{key:"channelName",get:function(){return"".concat(this.name).concat(this.cid)}},{key:"lang",get:function(){return"libraryEditor.libraryActions"}},{key:"className",get:function(){return"position-absolute ".concat("Qgopl"," ").concat(this.options.extraClasses," ")}},{key:"elements",get:function(){return{dropdownToggle:".ui-dropdown-toggle"}}},{key:"regions",value:function(){return{dropdownItems:{replaceElement:!0,el:".items-region"}}}},{key:"getDropdownItems",value:function(){return[{title:o.T.getPhrase(this.lang,"addFolder"),analyticsOptions:i.k.mergeOptions(this.options.analyticsOptions,{actionType:a.Vw.Create,entity:a.py.Folder,workflowPhase:a.eu.Start}),appLink:{application:c.OV.LIBRARY_EDITOR,action:c.eX.Shared.NEW_FOLDER,args:[this.model.get("id")]}},{title:o.T.getPhrase(this.lang,"rename"),analyticsOptions:i.k.mergeOptions(this.options.analyticsOptions,{actionType:a.Vw.Rename,entity:a.py.Library,workflowPhase:a.eu.Start}),appLink:{application:c.OV.LIBRARY_EDITOR,action:c.eX.LibraryEditor.RENAME_LIBRARY,args:[this.model.get("id")]}},{title:o.T.getPhrase(this.lang,"libraryRequestSettings"),analyticsOptions:i.k.mergeOptions(this.options.analyticsOptions,{actionType:a.Vw.SetAccess,entity:a.py.Library,workflowPhase:a.eu.Start}),appLink:{application:c.OV.LIBRARY_REQUESTS,action:c.eX.LibraryRequests.LIBRARY_REQUEST_SETTINGS,args:[this.model.get("id")]}},{title:o.T.getPhrase(this.lang,"remove"),analyticsOptions:i.k.mergeOptions(this.options.analyticsOptions,{actionType:a.Vw.Delete,entity:a.py.Library,workflowPhase:a.eu.Start}),appLink:{application:c.OV.LIBRARY_EDITOR,action:c.eX.LibraryEditor.DELETE_LIBRARY,args:[this.model.get("id")]},classes:"text-danger"}]}},{key:"viewOptions",value:function(){return{dropdownClass:"".concat("AAIc2"," ").concat(this.options.buttonClass),svg:l.Nj.getSvg(l.vn.More)}}},{key:"onRender",value:function(){var e;(null===(e=this.model)||void 0===e?void 0:e.get("id"))&&(this.showChildView("dropdownItems",new s.w({analyticsHelper:i.k,displayOptions:{alignment:"end"},channelName:this.channelName,collection:new r.Q.FE(this.getDropdownItems())})),this.getUI("dropdownToggle").dropdown())}}])&&y(t.prototype,n),Object.defineProperty(t,"prototype",{writable:!1}),b}(r.Q.wA)},51785:function(e,t,n){"use strict";n.d(t,{c:function(){return R}});var o=n(31647),r=n(63791),i=n(60602),a=n(57857),l=n(52076),s=n(70065),c=n(71641),u=n(57098),p=n(58266),f=n.n(p);function y(e){return y="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},y(e)}function d(e,t){for(var n=0;n<t.length;n++){var o=t[n];o.enumerable=o.enumerable||!1,o.configurable=!0,"value"in o&&(o.writable=!0),Object.defineProperty(e,(void 0,r=function(e,t){if("object"!==y(e)||null===e)return e;var n=e[Symbol.toPrimitive];if(void 0!==n){var o=n.call(e,"string");if("object"!==y(o))return o;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}(o.key),"symbol"===y(r)?r:String(r)),o)}var r}function h(e,t){return h=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(e,t){return e.__proto__=t,e},h(e,t)}function m(e){return m=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(e){return e.__proto__||Object.getPrototypeOf(e)},m(e)}var g=function(e){!function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),Object.defineProperty(e,"prototype",{writable:!1}),t&&h(e,t)}(g,e);var t,n,r,i,p=(r=g,i=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}}(),function(){var e,t=m(r);if(i){var n=m(this).constructor;e=Reflect.construct(t,arguments,n)}else e=t.apply(this,arguments);return function(e,t){if(t&&("object"===y(t)||"function"==typeof t))return t;if(void 0!==t)throw new TypeError("Derived constructors may only return object or undefined");return function(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}(e)}(this,e)});function g(e){return function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,g),p.call(this,e)}return t=g,(n=[{key:"name",get:function(){return"FolderActionsDropdownComponent"}},{key:"template",get:function(){return f()}},{key:"lang",get:function(){return"libraryEditor.folderActionsDropdown"}},{key:"channelName",get:function(){return"".concat(this.name).concat(this.cid)}},{key:"regions",value:function(){return{items:{el:".items-region",replaceElement:!0}}}},{key:"getFolderActions",value:function(){return[{title:a.T.getPhrase(this.lang,"addSubfolder"),analyticsOptions:l.k.mergeOptions(this.options.analyticsOptions,{actionType:s.Vw.Create,entity:s.py.Folder,workflowPhase:s.eu.Start}),appLink:{application:u.OV.LIBRARY_EDITOR,action:u.eX.LibraryEditor.NEW_SUB_FOLDER,args:[this.model.get("id")]}},{title:a.T.getPhrase(this.lang,"rename"),analyticsOptions:l.k.mergeOptions(this.options.analyticsOptions,{actionType:s.Vw.Rename,entity:s.py.Folder,workflowPhase:s.eu.Start}),appLink:{application:u.OV.LIBRARY_EDITOR,action:u.eX.LibraryEditor.RENAME_FOLDER,args:[this.model.get("id")]}},{title:a.T.getPhrase(this.lang,"move"),analyticsOptions:l.k.mergeOptions(this.options.analyticsOptions,{actionType:s.Vw.Move,entity:s.py.Folder,workflowPhase:s.eu.Start}),appLink:{application:u.OV.LIBRARY_EDITOR,action:u.eX.LibraryEditor.MOVE_FOLDER,args:[this.model.get("id")]}},{title:a.T.getPhrase(this.lang,"editImages"),analyticsOptions:l.k.mergeOptions(this.options.analyticsOptions,{actionType:s.Vw.EditAssoc,entity:s.py.Folder,workflowPhase:s.eu.Start,descriptor:s.iF.Image}),appLink:{application:u.OV.LIBRARY_EDITOR,action:u.eX.LibraryEditor.EDIT_FOLDER_IMAGES,args:[this.model.get("id")]}},{title:a.T.getPhrase(this.lang,"generatePdf"),analyticsOptions:l.k.mergeOptions(this.options.analyticsOptions,{actionType:s.Vw.Create,entity:s.py.PDF,workflowPhase:s.eu.Start}),appLink:{application:u.OV.LIBRARY_EDITOR,action:u.eX.LibraryEditor.GENERATE_PDF,args:[this.model.get("id")]}},{title:a.T.getPhrase(this.lang,"remove"),analyticsOptions:l.k.mergeOptions(this.options.analyticsOptions,{actionType:s.Vw.Delete,entity:s.py.Folder,workflowPhase:s.eu.Start}),classes:"text-danger",appLink:{application:u.OV.LIBRARY_EDITOR,action:u.eX.LibraryEditor.DELETE_FOLDER,args:[this.model.get("id")]}}]}},{key:"onRender",value:function(){this.showChildView("items",new c.w({analyticsHelper:l.k,displayOptions:{alignment:"end"},channelName:this.channelName,collection:new o.Q.FE(this.getFolderActions()),childOptions:{isDisabled:function(){return this.model.get("disabled")}}}))}}])&&d(t.prototype,n),Object.defineProperty(t,"prototype",{writable:!1}),g}(o.Q.wA),b=n(26704),v=n.n(b);function w(e){return w="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},w(e)}function O(e,t){for(var n=0;n<t.length;n++){var o=t[n];o.enumerable=o.enumerable||!1,o.configurable=!0,"value"in o&&(o.writable=!0),Object.defineProperty(e,(void 0,r=function(e,t){if("object"!==w(e)||null===e)return e;var n=e[Symbol.toPrimitive];if(void 0!==n){var o=n.call(e,"string");if("object"!==w(o))return o;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}(o.key),"symbol"===w(r)?r:String(r)),o)}var r}function k(e,t){return k=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(e,t){return e.__proto__=t,e},k(e,t)}function E(e){return E=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(e){return e.__proto__||Object.getPrototypeOf(e)},E(e)}var R=function(e){!function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),Object.defineProperty(e,"prototype",{writable:!1}),t&&k(e,t)}(s,e);var t,n,o,a,l=(o=s,a=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}}(),function(){var e,t=E(o);if(a){var n=E(this).constructor;e=Reflect.construct(t,arguments,n)}else e=t.apply(this,arguments);return function(e,t){if(t&&("object"===w(t)||"function"==typeof t))return t;if(void 0!==t)throw new TypeError("Derived constructors may only return object or undefined");return function(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}(e)}(this,e)});function s(e){return function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,s),l.call(this,e)}return t=s,(n=[{key:"name",get:function(){return"VideoCollectionActionsComponent"}},{key:"channelName",get:function(){return"".concat(this.name).concat(this.cid)}},{key:"className",get:function(){if(this.model instanceof i.g)return"position-absolute ".concat(this.options.overrideClasses?"":"zHCsb"," ").concat(this.options.extraClasses," ")}},{key:"template",get:function(){return v()}},{key:"regions",value:function(){return{items:{replaceElement:!0,el:".items-region"}}}},{key:"renderFolderActions",value:function(){this.model instanceof i.g&&this.showChildView("items",new g({model:this.model,analyticsOptions:this.options.analyticsOptions}))}},{key:"viewOptions",value:function(){return{hasActions:this.model instanceof i.g,dropdownClass:"".concat("He1m9"," ").concat(this.options.buttonClass),svg:r.Nj.getSvg(r.vn.More)}}},{key:"onRender",value:function(){this.renderFolderActions()}}])&&O(t.prototype,n),Object.defineProperty(t,"prototype",{writable:!1}),s}(o.Q.wA)},43:function(e,t,n){"use strict";n.r(t),n.d(t,{LeftNavigationView:function(){return oe}});var o=n(21679),r=n(99249),i=n(31647),a=n(52076),l=n(70065),s=n(36357),c=n(63791),u=n(57098),p=n(14177),f=n(33800),y=n(29457),d=n(48404),h=n(19226),m=n(48088),g=n(57857),b=n(88483),v=n(50997),w=n(71641),O=n(41238),k=n.n(O),E={imageContainer:"mh27r",imageMask:"aklBj",dropdownContainer:"tqZpr",dropdownButton:"aTbSF",image:"V_4dx",addCrest:"zD8lx",plusSvg:"gYx3Z"};function R(e){return R="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},R(e)}function S(e,t){for(var n=0;n<t.length;n++){var o=t[n];o.enumerable=o.enumerable||!1,o.configurable=!0,"value"in o&&(o.writable=!0),Object.defineProperty(e,L(o.key),o)}}function L(e){var t=function(e,t){if("object"!==R(e)||null===e)return e;var n=e[Symbol.toPrimitive];if(void 0!==n){var o=n.call(e,"string");if("object"!==R(o))return o;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}(e);return"symbol"===R(t)?t:String(t)}function P(e,t){return P=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(e,t){return e.__proto__=t,e},P(e,t)}function _(e){return _=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(e){return e.__proto__||Object.getPrototypeOf(e)},_(e)}var T=function(e){!function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),Object.defineProperty(e,"prototype",{writable:!1}),t&&P(e,t)}(p,e);var t,o,r,s,u=(r=p,s=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}}(),function(){var e,t=_(r);if(s){var n=_(this).constructor;e=Reflect.construct(t,arguments,n)}else e=t.apply(this,arguments);return function(e,t){if(t&&("object"===R(t)||"function"==typeof t))return t;if(void 0!==t)throw new TypeError("Derived constructors may only return object or undefined");return function(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}(e)}(this,e)});function p(e){return function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,p),u.call(this,e)}return t=p,(o=[{key:"initialize",value:function(){var e=this;this.listenTo(this.options.channelName,"upload:logo",(function(){a.k.logUserAction({},e.getAnalyticsOptions("create"))}))}},{key:"name",get:function(){return"CustomerLogoComponent"}},{key:"template",get:function(){return k()}},{key:"lang",get:function(){return"libraryEditor.customerLogo"}},{key:"className",get:function(){return"text-center p-3 position-relative"}},{key:"elements",get:function(){return{dropdownToggle:".ui-dropdown-toggle"}}},{key:"regions",value:function(){return{options:{replaceElement:!0,el:".options-region"}}}},{key:"events",value:function(){return e={},n="onClickAddLogo",(t=L(t="click .".concat(E.addCrest)))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e;var e,t,n}},{key:"behaviors",get:function(){var e=this;return[{behaviorClass:v.YR,channelName:this.options.channelName,eventName:"upload:logo",buttonSelector:".upload-logo",imageType:b.__.Logos,saveImage:function(t){Promise.all([n.e(2802),n.e(1934),n.e(5235),n.e(5524)]).then(n.bind(n,24365)).then((function(n){n.CropperHelper.renderCropper({src:t,alt:"",onClickCrop:function(t,n){m.Radio.channel(e.options.channelName).trigger("upload:image",t),e.listenToOnce(v.Vk.CUSTOMER,"".concat(v.M_.CREATE_LOGO,":sync"),n)},imageType:b.__.Logos,popupSize:"md"})}))}}]}},{key:"onClickAddLogo",value:function(){a.k.logUserAction({},this.getAnalyticsOptions("create"))}},{key:"getCustomerLogoActions",value:function(){return[{title:g.T.getPhrase(this.lang,"uploadImage"),channelName:this.options.channelName,eventName:"upload:logo"},{title:g.T.getPhrase(this.lang,"removeImage"),analyticsOptions:this.getAnalyticsOptions("remove"),classes:"text-danger",appLink:{application:v.OV.LIBRARY_EDITOR,action:v.eX.LibraryEditor.REMOVE_LOGO,args:[this.model.get("id"),this.options.customerId]}}]}},{key:"getAnalyticsOptions",value:function(e){return{actionType:"create"===e?l.Vw.Create:l.Vw.Remove,entity:l.py.Logo,workflowPhase:l.eu.Start,location:l.LZ.LeftNav,eventVersion:"create"===e?l.eq.V2:l.eq.V1}}},{key:"viewOptions",value:function(){return{styles:E,dropdownSvg:c.Nj.getSvg(c.vn.More),plusSvg:c.Nj.getSvg(c.vn.Plus)}}},{key:"onRender",value:function(){var e;(null===(e=this.model)||void 0===e?void 0:e.get("url"))&&this.showChildView("options",new w.w({analyticsHelper:a.k,displayOptions:{alignment:"start"},channelName:this.options.channelName,collection:new i.Q.FE(this.getCustomerLogoActions())}))}}])&&S(t.prototype,o),Object.defineProperty(t,"prototype",{writable:!1}),p}(i.Q.wA),j=n(95308),I=n(50299),C=n(93569),D=n(6929),x=n(43953),N=n(51785),A=n(99223),V=n.n(A);function B(e){return B="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},B(e)}function M(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function F(e,t){for(var n=0;n<t.length;n++){var o=t[n];o.enumerable=o.enumerable||!1,o.configurable=!0,"value"in o&&(o.writable=!0),Object.defineProperty(e,(void 0,r=function(e,t){if("object"!==B(e)||null===e)return e;var n=e[Symbol.toPrimitive];if(void 0!==n){var o=n.call(e,"string");if("object"!==B(o))return o;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}(o.key),"symbol"===B(r)?r:String(r)),o)}var r}function U(e,t,n){return t&&F(e.prototype,t),n&&F(e,n),Object.defineProperty(e,"prototype",{writable:!1}),e}function Y(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),Object.defineProperty(e,"prototype",{writable:!1}),t&&G(e,t)}function G(e,t){return G=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(e,t){return e.__proto__=t,e},G(e,t)}function Q(e){var t=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(e){return!1}}();return function(){var n,o=X(e);if(t){var r=X(this).constructor;n=Reflect.construct(o,arguments,r)}else n=o.apply(this,arguments);return function(e,t){if(t&&("object"===B(t)||"function"==typeof t))return t;if(void 0!==t)throw new TypeError("Derived constructors may only return object or undefined");return function(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}(e)}(this,n)}}function X(e){return X=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(e){return e.__proto__||Object.getPrototypeOf(e)},X(e)}var Z="library:left:nav",z=function(e){Y(n,e);var t=Q(n);function n(e){return M(this,n),t.call(this,e)}return U(n,[{key:"initialize",value:function(){var e=this.options.forceOpen||this.options.libraryId&&this.model.get("id").toString()===this.options.libraryId.toString();this.viewModel=r.r.get("".concat(Z,":").concat(this.model.get("id"))),this.viewModel.set("open",e),this.viewModel.set("disabled",!1),this.listenTo(this.model,"change:name",this.render),this.options.hasMultipleLibraries&&this.listenTo(this,"open:sub:folders",this.onOpenSubFolders),this.videoDragDropService=o.u.getInstance(u.K9.VideoDragDrop,this)}},{key:"name",get:function(){return"LeftNavLibraryComponent"}},{key:"template",get:function(){return V()}},{key:"className",get:function(){return j.Z.libraryContainer}},{key:"behaviors",get:function(){var e=[u.jr.FOLDER_DRAG_DROP];return this.options.hasMultipleLibraries&&e.push(u.jr.VIDEO_DRAG_DROP),[{behaviorClass:D.x,ui:"anchor",channelNames:e,analyticsOptions:{location:l.LZ.LeftNav}}]}},{key:"regions",value:function(){return{folders:{el:".folders-region",replaceElement:!0},actions:{el:".actions-region",replaceElement:!0}}}},{key:"appLinks",get:function(){return{".ui-anchor":{application:u.OV.LIBRARY_EDITOR,action:u.eX.LibraryEditor.LIBRARY,args:[this.model.get("id")]}}}},{key:"events",value:function(){return{"click .library-event":"onClick"}}},{key:"elements",get:function(){return{anchor:".ui-anchor",text:".ui-text"}}},{key:"onClick",value:function(e){this.viewModel.get("open")&&(e.stopImmediatePropagation(),e.preventDefault(),this.viewModel.set("open",!this.viewModel.get("open")),this.render())}},{key:"onOpenSubFolders",value:function(){if(this.videoDragDropService.getDisabledLibraryIds().includes(this.model.get("id")))return this.viewModel.set("disabled",!0),void this.render();this.viewModel.set("open",!0),this.render()}},{key:"hasFolders",value:function(){return!!C.PU.getFirstType(this.model.children,"category")}},{key:"analyticsOptions",get:function(){return{location:l.LZ.LeftNav}}},{key:"viewOptions",value:function(){return{styles:j.Z,caretSvg:c.Nj.getSvg(c.vn.Caret),open:this.viewModel.get("open"),hasFolders:this.hasFolders(),disabled:this.viewModel.get("disabled")}}},{key:"onRender",value:function(){this.showChildView("actions",new x.J({model:this.model,extraClasses:"rounded-circle me-1 ".concat(j.Z.actions),buttonClass:"text-muted",analyticsOptions:this.analyticsOptions})),this.model.children&&this.model.children.length&&this.viewModel.get("open")&&this.showChildView("folders",new I.J({appLink:{action:u.eX.LibraryEditor.FOLDER,application:u.OV.LIBRARY_EDITOR},linkArgs:function(e){return[e.get("id")]},collection:this.model.children,channelName:"".concat(this.cid),childrenProperty:"children",actions:N.c,folderTreeId:this.options.folderTreeId,analyticsOptions:this.analyticsOptions}))}}]),n}(i.Q.wA),H=function(e){Y(n,e);var t=Q(n);function n(e){return M(this,n),t.call(this,e)}return U(n,[{key:"name",get:function(){return"LeftNavLibrariesComponent"}},{key:"childView",get:function(){return z}},{key:"childViewOptions",get:function(){return{channelName:this.options.channelName,libraryId:this.options.libraryId,folderTreeId:this.options.folderTreeId,forceOpen:this.options.forceOpen,hasMultipleLibraries:this.collection.length>1}}}]),n}(i.Q.$W),q=n(95061),W=n(32122),$=n.n(W),J={addLibrary:"ii_E8",addLibraryContainer:"WroNW",plus:"zhT_f"};function K(e){return K="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},K(e)}function ee(e,t){for(var n=0;n<t.length;n++){var o=t[n];o.enumerable=o.enumerable||!1,o.configurable=!0,"value"in o&&(o.writable=!0),Object.defineProperty(e,(void 0,r=function(e,t){if("object"!==K(e)||null===e)return e;var n=e[Symbol.toPrimitive];if(void 0!==n){var o=n.call(e,"string");if("object"!==K(o))return o;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}(o.key),"symbol"===K(r)?r:String(r)),o)}var r}function te(e,t){return te=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(e,t){return e.__proto__=t,e},te(e,t)}function ne(e){return ne=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(e){return e.__proto__||Object.getPrototypeOf(e)},ne(e)}var oe=function(e){!function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),Object.defineProperty(e,"prototype",{writable:!1}),t&&te(e,t)}(b,e);var t,n,i,m,g=(i=b,m=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}}(),function(){var e,t=ne(i);if(m){var n=ne(this).constructor;e=Reflect.construct(t,arguments,n)}else e=t.apply(this,arguments);return function(e,t){if(t&&("object"===K(t)||"function"==typeof t))return t;if(void 0!==t)throw new TypeError("Derived constructors may only return object or undefined");return function(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}(e)}(this,e)});function b(e){return function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,b),g.call(this,e)}return t=b,(n=[{key:"initialize",value:function(){this.bindListeners(),this.settingsDataService=o.u.getInstance(f.O.Settings,this),this.imageUploadDataService=o.u.getInstance(f.O.ImageUpload,this),this.customerDataService=o.u.getInstance(f.O.Customer,this)}},{key:"bindListeners",value:function(){this.listenTo(this.channelName,"select:library",this.onSelectLibrary),this.listenTo(this.channelName,"upload:image",this.onUploadLogo),this.listenTo(u.Vk.LIBRARY,"cache:cleared",this.fetchData),this.listenTo(u.jr.FOLDER_DRAG_DROP,"re:render:left:nav",this.render),this.listenTo(u.Vk.SETTINGS,"".concat(u.M_.CUSTOMER_SETTINGS,":sync ").concat(u.M_.USER_SETTINGS,":sync"),this.render),this.listenTo(u.Vk.CUSTOMER,"".concat(u.M_.LOGO,":sync ").concat(u.M_.LOGO,":invalidate"),this.render)}},{key:"name",get:function(){return"LeftNavigationView"}},{key:"title",get:function(){return!1}},{key:"channelName",get:function(){return"".concat(this.name).concat(this.cid)}},{key:"lang",get:function(){return"libraryEditor.leftNavigation"}},{key:"className",get:function(){return"bg-white pb-3"}},{key:"template",get:function(){return $()}},{key:"regions",value:function(){return{logo:{el:".logo-region",replaceElement:!1},folderTree:{el:".folder-tree-region",replaceElement:!1,partialLoading:y.LP.LeftNav}}}},{key:"events",value:function(){return{"click .new-folder":"newFolder"}}},{key:"appLinks",get:function(){return{".applink-new-library":{application:u.OV.LIBRARY_EDITOR,action:u.eX.LibraryEditor.NEW_LIBRARY}}}},{key:"fetchData",value:function(){this.maxCustomLibraries=this.settingsDataService.getSetting(this.currentUser.get("customerId"),s.E.MaxCustomLibraries),this.customerLogo=this.customerDataService.getLogo(this.currentUser.get("customerId"))}},{key:"onSelectLibrary",value:function(e){this.collection.each((function(t){r.r.get("".concat(Z,":").concat(t.id)).set("open",t.id.toString()===e)})),this.render()}},{key:"onUploadLogo",value:function(e){var t=this;this.imageUploadDataService.uploadBase64Image(e,y.__.Logos,(function(e){return t.onImageUploaded(e)}))}},{key:"onImageUploaded",value:function(e){this.customerDataService.createLogo(this.currentUser.get("customerId"),e.get("id"),e.get("fileIdType"),(function(e){a.k.logUserAction({id:e.get("id")},{location:l.LZ.LeftNav,actionType:l.Vw.Create,entity:l.py.Logo,workflowPhase:l.eu.Complete,eventVersion:l.eq.V2})}))}},{key:"renderLogo",value:function(){this.showChildView("logo",new T({model:this.customerLogo,customerId:this.currentUser.get("customerId"),channelName:this.channelName}))}},{key:"renderLeftNav",value:function(){var e=new H({collection:this.collection,channelName:this.channelName,libraryId:this.options.libraryId,folderTreeId:p.J.LIBRARY_EDITOR,forceOpen:1===this.collection.length});this.showChildView("folderTree",e)}},{key:"requiredResources",get:function(){return{currentUser:h.K.currentUser,config:d.p.config,collection:q.T.libraries}}},{key:"onBeforeRender",value:function(){return this.fetchData(),!!this.maxCustomLibraries}},{key:"viewOptions",value:function(){if(this.collection)return{styles:J,plusSvg:c.Nj.getSvg(c.vn.Plus),canCreateLibraries:!!this.maxCustomLibraries&&this.maxCustomLibraries.get("value")>this.collection.length}}},{key:"onRender",value:function(){this.renderLogo(),this.renderLeftNav()}}])&&ee(t.prototype,n),Object.defineProperty(t,"prototype",{writable:!1}),b}(i.Q.G7)},71641:function(e,t,n){"use strict";n.d(t,{w:function(){return u}});var o=n(39479),r=n(31647),i=n(55142);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},a(e)}function l(e,t){for(var n=0;n<t.length;n++){var o=t[n];o.enumerable=o.enumerable||!1,o.configurable=!0,"value"in o&&(o.writable=!0),Object.defineProperty(e,(void 0,r=function(e,t){if("object"!==a(e)||null===e)return e;var n=e[Symbol.toPrimitive];if(void 0!==n){var o=n.call(e,"string");if("object"!==a(o))return o;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}(o.key),"symbol"===a(r)?r:String(r)),o)}var r}function s(e,t){return s=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(e,t){return e.__proto__=t,e},s(e,t)}function c(e){return c=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(e){return e.__proto__||Object.getPrototypeOf(e)},c(e)}var u=function(e){!function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),Object.defineProperty(e,"prototype",{writable:!1}),t&&s(e,t)}(f,e);var t,n,r,u,p=(r=f,u=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}}(),function(){var e,t=c(r);if(u){var n=c(this).constructor;e=Reflect.construct(t,arguments,n)}else e=t.apply(this,arguments);return function(e,t){if(t&&("object"===a(t)||"function"==typeof t))return t;if(void 0!==t)throw new TypeError("Derived constructors may only return object or undefined");return function(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}(e)}(this,e)});function f(e){return function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,f),p.call(this,e)}return t=f,n=[{key:"name",get:function(){return"DropdownCollectionComponent"}},{key:"className",get:function(){return"dropdown-menu items-viewpart ".concat(this.getExtraClasses(this.options.displayOptions))}},{key:"attributes",get:function(){return{"aria-labelledby":"dropdownSelector"}}},{key:"initialize",value:function(){this.listenTo(this.options.channelName,"center:dropdown",this.centerSelectedItem)}},{key:"childView",get:function(){return i.N}},{key:"childViewOptions",get:function(){var e={channelName:this.options.channelName,analyticsHelper:this.options.analyticsHelper};return o.extend(e,this.options.childOptions)}},{key:"getExtraClasses",value:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t=e.alignment,n=void 0===t?"left":t,o=e.extraClasses,r="dropdown-menu-".concat(n);return o&&(r="".concat(r," ").concat(o)),r}},{key:"centerSelectedItem",value:function(){var e=this.$el.find(".active");if(e.length){var t=this.$el.scrollTop()+e.position().top,n=.5*this.$el.height()+.5*e.height();this.$el.scrollTop(t-n)}}}],n&&l(t.prototype,n),Object.defineProperty(t,"prototype",{writable:!1}),f}(r.Q.$W)},41238:function(e,t,n){var o=n(32227);e.exports=(o.default||o).template({1:function(e,t,n,o,r){e.propertyIsEnumerable;var i,a,l=e.lambda,s=e.escapeExpression;return'<a class="'+s(l(null!=(i=null!=(i=null!=t?t.options:t)?i.styles:i)?i.imageContainer:i,t))+' mx-auto d-block">\n <div class="'+s(l(null!=(i=null!=(i=null!=t?t.options:t)?i.styles:i)?i.imageMask:i,t))+' rounded-3"></div>\n\n <div class="position-absolute text-white '+s(l(null!=(i=null!=(i=null!=t?t.options:t)?i.styles:i)?i.dropdownContainer:i,t))+'">\n <span data-bs-toggle="dropdown" aria-haspopup="true" aria-expanded="false" class="'+s(l(null!=(i=null!=(i=null!=t?t.options:t)?i.styles:i)?i.dropdownButton:i,t))+' d-inline-block ui-dropdown-toggle">\n '+(null!=(i=l(null!=(i=null!=t?t.options:t)?i.dropdownSvg:i,t))?i:"")+'\n </span>\n <div class="options-region"></div>\n </div>\n\n <img src="'+s("function"==typeof(a=null!=(a=n.url||(null!=t?t.url:t))?a:e.hooks.helperMissing)?a.call(null!=t?t:e.nullContext||{},{name:"url",hash:{},data:r}):a)+'" class="'+s(l(null!=(i=null!=(i=null!=t?t.options:t)?i.styles:i)?i.image:i,t))+' rounded-3"/>\n</a>\n<span class="upload-logo d-none"></span>\n'},3:function(e,t,n,o,r){e.propertyIsEnumerable;var i,a=e.lambda,l=e.escapeExpression;return'<a class="d-flex flex-column justify-content-center align-items-center mx-auto no-decoration rounded-3 upload-logo '+l(a(null!=(i=null!=(i=null!=t?t.options:t)?i.styles:i)?i.addCrest:i,t))+'">\n <div class="'+l(a(null!=(i=null!=(i=null!=t?t.options:t)?i.styles:i)?i.plusSvg:i,t))+'">'+(null!=(i=a(null!=(i=null!=t?t.options:t)?i.plusSvg:i,t))?i:"")+'</div>\n <div class="w-75">'+l((n.lang||t&&t.lang||e.hooks.helperMissing).call(null!=t?t:e.nullContext||{},"addCrest",{name:"lang",hash:{},data:r}))+"</div>\n</a>\n"},compiler:[8,">= 4.3.0"],main:function(e,t,n,o,r){var i;return e.propertyIsEnumerable,null!=(i=n.if.call(null!=t?t:e.nullContext||{},null!=t?t.url:t,{name:"if",hash:{},fn:e.program(1,r,0),inverse:e.program(3,r,0),data:r}))?i:""},useData:!0})},58266:function(e,t,n){var o=n(32227);e.exports=(o.default||o).template({compiler:[8,">= 4.3.0"],main:function(e,t,n,o,r){return'<div class="items-region"></div>'},useData:!0})},99223:function(e,t,n){var o=n(32227);e.exports=(o.default||o).template({1:function(e,t,n,o,r){var i;return e.propertyIsEnumerable,e.escapeExpression(e.lambda(null!=(i=null!=(i=null!=t?t.options:t)?i.styles:i)?i.disabled:i,t))},3:function(e,t,n,o,r){var i;return e.propertyIsEnumerable,e.escapeExpression(e.lambda(null!=(i=null!=(i=null!=t?t.options:t)?i.styles:i)?i.selected:i,t))},5:function(e,t,n,o,r){e.propertyIsEnumerable;var i,a=e.lambda;return' <span class="'+e.escapeExpression(a(null!=(i=null!=(i=null!=t?t.options:t)?i.styles:i)?i.caret:i,t))+' d-inline-block position-absolute">\n '+(null!=(i=a(null!=(i=null!=t?t.options:t)?i.caretSvg:i,t))?i:"")+"\n </span>\n"},compiler:[8,">= 4.3.0"],main:function(e,t,n,o,r){e.propertyIsEnumerable;var i,a,l=e.lambda,s=e.escapeExpression,c=null!=t?t:e.nullContext||{};return'<div class="position-relative '+s(l(null!=(i=null!=(i=null!=t?t.options:t)?i.styles:i)?i.library:i,t))+" "+(null!=(i=n.if.call(c,null!=(i=null!=t?t.options:t)?i.disabled:i,{name:"if",hash:{},fn:e.program(1,r,0),inverse:e.noop,data:r}))?i:"")+'">\n <a class="position-relative library-event '+s(l(null!=(i=null!=(i=null!=t?t.options:t)?i.styles:i)?i.libraryAnchor:i,t))+" "+(null!=(i=n.if.call(c,null!=(i=null!=t?t.options:t)?i.open:i,{name:"if",hash:{},fn:e.program(3,r,0),inverse:e.noop,data:r}))?i:"")+' ui-anchor no-hover-text-underline">\n'+(null!=(i=n.if.call(c,null!=(i=null!=t?t.options:t)?i.hasFolders:i,{name:"if",hash:{},fn:e.program(5,r,0),inverse:e.noop,data:r}))?i:"")+' <span class="'+s(l(null!=(i=null!=(i=null!=t?t.options:t)?i.styles:i)?i.text:i,t))+' ui-text">'+s("function"==typeof(a=null!=(a=n.name||(null!=t?t.name:t))?a:e.hooks.helperMissing)?a.call(c,{name:"name",hash:{},data:r}):a)+'</span>\n </a>\n <div class="actions-region"></div>\n</div>\n<div class="folders-region"></div>'},useData:!0})},8050:function(e,t,n){var o=n(32227);e.exports=(o.default||o).template({compiler:[8,">= 4.3.0"],main:function(e,t,n,o,r){e.propertyIsEnumerable;var i,a=e.lambda;return'<span data-bs-toggle="dropdown" aria-haspopup="true" aria-expanded="false" class="'+e.escapeExpression(a(null!=(i=null!=t?t.options:t)?i.dropdownClass:i,t))+' d-inline-block ui-dropdown-toggle">\n '+(null!=(i=a(null!=(i=null!=t?t.options:t)?i.svg:i,t))?i:"")+'\n</span>\n<div class="items-region"></div>'},useData:!0})},26704:function(e,t,n){var o=n(32227);e.exports=(o.default||o).template({1:function(e,t,n,o,r){e.propertyIsEnumerable;var i,a=e.lambda;return'<span data-bs-toggle="dropdown" aria-haspopup="true" aria-expanded="false" class="'+e.escapeExpression(a(null!=(i=null!=t?t.options:t)?i.dropdownClass:i,t))+' d-inline-block ui-dropdown-toggle">\n '+(null!=(i=a(null!=(i=null!=t?t.options:t)?i.svg:i,t))?i:"")+'\n</span>\n<div class="items-region"></div>\n'},compiler:[8,">= 4.3.0"],main:function(e,t,n,o,r){var i;return e.propertyIsEnumerable,null!=(i=n.if.call(null!=t?t:e.nullContext||{},null!=(i=null!=t?t.options:t)?i.hasActions:i,{name:"if",hash:{},fn:e.program(1,r,0),inverse:e.noop,data:r}))?i:""},useData:!0})},32122:function(e,t,n){var o=n(32227);e.exports=(o.default||o).template({1:function(e,t,n,o,r){e.propertyIsEnumerable;var i,a=e.lambda,l=e.escapeExpression;return'<div class="'+l(a(null!=(i=null!=(i=null!=t?t.options:t)?i.styles:i)?i.addLibraryContainer:i,t))+'">\n <button class="applink-new-library btn btn-outline-secondary '+l(a(null!=(i=null!=(i=null!=t?t.options:t)?i.styles:i)?i.addLibrary:i,t))+'">\n <span class="'+l(a(null!=(i=null!=(i=null!=t?t.options:t)?i.styles:i)?i.plus:i,t))+' d-inline-block position-absolute">\n '+(null!=(i=a(null!=(i=null!=t?t.options:t)?i.plusSvg:i,t))?i:"")+"\n </span>\n "+l((n.lang||t&&t.lang||e.hooks.helperMissing).call(null!=t?t:e.nullContext||{},"newLibrary",{name:"lang",hash:{},data:r}))+"\n </button>\n</div>\n"},compiler:[8,">= 4.3.0"],main:function(e,t,n,o,r){var i;return e.propertyIsEnumerable,'<div class="logo-region"></div>\n<div class="folder-tree-region"></div>\n'+(null!=(i=n.if.call(null!=t?t:e.nullContext||{},null!=(i=null!=t?t.options:t)?i.canCreateLibraries:i,{name:"if",hash:{},fn:e.program(1,r,0),inverse:e.noop,data:r}))?i:"")},useData:!0})}}]);
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
"use strict";(self.webpackChunk_clickview_library_editor=self.webpackChunk_clickview_library_editor||[]).push([[7190],{61596:function(e,r,t){t.d(r,{$:function(){return u}});var n=t(39479),i=t(57857),o=t(93569),a="libraryEditor.utils",u={isValidChapterTime:function(e,r,t,i){if(i){if(!n.isNumber(r))return s.StartTime.Invalid();if(r<0)return s.StartTime.Invalid();if(r>o.X4.millisecondsToSeconds(t))return s.StartTime.Exceeds();if(i.some((function(t){return!(t.id&&t.id===e.id||t.cid===e.cid)&&t.get("startTime")===r})))return s.StartTime.Exists()}},isValidChapterName:function(e,r,t){return r?r.length>255?s.Name.MaxLength():t.some((function(t){return!(t.id&&t.id===e.id||t.cid===e.cid)&&t.get("name").trim()===r.trim()}))?s.Name.Exists():n.isEmpty(r.trim())?s.Name.Invalid():void 0:s.Name.Invalid()},mapPhysicalChapters:function(e){var r=0;return n.map(e,(function(e,t){var n={name:e.title,startTime:r,index:t,isPhysicalChapter:!0};return r+=e.duration,n}))}},s={Name:{Invalid:function(){return i.T.getPhrase(a,"chapterNameInvalid")},Exists:function(){return i.T.getPhrase(a,"chapterNameExists")},MaxLength:function(){return i.T.getPhrase(a,"chapterNameExceeds")}},StartTime:{Invalid:function(){return i.T.getPhrase(a,"chapterStartTimeInvalid")},Exists:function(){return i.T.getPhrase(a,"chapterStartTimeExists")},Exceeds:function(){return i.T.getPhrase(a,"chapterStartTimeExceeds")}}}},57785:function(e,r,t){t.d(r,{A9:function(){return T},B9:function(){return g},Zg:function(){return x},Zl:function(){return p},aj:function(){return S},c6:function(){return v},nf:function(){return P},oJ:function(){return N},rr:function(){return m},tD:function(){return b},xC:function(){return l},xs:function(){return y},yU:function(){return E}});var n=t(33192),i=t(39479),o=t(11306),a=t(57857),u=t(31647),s="libraryEditor.utils",c=["tags","thumbnail","chapters","resources","subtitles","disabled","links","restrictions","categories"];function d(e,r){if(e){var t=i.reduce(e,(function(e,t,n){var o=r[n];return t||o?i.isObject(t)&&i.isObject(o)&&!i.isUndefined(t.id)&&t.id===o.id?e:i.isArray(t)?f(t,o).length?e.concat(n):e:i.isEqual(t,o)?e:e.concat(n):e}),[]);if(t.length)return i.object(i.map(t,(function(t){return i.isArray(r[t])?[t,f(e[t],r[t])]:[t,r[t]]})))}}function f(e,r){var t=[];return i.each(r,(function(r){var n=i.findWhere(e,{id:r.id});if(!i.isUndefined(n)||0!==Object.keys(r).length){var o=i.isUndefined(n)?r:d(n,r);o&&(r.id<0&&!r.value||(!n||r.id<0?t.push(r):(o.id=r.id,t.push(o))))}})),t}var l={getChanges:function(e,r){var t=d(i.omit(e.toJSON(),c),i.omit(r.toJSON(),c));if(t)return i.object(i.map(i.keys(t),(function(e){return[e,l.formatChanges(e,t[e])]})))},formatChanges:function(e,r){if(!r)return null;if(i.isObject(r)&&i.isEmpty(r))return null;switch(e){case"name":case"description":case"productionYear":case"dateBroadcast":case"fields":case"episodeNumber":return r;case"channel":case"series":case"rating":case"season":return{id:r.id};case"distributors":case"producers":case"directors":case"productionCompanies":return i.map(r,(function(e){return e.id}));case"dateModified":case"hasBroadcast":case"seriesSort":return;default:u.Q.Ry.throw(new o.H("There are no formatting settings for ".concat(e)))}},updateModelState:function(e,r,t){var n=["distributors","producers","directors","productionCompanies"];for(var o in i.each(i.keys(t),(function(e){n.includes(e)&&(t[e]=r.get(e).toJSON())})),r.set(i.clone(t),{silent:!0}),e.set(r.toJSON(),{silent:!0}),t)if(!t[o]&&e.associations[o]){var a=e.get(o);(a instanceof u.Q.Hn||a instanceof u.Q.Do)&&a.clear()}},getRemovedObjectIds:function(e,r){var t=["distributors","productionCompanies","producers","directors"],n={};return i.each(i.keys(e.toJSON()),(function(o){if(i.contains(t,o)){var a=e.get(o).map((function(e){return e.id})),u=r.get(o).map((function(e){return e.id})),s=i.filter(a,(function(e){return e&&!i.contains(u,e)}));s.length&&(n[o]=s)}})),n}},m={name:[{required:!0,msg:function(){return a.T.getPhrase(s,"videoTitleRequired")}},{maxLength:255,msg:function(){return a.T.getPhrase(s,"videoTitleExceeds")}}],description:[{required:!1},{maxLength:16e3,msg:function(){return a.T.getPhrase(s,"videoDescriptionExceeds")}}],episodeNumber:function(e,r,t){return e&&e<1?a.T.getPhrase(s,"episodeNumberLessThanOne"):e&&e>2147483647?a.T.getPhrase(s,"episodeNumberExceeds"):e%1!=0?a.T.getPhrase(s,"episodeNumberNotWhole"):t.season&&t.season.get("number")>=0&&null===e?a.T.getPhrase(s,"episodeNumberNoSeason"):""},season:function(e,r,t){return t.season&&t.season.get("number")||e&&e.number||!t.episodeNumber?"":a.T.getPhrase(s,"seasonNoEpisodeNumber")}},g={name:[{required:!0,msg:function(){return a.T.getPhrase(s,"videoTitleRequired")}},{maxLength:255,msg:function(){return a.T.getPhrase(s,"videoTitleExceeds")}}],description:[{required:!1},{maxLength:16e3,msg:function(){return a.T.getPhrase(s,"videoDescriptionExceeds")}}]},p={name:[{required:!0,msg:function(){return a.T.getPhrase(s,"videoTitleRequired")}},{maxLength:255,msg:function(){return a.T.getPhrase(s,"videoTitleExceeds")}}],description:[{required:!1},{maxLength:16e3,msg:function(){return a.T.getPhrase(s,"videoDescriptionExceeds")}}]},h=n().year(),b={productionYear:function(e){return e||0===e?(e=+e,isNaN(e)?"Production year must be a number.":e<1900||e>h?a.T.getPhrase(s,"validProductionYears",{currentYear:h}):void 0):""}},T={name:[{required:!0,msg:function(){return a.T.getPhrase(s,"resourceNameRequired")}}]},y={suggestion:[{required:!0,msg:function(){return a.T.getPhrase(s,"suggestEditRequired")}},{maxLength:16e3,msg:function(){return a.T.getPhrase(s,"suggestEditExceeds")}}],reason:[{required:!0,msg:function(){return a.T.getPhrase(s,"suggestEditReasonRequired")}},{maxLength:16e3,msg:function(){return a.T.getPhrase(s,"suggestEditReasonExceeds")}}]},v={number:function(e){return e?+e<1?a.T.getPhrase(s,"seasonLessThanOne"):+e>3e3?a.T.getPhrase(s,"seasonExceeds"):+e%1!=0?a.T.getPhrase(s,"seasonNotWhole"):"":a.T.getPhrase(s,"seasonRequired")}},P={empty:function(){return a.T.getPhrase(s,"suggestEditRatingRequired")},original:function(){return a.T.getPhrase(s,"suggestEditRatingInvalid")}},E={url:[{required:!0,pattern:"url",msg:function(){return a.T.getPhrase(s,"linkUrlRequired")}},{maxLength:16e3,msg:function(){return a.T.getPhrase(s,"linkUrlExceeds")}}],name:[{required:!0,msg:function(){return a.T.getPhrase(s,"linkNameRequired")}},{maxLength:255,msg:function(){return a.T.getPhrase(s,"linkNameExceeds")}}]},x={name:[{maxLength:128,msg:function(){return a.T.getPhrase(s,"fieldNameExceeds")}}],value:[{maxLength:16e3,msg:function(){return a.T.getPhrase(s,"fieldValueExceeds")}}]},N={fields:function(e){return e&&e.length?e.all((function(e){return!1!==e.isValid()}))?"":a.T.getPhrase(s,"fieldsInvalid"):""}};function S(){return[{id:-1,name:"Admin notes",value:"",placeholder:"Notes that only administrators will see"}]}},11653:function(e,r,t){t.d(r,{h:function(){return d}});var n=t(39479),i=t(57857),o=t(54008),a=t(22557),u="libraryEditor.utils",s={name:[{required:!0,msg:function(){return i.T.getPhrase(u,"folderNameRequired")}},{maxLength:255,msg:function(){return i.T.getPhrase(u,"folderNameExceeds")}}]},c=function(e,r){return{parentId:function(t){return t?a.P.calculateDestinationFolderDepth(e,t,r)>o.p.MAX_FOLDER_DEPTH?i.T.getPhrase(u,"maxFolderDepth",{maxDepth:o.p.MAX_FOLDER_DEPTH}):"":i.T.getPhrase(u,"selectParentFolder")}}},d=function(e){var r=e.validateName,t=e.validateParent,i=e.folder,o=e.collection;return r&&t?n.extend({},s,c(i,o)):r?s:t?c(i,o):void 0}},87120:function(e,r,t){t.d(r,{Y:function(){return o}});var n=t(57857),i="libraryEditor.utils",o={name:[{required:!0,msg:function(){return n.T.getPhrase(i,"libraryNameRequired")}},{maxLength:255,msg:function(){return n.T.getPhrase(i,"libraryNameExceeds")}}]}},39155:function(e,r,t){t.d(r,{I:function(){return a}});var n=t(57857),i=t(57785),o=n.T.encloseNamespace("libraryEditor.utils"),a={name:[{required:!0,msg:function(){return o("videoTitleRequired")}}],folderId:[{required:!0,msg:function(){return o("uploadFolderRequired")}}],libraryId:[{required:!0,msg:function(){return o("uploadLibraryRequired")}}],episodeNumber:function(e,r,t){return e&&e<1?o("episodeNumberLessThanOne"):e&&e>255?o("episodeNumberExceeds"):e&&e%1!=0?o("episodeNumberNotWhole"):t.season&&t.season.get("number")>=0&&null===e?o("episodeNumberNoSeason"):""},season:function(e,r,t){return t.season&&t.season.get("number")||e&&e.number||!t.episodeNumber?"":o("seasonNoEpisodeNumber")},productionYear:function(){for(var e=arguments.length,r=new Array(e),t=0;t<e;t++)r[t]=arguments[t];return i.tD.productionYear.apply(null,r)}}},70042:function(e,r,t){t.d(r,{u:function(){return g}});var n=t(57857),i=t(75459),o=t(74421),a=t(63791),u=t(83665),s=t(264),c=t(40622);function d(e){return d="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},d(e)}function f(e,r,t){return(r=function(e){var r=function(e,r){if("object"!==d(e)||null===e)return e;var t=e[Symbol.toPrimitive];if(void 0!==t){var n=t.call(e,"string");if("object"!==d(n))return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}(e);return"symbol"===d(r)?r:String(r)}(r))in e?Object.defineProperty(e,r,{value:t,enumerable:!0,configurable:!0,writable:!0}):e[r]=t,e}var l,m="libraryEditor.utils";!function(e){e.Pdf="pdf",e.Image="image",e.PowerPoint="powerpoint",e.Document="document",e.Excel="excel",e.Zip="archive",e.File="text"}(l||(l={}));var g={mapRatingToClass:function(e){return e?function(e){switch(!0){case e<32:return"bg-purple";case e<48:return"bg-green";case e<80:return"bg-info";case e<96:return"bg-red";case e<128:return"bg-pink";case e>=128:return"bg-yellow";default:return""}}(e):""},mapSourceToDisplayName:function(e){switch(e.get("type")){case i.r.HostedLibrary:case i.r.CustomLibrary:return e.get("name");case i.r.Exchange:return n.T.getPhrase(m,"exchange");case i.r.Workspace:return n.T.getPhrase(m,"workspace");default:return""}},mapSourceToClass:function(e){switch(e){case i.r.HostedLibrary:case i.r.CustomLibrary:return"bg-info";case i.r.Exchange:return"bg-green";case i.r.Workspace:default:return"bg-red"}},mapMediaTypeToClass:function(e){switch(e.get("typeId")){case o.E.Clip:return"bg-dark-blue";case o.E.Interactive:return"bg-green";default:return""}},mapMediaTypeToSvg:function(e){switch(e.get("typeId")){case o.E.Clip:return a.Nj.getSvg(a.vn.Clip);case o.E.Interactive:return a.Nj.getSvg(a.vn.Interactive);default:return""}},isInteractive:function(e){return!(s.g.hasLite||!e||!e.interactives||!e.interactives.length)},mapTypeToSvg:function(e){var r=f(f(f(f(f(f(f({},l.Pdf,a.vn.FilePDF),l.Image,a.vn.FileImg),l.PowerPoint,a.vn.FilePowerpoint),l.Document,a.vn.FileWord),l.Excel,a.vn.FileExcel),l.Zip,a.vn.FileZip),l.File,a.vn.File)[e];return r||(r=a.vn.Folder),a.Nj.getSvg(r)},mapTypeToClass:function(e){switch(e){case l.Pdf:return"icon-red";case l.Image:return"icon-purple";case l.Document:return"icon-blue";case l.Excel:return"icon-green";case l.PowerPoint:return"icon-orange";case l.Zip:return"icon-teal";case l.File:return"icon-gray";default:return""}},mapTypeToExtension:function(e){return e?{pdf:"pdf",image:"png",powerpoint:"pptx"}[e.toLowerCase()]:""},mapTypeToName:function(e){if(!e)return"";switch(e){case l.Pdf:return n.T.getPhrase(m,"pdf");case l.Image:return n.T.getPhrase(m,"image");case l.Document:return n.T.getPhrase(m,"document");case l.Excel:return n.T.getPhrase(m,"spreadsheet");case l.PowerPoint:return n.T.getPhrase(m,"presentation");case l.Zip:return n.T.getPhrase(m,"zipArchive");case l.File:return n.T.getPhrase(m,"file");default:return""}},translateMetadataCollectionNames:function(e){return new u.L(e.map((function(e){return Object.assign(Object.assign({},e.toJSON()),{name:g.translateMetadataName(e.get("name"))})})))},translateMetadataName:function(e){var r="suggestEdit";switch(e){case c.pG.VideoTitle:r+="VideoTitle";break;case c.pG.Description:r+="Description";break;case c.pG.Rating:r+="Rating";break;case c.pG.SeriesTitle:r+="SeriesTitle";break;case c.pG.Season:r+="SeasonNumber";break;case c.pG.EpisodeNumber:r+="EpisodeNumber";break;case c.pG.BroadcastDate:r+="BroadcastDate";break;case c.pG.Channel:r+="Channel";break;case c.pG.ProductionYear:r+="ProductionYear";break;case c.pG.Distributors:r+="Distributors";break;case c.pG.ProductionCompanies:r+="ProductionCompanies";break;case c.pG.Directors:r+="Directors";break;case c.pG.Producers:r+="Producers";break;case c.pG.Other:r+="Other"}return n.T.getPhrase(m,r)}}},7190:function(e,r,t){t.d(r,{$k:function(){return n.$},Y7:function(){return o.Y},yU:function(){return i.yU},A9:function(){return i.A9},c6:function(){return i.c6},nf:function(){return i.nf},xs:function(){return i.xs},uB:function(){return a.u}});var n=t(61596),i=t(57785),o=(t(11653),t(57857),t(87120)),a=(t(39155),t(70042))},83665:function(e,r,t){function n(e){return n="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},n(e)}function i(e,r){return i=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(e,r){return e.__proto__=r,e},i(e,r)}function o(e){return o=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(e){return e.__proto__||Object.getPrototypeOf(e)},o(e)}t.d(r,{L:function(){return a}});var a=function(e){!function(e,r){if("function"!=typeof r&&null!==r)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(r&&r.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),Object.defineProperty(e,"prototype",{writable:!1}),r&&i(e,r)}(s,e);var r,t,a,u=(t=s,a=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}}(),function(){var e,r=o(t);if(a){var i=o(this).constructor;e=Reflect.construct(r,arguments,i)}else e=r.apply(this,arguments);return function(e,r){if(r&&("object"===n(r)||"function"==typeof r))return r;if(void 0!==r)throw new TypeError("Derived constructors may only return object or undefined");return function(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}(e)}(this,e)});function s(){return function(e,r){if(!(e instanceof r))throw new TypeError("Cannot call a class as a function")}(this,s),u.apply(this,arguments)}return r=s,Object.defineProperty(r,"prototype",{writable:!1}),r}(t(31647).Q.FE)}}]);
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
(self.webpackChunk_clickview_library_editor=self.webpackChunk_clickview_library_editor||[]).push([[7376],{57085:function(t,e,n){"use strict";n.d(e,{n:function(){return E}});var r=n(31647),o=n(57098),i=n(22557),u=n(86363),a=n.n(u);function c(t){return c="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},c(t)}function l(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}function s(t,e){for(var n=0;n<e.length;n++){var r=e[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(t,(void 0,o=function(t,e){if("object"!==c(t)||null===t)return t;var n=t[Symbol.toPrimitive];if(void 0!==n){var r=n.call(t,"string");if("object"!==c(r))return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(t)}(r.key),"symbol"===c(o)?o:String(o)),r)}var o}function f(t,e,n){return e&&s(t.prototype,e),n&&s(t,n),Object.defineProperty(t,"prototype",{writable:!1}),t}function p(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function");t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,writable:!0,configurable:!0}}),Object.defineProperty(t,"prototype",{writable:!1}),e&&b(t,e)}function b(t,e){return b=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(t,e){return t.__proto__=e,t},b(t,e)}function y(t){var e=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(t){return!1}}();return function(){var n,r=m(t);if(e){var o=m(this).constructor;n=Reflect.construct(r,arguments,o)}else n=r.apply(this,arguments);return function(t,e){if(e&&("object"===c(e)||"function"==typeof e))return e;if(void 0!==e)throw new TypeError("Derived constructors may only return object or undefined");return function(t){if(void 0===t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return t}(t)}(this,n)}}function m(t){return m=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(t){return t.__proto__||Object.getPrototypeOf(t)},m(t)}var d=function(t){p(n,t);var e=y(n);function n(){return l(this,n),e.apply(this,arguments)}return f(n,[{key:"name",get:function(){return"BreadcrumbItemComponent"}},{key:"template",get:function(){return a()}},{key:"tagName",get:function(){return"li"}},{key:"className",get:function(){var t="breadcrumb-item";return this.model.get("active")&&(t+=" active"),t}},{key:"attributes",get:function(){return this.model.get("active")?{"aria-current":"page"}:{}}},{key:"appLinks",get:function(){return this.model.get("active")?{}:{a:this.model.get("appLink")}}},{key:"viewOptions",value:function(){return{isActive:this.model.get("active")}}}]),n}(r.Q.wA),v=function(t){p(n,t);var e=y(n);function n(){return l(this,n),e.apply(this,arguments)}return f(n,[{key:"name",get:function(){return"BreadcrumbComponentCollection"}},{key:"tagName",get:function(){return"ol"}},{key:"className",get:function(){return"breadcrumb m-0 p-0"}},{key:"childView",get:function(){return d}}]),n}(r.Q.$W),h=n(93933),g=n.n(h);function w(t){return w="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},w(t)}function k(t,e){for(var n=0;n<e.length;n++){var r=e[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(t,(void 0,o=function(t,e){if("object"!==w(t)||null===t)return t;var n=t[Symbol.toPrimitive];if(void 0!==n){var r=n.call(t,"string");if("object"!==w(r))return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(t)}(r.key),"symbol"===w(o)?o:String(o)),r)}var o}function O(t,e){return O=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(t,e){return t.__proto__=e,t},O(t,e)}function j(t){return j=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(t){return t.__proto__||Object.getPrototypeOf(t)},j(t)}var E=function(t){!function(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function");t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,writable:!0,configurable:!0}}),Object.defineProperty(t,"prototype",{writable:!1}),e&&O(t,e)}(l,t);var e,n,u,a,c=(u=l,a=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(t){return!1}}(),function(){var t,e=j(u);if(a){var n=j(this).constructor;t=Reflect.construct(e,arguments,n)}else t=e.apply(this,arguments);return function(t,e){if(e&&("object"===w(e)||"function"==typeof e))return e;if(void 0!==e)throw new TypeError("Derived constructors may only return object or undefined");return function(t){if(void 0===t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return t}(t)}(this,t)});function l(t){return function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,l),c.call(this,t)}return e=l,(n=[{key:"initialize",value:function(){this.getBreadcrumbs()}},{key:"name",get:function(){return"BreadcrumbsComponent"}},{key:"template",get:function(){return g()}},{key:"className",get:function(){return"d-inline-block"}},{key:"regions",value:function(){return{breadcrumbs:".breadcrumbs-region"}}},{key:"defaults",get:function(){return{customBreadcrumbs:[]}}},{key:"getBreadcrumbs",value:function(){var t=this;this.breadcrumbCollection=new r.Q.FE([]);var e,n=this.options.folder;do{if(!n)break;if(e=i.P.getParent(n.id,this.options.libraries),this.breadcrumbCollection.add(this.getBreadcrumb(n,!!e),{at:0}),!e)break;n=e}while(e);this.options.video&&this.breadcrumbCollection.add({name:this.options.video.get("name"),appLink:{application:o.OV.LIBRARY_EDITOR,action:o.eX.LibraryEditor.VIDEO_DETAILS,args:[this.options.video.id]}}),this.options.customBreadcrumbs&&this.options.customBreadcrumbs.forEach((function(e){return t.breadcrumbCollection.add(e)})),this.breadcrumbCollection.length&&this.breadcrumbCollection.last().set("active",!this.options.enableLastItemAppLink)}},{key:"getBreadcrumb",value:function(t,e){var n=e?o.eX.LibraryEditor.FOLDER:o.eX.LibraryEditor.LIBRARY;return{name:t.get("name"),appLink:{application:o.OV.LIBRARY_EDITOR,action:n,args:[t.id]}}}},{key:"onRender",value:function(){var t=new v({collection:this.breadcrumbCollection});this.showChildView("breadcrumbs",t)}}])&&k(e.prototype,n),Object.defineProperty(e,"prototype",{writable:!1}),l}(r.Q.wA)},35630:function(t,e,n){"use strict";n.d(e,{n:function(){return p}});var r=n(39479),o=n(31647),i=n(92655),u=n.n(i),a={pillTabSelector:"lo5ex",pillItem:"Zschz",umm:"uD6rh"};function c(t){return c="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},c(t)}function l(t,e){for(var n=0;n<e.length;n++){var r=e[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(t,(void 0,o=function(t,e){if("object"!==c(t)||null===t)return t;var n=t[Symbol.toPrimitive];if(void 0!==n){var r=n.call(t,"string");if("object"!==c(r))return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(t)}(r.key),"symbol"===c(o)?o:String(o)),r)}var o}function s(t,e){return s=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(t,e){return t.__proto__=e,t},s(t,e)}function f(t){return f=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(t){return t.__proto__||Object.getPrototypeOf(t)},f(t)}var p=function(t){!function(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function");t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,writable:!0,configurable:!0}}),Object.defineProperty(t,"prototype",{writable:!1}),e&&s(t,e)}(b,t);var e,n,o,i,p=(o=b,i=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(t){return!1}}(),function(){var t,e=f(o);if(i){var n=f(this).constructor;t=Reflect.construct(e,arguments,n)}else t=e.apply(this,arguments);return function(t,e){if(e&&("object"===c(e)||"function"==typeof e))return e;if(void 0!==e)throw new TypeError("Derived constructors may only return object or undefined");return function(t){if(void 0===t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return t}(t)}(this,t)});function b(t){return function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,b),p.call(this,t)}return e=b,(n=[{key:"name",get:function(){return"TabsView"}},{key:"className",get:function(){var t="bg-white py-3 border-bottom";return this.options.className&&(t+=" ".concat(this.options.className)),t}},{key:"template",get:function(){return u()}},{key:"tagName",get:function(){return"nav"}},{key:"appLinks",get:function(){var t={};return this.options.tabs.forEach((function(e){return t[e.link.selector]=e.link.appLink})),t}},{key:"viewOptions",value:function(){var t=this.options.tabs.map((function(t){return Object.assign(Object.assign({},t),{link:t.link.selector.replace(".","")})}));return{styles:a,tabs:t}}},{key:"setActiveTab",value:function(){var t=this,e=!1;if(this.options.tabs.forEach((function(n){n.active=!1,n.link.selector===t.options.activeTab&&(n.active=!0,e=!0)})),!e){var n=r.first(this.options.tabs);n&&(n.active=!0)}}},{key:"onBeforeRender",value:function(){this.setActiveTab()}}])&&l(e.prototype,n),Object.defineProperty(e,"prototype",{writable:!1}),b}(o.Q.wA)},86363:function(t,e,n){var r=n(32227);t.exports=(r.default||r).template({1:function(t,e,n,r,o){var i;return t.propertyIsEnumerable,'<span class="fw-bolder">'+t.escapeExpression("function"==typeof(i=null!=(i=n.name||(null!=e?e.name:e))?i:t.hooks.helperMissing)?i.call(null!=e?e:t.nullContext||{},{name:"name",hash:{},data:o}):i)+"</span>\n"},3:function(t,e,n,r,o){var i;return t.propertyIsEnumerable,"<a>"+t.escapeExpression("function"==typeof(i=null!=(i=n.name||(null!=e?e.name:e))?i:t.hooks.helperMissing)?i.call(null!=e?e:t.nullContext||{},{name:"name",hash:{},data:o}):i)+"</a>\n"},compiler:[8,">= 4.3.0"],main:function(t,e,n,r,o){var i;return t.propertyIsEnumerable,null!=(i=n.if.call(null!=e?e:t.nullContext||{},null!=(i=null!=e?e.options:e)?i.isActive:i,{name:"if",hash:{},fn:t.program(1,o,0),inverse:t.program(3,o,0),data:o}))?i:""},useData:!0})},93933:function(t,e,n){var r=n(32227);t.exports=(r.default||r).template({compiler:[8,">= 4.3.0"],main:function(t,e,n,r,o){return'<nav class="breadcrumbs-region" aria-label="breadcrumb"></nav>'},useData:!0})},92655:function(t,e,n){var r=n(32227);t.exports=(r.default||r).template({1:function(t,e,n,r,o,i,u){var a;return t.propertyIsEnumerable,null!=(a=n.unless.call(null!=e?e:t.nullContext||{},null!=e?e.hide:e,{name:"unless",hash:{},fn:t.program(2,o,0,i,u),inverse:t.noop,data:o}))?a:""},2:function(t,e,n,r,o,i,u){t.propertyIsEnumerable;var a,c=t.lambda,l=t.escapeExpression;return' <li class="p-0 '+(null!=(a=n.if.call(null!=e?e:t.nullContext||{},null!=e?e.active:e,{name:"if",hash:{},fn:t.program(3,o,0,i,u),inverse:t.program(5,o,0,i,u),data:o}))?a:"")+'">\n <a class="'+l(c(null!=e?e.link:e,e))+" cursor-pointer d-block text-decoration-none text-reset px-2 "+l(c(null!=(a=null!=(a=null!=u[1]?u[1].options:u[1])?a.styles:a)?a.pillItem:a,e))+'">\n '+l(c(null!=e?e.name:e,e))+"\n </a>\n </li>\n"},3:function(t,e,n,r,o){return"btn btn-dark"},5:function(t,e,n,r,o){return"btn btn-outline-dark"},compiler:[8,">= 4.3.0"],main:function(t,e,n,r,o,i,u){var a;return t.propertyIsEnumerable,'<ul class="list-unstyled d-inline-block m-0 d-flex '+t.escapeExpression(t.lambda(null!=(a=null!=(a=null!=e?e.options:e)?a.styles:a)?a.pillTabSelector:a,e))+'">\n'+(null!=(a=n.each.call(null!=e?e:t.nullContext||{},null!=(a=null!=e?e.options:e)?a.tabs:a,{name:"each",hash:{},fn:t.program(1,o,0,i,u),inverse:t.noop,data:o}))?a:"")+"</ul>"},useData:!0,useDepths:!0})}}]);
|