@clickview/library-editor 1.1.29-dev.1 → 1.1.29-rc.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/css/11.chunk.css +135 -0
- package/dist/css/17.chunk.css +14 -0
- package/dist/css/18.chunk.css +18 -0
- package/dist/css/2.chunk.css +143 -0
- package/dist/css/34.chunk.css +19 -0
- package/dist/css/35.chunk.css +18 -0
- package/dist/css/36.chunk.css +12 -0
- package/dist/css/49.chunk.css +33 -0
- package/dist/css/52.chunk.css +64 -0
- package/dist/css/60.chunk.css +16 -0
- package/dist/css/63.chunk.css +168 -0
- package/dist/css/67.chunk.css +76 -0
- package/dist/css/68.chunk.css +15 -0
- package/dist/css/69.chunk.css +15 -0
- package/dist/css/70.chunk.css +21 -0
- package/dist/css/71.chunk.css +38 -0
- package/dist/css/72.chunk.css +14 -0
- package/dist/css/73.chunk.css +35 -0
- package/dist/css/74.chunk.css +27 -0
- package/dist/css/75.chunk.css +4 -0
- package/dist/css/76.chunk.css +4 -0
- package/dist/scripts/{0-893cf9da03.chunk.js → 0-d9bab0e33f.chunk.js} +1 -1
- package/dist/scripts/0.chunk.js +64 -0
- package/dist/scripts/1-43274a8acf.chunk.js +1 -0
- package/dist/scripts/1.chunk.js +75 -0
- package/dist/scripts/{10-2fdf5fbc53.chunk.js → 10-9ccbcc7396.chunk.js} +1 -1
- package/dist/scripts/10.chunk.js +62 -0
- package/dist/scripts/{11-d8ac95ace0.chunk.js → 11-eacd10fc4b.chunk.js} +1 -1
- package/dist/scripts/11.chunk.js +317 -0
- package/dist/scripts/{12-4a650f5770.chunk.js → 12-f7d3c3eb14.chunk.js} +1 -1
- package/dist/scripts/12.chunk.js +56 -0
- package/dist/scripts/{13-bf721cf737.chunk.js → 13-596293d2f3.chunk.js} +1 -1
- package/dist/scripts/13.chunk.js +25 -0
- package/dist/scripts/{14-6d9b2e7b5d.chunk.js → 14-10db24a21b.chunk.js} +1 -1
- package/dist/scripts/14.chunk.js +272 -0
- package/dist/scripts/{15-66f7b3f806.chunk.js → 15-c27b6e07d7.chunk.js} +1 -1
- package/dist/scripts/15.chunk.js +35 -0
- package/dist/scripts/{16-c8a2187366.chunk.js → 16-0527a91c12.chunk.js} +1 -1
- package/dist/scripts/16.chunk.js +79 -0
- package/dist/scripts/{17-74011bb49d.chunk.js → 17-0eb846d9b9.chunk.js} +1 -1
- package/dist/scripts/17.chunk.js +40 -0
- package/dist/scripts/18.chunk.js +40 -0
- package/dist/scripts/19.chunk.js +43 -0
- package/dist/scripts/{2-adb8cb0f02.chunk.js → 2-32600b4825.chunk.js} +1 -1
- package/dist/scripts/2.chunk.js +33 -0
- package/dist/scripts/{20-037b7c190d.chunk.js → 20-4694e953f3.chunk.js} +1 -1
- package/dist/scripts/20.chunk.js +18 -0
- package/dist/scripts/{21-722fc28f1a.chunk.js → 21-31fe65f6fe.chunk.js} +1 -1
- package/dist/scripts/21.chunk.js +55 -0
- package/dist/scripts/{22-70a4351788.chunk.js → 22-53683e1113.chunk.js} +1 -1
- package/dist/scripts/22.chunk.js +47 -0
- package/dist/scripts/23-532207d286.chunk.js +1 -0
- package/dist/scripts/23.chunk.js +47 -0
- package/dist/scripts/{24-6102fbd968.chunk.js → 24-bbcd07a4ad.chunk.js} +1 -1
- package/dist/scripts/24.chunk.js +33 -0
- package/dist/scripts/{25-5e3718c4f8.chunk.js → 25-89fdb8ae9e.chunk.js} +1 -1
- package/dist/scripts/25.chunk.js +25 -0
- package/dist/scripts/{26-125d9a6de8.chunk.js → 26-f96a71dc19.chunk.js} +1 -1
- package/dist/scripts/26.chunk.js +25 -0
- package/dist/scripts/{27-457c6bad4b.chunk.js → 27-0f31b7c661.chunk.js} +1 -1
- package/dist/scripts/27.chunk.js +10 -0
- package/dist/scripts/{28-5d9b1adc65.chunk.js → 28-33fe42f228.chunk.js} +1 -1
- package/dist/scripts/28.chunk.js +334 -0
- package/dist/scripts/{29-0c9c51c239.chunk.js → 29-98ee96c8e2.chunk.js} +1 -1
- package/dist/scripts/29.chunk.js +202 -0
- package/dist/scripts/{3-b28a477332.chunk.js → 3-cde1cf5937.chunk.js} +1 -1
- package/dist/scripts/3.chunk.js +49 -0
- package/dist/scripts/{30-f0260bfb5d.chunk.js → 30-a1e91c98bb.chunk.js} +1 -1
- package/dist/scripts/30.chunk.js +137 -0
- package/dist/scripts/{31-620d94f312.chunk.js → 31-ddc6005e61.chunk.js} +1 -1
- package/dist/scripts/31.chunk.js +113 -0
- package/dist/scripts/{32-fca1e842be.chunk.js → 32-faaa878653.chunk.js} +1 -1
- package/dist/scripts/32.chunk.js +115 -0
- package/dist/scripts/{33-35a23ce7dc.chunk.js → 33-c0f26ea2ed.chunk.js} +1 -1
- package/dist/scripts/33.chunk.js +93 -0
- package/dist/scripts/{34-63cad33739.chunk.js → 34-664e3c9ed8.chunk.js} +1 -1
- package/dist/scripts/34.chunk.js +63 -0
- package/dist/scripts/{35-c714c79c47.chunk.js → 35-65df59652c.chunk.js} +1 -1
- package/dist/scripts/35.chunk.js +48 -0
- package/dist/scripts/{36-97d54bfcb6.chunk.js → 36-67f06d207e.chunk.js} +1 -1
- package/dist/scripts/36.chunk.js +33 -0
- package/dist/scripts/{37-714e274ba1.chunk.js → 37-cd9319a509.chunk.js} +1 -1
- package/dist/scripts/37.chunk.js +25 -0
- package/dist/scripts/{38-57707f35c5.chunk.js → 38-d31c013847.chunk.js} +1 -1
- package/dist/scripts/38.chunk.js +25 -0
- package/dist/scripts/{39-8efc05edc8.chunk.js → 39-c6cddc090b.chunk.js} +1 -1
- package/dist/scripts/39.chunk.js +19 -0
- package/dist/scripts/{4-a5df37905e.chunk.js → 4-1c1dfe2433.chunk.js} +1 -1
- package/dist/scripts/4.chunk.js +26 -0
- package/dist/scripts/{40-7683dbe2eb.chunk.js → 40-fe62a14c0d.chunk.js} +1 -1
- package/dist/scripts/40.chunk.js +182 -0
- package/dist/scripts/{41-278fde528e.chunk.js → 41-f38884bab1.chunk.js} +1 -1
- package/dist/scripts/41.chunk.js +175 -0
- package/dist/scripts/{42-ba98b82f3f.chunk.js → 42-ed988e3f2d.chunk.js} +1 -1
- package/dist/scripts/42.chunk.js +176 -0
- package/dist/scripts/{43-6821c05ced.chunk.js → 43-5e456895fb.chunk.js} +1 -1
- package/dist/scripts/43.chunk.js +113 -0
- package/dist/scripts/{44-ac3f31f773.chunk.js → 44-7bdb91c84a.chunk.js} +1 -1
- package/dist/scripts/44.chunk.js +122 -0
- package/dist/scripts/{45-9eafa772d6.chunk.js → 45-ecdc8f35ff.chunk.js} +1 -1
- package/dist/scripts/45.chunk.js +85 -0
- package/dist/scripts/{46-6e1aaad220.chunk.js → 46-d7378b7299.chunk.js} +1 -1
- package/dist/scripts/46.chunk.js +78 -0
- package/dist/scripts/{47-23c8fd27f4.chunk.js → 47-918e00832a.chunk.js} +1 -1
- package/dist/scripts/47.chunk.js +70 -0
- package/dist/scripts/{48-7e67867a3f.chunk.js → 48-29367eedb5.chunk.js} +1 -1
- package/dist/scripts/48.chunk.js +88 -0
- package/dist/scripts/{49-e9876d2cab.chunk.js → 49-bfa3d256c7.chunk.js} +1 -1
- package/dist/scripts/49.chunk.js +62 -0
- package/dist/scripts/{5-f1869dedae.chunk.js → 5-2643262b33.chunk.js} +1 -1
- package/dist/scripts/5.chunk.js +10 -0
- package/dist/scripts/{50-f9c7c3761e.chunk.js → 50-4fd30753c4.chunk.js} +1 -1
- package/dist/scripts/50.chunk.js +64 -0
- package/dist/scripts/{51-3b6afb684f.chunk.js → 51-6be60d667e.chunk.js} +1 -1
- package/dist/scripts/51.chunk.js +55 -0
- package/dist/scripts/{52-a9f0c422a5.chunk.js → 52-40c6ddc6d8.chunk.js} +1 -1
- package/dist/scripts/52.chunk.js +47 -0
- package/dist/scripts/{53-8b48f7fdca.chunk.js → 53-bd14d7e2d0.chunk.js} +1 -1
- package/dist/scripts/53.chunk.js +56 -0
- package/dist/scripts/{54-e4c4395d60.chunk.js → 54-5ff1f1ae99.chunk.js} +1 -1
- package/dist/scripts/54.chunk.js +56 -0
- package/dist/scripts/{55-d8b06f6866.chunk.js → 55-d7a84e12ce.chunk.js} +1 -1
- package/dist/scripts/55.chunk.js +41 -0
- package/dist/scripts/{56-d6d4357a95.chunk.js → 56-11e9b487a7.chunk.js} +1 -1
- package/dist/scripts/56.chunk.js +41 -0
- package/dist/scripts/{57-0b06c18f49.chunk.js → 57-1dbfc6cc21.chunk.js} +1 -1
- package/dist/scripts/57.chunk.js +50 -0
- package/dist/scripts/{58-437d8ddfa0.chunk.js → 58-bd86d244ca.chunk.js} +1 -1
- package/dist/scripts/58.chunk.js +33 -0
- package/dist/scripts/{59-2e17690315.chunk.js → 59-17eae5e85d.chunk.js} +1 -1
- package/dist/scripts/59.chunk.js +33 -0
- package/dist/scripts/{6-aa503af6ca.chunk.js → 6-761fc04f5a.chunk.js} +1 -1
- package/dist/scripts/6.chunk.js +40 -0
- package/dist/scripts/{60-148ca2abae.chunk.js → 60-b4b7bcf2df.chunk.js} +1 -1
- package/dist/scripts/60.chunk.js +33 -0
- package/dist/scripts/{61-c9d395815f.chunk.js → 61-e21c38e6ad.chunk.js} +1 -1
- package/dist/scripts/61.chunk.js +33 -0
- package/dist/scripts/{62-1fb6fc1ccd.chunk.js → 62-f13702f3ce.chunk.js} +1 -1
- package/dist/scripts/62.chunk.js +25 -0
- package/dist/scripts/{63-5a28ef5304.chunk.js → 63-951be4ea1c.chunk.js} +1 -1
- package/dist/scripts/63.chunk.js +25 -0
- package/dist/scripts/{64-d48ec30d03.chunk.js → 64-00ac823b05.chunk.js} +1 -1
- package/dist/scripts/64.chunk.js +33 -0
- package/dist/scripts/{65-f19fd0e2c6.chunk.js → 65-4fcdbba2ce.chunk.js} +1 -1
- package/dist/scripts/65.chunk.js +34 -0
- package/dist/scripts/{66-09e627c1ad.chunk.js → 66-d5f77f0f1b.chunk.js} +1 -1
- package/dist/scripts/66.chunk.js +33 -0
- package/dist/scripts/{67-4407c6bbae.chunk.js → 67-71fccc45c2.chunk.js} +1 -1
- package/dist/scripts/67.chunk.js +25 -0
- package/dist/scripts/{68-50d56244e4.chunk.js → 68-68def3bc6f.chunk.js} +1 -1
- package/dist/scripts/68.chunk.js +25 -0
- package/dist/scripts/{69-63e2e42b11.chunk.js → 69-988f711f29.chunk.js} +1 -1
- package/dist/scripts/69.chunk.js +25 -0
- package/dist/scripts/{7-470aeaa5af.chunk.js → 7-7f5ce7e0da.chunk.js} +1 -1
- package/dist/scripts/7.chunk.js +33 -0
- package/dist/scripts/{70-60d35f9d34.chunk.js → 70-41fe72ca31.chunk.js} +1 -1
- package/dist/scripts/70.chunk.js +25 -0
- package/dist/scripts/{71-a03ad04161.chunk.js → 71-c49e3df87b.chunk.js} +1 -1
- package/dist/scripts/71.chunk.js +25 -0
- package/dist/scripts/{72-97e3161fa9.chunk.js → 72-7407631469.chunk.js} +1 -1
- package/dist/scripts/72.chunk.js +25 -0
- package/dist/scripts/73.chunk.js +25 -0
- package/dist/scripts/74.chunk.js +25 -0
- package/dist/scripts/75.chunk.js +25 -0
- package/dist/scripts/76.chunk.js +25 -0
- package/dist/scripts/77.chunk.js +26 -0
- package/dist/scripts/78.chunk.js +26 -0
- package/dist/scripts/79.chunk.js +26 -0
- package/dist/scripts/{8-4ec4ac9a11.chunk.js → 8-d0e1978f60.chunk.js} +1 -1
- package/dist/scripts/8.chunk.js +33 -0
- package/dist/scripts/80.chunk.js +26 -0
- package/dist/scripts/81.chunk.js +26 -0
- package/dist/scripts/82.chunk.js +26 -0
- package/dist/scripts/83.chunk.js +26 -0
- package/dist/scripts/84.chunk.js +26 -0
- package/dist/scripts/85.chunk.js +26 -0
- package/dist/scripts/86.chunk.js +18 -0
- package/dist/scripts/87.chunk.js +18 -0
- package/dist/scripts/88.chunk.js +18 -0
- package/dist/scripts/89.chunk.js +18 -0
- package/dist/scripts/9-eedec13766.chunk.js +1 -0
- package/dist/scripts/9.chunk.js +18 -0
- package/dist/scripts/90.chunk.js +18 -0
- package/dist/scripts/91.chunk.js +18 -0
- package/dist/scripts/92.chunk.js +18 -0
- package/dist/scripts/bundle-5aa09ebe8d.min.js +8 -0
- package/dist/scripts/bundle-942009a26d.min.js +8 -0
- package/dist/scripts/bundle.js +9345 -0
- package/dist/scripts/bundles.json +2 -2
- package/dist/scripts/polyfills-1ff4d28da8.min.js +1 -0
- package/dist/scripts/polyfills.js +2694 -0
- package/package.json +3 -3
- package/dist/scripts/1-f569dbba40.chunk.js +0 -1
- package/dist/scripts/23-ad81f42a40.chunk.js +0 -1
- package/dist/scripts/9-72164a8e26.chunk.js +0 -1
- package/dist/scripts/bundle-6f9fb1912c.min.js +0 -8
- package/dist/scripts/polyfills-22f553c16e.min.js +0 -1
|
@@ -0,0 +1,25 @@
|
|
|
1
|
+
(window["webpackJsonp_clickview_library_editor"] = window["webpackJsonp_clickview_library_editor"] || []).push([[25],{
|
|
2
|
+
|
|
3
|
+
/***/ "./src/shared/components/typeahead-input/SearchTypeaheadComponent.ts":
|
|
4
|
+
/***/ (function(module, __webpack_exports__, __webpack_require__) {
|
|
5
|
+
|
|
6
|
+
"use strict";
|
|
7
|
+
eval("__webpack_require__.r(__webpack_exports__);\n/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, \"SearchTypeaheadComponent\", function() { return SearchTypeaheadComponent; });\n/* harmony import */ var underscore__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(\"underscore\");\n/* harmony import */ var underscore__WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(underscore__WEBPACK_IMPORTED_MODULE_0__);\n/* harmony import */ var backbone__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(\"backbone\");\n/* harmony import */ var backbone__WEBPACK_IMPORTED_MODULE_1___default = /*#__PURE__*/__webpack_require__.n(backbone__WEBPACK_IMPORTED_MODULE_1__);\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_errors_DevError__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(\"../../libs/common/src/backbone/errors/DevError.ts\");\n/* harmony import */ var libs_shared_utils_SvgHelper__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(\"../../libs/shared/src/utils/SvgHelper.ts\");\n/* harmony import */ var libs_shared_apps_search_utils_TypeaheadHelper__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__(\"../../libs/shared/src/apps/search/utils/TypeaheadHelper.ts\");\n/* harmony import */ var shared_utils__WEBPACK_IMPORTED_MODULE_6__ = __webpack_require__(\"./src/shared/utils/index.ts\");\n/* harmony import */ var _Typeahead_hbs__WEBPACK_IMPORTED_MODULE_7__ = __webpack_require__(\"./src/shared/components/typeahead-input/Typeahead.hbs\");\n/* harmony import */ var _Typeahead_hbs__WEBPACK_IMPORTED_MODULE_7___default = /*#__PURE__*/__webpack_require__.n(_Typeahead_hbs__WEBPACK_IMPORTED_MODULE_7__);\n/* harmony import */ var _typeahead_scss__WEBPACK_IMPORTED_MODULE_8__ = __webpack_require__(\"./src/shared/components/typeahead-input/typeahead.scss\");\n/* harmony import */ var _typeahead_scss__WEBPACK_IMPORTED_MODULE_8___default = /*#__PURE__*/__webpack_require__.n(_typeahead_scss__WEBPACK_IMPORTED_MODULE_8__);\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 _defineProperty(obj, key, value) { if (key in obj) { Object.defineProperty(obj, key, { value: value, enumerable: true, configurable: true, writable: true }); } else { obj[key] = value; } return 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 { Date.prototype.toString.call(Reflect.construct(Date, [], 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\nvar SearchTypeaheadComponent = /*#__PURE__*/function (_Core$Component) {\n _inherits(SearchTypeaheadComponent, _Core$Component);\n\n var _super = _createSuper(SearchTypeaheadComponent);\n\n function SearchTypeaheadComponent(options) {\n _classCallCheck(this, SearchTypeaheadComponent);\n\n return _super.call(this, options);\n }\n\n _createClass(SearchTypeaheadComponent, [{\n key: \"events\",\n value: function events() {\n return {\n 'submit': 'onSubmit',\n 'click .remove': 'onClickRemove'\n };\n }\n }, {\n key: \"initialize\",\n value: function initialize() {\n if (!this.model && !this.options.parentChannelName) libs_common_core__WEBPACK_IMPORTED_MODULE_2__[\"Core\"].ErrorHelper.throw(new libs_common_backbone_errors_DevError__WEBPACK_IMPORTED_MODULE_3__[\"DevError\"]('Either pass a model or a channelName to access the typeahead selection'));\n if (!this.model) this.model = new libs_common_core__WEBPACK_IMPORTED_MODULE_2__[\"Core\"].Model();\n /**\r\n * By default, set the input name to user the same name as our el id.\r\n * As soon as we need to add validation, this will need to be swapped out for the stickItProperty.\r\n * Or alternatively, we update the Validation cbs to not match on the model attribute name - Mike\r\n */\n\n if (!this.options.inputName) this.options.inputName = this.options.inputId;\n this.bindListeners();\n }\n }, {\n key: \"bindListeners\",\n value: function bindListeners() {\n if (this.options.parentChannelName) this.parentChannel = backbone__WEBPACK_IMPORTED_MODULE_1__[\"Radio\"].channel(this.options.parentChannelName);\n this.listenTo(this.channelName, 'typeahead:set:input', this.setInput);\n this.listenTo(this.channelName, 'typeahead:clear:input', this.clearInput);\n }\n }, {\n key: \"clearInput\",\n value: function clearInput() {\n this.getUI(\"input\").typeahead('val', null);\n }\n }, {\n key: \"setInput\",\n value: function setInput(newVal) {\n this.getUI(\"input\").typeahead('val', newVal);\n }\n /**\r\n * TODO: Add submit on enter support\r\n */\n\n }, {\n key: \"onTypeaheadSelect\",\n value: function onTypeaheadSelect(event, suggestion) {\n event.preventDefault();\n var queryString;\n if (typeof suggestion === 'string') queryString = suggestion;else queryString = suggestion.title || suggestion.name || suggestion.query;\n this.model.set(this.options.stickItProperty, queryString); // Pass the entire suggestion object back up to the parent\n\n if (this.parentChannel && this.options.selectEvent) this.parentChannel.trigger(this.options.selectEvent, suggestion);\n this.onSubmit(event);\n this.toggleRemove();\n }\n }, {\n key: \"onSubmit\",\n value: function onSubmit(event) {\n var _this = this;\n\n event.preventDefault();\n if (this.isDestroyed()) return;\n\n var _this$getTypeaheadAct = this.getTypeaheadActionOptions(),\n clearOnSelect = _this$getTypeaheadAct.clearOnSelect;\n\n if (!clearOnSelect) return;\n this.getUI(\"input\").typeahead('close');\n /**\r\n * Clear the current query after closing the typeahead.\r\n * We need to clear out all the existing suggestions too, so wait until the\r\n * next tick to ensure that the close event had properly finished.\r\n */\n\n setTimeout(function () {\n _this.model.clear();\n\n _this.clearInput();\n }, 0);\n return false;\n }\n }, {\n key: \"onClickRemove\",\n value: function onClickRemove() {\n this.model.clear();\n this.parentChannel.trigger(this.options.removeEvent, this.model);\n this.toggleRemove();\n }\n }, {\n key: \"getSources\",\n value: function getSources() {\n if (!underscore__WEBPACK_IMPORTED_MODULE_0__[\"isArray\"](this.options.typeaheadConfigs)) return libs_shared_apps_search_utils_TypeaheadHelper__WEBPACK_IMPORTED_MODULE_5__[\"TypeaheadHelper\"].getSearchSources([this.options.typeaheadConfigs]);\n var sources = libs_shared_apps_search_utils_TypeaheadHelper__WEBPACK_IMPORTED_MODULE_5__[\"TypeaheadHelper\"].getSearchSources(this.options.typeaheadConfigs);\n return sources;\n }\n }, {\n key: \"getTypeaheadOptions\",\n value: function getTypeaheadOptions() {\n var defaults = {\n minLength: 1,\n highlight: true\n };\n if (!this.options.typeaheadOptions) return defaults;\n return underscore__WEBPACK_IMPORTED_MODULE_0__[\"extend\"]({}, defaults, this.options.typeaheadOptions);\n }\n }, {\n key: \"getTypeaheadActionOptions\",\n value: function getTypeaheadActionOptions() {\n var baseOptions = {\n clearOnSelect: false\n };\n if (!underscore__WEBPACK_IMPORTED_MODULE_0__[\"isObject\"](this.options.actionOptions)) return baseOptions;\n return underscore__WEBPACK_IMPORTED_MODULE_0__[\"extend\"]({}, baseOptions, this.options.actionOptions);\n }\n }, {\n key: \"bindOptionalCallbacks\",\n value: function bindOptionalCallbacks() {\n if (!underscore__WEBPACK_IMPORTED_MODULE_0__[\"isObject\"](this.options.callbacks)) return;\n if (underscore__WEBPACK_IMPORTED_MODULE_0__[\"isFunction\"](this.options.callbacks.onRender)) this.getUI(\"input\").on('typeahead:render', underscore__WEBPACK_IMPORTED_MODULE_0__[\"bind\"](this.options.callbacks.onRender, this));\n if (underscore__WEBPACK_IMPORTED_MODULE_0__[\"isFunction\"](this.options.callbacks.onInput)) this.listenTo(this.model, \"change:\".concat(this.options.stickItProperty), this.options.callbacks.onInput);\n if (underscore__WEBPACK_IMPORTED_MODULE_0__[\"isFunction\"](this.options.callbacks.onBlur)) this.getUI(\"input\").on('blur', underscore__WEBPACK_IMPORTED_MODULE_0__[\"bind\"](this.options.callbacks.onBlur, this, this.channelName, this.options.stickItProperty));\n }\n }, {\n key: \"initTypeahead\",\n value: function initTypeahead() {\n this.getUI(\"input\").typeahead(this.getTypeaheadOptions(), this.getSources());\n }\n }, {\n key: \"initTypeaheadListeners\",\n value: function initTypeaheadListeners() {\n this.getUI(\"input\").on('typeahead:select', underscore__WEBPACK_IMPORTED_MODULE_0__[\"bind\"](this.onTypeaheadSelect, this));\n this.bindOptionalCallbacks();\n }\n }, {\n key: \"toggleRemove\",\n value: function toggleRemove() {\n if (this.shouldShowRemove()) this.$el.find('.remove').show();else this.$el.find('.remove').hide();\n }\n /**\r\n * Show the remove button if:\r\n *\r\n * Content is editable\r\n * We have a value\r\n * We have a remove event to trigger\r\n *\r\n * OR\r\n *\r\n * We're being force to show the remove button (Used by PPDD)\r\n */\n\n }, {\n key: \"shouldShowRemove\",\n value: function shouldShowRemove() {\n if (!this.options.editable) return false;\n if (this.options.forceShowRemoveButton) return true;\n return this.options.removeEvent && !!this.model.get(this.options.stickItProperty);\n }\n }, {\n key: \"viewOptions\",\n value: function viewOptions() {\n return Object.assign(Object.assign({\n styles: _typeahead_scss__WEBPACK_IMPORTED_MODULE_8___default.a\n }, this.options), {\n showRemove: this.shouldShowRemove(),\n svgRemove: libs_shared_utils_SvgHelper__WEBPACK_IMPORTED_MODULE_4__[\"SvgHelper\"].getSvg(libs_shared_utils_SvgHelper__WEBPACK_IMPORTED_MODULE_4__[\"cvSvgLibrary\"].Close)\n });\n }\n }, {\n key: \"onRender\",\n value: function onRender() {\n var _this2 = this;\n\n this.stickit();\n this.initTypeahead();\n this.initTypeaheadListeners();\n backbone__WEBPACK_IMPORTED_MODULE_1__[\"Validation\"].bind(this);\n this.toggleRemove();\n if (!this.options.autofocus) return;\n /**\r\n * Ensure the DOM has painted before focusing.\r\n *\r\n * Note: Simple use of the autofocus attribute\r\n * on the <input /> does not work for multiple re-renders\r\n * of the same input\r\n */\n\n window.requestAnimationFrame(function () {\n _this2.getUI('input').focus();\n });\n }\n }, {\n key: \"onClose\",\n value: function onClose() {\n this.getUI('input').off();\n this.unstickit();\n backbone__WEBPACK_IMPORTED_MODULE_1__[\"Validation\"].unbind(this);\n }\n }, {\n key: \"name\",\n get: function get() {\n return 'SearchTypeaheadComponent';\n }\n }, {\n key: \"template\",\n get: function get() {\n return _Typeahead_hbs__WEBPACK_IMPORTED_MODULE_7___default.a;\n }\n }, {\n key: \"className\",\n get: function get() {\n return \"search-container \".concat(_typeahead_scss__WEBPACK_IMPORTED_MODULE_8___default.a.typeaheadContainer, \" mb-2\");\n }\n }, {\n key: \"channelName\",\n get: function get() {\n return shared_utils__WEBPACK_IMPORTED_MODULE_6__[\"RadioChannelHelper\"].generateUniqueChannelName(this);\n }\n }, {\n key: \"elements\",\n get: function get() {\n return {\n input: \"#\".concat(this.options.inputId)\n };\n }\n }, {\n key: \"defaults\",\n get: function get() {\n return {\n inputId: 'search-typeahead',\n placeholderText: 'Search',\n stickItProperty: 'name',\n selectEvent: 'select:result',\n additionalClasses: '',\n editable: true\n };\n }\n }, {\n key: \"bindings\",\n get: function get() {\n var inputName = \"[name=\".concat(this.options.inputName, \"]\");\n return _defineProperty({}, inputName, {\n observe: this.options.stickItProperty,\n setOptions: {\n validate: true\n }\n });\n }\n }]);\n\n return SearchTypeaheadComponent;\n}(libs_common_core__WEBPACK_IMPORTED_MODULE_2__[\"Core\"].Component);//# sourceURL=[module]\n//# sourceMappingURL=data:application/json;charset=utf-8;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoiLi9zcmMvc2hhcmVkL2NvbXBvbmVudHMvdHlwZWFoZWFkLWlucHV0L1NlYXJjaFR5cGVhaGVhZENvbXBvbmVudC50cy5qcyIsInNvdXJjZXMiOlsiZmlsZTovL0M6L0NsaWNrVmlldyBQcm9qZWN0cy9AY2xpY2t2aWV3L3BhY2thZ2VzL3Byb2plY3RzL2xpYnJhcnktZWRpdG9yL3NyYy9zaGFyZWQvY29tcG9uZW50cy90eXBlYWhlYWQtaW5wdXQvU2VhcmNoVHlwZWFoZWFkQ29tcG9uZW50LnRzIl0sInNvdXJjZXNDb250ZW50IjpbImltcG9ydCAqIGFzIF8gZnJvbSAndW5kZXJzY29yZSc7XHJcbmltcG9ydCB7IFJhZGlvLCBWYWxpZGF0aW9uLCBPYmplY3RIYXNoIH0gZnJvbSAnYmFja2JvbmUnO1xyXG5cclxuaW1wb3J0IHsgQ29yZSB9IGZyb20gJ2xpYnMvY29tbW9uL2NvcmUnO1xyXG5pbXBvcnQgeyBEZXZFcnJvciB9IGZyb20gJ2xpYnMvY29tbW9uL2JhY2tib25lL2Vycm9ycy9EZXZFcnJvcic7XHJcbmltcG9ydCB7IFN2Z0hlbHBlciwgY3ZTdmdMaWJyYXJ5IH0gZnJvbSAnbGlicy9zaGFyZWQvdXRpbHMvU3ZnSGVscGVyJztcclxuaW1wb3J0IHsgVHlwZWFoZWFkQ29uZmlnSGFuZGxlciwgVHlwZWFoZWFkU291cmNlSXRlbSB9IGZyb20gJ2xpYnMvc2hhcmVkL2FwcHMvc2VhcmNoL2ludGVyZmFjZXMnO1xyXG5pbXBv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typeahead-input/SearchTypeaheadComponent.ts\n");
|
|
8
|
+
|
|
9
|
+
/***/ }),
|
|
10
|
+
|
|
11
|
+
/***/ "./src/shared/components/typeahead-input/Typeahead.hbs":
|
|
12
|
+
/***/ (function(module, exports, __webpack_require__) {
|
|
13
|
+
|
|
14
|
+
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 container.escapeExpression(container.lambda(((stack1 = ((stack1 = (depth0 != null ? depth0.options : depth0)) != null ? stack1.styles : stack1)) != null ? stack1.disabled : stack1), depth0));\n},\"3\":function(container,depth0,helpers,partials,data) {\n return \"autofocus\";\n},\"5\":function(container,depth0,helpers,partials,data) {\n return \"disabled\";\n},\"compiler\":[8,\">= 4.3.0\"],\"main\":function(container,depth0,helpers,partials,data) {\n var stack1, alias1=container.propertyIsEnumerable, alias2=container.lambda, alias3=container.escapeExpression, alias4=depth0 != null ? depth0 : (container.nullContext || {});\n\n return \"<input\\r\\n name=\\\"\"\n + alias3(alias2(((stack1 = (depth0 != null ? depth0.options : depth0)) != null ? stack1.inputName : stack1), depth0))\n + \"\\\"\\r\\n type=\\\"text\\\"\\r\\n class=\\\"form-control \"\n + ((stack1 = helpers.unless.call(alias4,((stack1 = (depth0 != null ? depth0.options : depth0)) != null ? stack1.editable : stack1),{\"name\":\"unless\",\"hash\":{},\"fn\":container.program(1, data, 0),\"inverse\":container.noop,\"data\":data})) != null ? stack1 : \"\")\n + \" \"\n + alias3(alias2(((stack1 = (depth0 != null ? depth0.options : depth0)) != null ? stack1.additionalClasses : stack1), depth0))\n + \"\\\"\\r\\n id=\\\"\"\n + alias3(alias2(((stack1 = (depth0 != null ? depth0.options : depth0)) != null ? stack1.inputId : stack1), depth0))\n + \"\\\"\\r\\n autocomplete=\\\"off\\\"\\r\\n placeholder=\\\"\"\n + alias3(alias2(((stack1 = (depth0 != null ? depth0.options : depth0)) != null ? stack1.placeholderText : stack1), depth0))\n + \"\\\"\\r\\n \"\n + ((stack1 = helpers[\"if\"].call(alias4,((stack1 = (depth0 != null ? depth0.options : depth0)) != null ? stack1.autofocus : stack1),{\"name\":\"if\",\"hash\":{},\"fn\":container.program(3, data, 0),\"inverse\":container.noop,\"data\":data})) != null ? stack1 : \"\")\n + \"\\r\\n \"\n + ((stack1 = helpers.unless.call(alias4,((stack1 = (depth0 != null ? depth0.options : depth0)) != null ? stack1.editable : stack1),{\"name\":\"unless\",\"hash\":{},\"fn\":container.program(5, data, 0),\"inverse\":container.noop,\"data\":data})) != null ? stack1 : \"\")\n + \"\\r\\n></input>\\r\\n<span class=\\\"svg-container mb-2 \"\n + alias3(alias2(((stack1 = ((stack1 = (depth0 != null ? depth0.options : depth0)) != null ? stack1.styles : stack1)) != null ? stack1.svg : stack1), depth0))\n + \" remove\\\" style=\\\"display: none;\\\">\"\n + ((stack1 = alias2(((stack1 = (depth0 != null ? depth0.options : depth0)) != null ? stack1.svgRemove : stack1), depth0)) != null ? stack1 : \"\")\n + \"</span>\";\n},\"useData\":true});//# sourceURL=[module]\n//# sourceMappingURL=data:application/json;charset=utf-8;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoiLi9zcmMvc2hhcmVkL2NvbXBvbmVudHMvdHlwZWFoZWFkLWlucHV0L1R5cGVhaGVhZC5oYnMuanMiLCJzb3VyY2VzIjpbImZpbGU6Ly9DOi9DbGlja1ZpZXcgUHJvamVjdHMvQGNsaWNrdmlldy9wYWNrYWdlcy9wcm9qZWN0cy9saWJyYXJ5LWVkaXRvci9zcmMvc2hhcmVkL2NvbXBvbmVudHMvdHlwZWFoZWFkLWlucHV0L1R5cGVhaGVhZC5oYnMiXSwic291cmNlc0NvbnRlbnQiOlsidmFyIEhhbmRsZWJhcnMgPSByZXF1aXJlKCdoYW5kbGViYXJzJyk7XG5tb2R1bGUuZXhwb3J0cyA9IChIYW5kbGViYXJzWydkZWZhdWx0J10gfHwgS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KCgoc3RhY2sxID0gKChzdGFjazEgPSAoZGVwdGgwICE9IG51bGwgPyBkZXB0aDAub3B0aW9ucyA6IGRlcHRoMCkpICE9IG51bGwgPyBzdGFjazEuc3R5bGVzIDogc3RhY2sxKSkgIT0gbnVsbCA/IHN0YWNrMS5zdmcgOiBzdGFjazEpLCBkZXB0aDApKVxuICAgICsgXCIgcmVtb3ZlXFxcIiBzdHlsZT1cXFwiZGlzcGxheTogbm9uZTtcXFwiPlwiXG4gICAgKyAoKHN0YWNrMSA9IGFsaWFzMigoKHN0YWNrMSA9IChkZXB0aDAgIT0gbnVsbCA/IGRlcHRoMC5vcHRpb25zIDogZGVwdGgwKSkgIT0gbnVsbCA/IHN0YWNrMS5zdmdSZW1vdmUgOiBzdGFjazEpLCBkZXB0aDApKSAhPSBudWxsID8gc3RhY2sxIDogXCJcIilcbiAgICArIFwiPC9zcGFuPlwiO1xufSxcInVzZURhdGFcIjp0cnVlfSk7Il0sIm1hcHBpbmdzIjoiQUFBQTtBQUNBO0FBQ0E7QUFDQTtBQUNBO0FBQ0E7QUFDQTtBQUNBO0FBQ0E7QUFDQTtBQUNBO0FBQ0E7QUFDQTtBQUNBO0FBQ0E7QUFDQTtBQUNBO0FBQ0E7QUFDQTtBQUNBO0FBQ0E7QUFDQTtBQUNBO0FBQ0E7QUFDQTtBQUNBO0FBQ0E7QUFDQTtBQUNBO0FBQ0E7QUFDQTtBQUNBIiwic291cmNlUm9vdCI6IiJ9\n//# sourceURL=webpack-internal:///./src/shared/components/typeahead-input/Typeahead.hbs\n");
|
|
15
|
+
|
|
16
|
+
/***/ }),
|
|
17
|
+
|
|
18
|
+
/***/ "./src/shared/components/typeahead-input/typeahead.scss":
|
|
19
|
+
/***/ (function(module, exports, __webpack_require__) {
|
|
20
|
+
|
|
21
|
+
eval("// extracted by mini-css-extract-plugin\nmodule.exports = {\"svg\":\"cv--svg--1iL3O\",\"typeaheadContainer\":\"cv--typeaheadContainer--1SWXc\",\"disabled\":\"cv--disabled--3C2O8\"};//# sourceURL=[module]\n//# sourceMappingURL=data:application/json;charset=utf-8;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoiLi9zcmMvc2hhcmVkL2NvbXBvbmVudHMvdHlwZWFoZWFkLWlucHV0L3R5cGVhaGVhZC5zY3NzLmpzIiwic291cmNlcyI6WyJmaWxlOi8vQzovQ2xpY2tWaWV3IFByb2plY3RzL0BjbGlja3ZpZXcvcGFja2FnZXMvcHJvamVjdHMvbGlicmFyeS1lZGl0b3Ivc3JjL3NoYXJlZC9jb21wb25lbnRzL3R5cGVhaGVhZC1pbnB1dC90eXBlYWhlYWQuc2NzcyJdLCJzb3VyY2VzQ29udGVudCI6WyIvLyBleHRyYWN0ZWQgYnkgbWluaS1jc3MtZXh0cmFjdC1wbHVnaW5cbm1vZHVsZS5leHBvcnRzID0ge1wic3ZnXCI6XCJjdi0tc3ZnLS0xaUwzT1wiLFwidHlwZWFoZWFkQ29udGFpbmVyXCI6XCJjdi0tdHlwZWFoZWFkQ29udGFpbmVyLS0xU1dYY1wiLFwiZGlzYWJsZWRcIjpcImN2LS1kaXNhYmxlZC0tM0MyTzhcIn07Il0sIm1hcHBpbmdzIjoiQUFBQTtBQUNBIiwic291cmNlUm9vdCI6IiJ9\n//# sourceURL=webpack-internal:///./src/shared/components/typeahead-input/typeahead.scss\n");
|
|
22
|
+
|
|
23
|
+
/***/ })
|
|
24
|
+
|
|
25
|
+
}]);
|
|
@@ -1 +1 @@
|
|
|
1
|
-
(window.webpackJsonp_clickview_library_editor=window.webpackJsonp_clickview_library_editor||[]).push([[26],{1223:function(t,e,n){t.exports={dragItem:"_2TIZ7",svgContainer:"_3JzEU",dragText:"_1Kdwj"}},1224:function(t,e,n){var o=n(10);t.exports=(o.default||o).template({compiler:[8,">= 4.3.0"],main:function(t,e,n,o,r){t.propertyIsEnumerable;var i,a=t.lambda,c=t.escapeExpression;return'<span class="'+c(a(null!=(i=null!=(i=null!=e?e.options:e)?i.styles:i)?i.svgContainer:i,e))+' mr-2">'+(null!=(i=a(null!=(i=null!=e?e.options:e)?i.svg:i,e))?i:"")+'</span>\r\n<span class="'+c(a(null!=(i=null!=(i=null!=e?e.options:e)?i.styles:i)?i.dragText:i,e))+'">'+c(a(null!=(i=null!=e?e.options:e)?i.text:i,e))+"</span>"},useData:!0})},1229:function(t,e,n){"use strict";n.d(e,"a",(function(){return p}));var o=n(1),r=n(2),i=n(296);function a(t){return(a="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t})(t)}function c(t,e){for(var n=0;n<e.length;n++){var o=e[n];o.enumerable=o.enumerable||!1,o.configurable=!0,"value"in o&&(o.writable=!0),Object.defineProperty(t,o.key,o)}}function u(t,e){return(u=Object.setPrototypeOf||function(t,e){return t.__proto__=e,t})(t,e)}function s(t){var e=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(t){return!1}}();return function(){var n,o=f(t);if(e){var r=f(this).constructor;n=Reflect.construct(o,arguments,r)}else n=o.apply(this,arguments);return l(this,n)}}function l(t,e){return!e||"object"!==a(e)&&"function"!=typeof e?function(t){if(void 0===t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return t}(t):e}function f(t){return(f=Object.setPrototypeOf?Object.getPrototypeOf:function(t){return t.__proto__||Object.getPrototypeOf(t)})(t)}var p=function(t){!function(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function");t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,writable:!0,configurable:!0}}),e&&u(t,e)}(l,t);var e,n,r,a=s(l);function l(t){return function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,l),a.call(this,t)}return e=l,(n=[{key:"initialize",value:function(){this.listenTo(this.options.channelName,"center:dropdown",this.centerSelectedItem)}},{key:"getExtraClasses",value:function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},e=t.alignment,n=void 0===e?"left":e,o=t.extraClasses,r="dropdown-menu-".concat(n);return o&&(r="".concat(r," ").concat(o)),r}},{key:"centerSelectedItem",value:function(){var t=this.$el.find(".active");if(t.length){var e=this.$el.scrollTop()+t.position().top,n=.5*this.$el.height()+.5*t.height();this.$el.scrollTop(e-n)}}},{key:"name",get:function(){return"DropdownCollectionComponent"}},{key:"className",get:function(){return"dropdown-menu items-viewpart ".concat(this.getExtraClasses(this.options.displayOptions))}},{key:"attributes",get:function(){return{"aria-labelledby":"dropdownSelector"}}},{key:"childView",get:function(){return i.a}},{key:"childViewOptions",get:function(){var t={channelName:this.options.channelName,analyticsHelper:this.options.analyticsHelper};return o.extend(t,this.options.childOptions)}}])&&c(e.prototype,n),r&&c(e,r),l}(r.a.ComponentCollection)},1240:function(t,e,n){"use strict";var o=n(1223),r=n.n(o),i=n(1224),a=n.n(i);function c(t){return(c="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t})(t)}function u(t,e){for(var n=0;n<e.length;n++){var o=e[n];o.enumerable=o.enumerable||!1,o.configurable=!0,"value"in o&&(o.writable=!0),Object.defineProperty(t,o.key,o)}}function s(t,e){return(s=Object.setPrototypeOf||function(t,e){return t.__proto__=e,t})(t,e)}function l(t){var e=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(t){return!1}}();return function(){var n,o=p(t);if(e){var r=p(this).constructor;n=Reflect.construct(o,arguments,r)}else n=o.apply(this,arguments);return f(this,n)}}function f(t,e){return!e||"object"!==c(e)&&"function"!=typeof e?function(t){if(void 0===t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return t}(t):e}function p(t){return(p=Object.setPrototypeOf?Object.getPrototypeOf:function(t){return t.__proto__||Object.getPrototypeOf(t)})(t)}var y=function(t){!function(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function");t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,writable:!0,configurable:!0}}),e&&s(t,e)}(c,t);var e,n,o,i=l(c);function c(t){return function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,c),i.call(this,t)}return e=c,(n=[{key:"viewOptions",value:function(){return Object.assign({styles:r.a},this.options)}},{key:"name",get:function(){return"DraggableItemComponent"}},{key:"template",get:function(){return a.a}},{key:"className",get:function(){return"".concat(r.a.dragItem," p-3")}}])&&u(e.prototype,n),o&&u(e,o),c}(n(2).a.Component),d={delay:150,cursorAt:{left:-20,top:10},refreshPositions:!0};n.d(e,"c",(function(){return r.a})),n.d(e,"b",(function(){return y})),n.d(e,"a",(function(){return d}))},1245:function(t,e,n){"use strict";n.d(e,"a",(function(){return k}));var o=n(1),r=n(6),i=n(2),a=n(20),c=n(15),u=n(0),s=n(12),l=n(3),f=n(1240),p=n(187),y=n(1248),d=n.n(y);function h(t){return(h="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t})(t)}function b(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}function g(t,e){for(var n=0;n<e.length;n++){var o=e[n];o.enumerable=o.enumerable||!1,o.configurable=!0,"value"in o&&(o.writable=!0),Object.defineProperty(t,o.key,o)}}function m(t,e){return(m=Object.setPrototypeOf||function(t,e){return t.__proto__=e,t})(t,e)}function v(t){var e=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(t){return!1}}();return function(){var n,o=O(t);if(e){var r=O(this).constructor;n=Reflect.construct(o,arguments,r)}else n=o.apply(this,arguments);return w(this,n)}}function w(t,e){return!e||"object"!==h(e)&&"function"!=typeof e?function(t){if(void 0===t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return t}(t):e}function O(t){return(O=Object.setPrototypeOf?Object.getPrototypeOf:function(t){return t.__proto__||Object.getPrototypeOf(t)})(t)}var k=function(t){!function(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function");t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,writable:!0,configurable:!0}}),e&&m(t,e)}(w,t);var e,n,y,h=v(w);function w(){return b(this,w),h.apply(this,arguments)}return e=w,(n=[{key:"initialize",value:function(){this.options.model||i.a.ErrorHelper.throw(new a.a("DraggableVideoBehavior must be passed a Video model")),this.listenTo(u.w.VIDEO_DRAG_DROP,"drag:style:".concat(this.options.model.id),this.styleDragStart),this.listenTo(u.w.VIDEO_DRAG_DROP,"drag:stop",this.styleDragStop)}},{key:"helper",value:function(){var t=this.getVideoModels();return new f.b({text:t.length>1?l.a.getPhrase(this.lang,"videos",{videoCount:t.length}):t[0].get("name"),svg:c.a.getSvg(c.b.Play)}).render().el}},{key:"getSelector",value:function(){return this.view.getUI(this.options.selector)}},{key:"styleDragStart",value:function(){this.getSelector().addClass(d.a.draggingVideo)}},{key:"styleDragStop",value:function(){this.getSelector().removeClass(d.a.draggingVideo)}},{key:"start",value:function(){var t=this.getVideoModels(),e=r.Radio.channel(u.w.VIDEO_DRAG_DROP);e.trigger("drag:start",t,this.options.collectionIdentifier),o.each(t,(function(t){return e.trigger("drag:style:".concat(t.id))}))}},{key:"stop",value:function(){r.Radio.channel(u.w.VIDEO_DRAG_DROP).trigger("drag:stop")}},{key:"getVideoModels",value:function(){var t=this,e=s.a.GetSelectedModels({key:this.options.collectionIdentifier.toString(),type:p.CheckboxTypes.VIDEO_LIST,collection:this.view.model.collection});return o.any(e,(function(e){return e.id===t.view.model.id}))||(e=[this.view.model]),e.length?e:[this.view.model]}},{key:"getClassMappings",value:function(){return{"ui-draggable":f.c.draggable,"ui-draggable-disabled":f.c.disabled,"ui-draggable-handle":f.c.handle,"ui-draggable-dragging":f.c.dragging}}},{key:"onRender",value:function(){var t=this.getSelector(),e={helper:o.bind(this.helper,this),start:o.bind(this.start,this),stop:o.bind(this.stop,this)};e.classes=this.getClassMappings(),t.draggable(o.extend({},f.a,e))}},{key:"onBeforeDestroy",value:function(){var t=this.getSelector();t.draggable("instance")&&t.draggable("destroy")}},{key:"lang",get:function(){return"libraryEditor.behaviors"}}])&&g(e.prototype,n),y&&g(e,y),w}(i.a.Behavior)},1248:function(t,e,n){t.exports={draggingVideo:"_3cCHx"}},1280:function(t,e,n){"use strict";var o=n(191),r=n(1),i=n(189),a=n(0),c=n(135),u=n(293);function s(t){return(s="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t})(t)}function l(t){return function(t){if(Array.isArray(t))return f(t)}(t)||function(t){if("undefined"!=typeof Symbol&&Symbol.iterator in Object(t))return Array.from(t)}(t)||function(t,e){if(!t)return;if("string"==typeof t)return f(t,e);var n=Object.prototype.toString.call(t).slice(8,-1);"Object"===n&&t.constructor&&(n=t.constructor.name);if("Map"===n||"Set"===n)return Array.from(t);if("Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n))return f(t,e)}(t)||function(){throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function f(t,e){(null==e||e>t.length)&&(e=t.length);for(var n=0,o=new Array(e);n<e;n++)o[n]=t[n];return o}function p(t,e){for(var n=0;n<e.length;n++){var o=e[n];o.enumerable=o.enumerable||!1,o.configurable=!0,"value"in o&&(o.writable=!0),Object.defineProperty(t,o.key,o)}}function y(t,e){return(y=Object.setPrototypeOf||function(t,e){return t.__proto__=e,t})(t,e)}function d(t){var e=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(t){return!1}}();return function(){var n,o=b(t);if(e){var r=b(this).constructor;n=Reflect.construct(o,arguments,r)}else n=o.apply(this,arguments);return h(this,n)}}function h(t,e){return!e||"object"!==s(e)&&"function"!=typeof e?function(t){if(void 0===t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return t}(t):e}function b(t){return(b=Object.setPrototypeOf?Object.getPrototypeOf:function(t){return t.__proto__||Object.getPrototypeOf(t)})(t)}var g=function(t){!function(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function");t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,writable:!0,configurable:!0}}),e&&y(t,e)}(s,t);var e,n,o,i=d(s);function s(t){var e;return function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,s),(e=i.call(this,{collectionPrefix:"".concat(a.f.RECENT_VIDEOS,":collection"),cursor:t.cursor,sort:t.sort})).setAdditionalData(t),e}return e=s,(n=[{key:"setAdditionalData",value:function(t){var e=t.libraryIds,n=t.dateQueryString,o=t.subjects;e&&(this.libraryIds=e),o&&(r.isArray(o)&&o.length&&(this.subjects=o),r.isArray(o)||(this.subjects=[o]));var i=r.findWhere(u.g,{queryString:n})||u.e;this.dateOption=new c.b(i)}},{key:"toString",value:function(){var t=this.subjects&&this.subjects.length&&this.subjects.map((function(t){return escape(t.get("name"))}))||[];return[this.collectionPrefix,this.libraryIds,this.dateOption.get("from"),this.dateOption.get("to")].concat(l(t),[this.cursor]).filter(Boolean).join(":")}},{key:"toParams",value:function(){var t={};return this.libraryIds&&(t.libraryIds=this.libraryIds),this.dateOption&&(t.from=this.dateOption.get("from"),t.to=this.dateOption.get("to")),this.subjects&&(t.subjectIds=r.flatten(this.subjects.map((function(t){return t.get("subjectIds")})))),this.cursor&&(t.cursor=this.cursor),t}}])&&p(e.prototype,n),o&&p(e,o),s}(i.a);function m(t){return(m="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t})(t)}function v(t,e){for(var n=0;n<e.length;n++){var o=e[n];o.enumerable=o.enumerable||!1,o.configurable=!0,"value"in o&&(o.writable=!0),Object.defineProperty(t,o.key,o)}}function w(t,e){return(w=Object.setPrototypeOf||function(t,e){return t.__proto__=e,t})(t,e)}function O(t){var e=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(t){return!1}}();return function(){var n,o=R(t);if(e){var r=R(this).constructor;n=Reflect.construct(o,arguments,r)}else n=o.apply(this,arguments);return k(this,n)}}function k(t,e){return!e||"object"!==m(e)&&"function"!=typeof e?function(t){if(void 0===t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return t}(t):e}function R(t){return(R=Object.setPrototypeOf?Object.getPrototypeOf:function(t){return t.__proto__||Object.getPrototypeOf(t)})(t)}var _=function(t){!function(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function");t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,writable:!0,configurable:!0}}),e&&w(t,e)}(s,t);var e,n,o,i=O(s);function s(t){var e;return function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,s),(e=i.call(this,{collectionPrefix:"".concat(a.f.RECENT_SUBJECTS,":collection"),sort:t.sort})).setAdditionalData(t),e}return e=s,(n=[{key:"setAdditionalData",value:function(t){var e=t.libraryIds,n=t.dateQueryString;e&&(this.libraryIds=e);var o=r.findWhere(u.g,{queryString:n})||u.e;this.dateOption=new c.b(o)}},{key:"toString",value:function(){return[this.collectionPrefix,this.libraryIds,this.dateOption.get("from"),this.dateOption.get("to")].filter(Boolean).join(":")}},{key:"toParams",value:function(){var t={};return this.libraryIds&&(t.libraryIds=this.libraryIds),this.dateOption&&(t.from=this.dateOption.get("from"),t.to=this.dateOption.get("to")),t}}])&&v(e.prototype,n),o&&v(e,o),s}(i.a);function S(t){return(S="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t})(t)}function E(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}function P(t,e){return(P=Object.setPrototypeOf||function(t,e){return t.__proto__=e,t})(t,e)}function D(t){var e=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(t){return!1}}();return function(){var n,o=C(t);if(e){var r=C(this).constructor;n=Reflect.construct(o,arguments,r)}else n=o.apply(this,arguments);return j(this,n)}}function j(t,e){return!e||"object"!==S(e)&&"function"!=typeof e?function(t){if(void 0===t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return t}(t):e}function C(t){return(C=Object.setPrototypeOf?Object.getPrototypeOf:function(t){return t.__proto__||Object.getPrototypeOf(t)})(t)}var I=function(t){!function(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function");t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,writable:!0,configurable:!0}}),e&&P(t,e)}(n,t);var e=D(n);function n(t,o){var r=arguments.length>2&&void 0!==arguments[2]?arguments[2]:"";return E(this,n),e.call(this,{collectionPrefix:a.f.LIBRARY_FOLDERS,id:t,sort:o,cursor:r})}return n}(i.a);n.d(e,"d",(function(){return o.a})),n.d(e,"b",(function(){return g})),n.d(e,"c",(function(){return _})),n.d(e,"a",(function(){return I}))},1282:function(t,e,n){"use strict";n.d(e,"a",(function(){return d}));var o=n(1),r=n(6),i=n(2),a=n(146);function c(t){return(c="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t})(t)}function u(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}function s(t,e){for(var n=0;n<e.length;n++){var o=e[n];o.enumerable=o.enumerable||!1,o.configurable=!0,"value"in o&&(o.writable=!0),Object.defineProperty(t,o.key,o)}}function l(t,e){return(l=Object.setPrototypeOf||function(t,e){return t.__proto__=e,t})(t,e)}function f(t){var e=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(t){return!1}}();return function(){var n,o=y(t);if(e){var r=y(this).constructor;n=Reflect.construct(o,arguments,r)}else n=o.apply(this,arguments);return p(this,n)}}function p(t,e){return!e||"object"!==c(e)&&"function"!=typeof e?function(t){if(void 0===t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return t}(t):e}function y(t){return(y=Object.setPrototypeOf?Object.getPrototypeOf:function(t){return t.__proto__||Object.getPrototypeOf(t)})(t)}var d=function(t){!function(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function");t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,writable:!0,configurable:!0}}),e&&l(t,e)}(p,t);var e,n,i,c=f(p);function p(){return u(this,p),c.apply(this,arguments)}return e=p,(n=[{key:"getDroppableElement",value:function(){return this.options.ui?this.view.getUI(this.options.ui):this.$el}},{key:"drop",value:function(){var t=this;o.each(this.options.channelNames,(function(e){r.Radio.channel(e).trigger("drag:drop",t.view.model,t.options.analyticsOptions)}))}},{key:"accept",value:function(){var t=this,e=!1;return o.each(this.options.channelNames,(function(n){!0===r.Radio.channel(n).request("accept",t.view.model)&&(e=!0)})),e}},{key:"over",value:function(){var t=this;this.isHoveringOver=!0,window.setTimeout((function(){t.isHoveringOver&&t.view.trigger("open:sub:folders",a.active)}),500)}},{key:"out",value:function(){this.isHoveringOver=!1}},{key:"onRender",value:function(){var t={tolerance:"pointer",drop:o.bind(this.drop,this),accept:o.bind(this.accept,this),over:o.bind(this.over,this),out:o.bind(this.out,this)};t.classes={"ui-droppable":a.droppable,"ui-droppable-active":a.active,"ui-droppable-hover":a.hover},this.getDroppableElement().droppable(t)}},{key:"onBeforeDestroy",value:function(){this.getDroppableElement().droppable("instance")&&this.getDroppableElement().droppable("destroy")}}])&&s(e.prototype,n),i&&s(e,i),p}(i.a.Behavior)},1285:function(t,e,n){"use strict";n.d(e,"a",(function(){return m}));var o=n(1),r=n(6),i=n(2),a=n(15),c=n(0),u=n(1240),s=n(1291),l=n.n(s);function f(t){return(f="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t})(t)}function p(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}function y(t,e){for(var n=0;n<e.length;n++){var o=e[n];o.enumerable=o.enumerable||!1,o.configurable=!0,"value"in o&&(o.writable=!0),Object.defineProperty(t,o.key,o)}}function d(t,e){return(d=Object.setPrototypeOf||function(t,e){return t.__proto__=e,t})(t,e)}function h(t){var e=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(t){return!1}}();return function(){var n,o=g(t);if(e){var r=g(this).constructor;n=Reflect.construct(o,arguments,r)}else n=o.apply(this,arguments);return b(this,n)}}function b(t,e){return!e||"object"!==f(e)&&"function"!=typeof e?function(t){if(void 0===t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return t}(t):e}function g(t){return(g=Object.setPrototypeOf?Object.getPrototypeOf:function(t){return t.__proto__||Object.getPrototypeOf(t)})(t)}var m=function(t){!function(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function");t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,writable:!0,configurable:!0}}),e&&d(t,e)}(f,t);var e,n,i,s=h(f);function f(){return p(this,f),s.apply(this,arguments)}return e=f,(n=[{key:"getClassMappings",value:function(){return{"ui-draggable":u.c.draggable,"ui-draggable-handle":u.c.handle,"ui-draggable-disabled":u.c.disabled,"ui-draggable-dragging":u.c.dragging}}},{key:"helper",value:function(){return new u.b({text:this.view.model.get("name"),svg:a.a.getSvg(a.b.Folder)}).render().el}},{key:"start",value:function(){r.Radio.channel(c.w.FOLDER_DRAG_DROP).trigger("drag:start",this.view.model),this.view.$el.addClass(l.a.draggingFolder)}},{key:"stop",value:function(){r.Radio.channel(c.w.FOLDER_DRAG_DROP).trigger("drag:stop"),this.view.$el.removeClass(l.a.draggingFolder)}},{key:"onRender",value:function(){var t={helper:o.bind(this.helper,this),start:o.bind(this.start,this),stop:o.bind(this.stop,this)};t.classes=this.getClassMappings(),this.view.$el.draggable(o.extend({},u.a,t))}},{key:"onBeforeDestroy",value:function(){this.view.$el.draggable("instance")&&this.view.$el.draggable("destroy")}}])&&y(e.prototype,n),i&&y(e,i),f}(i.a.Behavior)},1289:function(t,e,n){"use strict";var o=n(2),r=n(15),i=n(82),a=n(4),c=n(42),u=n(1229),s=n(0),l=n(3),f=n(1292),p=n.n(f);function y(t){return(y="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t})(t)}function d(t,e){for(var n=0;n<e.length;n++){var o=e[n];o.enumerable=o.enumerable||!1,o.configurable=!0,"value"in o&&(o.writable=!0),Object.defineProperty(t,o.key,o)}}function h(t,e){return(h=Object.setPrototypeOf||function(t,e){return t.__proto__=e,t})(t,e)}function b(t){var e=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(t){return!1}}();return function(){var n,o=m(t);if(e){var r=m(this).constructor;n=Reflect.construct(o,arguments,r)}else n=o.apply(this,arguments);return g(this,n)}}function g(t,e){return!e||"object"!==y(e)&&"function"!=typeof e?function(t){if(void 0===t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return t}(t):e}function m(t){return(m=Object.setPrototypeOf?Object.getPrototypeOf:function(t){return t.__proto__||Object.getPrototypeOf(t)})(t)}var v=function(t){!function(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function");t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,writable:!0,configurable:!0}}),e&&h(t,e)}(f,t);var e,n,r,i=b(f);function f(t){return function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,f),i.call(this,t)}return e=f,(n=[{key:"regions",value:function(){return{items:{el:".items-region",replaceElement:!0}}}},{key:"getFolderActions",value:function(){return[{title:l.a.getPhrase(this.lang,"addSubfolder"),analyticsOptions:c.a.mergeOptions(this.options.analyticsOptions,{actionType:a.UserAction.Create,entity:a.EntityType.Folder,workflowPhase:a.WorkflowPhase.Start}),appLink:{application:s.b.LIBRARY_EDITOR,action:s.a.LibraryEditor.NEW_SUB_FOLDER,args:[this.model.get("id")]}},{title:l.a.getPhrase(this.lang,"rename"),analyticsOptions:c.a.mergeOptions(this.options.analyticsOptions,{actionType:a.UserAction.Rename,entity:a.EntityType.Folder,workflowPhase:a.WorkflowPhase.Start}),appLink:{application:s.b.LIBRARY_EDITOR,action:s.a.LibraryEditor.RENAME_FOLDER,args:[this.model.get("id")]}},{title:l.a.getPhrase(this.lang,"move"),analyticsOptions:c.a.mergeOptions(this.options.analyticsOptions,{actionType:a.UserAction.Move,entity:a.EntityType.Folder,workflowPhase:a.WorkflowPhase.Start}),appLink:{application:s.b.LIBRARY_EDITOR,action:s.a.LibraryEditor.MOVE_FOLDER,args:[this.model.get("id")]}},{title:l.a.getPhrase(this.lang,"editImages"),analyticsOptions:c.a.mergeOptions(this.options.analyticsOptions,{actionType:a.UserAction.EditAssoc,entity:a.EntityType.Folder,workflowPhase:a.WorkflowPhase.Start,descriptor:a.AssocDescriptor.Image}),appLink:{application:s.b.LIBRARY_EDITOR,action:s.a.LibraryEditor.EDIT_FOLDER_IMAGES,args:[this.model.get("id")]}},{title:l.a.getPhrase(this.lang,"generatePdf"),analyticsOptions:c.a.mergeOptions(this.options.analyticsOptions,{actionType:a.UserAction.Create,entity:a.EntityType.PDF,workflowPhase:a.WorkflowPhase.Start}),appLink:{application:s.b.LIBRARY_EDITOR,action:s.a.LibraryEditor.GENERATE_PDF,args:[this.model.get("id")]}},{title:l.a.getPhrase(this.lang,"remove"),analyticsOptions:c.a.mergeOptions(this.options.analyticsOptions,{actionType:a.UserAction.Delete,entity:a.EntityType.Folder,workflowPhase:a.WorkflowPhase.Start}),classes:"text-danger",appLink:{application:s.b.LIBRARY_EDITOR,action:s.a.LibraryEditor.DELETE_FOLDER,args:[this.model.get("id")]}}]}},{key:"onRender",value:function(){this.showChildView("items",new u.a({analyticsHelper:c.a,displayOptions:{alignment:"right"},channelName:this.channelName,collection:new o.a.Collection(this.getFolderActions()),childOptions:{isDisabled:function(){return this.model.get("disabled")}}}))}},{key:"name",get:function(){return"FolderActionsDropdownComponent"}},{key:"template",get:function(){return p.a}},{key:"lang",get:function(){return"libraryEditor.folderActionsDropdown"}},{key:"channelName",get:function(){return"".concat(this.name).concat(this.cid)}}])&&d(e.prototype,n),r&&d(e,r),f}(o.a.Component),w=n(1293),O=n.n(w),k=n(1294),R=n.n(k);function _(t){return(_="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t})(t)}function S(t,e){for(var n=0;n<e.length;n++){var o=e[n];o.enumerable=o.enumerable||!1,o.configurable=!0,"value"in o&&(o.writable=!0),Object.defineProperty(t,o.key,o)}}function E(t,e){return(E=Object.setPrototypeOf||function(t,e){return t.__proto__=e,t})(t,e)}function P(t){var e=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(t){return!1}}();return function(){var n,o=j(t);if(e){var r=j(this).constructor;n=Reflect.construct(o,arguments,r)}else n=o.apply(this,arguments);return D(this,n)}}function D(t,e){return!e||"object"!==_(e)&&"function"!=typeof e?function(t){if(void 0===t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return t}(t):e}function j(t){return(j=Object.setPrototypeOf?Object.getPrototypeOf:function(t){return t.__proto__||Object.getPrototypeOf(t)})(t)}n.d(e,"a",(function(){return C}));var C=function(t){!function(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function");t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,writable:!0,configurable:!0}}),e&&E(t,e)}(c,t);var e,n,o,a=P(c);function c(t){return function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,c),a.call(this,t)}return e=c,(n=[{key:"events",value:function(){return{"click @ui.dropdownToggle":"onClickDropdownToggle","click @ui.dropdownItem":"onClickDropdownItem"}}},{key:"regions",value:function(){return{items:{replaceElement:!0,el:".items-region"}}}},{key:"onClickDropdownToggle",value:function(){this.model instanceof i.a&&this.showChildView("items",new v({model:this.model,analyticsOptions:this.options.analyticsOptions}))}},{key:"onClickDropdownItem",value:function(t){t.stopPropagation(),t.preventDefault(),this.getUI("dropdownToggle").dropdown("toggle")}},{key:"viewOptions",value:function(){return{hasActions:this.model instanceof i.a,dropdownClass:"".concat(R.a.dropdownButton," ").concat(this.options.buttonClass),svg:r.a.getSvg(r.b.More)}}},{key:"name",get:function(){return"VideoCollectionActionsComponent"}},{key:"channelName",get:function(){return"".concat(this.name).concat(this.cid)}},{key:"className",get:function(){if(this.model instanceof i.a)return"position-absolute ".concat(this.options.overrideClasses?"":R.a.dropdownContainer," ").concat(this.options.extraClasses," ")}},{key:"elements",get:function(){return{dropdownToggle:".ui-dropdown-toggle",dropdownItem:".dropdown-item"}}},{key:"template",get:function(){return O.a}}])&&S(e.prototype,n),o&&S(e,o),c}(o.a.Component)},1291:function(t,e,n){t.exports={dragging:"_2wBn3",draggingFolder:"_1r3AS"}},1292:function(t,e,n){var o=n(10);t.exports=(o.default||o).template({compiler:[8,">= 4.3.0"],main:function(t,e,n,o,r){return'<div class="items-region"></div>'},useData:!0})},1293:function(t,e,n){var o=n(10);t.exports=(o.default||o).template({1:function(t,e,n,o,r){t.propertyIsEnumerable;var i,a=t.lambda;return'<span data-toggle="dropdown" aria-haspopup="true" aria-expanded="false" class="'+t.escapeExpression(a(null!=(i=null!=e?e.options:e)?i.dropdownClass:i,e))+' d-inline-block ui-dropdown-toggle">\r\n '+(null!=(i=a(null!=(i=null!=e?e.options:e)?i.svg:i,e))?i:"")+'\r\n</span>\r\n<div class="items-region"></div>\r\n'},compiler:[8,">= 4.3.0"],main:function(t,e,n,o,r){var i;t.propertyIsEnumerable;return null!=(i=n.if.call(null!=e?e:t.nullContext||{},null!=(i=null!=e?e.options:e)?i.hasActions:i,{name:"if",hash:{},fn:t.program(1,r,0),inverse:t.noop,data:r}))?i:""},useData:!0})},1294:function(t,e,n){t.exports={dropdownContainer:"_2F3Cz",dropdownButton:"_2TdId"}},1315:function(t,e,n){"use strict";n.d(e,"a",(function(){return w}));var o=n(2),r=n(15),i=n(4),a=n(42),c=n(1229),u=n(0),s=n(3),l=n(1316),f=n.n(l),p=n(1317),y=n.n(p);function d(t){return(d="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t})(t)}function h(t,e){for(var n=0;n<e.length;n++){var o=e[n];o.enumerable=o.enumerable||!1,o.configurable=!0,"value"in o&&(o.writable=!0),Object.defineProperty(t,o.key,o)}}function b(t,e){return(b=Object.setPrototypeOf||function(t,e){return t.__proto__=e,t})(t,e)}function g(t){var e=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(t){return!1}}();return function(){var n,o=v(t);if(e){var r=v(this).constructor;n=Reflect.construct(o,arguments,r)}else n=o.apply(this,arguments);return m(this,n)}}function m(t,e){return!e||"object"!==d(e)&&"function"!=typeof e?function(t){if(void 0===t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return t}(t):e}function v(t){return(v=Object.setPrototypeOf?Object.getPrototypeOf:function(t){return t.__proto__||Object.getPrototypeOf(t)})(t)}var w=function(t){!function(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function");t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,writable:!0,configurable:!0}}),e&&b(t,e)}(d,t);var e,n,l,p=g(d);function d(t){return function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,d),p.call(this,t)}return e=d,(n=[{key:"events",value:function(){return{"click @ui.dropdownToggle":"onClickDropdownToggle","click @ui.dropdownItem":"onClickDropdownItem"}}},{key:"regions",value:function(){return{dropdownItems:{replaceElement:!0,el:".items-region"}}}},{key:"onClickDropdownToggle",value:function(){this.showChildView("dropdownItems",new c.a({analyticsHelper:a.a,displayOptions:{alignment:"right"},channelName:this.channelName,collection:new o.a.Collection([{title:s.a.getPhrase(this.lang,"addFolder"),analyticsOptions:a.a.mergeOptions(this.options.analyticsOptions,{actionType:i.UserAction.Create,entity:i.EntityType.Folder,workflowPhase:i.WorkflowPhase.Start}),appLink:{application:u.b.LIBRARY_EDITOR,action:u.a.Shared.NEW_FOLDER,args:[this.model.get("id")]}},{title:s.a.getPhrase(this.lang,"rename"),analyticsOptions:a.a.mergeOptions(this.options.analyticsOptions,{actionType:i.UserAction.Rename,entity:i.EntityType.Library,workflowPhase:i.WorkflowPhase.Start}),appLink:{application:u.b.LIBRARY_EDITOR,action:u.a.LibraryEditor.RENAME_LIBRARY,args:[this.model.get("id")]}},{title:s.a.getPhrase(this.lang,"remove"),analyticsOptions:a.a.mergeOptions(this.options.analyticsOptions,{actionType:i.UserAction.Delete,entity:i.EntityType.Library,workflowPhase:i.WorkflowPhase.Start}),appLink:{application:u.b.LIBRARY_EDITOR,action:u.a.LibraryEditor.DELETE_LIBRARY,args:[this.model.get("id")]},classes:"text-danger"}])}))}},{key:"onClickDropdownItem",value:function(t){t.stopPropagation(),t.preventDefault(),this.getUI("dropdownToggle").dropdown("toggle")}},{key:"viewOptions",value:function(){return{dropdownClass:"".concat(y.a.dropdownButton," ").concat(this.options.buttonClass),svg:r.a.getSvg(r.b.More)}}},{key:"name",get:function(){return"LibraryActionsComponent"}},{key:"template",get:function(){return f.a}},{key:"channelName",get:function(){return"".concat(this.name).concat(this.cid)}},{key:"lang",get:function(){return"libraryEditor.libraryActions"}},{key:"className",get:function(){return"position-absolute ".concat(y.a.dropdownContainer," ").concat(this.options.extraClasses," ")}},{key:"elements",get:function(){return{dropdownToggle:".ui-dropdown-toggle",dropdownItem:".dropdown-item"}}}])&&h(e.prototype,n),l&&h(e,l),d}(o.a.Component)},1316:function(t,e,n){var o=n(10);t.exports=(o.default||o).template({compiler:[8,">= 4.3.0"],main:function(t,e,n,o,r){t.propertyIsEnumerable;var i,a=t.lambda;return'<span data-toggle="dropdown" aria-haspopup="true" aria-expanded="false" class="'+t.escapeExpression(a(null!=(i=null!=e?e.options:e)?i.dropdownClass:i,e))+' d-inline-block ui-dropdown-toggle">\r\n '+(null!=(i=a(null!=(i=null!=e?e.options:e)?i.svg:i,e))?i:"")+'\r\n</span>\r\n<div class="items-region"></div>'},useData:!0})},1317:function(t,e,n){t.exports={dropdownContainer:"_293SV",dropdownButton:"_23YxG"}},1394:function(t,e,n){var o=n(10);t.exports=(o.default||o).template({compiler:[8,">= 4.3.0"],main:function(t,e,n,o,r){t.propertyIsEnumerable;var i,a,c=t.lambda,u=t.escapeExpression;return'<a\r\n class="d-block cursor-pointer no-decoration '+u(c(null!=(i=null!=(i=null!=e?e.options:e)?i.styles:i)?i.folder:i,e))+'"\r\n style="background-image: url(\''+u(c(null!=(i=null!=e?e.options:e)?i.imageUrl:i,e))+'\')"\r\n>\r\n <h3 class="position-absolute text-white text-center m-0">'+u("function"==typeof(a=null!=(a=n.name||(null!=e?e.name:e))?a:t.hooks.helperMissing)?a.call(null!=e?e:t.nullContext||{},{name:"name",hash:{},data:r}):a)+'</h3>\r\n</a>\r\n<div class="actions-region"></div>'},useData:!0})},1395:function(t,e,n){t.exports={folder:"_1MHyt",actions:"_3-hwy"}},1396:function(t,e,n){var o=n(10);t.exports=(o.default||o).template({compiler:[8,">= 4.3.0"],main:function(t,e,n,o,r){var i;t.propertyIsEnumerable;return'<h1 class="h3">'+t.escapeExpression("function"==typeof(i=null!=(i=n.name||(null!=e?e.name:e))?i:t.hooks.helperMissing)?i.call(null!=e?e:t.nullContext||{},{name:"name",hash:{},data:r}):i)+'</h1>\r\n<div class="folders-region"></div>\r\n<div class="actions-region"></div>'},useData:!0})},1397:function(t,e,n){t.exports={actions:"_3vCmp"}},1657:function(t,e,n){"use strict";n.r(e);var o=n(1),r=n(2),i=n(5),a=n(3),c=n(4),u=n(15),s=n(294),l=n(35),f=n(188),p=n(0),y=n(9),d=n(1280),h=n(1394),b=n.n(h),g=n(1395),m=n.n(g),v=n(12),w=n(1285),O=(n(1245),n(1282)),k=n(1289);function R(t){return(R="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t})(t)}function _(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}function S(t,e){for(var n=0;n<e.length;n++){var o=e[n];o.enumerable=o.enumerable||!1,o.configurable=!0,"value"in o&&(o.writable=!0),Object.defineProperty(t,o.key,o)}}function E(t,e,n){return e&&S(t.prototype,e),n&&S(t,n),t}function P(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function");t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,writable:!0,configurable:!0}}),e&&D(t,e)}function D(t,e){return(D=Object.setPrototypeOf||function(t,e){return t.__proto__=e,t})(t,e)}function j(t){var e=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(t){return!1}}();return function(){var n,o=I(t);if(e){var r=I(this).constructor;n=Reflect.construct(o,arguments,r)}else n=o.apply(this,arguments);return C(this,n)}}function C(t,e){return!e||"object"!==R(e)&&"function"!=typeof e?function(t){if(void 0===t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return t}(t):e}function I(t){return(I=Object.setPrototypeOf?Object.getPrototypeOf:function(t){return t.__proto__||Object.getPrototypeOf(t)})(t)}var T=function(t){P(n,t);var e=j(n);function n(t){return _(this,n),e.call(this,t)}return E(n,[{key:"initialize",value:function(){this.listenTo(this.model,"change:name",this.render)}},{key:"regions",value:function(){return{actions:{el:".actions-region",replaceElement:!0}}}},{key:"viewOptions",value:function(){var t=v.g.createFolderThumbnailUrl(this.model.thumbnail,{fallbackBaseUrl:this.options.imageCdnUrl,fallbackCategoryName:this.model.get("name"),type:y.f.Thumbnails});return{styles:m.a,imageUrl:t}}},{key:"onRender",value:function(){this.showChildView("actions",new k.a({model:this.model,extraClasses:"".concat(m.a.actions," rounded-circle"),buttonClass:"text-light",analyticsOptions:{location:c.LocationContext.LibraryTiles},overrideClasses:!0}))}},{key:"name",get:function(){return"LibraryFolderItemComponent"}},{key:"template",get:function(){return b.a}},{key:"className",get:function(){return"col-3 p-2"}},{key:"appLinks",get:function(){return{a:{application:p.b.LIBRARY_EDITOR,action:p.a.LibraryEditor.FOLDER,args:[this.model.get("id")]}}}},{key:"behaviors",get:function(){return[{behaviorClass:O.a,channelNames:[p.w.VIDEO_DRAG_DROP,p.w.FOLDER_DRAG_DROP],analyticsOptions:{location:c.LocationContext.LibraryTiles}},{behaviorClass:w.a}]}}]),n}(r.a.Component),x=function(t){P(n,t);var e=j(n);function n(t){return _(this,n),e.call(this,t)}return E(n,[{key:"name",get:function(){return"LibraryFolderListComponent"}},{key:"className",get:function(){return"row"}},{key:"childView",get:function(){return T}},{key:"childViewOptions",get:function(){return this.options.childOptions}}]),n}(r.a.ComponentCollection),L=n(1315),A=n(1396),F=n.n(A),B=n(1397),N=n.n(B);function V(t){return(V="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t})(t)}function U(t,e){for(var n=0;n<e.length;n++){var o=e[n];o.enumerable=o.enumerable||!1,o.configurable=!0,"value"in o&&(o.writable=!0),Object.defineProperty(t,o.key,o)}}function M(t,e){return(M=Object.setPrototypeOf||function(t,e){return t.__proto__=e,t})(t,e)}function Y(t){var e=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(t){return!1}}();return function(){var n,o=G(t);if(e){var r=G(this).constructor;n=Reflect.construct(o,arguments,r)}else n=o.apply(this,arguments);return W(this,n)}}function W(t,e){return!e||"object"!==V(e)&&"function"!=typeof e?function(t){if(void 0===t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return t}(t):e}function G(t){return(G=Object.setPrototypeOf?Object.getPrototypeOf:function(t){return t.__proto__||Object.getPrototypeOf(t)})(t)}n.d(e,"LibraryView",(function(){return H}));var H=function(t){!function(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function");t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,writable:!0,configurable:!0}}),e&&M(t,e)}(b,t);var e,n,r,h=Y(b);function b(t){return function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,b),h.call(this,t)}return e=b,(n=[{key:"initialize",value:function(){var t=this;this.libraryDataService=i.a.getInstance(p.g.Library,this),this.listenTo(p.e.LIBRARY,"clear:library:folder:cache",(function(){t.folders=null,t.render()}))}},{key:"regions",value:function(){return{folders:{el:".folders-region",replaceElement:!0,partialLoading:y.h.LibraryFolders},actions:{el:".actions-region",replaceElement:!0}}}},{key:"renderFolders",value:function(){this.showChildView("folders",new x({collection:this.folders,childOptions:{imageCdnUrl:this.config.get("imageCdnUrl")}}))}},{key:"renderActions",value:function(){this.showChildView("actions",new L.a({model:this.model,extraClasses:"".concat(N.a.actions," rounded-circle mr-2 mt-2"),analyticsOptions:{location:c.LocationContext.Banner}}))}},{key:"bindScrollListener",value:function(){var t=this;if(!this.scrollBound){this.scrollBound=!0;var e=$(window),n=o.debounce((function(){if(e.scrollTop()+e.height()>t.$el.offset().top+t.$el.height()&&t.currentIdentifier){var n=t.libraryDataService.getLibraryFoldersCursors(t.currentIdentifier);n&&n.next&&t.libraryDataService.getLibraryFolders(t.getNewCollectionIdentifier(n.next),(function(e){t.folders.add(e.toJSON())}))}}),333);e.scroll(n),window.setTimeout(n,100)}}},{key:"getNewCollectionIdentifier",value:function(t){return this.currentIdentifier=new d.a(this.model.categoryTree.get("id"),l.a.AtoZ,t)}},{key:"onBeforeRender",value:function(){var t=this;if(this.model)return this.folders||this.libraryDataService.getLibraryFolders(this.getNewCollectionIdentifier(),(function(e){t.folders=e,t.render()})),!!this.model&&!!this.folders;this.libraryDataService.getLibraries((function(e){t.model=e.get(t.options.libraryId),t.listenTo(t.model,"change:name",t.render),t.render()}))}},{key:"onRender",value:function(){this.renderFolders(),this.renderActions(),this.bindScrollListener()}},{key:"name",get:function(){return"LibraryView"}},{key:"title",get:function(){return!!this.model&&this.model.get("name")}},{key:"lang",get:function(){return"libraryEditor.library"}},{key:"template",get:function(){return F.a}},{key:"className",get:function(){return"bg-white px-3 pt-3 pb-2 position-relative ".concat(N.a.library)}},{key:"behaviors",get:function(){var t=this;return[{behaviorClass:s.a,region:"folders",type:y.c.Library,shouldRender:function(){return t.model&&!t.model.children.length},componentOptions:{libraryId:this.options.libraryId,moreSvg:u.a.getSvg(u.b.More),heading:a.a.getPhrase(this.lang,"emptyStateHeading"),description:a.a.getPhrase(this.lang,"emptyStateInfo",{moreSvg:'<span class="d-inline-block svg-container align-top">\n '.concat(u.a.getSvg(u.b.More),"</span>")})},emptyStateComponents:p.h}]}},{key:"requiredResources",get:function(){return{config:f.b.config}}}])&&U(e.prototype,n),r&&U(e,r),b}(r.a.View)}}]);
|
|
1
|
+
(window.webpackJsonp_clickview_library_editor=window.webpackJsonp_clickview_library_editor||[]).push([[26],{1225:function(t,e,n){t.exports={dragItem:"_2TIZ7",svgContainer:"_3JzEU",dragText:"_1Kdwj"}},1226:function(t,e,n){var o=n(10);t.exports=(o.default||o).template({compiler:[8,">= 4.3.0"],main:function(t,e,n,o,r){t.propertyIsEnumerable;var i,a=t.lambda,c=t.escapeExpression;return'<span class="'+c(a(null!=(i=null!=(i=null!=e?e.options:e)?i.styles:i)?i.svgContainer:i,e))+' mr-2">'+(null!=(i=a(null!=(i=null!=e?e.options:e)?i.svg:i,e))?i:"")+'</span>\r\n<span class="'+c(a(null!=(i=null!=(i=null!=e?e.options:e)?i.styles:i)?i.dragText:i,e))+'">'+c(a(null!=(i=null!=e?e.options:e)?i.text:i,e))+"</span>"},useData:!0})},1231:function(t,e,n){"use strict";n.d(e,"a",(function(){return p}));var o=n(1),r=n(2),i=n(296);function a(t){return(a="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t})(t)}function c(t,e){for(var n=0;n<e.length;n++){var o=e[n];o.enumerable=o.enumerable||!1,o.configurable=!0,"value"in o&&(o.writable=!0),Object.defineProperty(t,o.key,o)}}function u(t,e){return(u=Object.setPrototypeOf||function(t,e){return t.__proto__=e,t})(t,e)}function s(t){var e=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(t){return!1}}();return function(){var n,o=f(t);if(e){var r=f(this).constructor;n=Reflect.construct(o,arguments,r)}else n=o.apply(this,arguments);return l(this,n)}}function l(t,e){return!e||"object"!==a(e)&&"function"!=typeof e?function(t){if(void 0===t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return t}(t):e}function f(t){return(f=Object.setPrototypeOf?Object.getPrototypeOf:function(t){return t.__proto__||Object.getPrototypeOf(t)})(t)}var p=function(t){!function(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function");t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,writable:!0,configurable:!0}}),e&&u(t,e)}(l,t);var e,n,r,a=s(l);function l(t){return function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,l),a.call(this,t)}return e=l,(n=[{key:"initialize",value:function(){this.listenTo(this.options.channelName,"center:dropdown",this.centerSelectedItem)}},{key:"getExtraClasses",value:function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},e=t.alignment,n=void 0===e?"left":e,o=t.extraClasses,r="dropdown-menu-".concat(n);return o&&(r="".concat(r," ").concat(o)),r}},{key:"centerSelectedItem",value:function(){var t=this.$el.find(".active");if(t.length){var e=this.$el.scrollTop()+t.position().top,n=.5*this.$el.height()+.5*t.height();this.$el.scrollTop(e-n)}}},{key:"name",get:function(){return"DropdownCollectionComponent"}},{key:"className",get:function(){return"dropdown-menu items-viewpart ".concat(this.getExtraClasses(this.options.displayOptions))}},{key:"attributes",get:function(){return{"aria-labelledby":"dropdownSelector"}}},{key:"childView",get:function(){return i.a}},{key:"childViewOptions",get:function(){var t={channelName:this.options.channelName,analyticsHelper:this.options.analyticsHelper};return o.extend(t,this.options.childOptions)}}])&&c(e.prototype,n),r&&c(e,r),l}(r.a.ComponentCollection)},1242:function(t,e,n){"use strict";var o=n(1225),r=n.n(o),i=n(1226),a=n.n(i);function c(t){return(c="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t})(t)}function u(t,e){for(var n=0;n<e.length;n++){var o=e[n];o.enumerable=o.enumerable||!1,o.configurable=!0,"value"in o&&(o.writable=!0),Object.defineProperty(t,o.key,o)}}function s(t,e){return(s=Object.setPrototypeOf||function(t,e){return t.__proto__=e,t})(t,e)}function l(t){var e=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(t){return!1}}();return function(){var n,o=p(t);if(e){var r=p(this).constructor;n=Reflect.construct(o,arguments,r)}else n=o.apply(this,arguments);return f(this,n)}}function f(t,e){return!e||"object"!==c(e)&&"function"!=typeof e?function(t){if(void 0===t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return t}(t):e}function p(t){return(p=Object.setPrototypeOf?Object.getPrototypeOf:function(t){return t.__proto__||Object.getPrototypeOf(t)})(t)}var y=function(t){!function(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function");t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,writable:!0,configurable:!0}}),e&&s(t,e)}(c,t);var e,n,o,i=l(c);function c(t){return function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,c),i.call(this,t)}return e=c,(n=[{key:"viewOptions",value:function(){return Object.assign({styles:r.a},this.options)}},{key:"name",get:function(){return"DraggableItemComponent"}},{key:"template",get:function(){return a.a}},{key:"className",get:function(){return"".concat(r.a.dragItem," p-3")}}])&&u(e.prototype,n),o&&u(e,o),c}(n(2).a.Component),d={delay:150,cursorAt:{left:-20,top:10},refreshPositions:!0};n.d(e,"c",(function(){return r.a})),n.d(e,"b",(function(){return y})),n.d(e,"a",(function(){return d}))},1247:function(t,e,n){"use strict";n.d(e,"a",(function(){return k}));var o=n(1),r=n(6),i=n(2),a=n(20),c=n(15),u=n(0),s=n(12),l=n(3),f=n(1242),p=n(187),y=n(1250),d=n.n(y);function h(t){return(h="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t})(t)}function b(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}function g(t,e){for(var n=0;n<e.length;n++){var o=e[n];o.enumerable=o.enumerable||!1,o.configurable=!0,"value"in o&&(o.writable=!0),Object.defineProperty(t,o.key,o)}}function m(t,e){return(m=Object.setPrototypeOf||function(t,e){return t.__proto__=e,t})(t,e)}function v(t){var e=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(t){return!1}}();return function(){var n,o=O(t);if(e){var r=O(this).constructor;n=Reflect.construct(o,arguments,r)}else n=o.apply(this,arguments);return w(this,n)}}function w(t,e){return!e||"object"!==h(e)&&"function"!=typeof e?function(t){if(void 0===t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return t}(t):e}function O(t){return(O=Object.setPrototypeOf?Object.getPrototypeOf:function(t){return t.__proto__||Object.getPrototypeOf(t)})(t)}var k=function(t){!function(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function");t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,writable:!0,configurable:!0}}),e&&m(t,e)}(w,t);var e,n,y,h=v(w);function w(){return b(this,w),h.apply(this,arguments)}return e=w,(n=[{key:"initialize",value:function(){this.options.model||i.a.ErrorHelper.throw(new a.a("DraggableVideoBehavior must be passed a Video model")),this.listenTo(u.w.VIDEO_DRAG_DROP,"drag:style:".concat(this.options.model.id),this.styleDragStart),this.listenTo(u.w.VIDEO_DRAG_DROP,"drag:stop",this.styleDragStop)}},{key:"helper",value:function(){var t=this.getVideoModels();return new f.b({text:t.length>1?l.a.getPhrase(this.lang,"videos",{videoCount:t.length}):t[0].get("name"),svg:c.a.getSvg(c.b.Play)}).render().el}},{key:"getSelector",value:function(){return this.view.getUI(this.options.selector)}},{key:"styleDragStart",value:function(){this.getSelector().addClass(d.a.draggingVideo)}},{key:"styleDragStop",value:function(){this.getSelector().removeClass(d.a.draggingVideo)}},{key:"start",value:function(){var t=this.getVideoModels(),e=r.Radio.channel(u.w.VIDEO_DRAG_DROP);e.trigger("drag:start",t,this.options.collectionIdentifier),o.each(t,(function(t){return e.trigger("drag:style:".concat(t.id))}))}},{key:"stop",value:function(){r.Radio.channel(u.w.VIDEO_DRAG_DROP).trigger("drag:stop")}},{key:"getVideoModels",value:function(){var t=this,e=s.a.GetSelectedModels({key:this.options.collectionIdentifier.toString(),type:p.CheckboxTypes.VIDEO_LIST,collection:this.view.model.collection});return o.any(e,(function(e){return e.id===t.view.model.id}))||(e=[this.view.model]),e.length?e:[this.view.model]}},{key:"getClassMappings",value:function(){return{"ui-draggable":f.c.draggable,"ui-draggable-disabled":f.c.disabled,"ui-draggable-handle":f.c.handle,"ui-draggable-dragging":f.c.dragging}}},{key:"onRender",value:function(){var t=this.getSelector(),e={helper:o.bind(this.helper,this),start:o.bind(this.start,this),stop:o.bind(this.stop,this)};e.classes=this.getClassMappings(),t.draggable(o.extend({},f.a,e))}},{key:"onBeforeDestroy",value:function(){var t=this.getSelector();t.draggable("instance")&&t.draggable("destroy")}},{key:"lang",get:function(){return"libraryEditor.behaviors"}}])&&g(e.prototype,n),y&&g(e,y),w}(i.a.Behavior)},1250:function(t,e,n){t.exports={draggingVideo:"_3cCHx"}},1282:function(t,e,n){"use strict";var o=n(191),r=n(1),i=n(189),a=n(0),c=n(135),u=n(293);function s(t){return(s="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t})(t)}function l(t){return function(t){if(Array.isArray(t))return f(t)}(t)||function(t){if("undefined"!=typeof Symbol&&Symbol.iterator in Object(t))return Array.from(t)}(t)||function(t,e){if(!t)return;if("string"==typeof t)return f(t,e);var n=Object.prototype.toString.call(t).slice(8,-1);"Object"===n&&t.constructor&&(n=t.constructor.name);if("Map"===n||"Set"===n)return Array.from(t);if("Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n))return f(t,e)}(t)||function(){throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function f(t,e){(null==e||e>t.length)&&(e=t.length);for(var n=0,o=new Array(e);n<e;n++)o[n]=t[n];return o}function p(t,e){for(var n=0;n<e.length;n++){var o=e[n];o.enumerable=o.enumerable||!1,o.configurable=!0,"value"in o&&(o.writable=!0),Object.defineProperty(t,o.key,o)}}function y(t,e){return(y=Object.setPrototypeOf||function(t,e){return t.__proto__=e,t})(t,e)}function d(t){var e=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(t){return!1}}();return function(){var n,o=b(t);if(e){var r=b(this).constructor;n=Reflect.construct(o,arguments,r)}else n=o.apply(this,arguments);return h(this,n)}}function h(t,e){return!e||"object"!==s(e)&&"function"!=typeof e?function(t){if(void 0===t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return t}(t):e}function b(t){return(b=Object.setPrototypeOf?Object.getPrototypeOf:function(t){return t.__proto__||Object.getPrototypeOf(t)})(t)}var g=function(t){!function(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function");t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,writable:!0,configurable:!0}}),e&&y(t,e)}(s,t);var e,n,o,i=d(s);function s(t){var e;return function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,s),(e=i.call(this,{collectionPrefix:"".concat(a.f.RECENT_VIDEOS,":collection"),cursor:t.cursor,sort:t.sort})).setAdditionalData(t),e}return e=s,(n=[{key:"setAdditionalData",value:function(t){var e=t.libraryIds,n=t.dateQueryString,o=t.subjects;e&&(this.libraryIds=e),o&&(r.isArray(o)&&o.length&&(this.subjects=o),r.isArray(o)||(this.subjects=[o]));var i=r.findWhere(u.g,{queryString:n})||u.e;this.dateOption=new c.b(i)}},{key:"toString",value:function(){var t=this.subjects&&this.subjects.length&&this.subjects.map((function(t){return escape(t.get("name"))}))||[];return[this.collectionPrefix,this.libraryIds,this.dateOption.get("from"),this.dateOption.get("to")].concat(l(t),[this.cursor]).filter(Boolean).join(":")}},{key:"toParams",value:function(){var t={};return this.libraryIds&&(t.libraryIds=this.libraryIds),this.dateOption&&(t.from=this.dateOption.get("from"),t.to=this.dateOption.get("to")),this.subjects&&(t.subjectIds=r.flatten(this.subjects.map((function(t){return t.get("subjectIds")})))),this.cursor&&(t.cursor=this.cursor),t}}])&&p(e.prototype,n),o&&p(e,o),s}(i.a);function m(t){return(m="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t})(t)}function v(t,e){for(var n=0;n<e.length;n++){var o=e[n];o.enumerable=o.enumerable||!1,o.configurable=!0,"value"in o&&(o.writable=!0),Object.defineProperty(t,o.key,o)}}function w(t,e){return(w=Object.setPrototypeOf||function(t,e){return t.__proto__=e,t})(t,e)}function O(t){var e=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(t){return!1}}();return function(){var n,o=R(t);if(e){var r=R(this).constructor;n=Reflect.construct(o,arguments,r)}else n=o.apply(this,arguments);return k(this,n)}}function k(t,e){return!e||"object"!==m(e)&&"function"!=typeof e?function(t){if(void 0===t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return t}(t):e}function R(t){return(R=Object.setPrototypeOf?Object.getPrototypeOf:function(t){return t.__proto__||Object.getPrototypeOf(t)})(t)}var _=function(t){!function(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function");t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,writable:!0,configurable:!0}}),e&&w(t,e)}(s,t);var e,n,o,i=O(s);function s(t){var e;return function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,s),(e=i.call(this,{collectionPrefix:"".concat(a.f.RECENT_SUBJECTS,":collection"),sort:t.sort})).setAdditionalData(t),e}return e=s,(n=[{key:"setAdditionalData",value:function(t){var e=t.libraryIds,n=t.dateQueryString;e&&(this.libraryIds=e);var o=r.findWhere(u.g,{queryString:n})||u.e;this.dateOption=new c.b(o)}},{key:"toString",value:function(){return[this.collectionPrefix,this.libraryIds,this.dateOption.get("from"),this.dateOption.get("to")].filter(Boolean).join(":")}},{key:"toParams",value:function(){var t={};return this.libraryIds&&(t.libraryIds=this.libraryIds),this.dateOption&&(t.from=this.dateOption.get("from"),t.to=this.dateOption.get("to")),t}}])&&v(e.prototype,n),o&&v(e,o),s}(i.a);function S(t){return(S="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t})(t)}function E(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}function P(t,e){return(P=Object.setPrototypeOf||function(t,e){return t.__proto__=e,t})(t,e)}function D(t){var e=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(t){return!1}}();return function(){var n,o=C(t);if(e){var r=C(this).constructor;n=Reflect.construct(o,arguments,r)}else n=o.apply(this,arguments);return j(this,n)}}function j(t,e){return!e||"object"!==S(e)&&"function"!=typeof e?function(t){if(void 0===t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return t}(t):e}function C(t){return(C=Object.setPrototypeOf?Object.getPrototypeOf:function(t){return t.__proto__||Object.getPrototypeOf(t)})(t)}var I=function(t){!function(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function");t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,writable:!0,configurable:!0}}),e&&P(t,e)}(n,t);var e=D(n);function n(t,o){var r=arguments.length>2&&void 0!==arguments[2]?arguments[2]:"";return E(this,n),e.call(this,{collectionPrefix:a.f.LIBRARY_FOLDERS,id:t,sort:o,cursor:r})}return n}(i.a);n.d(e,"d",(function(){return o.a})),n.d(e,"b",(function(){return g})),n.d(e,"c",(function(){return _})),n.d(e,"a",(function(){return I}))},1284:function(t,e,n){"use strict";n.d(e,"a",(function(){return d}));var o=n(1),r=n(6),i=n(2),a=n(146);function c(t){return(c="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t})(t)}function u(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}function s(t,e){for(var n=0;n<e.length;n++){var o=e[n];o.enumerable=o.enumerable||!1,o.configurable=!0,"value"in o&&(o.writable=!0),Object.defineProperty(t,o.key,o)}}function l(t,e){return(l=Object.setPrototypeOf||function(t,e){return t.__proto__=e,t})(t,e)}function f(t){var e=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(t){return!1}}();return function(){var n,o=y(t);if(e){var r=y(this).constructor;n=Reflect.construct(o,arguments,r)}else n=o.apply(this,arguments);return p(this,n)}}function p(t,e){return!e||"object"!==c(e)&&"function"!=typeof e?function(t){if(void 0===t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return t}(t):e}function y(t){return(y=Object.setPrototypeOf?Object.getPrototypeOf:function(t){return t.__proto__||Object.getPrototypeOf(t)})(t)}var d=function(t){!function(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function");t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,writable:!0,configurable:!0}}),e&&l(t,e)}(p,t);var e,n,i,c=f(p);function p(){return u(this,p),c.apply(this,arguments)}return e=p,(n=[{key:"getDroppableElement",value:function(){return this.options.ui?this.view.getUI(this.options.ui):this.$el}},{key:"drop",value:function(){var t=this;o.each(this.options.channelNames,(function(e){r.Radio.channel(e).trigger("drag:drop",t.view.model,t.options.analyticsOptions)}))}},{key:"accept",value:function(){var t=this,e=!1;return o.each(this.options.channelNames,(function(n){!0===r.Radio.channel(n).request("accept",t.view.model)&&(e=!0)})),e}},{key:"over",value:function(){var t=this;this.isHoveringOver=!0,window.setTimeout((function(){t.isHoveringOver&&t.view.trigger("open:sub:folders",a.active)}),500)}},{key:"out",value:function(){this.isHoveringOver=!1}},{key:"onRender",value:function(){var t={tolerance:"pointer",drop:o.bind(this.drop,this),accept:o.bind(this.accept,this),over:o.bind(this.over,this),out:o.bind(this.out,this)};t.classes={"ui-droppable":a.droppable,"ui-droppable-active":a.active,"ui-droppable-hover":a.hover},this.getDroppableElement().droppable(t)}},{key:"onBeforeDestroy",value:function(){this.getDroppableElement().droppable("instance")&&this.getDroppableElement().droppable("destroy")}}])&&s(e.prototype,n),i&&s(e,i),p}(i.a.Behavior)},1287:function(t,e,n){"use strict";n.d(e,"a",(function(){return m}));var o=n(1),r=n(6),i=n(2),a=n(15),c=n(0),u=n(1242),s=n(1293),l=n.n(s);function f(t){return(f="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t})(t)}function p(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}function y(t,e){for(var n=0;n<e.length;n++){var o=e[n];o.enumerable=o.enumerable||!1,o.configurable=!0,"value"in o&&(o.writable=!0),Object.defineProperty(t,o.key,o)}}function d(t,e){return(d=Object.setPrototypeOf||function(t,e){return t.__proto__=e,t})(t,e)}function h(t){var e=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(t){return!1}}();return function(){var n,o=g(t);if(e){var r=g(this).constructor;n=Reflect.construct(o,arguments,r)}else n=o.apply(this,arguments);return b(this,n)}}function b(t,e){return!e||"object"!==f(e)&&"function"!=typeof e?function(t){if(void 0===t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return t}(t):e}function g(t){return(g=Object.setPrototypeOf?Object.getPrototypeOf:function(t){return t.__proto__||Object.getPrototypeOf(t)})(t)}var m=function(t){!function(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function");t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,writable:!0,configurable:!0}}),e&&d(t,e)}(f,t);var e,n,i,s=h(f);function f(){return p(this,f),s.apply(this,arguments)}return e=f,(n=[{key:"getClassMappings",value:function(){return{"ui-draggable":u.c.draggable,"ui-draggable-handle":u.c.handle,"ui-draggable-disabled":u.c.disabled,"ui-draggable-dragging":u.c.dragging}}},{key:"helper",value:function(){return new u.b({text:this.view.model.get("name"),svg:a.a.getSvg(a.b.Folder)}).render().el}},{key:"start",value:function(){r.Radio.channel(c.w.FOLDER_DRAG_DROP).trigger("drag:start",this.view.model),this.view.$el.addClass(l.a.draggingFolder)}},{key:"stop",value:function(){r.Radio.channel(c.w.FOLDER_DRAG_DROP).trigger("drag:stop"),this.view.$el.removeClass(l.a.draggingFolder)}},{key:"onRender",value:function(){var t={helper:o.bind(this.helper,this),start:o.bind(this.start,this),stop:o.bind(this.stop,this)};t.classes=this.getClassMappings(),this.view.$el.draggable(o.extend({},u.a,t))}},{key:"onBeforeDestroy",value:function(){this.view.$el.draggable("instance")&&this.view.$el.draggable("destroy")}}])&&y(e.prototype,n),i&&y(e,i),f}(i.a.Behavior)},1291:function(t,e,n){"use strict";var o=n(2),r=n(15),i=n(82),a=n(4),c=n(42),u=n(1231),s=n(0),l=n(3),f=n(1294),p=n.n(f);function y(t){return(y="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t})(t)}function d(t,e){for(var n=0;n<e.length;n++){var o=e[n];o.enumerable=o.enumerable||!1,o.configurable=!0,"value"in o&&(o.writable=!0),Object.defineProperty(t,o.key,o)}}function h(t,e){return(h=Object.setPrototypeOf||function(t,e){return t.__proto__=e,t})(t,e)}function b(t){var e=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(t){return!1}}();return function(){var n,o=m(t);if(e){var r=m(this).constructor;n=Reflect.construct(o,arguments,r)}else n=o.apply(this,arguments);return g(this,n)}}function g(t,e){return!e||"object"!==y(e)&&"function"!=typeof e?function(t){if(void 0===t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return t}(t):e}function m(t){return(m=Object.setPrototypeOf?Object.getPrototypeOf:function(t){return t.__proto__||Object.getPrototypeOf(t)})(t)}var v=function(t){!function(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function");t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,writable:!0,configurable:!0}}),e&&h(t,e)}(f,t);var e,n,r,i=b(f);function f(t){return function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,f),i.call(this,t)}return e=f,(n=[{key:"regions",value:function(){return{items:{el:".items-region",replaceElement:!0}}}},{key:"getFolderActions",value:function(){return[{title:l.a.getPhrase(this.lang,"addSubfolder"),analyticsOptions:c.a.mergeOptions(this.options.analyticsOptions,{actionType:a.UserAction.Create,entity:a.EntityType.Folder,workflowPhase:a.WorkflowPhase.Start}),appLink:{application:s.b.LIBRARY_EDITOR,action:s.a.LibraryEditor.NEW_SUB_FOLDER,args:[this.model.get("id")]}},{title:l.a.getPhrase(this.lang,"rename"),analyticsOptions:c.a.mergeOptions(this.options.analyticsOptions,{actionType:a.UserAction.Rename,entity:a.EntityType.Folder,workflowPhase:a.WorkflowPhase.Start}),appLink:{application:s.b.LIBRARY_EDITOR,action:s.a.LibraryEditor.RENAME_FOLDER,args:[this.model.get("id")]}},{title:l.a.getPhrase(this.lang,"move"),analyticsOptions:c.a.mergeOptions(this.options.analyticsOptions,{actionType:a.UserAction.Move,entity:a.EntityType.Folder,workflowPhase:a.WorkflowPhase.Start}),appLink:{application:s.b.LIBRARY_EDITOR,action:s.a.LibraryEditor.MOVE_FOLDER,args:[this.model.get("id")]}},{title:l.a.getPhrase(this.lang,"editImages"),analyticsOptions:c.a.mergeOptions(this.options.analyticsOptions,{actionType:a.UserAction.EditAssoc,entity:a.EntityType.Folder,workflowPhase:a.WorkflowPhase.Start,descriptor:a.AssocDescriptor.Image}),appLink:{application:s.b.LIBRARY_EDITOR,action:s.a.LibraryEditor.EDIT_FOLDER_IMAGES,args:[this.model.get("id")]}},{title:l.a.getPhrase(this.lang,"generatePdf"),analyticsOptions:c.a.mergeOptions(this.options.analyticsOptions,{actionType:a.UserAction.Create,entity:a.EntityType.PDF,workflowPhase:a.WorkflowPhase.Start}),appLink:{application:s.b.LIBRARY_EDITOR,action:s.a.LibraryEditor.GENERATE_PDF,args:[this.model.get("id")]}},{title:l.a.getPhrase(this.lang,"remove"),analyticsOptions:c.a.mergeOptions(this.options.analyticsOptions,{actionType:a.UserAction.Delete,entity:a.EntityType.Folder,workflowPhase:a.WorkflowPhase.Start}),classes:"text-danger",appLink:{application:s.b.LIBRARY_EDITOR,action:s.a.LibraryEditor.DELETE_FOLDER,args:[this.model.get("id")]}}]}},{key:"onRender",value:function(){this.showChildView("items",new u.a({analyticsHelper:c.a,displayOptions:{alignment:"right"},channelName:this.channelName,collection:new o.a.Collection(this.getFolderActions()),childOptions:{isDisabled:function(){return this.model.get("disabled")}}}))}},{key:"name",get:function(){return"FolderActionsDropdownComponent"}},{key:"template",get:function(){return p.a}},{key:"lang",get:function(){return"libraryEditor.folderActionsDropdown"}},{key:"channelName",get:function(){return"".concat(this.name).concat(this.cid)}}])&&d(e.prototype,n),r&&d(e,r),f}(o.a.Component),w=n(1295),O=n.n(w),k=n(1296),R=n.n(k);function _(t){return(_="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t})(t)}function S(t,e){for(var n=0;n<e.length;n++){var o=e[n];o.enumerable=o.enumerable||!1,o.configurable=!0,"value"in o&&(o.writable=!0),Object.defineProperty(t,o.key,o)}}function E(t,e){return(E=Object.setPrototypeOf||function(t,e){return t.__proto__=e,t})(t,e)}function P(t){var e=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(t){return!1}}();return function(){var n,o=j(t);if(e){var r=j(this).constructor;n=Reflect.construct(o,arguments,r)}else n=o.apply(this,arguments);return D(this,n)}}function D(t,e){return!e||"object"!==_(e)&&"function"!=typeof e?function(t){if(void 0===t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return t}(t):e}function j(t){return(j=Object.setPrototypeOf?Object.getPrototypeOf:function(t){return t.__proto__||Object.getPrototypeOf(t)})(t)}n.d(e,"a",(function(){return C}));var C=function(t){!function(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function");t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,writable:!0,configurable:!0}}),e&&E(t,e)}(c,t);var e,n,o,a=P(c);function c(t){return function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,c),a.call(this,t)}return e=c,(n=[{key:"events",value:function(){return{"click @ui.dropdownToggle":"onClickDropdownToggle","click @ui.dropdownItem":"onClickDropdownItem"}}},{key:"regions",value:function(){return{items:{replaceElement:!0,el:".items-region"}}}},{key:"onClickDropdownToggle",value:function(){this.model instanceof i.a&&this.showChildView("items",new v({model:this.model,analyticsOptions:this.options.analyticsOptions}))}},{key:"onClickDropdownItem",value:function(t){t.stopPropagation(),t.preventDefault(),this.getUI("dropdownToggle").dropdown("toggle")}},{key:"viewOptions",value:function(){return{hasActions:this.model instanceof i.a,dropdownClass:"".concat(R.a.dropdownButton," ").concat(this.options.buttonClass),svg:r.a.getSvg(r.b.More)}}},{key:"name",get:function(){return"VideoCollectionActionsComponent"}},{key:"channelName",get:function(){return"".concat(this.name).concat(this.cid)}},{key:"className",get:function(){if(this.model instanceof i.a)return"position-absolute ".concat(this.options.overrideClasses?"":R.a.dropdownContainer," ").concat(this.options.extraClasses," ")}},{key:"elements",get:function(){return{dropdownToggle:".ui-dropdown-toggle",dropdownItem:".dropdown-item"}}},{key:"template",get:function(){return O.a}}])&&S(e.prototype,n),o&&S(e,o),c}(o.a.Component)},1293:function(t,e,n){t.exports={dragging:"_2wBn3",draggingFolder:"_1r3AS"}},1294:function(t,e,n){var o=n(10);t.exports=(o.default||o).template({compiler:[8,">= 4.3.0"],main:function(t,e,n,o,r){return'<div class="items-region"></div>'},useData:!0})},1295:function(t,e,n){var o=n(10);t.exports=(o.default||o).template({1:function(t,e,n,o,r){t.propertyIsEnumerable;var i,a=t.lambda;return'<span data-toggle="dropdown" aria-haspopup="true" aria-expanded="false" class="'+t.escapeExpression(a(null!=(i=null!=e?e.options:e)?i.dropdownClass:i,e))+' d-inline-block ui-dropdown-toggle">\r\n '+(null!=(i=a(null!=(i=null!=e?e.options:e)?i.svg:i,e))?i:"")+'\r\n</span>\r\n<div class="items-region"></div>\r\n'},compiler:[8,">= 4.3.0"],main:function(t,e,n,o,r){var i;t.propertyIsEnumerable;return null!=(i=n.if.call(null!=e?e:t.nullContext||{},null!=(i=null!=e?e.options:e)?i.hasActions:i,{name:"if",hash:{},fn:t.program(1,r,0),inverse:t.noop,data:r}))?i:""},useData:!0})},1296:function(t,e,n){t.exports={dropdownContainer:"_2F3Cz",dropdownButton:"_2TdId"}},1317:function(t,e,n){"use strict";n.d(e,"a",(function(){return w}));var o=n(2),r=n(15),i=n(4),a=n(42),c=n(1231),u=n(0),s=n(3),l=n(1318),f=n.n(l),p=n(1319),y=n.n(p);function d(t){return(d="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t})(t)}function h(t,e){for(var n=0;n<e.length;n++){var o=e[n];o.enumerable=o.enumerable||!1,o.configurable=!0,"value"in o&&(o.writable=!0),Object.defineProperty(t,o.key,o)}}function b(t,e){return(b=Object.setPrototypeOf||function(t,e){return t.__proto__=e,t})(t,e)}function g(t){var e=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(t){return!1}}();return function(){var n,o=v(t);if(e){var r=v(this).constructor;n=Reflect.construct(o,arguments,r)}else n=o.apply(this,arguments);return m(this,n)}}function m(t,e){return!e||"object"!==d(e)&&"function"!=typeof e?function(t){if(void 0===t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return t}(t):e}function v(t){return(v=Object.setPrototypeOf?Object.getPrototypeOf:function(t){return t.__proto__||Object.getPrototypeOf(t)})(t)}var w=function(t){!function(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function");t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,writable:!0,configurable:!0}}),e&&b(t,e)}(d,t);var e,n,l,p=g(d);function d(t){return function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,d),p.call(this,t)}return e=d,(n=[{key:"events",value:function(){return{"click @ui.dropdownToggle":"onClickDropdownToggle","click @ui.dropdownItem":"onClickDropdownItem"}}},{key:"regions",value:function(){return{dropdownItems:{replaceElement:!0,el:".items-region"}}}},{key:"onClickDropdownToggle",value:function(){this.showChildView("dropdownItems",new c.a({analyticsHelper:a.a,displayOptions:{alignment:"right"},channelName:this.channelName,collection:new o.a.Collection([{title:s.a.getPhrase(this.lang,"addFolder"),analyticsOptions:a.a.mergeOptions(this.options.analyticsOptions,{actionType:i.UserAction.Create,entity:i.EntityType.Folder,workflowPhase:i.WorkflowPhase.Start}),appLink:{application:u.b.LIBRARY_EDITOR,action:u.a.Shared.NEW_FOLDER,args:[this.model.get("id")]}},{title:s.a.getPhrase(this.lang,"rename"),analyticsOptions:a.a.mergeOptions(this.options.analyticsOptions,{actionType:i.UserAction.Rename,entity:i.EntityType.Library,workflowPhase:i.WorkflowPhase.Start}),appLink:{application:u.b.LIBRARY_EDITOR,action:u.a.LibraryEditor.RENAME_LIBRARY,args:[this.model.get("id")]}},{title:s.a.getPhrase(this.lang,"remove"),analyticsOptions:a.a.mergeOptions(this.options.analyticsOptions,{actionType:i.UserAction.Delete,entity:i.EntityType.Library,workflowPhase:i.WorkflowPhase.Start}),appLink:{application:u.b.LIBRARY_EDITOR,action:u.a.LibraryEditor.DELETE_LIBRARY,args:[this.model.get("id")]},classes:"text-danger"}])}))}},{key:"onClickDropdownItem",value:function(t){t.stopPropagation(),t.preventDefault(),this.getUI("dropdownToggle").dropdown("toggle")}},{key:"viewOptions",value:function(){return{dropdownClass:"".concat(y.a.dropdownButton," ").concat(this.options.buttonClass),svg:r.a.getSvg(r.b.More)}}},{key:"name",get:function(){return"LibraryActionsComponent"}},{key:"template",get:function(){return f.a}},{key:"channelName",get:function(){return"".concat(this.name).concat(this.cid)}},{key:"lang",get:function(){return"libraryEditor.libraryActions"}},{key:"className",get:function(){return"position-absolute ".concat(y.a.dropdownContainer," ").concat(this.options.extraClasses," ")}},{key:"elements",get:function(){return{dropdownToggle:".ui-dropdown-toggle",dropdownItem:".dropdown-item"}}}])&&h(e.prototype,n),l&&h(e,l),d}(o.a.Component)},1318:function(t,e,n){var o=n(10);t.exports=(o.default||o).template({compiler:[8,">= 4.3.0"],main:function(t,e,n,o,r){t.propertyIsEnumerable;var i,a=t.lambda;return'<span data-toggle="dropdown" aria-haspopup="true" aria-expanded="false" class="'+t.escapeExpression(a(null!=(i=null!=e?e.options:e)?i.dropdownClass:i,e))+' d-inline-block ui-dropdown-toggle">\r\n '+(null!=(i=a(null!=(i=null!=e?e.options:e)?i.svg:i,e))?i:"")+'\r\n</span>\r\n<div class="items-region"></div>'},useData:!0})},1319:function(t,e,n){t.exports={dropdownContainer:"_293SV",dropdownButton:"_23YxG"}},1396:function(t,e,n){var o=n(10);t.exports=(o.default||o).template({compiler:[8,">= 4.3.0"],main:function(t,e,n,o,r){t.propertyIsEnumerable;var i,a,c=t.lambda,u=t.escapeExpression;return'<a\r\n class="d-block cursor-pointer no-decoration '+u(c(null!=(i=null!=(i=null!=e?e.options:e)?i.styles:i)?i.folder:i,e))+'"\r\n style="background-image: url(\''+u(c(null!=(i=null!=e?e.options:e)?i.imageUrl:i,e))+'\')"\r\n>\r\n <h3 class="position-absolute text-white text-center m-0">'+u("function"==typeof(a=null!=(a=n.name||(null!=e?e.name:e))?a:t.hooks.helperMissing)?a.call(null!=e?e:t.nullContext||{},{name:"name",hash:{},data:r}):a)+'</h3>\r\n</a>\r\n<div class="actions-region"></div>'},useData:!0})},1397:function(t,e,n){t.exports={folder:"_1MHyt",actions:"_3-hwy"}},1398:function(t,e,n){var o=n(10);t.exports=(o.default||o).template({compiler:[8,">= 4.3.0"],main:function(t,e,n,o,r){var i;t.propertyIsEnumerable;return'<h1 class="h3">'+t.escapeExpression("function"==typeof(i=null!=(i=n.name||(null!=e?e.name:e))?i:t.hooks.helperMissing)?i.call(null!=e?e:t.nullContext||{},{name:"name",hash:{},data:r}):i)+'</h1>\r\n<div class="folders-region"></div>\r\n<div class="actions-region"></div>'},useData:!0})},1399:function(t,e,n){t.exports={actions:"_3vCmp"}},1659:function(t,e,n){"use strict";n.r(e);var o=n(1),r=n(2),i=n(5),a=n(3),c=n(4),u=n(15),s=n(294),l=n(35),f=n(188),p=n(0),y=n(9),d=n(1282),h=n(1396),b=n.n(h),g=n(1397),m=n.n(g),v=n(12),w=n(1287),O=(n(1247),n(1284)),k=n(1291);function R(t){return(R="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t})(t)}function _(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}function S(t,e){for(var n=0;n<e.length;n++){var o=e[n];o.enumerable=o.enumerable||!1,o.configurable=!0,"value"in o&&(o.writable=!0),Object.defineProperty(t,o.key,o)}}function E(t,e,n){return e&&S(t.prototype,e),n&&S(t,n),t}function P(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function");t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,writable:!0,configurable:!0}}),e&&D(t,e)}function D(t,e){return(D=Object.setPrototypeOf||function(t,e){return t.__proto__=e,t})(t,e)}function j(t){var e=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(t){return!1}}();return function(){var n,o=I(t);if(e){var r=I(this).constructor;n=Reflect.construct(o,arguments,r)}else n=o.apply(this,arguments);return C(this,n)}}function C(t,e){return!e||"object"!==R(e)&&"function"!=typeof e?function(t){if(void 0===t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return t}(t):e}function I(t){return(I=Object.setPrototypeOf?Object.getPrototypeOf:function(t){return t.__proto__||Object.getPrototypeOf(t)})(t)}var T=function(t){P(n,t);var e=j(n);function n(t){return _(this,n),e.call(this,t)}return E(n,[{key:"initialize",value:function(){this.listenTo(this.model,"change:name",this.render)}},{key:"regions",value:function(){return{actions:{el:".actions-region",replaceElement:!0}}}},{key:"viewOptions",value:function(){var t=v.g.createFolderThumbnailUrl(this.model.thumbnail,{fallbackBaseUrl:this.options.imageCdnUrl,fallbackCategoryName:this.model.get("name"),type:y.f.Thumbnails});return{styles:m.a,imageUrl:t}}},{key:"onRender",value:function(){this.showChildView("actions",new k.a({model:this.model,extraClasses:"".concat(m.a.actions," rounded-circle"),buttonClass:"text-light",analyticsOptions:{location:c.LocationContext.LibraryTiles},overrideClasses:!0}))}},{key:"name",get:function(){return"LibraryFolderItemComponent"}},{key:"template",get:function(){return b.a}},{key:"className",get:function(){return"col-3 p-2"}},{key:"appLinks",get:function(){return{a:{application:p.b.LIBRARY_EDITOR,action:p.a.LibraryEditor.FOLDER,args:[this.model.get("id")]}}}},{key:"behaviors",get:function(){return[{behaviorClass:O.a,channelNames:[p.w.VIDEO_DRAG_DROP,p.w.FOLDER_DRAG_DROP],analyticsOptions:{location:c.LocationContext.LibraryTiles}},{behaviorClass:w.a}]}}]),n}(r.a.Component),x=function(t){P(n,t);var e=j(n);function n(t){return _(this,n),e.call(this,t)}return E(n,[{key:"name",get:function(){return"LibraryFolderListComponent"}},{key:"className",get:function(){return"row"}},{key:"childView",get:function(){return T}},{key:"childViewOptions",get:function(){return this.options.childOptions}}]),n}(r.a.ComponentCollection),L=n(1317),A=n(1398),F=n.n(A),B=n(1399),N=n.n(B);function V(t){return(V="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t})(t)}function U(t,e){for(var n=0;n<e.length;n++){var o=e[n];o.enumerable=o.enumerable||!1,o.configurable=!0,"value"in o&&(o.writable=!0),Object.defineProperty(t,o.key,o)}}function M(t,e){return(M=Object.setPrototypeOf||function(t,e){return t.__proto__=e,t})(t,e)}function Y(t){var e=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(t){return!1}}();return function(){var n,o=G(t);if(e){var r=G(this).constructor;n=Reflect.construct(o,arguments,r)}else n=o.apply(this,arguments);return W(this,n)}}function W(t,e){return!e||"object"!==V(e)&&"function"!=typeof e?function(t){if(void 0===t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return t}(t):e}function G(t){return(G=Object.setPrototypeOf?Object.getPrototypeOf:function(t){return t.__proto__||Object.getPrototypeOf(t)})(t)}n.d(e,"LibraryView",(function(){return H}));var H=function(t){!function(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function");t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,writable:!0,configurable:!0}}),e&&M(t,e)}(b,t);var e,n,r,h=Y(b);function b(t){return function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,b),h.call(this,t)}return e=b,(n=[{key:"initialize",value:function(){var t=this;this.libraryDataService=i.a.getInstance(p.g.Library,this),this.listenTo(p.e.LIBRARY,"clear:library:folder:cache",(function(){t.folders=null,t.render()}))}},{key:"regions",value:function(){return{folders:{el:".folders-region",replaceElement:!0,partialLoading:y.h.LibraryFolders},actions:{el:".actions-region",replaceElement:!0}}}},{key:"renderFolders",value:function(){this.showChildView("folders",new x({collection:this.folders,childOptions:{imageCdnUrl:this.config.get("imageCdnUrl")}}))}},{key:"renderActions",value:function(){this.showChildView("actions",new L.a({model:this.model,extraClasses:"".concat(N.a.actions," rounded-circle mr-2 mt-2"),analyticsOptions:{location:c.LocationContext.Banner}}))}},{key:"bindScrollListener",value:function(){var t=this;if(!this.scrollBound){this.scrollBound=!0;var e=$(window),n=o.debounce((function(){if(e.scrollTop()+e.height()>t.$el.offset().top+t.$el.height()&&t.currentIdentifier){var n=t.libraryDataService.getLibraryFoldersCursors(t.currentIdentifier);n&&n.next&&t.libraryDataService.getLibraryFolders(t.getNewCollectionIdentifier(n.next),(function(e){t.folders.add(e.toJSON())}))}}),333);e.scroll(n),window.setTimeout(n,100)}}},{key:"getNewCollectionIdentifier",value:function(t){return this.currentIdentifier=new d.a(this.model.categoryTree.get("id"),l.a.AtoZ,t)}},{key:"onBeforeRender",value:function(){var t=this;if(this.model)return this.folders||this.libraryDataService.getLibraryFolders(this.getNewCollectionIdentifier(),(function(e){t.folders=e,t.render()})),!!this.model&&!!this.folders;this.libraryDataService.getLibraries((function(e){t.model=e.get(t.options.libraryId),t.listenTo(t.model,"change:name",t.render),t.render()}))}},{key:"onRender",value:function(){this.renderFolders(),this.renderActions(),this.bindScrollListener()}},{key:"name",get:function(){return"LibraryView"}},{key:"title",get:function(){return!!this.model&&this.model.get("name")}},{key:"lang",get:function(){return"libraryEditor.library"}},{key:"template",get:function(){return F.a}},{key:"className",get:function(){return"bg-white px-3 pt-3 pb-2 position-relative ".concat(N.a.library)}},{key:"behaviors",get:function(){var t=this;return[{behaviorClass:s.a,region:"folders",type:y.c.Library,shouldRender:function(){return t.model&&!t.model.children.length},componentOptions:{libraryId:this.options.libraryId,moreSvg:u.a.getSvg(u.b.More),heading:a.a.getPhrase(this.lang,"emptyStateHeading"),description:a.a.getPhrase(this.lang,"emptyStateInfo",{moreSvg:'<span class="d-inline-block svg-container align-top">\n '.concat(u.a.getSvg(u.b.More),"</span>")})},emptyStateComponents:p.h}]}},{key:"requiredResources",get:function(){return{config:f.b.config}}}])&&U(e.prototype,n),r&&U(e,r),b}(r.a.View)}}]);
|
|
@@ -0,0 +1,25 @@
|
|
|
1
|
+
(window["webpackJsonp_clickview_library_editor"] = window["webpackJsonp_clickview_library_editor"] || []).push([[26],{
|
|
2
|
+
|
|
3
|
+
/***/ "./src/shared/components/video-basic-info/VideoBasicInfo.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, alias2=depth0 != null ? depth0 : (container.nullContext || {});\n\n return \"<div class=\\\"position-relative\\\">\\r\\n <h5 class=\\\"d-inline-block\\\">\"\n + container.escapeExpression((helpers.lang||(depth0 && depth0.lang)||container.hooks.helperMissing).call(alias2,\"basicInfo\",{\"name\":\"lang\",\"hash\":{},\"data\":data}))\n + \"</h5>\\r\\n\"\n + ((stack1 = helpers[\"if\"].call(alias2,((stack1 = (depth0 != null ? depth0.options : depth0)) != null ? stack1.showPublisherVideoDetails : stack1),{\"name\":\"if\",\"hash\":{},\"fn\":container.program(2, data, 0),\"inverse\":container.noop,\"data\":data})) != null ? stack1 : \"\")\n + \"</div>\\r\\n\";\n},\"2\":function(container,depth0,helpers,partials,data) {\n var stack1, alias1=container.propertyIsEnumerable, alias2=container.lambda, alias3=container.escapeExpression;\n\n return \" <a class=\\\"float-right cursor-pointer applink-publisher-video\\\">\\r\\n <span class=\\\"d-inline-block align-middle \"\n + alias3(alias2(((stack1 = ((stack1 = (depth0 != null ? depth0.options : depth0)) != null ? stack1.styles : stack1)) != null ? stack1.icon : stack1), depth0))\n + \"\\\">\"\n + ((stack1 = alias2(((stack1 = (depth0 != null ? depth0.options : depth0)) != null ? stack1.publisherArchiveSvg : stack1), depth0)) != null ? stack1 : \"\")\n + \"</span> \"\n + alias3((helpers.lang||(depth0 && depth0.lang)||container.hooks.helperMissing).call(depth0 != null ? depth0 : (container.nullContext || {}),\"viewInPublisherArchive\",{\"name\":\"lang\",\"hash\":{},\"data\":data}))\n + \"\\r\\n </a>\\r\\n\";\n},\"4\":function(container,depth0,helpers,partials,data) {\n var stack1, helper, alias1=container.propertyIsEnumerable, alias2=container.escapeExpression, alias3=depth0 != null ? depth0 : (container.nullContext || {}), alias4=container.hooks.helperMissing;\n\n return \" <div class=\\\"col-3 \"\n + alias2(container.lambda(((stack1 = ((stack1 = (depth0 != null ? depth0.options : depth0)) != null ? stack1.styles : stack1)) != null ? stack1.columnNames : stack1), depth0))\n + \"\\\">\"\n + alias2((helpers.lang||(depth0 && depth0.lang)||alias4).call(alias3,\"videoTitle\",{\"name\":\"lang\",\"hash\":{},\"data\":data}))\n + \"</div>\\r\\n <p class=\\\"col-9\\\">\"\n + alias2(((helper = (helper = helpers.name || (depth0 != null ? depth0.name : depth0)) != null ? helper : alias4),(typeof helper === \"function\" ? helper.call(alias3,{\"name\":\"name\",\"hash\":{},\"data\":data}) : helper)))\n + \"</p>\\r\\n\";\n},\"6\":function(container,depth0,helpers,partials,data) {\n var stack1, alias1=container.propertyIsEnumerable, alias2=container.lambda, alias3=container.escapeExpression;\n\n return \" <div class=\\\"col-3 \"\n + alias3(alias2(((stack1 = ((stack1 = (depth0 != null ? depth0.options : depth0)) != null ? stack1.styles : stack1)) != null ? stack1.columnNames : stack1), depth0))\n + \"\\\">\"\n + alias3((helpers.lang||(depth0 && depth0.lang)||container.hooks.helperMissing).call(depth0 != null ? depth0 : (container.nullContext || {}),\"series\",{\"name\":\"lang\",\"hash\":{},\"data\":data}))\n + \"</div>\\r\\n <div class=\\\"col-9 \"\n + alias3(alias2(((stack1 = ((stack1 = (depth0 != null ? depth0.options : depth0)) != null ? stack1.styles : stack1)) != null ? stack1.seriesContainer : stack1), depth0))\n + \"\\\"><div class=\\\"series-region\\\"></div></div>\\r\\n\";\n},\"8\":function(container,depth0,helpers,partials,data) {\n var stack1, alias1=container.propertyIsEnumerable, alias2=container.lambda, alias3=container.escapeExpression;\n\n return \" <div class=\\\"col-3 \"\n + alias3(alias2(((stack1 = ((stack1 = (depth0 != null ? depth0.options : depth0)) != null ? stack1.styles : stack1)) != null ? stack1.columnNames : stack1), depth0))\n + \"\\\">\"\n + alias3((helpers.lang||(depth0 && depth0.lang)||container.hooks.helperMissing).call(depth0 != null ? depth0 : (container.nullContext || {}),\"rating\",{\"name\":\"lang\",\"hash\":{},\"data\":data}))\n + \"</div>\\r\\n <p class=\\\"col-9\\\"><span class=\\\"p-1 badge text-white tool-tip \"\n + alias3(alias2(((stack1 = (depth0 != null ? depth0.options : depth0)) != null ? stack1.ratingClass : stack1), depth0))\n + \" \"\n + alias3(alias2(((stack1 = ((stack1 = (depth0 != null ? depth0.options : depth0)) != null ? stack1.styles : stack1)) != null ? stack1.rating : stack1), depth0))\n + \"\\\" title=\\\"\"\n + alias3(alias2(((stack1 = (depth0 != null ? depth0.rating : depth0)) != null ? stack1.name : stack1), depth0))\n + \"\\\">\"\n + alias3(alias2(((stack1 = (depth0 != null ? depth0.rating : depth0)) != null ? stack1.code : stack1), depth0))\n + \"</span></p>\\r\\n\";\n},\"10\":function(container,depth0,helpers,partials,data) {\n var stack1, alias1=container.propertyIsEnumerable, alias2=container.escapeExpression;\n\n return \" <div class=\\\"col-3 \"\n + alias2(container.lambda(((stack1 = ((stack1 = (depth0 != null ? depth0.options : depth0)) != null ? stack1.styles : stack1)) != null ? stack1.columnNames : stack1), depth0))\n + \"\\\">\"\n + alias2((helpers.lang||(depth0 && depth0.lang)||container.hooks.helperMissing).call(depth0 != null ? depth0 : (container.nullContext || {}),\"description\",{\"name\":\"lang\",\"hash\":{},\"data\":data}))\n + \"</div>\\r\\n <div class=\\\"col-9\\\">\\r\\n <div class=\\\"description-region\\\"></div>\\r\\n </div>\\r\\n\";\n},\"12\":function(container,depth0,helpers,partials,data) {\n var stack1, helper, alias1=container.propertyIsEnumerable, alias2=container.escapeExpression, alias3=depth0 != null ? depth0 : (container.nullContext || {}), alias4=container.hooks.helperMissing;\n\n return \" <div class=\\\"col-3 \"\n + alias2(container.lambda(((stack1 = ((stack1 = (depth0 != null ? depth0.options : depth0)) != null ? stack1.styles : stack1)) != null ? stack1.columnNames : stack1), depth0))\n + \"\\\">\"\n + alias2((helpers.lang||(depth0 && depth0.lang)||alias4).call(alias3,\"productionYear\",{\"name\":\"lang\",\"hash\":{},\"data\":data}))\n + \"</div>\\r\\n <p class=\\\"col-9\\\">\"\n + alias2(((helper = (helper = helpers.productionYear || (depth0 != null ? depth0.productionYear : depth0)) != null ? helper : alias4),(typeof helper === \"function\" ? helper.call(alias3,{\"name\":\"productionYear\",\"hash\":{},\"data\":data}) : helper)))\n + \"</p>\\r\\n\";\n},\"14\":function(container,depth0,helpers,partials,data) {\n var stack1, alias1=container.propertyIsEnumerable, alias2=container.lambda, alias3=container.escapeExpression, alias4=depth0 != null ? depth0 : (container.nullContext || {});\n\n return \" <div class=\\\"col-3 \"\n + alias3(alias2(((stack1 = ((stack1 = (depth0 != null ? depth0.options : depth0)) != null ? stack1.styles : stack1)) != null ? stack1.columnNames : stack1), depth0))\n + \"\\\">\"\n + alias3((helpers.lang||(depth0 && depth0.lang)||container.hooks.helperMissing).call(alias4,\"producers\",{\"name\":\"lang\",\"hash\":{},\"data\":data}))\n + \"</div>\\r\\n <div class=\\\"col-9 \"\n + alias3(alias2(((stack1 = ((stack1 = (depth0 != null ? depth0.options : depth0)) != null ? stack1.styles : stack1)) != null ? stack1.citationValues : stack1), depth0))\n + \"\\\">\\r\\n <p>\\r\\n\"\n + ((stack1 = helpers.each.call(alias4,(depth0 != null ? depth0.producers : depth0),{\"name\":\"each\",\"hash\":{},\"fn\":container.program(15, data, 0),\"inverse\":container.noop,\"data\":data})) != null ? stack1 : \"\")\n + \" </p>\\r\\n </div>\\r\\n\";\n},\"15\":function(container,depth0,helpers,partials,data) {\n var helper, alias1=container.propertyIsEnumerable;\n\n return \" <span>\"\n + container.escapeExpression(((helper = (helper = helpers.name || (depth0 != null ? depth0.name : depth0)) != null ? helper : container.hooks.helperMissing),(typeof helper === \"function\" ? helper.call(depth0 != null ? depth0 : (container.nullContext || {}),{\"name\":\"name\",\"hash\":{},\"data\":data}) : helper)))\n + \"</span>\\r\\n\";\n},\"17\":function(container,depth0,helpers,partials,data) {\n var stack1, alias1=container.propertyIsEnumerable, alias2=container.lambda, alias3=container.escapeExpression, alias4=depth0 != null ? depth0 : (container.nullContext || {});\n\n return \" <div class=\\\"col-3 \"\n + alias3(alias2(((stack1 = ((stack1 = (depth0 != null ? depth0.options : depth0)) != null ? stack1.styles : stack1)) != null ? stack1.columnNames : stack1), depth0))\n + \"\\\">\"\n + alias3((helpers.lang||(depth0 && depth0.lang)||container.hooks.helperMissing).call(alias4,\"directors\",{\"name\":\"lang\",\"hash\":{},\"data\":data}))\n + \"</div>\\r\\n <div class=\\\"col-9 \"\n + alias3(alias2(((stack1 = ((stack1 = (depth0 != null ? depth0.options : depth0)) != null ? stack1.styles : stack1)) != null ? stack1.citationValues : stack1), depth0))\n + \"\\\">\\r\\n <p>\\r\\n\"\n + ((stack1 = helpers.each.call(alias4,(depth0 != null ? depth0.directors : depth0),{\"name\":\"each\",\"hash\":{},\"fn\":container.program(15, data, 0),\"inverse\":container.noop,\"data\":data})) != null ? stack1 : \"\")\n + \" </p>\\r\\n </div>\\r\\n\";\n},\"19\":function(container,depth0,helpers,partials,data) {\n var stack1, alias1=container.propertyIsEnumerable, alias2=container.lambda, alias3=container.escapeExpression, alias4=depth0 != null ? depth0 : (container.nullContext || {});\n\n return \" <div class=\\\"col-3 \"\n + alias3(alias2(((stack1 = ((stack1 = (depth0 != null ? depth0.options : depth0)) != null ? stack1.styles : stack1)) != null ? stack1.columnNames : stack1), depth0))\n + \"\\\">\"\n + alias3((helpers.lang||(depth0 && depth0.lang)||container.hooks.helperMissing).call(alias4,\"productionCompanies\",{\"name\":\"lang\",\"hash\":{},\"data\":data}))\n + \"</div>\\r\\n <div class=\\\"col-9 \"\n + alias3(alias2(((stack1 = ((stack1 = (depth0 != null ? depth0.options : depth0)) != null ? stack1.styles : stack1)) != null ? stack1.citationValues : stack1), depth0))\n + \"\\\">\\r\\n <p>\\r\\n\"\n + ((stack1 = helpers.each.call(alias4,(depth0 != null ? depth0.productionCompanies : depth0),{\"name\":\"each\",\"hash\":{},\"fn\":container.program(15, data, 0),\"inverse\":container.noop,\"data\":data})) != null ? stack1 : \"\")\n + \" </p>\\r\\n </div>\\r\\n\";\n},\"21\":function(container,depth0,helpers,partials,data) {\n var stack1, alias1=container.propertyIsEnumerable, alias2=container.lambda, alias3=container.escapeExpression, alias4=depth0 != null ? depth0 : (container.nullContext || {});\n\n return \" <div class=\\\"col-3 \"\n + alias3(alias2(((stack1 = ((stack1 = (depth0 != null ? depth0.options : depth0)) != null ? stack1.styles : stack1)) != null ? stack1.columnNames : stack1), depth0))\n + \"\\\">\"\n + alias3((helpers.lang||(depth0 && depth0.lang)||container.hooks.helperMissing).call(alias4,\"distributors\",{\"name\":\"lang\",\"hash\":{},\"data\":data}))\n + \"</div>\\r\\n <div class=\\\"col-9 \"\n + alias3(alias2(((stack1 = ((stack1 = (depth0 != null ? depth0.options : depth0)) != null ? stack1.styles : stack1)) != null ? stack1.citationValues : stack1), depth0))\n + \"\\\">\\r\\n <p>\\r\\n\"\n + ((stack1 = helpers.each.call(alias4,(depth0 != null ? depth0.distributors : depth0),{\"name\":\"each\",\"hash\":{},\"fn\":container.program(15, data, 0),\"inverse\":container.noop,\"data\":data})) != null ? stack1 : \"\")\n + \" </p>\\r\\n </div>\\r\\n\";\n},\"23\":function(container,depth0,helpers,partials,data) {\n var stack1, alias1=container.propertyIsEnumerable;\n\n return ((stack1 = helpers[\"if\"].call(depth0 != null ? depth0 : (container.nullContext || {}),(depth0 != null ? depth0.channel : depth0),{\"name\":\"if\",\"hash\":{},\"fn\":container.program(24, data, 0),\"inverse\":container.noop,\"data\":data})) != null ? stack1 : \"\");\n},\"24\":function(container,depth0,helpers,partials,data) {\n var stack1, alias1=container.propertyIsEnumerable, alias2=container.lambda, alias3=container.escapeExpression;\n\n return \"\\r\\n <div class=\\\"col-3 \"\n + alias3(alias2(((stack1 = ((stack1 = (depth0 != null ? depth0.options : depth0)) != null ? stack1.styles : stack1)) != null ? stack1.columnNames : stack1), depth0))\n + \"\\\">\"\n + alias3((helpers.lang||(depth0 && depth0.lang)||container.hooks.helperMissing).call(depth0 != null ? depth0 : (container.nullContext || {}),\"channel\",{\"name\":\"lang\",\"hash\":{},\"data\":data}))\n + \"</div>\\r\\n <p class=\\\"col-9\\\">\"\n + alias3(alias2(((stack1 = (depth0 != null ? depth0.channel : depth0)) != null ? stack1.name : stack1), depth0))\n + \"</p>\\r\\n \";\n},\"26\":function(container,depth0,helpers,partials,data) {\n var stack1, alias1=container.propertyIsEnumerable, alias2=container.lambda, alias3=container.escapeExpression;\n\n return \" <div class=\\\"col-3 \"\n + alias3(alias2(((stack1 = ((stack1 = (depth0 != null ? depth0.options : depth0)) != null ? stack1.styles : stack1)) != null ? stack1.columnNames : stack1), depth0))\n + \"\\\">\"\n + alias3((helpers.lang||(depth0 && depth0.lang)||container.hooks.helperMissing).call(depth0 != null ? depth0 : (container.nullContext || {}),\"broadcastDate\",{\"name\":\"lang\",\"hash\":{},\"data\":data}))\n + \"</div>\\r\\n <p class=\\\"col-9\\\">\"\n + alias3(alias2(((stack1 = (depth0 != null ? depth0.options : depth0)) != null ? stack1.broadcastDate : stack1), depth0))\n + \"</p>\\r\\n\";\n},\"28\":function(container,depth0,helpers,partials,data) {\n var stack1, alias1=container.propertyIsEnumerable, alias2=container.lambda, alias3=container.escapeExpression;\n\n return \" <div class=\\\"col-3 \"\n + alias3(alias2(((stack1 = ((stack1 = (depth0 != null ? depth0.options : depth0)) != null ? stack1.styles : stack1)) != null ? stack1.columnNames : stack1), depth0))\n + \"\\\">\"\n + alias3((helpers.lang||(depth0 && depth0.lang)||container.hooks.helperMissing).call(depth0 != null ? depth0 : (container.nullContext || {}),\"subtitles\",{\"name\":\"lang\",\"hash\":{},\"data\":data}))\n + \"</div>\\r\\n <p class=\\\"col-9\\\">\"\n + alias3(alias2(((stack1 = (depth0 != null ? depth0.options : depth0)) != null ? stack1.subtitles : stack1), depth0))\n + \"</p>\\r\\n\";\n},\"compiler\":[8,\">= 4.3.0\"],\"main\":function(container,depth0,helpers,partials,data) {\n var stack1, alias1=container.propertyIsEnumerable, alias2=depth0 != null ? depth0 : (container.nullContext || {});\n\n return ((stack1 = helpers[\"if\"].call(alias2,((stack1 = (depth0 != null ? depth0.options : depth0)) != null ? stack1.showHeading : stack1),{\"name\":\"if\",\"hash\":{},\"fn\":container.program(1, data, 0),\"inverse\":container.noop,\"data\":data})) != null ? stack1 : \"\")\n + \"<div class=\\\"row mb-0\\\">\\r\\n\"\n + ((stack1 = helpers[\"if\"].call(alias2,(depth0 != null ? depth0.name : depth0),{\"name\":\"if\",\"hash\":{},\"fn\":container.program(4, data, 0),\"inverse\":container.noop,\"data\":data})) != null ? stack1 : \"\")\n + \"\\r\\n\"\n + ((stack1 = helpers[\"if\"].call(alias2,((stack1 = (depth0 != null ? depth0.series : depth0)) != null ? stack1.name : stack1),{\"name\":\"if\",\"hash\":{},\"fn\":container.program(6, data, 0),\"inverse\":container.noop,\"data\":data})) != null ? stack1 : \"\")\n + \"\\r\\n\"\n + ((stack1 = helpers[\"if\"].call(alias2,((stack1 = (depth0 != null ? depth0.rating : depth0)) != null ? stack1.code : stack1),{\"name\":\"if\",\"hash\":{},\"fn\":container.program(8, data, 0),\"inverse\":container.noop,\"data\":data})) != null ? stack1 : \"\")\n + \"\\r\\n\"\n + ((stack1 = helpers[\"if\"].call(alias2,(depth0 != null ? depth0.description : depth0),{\"name\":\"if\",\"hash\":{},\"fn\":container.program(10, data, 0),\"inverse\":container.noop,\"data\":data})) != null ? stack1 : \"\")\n + \"\\r\\n\"\n + ((stack1 = helpers[\"if\"].call(alias2,(depth0 != null ? depth0.productionYear : depth0),{\"name\":\"if\",\"hash\":{},\"fn\":container.program(12, data, 0),\"inverse\":container.noop,\"data\":data})) != null ? stack1 : \"\")\n + \"\\r\\n\"\n + ((stack1 = helpers[\"if\"].call(alias2,((stack1 = (depth0 != null ? depth0.producers : depth0)) != null ? stack1.length : stack1),{\"name\":\"if\",\"hash\":{},\"fn\":container.program(14, data, 0),\"inverse\":container.noop,\"data\":data})) != null ? stack1 : \"\")\n + \"\\r\\n\"\n + ((stack1 = helpers[\"if\"].call(alias2,((stack1 = (depth0 != null ? depth0.directors : depth0)) != null ? stack1.length : stack1),{\"name\":\"if\",\"hash\":{},\"fn\":container.program(17, data, 0),\"inverse\":container.noop,\"data\":data})) != null ? stack1 : \"\")\n + \"\\r\\n\"\n + ((stack1 = helpers[\"if\"].call(alias2,((stack1 = (depth0 != null ? depth0.productionCompanies : depth0)) != null ? stack1.length : stack1),{\"name\":\"if\",\"hash\":{},\"fn\":container.program(19, data, 0),\"inverse\":container.noop,\"data\":data})) != null ? stack1 : \"\")\n + \"\\r\\n\"\n + ((stack1 = helpers[\"if\"].call(alias2,((stack1 = (depth0 != null ? depth0.distributors : depth0)) != null ? stack1.length : stack1),{\"name\":\"if\",\"hash\":{},\"fn\":container.program(21, data, 0),\"inverse\":container.noop,\"data\":data})) != null ? stack1 : \"\")\n + \"\\r\\n \"\n + ((stack1 = helpers[\"if\"].call(alias2,((stack1 = (depth0 != null ? depth0.channel : depth0)) != null ? stack1.name : stack1),{\"name\":\"if\",\"hash\":{},\"fn\":container.program(23, data, 0),\"inverse\":container.noop,\"data\":data})) != null ? stack1 : \"\")\n + \"\\r\\n\\r\\n\"\n + ((stack1 = helpers[\"if\"].call(alias2,((stack1 = (depth0 != null ? depth0.options : depth0)) != null ? stack1.broadcastDate : stack1),{\"name\":\"if\",\"hash\":{},\"fn\":container.program(26, data, 0),\"inverse\":container.noop,\"data\":data})) != null ? stack1 : \"\")\n + \"\\r\\n\"\n + ((stack1 = helpers[\"if\"].call(alias2,((stack1 = (depth0 != null ? depth0.options : depth0)) != null ? stack1.subtitles : stack1),{\"name\":\"if\",\"hash\":{},\"fn\":container.program(28, data, 0),\"inverse\":container.noop,\"data\":data})) != null ? stack1 : \"\")\n + \"</div>\";\n},\"useData\":true});//# sourceURL=[module]\n//# sourceMappingURL=data:application/json;charset=utf-8;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoiLi9zcmMvc2hhcmVkL2NvbXBvbmVudHMvdmlkZW8tYmFzaWMtaW5mby9WaWRlb0Jhc2ljSW5mby5oYnMuanMiLCJzb3VyY2VzIjpbImZpbGU6Ly9DOi9DbGlja1ZpZXcgUHJvamVjdHMvQGNsaWNrdmlldy9wYWNrYWdlcy9wcm9qZWN0cy9saWJyYXJ5LWVkaXRvci9zcmMvc2hhcmVkL2NvbXBvbmVudHMvdmlkZW8tYmFzaWMtaW5mby9WaWRlb0Jhc2ljSW5mby5oYnMiXSwic291cmNlc0NvbnRlbnQiOlsidmFyIEhhbmRsZWJhcnMgPSByZXF1aXJlKCdoYW5kbGViYXJzJyk7XG5tb2R1bGUuZXhwb3J0cyA9IChIYW5kbGViYXJzWydkZWZhdWx0J10gfHwgSGFuZGxlYmFycykudGVtcGxhdGUoe1wiMVwiOmZ1bmN0aW9uKGNvbnRhaW5lcixkZXB0aDAsaGVscGVycyxwYXJ0aWFscyxkYXRhKSB7XG4gICAgdmFyIHN0YWNrMSwgYWxpYXMxPWNvbnRhaW5lci5wcm9wZXJ0eUlzRW51bWVyYWJsZSwgYWxpYXMyPWRlcHRoMCAhPSBudWxsID8gZGVwdGgwIDogKGNvbnRhaW5lci5udWxsQ29udGV4dCB8fCB7fSk7XG5cbiAgcmV0dXJuIFwiPGRpdiBjbGFzcz1cXFwicG9zaXRpb24tcmVsYXRpdmVcXFwiPlxcclxcbiAgPGg1IGNsYXNzPVxcXCJkLWlubGluZS1ibG9ja1xcXCI+XCJcbiAgICArIGNvbnRhaW5lci5lc2NhcGVFeHByZXNzaW9uKChoZWxwZXJzLmxhbmd8fChkZXB0aDAgJiYgZGVwdGgwLmxhbmcpfHxjb250YWluZX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FBQ0E7QUFDQTtBQUNBO0FBQ0E7QUFDQTtBQUNBO0FBQ0E7QUFDQTtBQUNBO0FBQ0E7QUFDQTtBQUNBO0FBQ0E7QUFDQTtBQUNBO0FBQ0E7QUFDQTtBQUNBO0FBQ0E7QUFDQTtBQUNBO0FBQ0E7QUFDQTtBQUNBO0FBQ0E7QUFDQTtBQUNBO0FBQ0E7QUFDQTtBQUNBO0FBQ0E7QUFDQTtBQUNBO0FBQ0E7QUFDQTtBQUNBO0FBQ0E7QUFDQTtBQUNBO0FBQ0E7QUFDQTtBQUNBO0FBQ0E7QUFDQTtBQUNBO0FBQ0E7QUFDQTtBQUNBO0FBQ0E7QUFDQTtBQUNBO0FBQ0E7QUFDQTtBQUNBO0FBQ0E7QUFDQTtBQUNBO0FBQ0E7QUFDQTtBQUNBO0FBQ0E7QUFDQTtBQUNBO0FBQ0E7QUFDQTtBQUNBO0FBQ0E7QUFDQTtBQUNBO0FBQ0E7QUFDQTtBQUNBO0FBQ0E7QUFDQTtBQUNBO0FBQ0E7QUFDQTtBQUNBO0FBQ0E7QUFDQTtBQUNBO0FBQ0E7QUFDQSIsInNvdXJjZVJvb3QiOiIifQ==\n//# sourceURL=webpack-internal:///./src/shared/components/video-basic-info/VideoBasicInfo.hbs\n");
|
|
7
|
+
|
|
8
|
+
/***/ }),
|
|
9
|
+
|
|
10
|
+
/***/ "./src/shared/components/video-basic-info/VideoBasicInfoComponent.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__, \"VideoBasicInfoComponent\", function() { return VideoBasicInfoComponent; });\n/* harmony import */ var underscore__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(\"underscore\");\n/* harmony import */ var underscore__WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(underscore__WEBPACK_IMPORTED_MODULE_0__);\n/* harmony import */ var moment__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(\"moment\");\n/* harmony import */ var moment__WEBPACK_IMPORTED_MODULE_1___default = /*#__PURE__*/__webpack_require__.n(moment__WEBPACK_IMPORTED_MODULE_1__);\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_utils_UrlHelper__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(\"../../libs/common/src/backbone/utils/UrlHelper.ts\");\n/* harmony import */ var libs_shared_utils_SvgHelper__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(\"../../libs/shared/src/utils/SvgHelper.ts\");\n/* harmony import */ var libs_shared_legacy_behaviors_tooltip_TooltipBehavior__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__(\"../../libs/shared/src/legacy/behaviors/tooltip/TooltipBehavior.ts\");\n/* harmony import */ var shared_constants__WEBPACK_IMPORTED_MODULE_6__ = __webpack_require__(\"./src/shared/constants/index.ts\");\n/* harmony import */ var shared_enums__WEBPACK_IMPORTED_MODULE_7__ = __webpack_require__(\"./src/shared/enums/index.ts\");\n/* harmony import */ var shared_components_video_description_VideoDescriptionComponent__WEBPACK_IMPORTED_MODULE_8__ = __webpack_require__(\"./src/shared/components/video-description/VideoDescriptionComponent.ts\");\n/* harmony import */ var shared_components_video_item_video_item_metadata_video_item_series_VideoItemSeriesComponent__WEBPACK_IMPORTED_MODULE_9__ = __webpack_require__(\"./src/shared/components/video-item/video-item-metadata/video-item-series/VideoItemSeriesComponent.ts\");\n/* harmony import */ var apps_library_editor_utils__WEBPACK_IMPORTED_MODULE_10__ = __webpack_require__(\"./src/apps/library-editor/utils/index.ts\");\n/* harmony import */ var _video_basic_info_scss__WEBPACK_IMPORTED_MODULE_11__ = __webpack_require__(\"./src/shared/components/video-basic-info/video-basic-info.scss\");\n/* harmony import */ var _video_basic_info_scss__WEBPACK_IMPORTED_MODULE_11___default = /*#__PURE__*/__webpack_require__.n(_video_basic_info_scss__WEBPACK_IMPORTED_MODULE_11__);\n/* harmony import */ var _VideoBasicInfo_hbs__WEBPACK_IMPORTED_MODULE_12__ = __webpack_require__(\"./src/shared/components/video-basic-info/VideoBasicInfo.hbs\");\n/* harmony import */ var _VideoBasicInfo_hbs__WEBPACK_IMPORTED_MODULE_12___default = /*#__PURE__*/__webpack_require__.n(_VideoBasicInfo_hbs__WEBPACK_IMPORTED_MODULE_12__);\n/* harmony import */ var libs_common_backbone_services_LanguageService__WEBPACK_IMPORTED_MODULE_13__ = __webpack_require__(\"../../libs/common/src/backbone/services/LanguageService.tsx\");\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 { Date.prototype.toString.call(Reflect.construct(Date, [], 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\nvar VideoBasicInfoComponent = /*#__PURE__*/function (_Core$Component) {\n _inherits(VideoBasicInfoComponent, _Core$Component);\n\n var _super = _createSuper(VideoBasicInfoComponent);\n\n function VideoBasicInfoComponent(options) {\n _classCallCheck(this, VideoBasicInfoComponent);\n\n return _super.call(this, options);\n }\n\n _createClass(VideoBasicInfoComponent, [{\n key: \"regions\",\n value: function regions() {\n return {\n description: {\n el: '.description-region',\n replaceElement: true,\n partialLoading: shared_enums__WEBPACK_IMPORTED_MODULE_7__[\"PartialLoading\"].VideoBasicInfo\n },\n series: {\n el: '.series-region',\n replaceElement: true\n }\n };\n }\n }, {\n key: \"getBroadcastDate\",\n value: function getBroadcastDate() {\n if (!this.model.get('dateBroadcast')) return '';\n return moment__WEBPACK_IMPORTED_MODULE_1__(this.model.get('dateBroadcast')).format(shared_enums__WEBPACK_IMPORTED_MODULE_7__[\"TimeType\"].FULL_YEAR);\n }\n }, {\n key: \"getSeriesUrl\",\n value: function getSeriesUrl() {\n if (!this.options.externalSeriesLink || !this.model.series) return;\n return libs_common_backbone_utils_UrlHelper__WEBPACK_IMPORTED_MODULE_3__[\"UrlHelper\"].safeUrlConcat(this.options.config.get('onlineUrl'), \"series/\".concat(this.model.series.id));\n }\n }, {\n key: \"renderSeries\",\n value: function renderSeries() {\n if (!this.model.series || !this.model.series.get('name')) return;\n this.showChildView('series', new shared_components_video_item_video_item_metadata_video_item_series_VideoItemSeriesComponent__WEBPACK_IMPORTED_MODULE_9__[\"VideoItemSeriesComponent\"]({\n model: this.model,\n highlight: false,\n seriesUrl: this.getSeriesUrl(),\n styleUppercase: false\n }));\n }\n }, {\n key: \"renderDescription\",\n value: function renderDescription() {\n if (!this.model || !this.model.get('description')) return;\n var view = new shared_components_video_description_VideoDescriptionComponent__WEBPACK_IMPORTED_MODULE_8__[\"VideoDescriptionComponent\"]({\n model: this.model,\n linkify: true,\n size: shared_components_video_description_VideoDescriptionComponent__WEBPACK_IMPORTED_MODULE_8__[\"VideoDescriptionTruncationSize\"].Large,\n truncate: this.options.truncateDescription,\n allowExpand: true\n });\n this.showChildView('description', view);\n }\n }, {\n key: \"getSubtitleLanguage\",\n value: function getSubtitleLanguage() {\n var _this = this;\n\n if (!(this.model.subtitles && this.model.get('subtitles').length)) return '';\n return underscore__WEBPACK_IMPORTED_MODULE_0__[\"uniq\"](this.model.get('subtitles').map(function (subtitle) {\n var _a;\n\n var code = subtitle.get('language');\n var fullName = CVLanguages.getFullEnglishName(code);\n return ((_a = subtitle.get('metadata')) === null || _a === void 0 ? void 0 : _a.autoGenerated) ? libs_common_backbone_services_LanguageService__WEBPACK_IMPORTED_MODULE_13__[\"LanguageService\"].getPhrase(_this.lang, 'autoGenerated', {\n name: fullName\n }) : fullName;\n })).join(', ');\n }\n }, {\n key: \"getCitationHeading\",\n value: function getCitationHeading(type, single, plural) {\n if (!this.model.get(type)) return '';\n return this.model.get(type).length > 1 ? plural : single;\n }\n }, {\n key: \"getCitationHeadings\",\n value: function getCitationHeadings() {\n return {\n productionCompaniesText: this.getCitationHeading(shared_enums__WEBPACK_IMPORTED_MODULE_7__[\"CitationType\"].ProductionCompany, 'Production Company', 'Production Companies'),\n producersText: this.getCitationHeading(shared_enums__WEBPACK_IMPORTED_MODULE_7__[\"CitationType\"].Producer, 'Producer', 'Producers'),\n disributorsText: this.getCitationHeading(shared_enums__WEBPACK_IMPORTED_MODULE_7__[\"CitationType\"].Distributor, 'Distributor', 'Distributors'),\n directorsText: this.getCitationHeading(shared_enums__WEBPACK_IMPORTED_MODULE_7__[\"CitationType\"].Director, 'Director', 'Directors')\n };\n }\n }, {\n key: \"viewOptions\",\n value: function viewOptions() {\n return Object.assign({\n styles: _video_basic_info_scss__WEBPACK_IMPORTED_MODULE_11___default.a,\n ratingClass: this.model.rating && apps_library_editor_utils__WEBPACK_IMPORTED_MODULE_10__[\"VideoDetailsHelper\"].mapRatingToClass(this.model.rating.get('value')),\n broadcastDate: this.getBroadcastDate(),\n showHeading: this.options.showHeading,\n subtitles: this.getSubtitleLanguage(),\n publisherArchiveSvg: libs_shared_utils_SvgHelper__WEBPACK_IMPORTED_MODULE_4__[\"SvgHelper\"].getSvg(libs_shared_utils_SvgHelper__WEBPACK_IMPORTED_MODULE_4__[\"cvSvgLibrary\"].PublisherArchive),\n showPublisherVideoDetails: this.options.showPublisherVideoDetails\n }, this.getCitationHeadings());\n }\n }, {\n key: \"onRender\",\n value: function onRender() {\n this.renderSeries();\n this.renderDescription();\n }\n }, {\n key: \"name\",\n get: function get() {\n return 'VideoBasicInfoComponent';\n }\n }, {\n key: \"template\",\n get: function get() {\n return _VideoBasicInfo_hbs__WEBPACK_IMPORTED_MODULE_12___default.a;\n }\n }, {\n key: \"lang\",\n get: function get() {\n return 'shared.videoBasicInfo';\n }\n }, {\n key: \"defaults\",\n get: function get() {\n return {\n truncateDescription: true\n };\n }\n }, {\n key: \"behaviors\",\n get: function get() {\n return [{\n behaviorClass: libs_shared_legacy_behaviors_tooltip_TooltipBehavior__WEBPACK_IMPORTED_MODULE_5__[\"TooltipBehavior\"],\n selector: '.tool-tip'\n }];\n }\n }, {\n key: \"appLinks\",\n get: function get() {\n return {\n '.applink-publisher-video': {\n application: shared_constants__WEBPACK_IMPORTED_MODULE_6__[\"AppChannels\"].LIBRARY_EDITOR,\n action: shared_constants__WEBPACK_IMPORTED_MODULE_6__[\"Actions\"].LibraryEditor.SHOW_PUBLISHER_VIDEO,\n args: [this.model.get('id')]\n }\n };\n }\n }]);\n\n return VideoBasicInfoComponent;\n}(libs_common_core__WEBPACK_IMPORTED_MODULE_2__[\"Core\"].Component);//# sourceURL=[module]\n//# sourceMappingURL=data:application/json;charset=utf-8;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoiLi9zcmMvc2hhcmVkL2NvbXBvbmVudHMvdmlkZW8tYmFzaWMtaW5mby9WaWRlb0Jhc2ljSW5mb0NvbXBvbmVudC50cy5qcyIsInNvdXJjZXMiOlsiZmlsZTovL0M6L0NsaWNrVmlldyBQcm9qZWN0cy9AY2xpY2t2aWV3L3BhY2thZ2VzL3Byb2plY3RzL2xpYnJhcnktZWRpdG9yL3NyYy9zaGFyZWQvY29tcG9uZW50cy92aWRlby1iYXNpYy1pbmZvL1ZpZGVvQmFzaWNJbmZvQ29tcG9uZW50LnRzIl0sInNvdXJjZXNDb250ZW50IjpbImltcG9ydCAqIGFzIF8gZnJvbSAndW5kZXJzY29yZSc7XHJcbmltcG9ydCB7IE9iamVjdEhhc2ggfSBmcm9tICdiYWNrYm9uZSc7XHJcbmltcG9ydCAqIGFzIG1vbWVudCBmcm9tICdtb21lbnQnO1xyXG5cclxuaW1wb3J0IHsgQ29yZSB9IGZyb20gJ2xpYnMvY29tbW9uL2NvcmUnO1xyXG5pbXBvcnQgeyBVcmxIZWxwZXIgfSBmcm9t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NBO0FBQ0E7QUFDQTtBQUNBO0FBUEE7QUFVQTtBQXRJQTtBQUFBO0FBQUE7QUF5SUE7QUFDQTtBQUNBO0FBM0lBO0FBQUE7QUFBQTtBQVFBO0FBQ0E7QUFUQTtBQUFBO0FBQUE7QUFZQTtBQUNBO0FBYkE7QUFBQTtBQUFBO0FBZ0JBO0FBQ0E7QUFqQkE7QUFBQTtBQUFBO0FBb0JBO0FBQ0E7QUFEQTtBQUdBO0FBdkJBO0FBQUE7QUFBQTtBQTBCQTtBQUNBO0FBQ0E7QUFGQTtBQUlBO0FBOUJBO0FBQUE7QUFBQTtBQStDQTtBQUNBO0FBQ0E7QUFDQTtBQUNBO0FBSEE7QUFEQTtBQU9BO0FBdERBO0FBQ0E7QUFEQTtBQUFBIiwic291cmNlUm9vdCI6IiJ9\n//# sourceURL=webpack-internal:///./src/shared/components/video-basic-info/VideoBasicInfoComponent.ts\n");
|
|
15
|
+
|
|
16
|
+
/***/ }),
|
|
17
|
+
|
|
18
|
+
/***/ "./src/shared/components/video-basic-info/video-basic-info.scss":
|
|
19
|
+
/***/ (function(module, exports, __webpack_require__) {
|
|
20
|
+
|
|
21
|
+
eval("// extracted by mini-css-extract-plugin\nmodule.exports = {\"columnNames\":\"cv--columnNames--1N_VT\",\"seriesContainer\":\"cv--seriesContainer--4pk2s\",\"icon\":\"cv--icon--3SoBV\",\"citationValues\":\"cv--citationValues--1nYZg\"};//# sourceURL=[module]\n//# sourceMappingURL=data:application/json;charset=utf-8;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoiLi9zcmMvc2hhcmVkL2NvbXBvbmVudHMvdmlkZW8tYmFzaWMtaW5mby92aWRlby1iYXNpYy1pbmZvLnNjc3MuanMiLCJzb3VyY2VzIjpbImZpbGU6Ly9DOi9DbGlja1ZpZXcgUHJvamVjdHMvQGNsaWNrdmlldy9wYWNrYWdlcy9wcm9qZWN0cy9saWJyYXJ5LWVkaXRvci9zcmMvc2hhcmVkL2NvbXBvbmVudHMvdmlkZW8tYmFzaWMtaW5mby92aWRlby1iYXNpYy1pbmZvLnNjc3MiXSwic291cmNlc0NvbnRlbnQiOlsiLy8gZXh0cmFjdGVkIGJ5IG1pbmktY3NzLWV4dHJhY3QtcGx1Z2luXG5tb2R1bGUuZXhwb3J0cyA9IHtcImNvbHVtbk5hbWVzXCI6XCJjdi0tY29sdW1uTmFtZXMtLTFOX1ZUXCIsXCJzZXJpZXNDb250YWluZXJcIjpcImN2LS1zZXJpZXNDb250YWluZXItLTRwazJzXCIsXCJpY29uXCI6XCJjdi0taWNvbi0tM1NvQlZcIixcImNpdGF0aW9uVmFsdWVzXCI6XCJjdi0tY2l0YXRpb25WYWx1ZXMtLTFuWVpnXCJ9OyJdLCJtYXBwaW5ncyI6IkFBQUE7QUFDQSIsInNvdXJjZVJvb3QiOiIifQ==\n//# sourceURL=webpack-internal:///./src/shared/components/video-basic-info/video-basic-info.scss\n");
|
|
22
|
+
|
|
23
|
+
/***/ })
|
|
24
|
+
|
|
25
|
+
}]);
|