@clickview/library-editor 1.1.37-dev.1 → 1.1.37-dev.3
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 +2 -2
- package/dist/en.json +1 -1
- package/dist/scripts/{0-ae5038826f.chunk.js → 0-33fbc3a064.chunk.js} +1 -1
- package/dist/scripts/1-2ca34a4655.chunk.js +1 -0
- package/dist/scripts/{10-ca05201620.chunk.js → 10-6b8ab24a49.chunk.js} +1 -1
- package/dist/scripts/{11-6ba4ed7ef0.chunk.js → 11-125811de5b.chunk.js} +1 -1
- package/dist/scripts/12-df432c3d45.chunk.js +1 -0
- package/dist/scripts/{13-af40ed3499.chunk.js → 13-85afb73979.chunk.js} +1 -1
- package/dist/scripts/{14-3bca4baa31.chunk.js → 14-0fd7fc5c6a.chunk.js} +1 -1
- package/dist/scripts/{15-d1a8e9529c.chunk.js → 15-5a08b7a6cf.chunk.js} +1 -1
- package/dist/scripts/{16-3815855eb9.chunk.js → 16-21a9b6122c.chunk.js} +1 -1
- package/dist/scripts/{17-280523c91e.chunk.js → 17-b403ef430d.chunk.js} +1 -1
- package/dist/scripts/{2-cd4ed2b964.chunk.js → 2-9d344bc1e2.chunk.js} +1 -1
- package/dist/scripts/20-2af80522fd.chunk.js +1 -0
- package/dist/scripts/21-f0572f2966.chunk.js +1 -0
- package/dist/scripts/22-c5f99eff23.chunk.js +1 -0
- package/dist/scripts/23-2e5d05843b.chunk.js +1 -0
- package/dist/scripts/24-5453264649.chunk.js +1 -0
- package/dist/scripts/25-418a6a7b90.chunk.js +1 -0
- package/dist/scripts/26-8439181c29.chunk.js +1 -0
- package/dist/scripts/{27-fafd25fdaf.chunk.js → 27-a337bae69a.chunk.js} +1 -1
- package/dist/scripts/{28-7a2644f63b.chunk.js → 28-5d40a49798.chunk.js} +1 -1
- package/dist/scripts/{29-fcd822a8b1.chunk.js → 29-a6f9f64f9a.chunk.js} +1 -1
- package/dist/scripts/{3-70518d2464.chunk.js → 3-eaf22c1a17.chunk.js} +1 -1
- package/dist/scripts/{30-a0006b182d.chunk.js → 30-ae9e6857e3.chunk.js} +1 -1
- package/dist/scripts/{31-7ffed9c47a.chunk.js → 31-b26d628fa9.chunk.js} +1 -1
- package/dist/scripts/{32-8550d4debb.chunk.js → 32-f81bcfbb0e.chunk.js} +1 -1
- package/dist/scripts/{33-ec71147324.chunk.js → 33-9269a7d4c8.chunk.js} +1 -1
- package/dist/scripts/34-dec380695f.chunk.js +1 -0
- package/dist/scripts/35-579a683bc7.chunk.js +1 -0
- package/dist/scripts/36-551fb9df3c.chunk.js +1 -0
- package/dist/scripts/{37-c0607c21e3.chunk.js → 37-6d8831dc5f.chunk.js} +1 -1
- package/dist/scripts/{38-8ef5b16d58.chunk.js → 38-9509153c58.chunk.js} +1 -1
- package/dist/scripts/{39-0fcef24c51.chunk.js → 39-3afd8ba1a5.chunk.js} +1 -1
- package/dist/scripts/{4-aada0cbfb6.chunk.js → 4-c122e4cc14.chunk.js} +1 -1
- package/dist/scripts/{40-32c969eccb.chunk.js → 40-66d8519e7b.chunk.js} +1 -1
- package/dist/scripts/{41-b4516f8bd3.chunk.js → 41-155d528f56.chunk.js} +1 -1
- package/dist/scripts/42-d4c321a488.chunk.js +1 -0
- package/dist/scripts/43-4d487c57c2.chunk.js +1 -0
- package/dist/scripts/{44-cb445d74eb.chunk.js → 44-dfaaabfb96.chunk.js} +1 -1
- package/dist/scripts/{45-9f602323b9.chunk.js → 45-bdbcd2c90f.chunk.js} +1 -1
- package/dist/scripts/{46-b325e236c0.chunk.js → 46-685e3d4d32.chunk.js} +1 -1
- package/dist/scripts/{47-5c77a7ad32.chunk.js → 47-cf3f13fb7f.chunk.js} +1 -1
- package/dist/scripts/{48-5b6ba1e103.chunk.js → 48-89f502b8e5.chunk.js} +1 -1
- package/dist/scripts/{49-1353b5cd44.chunk.js → 49-4e0c58aeda.chunk.js} +1 -1
- package/dist/scripts/5-4c28c3dc77.chunk.js +1 -0
- package/dist/scripts/{50-9780d89e4d.chunk.js → 50-135dbd8541.chunk.js} +1 -1
- package/dist/scripts/{51-07b25e7e28.chunk.js → 51-6b782a2e70.chunk.js} +1 -1
- package/dist/scripts/{52-0ef3f6c446.chunk.js → 52-e1352c7504.chunk.js} +1 -1
- package/dist/scripts/{53-bca80d41dc.chunk.js → 53-5cf59354d5.chunk.js} +1 -1
- package/dist/scripts/{54-92bea1b94f.chunk.js → 54-fdd1cef7a0.chunk.js} +1 -1
- package/dist/scripts/{55-47436a9e19.chunk.js → 55-73b8d89529.chunk.js} +1 -1
- package/dist/scripts/{56-ba7f079d0d.chunk.js → 56-48dc35df45.chunk.js} +1 -1
- package/dist/scripts/{57-b9915c23c7.chunk.js → 57-4cc3723b10.chunk.js} +1 -1
- package/dist/scripts/{58-60d3aaeb75.chunk.js → 58-0b01167320.chunk.js} +1 -1
- package/dist/scripts/{59-efdbb58ff4.chunk.js → 59-45ce96cb7d.chunk.js} +1 -1
- package/dist/scripts/6-f751c282bd.chunk.js +1 -0
- package/dist/scripts/{60-4b0309c073.chunk.js → 60-2661f58b24.chunk.js} +1 -1
- package/dist/scripts/{61-843e612150.chunk.js → 61-001710c3c7.chunk.js} +1 -1
- package/dist/scripts/{62-34d9b447b3.chunk.js → 62-dc73d8ffc2.chunk.js} +1 -1
- package/dist/scripts/{63-169e9ff9bf.chunk.js → 63-7230d00250.chunk.js} +1 -1
- package/dist/scripts/{64-14ff01e6d9.chunk.js → 64-eb7fd7e8ca.chunk.js} +1 -1
- package/dist/scripts/65-cdacc678be.chunk.js +1 -0
- package/dist/scripts/{66-36146b544a.chunk.js → 66-288c51aa74.chunk.js} +1 -1
- package/dist/scripts/{67-a21072ca9f.chunk.js → 67-1a0547b17c.chunk.js} +1 -1
- package/dist/scripts/{68-d50d90a237.chunk.js → 68-829920fc30.chunk.js} +1 -1
- package/dist/scripts/{69-452730a23c.chunk.js → 69-f61c516940.chunk.js} +1 -1
- package/dist/scripts/{7-a2afd3d627.chunk.js → 7-498aa44529.chunk.js} +1 -1
- package/dist/scripts/{70-af636493c9.chunk.js → 70-ef582e338b.chunk.js} +1 -1
- package/dist/scripts/{71-2436fe0add.chunk.js → 71-a8d82c9a87.chunk.js} +1 -1
- package/dist/scripts/{72-75e03ea301.chunk.js → 72-fc101095e3.chunk.js} +1 -1
- package/dist/scripts/{8-52c5cfe789.chunk.js → 8-4f65187690.chunk.js} +1 -1
- package/dist/scripts/9-2f1990095a.chunk.js +1 -0
- package/dist/scripts/bundle-8e5c12e718.min.js +10 -0
- package/dist/scripts/polyfills-c490b01eaa.min.js +1 -0
- package/package.json +3 -3
- package/dist/css/library-editor-app-7afbf80a1d.css +0 -133
- package/dist/scripts/0-febcb6d3a4.chunk.js +0 -1
- package/dist/scripts/1-25a3da17f6.chunk.js +0 -1
- package/dist/scripts/1-95ec34859a.chunk.js +0 -1
- package/dist/scripts/1-9614387684.chunk.js +0 -1
- package/dist/scripts/10-2d98ca80b8.chunk.js +0 -1
- package/dist/scripts/10-b3426444d2.chunk.js +0 -1
- package/dist/scripts/11-34b3dcf731.chunk.js +0 -11
- package/dist/scripts/12-4a9be00da8.chunk.js +0 -1
- package/dist/scripts/12-763afd0bb2.chunk.js +0 -1
- package/dist/scripts/12-79687f49dc.chunk.js +0 -1
- package/dist/scripts/13-8d31c7a516.chunk.js +0 -1
- package/dist/scripts/13-d2a1610ca8.chunk.js +0 -1
- package/dist/scripts/14-b122e4c86a.chunk.js +0 -1
- package/dist/scripts/14-e05e9a13a3.chunk.js +0 -1
- package/dist/scripts/15-b2488b1148.chunk.js +0 -1
- package/dist/scripts/15-bf35768005.chunk.js +0 -1
- package/dist/scripts/16-5559065630.chunk.js +0 -1
- package/dist/scripts/16-9f27dff55b.chunk.js +0 -1
- package/dist/scripts/17-a663a59321.chunk.js +0 -1
- package/dist/scripts/17-e2db69d7a2.chunk.js +0 -1
- package/dist/scripts/2-fa738d2525.chunk.js +0 -1
- package/dist/scripts/20-4a29bfd556.chunk.js +0 -1
- package/dist/scripts/20-9a0c206d53.chunk.js +0 -1
- package/dist/scripts/20-f56b426967.chunk.js +0 -1
- package/dist/scripts/21-2932130dd3.chunk.js +0 -1
- package/dist/scripts/21-39b37c0785.chunk.js +0 -1
- package/dist/scripts/21-f9085fa01b.chunk.js +0 -1
- package/dist/scripts/22-1d68f61cad.chunk.js +0 -1
- package/dist/scripts/22-41611d204e.chunk.js +0 -1
- package/dist/scripts/22-769d86ff22.chunk.js +0 -1
- package/dist/scripts/23-17aed223d8.chunk.js +0 -1
- package/dist/scripts/23-67751683a2.chunk.js +0 -1
- package/dist/scripts/23-ccb1d9bb11.chunk.js +0 -1
- package/dist/scripts/24-3aacb050a7.chunk.js +0 -1
- package/dist/scripts/24-a3972fce39.chunk.js +0 -1
- package/dist/scripts/24-a4a38428f5.chunk.js +0 -1
- package/dist/scripts/25-0d377559e4.chunk.js +0 -1
- package/dist/scripts/25-5d9db5625b.chunk.js +0 -1
- package/dist/scripts/25-c25be9586b.chunk.js +0 -1
- package/dist/scripts/26-1e93a2e404.chunk.js +0 -1
- package/dist/scripts/26-477287a718.chunk.js +0 -1
- package/dist/scripts/26-6e1bd41d98.chunk.js +0 -1
- package/dist/scripts/27-43011c79ea.chunk.js +0 -1
- package/dist/scripts/27-eb05620229.chunk.js +0 -1
- package/dist/scripts/28-abceff753f.chunk.js +0 -1
- package/dist/scripts/28-fdfbd30a1a.chunk.js +0 -1
- package/dist/scripts/29-92181bf12b.chunk.js +0 -1
- package/dist/scripts/29-93acb2510d.chunk.js +0 -1
- package/dist/scripts/3-06739cf8ee.chunk.js +0 -1
- package/dist/scripts/3-7fefbcb8e7.chunk.js +0 -1
- package/dist/scripts/30-3448994d7f.chunk.js +0 -1
- package/dist/scripts/30-9571438e00.chunk.js +0 -1
- package/dist/scripts/31-519a6f97a7.chunk.js +0 -1
- package/dist/scripts/31-521dc50626.chunk.js +0 -1
- package/dist/scripts/32-b3ff30cd69.chunk.js +0 -1
- package/dist/scripts/32-e113e76609.chunk.js +0 -1
- package/dist/scripts/33-03e4570ba4.chunk.js +0 -1
- package/dist/scripts/33-8ff79d76e9.chunk.js +0 -1
- package/dist/scripts/34-3aa5444c72.chunk.js +0 -1
- package/dist/scripts/34-ba214c77c4.chunk.js +0 -1
- package/dist/scripts/34-c165878a55.chunk.js +0 -1
- package/dist/scripts/35-496cf9657a.chunk.js +0 -1
- package/dist/scripts/35-ee8df1092d.chunk.js +0 -1
- package/dist/scripts/35-fd26db6b11.chunk.js +0 -1
- package/dist/scripts/36-0692769f72.chunk.js +0 -1
- package/dist/scripts/36-6dcaf0b580.chunk.js +0 -1
- package/dist/scripts/36-fc7e583ebe.chunk.js +0 -1
- package/dist/scripts/37-a9c93f251b.chunk.js +0 -1
- package/dist/scripts/37-bd67192059.chunk.js +0 -1
- package/dist/scripts/38-0483bd181e.chunk.js +0 -1
- package/dist/scripts/38-8f76ecfdc1.chunk.js +0 -1
- package/dist/scripts/39-1412d3415e.chunk.js +0 -1
- package/dist/scripts/39-7d62285dc6.chunk.js +0 -1
- package/dist/scripts/4-23928158c9.chunk.js +0 -1
- package/dist/scripts/4-c9d9c3f585.chunk.js +0 -1
- package/dist/scripts/40-1100b25c17.chunk.js +0 -1
- package/dist/scripts/40-35872f5c55.chunk.js +0 -1
- package/dist/scripts/41-17f9ee7943.chunk.js +0 -1
- package/dist/scripts/41-cddc464a52.chunk.js +0 -1
- package/dist/scripts/42-48c096333c.chunk.js +0 -1
- package/dist/scripts/42-befbc2640c.chunk.js +0 -1
- package/dist/scripts/42-e1c4a825ab.chunk.js +0 -1
- package/dist/scripts/43-99dfda45da.chunk.js +0 -1
- package/dist/scripts/43-f100d6d1e5.chunk.js +0 -1
- package/dist/scripts/43-f14faad3bb.chunk.js +0 -1
- package/dist/scripts/44-264c87207e.chunk.js +0 -1
- package/dist/scripts/44-ce0ab6177c.chunk.js +0 -1
- package/dist/scripts/45-178a02640b.chunk.js +0 -1
- package/dist/scripts/45-ad6e678f2f.chunk.js +0 -1
- package/dist/scripts/46-9b3358a3d5.chunk.js +0 -1
- package/dist/scripts/46-cf15530ad9.chunk.js +0 -1
- package/dist/scripts/47-6a04298336.chunk.js +0 -1
- package/dist/scripts/47-e575a166bf.chunk.js +0 -1
- package/dist/scripts/48-dbbf2d7201.chunk.js +0 -1
- package/dist/scripts/48-f2f1b3fd16.chunk.js +0 -1
- package/dist/scripts/49-33c71f44a7.chunk.js +0 -1
- package/dist/scripts/49-9343acde91.chunk.js +0 -1
- package/dist/scripts/5-4c24ef4b17.chunk.js +0 -1
- package/dist/scripts/5-5209933115.chunk.js +0 -1
- package/dist/scripts/5-62e99b780c.chunk.js +0 -1
- package/dist/scripts/50-2d0737f078.chunk.js +0 -1
- package/dist/scripts/50-f49703fd03.chunk.js +0 -1
- package/dist/scripts/51-30c3d48b94.chunk.js +0 -1
- package/dist/scripts/52-046c6e3cea.chunk.js +0 -1
- package/dist/scripts/52-ebf5f9e606.chunk.js +0 -1
- package/dist/scripts/53-b7b2f066c8.chunk.js +0 -1
- package/dist/scripts/53-d2e5a771d8.chunk.js +0 -1
- package/dist/scripts/54-016314b2fd.chunk.js +0 -1
- package/dist/scripts/54-86dfdcd867.chunk.js +0 -1
- package/dist/scripts/55-8a161d074c.chunk.js +0 -1
- package/dist/scripts/55-bc59c633de.chunk.js +0 -1
- package/dist/scripts/56-13f4f5a449.chunk.js +0 -1
- package/dist/scripts/56-ed3278b2f3.chunk.js +0 -1
- package/dist/scripts/57-28786c8bc4.chunk.js +0 -1
- package/dist/scripts/57-f5b3ccda00.chunk.js +0 -1
- package/dist/scripts/58-b6c5f3e09a.chunk.js +0 -1
- package/dist/scripts/58-ca7fd2ba45.chunk.js +0 -1
- package/dist/scripts/59-510b4148b5.chunk.js +0 -1
- package/dist/scripts/6-7ee0806388.chunk.js +0 -1
- package/dist/scripts/6-8c482ecdbb.chunk.js +0 -1
- package/dist/scripts/6-e559a1a8ab.chunk.js +0 -1
- package/dist/scripts/60-6948885f51.chunk.js +0 -1
- package/dist/scripts/60-e051efa5b9.chunk.js +0 -1
- package/dist/scripts/61-129e7151e0.chunk.js +0 -1
- package/dist/scripts/61-980f51cf2c.chunk.js +0 -1
- package/dist/scripts/62-bb55bd4eae.chunk.js +0 -1
- package/dist/scripts/63-0a79957d8f.chunk.js +0 -1
- package/dist/scripts/63-1bfeb775c1.chunk.js +0 -1
- package/dist/scripts/64-130892f373.chunk.js +0 -1
- package/dist/scripts/64-49a071e139.chunk.js +0 -1
- package/dist/scripts/65-007f163e24.chunk.js +0 -1
- package/dist/scripts/65-564cd8d350.chunk.js +0 -1
- package/dist/scripts/65-be3482316e.chunk.js +0 -1
- package/dist/scripts/66-304e0ea556.chunk.js +0 -1
- package/dist/scripts/66-f78f687d62.chunk.js +0 -1
- package/dist/scripts/67-6ac2a3fb0a.chunk.js +0 -1
- package/dist/scripts/67-9ca4b99367.chunk.js +0 -1
- package/dist/scripts/68-0c004d7973.chunk.js +0 -1
- package/dist/scripts/68-53366f3d02.chunk.js +0 -1
- package/dist/scripts/69-4f02bdedb3.chunk.js +0 -1
- package/dist/scripts/69-d78d2baa8e.chunk.js +0 -1
- package/dist/scripts/7-dc2fca7ba8.chunk.js +0 -1
- package/dist/scripts/7-e5fd456c94.chunk.js +0 -1
- package/dist/scripts/70-276d0252a7.chunk.js +0 -1
- package/dist/scripts/71-831d3df8c8.chunk.js +0 -1
- package/dist/scripts/71-d90524fd36.chunk.js +0 -1
- package/dist/scripts/72-61c4180fbb.chunk.js +0 -1
- package/dist/scripts/72-d9b23cd356.chunk.js +0 -1
- package/dist/scripts/8-31707af46b.chunk.js +0 -1
- package/dist/scripts/8-ea8f937f63.chunk.js +0 -1
- package/dist/scripts/9-4232504733.chunk.js +0 -1
- package/dist/scripts/9-4e71fabbfb.chunk.js +0 -1
- package/dist/scripts/9-e625bd6b54.chunk.js +0 -1
- package/dist/scripts/bundle-3b246c868d.min.js +0 -10
- package/dist/scripts/bundle-3dbae718ac.min.js +0 -10
- package/dist/scripts/bundle-6294c1ed41.min.js +0 -10
- package/dist/scripts/bundle-6351493787.min.js +0 -10
- package/dist/scripts/bundle-cf501491f0.min.js +0 -10
- package/dist/scripts/polyfills-7c285dce43.min.js +0 -1
- package/dist/scripts/polyfills-995b298d2c.min.js +0 -1
- package/dist/scripts/polyfills-fe45278ea2.min.js +0 -1
|
@@ -1 +0,0 @@
|
|
|
1
|
-
(window.webpackJsonp_clickview_library_editor=window.webpackJsonp_clickview_library_editor||[]).push([[12],{1004:function(e,t,n){"use strict";var o=n(987),i=n.n(o),r=n(988),a=n.n(r);function l(e){return(l="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}function s(e,t){for(var n=0;n<t.length;n++){var o=t[n];o.enumerable=o.enumerable||!1,o.configurable=!0,"value"in o&&(o.writable=!0),Object.defineProperty(e,o.key,o)}}function c(e,t){return(c=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e})(e,t)}function u(e){var t=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(e){return!1}}();return function(){var n,o=f(e);if(t){var i=f(this).constructor;n=Reflect.construct(o,arguments,i)}else n=o.apply(this,arguments);return p(this,n)}}function p(e,t){return!t||"object"!==l(t)&&"function"!=typeof t?function(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}(e):t}function f(e){return(f=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)})(e)}var h=function(e){!function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),t&&c(e,t)}(l,e);var t,n,o,r=u(l);function l(e){return function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,l),r.call(this,e)}return t=l,(n=[{key:"name",get:function(){return"DraggableItemComponent"}},{key:"template",get:function(){return a.a}},{key:"className",get:function(){return"".concat(i.a.dragItem," p-3")}},{key:"viewOptions",value:function(){return Object.assign({styles:i.a},this.options)}}])&&s(t.prototype,n),o&&s(t,o),l}(n(2).a.Component),d={delay:150,cursorAt:{left:-20,top:10},refreshPositions:!0};n.d(t,"c",(function(){return i.a})),n.d(t,"b",(function(){return h})),n.d(t,"a",(function(){return d}))},1005:function(e,t,n){e.exports={checkboxContainer:"_3BLCF",thumbnailContainer:"_16jlV",metaContainer:"_2mMws",actionsContainer:"I31I0",allowBulk:"_2VkOe",videoItem:"PoHa-",processingVideo:"qFjv2",bulkPlaceholder:"_3iAFa",previewContainer:"_2UBZX"}},1006:function(e,t,n){"use strict";n.d(t,"a",(function(){return y})),n.d(t,"b",(function(){return g}));var o=n(1),i=n(2),r=n(999),a=n.n(r),l=n(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,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function u(e,t){for(var n=0;n<t.length;n++){var o=t[n];o.enumerable=o.enumerable||!1,o.configurable=!0,"value"in o&&(o.writable=!0),Object.defineProperty(e,o.key,o)}}function p(e,t){return(p=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e})(e,t)}function f(e){var t=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(e){return!1}}();return function(){var n,o=d(e);if(t){var i=d(this).constructor;n=Reflect.construct(o,arguments,i)}else n=o.apply(this,arguments);return h(this,n)}}function h(e,t){return!t||"object"!==s(t)&&"function"!=typeof t?function(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}(e):t}function d(e){return(d=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)})(e)}var y="checkbox-all",g=function(e){!function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),t&&p(e,t)}(s,e);var t,n,i,r=f(s);function s(e){return function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,s),r.call(this,e)}return t=s,(n=[{key:"initialize",value:function(){this.getViewModel(),this.bindListeners()}},{key:"name",get:function(){return"BulkCheckboxComponent"}},{key:"className",get:function(){return this.options.className}},{key:"template",get:function(){return a.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",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(t.prototype,n),i&&u(t,i),s}(i.a.Component)},1007:function(e,t,n){"use strict";var o=n(0),i=n(57),r=n(190),a=n(192),l=n(1013),s=n(1),c=n(2),u=n(15),p=n(133),f=n(12),h=n(990),d=n(1019),y=n.n(d),g=n(1020),m=n.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,t){for(var n=0;n<t.length;n++){var o=t[n];o.enumerable=o.enumerable||!1,o.configurable=!0,"value"in o&&(o.writable=!0),Object.defineProperty(e,o.key,o)}}function k(e,t){return(k=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e})(e,t)}function w(e){var t=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(e){return!1}}();return function(){var n,o=C(e);if(t){var i=C(this).constructor;n=Reflect.construct(o,arguments,i)}else n=o.apply(this,arguments);return O(this,n)}}function O(e,t){return!t||"object"!==v(t)&&"function"!=typeof t?function(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}(e):t}function C(e){return(C=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)})(e)}var E=function(e){!function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),t&&k(e,t)}(r,e);var t,n,o,i=w(r);function r(e){return function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,r),i.call(this,e)}return t=r,(n=[{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),t=this.options.showRestrictionBadge&&f.o.getRestrictionTooltipMessage(this.model);return{styles:m.a,interactive:h.h.isInteractive(this.model),subtitles:!1,resources:!1,ratingColorClass:h.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:t}}}])&&b(t.prototype,n),o&&b(t,o),r}(c.a.Component),S=n(1e3),R=n(989),P=n(1021),x=n.n(P),I=n(986),_=n.n(I);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 j(e,t){for(var n=0;n<t.length;n++){var o=t[n];o.enumerable=o.enumerable||!1,o.configurable=!0,"value"in o&&(o.writable=!0),Object.defineProperty(e,o.key,o)}}function L(e,t){return(L=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e})(e,t)}function V(e){var t=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(e){return!1}}();return function(){var n,o=D(e);if(t){var i=D(this).constructor;n=Reflect.construct(o,arguments,i)}else n=o.apply(this,arguments);return B(this,n)}}function B(e,t){return!t||"object"!==T(t)&&"function"!=typeof t?function(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}(e):t}function D(e){return(D=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)})(e)}var A=function(e){!function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),t&&L(e,t)}(a,e);var t,n,i,r=V(a);function a(e){return function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,a),r.call(this,e)}return t=a,(n=[{key:"initialize",value:function(){this.listenTo(this.model,"change:restrictions",this.render)}},{key:"name",get:function(){return"VideoItemMetadataComponent"}},{key:"template",get:function(){return x.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={},t="click .".concat(_.a.svgContainer),n="onClickBadge",t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e;var e,t,n}},{key:"onClickBadge",value:function(e){e.stopPropagation()}},{key:"renderSources",value:function(){var e=s.extend({},{model:this.model},this.options.sourceMetadataOptions);this.showChildView("sources",new S.a(e))}},{key:"renderSeries",value:function(){this.showChildView("series",new R.a({model:this.model,highlight:this.options.sourceMetadataOptions&&!!this.options.sourceMetadataOptions.highlight}))}},{key:"renderBadges",value:function(){this.showChildView("badges",new E({model:this.model}))}},{key:"viewOptions",value:function(){return{styles:_.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()}}])&&j(t.prototype,n),i&&j(t,i),a}(c.a.Component),M=n(1022),N=n.n(M);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 F(e,t){for(var n=0;n<t.length;n++){var o=t[n];o.enumerable=o.enumerable||!1,o.configurable=!0,"value"in o&&(o.writable=!0),Object.defineProperty(e,o.key,o)}}function H(e,t){return(H=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e})(e,t)}function W(e){var t=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(e){return!1}}();return function(){var n,o=Y(e);if(t){var i=Y(this).constructor;n=Reflect.construct(o,arguments,i)}else n=o.apply(this,arguments);return z(this,n)}}function z(e,t){return!t||"object"!==U(t)&&"function"!=typeof t?function(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}(e):t}function Y(e){return(Y=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)})(e)}var G=function(e){!function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),t&&H(e,t)}(l,e);var t,n,r,a=W(l);function l(e){return function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,l),a.call(this,e)}return t=l,(n=[{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"},t="click .".concat(_.a.svgContainer),n="onClickMetadata",t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e;var e,t,n}},{key:"onClickMetadata",value:function(e){e.stopPropagation()}},{key:"getVideoUrl",value:function(){var e=i.a.safeUrlConcat(this.options.config.get("onlineUrl"),"videos/".concat(this.model.get("id")));return i.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 S.a(e))}}},{key:"renderSeries",value:function(){f.y.hasCustomLibrary(this.model)&&this.showChildView("series",new R.a({model:this.model,highlight:this.options.sourceMetadataOptions&&!!this.options.sourceMetadataOptions.highlight}))}},{key:"renderBadges",value:function(){this.showChildView("badges",new E({model:this.model,showRestrictionBadge:!0}))}},{key:"viewOptions",value:function(){return{styles:_.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()}}])&&F(t.prototype,n),r&&F(t,r),l}(c.a.Component),$=n(97),q=n(99),J=n(1023),K=n.n(J);function Z(e){return(Z="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}function Q(e,t){for(var n=0;n<t.length;n++){var o=t[n];o.enumerable=o.enumerable||!1,o.configurable=!0,"value"in o&&(o.writable=!0),Object.defineProperty(e,o.key,o)}}function X(e,t){return(X=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e})(e,t)}function ee(e){var t=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(e){return!1}}();return function(){var n,o=ne(e);if(t){var i=ne(this).constructor;n=Reflect.construct(o,arguments,i)}else n=o.apply(this,arguments);return te(this,n)}}function te(e,t){return!t||"object"!==Z(t)&&"function"!=typeof t?function(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}(e):t}function ne(e){return(ne=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)})(e)}var oe=function(e){!function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),t&&X(e,t)}(a,e);var t,n,i,r=ee(a);function a(e){return function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,a),r.call(this,e)}return t=a,(n=[{key:"initialize",value:function(){this.bindListeners()}},{key:"bindListeners",value:function(){this.model.get("status")===$.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 K.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}}}])&&Q(t.prototype,n),i&&Q(t,i),a}(c.a.Component),ie=n(1024),re=n.n(ie);function ae(e){return(ae="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 le(e,t){for(var n=0;n<t.length;n++){var o=t[n];o.enumerable=o.enumerable||!1,o.configurable=!0,"value"in o&&(o.writable=!0),Object.defineProperty(e,o.key,o)}}function se(e,t){return(se=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e})(e,t)}function ce(e){var t=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(e){return!1}}();return function(){var n,o=pe(e);if(t){var i=pe(this).constructor;n=Reflect.construct(o,arguments,i)}else n=o.apply(this,arguments);return ue(this,n)}}function ue(e,t){return!t||"object"!==ae(t)&&"function"!=typeof t?function(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}(e):t}function pe(e){return(pe=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)})(e)}var fe=function(e){!function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),t&&se(e,t)}(a,e);var t,n,o,r=ce(a);function a(e){return function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,a),r.call(this,e)}return t=a,(n=[{key:"name",get:function(){return"VideoItemAwaitingReviewMetadataComponent"}},{key:"template",get:function(){return re.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=i.a.safeUrlConcat(this.options.config.get("onlineUrl"),"videos/".concat(this.model.get("id")));return i.a.urlBuilder(e,{loginPrompt:!1})}},{key:"getSeriesUrl",value:function(){if(this.model.series){var e=i.a.safeUrlConcat(this.options.config.get("onlineUrl"),"series/".concat(this.model.series.id));return i.a.urlBuilder(e,{loginPrompt:!1})}}},{key:"renderBadges",value:function(){this.showChildView("badges",new E({model:this.model,showReviewBadge:!0}))}},{key:"renderSeries",value:function(){this.showChildView("series",new R.a({model:this.model,highlight:!1,seriesUrl:this.getSeriesUrl()}))}},{key:"viewOptions",value:function(){return{styles:_.a,videoUrl:this.getVideoUrl(),openExternalSvg:u.a.getSvg(u.b.NewWindow)}}},{key:"onRender",value:function(){this.renderSeries(),this.renderBadges()}}])&&le(t.prototype,n),o&&le(t,o),a}(c.a.Component),he=n(1025),de=n.n(he),ye=n(1026),ge=n.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,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function be(e,t){for(var n=0;n<t.length;n++){var o=t[n];o.enumerable=o.enumerable||!1,o.configurable=!0,"value"in o&&(o.writable=!0),Object.defineProperty(e,o.key,o)}}function ke(e,t){return(ke=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e})(e,t)}function we(e){var t=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(e){return!1}}();return function(){var n,o=Ce(e);if(t){var i=Ce(this).constructor;n=Reflect.construct(o,arguments,i)}else n=o.apply(this,arguments);return Oe(this,n)}}function Oe(e,t){return!t||"object"!==me(t)&&"function"!=typeof t?function(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}(e):t}function Ce(e){return(Ce=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)})(e)}var Ee=function(e){!function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),t&&ke(e,t)}(a,e);var t,n,o,r=we(a);function a(e){return function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,a),r.call(this,e)}return t=a,(n=[{key:"initialize",value:function(){this.listenTo(this.model,"change:restrictions",this.render)}},{key:"name",get:function(){return"VideoItemPastReleasesMetadataComponent"}},{key:"template",get:function(){return de.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=i.a.safeUrlConcat(this.options.config.get("onlineUrl"),"videos/".concat(this.model.get("id")));return i.a.urlBuilder(e,{loginPrompt:!1})}},{key:"getSeriesUrl",value:function(){if(this.model.series){var e=i.a.safeUrlConcat(this.options.config.get("onlineUrl"),"series/".concat(this.model.series.id));return i.a.urlBuilder(e,{loginPrompt:!1})}}},{key:"renderBadges",value:function(){this.showChildView("badges",new E({model:this.model}))}},{key:"renderSeries",value:function(){this.showChildView("series",new R.a({model:this.model,highlight:!1,seriesUrl:this.getSeriesUrl()}))}},{key:"viewOptions",value:function(){return{styles:s.extend({},_.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(t.prototype,n),o&&be(t,o),a}(c.a.Component),Se=n(1027),Re=n.n(Se);function Pe(e){return(Pe="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}function xe(e,t){for(var n=0;n<t.length;n++){var o=t[n];o.enumerable=o.enumerable||!1,o.configurable=!0,"value"in o&&(o.writable=!0),Object.defineProperty(e,o.key,o)}}function Ie(e,t){return(Ie=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e})(e,t)}function _e(e){var t=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(e){return!1}}();return function(){var n,o=je(e);if(t){var i=je(this).constructor;n=Reflect.construct(o,arguments,i)}else n=o.apply(this,arguments);return Te(this,n)}}function Te(e,t){return!t||"object"!==Pe(t)&&"function"!=typeof t?function(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}(e):t}function je(e){return(je=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)})(e)}var Le=function(e){!function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),t&&Ie(e,t)}(a,e);var t,n,i,r=_e(a);function a(e){return function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,a),r.call(this,e)}return t=a,(n=[{key:"initialize",value:function(){this.listenTo(this.model,"change:restrictions",this.render)}},{key:"name",get:function(){return"VideoItemSearchMetadataComponent"}},{key:"template",get:function(){return Re.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"},t="click ".concat(_.a.svgContainer),n="onClickSvg",t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e;var e,t,n}},{key:"onClickSvg",value:function(e){e.stopPropagation()}},{key:"getKeyPhrases",value:function(){var e=this;return f.w.extractKeyPhrases(this.model.get("description"),this.model.get("_matchedWords"),100,2).map((function(t){return f.w.wordsHighlighter(f.w.escapeExpression(t),e.model.get("_matchedWords"))}))}},{key:"renderSources",value:function(){var e=s.extend({},{model:this.model},this.options.sourceMetadataOptions);this.showChildView("sources",new S.a(e))}},{key:"renderSeries",value:function(){this.showChildView("series",new R.a({model:this.model,highlight:this.options.sourceMetadataOptions&&!!this.options.sourceMetadataOptions.highlight}))}},{key:"renderBadges",value:function(){this.showChildView("badges",new E({model:this.model}))}},{key:"viewOptions",value:function(){return{styles:_.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()}}])&&xe(t.prototype,n),i&&xe(t,i),a}(c.a.Component),Ve=n(6),Be=n(1054),De=n(1028),Ae=n.n(De),Me=n(997),Ne=n.n(Me);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 Fe(e,t){for(var n=0;n<t.length;n++){var o=t[n];o.enumerable=o.enumerable||!1,o.configurable=!0,"value"in o&&(o.writable=!0),Object.defineProperty(e,o.key,o)}}function He(e,t){return(He=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e})(e,t)}function We(e){var t=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(e){return!1}}();return function(){var n,o=Ye(e);if(t){var i=Ye(this).constructor;n=Reflect.construct(o,arguments,i)}else n=o.apply(this,arguments);return ze(this,n)}}function ze(e,t){return!t||"object"!==Ue(t)&&"function"!=typeof t?function(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}(e):t}function Ye(e){return(Ye=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)})(e)}var Ge=function(e){!function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),t&&He(e,t)}(r,e);var t,n,o,i=We(r);function r(e){return function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,r),i.call(this,e)}return t=r,(n=[{key:"name",get:function(){return"VideoItemActionsComponent"}},{key:"template",get:function(){return Ae.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={},t="click .".concat(Ne.a.showPreview),n="onClickShowPreview",t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e;var e,t,n}},{key:"onClickShowPreview",value:function(e){e.stopPropagation(),this.options.channelName&&Ve.Radio.channel(this.options.channelName).trigger("click:show:preview")}},{key:"renderVideoActions",value:function(){this.showChildView("videoActions",new Be.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()}}])&&Fe(t.prototype,n),o&&Fe(t,o),r}(c.a.Component),$e=n(5),qe=n(4),Je=n(42),Ke=n(1029),Ze=n.n(Ke);function Qe(e){return(Qe="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,t){for(var n=0;n<t.length;n++){var o=t[n];o.enumerable=o.enumerable||!1,o.configurable=!0,"value"in o&&(o.writable=!0),Object.defineProperty(e,o.key,o)}}function et(e,t){return(et=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e})(e,t)}function tt(e){var t=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(e){return!1}}();return function(){var n,o=ot(e);if(t){var i=ot(this).constructor;n=Reflect.construct(o,arguments,i)}else n=o.apply(this,arguments);return nt(this,n)}}function nt(e,t){return!t||"object"!==Qe(t)&&"function"!=typeof t?function(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}(e):t}function ot(e){return(ot=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)})(e)}var it=function(e){!function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),t&&et(e,t)}(a,e);var t,n,i,r=tt(a);function a(e){return function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,a),r.call(this,e)}return t=a,(n=[{key:"initialize",value:function(){this.restrictedVideoDataService=$e.a.getInstance(o.g.RestrictedVideo,this)}},{key:"name",get:function(){return"VideoItemReviewActionsComponent"}},{key:"template",get:function(){return Ze.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"},t="click .".concat(Ne.a.showPreview),n="onClickShowPreview",t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e;var e,t,n}},{key:"appLinks",get:function(){return{".applink-manage-video-access":{application: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&&Ve.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},t={id:this.model.get("id")};Je.a.logUserAction(t,e)}},{key:"logManageAccessAction",value:function(){var e={location:qe.LocationContext.AwaitingReviewVideoItem,actionType:qe.UserAction.SetAccess,entity:qe.EntityType.Video,workflowPhase:qe.WorkflowPhase.Start},t={id:this.model.get("id")};Je.a.logUserAction(t,e)}},{key:"viewOptions",value:function(){return{styles:Ne.a,previewDisplayed:this.options.previewDisplayed,previewSvg:u.a.getSvg(u.b.Preview)}}}])&&Xe(t.prototype,n),i&&Xe(t,i),a}(c.a.Component),rt=n(1030),at=n.n(rt);function lt(e){return(lt="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 st(e,t){for(var n=0;n<t.length;n++){var o=t[n];o.enumerable=o.enumerable||!1,o.configurable=!0,"value"in o&&(o.writable=!0),Object.defineProperty(e,o.key,o)}}function ct(e,t){return(ct=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e})(e,t)}function ut(e){var t=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(e){return!1}}();return function(){var n,o=ft(e);if(t){var i=ft(this).constructor;n=Reflect.construct(o,arguments,i)}else n=o.apply(this,arguments);return pt(this,n)}}function pt(e,t){return!t||"object"!==lt(t)&&"function"!=typeof t?function(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}(e):t}function ft(e){return(ft=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)})(e)}var ht=function(e){!function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),t&&ct(e,t)}(a,e);var t,n,i,r=ut(a);function a(e){return function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,a),r.call(this,e)}return t=a,(n=[{key:"name",get:function(){return"VideoItemVideoAccessComponent"}},{key:"template",get:function(){return at.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"},t="click .".concat(Ne.a.showPreview),n="onClickShowPreview",t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e;var e,t,n}},{key:"onClickManageVideoAccess",value:function(e){e.stopPropagation(),this.logAction()}},{key:"onClickShowPreview",value:function(e){e.stopPropagation(),this.options.channelName&&Ve.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},t={id:this.model.get("id")};Je.a.logUserAction(t,e)}},{key:"viewOptions",value:function(){return{styles:Ne.a,previewDisplayed:this.options.previewDisplayed,previewSvg:u.a.getSvg(u.b.Preview)}}}])&&st(t.prototype,n),i&&st(t,i),a}(c.a.Component),dt=n(1014),yt=n(1031),gt=n(9),mt=n(3),vt=n(297),bt=n(1016),kt=n(292),wt=n(1032),Ot=n.n(wt);function Ct(e){return(Ct="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 Et(e,t){for(var n=0;n<t.length;n++){var o=t[n];o.enumerable=o.enumerable||!1,o.configurable=!0,"value"in o&&(o.writable=!0),Object.defineProperty(e,o.key,o)}}function St(e,t){return(St=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e})(e,t)}function Rt(e){var t=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(e){return!1}}();return function(){var n,o=xt(e);if(t){var i=xt(this).constructor;n=Reflect.construct(o,arguments,i)}else n=o.apply(this,arguments);return Pt(this,n)}}function Pt(e,t){return!t||"object"!==Ct(t)&&"function"!=typeof t?function(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}(e):t}function xt(e){return(xt=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)})(e)}var It=function(e){!function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),t&&St(e,t)}(a,e);var t,n,i,r=Rt(a);function a(e){return function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,a),r.call(this,e)}return t=a,(n=[{key:"name",get:function(){return"ExpandableTagListComponent"}},{key:"template",get:function(){return Ot.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&&Ve.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 vt.a(this.collection.slice(0,e))}},{key:"getExtraTagsInfo",value:function(){if(!this.showingMoreTags)return mt.a.getPhrase(this.lang,"extraTags",{smartCount:s.max([this.collection.length-this.options.initialTagDisplayCount,0])})}},{key:"renderTags",value:function(){var e=new bt.a({collection:this.getTagCollection(),behavior:kt.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()}}])&&Et(t.prototype,n),i&&Et(t,i),a}(c.a.Component),_t=n(1033),Tt=n.n(_t),jt=n(1034),Lt=n.n(jt);function Vt(e){return(Vt="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 Bt(e,t){for(var n=0;n<t.length;n++){var o=t[n];o.enumerable=o.enumerable||!1,o.configurable=!0,"value"in o&&(o.writable=!0),Object.defineProperty(e,o.key,o)}}function Dt(e,t){return(Dt=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e})(e,t)}function At(e){var t=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(e){return!1}}();return function(){var n,o=Nt(e);if(t){var i=Nt(this).constructor;n=Reflect.construct(o,arguments,i)}else n=o.apply(this,arguments);return Mt(this,n)}}function Mt(e,t){return!t||"object"!==Vt(t)&&"function"!=typeof t?function(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}(e):t}function Nt(e){return(Nt=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)})(e)}var Ut=function(e){!function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),t&&Dt(e,t)}(a,e);var t,n,i,r=At(a);function a(e){return function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,a),r.call(this,e)}return t=a,(n=[{key:"initialize",value:function(){this.listenTo(this.model,"change",this.render),this.listenTo(this.channelName,"show:more:tags",this.onClickShowMoreTags)}},{key:"name",get:function(){return"VideoItemPreviewComponent"}},{key:"template",get:function(){return Tt.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:gt.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(){Ve.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 dt.a({model:this.model,highlighter:!0,size:dt.b.Small,truncate:!0});this.showChildView("description",e)}}},{key:"renderTags",value:function(){if(this.showTags()){var e=new It({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 yt.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 t=this.model.get(e).length;return t>1?"".concat(t," ").concat(e):"".concat(mt.a.getPhrase(this.lang,"one")," ").concat(e.slice(0,-1))}},{key:"onBeforeRender",value:function(){return!(!this.model||!this.model.get("dataFetched"))||(Ve.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:Lt.a,ratingClass:this.model.rating&&h.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()}}])&&Bt(t.prototype,n),i&&Bt(t,i),a}(c.a.Component),Ft=n(1035),Ht=n.n(Ft);function Wt(e){return(Wt="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 zt(e,t){for(var n=0;n<t.length;n++){var o=t[n];o.enumerable=o.enumerable||!1,o.configurable=!0,"value"in o&&(o.writable=!0),Object.defineProperty(e,o.key,o)}}function Yt(e,t){return(Yt=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e})(e,t)}function Gt(e){var t=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(e){return!1}}();return function(){var n,o=qt(e);if(t){var i=qt(this).constructor;n=Reflect.construct(o,arguments,i)}else n=o.apply(this,arguments);return $t(this,n)}}function $t(e,t){return!t||"object"!==Wt(t)&&"function"!=typeof t?function(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}(e):t}function qt(e){return(qt=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)})(e)}var Jt,Kt,Zt,Qt,Xt,en,tn,nn,on,rn=function(e){!function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),t&&Yt(e,t)}(r,e);var t,n,o,i=Gt(r);function r(e){return function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,r),i.call(this,e)}return t=r,(n=[{key:"initialize",value:function(){this.bindListeners()}},{key:"name",get:function(){return"VideoItemProcessingActionsComponent"}},{key:"template",get:function(){return Ht.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(){Ve.Radio.channel(this.options.channelName).trigger("retry:pending:item",this.pendingItem)}},{key:"bindListeners",value:function(){this.model.get("status")===$.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}}])&&zt(t.prototype,n),o&&zt(t,o),r}(c.a.Component),an=n(1005),ln=n.n(an),sn=n(187),cn=n(985);function un(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}n.d(t,"a",(function(){return gn}));var pn=cn.b,fn=cn.a,hn=function(e){return{component:r.a,options:{model:e.model,lazyload:e.shouldLazyLoadThumbnail(),thumbnailOptions:{size:a.a.Small},href:i.a.urlBuilder(i.a.safeUrlConcat(e.options.config.get("onlineUrl"),"videos/".concat(e.model.id)),{loginPrompt:!1}),channelName:e.channelName}}},dn=function(e){return{component:Ut,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}}},yn=function(e){return{component:Ut,options:{model:e.options.videoWithMetadata,videoId:e.model.id.toString(),channelName:e.channelName,collectionViewChannel:e.options.collectionViewChannel,webPlayerUrl:e.options.config.get("webPlayerUrl"),externalLink:i.a.urlBuilder(i.a.safeUrlConcat(e.options.config.get("onlineUrl"),"videos/".concat(e.model.id)),{loginPrompt:!1}),currentUser:e.options.currentUser}}},gn={componentOptions:(en={},un(en,pn.Base,(Jt={},un(Jt,fn.Checkbox,(function(e){return{component:l.a,options:{className:"d-inline-flex align-items-center mr-3 ".concat(ln.a.checkboxContainer),checkboxClassName:ln.a.checkbox,itemId:e.model.id,key:e.collectionIdentifier.toString(),type:sn.CheckboxTypes.VIDEO_LIST}}})),un(Jt,fn.Thumbnail,(function(e){return{component:r.a,options:{model:e.model,lazyload:e.shouldLazyLoadThumbnail(),thumbnailOptions:{size:a.a.Small},appLink:{application:o.b.LIBRARY_EDITOR,action:o.a.LibraryEditor.VIDEO_DETAILS,args:[e.model.id]},channelName:e.channelName}}})),un(Jt,fn.Metadata,(function(e){return{component:A,options:{model:e.model,sourceMetadataOptions:e.options.sourceMetadataOptions}}})),un(Jt,fn.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}}}})),un(Jt,fn.VideoInfo,dn),Jt)),un(en,pn.AwaitingReview,(Kt={},un(Kt,fn.Thumbnail,hn),un(Kt,fn.Metadata,(function(e){return{component:fe,options:{model:e.model,config:e.options.config}}})),un(Kt,fn.VideoActions,(function(e){return{component:it,options:{model:e.model,channelName:e.channelName,previewDisplayed:e.viewModel.get("previewOpen"),analyticsOptions:e.options.analyticsOptions}}})),un(Kt,fn.VideoInfo,yn),Kt)),un(en,pn.PastReleases,(Zt={},un(Zt,fn.Thumbnail,hn),un(Zt,fn.Metadata,(function(e){return{component:Ee,options:{model:e.model,config:e.options.config}}})),un(Zt,fn.VideoInfo,yn),Zt)),un(en,pn.VideoAccess,(Qt={},un(Qt,fn.VideoActions,(function(e){return{component:ht,options:{model:e.model,channelName:e.channelName,previewDisplayed:e.viewModel.get("previewOpen"),analyticsOptions:e.options.analyticsOptions}}})),un(Qt,fn.Metadata,(function(e){return{component:G,options:{model:e.model,config:e.options.config,sourceMetadataOptions:{showFolder:!0}}}})),un(Qt,fn.VideoInfo,(function(e){return f.y.hasCustomLibrary(e.model)?dn(e):yn(e)})),Qt)),un(en,pn.ProcessingVideo,(Xt={},un(Xt,fn.Metadata,(function(e){return{component:oe,options:{model:e.model,pendingItems:e.options.pendingItems}}})),un(Xt,fn.VideoActions,(function(e){return{component:rn,options:{model:e.model,pendingItems:e.options.pendingItems,channelName:e.options.collectionViewChannel,analyticsOptions:e.options.analyticsOptions}}})),Xt)),un(en,pn.Draggable,{}),un(en,pn.Search,un({},fn.Metadata,(function(e){return{component:Le,options:{model:e.model,sourceMetadataOptions:{showFolder:!0,highlight:!0}}}}))),en),onBeforeRender:(on={},un(on,pn.Base,(tn={},un(tn,fn.Checkbox,(function(e){return!!e.options.allowBulk})),un(tn,fn.VideoInfo,(function(e){return!!e.viewModel.get("previewOpen")})),tn)),un(on,pn.ProcessingVideo,(nn={},un(nn,fn.Checkbox,(function(){return!1})),un(nn,fn.VideoInfo,(function(){return!1})),nn)),on)}},1008:function(e,t,n){"use strict";var o=n(2),i=n(1),r=n(985),a=n(1007),l=n(1009);var s,c,u,p=(s={},c=r.b.Draggable,u=function(e){return[{behaviorClass:l.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=n(20);n.d(t,"a",(function(){return y}));var h=r.b.Base,d=a.a,y={renderRegions:function(e,t){i.each(e.regions,(function(n,o){g.onBeforeRenderRegion(e,t,o)&&g.renderRegion(e,t,o)}))},onBeforeRenderRegion:function(e,t,n){var o=d.onBeforeRender[t];if(o||(o=d.onBeforeRender[h]),!o)return!0;var r=o[n];return!r||(!i.isFunction(r)||r(e))},renderRegion:function(e,t,n){var o=g.getComponent(e,t,n);e.showChildView(n,o)},getComponent:function(e,t,n){var i=d.componentOptions[t];i||o.a.ErrorHelper.throw(new f.a("Must define VideoItemComponent type options: ".concat(r.b[t],".")));var a=i[n];a||(a=d.componentOptions[h][n]),a||o.a.ErrorHelper.throw(new f.a("Must define VideoItemComponent region options: ".concat(n,".")));var l=a(e);return l.component||o.a.ErrorHelper.throw(new f.a("Must define component for region: ".concat(n,",\n in VideoItemComponent type: ").concat(r.b[t],"."))),new l.component(l.options||{})},getBehaviors:function(e,t){return p[t]?p[t](e):null}},g=y},1009:function(e,t,n){"use strict";n.d(t,"a",(function(){return O}));var o=n(1),i=n(6),r=n(2),a=n(20),l=n(15),s=n(0),c=n(12),u=n(3),p=n(1004),f=n(187),h=n(1012),d=n.n(h);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,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function m(e,t){for(var n=0;n<t.length;n++){var o=t[n];o.enumerable=o.enumerable||!1,o.configurable=!0,"value"in o&&(o.writable=!0),Object.defineProperty(e,o.key,o)}}function v(e,t){return(v=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e})(e,t)}function b(e){var t=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(e){return!1}}();return function(){var n,o=w(e);if(t){var i=w(this).constructor;n=Reflect.construct(o,arguments,i)}else n=o.apply(this,arguments);return k(this,n)}}function k(e,t){return!t||"object"!==y(t)&&"function"!=typeof t?function(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}(e):t}function w(e){return(w=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)})(e)}var O=function(e){!function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),t&&v(e,t)}(k,e);var t,n,h,y=b(k);function k(){return g(this,k),y.apply(this,arguments)}return t=k,(n=[{key:"initialize",value:function(){this.options.model||r.a.ErrorHelper.throw(new a.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:l.a.getSvg(l.b.Play)}).render().el}},{key:"getSelector",value:function(){return this.view.getUI(this.options.selector)}},{key:"styleDragStart",value:function(){this.getSelector().addClass(d.a.draggingVideo)}},{key:"styleDragStop",value:function(){this.getSelector().removeClass(d.a.draggingVideo)}},{key:"start",value:function(){var e=this.getVideoModels(),t=i.Radio.channel(s.w.VIDEO_DRAG_DROP);t.trigger("drag:start",e,this.options.collectionIdentifier),o.each(e,(function(e){return t.trigger("drag:style:".concat(e.id))}))}},{key:"stop",value:function(){i.Radio.channel(s.w.VIDEO_DRAG_DROP).trigger("drag:stop")}},{key:"getVideoModels",value:function(){var e=this,t=c.a.GetSelectedModels({key:this.options.collectionIdentifier.toString(),type:f.CheckboxTypes.VIDEO_LIST,collection:this.view.model.collection});return o.any(t,(function(t){return t.id===e.view.model.id}))||(t=[this.view.model]),t.length?t:[this.view.model]}},{key:"getClassMappings",value:function(){return{"ui-draggable":p.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(),t={helper:o.bind(this.helper,this),start:o.bind(this.start,this),stop:o.bind(this.stop,this)};t.classes=this.getClassMappings(),e.draggable(o.extend({},p.a,t))}},{key:"onBeforeDestroy",value:function(){var e=this.getSelector();e.draggable("instance")&&e.draggable("destroy")}}])&&m(t.prototype,n),h&&m(t,h),k}(r.a.Behavior)},1012:function(e,t,n){e.exports={draggingVideo:"_3cCHx"}},1013:function(e,t,n){"use strict";n.d(t,"a",(function(){return d}));var o=n(2),i=n(999),r=n.n(i),a=n(12),l=n(1006);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,t){for(var n=0;n<t.length;n++){var o=t[n];o.enumerable=o.enumerable||!1,o.configurable=!0,"value"in o&&(o.writable=!0),Object.defineProperty(e,o.key,o)}}function u(e,t){return(u=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e})(e,t)}function p(e){var t=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(e){return!1}}();return function(){var n,o=h(e);if(t){var i=h(this).constructor;n=Reflect.construct(o,arguments,i)}else n=o.apply(this,arguments);return f(this,n)}}function f(e,t){return!t||"object"!==s(t)&&"function"!=typeof t?function(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}(e):t}function h(e){return(h=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)})(e)}var d=function(e){!function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),t&&u(e,t)}(s,e);var t,n,o,i=p(s);function s(e){return function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,s),i.call(this,e)}return t=s,(n=[{key:"initialize",value:function(){if(this.getViewModel(),this.bindListeners(),this.options.checked){var e=this.getItemId();this.model.set(e,!0,{silent:!0})}}},{key:"name",get:function(){return"CheckboxComponent"}},{key:"className",get:function(){return this.options.className}},{key:"template",get:function(){return r.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: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(l.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(t.prototype,n),o&&c(t,o),s}(o.a.Component)},1017:function(e,t,n){"use strict";n.d(t,"a",(function(){return y}));var o=n(1),i=n(2),r=n(4),a=n(42),l=n(1018),s=n.n(l);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,t){for(var n=0;n<t.length;n++){var o=t[n];o.enumerable=o.enumerable||!1,o.configurable=!0,"value"in o&&(o.writable=!0),Object.defineProperty(e,o.key,o)}}function p(e,t){return(p=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e})(e,t)}function f(e){var t=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(e){return!1}}();return function(){var n,o=d(e);if(t){var i=d(this).constructor;n=Reflect.construct(o,arguments,i)}else n=o.apply(this,arguments);return h(this,n)}}function h(e,t){return!t||"object"!==c(t)&&"function"!=typeof t?function(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}(e):t}function d(e){return(d=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)})(e)}var y=function(e){!function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),t&&p(e,t)}(c,e);var t,n,i,l=f(c);function c(e){return function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,c),l.call(this,e)}return t=c,(n=[{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 t=this.options.cursors.previous,n=this.buildCursor(this.options.cursors.previous);+t<=1&&!0!==this.options.allowFirstPageCursor&&delete n.params.cursor,e[".previous-applink"]=n}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,(t={},n=this.options.cursorParamName,i=e,n in t?Object.defineProperty(t,n,{value:i,enumerable:!0,configurable:!0,writable:!0}):t[n]=i,t))};var t,n,i}},{key:"onClickPrevious",value:function(){this.logAction("previous")}},{key:"onClickNext",value:function(){this.logAction("next")}},{key:"logAction",value:function(e){var t=a.a.mergeOptions(this.options.analyticsOptions,{location:r.LocationContext.Pagination,entity:r.EntityType.Pagination,actionType:r.UserAction.Navigate}),n={id:this.options.collectionId,page:e};a.a.logUserAction(n,t)}},{key:"viewOptions",value:function(){return{cursors:this.options.cursors}}},{key:"onBeforeRender",value:function(){return!!this.options.cursors}}])&&u(t.prototype,n),i&&u(t,i),c}(i.a.Component)},1018:function(e,t,n){var o=n(10);e.exports=(o.default||o).template({1:function(e,t,n,o,i){return"disabled"},compiler:[8,">= 4.3.0"],main:function(e,t,n,o,i){e.propertyIsEnumerable;var r,a=null!=t?t:e.nullContext||{},l=e.hooks.helperMissing,s=e.escapeExpression;return'<div class="p-3">\r\n <a class="btn previous-applink btn-secondary '+(null!=(r=n.unless.call(a,null!=(r=null!=(r=null!=t?t.options:t)?r.cursors:r)?r.previous:r,{name:"unless",hash:{},fn:e.program(1,i,0),inverse:e.noop,data:i}))?r:"")+'">'+s((n.lang||t&&t.lang||l).call(a,"previous",{name:"lang",hash:{},data:i}))+'</a>\r\n <a class="btn next-applink btn-secondary '+(null!=(r=n.unless.call(a,null!=(r=null!=(r=null!=t?t.options:t)?r.cursors:r)?r.next:r,{name:"unless",hash:{},fn:e.program(1,i,0),inverse:e.noop,data:i}))?r:"")+'">'+s((n.lang||t&&t.lang||l).call(a,"next",{name:"lang",hash:{},data:i}))+"</a>\r\n</div>"},useData:!0})},1019:function(e,t,n){var o=n(10);e.exports=(o.default||o).template({1:function(e,t,n,o,i){e.propertyIsEnumerable;var r,a=e.escapeExpression;return' <span class="badge p-1 '+a(e.lambda(null!=(r=null!=(r=null!=t?t.options:t)?r.styles:r)?r.interactive:r,t))+'">'+a((n.lang||t&&t.lang||e.hooks.helperMissing).call(null!=t?t:e.nullContext||{},"interactive",{name:"lang",hash:{},data:i}))+"</span>\r\n"},3:function(e,t,n,o,i){e.propertyIsEnumerable;var r,a=e.lambda,l=e.escapeExpression;return' <span class="badge p-1 tool-tip '+l(a(null!=(r=null!=(r=null!=t?t.options:t)?r.styles:r)?r.rating:r,t))+" "+l(a(null!=(r=null!=t?t.options:t)?r.ratingColorClass:r,t))+'" title="'+l(a(null!=(r=null!=t?t.rating:t)?r.name:r,t))+'">'+l(a(null!=(r=null!=t?t.rating:t)?r.code:r,t))+"</span>\r\n"},5:function(e,t,n,o,i){e.propertyIsEnumerable;var r,a=e.lambda;return' <span class="d-inline-block tool-tip '+e.escapeExpression(a(null!=(r=null!=(r=null!=t?t.options:t)?r.styles:r)?r.svgContainer:r,t))+'" title="Subtitles">'+(null!=(r=a(null!=(r=null!=t?t.options:t)?r.closeCaptionSvg:r,t))?r:"")+"</span>\r\n"},7:function(e,t,n,o,i){e.propertyIsEnumerable;var r,a=e.lambda;return' <span class="d-inline-block tool-tip '+e.escapeExpression(a(null!=(r=null!=(r=null!=t?t.options:t)?r.styles:r)?r.svgContainer:r,t))+'" title="Resources">'+(null!=(r=a(null!=(r=null!=t?t.options:t)?r.resourcesSvg:r,t))?r:"")+"</span>\r\n"},9:function(e,t,n,o,i){e.propertyIsEnumerable;var r,a=e.lambda,l=e.escapeExpression;return' <span class="badge p-1 '+l(a(null!=(r=null!=t?t.options:t)?r.awaitingReviewBadgeClass:r,t))+'">'+l(a(null!=(r=null!=t?t.options:t)?r.awaitingReviewMsg:r,t))+"</span>\r\n"},11:function(e,t,n,o,i){e.propertyIsEnumerable;var r,a=e.lambda,l=e.escapeExpression;return' <span class="badge p-1 '+l(a(null!=(r=null!=(r=null!=t?t.options:t)?r.styles:r)?r.restrictionBadgeClass:r,t))+'">'+l(a(null!=(r=null!=t?t.options:t)?r.restrictionMessage:r,t))+"</span>\r\n"},compiler:[8,">= 4.3.0"],main:function(e,t,n,o,i){e.propertyIsEnumerable;var r,a=null!=t?t:e.nullContext||{};return'<div class="mt-1 '+e.escapeExpression(e.lambda(null!=(r=null!=(r=null!=t?t.options:t)?r.styles:r)?r.badgesWrapper:r,t))+'">\r\n'+(null!=(r=n.if.call(a,null!=(r=null!=t?t.options:t)?r.interactive:r,{name:"if",hash:{},fn:e.program(1,i,0),inverse:e.noop,data:i}))?r:"")+"\r\n"+(null!=(r=n.if.call(a,null!=(r=null!=t?t.rating:t)?r.code:r,{name:"if",hash:{},fn:e.program(3,i,0),inverse:e.noop,data:i}))?r:"")+"\r\n"+(null!=(r=n.if.call(a,null!=(r=null!=t?t.options:t)?r.subtitles:r,{name:"if",hash:{},fn:e.program(5,i,0),inverse:e.noop,data:i}))?r:"")+"\r\n"+(null!=(r=n.if.call(a,null!=(r=null!=t?t.options:t)?r.resources:r,{name:"if",hash:{},fn:e.program(7,i,0),inverse:e.noop,data:i}))?r:"")+"\r\n"+(null!=(r=n.if.call(a,null!=(r=null!=t?t.options:t)?r.awaitingReviewMsg:r,{name:"if",hash:{},fn:e.program(9,i,0),inverse:e.noop,data:i}))?r:"")+"\r\n"+(null!=(r=n.if.call(a,null!=(r=null!=t?t.options:t)?r.restrictionMessage:r,{name:"if",hash:{},fn:e.program(11,i,0),inverse:e.noop,data:i}))?r:"")+"</div>"},useData:!0})},1020:function(e,t,n){e.exports={interactive:"_37GpR",rating:"_2lAYT",svgContainer:"_19ncQ",badgesWrapper:"_26lCi",restrictionBadgeClass:"UdQeS",reviewBadge:"ExFLF",urgentReviewBadge:"_3dcfL"}},1021:function(e,t,n){var o=n(10);e.exports=(o.default||o).template({1:function(e,t,n,o,i){e.propertyIsEnumerable;var r,a=e.lambda,l=e.escapeExpression;return' <span class="d-inline-block ml-1 tool-tip '+l(a(null!=(r=null!=(r=null!=t?t.options:t)?r.styles:r)?r.svgContainer:r,t))+'" title="'+l(a(null!=(r=null!=t?t.options:t)?r.restrictionMessage:r,t))+'">'+(null!=(r=a(null!=(r=null!=t?t.options:t)?r.lockSvg:r,t))?r:"")+"</span>\r\n"},compiler:[8,">= 4.3.0"],main:function(e,t,n,o,i){e.propertyIsEnumerable;var r,a,l=null!=t?t:e.nullContext||{};return'<div class="series-region"></div>\r\n<a class="cursor-pointer applink-show-video h6 text-dark">'+e.escapeExpression("function"==typeof(a=null!=(a=n.name||(null!=t?t.name:t))?a:e.hooks.helperMissing)?a.call(l,{name:"name",hash:{},data:i}):a)+"</a>\r\n"+(null!=(r=n.if.call(l,null!=(r=null!=t?t.options:t)?r.hasAdminRestriction:r,{name:"if",hash:{},fn:e.program(1,i,0),inverse:e.noop,data:i}))?r:"")+'<div class="sources-region"></div>\r\n<div class="badges-region"></div>'},useData:!0})},1022:function(e,t,n){var o=n(10);e.exports=(o.default||o).template({1:function(e,t,n,o,i){e.propertyIsEnumerable;var r,a,l=e.lambda,s=e.escapeExpression;return'<a class="cursor-pointer h6 video-title text-dark" href="'+s(l(null!=(r=null!=t?t.options:t)?r.videoUrl:r,t))+'" target="_blank">'+s("function"==typeof(a=null!=(a=n.name||(null!=t?t.name:t))?a:e.hooks.helperMissing)?a.call(null!=t?t:e.nullContext||{},{name:"name",hash:{},data:i}):a)+'</a>\r\n<a class="svg-container d-inline-block align-bottom text-muted no-decoration" href="'+s(l(null!=(r=null!=t?t.options:t)?r.videoUrl:r,t))+'" target="_blank">'+(null!=(r=l(null!=(r=null!=t?t.options:t)?r.openExternalSvg:r,t))?r:"")+"</a>\r\n"},3:function(e,t,n,o,i){var r;e.propertyIsEnumerable;return'<a class="cursor-pointer applink-show-video h6">'+e.escapeExpression("function"==typeof(r=null!=(r=n.name||(null!=t?t.name:t))?r:e.hooks.helperMissing)?r.call(null!=t?t:e.nullContext||{},{name:"name",hash:{},data:i}):r)+"</a>\r\n"},compiler:[8,">= 4.3.0"],main:function(e,t,n,o,i){e.propertyIsEnumerable;var r,a=e.lambda,l=e.escapeExpression;return'<div class="series-region"></div>\r\n'+(null!=(r=n.if.call(null!=t?t:e.nullContext||{},null!=(r=null!=t?t.options:t)?r.linkToOnline:r,{name:"if",hash:{},fn:e.program(1,i,0),inverse:e.program(3,i,0),data:i}))?r:"")+'<span class="d-inline-block ml-1 tool-tip '+l(a(null!=(r=null!=(r=null!=t?t.options:t)?r.styles:r)?r.lock:r,t))+" "+l(a(null!=(r=null!=(r=null!=t?t.options:t)?r.styles:r)?r.svgContainer:r,t))+'" title="'+l(a(null!=(r=null!=t?t.options:t)?r.restrictionMessage:r,t))+'">'+(null!=(r=a(null!=(r=null!=t?t.options:t)?r.lockSvg:r,t))?r:"")+'</span>\r\n<div class="sources-region"></div>\r\n<div class="badges-region"></div>'},useData:!0})},1023:function(e,t,n){var o=n(10);e.exports=(o.default||o).template({1:function(e,t,n,o,i){e.propertyIsEnumerable;var r,a=e.lambda;return' <span class="d-inline-block align-middle ml-1 '+e.escapeExpression(a(null!=(r=null!=(r=null!=t?t.options:t)?r.styles:r)?r.lockSvgContainer:r,t))+'">'+(null!=(r=a(null!=(r=null!=t?t.options:t)?r.lockSvg:r,t))?r:"")+"</span>\r\n"},3:function(e,t,n,o,i){return"text-danger"},5:function(e,t,n,o,i){var r;e.propertyIsEnumerable;return" "+e.escapeExpression(e.lambda(null!=(r=null!=t?t.options:t)?r.status:r,t))+"\r\n"},7:function(e,t,n,o,i){e.propertyIsEnumerable;return" "+e.escapeExpression((n.lang||t&&t.lang||e.hooks.helperMissing).call(null!=t?t:e.nullContext||{},"waiting",{name:"lang",hash:{},data:i}))+"\r\n"},9:function(e,t,n,o,i){e.propertyIsEnumerable;return" <br><i>"+e.escapeExpression((n.lang||t&&t.lang||e.hooks.helperMissing).call(null!=t?t:e.nullContext||{},"anotherAdmin",{name:"lang",hash:{},data:i}))+"</i>\r\n"},compiler:[8,">= 4.3.0"],main:function(e,t,n,o,i){e.propertyIsEnumerable;var r,a,l=null!=t?t:e.nullContext||{};return'<a class="applink-show-video h6 text-dark">'+e.escapeExpression("function"==typeof(a=null!=(a=n.name||(null!=t?t.name:t))?a:e.hooks.helperMissing)?a.call(l,{name:"name",hash:{},data:i}):a)+"</a>\r\n"+(null!=(r=n.if.call(l,null!=(r=null!=t?t.options:t)?r.hasAdminRestriction:r,{name:"if",hash:{},fn:e.program(1,i,0),inverse:e.noop,data:i}))?r:"")+'<div class="processing '+(null!=(r=n.if.call(l,null!=(r=null!=t?t.options:t)?r.hasError:r,{name:"if",hash:{},fn:e.program(3,i,0),inverse:e.noop,data:i}))?r:"")+'">\r\n'+(null!=(r=n.if.call(l,null!=(r=null!=t?t.options:t)?r.hasPendingItem:r,{name:"if",hash:{},fn:e.program(5,i,0),inverse:e.program(7,i,0),data:i}))?r:"")+(null!=(r=n.unless.call(l,null!=(r=null!=t?t.options:t)?r.hasPendingItem:r,{name:"unless",hash:{},fn:e.program(9,i,0),inverse:e.noop,data:i}))?r:"")+"</div>"},useData:!0})},1024:function(e,t,n){var o=n(10);e.exports=(o.default||o).template({compiler:[8,">= 4.3.0"],main:function(e,t,n,o,i){e.propertyIsEnumerable;var r,a,l=e.lambda,s=e.escapeExpression;return'<div class="series-region"></div>\r\n<a class="cursor-pointer h6 video-title text-dark" href="'+s(l(null!=(r=null!=t?t.options:t)?r.videoUrl:r,t))+'" target="_blank">'+s("function"==typeof(a=null!=(a=n.name||(null!=t?t.name:t))?a:e.hooks.helperMissing)?a.call(null!=t?t:e.nullContext||{},{name:"name",hash:{},data:i}):a)+'</a>\r\n<a class="svg-container d-inline-block align-bottom text-muted no-decoration" href="'+s(l(null!=(r=null!=t?t.options:t)?r.videoUrl:r,t))+'" target="_blank">'+(null!=(r=l(null!=(r=null!=t?t.options:t)?r.openExternalSvg:r,t))?r:"")+'</a>\r\n<div class="badges-region"></div>'},useData:!0})},1025:function(e,t,n){var o=n(10);e.exports=(o.default||o).template({1:function(e,t,n,o,i){e.propertyIsEnumerable;var r,a=e.lambda,l=e.escapeExpression;return' <span class="d-inline-block svg-container align-bottom tool-tip '+l(a(null!=(r=null!=(r=null!=t?t.options:t)?r.styles:r)?r.lock:r,t))+'" title="'+l(a(null!=(r=null!=t?t.options:t)?r.restrictionMessage:r,t))+'">'+(null!=(r=a(null!=(r=null!=t?t.options:t)?r.lockSvg:r,t))?r:"")+"</span>\r\n"},compiler:[8,">= 4.3.0"],main:function(e,t,n,o,i){e.propertyIsEnumerable;var r,a,l=e.lambda,s=e.escapeExpression,c=null!=t?t:e.nullContext||{};return'<div class="series-region"></div>\r\n<a class="cursor-pointer h6 video-title text-dark" href="'+s(l(null!=(r=null!=t?t.options:t)?r.videoUrl:r,t))+'" target="_blank">'+s("function"==typeof(a=null!=(a=n.name||(null!=t?t.name:t))?a:e.hooks.helperMissing)?a.call(c,{name:"name",hash:{},data:i}):a)+'</a>\r\n<a class="svg-container d-inline-block align-bottom text-muted no-decoration" href="'+s(l(null!=(r=null!=t?t.options:t)?r.videoUrl:r,t))+'" target="_blank">'+(null!=(r=l(null!=(r=null!=t?t.options:t)?r.openExternalSvg:r,t))?r:"")+"</a>\r\n"+(null!=(r=n.if.call(c,null!=(r=null!=t?t.options:t)?r.hasAdminRestriction:r,{name:"if",hash:{},fn:e.program(1,i,0),inverse:e.noop,data:i}))?r:"")+'<div class="badges-region"></div>'},useData:!0})},1026:function(e,t,n){e.exports={series:"P3914"}},1027:function(e,t,n){var o=n(10);e.exports=(o.default||o).template({1:function(e,t,n,o,i){e.propertyIsEnumerable;var r,a=e.lambda,l=e.escapeExpression;return' <span class="d-inline-block ml-1 tool-tip '+l(a(null!=(r=null!=(r=null!=t?t.options:t)?r.styles:r)?r.svgContainer:r,t))+'" title="'+l(a(null!=(r=null!=t?t.options:t)?r.restrictionMessage:r,t))+'">'+(null!=(r=a(null!=(r=null!=t?t.options:t)?r.lockSvg:r,t))?r:"")+"</span>\r\n"},3:function(e,t,n,o,i){var r;return' <span class="d-block pt-1">'+(null!=(r=e.lambda(t,t))?r:"")+"</span>\r\n"},compiler:[8,">= 4.3.0"],main:function(e,t,n,o,i){e.propertyIsEnumerable;var r,a=null!=t?t:e.nullContext||{};return'<div class="series-region"></div>\r\n<a class="cursor-pointer applink-show-video h6 text-dark">'+(null!=(r=e.lambda(null!=(r=null!=t?t.options:t)?r.name:r,t))?r:"")+"</a>\r\n"+(null!=(r=n.if.call(a,null!=(r=null!=t?t.options:t)?r.hasAdminRestriction:r,{name:"if",hash:{},fn:e.program(1,i,0),inverse:e.noop,data:i}))?r:"")+'<div class="sources-region"></div>\r\n<div class="badges-region"></div>\r\n'+(null!=(r=n.each.call(a,null!=(r=null!=t?t.options:t)?r.keyPhrases:r,{name:"each",hash:{},fn:e.program(3,i,0),inverse:e.noop,data:i}))?r:"")},useData:!0})},1028:function(e,t,n){var o=n(10);e.exports=(o.default||o).template({1:function(e,t,n,o,i){e.propertyIsEnumerable;return e.escapeExpression((n.lang||t&&t.lang||e.hooks.helperMissing).call(null!=t?t:e.nullContext||{},"hide",{name:"lang",hash:{},data:i}))},3:function(e,t,n,o,i){e.propertyIsEnumerable;return e.escapeExpression((n.lang||t&&t.lang||e.hooks.helperMissing).call(null!=t?t:e.nullContext||{},"show",{name:"lang",hash:{},data:i}))},compiler:[8,">= 4.3.0"],main:function(e,t,n,o,i){e.propertyIsEnumerable;var r,a=e.lambda,l=e.escapeExpression,s=null!=t?t:e.nullContext||{};return'<div class="video-actions-region row no-gutters video-item-actions '+l(a(null!=(r=null!=(r=null!=t?t.options:t)?r.styles:r)?r.actions:r,t))+'"></div>\r\n<div class="row no-gutters cursor-pointer video-item-show-preview '+l(a(null!=(r=null!=(r=null!=t?t.options:t)?r.styles:r)?r.showPreview:r,t))+'">\r\n <span class="svg-container">'+(null!=(r=a(null!=(r=null!=t?t.options:t)?r.previewSvg:r,t))?r:"")+"</span>\r\n "+(null!=(r=n.if.call(s,null!=(r=null!=t?t.options:t)?r.previewDisplayed:r,{name:"if",hash:{},fn:e.program(1,i,0),inverse:e.program(3,i,0),data:i}))?r:"")+" "+l((n.lang||t&&t.lang||e.hooks.helperMissing).call(s,"preview",{name:"lang",hash:{},data:i}))+"\r\n</div>"},useData:!0})},1029:function(e,t,n){var o=n(10);e.exports=(o.default||o).template({1:function(e,t,n,o,i){e.propertyIsEnumerable;return e.escapeExpression((n.lang||t&&t.lang||e.hooks.helperMissing).call(null!=t?t:e.nullContext||{},"hide",{name:"lang",hash:{},data:i}))},3:function(e,t,n,o,i){e.propertyIsEnumerable;return e.escapeExpression((n.lang||t&&t.lang||e.hooks.helperMissing).call(null!=t?t:e.nullContext||{},"show",{name:"lang",hash:{},data:i}))},compiler:[8,">= 4.3.0"],main:function(e,t,n,o,i){e.propertyIsEnumerable;var r,a=null!=t?t:e.nullContext||{},l=e.hooks.helperMissing,s=e.escapeExpression,c=e.lambda;return'<button class="approve d-flex btn btn-sm btn-outline-success" type="button">'+s((n.lang||t&&t.lang||l).call(a,"approve",{name:"lang",hash:{},data:i}))+'</button>\r\n<a class="applink-manage-video-access cursor-pointer hover-text-underline py-1">'+(null!=(r=(n.lang||t&&t.lang||l).call(a,"manageAccess",{name:"lang",hash:{},data:i}))?r:"")+'</a> \r\n<div class="row no-gutters cursor-pointer video-item-show-preview '+s(c(null!=(r=null!=(r=null!=t?t.options:t)?r.styles:r)?r.showPreview:r,t))+'"> \r\n <span class="svg-container">'+(null!=(r=c(null!=(r=null!=t?t.options:t)?r.previewSvg:r,t))?r:"")+"</span> \r\n "+(null!=(r=n.if.call(a,null!=(r=null!=t?t.options:t)?r.previewDisplayed:r,{name:"if",hash:{},fn:e.program(1,i,0),inverse:e.program(3,i,0),data:i}))?r:"")+" "+s((n.lang||t&&t.lang||l).call(a,"preview",{name:"lang",hash:{},data:i}))+"\r\n</div> "},useData:!0})},1030:function(e,t,n){var o=n(10);e.exports=(o.default||o).template({1:function(e,t,n,o,i){e.propertyIsEnumerable;return e.escapeExpression((n.lang||t&&t.lang||e.hooks.helperMissing).call(null!=t?t:e.nullContext||{},"hide",{name:"lang",hash:{},data:i}))},3:function(e,t,n,o,i){e.propertyIsEnumerable;return e.escapeExpression((n.lang||t&&t.lang||e.hooks.helperMissing).call(null!=t?t:e.nullContext||{},"show",{name:"lang",hash:{},data:i}))},compiler:[8,">= 4.3.0"],main:function(e,t,n,o,i){e.propertyIsEnumerable;var r,a=null!=t?t:e.nullContext||{},l=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((n.lang||t&&t.lang||l).call(a,"manageAccess",{name:"lang",hash:{},data:i}))+'</button>\r\n<div class="row no-gutters cursor-pointer video-item-show-preview '+s(c(null!=(r=null!=(r=null!=t?t.options:t)?r.styles:r)?r.showPreview:r,t))+'">\r\n <span class="svg-container">'+(null!=(r=c(null!=(r=null!=t?t.options:t)?r.previewSvg:r,t))?r:"")+"</span>\r\n "+(null!=(r=n.if.call(a,null!=(r=null!=t?t.options:t)?r.previewDisplayed:r,{name:"if",hash:{},fn:e.program(1,i,0),inverse:e.program(3,i,0),data:i}))?r:"")+" "+s((n.lang||t&&t.lang||l).call(a,"preview",{name:"lang",hash:{},data:i}))+"\r\n</div>"},useData:!0})},1032:function(e,t,n){var o=n(10);e.exports=(o.default||o).template({1:function(e,t,n,o,i){var r;e.propertyIsEnumerable;return' <a class="info-link show-more-tags">'+e.escapeExpression(e.lambda(null!=(r=null!=t?t.options:t)?r.extraTagsText:r,t))+"</a>\r\n"},3:function(e,t,n,o,i){e.propertyIsEnumerable;return' <a class="info-link applink-video-details">'+e.escapeExpression((n.lang||t&&t.lang||e.hooks.helperMissing).call(null!=t?t:e.nullContext||{},"viewAllTags",{name:"lang",hash:{},data:i}))+"</a>\r\n"},compiler:[8,">= 4.3.0"],main:function(e,t,n,o,i){e.propertyIsEnumerable;var r,a=null!=t?t:e.nullContext||{};return'<div class="tags-region"></div>\r\n\r\n'+(null!=(r=n.if.call(a,null!=(r=null!=t?t.options:t)?r.expandable:r,{name:"if",hash:{},fn:e.program(1,i,0),inverse:e.noop,data:i}))?r:"")+(null!=(r=n.if.call(a,null!=(r=null!=t?t.options:t)?r.moreTags:r,{name:"if",hash:{},fn:e.program(3,i,0),inverse:e.noop,data:i}))?r:"")},useData:!0})},1033:function(e,t,n){var o=n(10);e.exports=(o.default||o).template({1:function(e,t,n,o,i){e.propertyIsEnumerable;return" <p>"+e.escapeExpression((n.lang||t&&t.lang||e.hooks.helperMissing).call(null!=t?t:e.nullContext||{},"noDescription",{name:"lang",hash:{},data:i}))+"</p>\r\n"},3:function(e,t,n,o,i){return' <div class="description-region"></div>\r\n'},5:function(e,t,n,o,i){e.propertyIsEnumerable;var r,a=e.lambda,l=e.escapeExpression;return' <div class="col-6 pb-1 '+l(a(null!=(r=null!=(r=null!=t?t.options:t)?r.styles:r)?r.columnNames:r,t))+'">'+l((n.lang||t&&t.lang||e.hooks.helperMissing).call(null!=t?t:e.nullContext||{},"rating",{name:"lang",hash:{},data:i}))+'</div>\r\n <div class="col-6 mb-0 pb-1">\r\n <span class="badge p-1 text-white tool-tip '+l(a(null!=(r=null!=t?t.options:t)?r.ratingClass:r,t))+'" title="'+l(a(null!=(r=null!=t?t.rating:t)?r.name:r,t))+'">'+l(a(null!=(r=null!=t?t.rating:t)?r.code:r,t))+"</span>\r\n </div>\r\n"},7:function(e,t,n,o,i){e.propertyIsEnumerable;var r,a,l=e.escapeExpression,s=null!=t?t:e.nullContext||{},c=e.hooks.helperMissing;return' <div class="col-6 py-1 '+l(e.lambda(null!=(r=null!=(r=null!=t?t.options:t)?r.styles:r)?r.columnNames:r,t))+'">'+l((n.lang||t&&t.lang||c).call(s,"productionYear",{name:"lang",hash:{},data:i}))+'</div>\r\n <p class="col-6 mb-0 py-1">'+l("function"==typeof(a=null!=(a=n.productionYear||(null!=t?t.productionYear:t))?a:c)?a.call(s,{name:"productionYear",hash:{},data:i}):a)+"</p>\r\n"},9:function(e,t,n,o,i){e.propertyIsEnumerable;var r,a=e.lambda,l=e.escapeExpression,s=null!=t?t:e.nullContext||{};return' <div class="col-6 py-1 '+l(a(null!=(r=null!=(r=null!=t?t.options:t)?r.styles:r)?r.columnNames:r,t))+'">'+l((n.lang||t&&t.lang||e.hooks.helperMissing).call(s,"chapters",{name:"lang",hash:{},data:i}))+'</div>\r\n <a\r\n class="col-6 info-link mb-0 py-1 '+(null!=(r=n.unless.call(s,null!=(r=null!=t?t.options:t)?r.externalLink:r,{name:"unless",hash:{},fn:e.program(10,i,0),inverse:e.noop,data:i}))?r:"")+'"\r\n'+(null!=(r=n.if.call(s,null!=(r=null!=t?t.options:t)?r.externalLink:r,{name:"if",hash:{},fn:e.program(12,i,0),inverse:e.noop,data:i}))?r:"")+" >\r\n "+l(a(null!=(r=null!=t?t.options:t)?r.chapters:r,t))+"\r\n "+(null!=(r=n.if.call(s,null!=(r=null!=t?t.options:t)?r.externalLink:r,{name:"if",hash:{},fn:e.program(14,i,0),inverse:e.noop,data:i}))?r:"")+"\r\n </a>\r\n"},10:function(e,t,n,o,i){return"applink-video-details"},12:function(e,t,n,o,i){var r;e.propertyIsEnumerable;return' href="'+e.escapeExpression(e.lambda(null!=(r=null!=t?t.options:t)?r.externalLink:r,t))+'"\r\n target="_blank"\r\n'},14:function(e,t,n,o,i){e.propertyIsEnumerable;var r,a=e.lambda;return'<div class="d-inline-block '+e.escapeExpression(a(null!=(r=null!=(r=null!=t?t.options:t)?r.styles:r)?r.smallSvgContainer:r,t))+'">'+(null!=(r=a(null!=(r=null!=t?t.options:t)?r.openExternalSvg:r,t))?r:"")+"</div>"},16:function(e,t,n,o,i){e.propertyIsEnumerable;var r,a=e.lambda,l=e.escapeExpression;return' <div class="col-6 py-1 '+l(a(null!=(r=null!=(r=null!=t?t.options:t)?r.styles:r)?r.columnNames:r,t))+'">'+l((n.lang||t&&t.lang||e.hooks.helperMissing).call(null!=t?t:e.nullContext||{},"interactives",{name:"lang",hash:{},data:i}))+'</div>\r\n <p class="col-6 mb-0 py-1">'+l(a(null!=(r=null!=t?t.options:t)?r.interactives:r,t))+"</p>\r\n"},18:function(e,t,n,o,i){e.propertyIsEnumerable;var r,a=e.lambda,l=e.escapeExpression;return' <div class="col-6 py-1 '+l(a(null!=(r=null!=(r=null!=t?t.options:t)?r.styles:r)?r.columnNames:r,t))+'">'+l((n.lang||t&&t.lang||e.hooks.helperMissing).call(null!=t?t:e.nullContext||{},"subtitles",{name:"lang",hash:{},data:i}))+'</div>\r\n <p class="col-6 mb-0 py-1">'+l(a(null!=(r=null!=t?t.options:t)?r.subtitles:r,t))+"</p>\r\n"},20:function(e,t,n,o,i){e.propertyIsEnumerable;var r,a=e.lambda,l=e.escapeExpression,s=null!=t?t:e.nullContext||{};return' <div class="col-6 py-1 '+l(a(null!=(r=null!=(r=null!=t?t.options:t)?r.styles:r)?r.columnNames:r,t))+'">'+l((n.lang||t&&t.lang||e.hooks.helperMissing).call(s,"resources",{name:"lang",hash:{},data:i}))+'</div>\r\n <a\r\n class="col-6 info-link mb-0 py-1 '+(null!=(r=n.unless.call(s,null!=(r=null!=t?t.options:t)?r.externalLink:r,{name:"unless",hash:{},fn:e.program(10,i,0),inverse:e.noop,data:i}))?r:"")+'"\r\n'+(null!=(r=n.if.call(s,null!=(r=null!=t?t.options:t)?r.externalLink:r,{name:"if",hash:{},fn:e.program(12,i,0),inverse:e.noop,data:i}))?r:"")+" >\r\n "+l(a(null!=(r=null!=t?t.options:t)?r.resources:r,t))+"\r\n "+(null!=(r=n.if.call(s,null!=(r=null!=t?t.options:t)?r.externalLink:r,{name:"if",hash:{},fn:e.program(14,i,0),inverse:e.noop,data:i}))?r:"")+"\r\n </a>\r\n"},22:function(e,t,n,o,i){e.propertyIsEnumerable;var r,a=e.lambda,l=e.escapeExpression,s=null!=t?t:e.nullContext||{};return' <div class="col-6 py-1 '+l(a(null!=(r=null!=(r=null!=t?t.options:t)?r.styles:r)?r.columnNames:r,t))+'">'+l((n.lang||t&&t.lang||e.hooks.helperMissing).call(s,"links",{name:"lang",hash:{},data:i}))+'</div>\r\n <a\r\n class="col-6 info-link mb-0 py-1 '+(null!=(r=n.unless.call(s,null!=(r=null!=t?t.options:t)?r.externalLink:r,{name:"unless",hash:{},fn:e.program(10,i,0),inverse:e.noop,data:i}))?r:"")+'"\r\n'+(null!=(r=n.if.call(s,null!=(r=null!=t?t.options:t)?r.externalLink:r,{name:"if",hash:{},fn:e.program(12,i,0),inverse:e.noop,data:i}))?r:"")+" >\r\n "+l(a(null!=(r=null!=t?t.options:t)?r.links:r,t))+"\r\n "+(null!=(r=n.if.call(s,null!=(r=null!=t?t.options:t)?r.externalLink:r,{name:"if",hash:{},fn:e.program(14,i,0),inverse:e.noop,data:i}))?r:"")+"\r\n </a>\r\n"},24:function(e,t,n,o,i){e.propertyIsEnumerable;var r,a=e.escapeExpression;return' <div class="py-1 '+a(e.lambda(null!=(r=null!=(r=null!=t?t.options:t)?r.styles:r)?r.columnNames:r,t))+'">'+a((n.lang||t&&t.lang||e.hooks.helperMissing).call(null!=t?t:e.nullContext||{},"tags",{name:"lang",hash:{},data:i}))+'</div>\r\n <div class="tags-region"></div>\r\n <div class="col-12"> </div>\r\n'},26:function(e,t,n,o,i){e.propertyIsEnumerable;var r,a=e.lambda,l=e.escapeExpression;return' <a href="'+l(a(null!=(r=null!=t?t.options:t)?r.externalLink:r,t))+'" target="_blank" class="info-link d-inline-block pt-3 '+l(a(null!=(r=null!=(r=null!=t?t.options:t)?r.styles:r)?r.columnNames:r,t))+'">\r\n '+l((n.lang||t&&t.lang||e.hooks.helperMissing).call(null!=t?t:e.nullContext||{},"goToVideo",{name:"lang",hash:{},data:i}))+'\r\n <div class="d-inline-block svg-container">'+(null!=(r=a(null!=(r=null!=t?t.options:t)?r.openExternalSvg:r,t))?r:"")+"</div>\r\n </a>\r\n"},28:function(e,t,n,o,i){e.propertyIsEnumerable;var r,a=e.escapeExpression;return' <a class="info-link applink-video-details d-inline-block pt-3 '+a(e.lambda(null!=(r=null!=(r=null!=t?t.options:t)?r.styles:r)?r.columnNames:r,t))+'">'+a((n.lang||t&&t.lang||e.hooks.helperMissing).call(null!=t?t:e.nullContext||{},"viewFullDetails",{name:"lang",hash:{},data:i}))+"</a>\r\n"},compiler:[8,">= 4.3.0"],main:function(e,t,n,o,i){e.propertyIsEnumerable;var r,a=e.lambda,l=e.escapeExpression,s=null!=t?t: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 '+l(a(null!=(r=null!=(r=null!=t?t.options:t)?r.styles:r)?r.columnNames:r,t))+'">'+l((n.lang||t&&t.lang||c).call(s,"description",{name:"lang",hash:{},data:i}))+"</p>\r\n \r\n"+(null!=(r=n.unless.call(s,null!=(r=null!=t?t.options:t)?r.description:r,{name:"unless",hash:{},fn:e.program(1,i,0),inverse:e.program(3,i,0),data:i}))?r:"")+' \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 '+l(a(null!=(r=null!=(r=null!=t?t.options:t)?r.styles:r)?r.columnNames:r,t))+'">'+l((n.lang||t&&t.lang||c).call(s,"details",{name:"lang",hash:{},data:i}))+'</p>\r\n\r\n <div class="row">\r\n'+(null!=(r=n.if.call(s,null!=(r=null!=t?t.rating:t)?r.code:r,{name:"if",hash:{},fn:e.program(5,i,0),inverse:e.noop,data:i}))?r:"")+"\r\n"+(null!=(r=n.if.call(s,null!=t?t.productionYear:t,{name:"if",hash:{},fn:e.program(7,i,0),inverse:e.noop,data:i}))?r:"")+'\r\n <div class="col-6 py-1 '+l(a(null!=(r=null!=(r=null!=t?t.options:t)?r.styles:r)?r.columnNames:r,t))+'">'+l((n.lang||t&&t.lang||c).call(s,"duration",{name:"lang",hash:{},data:i}))+'</div>\r\n <p class="col-6 mb-0 py-1">'+l(a(null!=(r=null!=t?t.options:t)?r.duration:r,t))+"</p>\r\n\r\n"+(null!=(r=n.if.call(s,null!=(r=null!=t?t.options:t)?r.chapters:r,{name:"if",hash:{},fn:e.program(9,i,0),inverse:e.noop,data:i}))?r:"")+"\r\n"+(null!=(r=n.if.call(s,null!=(r=null!=t?t.options:t)?r.interactives:r,{name:"if",hash:{},fn:e.program(16,i,0),inverse:e.noop,data:i}))?r:"")+"\r\n"+(null!=(r=n.if.call(s,null!=(r=null!=t?t.options:t)?r.subtitles:r,{name:"if",hash:{},fn:e.program(18,i,0),inverse:e.noop,data:i}))?r:"")+"\r\n"+(null!=(r=n.if.call(s,null!=(r=null!=t?t.options:t)?r.resources:r,{name:"if",hash:{},fn:e.program(20,i,0),inverse:e.noop,data:i}))?r:"")+"\r\n"+(null!=(r=n.if.call(s,null!=(r=null!=t?t.options:t)?r.links:r,{name:"if",hash:{},fn:e.program(22,i,0),inverse:e.noop,data:i}))?r:"")+" </div>\r\n\r\n"+(null!=(r=n.if.call(s,null!=(r=null!=t?t.options:t)?r.showTags:r,{name:"if",hash:{},fn:e.program(24,i,0),inverse:e.noop,data:i}))?r:"")+"\r\n"+(null!=(r=n.if.call(s,null!=(r=null!=t?t.options:t)?r.externalLink:r,{name:"if",hash:{},fn:e.program(26,i,0),inverse:e.program(28,i,0),data:i}))?r:"")+" </div>\r\n</div>"},useData:!0})},1034:function(e,t,n){e.exports={columnNames:"QvhY0",smallSvgContainer:"_2qax8"}},1035:function(e,t,n){var o=n(10);e.exports=(o.default||o).template({1:function(e,t,n,o,i){e.propertyIsEnumerable;return' <button class="btn btn-light retry">'+e.escapeExpression((n.lang||t&&t.lang||e.hooks.helperMissing).call(null!=t?t:e.nullContext||{},"retry",{name:"lang",hash:{},data:i}))+"</button>\r\n"},compiler:[8,">= 4.3.0"],main:function(e,t,n,o,i){e.propertyIsEnumerable;var r,a=null!=t?t:e.nullContext||{};return"<div>\r\n"+(null!=(r=n.if.call(a,null!=(r=null!=t?t.options:t)?r.hasError:r,{name:"if",hash:{},fn:e.program(1,i,0),inverse:e.noop,data:i}))?r:"")+' <button class="btn btn-light cancel">'+e.escapeExpression((n.lang||t&&t.lang||e.hooks.helperMissing).call(a,"cancel",{name:"lang",hash:{},data:i}))+"</button>\r\n</div>\r\n"},useData:!0})},1036:function(e,t,n){var o=n(10);e.exports=(o.default||o).template({1:function(e,t,n,o,i){return" cursor-pointer"},3:function(e,t,n,o,i){var r;e.propertyIsEnumerable;return' <div class="bulk-checkbox-region '+(null!=(r=n.if.call(null!=t?t:e.nullContext||{},null!=(r=null!=t?t.options:t)?r.bulkPlaceholder:r,{name:"if",hash:{},fn:e.program(4,i,0),inverse:e.noop,data:i}))?r:"")+'"></div>\r\n'},4:function(e,t,n,o,i){var r;e.propertyIsEnumerable;return e.escapeExpression(e.lambda(null!=(r=null!=(r=null!=t?t.options:t)?r.styles:r)?r.bulkPlaceholder:r,t))},compiler:[8,">= 4.3.0"],main:function(e,t,n,o,i){e.propertyIsEnumerable;var r,a=e.lambda,l=e.escapeExpression,s=null!=t?t:e.nullContext||{};return'<div class="d-flex justify-content-between align-items-stretch p-3 drag-item '+l(a(null!=(r=null!=(r=null!=t?t.options:t)?r.styles:r)?r.videoItem:r,t))+(null!=(r=n.if.call(s,null!=(r=null!=t?t.options:t)?r.isClickable:r,{name:"if",hash:{},fn:e.program(1,i,0),inverse:e.noop,data:i}))?r:"")+'">\r\n'+(null!=(r=n.if.call(s,null!=(r=null!=t?t.options:t)?r.allowBulk:r,{name:"if",hash:{},fn:e.program(3,i,0),inverse:e.noop,data:i}))?r:"")+' <div class="thumbnail-region d-inline-block '+l(a(null!=(r=null!=(r=null!=t?t.options:t)?r.styles:r)?r.thumbnailContainer:r,t))+'"></div>\r\n <div class="metadata-region d-inline-block px-3 '+l(a(null!=(r=null!=(r=null!=t?t.options:t)?r.styles:r)?r.metaContainer:r,t))+'"></div>\r\n <div class="video-actions-region d-inline-block '+l(a(null!=(r=null!=(r=null!=t?t.options:t)?r.styles:r)?r.actionsContainer:r,t))+'"></div>\r\n</div>\r\n<div class="video-info-region '+l(a(null!=(r=null!=(r=null!=t?t.options:t)?r.styles:r)?r.previewContainer:r,t))+'"></div>'},useData:!0})},1037:function(e,t,n){var o=n(10);e.exports=(o.default||o).template({compiler:[8,">= 4.3.0"],main:function(e,t,n,o,i){return'<div class="videos-region"></div>'},useData:!0})},1045:function(e,t,n){"use strict";var o=n(2),i=n(4),r=n(42),a=n(294),l=n(6),s=n(30),c=n(14),u=n(0),p=n(12),f=n(1008),h=n(985),d=n(1036),y=n.n(d),g=n(1005),m=n.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,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function k(e,t){for(var n=0;n<t.length;n++){var o=t[n];o.enumerable=o.enumerable||!1,o.configurable=!0,"value"in o&&(o.writable=!0),Object.defineProperty(e,o.key,o)}}function w(e,t){return(w=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e})(e,t)}function O(e){var t=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(e){return!1}}();return function(){var n,o=E(e);if(t){var i=E(this).constructor;n=Reflect.construct(o,arguments,i)}else n=o.apply(this,arguments);return C(this,n)}}function C(e,t){return!t||"object"!==v(t)&&"function"!=typeof t?function(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}(e):t}function E(e){return(E=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)})(e)}var S=function(e){!function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),t&&w(e,t)}(g,e);var t,n,a,d=O(g);function g(e){return function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,g),d.call(this,e)}return t=g,(n=[{key:"initialize",value:function(){this.initViewModel(),this.listenTo(this.channelName,"thumbnail:load",this.onThumbnailLoad),this.listenTo(this.channelName,"click:show:preview",this.onClickTogglePreview),this.listenTo(this.options.collectionViewChannel,"close:preview",this.onCloseCollectionPreview)}},{key:"name",get:function(){return"VideoItemComponent"}},{key:"defaults",get:function(){return{componentType:h.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 h.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={},h.a.Checkbox,{replaceElement:!0,el:".bulk-checkbox-region"}),b(e,h.a.Thumbnail,".thumbnail-region"),b(e,h.a.Metadata,".metadata-region"),b(e,h.a.VideoActions,".video-actions-region"),b(e,h.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!==h.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];l.Radio.channel(this.options.collectionViewChannel).trigger("close:preview",this.cid),this.togglePreview(!this.viewModel.get("previewOpen")),this.logTogglePreviewAction(e)}},{key:"onNavigateAway",value:function(){this.viewModel.set({previewOpen:!1})}},{key:"togglePreview",value:function(e){var t=this;if(this.viewModel.set({previewOpen:e}),e)return this.setPreviewHeight(),this.listenToOnce(c.a.SHELL,o.a.EventNames.ROUTE,this.onNavigateAway),void this.render();this.stopListening(l.Radio.channel(c.a.SHELL),o.a.EventNames.ROUTE),this.getUI("previewContainer").height(0),window.setTimeout((function(){return t.render()}),300)}},{key:"setPreviewHeight",value:function(){var e=this;this.listenToOnce(this.getRegion(h.a.VideoInfo),"show",(function(){var t=e.getRegion(h.a.VideoInfo).currentView;e.listenTo(t,"render",(function(){e.getUI("previewContainer").height(t.$el.outerHeight())})),e.listenTo(e.channelName,"resize:preview",(function(){window.setTimeout((function(){return e.getUI("previewContainer").height(t.$el.outerHeight())}),0)})),t.isRendered()&&e.getUI("previewContainer").height(t.$el.outerHeight())}))}},{key:"onCloseCollectionPreview",value:function(e){this.cid!==e&&this.viewModel.get("previewOpen")&&this.togglePreview(!1)}},{key:"shouldLazyLoadThumbnail",value:function(){return!!p.h.isLazyLoadSupported(u.p)&&!this.thumbnailLoaded}},{key:"logTogglePreviewAction",value:function(e){var t=r.a.mergeOptions(this.options.analyticsOptions,{actionType:i.UserAction.Click,descriptor:i.ClickDescriptor.TogglePreview,workflowPhase:i.WorkflowPhase.Complete}),n={buttonClicked:e,show:this.viewModel.get("previewOpen")};r.a.logUserAction(n,t)}},{key:"viewOptions",value:function(){return{styles:m.a,allowBulk:this.options.allowBulk,bulkPlaceholder:this.options.componentType===h.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)}}])&&k(t.prototype,n),a&&k(t,a),g}(o.a.Component),R=n(291),P=n(97),x=n(9),I=n(292),_=n(1037),T=n.n(_);function j(e){return(j="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 L(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function V(e,t){for(var n=0;n<t.length;n++){var o=t[n];o.enumerable=o.enumerable||!1,o.configurable=!0,"value"in o&&(o.writable=!0),Object.defineProperty(e,o.key,o)}}function B(e,t,n){return t&&V(e.prototype,t),n&&V(e,n),e}function D(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),t&&A(e,t)}function A(e,t){return(A=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e})(e,t)}function M(e){var t=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(e){return!1}}();return function(){var n,o=U(e);if(t){var i=U(this).constructor;n=Reflect.construct(o,arguments,i)}else n=o.apply(this,arguments);return N(this,n)}}function N(e,t){return!t||"object"!==j(t)&&"function"!=typeof t?function(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}(e):t}function U(e){return(U=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)})(e)}n.d(t,"a",(function(){return H}));var F=function(e){D(n,e);var t=M(n);function n(e){return L(this,n),t.call(this,e)}return B(n,[{key:"name",get:function(){return"VideoItemListComponent"}},{key:"childView",get:function(){return S}},{key:"childViewOptions",get:function(){var e=this;return function(t){return{componentType:t.get("status")===P.a.Processing?h.b.ProcessingVideo:e.options.videoItemComponentType,videoWithMetadata:e.options.videosWithMetadata&&e.options.videosWithMetadata.get(t.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}}}}]),n}(o.a.ComponentCollection),H=function(e){D(n,e);var t=M(n);function n(e){return L(this,n),t.call(this,e)}return B(n,[{key:"name",get:function(){return"VideoListView"}},{key:"className",get:function(){return"bg-white"}},{key:"props",get:function(){return["collectionIdentifier"]}},{key:"template",get:function(){return T.a}},{key:"defaults",get:function(){return{videoItemComponentType:h.b.Base,allowBulk:!1,emptyState:x.c.Default,videoCollectionSource:I.d.Folder}}},{key:"behaviors",get:function(){return[{behaviorClass:R.c,selector:".lazy-img",minBrowserSupportVersion:u.p},{behaviorClass:a.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 F({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:r.a.mergeOptions(this.options.analyticsOptions,{location:i.LocationContext.VideoListItem,entity:i.EntityType.Video}),videoCollectionSource:this.options.videoCollectionSource,currentUser:this.options.currentUser});this.showChildView("videos",e)}}]),n}(o.a.Component)},1046:function(e,t,n){"use strict";n.d(t,"a",(function(){return d}));var o=n(1),i=n(6),r=n(2),a=n(146);function l(e){return(l="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}function s(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function c(e,t){for(var n=0;n<t.length;n++){var o=t[n];o.enumerable=o.enumerable||!1,o.configurable=!0,"value"in o&&(o.writable=!0),Object.defineProperty(e,o.key,o)}}function u(e,t){return(u=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e})(e,t)}function p(e){var t=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(e){return!1}}();return function(){var n,o=h(e);if(t){var i=h(this).constructor;n=Reflect.construct(o,arguments,i)}else n=o.apply(this,arguments);return f(this,n)}}function f(e,t){return!t||"object"!==l(t)&&"function"!=typeof t?function(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}(e):t}function h(e){return(h=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)})(e)}var d=function(e){!function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),t&&u(e,t)}(f,e);var t,n,r,l=p(f);function f(){return s(this,f),l.apply(this,arguments)}return t=f,(n=[{key:"getDroppableElement",value:function(){return this.options.ui?this.view.getUI(this.options.ui):this.$el}},{key:"drop",value:function(){var e=this;o.each(this.options.channelNames,(function(t){i.Radio.channel(t).trigger("drag:drop",e.view.model,e.options.analyticsOptions)}))}},{key:"accept",value:function(){var e=this,t=!1;return o.each(this.options.channelNames,(function(n){!0===i.Radio.channel(n).request("accept",e.view.model)&&(t=!0)})),t}},{key:"over",value:function(){var e=this;this.isHoveringOver=!0,window.setTimeout((function(){e.isHoveringOver&&e.view.trigger("open:sub:folders",a.active)}),500)}},{key:"out",value:function(){this.isHoveringOver=!1}},{key:"onRender",value:function(){var e={tolerance:"pointer",drop:o.bind(this.drop,this),accept:o.bind(this.accept,this),over:o.bind(this.over,this),out:o.bind(this.out,this)};e.classes={"ui-droppable":a.droppable,"ui-droppable-active":a.active,"ui-droppable-hover":a.hover},this.getDroppableElement().droppable(e)}},{key:"onBeforeDestroy",value:function(){this.getDroppableElement().droppable("instance")&&this.getDroppableElement().droppable("destroy")}}])&&c(t.prototype,n),r&&c(t,r),f}(r.a.Behavior)},1049:function(e,t,n){"use strict";n.d(t,"a",(function(){return v}));var o=n(1),i=n(6),r=n(2),a=n(15),l=n(0),s=n(1004),c=n(1055),u=n.n(c);function p(e){return(p="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}function f(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function h(e,t){for(var n=0;n<t.length;n++){var o=t[n];o.enumerable=o.enumerable||!1,o.configurable=!0,"value"in o&&(o.writable=!0),Object.defineProperty(e,o.key,o)}}function d(e,t){return(d=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e})(e,t)}function y(e){var t=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(e){return!1}}();return function(){var n,o=m(e);if(t){var i=m(this).constructor;n=Reflect.construct(o,arguments,i)}else n=o.apply(this,arguments);return g(this,n)}}function g(e,t){return!t||"object"!==p(t)&&"function"!=typeof t?function(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}(e):t}function m(e){return(m=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)})(e)}var v=function(e){!function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),t&&d(e,t)}(p,e);var t,n,r,c=y(p);function p(){return f(this,p),c.apply(this,arguments)}return t=p,(n=[{key:"getClassMappings",value:function(){return{"ui-draggable":s.c.draggable,"ui-draggable-handle":s.c.handle,"ui-draggable-disabled":s.c.disabled,"ui-draggable-dragging":s.c.dragging}}},{key:"helper",value:function(){return new s.b({text:this.view.model.get("name"),svg:a.a.getSvg(a.b.Folder)}).render().el}},{key:"start",value:function(){i.Radio.channel(l.w.FOLDER_DRAG_DROP).trigger("drag:start",this.view.model),this.view.$el.addClass(u.a.draggingFolder)}},{key:"stop",value:function(){i.Radio.channel(l.w.FOLDER_DRAG_DROP).trigger("drag:stop"),this.view.$el.removeClass(u.a.draggingFolder)}},{key:"onRender",value:function(){var e={helper:o.bind(this.helper,this),start:o.bind(this.start,this),stop:o.bind(this.stop,this)};e.classes=this.getClassMappings(),this.view.$el.draggable(o.extend({},s.a,e))}},{key:"onBeforeDestroy",value:function(){this.view.$el.draggable("instance")&&this.view.$el.draggable("destroy")}}])&&h(t.prototype,n),r&&h(t,r),p}(r.a.Behavior)},1053:function(e,t,n){"use strict";var o=n(2),i=n(15),r=n(83),a=n(4),l=n(42),s=n(993),c=n(0),u=n(3),p=n(1056),f=n.n(p);function h(e){return(h="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}function d(e,t){for(var n=0;n<t.length;n++){var o=t[n];o.enumerable=o.enumerable||!1,o.configurable=!0,"value"in o&&(o.writable=!0),Object.defineProperty(e,o.key,o)}}function y(e,t){return(y=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e})(e,t)}function g(e){var t=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(e){return!1}}();return function(){var n,o=v(e);if(t){var i=v(this).constructor;n=Reflect.construct(o,arguments,i)}else n=o.apply(this,arguments);return m(this,n)}}function m(e,t){return!t||"object"!==h(t)&&"function"!=typeof t?function(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}(e):t}function v(e){return(v=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)})(e)}var b=function(e){!function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),t&&y(e,t)}(p,e);var t,n,i,r=g(p);function p(e){return function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,p),r.call(this,e)}return t=p,(n=[{key:"name",get:function(){return"FolderActionsDropdownComponent"}},{key:"template",get:function(){return f.a}},{key:"lang",get:function(){return"libraryEditor.folderActionsDropdown"}},{key:"channelName",get:function(){return"".concat(this.name).concat(this.cid)}},{key:"regions",value:function(){return{items:{el:".items-region",replaceElement:!0}}}},{key:"getFolderActions",value:function(){return[{title:u.a.getPhrase(this.lang,"addSubfolder"),analyticsOptions:l.a.mergeOptions(this.options.analyticsOptions,{actionType:a.UserAction.Create,entity:a.EntityType.Folder,workflowPhase:a.WorkflowPhase.Start}),appLink:{application:c.b.LIBRARY_EDITOR,action:c.a.LibraryEditor.NEW_SUB_FOLDER,args:[this.model.get("id")]}},{title:u.a.getPhrase(this.lang,"rename"),analyticsOptions:l.a.mergeOptions(this.options.analyticsOptions,{actionType:a.UserAction.Rename,entity:a.EntityType.Folder,workflowPhase:a.WorkflowPhase.Start}),appLink:{application:c.b.LIBRARY_EDITOR,action:c.a.LibraryEditor.RENAME_FOLDER,args:[this.model.get("id")]}},{title:u.a.getPhrase(this.lang,"move"),analyticsOptions:l.a.mergeOptions(this.options.analyticsOptions,{actionType:a.UserAction.Move,entity:a.EntityType.Folder,workflowPhase:a.WorkflowPhase.Start}),appLink:{application:c.b.LIBRARY_EDITOR,action:c.a.LibraryEditor.MOVE_FOLDER,args:[this.model.get("id")]}},{title:u.a.getPhrase(this.lang,"editImages"),analyticsOptions:l.a.mergeOptions(this.options.analyticsOptions,{actionType:a.UserAction.EditAssoc,entity:a.EntityType.Folder,workflowPhase:a.WorkflowPhase.Start,descriptor:a.AssocDescriptor.Image}),appLink:{application:c.b.LIBRARY_EDITOR,action:c.a.LibraryEditor.EDIT_FOLDER_IMAGES,args:[this.model.get("id")]}},{title:u.a.getPhrase(this.lang,"generatePdf"),analyticsOptions:l.a.mergeOptions(this.options.analyticsOptions,{actionType:a.UserAction.Create,entity:a.EntityType.PDF,workflowPhase:a.WorkflowPhase.Start}),appLink:{application:c.b.LIBRARY_EDITOR,action:c.a.LibraryEditor.GENERATE_PDF,args:[this.model.get("id")]}},{title:u.a.getPhrase(this.lang,"remove"),analyticsOptions:l.a.mergeOptions(this.options.analyticsOptions,{actionType:a.UserAction.Delete,entity:a.EntityType.Folder,workflowPhase:a.WorkflowPhase.Start}),classes:"text-danger",appLink:{application:c.b.LIBRARY_EDITOR,action:c.a.LibraryEditor.DELETE_FOLDER,args:[this.model.get("id")]}}]}},{key:"onRender",value:function(){this.showChildView("items",new s.a({analyticsHelper:l.a,displayOptions:{alignment:"right"},channelName:this.channelName,collection:new o.a.Collection(this.getFolderActions()),childOptions:{isDisabled:function(){return this.model.get("disabled")}}}))}}])&&d(t.prototype,n),i&&d(t,i),p}(o.a.Component),k=n(1057),w=n.n(k),O=n(1058),C=n.n(O);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 S(e,t){for(var n=0;n<t.length;n++){var o=t[n];o.enumerable=o.enumerable||!1,o.configurable=!0,"value"in o&&(o.writable=!0),Object.defineProperty(e,o.key,o)}}function R(e,t){return(R=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e})(e,t)}function P(e){var t=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(e){return!1}}();return function(){var n,o=I(e);if(t){var i=I(this).constructor;n=Reflect.construct(o,arguments,i)}else n=o.apply(this,arguments);return x(this,n)}}function x(e,t){return!t||"object"!==E(t)&&"function"!=typeof t?function(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}(e):t}function I(e){return(I=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)})(e)}n.d(t,"a",(function(){return _}));var _=function(e){!function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),t&&R(e,t)}(l,e);var t,n,o,a=P(l);function l(e){return function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,l),a.call(this,e)}return t=l,(n=[{key:"name",get:function(){return"VideoCollectionActionsComponent"}},{key:"channelName",get:function(){return"".concat(this.name).concat(this.cid)}},{key:"className",get:function(){if(this.model instanceof r.a)return"position-absolute ".concat(this.options.overrideClasses?"":C.a.dropdownContainer," ").concat(this.options.extraClasses," ")}},{key:"elements",get:function(){return{dropdownToggle:".ui-dropdown-toggle",dropdownItem:".dropdown-item"}}},{key:"events",value:function(){return{"click @ui.dropdownToggle":"onClickDropdownToggle","click @ui.dropdownItem":"onClickDropdownItem"}}},{key:"template",get:function(){return w.a}},{key:"regions",value:function(){return{items:{replaceElement:!0,el:".items-region"}}}},{key:"onClickDropdownToggle",value:function(){this.model instanceof r.a&&this.showChildView("items",new b({model:this.model,analyticsOptions:this.options.analyticsOptions}))}},{key:"onClickDropdownItem",value:function(e){e.stopPropagation(),e.preventDefault(),this.getUI("dropdownToggle").dropdown("toggle")}},{key:"viewOptions",value:function(){return{hasActions:this.model instanceof r.a,dropdownClass:"".concat(C.a.dropdownButton," ").concat(this.options.buttonClass),svg:i.a.getSvg(i.b.More)}}}])&&S(t.prototype,n),o&&S(t,o),l}(o.a.Component)},1055:function(e,t,n){e.exports={dragging:"_2wBn3",draggingFolder:"_1r3AS"}},1056:function(e,t,n){var o=n(10);e.exports=(o.default||o).template({compiler:[8,">= 4.3.0"],main:function(e,t,n,o,i){return'<div class="items-region"></div>'},useData:!0})},1057:function(e,t,n){var o=n(10);e.exports=(o.default||o).template({1:function(e,t,n,o,i){e.propertyIsEnumerable;var r,a=e.lambda;return'<span data-toggle="dropdown" aria-haspopup="true" aria-expanded="false" class="'+e.escapeExpression(a(null!=(r=null!=t?t.options:t)?r.dropdownClass:r,t))+' d-inline-block ui-dropdown-toggle">\r\n '+(null!=(r=a(null!=(r=null!=t?t.options:t)?r.svg:r,t))?r:"")+'\r\n</span>\r\n<div class="items-region"></div>\r\n'},compiler:[8,">= 4.3.0"],main:function(e,t,n,o,i){var r;e.propertyIsEnumerable;return null!=(r=n.if.call(null!=t?t:e.nullContext||{},null!=(r=null!=t?t.options:t)?r.hasActions:r,{name:"if",hash:{},fn:e.program(1,i,0),inverse:e.noop,data:i}))?r:""},useData:!0})},1058:function(e,t,n){e.exports={dropdownContainer:"_2F3Cz",dropdownButton:"_2TdId"}},1087:function(e,t,n){var o=n(10);e.exports=(o.default||o).template({compiler:[8,">= 4.3.0"],main:function(e,t,n,o,i){return'<nav class="breadcrumbs-region" aria-label="breadcrumb"></nav>'},useData:!0})},1088:function(e,t,n){var o=n(10);e.exports=(o.default||o).template({1:function(e,t,n,o,i){var r;e.propertyIsEnumerable;return e.escapeExpression("function"==typeof(r=null!=(r=n.name||(null!=t?t.name:t))?r:e.hooks.helperMissing)?r.call(null!=t?t:e.nullContext||{},{name:"name",hash:{},data:i}):r)+"\r\n"},3:function(e,t,n,o,i){var r;e.propertyIsEnumerable;return'<a class="info-link">'+e.escapeExpression("function"==typeof(r=null!=(r=n.name||(null!=t?t.name:t))?r:e.hooks.helperMissing)?r.call(null!=t?t:e.nullContext||{},{name:"name",hash:{},data:i}):r)+"</a>\r\n"},compiler:[8,">= 4.3.0"],main:function(e,t,n,o,i){var r;e.propertyIsEnumerable;return null!=(r=n.if.call(null!=t?t:e.nullContext||{},null!=(r=null!=t?t.options:t)?r.isActive:r,{name:"if",hash:{},fn:e.program(1,i,0),inverse:e.program(3,i,0),data:i}))?r:""},useData:!0})},1141:function(e,t,n){"use strict";var o=n(2),i=n(1087),r=n.n(i),a=n(1088),l=n.n(a);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,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function u(e,t){for(var n=0;n<t.length;n++){var o=t[n];o.enumerable=o.enumerable||!1,o.configurable=!0,"value"in o&&(o.writable=!0),Object.defineProperty(e,o.key,o)}}function p(e,t,n){return t&&u(e.prototype,t),n&&u(e,n),e}function f(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),t&&h(e,t)}function h(e,t){return(h=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e})(e,t)}function d(e){var t=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(e){return!1}}();return function(){var n,o=g(e);if(t){var i=g(this).constructor;n=Reflect.construct(o,arguments,i)}else n=o.apply(this,arguments);return y(this,n)}}function y(e,t){return!t||"object"!==s(t)&&"function"!=typeof t?function(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}(e):t}function g(e){return(g=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)})(e)}var m=function(e){f(n,e);var t=d(n);function n(){return c(this,n),t.apply(this,arguments)}return p(n,[{key:"name",get:function(){return"BreadcrumbItemComponent"}},{key:"template",get:function(){return l.a}},{key:"tagName",get:function(){return"li"}},{key:"className",get:function(){var e="breadcrumb-item";return this.model.get("active")&&(e+=" active"),e}},{key:"attributes",get:function(){return this.model.get("active")?{"aria-current":"page"}:{}}},{key:"appLinks",get:function(){return this.model.get("active")?{}:{a:this.model.get("appLink")}}},{key:"viewOptions",value:function(){return{isActive:this.model.get("active")}}}]),n}(o.a.Component),v=function(e){f(n,e);var t=d(n);function n(){return c(this,n),t.apply(this,arguments)}return p(n,[{key:"name",get:function(){return"BreadcrumbComponentCollection"}},{key:"tagName",get:function(){return"ol"}},{key:"className",get:function(){return"breadcrumb m-0 p-0"}},{key:"childView",get:function(){return m}}]),n}(o.a.ComponentCollection),b=n(49),k=n(0);function w(e){return(w="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}function O(e,t){for(var n=0;n<t.length;n++){var o=t[n];o.enumerable=o.enumerable||!1,o.configurable=!0,"value"in o&&(o.writable=!0),Object.defineProperty(e,o.key,o)}}function C(e,t){return(C=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e})(e,t)}function E(e){var t=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(e){return!1}}();return function(){var n,o=R(e);if(t){var i=R(this).constructor;n=Reflect.construct(o,arguments,i)}else n=o.apply(this,arguments);return S(this,n)}}function S(e,t){return!t||"object"!==w(t)&&"function"!=typeof t?function(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}(e):t}function R(e){return(R=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)})(e)}n.d(t,"a",(function(){return P}));var P=function(e){!function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),t&&C(e,t)}(l,e);var t,n,i,a=E(l);function l(e){return function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,l),a.call(this,e)}return t=l,(n=[{key:"initialize",value:function(){this.getBreadcrumbs()}},{key:"name",get:function(){return"BreadcrumbsComponent"}},{key:"template",get:function(){return r.a}},{key:"className",get:function(){return"d-inline-block"}},{key:"regions",value:function(){return{breadcrumbs:".breadcrumbs-region"}}},{key:"getBreadcrumbs",value:function(){this.breadcrumbCollection=new o.a.Collection;var e,t=this.options.folder;do{if(e=b.a.getParent(t.id,this.options.libraries),this.breadcrumbCollection.add(this.getBreadcrumb(t,!!e),{at:0}),!e)break;t=e}while(e);this.options.video&&this.breadcrumbCollection.add({name:this.options.video.get("name"),appLink:{application:k.b.LIBRARY_EDITOR,action:k.a.LibraryEditor.VIDEO_DETAILS,args:[this.options.video.id]}}),this.breadcrumbCollection.length&&this.breadcrumbCollection.last().set("active",!this.options.enableLastItemAppLink)}},{key:"getBreadcrumb",value:function(e,t){var n=t?k.a.LibraryEditor.FOLDER:k.a.LibraryEditor.LIBRARY;return{name:e.get("name"),appLink:{application:k.b.LIBRARY_EDITOR,action:n,args:[e.id]}}}},{key:"onRender",value:function(){var e=new v({collection:this.breadcrumbCollection});this.showChildView("breadcrumbs",e)}}])&&O(t.prototype,n),i&&O(t,i),l}(o.a.Component)},1171:function(e,t,n){var o=n(10);e.exports=(o.default||o).template({compiler:[8,">= 4.3.0"],main:function(e,t,n,o,i){var r;e.propertyIsEnumerable;return'<h1 class="text-white position-absolute m-0">\r\n '+e.escapeExpression("function"==typeof(r=null!=(r=n.name||(null!=t?t.name:t))?r:e.hooks.helperMissing)?r.call(null!=t?t:e.nullContext||{},{name:"name",hash:{},data:i}):r)+'\r\n</h1>\r\n<div class="options-region"></div>'},useData:!0})},1172:function(e,t,n){var o=n(10);e.exports=(o.default||o).template({compiler:[8,">= 4.3.0"],main:function(e,t,n,o,i){e.propertyIsEnumerable;var r,a,l=e.lambda,s=e.escapeExpression,c=null!=t?t:e.nullContext||{},u=e.hooks.helperMissing;return'<div class="rounded p-2 text-dark position-relative ui-block '+s(l(null!=(r=null!=(r=null!=t?t.options:t)?r.styles:r)?r.folderBlock:r,t))+'">\r\n <a class="text-dark text-truncate d-block pr-4 font-weight-bold '+s(l(null!=(r=null!=(r=null!=t?t.options:t)?r.styles:r)?r.folder:r,t))+'" title="'+s("function"==typeof(a=null!=(a=n.name||(null!=t?t.name:t))?a:u)?a.call(c,{name:"name",hash:{},data:i}):a)+'">\r\n <span class="'+s(l(null!=(r=null!=(r=null!=t?t.options:t)?r.styles:r)?r.folderIcon:r,t))+' d-inline-block position-absolute">\r\n '+(null!=(r=l(null!=(r=null!=t?t.options:t)?r.svg:r,t))?r:"")+"\r\n </span>\r\n "+s("function"==typeof(a=null!=(a=n.name||(null!=t?t.name:t))?a:u)?a.call(c,{name:"name",hash:{},data:i}):a)+'\r\n </a>\r\n <span class="actions-region"></div>\r\n</div>\r\n'},useData:!0})},1173:function(e,t,n){e.exports={folderIcon:"_3yOKC",folder:"_1mL-8",folderBlock:"_3Z20g",actions:"_1NQjU"}},1174:function(e,t,n){var o=n(10);e.exports=(o.default||o).template({compiler:[8,">= 4.3.0"],main:function(e,t,n,o,i){return'<div class="subfolders-region"></div>'},useData:!0})},1175:function(e,t,n){var o=n(10);e.exports=(o.default||o).template({1:function(e,t,n,o,i){return"pl-2"},compiler:[8,">= 4.3.0"],main:function(e,t,n,o,i){var r;e.propertyIsEnumerable;return'<div class="d-inline-flex justify-content-start">\r\n <div class="check-all-region d-inline-flex align-items-center"></div>\r\n <div class="bulk-actions-region"></div>\r\n <div class="breadcrumbs-region d-inline-flex align-items-center '+(null!=(r=n.if.call(null!=t?t:e.nullContext||{},null!=(r=null!=t?t.options:t)?r.showBulkActions:r,{name:"if",hash:{},fn:e.program(1,i,0),inverse:e.noop,data:i}))?r:"")+'"></div>\r\n</div>\r\n<div class="sorting-region"></div>\r\n'},useData:!0})},1176:function(e,t,n){var o=n(10);e.exports=(o.default||o).template({compiler:[8,">= 4.3.0"],main:function(e,t,n,o,i){e.propertyIsEnumerable;return'<button class="dropdown-toggle btn btn-light" type="button" id="bulkActions" data-toggle="dropdown" aria-haspopup="true" aria-expanded="false">\r\n '+e.escapeExpression((n.lang||t&&t.lang||e.hooks.helperMissing).call(null!=t?t:e.nullContext||{},"options",{name:"lang",hash:{},data:i}))+'\r\n</button>\r\n<div class="dropdown-menu-region"></div>'},useData:!0})},1177:function(e,t,n){var o=n(10);e.exports=(o.default||o).template({compiler:[8,">= 4.3.0"],main:function(e,t,n,o,i){var r;e.propertyIsEnumerable;return'<button class="dropdown-toggle form-control text-left cursor-pointer" type="button" id="sortSelectButton" data-toggle="dropdown" aria-haspopup="true" aria-expanded="false">\r\n '+e.escapeExpression("function"==typeof(r=null!=(r=n.name||(null!=t?t.name:t))?r:e.hooks.helperMissing)?r.call(null!=t?t:e.nullContext||{},{name:"name",hash:{},data:i}):r)+'\r\n</button>\r\n<div class="dropdown-menu-region"></div>'},useData:!0})},1178:function(e,t,n){e.exports={sortSelect:"_3o-cY",sortSelectDropdown:"_3O1cI"}},1179:function(e,t,n){var o=n(10);e.exports=(o.default||o).template({compiler:[8,">= 4.3.0"],main:function(e,t,n,o,i){return'<div class="banner-region"></div>\r\n<div class="child-folders-region"></div>\r\n<div class="header-region"></div>\r\n<div class="video-list-region"></div>\r\n<div class="pagination-region"></div>'},useData:!0})},1414:function(e,t,n){"use strict";n.r(t);var o=n(2),i=n(5),r=n(3),a=n(57),l=n(113),s=n(1017),c=n(83),u=n(98),p=n(0),f=n(50),h=n(12),d=n(9),y=n(1045),g=n(985),m=n(188),v=n(134),b=n(292),k=n(136),w=n(1053),O=n(1171),C=n.n(O),E=n(319),S=n.n(E),R=n(4);function P(e){return(P="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}function x(e,t){for(var n=0;n<t.length;n++){var o=t[n];o.enumerable=o.enumerable||!1,o.configurable=!0,"value"in o&&(o.writable=!0),Object.defineProperty(e,o.key,o)}}function I(e,t){return(I=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e})(e,t)}function _(e){var t=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(e){return!1}}();return function(){var n,o=j(e);if(t){var i=j(this).constructor;n=Reflect.construct(o,arguments,i)}else n=o.apply(this,arguments);return T(this,n)}}function T(e,t){return!t||"object"!==P(t)&&"function"!=typeof t?function(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}(e):t}function j(e){return(j=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)})(e)}var L=function(e){!function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),t&&I(e,t)}(r,e);var t,n,o,i=_(r);function r(e){return function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,r),i.call(this,e)}return t=r,(n=[{key:"name",get:function(){return"BannerComponent"}},{key:"className",get:function(){return"px-3 position-relative ".concat(S.a.banner)}},{key:"regions",value:function(){return{options:{el:".options-region",replaceElement:!0}}}},{key:"attributes",get:function(){var e=h.g.createBannerUrl(this.model.banner,{fallbackBaseUrl:this.options.imageCdnUrl,fallbackCategoryName:this.model.get("name"),type:d.f.Banners});return{style:"background-image: url('".concat(e,"')")}}},{key:"template",get:function(){return C.a}},{key:"renderActions",value:function(){this.showChildView("options",new w.a({model:this.model,extraClasses:"".concat(S.a.actions," rounded-circle mr-2 mt-2"),buttonClass:"text-light",analyticsOptions:{location:R.LocationContext.Banner}}))}},{key:"onRender",value:function(){this.renderActions()}}])&&x(t.prototype,n),o&&x(t,o),r}(o.a.Component),V=n(15),B=n(1046),D=n(1049),A=n(1172),M=n.n(A),N=n(1173),U=n.n(N);function F(e){return(F="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}function H(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function W(e,t){for(var n=0;n<t.length;n++){var o=t[n];o.enumerable=o.enumerable||!1,o.configurable=!0,"value"in o&&(o.writable=!0),Object.defineProperty(e,o.key,o)}}function z(e,t){return(z=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e})(e,t)}function Y(e){var t=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(e){return!1}}();return function(){var n,o=$(e);if(t){var i=$(this).constructor;n=Reflect.construct(o,arguments,i)}else n=o.apply(this,arguments);return G(this,n)}}function G(e,t){return!t||"object"!==F(t)&&"function"!=typeof t?function(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}(e):t}function $(e){return($=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)})(e)}var q=function(e){!function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),t&&z(e,t)}(r,e);var t,n,o,i=Y(r);function r(){return H(this,r),i.apply(this,arguments)}return t=r,(n=[{key:"initialize",value:function(){this.listenTo(this.model,"change:name",this.render)}},{key:"name",get:function(){return"SubFolderComponent"}},{key:"elements",get:function(){return{anchor:"a",block:".ui-block"}}},{key:"template",get:function(){return M.a}},{key:"className",get:function(){return"col-3 d-inline-block pb-3"}},{key:"behaviors",get:function(){return[{behaviorClass:B.a,ui:"block",channelNames:[p.w.VIDEO_DRAG_DROP,p.w.FOLDER_DRAG_DROP],analyticsOptions:{location:R.LocationContext.SubFolderList}},{behaviorClass:D.a}]}},{key:"regions",value:function(){return{actions:{replaceElement:!0,el:".actions-region"}}}},{key:"appLinks",get:function(){return{a:{application:p.b.LIBRARY_EDITOR,action:p.a.LibraryEditor.FOLDER,args:[this.model.get("id")]}}}},{key:"viewOptions",value:function(){return{styles:U.a,svg:V.a.getSvg(V.b.Folder)}}},{key:"onRender",value:function(){this.showChildView("actions",new w.a({model:this.model,extraClasses:"".concat(U.a.actions," rounded-circle mr-2"),analyticsOptions:{location:R.LocationContext.SubFolderList}}))}}])&&W(t.prototype,n),o&&W(t,o),r}(o.a.Component),J=n(1174),K=n.n(J);function Z(e){return(Z="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}function Q(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function X(e,t){for(var n=0;n<t.length;n++){var o=t[n];o.enumerable=o.enumerable||!1,o.configurable=!0,"value"in o&&(o.writable=!0),Object.defineProperty(e,o.key,o)}}function ee(e,t,n){return t&&X(e.prototype,t),n&&X(e,n),e}function te(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),t&&ne(e,t)}function ne(e,t){return(ne=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e})(e,t)}function oe(e){var t=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(e){return!1}}();return function(){var n,o=re(e);if(t){var i=re(this).constructor;n=Reflect.construct(o,arguments,i)}else n=o.apply(this,arguments);return ie(this,n)}}function ie(e,t){return!t||"object"!==Z(t)&&"function"!=typeof t?function(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}(e):t}function re(e){return(re=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)})(e)}var ae=function(e){te(n,e);var t=oe(n);function n(){return Q(this,n),t.apply(this,arguments)}return ee(n,[{key:"name",get:function(){return"SubFoldersCollectionView"}},{key:"childView",get:function(){return q}}]),n}(o.a.ComponentCollection),le=function(e){te(n,e);var t=oe(n);function n(){return Q(this,n),t.apply(this,arguments)}return ee(n,[{key:"name",get:function(){return"SubFoldersView"}},{key:"className",get:function(){return"container-fluid border-bottom pt-3 bg-white"}},{key:"template",get:function(){return K.a}},{key:"regions",value:function(){return{subFolders:{replaceElement:!0,el:".subfolders-region"}}}},{key:"onRender",value:function(){this.showChildView("subFolders",new ae({collection:this.collection}))}}]),n}(o.a.Component),se=n(1175),ce=n.n(se),ue=n(97),pe=n(42),fe=n(993),he=n(187),de=n(1176),ye=n.n(de);function ge(e){return(ge="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 me(e,t){for(var n=0;n<t.length;n++){var o=t[n];o.enumerable=o.enumerable||!1,o.configurable=!0,"value"in o&&(o.writable=!0),Object.defineProperty(e,o.key,o)}}function ve(e,t){return(ve=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e})(e,t)}function be(e){var t=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(e){return!1}}();return function(){var n,o=we(e);if(t){var i=we(this).constructor;n=Reflect.construct(o,arguments,i)}else n=o.apply(this,arguments);return ke(this,n)}}function ke(e,t){return!t||"object"!==ge(t)&&"function"!=typeof t?function(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}(e):t}function we(e){return(we=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)})(e)}var Oe=function(e){!function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),t&&ve(e,t)}(l,e);var t,n,i,a=be(l);function l(e){return function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,l),a.call(this,e)}return t=l,(n=[{key:"initialize",value:function(){this.getViewModel(),this.bindListeners()}},{key:"getViewModel",value:function(){var e=this.options.collectionIdentifier.toString();this.model=h.a.GetViewModel(e,he.CheckboxTypes.VIDEO_LIST)}},{key:"bindListeners",value:function(){this.listenTo(this.model,"change",this.render),this.listenTo(this.collection,"remove",this.render)}},{key:"name",get:function(){return"BulkVideoActionsComponent"}},{key:"template",get:function(){return ye.a}},{key:"lang",get:function(){return"shared.bulkVideoActions"}},{key:"regions",value:function(){return{dropdownItems:{replaceElement:!0,el:".dropdown-menu-region"}}}},{key:"getSelectedIds",value:function(){return h.a.GetSelectedIds({key:this.options.collectionIdentifier.toString(),type:he.CheckboxTypes.VIDEO_LIST,collection:this.collection,excludePredicate:function(e){return e.get("status")===ue.a.Processing}})}},{key:"onBeforeRender",value:function(){return!!this.getSelectedIds().length||(this.$el.empty(),!1)}},{key:"getActions",value:function(){if(this.options.collectionIdentifier){var e=this.getSelectedIds();return new o.a.Collection([{title:r.a.getPhrase(this.lang,"move",{smartCount:e.length}),appLink:{application:this.options.application,action:p.a.Shared.MOVE_VIDEOS,args:[e.join(","),this.options.collectionIdentifier.id]},analyticsOptions:pe.a.mergeOptions(this.options.analyticsOptions,{actionType:R.UserAction.Move,workflowPhase:R.WorkflowPhase.Start})},{title:r.a.getPhrase(this.lang,"remove",{smartCount:e.length}),appLink:{application:p.b.LIBRARY_EDITOR,action:p.a.Shared.DELETE_VIDEOS,args:[this.options.collectionIdentifier.id,e.join(",")]},analyticsOptions:pe.a.mergeOptions(this.options.analyticsOptions,{actionType:R.UserAction.Delete,workflowPhase:R.WorkflowPhase.Start}),classes:"text-danger"}])}}},{key:"onRender",value:function(){this.showChildView("dropdownItems",new fe.a({displayOptions:{alignment:"right"},channelName:"".concat(this.name).concat(this.cid),collection:this.getActions(),analyticsHelper:pe.a}))}}])&&me(t.prototype,n),i&&me(t,i),l}(o.a.Component),Ce=n(1006),Ee=n(1141),Se=n(1),Re=n(1177),Pe=n.n(Re),xe=n(1178),Ie=n.n(xe);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 Te(e,t){for(var n=0;n<t.length;n++){var o=t[n];o.enumerable=o.enumerable||!1,o.configurable=!0,"value"in o&&(o.writable=!0),Object.defineProperty(e,o.key,o)}}function je(e,t){return(je=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e})(e,t)}function Le(e){var t=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(e){return!1}}();return function(){var n,o=Be(e);if(t){var i=Be(this).constructor;n=Reflect.construct(o,arguments,i)}else n=o.apply(this,arguments);return Ve(this,n)}}function Ve(e,t){return!t||"object"!==_e(t)&&"function"!=typeof t?function(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}(e):t}function Be(e){return(Be=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)})(e)}var De=function(e){!function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),t&&je(e,t)}(a,e);var t,n,i,r=Le(a);function a(e){return function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,a),r.call(this,e)}return t=a,(n=[{key:"initialize",value:function(){this.getViewModel(),this.setSort(),this.bindListeners(),this.initializeCollection()}},{key:"getViewModel",value:function(){this.model=h.q.GetSortViewModel()}},{key:"setSort",value:function(){var e=this.options.collectionIdentifier.sort;if(e!==this.model.get("sortType")){var t=h.q.CreateSortObject(e);this.model.set(t)}}},{key:"bindListeners",value:function(){this.listenTo(this.channelName,"sort:selected",this.onSortSelected)}},{key:"initializeCollection",value:function(){this.collection||(this.collection=h.q.CreateSortCollection())}},{key:"name",get:function(){return"SortSelectComponent"}},{key:"regions",value:function(){return{dropdown:".dropdown-menu-region"}}},{key:"template",get:function(){return Pe.a}},{key:"channelName",get:function(){return"".concat(this.name).concat(this.cid)}},{key:"className",get:function(){return"d-inline-block ".concat(Ie.a.sortSelect)}},{key:"events",value:function(){return{click:"onClick"}}},{key:"onClick",value:function(){this.logAction(R.WorkflowPhase.Start)}},{key:"onSortSelected",value:function(e){this.model.set(e.toJSON()),this.render(),this.logAction(R.WorkflowPhase.Complete)}},{key:"logAction",value:function(e){var t=pe.a.mergeOptions(this.options.analyticsOptions,{actionType:R.UserAction.Sort,workflowPhase:e}),n={id:this.options.collectionIdentifier.id,sort:this.model.get("name")};pe.a.logUserAction(n,t)}},{key:"onRender",value:function(){var e=this,t=this.collection.filter((function(t){return t.get("name")!==e.model.get("name")})),n=new o.a.Collection(Se.map(t,(function(t){var n=t.toJSON();return n.appLink={application:e.options.appLink.application,action:e.options.appLink.action,args:[e.options.collectionIdentifier.id],params:{sort:t.get("sortName")}},n})));this.showChildView("dropdown",new fe.a({collection:n,channelName:this.channelName,childOptions:{titleProperty:"name",eventName:"sort:selected"},displayOptions:{alignment:"right",extraClasses:Ie.a.sortSelectDropdown},analyticsHelper:pe.a}))}}])&&Te(t.prototype,n),i&&Te(t,i),a}(o.a.Component);function Ae(e){return(Ae="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 Me(e,t){for(var n=0;n<t.length;n++){var o=t[n];o.enumerable=o.enumerable||!1,o.configurable=!0,"value"in o&&(o.writable=!0),Object.defineProperty(e,o.key,o)}}function Ne(e,t){return(Ne=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e})(e,t)}function Ue(e){var t=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(e){return!1}}();return function(){var n,o=He(e);if(t){var i=He(this).constructor;n=Reflect.construct(o,arguments,i)}else n=o.apply(this,arguments);return Fe(this,n)}}function Fe(e,t){return!t||"object"!==Ae(t)&&"function"!=typeof t?function(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}(e):t}function He(e){return(He=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)})(e)}var We=function(e){!function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),t&&Ne(e,t)}(r,e);var t,n,o,i=Ue(r);function r(e){return function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,r),i.call(this,e)}return t=r,(n=[{key:"initialize",value:function(){this.analyticsOptions=pe.a.mergeOptions(this.options.analyticsOptions,{location:R.LocationContext.VideoListHeader})}},{key:"name",get:function(){return"VideoListHeaderComponent"}},{key:"template",get:function(){return ce.a}},{key:"className",get:function(){return"d-flex justify-content-between align-items-center px-3 py-2 border-bottom"}},{key:"props",get:function(){return["collectionIdentifier"]}},{key:"regions",value:function(){return{checkAll:{el:".check-all-region",replaceElement:!1},bulkActions:{el:".bulk-actions-region",replaceElement:!0},breadcrumbs:{el:".breadcrumbs-region",replaceElement:!1},sorting:{el:".sorting-region",replaceElement:!0}}}},{key:"renderCheckAll",value:function(){!this.options.allowBulk||this.collection.length<=0||this.showChildView("checkAll",new Ce.b({className:"float-left",key:this.collectionIdentifier.toString(),type:he.CheckboxTypes.VIDEO_LIST,numberOfItems:this.collection.length}))}},{key:"renderBulkActions",value:function(){!this.options.allowBulk||this.collection.length<=0||this.showChildView("bulkActions",new Oe({collection:this.collection,collectionIdentifier:this.collectionIdentifier,application:this.options.application,analyticsOptions:pe.a.mergeOptions(this.options.analyticsOptions,{descriptor:R.OperationDescriptor.Bulk,location:R.LocationContext.VideoListHeader,entity:R.EntityType.Video,workflowPhase:R.WorkflowPhase.Start})}))}},{key:"renderBreadcrumbs",value:function(){this.options.folder&&this.options.libraries&&this.showChildView("breadcrumbs",new Ee.a({folder:this.options.folder,libraries:this.options.libraries}))}},{key:"renderSorting",value:function(){this.collection.length<=0||this.showChildView("sorting",new De({collectionIdentifier:this.collectionIdentifier,analyticsOptions:this.analyticsOptions,appLink:{application:this.options.application,action:this.options.action}}))}},{key:"viewOptions",value:function(){return{showBulkActions:this.options.allowBulk&&this.collection.length>0}}},{key:"onRender",value:function(){this.renderCheckAll(),this.renderBulkActions(),this.renderBreadcrumbs(),this.renderSorting()}}])&&Me(t.prototype,n),o&&Me(t,o),r}(o.a.Component),ze=n(193),Ye=n(1179),Ge=n.n(Ye);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 qe(e,t,n){return(qe="undefined"!=typeof Reflect&&Reflect.get?Reflect.get:function(e,t,n){var o=function(e,t){for(;!Object.prototype.hasOwnProperty.call(e,t)&&null!==(e=nt(e)););return e}(e,t);if(o){var i=Object.getOwnPropertyDescriptor(o,t);return i.get?i.get.call(n):i.value}})(e,t,n||e)}function Je(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function Ke(e,t){for(var n=0;n<t.length;n++){var o=t[n];o.enumerable=o.enumerable||!1,o.configurable=!0,"value"in o&&(o.writable=!0),Object.defineProperty(e,o.key,o)}}function Ze(e,t,n){return t&&Ke(e.prototype,t),n&&Ke(e,n),e}function Qe(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),t&&Xe(e,t)}function Xe(e,t){return(Xe=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e})(e,t)}function et(e){var t=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(e){return!1}}();return function(){var n,o=nt(e);if(t){var i=nt(this).constructor;n=Reflect.construct(o,arguments,i)}else n=o.apply(this,arguments);return tt(this,n)}}function tt(e,t){return!t||"object"!==$e(t)&&"function"!=typeof t?function(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}(e):t}function nt(e){return(nt=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)})(e)}n.d(t,"FolderView",(function(){return it})),n.d(t,"SeriesView",(function(){return rt}));var ot=function(e){Qe(n,e);var t=et(n);function n(e){return Je(this,n),t.call(this,e)}return Ze(n,[{key:"initialize",value:function(){this.bindListeners(),this.getSortType(),this.videoDataService=i.a.getInstance(p.g.Video,this),this.libraryDataService=i.a.getInstance(p.g.Library,this),this.pendingItemsService=i.a.getInstance(p.x.PendingItems,this),this.localCacheDataService=i.a.getInstance(p.g.LocalCache,this),this.videoMixinService=i.a.getInstance(p.x.VideoMixin,this)}},{key:"title",get:function(){return!!this.model&&this.model.get("name")}},{key:"template",get:function(){return Ge.a}},{key:"className",get:function(){return"bg-white"}},{key:"channelName",get:function(){return"".concat(this.name,":").concat(this.cid)}},{key:"props",get:function(){return["collectionIdentifier"]}},{key:"regions",value:function(){return{banner:{el:".banner-region",replaceElement:!0,partialLoading:d.h.Banner},header:{el:".header-region",replaceElement:!0,partialLoading:d.h.VideoListHeader},videoList:{el:".video-list-region",replaceElement:!0,partialLoading:d.h.VideoListWithBulkActions},childFolders:{el:".child-folders-region",replaceElement:!1,partialLoading:d.h.SubFolder},pagination:{el:".pagination-region",replaceElement:!0}}}},{key:"bindListeners",value:function(){var e=this.options.collectionIdentifier.toString();this.listenTo(p.e.VIDEO,"".concat(e,":sync"),this.render),this.listenTo(p.e.VIDEO,"".concat(p.f.DELETE_VIDEO,":sync"),this.fetchData),this.listenTo(p.e.VIDEO,"cache:cleared",this.render),this.listenTo(p.e.RESTRICTED_VIDEO,"".concat(p.f.UPDATE_VIDEO_RESTRICTION,":sync"),this.updateRestrictedVideos),this.listenTo(this.channelName,"cancel:pending:item",this.cancelPendingItem),this.listenTo(this.channelName,"retry:pending:item",this.retryPendingItem),this.listenTo(this.channelName,"fetch:video:with:metadata",this.fetchVideoWithMetadata),this.listenTo(p.e.LOCAL_CACHE,"".concat(p.f.LOCAL_CACHE_DEVICES,":sync"),this.render),this.listenTo(p.e.LOCAL_CACHE,"".concat(p.f.LOCAL_CACHE_DEVICES,":error"),this.onError)}},{key:"getSortType",value:function(){this.sortType||(this.sortType=this.options.collectionIdentifier.sort)}},{key:"updateRestrictedVideos",value:function(){var e=this;this.videoMixinService.getAndMixinVideoCollectionRestrictions(this.videoCollection,this.collectionIdentifier,(function(){return e.render()}))}},{key:"cancelPendingItem",value:function(e){this.pendingItemsService.clearPendingItem(e)}},{key:"retryPendingItem",value:function(e){this.pendingItemsService.retryPendingItem(e)}},{key:"setVideosWithMetadata",value:function(){this.videoCollection&&(this.videosWithMetadata=new f.a(this.videoCollection.map((function(e){return new u.a({id:e.get("id")})}))))}},{key:"renderBanner",value:function(){var e=new L({model:this.model,channelName:this.channelName,imageCdnUrl:this.config.get("imageCdnUrl")});this.showChildView("banner",e)}},{key:"renderChildFolders",value:function(){if(this.folderWithChildren&&this.folderWithChildren.children&&this.folderWithChildren.children.length){var e=new le({collection:this.folderWithChildren.children});this.showChildView("childFolders",e)}}},{key:"renderHeader",value:function(){this.showChildView("header",new We({collection:this.videoCollection,libraries:this.libraryCollection,folder:this.model instanceof c.a&&this.model,application:p.b.LIBRARY_EDITOR,action:this.appLinkAction(),allowBulk:this.allowBulk(),collectionIdentifier:this.collectionIdentifier,analyticsOptions:this.options.analyticsOptions}))}},{key:"renderVideoList",value:function(){var e=new y.a({collection:this.videoCollection,videosWithMetadata:this.videosWithMetadata,application:p.b.LIBRARY_EDITOR,allowBulk:this.allowBulk(),collectionIdentifier:this.collectionIdentifier,config:this.config,pendingItems:this.pendingItemsService.getPendingItems(),videoItemComponentType:this.componentType,emptyStateType:this.emptyStateType(),emptyStateOptions:this.emptyStateOptions(),supportSiteUrl:this.config.get("supportSiteUrl"),collectionViewChannel:this.channelName,customerHasLocalCache:h.i.customerHasLocalCache(this.devices,this.currentUser.get("customerId")),customerHasExchange:this.exchanges.any(),analyticsOptions:this.options.analyticsOptions,sourceMetadataOptions:{showFolder:this.showFolderSource()},videoCollectionSource:this.getVideoCollectionSource(),currentUser:this.currentUser});this.showChildView("videoList",e)}},{key:"renderPagination",value:function(){var e=this.videoDataService.getVideoCollectionCursors(this.collectionIdentifier),t=new s.a({cursors:e,collectionId:this.options.collectionIdentifier.id,appLink:{application:p.b.LIBRARY_EDITOR,action:this.appLinkAction(),args:[this.collectionIdentifier.id],params:this.collectionIdentifier.toParams()},analyticsOptions:this.options.analyticsOptions});this.showChildView("pagination",t)}},{key:"fetchData",value:function(){this.fetchModel(),this.devices=this.localCacheDataService.getDevices(this.currentUser.get("customerId")),this.fetchVideoCollection()}},{key:"fetchVideoWithMetadata",value:function(e){var t=this;this.videoDataService.getVideo(e,(function(n){var o=t.videosWithMetadata.get(e);o&&(o.set(n.toJSON()),o.set({dataFetched:!0}))}))}},{key:"requiredResources",get:function(){return{config:m.b.config,currentUser:v.b.currentUser,libraryCollection:k.b.libraries,exchanges:k.b.exchanges}}},{key:"onBeforeRender",value:function(){return this.fetchData(),!!this.videoCollection&&(this.setVideosWithMetadata(),!!this.model)}},{key:"onRender",value:function(){this.renderBanner(),this.renderChildFolders(),this.renderHeader(),this.renderVideoList(),this.renderPagination()}}]),n}(o.a.View),it=function(e){Qe(n,e);var t=et(n);function n(){return Je(this,n),t.apply(this,arguments)}return Ze(n,[{key:"name",get:function(){return"FolderView"}},{key:"lang",get:function(){return"libraryEditor.folderView"}},{key:"componentType",get:function(){return g.b.Draggable}},{key:"bindListeners",value:function(){this.listenTo(p.e.LIBRARY,"".concat(p.f.FOLDER,":").concat(this.options.collectionIdentifier.id,":sync libraries:sync"),this.render),this.listenTo(p.e.LIBRARY,"".concat(p.f.FOLDER,":").concat(this.options.collectionIdentifier.id,":error"),this.onError),this.listenTo(p.e.LIBRARY,"".concat(p.f.UPDATE_FOLDER_BANNER,":").concat(this.options.collectionIdentifier.id,":sync"),this.fetchModel),qe(nt(n.prototype),"bindListeners",this).call(this)}},{key:"onError",value:function(e){switch(e.type){case l.a.Forbidden:o.a.ErrorHelper.throw(new ze.e);break;case l.a.NotFound:o.a.ErrorHelper.throw(new ze.d)}}},{key:"appLinkAction",value:function(){return p.a.LibraryEditor.FOLDER}},{key:"allowBulk",value:function(){return!0}},{key:"emptyStateType",value:function(){return d.c.Folder}},{key:"emptyStateOptions",value:function(){return{heading:r.a.getPhrase(this.lang,"emptyStateHeading"),description:r.a.getPhrase(this.lang,"emptyStateInfo",{url:a.a.safeUrlConcat(this.config.get("supportSiteUrl"),p.y.ADD_FROM_ONLINE),classNames:"info-link"})}}},{key:"showFolderSource",value:function(){return!1}},{key:"getVideoCollectionSource",value:function(){return b.d.Folder}},{key:"fetchModel",value:function(){this.model=this.libraryDataService.getFolder(this.collectionIdentifier.id)}},{key:"fetchVideoCollection",value:function(){this.videoCollection=this.videoDataService.getCollectionVideos(this.collectionIdentifier)}},{key:"onBeforeRender",value:function(){return this.folderWithChildren=h.f.getModelFromCollection(this.collectionIdentifier.id,this.libraryCollection),this.folderWithChildren.children&&this.listenTo(this.folderWithChildren.children,"add remove",this.render),qe(nt(n.prototype),"onBeforeRender",this).call(this)}}]),n}(ot),rt=function(e){Qe(n,e);var t=et(n);function n(){return Je(this,n),t.apply(this,arguments)}return Ze(n,[{key:"initialize",value:function(){this.seriesDataService=i.a.getInstance(p.g.Series,this),qe(nt(n.prototype),"initialize",this).call(this)}},{key:"name",get:function(){return"SeriesView"}},{key:"lang",get:function(){return"libraryEditor.seriesView"}},{key:"componentType",get:function(){return g.b.Base}},{key:"bindListeners",value:function(){this.listenTo(p.e.SERIES,"".concat(p.f.SERIES,":").concat(this.options.collectionIdentifier.id,":sync"),this.render),this.listenTo(p.e.SERIES,"".concat(p.f.SERIES,":").concat(this.options.collectionIdentifier.id,":error"),this.onError),qe(nt(n.prototype),"bindListeners",this).call(this)}},{key:"onError",value:function(e){switch(e.type){case l.a.NotFound:o.a.ErrorHelper.throw(new ze.k)}}},{key:"appLinkAction",value:function(){return p.a.LibraryEditor.SERIES}},{key:"allowBulk",value:function(){return!1}},{key:"emptyStateType",value:function(){return d.c.Series}},{key:"emptyStateOptions",value:function(){return{heading:r.a.getPhrase(this.lang,"emptyStateHeading"),description:r.a.getPhrase(this.lang,"emptyStateInfo",{url:a.a.safeUrlConcat(this.config.get("supportSiteUrl"),p.y.ADD_FROM_ONLINE),classNames:"info-link"})}}},{key:"showFolderSource",value:function(){return!0}},{key:"getVideoCollectionSource",value:function(){return b.d.Series}},{key:"fetchModel",value:function(){this.model=this.seriesDataService.getSeries(this.collectionIdentifier.id)}},{key:"fetchVideoCollection",value:function(){this.videoCollection=this.videoDataService.getSeriesVideos(this.collectionIdentifier,this.libraryCollection.pluck("id"))}}]),n}(ot)},985:function(e,t,n){"use strict";var o,i;n.d(t,"b",(function(){return o})),n.d(t,"a",(function(){return i})),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"}(i||(i={}))},986:function(e,t,n){e.exports={lock:"_25RMJ",svgContainer:"_1k8KB"}},987:function(e,t,n){e.exports={dragItem:"_2TIZ7",svgContainer:"_3JzEU",dragText:"_1Kdwj"}},988:function(e,t,n){var o=n(10);e.exports=(o.default||o).template({compiler:[8,">= 4.3.0"],main:function(e,t,n,o,i){e.propertyIsEnumerable;var r,a=e.lambda,l=e.escapeExpression;return'<span class="'+l(a(null!=(r=null!=(r=null!=t?t.options:t)?r.styles:r)?r.svgContainer:r,t))+' mr-2">'+(null!=(r=a(null!=(r=null!=t?t.options:t)?r.svg:r,t))?r:"")+'</span>\r\n<span class="'+l(a(null!=(r=null!=(r=null!=t?t.options:t)?r.styles:r)?r.dragText:r,t))+'">'+l(a(null!=(r=null!=t?t.options:t)?r.text:r,t))+"</span>"},useData:!0})},997:function(e,t,n){e.exports={actions:"_34Z19",showPreview:"cZAmH"}},999:function(e,t,n){var o=n(10);e.exports=(o.default||o).template({1:function(e,t,n,o,i){return" cursor-pointer"},3:function(e,t,n,o,i){return"checked"},5:function(e,t,n,o,i){return"disabled"},compiler:[8,">= 4.3.0"],main:function(e,t,n,o,i){e.propertyIsEnumerable;var r,a=e.lambda,l=e.escapeExpression,s=null!=t?t:e.nullContext||{};return'<div class="custom-control custom-checkbox '+l(a(null!=(r=null!=t?t.options:t)?r.checkboxClassName:r,t))+'">\r\n <input name="checkbox-'+l(a(null!=(r=null!=t?t.options:t)?r.id:r,t))+'" id="checkbox-'+l(a(null!=(r=null!=t?t.options:t)?r.id:r,t))+'" type="checkbox" class="custom-control-input'+(null!=(r=n.unless.call(s,null!=(r=null!=t?t.options:t)?r.disabled:r,{name:"unless",hash:{},fn:e.program(1,i,0),inverse:e.noop,data:i}))?r:"")+'" '+(null!=(r=n.if.call(s,null!=(r=null!=t?t.options:t)?r.checked:r,{name:"if",hash:{},fn:e.program(3,i,0),inverse:e.noop,data:i}))?r:"")+" "+(null!=(r=n.if.call(s,null!=(r=null!=t?t.options:t)?r.disabled:r,{name:"if",hash:{},fn:e.program(5,i,0),inverse:e.noop,data:i}))?r:"")+' />\r\n <label class="custom-control-label'+(null!=(r=n.unless.call(s,null!=(r=null!=t?t.options:t)?r.disabled:r,{name:"unless",hash:{},fn:e.program(1,i,0),inverse:e.noop,data:i}))?r:"")+'" for="checkbox-'+l(a(null!=(r=null!=t?t.options:t)?r.id:r,t))+'"> </label>\r\n</div>'},useData:!0})}}]);
|