@clickview/library-editor 1.33.2 → 1.34.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/css/2842-library-editor-32398cd1ad.chunk.css +4 -0
- package/dist/css/3525-library-editor-6c6933c94d.chunk.css +72 -0
- package/dist/css/9215-library-editor-01b4461ff1.chunk.css +10 -0
- package/dist/css/9309-library-editor-aad2f294a9.chunk.css +10 -0
- package/dist/languages/en.json +1 -1
- package/dist/scripts/{1010-f87fc2db69.chunk.js → 1010-a4704e61de.chunk.js} +1 -1
- package/dist/scripts/{1086-fe154012dd.chunk.js → 1086-1e49d7436c.chunk.js} +1 -1
- package/dist/scripts/{1216-d126efc56b.chunk.js → 1216-3680236a27.chunk.js} +1 -1
- package/dist/scripts/{1269-2b37c230ee.chunk.js → 1269-6898014713.chunk.js} +1 -1
- package/dist/scripts/1364-17e2eeefbc.chunk.js +1 -0
- package/dist/scripts/1409-7dec2a8e18.chunk.js +1 -0
- package/dist/scripts/{1492-86b5115bf1.chunk.js → 1492-815b776897.chunk.js} +1 -1
- package/dist/scripts/1601-d11282915d.chunk.js +2 -0
- package/dist/scripts/{1832-5bef85d5e2.chunk.js → 1832-2c91ee3a51.chunk.js} +1 -1
- package/dist/scripts/{1887-954988b80e.chunk.js → 1887-1f10bdcd32.chunk.js} +1 -1
- package/dist/scripts/{1911-50beb412a1.chunk.js → 1911-90a2329c55.chunk.js} +1 -1
- package/dist/scripts/{2254-74699301be.chunk.js → 2254-28945bd10d.chunk.js} +1 -1
- package/dist/scripts/2417-5006b87aa9.chunk.js +1 -0
- package/dist/scripts/{243-44d266be30.chunk.js → 243-7cbcd679de.chunk.js} +1 -1
- package/dist/scripts/259-1e858db89a.chunk.js +1 -0
- package/dist/scripts/{2692-aa369df8c9.chunk.js → 2692-4dec659d9d.chunk.js} +1 -1
- package/dist/scripts/2842-230d775b71.chunk.js +1 -0
- package/dist/scripts/{2888-d50b64a6b4.chunk.js → 2888-0eeb8ded06.chunk.js} +1 -1
- package/dist/scripts/{299-268a19c153.chunk.js → 299-500f0b6af0.chunk.js} +1 -1
- package/dist/scripts/3096-ce0ed4447d.chunk.js +1 -0
- package/dist/scripts/{3400-c76a38cdf8.chunk.js → 3400-a38cfe2a5d.chunk.js} +1 -1
- package/dist/scripts/3525-54f3afe02c.chunk.js +2 -0
- package/dist/scripts/{3763-dc8ddac371.chunk.js → 3763-6f873cc545.chunk.js} +1 -1
- package/dist/scripts/3969-07f2d1c976.chunk.js +1 -0
- package/dist/scripts/{4177-ac15a97029.chunk.js → 4177-2ce1a9bdaa.chunk.js} +1 -1
- package/dist/scripts/{4201-625f4064dd.chunk.js → 4201-84a6867187.chunk.js} +1 -1
- package/dist/scripts/{4245-f6d4caa7ef.chunk.js → 4245-b2e9ec5ba5.chunk.js} +1 -1
- package/dist/scripts/4523-14445af8ad.chunk.js +1 -0
- package/dist/scripts/{4591-cb921b33c7.chunk.js → 4591-55fa691940.chunk.js} +1 -1
- package/dist/scripts/{4860-da56ee92fd.chunk.js → 4860-d42be62696.chunk.js} +1 -1
- package/dist/scripts/{4885-df54f067a6.chunk.js → 4885-8b2fae075e.chunk.js} +1 -1
- package/dist/scripts/{514-3ffe5b2338.chunk.js → 514-0d0d21f74f.chunk.js} +1 -1
- package/dist/scripts/{5412-9846d1f676.chunk.js → 5412-789cbf80a3.chunk.js} +1 -1
- package/dist/scripts/{5418-eca3699393.chunk.js → 5418-c1287e4896.chunk.js} +1 -1
- package/dist/scripts/{5424-b39db67d02.chunk.js → 5424-b185ba8a45.chunk.js} +1 -1
- package/dist/scripts/5524-b4527dfc81.chunk.js +1 -0
- package/dist/scripts/5698-74d4735cbc.chunk.js +1 -0
- package/dist/scripts/{5747-2973b05689.chunk.js → 5747-05c9d61fe0.chunk.js} +1 -1
- package/dist/scripts/{6093-25b1188c94.chunk.js → 6093-d497dc9474.chunk.js} +1 -1
- package/dist/scripts/61-90ca71f272.chunk.js +2 -0
- package/dist/scripts/{6220-df69ae5053.chunk.js → 6220-dfa7ef3ad3.chunk.js} +1 -1
- package/dist/scripts/{6357-fce36786e9.chunk.js → 6357-8477d01a86.chunk.js} +1 -1
- package/dist/scripts/{6505-a55246ec06.chunk.js → 6505-f069c1fbe4.chunk.js} +1 -1
- package/dist/scripts/6532-0b999572cf.chunk.js +2 -0
- package/dist/scripts/6732-59d6dff740.chunk.js +1 -0
- package/dist/scripts/{6774-9b62595255.chunk.js → 6774-c9e8698d5c.chunk.js} +1 -1
- package/dist/scripts/6963-881ab7febf.chunk.js +1 -0
- package/dist/scripts/{6995-a6f779a727.chunk.js → 6995-861706c8b2.chunk.js} +1 -1
- package/dist/scripts/{6999-2764068f9b.chunk.js → 6999-1b7d8256a1.chunk.js} +1 -1
- package/dist/scripts/{7002-582dbef73b.chunk.js → 7002-2a94889cc7.chunk.js} +1 -1
- package/dist/scripts/{7053-142226754b.chunk.js → 7053-86b05dc741.chunk.js} +1 -1
- package/dist/scripts/708-b844d56f4e.chunk.js +1 -0
- package/dist/scripts/{7190-d0b5a6c372.chunk.js → 7190-921073f4ef.chunk.js} +1 -1
- package/dist/scripts/{7376-92729fc093.chunk.js → 7376-753fc6cb76.chunk.js} +1 -1
- package/dist/scripts/7634-8a81b8d57d.chunk.js +1 -0
- package/dist/scripts/8113-a5da448af4.chunk.js +1 -0
- package/dist/scripts/{8362-ff7966140e.chunk.js → 8362-e662057f79.chunk.js} +1 -1
- package/dist/scripts/{8495-fd102f09d3.chunk.js → 8495-bdf4488b7f.chunk.js} +1 -1
- package/dist/scripts/{8727-0d05d3801e.chunk.js → 8727-6104f06be6.chunk.js} +1 -1
- package/dist/scripts/{8762-6223770914.chunk.js → 8762-97ee795453.chunk.js} +1 -1
- package/dist/scripts/{8906-746489f5ca.chunk.js → 8906-2f788f9242.chunk.js} +1 -1
- package/dist/scripts/{8947-fcd146181d.chunk.js → 8947-c600642573.chunk.js} +1 -1
- package/dist/scripts/9215-23e4e44ad3.chunk.js +2 -0
- package/dist/scripts/9215-23e4e44ad3.chunk.js.LICENSE.txt +31 -0
- package/dist/scripts/9219-0be9716a10.chunk.js +1 -0
- package/dist/scripts/9309-6ec7ec7f41.chunk.js +1 -0
- package/dist/scripts/{9357-fade2427e7.chunk.js → 9357-8cae90b1de.chunk.js} +1 -1
- package/dist/scripts/{9695-d90471521a.chunk.js → 9695-ad43223301.chunk.js} +1 -1
- package/dist/scripts/9927-faf9b990b5.chunk.js +1 -0
- package/dist/scripts/{9976-f4bb28d542.chunk.js → 9976-e00c6a4cb7.chunk.js} +1 -1
- package/dist/scripts/bundle-16d2e506ec.min.js +2 -0
- package/dist/scripts/bundle-16d2e506ec.min.js.LICENSE.txt +1 -0
- package/package.json +73 -73
- package/typings/libs/CVEvents.d.ts +12 -12
- package/typings/libs/CVLanguages.d.ts +24 -24
- package/typings/libs/Environment.d.ts +10 -10
- package/typings/libs/LazyLoad.d.ts +29 -29
- package/typings/libs/LazyLoad.ts +27 -27
- package/typings/libs/backbone.validation.d.ts +99 -99
- package/typings/libs/cloneDeep.d.ts +4 -4
- package/typings/libs/cookiesjs.d.ts +24 -24
- package/typings/libs/draft-convert.d.ts +4 -0
- package/typings/libs/google-api.d.ts +4 -4
- package/typings/libs/microsoft-teams.d.ts +2 -2
- package/typings/libs/trackjs.d.ts +2 -2
- package/typings/libs/videojs-contrib-quality-levels.d.ts +30 -30
- package/typings/utils/imports.d.ts +9 -9
- package/dist/css/1365-library-editor-b5feb30d27.chunk.css +0 -46
- package/dist/css/343-library-editor-78937ca69b.chunk.css +0 -41
- package/dist/scripts/1364-455d685ddb.chunk.js +0 -1
- package/dist/scripts/1365-51f5c74092.chunk.js +0 -1
- package/dist/scripts/1409-cd9fc39b5d.chunk.js +0 -1
- package/dist/scripts/1601-761890ed99.chunk.js +0 -2
- package/dist/scripts/2417-9b4c6ac8e4.chunk.js +0 -1
- package/dist/scripts/259-f6e7679bb7.chunk.js +0 -1
- package/dist/scripts/3096-9ec03e7976.chunk.js +0 -1
- package/dist/scripts/343-00ec0d32b8.chunk.js +0 -1
- package/dist/scripts/3969-c0fb87bf87.chunk.js +0 -1
- package/dist/scripts/4483-0f6dd31061.chunk.js +0 -1
- package/dist/scripts/4523-3442c2a303.chunk.js +0 -1
- package/dist/scripts/5698-3fedc0a2ec.chunk.js +0 -1
- package/dist/scripts/5745-6e1f878392.chunk.js +0 -2
- package/dist/scripts/5987-0bbfd0a4ae.chunk.js +0 -2
- package/dist/scripts/6732-d5590f299f.chunk.js +0 -1
- package/dist/scripts/6963-4dff136102.chunk.js +0 -1
- package/dist/scripts/6991-06f0fb6962.chunk.js +0 -1
- package/dist/scripts/708-3f11882fdc.chunk.js +0 -1
- package/dist/scripts/7433-237709791d.chunk.js +0 -1
- package/dist/scripts/7634-1947974da8.chunk.js +0 -1
- package/dist/scripts/9219-aaa524d177.chunk.js +0 -1
- package/dist/scripts/9554-9767913623.chunk.js +0 -1
- package/dist/scripts/9927-09536434a8.chunk.js +0 -1
- package/dist/scripts/bundle-888b1d37a8.min.js +0 -2
- /package/dist/css/{9554-library-editor-36f0a42508.chunk.css → 5524-library-editor-36f0a42508.chunk.css} +0 -0
- /package/dist/css/{5987-library-editor-07a7bc7368.chunk.css → 61-library-editor-07a7bc7368.chunk.css} +0 -0
- /package/dist/scripts/{101-0ec9c3cf59.chunk.js → 101-5640626835.chunk.js} +0 -0
- /package/dist/scripts/{1601-761890ed99.chunk.js.LICENSE.txt → 1601-d11282915d.chunk.js.LICENSE.txt} +0 -0
- /package/dist/scripts/{5987-0bbfd0a4ae.chunk.js.LICENSE.txt → 3525-54f3afe02c.chunk.js.LICENSE.txt} +0 -0
- /package/dist/scripts/{3746-eee343e060.chunk.js → 3746-e0c3fc3e93.chunk.js} +0 -0
- /package/dist/scripts/{5891-4866980a65.chunk.js → 5891-8b9423d292.chunk.js} +0 -0
- /package/dist/scripts/{bundle-888b1d37a8.min.js.LICENSE.txt → 61-90ca71f272.chunk.js.LICENSE.txt} +0 -0
- /package/dist/scripts/{5745-6e1f878392.chunk.js.LICENSE.txt → 6532-0b999572cf.chunk.js.LICENSE.txt} +0 -0
|
@@ -1 +1 @@
|
|
|
1
|
-
(self.webpackChunk_clickview_library_editor=self.webpackChunk_clickview_library_editor||[]).push([[9357],{39357:function(e,t,n){"use strict";n.r(t),n.d(t,{ThumbnailUploadView:function(){return O}});var r=n(48088),o=n(39479),i=n(11306),a=n(21679),u=n(57857),c=n(99249),l=n(31647),s=n(10101),p=n(58025),f=n(88172),h=n(48090),d=n(29457),m=n(18375),y=n(61843),g=n(68826),v=n.n(g);function b(e){return b="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},b(e)}function w(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,(void 0,o=function(e,t){if("object"!==b(e)||null===e)return e;var n=e[Symbol.toPrimitive];if(void 0!==n){var r=n.call(e,"string");if("object"!==b(r))return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}(r.key),"symbol"===b(o)?o:String(o)),r)}var o}function k(e,t){return k=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(e,t){return e.__proto__=t,e},k(e,t)}function C(e){return C=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(e){return e.__proto__||Object.getPrototypeOf(e)},C(e)}var O=function(e){!function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),Object.defineProperty(e,"prototype",{writable:!1}),t&&k(e,t)}(E,e);var t,n,g,O,I=(g=E,O=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(e){return!1}}(),function(){var e,t=C(g);if(O){var n=C(this).constructor;e=Reflect.construct(t,arguments,n)}else e=t.apply(this,arguments);return function(e,t){if(t&&("object"===b(t)||"function"==typeof t))return t;if(void 0!==t)throw new TypeError("Derived constructors may only return object or undefined");return function(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}(e)}(this,e)});function E(e){return function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,E),I.call(this,e)}return t=E,(n=[{key:"initialize",value:function(){this.videoDataService=a.u.getInstance(h.Or.Video,this),this.imageUploadDataService=a.u.getInstance(h.Or.ImageUpload,this),this.navLockService=a.u.getInstance(h.K9.NavLock,this),this.viewModel=c.r.get("image:storage"),this.bindListeners(),this.initImageEl()}},{key:"name",get:function(){return"ThumbnailUploadView"}},{key:"title",get:function(){return u.T.getPhrase(this.lang,"title")}},{key:"lang",get:function(){return"libraryEditor.thumbnailUpload"}},{key:"template",get:function(){return v()}},{key:"channelName",get:function(){return y.N0.generateUniqueChannelName(this)}},{key:"behaviors",get:function(){var e=this;return[{behaviorClass:s.Yw,title:u.T.getPhrase(this.lang,"resizeAndCrop"),size:"modal-lg",spinnerButtonOptions:{channelName:this.channelName,buttonText:u.T.getPhrase(this.lang,"crop"),onClick:function(){return e.onClickCrop()}}}]}},{key:"regions",value:function(){return{cropper:{el:".cropper-region",replaceElement:!0}}}},{key:"events",value:function(){return{"shown.bs.modal":"renderCropper"}}},{key:"bindListeners",value:function(){var e=this;this.listenTo(this.channelName,p.Y.ImageCropped,this.onImageCropped),this.listenTo(h.Vk.VIDEO,"".concat(h.M_.VIDEOS,":").concat(this.options.videoId,":sync"),this.render),this.listenTo(h.Vk.VIDEO,"".concat(h.M_.UPDATE_VIDEO_THUMBNAIL,":").concat(this.options.videoId,":sync"),(function(){return e.triggerMethod("hide")}))}},{key:"initImageEl",value:function(){this.viewModel.get("dataUrl")||l.Q.Ry.throw(new i.H("DataUrl must be set on the image:storage ViewModel")),this.imageEl=new Image,this.imageEl.src=this.viewModel.get("dataUrl"),this.viewModel.unset("dataUrl")}},{key:"getCropRegionWidth",value:function(){return this.$el.find(".modal-body").width()}},{key:"onClickCrop",value:function(){r.Radio.channel(this.channelName).trigger(p.Y.CropImage),r.Radio.channel(this.channelName).trigger(f.I3.ShowSpinner)}},{key:"onImageCropped",value:function(e){var t=this;this.imageUploadDataService.uploadBase64Image(e,d.__.Thumbnails,(function(e){return t.onImageUploaded(e)}))}},{key:"onImageUploaded",value:function(e){var t=this,n=this.model.thumbnail&&this.model.thumbnail.id;this.videoDataService.addOrUpdateThumbnail(this.options.videoId,e,n,(function(){return t.triggerMethod("hide")}))}},{key:"renderCropper",value:function(){var e=new m.E({dataUrl:this.imageEl.src,width:this.imageEl.width,height:this.imageEl.height});this.showChildView("cropper",new p.a({model:e,channelName:this.channelName,imageType:d.__.Thumbnails,minWidth:h.yE[d.__.Thumbnails].width,minHeight:h.yE[d.__.Thumbnails].height,getCropRegionWidth:o.bind(this.getCropRegionWidth,this)}))}},{key:"onBeforeRender",value:function(){this.model=this.videoDataService.getVideo(this.options.videoId)}},{key:"viewOptions",value:function(){return{dataFetched:!!this.model,spinnerEl:y.Kp.getSpinner({size:y.Ey.Large,extraClasses:"mx-auto"})}}},{key:"onBeforeDestroy",value:function(){c.r.get("upload:thumbnail:options").get("lockNav")&&this.navLockService.lock()}}])&&w(t.prototype,n),Object.defineProperty(t,"prototype",{writable:!1}),E}(l.Q.G7)},58025:function(e,t,n){"use strict";n.d(t,{Y:function(){return r},a:function(){return d}});var r,o=n(48088),i=n(51934),a=n.n(i),u=n(31647),c=n(91465),l=n.n(c);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 p(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,(void 0,o=function(e,t){if("object"!==s(e)||null===e)return e;var n=e[Symbol.toPrimitive];if(void 0!==n){var r=n.call(e,"string");if("object"!==s(r))return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}(r.key),"symbol"===s(o)?o:String(o)),r)}var o}function f(e,t){return f=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(e,t){return e.__proto__=t,e},f(e,t)}function h(e){return h=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(e){return e.__proto__||Object.getPrototypeOf(e)},h(e)}!function(e){e.ClickCrop="click:crop",e.CropImage="crop:image",e.ImageCropped="image:cropped"}(r||(r={}));var d=function(e){!function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),Object.defineProperty(e,"prototype",{writable:!1}),t&&f(e,t)}(d,e);var t,n,i,u,c=(i=d,u=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(e){return!1}}(),function(){var e,t=h(i);if(u){var n=h(this).constructor;e=Reflect.construct(t,arguments,n)}else e=t.apply(this,arguments);return function(e,t){if(t&&("object"===s(t)||"function"==typeof t))return t;if(void 0!==t)throw new TypeError("Derived constructors may only return object or undefined");return function(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}(e)}(this,e)});function d(e){return function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,d),c.call(this,e)}return t=d,(n=[{key:"initialize",value:function(){this.listenTo(this.options.channelName,r.CropImage,this.crop)}},{key:"name",get:function(){return"ImageCropperComponent"}},{key:"template",get:function(){return l()}},{key:"className",get:function(){return"text-center"}},{key:"elements",get:function(){return{image:".img"}}},{key:"getMinCropBoxWidth",value:function(){return this.options.minWidth*this.getViewportToImageRatio()}},{key:"getMinCropBoxHeight",value:function(){return this.options.minHeight*this.getViewportToImageRatio()}},{key:"getViewportToImageRatio",value:function(){return this.options.getCropRegionWidth()/this.model.get("width")}},{key:"crop",value:function(){var e=this.cropper.getCroppedCanvas().toDataURL(this.getImageMimeType());o.Radio.channel(this.options.channelName).trigger(r.ImageCropped,e)}},{key:"getImageMimeType",value:function(){var e=this.model.get("dataUrl").match(/data:([a-zA-Z0-9]+\/[a-zA-Z0-9-.+]+).*,.*/);if(e)return e[1]}},{key:"renderCropper",value:function(){this.getMinCropBoxWidth();var e=this.getUI("image").get(0);this.cropper=new(a())(e,{viewMode:1,aspectRatio:this.options.minWidth/this.options.minHeight,minCropBoxWidth:this.getMinCropBoxWidth(),minCropBoxHeight:this.getMinCropBoxHeight(),autoCropArea:1})}},{key:"onRender",value:function(){this.renderCropper()}},{key:"onBeforeDestroy",value:function(){this.cropper.destroy()}}])&&p(t.prototype,n),Object.defineProperty(t,"prototype",{writable:!1}),d}(u.Q.wA)},68826:function(e,t,n){var r=n(32227);e.exports=(r.default||r).template({1:function(e,t,n,r,o){var i;return e.propertyIsEnumerable,(null!=(i=e.lambda(null!=(i=null!=t?t.options:t)?i.spinnerEl:i,t))?i:"")+"\r\n"},3:function(e,t,n,r,o){return'<div class="cropper-region"></div>\r\n'},compiler:[8,">= 4.3.0"],main:function(e,t,n,r,o){var i;return e.propertyIsEnumerable,null!=(i=n.unless.call(null!=t?t:e.nullContext||{},null!=(i=null!=t?t.options:t)?i.dataFetched:i,{name:"unless",hash:{},fn:e.program(1,o,0),inverse:e.program(3,o,0),data:o}))?i:""},useData:!0})},91465:function(e,t,n){var r=n(32227);e.exports=(r.default||r).template({compiler:[8,">= 4.3.0"],main:function(e,t,n,r,o){var i;return e.propertyIsEnumerable,'<img src="'+e.escapeExpression("function"==typeof(i=null!=(i=n.dataUrl||(null!=t?t.dataUrl:t))?i:e.hooks.helperMissing)?i.call(null!=t?t:e.nullContext||{},{name:"dataUrl",hash:{},data:o}):i)+'" class="img img-fluid" />'},useData:!0})}}]);
|
|
1
|
+
(self.webpackChunk_clickview_library_editor=self.webpackChunk_clickview_library_editor||[]).push([[9357],{39357:function(e,t,n){"use strict";n.r(t),n.d(t,{ThumbnailUploadView:function(){return O}});var r=n(48088),o=n(39479),i=n(11306),a=n(21679),u=n(57857),c=n(99249),l=n(31647),s=n(10101),p=n(58025),f=n(88172),h=n(48090),d=n(29457),m=n(18375),y=n(61843),g=n(68826),v=n.n(g);function b(e){return b="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},b(e)}function w(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,(void 0,o=function(e,t){if("object"!==b(e)||null===e)return e;var n=e[Symbol.toPrimitive];if(void 0!==n){var r=n.call(e,"string");if("object"!==b(r))return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}(r.key),"symbol"===b(o)?o:String(o)),r)}var o}function k(e,t){return k=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(e,t){return e.__proto__=t,e},k(e,t)}function C(e){return C=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(e){return e.__proto__||Object.getPrototypeOf(e)},C(e)}var O=function(e){!function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),Object.defineProperty(e,"prototype",{writable:!1}),t&&k(e,t)}(E,e);var t,n,g,O,I=(g=E,O=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(e){return!1}}(),function(){var e,t=C(g);if(O){var n=C(this).constructor;e=Reflect.construct(t,arguments,n)}else e=t.apply(this,arguments);return function(e,t){if(t&&("object"===b(t)||"function"==typeof t))return t;if(void 0!==t)throw new TypeError("Derived constructors may only return object or undefined");return function(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}(e)}(this,e)});function E(e){return function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,E),I.call(this,e)}return t=E,(n=[{key:"initialize",value:function(){this.videoDataService=a.u.getInstance(h.Or.Video,this),this.imageUploadDataService=a.u.getInstance(h.Or.ImageUpload,this),this.navLockService=a.u.getInstance(h.K9.NavLock,this),this.viewModel=c.r.get("image:storage"),this.bindListeners(),this.initImageEl()}},{key:"name",get:function(){return"ThumbnailUploadView"}},{key:"title",get:function(){return u.T.getPhrase(this.lang,"title")}},{key:"lang",get:function(){return"libraryEditor.thumbnailUpload"}},{key:"template",get:function(){return v()}},{key:"channelName",get:function(){return y.N0.generateUniqueChannelName(this)}},{key:"behaviors",get:function(){var e=this;return[{behaviorClass:s.Yw,title:u.T.getPhrase(this.lang,"resizeAndCrop"),size:"modal-lg",spinnerButtonOptions:{channelName:this.channelName,buttonText:u.T.getPhrase(this.lang,"crop"),onClick:function(){return e.onClickCrop()}}}]}},{key:"regions",value:function(){return{cropper:{el:".cropper-region",replaceElement:!0}}}},{key:"events",value:function(){return{"shown.bs.modal":"renderCropper"}}},{key:"bindListeners",value:function(){var e=this;this.listenTo(this.channelName,p.Y.ImageCropped,this.onImageCropped),this.listenTo(h.Vk.VIDEO,"".concat(h.M_.VIDEOS,":").concat(this.options.videoId,":sync"),this.render),this.listenTo(h.Vk.VIDEO,"".concat(h.M_.UPDATE_VIDEO_THUMBNAIL,":").concat(this.options.videoId,":sync"),(function(){return e.triggerMethod("hide")}))}},{key:"initImageEl",value:function(){this.viewModel.get("dataUrl")||l.Q.Ry.throw(new i.H("DataUrl must be set on the image:storage ViewModel")),this.imageEl=new Image,this.imageEl.src=this.viewModel.get("dataUrl"),this.viewModel.unset("dataUrl")}},{key:"getCropRegionWidth",value:function(){return this.$el.find(".modal-body").width()}},{key:"onClickCrop",value:function(){r.Radio.channel(this.channelName).trigger(p.Y.CropImage),r.Radio.channel(this.channelName).trigger(f.I3.ShowSpinner)}},{key:"onImageCropped",value:function(e){var t=this;this.imageUploadDataService.uploadBase64Image(e,d.__.Thumbnails,(function(e){return t.onImageUploaded(e)}))}},{key:"onImageUploaded",value:function(e){var t=this,n=this.model.thumbnail&&this.model.thumbnail.id;this.videoDataService.addOrUpdateThumbnail(this.options.videoId,e,n,(function(){return t.triggerMethod("hide")}))}},{key:"renderCropper",value:function(){var e=new m.E({dataUrl:this.imageEl.src,width:this.imageEl.width,height:this.imageEl.height});this.showChildView("cropper",new p.a({model:e,channelName:this.channelName,imageType:d.__.Thumbnails,minWidth:h.yE[d.__.Thumbnails].width,minHeight:h.yE[d.__.Thumbnails].height,getCropRegionWidth:o.bind(this.getCropRegionWidth,this)}))}},{key:"onBeforeRender",value:function(){this.model=this.videoDataService.getVideo(this.options.videoId)}},{key:"viewOptions",value:function(){return{dataFetched:!!this.model,spinnerEl:y.Kp.getSpinner({size:y.Ey.Large,extraClasses:"mx-auto"})}}},{key:"onBeforeDestroy",value:function(){c.r.get("upload:thumbnail:options").get("lockNav")&&this.navLockService.lock()}}])&&w(t.prototype,n),Object.defineProperty(t,"prototype",{writable:!1}),E}(l.Q.G7)},58025:function(e,t,n){"use strict";n.d(t,{Y:function(){return r},a:function(){return d}});var r,o=n(48088),i=n(51934),a=n.n(i),u=n(31647),c=n(91465),l=n.n(c);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 p(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,(void 0,o=function(e,t){if("object"!==s(e)||null===e)return e;var n=e[Symbol.toPrimitive];if(void 0!==n){var r=n.call(e,"string");if("object"!==s(r))return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}(r.key),"symbol"===s(o)?o:String(o)),r)}var o}function f(e,t){return f=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(e,t){return e.__proto__=t,e},f(e,t)}function h(e){return h=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(e){return e.__proto__||Object.getPrototypeOf(e)},h(e)}!function(e){e.ClickCrop="click:crop",e.CropImage="crop:image",e.ImageCropped="image:cropped"}(r||(r={}));var d=function(e){!function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),Object.defineProperty(e,"prototype",{writable:!1}),t&&f(e,t)}(d,e);var t,n,i,u,c=(i=d,u=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(e){return!1}}(),function(){var e,t=h(i);if(u){var n=h(this).constructor;e=Reflect.construct(t,arguments,n)}else e=t.apply(this,arguments);return function(e,t){if(t&&("object"===s(t)||"function"==typeof t))return t;if(void 0!==t)throw new TypeError("Derived constructors may only return object or undefined");return function(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}(e)}(this,e)});function d(e){return function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,d),c.call(this,e)}return t=d,(n=[{key:"initialize",value:function(){this.listenTo(this.options.channelName,r.CropImage,this.crop)}},{key:"name",get:function(){return"ImageCropperComponent"}},{key:"template",get:function(){return l()}},{key:"className",get:function(){return"text-center"}},{key:"elements",get:function(){return{image:".img"}}},{key:"getMinCropBoxWidth",value:function(){return this.options.minWidth*this.getViewportToImageRatio()}},{key:"getMinCropBoxHeight",value:function(){return this.options.minHeight*this.getViewportToImageRatio()}},{key:"getViewportToImageRatio",value:function(){return this.options.getCropRegionWidth()/this.model.get("width")}},{key:"crop",value:function(){var e=this.cropper.getCroppedCanvas().toDataURL(this.getImageMimeType());o.Radio.channel(this.options.channelName).trigger(r.ImageCropped,e)}},{key:"getImageMimeType",value:function(){var e=this.model.get("dataUrl").match(/data:([a-zA-Z0-9]+\/[a-zA-Z0-9-.+]+).*,.*/);if(e)return e[1]}},{key:"renderCropper",value:function(){this.getMinCropBoxWidth();var e=this.getUI("image").get(0);this.cropper=new(a())(e,{viewMode:1,aspectRatio:this.options.minWidth/this.options.minHeight,minCropBoxWidth:this.getMinCropBoxWidth(),minCropBoxHeight:this.getMinCropBoxHeight(),autoCropArea:1})}},{key:"onRender",value:function(){this.renderCropper()}},{key:"onBeforeDestroy",value:function(){this.cropper.destroy()}}])&&p(t.prototype,n),Object.defineProperty(t,"prototype",{writable:!1}),d}(u.Q.wA)},68826:function(e,t,n){var r=n(32227);e.exports=(r.default||r).template({1:function(e,t,n,r,o){var i;return e.propertyIsEnumerable,(null!=(i=e.lambda(null!=(i=null!=t?t.options:t)?i.spinnerEl:i,t))?i:"")+"\n"},3:function(e,t,n,r,o){return'<div class="cropper-region"></div>\n'},compiler:[8,">= 4.3.0"],main:function(e,t,n,r,o){var i;return e.propertyIsEnumerable,null!=(i=n.unless.call(null!=t?t:e.nullContext||{},null!=(i=null!=t?t.options:t)?i.dataFetched:i,{name:"unless",hash:{},fn:e.program(1,o,0),inverse:e.program(3,o,0),data:o}))?i:""},useData:!0})},91465:function(e,t,n){var r=n(32227);e.exports=(r.default||r).template({compiler:[8,">= 4.3.0"],main:function(e,t,n,r,o){var i;return e.propertyIsEnumerable,'<img src="'+e.escapeExpression("function"==typeof(i=null!=(i=n.dataUrl||(null!=t?t.dataUrl:t))?i:e.hooks.helperMissing)?i.call(null!=t?t:e.nullContext||{},{name:"dataUrl",hash:{},data:o}):i)+'" class="img img-fluid" />'},useData:!0})}}]);
|
|
@@ -1 +1 @@
|
|
|
1
|
-
(self.webpackChunk_clickview_library_editor=self.webpackChunk_clickview_library_editor||[]).push([[9695],{49695:function(t,e,n){"use strict";n.r(e),n.d(e,{UploadCompleteView:function(){return b}});var r=n(21679),o=n(57857),i=n(31647),l=n(48090),a=n(27169),u=n.n(a),c={completeImage:"TcxNH"};function p(t){return p="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},p(t)}function s(t,e){for(var n=0;n<e.length;n++){var r=e[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(t,(void 0,o=function(t,e){if("object"!==p(t)||null===t)return t;var n=t[Symbol.toPrimitive];if(void 0!==n){var r=n.call(t,"string");if("object"!==p(r))return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(t)}(r.key),"symbol"===p(o)?o:String(o)),r)}var o}function f(t,e){return f=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(t,e){return t.__proto__=e,t},f(t,e)}function y(t){return y=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(t){return t.__proto__||Object.getPrototypeOf(t)},y(t)}var b=function(t){!function(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function");t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,writable:!0,configurable:!0}}),Object.defineProperty(t,"prototype",{writable:!1}),e&&f(t,e)}(m,t);var e,n,i,a,b=(i=m,a=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(t){return!1}}(),function(){var t,e=y(i);if(a){var n=y(this).constructor;t=Reflect.construct(e,arguments,n)}else t=e.apply(this,arguments);return function(t,e){if(e&&("object"===p(e)||"function"==typeof e))return e;if(void 0!==e)throw new TypeError("Derived constructors may only return object or undefined");return function(t){if(void 0===t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return t}(t)}(this,t)});function m(){return function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,m),b.apply(this,arguments)}return e=m,(n=[{key:"initialize",value:function(){this.videoUploadService=r.u.getInstance(l.K9.VideoUpload,this)}},{key:"name",get:function(){return"UploadCompleteView"}},{key:"title",get:function(){return o.T.getPhrase(this.lang,"title")}},{key:"lang",get:function(){return"upload.uploadComplete"}},{key:"template",get:function(){return u()}},{key:"className",get:function(){return"p-3 my-3 bg-white rounded text-center"}},{key:"appLinks",get:function(){return{".back-to-library-applink":{application:l.OV.LIBRARY_EDITOR,action:l.eX.LibraryEditor.HOME}}}},{key:"viewOptions",value:function(){return{styles:c,count:this.videoUploadService.getCollection().length,imageUrl:l.Wn.Shared.SUCCESS}}},{key:"onBeforeDestroy",value:function(){this.videoUploadService.getCollection().reset()}}])&&s(e.prototype,n),Object.defineProperty(e,"prototype",{writable:!1}),m}(i.Q.G7)},27169:function(t,e,n){var r=n(32227);t.exports=(r.default||r).template({compiler:[8,">= 4.3.0"],main:function(t,e,n,r,o){t.propertyIsEnumerable;var i,l=null!=e?e:t.nullContext||{},a=t.hooks.helperMissing,u=t.escapeExpression,c=t.lambda;return"<h1>"+u((n.lang||e&&e.lang||a).call(l,"inLibrary",{name:"lang",hash:{smartCount:null!=(i=null!=e?e.options:e)?i.count:i},data:o}))+'</h1>\
|
|
1
|
+
(self.webpackChunk_clickview_library_editor=self.webpackChunk_clickview_library_editor||[]).push([[9695],{49695:function(t,e,n){"use strict";n.r(e),n.d(e,{UploadCompleteView:function(){return b}});var r=n(21679),o=n(57857),i=n(31647),l=n(48090),a=n(27169),u=n.n(a),c={completeImage:"TcxNH"};function p(t){return p="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},p(t)}function s(t,e){for(var n=0;n<e.length;n++){var r=e[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(t,(void 0,o=function(t,e){if("object"!==p(t)||null===t)return t;var n=t[Symbol.toPrimitive];if(void 0!==n){var r=n.call(t,"string");if("object"!==p(r))return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(t)}(r.key),"symbol"===p(o)?o:String(o)),r)}var o}function f(t,e){return f=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(t,e){return t.__proto__=e,t},f(t,e)}function y(t){return y=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(t){return t.__proto__||Object.getPrototypeOf(t)},y(t)}var b=function(t){!function(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function");t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,writable:!0,configurable:!0}}),Object.defineProperty(t,"prototype",{writable:!1}),e&&f(t,e)}(m,t);var e,n,i,a,b=(i=m,a=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(t){return!1}}(),function(){var t,e=y(i);if(a){var n=y(this).constructor;t=Reflect.construct(e,arguments,n)}else t=e.apply(this,arguments);return function(t,e){if(e&&("object"===p(e)||"function"==typeof e))return e;if(void 0!==e)throw new TypeError("Derived constructors may only return object or undefined");return function(t){if(void 0===t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return t}(t)}(this,t)});function m(){return function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,m),b.apply(this,arguments)}return e=m,(n=[{key:"initialize",value:function(){this.videoUploadService=r.u.getInstance(l.K9.VideoUpload,this)}},{key:"name",get:function(){return"UploadCompleteView"}},{key:"title",get:function(){return o.T.getPhrase(this.lang,"title")}},{key:"lang",get:function(){return"upload.uploadComplete"}},{key:"template",get:function(){return u()}},{key:"className",get:function(){return"p-3 my-3 bg-white rounded text-center"}},{key:"appLinks",get:function(){return{".back-to-library-applink":{application:l.OV.LIBRARY_EDITOR,action:l.eX.LibraryEditor.HOME}}}},{key:"viewOptions",value:function(){return{styles:c,count:this.videoUploadService.getCollection().length,imageUrl:l.Wn.Shared.SUCCESS}}},{key:"onBeforeDestroy",value:function(){this.videoUploadService.getCollection().reset()}}])&&s(e.prototype,n),Object.defineProperty(e,"prototype",{writable:!1}),m}(i.Q.G7)},27169:function(t,e,n){var r=n(32227);t.exports=(r.default||r).template({compiler:[8,">= 4.3.0"],main:function(t,e,n,r,o){t.propertyIsEnumerable;var i,l=null!=e?e:t.nullContext||{},a=t.hooks.helperMissing,u=t.escapeExpression,c=t.lambda;return"<h1>"+u((n.lang||e&&e.lang||a).call(l,"inLibrary",{name:"lang",hash:{smartCount:null!=(i=null!=e?e.options:e)?i.count:i},data:o}))+'</h1>\n<div class="my-3">\n <img src='+u(c(null!=(i=null!=e?e.options:e)?i.imageUrl:i,e))+' class="'+u(c(null!=(i=null!=(i=null!=e?e.options:e)?i.styles:i)?i.completeImage:i,e))+' my-4 img-fluid"/>\n</div>\n<p>'+u((n.lang||e&&e.lang||a).call(l,"isProcessing",{name:"lang",hash:{smartCount:null!=(i=null!=e?e.options:e)?i.count:i},data:o}))+'</p>\n<a class="back-to-library-applink btn btn-dark">'+u((n.lang||e&&e.lang||a).call(l,"back",{name:"lang",hash:{},data:o}))+"</a>"},useData:!0})}}]);
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
(self.webpackChunk_clickview_library_editor=self.webpackChunk_clickview_library_editor||[]).push([[9927],{67670:function(e,t,n){"use strict";n.d(t,{v:function(){return f}});var r=n(31647),o=n(88172);function i(e){return i="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},i(e)}function l(e,t,n){return(t=c(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function a(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,c(r.key),r)}}function c(e){var t=function(e,t){if("object"!==i(e)||null===e)return e;var n=e[Symbol.toPrimitive];if(void 0!==n){var r=n.call(e,"string");if("object"!==i(r))return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}(e);return"symbol"===i(t)?t:String(t)}function u(e,t){return u=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(e,t){return e.__proto__=t,e},u(e,t)}function s(e){return s=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(e){return e.__proto__||Object.getPrototypeOf(e)},s(e)}var f=function(e){!function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),Object.defineProperty(e,"prototype",{writable:!1}),t&&u(e,t)}(p,e);var t,n,r,c,f=(r=p,c=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(e){return!1}}(),function(){var e,t=s(r);if(c){var n=s(this).constructor;e=Reflect.construct(t,arguments,n)}else e=t.apply(this,arguments);return function(e,t){if(t&&("object"===i(t)||"function"==typeof t))return t;if(void 0!==t)throw new TypeError("Derived constructors may only return object or undefined");return function(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}(e)}(this,e)});function p(){return function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,p),f.apply(this,arguments)}return t=p,(n=[{key:"defaults",value:function(){var e;return l(e={},o.ZV.Disabled,!0),l(e,o.ZV.Hidden,!1),e}}])&&a(t.prototype,n),Object.defineProperty(t,"prototype",{writable:!1}),p}(r.Q.Hn)},79927:function(e,t,n){"use strict";n.r(t),n.d(t,{DownloadToLocalCacheView:function(){return C}});var r=n(21679),o=n(57857),i=n(31647),l=n(10101),a=n(88172),c=n(48090),u=n(87175),s=n(67670),f=n(19226),p=n(61843),h=n(9231),y=n.n(h),d={image:"wnpu5"};function b(e){return b="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},b(e)}function m(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,(void 0,o=function(e,t){if("object"!==b(e)||null===e)return e;var n=e[Symbol.toPrimitive];if(void 0!==n){var r=n.call(e,"string");if("object"!==b(r))return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}(r.key),"symbol"===b(o)?o:String(o)),r)}var o}function v(e,t){return v=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(e,t){return e.__proto__=t,e},v(e,t)}function g(e){return g=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(e){return e.__proto__||Object.getPrototypeOf(e)},g(e)}var C=function(e){!function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),Object.defineProperty(e,"prototype",{writable:!1}),t&&v(e,t)}(O,e);var t,n,h,C,w=(h=O,C=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(e){return!1}}(),function(){var e,t=g(h);if(C){var n=g(this).constructor;e=Reflect.construct(t,arguments,n)}else e=t.apply(this,arguments);return function(e,t){if(t&&("object"===b(t)||"function"==typeof t))return t;if(void 0!==t)throw new TypeError("Derived constructors may only return object or undefined");return function(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}(e)}(this,e)});function O(e){return function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,O),w.call(this,e)}return t=O,(n=[{key:"initialize",value:function(){this.localCacheDataService=r.u.getInstance(c.Or.LocalCache,this),this.bindListeners()}},{key:"name",get:function(){return"DownloadToLocalCacheView"}},{key:"title",get:function(){return o.T.getPhrase(this.lang,"title")}},{key:"lang",get:function(){return"shared.downloadToLocalCache"}},{key:"template",get:function(){return y()}},{key:"channelName",get:function(){return p.N0.generateUniqueChannelName(this)}},{key:"behaviors",get:function(){return this.spinnerModel=new s.v,[{behaviorClass:l.Yw,title:o.T.getPhrase(this.lang,"popupHeading"),spinnerButtonOptions:this.getSpinnerButtonOptions}]}},{key:"bindListeners",value:function(){var e=this;this.listenTo(c.Vk.USER,"".concat(c.M_.CURRENT_USER,":sync"),this.render),this.listenTo(c.Vk.LOCAL_CACHE,"".concat(c.M_.LOCAL_CACHE_DEVICES,":sync"),this.render),this.listenTo(c.Vk.LOCAL_CACHE,"".concat(c.M_.LOCAL_CACHE_DOWNLOADS,":").concat(this.options.videoId,":sync"),this.render),this.listenTo(c.Vk.LOCAL_CACHE,"".concat(c.M_.ADD_VIDEO_TO_LOCAL_CACHE,":sync"),(function(){return e.triggerMethod("hide")})),this.listenTo(c.Vk.LOCAL_CACHE,"".concat(c.M_.ADD_VIDEO_TO_LOCAL_CACHE,":error"),(function(){return e.triggerMethod("hide")}))}},{key:"getSpinnerButtonOptions",value:function(){var e=this;if(!this.localCacheDownloads||!this.localCacheDownloads.length)return{model:this.spinnerModel,channelName:this.channelName,buttonText:o.T.getPhrase(this.lang,"buttonText"),onClick:function(){return e.onClickAddToLocalCache()}}}},{key:"onClickAddToLocalCache",value:function(){this.spinnerModel.set(a.ZV.ShowSpinner,!0),this.localCacheDataService.downloadVideoToLocalCache(this.model.get("deviceId"),this.options.videoId)}},{key:"requiredResources",get:function(){return{currentUser:f.K.currentUser}}},{key:"onBeforeRender",value:function(){var e=this.localCacheDataService.getDevices(this.currentUser.get("customerId"));return this.localCacheDownloads=this.localCacheDataService.getDownloadsForVideos([this.options.videoId]),!(e&&this.localCacheDownloads&&(this.model=p.o8.getNewestDeviceUserCanManage(e,this.currentUser.get("customerId")),this.model?(this.spinnerModel.set(a.ZV.Disabled,!1),0):(setTimeout((function(){return i.Q.Ry.throw(new u.HH)}),0),1)))}},{key:"viewOptions",value:function(){return{styles:d,dataFetched:!!this.model&&!!this.localCacheDownloads,spinnerEl:p.Kp.getSpinner({size:p.Ey.Large,extraClasses:"mx-auto"}),alreadyDownloaded:this.localCacheDownloads&&this.localCacheDownloads.length,imageUrl:c.Wn.Shared.LOCAL_CACHE}}}])&&m(t.prototype,n),Object.defineProperty(t,"prototype",{writable:!1}),O}(i.Q.G7)},9231:function(e,t,n){var r=n(32227);e.exports=(r.default||r).template({1:function(e,t,n,r,o){var i;return e.propertyIsEnumerable,(null!=(i=e.lambda(null!=(i=null!=t?t.options:t)?i.spinnerEl:i,t))?i:"")+"\n"},3:function(e,t,n,r,o){var i;return e.propertyIsEnumerable,null!=(i=n.unless.call(null!=t?t:e.nullContext||{},null!=(i=null!=t?t.options:t)?i.alreadyDownloaded:i,{name:"unless",hash:{},fn:e.program(4,o,0),inverse:e.program(6,o,0),data:o}))?i:""},4:function(e,t,n,r,o){e.propertyIsEnumerable;var i,l=null!=t?t:e.nullContext||{},a=e.hooks.helperMissing,c=e.escapeExpression,u=e.lambda;return'<p class="mb-3"><strong>'+c((n.lang||t&&t.lang||a).call(l,"description",{name:"lang",hash:{},data:o}))+'</strong></p>\n<img class="img-fluid '+c(u(null!=(i=null!=(i=null!=t?t.options:t)?i.styles:i)?i.image:i,t))+' mb-3" src="'+c(u(null!=(i=null!=t?t.options:t)?i.imageUrl:i,t))+'" />\n<p>'+c((n.lang||t&&t.lang||a).call(l,"nextStep",{name:"lang",hash:{},data:o}))+"</p>\n"},6:function(e,t,n,r,o){return e.propertyIsEnumerable,'<p class="m-0">'+e.escapeExpression((n.lang||t&&t.lang||e.hooks.helperMissing).call(null!=t?t:e.nullContext||{},"alreadyAdded",{name:"lang",hash:{},data:o}))+"</p>\n"},compiler:[8,">= 4.3.0"],main:function(e,t,n,r,o){var i;return e.propertyIsEnumerable,null!=(i=n.unless.call(null!=t?t:e.nullContext||{},null!=(i=null!=t?t.options:t)?i.dataFetched:i,{name:"unless",hash:{},fn:e.program(1,o,0),inverse:e.program(3,o,0),data:o}))?i:""},useData:!0})}}]);
|
|
@@ -1 +1 @@
|
|
|
1
|
-
(self.webpackChunk_clickview_library_editor=self.webpackChunk_clickview_library_editor||[]).push([[9976],{8371:function(e,n,t){"use strict";var r;t.d(n,{b:function(){return r}}),function(e){e.AU="cv-ap-southeast-1",e.NZ="cv-ap-southeast-2",e.UK="cv-eu-west-1",e.US="cv-na-west-1"}(r||(r={}))},5236:function(e,n,t){"use strict";t.r(n),t.d(n,{VideoDetailsView:function(){return Fe}});var r,o=t(39479),i=t.n(o),l=t(99748),a=t(21679),s=t(31647);!function(e){e.AU="content-ap-southeast-1",e.NZ="content-ap-southeast-2",e.UK="content-eu-west-1",e.SCOT="content-eu-west-2",e.US="content-na-central-1",e.GLOBAL="content-global"}(r||(r={}));var u=t(8371),c=t(59054),f=t(57085),p=t(23130),d=t(10386),h=t.n(d),m=t(90118),y=t.n(m),v={columnNames:"Hs0Sh"};function g(e){return g="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},g(e)}function b(e,n){if(!(e instanceof n))throw new TypeError("Cannot call a class as a function")}function w(e,n){for(var t=0;t<n.length;t++){var r=n[t];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,(void 0,o=function(e,n){if("object"!==g(e)||null===e)return e;var t=e[Symbol.toPrimitive];if(void 0!==t){var r=t.call(e,"string");if("object"!==g(r))return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}(r.key),"symbol"===g(o)?o:String(o)),r)}var o}function k(e,n,t){return n&&w(e.prototype,n),t&&w(e,t),Object.defineProperty(e,"prototype",{writable:!1}),e}function O(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&&E(e,n)}function E(e,n){return E=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(e,n){return e.__proto__=n,e},E(e,n)}function C(e){var n=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(e){return!1}}();return function(){var t,r=S(e);if(n){var o=S(this).constructor;t=Reflect.construct(r,arguments,o)}else t=r.apply(this,arguments);return function(e,n){if(n&&("object"===g(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)}(this,t)}}function S(e){return S=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(e){return e.__proto__||Object.getPrototypeOf(e)},S(e)}var P=function(e){O(t,e);var n=C(t);function t(){return b(this,t),n.apply(this,arguments)}return k(t,[{key:"name",get:function(){return"FieldComponent"}},{key:"template",get:function(){return h()}},{key:"className",get:function(){return"row mb-0"}},{key:"regions",value:function(){return{description:{el:".description-region",replaceElement:!0}}}},{key:"viewOptions",value:function(){return{styles:v}}},{key:"renderDescription",value:function(){this.model.get("value")&&this.showChildView("description",new p.Z({model:new s.Q.Hn({description:this.model.get("value")}),linkify:!0,size:p.t.Large,truncate:!0,allowExpand:!0}))}},{key:"onRender",value:function(){this.renderDescription()}}]),t}(s.Q.wA),x=function(e){O(t,e);var n=C(t);function t(){return b(this,t),n.apply(this,arguments)}return k(t,[{key:"name",get:function(){return"FieldsComponentCollection"}},{key:"childView",get:function(){return P}}]),t}(s.Q.$W),j=function(e){O(t,e);var n=C(t);function t(){return b(this,t),n.apply(this,arguments)}return k(t,[{key:"name",get:function(){return"FieldsComponent"}},{key:"template",get:function(){return y()}},{key:"className",get:function(){return"py-3 border-top"}},{key:"regions",value:function(){return{fields:{el:".fields-region",replaceElement:!0}}}},{key:"onRender",value:function(){this.showChildView("fields",new x({collection:this.collection}))}}]),t}(s.Q.wA),R=t(57857),I=t(61843),T=t(26835),V=t.n(T),_={licenseContainer:"eHMZ_",license:"I0iMx",era:"qgIXx"};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 L(e,n){for(var t=0;t<n.length;t++){var r=n[t];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,(void 0,o=function(e,n){if("object"!==D(e)||null===e)return e;var t=e[Symbol.toPrimitive];if(void 0!==t){var r=t.call(e,"string");if("object"!==D(r))return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}(r.key),"symbol"===D(o)?o:String(o)),r)}var o}function B(e,n){return B=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(e,n){return e.__proto__=n,e},B(e,n)}function U(e){return U=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(e){return e.__proto__||Object.getPrototypeOf(e)},U(e)}var N=function(e){!function(e,n){if("function"!=typeof n&&null!==n)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(n&&n.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),Object.defineProperty(e,"prototype",{writable:!1}),n&&B(e,n)}(a,e);var n,t,o,i,l=(o=a,i=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(e){return!1}}(),function(){var e,n=U(o);if(i){var t=U(this).constructor;e=Reflect.construct(n,arguments,t)}else e=n.apply(this,arguments);return 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)}(this,e)});function a(e){return function(e,n){if(!(e instanceof n))throw new TypeError("Cannot call a class as a function")}(this,a),l.call(this,e)}return n=a,(t=[{key:"name",get:function(){return"ScreenrightsDisclaimerComponent"}},{key:"template",get:function(){return V()}},{key:"lang",get:function(){return"shared.screenrightsDisclaimer"}},{key:"className",get:function(){return"py-3 border-top"}},{key:"getLogoClass",value:function(){return I.mU.isInContentRegion(this.options.contentRegion,r.UK)?_.era:""}},{key:"getLicenseText",value:function(){switch(this.options.contentRegion){case r.UK:return R.T.getPhrase(this.lang,"era");case r.AU:return R.T.getPhrase(this.lang,"copyrightAct");case r.NZ:default:return""}}},{key:"viewOptions",value:function(){var e=I.mU.isInContentRegion(this.options.contentRegion,r.AU);return{styles:_,logoClass:this.getLogoClass(),labelText:e?R.T.getPhrase(this.lang,"labelAu"):"",licenseText:this.getLicenseText()}}}])&&L(n.prototype,t),Object.defineProperty(n,"prototype",{writable:!1}),a}(s.Q.wA),M=t(33192),A=t(56210),H=t(37570),F=t(29457),K=t(89707),Q=t(7190),Z=t(95982),Y=t.n(Z),q={columnNames:"knYPJ",seriesContainer:"nBq4d",icon:"F9VfV",citationValues:"igMNQ"};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 G(e,n){for(var t=0;t<n.length;t++){var r=n[t];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,(void 0,o=function(e,n){if("object"!==z(e)||null===e)return e;var t=e[Symbol.toPrimitive];if(void 0!==t){var r=t.call(e,"string");if("object"!==z(r))return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}(r.key),"symbol"===z(o)?o:String(o)),r)}var o}function X(e,n){return X=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(e,n){return e.__proto__=n,e},X(e,n)}function J(e){return J=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(e){return e.__proto__||Object.getPrototypeOf(e)},J(e)}var $=function(e){!function(e,n){if("function"!=typeof n&&null!==n)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(n&&n.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),Object.defineProperty(e,"prototype",{writable:!1}),n&&X(e,n)}(a,e);var n,t,r,i,l=(r=a,i=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(e){return!1}}(),function(){var e,n=J(r);if(i){var t=J(this).constructor;e=Reflect.construct(n,arguments,t)}else e=n.apply(this,arguments);return function(e,n){if(n&&("object"===z(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)}(this,e)});function a(e){return function(e,n){if(!(e instanceof n))throw new TypeError("Cannot call a class as a function")}(this,a),l.call(this,e)}return n=a,(t=[{key:"name",get:function(){return"VideoBasicInfoComponent"}},{key:"template",get:function(){return Y()}},{key:"lang",get:function(){return"shared.videoBasicInfo"}},{key:"defaults",get:function(){return{truncateDescription:!0}}},{key:"behaviors",get:function(){return[{behaviorClass:A.H,selector:".tool-tip"}]}},{key:"regions",value:function(){return{description:{el:".description-region",replaceElement:!0,partialLoading:F.LP.VideoBasicInfo},series:{el:".series-region",replaceElement:!0}}}},{key:"getBroadcastDate",value:function(){return this.model.get("dateBroadcast")?M(this.model.get("dateBroadcast")).format(F.K4.FULL_YEAR):""}},{key:"getSeriesUrl",value:function(){if(this.options.externalSeriesLink&&this.model.series){var e="series/".concat(this.model.series.id);return K.k.getMainProductUrl(this.options.config,e,e)}}},{key:"renderSeries",value:function(){this.model.series&&this.model.series.get("name")&&this.showChildView("series",new H.O({model:this.model,highlight:!1,seriesUrl:this.getSeriesUrl(),styleUppercase:!1}))}},{key:"renderDescription",value:function(){if(this.model&&this.model.get("description")){var e=new p.Z({model:this.model,linkify:!0,size:p.t.Large,truncate:this.options.truncateDescription,allowExpand:!0});this.showChildView("description",e)}}},{key:"getSubtitleLanguage",value:function(){var e=this;return this.model.subtitles&&this.model.get("subtitles").length?o.uniq(this.model.get("subtitles").map((function(n){var t,r=n.get("language"),o=CVLanguages.getFullEnglishName(r);return(null===(t=n.get("metadata"))||void 0===t?void 0:t.autoGenerated)?R.T.getPhrase(e.lang,"autoGenerated",{name:o}):o}))).join(", "):""}},{key:"getCitationHeading",value:function(e,n,t){return this.model.get(e)?this.model.get(e).length>1?t:n:""}},{key:"getCitationHeadings",value:function(){return{productionCompaniesText:this.getCitationHeading(F.Zn.ProductionCompany,"Production Company","Production Companies"),producersText:this.getCitationHeading(F.Zn.Producer,"Producer","Producers"),disributorsText:this.getCitationHeading(F.Zn.Distributor,"Distributor","Distributors"),directorsText:this.getCitationHeading(F.Zn.Director,"Director","Directors")}}},{key:"viewOptions",value:function(){return Object.assign({styles:q,ratingClass:this.model.rating&&Q.uB.mapRatingToClass(this.model.rating.get("value")),broadcastDate:this.getBroadcastDate(),showHeading:this.options.showHeading,subtitles:this.getSubtitleLanguage(),hideBroadcastInfo:this.options.hideBroadcastInfo},this.getCitationHeadings())}},{key:"onRender",value:function(){this.renderSeries(),this.renderDescription()}}])&&G(n.prototype,t),Object.defineProperty(n,"prototype",{writable:!1}),a}(s.Q.wA),W=t(48090),ee=t(21251),ne=t(33800),te=t(3059),re=t(48404),oe=t(19226),ie=t(70693),le=t(68708),ae=t(70065),se=t(63791),ue=t(66882),ce=t(86745),fe=t.n(ce),pe={svgContainer:"qOHRG"};function de(e){return de="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},de(e)}function he(e,n){for(var t=0;t<n.length;t++){var r=n[t];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,(void 0,o=function(e,n){if("object"!==de(e)||null===e)return e;var t=e[Symbol.toPrimitive];if(void 0!==t){var r=t.call(e,"string");if("object"!==de(r))return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}(r.key),"symbol"===de(o)?o:String(o)),r)}var o}function me(e,n){return me=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(e,n){return e.__proto__=n,e},me(e,n)}function ye(e){return ye=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(e){return e.__proto__||Object.getPrototypeOf(e)},ye(e)}var ve=function(e){!function(e,n){if("function"!=typeof n&&null!==n)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(n&&n.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),Object.defineProperty(e,"prototype",{writable:!1}),n&&me(e,n)}(a,e);var n,t,r,i,l=(r=a,i=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(e){return!1}}(),function(){var e,n=ye(r);if(i){var t=ye(this).constructor;e=Reflect.construct(n,arguments,t)}else e=n.apply(this,arguments);return function(e,n){if(n&&("object"===de(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)}(this,e)});function a(e){return function(e,n){if(!(e instanceof n))throw new TypeError("Cannot call a class as a function")}(this,a),l.call(this,e)}return n=a,(t=[{key:"name",get:function(){return"VideoHeaderComponent"}},{key:"template",get:function(){return fe()}},{key:"className",get:function(){return"d-flex align-items-center justify-content-between px-3 pt-3 pb-2 w-100"}},{key:"behaviors",get:function(){return[{behaviorClass:A.H,selector:".".concat(pe.svgContainer)}]}},{key:"regions",value:function(){return{actions:{el:".video-actions-region",replaceElement:!1}}}},{key:"viewOptions",value:function(){return{styles:pe,lockSvg:se.Nj.getSvg(se.vn.Lock),hasRestriction:!o.isUndefined(this.model.get("restrictions")),restrictionMessage:I.S9.getRestrictionTooltipMessage(this.model)}}},{key:"onRender",value:function(){this.showChildView("actions",new ue.R({model:this.model,showActionLabels:!0,application:W.OV.LIBRARY_EDITOR,customerHasLocalCache:this.options.customerHasLocalCache,customerHasExchange:this.options.customerHasExchange,collectionIdentifier:this.options.collectionIdentifier,routeToFolderOnDelete:!0,analyticsOptions:{entity:ae.py.Video,location:ae.LZ.VideoDetailsHeader,descriptor:ae.yh.Single},config:this.options.config}))}}])&&he(n.prototype,t),Object.defineProperty(n,"prototype",{writable:!1}),a}(s.Q.wA),ge=t(77605),be=t(45837),we=t(7427),ke=t(61356),Oe=t(44391),Ee=t(26457),Ce=t(70042),Se=t(17349),Pe=t.n(Se),xe={interactive:"N1mrU"};function je(e){return je="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},je(e)}function Re(e,n){for(var t=0;t<n.length;t++){var r=n[t];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,(void 0,o=function(e,n){if("object"!==je(e)||null===e)return e;var t=e[Symbol.toPrimitive];if(void 0!==t){var r=t.call(e,"string");if("object"!==je(r))return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}(r.key),"symbol"===je(o)?o:String(o)),r)}var o}function Ie(e,n){return Ie=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(e,n){return e.__proto__=n,e},Ie(e,n)}function Te(e){return Te=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(e){return e.__proto__||Object.getPrototypeOf(e)},Te(e)}var Ve=function(e){!function(e,n){if("function"!=typeof n&&null!==n)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(n&&n.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),Object.defineProperty(e,"prototype",{writable:!1}),n&&Ie(e,n)}(l,e);var n,t,r,o,i=(r=l,o=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(e){return!1}}(),function(){var e,n=Te(r);if(o){var t=Te(this).constructor;e=Reflect.construct(n,arguments,t)}else e=n.apply(this,arguments);return function(e,n){if(n&&("object"===je(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)}(this,e)});function l(e){return function(e,n){if(!(e instanceof n))throw new TypeError("Cannot call a class as a function")}(this,l),i.call(this,e)}return n=l,(t=[{key:"initialize",value:function(){this.isClickViewContent=this.model&&!I.BK.canEditVideo(this.model)}},{key:"name",get:function(){return"VideoSidebarInfoComponent"}},{key:"lang",get:function(){return"libraryEditor.videoSidebarInfo"}},{key:"className",get:function(){return"py-3 h-100"}},{key:"template",get:function(){return Pe()}},{key:"regions",value:function(){return{preview:{el:".video-preview-region",replaceElement:!0},folders:{el:".folders-region",replaceElement:!0},tags:{el:".tags-region",replaceElement:!0}}}},{key:"requiredResources",get:function(){return{currentUser:oe.K.currentUser}}},{key:"renderVideoPreview",value:function(){this.showChildView("preview",new ke.c({model:this.model,webPlayerUrl:this.options.webPlayerUrl,channelName:this.options.channelName,analyticsOptions:{location:ae.LZ.VideoDetails},currentUser:this.options.currentUser,createViewKey:this.options.createViewKey,playerApiUrl:this.options.playerApiUrl}))}},{key:"renderTags",value:function(){this.model.get("tags")&&this.model.get("tags").length&&this.showChildView("tags",new Oe.K({collection:this.model.get("tags"),orientation:Ee.zM.Flex,behavior:Ee.Dm.Link}))}},{key:"renderFolders",value:function(){this.model.get("categories")&&this.model.get("categories").length&&this.showChildView("folders",new we.V({model:this.model,libraries:this.options.libraries,showFolder:!0,hideLabel:!0}))}},{key:"viewOptions",value:function(){return{styles:xe,interactive:Ce.u.isInteractive(this.model),duration:I.T.ToDisplayDuration(this.model.get("duration")),folders:this.model.categories&&this.model.categories.length,multipleFolders:this.model.categories.length>1,tags:this.model.get("tags")&&this.model.get("tags").length,isClickViewContent:this.isClickViewContent,hasCustomerTags:this.isClickViewContent&&I.BK.filterObjectsByOwnerType(this.model.tags,be.N.Customer,this.options.currentUser.get("customerId")).length}}},{key:"onRender",value:function(){this.renderVideoPreview(),this.renderTags(),this.renderFolders()}}])&&Re(n.prototype,t),Object.defineProperty(n,"prototype",{writable:!1}),l}(s.Q.wA),_e=t(53854),De=t(75535),Le=t(95061),Be=t(91865),Ue=t.n(Be);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 Me(e,n){for(var t=0;t<n.length;t++){var r=n[t];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,(void 0,o=function(e,n){if("object"!==Ne(e)||null===e)return e;var t=e[Symbol.toPrimitive];if(void 0!==t){var r=t.call(e,"string");if("object"!==Ne(r))return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}(r.key),"symbol"===Ne(o)?o:String(o)),r)}var o}function Ae(e,n){return Ae=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(e,n){return e.__proto__=n,e},Ae(e,n)}function He(e){return He=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(e){return e.__proto__||Object.getPrototypeOf(e)},He(e)}var Fe=function(e){!function(e,n){if("function"!=typeof n&&null!==n)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(n&&n.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),Object.defineProperty(e,"prototype",{writable:!1}),n&&Ae(e,n)}(h,e);var n,t,o,p,d=(o=h,p=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(e){return!1}}(),function(){var e,n=He(o);if(p){var t=He(this).constructor;e=Reflect.construct(n,arguments,t)}else e=n.apply(this,arguments);return function(e,n){if(n&&("object"===Ne(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)}(this,e)});function h(e){return function(e,n){if(!(e instanceof n))throw new TypeError("Cannot call a class as a function")}(this,h),d.call(this,e)}return n=h,t=[{key:"initialize",value:function(){this.bindListeners(),this.videoDataService=a.u.getInstance(ne.O.Video,this),this.videoMixinService=a.u.getInstance(ne.K.VideoMixin,this),this.localCacheDataService=a.u.getInstance(ne.O.LocalCache,this),this.playerDataService=a.u.getInstance(ne.O.Player,this),this.createViewKey=this.createViewKey.bind(this)}},{key:"bindListeners",value:function(){this.listenTo(W.Vk.VIDEO,"".concat(ee.M.VIDEOS,":").concat(this.options.videoId,":sync"),this.render),this.listenTo(W.Vk.VIDEO,"".concat(ee.M.VIDEOS,":").concat(this.options.videoId,":error"),this.onError),this.listenTo(W.Vk.VIDEO,"".concat(ee.M.RESTRICTED_OBJECTS,":").concat(this.options.videoId,":sync"),this.render),this.listenTo(W.Vk.VIDEO,"cache:cleared",this.render),this.listenTo(W.Vk.LIBRARY,"libraries:sync",this.render),this.listenTo(W.Vk.RESTRICTED_VIDEO,"".concat(ee.M.UPDATE_VIDEO_RESTRICTION,":sync"),this.updateRestriction),this.listenTo(W.Vk.RESTRICTED_VIDEO,"".concat(ee.M.RESTRICTED_OBJECTS,":").concat(this.options.videoId,":sync"),this.render),this.listenTo(W.Vk.LOCAL_CACHE,"".concat(ee.M.LOCAL_CACHE_DEVICES,":sync"),this.render),this.listenTo(W.Vk.LOCAL_CACHE,"".concat(ee.M.LOCAL_CACHE_DEVICES,":error"),this.onError)}},{key:"name",get:function(){return"VideoDetailsView"}},{key:"title",get:function(){return this.video&&this.video.get("name")}},{key:"channelName",get:function(){return"".concat(this.name).concat(this.cid)}},{key:"template",get:function(){return Ue()}},{key:"className",get:function(){return"container-fluid h-100 bg-white rounded"}},{key:"onError",value:function(e){switch(e.type){case l.h.NotFound:s.Q.Ry.throw(new De.l);break;case l.h.Forbidden:s.Q.Ry.throw(new _e.a)}}},{key:"regions",value:function(){return{breadcrumbs:{el:".breadcrumbs-region",replaceElement:!1,partialLoading:F.LP.Breadcrumbs},header:{replaceElement:!0,el:".video-header-region",partialLoading:F.LP.VideoHeader},main:{replaceElement:!0,el:".main-video-information-region",partialLoading:F.LP.VideoSidebarInfo},basic:{replaceElement:!1,el:".basic-video-information-region",partialLoading:F.LP.VideoBasicInfo},chapters:{replaceElement:!0,el:".video-chapters-region"},resources:{replaceElement:!0,el:".video-resources-region"},fields:{replaceElement:!0,el:".fields-region"},links:{replaceElement:!0,el:".video-links-region"},screenrightsDisclaimer:{replaceElement:!0,el:".screenright-disclaimer-region"}}}},{key:"updateRestriction",value:function(){this.videoMixinService.getAndMixinVideoRestriction(this.video)}},{key:"showLicense",value:function(){return!(!this.video||I.mU.isInContentRegion(this.currentUser.get("contentRegion"),r.NZ)||(!this.video.get("channel")||!this.video.get("channel").get("id"))&&!this.video.get("dateBroadcast"))}},{key:"createViewKey",value:function(e,n){this.playerDataService.createViewKey(e,c.f.MasterObject,n)}},{key:"getCustomLibraryFolders",value:function(){var e;if(!(null===(e=this.video)||void 0===e?void 0:e.categories)||!this.libraries)return[];var n=this.libraries.reduce((function(e,n){return e[n.id]=!0,e}),{});return this.video.categories.filter((function(e){var t=e.libraries.first().get("id");return n[t]}))}},{key:"renderBreadcrumbs",value:function(){this.folder&&this.video&&this.showChildView("breadcrumbs",new f.n({folder:this.folder,libraries:this.libraries,video:this.video,enableLastItemAppLink:!1}))}},{key:"renderVideoHeader",value:function(){this.showChildView("header",new ve({model:this.video,customerHasLocalCache:I.o8.customerHasLocalCache(this.devices,this.currentUser.get("customerId")),customerHasExchange:this.exchanges.any(),collectionIdentifier:this.folder&&new te.F7(this.folder.id,I.x$.GetCurrentSortType()),config:this.config}))}},{key:"renderSidebarInfo",value:function(){this.showChildView("main",new Ve({model:this.video,webPlayerUrl:this.config.get("webPlayerUrl"),channelName:this.channelName,currentUser:this.currentUser,createViewKey:this.createViewKey,playerApiUrl:this.config.get("playerApiUrl"),libraries:this.libraries}))}},{key:"renderBasicInfo",value:function(){this.video&&this.showChildView("basic",new $({model:this.video,showHeading:!0,config:this.config,hideBroadcastInfo:this.currentUser.get("instanceRegion")===u.b.US}))}},{key:"renderFields",value:function(){this.video.fields&&this.video.fields.any((function(e){return e.get("value")}))&&this.currentUser.get("instanceRegion")!==u.b.US&&this.showChildView("fields",new j({collection:this.video.fields}))}},{key:"renderChapters",value:function(){var e=this.video.chapters;e&&e.length>0&&this.showChildView("chapters",new ie.Q({channelName:this.channelName,collection:this.video.chapters}))}},{key:"renderResources",value:function(){var e=this.video.resources;e&&e.length>0&&this.showChildView("resources",new ge.c({model:this.video}))}},{key:"renderLinks",value:function(){var e=this.video.links;e&&e.length&&this.showChildView("links",new le.c({model:this.video,headingText:"Links"}))}},{key:"renderScreenrightsDisclaimer",value:function(){this.showLicense()&&this.showChildView("screenrightsDisclaimer",new N({contentRegion:this.currentUser.get("contentRegion")}))}},{key:"requiredResources",get:function(){return{config:re.p.config,currentUser:oe.K.currentUser,libraries:Le.T.libraries,exchanges:Le.T.exchanges}}},{key:"onBeforeRender",value:function(){return this.video=this.videoDataService.getVideo(this.options.videoId),this.video&&(this.folder=i().first(this.getCustomLibraryFolders())),this.devices=this.localCacheDataService.getDevices(this.currentUser.get("customerId")),!!this.video}},{key:"viewOptions",value:function(){if(this.video){var e=this.video,n=e.chapters,t=e.resources,r=e.fields,o=e.links;return{hasFolder:!!this.folder,hasChapters:n&&n.length,hasResources:t&&t.length,hasFields:r&&r.length,hasLinks:o&&o.length,showScreenrightsDisclaimer:this.showLicense()}}}},{key:"onRender",value:function(){this.renderBreadcrumbs(),this.renderVideoHeader(),this.renderSidebarInfo(),this.renderBasicInfo(),this.renderFields(),this.renderChapters(),this.renderResources(),this.renderLinks(),this.renderScreenrightsDisclaimer()}}],t&&Me(n.prototype,t),Object.defineProperty(n,"prototype",{writable:!1}),h}(s.Q.G7)},57085:function(e,n,t){"use strict";t.d(n,{n:function(){return C}});var r=t(31647),o=t(48090),i=t(22557),l=t(86363),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){if(!(e instanceof n))throw new TypeError("Cannot call a class as a function")}function c(e,n){for(var t=0;t<n.length;t++){var r=n[t];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,(void 0,o=function(e,n){if("object"!==s(e)||null===e)return e;var t=e[Symbol.toPrimitive];if(void 0!==t){var r=t.call(e,"string");if("object"!==s(r))return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}(r.key),"symbol"===s(o)?o:String(o)),r)}var o}function f(e,n,t){return n&&c(e.prototype,n),t&&c(e,t),Object.defineProperty(e,"prototype",{writable:!1}),e}function p(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)}function d(e,n){return d=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(e,n){return e.__proto__=n,e},d(e,n)}function h(e){var n=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(e){return!1}}();return function(){var t,r=m(e);if(n){var o=m(this).constructor;t=Reflect.construct(r,arguments,o)}else t=r.apply(this,arguments);return 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)}(this,t)}}function m(e){return m=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(e){return e.__proto__||Object.getPrototypeOf(e)},m(e)}var y=function(e){p(t,e);var n=h(t);function t(){return u(this,t),n.apply(this,arguments)}return f(t,[{key:"name",get:function(){return"BreadcrumbItemComponent"}},{key:"template",get:function(){return a()}},{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")}}}]),t}(r.Q.wA),v=function(e){p(t,e);var n=h(t);function t(){return u(this,t),n.apply(this,arguments)}return f(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 y}}]),t}(r.Q.$W),g=t(93933),b=t.n(g);function w(e){return w="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},w(e)}function k(e,n){for(var t=0;t<n.length;t++){var r=n[t];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,(void 0,o=function(e,n){if("object"!==w(e)||null===e)return e;var t=e[Symbol.toPrimitive];if(void 0!==t){var r=t.call(e,"string");if("object"!==w(r))return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}(r.key),"symbol"===w(o)?o:String(o)),r)}var o}function O(e,n){return O=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(e,n){return e.__proto__=n,e},O(e,n)}function E(e){return E=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(e){return e.__proto__||Object.getPrototypeOf(e)},E(e)}var C=function(e){!function(e,n){if("function"!=typeof n&&null!==n)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(n&&n.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),Object.defineProperty(e,"prototype",{writable:!1}),n&&O(e,n)}(u,e);var n,t,l,a,s=(l=u,a=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(e){return!1}}(),function(){var e,n=E(l);if(a){var t=E(this).constructor;e=Reflect.construct(n,arguments,t)}else e=n.apply(this,arguments);return function(e,n){if(n&&("object"===w(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)}(this,e)});function u(e){return function(e,n){if(!(e instanceof n))throw new TypeError("Cannot call a class as a function")}(this,u),s.call(this,e)}return n=u,(t=[{key:"initialize",value:function(){this.getBreadcrumbs()}},{key:"name",get:function(){return"BreadcrumbsComponent"}},{key:"template",get:function(){return b()}},{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 r.Q.FE([]);var n,t=this.options.folder;do{if(!t)break;if(n=i.P.getParent(t.id,this.options.libraries),this.breadcrumbCollection.add(this.getBreadcrumb(t,!!n),{at:0}),!n)break;t=n}while(n);this.options.video&&this.breadcrumbCollection.add({name:this.options.video.get("name"),appLink:{application:o.OV.LIBRARY_EDITOR,action:o.eX.LibraryEditor.VIDEO_DETAILS,args:[this.options.video.id]}}),this.options.customBreadcrumbs&&this.options.customBreadcrumbs.forEach((function(n){return e.breadcrumbCollection.add(n)})),this.breadcrumbCollection.length&&this.breadcrumbCollection.last().set("active",!this.options.enableLastItemAppLink)}},{key:"getBreadcrumb",value:function(e,n){var t=n?o.eX.LibraryEditor.FOLDER:o.eX.LibraryEditor.LIBRARY;return{name:e.get("name"),appLink:{application:o.OV.LIBRARY_EDITOR,action:t,args:[e.id]}}}},{key:"onRender",value:function(){var e=new v({collection:this.breadcrumbCollection});this.showChildView("breadcrumbs",e)}}])&&k(n.prototype,t),Object.defineProperty(n,"prototype",{writable:!1}),u}(r.Q.wA)},86745:function(e,n,t){var r=t(32227);e.exports=(r.default||r).template({1:function(e,n,t,r,o){e.propertyIsEnumerable;var i,l=e.lambda,a=e.escapeExpression;return' <span class="d-inline-block ms-2 '+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>\r\n"},compiler:[8,">= 4.3.0"],main:function(e,n,t,r,o){e.propertyIsEnumerable;var i,l,a=null!=n?n:e.nullContext||{};return'<div class="d-inline-flex align-items-center">\r\n <h4 class="d-inline-block mb-0">'+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:o}):l)+"</h4>\r\n"+(null!=(i=t.if.call(a,null!=(i=null!=n?n.options:n)?i.hasRestriction:i,{name:"if",hash:{},fn:e.program(1,o,0),inverse:e.noop,data:o}))?i:"")+'</div>\r\n<div class="video-actions-region d-inline-block"></div>'},useData:!0})},17349:function(e,n,t){var r=t(32227);e.exports=(r.default||r).template({1:function(e,n,t,r,o){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:o}))+"</span>\r\n"},3:function(e,n,t,r,o){var i;return e.propertyIsEnumerable,' <div class="mt-3">\r\n <h5>'+e.escapeExpression((t.lang||n&&n.lang||e.hooks.helperMissing).call(null!=n?n:e.nullContext||{},"folders",{name:"lang",hash:{smartCount:null!=(i=null!=n?n.options:n)?i.folders:i},data:o}))+'</h5>\r\n <div class="folders-region"></div>\r\n </div>\r\n'},5:function(e,n,t,r,o){return e.propertyIsEnumerable,' <div class="mt-3">\r\n <h5>'+e.escapeExpression((t.lang||n&&n.lang||e.hooks.helperMissing).call(null!=n?n:e.nullContext||{},"tags",{name:"lang",hash:{},data:o}))+'</h5>\r\n <div class="tags-region"></div>\r\n </div>\r\n'},7:function(e,n,t,r,o){e.propertyIsEnumerable;var i,l=e.escapeExpression;return' <div class="mt-3">\r\n <h5>'+l((t.lang||n&&n.lang||e.hooks.helperMissing).call(null!=n?n:e.nullContext||{},"curriculumLinks",{name:"lang",hash:{},data:o}))+"</h5>\r\n <p>"+l(e.lambda(null!=(i=null!=n?n.options:n)?i.links:i,n))+"</p>\r\n </div>\r\n"},compiler:[8,">= 4.3.0"],main:function(e,n,t,r,o){e.propertyIsEnumerable;var i,l=null!=n?n:e.nullContext||{};return'<div class="border-end h-100 ps-2 pe-3">\r\n <div class="video-preview-region"></div>\r\n <div class="mt-3">\r\n'+(null!=(i=t.if.call(l,null!=(i=null!=n?n.options:n)?i.interactive:i,{name:"if",hash:{},fn:e.program(1,o,0),inverse:e.noop,data:o}))?i:"")+" </div>\r\n\r\n"+(null!=(i=t.if.call(l,null!=(i=null!=n?n.options:n)?i.folders:i,{name:"if",hash:{},fn:e.program(3,o,0),inverse:e.noop,data:o}))?i:"")+"\r\n"+(null!=(i=t.if.call(l,null!=(i=null!=n?n.options:n)?i.tags:i,{name:"if",hash:{},fn:e.program(5,o,0),inverse:e.noop,data:o}))?i:"")+"\r\n"+(null!=(i=t.if.call(l,null!=(i=null!=n?n.options:n)?i.links:i,{name:"if",hash:{},fn:e.program(7,o,0),inverse:e.noop,data:o}))?i:"")+"</div>"},useData:!0})},91865:function(e,n,t){var r=t(32227);e.exports=(r.default||r).template({1:function(e,n,t,r,o){return' <div class="fields-region"></div>\r\n'},3:function(e,n,t,r,o){return' <div class="video-chapters-region"></div>\r\n'},5:function(e,n,t,r,o){return' <div class="video-resources-region"></div>\r\n'},7:function(e,n,t,r,o){return' <div class="video-links-region"></div>\r\n'},9:function(e,n,t,r,o){return' <div class="screenright-disclaimer-region"></div>\r\n'},compiler:[8,">= 4.3.0"],main:function(e,n,t,r,o){e.propertyIsEnumerable;var i,l=null!=n?n:e.nullContext||{};return'<div class="row border-bottom">\r\n <div class="video-header-region"></div>\r\n\r\n <div class="px-3 pb-3">\r\n <div class="breadcrumbs-region"></div>\r\n </div>\r\n</div>\r\n\r\n<div class="row">\r\n <div class="col-4">\r\n <div class="main-video-information-region"></div>\r\n </div>\r\n <div class="col-8">\r\n <div class="basic-video-information-region py-3 pe-2"></div>\r\n'+(null!=(i=t.if.call(l,null!=(i=null!=n?n.options:n)?i.hasFields:i,{name:"if",hash:{},fn:e.program(1,o,0),inverse:e.noop,data:o}))?i:"")+(null!=(i=t.if.call(l,null!=(i=null!=n?n.options:n)?i.hasChapters:i,{name:"if",hash:{},fn:e.program(3,o,0),inverse:e.noop,data:o}))?i:"")+(null!=(i=t.if.call(l,null!=(i=null!=n?n.options:n)?i.hasResources:i,{name:"if",hash:{},fn:e.program(5,o,0),inverse:e.noop,data:o}))?i:"")+(null!=(i=t.if.call(l,null!=(i=null!=n?n.options:n)?i.hasLinks:i,{name:"if",hash:{},fn:e.program(7,o,0),inverse:e.noop,data:o}))?i:"")+(null!=(i=t.if.call(l,null!=(i=null!=n?n.options:n)?i.showScreenrightsDisclaimer:i,{name:"if",hash:{},fn:e.program(9,o,0),inverse:e.noop,data:o}))?i:"")+" </div>\r\n</div>"},useData:!0})},86363:function(e,n,t){var r=t(32227);e.exports=(r.default||r).template({1:function(e,n,t,r,o){var i;return e.propertyIsEnumerable,'<span class="fw-bolder">'+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:o}):i)+"</span>\r\n"},3:function(e,n,t,r,o){var i;return e.propertyIsEnumerable,"<a>"+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:o}):i)+"</a>\r\n"},compiler:[8,">= 4.3.0"],main:function(e,n,t,r,o){var i;return e.propertyIsEnumerable,null!=(i=t.if.call(null!=n?n:e.nullContext||{},null!=(i=null!=n?n.options:n)?i.isActive:i,{name:"if",hash:{},fn:e.program(1,o,0),inverse:e.program(3,o,0),data:o}))?i:""},useData:!0})},93933:function(e,n,t){var r=t(32227);e.exports=(r.default||r).template({compiler:[8,">= 4.3.0"],main:function(e,n,t,r,o){return'<nav class="breadcrumbs-region" aria-label="breadcrumb"></nav>'},useData:!0})},10386:function(e,n,t){var r=t(32227);e.exports=(r.default||r).template({compiler:[8,">= 4.3.0"],main:function(e,n,t,r,o){e.propertyIsEnumerable;var i,l,a=e.escapeExpression;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("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:o}):l)+'</div>\r\n<div class="col-9">\r\n <div class="description-region"></div>\r\n</div>'},useData:!0})},90118:function(e,n,t){var r=t(32227);e.exports=(r.default||r).template({compiler:[8,">= 4.3.0"],main:function(e,n,t,r,o){return'<h5 class="mb-0">Extra Information</h5>\r\n<div class="text-muted mb-3">This information is only visible to administrators and will not be searchable</div>\r\n<div class="fields-region"></div>'},useData:!0})},26835:function(e,n,t){var r=t(32227);e.exports=(r.default||r).template({compiler:[8,">= 4.3.0"],main:function(e,n,t,r,o){e.propertyIsEnumerable;var i,l=e.lambda,a=e.escapeExpression;return'<div class="d-inline-block '+a(l(null!=(i=null!=(i=null!=n?n.options:n)?i.styles:i)?i.licenseContainer:i,n))+'">\r\n <div class="'+a(l(null!=(i=null!=n?n.options:n)?i.logoClass:i,n))+'">'+a(l(null!=(i=null!=n?n.options:n)?i.labelText:i,n))+'</div>\r\n <p class="'+a(l(null!=(i=null!=(i=null!=n?n.options:n)?i.styles:i)?i.license:i,n))+' bg-white p-2 border box-shadow">\r\n '+(null!=(i=l(null!=(i=null!=n?n.options:n)?i.licenseText:i,n))?i:"")+"\r\n </p>\r\n</div>"},useData:!0})},95982:function(e,n,t){var r=t(32227);e.exports=(r.default||r).template({1:function(e,n,t,r,o){return e.propertyIsEnumerable,'<div class="position-relative">\r\n <h5 class="d-inline-block">'+e.escapeExpression((t.lang||n&&n.lang||e.hooks.helperMissing).call(null!=n?n:e.nullContext||{},"basicInfo",{name:"lang",hash:{},data:o}))+"</h5>\r\n</div>\r\n"},3:function(e,n,t,r,o){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,"videoTitle",{name:"lang",hash:{},data:o}))+'</div>\r\n <p class="col-9">'+a("function"==typeof(l=null!=(l=t.name||(null!=n?n.name:n))?l:u)?l.call(s,{name:"name",hash:{},data:o}):l)+"</p>\r\n"},5:function(e,n,t,r,o){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||{},"series",{name:"lang",hash:{},data:o}))+'</div>\r\n <div class="col-9 '+a(l(null!=(i=null!=(i=null!=n?n.options:n)?i.styles:i)?i.seriesContainer:i,n))+'"><div class="series-region"></div></div>\r\n'},7:function(e,n,t,r,o){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:o}))+'</div>\r\n <p class="col-9"><span class="p-1 badge text-white tool-tip '+a(l(null!=(i=null!=n?n.options:n)?i.ratingClass:i,n))+" "+a(l(null!=(i=null!=(i=null!=n?n.options:n)?i.styles:i)?i.rating: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></p>\r\n"},9:function(e,n,t,r,o){e.propertyIsEnumerable;var i,l=e.escapeExpression;return' <div 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||{},"description",{name:"lang",hash:{},data:o}))+'</div>\r\n <div class="col-9">\r\n <div class="description-region"></div>\r\n </div>\r\n'},11:function(e,n,t,r,o){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:o}))+'</div>\r\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:o}):l)+"</p>\r\n"},13:function(e,n,t,r,o){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,"producers",{name:"lang",hash:{},data:o}))+'</div>\r\n <div class="col-9 '+a(l(null!=(i=null!=(i=null!=n?n.options:n)?i.styles:i)?i.citationValues:i,n))+'">\r\n <p>\r\n'+(null!=(i=t.each.call(s,null!=n?n.producers:n,{name:"each",hash:{},fn:e.program(14,o,0),inverse:e.noop,data:o}))?i:"")+" </p>\r\n </div>\r\n"},14:function(e,n,t,r,o){var i;return e.propertyIsEnumerable," <span>"+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:o}):i)+"</span>\r\n"},16:function(e,n,t,r,o){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,"directors",{name:"lang",hash:{},data:o}))+'</div>\r\n <div class="col-9 '+a(l(null!=(i=null!=(i=null!=n?n.options:n)?i.styles:i)?i.citationValues:i,n))+'">\r\n <p>\r\n'+(null!=(i=t.each.call(s,null!=n?n.directors:n,{name:"each",hash:{},fn:e.program(14,o,0),inverse:e.noop,data:o}))?i:"")+" </p>\r\n </div>\r\n"},18:function(e,n,t,r,o){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,"productionCompanies",{name:"lang",hash:{},data:o}))+'</div>\r\n <div class="col-9 '+a(l(null!=(i=null!=(i=null!=n?n.options:n)?i.styles:i)?i.citationValues:i,n))+'">\r\n <p>\r\n'+(null!=(i=t.each.call(s,null!=n?n.productionCompanies:n,{name:"each",hash:{},fn:e.program(14,o,0),inverse:e.noop,data:o}))?i:"")+" </p>\r\n </div>\r\n"},20:function(e,n,t,r,o){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,"distributors",{name:"lang",hash:{},data:o}))+'</div>\r\n <div class="col-9 '+a(l(null!=(i=null!=(i=null!=n?n.options:n)?i.styles:i)?i.citationValues:i,n))+'">\r\n <p>\r\n'+(null!=(i=t.each.call(s,null!=n?n.distributors:n,{name:"each",hash:{},fn:e.program(14,o,0),inverse:e.noop,data:o}))?i:"")+" </p>\r\n </div>\r\n"},22:function(e,n,t,r,o){e.propertyIsEnumerable;var i,l=null!=n?n:e.nullContext||{};return" "+(null!=(i=t.if.call(l,null!=(i=null!=n?n.channel:n)?i.name:i,{name:"if",hash:{},fn:e.program(23,o,0),inverse:e.noop,data:o}))?i:"")+"\r\n\r\n"+(null!=(i=t.if.call(l,null!=(i=null!=n?n.options:n)?i.broadcastDate:i,{name:"if",hash:{},fn:e.program(26,o,0),inverse:e.noop,data:o}))?i:"")},23:function(e,n,t,r,o){var i;return e.propertyIsEnumerable,null!=(i=t.if.call(null!=n?n:e.nullContext||{},null!=n?n.channel:n,{name:"if",hash:{},fn:e.program(24,o,0),inverse:e.noop,data:o}))?i:""},24:function(e,n,t,r,o){e.propertyIsEnumerable;var i,l=e.lambda,a=e.escapeExpression;return'\r\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||e.hooks.helperMissing).call(null!=n?n:e.nullContext||{},"channel",{name:"lang",hash:{},data:o}))+'</div>\r\n <p class="col-9">'+a(l(null!=(i=null!=n?n.channel:n)?i.name:i,n))+"</p>\r\n "},26:function(e,n,t,r,o){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||{},"broadcastDate",{name:"lang",hash:{},data:o}))+'</div>\r\n <p class="col-9">'+a(l(null!=(i=null!=n?n.options:n)?i.broadcastDate:i,n))+"</p>\r\n"},28:function(e,n,t,r,o){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:o}))+'</div>\r\n <p class="col-9">'+a(l(null!=(i=null!=n?n.options:n)?i.subtitles:i,n))+"</p>\r\n"},compiler:[8,">= 4.3.0"],main:function(e,n,t,r,o){e.propertyIsEnumerable;var i,l=null!=n?n:e.nullContext||{};return(null!=(i=t.if.call(l,null!=(i=null!=n?n.options:n)?i.showHeading:i,{name:"if",hash:{},fn:e.program(1,o,0),inverse:e.noop,data:o}))?i:"")+'<div class="row mb-0">\r\n'+(null!=(i=t.if.call(l,null!=n?n.name:n,{name:"if",hash:{},fn:e.program(3,o,0),inverse:e.noop,data:o}))?i:"")+"\r\n"+(null!=(i=t.if.call(l,null!=(i=null!=n?n.series:n)?i.name:i,{name:"if",hash:{},fn:e.program(5,o,0),inverse:e.noop,data:o}))?i:"")+"\r\n"+(null!=(i=t.if.call(l,null!=(i=null!=n?n.rating:n)?i.code:i,{name:"if",hash:{},fn:e.program(7,o,0),inverse:e.noop,data:o}))?i:"")+"\r\n"+(null!=(i=t.if.call(l,null!=n?n.description:n,{name:"if",hash:{},fn:e.program(9,o,0),inverse:e.noop,data:o}))?i:"")+"\r\n"+(null!=(i=t.if.call(l,null!=n?n.productionYear:n,{name:"if",hash:{},fn:e.program(11,o,0),inverse:e.noop,data:o}))?i:"")+"\r\n"+(null!=(i=t.if.call(l,null!=(i=null!=n?n.producers:n)?i.length:i,{name:"if",hash:{},fn:e.program(13,o,0),inverse:e.noop,data:o}))?i:"")+"\r\n"+(null!=(i=t.if.call(l,null!=(i=null!=n?n.directors:n)?i.length:i,{name:"if",hash:{},fn:e.program(16,o,0),inverse:e.noop,data:o}))?i:"")+"\r\n"+(null!=(i=t.if.call(l,null!=(i=null!=n?n.productionCompanies:n)?i.length:i,{name:"if",hash:{},fn:e.program(18,o,0),inverse:e.noop,data:o}))?i:"")+"\r\n"+(null!=(i=t.if.call(l,null!=(i=null!=n?n.distributors:n)?i.length:i,{name:"if",hash:{},fn:e.program(20,o,0),inverse:e.noop,data:o}))?i:"")+"\r\n"+(null!=(i=t.unless.call(l,null!=(i=null!=n?n.options:n)?i.hideBroadcastInfo:i,{name:"unless",hash:{},fn:e.program(22,o,0),inverse:e.noop,data:o}))?i:"")+"\r\n"+(null!=(i=t.if.call(l,null!=(i=null!=n?n.options:n)?i.subtitles:i,{name:"if",hash:{},fn:e.program(28,o,0),inverse:e.noop,data:o}))?i:"")+"</div>"},useData:!0})}}]);
|
|
1
|
+
(self.webpackChunk_clickview_library_editor=self.webpackChunk_clickview_library_editor||[]).push([[9976],{8371:function(e,n,t){"use strict";var r;t.d(n,{b:function(){return r}}),function(e){e.AU="cv-ap-southeast-1",e.NZ="cv-ap-southeast-2",e.UK="cv-eu-west-1",e.US="cv-na-west-1"}(r||(r={}))},5236:function(e,n,t){"use strict";t.r(n),t.d(n,{VideoDetailsView:function(){return Fe}});var r,o=t(39479),i=t.n(o),l=t(99748),a=t(21679),s=t(31647);!function(e){e.AU="content-ap-southeast-1",e.NZ="content-ap-southeast-2",e.UK="content-eu-west-1",e.SCOT="content-eu-west-2",e.US="content-na-central-1",e.GLOBAL="content-global"}(r||(r={}));var u=t(8371),c=t(59054),f=t(57085),p=t(23130),d=t(10386),h=t.n(d),m=t(90118),y=t.n(m),v={columnNames:"Hs0Sh"};function g(e){return g="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},g(e)}function b(e,n){if(!(e instanceof n))throw new TypeError("Cannot call a class as a function")}function w(e,n){for(var t=0;t<n.length;t++){var r=n[t];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,(void 0,o=function(e,n){if("object"!==g(e)||null===e)return e;var t=e[Symbol.toPrimitive];if(void 0!==t){var r=t.call(e,"string");if("object"!==g(r))return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}(r.key),"symbol"===g(o)?o:String(o)),r)}var o}function k(e,n,t){return n&&w(e.prototype,n),t&&w(e,t),Object.defineProperty(e,"prototype",{writable:!1}),e}function O(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&&E(e,n)}function E(e,n){return E=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(e,n){return e.__proto__=n,e},E(e,n)}function C(e){var n=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(e){return!1}}();return function(){var t,r=S(e);if(n){var o=S(this).constructor;t=Reflect.construct(r,arguments,o)}else t=r.apply(this,arguments);return function(e,n){if(n&&("object"===g(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)}(this,t)}}function S(e){return S=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(e){return e.__proto__||Object.getPrototypeOf(e)},S(e)}var P=function(e){O(t,e);var n=C(t);function t(){return b(this,t),n.apply(this,arguments)}return k(t,[{key:"name",get:function(){return"FieldComponent"}},{key:"template",get:function(){return h()}},{key:"className",get:function(){return"row mb-0"}},{key:"regions",value:function(){return{description:{el:".description-region",replaceElement:!0}}}},{key:"viewOptions",value:function(){return{styles:v}}},{key:"renderDescription",value:function(){this.model.get("value")&&this.showChildView("description",new p.Z({model:new s.Q.Hn({description:this.model.get("value")}),linkify:!0,size:p.t.Large,truncate:!0,allowExpand:!0}))}},{key:"onRender",value:function(){this.renderDescription()}}]),t}(s.Q.wA),x=function(e){O(t,e);var n=C(t);function t(){return b(this,t),n.apply(this,arguments)}return k(t,[{key:"name",get:function(){return"FieldsComponentCollection"}},{key:"childView",get:function(){return P}}]),t}(s.Q.$W),j=function(e){O(t,e);var n=C(t);function t(){return b(this,t),n.apply(this,arguments)}return k(t,[{key:"name",get:function(){return"FieldsComponent"}},{key:"template",get:function(){return y()}},{key:"className",get:function(){return"py-3 border-top"}},{key:"regions",value:function(){return{fields:{el:".fields-region",replaceElement:!0}}}},{key:"onRender",value:function(){this.showChildView("fields",new x({collection:this.collection}))}}]),t}(s.Q.wA),R=t(57857),I=t(61843),T=t(26835),V=t.n(T),_={licenseContainer:"eHMZ_",license:"I0iMx",era:"qgIXx"};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 L(e,n){for(var t=0;t<n.length;t++){var r=n[t];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,(void 0,o=function(e,n){if("object"!==D(e)||null===e)return e;var t=e[Symbol.toPrimitive];if(void 0!==t){var r=t.call(e,"string");if("object"!==D(r))return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}(r.key),"symbol"===D(o)?o:String(o)),r)}var o}function B(e,n){return B=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(e,n){return e.__proto__=n,e},B(e,n)}function U(e){return U=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(e){return e.__proto__||Object.getPrototypeOf(e)},U(e)}var N=function(e){!function(e,n){if("function"!=typeof n&&null!==n)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(n&&n.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),Object.defineProperty(e,"prototype",{writable:!1}),n&&B(e,n)}(a,e);var n,t,o,i,l=(o=a,i=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(e){return!1}}(),function(){var e,n=U(o);if(i){var t=U(this).constructor;e=Reflect.construct(n,arguments,t)}else e=n.apply(this,arguments);return 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)}(this,e)});function a(e){return function(e,n){if(!(e instanceof n))throw new TypeError("Cannot call a class as a function")}(this,a),l.call(this,e)}return n=a,(t=[{key:"name",get:function(){return"ScreenrightsDisclaimerComponent"}},{key:"template",get:function(){return V()}},{key:"lang",get:function(){return"shared.screenrightsDisclaimer"}},{key:"className",get:function(){return"py-3 border-top"}},{key:"getLogoClass",value:function(){return I.mU.isInContentRegion(this.options.contentRegion,r.UK)?_.era:""}},{key:"getLicenseText",value:function(){switch(this.options.contentRegion){case r.UK:return R.T.getPhrase(this.lang,"era");case r.AU:return R.T.getPhrase(this.lang,"copyrightAct");case r.NZ:default:return""}}},{key:"viewOptions",value:function(){var e=I.mU.isInContentRegion(this.options.contentRegion,r.AU);return{styles:_,logoClass:this.getLogoClass(),labelText:e?R.T.getPhrase(this.lang,"labelAu"):"",licenseText:this.getLicenseText()}}}])&&L(n.prototype,t),Object.defineProperty(n,"prototype",{writable:!1}),a}(s.Q.wA),M=t(33192),A=t(56210),H=t(37570),F=t(29457),K=t(89707),Q=t(7190),Z=t(95982),Y=t.n(Z),q={columnNames:"knYPJ",seriesContainer:"nBq4d",icon:"F9VfV",citationValues:"igMNQ"};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 G(e,n){for(var t=0;t<n.length;t++){var r=n[t];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,(void 0,o=function(e,n){if("object"!==z(e)||null===e)return e;var t=e[Symbol.toPrimitive];if(void 0!==t){var r=t.call(e,"string");if("object"!==z(r))return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}(r.key),"symbol"===z(o)?o:String(o)),r)}var o}function X(e,n){return X=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(e,n){return e.__proto__=n,e},X(e,n)}function J(e){return J=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(e){return e.__proto__||Object.getPrototypeOf(e)},J(e)}var $=function(e){!function(e,n){if("function"!=typeof n&&null!==n)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(n&&n.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),Object.defineProperty(e,"prototype",{writable:!1}),n&&X(e,n)}(a,e);var n,t,r,i,l=(r=a,i=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(e){return!1}}(),function(){var e,n=J(r);if(i){var t=J(this).constructor;e=Reflect.construct(n,arguments,t)}else e=n.apply(this,arguments);return function(e,n){if(n&&("object"===z(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)}(this,e)});function a(e){return function(e,n){if(!(e instanceof n))throw new TypeError("Cannot call a class as a function")}(this,a),l.call(this,e)}return n=a,(t=[{key:"name",get:function(){return"VideoBasicInfoComponent"}},{key:"template",get:function(){return Y()}},{key:"lang",get:function(){return"shared.videoBasicInfo"}},{key:"defaults",get:function(){return{truncateDescription:!0}}},{key:"behaviors",get:function(){return[{behaviorClass:A.H,selector:".tool-tip"}]}},{key:"regions",value:function(){return{description:{el:".description-region",replaceElement:!0,partialLoading:F.LP.VideoBasicInfo},series:{el:".series-region",replaceElement:!0}}}},{key:"getBroadcastDate",value:function(){return this.model.get("dateBroadcast")?M(this.model.get("dateBroadcast")).format(F.K4.FULL_YEAR):""}},{key:"getSeriesUrl",value:function(){if(this.options.externalSeriesLink&&this.model.series){var e="series/".concat(this.model.series.id);return K.k.getMainProductUrl(this.options.config,e,e)}}},{key:"renderSeries",value:function(){this.model.series&&this.model.series.get("name")&&this.showChildView("series",new H.O({model:this.model,highlight:!1,seriesUrl:this.getSeriesUrl(),styleUppercase:!1}))}},{key:"renderDescription",value:function(){if(this.model&&this.model.get("description")){var e=new p.Z({model:this.model,linkify:!0,size:p.t.Large,truncate:this.options.truncateDescription,allowExpand:!0});this.showChildView("description",e)}}},{key:"getSubtitleLanguage",value:function(){var e=this;return this.model.subtitles&&this.model.get("subtitles").length?o.uniq(this.model.get("subtitles").map((function(n){var t,r=n.get("language"),o=CVLanguages.getFullEnglishName(r);return(null===(t=n.get("metadata"))||void 0===t?void 0:t.autoGenerated)?R.T.getPhrase(e.lang,"autoGenerated",{name:o}):o}))).join(", "):""}},{key:"getCitationHeading",value:function(e,n,t){return this.model.get(e)?this.model.get(e).length>1?t:n:""}},{key:"getCitationHeadings",value:function(){return{productionCompaniesText:this.getCitationHeading(F.Zn.ProductionCompany,"Production Company","Production Companies"),producersText:this.getCitationHeading(F.Zn.Producer,"Producer","Producers"),disributorsText:this.getCitationHeading(F.Zn.Distributor,"Distributor","Distributors"),directorsText:this.getCitationHeading(F.Zn.Director,"Director","Directors")}}},{key:"viewOptions",value:function(){return Object.assign({styles:q,ratingClass:this.model.rating&&Q.uB.mapRatingToClass(this.model.rating.get("value")),broadcastDate:this.getBroadcastDate(),showHeading:this.options.showHeading,subtitles:this.getSubtitleLanguage(),hideBroadcastInfo:this.options.hideBroadcastInfo},this.getCitationHeadings())}},{key:"onRender",value:function(){this.renderSeries(),this.renderDescription()}}])&&G(n.prototype,t),Object.defineProperty(n,"prototype",{writable:!1}),a}(s.Q.wA),W=t(48090),ee=t(21251),ne=t(33800),te=t(3059),re=t(48404),oe=t(19226),ie=t(70693),le=t(68708),ae=t(70065),se=t(63791),ue=t(66882),ce=t(86745),fe=t.n(ce),pe={svgContainer:"qOHRG"};function de(e){return de="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},de(e)}function he(e,n){for(var t=0;t<n.length;t++){var r=n[t];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,(void 0,o=function(e,n){if("object"!==de(e)||null===e)return e;var t=e[Symbol.toPrimitive];if(void 0!==t){var r=t.call(e,"string");if("object"!==de(r))return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}(r.key),"symbol"===de(o)?o:String(o)),r)}var o}function me(e,n){return me=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(e,n){return e.__proto__=n,e},me(e,n)}function ye(e){return ye=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(e){return e.__proto__||Object.getPrototypeOf(e)},ye(e)}var ve=function(e){!function(e,n){if("function"!=typeof n&&null!==n)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(n&&n.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),Object.defineProperty(e,"prototype",{writable:!1}),n&&me(e,n)}(a,e);var n,t,r,i,l=(r=a,i=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(e){return!1}}(),function(){var e,n=ye(r);if(i){var t=ye(this).constructor;e=Reflect.construct(n,arguments,t)}else e=n.apply(this,arguments);return function(e,n){if(n&&("object"===de(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)}(this,e)});function a(e){return function(e,n){if(!(e instanceof n))throw new TypeError("Cannot call a class as a function")}(this,a),l.call(this,e)}return n=a,(t=[{key:"name",get:function(){return"VideoHeaderComponent"}},{key:"template",get:function(){return fe()}},{key:"className",get:function(){return"d-flex align-items-center justify-content-between px-3 pt-3 pb-2 w-100"}},{key:"behaviors",get:function(){return[{behaviorClass:A.H,selector:".".concat(pe.svgContainer)}]}},{key:"regions",value:function(){return{actions:{el:".video-actions-region",replaceElement:!1}}}},{key:"viewOptions",value:function(){return{styles:pe,lockSvg:se.Nj.getSvg(se.vn.Lock),hasRestriction:!o.isUndefined(this.model.get("restrictions")),restrictionMessage:I.S9.getRestrictionTooltipMessage(this.model)}}},{key:"onRender",value:function(){this.showChildView("actions",new ue.R({model:this.model,showActionLabels:!0,application:W.OV.LIBRARY_EDITOR,customerHasLocalCache:this.options.customerHasLocalCache,customerHasExchange:this.options.customerHasExchange,collectionIdentifier:this.options.collectionIdentifier,routeToFolderOnDelete:!0,analyticsOptions:{entity:ae.py.Video,location:ae.LZ.VideoDetailsHeader,descriptor:ae.yh.Single},config:this.options.config}))}}])&&he(n.prototype,t),Object.defineProperty(n,"prototype",{writable:!1}),a}(s.Q.wA),ge=t(77605),be=t(45837),we=t(7427),ke=t(61356),Oe=t(44391),Ee=t(26457),Ce=t(70042),Se=t(17349),Pe=t.n(Se),xe={interactive:"N1mrU"};function je(e){return je="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},je(e)}function Re(e,n){for(var t=0;t<n.length;t++){var r=n[t];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,(void 0,o=function(e,n){if("object"!==je(e)||null===e)return e;var t=e[Symbol.toPrimitive];if(void 0!==t){var r=t.call(e,"string");if("object"!==je(r))return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}(r.key),"symbol"===je(o)?o:String(o)),r)}var o}function Ie(e,n){return Ie=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(e,n){return e.__proto__=n,e},Ie(e,n)}function Te(e){return Te=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(e){return e.__proto__||Object.getPrototypeOf(e)},Te(e)}var Ve=function(e){!function(e,n){if("function"!=typeof n&&null!==n)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(n&&n.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),Object.defineProperty(e,"prototype",{writable:!1}),n&&Ie(e,n)}(l,e);var n,t,r,o,i=(r=l,o=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(e){return!1}}(),function(){var e,n=Te(r);if(o){var t=Te(this).constructor;e=Reflect.construct(n,arguments,t)}else e=n.apply(this,arguments);return function(e,n){if(n&&("object"===je(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)}(this,e)});function l(e){return function(e,n){if(!(e instanceof n))throw new TypeError("Cannot call a class as a function")}(this,l),i.call(this,e)}return n=l,(t=[{key:"initialize",value:function(){this.isClickViewContent=this.model&&!I.BK.canEditVideo(this.model)}},{key:"name",get:function(){return"VideoSidebarInfoComponent"}},{key:"lang",get:function(){return"libraryEditor.videoSidebarInfo"}},{key:"className",get:function(){return"py-3 h-100"}},{key:"template",get:function(){return Pe()}},{key:"regions",value:function(){return{preview:{el:".video-preview-region",replaceElement:!0},folders:{el:".folders-region",replaceElement:!0},tags:{el:".tags-region",replaceElement:!0}}}},{key:"requiredResources",get:function(){return{currentUser:oe.K.currentUser}}},{key:"renderVideoPreview",value:function(){this.showChildView("preview",new ke.c({model:this.model,webPlayerUrl:this.options.webPlayerUrl,channelName:this.options.channelName,analyticsOptions:{location:ae.LZ.VideoDetails},currentUser:this.options.currentUser,createViewKey:this.options.createViewKey,playerApiUrl:this.options.playerApiUrl}))}},{key:"renderTags",value:function(){this.model.get("tags")&&this.model.get("tags").length&&this.showChildView("tags",new Oe.K({collection:this.model.get("tags"),orientation:Ee.zM.Flex,behavior:Ee.Dm.Link}))}},{key:"renderFolders",value:function(){this.model.get("categories")&&this.model.get("categories").length&&this.showChildView("folders",new we.V({model:this.model,libraries:this.options.libraries,showFolder:!0,hideLabel:!0}))}},{key:"viewOptions",value:function(){return{styles:xe,interactive:Ce.u.isInteractive(this.model),duration:I.T.ToDisplayDuration(this.model.get("duration")),folders:this.model.categories&&this.model.categories.length,multipleFolders:this.model.categories.length>1,tags:this.model.get("tags")&&this.model.get("tags").length,isClickViewContent:this.isClickViewContent,hasCustomerTags:this.isClickViewContent&&I.BK.filterObjectsByOwnerType(this.model.tags,be.N.Customer,this.options.currentUser.get("customerId")).length}}},{key:"onRender",value:function(){this.renderVideoPreview(),this.renderTags(),this.renderFolders()}}])&&Re(n.prototype,t),Object.defineProperty(n,"prototype",{writable:!1}),l}(s.Q.wA),_e=t(53854),De=t(75535),Le=t(95061),Be=t(91865),Ue=t.n(Be);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 Me(e,n){for(var t=0;t<n.length;t++){var r=n[t];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,(void 0,o=function(e,n){if("object"!==Ne(e)||null===e)return e;var t=e[Symbol.toPrimitive];if(void 0!==t){var r=t.call(e,"string");if("object"!==Ne(r))return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}(r.key),"symbol"===Ne(o)?o:String(o)),r)}var o}function Ae(e,n){return Ae=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(e,n){return e.__proto__=n,e},Ae(e,n)}function He(e){return He=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(e){return e.__proto__||Object.getPrototypeOf(e)},He(e)}var Fe=function(e){!function(e,n){if("function"!=typeof n&&null!==n)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(n&&n.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),Object.defineProperty(e,"prototype",{writable:!1}),n&&Ae(e,n)}(h,e);var n,t,o,p,d=(o=h,p=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(e){return!1}}(),function(){var e,n=He(o);if(p){var t=He(this).constructor;e=Reflect.construct(n,arguments,t)}else e=n.apply(this,arguments);return function(e,n){if(n&&("object"===Ne(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)}(this,e)});function h(e){return function(e,n){if(!(e instanceof n))throw new TypeError("Cannot call a class as a function")}(this,h),d.call(this,e)}return n=h,t=[{key:"initialize",value:function(){this.bindListeners(),this.videoDataService=a.u.getInstance(ne.O.Video,this),this.videoMixinService=a.u.getInstance(ne.K.VideoMixin,this),this.localCacheDataService=a.u.getInstance(ne.O.LocalCache,this),this.playerDataService=a.u.getInstance(ne.O.Player,this),this.createViewKey=this.createViewKey.bind(this)}},{key:"bindListeners",value:function(){this.listenTo(W.Vk.VIDEO,"".concat(ee.M.VIDEOS,":").concat(this.options.videoId,":sync"),this.render),this.listenTo(W.Vk.VIDEO,"".concat(ee.M.VIDEOS,":").concat(this.options.videoId,":error"),this.onError),this.listenTo(W.Vk.VIDEO,"".concat(ee.M.RESTRICTED_OBJECTS,":").concat(this.options.videoId,":sync"),this.render),this.listenTo(W.Vk.VIDEO,"cache:cleared",this.render),this.listenTo(W.Vk.LIBRARY,"libraries:sync",this.render),this.listenTo(W.Vk.RESTRICTED_VIDEO,"".concat(ee.M.UPDATE_VIDEO_RESTRICTION,":sync"),this.updateRestriction),this.listenTo(W.Vk.RESTRICTED_VIDEO,"".concat(ee.M.RESTRICTED_OBJECTS,":").concat(this.options.videoId,":sync"),this.render),this.listenTo(W.Vk.LOCAL_CACHE,"".concat(ee.M.LOCAL_CACHE_DEVICES,":sync"),this.render),this.listenTo(W.Vk.LOCAL_CACHE,"".concat(ee.M.LOCAL_CACHE_DEVICES,":error"),this.onError)}},{key:"name",get:function(){return"VideoDetailsView"}},{key:"title",get:function(){return this.video&&this.video.get("name")}},{key:"channelName",get:function(){return"".concat(this.name).concat(this.cid)}},{key:"template",get:function(){return Ue()}},{key:"className",get:function(){return"container-fluid h-100 bg-white rounded"}},{key:"onError",value:function(e){switch(e.type){case l.h.NotFound:s.Q.Ry.throw(new De.l);break;case l.h.Forbidden:s.Q.Ry.throw(new _e.a)}}},{key:"regions",value:function(){return{breadcrumbs:{el:".breadcrumbs-region",replaceElement:!1,partialLoading:F.LP.Breadcrumbs},header:{replaceElement:!0,el:".video-header-region",partialLoading:F.LP.VideoHeader},main:{replaceElement:!0,el:".main-video-information-region",partialLoading:F.LP.VideoSidebarInfo},basic:{replaceElement:!1,el:".basic-video-information-region",partialLoading:F.LP.VideoBasicInfo},chapters:{replaceElement:!0,el:".video-chapters-region"},resources:{replaceElement:!0,el:".video-resources-region"},fields:{replaceElement:!0,el:".fields-region"},links:{replaceElement:!0,el:".video-links-region"},screenrightsDisclaimer:{replaceElement:!0,el:".screenright-disclaimer-region"}}}},{key:"updateRestriction",value:function(){this.videoMixinService.getAndMixinVideoRestriction(this.video)}},{key:"showLicense",value:function(){return!(!this.video||I.mU.isInContentRegion(this.currentUser.get("contentRegion"),r.NZ)||(!this.video.get("channel")||!this.video.get("channel").get("id"))&&!this.video.get("dateBroadcast"))}},{key:"createViewKey",value:function(e,n){this.playerDataService.createViewKey(e,c.f.MasterObject,n)}},{key:"getCustomLibraryFolders",value:function(){var e;if(!(null===(e=this.video)||void 0===e?void 0:e.categories)||!this.libraries)return[];var n=this.libraries.reduce((function(e,n){return e[n.id]=!0,e}),{});return this.video.categories.filter((function(e){var t=e.libraries.first().get("id");return n[t]}))}},{key:"renderBreadcrumbs",value:function(){this.folder&&this.video&&this.showChildView("breadcrumbs",new f.n({folder:this.folder,libraries:this.libraries,video:this.video,enableLastItemAppLink:!1}))}},{key:"renderVideoHeader",value:function(){this.showChildView("header",new ve({model:this.video,customerHasLocalCache:I.o8.customerHasLocalCache(this.devices,this.currentUser.get("customerId")),customerHasExchange:this.exchanges.any(),collectionIdentifier:this.folder&&new te.F7(this.folder.id,I.x$.GetCurrentSortType()),config:this.config}))}},{key:"renderSidebarInfo",value:function(){this.showChildView("main",new Ve({model:this.video,webPlayerUrl:this.config.get("webPlayerUrl"),channelName:this.channelName,currentUser:this.currentUser,createViewKey:this.createViewKey,playerApiUrl:this.config.get("playerApiUrl"),libraries:this.libraries}))}},{key:"renderBasicInfo",value:function(){this.video&&this.showChildView("basic",new $({model:this.video,showHeading:!0,config:this.config,hideBroadcastInfo:this.currentUser.get("instanceRegion")===u.b.US}))}},{key:"renderFields",value:function(){this.video.fields&&this.video.fields.any((function(e){return e.get("value")}))&&this.currentUser.get("instanceRegion")!==u.b.US&&this.showChildView("fields",new j({collection:this.video.fields}))}},{key:"renderChapters",value:function(){var e=this.video.chapters;e&&e.length>0&&this.showChildView("chapters",new ie.Q({channelName:this.channelName,collection:this.video.chapters}))}},{key:"renderResources",value:function(){var e=this.video.resources;e&&e.length>0&&this.showChildView("resources",new ge.c({model:this.video}))}},{key:"renderLinks",value:function(){var e=this.video.links;e&&e.length&&this.showChildView("links",new le.c({model:this.video,headingText:"Links"}))}},{key:"renderScreenrightsDisclaimer",value:function(){this.showLicense()&&this.showChildView("screenrightsDisclaimer",new N({contentRegion:this.currentUser.get("contentRegion")}))}},{key:"requiredResources",get:function(){return{config:re.p.config,currentUser:oe.K.currentUser,libraries:Le.T.libraries,exchanges:Le.T.exchanges}}},{key:"onBeforeRender",value:function(){return this.video=this.videoDataService.getVideo(this.options.videoId),this.video&&(this.folder=i().first(this.getCustomLibraryFolders())),this.devices=this.localCacheDataService.getDevices(this.currentUser.get("customerId")),!!this.video}},{key:"viewOptions",value:function(){if(this.video){var e=this.video,n=e.chapters,t=e.resources,r=e.fields,o=e.links;return{hasFolder:!!this.folder,hasChapters:n&&n.length,hasResources:t&&t.length,hasFields:r&&r.length,hasLinks:o&&o.length,showScreenrightsDisclaimer:this.showLicense()}}}},{key:"onRender",value:function(){this.renderBreadcrumbs(),this.renderVideoHeader(),this.renderSidebarInfo(),this.renderBasicInfo(),this.renderFields(),this.renderChapters(),this.renderResources(),this.renderLinks(),this.renderScreenrightsDisclaimer()}}],t&&Me(n.prototype,t),Object.defineProperty(n,"prototype",{writable:!1}),h}(s.Q.G7)},57085:function(e,n,t){"use strict";t.d(n,{n:function(){return C}});var r=t(31647),o=t(48090),i=t(22557),l=t(86363),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){if(!(e instanceof n))throw new TypeError("Cannot call a class as a function")}function c(e,n){for(var t=0;t<n.length;t++){var r=n[t];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,(void 0,o=function(e,n){if("object"!==s(e)||null===e)return e;var t=e[Symbol.toPrimitive];if(void 0!==t){var r=t.call(e,"string");if("object"!==s(r))return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}(r.key),"symbol"===s(o)?o:String(o)),r)}var o}function f(e,n,t){return n&&c(e.prototype,n),t&&c(e,t),Object.defineProperty(e,"prototype",{writable:!1}),e}function p(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)}function d(e,n){return d=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(e,n){return e.__proto__=n,e},d(e,n)}function h(e){var n=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(e){return!1}}();return function(){var t,r=m(e);if(n){var o=m(this).constructor;t=Reflect.construct(r,arguments,o)}else t=r.apply(this,arguments);return 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)}(this,t)}}function m(e){return m=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(e){return e.__proto__||Object.getPrototypeOf(e)},m(e)}var y=function(e){p(t,e);var n=h(t);function t(){return u(this,t),n.apply(this,arguments)}return f(t,[{key:"name",get:function(){return"BreadcrumbItemComponent"}},{key:"template",get:function(){return a()}},{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")}}}]),t}(r.Q.wA),v=function(e){p(t,e);var n=h(t);function t(){return u(this,t),n.apply(this,arguments)}return f(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 y}}]),t}(r.Q.$W),g=t(93933),b=t.n(g);function w(e){return w="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},w(e)}function k(e,n){for(var t=0;t<n.length;t++){var r=n[t];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,(void 0,o=function(e,n){if("object"!==w(e)||null===e)return e;var t=e[Symbol.toPrimitive];if(void 0!==t){var r=t.call(e,"string");if("object"!==w(r))return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}(r.key),"symbol"===w(o)?o:String(o)),r)}var o}function O(e,n){return O=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(e,n){return e.__proto__=n,e},O(e,n)}function E(e){return E=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(e){return e.__proto__||Object.getPrototypeOf(e)},E(e)}var C=function(e){!function(e,n){if("function"!=typeof n&&null!==n)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(n&&n.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),Object.defineProperty(e,"prototype",{writable:!1}),n&&O(e,n)}(u,e);var n,t,l,a,s=(l=u,a=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(e){return!1}}(),function(){var e,n=E(l);if(a){var t=E(this).constructor;e=Reflect.construct(n,arguments,t)}else e=n.apply(this,arguments);return function(e,n){if(n&&("object"===w(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)}(this,e)});function u(e){return function(e,n){if(!(e instanceof n))throw new TypeError("Cannot call a class as a function")}(this,u),s.call(this,e)}return n=u,(t=[{key:"initialize",value:function(){this.getBreadcrumbs()}},{key:"name",get:function(){return"BreadcrumbsComponent"}},{key:"template",get:function(){return b()}},{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 r.Q.FE([]);var n,t=this.options.folder;do{if(!t)break;if(n=i.P.getParent(t.id,this.options.libraries),this.breadcrumbCollection.add(this.getBreadcrumb(t,!!n),{at:0}),!n)break;t=n}while(n);this.options.video&&this.breadcrumbCollection.add({name:this.options.video.get("name"),appLink:{application:o.OV.LIBRARY_EDITOR,action:o.eX.LibraryEditor.VIDEO_DETAILS,args:[this.options.video.id]}}),this.options.customBreadcrumbs&&this.options.customBreadcrumbs.forEach((function(n){return e.breadcrumbCollection.add(n)})),this.breadcrumbCollection.length&&this.breadcrumbCollection.last().set("active",!this.options.enableLastItemAppLink)}},{key:"getBreadcrumb",value:function(e,n){var t=n?o.eX.LibraryEditor.FOLDER:o.eX.LibraryEditor.LIBRARY;return{name:e.get("name"),appLink:{application:o.OV.LIBRARY_EDITOR,action:t,args:[e.id]}}}},{key:"onRender",value:function(){var e=new v({collection:this.breadcrumbCollection});this.showChildView("breadcrumbs",e)}}])&&k(n.prototype,t),Object.defineProperty(n,"prototype",{writable:!1}),u}(r.Q.wA)},86745:function(e,n,t){var r=t(32227);e.exports=(r.default||r).template({1:function(e,n,t,r,o){e.propertyIsEnumerable;var i,l=e.lambda,a=e.escapeExpression;return' <span class="d-inline-block ms-2 '+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,r,o){e.propertyIsEnumerable;var i,l,a=null!=n?n:e.nullContext||{};return'<div class="d-inline-flex align-items-center">\n <h4 class="d-inline-block mb-0">'+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:o}):l)+"</h4>\n"+(null!=(i=t.if.call(a,null!=(i=null!=n?n.options:n)?i.hasRestriction:i,{name:"if",hash:{},fn:e.program(1,o,0),inverse:e.noop,data:o}))?i:"")+'</div>\n<div class="video-actions-region d-inline-block"></div>'},useData:!0})},17349:function(e,n,t){var r=t(32227);e.exports=(r.default||r).template({1:function(e,n,t,r,o){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:o}))+"</span>\n"},3:function(e,n,t,r,o){var i;return e.propertyIsEnumerable,' <div class="mt-3">\n <h5>'+e.escapeExpression((t.lang||n&&n.lang||e.hooks.helperMissing).call(null!=n?n:e.nullContext||{},"folders",{name:"lang",hash:{smartCount:null!=(i=null!=n?n.options:n)?i.folders:i},data:o}))+'</h5>\n <div class="folders-region"></div>\n </div>\n'},5:function(e,n,t,r,o){return e.propertyIsEnumerable,' <div class="mt-3">\n <h5>'+e.escapeExpression((t.lang||n&&n.lang||e.hooks.helperMissing).call(null!=n?n:e.nullContext||{},"tags",{name:"lang",hash:{},data:o}))+'</h5>\n <div class="tags-region"></div>\n </div>\n'},7:function(e,n,t,r,o){e.propertyIsEnumerable;var i,l=e.escapeExpression;return' <div class="mt-3">\n <h5>'+l((t.lang||n&&n.lang||e.hooks.helperMissing).call(null!=n?n:e.nullContext||{},"curriculumLinks",{name:"lang",hash:{},data:o}))+"</h5>\n <p>"+l(e.lambda(null!=(i=null!=n?n.options:n)?i.links:i,n))+"</p>\n </div>\n"},compiler:[8,">= 4.3.0"],main:function(e,n,t,r,o){e.propertyIsEnumerable;var i,l=null!=n?n:e.nullContext||{};return'<div class="border-end h-100 ps-2 pe-3">\n <div class="video-preview-region"></div>\n <div class="mt-3">\n'+(null!=(i=t.if.call(l,null!=(i=null!=n?n.options:n)?i.interactive:i,{name:"if",hash:{},fn:e.program(1,o,0),inverse:e.noop,data:o}))?i:"")+" </div>\n\n"+(null!=(i=t.if.call(l,null!=(i=null!=n?n.options:n)?i.folders:i,{name:"if",hash:{},fn:e.program(3,o,0),inverse:e.noop,data:o}))?i:"")+"\n"+(null!=(i=t.if.call(l,null!=(i=null!=n?n.options:n)?i.tags:i,{name:"if",hash:{},fn:e.program(5,o,0),inverse:e.noop,data:o}))?i:"")+"\n"+(null!=(i=t.if.call(l,null!=(i=null!=n?n.options:n)?i.links:i,{name:"if",hash:{},fn:e.program(7,o,0),inverse:e.noop,data:o}))?i:"")+"</div>"},useData:!0})},91865:function(e,n,t){var r=t(32227);e.exports=(r.default||r).template({1:function(e,n,t,r,o){return' <div class="fields-region"></div>\n'},3:function(e,n,t,r,o){return' <div class="video-chapters-region"></div>\n'},5:function(e,n,t,r,o){return' <div class="video-resources-region"></div>\n'},7:function(e,n,t,r,o){return' <div class="video-links-region"></div>\n'},9:function(e,n,t,r,o){return' <div class="screenright-disclaimer-region"></div>\n'},compiler:[8,">= 4.3.0"],main:function(e,n,t,r,o){e.propertyIsEnumerable;var i,l=null!=n?n:e.nullContext||{};return'<div class="row border-bottom">\n <div class="video-header-region"></div>\n\n <div class="px-3 pb-3">\n <div class="breadcrumbs-region"></div>\n </div>\n</div>\n\n<div class="row">\n <div class="col-4">\n <div class="main-video-information-region"></div>\n </div>\n <div class="col-8">\n <div class="basic-video-information-region py-3 pe-2"></div>\n'+(null!=(i=t.if.call(l,null!=(i=null!=n?n.options:n)?i.hasFields:i,{name:"if",hash:{},fn:e.program(1,o,0),inverse:e.noop,data:o}))?i:"")+(null!=(i=t.if.call(l,null!=(i=null!=n?n.options:n)?i.hasChapters:i,{name:"if",hash:{},fn:e.program(3,o,0),inverse:e.noop,data:o}))?i:"")+(null!=(i=t.if.call(l,null!=(i=null!=n?n.options:n)?i.hasResources:i,{name:"if",hash:{},fn:e.program(5,o,0),inverse:e.noop,data:o}))?i:"")+(null!=(i=t.if.call(l,null!=(i=null!=n?n.options:n)?i.hasLinks:i,{name:"if",hash:{},fn:e.program(7,o,0),inverse:e.noop,data:o}))?i:"")+(null!=(i=t.if.call(l,null!=(i=null!=n?n.options:n)?i.showScreenrightsDisclaimer:i,{name:"if",hash:{},fn:e.program(9,o,0),inverse:e.noop,data:o}))?i:"")+" </div>\n</div>"},useData:!0})},86363:function(e,n,t){var r=t(32227);e.exports=(r.default||r).template({1:function(e,n,t,r,o){var i;return e.propertyIsEnumerable,'<span class="fw-bolder">'+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:o}):i)+"</span>\n"},3:function(e,n,t,r,o){var i;return e.propertyIsEnumerable,"<a>"+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:o}):i)+"</a>\n"},compiler:[8,">= 4.3.0"],main:function(e,n,t,r,o){var i;return e.propertyIsEnumerable,null!=(i=t.if.call(null!=n?n:e.nullContext||{},null!=(i=null!=n?n.options:n)?i.isActive:i,{name:"if",hash:{},fn:e.program(1,o,0),inverse:e.program(3,o,0),data:o}))?i:""},useData:!0})},93933:function(e,n,t){var r=t(32227);e.exports=(r.default||r).template({compiler:[8,">= 4.3.0"],main:function(e,n,t,r,o){return'<nav class="breadcrumbs-region" aria-label="breadcrumb"></nav>'},useData:!0})},10386:function(e,n,t){var r=t(32227);e.exports=(r.default||r).template({compiler:[8,">= 4.3.0"],main:function(e,n,t,r,o){e.propertyIsEnumerable;var i,l,a=e.escapeExpression;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("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:o}):l)+'</div>\n<div class="col-9">\n <div class="description-region"></div>\n</div>'},useData:!0})},90118:function(e,n,t){var r=t(32227);e.exports=(r.default||r).template({compiler:[8,">= 4.3.0"],main:function(e,n,t,r,o){return'<h5 class="mb-0">Extra Information</h5>\n<div class="text-muted mb-3">This information is only visible to administrators and will not be searchable</div>\n<div class="fields-region"></div>'},useData:!0})},26835:function(e,n,t){var r=t(32227);e.exports=(r.default||r).template({compiler:[8,">= 4.3.0"],main:function(e,n,t,r,o){e.propertyIsEnumerable;var i,l=e.lambda,a=e.escapeExpression;return'<div class="d-inline-block '+a(l(null!=(i=null!=(i=null!=n?n.options:n)?i.styles:i)?i.licenseContainer:i,n))+'">\n <div class="'+a(l(null!=(i=null!=n?n.options:n)?i.logoClass:i,n))+'">'+a(l(null!=(i=null!=n?n.options:n)?i.labelText:i,n))+'</div>\n <p class="'+a(l(null!=(i=null!=(i=null!=n?n.options:n)?i.styles:i)?i.license:i,n))+' bg-white p-2 border box-shadow">\n '+(null!=(i=l(null!=(i=null!=n?n.options:n)?i.licenseText:i,n))?i:"")+"\n </p>\n</div>"},useData:!0})},95982:function(e,n,t){var r=t(32227);e.exports=(r.default||r).template({1:function(e,n,t,r,o){return e.propertyIsEnumerable,'<div class="position-relative">\n <h5 class="d-inline-block">'+e.escapeExpression((t.lang||n&&n.lang||e.hooks.helperMissing).call(null!=n?n:e.nullContext||{},"basicInfo",{name:"lang",hash:{},data:o}))+"</h5>\n</div>\n"},3:function(e,n,t,r,o){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,"videoTitle",{name:"lang",hash:{},data:o}))+'</div>\n <p class="col-9">'+a("function"==typeof(l=null!=(l=t.name||(null!=n?n.name:n))?l:u)?l.call(s,{name:"name",hash:{},data:o}):l)+"</p>\n"},5:function(e,n,t,r,o){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||{},"series",{name:"lang",hash:{},data:o}))+'</div>\n <div class="col-9 '+a(l(null!=(i=null!=(i=null!=n?n.options:n)?i.styles:i)?i.seriesContainer:i,n))+'"><div class="series-region"></div></div>\n'},7:function(e,n,t,r,o){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:o}))+'</div>\n <p class="col-9"><span class="p-1 badge text-white tool-tip '+a(l(null!=(i=null!=n?n.options:n)?i.ratingClass:i,n))+" "+a(l(null!=(i=null!=(i=null!=n?n.options:n)?i.styles:i)?i.rating: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></p>\n"},9:function(e,n,t,r,o){e.propertyIsEnumerable;var i,l=e.escapeExpression;return' <div 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||{},"description",{name:"lang",hash:{},data:o}))+'</div>\n <div class="col-9">\n <div class="description-region"></div>\n </div>\n'},11:function(e,n,t,r,o){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:o}))+'</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:o}):l)+"</p>\n"},13:function(e,n,t,r,o){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,"producers",{name:"lang",hash:{},data:o}))+'</div>\n <div class="col-9 '+a(l(null!=(i=null!=(i=null!=n?n.options:n)?i.styles:i)?i.citationValues:i,n))+'">\n <p>\n'+(null!=(i=t.each.call(s,null!=n?n.producers:n,{name:"each",hash:{},fn:e.program(14,o,0),inverse:e.noop,data:o}))?i:"")+" </p>\n </div>\n"},14:function(e,n,t,r,o){var i;return e.propertyIsEnumerable," <span>"+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:o}):i)+"</span>\n"},16:function(e,n,t,r,o){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,"directors",{name:"lang",hash:{},data:o}))+'</div>\n <div class="col-9 '+a(l(null!=(i=null!=(i=null!=n?n.options:n)?i.styles:i)?i.citationValues:i,n))+'">\n <p>\n'+(null!=(i=t.each.call(s,null!=n?n.directors:n,{name:"each",hash:{},fn:e.program(14,o,0),inverse:e.noop,data:o}))?i:"")+" </p>\n </div>\n"},18:function(e,n,t,r,o){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,"productionCompanies",{name:"lang",hash:{},data:o}))+'</div>\n <div class="col-9 '+a(l(null!=(i=null!=(i=null!=n?n.options:n)?i.styles:i)?i.citationValues:i,n))+'">\n <p>\n'+(null!=(i=t.each.call(s,null!=n?n.productionCompanies:n,{name:"each",hash:{},fn:e.program(14,o,0),inverse:e.noop,data:o}))?i:"")+" </p>\n </div>\n"},20:function(e,n,t,r,o){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,"distributors",{name:"lang",hash:{},data:o}))+'</div>\n <div class="col-9 '+a(l(null!=(i=null!=(i=null!=n?n.options:n)?i.styles:i)?i.citationValues:i,n))+'">\n <p>\n'+(null!=(i=t.each.call(s,null!=n?n.distributors:n,{name:"each",hash:{},fn:e.program(14,o,0),inverse:e.noop,data:o}))?i:"")+" </p>\n </div>\n"},22:function(e,n,t,r,o){e.propertyIsEnumerable;var i,l=null!=n?n:e.nullContext||{};return" "+(null!=(i=t.if.call(l,null!=(i=null!=n?n.channel:n)?i.name:i,{name:"if",hash:{},fn:e.program(23,o,0),inverse:e.noop,data:o}))?i:"")+"\n\n"+(null!=(i=t.if.call(l,null!=(i=null!=n?n.options:n)?i.broadcastDate:i,{name:"if",hash:{},fn:e.program(26,o,0),inverse:e.noop,data:o}))?i:"")},23:function(e,n,t,r,o){var i;return e.propertyIsEnumerable,null!=(i=t.if.call(null!=n?n:e.nullContext||{},null!=n?n.channel:n,{name:"if",hash:{},fn:e.program(24,o,0),inverse:e.noop,data:o}))?i:""},24:function(e,n,t,r,o){e.propertyIsEnumerable;var i,l=e.lambda,a=e.escapeExpression;return'\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||e.hooks.helperMissing).call(null!=n?n:e.nullContext||{},"channel",{name:"lang",hash:{},data:o}))+'</div>\n <p class="col-9">'+a(l(null!=(i=null!=n?n.channel:n)?i.name:i,n))+"</p>\n "},26:function(e,n,t,r,o){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||{},"broadcastDate",{name:"lang",hash:{},data:o}))+'</div>\n <p class="col-9">'+a(l(null!=(i=null!=n?n.options:n)?i.broadcastDate:i,n))+"</p>\n"},28:function(e,n,t,r,o){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:o}))+'</div>\n <p class="col-9">'+a(l(null!=(i=null!=n?n.options:n)?i.subtitles:i,n))+"</p>\n"},compiler:[8,">= 4.3.0"],main:function(e,n,t,r,o){e.propertyIsEnumerable;var i,l=null!=n?n:e.nullContext||{};return(null!=(i=t.if.call(l,null!=(i=null!=n?n.options:n)?i.showHeading:i,{name:"if",hash:{},fn:e.program(1,o,0),inverse:e.noop,data:o}))?i:"")+'<div class="row mb-0">\n'+(null!=(i=t.if.call(l,null!=n?n.name:n,{name:"if",hash:{},fn:e.program(3,o,0),inverse:e.noop,data:o}))?i:"")+"\n"+(null!=(i=t.if.call(l,null!=(i=null!=n?n.series:n)?i.name:i,{name:"if",hash:{},fn:e.program(5,o,0),inverse:e.noop,data:o}))?i:"")+"\n"+(null!=(i=t.if.call(l,null!=(i=null!=n?n.rating:n)?i.code:i,{name:"if",hash:{},fn:e.program(7,o,0),inverse:e.noop,data:o}))?i:"")+"\n"+(null!=(i=t.if.call(l,null!=n?n.description:n,{name:"if",hash:{},fn:e.program(9,o,0),inverse:e.noop,data:o}))?i:"")+"\n"+(null!=(i=t.if.call(l,null!=n?n.productionYear:n,{name:"if",hash:{},fn:e.program(11,o,0),inverse:e.noop,data:o}))?i:"")+"\n"+(null!=(i=t.if.call(l,null!=(i=null!=n?n.producers:n)?i.length:i,{name:"if",hash:{},fn:e.program(13,o,0),inverse:e.noop,data:o}))?i:"")+"\n"+(null!=(i=t.if.call(l,null!=(i=null!=n?n.directors:n)?i.length:i,{name:"if",hash:{},fn:e.program(16,o,0),inverse:e.noop,data:o}))?i:"")+"\n"+(null!=(i=t.if.call(l,null!=(i=null!=n?n.productionCompanies:n)?i.length:i,{name:"if",hash:{},fn:e.program(18,o,0),inverse:e.noop,data:o}))?i:"")+"\n"+(null!=(i=t.if.call(l,null!=(i=null!=n?n.distributors:n)?i.length:i,{name:"if",hash:{},fn:e.program(20,o,0),inverse:e.noop,data:o}))?i:"")+"\n"+(null!=(i=t.unless.call(l,null!=(i=null!=n?n.options:n)?i.hideBroadcastInfo:i,{name:"unless",hash:{},fn:e.program(22,o,0),inverse:e.noop,data:o}))?i:"")+"\n"+(null!=(i=t.if.call(l,null!=(i=null!=n?n.options:n)?i.subtitles:i,{name:"if",hash:{},fn:e.program(28,o,0),inverse:e.noop,data:o}))?i:"")+"</div>"},useData:!0})}}]);
|