@clickview/library-editor 1.5.0 → 1.5.1-rc.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/bundles.json +3 -3
- package/dist/css/1086-library-editor-968a46a22b.chunk.css +8 -0
- package/dist/css/1409-library-editor-c2f01466c5.chunk.css +2 -0
- package/dist/css/1832-library-editor-761fcb8755.chunk.css +2 -0
- package/dist/css/243-library-editor-ef57ff2380.chunk.css +4 -0
- package/dist/css/2526-library-editor-4e1576c40b.chunk.css +32 -0
- package/dist/css/2692-library-editor-968a46a22b.chunk.css +8 -0
- package/dist/css/3427-library-editor-d2c6b60f4b.chunk.css +18 -0
- package/dist/css/3803-library-editor-780ab340b7.chunk.css +28 -0
- package/dist/css/409-library-editor-38562d76cd.chunk.css +10 -0
- package/dist/css/4198-library-editor-b1bd4cf413.chunk.css +2 -0
- package/dist/css/4269-library-editor-deb40a91d3.chunk.css +14 -0
- package/dist/css/435-library-editor-cc1aed9a29.chunk.css +10 -0
- package/dist/css/4353-library-editor-ab9b6e56f4.chunk.css +8 -0
- package/dist/css/4463-library-editor-31ad107af8.chunk.css +30 -0
- package/dist/css/469-library-editor-e4fb95eadc.chunk.css +80 -0
- package/dist/css/4810-library-editor-f78ee0ac30.chunk.css +24 -0
- package/dist/css/4860-library-editor-d2f7f18ab7.chunk.css +2 -0
- package/dist/css/5047-library-editor-616fd087e9.chunk.css +22 -0
- package/dist/css/514-library-editor-58793ed69e.chunk.css +2 -0
- package/dist/css/5248-library-editor-673111a906.chunk.css +30 -0
- package/dist/css/5356-library-editor-84c7439a3a.chunk.css +32 -0
- package/dist/css/5624-library-editor-6d43685081.chunk.css +14 -0
- package/dist/css/5747-library-editor-a3e5ded646.chunk.css +2 -0
- package/dist/css/6093-library-editor-07e26e7dd0.chunk.css +2 -0
- package/dist/css/7053-library-editor-96752915ef.chunk.css +2 -0
- package/dist/css/8080-library-editor-fbbbd8b68b.chunk.css +14 -0
- package/dist/css/8343-library-editor-ecb0d73baf.chunk.css +20 -0
- package/dist/css/8420-library-editor-f8846ec2c2.chunk.css +40 -0
- package/dist/css/8762-library-editor-968a46a22b.chunk.css +8 -0
- package/dist/css/8906-library-editor-968a46a22b.chunk.css +8 -0
- package/dist/css/9298-library-editor-8876725368.chunk.css +12 -0
- package/dist/css/9383-library-editor-33aa5f52c7.chunk.css +32 -0
- package/dist/css/9695-library-editor-a995f8ddfd.chunk.css +2 -0
- package/dist/css/library-editor-app-80e343eeaa.css +121 -0
- package/dist/en.json +1 -1
- package/dist/scripts/1010-187155c696.chunk.js +1 -0
- package/dist/scripts/1086-f133353b06.chunk.js +1 -0
- package/dist/scripts/1409-5012f7ef74.chunk.js +1 -0
- package/dist/scripts/1832-a7aa0ecef5.chunk.js +1 -0
- package/dist/scripts/1934-3b82bbbc99.chunk.js +2 -0
- package/dist/scripts/1934-3b82bbbc99.chunk.js.LICENSE.txt +9 -0
- package/dist/scripts/2098-ad8754cfb1.chunk.js +1 -0
- package/dist/scripts/243-395c50486d.chunk.js +1 -0
- package/dist/scripts/2526-3655c9227a.chunk.js +1 -0
- package/dist/scripts/259-ee63296af8.chunk.js +1 -0
- package/dist/scripts/2692-68c581fa09.chunk.js +1 -0
- package/dist/scripts/2733-953a077283.chunk.js +1 -0
- package/dist/scripts/2803-3d9658a39f.chunk.js +1 -0
- package/dist/scripts/2888-dcb3f9554c.chunk.js +1 -0
- package/dist/scripts/299-8561db699d.chunk.js +1 -0
- package/dist/scripts/3019-8c7fdaf749.chunk.js +1 -0
- package/dist/scripts/3096-81108d029e.chunk.js +1 -0
- package/dist/scripts/3122-ef94efcef2.chunk.js +1 -0
- package/dist/scripts/3400-3a56ad67d9.chunk.js +1 -0
- package/dist/scripts/3427-c1019a852e.chunk.js +1 -0
- package/dist/scripts/3639-0889b8796c.chunk.js +1 -0
- package/dist/scripts/3763-66fb4f7ab9.chunk.js +1 -0
- package/dist/scripts/3803-ecb9aa097f.chunk.js +1 -0
- package/dist/scripts/400-1e23b44b3d.chunk.js +1 -0
- package/dist/scripts/409-7b2d72c33c.chunk.js +1 -0
- package/dist/scripts/4198-f2de3da811.chunk.js +1 -0
- package/dist/scripts/4201-a43528d101.chunk.js +1 -0
- package/dist/scripts/4245-85613e8ec8.chunk.js +1 -0
- package/dist/scripts/4269-6f9e82e570.chunk.js +1 -0
- package/dist/scripts/435-aacf684517.chunk.js +1 -0
- package/dist/scripts/4353-ef2f79f90d.chunk.js +1 -0
- package/dist/scripts/4463-71fd94bfb3.chunk.js +1 -0
- package/dist/scripts/4591-a6e8818803.chunk.js +1 -0
- package/dist/scripts/469-a5b931f910.chunk.js +2 -0
- package/dist/scripts/469-a5b931f910.chunk.js.LICENSE.txt +1 -0
- package/dist/scripts/4810-2d812b1847.chunk.js +1 -0
- package/dist/scripts/4860-1db82c2cda.chunk.js +1 -0
- package/dist/scripts/4885-0de9aceda4.chunk.js +1 -0
- package/dist/scripts/5047-4ca0d480d2.chunk.js +1 -0
- package/dist/scripts/514-e2257e58bd.chunk.js +1 -0
- package/dist/scripts/5248-b1f7b8d9fd.chunk.js +1 -0
- package/dist/scripts/5356-7abbf73447.chunk.js +1 -0
- package/dist/scripts/5412-6a3117fa77.chunk.js +1 -0
- package/dist/scripts/5418-94a6b15be1.chunk.js +1 -0
- package/dist/scripts/546-9f0093aa66.chunk.js +1 -0
- package/dist/scripts/5624-8aa90b5f57.chunk.js +1 -0
- package/dist/scripts/5747-9a64e93671.chunk.js +1 -0
- package/dist/scripts/6093-c2088a505f.chunk.js +1 -0
- package/dist/scripts/6420-218dd42b2a.chunk.js +1 -0
- package/dist/scripts/6774-de07d107a4.chunk.js +1 -0
- package/dist/scripts/6788-f6b0a8cc33.chunk.js +1 -0
- package/dist/scripts/693-26dce53392.chunk.js +1 -0
- package/dist/scripts/7053-4c386601c3.chunk.js +1 -0
- package/dist/scripts/7190-6574587b99.chunk.js +1 -0
- package/dist/scripts/7251-a247842ccb.chunk.js +2 -0
- package/dist/scripts/7251-a247842ccb.chunk.js.LICENSE.txt +13 -0
- package/dist/scripts/733-3dc29f5775.chunk.js +1 -0
- package/dist/scripts/8074-2f29dcbf11.chunk.js +1 -0
- package/dist/scripts/8080-34a458a81c.chunk.js +1 -0
- package/dist/scripts/8343-5ea346ff5b.chunk.js +1 -0
- package/dist/scripts/8362-a0a23ba68a.chunk.js +1 -0
- package/dist/scripts/8420-1a5b232743.chunk.js +1 -0
- package/dist/scripts/8726-7e3e7b6535.chunk.js +1 -0
- package/dist/scripts/8727-64c035a56f.chunk.js +1 -0
- package/dist/scripts/8762-02bdc15632.chunk.js +1 -0
- package/dist/scripts/8906-9920a2a83d.chunk.js +1 -0
- package/dist/scripts/9167-a9d920d75e.chunk.js +1 -0
- package/dist/scripts/9231-5de6f18fae.chunk.js +2 -0
- package/dist/scripts/9231-5de6f18fae.chunk.js.LICENSE.txt +17 -0
- package/dist/scripts/9298-8438cbb300.chunk.js +1 -0
- package/dist/scripts/9355-3a23e503c3.chunk.js +1 -0
- package/dist/scripts/9357-f0b8bc48ad.chunk.js +1 -0
- package/dist/scripts/9383-69a59536d6.chunk.js +1 -0
- package/dist/scripts/9592-de190aca67.chunk.js +1 -0
- package/dist/scripts/9695-dd63b52766.chunk.js +1 -0
- package/dist/scripts/bundle-60541f84c7.min.js +2 -0
- package/dist/scripts/bundle-60541f84c7.min.js.LICENSE.txt +1 -0
- package/dist/scripts/polyfills-c62d0e7aec.min.js +1 -0
- package/package.json +3 -25
- package/typings/libs/google-api.d.ts +5 -0
- package/typings/libs/microsoft-teams.d.ts +3 -0
- package/typings/libs/videojs-contrib-quality-levels.d.ts +31 -0
- package/dist/css/0-library-editor-c3083c7c46.chunk.css +0 -6
- package/dist/css/1-library-editor-9a899a1d1d.chunk.css +0 -2
- package/dist/css/10-library-editor-53c28be130.chunk.css +0 -2
- package/dist/css/12-library-editor-7f17ad1c90.chunk.css +0 -24
- package/dist/css/13-library-editor-911b8069ae.chunk.css +0 -14
- package/dist/css/14-library-editor-f507c0ef52.chunk.css +0 -14
- package/dist/css/15-library-editor-6fd06eea2a.chunk.css +0 -4
- package/dist/css/16-library-editor-6b9ba08288.chunk.css +0 -4
- package/dist/css/17-library-editor-b08725a10e.chunk.css +0 -2
- package/dist/css/18-library-editor-89ad109c63.chunk.css +0 -2
- package/dist/css/22-library-editor-2bd52b5a32.chunk.css +0 -34
- package/dist/css/23-library-editor-a7633bece5.chunk.css +0 -26
- package/dist/css/24-library-editor-459b106aec.chunk.css +0 -24
- package/dist/css/25-library-editor-33acb75c24.chunk.css +0 -18
- package/dist/css/26-library-editor-b180014922.chunk.css +0 -18
- package/dist/css/27-library-editor-4c64aed388.chunk.css +0 -16
- package/dist/css/28-library-editor-b72d0e2d36.chunk.css +0 -10
- package/dist/css/29-library-editor-de55d150ef.chunk.css +0 -10
- package/dist/css/3-library-editor-904319558a.chunk.css +0 -4
- package/dist/css/30-library-editor-b0e16f882d.chunk.css +0 -8
- package/dist/css/31-library-editor-10f54d8a75.chunk.css +0 -8
- package/dist/css/32-library-editor-9dfe56513f.chunk.css +0 -10
- package/dist/css/36-library-editor-d18b8a3619.chunk.css +0 -4
- package/dist/css/37-library-editor-8b225d15f4.chunk.css +0 -4
- package/dist/css/38-library-editor-b08725a10e.chunk.css +0 -2
- package/dist/css/39-library-editor-b08725a10e.chunk.css +0 -2
- package/dist/css/40-library-editor-9a2d011500.chunk.css +0 -4
- package/dist/css/41-library-editor-234f39ca94.chunk.css +0 -4
- package/dist/css/42-library-editor-593c0084b4.chunk.css +0 -4
- package/dist/css/43-library-editor-ca20e9d127.chunk.css +0 -2
- package/dist/css/44-library-editor-aa3e9bea9a.chunk.css +0 -2
- package/dist/css/45-library-editor-7b1cd4a5cc.chunk.css +0 -2
- package/dist/css/46-library-editor-f1820aeeff.chunk.css +0 -2
- package/dist/css/47-library-editor-547abc7492.chunk.css +0 -2
- package/dist/css/48-library-editor-3f6fb7f3ab.chunk.css +0 -2
- package/dist/css/49-library-editor-467e156ba3.chunk.css +0 -2
- package/dist/css/5-library-editor-24603066ed.chunk.css +0 -6
- package/dist/css/51-library-editor-7aca18778d.chunk.css +0 -2
- package/dist/css/52-library-editor-81c5aced1f.chunk.css +0 -2
- package/dist/css/56-library-editor-d3b8bb68f9.chunk.css +0 -2
- package/dist/css/57-library-editor-94a8c4e7fa.chunk.css +0 -2
- package/dist/css/58-library-editor-61808b02a0.chunk.css +0 -2
- package/dist/css/59-library-editor-c49b3847df.chunk.css +0 -2
- package/dist/css/6-library-editor-d96af27be1.chunk.css +0 -14
- package/dist/css/60-library-editor-8f5e04b64a.chunk.css +0 -2
- package/dist/css/61-library-editor-b64f6f3e74.chunk.css +0 -2
- package/dist/css/63-library-editor-7f123672b2.chunk.css +0 -2
- package/dist/css/64-library-editor-61e4c24a7b.chunk.css +0 -2
- package/dist/css/7-library-editor-b08725a10e.chunk.css +0 -2
- package/dist/css/8-library-editor-eb68c1df75.chunk.css +0 -2
- package/dist/css/9-library-editor-fec6984a64.chunk.css +0 -4
- package/dist/css/library-editor-app-bc12f8ea16.css +0 -135
- package/dist/scripts/0-01f04d6d56.chunk.js +0 -1
- package/dist/scripts/1-55d605c2c4.chunk.js +0 -1
- package/dist/scripts/10-3f2a274869.chunk.js +0 -1
- package/dist/scripts/11-f164d2f418.chunk.js +0 -11
- package/dist/scripts/12-c1693e5672.chunk.js +0 -1
- package/dist/scripts/13-c2b9880d80.chunk.js +0 -1
- package/dist/scripts/14-a8bbfcc005.chunk.js +0 -1
- package/dist/scripts/15-46f82eb565.chunk.js +0 -1
- package/dist/scripts/16-b2e034d835.chunk.js +0 -1
- package/dist/scripts/17-cf12ff6692.chunk.js +0 -1
- package/dist/scripts/18-3d7b2bb66b.chunk.js +0 -1
- package/dist/scripts/19-4050e84d9e.chunk.js +0 -1
- package/dist/scripts/2-cd7f1d10b5.chunk.js +0 -1
- package/dist/scripts/22-10eeb6ed95.chunk.js +0 -1
- package/dist/scripts/23-3176524b2e.chunk.js +0 -1
- package/dist/scripts/24-2620726cc2.chunk.js +0 -1
- package/dist/scripts/25-4277b864b4.chunk.js +0 -1
- package/dist/scripts/26-29a13a6b02.chunk.js +0 -1
- package/dist/scripts/27-66f129aade.chunk.js +0 -1
- package/dist/scripts/28-2cb1321628.chunk.js +0 -1
- package/dist/scripts/29-7d3e020b57.chunk.js +0 -1
- package/dist/scripts/3-408b6c2e20.chunk.js +0 -1
- package/dist/scripts/30-59dc5e292e.chunk.js +0 -1
- package/dist/scripts/31-e5be7f6d55.chunk.js +0 -1
- package/dist/scripts/32-9d14a73828.chunk.js +0 -1
- package/dist/scripts/33-2b7afd675e.chunk.js +0 -1
- package/dist/scripts/34-3449671540.chunk.js +0 -1
- package/dist/scripts/35-a553d5a148.chunk.js +0 -1
- package/dist/scripts/36-e494df0f54.chunk.js +0 -1
- package/dist/scripts/37-4f2ae73dc5.chunk.js +0 -1
- package/dist/scripts/38-a569e85303.chunk.js +0 -1
- package/dist/scripts/39-04168942c9.chunk.js +0 -1
- package/dist/scripts/4-512c8f05c3.chunk.js +0 -1
- package/dist/scripts/40-203241bd8d.chunk.js +0 -1
- package/dist/scripts/41-5d00db5a16.chunk.js +0 -1
- package/dist/scripts/42-493f93fd61.chunk.js +0 -1
- package/dist/scripts/43-f03b40f6bc.chunk.js +0 -1
- package/dist/scripts/44-cdca04fbae.chunk.js +0 -1
- package/dist/scripts/45-2f3e679889.chunk.js +0 -1
- package/dist/scripts/46-af1a164c00.chunk.js +0 -1
- package/dist/scripts/47-bd07b4acee.chunk.js +0 -1
- package/dist/scripts/48-f709ce0290.chunk.js +0 -1
- package/dist/scripts/49-dafac4cd90.chunk.js +0 -1
- package/dist/scripts/5-706a90d50a.chunk.js +0 -1
- package/dist/scripts/50-9d66026f2b.chunk.js +0 -1
- package/dist/scripts/51-f37ca8fa1b.chunk.js +0 -1
- package/dist/scripts/52-d1d8bedaad.chunk.js +0 -1
- package/dist/scripts/53-a42f975523.chunk.js +0 -1
- package/dist/scripts/54-d02dcc88dd.chunk.js +0 -1
- package/dist/scripts/55-37223f5e6c.chunk.js +0 -1
- package/dist/scripts/56-a90ebf7e95.chunk.js +0 -1
- package/dist/scripts/57-952cbdd523.chunk.js +0 -1
- package/dist/scripts/58-4d4d2ab11c.chunk.js +0 -1
- package/dist/scripts/59-6ce8d22854.chunk.js +0 -1
- package/dist/scripts/6-90ce8bfc8e.chunk.js +0 -1
- package/dist/scripts/60-18494da9d7.chunk.js +0 -1
- package/dist/scripts/61-86685720a1.chunk.js +0 -1
- package/dist/scripts/62-96300609c4.chunk.js +0 -1
- package/dist/scripts/63-5cf8bf730e.chunk.js +0 -1
- package/dist/scripts/64-a9e7449778.chunk.js +0 -1
- package/dist/scripts/65-55bda72c96.chunk.js +0 -1
- package/dist/scripts/66-55a1693f05.chunk.js +0 -1
- package/dist/scripts/67-86aac165f9.chunk.js +0 -1
- package/dist/scripts/68-fed6d09e61.chunk.js +0 -1
- package/dist/scripts/69-3ae70614ff.chunk.js +0 -1
- package/dist/scripts/7-1dc25bf167.chunk.js +0 -1
- package/dist/scripts/70-a06f10c030.chunk.js +0 -1
- package/dist/scripts/71-879b44e721.chunk.js +0 -1
- package/dist/scripts/72-68e8c56940.chunk.js +0 -1
- package/dist/scripts/73-2e1903d7ed.chunk.js +0 -1
- package/dist/scripts/74-8e2e1cb7a9.chunk.js +0 -1
- package/dist/scripts/8-02b96935fe.chunk.js +0 -1
- package/dist/scripts/9-ae30afaedb.chunk.js +0 -1
- package/dist/scripts/bundle-dec56a0065.min.js +0 -10
- package/dist/scripts/polyfills-0fbc27cd8a.min.js +0 -1
|
@@ -1 +0,0 @@
|
|
|
1
|
-
(window.webpackJsonp_clickview_library_editor=window.webpackJsonp_clickview_library_editor||[]).push([[26],{1052:function(e,n,t){"use strict";var o,r;t.d(n,"b",(function(){return o})),t.d(n,"a",(function(){return r})),function(e){e[e.Base=0]="Base",e[e.AwaitingReview=1]="AwaitingReview",e[e.PastReleases=2]="PastReleases",e[e.VideoAccess=3]="VideoAccess",e[e.ProcessingVideo=4]="ProcessingVideo",e[e.Draggable=5]="Draggable",e[e.Search=6]="Search"}(o||(o={})),function(e){e.Checkbox="checkbox",e.Thumbnail="thumbnail",e.Metadata="metadata",e.VideoActions="videoActions",e.VideoInfo="videoInfo"}(r||(r={}))},1053:function(e,n,t){e.exports={lock:"_25RMJ",svgContainer:"_1k8KB"}},1054:function(e,n,t){e.exports={dragItem:"_2TIZ7",svgContainer:"_3JzEU",dragText:"_1Kdwj"}},1055:function(e,n,t){var o=t(10);e.exports=(o.default||o).template({compiler:[8,">= 4.3.0"],main:function(e,n,t,o,r){e.propertyIsEnumerable;var i,l=e.lambda,a=e.escapeExpression;return'<span class="'+a(l(null!=(i=null!=(i=null!=n?n.options:n)?i.styles:i)?i.svgContainer:i,n))+' mr-2">'+(null!=(i=l(null!=(i=null!=n?n.options:n)?i.svg:i,n))?i:"")+'</span>\r\n<span class="'+a(l(null!=(i=null!=(i=null!=n?n.options:n)?i.styles:i)?i.dragText:i,n))+'">'+a(l(null!=(i=null!=n?n.options:n)?i.text:i,n))+"</span>"},useData:!0})},1063:function(e,n,t){e.exports={actions:"_34Z19",showPreview:"cZAmH"}},1066:function(e,n,t){var o=t(10);e.exports=(o.default||o).template({1:function(e,n,t,o,r){return" cursor-pointer"},3:function(e,n,t,o,r){return"checked"},5:function(e,n,t,o,r){return"disabled"},compiler:[8,">= 4.3.0"],main:function(e,n,t,o,r){e.propertyIsEnumerable;var i,l=e.lambda,a=e.escapeExpression,s=null!=n?n:e.nullContext||{};return'<div class="custom-control custom-checkbox '+a(l(null!=(i=null!=n?n.options:n)?i.checkboxClassName:i,n))+'">\r\n <input name="checkbox-'+a(l(null!=(i=null!=n?n.options:n)?i.id:i,n))+'" id="checkbox-'+a(l(null!=(i=null!=n?n.options:n)?i.id:i,n))+'" type="checkbox" class="custom-control-input'+(null!=(i=t.unless.call(s,null!=(i=null!=n?n.options:n)?i.disabled:i,{name:"unless",hash:{},fn:e.program(1,r,0),inverse:e.noop,data:r}))?i:"")+'" '+(null!=(i=t.if.call(s,null!=(i=null!=n?n.options:n)?i.checked:i,{name:"if",hash:{},fn:e.program(3,r,0),inverse:e.noop,data:r}))?i:"")+" "+(null!=(i=t.if.call(s,null!=(i=null!=n?n.options:n)?i.disabled:i,{name:"if",hash:{},fn:e.program(5,r,0),inverse:e.noop,data:r}))?i:"")+' />\r\n <label class="custom-control-label'+(null!=(i=t.unless.call(s,null!=(i=null!=n?n.options:n)?i.disabled:i,{name:"unless",hash:{},fn:e.program(1,r,0),inverse:e.noop,data:r}))?i:"")+'" for="checkbox-'+a(l(null!=(i=null!=n?n.options:n)?i.id:i,n))+'"> </label>\r\n</div>'},useData:!0})},1068:function(e,n,t){"use strict";var o=t(1054),r=t.n(o),i=t(1055),l=t.n(i);function a(e){return(a="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}function s(e,n){for(var t=0;t<n.length;t++){var o=n[t];o.enumerable=o.enumerable||!1,o.configurable=!0,"value"in o&&(o.writable=!0),Object.defineProperty(e,o.key,o)}}function c(e,n){return(c=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(e,n){return e.__proto__=n,e})(e,n)}function u(e){var n=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(e){return!1}}();return function(){var t,o=f(e);if(n){var r=f(this).constructor;t=Reflect.construct(o,arguments,r)}else t=o.apply(this,arguments);return p(this,t)}}function p(e,n){if(n&&("object"===a(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)}function f(e){return(f=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(e){return e.__proto__||Object.getPrototypeOf(e)})(e)}var d=function(e){!function(e,n){if("function"!=typeof n&&null!==n)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(n&&n.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),Object.defineProperty(e,"prototype",{writable:!1}),n&&c(e,n)}(a,e);var n,t,o,i=u(a);function a(e){return function(e,n){if(!(e instanceof n))throw new TypeError("Cannot call a class as a function")}(this,a),i.call(this,e)}return n=a,(t=[{key:"name",get:function(){return"DraggableItemComponent"}},{key:"template",get:function(){return l.a}},{key:"className",get:function(){return"".concat(r.a.dragItem," p-3")}},{key:"viewOptions",value:function(){return Object.assign({styles:r.a},this.options)}}])&&s(n.prototype,t),o&&s(n,o),Object.defineProperty(n,"prototype",{writable:!1}),a}(t(2).a.Component),h={delay:150,cursorAt:{left:-20,top:10},refreshPositions:!0};t.d(n,"c",(function(){return r.a})),t.d(n,"b",(function(){return d})),t.d(n,"a",(function(){return h}))},1069:function(e,n,t){e.exports={checkboxContainer:"_3BLCF",thumbnailContainer:"_16jlV",metaContainer:"_2mMws",actionsContainer:"I31I0",allowBulk:"_2VkOe",videoItem:"PoHa-",processingVideo:"qFjv2",bulkPlaceholder:"_3iAFa",previewContainer:"_2UBZX"}},1071:function(e,n,t){"use strict";t.d(n,"a",(function(){return y})),t.d(n,"b",(function(){return g}));var o=t(1),r=t(2),i=t(1066),l=t.n(i),a=t(12);function s(e){return(s="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}function c(e,n,t){return n in e?Object.defineProperty(e,n,{value:t,enumerable:!0,configurable:!0,writable:!0}):e[n]=t,e}function u(e,n){for(var t=0;t<n.length;t++){var o=n[t];o.enumerable=o.enumerable||!1,o.configurable=!0,"value"in o&&(o.writable=!0),Object.defineProperty(e,o.key,o)}}function p(e,n){return(p=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(e,n){return e.__proto__=n,e})(e,n)}function f(e){var n=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(e){return!1}}();return function(){var t,o=h(e);if(n){var r=h(this).constructor;t=Reflect.construct(o,arguments,r)}else t=o.apply(this,arguments);return d(this,t)}}function d(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)}function h(e){return(h=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(e){return e.__proto__||Object.getPrototypeOf(e)})(e)}var y="checkbox-all",g=function(e){!function(e,n){if("function"!=typeof n&&null!==n)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(n&&n.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),Object.defineProperty(e,"prototype",{writable:!1}),n&&p(e,n)}(s,e);var n,t,r,i=f(s);function s(e){return function(e,n){if(!(e instanceof n))throw new TypeError("Cannot call a class as a function")}(this,s),i.call(this,e)}return n=s,(t=[{key:"initialize",value:function(){this.getViewModel(),this.bindListeners()}},{key:"name",get:function(){return"BulkCheckboxComponent"}},{key:"className",get:function(){return this.options.className}},{key:"template",get:function(){return l.a}},{key:"getViewModel",value:function(){this.model=a.a.GetViewModel(this.options.key,this.options.type)}},{key:"bindListeners",value:function(){this.options.disabled||this.listenTo(this.model,"change",this.onChange)}},{key:"events",value:function(){return{"change .custom-control-input":"onClick"}}},{key:"onChange",value:function(){this.checkAllChecked(),this.render()}},{key:"checkAllChecked",value:function(){var e=o.values(this.model.omit("all",y));o.every(e,(function(e){return!!e}))&&(this.model.get("all")||e.length===this.options.numberOfItems)&&this.model.set(c({all:!0},this.getItemId(),!0))}},{key:"getItemId",value:function(){return y}},{key:"onClick",value:function(){this.model.get(this.getItemId())?this.model.clear():(this.model.clear(),this.model.set(c({all:!0},this.getItemId(),!0)))}},{key:"viewOptions",value:function(){return{id:this.getItemId(),checked:this.model.get(y),disabled:this.options.disabled,checkboxClassName:this.options.checkboxClassName}}}])&&u(n.prototype,t),r&&u(n,r),Object.defineProperty(n,"prototype",{writable:!1}),s}(r.a.Component)},1074:function(e,n,t){"use strict";var o=t(0),r=t(53),i=t(204),l=t(206),a=t(1080),s=t(1),c=t(2),u=t(16),p=t(144),f=t(12),d=t(1057),h=t(1085),y=t.n(h),g=t(1086),m=t.n(g);function v(e){return(v="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}function b(e,n){for(var t=0;t<n.length;t++){var o=n[t];o.enumerable=o.enumerable||!1,o.configurable=!0,"value"in o&&(o.writable=!0),Object.defineProperty(e,o.key,o)}}function w(e,n){return(w=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(e,n){return e.__proto__=n,e})(e,n)}function k(e){var n=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(e){return!1}}();return function(){var t,o=C(e);if(n){var r=C(this).constructor;t=Reflect.construct(o,arguments,r)}else t=o.apply(this,arguments);return O(this,t)}}function O(e,n){if(n&&("object"===v(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)}function C(e){return(C=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(e){return e.__proto__||Object.getPrototypeOf(e)})(e)}var P=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&&w(e,n)}(i,e);var n,t,o,r=k(i);function i(e){return function(e,n){if(!(e instanceof n))throw new TypeError("Cannot call a class as a function")}(this,i),r.call(this,e)}return n=i,(t=[{key:"name",get:function(){return"VideoItemBadgesComponent"}},{key:"template",get:function(){return y.a}},{key:"lang",get:function(){return"shared.videoItemBadges"}},{key:"behaviors",get:function(){return[{behaviorClass:p.a,selector:".tool-tip"}]}},{key:"defaults",get:function(){return{showRestrictionBadge:!1,showReviewBadge:!1}}},{key:"events",value:function(){return{"click span":"onClick"}}},{key:"onClick",value:function(e){e.stopPropagation()}},{key:"viewOptions",value:function(){var e=this.options.showReviewBadge&&f.o.getRestrictionTooltipMessage(this.model),n=this.options.showRestrictionBadge&&f.o.getRestrictionTooltipMessage(this.model);return{styles:m.a,interactive:d.h.isInteractive(this.model),subtitles:!1,resources:!1,ratingColorClass:d.h.mapRatingToClass(this.model.rating.get("value")),closeCaptionSvg:u.a.getSvg(u.b.CloseCaptionBadge),resourcesSvg:u.a.getSvg(u.b.Resources),awaitingReviewMessage:e,awaitingReviewBadgeClass:f.o.getReviewBadgeClassName(this.model,m.a.reviewBadge,m.a.urgentReviewBadge),restrictionMessage:n}}}])&&b(n.prototype,t),o&&b(n,o),Object.defineProperty(n,"prototype",{writable:!1}),i}(c.a.Component),E=t(1067),x=t(1056),S=t(1087),R=t.n(S),I=t(1053),j=t.n(I);function _(e){return(_="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}function T(e,n){for(var t=0;t<n.length;t++){var o=n[t];o.enumerable=o.enumerable||!1,o.configurable=!0,"value"in o&&(o.writable=!0),Object.defineProperty(e,o.key,o)}}function V(e,n){return(V=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(e,n){return e.__proto__=n,e})(e,n)}function M(e){var n=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(e){return!1}}();return function(){var t,o=L(e);if(n){var r=L(this).constructor;t=Reflect.construct(o,arguments,r)}else t=o.apply(this,arguments);return D(this,t)}}function D(e,n){if(n&&("object"===_(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)}function L(e){return(L=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(e){return e.__proto__||Object.getPrototypeOf(e)})(e)}var B=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&&V(e,n)}(l,e);var n,t,r,i=M(l);function l(e){return function(e,n){if(!(e instanceof n))throw new TypeError("Cannot call a class as a function")}(this,l),i.call(this,e)}return n=l,(t=[{key:"initialize",value:function(){this.listenTo(this.model,"change:restrictions",this.render)}},{key:"name",get:function(){return"VideoItemMetadataComponent"}},{key:"template",get:function(){return R.a}},{key:"behaviors",get:function(){return[{behaviorClass:p.a,selector:".tool-tip"}]}},{key:"appLinks",get:function(){return{".applink-show-video":{application:o.b.LIBRARY_EDITOR,action:o.a.LibraryEditor.VIDEO_DETAILS,args:[this.model.get("id")]}}}},{key:"regions",value:function(){return{sources:{el:".sources-region",replaceElement:!0},badges:{el:".badges-region",replaceElement:!0},series:{el:".series-region",replaceElement:!0}}}},{key:"events",value:function(){return e={},n="click .".concat(j.a.svgContainer),t="onClickBadge",n in e?Object.defineProperty(e,n,{value:t,enumerable:!0,configurable:!0,writable:!0}):e[n]=t,e;var e,n,t}},{key:"onClickBadge",value:function(e){e.stopPropagation()}},{key:"renderSources",value:function(){var e=s.extend({},{model:this.model},this.options.sourceMetadataOptions);this.showChildView("sources",new E.a(e))}},{key:"renderSeries",value:function(){this.showChildView("series",new x.a({model:this.model,highlight:this.options.sourceMetadataOptions&&!!this.options.sourceMetadataOptions.highlight}))}},{key:"renderBadges",value:function(){this.showChildView("badges",new P({model:this.model}))}},{key:"viewOptions",value:function(){return{styles:j.a,hasAdminRestriction:f.o.hasAdminRestriction(this.model),restrictionMessage:f.o.getRestrictionTooltipMessage(this.model),lockSvg:u.a.getSvg(u.b.Lock)}}},{key:"onRender",value:function(){this.renderSeries(),this.renderSources(),this.renderBadges()}}])&&T(n.prototype,t),r&&T(n,r),Object.defineProperty(n,"prototype",{writable:!1}),l}(c.a.Component),A=t(1088),N=t.n(A);function U(e){return(U="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}function H(e,n){for(var t=0;t<n.length;t++){var o=n[t];o.enumerable=o.enumerable||!1,o.configurable=!0,"value"in o&&(o.writable=!0),Object.defineProperty(e,o.key,o)}}function W(e,n){return(W=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(e,n){return e.__proto__=n,e})(e,n)}function z(e){var n=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(e){return!1}}();return function(){var t,o=Y(e);if(n){var r=Y(this).constructor;t=Reflect.construct(o,arguments,r)}else t=o.apply(this,arguments);return F(this,t)}}function F(e,n){if(n&&("object"===U(n)||"function"==typeof n))return n;if(void 0!==n)throw new TypeError("Derived constructors may only return object or undefined");return function(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}(e)}function Y(e){return(Y=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(e){return e.__proto__||Object.getPrototypeOf(e)})(e)}var G=function(e){!function(e,n){if("function"!=typeof n&&null!==n)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(n&&n.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),Object.defineProperty(e,"prototype",{writable:!1}),n&&W(e,n)}(a,e);var n,t,i,l=z(a);function a(e){return function(e,n){if(!(e instanceof n))throw new TypeError("Cannot call a class as a function")}(this,a),l.call(this,e)}return n=a,(t=[{key:"initialize",value:function(){this.listenTo(this.model,"change:restrictions",this.render)}},{key:"name",get:function(){return"VideoItemVideoAccessMetadataComponent"}},{key:"template",get:function(){return N.a}},{key:"behaviors",get:function(){return[{behaviorClass:p.a,selector:".tool-tip"}]}},{key:"appLinks",get:function(){if(f.y.hasCustomLibrary(this.model))return{".applink-show-video":{application:o.b.LIBRARY_EDITOR,action:o.a.LibraryEditor.VIDEO_DETAILS,args:[this.model.get("id")]}}}},{key:"regions",value:function(){return{sources:{el:".sources-region",replaceElement:!0},badges:{el:".badges-region",replaceElement:!0},series:{el:".series-region",replaceElement:!0}}}},{key:"events",value:function(){return e={click:"onClick","click .video-title":"onClickMetadata"},n="click .".concat(j.a.svgContainer),t="onClickMetadata",n in e?Object.defineProperty(e,n,{value:t,enumerable:!0,configurable:!0,writable:!0}):e[n]=t,e;var e,n,t}},{key:"onClickMetadata",value:function(e){e.stopPropagation()}},{key:"getVideoUrl",value:function(){var e=r.a.safeUrlConcat(this.options.config.get("onlineUrl"),"videos/".concat(this.model.get("id")));return r.a.urlBuilder(e,{loginPrompt:!1})}},{key:"renderSources",value:function(){if(f.y.hasCustomLibrary(this.model)){var e=s.extend({},{model:this.model},this.options.sourceMetadataOptions);this.showChildView("sources",new E.a(e))}}},{key:"renderSeries",value:function(){f.y.hasCustomLibrary(this.model)&&this.showChildView("series",new x.a({model:this.model,highlight:this.options.sourceMetadataOptions&&!!this.options.sourceMetadataOptions.highlight}))}},{key:"renderBadges",value:function(){this.showChildView("badges",new P({model:this.model,showRestrictionBadge:!0}))}},{key:"viewOptions",value:function(){return{styles:j.a,restrictionMessage:f.o.getRestrictionTooltipMessage(this.model),lockSvg:u.a.getSvg(u.b.Lock),linkToOnline:!f.y.hasCustomLibrary(this.model),videoUrl:this.getVideoUrl(),openExternalSvg:u.a.getSvg(u.b.NewWindow)}}},{key:"onRender",value:function(){this.renderSeries(),this.renderSources(),this.renderBadges()}}])&&H(n.prototype,t),i&&H(n,i),Object.defineProperty(n,"prototype",{writable:!1}),a}(c.a.Component),K=t(102),q=t(104),J=t(1089),Z=t.n(J);function Q(e){return(Q="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}function $(e,n){for(var t=0;t<n.length;t++){var o=n[t];o.enumerable=o.enumerable||!1,o.configurable=!0,"value"in o&&(o.writable=!0),Object.defineProperty(e,o.key,o)}}function X(e,n){return(X=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(e,n){return e.__proto__=n,e})(e,n)}function ee(e){var n=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(e){return!1}}();return function(){var t,o=te(e);if(n){var r=te(this).constructor;t=Reflect.construct(o,arguments,r)}else t=o.apply(this,arguments);return ne(this,t)}}function ne(e,n){if(n&&("object"===Q(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)}function te(e){return(te=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(e){return e.__proto__||Object.getPrototypeOf(e)})(e)}var oe=function(e){!function(e,n){if("function"!=typeof n&&null!==n)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(n&&n.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),Object.defineProperty(e,"prototype",{writable:!1}),n&&X(e,n)}(l,e);var n,t,r,i=ee(l);function l(e){return function(e,n){if(!(e instanceof n))throw new TypeError("Cannot call a class as a function")}(this,l),i.call(this,e)}return n=l,(t=[{key:"initialize",value:function(){this.bindListeners()}},{key:"bindListeners",value:function(){this.model.get("status")===K.a.Processing&&this.options.pendingItems&&(this.pendingItem||(this.listenTo(this.options.pendingItems,"update",this.mapPendingItem),this.mapPendingItem()))}},{key:"lang",get:function(){return"shared.videoItemProcessingMetadata"}},{key:"mapPendingItem",value:function(){this.pendingItem=this.options.pendingItems.get(this.model.get("id")),this.render(),this.pendingItem&&(this.stopListening(this.options.pendingItems,"update"),this.listenTo(this.pendingItem,"change:foregroundProgress change:backgroundProgress change:pendingProcessStatus",this.render))}},{key:"name",get:function(){return"VideoItemProcessingMetadataComponent"}},{key:"template",get:function(){return Z.a}},{key:"appLinks",get:function(){var e=this.model.series?this.model.series.id:"";return{".applink-series":{application:o.b.LIBRARY_EDITOR,action:o.a.LibraryEditor.FOLDER,args:[e]}}}},{key:"viewOptions",value:function(){return this.pendingItem?{status:q.a.getStatus(this.pendingItem),hasError:q.a.hasError(this.pendingItem),hasPendingItem:!0}:{hasPendingItem:!1}}}])&&$(n.prototype,t),r&&$(n,r),Object.defineProperty(n,"prototype",{writable:!1}),l}(c.a.Component),re=t(1090),ie=t.n(re);function le(e){return(le="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}function ae(e,n){for(var t=0;t<n.length;t++){var o=n[t];o.enumerable=o.enumerable||!1,o.configurable=!0,"value"in o&&(o.writable=!0),Object.defineProperty(e,o.key,o)}}function se(e,n){return(se=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(e,n){return e.__proto__=n,e})(e,n)}function ce(e){var n=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(e){return!1}}();return function(){var t,o=pe(e);if(n){var r=pe(this).constructor;t=Reflect.construct(o,arguments,r)}else t=o.apply(this,arguments);return ue(this,t)}}function ue(e,n){if(n&&("object"===le(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)}function pe(e){return(pe=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(e){return e.__proto__||Object.getPrototypeOf(e)})(e)}var fe=function(e){!function(e,n){if("function"!=typeof n&&null!==n)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(n&&n.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),Object.defineProperty(e,"prototype",{writable:!1}),n&&se(e,n)}(l,e);var n,t,o,i=ce(l);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:"name",get:function(){return"VideoItemAwaitingReviewMetadataComponent"}},{key:"template",get:function(){return ie.a}},{key:"events",value:function(){return{"click .video-title":"onClickMetadata","click .svg-container":"onClickMetadata"}}},{key:"regions",value:function(){return{badges:{el:".badges-region",replaceElement:!0},series:{el:".series-region",replaceElement:!0}}}},{key:"onClickMetadata",value:function(e){e.stopPropagation()}},{key:"getVideoUrl",value:function(){var e=r.a.safeUrlConcat(this.options.config.get("onlineUrl"),"videos/".concat(this.model.get("id")));return r.a.urlBuilder(e,{loginPrompt:!1})}},{key:"getSeriesUrl",value:function(){if(this.model.series){var e=r.a.safeUrlConcat(this.options.config.get("onlineUrl"),"series/".concat(this.model.series.id));return r.a.urlBuilder(e,{loginPrompt:!1})}}},{key:"renderBadges",value:function(){this.showChildView("badges",new P({model:this.model,showReviewBadge:!0}))}},{key:"renderSeries",value:function(){this.showChildView("series",new x.a({model:this.model,highlight:!1,seriesUrl:this.getSeriesUrl()}))}},{key:"viewOptions",value:function(){return{styles:j.a,videoUrl:this.getVideoUrl(),openExternalSvg:u.a.getSvg(u.b.NewWindow)}}},{key:"onRender",value:function(){this.renderSeries(),this.renderBadges()}}])&&ae(n.prototype,t),o&&ae(n,o),Object.defineProperty(n,"prototype",{writable:!1}),l}(c.a.Component),de=t(1091),he=t.n(de),ye=t(1092),ge=t.n(ye);function me(e){return(me="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}function ve(e,n,t){return n in e?Object.defineProperty(e,n,{value:t,enumerable:!0,configurable:!0,writable:!0}):e[n]=t,e}function be(e,n){for(var t=0;t<n.length;t++){var o=n[t];o.enumerable=o.enumerable||!1,o.configurable=!0,"value"in o&&(o.writable=!0),Object.defineProperty(e,o.key,o)}}function we(e,n){return(we=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(e,n){return e.__proto__=n,e})(e,n)}function ke(e){var n=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(e){return!1}}();return function(){var t,o=Ce(e);if(n){var r=Ce(this).constructor;t=Reflect.construct(o,arguments,r)}else t=o.apply(this,arguments);return Oe(this,t)}}function Oe(e,n){if(n&&("object"===me(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)}function Ce(e){return(Ce=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(e){return e.__proto__||Object.getPrototypeOf(e)})(e)}var Pe=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&&we(e,n)}(l,e);var n,t,o,i=ke(l);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.listenTo(this.model,"change:restrictions",this.render)}},{key:"name",get:function(){return"VideoItemPastReleasesMetadataComponent"}},{key:"template",get:function(){return he.a}},{key:"lang",get:function(){return"shared.videoItemPastReleasesMetadata"}},{key:"behaviors",get:function(){return[{behaviorClass:p.a,selector:".tool-tip"}]}},{key:"regions",value:function(){return{badges:{el:".badges-region",replaceElement:!0},series:{el:".series-region",replaceElement:!0}}}},{key:"events",value:function(){var e;return ve(e={"click .video-title":"onClickMetadata"},"click .".concat(ge.a.series),"onClickMetadata"),ve(e,"click .svg-container","onClickMetadata"),e}},{key:"onClickMetadata",value:function(e){e.stopPropagation()}},{key:"getVideoUrl",value:function(){var e=r.a.safeUrlConcat(this.options.config.get("onlineUrl"),"videos/".concat(this.model.get("id")));return r.a.urlBuilder(e,{loginPrompt:!1})}},{key:"getSeriesUrl",value:function(){if(this.model.series){var e=r.a.safeUrlConcat(this.options.config.get("onlineUrl"),"series/".concat(this.model.series.id));return r.a.urlBuilder(e,{loginPrompt:!1})}}},{key:"renderBadges",value:function(){this.showChildView("badges",new P({model:this.model}))}},{key:"renderSeries",value:function(){this.showChildView("series",new x.a({model:this.model,highlight:!1,seriesUrl:this.getSeriesUrl()}))}},{key:"viewOptions",value:function(){return{styles:s.extend({},j.a,ge.a),videoUrl:this.getVideoUrl(),openExternalSvg:u.a.getSvg(u.b.NewWindow),hasAdminRestriction:f.o.hasAdminRestriction(this.model),restrictionMessage:f.o.getRestrictionTooltipMessage(this.model),lockSvg:u.a.getSvg(u.b.Lock)}}},{key:"onRender",value:function(){this.renderSeries(),this.renderBadges()}}])&&be(n.prototype,t),o&&be(n,o),Object.defineProperty(n,"prototype",{writable:!1}),l}(c.a.Component),Ee=t(1093),xe=t.n(Ee);function Se(e){return(Se="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}function Re(e,n){for(var t=0;t<n.length;t++){var o=n[t];o.enumerable=o.enumerable||!1,o.configurable=!0,"value"in o&&(o.writable=!0),Object.defineProperty(e,o.key,o)}}function Ie(e,n){return(Ie=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(e,n){return e.__proto__=n,e})(e,n)}function je(e){var n=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(e){return!1}}();return function(){var t,o=Te(e);if(n){var r=Te(this).constructor;t=Reflect.construct(o,arguments,r)}else t=o.apply(this,arguments);return _e(this,t)}}function _e(e,n){if(n&&("object"===Se(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)}function Te(e){return(Te=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(e){return e.__proto__||Object.getPrototypeOf(e)})(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,i=je(l);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.listenTo(this.model,"change:restrictions",this.render)}},{key:"name",get:function(){return"VideoItemSearchMetadataComponent"}},{key:"template",get:function(){return xe.a}},{key:"behaviors",get:function(){return[{behaviorClass:p.a,selector:".tool-tip"}]}},{key:"appLinks",get:function(){return{".applink-show-video":{application:o.b.LIBRARY_EDITOR,action:o.a.LibraryEditor.VIDEO_DETAILS,args:[this.model.get("id")]}}}},{key:"regions",value:function(){return{sources:{el:".sources-region",replaceElement:!0},badges:{el:".badges-region",replaceElement:!0},series:{el:".series-region",replaceElement:!0}}}},{key:"events",value:function(){return e={click:"onClick"},n="click ".concat(j.a.svgContainer),t="onClickSvg",n in e?Object.defineProperty(e,n,{value:t,enumerable:!0,configurable:!0,writable:!0}):e[n]=t,e;var e,n,t}},{key:"onClickSvg",value:function(e){e.stopPropagation()}},{key:"getKeyPhrases",value:function(){var e=this;return f.w.extractKeyPhrases(this.model.get("description"),this.model.get("_matchedWords"),100,2).map((function(n){return f.w.wordsHighlighter(f.w.escapeExpression(n),e.model.get("_matchedWords"))}))}},{key:"renderSources",value:function(){var e=s.extend({},{model:this.model},this.options.sourceMetadataOptions);this.showChildView("sources",new E.a(e))}},{key:"renderSeries",value:function(){this.showChildView("series",new x.a({model:this.model,highlight:this.options.sourceMetadataOptions&&!!this.options.sourceMetadataOptions.highlight}))}},{key:"renderBadges",value:function(){this.showChildView("badges",new P({model:this.model}))}},{key:"viewOptions",value:function(){return{styles:j.a,name:f.w.wordsHighlighter(f.w.escapeExpression(this.model.get("name")),this.model.get("_matchedWords")),keyPhrases:this.getKeyPhrases(),hasAdminRestriction:f.o.hasAdminRestriction(this.model),restrictionMessage:f.o.getRestrictionTooltipMessage(this.model),lockSvg:u.a.getSvg(u.b.Lock)}}},{key:"onRender",value:function(){this.renderSeries(),this.renderSources(),this.renderBadges()}}])&&Re(n.prototype,t),r&&Re(n,r),Object.defineProperty(n,"prototype",{writable:!1}),l}(c.a.Component),Me=t(6),De=t(1120),Le=t(1094),Be=t.n(Le),Ae=t(1063),Ne=t.n(Ae);function Ue(e){return(Ue="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}function He(e,n){for(var t=0;t<n.length;t++){var o=n[t];o.enumerable=o.enumerable||!1,o.configurable=!0,"value"in o&&(o.writable=!0),Object.defineProperty(e,o.key,o)}}function We(e,n){return(We=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(e,n){return e.__proto__=n,e})(e,n)}function ze(e){var n=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(e){return!1}}();return function(){var t,o=Ye(e);if(n){var r=Ye(this).constructor;t=Reflect.construct(o,arguments,r)}else t=o.apply(this,arguments);return Fe(this,t)}}function Fe(e,n){if(n&&("object"===Ue(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)}function Ye(e){return(Ye=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(e){return e.__proto__||Object.getPrototypeOf(e)})(e)}var Ge=function(e){!function(e,n){if("function"!=typeof n&&null!==n)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(n&&n.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),Object.defineProperty(e,"prototype",{writable:!1}),n&&We(e,n)}(i,e);var n,t,o,r=ze(i);function i(e){return function(e,n){if(!(e instanceof n))throw new TypeError("Cannot call a class as a function")}(this,i),r.call(this,e)}return n=i,(t=[{key:"name",get:function(){return"VideoItemActionsComponent"}},{key:"template",get:function(){return Be.a}},{key:"className",get:function(){return"d-flex h-100 flex-column align-items-end justify-content-between"}},{key:"lang",get:function(){return"shared._videoItemActions"}},{key:"regions",value:function(){return{videoActions:".video-actions-region"}}},{key:"events",value:function(){return e={},n="click .".concat(Ne.a.showPreview),t="onClickShowPreview",n in e?Object.defineProperty(e,n,{value:t,enumerable:!0,configurable:!0,writable:!0}):e[n]=t,e;var e,n,t}},{key:"onClickShowPreview",value:function(e){e.stopPropagation(),this.options.channelName&&Me.Radio.channel(this.options.channelName).trigger("click:show:preview")}},{key:"renderVideoActions",value:function(){this.showChildView("videoActions",new De.a(this.options.videoActionsOptions))}},{key:"viewOptions",value:function(){return{styles:Ne.a,previewDisplayed:this.options.previewDisplayed,previewSvg:u.a.getSvg(u.b.Preview)}}},{key:"onRender",value:function(){this.renderVideoActions()}}])&&He(n.prototype,t),o&&He(n,o),Object.defineProperty(n,"prototype",{writable:!1}),i}(c.a.Component),Ke=t(5),qe=t(4),Je=t(42),Ze=t(1095),Qe=t.n(Ze);function $e(e){return($e="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}function Xe(e,n){for(var t=0;t<n.length;t++){var o=n[t];o.enumerable=o.enumerable||!1,o.configurable=!0,"value"in o&&(o.writable=!0),Object.defineProperty(e,o.key,o)}}function en(e,n){return(en=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(e,n){return e.__proto__=n,e})(e,n)}function nn(e){var n=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(e){return!1}}();return function(){var t,o=on(e);if(n){var r=on(this).constructor;t=Reflect.construct(o,arguments,r)}else t=o.apply(this,arguments);return tn(this,t)}}function tn(e,n){if(n&&("object"===$e(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)}function on(e){return(on=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(e){return e.__proto__||Object.getPrototypeOf(e)})(e)}var rn=function(e){!function(e,n){if("function"!=typeof n&&null!==n)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(n&&n.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),Object.defineProperty(e,"prototype",{writable:!1}),n&&en(e,n)}(l,e);var n,t,r,i=nn(l);function l(e){return function(e,n){if(!(e instanceof n))throw new TypeError("Cannot call a class as a function")}(this,l),i.call(this,e)}return n=l,(t=[{key:"initialize",value:function(){this.restrictedVideoDataService=Ke.a.getInstance(o.g.RestrictedVideo,this)}},{key:"name",get:function(){return"VideoItemReviewActionsComponent"}},{key:"template",get:function(){return Qe.a}},{key:"lang",get:function(){return"shared.videoItemReviewActions"}},{key:"className",get:function(){return"d-flex h-100 flex-column align-items-end"}},{key:"events",value:function(){return e={"click .approve":"onClickApprove","click .applink-manage-video-access":"onClickManageVideoAccess"},n="click .".concat(Ne.a.showPreview),t="onClickShowPreview",n in e?Object.defineProperty(e,n,{value:t,enumerable:!0,configurable:!0,writable:!0}):e[n]=t,e;var e,n,t}},{key:"appLinks",get:function(){return{".applink-manage-video-access":{application:o.b.CONTENT_UPDATES,action:o.a.Shared.MANAGE_VIDEO_ACCESS,args:[this.model.get("id")]}}}},{key:"onClickApprove",value:function(e){e.stopPropagation(),this.restrictedVideoDataService.deleteVideoRestriction(this.model.get("id")),this.logApproveAction()}},{key:"onClickManageVideoAccess",value:function(e){e.stopPropagation(),this.logManageAccessAction()}},{key:"onClickShowPreview",value:function(e){e.stopPropagation(),this.options.channelName&&Me.Radio.channel(this.options.channelName).trigger("click:show:preview")}},{key:"logApproveAction",value:function(){var e={location:qe.LocationContext.AwaitingReviewVideoItem,actionType:qe.UserAction.Approve,entity:qe.EntityType.Video,descriptor:qe.OperationDescriptor.Single,workflowPhase:qe.WorkflowPhase.Complete},n={id:this.model.get("id")};Je.a.logUserAction(n,e)}},{key:"logManageAccessAction",value:function(){var e={location:qe.LocationContext.AwaitingReviewVideoItem,actionType:qe.UserAction.SetAccess,entity:qe.EntityType.Video,workflowPhase:qe.WorkflowPhase.Start},n={id:this.model.get("id")};Je.a.logUserAction(n,e)}},{key:"viewOptions",value:function(){return{styles:Ne.a,previewDisplayed:this.options.previewDisplayed,previewSvg:u.a.getSvg(u.b.Preview)}}}])&&Xe(n.prototype,t),r&&Xe(n,r),Object.defineProperty(n,"prototype",{writable:!1}),l}(c.a.Component),ln=t(1096),an=t.n(ln);function sn(e){return(sn="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}function cn(e,n){for(var t=0;t<n.length;t++){var o=n[t];o.enumerable=o.enumerable||!1,o.configurable=!0,"value"in o&&(o.writable=!0),Object.defineProperty(e,o.key,o)}}function un(e,n){return(un=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(e,n){return e.__proto__=n,e})(e,n)}function pn(e){var n=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(e){return!1}}();return function(){var t,o=dn(e);if(n){var r=dn(this).constructor;t=Reflect.construct(o,arguments,r)}else t=o.apply(this,arguments);return fn(this,t)}}function fn(e,n){if(n&&("object"===sn(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)}function dn(e){return(dn=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(e){return e.__proto__||Object.getPrototypeOf(e)})(e)}var hn=function(e){!function(e,n){if("function"!=typeof n&&null!==n)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(n&&n.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),Object.defineProperty(e,"prototype",{writable:!1}),n&&un(e,n)}(l,e);var n,t,r,i=pn(l);function l(e){return function(e,n){if(!(e instanceof n))throw new TypeError("Cannot call a class as a function")}(this,l),i.call(this,e)}return n=l,(t=[{key:"name",get:function(){return"VideoItemVideoAccessComponent"}},{key:"template",get:function(){return an.a}},{key:"lang",get:function(){return"shared.videoItemVideoAccessActions"}},{key:"className",get:function(){return"d-flex h-100 flex-column align-items-end justify-content-between"}},{key:"appLinks",get:function(){return{".applink-manage-video-access":{application:o.b.VIDEO_ACCESS,action:o.a.Shared.MANAGE_VIDEO_ACCESS,args:[this.model.get("id")]}}}},{key:"events",value:function(){return e={"click .applink-manage-video-access":"onClickManageVideoAccess"},n="click .".concat(Ne.a.showPreview),t="onClickShowPreview",n in e?Object.defineProperty(e,n,{value:t,enumerable:!0,configurable:!0,writable:!0}):e[n]=t,e;var e,n,t}},{key:"onClickManageVideoAccess",value:function(e){e.stopPropagation(),this.logAction()}},{key:"onClickShowPreview",value:function(e){e.stopPropagation(),this.options.channelName&&Me.Radio.channel(this.options.channelName).trigger("click:show:preview")}},{key:"logAction",value:function(){var e={location:qe.LocationContext.VideoListItem,actionType:qe.UserAction.SetAccess,entity:qe.EntityType.Video,workflowPhase:qe.WorkflowPhase.Start},n={id:this.model.get("id")};Je.a.logUserAction(n,e)}},{key:"viewOptions",value:function(){return{styles:Ne.a,previewDisplayed:this.options.previewDisplayed,previewSvg:u.a.getSvg(u.b.Preview)}}}])&&cn(n.prototype,t),r&&cn(n,r),Object.defineProperty(n,"prototype",{writable:!1}),l}(c.a.Component),yn=t(1081),gn=t(1097),mn=t(9),vn=t(3),bn=t(313),wn=t(1082),kn=t(306),On=t(1098),Cn=t.n(On);function Pn(e){return(Pn="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}function En(e,n){for(var t=0;t<n.length;t++){var o=n[t];o.enumerable=o.enumerable||!1,o.configurable=!0,"value"in o&&(o.writable=!0),Object.defineProperty(e,o.key,o)}}function xn(e,n){return(xn=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(e,n){return e.__proto__=n,e})(e,n)}function Sn(e){var n=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(e){return!1}}();return function(){var t,o=In(e);if(n){var r=In(this).constructor;t=Reflect.construct(o,arguments,r)}else t=o.apply(this,arguments);return Rn(this,t)}}function Rn(e,n){if(n&&("object"===Pn(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)}function In(e){return(In=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(e){return e.__proto__||Object.getPrototypeOf(e)})(e)}var jn=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&&xn(e,n)}(l,e);var n,t,r,i=Sn(l);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:"name",get:function(){return"ExpandableTagListComponent"}},{key:"template",get:function(){return Cn.a}},{key:"lang",get:function(){return"libraryEditor.expandableTagList"}},{key:"defaults",get:function(){return{initialTagDisplayCount:5,expandedTagDisplayCount:10}}},{key:"appLinks",get:function(){return{".applink-video-details":{application:o.b.LIBRARY_EDITOR,action:o.a.LibraryEditor.VIDEO_DETAILS,args:[this.options.videoId]}}}},{key:"events",value:function(){return{"click .show-more-tags":"onClickShowMoreTags"}}},{key:"regions",value:function(){return{tags:{replaceElement:!0,el:".tags-region"}}}},{key:"onClickShowMoreTags",value:function(){this.showingMoreTags=!0,this.options.channelName&&Me.Radio.channel(this.options.channelName).trigger("show:more:tags"),this.render()}},{key:"getTagCollection",value:function(){var e=this.showingMoreTags?this.options.expandedTagDisplayCount:this.options.initialTagDisplayCount;return new bn.a(this.collection.slice(0,e))}},{key:"getExtraTagsInfo",value:function(){if(!this.showingMoreTags)return vn.a.getPhrase(this.lang,"extraTags",{smartCount:s.max([this.collection.length-this.options.initialTagDisplayCount,0])})}},{key:"renderTags",value:function(){var e=new wn.a({collection:this.getTagCollection(),behavior:kn.b.Link});this.showChildView("tags",e)}},{key:"viewOptions",value:function(){return{expandable:this.collection.length>this.options.initialTagDisplayCount&&!this.showingMoreTags,extraTagsText:this.getExtraTagsInfo(),moreTags:this.showingMoreTags&&this.collection.length>this.options.expandedTagDisplayCount}}},{key:"onRender",value:function(){this.renderTags()}}])&&En(n.prototype,t),r&&En(n,r),Object.defineProperty(n,"prototype",{writable:!1}),l}(c.a.Component),_n=t(1099),Tn=t.n(_n),Vn=t(1100),Mn=t.n(Vn);function Dn(e){return(Dn="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}function Ln(e,n){for(var t=0;t<n.length;t++){var o=n[t];o.enumerable=o.enumerable||!1,o.configurable=!0,"value"in o&&(o.writable=!0),Object.defineProperty(e,o.key,o)}}function Bn(e,n){return(Bn=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(e,n){return e.__proto__=n,e})(e,n)}function An(e){var n=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(e){return!1}}();return function(){var t,o=Un(e);if(n){var r=Un(this).constructor;t=Reflect.construct(o,arguments,r)}else t=o.apply(this,arguments);return Nn(this,t)}}function Nn(e,n){if(n&&("object"===Dn(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)}function Un(e){return(Un=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(e){return e.__proto__||Object.getPrototypeOf(e)})(e)}var Hn=function(e){!function(e,n){if("function"!=typeof n&&null!==n)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(n&&n.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),Object.defineProperty(e,"prototype",{writable:!1}),n&&Bn(e,n)}(l,e);var n,t,r,i=An(l);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.listenTo(this.model,"change",this.render),this.listenTo(this.channelName,"show:more:tags",this.onClickShowMoreTags)}},{key:"name",get:function(){return"VideoItemPreviewComponent"}},{key:"template",get:function(){return Tn.a}},{key:"lang",get:function(){return"shared.videoItemPreview"}},{key:"className",get:function(){return"row border-top px-3 m-0"}},{key:"channelName",get:function(){return"".concat(this.name).concat(this.cid)}},{key:"appLinks",get:function(){return{".applink-video-details":{application:o.b.LIBRARY_EDITOR,action:o.a.LibraryEditor.VIDEO_DETAILS,args:[this.model.get("id")]}}}},{key:"behaviors",get:function(){return[{behaviorClass:p.a,selector:".tool-tip"}]}},{key:"regions",value:function(){return{partialLoadingContainer:{el:".content-container-region",replaceElement:!1,partialLoading:mn.h.VideoItemPreview},description:".description-region",preview:".video-preview-region",tags:{replaceElement:!0,el:".tags-region"}}}},{key:"events",value:function(){return{click:"onClick"}}},{key:"onClick",value:function(e){e.stopPropagation()}},{key:"onClickShowMoreTags",value:function(){Me.Radio.channel(this.options.channelName).trigger("resize:preview")}},{key:"showTags",value:function(){return!(!this.model.tags||!this.model.tags.length)}},{key:"renderDescription",value:function(){if(this.model&&this.model.get("description")){var e=new yn.a({model:this.model,highlighter:!0,size:yn.b.Small,truncate:!0});this.showChildView("description",e)}}},{key:"renderTags",value:function(){if(this.showTags()){var e=new jn({collection:this.model.tags,videoId:this.model.id&&this.model.get("id"),channelName:this.channelName});this.showChildView("tags",e)}}},{key:"renderVideoPreview",value:function(){var e=new gn.a({model:this.model,webPlayerUrl:this.options.webPlayerUrl,analyticsOptions:{location:qe.LocationContext.VideoItemPreview},currentUser:this.options.currentUser});this.showChildView("preview",e)}},{key:"getSubtitleLanguage",value:function(){if(!this.model.subtitles||!this.model.get("subtitles").length)return"";var e=s.uniq(this.model.get("subtitles").map((function(e){return e.get("language")})));return s.map(e,(function(e){return CVLanguages.getFullEnglishName(e)})).join(", ")}},{key:"getDetails",value:function(e){if(!this.model[e]||!this.model.get(e).length)return"";var n=this.model.get(e).length;return n>1?"".concat(n," ").concat(e):"".concat(vn.a.getPhrase(this.lang,"one")," ").concat(e.slice(0,-1))}},{key:"onBeforeRender",value:function(){return!(!this.model||!this.model.get("dataFetched"))||(Me.Radio.channel(this.options.collectionViewChannel).trigger("fetch:video:with:metadata",this.options.videoId),!(!this.model||!this.model.get("dataFetched"))&&void 0)}},{key:"viewOptions",value:function(){if(this.model&&this.model.get("dataFetched")){var e=this.model.get("duration");return{styles:Mn.a,ratingClass:this.model.rating&&d.h.mapRatingToClass(this.model.rating.get("value")),showTags:this.showTags(),description:this.model.get("description"),duration:e&&f.e.ToDisplayDuration(e),chapters:this.getDetails("chapters"),interactives:this.model.interactives&&this.model.get("interactives").length,subtitles:this.getSubtitleLanguage(),resources:this.getDetails("resources"),links:this.getDetails("links"),externalLink:this.options.externalLink,openExternalSvg:u.a.getSvg(u.b.NewWindow)}}}},{key:"onRender",value:function(){this.renderDescription(),this.renderTags(),this.renderVideoPreview()}}])&&Ln(n.prototype,t),r&&Ln(n,r),Object.defineProperty(n,"prototype",{writable:!1}),l}(c.a.Component),Wn=t(1101),zn=t.n(Wn);function Fn(e){return(Fn="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}function Yn(e,n){for(var t=0;t<n.length;t++){var o=n[t];o.enumerable=o.enumerable||!1,o.configurable=!0,"value"in o&&(o.writable=!0),Object.defineProperty(e,o.key,o)}}function Gn(e,n){return(Gn=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(e,n){return e.__proto__=n,e})(e,n)}function Kn(e){var n=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(e){return!1}}();return function(){var t,o=Jn(e);if(n){var r=Jn(this).constructor;t=Reflect.construct(o,arguments,r)}else t=o.apply(this,arguments);return qn(this,t)}}function qn(e,n){if(n&&("object"===Fn(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)}function Jn(e){return(Jn=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(e){return e.__proto__||Object.getPrototypeOf(e)})(e)}var Zn,Qn,$n,Xn,et,nt,tt,ot,rt,it=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&&Gn(e,n)}(i,e);var n,t,o,r=Kn(i);function i(e){return function(e,n){if(!(e instanceof n))throw new TypeError("Cannot call a class as a function")}(this,i),r.call(this,e)}return n=i,(t=[{key:"initialize",value:function(){this.bindListeners()}},{key:"name",get:function(){return"VideoItemProcessingActionsComponent"}},{key:"template",get:function(){return zn.a}},{key:"lang",get:function(){return"shared.videoItemProcessingActions"}},{key:"className",get:function(){return"d-flex h-100 flex-column align-items-end justify-content-between"}},{key:"events",value:function(){return{"click .cancel":"onClickCancel","click .retry":"onClickRetry"}}},{key:"onClickCancel",value:function(){var e=this.pendingItem.get("video").get("name");f.b.generateDialog(e,this.options.channelName,"cancel:pending:item",this.pendingItem)}},{key:"onClickRetry",value:function(){Me.Radio.channel(this.options.channelName).trigger("retry:pending:item",this.pendingItem)}},{key:"bindListeners",value:function(){this.model.get("status")===K.a.Processing&&this.options.pendingItems&&(this.pendingItem||(this.listenTo(this.options.pendingItems,"update",this.mapPendingItem),this.mapPendingItem()))}},{key:"mapPendingItem",value:function(){this.pendingItem=this.options.pendingItems.get(this.model.get("id")),this.render(),this.pendingItem&&(this.stopListening(this.options.pendingItems,"update"),this.listenTo(this.pendingItem,"change:pendingProcessStatus",this.render))}},{key:"viewOptions",value:function(){return{hasError:q.a.hasError(this.pendingItem)}}},{key:"onBeforeRender",value:function(){return!!this.pendingItem}}])&&Yn(n.prototype,t),o&&Yn(n,o),Object.defineProperty(n,"prototype",{writable:!1}),i}(c.a.Component),lt=t(1069),at=t.n(lt),st=t(201),ct=t(1052);function ut(e,n,t){return n in e?Object.defineProperty(e,n,{value:t,enumerable:!0,configurable:!0,writable:!0}):e[n]=t,e}t.d(n,"a",(function(){return gt}));var pt=ct.b,ft=ct.a,dt=function(e){return{component:i.a,options:{model:e.model,lazyload:e.shouldLazyLoadThumbnail(),thumbnailOptions:{size:l.a.Small},href:r.a.urlBuilder(r.a.safeUrlConcat(e.options.config.get("onlineUrl"),"videos/".concat(e.model.id)),{loginPrompt:!1}),channelName:e.channelName}}},ht=function(e){return{component:Hn,options:{model:e.options.videoWithMetadata,videoId:e.model.id.toString(),channelName:e.channelName,collectionViewChannel:e.options.collectionViewChannel,webPlayerUrl:e.options.config.get("webPlayerUrl"),currentUser:e.options.currentUser}}},yt=function(e){return{component:Hn,options:{model:e.options.videoWithMetadata,videoId:e.model.id.toString(),channelName:e.channelName,collectionViewChannel:e.options.collectionViewChannel,webPlayerUrl:e.options.config.get("webPlayerUrl"),externalLink:r.a.urlBuilder(r.a.safeUrlConcat(e.options.config.get("onlineUrl"),"videos/".concat(e.model.id)),{loginPrompt:!1}),currentUser:e.options.currentUser}}},gt={componentOptions:(nt={},ut(nt,pt.Base,(Zn={},ut(Zn,ft.Checkbox,(function(e){return{component:a.a,options:{className:"d-inline-flex align-items-center mr-3 ".concat(at.a.checkboxContainer),checkboxClassName:at.a.checkbox,itemId:e.model.id,key:e.collectionIdentifier.toString(),type:st.CheckboxTypes.VIDEO_LIST}}})),ut(Zn,ft.Thumbnail,(function(e){return{component:i.a,options:{model:e.model,lazyload:e.shouldLazyLoadThumbnail(),thumbnailOptions:{size:l.a.Small},appLink:{application:o.b.LIBRARY_EDITOR,action:o.a.LibraryEditor.VIDEO_DETAILS,args:[e.model.id]},channelName:e.channelName}}})),ut(Zn,ft.Metadata,(function(e){return{component:B,options:{model:e.model,sourceMetadataOptions:e.options.sourceMetadataOptions}}})),ut(Zn,ft.VideoActions,(function(e){return{component:Ge,options:{model:e.model,channelName:e.channelName,previewDisplayed:e.viewModel.get("previewOpen"),videoActionsOptions:{model:e.model,application:e.options.application,collectionIdentifier:e.options.collectionIdentifier,customerHasLocalCache:e.options.customerHasLocalCache,customerHasExchange:e.options.customerHasExchange,customerHasCustomLibrary:e.options.customerHasCustomLibrary,analyticsOptions:e.options.analyticsOptions,config:e.options.config,collectionSource:e.options.videoCollectionSource}}}})),ut(Zn,ft.VideoInfo,ht),Zn)),ut(nt,pt.AwaitingReview,(Qn={},ut(Qn,ft.Thumbnail,dt),ut(Qn,ft.Metadata,(function(e){return{component:fe,options:{model:e.model,config:e.options.config}}})),ut(Qn,ft.VideoActions,(function(e){return{component:rn,options:{model:e.model,channelName:e.channelName,previewDisplayed:e.viewModel.get("previewOpen"),analyticsOptions:e.options.analyticsOptions}}})),ut(Qn,ft.VideoInfo,yt),Qn)),ut(nt,pt.PastReleases,($n={},ut($n,ft.Thumbnail,dt),ut($n,ft.Metadata,(function(e){return{component:Pe,options:{model:e.model,config:e.options.config}}})),ut($n,ft.VideoInfo,yt),$n)),ut(nt,pt.VideoAccess,(Xn={},ut(Xn,ft.VideoActions,(function(e){return{component:hn,options:{model:e.model,channelName:e.channelName,previewDisplayed:e.viewModel.get("previewOpen"),analyticsOptions:e.options.analyticsOptions}}})),ut(Xn,ft.Metadata,(function(e){return{component:G,options:{model:e.model,config:e.options.config,sourceMetadataOptions:{showFolder:!0}}}})),ut(Xn,ft.VideoInfo,(function(e){return f.y.hasCustomLibrary(e.model)?ht(e):yt(e)})),Xn)),ut(nt,pt.ProcessingVideo,(et={},ut(et,ft.Metadata,(function(e){return{component:oe,options:{model:e.model,pendingItems:e.options.pendingItems}}})),ut(et,ft.VideoActions,(function(e){return{component:it,options:{model:e.model,pendingItems:e.options.pendingItems,channelName:e.options.collectionViewChannel,analyticsOptions:e.options.analyticsOptions}}})),et)),ut(nt,pt.Draggable,{}),ut(nt,pt.Search,ut({},ft.Metadata,(function(e){return{component:Ve,options:{model:e.model,sourceMetadataOptions:{showFolder:!0,highlight:!0}}}}))),nt),onBeforeRender:(rt={},ut(rt,pt.Base,(tt={},ut(tt,ft.Checkbox,(function(e){return!!e.options.allowBulk})),ut(tt,ft.VideoInfo,(function(e){return!!e.viewModel.get("previewOpen")})),tt)),ut(rt,pt.ProcessingVideo,(ot={},ut(ot,ft.Checkbox,(function(){return!1})),ut(ot,ft.VideoInfo,(function(){return!1})),ot)),rt)}},1075:function(e,n,t){"use strict";var o=t(2),r=t(1),i=t(1052),l=t(1074),a=t(1076);var s,c,u,p=(s={},c=i.b.Draggable,u=function(e){return[{behaviorClass:a.a,collectionIdentifier:e.options.collectionIdentifier,model:e.options.model,selector:"drag-selector"}]},c in s?Object.defineProperty(s,c,{value:u,enumerable:!0,configurable:!0,writable:!0}):s[c]=u,s),f=t(19);t.d(n,"a",(function(){return y}));var d=i.b.Base,h=l.a,y={renderRegions:function(e,n){r.each(e.regions,(function(t,o){g.onBeforeRenderRegion(e,n,o)&&g.renderRegion(e,n,o)}))},onBeforeRenderRegion:function(e,n,t){var o=h.onBeforeRender[n];if(o||(o=h.onBeforeRender[d]),!o)return!0;var i=o[t];return!i||(!r.isFunction(i)||i(e))},renderRegion:function(e,n,t){var o=g.getComponent(e,n,t);e.showChildView(t,o)},getComponent:function(e,n,t){var r=h.componentOptions[n];r||o.a.ErrorHelper.throw(new f.a("Must define VideoItemComponent type options: ".concat(i.b[n],".")));var l=r[t];l||(l=h.componentOptions[d][t]),l||o.a.ErrorHelper.throw(new f.a("Must define VideoItemComponent region options: ".concat(t,".")));var a=l(e);return a.component||o.a.ErrorHelper.throw(new f.a("Must define component for region: ".concat(t,",\n in VideoItemComponent type: ").concat(i.b[n],"."))),new a.component(a.options||{})},getBehaviors:function(e,n){return p[n]?p[n](e):null}},g=y},1076:function(e,n,t){"use strict";t.d(n,"a",(function(){return O}));var o=t(1),r=t(6),i=t(2),l=t(19),a=t(16),s=t(0),c=t(12),u=t(3),p=t(1068),f=t(201),d=t(1079),h=t.n(d);function y(e){return(y="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}function g(e,n){if(!(e instanceof n))throw new TypeError("Cannot call a class as a function")}function m(e,n){for(var t=0;t<n.length;t++){var o=n[t];o.enumerable=o.enumerable||!1,o.configurable=!0,"value"in o&&(o.writable=!0),Object.defineProperty(e,o.key,o)}}function v(e,n){return(v=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(e,n){return e.__proto__=n,e})(e,n)}function b(e){var n=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(e){return!1}}();return function(){var t,o=k(e);if(n){var r=k(this).constructor;t=Reflect.construct(o,arguments,r)}else t=o.apply(this,arguments);return w(this,t)}}function w(e,n){if(n&&("object"===y(n)||"function"==typeof n))return n;if(void 0!==n)throw new TypeError("Derived constructors may only return object or undefined");return function(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}(e)}function k(e){return(k=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(e){return e.__proto__||Object.getPrototypeOf(e)})(e)}var O=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&&v(e,n)}(w,e);var n,t,d,y=b(w);function w(){return g(this,w),y.apply(this,arguments)}return n=w,(t=[{key:"initialize",value:function(){this.options.model||i.a.ErrorHelper.throw(new l.a("DraggableVideoBehavior must be passed a Video model")),this.listenTo(s.w.VIDEO_DRAG_DROP,"drag:style:".concat(this.options.model.id),this.styleDragStart),this.listenTo(s.w.VIDEO_DRAG_DROP,"drag:stop",this.styleDragStop)}},{key:"lang",get:function(){return"libraryEditor.behaviors"}},{key:"helper",value:function(){var e=this.getVideoModels();return new p.b({text:e.length>1?u.a.getPhrase(this.lang,"videos",{videoCount:e.length}):e[0].get("name"),svg:a.a.getSvg(a.b.Play)}).render().el}},{key:"getSelector",value:function(){return this.view.getUI(this.options.selector)}},{key:"styleDragStart",value:function(){this.getSelector().addClass(h.a.draggingVideo)}},{key:"styleDragStop",value:function(){this.getSelector().removeClass(h.a.draggingVideo)}},{key:"start",value:function(){var e=this.getVideoModels(),n=r.Radio.channel(s.w.VIDEO_DRAG_DROP);n.trigger("drag:start",e,this.options.collectionIdentifier),o.each(e,(function(e){return n.trigger("drag:style:".concat(e.id))}))}},{key:"stop",value:function(){r.Radio.channel(s.w.VIDEO_DRAG_DROP).trigger("drag:stop")}},{key:"getVideoModels",value:function(){var e=this,n=c.a.GetSelectedModels({key:this.options.collectionIdentifier.toString(),type:f.CheckboxTypes.VIDEO_LIST,collection:this.view.model.collection});return o.any(n,(function(n){return n.id===e.view.model.id}))||(n=[this.view.model]),n.length?n:[this.view.model]}},{key:"getClassMappings",value:function(){return{"ui-draggable":p.c.draggable,"ui-draggable-disabled":p.c.disabled,"ui-draggable-handle":p.c.handle,"ui-draggable-dragging":p.c.dragging}}},{key:"onRender",value:function(){var e=this.getSelector(),n={helper:o.bind(this.helper,this),start:o.bind(this.start,this),stop:o.bind(this.stop,this)};n.classes=this.getClassMappings(),e.draggable(o.extend({},p.a,n))}},{key:"onBeforeDestroy",value:function(){var e=this.getSelector();e.draggable("instance")&&e.draggable("destroy")}}])&&m(n.prototype,t),d&&m(n,d),Object.defineProperty(n,"prototype",{writable:!1}),w}(i.a.Behavior)},1079:function(e,n,t){e.exports={draggingVideo:"_3cCHx"}},1080:function(e,n,t){"use strict";t.d(n,"a",(function(){return h}));var o=t(2),r=t(1066),i=t.n(r),l=t(12),a=t(1071);function s(e){return(s="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}function c(e,n){for(var t=0;t<n.length;t++){var o=n[t];o.enumerable=o.enumerable||!1,o.configurable=!0,"value"in o&&(o.writable=!0),Object.defineProperty(e,o.key,o)}}function u(e,n){return(u=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(e,n){return e.__proto__=n,e})(e,n)}function p(e){var n=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(e){return!1}}();return function(){var t,o=d(e);if(n){var r=d(this).constructor;t=Reflect.construct(o,arguments,r)}else t=o.apply(this,arguments);return f(this,t)}}function f(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)}function d(e){return(d=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(e){return e.__proto__||Object.getPrototypeOf(e)})(e)}var h=function(e){!function(e,n){if("function"!=typeof n&&null!==n)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(n&&n.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),Object.defineProperty(e,"prototype",{writable:!1}),n&&u(e,n)}(s,e);var n,t,o,r=p(s);function s(e){return function(e,n){if(!(e instanceof n))throw new TypeError("Cannot call a class as a function")}(this,s),r.call(this,e)}return n=s,(t=[{key:"initialize",value:function(){if(this.getViewModel(),this.bindListeners(),this.options.checked){var e=this.getItemId();this.model.set(e,!0,{silent:!0})}}},{key:"name",get:function(){return"CheckboxComponent"}},{key:"className",get:function(){return this.options.className}},{key:"template",get:function(){return i.a}},{key:"getViewModel",value:function(){this.model=l.a.GetViewModel(this.options.key,this.options.type)}},{key:"bindListeners",value:function(){this.options.disabled||this.listenTo(this.model,"change:all change:".concat(this.getItemId()),this.render)}},{key:"events",value:function(){return{"click .custom-checkbox":"onClickCheckbox","change .custom-control-input":"onChangeCheckbox"}}},{key:"getItemId",value:function(){return this.options.itemId.toString()}},{key:"onClickCheckbox",value:function(e){e.stopPropagation()}},{key:"onChangeCheckbox",value:function(){if(!this.options.disabled){var e=this.getItemId();this.model.has(e)||this.model.get("all")?!1===this.model.get(e)?this.model.set(e,!0):(this.model.set(e,!1),this.model.set(a.a,!1)):this.model.set(e,!0)}}},{key:"viewOptions",value:function(){var e=this.getItemId();return{id:e,checked:this.model.has(e)?this.model.get(e):this.model.get("all"),disabled:this.options.disabled,checkboxClassName:this.options.checkboxClassName}}}])&&c(n.prototype,t),o&&c(n,o),Object.defineProperty(n,"prototype",{writable:!1}),s}(o.a.Component)},1083:function(e,n,t){"use strict";t.d(n,"a",(function(){return y}));var o=t(1),r=t(2),i=t(4),l=t(42),a=t(1084),s=t.n(a);function c(e){return(c="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}function u(e,n){for(var t=0;t<n.length;t++){var o=n[t];o.enumerable=o.enumerable||!1,o.configurable=!0,"value"in o&&(o.writable=!0),Object.defineProperty(e,o.key,o)}}function p(e,n){return(p=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(e,n){return e.__proto__=n,e})(e,n)}function f(e){var n=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(e){return!1}}();return function(){var t,o=h(e);if(n){var r=h(this).constructor;t=Reflect.construct(o,arguments,r)}else t=o.apply(this,arguments);return d(this,t)}}function d(e,n){if(n&&("object"===c(n)||"function"==typeof n))return n;if(void 0!==n)throw new TypeError("Derived constructors may only return object or undefined");return function(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}(e)}function h(e){return(h=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(e){return e.__proto__||Object.getPrototypeOf(e)})(e)}var y=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&&p(e,n)}(c,e);var n,t,r,a=f(c);function c(e){return function(e,n){if(!(e instanceof n))throw new TypeError("Cannot call a class as a function")}(this,c),a.call(this,e)}return n=c,(t=[{key:"defaults",get:function(){return{cursors:{},cursorParamName:"cursor"}}},{key:"name",get:function(){return"PaginationComponent"}},{key:"template",get:function(){return s.a}},{key:"lang",get:function(){return"shared._pagination"}},{key:"appLinks",get:function(){var e={};if(!this.options.cursors)return{};if(this.options.cursors.previous){var n=this.options.cursors.previous,t=this.buildCursor(this.options.cursors.previous);+n<=1&&!0!==this.options.allowFirstPageCursor&&delete t.params.cursor,e[".previous-applink"]=t}return this.options.cursors.next&&(e[".next-applink"]=this.buildCursor(this.options.cursors.next)),e}},{key:"events",value:function(){return{"click .previous-applink":"onClickPrevious","click .next-applink":"onClickNext"}}},{key:"buildCursor",value:function(e){return{application:this.options.appLink.application,action:this.options.appLink.action,args:this.options.appLink.args,params:o.extend({},this.options.appLink.params,(n={},t=this.options.cursorParamName,r=e,t in n?Object.defineProperty(n,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):n[t]=r,n))};var n,t,r}},{key:"onClickPrevious",value:function(){this.logAction("previous")}},{key:"onClickNext",value:function(){this.logAction("next")}},{key:"logAction",value:function(e){var n=l.a.mergeOptions(this.options.analyticsOptions,{location:i.LocationContext.Pagination,entity:i.EntityType.Pagination,actionType:i.UserAction.Navigate}),t={id:this.options.collectionId,page:e};l.a.logUserAction(t,n)}},{key:"viewOptions",value:function(){return{cursors:this.options.cursors}}},{key:"onBeforeRender",value:function(){return!!this.options.cursors}}])&&u(n.prototype,t),r&&u(n,r),Object.defineProperty(n,"prototype",{writable:!1}),c}(r.a.Component)},1084:function(e,n,t){var o=t(10);e.exports=(o.default||o).template({1:function(e,n,t,o,r){return"disabled"},compiler:[8,">= 4.3.0"],main:function(e,n,t,o,r){e.propertyIsEnumerable;var i,l=null!=n?n:e.nullContext||{},a=e.hooks.helperMissing,s=e.escapeExpression;return'<div class="p-3">\r\n <a class="btn previous-applink btn-secondary '+(null!=(i=t.unless.call(l,null!=(i=null!=(i=null!=n?n.options:n)?i.cursors:i)?i.previous:i,{name:"unless",hash:{},fn:e.program(1,r,0),inverse:e.noop,data:r}))?i:"")+'">'+s((t.lang||n&&n.lang||a).call(l,"previous",{name:"lang",hash:{},data:r}))+'</a>\r\n <a class="btn next-applink btn-secondary '+(null!=(i=t.unless.call(l,null!=(i=null!=(i=null!=n?n.options:n)?i.cursors:i)?i.next:i,{name:"unless",hash:{},fn:e.program(1,r,0),inverse:e.noop,data:r}))?i:"")+'">'+s((t.lang||n&&n.lang||a).call(l,"next",{name:"lang",hash:{},data:r}))+"</a>\r\n</div>"},useData:!0})},1085:function(e,n,t){var o=t(10);e.exports=(o.default||o).template({1:function(e,n,t,o,r){e.propertyIsEnumerable;var i,l=e.escapeExpression;return' <span class="badge p-1 '+l(e.lambda(null!=(i=null!=(i=null!=n?n.options:n)?i.styles:i)?i.interactive:i,n))+'">'+l((t.lang||n&&n.lang||e.hooks.helperMissing).call(null!=n?n:e.nullContext||{},"interactive",{name:"lang",hash:{},data:r}))+"</span>\r\n"},3:function(e,n,t,o,r){e.propertyIsEnumerable;var i,l=e.lambda,a=e.escapeExpression;return' <span class="badge p-1 tool-tip '+a(l(null!=(i=null!=(i=null!=n?n.options:n)?i.styles:i)?i.rating:i,n))+" "+a(l(null!=(i=null!=n?n.options:n)?i.ratingColorClass:i,n))+'" title="'+a(l(null!=(i=null!=n?n.rating:n)?i.name:i,n))+'">'+a(l(null!=(i=null!=n?n.rating:n)?i.code:i,n))+"</span>\r\n"},5:function(e,n,t,o,r){e.propertyIsEnumerable;var i,l=e.lambda;return' <span class="d-inline-block tool-tip '+e.escapeExpression(l(null!=(i=null!=(i=null!=n?n.options:n)?i.styles:i)?i.svgContainer:i,n))+'" title="Subtitles">'+(null!=(i=l(null!=(i=null!=n?n.options:n)?i.closeCaptionSvg:i,n))?i:"")+"</span>\r\n"},7:function(e,n,t,o,r){e.propertyIsEnumerable;var i,l=e.lambda;return' <span class="d-inline-block tool-tip '+e.escapeExpression(l(null!=(i=null!=(i=null!=n?n.options:n)?i.styles:i)?i.svgContainer:i,n))+'" title="Resources">'+(null!=(i=l(null!=(i=null!=n?n.options:n)?i.resourcesSvg:i,n))?i:"")+"</span>\r\n"},9:function(e,n,t,o,r){e.propertyIsEnumerable;var i,l=e.lambda,a=e.escapeExpression;return' <span class="badge p-1 '+a(l(null!=(i=null!=n?n.options:n)?i.awaitingReviewBadgeClass:i,n))+'">'+a(l(null!=(i=null!=n?n.options:n)?i.awaitingReviewMsg:i,n))+"</span>\r\n"},11:function(e,n,t,o,r){e.propertyIsEnumerable;var i,l=e.lambda,a=e.escapeExpression;return' <span class="badge p-1 '+a(l(null!=(i=null!=(i=null!=n?n.options:n)?i.styles:i)?i.restrictionBadgeClass:i,n))+'">'+a(l(null!=(i=null!=n?n.options:n)?i.restrictionMessage:i,n))+"</span>\r\n"},compiler:[8,">= 4.3.0"],main:function(e,n,t,o,r){e.propertyIsEnumerable;var i,l=null!=n?n:e.nullContext||{};return'<div class="mt-1 '+e.escapeExpression(e.lambda(null!=(i=null!=(i=null!=n?n.options:n)?i.styles:i)?i.badgesWrapper:i,n))+'">\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,r,0),inverse:e.noop,data:r}))?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(3,r,0),inverse:e.noop,data:r}))?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(5,r,0),inverse:e.noop,data:r}))?i:"")+"\r\n"+(null!=(i=t.if.call(l,null!=(i=null!=n?n.options:n)?i.resources:i,{name:"if",hash:{},fn:e.program(7,r,0),inverse:e.noop,data:r}))?i:"")+"\r\n"+(null!=(i=t.if.call(l,null!=(i=null!=n?n.options:n)?i.awaitingReviewMsg:i,{name:"if",hash:{},fn:e.program(9,r,0),inverse:e.noop,data:r}))?i:"")+"\r\n"+(null!=(i=t.if.call(l,null!=(i=null!=n?n.options:n)?i.restrictionMessage:i,{name:"if",hash:{},fn:e.program(11,r,0),inverse:e.noop,data:r}))?i:"")+"</div>"},useData:!0})},1086:function(e,n,t){e.exports={interactive:"_37GpR",rating:"_2lAYT",svgContainer:"_19ncQ",badgesWrapper:"_26lCi",restrictionBadgeClass:"UdQeS",reviewBadge:"ExFLF",urgentReviewBadge:"_3dcfL"}},1087:function(e,n,t){var o=t(10);e.exports=(o.default||o).template({1:function(e,n,t,o,r){e.propertyIsEnumerable;var i,l=e.lambda,a=e.escapeExpression;return' <span class="d-inline-block ml-1 tool-tip '+a(l(null!=(i=null!=(i=null!=n?n.options:n)?i.styles:i)?i.svgContainer:i,n))+'" title="'+a(l(null!=(i=null!=n?n.options:n)?i.restrictionMessage:i,n))+'">'+(null!=(i=l(null!=(i=null!=n?n.options:n)?i.lockSvg:i,n))?i:"")+"</span>\r\n"},compiler:[8,">= 4.3.0"],main:function(e,n,t,o,r){e.propertyIsEnumerable;var i,l,a=null!=n?n:e.nullContext||{};return'<div class="series-region"></div>\r\n<a class="cursor-pointer applink-show-video h6 text-dark">'+e.escapeExpression("function"==typeof(l=null!=(l=t.name||(null!=n?n.name:n))?l:e.hooks.helperMissing)?l.call(a,{name:"name",hash:{},data:r}):l)+"</a>\r\n"+(null!=(i=t.if.call(a,null!=(i=null!=n?n.options:n)?i.hasAdminRestriction:i,{name:"if",hash:{},fn:e.program(1,r,0),inverse:e.noop,data:r}))?i:"")+'<div class="sources-region"></div>\r\n<div class="badges-region"></div>'},useData:!0})},1088:function(e,n,t){var o=t(10);e.exports=(o.default||o).template({1:function(e,n,t,o,r){e.propertyIsEnumerable;var i,l,a=e.lambda,s=e.escapeExpression;return'<a class="cursor-pointer h6 video-title text-dark" href="'+s(a(null!=(i=null!=n?n.options:n)?i.videoUrl:i,n))+'" target="_blank">'+s("function"==typeof(l=null!=(l=t.name||(null!=n?n.name:n))?l:e.hooks.helperMissing)?l.call(null!=n?n:e.nullContext||{},{name:"name",hash:{},data:r}):l)+'</a>\r\n<a class="svg-container d-inline-block align-bottom text-muted no-decoration" href="'+s(a(null!=(i=null!=n?n.options:n)?i.videoUrl:i,n))+'" target="_blank">'+(null!=(i=a(null!=(i=null!=n?n.options:n)?i.openExternalSvg:i,n))?i:"")+"</a>\r\n"},3:function(e,n,t,o,r){var i;e.propertyIsEnumerable;return'<a class="cursor-pointer applink-show-video h6">'+e.escapeExpression("function"==typeof(i=null!=(i=t.name||(null!=n?n.name:n))?i:e.hooks.helperMissing)?i.call(null!=n?n:e.nullContext||{},{name:"name",hash:{},data:r}):i)+"</a>\r\n"},compiler:[8,">= 4.3.0"],main:function(e,n,t,o,r){e.propertyIsEnumerable;var i,l=e.lambda,a=e.escapeExpression;return'<div class="series-region"></div>\r\n'+(null!=(i=t.if.call(null!=n?n:e.nullContext||{},null!=(i=null!=n?n.options:n)?i.linkToOnline:i,{name:"if",hash:{},fn:e.program(1,r,0),inverse:e.program(3,r,0),data:r}))?i:"")+'<span class="d-inline-block ml-1 tool-tip '+a(l(null!=(i=null!=(i=null!=n?n.options:n)?i.styles:i)?i.lock:i,n))+" "+a(l(null!=(i=null!=(i=null!=n?n.options:n)?i.styles:i)?i.svgContainer:i,n))+'" title="'+a(l(null!=(i=null!=n?n.options:n)?i.restrictionMessage:i,n))+'">'+(null!=(i=l(null!=(i=null!=n?n.options:n)?i.lockSvg:i,n))?i:"")+'</span>\r\n<div class="sources-region"></div>\r\n<div class="badges-region"></div>'},useData:!0})},1089:function(e,n,t){var o=t(10);e.exports=(o.default||o).template({1:function(e,n,t,o,r){e.propertyIsEnumerable;var i,l=e.lambda;return' <span class="d-inline-block align-middle ml-1 '+e.escapeExpression(l(null!=(i=null!=(i=null!=n?n.options:n)?i.styles:i)?i.lockSvgContainer:i,n))+'">'+(null!=(i=l(null!=(i=null!=n?n.options:n)?i.lockSvg:i,n))?i:"")+"</span>\r\n"},3:function(e,n,t,o,r){return"text-danger"},5:function(e,n,t,o,r){var i;e.propertyIsEnumerable;return" "+e.escapeExpression(e.lambda(null!=(i=null!=n?n.options:n)?i.status:i,n))+"\r\n"},7:function(e,n,t,o,r){e.propertyIsEnumerable;return" "+e.escapeExpression((t.lang||n&&n.lang||e.hooks.helperMissing).call(null!=n?n:e.nullContext||{},"waiting",{name:"lang",hash:{},data:r}))+"\r\n"},9:function(e,n,t,o,r){e.propertyIsEnumerable;return" <br><i>"+e.escapeExpression((t.lang||n&&n.lang||e.hooks.helperMissing).call(null!=n?n:e.nullContext||{},"anotherAdmin",{name:"lang",hash:{},data:r}))+"</i>\r\n"},compiler:[8,">= 4.3.0"],main:function(e,n,t,o,r){e.propertyIsEnumerable;var i,l,a=null!=n?n:e.nullContext||{};return'<a class="applink-show-video h6 text-dark">'+e.escapeExpression("function"==typeof(l=null!=(l=t.name||(null!=n?n.name:n))?l:e.hooks.helperMissing)?l.call(a,{name:"name",hash:{},data:r}):l)+"</a>\r\n"+(null!=(i=t.if.call(a,null!=(i=null!=n?n.options:n)?i.hasAdminRestriction:i,{name:"if",hash:{},fn:e.program(1,r,0),inverse:e.noop,data:r}))?i:"")+'<div class="processing '+(null!=(i=t.if.call(a,null!=(i=null!=n?n.options:n)?i.hasError:i,{name:"if",hash:{},fn:e.program(3,r,0),inverse:e.noop,data:r}))?i:"")+'">\r\n'+(null!=(i=t.if.call(a,null!=(i=null!=n?n.options:n)?i.hasPendingItem:i,{name:"if",hash:{},fn:e.program(5,r,0),inverse:e.program(7,r,0),data:r}))?i:"")+(null!=(i=t.unless.call(a,null!=(i=null!=n?n.options:n)?i.hasPendingItem:i,{name:"unless",hash:{},fn:e.program(9,r,0),inverse:e.noop,data:r}))?i:"")+"</div>"},useData:!0})},1090:function(e,n,t){var o=t(10);e.exports=(o.default||o).template({compiler:[8,">= 4.3.0"],main:function(e,n,t,o,r){e.propertyIsEnumerable;var i,l,a=e.lambda,s=e.escapeExpression;return'<div class="series-region"></div>\r\n<a class="cursor-pointer h6 video-title text-dark" href="'+s(a(null!=(i=null!=n?n.options:n)?i.videoUrl:i,n))+'" target="_blank">'+s("function"==typeof(l=null!=(l=t.name||(null!=n?n.name:n))?l:e.hooks.helperMissing)?l.call(null!=n?n:e.nullContext||{},{name:"name",hash:{},data:r}):l)+'</a>\r\n<a class="svg-container d-inline-block align-bottom text-muted no-decoration" href="'+s(a(null!=(i=null!=n?n.options:n)?i.videoUrl:i,n))+'" target="_blank">'+(null!=(i=a(null!=(i=null!=n?n.options:n)?i.openExternalSvg:i,n))?i:"")+'</a>\r\n<div class="badges-region"></div>'},useData:!0})},1091:function(e,n,t){var o=t(10);e.exports=(o.default||o).template({1:function(e,n,t,o,r){e.propertyIsEnumerable;var i,l=e.lambda,a=e.escapeExpression;return' <span class="d-inline-block svg-container align-bottom tool-tip '+a(l(null!=(i=null!=(i=null!=n?n.options:n)?i.styles:i)?i.lock:i,n))+'" title="'+a(l(null!=(i=null!=n?n.options:n)?i.restrictionMessage:i,n))+'">'+(null!=(i=l(null!=(i=null!=n?n.options:n)?i.lockSvg:i,n))?i:"")+"</span>\r\n"},compiler:[8,">= 4.3.0"],main:function(e,n,t,o,r){e.propertyIsEnumerable;var i,l,a=e.lambda,s=e.escapeExpression,c=null!=n?n:e.nullContext||{};return'<div class="series-region"></div>\r\n<a class="cursor-pointer h6 video-title text-dark" href="'+s(a(null!=(i=null!=n?n.options:n)?i.videoUrl:i,n))+'" target="_blank">'+s("function"==typeof(l=null!=(l=t.name||(null!=n?n.name:n))?l:e.hooks.helperMissing)?l.call(c,{name:"name",hash:{},data:r}):l)+'</a>\r\n<a class="svg-container d-inline-block align-bottom text-muted no-decoration" href="'+s(a(null!=(i=null!=n?n.options:n)?i.videoUrl:i,n))+'" target="_blank">'+(null!=(i=a(null!=(i=null!=n?n.options:n)?i.openExternalSvg:i,n))?i:"")+"</a>\r\n"+(null!=(i=t.if.call(c,null!=(i=null!=n?n.options:n)?i.hasAdminRestriction:i,{name:"if",hash:{},fn:e.program(1,r,0),inverse:e.noop,data:r}))?i:"")+'<div class="badges-region"></div>'},useData:!0})},1092:function(e,n,t){e.exports={series:"P3914"}},1093:function(e,n,t){var o=t(10);e.exports=(o.default||o).template({1:function(e,n,t,o,r){e.propertyIsEnumerable;var i,l=e.lambda,a=e.escapeExpression;return' <span class="d-inline-block ml-1 tool-tip '+a(l(null!=(i=null!=(i=null!=n?n.options:n)?i.styles:i)?i.svgContainer:i,n))+'" title="'+a(l(null!=(i=null!=n?n.options:n)?i.restrictionMessage:i,n))+'">'+(null!=(i=l(null!=(i=null!=n?n.options:n)?i.lockSvg:i,n))?i:"")+"</span>\r\n"},3:function(e,n,t,o,r){var i;return' <span class="d-block pt-1">'+(null!=(i=e.lambda(n,n))?i:"")+"</span>\r\n"},compiler:[8,">= 4.3.0"],main:function(e,n,t,o,r){e.propertyIsEnumerable;var i,l=null!=n?n:e.nullContext||{};return'<div class="series-region"></div>\r\n<a class="cursor-pointer applink-show-video h6 text-dark">'+(null!=(i=e.lambda(null!=(i=null!=n?n.options:n)?i.name:i,n))?i:"")+"</a>\r\n"+(null!=(i=t.if.call(l,null!=(i=null!=n?n.options:n)?i.hasAdminRestriction:i,{name:"if",hash:{},fn:e.program(1,r,0),inverse:e.noop,data:r}))?i:"")+'<div class="sources-region"></div>\r\n<div class="badges-region"></div>\r\n'+(null!=(i=t.each.call(l,null!=(i=null!=n?n.options:n)?i.keyPhrases:i,{name:"each",hash:{},fn:e.program(3,r,0),inverse:e.noop,data:r}))?i:"")},useData:!0})},1094:function(e,n,t){var o=t(10);e.exports=(o.default||o).template({1:function(e,n,t,o,r){e.propertyIsEnumerable;return e.escapeExpression((t.lang||n&&n.lang||e.hooks.helperMissing).call(null!=n?n:e.nullContext||{},"hide",{name:"lang",hash:{},data:r}))},3:function(e,n,t,o,r){e.propertyIsEnumerable;return e.escapeExpression((t.lang||n&&n.lang||e.hooks.helperMissing).call(null!=n?n:e.nullContext||{},"show",{name:"lang",hash:{},data:r}))},compiler:[8,">= 4.3.0"],main:function(e,n,t,o,r){e.propertyIsEnumerable;var i,l=e.lambda,a=e.escapeExpression,s=null!=n?n:e.nullContext||{};return'<div class="video-actions-region row no-gutters video-item-actions '+a(l(null!=(i=null!=(i=null!=n?n.options:n)?i.styles:i)?i.actions:i,n))+'"></div>\r\n<div class="row no-gutters cursor-pointer video-item-show-preview '+a(l(null!=(i=null!=(i=null!=n?n.options:n)?i.styles:i)?i.showPreview:i,n))+'">\r\n <span class="svg-container">'+(null!=(i=l(null!=(i=null!=n?n.options:n)?i.previewSvg:i,n))?i:"")+"</span>\r\n "+(null!=(i=t.if.call(s,null!=(i=null!=n?n.options:n)?i.previewDisplayed:i,{name:"if",hash:{},fn:e.program(1,r,0),inverse:e.program(3,r,0),data:r}))?i:"")+" "+a((t.lang||n&&n.lang||e.hooks.helperMissing).call(s,"preview",{name:"lang",hash:{},data:r}))+"\r\n</div>"},useData:!0})},1095:function(e,n,t){var o=t(10);e.exports=(o.default||o).template({1:function(e,n,t,o,r){e.propertyIsEnumerable;return e.escapeExpression((t.lang||n&&n.lang||e.hooks.helperMissing).call(null!=n?n:e.nullContext||{},"hide",{name:"lang",hash:{},data:r}))},3:function(e,n,t,o,r){e.propertyIsEnumerable;return e.escapeExpression((t.lang||n&&n.lang||e.hooks.helperMissing).call(null!=n?n:e.nullContext||{},"show",{name:"lang",hash:{},data:r}))},compiler:[8,">= 4.3.0"],main:function(e,n,t,o,r){e.propertyIsEnumerable;var i,l=null!=n?n:e.nullContext||{},a=e.hooks.helperMissing,s=e.escapeExpression,c=e.lambda;return'<button class="approve d-flex btn btn-sm btn-outline-success" type="button">'+s((t.lang||n&&n.lang||a).call(l,"approve",{name:"lang",hash:{},data:r}))+'</button>\r\n<a class="applink-manage-video-access cursor-pointer hover-text-underline py-1">'+(null!=(i=(t.lang||n&&n.lang||a).call(l,"manageAccess",{name:"lang",hash:{},data:r}))?i:"")+'</a> \r\n<div class="row no-gutters cursor-pointer video-item-show-preview '+s(c(null!=(i=null!=(i=null!=n?n.options:n)?i.styles:i)?i.showPreview:i,n))+'"> \r\n <span class="svg-container">'+(null!=(i=c(null!=(i=null!=n?n.options:n)?i.previewSvg:i,n))?i:"")+"</span> \r\n "+(null!=(i=t.if.call(l,null!=(i=null!=n?n.options:n)?i.previewDisplayed:i,{name:"if",hash:{},fn:e.program(1,r,0),inverse:e.program(3,r,0),data:r}))?i:"")+" "+s((t.lang||n&&n.lang||a).call(l,"preview",{name:"lang",hash:{},data:r}))+"\r\n</div> "},useData:!0})},1096:function(e,n,t){var o=t(10);e.exports=(o.default||o).template({1:function(e,n,t,o,r){e.propertyIsEnumerable;return e.escapeExpression((t.lang||n&&n.lang||e.hooks.helperMissing).call(null!=n?n:e.nullContext||{},"hide",{name:"lang",hash:{},data:r}))},3:function(e,n,t,o,r){e.propertyIsEnumerable;return e.escapeExpression((t.lang||n&&n.lang||e.hooks.helperMissing).call(null!=n?n:e.nullContext||{},"show",{name:"lang",hash:{},data:r}))},compiler:[8,">= 4.3.0"],main:function(e,n,t,o,r){e.propertyIsEnumerable;var i,l=null!=n?n:e.nullContext||{},a=e.hooks.helperMissing,s=e.escapeExpression,c=e.lambda;return'<button class="applink-manage-video-access d-flex btn btn-sm btn-secondary" type="button">'+s((t.lang||n&&n.lang||a).call(l,"manageAccess",{name:"lang",hash:{},data:r}))+'</button>\r\n<div class="row no-gutters cursor-pointer video-item-show-preview '+s(c(null!=(i=null!=(i=null!=n?n.options:n)?i.styles:i)?i.showPreview:i,n))+'">\r\n <span class="svg-container">'+(null!=(i=c(null!=(i=null!=n?n.options:n)?i.previewSvg:i,n))?i:"")+"</span>\r\n "+(null!=(i=t.if.call(l,null!=(i=null!=n?n.options:n)?i.previewDisplayed:i,{name:"if",hash:{},fn:e.program(1,r,0),inverse:e.program(3,r,0),data:r}))?i:"")+" "+s((t.lang||n&&n.lang||a).call(l,"preview",{name:"lang",hash:{},data:r}))+"\r\n</div>"},useData:!0})},1098:function(e,n,t){var o=t(10);e.exports=(o.default||o).template({1:function(e,n,t,o,r){var i;e.propertyIsEnumerable;return' <a class="info-link show-more-tags">'+e.escapeExpression(e.lambda(null!=(i=null!=n?n.options:n)?i.extraTagsText:i,n))+"</a>\r\n"},3:function(e,n,t,o,r){e.propertyIsEnumerable;return' <a class="info-link applink-video-details">'+e.escapeExpression((t.lang||n&&n.lang||e.hooks.helperMissing).call(null!=n?n:e.nullContext||{},"viewAllTags",{name:"lang",hash:{},data:r}))+"</a>\r\n"},compiler:[8,">= 4.3.0"],main:function(e,n,t,o,r){e.propertyIsEnumerable;var i,l=null!=n?n:e.nullContext||{};return'<div class="tags-region"></div>\r\n\r\n'+(null!=(i=t.if.call(l,null!=(i=null!=n?n.options:n)?i.expandable:i,{name:"if",hash:{},fn:e.program(1,r,0),inverse:e.noop,data:r}))?i:"")+(null!=(i=t.if.call(l,null!=(i=null!=n?n.options:n)?i.moreTags:i,{name:"if",hash:{},fn:e.program(3,r,0),inverse:e.noop,data:r}))?i:"")},useData:!0})},1099:function(e,n,t){var o=t(10);e.exports=(o.default||o).template({1:function(e,n,t,o,r){e.propertyIsEnumerable;return" <p>"+e.escapeExpression((t.lang||n&&n.lang||e.hooks.helperMissing).call(null!=n?n:e.nullContext||{},"noDescription",{name:"lang",hash:{},data:r}))+"</p>\r\n"},3:function(e,n,t,o,r){return' <div class="description-region"></div>\r\n'},5:function(e,n,t,o,r){e.propertyIsEnumerable;var i,l=e.lambda,a=e.escapeExpression;return' <div class="col-6 pb-1 '+a(l(null!=(i=null!=(i=null!=n?n.options:n)?i.styles:i)?i.columnNames:i,n))+'">'+a((t.lang||n&&n.lang||e.hooks.helperMissing).call(null!=n?n:e.nullContext||{},"rating",{name:"lang",hash:{},data:r}))+'</div>\r\n <div class="col-6 mb-0 pb-1">\r\n <span class="badge p-1 text-white tool-tip '+a(l(null!=(i=null!=n?n.options:n)?i.ratingClass:i,n))+'" title="'+a(l(null!=(i=null!=n?n.rating:n)?i.name:i,n))+'">'+a(l(null!=(i=null!=n?n.rating:n)?i.code:i,n))+"</span>\r\n </div>\r\n"},7:function(e,n,t,o,r){e.propertyIsEnumerable;var i,l,a=e.escapeExpression,s=null!=n?n:e.nullContext||{},c=e.hooks.helperMissing;return' <div class="col-6 py-1 '+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||c).call(s,"productionYear",{name:"lang",hash:{},data:r}))+'</div>\r\n <p class="col-6 mb-0 py-1">'+a("function"==typeof(l=null!=(l=t.productionYear||(null!=n?n.productionYear:n))?l:c)?l.call(s,{name:"productionYear",hash:{},data:r}):l)+"</p>\r\n"},9:function(e,n,t,o,r){e.propertyIsEnumerable;var i,l=e.lambda,a=e.escapeExpression,s=null!=n?n:e.nullContext||{};return' <div class="col-6 py-1 '+a(l(null!=(i=null!=(i=null!=n?n.options:n)?i.styles:i)?i.columnNames:i,n))+'">'+a((t.lang||n&&n.lang||e.hooks.helperMissing).call(s,"chapters",{name:"lang",hash:{},data:r}))+'</div>\r\n <a\r\n class="col-6 info-link mb-0 py-1 '+(null!=(i=t.unless.call(s,null!=(i=null!=n?n.options:n)?i.externalLink:i,{name:"unless",hash:{},fn:e.program(10,r,0),inverse:e.noop,data:r}))?i:"")+'"\r\n'+(null!=(i=t.if.call(s,null!=(i=null!=n?n.options:n)?i.externalLink:i,{name:"if",hash:{},fn:e.program(12,r,0),inverse:e.noop,data:r}))?i:"")+" >\r\n "+a(l(null!=(i=null!=n?n.options:n)?i.chapters:i,n))+"\r\n "+(null!=(i=t.if.call(s,null!=(i=null!=n?n.options:n)?i.externalLink:i,{name:"if",hash:{},fn:e.program(14,r,0),inverse:e.noop,data:r}))?i:"")+"\r\n </a>\r\n"},10:function(e,n,t,o,r){return"applink-video-details"},12:function(e,n,t,o,r){var i;e.propertyIsEnumerable;return' href="'+e.escapeExpression(e.lambda(null!=(i=null!=n?n.options:n)?i.externalLink:i,n))+'"\r\n target="_blank"\r\n'},14:function(e,n,t,o,r){e.propertyIsEnumerable;var i,l=e.lambda;return'<div class="d-inline-block '+e.escapeExpression(l(null!=(i=null!=(i=null!=n?n.options:n)?i.styles:i)?i.smallSvgContainer:i,n))+'">'+(null!=(i=l(null!=(i=null!=n?n.options:n)?i.openExternalSvg:i,n))?i:"")+"</div>"},16:function(e,n,t,o,r){e.propertyIsEnumerable;var i,l=e.lambda,a=e.escapeExpression;return' <div class="col-6 py-1 '+a(l(null!=(i=null!=(i=null!=n?n.options:n)?i.styles:i)?i.columnNames:i,n))+'">'+a((t.lang||n&&n.lang||e.hooks.helperMissing).call(null!=n?n:e.nullContext||{},"interactives",{name:"lang",hash:{},data:r}))+'</div>\r\n <p class="col-6 mb-0 py-1">'+a(l(null!=(i=null!=n?n.options:n)?i.interactives:i,n))+"</p>\r\n"},18:function(e,n,t,o,r){e.propertyIsEnumerable;var i,l=e.lambda,a=e.escapeExpression;return' <div class="col-6 py-1 '+a(l(null!=(i=null!=(i=null!=n?n.options:n)?i.styles:i)?i.columnNames:i,n))+'">'+a((t.lang||n&&n.lang||e.hooks.helperMissing).call(null!=n?n:e.nullContext||{},"subtitles",{name:"lang",hash:{},data:r}))+'</div>\r\n <p class="col-6 mb-0 py-1">'+a(l(null!=(i=null!=n?n.options:n)?i.subtitles:i,n))+"</p>\r\n"},20:function(e,n,t,o,r){e.propertyIsEnumerable;var i,l=e.lambda,a=e.escapeExpression,s=null!=n?n:e.nullContext||{};return' <div class="col-6 py-1 '+a(l(null!=(i=null!=(i=null!=n?n.options:n)?i.styles:i)?i.columnNames:i,n))+'">'+a((t.lang||n&&n.lang||e.hooks.helperMissing).call(s,"resources",{name:"lang",hash:{},data:r}))+'</div>\r\n <a\r\n class="col-6 info-link mb-0 py-1 '+(null!=(i=t.unless.call(s,null!=(i=null!=n?n.options:n)?i.externalLink:i,{name:"unless",hash:{},fn:e.program(10,r,0),inverse:e.noop,data:r}))?i:"")+'"\r\n'+(null!=(i=t.if.call(s,null!=(i=null!=n?n.options:n)?i.externalLink:i,{name:"if",hash:{},fn:e.program(12,r,0),inverse:e.noop,data:r}))?i:"")+" >\r\n "+a(l(null!=(i=null!=n?n.options:n)?i.resources:i,n))+"\r\n "+(null!=(i=t.if.call(s,null!=(i=null!=n?n.options:n)?i.externalLink:i,{name:"if",hash:{},fn:e.program(14,r,0),inverse:e.noop,data:r}))?i:"")+"\r\n </a>\r\n"},22:function(e,n,t,o,r){e.propertyIsEnumerable;var i,l=e.lambda,a=e.escapeExpression,s=null!=n?n:e.nullContext||{};return' <div class="col-6 py-1 '+a(l(null!=(i=null!=(i=null!=n?n.options:n)?i.styles:i)?i.columnNames:i,n))+'">'+a((t.lang||n&&n.lang||e.hooks.helperMissing).call(s,"links",{name:"lang",hash:{},data:r}))+'</div>\r\n <a\r\n class="col-6 info-link mb-0 py-1 '+(null!=(i=t.unless.call(s,null!=(i=null!=n?n.options:n)?i.externalLink:i,{name:"unless",hash:{},fn:e.program(10,r,0),inverse:e.noop,data:r}))?i:"")+'"\r\n'+(null!=(i=t.if.call(s,null!=(i=null!=n?n.options:n)?i.externalLink:i,{name:"if",hash:{},fn:e.program(12,r,0),inverse:e.noop,data:r}))?i:"")+" >\r\n "+a(l(null!=(i=null!=n?n.options:n)?i.links:i,n))+"\r\n "+(null!=(i=t.if.call(s,null!=(i=null!=n?n.options:n)?i.externalLink:i,{name:"if",hash:{},fn:e.program(14,r,0),inverse:e.noop,data:r}))?i:"")+"\r\n </a>\r\n"},24:function(e,n,t,o,r){e.propertyIsEnumerable;var i,l=e.escapeExpression;return' <div class="py-1 '+l(e.lambda(null!=(i=null!=(i=null!=n?n.options:n)?i.styles:i)?i.columnNames:i,n))+'">'+l((t.lang||n&&n.lang||e.hooks.helperMissing).call(null!=n?n:e.nullContext||{},"tags",{name:"lang",hash:{},data:r}))+'</div>\r\n <div class="tags-region"></div>\r\n <div class="col-12"> </div>\r\n'},26:function(e,n,t,o,r){e.propertyIsEnumerable;var i,l=e.lambda,a=e.escapeExpression;return' <a href="'+a(l(null!=(i=null!=n?n.options:n)?i.externalLink:i,n))+'" target="_blank" class="info-link d-inline-block pt-3 '+a(l(null!=(i=null!=(i=null!=n?n.options:n)?i.styles:i)?i.columnNames:i,n))+'">\r\n '+a((t.lang||n&&n.lang||e.hooks.helperMissing).call(null!=n?n:e.nullContext||{},"goToVideo",{name:"lang",hash:{},data:r}))+'\r\n <div class="d-inline-block svg-container">'+(null!=(i=l(null!=(i=null!=n?n.options:n)?i.openExternalSvg:i,n))?i:"")+"</div>\r\n </a>\r\n"},28:function(e,n,t,o,r){e.propertyIsEnumerable;var i,l=e.escapeExpression;return' <a class="info-link applink-video-details d-inline-block pt-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||{},"viewFullDetails",{name:"lang",hash:{},data:r}))+"</a>\r\n"},compiler:[8,">= 4.3.0"],main:function(e,n,t,o,r){e.propertyIsEnumerable;var i,l=e.lambda,a=e.escapeExpression,s=null!=n?n:e.nullContext||{},c=e.hooks.helperMissing;return'<div class="content-container-region row w-100 pl-0">\r\n <div class="col-8 border-right pt-3">\r\n <p class="text-uppercase text-muted '+a(l(null!=(i=null!=(i=null!=n?n.options:n)?i.styles:i)?i.columnNames:i,n))+'">'+a((t.lang||n&&n.lang||c).call(s,"description",{name:"lang",hash:{},data:r}))+"</p>\r\n \r\n"+(null!=(i=t.unless.call(s,null!=(i=null!=n?n.options:n)?i.description:i,{name:"unless",hash:{},fn:e.program(1,r,0),inverse:e.program(3,r,0),data:r}))?i:"")+' \r\n <div class="video-preview-region col-7 my-3 pl-0"></div>\r\n </div>\r\n <div class="col-4 my-3 pr-0 pl-3">\r\n <p class="text-uppercase text-muted '+a(l(null!=(i=null!=(i=null!=n?n.options:n)?i.styles:i)?i.columnNames:i,n))+'">'+a((t.lang||n&&n.lang||c).call(s,"details",{name:"lang",hash:{},data:r}))+'</p>\r\n\r\n <div class="row">\r\n'+(null!=(i=t.if.call(s,null!=(i=null!=n?n.rating:n)?i.code:i,{name:"if",hash:{},fn:e.program(5,r,0),inverse:e.noop,data:r}))?i:"")+"\r\n"+(null!=(i=t.if.call(s,null!=n?n.productionYear:n,{name:"if",hash:{},fn:e.program(7,r,0),inverse:e.noop,data:r}))?i:"")+'\r\n <div class="col-6 py-1 '+a(l(null!=(i=null!=(i=null!=n?n.options:n)?i.styles:i)?i.columnNames:i,n))+'">'+a((t.lang||n&&n.lang||c).call(s,"duration",{name:"lang",hash:{},data:r}))+'</div>\r\n <p class="col-6 mb-0 py-1">'+a(l(null!=(i=null!=n?n.options:n)?i.duration:i,n))+"</p>\r\n\r\n"+(null!=(i=t.if.call(s,null!=(i=null!=n?n.options:n)?i.chapters:i,{name:"if",hash:{},fn:e.program(9,r,0),inverse:e.noop,data:r}))?i:"")+"\r\n"+(null!=(i=t.if.call(s,null!=(i=null!=n?n.options:n)?i.interactives:i,{name:"if",hash:{},fn:e.program(16,r,0),inverse:e.noop,data:r}))?i:"")+"\r\n"+(null!=(i=t.if.call(s,null!=(i=null!=n?n.options:n)?i.subtitles:i,{name:"if",hash:{},fn:e.program(18,r,0),inverse:e.noop,data:r}))?i:"")+"\r\n"+(null!=(i=t.if.call(s,null!=(i=null!=n?n.options:n)?i.resources:i,{name:"if",hash:{},fn:e.program(20,r,0),inverse:e.noop,data:r}))?i:"")+"\r\n"+(null!=(i=t.if.call(s,null!=(i=null!=n?n.options:n)?i.links:i,{name:"if",hash:{},fn:e.program(22,r,0),inverse:e.noop,data:r}))?i:"")+" </div>\r\n\r\n"+(null!=(i=t.if.call(s,null!=(i=null!=n?n.options:n)?i.showTags:i,{name:"if",hash:{},fn:e.program(24,r,0),inverse:e.noop,data:r}))?i:"")+"\r\n"+(null!=(i=t.if.call(s,null!=(i=null!=n?n.options:n)?i.externalLink:i,{name:"if",hash:{},fn:e.program(26,r,0),inverse:e.program(28,r,0),data:r}))?i:"")+" </div>\r\n</div>"},useData:!0})},1100:function(e,n,t){e.exports={columnNames:"QvhY0",smallSvgContainer:"_2qax8"}},1101:function(e,n,t){var o=t(10);e.exports=(o.default||o).template({1:function(e,n,t,o,r){e.propertyIsEnumerable;return' <button class="btn btn-light retry">'+e.escapeExpression((t.lang||n&&n.lang||e.hooks.helperMissing).call(null!=n?n:e.nullContext||{},"retry",{name:"lang",hash:{},data:r}))+"</button>\r\n"},compiler:[8,">= 4.3.0"],main:function(e,n,t,o,r){e.propertyIsEnumerable;var i,l=null!=n?n:e.nullContext||{};return"<div>\r\n"+(null!=(i=t.if.call(l,null!=(i=null!=n?n.options:n)?i.hasError:i,{name:"if",hash:{},fn:e.program(1,r,0),inverse:e.noop,data:r}))?i:"")+' <button class="btn btn-light cancel">'+e.escapeExpression((t.lang||n&&n.lang||e.hooks.helperMissing).call(l,"cancel",{name:"lang",hash:{},data:r}))+"</button>\r\n</div>\r\n"},useData:!0})},1102:function(e,n,t){var o=t(10);e.exports=(o.default||o).template({1:function(e,n,t,o,r){return" cursor-pointer"},3:function(e,n,t,o,r){var i;e.propertyIsEnumerable;return' <div class="bulk-checkbox-region '+(null!=(i=t.if.call(null!=n?n:e.nullContext||{},null!=(i=null!=n?n.options:n)?i.bulkPlaceholder:i,{name:"if",hash:{},fn:e.program(4,r,0),inverse:e.noop,data:r}))?i:"")+'"></div>\r\n'},4:function(e,n,t,o,r){var i;e.propertyIsEnumerable;return e.escapeExpression(e.lambda(null!=(i=null!=(i=null!=n?n.options:n)?i.styles:i)?i.bulkPlaceholder:i,n))},compiler:[8,">= 4.3.0"],main:function(e,n,t,o,r){e.propertyIsEnumerable;var i,l=e.lambda,a=e.escapeExpression,s=null!=n?n:e.nullContext||{};return'<div class="d-flex justify-content-between align-items-stretch p-3 drag-item '+a(l(null!=(i=null!=(i=null!=n?n.options:n)?i.styles:i)?i.videoItem:i,n))+(null!=(i=t.if.call(s,null!=(i=null!=n?n.options:n)?i.isClickable:i,{name:"if",hash:{},fn:e.program(1,r,0),inverse:e.noop,data:r}))?i:"")+'">\r\n'+(null!=(i=t.if.call(s,null!=(i=null!=n?n.options:n)?i.allowBulk:i,{name:"if",hash:{},fn:e.program(3,r,0),inverse:e.noop,data:r}))?i:"")+' <div class="thumbnail-region d-inline-block '+a(l(null!=(i=null!=(i=null!=n?n.options:n)?i.styles:i)?i.thumbnailContainer:i,n))+'"></div>\r\n <div class="metadata-region d-inline-block px-3 '+a(l(null!=(i=null!=(i=null!=n?n.options:n)?i.styles:i)?i.metaContainer:i,n))+'"></div>\r\n <div class="video-actions-region d-inline-block '+a(l(null!=(i=null!=(i=null!=n?n.options:n)?i.styles:i)?i.actionsContainer:i,n))+'"></div>\r\n</div>\r\n<div class="video-info-region '+a(l(null!=(i=null!=(i=null!=n?n.options:n)?i.styles:i)?i.previewContainer:i,n))+'"></div>'},useData:!0})},1103:function(e,n,t){var o=t(10);e.exports=(o.default||o).template({compiler:[8,">= 4.3.0"],main:function(e,n,t,o,r){return'<div class="videos-region"></div>'},useData:!0})},1108:function(e,n,t){"use strict";var o=t(2),r=t(4),i=t(42),l=t(309),a=t(6),s=t(30),c=t(15),u=t(0),p=t(12),f=t(1075),d=t(1052),h=t(1102),y=t.n(h),g=t(1069),m=t.n(g);function v(e){return(v="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}function b(e,n,t){return n in e?Object.defineProperty(e,n,{value:t,enumerable:!0,configurable:!0,writable:!0}):e[n]=t,e}function w(e,n){for(var t=0;t<n.length;t++){var o=n[t];o.enumerable=o.enumerable||!1,o.configurable=!0,"value"in o&&(o.writable=!0),Object.defineProperty(e,o.key,o)}}function k(e,n){return(k=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(e,n){return e.__proto__=n,e})(e,n)}function O(e){var n=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(e){return!1}}();return function(){var t,o=P(e);if(n){var r=P(this).constructor;t=Reflect.construct(o,arguments,r)}else t=o.apply(this,arguments);return C(this,t)}}function C(e,n){if(n&&("object"===v(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)}function P(e){return(P=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(e){return e.__proto__||Object.getPrototypeOf(e)})(e)}var E=function(e){!function(e,n){if("function"!=typeof n&&null!==n)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(n&&n.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),Object.defineProperty(e,"prototype",{writable:!1}),n&&k(e,n)}(g,e);var n,t,l,h=O(g);function g(e){return function(e,n){if(!(e instanceof n))throw new TypeError("Cannot call a class as a function")}(this,g),h.call(this,e)}return n=g,(t=[{key:"initialize",value:function(){this.initViewModel(),this.listenTo(this.channelName,"thumbnail:load",this.onThumbnailLoad),this.listenTo(this.channelName,"click:show:preview",this.onClickTogglePreview),this.listenTo(this.options.collectionViewChannel,"close:preview",this.onCloseCollectionPreview)}},{key:"name",get:function(){return"VideoItemComponent"}},{key:"defaults",get:function(){return{componentType:d.b.Base,allowBulk:!1}}},{key:"behaviors",get:function(){return f.a.getBehaviors(this,this.options.componentType)}},{key:"template",get:function(){return y.a}},{key:"channelName",get:function(){return p.k.generateUniqueChannelName(this)}},{key:"getTypeClassName",value:function(){switch(this.options.componentType){case d.b.ProcessingVideo:return m.a.processingVideo;default:return""}}},{key:"className",get:function(){var e="border-bottom";return this.options.allowBulk&&(e+=" ".concat(m.a.allowBulk)),this.options.componentType&&(e+=" ".concat(this.getTypeClassName())),e}},{key:"props",get:function(){return["collectionIdentifier"]}},{key:"elements",get:function(){return{"drag-selector":".drag-item",previewContainer:".".concat(m.a.previewContainer)}}},{key:"regions",value:function(){var e;return b(e={},d.a.Checkbox,{replaceElement:!0,el:".bulk-checkbox-region"}),b(e,d.a.Thumbnail,".thumbnail-region"),b(e,d.a.Metadata,".metadata-region"),b(e,d.a.VideoActions,".video-actions-region"),b(e,d.a.VideoInfo,".video-info-region"),e}},{key:"events",value:function(){return{click:"onClick"}}},{key:"initViewModel",value:function(){this.viewModel=s.a.get("".concat(this.name,":").concat(this.model.get("id")),{previewOpen:!1})}},{key:"isClickable",value:function(){return this.options.componentType!==d.b.ProcessingVideo}},{key:"onThumbnailLoad",value:function(){this.thumbnailLoaded=!0}},{key:"onClick",value:function(){this.isClickable()&&this.onClickTogglePreview(!1)}},{key:"onClickTogglePreview",value:function(){var e=!(arguments.length>0&&void 0!==arguments[0])||arguments[0];a.Radio.channel(this.options.collectionViewChannel).trigger("close:preview",this.cid),this.togglePreview(!this.viewModel.get("previewOpen")),this.logTogglePreviewAction(e)}},{key:"onNavigateAway",value:function(){this.viewModel.set({previewOpen:!1})}},{key:"togglePreview",value:function(e){var n=this;if(this.viewModel.set({previewOpen:e}),e)return this.setPreviewHeight(),this.listenToOnce(c.a.SHELL,o.a.EventNames.ROUTE,this.onNavigateAway),void this.render();this.stopListening(a.Radio.channel(c.a.SHELL),o.a.EventNames.ROUTE),this.getUI("previewContainer").height(0),window.setTimeout((function(){return n.render()}),300)}},{key:"setPreviewHeight",value:function(){var e=this;this.listenToOnce(this.getRegion(d.a.VideoInfo),"show",(function(){var n=e.getRegion(d.a.VideoInfo).currentView;e.listenTo(n,"render",(function(){e.getUI("previewContainer").height(n.$el.outerHeight())})),e.listenTo(e.channelName,"resize:preview",(function(){window.setTimeout((function(){return e.getUI("previewContainer").height(n.$el.outerHeight())}),0)})),n.isRendered()&&e.getUI("previewContainer").height(n.$el.outerHeight())}))}},{key:"onCloseCollectionPreview",value:function(e){this.cid!==e&&this.viewModel.get("previewOpen")&&this.togglePreview(!1)}},{key:"shouldLazyLoadThumbnail",value:function(){return!!p.h.isLazyLoadSupported(u.p)&&!this.thumbnailLoaded}},{key:"logTogglePreviewAction",value:function(e){var n=i.a.mergeOptions(this.options.analyticsOptions,{actionType:r.UserAction.Click,descriptor:r.ClickDescriptor.TogglePreview,workflowPhase:r.WorkflowPhase.Complete}),t={buttonClicked:e,show:this.viewModel.get("previewOpen")};i.a.logUserAction(t,n)}},{key:"viewOptions",value:function(){return{styles:m.a,allowBulk:this.options.allowBulk,bulkPlaceholder:this.options.componentType===d.b.ProcessingVideo&&this.options.allowBulk,isClickable:this.isClickable()}}},{key:"onRender",value:function(){f.a.renderRegions(this,this.options.componentType)}},{key:"onAttach",value:function(){this.viewModel.get("previewOpen")&&this.togglePreview(!0)}}])&&w(n.prototype,t),l&&w(n,l),Object.defineProperty(n,"prototype",{writable:!1}),g}(o.a.Component),x=t(305),S=t(102),R=t(9),I=t(306),j=t(1103),_=t.n(j);function T(e){return(T="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}function V(e,n){if(!(e instanceof n))throw new TypeError("Cannot call a class as a function")}function M(e,n){for(var t=0;t<n.length;t++){var o=n[t];o.enumerable=o.enumerable||!1,o.configurable=!0,"value"in o&&(o.writable=!0),Object.defineProperty(e,o.key,o)}}function D(e,n,t){return n&&M(e.prototype,n),t&&M(e,t),Object.defineProperty(e,"prototype",{writable:!1}),e}function L(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)}function B(e,n){return(B=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(e,n){return e.__proto__=n,e})(e,n)}function A(e){var n=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(e){return!1}}();return function(){var t,o=U(e);if(n){var r=U(this).constructor;t=Reflect.construct(o,arguments,r)}else t=o.apply(this,arguments);return N(this,t)}}function N(e,n){if(n&&("object"===T(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)}function U(e){return(U=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(e){return e.__proto__||Object.getPrototypeOf(e)})(e)}t.d(n,"a",(function(){return W}));var H=function(e){L(t,e);var n=A(t);function t(e){return V(this,t),n.call(this,e)}return D(t,[{key:"name",get:function(){return"VideoItemListComponent"}},{key:"childView",get:function(){return E}},{key:"childViewOptions",get:function(){var e=this;return function(n){return{componentType:n.get("status")===S.a.Processing?d.b.ProcessingVideo:e.options.videoItemComponentType,videoWithMetadata:e.options.videosWithMetadata&&e.options.videosWithMetadata.get(n.get("id")),allowBulk:e.options.allowBulk,collectionIdentifier:e.options.collectionIdentifier,application:e.options.application,pendingItems:e.options.pendingItems,config:e.options.config,sourceMetadataOptions:e.options.sourceMetadataOptions,collectionViewChannel:e.options.collectionViewChannel,customerHasLocalCache:e.options.customerHasLocalCache,customerHasExchange:e.options.customerHasExchange,customerHasCustomLibrary:e.options.customerHasCustomLibrary,analyticsOptions:e.options.analyticsOptions,videoCollectionSource:e.options.videoCollectionSource,currentUser:e.options.currentUser}}}}]),t}(o.a.ComponentCollection),W=function(e){L(t,e);var n=A(t);function t(e){return V(this,t),n.call(this,e)}return D(t,[{key:"name",get:function(){return"VideoListView"}},{key:"className",get:function(){return"bg-white"}},{key:"props",get:function(){return["collectionIdentifier"]}},{key:"template",get:function(){return _.a}},{key:"defaults",get:function(){return{videoItemComponentType:d.b.Base,allowBulk:!1,emptyState:R.c.Default,videoCollectionSource:I.d.Folder}}},{key:"behaviors",get:function(){return[{behaviorClass:x.c,selector:".lazy-img",minBrowserSupportVersion:u.p},{behaviorClass:l.a,region:"videos",type:this.options.emptyStateType,componentOptions:this.options.emptyStateOptions,emptyStateComponents:u.h}]}},{key:"regions",value:function(){return{videos:".videos-region"}}},{key:"onRender",value:function(){var e=new H({collection:this.collection,videosWithMetadata:this.options.videosWithMetadata,videoItemComponentType:this.options.videoItemComponentType,allowBulk:this.options.allowBulk,collectionIdentifier:this.collectionIdentifier,application:this.options.application,pendingItems:this.options.pendingItems,config:this.options.config,sourceMetadataOptions:this.options.sourceMetadataOptions,collectionViewChannel:this.options.collectionViewChannel,customerHasLocalCache:this.options.customerHasLocalCache,customerHasExchange:this.options.customerHasExchange,customerHasCustomLibrary:this.options.customerHasCustomLibrary,analyticsOptions:i.a.mergeOptions(this.options.analyticsOptions,{location:r.LocationContext.VideoListItem,entity:r.EntityType.Video}),videoCollectionSource:this.options.videoCollectionSource,currentUser:this.options.currentUser});this.showChildView("videos",e)}}]),t}(o.a.Component)},1341:function(e,n,t){e.exports={svgContainer:"_2KSbB"}},1342:function(e,n,t){var o=t(10);e.exports=(o.default||o).template({1:function(e,n,t,o,r){e.propertyIsEnumerable;var i,l=e.lambda,a=e.escapeExpression;return' <a class="d-inline-block ml-2 '+a(l(null!=(i=null!=(i=null!=n?n.options:n)?i.styles:i)?i.svgContainer:i,n))+'" href="'+a(l(null!=(i=null!=n?n.options:n)?i.supportUrl:i,n))+'">'+(null!=(i=l(null!=(i=null!=n?n.options:n)?i.svg:i,n))?i:"")+"</a>\r\n"},compiler:[8,">= 4.3.0"],main:function(e,n,t,o,r){e.propertyIsEnumerable;var i,l=null!=n?n:e.nullContext||{},a=e.hooks.helperMissing,s=e.escapeExpression;return'<div class="pl-3 pt-3 pr-3">\r\n <div class="border-bottom">\r\n <div class="d-flex align-items-center pb-3 border-bottom">\r\n <h1 class="h3 d-inline-block m-0">'+s((t.lang||n&&n.lang||a).call(l,"heading",{name:"lang",hash:{},data:r}))+" </h1>\r\n"+(null!=(i=t.if.call(l,null!=(i=null!=n?n.options:n)?i.supportUrl:i,{name:"if",hash:{},fn:e.program(1,r,0),inverse:e.noop,data:r}))?i:"")+' </div>\r\n <p class="py-3 m-0">\r\n '+s((t.lang||n&&n.lang||a).call(l,"description",{name:"lang",hash:{},data:r}))+'\r\n </p>\r\n </div> \r\n</div>\r\n<div class="video-list-region"></div>\r\n<div class="pagination-region"></div>\r\n<div class="empty-region"></div>'},useData:!0})},1457:function(e,n,t){"use strict";t.r(n),t.d(n,"RestrictedVideoListView",(function(){return I}));var o=t(2),r=t(5),i=t(3),l=t(16),a=t(144),s=t(1083),c=t(310),u=t(308),p=t(49),f=t(0),d=t(9),h=t(202),y=t(103),g=t(1108),m=t(1052),v=t(145),b=t(1341),w=t.n(b),k=t(1342),O=t.n(k);function C(e){return(C="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}function P(e,n){for(var t=0;t<n.length;t++){var o=n[t];o.enumerable=o.enumerable||!1,o.configurable=!0,"value"in o&&(o.writable=!0),Object.defineProperty(e,o.key,o)}}function E(e,n){return(E=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(e,n){return e.__proto__=n,e})(e,n)}function x(e){var n=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(e){return!1}}();return function(){var t,o=R(e);if(n){var r=R(this).constructor;t=Reflect.construct(o,arguments,r)}else t=o.apply(this,arguments);return S(this,t)}}function S(e,n){if(n&&("object"===C(n)||"function"==typeof n))return n;if(void 0!==n)throw new TypeError("Derived constructors may only return object or undefined");return function(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}(e)}function R(e){return(R=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(e){return e.__proto__||Object.getPrototypeOf(e)})(e)}var I=function(e){!function(e,n){if("function"!=typeof n&&null!==n)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(n&&n.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),Object.defineProperty(e,"prototype",{writable:!1}),n&&E(e,n)}(k,e);var n,t,o,b=x(k);function k(e){return function(e,n){if(!(e instanceof n))throw new TypeError("Cannot call a class as a function")}(this,k),b.call(this,e)}return n=k,(t=[{key:"initialize",value:function(){this.bindListeners(),this.restrictedVideoDataService=r.a.getInstance(f.g.RestrictedVideo,this),this.videoDataService=r.a.getInstance(f.g.Video,this)}},{key:"bindListeners",value:function(){this.listenTo(f.e.RESTRICTED_VIDEO,"".concat(f.f.RESTRICTED_VIDEOS,":").concat(this.options.page,":sync"),this.render),this.listenTo(this.channelName,"fetch:video:with:metadata",this.fetchVideoWithMetadata),this.listenTo(f.e.RESTRICTED_VIDEO,"cache:cleared",this.render)}},{key:"name",get:function(){return"RestrictedVideoListView"}},{key:"title",get:function(){return i.a.getPhrase(this.lang,"title")}},{key:"className",get:function(){return"bg-white"}},{key:"channelName",get:function(){return"".concat(this.name).concat(this.cid)}},{key:"template",get:function(){return O.a}},{key:"lang",get:function(){return"videoAccess.restrictedVideoList"}},{key:"behaviors",get:function(){return[{behaviorClass:a.a,selector:".".concat(w.a.svgContainer),title:i.a.getPhrase(this.lang,"findOutMore")}]}},{key:"defaults",get:function(){return{page:1}}},{key:"regions",value:function(){return{videos:{replaceElement:!0,el:".video-list-region",partialLoading:d.h.VideoList},pagination:{replaceElement:!0,el:".pagination-region"},empty:{replaceElement:!0,el:".empty-region"}}}},{key:"setVideosWithMetadata",value:function(){this.videoCollection&&!this.videosWithMetadata&&(this.videosWithMetadata=new p.a(this.videoCollection.map((function(e){return new y.a({id:e.get("id")})}))))}},{key:"renderVideoList",value:function(){this.showChildView("videos",new g.a({collection:this.videoCollection,videosWithMetadata:this.videosWithMetadata,application:f.b.VIDEO_ACCESS,collectionIdentifier:null,videoItemComponentType:m.b.VideoAccess,config:this.config,emptyStateType:d.c.VideoAccess,emptyStateOptions:{heading:i.a.getPhrase(this.lang,"emptyStateHeading")},collectionViewChannel:this.channelName,currentUser:this.currentUser}))}},{key:"renderPagination",value:function(){var e=this.restrictedVideoDataService.getPaginationCursors(this.options.page);this.showChildView("pagination",new s.a({cursors:e,appLink:{application:f.b.VIDEO_ACCESS,action:f.a.VideoAccess.HOME},cursorParamName:"page"}))}},{key:"fetchVideoWithMetadata",value:function(e){var n=this;this.videoDataService.getVideo(e,(function(t){var o=n.videosWithMetadata.get(e);o&&(o.set(t.toJSON()),o.set({dataFetched:!0}))}))}},{key:"requiredResources",get:function(){return{config:h.b.config,currentUser:v.b.currentUser}}},{key:"onBeforeRender",value:function(){return this.videoCollection=this.restrictedVideoDataService.getRestrictedVideos(this.options.page),!!this.videoCollection&&(this.setVideosWithMetadata(),!0)}},{key:"viewOptions",value:function(){var e,n;return{styles:w.a,supportUrl:c.a.getArticle(null===(e=this.config)||void 0===e?void 0:e.get("supportSiteUrl"),u.a.VideoAccess,null===(n=this.currentUser)||void 0===n?void 0:n.get("countryCode")),svg:l.a.getSvg(l.b.Info)}}},{key:"onRender",value:function(){this.renderVideoList(),this.renderPagination()}}])&&P(n.prototype,t),o&&P(n,o),Object.defineProperty(n,"prototype",{writable:!1}),k}(o.a.View)}}]);
|