@clickview/library-editor 1.8.1-dev.0 → 1.8.1-rc.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/bundles.json +3 -3
- package/dist/css/{2011-library-editor-9b9cd091d0.chunk.css → 1341-library-editor-8f2e8cbfe9.chunk.css} +3 -1
- package/dist/css/{2284-library-editor-436a0d1ce1.chunk.css → 1601-library-editor-ecad02e1a4.chunk.css} +0 -2
- package/dist/css/{2417-library-editor-1232df0f0a.chunk.css → 4000-library-editor-8150c8f4ce.chunk.css} +2 -0
- package/dist/css/{3987-library-editor-2271e5262a.chunk.css → 58-library-editor-727313a113.chunk.css} +3 -1
- package/dist/css/9379-library-editor-76fe7e394b.chunk.css +2 -0
- package/dist/css/{library-editor-app-1cd9634b7b.css → library-editor-app-8f64d67638.css} +1 -7
- package/dist/en.json +1 -1
- package/dist/scripts/1002-eedad4d1e2.chunk.js +1 -0
- package/dist/scripts/101-e0ab8c2ffa.chunk.js +1 -0
- package/dist/scripts/1010-cca9607505.chunk.js +1 -0
- package/dist/scripts/{1086-b559030dcf.chunk.js → 1086-53200b17d0.chunk.js} +1 -1
- package/dist/scripts/1216-4563d51ee5.chunk.js +1 -0
- package/dist/scripts/1269-5ece71eeb9.chunk.js +1 -0
- package/dist/scripts/1341-edc88ba644.chunk.js +1 -0
- package/dist/scripts/1364-3692b00910.chunk.js +1 -0
- package/dist/scripts/1409-d946186bd3.chunk.js +1 -0
- package/dist/scripts/1601-52f8e3cec5.chunk.js +2 -0
- package/dist/scripts/1832-fdaaff5a29.chunk.js +1 -0
- package/dist/scripts/1887-4a4581b103.chunk.js +1 -0
- package/dist/scripts/1911-2776792a06.chunk.js +1 -0
- package/dist/scripts/{1934-3b82bbbc99.chunk.js → 1934-3f8be23263.chunk.js} +1 -1
- package/dist/scripts/{243-c9fdd938fd.chunk.js → 243-5fae01d256.chunk.js} +1 -1
- package/dist/scripts/{259-e1d9ce07f4.chunk.js → 259-704ed09bf8.chunk.js} +1 -1
- package/dist/scripts/{2692-9ebe6d1ea4.chunk.js → 2692-960ba7e67f.chunk.js} +1 -1
- package/dist/scripts/{2802-160b25677d.chunk.js → 2802-b27bcc7922.chunk.js} +1 -1
- package/dist/scripts/{2803-86fc1b1e3f.chunk.js → 2803-7570954088.chunk.js} +1 -1
- package/dist/scripts/{2888-80050720b2.chunk.js → 2888-eb32d5080d.chunk.js} +1 -1
- package/dist/scripts/{299-d19e77b508.chunk.js → 299-32a3414fbe.chunk.js} +1 -1
- package/dist/scripts/{3096-ca9e2f0dfd.chunk.js → 3096-80f7168798.chunk.js} +1 -1
- package/dist/scripts/{3639-36a34d483b.chunk.js → 3639-d119eeab5a.chunk.js} +1 -1
- package/dist/scripts/{3746-46e0073a46.chunk.js → 3746-5c295544de.chunk.js} +1 -1
- package/dist/scripts/{3763-3bef6ac728.chunk.js → 3763-7bc0f591a5.chunk.js} +1 -1
- package/dist/scripts/4000-61e8eea600.chunk.js +1 -0
- package/dist/scripts/4177-c8f227c57c.chunk.js +1 -0
- package/dist/scripts/4201-95bf1e627c.chunk.js +1 -0
- package/dist/scripts/4353-eb7e1815d1.chunk.js +1 -0
- package/dist/scripts/{4591-9a2868f8a0.chunk.js → 4591-3bafdf04eb.chunk.js} +1 -1
- package/dist/scripts/4830-78b7f854d2.chunk.js +1 -0
- package/dist/scripts/{4860-b3e5cb9cbd.chunk.js → 4860-b5a0c5a4f7.chunk.js} +1 -1
- package/dist/scripts/{4885-9e4ce006c8.chunk.js → 4885-5665393708.chunk.js} +1 -1
- package/dist/scripts/4973-f61032e6d9.chunk.js +2 -0
- package/dist/scripts/{514-59d9a9a7bd.chunk.js → 514-6bbcc11ccd.chunk.js} +1 -1
- package/dist/scripts/{5412-a1721cffc4.chunk.js → 5412-49e9416193.chunk.js} +1 -1
- package/dist/scripts/5424-95917d027e.chunk.js +1 -0
- package/dist/scripts/{546-81473f1035.chunk.js → 546-9118f60b37.chunk.js} +1 -1
- package/dist/scripts/5745-a8f263230f.chunk.js +2 -0
- package/dist/scripts/{5747-8a168b816b.chunk.js → 5747-4bbf211b9d.chunk.js} +1 -1
- package/dist/scripts/58-f573cef3f1.chunk.js +1 -0
- package/dist/scripts/5891-2384394abf.chunk.js +1 -0
- package/dist/scripts/6220-24ae226c29.chunk.js +1 -0
- package/dist/scripts/6732-a203523ce8.chunk.js +1 -0
- package/dist/scripts/{6774-185468f6f5.chunk.js → 6774-ed211c8b34.chunk.js} +1 -1
- package/dist/scripts/{6788-2368a122f1.chunk.js → 6788-e7b22ee5cf.chunk.js} +1 -1
- package/dist/scripts/{6963-a576fd9c4d.chunk.js → 6963-83e5a0386b.chunk.js} +1 -1
- package/dist/scripts/6995-578fe09b1a.chunk.js +1 -0
- package/dist/scripts/6999-d783593ecd.chunk.js +1 -0
- package/dist/scripts/{7002-9b2aad8369.chunk.js → 7002-a84edb1c55.chunk.js} +1 -1
- package/dist/scripts/7053-58277bab40.chunk.js +1 -0
- package/dist/scripts/708-e426a1101a.chunk.js +1 -0
- package/dist/scripts/{7190-d294d5b67c.chunk.js → 7190-9bf273416d.chunk.js} +1 -1
- package/dist/scripts/7295-9a110bc5ab.chunk.js +1 -0
- package/dist/scripts/{7376-21f5de2ce6.chunk.js → 7376-4d9b431384.chunk.js} +1 -1
- package/dist/scripts/7634-e4421c5635.chunk.js +1 -0
- package/dist/scripts/{8362-195c5ba6c3.chunk.js → 8362-e6279acee7.chunk.js} +1 -1
- package/dist/scripts/{8727-20ae545e12.chunk.js → 8727-17faa28384.chunk.js} +1 -1
- package/dist/scripts/{8762-b445a592a5.chunk.js → 8762-e44f72c32c.chunk.js} +1 -1
- package/dist/scripts/{8906-efcc846fad.chunk.js → 8906-dddb217ad3.chunk.js} +1 -1
- package/dist/scripts/{8929-6fac19a7a3.chunk.js → 8929-0454971ba3.chunk.js} +1 -1
- package/dist/scripts/{8947-4df5e81810.chunk.js → 8947-7242c90cef.chunk.js} +1 -1
- package/dist/scripts/9228-110536ffde.chunk.js +1 -0
- package/dist/scripts/{9357-2e288289f3.chunk.js → 9357-f27151e9a5.chunk.js} +1 -1
- package/dist/scripts/9379-621391591b.chunk.js +1 -0
- package/dist/scripts/9383-4fd2e86d6e.chunk.js +1 -0
- package/dist/scripts/{9695-4bb132be57.chunk.js → 9695-995f37e82e.chunk.js} +1 -1
- package/dist/scripts/9770-717c5d2e82.chunk.js +1 -0
- package/dist/scripts/9927-5fc9373f85.chunk.js +1 -0
- package/dist/scripts/9976-88ad110f6b.chunk.js +1 -0
- package/dist/scripts/bundle-60969796d5.min.js +2 -0
- package/dist/scripts/bundle-60969796d5.min.js.LICENSE.txt +1 -0
- package/package.json +1 -1
- package/dist/css/1521-library-editor-b3d6d791c2.chunk.css +0 -24
- package/dist/scripts/101-98e020bd6f.chunk.js +0 -1
- package/dist/scripts/1010-cd4e715098.chunk.js +0 -1
- package/dist/scripts/1132-3f29e51c9d.chunk.js +0 -1
- package/dist/scripts/1409-8f5c1c9d0e.chunk.js +0 -1
- package/dist/scripts/1521-0c23d44c5e.chunk.js +0 -1
- package/dist/scripts/1832-d4427bb6f5.chunk.js +0 -1
- package/dist/scripts/1887-d306fab87c.chunk.js +0 -1
- package/dist/scripts/1911-41bf677d7e.chunk.js +0 -1
- package/dist/scripts/2011-f178a6dabf.chunk.js +0 -1
- package/dist/scripts/2098-31d99bc407.chunk.js +0 -1
- package/dist/scripts/2119-cbaa6000b1.chunk.js +0 -1
- package/dist/scripts/2284-a57db3563f.chunk.js +0 -1
- package/dist/scripts/2417-48687b3eeb.chunk.js +0 -1
- package/dist/scripts/2733-e8cc6e3610.chunk.js +0 -1
- package/dist/scripts/3019-8c7fdaf749.chunk.js +0 -1
- package/dist/scripts/3987-e3a4ade0c9.chunk.js +0 -1
- package/dist/scripts/400-00070f1714.chunk.js +0 -1
- package/dist/scripts/4177-0be8ceed3c.chunk.js +0 -1
- package/dist/scripts/4201-25e82e2429.chunk.js +0 -1
- package/dist/scripts/435-fb19753c8d.chunk.js +0 -1
- package/dist/scripts/4353-c7a0df4214.chunk.js +0 -1
- package/dist/scripts/5263-38198ed595.chunk.js +0 -1
- package/dist/scripts/5664-d6cbc77d63.chunk.js +0 -1
- package/dist/scripts/5891-63973f5678.chunk.js +0 -1
- package/dist/scripts/6181-fa5e7bcbf9.chunk.js +0 -1
- package/dist/scripts/6220-984f02c732.chunk.js +0 -1
- package/dist/scripts/6420-1537f8f587.chunk.js +0 -1
- package/dist/scripts/693-0ae38e2ba5.chunk.js +0 -1
- package/dist/scripts/6999-1fe379ca99.chunk.js +0 -1
- package/dist/scripts/7053-643499a3a6.chunk.js +0 -1
- package/dist/scripts/708-9e2ef23c87.chunk.js +0 -1
- package/dist/scripts/7173-a4f745b0ed.chunk.js +0 -1
- package/dist/scripts/7251-a247842ccb.chunk.js +0 -2
- package/dist/scripts/7295-96fcbaa176.chunk.js +0 -1
- package/dist/scripts/8074-b610b1ba63.chunk.js +0 -1
- package/dist/scripts/8179-f5cc87ded7.chunk.js +0 -2
- package/dist/scripts/9167-9c54b36e3a.chunk.js +0 -1
- package/dist/scripts/9298-d8c9ed5471.chunk.js +0 -1
- package/dist/scripts/9383-6d0392b17f.chunk.js +0 -1
- package/dist/scripts/9770-9eaef2c966.chunk.js +0 -1
- package/dist/scripts/9927-25579dff18.chunk.js +0 -1
- package/dist/scripts/995-3a6de1eec1.chunk.js +0 -1
- package/dist/scripts/bundle-2b73fa6c21.min.js +0 -2
- package/dist/css/{2119-library-editor-1d6a95fb9f.chunk.css → 4830-library-editor-1d6a95fb9f.chunk.css} +0 -0
- package/dist/css/{8179-library-editor-df33c921f0.chunk.css → 4973-library-editor-df33c921f0.chunk.css} +0 -0
- package/dist/css/{435-library-editor-2ea33d243e.chunk.css → 5424-library-editor-2ea33d243e.chunk.css} +0 -0
- package/dist/css/{9298-library-editor-e65d819068.chunk.css → 6732-library-editor-e65d819068.chunk.css} +0 -0
- package/dist/css/{1132-library-editor-c1a116496b.chunk.css → 7634-library-editor-fe9fc69e35.chunk.css} +2 -2
- package/dist/css/{9383-library-editor-d5cab29692.chunk.css → 9383-library-editor-898835bbbe.chunk.css} +2 -2
- /package/dist/css/{6181-library-editor-db9baf23c2.chunk.css → 9976-library-editor-db9baf23c2.chunk.css} +0 -0
- /package/dist/scripts/{1203-b828105755.chunk.js → 1203-2fbc5898fa.chunk.js} +0 -0
- /package/dist/scripts/{8179-f5cc87ded7.chunk.js.LICENSE.txt → 1601-52f8e3cec5.chunk.js.LICENSE.txt} +0 -0
- /package/dist/scripts/{1934-3b82bbbc99.chunk.js.LICENSE.txt → 1934-3f8be23263.chunk.js.LICENSE.txt} +0 -0
- /package/dist/scripts/{2802-160b25677d.chunk.js.LICENSE.txt → 2802-b27bcc7922.chunk.js.LICENSE.txt} +0 -0
- /package/dist/scripts/{3400-3a56ad67d9.chunk.js → 3400-bd718e889d.chunk.js} +0 -0
- /package/dist/scripts/{3969-258fca82a8.chunk.js → 3969-b2512efce3.chunk.js} +0 -0
- /package/dist/scripts/{4245-4d98c3f676.chunk.js → 4245-a4ab06b0e3.chunk.js} +0 -0
- /package/dist/scripts/{bundle-2b73fa6c21.min.js.LICENSE.txt → 4973-f61032e6d9.chunk.js.LICENSE.txt} +0 -0
- /package/dist/scripts/{5173-e1b904c06c.chunk.js → 5173-1375c05784.chunk.js} +0 -0
- /package/dist/scripts/{5235-abc8ea83ed.chunk.js → 5235-ad7fce4516.chunk.js} +0 -0
- /package/dist/scripts/{5418-bfa546cf33.chunk.js → 5418-e74c7fda2f.chunk.js} +0 -0
- /package/dist/scripts/{7251-a247842ccb.chunk.js.LICENSE.txt → 5745-a8f263230f.chunk.js.LICENSE.txt} +0 -0
- /package/dist/scripts/{6093-a62d8ebc86.chunk.js → 6093-b7bb0fe8ff.chunk.js} +0 -0
- /package/dist/scripts/{8495-0a9a71f2dc.chunk.js → 8495-718f82fe43.chunk.js} +0 -0
- /package/dist/scripts/{polyfills-c62d0e7aec.min.js → polyfills-513148dd03.min.js} +0 -0
|
@@ -1 +0,0 @@
|
|
|
1
|
-
(self.webpackChunk_clickview_library_editor=self.webpackChunk_clickview_library_editor||[]).push([[2733],{15180:function(e,n,t){"use strict";t.d(n,{a:function(){return Ie}});var o=t(39479),r=t(48088),i=t(31647),l=t(17391),a=t(10101),s=t(36022),u=t(33469),c=t(28099),p=t(33192),d=t(6681),f=t(70550),h=t.n(f),m={clearSvg:"gWA4e"};function y(e){return y="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},y(e)}function b(e,n){for(var t=0;t<n.length;t++){var o=n[t];o.enumerable=o.enumerable||!1,o.configurable=!0,"value"in o&&(o.writable=!0),Object.defineProperty(e,o.key,o)}}function g(e,n){return g=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(e,n){return e.__proto__=n,e},g(e,n)}function v(e,n){if(n&&("object"===y(n)||"function"==typeof n))return n;if(void 0!==n)throw new TypeError("Derived constructors may only return object or undefined");return function(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}(e)}function k(e){return k=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(e){return e.__proto__||Object.getPrototypeOf(e)},k(e)}var w=function(e){!function(e,n){if("function"!=typeof n&&null!==n)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(n&&n.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),Object.defineProperty(e,"prototype",{writable:!1}),n&&g(e,n)}(a,e);var n,t,o,i,l=(o=a,i=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(e){return!1}}(),function(){var e,n=k(o);if(i){var t=k(this).constructor;e=Reflect.construct(n,arguments,t)}else e=n.apply(this,arguments);return v(this,e)});function a(e){return function(e,n){if(!(e instanceof n))throw new TypeError("Cannot call a class as a function")}(this,a),l.call(this,e)}return n=a,(t=[{key:"name",get:function(){return"ClearButtonComponent"}},{key:"className",get:function(){return"".concat(m.clearButton)}},{key:"template",get:function(){return h()}},{key:"events",value:function(){return{click:"onClick"}}},{key:"onClick",value:function(){r.Radio.channel(this.options.channelName).trigger("clear:date")}},{key:"onBeforeRender",value:function(){return!!this.options.shouldRender}},{key:"viewOptions",value:function(){return{styles:m,svgClear:d.Nj.getSvg(d.vn.Close)}}}])&&b(n.prototype,t),Object.defineProperty(n,"prototype",{writable:!1}),a}(i.Q.Component),E=t(57857),C=t(40622),O=t(7591),S=t.n(O),T={next:"Vxb5b",previous:"lzgvM",datePicker:"odbOJ",calendarSvg:"fT6E_",disabled:"nayb_"},P=t(45092);function x(e){return x="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},x(e)}function I(e,n,t){return n in e?Object.defineProperty(e,n,{value:t,enumerable:!0,configurable:!0,writable:!0}):e[n]=t,e}function R(e,n){for(var t=0;t<n.length;t++){var o=n[t];o.enumerable=o.enumerable||!1,o.configurable=!0,"value"in o&&(o.writable=!0),Object.defineProperty(e,o.key,o)}}function j(e,n){return j=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(e,n){return e.__proto__=n,e},j(e,n)}function D(e,n){if(n&&("object"===x(n)||"function"==typeof n))return n;if(void 0!==n)throw new TypeError("Derived constructors may only return object or undefined");return function(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}(e)}function _(e){return _=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(e){return e.__proto__||Object.getPrototypeOf(e)},_(e)}var N=function(e){!function(e,n){if("function"!=typeof n&&null!==n)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(n&&n.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),Object.defineProperty(e,"prototype",{writable:!1}),n&&j(e,n)}(s,e);var n,t,r,i,l=(r=s,i=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(e){return!1}}(),function(){var e,n=_(r);if(i){var t=_(this).constructor;e=Reflect.construct(n,arguments,t)}else e=n.apply(this,arguments);return D(this,e)});function s(e){return function(e,n){if(!(e instanceof n))throw new TypeError("Cannot call a class as a function")}(this,s),l.call(this,e)}return n=s,(t=[{key:"initialize",value:function(){this.listenTo(this.model,"change:".concat(this.options.modelAttr),this.renderClearDateButton),this.listenTo(this.channelName,"clear:date",this.onClearDate)}},{key:"name",get:function(){return"DatePickerComponent"}},{key:"template",get:function(){return S()}},{key:"lang",get:function(){return"shared.datePicker"}},{key:"channelName",get:function(){return"".concat(this.name,":").concat(this.cid)}},{key:"elements",get:function(){return{date:"#".concat(this.options.modelAttr)}}},{key:"regions",value:function(){return{clearButton:{el:".clear-button-region"}}}},{key:"appLinks",get:function(){return{".suggest-broadcast-date":{application:c.OV.LIBRARY_EDITOR,action:c.eX.LibraryEditor.SUGGEST_AN_EDIT,args:[this.model.get("id")],params:{metadata:C.MetadataType.BroadcastDate}}}}},{key:"defaults",get:function(){return{placeholderText:E.T.getPhrase(this.lang,"placeholder"),allowTextInput:!1,allowClearDate:!0,minYear:1900,editable:!0}}},{key:"behaviors",get:function(){return[{behaviorClass:a.fS},{behaviorClass:a.Bp}]}},{key:"bindings",get:function(){var e=this;return I({},"[name=".concat(this.options.modelAttr,"]"),{observe:this.options.modelAttr,setOptions:{validate:!0},onGet:function(n){return e.getFormattedDisplayDate(n)},onSet:function(n){return e.getFormattedSavedDate(n)}})}},{key:"events",value:function(){return I({"keydown @ui.date":"onKeyDownDate"},"click .".concat(T.calendarSvg),"onClickCalendarIcon")}},{key:"getInstanceClassName",value:function(){return"datetimepicker-".concat(this.cid)}},{key:"initDatePicker",value:function(){this.getUI("date").datetimepicker({format:this.options.displayedTimeFormat,minDate:p().year(this.options.minYear),maxDate:p(),icons:{previous:T.previous,next:T.next}})}},{key:"getFormattedDisplayDate",value:function(e){if(e)return o.isFunction(this.options.formatDisplayDate)?this.options.formatDisplayDate(e):p.utc(e).local().format(this.options.displayedTimeFormat)}},{key:"getFormattedSavedDate",value:function(e){if(e)return o.isFunction(this.options.formatSavedDate)?this.options.formatSavedDate(e):this.options.savedTimeFormat?p.utc(e).format(this.options.savedTimeFormat):p.utc(e).format()}},{key:"onClickCalendarIcon",value:function(){if(this.options.editable)return this.getUI("date").datetimepicker("toggle"),!0}},{key:"onClearDate",value:function(){return!this.options.allowClearDate||(this.model.set(I({},"".concat(this.options.modelAttr),null)),!0)}},{key:"onKeyDownDate",value:function(e){this.options.allowTextInput||e.preventDefault()}},{key:"renderClearDateButton",value:function(){this.showChildView("clearButton",new w({channelName:this.channelName,shouldRender:this.options.allowClearDate&&!!this.model.get("dateBroadcast")}))}},{key:"viewOptions",value:function(){return{styles:o.extend(P.Z,T),label:this.options.label,modelAttr:this.options.modelAttr,instanceClass:this.getInstanceClassName(),placeholderText:this.options.placeholderText,displayedTimeFormat:this.options.displayedTimeFormat,svgCalendar:d.Nj.getSvg(d.vn.Calendar),svgClear:d.Nj.getSvg(d.vn.Close),editable:this.options.editable}}},{key:"onRender",value:function(){this.initDatePicker(),this.renderClearDateButton()}}])&&R(n.prototype,t),Object.defineProperty(n,"prototype",{writable:!1}),s}(i.Q.Component),B=t(17422),A=t(3974),M=t(88764),V=t.n(M);function L(e){return L="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},L(e)}function F(e,n){for(var t=0;t<n.length;t++){var o=n[t];o.enumerable=o.enumerable||!1,o.configurable=!0,"value"in o&&(o.writable=!0),Object.defineProperty(e,o.key,o)}}function U(e,n){return U=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(e,n){return e.__proto__=n,e},U(e,n)}function Z(e,n){if(n&&("object"===L(n)||"function"==typeof n))return n;if(void 0!==n)throw new TypeError("Derived constructors may only return object or undefined");return function(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}(e)}function Y(e){return Y=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(e){return e.__proto__||Object.getPrototypeOf(e)},Y(e)}var J=function(e){!function(e,n){if("function"!=typeof n&&null!==n)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(n&&n.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),Object.defineProperty(e,"prototype",{writable:!1}),n&&U(e,n)}(a,e);var n,t,o,r,i=(o=a,r=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(e){return!1}}(),function(){var e,n=Y(o);if(r){var t=Y(this).constructor;e=Reflect.construct(n,arguments,t)}else e=n.apply(this,arguments);return Z(this,e)});function a(e){return function(e,n){if(!(e instanceof n))throw new TypeError("Cannot call a class as a function")}(this,a),i.call(this,e)}return n=a,(t=[{key:"name",get:function(){return"EditBroadcastComponent"}},{key:"template",get:function(){return V()}},{key:"lang",get:function(){return"shared.editBroadcast"}},{key:"className",get:function(){return"edit-broadcast"}},{key:"regions",value:function(){return{dateBroadcast:{el:".date-broadcast-region",replaceElement:!0},channelSearch:{el:".channel-search-region",replaceElement:!0}}}},{key:"appLinks",get:function(){return{".suggest-channel":{application:c.OV.LIBRARY_EDITOR,action:c.eX.LibraryEditor.SUGGEST_AN_EDIT,args:[this.model.get("id")],params:{metadata:C.MetadataType.Channel}}}}},{key:"buildTypeaheadConfig",value:function(){return{name:c.n8.ChannelRaw,typeaheadConfig:A.M.getTypeaheadConfig(),bloodhoundConfig:A.M.getBloodhoundConfig()}}},{key:"renderBroadcastDate",value:function(){this.showChildView("dateBroadcast",new N({model:this.model,label:E.T.getPhrase(this.lang,"broadcastDate"),modelAttr:"dateBroadcast",displayedTimeFormat:B.K4.FULL_YEAR,placeholderText:this.options.editable?E.T.getPhrase(this.lang,"selectBroadcastDate"):"",allowClearDate:this.options.editable,editable:this.options.editable}))}},{key:"renderChannelTypeahead",value:function(){this.model.get("channel")||this.model.set("channel",new u.$),this.showChildView("channelSearch",new s.M({model:this.model.get("channel"),parentChannelName:this.options.channelName,inputId:"channel-search",selectEvent:"select:channel",placeholderText:this.options.editable?E.T.getPhrase(this.lang,"searchChannels"):"",typeaheadConfigs:this.buildTypeaheadConfig(),callbacks:{onInput:l.J.emitEventOnInput(this.options.channelName,C.LibraryEditorActions.DetectInput,"channel"),onBlur:l.J.resetAssociationOnBlur(this.model.get("channel").toJSON())},editable:this.options.editable,removeEvent:"remove:channel"}))}},{key:"viewOptions",value:function(){return{styles:P.Z,editable:this.options.editable}}},{key:"onRender",value:function(){this.renderBroadcastDate(),this.renderChannelTypeahead()}}])&&F(n.prototype,t),Object.defineProperty(n,"prototype",{writable:!1}),a}(i.Q.Component),G=t(68588),Q=t.n(G),z={disabled:"Jh_Ny"};function q(e){return q="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},q(e)}function X(e,n){for(var t=0;t<n.length;t++){var o=n[t];o.enumerable=o.enumerable||!1,o.configurable=!0,"value"in o&&(o.writable=!0),Object.defineProperty(e,o.key,o)}}function K(e,n){return K=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(e,n){return e.__proto__=n,e},K(e,n)}function H(e,n){if(n&&("object"===q(n)||"function"==typeof n))return n;if(void 0!==n)throw new TypeError("Derived constructors may only return object or undefined");return function(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}(e)}function $(e){return $=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(e){return e.__proto__||Object.getPrototypeOf(e)},$(e)}var W=function(e){!function(e,n){if("function"!=typeof n&&null!==n)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(n&&n.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),Object.defineProperty(e,"prototype",{writable:!1}),n&&K(e,n)}(l,e);var n,t,o,r,i=(o=l,r=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(e){return!1}}(),function(){var e,n=$(o);if(r){var t=$(this).constructor;e=Reflect.construct(n,arguments,t)}else e=n.apply(this,arguments);return H(this,e)});function l(e){return function(e,n){if(!(e instanceof n))throw new TypeError("Cannot call a class as a function")}(this,l),i.call(this,e)}return n=l,(t=[{key:"name",get:function(){return"ToggleBroadcastComponent"}},{key:"template",get:function(){return Q()}},{key:"lang",get:function(){return"shared.toggleBroadcast"}},{key:"className",get:function(){return"toggle-broadcast"}},{key:"regions",value:function(){return{broadcast:{el:".broadcast-region",replaceElement:!0}}}},{key:"behaviors",get:function(){return this.options.hideToggle?[]:[{behaviorClass:a.fS},{behaviorClass:a.Bp}]}},{key:"bindings",get:function(){return{"[name=toggleBroadcast]":{observe:"hasBroadcast"}}}},{key:"initialize",value:function(){this.listenTo(this.model,"change:hasBroadcast",this.render),this.initBroadcast()}},{key:"initBroadcast",value:function(){var e=this.model.get("channel"),n=this.model.get("dateBroadcast")||e&&e.get("id");this.model.set("hasBroadcast",!!n,{silent:!0})}},{key:"renderEditBroadcast",value:function(){this.model.get("hasBroadcast")||this.options.hideToggle?this.showChildView("broadcast",new J({model:this.model,channelName:this.options.channelName,editable:this.options.editable})):this.getRegion("broadcast").empty()}},{key:"viewOptions",value:function(){return Object.assign({styles:z},this.options)}},{key:"onRender",value:function(){this.renderEditBroadcast()}}])&&X(n.prototype,t),Object.defineProperty(n,"prototype",{writable:!1}),l}(i.Q.Component),ee=t(99249),ne=t(88172),te=t(61843),oe=t(7190),re=t(73519),ie=t.n(re),le=t(48242),ae=t.n(le),se={button:"pEi0b",svg:"Hg4El",disabled:"q5qSy",seasonContainer:"KfwZK"};function ue(e){return ue="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},ue(e)}function ce(e,n){if(!(e instanceof n))throw new TypeError("Cannot call a class as a function")}function pe(e,n){for(var t=0;t<n.length;t++){var o=n[t];o.enumerable=o.enumerable||!1,o.configurable=!0,"value"in o&&(o.writable=!0),Object.defineProperty(e,o.key,o)}}function de(e,n,t){return n&&pe(e.prototype,n),t&&pe(e,t),Object.defineProperty(e,"prototype",{writable:!1}),e}function fe(e,n){if("function"!=typeof n&&null!==n)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(n&&n.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),Object.defineProperty(e,"prototype",{writable:!1}),n&&he(e,n)}function he(e,n){return he=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(e,n){return e.__proto__=n,e},he(e,n)}function me(e){var n=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(e){return!1}}();return function(){var t,o=be(e);if(n){var r=be(this).constructor;t=Reflect.construct(o,arguments,r)}else t=o.apply(this,arguments);return ye(this,t)}}function ye(e,n){if(n&&("object"===ue(n)||"function"==typeof n))return n;if(void 0!==n)throw new TypeError("Derived constructors may only return object or undefined");return function(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}(e)}function be(e){return be=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(e){return e.__proto__||Object.getPrototypeOf(e)},be(e)}var ge=function(e){fe(t,e);var n=me(t);function t(e){var o;return ce(this,t),(o=n.call(this,e)).showSpinner=!1,o.disableBtn=!0,o}return de(t,[{key:"initialize",value:function(){this.bindListeners()}},{key:"name",get:function(){return"CreateSeasonComponent"}},{key:"template",get:function(){return ie()}},{key:"className",get:function(){return"px-2"}},{key:"bindings",get:function(){return{"[name=number]":{observe:"number",setOptions:{validate:!0}}}}},{key:"regions",value:function(){return{button:{el:".button-region",replaceElement:!0}}}},{key:"behaviors",get:function(){return[{behaviorClass:a.Bp},{behaviorClass:a.fS}]}},{key:"bindListeners",value:function(){this.listenTo(this.model,"change",this.onChange),this.listenTo(this.options.channelName,"create:season",this.onCreateSeason),this.listenTo(c.Vk.SERIES,"".concat(c.M_.CREATE_SEASON,":").concat(this.options.seriesId,":sync"),this.onSync)}},{key:"onChange",value:function(){this.disableBtn=!this.model.isValid(),this.renderButton()}},{key:"onCreateSeason",value:function(){this.disableBtn||(this.model.validate(),this.model.isValid()&&(this.showSpinner=!0,this.renderButton(),this.model.set("number",parseInt(this.model.get("number"))),r.Radio.channel(this.options.channelName).trigger("select:season",this.model.toJSON())))}},{key:"onSync",value:function(){this.disableBtn=!0,this.showSpinner=!1,this.model.clear(),this.renderButton()}},{key:"viewOptions",value:function(){return{model:this.model,show:this.options.show}}},{key:"renderButton",value:function(){this.options.show&&this.showChildView("button",new ne.Py({channelName:this.options.channelName,saveEvent:"create:season",extraButtonClass:"btn btn-dark",buttonText:"Create",buttonType:"submit",showSpinner:this.showSpinner,disabled:this.disableBtn,spinnerOptions:{size:te.Ey.Small}}))}},{key:"onRender",value:function(){this.stickit(),this.renderButton()}},{key:"onClose",value:function(){this.unstickit()}}]),t}(i.Q.Component),ve=function(e){fe(t,e);var n=me(t);function t(e){return ce(this,t),n.call(this,e)}return de(t,[{key:"initialize",value:function(){this.model.get("season.id")&&te.yV.setSelected(this.model.get("season.id"),this.collection),this.viewModel=ee.r.get("".concat(this.name,":").concat(this.model.get("id"))),this.options.disabled||this.viewModel.addValidation(oe.c6)}},{key:"name",get:function(){return"EditSeasonInfoComponent"}},{key:"template",get:function(){return ae()}},{key:"className",get:function(){return se.seasonContainer}},{key:"lang",get:function(){return"shared.editSeasonInfo"}},{key:"events",value:function(){return{"click .dropdown-btn":"onToggleDropdown","click .dropdown-menu":"onClickPopover","click .create":"onClickCreateNewSeason","change .custom-select":"onSelectOption","click .remove":"onClickRemove"}}},{key:"elements",get:function(){return{dropdownBtn:".dropdown-btn"}}},{key:"regions",value:function(){return{create:{el:".create-region",replaceElement:!0}}}},{key:"onToggleDropdown",value:function(e){this.options.disabled?e.stopPropagation():this.renderCreate()}},{key:"onClickPopover",value:function(e){e.stopPropagation()}},{key:"onClickCreateNewSeason",value:function(e){e.preventDefault(),this.showCreateForm=!0,this.renderCreate()}},{key:"onSelectOption",value:function(e){var n=e.target.value,t="-1"===n?null:this.collection.findWhere({number:+n}).toJSON();this.setButtonText(n),r.Radio.channel(this.options.channelName).trigger("select:season",t),this.showCreateForm=!1,this.render()}},{key:"onClickRemove",value:function(e){e.stopPropagation(),r.Radio.channel(this.options.channelName).trigger("select:season",null),this.showCreateForm=!1,this.render()}},{key:"setButtonText",value:function(e){if(this.options.isSuggestEdit){var n=e&&"-1"!==e?E.T.getPhrase(this.lang,"season",{number:e}):"";n&&this.getUI("dropdownBtn").text(n)}else{var t=e&&"-1"!==e?"season":"placeholder";this.getUI("dropdownBtn").text(E.T.getPhrase(this.lang,t,{number:e}))}}},{key:"renderCreate",value:function(){this.showChildView("create",new ge({model:this.viewModel,channelName:this.options.channelName,show:this.showCreateForm,seriesId:this.model.get("series.id")}))}},{key:"viewOptions",value:function(){return{styles:se,disabled:this.options.disabled,seasons:this.collection.toJSON(),svgRemove:d.Nj.getSvg(d.vn.Close),showRemoveIcon:!!this.model.get("season.id")&&!this.options.isSuggestEdit}}},{key:"onRender",value:function(){this.renderCreate(),this.setButtonText(this.model.get("season.number"))}}]),t}(i.Q.Component),ke=t(29625),we=t(79710),Ee=t.n(we),Ce={disabled:"lT52_"};function Oe(e){return Oe="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},Oe(e)}function Se(e,n){for(var t=0;t<n.length;t++){var o=n[t];o.enumerable=o.enumerable||!1,o.configurable=!0,"value"in o&&(o.writable=!0),Object.defineProperty(e,o.key,o)}}function Te(e,n){return Te=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(e,n){return e.__proto__=n,e},Te(e,n)}function Pe(e,n){if(n&&("object"===Oe(n)||"function"==typeof n))return n;if(void 0!==n)throw new TypeError("Derived constructors may only return object or undefined");return function(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}(e)}function xe(e){return xe=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(e){return e.__proto__||Object.getPrototypeOf(e)},xe(e)}var Ie=function(e){!function(e,n){if("function"!=typeof n&&null!==n)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(n&&n.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),Object.defineProperty(e,"prototype",{writable:!1}),n&&Te(e,n)}(f,e);var n,t,u,p,d=(u=f,p=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(e){return!1}}(),function(){var e,n=xe(u);if(p){var t=xe(this).constructor;e=Reflect.construct(n,arguments,t)}else e=n.apply(this,arguments);return Pe(this,e)});function f(e){return function(e,n){if(!(e instanceof n))throw new TypeError("Cannot call a class as a function")}(this,f),d.call(this,e)}return n=f,(t=[{key:"initialize",value:function(){this.listenTo(this.options.channelName,"select:season",this.onSelectSeason),this.listenTo(this.options.channelName,"clear:series",this.onSeriesChange),this.listenTo(this.model,"change:series",this.onSeriesChange),this.lockSeasonAndEpisode=!this.options.editable||!this.model.get("series.id")}},{key:"name",get:function(){return"EditAdditionalInfoComponent"}},{key:"tagName",get:function(){return"form"}},{key:"lang",get:function(){return"shared.editAdditionalInfo"}},{key:"template",get:function(){return Ee()}},{key:"className",get:function(){return"edit-additional-info border-top pt-3"}},{key:"events",value:function(){return{submit:function(e){return e.preventDefault()}}}},{key:"elements",get:function(){return{episodeNumberField:".episode-number",seriesTypeahead:".tt-input"}}},{key:"appLinks",get:function(){return{".suggest-series-title":{application:c.OV.LIBRARY_EDITOR,action:c.eX.LibraryEditor.SUGGEST_AN_EDIT,args:[this.model.get("id")],params:{metadata:C.MetadataType.SeriesTitle}},".suggest-season-number":{application:c.OV.LIBRARY_EDITOR,action:c.eX.LibraryEditor.SUGGEST_AN_EDIT,args:[this.model.get("id")],params:{metadata:C.MetadataType.Season}},".suggest-episode-number":{application:c.OV.LIBRARY_EDITOR,action:c.eX.LibraryEditor.SUGGEST_AN_EDIT,args:[this.model.get("id")],params:{metadata:C.MetadataType.EpisodeNumber}}}}},{key:"regions",value:function(){return{series:{el:".edit-series-region",replaceElement:!0},season:{el:".edit-season-region",replaceElement:!0},broadcast:{el:".edit-broadcast-region",replaceElement:!0}}}},{key:"behaviors",get:function(){return[{behaviorClass:a.Bp},{behaviorClass:a.fS}]}},{key:"bindings",get:function(){return{"[name=episodeNumber]":{observe:"episodeNumber",setOptions:{validate:!0},onSet:function(e){return e?+e:null}}}}},{key:"onSelectSeason",value:function(e){e&&this.getUI("episodeNumberField").focus(),r.Radio.channel(this.options.channelName).trigger("add:season",e)}},{key:"onSeriesChange",value:function(e){this.lockSeasonAndEpisode=!e||!e.get("id"),this.renderEditSeason();var n=this.getUI("episodeNumberField");this.lockSeasonAndEpisode?(n.attr("disabled","disabled"),n.attr("class","form-control ".concat(Ce.disabled))):(n.removeAttr("disabled"),n.attr("class","form-control"))}},{key:"getLibraryIds",value:function(e){return e&&e.map((function(e){return e.id})).join(",")}},{key:"getTypeaheadConfigs",value:function(){var e=te.MK.getTypeaheadConfig(),n=te.MK.getBloodhoundConfig(),t={newType:c.n8.Series},o={newType:c.n8.Series,footerTemplate:l.J.getConfirmSelectionTemplate()};return[{name:c.n8.Series,typeaheadConfig:e,bloodhoundConfig:n,options:{hideEmptyResults:!0}},{name:"add-new",typeaheadConfig:e,bloodhoundConfig:n,options:t},{name:"empty-suggestion",typeaheadConfig:e,bloodhoundConfig:n,options:o}]}},{key:"renderSeriesTypeahead",value:function(){var e=this.model.series||new i.Q.Model;this.showChildView("series",new s.M({model:e,editable:this.options.editable,parentChannelName:this.options.channelName,inputId:"series-search",selectEvent:"select:series",placeholderText:this.options.editable?E.T.getPhrase(this.lang,"searchSeries"):"",typeaheadConfigs:this.getTypeaheadConfigs(),typeaheadOptions:{hint:!1},callbacks:{onRender:l.J.selectFirstResult,onInput:l.J.emitEventOnInput(this.options.channelName,C.LibraryEditorActions.DetectInput,"series"),onBlur:l.J.resetAssociationOnBlur(e.toJSON())},removeEvent:"remove:series"}))}},{key:"renderEditSeason",value:function(){var e=this,n=this.model.get("series.seasons")||new ke.i,t=new ke.i(n.map((function(n){return n.set("displayName",E.T.getPhrase(e.lang,"seasonNumber",{number:n.get("number")}))})));this.showChildView("season",new ve({model:this.model,collection:t,channelName:this.options.channelName,disabled:!this.options.editable||this.lockSeasonAndEpisode,isSuggestEdit:!this.options.editable}))}},{key:"renderEditBroadcast",value:function(){this.options.hideBroadcastInfo||this.showChildView("broadcast",new W({model:this.model,channelName:this.options.channelName,hideToggle:!0,editable:this.options.editable}))}},{key:"viewOptions",value:function(){return{styles:o.extend({},P.Z,Ce),editable:this.options.editable,lockEpisodeNumber:this.lockSeasonAndEpisode,episodeNumberPlaceholderText:this.options.editable?E.T.getPhrase(this.lang,"epNumberPlaceholder"):""}}},{key:"onRender",value:function(){this.stickit(),r.Validation.bind(this),this.renderSeriesTypeahead(),this.renderEditSeason(),this.renderEditBroadcast()}},{key:"onClose",value:function(){this.unstickit(),r.Validation.unbind(this)}}])&&Se(n.prototype,t),Object.defineProperty(n,"prototype",{writable:!1}),f}(i.Q.Component)},37382:function(e,n,t){"use strict";t.d(n,{J:function(){return g}});var o=t(48088),r=t(31647),i=t(48726),l=t(99844),a=t(57857),s=t(28099),u=t(40622),c=t(37571),p=t.n(c),d=t(45092);function f(e){return f="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},f(e)}function h(e,n){for(var t=0;t<n.length;t++){var o=n[t];o.enumerable=o.enumerable||!1,o.configurable=!0,"value"in o&&(o.writable=!0),Object.defineProperty(e,o.key,o)}}function m(e,n){return m=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(e,n){return e.__proto__=n,e},m(e,n)}function y(e,n){if(n&&("object"===f(n)||"function"==typeof n))return n;if(void 0!==n)throw new TypeError("Derived constructors may only return object or undefined");return function(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}(e)}function b(e){return b=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(e){return e.__proto__||Object.getPrototypeOf(e)},b(e)}var g=function(e){!function(e,n){if("function"!=typeof n&&null!==n)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(n&&n.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),Object.defineProperty(e,"prototype",{writable:!1}),n&&m(e,n)}(g,e);var n,t,r,c,f=(r=g,c=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(e){return!1}}(),function(){var e,n=b(r);if(c){var t=b(this).constructor;e=Reflect.construct(n,arguments,t)}else e=n.apply(this,arguments);return y(this,e)});function g(e){return function(e,n){if(!(e instanceof n))throw new TypeError("Cannot call a class as a function")}(this,g),f.call(this,e)}return n=g,(t=[{key:"name",get:function(){return"EditBasicInfoComponent"}},{key:"tagName",get:function(){return"form"}},{key:"template",get:function(){return p()}},{key:"lang",get:function(){return"shared.editBasicInfo"}},{key:"channelName",get:function(){return this.options.channelName}},{key:"className",get:function(){return"edit-basic-info"}},{key:"events",value:function(){return{submit:function(e){return e.preventDefault()}}}},{key:"regions",value:function(){return{description:{el:".description-region",replaceElement:!0},ratings:{el:".ratings-region",replaceElement:!0}}}},{key:"appLinks",get:function(){return{".suggest-title":{application:s.OV.LIBRARY_EDITOR,action:s.eX.LibraryEditor.SUGGEST_AN_EDIT,args:[this.model.get("id")],params:{metadata:u.MetadataType.VideoTitle}},".suggest-description":{application:s.OV.LIBRARY_EDITOR,action:s.eX.LibraryEditor.SUGGEST_AN_EDIT,args:[this.model.get("id")],params:{metadata:u.MetadataType.Description}}}}},{key:"bindings",get:function(){return{"[name=name]":{observe:"name",setOptions:{validate:!0}},"[name=description]":{observe:"description",setOptions:{validate:!0}}}}},{key:"renderDescription",value:function(){this.showChildView("description",new l.F({name:"description",class:"form-control ".concat(!this.options.editable&&d.Z.disabled),placeholder:this.options.editable?a.T.getPhrase(this.lang,"descriptionPlaceholder"):"",id:"edit-description",disabled:!this.options.editable}))}},{key:"renderRatings",value:function(){this.showChildView("ratings",new i.R({model:this.model.rating,collection:this.options.ratings,parentChannelName:this.options.channelName,editable:this.options.editable,videoId:this.model.get("id")}))}},{key:"viewOptions",value:function(){return{styles:d.Z,requiredFields:this.options.requiredFields,videoTitlePlaceholder:this.options.editable?a.T.getPhrase(this.lang,"titlePlaceholder"):"",editable:this.options.editable,showingSaveButton:this.options.showingSaveButton}}},{key:"onRender",value:function(){this.renderDescription(),this.renderRatings(),this.stickit(),o.Validation.bind(this)}},{key:"onDestroy",value:function(){this.unstickit(),o.Validation.unbind(this)}}])&&h(n.prototype,t),Object.defineProperty(n,"prototype",{writable:!1}),g}(r.Q.Component)},95168:function(e,n,t){"use strict";t.d(n,{O:function(){return F}});var o=t(39479),r=t(48088),i=t(31647),l=t(6681),a=t(17391),s=t(10101),u=t(28099),c=t(57857),p=t(36022),d=t(40622),f=t(69369),h=t.n(f);function m(e){return m="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},m(e)}function y(e,n){if(!(e instanceof n))throw new TypeError("Cannot call a class as a function")}function b(e,n){for(var t=0;t<n.length;t++){var o=n[t];o.enumerable=o.enumerable||!1,o.configurable=!0,"value"in o&&(o.writable=!0),Object.defineProperty(e,o.key,o)}}function g(e,n,t){return n&&b(e.prototype,n),t&&b(e,t),Object.defineProperty(e,"prototype",{writable:!1}),e}function v(e,n){if("function"!=typeof n&&null!==n)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(n&&n.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),Object.defineProperty(e,"prototype",{writable:!1}),n&&k(e,n)}function k(e,n){return k=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(e,n){return e.__proto__=n,e},k(e,n)}function w(e){var n=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(e){return!1}}();return function(){var t,o=C(e);if(n){var r=C(this).constructor;t=Reflect.construct(o,arguments,r)}else t=o.apply(this,arguments);return E(this,t)}}function E(e,n){if(n&&("object"===m(n)||"function"==typeof n))return n;if(void 0!==n)throw new TypeError("Derived constructors may only return object or undefined");return function(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}(e)}function C(e){return C=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(e){return e.__proto__||Object.getPrototypeOf(e)},C(e)}var O=function(e){v(t,e);var n=w(t);function t(e){return y(this,t),n.call(this,e)}return g(t,[{key:"name",get:function(){return"TypeaheadListComponentCollection"}},{key:"childViewOptions",get:function(){return Object.assign({},this.options)}},{key:"childView",get:function(){return S}}]),t}(i.Q.ComponentCollection),S=function(e){v(t,e);var n=w(t);function t(e){return y(this,t),n.call(this,e)}return g(t,[{key:"name",get:function(){return"TypeaheadListComponent"}},{key:"template",get:function(){return h()}},{key:"modelId",get:function(){return this.model.get("id")||"new-model"}},{key:"bindings",get:function(){return e={},t={observe:"name",setOptions:{validate:!0}},(n="[name=".concat(this.modelId,"]"))in e?Object.defineProperty(e,n,{value:t,enumerable:!0,configurable:!0,writable:!0}):e[n]=t,e;var e,n,t}},{key:"regions",value:function(){return{typeahead:{el:".typeahead-region",replaceElement:!1}}}},{key:"renderTypeahead",value:function(){this.showChildView("typeahead",new p.M({model:this.model,parentChannelName:this.options.channelName,inputId:this.options.inputId,selectEvent:this.options.selectEvent,typeaheadConfigs:this.options.typeaheadConfig,placeholderText:this.options.editable?this.options.placeholderText:"",callbacks:{onRender:a.J.selectFirstResult,onInput:a.J.emitEventOnInput(this.options.channelName,d.LibraryEditorActions.DetectInput,this.options.modelType,{isCollection:!0})},editable:this.options.editable,actionOptions:{clearOnSelect:!0},removeEvent:this.options.removeEvent,forceShowRemoveButton:this.collection.length>1||!!this.model.get("name")}))}},{key:"viewOptions",value:function(){return{id:this.modelId}}},{key:"onRender",value:function(){this.renderTypeahead()}}]),t}(i.Q.Component),T=t(3974),P=t(17422),x=t(84013),I=t(4589),R=t(4228),j=t(52092),D=t(52529),_=t.n(D),N=t(45092);function B(e){return B="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},B(e)}function A(e,n){for(var t=0;t<n.length;t++){var o=n[t];o.enumerable=o.enumerable||!1,o.configurable=!0,"value"in o&&(o.writable=!0),Object.defineProperty(e,o.key,o)}}function M(e,n){return M=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(e,n){return e.__proto__=n,e},M(e,n)}function V(e,n){if(n&&("object"===B(n)||"function"==typeof n))return n;if(void 0!==n)throw new TypeError("Derived constructors may only return object or undefined");return function(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}(e)}function L(e){return L=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(e){return e.__proto__||Object.getPrototypeOf(e)},L(e)}var F=function(e){!function(e,n){if("function"!=typeof n&&null!==n)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(n&&n.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),Object.defineProperty(e,"prototype",{writable:!1}),n&&M(e,n)}(h,e);var n,t,i,p,f=(i=h,p=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(e){return!1}}(),function(){var e,n=L(i);if(p){var t=L(this).constructor;e=Reflect.construct(n,arguments,t)}else e=n.apply(this,arguments);return V(this,e)});function h(e){return function(e,n){if(!(e instanceof n))throw new TypeError("Cannot call a class as a function")}(this,h),f.call(this,e)}return n=h,(t=[{key:"initialize",value:function(){var e=this.options.channelName;this.listenTo(e,"select:distributor",this.onSelectDistributor),this.listenTo(e,"select:production:company",this.onSelectProductionCompany),this.listenTo(e,"select:director",this.onSelectDirector),this.listenTo(e,"select:producer",this.onSelectProducer),this.listenTo(e,"remove:distributor",this.onRemoveDistributor),this.listenTo(e,"remove:production:company",this.onRemoveProductionCompany),this.listenTo(e,"remove:director",this.onRemoveDirector),this.listenTo(e,"remove:producer",this.onRemoveProducer)}},{key:"name",get:function(){return"EditProductionInfoComponent"}},{key:"tagName",get:function(){return"form"}},{key:"template",get:function(){return _()}},{key:"lang",get:function(){return"shared.editProductionInfo"}},{key:"className",get:function(){return"edit-production-info border-top pt-3"}},{key:"elements",get:function(){return{tooltips:".info-tooltip"}}},{key:"events",value:function(){return{submit:function(e){return e.preventDefault()},"click .new-producer":"onClickAddNewProducer","click .new-director":"onClickAddNewDirector","click .new-distributor":"onClickAddNewDistributor","click .new-production-company":"onClickAddNewProductionCompany"}}},{key:"regions",value:function(){return{distributors:{el:".distributor-region",replaceElement:!0},productionCompanies:{el:".production-company-region",replaceElement:!0},directors:{el:".directors-region",replaceElement:!0},producers:{el:".producers-region",replaceElement:!0}}}},{key:"bindings",get:function(){return{"[name=productionYear]":{observe:"productionYear",setOptions:{validate:!0},onSet:function(e){return e}}}}},{key:"behaviors",get:function(){return[{behaviorClass:s.fS},{behaviorClass:s.Bp}]}},{key:"appLinks",get:function(){var e={application:u.OV.LIBRARY_EDITOR,action:u.eX.LibraryEditor.SUGGEST_AN_EDIT,args:[this.model.get("id")]};return{".suggest-production-year":o.extend({},e,{params:{metadata:d.MetadataType.ProductionYear}}),".suggest-distributors":o.extend({},e,{params:{metadata:d.MetadataType.Distributors}}),".suggest-production-companies":o.extend({},e,{params:{metadata:d.MetadataType.ProductionCompanies}}),".suggest-directors":o.extend({},e,{params:{metadata:d.MetadataType.Directors}}),".suggest-producers":o.extend({},e,{params:{metadata:d.MetadataType.Producers}})}}},{key:"onClickAddNewProducer",value:function(){this.expandPersonList(P.Zn.Producer)}},{key:"onClickAddNewDirector",value:function(){this.expandPersonList(P.Zn.Director)}},{key:"onClickAddNewDistributor",value:function(){this.expandPersonList(P.Zn.Distributor)}},{key:"onClickAddNewProductionCompany",value:function(){this.expandPersonList(P.Zn.ProductionCompany)}},{key:"expandPersonList",value:function(e){var n=this.model.get(e);5!==n.length&&n.add({}),this.render()}},{key:"onSelectDistributor",value:function(e){this.onSelect(e,P.Zn.Distributor)}},{key:"onSelectProductionCompany",value:function(e){this.onSelect(e,P.Zn.ProductionCompany)}},{key:"onSelectDirector",value:function(e){this.onSelect(e,P.Zn.Director)}},{key:"onSelectProducer",value:function(e){this.onSelect(e,P.Zn.Producer)}},{key:"onSelect",value:function(e,n){r.Radio.channel(this.options.channelName).trigger("add:".concat(n),e),this.render()}},{key:"onRemoveDistributor",value:function(e){this.onRemove(e,P.Zn.Distributor)}},{key:"onRemoveProductionCompany",value:function(e){this.onRemove(e,P.Zn.ProductionCompany)}},{key:"onRemoveDirector",value:function(e){this.onRemove(e,P.Zn.Director)}},{key:"onRemoveProducer",value:function(e){this.onRemove(e,P.Zn.Producer)}},{key:"onRemove",value:function(e,n){this.model.get(n).remove(e),r.Radio.channel(this.options.channelName).trigger("remove:".concat(n),e),this.render()}},{key:"buildTypeaheadConfig",value:function(e){var n=T.M.getTypeaheadConfig(),t=T.M.getBloodhoundConfig();return[{name:e,typeaheadConfig:n,bloodhoundConfig:t,options:{hideEmptyResults:!0}},{name:"add-new",typeaheadConfig:n,bloodhoundConfig:t,options:{newType:e}},{name:"empty-suggestion",typeaheadConfig:n,bloodhoundConfig:t,options:{newType:e,footerTemplate:a.J.getConfirmSelectionTemplate()}}]}},{key:"allowAdditional",value:function(e){return!!this.options.editable&&this.model.get(e)&&5!==this.model.get(e).length}},{key:"renderDistributors",value:function(){this.showChildView("distributors",new O({collection:this.model.get("distributors"),channelName:this.options.channelName,typeaheadConfig:this.buildTypeaheadConfig(u.n8.Distributors),removeEvent:"remove:distributor",selectEvent:"select:distributor",inputId:"distributor-search",editable:this.options.editable,placeholderText:"Search content distributors",modelType:"distributors"}))}},{key:"renderProductionCompanies",value:function(){this.showChildView("productionCompanies",new O({collection:this.model.get("productionCompanies"),channelName:this.options.channelName,typeaheadConfig:this.buildTypeaheadConfig(u.n8.ProductionCompanies),removeEvent:"remove:production:company",selectEvent:"select:production:company",inputId:"production-company-search",editable:this.options.editable,placeholderText:"Search content production companies",modelType:"productionCompanies"}))}},{key:"renderDirectors",value:function(){this.showChildView("directors",new O({collection:this.model.get("directors"),channelName:this.options.channelName,typeaheadConfig:this.buildTypeaheadConfig(u.n8.Directors),removeEvent:"remove:director",selectEvent:"select:director",inputId:"director-search",editable:this.options.editable,placeholderText:"Search content directors",modelType:"directors"}))}},{key:"renderProducers",value:function(){this.showChildView("producers",new O({collection:this.model.get("producers"),channelName:this.options.channelName,typeaheadConfig:this.buildTypeaheadConfig(u.n8.Producers),removeEvent:"remove:producer",selectEvent:"select:producer",inputId:"producer-search",editable:this.options.editable,placeholderText:"Search content producers",modelType:"producers"}))}},{key:"onBeforeRender",value:function(){this.model.get("distributors")||this.model.set("distributors",new x.n([{}])),this.model.get("productionCompanies")||this.model.set("productionCompanies",new R.h([{}])),this.model.get("directors")||this.model.set("directors",new j.A([{}])),this.model.get("producers")||this.model.set("producers",new I.T([{}])),this.model.get("distributors").length||this.model.get("distributors").add({}),this.model.get("productionCompanies").length||this.model.get("productionCompanies").add({}),this.model.get("directors").length||this.model.get("directors").add({}),this.model.get("producers").length||this.model.get("producers").add({})}},{key:"viewOptions",value:function(){return{styles:N.Z,editable:this.options.editable,productionYearPlaceholderText:this.options.editable?c.T.getPhrase(this.lang,"productionYearPlaceholder"):"",allowAdditionalDirector:this.allowAdditional(P.Zn.Director),allowAdditionalProducer:this.allowAdditional(P.Zn.Producer),allowAdditionalDistributor:this.allowAdditional(P.Zn.Distributor),allowAdditionalProductionCompany:this.allowAdditional(P.Zn.ProductionCompany),infoSvg:l.Nj.getSvg(l.vn.Info)}}},{key:"onRender",value:function(){this.renderDistributors(),this.renderProductionCompanies(),this.renderDirectors(),this.renderProducers(),this.getUI("tooltips").tooltip()}},{key:"onBeforeDestroy",value:function(){this.getUI("tooltips").tooltip("dispose")}}])&&A(n.prototype,t),Object.defineProperty(n,"prototype",{writable:!1}),h}(i.Q.Component)},99844:function(e,n,t){"use strict";t.d(n,{F:function(){return f}});var o=t(39479),r=t(31647),i=t(64154),l=t.n(i),a={resizingTextarea:"hJmNl"};function s(e){return s="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},s(e)}function u(e,n){for(var t=0;t<n.length;t++){var o=n[t];o.enumerable=o.enumerable||!1,o.configurable=!0,"value"in o&&(o.writable=!0),Object.defineProperty(e,o.key,o)}}function c(e,n){return c=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(e,n){return e.__proto__=n,e},c(e,n)}function p(e,n){if(n&&("object"===s(n)||"function"==typeof n))return n;if(void 0!==n)throw new TypeError("Derived constructors may only return object or undefined");return function(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}(e)}function d(e){return d=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(e){return e.__proto__||Object.getPrototypeOf(e)},d(e)}var f=function(e){!function(e,n){if("function"!=typeof n&&null!==n)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(n&&n.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),Object.defineProperty(e,"prototype",{writable:!1}),n&&c(e,n)}(f,e);var n,t,r,i,s=(r=f,i=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(e){return!1}}(),function(){var e,n=d(r);if(i){var t=d(this).constructor;e=Reflect.construct(n,arguments,t)}else e=n.apply(this,arguments);return p(this,e)});function f(e){return function(e,n){if(!(e instanceof n))throw new TypeError("Cannot call a class as a function")}(this,f),s.call(this,e)}return n=f,(t=[{key:"name",get:function(){return"ResizingTextAreaComponent"}},{key:"template",get:function(){return l()}},{key:"events",value:function(){return{"input .event-selector":"onInput"}}},{key:"onInput",value:function(e){var n=e.target;n.style.height="inherit";var t=window.getComputedStyle(n),o=parseInt(t.getPropertyValue("border-top-width"),10)+parseInt(t.getPropertyValue("padding-top"),10)+n.scrollHeight+parseInt(t.getPropertyValue("padding-bottom"),10)+parseInt(t.getPropertyValue("border-bottom-width"),10);n.style.height=o+"px"}},{key:"viewOptions",value:function(){return o.extend({},this.options,{styles:a})}}])&&u(n.prototype,t),Object.defineProperty(n,"prototype",{writable:!1}),f}(r.Q.Component)},36022:function(e,n,t){"use strict";t.d(n,{M:function(){return g}});var o=t(39479),r=t(48088),i=t(31647),l=t(11306),a=t(6681),s=t(17391),u=t(61843),c=t(94407),p=t.n(c),d={svg:"QbFgf",typeaheadContainer:"Y3ErG",disabled:"VTCM4"};function f(e){return f="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},f(e)}function h(e,n){for(var t=0;t<n.length;t++){var o=n[t];o.enumerable=o.enumerable||!1,o.configurable=!0,"value"in o&&(o.writable=!0),Object.defineProperty(e,o.key,o)}}function m(e,n){return m=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(e,n){return e.__proto__=n,e},m(e,n)}function y(e,n){if(n&&("object"===f(n)||"function"==typeof n))return n;if(void 0!==n)throw new TypeError("Derived constructors may only return object or undefined");return function(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}(e)}function b(e){return b=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(e){return e.__proto__||Object.getPrototypeOf(e)},b(e)}var g=function(e){!function(e,n){if("function"!=typeof n&&null!==n)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(n&&n.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),Object.defineProperty(e,"prototype",{writable:!1}),n&&m(e,n)}(v,e);var n,t,c,f,g=(c=v,f=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(e){return!1}}(),function(){var e,n=b(c);if(f){var t=b(this).constructor;e=Reflect.construct(n,arguments,t)}else e=n.apply(this,arguments);return y(this,e)});function v(e){return function(e,n){if(!(e instanceof n))throw new TypeError("Cannot call a class as a function")}(this,v),g.call(this,e)}return n=v,(t=[{key:"name",get:function(){return"SearchTypeaheadComponent"}},{key:"template",get:function(){return p()}},{key:"className",get:function(){return"search-container ".concat(d.typeaheadContainer," mb-2")}},{key:"channelName",get:function(){return u.N0.generateUniqueChannelName(this)}},{key:"elements",get:function(){return{input:"#".concat(this.options.inputId)}}},{key:"defaults",get:function(){return{inputId:"search-typeahead",placeholderText:"Search",stickItProperty:"name",selectEvent:"select:result",additionalClasses:"",editable:!0}}},{key:"events",value:function(){return{submit:"onSubmit","click .remove":"onClickRemove"}}},{key:"initialize",value:function(){this.model||this.options.parentChannelName||i.Q.ErrorHelper.throw(new l.H("Either pass a model or a channelName to access the typeahead selection")),this.model||(this.model=new i.Q.Model),this.options.inputName||(this.options.inputName=this.options.inputId),this.bindListeners()}},{key:"bindListeners",value:function(){this.options.parentChannelName&&(this.parentChannel=r.Radio.channel(this.options.parentChannelName)),this.listenTo(this.channelName,"typeahead:set:input",this.setInput),this.listenTo(this.channelName,"typeahead:clear:input",this.clearInput)}},{key:"bindings",get:function(){var e,n,t;return e={},n="[name=".concat(this.options.inputName,"]"),t={observe:this.options.stickItProperty,setOptions:{validate:!0}},n in e?Object.defineProperty(e,n,{value:t,enumerable:!0,configurable:!0,writable:!0}):e[n]=t,e}},{key:"clearInput",value:function(){this.getUI("input").typeahead("val",null)}},{key:"setInput",value:function(e){this.getUI("input").typeahead("val",e)}},{key:"onTypeaheadSelect",value:function(e,n){var t;e.preventDefault(),t="string"==typeof n?n:n.title||n.name||n.query,this.model.set(this.options.stickItProperty,t),this.parentChannel&&this.options.selectEvent&&this.parentChannel.trigger(this.options.selectEvent,n),this.onSubmit(e),this.toggleRemove()}},{key:"onSubmit",value:function(e){var n=this;if(e.preventDefault(),!this.isDestroyed()&&this.getTypeaheadActionOptions().clearOnSelect)return this.getUI("input").typeahead("close"),setTimeout((function(){n.model.clear(),n.clearInput()}),0),!1}},{key:"onClickRemove",value:function(){this.model.clear(),this.parentChannel.trigger(this.options.removeEvent,this.model),this.toggleRemove()}},{key:"getSources",value:function(){return o.isArray(this.options.typeaheadConfigs)?s.J.getSearchSources(this.options.typeaheadConfigs):s.J.getSearchSources([this.options.typeaheadConfigs])}},{key:"getTypeaheadOptions",value:function(){var e={minLength:1,highlight:!0};return this.options.typeaheadOptions?o.extend({},e,this.options.typeaheadOptions):e}},{key:"getTypeaheadActionOptions",value:function(){var e={clearOnSelect:!1};return o.isObject(this.options.actionOptions)?o.extend({},e,this.options.actionOptions):e}},{key:"bindOptionalCallbacks",value:function(){o.isObject(this.options.callbacks)&&(o.isFunction(this.options.callbacks.onRender)&&this.getUI("input").on("typeahead:render",o.bind(this.options.callbacks.onRender,this)),o.isFunction(this.options.callbacks.onInput)&&this.listenTo(this.model,"change:".concat(this.options.stickItProperty),this.options.callbacks.onInput),o.isFunction(this.options.callbacks.onBlur)&&this.getUI("input").on("blur",o.bind(this.options.callbacks.onBlur,this,this.channelName,this.options.stickItProperty)))}},{key:"initTypeahead",value:function(){this.getUI("input").typeahead(this.getTypeaheadOptions(),this.getSources())}},{key:"initTypeaheadListeners",value:function(){this.getUI("input").on("typeahead:select",o.bind(this.onTypeaheadSelect,this)),this.bindOptionalCallbacks()}},{key:"toggleRemove",value:function(){this.shouldShowRemove()?this.$el.find(".remove").show():this.$el.find(".remove").hide()}},{key:"shouldShowRemove",value:function(){return!!this.options.editable&&(!!this.options.forceShowRemoveButton||this.options.removeEvent&&!!this.model.get(this.options.stickItProperty))}},{key:"viewOptions",value:function(){return Object.assign(Object.assign({styles:d},this.options),{showRemove:this.shouldShowRemove(),svgRemove:a.Nj.getSvg(a.vn.Close)})}},{key:"onRender",value:function(){var e=this;this.stickit(),this.initTypeahead(),this.initTypeaheadListeners(),r.Validation.bind(this),this.toggleRemove(),this.options.autofocus&&window.requestAnimationFrame((function(){e.getUI("input").focus()}))}},{key:"onClose",value:function(){this.getUI("input").off(),this.unstickit(),r.Validation.unbind(this)}}])&&h(n.prototype,t),Object.defineProperty(n,"prototype",{writable:!1}),v}(i.Q.Component)},70550:function(e,n,t){var o=t(32227);e.exports=(o.default||o).template({compiler:[8,">= 4.3.0"],main:function(e,n,t,o,r){e.propertyIsEnumerable;var i,l=e.lambda;return'<span class="svg-container '+e.escapeExpression(l(null!=(i=null!=(i=null!=n?n.options:n)?i.styles:i)?i.clearSvg:i,n))+' clear-button">'+(null!=(i=l(null!=(i=null!=n?n.options:n)?i.svgClear:i,n))?i:"")+"</span>"},useData:!0})},7591:function(e,n,t){var o=t(32227);e.exports=(o.default||o).template({1:function(e,n,t,o,r){e.propertyIsEnumerable;var i,l=e.lambda,a=e.escapeExpression;return' <label for="'+a(l(null!=(i=null!=n?n.options:n)?i.modelAttr:i,n))+'">'+a(l(null!=(i=null!=n?n.options:n)?i.label:i,n))+"</label>\r\n "+(null!=(i=t.unless.call(null!=n?n:e.nullContext||{},null!=(i=null!=n?n.options:n)?i.editable:i,{name:"unless",hash:{},fn:e.program(2,r,0),inverse:e.noop,data:r}))?i:"")+"\r\n"},2:function(e,n,t,o,r){e.propertyIsEnumerable;var i,l=e.escapeExpression;return'<span class="'+l(e.lambda(null!=(i=null!=(i=null!=n?n.options:n)?i.styles:i)?i.suggestEdit:i,n))+'">- <a class="suggest-broadcast-date">'+l((t.lang||n&&n.lang||e.hooks.helperMissing).call(null!=n?n:e.nullContext||{},"suggestEdit",{name:"lang",hash:{},data:r}))+"</a></span>"},4:function(e,n,t,o,r){var i;return e.propertyIsEnumerable,e.escapeExpression(e.lambda(null!=(i=null!=(i=null!=n?n.options:n)?i.styles:i)?i.disabled:i,n))},6:function(e,n,t,o,r){return"disabled"},8:function(e,n,t,o,r){return"cursor-pointer"},compiler:[8,">= 4.3.0"],main:function(e,n,t,o,r){e.propertyIsEnumerable;var i,l=e.lambda,a=e.escapeExpression,s=null!=n?n:e.nullContext||{};return'<div class="'+a(l(null!=(i=null!=(i=null!=n?n.options:n)?i.styles:i)?i.datePicker:i,n))+" "+a(l(null!=(i=null!=(i=null!=n?n.options:n)?i.styles:i)?i.broadcastDate:i,n))+'">\r\n'+(null!=(i=t.if.call(s,null!=(i=null!=n?n.options:n)?i.label:i,{name:"if",hash:{},fn:e.program(1,r,0),inverse:e.noop,data:r}))?i:"")+' <input\r\n name="'+a(l(null!=(i=null!=n?n.options:n)?i.modelAttr:i,n))+'"\r\n class="form-control datetimepicker-input '+a(l(null!=(i=null!=n?n.options:n)?i.instanceClass:i,n))+" "+(null!=(i=t.unless.call(s,null!=(i=null!=n?n.options:n)?i.editable:i,{name:"unless",hash:{},fn:e.program(4,r,0),inverse:e.noop,data:r}))?i:"")+'"\r\n id="'+a(l(null!=(i=null!=n?n.options:n)?i.modelAttr:i,n))+'"\r\n placeholder="'+a(l(null!=(i=null!=n?n.options:n)?i.placeholderText:i,n))+'"\r\n data-toggle="datetimepicker"\r\n data-target=".'+a(l(null!=(i=null!=n?n.options:n)?i.instanceClass:i,n))+'"\r\n autocomplete="off"\r\n '+(null!=(i=t.unless.call(s,null!=(i=null!=n?n.options:n)?i.editable:i,{name:"unless",hash:{},fn:e.program(6,r,0),inverse:e.noop,data:r}))?i:"")+'\r\n />\r\n <span class="clear-button-region clear-svg"></span>\r\n <span class="svg-container '+a(l(null!=(i=null!=(i=null!=n?n.options:n)?i.styles:i)?i.calendarSvg:i,n))+" "+(null!=(i=t.if.call(s,null!=(i=null!=n?n.options:n)?i.editable:i,{name:"if",hash:{},fn:e.program(8,r,0),inverse:e.program(4,r,0),data:r}))?i:"")+'">'+(null!=(i=l(null!=(i=null!=n?n.options:n)?i.svgCalendar:i,n))?i:"")+'</span>\r\n <div class="form-feedback"></div>\r\n</div>'},useData:!0})},79710:function(e,n,t){var o=t(32227);e.exports=(o.default||o).template({1:function(e,n,t,o,r){var i;return e.propertyIsEnumerable,e.escapeExpression(e.lambda(null!=(i=null!=(i=null!=n?n.options:n)?i.styles:i)?i.seriesTitle:i,n))},3:function(e,n,t,o,r){e.propertyIsEnumerable;var i,l=e.escapeExpression;return'<span class="'+l(e.lambda(null!=(i=null!=(i=null!=n?n.options:n)?i.styles:i)?i.suggestEdit:i,n))+'">- <a class="suggest-series-title">'+l((t.lang||n&&n.lang||e.hooks.helperMissing).call(null!=n?n:e.nullContext||{},"suggestEdit",{name:"lang",hash:{},data:r}))+"</a></span>"},5:function(e,n,t,o,r){var i;return e.propertyIsEnumerable,e.escapeExpression(e.lambda(null!=(i=null!=(i=null!=n?n.options:n)?i.styles:i)?i.seasonNumber:i,n))},7:function(e,n,t,o,r){e.propertyIsEnumerable;var i,l=e.escapeExpression;return'<span class="'+l(e.lambda(null!=(i=null!=(i=null!=n?n.options:n)?i.styles:i)?i.suggestEdit:i,n))+'">- <a class="suggest-season-number">'+l((t.lang||n&&n.lang||e.hooks.helperMissing).call(null!=n?n:e.nullContext||{},"suggestEdit",{name:"lang",hash:{},data:r}))+"</a></span>"},9:function(e,n,t,o,r){var i;return e.propertyIsEnumerable,e.escapeExpression(e.lambda(null!=(i=null!=(i=null!=n?n.options:n)?i.styles:i)?i.episodeNumber:i,n))},11:function(e,n,t,o,r){e.propertyIsEnumerable;var i,l=e.escapeExpression;return'<span class="'+l(e.lambda(null!=(i=null!=(i=null!=n?n.options:n)?i.styles:i)?i.suggestEdit:i,n))+'">- <a class="suggest-episode-number">'+l((t.lang||n&&n.lang||e.hooks.helperMissing).call(null!=n?n:e.nullContext||{},"suggestEdit",{name:"lang",hash:{},data:r}))+"</a></span>"},13:function(e,n,t,o,r){var i;return e.propertyIsEnumerable,e.escapeExpression(e.lambda(null!=(i=null!=(i=null!=n?n.options:n)?i.styles:i)?i.disabled:i,n))},15:function(e,n,t,o,r){return"disabled"},compiler:[8,">= 4.3.0"],main:function(e,n,t,o,r){e.propertyIsEnumerable;var i,l=null!=n?n:e.nullContext||{},a=e.hooks.helperMissing,s=e.escapeExpression;return"<h5>"+s((t.lang||n&&n.lang||a).call(l,"heading",{name:"lang",hash:{},data:r}))+'</h5>\r\n<div class="container-fluid">\r\n <div class="row">\r\n <div class="form-group col-6 p-0 '+(null!=(i=t.unless.call(l,null!=(i=null!=n?n.options:n)?i.editable:i,{name:"unless",hash:{},fn:e.program(1,r,0),inverse:e.noop,data:r}))?i:"")+'">\r\n <label for="edit-title">'+s((t.lang||n&&n.lang||a).call(l,"series",{name:"lang",hash:{},data:r}))+"</label>\r\n "+(null!=(i=t.unless.call(l,null!=(i=null!=n?n.options:n)?i.editable:i,{name:"unless",hash:{},fn:e.program(3,r,0),inverse:e.noop,data:r}))?i:"")+'\r\n <div class="edit-series-region"></div>\r\n <div class="form-feedback"></div>\r\n </div>\r\n\r\n <div class="form-group col-3 pr-0 '+(null!=(i=t.unless.call(l,null!=(i=null!=n?n.options:n)?i.editable:i,{name:"unless",hash:{},fn:e.program(5,r,0),inverse:e.noop,data:r}))?i:"")+'">\r\n <label for="edit-season-number">'+s((t.lang||n&&n.lang||a).call(l,"season",{name:"lang",hash:{},data:r}))+"</label>\r\n "+(null!=(i=t.unless.call(l,null!=(i=null!=n?n.options:n)?i.editable:i,{name:"unless",hash:{},fn:e.program(7,r,0),inverse:e.noop,data:r}))?i:"")+'\r\n <div class="edit-season-region"></div>\r\n <div class="form-feedback"></div>\r\n </div>\r\n \r\n <div class="form-group col-3 pr-0 '+(null!=(i=t.unless.call(l,null!=(i=null!=n?n.options:n)?i.editable:i,{name:"unless",hash:{},fn:e.program(9,r,0),inverse:e.noop,data:r}))?i:"")+'">\r\n <label for="edit-episode-number">'+s((t.lang||n&&n.lang||a).call(l,"episode",{name:"lang",hash:{},data:r}))+"</label>\r\n "+(null!=(i=t.unless.call(l,null!=(i=null!=n?n.options:n)?i.editable:i,{name:"unless",hash:{},fn:e.program(11,r,0),inverse:e.noop,data:r}))?i:"")+'\r\n <input\r\n name="episodeNumber"\r\n type="number"\r\n class="form-control episode-number '+(null!=(i=t.if.call(l,null!=(i=null!=n?n.options:n)?i.lockEpisodeNumber:i,{name:"if",hash:{},fn:e.program(13,r,0),inverse:e.noop,data:r}))?i:"")+'"\r\n id="edit-episode-number"\r\n placeholder="'+s(e.lambda(null!=(i=null!=n?n.options:n)?i.episodeNumberPlaceholderText:i,n))+'"\r\n autocomplete="off"\r\n min="1"\r\n '+(null!=(i=t.if.call(l,null!=(i=null!=n?n.options:n)?i.lockEpisodeNumber:i,{name:"if",hash:{},fn:e.program(15,r,0),inverse:e.noop,data:r}))?i:"")+'\r\n >\r\n <div class="form-feedback"></div>\r\n </div>\r\n </div>\r\n</div>\r\n\r\n<div class="edit-broadcast-region"></div>'},useData:!0})},37571:function(e,n,t){var o=t(32227);e.exports=(o.default||o).template({1:function(e,n,t,o,r){return"d-inline-block"},3:function(e,n,t,o,r){var i;return e.propertyIsEnumerable,e.escapeExpression(e.lambda(null!=(i=null!=(i=null!=n?n.options:n)?i.styles:i)?i.programTitle:i,n))},5:function(e,n,t,o,r){var i;return e.propertyIsEnumerable,'<span class="'+e.escapeExpression(e.lambda(null!=(i=null!=(i=null!=n?n.options:n)?i.styles:i)?i.requiredStar:i,n))+'">*</span>'},7:function(e,n,t,o,r){e.propertyIsEnumerable;var i,l=e.escapeExpression;return'<span class="'+l(e.lambda(null!=(i=null!=(i=null!=n?n.options:n)?i.styles:i)?i.suggestEdit:i,n))+'">- <a class="suggest-title">'+l((t.lang||n&&n.lang||e.hooks.helperMissing).call(null!=n?n:e.nullContext||{},"suggestEdit",{name:"lang",hash:{},data:r}))+"</a></span>"},9:function(e,n,t,o,r){var i;return e.propertyIsEnumerable,e.escapeExpression(e.lambda(null!=(i=null!=(i=null!=n?n.options:n)?i.styles:i)?i.disabled:i,n))},11:function(e,n,t,o,r){return"disabled"},13:function(e,n,t,o,r){var i;return e.propertyIsEnumerable,e.escapeExpression(e.lambda(null!=(i=null!=(i=null!=n?n.options:n)?i.styles:i)?i.description:i,n))},15:function(e,n,t,o,r){e.propertyIsEnumerable;var i,l=e.escapeExpression;return'<span class="'+l(e.lambda(null!=(i=null!=(i=null!=n?n.options:n)?i.styles:i)?i.suggestEdit:i,n))+'">- <a class="suggest-description">'+l((t.lang||n&&n.lang||e.hooks.helperMissing).call(null!=n?n:e.nullContext||{},"suggestEdit",{name:"lang",hash:{},data:r}))+"</a></span>"},compiler:[8,">= 4.3.0"],main:function(e,n,t,o,r){e.propertyIsEnumerable;var i,l=null!=n?n:e.nullContext||{},a=e.hooks.helperMissing,s=e.escapeExpression;return'<div class="position-relative '+(null!=(i=t.if.call(l,null!=(i=null!=n?n.options:n)?i.showingSaveButton:i,{name:"if",hash:{},fn:e.program(1,r,0),inverse:e.noop,data:r}))?i:"")+'">\r\n <h5 class="d-inline-block">'+s((t.lang||n&&n.lang||a).call(l,"heading",{name:"lang",hash:{},data:r}))+'</h5>\r\n</div>\r\n<div class="form-group '+(null!=(i=t.unless.call(l,null!=(i=null!=n?n.options:n)?i.editable:i,{name:"unless",hash:{},fn:e.program(3,r,0),inverse:e.noop,data:r}))?i:"")+'">\r\n <label for="edit-title">'+s((t.lang||n&&n.lang||a).call(l,"title",{name:"lang",hash:{},data:r}))+(null!=(i=t.if.call(l,null!=(i=null!=(i=null!=n?n.options:n)?i.requiredFields:i)?i.programTitle:i,{name:"if",hash:{},fn:e.program(5,r,0),inverse:e.noop,data:r}))?i:"")+"</label>\r\n "+(null!=(i=t.unless.call(l,null!=(i=null!=n?n.options:n)?i.editable:i,{name:"unless",hash:{},fn:e.program(7,r,0),inverse:e.noop,data:r}))?i:"")+'\r\n <input\r\n name="name"\r\n type="text"\r\n class="form-control '+(null!=(i=t.unless.call(l,null!=(i=null!=n?n.options:n)?i.editable:i,{name:"unless",hash:{},fn:e.program(9,r,0),inverse:e.noop,data:r}))?i:"")+'"\r\n placeholder="'+s((t.lang||n&&n.lang||a).call(l,"titlePlaceholder",{name:"lang",hash:{},data:r}))+'"\r\n id="edit-title"\r\n autocomplete="off"\r\n '+(null!=(i=t.unless.call(l,null!=(i=null!=n?n.options:n)?i.editable:i,{name:"unless",hash:{},fn:e.program(11,r,0),inverse:e.noop,data:r}))?i:"")+'\r\n >\r\n <div class="form-feedback"></div>\r\n</div>\r\n<div class="form-group '+(null!=(i=t.unless.call(l,null!=(i=null!=n?n.options:n)?i.editable:i,{name:"unless",hash:{},fn:e.program(13,r,0),inverse:e.noop,data:r}))?i:"")+'">\r\n <label for="edit-description">'+s((t.lang||n&&n.lang||a).call(l,"description",{name:"lang",hash:{},data:r}))+"</label>\r\n "+(null!=(i=t.unless.call(l,null!=(i=null!=n?n.options:n)?i.editable:i,{name:"unless",hash:{},fn:e.program(15,r,0),inverse:e.noop,data:r}))?i:"")+'\r\n <div class="description-region"></div>\r\n <div class="form-feedback"></div>\r\n</div>\r\n<div class="ratings-region"></div>'},useData:!0})},88764:function(e,n,t){var o=t(32227);e.exports=(o.default||o).template({1:function(e,n,t,o,r){e.propertyIsEnumerable;var i,l=e.escapeExpression;return'<span class="'+l(e.lambda(null!=(i=null!=(i=null!=n?n.options:n)?i.styles:i)?i.suggestEdit:i,n))+'">- <a class="suggest-channel">'+l((t.lang||n&&n.lang||e.hooks.helperMissing).call(null!=n?n:e.nullContext||{},"suggestEdit",{name:"lang",hash:{},data:r}))+"</a></span>"},compiler:[8,">= 4.3.0"],main:function(e,n,t,o,r){e.propertyIsEnumerable;var i,l=e.escapeExpression,a=null!=n?n:e.nullContext||{};return'<div class="container-fluid">\r\n <div class="row">\r\n <div class="form-group col-6 px-0">\r\n <div class="date-broadcast-region"></div>\r\n </div>\r\n <div class="form-group col-6 pr-0 '+l(e.lambda(null!=(i=null!=(i=null!=n?n.options:n)?i.styles:i)?i.channel:i,n))+'">\r\n <label for="channel-search">'+l((t.lang||n&&n.lang||e.hooks.helperMissing).call(a,"channel",{name:"lang",hash:{},data:r}))+"</label>\r\n "+(null!=(i=t.unless.call(a,null!=(i=null!=n?n.options:n)?i.editable:i,{name:"unless",hash:{},fn:e.program(1,r,0),inverse:e.noop,data:r}))?i:"")+'\r\n <div class="channel-search-region"></div>\r\n </div>\r\n </div>\r\n</div>'},useData:!0})},68588:function(e,n,t){var o=t(32227);e.exports=(o.default||o).template({1:function(e,n,t,o,r){e.propertyIsEnumerable;var i,l=null!=n?n:e.nullContext||{};return'<div class="form-group"> \r\n <div class="custom-control custom-checkbox">\r\n <input\r\n name="toggleBroadcast"\r\n type="checkbox"\r\n class="custom-control-input '+(null!=(i=t.unless.call(l,null!=(i=null!=n?n.options:n)?i.editable:i,{name:"unless",hash:{},fn:e.program(2,r,0),inverse:e.noop,data:r}))?i:"")+'"\r\n id="toggle-broadcast"\r\n '+(null!=(i=t.unless.call(l,null!=(i=null!=n?n.options:n)?i.editable:i,{name:"unless",hash:{},fn:e.program(4,r,0),inverse:e.noop,data:r}))?i:"")+'\r\n >\r\n <label class="custom-control-label" for="toggle-broadcast">'+e.escapeExpression((t.lang||n&&n.lang||e.hooks.helperMissing).call(l,"tv",{name:"lang",hash:{},data:r}))+"</label>\r\n </div>\r\n</div>\r\n"},2:function(e,n,t,o,r){var i;return e.propertyIsEnumerable,e.escapeExpression(e.lambda(null!=(i=null!=(i=null!=n?n.options:n)?i.styles:i)?i.disabled:i,n))},4:function(e,n,t,o,r){return"disabled"},compiler:[8,">= 4.3.0"],main:function(e,n,t,o,r){var i;return e.propertyIsEnumerable,(null!=(i=t.unless.call(null!=n?n:e.nullContext||{},null!=(i=null!=n?n.options:n)?i.hideToggle:i,{name:"unless",hash:{},fn:e.program(1,r,0),inverse:e.noop,data:r}))?i:"")+'<div class="broadcast-region"></div>\r\n'},useData:!0})},52529:function(e,n,t){var o=t(32227);e.exports=(o.default||o).template({1:function(e,n,t,o,r){var i;return e.propertyIsEnumerable,e.escapeExpression(e.lambda(null!=(i=null!=(i=null!=n?n.options:n)?i.styles:i)?i.productionYear:i,n))},3:function(e,n,t,o,r){e.propertyIsEnumerable;var i,l=e.escapeExpression;return'<span class="'+l(e.lambda(null!=(i=null!=(i=null!=n?n.options:n)?i.styles:i)?i.suggestEdit:i,n))+'">- <a class="suggest-production-year">'+l((t.lang||n&&n.lang||e.hooks.helperMissing).call(null!=n?n:e.nullContext||{},"suggestEdit",{name:"lang",hash:{},data:r}))+"</a></span>"},5:function(e,n,t,o,r){var i;return e.propertyIsEnumerable,e.escapeExpression(e.lambda(null!=(i=null!=(i=null!=n?n.options:n)?i.styles:i)?i.disabled:i,n))},7:function(e,n,t,o,r){return"disabled"},9:function(e,n,t,o,r){var i;return e.propertyIsEnumerable,e.escapeExpression(e.lambda(null!=(i=null!=(i=null!=n?n.options:n)?i.styles:i)?i.productionCompanies:i,n))},11:function(e,n,t,o,r){e.propertyIsEnumerable;var i,l=e.escapeExpression;return'<span class="'+l(e.lambda(null!=(i=null!=(i=null!=n?n.options:n)?i.styles:i)?i.suggestEdit:i,n))+'">- <a class="suggest-production-companies">'+l((t.lang||n&&n.lang||e.hooks.helperMissing).call(null!=n?n:e.nullContext||{},"suggestEdit",{name:"lang",hash:{},data:r}))+"</a></span>"},13:function(e,n,t,o,r){return e.propertyIsEnumerable,' <p class="info-link pb-0 new-production-company">'+e.escapeExpression((t.lang||n&&n.lang||e.hooks.helperMissing).call(null!=n?n:e.nullContext||{},"newProductionCompany",{name:"lang",hash:{},data:r}))+"</p>\r\n"},15:function(e,n,t,o,r){var i;return e.propertyIsEnumerable,e.escapeExpression(e.lambda(null!=(i=null!=(i=null!=n?n.options:n)?i.styles:i)?i.distributors:i,n))},17:function(e,n,t,o,r){e.propertyIsEnumerable;var i,l=e.escapeExpression;return'<span class="'+l(e.lambda(null!=(i=null!=(i=null!=n?n.options:n)?i.styles:i)?i.suggestEdit:i,n))+'">- <a class="suggest-distributors">'+l((t.lang||n&&n.lang||e.hooks.helperMissing).call(null!=n?n:e.nullContext||{},"suggestEdit",{name:"lang",hash:{},data:r}))+"</a></span>"},19:function(e,n,t,o,r){return e.propertyIsEnumerable,' <p class="info-link pb-0 new-distributor">'+e.escapeExpression((t.lang||n&&n.lang||e.hooks.helperMissing).call(null!=n?n:e.nullContext||{},"newDistributor",{name:"lang",hash:{},data:r}))+"</p>\r\n"},21:function(e,n,t,o,r){var i;return e.propertyIsEnumerable,e.escapeExpression(e.lambda(null!=(i=null!=(i=null!=n?n.options:n)?i.styles:i)?i.producers:i,n))},23:function(e,n,t,o,r){e.propertyIsEnumerable;var i,l=e.escapeExpression;return'<span class="'+l(e.lambda(null!=(i=null!=(i=null!=n?n.options:n)?i.styles:i)?i.suggestEdit:i,n))+'">- <a class="suggest-producers">'+l((t.lang||n&&n.lang||e.hooks.helperMissing).call(null!=n?n:e.nullContext||{},"suggestEdit",{name:"lang",hash:{},data:r}))+"</a></span>"},25:function(e,n,t,o,r){return e.propertyIsEnumerable,' <p class="info-link pb-0 new-producer">'+e.escapeExpression((t.lang||n&&n.lang||e.hooks.helperMissing).call(null!=n?n:e.nullContext||{},"newProducer",{name:"lang",hash:{},data:r}))+"</p>\r\n"},27:function(e,n,t,o,r){var i;return e.propertyIsEnumerable,e.escapeExpression(e.lambda(null!=(i=null!=(i=null!=n?n.options:n)?i.styles:i)?i.directors:i,n))},29:function(e,n,t,o,r){e.propertyIsEnumerable;var i,l=e.escapeExpression;return'<span class="'+l(e.lambda(null!=(i=null!=(i=null!=n?n.options:n)?i.styles:i)?i.suggestEdit:i,n))+'">- <a class="suggest-directors">'+l((t.lang||n&&n.lang||e.hooks.helperMissing).call(null!=n?n:e.nullContext||{},"suggestEdit",{name:"lang",hash:{},data:r}))+"</a></span>"},31:function(e,n,t,o,r){return e.propertyIsEnumerable,' <p class="info-link pb-0 new-director">'+e.escapeExpression((t.lang||n&&n.lang||e.hooks.helperMissing).call(null!=n?n:e.nullContext||{},"newDirector",{name:"lang",hash:{},data:r}))+"</p>\r\n"},compiler:[8,">= 4.3.0"],main:function(e,n,t,o,r){e.propertyIsEnumerable;var i,l=null!=n?n:e.nullContext||{},a=e.hooks.helperMissing,s=e.escapeExpression,u=e.lambda;return"<h5>"+s((t.lang||n&&n.lang||a).call(l,"heading",{name:"lang",hash:{},data:r}))+'</h5>\r\n\r\n<div class="container-fluid p-0">\r\n <div class="row">\r\n <div class="form-group col-4 pr-0 '+(null!=(i=t.unless.call(l,null!=(i=null!=n?n.options:n)?i.editable:i,{name:"unless",hash:{},fn:e.program(1,r,0),inverse:e.noop,data:r}))?i:"")+'">\r\n <label for="edit-production-year">'+s((t.lang||n&&n.lang||a).call(l,"productionYear",{name:"lang",hash:{},data:r}))+"</label>\r\n "+(null!=(i=t.unless.call(l,null!=(i=null!=n?n.options:n)?i.editable:i,{name:"unless",hash:{},fn:e.program(3,r,0),inverse:e.noop,data:r}))?i:"")+'\r\n <input\r\n name="productionYear"\r\n type="number"\r\n class="form-control '+(null!=(i=t.unless.call(l,null!=(i=null!=n?n.options:n)?i.editable:i,{name:"unless",hash:{},fn:e.program(5,r,0),inverse:e.noop,data:r}))?i:"")+'"\r\n id="edit-production-year"\r\n placeholder="'+s(u(null!=(i=null!=n?n.options:n)?i.productionYearPlaceholderText:i,n))+'"\r\n autocomplete="off"\r\n '+(null!=(i=t.unless.call(l,null!=(i=null!=n?n.options:n)?i.editable:i,{name:"unless",hash:{},fn:e.program(7,r,0),inverse:e.noop,data:r}))?i:"")+'\r\n >\r\n <div class="form-feedback"></div>\r\n </div>\r\n </div>\r\n\r\n <div class="row">\r\n <div class="form-group col-6 '+(null!=(i=t.unless.call(l,null!=(i=null!=n?n.options:n)?i.editable:i,{name:"unless",hash:{},fn:e.program(9,r,0),inverse:e.noop,data:r}))?i:"")+'">\r\n <label for="production-company-search">\r\n '+s((t.lang||n&&n.lang||a).call(l,"productionCompanies",{name:"lang",hash:{},data:r}))+'\r\n <span class="'+s(u(null!=(i=null!=(i=null!=n?n.options:n)?i.styles:i)?i.infoSvgContainer:i,n))+' info-tooltip" \r\n title="'+s((t.lang||n&&n.lang||a).call(l,"productionCompanyInfo",{name:"lang",hash:{},data:r}))+'"\r\n >'+(null!=(i=u(null!=(i=null!=n?n.options:n)?i.infoSvg:i,n))?i:"")+"</span>\r\n </label>\r\n "+(null!=(i=t.unless.call(l,null!=(i=null!=n?n.options:n)?i.editable:i,{name:"unless",hash:{},fn:e.program(11,r,0),inverse:e.noop,data:r}))?i:"")+'\r\n <div class="production-company-region"></div>\r\n'+(null!=(i=t.if.call(l,null!=(i=null!=n?n.options:n)?i.allowAdditionalProductionCompany:i,{name:"if",hash:{},fn:e.program(13,r,0),inverse:e.noop,data:r}))?i:"")+' </div>\r\n\r\n <div class="form-group col-6 pr-0 '+(null!=(i=t.unless.call(l,null!=(i=null!=n?n.options:n)?i.editable:i,{name:"unless",hash:{},fn:e.program(15,r,0),inverse:e.noop,data:r}))?i:"")+'">\r\n <label for="distributor-search">\r\n '+s((t.lang||n&&n.lang||a).call(l,"distributors",{name:"lang",hash:{},data:r}))+'\r\n <span class="'+s(u(null!=(i=null!=(i=null!=n?n.options:n)?i.styles:i)?i.infoSvgContainer:i,n))+' info-tooltip"\r\n title="'+s((t.lang||n&&n.lang||a).call(l,"distributorInfo",{name:"lang",hash:{},data:r}))+'"\r\n >'+(null!=(i=u(null!=(i=null!=n?n.options:n)?i.infoSvg:i,n))?i:"")+"</span>\r\n </label>\r\n "+(null!=(i=t.unless.call(l,null!=(i=null!=n?n.options:n)?i.editable:i,{name:"unless",hash:{},fn:e.program(17,r,0),inverse:e.noop,data:r}))?i:"")+'\r\n <div class="distributor-region"></div>\r\n'+(null!=(i=t.if.call(l,null!=(i=null!=n?n.options:n)?i.allowAdditionalDistributor:i,{name:"if",hash:{},fn:e.program(19,r,0),inverse:e.noop,data:r}))?i:"")+' </div>\r\n </div>\r\n\r\n <div class="row">\r\n <div class="form-group col-6 '+(null!=(i=t.unless.call(l,null!=(i=null!=n?n.options:n)?i.editable:i,{name:"unless",hash:{},fn:e.program(21,r,0),inverse:e.noop,data:r}))?i:"")+'">\r\n <label for="producer-search">\r\n '+s((t.lang||n&&n.lang||a).call(l,"producers",{name:"lang",hash:{},data:r}))+'\r\n <span class="'+s(u(null!=(i=null!=(i=null!=n?n.options:n)?i.styles:i)?i.infoSvgContainer:i,n))+' info-tooltip"\r\n title="'+s((t.lang||n&&n.lang||a).call(l,"producerInfo",{name:"lang",hash:{},data:r}))+'"\r\n >'+(null!=(i=u(null!=(i=null!=n?n.options:n)?i.infoSvg:i,n))?i:"")+"</span>\r\n </label>\r\n "+(null!=(i=t.unless.call(l,null!=(i=null!=n?n.options:n)?i.editable:i,{name:"unless",hash:{},fn:e.program(23,r,0),inverse:e.noop,data:r}))?i:"")+'\r\n <div class="producers-region"></div>\r\n'+(null!=(i=t.if.call(l,null!=(i=null!=n?n.options:n)?i.allowAdditionalProducer:i,{name:"if",hash:{},fn:e.program(25,r,0),inverse:e.noop,data:r}))?i:"")+' </div>\r\n\r\n <div class="form-group col-6 pr-0 '+(null!=(i=t.unless.call(l,null!=(i=null!=n?n.options:n)?i.editable:i,{name:"unless",hash:{},fn:e.program(27,r,0),inverse:e.noop,data:r}))?i:"")+'">\r\n <label for="director-search">\r\n '+s((t.lang||n&&n.lang||a).call(l,"directors",{name:"lang",hash:{},data:r}))+'\r\n <span class="'+s(u(null!=(i=null!=(i=null!=n?n.options:n)?i.styles:i)?i.infoSvgContainer:i,n))+' info-tooltip"\r\n title="'+s((t.lang||n&&n.lang||a).call(l,"directorInfo",{name:"lang",hash:{},data:r}))+'"\r\n >'+(null!=(i=u(null!=(i=null!=n?n.options:n)?i.infoSvg:i,n))?i:"")+"</span>\r\n </label>\r\n "+(null!=(i=t.unless.call(l,null!=(i=null!=n?n.options:n)?i.editable:i,{name:"unless",hash:{},fn:e.program(29,r,0),inverse:e.noop,data:r}))?i:"")+'\r\n <div class="directors-region"></div>\r\n'+(null!=(i=t.if.call(l,null!=(i=null!=n?n.options:n)?i.allowAdditionalDirector:i,{name:"if",hash:{},fn:e.program(31,r,0),inverse:e.noop,data:r}))?i:"")+" </div>\r\n </div>\r\n</div>"},useData:!0})},73519:function(e,n,t){var o=t(32227);e.exports=(o.default||o).template({1:function(e,n,t,o,r){return'<div class="">\r\n <button class="btn btn-outline-dark create w-100">+ Create a season</button>\r\n</div>\r\n'},3:function(e,n,t,o,r){return'<div class="form-group mb-2">\r\n <input type="number" class="form-control" name="number" min="1" placeholder="Season number">\r\n <div class="form-feedback"></div>\r\n</div>\r\n'},compiler:[8,">= 4.3.0"],main:function(e,n,t,o,r){var i;return e.propertyIsEnumerable,(null!=(i=t.unless.call(null!=n?n:e.nullContext||{},null!=(i=null!=n?n.options:n)?i.show:i,{name:"unless",hash:{},fn:e.program(1,r,0),inverse:e.program(3,r,0),data:r}))?i:"")+'<div class="text-right">\r\n <div class="button-region"></div>\r\n</div>'},useData:!0})},48242:function(e,n,t){var o=t(32227);e.exports=(o.default||o).template({1:function(e,n,t,o,r){var i;return e.propertyIsEnumerable,e.escapeExpression(e.lambda(null!=(i=null!=(i=null!=n?n.options:n)?i.styles:i)?i.disabled:i,n))},3:function(e,n,t,o,r){return"selected"},5:function(e,n,t,o,r){e.propertyIsEnumerable;var i,l=e.lambda,a=e.escapeExpression;return' <option value="'+a(l(null!=n?n.number:n,n))+'" '+(null!=(i=t.if.call(null!=n?n:e.nullContext||{},null!=n?n.selected:n,{name:"if",hash:{},fn:e.program(3,r,0),inverse:e.noop,data:r}))?i:"")+">"+a(l(null!=n?n.displayName:n,n))+"</option>\r\n"},7:function(e,n,t,o,r){e.propertyIsEnumerable;var i,l=e.lambda;return'<span class="svg-container mb-2 '+e.escapeExpression(l(null!=(i=null!=(i=null!=n?n.options:n)?i.styles:i)?i.svg:i,n))+' remove">'+(null!=(i=l(null!=(i=null!=n?n.options:n)?i.svgRemove:i,n))?i:"")+"</span>\r\n"},compiler:[8,">= 4.3.0"],main:function(e,n,t,o,r){e.propertyIsEnumerable;var i,l=e.escapeExpression,a=null!=n?n:e.nullContext||{};return'<div\r\n data-toggle="dropdown"\r\n aria-haspopup="true"\r\n aria-expanded="false"\r\n class="cursor-pointer w-100 dropdown-btn btn btn-link '+l(e.lambda(null!=(i=null!=(i=null!=n?n.options:n)?i.styles:i)?i.button:i,n))+" "+(null!=(i=t.if.call(a,null!=(i=null!=n?n.options:n)?i.disabled:i,{name:"if",hash:{},fn:e.program(1,r,0),inverse:e.noop,data:r}))?i:"")+'"\r\n name="season"\r\n> </div>\r\n<div class="dropdown-menu dropdown-menu-right dropdown-arrow w-100">\r\n <div class="text-center px-2">\r\n <select name="season" class="custom-select">\r\n <option value="-1" '+(null!=(i=t.unless.call(a,null!=(i=null!=n?n.options:n)?i.hasSelected:i,{name:"unless",hash:{},fn:e.program(3,r,0),inverse:e.noop,data:r}))?i:"")+">"+l((t.lang||n&&n.lang||e.hooks.helperMissing).call(a,"selectASeason",{name:"lang",hash:{},data:r}))+"</option>\r\n"+(null!=(i=t.each.call(a,null!=(i=null!=n?n.options:n)?i.seasons:i,{name:"each",hash:{},fn:e.program(5,r,0),inverse:e.noop,data:r}))?i:"")+' </select>\r\n </div>\r\n\r\n <div class="dropdown-divider"></div>\r\n\r\n <div class="create-region"></div>\r\n</div>\r\n'+(null!=(i=t.if.call(a,null!=(i=null!=n?n.options:n)?i.showRemoveIcon:i,{name:"if",hash:{},fn:e.program(7,r,0),inverse:e.noop,data:r}))?i:"")},useData:!0})},64154:function(e,n,t){var o=t(32227);e.exports=(o.default||o).template({1:function(e,n,t,o,r){return"required"},3:function(e,n,t,o,r){return"readonly"},5:function(e,n,t,o,r){return"disabled"},compiler:[8,">= 4.3.0"],main:function(e,n,t,o,r){e.propertyIsEnumerable;var i,l=e.lambda,a=e.escapeExpression,s=null!=n?n:e.nullContext||{};return'<textarea\r\n name="'+a(l(null!=(i=null!=n?n.options:n)?i.name:i,n))+'"\r\n id="'+a(l(null!=(i=null!=n?n.options:n)?i.id:i,n))+'"\r\n autocomplete="false"\r\n class="'+a(l(null!=(i=null!=n?n.options:n)?i.class:i,n))+" event-selector "+a(l(null!=(i=null!=(i=null!=n?n.options:n)?i.styles:i)?i.resizingTextarea:i,n))+'"\r\n placeholder="'+a(l(null!=(i=null!=n?n.options:n)?i.placeholder:i,n))+'"\r\n '+(null!=(i=t.if.call(s,null!=(i=null!=n?n.options:n)?i.required:i,{name:"if",hash:{},fn:e.program(1,r,0),inverse:e.noop,data:r}))?i:"")+"\r\n "+(null!=(i=t.if.call(s,null!=(i=null!=n?n.options:n)?i.readonly:i,{name:"if",hash:{},fn:e.program(3,r,0),inverse:e.noop,data:r}))?i:"")+"\r\n "+(null!=(i=t.if.call(s,null!=(i=null!=n?n.options:n)?i.disabled:i,{name:"if",hash:{},fn:e.program(5,r,0),inverse:e.noop,data:r}))?i:"")+"\r\n></textarea>"},useData:!0})},94407:function(e,n,t){var o=t(32227);e.exports=(o.default||o).template({1:function(e,n,t,o,r){var i;return e.propertyIsEnumerable,e.escapeExpression(e.lambda(null!=(i=null!=(i=null!=n?n.options:n)?i.styles:i)?i.disabled:i,n))},3:function(e,n,t,o,r){return"autofocus"},5:function(e,n,t,o,r){return"disabled"},compiler:[8,">= 4.3.0"],main:function(e,n,t,o,r){e.propertyIsEnumerable;var i,l=e.lambda,a=e.escapeExpression,s=null!=n?n:e.nullContext||{};return'<input\r\n name="'+a(l(null!=(i=null!=n?n.options:n)?i.inputName:i,n))+'"\r\n type="text"\r\n class="form-control '+(null!=(i=t.unless.call(s,null!=(i=null!=n?n.options:n)?i.editable:i,{name:"unless",hash:{},fn:e.program(1,r,0),inverse:e.noop,data:r}))?i:"")+" "+a(l(null!=(i=null!=n?n.options:n)?i.additionalClasses:i,n))+'"\r\n id="'+a(l(null!=(i=null!=n?n.options:n)?i.inputId:i,n))+'"\r\n autocomplete="off"\r\n placeholder="'+a(l(null!=(i=null!=n?n.options:n)?i.placeholderText:i,n))+'"\r\n '+(null!=(i=t.if.call(s,null!=(i=null!=n?n.options:n)?i.autofocus:i,{name:"if",hash:{},fn:e.program(3,r,0),inverse:e.noop,data:r}))?i:"")+"\r\n "+(null!=(i=t.unless.call(s,null!=(i=null!=n?n.options:n)?i.editable:i,{name:"unless",hash:{},fn:e.program(5,r,0),inverse:e.noop,data:r}))?i:"")+'\r\n></input>\r\n<span class="svg-container mb-2 '+a(l(null!=(i=null!=(i=null!=n?n.options:n)?i.styles:i)?i.svg:i,n))+' remove" style="display: none;">'+(null!=(i=l(null!=(i=null!=n?n.options:n)?i.svgRemove:i,n))?i:"")+"</span>"},useData:!0})},69369:function(e,n,t){var o=t(32227);e.exports=(o.default||o).template({compiler:[8,">= 4.3.0"],main:function(e,n,t,o,r){var i;return e.propertyIsEnumerable,'<div class="typeahead-region '+e.escapeExpression(e.lambda(null!=(i=null!=(i=null!=n?n.options:n)?i.styles:i)?i.typeahead:i,n))+'"></div>'},useData:!0})}}]);
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
(self.webpackChunk_clickview_library_editor=self.webpackChunk_clickview_library_editor||[]).push([[3019],{53019:function(t){window,t.exports=function(t){var r={};function n(e){if(r[e])return r[e].exports;var o=r[e]={i:e,l:!1,exports:{}};return t[e].call(o.exports,o,o.exports,n),o.l=!0,o.exports}return n.m=t,n.c=r,n.d=function(t,r,e){n.o(t,r)||Object.defineProperty(t,r,{enumerable:!0,get:e})},n.r=function(t){"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(t,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(t,"__esModule",{value:!0})},n.t=function(t,r){if(1&r&&(t=n(t)),8&r)return t;if(4&r&&"object"==typeof t&&t&&t.__esModule)return t;var e=Object.create(null);if(n.r(e),Object.defineProperty(e,"default",{enumerable:!0,value:t}),2&r&&"string"!=typeof t)for(var o in t)n.d(e,o,function(r){return t[r]}.bind(null,o));return e},n.n=function(t){var r=t&&t.__esModule?function(){return t.default}:function(){return t};return n.d(r,"a",r),r},n.o=function(t,r){return Object.prototype.hasOwnProperty.call(t,r)},n.p="",n(n.s=173)}([function(t,r,n){var e=n(8),o=n(17).f,i=n(18),u=n(37),c=n(47),a=n(87),f=n(88);t.exports=function(t,r){var n,s,l,p,h,v=t.target,y=t.global,d=t.stat;if(n=y?e:d?e[v]||c(v,{}):(e[v]||{}).prototype)for(s in r){if(p=r[s],l=t.noTargetGet?(h=o(n,s))&&h.value:n[s],!f(y?s:v+(d?".":"#")+s,t.forced)&&void 0!==l){if(typeof p==typeof l)continue;a(p,l)}(t.sham||l&&l.sham)&&i(p,"sham",!0),u(n,s,p,t)}}},function(t,r){t.exports=function(t){try{return!!t()}catch(t){return!0}}},function(t,r,n){var e=n(46);t.exports=function(t){return Object(e(t))}},function(t,r,n){var e=n(1);t.exports=!e((function(){return 7!=Object.defineProperty({},1,{get:function(){return 7}})[1]}))},function(t,r){t.exports=function(t){return"object"==typeof t?null!==t:"function"==typeof t}},function(t,r,n){var e=n(21),o=Math.min;t.exports=function(t){return t>0?o(e(t),9007199254740991):0}},function(t,r,n){var e=n(8),o=n(48),i=n(9),u=n(39),c=n(53),a=n(64),f=o("wks"),s=e.Symbol,l=a?s:s&&s.withoutSetter||u;t.exports=function(t){return i(f,t)||(c&&i(s,t)?f[t]=s[t]:f[t]=l("Symbol."+t)),f[t]}},function(t,r,n){var e=n(3),o=n(58),i=n(14),u=n(20),c=Object.defineProperty;r.f=e?c:function(t,r,n){if(i(t),r=u(r,!0),i(n),o)try{return c(t,r,n)}catch(t){}if("get"in n||"set"in n)throw TypeError("Accessors not supported");return"value"in n&&(t[r]=n.value),t}},function(t,r,n){(function(r){var n=function(t){return t&&t.Math==Math&&t};t.exports=n("object"==typeof globalThis&&globalThis)||n("object"==typeof window&&window)||n("object"==typeof self&&self)||n("object"==typeof r&&r)||Function("return this")()}).call(this,n(85))},function(t,r){var n={}.hasOwnProperty;t.exports=function(t,r){return n.call(t,r)}},function(t,r,n){var e=n(3),o=n(1),i=n(9),u=Object.defineProperty,c={},a=function(t){throw t};t.exports=function(t,r){if(i(c,t))return c[t];r||(r={});var n=[][t],f=!!i(r,"ACCESSORS")&&r.ACCESSORS,s=i(r,0)?r[0]:a,l=i(r,1)?r[1]:void 0;return c[t]=!!n&&!o((function(){if(f&&!e)return!0;var t={length:-1};f?u(t,1,{enumerable:!0,get:a}):t[1]=1,n.call(t,s,l)}))}},function(t,r,n){var e=n(25),o=n(46);t.exports=function(t){return e(o(t))}},function(t,r,n){var e=n(6),o=n(41),i=n(7),u=e("unscopables"),c=Array.prototype;null==c[u]&&i.f(c,u,{configurable:!0,value:o(null)}),t.exports=function(t){c[u][t]=!0}},function(t,r,n){"use strict";var e=n(1);t.exports=function(t,r){var n=[][t];return!!n&&e((function(){n.call(null,r||function(){throw 1},1)}))}},function(t,r,n){var e=n(4);t.exports=function(t){if(!e(t))throw TypeError(String(t)+" is not an object");return t}},function(t,r,n){var e=n(45);t.exports=Array.isArray||function(t){return"Array"==e(t)}},function(t,r,n){var e=n(42),o=n(25),i=n(2),u=n(5),c=n(32),a=[].push,f=function(t){var r=1==t,n=2==t,f=3==t,s=4==t,l=6==t,p=5==t||l;return function(h,v,y,d){for(var g,b,m=i(h),w=o(m),x=e(v,y,3),O=u(w.length),S=0,j=d||c,A=r?j(h,O):n?j(h,0):void 0;O>S;S++)if((p||S in w)&&(b=x(g=w[S],S,m),t))if(r)A[S]=b;else if(b)switch(t){case 3:return!0;case 5:return g;case 6:return S;case 2:a.call(A,g)}else if(s)return!1;return l?-1:f||s?s:A}};t.exports={forEach:f(0),map:f(1),filter:f(2),some:f(3),every:f(4),find:f(5),findIndex:f(6)}},function(t,r,n){var e=n(3),o=n(36),i=n(24),u=n(11),c=n(20),a=n(9),f=n(58),s=Object.getOwnPropertyDescriptor;r.f=e?s:function(t,r){if(t=u(t),r=c(r,!0),f)try{return s(t,r)}catch(t){}if(a(t,r))return i(!o.f.call(t,r),t[r])}},function(t,r,n){var e=n(3),o=n(7),i=n(24);t.exports=e?function(t,r,n){return o.f(t,r,i(1,n))}:function(t,r,n){return t[r]=n,t}},function(t,r,n){"use strict";var e=n(20),o=n(7),i=n(24);t.exports=function(t,r,n){var u=e(r);u in t?o.f(t,u,i(0,n)):t[u]=n}},function(t,r,n){var e=n(4);t.exports=function(t,r){if(!e(t))return t;var n,o;if(r&&"function"==typeof(n=t.toString)&&!e(o=n.call(t)))return o;if("function"==typeof(n=t.valueOf)&&!e(o=n.call(t)))return o;if(!r&&"function"==typeof(n=t.toString)&&!e(o=n.call(t)))return o;throw TypeError("Can't convert object to primitive value")}},function(t,r){var n=Math.ceil,e=Math.floor;t.exports=function(t){return isNaN(t=+t)?0:(t>0?e:n)(t)}},function(t,r,n){var e=n(63),o=n(51);t.exports=Object.keys||function(t){return e(t,o)}},function(t,r){t.exports=function(t){if("function"!=typeof t)throw TypeError(String(t)+" is not a function");return t}},function(t,r){t.exports=function(t,r){return{enumerable:!(1&t),configurable:!(2&t),writable:!(4&t),value:r}}},function(t,r,n){var e=n(1),o=n(45),i="".split;t.exports=e((function(){return!Object("z").propertyIsEnumerable(0)}))?function(t){return"String"==o(t)?i.call(t,""):Object(t)}:Object},function(t,r,n){var e,o,i,u=n(86),c=n(8),a=n(4),f=n(18),s=n(9),l=n(38),p=n(28),h=c.WeakMap;if(u){var v=new h,y=v.get,d=v.has,g=v.set;e=function(t,r){return g.call(v,t,r),r},o=function(t){return y.call(v,t)||{}},i=function(t){return d.call(v,t)}}else{var b=l("state");p[b]=!0,e=function(t,r){return f(t,b,r),r},o=function(t){return s(t,b)?t[b]:{}},i=function(t){return s(t,b)}}t.exports={set:e,get:o,has:i,enforce:function(t){return i(t)?o(t):e(t,{})},getterFor:function(t){return function(r){var n;if(!a(r)||(n=o(r)).type!==t)throw TypeError("Incompatible receiver, "+t+" required");return n}}}},function(t,r){t.exports=!1},function(t,r){t.exports={}},function(t,r,n){var e=n(40),o=n(8),i=function(t){return"function"==typeof t?t:void 0};t.exports=function(t,r){return arguments.length<2?i(e[t])||i(o[t]):e[t]&&e[t][r]||o[t]&&o[t][r]}},function(t,r,n){var e=n(21),o=Math.max,i=Math.min;t.exports=function(t,r){var n=e(t);return n<0?o(n+r,0):i(n,r)}},function(t,r,n){var e=n(7).f,o=n(9),i=n(6)("toStringTag");t.exports=function(t,r,n){t&&!o(t=n?t:t.prototype,i)&&e(t,i,{configurable:!0,value:r})}},function(t,r,n){var e=n(4),o=n(15),i=n(6)("species");t.exports=function(t,r){var n;return o(t)&&("function"!=typeof(n=t.constructor)||n!==Array&&!o(n.prototype)?e(n)&&null===(n=n[i])&&(n=void 0):n=void 0),new(void 0===n?Array:n)(0===r?0:r)}},function(t,r){t.exports={}},function(t,r,n){var e=n(9),o=n(2),i=n(38),u=n(73),c=i("IE_PROTO"),a=Object.prototype;t.exports=u?Object.getPrototypeOf:function(t){return t=o(t),e(t,c)?t[c]:"function"==typeof t.constructor&&t instanceof t.constructor?t.constructor.prototype:t instanceof Object?a:null}},function(t,r,n){var e=n(1),o=n(6),i=n(78),u=o("species");t.exports=function(t){return i>=51||!e((function(){var r=[];return(r.constructor={})[u]=function(){return{foo:1}},1!==r[t](Boolean).foo}))}},function(t,r,n){"use strict";var e={}.propertyIsEnumerable,o=Object.getOwnPropertyDescriptor,i=o&&!e.call({1:2},1);r.f=i?function(t){var r=o(this,t);return!!r&&r.enumerable}:e},function(t,r,n){var e=n(8),o=n(18),i=n(9),u=n(47),c=n(60),a=n(26),f=a.get,s=a.enforce,l=String(String).split("String");(t.exports=function(t,r,n,c){var a=!!c&&!!c.unsafe,f=!!c&&!!c.enumerable,p=!!c&&!!c.noTargetGet;"function"==typeof n&&("string"!=typeof r||i(n,"name")||o(n,"name",r),s(n).source=l.join("string"==typeof r?r:"")),t!==e?(a?!p&&t[r]&&(f=!0):delete t[r],f?t[r]=n:o(t,r,n)):f?t[r]=n:u(r,n)})(Function.prototype,"toString",(function(){return"function"==typeof this&&f(this).source||c(this)}))},function(t,r,n){var e=n(48),o=n(39),i=e("keys");t.exports=function(t){return i[t]||(i[t]=o(t))}},function(t,r){var n=0,e=Math.random();t.exports=function(t){return"Symbol("+String(void 0===t?"":t)+")_"+(++n+e).toString(36)}},function(t,r,n){var e=n(8);t.exports=e},function(t,r,n){var e,o=n(14),i=n(65),u=n(51),c=n(28),a=n(89),f=n(59),s=n(38)("IE_PROTO"),l=function(){},p=function(t){return"<script>"+t+"<\/script>"},h=function(){try{e=document.domain&&new ActiveXObject("htmlfile")}catch(t){}var t,r;h=e?function(t){t.write(p("")),t.close();var r=t.parentWindow.Object;return t=null,r}(e):((r=f("iframe")).style.display="none",a.appendChild(r),r.src=String("javascript:"),(t=r.contentWindow.document).open(),t.write(p("document.F=Object")),t.close(),t.F);for(var n=u.length;n--;)delete h.prototype[u[n]];return h()};c[s]=!0,t.exports=Object.create||function(t,r){var n;return null!==t?(l.prototype=o(t),n=new l,l.prototype=null,n[s]=t):n=h(),void 0===r?n:i(n,r)}},function(t,r,n){var e=n(23);t.exports=function(t,r,n){if(e(t),void 0===r)return t;switch(n){case 0:return function(){return t.call(r)};case 1:return function(n){return t.call(r,n)};case 2:return function(n,e){return t.call(r,n,e)};case 3:return function(n,e,o){return t.call(r,n,e,o)}}return function(){return t.apply(r,arguments)}}},function(t,r,n){var e=n(1);t.exports=!e((function(){return Object.isExtensible(Object.preventExtensions({}))}))},function(t,r,n){"use strict";var e=n(27),o=n(8),i=n(1);t.exports=e||!i((function(){var t=Math.random();__defineSetter__.call(null,t,(function(){})),delete o[t]}))},function(t,r){var n={}.toString;t.exports=function(t){return n.call(t).slice(8,-1)}},function(t,r){t.exports=function(t){if(null==t)throw TypeError("Can't call method on "+t);return t}},function(t,r,n){var e=n(8),o=n(18);t.exports=function(t,r){try{o(e,t,r)}catch(n){e[t]=r}return r}},function(t,r,n){var e=n(27),o=n(61);(t.exports=function(t,r){return o[t]||(o[t]=void 0!==r?r:{})})("versions",[]).push({version:"3.6.5",mode:e?"pure":"global",copyright:"© 2020 Denis Pushkarev (zloirock.ru)"})},function(t,r,n){var e=n(63),o=n(51).concat("length","prototype");r.f=Object.getOwnPropertyNames||function(t){return e(t,o)}},function(t,r,n){var e=n(11),o=n(5),i=n(30),u=function(t){return function(r,n,u){var c,a=e(r),f=o(a.length),s=i(u,f);if(t&&n!=n){for(;f>s;)if((c=a[s++])!=c)return!0}else for(;f>s;s++)if((t||s in a)&&a[s]===n)return t||s||0;return!t&&-1}};t.exports={includes:u(!0),indexOf:u(!1)}},function(t,r){t.exports=["constructor","hasOwnProperty","isPrototypeOf","propertyIsEnumerable","toLocaleString","toString","valueOf"]},function(t,r){r.f=Object.getOwnPropertySymbols},function(t,r,n){var e=n(1);t.exports=!!Object.getOwnPropertySymbols&&!e((function(){return!String(Symbol())}))},function(t,r,n){var e=n(28),o=n(4),i=n(9),u=n(7).f,c=n(39),a=n(43),f=c("meta"),s=0,l=Object.isExtensible||function(){return!0},p=function(t){u(t,f,{value:{objectID:"O"+ ++s,weakData:{}}})},h=t.exports={REQUIRED:!1,fastKey:function(t,r){if(!o(t))return"symbol"==typeof t?t:("string"==typeof t?"S":"P")+t;if(!i(t,f)){if(!l(t))return"F";if(!r)return"E";p(t)}return t[f].objectID},getWeakData:function(t,r){if(!i(t,f)){if(!l(t))return!0;if(!r)return!1;p(t)}return t[f].weakData},onFreeze:function(t){return a&&h.REQUIRED&&l(t)&&!i(t,f)&&p(t),t}};e[f]=!0},function(t,r,n){var e={};e[n(6)("toStringTag")]="z",t.exports="[object z]"===String(e)},function(t,r,n){"use strict";var e=n(26),o=n(75),i=n(9),u=n(22),c=n(2),a=e.set,f=e.getterFor("Object Iterator");t.exports=o((function(t,r){var n=c(t);a(this,{type:"Object Iterator",mode:r,object:n,keys:u(n),index:0})}),"Object",(function(){for(var t=f(this),r=t.keys;;){if(null===r||t.index>=r.length)return t.object=t.keys=null,{value:void 0,done:!0};var n=r[t.index++],e=t.object;if(i(e,n)){switch(t.mode){case"keys":return{value:n,done:!1};case"values":return{value:e[n],done:!1}}return{value:[n,e[n]],done:!1}}}}))},function(t,r,n){"use strict";function e(t,r){return function(t){if(Array.isArray(t))return t}(t)||function(t,r){if("undefined"!=typeof Symbol&&Symbol.iterator in Object(t)){var n=[],e=!0,o=!1,i=void 0;try{for(var u,c=t[Symbol.iterator]();!(e=(u=c.next()).done)&&(n.push(u.value),!r||n.length!==r);e=!0);}catch(t){o=!0,i=t}finally{try{e||null==c.return||c.return()}finally{if(o)throw i}}return n}}(t,r)||u(t,r)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function o(t){return(o="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 i(t){return function(t){if(Array.isArray(t))return c(t)}(t)||function(t){if("undefined"!=typeof Symbol&&Symbol.iterator in Object(t))return Array.from(t)}(t)||u(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 u(t,r){if(t){if("string"==typeof t)return c(t,r);var n=Object.prototype.toString.call(t).slice(8,-1);return"Object"===n&&t.constructor&&(n=t.constructor.name),"Map"===n||"Set"===n?Array.from(t):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?c(t,r):void 0}}function c(t,r){(null==r||r>t.length)&&(r=t.length);for(var n=0,e=new Array(r);n<r;n++)e[n]=t[n];return e}var a=n(170),f=n(171),s=n(172);function l(t){if("string"!=typeof t||1!==t.length)throw new TypeError("arrayFormatSeparator must be single character string")}function p(t,r){return r.encode?r.strict?a(t):encodeURIComponent(t):t}function h(t,r){return r.decode?f(t):t}function v(t){var r=t.indexOf("#");return-1!==r&&(t=t.slice(0,r)),t}function y(t){var r=(t=v(t)).indexOf("?");return-1===r?"":t.slice(r+1)}function d(t,r){return r.parseNumbers&&!Number.isNaN(Number(t))&&"string"==typeof t&&""!==t.trim()?t=Number(t):!r.parseBooleans||null===t||"true"!==t.toLowerCase()&&"false"!==t.toLowerCase()||(t="true"===t.toLowerCase()),t}function g(t,r){l((r=Object.assign({decode:!0,sort:!0,arrayFormat:"none",arrayFormatSeparator:",",parseNumbers:!1,parseBooleans:!1},r)).arrayFormatSeparator);var n=function(t){var r;switch(t.arrayFormat){case"index":return function(t,n,e){r=/\[(\d*)\]$/.exec(t),t=t.replace(/\[\d*\]$/,""),r?(void 0===e[t]&&(e[t]={}),e[t][r[1]]=n):e[t]=n};case"bracket":return function(t,n,e){r=/(\[\])$/.exec(t),t=t.replace(/\[\]$/,""),r?void 0!==e[t]?e[t]=[].concat(e[t],n):e[t]=[n]:e[t]=n};case"comma":case"separator":return function(r,n,e){var o="string"==typeof n&&n.split("").indexOf(t.arrayFormatSeparator)>-1?n.split(t.arrayFormatSeparator).map((function(r){return h(r,t)})):null===n?n:h(n,t);e[r]=o};default:return function(t,r,n){void 0!==n[t]?n[t]=[].concat(n[t],r):n[t]=r}}}(r),i=Object.create(null);if("string"!=typeof t)return i;if(!(t=t.trim().replace(/^[?#&]/,"")))return i;var c,a=function(t,r){var n;if("undefined"==typeof Symbol||null==t[Symbol.iterator]){if(Array.isArray(t)||(n=u(t))){n&&(t=n);var e=0,o=function(){};return{s:o,n:function(){return e>=t.length?{done:!0}:{done:!1,value:t[e++]}},e:function(t){throw t},f:o}}throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}var i,c=!0,a=!1;return{s:function(){n=t[Symbol.iterator]()},n:function(){var t=n.next();return c=t.done,t},e:function(t){a=!0,i=t},f:function(){try{c||null==n.return||n.return()}finally{if(a)throw i}}}}(t.split("&"));try{for(a.s();!(c=a.n()).done;){var f=c.value,p=e(s(r.decode?f.replace(/\+/g," "):f,"="),2),v=p[0],y=p[1];y=void 0===y?null:["comma","separator"].includes(r.arrayFormat)?y:h(y,r),n(h(v,r),y,i)}}catch(t){a.e(t)}finally{a.f()}for(var g=0,b=Object.keys(i);g<b.length;g++){var m=b[g],w=i[m];if("object"===o(w)&&null!==w)for(var x=0,O=Object.keys(w);x<O.length;x++){var S=O[x];w[S]=d(w[S],r)}else i[m]=d(w,r)}return!1===r.sort?i:(!0===r.sort?Object.keys(i).sort():Object.keys(i).sort(r.sort)).reduce((function(t,r){var n=i[r];return Boolean(n)&&"object"===o(n)&&!Array.isArray(n)?t[r]=function t(r){return Array.isArray(r)?r.sort():"object"===o(r)?t(Object.keys(r)).sort((function(t,r){return Number(t)-Number(r)})).map((function(t){return r[t]})):r}(n):t[r]=n,t}),Object.create(null))}r.extract=y,r.parse=g,r.stringify=function(t,r){if(!t)return"";l((r=Object.assign({encode:!0,strict:!0,arrayFormat:"none",arrayFormatSeparator:","},r)).arrayFormatSeparator);for(var n=function(n){return r.skipNull&&null==t[n]||r.skipEmptyString&&""===t[n]},e=function(t){switch(t.arrayFormat){case"index":return function(r){return function(n,e){var o=n.length;return void 0===e||t.skipNull&&null===e||t.skipEmptyString&&""===e?n:[].concat(i(n),null===e?[[p(r,t),"[",o,"]"].join("")]:[[p(r,t),"[",p(o,t),"]=",p(e,t)].join("")])}};case"bracket":return function(r){return function(n,e){return void 0===e||t.skipNull&&null===e||t.skipEmptyString&&""===e?n:[].concat(i(n),null===e?[[p(r,t),"[]"].join("")]:[[p(r,t),"[]=",p(e,t)].join("")])}};case"comma":case"separator":return function(r){return function(n,e){return null==e||0===e.length?n:0===n.length?[[p(r,t),"=",p(e,t)].join("")]:[[n,p(e,t)].join(t.arrayFormatSeparator)]}};default:return function(r){return function(n,e){return void 0===e||t.skipNull&&null===e||t.skipEmptyString&&""===e?n:[].concat(i(n),null===e?[p(r,t)]:[[p(r,t),"=",p(e,t)].join("")])}}}}(r),o={},u=0,c=Object.keys(t);u<c.length;u++){var a=c[u];n(a)||(o[a]=t[a])}var f=Object.keys(o);return!1!==r.sort&&f.sort(r.sort),f.map((function(n){var o=t[n];return void 0===o?"":null===o?p(n,r):Array.isArray(o)?o.reduce(e(n),[]).join("&"):p(n,r)+"="+p(o,r)})).filter((function(t){return t.length>0})).join("&")},r.parseUrl=function(t,r){r=Object.assign({decode:!0},r);var n=e(s(t,"#"),2),o=n[0],i=n[1];return Object.assign({url:o.split("?")[0]||"",query:g(y(t),r)},r&&r.parseFragmentIdentifier&&i?{fragmentIdentifier:h(i,r)}:{})},r.stringifyUrl=function(t,n){n=Object.assign({encode:!0,strict:!0},n);var e=v(t.url).split("?")[0]||"",o=r.extract(t.url),i=r.parse(o,{sort:!1}),u=Object.assign(i,t.query),c=r.stringify(u,n);c&&(c="?".concat(c));var a=function(t){var r="",n=t.indexOf("#");return-1!==n&&(r=t.slice(n)),r}(t.url);return t.fragmentIdentifier&&(a="#".concat(p(t.fragmentIdentifier,n))),"".concat(e).concat(c).concat(a)}},function(t,r,n){var e=n(3),o=n(1),i=n(59);t.exports=!e&&!o((function(){return 7!=Object.defineProperty(i("div"),"a",{get:function(){return 7}}).a}))},function(t,r,n){var e=n(8),o=n(4),i=e.document,u=o(i)&&o(i.createElement);t.exports=function(t){return u?i.createElement(t):{}}},function(t,r,n){var e=n(61),o=Function.toString;"function"!=typeof e.inspectSource&&(e.inspectSource=function(t){return o.call(t)}),t.exports=e.inspectSource},function(t,r,n){var e=n(8),o=n(47),i=e["__core-js_shared__"]||o("__core-js_shared__",{});t.exports=i},function(t,r,n){var e=n(29),o=n(49),i=n(52),u=n(14);t.exports=e("Reflect","ownKeys")||function(t){var r=o.f(u(t)),n=i.f;return n?r.concat(n(t)):r}},function(t,r,n){var e=n(9),o=n(11),i=n(50).indexOf,u=n(28);t.exports=function(t,r){var n,c=o(t),a=0,f=[];for(n in c)!e(u,n)&&e(c,n)&&f.push(n);for(;r.length>a;)e(c,n=r[a++])&&(~i(f,n)||f.push(n));return f}},function(t,r,n){var e=n(53);t.exports=e&&!Symbol.sham&&"symbol"==typeof Symbol.iterator},function(t,r,n){var e=n(3),o=n(7),i=n(14),u=n(22);t.exports=e?Object.defineProperties:function(t,r){i(t);for(var n,e=u(r),c=e.length,a=0;c>a;)o.f(t,n=e[a++],r[n]);return t}},function(t,r,n){var e=n(11),o=n(49).f,i={}.toString,u="object"==typeof window&&window&&Object.getOwnPropertyNames?Object.getOwnPropertyNames(window):[];t.exports.f=function(t){return u&&"[object Window]"==i.call(t)?function(t){try{return o(t)}catch(t){return u.slice()}}(t):o(e(t))}},function(t,r,n){var e=n(6);r.f=e},function(t,r,n){var e=n(3),o=n(22),i=n(11),u=n(36).f,c=function(t){return function(r){for(var n,c=i(r),a=o(c),f=a.length,s=0,l=[];f>s;)n=a[s++],e&&!u.call(c,n)||l.push(t?[n,c[n]]:c[n]);return l}};t.exports={entries:c(!0),values:c(!1)}},function(t,r,n){var e=n(6),o=n(33),i=e("iterator"),u=Array.prototype;t.exports=function(t){return void 0!==t&&(o.Array===t||u[i]===t)}},function(t,r,n){var e=n(71),o=n(33),i=n(6)("iterator");t.exports=function(t){if(null!=t)return t[i]||t["@@iterator"]||o[e(t)]}},function(t,r,n){var e=n(55),o=n(45),i=n(6)("toStringTag"),u="Arguments"==o(function(){return arguments}());t.exports=e?o:function(t){var r,n,e;return void 0===t?"Undefined":null===t?"Null":"string"==typeof(n=function(t,r){try{return t[r]}catch(t){}}(r=Object(t),i))?n:u?o(r):"Object"==(e=o(r))&&"function"==typeof r.callee?"Arguments":e}},function(t,r,n){var e=n(14);t.exports=function(t,r,n,o){try{return o?r(e(n)[0],n[1]):r(n)}catch(r){var i=t.return;throw void 0!==i&&e(i.call(t)),r}}},function(t,r,n){var e=n(1);t.exports=!e((function(){function t(){}return t.prototype.constructor=null,Object.getPrototypeOf(new t)!==t.prototype}))},function(t,r,n){var e=n(14),o=n(113);t.exports=Object.setPrototypeOf||("__proto__"in{}?function(){var t,r=!1,n={};try{(t=Object.getOwnPropertyDescriptor(Object.prototype,"__proto__").set).call(n,[]),r=n instanceof Array}catch(t){}return function(n,i){return e(n),o(i),r?t.call(n,i):n.__proto__=i,n}}():void 0)},function(t,r,n){"use strict";var e=n(76).IteratorPrototype,o=n(41),i=n(24),u=n(31),c=n(33),a=function(){return this};t.exports=function(t,r,n){var f=r+" Iterator";return t.prototype=o(e,{next:i(1,n)}),u(t,f,!1,!0),c[f]=a,t}},function(t,r,n){"use strict";var e,o,i,u=n(34),c=n(18),a=n(9),f=n(6),s=n(27),l=f("iterator"),p=!1;[].keys&&("next"in(i=[].keys())?(o=u(u(i)))!==Object.prototype&&(e=o):p=!0),null==e&&(e={}),s||a(e,l)||c(e,l,(function(){return this})),t.exports={IteratorPrototype:e,BUGGY_SAFARI_ITERATORS:p}},function(t,r,n){"use strict";var e=n(0),o=n(75),i=n(34),u=n(74),c=n(31),a=n(18),f=n(37),s=n(6),l=n(27),p=n(33),h=n(76),v=h.IteratorPrototype,y=h.BUGGY_SAFARI_ITERATORS,d=s("iterator"),g=function(){return this};t.exports=function(t,r,n,s,h,b,m){o(n,r,s);var w,x,O,S=function(t){if(t===h&&R)return R;if(!y&&t in E)return E[t];switch(t){case"keys":case"values":case"entries":return function(){return new n(this,t)}}return function(){return new n(this)}},j=r+" Iterator",A=!1,E=t.prototype,I=E[d]||E["@@iterator"]||h&&E[h],R=!y&&I||S(h),T="Array"==r&&E.entries||I;if(T&&(w=i(T.call(new t)),v!==Object.prototype&&w.next&&(l||i(w)===v||(u?u(w,v):"function"!=typeof w[d]&&a(w,d,g)),c(w,j,!0,!0),l&&(p[j]=g))),"values"==h&&I&&"values"!==I.name&&(A=!0,R=function(){return I.call(this)}),l&&!m||E[d]===R||a(E,d,R),p[r]=R,h)if(x={values:S("values"),keys:b?R:S("keys"),entries:S("entries")},m)for(O in x)(y||A||!(O in E))&&f(E,O,x[O]);else e({target:r,proto:!0,forced:y||A},x);return x}},function(t,r,n){var e,o,i=n(8),u=n(136),c=i.process,a=c&&c.versions,f=a&&a.v8;f?o=(e=f.split("."))[0]+e[1]:u&&(!(e=u.match(/Edge\/(\d+)/))||e[1]>=74)&&(e=u.match(/Chrome\/(\d+)/))&&(o=e[1]),t.exports=o&&+o},function(t,r,n){"use strict";var e=n(15),o=n(5),i=n(42),u=function(t,r,n,c,a,f,s,l){for(var p,h=a,v=0,y=!!s&&i(s,l,3);v<c;){if(v in n){if(p=y?y(n[v],v,r):n[v],f>0&&e(p))h=u(t,r,p,o(p.length),h,f-1)-1;else{if(h>=9007199254740991)throw TypeError("Exceed the acceptable array length");t[h]=p}h++}v++}return h};t.exports=u},function(t,r,n){var e=n(23),o=n(2),i=n(25),u=n(5),c=function(t){return function(r,n,c,a){e(n);var f=o(r),s=i(f),l=u(f.length),p=t?l-1:0,h=t?-1:1;if(c<2)for(;;){if(p in s){a=s[p],p+=h;break}if(p+=h,t?p<0:l<=p)throw TypeError("Reduce of empty array with no initial value")}for(;t?p>=0:l>p;p+=h)p in s&&(a=n(a,s[p],p,f));return a}};t.exports={left:c(!1),right:c(!0)}},function(t,r,n){var e,o,i;function u(t){return(u="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)}i=function(){"use strict";var t=function(r,n){return(t=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,r){t.__proto__=r}||function(t,r){for(var n in r)r.hasOwnProperty(n)&&(t[n]=r[n])})(r,n)},r="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/";function n(t,r,n,e){var o,i,u,c=r||[0],a=(n=n||0)>>>3,f=-1===e?3:0;for(o=0;o<t.length;o+=1)i=(u=o+a)>>>2,c.length<=i&&c.push(0),c[i]|=t[o]<<8*(f+e*(u%4));return{value:c,binLen:8*t.length+n}}function e(t,e,o){switch(e){case"UTF8":case"UTF16BE":case"UTF16LE":break;default:throw new Error("encoding must be UTF8, UTF16BE, or UTF16LE")}switch(t){case"HEX":return function(t,r,n){return function(t,r,n,e){var o,i,u,c;if(0!=t.length%2)throw new Error("String of HEX type must be in byte increments");var a=r||[0],f=(n=n||0)>>>3,s=-1===e?3:0;for(o=0;o<t.length;o+=2){if(i=parseInt(t.substr(o,2),16),isNaN(i))throw new Error("String of HEX type contains invalid characters");for(u=(c=(o>>>1)+f)>>>2;a.length<=u;)a.push(0);a[u]|=i<<8*(s+e*(c%4))}return{value:a,binLen:4*t.length+n}}(t,r,n,o)};case"TEXT":return function(t,r,n){return function(t,r,n,e,o){var i,u,c,a,f,s,l,p,h=0,v=n||[0],y=(e=e||0)>>>3;if("UTF8"===r)for(l=-1===o?3:0,c=0;c<t.length;c+=1)for(u=[],128>(i=t.charCodeAt(c))?u.push(i):2048>i?(u.push(192|i>>>6),u.push(128|63&i)):55296>i||57344<=i?u.push(224|i>>>12,128|i>>>6&63,128|63&i):(c+=1,i=65536+((1023&i)<<10|1023&t.charCodeAt(c)),u.push(240|i>>>18,128|i>>>12&63,128|i>>>6&63,128|63&i)),a=0;a<u.length;a+=1){for(f=(s=h+y)>>>2;v.length<=f;)v.push(0);v[f]|=u[a]<<8*(l+o*(s%4)),h+=1}else for(l=-1===o?2:0,p="UTF16LE"===r&&1!==o||"UTF16LE"!==r&&1===o,c=0;c<t.length;c+=1){for(i=t.charCodeAt(c),!0===p&&(i=(a=255&i)<<8|i>>>8),f=(s=h+y)>>>2;v.length<=f;)v.push(0);v[f]|=i<<8*(l+o*(s%4)),h+=2}return{value:v,binLen:8*h+e}}(t,e,r,n,o)};case"B64":return function(t,n,e){return function(t,n,e,o){var i,u,c,a,f,s,l=0,p=n||[0],h=(e=e||0)>>>3,v=-1===o?3:0,y=t.indexOf("=");if(-1===t.search(/^[a-zA-Z0-9=+/]+$/))throw new Error("Invalid character in base-64 string");if(t=t.replace(/=/g,""),-1!==y&&y<t.length)throw new Error("Invalid '=' found in base-64 string");for(i=0;i<t.length;i+=4){for(a=t.substr(i,4),c=0,u=0;u<a.length;u+=1)c|=r.indexOf(a.charAt(u))<<18-6*u;for(u=0;u<a.length-1;u+=1){for(f=(s=l+h)>>>2;p.length<=f;)p.push(0);p[f]|=(c>>>16-8*u&255)<<8*(v+o*(s%4)),l+=1}}return{value:p,binLen:8*l+e}}(t,n,e,o)};case"BYTES":return function(t,r,n){return function(t,r,n,e){var o,i,u,c,a=r||[0],f=(n=n||0)>>>3,s=-1===e?3:0;for(i=0;i<t.length;i+=1)o=t.charCodeAt(i),u=(c=i+f)>>>2,a.length<=u&&a.push(0),a[u]|=o<<8*(s+e*(c%4));return{value:a,binLen:8*t.length+n}}(t,r,n,o)};case"ARRAYBUFFER":try{new ArrayBuffer(0)}catch(t){throw new Error("ARRAYBUFFER not supported by this environment")}return function(t,r,e){return function(t,r,e,o){return n(new Uint8Array(t),r,e,o)}(t,r,e,o)};case"UINT8ARRAY":try{new Uint8Array(0)}catch(t){throw new Error("UINT8ARRAY not supported by this environment")}return function(t,r,e){return n(t,r,e,o)};default:throw new Error("format must be HEX, TEXT, B64, BYTES, ARRAYBUFFER, or UINT8ARRAY")}}function o(t,n,e,o){switch(t){case"HEX":return function(t){return function(t,r,n,e){var o,i,u="",c=r/8,a=-1===n?3:0;for(o=0;o<c;o+=1)i=t[o>>>2]>>>8*(a+n*(o%4)),u+="0123456789abcdef".charAt(i>>>4&15)+"0123456789abcdef".charAt(15&i);return e.outputUpper?u.toUpperCase():u}(t,n,e,o)};case"B64":return function(t){return function(t,n,e,o){var i,u,c,a,f,s="",l=n/8,p=-1===e?3:0;for(i=0;i<l;i+=3)for(a=i+1<l?t[i+1>>>2]:0,f=i+2<l?t[i+2>>>2]:0,c=(t[i>>>2]>>>8*(p+e*(i%4))&255)<<16|(a>>>8*(p+e*((i+1)%4))&255)<<8|f>>>8*(p+e*((i+2)%4))&255,u=0;u<4;u+=1)s+=8*i+6*u<=n?r.charAt(c>>>6*(3-u)&63):o.b64Pad;return s}(t,n,e,o)};case"BYTES":return function(t){return function(t,r,n){var e,o,i="",u=r/8,c=-1===n?3:0;for(e=0;e<u;e+=1)o=t[e>>>2]>>>8*(c+n*(e%4))&255,i+=String.fromCharCode(o);return i}(t,n,e)};case"ARRAYBUFFER":try{new ArrayBuffer(0)}catch(t){throw new Error("ARRAYBUFFER not supported by this environment")}return function(t){return function(t,r,n){var e,o=r/8,i=new ArrayBuffer(o),u=new Uint8Array(i),c=-1===n?3:0;for(e=0;e<o;e+=1)u[e]=t[e>>>2]>>>8*(c+n*(e%4))&255;return i}(t,n,e)};case"UINT8ARRAY":try{new Uint8Array(0)}catch(t){throw new Error("UINT8ARRAY not supported by this environment")}return function(t){return function(t,r,n){var e,o=r/8,i=-1===n?3:0,u=new Uint8Array(o);for(e=0;e<o;e+=1)u[e]=t[e>>>2]>>>8*(i+n*(e%4))&255;return u}(t,n,e)};default:throw new Error("format must be HEX, B64, BYTES, ARRAYBUFFER, or UINT8ARRAY")}}function i(t){var r={outputUpper:!1,b64Pad:"=",outputLen:-1},n=t||{},e="Output length must be a multiple of 8";if(r.outputUpper=n.outputUpper||!1,n.b64Pad&&(r.b64Pad=n.b64Pad),n.outputLen){if(n.outputLen%8!=0)throw new Error(e);r.outputLen=n.outputLen}else if(n.shakeLen){if(n.shakeLen%8!=0)throw new Error(e);r.outputLen=n.shakeLen}if("boolean"!=typeof r.outputUpper)throw new Error("Invalid outputUpper formatting option");if("string"!=typeof r.b64Pad)throw new Error("Invalid b64Pad formatting option");return r}function u(t,r){return t<<r|t>>>32-r}function c(t,r,n){return t^r^n}function a(t,r,n){return t&r^t&n^r&n}function f(t,r){var n=(65535&t)+(65535&r);return(65535&(t>>>16)+(r>>>16)+(n>>>16))<<16|65535&n}function s(t,r,n,e,o){var i=(65535&t)+(65535&r)+(65535&n)+(65535&e)+(65535&o);return(65535&(t>>>16)+(r>>>16)+(n>>>16)+(e>>>16)+(o>>>16)+(i>>>16))<<16|65535&i}function l(t){return[1732584193,4023233417,2562383102,271733878,3285377520]}function p(t,r){var n,e,o,i,l,p,h,v,y=[];for(n=r[0],e=r[1],o=r[2],i=r[3],l=r[4],h=0;h<80;h+=1)y[h]=h<16?t[h]:u(y[h-3]^y[h-8]^y[h-14]^y[h-16],1),p=h<20?s(u(n,5),(v=e)&o^~v&i,l,1518500249,y[h]):h<40?s(u(n,5),c(e,o,i),l,1859775393,y[h]):h<60?s(u(n,5),a(e,o,i),l,2400959708,y[h]):s(u(n,5),c(e,o,i),l,3395469782,y[h]),l=i,i=o,o=u(e,30),e=n,n=p;return r[0]=f(n,r[0]),r[1]=f(e,r[1]),r[2]=f(o,r[2]),r[3]=f(i,r[3]),r[4]=f(l,r[4]),r}function h(t,r,n,e){for(var o,i=15+(r+65>>>9<<4),u=r+n;t.length<=i;)t.push(0);for(t[r>>>5]|=128<<24-r%32,t[i]=4294967295&u,t[i-1]=u/4294967296|0,o=0;o<t.length;o+=16)e=p(t.slice(o,o+16),e);return e}return function(r){function n(t,n,o){var i=this;if("SHA-1"!==t)throw new Error("Chosen SHA variant is not supported");var u=o||{};return(i=r.call(this,t,n,o)||this).t=!0,i.i=i.o,i.u=-1,i.s=e(i.h,i.v,i.u),i.A=p,i.p=function(t){return t.slice()},i.l=l,i.R=h,i.U=[1732584193,4023233417,2562383102,271733878,3285377520],i.T=512,i.m=160,i.F=!1,u.hmacKey&&i.B(function(t,r,n,o){var i="hmacKey must include a value and format";if(!r)throw new Error(i);if(void 0===r.value||!r.format)throw new Error(i);return e(r.format,r.encoding||"UTF8",n)(r.value)}(0,u.hmacKey,i.u)),i}return function(r,n){function e(){this.constructor=r}t(r,n),r.prototype=null===n?Object.create(n):(e.prototype=n.prototype,new e)}(n,r),n}(function(){function t(t,r,n){var e=n||{};if(this.h=r,this.v=e.encoding||"UTF8",this.numRounds=e.numRounds||1,isNaN(this.numRounds)||this.numRounds!==parseInt(this.numRounds,10)||1>this.numRounds)throw new Error("numRounds must a integer >= 1");this.g=t,this.Y=[],this.I=0,this.C=!1,this.H=0,this.L=!1,this.N=[],this.S=[]}return t.prototype.update=function(t){var r,n=0,e=this.T>>>5,o=this.s(t,this.Y,this.I),i=o.binLen,u=o.value,c=i>>>5;for(r=0;r<c;r+=e)n+this.T<=i&&(this.U=this.A(u.slice(r,r+e),this.U),n+=this.T);this.H+=n,this.Y=u.slice(n>>>5),this.I=i%this.T,this.C=!0},t.prototype.getHash=function(t,r){var n,e,u=this.m,c=i(r);if(!0===this.F){if(-1===c.outputLen)throw new Error("Output length must be specified in options");u=c.outputLen}var a=o(t,u,this.u,c);if(!0===this.L&&this.i)return a(this.i(c));for(e=this.R(this.Y.slice(),this.I,this.H,this.p(this.U),u),n=1;n<this.numRounds;n+=1)!0===this.F&&u%32!=0&&(e[e.length-1]&=16777215>>>24-u%32),e=this.R(e,u,0,this.l(this.g),u);return a(e)},t.prototype.setHMACKey=function(t,r,n){if(!0!==this.t)throw new Error("Variant does not support HMAC");if(!0===this.C)throw new Error("Cannot set MAC key after calling update");var o=e(r,(n||{}).encoding||"UTF8",this.u);this.B(o(t))},t.prototype.B=function(t){var r,n=this.T>>>3,e=n/4-1;if(1!==this.numRounds)throw new Error("Cannot set numRounds with MAC");if(!0===this.L)throw new Error("MAC key already set");for(n<t.binLen/8&&(t.value=this.R(t.value,t.binLen,0,this.l(this.g),this.m));t.value.length<=e;)t.value.push(0);for(r=0;r<=e;r+=1)this.N[r]=909522486^t.value[r],this.S[r]=1549556828^t.value[r];this.U=this.A(this.N,this.U),this.H=this.T,this.L=!0},t.prototype.getHMAC=function(t,r){var n=i(r);return o(t,this.m,this.u,n)(this.o())},t.prototype.o=function(){var t;if(!1===this.L)throw new Error("Cannot call getHMAC without first setting MAC key");var r=this.R(this.Y.slice(),this.I,this.H,this.p(this.U),this.m);return t=this.A(this.S,this.l(this.g)),this.R(r,this.m,this.T,t,this.m)},t}())},"object"==u(r)&&void 0!==t?t.exports=i():void 0===(o="function"==typeof(e=i)?e.call(r,n,r,t):e)||(t.exports=o)},function(t,r,n){var e=n(83);n(123),n(124),n(125),t.exports=e},function(t,r,n){n(84),n(91),n(93),n(94),n(95),n(96),n(97),n(98),n(100),n(101),n(102),n(103),n(104),n(106),n(107),n(108),n(109),n(110),n(111),n(112),n(114),n(115),n(117),n(118),n(119),n(120),n(121),n(122);var e=n(40);t.exports=e.Object},function(t,r,n){"use strict";var e=n(0),o=n(8),i=n(29),u=n(27),c=n(3),a=n(53),f=n(64),s=n(1),l=n(9),p=n(15),h=n(4),v=n(14),y=n(2),d=n(11),g=n(20),b=n(24),m=n(41),w=n(22),x=n(49),O=n(66),S=n(52),j=n(17),A=n(7),E=n(36),I=n(18),R=n(37),T=n(48),F=n(38),_=n(28),U=n(39),C=n(6),k=n(67),P=n(90),N=n(31),L=n(26),M=n(16).forEach,B=F("hidden"),Y=C("toPrimitive"),H=L.set,D=L.getterFor("Symbol"),z=Object.prototype,X=o.Symbol,q=i("JSON","stringify"),W=j.f,G=A.f,K=O.f,$=E.f,J=T("symbols"),Q=T("op-symbols"),V=T("string-to-symbol-registry"),Z=T("symbol-to-string-registry"),tt=T("wks"),rt=o.QObject,nt=!rt||!rt.prototype||!rt.prototype.findChild,et=c&&s((function(){return 7!=m(G({},"a",{get:function(){return G(this,"a",{value:7}).a}})).a}))?function(t,r,n){var e=W(z,r);e&&delete z[r],G(t,r,n),e&&t!==z&&G(z,r,e)}:G,ot=function(t,r){var n=J[t]=m(X.prototype);return H(n,{type:"Symbol",tag:t,description:r}),c||(n.description=r),n},it=f?function(t){return"symbol"==typeof t}:function(t){return Object(t)instanceof X},ut=function(t,r,n){t===z&&ut(Q,r,n),v(t);var e=g(r,!0);return v(n),l(J,e)?(n.enumerable?(l(t,B)&&t[B][e]&&(t[B][e]=!1),n=m(n,{enumerable:b(0,!1)})):(l(t,B)||G(t,B,b(1,{})),t[B][e]=!0),et(t,e,n)):G(t,e,n)},ct=function(t,r){v(t);var n=d(r),e=w(n).concat(lt(n));return M(e,(function(r){c&&!at.call(n,r)||ut(t,r,n[r])})),t},at=function(t){var r=g(t,!0),n=$.call(this,r);return!(this===z&&l(J,r)&&!l(Q,r))&&(!(n||!l(this,r)||!l(J,r)||l(this,B)&&this[B][r])||n)},ft=function(t,r){var n=d(t),e=g(r,!0);if(n!==z||!l(J,e)||l(Q,e)){var o=W(n,e);return!o||!l(J,e)||l(n,B)&&n[B][e]||(o.enumerable=!0),o}},st=function(t){var r=K(d(t)),n=[];return M(r,(function(t){l(J,t)||l(_,t)||n.push(t)})),n},lt=function(t){var r=t===z,n=K(r?Q:d(t)),e=[];return M(n,(function(t){!l(J,t)||r&&!l(z,t)||e.push(J[t])})),e};a||(R((X=function(){if(this instanceof X)throw TypeError("Symbol is not a constructor");var t=arguments.length&&void 0!==arguments[0]?String(arguments[0]):void 0,r=U(t),n=function(t){this===z&&n.call(Q,t),l(this,B)&&l(this[B],r)&&(this[B][r]=!1),et(this,r,b(1,t))};return c&&nt&&et(z,r,{configurable:!0,set:n}),ot(r,t)}).prototype,"toString",(function(){return D(this).tag})),R(X,"withoutSetter",(function(t){return ot(U(t),t)})),E.f=at,A.f=ut,j.f=ft,x.f=O.f=st,S.f=lt,k.f=function(t){return ot(C(t),t)},c&&(G(X.prototype,"description",{configurable:!0,get:function(){return D(this).description}}),u||R(z,"propertyIsEnumerable",at,{unsafe:!0}))),e({global:!0,wrap:!0,forced:!a,sham:!a},{Symbol:X}),M(w(tt),(function(t){P(t)})),e({target:"Symbol",stat:!0,forced:!a},{for:function(t){var r=String(t);if(l(V,r))return V[r];var n=X(r);return V[r]=n,Z[n]=r,n},keyFor:function(t){if(!it(t))throw TypeError(t+" is not a symbol");if(l(Z,t))return Z[t]},useSetter:function(){nt=!0},useSimple:function(){nt=!1}}),e({target:"Object",stat:!0,forced:!a,sham:!c},{create:function(t,r){return void 0===r?m(t):ct(m(t),r)},defineProperty:ut,defineProperties:ct,getOwnPropertyDescriptor:ft}),e({target:"Object",stat:!0,forced:!a},{getOwnPropertyNames:st,getOwnPropertySymbols:lt}),e({target:"Object",stat:!0,forced:s((function(){S.f(1)}))},{getOwnPropertySymbols:function(t){return S.f(y(t))}}),q&&e({target:"JSON",stat:!0,forced:!a||s((function(){var t=X();return"[null]"!=q([t])||"{}"!=q({a:t})||"{}"!=q(Object(t))}))},{stringify:function(t,r,n){for(var e,o=[t],i=1;arguments.length>i;)o.push(arguments[i++]);if(e=r,(h(r)||void 0!==t)&&!it(t))return p(r)||(r=function(t,r){if("function"==typeof e&&(r=e.call(this,t,r)),!it(r))return r}),o[1]=r,q.apply(null,o)}}),X.prototype[Y]||I(X.prototype,Y,X.prototype.valueOf),N(X,"Symbol"),_[B]=!0},function(t,r){function n(t){return(n="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)}var e;e=function(){return this}();try{e=e||new Function("return this")()}catch(t){"object"===("undefined"==typeof window?"undefined":n(window))&&(e=window)}t.exports=e},function(t,r,n){var e=n(8),o=n(60),i=e.WeakMap;t.exports="function"==typeof i&&/native code/.test(o(i))},function(t,r,n){var e=n(9),o=n(62),i=n(17),u=n(7);t.exports=function(t,r){for(var n=o(r),c=u.f,a=i.f,f=0;f<n.length;f++){var s=n[f];e(t,s)||c(t,s,a(r,s))}}},function(t,r,n){var e=n(1),o=/#|\.prototype\./,i=function(t,r){var n=c[u(t)];return n==f||n!=a&&("function"==typeof r?e(r):!!r)},u=i.normalize=function(t){return String(t).replace(o,".").toLowerCase()},c=i.data={},a=i.NATIVE="N",f=i.POLYFILL="P";t.exports=i},function(t,r,n){var e=n(29);t.exports=e("document","documentElement")},function(t,r,n){var e=n(40),o=n(9),i=n(67),u=n(7).f;t.exports=function(t){var r=e.Symbol||(e.Symbol={});o(r,t)||u(r,t,{value:i.f(t)})}},function(t,r,n){var e=n(0),o=n(92);e({target:"Object",stat:!0,forced:Object.assign!==o},{assign:o})},function(t,r,n){"use strict";var e=n(3),o=n(1),i=n(22),u=n(52),c=n(36),a=n(2),f=n(25),s=Object.assign,l=Object.defineProperty;t.exports=!s||o((function(){if(e&&1!==s({b:1},s(l({},"a",{enumerable:!0,get:function(){l(this,"b",{value:3,enumerable:!1})}}),{b:2})).b)return!0;var t={},r={},n=Symbol();return t[n]=7,"abcdefghijklmnopqrst".split("").forEach((function(t){r[t]=t})),7!=s({},t)[n]||"abcdefghijklmnopqrst"!=i(s({},r)).join("")}))?function(t,r){for(var n=a(t),o=arguments.length,s=1,l=u.f,p=c.f;o>s;)for(var h,v=f(arguments[s++]),y=l?i(v).concat(l(v)):i(v),d=y.length,g=0;d>g;)h=y[g++],e&&!p.call(v,h)||(n[h]=v[h]);return n}:s},function(t,r,n){n(0)({target:"Object",stat:!0,sham:!n(3)},{create:n(41)})},function(t,r,n){var e=n(0),o=n(3);e({target:"Object",stat:!0,forced:!o,sham:!o},{defineProperty:n(7).f})},function(t,r,n){var e=n(0),o=n(3);e({target:"Object",stat:!0,forced:!o,sham:!o},{defineProperties:n(65)})},function(t,r,n){var e=n(0),o=n(68).entries;e({target:"Object",stat:!0},{entries:function(t){return o(t)}})},function(t,r,n){var e=n(0),o=n(43),i=n(1),u=n(4),c=n(54).onFreeze,a=Object.freeze;e({target:"Object",stat:!0,forced:i((function(){a(1)})),sham:!o},{freeze:function(t){return a&&u(t)?a(c(t)):t}})},function(t,r,n){var e=n(0),o=n(99),i=n(19);e({target:"Object",stat:!0},{fromEntries:function(t){var r={};return o(t,(function(t,n){i(r,t,n)}),void 0,!0),r}})},function(t,r,n){var e=n(14),o=n(69),i=n(5),u=n(42),c=n(70),a=n(72),f=function(t,r){this.stopped=t,this.result=r};(t.exports=function(t,r,n,s,l){var p,h,v,y,d,g,b,m=u(r,n,s?2:1);if(l)p=t;else{if("function"!=typeof(h=c(t)))throw TypeError("Target is not iterable");if(o(h)){for(v=0,y=i(t.length);y>v;v++)if((d=s?m(e(b=t[v])[0],b[1]):m(t[v]))&&d instanceof f)return d;return new f(!1)}p=h.call(t)}for(g=p.next;!(b=g.call(p)).done;)if("object"==typeof(d=a(p,m,b.value,s))&&d&&d instanceof f)return d;return new f(!1)}).stop=function(t){return new f(!0,t)}},function(t,r,n){var e=n(0),o=n(1),i=n(11),u=n(17).f,c=n(3),a=o((function(){u(1)}));e({target:"Object",stat:!0,forced:!c||a,sham:!c},{getOwnPropertyDescriptor:function(t,r){return u(i(t),r)}})},function(t,r,n){var e=n(0),o=n(3),i=n(62),u=n(11),c=n(17),a=n(19);e({target:"Object",stat:!0,sham:!o},{getOwnPropertyDescriptors:function(t){for(var r,n,e=u(t),o=c.f,f=i(e),s={},l=0;f.length>l;)void 0!==(n=o(e,r=f[l++]))&&a(s,r,n);return s}})},function(t,r,n){var e=n(0),o=n(1),i=n(66).f;e({target:"Object",stat:!0,forced:o((function(){return!Object.getOwnPropertyNames(1)}))},{getOwnPropertyNames:i})},function(t,r,n){var e=n(0),o=n(1),i=n(2),u=n(34),c=n(73);e({target:"Object",stat:!0,forced:o((function(){u(1)})),sham:!c},{getPrototypeOf:function(t){return u(i(t))}})},function(t,r,n){n(0)({target:"Object",stat:!0},{is:n(105)})},function(t,r){t.exports=Object.is||function(t,r){return t===r?0!==t||1/t==1/r:t!=t&&r!=r}},function(t,r,n){var e=n(0),o=n(1),i=n(4),u=Object.isExtensible;e({target:"Object",stat:!0,forced:o((function(){u(1)}))},{isExtensible:function(t){return!!i(t)&&(!u||u(t))}})},function(t,r,n){var e=n(0),o=n(1),i=n(4),u=Object.isFrozen;e({target:"Object",stat:!0,forced:o((function(){u(1)}))},{isFrozen:function(t){return!i(t)||!!u&&u(t)}})},function(t,r,n){var e=n(0),o=n(1),i=n(4),u=Object.isSealed;e({target:"Object",stat:!0,forced:o((function(){u(1)}))},{isSealed:function(t){return!i(t)||!!u&&u(t)}})},function(t,r,n){var e=n(0),o=n(2),i=n(22);e({target:"Object",stat:!0,forced:n(1)((function(){i(1)}))},{keys:function(t){return i(o(t))}})},function(t,r,n){var e=n(0),o=n(4),i=n(54).onFreeze,u=n(43),c=n(1),a=Object.preventExtensions;e({target:"Object",stat:!0,forced:c((function(){a(1)})),sham:!u},{preventExtensions:function(t){return a&&o(t)?a(i(t)):t}})},function(t,r,n){var e=n(0),o=n(4),i=n(54).onFreeze,u=n(43),c=n(1),a=Object.seal;e({target:"Object",stat:!0,forced:c((function(){a(1)})),sham:!u},{seal:function(t){return a&&o(t)?a(i(t)):t}})},function(t,r,n){n(0)({target:"Object",stat:!0},{setPrototypeOf:n(74)})},function(t,r,n){var e=n(4);t.exports=function(t){if(!e(t)&&null!==t)throw TypeError("Can't set "+String(t)+" as a prototype");return t}},function(t,r,n){var e=n(0),o=n(68).values;e({target:"Object",stat:!0},{values:function(t){return o(t)}})},function(t,r,n){var e=n(55),o=n(37),i=n(116);e||o(Object.prototype,"toString",i,{unsafe:!0})},function(t,r,n){"use strict";var e=n(55),o=n(71);t.exports=e?{}.toString:function(){return"[object "+o(this)+"]"}},function(t,r,n){"use strict";var e=n(0),o=n(3),i=n(44),u=n(2),c=n(23),a=n(7);o&&e({target:"Object",proto:!0,forced:i},{__defineGetter__:function(t,r){a.f(u(this),t,{get:c(r),enumerable:!0,configurable:!0})}})},function(t,r,n){"use strict";var e=n(0),o=n(3),i=n(44),u=n(2),c=n(23),a=n(7);o&&e({target:"Object",proto:!0,forced:i},{__defineSetter__:function(t,r){a.f(u(this),t,{set:c(r),enumerable:!0,configurable:!0})}})},function(t,r,n){"use strict";var e=n(0),o=n(3),i=n(44),u=n(2),c=n(20),a=n(34),f=n(17).f;o&&e({target:"Object",proto:!0,forced:i},{__lookupGetter__:function(t){var r,n=u(this),e=c(t,!0);do{if(r=f(n,e))return r.get}while(n=a(n))}})},function(t,r,n){"use strict";var e=n(0),o=n(3),i=n(44),u=n(2),c=n(20),a=n(34),f=n(17).f;o&&e({target:"Object",proto:!0,forced:i},{__lookupSetter__:function(t){var r,n=u(this),e=c(t,!0);do{if(r=f(n,e))return r.set}while(n=a(n))}})},function(t,r,n){n(31)(Math,"Math",!0)},function(t,r,n){var e=n(8);n(31)(e.JSON,"JSON",!0)},function(t,r,n){"use strict";var e=n(0),o=n(56);e({target:"Object",stat:!0},{iterateEntries:function(t){return new o(t,"entries")}})},function(t,r,n){"use strict";var e=n(0),o=n(56);e({target:"Object",stat:!0},{iterateKeys:function(t){return new o(t,"keys")}})},function(t,r,n){"use strict";var e=n(0),o=n(56);e({target:"Object",stat:!0},{iterateValues:function(t){return new o(t,"values")}})},function(t,r,n){var e=n(127);n(167),n(168),n(169),t.exports=e},function(t,r,n){n(128),n(130),n(133),n(134),n(135),n(137),n(139),n(140),n(142),n(143),n(144),n(145),n(146),n(147),n(149),n(150),n(151),n(152),n(153),n(155),n(156),n(157),n(158),n(159),n(160),n(161),n(162),n(164),n(165),n(166);var e=n(40);t.exports=e.Array},function(t,r,n){"use strict";var e=n(129).charAt,o=n(26),i=n(77),u=o.set,c=o.getterFor("String Iterator");i(String,"String",(function(t){u(this,{type:"String Iterator",string:String(t),index:0})}),(function(){var t,r=c(this),n=r.string,o=r.index;return o>=n.length?{value:void 0,done:!0}:(t=e(n,o),r.index+=t.length,{value:t,done:!1})}))},function(t,r,n){var e=n(21),o=n(46),i=function(t){return function(r,n){var i,u,c=String(o(r)),a=e(n),f=c.length;return a<0||a>=f?t?"":void 0:(i=c.charCodeAt(a))<55296||i>56319||a+1===f||(u=c.charCodeAt(a+1))<56320||u>57343?t?c.charAt(a):i:t?c.slice(a,a+2):u-56320+(i-55296<<10)+65536}};t.exports={codeAt:i(!1),charAt:i(!0)}},function(t,r,n){var e=n(0),o=n(131);e({target:"Array",stat:!0,forced:!n(132)((function(t){Array.from(t)}))},{from:o})},function(t,r,n){"use strict";var e=n(42),o=n(2),i=n(72),u=n(69),c=n(5),a=n(19),f=n(70);t.exports=function(t){var r,n,s,l,p,h,v=o(t),y="function"==typeof this?this:Array,d=arguments.length,g=d>1?arguments[1]:void 0,b=void 0!==g,m=f(v),w=0;if(b&&(g=e(g,d>2?arguments[2]:void 0,2)),null==m||y==Array&&u(m))for(n=new y(r=c(v.length));r>w;w++)h=b?g(v[w],w):v[w],a(n,w,h);else for(p=(l=m.call(v)).next,n=new y;!(s=p.call(l)).done;w++)h=b?i(l,g,[s.value,w],!0):s.value,a(n,w,h);return n.length=w,n}},function(t,r,n){var e=n(6)("iterator"),o=!1;try{var i=0,u={next:function(){return{done:!!i++}},return:function(){o=!0}};u[e]=function(){return this},Array.from(u,(function(){throw 2}))}catch(t){}t.exports=function(t,r){if(!r&&!o)return!1;var n=!1;try{var i={};i[e]=function(){return{next:function(){return{done:n=!0}}}},t(i)}catch(t){}return n}},function(t,r,n){n(0)({target:"Array",stat:!0},{isArray:n(15)})},function(t,r,n){"use strict";var e=n(0),o=n(1),i=n(19);e({target:"Array",stat:!0,forced:o((function(){function t(){}return!(Array.of.call(t)instanceof t)}))},{of:function(){for(var t=0,r=arguments.length,n=new("function"==typeof this?this:Array)(r);r>t;)i(n,t,arguments[t++]);return n.length=r,n}})},function(t,r,n){"use strict";var e=n(0),o=n(1),i=n(15),u=n(4),c=n(2),a=n(5),f=n(19),s=n(32),l=n(35),p=n(6),h=n(78),v=p("isConcatSpreadable"),y=h>=51||!o((function(){var t=[];return t[v]=!1,t.concat()[0]!==t})),d=l("concat"),g=function(t){if(!u(t))return!1;var r=t[v];return void 0!==r?!!r:i(t)};e({target:"Array",proto:!0,forced:!y||!d},{concat:function(t){var r,n,e,o,i,u=c(this),l=s(u,0),p=0;for(r=-1,e=arguments.length;r<e;r++)if(g(i=-1===r?u:arguments[r])){if(p+(o=a(i.length))>9007199254740991)throw TypeError("Maximum allowed index exceeded");for(n=0;n<o;n++,p++)n in i&&f(l,p,i[n])}else{if(p>=9007199254740991)throw TypeError("Maximum allowed index exceeded");f(l,p++,i)}return l.length=p,l}})},function(t,r,n){var e=n(29);t.exports=e("navigator","userAgent")||""},function(t,r,n){var e=n(0),o=n(138),i=n(12);e({target:"Array",proto:!0},{copyWithin:o}),i("copyWithin")},function(t,r,n){"use strict";var e=n(2),o=n(30),i=n(5),u=Math.min;t.exports=[].copyWithin||function(t,r){var n=e(this),c=i(n.length),a=o(t,c),f=o(r,c),s=arguments.length>2?arguments[2]:void 0,l=u((void 0===s?c:o(s,c))-f,c-a),p=1;for(f<a&&a<f+l&&(p=-1,f+=l-1,a+=l-1);l-- >0;)f in n?n[a]=n[f]:delete n[a],a+=p,f+=p;return n}},function(t,r,n){"use strict";var e=n(0),o=n(16).every,i=n(13),u=n(10),c=i("every"),a=u("every");e({target:"Array",proto:!0,forced:!c||!a},{every:function(t){return o(this,t,arguments.length>1?arguments[1]:void 0)}})},function(t,r,n){var e=n(0),o=n(141),i=n(12);e({target:"Array",proto:!0},{fill:o}),i("fill")},function(t,r,n){"use strict";var e=n(2),o=n(30),i=n(5);t.exports=function(t){for(var r=e(this),n=i(r.length),u=arguments.length,c=o(u>1?arguments[1]:void 0,n),a=u>2?arguments[2]:void 0,f=void 0===a?n:o(a,n);f>c;)r[c++]=t;return r}},function(t,r,n){"use strict";var e=n(0),o=n(16).filter,i=n(35),u=n(10),c=i("filter"),a=u("filter");e({target:"Array",proto:!0,forced:!c||!a},{filter:function(t){return o(this,t,arguments.length>1?arguments[1]:void 0)}})},function(t,r,n){"use strict";var e=n(0),o=n(16).find,i=n(12),u=n(10),c=!0,a=u("find");"find"in[]&&Array(1).find((function(){c=!1})),e({target:"Array",proto:!0,forced:c||!a},{find:function(t){return o(this,t,arguments.length>1?arguments[1]:void 0)}}),i("find")},function(t,r,n){"use strict";var e=n(0),o=n(16).findIndex,i=n(12),u=n(10),c=!0,a=u("findIndex");"findIndex"in[]&&Array(1).findIndex((function(){c=!1})),e({target:"Array",proto:!0,forced:c||!a},{findIndex:function(t){return o(this,t,arguments.length>1?arguments[1]:void 0)}}),i("findIndex")},function(t,r,n){"use strict";var e=n(0),o=n(79),i=n(2),u=n(5),c=n(21),a=n(32);e({target:"Array",proto:!0},{flat:function(){var t=arguments.length?arguments[0]:void 0,r=i(this),n=u(r.length),e=a(r,0);return e.length=o(e,r,r,n,0,void 0===t?1:c(t)),e}})},function(t,r,n){"use strict";var e=n(0),o=n(79),i=n(2),u=n(5),c=n(23),a=n(32);e({target:"Array",proto:!0},{flatMap:function(t){var r,n=i(this),e=u(n.length);return c(t),(r=a(n,0)).length=o(r,n,n,e,0,1,t,arguments.length>1?arguments[1]:void 0),r}})},function(t,r,n){"use strict";var e=n(0),o=n(148);e({target:"Array",proto:!0,forced:[].forEach!=o},{forEach:o})},function(t,r,n){"use strict";var e=n(16).forEach,o=n(13),i=n(10),u=o("forEach"),c=i("forEach");t.exports=u&&c?[].forEach:function(t){return e(this,t,arguments.length>1?arguments[1]:void 0)}},function(t,r,n){"use strict";var e=n(0),o=n(50).includes,i=n(12);e({target:"Array",proto:!0,forced:!n(10)("indexOf",{ACCESSORS:!0,1:0})},{includes:function(t){return o(this,t,arguments.length>1?arguments[1]:void 0)}}),i("includes")},function(t,r,n){"use strict";var e=n(0),o=n(50).indexOf,i=n(13),u=n(10),c=[].indexOf,a=!!c&&1/[1].indexOf(1,-0)<0,f=i("indexOf"),s=u("indexOf",{ACCESSORS:!0,1:0});e({target:"Array",proto:!0,forced:a||!f||!s},{indexOf:function(t){return a?c.apply(this,arguments)||0:o(this,t,arguments.length>1?arguments[1]:void 0)}})},function(t,r,n){"use strict";var e=n(11),o=n(12),i=n(33),u=n(26),c=n(77),a=u.set,f=u.getterFor("Array Iterator");t.exports=c(Array,"Array",(function(t,r){a(this,{type:"Array Iterator",target:e(t),index:0,kind:r})}),(function(){var t=f(this),r=t.target,n=t.kind,e=t.index++;return!r||e>=r.length?(t.target=void 0,{value:void 0,done:!0}):"keys"==n?{value:e,done:!1}:"values"==n?{value:r[e],done:!1}:{value:[e,r[e]],done:!1}}),"values"),i.Arguments=i.Array,o("keys"),o("values"),o("entries")},function(t,r,n){"use strict";var e=n(0),o=n(25),i=n(11),u=n(13),c=[].join,a=o!=Object,f=u("join",",");e({target:"Array",proto:!0,forced:a||!f},{join:function(t){return c.call(i(this),void 0===t?",":t)}})},function(t,r,n){var e=n(0),o=n(154);e({target:"Array",proto:!0,forced:o!==[].lastIndexOf},{lastIndexOf:o})},function(t,r,n){"use strict";var e=n(11),o=n(21),i=n(5),u=n(13),c=n(10),a=Math.min,f=[].lastIndexOf,s=!!f&&1/[1].lastIndexOf(1,-0)<0,l=u("lastIndexOf"),p=c("indexOf",{ACCESSORS:!0,1:0}),h=s||!l||!p;t.exports=h?function(t){if(s)return f.apply(this,arguments)||0;var r=e(this),n=i(r.length),u=n-1;for(arguments.length>1&&(u=a(u,o(arguments[1]))),u<0&&(u=n+u);u>=0;u--)if(u in r&&r[u]===t)return u||0;return-1}:f},function(t,r,n){"use strict";var e=n(0),o=n(16).map,i=n(35),u=n(10),c=i("map"),a=u("map");e({target:"Array",proto:!0,forced:!c||!a},{map:function(t){return o(this,t,arguments.length>1?arguments[1]:void 0)}})},function(t,r,n){"use strict";var e=n(0),o=n(80).left,i=n(13),u=n(10),c=i("reduce"),a=u("reduce",{1:0});e({target:"Array",proto:!0,forced:!c||!a},{reduce:function(t){return o(this,t,arguments.length,arguments.length>1?arguments[1]:void 0)}})},function(t,r,n){"use strict";var e=n(0),o=n(80).right,i=n(13),u=n(10),c=i("reduceRight"),a=u("reduce",{1:0});e({target:"Array",proto:!0,forced:!c||!a},{reduceRight:function(t){return o(this,t,arguments.length,arguments.length>1?arguments[1]:void 0)}})},function(t,r,n){"use strict";var e=n(0),o=n(15),i=[].reverse,u=[1,2];e({target:"Array",proto:!0,forced:String(u)===String(u.reverse())},{reverse:function(){return o(this)&&(this.length=this.length),i.call(this)}})},function(t,r,n){"use strict";var e=n(0),o=n(4),i=n(15),u=n(30),c=n(5),a=n(11),f=n(19),s=n(6),l=n(35),p=n(10),h=l("slice"),v=p("slice",{ACCESSORS:!0,0:0,1:2}),y=s("species"),d=[].slice,g=Math.max;e({target:"Array",proto:!0,forced:!h||!v},{slice:function(t,r){var n,e,s,l=a(this),p=c(l.length),h=u(t,p),v=u(void 0===r?p:r,p);if(i(l)&&("function"!=typeof(n=l.constructor)||n!==Array&&!i(n.prototype)?o(n)&&null===(n=n[y])&&(n=void 0):n=void 0,n===Array||void 0===n))return d.call(l,h,v);for(e=new(void 0===n?Array:n)(g(v-h,0)),s=0;h<v;h++,s++)h in l&&f(e,s,l[h]);return e.length=s,e}})},function(t,r,n){"use strict";var e=n(0),o=n(16).some,i=n(13),u=n(10),c=i("some"),a=u("some");e({target:"Array",proto:!0,forced:!c||!a},{some:function(t){return o(this,t,arguments.length>1?arguments[1]:void 0)}})},function(t,r,n){"use strict";var e=n(0),o=n(23),i=n(2),u=n(1),c=n(13),a=[],f=a.sort,s=u((function(){a.sort(void 0)})),l=u((function(){a.sort(null)})),p=c("sort");e({target:"Array",proto:!0,forced:s||!l||!p},{sort:function(t){return void 0===t?f.call(i(this)):f.call(i(this),o(t))}})},function(t,r,n){n(163)("Array")},function(t,r,n){"use strict";var e=n(29),o=n(7),i=n(6),u=n(3),c=i("species");t.exports=function(t){var r=e(t),n=o.f;u&&r&&!r[c]&&n(r,c,{configurable:!0,get:function(){return this}})}},function(t,r,n){"use strict";var e=n(0),o=n(30),i=n(21),u=n(5),c=n(2),a=n(32),f=n(19),s=n(35),l=n(10),p=s("splice"),h=l("splice",{ACCESSORS:!0,0:0,1:2}),v=Math.max,y=Math.min;e({target:"Array",proto:!0,forced:!p||!h},{splice:function(t,r){var n,e,s,l,p,h,d=c(this),g=u(d.length),b=o(t,g),m=arguments.length;if(0===m?n=e=0:1===m?(n=0,e=g-b):(n=m-2,e=y(v(i(r),0),g-b)),g+n-e>9007199254740991)throw TypeError("Maximum allowed length exceeded");for(s=a(d,e),l=0;l<e;l++)(p=b+l)in d&&f(s,l,d[p]);if(s.length=e,n<e){for(l=b;l<g-e;l++)h=l+n,(p=l+e)in d?d[h]=d[p]:delete d[h];for(l=g;l>g-e+n;l--)delete d[l-1]}else if(n>e)for(l=g-e;l>b;l--)h=l+n-1,(p=l+e-1)in d?d[h]=d[p]:delete d[h];for(l=0;l<n;l++)d[l+b]=arguments[l+2];return d.length=g-e+n,s}})},function(t,r,n){n(12)("flat")},function(t,r,n){n(12)("flatMap")},function(t,r,n){var e=n(0),o=n(15),i=Object.isFrozen,u=function(t,r){if(!i||!o(t)||!i(t))return!1;for(var n,e=0,u=t.length;e<u;)if(!("string"==typeof(n=t[e++])||r&&void 0===n))return!1;return 0!==u};e({target:"Array",stat:!0},{isTemplateObject:function(t){if(!u(t,!0))return!1;var r=t.raw;return!(r.length!==t.length||!u(r,!1))}})},function(t,r,n){"use strict";var e=n(3),o=n(12),i=n(2),u=n(5),c=n(7).f;e&&!("lastItem"in[])&&(c(Array.prototype,"lastItem",{configurable:!0,get:function(){var t=i(this),r=u(t.length);return 0==r?void 0:t[r-1]},set:function(t){var r=i(this),n=u(r.length);return r[0==n?0:n-1]=t}}),o("lastItem"))},function(t,r,n){"use strict";var e=n(3),o=n(12),i=n(2),u=n(5),c=n(7).f;e&&!("lastIndex"in[])&&(c(Array.prototype,"lastIndex",{configurable:!0,get:function(){var t=i(this),r=u(t.length);return 0==r?0:r-1}}),o("lastIndex"))},function(t,r,n){"use strict";t.exports=function(t){return encodeURIComponent(t).replace(/[!'()*]/g,(function(t){return"%".concat(t.charCodeAt(0).toString(16).toUpperCase())}))}},function(t,r,n){"use strict";function e(t){return(e="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)}var o=new RegExp("%[a-f0-9]{2}","gi"),i=new RegExp("(%[a-f0-9]{2})+","gi");function u(t,r){try{return decodeURIComponent(t.join(""))}catch(t){}if(1===t.length)return t;r=r||1;var n=t.slice(0,r),e=t.slice(r);return Array.prototype.concat.call([],u(n),u(e))}function c(t){try{return decodeURIComponent(t)}catch(e){for(var r=t.match(o),n=1;n<r.length;n++)r=(t=u(r,n).join("")).match(o);return t}}t.exports=function(t){if("string"!=typeof t)throw new TypeError("Expected `encodedURI` to be of type `string`, got `"+e(t)+"`");try{return t=t.replace(/\+/g," "),decodeURIComponent(t)}catch(r){return function(t){for(var r={"%FE%FF":"��","%FF%FE":"��"},n=i.exec(t);n;){try{r[n[0]]=decodeURIComponent(n[0])}catch(t){var e=c(n[0]);e!==n[0]&&(r[n[0]]=e)}n=i.exec(t)}r["%C2"]="�";for(var o=Object.keys(r),u=0;u<o.length;u++){var a=o[u];t=t.replace(new RegExp(a,"g"),r[a])}return t}(t)}}},function(t,r,n){"use strict";t.exports=function(t,r){if("string"!=typeof t||"string"!=typeof r)throw new TypeError("Expected the arguments to be of type `string`");if(""===r)return[t];var n=t.indexOf(r);return-1===n?[t]:[t.slice(0,n),t.slice(n+r.length)]}},function(t,r,n){"use strict";function e(t){return encodeURIComponent(t).replace(/[!'()*]/g,(function(t){return"%"+t.charCodeAt(0).toString(16)}))}n.r(r),n.d(r,"signUrl",(function(){return s})),n.d(r,"verifyUrl",(function(){return l})),n(82),n(126);var o=n(81),i=n.n(o),u=n(57);function c(t){return Object(u.parseUrl)(t,{decode:!1})}function a(t,r){return Object(u.stringifyUrl)({url:t,query:r},{encode:!1})}function f(t){var r,n,o=c(t),u=o.query,f={};for(var s in u)f[e(s)]=e(u[s]);return r=a(o.url,f),(n=new i.a("SHA-1","TEXT",{encoding:"UTF8"})).update(r),n.getHash("B64")}function s(t,r){r||(r={timestamp:!1});var n=c(t),e=n.query;return r.timestamp&&(e.exp=(new Date).getTime().toString()),e.sig=encodeURIComponent(f(a(n.url,e))),a(n.url,e)}function l(t,r){r||(r={expiryTime:3e5});var n=c(t),e=n.query,o=decodeURIComponent(e.sig);if(!o)return!1;if(e.exp){var i=+e.exp,u=(new Date).getTime();if(isNaN(i))return!1;if(u-i>r.expiryTime)return!1}return delete e.sig,o===f(a(n.url,e))}}])}}]);
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
"use strict";(self.webpackChunk_clickview_library_editor=self.webpackChunk_clickview_library_editor||[]).push([[3987],{31709:function(e,t,a){a.d(t,{K:function(){return u}});var n=a(1024),r=a(99910),l=a(53808),i=a(52076),c=a(17439),o=a(63946),s=a(54753);function u(e){var t,a,u=e.showSpinner?n.createElement(r.Spinner,{as:"span",animation:"border",role:"status",size:"sm"}):e.children;if(e.tooltip&&e.svgName){var d=null!==(t=e.className)&&void 0!==t?t:"";return e.disabled&&!e.appLink&&(d+=" pointer-events-none"),n.createElement(o.u,{title:e.tooltip,spanHack:!0},n.createElement(c.h,{appLink:e.appLink,href:e.href,svgName:e.svgName,svgSize:e.svgSize,onClick:e.onClick,className:d,analyticsData:e.analyticsData,analyticsOptions:e.analyticsOptions,openInNewTab:e.openInNewTab,disabled:e.disabled},u))}if(e.svgName)return n.createElement(c.h,{onClick:e.onClick,appLink:e.appLink,href:e.href,svgName:e.svgName,svgSize:e.svgSize,className:e.className,analyticsData:e.analyticsData,analyticsOptions:e.analyticsOptions,openInNewTab:e.openInNewTab,disabled:e.disabled},u);if(e.tooltip&&e.appLink)return n.createElement(o.u,{title:e.tooltip,spanHack:!0},n.createElement(s.F,{onClick:e.onClick,appLink:e.appLink,className:e.className,analyticsData:e.analyticsData,analyticsOptions:e.analyticsOptions,openInNewTab:e.openInNewTab,disabled:e.disabled},u));if(e.appLink)return n.createElement(s.F,{onClick:e.onClick,appLink:e.appLink,className:e.className,analyticsData:e.analyticsData,analyticsOptions:e.analyticsOptions,openInNewTab:e.openInNewTab,disabled:e.disabled},u);function m(t){e.analyticsData&&e.analyticsOptions&&i.k.logUserAction(e.analyticsData,e.analyticsOptions),l.q.isFunction(e.onClick)&&e.onClick(t)}return e.tooltip?n.createElement(o.u,{title:e.tooltip,spanHack:!0},n.createElement("button",{onClick:m,className:"".concat(null!==(a=e.className)&&void 0!==a?a:"").concat(e.disabled?" pointer-events-none":""),disabled:e.disabled},u)):n.createElement("button",{onClick:m,className:e.className,disabled:e.disabled},u)}},86347:function(e,t,a){a.d(t,{b:function(){return s},n:function(){return o}});var n=a(1024),r=a(92802),l=a(53808),i=a(85887);function c(e){var t=i.t.deepClone(e);return Object.keys(t).forEach((function(e){t.hasOwnProperty(e)&&(i.t.isObject(t[e])?t[e]=c(t[e]):null===t[e]&&delete t[e])})),t}function o(e){var t=e.castInitialValues,a=e.castValuesOnSubmit,i=e.initialValues,o=e.onSubmit,s=function(e,t){var a={};for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&t.indexOf(n)<0&&(a[n]=e[n]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols){var r=0;for(n=Object.getOwnPropertySymbols(e);r<n.length;r++)t.indexOf(n[r])<0&&Object.prototype.propertyIsEnumerable.call(e,n[r])&&(a[n[r]]=e[n[r]])}return a}(e,["castInitialValues","castValuesOnSubmit","initialValues","onSubmit"]),u=t&&e.validationSchema?e.validationSchema.cast(c(i)):i,d={allowInitialSubmit:e.allowInitialSubmit};return n.createElement(r.J9,Object.assign({enableReinitialize:!0},s,{initialValues:u,onSubmit:function(t,n){var r=n.setSubmitting,l=n.resetForm,i=a&&e.validationSchema?e.validationSchema.cast(t):t;o(i,(function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};e.reset&&l(),r(!1)}))},initialStatus:d}),l.q.isFunction(e.children)?function(t){return e.children(t)}:n.Children.count(e.children)?e.children:null)}function s(){return(0,r.u6)()}o.defaultProps={castInitialValues:!0,castValuesOnSubmit:!0}},7378:function(e,t,a){a.r(t),a.d(t,{PendingRequestsView:function(){return Pe}});var n,r,l=a(1024),i=a.n(l),c=a(86120),o=a(23689),s=a(30317),u=a(17950),d=a(9416),m=a(66703),p=a(25796),b=a(5421),f=a(50997);function v(e){var t=e===n.Large?5.8:2,a=e===n.Large?.36:.2;return"".concat(t/2-2*a,"rem")}function y(e){return e>=.75?"text-success":e>=.5?"text-warning":"text-danger"}function g(e,t){var a="d-inline-block ".concat("p8Vgz");return e===n.Large&&(a+=" ".concat("N8KCI")),E(t)&&(a+=" ".concat("DKrcq")),a}function E(e){return"number"!=typeof e}function h(e){var t,a=i().useCallback((function(t){if(t){var a=t.r.baseVal.value,n=2*Math.PI*a,r=n-e.percentage*n;t.style.strokeDasharray="".concat(n," ").concat(n),t.style.strokeDashoffset=r.toString()}}),[]);return i().createElement("svg",null,i().createElement("circle",{r:v(e.size),className:"asGGE"}),!E(e.percentage)&&i().createElement("circle",{ref:a,r:v(e.size),className:(t=e.percentage,t>=.75?"PXLNj":t>=.5?"ZckRN":"slBRg")}))}function N(e){var t,a,l=function(e){if(!E(e))return+e.toFixed(2)}(e.percentage),c=e.layout===r.LabelInside?n.Large:n.Small,o=e.customLabel||(E(a=l)?"--%":"".concat(Math.round(100*a),"%"));return e.layout===r.LabelOnly?i().createElement("span",{className:y(l)},o):i().createElement("div",{className:"d-flex align-items-center justify-content-between ".concat(null!==(t=e.className)&&void 0!==t?t:"")},e.layout===r.LabelBefore&&i().createElement("span",{className:"mr-2"},o),i().createElement("div",{className:g(c,l)},i().createElement(h,{percentage:l,size:c}),e.layout===r.LabelInside&&i().createElement("span",{className:"tpmLR"},o)))}function k(e){return i().createElement("div",{className:"bg-white rounded px-3 py-2 mb-3 d-flex align-items-center"},i().createElement(N,null),i().createElement("div",{className:"pl-2"},i().createElement(m.x,{namespace:"libraryRequests.count",phrase:"count",options:{smartCount:e.count.count}})))}!function(e){e.Small="small",e.Large="large"}(n||(n={})),function(e){e.CircleOnly="circle_only",e.LabelOnly="label_only",e.LabelBefore="label_before",e.LabelInside="label_inside"}(r||(r={})),N.defaultProps={layout:r.CircleOnly};var w=a(95061),S=a(86347),R=a(98495),O=a(92802),L=a(5173),I=a(31647),C=a(63151);function q(e,t){(null==t||t>e.length)&&(t=e.length);for(var a=0,n=new Array(t);a<t;a++)n[a]=e[a];return n}var T={find:function(e,t){if(e&&e.children&&e.children.length)for(var a=function e(a){if(C.m.isEqual(a.id,t))return a;var n=a.children;if(n&&n.length)for(var r=0;r<n.length;r++){var l=e(n[r]);if(l)return l}},n=0;n<e.children.length;n++){var r=a(e.children[n]);if(r)return r}},getPath:function(e,t){for(var a=[t],n=function(e){return e.hasOwnProperty("parentIds")&&Array.isArray(e.parentIds)&&e.parentIds.length?e.parentIds[0]:e.hasOwnProperty("parentId")?e.parentId:null},r=n(t);r;){var l=T.find(e,r);l&&(a=[l].concat(function(e){if(Array.isArray(e))return q(e)}(i=a)||function(e){if("undefined"!=typeof Symbol&&null!=e[Symbol.iterator]||null!=e["@@iterator"])return Array.from(e)}(i)||function(e,t){if(e){if("string"==typeof e)return q(e,t);var a=Object.prototype.toString.call(e).slice(8,-1);return"Object"===a&&e.constructor&&(a=e.constructor.name),"Map"===a||"Set"===a?Array.from(e):"Arguments"===a||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(a)?q(e,t):void 0}}(i)||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.")}())),r=l?n(l):null}var i;return a},convertNestedObjectToTree:function(e){var t,a=Object.assign(Object.assign({},e.data),{children:e.children});return(null===(t=a.children)||void 0===t?void 0:t.length)&&(a.children=a.children.map(T.convertNestedObjectToTree)),a}},x=a(39396),A=a(6681),P=function(e){switch(e){case"up":return"JAT0R";case"down":return"ld41u";case"right":return"HHkPe";case"left":return"jZTRR"}};function j(e){return i().createElement(x.x,{svgName:A.vn.Caret,className:"".concat(P(e.direction)," svg-container d-inline-block ").concat(e.className)})}j.defaultProps={direction:"right"};var D=a(58424),F=a(53808),V=a(17439),_=a(63946),U=a(97874),B=a(52076),H=a(54753);function Q(e){var t="dropdown-item";return e&&(t+=" ".concat(e)),t}function Y(e){var t=F.q.isFunction(e.action.label)?e.action.label:function(){return e.action.label};if(e.action.appLink)return l.createElement(H.F,{appLink:e.action.appLink,onClick:e.action.onClick,className:Q(e.action.className),analyticsData:e.action.analyticsData,analyticsOptions:e.action.analyticsOptions,openInNewTab:e.action.openInNewTab,disabled:e.action.disabled},t());function a(t){t.preventDefault(),e.action.analyticsData&&e.action.analyticsOptions&&B.k.logUserAction(e.action.analyticsData,e.action.analyticsOptions),F.q.isFunction(e.action.onClick)&&e.action.onClick(),e.action.href&&I.Q.LocationUtils.PageLoad(e.action.href,e.action.openInNewTab)}return e.action.href?l.createElement("a",{className:Q(e.action.className),onClick:a,href:e.action.href},t()):l.createElement("span",{className:"cursor-pointer ".concat(Q(e.action.className)),onClick:a,role:"button",tabIndex:0,onKeyDown:function(e){return"Enter"===e.key&&a(e)}},t())}function z(e){if(!e.actions||!e.actions.length)return l.createElement(l.Fragment,null);var t="dropdown";e.className&&(t+=" ".concat(e.className));var a="actions-dropdown-".concat(U.Y.getRandomInt()),n="dropdown-toggle px-0 ".concat("UCAnJ");return e.dropdownToggleClassName&&(n+=" ".concat(e.dropdownToggleClassName)),l.createElement("div",{className:t},l.createElement("button",{className:n,type:"button",id:a,"data-toggle":"dropdown","aria-haspopup":"true","aria-expanded":"false"},l.createElement(x.x,{svgName:A.vn.More,size:x.S.Small})),l.createElement("div",{className:"dropdown-menu dropdown-menu-right","aria-labelledby":a},e.actions.map((function(e,t){return e.tooltip?l.createElement(_.u,{key:t,title:e.tooltip,spanHack:!0},l.createElement(Y,{action:e})):l.createElement(Y,{key:t,action:e})}))))}z.defaultProps={dropdownToggleClassName:"btn btn-light"};var M=a(31709);function G(e){var t=l.useMemo((function(){return e.actions.sort((function(e,t){return e.order-t.order}))}),[e.actions]),a=[],n=[];t.forEach((function(e){e.button?a.push(e):n.push(e)}));var r="d-flex";return e.className&&(r+=" ".concat(e.className)),a.length||n.length?l.createElement("div",{className:r},l.createElement(l.Fragment,null,l.createElement("span",{className:"d-flex align-items-center"},a.length?a.map((function(e,t){return l.createElement(l.Fragment,{key:t},function(){if(e.label){var t=F.q.isFunction(e.label)?e.label:function(){return e.label};return l.createElement(M.K,{appLink:e.appLink,href:e.href,onClick:e.onClick,svgName:e.svgName,className:e.className,tooltip:e.tooltip,showSpinner:e.showSpinner,analyticsData:e.analyticsData,analyticsOptions:e.analyticsOptions,openInNewTab:e.openInNewTab,disabled:e.disabled},t())}var a=l.createElement(V.h,{appLink:e.appLink,href:e.href,onClick:e.onClick,svgName:e.svgName,className:e.className,analyticsData:e.analyticsData,analyticsOptions:e.analyticsOptions,openInNewTab:e.openInNewTab,disabled:e.disabled});return e.tooltip?l.createElement(_.u,{title:e.tooltip,spanHack:!0},a):a}())})):l.createElement(l.Fragment,null),e.sortComponent&&e.sortComponent,n.length?l.createElement(z,{actions:n,dropdownToggleClassName:e.actionsDropdownClassName}):l.createElement(l.Fragment,null)))):l.createElement(l.Fragment,null)}var J={tree:"ZYvBT",text:"eVGWe",chevron:"v76mu",disabled:"wIrTq",root:"JDRq_",selected:"wT87N",actions:"fKJU4",node:"gOBrH",noActions:"fKmrr"};function K(e){function t(){var t="".concat(J.text," clamp-4");return e.className&&(t+=" ".concat(e.className)),t}return e.isDisabled?i().createElement(_.u,{title:e.disabledTooltip,spanHack:!0,spanHackClassName:"d-inline-block"},i().createElement("span",{className:"".concat(t()," text-muted ").concat(J.disabled)},e.text)):i().createElement("div",{className:t()},e.text)}function X(e,t){(null==t||t>e.length)&&(t=e.length);for(var a=0,n=new Array(t);a<t;a++)n[a]=e[a];return n}function W(e){var t,a,n,r=e.tree,i=e.selectedIds,c=e.getAppLink,o=e.onSelect,s=e.isDisabled,u=e.actions,d=e.isDropdown,m=l.useRef(null),p=l.useMemo((function(){return null==i?void 0:i.some((function(e){return T.find(r,e)}))}),[r,i]),b=(a=l.useState(p),n=2,function(e){if(Array.isArray(e))return e}(a)||function(e,t){var a=null==e?null:"undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null!=a){var n,r,l=[],i=!0,c=!1;try{for(a=a.call(e);!(i=(n=a.next()).done)&&(l.push(n.value),!t||l.length!==t);i=!0);}catch(e){c=!0,r=e}finally{try{i||null==a.return||a.return()}finally{if(c)throw r}}return l}}(a,n)||function(e,t){if(e){if("string"==typeof e)return X(e,t);var a=Object.prototype.toString.call(e).slice(8,-1);return"Object"===a&&e.constructor&&(a=e.constructor.name),"Map"===a||"Set"===a?Array.from(e):"Arguments"===a||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(a)?X(e,t):void 0}}(a,n)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()),f=b[0],v=b[1],y=null==i?void 0:i.some((function(e){return C.m.isEqual(r.id,e)})),g=!!r.children&&!!r.children.length;function E(){var t;e.multiSelect||v(!f),c?I.Q.AppLinkHelper.trigger(c(r)):(null===(t=e.isDisabled)||void 0===t?void 0:t.call(e,r))?o(null):null==o||o(r)}return l.useEffect((function(){if(m.current&&d){var e=function(e){e.stopPropagation(),E()};return m.current.addEventListener("click",e),function(){return m.current.removeEventListener("click",e)}}}),[m.current,o]),l.useEffect((function(){var t;e.multiSelect||f&&(p||y||!(null===(t=e.selectedIds)||void 0===t?void 0:t.length)&&(null==s?void 0:s(e.tree))||v(!1))}),[i]),l.createElement("li",{className:"position-relative ".concat(f?"":J.collapsed," ").concat(e.isRoot?J.root:"")},l.createElement("div",{className:"position-relative"},l.createElement(D.L,{className:(t="py-1 d-flex align-items-center w-100 position-relative ".concat(J.node),y&&(t+=" "+e.selectedLinkClassName),(null==u?void 0:u.length)||(t+=" "+J.noActions),p&&e.multiSelect&&(t+=" text-underline font-italic"),t),onClick:d?null:E,ref:m},g&&l.createElement("div",{className:J.chevron,onClick:function(t){t.stopPropagation(),e.multiSelect?v(!f):E()}},l.createElement(j,{direction:f?"down":"right"})),l.createElement(K,{text:r.name||r.description,isDisabled:null==s?void 0:s(r),disabledTooltip:e.disabledTooltip})),!!e.actions&&l.createElement(G,{className:J.actions,actions:null==u?void 0:u.map((function(e){return Object.assign(Object.assign({},e),{appLink:e.getAppLink(r)})})),actionsDropdownClassName:"btn btn-light ".concat("tree-actions")}),f&&l.createElement(Z,Object.assign({key:r.id},e,{isChild:!0}))))}W.defaultProps={selectedLinkClassName:J.selected};function Z(e){var t=e.tree,a=function(e,t){var a={};for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&t.indexOf(n)<0&&(a[n]=e[n]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols){var r=0;for(n=Object.getOwnPropertySymbols(e);r<n.length;r++)t.indexOf(n[r])<0&&Object.prototype.propertyIsEnumerable.call(e,n[r])&&(a[n[r]]=e[n[r]])}return a}(e,["tree"]);return t&&t.children?l.createElement("ul",{className:"m-0 p-0 list-unstyled ".concat(J.tree)},t.children.map((function(t,n){return l.createElement(W,Object.assign({key:n,tree:t},a,{isRoot:!e.isChild}))}))):l.createElement(l.Fragment,null)}var $="Jh8Ep",ee=a(48088),te=a(54096);function ae(e){var t=(0,te.G)(f.Or.Library);function a(a){t.getLibraries((function(t){return e(t.toJSON(),a.toJSON())}))}i().useEffect((function(){return ee.Radio.channel(f.Vk.LIBRARY).on("folder:created",a),function(){ee.Radio.channel(f.Vk.LIBRARY).off("folder:created",a)}}),[e])}var ne=a(18582),re=a(264),le="libraryRequests.destinationForm",ie=(0,L.Ry)().shape({library:(0,L.Ry)().required(),folder:(0,L.Ry)().required()});function ce(e){var t,a,n,r,l,c=(0,S.b)();return ae((function(e,t){var a=e.find((function(e){return e.id.toString()===c.values.library.id.toString()}));if(a){c.setFieldValue("library",a,!0);var n=T.find(a,t.id);n&&c.setFieldValue("folder",n,!0)}})),i().createElement("div",{className:"bg-white rounded p-3 mb-3"},i().createElement(O.l0,null,i().createElement("div",{className:"row mb-3"},i().createElement("div",{className:"col-3"},i().createElement("label",null,i().createElement(m.x,{namespace:le,phrase:"videoSource"}))),i().createElement("div",{className:"col-6"},!!e.libraryRequest.sourceLibrary&&i().createElement("span",{className:"badge p-1 mr-1 text-white ".concat(ne.u.mapSourceToClass(e.libraryRequest.sourceLibrary.type))},ne.u.mapSourceToDisplayName(e.libraryRequest.sourceLibrary,re.g.hasLite)),!!e.libraryRequest.sourceCategory&&i().createElement("span",{className:"ml-2"},e.libraryRequest.sourceCategory.name)),i().createElement("div",{className:"col-3 d-flex justify-content-end"},i().createElement("button",{type:"button",className:"btn btn-link",onClick:e.onReject},i().createElement(m.x,{namespace:le,phrase:"reject"})),i().createElement("button",{type:"submit",className:"btn btn-dark",disabled:!c.isValid},i().createElement(m.x,{namespace:le,phrase:"approve"})))),i().createElement("div",{className:"row"},i().createElement("div",{className:"col-3"},i().createElement("label",null,i().createElement(m.x,{namespace:le,phrase:"addTo"}))),i().createElement("div",{className:"col-6"},e.libraries.length>1&&i().createElement("div",{className:"dropdown mb-2"},i().createElement("button",{className:"dropdown-toggle btn-block form-control text-left position-relative ".concat($),type:"button",id:"select-library","data-toggle":"dropdown","aria-haspopup":"true","aria-expanded":"false"},i().createElement("div",{className:"text-truncate"},null!==(a=null===(t=c.values.library)||void 0===t?void 0:t.name)&&void 0!==a?a:i().createElement(m.x,{namespace:le,phrase:"selectALibrary"}))),i().createElement("div",{className:"dropdown-menu w-100","aria-labelledby":"select-library"},e.libraries.map((function(e,t){var a,n,r=e.id.toString()===(null===(n=null===(a=c.values.library)||void 0===a?void 0:a.id)||void 0===n?void 0:n.toString());return i().createElement("div",{className:"dropdown-item cursor-pointer ".concat(r?"active":""),key:t,onClick:function(){c.setFieldValue("library",e,!0),c.setFieldValue("folder",null,!0)}},e.name)})))),i().createElement("div",{className:"dropdown mb-2"},i().createElement("button",{className:"dropdown-toggle btn-block form-control text-left position-relative ".concat($),type:"button",id:"select-folder","data-toggle":"dropdown","aria-haspopup":"true","aria-expanded":"false",disabled:!c.values.library},i().createElement("div",{className:"text-truncate"},null!==(r=c.values.library&&(null===(n=c.values.folder)||void 0===n?void 0:n.name))&&void 0!==r?r:i().createElement(m.x,{namespace:le,phrase:"selectAFolder"}))),i().createElement("div",{className:"dropdown-menu w-100","aria-labelledby":"select-folder"},i().createElement(R.ZP,{autoHeight:!0,autoHeightMax:300,hideTracksWhenNotNeeded:!0},i().createElement(Z,{tree:c.values.library,onSelect:function(e){return c.setFieldValue("folder",e,!0)},selectedIds:(null===(l=c.values.folder)||void 0===l?void 0:l.id)?[c.values.folder.id]:void 0,selectedLinkClassName:"bg-light font-weight-500",isDropdown:!0}),c.values.library&&i().createElement(H.F,{className:"btn font-weight-bold rounded-0 w-100 text-left ".concat("hnfdj"),appLink:{application:f.OV.LIBRARY_REQUESTS,action:f.eX.Shared.NEW_FOLDER,args:[c.values.library.id]}},i().createElement(m.x,{namespace:le,phrase:"createNew"})))))))))}var oe=a(70065);function se(e){function t(t,a){var n,r,l,i,c,o,s={location:oe.LocationContext.StaffRequestDetails,actionType:t,entity:oe.EntityType.StaffRequest,workflowPhase:oe.WorkflowPhase.Start},u={id:e.libraryRequest.id,videoId:null===(n=e.libraryRequest.object)||void 0===n?void 0:n.id,requestingUserId:null===(r=e.libraryRequest.sender)||void 0===r?void 0:r.id,sourceLibraryId:null===(l=e.libraryRequest.sourceLibrary)||void 0===l?void 0:l.id,sourceFolderId:null===(i=e.libraryRequest.sourceCategory)||void 0===i?void 0:i.id,destinationLibraryId:null===(c=null==a?void 0:a.library)||void 0===c?void 0:c.id,destinationFolderId:null===(o=null==a?void 0:a.folder)||void 0===o?void 0:o.id};B.k.logUserAction(u,s)}return i().createElement(S.n,{initialValues:{library:e.libraries.find((function(t){var a;return t.id.toString()===(null===(a=e.libraryRequest.destinationLibrary)||void 0===a?void 0:a.id.toString())})),folder:e.libraryRequest.destinationCategory},validationSchema:ie,onSubmit:function(a){t(oe.UserAction.Approve,a),I.Q.AppLinkHelper.trigger({application:f.OV.LIBRARY_REQUESTS,action:f.eX.LibraryRequests.APPROVE,args:[e.libraryRequest.id],params:{libraryId:a.library.id,folderId:a.folder.id,queryParams:e.queryParams}})},validateOnMount:!0,enableReinitialize:!1},i().createElement(ce,{libraries:e.libraries,libraryRequest:e.libraryRequest,onReject:function(){t(oe.UserAction.Reject),I.Q.AppLinkHelper.trigger({application:f.OV.LIBRARY_REQUESTS,action:f.eX.LibraryRequests.REJECT,args:[e.libraryRequest.id],params:e.queryParams})}}))}var ue=a(23657),de=a(48404),me=a(9484),pe=a(59054),be=a(90335),fe=a(50072),ve=a(41777),ye=a(57857),ge=a(56154),Ee="libraryRequests.pendingRequestsEmptyState",he=ye.T.encloseNamespace(Ee);function Ne(){return i().createElement("div",{className:"bg-white rounded p-3 py-5"},i().createElement(ve.u,null,i().createElement(ve.u.Image,{src:ge.W.EmptyStates.PENDING_REQUESTS}),i().createElement(ve.u.Info,{className:"mb-1"},i().createElement(m.x,{namespace:Ee,phrase:"info"})),i().createElement(ve.u.Cta,{text:he("cta"),className:"btn btn-link text-info",appLink:{application:f.OV.LIBRARY_REQUESTS,action:f.eX.LibraryRequests.LIBRARY_REQUEST_SETTINGS_LIBRARIES}})))}var ke=a(30328),we=a(7044),Se=a(49824);function Re(){return i().createElement("div",{className:"bg-white rounded p-3 mb-3"},i().createElement("div",{className:"row"},i().createElement("div",{className:"col-3"},i().createElement("div",{className:"partial-loading-background",style:{height:"1.25rem",width:"6rem"}})),i().createElement("div",{className:"col-6"},i().createElement("div",{className:"partial-loading-background",style:{height:"1.25rem",width:"9rem"}})),i().createElement("div",{className:"col-3 d-flex justify-content-end align-items-center"},i().createElement("div",{className:"partial-loading-background rounded",style:{height:"1.25rem",width:"3rem"}}),i().createElement("div",{className:"partial-loading-background rounded ml-2",style:{height:"2.5rem",width:"5rem"}})),i().createElement("div",{className:"col-3"},i().createElement("div",{className:"partial-loading-background",style:{height:"1.25rem",width:"7rem"}})),i().createElement("div",{className:"col-6 mb-2"},i().createElement("div",{className:"partial-loading-background rounded mb-1",style:{height:"2.5rem"}}),i().createElement("div",{className:"partial-loading-background rounded",style:{height:"2.5rem"}}))))}var Oe=a(85739),Le=a(59198),Ie=a(64429),Ce=a(86242);function qe(e,t){return function(e){if(Array.isArray(e))return e}(e)||function(e,t){var a=null==e?null:"undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null!=a){var n,r,l=[],i=!0,c=!1;try{for(a=a.call(e);!(i=(n=a.next()).done)&&(l.push(n.value),!t||l.length!==t);i=!0);}catch(e){c=!0,r=e}finally{try{i||null==a.return||a.return()}finally{if(c)throw r}}return l}}(e,t)||function(e,t){if(e){if("string"==typeof e)return Te(e,t);var a=Object.prototype.toString.call(e).slice(8,-1);return"Object"===a&&e.constructor&&(a=e.constructor.name),"Map"===a||"Set"===a?Array.from(e):"Arguments"===a||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(a)?Te(e,t):void 0}}(e,t)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function Te(e,t){(null==t||t>e.length)&&(t=e.length);for(var a=0,n=new Array(t);a<t;a++)n[a]=e[a];return n}var xe="libraryRequests.pendingRequests",Ae=ye.T.encloseNamespace(xe);function Pe(e){var t,a=(0,Oe.p)(e.queryParams.sort||be.D.Newest,[fe.l.Pending]),n=c.a.useBasicFetch(e.id&&p.y.libraryRequest(e.id)),r=(0,Le.s)(e.id),l=c.a.useBasicFetch(p.y.pendingRequestsCount()),v=qe(i().useState(null),2),y=v[0],g=v[1];(0,o.i)(w.T.getLibrariesFetchOptions((function(e){return g(e.toJSON())})),[]),ae(g);var E=qe(i().useState(null),2),h=E[0],N=E[1];(0,o.i)(de.p.getConfigFetchOptions(N),[]);var S=qe(i().useState(null),2),R=S[0],O=S[1];(0,o.i)(me.K.getCurrentUserFetchOptions(O),[]);var L=(0,te.G)(f.Or.Player);(0,s.v)(n),(0,ke.A)({id:e.id,requests:a.items,appLink:{application:f.OV.LIBRARY_REQUESTS,action:f.eX.LibraryRequests.PENDING_REQUESTS,params:e.queryParams}}),(0,Ie.m)(n.data,"pending",e.queryParams);var I=a.hasCompleted&&y&&h&&R,C=n.data&&r.hasCompleted;return i().createElement("div",null,i().createElement("h1",{className:"h2"},i().createElement(m.x,{namespace:xe,phrase:"title"})),i().createElement("div",{className:"mb-3"},i().createElement(Ce.Oo,{breadcrumbs:[{name:Ae("libraryEditor"),appLink:{application:f.OV.LIBRARY_EDITOR,action:f.eX.LibraryEditor.HOME}},{name:Ae("title"),active:!0}]})),i().createElement(d.A,{active:"pending"}),!I||(null===(t=a.items)||void 0===t?void 0:t.length)?i().createElement(i().Fragment,null,i().createElement("div",{className:"d-flex justify-content-end mb-3"},i().createElement(u.F,{appLink:{application:f.OV.LIBRARY_REQUESTS,action:f.eX.LibraryRequests.PENDING_REQUESTS,args:[e.id]},queryParams:e.queryParams})),i().createElement("div",{className:"row"},i().createElement("div",{className:"col-4"},I?i().createElement(i().Fragment,null,i().createElement(k,{count:l.data}),i().createElement(b.q,{libraryRequests:a.items,selectedId:e.id,appLink:{application:f.OV.LIBRARY_REQUESTS,action:f.eX.LibraryRequests.PENDING_REQUESTS},queryParams:e.queryParams})):i().createElement(we.p,null)),i().createElement("div",{className:"col-8"},I&&C?i().createElement(i().Fragment,null,i().createElement(se,{libraryRequest:n.data,libraries:y,queryParams:e.queryParams}),i().createElement(ue.x,{libraryRequest:n.data,config:h,currentUser:R,createViewKey:function(e,t){L.createViewKey(e,pe.f.MasterObject,t)},comments:r.items})):i().createElement(i().Fragment,null,i().createElement(Re,null),i().createElement(Se.j,null))))):i().createElement(Ne,null))}}}]);
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
(self.webpackChunk_clickview_library_editor=self.webpackChunk_clickview_library_editor||[]).push([[400],{79665:function(e,t,n){"use strict";n.d(t,{A:function(){return m}});var o=n(39479),r=n(48088),i=n(31647),l=n(57857),s=n(52076),c=n(26357),a=n(61843),u=n(58315),p=n.n(u);function f(e){return f="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},f(e)}function d(e,t){for(var n=0;n<t.length;n++){var o=t[n];o.enumerable=o.enumerable||!1,o.configurable=!0,"value"in o&&(o.writable=!0),Object.defineProperty(e,o.key,o)}}function h(e,t){return h=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(e,t){return e.__proto__=t,e},h(e,t)}function y(e,t){if(t&&("object"===f(t)||"function"==typeof t))return t;if(void 0!==t)throw new TypeError("Derived constructors may only return object or undefined");return function(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}(e)}function b(e){return b=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(e){return e.__proto__||Object.getPrototypeOf(e)},b(e)}var m=function(e){!function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),Object.defineProperty(e,"prototype",{writable:!1}),t&&h(e,t)}(m,e);var t,n,i,u,f=(i=m,u=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(e){return!1}}(),function(){var e,t=b(i);if(u){var n=b(this).constructor;e=Reflect.construct(t,arguments,n)}else e=t.apply(this,arguments);return y(this,e)});function m(e){return function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,m),f.call(this,e)}return t=m,(n=[{key:"initialize",value:function(){this.bindListeners(),a.yV.deselectAll(this.collection),a.yV.setSelected(this.options.currentLibraryId,this.collection)}},{key:"name",get:function(){return"LibrarySelectComponent"}},{key:"channelName",get:function(){return"".concat(this.name).concat(this.cid)}},{key:"className",get:function(){return"position-relative"}},{key:"lang",get:function(){return"libraryEditor.librarySelect"}},{key:"template",get:function(){return p()}},{key:"regions",value:function(){return{dropdown:{el:".dropdown-menu-region",replaceElement:!0}}}},{key:"bindListeners",value:function(){var e=this;this.listenTo(this.channelName,"select:option:selected",(function(t){r.Radio.channel(e.options.channelName).trigger("library:selected",t)}))}},{key:"getIsOptionDisabledFn",value:function(){var e=this.options.disabledLibraryIds;return function(t){var n=t||this.model;if(o.contains(e,n.get("id")+""))return!0}}},{key:"onRender",value:function(){this.showChildView("dropdown",new c.H({collection:this.collection,channelName:this.channelName,childOptions:{titleProperty:"name",eventName:"select:option:click",isDisabled:this.getIsOptionDisabledFn()},placeholderText:this.options.placeholderText||l.T.getPhrase(this.lang,"placeholder"),noOptionsText:l.T.getPhrase(this.lang,"noLibraries"),inputName:this.options.inputName,disabled:0===this.collection.length||this.options.disabled,analyticsHelper:s.k}))}}])&&d(t.prototype,n),Object.defineProperty(t,"prototype",{writable:!1}),m}(i.Q.Component)},26357:function(e,t,n){"use strict";n.d(t,{H:function(){return b}});var o=n(39479),r=n(48088),i=n(31647),l=n(71641),s=n(61843),c=n(46635),a=n.n(c),u={dropdownMenu:"oKdKI",selectButton:"fTeoW",disabled:"gZbQ4"};function p(e){return p="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},p(e)}function f(e,t){for(var n=0;n<t.length;n++){var o=t[n];o.enumerable=o.enumerable||!1,o.configurable=!0,"value"in o&&(o.writable=!0),Object.defineProperty(e,o.key,o)}}function d(e,t){return d=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(e,t){return e.__proto__=t,e},d(e,t)}function h(e,t){if(t&&("object"===p(t)||"function"==typeof t))return t;if(void 0!==t)throw new TypeError("Derived constructors may only return object or undefined");return function(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}(e)}function y(e){return y=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(e){return e.__proto__||Object.getPrototypeOf(e)},y(e)}var b=function(e){!function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),Object.defineProperty(e,"prototype",{writable:!1}),t&&d(e,t)}(b,e);var t,n,i,c,p=(i=b,c=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(e){return!1}}(),function(){var e,t=y(i);if(c){var n=y(this).constructor;e=Reflect.construct(t,arguments,n)}else e=t.apply(this,arguments);return h(this,e)});function b(e){var t;return function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,b),(t=p.call(this,e)).selectSearch="",t.sameCharIndex=1,t.optionStep=1,t}return t=b,n=[{key:"initialize",value:function(){this.setModel(),this.bindListeners()}},{key:"name",get:function(){return"SelectComponent"}},{key:"template",get:function(){return a()}},{key:"regions",value:function(){return{dropdown:{el:".dropdown-region",replaceElement:!0}}}},{key:"events",value:function(){return{keydown:"onKeydown","shown.bs.dropdown":"onShowDropdown"}}},{key:"defaults",get:function(){return{displayProperty:"name"}}},{key:"elements",get:function(){return{dropdownToggle:".dropdown-toggle"}}},{key:"bindListeners",value:function(){this.listenTo(this.options.channelName,this.options.childOptions.eventName,this.onSelect)}},{key:"onShowDropdown",value:function(){r.Radio.channel(this.options.channelName).trigger("center:dropdown")}},{key:"onKeydown",value:function(e){38===e.keyCode||40===e.keyCode?this.onArrowKeyDown(e):13===e.keyCode?this.render():this.onType(e),r.Radio.channel(this.options.channelName).trigger("center:dropdown")}},{key:"onArrowKeyDown",value:function(e){s.yV.getSelected(this.collection)?this.optionStep=1:this.optionStep=0;var t=this.getNextModel(e.keyCode);for(t||(s.yV.deselectAll(this.collection),t=this.getNextModel(e.keyCode));this.isDisabled(t);)this.optionStep++,t=this.getNextModel(e.keyCode);this.onSelect(t)}},{key:"onType",value:function(e){if(1===e.key.toString().length){var t=this.getModelMatch(e);t&&this.onSelect(t),this.runTimer()}}},{key:"onSelect",value:function(e){this.isDisabled(e)||(s.yV.setSelected(e.get("id"),this.collection),this.setModel(),this.getUI("dropdownToggle").text(this.getButtonText()),r.Radio.channel(this.options.channelName).trigger("select:option:selected",e))}},{key:"setModel",value:function(){this.model=s.yV.getSelected(this.collection)}},{key:"getNextModel",value:function(e){var t,n=s.yV.getSelected(this.collection)||this.collection.first(),o=this.collection.indexOf(n);return(t=38===e?this.collection.at(o-this.optionStep):this.collection.at(o+this.optionStep))||(s.yV.deselectAll(this.collection),t=this.collection.first(),this.optionStep=0),t}},{key:"getModelMatch",value:function(e){var t,n=this;return 1===this.selectSearch.length&&this.selectSearch===e.key?t=this.handleSameCharIndex(e.key):(this.selectSearch+=e.key,this.sameCharIndex=1),t||(t=o.find(this.collection.models,(function(e){return e.get(n.options.displayProperty).toLowerCase().slice(0,n.selectSearch.length).includes(n.selectSearch.toLowerCase())}))),t}},{key:"handleSameCharIndex",value:function(e){var t=this,n=o.filter(this.collection.models,(function(n){return n.get(t.options.displayProperty).toLowerCase().slice(0,1)===e}));if(n.length>1){var r=n[this.sameCharIndex];return r||(r=o.first(n),this.sameCharIndex=0),this.sameCharIndex++,r}return o.first(n)}},{key:"runTimer",value:function(){var e=this;this.scopedTimerIndex&&clearTimeout(this.scopedTimerIndex),this.scopedTimerIndex=window.setTimeout((function(){e.selectSearch=""}),500)}},{key:"isDisabled",value:function(e){var t;if(e.get("divider"))return!0;if(!o.isFunction(this.options.childOptions.isDisabled))return!1;for(var n=arguments.length,r=new Array(n>1?n-1:0),i=1;i<n;i++)r[i-1]=arguments[i];return(t=this.options.childOptions.isDisabled).call.apply(t,[this,e].concat(r))}},{key:"getButtonText",value:function(){if(this.options.disabled)return this.options.noOptionsText;var e=s.yV.getSelected(this.collection);return e&&e.get(this.options.displayProperty)||this.options.placeholderText}},{key:"viewOptions",value:function(){return{styles:u,inputName:this.options.inputName,disabled:this.options.disabled,placeholderText:this.getButtonText()}}},{key:"onRender",value:function(){this.showChildView("dropdown",new l.w({collection:this.collection,channelName:this.options.channelName,childOptions:o.extend(this.options.childOptions),displayOptions:{extraClasses:"w-100 ".concat(u.dropdownMenu)},analyticsHelper:this.options.analyticsHelper}))}}],n&&f(t.prototype,n),Object.defineProperty(t,"prototype",{writable:!1}),b}(i.Q.Component)},20072:function(e,t,n){"use strict";n.d(t,{Y:function(){return b}});var o=n(48088),r=n(31647),i=n(57857),l=n(50299),s=n(61843),c=n(68979),a=n.n(c),u={selectBtn:"tZUtI",list:"MxlSt",selector:"qHvbU",customItem:"aJzJB"};function p(e){return p="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},p(e)}function f(e,t){for(var n=0;n<t.length;n++){var o=t[n];o.enumerable=o.enumerable||!1,o.configurable=!0,"value"in o&&(o.writable=!0),Object.defineProperty(e,o.key,o)}}function d(e,t){return d=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(e,t){return e.__proto__=t,e},d(e,t)}function h(e,t){if(t&&("object"===p(t)||"function"==typeof t))return t;if(void 0!==t)throw new TypeError("Derived constructors may only return object or undefined");return function(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}(e)}function y(e){return y=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(e){return e.__proto__||Object.getPrototypeOf(e)},y(e)}var b=function(e){!function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),Object.defineProperty(e,"prototype",{writable:!1}),t&&d(e,t)}(b,e);var t,n,r,c,p=(r=b,c=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(e){return!1}}(),function(){var e,t=y(r);if(c){var n=y(this).constructor;e=Reflect.construct(t,arguments,n)}else e=t.apply(this,arguments);return h(this,e)});function b(e){return function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,b),p.call(this,e)}return t=b,(n=[{key:"initialize",value:function(){this.listenTo(this.options.channelName,"folder:selected new:folder:selected",this.setButtonText),this.listenTo(this.options.channelName,"re:render:selector",this.renderSelector),this.disabledIds=this.options.disabledIds&&this.options.disabledIds.reduce((function(e,t){return Object.assign(Object.assign({},e),function(e,t,n){return t in e?Object.defineProperty(e,t,{value:true,enumerable:!0,configurable:!0,writable:!0}):e[t]=true,e}({},t))}),{})}},{key:"name",get:function(){return"TreeDropdownComponent"}},{key:"template",get:function(){return a()}},{key:"className",get:function(){return"position-relative"}},{key:"lang",get:function(){return"libraryEditor.treeDropdown"}},{key:"regions",value:function(){return{selector:{el:".selector-region",replaceElement:!1}}}},{key:"events",value:function(){return{"click .create-new":"onClickCreateNew"}}},{key:"defaults",get:function(){return{disabledIds:[]}}},{key:"elements",get:function(){return{button:".button-text"}}},{key:"onClickCreateNew",value:function(e){e.preventDefault(),o.Radio.channel(this.options.channelName).trigger("create:folder:clicked")}},{key:"setButtonText",value:function(e,t){if(e&&!t){var n=e.get("name");this.getUI("button").text(n)}else{var o=s.PU.getSelected(this.options.folderTreeKey,this.collection),r=o?o.get("name"):i.T.getPhrase(this.lang,"button");this.getUI("button").text(r)}}},{key:"renderSelector",value:function(){this.showChildView("selector",new l.J({styles:u,collection:this.collection,channelName:this.options.channelName,childrenProperty:"children",folderTreeId:this.options.folderTreeKey,extraClass:u.list,extraClasses:u.list,isSelector:!0,disabledIds:this.disabledIds||{}}))}},{key:"viewOptions",value:function(){return{styles:u,name:this.options.name||this.options.channelName,buttonText:this.buttonText,canCreateNew:this.options.canCreateNew}}},{key:"onRender",value:function(){this.setButtonText(),this.renderSelector()}}])&&f(t.prototype,n),Object.defineProperty(t,"prototype",{writable:!1}),b}(r.Q.Component)},58315:function(e,t,n){var o=n(32227);e.exports=(o.default||o).template({compiler:[8,">= 4.3.0"],main:function(e,t,n,o,r){return'<div class="dropdown-menu-region"></div>\r\n<div class="form-feedback"></div>'},useData:!0})},46635:function(e,t,n){var o=n(32227);e.exports=(o.default||o).template({1:function(e,t,n,o,r){var i;return e.propertyIsEnumerable,e.escapeExpression(e.lambda(null!=(i=null!=(i=null!=t?t.options:t)?i.styles:i)?i.disabled:i,t))},3:function(e,t,n,o,r){return" disabled"},compiler:[8,">= 4.3.0"],main:function(e,t,n,o,r){e.propertyIsEnumerable;var i,l=e.lambda,s=e.escapeExpression,c=null!=t?t:e.nullContext||{};return'<button \r\n class="dropdown-toggle form-control btn-block text-left position-relative '+s(l(null!=(i=null!=(i=null!=t?t.options:t)?i.styles:i)?i.selectButton:i,t))+" "+(null!=(i=n.if.call(c,null!=(i=null!=t?t.options:t)?i.disabled:i,{name:"if",hash:{},fn:e.program(1,r,0),inverse:e.noop,data:r}))?i:"")+'" \r\n type="button" \r\n id="dropdownMenuButton" \r\n data-toggle="dropdown" \r\n aria-haspopup="true" \r\n aria-expanded="false"\r\n '+(null!=(i=n.if.call(c,null!=(i=null!=t?t.options:t)?i.disabled:i,{name:"if",hash:{},fn:e.program(3,r,0),inverse:e.noop,data:r}))?i:"")+' \r\n name="'+s(l(null!=(i=null!=t?t.options:t)?i.inputName:i,t))+'"\r\n >\r\n '+s(l(null!=(i=null!=t?t.options:t)?i.placeholderText:i,t))+'\r\n</button>\r\n<div class="dropdown-region"></div>\r\n<div class="form-feedback"></div>'},useData:!0})},68979:function(e,t,n){var o=n(32227);e.exports=(o.default||o).template({1:function(e,t,n,o,r){e.propertyIsEnumerable;var i,l=e.escapeExpression;return' <button class="create-new btn font-weight-bold rounded-0 w-100 text-left '+l(e.lambda(null!=(i=null!=(i=null!=t?t.options:t)?i.styles:i)?i.customItem:i,t))+'">'+l((n.lang||t&&t.lang||e.hooks.helperMissing).call(null!=t?t:e.nullContext||{},"createNew",{name:"lang",hash:{},data:r}))+"</button>\r\n"},compiler:[8,">= 4.3.0"],main:function(e,t,n,o,r){e.propertyIsEnumerable;var i,l=e.lambda,s=e.escapeExpression;return'<button\r\n class="'+s(l(null!=(i=null!=(i=null!=t?t.options:t)?i.styles:i)?i.selectBtn:i,t))+' custom-select form-control"\r\n data-toggle="dropdown"\r\n aria-haspopup="true"\r\n aria-expanded="false"\r\n name='+s(l(null!=(i=null!=t?t.options:t)?i.name:i,t))+'\r\n>\r\n <span class="d-block text-truncate button-text">\r\n '+s(l(null!=(i=null!=t?t.options:t)?i.buttonText:i,t))+'\r\n </span>\r\n</button>\r\n<div class="dropdown-menu '+s(l(null!=(i=null!=(i=null!=t?t.options:t)?i.styles:i)?i.selector:i,t))+'">\r\n <div class="selector-region"></div>\r\n'+(null!=(i=n.if.call(null!=t?t:e.nullContext||{},null!=(i=null!=t?t.options:t)?i.canCreateNew:i,{name:"if",hash:{},fn:e.program(1,r,0),inverse:e.noop,data:r}))?i:"")+'</div>\r\n<div class="form-feedback"></div>'},useData:!0})}}]);
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
(self.webpackChunk_clickview_library_editor=self.webpackChunk_clickview_library_editor||[]).push([[4177],{47022:function(e,t,n){"use strict";n.d(t,{Q:function(){return y}});var r=n(39479),o=n(31647),i=n(70065),a=n(52076),c=n(99186),u=n.n(c);function s(e){return s="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},s(e)}function l(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}function p(e,t){return p=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(e,t){return e.__proto__=t,e},p(e,t)}function f(e,t){if(t&&("object"===s(t)||"function"==typeof t))return t;if(void 0!==t)throw new TypeError("Derived constructors may only return object or undefined");return function(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}(e)}function d(e){return d=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(e){return e.__proto__||Object.getPrototypeOf(e)},d(e)}var y=function(e){!function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),Object.defineProperty(e,"prototype",{writable:!1}),t&&p(e,t)}(y,e);var t,n,o,c,s=(o=y,c=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(e){return!1}}(),function(){var e,t=d(o);if(c){var n=d(this).constructor;e=Reflect.construct(t,arguments,n)}else e=t.apply(this,arguments);return f(this,e)});function y(e){return function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,y),s.call(this,e)}return t=y,(n=[{key:"defaults",get:function(){return{cursors:{},cursorParamName:"cursor"}}},{key:"name",get:function(){return"PaginationComponent"}},{key:"template",get:function(){return u()}},{key:"lang",get:function(){return"shared._pagination"}},{key:"appLinks",get:function(){var e={};if(!this.options.cursors)return{};if(this.options.cursors.previous){var t=this.options.cursors.previous,n=this.buildCursor(this.options.cursors.previous);+t<=1&&!0!==this.options.allowFirstPageCursor&&delete n.params.cursor,e[".previous-applink"]=n}return this.options.cursors.next&&(e[".next-applink"]=this.buildCursor(this.options.cursors.next)),e}},{key:"events",value:function(){return{"click .previous-applink":"onClickPrevious","click .next-applink":"onClickNext"}}},{key:"buildCursor",value:function(e){return{application:this.options.appLink.application,action:this.options.appLink.action,args:this.options.appLink.args,params:r.extend({},this.options.appLink.params,(t={},n=this.options.cursorParamName,o=e,n in t?Object.defineProperty(t,n,{value:o,enumerable:!0,configurable:!0,writable:!0}):t[n]=o,t))};var t,n,o}},{key:"onClickPrevious",value:function(){this.logAction("previous")}},{key:"onClickNext",value:function(){this.logAction("next")}},{key:"logAction",value:function(e){var t=a.k.mergeOptions(this.options.analyticsOptions,{location:i.LocationContext.Pagination,entity:i.EntityType.Pagination,actionType:i.UserAction.Navigate}),n={id:this.options.collectionId,page:e};a.k.logUserAction(n,t)}},{key:"viewOptions",value:function(){return{cursors:this.options.cursors}}},{key:"onBeforeRender",value:function(){return!!this.options.cursors}}])&&l(t.prototype,n),Object.defineProperty(t,"prototype",{writable:!1}),y}(o.Q.Component)},4113:function(e,t,n){"use strict";n.r(t),n.d(t,{RestrictedVideoListView:function(){return S}});var r=n(31647),o=n(21679),i=n(57857),a=n(6681),c=n(56210),u=n(47022),s=n(87262),l=n(25692),p=n(70763),f=n(28099),d=n(17422),y=n(48404),h=n(71192),b=n(23096),m=n(58688),v=n(9484),g=n(264),k=n(57085),O=n(95061),w=n(12827),C=n.n(w);function E(e){return E="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},E(e)}function P(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}function R(e,t){return R=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(e,t){return e.__proto__=t,e},R(e,t)}function _(e,t){if(t&&("object"===E(t)||"function"==typeof t))return t;if(void 0!==t)throw new TypeError("Derived constructors may only return object or undefined");return function(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}(e)}function j(e){return j=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(e){return e.__proto__||Object.getPrototypeOf(e)},j(e)}var S=function(e){!function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),Object.defineProperty(e,"prototype",{writable:!1}),t&&R(e,t)}(S,e);var t,n,r,w,E=(r=S,w=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(e){return!1}}(),function(){var e,t=j(r);if(w){var n=j(this).constructor;e=Reflect.construct(t,arguments,n)}else e=t.apply(this,arguments);return _(this,e)});function S(e){return function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,S),E.call(this,e)}return t=S,(n=[{key:"initialize",value:function(){this.bindListeners(),this.restrictedVideoDataService=o.u.getInstance(f.Or.RestrictedVideo,this),this.videoDataService=o.u.getInstance(f.Or.Video,this)}},{key:"bindListeners",value:function(){this.listenTo(f.Vk.RESTRICTED_VIDEO,"".concat(f.M_.RESTRICTED_VIDEOS,":").concat(this.options.page,":sync"),this.render),this.listenTo(this.channelName,"fetch:video:with:metadata",this.fetchVideoWithMetadata),this.listenTo(f.Vk.RESTRICTED_VIDEO,"cache:cleared",this.render)}},{key:"name",get:function(){return"RestrictedVideoListView"}},{key:"title",get:function(){return i.T.getPhrase(this.lang,"title")}},{key:"className",get:function(){return"bg-white rounded"}},{key:"channelName",get:function(){return"".concat(this.name).concat(this.cid)}},{key:"template",get:function(){return C()}},{key:"lang",get:function(){return"videoAccess.restrictedVideoList"}},{key:"behaviors",get:function(){return[{behaviorClass:c.H,selector:".info-tooltip",title:i.T.getPhrase(this.lang,"findOutMore")}]}},{key:"defaults",get:function(){return{page:1}}},{key:"regions",value:function(){return{videos:{replaceElement:!0,el:".video-list-region",partialLoading:d.LP.VideoList},pagination:{replaceElement:!0,el:".pagination-region"},empty:{replaceElement:!0,el:".empty-region"},breadcrumbs:{replaceElement:!0,el:".breadcrumbs-region",partialLoading:d.LP.Breadcrumbs}}}},{key:"setVideosWithMetadata",value:function(){this.videoCollection&&!this.videosWithMetadata&&(this.videosWithMetadata=new p.t(this.videoCollection.map((function(e){return new h.n({id:e.get("id")})}))))}},{key:"renderVideoList",value:function(){var e=this.restrictedVideoDataService.getPaginationCursors(this.options.page);this.showChildView("videos",new b.Y({collection:this.videoCollection,videosWithMetadata:this.videosWithMetadata,application:f.OV.VIDEO_ACCESS,collectionIdentifier:null,videoItemComponentType:m.U.VideoAccess,config:this.config,emptyStateType:d.ub.VideoAccess,emptyStateOptions:{heading:i.T.getPhrase(this.lang,"emptyStateHeading")},collectionViewChannel:this.channelName,currentUser:this.currentUser,hasCursors:!!e,showEmptyState:!0,libraries:this.libraries}))}},{key:"renderPagination",value:function(){var e=this.restrictedVideoDataService.getPaginationCursors(this.options.page);this.showChildView("pagination",new u.Q({cursors:e,appLink:{application:f.OV.VIDEO_ACCESS,action:f.eX.VideoAccess.HOME},cursorParamName:"page"}))}},{key:"renderBreadcrumbs",value:function(){this.showChildView("breadcrumbs",new k.n({enableLastItemAppLink:!1,customBreadcrumbs:[{name:i.T.getPhrase(this.lang,"libraryEditor"),active:!1,appLink:{application:f.OV.LIBRARY_EDITOR,action:f.eX.LibraryEditor.HOME}},{name:i.T.getPhrase(this.lang,"videoAccess"),active:!0}]}))}},{key:"fetchVideoWithMetadata",value:function(e){var t=this;this.videoDataService.getVideo(e,(function(n){var r=t.videosWithMetadata.get(e);r&&(r.set(n.toJSON()),r.set({dataFetched:!0}))}))}},{key:"requiredResources",get:function(){return{config:y.p.config,currentUser:v.K.currentUser,libraries:O.T.libraries}}},{key:"onBeforeRender",value:function(){return this.videoCollection=this.restrictedVideoDataService.getRestrictedVideos(this.options.page),!!this.videoCollection&&(this.setVideosWithMetadata(),!0)}},{key:"viewOptions",value:function(){var e,t;return{supportUrl:!g.g.hasLite&&s.o.getArticle(null===(e=this.config)||void 0===e?void 0:e.get("supportSiteUrl"),l.w.VideoAccess,null===(t=this.currentUser)||void 0===t?void 0:t.get("countryCode")),svg:a.Nj.getSvg(a.vn.Info)}}},{key:"onRender",value:function(){this.renderVideoList(),this.renderPagination(),this.renderBreadcrumbs()}}])&&P(t.prototype,n),Object.defineProperty(t,"prototype",{writable:!1}),S}(r.Q.View)},57085:function(e,t,n){"use strict";n.d(t,{n:function(){return R}});var r=n(31647),o=n(93933),i=n.n(o),a=n(86363),c=n.n(a);function u(e){return u="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},u(e)}function s(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function l(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}function p(e,t,n){return t&&l(e.prototype,t),n&&l(e,n),Object.defineProperty(e,"prototype",{writable:!1}),e}function f(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),Object.defineProperty(e,"prototype",{writable:!1}),t&&d(e,t)}function d(e,t){return d=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(e,t){return e.__proto__=t,e},d(e,t)}function y(e){var t=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(e){return!1}}();return function(){var n,r=b(e);if(t){var o=b(this).constructor;n=Reflect.construct(r,arguments,o)}else n=r.apply(this,arguments);return h(this,n)}}function h(e,t){if(t&&("object"===u(t)||"function"==typeof t))return t;if(void 0!==t)throw new TypeError("Derived constructors may only return object or undefined");return function(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}(e)}function b(e){return b=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(e){return e.__proto__||Object.getPrototypeOf(e)},b(e)}var m=function(e){f(n,e);var t=y(n);function n(){return s(this,n),t.apply(this,arguments)}return p(n,[{key:"name",get:function(){return"BreadcrumbItemComponent"}},{key:"template",get:function(){return c()}},{key:"tagName",get:function(){return"li"}},{key:"className",get:function(){var e="breadcrumb-item";return this.model.get("active")&&(e+=" active"),e}},{key:"attributes",get:function(){return this.model.get("active")?{"aria-current":"page"}:{}}},{key:"appLinks",get:function(){return this.model.get("active")?{}:{a:this.model.get("appLink")}}},{key:"viewOptions",value:function(){return{isActive:this.model.get("active")}}}]),n}(r.Q.Component),v=function(e){f(n,e);var t=y(n);function n(){return s(this,n),t.apply(this,arguments)}return p(n,[{key:"name",get:function(){return"BreadcrumbComponentCollection"}},{key:"tagName",get:function(){return"ol"}},{key:"className",get:function(){return"breadcrumb m-0 p-0"}},{key:"childView",get:function(){return m}}]),n}(r.Q.ComponentCollection),g=n(22557),k=n(28099);function O(e){return O="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},O(e)}function w(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}function C(e,t){return C=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(e,t){return e.__proto__=t,e},C(e,t)}function E(e,t){if(t&&("object"===O(t)||"function"==typeof t))return t;if(void 0!==t)throw new TypeError("Derived constructors may only return object or undefined");return function(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}(e)}function P(e){return P=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(e){return e.__proto__||Object.getPrototypeOf(e)},P(e)}var R=function(e){!function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),Object.defineProperty(e,"prototype",{writable:!1}),t&&C(e,t)}(u,e);var t,n,o,a,c=(o=u,a=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(e){return!1}}(),function(){var e,t=P(o);if(a){var n=P(this).constructor;e=Reflect.construct(t,arguments,n)}else e=t.apply(this,arguments);return E(this,e)});function u(e){return function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,u),c.call(this,e)}return t=u,(n=[{key:"initialize",value:function(){this.getBreadcrumbs()}},{key:"name",get:function(){return"BreadcrumbsComponent"}},{key:"template",get:function(){return i()}},{key:"className",get:function(){return"d-inline-block"}},{key:"regions",value:function(){return{breadcrumbs:".breadcrumbs-region"}}},{key:"defaults",get:function(){return{customBreadcrumbs:[]}}},{key:"getBreadcrumbs",value:function(){var e=this;this.breadcrumbCollection=new r.Q.Collection([]);var t,n=this.options.folder;do{if(!n)break;if(t=g.P.getParent(n.id,this.options.libraries),this.breadcrumbCollection.add(this.getBreadcrumb(n,!!t),{at:0}),!t)break;n=t}while(t);this.options.video&&this.breadcrumbCollection.add({name:this.options.video.get("name"),appLink:{application:k.OV.LIBRARY_EDITOR,action:k.eX.LibraryEditor.VIDEO_DETAILS,args:[this.options.video.id]}}),this.options.customBreadcrumbs&&this.options.customBreadcrumbs.forEach((function(t){return e.breadcrumbCollection.add(t)})),this.breadcrumbCollection.length&&this.breadcrumbCollection.last().set("active",!this.options.enableLastItemAppLink)}},{key:"getBreadcrumb",value:function(e,t){var n=t?k.eX.LibraryEditor.FOLDER:k.eX.LibraryEditor.LIBRARY;return{name:e.get("name"),appLink:{application:k.OV.LIBRARY_EDITOR,action:n,args:[e.id]}}}},{key:"onRender",value:function(){var e=new v({collection:this.breadcrumbCollection});this.showChildView("breadcrumbs",e)}}])&&w(t.prototype,n),Object.defineProperty(t,"prototype",{writable:!1}),u}(r.Q.Component)},99186:function(e,t,n){var r=n(32227);e.exports=(r.default||r).template({1:function(e,t,n,r,o){return"disabled"},compiler:[8,">= 4.3.0"],main:function(e,t,n,r,o){e.propertyIsEnumerable;var i,a=null!=t?t:e.nullContext||{},c=e.hooks.helperMissing,u=e.escapeExpression;return'<div class="p-3">\r\n <a class="btn previous-applink btn-outline-dark '+(null!=(i=n.unless.call(a,null!=(i=null!=(i=null!=t?t.options:t)?i.cursors:i)?i.previous:i,{name:"unless",hash:{},fn:e.program(1,o,0),inverse:e.noop,data:o}))?i:"")+'">'+u((n.lang||t&&t.lang||c).call(a,"previous",{name:"lang",hash:{},data:o}))+'</a>\r\n <a class="btn next-applink btn-outline-dark '+(null!=(i=n.unless.call(a,null!=(i=null!=(i=null!=t?t.options:t)?i.cursors:i)?i.next:i,{name:"unless",hash:{},fn:e.program(1,o,0),inverse:e.noop,data:o}))?i:"")+'">'+u((n.lang||t&&t.lang||c).call(a,"next",{name:"lang",hash:{},data:o}))+"</a>\r\n</div>"},useData:!0})},12827:function(e,t,n){var r=n(32227);e.exports=(r.default||r).template({1:function(e,t,n,r,o){e.propertyIsEnumerable;var i,a=e.lambda;return' <a class="d-inline-block ml-2 svg-container sm info-tooltip" href="'+e.escapeExpression(a(null!=(i=null!=t?t.options:t)?i.supportUrl:i,t))+'">'+(null!=(i=a(null!=(i=null!=t?t.options:t)?i.svg:i,t))?i:"")+"</a>\r\n"},compiler:[8,">= 4.3.0"],main:function(e,t,n,r,o){e.propertyIsEnumerable;var i,a=null!=t?t:e.nullContext||{},c=e.hooks.helperMissing,u=e.escapeExpression;return'<div class="pl-3 pt-3 pr-3">\r\n <div class="border-bottom">\r\n <div class="d-flex align-items-center pb-2">\r\n <h1 class="h3 d-inline-block m-0">'+u((n.lang||t&&t.lang||c).call(a,"heading",{name:"lang",hash:{},data:o}))+" </h1>\r\n"+(null!=(i=n.if.call(a,null!=(i=null!=t?t.options:t)?i.supportUrl:i,{name:"if",hash:{},fn:e.program(1,o,0),inverse:e.noop,data:o}))?i:"")+' </div>\r\n <div class="breadcrumbs-region"></div>\r\n <p class="pb-3 pt-2 m-0">\r\n '+u((n.lang||t&&t.lang||c).call(a,"description",{name:"lang",hash:{},data:o}))+'\r\n </p>\r\n </div> \r\n</div>\r\n<div class="video-list-region"></div>\r\n<div class="pagination-region"></div>\r\n<div class="empty-region"></div>'},useData:!0})},86363:function(e,t,n){var r=n(32227);e.exports=(r.default||r).template({1:function(e,t,n,r,o){var i;return e.propertyIsEnumerable,'<span class="font-weight-bolder">'+e.escapeExpression("function"==typeof(i=null!=(i=n.name||(null!=t?t.name:t))?i:e.hooks.helperMissing)?i.call(null!=t?t:e.nullContext||{},{name:"name",hash:{},data:o}):i)+"</span>\r\n"},3:function(e,t,n,r,o){var i;return e.propertyIsEnumerable,"<a>"+e.escapeExpression("function"==typeof(i=null!=(i=n.name||(null!=t?t.name:t))?i:e.hooks.helperMissing)?i.call(null!=t?t:e.nullContext||{},{name:"name",hash:{},data:o}):i)+"</a>\r\n"},compiler:[8,">= 4.3.0"],main:function(e,t,n,r,o){var i;return e.propertyIsEnumerable,null!=(i=n.if.call(null!=t?t:e.nullContext||{},null!=(i=null!=t?t.options:t)?i.isActive:i,{name:"if",hash:{},fn:e.program(1,o,0),inverse:e.program(3,o,0),data:o}))?i:""},useData:!0})},93933:function(e,t,n){var r=n(32227);e.exports=(r.default||r).template({compiler:[8,">= 4.3.0"],main:function(e,t,n,r,o){return'<nav class="breadcrumbs-region" aria-label="breadcrumb"></nav>'},useData:!0})}}]);
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
(self.webpackChunk_clickview_library_editor=self.webpackChunk_clickview_library_editor||[]).push([[4201],{74201:function(e,t,r){"use strict";r.r(t),r.d(t,{NewLibraryView:function(){return P}});var n=r(48088),o=r(31647),i=r(21679),a=r(99249),u=r(57857),c=r(36357),l=r(10101),s=r(9484),f=r(28099),p=r(88172),y=r(24539),b=r(67670),h=r(61843),m=r(7190),d=r(95061),v=r(56906),g=r(15110),w=r.n(g);function O(e){return O="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},O(e)}function S(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function k(e,t){for(var r=0;r<t.length;r++){var n=t[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(e,n.key,n)}}function _(e,t){return _=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(e,t){return e.__proto__=t,e},_(e,t)}function E(e,t){if(t&&("object"===O(t)||"function"==typeof t))return t;if(void 0!==t)throw new TypeError("Derived constructors may only return object or undefined");return function(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}(e)}function j(e){return j=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(e){return e.__proto__||Object.getPrototypeOf(e)},j(e)}var P=function(e){!function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),Object.defineProperty(e,"prototype",{writable:!1}),t&&_(e,t)}(R,e);var t,r,g,O,P=(g=R,O=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(e){return!1}}(),function(){var e,t=j(g);if(O){var r=j(this).constructor;e=Reflect.construct(t,arguments,r)}else e=t.apply(this,arguments);return E(this,e)});function R(){return S(this,R),P.apply(this,arguments)}return t=R,(r=[{key:"initialize",value:function(){this.model=a.r.get("new:library",null,{ctor:y.Z}),this.bindListeners(),this.settingsDataService=i.u.getInstance(f.Or.Settings,this),this.libraryDataService=i.u.getInstance(f.Or.Library,this)}},{key:"bindListeners",value:function(){this.listenTo(f.Vk.SETTINGS,"".concat(f.M_.CUSTOMER_SETTINGS,":sync ").concat(f.M_.USER_SETTINGS,":sync"),this.render)}},{key:"name",get:function(){return"NewLibraryView"}},{key:"title",get:function(){return u.T.getPhrase(this.lang,"title")}},{key:"lang",get:function(){return"libraryEditor.newLibrary"}},{key:"template",get:function(){return w()}},{key:"channelName",get:function(){return h.N0.generateUniqueChannelName(this)}},{key:"behaviors",get:function(){var e=this;return[{behaviorClass:l.fS,modelValidation:m.Y7},{behaviorClass:l.Bp},{behaviorClass:l.Yw,title:u.T.getPhrase(this.lang,"heading"),spinnerButtonOptions:{model:this.spinnerModel=new b.v,channelName:this.channelName,buttonText:u.T.getPhrase(this.lang,"save"),onClick:function(t){return e.onSubmit(t)}}}]}},{key:"bindings",get:function(){return{"[name=name]":{observe:"name",setOptions:{validate:!0}}}}},{key:"events",value:function(){return{submit:"onSubmit"}}},{key:"onSubmit",value:function(e){e&&e.preventDefault(),this.model.validate(),this.model.isValid()&&(n.Radio.channel(this.channelName).trigger(p.I3.ShowSpinner),this.createLibrary())}},{key:"createLibrary",value:function(){this.libraryDataService.createLibrary(this.currentUser.get("customerId"),this.model,(function(e){a.r.clear("new:library"),o.Q.AppLinkHelper.trigger({application:f.OV.LIBRARY_EDITOR,action:f.eX.LibraryEditor.LIBRARY,args:[e.id]})}))}},{key:"requiredResources",get:function(){return{currentUser:s.K.currentUser,libraries:d.T.libraries}}},{key:"onBeforeRender",value:function(){this.maxCustomLibraries=this.settingsDataService.getSetting(this.currentUser.get("customerId"),c.E.MaxCustomLibraries),this.libraries.length>=this.maxCustomLibraries.get("value")?o.Q.ErrorHelper.throw(new v.PQ(this.libraries.length,this.maxCustomLibraries.get("value"))):this.maxCustomLibraries&&this.spinnerModel.set(p.ZV.Disabled,!1)}},{key:"viewOptions",value:function(){return{dataFetched:!!this.maxCustomLibraries,spinnerEl:h.Kp.getSpinner({size:h.Ey.Large,extraClasses:"mx-auto"})}}}])&&k(t.prototype,r),Object.defineProperty(t,"prototype",{writable:!1}),R}(o.Q.View)},67670:function(e,t,r){"use strict";r.d(t,{v:function(){return p}});var n=r(31647),o=r(88172);function i(e){return i="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},i(e)}function a(e,t,r){return t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function u(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function c(e,t){for(var r=0;r<t.length;r++){var n=t[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(e,n.key,n)}}function l(e,t){return l=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(e,t){return e.__proto__=t,e},l(e,t)}function s(e,t){if(t&&("object"===i(t)||"function"==typeof t))return t;if(void 0!==t)throw new TypeError("Derived constructors may only return object or undefined");return function(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}(e)}function f(e){return f=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(e){return e.__proto__||Object.getPrototypeOf(e)},f(e)}var p=function(e){!function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),Object.defineProperty(e,"prototype",{writable:!1}),t&&l(e,t)}(y,e);var t,r,n,i,p=(n=y,i=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(e){return!1}}(),function(){var e,t=f(n);if(i){var r=f(this).constructor;e=Reflect.construct(t,arguments,r)}else e=t.apply(this,arguments);return s(this,e)});function y(){return u(this,y),p.apply(this,arguments)}return t=y,(r=[{key:"defaults",value:function(){var e;return a(e={},o.ZV.Disabled,!0),a(e,o.ZV.Hidden,!1),e}}])&&c(t.prototype,r),Object.defineProperty(t,"prototype",{writable:!1}),y}(n.Q.Model)},15110:function(e,t,r){var n=r(32227);e.exports=(n.default||n).template({1:function(e,t,r,n,o){var i;return e.propertyIsEnumerable,(null!=(i=e.lambda(null!=(i=null!=t?t.options:t)?i.spinnerEl:i,t))?i:"")+"\r\n"},3:function(e,t,r,n,o){e.propertyIsEnumerable;var i=null!=t?t:e.nullContext||{},a=e.hooks.helperMissing,u=e.escapeExpression;return'<form>\r\n <div class="form-group">\r\n <label for="name" class="control-label">'+u((r.lang||t&&t.lang||a).call(i,"libraryName",{name:"lang",hash:{},data:o}))+'</label>\r\n <input name="name" id="name" type="text" class="form-control" placeholder="'+u((r.lang||t&&t.lang||a).call(i,"secondaryLibrary",{name:"lang",hash:{},data:o}))+'" autocomplete="off" autofocus/>\r\n <div class="form-feedback"></div>\r\n </div>\r\n</form>\r\n'},compiler:[8,">= 4.3.0"],main:function(e,t,r,n,o){var i;return e.propertyIsEnumerable,null!=(i=r.unless.call(null!=t?t:e.nullContext||{},null!=(i=null!=t?t.options:t)?i.dataFetched:i,{name:"unless",hash:{},fn:e.program(1,o,0),inverse:e.program(3,o,0),data:o}))?i:""},useData:!0})}}]);
|