@clickview/library-editor 1.62.0 → 1.63.0-rc.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/bundles.json +1 -1
- package/dist/languages/en.json +1 -1
- package/dist/scripts/1318-d8b9d84472.chunk.js +1 -0
- package/dist/scripts/{3236-6d6925b1e7.chunk.js → 3236-6956d24163.chunk.js} +1 -1
- package/dist/scripts/336-632ad6b1fd.chunk.js +2 -0
- package/dist/scripts/{4796-a97aa4ec68.chunk.js → 4796-71f3b01af9.chunk.js} +2 -2
- package/dist/scripts/5424-78b4a60a70.chunk.js +1 -0
- package/dist/scripts/6591-4e6eb900d4.chunk.js +1 -0
- package/dist/scripts/7071-19ad9a324d.chunk.js +1 -0
- package/dist/scripts/bundle-e7e41a68f2.min.js +2 -0
- package/package.json +1 -1
- package/dist/scripts/1318-ea5a781ccd.chunk.js +0 -1
- package/dist/scripts/336-32a3891da5.chunk.js +0 -2
- package/dist/scripts/5424-2dd236e148.chunk.js +0 -1
- package/dist/scripts/6591-8c89b5849c.chunk.js +0 -1
- package/dist/scripts/7071-0aae4f6004.chunk.js +0 -1
- package/dist/scripts/bundle-456fe75ef5.min.js +0 -2
- /package/dist/scripts/{3236-6d6925b1e7.chunk.js.LICENSE.txt → 3236-6956d24163.chunk.js.LICENSE.txt} +0 -0
- /package/dist/scripts/{336-32a3891da5.chunk.js.LICENSE.txt → 336-632ad6b1fd.chunk.js.LICENSE.txt} +0 -0
- /package/dist/scripts/{3643-80890e884e.chunk.js → 3643-8f1bb9fe5a.chunk.js} +0 -0
- /package/dist/scripts/{3664-b80fef9acb.chunk.js → 3664-1de6858c52.chunk.js} +0 -0
- /package/dist/scripts/{4796-a97aa4ec68.chunk.js.LICENSE.txt → 4796-71f3b01af9.chunk.js.LICENSE.txt} +0 -0
- /package/dist/scripts/{5193-0ec9dfdb40.chunk.js → 5193-c993e0b42c.chunk.js} +0 -0
- /package/dist/scripts/{6350-fb33ca94e7.chunk.js → 6350-f5d0b9b443.chunk.js} +0 -0
- /package/dist/scripts/{bundle-456fe75ef5.min.js.LICENSE.txt → bundle-e7e41a68f2.min.js.LICENSE.txt} +0 -0
|
@@ -1 +0,0 @@
|
|
|
1
|
-
(self.webpackChunk_clickview_library_editor=self.webpackChunk_clickview_library_editor||[]).push([[5424],{77151:function(e,t,n){"use strict";n.d(t,{z:function(){return g}});var o=n(43823),i=n(57857),r=n(31647),a=n(88172),s=n(93569),l=n(40622),u=n(99724),c=n.n(u),d={saveButton:"G_FDK",undo:"dcV70"};function f(e){return f="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},f(e)}function h(e,t,n){return(t=v(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function p(e,t){for(var n=0;n<t.length;n++){var o=t[n];o.enumerable=o.enumerable||!1,o.configurable=!0,"value"in o&&(o.writable=!0),Object.defineProperty(e,v(o.key),o)}}function v(e){var t=function(e){if("object"!=f(e)||!e)return e;var t=e[Symbol.toPrimitive];if(void 0!==t){var n=t.call(e,"string");if("object"!=f(n))return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}(e);return"symbol"==f(t)?t:t+""}function b(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){})))}catch(e){}return(b=function(){return!!e})()}function y(e){return y=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(e){return e.__proto__||Object.getPrototypeOf(e)},y(e)}function m(e,t){return m=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(e,t){return e.__proto__=t,e},m(e,t)}var g=function(e){function t(e){return function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,t),function(e,t,n){return t=y(t),function(e,t){if(t&&("object"==f(t)||"function"==typeof t))return t;if(void 0!==t)throw new TypeError("Derived constructors may only return object or undefined");return function(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}(e)}(e,b()?Reflect.construct(t,n||[],y(e).constructor):t.apply(e,n))}(this,t,[e])}return function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),Object.defineProperty(e,"prototype",{writable:!1}),t&&m(e,t)}(t,e),n=t,u=[{key:"name",get:function(){return"SaveComponent"}},{key:"template",get:function(){return c()}},{key:"className",get:function(){return"save-component ".concat(this.options.extraClasses)}},{key:"lang",get:function(){return"libraryEditor.save"}},{key:"getParentChannel",value:function(){return o.Radio.channel(this.options.channelName)}},{key:"getSaveChannelName",value:function(){return"".concat(this.name,":").concat(this.cid)}},{key:"regions",value:function(){return{save:{el:".save-region",replaceElement:!0}}}},{key:"events",value:function(){return{"click .undo":"onUndo"}}},{key:"initialize",value:function(){this.model||(this.model=new r.Q.Hn(h(h({},a.ZV.ShowSpinner,this.options.showSpinner),a.ZV.Disabled,this.options.isDisabled)));var e=this.options.channelName;this.listenTo(e,l.NT.DisableSave,this.onDisableSave),this.listenTo(e,l.NT.EnableSave,this.onEnableSave),this.listenTo(e,l.NT.CancelSave,this.onCancelSave);var t=o.Radio.channel(this.getSaveChannelName());this.listenTo(t,l.NT.Save,this.onSave),this.options.allowUndo&&(this.options.hasChanges&&this.model.set("showUndo",!0),this.listenTo(this.model,"change:showUndo",this.render))}},{key:"onCancelSave",value:function(){this.model.set(a.ZV.ShowSpinner,!1)}},{key:"onEnableSave",value:function(){this.model.set(a.ZV.Disabled,!1),this.options.allowUndo&&this.model.set("showUndo",!0)}},{key:"onDisableSave",value:function(){this.model.get(a.ZV.ShowSpinner)&&this.model.set(a.ZV.ShowSpinner,!1,{silent:!0}),this.model.set(a.ZV.Disabled,!0),this.options.allowUndo&&this.model.set("showUndo",!1)}},{key:"onUndo",value:function(e){e.stopPropagation(),this.getParentChannel().trigger(l.NT.Undo)}},{key:"onSave",value:function(){this.model.set(a.ZV.ShowSpinner,!0),this.getParentChannel().trigger(l.NT.Save)}},{key:"viewOptions",value:function(){return{allowUndo:this.options.allowUndo&&this.model.get("showUndo"),styles:d}}},{key:"renderSaveButton",value:function(){var e=new a.Py({saveEvent:l.NT.Save,channelName:this.getSaveChannelName(),model:this.model,buttonText:i.T.getPhrase(this.lang,"save"),extraButtonClass:"btn-dark ".concat(d.saveButton),spinnerOptions:{size:s.Ey.Small,type:s.dR.Light,extraClasses:"mx-auto"}});this.showChildView("save",e)}},{key:"onRender",value:function(){this.renderSaveButton()}}],u&&p(n.prototype,u),Object.defineProperty(n,"prototype",{writable:!1}),n;var n,u}(r.Q.wA)},18007:function(e,t,n){"use strict";n.r(t),n.d(t,{EditInteractiveView:function(){return H}});var o=n(43823),i=n(21161),r=n(25417),a=n(99748),s=n(11306),l=n(21679),u=n(57857),c=n(99249),d=n(31647),f=n(52076),h=n(70065),p=n(13156),v=n(57085),b=n(45390),y=n(29457),m=n(86205),g=n(48404),w=n(19226),k=n(93569),S=n(88483),E=n(53825),O=n(32035),C=n(77151),T=n(49965),j=n.n(T);function N(e){return N="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},N(e)}function P(e,t){for(var n=0;n<t.length;n++){var o=t[n];o.enumerable=o.enumerable||!1,o.configurable=!0,"value"in o&&(o.writable=!0),Object.defineProperty(e,_(o.key),o)}}function _(e){var t=function(e){if("object"!=N(e)||!e)return e;var t=e[Symbol.toPrimitive];if(void 0!==t){var n=t.call(e,"string");if("object"!=N(n))return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}(e);return"symbol"==N(t)?t:t+""}function I(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){})))}catch(e){}return(I=function(){return!!e})()}function x(e){return x=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(e){return e.__proto__||Object.getPrototypeOf(e)},x(e)}function V(e,t){return V=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(e,t){return e.__proto__=t,e},V(e,t)}var D=function(e){function t(e){return function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,t),function(e,t,n){return t=x(t),function(e,t){if(t&&("object"==N(t)||"function"==typeof t))return t;if(void 0!==t)throw new TypeError("Derived constructors may only return object or undefined");return function(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}(e)}(e,I()?Reflect.construct(t,n||[],x(e).constructor):t.apply(e,n))}(this,t,[e])}return function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),Object.defineProperty(e,"prototype",{writable:!1}),t&&V(e,t)}(t,e),n=t,(o=[{key:"name",get:function(){return"EditInteractiveDetailsComponent"}},{key:"className",get:function(){return"edit-interactive-detail py-3"}},{key:"lang",get:function(){return"libraryEditor.editInteractiveDetails"}},{key:"template",get:function(){return j()}},{key:"appLinks",get:function(){return{".suggest-edit":{application:b.OV.LIBRARY_EDITOR,action:b.eX.LibraryEditor.SUGGEST_AN_EDIT,args:[this.model.get("id"),this.model.get("typeId")]}}}},{key:"events",value:function(){return{"click .expand-details":"onClickExpandDetails"}}},{key:"elements",get:function(){return{expandable:".collapse-area"}}},{key:"regions",value:function(){return{topSave:{el:".top-save-region",replaceElement:!0},bottomSave:{el:".bottom-save-region",replaceElement:!0},thumbnail:{el:".thumbnail-region",replaceElement:!0},basicInfo:{el:".basic-info-region",replaceElement:!0}}}},{key:"renderSave",value:function(){this.options.editable&&this.showChildView("topSave",new C.z({channelName:this.options.channelName,allowUndo:!0,isDisabled:this.options.isSaveDisabled,hasChanges:this.options.hasChanges,extraClasses:"float-end"})),this.showChildView("bottomSave",new C.z({channelName:this.options.channelName,allowUndo:!0,isDisabled:this.options.isSaveDisabled,hasChanges:this.options.hasChanges,extraClasses:"float-end"}))}},{key:"renderBasicInfo",value:function(){this.showChildView("basicInfo",new O.J({model:this.model,channelName:this.options.channelName,editable:this.options.editable,showingSaveButton:this.options.editable}))}},{key:"renderThumbnail",value:function(){this.showChildView("thumbnail",new E.Z({model:this.model,thumbnail:k.M2.getThumbnail(this.model),thumbnailOptions:{size:S.h2.Medium},duration:k.M2.getDuration(this.model),durationNewStyle:!0}))}},{key:"viewOptions",value:function(){return{editable:this.options.editable,suggestEditClasses:"info-link text-underline suggest-edit",isExchange:k.M2.isExchangeVideo(this.model)}}},{key:"onRender",value:function(){this.renderSave(),this.renderBasicInfo(),this.renderThumbnail()}}])&&P(n.prototype,o),Object.defineProperty(n,"prototype",{writable:!1}),n;var n,o}(d.Q.wA),B=n(40622),M=n(53854),R=n(75535),L=n(95061),A=n(57785),U=n(44665),Q=n.n(U);function Z(e){return Z="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},Z(e)}function z(e,t){for(var n=0;n<t.length;n++){var o=t[n];o.enumerable=o.enumerable||!1,o.configurable=!0,"value"in o&&(o.writable=!0),Object.defineProperty(e,K(o.key),o)}}function K(e){var t=function(e){if("object"!=Z(e)||!e)return e;var t=e[Symbol.toPrimitive];if(void 0!==t){var n=t.call(e,"string");if("object"!=Z(n))return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}(e);return"symbol"==Z(t)?t:t+""}function F(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){})))}catch(e){}return(F=function(){return!!e})()}function G(e){return G=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(e){return e.__proto__||Object.getPrototypeOf(e)},G(e)}function Y(e,t){return Y=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(e,t){return e.__proto__=t,e},Y(e,t)}var H=function(e){function t(e){var n;return function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,t),(n=function(e,t,n){return t=G(t),function(e,t){if(t&&("object"==Z(t)||"function"==typeof t))return t;if(void 0!==t)throw new TypeError("Derived constructors may only return object or undefined");return function(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}(e)}(e,F()?Reflect.construct(t,n||[],G(e).constructor):t.apply(e,n))}(this,t,[e])).editable=!1,n}return function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),Object.defineProperty(e,"prototype",{writable:!1}),t&&Y(e,t)}(t,e),n=t,S=[{key:"name",get:function(){return"EditInteractiveView"}},{key:"title",get:function(){return this.model&&this.model.get("name")}},{key:"lang",get:function(){return"libraryEditor.editInteractive"}},{key:"className",get:function(){return"bg-white p-3 rounded"}},{key:"channelName",get:function(){return"".concat(this.name,":").concat(this.cid)}},{key:"viewModelName",get:function(){return"".concat(this.name,":").concat(this.options.interactiveId)}},{key:"template",get:function(){return Q()}},{key:"regions",value:function(){return{breadcrumbs:{el:".breadcrumbs-region",replaceElement:!1,partialLoading:y.LP.Breadcrumbs},content:{el:".edit-content-region",replaceElement:!0,partialLoading:y.LP.EditInteractiveDetails}}}},{key:"initialize",value:function(){this.navLock=l.u.getInstance(b.K9.NavLock,this),this.initDataListeners(),k.Si.initBackButton(),this.initServices()}},{key:"initServices",value:function(){this.videoDataService=l.u.getInstance(b.Or.Video,this),this.alertService=l.u.getInstance(b.K9.Alerts,this)}},{key:"initDataListeners",value:function(){this.listenTo(r.G.SHELL,d.Q.Vy.NAV_UNLOCKED_BY_USER,this.onNavigateAway),this.listenTo(b.Vk.VIDEO,"".concat(b.M_.INTERACTIVES,":").concat(this.options.interactiveId,":sync"),this.render),this.listenTo(b.Vk.VIDEO,"".concat(b.M_.INTERACTIVES,":").concat(this.options.interactiveId,":error"),this.onError),this.listenTo(this.channelName,B.NT.Save,this.onSave),this.listenTo(this.channelName,B.NT.Undo,this.onUndo)}},{key:"onError",value:function(e){switch(e.type){case a.h.NotFound:d.Q.Ry.throw(new R.l);break;case a.h.Forbidden:d.Q.Ry.throw(new M.a)}}},{key:"saveVideo",value:function(e,t){var n=this,o=e.dataChanges;if(i.isEmpty(o))t(e);else{var r=e.dataChanges;this.videoDataService.updateInteractive(this.model.get("id"),this.folder.get("id"),r,(function(o){n.videoDataService.clearVideoCache(),e.updatedVideo=i.extend({},e.updatedVideo||{},o),t(e)}))}}},{key:"afterSave",value:function(e){if(this.viewModel){e.updatedVideo&&this.updateState(e.updatedVideo),this.unlockNav(),this.updateSaveButton(B.NT.DisableSave),this.logEditAction(e.dataChanges,h.eu.Save);var t=p.J.updatedVideoAlert(this.viewModel.get("name"));this.alertService.success(t||"Interactive was successfully updated")()}}},{key:"onSave",value:function(){if(this.viewModel.validate(),!1===this.viewModel.isValid())return this.updateSaveButton(B.NT.CancelSave),!1;var e=A.xC.getChanges(this.model,this.viewModel),t=A.xC.getRemovedObjectIds(this.model,this.viewModel);if(!e&&!i.keys(t).length)return this.updateSaveButton(B.NT.CancelSave),!1;var n=new d.Q.dM;return this.editable&&n.useAsync(i.bind(this.saveVideo,this)),n.useAsync(i.bind(this.afterSave,this)),n.goAsync({dataChanges:e,pendingDissocs:t},null),!1}},{key:"onUndo",value:function(){var e=this;new k.Mr({title:u.T.getPhrase(this.lang,"undoTitle"),text:u.T.getPhrase(this.lang,"undoBody",{interactiveName:this.model.get("name")}),buttons:[{text:u.T.getPhrase(this.lang,"undo"),className:"btn btn-danger",success:!0},{text:u.T.getPhrase(this.lang,"cancel"),className:"btn btn-link",close:!0}]}).render().done((function(){e.logEditAction({},h.eu.Discard),e.revertState({undo:!0}),e.render()}))}},{key:"updateState",value:function(e){this.stopListening(this.viewModel),A.xC.updateModelState(this.model,this.viewModel,e),c.r.clear(this.viewModelName),this.getViewModel(),this.renderContent()}},{key:"onNavigateAway",value:function(){this.revertState()}},{key:"revertState",value:function(){var e=(arguments.length>0&&void 0!==arguments[0]?arguments[0]:{}).undo;this.stopListening(this.viewModel),c.r.clear(this.viewModelName),delete this.viewModel,this.unlockNav(),e&&this.getViewModel()}},{key:"lockNav",value:function(){this.navLock.lock({title:u.T.getPhrase(this.lang,"navLockHeading"),text:u.T.getPhrase(this.lang,"navLockBody")})}},{key:"unlockNav",value:function(){this.navLock.unlock()}},{key:"onModelChange",value:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};if(t.stickitChange||t.manualUpdate)if(this.viewModel.validate(),!1!==this.viewModel.isValid()){if(!A.xC.getChanges(this.model,this.viewModel)&&!i.keys(A.xC.getRemovedObjectIds(this.model,this.viewModel)).length)return this.unlockNav(),void this.updateSaveButton(B.NT.DisableSave);this.lockNav(),this.updateSaveButton(B.NT.EnableSave)}else this.updateSaveButton(B.NT.DisableSave)}},{key:"updateSaveButton",value:function(e){var t=o.Radio.channel(this.channelName),n=B.NT.EnableSave,i=B.NT.DisableSave,r=B.NT.CancelSave;switch(e){case n:return void t.trigger(n);case i:return void t.trigger(i);case r:return void t.trigger(r)}d.Q.Ry.throw(new s.H("Save action type is not valid."))}},{key:"logEditAction",value:function(e,t){var n=Object.assign({id:this.model.get("id")},e);f.k.logUserAction(n,{actionType:h.Vw.Edit,entity:h.py.Interactive,location:h.LZ.EditInteractiveVideoDetails,workflowPhase:t})}},{key:"onValidation",value:function(e){this.viewModel.set("disabled",!e)}},{key:"getViewModel",value:function(){this.viewModel=c.r.get(this.viewModelName,this.model.toJSON(),{ctor:m.v}),this.editable&&this.viewModel.addValidation(A.B9),this.listenTo(this.viewModel,"validated",this.onValidation),this.listenTo(this.viewModel,"change",this.onModelChange)}},{key:"fetchData",value:function(){this.model=this.videoDataService.getInteractive(this.options.interactiveId),this.model&&(this.editable=k.BK.canEditVideo(this.model),this.folder=this.model.categories.first(),this.viewModel instanceof m.v||this.getViewModel())}},{key:"requiredResources",get:function(){return{config:g.p.config,currentUser:w.K.currentUser,libraries:L.T.libraries}}},{key:"onBeforeRender",value:function(){return this.fetchData(),!!this.model&&!!this.viewModel}},{key:"renderBreadcrumbs",value:function(){this.folder&&this.showChildView("breadcrumbs",new v.n({folder:this.folder,libraries:this.libraries,video:this.model,enableLastItemAppLink:!1}))}},{key:"renderContent",value:function(){var e=A.xC.getChanges(this.model,this.viewModel)||i.keys(A.xC.getRemovedObjectIds(this.model,this.viewModel)).length;this.showChildView("content",new D({model:this.viewModel,channelName:this.channelName,isSaveDisabled:!e,hasChanges:!!e,editable:this.editable,currentUser:this.currentUser}))}},{key:"onRender",value:function(){this.renderBreadcrumbs(),this.renderContent()}}],S&&z(n.prototype,S),Object.defineProperty(n,"prototype",{writable:!1}),n;var n,S}(d.Q.G7)},57085:function(e,t,n){"use strict";n.d(t,{n:function(){return N}});var o=n(31647),i=n(45390),r=n(22557),a=n(86363),s=n.n(a);function l(e){return l="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},l(e)}function u(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function c(e,t){for(var n=0;n<t.length;n++){var o=t[n];o.enumerable=o.enumerable||!1,o.configurable=!0,"value"in o&&(o.writable=!0),Object.defineProperty(e,f(o.key),o)}}function d(e,t,n){return t&&c(e.prototype,t),n&&c(e,n),Object.defineProperty(e,"prototype",{writable:!1}),e}function f(e){var t=function(e){if("object"!=l(e)||!e)return e;var t=e[Symbol.toPrimitive];if(void 0!==t){var n=t.call(e,"string");if("object"!=l(n))return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}(e);return"symbol"==l(t)?t:t+""}function h(e,t,n){return t=v(t),function(e,t){if(t&&("object"==l(t)||"function"==typeof t))return t;if(void 0!==t)throw new TypeError("Derived constructors may only return object or undefined");return function(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}(e)}(e,p()?Reflect.construct(t,n||[],v(e).constructor):t.apply(e,n))}function p(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){})))}catch(e){}return(p=function(){return!!e})()}function v(e){return v=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(e){return e.__proto__||Object.getPrototypeOf(e)},v(e)}function b(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),Object.defineProperty(e,"prototype",{writable:!1}),t&&y(e,t)}function y(e,t){return y=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(e,t){return e.__proto__=t,e},y(e,t)}var m=function(e){function t(){return u(this,t),h(this,t,arguments)}return b(t,e),d(t,[{key:"name",get:function(){return"BreadcrumbItemComponent"}},{key:"template",get:function(){return s()}},{key:"tagName",get:function(){return"li"}},{key:"className",get:function(){var e="breadcrumb-item";return this.model.get("active")&&(e+=" active"),e}},{key:"attributes",get:function(){return this.model.get("active")?{"aria-current":"page"}:{}}},{key:"appLinks",get:function(){return this.model.get("active")?{}:{a:this.model.get("appLink")}}},{key:"viewOptions",value:function(){return{isActive:this.model.get("active")}}}])}(o.Q.wA),g=function(e){function t(){return u(this,t),h(this,t,arguments)}return b(t,e),d(t,[{key:"name",get:function(){return"BreadcrumbComponentCollection"}},{key:"tagName",get:function(){return"ol"}},{key:"className",get:function(){return"breadcrumb m-0 p-0"}},{key:"childView",get:function(){return m}}])}(o.Q.$W),w=n(93933),k=n.n(w);function S(e){return S="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},S(e)}function E(e,t){for(var n=0;n<t.length;n++){var o=t[n];o.enumerable=o.enumerable||!1,o.configurable=!0,"value"in o&&(o.writable=!0),Object.defineProperty(e,O(o.key),o)}}function O(e){var t=function(e){if("object"!=S(e)||!e)return e;var t=e[Symbol.toPrimitive];if(void 0!==t){var n=t.call(e,"string");if("object"!=S(n))return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}(e);return"symbol"==S(t)?t:t+""}function C(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){})))}catch(e){}return(C=function(){return!!e})()}function T(e){return T=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(e){return e.__proto__||Object.getPrototypeOf(e)},T(e)}function j(e,t){return j=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(e,t){return e.__proto__=t,e},j(e,t)}var N=function(e){function t(e){return function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,t),function(e,t,n){return t=T(t),function(e,t){if(t&&("object"==S(t)||"function"==typeof t))return t;if(void 0!==t)throw new TypeError("Derived constructors may only return object or undefined");return function(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}(e)}(e,C()?Reflect.construct(t,n||[],T(e).constructor):t.apply(e,n))}(this,t,[e])}return function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),Object.defineProperty(e,"prototype",{writable:!1}),t&&j(e,t)}(t,e),n=t,(a=[{key:"initialize",value:function(){this.getBreadcrumbs()}},{key:"name",get:function(){return"BreadcrumbsComponent"}},{key:"template",get:function(){return k()}},{key:"className",get:function(){return"d-inline-block"}},{key:"regions",value:function(){return{breadcrumbs:".breadcrumbs-region"}}},{key:"defaults",get:function(){return{customBreadcrumbs:[]}}},{key:"getBreadcrumbs",value:function(){var e=this;this.breadcrumbCollection=new o.Q.FE([]);var t,n=this.options.folder;do{if(!n)break;if(t=r.P.getParent(n.id,this.options.libraries),this.breadcrumbCollection.add(this.getBreadcrumb(n,!!t),{at:0}),!t)break;n=t}while(t);this.options.video&&this.breadcrumbCollection.add({name:this.options.video.get("name"),appLink:{application:i.OV.LIBRARY_EDITOR,action:i.eX.LibraryEditor.VIDEO_DETAILS,args:[this.options.video.id]}}),this.options.customBreadcrumbs&&this.options.customBreadcrumbs.forEach((function(t){return e.breadcrumbCollection.add(t)})),this.breadcrumbCollection.length&&this.breadcrumbCollection.last().set("active",!this.options.enableLastItemAppLink)}},{key:"getBreadcrumb",value:function(e,t){var n=t?i.eX.LibraryEditor.FOLDER:i.eX.LibraryEditor.LIBRARY;return{name:e.get("name"),appLink:{application:i.OV.LIBRARY_EDITOR,action:n,args:[e.id]}}}},{key:"onRender",value:function(){var e=new g({collection:this.breadcrumbCollection});this.showChildView("breadcrumbs",e)}}])&&E(n.prototype,a),Object.defineProperty(n,"prototype",{writable:!1}),n;var n,a}(o.Q.wA)},49965:function(e,t,n){var o=n(31197);e.exports=(o.default||o).template({1:function(e,t,n,o,i){var r;return e.propertyIsEnumerable,' <p class="mb-2 py-1 px-2 alert alert-info rounded fw-semibold">\n'+(null!=(r=n.if.call(null!=t?t:e.nullContext||{},null!=(r=null!=t?t.options:t)?r.isExchange:r,{name:"if",hash:{},fn:e.program(2,i,0),inverse:e.program(4,i,0),data:i}))?r:"")+" </p>\n"},2:function(e,t,n,o,i){var r;return e.propertyIsEnumerable," "+(null!=(r=(n.lang||t&&t.lang||e.hooks.helperMissing).call(null!=t?t:e.nullContext||{},"suggestEditExchange",{name:"lang",hash:{classNames:null!=(r=null!=t?t.options:t)?r.suggestEditClasses:r},data:i}))?r:"")+"\n"},4:function(e,t,n,o,i){var r;return e.propertyIsEnumerable," "+(null!=(r=(n.lang||t&&t.lang||e.hooks.helperMissing).call(null!=t?t:e.nullContext||{},"suggestEdit",{name:"lang",hash:{classNames:null!=(r=null!=t?t.options:t)?r.suggestEditClasses:r},data:i}))?r:"")+"\n"},compiler:[8,">= 4.3.0"],main:function(e,t,n,o,i){var r;return e.propertyIsEnumerable,'<div class="row">\n <div class="left-pane col-4">\n <div class="thumbnail-region"></div>\n </div>\n <div class="right-pane col-8">\n'+(null!=(r=n.unless.call(null!=t?t:e.nullContext||{},null!=(r=null!=t?t.options:t)?r.editable:r,{name:"unless",hash:{},fn:e.program(1,i,0),inverse:e.noop,data:i}))?r:"")+' <div class="top-save-region"></div>\n <div class="basic-info-region mb-4"></div> \n <div class="bottom-save-region"></div>\n </div>\n</div>'},useData:!0})},99724:function(e,t,n){var o=n(31197);e.exports=(o.default||o).template({1:function(e,t,n,o,i){e.propertyIsEnumerable;var r,a=e.escapeExpression;return'<span class="text-secondary mx-2 undo '+a(e.lambda(null!=(r=null!=(r=null!=t?t.options:t)?r.styles:r)?r.undo:r,t))+'">'+a((n.lang||t&&t.lang||e.hooks.helperMissing).call(null!=t?t:e.nullContext||{},"undo",{name:"lang",hash:{},data:i}))+"</span>\n"},compiler:[8,">= 4.3.0"],main:function(e,t,n,o,i){var r;return e.propertyIsEnumerable,(null!=(r=n.if.call(null!=t?t:e.nullContext||{},null!=(r=null!=t?t.options:t)?r.allowUndo:r,{name:"if",hash:{},fn:e.program(1,i,0),inverse:e.noop,data:i}))?r:"")+'<div class="save-region"></div>'},useData:!0})},44665:function(e,t,n){var o=n(31197);e.exports=(o.default||o).template({compiler:[8,">= 4.3.0"],main:function(e,t,n,o,i){var r;return e.propertyIsEnumerable,'<div class="row pb-3 border-bottom">\n <h1 class="h3">'+e.escapeExpression("function"==typeof(r=null!=(r=n.name||(null!=t?t.name:t))?r:e.hooks.helperMissing)?r.call(null!=t?t:e.nullContext||{},{name:"name",hash:{},data:i}):r)+'</h1>\n\n <div class="breadcrumbs-region"></div>\n</div>\n<div class="edit-content-region"></div>'},useData:!0})},86363:function(e,t,n){var o=n(31197);e.exports=(o.default||o).template({1:function(e,t,n,o,i){var r;return e.propertyIsEnumerable,'<span class="fw-bolder">'+e.escapeExpression("function"==typeof(r=null!=(r=n.name||(null!=t?t.name:t))?r:e.hooks.helperMissing)?r.call(null!=t?t:e.nullContext||{},{name:"name",hash:{},data:i}):r)+"</span>\n"},3:function(e,t,n,o,i){var r;return e.propertyIsEnumerable,"<a>"+e.escapeExpression("function"==typeof(r=null!=(r=n.name||(null!=t?t.name:t))?r:e.hooks.helperMissing)?r.call(null!=t?t:e.nullContext||{},{name:"name",hash:{},data:i}):r)+"</a>\n"},compiler:[8,">= 4.3.0"],main:function(e,t,n,o,i){var r;return e.propertyIsEnumerable,null!=(r=n.if.call(null!=t?t:e.nullContext||{},null!=(r=null!=t?t.options:t)?r.isActive:r,{name:"if",hash:{},fn:e.program(1,i,0),inverse:e.program(3,i,0),data:i}))?r:""},useData:!0})},93933:function(e,t,n){var o=n(31197);e.exports=(o.default||o).template({compiler:[8,">= 4.3.0"],main:function(e,t,n,o,i){return'<nav class="breadcrumbs-region" aria-label="breadcrumb"></nav>'},useData:!0})}}]);
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
"use strict";(self.webpackChunk_clickview_library_editor=self.webpackChunk_clickview_library_editor||[]).push([[6591],{51071:function(e,t,n){n.d(t,{j:function(){return T}});var r=n(32735),o=n(80247),a=n(57857),i=n(53808),c=n(21326),s=n(74421),l=n(38e3),u=n(23454),m=n(7067),p=n(85475),f={removeRecipient:"mCbMC",recipientItem:"kdcb0",showSpinner:"xH6Mu",avatarContainer:"Zcpg3",recipientDetails:"v5EmV",recipientDetailsWithRemoveButton:"_V928"},d="shared.classroomGroupRecipientItemMetadata";function g(e){var t;return r.createElement(r.Fragment,null,r.createElement("div",{className:"".concat(f.avatarContainer," d-inline-block")},r.createElement(u.f,{svgName:p.vn.Group,variant:(0,m.I)(null===(t=e.classroomGroup.metadata)||void 0===t?void 0:t.colour)})),r.createElement("div",{className:e.detailsClassName},r.createElement("h4",{className:"font-size-normal fw-normal m-0"},e.classroomGroup.name),r.createElement("p",{className:"text-secondary m-0"},function(e){var t,n,r,o=null!==(n=null===(t=e.users)||void 0===t?void 0:t.count)&&void 0!==n?n:0,i=null===(r=e.classroom)||void 0===r?void 0:r.name;return i?a.T.getPhrase(d,"subheading",{classroomName:i,smartCount:o}):""}(e.classroomGroup))))}var v="shared.classroomRecipientItemMetadata";function y(e){return r.createElement(r.Fragment,null,r.createElement("div",{className:"".concat(f.avatarContainer," d-inline-block")},r.createElement(u.f,{svgName:p.vn.Classrooms,variant:"teal"})),r.createElement("div",{className:e.detailsClassName},r.createElement("h4",{className:"font-size-normal fw-normal m-0"},e.classroom.name),r.createElement("p",{className:"text-secondary m-0"},(c=null!==(o=null===(n=(t=e.classroom).users)||void 0===n?void 0:n.count)&&void 0!==o?o:null===(i=t.enrolments)||void 0===i?void 0:i.count,Number.isInteger(c)?a.T.getPhrase(v,"subheading",{smartCount:c}):""))));var t,n,o,i,c}var h=n(76198),b=n(76044);function S(e,t){return e?t?(0,h._8)((n="profileId"in e?e.profileId:e.id,r=+"".concat(n).concat(Math.floor((new Date).getMinutes()/5)),{dictionaries:[h.O9,h.yd],separator:" ",length:2,style:"capital",seed:r})):"profileId"in e?e.name:b.l.getFullName(e):"";var n,r}var C=n(77037),E=n(39396),I=n(1268),O=n(46237),j=a.T.encloseNamespace("shared.userRecipientItemMetadata");function N(e){var t,n,o,a,i,c=(o=(t=e).user,a=t.anonymiseUsers,i=t.showDisplayName,"profileId"in o?{name:S(o,a),surname:"",avatarUrl:null}:{name:a?S(o,!0):i?b.l.getDisplayName(o):b.l.getFullName(o),surname:o.surname,avatarUrl:null===(n=o.avatar)||void 0===n?void 0:n.url}),s=c.name,l=c.surname,u=c.avatarUrl;return r.createElement(r.Fragment,null,r.createElement("div",{className:"".concat(f.avatarContainer," ").concat(e.avatarClassName," d-inline-block")},r.createElement(C.q,{imageUrl:u,imageCdnUrl:e.imageCdnUrl,initials:b.l.getInitials(s,l),showAnonymousUser:"profileId"in e.user,anonymiseUsers:e.anonymiseUsers,anonymousSvgSize:E.S.Small})),r.createElement("div",{className:e.detailsClassName},r.createElement("h4",{className:"font-size-normal fw-normal m-0"},s),e.showSubText&&"id"in e.user&&r.createElement("p",{className:"text-secondary m-0"},e.getSubText?e.getSubText(e.user):function(e){var t=b.l.getUserType(e),n=b.l.getUserRole(e);if(t===I.Y.Staff)return n===O.i.Admin?j("admin"):j("staff");var r=b.l.getYearGroup(e);return(null==r?void 0:r.name)&&"Learners"!==r.name?r.name:j("student")}(e.user))))}function w(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=Array(t);n<t;n++)r[n]=e[n];return r}N.defaults={showSubText:!0};var x=a.T.encloseNamespace("share.recipientItem");function k(e){switch(e){case s.E.User:return x("removeUser");case s.E.Classroom:return x("removeClassroom");case s.E.ClassroomGroup:return x("removeGroup")}return null}function T(e){var t,n,a=(t=r.useState(!1),n=2,function(e){if(Array.isArray(e))return e}(t)||function(e,t){var n=null==e?null:"undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null!=n){var r,o,a,i,c=[],s=!0,l=!1;try{if(a=(n=n.call(e)).next,0===t){if(Object(n)!==n)return;s=!1}else for(;!(s=(r=a.call(n)).done)&&(c.push(r.value),c.length!==t);s=!0);}catch(e){l=!0,o=e}finally{try{if(!s&&null!=n.return&&(i=n.return(),Object(i)!==i))return}finally{if(l)throw o}}return c}}(t,n)||function(e,t){if(e){if("string"==typeof e)return w(e,t);var n={}.toString.call(e).slice(8,-1);return"Object"===n&&e.constructor&&(n=e.constructor.name),"Map"===n||"Set"===n?Array.from(e):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?w(e,t):void 0}}(t,n)||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.")}()),u=a[0],m=a[1],p="".concat(f.recipientItem," d-flex");u&&(p+=" ".concat(f.showSpinner));var d="".concat(e.removeRecipient?f.recipientDetailsWithRemoveButton:f.recipientDetails," d-inline-block ms-2");return r.createElement("div",{className:p},l.G.isType(e.entity,s.E.User)?r.createElement(N,{user:e.entity,imageCdnUrl:e.imageCdnUrl,detailsClassName:d,showDisplayName:e.showDisplayName,getSubText:e.getSubText,showSubText:!0}):l.G.isType(e.entity,s.E.Classroom)?r.createElement(y,{classroom:e.entity,detailsClassName:d}):l.G.isType(e.entity,s.E.ClassroomGroup)?r.createElement(g,{classroomGroup:e.entity,detailsClassName:d}):void 0,i.q.isFunction(e.removeRecipient)&&r.createElement("div",{className:"".concat(f.removeRecipient," d-inline-flex justify-content-center align-items-center")},u?r.createElement(o.Z,{as:"div",size:"sm",animation:"border",role:"status"}):r.createElement(c.u,{title:k(e.entity.typeId),spanHack:!0},r.createElement("div",{className:"btn-close cursor-pointer",role:"button","aria-label":"Close",onClick:function(){m(!0),e.removeRecipient(e.entity.id,(function(){return m(!1)}))}}))))}},81406:function(e,t,n){n.d(t,{t:function(){return j},D:function(){return N}});var r=n(32735),o=n(53808),a=n(58424),i=n(39396),c=n(74421),s=n(1268),l=n(7067),u=n(38e3),m=n(85475),p=n(76044),f=n(80247),d=n(57857),g={avatar:"srrS3"};function v(e){var t=e.imageUrl,n=e.initials,o={};return t&&(o.backgroundImage="url('".concat(t,"')")),r.createElement("div",{className:g.avatar,style:o},t?r.createElement(r.Fragment,null," "):n)}var y=n(21326),h={svgContainer:"laVU4",selection:"vEOCt",expander:"d1NHd",iconContainer:"rFH4W",icon:"BarYz",bubble:"HF0E8",spinnerContainer:"iKeXW",remove:"pyzCM",removeBubble:"mgt6Y"},b=d.T.encloseNamespace("shared.inputSelection");function S(e){var t,n="".concat(h.svgContainer," ").concat(h.icon);return e.typeId===c.E.Classroom?n+=" text-teal":n+=" text-".concat((0,l.I)(null===(t=e.metadata)||void 0===t?void 0:t.colour)),n}function C(e){var t,n=function(e){var t;switch(e.typeId){case c.E.Classroom:return"text-teal-hover";case c.E.ClassroomGroup:return"text-".concat((0,l.I)(null===(t=e.metadata)||void 0===t?void 0:t.colour),"-hover")}}(e.selection),o=e.selection.typeId===c.E.Classroom;if(!e.canExpand){if(!e.selection.typeId||e.selection.typeId===c.E.User){var s=e.selection;return r.createElement("div",{className:h.svgContainer},r.createElement(v,{imageUrl:null===(t=s.avatar)||void 0===t?void 0:t.url,initials:p.l.getInitials(e.selection.name,e.selection.surname)}))}return r.createElement(y.u,{title:b(o?"emptyClassroom":"emptyGroup")},r.createElement("div",{className:"align-items-center border border-white bg-white ".concat(h.iconContainer)},r.createElement(i.x,{className:S(e.selection),svgName:o?m.vn.Classrooms:m.vn.Group})))}return e.hasExpanded?r.createElement("div",{className:"d-flex align-items-center text-white ".concat(h.spinnerContainer," ").concat(h.svgContainer)},r.createElement(f.Z,{as:"div",size:"sm",animation:"border",role:"status"})):r.createElement(r.Fragment,null,r.createElement(a.L,{className:"align-items-center cursor-pointer text-white border border-white rounded-circle ".concat(h.expander," ").concat(n),onClick:e.onClickExpand},r.createElement(i.x,{svgName:m.vn.Plus,className:"d-flex align-items-center ".concat(h.svgContainer)})),r.createElement("div",{className:"align-items-center border border-white bg-white ".concat(h.iconContainer)},r.createElement(i.x,{className:S(e.selection),svgName:o?m.vn.Classrooms:m.vn.Group})))}function E(e,t){return function(e){if(Array.isArray(e))return e}(e)||function(e,t){var n=null==e?null:"undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null!=n){var r,o,a,i,c=[],s=!0,l=!1;try{if(a=(n=n.call(e)).next,0===t){if(Object(n)!==n)return;s=!1}else for(;!(s=(r=a.call(n)).done)&&(c.push(r.value),c.length!==t);s=!0);}catch(e){l=!0,o=e}finally{try{if(!s&&null!=n.return&&(i=n.return(),Object(i)!==i))return}finally{if(l)throw o}}return c}}(e,t)||function(e,t){if(e){if("string"==typeof e)return I(e,t);var n={}.toString.call(e).slice(8,-1);return"Object"===n&&e.constructor&&(n=e.constructor.name),"Map"===n||"Set"===n?Array.from(e):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?I(e,t):void 0}}(e,t)||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.")}()}function I(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=Array(t);n<t;n++)r[n]=e[n];return r}function O(e){var t;if(!e.typeId)return"ultramarine";switch(e.typeId){case c.E.User:return"number"==typeof e.userType?2===e.userType?"ultramarine":"indigo":e.userType===s.Y.Learner?"ultramarine":"indigo";case c.E.Classroom:return"teal";case c.E.ClassroomGroup:return(0,l.I)(null===(t=e.metadata)||void 0===t?void 0:t.colour)}}function j(e){var t,n,o,s=u.G.isType(e.selection,c.E.Classroom),l=u.G.isType(e.selection,c.E.ClassroomGroup),p=e.onClickExpand&&(s||l),f=!!(null===(t=e.selection.users||e.selection.enrolments)||void 0===t?void 0:t.count),d=!!(null===(o=null===(n=e.selection.users)||void 0===n?void 0:n.data)||void 0===o?void 0:o.length),g=E(r.useState(!1),2),v=g[0],y=g[1],b=E(r.useState(p&&f),2),S=b[0],C=b[1];if(r.useEffect((function(){C(p&&f)}),[p,f]),d){var I=e.selection,j=O(e.selection);return r.createElement("div",{className:"d-flex align-items-center flex-wrap me-1 mt-1 pb-1 ps-1 pe-4 position-relative border-".concat(j," text-").concat(j," ").concat(h.bubble)},I.users.data.map((function(t){return r.createElement(N,{key:"".concat(t.id,":").concat(e.selection.id),selection:t,colourVariant:j,hasStudentExperience:e.hasStudentExperience})})),r.createElement(a.L,{className:"cursor-pointer position-absolute text-".concat(j," ").concat(h.removeBubble),onClick:function(){return e.onClickRemove(e.selection)}},r.createElement(i.x,{svgName:m.vn.Close,className:"d-flex align-items-center ".concat(h.svgContainer)})))}return r.createElement(N,{selection:e.selection,canExpand:S,hasExpanded:v,onClickExpand:function(){y(!0),e.onClickExpand(e.selection.id)},onClickRemove:e.onClickRemove,colourVariant:O(e.selection),hasStudentExperience:e.hasStudentExperience})}function N(e){var t=e.colourVariant||O(e.selection),n=e.selection.name;return e.selection.typeId===c.E.User&&(n=e.hasStudentExperience?p.l.getDisplayName(e.selection):p.l.getFullName(e.selection)),r.createElement("div",{className:"".concat(h.selection," bg-").concat(t," rounded-pill text-").concat(t," d-flex align-items-center me-1 mt-1 overflow-hidden")},!e.hideExpander&&r.createElement(C,{canExpand:e.canExpand,hasExpanded:e.hasExpanded,onClickExpand:e.onClickExpand,selection:e.selection}),r.createElement("span",{className:"mx-1 text-white text-truncate"},n),o.q.isFunction(e.onClickRemove)&&r.createElement(a.L,{className:"d-flex align-items-center cursor-pointer align-self-stretch text-white ".concat(h.remove),onClick:function(){return e.onClickRemove(e.selection)}},r.createElement(i.x,{svgName:m.vn.Close,className:"d-flex align-items-center ".concat(h.svgContainer)})))}},46459:function(e,t,n){n.d(t,{d:function(){return z},R:function(){return M}});var r=n(32735),o=n(57857),a=n(40221),i=n(51071),c=n(8952),s=n(42648),l=n(53808),u=n(85887),m=n(39396),p=n(85475),f=n(7557),d=function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols){var o=0;for(r=Object.getOwnPropertySymbols(e);o<r.length;o++)t.indexOf(r[o])<0&&Object.prototype.propertyIsEnumerable.call(e,r[o])&&(n[r[o]]=e[r[o]])}return n};function g(e,t,n,r,o){var a="form-control";return n||(a+=" ".concat(f.Z.inputWithoutHighlight)),"left"===e&&(a+=" ".concat(f.Z.inputWithLeftIcon)),("right"===e&&!t||"left"===e&&t)&&(a+=" ".concat(f.Z.inputWithRightIcon)),"right"===e&&t&&(a+=" ".concat(f.Z.inputWithTwoRightIcons)),"lg"===o&&(a+=" form-control-lg"),"sm"===o&&(a+=" form-control-sm"),r&&(a+=" ".concat(r)),a}function v(e){var t="d-inline-block svg-container";return l.q.isFunction(e)?t+" cursor-pointer":t}function y(e){var t=e.onClickSearchIcon,n=e.searchIconPlacement,o=e.showClearInputIcon,a=e.onClickClearInput,i=e.highlightOnFocus,c=e.className,s=e.formSize,l=d(e,["onClickSearchIcon","searchIconPlacement","showClearInputIcon","onClickClearInput","highlightOnFocus","className","formSize"]),u=function(){return r.createElement("div",{className:"d-inline-block"},r.createElement(m.x,{svgName:p.vn.Search,size:m.S.Standard,onClick:t,className:v(t)}))};return r.createElement("div",{className:"position-relative ".concat(f.Z.inputContainer)},"left"===n&&r.createElement("div",{className:"".concat(f.Z.iconContainer," ").concat(f.Z.leftIconContainer)},r.createElement(u,null)),r.createElement("input",Object.assign({className:g(n,o,i,c,s)},l)),("right"===n||!!o)&&r.createElement("div",{className:"".concat(f.Z.iconContainer," ").concat(f.Z.rightIconContainer)},!!o&&r.createElement((function(){return r.createElement("button",{className:"d-inline-block text-secondary ".concat(f.Z.clearButton),onMouseUp:a},r.createElement(m.x,{svgName:p.vn.Close,size:m.S.Standard,className:v(a)}))}),null),"right"===n&&r.createElement(u,null)))}var h=n(90547),b=n(5256),S=n(78523);function C(e,t){return function(e){if(Array.isArray(e))return e}(e)||function(e,t){var n=null==e?null:"undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null!=n){var r,o,a,i,c=[],s=!0,l=!1;try{if(a=(n=n.call(e)).next,0===t){if(Object(n)!==n)return;s=!1}else for(;!(s=(r=a.call(n)).done)&&(c.push(r.value),c.length!==t);s=!0);}catch(e){l=!0,o=e}finally{try{if(!s&&null!=n.return&&(i=n.return(),Object(i)!==i))return}finally{if(l)throw o}}return c}}(e,t)||E(e,t)||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.")}()}function E(e,t){if(e){if("string"==typeof e)return I(e,t);var n={}.toString.call(e).slice(8,-1);return"Object"===n&&e.constructor&&(n=e.constructor.name),"Map"===n||"Set"===n?Array.from(e):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?I(e,t):void 0}}function I(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=Array(t);n<t;n++)r[n]=e[n];return r}var O=function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols){var o=0;for(r=Object.getOwnPropertySymbols(e);o<r.length;o++)t.indexOf(r[o])<0&&Object.prototype.propertyIsEnumerable.call(e,r[o])&&(n[r[o]]=e[r[o]])}return n},j="shared.searchBar",N=l.q.isFunction;function w(e){return e.renderAsForm?r.createElement("form",{onSubmit:e.onSubmit},e.children):r.createElement("div",{className:"w-100"},e.children)}function x(e){var t=S.aY(e.initialLocalSuggestions,e.recentSearches),n=C(r.useState(e.initialQuery||""),2),a=n[0],i=n[1],m=C(r.useState(t),2),p=m[0],f=m[1],d=r.useMemo((function(){return S.yr(p,e.suggestionsHeading,e.recentSearchHeading||o.T.getPhrase(j,"recentSearchesHeading"),e.getSections,e.suggestionLimit,e.transformSections)}),[p]);r.useEffect((function(){u.t.isEqual(t,p)||a&&a.length>=(null==e?void 0:e.activationLength)||f(t)}),[t]),r.useEffect((function(){"function"==typeof e.onSuggestionUpdated&&e.onSuggestionUpdated(d)}),[d]);var g=r.useRef(null),v=r.useRef(!1);S.of(g);var x=C(r.useState(e.initialQuery||""),2),k=x[0],T=x[1],L=C(r.useState("none"),2),R=L[0],A=L[1],U=(0,b.a)(h.r.XS);r.useEffect((function(){e.resetSuggestionsOnNoActivation&&a&&(a.length>=e.activationLength||F())}),[a]),r.useEffect((function(){if(!a.length){var t=S.aY(e.initialLocalSuggestions,e.recentSearches);f(t)}}),[e.initialLocalSuggestions,e.recentSearches]),r.useEffect((function(){var t=e.initialQuery||"";a!==t&&(i(t),T(t))}),[e.initialQuery]),r.useEffect((function(){g.current&&e.autoFocusInput&&g.current.focus()}),[e.autoFocusInput]);var F=function(){var t=S.aY(e.initialLocalSuggestions,e.recentSearches);f(t)},P=function(){i(""),T("")};(0,S.iV)(e.controlsRef,P,i,(function(){var e;null===(e=g.current)||void 0===e||e.focus()}),(function(){var e;null===(e=g.current)||void 0===e||e.blur()}));var B,_=function(){A("none")},G=function(t){t.preventDefault(),N(e.onSubmit)&&e.onSubmit(a,g.current),e.clearQueryOnSelect&&P()},q=r.useMemo((function(){return e.debounceTime?l.q.debounce(S.KC(e,f,F),e.debounceTime):S.KC(e,f,F)}),[e.debounceTime].concat(function(e){if(Array.isArray(e))return I(e)}(B=e.onSuggestionDependencies)||function(e){if("undefined"!=typeof Symbol&&null!=e[Symbol.iterator]||null!=e["@@iterator"])return Array.from(e)}(B)||E(B)||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.")}()));function D(){return"boolean"==typeof e.alwaysRenderSuggestions?e.alwaysRenderSuggestions:!!(e.alwaysRenderSuggestionsWhenFocused&&a.length>=e.activationLength)&&document.activeElement===g.current}return r.createElement(w,{onSubmit:G,renderAsForm:!!e.renderAsForm},r.createElement(c,Object.assign({ref:function(e){null===e||g.current||(g.current=e.input)},suggestions:d,onSuggestionsFetchRequested:q,onSuggestionHighlighted:function(t){var n=t.suggestion;("none"!==R||n)&&(v.current&&e.onArrowKeyUpOrDown&&(v.current=!1,e.onArrowKeyUpOrDown()),A(n?"suggestion":"custom"))},onSuggestionsClearRequested:function(){D()||F()},onSuggestionSelected:function(t,n){var r=n.suggestion;r.generic||(e.clearQueryOnSelect&&P(),e.onSuggestionSelected(r,g.current,t))},getSuggestionValue:function(t){return function(t){return N(e.shouldUpdateQueryOnSelection)?e.shouldUpdateQueryOnSelection(t):e.shouldUpdateQueryOnSelection}(t)?S.tV(e.valueKey,t):a},renderSuggestion:function(t,n){if(t.generic){if("empty"===t.type)return a.length>=e.activationLength&&N(e.getEmptyStateComponent)?e.getEmptyStateComponent(a):r.createElement(r.Fragment,null);if("errored"===t.type&&N(e.getErrorStateComponent)){var o=S.KC(e,f,F);return e.getErrorStateComponent((function(){return o({value:a,reason:"input-changed"})}))}if("loading"===t.type)return S.Gu(e.loadingComponentClassName)}return N(e.getSuggestionComponent)?e.getSuggestionComponent(t,n):S.Go(e.valueKey,t)},renderSuggestionsContainer:function(t){var n=t.containerProps,o=n.ref,i=O(n,["ref"]);if(!e.customScrollbarProps){var c={suggestions:p,query:a,isDropdownOpen:!!t.children};return r.createElement("div",Object.assign({ref:o},i,{onMouseOut:_}),t.children,e.getCreateComponent&&e.getCreateComponent(Object.assign({userInput:k,isActive:"custom"===R,resetQuery:P,resetSuggestions:F},c)),e.getFooterComponent&&e.getFooterComponent(c))}return r.createElement(s.ZP,Object.assign({ref:o},e.customScrollbarProps,i),t.children)},alwaysRenderSuggestions:D(),focusInputOnSuggestionClick:!U&&e.focusInputOnSuggestionClick,inputProps:{id:e.id,name:e.id,"aria-errormessage":"".concat(e.id,"Error"),"aria-label":e.label,placeholder:e.placeholder||o.T.getPhrase(j,"placeholder"),value:a,onChange:function(t,n){var r=n.newValue,o=n.method;"type"===o&&T(r),("escape"!==o||(A("none"),null==e?void 0:e.resetQueryOnEscape))&&(["up","down"].includes(o)||(i(r),N(e.onQueryChange)&&e.onQueryChange(r)))},onKeyDown:function(t){"Backspace"!==t.key||!e.onBackspace||a?"ArrowUp"!==t.key&&"ArrowDown"!==t.key||(v.current=!0):e.onBackspace()},autoFocus:!!e.autoFocusInput,highlightOnFocus:e.highlightInputOnFocus,onClickSearchIcon:!!e.submitOnClickSearchIcon&&G,searchIconPlacement:e.searchIconPlacement,showClearInputIcon:!!e.showClearInputIcon&&!!a.length,onClickClearInput:function(){P(),e.resetSuggestionsOnClear&&F(),N(e.onClickClearInput)&&e.onClickClearInput()},formSize:e.size,onBlur:function(){e.onBlur&&e.onBlur(a)},onFocus:function(){e.onFocus&&e.onFocus(a)},disabled:e.disabled},renderInputComponent:y,theme:S.gh(e.theme,!!p.generic.length),multiSection:!0,renderSectionTitle:function(t){return N(e.renderSectionTitle)?e.renderSectionTitle(t,e.sectionTitleClassName):S.w8(t,e.sectionTitleClassName)},getSectionSuggestions:S.k3},e.renderSuggestionsOnInputFocus?{shouldRenderSuggestions:function(){return N(e.renderSuggestionsOnInputFocus)?e.renderSuggestionsOnInputFocus(a):e.renderSuggestionsOnInputFocus}}:{})))}x.defaultProps={valueKey:"name",activationLength:3,suggestionLimit:5,recentSearches:[],initialLocalSuggestions:[],searchIconPlacement:"right",renderAsForm:!0,onSuggestionDependencies:[],shouldUpdateQueryOnSelection:!0,focusInputOnSuggestionClick:!0,resetQueryOnEscape:!0};var k=n(66703);function T(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=Array(t);n<t;n++)r[n]=e[n];return r}var L=function(e,t){var n,o,a=(n=r.useState(e),o=2,function(e){if(Array.isArray(e))return e}(n)||function(e,t){var n=null==e?null:"undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null!=n){var r,o,a,i,c=[],s=!0,l=!1;try{if(a=(n=n.call(e)).next,0===t){if(Object(n)!==n)return;s=!1}else for(;!(s=(r=a.call(n)).done)&&(c.push(r.value),c.length!==t);s=!0);}catch(e){l=!0,o=e}finally{try{if(!s&&null!=n.return&&(i=n.return(),Object(i)!==i))return}finally{if(l)throw o}}return c}}(n,o)||function(e,t){if(e){if("string"==typeof e)return T(e,t);var n={}.toString.call(e).slice(8,-1);return"Object"===n&&e.constructor&&(n=e.constructor.name),"Map"===n||"Set"===n?Array.from(e):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?T(e,t):void 0}}(n,o)||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.")}()),i=a[0],c=a[1];return r.useEffect((function(){var n=setTimeout((function(){return c(e)}),t);return function(){return clearTimeout(n)}}),[e,t]),i},R={emptyState:"bKTf0"},A="shared.typeaheadEmptyState";function U(e){var t=e.query,n=void 0===t?"":t,o=e.imageUrl,a=L(n,300);return r.createElement("div",{className:"d-flex flex-column align-items-center text-center",onClick:function(e){e.stopPropagation()}},r.createElement("img",{alt:"",role:"presentation",src:o,className:"pb-2 ".concat(R.emptyState)}),r.createElement("h2",{role:"status",className:"h6"},r.createElement(k.x,{namespace:A,phrase:"noResults",options:{query:a,smartCount:a.length}})))}var F=n(58424),P={emptyState:"k5mEG"},B="shared.typeaheadErrorState";function _(e){return r.createElement("div",{className:"d-flex flex-column align-items-center text-center",onClick:function(e){e.stopPropagation()}},r.createElement("img",{alt:"",role:"presentation",src:e.imageUrl,className:"pb-2 ".concat(P.emptyState)}),r.createElement("h2",{className:"h6",role:"alert"},r.createElement(k.x,{namespace:B,phrase:"error"})),r.createElement(F.L,{onClick:function(t){t.stopPropagation(),e.onClickTryAgain()},className:"btn btn-link info-link p-0"},r.createElement(k.x,{namespace:B,phrase:"tryAgain"})))}var G=n(81406),q={container:"Dc3kX",suggestionsContainerOpen:"c5t3e",selectionContainer:"kFjoN",sectionContainer:"mLrE3"},D="shared.tokenizedTypeahead",z=10;function M(e){var t;return r.createElement("div",{className:"form-control h-auto d-flex align-items-top position-relative ".concat(e.hideIcon?"":"py-1 px-0"," ").concat(e.className)},!e.hideIcon&&r.createElement(m.x,{className:"svg-container m-1",svgName:p.vn.Search}),r.createElement("div",{className:"".concat(q.selectionContainer," d-flex flex-wrap align-items-center mt-n1")},e.selections.map((function(t){return e.getInputTokenComponent?e.getInputTokenComponent(t):r.createElement(G.t,{key:t.id,selection:t,onClickRemove:e.removeSelection,onClickExpand:e.fetchSelectionMembers,hasStudentExperience:e.hasStudentExperience})})),r.createElement(x,Object.assign({},e,{onBackspace:function(){e.selections.length&&e.removeSelection(a.m.last(e.selections))},recentSearchHeading:e.recentSearchHeading||o.T.getPhrase(D,"recentSearchHeading"),placeholder:(null===(t=e.selections)||void 0===t?void 0:t.length)?" ":e.placeholder,searchIconPlacement:!1,clearQueryOnSelect:!0,getSuggestionComponent:function(t){return e.getSuggestionComponent?e.getSuggestionComponent(t):r.createElement(i.j,{entity:t,imageCdnUrl:e.imageCdnUrl,showDisplayName:e.hasStudentExperience})},getEmptyStateComponent:function(t){return r.createElement(U,{query:t,imageUrl:e.emptyStateImageUrl})},getErrorStateComponent:function(t){return r.createElement(_,{imageUrl:e.errorStateImageUrl,onClickTryAgain:t})},theme:{container:q.container,suggestionsContainerOpen:"bg-white py-1 rounded border mt-1 ".concat(q.suggestionsContainerOpen),sectionContainer:"border-bottom py-1 ".concat(q.sectionContainer)},sectionTitleClassName:"ps-2",renderSuggestionsOnInputFocus:e.renderSuggestionsOnInputFocus,onSuggestionDependencies:[e.selections]}))),!!e.sharePermissionsDescription&&r.createElement("span",{className:"px-2 text-secondary text-nowrap"},e.sharePermissionsDescription))}M.defaultProps={renderSuggestionsOnInputFocus:!0}},23454:function(e,t,n){n.d(t,{f:function(){return i}});var r=n(32735),o=n(39396),a={circle:"Uxnsl",img:"BQ87Y"};function i(e){var t;return e.imageUrl||e.svgName?e.imageUrl?r.createElement("div",{className:"".concat(a.img," rounded-circle h-100 w-100"),style:{backgroundImage:"url(".concat(e.imageUrl,")")}}," "):r.createElement("div",{className:"".concat(a.circle," ").concat(e.variant?"bg-".concat(e.variant):""," text-").concat(e.textVariant," rounded-circle h-100 w-100 ").concat(null!==(t=e.svgWrapperClassName)&&void 0!==t?t:"")},r.createElement(o.x,{svgName:e.svgName,size:e.svgSize})):r.createElement(r.Fragment,null)}i.defaultProps={textVariant:"white"}},78523:function(e,t,n){n.d(t,{aY:function(){return b},Gu:function(){return w},Zo:function(){return C},k3:function(){return L},Go:function(){return N},yr:function(){return x},tV:function(){return j},gh:function(){return A},KC:function(){return O},w8:function(){return R},iV:function(){return U},of:function(){return F}});var r=n(32735),o=n(80247),a=n(2248),i=n(53808),c=n(86120),s=n(79410),l=n(85887);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)}var m,p={isNumber:function(e){return p.isType(e,"number")},isString:function(e){return p.isType(e,"string")},isType:function(e,t){return u(e)===t}},f=n(7557);function d(e){return d="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},d(e)}function g(e){return function(e){if(Array.isArray(e))return y(e)}(e)||function(e){if("undefined"!=typeof Symbol&&null!=e[Symbol.iterator]||null!=e["@@iterator"])return Array.from(e)}(e)||v(e)||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.")}()}function v(e,t){if(e){if("string"==typeof e)return y(e,t);var n={}.toString.call(e).slice(8,-1);return"Object"===n&&e.constructor&&(n=e.constructor.name),"Map"===n||"Set"===n?Array.from(e):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?y(e,t):void 0}}function y(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=Array(t);n<t;n++)r[n]=e[n];return r}function h(e,t,n){return(t=function(e){var t=function(e){if("object"!=d(e)||!e)return e;var t=e[Symbol.toPrimitive];if(void 0!==t){var n=t.call(e,"string");if("object"!=d(n))return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}(e);return"symbol"==d(t)?t:t+""}(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function b(e,t){return h(h(h(h({},m.Recent,t),m.Local,e),m.Remote,[]),m.Generic,[])}function S(e,t){return l.t.isObject(e)&&e.hasOwnProperty(t)&&p.isString(e[t])}function C(e,t,n,r){var o=e.trim().toLowerCase();return o.length<r?[]:t.filter((function(e){return!(!S(e,n)||!p.isString(e[n]))&&e[n].trim().toLowerCase().includes(o)}))}function E(e,t){e(Object.assign(Object.assign({},b([],[])),h({},m.Generic,[{type:t,generic:!0}])))}function I(e,t,n){var r=i.q.isFunction(t.formatRemoteSuggestions)?t.formatRemoteSuggestions(e):e;r.length||!t.getEmptyStateComponent?n((function(e){return Object.assign(Object.assign({},e),h(h({},m.Remote,r),m.Generic,[]))})):E(n,"empty")}function O(e,t,n){return function(r){var o,s,l=r.value,u=r.reason;if((null===(s=null===(o=e.allowableSuggestionFetchRequestedReasons)||void 0===o?void 0:o.includes(u))||void 0===s||s)&&(l.length||n(),!(l.length<e.activationLength))){if(e.local){var p=i.q.isFunction(e.getLocalSuggestions)?e.getLocalSuggestions(l,e.local):C(l,e.local,e.valueKey,e.activationLength);if(!p.length&&e.getEmptyStateComponent)return void E(t,"empty");t((function(e){return Object.assign(Object.assign({},e),h(h({},m.Local,p),m.Generic,[]))}))}if("function"==typeof e.handleFetchSuggestions)return e.replacePreviousRemoteSuggestions?t((function(e){return Object.assign(Object.assign({},b([],[])),h({},m.Remote,e.remote))})):E(t,"loading"),void e.handleFetchSuggestions(l,(function(n){return I(n,e,t)}),(function(){return E(t,"errored")}));var f,d,g,v,y,S,O;e.getRemoteUrl&&(e.replacePreviousRemoteSuggestions?t((function(e){return Object.assign(Object.assign({},b([],[])),h({},m.Remote,e.remote))})):E(t,"loading"),f=e.getRemoteUrl,d=l,g=function(n){return I(n,e,t)},v=function(){E(t,"errored")},y=e.requestHeaders,S=e.getRemotePostBody,(O=i.q.isFunction(f)&&f(d))&&(S?c.a.ajaxRequest({resource:O,type:a.k.POST,success:g,error:v,headers:y,data:S(d)}):c.a.ajaxRequest({resource:O,type:a.k.GET,success:g,error:v,headers:y})))}}}function j(e,t){return S(t,e)?t[e]:""}function N(e,t){return S(t,e)?r.createElement(r.Fragment,null,t[e]):r.createElement(r.Fragment,null)}function w(e){return r.createElement("div",{className:"d-flex justify-content-center cursor-default ".concat(null!=e?e:""),onClick:function(e){e.stopPropagation()}},r.createElement(o.Z,{as:"span",animation:"border",role:"status"}))}function x(e,t,n,r,o,a){var c=function(t){var n=e[t];return n?n.map((function(e){return Object.assign(Object.assign({},e),{suggestionType:t})})):[]},s=c(m.Recent),l=c(m.Local),u=c(m.Remote),p=c(m.Generic);if(p.length)return[{data:p,suggestionType:m.Generic}];if(i.q.isFunction(r))return r([].concat(g(l),g(u),g(s)));var f=[];return(null==l?void 0:l.length)&&f.push({title:t,data:T(l,k(m.Local,o)),suggestionType:m.Local}),(null==u?void 0:u.length)&&f.push({title:t,data:T(u,k(m.Remote,o)),suggestionType:m.Remote}),(null==s?void 0:s.length)&&f.push({title:n,data:T(s,k(m.Recent,o)),suggestionType:m.Recent}),"function"==typeof a?a(f):f}function k(e,t){return"number"==typeof t||"boolean"==typeof t?t:t[e]||!1}function T(e,t){return"boolean"==typeof t||e.length<=t?e:e.slice(0,t)}function L(e){return e.data}function R(e,t){if(e.title)return r.createElement("div",{className:"pb-1 ".concat(null!=t?t:"")},r.createElement("strong",null,e.title))}function A(e,t){var n="function"==typeof e?e(t):e,r=function(e){return{container:"position-relative",suggestionsContainerOpen:"bg-white py-1 border rounded ".concat(f.Z.suggestionsContainerOpen),suggestionsList:"list-unstyled m-0",suggestion:"".concat(e?"":"cursor-pointer"," py-1 px-2"),suggestionHighlighted:e?"":f.Z.suggestionHighlighted,sectionContainer:"border-bottom py-1 ".concat(f.Z.sectionContainer)}}(t);return Object.assign(r,n)}function U(e,t,n,o,a){r.useEffect((function(){e&&!e.current&&(e.current={resetQuery:t,setQuery:n,focusInput:o,blurInput:a})}),[null==e?void 0:e.current])}function F(e){var t,n,o=(t=(0,s.D)("lite:search:bar:focus",{focus:!1}),n=2,function(e){if(Array.isArray(e))return e}(t)||function(e,t){var n=null==e?null:"undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null!=n){var r,o,a,i,c=[],s=!0,l=!1;try{if(a=(n=n.call(e)).next,0===t){if(Object(n)!==n)return;s=!1}else for(;!(s=(r=a.call(n)).done)&&(c.push(r.value),c.length!==t);s=!0);}catch(e){l=!0,o=e}finally{try{if(!s&&null!=n.return&&(i=n.return(),Object(i)!==i))return}finally{if(l)throw o}}return c}}(t,n)||v(t,n)||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.")}()),a=o[0],i=o[1];return r.useEffect((function(){a.focus&&(null==e?void 0:e.current)&&(e.current.focus(),i({focus:!1}))}),[a.focus]),{focusSearchBar:function(){return i({focus:!0})},shouldFocus:a.focus}}!function(e){e.Local="local",e.Recent="recent",e.Remote="remote",e.Generic="generic"}(m||(m={}))},48050:function(e,t,n){var r;n.d(t,{R:function(){return r}}),function(e){e.Subject="Subject",e.Curriculum="Curriculum",e.StreamableLearning="StreamableLearning"}(r||(r={}))},57867:function(e,t,n){n.d(t,{x:function(){return l}});var r,o=n(68003);!function(e){e.Playlists="playlists",e.Series="series",e.Videos="videos",e.PinnedVideos="pinnedVideos"}(r||(r={}));var a=n(84657),i=n(34254),c=n(48050),s=function(e){return"subjectpresentationaudiences.id:[".concat(e.join(","),"]")},l={topicsFromAllAvailablePresentations:function(e){var t={filterType:"topics",presentationId:e};return{url:o._.urlBuilder("{gateway}/v1/search/filters",t),publicUrl:o._.urlBuilder("/api/search/filters",t),key:"classification:availableTopics",normalize:!1}},availablePresentations:function(e){var t={type:null==e?void 0:e.toLowerCase()};return{url:o._.urlBuilder("/api/domain/v1/subjects/presentations/available",t),publicUrl:o._.urlBuilder("/api/subjects/presentations/available",t),key:"available:presentations:".concat(e),normalizeOptions:{namespace:"presentation"}}},topLevelTopics:function(e){var t={query:a.v.CLASSIFICATION_COLLECTION,sort:"alphabetical"};return{url:o._.urlBuilder("/api/domain/v1/subjects/presentations/".concat(e,"/classifications"),t),publicUrl:o._.urlBuilder("/api/subjects/presentations/".concat(e,"/classifications"),t),key:"presentation:".concat(e,":classifications")}},presentationById:function(e){return{url:"/api/domain/v1/subjects/presentations/".concat(e),publicUrl:"/api/subjects/presentations/".concat(e),key:"presentation:".concat(e)}},presentationBySlug:function(e,t,n){var r={type:n.toLowerCase(),contentRegion:t};return{url:o._.urlBuilder("/api/subjects/presentations/".concat(e),r),publicUrl:o._.urlBuilder("/api/subjects/presentations/".concat(e),r),key:"current:presentation:".concat(n.toLowerCase(),":").concat(t,":").concat(null!=e?e:""),bootstrapName:"presentation",normalizeOptions:{namespace:"presentation"}}},presentation:function(e,t){var n={type:null==e?void 0:e.toLowerCase()};return{url:o._.urlBuilder("/api/domain/v1/subjects/presentations",n),publicUrl:o._.urlBuilder("/api/subjects/presentations/".concat(t),n),key:"current:presentation".concat(e?":".concat(e.toLowerCase()):"").concat(t?":".concat(t):""),normalizeOptions:{namespace:"presentation"}}},classifications:function(){return{url:o._.urlBuilder("/api/domain/v1/subjects",{query:a.v.CLASSIFICATION_COLLECTION,type:c.R.Subject.toLowerCase()}),publicUrl:o._.urlBuilder("/api/subjects/classifications",{query:a.t.CLASSIFICATION_COLLECTION,type:c.R.Subject.toLowerCase()}),key:"classifications"}},classification:function(e,t,n){return{url:o._.urlBuilder("/api/domain/v1/subjects/".concat(e),{query:a.v.CLASSIFICATION(t)}),publicUrl:o._.urlBuilder("/api/subjects/classifications/".concat(e),{query:a.t.CLASSIFICATION}),key:"classification:".concat(e),error:n}},path:function(e,t){var n={type:t};return{url:o._.urlBuilder("/api/domain/v1/subjects/".concat(e,"/path"),n),publicUrl:"/api/subjects/classifications/".concat(e,"/path"),key:"classification:".concat(e,":path")}},paths:function(e){return{url:"/api/subjects/classifications/".concat(e,"/paths"),key:"classification:".concat(e,":paths")}},children:function(e){return{url:o._.urlBuilder("/api/domain/v1/subjects/".concat(e,"/children"),{query:a.v.CLASSIFICATION_COLLECTION}),publicUrl:o._.urlBuilder("/api/subjects/classifications/".concat(e,"/children"),{query:a.t.CLASSIFICATION_COLLECTION}),key:"classification:".concat(e,":children")}},videos:function(e,t,n){if(t){var a="limit:100,orderbydesc:timestamp";n.length&&(a+=",".concat(s(n)));var c={query:"{".concat(a,"}(videoCollection),subjectpresentationaudiences{presentationId:").concat(t,"}"),permissionFilterOption:i.r.StripMetadata};return{url:o._.urlBuilder("/api/domain/v1/subjects/".concat(e,"/").concat(r.PinnedVideos),c),publicUrl:o._.urlBuilder("/api/subjects/classifications/".concat(e,"/").concat(r.PinnedVideos),c),key:"classification:".concat(e,":").concat(r.PinnedVideos,":").concat(n.join(":"))}}},playlists:function(e,t,n){if(t){var c="limit:100,orderby:name";n.length&&(c+=",".concat(s(n)));var l={query:"{".concat(c,"}").concat(a.v.PLAYLIST_COLLECTION)+",subjectpresentationaudiences{presentationId:".concat(t,"}"),permissionFilterOption:i.r.StripMetadata};return{url:o._.urlBuilder("/api/domain/v1/subjects/".concat(e,"/").concat(r.Playlists),l),publicUrl:o._.urlBuilder("/api/subjects/classifications/".concat(e,"/").concat(r.Playlists),l),key:"classification:".concat(e,":").concat(r.Playlists,":").concat(n.join(":")),formatData:function(e){var t;if(e)return Object.assign(Object.assign({},e),{data:null===(t=e.data)||void 0===t?void 0:t.filter((function(e){var t;return null===(t=e.cover)||void 0===t?void 0:t.url}))})}}}},series:function(e,t,n){if(t){var c="limit:100";n.length&&(c+=",".concat(s(n)));var l={query:"{".concat(c,"}").concat(a.v.SERIES)+",subjectpresentationaudiences{presentationId:".concat(t,"}"),permissionFilterOption:i.r.StripMetadata};return{url:o._.urlBuilder("/api/domain/v1/subjects/".concat(e,"/").concat(r.Series),l),publicUrl:o._.urlBuilder("/api/subjects/classifications/".concat(e,"/").concat(r.Series),l),key:"classification:".concat(e,":").concat(r.Series,":").concat(n.join(":")),formatData:function(e){var t;if(e)return Object.assign(Object.assign({},e),{data:null===(t=e.data)||void 0===t?void 0:t.filter((function(e){var t;return null===(t=e.tallPoster)||void 0===t?void 0:t.url}))})}}}},curriculumLinks:function(e,t){return{url:o._.urlBuilder("/api/subjects/presentations/".concat(t,"/objects/").concat(e,"/classifications/paths"),{type:c.R.Curriculum.toLowerCase()}),publicUrl:o._.urlBuilder("/api/subjects/presentations/".concat(t,"/objects/").concat(e,"/classifications/paths"),{type:c.R.Curriculum.toLowerCase()}),key:"curriculum:links:".concat(e,":").concat(t),normalize:!1}},subjectLinks:function(e,t){var n=o._.urlBuilder("/api/subjects/presentations/".concat(t,"/objects/").concat(e,"/classifications/paths"),{type:c.R.Subject.toLowerCase()});return{url:n,publicUrl:n,key:"subject:links:".concat(e,":").concat(t),normalize:!1}},getMappedCurriculums:function(e,t){var n={type:c.R.Curriculum.toLowerCase()};return{url:o._.urlBuilder("/api/domain/v1/subjects/objects/".concat(e,"/presentations"),n),publicUrl:o._.urlBuilder("/api/subjects/".concat(e,"/presentations"),Object.assign(Object.assign({},n),{pid:t})),key:"mapped:curriculums:".concat(e,":").concat(t.join(",")),normalize:!1}},regionAlternatives:function(e,t,n,r){return{url:"/api/subjects/classifications/".concat(e,"/region-alternatives"),publicUrl:"/api/subjects/classifications/".concat(e,"/region-alternatives"),key:"classification:regionAlternatives:".concat(e),normalize:!1,success:t,error:n,always:r}}}},7067:function(e,t,n){n.d(t,{I:function(){return o}});var r=n(7754);function o(e){switch(e){case r.R.Pink:return"pink";case r.R.Orange:return"orange";case r.R.Green:return"green";case r.R.Blue:return"blue";case r.R.Purple:return"purple";case r.R.Indigo:return"indigo";default:return"pink"}}},38e3:function(e,t,n){n.d(t,{G:function(){return o}});var r=n(74421),o={isType:function(e,t){var n;return(null==e?void 0:e.typeId)?e.typeId===t:(null===(n=null==e?void 0:e.type)||void 0===n?void 0:n.toLowerCase())===r.E[t].toLowerCase()},isResource:function(e){return o.isType(e,r.E.Resource)},isClassification:function(e){return"Subject"===e.type}}},7557:function(e,t){t.Z={inputWithoutHighlight:"cKcry",suggestionsContainerOpen:"avM9L",sectionContainer:"u35Wz",suggestionHighlighted:"gFitp",clearButton:"TAoT9",inputWithLeftIcon:"Rt24D",inputWithRightIcon:"pxKzq",inputWithTwoRightIcons:"Oerjh",iconContainer:"h8OBl",leftIconContainer:"L5mrV",rightIconContainer:"V23aG"}}}]);
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
(self.webpackChunk_clickview_library_editor=self.webpackChunk_clickview_library_editor||[]).push([[7071],{33757:function(e,n,t){"use strict";t.d(n,{u:function(){return w}});var o=t(43823),r=t(21161),i=t(11306),l=t(57857),a=t(31647),s=t(85475),u=t(45390),c=t(93569),p=t(82936),f=t(40622),d="bimhO";function h(e){return h="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},h(e)}function m(e,n){for(var t=0;t<n.length;t++){var o=n[t];o.enumerable=o.enumerable||!1,o.configurable=!0,"value"in o&&(o.writable=!0),Object.defineProperty(e,y(o.key),o)}}function y(e){var n=function(e){if("object"!=h(e)||!e)return e;var n=e[Symbol.toPrimitive];if(void 0!==n){var t=n.call(e,"string");if("object"!=h(t))return t;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}(e);return"symbol"==h(n)?n:n+""}function v(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){})))}catch(e){}return(v=function(){return!!e})()}function g(e){return g=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(e){return e.__proto__||Object.getPrototypeOf(e)},g(e)}function b(e,n){return b=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(e,n){return e.__proto__=n,e},b(e,n)}t(8757);var w=function(e){function n(){return function(e,n){if(!(e instanceof n))throw new TypeError("Cannot call a class as a function")}(this,n),function(e,n,t){return n=g(n),function(e,n){if(n&&("object"==h(n)||"function"==typeof n))return n;if(void 0!==n)throw new TypeError("Derived constructors may only return object or undefined");return function(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}(e)}(e,v()?Reflect.construct(n,t||[],g(e).constructor):n.apply(e,t))}(this,n,arguments)}return function(e,n){if("function"!=typeof n&&null!==n)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(n&&n.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),Object.defineProperty(e,"prototype",{writable:!1}),n&&b(e,n)}(n,e),t=n,(y=[{key:"initialize",value:function(){this.options.model||a.Q.Ry.throw(new i.H("DraggableVideoBehavior must be passed a Video model")),this.listenTo(u.jr.VIDEO_DRAG_DROP,"drag:style:".concat(this.options.model.id),this.styleDragStart),this.listenTo(u.jr.VIDEO_DRAG_DROP,"drag:stop",this.styleDragStop)}},{key:"lang",get:function(){return"libraryEditor.behaviors"}},{key:"helper",value:function(){var e=this.getVideoModels();return new p.ND({text:e.length>1?l.T.getPhrase(this.lang,"videos",{videoCount:e.length}):e[0].get("name"),svg:s.Nj.getSvg(s.vn.Play)}).render().el}},{key:"getSelector",value:function(){return this.view.getUI(this.options.selector)}},{key:"styleDragStart",value:function(){this.getSelector().addClass(d)}},{key:"styleDragStop",value:function(){this.getSelector().removeClass(d)}},{key:"start",value:function(){var e=this.getVideoModels(),n=o.Radio.channel(u.jr.VIDEO_DRAG_DROP);n.trigger("drag:start",e,this.options.collectionIdentifier),r.each(e,(function(e){return n.trigger("drag:style:".concat(e.id))}))}},{key:"stop",value:function(){o.Radio.channel(u.jr.VIDEO_DRAG_DROP).trigger("drag:stop")}},{key:"getVideoModels",value:function(){var e=this,n=c.S0.GetSelectedModels({key:this.options.collectionIdentifier.toString(),type:f.De.VIDEO_LIST,collection:this.view.model.collection});return r.any(n,(function(n){return n.id===e.view.model.id}))||(n=[this.view.model]),n.length?n:[this.view.model]}},{key:"getClassMappings",value:function(){return{"ui-draggable":p.W2.draggable,"ui-draggable-disabled":p.W2.disabled,"ui-draggable-handle":p.W2.handle,"ui-draggable-dragging":p.W2.dragging}}},{key:"onRender",value:function(){var e=this.getSelector(),n={helper:r.bind(this.helper,this),start:r.bind(this.start,this),stop:r.bind(this.stop,this)};n.classes=this.getClassMappings(),e.draggable(r.extend({},p.wc,n))}},{key:"onBeforeDestroy",value:function(){var e=this.getSelector();e.draggable("instance")&&e.draggable("destroy")}}])&&m(t.prototype,y),Object.defineProperty(t,"prototype",{writable:!1}),t;var t,y}(a.Q.cg)},12542:function(e,n,t){"use strict";t.d(n,{X:function(){return m},Y:function(){return y}});var o=t(21161),r=t(31647),i=t(93569),l=t(16317),a=t.n(l);function s(e){return s="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},s(e)}function u(e,n,t){return(n=p(n))in e?Object.defineProperty(e,n,{value:t,enumerable:!0,configurable:!0,writable:!0}):e[n]=t,e}function c(e,n){for(var t=0;t<n.length;t++){var o=n[t];o.enumerable=o.enumerable||!1,o.configurable=!0,"value"in o&&(o.writable=!0),Object.defineProperty(e,p(o.key),o)}}function p(e){var n=function(e){if("object"!=s(e)||!e)return e;var n=e[Symbol.toPrimitive];if(void 0!==n){var t=n.call(e,"string");if("object"!=s(t))return t;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}(e);return"symbol"==s(n)?n:n+""}function f(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){})))}catch(e){}return(f=function(){return!!e})()}function d(e){return d=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(e){return e.__proto__||Object.getPrototypeOf(e)},d(e)}function h(e,n){return h=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(e,n){return e.__proto__=n,e},h(e,n)}var m="checkbox-all",y=function(e){function n(e){return function(e,n){if(!(e instanceof n))throw new TypeError("Cannot call a class as a function")}(this,n),function(e,n,t){return n=d(n),function(e,n){if(n&&("object"==s(n)||"function"==typeof n))return n;if(void 0!==n)throw new TypeError("Derived constructors may only return object or undefined");return function(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}(e)}(e,f()?Reflect.construct(n,t||[],d(e).constructor):n.apply(e,t))}(this,n,[e])}return function(e,n){if("function"!=typeof n&&null!==n)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(n&&n.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),Object.defineProperty(e,"prototype",{writable:!1}),n&&h(e,n)}(n,e),t=n,(r=[{key:"initialize",value:function(){this.getViewModel(),this.bindListeners()}},{key:"name",get:function(){return"BulkCheckboxComponent"}},{key:"className",get:function(){return this.options.className}},{key:"template",get:function(){return a()}},{key:"getViewModel",value:function(){this.model=i.S0.GetViewModel(this.options.key,this.options.type)}},{key:"bindListeners",value:function(){this.options.disabled||this.listenTo(this.model,"change",this.onChange)}},{key:"events",value:function(){return{"change .form-check-input":"onClick"}}},{key:"onChange",value:function(){this.checkAllChecked(),this.render()}},{key:"checkAllChecked",value:function(){var e=o.values(this.model.omit("all",m));o.every(e,(function(e){return!!e}))&&(this.model.get("all")||e.length===this.options.numberOfItems)&&this.model.set(u({all:!0},this.getItemId(),!0))}},{key:"getItemId",value:function(){return m}},{key:"onClick",value:function(){this.model.get(this.getItemId())?this.model.clear():(this.model.clear(),this.model.set(u({all:!0},this.getItemId(),!0)))}},{key:"viewOptions",value:function(){return{id:this.getItemId(),checked:this.model.get(m),disabled:this.options.disabled,checkboxClassName:this.options.checkboxClassName}}}])&&c(t.prototype,r),Object.defineProperty(t,"prototype",{writable:!1}),t;var t,r}(r.Q.wA)},7020:function(e,n,t){"use strict";t.d(n,{s:function(){return h}});var o=t(31647),r=t(27866),i=t(30225),l=t.n(i),a={durationBar:"zIvWt"};function s(e){return s="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},s(e)}function u(e,n){for(var t=0;t<n.length;t++){var o=n[t];o.enumerable=o.enumerable||!1,o.configurable=!0,"value"in o&&(o.writable=!0),Object.defineProperty(e,c(o.key),o)}}function c(e){var n=function(e){if("object"!=s(e)||!e)return e;var n=e[Symbol.toPrimitive];if(void 0!==n){var t=n.call(e,"string");if("object"!=s(t))return t;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}(e);return"symbol"==s(n)?n:n+""}function p(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){})))}catch(e){}return(p=function(){return!!e})()}function f(e){return f=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(e){return e.__proto__||Object.getPrototypeOf(e)},f(e)}function d(e,n){return d=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(e,n){return e.__proto__=n,e},d(e,n)}var h=function(e){function n(e){return function(e,n){if(!(e instanceof n))throw new TypeError("Cannot call a class as a function")}(this,n),function(e,n,t){return n=f(n),function(e,n){if(n&&("object"==s(n)||"function"==typeof n))return n;if(void 0!==n)throw new TypeError("Derived constructors may only return object or undefined");return function(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}(e)}(e,p()?Reflect.construct(n,t||[],f(e).constructor):n.apply(e,t))}(this,n,[e])}return function(e,n){if("function"!=typeof n&&null!==n)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(n&&n.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),Object.defineProperty(e,"prototype",{writable:!1}),n&&d(e,n)}(n,e),t=n,(o=[{key:"name",get:function(){return"ClipDurationIndicatorComponent"}},{key:"template",get:function(){return l()}},{key:"getDuration",value:function(){return 1e3*(this.model.get("endTime")-this.model.get("startTime"))}},{key:"getDisplayDuration",value:function(){var e=r.T.ToDisplayDurationNewStyle(this.getDuration(),!0),n=r.T.ToDisplayDuration(1e3*this.model.get("startTime")),t=r.T.ToDisplayDuration(1e3*this.model.get("endTime"));return"".concat(e," (").concat(n," - ").concat(t,")")}},{key:"getClipPosition",value:function(){var e;return"left:"+this.model.get("startTime")/((null===(e=this.model._parentVideo)||void 0===e?void 0:e.get("duration"))/1e3)*100+"%"}},{key:"getClipDurationWidth",value:function(){return"width:"+Math.round(this.getDuration()/this.model._parentVideo.get("duration")*100)+"%"}},{key:"viewOptions",value:function(){return{styles:a,startDuration:r.T.ToDisplayDuration(0),parentDuration:r.T.ToDisplayDuration(this.model._parentVideo.get("duration")),clipDurationWidth:this.getClipDurationWidth(),clipPosition:this.getClipPosition(),duration:this.getDisplayDuration()}}}])&&u(t.prototype,o),Object.defineProperty(t,"prototype",{writable:!1}),t;var t,o}(o.Q.wA)},50002:function(e,n,t){"use strict";t.d(n,{F:function(){return y}});var o=t(31647),r=t(57857),i=t(27866),l=t(58542),a=t(96088),s=t(27718),u=t.n(s);function c(e){return c="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},c(e)}function p(e,n){for(var t=0;t<n.length;t++){var o=n[t];o.enumerable=o.enumerable||!1,o.configurable=!0,"value"in o&&(o.writable=!0),Object.defineProperty(e,f(o.key),o)}}function f(e){var n=function(e){if("object"!=c(e)||!e)return e;var n=e[Symbol.toPrimitive];if(void 0!==n){var t=n.call(e,"string");if("object"!=c(t))return t;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}(e);return"symbol"==c(n)?n:n+""}function d(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){})))}catch(e){}return(d=function(){return!!e})()}function h(e){return h=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(e){return e.__proto__||Object.getPrototypeOf(e)},h(e)}function m(e,n){return m=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(e,n){return e.__proto__=n,e},m(e,n)}var y=function(e){function n(e){return function(e,n){if(!(e instanceof n))throw new TypeError("Cannot call a class as a function")}(this,n),function(e,n,t){return n=h(n),function(e,n){if(n&&("object"==c(n)||"function"==typeof n))return n;if(void 0!==n)throw new TypeError("Derived constructors may only return object or undefined");return function(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}(e)}(e,d()?Reflect.construct(n,t||[],h(e).constructor):n.apply(e,t))}(this,n,[e])}return function(e,n){if("function"!=typeof n&&null!==n)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(n&&n.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),Object.defineProperty(e,"prototype",{writable:!1}),n&&m(e,n)}(n,e),t=n,(o=[{key:"name",get:function(){return"InteractiveQuestionListComponent"}},{key:"defaults",get:function(){return{preview:!1}}},{key:"template",get:function(){return u()}},{key:"lang",get:function(){return"shared.interactiveQuestionList"}},{key:"getHeading",value:function(){return this.options.preview?r.T.getPhrase(this.lang,"previewHeading",{previewLength:this.getPreviewInteractions().length,fullLength:this.getInteractions().length}):r.T.getPhrase(this.lang,"heading",{length:this.getInteractions().length})}},{key:"getQuestionList",value:function(){return this.options.preview?this.getPreviewInteractions():this.getInteractions()}},{key:"getQuestionListElements",value:function(){return this.getQuestionList().map((function(e){var n=e.interactions.first(),t=l.w.getTypeInfo(n.get("typeId")),o=t.bgClassName,r=t.svgEl,a=t.name;return{bgClassName:o,svgEl:r,name:n.get("name"),time:i.T.ToDisplayDuration(e.get("visibleAt")),typeName:a}}))}},{key:"getPreviewInteractions",value:function(){return new a.Y(this.getInteractions().slice(0,5))}},{key:"getInteractions",value:function(){return this.model._timepoints}},{key:"viewOptions",value:function(){return{heading:this.getHeading(),questionList:this.getQuestionList(),questionListElements:this.getQuestionListElements()}}}])&&p(t.prototype,o),Object.defineProperty(t,"prototype",{writable:!1}),t;var t,o}(o.Q.wA)},53609:function(e,n,t){"use strict";t.d(n,{b:function(){return y}});var o=t(31647),r=t(88483),i=t(53825),l=t(85475),a=t(93569),s=t(75176),u=t.n(s);function c(e){return c="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},c(e)}function p(e,n){for(var t=0;t<n.length;t++){var o=n[t];o.enumerable=o.enumerable||!1,o.configurable=!0,"value"in o&&(o.writable=!0),Object.defineProperty(e,f(o.key),o)}}function f(e){var n=function(e){if("object"!=c(e)||!e)return e;var n=e[Symbol.toPrimitive];if(void 0!==n){var t=n.call(e,"string");if("object"!=c(t))return t;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}(e);return"symbol"==c(n)?n:n+""}function d(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){})))}catch(e){}return(d=function(){return!!e})()}function h(e){return h=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(e){return e.__proto__||Object.getPrototypeOf(e)},h(e)}function m(e,n){return m=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(e,n){return e.__proto__=n,e},m(e,n)}var y=function(e){function n(e){return function(e,n){if(!(e instanceof n))throw new TypeError("Cannot call a class as a function")}(this,n),function(e,n,t){return n=h(n),function(e,n){if(n&&("object"==c(n)||"function"==typeof n))return n;if(void 0!==n)throw new TypeError("Derived constructors may only return object or undefined");return function(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}(e)}(e,d()?Reflect.construct(n,t||[],h(e).constructor):n.apply(e,t))}(this,n,[e])}return function(e,n){if("function"!=typeof n&&null!==n)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(n&&n.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),Object.defineProperty(e,"prototype",{writable:!1}),n&&m(e,n)}(n,e),t=n,(o=[{key:"name",get:function(){return"InteractiveThumbnailComponent"}},{key:"template",get:function(){return u()}},{key:"regions",value:function(){return{thumbnail:{el:".thumbnail-region",replaceElement:!0}}}},{key:"getInteractiveUrl",value:function(){return a.M2.getProductUrl(this.model,this.options.config)}},{key:"renderThumbnail",value:function(){var e=new i.Z({model:this.model,thumbnailOptions:{size:r.h2.Medium},thumbnail:a.M2.getThumbnail(this.model),playIcon:!0,duration:this.model._parentVideo.get("duration"),durationNewStyle:!0});this.showChildView("thumbnail",e)}},{key:"viewOptions",value:function(){return{externalLink:this.getInteractiveUrl(),externalLinkSvg:l.Nj.getSvg(l.vn.NewWindow)}}},{key:"onRender",value:function(){this.renderThumbnail()}}])&&p(t.prototype,o),Object.defineProperty(t,"prototype",{writable:!1}),t;var t,o}(o.Q.wA)},39809:function(e,n,t){"use strict";t.d(n,{Z:function(){return g}});var o=t(57857),r=t(31647),i=t(83324),l=t(93569),a=t(7190),s=t(85348),u=t.n(s),c={mediaTypeBadge:"goWw9"};function p(e){return p="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},p(e)}function f(e,n,t){return(n=h(n))in e?Object.defineProperty(e,n,{value:t,enumerable:!0,configurable:!0,writable:!0}):e[n]=t,e}function d(e,n){for(var t=0;t<n.length;t++){var o=n[t];o.enumerable=o.enumerable||!1,o.configurable=!0,"value"in o&&(o.writable=!0),Object.defineProperty(e,h(o.key),o)}}function h(e){var n=function(e){if("object"!=p(e)||!e)return e;var n=e[Symbol.toPrimitive];if(void 0!==n){var t=n.call(e,"string");if("object"!=p(t))return t;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}(e);return"symbol"==p(n)?n:n+""}function m(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){})))}catch(e){}return(m=function(){return!!e})()}function y(e){return y=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(e){return e.__proto__||Object.getPrototypeOf(e)},y(e)}function v(e,n){return v=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(e,n){return e.__proto__=n,e},v(e,n)}var g=function(e){function n(e){return function(e,n){if(!(e instanceof n))throw new TypeError("Cannot call a class as a function")}(this,n),function(e,n,t){return n=y(n),function(e,n){if(n&&("object"==p(n)||"function"==typeof n))return n;if(void 0!==n)throw new TypeError("Derived constructors may only return object or undefined");return function(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}(e)}(e,m()?Reflect.construct(n,t||[],y(e).constructor):n.apply(e,t))}(this,n,[e])}return function(e,n){if("function"!=typeof n&&null!==n)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(n&&n.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),Object.defineProperty(e,"prototype",{writable:!1}),n&&v(e,n)}(n,e),t=n,(r=[{key:"name",get:function(){return"MediaTypeBadgeComponent"}},{key:"template",get:function(){return u()}},{key:"lang",get:function(){return"shared.mediaTypeBadge"}},{key:"getMediaTypeOptions",value:function(e){var n=f(f({},i.D.Interactive,"interactiveLabel"),i.D.Clip,"clipLabel");return{bgClass:a.uB.mapMediaTypeToClass(e),label:o.T.getPhrase(this.lang,n[l.M2.getMediaType(e)]),svg:a.uB.mapMediaTypeToSvg(e)}}},{key:"viewOptions",value:function(){return{styles:c,mediaType:this.getMediaTypeOptions(this.model)}}}])&&d(t.prototype,r),Object.defineProperty(t,"prototype",{writable:!1}),t;var t,r}(r.Q.wA)},37071:function(e,n,t){"use strict";t.d(n,{j:function(){return P}});var o=t(43823),r=t(25417),i=t(99249),l=t(31647),a=t(52076),s=t(70065),u=t(14898),c=t(58688),p=t(45390),f=t(93569),d=t(56704),h=t.n(d),m=t(69843);function y(e){return y="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},y(e)}function v(e,n,t){return(n=b(n))in e?Object.defineProperty(e,n,{value:t,enumerable:!0,configurable:!0,writable:!0}):e[n]=t,e}function g(e,n){for(var t=0;t<n.length;t++){var o=n[t];o.enumerable=o.enumerable||!1,o.configurable=!0,"value"in o&&(o.writable=!0),Object.defineProperty(e,b(o.key),o)}}function b(e){var n=function(e){if("object"!=y(e)||!e)return e;var n=e[Symbol.toPrimitive];if(void 0!==n){var t=n.call(e,"string");if("object"!=y(t))return t;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}(e);return"symbol"==y(n)?n:n+""}function w(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){})))}catch(e){}return(w=function(){return!!e})()}function k(e){return k=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(e){return e.__proto__||Object.getPrototypeOf(e)},k(e)}function O(e,n){return O=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(e,n){return e.__proto__=n,e},O(e,n)}var P=function(e){function n(e){return function(e,n){if(!(e instanceof n))throw new TypeError("Cannot call a class as a function")}(this,n),function(e,n,t){return n=k(n),function(e,n){if(n&&("object"==y(n)||"function"==typeof n))return n;if(void 0!==n)throw new TypeError("Derived constructors may only return object or undefined");return function(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}(e)}(e,w()?Reflect.construct(n,t||[],k(e).constructor):n.apply(e,t))}(this,n,[e])}return function(e,n){if("function"!=typeof n&&null!==n)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(n&&n.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),Object.defineProperty(e,"prototype",{writable:!1}),n&&O(e,n)}(n,e),t=n,d=[{key:"initialize",value:function(){this.initViewModel(),this.listenTo(this.channelName,"thumbnail:load",this.onThumbnailLoad),this.listenTo(this.channelName,"click:show:preview",this.onClickTogglePreview),this.listenTo(this.options.collectionViewChannel,"close:preview",this.onCloseCollectionPreview)}},{key:"name",get:function(){return"VideoItemComponent"}},{key:"defaults",get:function(){return{componentType:c.U.Base,allowBulk:!1}}},{key:"behaviors",get:function(){return u.a.getBehaviors(this,this.options.componentType)}},{key:"template",get:function(){return h()}},{key:"channelName",get:function(){return f.N0.generateUniqueChannelName(this)}},{key:"getTypeClassName",value:function(){return this.options.componentType===c.U.ProcessingVideo?m.Z.processingVideo:""}},{key:"className",get:function(){var e="";return this.options.allowBulk&&(e+=" ".concat(m.Z.allowBulk)),this.options.componentType&&(e+=" ".concat(this.getTypeClassName())),e}},{key:"props",get:function(){return["collectionIdentifier"]}},{key:"elements",get:function(){return{"drag-selector":".drag-item",previewContainer:".".concat(m.Z.previewContainer)}}},{key:"regions",value:function(){return v(v(v(v(v({},c.H.Checkbox,{replaceElement:!0,el:".bulk-checkbox-region"}),c.H.Thumbnail,".thumbnail-region"),c.H.Metadata,".metadata-region"),c.H.VideoActions,".video-actions-region"),c.H.VideoInfo,".video-info-region")}},{key:"events",value:function(){return{click:"onClick"}}},{key:"initViewModel",value:function(){this.viewModel=i.r.get("".concat(this.name,":").concat(this.model.get("id")),{previewOpen:!1})}},{key:"isClickable",value:function(){return this.options.componentType!==c.U.ProcessingVideo}},{key:"onThumbnailLoad",value:function(){this.thumbnailLoaded=!0}},{key:"onClick",value:function(){this.isClickable()&&this.onClickTogglePreview(!1)}},{key:"onClickTogglePreview",value:function(){var e=!(arguments.length>0&&void 0!==arguments[0])||arguments[0];o.Radio.channel(this.options.collectionViewChannel).trigger("close:preview",this.cid),this.togglePreview(!this.viewModel.get("previewOpen")),this.logTogglePreviewAction(e)}},{key:"onNavigateAway",value:function(){this.viewModel.set({previewOpen:!1})}},{key:"togglePreview",value:function(e){var n=this;if(this.viewModel.set({previewOpen:e}),e)return this.setPreviewHeight(),this.listenToOnce(r.G.SHELL,l.Q.Vy.ROUTE,this.onNavigateAway),void this.render();this.stopListening(o.Radio.channel(r.G.SHELL),l.Q.Vy.ROUTE),this.getUI("previewContainer").height(0),window.setTimeout((function(){return n.render()}),300)}},{key:"setPreviewHeight",value:function(){var e=this;this.listenToOnce(this.getRegion(c.H.VideoInfo),"show",(function(){var n=e.getRegion(c.H.VideoInfo).currentView;e.listenTo(n,"render",(function(){e.getUI("previewContainer").height(n.$el.outerHeight())})),e.listenTo(e.channelName,"resize:preview",(function(){window.setTimeout((function(){return e.getUI("previewContainer").height(n.$el.outerHeight())}),0)})),n.isRendered()&&e.getUI("previewContainer").height(n.$el.outerHeight())}))}},{key:"onCloseCollectionPreview",value:function(e){this.cid!==e&&this.viewModel.get("previewOpen")&&this.togglePreview(!1)}},{key:"shouldLazyLoadThumbnail",value:function(){return!!f.Vm.isLazyLoadSupported(p.v9)&&!this.thumbnailLoaded}},{key:"logTogglePreviewAction",value:function(e){var n=a.k.mergeOptions(this.options.analyticsOptions,{actionType:s.Vw.Click,descriptor:s._S.TogglePreview,workflowPhase:s.eu.Complete}),t={buttonClicked:e,show:this.viewModel.get("previewOpen")};a.k.logUserAction(t,n)}},{key:"viewOptions",value:function(){return{styles:m.Z,allowBulk:this.options.allowBulk,bulkPlaceholder:this.options.componentType===c.U.ProcessingVideo&&this.options.allowBulk,isClickable:this.isClickable(),isLastItem:this.options.isLastItem}}},{key:"onRender",value:function(){u.a.renderRegions(this,this.options.componentType)}},{key:"onAttach",value:function(){this.viewModel.get("previewOpen")&&this.togglePreview(!0)}}],d&&g(t.prototype,d),Object.defineProperty(t,"prototype",{writable:!1}),t;var t,d}(l.Q.wA)},14898:function(e,n,t){"use strict";t.d(n,{a:function(){return g}});var o=t(21161),r=t(11306),i=t(31647),l=t(58688),a=t(33757);function s(e){return s="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},s(e)}var u,c,p,f=(u={},p=function(e){return[{behaviorClass:a.u,collectionIdentifier:e.options.collectionIdentifier,model:e.options.model,selector:"drag-selector"}]},(c=function(e){var n=function(e){if("object"!=s(e)||!e)return e;var n=e[Symbol.toPrimitive];if(void 0!==n){var t=n.call(e,"string");if("object"!=s(t))return t;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}(e);return"symbol"==s(n)?n:n+""}(c=l.U.Draggable))in u?Object.defineProperty(u,c,{value:p,enumerable:!0,configurable:!0,writable:!0}):u[c]=p,u),d=t(93569),h=t(58780);function m(e){return m="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},m(e)}var y=l.U.Base,v=h.E,g={renderRegions:function(e,n){o.each(e.regions,(function(t,o){b.onBeforeRenderRegion(e,n,o)&&b.renderRegion(e,n,o,d.M2.getMediaType(e.model))}))},onBeforeRenderRegion:function(e,n,t){var r=v.onBeforeRender[n];if(r||(r=v.onBeforeRender[y]),!r)return!0;var i=r[t];return!i||!o.isFunction(i)||i(e)},renderRegion:function(e,n,t,o){var r=b.getComponent(e,n,t,o);e.showChildView(t,r)},getComponent:function(e,n,t,o){var a=v.componentOptions[n];a||i.Q.Ry.throw(new r.H("Must define VideoItemComponent type options: ".concat(l.U[n],".")));var s=a[t];s||(s=v.componentOptions[y][t]),"object"===m(s)&&(s=s[o]),s||i.Q.Ry.throw(new r.H("Must define VideoItemComponent region options: ".concat(t,".")));var u=s(e);return u.component||i.Q.Ry.throw(new r.H("Must define component for region: ".concat(t,",\n in VideoItemComponent type: ").concat(l.U[n],"."))),new u.component(u.options||{})},getBehaviors:function(e,n){return f[n]?f[n](e):null}},b=g},58688:function(e,n,t){"use strict";var o,r;t.d(n,{H:function(){return r},U:function(){return o}}),function(e){e[e.Base=0]="Base",e[e.AwaitingReview=1]="AwaitingReview",e[e.PastReleases=2]="PastReleases",e[e.VideoAccess=3]="VideoAccess",e[e.ProcessingVideo=4]="ProcessingVideo",e[e.Draggable=5]="Draggable",e[e.Search=6]="Search"}(o||(o={})),function(e){e.Checkbox="checkbox",e.Thumbnail="thumbnail",e.Metadata="metadata",e.VideoActions="videoActions",e.VideoInfo="videoInfo"}(r||(r={}))},58780:function(e,n,t){"use strict";t.d(n,{E:function(){return ze}});var o=t(88483),r=t(53825),i=t(31647),l=t(93569),a=t(12542),s=t(16317),u=t.n(s);function c(e){return c="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},c(e)}function p(e,n){for(var t=0;t<n.length;t++){var o=n[t];o.enumerable=o.enumerable||!1,o.configurable=!0,"value"in o&&(o.writable=!0),Object.defineProperty(e,f(o.key),o)}}function f(e){var n=function(e){if("object"!=c(e)||!e)return e;var n=e[Symbol.toPrimitive];if(void 0!==n){var t=n.call(e,"string");if("object"!=c(t))return t;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}(e);return"symbol"==c(n)?n:n+""}function d(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){})))}catch(e){}return(d=function(){return!!e})()}function h(e){return h=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(e){return e.__proto__||Object.getPrototypeOf(e)},h(e)}function m(e,n){return m=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(e,n){return e.__proto__=n,e},m(e,n)}var y=function(e){function n(e){return function(e,n){if(!(e instanceof n))throw new TypeError("Cannot call a class as a function")}(this,n),function(e,n,t){return n=h(n),function(e,n){if(n&&("object"==c(n)||"function"==typeof n))return n;if(void 0!==n)throw new TypeError("Derived constructors may only return object or undefined");return function(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}(e)}(e,d()?Reflect.construct(n,t||[],h(e).constructor):n.apply(e,t))}(this,n,[e])}return function(e,n){if("function"!=typeof n&&null!==n)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(n&&n.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),Object.defineProperty(e,"prototype",{writable:!1}),n&&m(e,n)}(n,e),t=n,o=[{key:"initialize",value:function(){if(this.getViewModel(),this.bindListeners(),this.options.checked){var e=this.getItemId();this.model.set(e,!0,{silent:!0})}}},{key:"name",get:function(){return"CheckboxComponent"}},{key:"className",get:function(){return this.options.className}},{key:"template",get:function(){return u()}},{key:"getViewModel",value:function(){this.model=l.S0.GetViewModel(this.options.key,this.options.type)}},{key:"bindListeners",value:function(){this.options.disabled||this.listenTo(this.model,"change:all change:".concat(this.getItemId()),this.render)}},{key:"events",value:function(){return{"click .form-check":"onClickCheckbox","change .form-check-input":"onChangeCheckbox"}}},{key:"getItemId",value:function(){return this.options.itemId.toString()}},{key:"onClickCheckbox",value:function(e){e.stopPropagation()}},{key:"onChangeCheckbox",value:function(){if(!this.options.disabled){var e=this.getItemId();this.model.has(e)||this.model.get("all")?!1===this.model.get(e)?this.model.set(e,!0):(this.model.set(e,!1),this.model.set(a.X,!1)):this.model.set(e,!0)}}},{key:"viewOptions",value:function(){var e=this.getItemId();return{id:e,checked:this.model.has(e)?this.model.get(e):this.model.get("all"),disabled:this.options.disabled,checkboxClassName:this.options.checkboxClassName}}}],o&&p(t.prototype,o),Object.defineProperty(t,"prototype",{writable:!1}),t;var t,o}(i.Q.wA),v=t(43823),g=t(10657),b=t(70065),w=t(56210),k=t(7020),O=t(82771),P=t(61356),S=t(29457),E=t(19496),j=t.n(E);function C(e){return C="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},C(e)}function x(e,n){for(var t=0;t<n.length;t++){var o=n[t];o.enumerable=o.enumerable||!1,o.configurable=!0,"value"in o&&(o.writable=!0),Object.defineProperty(e,I(o.key),o)}}function I(e){var n=function(e){if("object"!=C(e)||!e)return e;var n=e[Symbol.toPrimitive];if(void 0!==n){var t=n.call(e,"string");if("object"!=C(t))return t;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}(e);return"symbol"==C(n)?n:n+""}function T(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){})))}catch(e){}return(T=function(){return!!e})()}function _(e){return _=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(e){return e.__proto__||Object.getPrototypeOf(e)},_(e)}function R(e,n){return R=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(e,n){return e.__proto__=n,e},R(e,n)}var M=function(e){function n(e){return function(e,n){if(!(e instanceof n))throw new TypeError("Cannot call a class as a function")}(this,n),function(e,n,t){return n=_(n),function(e,n){if(n&&("object"==C(n)||"function"==typeof n))return n;if(void 0!==n)throw new TypeError("Derived constructors may only return object or undefined");return function(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}(e)}(e,T()?Reflect.construct(n,t||[],_(e).constructor):n.apply(e,t))}(this,n,[e])}return function(e,n){if("function"!=typeof n&&null!==n)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(n&&n.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),Object.defineProperty(e,"prototype",{writable:!1}),n&&R(e,n)}(n,e),t=n,o=[{key:"initialize",value:function(){this.listenTo(this.model,"change",this.render)}},{key:"name",get:function(){return"ClipItemPreviewComponent"}},{key:"template",get:function(){return j()}},{key:"lang",get:function(){return"shared.clipItemPreview"}},{key:"channelName",get:function(){return"".concat(this.name).concat(this.cid)}},{key:"appLinks",get:function(){return{".applink-video-details":l.M2.getDetailsAppLink(this.model)}}},{key:"behaviors",get:function(){return[{behaviorClass:w.H,selector:".tool-tip"}]}},{key:"regions",value:function(){return{partialLoadingContainer:{el:".content-container-region",replaceElement:!1,partialLoading:S.LP.ClipItemPreview},description:".description-region",clips:{el:".clips-region",replaceElement:!0},preview:".video-preview-region",duration:{el:".clip-duration-region",replaceElement:!0}}}},{key:"events",value:function(){return{click:"onClick"}}},{key:"onClick",value:function(e){e.stopPropagation()}},{key:"renderDescription",value:function(){if(this.model&&this.model.get("description")){var e=new O.Z({model:this.model,highlighter:!0,size:O.t.Small,truncate:!0});this.showChildView("description",e)}}},{key:"renderVideoPreview",value:function(){var e=new P.c({model:this.model,webPlayerUrl:this.options.webPlayerUrl,analyticsOptions:{location:b.LZ.ClipItemPreview},currentUser:this.options.currentUser,channelName:this.options.channelName,createViewKey:this.options.createViewKey,playerApiUrl:this.options.playerApiUrl});this.showChildView("preview",e)}},{key:"renderDuration",value:function(){var e=new k.s({model:this.model});this.showChildView("duration",e)}},{key:"onBeforeRender",value:function(){return!(!this.model||!this.model.get("dataFetched"))||(v.Radio.channel(this.options.collectionViewChannel).trigger("fetch:video:with:metadata",this.options.videoId,this.options.typeId),!(!this.model||!this.model.get("dataFetched"))&&void 0)}},{key:"viewOptions",value:function(){if(this.model&&this.model.get("dataFetched"))return{description:this.model.get("description"),hideUploadedDate:this.model.get("_isClickViewCurated").get("value"),uploadedDate:g.O.format(this.model.get("dateCreated"),S.K4.FULL_YEAR)}}},{key:"onRender",value:function(){this.renderDescription(),this.renderVideoPreview(),this.renderDuration()}}],o&&x(t.prototype,o),Object.defineProperty(t,"prototype",{writable:!1}),t;var t,o}(i.Q.wA),D=t(50002),V=t(53609),A=t(78208),N=t.n(A);function L(e){return L="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},L(e)}function B(e,n){for(var t=0;t<n.length;t++){var o=n[t];o.enumerable=o.enumerable||!1,o.configurable=!0,"value"in o&&(o.writable=!0),Object.defineProperty(e,U(o.key),o)}}function U(e){var n=function(e){if("object"!=L(e)||!e)return e;var n=e[Symbol.toPrimitive];if(void 0!==n){var t=n.call(e,"string");if("object"!=L(t))return t;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}(e);return"symbol"==L(n)?n:n+""}function H(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){})))}catch(e){}return(H=function(){return!!e})()}function Z(e){return Z=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(e){return e.__proto__||Object.getPrototypeOf(e)},Z(e)}function Q(e,n){return Q=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(e,n){return e.__proto__=n,e},Q(e,n)}var z=function(e){function n(e){return function(e,n){if(!(e instanceof n))throw new TypeError("Cannot call a class as a function")}(this,n),function(e,n,t){return n=Z(n),function(e,n){if(n&&("object"==L(n)||"function"==typeof n))return n;if(void 0!==n)throw new TypeError("Derived constructors may only return object or undefined");return function(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}(e)}(e,H()?Reflect.construct(n,t||[],Z(e).constructor):n.apply(e,t))}(this,n,[e])}return function(e,n){if("function"!=typeof n&&null!==n)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(n&&n.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),Object.defineProperty(e,"prototype",{writable:!1}),n&&Q(e,n)}(n,e),t=n,o=[{key:"initialize",value:function(){this.listenTo(this.model,"change",this.render)}},{key:"name",get:function(){return"InteractiveItemPreviewComponent"}},{key:"template",get:function(){return N()}},{key:"lang",get:function(){return"shared.interactiveItemPreview"}},{key:"channelName",get:function(){return"".concat(this.name).concat(this.cid)}},{key:"appLinks",get:function(){return{".applink-video-details":l.M2.getDetailsAppLink(this.model)}}},{key:"behaviors",get:function(){return[{behaviorClass:w.H,selector:".tool-tip"}]}},{key:"regions",value:function(){return{partialLoadingContainer:{el:".content-container-region",replaceElement:!1,partialLoading:S.LP.InteractiveItemPreview},description:".description-region",interactives:{el:".interactives-region",replaceElement:!0},interactiveThumbnail:{el:".interactive-thumbnail-region",replaceElement:!0}}}},{key:"events",value:function(){return{click:"onClick"}}},{key:"onClick",value:function(e){e.stopPropagation()}},{key:"renderDescription",value:function(){if(this.model&&this.model.get("description")){var e=new O.Z({model:this.model,highlighter:!0,size:O.t.Small,truncate:!0});this.showChildView("description",e)}}},{key:"renderInteractives",value:function(){if(this.model._timepoints.length){var e=new D.F({model:this.model,preview:!0});this.showChildView("interactives",e)}}},{key:"renderInteractiveThumbnail",value:function(){var e=new V.b({model:this.model,config:this.options.config});this.showChildView("interactiveThumbnail",e)}},{key:"onBeforeRender",value:function(){return!(!this.model||!this.model.get("dataFetched"))||(v.Radio.channel(this.options.collectionViewChannel).trigger("fetch:video:with:metadata",this.options.interactiveId,this.options.typeId),!(!this.model||!this.model.get("dataFetched"))&&void 0)}},{key:"viewOptions",value:function(){if(this.model&&this.model.get("dataFetched"))return{description:this.model.get("description"),hasInteractions:this.model._timepoints.length,hideUploadedDate:this.model.get("_isClickViewCurated").get("value"),uploadedDate:g.O.format(this.model.get("dateCreated"),S.K4.FULL_YEAR)}}},{key:"onRender",value:function(){this.renderDescription(),this.renderInteractives(),this.renderInteractiveThumbnail()}}],o&&B(t.prototype,o),Object.defineProperty(t,"prototype",{writable:!1}),t;var t,o}(i.Q.wA),W=t(69843),F=t(73176),K=t(17017),Y=t(79238),X=t(69051),G=t(67743),$=t(38890),q=t(30210),J=t(60371),ee=t(67430),ne=t(2496),te=t(21161),oe=t(57857),re=t(47416),ie=t(85475),le=t(45390),ae=t(58085),se=t(24959),ue=t(25887),ce=t(85597),pe=t.n(ce);function fe(e){return fe="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},fe(e)}function de(e,n){for(var t=0;t<n.length;t++){var o=n[t];o.enumerable=o.enumerable||!1,o.configurable=!0,"value"in o&&(o.writable=!0),Object.defineProperty(e,he(o.key),o)}}function he(e){var n=function(e){if("object"!=fe(e)||!e)return e;var n=e[Symbol.toPrimitive];if(void 0!==n){var t=n.call(e,"string");if("object"!=fe(t))return t;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}(e);return"symbol"==fe(n)?n:n+""}function me(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){})))}catch(e){}return(me=function(){return!!e})()}function ye(e){return ye=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(e){return e.__proto__||Object.getPrototypeOf(e)},ye(e)}function ve(e,n){return ve=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(e,n){return e.__proto__=n,e},ve(e,n)}var ge=function(e){function n(e){return function(e,n){if(!(e instanceof n))throw new TypeError("Cannot call a class as a function")}(this,n),function(e,n,t){return n=ye(n),function(e,n){if(n&&("object"==fe(n)||"function"==typeof n))return n;if(void 0!==n)throw new TypeError("Derived constructors may only return object or undefined");return function(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}(e)}(e,me()?Reflect.construct(n,t||[],ye(e).constructor):n.apply(e,t))}(this,n,[e])}return function(e,n){if("function"!=typeof n&&null!==n)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(n&&n.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),Object.defineProperty(e,"prototype",{writable:!1}),n&&ve(e,n)}(n,e),t=n,(o=[{key:"name",get:function(){return"ExpandableTagListComponent"}},{key:"template",get:function(){return pe()}},{key:"lang",get:function(){return"libraryEditor.expandableTagList"}},{key:"defaults",get:function(){return{initialTagDisplayCount:5,expandedTagDisplayCount:10}}},{key:"appLinks",get:function(){return{".applink-video-details":{application:le.OV.LIBRARY_EDITOR,action:le.eX.LibraryEditor.VIDEO_DETAILS,args:[this.options.videoId]}}}},{key:"events",value:function(){return{"click .show-more-tags":"onClickShowMoreTags"}}},{key:"regions",value:function(){return{tags:{replaceElement:!0,el:".tags-region"}}}},{key:"onClickShowMoreTags",value:function(){this.showingMoreTags=!0,this.options.channelName&&v.Radio.channel(this.options.channelName).trigger("show:more:tags"),this.render()}},{key:"getTagCollection",value:function(){var e=this.showingMoreTags?this.options.expandedTagDisplayCount:this.options.initialTagDisplayCount;return new ae.E(this.collection.slice(0,e))}},{key:"getExtraTagsInfo",value:function(){if(!this.showingMoreTags)return oe.T.getPhrase(this.lang,"extraTags",{smartCount:te.max([this.collection.length-this.options.initialTagDisplayCount,0])})}},{key:"renderTags",value:function(){var e=new se.K({collection:this.getTagCollection(),behavior:ue.Dm.Link});this.showChildView("tags",e)}},{key:"viewOptions",value:function(){return{expandable:this.collection.length>this.options.initialTagDisplayCount&&!this.showingMoreTags,extraTagsText:this.getExtraTagsInfo(),moreTags:this.showingMoreTags&&this.collection.length>this.options.expandedTagDisplayCount}}},{key:"onRender",value:function(){this.renderTags()}}])&&de(t.prototype,o),Object.defineProperty(t,"prototype",{writable:!1}),t;var t,o}(i.Q.wA),be=t(7190),we=t(15035),ke=t.n(we),Oe={columnNames:"vMHcA",smallSvgContainer:"xw6kv"};function Pe(e){return Pe="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},Pe(e)}function Se(e,n){for(var t=0;t<n.length;t++){var o=n[t];o.enumerable=o.enumerable||!1,o.configurable=!0,"value"in o&&(o.writable=!0),Object.defineProperty(e,Ee(o.key),o)}}function Ee(e){var n=function(e){if("object"!=Pe(e)||!e)return e;var n=e[Symbol.toPrimitive];if(void 0!==n){var t=n.call(e,"string");if("object"!=Pe(t))return t;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}(e);return"symbol"==Pe(n)?n:n+""}function je(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){})))}catch(e){}return(je=function(){return!!e})()}function Ce(e){return Ce=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(e){return e.__proto__||Object.getPrototypeOf(e)},Ce(e)}function xe(e,n){return xe=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(e,n){return e.__proto__=n,e},xe(e,n)}var Ie=function(e){function n(e){return function(e,n){if(!(e instanceof n))throw new TypeError("Cannot call a class as a function")}(this,n),function(e,n,t){return n=Ce(n),function(e,n){if(n&&("object"==Pe(n)||"function"==typeof n))return n;if(void 0!==n)throw new TypeError("Derived constructors may only return object or undefined");return function(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}(e)}(e,je()?Reflect.construct(n,t||[],Ce(e).constructor):n.apply(e,t))}(this,n,[e])}return function(e,n){if("function"!=typeof n&&null!==n)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(n&&n.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),Object.defineProperty(e,"prototype",{writable:!1}),n&&xe(e,n)}(n,e),t=n,o=[{key:"initialize",value:function(){this.listenTo(this.model,"change",this.render),this.listenTo(this.channelName,"show:more:tags",this.onClickShowMoreTags)}},{key:"name",get:function(){return"VideoItemPreviewComponent"}},{key:"template",get:function(){return ke()}},{key:"lang",get:function(){return"shared.videoItemPreview"}},{key:"channelName",get:function(){return"".concat(this.name).concat(this.cid)}},{key:"appLinks",get:function(){return{".applink-video-details":{application:le.OV.LIBRARY_EDITOR,action:le.eX.LibraryEditor.VIDEO_DETAILS,args:[this.model.get("id")]}}}},{key:"behaviors",get:function(){return[{behaviorClass:w.H,selector:".tool-tip"}]}},{key:"regions",value:function(){return{partialLoadingContainer:{el:".content-container-region",replaceElement:!1,partialLoading:S.LP.VideoItemPreview},description:".description-region",preview:".video-preview-region",tags:{replaceElement:!0,el:".tags-region"}}}},{key:"events",value:function(){return{click:"onClick"}}},{key:"onClick",value:function(e){e.stopPropagation()}},{key:"onClickShowMoreTags",value:function(){v.Radio.channel(this.options.channelName).trigger("resize:preview")}},{key:"showTags",value:function(){return!(!this.model.tags||!this.model.tags.length)}},{key:"renderDescription",value:function(){if(this.model&&this.model.get("description")){var e=new O.Z({model:this.model,highlighter:!0,size:O.t.Small,truncate:!0});this.showChildView("description",e)}}},{key:"renderTags",value:function(){if(this.showTags()){var e=new ge({collection:this.model.tags,videoId:this.model.id&&this.model.get("id"),channelName:this.channelName});this.showChildView("tags",e)}}},{key:"renderVideoPreview",value:function(){var e=new P.c({model:this.model,webPlayerUrl:this.options.webPlayerUrl,analyticsOptions:{location:b.LZ.VideoItemPreview},currentUser:this.options.currentUser,channelName:this.options.channelName,createViewKey:this.options.createViewKey,playerApiUrl:this.options.playerApiUrl});this.showChildView("preview",e)}},{key:"getSubtitleLanguage",value:function(){if(!this.model.subtitles||!this.model.get("subtitles").length)return"";var e=te.uniq(this.model.get("subtitles").map((function(e){return e.get("language")})));return te.map(e,(function(e){return re.S.getFullEnglishName(e)})).join(", ")}},{key:"getDetails",value:function(e){if(!this.model[e]||!this.model.get(e).length)return"";var n=this.model.get(e).length;return n>1?"".concat(n," ").concat(e):"".concat(oe.T.getPhrase(this.lang,"one")," ").concat(e.slice(0,-1))}},{key:"onBeforeRender",value:function(){return!(!this.model||!this.model.get("dataFetched"))||(v.Radio.channel(this.options.collectionViewChannel).trigger("fetch:video:with:metadata",this.options.videoId,this.options.typeId),!(!this.model||!this.model.get("dataFetched"))&&void 0)}},{key:"viewOptions",value:function(){if(this.model&&this.model.get("dataFetched")){var e=this.model.get("duration");return{styles:Oe,ratingClass:this.model.rating&&be.uB.mapRatingToClass(this.model.rating.get("value")),showTags:this.showTags(),description:this.model.get("description"),duration:e&&l.T.ToDisplayDuration(e),chapters:this.getDetails("chapters"),subtitles:this.getSubtitleLanguage(),resources:this.getDetails("resources"),links:this.getDetails("links"),hideUploadedDate:this.model.get("_isClickViewCurated").get("value"),uploadedDate:g.O.format(this.model.get("dateCreated"),S.K4.FULL_YEAR),externalLink:this.options.externalLink,openExternalSvg:ie.Nj.getSvg(ie.vn.NewWindow)}}}},{key:"onRender",value:function(){this.renderDescription(),this.renderTags(),this.renderVideoPreview()}}],o&&Se(t.prototype,o),Object.defineProperty(t,"prototype",{writable:!1}),t;var t,o}(i.Q.wA),Te=t(83324),_e=t(610),Re=t(86205),Me=t(85847),De=t(89707),Ve=t(40622),Ae=t(58688);function Ne(e){return Ne="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},Ne(e)}function Le(e,n,t){return(n=function(e){var n=function(e){if("object"!=Ne(e)||!e)return e;var n=e[Symbol.toPrimitive];if(void 0!==n){var t=n.call(e,"string");if("object"!=Ne(t))return t;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}(e);return"symbol"==Ne(n)?n:n+""}(n))in e?Object.defineProperty(e,n,{value:t,enumerable:!0,configurable:!0,writable:!0}):e[n]=t,e}var Be=Ae.U,Ue=Ae.H,He=function(e){var n="videos/".concat(e.model.id);return{component:r.Z,options:{model:e.model,lazyload:e.shouldLazyLoadThumbnail(),thumbnailOptions:{size:o.h2.Small},href:De.k.getMainProductUrl(e.options.config,n,n),channelName:e.channelName,thumbnail:l.M2.getThumbnail(e.model),duration:l.M2.getDuration(e.model),durationNewStyle:!0}}},Ze=function(e){return e.options.videoWithMetadata instanceof Me.n?{component:Ie,options:{model:e.options.videoWithMetadata,videoId:e.model.id.toString(),typeId:e.model.attributes.typeId,channelName:e.channelName,collectionViewChannel:e.options.collectionViewChannel,webPlayerUrl:e.options.config.get("webPlayerUrl"),currentUser:e.options.currentUser,playerApiUrl:e.options.playerApiUrl,createViewKey:e.options.createViewKey}}:null},Qe=function(e){if(!(e.options.videoWithMetadata instanceof Me.n))return null;var n="videos/".concat(e.model.id);return{component:Ie,options:{model:e.options.videoWithMetadata,videoId:e.model.id.toString(),channelName:e.channelName,collectionViewChannel:e.options.collectionViewChannel,webPlayerUrl:e.options.config.get("webPlayerUrl"),externalLink:De.k.getMainProductUrl(e.options.config,n,n),currentUser:e.options.currentUser,playerApiUrl:e.options.playerApiUrl,createViewKey:e.options.createViewKey}}},ze={componentOptions:Le(Le(Le(Le(Le(Le(Le({},Be.Base,Le(Le(Le(Le(Le({},Ue.Checkbox,(function(e){return{component:y,options:{className:"d-inline-flex align-items-center me-3 ".concat(W.Z.checkboxContainer),checkboxClassName:W.Z.checkbox,itemId:e.model.id,key:e.collectionIdentifier.toString(),type:Ve.De.VIDEO_LIST}}})),Ue.Thumbnail,(function(e){return{component:r.Z,options:{model:e.model,lazyload:e.shouldLazyLoadThumbnail(),thumbnailOptions:{size:o.h2.Small},appLink:l.M2.getDetailsAppLink(e.model),channelName:e.channelName,thumbnail:l.M2.getThumbnail(e.model),duration:l.M2.getDuration(e.model),durationNewStyle:!0}}})),Ue.Metadata,(function(e){return{component:G.f,options:{model:e.model,sourceMetadataOptions:e.options.sourceMetadataOptions}}})),Ue.VideoActions,(function(e){return{component:F.W,options:{model:e.model,channelName:e.channelName,previewDisplayed:e.viewModel.get("previewOpen"),videoActionsOptions:{model:e.model,application:e.options.application,collectionIdentifier:e.options.collectionIdentifier,customerHasLocalCache:e.options.customerHasLocalCache,customerHasExchange:e.options.customerHasExchange,customerHasCustomLibrary:e.options.customerHasCustomLibrary,analyticsOptions:e.options.analyticsOptions,config:e.options.config,collectionSource:e.options.videoCollectionSource,products:e.options.products,libraries:e.options.libraries}}}})),Ue.VideoInfo,Le(Le(Le({},Te.D.Video,Ze),Te.D.Interactive,(function(e){return e.options.videoWithMetadata instanceof Re.v?{component:z,options:{model:e.options.videoWithMetadata,interactiveId:e.model.id.toString(),typeId:e.model.attributes.typeId,channelName:e.channelName,collectionViewChannel:e.options.collectionViewChannel,config:e.options.config}}:null})),Te.D.Clip,(function(e){return e.options.videoWithMetadata instanceof _e.b?{component:M,options:{model:e.options.videoWithMetadata,videoId:e.model.id.toString(),typeId:e.model.attributes.typeId,channelName:e.channelName,collectionViewChannel:e.options.collectionViewChannel,webPlayerUrl:e.options.config.get("webPlayerUrl"),currentUser:e.options.currentUser,playerApiUrl:e.options.playerApiUrl,createViewKey:e.options.createViewKey}}:null})))),Be.AwaitingReview,Le(Le(Le(Le({},Ue.Thumbnail,He),Ue.Metadata,(function(e){return{component:$.l,options:{model:e.model,config:e.options.config}}})),Ue.VideoActions,(function(e){return{component:Y.s,options:{model:e.model,channelName:e.channelName,previewDisplayed:e.viewModel.get("previewOpen"),analyticsOptions:e.options.analyticsOptions}}})),Ue.VideoInfo,Qe)),Be.PastReleases,Le(Le(Le({},Ue.Thumbnail,He),Ue.Metadata,(function(e){return{component:q.x,options:{model:e.model,config:e.options.config}}})),Ue.VideoInfo,Qe)),Be.VideoAccess,Le(Le(Le({},Ue.VideoActions,(function(e){return{component:X.P,options:{model:e.model,channelName:e.channelName,previewDisplayed:e.viewModel.get("previewOpen"),analyticsOptions:e.options.analyticsOptions}}})),Ue.Metadata,(function(e){return{component:ne.g,options:{model:e.model,config:e.options.config,sourceMetadataOptions:{showFolder:!0,libraries:e.options.libraries}}}})),Ue.VideoInfo,(function(e){return l.M2.hasCustomLibrary(e.model)?Ze(e):Qe(e)}))),Be.ProcessingVideo,Le(Le({},Ue.Metadata,(function(e){return{component:J.x,options:{model:e.model,pendingItems:e.options.pendingItems}}})),Ue.VideoActions,(function(e){return{component:K.w,options:{model:e.model,pendingItems:e.options.pendingItems,channelName:e.options.collectionViewChannel,analyticsOptions:e.options.analyticsOptions}}}))),Be.Draggable,{}),Be.Search,Le({},Ue.Metadata,(function(e){return{component:ee.b,options:{model:e.model,sourceMetadataOptions:{showFolder:!0,highlight:!0,libraries:e.options.libraries}}}}))),onBeforeRender:Le(Le({},Be.Base,Le(Le({},Ue.Checkbox,(function(e){return!!e.options.allowBulk})),Ue.VideoInfo,(function(e){return!!e.viewModel.get("previewOpen")}))),Be.ProcessingVideo,Le(Le({},Ue.Checkbox,(function(){return!1})),Ue.VideoInfo,(function(){return!1})))}},73176:function(e,n,t){"use strict";t.d(n,{W:function(){return y}});var o=t(43823),r=t(31647),i=t(85475),l=t(17954),a=t(15900),s=t.n(a),u=t(31593);function c(e){return c="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},c(e)}function p(e,n){for(var t=0;t<n.length;t++){var o=n[t];o.enumerable=o.enumerable||!1,o.configurable=!0,"value"in o&&(o.writable=!0),Object.defineProperty(e,f(o.key),o)}}function f(e){var n=function(e){if("object"!=c(e)||!e)return e;var n=e[Symbol.toPrimitive];if(void 0!==n){var t=n.call(e,"string");if("object"!=c(t))return t;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}(e);return"symbol"==c(n)?n:n+""}function d(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){})))}catch(e){}return(d=function(){return!!e})()}function h(e){return h=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(e){return e.__proto__||Object.getPrototypeOf(e)},h(e)}function m(e,n){return m=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(e,n){return e.__proto__=n,e},m(e,n)}var y=function(e){function n(e){return function(e,n){if(!(e instanceof n))throw new TypeError("Cannot call a class as a function")}(this,n),function(e,n,t){return n=h(n),function(e,n){if(n&&("object"==c(n)||"function"==typeof n))return n;if(void 0!==n)throw new TypeError("Derived constructors may only return object or undefined");return function(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}(e)}(e,d()?Reflect.construct(n,t||[],h(e).constructor):n.apply(e,t))}(this,n,[e])}return function(e,n){if("function"!=typeof n&&null!==n)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(n&&n.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),Object.defineProperty(e,"prototype",{writable:!1}),n&&m(e,n)}(n,e),t=n,r=[{key:"name",get:function(){return"VideoItemActionsComponent"}},{key:"template",get:function(){return s()}},{key:"className",get:function(){return"d-flex h-100 flex-column align-items-end justify-content-between"}},{key:"lang",get:function(){return"shared._videoItemActions"}},{key:"regions",value:function(){return{videoActions:".video-actions-region"}}},{key:"events",value:function(){return e={},t="onClickShowPreview",(n=f(n="click .".concat(u.Z.showPreview)))in e?Object.defineProperty(e,n,{value:t,enumerable:!0,configurable:!0,writable:!0}):e[n]=t,e;var e,n,t}},{key:"onClickShowPreview",value:function(e){e.stopPropagation(),this.options.channelName&&o.Radio.channel(this.options.channelName).trigger("click:show:preview")}},{key:"renderVideoActions",value:function(){this.showChildView("videoActions",new l.R(this.options.videoActionsOptions))}},{key:"viewOptions",value:function(){return{styles:u.Z,previewDisplayed:this.options.previewDisplayed,previewSvg:i.Nj.getSvg(i.vn.Preview)}}},{key:"onRender",value:function(){this.renderVideoActions()}}],r&&p(t.prototype,r),Object.defineProperty(t,"prototype",{writable:!1}),t;var t,r}(r.Q.wA)},17017:function(e,n,t){"use strict";t.d(n,{w:function(){return y}});var o=t(43823),r=t(31647),i=t(83891),l=t(50028),a=t(93569),s=t(71548),u=t.n(s);function c(e){return c="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},c(e)}function p(e,n){for(var t=0;t<n.length;t++){var o=n[t];o.enumerable=o.enumerable||!1,o.configurable=!0,"value"in o&&(o.writable=!0),Object.defineProperty(e,f(o.key),o)}}function f(e){var n=function(e){if("object"!=c(e)||!e)return e;var n=e[Symbol.toPrimitive];if(void 0!==n){var t=n.call(e,"string");if("object"!=c(t))return t;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}(e);return"symbol"==c(n)?n:n+""}function d(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){})))}catch(e){}return(d=function(){return!!e})()}function h(e){return h=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(e){return e.__proto__||Object.getPrototypeOf(e)},h(e)}function m(e,n){return m=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(e,n){return e.__proto__=n,e},m(e,n)}var y=function(e){function n(e){return function(e,n){if(!(e instanceof n))throw new TypeError("Cannot call a class as a function")}(this,n),function(e,n,t){return n=h(n),function(e,n){if(n&&("object"==c(n)||"function"==typeof n))return n;if(void 0!==n)throw new TypeError("Derived constructors may only return object or undefined");return function(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}(e)}(e,d()?Reflect.construct(n,t||[],h(e).constructor):n.apply(e,t))}(this,n,[e])}return function(e,n){if("function"!=typeof n&&null!==n)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(n&&n.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),Object.defineProperty(e,"prototype",{writable:!1}),n&&m(e,n)}(n,e),t=n,(r=[{key:"initialize",value:function(){this.bindListeners()}},{key:"name",get:function(){return"VideoItemProcessingActionsComponent"}},{key:"template",get:function(){return u()}},{key:"lang",get:function(){return"shared.videoItemProcessingActions"}},{key:"className",get:function(){return"d-flex h-100 flex-column align-items-end justify-content-between"}},{key:"events",value:function(){return{"click .cancel":"onClickCancel","click .retry":"onClickRetry"}}},{key:"onClickCancel",value:function(){var e=this.pendingItem.get("video").get("name");a.Ce.generateDialog(e,this.options.channelName,"cancel:pending:item",this.pendingItem)}},{key:"onClickRetry",value:function(){o.Radio.channel(this.options.channelName).trigger("retry:pending:item",this.pendingItem)}},{key:"bindListeners",value:function(){this.model.get("status")===l.X.Processing&&this.options.pendingItems&&(this.pendingItem||(this.listenTo(this.options.pendingItems,"update",this.mapPendingItem),this.mapPendingItem()))}},{key:"mapPendingItem",value:function(){this.pendingItem=this.options.pendingItems.get(this.model.get("id")),this.render(),this.pendingItem&&(this.stopListening(this.options.pendingItems,"update"),this.listenTo(this.pendingItem,"change:pendingProcessStatus",this.render))}},{key:"viewOptions",value:function(){return{hasError:i.S.hasError(this.pendingItem)}}},{key:"onBeforeRender",value:function(){return!!this.pendingItem}}])&&p(t.prototype,r),Object.defineProperty(t,"prototype",{writable:!1}),t;var t,r}(r.Q.wA)},79238:function(e,n,t){"use strict";t.d(n,{s:function(){return b}});var o=t(43823),r=t(21679),i=t(31647),l=t(52076),a=t(70065),s=t(85475),u=t(31593),c=t(45390),p=t(72108),f=t.n(p);function d(e){return d="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},d(e)}function h(e,n){for(var t=0;t<n.length;t++){var o=n[t];o.enumerable=o.enumerable||!1,o.configurable=!0,"value"in o&&(o.writable=!0),Object.defineProperty(e,m(o.key),o)}}function m(e){var n=function(e){if("object"!=d(e)||!e)return e;var n=e[Symbol.toPrimitive];if(void 0!==n){var t=n.call(e,"string");if("object"!=d(t))return t;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}(e);return"symbol"==d(n)?n:n+""}function y(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){})))}catch(e){}return(y=function(){return!!e})()}function v(e){return v=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(e){return e.__proto__||Object.getPrototypeOf(e)},v(e)}function g(e,n){return g=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(e,n){return e.__proto__=n,e},g(e,n)}var b=function(e){function n(e){return function(e,n){if(!(e instanceof n))throw new TypeError("Cannot call a class as a function")}(this,n),function(e,n,t){return n=v(n),function(e,n){if(n&&("object"==d(n)||"function"==typeof n))return n;if(void 0!==n)throw new TypeError("Derived constructors may only return object or undefined");return function(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}(e)}(e,y()?Reflect.construct(n,t||[],v(e).constructor):n.apply(e,t))}(this,n,[e])}return function(e,n){if("function"!=typeof n&&null!==n)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(n&&n.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),Object.defineProperty(e,"prototype",{writable:!1}),n&&g(e,n)}(n,e),t=n,i=[{key:"initialize",value:function(){this.restrictedVideoDataService=r.u.getInstance(c.Or.RestrictedVideo,this)}},{key:"name",get:function(){return"VideoItemReviewActionsComponent"}},{key:"template",get:function(){return f()}},{key:"lang",get:function(){return"shared.videoItemReviewActions"}},{key:"className",get:function(){return"d-flex h-100 flex-column align-items-end"}},{key:"events",value:function(){return e={"click .approve":"onClickApprove","click .applink-manage-video-access":"onClickManageVideoAccess"},t="onClickShowPreview",(n=m(n="click .".concat(u.Z.showPreview)))in e?Object.defineProperty(e,n,{value:t,enumerable:!0,configurable:!0,writable:!0}):e[n]=t,e;var e,n,t}},{key:"appLinks",get:function(){return{".applink-manage-video-access":{application:c.OV.CONTENT_UPDATES,action:c.eX.Shared.MANAGE_VIDEO_ACCESS,args:[this.model.get("id").toString(),this.model.get("typeId")]}}}},{key:"onClickApprove",value:function(e){e.stopPropagation(),this.restrictedVideoDataService.deleteVideoRestriction(this.model.get("id")),this.logApproveAction()}},{key:"onClickManageVideoAccess",value:function(e){e.stopPropagation(),this.logManageAccessAction()}},{key:"onClickShowPreview",value:function(e){e.stopPropagation(),this.options.channelName&&o.Radio.channel(this.options.channelName).trigger("click:show:preview")}},{key:"logApproveAction",value:function(){var e={location:a.LZ.AwaitingReviewVideoItem,actionType:a.Vw.Approve,entity:a.py.Video,descriptor:a.yh.Single,workflowPhase:a.eu.Complete},n={id:this.model.get("id")};l.k.logUserAction(n,e)}},{key:"logManageAccessAction",value:function(){var e={location:a.LZ.AwaitingReviewVideoItem,actionType:a.Vw.SetAccess,entity:a.py.Video,workflowPhase:a.eu.Start},n={id:this.model.get("id")};l.k.logUserAction(n,e)}},{key:"viewOptions",value:function(){return{styles:u.Z,previewDisplayed:this.options.previewDisplayed,previewSvg:s.Nj.getSvg(s.vn.Preview)}}}],i&&h(t.prototype,i),Object.defineProperty(t,"prototype",{writable:!1}),t;var t,i}(i.Q.wA)},69051:function(e,n,t){"use strict";t.d(n,{P:function(){return g}});var o=t(43823),r=t(31647),i=t(52076),l=t(70065),a=t(85475),s=t(31593),u=t(45390),c=t(66774),p=t.n(c);function f(e){return f="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},f(e)}function d(e,n){for(var t=0;t<n.length;t++){var o=n[t];o.enumerable=o.enumerable||!1,o.configurable=!0,"value"in o&&(o.writable=!0),Object.defineProperty(e,h(o.key),o)}}function h(e){var n=function(e){if("object"!=f(e)||!e)return e;var n=e[Symbol.toPrimitive];if(void 0!==n){var t=n.call(e,"string");if("object"!=f(t))return t;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}(e);return"symbol"==f(n)?n:n+""}function m(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){})))}catch(e){}return(m=function(){return!!e})()}function y(e){return y=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(e){return e.__proto__||Object.getPrototypeOf(e)},y(e)}function v(e,n){return v=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(e,n){return e.__proto__=n,e},v(e,n)}var g=function(e){function n(e){return function(e,n){if(!(e instanceof n))throw new TypeError("Cannot call a class as a function")}(this,n),function(e,n,t){return n=y(n),function(e,n){if(n&&("object"==f(n)||"function"==typeof n))return n;if(void 0!==n)throw new TypeError("Derived constructors may only return object or undefined");return function(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}(e)}(e,m()?Reflect.construct(n,t||[],y(e).constructor):n.apply(e,t))}(this,n,[e])}return function(e,n){if("function"!=typeof n&&null!==n)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(n&&n.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),Object.defineProperty(e,"prototype",{writable:!1}),n&&v(e,n)}(n,e),t=n,r=[{key:"name",get:function(){return"VideoItemVideoAccessComponent"}},{key:"template",get:function(){return p()}},{key:"lang",get:function(){return"shared.videoItemVideoAccessActions"}},{key:"className",get:function(){return"d-flex h-100 flex-column align-items-end justify-content-between"}},{key:"appLinks",get:function(){return{".applink-manage-video-access":{application:u.OV.VIDEO_ACCESS,action:u.eX.Shared.MANAGE_VIDEO_ACCESS,args:[this.model.get("id").toString(),this.model.get("typeId")]}}}},{key:"events",value:function(){return e={"click .applink-manage-video-access":"onClickManageVideoAccess"},t="onClickShowPreview",(n=h(n="click .".concat(s.Z.showPreview)))in e?Object.defineProperty(e,n,{value:t,enumerable:!0,configurable:!0,writable:!0}):e[n]=t,e;var e,n,t}},{key:"onClickManageVideoAccess",value:function(e){e.stopPropagation(),this.logAction()}},{key:"onClickShowPreview",value:function(e){e.stopPropagation(),this.options.channelName&&o.Radio.channel(this.options.channelName).trigger("click:show:preview")}},{key:"logAction",value:function(){var e={location:l.LZ.VideoListItem,actionType:l.Vw.SetAccess,entity:l.py.Video,workflowPhase:l.eu.Start},n={id:this.model.get("id")};i.k.logUserAction(n,e)}},{key:"viewOptions",value:function(){return{styles:s.Z,previewDisplayed:this.options.previewDisplayed,previewSvg:a.Nj.getSvg(a.vn.Preview)}}}],r&&d(t.prototype,r),Object.defineProperty(t,"prototype",{writable:!1}),t;var t,r}(r.Q.wA)},67743:function(e,n,t){"use strict";t.d(n,{f:function(){return w}});var o=t(21161),r=t(31647),i=t(56210),l=t(85475),a=t(90671),s=t(31204),u=t(65816),c=t(93569),p=t(27367),f=t.n(p),d=t(63162);function h(e){return h="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},h(e)}function m(e,n){for(var t=0;t<n.length;t++){var o=n[t];o.enumerable=o.enumerable||!1,o.configurable=!0,"value"in o&&(o.writable=!0),Object.defineProperty(e,y(o.key),o)}}function y(e){var n=function(e){if("object"!=h(e)||!e)return e;var n=e[Symbol.toPrimitive];if(void 0!==n){var t=n.call(e,"string");if("object"!=h(t))return t;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}(e);return"symbol"==h(n)?n:n+""}function v(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){})))}catch(e){}return(v=function(){return!!e})()}function g(e){return g=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(e){return e.__proto__||Object.getPrototypeOf(e)},g(e)}function b(e,n){return b=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(e,n){return e.__proto__=n,e},b(e,n)}var w=function(e){function n(e){return function(e,n){if(!(e instanceof n))throw new TypeError("Cannot call a class as a function")}(this,n),function(e,n,t){return n=g(n),function(e,n){if(n&&("object"==h(n)||"function"==typeof n))return n;if(void 0!==n)throw new TypeError("Derived constructors may only return object or undefined");return function(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}(e)}(e,v()?Reflect.construct(n,t||[],g(e).constructor):n.apply(e,t))}(this,n,[e])}return function(e,n){if("function"!=typeof n&&null!==n)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(n&&n.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),Object.defineProperty(e,"prototype",{writable:!1}),n&&b(e,n)}(n,e),t=n,r=[{key:"initialize",value:function(){this.listenTo(this.model,"change:restrictions",this.render)}},{key:"name",get:function(){return"VideoItemMetadataComponent"}},{key:"template",get:function(){return f()}},{key:"behaviors",get:function(){return[{behaviorClass:i.H,selector:".tool-tip"}]}},{key:"appLinks",get:function(){return{".applink-show-video":c.M2.getDetailsAppLink(this.model)}}},{key:"regions",value:function(){return{sources:{el:".sources-region",replaceElement:!0},badges:{el:".badges-region",replaceElement:!0},series:{el:".series-region",replaceElement:!0}}}},{key:"events",value:function(){return e={},t="onClickBadge",(n=y(n="click .".concat(d.Z.svgContainer)))in e?Object.defineProperty(e,n,{value:t,enumerable:!0,configurable:!0,writable:!0}):e[n]=t,e;var e,n,t}},{key:"onClickBadge",value:function(e){e.stopPropagation()}},{key:"renderSources",value:function(){var e=o.extend({},{model:this.model},this.options.sourceMetadataOptions);this.showChildView("sources",new u.V(e))}},{key:"renderSeries",value:function(){this.showChildView("series",new s.O({model:this.model,highlight:this.options.sourceMetadataOptions&&!!this.options.sourceMetadataOptions.highlight}))}},{key:"renderBadges",value:function(){this.showChildView("badges",new a.k({model:this.model}))}},{key:"viewOptions",value:function(){return{styles:d.Z,hasAdminRestriction:c.S9.hasAdminRestriction(this.model),restrictionMessage:c.S9.getRestrictionTooltipMessage(this.model),lockSvg:l.Nj.getSvg(l.vn.Lock)}}},{key:"onRender",value:function(){this.renderSeries(),this.renderSources(),this.renderBadges()}}],r&&m(t.prototype,r),Object.defineProperty(t,"prototype",{writable:!1}),t;var t,r}(r.Q.wA)},38890:function(e,n,t){"use strict";t.d(n,{l:function(){return v}});var o=t(31647),r=t(85475),i=t(63162),l=t(90671),a=t(31204),s=t(89707),u=t(61539),c=t.n(u);function p(e){return p="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},p(e)}function f(e,n){for(var t=0;t<n.length;t++){var o=n[t];o.enumerable=o.enumerable||!1,o.configurable=!0,"value"in o&&(o.writable=!0),Object.defineProperty(e,d(o.key),o)}}function d(e){var n=function(e){if("object"!=p(e)||!e)return e;var n=e[Symbol.toPrimitive];if(void 0!==n){var t=n.call(e,"string");if("object"!=p(t))return t;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}(e);return"symbol"==p(n)?n:n+""}function h(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){})))}catch(e){}return(h=function(){return!!e})()}function m(e){return m=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(e){return e.__proto__||Object.getPrototypeOf(e)},m(e)}function y(e,n){return y=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(e,n){return e.__proto__=n,e},y(e,n)}var v=function(e){function n(e){return function(e,n){if(!(e instanceof n))throw new TypeError("Cannot call a class as a function")}(this,n),function(e,n,t){return n=m(n),function(e,n){if(n&&("object"==p(n)||"function"==typeof n))return n;if(void 0!==n)throw new TypeError("Derived constructors may only return object or undefined");return function(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}(e)}(e,h()?Reflect.construct(n,t||[],m(e).constructor):n.apply(e,t))}(this,n,[e])}return function(e,n){if("function"!=typeof n&&null!==n)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(n&&n.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),Object.defineProperty(e,"prototype",{writable:!1}),n&&y(e,n)}(n,e),t=n,o=[{key:"name",get:function(){return"VideoItemAwaitingReviewMetadataComponent"}},{key:"template",get:function(){return c()}},{key:"events",value:function(){return{"click .video-title":"onClickMetadata","click .svg-container":"onClickMetadata"}}},{key:"regions",value:function(){return{badges:{el:".badges-region",replaceElement:!0},series:{el:".series-region",replaceElement:!0}}}},{key:"onClickMetadata",value:function(e){e.stopPropagation()}},{key:"getVideoUrl",value:function(){var e="videos/".concat(this.model.get("id"));return s.k.getMainProductUrl(this.options.config,e,e)}},{key:"getSeriesUrl",value:function(){if(this.model.series){var e="series/".concat(this.model.series.id);return s.k.getMainProductUrl(this.options.config,e,e)}}},{key:"renderBadges",value:function(){this.showChildView("badges",new l.k({model:this.model,showReviewBadge:!0}))}},{key:"renderSeries",value:function(){this.showChildView("series",new a.O({model:this.model,highlight:!1,seriesUrl:this.getSeriesUrl()}))}},{key:"viewOptions",value:function(){return{styles:i.Z,videoUrl:this.getVideoUrl(),openExternalSvg:r.Nj.getSvg(r.vn.NewWindow)}}},{key:"onRender",value:function(){this.renderSeries(),this.renderBadges()}}],o&&f(t.prototype,o),Object.defineProperty(t,"prototype",{writable:!1}),t;var t,o}(o.Q.wA)},90671:function(e,n,t){"use strict";t.d(n,{k:function(){return b}});var o=t(31647),r=t(56210),i=t(85475),l=t(39809),a=t(85847),s=t(93569),u=t(7190),c=t(53885),p=t.n(c),f={interactive:"ggsOm",rating:"CPfqH",svgContainer:"lp1lA",badgesWrapper:"Jh1rs",restrictionBadgeClass:"M6hY4",reviewBadge:"wkjr7",urgentReviewBadge:"rScjU"};function d(e){return d="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},d(e)}function h(e,n){for(var t=0;t<n.length;t++){var o=n[t];o.enumerable=o.enumerable||!1,o.configurable=!0,"value"in o&&(o.writable=!0),Object.defineProperty(e,m(o.key),o)}}function m(e){var n=function(e){if("object"!=d(e)||!e)return e;var n=e[Symbol.toPrimitive];if(void 0!==n){var t=n.call(e,"string");if("object"!=d(t))return t;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}(e);return"symbol"==d(n)?n:n+""}function y(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){})))}catch(e){}return(y=function(){return!!e})()}function v(e){return v=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(e){return e.__proto__||Object.getPrototypeOf(e)},v(e)}function g(e,n){return g=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(e,n){return e.__proto__=n,e},g(e,n)}var b=function(e){function n(e){return function(e,n){if(!(e instanceof n))throw new TypeError("Cannot call a class as a function")}(this,n),function(e,n,t){return n=v(n),function(e,n){if(n&&("object"==d(n)||"function"==typeof n))return n;if(void 0!==n)throw new TypeError("Derived constructors may only return object or undefined");return function(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}(e)}(e,y()?Reflect.construct(n,t||[],v(e).constructor):n.apply(e,t))}(this,n,[e])}return function(e,n){if("function"!=typeof n&&null!==n)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(n&&n.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),Object.defineProperty(e,"prototype",{writable:!1}),n&&g(e,n)}(n,e),t=n,o=[{key:"name",get:function(){return"VideoItemBadgesComponent"}},{key:"template",get:function(){return p()}},{key:"lang",get:function(){return"shared.videoItemBadges"}},{key:"behaviors",get:function(){return[{behaviorClass:r.H,selector:".tool-tip"}]}},{key:"defaults",get:function(){return{showRestrictionBadge:!1,showReviewBadge:!1}}},{key:"regions",value:function(){return{mediaType:{el:".media-type-region",replaceElement:!0}}}},{key:"events",value:function(){return{"click span":"onClick"}}},{key:"onClick",value:function(e){e.stopPropagation()}},{key:"renderMediaTypeBadge",value:function(){if(!s.M2.isVideo(this.model)){var e=new l.Z({model:this.model});this.showChildView("mediaType",e)}}},{key:"viewOptions",value:function(){var e=this.options.showReviewBadge&&s.S9.getRestrictionTooltipMessage(this.model),n=this.options.showRestrictionBadge&&s.S9.getRestrictionTooltipMessage(this.model),t=this.model instanceof a.n?this.model.rating.toJSON():null;return{styles:f,interactive:u.uB.isInteractive(this.model),mediaType:!s.M2.isVideo(this.model),subtitles:!1,resources:!1,ratingColorClass:t&&u.uB.mapRatingToClass(t.value),closeCaptionSvg:i.Nj.getSvg(i.vn.CloseCaptionBadge),resourcesSvg:i.Nj.getSvg(i.vn.Resources),awaitingReviewMessage:e,awaitingReviewBadgeClass:s.S9.getReviewBadgeClassName(this.model,f.reviewBadge,f.urgentReviewBadge),restrictionMessage:n,rating:t}}},{key:"onRender",value:function(){this.renderMediaTypeBadge()}}],o&&h(t.prototype,o),Object.defineProperty(t,"prototype",{writable:!1}),t;var t,o}(o.Q.wA)},30210:function(e,n,t){"use strict";t.d(n,{x:function(){return O}});var o=t(21161),r=t(31647),i=t(56210),l=t(85475),a=t(63162),s=t(90671),u=t(93569),c=t(89707),p=t(31204),f=t(94559),d=t.n(f),h={series:"IEOid"};function m(e){return m="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},m(e)}function y(e,n,t){return(n=g(n))in e?Object.defineProperty(e,n,{value:t,enumerable:!0,configurable:!0,writable:!0}):e[n]=t,e}function v(e,n){for(var t=0;t<n.length;t++){var o=n[t];o.enumerable=o.enumerable||!1,o.configurable=!0,"value"in o&&(o.writable=!0),Object.defineProperty(e,g(o.key),o)}}function g(e){var n=function(e){if("object"!=m(e)||!e)return e;var n=e[Symbol.toPrimitive];if(void 0!==n){var t=n.call(e,"string");if("object"!=m(t))return t;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}(e);return"symbol"==m(n)?n:n+""}function b(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){})))}catch(e){}return(b=function(){return!!e})()}function w(e){return w=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(e){return e.__proto__||Object.getPrototypeOf(e)},w(e)}function k(e,n){return k=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(e,n){return e.__proto__=n,e},k(e,n)}var O=function(e){function n(e){return function(e,n){if(!(e instanceof n))throw new TypeError("Cannot call a class as a function")}(this,n),function(e,n,t){return n=w(n),function(e,n){if(n&&("object"==m(n)||"function"==typeof n))return n;if(void 0!==n)throw new TypeError("Derived constructors may only return object or undefined");return function(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}(e)}(e,b()?Reflect.construct(n,t||[],w(e).constructor):n.apply(e,t))}(this,n,[e])}return function(e,n){if("function"!=typeof n&&null!==n)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(n&&n.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),Object.defineProperty(e,"prototype",{writable:!1}),n&&k(e,n)}(n,e),t=n,r=[{key:"initialize",value:function(){this.listenTo(this.model,"change:restrictions",this.render)}},{key:"name",get:function(){return"VideoItemPastReleasesMetadataComponent"}},{key:"template",get:function(){return d()}},{key:"lang",get:function(){return"shared.videoItemPastReleasesMetadata"}},{key:"behaviors",get:function(){return[{behaviorClass:i.H,selector:".tool-tip"}]}},{key:"regions",value:function(){return{badges:{el:".badges-region",replaceElement:!0},series:{el:".series-region",replaceElement:!0}}}},{key:"events",value:function(){return y(y({"click .video-title":"onClickMetadata"},"click .".concat(h.series),"onClickMetadata"),"click .svg-container","onClickMetadata")}},{key:"onClickMetadata",value:function(e){e.stopPropagation()}},{key:"getVideoUrl",value:function(){var e="videos/".concat(this.model.get("id"));return c.k.getMainProductUrl(this.options.config,e,e)}},{key:"getSeriesUrl",value:function(){if(this.model.series){var e="series/".concat(this.model.series.id);return c.k.getMainProductUrl(this.options.config,e,e)}}},{key:"renderBadges",value:function(){this.showChildView("badges",new s.k({model:this.model}))}},{key:"renderSeries",value:function(){this.showChildView("series",new p.O({model:this.model,highlight:!1,seriesUrl:this.getSeriesUrl()}))}},{key:"viewOptions",value:function(){return{styles:o.extend({},a.Z,h),videoUrl:this.getVideoUrl(),openExternalSvg:l.Nj.getSvg(l.vn.NewWindow),hasAdminRestriction:u.S9.hasAdminRestriction(this.model),restrictionMessage:u.S9.getRestrictionTooltipMessage(this.model),lockSvg:l.Nj.getSvg(l.vn.Lock)}}},{key:"onRender",value:function(){this.renderSeries(),this.renderBadges()}}],r&&v(t.prototype,r),Object.defineProperty(t,"prototype",{writable:!1}),t;var t,r}(r.Q.wA)},60371:function(e,n,t){"use strict";t.d(n,{x:function(){return m}});var o=t(31647),r=t(83891),i=t(50028),l=t(45390),a=t(56914),s=t.n(a);function u(e){return u="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},u(e)}function c(e,n){for(var t=0;t<n.length;t++){var o=n[t];o.enumerable=o.enumerable||!1,o.configurable=!0,"value"in o&&(o.writable=!0),Object.defineProperty(e,p(o.key),o)}}function p(e){var n=function(e){if("object"!=u(e)||!e)return e;var n=e[Symbol.toPrimitive];if(void 0!==n){var t=n.call(e,"string");if("object"!=u(t))return t;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}(e);return"symbol"==u(n)?n:n+""}function f(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){})))}catch(e){}return(f=function(){return!!e})()}function d(e){return d=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(e){return e.__proto__||Object.getPrototypeOf(e)},d(e)}function h(e,n){return h=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(e,n){return e.__proto__=n,e},h(e,n)}var m=function(e){function n(e){return function(e,n){if(!(e instanceof n))throw new TypeError("Cannot call a class as a function")}(this,n),function(e,n,t){return n=d(n),function(e,n){if(n&&("object"==u(n)||"function"==typeof n))return n;if(void 0!==n)throw new TypeError("Derived constructors may only return object or undefined");return function(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}(e)}(e,f()?Reflect.construct(n,t||[],d(e).constructor):n.apply(e,t))}(this,n,[e])}return function(e,n){if("function"!=typeof n&&null!==n)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(n&&n.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),Object.defineProperty(e,"prototype",{writable:!1}),n&&h(e,n)}(n,e),t=n,(o=[{key:"initialize",value:function(){this.bindListeners()}},{key:"bindListeners",value:function(){this.model.get("status")===i.X.Processing&&this.options.pendingItems&&(this.pendingItem||(this.listenTo(this.options.pendingItems,"update",this.mapPendingItem),this.mapPendingItem()))}},{key:"lang",get:function(){return"shared.videoItemProcessingMetadata"}},{key:"mapPendingItem",value:function(){this.pendingItem=this.options.pendingItems.get(this.model.get("id")),this.render(),this.pendingItem&&(this.stopListening(this.options.pendingItems,"update"),this.listenTo(this.pendingItem,"change:foregroundProgress change:backgroundProgress change:pendingProcessStatus",this.render))}},{key:"name",get:function(){return"VideoItemProcessingMetadataComponent"}},{key:"template",get:function(){return s()}},{key:"appLinks",get:function(){var e=this.model.series?this.model.series.id:"";return{".applink-series":{application:l.OV.LIBRARY_EDITOR,action:l.eX.LibraryEditor.FOLDER,args:[e]}}}},{key:"viewOptions",value:function(){return this.pendingItem?{status:r.S.getStatus(this.pendingItem),hasError:r.S.hasError(this.pendingItem),hasPendingItem:!0}:{hasPendingItem:!1}}}])&&c(t.prototype,o),Object.defineProperty(t,"prototype",{writable:!1}),t;var t,o}(o.Q.wA)},67430:function(e,n,t){"use strict";t.d(n,{b:function(){return w}});var o=t(21161),r=t(31647),i=t(56210),l=t(85475),a=t(90671),s=t(65816),u=t(93569),c=t(31204),p=t(47062),f=t.n(p),d=t(63162);function h(e){return h="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},h(e)}function m(e,n){for(var t=0;t<n.length;t++){var o=n[t];o.enumerable=o.enumerable||!1,o.configurable=!0,"value"in o&&(o.writable=!0),Object.defineProperty(e,y(o.key),o)}}function y(e){var n=function(e){if("object"!=h(e)||!e)return e;var n=e[Symbol.toPrimitive];if(void 0!==n){var t=n.call(e,"string");if("object"!=h(t))return t;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}(e);return"symbol"==h(n)?n:n+""}function v(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){})))}catch(e){}return(v=function(){return!!e})()}function g(e){return g=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(e){return e.__proto__||Object.getPrototypeOf(e)},g(e)}function b(e,n){return b=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(e,n){return e.__proto__=n,e},b(e,n)}var w=function(e){function n(e){return function(e,n){if(!(e instanceof n))throw new TypeError("Cannot call a class as a function")}(this,n),function(e,n,t){return n=g(n),function(e,n){if(n&&("object"==h(n)||"function"==typeof n))return n;if(void 0!==n)throw new TypeError("Derived constructors may only return object or undefined");return function(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}(e)}(e,v()?Reflect.construct(n,t||[],g(e).constructor):n.apply(e,t))}(this,n,[e])}return function(e,n){if("function"!=typeof n&&null!==n)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(n&&n.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),Object.defineProperty(e,"prototype",{writable:!1}),n&&b(e,n)}(n,e),t=n,r=[{key:"initialize",value:function(){this.listenTo(this.model,"change:restrictions",this.render)}},{key:"name",get:function(){return"VideoItemSearchMetadataComponent"}},{key:"template",get:function(){return f()}},{key:"behaviors",get:function(){return[{behaviorClass:i.H,selector:".tool-tip"}]}},{key:"appLinks",get:function(){return{".applink-show-video":u.M2.getDetailsAppLink(this.model)}}},{key:"regions",value:function(){return{sources:{el:".sources-region",replaceElement:!0},badges:{el:".badges-region",replaceElement:!0},series:{el:".series-region",replaceElement:!0}}}},{key:"events",value:function(){return e={click:"onClick"},t="onClickSvg",(n=y(n="click ".concat(d.Z.svgContainer)))in e?Object.defineProperty(e,n,{value:t,enumerable:!0,configurable:!0,writable:!0}):e[n]=t,e;var e,n,t}},{key:"onClickSvg",value:function(e){e.stopPropagation()}},{key:"getKeyPhrases",value:function(){var e=this;return u.m$.extractKeyPhrases(this.model.get("description"),this.model.get("_matchedWords"),100,2).map((function(n){return u.m$.wordsHighlighter(u.m$.escapeExpression(n),e.model.get("_matchedWords"))}))}},{key:"renderSources",value:function(){var e=o.extend({},{model:this.model},this.options.sourceMetadataOptions);this.showChildView("sources",new s.V(e))}},{key:"renderSeries",value:function(){this.showChildView("series",new c.O({model:this.model,highlight:this.options.sourceMetadataOptions&&!!this.options.sourceMetadataOptions.highlight}))}},{key:"renderBadges",value:function(){this.showChildView("badges",new a.k({model:this.model}))}},{key:"viewOptions",value:function(){return{styles:d.Z,name:u.m$.wordsHighlighter(u.m$.escapeExpression(this.model.get("name")),this.model.get("_matchedWords")),keyPhrases:this.getKeyPhrases(),hasAdminRestriction:u.S9.hasAdminRestriction(this.model),restrictionMessage:u.S9.getRestrictionTooltipMessage(this.model),lockSvg:l.Nj.getSvg(l.vn.Lock)}}},{key:"onRender",value:function(){this.renderSeries(),this.renderSources(),this.renderBadges()}}],r&&m(t.prototype,r),Object.defineProperty(t,"prototype",{writable:!1}),t;var t,r}(r.Q.wA)},31204:function(e,n,t){"use strict";t.d(n,{O:function(){return y}});var o=t(31647),r=t(85475),i=t(45390),l=t(93569),a=t(19021),s=t.n(a),u={svgContainer:"kKrQJ",series:"zJvxj"};function c(e){return c="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},c(e)}function p(e,n){for(var t=0;t<n.length;t++){var o=n[t];o.enumerable=o.enumerable||!1,o.configurable=!0,"value"in o&&(o.writable=!0),Object.defineProperty(e,f(o.key),o)}}function f(e){var n=function(e){if("object"!=c(e)||!e)return e;var n=e[Symbol.toPrimitive];if(void 0!==n){var t=n.call(e,"string");if("object"!=c(t))return t;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}(e);return"symbol"==c(n)?n:n+""}function d(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){})))}catch(e){}return(d=function(){return!!e})()}function h(e){return h=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(e){return e.__proto__||Object.getPrototypeOf(e)},h(e)}function m(e,n){return m=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(e,n){return e.__proto__=n,e},m(e,n)}var y=function(e){function n(e){return function(e,n){if(!(e instanceof n))throw new TypeError("Cannot call a class as a function")}(this,n),function(e,n,t){return n=h(n),function(e,n){if(n&&("object"==c(n)||"function"==typeof n))return n;if(void 0!==n)throw new TypeError("Derived constructors may only return object or undefined");return function(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}(e)}(e,d()?Reflect.construct(n,t||[],h(e).constructor):n.apply(e,t))}(this,n,[e])}return function(e,n){if("function"!=typeof n&&null!==n)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(n&&n.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),Object.defineProperty(e,"prototype",{writable:!1}),n&&m(e,n)}(n,e),t=n,(o=[{key:"defaults",get:function(){return{styleUppercase:!0}}},{key:"name",get:function(){return"VideoItemSeriesComponent"}},{key:"template",get:function(){return s()}},{key:"appLinks",get:function(){return this.options.seriesUrl||!this.model.series?{}:{".series-applink":{application:i.OV.LIBRARY_EDITOR,action:i.eX.LibraryEditor.SERIES,args:[this.model.series.get("id")]}}}},{key:"padNumber",value:function(e){if(!e)return null;var n=e.toString(),t=2;if(n.length>=t)return n;for(t-=n.length;t>0;)n="0"+n,t--;return n}},{key:"getSeriesName",value:function(){var e=l.m$.escapeExpression(this.model.series.get("name"));return this.options.highlight?l.m$.wordsHighlighter(e,this.model.get("_matchedWords")):e}},{key:"viewOptions",value:function(){return this.model.series?{styles:u,seasonNumber:this.padNumber(this.model.season&&this.model.season.get("number")),episodeNumber:this.padNumber(this.model.get("episodeNumber")),seriesName:this.getSeriesName(),seriesUrl:this.options.seriesUrl,externalSvg:r.Nj.getSvg(r.vn.NewWindow),styleUppercase:this.options.styleUppercase}:{}}},{key:"onBeforeRender",value:function(){return this.model.series&&!!this.model.series.get("id")}}])&&p(t.prototype,o),Object.defineProperty(t,"prototype",{writable:!1}),t;var t,o}(o.Q.wA)},2496:function(e,n,t){"use strict";t.d(n,{g:function(){return O}});var o=t(21161),r=t(31647),i=t(56210),l=t(85475),a=t(90671),s=t(31204),u=t(65816),c=t(45390),p=t(93569),f=t(89707),d=t(94446),h=t.n(d),m=t(63162);function y(e){return y="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},y(e)}function v(e,n){for(var t=0;t<n.length;t++){var o=n[t];o.enumerable=o.enumerable||!1,o.configurable=!0,"value"in o&&(o.writable=!0),Object.defineProperty(e,g(o.key),o)}}function g(e){var n=function(e){if("object"!=y(e)||!e)return e;var n=e[Symbol.toPrimitive];if(void 0!==n){var t=n.call(e,"string");if("object"!=y(t))return t;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}(e);return"symbol"==y(n)?n:n+""}function b(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){})))}catch(e){}return(b=function(){return!!e})()}function w(e){return w=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(e){return e.__proto__||Object.getPrototypeOf(e)},w(e)}function k(e,n){return k=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(e,n){return e.__proto__=n,e},k(e,n)}var O=function(e){function n(e){return function(e,n){if(!(e instanceof n))throw new TypeError("Cannot call a class as a function")}(this,n),function(e,n,t){return n=w(n),function(e,n){if(n&&("object"==y(n)||"function"==typeof n))return n;if(void 0!==n)throw new TypeError("Derived constructors may only return object or undefined");return function(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}(e)}(e,b()?Reflect.construct(n,t||[],w(e).constructor):n.apply(e,t))}(this,n,[e])}return function(e,n){if("function"!=typeof n&&null!==n)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(n&&n.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),Object.defineProperty(e,"prototype",{writable:!1}),n&&k(e,n)}(n,e),t=n,r=[{key:"initialize",value:function(){this.listenTo(this.model,"change:restrictions",this.render)}},{key:"name",get:function(){return"VideoItemVideoAccessMetadataComponent"}},{key:"template",get:function(){return h()}},{key:"behaviors",get:function(){return[{behaviorClass:i.H,selector:".tool-tip"}]}},{key:"appLinks",get:function(){if(p.M2.hasCustomLibrary(this.model))return{".applink-show-video":{application:c.OV.LIBRARY_EDITOR,action:c.eX.LibraryEditor.VIDEO_DETAILS,args:[this.model.get("id")]}}}},{key:"regions",value:function(){return{sources:{el:".sources-region",replaceElement:!0},badges:{el:".badges-region",replaceElement:!0},series:{el:".series-region",replaceElement:!0}}}},{key:"events",value:function(){return e={click:"onClick","click .video-title":"onClickMetadata"},t="onClickMetadata",(n=g(n="click .".concat(m.Z.svgContainer)))in e?Object.defineProperty(e,n,{value:t,enumerable:!0,configurable:!0,writable:!0}):e[n]=t,e;var e,n,t}},{key:"onClickMetadata",value:function(e){e.stopPropagation()}},{key:"getVideoUrl",value:function(){var e="videos/".concat(this.model.get("id"));return f.k.getMainProductUrl(this.options.config,e,e)}},{key:"renderSources",value:function(){if(p.M2.hasCustomLibrary(this.model)){var e=o.extend({},{model:this.model},this.options.sourceMetadataOptions);this.showChildView("sources",new u.V(e))}}},{key:"renderSeries",value:function(){p.M2.hasCustomLibrary(this.model)&&this.showChildView("series",new s.O({model:this.model,highlight:this.options.sourceMetadataOptions&&!!this.options.sourceMetadataOptions.highlight}))}},{key:"renderBadges",value:function(){this.showChildView("badges",new a.k({model:this.model,showRestrictionBadge:!0}))}},{key:"viewOptions",value:function(){return{styles:m.Z,restrictionMessage:p.S9.getRestrictionTooltipMessage(this.model),lockSvg:l.Nj.getSvg(l.vn.Lock),linkToOnline:!p.M2.hasCustomLibrary(this.model),videoUrl:this.getVideoUrl(),openExternalSvg:l.Nj.getSvg(l.vn.NewWindow)}}},{key:"onRender",value:function(){this.renderSeries(),this.renderSources(),this.renderBadges()}}],r&&v(t.prototype,r),Object.defineProperty(t,"prototype",{writable:!1}),t;var t,r}(r.Q.wA)},85597:function(e,n,t){var o=t(31197);e.exports=(o.default||o).template({1:function(e,n,t,o,r){var i;return e.propertyIsEnumerable,' <a class="info-link show-more-tags">'+e.escapeExpression(e.lambda(null!=(i=null!=n?n.options:n)?i.extraTagsText:i,n))+"</a>\n"},3:function(e,n,t,o,r){return e.propertyIsEnumerable,' <a class="info-link applink-video-details">'+e.escapeExpression((t.lang||n&&n.lang||e.hooks.helperMissing).call(null!=n?n:e.nullContext||{},"viewAllTags",{name:"lang",hash:{},data:r}))+"</a>\n"},compiler:[8,">= 4.3.0"],main:function(e,n,t,o,r){e.propertyIsEnumerable;var i,l=null!=n?n:e.nullContext||{};return'<div class="tags-region"></div>\n\n'+(null!=(i=t.if.call(l,null!=(i=null!=n?n.options:n)?i.expandable:i,{name:"if",hash:{},fn:e.program(1,r,0),inverse:e.noop,data:r}))?i:"")+(null!=(i=t.if.call(l,null!=(i=null!=n?n.options:n)?i.moreTags:i,{name:"if",hash:{},fn:e.program(3,r,0),inverse:e.noop,data:r}))?i:"")},useData:!0})},16317:function(e,n,t){var o=t(31197);e.exports=(o.default||o).template({1:function(e,n,t,o,r){return" cursor-pointer"},3:function(e,n,t,o,r){return"checked"},5:function(e,n,t,o,r){return"disabled"},compiler:[8,">= 4.3.0"],main:function(e,n,t,o,r){e.propertyIsEnumerable;var i,l=e.lambda,a=e.escapeExpression,s=null!=n?n:e.nullContext||{};return'<div class="form-check '+a(l(null!=(i=null!=n?n.options:n)?i.checkboxClassName:i,n))+'">\n <input name="checkbox-'+a(l(null!=(i=null!=n?n.options:n)?i.id:i,n))+'" id="checkbox-'+a(l(null!=(i=null!=n?n.options:n)?i.id:i,n))+'" type="checkbox" class="form-check-input'+(null!=(i=t.unless.call(s,null!=(i=null!=n?n.options:n)?i.disabled:i,{name:"unless",hash:{},fn:e.program(1,r,0),inverse:e.noop,data:r}))?i:"")+'" '+(null!=(i=t.if.call(s,null!=(i=null!=n?n.options:n)?i.checked:i,{name:"if",hash:{},fn:e.program(3,r,0),inverse:e.noop,data:r}))?i:"")+" "+(null!=(i=t.if.call(s,null!=(i=null!=n?n.options:n)?i.disabled:i,{name:"if",hash:{},fn:e.program(5,r,0),inverse:e.noop,data:r}))?i:"")+' />\n <label class="form-check-label'+(null!=(i=t.unless.call(s,null!=(i=null!=n?n.options:n)?i.disabled:i,{name:"unless",hash:{},fn:e.program(1,r,0),inverse:e.noop,data:r}))?i:"")+'" for="checkbox-'+a(l(null!=(i=null!=n?n.options:n)?i.id:i,n))+'"> </label>\n</div>'},useData:!0})},30225:function(e,n,t){var o=t(31197);e.exports=(o.default||o).template({compiler:[8,">= 4.3.0"],main:function(e,n,t,o,r){e.propertyIsEnumerable;var i,l=e.lambda,a=e.escapeExpression;return"<p>"+a(l(null!=(i=null!=n?n.options:n)?i.duration:i,n))+"</p>\n\n<div class='overflow-hidden rounded-3 border border-secondary-subtle p-3'>\n <div class='position-relative z-1'>\n <div class='position-absolute w-100'>\n <div class='bg-light rounded-3 "+a(l(null!=(i=null!=(i=null!=n?n.options:n)?i.styles:i)?i.durationBar:i,n))+"'></div>\n </div>\n </div>\n <div class='position-relative z-1' style="+a(l(null!=(i=null!=n?n.options:n)?i.clipPosition:i,n))+">\n <div class='bg-blue rounded-3 px-1 "+a(l(null!=(i=null!=(i=null!=n?n.options:n)?i.styles:i)?i.durationBar:i,n))+"' style="+a(l(null!=(i=null!=n?n.options:n)?i.clipDurationWidth:i,n))+"></div>\n </div>\n <div class='d-flex justify-content-between text-body-secondary'>\n <span>"+a(l(null!=(i=null!=n?n.options:n)?i.startDuration:i,n))+"</span>\n <span>"+a(l(null!=(i=null!=n?n.options:n)?i.parentDuration:i,n))+"</span>\n </div>\n</div>"},useData:!0})},19496:function(e,n,t){var o=t(31197);e.exports=(o.default||o).template({1:function(e,n,t,o,r){return e.propertyIsEnumerable," <p>"+e.escapeExpression((t.lang||n&&n.lang||e.hooks.helperMissing).call(null!=n?n:e.nullContext||{},"noDescription",{name:"lang",hash:{},data:r}))+"</p>\n"},3:function(e,n,t,o,r){return' <div class="description-region"></div>\n'},5:function(e,n,t,o,r){e.propertyIsEnumerable;var i,l=e.lambda,a=e.escapeExpression;return' <div class="fw-semibold col-3 '+a(l(null!=(i=null!=(i=null!=n?n.options:n)?i.styles:i)?i.columnNames:i,n))+'">'+a((t.lang||n&&n.lang||e.hooks.helperMissing).call(null!=n?n:e.nullContext||{},"dateUploaded",{name:"lang",hash:{},data:r}))+'</div>\n <p class="col-9">'+a(l(null!=(i=null!=n?n.options:n)?i.uploadedDate:i,n))+"</p>\n"},compiler:[8,">= 4.3.0"],main:function(e,n,t,o,r){e.propertyIsEnumerable;var i,l=null!=n?n:e.nullContext||{},a=e.hooks.helperMissing,s=e.escapeExpression;return'<div class="content-container-region row w-100 py-3 ps-0">\n <div class="col-5">\n <div class="video-preview-region"></div>\n </div>\n <div class="col-7 ps-3 pe-0">\n <p class="h5">'+s((t.lang||n&&n.lang||a).call(l,"details",{name:"lang",hash:{},data:r}))+'</p>\n\n <div class="row mb-3">\n <p class="fw-semibold col-3">'+s((t.lang||n&&n.lang||a).call(l,"description",{name:"lang",hash:{},data:r}))+'</p>\n\n <div class="col-9">\n'+(null!=(i=t.unless.call(l,null!=(i=null!=n?n.options:n)?i.description:i,{name:"unless",hash:{},fn:e.program(1,r,0),inverse:e.program(3,r,0),data:r}))?i:"")+" </div>\n\n"+(null!=(i=t.unless.call(l,null!=(i=null!=n?n.options:n)?i.hideUploadedDate:i,{name:"unless",hash:{},fn:e.program(5,r,0),inverse:e.noop,data:r}))?i:"")+'\n <p class="fw-semibold col-3">'+s((t.lang||n&&n.lang||a).call(l,"duration",{name:"lang",hash:{},data:r}))+'</p>\n\n <div class="col-9">\n <div class="clip-duration-region"></div>\n </div>\n </div>\n\n\n <div class="text-end">\n <a class="info-link applink-video-details d-inline-block fw-semibold">\n '+s((t.lang||n&&n.lang||a).call(l,"viewFullDetails",{name:"lang",hash:{},data:r}))+"\n </a>\n </div>\n </div>\n</div>"},useData:!0})},78208:function(e,n,t){var o=t(31197);e.exports=(o.default||o).template({1:function(e,n,t,o,r){return e.propertyIsEnumerable," <p>"+e.escapeExpression((t.lang||n&&n.lang||e.hooks.helperMissing).call(null!=n?n:e.nullContext||{},"noDescription",{name:"lang",hash:{},data:r}))+"</p>\n"},3:function(e,n,t,o,r){return' <div class="description-region"></div>\n'},5:function(e,n,t,o,r){e.propertyIsEnumerable;var i,l=e.lambda,a=e.escapeExpression;return' <div class="col-3 '+a(l(null!=(i=null!=(i=null!=n?n.options:n)?i.styles:i)?i.columnNames:i,n))+'">'+a((t.lang||n&&n.lang||e.hooks.helperMissing).call(null!=n?n:e.nullContext||{},"dateUploaded",{name:"lang",hash:{},data:r}))+'</div>\n <p class="col-9">'+a(l(null!=(i=null!=n?n.options:n)?i.uploadedDate:i,n))+"</p>\n"},7:function(e,n,t,o,r){return' <div class="mb-3">\n <div class="interactives-region"></div>\n </div>\n'},compiler:[8,">= 4.3.0"],main:function(e,n,t,o,r){e.propertyIsEnumerable;var i,l=null!=n?n:e.nullContext||{},a=e.hooks.helperMissing,s=e.escapeExpression;return'<div class="content-container-region row w-100 py-3 ps-0">\n <div class="col-5">\n <div class="interactive-thumbnail-region"></div>\n </div>\n <div class="col-7 ps-3 pe-0">\n <p class="h5">'+s((t.lang||n&&n.lang||a).call(l,"details",{name:"lang",hash:{},data:r}))+'</p>\n\n <div class="row">\n <p class="fw-semibold col-3">'+s((t.lang||n&&n.lang||a).call(l,"description",{name:"lang",hash:{},data:r}))+'</p>\n\n <div class="col-9">\n'+(null!=(i=t.unless.call(l,null!=(i=null!=n?n.options:n)?i.description:i,{name:"unless",hash:{},fn:e.program(1,r,0),inverse:e.program(3,r,0),data:r}))?i:"")+" </div>\n </div>\n\n"+(null!=(i=t.unless.call(l,null!=(i=null!=n?n.options:n)?i.hideUploadedDate:i,{name:"unless",hash:{},fn:e.program(5,r,0),inverse:e.noop,data:r}))?i:"")+"\n"+(null!=(i=t.if.call(l,null!=(i=null!=n?n.options:n)?i.hasInteractions:i,{name:"if",hash:{},fn:e.program(7,r,0),inverse:e.noop,data:r}))?i:"")+'\n <div class="text-end">\n <a class="info-link applink-video-details d-inline-block fw-semibold">\n '+s((t.lang||n&&n.lang||a).call(l,"viewFullDetails",{name:"lang",hash:{},data:r}))+"\n </a>\n </div>\n </div>\n</div>"},useData:!0})},27718:function(e,n,t){var o=t(31197);e.exports=(o.default||o).template({1:function(e,n,t,o,r){e.propertyIsEnumerable;var i,l,a=null!=n?n:e.nullContext||{},s=e.hooks.helperMissing,u="function",c=e.escapeExpression;return' <div class="d-flex gap-4">\n <span>'+c(typeof(l=null!=(l=t.time||(null!=n?n.time:n))?l:s)===u?l.call(a,{name:"time",hash:{},data:r}):l)+'</span>\n <div class="'+c(typeof(l=null!=(l=t.bgClassName||(null!=n?n.bgClassName:n))?l:s)===u?l.call(a,{name:"bgClassName",hash:{},data:r}):l)+' interaction-type-icon d-flex flex-shrink-0 sm">'+(null!=(i=typeof(l=null!=(l=t.svgEl||(null!=n?n.svgEl:n))?l:s)===u?l.call(a,{name:"svgEl",hash:{},data:r}):l)?i:"")+'</div>\n <span class="fw-semibold col-2">'+c(typeof(l=null!=(l=t.typeName||(null!=n?n.typeName:n))?l:s)===u?l.call(a,{name:"typeName",hash:{},data:r}):l)+"</span>\n <span>"+c(typeof(l=null!=(l=t.name||(null!=n?n.name:n))?l:s)===u?l.call(a,{name:"name",hash:{},data:r}):l)+"</span>\n </div>\n"},compiler:[8,">= 4.3.0"],main:function(e,n,t,o,r){var i;return e.propertyIsEnumerable,'<p class="fw-semibold">'+e.escapeExpression(e.lambda(null!=(i=null!=n?n.options:n)?i.heading:i,n))+'</p>\n<div class="d-flex flex-column gap-3">\n'+(null!=(i=t.each.call(null!=n?n:e.nullContext||{},null!=(i=null!=n?n.options:n)?i.questionListElements:i,{name:"each",hash:{},fn:e.program(1,r,0),inverse:e.noop,data:r}))?i:"")+"</div>"},useData:!0})},75176:function(e,n,t){var o=t(31197);e.exports=(o.default||o).template({compiler:[8,">= 4.3.0"],main:function(e,n,t,o,r){e.propertyIsEnumerable;var i,l=e.lambda,a=e.escapeExpression;return'<a href="'+a(l(null!=(i=null!=n?n.options:n)?i.externalLink:i,n))+'" target="_blank" class="position-relative '+a(l(null!=(i=null!=(i=null!=n?n.options:n)?i.styles:i)?i.interactiveThumbnail:i,n))+'">\n <div class="'+a(l(null!=(i=null!=(i=null!=n?n.options:n)?i.styles:i)?i.newWindowIcon:i,n))+' position-absolute top-0 end-0 z-3 bg-white bg-opacity-75 rounded-circle p-1 m-2">\n <div class="svg-container md">\n '+(null!=(i=l(null!=(i=null!=n?n.options:n)?i.externalLinkSvg:i,n))?i:"")+'\n </div>\n </div>\n <div class="thumbnail-region"></div>\n</a>'},useData:!0})},85348:function(e,n,t){var o=t(31197);e.exports=(o.default||o).template({compiler:[8,">= 4.3.0"],main:function(e,n,t,o,r){e.propertyIsEnumerable;var i,l=e.lambda,a=e.escapeExpression;return'<div class="d-inline-block rounded-pill text-white ps-1 pe-2 '+a(l(null!=(i=null!=(i=null!=n?n.options:n)?i.styles:i)?i.mediaTypeBadge:i,n))+" "+a(l(null!=(i=null!=(i=null!=n?n.options:n)?i.mediaType:i)?i.bgClass:i,n))+'">\n <div class="svg-container sm">'+(null!=(i=l(null!=(i=null!=(i=null!=n?n.options:n)?i.mediaType:i)?i.svg:i,n))?i:"")+'</div>\n <span class="font-size-sm align-text-top">'+a(l(null!=(i=null!=(i=null!=n?n.options:n)?i.mediaType:i)?i.label:i,n))+"</span>\n</div>"},useData:!0})},15035:function(e,n,t){var o=t(31197);e.exports=(o.default||o).template({1:function(e,n,t,o,r){return e.propertyIsEnumerable,' <p class="col-9 mb-0 pb-1">'+e.escapeExpression((t.lang||n&&n.lang||e.hooks.helperMissing).call(null!=n?n:e.nullContext||{},"noDescription",{name:"lang",hash:{},data:r}))+"</p>\n"},3:function(e,n,t,o,r){return' <div class="col-9">\n <div class="description-region"></div>\n </div>\n'},5:function(e,n,t,o,r){e.propertyIsEnumerable;var i,l=e.lambda,a=e.escapeExpression;return' <div class="col-3 '+a(l(null!=(i=null!=(i=null!=n?n.options:n)?i.styles:i)?i.columnNames:i,n))+'">'+a((t.lang||n&&n.lang||e.hooks.helperMissing).call(null!=n?n:e.nullContext||{},"rating",{name:"lang",hash:{},data:r}))+'</div>\n <p class="col-9">\n <span class="badge text-white tool-tip '+a(l(null!=(i=null!=n?n.options:n)?i.ratingClass:i,n))+'" title="'+a(l(null!=(i=null!=n?n.rating:n)?i.name:i,n))+'">'+a(l(null!=(i=null!=n?n.rating:n)?i.code:i,n))+"</span>\n </p>\n"},7:function(e,n,t,o,r){e.propertyIsEnumerable;var i,l,a=e.escapeExpression,s=null!=n?n:e.nullContext||{},u=e.hooks.helperMissing;return' <div class="col-3 '+a(e.lambda(null!=(i=null!=(i=null!=n?n.options:n)?i.styles:i)?i.columnNames:i,n))+'">'+a((t.lang||n&&n.lang||u).call(s,"productionYear",{name:"lang",hash:{},data:r}))+'</div>\n <p class="col-9">'+a("function"==typeof(l=null!=(l=t.productionYear||(null!=n?n.productionYear:n))?l:u)?l.call(s,{name:"productionYear",hash:{},data:r}):l)+"</p>\n"},9:function(e,n,t,o,r){e.propertyIsEnumerable;var i,l=e.lambda,a=e.escapeExpression;return' <div class="col-3 '+a(l(null!=(i=null!=(i=null!=n?n.options:n)?i.styles:i)?i.columnNames:i,n))+'">'+a((t.lang||n&&n.lang||e.hooks.helperMissing).call(null!=n?n:e.nullContext||{},"dateUploaded",{name:"lang",hash:{},data:r}))+'</div>\n <p class="col-9 mb-0 pb-1">'+a(l(null!=(i=null!=n?n.options:n)?i.uploadedDate:i,n))+"</p>\n"},11:function(e,n,t,o,r){e.propertyIsEnumerable;var i,l=e.lambda,a=e.escapeExpression,s=null!=n?n:e.nullContext||{};return' <div class="col-3 '+a(l(null!=(i=null!=(i=null!=n?n.options:n)?i.styles:i)?i.columnNames:i,n))+'">'+a((t.lang||n&&n.lang||e.hooks.helperMissing).call(s,"chapters",{name:"lang",hash:{},data:r}))+'</div>\n <p class="col-9">\n <a\n class="info-link '+(null!=(i=t.unless.call(s,null!=(i=null!=n?n.options:n)?i.externalLink:i,{name:"unless",hash:{},fn:e.program(12,r,0),inverse:e.noop,data:r}))?i:"")+'"\n'+(null!=(i=t.if.call(s,null!=(i=null!=n?n.options:n)?i.externalLink:i,{name:"if",hash:{},fn:e.program(14,r,0),inverse:e.noop,data:r}))?i:"")+" >\n "+a(l(null!=(i=null!=n?n.options:n)?i.chapters:i,n))+"\n "+(null!=(i=t.if.call(s,null!=(i=null!=n?n.options:n)?i.externalLink:i,{name:"if",hash:{},fn:e.program(16,r,0),inverse:e.noop,data:r}))?i:"")+"\n </a>\n </p>\n"},12:function(e,n,t,o,r){return"applink-video-details"},14:function(e,n,t,o,r){var i;return e.propertyIsEnumerable,' href="'+e.escapeExpression(e.lambda(null!=(i=null!=n?n.options:n)?i.externalLink:i,n))+'"\n target="_blank"\n'},16:function(e,n,t,o,r){e.propertyIsEnumerable;var i,l=e.lambda;return'<div class="d-inline-block '+e.escapeExpression(l(null!=(i=null!=(i=null!=n?n.options:n)?i.styles:i)?i.smallSvgContainer:i,n))+'">'+(null!=(i=l(null!=(i=null!=n?n.options:n)?i.openExternalSvg:i,n))?i:"")+"</div>"},18:function(e,n,t,o,r){e.propertyIsEnumerable;var i,l=e.lambda,a=e.escapeExpression;return' <div class="col-3 '+a(l(null!=(i=null!=(i=null!=n?n.options:n)?i.styles:i)?i.columnNames:i,n))+'">'+a((t.lang||n&&n.lang||e.hooks.helperMissing).call(null!=n?n:e.nullContext||{},"interactives",{name:"lang",hash:{},data:r}))+'</div>\n <p class="col-9">'+a(l(null!=(i=null!=n?n.options:n)?i.interactives:i,n))+"</p>\n"},20:function(e,n,t,o,r){e.propertyIsEnumerable;var i,l=e.lambda,a=e.escapeExpression;return' <div class="col-3 '+a(l(null!=(i=null!=(i=null!=n?n.options:n)?i.styles:i)?i.columnNames:i,n))+'">'+a((t.lang||n&&n.lang||e.hooks.helperMissing).call(null!=n?n:e.nullContext||{},"subtitles",{name:"lang",hash:{},data:r}))+'</div>\n <p class="col-9">'+a(l(null!=(i=null!=n?n.options:n)?i.subtitles:i,n))+"</p>\n"},22:function(e,n,t,o,r){e.propertyIsEnumerable;var i,l=e.lambda,a=e.escapeExpression,s=null!=n?n:e.nullContext||{};return' <div class="col-3 '+a(l(null!=(i=null!=(i=null!=n?n.options:n)?i.styles:i)?i.columnNames:i,n))+'">'+a((t.lang||n&&n.lang||e.hooks.helperMissing).call(s,"resources",{name:"lang",hash:{},data:r}))+'</div>\n <p class="col-9">\n <a\n class="info-link '+(null!=(i=t.unless.call(s,null!=(i=null!=n?n.options:n)?i.externalLink:i,{name:"unless",hash:{},fn:e.program(12,r,0),inverse:e.noop,data:r}))?i:"")+'"\n'+(null!=(i=t.if.call(s,null!=(i=null!=n?n.options:n)?i.externalLink:i,{name:"if",hash:{},fn:e.program(14,r,0),inverse:e.noop,data:r}))?i:"")+" >\n "+a(l(null!=(i=null!=n?n.options:n)?i.resources:i,n))+"\n "+(null!=(i=t.if.call(s,null!=(i=null!=n?n.options:n)?i.externalLink:i,{name:"if",hash:{},fn:e.program(16,r,0),inverse:e.noop,data:r}))?i:"")+"\n </a>\n </p>\n"},24:function(e,n,t,o,r){e.propertyIsEnumerable;var i,l=e.lambda,a=e.escapeExpression,s=null!=n?n:e.nullContext||{};return' <div class="col-3 '+a(l(null!=(i=null!=(i=null!=n?n.options:n)?i.styles:i)?i.columnNames:i,n))+'">'+a((t.lang||n&&n.lang||e.hooks.helperMissing).call(s,"links",{name:"lang",hash:{},data:r}))+'</div>\n <p class="col-9">\n <a\n class="info-link '+(null!=(i=t.unless.call(s,null!=(i=null!=n?n.options:n)?i.externalLink:i,{name:"unless",hash:{},fn:e.program(12,r,0),inverse:e.noop,data:r}))?i:"")+'"\n'+(null!=(i=t.if.call(s,null!=(i=null!=n?n.options:n)?i.externalLink:i,{name:"if",hash:{},fn:e.program(14,r,0),inverse:e.noop,data:r}))?i:"")+" >\n "+a(l(null!=(i=null!=n?n.options:n)?i.links:i,n))+"\n "+(null!=(i=t.if.call(s,null!=(i=null!=n?n.options:n)?i.externalLink:i,{name:"if",hash:{},fn:e.program(16,r,0),inverse:e.noop,data:r}))?i:"")+"\n </a>\n </p>\n"},26:function(e,n,t,o,r){e.propertyIsEnumerable;var i,l=e.escapeExpression;return' <p class="col-3 '+l(e.lambda(null!=(i=null!=(i=null!=n?n.options:n)?i.styles:i)?i.columnNames:i,n))+'">'+l((t.lang||n&&n.lang||e.hooks.helperMissing).call(null!=n?n:e.nullContext||{},"tags",{name:"lang",hash:{},data:r}))+'</p>\n <div class="col-9 mb-3">\n <div class="tags-region"></div>\n </div>\n'},28:function(e,n,t,o,r){e.propertyIsEnumerable;var i,l=e.lambda,a=e.escapeExpression;return' <a href="'+a(l(null!=(i=null!=n?n.options:n)?i.externalLink:i,n))+'" target="_blank" class="info-link d-inline-block '+a(l(null!=(i=null!=(i=null!=n?n.options:n)?i.styles:i)?i.columnNames:i,n))+'">\n '+a((t.lang||n&&n.lang||e.hooks.helperMissing).call(null!=n?n:e.nullContext||{},"goToVideo",{name:"lang",hash:{},data:r}))+'\n <div class="d-inline-block svg-container">'+(null!=(i=l(null!=(i=null!=n?n.options:n)?i.openExternalSvg:i,n))?i:"")+"</div>\n </a>\n"},30:function(e,n,t,o,r){e.propertyIsEnumerable;var i,l=e.escapeExpression;return' <a class="info-link applink-video-details d-inline-block '+l(e.lambda(null!=(i=null!=(i=null!=n?n.options:n)?i.styles:i)?i.columnNames:i,n))+'">'+l((t.lang||n&&n.lang||e.hooks.helperMissing).call(null!=n?n:e.nullContext||{},"viewFullDetails",{name:"lang",hash:{},data:r}))+"</a>\n"},compiler:[8,">= 4.3.0"],main:function(e,n,t,o,r){e.propertyIsEnumerable;var i,l=e.lambda,a=e.escapeExpression,s=null!=n?n:e.nullContext||{},u=e.hooks.helperMissing;return'<div class="content-container-region row w-100 py-3 ps-0">\n <div class="col-5">\n <div class="video-preview-region"></div>\n </div>\n <div class="col-7 ps-3 pe-0">\n <p class="h5 '+a(l(null!=(i=null!=(i=null!=n?n.options:n)?i.styles:i)?i.columnNames:i,n))+'">'+a((t.lang||n&&n.lang||u).call(s,"details",{name:"lang",hash:{},data:r}))+'</p>\n\n <div class="row">\n <div class="col-3 '+a(l(null!=(i=null!=(i=null!=n?n.options:n)?i.styles:i)?i.columnNames:i,n))+'">'+a((t.lang||n&&n.lang||u).call(s,"description",{name:"lang",hash:{},data:r}))+"</div>\n"+(null!=(i=t.unless.call(s,null!=(i=null!=n?n.options:n)?i.description:i,{name:"unless",hash:{},fn:e.program(1,r,0),inverse:e.program(3,r,0),data:r}))?i:"")+"\n"+(null!=(i=t.if.call(s,null!=(i=null!=n?n.rating:n)?i.code:i,{name:"if",hash:{},fn:e.program(5,r,0),inverse:e.noop,data:r}))?i:"")+"\n"+(null!=(i=t.if.call(s,null!=n?n.productionYear:n,{name:"if",hash:{},fn:e.program(7,r,0),inverse:e.noop,data:r}))?i:"")+"\n"+(null!=(i=t.unless.call(s,null!=(i=null!=n?n.options:n)?i.hideUploadedDate:i,{name:"unless",hash:{},fn:e.program(9,r,0),inverse:e.noop,data:r}))?i:"")+'\n <div class="col-3 '+a(l(null!=(i=null!=(i=null!=n?n.options:n)?i.styles:i)?i.columnNames:i,n))+'">'+a((t.lang||n&&n.lang||u).call(s,"duration",{name:"lang",hash:{},data:r}))+'</div>\n <p class="col-9 mb-0 pb-1">'+a(l(null!=(i=null!=n?n.options:n)?i.duration:i,n))+"</p>\n\n"+(null!=(i=t.if.call(s,null!=(i=null!=n?n.options:n)?i.chapters:i,{name:"if",hash:{},fn:e.program(11,r,0),inverse:e.noop,data:r}))?i:"")+"\n"+(null!=(i=t.if.call(s,null!=(i=null!=n?n.options:n)?i.interactives:i,{name:"if",hash:{},fn:e.program(18,r,0),inverse:e.noop,data:r}))?i:"")+"\n"+(null!=(i=t.if.call(s,null!=(i=null!=n?n.options:n)?i.subtitles:i,{name:"if",hash:{},fn:e.program(20,r,0),inverse:e.noop,data:r}))?i:"")+"\n"+(null!=(i=t.if.call(s,null!=(i=null!=n?n.options:n)?i.resources:i,{name:"if",hash:{},fn:e.program(22,r,0),inverse:e.noop,data:r}))?i:"")+"\n"+(null!=(i=t.if.call(s,null!=(i=null!=n?n.options:n)?i.links:i,{name:"if",hash:{},fn:e.program(24,r,0),inverse:e.noop,data:r}))?i:"")+" \n"+(null!=(i=t.if.call(s,null!=(i=null!=n?n.options:n)?i.showTags:i,{name:"if",hash:{},fn:e.program(26,r,0),inverse:e.noop,data:r}))?i:"")+' </div>\n\n <div class="text-end">\n'+(null!=(i=t.if.call(s,null!=(i=null!=n?n.options:n)?i.externalLink:i,{name:"if",hash:{},fn:e.program(28,r,0),inverse:e.program(30,r,0),data:r}))?i:"")+" </div>\n </div>\n</div>"},useData:!0})},56704:function(e,n,t){var o=t(31197);e.exports=(o.default||o).template({1:function(e,n,t,o,r){return" cursor-pointer"},3:function(e,n,t,o,r){return" rounded-bottom"},5:function(e,n,t,o,r){var i;return e.propertyIsEnumerable,' <div class="bulk-checkbox-region '+(null!=(i=t.if.call(null!=n?n:e.nullContext||{},null!=(i=null!=n?n.options:n)?i.bulkPlaceholder:i,{name:"if",hash:{},fn:e.program(6,r,0),inverse:e.noop,data:r}))?i:"")+'"></div>\n'},6:function(e,n,t,o,r){var i;return e.propertyIsEnumerable,e.escapeExpression(e.lambda(null!=(i=null!=(i=null!=n?n.options:n)?i.styles:i)?i.bulkPlaceholder:i,n))},8:function(e,n,t,o,r){return"ps-5"},10:function(e,n,t,o,r){return" ps-3"},compiler:[8,">= 4.3.0"],main:function(e,n,t,o,r){e.propertyIsEnumerable;var i,l=e.lambda,a=e.escapeExpression,s=null!=n?n:e.nullContext||{};return'<div class="d-flex justify-content-between align-items-stretch p-3 drag-item '+a(l(null!=(i=null!=(i=null!=n?n.options:n)?i.styles:i)?i.videoItem:i,n))+(null!=(i=t.if.call(s,null!=(i=null!=n?n.options:n)?i.isClickable:i,{name:"if",hash:{},fn:e.program(1,r,0),inverse:e.noop,data:r}))?i:"")+(null!=(i=t.if.call(s,null!=(i=null!=n?n.options:n)?i.isLastItem:i,{name:"if",hash:{},fn:e.program(3,r,0),inverse:e.noop,data:r}))?i:"")+'">\n'+(null!=(i=t.if.call(s,null!=(i=null!=n?n.options:n)?i.allowBulk:i,{name:"if",hash:{},fn:e.program(5,r,0),inverse:e.noop,data:r}))?i:"")+' <div class="thumbnail-region d-inline-block '+a(l(null!=(i=null!=(i=null!=n?n.options:n)?i.styles:i)?i.thumbnailContainer:i,n))+'"></div>\n <div class="metadata-region d-inline-block px-3 '+a(l(null!=(i=null!=(i=null!=n?n.options:n)?i.styles:i)?i.metaContainer:i,n))+'"></div>\n <div class="video-actions-region d-inline-block '+a(l(null!=(i=null!=(i=null!=n?n.options:n)?i.styles:i)?i.actionsContainer:i,n))+'"></div>\n</div>\n<div class="video-info-region '+(null!=(i=t.if.call(s,null!=(i=null!=n?n.options:n)?i.allowBulk:i,{name:"if",hash:{},fn:e.program(8,r,0),inverse:e.program(10,r,0),data:r}))?i:"")+" pe-3 "+a(l(null!=(i=null!=(i=null!=n?n.options:n)?i.styles:i)?i.previewContainer:i,n))+'"></div>'},useData:!0})},15900:function(e,n,t){var o=t(31197);e.exports=(o.default||o).template({1:function(e,n,t,o,r){return e.propertyIsEnumerable,e.escapeExpression((t.lang||n&&n.lang||e.hooks.helperMissing).call(null!=n?n:e.nullContext||{},"hide",{name:"lang",hash:{},data:r}))},3:function(e,n,t,o,r){return e.propertyIsEnumerable,e.escapeExpression((t.lang||n&&n.lang||e.hooks.helperMissing).call(null!=n?n:e.nullContext||{},"show",{name:"lang",hash:{},data:r}))},compiler:[8,">= 4.3.0"],main:function(e,n,t,o,r){e.propertyIsEnumerable;var i,l=e.lambda,a=e.escapeExpression,s=null!=n?n:e.nullContext||{};return'<div class="video-actions-region row g-0 video-item-actions '+a(l(null!=(i=null!=(i=null!=n?n.options:n)?i.styles:i)?i.actions:i,n))+'"></div>\n<div class="row g-0 cursor-pointer video-item-show-preview '+a(l(null!=(i=null!=(i=null!=n?n.options:n)?i.styles:i)?i.showPreview:i,n))+'">\n <span class="svg-container me-2">'+(null!=(i=l(null!=(i=null!=n?n.options:n)?i.previewSvg:i,n))?i:"")+"</span>\n "+(null!=(i=t.if.call(s,null!=(i=null!=n?n.options:n)?i.previewDisplayed:i,{name:"if",hash:{},fn:e.program(1,r,0),inverse:e.program(3,r,0),data:r}))?i:"")+" "+a((t.lang||n&&n.lang||e.hooks.helperMissing).call(s,"preview",{name:"lang",hash:{},data:r}))+"\n</div>"},useData:!0})},71548:function(e,n,t){var o=t(31197);e.exports=(o.default||o).template({1:function(e,n,t,o,r){return e.propertyIsEnumerable,' <button class="btn btn-outline-dark retry">'+e.escapeExpression((t.lang||n&&n.lang||e.hooks.helperMissing).call(null!=n?n:e.nullContext||{},"retry",{name:"lang",hash:{},data:r}))+"</button>\n"},compiler:[8,">= 4.3.0"],main:function(e,n,t,o,r){e.propertyIsEnumerable;var i,l=null!=n?n:e.nullContext||{};return"<div>\n"+(null!=(i=t.if.call(l,null!=(i=null!=n?n.options:n)?i.hasError:i,{name:"if",hash:{},fn:e.program(1,r,0),inverse:e.noop,data:r}))?i:"")+' <button class="btn btn-outline-dark cancel">'+e.escapeExpression((t.lang||n&&n.lang||e.hooks.helperMissing).call(l,"cancel",{name:"lang",hash:{},data:r}))+"</button>\n</div>\n"},useData:!0})},72108:function(e,n,t){var o=t(31197);e.exports=(o.default||o).template({1:function(e,n,t,o,r){return e.propertyIsEnumerable,e.escapeExpression((t.lang||n&&n.lang||e.hooks.helperMissing).call(null!=n?n:e.nullContext||{},"hide",{name:"lang",hash:{},data:r}))},3:function(e,n,t,o,r){return e.propertyIsEnumerable,e.escapeExpression((t.lang||n&&n.lang||e.hooks.helperMissing).call(null!=n?n:e.nullContext||{},"show",{name:"lang",hash:{},data:r}))},compiler:[8,">= 4.3.0"],main:function(e,n,t,o,r){e.propertyIsEnumerable;var i,l=null!=n?n:e.nullContext||{},a=e.hooks.helperMissing,s=e.escapeExpression,u=e.lambda;return'<button class="approve d-flex btn btn btn-outline-dark" type="button">'+s((t.lang||n&&n.lang||a).call(l,"approve",{name:"lang",hash:{},data:r}))+'</button>\n<a class="applink-manage-video-access cursor-pointer hover-text-underline py-1">'+(null!=(i=(t.lang||n&&n.lang||a).call(l,"manageAccess",{name:"lang",hash:{},data:r}))?i:"")+'</a> \n<div class="row g-0 cursor-pointer video-item-show-preview '+s(u(null!=(i=null!=(i=null!=n?n.options:n)?i.styles:i)?i.showPreview:i,n))+'"> \n <span class="svg-container">'+(null!=(i=u(null!=(i=null!=n?n.options:n)?i.previewSvg:i,n))?i:"")+"</span> \n "+(null!=(i=t.if.call(l,null!=(i=null!=n?n.options:n)?i.previewDisplayed:i,{name:"if",hash:{},fn:e.program(1,r,0),inverse:e.program(3,r,0),data:r}))?i:"")+" "+s((t.lang||n&&n.lang||a).call(l,"preview",{name:"lang",hash:{},data:r}))+"\n</div> "},useData:!0})},66774:function(e,n,t){var o=t(31197);e.exports=(o.default||o).template({1:function(e,n,t,o,r){return e.propertyIsEnumerable,e.escapeExpression((t.lang||n&&n.lang||e.hooks.helperMissing).call(null!=n?n:e.nullContext||{},"hide",{name:"lang",hash:{},data:r}))},3:function(e,n,t,o,r){return e.propertyIsEnumerable,e.escapeExpression((t.lang||n&&n.lang||e.hooks.helperMissing).call(null!=n?n:e.nullContext||{},"show",{name:"lang",hash:{},data:r}))},compiler:[8,">= 4.3.0"],main:function(e,n,t,o,r){e.propertyIsEnumerable;var i,l=null!=n?n:e.nullContext||{},a=e.hooks.helperMissing,s=e.escapeExpression,u=e.lambda;return'<button class="applink-manage-video-access d-flex btn btn-outline-dark" type="button">'+s((t.lang||n&&n.lang||a).call(l,"manageAccess",{name:"lang",hash:{},data:r}))+'</button>\n<div class="row g-0 cursor-pointer video-item-show-preview '+s(u(null!=(i=null!=(i=null!=n?n.options:n)?i.styles:i)?i.showPreview:i,n))+'">\n <span class="svg-container">'+(null!=(i=u(null!=(i=null!=n?n.options:n)?i.previewSvg:i,n))?i:"")+"</span>\n "+(null!=(i=t.if.call(l,null!=(i=null!=n?n.options:n)?i.previewDisplayed:i,{name:"if",hash:{},fn:e.program(1,r,0),inverse:e.program(3,r,0),data:r}))?i:"")+" "+s((t.lang||n&&n.lang||a).call(l,"preview",{name:"lang",hash:{},data:r}))+"\n</div>"},useData:!0})},27367:function(e,n,t){var o=t(31197);e.exports=(o.default||o).template({1:function(e,n,t,o,r){e.propertyIsEnumerable;var i,l=e.lambda,a=e.escapeExpression;return' <span class="d-inline-block ms-1 tool-tip '+a(l(null!=(i=null!=(i=null!=n?n.options:n)?i.styles:i)?i.svgContainer:i,n))+'" title="'+a(l(null!=(i=null!=n?n.options:n)?i.restrictionMessage:i,n))+'">'+(null!=(i=l(null!=(i=null!=n?n.options:n)?i.lockSvg:i,n))?i:"")+"</span>\n"},compiler:[8,">= 4.3.0"],main:function(e,n,t,o,r){e.propertyIsEnumerable;var i,l,a=null!=n?n:e.nullContext||{};return'<div class="series-region"></div>\n<a class="cursor-pointer applink-show-video h5 text-dark">'+e.escapeExpression("function"==typeof(l=null!=(l=t.name||(null!=n?n.name:n))?l:e.hooks.helperMissing)?l.call(a,{name:"name",hash:{},data:r}):l)+"</a>\n"+(null!=(i=t.if.call(a,null!=(i=null!=n?n.options:n)?i.hasAdminRestriction:i,{name:"if",hash:{},fn:e.program(1,r,0),inverse:e.noop,data:r}))?i:"")+'<div class="sources-region"></div>\n<div class="badges-region"></div>'},useData:!0})},61539:function(e,n,t){var o=t(31197);e.exports=(o.default||o).template({compiler:[8,">= 4.3.0"],main:function(e,n,t,o,r){e.propertyIsEnumerable;var i,l,a=e.lambda,s=e.escapeExpression;return'<div class="series-region"></div>\n<a class="cursor-pointer h5 video-title text-dark" href="'+s(a(null!=(i=null!=n?n.options:n)?i.videoUrl:i,n))+'" target="_blank">'+s("function"==typeof(l=null!=(l=t.name||(null!=n?n.name:n))?l:e.hooks.helperMissing)?l.call(null!=n?n:e.nullContext||{},{name:"name",hash:{},data:r}):l)+'</a>\n<a class="svg-container d-inline-block align-bottom text-secondary no-decoration" href="'+s(a(null!=(i=null!=n?n.options:n)?i.videoUrl:i,n))+'" target="_blank">'+(null!=(i=a(null!=(i=null!=n?n.options:n)?i.openExternalSvg:i,n))?i:"")+'</a>\n<div class="badges-region"></div>'},useData:!0})},53885:function(e,n,t){var o=t(31197);e.exports=(o.default||o).template({1:function(e,n,t,o,r){return' <div class="media-type-region"></div>\n'},3:function(e,n,t,o,r){e.propertyIsEnumerable;var i,l=e.escapeExpression;return' <span class="badge p-1 '+l(e.lambda(null!=(i=null!=(i=null!=n?n.options:n)?i.styles:i)?i.interactive:i,n))+'">'+l((t.lang||n&&n.lang||e.hooks.helperMissing).call(null!=n?n:e.nullContext||{},"interactive",{name:"lang",hash:{},data:r}))+"</span>\n"},5:function(e,n,t,o,r){e.propertyIsEnumerable;var i,l=e.lambda,a=e.escapeExpression;return' <span class="badge p-1 tool-tip '+a(l(null!=(i=null!=(i=null!=n?n.options:n)?i.styles:i)?i.rating:i,n))+" "+a(l(null!=(i=null!=n?n.options:n)?i.ratingColorClass:i,n))+'" title="'+a(l(null!=(i=null!=(i=null!=n?n.options:n)?i.rating:i)?i.name:i,n))+'">'+a(l(null!=(i=null!=(i=null!=n?n.options:n)?i.rating:i)?i.code:i,n))+"</span>\n"},7:function(e,n,t,o,r){e.propertyIsEnumerable;var i,l=e.lambda;return' <span class="d-inline-block tool-tip '+e.escapeExpression(l(null!=(i=null!=(i=null!=n?n.options:n)?i.styles:i)?i.svgContainer:i,n))+'" title="Subtitles">'+(null!=(i=l(null!=(i=null!=n?n.options:n)?i.closeCaptionSvg:i,n))?i:"")+"</span>\n"},9:function(e,n,t,o,r){e.propertyIsEnumerable;var i,l=e.lambda;return' <span class="d-inline-block tool-tip '+e.escapeExpression(l(null!=(i=null!=(i=null!=n?n.options:n)?i.styles:i)?i.svgContainer:i,n))+'" title="Resources">'+(null!=(i=l(null!=(i=null!=n?n.options:n)?i.resourcesSvg:i,n))?i:"")+"</span>\n"},11:function(e,n,t,o,r){e.propertyIsEnumerable;var i,l=e.lambda,a=e.escapeExpression;return' <span class="badge p-1 '+a(l(null!=(i=null!=n?n.options:n)?i.awaitingReviewBadgeClass:i,n))+'">'+a(l(null!=(i=null!=n?n.options:n)?i.awaitingReviewMsg:i,n))+"</span>\n"},13:function(e,n,t,o,r){e.propertyIsEnumerable;var i,l=e.lambda,a=e.escapeExpression;return' <span class="badge p-1 '+a(l(null!=(i=null!=(i=null!=n?n.options:n)?i.styles:i)?i.restrictionBadgeClass:i,n))+'">'+a(l(null!=(i=null!=n?n.options:n)?i.restrictionMessage:i,n))+"</span>\n"},compiler:[8,">= 4.3.0"],main:function(e,n,t,o,r){e.propertyIsEnumerable;var i,l=null!=n?n:e.nullContext||{};return'<div class="mt-1 '+e.escapeExpression(e.lambda(null!=(i=null!=(i=null!=n?n.options:n)?i.styles:i)?i.badgesWrapper:i,n))+'">\n'+(null!=(i=t.if.call(l,null!=(i=null!=n?n.options:n)?i.mediaType:i,{name:"if",hash:{},fn:e.program(1,r,0),inverse:e.noop,data:r}))?i:"")+"\n"+(null!=(i=t.if.call(l,null!=(i=null!=n?n.options:n)?i.interactive:i,{name:"if",hash:{},fn:e.program(3,r,0),inverse:e.noop,data:r}))?i:"")+"\n"+(null!=(i=t.if.call(l,null!=(i=null!=(i=null!=n?n.options:n)?i.rating:i)?i.code:i,{name:"if",hash:{},fn:e.program(5,r,0),inverse:e.noop,data:r}))?i:"")+"\n"+(null!=(i=t.if.call(l,null!=(i=null!=n?n.options:n)?i.subtitles:i,{name:"if",hash:{},fn:e.program(7,r,0),inverse:e.noop,data:r}))?i:"")+"\n"+(null!=(i=t.if.call(l,null!=(i=null!=n?n.options:n)?i.resources:i,{name:"if",hash:{},fn:e.program(9,r,0),inverse:e.noop,data:r}))?i:"")+"\n"+(null!=(i=t.if.call(l,null!=(i=null!=n?n.options:n)?i.awaitingReviewMsg:i,{name:"if",hash:{},fn:e.program(11,r,0),inverse:e.noop,data:r}))?i:"")+"\n"+(null!=(i=t.if.call(l,null!=(i=null!=n?n.options:n)?i.restrictionMessage:i,{name:"if",hash:{},fn:e.program(13,r,0),inverse:e.noop,data:r}))?i:"")+"</div>"},useData:!0})},94559:function(e,n,t){var o=t(31197);e.exports=(o.default||o).template({1:function(e,n,t,o,r){e.propertyIsEnumerable;var i,l=e.lambda,a=e.escapeExpression;return' <span class="d-inline-block svg-container align-bottom tool-tip '+a(l(null!=(i=null!=(i=null!=n?n.options:n)?i.styles:i)?i.lock:i,n))+'" title="'+a(l(null!=(i=null!=n?n.options:n)?i.restrictionMessage:i,n))+'">'+(null!=(i=l(null!=(i=null!=n?n.options:n)?i.lockSvg:i,n))?i:"")+"</span>\n"},compiler:[8,">= 4.3.0"],main:function(e,n,t,o,r){e.propertyIsEnumerable;var i,l,a=e.lambda,s=e.escapeExpression,u=null!=n?n:e.nullContext||{};return'<div class="series-region"></div>\n<a class="cursor-pointer h5 video-title text-dark" href="'+s(a(null!=(i=null!=n?n.options:n)?i.videoUrl:i,n))+'" target="_blank">'+s("function"==typeof(l=null!=(l=t.name||(null!=n?n.name:n))?l:e.hooks.helperMissing)?l.call(u,{name:"name",hash:{},data:r}):l)+'</a>\n<a class="svg-container d-inline-block align-bottom text-secondary no-decoration" href="'+s(a(null!=(i=null!=n?n.options:n)?i.videoUrl:i,n))+'" target="_blank">'+(null!=(i=a(null!=(i=null!=n?n.options:n)?i.openExternalSvg:i,n))?i:"")+"</a>\n"+(null!=(i=t.if.call(u,null!=(i=null!=n?n.options:n)?i.hasAdminRestriction:i,{name:"if",hash:{},fn:e.program(1,r,0),inverse:e.noop,data:r}))?i:"")+'<div class="badges-region"></div>'},useData:!0})},56914:function(e,n,t){var o=t(31197);e.exports=(o.default||o).template({1:function(e,n,t,o,r){e.propertyIsEnumerable;var i,l=e.lambda;return' <span class="d-inline-block align-middle ms-1 '+e.escapeExpression(l(null!=(i=null!=(i=null!=n?n.options:n)?i.styles:i)?i.lockSvgContainer:i,n))+'">'+(null!=(i=l(null!=(i=null!=n?n.options:n)?i.lockSvg:i,n))?i:"")+"</span>\n"},3:function(e,n,t,o,r){return"text-danger"},5:function(e,n,t,o,r){var i;return e.propertyIsEnumerable," "+e.escapeExpression(e.lambda(null!=(i=null!=n?n.options:n)?i.status:i,n))+"\n"},7:function(e,n,t,o,r){return e.propertyIsEnumerable," "+e.escapeExpression((t.lang||n&&n.lang||e.hooks.helperMissing).call(null!=n?n:e.nullContext||{},"waiting",{name:"lang",hash:{},data:r}))+"\n"},9:function(e,n,t,o,r){return e.propertyIsEnumerable," <br><i>"+e.escapeExpression((t.lang||n&&n.lang||e.hooks.helperMissing).call(null!=n?n:e.nullContext||{},"anotherAdmin",{name:"lang",hash:{},data:r}))+"</i>\n"},compiler:[8,">= 4.3.0"],main:function(e,n,t,o,r){e.propertyIsEnumerable;var i,l,a=null!=n?n:e.nullContext||{};return'<a class="applink-show-video h5 text-dark">'+e.escapeExpression("function"==typeof(l=null!=(l=t.name||(null!=n?n.name:n))?l:e.hooks.helperMissing)?l.call(a,{name:"name",hash:{},data:r}):l)+"</a>\n"+(null!=(i=t.if.call(a,null!=(i=null!=n?n.options:n)?i.hasAdminRestriction:i,{name:"if",hash:{},fn:e.program(1,r,0),inverse:e.noop,data:r}))?i:"")+'<div class="processing '+(null!=(i=t.if.call(a,null!=(i=null!=n?n.options:n)?i.hasError:i,{name:"if",hash:{},fn:e.program(3,r,0),inverse:e.noop,data:r}))?i:"")+'">\n'+(null!=(i=t.if.call(a,null!=(i=null!=n?n.options:n)?i.hasPendingItem:i,{name:"if",hash:{},fn:e.program(5,r,0),inverse:e.program(7,r,0),data:r}))?i:"")+(null!=(i=t.unless.call(a,null!=(i=null!=n?n.options:n)?i.hasPendingItem:i,{name:"unless",hash:{},fn:e.program(9,r,0),inverse:e.noop,data:r}))?i:"")+"</div>"},useData:!0})},47062:function(e,n,t){var o=t(31197);e.exports=(o.default||o).template({1:function(e,n,t,o,r){e.propertyIsEnumerable;var i,l=e.lambda,a=e.escapeExpression;return' <span class="d-inline-block ms-1 tool-tip '+a(l(null!=(i=null!=(i=null!=n?n.options:n)?i.styles:i)?i.svgContainer:i,n))+'" title="'+a(l(null!=(i=null!=n?n.options:n)?i.restrictionMessage:i,n))+'">'+(null!=(i=l(null!=(i=null!=n?n.options:n)?i.lockSvg:i,n))?i:"")+"</span>\n"},3:function(e,n,t,o,r){var i;return' <span class="d-block pt-1">'+(null!=(i=e.lambda(n,n))?i:"")+"</span>\n"},compiler:[8,">= 4.3.0"],main:function(e,n,t,o,r){e.propertyIsEnumerable;var i,l=null!=n?n:e.nullContext||{};return'<div class="series-region"></div>\n<a class="cursor-pointer applink-show-video h5 text-dark">'+(null!=(i=e.lambda(null!=(i=null!=n?n.options:n)?i.name:i,n))?i:"")+"</a>\n"+(null!=(i=t.if.call(l,null!=(i=null!=n?n.options:n)?i.hasAdminRestriction:i,{name:"if",hash:{},fn:e.program(1,r,0),inverse:e.noop,data:r}))?i:"")+'<div class="sources-region"></div>\n<div class="badges-region"></div>\n'+(null!=(i=t.each.call(l,null!=(i=null!=n?n.options:n)?i.keyPhrases:i,{name:"each",hash:{},fn:e.program(3,r,0),inverse:e.noop,data:r}))?i:"")},useData:!0})},19021:function(e,n,t){var o=t(31197);e.exports=(o.default||o).template({1:function(e,n,t,o,r){var i;return e.propertyIsEnumerable,e.escapeExpression(e.lambda(null!=(i=null!=(i=null!=n?n.options:n)?i.styles:i)?i.series:i,n))},3:function(e,n,t,o,r){var i;return e.propertyIsEnumerable,'href="'+e.escapeExpression(e.lambda(null!=(i=null!=n?n.options:n)?i.seriesUrl:i,n))+'" target="_blank"'},5:function(e,n,t,o,r){var i;return e.propertyIsEnumerable,(null!=(i=t.if.call(null!=n?n:e.nullContext||{},null!=(i=null!=n?n.options:n)?i.seasonNumber:i,{name:"if",hash:{},fn:e.program(6,r,0),inverse:e.noop,data:r}))?i:"")+" E"+e.escapeExpression(e.lambda(null!=(i=null!=n?n.options:n)?i.episodeNumber:i,n))+"\n"},6:function(e,n,t,o,r){var i;return e.propertyIsEnumerable," S"+e.escapeExpression(e.lambda(null!=(i=null!=n?n.options:n)?i.seasonNumber:i,n))+" •"},compiler:[8,">= 4.3.0"],main:function(e,n,t,o,r){e.propertyIsEnumerable;var i,l=null!=n?n:e.nullContext||{};return'<a class="series-applink text-reset '+(null!=(i=t.if.call(l,null!=(i=null!=n?n.options:n)?i.styleUppercase:i,{name:"if",hash:{},fn:e.program(1,r,0),inverse:e.noop,data:r}))?i:"")+'" '+(null!=(i=t.if.call(l,null!=(i=null!=n?n.options:n)?i.seriesUrl:i,{name:"if",hash:{},fn:e.program(3,r,0),inverse:e.noop,data:r}))?i:"")+">\n "+(null!=(i=e.lambda(null!=(i=null!=n?n.options:n)?i.seriesName:i,n))?i:"")+(null!=(i=t.if.call(l,null!=(i=null!=n?n.options:n)?i.episodeNumber:i,{name:"if",hash:{},fn:e.program(5,r,0),inverse:e.noop,data:r}))?i:"")+"</a>"},useData:!0})},94446:function(e,n,t){var o=t(31197);e.exports=(o.default||o).template({1:function(e,n,t,o,r){e.propertyIsEnumerable;var i,l,a=e.lambda,s=e.escapeExpression;return'<a class="cursor-pointer h5 video-title text-dark" href="'+s(a(null!=(i=null!=n?n.options:n)?i.videoUrl:i,n))+'" target="_blank">'+s("function"==typeof(l=null!=(l=t.name||(null!=n?n.name:n))?l:e.hooks.helperMissing)?l.call(null!=n?n:e.nullContext||{},{name:"name",hash:{},data:r}):l)+'</a>\n<a class="svg-container d-inline-block align-bottom text-secondary no-decoration" href="'+s(a(null!=(i=null!=n?n.options:n)?i.videoUrl:i,n))+'" target="_blank">'+(null!=(i=a(null!=(i=null!=n?n.options:n)?i.openExternalSvg:i,n))?i:"")+"</a>\n"},3:function(e,n,t,o,r){var i;return e.propertyIsEnumerable,'<a class="cursor-pointer applink-show-video h6">'+e.escapeExpression("function"==typeof(i=null!=(i=t.name||(null!=n?n.name:n))?i:e.hooks.helperMissing)?i.call(null!=n?n:e.nullContext||{},{name:"name",hash:{},data:r}):i)+"</a>\n"},compiler:[8,">= 4.3.0"],main:function(e,n,t,o,r){e.propertyIsEnumerable;var i,l=e.lambda,a=e.escapeExpression;return'<div class="series-region"></div>\n'+(null!=(i=t.if.call(null!=n?n:e.nullContext||{},null!=(i=null!=n?n.options:n)?i.linkToOnline:i,{name:"if",hash:{},fn:e.program(1,r,0),inverse:e.program(3,r,0),data:r}))?i:"")+'<span class="d-inline-block ms-1 tool-tip '+a(l(null!=(i=null!=(i=null!=n?n.options:n)?i.styles:i)?i.lock:i,n))+" "+a(l(null!=(i=null!=(i=null!=n?n.options:n)?i.styles:i)?i.svgContainer:i,n))+'" title="'+a(l(null!=(i=null!=n?n.options:n)?i.restrictionMessage:i,n))+'">'+(null!=(i=l(null!=(i=null!=n?n.options:n)?i.lockSvg:i,n))?i:"")+'</span>\n<div class="sources-region"></div>\n<div class="badges-region"></div>'},useData:!0})},31593:function(e,n){"use strict";n.Z={actions:"xyPxU",showPreview:"XMkZv"}},63162:function(e,n){"use strict";n.Z={lock:"I7AaK",svgContainer:"avSZT"}},69843:function(e,n){"use strict";n.Z={checkboxContainer:"sfB6X",thumbnailContainer:"u9oVV",metaContainer:"jnomD",actionsContainer:"BjK6Z",allowBulk:"VSdyH",videoItem:"p5AgE",processingVideo:"OOtNp",bulkPlaceholder:"IU_AK",previewContainer:"h4Ml1"}}}]);
|