@clickview/library-editor 1.43.1-rc.0 → 1.44.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -1 +1 @@
1
- (self.webpackChunk_clickview_library_editor=self.webpackChunk_clickview_library_editor||[]).push([[5707],{44391:function(t,e,n){"use strict";n.d(e,{K:function(){return P}});var o=n(11306),i=n(31647),r=n(48088),a=n(57098),l=n(26457),s=n(15564),c=n.n(s);function u(t){return u="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},u(t)}function p(t,e){for(var n=0;n<e.length;n++){var o=e[n];o.enumerable=o.enumerable||!1,o.configurable=!0,"value"in o&&(o.writable=!0),Object.defineProperty(t,f(o.key),o)}}function f(t){var e=function(t,e){if("object"!=u(t)||!t)return t;var n=t[Symbol.toPrimitive];if(void 0!==n){var o=n.call(t,"string");if("object"!=u(o))return o;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(t)}(t);return"symbol"==u(e)?e:e+""}function h(t,e,n){return e=d(e),function(t,e){if(e&&("object"===u(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)}(t,y()?Reflect.construct(e,n||[],d(t).constructor):e.apply(t,n))}function y(){try{var t=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){})))}catch(t){}return(y=function(){return!!t})()}function d(t){return d=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(t){return t.__proto__||Object.getPrototypeOf(t)},d(t)}function m(t,e){return m=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(t,e){return t.__proto__=e,t},m(t,e)}var b=function(t){function e(t){return function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,e),h(this,e,[t])}return 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&&m(t,e)}(e,t),n=e,(o=[{key:"name",get:function(){return"TagItemComponent"}},{key:"tagName",get:function(){return this.options.behavior===l.Dm.Link?"a":"span"}},{key:"className",get:function(){var t="".concat(this.options.orientation===l.zM.Vertical?"":" d-inline-flex"),e="".concat(this.isSaving()?" saving":""),n="".concat(this.options.behavior===l.Dm.Disabled?" ".concat("dE3WC"):""),o="".concat(this.options.behavior===l.Dm.Filter?" cursor-pointer":"");return"rounded-pill tag py-1 px-2 flex-shrink-0 ".concat(o).concat(t).concat(e).concat(n)}},{key:"template",get:function(){return c()}},{key:"elements",get:function(){return{close:".btn-close"}}},{key:"appLinks",get:function(){return this.options.behavior!==l.Dm.Link?{}:{"[this]":{application:a.OV.SEARCH,action:a.eX.Search.HOME,params:{tag:this.model.get("name")}}}}},{key:"defaults",get:function(){return{behavior:l.Dm.Link,orientation:l.zM.Flex}}},{key:"events",value:function(){return this.options.removeEvent?{"click @ui.close":"onRemoveTag"}:{click:"onClickTag"}}},{key:"initialize",value:function(){this.options.behavior===l.Dm.Edit&&this.listenTo(this.model,"change",this.render)}},{key:"isSaving",value:function(){if(this.options.behavior!==l.Dm.Filter){var t=this.model.pick("id","name","remove"),e=t.id,n=t.name;return!!t.remove||!e||!n}}},{key:"onRemoveTag",value:function(t){if(t.stopPropagation(),!this.isSaving())return this.model.set("remove",!0),r.Radio.channel(this.options.channelName).trigger(this.options.removeEvent,this.model),!1}},{key:"onClickTag",value:function(){this.options.behavior!==l.Dm.Filter||this.options.removeEvent||r.Radio.channel(this.options.channelName).trigger(this.options.clickEvent,this.model)}},{key:"viewOptions",value:function(){return{removable:this.options.removeEvent}}},{key:"onRender",value:function(){this.resetClassName()}}])&&p(n.prototype,o),Object.defineProperty(n,"prototype",{writable:!1}),n;var n,o}(i.Q.wA);function v(t){return v="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},v(t)}function g(t,e){for(var n=0;n<e.length;n++){var o=e[n];o.enumerable=o.enumerable||!1,o.configurable=!0,"value"in o&&(o.writable=!0),Object.defineProperty(t,w(o.key),o)}}function w(t){var e=function(t,e){if("object"!=v(t)||!t)return t;var n=t[Symbol.toPrimitive];if(void 0!==n){var o=n.call(t,"string");if("object"!=v(o))return o;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(t)}(t);return"symbol"==v(e)?e:e+""}function k(t,e,n){return e=E(e),function(t,e){if(e&&("object"===v(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)}(t,O()?Reflect.construct(e,n||[],E(t).constructor):e.apply(t,n))}function O(){try{var t=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){})))}catch(t){}return(O=function(){return!!t})()}function E(t){return E=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(t){return t.__proto__||Object.getPrototypeOf(t)},E(t)}function S(t,e){return S=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(t,e){return t.__proto__=e,t},S(t,e)}var P=function(t){function e(t){return function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,e),k(this,e,[t])}return 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)}(e,t),n=e,(r=[{key:"initialize",value:function(){this.options.behavior!==l.Dm.Edit||this.options.removeEvent||i.Q.Ry.throw(new o.H("removeEvent is required to edit tags."))}},{key:"name",get:function(){return"TagComponentCollection"}},{key:"defaults",get:function(){return{orientation:l.zM.Flex}}},{key:"className",get:function(){var t="".concat(this.options.orientation===l.zM.Vertical?"d-flex align-items-start flex-column":"d-flex flex-wrap gap-1");return"tags ".concat(t)}},{key:"childViewOptions",get:function(){return{channelName:this.options.channelName,behavior:this.options.behavior,orientation:this.options.orientation,removeEvent:this.options.removeEvent,clickEvent:this.options.clickEvent}}},{key:"childView",get:function(){return b}}])&&g(n.prototype,r),Object.defineProperty(n,"prototype",{writable:!1}),n;var n,r}(i.Q.$W)},71641:function(t,e,n){"use strict";n.d(e,{w:function(){return h}});var o=n(39479),i=n(31647),r=n(55142);function a(t){return a="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},a(t)}function l(t,e){for(var n=0;n<e.length;n++){var o=e[n];o.enumerable=o.enumerable||!1,o.configurable=!0,"value"in o&&(o.writable=!0),Object.defineProperty(t,s(o.key),o)}}function s(t){var e=function(t,e){if("object"!=a(t)||!t)return t;var n=t[Symbol.toPrimitive];if(void 0!==n){var o=n.call(t,"string");if("object"!=a(o))return o;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(t)}(t);return"symbol"==a(e)?e:e+""}function c(t,e,n){return e=p(e),function(t,e){if(e&&("object"===a(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)}(t,u()?Reflect.construct(e,n||[],p(t).constructor):e.apply(t,n))}function u(){try{var t=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){})))}catch(t){}return(u=function(){return!!t})()}function p(t){return p=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(t){return t.__proto__||Object.getPrototypeOf(t)},p(t)}function f(t,e){return f=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(t,e){return t.__proto__=e,t},f(t,e)}var h=function(t){function e(t){return function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,e),c(this,e,[t])}return 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&&f(t,e)}(e,t),n=e,i=[{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 r.N}},{key:"childViewOptions",get:function(){var t={channelName:this.options.channelName,analyticsHelper:this.options.analyticsHelper};return o.extend(t,this.options.childOptions)}},{key:"getExtraClasses",value:function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},e=t.alignment,n=void 0===e?"left":e,o=t.extraClasses,i="dropdown-menu-".concat(n);return o&&(i="".concat(i," ").concat(o)),i}},{key:"centerSelectedItem",value:function(){var t=this.$el.find(".active");if(t.length){var e=this.$el.scrollTop()+t.position().top,n=.5*this.$el.height()+.5*t.height();this.$el.scrollTop(e-n)}}}],i&&l(n.prototype,i),Object.defineProperty(n,"prototype",{writable:!1}),n;var n,i}(i.Q.$W)},66882:function(t,e,n){"use strict";n.d(e,{R:function(){return X}});var o=n(48088),i=n(57857),r=n(31647),a=n(52076),l=n(70065),s=n(84868),c=n(63791),u=n(71641),p=n(39479),f=n(56210),h=n(37106),y=n.n(h),d={actions:"VXWM3",svgContainer:"etJKo",moreSvgContainer:"kwNUa",actionName:"gbBGB",disabled:"Ykm_2",iconButton:"xqFbC"};function m(t){return m="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},m(t)}function b(t,e){(null==e||e>t.length)&&(e=t.length);for(var n=0,o=new Array(e);n<e;n++)o[n]=t[n];return o}function v(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}function g(t,e){for(var n=0;n<e.length;n++){var o=e[n];o.enumerable=o.enumerable||!1,o.configurable=!0,"value"in o&&(o.writable=!0),Object.defineProperty(t,k(o.key),o)}}function w(t,e,n){return e&&g(t.prototype,e),n&&g(t,n),Object.defineProperty(t,"prototype",{writable:!1}),t}function k(t){var e=function(t,e){if("object"!=m(t)||!t)return t;var n=t[Symbol.toPrimitive];if(void 0!==n){var o=n.call(t,"string");if("object"!=m(o))return o;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(t)}(t);return"symbol"==m(e)?e:e+""}function O(t,e,n){return e=S(e),function(t,e){if(e&&("object"===m(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)}(t,E()?Reflect.construct(e,n||[],S(t).constructor):e.apply(t,n))}function E(){try{var t=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){})))}catch(t){}return(E=function(){return!!t})()}function S(t){return S=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(t){return t.__proto__||Object.getPrototypeOf(t)},S(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&&T(t,e)}function T(t,e){return T=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(t,e){return t.__proto__=e,t},T(t,e)}var j=function(t){function e(t){return v(this,e),O(this,e,[t])}return P(e,t),w(e,[{key:"name",get:function(){return"VideoActionItemComponent"}},{key:"template",get:function(){return y()}},{key:"tagName",get:function(){return"a"}},{key:"attributes",get:function(){return this.model.get("href")?{href:this.model.get("href"),target:this.model.get("external")?"_blank":""}:{}}},{key:"className",get:function(){var t="cursor-pointer";return this.options.showLabel?t+=" ".concat(d.iconButton," btn btn-outline-dark ms-2"):t+=" d-inline-block px-1 no-decoration",this.model.get("isDisabled")&&(t+=" ".concat(d.disabled)),t}},{key:"events",value:function(){return{click:"onClick"}}},{key:"behaviors",get:function(){var t=(!this.options.showLabel||this.options.model.get("isDisabled"))&&this.options.model.get("tooltipText");if(t)return[{behaviorClass:f.H,title:t}]}},{key:"appLinks",get:function(){return!this.model.get("appLink")||this.model.get("isDisabled")?{}:{"[this]":this.model.get("appLink")}}},{key:"onClick",value:function(){this.logAction()}},{key:"logAction",value:function(){var t,e,n=this.model.get("appLink");if(p.isObject(n)){var o=(t=n.args,e=1,function(t){if(Array.isArray(t))return t}(t)||function(t,e){var n=null==t?null:"undefined"!=typeof Symbol&&t[Symbol.iterator]||t["@@iterator"];if(null!=n){var o,i,r,a,l=[],s=!0,c=!1;try{if(r=(n=n.call(t)).next,0===e){if(Object(n)!==n)return;s=!1}else for(;!(s=(o=r.call(n)).done)&&(l.push(o.value),l.length!==e);s=!0);}catch(t){c=!0,i=t}finally{try{if(!s&&null!=n.return&&(a=n.return(),Object(a)!==a))return}finally{if(c)throw i}}return l}}(t,e)||function(t,e){if(t){if("string"==typeof t)return b(t,e);var n=Object.prototype.toString.call(t).slice(8,-1);return"Object"===n&&t.constructor&&(n=t.constructor.name),"Map"===n||"Set"===n?Array.from(t):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?b(t,e):void 0}}(t,e)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}())[0];a.k.logUserAction({id:o},this.model.get("analyticsOptions"))}}},{key:"viewOptions",value:function(){return{styles:d,showLabel:this.options.showLabel,additionalClassName:this.model.get("isDisabled")?"disabled":"cursor-pointer"}}}])}(r.Q.wA),C=function(t){function e(t){return v(this,e),O(this,e,[t])}return P(e,t),w(e,[{key:"name",get:function(){return"VideoActionsComponentCollection"}},{key:"childView",get:function(){return j}},{key:"childViewOptions",get:function(){return{showLabel:this.options.showActionLabels}}}])}(r.Q.$W),_=n(57098),x=n(93569),A=n(89707),D=n(264),L=n(26457),V=n(59168),N=n.n(V);function R(t){return R="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},R(t)}function M(t,e){(null==e||e>t.length)&&(e=t.length);for(var n=0,o=new Array(e);n<e;n++)o[n]=t[n];return o}function I(t,e){for(var n=0;n<e.length;n++){var o=e[n];o.enumerable=o.enumerable||!1,o.configurable=!0,"value"in o&&(o.writable=!0),Object.defineProperty(t,B(o.key),o)}}function B(t){var e=function(t,e){if("object"!=R(t)||!t)return t;var n=t[Symbol.toPrimitive];if(void 0!==n){var o=n.call(t,"string");if("object"!=R(o))return o;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(t)}(t);return"symbol"==R(e)?e:e+""}function U(t,e,n){return e=K(e),function(t,e){if(e&&("object"===R(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)}(t,F()?Reflect.construct(e,n||[],K(t).constructor):e.apply(t,n))}function F(){try{var t=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){})))}catch(t){}return(F=function(){return!!t})()}function K(t){return K=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(t){return t.__proto__||Object.getPrototypeOf(t)},K(t)}function z(t,e){return z=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(t,e){return t.__proto__=e,t},z(t,e)}var X=function(t){function e(t){return function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,e),U(this,e,[t])}return 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&&z(t,e)}(e,t),n=e,(p=[{key:"initialize",value:function(){this.bindListeners()}},{key:"name",get:function(){return"VideoActionsComponent"}},{key:"template",get:function(){return N()}},{key:"lang",get:function(){return"shared.videoActions"}},{key:"className",get:function(){return"".concat(d.actions," ").concat(this.model.id)}},{key:"channelName",get:function(){return"".concat(this.name).concat(this.cid)}},{key:"elements",get:function(){return{dropdownToggle:".ui-dropdown-toggle",moreActions:".more-actions-region"}}},{key:"regions",value:function(){return{actions:{el:".actions-region"},moreActions:{el:"@ui.moreActions",replaceElement:!1}}}},{key:"events",value:function(){return{click:"onClick"}}},{key:"bindListeners",value:function(){this.listenTo(this.name,"hide:actions:dropdown",this.hideDropdown)}},{key:"hideDropdown",value:function(t){this.model.id!==t&&this.getUI("dropdownToggle").dropdown("hide")}},{key:"onClick",value:function(t){o.Radio.channel(this.name).trigger("hide:actions:dropdown",this.model.id),t.stopPropagation()}},{key:"onClickMore",value:function(){this.renderMoreActions(),this.getUI("dropdownToggle").dropdown("toggle")}},{key:"hasProduct",value:function(t){var e;return!!(null===(e=this.options.products)||void 0===e?void 0:e.find((function(e){return e.get("id")===t})))}},{key:"getActions",value:function(){return new r.Q.FE([].concat(function(t){if(Array.isArray(t))return M(t)}(t=x.M2.isInteractive(this.model)&&this.hasProduct(s.x.Analytics)?[{title:i.T.getPhrase(this.lang,"viewResults"),svg:c.Nj.getSvg(c.vn.Chart),tooltipText:i.T.getPhrase(this.lang,"viewResults"),analyticsOptions:a.k.mergeOptions(this.options.analyticsOptions,{actionType:l.Vw.Click,descriptor:l.XX.ViewResults}),href:A.k.getAnalyticsUrl(this.model,this.options.config),external:!0}]:[])||function(t){if("undefined"!=typeof Symbol&&null!=t[Symbol.iterator]||null!=t["@@iterator"])return Array.from(t)}(t)||function(t,e){if(t){if("string"==typeof t)return M(t,e);var n=Object.prototype.toString.call(t).slice(8,-1);return"Object"===n&&t.constructor&&(n=t.constructor.name),"Map"===n||"Set"===n?Array.from(t):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?M(t,e):void 0}}(t)||function(){throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}(),[{title:i.T.getPhrase(this.lang,"share"),svg:c.Nj.getSvg(c.vn.Share2),isDisabled:!x.BK.canShareVideo(this.options.libraries,this.options.application),tooltipText:x.BK.canShareVideo(this.options.libraries,this.options.application)?i.T.getPhrase(this.lang,"share"):x.BK.getSharePermissionsMessage(this.options.libraries,this.options.application),appLink:D.g.hasLite?{application:this.options.application,action:_.eX.Shared.SHARE,args:[this.model.get("id")],params:{entityType:x.M2.getMediaType(this.model)}}:{application:this.options.application,action:_.eX.Shared.SHARE_VIDEO,args:[this.model.get("id")]},analyticsOptions:a.k.mergeOptions(this.options.analyticsOptions,{actionType:l.Vw.Share,eventVersion:l.eq.V3})},{title:i.T.getPhrase(this.lang,"edit"),svg:x.BK.canEditVideo(this.model)?c.Nj.getSvg(c.vn.Edit):c.Nj.getSvg(c.vn.EditClickView),tooltipText:this.getEditTooltip(),appLink:x.M2.getEditAppLink(this.model),analyticsOptions:a.k.mergeOptions(this.options.analyticsOptions,{actionType:l.Vw.Edit,workflowPhase:l.eu.Start})}]));var t}},{key:"getEditTooltip",value:function(){return x.BK.canEditVideo(this.model)?i.T.getPhrase(this.lang,"edit"):x.M2.isExchangeVideo(this.model)?i.T.getPhrase(this.lang,"linkedToExchange"):i.T.getPhrase(this.lang,"linkedToCv")}},{key:"getFolderSourceId",value:function(){return this.options.collectionSource===L.x_.Folder?this.options.collectionIdentifier.id:this.model.get("categories").first().get("id")}},{key:"getMoreActions",value:function(){var t=[];if(this.options.collectionIdentifier&&t.push({title:i.T.getPhrase(this.lang,"move"),appLink:{application:this.options.application,action:_.eX.Shared.MOVE_VIDEOS,args:[this.model.get("id").toString(),this.getFolderSourceId()]},analyticsOptions:a.k.mergeOptions(this.options.analyticsOptions,{actionType:l.Vw.Move,descriptor:l.yh.Single,workflowPhase:l.eu.Start})}),t.push({title:i.T.getPhrase(this.lang,"manageAccess"),appLink:{application:this.options.application,action:_.eX.Shared.MANAGE_VIDEO_ACCESS,args:[this.model.get("id").toString(),this.model.get("typeId")]},analyticsOptions:a.k.mergeOptions(this.options.analyticsOptions,{actionType:l.Vw.SetAccess,workflowPhase:l.eu.Start})}),this.options.application===_.OV.CONTENT_UPDATES&&this.options.customerHasCustomLibrary&&t.push({title:i.T.getPhrase(this.lang,"addToLibrary"),appLink:{application:this.options.application,action:_.eX.ContentUpdates.ADD_TO_LIBRARY,args:[this.model.get("id").toString()]}}),t.push({title:i.T.getPhrase(this.lang,"openInStaffView"),href:x.M2.getProductUrl(this.model,this.options.config),external:!0,icon:c.Nj.getSvg(c.vn.NewWindow),analyticsOptions:a.k.mergeOptions(this.options.analyticsOptions,{actionType:l.Vw.Click,descriptor:l._S.OpenInStaffView})}),!x.M2.isInteractive(this.model)&&this.hasProduct(s.x.Analytics)&&t.push({title:i.T.getPhrase(this.lang,"viewUsage"),icon:c.Nj.getSvg(c.vn.NewWindow),analyticsOptions:a.k.mergeOptions(this.options.analyticsOptions,{actionType:l.Vw.Click,descriptor:l.XX.ViewResults}),href:A.k.getAnalyticsUrl(this.model,this.options.config),external:!0}),x.M2.isVideo(this.model)&&this.options.application!==_.OV.CONTENT_UPDATES){var e=x.BK.canDownloadVideo(this.model);t.push({title:i.T.getPhrase(this.lang,"download"),disabled:!e,classes:e?"":"".concat(d.disabled),tooltip:e?null:{title:i.T.getPhrase(this.lang,"cannotDownload"),placement:"left"},analyticsOptions:a.k.mergeOptions(this.options.analyticsOptions,{actionType:l.Vw.Download}),appLink:e?{application:this.options.application,action:_.eX.Shared.DOWNLOAD_VIDEO,args:[this.model.id.toString()]}:null})}return this.options.customerHasExchange&&x.BK.canAddToExchange(this.model)&&!D.g.hasLite&&t.push({title:i.T.getPhrase(this.lang,"addToExchange"),appLink:{application:this.options.application,action:_.eX.LibraryEditor.ADD_TO_EXCHANGE,args:[this.model.get("id").toString()]}}),x.M2.isVideo(this.model)&&this.options.customerHasLocalCache&&t.push({title:i.T.getPhrase(this.lang,"localCache"),appLink:{application:this.options.application,action:_.eX.Shared.DOWNLOAD_TO_LOCAL_CACHE,args:[this.model.id.toString()]},analyticsOptions:a.k.mergeOptions(this.options.analyticsOptions,{actionType:l.Vw.AddToLocalCache})}),this.options.collectionIdentifier&&t.push({title:i.T.getPhrase(this.lang,"remove"),appLink:{application:this.options.application,action:_.eX.Shared.DELETE_VIDEOS,args:[this.getFolderSourceId(),this.model.get("id").toString()],params:{routeToFolderOnDelete:this.options.routeToFolderOnDelete}},classes:"text-danger",analyticsOptions:a.k.mergeOptions(this.options.analyticsOptions,{actionType:l.Vw.Delete,descriptor:l.yh.Single,workflowPhase:l.eu.Start})}),new r.Q.FE(t)}},{key:"renderActions",value:function(){this.showChildView("actions",new C({collection:this.getActions(),showActionLabels:this.options.showActionLabels}))}},{key:"renderMoreActions",value:function(){this.moreActionsRendered||(this.moreActionsRendered=!0,this.showChildView("moreActions",new u.w({displayOptions:{alignment:"end"},channelName:this.channelName,collection:this.getMoreActions(),childOptions:{isDisabled:function(){return this.model.get("disabled")},getTooltip:function(){return this.options.model.get("tooltip")}},analyticsHelper:a.k})))}},{key:"viewOptions",value:function(){return{styles:d,moreSvg:c.Nj.getSvg(c.vn.More),showLabel:this.options.showActionLabels}}},{key:"onRender",value:function(){this.moreActionsRendered=!1,this.renderActions(),this.renderMoreActions()}}])&&I(n.prototype,p),Object.defineProperty(n,"prototype",{writable:!1}),n;var n,p}(r.Q.wA)},23130:function(t,e,n){"use strict";n.d(e,{Z:function(){return g},t:function(){return o}});var o,i=n(57857),r=n(31647),a=n(93569),l=n(58040),s=n.n(l),c={columnNames:"hkjBy",descriptionWrapper:"vGCSU",description:"lM8Hu",ellipsis:"zcKZV",showMoreEllipsis:"mUQy_",singleEllipsis:"sLOGz",showEllipsis:"Dn0yN",hideEllipsis:"Y0fDv",open:"JcPWW",truncateSmall:"FgeiQ",truncateLarge:"x5Rgi"};function u(t){return u="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},u(t)}function p(t,e){for(var n=0;n<e.length;n++){var o=e[n];o.enumerable=o.enumerable||!1,o.configurable=!0,"value"in o&&(o.writable=!0),Object.defineProperty(t,b(o.key),o)}}function f(t,e,n){return e=y(e),function(t,e){if(e&&("object"===u(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)}(t,h()?Reflect.construct(e,n||[],y(t).constructor):e.apply(t,n))}function h(){try{var t=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){})))}catch(t){}return(h=function(){return!!t})()}function y(t){return y=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(t){return t.__proto__||Object.getPrototypeOf(t)},y(t)}function d(t,e){return d=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(t,e){return t.__proto__=e,t},d(t,e)}function m(t,e,n){return(e=b(e))in t?Object.defineProperty(t,e,{value:n,enumerable:!0,configurable:!0,writable:!0}):t[e]=n,t}function b(t){var e=function(t,e){if("object"!=u(t)||!t)return t;var n=t[Symbol.toPrimitive];if(void 0!==n){var o=n.call(t,"string");if("object"!=u(o))return o;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(t)}(t);return"symbol"==u(e)?e:e+""}!function(t){t.Small="sm",t.Large="lg"}(o||(o={}));var v=m(m({},o.Small,3),o.Large,5),g=function(t){function e(t){var n;return function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,e),(n=f(this,e,[t])).showingMore=!1,n}return 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&&d(t,e)}(e,t),n=e,(r=[{key:"name",get:function(){return"VideoDescriptionComponent"}},{key:"template",get:function(){return s()}},{key:"lang",get:function(){return"shared.videoDescription"}},{key:"defaults",get:function(){return{size:"sm"}}},{key:"elements",get:function(){return{description:".description-element",ellipsis:this.options.allowExpand?".".concat(c.showMoreEllipsis):".".concat(c.singleEllipsis)}}},{key:"events",value:function(){return m({},"click .".concat(c.showMoreEllipsis),"onClickShowMore")}},{key:"onClickShowMore",value:function(t){t.preventDefault(),this.showingMore?this.showLessDescription():this.showMoreDescription()}},{key:"getDescription",value:function(){return this.options.linkify?a.m$.linkifyText(this.model.get("description")):this.options.highlighter?a.m$.wordsHighlighter(a.m$.escapeExpression(this.model.get("description")),this.model.get("_matchedWords")):void 0}},{key:"getDescriptionElements",value:function(){return{descriptionTextEl:this.getUI("description"),ellipsisEl:this.getUI("ellipsis")}}},{key:"showMoreDescription",value:function(){var t=this.getDescriptionElements(),e=t.descriptionTextEl,n=t.ellipsisEl;e.removeClass(c.truncateLarge).addClass(c.open),n.text(i.T.getPhrase(this.lang,"showLess")),this.showingMore=!0}},{key:"showLessDescription",value:function(){var t,e=this.getDescriptionElements(),n=e.descriptionTextEl,r=e.ellipsisEl;this.options.size===o.Small&&(t="truncateSmall"),this.options.size===o.Large&&(t="truncateLarge"),n.addClass(c[t]),r.text(this.options.allowExpand?"... ".concat(i.T.getPhrase(this.lang,"showMore")):"...").removeClass(c.hideEllipsis).addClass(c.showEllipsis),this.showingMore=!1}},{key:"truncateDescription",value:function(){if(this.options.truncate){var t=this.getDescriptionElements().descriptionTextEl,e=v[this.options.size];t.height()<=21*e||this.showLessDescription()}}},{key:"viewOptions",value:function(){return{styles:c,truncate:this.options.truncate,expandable:this.options.allowExpand,description:this.getDescription()}}},{key:"onAttach",value:function(){this.truncateDescription()}}])&&p(n.prototype,r),Object.defineProperty(n,"prototype",{writable:!1}),n;var n,r}(r.Q.wA)},7427:function(t,e,n){"use strict";n.d(e,{V:function(){return m}});var o=n(31647),i=n(57098),r=n(93569),a=n(25205),l=n.n(a),s={sourceLabel:"TczXY"};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 u(t,e){for(var n=0;n<e.length;n++){var o=e[n];o.enumerable=o.enumerable||!1,o.configurable=!0,"value"in o&&(o.writable=!0),Object.defineProperty(t,p(o.key),o)}}function p(t){var e=function(t,e){if("object"!=c(t)||!t)return t;var n=t[Symbol.toPrimitive];if(void 0!==n){var o=n.call(t,"string");if("object"!=c(o))return o;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(t)}(t);return"symbol"==c(e)?e:e+""}function f(t,e,n){return e=y(e),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)}(t,h()?Reflect.construct(e,n||[],y(t).constructor):e.apply(t,n))}function h(){try{var t=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){})))}catch(t){}return(h=function(){return!!t})()}function y(t){return y=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(t){return t.__proto__||Object.getPrototypeOf(t)},y(t)}function d(t,e){return d=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(t,e){return t.__proto__=e,t},d(t,e)}var m=function(t){function e(t){return function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,e),f(this,e,[t])}return 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&&d(t,e)}(e,t),n=e,(o=[{key:"name",get:function(){return"VideoSourcesMetadataComponent"}},{key:"template",get:function(){return l()}},{key:"lang",get:function(){return"shared.videoSourcesMetadata"}},{key:"defaults",get:function(){return{showFolder:!1,highlight:!1}}},{key:"appLinks",get:function(){var t;return this.options.showFolder&&(null===(t=this.folders)||void 0===t?void 0:t.length)?this.folders.reduce((function(t,e){return t[".applink-folder-".concat(e.get("id"))]={application:i.OV.LIBRARY_EDITOR,action:i.eX.LibraryEditor.FOLDER,args:[e.get("id")]},t}),{}):{}}},{key:"events",value:function(){var t,e,n,o=Object.keys(this.appLinks),i=(t={},n="onClick",(e=p(e="click .".concat(s.sourceLabel)))in t?Object.defineProperty(t,e,{value:n,enumerable:!0,configurable:!0,writable:!0}):t[e]=n,t);return o.forEach((function(t){i["click ".concat(t)]="onClick"})),i}},{key:"onClick",value:function(t){t.stopPropagation()}},{key:"getFolderLinks",value:function(){var t,e=this;if(null===(t=this.folders)||void 0===t?void 0:t.length){var n={};return this.folders.forEach((function(t){var o=e.options.highlight?r.m$.wordsHighlighter(r.m$.escapeExpression(t.get("name")),e.model.get("_matchedWords")):r.m$.escapeExpression(t.get("name"));n[t.get("id")]=o})),Object.keys(n).map((function(t){return'<a class="info-link applink-folder-'.concat(t,'">').concat(n[t],"</a>")})).join(", ")}}},{key:"getCustomLibraryFolders",value:function(){var t;if(!(null===(t=this.model)||void 0===t?void 0:t.categories)||!this.options.libraries)return[];var e=this.options.libraries.reduce((function(t,e){return t[e.id]=!0,t}),{});return this.model.categories.filter((function(t){var n,o=null===(n=t.libraries)||void 0===n?void 0:n.first().get("id");return e[o]}))}},{key:"onBeforeRender",value:function(){var t;return this.folders||(this.folders=this.getCustomLibraryFolders()),this.options.showFolder&&!!(null===(t=this.folders)||void 0===t?void 0:t.length)}},{key:"viewOptions",value:function(){return{styles:s,folderCount:this.folders.length,folders:this.options.showFolder&&this.getFolderLinks(),hideLabel:this.options.hideLabel}}}])&&u(n.prototype,o),Object.defineProperty(n,"prototype",{writable:!1}),n;var n,o}(o.Q.wA)},61356:function(t,e,n){"use strict";n.d(e,{c:function(){return P}});var o=n(48088),i=n(39479),r=n(31647),a=n(52076),l=n(70065),s=n(88483),c=n(2772),u=n(10101),p=n(89167),f=n(57098),h=n(93569),y=n(264),d=n(57e3),m=n(37339),b=n.n(m);function v(t){return v="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},v(t)}function g(t,e){for(var n=0;n<e.length;n++){var o=e[n];o.enumerable=o.enumerable||!1,o.configurable=!0,"value"in o&&(o.writable=!0),Object.defineProperty(t,w(o.key),o)}}function w(t){var e=function(t,e){if("object"!=v(t)||!t)return t;var n=t[Symbol.toPrimitive];if(void 0!==n){var o=n.call(t,"string");if("object"!=v(o))return o;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(t)}(t);return"symbol"==v(e)?e:e+""}function k(t,e,n){return e=E(e),function(t,e){if(e&&("object"===v(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)}(t,O()?Reflect.construct(e,n||[],E(t).constructor):e.apply(t,n))}function O(){try{var t=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){})))}catch(t){}return(O=function(){return!!t})()}function E(t){return E=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(t){return t.__proto__||Object.getPrototypeOf(t)},E(t)}function S(t,e){return S=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(t,e){return t.__proto__=e,t},S(t,e)}var P=function(t){function e(t){var n;return function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,e),(n=k(this,e,[t]))._viewKeyRequested=!1,n}return 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)}(e,t),n=e,(r=[{key:"initialize",value:function(){this.bindListeners()}},{key:"name",get:function(){return"VideoPreviewComponent"}},{key:"template",get:function(){return b()}},{key:"instanceChannelName",get:function(){return h.N0.generateUniqueChannelName(this)}},{key:"defaults",get:function(){return{captureAnalytics:!0}}},{key:"behaviors",get:function(){var t=this;return[{behaviorClass:u.Im,selector:".lazy-img",callback:function(){o.Radio.channel(t.instanceChannelName).trigger("show:play:icon")},minBrowserSupportVersion:f.v9}]}},{key:"regions",value:function(){return{player:{el:".video-player-region",replaceElement:!1},thumbnail:{el:".thumbnail-region",replaceElement:!0}}}},{key:"events",value:function(){return{click:"onClick"}}},{key:"bindListeners",value:function(){this.options.channelName&&this.listenTo(this.options.channelName,"update:chapter:time",this.onUpdateWebplayer)}},{key:"onUpdateWebplayer",value:function(t){return y.g.hasLite?this.playerViewKey?this.player?void this.seekToChapter(t):(this.listenToOnce(this.options.channelName,"player:loaded",i.bind(this.seekToChapter,this,t)),void this.renderVideoPreview()):(this.listenToOnce(this.options.channelName,"player:loaded",i.bind(this.seekToChapter,this,t)),void this.requestViewKey()):this.webPlayer?void this.seekToChapter(t):(this.listenToOnce(this.options.channelName,"webplayer:loaded",i.bind(this.seekToChapter,this,t)),void this.renderVideoPreview())}},{key:"seekToChapter",value:function(t){this.player?this.player.currentTime(t):this.webPlayer.seekTo(t)}},{key:"requestViewKey",value:function(){var t=this;this.playerViewKey||this._viewKeyRequested||(this._viewKeyRequested=!0,this.options.createViewKey(this.model.get("id"),(function(e){t.playerViewKey=e,t.renderVideoPreview()})))}},{key:"onClick",value:function(){this.model.get("id")&&(y.g.hasLite?this.requestViewKey():this.webPlayer||this.renderVideoPreview())}},{key:"renderThumbnail",value:function(){this.showChildView("thumbnail",new c.Z({model:this.model,thumbnailOptions:{size:s.h2.Medium},playIcon:!0,lazyload:!0,channelName:this.instanceChannelName,thumbnail:h.M2.getThumbnail(this.model),duration:h.M2.getDuration(this.model),durationNewStyle:!0}))}},{key:"renderVideoPreview",value:function(){if(this.playerViewKey)return this.player=new d.l({model:this.playerViewKey,playerApiUrl:this.options.playerApiUrl,channelName:this.options.channelName}),void this.showChildView("player",this.player);this.webPlayer=new p.Q({model:this.model,webPlayerUrl:this.options.webPlayerUrl,parentChannelName:this.options.channelName,autoplay:!0,analyticsOptions:a.k.mergeOptions(this.options.analyticsOptions,{entity:l.py.Video}),captureAnalytics:this.options.captureAnalytics,currentUser:this.options.currentUser}),this.showChildView("player",this.webPlayer)}},{key:"onRender",value:function(){this.playerViewKey?this.renderVideoPreview():this.renderThumbnail()}}])&&g(n.prototype,r),Object.defineProperty(n,"prototype",{writable:!1}),n;var n,r}(r.Q.wA)},15564:function(t,e,n){var o=n(32227);t.exports=(o.default||o).template({1:function(t,e,n,o,i){return'<span class="btn-close cursor-pointer" role="button" aria-label="Close"></span>\n'},compiler:[8,">= 4.3.0"],main:function(t,e,n,o,i){t.propertyIsEnumerable;var r,a,l=null!=e?e:t.nullContext||{},s=t.hooks.helperMissing,c="function",u=t.escapeExpression;return'<span class="clamp-1" title="'+u(typeof(a=null!=(a=n.name||(null!=e?e.name:e))?a:s)===c?a.call(l,{name:"name",hash:{},data:i}):a)+'">'+u(typeof(a=null!=(a=n.name||(null!=e?e.name:e))?a:s)===c?a.call(l,{name:"name",hash:{},data:i}):a)+"</span>\n"+(null!=(r=n.if.call(l,null!=(r=null!=e?e.options:e)?r.removable:r,{name:"if",hash:{},fn:t.program(1,i,0),inverse:t.noop,data:i}))?r:"")},useData:!0})},37106:function(t,e,n){var o=n(32227);t.exports=(o.default||o).template({1:function(t,e,n,o,i){var r;return t.propertyIsEnumerable,t.escapeExpression("function"==typeof(r=null!=(r=n.title||(null!=e?e.title:e))?r:t.hooks.helperMissing)?r.call(null!=e?e:t.nullContext||{},{name:"title",hash:{},data:i}):r)},compiler:[8,">= 4.3.0"],main:function(t,e,n,o,i){t.propertyIsEnumerable;var r,a,l=t.lambda,s=t.escapeExpression,c=null!=e?e:t.nullContext||{};return' <span class="d-inline-block align-middle '+s(l(null!=(r=null!=(r=null!=e?e.options:e)?r.styles:r)?r.svgContainer:r,e))+" "+s(l(null!=(r=null!=e?e.options:e)?r.additionalClassName:r,e))+'">'+(null!=(r="function"==typeof(a=null!=(a=n.svg||(null!=e?e.svg:e))?a:t.hooks.helperMissing)?a.call(c,{name:"svg",hash:{},data:i}):a)?r:"")+"</span>\n"+(null!=(r=n.if.call(c,null!=(r=null!=e?e.options:e)?r.showLabel:r,{name:"if",hash:{},fn:t.program(1,i,0),inverse:t.noop,data:i}))?r:"")},useData:!0})},59168:function(t,e,n){var o=n(32227);t.exports=(o.default||o).template({1:function(t,e,n,o,i){return"btn btn-outline-dark px-0 ms-2"},3:function(t,e,n,o,i){var r;return t.propertyIsEnumerable,t.escapeExpression(t.lambda(null!=(r=null!=(r=null!=e?e.options:e)?r.styles:r)?r.moreSvgContainer:r,e))},5:function(t,e,n,o,i){var r;return t.propertyIsEnumerable,t.escapeExpression(t.lambda(null!=(r=null!=(r=null!=e?e.options:e)?r.styles:r)?r.svgContainer:r,e))+" align-middle"},compiler:[8,">= 4.3.0"],main:function(t,e,n,o,i){t.propertyIsEnumerable;var r,a=null!=e?e:t.nullContext||{};return'<div class="actions-region d-inline-block"></div><span class="position-relative d-inline-block dropdown">\n <span\n data-bs-toggle="dropdown"\n aria-haspopup="true"\n aria-expanded="false"\n class="'+(null!=(r=n.if.call(a,null!=(r=null!=e?e.options:e)?r.showLabel:r,{name:"if",hash:{},fn:t.program(1,i,0),inverse:t.noop,data:i}))?r:"")+' ui-dropdown-toggle"\n >\n <span class="ui-more d-inline-block '+(null!=(r=n.if.call(a,null!=(r=null!=e?e.options:e)?r.showLabel:r,{name:"if",hash:{},fn:t.program(3,i,0),inverse:t.program(5,i,0),data:i}))?r:"")+' cursor-pointer">'+(null!=(r=t.lambda(null!=(r=null!=e?e.options:e)?r.moreSvg:r,e))?r:"")+'</span>\n </span>\n <div class="more-actions-region"></div>\n</span>\n'},useData:!0})},58040:function(t,e,n){var o=n(32227);t.exports=(o.default||o).template({1:function(t,e,n,o,i){t.propertyIsEnumerable;var r,a=t.lambda,l=t.escapeExpression;return' <div class="'+l(a(null!=(r=null!=(r=null!=e?e.options:e)?r.styles:r)?r.descriptionWrapper:r,e))+'">\n <p class="description-element '+l(a(null!=(r=null!=(r=null!=e?e.options:e)?r.styles:r)?r.description:r,e))+'">'+(null!=(r=n.if.call(null!=e?e:t.nullContext||{},null!=(r=null!=e?e.options:e)?r.expandable:r,{name:"if",hash:{},fn:t.program(2,i,0),inverse:t.program(4,i,0),data:i}))?r:"")+"</p>\n </div>\n"},2:function(t,e,n,o,i){t.propertyIsEnumerable;var r,a=t.lambda,l=t.escapeExpression;return(null!=(r=a(null!=(r=null!=e?e.options:e)?r.description:r,e))?r:"")+'<span class="'+l(a(null!=(r=null!=(r=null!=e?e.options:e)?r.styles:r)?r.showMoreEllipsis:r,e))+" "+l(a(null!=(r=null!=(r=null!=e?e.options:e)?r.styles:r)?r.hideEllipsis:r,e))+'">... '+l((n.lang||e&&e.lang||t.hooks.helperMissing).call(null!=e?e:t.nullContext||{},"showMore",{name:"lang",hash:{},data:i}))+"</span>"},4:function(t,e,n,o,i){t.propertyIsEnumerable;var r,a=t.lambda,l=t.escapeExpression;return(null!=(r=a(null!=(r=null!=e?e.options:e)?r.description:r,e))?r:"")+'<span class="'+l(a(null!=(r=null!=(r=null!=e?e.options:e)?r.styles:r)?r.singleEllipsis:r,e))+" "+l(a(null!=(r=null!=(r=null!=e?e.options:e)?r.styles:r)?r.hideEllipsis:r,e))+'">...</span>'},6:function(t,e,n,o,i){t.propertyIsEnumerable;var r,a=t.lambda;return' <p class="'+t.escapeExpression(a(null!=(r=null!=(r=null!=e?e.options:e)?r.styles:r)?r.description:r,e))+'">'+(null!=(r=a(null!=(r=null!=e?e.options:e)?r.description:r,e))?r:"")+"</p>\n"},compiler:[8,">= 4.3.0"],main:function(t,e,n,o,i){var r;return t.propertyIsEnumerable,null!=(r=n.if.call(null!=e?e:t.nullContext||{},null!=(r=null!=e?e.options:e)?r.truncate:r,{name:"if",hash:{},fn:t.program(1,i,0),inverse:t.program(6,i,0),data:i}))?r:""},useData:!0})},25205:function(t,e,n){var o=n(32227);t.exports=(o.default||o).template({1:function(t,e,n,o,i){t.propertyIsEnumerable;var r,a=t.escapeExpression;return'<span class="'+a(t.lambda(null!=(r=null!=(r=null!=e?e.options:e)?r.styles:r)?r.sourceLabel:r,e))+'">'+a((n.lang||e&&e.lang||t.hooks.helperMissing).call(null!=e?e:t.nullContext||{},"folder",{name:"lang",hash:{smartCount:null!=(r=null!=e?e.options:e)?r.folderCount:r},data:i}))+"</span>\n"},compiler:[8,">= 4.3.0"],main:function(t,e,n,o,i){var r;return t.propertyIsEnumerable,(null!=(r=n.unless.call(null!=e?e:t.nullContext||{},null!=(r=null!=e?e.options:e)?r.hideLabel:r,{name:"unless",hash:{},fn:t.program(1,i,0),inverse:t.noop,data:i}))?r:"")+(null!=(r=t.lambda(null!=(r=null!=e?e.options:e)?r.folders:r,e))?r:"")},useData:!0})},37339:function(t,e,n){var o=n(32227);t.exports=(o.default||o).template({1:function(t,e,n,o,i){return"cursor-pointer "},compiler:[8,">= 4.3.0"],main:function(t,e,n,o,i){var r;return t.propertyIsEnumerable,'<div class="video-player-region '+(null!=(r=n.if.call(null!=e?e:t.nullContext||{},null!=e?e.id:e,{name:"if",hash:{},fn:t.program(1,i,0),inverse:t.noop,data:i}))?r:"")+'">\n <div class="thumbnail-region"></div>\n</div>'},useData:!0})}}]);
1
+ (self.webpackChunk_clickview_library_editor=self.webpackChunk_clickview_library_editor||[]).push([[5707],{44391:function(t,e,n){"use strict";n.d(e,{K:function(){return P}});var o=n(11306),i=n(31647),r=n(48088),a=n(57098),l=n(26457),s=n(15564),c=n.n(s);function u(t){return u="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},u(t)}function p(t,e){for(var n=0;n<e.length;n++){var o=e[n];o.enumerable=o.enumerable||!1,o.configurable=!0,"value"in o&&(o.writable=!0),Object.defineProperty(t,f(o.key),o)}}function f(t){var e=function(t,e){if("object"!=u(t)||!t)return t;var n=t[Symbol.toPrimitive];if(void 0!==n){var o=n.call(t,"string");if("object"!=u(o))return o;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(t)}(t);return"symbol"==u(e)?e:e+""}function h(t,e,n){return e=d(e),function(t,e){if(e&&("object"===u(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)}(t,y()?Reflect.construct(e,n||[],d(t).constructor):e.apply(t,n))}function y(){try{var t=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){})))}catch(t){}return(y=function(){return!!t})()}function d(t){return d=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(t){return t.__proto__||Object.getPrototypeOf(t)},d(t)}function m(t,e){return m=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(t,e){return t.__proto__=e,t},m(t,e)}var b=function(t){function e(t){return function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,e),h(this,e,[t])}return 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&&m(t,e)}(e,t),n=e,(o=[{key:"name",get:function(){return"TagItemComponent"}},{key:"tagName",get:function(){return this.options.behavior===l.Dm.Link?"a":"span"}},{key:"className",get:function(){var t="".concat(this.options.orientation===l.zM.Vertical?"":" d-inline-flex"),e="".concat(this.isSaving()?" saving":""),n="".concat(this.options.behavior===l.Dm.Disabled?" ".concat("dE3WC"):""),o="".concat(this.options.behavior===l.Dm.Filter?" cursor-pointer":"");return"rounded-pill tag py-1 px-2 flex-shrink-0 ".concat(o).concat(t).concat(e).concat(n)}},{key:"template",get:function(){return c()}},{key:"elements",get:function(){return{close:".btn-close"}}},{key:"appLinks",get:function(){return this.options.behavior!==l.Dm.Link?{}:{"[this]":{application:a.OV.SEARCH,action:a.eX.Search.HOME,params:{tag:this.model.get("name")}}}}},{key:"defaults",get:function(){return{behavior:l.Dm.Link,orientation:l.zM.Flex}}},{key:"events",value:function(){return this.options.removeEvent?{"click @ui.close":"onRemoveTag"}:{click:"onClickTag"}}},{key:"initialize",value:function(){this.options.behavior===l.Dm.Edit&&this.listenTo(this.model,"change",this.render)}},{key:"isSaving",value:function(){if(this.options.behavior!==l.Dm.Filter){var t=this.model.pick("id","name","remove"),e=t.id,n=t.name;return!!t.remove||!e||!n}}},{key:"onRemoveTag",value:function(t){if(t.stopPropagation(),!this.isSaving())return this.model.set("remove",!0),r.Radio.channel(this.options.channelName).trigger(this.options.removeEvent,this.model),!1}},{key:"onClickTag",value:function(){this.options.behavior!==l.Dm.Filter||this.options.removeEvent||r.Radio.channel(this.options.channelName).trigger(this.options.clickEvent,this.model)}},{key:"viewOptions",value:function(){return{removable:this.options.removeEvent}}},{key:"onRender",value:function(){this.resetClassName()}}])&&p(n.prototype,o),Object.defineProperty(n,"prototype",{writable:!1}),n;var n,o}(i.Q.wA);function v(t){return v="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},v(t)}function g(t,e){for(var n=0;n<e.length;n++){var o=e[n];o.enumerable=o.enumerable||!1,o.configurable=!0,"value"in o&&(o.writable=!0),Object.defineProperty(t,w(o.key),o)}}function w(t){var e=function(t,e){if("object"!=v(t)||!t)return t;var n=t[Symbol.toPrimitive];if(void 0!==n){var o=n.call(t,"string");if("object"!=v(o))return o;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(t)}(t);return"symbol"==v(e)?e:e+""}function k(t,e,n){return e=E(e),function(t,e){if(e&&("object"===v(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)}(t,O()?Reflect.construct(e,n||[],E(t).constructor):e.apply(t,n))}function O(){try{var t=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){})))}catch(t){}return(O=function(){return!!t})()}function E(t){return E=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(t){return t.__proto__||Object.getPrototypeOf(t)},E(t)}function S(t,e){return S=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(t,e){return t.__proto__=e,t},S(t,e)}var P=function(t){function e(t){return function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,e),k(this,e,[t])}return 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)}(e,t),n=e,(r=[{key:"initialize",value:function(){this.options.behavior!==l.Dm.Edit||this.options.removeEvent||i.Q.Ry.throw(new o.H("removeEvent is required to edit tags."))}},{key:"name",get:function(){return"TagComponentCollection"}},{key:"defaults",get:function(){return{orientation:l.zM.Flex}}},{key:"className",get:function(){var t="".concat(this.options.orientation===l.zM.Vertical?"d-flex align-items-start flex-column":"d-flex flex-wrap gap-1");return"tags ".concat(t)}},{key:"childViewOptions",get:function(){return{channelName:this.options.channelName,behavior:this.options.behavior,orientation:this.options.orientation,removeEvent:this.options.removeEvent,clickEvent:this.options.clickEvent}}},{key:"childView",get:function(){return b}}])&&g(n.prototype,r),Object.defineProperty(n,"prototype",{writable:!1}),n;var n,r}(i.Q.$W)},71641:function(t,e,n){"use strict";n.d(e,{w:function(){return h}});var o=n(39479),i=n(31647),r=n(55142);function a(t){return a="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},a(t)}function l(t,e){for(var n=0;n<e.length;n++){var o=e[n];o.enumerable=o.enumerable||!1,o.configurable=!0,"value"in o&&(o.writable=!0),Object.defineProperty(t,s(o.key),o)}}function s(t){var e=function(t,e){if("object"!=a(t)||!t)return t;var n=t[Symbol.toPrimitive];if(void 0!==n){var o=n.call(t,"string");if("object"!=a(o))return o;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(t)}(t);return"symbol"==a(e)?e:e+""}function c(t,e,n){return e=p(e),function(t,e){if(e&&("object"===a(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)}(t,u()?Reflect.construct(e,n||[],p(t).constructor):e.apply(t,n))}function u(){try{var t=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){})))}catch(t){}return(u=function(){return!!t})()}function p(t){return p=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(t){return t.__proto__||Object.getPrototypeOf(t)},p(t)}function f(t,e){return f=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(t,e){return t.__proto__=e,t},f(t,e)}var h=function(t){function e(t){return function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,e),c(this,e,[t])}return 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&&f(t,e)}(e,t),n=e,i=[{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 r.N}},{key:"childViewOptions",get:function(){var t={channelName:this.options.channelName,analyticsHelper:this.options.analyticsHelper};return o.extend(t,this.options.childOptions)}},{key:"getExtraClasses",value:function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},e=t.alignment,n=void 0===e?"left":e,o=t.extraClasses,i="dropdown-menu-".concat(n);return o&&(i="".concat(i," ").concat(o)),i}},{key:"centerSelectedItem",value:function(){var t=this.$el.find(".active");if(t.length){var e=this.$el.scrollTop()+t.position().top,n=.5*this.$el.height()+.5*t.height();this.$el.scrollTop(e-n)}}}],i&&l(n.prototype,i),Object.defineProperty(n,"prototype",{writable:!1}),n;var n,i}(i.Q.$W)},66882:function(t,e,n){"use strict";n.d(e,{R:function(){return X}});var o=n(48088),i=n(57857),r=n(31647),a=n(52076),l=n(70065),s=n(84868),c=n(63791),u=n(71641),p=n(39479),f=n(56210),h=n(37106),y=n.n(h),d={actions:"VXWM3",svgContainer:"etJKo",moreSvgContainer:"kwNUa",actionName:"gbBGB",disabled:"Ykm_2",iconButton:"xqFbC"};function m(t){return m="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},m(t)}function b(t,e){(null==e||e>t.length)&&(e=t.length);for(var n=0,o=new Array(e);n<e;n++)o[n]=t[n];return o}function v(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}function g(t,e){for(var n=0;n<e.length;n++){var o=e[n];o.enumerable=o.enumerable||!1,o.configurable=!0,"value"in o&&(o.writable=!0),Object.defineProperty(t,k(o.key),o)}}function w(t,e,n){return e&&g(t.prototype,e),n&&g(t,n),Object.defineProperty(t,"prototype",{writable:!1}),t}function k(t){var e=function(t,e){if("object"!=m(t)||!t)return t;var n=t[Symbol.toPrimitive];if(void 0!==n){var o=n.call(t,"string");if("object"!=m(o))return o;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(t)}(t);return"symbol"==m(e)?e:e+""}function O(t,e,n){return e=S(e),function(t,e){if(e&&("object"===m(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)}(t,E()?Reflect.construct(e,n||[],S(t).constructor):e.apply(t,n))}function E(){try{var t=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){})))}catch(t){}return(E=function(){return!!t})()}function S(t){return S=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(t){return t.__proto__||Object.getPrototypeOf(t)},S(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&&T(t,e)}function T(t,e){return T=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(t,e){return t.__proto__=e,t},T(t,e)}var j=function(t){function e(t){return v(this,e),O(this,e,[t])}return P(e,t),w(e,[{key:"name",get:function(){return"VideoActionItemComponent"}},{key:"template",get:function(){return y()}},{key:"tagName",get:function(){return"a"}},{key:"attributes",get:function(){return this.model.get("href")?{href:this.model.get("href"),target:this.model.get("external")?"_blank":""}:{}}},{key:"className",get:function(){var t="cursor-pointer";return this.options.showLabel?t+=" ".concat(d.iconButton," btn btn-outline-dark ms-2"):t+=" d-inline-block px-1 no-decoration",this.model.get("isDisabled")&&(t+=" ".concat(d.disabled)),t}},{key:"events",value:function(){return{click:"onClick"}}},{key:"behaviors",get:function(){var t=(!this.options.showLabel||this.options.model.get("isDisabled"))&&this.options.model.get("tooltipText");if(t)return[{behaviorClass:f.H,title:t}]}},{key:"appLinks",get:function(){return!this.model.get("appLink")||this.model.get("isDisabled")?{}:{"[this]":this.model.get("appLink")}}},{key:"onClick",value:function(){this.logAction()}},{key:"logAction",value:function(){var t,e,n=this.model.get("appLink");if(p.isObject(n)){var o=(t=n.args,e=1,function(t){if(Array.isArray(t))return t}(t)||function(t,e){var n=null==t?null:"undefined"!=typeof Symbol&&t[Symbol.iterator]||t["@@iterator"];if(null!=n){var o,i,r,a,l=[],s=!0,c=!1;try{if(r=(n=n.call(t)).next,0===e){if(Object(n)!==n)return;s=!1}else for(;!(s=(o=r.call(n)).done)&&(l.push(o.value),l.length!==e);s=!0);}catch(t){c=!0,i=t}finally{try{if(!s&&null!=n.return&&(a=n.return(),Object(a)!==a))return}finally{if(c)throw i}}return l}}(t,e)||function(t,e){if(t){if("string"==typeof t)return b(t,e);var n=Object.prototype.toString.call(t).slice(8,-1);return"Object"===n&&t.constructor&&(n=t.constructor.name),"Map"===n||"Set"===n?Array.from(t):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?b(t,e):void 0}}(t,e)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}())[0];a.k.logUserAction({id:o},this.model.get("analyticsOptions"))}}},{key:"viewOptions",value:function(){return{styles:d,showLabel:this.options.showLabel,additionalClassName:this.model.get("isDisabled")?"disabled":"cursor-pointer"}}}])}(r.Q.wA),C=function(t){function e(t){return v(this,e),O(this,e,[t])}return P(e,t),w(e,[{key:"name",get:function(){return"VideoActionsComponentCollection"}},{key:"childView",get:function(){return j}},{key:"childViewOptions",get:function(){return{showLabel:this.options.showActionLabels}}}])}(r.Q.$W),_=n(57098),x=n(93569),A=n(89707),D=n(264),V=n(26457),L=n(59168),N=n.n(L);function R(t){return R="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},R(t)}function M(t,e){(null==e||e>t.length)&&(e=t.length);for(var n=0,o=new Array(e);n<e;n++)o[n]=t[n];return o}function I(t,e){for(var n=0;n<e.length;n++){var o=e[n];o.enumerable=o.enumerable||!1,o.configurable=!0,"value"in o&&(o.writable=!0),Object.defineProperty(t,B(o.key),o)}}function B(t){var e=function(t,e){if("object"!=R(t)||!t)return t;var n=t[Symbol.toPrimitive];if(void 0!==n){var o=n.call(t,"string");if("object"!=R(o))return o;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(t)}(t);return"symbol"==R(e)?e:e+""}function U(t,e,n){return e=K(e),function(t,e){if(e&&("object"===R(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)}(t,F()?Reflect.construct(e,n||[],K(t).constructor):e.apply(t,n))}function F(){try{var t=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){})))}catch(t){}return(F=function(){return!!t})()}function K(t){return K=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(t){return t.__proto__||Object.getPrototypeOf(t)},K(t)}function z(t,e){return z=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(t,e){return t.__proto__=e,t},z(t,e)}var X=function(t){function e(t){return function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,e),U(this,e,[t])}return 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&&z(t,e)}(e,t),n=e,(p=[{key:"initialize",value:function(){this.bindListeners()}},{key:"name",get:function(){return"VideoActionsComponent"}},{key:"template",get:function(){return N()}},{key:"lang",get:function(){return"shared.videoActions"}},{key:"className",get:function(){return"".concat(d.actions," ").concat(this.model.id)}},{key:"channelName",get:function(){return"".concat(this.name).concat(this.cid)}},{key:"elements",get:function(){return{dropdownToggle:".ui-dropdown-toggle",moreActions:".more-actions-region"}}},{key:"regions",value:function(){return{actions:{el:".actions-region"},moreActions:{el:"@ui.moreActions",replaceElement:!1}}}},{key:"events",value:function(){return{click:"onClick"}}},{key:"bindListeners",value:function(){this.listenTo(this.name,"hide:actions:dropdown",this.hideDropdown)}},{key:"hideDropdown",value:function(t){this.model.id!==t&&this.getUI("dropdownToggle").dropdown("hide")}},{key:"onClick",value:function(t){o.Radio.channel(this.name).trigger("hide:actions:dropdown",this.model.id),t.stopPropagation()}},{key:"onClickMore",value:function(){this.renderMoreActions(),this.getUI("dropdownToggle").dropdown("toggle")}},{key:"hasProduct",value:function(t){var e;return!!(null===(e=this.options.products)||void 0===e?void 0:e.find((function(e){return e.get("id")===t})))}},{key:"getActions",value:function(){return new r.Q.FE([].concat(function(t){if(Array.isArray(t))return M(t)}(t=x.M2.isInteractive(this.model)&&this.hasProduct(s.x.Analytics)?[{title:i.T.getPhrase(this.lang,"viewResults"),svg:c.Nj.getSvg(c.vn.Chart),tooltipText:i.T.getPhrase(this.lang,"viewResults"),analyticsOptions:a.k.mergeOptions(this.options.analyticsOptions,{actionType:l.Vw.Click,descriptor:l.XX.ViewResults}),href:A.k.getAnalyticsUrl(this.model,this.options.config),external:!0}]:[])||function(t){if("undefined"!=typeof Symbol&&null!=t[Symbol.iterator]||null!=t["@@iterator"])return Array.from(t)}(t)||function(t,e){if(t){if("string"==typeof t)return M(t,e);var n=Object.prototype.toString.call(t).slice(8,-1);return"Object"===n&&t.constructor&&(n=t.constructor.name),"Map"===n||"Set"===n?Array.from(t):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?M(t,e):void 0}}(t)||function(){throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}(),[{title:i.T.getPhrase(this.lang,"share"),svg:c.Nj.getSvg(c.vn.Share2),isDisabled:!x.BK.canShareVideo(this.options.libraries,this.options.application),tooltipText:x.BK.canShareVideo(this.options.libraries,this.options.application)?i.T.getPhrase(this.lang,"share"):x.BK.getSharePermissionsMessage(this.options.libraries,this.options.application),appLink:D.g.hasLite?{application:this.options.application,action:_.eX.Shared.SHARE,args:[this.model.get("id")],params:{entityType:x.M2.getMediaType(this.model)}}:{application:this.options.application,action:_.eX.Shared.SHARE_VIDEO,args:[this.model.get("id")]},analyticsOptions:a.k.mergeOptions(this.options.analyticsOptions,{actionType:l.Vw.Share,eventVersion:l.eq.V3})},{title:i.T.getPhrase(this.lang,"edit"),svg:x.BK.canEditVideo(this.model)?c.Nj.getSvg(c.vn.Edit):c.Nj.getSvg(c.vn.EditClickView),tooltipText:this.getEditTooltip(),appLink:x.M2.getEditAppLink(this.model),analyticsOptions:a.k.mergeOptions(this.options.analyticsOptions,{actionType:l.Vw.Edit,workflowPhase:l.eu.Start})}]));var t}},{key:"getEditTooltip",value:function(){return x.BK.canEditVideo(this.model)?i.T.getPhrase(this.lang,"edit"):x.M2.isExchangeVideo(this.model)?i.T.getPhrase(this.lang,"linkedToExchange"):i.T.getPhrase(this.lang,"linkedToCv")}},{key:"getFolderSourceId",value:function(){return this.options.collectionSource===V.x_.Folder?this.options.collectionIdentifier.id:this.model.get("categories").first().get("id")}},{key:"getMoreActions",value:function(){var t=[];if(this.options.collectionIdentifier&&t.push({title:i.T.getPhrase(this.lang,"move"),appLink:{application:this.options.application,action:_.eX.Shared.MOVE_VIDEOS,args:[this.model.get("id").toString(),this.getFolderSourceId()]},analyticsOptions:a.k.mergeOptions(this.options.analyticsOptions,{actionType:l.Vw.Move,descriptor:l.yh.Single,workflowPhase:l.eu.Start})}),t.push({title:i.T.getPhrase(this.lang,"manageAccess"),appLink:{application:this.options.application,action:_.eX.Shared.MANAGE_VIDEO_ACCESS,args:[this.model.get("id").toString(),this.model.get("typeId")]},analyticsOptions:a.k.mergeOptions(this.options.analyticsOptions,{actionType:l.Vw.SetAccess,workflowPhase:l.eu.Start})}),this.options.application===_.OV.CONTENT_UPDATES&&this.options.customerHasCustomLibrary&&t.push({title:i.T.getPhrase(this.lang,"addToLibrary"),appLink:{application:this.options.application,action:_.eX.ContentUpdates.ADD_TO_LIBRARY,args:[this.model.get("id").toString()]}}),t.push({title:i.T.getPhrase(this.lang,"openInStaffView"),href:x.M2.getProductUrl(this.model,this.options.config),external:!0,icon:c.Nj.getSvg(c.vn.NewWindow),analyticsOptions:a.k.mergeOptions(this.options.analyticsOptions,{actionType:l.Vw.Click,descriptor:l._S.OpenInStaffView})}),!x.M2.isInteractive(this.model)&&this.hasProduct(s.x.Analytics)&&t.push({title:i.T.getPhrase(this.lang,"viewUsage"),icon:c.Nj.getSvg(c.vn.NewWindow),analyticsOptions:a.k.mergeOptions(this.options.analyticsOptions,{actionType:l.Vw.Click,descriptor:l.XX.ViewResults}),href:A.k.getAnalyticsUrl(this.model,this.options.config),external:!0}),x.M2.isVideo(this.model)&&this.options.application!==_.OV.CONTENT_UPDATES){var e=x.BK.canDownloadVideo(this.model);t.push({title:i.T.getPhrase(this.lang,"download"),disabled:!e,classes:e?"":"".concat(d.disabled),tooltip:e?null:{title:i.T.getPhrase(this.lang,"cannotDownload"),placement:"left"},analyticsOptions:a.k.mergeOptions(this.options.analyticsOptions,{actionType:l.Vw.Download}),appLink:e?{application:this.options.application,action:_.eX.Shared.DOWNLOAD_VIDEO,args:[this.model.id.toString()]}:null})}return x.M2.isVideo(this.model)&&this.options.customerHasExchange&&x.BK.canAddToExchange(this.model)&&t.push({title:i.T.getPhrase(this.lang,"addToExchange"),appLink:{application:this.options.application,action:_.eX.LibraryEditor.ADD_TO_EXCHANGE,args:[this.model.get("id").toString()]}}),x.M2.isVideo(this.model)&&this.options.customerHasLocalCache&&t.push({title:i.T.getPhrase(this.lang,"localCache"),appLink:{application:this.options.application,action:_.eX.Shared.DOWNLOAD_TO_LOCAL_CACHE,args:[this.model.id.toString()]},analyticsOptions:a.k.mergeOptions(this.options.analyticsOptions,{actionType:l.Vw.AddToLocalCache})}),this.options.collectionIdentifier&&t.push({title:i.T.getPhrase(this.lang,"remove"),appLink:{application:this.options.application,action:_.eX.Shared.DELETE_VIDEOS,args:[this.getFolderSourceId(),this.model.get("id").toString()],params:{routeToFolderOnDelete:this.options.routeToFolderOnDelete}},classes:"text-danger",analyticsOptions:a.k.mergeOptions(this.options.analyticsOptions,{actionType:l.Vw.Delete,descriptor:l.yh.Single,workflowPhase:l.eu.Start})}),new r.Q.FE(t)}},{key:"renderActions",value:function(){this.showChildView("actions",new C({collection:this.getActions(),showActionLabels:this.options.showActionLabels}))}},{key:"renderMoreActions",value:function(){this.moreActionsRendered||(this.moreActionsRendered=!0,this.showChildView("moreActions",new u.w({displayOptions:{alignment:"end"},channelName:this.channelName,collection:this.getMoreActions(),childOptions:{isDisabled:function(){return this.model.get("disabled")},getTooltip:function(){return this.options.model.get("tooltip")}},analyticsHelper:a.k})))}},{key:"viewOptions",value:function(){return{styles:d,moreSvg:c.Nj.getSvg(c.vn.More),showLabel:this.options.showActionLabels}}},{key:"onRender",value:function(){this.moreActionsRendered=!1,this.renderActions(),this.renderMoreActions()}}])&&I(n.prototype,p),Object.defineProperty(n,"prototype",{writable:!1}),n;var n,p}(r.Q.wA)},23130:function(t,e,n){"use strict";n.d(e,{Z:function(){return g},t:function(){return o}});var o,i=n(57857),r=n(31647),a=n(93569),l=n(58040),s=n.n(l),c={columnNames:"hkjBy",descriptionWrapper:"vGCSU",description:"lM8Hu",ellipsis:"zcKZV",showMoreEllipsis:"mUQy_",singleEllipsis:"sLOGz",showEllipsis:"Dn0yN",hideEllipsis:"Y0fDv",open:"JcPWW",truncateSmall:"FgeiQ",truncateLarge:"x5Rgi"};function u(t){return u="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},u(t)}function p(t,e){for(var n=0;n<e.length;n++){var o=e[n];o.enumerable=o.enumerable||!1,o.configurable=!0,"value"in o&&(o.writable=!0),Object.defineProperty(t,b(o.key),o)}}function f(t,e,n){return e=y(e),function(t,e){if(e&&("object"===u(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)}(t,h()?Reflect.construct(e,n||[],y(t).constructor):e.apply(t,n))}function h(){try{var t=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){})))}catch(t){}return(h=function(){return!!t})()}function y(t){return y=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(t){return t.__proto__||Object.getPrototypeOf(t)},y(t)}function d(t,e){return d=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(t,e){return t.__proto__=e,t},d(t,e)}function m(t,e,n){return(e=b(e))in t?Object.defineProperty(t,e,{value:n,enumerable:!0,configurable:!0,writable:!0}):t[e]=n,t}function b(t){var e=function(t,e){if("object"!=u(t)||!t)return t;var n=t[Symbol.toPrimitive];if(void 0!==n){var o=n.call(t,"string");if("object"!=u(o))return o;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(t)}(t);return"symbol"==u(e)?e:e+""}!function(t){t.Small="sm",t.Large="lg"}(o||(o={}));var v=m(m({},o.Small,3),o.Large,5),g=function(t){function e(t){var n;return function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,e),(n=f(this,e,[t])).showingMore=!1,n}return 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&&d(t,e)}(e,t),n=e,(r=[{key:"name",get:function(){return"VideoDescriptionComponent"}},{key:"template",get:function(){return s()}},{key:"lang",get:function(){return"shared.videoDescription"}},{key:"defaults",get:function(){return{size:"sm"}}},{key:"elements",get:function(){return{description:".description-element",ellipsis:this.options.allowExpand?".".concat(c.showMoreEllipsis):".".concat(c.singleEllipsis)}}},{key:"events",value:function(){return m({},"click .".concat(c.showMoreEllipsis),"onClickShowMore")}},{key:"onClickShowMore",value:function(t){t.preventDefault(),this.showingMore?this.showLessDescription():this.showMoreDescription()}},{key:"getDescription",value:function(){return this.options.linkify?a.m$.linkifyText(this.model.get("description")):this.options.highlighter?a.m$.wordsHighlighter(a.m$.escapeExpression(this.model.get("description")),this.model.get("_matchedWords")):void 0}},{key:"getDescriptionElements",value:function(){return{descriptionTextEl:this.getUI("description"),ellipsisEl:this.getUI("ellipsis")}}},{key:"showMoreDescription",value:function(){var t=this.getDescriptionElements(),e=t.descriptionTextEl,n=t.ellipsisEl;e.removeClass(c.truncateLarge).addClass(c.open),n.text(i.T.getPhrase(this.lang,"showLess")),this.showingMore=!0}},{key:"showLessDescription",value:function(){var t,e=this.getDescriptionElements(),n=e.descriptionTextEl,r=e.ellipsisEl;this.options.size===o.Small&&(t="truncateSmall"),this.options.size===o.Large&&(t="truncateLarge"),n.addClass(c[t]),r.text(this.options.allowExpand?"... ".concat(i.T.getPhrase(this.lang,"showMore")):"...").removeClass(c.hideEllipsis).addClass(c.showEllipsis),this.showingMore=!1}},{key:"truncateDescription",value:function(){if(this.options.truncate){var t=this.getDescriptionElements().descriptionTextEl,e=v[this.options.size];t.height()<=21*e||this.showLessDescription()}}},{key:"viewOptions",value:function(){return{styles:c,truncate:this.options.truncate,expandable:this.options.allowExpand,description:this.getDescription()}}},{key:"onAttach",value:function(){this.truncateDescription()}}])&&p(n.prototype,r),Object.defineProperty(n,"prototype",{writable:!1}),n;var n,r}(r.Q.wA)},7427:function(t,e,n){"use strict";n.d(e,{V:function(){return m}});var o=n(31647),i=n(57098),r=n(93569),a=n(25205),l=n.n(a),s={sourceLabel:"TczXY"};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 u(t,e){for(var n=0;n<e.length;n++){var o=e[n];o.enumerable=o.enumerable||!1,o.configurable=!0,"value"in o&&(o.writable=!0),Object.defineProperty(t,p(o.key),o)}}function p(t){var e=function(t,e){if("object"!=c(t)||!t)return t;var n=t[Symbol.toPrimitive];if(void 0!==n){var o=n.call(t,"string");if("object"!=c(o))return o;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(t)}(t);return"symbol"==c(e)?e:e+""}function f(t,e,n){return e=y(e),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)}(t,h()?Reflect.construct(e,n||[],y(t).constructor):e.apply(t,n))}function h(){try{var t=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){})))}catch(t){}return(h=function(){return!!t})()}function y(t){return y=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(t){return t.__proto__||Object.getPrototypeOf(t)},y(t)}function d(t,e){return d=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(t,e){return t.__proto__=e,t},d(t,e)}var m=function(t){function e(t){return function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,e),f(this,e,[t])}return 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&&d(t,e)}(e,t),n=e,(o=[{key:"name",get:function(){return"VideoSourcesMetadataComponent"}},{key:"template",get:function(){return l()}},{key:"lang",get:function(){return"shared.videoSourcesMetadata"}},{key:"defaults",get:function(){return{showFolder:!1,highlight:!1}}},{key:"appLinks",get:function(){var t;return this.options.showFolder&&(null===(t=this.folders)||void 0===t?void 0:t.length)?this.folders.reduce((function(t,e){return t[".applink-folder-".concat(e.get("id"))]={application:i.OV.LIBRARY_EDITOR,action:i.eX.LibraryEditor.FOLDER,args:[e.get("id")]},t}),{}):{}}},{key:"events",value:function(){var t,e,n,o=Object.keys(this.appLinks),i=(t={},n="onClick",(e=p(e="click .".concat(s.sourceLabel)))in t?Object.defineProperty(t,e,{value:n,enumerable:!0,configurable:!0,writable:!0}):t[e]=n,t);return o.forEach((function(t){i["click ".concat(t)]="onClick"})),i}},{key:"onClick",value:function(t){t.stopPropagation()}},{key:"getFolderLinks",value:function(){var t,e=this;if(null===(t=this.folders)||void 0===t?void 0:t.length){var n={};return this.folders.forEach((function(t){var o=e.options.highlight?r.m$.wordsHighlighter(r.m$.escapeExpression(t.get("name")),e.model.get("_matchedWords")):r.m$.escapeExpression(t.get("name"));n[t.get("id")]=o})),Object.keys(n).map((function(t){return'<a class="info-link applink-folder-'.concat(t,'">').concat(n[t],"</a>")})).join(", ")}}},{key:"getCustomLibraryFolders",value:function(){var t;if(!(null===(t=this.model)||void 0===t?void 0:t.categories)||!this.options.libraries)return[];var e=this.options.libraries.reduce((function(t,e){return t[e.id]=!0,t}),{});return this.model.categories.filter((function(t){var n,o=null===(n=t.libraries)||void 0===n?void 0:n.first().get("id");return e[o]}))}},{key:"onBeforeRender",value:function(){var t;return this.folders||(this.folders=this.getCustomLibraryFolders()),this.options.showFolder&&!!(null===(t=this.folders)||void 0===t?void 0:t.length)}},{key:"viewOptions",value:function(){return{styles:s,folderCount:this.folders.length,folders:this.options.showFolder&&this.getFolderLinks(),hideLabel:this.options.hideLabel}}}])&&u(n.prototype,o),Object.defineProperty(n,"prototype",{writable:!1}),n;var n,o}(o.Q.wA)},61356:function(t,e,n){"use strict";n.d(e,{c:function(){return P}});var o=n(48088),i=n(39479),r=n(31647),a=n(52076),l=n(70065),s=n(88483),c=n(2772),u=n(10101),p=n(89167),f=n(57098),h=n(93569),y=n(264),d=n(57e3),m=n(37339),b=n.n(m);function v(t){return v="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},v(t)}function g(t,e){for(var n=0;n<e.length;n++){var o=e[n];o.enumerable=o.enumerable||!1,o.configurable=!0,"value"in o&&(o.writable=!0),Object.defineProperty(t,w(o.key),o)}}function w(t){var e=function(t,e){if("object"!=v(t)||!t)return t;var n=t[Symbol.toPrimitive];if(void 0!==n){var o=n.call(t,"string");if("object"!=v(o))return o;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(t)}(t);return"symbol"==v(e)?e:e+""}function k(t,e,n){return e=E(e),function(t,e){if(e&&("object"===v(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)}(t,O()?Reflect.construct(e,n||[],E(t).constructor):e.apply(t,n))}function O(){try{var t=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){})))}catch(t){}return(O=function(){return!!t})()}function E(t){return E=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(t){return t.__proto__||Object.getPrototypeOf(t)},E(t)}function S(t,e){return S=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(t,e){return t.__proto__=e,t},S(t,e)}var P=function(t){function e(t){var n;return function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,e),(n=k(this,e,[t]))._viewKeyRequested=!1,n}return 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)}(e,t),n=e,(r=[{key:"initialize",value:function(){this.bindListeners()}},{key:"name",get:function(){return"VideoPreviewComponent"}},{key:"template",get:function(){return b()}},{key:"instanceChannelName",get:function(){return h.N0.generateUniqueChannelName(this)}},{key:"defaults",get:function(){return{captureAnalytics:!0}}},{key:"behaviors",get:function(){var t=this;return[{behaviorClass:u.Im,selector:".lazy-img",callback:function(){o.Radio.channel(t.instanceChannelName).trigger("show:play:icon")},minBrowserSupportVersion:f.v9}]}},{key:"regions",value:function(){return{player:{el:".video-player-region",replaceElement:!1},thumbnail:{el:".thumbnail-region",replaceElement:!0}}}},{key:"events",value:function(){return{click:"onClick"}}},{key:"bindListeners",value:function(){this.options.channelName&&this.listenTo(this.options.channelName,"update:chapter:time",this.onUpdateWebplayer)}},{key:"onUpdateWebplayer",value:function(t){return y.g.hasLite?this.playerViewKey?this.player?void this.seekToChapter(t):(this.listenToOnce(this.options.channelName,"player:loaded",i.bind(this.seekToChapter,this,t)),void this.renderVideoPreview()):(this.listenToOnce(this.options.channelName,"player:loaded",i.bind(this.seekToChapter,this,t)),void this.requestViewKey()):this.webPlayer?void this.seekToChapter(t):(this.listenToOnce(this.options.channelName,"webplayer:loaded",i.bind(this.seekToChapter,this,t)),void this.renderVideoPreview())}},{key:"seekToChapter",value:function(t){this.player?this.player.currentTime(t):this.webPlayer.seekTo(t)}},{key:"requestViewKey",value:function(){var t=this;this.playerViewKey||this._viewKeyRequested||(this._viewKeyRequested=!0,this.options.createViewKey(this.model.get("id"),(function(e){t.playerViewKey=e,t.renderVideoPreview()})))}},{key:"onClick",value:function(){this.model.get("id")&&(y.g.hasLite?this.requestViewKey():this.webPlayer||this.renderVideoPreview())}},{key:"renderThumbnail",value:function(){this.showChildView("thumbnail",new c.Z({model:this.model,thumbnailOptions:{size:s.h2.Medium},playIcon:!0,lazyload:!0,channelName:this.instanceChannelName,thumbnail:h.M2.getThumbnail(this.model),duration:h.M2.getDuration(this.model),durationNewStyle:!0}))}},{key:"renderVideoPreview",value:function(){if(this.playerViewKey)return this.player=new d.l({model:this.playerViewKey,playerApiUrl:this.options.playerApiUrl,channelName:this.options.channelName}),void this.showChildView("player",this.player);this.webPlayer=new p.Q({model:this.model,webPlayerUrl:this.options.webPlayerUrl,parentChannelName:this.options.channelName,autoplay:!0,analyticsOptions:a.k.mergeOptions(this.options.analyticsOptions,{entity:l.py.Video}),captureAnalytics:this.options.captureAnalytics,currentUser:this.options.currentUser}),this.showChildView("player",this.webPlayer)}},{key:"onRender",value:function(){this.playerViewKey?this.renderVideoPreview():this.renderThumbnail()}}])&&g(n.prototype,r),Object.defineProperty(n,"prototype",{writable:!1}),n;var n,r}(r.Q.wA)},15564:function(t,e,n){var o=n(32227);t.exports=(o.default||o).template({1:function(t,e,n,o,i){return'<span class="btn-close cursor-pointer" role="button" aria-label="Close"></span>\n'},compiler:[8,">= 4.3.0"],main:function(t,e,n,o,i){t.propertyIsEnumerable;var r,a,l=null!=e?e:t.nullContext||{},s=t.hooks.helperMissing,c="function",u=t.escapeExpression;return'<span class="clamp-1" title="'+u(typeof(a=null!=(a=n.name||(null!=e?e.name:e))?a:s)===c?a.call(l,{name:"name",hash:{},data:i}):a)+'">'+u(typeof(a=null!=(a=n.name||(null!=e?e.name:e))?a:s)===c?a.call(l,{name:"name",hash:{},data:i}):a)+"</span>\n"+(null!=(r=n.if.call(l,null!=(r=null!=e?e.options:e)?r.removable:r,{name:"if",hash:{},fn:t.program(1,i,0),inverse:t.noop,data:i}))?r:"")},useData:!0})},37106:function(t,e,n){var o=n(32227);t.exports=(o.default||o).template({1:function(t,e,n,o,i){var r;return t.propertyIsEnumerable,t.escapeExpression("function"==typeof(r=null!=(r=n.title||(null!=e?e.title:e))?r:t.hooks.helperMissing)?r.call(null!=e?e:t.nullContext||{},{name:"title",hash:{},data:i}):r)},compiler:[8,">= 4.3.0"],main:function(t,e,n,o,i){t.propertyIsEnumerable;var r,a,l=t.lambda,s=t.escapeExpression,c=null!=e?e:t.nullContext||{};return' <span class="d-inline-block align-middle '+s(l(null!=(r=null!=(r=null!=e?e.options:e)?r.styles:r)?r.svgContainer:r,e))+" "+s(l(null!=(r=null!=e?e.options:e)?r.additionalClassName:r,e))+'">'+(null!=(r="function"==typeof(a=null!=(a=n.svg||(null!=e?e.svg:e))?a:t.hooks.helperMissing)?a.call(c,{name:"svg",hash:{},data:i}):a)?r:"")+"</span>\n"+(null!=(r=n.if.call(c,null!=(r=null!=e?e.options:e)?r.showLabel:r,{name:"if",hash:{},fn:t.program(1,i,0),inverse:t.noop,data:i}))?r:"")},useData:!0})},59168:function(t,e,n){var o=n(32227);t.exports=(o.default||o).template({1:function(t,e,n,o,i){return"btn btn-outline-dark px-0 ms-2"},3:function(t,e,n,o,i){var r;return t.propertyIsEnumerable,t.escapeExpression(t.lambda(null!=(r=null!=(r=null!=e?e.options:e)?r.styles:r)?r.moreSvgContainer:r,e))},5:function(t,e,n,o,i){var r;return t.propertyIsEnumerable,t.escapeExpression(t.lambda(null!=(r=null!=(r=null!=e?e.options:e)?r.styles:r)?r.svgContainer:r,e))+" align-middle"},compiler:[8,">= 4.3.0"],main:function(t,e,n,o,i){t.propertyIsEnumerable;var r,a=null!=e?e:t.nullContext||{};return'<div class="actions-region d-inline-block"></div><span class="position-relative d-inline-block dropdown">\n <span\n data-bs-toggle="dropdown"\n aria-haspopup="true"\n aria-expanded="false"\n class="'+(null!=(r=n.if.call(a,null!=(r=null!=e?e.options:e)?r.showLabel:r,{name:"if",hash:{},fn:t.program(1,i,0),inverse:t.noop,data:i}))?r:"")+' ui-dropdown-toggle"\n >\n <span class="ui-more d-inline-block '+(null!=(r=n.if.call(a,null!=(r=null!=e?e.options:e)?r.showLabel:r,{name:"if",hash:{},fn:t.program(3,i,0),inverse:t.program(5,i,0),data:i}))?r:"")+' cursor-pointer">'+(null!=(r=t.lambda(null!=(r=null!=e?e.options:e)?r.moreSvg:r,e))?r:"")+'</span>\n </span>\n <div class="more-actions-region"></div>\n</span>\n'},useData:!0})},58040:function(t,e,n){var o=n(32227);t.exports=(o.default||o).template({1:function(t,e,n,o,i){t.propertyIsEnumerable;var r,a=t.lambda,l=t.escapeExpression;return' <div class="'+l(a(null!=(r=null!=(r=null!=e?e.options:e)?r.styles:r)?r.descriptionWrapper:r,e))+'">\n <p class="description-element '+l(a(null!=(r=null!=(r=null!=e?e.options:e)?r.styles:r)?r.description:r,e))+'">'+(null!=(r=n.if.call(null!=e?e:t.nullContext||{},null!=(r=null!=e?e.options:e)?r.expandable:r,{name:"if",hash:{},fn:t.program(2,i,0),inverse:t.program(4,i,0),data:i}))?r:"")+"</p>\n </div>\n"},2:function(t,e,n,o,i){t.propertyIsEnumerable;var r,a=t.lambda,l=t.escapeExpression;return(null!=(r=a(null!=(r=null!=e?e.options:e)?r.description:r,e))?r:"")+'<span class="'+l(a(null!=(r=null!=(r=null!=e?e.options:e)?r.styles:r)?r.showMoreEllipsis:r,e))+" "+l(a(null!=(r=null!=(r=null!=e?e.options:e)?r.styles:r)?r.hideEllipsis:r,e))+'">... '+l((n.lang||e&&e.lang||t.hooks.helperMissing).call(null!=e?e:t.nullContext||{},"showMore",{name:"lang",hash:{},data:i}))+"</span>"},4:function(t,e,n,o,i){t.propertyIsEnumerable;var r,a=t.lambda,l=t.escapeExpression;return(null!=(r=a(null!=(r=null!=e?e.options:e)?r.description:r,e))?r:"")+'<span class="'+l(a(null!=(r=null!=(r=null!=e?e.options:e)?r.styles:r)?r.singleEllipsis:r,e))+" "+l(a(null!=(r=null!=(r=null!=e?e.options:e)?r.styles:r)?r.hideEllipsis:r,e))+'">...</span>'},6:function(t,e,n,o,i){t.propertyIsEnumerable;var r,a=t.lambda;return' <p class="'+t.escapeExpression(a(null!=(r=null!=(r=null!=e?e.options:e)?r.styles:r)?r.description:r,e))+'">'+(null!=(r=a(null!=(r=null!=e?e.options:e)?r.description:r,e))?r:"")+"</p>\n"},compiler:[8,">= 4.3.0"],main:function(t,e,n,o,i){var r;return t.propertyIsEnumerable,null!=(r=n.if.call(null!=e?e:t.nullContext||{},null!=(r=null!=e?e.options:e)?r.truncate:r,{name:"if",hash:{},fn:t.program(1,i,0),inverse:t.program(6,i,0),data:i}))?r:""},useData:!0})},25205:function(t,e,n){var o=n(32227);t.exports=(o.default||o).template({1:function(t,e,n,o,i){t.propertyIsEnumerable;var r,a=t.escapeExpression;return'<span class="'+a(t.lambda(null!=(r=null!=(r=null!=e?e.options:e)?r.styles:r)?r.sourceLabel:r,e))+'">'+a((n.lang||e&&e.lang||t.hooks.helperMissing).call(null!=e?e:t.nullContext||{},"folder",{name:"lang",hash:{smartCount:null!=(r=null!=e?e.options:e)?r.folderCount:r},data:i}))+"</span>\n"},compiler:[8,">= 4.3.0"],main:function(t,e,n,o,i){var r;return t.propertyIsEnumerable,(null!=(r=n.unless.call(null!=e?e:t.nullContext||{},null!=(r=null!=e?e.options:e)?r.hideLabel:r,{name:"unless",hash:{},fn:t.program(1,i,0),inverse:t.noop,data:i}))?r:"")+(null!=(r=t.lambda(null!=(r=null!=e?e.options:e)?r.folders:r,e))?r:"")},useData:!0})},37339:function(t,e,n){var o=n(32227);t.exports=(o.default||o).template({1:function(t,e,n,o,i){return"cursor-pointer "},compiler:[8,">= 4.3.0"],main:function(t,e,n,o,i){var r;return t.propertyIsEnumerable,'<div class="video-player-region '+(null!=(r=n.if.call(null!=e?e:t.nullContext||{},null!=e?e.id:e,{name:"if",hash:{},fn:t.program(1,i,0),inverse:t.noop,data:i}))?r:"")+'">\n <div class="thumbnail-region"></div>\n</div>'},useData:!0})}}]);
@@ -0,0 +1 @@
1
+ "use strict";(self.webpackChunk_clickview_library_editor=self.webpackChunk_clickview_library_editor||[]).push([[6427],{54096:function(e,t,i){i.d(t,{G:function(){return o}});var n=i(1024),r=i(21679);function o(e){var t,i;return t=e,i=r.u.getInstance(t),n.useEffect((function(){return function(){r.u.releaseInstance(t)}})),i}},38182:function(e,t,i){i.d(t,{q:function(){return s}});var n=i(1024),r=i.n(n),o=i(68003),a=i(88483),c=i(87013),u={avatar:"Gvwzj",dot:"JJHBJ"};function s(e){var t,i,n=e.imageUrl||(t=e.imageCdnUrl,(i=e.initials)?c.j.createUrl(o._.safeUrlConcat(t,"/v1/profile-images?initials=".concat(i)),{size:a.h2.Small}):"");return r().createElement("div",{className:"position-relative h-100 w-100"},r().createElement("div",{className:"".concat(u.avatar," ").concat((null==e?void 0:e.extraClasses)||""),style:{backgroundImage:"url('".concat(n,"')")}}," "),e.showDot&&r().createElement("div",{className:"".concat(u.dot," rounded-circle bg-danger")}))}},90547:function(e,t,i){var n;i.d(t,{r:function(){return n}}),function(e){e.XS="(max-width: 575px)",e.SM="(min-width: 576px) and (max-width: 767px)",e.MD="(min-width: 768px) and (max-width: 991px)",e.LG="(min-width: 992px)",e.XL="(min-width: 1200px)",e.XXL="(min-width: 1440px)",e.SMDown="(max-width: 576px)",e.MDDown="(max-width: 768px)",e.LGDown="(max-width: 992px)",e.XLDown="(max-width: 1200px)"}(n||(n={}))},34254:function(e,t,i){var n;i.d(t,{r:function(){return n}}),function(e){e[e.FilterOut=0]="FilterOut",e[e.StripMetadata=1]="StripMetadata"}(n||(n={}))},87648:function(e,t,i){var n;i.d(t,{c:function(){return n}}),function(e){e.Custom="custom",e.User="year_group"}(n||(n={}))},90335:function(e,t,i){var n;i.d(t,{D:function(){return n}}),function(e){e.Newest="newest",e.Oldest="oldest",e.RecentlyAdded="recently_added",e.AtoZ="atoz",e.ZtoA="ztoa",e.Series="series"}(n||(n={}))},332:function(e,t,i){i.d(t,{e:function(){return c}});var n=i(2248),r=i(68003),o=i(84657),a=i(34254),c={clip:function(e,t){return{key:"clip:".concat(e,":").concat(t),url:r._.urlBuilder("{gateway}/v1/objects/".concat(e),{query:o.v.CLIP,permissionFilterOption:t})}},videoClips:function(e,t){return{key:"video:".concat(e,":clips:").concat(t),url:r._.urlBuilder("{gateway}/v1/objects/".concat(e,"/clips"),{query:o.v.CLIP_COLLECTION,permissionFilterOption:t}),formatData:function(e){return e.data}}},clipWithAllInteractives:function(e,t){return{key:"clip:".concat(e,":").concat(t,":interactives"),url:r._.urlBuilder("{gateway}/v1/objects/".concat(e),{query:"".concat(o.v.CLIP,",interactives{status:[0,1]}"),permissionFilterOption:t}),normalize:!1}},publicClip:function(e,t,i,n){return{key:"clip:".concat(e,":public:").concat(t),url:r._.urlBuilder("/api/objects/".concat(e),{query:"_parentVideo,_canBeConsumed,_thumbnail",permissionFilterOption:a.r.StripMetadata,shareId:t}),bootstrapName:"shared:object:".concat(e),success:i,error:n}},sharedClip:function(e,t,i,n){return{key:"shared:clip:".concat(e),url:r._.urlBuilder("/api/objects/".concat(e),{shareId:t,query:o.v.CLIP}),success:i,error:n}},createClip:function(e,t,i,r,o){return{key:"create:clip",url:"{gateway}/v1/objects/".concat(e,"/clips"),data:t,type:n.k.POST,invalidationKeys:["videos:".concat(e),"my:videos"],success:i,error:r,always:o}},updateClip:function(e,t,i,r,o){return{key:"update:clip",url:"{gateway}/v1/objects/".concat(e),data:t,type:n.k.PUT,success:i,error:r,always:o}},deleteClip:function(e,t,i,r,o){return{key:"delete:clip",url:"{gateway}/v1/objects/".concat(e),type:n.k.DELETE,invalidationKeys:["videos:".concat(t),"my:videos","videos"],success:i,error:r,always:o}}}},91432:function(e,t,i){i.d(t,{b:function(){return c}});var n=i(2248),r=i(68003),o=i(84657),a=i(34254),c={interactiveMetadata:function(e,t){return{url:r._.urlBuilder("{gateway}/v1/objects/".concat(e),{query:o.v.INTERACTIVE,permissionFilterOption:t}),key:"interactive:metadata:".concat(e,":").concat(t)}},videoInteractives:function(e,t){return{key:"video:".concat(e,":interactives:").concat(t),url:r._.urlBuilder("{gateway}/v1/objects/".concat(e,"/interactives"),{query:o.v.INTERACTIVE_COLLECTION}),formatData:function(e){return e.data}}},sharedInteractiveMetadata:function(e,t,i,n){return{url:r._.urlBuilder("/api/objects/".concat(e),{shareId:t,query:o.v.INTERACTIVE}),key:"shared:interactive:metadata:".concat(e),success:i,error:n}},publicInteractiveMetadata:function(e,t,i,n){return{url:r._.urlBuilder("/api/objects/".concat(e),{query:"_parentVideo[rating],_canBeConsumed,_thumbnail",permissionFilterOption:a.r.StripMetadata,shareId:t}),key:"interactive:metadata:".concat(e,":public:").concat(t),bootstrapName:"shared:object:".concat(e),success:i,error:n}},interactive:function(e){return{url:"/api/domain/v1/interactives/".concat(e),key:"interactive:".concat(e)}},createInteractive:function(e,t,i){return{url:"/api/domain/v1/interactives",key:"create:interactive",type:n.k.POST,invalidationKeys:["my:videos"],data:e,success:t,error:i}},createInteractiveMetadata:function(e,t,i,r){return{url:"{gateway}/v1/objects/".concat(e,"/interactives"),key:"create:interactive:metadata",type:n.k.POST,data:t,success:i,error:r}},updateInteractive:function(e,t,i,r){return{url:"/api/domain/v1/interactives/".concat(e),key:"update:interactive",type:n.k.PUT,data:t,success:i,error:r,formatData:function(){return t}}},updateInteractiveMetadata:function(e,t,i,r){return{url:"{gateway}/v1/objects/".concat(e),key:"update:interactive:metadata",type:n.k.PUT,data:t,success:i,error:r}},interactiveResultSet:function(e,t){return{url:"/api/domain/v1/analytics/interactives/".concat(e,"/metadata/").concat(t),key:"interactive:result:set:".concat(e,":").concat(t)}},copyInteractive:function(e,t,i){return{url:"/api/domain/v1/interactives/".concat(e,"/copy"),key:"copy:interactive",type:n.k.POST,invalidationKeys:["interactive:".concat(e),"my:videos"],success:t,error:i}},deleteInteractiveMetadata:function(e,t,i){return{url:"{gateway}/v1/objects/".concat(e),key:"delete:interactive",type:n.k.DELETE,invalidationKeys:["interactive:".concat(e),"my:videos","videos"],success:t,error:i}},removeInteractiveMetadata:function(e){var t=e.libraryId,i=e.categoryId,o=e.interactiveMetadataId;return{url:r._.urlBuilder("/api/domain/v1/libraries/".concat(t,"/videos"),{categoryId:i,videoIds:o}),key:"remove:interactive:metadata:".concat(o),type:n.k.DELETE,invalidationKeys:["interactive:".concat(o),"my:videos","videos"]}},contributeToCommunity:function(e){return{url:"/api/domain/v2/interactives/".concat(e,"/contribute"),key:"contribute:interactive",type:n.k.POST}},revokefromCommunity:function(e){return{url:"/api/domain/v2/interactives/".concat(e,"/contribute"),key:"contribute:interactive",type:n.k.DELETE}},isContributed:function(e){return{url:"/api/domain/v2/interactives/".concat(e,"/contributed"),key:"iscontributed:".concat(e),normalize:!1}}}},77131:function(e,t,i){i.d(t,{R:function(){return f}});var n,r=i(2248),o=i(68003),a=i(84657),c=i(50028),u=i(74421),s=i(34254);!function(e){e.Series="series",e.Playlist="playlist",e.Widget="widget"}(n||(n={}));var d=i(15970),l=function(e,t){return o._.urlBuilder("/api/objects/".concat(e),{shareId:t,query:a.v.VIDEO})},v=function(e,t){return o._.urlBuilder("/api/objects/".concat(e),{query:"thumbnail,_canBeConsumed,series,season,rating,libraries{typeId:[17]}",permissionFilterOption:s.r.StripMetadata,shareId:t})},p=function(e){return o._.urlBuilder("{gateway}/v1/objects",{"query.video":a.v.VIDEO_COLLECTION,"query.clip":a.v.CLIP_COLLECTION,"query.interactive":a.v.INTERACTIVE_COLLECTION,id:e})},y=function(e){var t=e.videoId,i=e.context,r=e.collectionId,c=e.moviesAndTv,u={videoId:t,limit:e.limit,query:a.v.VIDEO_COLLECTION};return i&&(i===n.Widget?u["context.widgetId"]=r:(u["context.collectionType"]=i,u["context.collectionId"]=r)),c&&(u["context.moviesAndTv"]=!0),o._.urlBuilder("{gateway}/v1/suggestions/related-videos",u)},f={video:function(e,t){return{url:o._.urlBuilder("{gateway}/v1/objects/".concat(e),{query:a.v.VIDEO,permissionFilterOption:t}),publicUrl:o._.urlBuilder("/api/objects/".concat(e),{query:a.t.VIDEO,permissionFilterOption:t}),key:"videos:".concat(e,":").concat(t)}},publicVideo:function(e,t,i,n){return{url:v(e,t),key:"videos:".concat(e,":public:").concat(t),bootstrapName:"shared:object:".concat(e),success:i,error:n}},sharedVideo:function(e,t,i,n){return{url:l(e,t),key:"shared:video:".concat(e),success:i,error:n}},myVideos:function(e,t){var i=a.v.VIDEO_COLLECTION,n=a.v.CLIP_COLLECTION,r=a.v.INTERACTIVE,d="videos[".concat(i,"]{libraries.typeid:").concat(u.E.WorkspaceCollection,"}"),l="clips[".concat(n,"]"),v="interactives[".concat(r,"]{status:[").concat(c.X.Published,",").concat(c.X.Draft,"]}"),p={query:"(".concat(d,"|").concat(l,"|").concat(v,"){orderbydesc:id}"),permissionFilterOption:s.r.StripMetadata};return t&&(p.cursor=t),{url:o._.urlBuilder("{gateway}/v1/objects/".concat(e,"/members"),p),key:"my:videos:".concat(t)}},videos:function(e,t){return{url:p(e),key:"videos:by:id:".concat(e.join(",")),success:t}},watchHistoryVideos:function(e,t){return{url:p(e),key:"watch:history:videos:by:id:".concat(e.join(",")),success:t}},updateVideo:function(e,t,i,n,o){return{key:"update:video:".concat(e),url:"{gateway}/v1/objects/".concat(e),type:r.k.PUT,data:t,success:i,error:n,always:o}},videoRatings:function(e,t){var i=e.map((function(e){return"id=".concat(e)}));if(i.length)return{url:"/api/domain/v2/objects?query=rating&".concat(i.join("&")),key:"video:ratings:by:id:".concat(e.join(",")),normalizeOptions:{namespace:t}}},videoMixinAssocs:function(e,t){if(e.map((function(e){return"id=".concat(e)})).length)return{url:o._.urlBuilder("{gateway}/v1/objects",{query:"interactives{limit:100},resources{limit:100},links{limit:100}",id:e}),key:"video:mixin:assocs:".concat(e.join(",")),normalizeOptions:{namespace:t}}},getRestrictions:function(e){var t=e.slice().sort();return{url:"/api/domain/v1/restrictedobjects"+"?objectTypeId=".concat(u.E.Video).concat(t.map((function(e){return"&objectId=".concat(e)})).join("")),key:"restrictions:".concat(t.join(",")),normalizeOptions:{namespace:"domain",idAttribute:"objectId"}}},delete:function(e,t,i){return{url:"{gateway}/v1/objects/".concat(e),key:"delete:video:".concat(e),type:r.k.DELETE,success:t,error:i,invalidationKeys:["videos","search"]}},deleteBulk:function(e,t,i,n,o){var a=e.map((function(e){return"videoIds=".concat(e)})).join("&"),c=["categoryId=".concat(i),"".concat(a)].join("&");return{url:"/api/domain/v1/libraries/".concat(t,"/videos?").concat(c),key:"delete:bulk:video:".concat(e.join(":"),":").concat(t,":").concat(i),type:r.k.DELETE,success:n,error:o,invalidationKeys:["videos","search"]}},relatedVideos:function(e){var t=e.videoId,i=e.context,n=e.collectionId,r=e.moviesAndTv;return{url:y(e),key:"related:videos:".concat(t,":").concat(i,":").concat(n,":").concat(r)}},collectionVideos:function(e,t,i,n,r,u){var l=d.d.getVideoSortParam(t),v=a.v.VIDEO_COLLECTION,p=a.v.CLIP_COLLECTION,y=a.v.INTERACTIVE,f="videos[".concat(v,"]"),m="clips[".concat(p,"]"),g="interactives[".concat(y,"]{status:[").concat(c.X.Published,",").concat(c.X.Draft,"]}"),b=Object.assign({query:"(".concat(f,"|").concat(m,"|").concat(g,")").concat(l?"{".concat(l,"}"):""),permissionFilterOption:s.r.FilterOut},i?{cursor:i}:{}),C=["folder","videos",e,i,t].filter((function(e){return!!e})).join(":");return{url:o._.urlBuilder("{gateway}/v1/objects/".concat(e,"/members"),b),key:C,success:n,error:r,always:u}},pointsOfInterest:function(e,t,i,n,r){var a={query:"{limit:100}",cursor:t};return{url:o._.urlBuilder("{gateway}/v1/objects/".concat(e,"/pointsofinterest"),a),publicUrl:o._.urlBuilder("/api/objects/".concat(e,"/pointsofinterest"),a),key:"pointsofinterest:".concat(e).concat(t?":".concat(t):""),success:i,error:n,always:r}},regionAlternatives:function(e,t,i,n){return{url:"/api/objects/videos/".concat(e,"/region-alternatives"),publicUrl:"/api/objects/videos/".concat(e,"/region-alternatives"),key:"video:regionAlternatives:".concat(e),normalize:!1,success:t,error:i,always:n}}}},2491:function(e,t,i){i.d(t,{Z:function(){return a}});var n=i(92159),r=i(21186),o=i(54096);function a(){var e=(0,o.G)(n.P.ALERT);return{success:function(t){e.success(t)()},error:function(t){e.error(t)()},warning:function(t){e.createAlert({type:r.NK.Warning,heading:r.R6.Warning,message:t})}}}},38e3:function(e,t,i){i.d(t,{G:function(){return r}});var n=i(74421),r={isType:function(e,t){return(null==e?void 0:e.typeId)===t},isResource:function(e){return r.isType(e,n.E.Resource)}}},45428:function(e,t,i){i.d(t,{l:function(){return f}});var n=i(57857),r=i(56285),o=i(7121),a=i(87648),c=i(63791);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 s(e,t,i){var n;return n=function(e,t){if("object"!=u(e)||!e)return e;var i=e[Symbol.toPrimitive];if(void 0!==i){var n=i.call(e,"string");if("object"!=u(n))return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}(t),(t="symbol"==u(n)?n:n+"")in e?Object.defineProperty(e,t,{value:i,enumerable:!0,configurable:!0,writable:!0}):e[t]=i,e}var d=n.T.encloseNamespace("shared.shared-utils"),l=s(s({},a.c.Custom,o.Z.restrictionBadgeCustom),a.c.User,o.Z.restrictionBadgeUser),v=s(s({},a.c.Custom,c.vn.Timer),a.c.User,c.vn.Lock),p=s(s({},a.c.Custom,"restrictionCustom"),a.c.User,"restrictionYearGroup"),y=s(s({},a.c.Custom,200),a.c.User,100),f={mapRestrictionToClass:function(e){var t;if(!(null===(t=null==e?void 0:e.value)||void 0===t?void 0:t.length))return"";var i=f.getWeightedRestriction(e.value);return l[i.type]},mapRestrictionToSvg:function(e){var t;if(!(null===(t=null==e?void 0:e.value)||void 0===t?void 0:t.length))return c.vn.Lock;var i=f.getWeightedRestriction(e.value);return v[i.type]},mapRestrictionToText:function(e,t){var i;if(!(null===(i=null==e?void 0:e.value)||void 0===i?void 0:i.length)||!(null==t?void 0:t.length))return"";var n=f.getWeightedRestriction(e.value),r=t.find((function(e){return e.value===n.yearGroup})),o=p[n.type];if(n.type===a.c.User)return null===n.yearGroup?d("restrictionStaff"):r?d(o,{yearGroup:r.name}):"";if(n.type===a.c.Custom){var c=f.getRestrictionDuration(n);return c?d(o,{duration:c,smartCount:c}):d("restrictionCustomLessThanDay",{duration:c,smartCount:1})}return""},getWeightedRestriction:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"highest";if(null==e?void 0:e.length)return 1===e.length?e[0]:e.reduce((function(e,i){var n=y[e.type],r=y[i.type];return"highest"===t&&n>r||"lowest"===t&&n<r?e:i}))},getRestrictionByType:function(e,t){if(!f.hasRestrictions(e))return null;var i=Array.isArray(t)?t:[t],n=e._restrictions.value.filter((function(e){return i.includes(e.type)}));return f.getWeightedRestriction(n)},getRestrictionDuration:function(e){if(e.type===a.c.Custom&&e.expiresOn){var t=r.O.convertUTCToLocal(e.expiresOn);if(t)return r.O.diffBetween(t,new Date,"day")}},hasCustomRestriction:function(e){return!!f.getRestrictionByType(e,[a.c.Custom])},hasRestrictions:function(e){var t,i;return!!(null===(i=null===(t=null==e?void 0:e._restrictions)||void 0===t?void 0:t.value)||void 0===i?void 0:i.length)}}},12927:function(e,t,i){i.d(t,{M:function(){return b}});var n,r=i(11306),o=i(57857),a=i(31647),c=i(56285),u=i(70065);!function(e){e.Screenrights="screenrights",e.Era="era",e.ClickView="clickview"}(n||(n={}));var s=i(50028),d=i(74421),l=i(87648),v=i(332),p=i(91432),y=i(77131),f=i(45428),m=i(13034),g=o.T.encloseNamespace("shared.shared-utils"),b={isVideo:function(e){return(null==e?void 0:e.typeId)===d.E.Video},isClip:function(e){return(null==e?void 0:e.typeId)===d.E.Clip},isInteractive:function(e){return(null==e?void 0:e.typeId)===d.E.Interactive},isVideoTypeArchived:function(e){return(null==e?void 0:e.status)===s.X.Archived},isVideoType:function(e){return b.isVideo(e)||b.isInteractive(e)||b.isClip(e)},hasSeries:function(e){var t;return!!(null===(t=null==e?void 0:e.series)||void 0===t?void 0:t.id)},showVideoGuidance:function(e){return!e(m.C.StudentExperience)},getVideoProgress:function(e){var t,i;return(null==e?void 0:e.lastProgressPoint)?null==e?void 0:e.lastProgressPoint:(null===(t=null==e?void 0:e._videoProgress)||void 0===t?void 0:t.progress)?null===(i=null==e?void 0:e._videoProgress)||void 0===i?void 0:i.progress:0},getThumbnail:function(e){var t,i;return e?b.isVideo(e)?e.thumbnail:(null==e?void 0:e._thumbnail)?e._thumbnail:b.isClip(e)?e.thumbnail||(null===(t=e._parentVideo)||void 0===t?void 0:t.thumbnail):b.isInteractive(e)?null===(i=e._parentVideo)||void 0===i?void 0:i.thumbnail:void 0:null},getDuration:function(e){var t,i;if(e){if(b.isVideo(e))return e.duration;if(b.isInteractive(e)){if(null===(t=e._parentClip)||void 0===t?void 0:t.id)return 1e3*(e._parentClip.endTime-e._parentClip.startTime);if(null===(i=e._parentVideo)||void 0===i?void 0:i.duration)return e._parentVideo.duration}return b.isClip(e)?1e3*(e.endTime-e.startTime):void 0}},getAnalyticsEntity:function(e){return b.isVideo(e)?u.py.Video:b.isInteractive(e)?u.py.Interactive:b.isClip(e)?u.py.Clip:void 0},getAnalyticsData:function(e){var t,i,n,r,o,a,c=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};if(b.isVideo(e))return Object.assign(Object.assign({},c||{}),{id:e.id});if(b.isClip(e)){var u=Object.assign(Object.assign({},c||{}),{id:e.id});return(null===(t=e._parentVideo)||void 0===t?void 0:t.id)&&(u.video={id:null===(i=e._parentVideo)||void 0===i?void 0:i.id}),u}var s=Object.assign(Object.assign({},c),{id:e.id,interactiveId:e.interactiveId,name:e.name,status:e.status,originType:e.originType});return(null===(n=null==e?void 0:e._parentClip)||void 0===n?void 0:n.id)&&(s.clip={id:null===(r=null==e?void 0:e._parentClip)||void 0===r?void 0:r.id}),(null===(o=null==e?void 0:e._parentVideo)||void 0===o?void 0:o.id)&&(s.video={id:null===(a=null==e?void 0:e._parentVideo)||void 0===a?void 0:a.id}),s},getCanBeConsumed:function(e){var t,i;return e&&b.isVideoType(e)?e._canBeConsumed?{canNavigate:"login-required"===(null===(t=e._canBeConsumed)||void 0===t?void 0:t.reason)&&b.isVideo(e)||!0===e._canBeConsumed.value,canConsume:e._canBeConsumed.value,reason:null===(i=e._canBeConsumed)||void 0===i?void 0:i.reason}:{canNavigate:!0,canConsume:!0}:{canNavigate:!1,canConsume:!1}},getPrivacyReasoning:function(e){var t,i=arguments.length>1&&void 0!==arguments[1]&&arguments[1],n=b.getCanBeConsumed(e),r=n.canConsume,o=n.canNavigate,a=n.reason,c=function(){return b.isClip(e)?g("clipLoginRequired"):b.isInteractive(e)?g("interactiveLoginRequired"):g("videoLoginRequired")};if(!r&&!o){if(i)return c();switch(a){case"rating-not-allowed":return g("ratingNotAllowed");case"video-deleted":return b.isClip(e)?g("clipParentDeleted"):b.isInteractive(e)?g("interactiveParentDeleted"):g("videoDeleted");case"clickview-private":return g("clickViewPrivate");case"private":default:return g("genericCannotAccess");case"login-required":return c();case"restricted-access":var u=f.l.getWeightedRestriction(null===(t=e._restrictions)||void 0===t?void 0:t.value);return(null==u?void 0:u.type)===l.c.Custom?g("awaitingApproval"):g("restrictedAccess")}}return b.isInteractive(e)&&e.status===s.X.Draft?g("draftInteractive"):""},getTitle:function(e){if(e.name)return b.isInteractive(e)&&e.status===s.X.Draft?g("draftInteractiveTitle",{name:e.name}):e.name;var t=b.getCanBeConsumed(e),i=t.canConsume,n=t.reason;return g(i||"private"!==n?i||"video-deleted"!==n?"privateVideo":"videoUnavailable":"privateVideo")},getParentVideo:function(e){return b.isVideo(e)?e:b.isClip(e)||b.isInteractive(e)?e._parentVideo:void 0},getRating:function(e){var t;return b.isVideo(e)?e.rating:null===(t=null==e?void 0:e._parentVideo)||void 0===t?void 0:t.rating},getVideoRequest:function(e,t,i){if(i){switch(t){case d.E.Video:return y.R.sharedVideo(e,i);case d.E.Clip:return v.e.sharedClip(e,i);case d.E.Interactive:return p.b.sharedInteractiveMetadata(e,i)}a.Q.Ry.throw(new r.H("Unsupported master type"))}switch(t){case d.E.Video:return y.R.video(e);case d.E.Clip:return v.e.clip(e);case d.E.Interactive:return p.b.interactiveMetadata(e)}a.Q.Ry.throw(new r.H("Unsupported master type"))},isBroadcast:function(e){var t,i;return!!(null===(i=null===(t=null==e?void 0:e.contentLicences)||void 0===t?void 0:t.data)||void 0===i?void 0:i.some((function(e){return e.systemName===n.Era||e.systemName===n.Screenrights})))},getReleaseDate:function(e){return e&&e.dateReleased&&b.isBroadcast(e)?c.O.format(e.dateReleased,"DD/MM/YYYY"):""},canViewOriginalVideo:function(e){var t,i;return!!(null===(i=null===(t=null==e?void 0:e._parentVideo)||void 0===t?void 0:t._canBeConsumed)||void 0===i?void 0:i.value)},getTrackingCode:function(e){return b.isVideo(e)?e.trackingCode:b.isClip(e)||b.isInteractive(e)?e._parentVideo.trackingCode:void 0},isInExchange:function(e){var t,i;return!!(null===(i=null===(t=null==e?void 0:e.libraries)||void 0===t?void 0:t.data)||void 0===i?void 0:i.some((function(e){return e.typeId===d.E.ExchangeCollection})))}}},15970:function(e,t,i){i.d(t,{d:function(){return a}});var n=i(4705),r=i(90335),o=r.D.RecentlyAdded,a={getValidSortTypeFromParam:function(e){return Object.values(r.D).includes(e)?e:r.D.Newest},getOrSetSortType:function(e,t,i){var r=function(e){return"video:sort:".concat(e)}(e);return!t&&n.SG.cacheExists(r)||n.SG.cacheSet(r,t||i||o),t||(t=n.SG.cacheGet(r)),t},getVideoSortParam:function(e){switch(e){case r.D.AtoZ:return"orderby:name";case r.D.ZtoA:return"orderbydesc:name";case r.D.Newest:return"orderbydesc:datecreated";case r.D.Oldest:return"orderby:datecreated";case r.D.RecentlyAdded:return"orderbydesc:timestamp";case r.D.Series:return"orderby:seriessort";default:return}}}},7121:function(e,t){t.Z={minHeight:"jEh7m",restrictionBadgeCustom:"WQ2eS",restrictionBadgeUser:"z4DeQ",streamable:"D_2nt"}}}]);