@clickview/library-editor 1.1.31-rc.0 → 1.1.31
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/package.json +1 -1
- package/dist/bundles.json +0 -5
- package/dist/css/0-library-editor-c3083c7c46.chunk.css +0 -6
- package/dist/css/0-library-editor.chunk.css +0 -26
- package/dist/css/1-library-editor-9a899a1d1d.chunk.css +0 -2
- package/dist/css/10-library-editor-53c28be130.chunk.css +0 -2
- package/dist/css/10-library-editor.chunk.css +0 -25
- package/dist/css/11-library-editor.chunk.css +0 -135
- package/dist/css/11.chunk.css +0 -135
- package/dist/css/12-library-editor-7f17ad1c90.chunk.css +0 -24
- package/dist/css/12-library-editor.chunk.css +0 -18
- package/dist/css/13-library-editor-911b8069ae.chunk.css +0 -14
- package/dist/css/13-library-editor.chunk.css +0 -21
- package/dist/css/14-library-editor-f507c0ef52.chunk.css +0 -14
- package/dist/css/14-library-editor.chunk.css +0 -76
- package/dist/css/15-library-editor-b08725a10e.chunk.css +0 -2
- package/dist/css/16-library-editor-89ad109c63.chunk.css +0 -2
- package/dist/css/16-library-editor.chunk.css +0 -52
- package/dist/css/17-library-editor.chunk.css +0 -14
- package/dist/css/17.chunk.css +0 -14
- package/dist/css/18-library-editor.chunk.css +0 -18
- package/dist/css/18.chunk.css +0 -18
- package/dist/css/2-library-editor.chunk.css +0 -143
- package/dist/css/2.chunk.css +0 -143
- package/dist/css/20-library-editor-2bd52b5a32.chunk.css +0 -34
- package/dist/css/21-library-editor-a7633bece5.chunk.css +0 -26
- package/dist/css/21-library-editor.chunk.css +0 -52
- package/dist/css/22-library-editor-459b106aec.chunk.css +0 -24
- package/dist/css/22-library-editor.chunk.css +0 -12
- package/dist/css/23-library-editor-33acb75c24.chunk.css +0 -18
- package/dist/css/23-library-editor.chunk.css +0 -25
- package/dist/css/24-library-editor-b180014922.chunk.css +0 -18
- package/dist/css/25-library-editor-4c64aed388.chunk.css +0 -16
- package/dist/css/25-library-editor.chunk.css +0 -35
- package/dist/css/26-library-editor-f0118cbca0.chunk.css +0 -14
- package/dist/css/26-library-editor.chunk.css +0 -20
- package/dist/css/27-library-editor-b72d0e2d36.chunk.css +0 -10
- package/dist/css/28-library-editor-de55d150ef.chunk.css +0 -10
- package/dist/css/28-library-editor.chunk.css +0 -63
- package/dist/css/29-library-editor-b0e16f882d.chunk.css +0 -8
- package/dist/css/29-library-editor.chunk.css +0 -80
- package/dist/css/3-library-editor-904319558a.chunk.css +0 -4
- package/dist/css/3-library-editor.chunk.css +0 -15
- package/dist/css/30-library-editor-10f54d8a75.chunk.css +0 -8
- package/dist/css/30-library-editor.chunk.css +0 -33
- package/dist/css/31-library-editor-4d763bac2b.chunk.css +0 -8
- package/dist/css/31-library-editor.chunk.css +0 -30
- package/dist/css/32-library-editor-d962911bc5.chunk.css +0 -6
- package/dist/css/32-library-editor.chunk.css +0 -45
- package/dist/css/33-library-editor-630c133693.chunk.css +0 -4
- package/dist/css/33-library-editor.chunk.css +0 -13
- package/dist/css/34-library-editor.chunk.css +0 -19
- package/dist/css/34.chunk.css +0 -19
- package/dist/css/35-library-editor.chunk.css +0 -18
- package/dist/css/35.chunk.css +0 -18
- package/dist/css/36-library-editor.chunk.css +0 -12
- package/dist/css/36.chunk.css +0 -12
- package/dist/css/37-library-editor-d18b8a3619.chunk.css +0 -4
- package/dist/css/37-library-editor.chunk.css +0 -5
- package/dist/css/38-library-editor-8b225d15f4.chunk.css +0 -4
- package/dist/css/38-library-editor.chunk.css +0 -5
- package/dist/css/39-library-editor-b08725a10e.chunk.css +0 -2
- package/dist/css/40-library-editor-b08725a10e.chunk.css +0 -2
- package/dist/css/40-library-editor.chunk.css +0 -24
- package/dist/css/41-library-editor-9a2d011500.chunk.css +0 -4
- package/dist/css/41-library-editor.chunk.css +0 -76
- package/dist/css/42-library-editor-593c0084b4.chunk.css +0 -4
- package/dist/css/42-library-editor.chunk.css +0 -44
- package/dist/css/43-library-editor-aa3e9bea9a.chunk.css +0 -2
- package/dist/css/43-library-editor.chunk.css +0 -30
- package/dist/css/44-library-editor-7b1cd4a5cc.chunk.css +0 -2
- package/dist/css/44-library-editor.chunk.css +0 -12
- package/dist/css/45-library-editor-f1820aeeff.chunk.css +0 -2
- package/dist/css/45-library-editor.chunk.css +0 -25
- package/dist/css/46-library-editor-547abc7492.chunk.css +0 -2
- package/dist/css/46-library-editor.chunk.css +0 -24
- package/dist/css/47-library-editor-3f6fb7f3ab.chunk.css +0 -2
- package/dist/css/47-library-editor.chunk.css +0 -84
- package/dist/css/48-library-editor-467e156ba3.chunk.css +0 -2
- package/dist/css/48-library-editor.chunk.css +0 -4
- package/dist/css/49-library-editor.chunk.css +0 -33
- package/dist/css/49.chunk.css +0 -33
- package/dist/css/5-library-editor-24603066ed.chunk.css +0 -6
- package/dist/css/50-library-editor-7aca18778d.chunk.css +0 -2
- package/dist/css/50-library-editor.chunk.css +0 -20
- package/dist/css/51-library-editor-81c5aced1f.chunk.css +0 -2
- package/dist/css/51-library-editor.chunk.css +0 -37
- package/dist/css/52-library-editor.chunk.css +0 -64
- package/dist/css/52.chunk.css +0 -64
- package/dist/css/54-library-editor-d3b8bb68f9.chunk.css +0 -2
- package/dist/css/55-library-editor-94a8c4e7fa.chunk.css +0 -2
- package/dist/css/55-library-editor.chunk.css +0 -3
- package/dist/css/56-library-editor-61808b02a0.chunk.css +0 -2
- package/dist/css/56-library-editor.chunk.css +0 -3
- package/dist/css/57-library-editor-c49b3847df.chunk.css +0 -2
- package/dist/css/58-library-editor-8f5e04b64a.chunk.css +0 -2
- package/dist/css/58-library-editor.chunk.css +0 -3
- package/dist/css/59-library-editor-b64f6f3e74.chunk.css +0 -2
- package/dist/css/59-library-editor.chunk.css +0 -3
- package/dist/css/6-library-editor-d96af27be1.chunk.css +0 -14
- package/dist/css/6-library-editor.chunk.css +0 -42
- package/dist/css/60-library-editor.chunk.css +0 -16
- package/dist/css/60.chunk.css +0 -16
- package/dist/css/61-library-editor-7f123672b2.chunk.css +0 -2
- package/dist/css/62-library-editor-61e4c24a7b.chunk.css +0 -2
- package/dist/css/62-library-editor.chunk.css +0 -4
- package/dist/css/63-library-editor.chunk.css +0 -168
- package/dist/css/63.chunk.css +0 -168
- package/dist/css/67-library-editor.chunk.css +0 -76
- package/dist/css/67.chunk.css +0 -76
- package/dist/css/68-library-editor.chunk.css +0 -15
- package/dist/css/68.chunk.css +0 -15
- package/dist/css/69-library-editor.chunk.css +0 -15
- package/dist/css/69.chunk.css +0 -15
- package/dist/css/7-library-editor-b08725a10e.chunk.css +0 -2
- package/dist/css/7-library-editor.chunk.css +0 -10
- package/dist/css/70-library-editor.chunk.css +0 -21
- package/dist/css/70.chunk.css +0 -21
- package/dist/css/71-library-editor.chunk.css +0 -38
- package/dist/css/71.chunk.css +0 -38
- package/dist/css/72-library-editor.chunk.css +0 -14
- package/dist/css/72.chunk.css +0 -14
- package/dist/css/73-library-editor.chunk.css +0 -35
- package/dist/css/73.chunk.css +0 -35
- package/dist/css/74-library-editor.chunk.css +0 -27
- package/dist/css/74.chunk.css +0 -27
- package/dist/css/75-library-editor.chunk.css +0 -4
- package/dist/css/75.chunk.css +0 -4
- package/dist/css/76-library-editor.chunk.css +0 -4
- package/dist/css/76.chunk.css +0 -4
- package/dist/css/8-library-editor-eb68c1df75.chunk.css +0 -2
- package/dist/css/8-library-editor.chunk.css +0 -7
- package/dist/css/9-library-editor-fec6984a64.chunk.css +0 -4
- package/dist/css/library-editor-app-8d31f0bd76.css +0 -133
- package/dist/scripts/0-1896ad7fec.chunk.js +0 -1
- package/dist/scripts/0.chunk.js +0 -64
- package/dist/scripts/1-0252096024.chunk.js +0 -1
- package/dist/scripts/1-a937e78e21.chunk.js +0 -1
- package/dist/scripts/1.chunk.js +0 -75
- package/dist/scripts/10-9ccbcc7396.chunk.js +0 -1
- package/dist/scripts/10-a9679320a1.chunk.js +0 -1
- package/dist/scripts/10.chunk.js +0 -62
- package/dist/scripts/11-a70b0fc08f.chunk.js +0 -11
- package/dist/scripts/11.chunk.js +0 -317
- package/dist/scripts/12-71eaeafb58.chunk.js +0 -1
- package/dist/scripts/12-f7d3c3eb14.chunk.js +0 -1
- package/dist/scripts/12.chunk.js +0 -56
- package/dist/scripts/13-05e571645c.chunk.js +0 -1
- package/dist/scripts/13.chunk.js +0 -25
- package/dist/scripts/14-10db24a21b.chunk.js +0 -1
- package/dist/scripts/14-fb181db148.chunk.js +0 -1
- package/dist/scripts/14.chunk.js +0 -272
- package/dist/scripts/15-c27b6e07d7.chunk.js +0 -1
- package/dist/scripts/15-fceeab7012.chunk.js +0 -1
- package/dist/scripts/15.chunk.js +0 -35
- package/dist/scripts/16-5f822e4179.chunk.js +0 -1
- package/dist/scripts/16.chunk.js +0 -79
- package/dist/scripts/17-0eb846d9b9.chunk.js +0 -1
- package/dist/scripts/17-8cb6e51052.chunk.js +0 -1
- package/dist/scripts/17.chunk.js +0 -40
- package/dist/scripts/18.chunk.js +0 -40
- package/dist/scripts/19.chunk.js +0 -43
- package/dist/scripts/2-a6cad67b85.chunk.js +0 -1
- package/dist/scripts/2.chunk.js +0 -33
- package/dist/scripts/20-415d21bc0f.chunk.js +0 -1
- package/dist/scripts/20-4694e953f3.chunk.js +0 -1
- package/dist/scripts/20.chunk.js +0 -18
- package/dist/scripts/21-31fe65f6fe.chunk.js +0 -1
- package/dist/scripts/21-63eb746ac4.chunk.js +0 -1
- package/dist/scripts/21.chunk.js +0 -55
- package/dist/scripts/22-00be2f39f7.chunk.js +0 -1
- package/dist/scripts/22-53683e1113.chunk.js +0 -1
- package/dist/scripts/22.chunk.js +0 -47
- package/dist/scripts/23-26ce93dca1.chunk.js +0 -1
- package/dist/scripts/23-b3e46bcf50.chunk.js +0 -1
- package/dist/scripts/23.chunk.js +0 -47
- package/dist/scripts/24-bbcd07a4ad.chunk.js +0 -1
- package/dist/scripts/24-e6d86a507c.chunk.js +0 -1
- package/dist/scripts/24.chunk.js +0 -33
- package/dist/scripts/25-89fdb8ae9e.chunk.js +0 -1
- package/dist/scripts/25-ca0f4cdb11.chunk.js +0 -1
- package/dist/scripts/25.chunk.js +0 -25
- package/dist/scripts/26-e0c0653451.chunk.js +0 -1
- package/dist/scripts/26.chunk.js +0 -25
- package/dist/scripts/27-3d2348bbb9.chunk.js +0 -1
- package/dist/scripts/27.chunk.js +0 -10
- package/dist/scripts/28-4c412503ce.chunk.js +0 -1
- package/dist/scripts/28.chunk.js +0 -334
- package/dist/scripts/29-98ee96c8e2.chunk.js +0 -1
- package/dist/scripts/29-e6af31fc4a.chunk.js +0 -1
- package/dist/scripts/29.chunk.js +0 -202
- package/dist/scripts/3-4bec0e8f4a.chunk.js +0 -1
- package/dist/scripts/3.chunk.js +0 -49
- package/dist/scripts/30-2b6b14974a.chunk.js +0 -1
- package/dist/scripts/30.chunk.js +0 -137
- package/dist/scripts/31-b7a766b5c6.chunk.js +0 -1
- package/dist/scripts/31-ddc6005e61.chunk.js +0 -1
- package/dist/scripts/31.chunk.js +0 -113
- package/dist/scripts/32-1520e14c6f.chunk.js +0 -1
- package/dist/scripts/32-faaa878653.chunk.js +0 -1
- package/dist/scripts/32.chunk.js +0 -115
- package/dist/scripts/33-a00e22b5c6.chunk.js +0 -1
- package/dist/scripts/33.chunk.js +0 -93
- package/dist/scripts/34-326bc04c16.chunk.js +0 -1
- package/dist/scripts/34-e04439a134.chunk.js +0 -1
- package/dist/scripts/34.chunk.js +0 -63
- package/dist/scripts/35-1b99032982.chunk.js +0 -1
- package/dist/scripts/35-b4f5e76a1c.chunk.js +0 -1
- package/dist/scripts/35.chunk.js +0 -48
- package/dist/scripts/36-237f8641dc.chunk.js +0 -1
- package/dist/scripts/36-b0af9bb208.chunk.js +0 -1
- package/dist/scripts/36.chunk.js +0 -33
- package/dist/scripts/37-e9abba0fda.chunk.js +0 -1
- package/dist/scripts/37.chunk.js +0 -25
- package/dist/scripts/38-5a834b8cfc.chunk.js +0 -1
- package/dist/scripts/38-d31c013847.chunk.js +0 -1
- package/dist/scripts/38.chunk.js +0 -25
- package/dist/scripts/39-1084d66957.chunk.js +0 -1
- package/dist/scripts/39-c6cddc090b.chunk.js +0 -1
- package/dist/scripts/39.chunk.js +0 -19
- package/dist/scripts/4-1c1dfe2433.chunk.js +0 -1
- package/dist/scripts/4-bf358041e9.chunk.js +0 -1
- package/dist/scripts/4.chunk.js +0 -26
- package/dist/scripts/40-107eee3179.chunk.js +0 -1
- package/dist/scripts/40.chunk.js +0 -182
- package/dist/scripts/41-a0e807e2f4.chunk.js +0 -1
- package/dist/scripts/41.chunk.js +0 -175
- package/dist/scripts/42-4ace7dc078.chunk.js +0 -1
- package/dist/scripts/42-ed988e3f2d.chunk.js +0 -1
- package/dist/scripts/42.chunk.js +0 -176
- package/dist/scripts/43-4a90405f39.chunk.js +0 -1
- package/dist/scripts/43.chunk.js +0 -113
- package/dist/scripts/44-1d7deb29f3.chunk.js +0 -1
- package/dist/scripts/44.chunk.js +0 -122
- package/dist/scripts/45-7c7b54fa86.chunk.js +0 -1
- package/dist/scripts/45-ecdc8f35ff.chunk.js +0 -1
- package/dist/scripts/45.chunk.js +0 -85
- package/dist/scripts/46-2514802e6b.chunk.js +0 -1
- package/dist/scripts/46-d7378b7299.chunk.js +0 -1
- package/dist/scripts/46.chunk.js +0 -78
- package/dist/scripts/47-941bca4d28.chunk.js +0 -1
- package/dist/scripts/47.chunk.js +0 -70
- package/dist/scripts/48-b816dd6f29.chunk.js +0 -1
- package/dist/scripts/48.chunk.js +0 -88
- package/dist/scripts/49-7100a40b00.chunk.js +0 -1
- package/dist/scripts/49.chunk.js +0 -62
- package/dist/scripts/5-56dc0cf4d3.chunk.js +0 -1
- package/dist/scripts/5-abeccd6d25.chunk.js +0 -1
- package/dist/scripts/5.chunk.js +0 -10
- package/dist/scripts/50-0fae63024c.chunk.js +0 -1
- package/dist/scripts/50.chunk.js +0 -64
- package/dist/scripts/51-19eebceba1.chunk.js +0 -1
- package/dist/scripts/51.chunk.js +0 -55
- package/dist/scripts/52-b3b59cb367.chunk.js +0 -1
- package/dist/scripts/52.chunk.js +0 -47
- package/dist/scripts/53-4138309573.chunk.js +0 -1
- package/dist/scripts/53.chunk.js +0 -56
- package/dist/scripts/54-5ff1f1ae99.chunk.js +0 -1
- package/dist/scripts/54-7ed93c3099.chunk.js +0 -1
- package/dist/scripts/54.chunk.js +0 -56
- package/dist/scripts/55-3497f6f8f6.chunk.js +0 -1
- package/dist/scripts/55.chunk.js +0 -41
- package/dist/scripts/56-11e9b487a7.chunk.js +0 -1
- package/dist/scripts/56-2920fec1d6.chunk.js +0 -1
- package/dist/scripts/56.chunk.js +0 -41
- package/dist/scripts/57-0ebd6896c1.chunk.js +0 -1
- package/dist/scripts/57-1dbfc6cc21.chunk.js +0 -1
- package/dist/scripts/57.chunk.js +0 -50
- package/dist/scripts/58-bd86d244ca.chunk.js +0 -1
- package/dist/scripts/58-d459172602.chunk.js +0 -1
- package/dist/scripts/58.chunk.js +0 -33
- package/dist/scripts/59-1a216fcead.chunk.js +0 -1
- package/dist/scripts/59.chunk.js +0 -33
- package/dist/scripts/6-6f95f8dca9.chunk.js +0 -1
- package/dist/scripts/6-761fc04f5a.chunk.js +0 -1
- package/dist/scripts/6.chunk.js +0 -40
- package/dist/scripts/60-d7ae18c894.chunk.js +0 -1
- package/dist/scripts/60.chunk.js +0 -33
- package/dist/scripts/61-ab0b757ac4.chunk.js +0 -1
- package/dist/scripts/61-e21c38e6ad.chunk.js +0 -1
- package/dist/scripts/61.chunk.js +0 -33
- package/dist/scripts/62-e51c3109a1.chunk.js +0 -1
- package/dist/scripts/62.chunk.js +0 -25
- package/dist/scripts/63-367c2bc7b9.chunk.js +0 -1
- package/dist/scripts/63.chunk.js +0 -25
- package/dist/scripts/64-412c40e41f.chunk.js +0 -1
- package/dist/scripts/64.chunk.js +0 -33
- package/dist/scripts/65-ed951170ce.chunk.js +0 -1
- package/dist/scripts/65.chunk.js +0 -34
- package/dist/scripts/66-5af63166cd.chunk.js +0 -1
- package/dist/scripts/66.chunk.js +0 -33
- package/dist/scripts/67-1d9dd19e42.chunk.js +0 -1
- package/dist/scripts/67-71fccc45c2.chunk.js +0 -1
- package/dist/scripts/67.chunk.js +0 -25
- package/dist/scripts/68-ff1015da34.chunk.js +0 -1
- package/dist/scripts/68.chunk.js +0 -25
- package/dist/scripts/69-bb09eb0f05.chunk.js +0 -1
- package/dist/scripts/69.chunk.js +0 -25
- package/dist/scripts/7-7f5ce7e0da.chunk.js +0 -1
- package/dist/scripts/7-899302c16f.chunk.js +0 -1
- package/dist/scripts/7.chunk.js +0 -33
- package/dist/scripts/70-4920915604.chunk.js +0 -1
- package/dist/scripts/70.chunk.js +0 -25
- package/dist/scripts/71-ca0b28a01d.chunk.js +0 -1
- package/dist/scripts/71.chunk.js +0 -25
- package/dist/scripts/72-8e8580bdbe.chunk.js +0 -1
- package/dist/scripts/72.chunk.js +0 -25
- package/dist/scripts/73.chunk.js +0 -25
- package/dist/scripts/74.chunk.js +0 -25
- package/dist/scripts/75.chunk.js +0 -25
- package/dist/scripts/76.chunk.js +0 -25
- package/dist/scripts/77.chunk.js +0 -26
- package/dist/scripts/78.chunk.js +0 -26
- package/dist/scripts/79.chunk.js +0 -26
- package/dist/scripts/8-94b673b9c2.chunk.js +0 -1
- package/dist/scripts/8.chunk.js +0 -33
- package/dist/scripts/80.chunk.js +0 -26
- package/dist/scripts/81.chunk.js +0 -26
- package/dist/scripts/82.chunk.js +0 -26
- package/dist/scripts/83.chunk.js +0 -26
- package/dist/scripts/84.chunk.js +0 -26
- package/dist/scripts/85.chunk.js +0 -26
- package/dist/scripts/86.chunk.js +0 -18
- package/dist/scripts/87.chunk.js +0 -18
- package/dist/scripts/88.chunk.js +0 -18
- package/dist/scripts/89.chunk.js +0 -18
- package/dist/scripts/9-02b8b8184b.chunk.js +0 -1
- package/dist/scripts/9-ec75826552.chunk.js +0 -1
- package/dist/scripts/9.chunk.js +0 -18
- package/dist/scripts/90.chunk.js +0 -18
- package/dist/scripts/91.chunk.js +0 -18
- package/dist/scripts/92.chunk.js +0 -18
- package/dist/scripts/bundle-210627add9.min.js +0 -10
- package/dist/scripts/bundle-8853c11e8b.min.js +0 -8
- package/dist/scripts/bundle.js +0 -7667
- package/dist/scripts/polyfills-1ff4d28da8.min.js +0 -1
- package/dist/scripts/polyfills-f4207eea5b.min.js +0 -1
- package/dist/scripts/polyfills.js +0 -2694
package/dist/scripts/20.chunk.js
DELETED
|
@@ -1,18 +0,0 @@
|
|
|
1
|
-
(window["webpackJsonp_clickview_library_editor"] = window["webpackJsonp_clickview_library_editor"] || []).push([[20],{
|
|
2
|
-
|
|
3
|
-
/***/ "./src/apps/library-editor/views/new-folder/NewFolder.hbs":
|
|
4
|
-
/***/ (function(module, exports, __webpack_require__) {
|
|
5
|
-
|
|
6
|
-
eval("var Handlebars = __webpack_require__(\"handlebars\");\nmodule.exports = (Handlebars['default'] || Handlebars).template({\"1\":function(container,depth0,helpers,partials,data) {\n var stack1, alias1=container.propertyIsEnumerable;\n\n return ((stack1 = container.lambda(((stack1 = (depth0 != null ? depth0.options : depth0)) != null ? stack1.spinnerEl : stack1), depth0)) != null ? stack1 : \"\")\n + \"\\r\\n\";\n},\"3\":function(container,depth0,helpers,partials,data) {\n return \"<div class=\\\"folder-details-region\\\"></div>\\r\\n\";\n},\"compiler\":[8,\">= 4.3.0\"],\"main\":function(container,depth0,helpers,partials,data) {\n var stack1, alias1=container.propertyIsEnumerable;\n\n return ((stack1 = helpers.unless.call(depth0 != null ? depth0 : (container.nullContext || {}),((stack1 = (depth0 != null ? depth0.options : depth0)) != null ? stack1.dataFetched : stack1),{\"name\":\"unless\",\"hash\":{},\"fn\":container.program(1, data, 0),\"inverse\":container.program(3, data, 0),\"data\":data})) != null ? stack1 : \"\");\n},\"useData\":true});//# sourceURL=[module]\n//# sourceMappingURL=data:application/json;charset=utf-8;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoiLi9zcmMvYXBwcy9saWJyYXJ5LWVkaXRvci92aWV3cy9uZXctZm9sZGVyL05ld0Zv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ICAgdmFyIHN0YWNrMSwgYWxpYXMxPWNvbnRhaW5lci5wcm9wZXJ0eUlzRW51bWVyYWJsZTtcblxuICByZXR1cm4gKChzdGFjazEgPSBoZWxwZXJzLnVubGVzcy5jYWxsKGRlcHRoMCAhPSBudWxsID8gZGVwdGgwIDogKGNvbnRhaW5lci5udWxsQ29udGV4dCB8fCB7fSksKChzdGFjazEgPSAoZGVwdGgwICE9IG51bGwgPyBkZXB0aDAub3B0aW9ucyA6IGRlcHRoMCkpICE9IG51bGwgPyBzdGFjazEuZGF0YUZldGNoZWQgOiBzdGFjazEpLHtcIm5hbWVcIjpcInVubGVzc1wiLFwiaGFzaFwiOnt9LFwiZm5cIjpjb250YWluZXIucHJvZ3JhbSgxLCBkYXRhLCAwKSxcImludmVyc2VcIjpjb250YWluZXIucHJvZ3JhbSgzLCBkYXRhLCAwKSxcImRhdGFcIjpkYXRhfSkpICE9IG51bGwgPyBzdGFjazEgOiBcIlwiKTtcbn0sXCJ1c2VEYXRhXCI6dHJ1ZX0pOyJdLCJtYXBwaW5ncyI6IkFBQUE7QUFDQTtBQUNBO0FBQ0E7QUFDQTtBQUNBO0FBQ0E7QUFDQTtBQUNBO0FBQ0E7QUFDQTtBQUNBO0FBQ0EiLCJzb3VyY2VSb290IjoiIn0=\n//# sourceURL=webpack-internal:///./src/apps/library-editor/views/new-folder/NewFolder.hbs\n");
|
|
7
|
-
|
|
8
|
-
/***/ }),
|
|
9
|
-
|
|
10
|
-
/***/ "./src/apps/library-editor/views/new-folder/NewFolderView.ts":
|
|
11
|
-
/***/ (function(module, __webpack_exports__, __webpack_require__) {
|
|
12
|
-
|
|
13
|
-
"use strict";
|
|
14
|
-
eval("__webpack_require__.r(__webpack_exports__);\n/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, \"NewFolderView\", function() { return NewFolderView; });\n/* harmony import */ var backbone__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(\"backbone\");\n/* harmony import */ var backbone__WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(backbone__WEBPACK_IMPORTED_MODULE_0__);\n/* harmony import */ var libs_common_backbone_errors_DevError__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(\"../../libs/common/src/backbone/errors/DevError.ts\");\n/* harmony import */ var libs_common_core__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(\"../../libs/common/src/backbone/index.ts\");\n/* harmony import */ var libs_common_backbone_services_InstanceManager__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(\"../../libs/common/src/backbone/services/InstanceManager.ts\");\n/* harmony import */ var libs_common_backbone_services_ViewModelService__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(\"../../libs/common/src/backbone/services/ViewModelService.ts\");\n/* harmony import */ var libs_analytics_AnalyticsHelper__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__(\"../../libs/analytics/src/AnalyticsHelper.ts\");\n/* harmony import */ var shared_behaviors__WEBPACK_IMPORTED_MODULE_6__ = __webpack_require__(\"./src/shared/behaviors/index.ts\");\n/* harmony import */ var shared_constants__WEBPACK_IMPORTED_MODULE_7__ = __webpack_require__(\"./src/shared/constants/index.ts\");\n/* harmony import */ var shared_collections_FolderCollection__WEBPACK_IMPORTED_MODULE_8__ = __webpack_require__(\"./src/shared/collections/FolderCollection.ts\");\n/* harmony import */ var shared_models_DisabledSpinnerModel__WEBPACK_IMPORTED_MODULE_9__ = __webpack_require__(\"./src/shared/models/DisabledSpinnerModel.ts\");\n/* harmony import */ var shared_models_Folder__WEBPACK_IMPORTED_MODULE_10__ = __webpack_require__(\"./src/shared/models/Folder.ts\");\n/* harmony import */ var shared_utils__WEBPACK_IMPORTED_MODULE_11__ = __webpack_require__(\"./src/shared/utils/index.ts\");\n/* harmony import */ var shared_components_spinner_button_SpinnerButtonComponent__WEBPACK_IMPORTED_MODULE_12__ = __webpack_require__(\"./src/shared/components/spinner-button/SpinnerButtonComponent.ts\");\n/* harmony import */ var libs_common_backbone_services_LanguageService__WEBPACK_IMPORTED_MODULE_13__ = __webpack_require__(\"../../libs/common/src/backbone/services/LanguageService.tsx\");\n/* harmony import */ var apps_library_editor_components_folder_details_FolderDetailsComponent__WEBPACK_IMPORTED_MODULE_14__ = __webpack_require__(\"./src/apps/library-editor/components/folder-details/FolderDetailsComponent.ts\");\n/* harmony import */ var _NewFolder_hbs__WEBPACK_IMPORTED_MODULE_15__ = __webpack_require__(\"./src/apps/library-editor/views/new-folder/NewFolder.hbs\");\n/* harmony import */ var _NewFolder_hbs__WEBPACK_IMPORTED_MODULE_15___default = /*#__PURE__*/__webpack_require__.n(_NewFolder_hbs__WEBPACK_IMPORTED_MODULE_15__);\n/* harmony import */ var apps_library_editor_errors__WEBPACK_IMPORTED_MODULE_16__ = __webpack_require__(\"./src/apps/library-editor/errors/index.ts\");\nfunction _typeof(obj) { \"@babel/helpers - typeof\"; if (typeof Symbol === \"function\" && typeof Symbol.iterator === \"symbol\") { _typeof = function _typeof(obj) { return typeof obj; }; } else { _typeof = function _typeof(obj) { return obj && typeof Symbol === \"function\" && obj.constructor === Symbol && obj !== Symbol.prototype ? \"symbol\" : typeof obj; }; } return _typeof(obj); }\n\nfunction _classCallCheck(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError(\"Cannot call a class as a function\"); } }\n\nfunction _defineProperties(target, props) { for (var i = 0; i < props.length; i++) { var descriptor = props[i]; descriptor.enumerable = descriptor.enumerable || false; descriptor.configurable = true; if (\"value\" in descriptor) descriptor.writable = true; Object.defineProperty(target, descriptor.key, descriptor); } }\n\nfunction _createClass(Constructor, protoProps, staticProps) { if (protoProps) _defineProperties(Constructor.prototype, protoProps); if (staticProps) _defineProperties(Constructor, staticProps); return Constructor; }\n\nfunction _inherits(subClass, superClass) { if (typeof superClass !== \"function\" && superClass !== null) { throw new TypeError(\"Super expression must either be null or a function\"); } subClass.prototype = Object.create(superClass && superClass.prototype, { constructor: { value: subClass, writable: true, configurable: true } }); if (superClass) _setPrototypeOf(subClass, superClass); }\n\nfunction _setPrototypeOf(o, p) { _setPrototypeOf = Object.setPrototypeOf || function _setPrototypeOf(o, p) { o.__proto__ = p; return o; }; return _setPrototypeOf(o, p); }\n\nfunction _createSuper(Derived) { var hasNativeReflectConstruct = _isNativeReflectConstruct(); return function _createSuperInternal() { var Super = _getPrototypeOf(Derived), result; if (hasNativeReflectConstruct) { var NewTarget = _getPrototypeOf(this).constructor; result = Reflect.construct(Super, arguments, NewTarget); } else { result = Super.apply(this, arguments); } return _possibleConstructorReturn(this, result); }; }\n\nfunction _possibleConstructorReturn(self, call) { if (call && (_typeof(call) === \"object\" || typeof call === \"function\")) { return call; } return _assertThisInitialized(self); }\n\nfunction _assertThisInitialized(self) { if (self === void 0) { throw new ReferenceError(\"this hasn't been initialised - super() hasn't been called\"); } return self; }\n\nfunction _isNativeReflectConstruct() { if (typeof Reflect === \"undefined\" || !Reflect.construct) return false; if (Reflect.construct.sham) return false; if (typeof Proxy === \"function\") return true; try { Boolean.prototype.valueOf.call(Reflect.construct(Boolean, [], function () {})); return true; } catch (e) { return false; } }\n\nfunction _getPrototypeOf(o) { _getPrototypeOf = Object.setPrototypeOf ? Object.getPrototypeOf : function _getPrototypeOf(o) { return o.__proto__ || Object.getPrototypeOf(o); }; return _getPrototypeOf(o); }\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\nvar NewFolderView = /*#__PURE__*/function (_Core$View) {\n _inherits(NewFolderView, _Core$View);\n\n var _super = _createSuper(NewFolderView);\n\n function NewFolderView(options) {\n _classCallCheck(this, NewFolderView);\n\n return _super.call(this, options);\n }\n\n _createClass(NewFolderView, [{\n key: \"initialize\",\n value: function initialize(options) {\n var parentId = options.parentId,\n libraryId = options.libraryId;\n /**\r\n * !XOR\r\n */\n\n if (!(parentId ? !libraryId : libraryId)) libs_common_core__WEBPACK_IMPORTED_MODULE_2__[\"Core\"].ErrorHelper.throw(new libs_common_backbone_errors_DevError__WEBPACK_IMPORTED_MODULE_1__[\"DevError\"](\"Must provide either a libraryId or a parentId to \".concat(this.name)));\n this.bindListeners();\n this.libraryDataService = libs_common_backbone_services_InstanceManager__WEBPACK_IMPORTED_MODULE_3__[\"InstanceManager\"].getInstance(shared_constants__WEBPACK_IMPORTED_MODULE_7__[\"DataServices\"].Library, this);\n }\n }, {\n key: \"bindListeners\",\n value: function bindListeners() {\n this.listenTo(shared_constants__WEBPACK_IMPORTED_MODULE_7__[\"DataChannels\"].LIBRARY, 'libraries:sync', this.render);\n }\n }, {\n key: \"name\",\n get: function get() {\n return 'NewFolderView';\n }\n }, {\n key: \"lang\",\n get: function get() {\n return 'libraryEditor.newFolder';\n }\n }, {\n key: \"title\",\n get: function get() {\n return libs_common_backbone_services_LanguageService__WEBPACK_IMPORTED_MODULE_13__[\"LanguageService\"].getPhrase(this.lang, 'title');\n }\n }, {\n key: \"folderTreeKey\",\n get: function get() {\n return \"folderselect:\".concat(this.cid);\n }\n }, {\n key: \"template\",\n get: function get() {\n return _NewFolder_hbs__WEBPACK_IMPORTED_MODULE_15___default.a;\n }\n }, {\n key: \"channelName\",\n get: function get() {\n return shared_utils__WEBPACK_IMPORTED_MODULE_11__[\"RadioChannelHelper\"].generateUniqueChannelName(this);\n }\n }, {\n key: \"behaviors\",\n get: function get() {\n var _this = this;\n\n return [{\n behaviorClass: shared_behaviors__WEBPACK_IMPORTED_MODULE_6__[\"PopupBehavior\"],\n title: libs_common_backbone_services_LanguageService__WEBPACK_IMPORTED_MODULE_13__[\"LanguageService\"].getPhrase(this.lang, 'heading'),\n appLink: this.options.returnAppLink,\n spinnerButtonOptions: {\n model: this.spinnerModel = new shared_models_DisabledSpinnerModel__WEBPACK_IMPORTED_MODULE_9__[\"DisabledSpinnerModel\"](),\n channelName: this.channelName,\n buttonText: libs_common_backbone_services_LanguageService__WEBPACK_IMPORTED_MODULE_13__[\"LanguageService\"].getPhrase(this.lang, 'create'),\n onClick: function onClick(e) {\n return _this.onSubmit(e);\n }\n }\n }];\n }\n }, {\n key: \"regions\",\n value: function regions() {\n return {\n folderDetails: '.folder-details-region'\n };\n }\n }, {\n key: \"events\",\n value: function events() {\n return {\n submit: 'onSubmit'\n };\n }\n }, {\n key: \"onSubmit\",\n value: function onSubmit(event) {\n event && event.preventDefault();\n this.viewModel.validate();\n if (this.viewModel.isValid() === false) return;\n backbone__WEBPACK_IMPORTED_MODULE_0__[\"Radio\"].channel(this.channelName).trigger(shared_components_spinner_button_SpinnerButtonComponent__WEBPACK_IMPORTED_MODULE_12__[\"SpinnerButtonEvents\"].ShowSpinner);\n this.trimFolderName();\n this.addFolder();\n this.logAction();\n }\n }, {\n key: \"addFolder\",\n value: function addFolder() {\n var _this2 = this;\n\n var parentId = this.viewModel.get('parentId').toString() === this.library.get('id').toString() ? null : this.viewModel.get('parentId').toString();\n this.libraryDataService.addFolder(this.viewModel, this.library.get('id').toString(), parentId, function (response) {\n libs_common_backbone_services_ViewModelService__WEBPACK_IMPORTED_MODULE_4__[\"ViewModelService\"].clear(_this2.getViewModelKey());\n\n if (_this2.options.routeToFolderOnCreate) {\n libs_common_core__WEBPACK_IMPORTED_MODULE_2__[\"Core\"].AppLinkHelper.trigger({\n application: shared_constants__WEBPACK_IMPORTED_MODULE_7__[\"AppChannels\"].LIBRARY_EDITOR,\n action: shared_constants__WEBPACK_IMPORTED_MODULE_7__[\"Actions\"].LibraryEditor.FOLDER,\n args: [response.get('id')]\n });\n } else {\n _this2.triggerMethod('hide');\n }\n });\n }\n }, {\n key: \"trimFolderName\",\n value: function trimFolderName() {\n var folderName = this.viewModel.get('name');\n this.viewModel.set('name', folderName.trim());\n }\n }, {\n key: \"logAction\",\n value: function logAction() {\n var data = {\n id: this.options.libraryId,\n name: this.viewModel.get('name'),\n isSubfolder: this.viewModel.get('parentId').toString() !== this.library.get('id').toString()\n };\n libs_analytics_AnalyticsHelper__WEBPACK_IMPORTED_MODULE_5__[\"AnalyticsHelper\"].logUserAction(data, this.options.analyticsOptions);\n }\n }, {\n key: \"setUpViewModel\",\n value: function setUpViewModel() {\n if (this.viewModel) return;\n var viewModelKey = this.getViewModelKey();\n this.viewModel = libs_common_backbone_services_ViewModelService__WEBPACK_IMPORTED_MODULE_4__[\"ViewModelService\"].get(viewModelKey, null, {\n ctor: shared_models_Folder__WEBPACK_IMPORTED_MODULE_10__[\"Folder\"]\n });\n this.viewModel.set({\n parentId: this.options.parentId || this.options.libraryId\n });\n }\n }, {\n key: \"getViewModelKey\",\n value: function getViewModelKey() {\n return \"folder:new:\".concat(this.options.libraryId, \":\").concat(this.options.parentId);\n }\n }, {\n key: \"renderFolderDetails\",\n value: function renderFolderDetails() {\n if (!this.collection) return;\n var folderDetails = new apps_library_editor_components_folder_details_FolderDetailsComponent__WEBPACK_IMPORTED_MODULE_14__[\"FolderDetailsComponent\"]({\n model: this.viewModel,\n collection: this.collection,\n library: this.library,\n channelName: this.channelName,\n editName: true,\n editParent: true,\n folderTreeKey: this.folderTreeKey\n });\n this.showChildView('folderDetails', folderDetails);\n }\n }, {\n key: \"onBeforeRender\",\n value: function onBeforeRender() {\n var _this3 = this;\n\n this.libraryDataService.getLibraries(function (data) {\n if (_this3.collection) return;\n var libraryId = _this3.options.libraryId || _this3.options.parentId;\n _this3.library = shared_utils__WEBPACK_IMPORTED_MODULE_11__[\"FolderTreeHelpers\"].getLibrary(libraryId, data);\n\n _this3.setUpViewModel();\n\n _this3.collection = new shared_collections_FolderCollection__WEBPACK_IMPORTED_MODULE_8__[\"FolderCollection\"]([_this3.library]);\n shared_utils__WEBPACK_IMPORTED_MODULE_11__[\"FolderTreeHelpers\"].setSelected(_this3.folderTreeKey, _this3.viewModel.get('parentId'), _this3.collection);\n });\n if (this.collection) this.spinnerModel.set(shared_components_spinner_button_SpinnerButtonComponent__WEBPACK_IMPORTED_MODULE_12__[\"SpinnerButtonModelAttributes\"].Disabled, false);\n var folderDepth = shared_utils__WEBPACK_IMPORTED_MODULE_11__[\"FolderTreeHelpers\"].getFolderDepth(this.options.parentId, this.collection);\n var atMaxDepth = folderDepth >= shared_constants__WEBPACK_IMPORTED_MODULE_7__[\"MiscConstants\"].MAX_FOLDER_DEPTH;\n\n if (atMaxDepth) {\n window.setTimeout(function () {\n _this3.triggerMethod('hide');\n\n libs_common_core__WEBPACK_IMPORTED_MODULE_2__[\"Core\"].ErrorHelper.throw(new apps_library_editor_errors__WEBPACK_IMPORTED_MODULE_16__[\"FolderMaxDepthError\"]());\n }, shared_constants__WEBPACK_IMPORTED_MODULE_7__[\"MiscConstants\"].POPUP_FADE_TIMEOUT);\n return false;\n }\n }\n }, {\n key: \"viewOptions\",\n value: function viewOptions() {\n return {\n dataFetched: !!this.collection,\n spinnerEl: shared_utils__WEBPACK_IMPORTED_MODULE_11__[\"SpinnerHelper\"].getSpinner({\n size: shared_utils__WEBPACK_IMPORTED_MODULE_11__[\"SpinnerSize\"].Large,\n extraClasses: 'mx-auto'\n })\n };\n }\n }, {\n key: \"onRender\",\n value: function onRender() {\n this.renderFolderDetails();\n }\n }]);\n\n return NewFolderView;\n}(libs_common_core__WEBPACK_IMPORTED_MODULE_2__[\"Core\"].View);//# sourceURL=[module]\n//# sourceMappingURL=data:application/json;charset=utf-8;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoiLi9zcmMvYXBwcy9saWJyYXJ5LWVkaXRvci92aWV3cy9uZXctZm9sZGVyL05ld0ZvbGRlclZpZXcudHMuanMiLCJzb3VyY2VzIjpbImZpbGU6Ly9DOi9DbGlja1ZpZXcgUHJvamVjdHMvY2xpY2t2aWV3L3BhY2thZ2VzL3Byb2plY3RzL2xpYnJhcnktZWRpdG9yL3NyYy9hcHBzL2xpYnJhcnktZWRpdG9yL3ZpZXdzL25ldy1mb2xkZXIvTmV3Rm9sZGVyVmlldy50cyJdLCJzb3VyY2VzQ29udGVudCI6WyJpbXBvcnQgeyBPYmplY3RIYXNoLCBSYWRpbyB9IGZyb20gJ2JhY2tib25lJztcclxuXHJcbmltcG9ydCB7IERldkVycm9yIH0gZnJvbSAnbGlicy9jb21tb24vYmFja2Jvbm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FBO0FBQUE7QUFtSkE7QUFFQTtBQUNBO0FBQ0E7QUFDQTtBQUNBO0FBQ0E7QUFDQTtBQUNBO0FBUEE7QUFTQTtBQUNBO0FBL0pBO0FBQUE7QUFBQTtBQWlLQTtBQUNBO0FBQUE7QUFDQTtBQUdBO0FBRUE7QUFDQTtBQUNBO0FBQ0E7QUFDQTtBQUNBO0FBRUE7QUFFQTtBQUdBO0FBQ0E7QUFDQTtBQUNBO0FBQ0E7QUFDQTtBQUNBO0FBQUE7QUFDQTtBQUNBO0FBQ0E7QUFDQTtBQTlMQTtBQUFBO0FBQUE7QUFpTUE7QUFDQTtBQUNBO0FBQUE7QUFBQTtBQUFBO0FBRkE7QUFJQTtBQXJNQTtBQUFBO0FBQUE7QUF3TUE7QUFDQTtBQXpNQTtBQUNBO0FBREE7QUFBQSIsInNvdXJjZVJvb3QiOiIifQ==\n//# sourceURL=webpack-internal:///./src/apps/library-editor/views/new-folder/NewFolderView.ts\n");
|
|
15
|
-
|
|
16
|
-
/***/ })
|
|
17
|
-
|
|
18
|
-
}]);
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
(window.webpackJsonp_clickview_library_editor=window.webpackJsonp_clickview_library_editor||[]).push([[21],{1223:function(e,t,n){"use strict";var o,r;n.d(t,"b",(function(){return o})),n.d(t,"a",(function(){return r})),function(e){e[e.Base=0]="Base",e[e.AwaitingReview=1]="AwaitingReview",e[e.PastReleases=2]="PastReleases",e[e.VideoAccess=3]="VideoAccess",e[e.ProcessingVideo=4]="ProcessingVideo",e[e.Draggable=5]="Draggable",e[e.Search=6]="Search"}(o||(o={})),function(e){e.Checkbox="checkbox",e.Thumbnail="thumbnail",e.Metadata="metadata",e.VideoActions="videoActions",e.VideoInfo="videoInfo"}(r||(r={}))},1224:function(e,t,n){e.exports={lock:"_25RMJ",svgContainer:"_1k8KB"}},1225:function(e,t,n){e.exports={dragItem:"_2TIZ7",svgContainer:"_3JzEU",dragText:"_1Kdwj"}},1226: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,r){e.propertyIsEnumerable;var i,l=e.lambda,a=e.escapeExpression;return'<span class="'+a(l(null!=(i=null!=(i=null!=t?t.options:t)?i.styles:i)?i.svgContainer:i,t))+' mr-2">'+(null!=(i=l(null!=(i=null!=t?t.options:t)?i.svg:i,t))?i:"")+'</span>\r\n<span class="'+a(l(null!=(i=null!=(i=null!=t?t.options:t)?i.styles:i)?i.dragText:i,t))+'">'+a(l(null!=(i=null!=t?t.options:t)?i.text:i,t))+"</span>"},useData:!0})},1235:function(e,t,n){e.exports={actions:"_34Z19",showPreview:"cZAmH"}},1237:function(e,t,n){var o=n(10);e.exports=(o.default||o).template({1:function(e,t,n,o,r){return" cursor-pointer"},3:function(e,t,n,o,r){return"checked"},5:function(e,t,n,o,r){return"disabled"},compiler:[8,">= 4.3.0"],main:function(e,t,n,o,r){e.propertyIsEnumerable;var i,l=e.lambda,a=e.escapeExpression,s=null!=t?t:e.nullContext||{};return'<div class="custom-control custom-checkbox '+a(l(null!=(i=null!=t?t.options:t)?i.checkboxClassName:i,t))+'">\r\n <input name="checkbox-'+a(l(null!=(i=null!=t?t.options:t)?i.id:i,t))+'" id="checkbox-'+a(l(null!=(i=null!=t?t.options:t)?i.id:i,t))+'" type="checkbox" class="custom-control-input'+(null!=(i=n.unless.call(s,null!=(i=null!=t?t.options:t)?i.disabled:i,{name:"unless",hash:{},fn:e.program(1,r,0),inverse:e.noop,data:r}))?i:"")+'" '+(null!=(i=n.if.call(s,null!=(i=null!=t?t.options:t)?i.checked:i,{name:"if",hash:{},fn:e.program(3,r,0),inverse:e.noop,data:r}))?i:"")+" "+(null!=(i=n.if.call(s,null!=(i=null!=t?t.options:t)?i.disabled:i,{name:"if",hash:{},fn:e.program(5,r,0),inverse:e.noop,data:r}))?i:"")+' />\r\n <label class="custom-control-label'+(null!=(i=n.unless.call(s,null!=(i=null!=t?t.options:t)?i.disabled:i,{name:"unless",hash:{},fn:e.program(1,r,0),inverse:e.noop,data:r}))?i:"")+'" for="checkbox-'+a(l(null!=(i=null!=t?t.options:t)?i.id:i,t))+'"> </label>\r\n</div>'},useData:!0})},1242:function(e,t,n){"use strict";var o=n(1225),r=n.n(o),i=n(1226),l=n.n(i);function a(e){return(a="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}function s(e,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 Date.prototype.toString.call(Reflect.construct(Date,[],(function(){}))),!0}catch(e){return!1}}();return function(){var n,o=f(e);if(t){var r=f(this).constructor;n=Reflect.construct(o,arguments,r)}else n=o.apply(this,arguments);return p(this,n)}}function p(e,t){return!t||"object"!==a(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)}(a,e);var t,n,o,i=u(a);function a(e){return function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,a),i.call(this,e)}return t=a,(n=[{key:"viewOptions",value:function(){return Object.assign({styles:r.a},this.options)}},{key:"name",get:function(){return"DraggableItemComponent"}},{key:"template",get:function(){return l.a}},{key:"className",get:function(){return"".concat(r.a.dragItem," p-3")}}])&&s(t.prototype,n),o&&s(t,o),a}(n(2).a.Component),y={delay:150,cursorAt:{left:-20,top:10},refreshPositions:!0};n.d(t,"c",(function(){return r.a})),n.d(t,"b",(function(){return h})),n.d(t,"a",(function(){return y}))},1243:function(e,t,n){e.exports={checkboxContainer:"_3BLCF",thumbnailContainer:"_16jlV",metaContainer:"_2mMws",actionsContainer:"I31I0",allowBulk:"_2VkOe",videoItem:"PoHa-",processingVideo:"qFjv2",bulkPlaceholder:"_3iAFa",previewContainer:"_2UBZX"}},1244:function(e,t,n){"use strict";n.d(t,"a",(function(){return d})),n.d(t,"b",(function(){return g}));var o=n(1),r=n(2),i=n(1237),l=n.n(i),a=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 Date.prototype.toString.call(Reflect.construct(Date,[],(function(){}))),!0}catch(e){return!1}}();return function(){var n,o=y(e);if(t){var r=y(this).constructor;n=Reflect.construct(o,arguments,r)}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 y(e){return(y=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)})(e)}var d="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,r,i=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),i.call(this,e)}return t=s,(n=[{key:"initialize",value:function(){this.getViewModel(),this.bindListeners()}},{key:"getViewModel",value:function(){this.model=a.a.GetViewModel(this.options.key,this.options.type)}},{key:"bindListeners",value:function(){this.options.disabled||this.listenTo(this.model,"change",this.onChange)}},{key:"events",value:function(){return{"change .custom-control-input":"onClick"}}},{key:"onChange",value:function(){this.checkAllChecked(),this.render()}},{key:"checkAllChecked",value:function(){var e=o.values(this.model.omit("all",d));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 d}},{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(d),disabled:this.options.disabled,checkboxClassName:this.options.checkboxClassName}}},{key:"name",get:function(){return"BulkCheckboxComponent"}},{key:"className",get:function(){return this.options.className}},{key:"template",get:function(){return l.a}}])&&u(t.prototype,n),r&&u(t,r),s}(r.a.Component)},1245:function(e,t,n){"use strict";var o=n(0),r=n(81),i=n(190),l=n(192),a=n(1251),s=n(1),c=n(2),u=n(15),p=n(133),f=n(12),h=n(1228),y=n(1257),d=n.n(y),g=n(1258),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 Date.prototype.toString.call(Reflect.construct(Date,[],(function(){}))),!0}catch(e){return!1}}();return function(){var n,o=C(e);if(t){var r=C(this).constructor;n=Reflect.construct(o,arguments,r)}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 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&&k(e,t)}(i,e);var t,n,o,r=w(i);function i(e){return function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,i),r.call(this,e)}return t=i,(n=[{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.n.getRestrictionTooltipMessage(this.model),t=this.options.showRestrictionBadge&&f.n.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.n.getReviewBadgeClassName(this.model,m.a.reviewBadge,m.a.urgentReviewBadge),restrictionMessage:t}}},{key:"name",get:function(){return"VideoItemBadgesComponent"}},{key:"template",get:function(){return d.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}}}])&&b(t.prototype,n),o&&b(t,o),i}(c.a.Component),E=n(1238),R=n(1227),x=n(1259),P=n.n(x),_=n(1224),T=n.n(_);function I(e){return(I="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(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 D(e,t){return(D=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 Date.prototype.toString.call(Reflect.construct(Date,[],(function(){}))),!0}catch(e){return!1}}();return function(){var n,o=N(e);if(t){var r=N(this).constructor;n=Reflect.construct(o,arguments,r)}else n=o.apply(this,arguments);return V(this,n)}}function V(e,t){return!t||"object"!==I(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 N(e){return(N=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&&D(e,t)}(l,e);var t,n,r,i=M(l);function l(e){return function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,l),i.call(this,e)}return t=l,(n=[{key:"initialize",value:function(){this.listenTo(this.model,"change:restrictions",this.render)}},{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(T.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 E.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 S({model:this.model}))}},{key:"viewOptions",value:function(){return{styles:T.a,hasAdminRestriction:f.n.hasAdminRestriction(this.model),restrictionMessage:f.n.getRestrictionTooltipMessage(this.model),lockSvg:u.a.getSvg(u.b.Lock)}}},{key:"onRender",value:function(){this.renderSeries(),this.renderSources(),this.renderBadges()}},{key:"name",get:function(){return"VideoItemMetadataComponent"}},{key:"template",get:function(){return P.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")]}}}}])&&j(t.prototype,n),r&&j(t,r),l}(c.a.Component),F=n(1260),A=n.n(F);function B(e){return(B="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(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 H(e,t){return(H=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e})(e,t)}function z(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 Date.prototype.toString.call(Reflect.construct(Date,[],(function(){}))),!0}catch(e){return!1}}();return function(){var n,o=q(e);if(t){var r=q(this).constructor;n=Reflect.construct(o,arguments,r)}else n=o.apply(this,arguments);return W(this,n)}}function W(e,t){return!t||"object"!==B(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 q(e){return(q=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&&H(e,t)}(a,e);var t,n,i,l=z(a);function a(e){return function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,a),l.call(this,e)}return t=a,(n=[{key:"initialize",value:function(){this.listenTo(this.model,"change:restrictions",this.render)}},{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(T.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(){return r.a.safeUrlConcat(this.options.config.get("onlineUrl"),"videos/".concat(this.model.get("id")))}},{key:"renderSources",value:function(){if(f.x.hasCustomLibrary(this.model)){var e=s.extend({},{model:this.model},this.options.sourceMetadataOptions);this.showChildView("sources",new E.a(e))}}},{key:"renderSeries",value:function(){f.x.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 S({model:this.model,showRestrictionBadge:!0}))}},{key:"viewOptions",value:function(){return{styles:T.a,restrictionMessage:f.n.getRestrictionTooltipMessage(this.model),lockSvg:u.a.getSvg(u.b.Lock),linkToOnline:!f.x.hasCustomLibrary(this.model),videoUrl:this.getVideoUrl(),openExternalSvg:u.a.getSvg(u.b.NewWindow)}}},{key:"onRender",value:function(){this.renderSeries(),this.renderSources(),this.renderBadges()}},{key:"name",get:function(){return"VideoItemVideoAccessMetadataComponent"}},{key:"template",get:function(){return A.a}},{key:"behaviors",get:function(){return[{behaviorClass:p.a,selector:".tool-tip"}]}},{key:"appLinks",get:function(){if(f.x.hasCustomLibrary(this.model))return{".applink-show-video":{application:o.b.LIBRARY_EDITOR,action:o.a.LibraryEditor.VIDEO_DETAILS,args:[this.model.get("id")]}}}}])&&U(t.prototype,n),i&&U(t,i),a}(c.a.Component),G=n(97),Q=n(99),J=n(1261),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 $(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 Date.prototype.toString.call(Reflect.construct(Date,[],(function(){}))),!0}catch(e){return!1}}();return function(){var n,o=ne(e);if(t){var r=ne(this).constructor;n=Reflect.construct(o,arguments,r)}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)}(l,e);var t,n,r,i=ee(l);function l(e){return function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,l),i.call(this,e)}return t=l,(n=[{key:"initialize",value:function(){this.bindListeners()}},{key:"bindListeners",value:function(){this.model.get("status")===G.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:foregroundProgress change:backgroundProgress change:pendingProcessStatus",this.render))}},{key:"viewOptions",value:function(){return this.pendingItem?{status:Q.a.getStatus(this.pendingItem),hasError:Q.a.hasError(this.pendingItem),hasPendingItem:!0}:{hasPendingItem:!1}}},{key:"lang",get:function(){return"shared.videoItemProcessingMetadata"}},{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]}}}}])&&$(t.prototype,n),r&&$(t,r),l}(c.a.Component),re=n(1262),ie=n.n(re);function le(e){return(le="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}function ae(e,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 Date.prototype.toString.call(Reflect.construct(Date,[],(function(){}))),!0}catch(e){return!1}}();return function(){var n,o=pe(e);if(t){var r=pe(this).constructor;n=Reflect.construct(o,arguments,r)}else n=o.apply(this,arguments);return ue(this,n)}}function ue(e,t){return!t||"object"!==le(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)}(l,e);var t,n,o,i=ce(l);function l(e){return function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,l),i.call(this,e)}return t=l,(n=[{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(){return r.a.safeUrlConcat(this.options.config.get("onlineUrl"),"videos/".concat(this.model.get("id")))}},{key:"getSeriesUrl",value:function(){if(this.model.series)return r.a.safeUrlConcat(this.options.config.get("onlineUrl"),"series/".concat(this.model.series.id))}},{key:"renderBadges",value:function(){this.showChildView("badges",new S({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:T.a,videoUrl:this.getVideoUrl(),openExternalSvg:u.a.getSvg(u.b.NewWindow)}}},{key:"onRender",value:function(){this.renderSeries(),this.renderBadges()}},{key:"name",get:function(){return"VideoItemAwaitingReviewMetadataComponent"}},{key:"template",get:function(){return ie.a}}])&&ae(t.prototype,n),o&&ae(t,o),l}(c.a.Component),he=n(1263),ye=n.n(he),de=n(1264),ge=n.n(de);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 Date.prototype.toString.call(Reflect.construct(Date,[],(function(){}))),!0}catch(e){return!1}}();return function(){var n,o=Ce(e);if(t){var r=Ce(this).constructor;n=Reflect.construct(o,arguments,r)}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 Se=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)}(l,e);var t,n,o,i=we(l);function l(e){return function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,l),i.call(this,e)}return t=l,(n=[{key:"initialize",value:function(){this.listenTo(this.model,"change:restrictions",this.render)}},{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(){return r.a.safeUrlConcat(this.options.config.get("onlineUrl"),"videos/".concat(this.model.get("id")))}},{key:"getSeriesUrl",value:function(){if(this.model.series)return r.a.safeUrlConcat(this.options.config.get("onlineUrl"),"series/".concat(this.model.series.id))}},{key:"renderBadges",value:function(){this.showChildView("badges",new S({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({},T.a,ge.a),videoUrl:this.getVideoUrl(),openExternalSvg:u.a.getSvg(u.b.NewWindow),hasAdminRestriction:f.n.hasAdminRestriction(this.model),restrictionMessage:f.n.getRestrictionTooltipMessage(this.model),lockSvg:u.a.getSvg(u.b.Lock)}}},{key:"onRender",value:function(){this.renderSeries(),this.renderBadges()}},{key:"name",get:function(){return"VideoItemPastReleasesMetadataComponent"}},{key:"template",get:function(){return ye.a}},{key:"lang",get:function(){return"shared.videoItemPastReleasesMetadata"}},{key:"behaviors",get:function(){return[{behaviorClass:p.a,selector:".tool-tip"}]}}])&&be(t.prototype,n),o&&be(t,o),l}(c.a.Component),Ee=n(1265),Re=n.n(Ee);function xe(e){return(xe="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 Pe(e,t){for(var n=0;n<t.length;n++){var o=t[n];o.enumerable=o.enumerable||!1,o.configurable=!0,"value"in o&&(o.writable=!0),Object.defineProperty(e,o.key,o)}}function _e(e,t){return(_e=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e})(e,t)}function Te(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 Date.prototype.toString.call(Reflect.construct(Date,[],(function(){}))),!0}catch(e){return!1}}();return function(){var n,o=je(e);if(t){var r=je(this).constructor;n=Reflect.construct(o,arguments,r)}else n=o.apply(this,arguments);return Ie(this,n)}}function Ie(e,t){return!t||"object"!==xe(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 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&&_e(e,t)}(l,e);var t,n,r,i=Te(l);function l(e){return function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,l),i.call(this,e)}return t=l,(n=[{key:"initialize",value:function(){this.listenTo(this.model,"change:restrictions",this.render)}},{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(T.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.v.extractKeyPhrases(this.model.get("description"),this.model.get("_matchedWords"),100,2).map((function(t){return f.v.wordsHighlighter(f.v.escapeExpression(t),e.model.get("_matchedWords"))}))}},{key:"renderSources",value:function(){var e=s.extend({},{model:this.model},this.options.sourceMetadataOptions);this.showChildView("sources",new E.a(e))}},{key:"renderSeries",value:function(){this.showChildView("series",new R.a({model:this.model,highlight:this.options.sourceMetadataOptions&&!!this.options.sourceMetadataOptions.highlight}))}},{key:"renderBadges",value:function(){this.showChildView("badges",new S({model:this.model}))}},{key:"viewOptions",value:function(){return{styles:T.a,name:f.v.wordsHighlighter(f.v.escapeExpression(this.model.get("name")),this.model.get("_matchedWords")),keyPhrases:this.getKeyPhrases(),hasAdminRestriction:f.n.hasAdminRestriction(this.model),restrictionMessage:f.n.getRestrictionTooltipMessage(this.model),lockSvg:u.a.getSvg(u.b.Lock)}}},{key:"onRender",value:function(){this.renderSeries(),this.renderSources(),this.renderBadges()}},{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")]}}}}])&&Pe(t.prototype,n),r&&Pe(t,r),l}(c.a.Component),Me=n(6),Ve=n(1292),Ne=n(1266),Le=n.n(Ne),Fe=n(1235),Ae=n.n(Fe);function Be(e){return(Be="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 Ue(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 ze(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 Date.prototype.toString.call(Reflect.construct(Date,[],(function(){}))),!0}catch(e){return!1}}();return function(){var n,o=qe(e);if(t){var r=qe(this).constructor;n=Reflect.construct(o,arguments,r)}else n=o.apply(this,arguments);return We(this,n)}}function We(e,t){return!t||"object"!==Be(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 qe(e){return(qe=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)})(e)}var Ye=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)}(i,e);var t,n,o,r=ze(i);function i(e){return function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,i),r.call(this,e)}return t=i,(n=[{key:"regions",value:function(){return{videoActions:".video-actions-region"}}},{key:"events",value:function(){return e={},t="click .".concat(Ae.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&&Me.Radio.channel(this.options.channelName).trigger("click:show:preview")}},{key:"renderVideoActions",value:function(){this.showChildView("videoActions",new Ve.a(this.options.videoActionsOptions))}},{key:"viewOptions",value:function(){return{styles:Ae.a,previewDisplayed:this.options.previewDisplayed,previewSvg:u.a.getSvg(u.b.Preview)}}},{key:"onRender",value:function(){this.renderVideoActions()}},{key:"name",get:function(){return"VideoItemActionsComponent"}},{key:"template",get:function(){return Le.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"}}])&&Ue(t.prototype,n),o&&Ue(t,o),i}(c.a.Component),Ge=n(5),Qe=n(4),Je=n(42),Ke=n(1267),Ze=n.n(Ke);function $e(e){return($e="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}function Xe(e,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 Date.prototype.toString.call(Reflect.construct(Date,[],(function(){}))),!0}catch(e){return!1}}();return function(){var n,o=ot(e);if(t){var r=ot(this).constructor;n=Reflect.construct(o,arguments,r)}else n=o.apply(this,arguments);return nt(this,n)}}function nt(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 ot(e){return(ot=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)})(e)}var rt=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)}(l,e);var t,n,r,i=tt(l);function l(e){return function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,l),i.call(this,e)}return t=l,(n=[{key:"initialize",value:function(){this.restrictedVideoDataService=Ge.a.getInstance(o.g.RestrictedVideo,this)}},{key:"events",value:function(){return e={"click .approve":"onClickApprove","click .applink-manage-video-access":"onClickManageVideoAccess"},t="click .".concat(Ae.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:"onClickApprove",value:function(e){e.stopPropagation(),this.restrictedVideoDataService.deleteVideoRestriction(this.model.get("id")),this.logApproveAction()}},{key:"onClickManageVideoAccess",value:function(e){e.stopPropagation(),this.logManageAccessAction()}},{key:"onClickShowPreview",value:function(e){e.stopPropagation(),this.options.channelName&&Me.Radio.channel(this.options.channelName).trigger("click:show:preview")}},{key:"logApproveAction",value:function(){var e={location:Qe.LocationContext.AwaitingReviewVideoItem,actionType:Qe.UserAction.Approve,entity:Qe.EntityType.Video,descriptor:Qe.OperationDescriptor.Single,workflowPhase:Qe.WorkflowPhase.Complete},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:Ae.a,previewDisplayed:this.options.previewDisplayed,previewSvg:u.a.getSvg(u.b.Preview)}}},{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:"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")]}}}}])&&Xe(t.prototype,n),r&&Xe(t,r),l}(c.a.Component),it=n(1268),lt=n.n(it);function at(e){return(at="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 Date.prototype.toString.call(Reflect.construct(Date,[],(function(){}))),!0}catch(e){return!1}}();return function(){var n,o=ft(e);if(t){var r=ft(this).constructor;n=Reflect.construct(o,arguments,r)}else n=o.apply(this,arguments);return pt(this,n)}}function pt(e,t){return!t||"object"!==at(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)}(l,e);var t,n,r,i=ut(l);function l(e){return function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,l),i.call(this,e)}return t=l,(n=[{key:"events",value:function(){return e={"click .applink-manage-video-access":"onClickManageVideoAccess"},t="click .".concat(Ae.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&&Me.Radio.channel(this.options.channelName).trigger("click:show:preview")}},{key:"logAction",value:function(){var e={location:Qe.LocationContext.VideoListItem,actionType:Qe.UserAction.SetAccess,entity:Qe.EntityType.Video,workflowPhase:Qe.WorkflowPhase.Start},t={id:this.model.get("id")};Je.a.logUserAction(t,e)}},{key:"viewOptions",value:function(){return{styles:Ae.a,previewDisplayed:this.options.previewDisplayed,previewSvg:u.a.getSvg(u.b.Preview)}}},{key:"name",get:function(){return"VideoItemVideoAccessComponent"}},{key:"template",get:function(){return lt.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")]}}}}])&&st(t.prototype,n),r&&st(t,r),l}(c.a.Component),yt=n(1252),dt=n(1269),gt=n(9),mt=n(3),vt=n(297),bt=n(1254),kt=n(292),wt=n(1270),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 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 Et(e,t){return(Et=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 Date.prototype.toString.call(Reflect.construct(Date,[],(function(){}))),!0}catch(e){return!1}}();return function(){var n,o=Pt(e);if(t){var r=Pt(this).constructor;n=Reflect.construct(o,arguments,r)}else n=o.apply(this,arguments);return xt(this,n)}}function xt(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 Pt(e){return(Pt=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)})(e)}var _t=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)}(l,e);var t,n,r,i=Rt(l);function l(e){return function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,l),i.call(this,e)}return t=l,(n=[{key:"events",value:function(){return{"click .show-more-tags":"onClickShowMoreTags"}}},{key:"regions",value:function(){return{tags:{replaceElement:!0,el:".tags-region"}}}},{key:"onClickShowMoreTags",value:function(){this.showingMoreTags=!0,this.options.channelName&&Me.Radio.channel(this.options.channelName).trigger("show:more:tags"),this.render()}},{key:"getTagCollection",value:function(){var e=this.showingMoreTags?this.options.expandedTagDisplayCount:this.options.initialTagDisplayCount;return new 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()}},{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]}}}}])&&St(t.prototype,n),r&&St(t,r),l}(c.a.Component),Tt=n(1271),It=n.n(Tt),jt=n(1272),Dt=n.n(jt);function Mt(e){return(Mt="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 Vt(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 Nt(e,t){return(Nt=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e})(e,t)}function Lt(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 Date.prototype.toString.call(Reflect.construct(Date,[],(function(){}))),!0}catch(e){return!1}}();return function(){var n,o=At(e);if(t){var r=At(this).constructor;n=Reflect.construct(o,arguments,r)}else n=o.apply(this,arguments);return Ft(this,n)}}function Ft(e,t){return!t||"object"!==Mt(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 At(e){return(At=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)})(e)}var Bt=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&&Nt(e,t)}(l,e);var t,n,r,i=Lt(l);function l(e){return function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,l),i.call(this,e)}return t=l,(n=[{key:"initialize",value:function(){this.listenTo(this.model,"change",this.render),this.listenTo(this.channelName,"show:more:tags",this.onClickShowMoreTags)}},{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(){Me.Radio.channel(this.options.channelName).trigger("resize:preview")}},{key:"showTags",value:function(){return!(!this.model.tags||!this.model.tags.length)}},{key:"renderDescription",value:function(){if(this.model&&this.model.get("description")){var e=new yt.a({model:this.model,highlighter:!0,size:yt.b.Small,truncate:!0});this.showChildView("description",e)}}},{key:"renderTags",value:function(){if(this.showTags()){var e=new _t({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 dt.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"))||(Me.Radio.channel(this.options.collectionViewChannel).trigger("fetch:video:with:metadata",this.options.videoId),!(!this.model||!this.model.get("dataFetched"))&&void 0)}},{key:"viewOptions",value:function(){if(this.model&&this.model.get("dataFetched")){var e=this.model.get("duration");return{styles:Dt.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()}},{key:"name",get:function(){return"VideoItemPreviewComponent"}},{key:"template",get:function(){return It.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"}]}}])&&Vt(t.prototype,n),r&&Vt(t,r),l}(c.a.Component),Ut=n(1273),Ht=n.n(Ut);function zt(e){return(zt="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 Wt(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 qt(e,t){return(qt=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e})(e,t)}function Yt(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 Date.prototype.toString.call(Reflect.construct(Date,[],(function(){}))),!0}catch(e){return!1}}();return function(){var n,o=Qt(e);if(t){var r=Qt(this).constructor;n=Reflect.construct(o,arguments,r)}else n=o.apply(this,arguments);return Gt(this,n)}}function Gt(e,t){return!t||"object"!==zt(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,$t,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&&qt(e,t)}(i,e);var t,n,o,r=Yt(i);function i(e){return function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,i),r.call(this,e)}return t=i,(n=[{key:"initialize",value:function(){this.bindListeners()}},{key:"events",value:function(){return{"click .cancel":"onClickCancel","click .retry":"onClickRetry"}}},{key:"onClickCancel",value:function(){var e=this.pendingItem.get("video").get("name");f.b.generateDialog(e,this.options.channelName,"cancel:pending:item",this.pendingItem)}},{key:"onClickRetry",value:function(){Me.Radio.channel(this.options.channelName).trigger("retry:pending:item",this.pendingItem)}},{key:"bindListeners",value:function(){this.model.get("status")===G.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}},{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"}}])&&Wt(t.prototype,n),o&&Wt(t,o),i}(c.a.Component),ln=n(1243),an=n.n(ln),sn=n(187),cn=n(1223);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:i.a,options:{model:e.model,lazyload:e.shouldLazyLoadThumbnail(),thumbnailOptions:{size:l.a.Small},href:r.a.safeUrlConcat(e.options.config.get("onlineUrl"),"videos/".concat(e.model.id)),channelName:e.channelName}}},yn=function(e){return{component:Bt,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}}},dn=function(e){return{component:Bt,options:{model:e.options.videoWithMetadata,videoId:e.model.id.toString(),channelName:e.channelName,collectionViewChannel:e.options.collectionViewChannel,webPlayerUrl:e.options.config.get("webPlayerUrl"),externalLink:r.a.safeUrlConcat(e.options.config.get("onlineUrl"),"videos/".concat(e.model.id)),currentUser:e.options.currentUser}}},gn={componentOptions:(en={},un(en,pn.Base,(Jt={},un(Jt,fn.Checkbox,(function(e){return{component:a.a,options:{className:"d-inline-flex align-items-center mr-3 ".concat(an.a.checkboxContainer),checkboxClassName:an.a.checkbox,itemId:e.model.id,key:e.collectionIdentifier.toString(),type:sn.CheckboxTypes.VIDEO_LIST}}})),un(Jt,fn.Thumbnail,(function(e){return{component:i.a,options:{model:e.model,lazyload:e.shouldLazyLoadThumbnail(),thumbnailOptions:{size:l.a.Small},appLink:{application:o.b.LIBRARY_EDITOR,action:o.a.LibraryEditor.VIDEO_DETAILS,args:[e.model.id]},channelName:e.channelName}}})),un(Jt,fn.Metadata,(function(e){return{component:L,options:{model:e.model,sourceMetadataOptions:e.options.sourceMetadataOptions}}})),un(Jt,fn.VideoActions,(function(e){return{component:Ye,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,yn),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:rt,options:{model:e.model,channelName:e.channelName,previewDisplayed:e.viewModel.get("previewOpen"),analyticsOptions:e.options.analyticsOptions}}})),un(Kt,fn.VideoInfo,dn),Kt)),un(en,pn.PastReleases,(Zt={},un(Zt,fn.Thumbnail,hn),un(Zt,fn.Metadata,(function(e){return{component:Se,options:{model:e.model,config:e.options.config}}})),un(Zt,fn.VideoInfo,dn),Zt)),un(en,pn.VideoAccess,($t={},un($t,fn.VideoActions,(function(e){return{component:ht,options:{model:e.model,channelName:e.channelName,previewDisplayed:e.viewModel.get("previewOpen"),analyticsOptions:e.options.analyticsOptions}}})),un($t,fn.Metadata,(function(e){return{component:Y,options:{model:e.model,config:e.options.config,sourceMetadataOptions:{showFolder:!0}}}})),un($t,fn.VideoInfo,(function(e){return f.x.hasCustomLibrary(e.model)?yn(e):dn(e)})),$t)),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:De,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)}},1246:function(e,t,n){"use strict";var o=n(2),r=n(1),i=n(1223),l=n(1245),a=n(1247);var s,c,u,p=(s={},c=i.b.Draggable,u=function(e){return[{behaviorClass:a.a,collectionIdentifier:e.options.collectionIdentifier,model:e.options.model,selector:"drag-selector"}]},c in s?Object.defineProperty(s,c,{value:u,enumerable:!0,configurable:!0,writable:!0}):s[c]=u,s),f=n(20);n.d(t,"a",(function(){return d}));var h=i.b.Base,y=l.a,d={renderRegions:function(e,t){r.each(e.regions,(function(n,o){g.onBeforeRenderRegion(e,t,o)&&g.renderRegion(e,t,o)}))},onBeforeRenderRegion:function(e,t,n){var o=y.onBeforeRender[t];if(o||(o=y.onBeforeRender[h]),!o)return!0;var i=o[n];return!i||(!r.isFunction(i)||i(e))},renderRegion:function(e,t,n){var o=g.getComponent(e,t,n);e.showChildView(n,o)},getComponent:function(e,t,n){var r=y.componentOptions[t];r||o.a.ErrorHelper.throw(new f.a("Must define VideoItemComponent type options: ".concat(i.b[t],".")));var l=r[n];l||(l=y.componentOptions[h][n]),l||o.a.ErrorHelper.throw(new f.a("Must define VideoItemComponent region options: ".concat(n,".")));var a=l(e);return a.component||o.a.ErrorHelper.throw(new f.a("Must define component for region: ".concat(n,",\n in VideoItemComponent type: ").concat(i.b[t],"."))),new a.component(a.options||{})},getBehaviors:function(e,t){return p[t]?p[t](e):null}},g=d},1247:function(e,t,n){"use strict";n.d(t,"a",(function(){return O}));var o=n(1),r=n(6),i=n(2),l=n(20),a=n(15),s=n(0),c=n(12),u=n(3),p=n(1242),f=n(187),h=n(1250),y=n.n(h);function d(e){return(d="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(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 Date.prototype.toString.call(Reflect.construct(Date,[],(function(){}))),!0}catch(e){return!1}}();return function(){var n,o=w(e);if(t){var r=w(this).constructor;n=Reflect.construct(o,arguments,r)}else n=o.apply(this,arguments);return k(this,n)}}function k(e,t){return!t||"object"!==d(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,d=b(k);function k(){return g(this,k),d.apply(this,arguments)}return t=k,(n=[{key:"initialize",value:function(){this.options.model||i.a.ErrorHelper.throw(new l.a("DraggableVideoBehavior must be passed a Video model")),this.listenTo(s.w.VIDEO_DRAG_DROP,"drag:style:".concat(this.options.model.id),this.styleDragStart),this.listenTo(s.w.VIDEO_DRAG_DROP,"drag:stop",this.styleDragStop)}},{key:"helper",value:function(){var e=this.getVideoModels();return new p.b({text:e.length>1?u.a.getPhrase(this.lang,"videos",{videoCount:e.length}):e[0].get("name"),svg:a.a.getSvg(a.b.Play)}).render().el}},{key:"getSelector",value:function(){return this.view.getUI(this.options.selector)}},{key:"styleDragStart",value:function(){this.getSelector().addClass(y.a.draggingVideo)}},{key:"styleDragStop",value:function(){this.getSelector().removeClass(y.a.draggingVideo)}},{key:"start",value:function(){var e=this.getVideoModels(),t=r.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(){r.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")}},{key:"lang",get:function(){return"libraryEditor.behaviors"}}])&&m(t.prototype,n),h&&m(t,h),k}(i.a.Behavior)},1250:function(e,t,n){e.exports={draggingVideo:"_3cCHx"}},1251:function(e,t,n){"use strict";n.d(t,"a",(function(){return y}));var o=n(2),r=n(1237),i=n.n(r),l=n(12),a=n(1244);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 Date.prototype.toString.call(Reflect.construct(Date,[],(function(){}))),!0}catch(e){return!1}}();return function(){var n,o=h(e);if(t){var r=h(this).constructor;n=Reflect.construct(o,arguments,r)}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 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&&u(e,t)}(s,e);var t,n,o,r=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),r.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:"getViewModel",value:function(){this.model=l.a.GetViewModel(this.options.key,this.options.type)}},{key:"bindListeners",value:function(){this.options.disabled||this.listenTo(this.model,"change:all change:".concat(this.getItemId()),this.render)}},{key:"events",value:function(){return{"click .custom-checkbox":"onClickCheckbox","change .custom-control-input":"onChangeCheckbox"}}},{key:"getItemId",value:function(){return this.options.itemId.toString()}},{key:"onClickCheckbox",value:function(e){e.stopPropagation()}},{key:"onChangeCheckbox",value:function(){if(!this.options.disabled){var e=this.getItemId();this.model.has(e)||this.model.get("all")?!1===this.model.get(e)?this.model.set(e,!0):(this.model.set(e,!1),this.model.set(a.a,!1)):this.model.set(e,!0)}}},{key:"viewOptions",value:function(){var e=this.getItemId();return{id:e,checked:this.model.has(e)?this.model.get(e):this.model.get("all"),disabled:this.options.disabled,checkboxClassName:this.options.checkboxClassName}}},{key:"name",get:function(){return"CheckboxComponent"}},{key:"className",get:function(){return this.options.className}},{key:"template",get:function(){return i.a}}])&&c(t.prototype,n),o&&c(t,o),s}(o.a.Component)},1255:function(e,t,n){"use strict";n.d(t,"a",(function(){return d}));var o=n(1),r=n(2),i=n(4),l=n(42),a=n(1256),s=n.n(a);function c(e){return(c="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}function u(e,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 Date.prototype.toString.call(Reflect.construct(Date,[],(function(){}))),!0}catch(e){return!1}}();return function(){var n,o=y(e);if(t){var r=y(this).constructor;n=Reflect.construct(o,arguments,r)}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 y(e){return(y=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&&p(e,t)}(c,e);var t,n,r,a=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),a.call(this,e)}return t=c,(n=[{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,r=e,n in t?Object.defineProperty(t,n,{value:r,enumerable:!0,configurable:!0,writable:!0}):t[n]=r,t))};var t,n,r}},{key:"onClickPrevious",value:function(){this.logAction("previous")}},{key:"onClickNext",value:function(){this.logAction("next")}},{key:"logAction",value:function(e){var t=l.a.mergeOptions(this.options.analyticsOptions,{location:i.LocationContext.Pagination,entity:i.EntityType.Pagination,actionType:i.UserAction.Navigate}),n={id:this.options.collectionId,page:e};l.a.logUserAction(n,t)}},{key:"viewOptions",value:function(){return{cursors:this.options.cursors}}},{key:"onBeforeRender",value:function(){return!!this.options.cursors}},{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}}])&&u(t.prototype,n),r&&u(t,r),c}(r.a.Component)},1256:function(e,t,n){var o=n(10);e.exports=(o.default||o).template({1:function(e,t,n,o,r){return"disabled"},compiler:[8,">= 4.3.0"],main:function(e,t,n,o,r){e.propertyIsEnumerable;var i,l=null!=t?t:e.nullContext||{},a=e.hooks.helperMissing,s=e.escapeExpression;return'<div class="p-3">\r\n <a class="btn previous-applink btn-secondary '+(null!=(i=n.unless.call(l,null!=(i=null!=(i=null!=t?t.options:t)?i.cursors:i)?i.previous:i,{name:"unless",hash:{},fn:e.program(1,r,0),inverse:e.noop,data:r}))?i:"")+'">'+s((n.lang||t&&t.lang||a).call(l,"previous",{name:"lang",hash:{},data:r}))+'</a>\r\n <a class="btn next-applink btn-secondary '+(null!=(i=n.unless.call(l,null!=(i=null!=(i=null!=t?t.options:t)?i.cursors:i)?i.next:i,{name:"unless",hash:{},fn:e.program(1,r,0),inverse:e.noop,data:r}))?i:"")+'">'+s((n.lang||t&&t.lang||a).call(l,"next",{name:"lang",hash:{},data:r}))+"</a>\r\n</div>"},useData:!0})},1257:function(e,t,n){var o=n(10);e.exports=(o.default||o).template({1:function(e,t,n,o,r){e.propertyIsEnumerable;var i,l=e.escapeExpression;return' <span class="badge p-1 '+l(e.lambda(null!=(i=null!=(i=null!=t?t.options:t)?i.styles:i)?i.interactive:i,t))+'">'+l((n.lang||t&&t.lang||e.hooks.helperMissing).call(null!=t?t:e.nullContext||{},"interactive",{name:"lang",hash:{},data:r}))+"</span>\r\n"},3:function(e,t,n,o,r){e.propertyIsEnumerable;var i,l=e.lambda,a=e.escapeExpression;return' <span class="badge p-1 tool-tip '+a(l(null!=(i=null!=(i=null!=t?t.options:t)?i.styles:i)?i.rating:i,t))+" "+a(l(null!=(i=null!=t?t.options:t)?i.ratingColorClass:i,t))+'" title="'+a(l(null!=(i=null!=t?t.rating:t)?i.name:i,t))+'">'+a(l(null!=(i=null!=t?t.rating:t)?i.code:i,t))+"</span>\r\n"},5:function(e,t,n,o,r){e.propertyIsEnumerable;var i,l=e.lambda;return' <span class="d-inline-block tool-tip '+e.escapeExpression(l(null!=(i=null!=(i=null!=t?t.options:t)?i.styles:i)?i.svgContainer:i,t))+'" title="Subtitles">'+(null!=(i=l(null!=(i=null!=t?t.options:t)?i.closeCaptionSvg:i,t))?i:"")+"</span>\r\n"},7:function(e,t,n,o,r){e.propertyIsEnumerable;var i,l=e.lambda;return' <span class="d-inline-block tool-tip '+e.escapeExpression(l(null!=(i=null!=(i=null!=t?t.options:t)?i.styles:i)?i.svgContainer:i,t))+'" title="Resources">'+(null!=(i=l(null!=(i=null!=t?t.options:t)?i.resourcesSvg:i,t))?i:"")+"</span>\r\n"},9:function(e,t,n,o,r){e.propertyIsEnumerable;var i,l=e.lambda,a=e.escapeExpression;return' <span class="badge p-1 '+a(l(null!=(i=null!=t?t.options:t)?i.awaitingReviewBadgeClass:i,t))+'">'+a(l(null!=(i=null!=t?t.options:t)?i.awaitingReviewMsg:i,t))+"</span>\r\n"},11:function(e,t,n,o,r){e.propertyIsEnumerable;var i,l=e.lambda,a=e.escapeExpression;return' <span class="badge p-1 '+a(l(null!=(i=null!=(i=null!=t?t.options:t)?i.styles:i)?i.restrictionBadgeClass:i,t))+'">'+a(l(null!=(i=null!=t?t.options:t)?i.restrictionMessage:i,t))+"</span>\r\n"},compiler:[8,">= 4.3.0"],main:function(e,t,n,o,r){e.propertyIsEnumerable;var i,l=null!=t?t:e.nullContext||{};return'<div class="mt-1 '+e.escapeExpression(e.lambda(null!=(i=null!=(i=null!=t?t.options:t)?i.styles:i)?i.badgesWrapper:i,t))+'">\r\n'+(null!=(i=n.if.call(l,null!=(i=null!=t?t.options:t)?i.interactive:i,{name:"if",hash:{},fn:e.program(1,r,0),inverse:e.noop,data:r}))?i:"")+"\r\n"+(null!=(i=n.if.call(l,null!=(i=null!=t?t.rating:t)?i.code:i,{name:"if",hash:{},fn:e.program(3,r,0),inverse:e.noop,data:r}))?i:"")+"\r\n"+(null!=(i=n.if.call(l,null!=(i=null!=t?t.options:t)?i.subtitles:i,{name:"if",hash:{},fn:e.program(5,r,0),inverse:e.noop,data:r}))?i:"")+"\r\n"+(null!=(i=n.if.call(l,null!=(i=null!=t?t.options:t)?i.resources:i,{name:"if",hash:{},fn:e.program(7,r,0),inverse:e.noop,data:r}))?i:"")+"\r\n"+(null!=(i=n.if.call(l,null!=(i=null!=t?t.options:t)?i.awaitingReviewMsg:i,{name:"if",hash:{},fn:e.program(9,r,0),inverse:e.noop,data:r}))?i:"")+"\r\n"+(null!=(i=n.if.call(l,null!=(i=null!=t?t.options:t)?i.restrictionMessage:i,{name:"if",hash:{},fn:e.program(11,r,0),inverse:e.noop,data:r}))?i:"")+"</div>"},useData:!0})},1258:function(e,t,n){e.exports={interactive:"_37GpR",rating:"_2lAYT",svgContainer:"_19ncQ",badgesWrapper:"_26lCi",restrictionBadgeClass:"UdQeS",reviewBadge:"ExFLF",urgentReviewBadge:"_3dcfL"}},1259:function(e,t,n){var o=n(10);e.exports=(o.default||o).template({1:function(e,t,n,o,r){e.propertyIsEnumerable;var i,l=e.lambda,a=e.escapeExpression;return' <span class="d-inline-block ml-1 tool-tip '+a(l(null!=(i=null!=(i=null!=t?t.options:t)?i.styles:i)?i.svgContainer:i,t))+'" title="'+a(l(null!=(i=null!=t?t.options:t)?i.restrictionMessage:i,t))+'">'+(null!=(i=l(null!=(i=null!=t?t.options:t)?i.lockSvg:i,t))?i:"")+"</span>\r\n"},compiler:[8,">= 4.3.0"],main:function(e,t,n,o,r){e.propertyIsEnumerable;var i,l,a=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(l=null!=(l=n.name||(null!=t?t.name:t))?l:e.hooks.helperMissing)?l.call(a,{name:"name",hash:{},data:r}):l)+"</a>\r\n"+(null!=(i=n.if.call(a,null!=(i=null!=t?t.options:t)?i.hasAdminRestriction:i,{name:"if",hash:{},fn:e.program(1,r,0),inverse:e.noop,data:r}))?i:"")+'<div class="sources-region"></div>\r\n<div class="badges-region"></div>'},useData:!0})},1260:function(e,t,n){var o=n(10);e.exports=(o.default||o).template({1:function(e,t,n,o,r){e.propertyIsEnumerable;var i,l,a=e.lambda,s=e.escapeExpression;return'<a class="cursor-pointer h6 video-title text-dark" href="'+s(a(null!=(i=null!=t?t.options:t)?i.videoUrl:i,t))+'" target="_blank">'+s("function"==typeof(l=null!=(l=n.name||(null!=t?t.name:t))?l:e.hooks.helperMissing)?l.call(null!=t?t:e.nullContext||{},{name:"name",hash:{},data:r}):l)+'</a>\r\n<a class="svg-container d-inline-block align-bottom text-muted no-decoration" href="'+s(a(null!=(i=null!=t?t.options:t)?i.videoUrl:i,t))+'" target="_blank">'+(null!=(i=a(null!=(i=null!=t?t.options:t)?i.openExternalSvg:i,t))?i:"")+"</a>\r\n"},3:function(e,t,n,o,r){var i;e.propertyIsEnumerable;return'<a class="cursor-pointer applink-show-video h6">'+e.escapeExpression("function"==typeof(i=null!=(i=n.name||(null!=t?t.name:t))?i:e.hooks.helperMissing)?i.call(null!=t?t:e.nullContext||{},{name:"name",hash:{},data:r}):i)+"</a>\r\n"},compiler:[8,">= 4.3.0"],main:function(e,t,n,o,r){e.propertyIsEnumerable;var i,l=e.lambda,a=e.escapeExpression;return'<div class="series-region"></div>\r\n'+(null!=(i=n.if.call(null!=t?t:e.nullContext||{},null!=(i=null!=t?t.options:t)?i.linkToOnline:i,{name:"if",hash:{},fn:e.program(1,r,0),inverse:e.program(3,r,0),data:r}))?i:"")+'<span class="d-inline-block ml-1 tool-tip '+a(l(null!=(i=null!=(i=null!=t?t.options:t)?i.styles:i)?i.lock:i,t))+" "+a(l(null!=(i=null!=(i=null!=t?t.options:t)?i.styles:i)?i.svgContainer:i,t))+'" title="'+a(l(null!=(i=null!=t?t.options:t)?i.restrictionMessage:i,t))+'">'+(null!=(i=l(null!=(i=null!=t?t.options:t)?i.lockSvg:i,t))?i:"")+'</span>\r\n<div class="sources-region"></div>\r\n<div class="badges-region"></div>'},useData:!0})},1261:function(e,t,n){var o=n(10);e.exports=(o.default||o).template({1:function(e,t,n,o,r){e.propertyIsEnumerable;var i,l=e.lambda;return' <span class="d-inline-block align-middle ml-1 '+e.escapeExpression(l(null!=(i=null!=(i=null!=t?t.options:t)?i.styles:i)?i.lockSvgContainer:i,t))+'">'+(null!=(i=l(null!=(i=null!=t?t.options:t)?i.lockSvg:i,t))?i:"")+"</span>\r\n"},3:function(e,t,n,o,r){return"text-danger"},5:function(e,t,n,o,r){var i;e.propertyIsEnumerable;return" "+e.escapeExpression(e.lambda(null!=(i=null!=t?t.options:t)?i.status:i,t))+"\r\n"},7:function(e,t,n,o,r){e.propertyIsEnumerable;return" "+e.escapeExpression((n.lang||t&&t.lang||e.hooks.helperMissing).call(null!=t?t:e.nullContext||{},"waiting",{name:"lang",hash:{},data:r}))+"\r\n"},9:function(e,t,n,o,r){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:r}))+"</i>\r\n"},compiler:[8,">= 4.3.0"],main:function(e,t,n,o,r){e.propertyIsEnumerable;var i,l,a=null!=t?t:e.nullContext||{};return'<a class="applink-show-video h6 text-dark">'+e.escapeExpression("function"==typeof(l=null!=(l=n.name||(null!=t?t.name:t))?l:e.hooks.helperMissing)?l.call(a,{name:"name",hash:{},data:r}):l)+"</a>\r\n"+(null!=(i=n.if.call(a,null!=(i=null!=t?t.options:t)?i.hasAdminRestriction:i,{name:"if",hash:{},fn:e.program(1,r,0),inverse:e.noop,data:r}))?i:"")+'<div class="processing '+(null!=(i=n.if.call(a,null!=(i=null!=t?t.options:t)?i.hasError:i,{name:"if",hash:{},fn:e.program(3,r,0),inverse:e.noop,data:r}))?i:"")+'">\r\n'+(null!=(i=n.if.call(a,null!=(i=null!=t?t.options:t)?i.hasPendingItem:i,{name:"if",hash:{},fn:e.program(5,r,0),inverse:e.program(7,r,0),data:r}))?i:"")+(null!=(i=n.unless.call(a,null!=(i=null!=t?t.options:t)?i.hasPendingItem:i,{name:"unless",hash:{},fn:e.program(9,r,0),inverse:e.noop,data:r}))?i:"")+"</div>"},useData:!0})},1262: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,r){e.propertyIsEnumerable;var i,l,a=e.lambda,s=e.escapeExpression;return'<div class="series-region"></div>\r\n<a class="cursor-pointer h6 video-title text-dark" href="'+s(a(null!=(i=null!=t?t.options:t)?i.videoUrl:i,t))+'" target="_blank">'+s("function"==typeof(l=null!=(l=n.name||(null!=t?t.name:t))?l:e.hooks.helperMissing)?l.call(null!=t?t:e.nullContext||{},{name:"name",hash:{},data:r}):l)+'</a>\r\n<a class="svg-container d-inline-block align-bottom text-muted no-decoration" href="'+s(a(null!=(i=null!=t?t.options:t)?i.videoUrl:i,t))+'" target="_blank">'+(null!=(i=a(null!=(i=null!=t?t.options:t)?i.openExternalSvg:i,t))?i:"")+'</a>\r\n<div class="badges-region"></div>'},useData:!0})},1263:function(e,t,n){var o=n(10);e.exports=(o.default||o).template({1:function(e,t,n,o,r){e.propertyIsEnumerable;var i,l=e.lambda,a=e.escapeExpression;return' <span class="d-inline-block svg-container align-bottom tool-tip '+a(l(null!=(i=null!=(i=null!=t?t.options:t)?i.styles:i)?i.lock:i,t))+'" title="'+a(l(null!=(i=null!=t?t.options:t)?i.restrictionMessage:i,t))+'">'+(null!=(i=l(null!=(i=null!=t?t.options:t)?i.lockSvg:i,t))?i:"")+"</span>\r\n"},compiler:[8,">= 4.3.0"],main:function(e,t,n,o,r){e.propertyIsEnumerable;var i,l,a=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(a(null!=(i=null!=t?t.options:t)?i.videoUrl:i,t))+'" target="_blank">'+s("function"==typeof(l=null!=(l=n.name||(null!=t?t.name:t))?l:e.hooks.helperMissing)?l.call(c,{name:"name",hash:{},data:r}):l)+'</a>\r\n<a class="svg-container d-inline-block align-bottom text-muted no-decoration" href="'+s(a(null!=(i=null!=t?t.options:t)?i.videoUrl:i,t))+'" target="_blank">'+(null!=(i=a(null!=(i=null!=t?t.options:t)?i.openExternalSvg:i,t))?i:"")+"</a>\r\n"+(null!=(i=n.if.call(c,null!=(i=null!=t?t.options:t)?i.hasAdminRestriction:i,{name:"if",hash:{},fn:e.program(1,r,0),inverse:e.noop,data:r}))?i:"")+'<div class="badges-region"></div>'},useData:!0})},1264:function(e,t,n){e.exports={series:"P3914"}},1265:function(e,t,n){var o=n(10);e.exports=(o.default||o).template({1:function(e,t,n,o,r){e.propertyIsEnumerable;var i,l=e.lambda,a=e.escapeExpression;return' <span class="d-inline-block ml-1 tool-tip '+a(l(null!=(i=null!=(i=null!=t?t.options:t)?i.styles:i)?i.svgContainer:i,t))+'" title="'+a(l(null!=(i=null!=t?t.options:t)?i.restrictionMessage:i,t))+'">'+(null!=(i=l(null!=(i=null!=t?t.options:t)?i.lockSvg:i,t))?i:"")+"</span>\r\n"},3:function(e,t,n,o,r){var i;return' <span class="d-block pt-1">'+(null!=(i=e.lambda(t,t))?i:"")+"</span>\r\n"},compiler:[8,">= 4.3.0"],main:function(e,t,n,o,r){e.propertyIsEnumerable;var i,l=null!=t?t:e.nullContext||{};return'<div class="series-region"></div>\r\n<a class="cursor-pointer applink-show-video h6 text-dark">'+(null!=(i=e.lambda(null!=(i=null!=t?t.options:t)?i.name:i,t))?i:"")+"</a>\r\n"+(null!=(i=n.if.call(l,null!=(i=null!=t?t.options:t)?i.hasAdminRestriction:i,{name:"if",hash:{},fn:e.program(1,r,0),inverse:e.noop,data:r}))?i:"")+'<div class="sources-region"></div>\r\n<div class="badges-region"></div>\r\n'+(null!=(i=n.each.call(l,null!=(i=null!=t?t.options:t)?i.keyPhrases:i,{name:"each",hash:{},fn:e.program(3,r,0),inverse:e.noop,data:r}))?i:"")},useData:!0})},1266:function(e,t,n){var o=n(10);e.exports=(o.default||o).template({1:function(e,t,n,o,r){e.propertyIsEnumerable;return e.escapeExpression((n.lang||t&&t.lang||e.hooks.helperMissing).call(null!=t?t:e.nullContext||{},"hide",{name:"lang",hash:{},data:r}))},3:function(e,t,n,o,r){e.propertyIsEnumerable;return e.escapeExpression((n.lang||t&&t.lang||e.hooks.helperMissing).call(null!=t?t:e.nullContext||{},"show",{name:"lang",hash:{},data:r}))},compiler:[8,">= 4.3.0"],main:function(e,t,n,o,r){e.propertyIsEnumerable;var i,l=e.lambda,a=e.escapeExpression,s=null!=t?t:e.nullContext||{};return'<div class="video-actions-region row no-gutters video-item-actions '+a(l(null!=(i=null!=(i=null!=t?t.options:t)?i.styles:i)?i.actions:i,t))+'"></div>\r\n<div class="row no-gutters cursor-pointer video-item-show-preview '+a(l(null!=(i=null!=(i=null!=t?t.options:t)?i.styles:i)?i.showPreview:i,t))+'">\r\n <span class="svg-container">'+(null!=(i=l(null!=(i=null!=t?t.options:t)?i.previewSvg:i,t))?i:"")+"</span>\r\n "+(null!=(i=n.if.call(s,null!=(i=null!=t?t.options:t)?i.previewDisplayed:i,{name:"if",hash:{},fn:e.program(1,r,0),inverse:e.program(3,r,0),data:r}))?i:"")+" "+a((n.lang||t&&t.lang||e.hooks.helperMissing).call(s,"preview",{name:"lang",hash:{},data:r}))+"\r\n</div>"},useData:!0})},1267:function(e,t,n){var o=n(10);e.exports=(o.default||o).template({1:function(e,t,n,o,r){e.propertyIsEnumerable;return e.escapeExpression((n.lang||t&&t.lang||e.hooks.helperMissing).call(null!=t?t:e.nullContext||{},"hide",{name:"lang",hash:{},data:r}))},3:function(e,t,n,o,r){e.propertyIsEnumerable;return e.escapeExpression((n.lang||t&&t.lang||e.hooks.helperMissing).call(null!=t?t:e.nullContext||{},"show",{name:"lang",hash:{},data:r}))},compiler:[8,">= 4.3.0"],main:function(e,t,n,o,r){e.propertyIsEnumerable;var i,l=null!=t?t:e.nullContext||{},a=e.hooks.helperMissing,s=e.escapeExpression,c=e.lambda;return'<button class="approve d-flex btn btn-sm btn-outline-success" type="button">'+s((n.lang||t&&t.lang||a).call(l,"approve",{name:"lang",hash:{},data:r}))+'</button>\r\n<a class="applink-manage-video-access cursor-pointer hover-text-underline py-1">'+(null!=(i=(n.lang||t&&t.lang||a).call(l,"manageAccess",{name:"lang",hash:{},data:r}))?i:"")+'</a> \r\n<div class="row no-gutters cursor-pointer video-item-show-preview '+s(c(null!=(i=null!=(i=null!=t?t.options:t)?i.styles:i)?i.showPreview:i,t))+'"> \r\n <span class="svg-container">'+(null!=(i=c(null!=(i=null!=t?t.options:t)?i.previewSvg:i,t))?i:"")+"</span> \r\n "+(null!=(i=n.if.call(l,null!=(i=null!=t?t.options:t)?i.previewDisplayed:i,{name:"if",hash:{},fn:e.program(1,r,0),inverse:e.program(3,r,0),data:r}))?i:"")+" "+s((n.lang||t&&t.lang||a).call(l,"preview",{name:"lang",hash:{},data:r}))+"\r\n</div> "},useData:!0})},1268:function(e,t,n){var o=n(10);e.exports=(o.default||o).template({1:function(e,t,n,o,r){e.propertyIsEnumerable;return e.escapeExpression((n.lang||t&&t.lang||e.hooks.helperMissing).call(null!=t?t:e.nullContext||{},"hide",{name:"lang",hash:{},data:r}))},3:function(e,t,n,o,r){e.propertyIsEnumerable;return e.escapeExpression((n.lang||t&&t.lang||e.hooks.helperMissing).call(null!=t?t:e.nullContext||{},"show",{name:"lang",hash:{},data:r}))},compiler:[8,">= 4.3.0"],main:function(e,t,n,o,r){e.propertyIsEnumerable;var i,l=null!=t?t:e.nullContext||{},a=e.hooks.helperMissing,s=e.escapeExpression,c=e.lambda;return'<button class="applink-manage-video-access d-flex btn btn-sm btn-secondary" type="button">'+s((n.lang||t&&t.lang||a).call(l,"manageAccess",{name:"lang",hash:{},data:r}))+'</button>\r\n<div class="row no-gutters cursor-pointer video-item-show-preview '+s(c(null!=(i=null!=(i=null!=t?t.options:t)?i.styles:i)?i.showPreview:i,t))+'">\r\n <span class="svg-container">'+(null!=(i=c(null!=(i=null!=t?t.options:t)?i.previewSvg:i,t))?i:"")+"</span>\r\n "+(null!=(i=n.if.call(l,null!=(i=null!=t?t.options:t)?i.previewDisplayed:i,{name:"if",hash:{},fn:e.program(1,r,0),inverse:e.program(3,r,0),data:r}))?i:"")+" "+s((n.lang||t&&t.lang||a).call(l,"preview",{name:"lang",hash:{},data:r}))+"\r\n</div>"},useData:!0})},1270:function(e,t,n){var o=n(10);e.exports=(o.default||o).template({1:function(e,t,n,o,r){var i;e.propertyIsEnumerable;return' <a class="info-link show-more-tags">'+e.escapeExpression(e.lambda(null!=(i=null!=t?t.options:t)?i.extraTagsText:i,t))+"</a>\r\n"},3:function(e,t,n,o,r){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:r}))+"</a>\r\n"},compiler:[8,">= 4.3.0"],main:function(e,t,n,o,r){e.propertyIsEnumerable;var i,l=null!=t?t:e.nullContext||{};return'<div class="tags-region"></div>\r\n\r\n'+(null!=(i=n.if.call(l,null!=(i=null!=t?t.options:t)?i.expandable:i,{name:"if",hash:{},fn:e.program(1,r,0),inverse:e.noop,data:r}))?i:"")+(null!=(i=n.if.call(l,null!=(i=null!=t?t.options:t)?i.moreTags:i,{name:"if",hash:{},fn:e.program(3,r,0),inverse:e.noop,data:r}))?i:"")},useData:!0})},1271:function(e,t,n){var o=n(10);e.exports=(o.default||o).template({1:function(e,t,n,o,r){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:r}))+"</p>\r\n"},3:function(e,t,n,o,r){return' <div class="description-region"></div>\r\n'},5:function(e,t,n,o,r){e.propertyIsEnumerable;var i,l=e.lambda,a=e.escapeExpression;return' <div class="col-6 pb-1 '+a(l(null!=(i=null!=(i=null!=t?t.options:t)?i.styles:i)?i.columnNames:i,t))+'">'+a((n.lang||t&&t.lang||e.hooks.helperMissing).call(null!=t?t:e.nullContext||{},"rating",{name:"lang",hash:{},data:r}))+'</div>\r\n <div class="col-6 mb-0 pb-1">\r\n <span class="badge p-1 text-white tool-tip '+a(l(null!=(i=null!=t?t.options:t)?i.ratingClass:i,t))+'" title="'+a(l(null!=(i=null!=t?t.rating:t)?i.name:i,t))+'">'+a(l(null!=(i=null!=t?t.rating:t)?i.code:i,t))+"</span>\r\n </div>\r\n"},7:function(e,t,n,o,r){e.propertyIsEnumerable;var i,l,a=e.escapeExpression,s=null!=t?t:e.nullContext||{},c=e.hooks.helperMissing;return' <div class="col-6 py-1 '+a(e.lambda(null!=(i=null!=(i=null!=t?t.options:t)?i.styles:i)?i.columnNames:i,t))+'">'+a((n.lang||t&&t.lang||c).call(s,"productionYear",{name:"lang",hash:{},data:r}))+'</div>\r\n <p class="col-6 mb-0 py-1">'+a("function"==typeof(l=null!=(l=n.productionYear||(null!=t?t.productionYear:t))?l:c)?l.call(s,{name:"productionYear",hash:{},data:r}):l)+"</p>\r\n"},9:function(e,t,n,o,r){e.propertyIsEnumerable;var i,l=e.lambda,a=e.escapeExpression,s=null!=t?t:e.nullContext||{};return' <div class="col-6 py-1 '+a(l(null!=(i=null!=(i=null!=t?t.options:t)?i.styles:i)?i.columnNames:i,t))+'">'+a((n.lang||t&&t.lang||e.hooks.helperMissing).call(s,"chapters",{name:"lang",hash:{},data:r}))+'</div>\r\n <a\r\n class="col-6 info-link mb-0 py-1 '+(null!=(i=n.unless.call(s,null!=(i=null!=t?t.options:t)?i.externalLink:i,{name:"unless",hash:{},fn:e.program(10,r,0),inverse:e.noop,data:r}))?i:"")+'"\r\n'+(null!=(i=n.if.call(s,null!=(i=null!=t?t.options:t)?i.externalLink:i,{name:"if",hash:{},fn:e.program(12,r,0),inverse:e.noop,data:r}))?i:"")+" >\r\n "+a(l(null!=(i=null!=t?t.options:t)?i.chapters:i,t))+"\r\n "+(null!=(i=n.if.call(s,null!=(i=null!=t?t.options:t)?i.externalLink:i,{name:"if",hash:{},fn:e.program(14,r,0),inverse:e.noop,data:r}))?i:"")+"\r\n </a>\r\n"},10:function(e,t,n,o,r){return"applink-video-details"},12:function(e,t,n,o,r){var i;e.propertyIsEnumerable;return' href="'+e.escapeExpression(e.lambda(null!=(i=null!=t?t.options:t)?i.externalLink:i,t))+'"\r\n target="_blank"\r\n'},14:function(e,t,n,o,r){e.propertyIsEnumerable;var i,l=e.lambda;return'<div class="d-inline-block '+e.escapeExpression(l(null!=(i=null!=(i=null!=t?t.options:t)?i.styles:i)?i.smallSvgContainer:i,t))+'">'+(null!=(i=l(null!=(i=null!=t?t.options:t)?i.openExternalSvg:i,t))?i:"")+"</div>"},16:function(e,t,n,o,r){e.propertyIsEnumerable;var i,l=e.lambda,a=e.escapeExpression;return' <div class="col-6 py-1 '+a(l(null!=(i=null!=(i=null!=t?t.options:t)?i.styles:i)?i.columnNames:i,t))+'">'+a((n.lang||t&&t.lang||e.hooks.helperMissing).call(null!=t?t:e.nullContext||{},"interactives",{name:"lang",hash:{},data:r}))+'</div>\r\n <p class="col-6 mb-0 py-1">'+a(l(null!=(i=null!=t?t.options:t)?i.interactives:i,t))+"</p>\r\n"},18:function(e,t,n,o,r){e.propertyIsEnumerable;var i,l=e.lambda,a=e.escapeExpression;return' <div class="col-6 py-1 '+a(l(null!=(i=null!=(i=null!=t?t.options:t)?i.styles:i)?i.columnNames:i,t))+'">'+a((n.lang||t&&t.lang||e.hooks.helperMissing).call(null!=t?t:e.nullContext||{},"subtitles",{name:"lang",hash:{},data:r}))+'</div>\r\n <p class="col-6 mb-0 py-1">'+a(l(null!=(i=null!=t?t.options:t)?i.subtitles:i,t))+"</p>\r\n"},20:function(e,t,n,o,r){e.propertyIsEnumerable;var i,l=e.lambda,a=e.escapeExpression,s=null!=t?t:e.nullContext||{};return' <div class="col-6 py-1 '+a(l(null!=(i=null!=(i=null!=t?t.options:t)?i.styles:i)?i.columnNames:i,t))+'">'+a((n.lang||t&&t.lang||e.hooks.helperMissing).call(s,"resources",{name:"lang",hash:{},data:r}))+'</div>\r\n <a\r\n class="col-6 info-link mb-0 py-1 '+(null!=(i=n.unless.call(s,null!=(i=null!=t?t.options:t)?i.externalLink:i,{name:"unless",hash:{},fn:e.program(10,r,0),inverse:e.noop,data:r}))?i:"")+'"\r\n'+(null!=(i=n.if.call(s,null!=(i=null!=t?t.options:t)?i.externalLink:i,{name:"if",hash:{},fn:e.program(12,r,0),inverse:e.noop,data:r}))?i:"")+" >\r\n "+a(l(null!=(i=null!=t?t.options:t)?i.resources:i,t))+"\r\n "+(null!=(i=n.if.call(s,null!=(i=null!=t?t.options:t)?i.externalLink:i,{name:"if",hash:{},fn:e.program(14,r,0),inverse:e.noop,data:r}))?i:"")+"\r\n </a>\r\n"},22:function(e,t,n,o,r){e.propertyIsEnumerable;var i,l=e.lambda,a=e.escapeExpression,s=null!=t?t:e.nullContext||{};return' <div class="col-6 py-1 '+a(l(null!=(i=null!=(i=null!=t?t.options:t)?i.styles:i)?i.columnNames:i,t))+'">'+a((n.lang||t&&t.lang||e.hooks.helperMissing).call(s,"links",{name:"lang",hash:{},data:r}))+'</div>\r\n <a\r\n class="col-6 info-link mb-0 py-1 '+(null!=(i=n.unless.call(s,null!=(i=null!=t?t.options:t)?i.externalLink:i,{name:"unless",hash:{},fn:e.program(10,r,0),inverse:e.noop,data:r}))?i:"")+'"\r\n'+(null!=(i=n.if.call(s,null!=(i=null!=t?t.options:t)?i.externalLink:i,{name:"if",hash:{},fn:e.program(12,r,0),inverse:e.noop,data:r}))?i:"")+" >\r\n "+a(l(null!=(i=null!=t?t.options:t)?i.links:i,t))+"\r\n "+(null!=(i=n.if.call(s,null!=(i=null!=t?t.options:t)?i.externalLink:i,{name:"if",hash:{},fn:e.program(14,r,0),inverse:e.noop,data:r}))?i:"")+"\r\n </a>\r\n"},24:function(e,t,n,o,r){e.propertyIsEnumerable;var i,l=e.escapeExpression;return' <div class="py-1 '+l(e.lambda(null!=(i=null!=(i=null!=t?t.options:t)?i.styles:i)?i.columnNames:i,t))+'">'+l((n.lang||t&&t.lang||e.hooks.helperMissing).call(null!=t?t:e.nullContext||{},"tags",{name:"lang",hash:{},data:r}))+'</div>\r\n <div class="tags-region"></div>\r\n <div class="col-12"> </div>\r\n'},26:function(e,t,n,o,r){e.propertyIsEnumerable;var i,l=e.lambda,a=e.escapeExpression;return' <a href="'+a(l(null!=(i=null!=t?t.options:t)?i.externalLink:i,t))+'" target="_blank" class="info-link d-inline-block pt-3 '+a(l(null!=(i=null!=(i=null!=t?t.options:t)?i.styles:i)?i.columnNames:i,t))+'">\r\n '+a((n.lang||t&&t.lang||e.hooks.helperMissing).call(null!=t?t:e.nullContext||{},"goToVideo",{name:"lang",hash:{},data:r}))+'\r\n <div class="d-inline-block svg-container">'+(null!=(i=l(null!=(i=null!=t?t.options:t)?i.openExternalSvg:i,t))?i:"")+"</div>\r\n </a>\r\n"},28:function(e,t,n,o,r){e.propertyIsEnumerable;var i,l=e.escapeExpression;return' <a class="info-link applink-video-details d-inline-block pt-3 '+l(e.lambda(null!=(i=null!=(i=null!=t?t.options:t)?i.styles:i)?i.columnNames:i,t))+'">'+l((n.lang||t&&t.lang||e.hooks.helperMissing).call(null!=t?t:e.nullContext||{},"viewFullDetails",{name:"lang",hash:{},data:r}))+"</a>\r\n"},compiler:[8,">= 4.3.0"],main:function(e,t,n,o,r){e.propertyIsEnumerable;var i,l=e.lambda,a=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 '+a(l(null!=(i=null!=(i=null!=t?t.options:t)?i.styles:i)?i.columnNames:i,t))+'">'+a((n.lang||t&&t.lang||c).call(s,"description",{name:"lang",hash:{},data:r}))+"</p>\r\n \r\n"+(null!=(i=n.unless.call(s,null!=(i=null!=t?t.options:t)?i.description:i,{name:"unless",hash:{},fn:e.program(1,r,0),inverse:e.program(3,r,0),data:r}))?i:"")+' \r\n <div class="video-preview-region col-7 my-3 pl-0"></div>\r\n </div>\r\n <div class="col-4 my-3 pr-0 pl-3">\r\n <p class="text-uppercase text-muted '+a(l(null!=(i=null!=(i=null!=t?t.options:t)?i.styles:i)?i.columnNames:i,t))+'">'+a((n.lang||t&&t.lang||c).call(s,"details",{name:"lang",hash:{},data:r}))+'</p>\r\n\r\n <div class="row">\r\n'+(null!=(i=n.if.call(s,null!=(i=null!=t?t.rating:t)?i.code:i,{name:"if",hash:{},fn:e.program(5,r,0),inverse:e.noop,data:r}))?i:"")+"\r\n"+(null!=(i=n.if.call(s,null!=t?t.productionYear:t,{name:"if",hash:{},fn:e.program(7,r,0),inverse:e.noop,data:r}))?i:"")+'\r\n <div class="col-6 py-1 '+a(l(null!=(i=null!=(i=null!=t?t.options:t)?i.styles:i)?i.columnNames:i,t))+'">'+a((n.lang||t&&t.lang||c).call(s,"duration",{name:"lang",hash:{},data:r}))+'</div>\r\n <p class="col-6 mb-0 py-1">'+a(l(null!=(i=null!=t?t.options:t)?i.duration:i,t))+"</p>\r\n\r\n"+(null!=(i=n.if.call(s,null!=(i=null!=t?t.options:t)?i.chapters:i,{name:"if",hash:{},fn:e.program(9,r,0),inverse:e.noop,data:r}))?i:"")+"\r\n"+(null!=(i=n.if.call(s,null!=(i=null!=t?t.options:t)?i.interactives:i,{name:"if",hash:{},fn:e.program(16,r,0),inverse:e.noop,data:r}))?i:"")+"\r\n"+(null!=(i=n.if.call(s,null!=(i=null!=t?t.options:t)?i.subtitles:i,{name:"if",hash:{},fn:e.program(18,r,0),inverse:e.noop,data:r}))?i:"")+"\r\n"+(null!=(i=n.if.call(s,null!=(i=null!=t?t.options:t)?i.resources:i,{name:"if",hash:{},fn:e.program(20,r,0),inverse:e.noop,data:r}))?i:"")+"\r\n"+(null!=(i=n.if.call(s,null!=(i=null!=t?t.options:t)?i.links:i,{name:"if",hash:{},fn:e.program(22,r,0),inverse:e.noop,data:r}))?i:"")+" </div>\r\n\r\n"+(null!=(i=n.if.call(s,null!=(i=null!=t?t.options:t)?i.showTags:i,{name:"if",hash:{},fn:e.program(24,r,0),inverse:e.noop,data:r}))?i:"")+"\r\n"+(null!=(i=n.if.call(s,null!=(i=null!=t?t.options:t)?i.externalLink:i,{name:"if",hash:{},fn:e.program(26,r,0),inverse:e.program(28,r,0),data:r}))?i:"")+" </div>\r\n</div>"},useData:!0})},1272:function(e,t,n){e.exports={columnNames:"QvhY0",smallSvgContainer:"_2qax8"}},1273:function(e,t,n){var o=n(10);e.exports=(o.default||o).template({1:function(e,t,n,o,r){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:r}))+"</button>\r\n"},compiler:[8,">= 4.3.0"],main:function(e,t,n,o,r){e.propertyIsEnumerable;var i,l=null!=t?t:e.nullContext||{};return"<div>\r\n"+(null!=(i=n.if.call(l,null!=(i=null!=t?t.options:t)?i.hasError:i,{name:"if",hash:{},fn:e.program(1,r,0),inverse:e.noop,data:r}))?i:"")+' <button class="btn btn-light cancel">'+e.escapeExpression((n.lang||t&&t.lang||e.hooks.helperMissing).call(l,"cancel",{name:"lang",hash:{},data:r}))+"</button>\r\n</div>\r\n"},useData:!0})},1274:function(e,t,n){var o=n(10);e.exports=(o.default||o).template({1:function(e,t,n,o,r){return" cursor-pointer"},3:function(e,t,n,o,r){var i;e.propertyIsEnumerable;return' <div class="bulk-checkbox-region '+(null!=(i=n.if.call(null!=t?t:e.nullContext||{},null!=(i=null!=t?t.options:t)?i.bulkPlaceholder:i,{name:"if",hash:{},fn:e.program(4,r,0),inverse:e.noop,data:r}))?i:"")+'"></div>\r\n'},4:function(e,t,n,o,r){var i;e.propertyIsEnumerable;return e.escapeExpression(e.lambda(null!=(i=null!=(i=null!=t?t.options:t)?i.styles:i)?i.bulkPlaceholder:i,t))},compiler:[8,">= 4.3.0"],main:function(e,t,n,o,r){e.propertyIsEnumerable;var i,l=e.lambda,a=e.escapeExpression,s=null!=t?t:e.nullContext||{};return'<div class="d-flex justify-content-between align-items-stretch p-3 drag-item '+a(l(null!=(i=null!=(i=null!=t?t.options:t)?i.styles:i)?i.videoItem:i,t))+(null!=(i=n.if.call(s,null!=(i=null!=t?t.options:t)?i.isClickable:i,{name:"if",hash:{},fn:e.program(1,r,0),inverse:e.noop,data:r}))?i:"")+'">\r\n'+(null!=(i=n.if.call(s,null!=(i=null!=t?t.options:t)?i.allowBulk:i,{name:"if",hash:{},fn:e.program(3,r,0),inverse:e.noop,data:r}))?i:"")+' <div class="thumbnail-region d-inline-block '+a(l(null!=(i=null!=(i=null!=t?t.options:t)?i.styles:i)?i.thumbnailContainer:i,t))+'"></div>\r\n <div class="metadata-region d-inline-block px-3 '+a(l(null!=(i=null!=(i=null!=t?t.options:t)?i.styles:i)?i.metaContainer:i,t))+'"></div>\r\n <div class="video-actions-region d-inline-block '+a(l(null!=(i=null!=(i=null!=t?t.options:t)?i.styles:i)?i.actionsContainer:i,t))+'"></div>\r\n</div>\r\n<div class="video-info-region '+a(l(null!=(i=null!=(i=null!=t?t.options:t)?i.styles:i)?i.previewContainer:i,t))+'"></div>'},useData:!0})},1275: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,r){return'<div class="videos-region"></div>'},useData:!0})},1283:function(e,t,n){"use strict";var o=n(2),r=n(4),i=n(42),l=n(294),a=n(6),s=n(30),c=n(14),u=n(0),p=n(12),f=n(1246),h=n(1223),y=n(1274),d=n.n(y),g=n(1243),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 Date.prototype.toString.call(Reflect.construct(Date,[],(function(){}))),!0}catch(e){return!1}}();return function(){var n,o=S(e);if(t){var r=S(this).constructor;n=Reflect.construct(o,arguments,r)}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 S(e){return(S=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&&w(e,t)}(g,e);var t,n,l,y=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),y.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:"getTypeClassName",value:function(){switch(this.options.componentType){case h.b.ProcessingVideo:return m.a.processingVideo;default:return""}}},{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];a.Radio.channel(this.options.collectionViewChannel).trigger("close:preview",this.cid),this.togglePreview(!this.viewModel.get("previewOpen")),this.logTogglePreviewAction(e)}},{key:"onNavigateAway",value:function(){this.viewModel.set({previewOpen:!1})}},{key:"togglePreview",value:function(e){var 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(a.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=i.a.mergeOptions(this.options.analyticsOptions,{actionType:r.UserAction.Click,descriptor:r.ClickDescriptor.TogglePreview,workflowPhase:r.WorkflowPhase.Complete}),n={buttonClicked:e,show:this.viewModel.get("previewOpen")};i.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)}},{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 d.a}},{key:"channelName",get:function(){return p.k.generateUniqueChannelName(this)}},{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)}}}])&&k(t.prototype,n),l&&k(t,l),g}(o.a.Component),R=n(291),x=n(97),P=n(9),_=n(292),T=n(1275),I=n.n(T);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 D(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,n){return t&&M(e.prototype,t),n&&M(e,n),e}function N(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)}function L(e,t){return(L=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 Date.prototype.toString.call(Reflect.construct(Date,[],(function(){}))),!0}catch(e){return!1}}();return function(){var n,o=B(e);if(t){var r=B(this).constructor;n=Reflect.construct(o,arguments,r)}else n=o.apply(this,arguments);return A(this,n)}}function A(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 B(e){return(B=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)})(e)}n.d(t,"a",(function(){return H}));var U=function(e){N(n,e);var t=F(n);function n(e){return D(this,n),t.call(this,e)}return V(n,[{key:"name",get:function(){return"VideoItemListComponent"}},{key:"childView",get:function(){return E}},{key:"childViewOptions",get:function(){var e=this;return function(t){return{componentType:t.get("status")===x.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){N(n,e);var t=F(n);function n(e){return D(this,n),t.call(this,e)}return V(n,[{key:"regions",value:function(){return{videos:".videos-region"}}},{key:"onRender",value:function(){var e=new U({collection:this.collection,videosWithMetadata:this.options.videosWithMetadata,videoItemComponentType:this.options.videoItemComponentType,allowBulk:this.options.allowBulk,collectionIdentifier:this.collectionIdentifier,application:this.options.application,pendingItems:this.options.pendingItems,config:this.options.config,sourceMetadataOptions:this.options.sourceMetadataOptions,collectionViewChannel:this.options.collectionViewChannel,customerHasLocalCache:this.options.customerHasLocalCache,customerHasExchange:this.options.customerHasExchange,customerHasCustomLibrary:this.options.customerHasCustomLibrary,analyticsOptions:i.a.mergeOptions(this.options.analyticsOptions,{location:r.LocationContext.VideoListItem,entity:r.EntityType.Video}),videoCollectionSource:this.options.videoCollectionSource,currentUser:this.options.currentUser});this.showChildView("videos",e)}},{key:"name",get:function(){return"VideoListView"}},{key:"className",get:function(){return"bg-white"}},{key:"props",get:function(){return["collectionIdentifier"]}},{key:"template",get:function(){return I.a}},{key:"defaults",get:function(){return{videoItemComponentType:h.b.Base,allowBulk:!1,emptyState:P.c.Default,videoCollectionSource:_.d.Folder}}},{key:"behaviors",get:function(){return[{behaviorClass:R.c,selector:".lazy-img",minBrowserSupportVersion:u.p},{behaviorClass:l.a,region:"videos",type:this.options.emptyStateType,componentOptions:this.options.emptyStateOptions,emptyStateComponents:u.h}]}}]),n}(o.a.Component)},1285:function(e,t,n){e.exports={label:"_3iMZr",filterButton:"_1xOts",dropdownMenu:"_1Yzts"}},1290:function(e,t,n){"use strict";var o={TagFilter:"tag:filter"};n.d(t,"a",(function(){return o}))},1346: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,r){var i;e.propertyIsEnumerable;return'<h6 class="mb-0">'+e.escapeExpression("function"==typeof(i=null!=(i=n.title||(null!=t?t.title:t))?i:e.hooks.helperMissing)?i.call(null!=t?t:e.nullContext||{},{name:"title",hash:{},data:r}):i)+'</h6>\r\n<div class="options-region"></div>'},useData:!0})},1347:function(e,t,n){var o=n(10);e.exports=(o.default||o).template({1:function(e,t,n,o,r){e.propertyIsEnumerable;return' <a class="clear-filters float-left text-muted hover-text-underline cursor-pointer">'+e.escapeExpression((n.lang||t&&t.lang||e.hooks.helperMissing).call(null!=t?t:e.nullContext||{},"reset",{name:"lang",hash:{},data:r}))+"</a>\r\n"},3:function(e,t,n,o,r){e.propertyIsEnumerable;return' <a class="apply-filters d-block text-right info-link">'+e.escapeExpression((n.lang||t&&t.lang||e.hooks.helperMissing).call(null!=t?t:e.nullContext||{},"apply",{name:"lang",hash:{},data:r}))+"</a>\r\n"},compiler:[8,">= 4.3.0"],main:function(e,t,n,o,r){e.propertyIsEnumerable;var i,l=null!=t?t:e.nullContext||{};return'<div class="filter-list-region"></div>\r\n<div>\r\n'+(null!=(i=n.if.call(l,null!=(i=null!=t?t.options:t)?i.showClearFilters:i,{name:"if",hash:{},fn:e.program(1,r,0),inverse:e.noop,data:r}))?i:"")+(null!=(i=n.if.call(l,null!=(i=null!=t?t.options:t)?i.showApplyFilters:i,{name:"if",hash:{},fn:e.program(3,r,0),inverse:e.noop,data:r}))?i:"")+"</div>"},useData:!0})},1348: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,r){e.propertyIsEnumerable;var i,l=e.lambda,a=e.escapeExpression;return'<button class="'+a(l(null!=(i=null!=t?t.options:t)?i.buttonClass:i,t))+' dropdown-btn" type="button" data-toggle="dropdown" aria-haspopup="true" aria-expanded="false">\r\n '+a(l(null!=(i=null!=t?t.options:t)?i.label:i,t))+'\r\n</button>\r\n<div class="dropdown-menu p-2 filters-region"></div>'},useData:!0})},1349:function(e,t,n){e.exports={moreFiltersButton:"_3sym3"}},1350:function(e,t,n){var o=n(10);e.exports=(o.default||o).template({1:function(e,t,n,o,r){e.propertyIsEnumerable;return'<div class="d-inline-block text-right">\r\n <a class="clear-filters cursor-pointer hover-text-underline">'+e.escapeExpression((n.lang||t&&t.lang||e.hooks.helperMissing).call(null!=t?t:e.nullContext||{},"reset",{name:"lang",hash:{},data:r}))+"</a>\r\n</div>\r\n"},compiler:[8,">= 4.3.0"],main:function(e,t,n,o,r){e.propertyIsEnumerable;var i,l=e.escapeExpression,a=null!=t?t:e.nullContext||{};return'<div class="d-inline-block border-right py-1 pr-3 '+l(e.lambda(null!=(i=null!=t?t.options:t)?i.labelClass:i,t))+'"><strong>'+l((n.lang||t&&t.lang||e.hooks.helperMissing).call(a,"heading",{name:"lang",hash:{},data:r}))+'</strong></div>\r\n<div class="filter-list-region d-inline-block pl-2"></div>\r\n<div class="more-filters-region d-inline-block mr-2"></div>\r\n'+(null!=(i=n.if.call(a,null!=(i=null!=t?t.options:t)?i.hasFiltersSelected:i,{name:"if",hash:{},fn:e.program(1,r,0),inverse:e.noop,data:r}))?i:"")},useData:!0})},1351: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,r){e.propertyIsEnumerable;var i,l=e.lambda,a=e.escapeExpression;return'<button class="'+a(l(null!=(i=null!=t?t.options:t)?i.buttonClass:i,t))+' dropdown-btn cursor-pointer" type="button" data-toggle="dropdown" aria-haspopup="true" aria-expanded="false">\r\n '+a(l(null!=(i=null!=t?t.options:t)?i.label:i,t))+'\r\n</button>\r\n<div class="dropdown-menu '+a(l(null!=(i=null!=(i=null!=t?t.options:t)?i.styles:i)?i.dropdownMenu:i,t))+' p-2 filter-region"></div>'},useData:!0})},1352: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,r){return'<div class="option-list-region"></div>'},useData:!0})},1353:function(e,t,n){var o=n(10);e.exports=(o.default||o).template({1:function(e,t,n,o,r){e.propertyIsEnumerable;var i,l=e.lambda,a=e.escapeExpression;return'<div class="default-option py-1">\r\n <div class="custom-control custom-'+a(l(null!=(i=null!=t?t.options:t)?i.inputType:i,t))+'">\r\n <input type='+a(l(null!=(i=null!=t?t.options:t)?i.inputType:i,t))+' autocomplete="off" class="custom-control-input"'+(null!=(i=n.if.call(null!=t?t:e.nullContext||{},null!=(i=null!=t?t.options:t)?i.defaultOptionSelected:i,{name:"if",hash:{},fn:e.program(2,r,0),inverse:e.noop,data:r}))?i:"")+'>\r\n <label class="custom-control-label align-middle cursor-pointer">'+a(l(null!=(i=null!=t?t.options:t)?i.defaultOptionLabel:i,t))+"</label>\r\n </div>\r\n</div>\r\n"},2:function(e,t,n,o,r){return" checked"},compiler:[8,">= 4.3.0"],main:function(e,t,n,o,r){var i;e.propertyIsEnumerable;return(null!=(i=n.if.call(null!=t?t:e.nullContext||{},null!=(i=null!=t?t.options:t)?i.defaultOptionLabel:i,{name:"if",hash:{},fn:e.program(1,r,0),inverse:e.noop,data:r}))?i:"")+'<div class="options-region"></div>'},useData:!0})},1354:function(e,t,n){var o=n(10);e.exports=(o.default||o).template({1:function(e,t,n,o,r){return" checked"},compiler:[8,">= 4.3.0"],main:function(e,t,n,o,r){e.propertyIsEnumerable;var i,l,a=e.lambda,s=e.escapeExpression,c=null!=t?t:e.nullContext||{};return'<div class="custom-control custom-'+s(a(null!=(i=null!=t?t.options:t)?i.inputType:i,t))+'">\r\n <input type='+s(a(null!=(i=null!=t?t.options:t)?i.inputType:i,t))+' autocomplete="off" class="custom-control-input"'+(null!=(i=n.if.call(c,null!=t?t.active:t,{name:"if",hash:{},fn:e.program(1,r,0),inverse:e.noop,data:r}))?i:"")+'>\r\n <label class="custom-control-label align-middle cursor-pointer">'+s("function"==typeof(l=null!=(l=n.name||(null!=t?t.name:t))?l:e.hooks.helperMissing)?l.call(c,{name:"name",hash:{},data:r}):l)+"</label>\r\n</div>"},useData:!0})},1355:function(e,t,n){var o=n(10);e.exports=(o.default||o).template({1:function(e,t,n,o,r){return" on"},compiler:[8,">= 4.3.0"],main:function(e,t,n,o,r){e.propertyIsEnumerable;var i,l,a=null!=t?t:e.nullContext||{};return'<div class="custom-toggle toggle-option float-right'+(null!=(i=n.if.call(a,null!=(i=null!=t?t.options:t)?i.isSelected:i,{name:"if",hash:{},fn:e.program(1,r,0),inverse:e.noop,data:r}))?i:"")+'"><span class="handle"></span></div>\r\n<p>'+e.escapeExpression("function"==typeof(l=null!=(l=n.description||(null!=t?t.description:t))?l:e.hooks.helperMissing)?l.call(a,{name:"description",hash:{},data:r}):l)+"</p>"},useData:!0})},1356: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,r){var i;e.propertyIsEnumerable;return e.escapeExpression("function"==typeof(i=null!=(i=n.name||(null!=t?t.name:t))?i:e.hooks.helperMissing)?i.call(null!=t?t:e.nullContext||{},{name:"name",hash:{},data:r}):i)},useData:!0})},1357:function(e,t,n){e.exports={options:"_6o30E",option:"_3yReT"}},1358: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,r){e.propertyIsEnumerable;var i,l,a=e.escapeExpression,s=null!=t?t:e.nullContext||{},c=e.hooks.helperMissing;return'<button type="button" class="d-block option-btn w-100 '+a(e.lambda(null!=(i=null!=t?t.options:t)?i.buttonClass:i,t))+'">\r\n '+a("function"==typeof(l=null!=(l=n.name||(null!=t?t.name:t))?l:c)?l.call(s,{name:"name",hash:{},data:r}):l)+'\r\n</button>\r\n<div class="text-center">'+a("function"==typeof(l=null!=(l=n.description||(null!=t?t.description:t))?l:c)?l.call(s,{name:"description",hash:{},data:r}):l)+"</div>"},useData:!0})},1359:function(e,t,n){e.exports={optionItem:"_3jzt0",customOptionItem:"_78r7L",selected:"aFhSG"}},1360:function(e,t,n){e.exports={container:"_1SMXf"}},1361:function(e,t,n){var o=n(10);e.exports=(o.default||o).template({1:function(e,t,n,o,r){e.propertyIsEnumerable;return'<p class="mb-0">'+e.escapeExpression((n.lang||t&&t.lang||e.hooks.helperMissing).call(null!=t?t:e.nullContext||{},"emptyState",{name:"lang",hash:{},data:r}))+"</p>\r\n"},3:function(e,t,n,o,r){return'<div class="dropdown-divider"></div>\r\n'},compiler:[8,">= 4.3.0"],main:function(e,t,n,o,r){e.propertyIsEnumerable;var i,l=null!=t?t:e.nullContext||{};return(null!=(i=n.if.call(l,null!=(i=null!=t?t.options:t)?i.showEmptyState:i,{name:"if",hash:{},fn:e.program(1,r,0),inverse:e.noop,data:r}))?i:"")+'\r\n<div class="selected-tags-region"></div>\r\n'+(null!=(i=n.if.call(l,null!=(i=null!=t?t.options:t)?i.useDivider:i,{name:"if",hash:{},fn:e.program(3,r,0),inverse:e.noop,data:r}))?i:"")+'<div class="relevant-tags-region"></div>'},useData:!0})},1362: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,r){return'<div class="tags-region"></div>'},useData:!0})},1363:function(e,t,n){"use strict";var o=n(1223);n.d(t,"a",(function(){return o.b}));n(1245),n(1246)},1375:function(e,t,n){"use strict";var o=n(6),r=n(2),i=n(0),l=n(9),a=n(4),s=n(42),c=n(30),u=n(3),p=n(21),f=n(124),h=n(1290),y=n(1346),d=n.n(y);function g(e){return(g="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}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 Date.prototype.toString.call(Reflect.construct(Date,[],(function(){}))),!0}catch(e){return!1}}();return function(){var n,o=w(e);if(t){var r=w(this).constructor;n=Reflect.construct(o,arguments,r)}else n=o.apply(this,arguments);return k(this,n)}}function k(e,t){return!t||"object"!==g(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)}(i,e);var t,n,o,r=b(i);function i(e){return function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,i),r.call(this,e)}return t=i,(n=[{key:"regions",value:function(){return{options:{el:".options-region",replaceElement:!0}}}},{key:"renderOptions",value:function(){this.showChildView("options",new Te({collection:this.model.options,model:this.model,channelName:this.options.channelName}))}},{key:"onRender",value:function(){this.renderOptions()}},{key:"name",get:function(){return"FilterItemComponent"}},{key:"template",get:function(){return d.a}},{key:"className",get:function(){return"py-1"}}])&&m(t.prototype,n),o&&m(t,o),i}(r.a.Component),C=n(1347),S=n.n(C);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 R(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 P(e,t,n){return t&&x(e.prototype,t),n&&x(e,n),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&&T(e,t)}function T(e,t){return(T=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e})(e,t)}function I(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 Date.prototype.toString.call(Reflect.construct(Date,[],(function(){}))),!0}catch(e){return!1}}();return function(){var n,o=D(e);if(t){var r=D(this).constructor;n=Reflect.construct(o,arguments,r)}else n=o.apply(this,arguments);return j(this,n)}}function j(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 D(e){return(D=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)})(e)}var M=function(e){_(n,e);var t=I(n);function n(){return R(this,n),t.apply(this,arguments)}return P(n,[{key:"initialize",value:function(){this.bindListeners()}},{key:"regions",value:function(){return{filterList:{el:".filter-list-region",replaceElement:!0}}}},{key:"events",value:function(){return{click:"onClick","click .apply-filters":"onClickApplyFilters","click .clear-filters":"onClickClearFilters"}}},{key:"bindListeners",value:function(){this.listenTo(this.channelName,i.i.Filters.OPTION_SELECTED,this.render)}},{key:"onClick",value:function(e){e.stopPropagation()}},{key:"onClickApplyFilters",value:function(e){e.stopPropagation(),this.applyFilters(),this.render()}},{key:"onClickClearFilters",value:function(e){e.stopPropagation(),o.Radio.channel(this.options.channelName).trigger("reset:filters"),f.b.clearFilters(this.collection),this.isTagFilterType()&&o.Radio.channel(h.a.TagFilter).trigger("change:relevant:tags"),this.render()}},{key:"applyFilters",value:function(){o.Radio.channel(this.options.channelName).trigger(i.i.Filters.APPLY_FILTER)}},{key:"hasFiltersSelected",value:function(){return this.collection.some((function(e){return f.b.isSelected(e)}))}},{key:"isTagFilterType",value:function(){return!!this.collection.findWhere({type:p.a.Tags})}},{key:"viewOptions",value:function(){return{showApplyFilters:!this.isTagFilterType(),showClearFilters:this.hasFiltersSelected()}}},{key:"onRender",value:function(){this.showChildView("filterList",new V({collection:this.collection,channelName:this.channelName}))}},{key:"name",get:function(){return"FilterListComponent"}},{key:"template",get:function(){return S.a}},{key:"lang",get:function(){return"search.filterList"}},{key:"className",get:function(){return"px-1"}},{key:"channelName",get:function(){return"".concat(this.name).concat(this.cid)}}]),n}(r.a.Component),V=function(e){_(n,e);var t=I(n);function n(e){return R(this,n),t.call(this,e)}return P(n,[{key:"name",get:function(){return"FilterComponentCollection"}},{key:"tagName",get:function(){return"ul"}},{key:"className",get:function(){return"m-0 p-0"}},{key:"childView",get:function(){return O}},{key:"childViewOptions",get:function(){return{channelName:this.options.channelName}}}]),n}(r.a.ComponentCollection),N=n(100),L=n(1285),F=n.n(L),A=n(1348),B=n.n(A),U=n(1349),H=n.n(U);function z(e){return(z="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}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 q(e,t){return(q=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 Date.prototype.toString.call(Reflect.construct(Date,[],(function(){}))),!0}catch(e){return!1}}();return function(){var n,o=Q(e);if(t){var r=Q(this).constructor;n=Reflect.construct(o,arguments,r)}else n=o.apply(this,arguments);return G(this,n)}}function G(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 Q(e){return(Q=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)})(e)}var J=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&&q(e,t)}(p,e);var t,n,r,l=Y(p);function p(e){return function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,p),l.call(this,e)}return t=p,(n=[{key:"initialize",value:function(){this.getViewModel(),this.setInitialFilters(),this.bindListeners()}},{key:"regions",value:function(){return{filters:{el:".filters-region",replaceElement:!1}}}},{key:"events",value:function(){return{"hide.bs.dropdown":"onHideDropdown","show.bs.dropdown":"onShowDropdown"}}},{key:"getViewModel",value:function(){this.viewModel=c.a.get(this.viewModelName)}},{key:"bindListeners",value:function(){this.listenTo(this.channelName,i.i.Filters.APPLY_FILTER,this.onClickApplyFilters),this.listenTo(this.channelName,"reset:filters",this.logFilterResetAction)}},{key:"setInitialFilters",value:function(){this.initialFilters=new N.a(this.collection.toJSON())}},{key:"onClickApplyFilters",value:function(){this.viewModel.get("dropdownVisible")&&(this.viewModel.set({applyClicked:!0}),this.toggleDropdown())}},{key:"onShowDropdown",value:function(){this.viewModel.set("dropdownVisible",!0)}},{key:"onHideDropdown",value:function(){var e=this.viewModel.get("applyClicked");this.viewModel.unset("applyClicked"),this.viewModel.set("dropdownVisible",!1),this.applyFilters(!!e)}},{key:"toggleDropdown",value:function(){this.getUI("dropdownToggle").dropdown("toggle")}},{key:"applyFilters",value:function(){var e=!(arguments.length>0&&void 0!==arguments[0])||arguments[0];this.haveFiltersChanged()&&(this.logFilterApplyAction(e),this.setInitialFilters(),o.Radio.channel(this.options.channelName).trigger(i.i.Filters.FILTER_CHANGED),this.render())}},{key:"haveFiltersChanged",value:function(){var e=this;return!this.collection.every((function(t,n){return!f.b.hasFilterChanged(e.initialFilters.at(n),t)}))}},{key:"isSelected",value:function(){return this.collection.some((function(e){return f.b.isSelected(e)}))}},{key:"numSelectedFilters",value:function(){return this.collection.filter((function(e){return f.b.isSelected(e)})).length}},{key:"getLabel",value:function(){var e=u.a.getPhrase(this.lang,"moreFilters"),t=this.numSelectedFilters();return t&&(e+=" - ".concat(t)),e}},{key:"getButtonClass",value:function(){var e="btn ".concat(F.a.filterButton);return this.isSelected()?e+=" btn-info":e+=" btn-light",e}},{key:"logFilterApplyAction",value:function(e){var t=this;this.collection.each((function(n,o){f.b.hasFilterChanged(t.initialFilters.at(o),n)&&t.logFilter(n,e)}))}},{key:"logFilter",value:function(e,t){var n={location:a.LocationContext.SearchFilters,actionType:a.UserAction.Filter,entity:a.EntityType.Video,workflowPhase:a.WorkflowPhase.Complete},o={type:e.get("title"),value:f.b.getFilterSelectedOptionsAnalyticsData(e),applyClicked:t};s.a.logUserAction(o,n)}},{key:"logFilterResetAction",value:function(){var e={location:a.LocationContext.SearchFilters,actionType:a.UserAction.Filter,descriptor:a.FilterDescriptor.Reset,entity:a.EntityType.Video,workflowPhase:a.WorkflowPhase.Complete};s.a.logUserAction({type:"More Filters"},e)}},{key:"viewOptions",value:function(){return{label:this.getLabel(),buttonClass:this.getButtonClass()}}},{key:"renderFilters",value:function(){this.showChildView("filters",new M({collection:this.collection,channelName:this.channelName}))}},{key:"onRender",value:function(){this.renderFilters(),this.viewModel.get("dropdownVisible")&&this.toggleDropdown()}},{key:"name",get:function(){return"MoreFiltersButtonComponent"}},{key:"template",get:function(){return B.a}},{key:"lang",get:function(){return"search.moreFiltersButton"}},{key:"className",get:function(){return"rounded cursor-pointer ".concat(H.a.moreFiltersButton)}},{key:"channelName",get:function(){return"".concat(this.name).concat(this.cid)}},{key:"viewModelName",get:function(){return this.name}},{key:"elements",get:function(){return{dropdownToggle:".dropdown-btn"}}}])&&W(t.prototype,n),r&&W(t,r),p}(r.a.Component),K=n(1350),Z=n.n(K);function $(e){return($="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}function 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){return(ee=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e})(e,t)}function te(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 Date.prototype.toString.call(Reflect.construct(Date,[],(function(){}))),!0}catch(e){return!1}}();return function(){var n,o=oe(e);if(t){var r=oe(this).constructor;n=Reflect.construct(o,arguments,r)}else n=o.apply(this,arguments);return ne(this,n)}}function ne(e,t){return!t||"object"!==$(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 oe(e){return(oe=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)})(e)}var re=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&&ee(e,t)}(u,e);var t,n,r,c=te(u);function u(e){return function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,u),c.call(this,e)}return t=u,(n=[{key:"regions",value:function(){return{filterList:{el:".filter-list-region",replaceRegion:!0,partialLoading:l.h.SearchFilter},moreFilters:{el:".more-filters-region",replaceRegion:!0}}}},{key:"events",value:function(){return{"click .clear-filters":"onClickClearFilters"}}},{key:"onClickClearFilters",value:function(){f.b.clearFilters(this.collection),o.Radio.channel(this.options.channelName).trigger(i.i.Filters.FILTER_CHANGED),this.logFilterResetAction()}},{key:"getVisibleFilters",value:function(){return new N.a(this.collection.filter((function(e){return!e.get("showInMoreFilters")&&f.b.showFilter(e)})))}},{key:"getMoreFilters",value:function(){return new N.a(this.collection.filter((function(e){return e.get("showInMoreFilters")&&f.b.showFilter(e)})))}},{key:"hasFiltersSelected",value:function(){return this.collection.some((function(e){return f.b.isSelected(e)}))}},{key:"logFilterResetAction",value:function(){var e={location:a.LocationContext.SearchFilters,actionType:a.UserAction.Filter,descriptor:a.FilterDescriptor.Reset,entity:a.EntityType.Video,workflowPhase:a.WorkflowPhase.Complete};s.a.logUserAction({type:"All",active:!1},e)}},{key:"renderFilterList",value:function(){var e=new pe({collection:this.getVisibleFilters(),channelName:this.options.channelName});this.showChildView("filterList",e)}},{key:"renderMoreFilters",value:function(){var e=new J({collection:this.getMoreFilters(),channelName:this.options.channelName});this.showChildView("moreFilters",e)}},{key:"viewOptions",value:function(){return{labelClass:F.a.label,hasFiltersSelected:this.collection&&this.hasFiltersSelected(),clearFiltersClass:F.a.clearFilters}}},{key:"onBeforeRender",value:function(){return!!this.collection}},{key:"onRender",value:function(){this.renderFilterList(),this.renderMoreFilters()}},{key:"name",get:function(){return"FiltersComponent"}},{key:"template",get:function(){return Z.a}},{key:"lang",get:function(){return"search.filters"}}])&&X(t.prototype,n),r&&X(t,r),u}(r.a.Component);function ie(e){return(ie="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 ae(e,t){return(ae=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e})(e,t)}function se(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 Date.prototype.toString.call(Reflect.construct(Date,[],(function(){}))),!0}catch(e){return!1}}();return function(){var n,o=ue(e);if(t){var r=ue(this).constructor;n=Reflect.construct(o,arguments,r)}else n=o.apply(this,arguments);return ce(this,n)}}function ce(e,t){return!t||"object"!==ie(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 ue(e){return(ue=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)})(e)}var pe=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&&ae(e,t)}(i,e);var t,n,o,r=se(i);function i(e){return function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,i),r.call(this,e)}return t=i,(n=[{key:"name",get:function(){return"FilterListComponent"}},{key:"tagName",get:function(){return"ul"}},{key:"className",get:function(){return"m-0 p-0"}},{key:"childView",get:function(){return we}},{key:"childViewOptions",get:function(){return{channelName:this.options.channelName,analyticsOptions:{location:a.LocationContext.SearchFilters,entity:a.EntityType.Video}}}}])&&le(t.prototype,n),o&&le(t,o),i}(r.a.ComponentCollection),fe=n(135),he=n(1351),ye=n.n(he);function de(e){return(de="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}function ge(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 me(e,t){return(me=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e})(e,t)}function ve(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 Date.prototype.toString.call(Reflect.construct(Date,[],(function(){}))),!0}catch(e){return!1}}();return function(){var n,o=ke(e);if(t){var r=ke(this).constructor;n=Reflect.construct(o,arguments,r)}else n=o.apply(this,arguments);return be(this,n)}}function be(e,t){return!t||"object"!==de(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 ke(e){return(ke=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&&me(e,t)}(h,e);var t,n,l,u=ve(h);function h(e){return function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,h),u.call(this,e)}return t=h,(n=[{key:"initialize",value:function(){this.getViewModel(),this.setInitialFilter(),this.bindListeners()}},{key:"regions",value:function(){return{filter:{el:".filter-region",replaceElement:!1}}}},{key:"events",value:function(){return{"hide.bs.dropdown":"onHideDropdown","show.bs.dropdown":"onShowDropdown"}}},{key:"getViewModel",value:function(){this.viewModel=c.a.get(this.viewModelName)}},{key:"bindListeners",value:function(){this.listenTo(this.channelName,i.i.Filters.APPLY_FILTER,this.onClickApplyFilter),this.listenTo(this.channelName,"reset:filters",this.logFilterResetAction)}},{key:"setInitialFilter",value:function(){this.initialFilter=new fe.a(this.model.toJSON())}},{key:"onClickApplyFilter",value:function(){this.viewModel.get("dropdownVisible")&&(this.viewModel.set({applyClicked:!0}),this.toggleDropdown())}},{key:"onShowDropdown",value:function(){this.viewModel.set("dropdownVisible",!0)}},{key:"onHideDropdown",value:function(){var e=this.viewModel.get("applyClicked");this.viewModel.unset("applyClicked"),this.viewModel.set("dropdownVisible",!1),this.applyFilter(!!e)}},{key:"toggleDropdown",value:function(){this.getUI("dropdownToggle").dropdown("toggle")}},{key:"applyFilter",value:function(e){f.b.hasFilterChanged(this.initialFilter,this.model)&&this.model.get("type")!==p.a.Tags&&(this.setInitialFilter(),o.Radio.channel(this.options.channelName).trigger(i.i.Filters.FILTER_CHANGED),this.logFilterApplyAction(e))}},{key:"getLabel",value:function(){return f.b.isSelected(this.model)?f.b.getFilterLabel(this.model):this.model.get("title")}},{key:"getButtonClass",value:function(){var e="btn ".concat(F.a.filterButton);return f.b.isSelected(this.model)?e+=" btn-info":e+=" btn-light",e}},{key:"logFilterApplyAction",value:function(e){var t=s.a.mergeOptions(this.options.analyticsOptions,{actionType:a.UserAction.Filter,workflowPhase:a.WorkflowPhase.Complete}),n={type:this.model.get("title"),value:f.b.getFilterSelectedOptionsAnalyticsData(this.model),applyClicked:e};s.a.logUserAction(n,t)}},{key:"logFilterResetAction",value:function(){var e=s.a.mergeOptions(this.options.analyticsOptions,{actionType:a.UserAction.Filter,descriptor:a.FilterDescriptor.Reset,workflowPhase:a.WorkflowPhase.Complete}),t={type:this.model.get("title")};s.a.logUserAction(t,e)}},{key:"viewOptions",value:function(){return{styles:F.a,label:this.getLabel(),buttonClass:this.getButtonClass()}}},{key:"renderFilter",value:function(){this.showChildView("filter",new M({collection:new r.a.Collection([this.model]),channelName:this.channelName}))}},{key:"onRender",value:function(){this.renderFilter(),this.viewModel.get("dropdownVisible")&&this.toggleDropdown()}},{key:"name",get:function(){return"FilterButtonItemComponent"}},{key:"template",get:function(){return ye.a}},{key:"className",get:function(){return"d-inline-block m-1"}},{key:"channelName",get:function(){return"".concat(this.name).concat(this.cid)}},{key:"viewModelName",get:function(){return"".concat(this.name,":").concat(this.model.get("type"))}},{key:"elements",get:function(){return{dropdownToggle:".dropdown-btn"}}}])&&ge(t.prototype,n),l&&ge(t,l),h}(r.a.Component),Oe=n(1352),Ce=n.n(Oe);function Se(e){return(Se="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}function Ee(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 Re(e,t){return(Re=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e})(e,t)}function xe(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 Date.prototype.toString.call(Reflect.construct(Date,[],(function(){}))),!0}catch(e){return!1}}();return function(){var n,o=_e(e);if(t){var r=_e(this).constructor;n=Reflect.construct(o,arguments,r)}else n=o.apply(this,arguments);return Pe(this,n)}}function Pe(e,t){return!t||"object"!==Se(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 Te=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&&Re(e,t)}(a,e);var t,n,r,l=xe(a);function a(e){return function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,a),l.call(this,e)}return t=a,(n=[{key:"initialize",value:function(){this.bindListeners()}},{key:"regions",value:function(){return{optionsList:".option-list-region"}}},{key:"bindListeners",value:function(){this.listenTo(this.channelName,i.i.Filters.OPTION_SELECTED,this.onChangeOption)}},{key:"onChangeOption",value:function(e,t){e&&this.isInclusiveType()&&this.onChangeInclusiveOption(e),e&&this.isExclusiveType()&&this.onChangeExclusiveOption(e),e&&this.isRangeType()&&this.onChangeRangeOption(e),e&&this.isTagType()&&this.onChangeTagOption(e),t||(o.Radio.channel(this.options.channelName).trigger(i.i.Filters.OPTION_SELECTED),this.render())}},{key:"onChangeInclusiveOption",value:function(e){e.set("active",!e.get("active"))}},{key:"onChangeExclusiveOption",value:function(e){f.b.clearOptions(this.model),e.set("active",!0)}},{key:"onChangeRangeOption",value:function(e){f.b.clearOptions(this.model),this.collection.each((function(t){t.get("value")<=e.get("value")&&t.set("active",!0)}))}},{key:"onChangeTagOption",value:function(e){var t=this.collection.findWhere({name:e.get("name")});t.set("active",!t.get("active"))}},{key:"isBooleanType",value:function(){return this.model.get("behavior")===f.a.Boolean}},{key:"isInclusiveType",value:function(){return this.model.get("behavior")===f.a.Inclusive}},{key:"isExclusiveType",value:function(){return this.model.get("behavior")===f.a.Exclusive}},{key:"isRangeType",value:function(){return this.model.get("behavior")===f.a.Range}},{key:"isTagType",value:function(){return this.model.get("behavior")===f.a.Tag}},{key:"getChildComponent",value:function(){return this.model.get("type")===p.a.Duration?Nt:this.isTagType()?an:this.isRangeType()?wt:this.isBooleanType()?at:He}},{key:"renderOptionsList",value:function(){this.showChildView("optionsList",new(this.getChildComponent())({collection:this.collection,model:this.model,channelName:this.channelName,isExclusiveType:this.isExclusiveType()}))}},{key:"onRender",value:function(){this.renderOptionsList()}},{key:"name",get:function(){return"FilterOptionsComponent"}},{key:"template",get:function(){return Ce.a}},{key:"className",get:function(){return"py-1"}},{key:"channelName",get:function(){return"".concat(this.name).concat(this.cid)}}])&&Ee(t.prototype,n),r&&Ee(t,r),a}(r.a.Component),Ie=n(1353),je=n.n(Ie);function De(e){return(De="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}function Me(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function Ve(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,n){return t&&Ve(e.prototype,t),n&&Ve(e,n),e}function Le(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&&Fe(e,t)}function Fe(e,t){return(Fe=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e})(e,t)}function Ae(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 Date.prototype.toString.call(Reflect.construct(Date,[],(function(){}))),!0}catch(e){return!1}}();return function(){var n,o=Ue(e);if(t){var r=Ue(this).constructor;n=Reflect.construct(o,arguments,r)}else n=o.apply(this,arguments);return Be(this,n)}}function Be(e,t){return!t||"object"!==De(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 Ue(e){return(Ue=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)})(e)}var He=function(e){Le(n,e);var t=Ae(n);function n(e){return Me(this,n),t.call(this,e)}return Ne(n,[{key:"regions",value:function(){return{options:".options-region"}}},{key:"events",value:function(){return{"click .default-option":"onClickDefaultOption"}}},{key:"onClickDefaultOption",value:function(e){e.stopPropagation(),this.model.get("behavior")===f.a.Inclusive?f.b.selectAllOptions(this.model):f.b.clearOptions(this.model),o.Radio.channel(this.options.channelName).trigger(i.i.Filters.OPTION_SELECTED),this.render()}},{key:"defaultOptionSelected",value:function(){return this.model.get("behavior")===f.a.Inclusive?f.b.allOptionsSelected(this.model):!f.b.hasOptionSelected(this.model)}},{key:"getInputType",value:function(){return this.options.isExclusiveType?"radio":"checkbox"}},{key:"viewOptions",value:function(){return{inputType:this.getInputType(),defaultOptionSelected:this.defaultOptionSelected(),defaultOptionLabel:this.model.get("defaultOptionLabel")}}},{key:"renderOptions",value:function(){this.showChildView("options",new ze({collection:this.collection,childOptions:{channelName:this.options.channelName,isExclusiveType:this.options.isExclusiveType}}))}},{key:"onRender",value:function(){this.renderOptions()}},{key:"name",get:function(){return"FilterOptionsListComponent"}},{key:"template",get:function(){return je.a}}]),n}(r.a.Component),ze=function(e){Le(n,e);var t=Ae(n);function n(e){return Me(this,n),t.call(this,e)}return Ne(n,[{key:"name",get:function(){return"FilterOptionComponentCollection"}},{key:"childView",get:function(){return $e}},{key:"childViewOptions",get:function(){return this.options.childOptions}}]),n}(r.a.ComponentCollection),We=n(1354),qe=n.n(We);function Ye(e){return(Ye="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 Ge(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 Qe(e,t){return(Qe=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e})(e,t)}function Je(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 Date.prototype.toString.call(Reflect.construct(Date,[],(function(){}))),!0}catch(e){return!1}}();return function(){var n,o=Ze(e);if(t){var r=Ze(this).constructor;n=Reflect.construct(o,arguments,r)}else n=o.apply(this,arguments);return Ke(this,n)}}function Ke(e,t){return!t||"object"!==Ye(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 Ze(e){return(Ze=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&&Qe(e,t)}(a,e);var t,n,r,l=Je(a);function a(e){return function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,a),l.call(this,e)}return t=a,(n=[{key:"initialize",value:function(){this.bindListeners()}},{key:"events",value:function(){return{click:"onClick"}}},{key:"bindListeners",value:function(){this.listenTo(this.model,"change",this.render)}},{key:"onClick",value:function(e){e.stopPropagation(),o.Radio.channel(this.options.channelName).trigger(i.i.Filters.OPTION_SELECTED,this.model)}},{key:"getInputType",value:function(){return this.options.isExclusiveType?"radio":"checkbox"}},{key:"viewOptions",value:function(){return{inputType:this.getInputType()}}},{key:"name",get:function(){return"FilterOptionItemComponent"}},{key:"template",get:function(){return qe.a}},{key:"className",get:function(){return"filter-option-item py-1 cursor-pointer"}}])&&Ge(t.prototype,n),r&&Ge(t,r),a}(r.a.Component),Xe=n(1355),et=n.n(Xe);function tt(e){return(tt="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 nt(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 ot(e,t){return(ot=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 Date.prototype.toString.call(Reflect.construct(Date,[],(function(){}))),!0}catch(e){return!1}}();return function(){var n,o=lt(e);if(t){var r=lt(this).constructor;n=Reflect.construct(o,arguments,r)}else n=o.apply(this,arguments);return it(this,n)}}function it(e,t){return!t||"object"!==tt(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 lt(e){return(lt=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)})(e)}var at=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&&ot(e,t)}(a,e);var t,n,r,l=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),l.call(this,e)}return t=a,(n=[{key:"events",value:function(){return{"click .toggle-option":"onClickToggleOption"}}},{key:"onClickToggleOption",value:function(e){e.stopPropagation(),this.model.set("active",!this.model.get("active")),o.Radio.channel(this.options.channelName).trigger(i.i.Filters.OPTION_SELECTED),this.render()}},{key:"viewOptions",value:function(){return{isSelected:this.model.get("active")}}},{key:"name",get:function(){return"BoolFilterOptionComponent"}},{key:"template",get:function(){return et.a}}])&&nt(t.prototype,n),r&&nt(t,r),a}(r.a.Component),st=n(1356),ct=n.n(st),ut=n(1357),pt=n.n(ut);function ft(e){return(ft="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 ht(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function yt(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,n){return t&&yt(e.prototype,t),n&&yt(e,n),e}function gt(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&&mt(e,t)}function mt(e,t){return(mt=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e})(e,t)}function vt(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 Date.prototype.toString.call(Reflect.construct(Date,[],(function(){}))),!0}catch(e){return!1}}();return function(){var n,o=kt(e);if(t){var r=kt(this).constructor;n=Reflect.construct(o,arguments,r)}else n=o.apply(this,arguments);return bt(this,n)}}function bt(e,t){return!t||"object"!==ft(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 kt(e){return(kt=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)})(e)}var wt=function(e){gt(n,e);var t=vt(n);function n(){return ht(this,n),t.apply(this,arguments)}return dt(n,[{key:"name",get:function(){return"RatingFilterOptionComponentCollection"}},{key:"className",get:function(){return"btn-group ".concat(pt.a.options," py-2")}},{key:"attributes",get:function(){return{role:"group"}}},{key:"childView",get:function(){return Ot}},{key:"childViewOptions",get:function(){return{channelName:this.options.channelName}}}]),n}(r.a.ComponentCollection),Ot=function(e){gt(n,e);var t=vt(n);function n(){return ht(this,n),t.apply(this,arguments)}return dt(n,[{key:"events",value:function(){return{click:"onClick"}}},{key:"onClick",value:function(e){e.stopPropagation(),o.Radio.channel(this.options.channelName).trigger(i.i.Filters.OPTION_SELECTED,this.model)}},{key:"isSelected",value:function(){return this.model.get("active")}},{key:"onRender",value:function(){this.$el.tooltip()}},{key:"onBeforeDestroy",value:function(){this.$el.tooltip("dispose")}},{key:"name",get:function(){return"RatingFilterOptionItemComponent"}},{key:"template",get:function(){return ct.a}},{key:"tagName",get:function(){return"button"}},{key:"className",get:function(){var e="".concat(pt.a.option," border btn btn-");return this.isSelected()?"".concat(e,"info"):"".concat(e,"light")}},{key:"attributes",get:function(){return{type:"button",title:this.model.get("fullName")}}}]),n}(r.a.Component),Ct=n(1358),St=n.n(Ct),Et=n(1359),Rt=n.n(Et);function xt(e){return(xt="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 Pt(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function _t(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 Tt(e,t,n){return t&&_t(e.prototype,t),n&&_t(e,n),e}function It(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&&jt(e,t)}function jt(e,t){return(jt=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e})(e,t)}function Dt(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 Date.prototype.toString.call(Reflect.construct(Date,[],(function(){}))),!0}catch(e){return!1}}();return function(){var n,o=Vt(e);if(t){var r=Vt(this).constructor;n=Reflect.construct(o,arguments,r)}else n=o.apply(this,arguments);return Mt(this,n)}}function Mt(e,t){return!t||"object"!==xt(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 Vt(e){return(Vt=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)})(e)}var Nt=function(e){It(n,e);var t=Dt(n);function n(){return Pt(this,n),t.apply(this,arguments)}return Tt(n,[{key:"getOptionItemClassName",value:function(){var e=Rt.a.optionItem;return 4===this.collection.length&&(e+=" ".concat(Rt.a.customOptionItem)),e}},{key:"name",get:function(){return"DurationFilterOptionComponentCollection"}},{key:"childView",get:function(){return Lt}},{key:"className",get:function(){return Rt.a.options}},{key:"childViewOptions",get:function(){return{channelName:this.options.channelName,optionItemClassName:this.getOptionItemClassName()}}}]),n}(r.a.ComponentCollection),Lt=function(e){It(n,e);var t=Dt(n);function n(e){return Pt(this,n),t.call(this,e)}return Tt(n,[{key:"events",value:function(){return{"click .option-btn":"onClickOption"}}},{key:"viewOptions",value:function(){return{buttonClass:this.getButtonClass()}}},{key:"onClickOption",value:function(e){e.stopPropagation(),o.Radio.channel(this.options.channelName).trigger(i.i.Filters.OPTION_SELECTED,this.model)}},{key:"isSelected",value:function(){return this.model.get("active")}},{key:"getButtonClass",value:function(){var e="btn ".concat(Rt.a.optionButton," p-1");return this.isSelected()?e+=" btn-info":e+=" btn-light",e}},{key:"name",get:function(){return"DurationFilterItemComponent"}},{key:"template",get:function(){return St.a}},{key:"className",get:function(){return"d-inline-block p-1 ".concat(this.options.optionItemClassName)}}]),n}(r.a.Component),Ft=n(1),At=n(292),Bt=n(1360),Ut=n.n(Bt),Ht=n(1361),zt=n.n(Ht),Wt=n(1254),qt=n(1362),Yt=n.n(qt);function Gt(e){return(Gt="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 Qt(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 Jt(e,t){return(Jt=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e})(e,t)}function Kt(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 Date.prototype.toString.call(Reflect.construct(Date,[],(function(){}))),!0}catch(e){return!1}}();return function(){var n,o=$t(e);if(t){var r=$t(this).constructor;n=Reflect.construct(o,arguments,r)}else n=o.apply(this,arguments);return Zt(this,n)}}function Zt(e,t){return!t||"object"!==Gt(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 $t(e){return($t=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)})(e)}var Xt=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&&Jt(e,t)}(i,e);var t,n,o,r=Kt(i);function i(e){return function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,i),r.call(this,e)}return t=i,(n=[{key:"regions",value:function(){return{tags:{el:".tags-region",replaceElement:!0,partialLoading:l.h.TagFilter}}}},{key:"onBeforeRender",value:function(){return!Ft.isNull(this.collection)}},{key:"onRender",value:function(){this.showChildView("tags",new Wt.a({collection:this.collection,channelName:this.options.channelName,behavior:this.options.behavior,removeEvent:this.options.removeEvent,clickEvent:this.options.clickEvent}))}},{key:"name",get:function(){return"TagFilterOptionsListComponent"}},{key:"template",get:function(){return Yt.a}}])&&Qt(t.prototype,n),o&&Qt(t,o),i}(r.a.Component);function en(e){return(en="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 tn(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 nn(e,t){return(nn=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e})(e,t)}function on(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 Date.prototype.toString.call(Reflect.construct(Date,[],(function(){}))),!0}catch(e){return!1}}();return function(){var n,o=ln(e);if(t){var r=ln(this).constructor;n=Reflect.construct(o,arguments,r)}else n=o.apply(this,arguments);return rn(this,n)}}function rn(e,t){return!t||"object"!==en(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 ln(e){return(ln=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)})(e)}var an=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&&nn(e,t)}(a,e);var t,n,r,l=on(a);function a(e){return function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,a),l.call(this,e)}return t=a,(n=[{key:"initialize",value:function(){this.bindListeners(),this.setRelevantTags()}},{key:"regions",value:function(){return{selectedTags:{el:".selected-tags-region",replaceElement:!0},relevantTags:{el:".relevant-tags-region",replaceElement:!0}}}},{key:"bindListeners",value:function(){this.listenTo(this.channelName,"on:option:change",this.onChange)}},{key:"onChange",value:function(e){o.Radio.channel(this.options.channelName).trigger(i.i.Filters.OPTION_SELECTED,e,!0),o.Radio.channel(h.a.TagFilter).trigger("change:relevant:tags"),this.relevantTags=null,this.render()}},{key:"setRelevantTags",value:function(){var e=f.b.getSelectedOptions(this.collection).map((function(e){return e.get("id")}));this.collection.length!==e.length?this.relevantTags=new N.b(this.collection.filter((function(t){return!Ft.contains(e,t.get("id"))})).slice(0,5)):this.relevantTags=null}},{key:"hasSelectedTags",value:function(){var e=f.b.getSelectedOptions(this.collection);return e&&!!e.length}},{key:"hasRelevantTags",value:function(){return Ft.isNull(this.relevantTags)||this.relevantTags&&!!this.relevantTags.length}},{key:"renderSelectedTags",value:function(){if(this.hasSelectedTags()){var e=f.b.getSelectedOptions(this.collection);this.showChildView("selectedTags",new Xt({collection:e,channelName:this.channelName,behavior:At.b.Filter,removeEvent:"on:option:change"}))}}},{key:"renderRelevantTags",value:function(){this.showChildView("relevantTags",new Xt({collection:this.relevantTags,channelName:this.channelName,behavior:At.b.Filter,clickEvent:"on:option:change"}))}},{key:"viewOptions",value:function(){return{showEmptyState:!this.hasSelectedTags()&&!this.hasRelevantTags(),useDivider:this.hasSelectedTags()&&this.hasRelevantTags()}}},{key:"onRender",value:function(){this.renderSelectedTags(),this.renderRelevantTags()}},{key:"name",get:function(){return"TagFilterOptionsComponent"}},{key:"template",get:function(){return zt.a}},{key:"lang",get:function(){return"search.tagFilterOptions"}},{key:"className",get:function(){return"".concat(Ut.a.container)}},{key:"channelName",get:function(){return"".concat(this.name).concat(this.cid)}}])&&tn(t.prototype,n),r&&tn(t,r),a}(r.a.Component);n.d(t,"f",(function(){return re})),n.d(t,"b",(function(){return pe})),n.d(t,"a",(function(){return we})),n.d(t,"d",(function(){return Te})),n.d(t,"e",(function(){return He})),n.d(t,"c",(function(){return $e}))},1509: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,r){e.propertyIsEnumerable;return"<h3>"+e.escapeExpression((n.lang||t&&t.lang||e.hooks.helperMissing).call(null!=t?t:e.nullContext||{},"header",{name:"lang",hash:{},data:r}))+'</h3>\r\n<div class="filters-region"></div>'},useData:!0})},1510: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,r){return'<div class="results-region"></div>'},useData:!0})},1511: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,r){return'<div class="header-region"></div>\r\n<div class="results-region"></div>\r\n<div class="pagination-region"></div>'},useData:!0})},1662:function(e,t,n){"use strict";n.r(t);var o=n(1),r=n(6),i=n(2),l=n(5),a=n(30),s=n(3),c=n(22),u=n(189),p=n(1255),f=n(0),h=n(32),y=n(50),d=n(98),g=n(17),m=n(188),v=n(136),b=n(135),k=n(124),w=n(1375),O=n(1509),C=n.n(O);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 E(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function R(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 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 Date.prototype.toString.call(Reflect.construct(Date,[],(function(){}))),!0}catch(e){return!1}}();return function(){var n,o=T(e);if(t){var r=T(this).constructor;n=Reflect.construct(o,arguments,r)}else n=o.apply(this,arguments);return _(this,n)}}function _(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 T(e){return(T=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)})(e)}var I=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)}(i,e);var t,n,o,r=P(i);function i(){return E(this,i),r.apply(this,arguments)}return t=i,(n=[{key:"regions",value:function(){return{filters:{el:".filters-region",replaceElement:!0}}}},{key:"renderFilters",value:function(){var e=new w.f({collection:this.collection,channelName:this.options.channelName});this.showChildView("filters",e)}},{key:"onRender",value:function(){this.renderFilters()}},{key:"name",get:function(){return"SearchHeaderComponent"}},{key:"template",get:function(){return C.a}},{key:"lang",get:function(){return"search.searchHeader"}},{key:"className",get:function(){return"bg-white border-bottom p-3"}}])&&R(t.prototype,n),o&&R(t,o),i}(i.a.Component),j=n(9),D=n(1283),M=n(1363),V=n(1510),N=n.n(V);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 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 A(e,t){return(A=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 Date.prototype.toString.call(Reflect.construct(Date,[],(function(){}))),!0}catch(e){return!1}}();return function(){var n,o=H(e);if(t){var r=H(this).constructor;n=Reflect.construct(o,arguments,r)}else n=o.apply(this,arguments);return U(this,n)}}function U(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 z=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&&A(e,t)}(i,e);var t,n,o,r=B(i);function i(e){return function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,i),r.call(this,e)}return t=i,(n=[{key:"regions",value:function(){return{results:{replaceElement:!0,el:".results-region",partialLoading:j.h.VideoList}}}},{key:"onBeforeRender",value:function(){return!!this.collection}},{key:"onRender",value:function(){var e=new D.a({collection:this.collection,videosWithMetadata:this.options.videosWithMetadata,application:f.b.SEARCH,videoItemComponentType:M.a.Search,collectionIdentifier:null,config:this.options.config,emptyStateType:j.c.Search,emptyStateOptions:{heading:s.a.getPhrase(this.lang,"emptyStateHeading"),description:s.a.getPhrase(this.lang,"emptyStateDescription")},collectionViewChannel:this.options.collectionViewChannel,customerHasExchange:this.options.customerHasExchange,currentUser:this.options.currentUser});this.showChildView("results",e)}},{key:"name",get:function(){return"SearchResultsComponent"}},{key:"template",get:function(){return N.a}},{key:"lang",get:function(){return"search.searchResults"}},{key:"className",get:function(){return"bg-white"}}])&&F(t.prototype,n),o&&F(t,o),i}(i.a.Component),W=n(1290),q=n(1511),Y=n.n(q),G=n(134);function Q(e){return(Q="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}function 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 K(e,t){return(K=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e})(e,t)}function Z(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 Date.prototype.toString.call(Reflect.construct(Date,[],(function(){}))),!0}catch(e){return!1}}();return function(){var n,o=X(e);if(t){var r=X(this).constructor;n=Reflect.construct(o,arguments,r)}else n=o.apply(this,arguments);return $(this,n)}}function $(e,t){return!t||"object"!==Q(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 X(e){return(X=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)})(e)}n.d(t,"SearchView",(function(){return ee}));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&&K(e,t)}(C,e);var t,n,w,O=Z(C);function C(e){return function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,C),O.call(this,e)}return t=C,(n=[{key:"initialize",value:function(){this.initializeQuery(),this.bindListeners(),this.contextualSearchService=l.a.getInstance(c.b.ContextualSearch,this),this.searchDataService=l.a.getInstance(c.a.Search,this),this.videoDataService=l.a.getInstance(g.a.Video,this),this.ratingsDataService=l.a.getInstance(g.a.Ratings,this),this.collectionIdentifier=new u.a(Object.assign({collectionPrefix:h.a.SEARCH_VIDEOS},this.options.queryParams))}},{key:"initializeQuery",value:function(){this.queryModel=this.getSearchModel()}},{key:"bindListeners",value:function(){this.listenTo(f.e.RATINGS,"".concat(h.a.RATINGS,":sync"),this.render),this.listenTo(this.channelName,f.i.Filters.FILTER_CHANGED,o.debounce(this.onFilterChange,100)),this.listenTo(this.channelName,"fetch:video:with:metadata",this.fetchVideoWithMetadata),this.listenTo(W.a.TagFilter,"change:relevant:tags",this.updateSearchResults)}},{key:"regions",value:function(){return{header:{replaceElement:!0,el:".header-region"},results:{replaceElement:!0,el:".results-region"},pagination:{el:".pagination-region",replaceElement:!0}}}},{key:"getSearchModel",value:function(){return a.a.get("search",{ctor:b.c})}},{key:"fetchSearchData",value:function(){this.ratings=this.ratingsDataService.getAllRatings(),this.ratings&&!this.filterCollection&&this.initializeFilterCollection()}},{key:"initializeFilterCollection",value:function(){this.filterCollection=k.b.getFilterCollection(this.sources,this.ratings),this.setQueryParams()}},{key:"setQueryParams",value:function(){k.c.setQueryParams(Object.assign(Object.assign({},this.options.queryParams),this.getContextParams()),this.queryModel,this.filterCollection)}},{key:"getContextParams",value:function(){if(!this.queryModel.get("query"))return r.Radio.channel(f.w.CONTEXTUAL_SEARCH).trigger("reset:search:context"),{};var e,t,n,o=this.contextualSearchService.getSearchContext();return o&&o.get("filterParam")?(e={},t=o.get("filterParam"),n=o.get("filterValue"),t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e):{}}},{key:"onFilterChange",value:function(){i.a.AppLinkHelper.trigger({application:f.b.SEARCH,action:f.a.Search.HOME,params:k.c.getRouteQueryParams(this.queryModel,this.filterCollection,this.sources)})}},{key:"setVideosWithMetadata",value:function(){this.resultCollection&&!this.videosWithMetadata&&(this.videosWithMetadata=new y.a(this.resultCollection.map((function(e){return new d.a({id:e.get("id")})}))))}},{key:"updateSearchResults",value:function(){var e=this;this.resultCollection=null,this.renderResults(),this.queryString=k.c.getQueryString(this.queryModel,this.filterCollection,this.collectionIdentifier.cursor);var t=function(){return i.a.AppLinkHelper.trigger({application:f.b.SEARCH,action:f.a.Search.HOME,params:k.c.getRouteQueryParams(e.queryModel,e.filterCollection,e.sources)})};this.queryString?this.searchDataService.searchVideos(this.queryString,this.collectionIdentifier,t):t()}},{key:"renderHeader",value:function(){var e=new I({collection:this.filterCollection,channelName:this.channelName});this.showChildView("header",e)}},{key:"renderResults",value:function(){var e=new z({collection:this.resultCollection,videosWithMetadata:this.videosWithMetadata,config:this.config,collectionViewChannel:this.channelName,customerHasExchange:this.exchanges.any(),currentUser:this.currentUser});this.showChildView("results",e)}},{key:"renderPagination",value:function(){if(this.resultCollection&&this.resultCollection.length){var e=this.videoDataService.getVideoCollectionCursors(this.collectionIdentifier),t=new p.a({cursors:e,appLink:{application:f.b.SEARCH,action:f.a.Search.HOME,params:k.c.getRouteQueryParams(this.queryModel,this.filterCollection,this.sources)}});this.showChildView("pagination",t)}}},{key:"fetchResults",value:function(){var e=this;if(this.filterCollection){this.queryString=k.c.getQueryString(this.queryModel,this.filterCollection,this.collectionIdentifier.cursor);var t=k.c.getDynamicFilterQueryString(this.queryModel,this.filterCollection);if(this.dynamicFiltersFetched||this.searchDataService.getDynamicFilters(t,(function(t){e.dynamicFiltersFetched||(e.filterCollection.add(t.toJSON(),{merge:!0}),e.dynamicFiltersFetched=!0,e.render())})),!this.resultCollection){var n=function(t){e.resultCollection=t,e.setVideosWithMetadata(),e.render()};this.queryString?this.searchDataService.searchVideos(this.queryString,this.collectionIdentifier,n):n(new y.a([]))}}}},{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:"onBeforeRender",value:function(){return this.fetchSearchData(),this.fetchResults(),!0}},{key:"onRender",value:function(){this.renderHeader(),this.renderResults(),this.renderPagination()}},{key:"onBeforeDestroy",value:function(){this.queryModel.clear()}},{key:"name",get:function(){return"SearchView"}},{key:"title",get:function(){return s.a.getPhrase(this.lang,"title")}},{key:"lang",get:function(){return"search.search"}},{key:"template",get:function(){return Y.a}},{key:"className",get:function(){return"bg-white"}},{key:"channelName",get:function(){return"".concat(this.name).concat(this.cid)}},{key:"requiredResources",get:function(){return{config:m.b.config,sources:v.b.libraries,exchanges:v.b.exchanges,currentUser:G.b.currentUser}}}])&&J(t.prototype,n),w&&J(t,w),C}(i.a.View)}}]);
|