@clickview/library-editor 1.1.37-dev.0 → 1.1.37-dev.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 +2 -2
- package/dist/css/library-editor-app-7afbf80a1d.css +133 -0
- package/dist/scripts/{0-d1f8318492.chunk.js → 0-ae5038826f.chunk.js} +1 -1
- package/dist/scripts/0-febcb6d3a4.chunk.js +1 -0
- package/dist/scripts/{1-f6a406c0c3.chunk.js → 1-25a3da17f6.chunk.js} +1 -1
- package/dist/scripts/1-95ec34859a.chunk.js +1 -0
- package/dist/scripts/1-9614387684.chunk.js +1 -0
- package/dist/scripts/10-2d98ca80b8.chunk.js +1 -0
- package/dist/scripts/10-b3426444d2.chunk.js +1 -0
- package/dist/scripts/{10-9d7415ddd9.chunk.js → 10-ca05201620.chunk.js} +1 -1
- package/dist/scripts/{11-cd223abba6.chunk.js → 11-34b3dcf731.chunk.js} +1 -1
- package/dist/scripts/11-6ba4ed7ef0.chunk.js +11 -0
- package/dist/scripts/12-4a9be00da8.chunk.js +1 -0
- package/dist/scripts/12-763afd0bb2.chunk.js +1 -0
- package/dist/scripts/{12-b9094c4f8c.chunk.js → 12-79687f49dc.chunk.js} +1 -1
- package/dist/scripts/{13-fc7b0b2dec.chunk.js → 13-8d31c7a516.chunk.js} +1 -1
- package/dist/scripts/13-af40ed3499.chunk.js +1 -0
- package/dist/scripts/13-d2a1610ca8.chunk.js +1 -0
- package/dist/scripts/14-3bca4baa31.chunk.js +1 -0
- package/dist/scripts/14-b122e4c86a.chunk.js +1 -0
- package/dist/scripts/14-e05e9a13a3.chunk.js +1 -0
- package/dist/scripts/15-b2488b1148.chunk.js +1 -0
- package/dist/scripts/15-bf35768005.chunk.js +1 -0
- package/dist/scripts/15-d1a8e9529c.chunk.js +1 -0
- package/dist/scripts/{16-7958df8d77.chunk.js → 16-3815855eb9.chunk.js} +1 -1
- package/dist/scripts/16-5559065630.chunk.js +1 -0
- package/dist/scripts/16-9f27dff55b.chunk.js +1 -0
- package/dist/scripts/{17-a79e5de834.chunk.js → 17-280523c91e.chunk.js} +1 -1
- package/dist/scripts/17-a663a59321.chunk.js +1 -0
- package/dist/scripts/17-e2db69d7a2.chunk.js +1 -0
- package/dist/scripts/{2-ccc8d219a5.chunk.js → 2-cd4ed2b964.chunk.js} +1 -1
- package/dist/scripts/2-fa738d2525.chunk.js +1 -0
- package/dist/scripts/{20-9721e70db9.chunk.js → 20-4a29bfd556.chunk.js} +1 -1
- package/dist/scripts/20-9a0c206d53.chunk.js +1 -0
- package/dist/scripts/20-f56b426967.chunk.js +1 -0
- package/dist/scripts/{21-dbf166383e.chunk.js → 21-2932130dd3.chunk.js} +1 -1
- package/dist/scripts/21-39b37c0785.chunk.js +1 -0
- package/dist/scripts/21-f9085fa01b.chunk.js +1 -0
- package/dist/scripts/{22-0a9293463a.chunk.js → 22-1d68f61cad.chunk.js} +1 -1
- package/dist/scripts/22-41611d204e.chunk.js +1 -0
- package/dist/scripts/22-769d86ff22.chunk.js +1 -0
- package/dist/scripts/23-17aed223d8.chunk.js +1 -0
- package/dist/scripts/23-67751683a2.chunk.js +1 -0
- package/dist/scripts/{23-4d7fe8bd5d.chunk.js → 23-ccb1d9bb11.chunk.js} +1 -1
- package/dist/scripts/24-3aacb050a7.chunk.js +1 -0
- package/dist/scripts/{24-4f18bcecc7.chunk.js → 24-a3972fce39.chunk.js} +1 -1
- package/dist/scripts/24-a4a38428f5.chunk.js +1 -0
- package/dist/scripts/{25-8de10302e8.chunk.js → 25-0d377559e4.chunk.js} +1 -1
- package/dist/scripts/25-5d9db5625b.chunk.js +1 -0
- package/dist/scripts/25-c25be9586b.chunk.js +1 -0
- package/dist/scripts/26-1e93a2e404.chunk.js +1 -0
- package/dist/scripts/{26-893749d6ad.chunk.js → 26-477287a718.chunk.js} +1 -1
- package/dist/scripts/26-6e1bd41d98.chunk.js +1 -0
- package/dist/scripts/27-43011c79ea.chunk.js +1 -0
- package/dist/scripts/{27-930264ffb3.chunk.js → 27-eb05620229.chunk.js} +1 -1
- package/dist/scripts/27-fafd25fdaf.chunk.js +1 -0
- package/dist/scripts/{28-89eef2b8bb.chunk.js → 28-7a2644f63b.chunk.js} +1 -1
- package/dist/scripts/28-abceff753f.chunk.js +1 -0
- package/dist/scripts/28-fdfbd30a1a.chunk.js +1 -0
- package/dist/scripts/29-92181bf12b.chunk.js +1 -0
- package/dist/scripts/29-93acb2510d.chunk.js +1 -0
- package/dist/scripts/29-fcd822a8b1.chunk.js +1 -0
- package/dist/scripts/3-06739cf8ee.chunk.js +1 -0
- package/dist/scripts/{3-56fdfc98eb.chunk.js → 3-70518d2464.chunk.js} +1 -1
- package/dist/scripts/3-7fefbcb8e7.chunk.js +1 -0
- package/dist/scripts/30-3448994d7f.chunk.js +1 -0
- package/dist/scripts/{30-9f64e71e42.chunk.js → 30-9571438e00.chunk.js} +1 -1
- package/dist/scripts/30-a0006b182d.chunk.js +1 -0
- package/dist/scripts/{31-d4f5643fac.chunk.js → 31-519a6f97a7.chunk.js} +1 -1
- package/dist/scripts/31-521dc50626.chunk.js +1 -0
- package/dist/scripts/31-7ffed9c47a.chunk.js +1 -0
- package/dist/scripts/32-8550d4debb.chunk.js +1 -0
- package/dist/scripts/32-b3ff30cd69.chunk.js +1 -0
- package/dist/scripts/32-e113e76609.chunk.js +1 -0
- package/dist/scripts/33-03e4570ba4.chunk.js +1 -0
- package/dist/scripts/33-8ff79d76e9.chunk.js +1 -0
- package/dist/scripts/33-ec71147324.chunk.js +1 -0
- package/dist/scripts/{34-98936e694d.chunk.js → 34-3aa5444c72.chunk.js} +1 -1
- package/dist/scripts/34-ba214c77c4.chunk.js +1 -0
- package/dist/scripts/34-c165878a55.chunk.js +1 -0
- package/dist/scripts/{35-d8f4a4c52a.chunk.js → 35-496cf9657a.chunk.js} +1 -1
- package/dist/scripts/35-ee8df1092d.chunk.js +1 -0
- package/dist/scripts/35-fd26db6b11.chunk.js +1 -0
- package/dist/scripts/36-0692769f72.chunk.js +1 -0
- package/dist/scripts/36-6dcaf0b580.chunk.js +1 -0
- package/dist/scripts/{36-5a6664f3e8.chunk.js → 36-fc7e583ebe.chunk.js} +1 -1
- package/dist/scripts/{37-6f767aaeb8.chunk.js → 37-a9c93f251b.chunk.js} +1 -1
- package/dist/scripts/37-bd67192059.chunk.js +1 -0
- package/dist/scripts/37-c0607c21e3.chunk.js +1 -0
- package/dist/scripts/{38-e8f553648d.chunk.js → 38-0483bd181e.chunk.js} +1 -1
- package/dist/scripts/38-8ef5b16d58.chunk.js +1 -0
- package/dist/scripts/38-8f76ecfdc1.chunk.js +1 -0
- package/dist/scripts/39-0fcef24c51.chunk.js +1 -0
- package/dist/scripts/39-1412d3415e.chunk.js +1 -0
- package/dist/scripts/39-7d62285dc6.chunk.js +1 -0
- package/dist/scripts/{4-834dd6d3b5.chunk.js → 4-23928158c9.chunk.js} +1 -1
- package/dist/scripts/4-aada0cbfb6.chunk.js +1 -0
- package/dist/scripts/4-c9d9c3f585.chunk.js +1 -0
- package/dist/scripts/40-1100b25c17.chunk.js +1 -0
- package/dist/scripts/40-32c969eccb.chunk.js +1 -0
- package/dist/scripts/40-35872f5c55.chunk.js +1 -0
- package/dist/scripts/{41-a7fa9cb297.chunk.js → 41-17f9ee7943.chunk.js} +1 -1
- package/dist/scripts/41-b4516f8bd3.chunk.js +1 -0
- package/dist/scripts/41-cddc464a52.chunk.js +1 -0
- package/dist/scripts/{42-feb2800bc0.chunk.js → 42-48c096333c.chunk.js} +1 -1
- package/dist/scripts/42-befbc2640c.chunk.js +1 -0
- package/dist/scripts/42-e1c4a825ab.chunk.js +1 -0
- package/dist/scripts/{43-67c1a25fcb.chunk.js → 43-99dfda45da.chunk.js} +1 -1
- package/dist/scripts/43-f100d6d1e5.chunk.js +1 -0
- package/dist/scripts/43-f14faad3bb.chunk.js +1 -0
- package/dist/scripts/{44-e3bf1b880f.chunk.js → 44-264c87207e.chunk.js} +1 -1
- package/dist/scripts/44-cb445d74eb.chunk.js +1 -0
- package/dist/scripts/44-ce0ab6177c.chunk.js +1 -0
- package/dist/scripts/{45-cca3f789f3.chunk.js → 45-178a02640b.chunk.js} +1 -1
- package/dist/scripts/45-9f602323b9.chunk.js +1 -0
- package/dist/scripts/45-ad6e678f2f.chunk.js +1 -0
- package/dist/scripts/46-9b3358a3d5.chunk.js +1 -0
- package/dist/scripts/{46-29ee70634a.chunk.js → 46-b325e236c0.chunk.js} +1 -1
- package/dist/scripts/46-cf15530ad9.chunk.js +1 -0
- package/dist/scripts/{47-cf3f63d44d.chunk.js → 47-5c77a7ad32.chunk.js} +1 -1
- package/dist/scripts/47-6a04298336.chunk.js +1 -0
- package/dist/scripts/47-e575a166bf.chunk.js +1 -0
- package/dist/scripts/{48-db6403aacd.chunk.js → 48-5b6ba1e103.chunk.js} +1 -1
- package/dist/scripts/48-dbbf2d7201.chunk.js +1 -0
- package/dist/scripts/48-f2f1b3fd16.chunk.js +1 -0
- package/dist/scripts/{49-3a5c191f1c.chunk.js → 49-1353b5cd44.chunk.js} +1 -1
- package/dist/scripts/49-33c71f44a7.chunk.js +1 -0
- package/dist/scripts/49-9343acde91.chunk.js +1 -0
- package/dist/scripts/5-4c24ef4b17.chunk.js +1 -0
- package/dist/scripts/5-5209933115.chunk.js +1 -0
- package/dist/scripts/{5-064a5fbf1e.chunk.js → 5-62e99b780c.chunk.js} +1 -1
- package/dist/scripts/50-2d0737f078.chunk.js +1 -0
- package/dist/scripts/{50-3a8751c18f.chunk.js → 50-9780d89e4d.chunk.js} +1 -1
- package/dist/scripts/50-f49703fd03.chunk.js +1 -0
- package/dist/scripts/{51-0dbfbf89de.chunk.js → 51-07b25e7e28.chunk.js} +1 -1
- package/dist/scripts/51-30c3d48b94.chunk.js +1 -0
- package/dist/scripts/52-046c6e3cea.chunk.js +1 -0
- package/dist/scripts/{52-ee846e7179.chunk.js → 52-0ef3f6c446.chunk.js} +1 -1
- package/dist/scripts/52-ebf5f9e606.chunk.js +1 -0
- package/dist/scripts/53-b7b2f066c8.chunk.js +1 -0
- package/dist/scripts/{53-b98207087d.chunk.js → 53-bca80d41dc.chunk.js} +1 -1
- package/dist/scripts/53-d2e5a771d8.chunk.js +1 -0
- package/dist/scripts/{54-0d01cc485c.chunk.js → 54-016314b2fd.chunk.js} +1 -1
- package/dist/scripts/54-86dfdcd867.chunk.js +1 -0
- package/dist/scripts/54-92bea1b94f.chunk.js +1 -0
- package/dist/scripts/{55-02e9fa6cba.chunk.js → 55-47436a9e19.chunk.js} +1 -1
- package/dist/scripts/55-8a161d074c.chunk.js +1 -0
- package/dist/scripts/55-bc59c633de.chunk.js +1 -0
- package/dist/scripts/56-13f4f5a449.chunk.js +1 -0
- package/dist/scripts/{56-0693117bb3.chunk.js → 56-ba7f079d0d.chunk.js} +1 -1
- package/dist/scripts/56-ed3278b2f3.chunk.js +1 -0
- package/dist/scripts/57-28786c8bc4.chunk.js +1 -0
- package/dist/scripts/57-b9915c23c7.chunk.js +1 -0
- package/dist/scripts/{57-95383347b8.chunk.js → 57-f5b3ccda00.chunk.js} +1 -1
- package/dist/scripts/{58-d1f1aa5b97.chunk.js → 58-60d3aaeb75.chunk.js} +1 -1
- package/dist/scripts/58-b6c5f3e09a.chunk.js +1 -0
- package/dist/scripts/58-ca7fd2ba45.chunk.js +1 -0
- package/dist/scripts/{59-fccfef114a.chunk.js → 59-510b4148b5.chunk.js} +1 -1
- package/dist/scripts/59-efdbb58ff4.chunk.js +1 -0
- package/dist/scripts/{6-e8623fdb0e.chunk.js → 6-7ee0806388.chunk.js} +1 -1
- package/dist/scripts/6-8c482ecdbb.chunk.js +1 -0
- package/dist/scripts/6-e559a1a8ab.chunk.js +1 -0
- package/dist/scripts/{60-7793f38144.chunk.js → 60-4b0309c073.chunk.js} +1 -1
- package/dist/scripts/60-6948885f51.chunk.js +1 -0
- package/dist/scripts/60-e051efa5b9.chunk.js +1 -0
- package/dist/scripts/{61-32ca84a2ec.chunk.js → 61-129e7151e0.chunk.js} +1 -1
- package/dist/scripts/61-843e612150.chunk.js +1 -0
- package/dist/scripts/61-980f51cf2c.chunk.js +1 -0
- package/dist/scripts/{62-e725ac0d3b.chunk.js → 62-34d9b447b3.chunk.js} +1 -1
- package/dist/scripts/62-bb55bd4eae.chunk.js +1 -0
- package/dist/scripts/63-0a79957d8f.chunk.js +1 -0
- package/dist/scripts/{63-4e42efa408.chunk.js → 63-169e9ff9bf.chunk.js} +1 -1
- package/dist/scripts/63-1bfeb775c1.chunk.js +1 -0
- package/dist/scripts/64-130892f373.chunk.js +1 -0
- package/dist/scripts/{64-2ddbc6a7b6.chunk.js → 64-14ff01e6d9.chunk.js} +1 -1
- package/dist/scripts/64-49a071e139.chunk.js +1 -0
- package/dist/scripts/{65-459e6f15ae.chunk.js → 65-007f163e24.chunk.js} +1 -1
- package/dist/scripts/65-564cd8d350.chunk.js +1 -0
- package/dist/scripts/65-be3482316e.chunk.js +1 -0
- package/dist/scripts/66-304e0ea556.chunk.js +1 -0
- package/dist/scripts/{66-0af1d0b0c8.chunk.js → 66-36146b544a.chunk.js} +1 -1
- package/dist/scripts/66-f78f687d62.chunk.js +1 -0
- package/dist/scripts/{67-b2feb7dba5.chunk.js → 67-6ac2a3fb0a.chunk.js} +1 -1
- package/dist/scripts/67-9ca4b99367.chunk.js +1 -0
- package/dist/scripts/67-a21072ca9f.chunk.js +1 -0
- package/dist/scripts/68-0c004d7973.chunk.js +1 -0
- package/dist/scripts/68-53366f3d02.chunk.js +1 -0
- package/dist/scripts/{68-9687657c6c.chunk.js → 68-d50d90a237.chunk.js} +1 -1
- package/dist/scripts/{69-c6843bfa68.chunk.js → 69-452730a23c.chunk.js} +1 -1
- package/dist/scripts/69-4f02bdedb3.chunk.js +1 -0
- package/dist/scripts/69-d78d2baa8e.chunk.js +1 -0
- package/dist/scripts/7-a2afd3d627.chunk.js +1 -0
- package/dist/scripts/7-dc2fca7ba8.chunk.js +1 -0
- package/dist/scripts/7-e5fd456c94.chunk.js +1 -0
- package/dist/scripts/{70-5287f7d0f9.chunk.js → 70-276d0252a7.chunk.js} +1 -1
- package/dist/scripts/70-af636493c9.chunk.js +1 -0
- package/dist/scripts/{71-eae8d7c4ce.chunk.js → 71-2436fe0add.chunk.js} +1 -1
- package/dist/scripts/71-831d3df8c8.chunk.js +1 -0
- package/dist/scripts/71-d90524fd36.chunk.js +1 -0
- package/dist/scripts/{72-cd60863cfe.chunk.js → 72-61c4180fbb.chunk.js} +1 -1
- package/dist/scripts/72-75e03ea301.chunk.js +1 -0
- package/dist/scripts/72-d9b23cd356.chunk.js +1 -0
- package/dist/scripts/8-31707af46b.chunk.js +1 -0
- package/dist/scripts/{8-13dad94cfa.chunk.js → 8-52c5cfe789.chunk.js} +1 -1
- package/dist/scripts/8-ea8f937f63.chunk.js +1 -0
- package/dist/scripts/{9-22c46a0e1e.chunk.js → 9-4232504733.chunk.js} +1 -1
- package/dist/scripts/9-4e71fabbfb.chunk.js +1 -0
- package/dist/scripts/9-e625bd6b54.chunk.js +1 -0
- package/dist/scripts/bundle-3b246c868d.min.js +10 -0
- package/dist/scripts/{bundle-7c959985be.min.js → bundle-3dbae718ac.min.js} +3 -3
- package/dist/scripts/bundle-6294c1ed41.min.js +10 -0
- package/dist/scripts/bundle-6351493787.min.js +10 -0
- package/dist/scripts/bundle-cf501491f0.min.js +10 -0
- package/dist/scripts/polyfills-7c285dce43.min.js +1 -0
- package/dist/scripts/polyfills-995b298d2c.min.js +1 -0
- package/dist/scripts/polyfills-fe45278ea2.min.js +1 -0
- package/package.json +3 -3
- package/dist/scripts/14-8b9eba1848.chunk.js +0 -1
- package/dist/scripts/15-775c9bfa5f.chunk.js +0 -1
- package/dist/scripts/29-b76bdc35db.chunk.js +0 -1
- package/dist/scripts/32-8947914587.chunk.js +0 -1
- package/dist/scripts/33-3e64a188ce.chunk.js +0 -1
- package/dist/scripts/39-f4b507c9b9.chunk.js +0 -1
- package/dist/scripts/40-306c0ac9b2.chunk.js +0 -1
- package/dist/scripts/7-a2786c3d88.chunk.js +0 -1
- package/dist/scripts/polyfills-10972b9c3e.min.js +0 -1
|
@@ -0,0 +1 @@
|
|
|
1
|
+
(window.webpackJsonp_clickview_library_editor=window.webpackJsonp_clickview_library_editor||[]).push([[13],{1051:function(e,n,t){"use strict";t.d(n,"a",(function(){return k}));var o=t(1),r=t(6),a=t(2),i=t(20),l=t(15),s=t(93),u=t(12),c=t(1102),p=t.n(c),d=t(1103),f=t.n(d);function h(e){return(h="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}function m(e,n){for(var t=0;t<n.length;t++){var o=n[t];o.enumerable=o.enumerable||!1,o.configurable=!0,"value"in o&&(o.writable=!0),Object.defineProperty(e,o.key,o)}}function g(e,n){return(g=Object.setPrototypeOf||function(e,n){return e.__proto__=n,e})(e,n)}function y(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=v(e);if(n){var r=v(this).constructor;t=Reflect.construct(o,arguments,r)}else t=o.apply(this,arguments);return b(this,t)}}function b(e,n){return!n||"object"!==h(n)&&"function"!=typeof n?function(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}(e):n}function v(e){return(v=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)})(e)}var k=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}}),n&&g(e,n)}(h,e);var n,t,c,d=y(h);function h(e){return function(e,n){if(!(e instanceof n))throw new TypeError("Cannot call a class as a function")}(this,h),d.call(this,e)}return n=h,(t=[{key:"name",get:function(){return"SearchTypeaheadComponent"}},{key:"template",get:function(){return p.a}},{key:"className",get:function(){return"search-container ".concat(f.a.typeaheadContainer," mb-2")}},{key:"channelName",get:function(){return u.k.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||a.a.ErrorHelper.throw(new i.a("Either pass a model or a channelName to access the typeahead selection")),this.model||(this.model=new a.a.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,o="[name=".concat(this.options.inputName,"]");return e={},n=o,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.a.getSearchSources(this.options.typeaheadConfigs):s.a.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:f.a},this.options),{showRemove:this.shouldShowRemove(),svgRemove:l.a.getSvg(l.b.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)}}])&&m(n.prototype,t),c&&m(n,c),h}(a.a.Component)},1102:function(e,n,t){var o=t(10);e.exports=(o.default||o).template({1:function(e,n,t,o,r){var a;e.propertyIsEnumerable;return e.escapeExpression(e.lambda(null!=(a=null!=(a=null!=n?n.options:n)?a.styles:a)?a.disabled:a,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 a,i=e.lambda,l=e.escapeExpression,s=null!=n?n:e.nullContext||{};return'<input\r\n name="'+l(i(null!=(a=null!=n?n.options:n)?a.inputName:a,n))+'"\r\n type="text"\r\n class="form-control '+(null!=(a=t.unless.call(s,null!=(a=null!=n?n.options:n)?a.editable:a,{name:"unless",hash:{},fn:e.program(1,r,0),inverse:e.noop,data:r}))?a:"")+" "+l(i(null!=(a=null!=n?n.options:n)?a.additionalClasses:a,n))+'"\r\n id="'+l(i(null!=(a=null!=n?n.options:n)?a.inputId:a,n))+'"\r\n autocomplete="off"\r\n placeholder="'+l(i(null!=(a=null!=n?n.options:n)?a.placeholderText:a,n))+'"\r\n '+(null!=(a=t.if.call(s,null!=(a=null!=n?n.options:n)?a.autofocus:a,{name:"if",hash:{},fn:e.program(3,r,0),inverse:e.noop,data:r}))?a:"")+"\r\n "+(null!=(a=t.unless.call(s,null!=(a=null!=n?n.options:n)?a.editable:a,{name:"unless",hash:{},fn:e.program(5,r,0),inverse:e.noop,data:r}))?a:"")+'\r\n></input>\r\n<span class="svg-container mb-2 '+l(i(null!=(a=null!=(a=null!=n?n.options:n)?a.styles:a)?a.svg:a,n))+' remove" style="display: none;">'+(null!=(a=i(null!=(a=null!=n?n.options:n)?a.svgRemove:a,n))?a:"")+"</span>"},useData:!0})},1103:function(e,n,t){e.exports={svg:"_1iL3O",typeaheadContainer:"_1SWXc",disabled:"_3C2O8"}},1146:function(e,n,t){"use strict";t.d(n,"a",(function(){return w}));var o=t(6),r=t(2),a=t(15),i=t(1150),l=t(1148),s=t(3),u=t(0),c=t(187),p=t(1208),d=t.n(p),f=t(1050),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})(e)}function g(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 y(e,n){return(y=Object.setPrototypeOf||function(e,n){return e.__proto__=n,e})(e,n)}function b(e){var n=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(e){return!1}}();return function(){var t,o=k(e);if(n){var r=k(this).constructor;t=Reflect.construct(o,arguments,r)}else t=o.apply(this,arguments);return v(this,t)}}function v(e,n){return!n||"object"!==m(n)&&"function"!=typeof n?function(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}(e):n}function k(e){return(k=Object.setPrototypeOf?Object.getPrototypeOf: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}}),n&&y(e,n)}(f,e);var n,t,r,p=b(f);function f(e){return function(e,n){if(!(e instanceof n))throw new TypeError("Cannot call a class as a function")}(this,f),p.call(this,e)}return n=f,(t=[{key:"name",get:function(){return"EditBasicInfoComponent"}},{key:"tagName",get:function(){return"form"}},{key:"template",get:function(){return d.a}},{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:u.b.LIBRARY_EDITOR,action:u.a.LibraryEditor.SUGGEST_AN_EDIT,args:[this.model.get("id")],params:{metadata:c.MetadataType.VideoTitle}},".suggest-description":{application:u.b.LIBRARY_EDITOR,action:u.a.LibraryEditor.SUGGEST_AN_EDIT,args:[this.model.get("id")],params:{metadata:c.MetadataType.Description}},".applink-publisher-video":{application:u.b.LIBRARY_EDITOR,action:u.a.LibraryEditor.SHOW_PUBLISHER_VIDEO,args:[this.model.get("id")]}}}},{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.a({name:"description",class:"form-control ".concat(!this.options.editable&&h.a.disabled),placeholder:this.options.editable?s.a.getPhrase(this.lang,"descriptionPlaceholder"):"",id:"edit-description",disabled:!this.options.editable}))}},{key:"renderRatings",value:function(){this.showChildView("ratings",new i.a({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:h.a,requiredFields:this.options.requiredFields,videoTitlePlaceholder:this.options.editable?s.a.getPhrase(this.lang,"titlePlaceholder"):"",editable:this.options.editable,publisherArchiveSvg:a.a.getSvg(a.b.PublisherArchive),showPublisherVideoDetails:this.options.showPublisherVideoDetails,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)}}])&&g(n.prototype,t),r&&g(n,r),f}(r.a.Component)},1148:function(e,n,t){"use strict";t.d(n,"a",(function(){return m}));var o=t(1),r=t(2),a=t(1206),i=t.n(a),l=t(1207),s=t.n(l);function u(e){return(u="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}function c(e,n){for(var t=0;t<n.length;t++){var o=n[t];o.enumerable=o.enumerable||!1,o.configurable=!0,"value"in o&&(o.writable=!0),Object.defineProperty(e,o.key,o)}}function p(e,n){return(p=Object.setPrototypeOf||function(e,n){return e.__proto__=n,e})(e,n)}function d(e){var n=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(e){return!1}}();return function(){var t,o=h(e);if(n){var r=h(this).constructor;t=Reflect.construct(o,arguments,r)}else t=o.apply(this,arguments);return f(this,t)}}function f(e,n){return!n||"object"!==u(n)&&"function"!=typeof n?function(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}(e):n}function h(e){return(h=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)})(e)}var m=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}}),n&&p(e,n)}(l,e);var n,t,r,a=d(l);function l(e){return function(e,n){if(!(e instanceof n))throw new TypeError("Cannot call a class as a function")}(this,l),a.call(this,e)}return n=l,(t=[{key:"name",get:function(){return"ResizingTextAreaComponent"}},{key:"template",get:function(){return i.a}},{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:s.a})}}])&&c(n.prototype,t),r&&c(n,r),l}(r.a.Component)},1149:function(e,n,t){"use strict";var o=t(1),r=t(6),a=t(2),i=t(93),l=t(289),s=t(1051),u=t(337),c=t(0),p=t(29),d=t(15),f=t(1211),h=t.n(f),m=t(1212),g=t.n(m);function y(e){return(y="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}function 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 v(e,n){return(v=Object.setPrototypeOf||function(e,n){return e.__proto__=n,e})(e,n)}function k(e){var n=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(e){return!1}}();return function(){var t,o=E(e);if(n){var r=E(this).constructor;t=Reflect.construct(o,arguments,r)}else t=o.apply(this,arguments);return w(this,t)}}function w(e,n){return!n||"object"!==y(n)&&"function"!=typeof n?function(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}(e):n}function E(e){return(E=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)})(e)}var C=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}}),n&&v(e,n)}(i,e);var n,t,o,a=k(i);function i(e){return function(e,n){if(!(e instanceof n))throw new TypeError("Cannot call a class as a function")}(this,i),a.call(this,e)}return n=i,(t=[{key:"name",get:function(){return"ClearButtonComponent"}},{key:"className",get:function(){return"".concat(g.a.clearButton)}},{key:"template",get:function(){return h.a}},{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:g.a,svgClear:d.a.getSvg(d.b.Close)}}}])&&b(n.prototype,t),o&&b(n,o),i}(a.a.Component),S=t(3),O=t(187),x=t(1213),T=t.n(x),I=t(1214),R=t.n(I),P=t(1050),_=t.n(P);function D(e){return(D="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}function N(e,n,t){return n in e?Object.defineProperty(e,n,{value:t,enumerable:!0,configurable:!0,writable:!0}):e[n]=t,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 j(e,n){return(j=Object.setPrototypeOf||function(e,n){return e.__proto__=n,e})(e,n)}function A(e){var n=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(e){return!1}}();return function(){var t,o=M(e);if(n){var r=M(this).constructor;t=Reflect.construct(o,arguments,r)}else t=o.apply(this,arguments);return L(this,t)}}function L(e,n){return!n||"object"!==D(n)&&"function"!=typeof n?function(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}(e):n}function M(e){return(M=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)})(e)}var V=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}}),n&&j(e,n)}(i,e);var n,t,r,a=A(i);function i(e){return function(e,n){if(!(e instanceof n))throw new TypeError("Cannot call a class as a function")}(this,i),a.call(this,e)}return n=i,(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 T.a}},{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.b.LIBRARY_EDITOR,action:c.a.LibraryEditor.SUGGEST_AN_EDIT,args:[this.model.get("id")],params:{metadata:O.MetadataType.BroadcastDate}}}}},{key:"defaults",get:function(){return{placeholderText:S.a.getPhrase(this.lang,"placeholder"),allowTextInput:!1,allowClearDate:!0,minYear:1900,editable:!0}}},{key:"behaviors",get:function(){return[{behaviorClass:l.a},{behaviorClass:l.f}]}},{key:"bindings",get:function(){var e=this;return N({},"[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 N({"keydown @ui.date":"onKeyDownDate"},"click .".concat(R.a.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:R.a.previous,next:R.a.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(N({},"".concat(this.options.modelAttr),null)),!0)}},{key:"onKeyDownDate",value:function(e){this.options.allowTextInput||e.preventDefault()}},{key:"renderClearDateButton",value:function(){this.showChildView("clearButton",new C({channelName:this.channelName,shouldRender:this.options.allowClearDate&&!!this.model.get("dateBroadcast")}))}},{key:"viewOptions",value:function(){return{styles:o.extend(_.a,R.a),label:this.options.label,modelAttr:this.options.modelAttr,instanceClass:this.getInstanceClassName(),placeholderText:this.options.placeholderText,displayedTimeFormat:this.options.displayedTimeFormat,svgCalendar:d.a.getSvg(d.b.Calendar),svgClear:d.a.getSvg(d.b.Close),editable:this.options.editable}}},{key:"onRender",value:function(){this.initDatePicker(),this.renderClearDateButton()}}])&&B(n.prototype,t),r&&B(n,r),i}(a.a.Component),F=t(9),U=t(296),Y=t(1215),G=t.n(Y);function z(e){return(z="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}function q(e,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||function(e,n){return e.__proto__=n,e})(e,n)}function H(e){var n=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(e){return!1}}();return function(){var t,o=K(e);if(n){var r=K(this).constructor;t=Reflect.construct(o,arguments,r)}else t=o.apply(this,arguments);return W(this,t)}}function W(e,n){return!n||"object"!==z(n)&&"function"!=typeof n?function(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}(e):n}function K(e){return(K=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)})(e)}var Z=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}}),n&&J(e,n)}(a,e);var n,t,o,r=H(a);function a(e){return function(e,n){if(!(e instanceof n))throw new TypeError("Cannot call a class as a function")}(this,a),r.call(this,e)}return n=a,(t=[{key:"name",get:function(){return"EditBroadcastComponent"}},{key:"template",get:function(){return G.a}},{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.b.LIBRARY_EDITOR,action:c.a.LibraryEditor.SUGGEST_AN_EDIT,args:[this.model.get("id")],params:{metadata:O.MetadataType.Channel}}}}},{key:"buildTypeaheadConfig",value:function(){return{name:c.v.ChannelRaw,typeaheadConfig:U.a.getTypeaheadConfig(),bloodhoundConfig:U.a.getBloodhoundConfig()}}},{key:"renderBroadcastDate",value:function(){this.showChildView("dateBroadcast",new V({model:this.model,label:S.a.getPhrase(this.lang,"broadcastDate"),modelAttr:"dateBroadcast",displayedTimeFormat:F.l.FULL_YEAR,placeholderText:this.options.editable?S.a.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.a),this.showChildView("channelSearch",new s.a({model:this.model.get("channel"),parentChannelName:this.options.channelName,inputId:"channel-search",selectEvent:"select:channel",placeholderText:this.options.editable?S.a.getPhrase(this.lang,"searchChannels"):"",typeaheadConfigs:this.buildTypeaheadConfig(),callbacks:{onInput:i.a.emitEventOnInput(this.options.channelName,O.LibraryEditorActions.DetectInput,"channel"),onBlur:i.a.resetAssociationOnBlur(this.model.get("channel").toJSON())},editable:this.options.editable,removeEvent:"remove:channel"}))}},{key:"viewOptions",value:function(){return{styles:_.a,editable:this.options.editable}}},{key:"onRender",value:function(){this.renderBroadcastDate(),this.renderChannelTypeahead()}}])&&q(n.prototype,t),o&&q(n,o),a}(a.a.Component),$=t(1216),X=t.n($),Q=t(1217),ee=t.n(Q);function ne(e){return(ne="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}function te(e,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 oe(e,n){return(oe=Object.setPrototypeOf||function(e,n){return e.__proto__=n,e})(e,n)}function re(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=ie(e);if(n){var r=ie(this).constructor;t=Reflect.construct(o,arguments,r)}else t=o.apply(this,arguments);return ae(this,t)}}function ae(e,n){return!n||"object"!==ne(n)&&"function"!=typeof n?function(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}(e):n}function ie(e){return(ie=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)})(e)}var le=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}}),n&&oe(e,n)}(a,e);var n,t,o,r=re(a);function a(e){return function(e,n){if(!(e instanceof n))throw new TypeError("Cannot call a class as a function")}(this,a),r.call(this,e)}return n=a,(t=[{key:"name",get:function(){return"ToggleBroadcastComponent"}},{key:"template",get:function(){return X.a}},{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:l.a},{behaviorClass:l.f}]}},{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 Z({model:this.model,channelName:this.options.channelName,editable:this.options.editable})):this.getRegion("broadcast").empty()}},{key:"viewOptions",value:function(){return Object.assign({styles:ee.a},this.options)}},{key:"onRender",value:function(){this.renderEditBroadcast()}}])&&te(n.prototype,t),o&&te(n,o),a}(a.a.Component),se=t(30),ue=t(250),ce=t(12),pe=t(990),de=t(1218),fe=t.n(de),he=t(1219),me=t.n(he),ge=t(1220),ye=t.n(ge);function be(e){return(be="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}function ve(e,n){if(!(e instanceof n))throw new TypeError("Cannot call a class as a function")}function ke(e,n){for(var t=0;t<n.length;t++){var o=n[t];o.enumerable=o.enumerable||!1,o.configurable=!0,"value"in o&&(o.writable=!0),Object.defineProperty(e,o.key,o)}}function we(e,n,t){return n&&ke(e.prototype,n),t&&ke(e,t),e}function Ee(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}}),n&&Ce(e,n)}function Ce(e,n){return(Ce=Object.setPrototypeOf||function(e,n){return e.__proto__=n,e})(e,n)}function Se(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=xe(e);if(n){var r=xe(this).constructor;t=Reflect.construct(o,arguments,r)}else t=o.apply(this,arguments);return Oe(this,t)}}function Oe(e,n){return!n||"object"!==be(n)&&"function"!=typeof n?function(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}(e):n}function xe(e){return(xe=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)})(e)}var Te=function(e){Ee(t,e);var n=Se(t);function t(e){var o;return ve(this,t),(o=n.call(this,e)).showSpinner=!1,o.disableBtn=!0,o}return we(t,[{key:"initialize",value:function(){this.bindListeners()}},{key:"name",get:function(){return"CreateSeasonComponent"}},{key:"template",get:function(){return fe.a}},{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:l.f},{behaviorClass:l.a}]}},{key:"bindListeners",value:function(){this.listenTo(this.model,"change",this.onChange),this.listenTo(this.options.channelName,"create:season",this.onCreateSeason),this.listenTo(c.e.SERIES,"".concat(c.f.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 ue.a({channelName:this.options.channelName,saveEvent:"create:season",extraButtonClass:"btn btn-primary",buttonText:"Create",buttonType:"submit",showSpinner:this.showSpinner,disabled:this.disableBtn,spinnerOptions:{size:ce.s.Small}}))}},{key:"onRender",value:function(){this.stickit(),this.renderButton()}},{key:"onClose",value:function(){this.unstickit()}}]),t}(a.a.Component),Ie=function(e){Ee(t,e);var n=Se(t);function t(e){return ve(this,t),n.call(this,e)}return we(t,[{key:"initialize",value:function(){this.model.get("season.id")&&ce.c.setSelected(this.model.get("season.id"),this.collection),this.viewModel=se.a.get("".concat(this.name,":").concat(this.model.get("id"))),this.options.disabled||this.viewModel.addValidation(pe.e)}},{key:"name",get:function(){return"EditSeasonInfoComponent"}},{key:"template",get:function(){return me.a}},{key:"className",get:function(){return ye.a.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?S.a.getPhrase(this.lang,"season",{number:e}):"";this.getUI("dropdownBtn").text(n)}else{var t=e&&"-1"!==e?"season":"placeholder";this.getUI("dropdownBtn").text(S.a.getPhrase(this.lang,t,{number:e}))}}},{key:"renderCreate",value:function(){this.showChildView("create",new Te({model:this.viewModel,channelName:this.options.channelName,show:this.showCreateForm,seriesId:this.model.get("series.id")}))}},{key:"viewOptions",value:function(){return{styles:ye.a,disabled:this.options.disabled,seasons:this.collection.toJSON(),svgRemove:d.a.getSvg(d.b.Close),showRemoveIcon:!!this.model.get("season.id")&&!this.options.isSuggestEdit}}},{key:"onRender",value:function(){this.renderCreate(),this.setButtonText(this.model.get("season.number"))}}]),t}(a.a.Component),Re=t(302),Pe=t(1221),_e=t.n(Pe),De=t(1222),Ne=t.n(De);function Be(e){return(Be="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}function je(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 Ae(e,n){return(Ae=Object.setPrototypeOf||function(e,n){return e.__proto__=n,e})(e,n)}function Le(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=Ve(e);if(n){var r=Ve(this).constructor;t=Reflect.construct(o,arguments,r)}else t=o.apply(this,arguments);return Me(this,t)}}function Me(e,n){return!n||"object"!==Be(n)&&"function"!=typeof n?function(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}(e):n}function Ve(e){return(Ve=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)})(e)}t.d(n,"a",(function(){return Fe}));var Fe=function(e){!function(e,n){if("function"!=typeof n&&null!==n)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(n&&n.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),n&&Ae(e,n)}(d,e);var n,t,u,p=Le(d);function d(e){return function(e,n){if(!(e instanceof n))throw new TypeError("Cannot call a class as a function")}(this,d),p.call(this,e)}return n=d,(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 _e.a}},{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.b.LIBRARY_EDITOR,action:c.a.LibraryEditor.SUGGEST_AN_EDIT,args:[this.model.get("id")],params:{metadata:O.MetadataType.SeriesTitle}},".suggest-season-number":{application:c.b.LIBRARY_EDITOR,action:c.a.LibraryEditor.SUGGEST_AN_EDIT,args:[this.model.get("id")],params:{metadata:O.MetadataType.Season}},".suggest-episode-number":{application:c.b.LIBRARY_EDITOR,action:c.a.LibraryEditor.SUGGEST_AN_EDIT,args:[this.model.get("id")],params:{metadata:O.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:l.f},{behaviorClass:l.a}]}},{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(Ne.a.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=ce.m.getTypeaheadConfig(),n=ce.m.getBloodhoundConfig(),t={newType:c.v.Series},o={newType:c.v.Series,footerTemplate:i.a.getConfirmSelectionTemplate()};return[{name:c.v.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 a.a.Model;this.showChildView("series",new s.a({model:e,editable:this.options.editable,parentChannelName:this.options.channelName,inputId:"series-search",selectEvent:"select:series",placeholderText:this.options.editable?S.a.getPhrase(this.lang,"searchSeries"):"",typeaheadConfigs:this.getTypeaheadConfigs(),typeaheadOptions:{hint:!1},callbacks:{onRender:i.a.selectFirstResult,onInput:i.a.emitEventOnInput(this.options.channelName,O.LibraryEditorActions.DetectInput,"series"),onBlur:i.a.resetAssociationOnBlur(e.toJSON())},removeEvent:"remove:series"}))}},{key:"renderEditSeason",value:function(){var e=this,n=this.model.get("series.seasons")||new Re.a,t=new Re.a(n.map((function(n){return n.set("displayName",S.a.getPhrase(e.lang,"seasonNumber",{number:n.get("number")}))})));this.showChildView("season",new Ie({model:this.model,collection:t,channelName:this.options.channelName,disabled:!this.options.editable||this.lockSeasonAndEpisode,isSuggestEdit:!this.options.editable}))}},{key:"renderEditBroadcast",value:function(){this.showChildView("broadcast",new le({model:this.model,channelName:this.options.channelName,hideToggle:!0,editable:this.options.editable}))}},{key:"viewOptions",value:function(){return{styles:o.extend({},_.a,Ne.a),editable:this.options.editable,lockEpisodeNumber:this.lockSeasonAndEpisode,episodeNumberPlaceholderText:this.options.editable?S.a.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)}}])&&je(n.prototype,t),u&&je(n,u),d}(a.a.Component)},1151:function(e,n,t){"use strict";var o=t(1),r=t(6),a=t(2),i=t(15),l=t(93),s=t(289),u=t(0),c=t(3),p=t(1051),d=t(187),f=t(1209),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})(e)}function g(e,n){if(!(e instanceof n))throw new TypeError("Cannot call a class as a function")}function y(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 b(e,n,t){return n&&y(e.prototype,n),t&&y(e,t),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}}),n&&k(e,n)}function k(e,n){return(k=Object.setPrototypeOf||function(e,n){return e.__proto__=n,e})(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){return!n||"object"!==m(n)&&"function"!=typeof n?function(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}(e):n}function C(e){return(C=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)})(e)}var S=function(e){v(t,e);var n=w(t);function t(e){return g(this,t),n.call(this,e)}return b(t,[{key:"name",get:function(){return"TypeaheadListComponentCollection"}},{key:"childViewOptions",get:function(){return Object.assign({},this.options)}},{key:"childView",get:function(){return O}}]),t}(a.a.ComponentCollection),O=function(e){v(t,e);var n=w(t);function t(e){return g(this,t),n.call(this,e)}return b(t,[{key:"name",get:function(){return"TypeaheadListComponent"}},{key:"template",get:function(){return h.a}},{key:"modelId",get:function(){return this.model.get("id")||"new-model"}},{key:"bindings",get:function(){return e={},n="[name=".concat(this.modelId,"]"),t={observe:"name",setOptions:{validate:!0}},n 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.a({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:l.a.selectFirstResult,onInput:l.a.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}(a.a.Component),x=t(296),T=t(9),I=t(643),R=t(642),P=t(644),_=t(645),D=t(1210),N=t.n(D),B=t(1050),j=t.n(B);function A(e){return(A="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}function L(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||function(e,n){return e.__proto__=n,e})(e,n)}function V(e){var n=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(e){return!1}}();return function(){var t,o=U(e);if(n){var r=U(this).constructor;t=Reflect.construct(o,arguments,r)}else t=o.apply(this,arguments);return F(this,t)}}function F(e,n){return!n||"object"!==A(n)&&"function"!=typeof n?function(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}(e):n}function U(e){return(U=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)})(e)}t.d(n,"a",(function(){return Y}));var Y=function(e){!function(e,n){if("function"!=typeof n&&null!==n)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(n&&n.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),n&&M(e,n)}(f,e);var n,t,a,p=V(f);function f(e){return function(e,n){if(!(e instanceof n))throw new TypeError("Cannot call a class as a function")}(this,f),p.call(this,e)}return n=f,(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 N.a}},{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.a},{behaviorClass:s.f}]}},{key:"appLinks",get:function(){var e={application:u.b.LIBRARY_EDITOR,action:u.a.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(T.a.Producer)}},{key:"onClickAddNewDirector",value:function(){this.expandPersonList(T.a.Director)}},{key:"onClickAddNewDistributor",value:function(){this.expandPersonList(T.a.Distributor)}},{key:"onClickAddNewProductionCompany",value:function(){this.expandPersonList(T.a.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,T.a.Distributor)}},{key:"onSelectProductionCompany",value:function(e){this.onSelect(e,T.a.ProductionCompany)}},{key:"onSelectDirector",value:function(e){this.onSelect(e,T.a.Director)}},{key:"onSelectProducer",value:function(e){this.onSelect(e,T.a.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,T.a.Distributor)}},{key:"onRemoveProductionCompany",value:function(e){this.onRemove(e,T.a.ProductionCompany)}},{key:"onRemoveDirector",value:function(e){this.onRemove(e,T.a.Director)}},{key:"onRemoveProducer",value:function(e){this.onRemove(e,T.a.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=x.a.getTypeaheadConfig(),t=x.a.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:l.a.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 S({collection:this.model.get("distributors"),channelName:this.options.channelName,typeaheadConfig:this.buildTypeaheadConfig(u.v.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 S({collection:this.model.get("productionCompanies"),channelName:this.options.channelName,typeaheadConfig:this.buildTypeaheadConfig(u.v.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 S({collection:this.model.get("directors"),channelName:this.options.channelName,typeaheadConfig:this.buildTypeaheadConfig(u.v.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 S({collection:this.model.get("producers"),channelName:this.options.channelName,typeaheadConfig:this.buildTypeaheadConfig(u.v.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 I.a([{}])),this.model.get("productionCompanies")||this.model.set("productionCompanies",new P.a([{}])),this.model.get("directors")||this.model.set("directors",new _.a([{}])),this.model.get("producers")||this.model.set("producers",new R.a([{}])),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:j.a,editable:this.options.editable,productionYearPlaceholderText:this.options.editable?c.a.getPhrase(this.lang,"productionYearPlaceholder"):"",allowAdditionalDirector:this.allowAdditional(T.a.Director),allowAdditionalProducer:this.allowAdditional(T.a.Producer),allowAdditionalDistributor:this.allowAdditional(T.a.Distributor),allowAdditionalProductionCompany:this.allowAdditional(T.a.ProductionCompany),infoSvg:i.a.getSvg(i.b.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")}}])&&L(n.prototype,t),a&&L(n,a),f}(a.a.Component)},1206:function(e,n,t){var o=t(10);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 a,i=e.lambda,l=e.escapeExpression,s=null!=n?n:e.nullContext||{};return'<textarea\r\n name="'+l(i(null!=(a=null!=n?n.options:n)?a.name:a,n))+'"\r\n id="'+l(i(null!=(a=null!=n?n.options:n)?a.id:a,n))+'"\r\n autocomplete="false"\r\n class="'+l(i(null!=(a=null!=n?n.options:n)?a.class:a,n))+" event-selector "+l(i(null!=(a=null!=(a=null!=n?n.options:n)?a.styles:a)?a.resizingTextarea:a,n))+'"\r\n placeholder="'+l(i(null!=(a=null!=n?n.options:n)?a.placeholder:a,n))+'"\r\n '+(null!=(a=t.if.call(s,null!=(a=null!=n?n.options:n)?a.required:a,{name:"if",hash:{},fn:e.program(1,r,0),inverse:e.noop,data:r}))?a:"")+"\r\n "+(null!=(a=t.if.call(s,null!=(a=null!=n?n.options:n)?a.readonly:a,{name:"if",hash:{},fn:e.program(3,r,0),inverse:e.noop,data:r}))?a:"")+"\r\n "+(null!=(a=t.if.call(s,null!=(a=null!=n?n.options:n)?a.disabled:a,{name:"if",hash:{},fn:e.program(5,r,0),inverse:e.noop,data:r}))?a:"")+"\r\n></textarea>"},useData:!0})},1207:function(e,n,t){e.exports={resizingTextarea:"qKxbV"}},1208:function(e,n,t){var o=t(10);e.exports=(o.default||o).template({1:function(e,n,t,o,r){return"d-inline-block"},3:function(e,n,t,o,r){e.propertyIsEnumerable;var a,i=null!=n?n:e.nullContext||{},l=e.lambda,s=e.escapeExpression;return" "+(null!=(a=t.if.call(i,null!=(a=null!=n?n.options:n)?a.showingSaveButton:a,{name:"if",hash:{},fn:e.program(4,r,0),inverse:e.noop,data:r}))?a:"")+'\r\n <a class="'+(null!=(a=t.unless.call(i,null!=(a=null!=n?n.options:n)?a.showingSaveButton:a,{name:"unless",hash:{},fn:e.program(6,r,0),inverse:e.noop,data:r}))?a:"")+'cursor-pointer applink-publisher-video">\r\n <span class="d-inline-block align-middle '+s(l(null!=(a=null!=(a=null!=n?n.options:n)?a.styles:a)?a.icon:a,n))+'">'+(null!=(a=l(null!=(a=null!=n?n.options:n)?a.publisherArchiveSvg:a,n))?a:"")+"</span> "+s((t.lang||n&&n.lang||e.hooks.helperMissing).call(i,"viewInPublisherArchive",{name:"lang",hash:{},data:r}))+"\r\n </a>\r\n"},4:function(e,n,t,o,r){return"-"},6:function(e,n,t,o,r){return"float-right "},8:function(e,n,t,o,r){var a;e.propertyIsEnumerable;return e.escapeExpression(e.lambda(null!=(a=null!=(a=null!=n?n.options:n)?a.styles:a)?a.programTitle:a,n))},10:function(e,n,t,o,r){var a;e.propertyIsEnumerable;return'<span class="'+e.escapeExpression(e.lambda(null!=(a=null!=(a=null!=n?n.options:n)?a.styles:a)?a.requiredStar:a,n))+'">*</span>'},12:function(e,n,t,o,r){e.propertyIsEnumerable;var a,i=e.escapeExpression;return'<span class="'+i(e.lambda(null!=(a=null!=(a=null!=n?n.options:n)?a.styles:a)?a.suggestEdit:a,n))+'">- <a class="suggest-title">'+i((t.lang||n&&n.lang||e.hooks.helperMissing).call(null!=n?n:e.nullContext||{},"suggestEdit",{name:"lang",hash:{},data:r}))+"</a></span>"},14:function(e,n,t,o,r){var a;e.propertyIsEnumerable;return e.escapeExpression(e.lambda(null!=(a=null!=(a=null!=n?n.options:n)?a.styles:a)?a.disabled:a,n))},16:function(e,n,t,o,r){return"disabled"},18:function(e,n,t,o,r){var a;e.propertyIsEnumerable;return e.escapeExpression(e.lambda(null!=(a=null!=(a=null!=n?n.options:n)?a.styles:a)?a.description:a,n))},20:function(e,n,t,o,r){e.propertyIsEnumerable;var a,i=e.escapeExpression;return'<span class="'+i(e.lambda(null!=(a=null!=(a=null!=n?n.options:n)?a.styles:a)?a.suggestEdit:a,n))+'">- <a class="suggest-description">'+i((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 a,i=null!=n?n:e.nullContext||{},l=e.hooks.helperMissing,s=e.escapeExpression;return'<div class="position-relative '+(null!=(a=t.if.call(i,null!=(a=null!=n?n.options:n)?a.showingSaveButton:a,{name:"if",hash:{},fn:e.program(1,r,0),inverse:e.noop,data:r}))?a:"")+'">\r\n <h5 class="d-inline-block">'+s((t.lang||n&&n.lang||l).call(i,"heading",{name:"lang",hash:{},data:r}))+"</h5>\r\n\r\n"+(null!=(a=t.if.call(i,null!=(a=null!=n?n.options:n)?a.showPublisherVideoDetails:a,{name:"if",hash:{},fn:e.program(3,r,0),inverse:e.noop,data:r}))?a:"")+'</div>\r\n<div class="form-group '+(null!=(a=t.unless.call(i,null!=(a=null!=n?n.options:n)?a.editable:a,{name:"unless",hash:{},fn:e.program(8,r,0),inverse:e.noop,data:r}))?a:"")+'">\r\n <label for="edit-title">'+s((t.lang||n&&n.lang||l).call(i,"title",{name:"lang",hash:{},data:r}))+(null!=(a=t.if.call(i,null!=(a=null!=(a=null!=n?n.options:n)?a.requiredFields:a)?a.programTitle:a,{name:"if",hash:{},fn:e.program(10,r,0),inverse:e.noop,data:r}))?a:"")+"</label>\r\n "+(null!=(a=t.unless.call(i,null!=(a=null!=n?n.options:n)?a.editable:a,{name:"unless",hash:{},fn:e.program(12,r,0),inverse:e.noop,data:r}))?a:"")+'\r\n <input\r\n name="name"\r\n type="text"\r\n class="form-control '+(null!=(a=t.unless.call(i,null!=(a=null!=n?n.options:n)?a.editable:a,{name:"unless",hash:{},fn:e.program(14,r,0),inverse:e.noop,data:r}))?a:"")+'"\r\n placeholder="'+s((t.lang||n&&n.lang||l).call(i,"titlePlaceholder",{name:"lang",hash:{},data:r}))+'"\r\n id="edit-title"\r\n autocomplete="off"\r\n '+(null!=(a=t.unless.call(i,null!=(a=null!=n?n.options:n)?a.editable:a,{name:"unless",hash:{},fn:e.program(16,r,0),inverse:e.noop,data:r}))?a:"")+'\r\n >\r\n <div class="form-feedback"></div>\r\n</div>\r\n<div class="form-group '+(null!=(a=t.unless.call(i,null!=(a=null!=n?n.options:n)?a.editable:a,{name:"unless",hash:{},fn:e.program(18,r,0),inverse:e.noop,data:r}))?a:"")+'">\r\n <label for="edit-description">'+s((t.lang||n&&n.lang||l).call(i,"description",{name:"lang",hash:{},data:r}))+"</label>\r\n "+(null!=(a=t.unless.call(i,null!=(a=null!=n?n.options:n)?a.editable:a,{name:"unless",hash:{},fn:e.program(20,r,0),inverse:e.noop,data:r}))?a:"")+'\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})},1209:function(e,n,t){var o=t(10);e.exports=(o.default||o).template({compiler:[8,">= 4.3.0"],main:function(e,n,t,o,r){var a;e.propertyIsEnumerable;return'<div class="typeahead-region '+e.escapeExpression(e.lambda(null!=(a=null!=(a=null!=n?n.options:n)?a.styles:a)?a.typeahead:a,n))+'"></div>'},useData:!0})},1210:function(e,n,t){var o=t(10);e.exports=(o.default||o).template({1:function(e,n,t,o,r){var a;e.propertyIsEnumerable;return e.escapeExpression(e.lambda(null!=(a=null!=(a=null!=n?n.options:n)?a.styles:a)?a.productionYear:a,n))},3:function(e,n,t,o,r){e.propertyIsEnumerable;var a,i=e.escapeExpression;return'<span class="'+i(e.lambda(null!=(a=null!=(a=null!=n?n.options:n)?a.styles:a)?a.suggestEdit:a,n))+'">- <a class="suggest-production-year">'+i((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 a;e.propertyIsEnumerable;return e.escapeExpression(e.lambda(null!=(a=null!=(a=null!=n?n.options:n)?a.styles:a)?a.disabled:a,n))},7:function(e,n,t,o,r){return"disabled"},9:function(e,n,t,o,r){var a;e.propertyIsEnumerable;return e.escapeExpression(e.lambda(null!=(a=null!=(a=null!=n?n.options:n)?a.styles:a)?a.productionCompanies:a,n))},11:function(e,n,t,o,r){e.propertyIsEnumerable;var a,i=e.escapeExpression;return'<span class="'+i(e.lambda(null!=(a=null!=(a=null!=n?n.options:n)?a.styles:a)?a.suggestEdit:a,n))+'">- <a class="suggest-production-companies">'+i((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){e.propertyIsEnumerable;return' <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 a;e.propertyIsEnumerable;return e.escapeExpression(e.lambda(null!=(a=null!=(a=null!=n?n.options:n)?a.styles:a)?a.distributors:a,n))},17:function(e,n,t,o,r){e.propertyIsEnumerable;var a,i=e.escapeExpression;return'<span class="'+i(e.lambda(null!=(a=null!=(a=null!=n?n.options:n)?a.styles:a)?a.suggestEdit:a,n))+'">- <a class="suggest-distributors">'+i((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){e.propertyIsEnumerable;return' <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 a;e.propertyIsEnumerable;return e.escapeExpression(e.lambda(null!=(a=null!=(a=null!=n?n.options:n)?a.styles:a)?a.producers:a,n))},23:function(e,n,t,o,r){e.propertyIsEnumerable;var a,i=e.escapeExpression;return'<span class="'+i(e.lambda(null!=(a=null!=(a=null!=n?n.options:n)?a.styles:a)?a.suggestEdit:a,n))+'">- <a class="suggest-producers">'+i((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){e.propertyIsEnumerable;return' <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 a;e.propertyIsEnumerable;return e.escapeExpression(e.lambda(null!=(a=null!=(a=null!=n?n.options:n)?a.styles:a)?a.directors:a,n))},29:function(e,n,t,o,r){e.propertyIsEnumerable;var a,i=e.escapeExpression;return'<span class="'+i(e.lambda(null!=(a=null!=(a=null!=n?n.options:n)?a.styles:a)?a.suggestEdit:a,n))+'">- <a class="suggest-directors">'+i((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){e.propertyIsEnumerable;return' <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 a,i=null!=n?n:e.nullContext||{},l=e.hooks.helperMissing,s=e.escapeExpression,u=e.lambda;return"<h5>"+s((t.lang||n&&n.lang||l).call(i,"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!=(a=t.unless.call(i,null!=(a=null!=n?n.options:n)?a.editable:a,{name:"unless",hash:{},fn:e.program(1,r,0),inverse:e.noop,data:r}))?a:"")+'">\r\n <label for="edit-production-year">'+s((t.lang||n&&n.lang||l).call(i,"productionYear",{name:"lang",hash:{},data:r}))+"</label>\r\n "+(null!=(a=t.unless.call(i,null!=(a=null!=n?n.options:n)?a.editable:a,{name:"unless",hash:{},fn:e.program(3,r,0),inverse:e.noop,data:r}))?a:"")+'\r\n <input\r\n name="productionYear"\r\n type="number"\r\n class="form-control '+(null!=(a=t.unless.call(i,null!=(a=null!=n?n.options:n)?a.editable:a,{name:"unless",hash:{},fn:e.program(5,r,0),inverse:e.noop,data:r}))?a:"")+'"\r\n id="edit-production-year"\r\n placeholder="'+s(u(null!=(a=null!=n?n.options:n)?a.productionYearPlaceholderText:a,n))+'"\r\n autocomplete="off"\r\n '+(null!=(a=t.unless.call(i,null!=(a=null!=n?n.options:n)?a.editable:a,{name:"unless",hash:{},fn:e.program(7,r,0),inverse:e.noop,data:r}))?a:"")+'\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!=(a=t.unless.call(i,null!=(a=null!=n?n.options:n)?a.editable:a,{name:"unless",hash:{},fn:e.program(9,r,0),inverse:e.noop,data:r}))?a:"")+'">\r\n <label for="production-company-search">\r\n '+s((t.lang||n&&n.lang||l).call(i,"productionCompanies",{name:"lang",hash:{},data:r}))+'\r\n <span class="'+s(u(null!=(a=null!=(a=null!=n?n.options:n)?a.styles:a)?a.infoSvgContainer:a,n))+' info-tooltip" \r\n title="'+s((t.lang||n&&n.lang||l).call(i,"productionCompanyInfo",{name:"lang",hash:{},data:r}))+'"\r\n >'+(null!=(a=u(null!=(a=null!=n?n.options:n)?a.infoSvg:a,n))?a:"")+"</span>\r\n </label>\r\n "+(null!=(a=t.unless.call(i,null!=(a=null!=n?n.options:n)?a.editable:a,{name:"unless",hash:{},fn:e.program(11,r,0),inverse:e.noop,data:r}))?a:"")+'\r\n <div class="production-company-region"></div>\r\n'+(null!=(a=t.if.call(i,null!=(a=null!=n?n.options:n)?a.allowAdditionalProductionCompany:a,{name:"if",hash:{},fn:e.program(13,r,0),inverse:e.noop,data:r}))?a:"")+' </div>\r\n\r\n <div class="form-group col-6 pr-0 '+(null!=(a=t.unless.call(i,null!=(a=null!=n?n.options:n)?a.editable:a,{name:"unless",hash:{},fn:e.program(15,r,0),inverse:e.noop,data:r}))?a:"")+'">\r\n <label for="distributor-search">\r\n '+s((t.lang||n&&n.lang||l).call(i,"distributors",{name:"lang",hash:{},data:r}))+'\r\n <span class="'+s(u(null!=(a=null!=(a=null!=n?n.options:n)?a.styles:a)?a.infoSvgContainer:a,n))+' info-tooltip"\r\n title="'+s((t.lang||n&&n.lang||l).call(i,"distributorInfo",{name:"lang",hash:{},data:r}))+'"\r\n >'+(null!=(a=u(null!=(a=null!=n?n.options:n)?a.infoSvg:a,n))?a:"")+"</span>\r\n </label>\r\n "+(null!=(a=t.unless.call(i,null!=(a=null!=n?n.options:n)?a.editable:a,{name:"unless",hash:{},fn:e.program(17,r,0),inverse:e.noop,data:r}))?a:"")+'\r\n <div class="distributor-region"></div>\r\n'+(null!=(a=t.if.call(i,null!=(a=null!=n?n.options:n)?a.allowAdditionalDistributor:a,{name:"if",hash:{},fn:e.program(19,r,0),inverse:e.noop,data:r}))?a:"")+' </div>\r\n </div>\r\n\r\n <div class="row">\r\n <div class="form-group col-6 '+(null!=(a=t.unless.call(i,null!=(a=null!=n?n.options:n)?a.editable:a,{name:"unless",hash:{},fn:e.program(21,r,0),inverse:e.noop,data:r}))?a:"")+'">\r\n <label for="producer-search">\r\n '+s((t.lang||n&&n.lang||l).call(i,"producers",{name:"lang",hash:{},data:r}))+'\r\n <span class="'+s(u(null!=(a=null!=(a=null!=n?n.options:n)?a.styles:a)?a.infoSvgContainer:a,n))+' info-tooltip"\r\n title="'+s((t.lang||n&&n.lang||l).call(i,"producerInfo",{name:"lang",hash:{},data:r}))+'"\r\n >'+(null!=(a=u(null!=(a=null!=n?n.options:n)?a.infoSvg:a,n))?a:"")+"</span>\r\n </label>\r\n "+(null!=(a=t.unless.call(i,null!=(a=null!=n?n.options:n)?a.editable:a,{name:"unless",hash:{},fn:e.program(23,r,0),inverse:e.noop,data:r}))?a:"")+'\r\n <div class="producers-region"></div>\r\n'+(null!=(a=t.if.call(i,null!=(a=null!=n?n.options:n)?a.allowAdditionalProducer:a,{name:"if",hash:{},fn:e.program(25,r,0),inverse:e.noop,data:r}))?a:"")+' </div>\r\n\r\n <div class="form-group col-6 pr-0 '+(null!=(a=t.unless.call(i,null!=(a=null!=n?n.options:n)?a.editable:a,{name:"unless",hash:{},fn:e.program(27,r,0),inverse:e.noop,data:r}))?a:"")+'">\r\n <label for="director-search">\r\n '+s((t.lang||n&&n.lang||l).call(i,"directors",{name:"lang",hash:{},data:r}))+'\r\n <span class="'+s(u(null!=(a=null!=(a=null!=n?n.options:n)?a.styles:a)?a.infoSvgContainer:a,n))+' info-tooltip"\r\n title="'+s((t.lang||n&&n.lang||l).call(i,"directorInfo",{name:"lang",hash:{},data:r}))+'"\r\n >'+(null!=(a=u(null!=(a=null!=n?n.options:n)?a.infoSvg:a,n))?a:"")+"</span>\r\n </label>\r\n "+(null!=(a=t.unless.call(i,null!=(a=null!=n?n.options:n)?a.editable:a,{name:"unless",hash:{},fn:e.program(29,r,0),inverse:e.noop,data:r}))?a:"")+'\r\n <div class="directors-region"></div>\r\n'+(null!=(a=t.if.call(i,null!=(a=null!=n?n.options:n)?a.allowAdditionalDirector:a,{name:"if",hash:{},fn:e.program(31,r,0),inverse:e.noop,data:r}))?a:"")+" </div>\r\n </div>\r\n</div>"},useData:!0})},1211:function(e,n,t){var o=t(10);e.exports=(o.default||o).template({compiler:[8,">= 4.3.0"],main:function(e,n,t,o,r){e.propertyIsEnumerable;var a,i=e.lambda;return'<span class="svg-container '+e.escapeExpression(i(null!=(a=null!=(a=null!=n?n.options:n)?a.styles:a)?a.clearSvg:a,n))+' clear-button">'+(null!=(a=i(null!=(a=null!=n?n.options:n)?a.svgClear:a,n))?a:"")+"</span>"},useData:!0})},1212:function(e,n,t){e.exports={clearSvg:"_2-D4Z"}},1213:function(e,n,t){var o=t(10);e.exports=(o.default||o).template({1:function(e,n,t,o,r){e.propertyIsEnumerable;var a,i=e.lambda,l=e.escapeExpression;return' <label for="'+l(i(null!=(a=null!=n?n.options:n)?a.modelAttr:a,n))+'">'+l(i(null!=(a=null!=n?n.options:n)?a.label:a,n))+"</label>\r\n "+(null!=(a=t.unless.call(null!=n?n:e.nullContext||{},null!=(a=null!=n?n.options:n)?a.editable:a,{name:"unless",hash:{},fn:e.program(2,r,0),inverse:e.noop,data:r}))?a:"")+"\r\n"},2:function(e,n,t,o,r){e.propertyIsEnumerable;var a,i=e.escapeExpression;return'<span class="'+i(e.lambda(null!=(a=null!=(a=null!=n?n.options:n)?a.styles:a)?a.suggestEdit:a,n))+'">- <a class="suggest-broadcast-date">'+i((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 a;e.propertyIsEnumerable;return e.escapeExpression(e.lambda(null!=(a=null!=(a=null!=n?n.options:n)?a.styles:a)?a.disabled:a,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 a,i=e.lambda,l=e.escapeExpression,s=null!=n?n:e.nullContext||{};return'<div class="'+l(i(null!=(a=null!=(a=null!=n?n.options:n)?a.styles:a)?a.datePicker:a,n))+" "+l(i(null!=(a=null!=(a=null!=n?n.options:n)?a.styles:a)?a.broadcastDate:a,n))+'">\r\n'+(null!=(a=t.if.call(s,null!=(a=null!=n?n.options:n)?a.label:a,{name:"if",hash:{},fn:e.program(1,r,0),inverse:e.noop,data:r}))?a:"")+' <input\r\n name="'+l(i(null!=(a=null!=n?n.options:n)?a.modelAttr:a,n))+'"\r\n class="form-control datetimepicker-input '+l(i(null!=(a=null!=n?n.options:n)?a.instanceClass:a,n))+" "+(null!=(a=t.unless.call(s,null!=(a=null!=n?n.options:n)?a.editable:a,{name:"unless",hash:{},fn:e.program(4,r,0),inverse:e.noop,data:r}))?a:"")+'"\r\n id="'+l(i(null!=(a=null!=n?n.options:n)?a.modelAttr:a,n))+'"\r\n placeholder="'+l(i(null!=(a=null!=n?n.options:n)?a.placeholderText:a,n))+'"\r\n data-toggle="datetimepicker"\r\n data-target=".'+l(i(null!=(a=null!=n?n.options:n)?a.instanceClass:a,n))+'"\r\n autocomplete="off"\r\n '+(null!=(a=t.unless.call(s,null!=(a=null!=n?n.options:n)?a.editable:a,{name:"unless",hash:{},fn:e.program(6,r,0),inverse:e.noop,data:r}))?a:"")+'\r\n />\r\n <span class="clear-button-region clear-svg"></span>\r\n <span class="svg-container '+l(i(null!=(a=null!=(a=null!=n?n.options:n)?a.styles:a)?a.calendarSvg:a,n))+" "+(null!=(a=t.if.call(s,null!=(a=null!=n?n.options:n)?a.editable:a,{name:"if",hash:{},fn:e.program(8,r,0),inverse:e.program(4,r,0),data:r}))?a:"")+'">'+(null!=(a=i(null!=(a=null!=n?n.options:n)?a.svgCalendar:a,n))?a:"")+'</span>\r\n <div class="form-feedback"></div>\r\n</div>'},useData:!0})},1214:function(e,n,t){e.exports={next:"_1sAku",previous:"_3zc5V",datePicker:"_1j_H7",calendarSvg:"_3ViTN",disabled:"DzdxT"}},1215:function(e,n,t){var o=t(10);e.exports=(o.default||o).template({1:function(e,n,t,o,r){e.propertyIsEnumerable;var a,i=e.escapeExpression;return'<span class="'+i(e.lambda(null!=(a=null!=(a=null!=n?n.options:n)?a.styles:a)?a.suggestEdit:a,n))+'">- <a class="suggest-channel">'+i((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 a,i=e.escapeExpression,l=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 '+i(e.lambda(null!=(a=null!=(a=null!=n?n.options:n)?a.styles:a)?a.channel:a,n))+'">\r\n <label for="channel-search">'+i((t.lang||n&&n.lang||e.hooks.helperMissing).call(l,"channel",{name:"lang",hash:{},data:r}))+"</label>\r\n "+(null!=(a=t.unless.call(l,null!=(a=null!=n?n.options:n)?a.editable:a,{name:"unless",hash:{},fn:e.program(1,r,0),inverse:e.noop,data:r}))?a:"")+'\r\n <div class="channel-search-region"></div>\r\n </div>\r\n </div>\r\n</div>'},useData:!0})},1216:function(e,n,t){var o=t(10);e.exports=(o.default||o).template({1:function(e,n,t,o,r){e.propertyIsEnumerable;var a,i=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!=(a=t.unless.call(i,null!=(a=null!=n?n.options:n)?a.editable:a,{name:"unless",hash:{},fn:e.program(2,r,0),inverse:e.noop,data:r}))?a:"")+'"\r\n id="toggle-broadcast"\r\n '+(null!=(a=t.unless.call(i,null!=(a=null!=n?n.options:n)?a.editable:a,{name:"unless",hash:{},fn:e.program(4,r,0),inverse:e.noop,data:r}))?a:"")+'\r\n >\r\n <label class="custom-control-label" for="toggle-broadcast">'+e.escapeExpression((t.lang||n&&n.lang||e.hooks.helperMissing).call(i,"tv",{name:"lang",hash:{},data:r}))+"</label>\r\n </div>\r\n</div>\r\n"},2:function(e,n,t,o,r){var a;e.propertyIsEnumerable;return e.escapeExpression(e.lambda(null!=(a=null!=(a=null!=n?n.options:n)?a.styles:a)?a.disabled:a,n))},4:function(e,n,t,o,r){return"disabled"},compiler:[8,">= 4.3.0"],main:function(e,n,t,o,r){var a;e.propertyIsEnumerable;return(null!=(a=t.unless.call(null!=n?n:e.nullContext||{},null!=(a=null!=n?n.options:n)?a.hideToggle:a,{name:"unless",hash:{},fn:e.program(1,r,0),inverse:e.noop,data:r}))?a:"")+'<div class="broadcast-region"></div>\r\n'},useData:!0})},1217:function(e,n,t){e.exports={disabled:"_3TIct"}},1218:function(e,n,t){var o=t(10);e.exports=(o.default||o).template({1:function(e,n,t,o,r){return'<div class="">\r\n <button class="btn btn-light 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 a;e.propertyIsEnumerable;return(null!=(a=t.unless.call(null!=n?n:e.nullContext||{},null!=(a=null!=n?n.options:n)?a.show:a,{name:"unless",hash:{},fn:e.program(1,r,0),inverse:e.program(3,r,0),data:r}))?a:"")+'<div class="text-right">\r\n <div class="button-region"></div>\r\n</div>'},useData:!0})},1219:function(e,n,t){var o=t(10);e.exports=(o.default||o).template({1:function(e,n,t,o,r){var a;e.propertyIsEnumerable;return e.escapeExpression(e.lambda(null!=(a=null!=(a=null!=n?n.options:n)?a.styles:a)?a.disabled:a,n))},3:function(e,n,t,o,r){return"selected"},5:function(e,n,t,o,r){e.propertyIsEnumerable;var a,i=e.lambda,l=e.escapeExpression;return' <option value="'+l(i(null!=n?n.number:n,n))+'" '+(null!=(a=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}))?a:"")+">"+l(i(null!=n?n.displayName:n,n))+"</option>\r\n"},7:function(e,n,t,o,r){e.propertyIsEnumerable;var a,i=e.lambda;return'<span class="svg-container mb-2 '+e.escapeExpression(i(null!=(a=null!=(a=null!=n?n.options:n)?a.styles:a)?a.svg:a,n))+' remove">'+(null!=(a=i(null!=(a=null!=n?n.options:n)?a.svgRemove:a,n))?a:"")+"</span>\r\n"},compiler:[8,">= 4.3.0"],main:function(e,n,t,o,r){e.propertyIsEnumerable;var a,i=e.escapeExpression,l=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 '+i(e.lambda(null!=(a=null!=(a=null!=n?n.options:n)?a.styles:a)?a.button:a,n))+" "+(null!=(a=t.if.call(l,null!=(a=null!=n?n.options:n)?a.disabled:a,{name:"if",hash:{},fn:e.program(1,r,0),inverse:e.noop,data:r}))?a:"")+'"\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!=(a=t.unless.call(l,null!=(a=null!=n?n.options:n)?a.hasSelected:a,{name:"unless",hash:{},fn:e.program(3,r,0),inverse:e.noop,data:r}))?a:"")+">"+i((t.lang||n&&n.lang||e.hooks.helperMissing).call(l,"selectASeason",{name:"lang",hash:{},data:r}))+"</option>\r\n"+(null!=(a=t.each.call(l,null!=(a=null!=n?n.options:n)?a.seasons:a,{name:"each",hash:{},fn:e.program(5,r,0),inverse:e.noop,data:r}))?a:"")+' </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!=(a=t.if.call(l,null!=(a=null!=n?n.options:n)?a.showRemoveIcon:a,{name:"if",hash:{},fn:e.program(7,r,0),inverse:e.noop,data:r}))?a:"")},useData:!0})},1220:function(e,n,t){e.exports={button:"_39NvM",svg:"_2Tl0W",disabled:"_2julA",seasonContainer:"_SpZq"}},1221:function(e,n,t){var o=t(10);e.exports=(o.default||o).template({1:function(e,n,t,o,r){var a;e.propertyIsEnumerable;return e.escapeExpression(e.lambda(null!=(a=null!=(a=null!=n?n.options:n)?a.styles:a)?a.seriesTitle:a,n))},3:function(e,n,t,o,r){e.propertyIsEnumerable;var a,i=e.escapeExpression;return'<span class="'+i(e.lambda(null!=(a=null!=(a=null!=n?n.options:n)?a.styles:a)?a.suggestEdit:a,n))+'">- <a class="suggest-series-title">'+i((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 a;e.propertyIsEnumerable;return e.escapeExpression(e.lambda(null!=(a=null!=(a=null!=n?n.options:n)?a.styles:a)?a.seasonNumber:a,n))},7:function(e,n,t,o,r){e.propertyIsEnumerable;var a,i=e.escapeExpression;return'<span class="'+i(e.lambda(null!=(a=null!=(a=null!=n?n.options:n)?a.styles:a)?a.suggestEdit:a,n))+'">- <a class="suggest-season-number">'+i((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 a;e.propertyIsEnumerable;return e.escapeExpression(e.lambda(null!=(a=null!=(a=null!=n?n.options:n)?a.styles:a)?a.episodeNumber:a,n))},11:function(e,n,t,o,r){e.propertyIsEnumerable;var a,i=e.escapeExpression;return'<span class="'+i(e.lambda(null!=(a=null!=(a=null!=n?n.options:n)?a.styles:a)?a.suggestEdit:a,n))+'">- <a class="suggest-episode-number">'+i((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 a;e.propertyIsEnumerable;return e.escapeExpression(e.lambda(null!=(a=null!=(a=null!=n?n.options:n)?a.styles:a)?a.disabled:a,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 a,i=null!=n?n:e.nullContext||{},l=e.hooks.helperMissing,s=e.escapeExpression;return"<h5>"+s((t.lang||n&&n.lang||l).call(i,"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!=(a=t.unless.call(i,null!=(a=null!=n?n.options:n)?a.editable:a,{name:"unless",hash:{},fn:e.program(1,r,0),inverse:e.noop,data:r}))?a:"")+'">\r\n <label for="edit-title">'+s((t.lang||n&&n.lang||l).call(i,"series",{name:"lang",hash:{},data:r}))+"</label>\r\n "+(null!=(a=t.unless.call(i,null!=(a=null!=n?n.options:n)?a.editable:a,{name:"unless",hash:{},fn:e.program(3,r,0),inverse:e.noop,data:r}))?a:"")+'\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!=(a=t.unless.call(i,null!=(a=null!=n?n.options:n)?a.editable:a,{name:"unless",hash:{},fn:e.program(5,r,0),inverse:e.noop,data:r}))?a:"")+'">\r\n <label for="edit-season-number">'+s((t.lang||n&&n.lang||l).call(i,"season",{name:"lang",hash:{},data:r}))+"</label>\r\n "+(null!=(a=t.unless.call(i,null!=(a=null!=n?n.options:n)?a.editable:a,{name:"unless",hash:{},fn:e.program(7,r,0),inverse:e.noop,data:r}))?a:"")+'\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!=(a=t.unless.call(i,null!=(a=null!=n?n.options:n)?a.editable:a,{name:"unless",hash:{},fn:e.program(9,r,0),inverse:e.noop,data:r}))?a:"")+'">\r\n <label for="edit-episode-number">'+s((t.lang||n&&n.lang||l).call(i,"episode",{name:"lang",hash:{},data:r}))+"</label>\r\n "+(null!=(a=t.unless.call(i,null!=(a=null!=n?n.options:n)?a.editable:a,{name:"unless",hash:{},fn:e.program(11,r,0),inverse:e.noop,data:r}))?a:"")+'\r\n <input\r\n name="episodeNumber"\r\n type="number"\r\n class="form-control episode-number '+(null!=(a=t.if.call(i,null!=(a=null!=n?n.options:n)?a.lockEpisodeNumber:a,{name:"if",hash:{},fn:e.program(13,r,0),inverse:e.noop,data:r}))?a:"")+'"\r\n id="edit-episode-number"\r\n placeholder="'+s(e.lambda(null!=(a=null!=n?n.options:n)?a.episodeNumberPlaceholderText:a,n))+'"\r\n autocomplete="off"\r\n min="1"\r\n '+(null!=(a=t.if.call(i,null!=(a=null!=n?n.options:n)?a.lockEpisodeNumber:a,{name:"if",hash:{},fn:e.program(15,r,0),inverse:e.noop,data:r}))?a:"")+'\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})},1222:function(e,n,t){e.exports={disabled:"tOHRz"}}}]);
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
(window.webpackJsonp_clickview_library_editor=window.webpackJsonp_clickview_library_editor||[]).push([[13],{1051:function(e,n,t){"use strict";t.d(n,"a",(function(){return k}));var o=t(1),r=t(6),a=t(2),i=t(20),l=t(15),s=t(93),u=t(12),c=t(1102),p=t.n(c),d=t(1103),f=t.n(d);function h(e){return(h="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}function m(e,n){for(var t=0;t<n.length;t++){var o=n[t];o.enumerable=o.enumerable||!1,o.configurable=!0,"value"in o&&(o.writable=!0),Object.defineProperty(e,o.key,o)}}function g(e,n){return(g=Object.setPrototypeOf||function(e,n){return e.__proto__=n,e})(e,n)}function y(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=v(e);if(n){var r=v(this).constructor;t=Reflect.construct(o,arguments,r)}else t=o.apply(this,arguments);return b(this,t)}}function b(e,n){return!n||"object"!==h(n)&&"function"!=typeof n?function(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}(e):n}function v(e){return(v=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)})(e)}var k=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}}),n&&g(e,n)}(h,e);var n,t,c,d=y(h);function h(e){return function(e,n){if(!(e instanceof n))throw new TypeError("Cannot call a class as a function")}(this,h),d.call(this,e)}return n=h,(t=[{key:"name",get:function(){return"SearchTypeaheadComponent"}},{key:"template",get:function(){return p.a}},{key:"className",get:function(){return"search-container ".concat(f.a.typeaheadContainer," mb-2")}},{key:"channelName",get:function(){return u.k.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||a.a.ErrorHelper.throw(new i.a("Either pass a model or a channelName to access the typeahead selection")),this.model||(this.model=new a.a.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,o="[name=".concat(this.options.inputName,"]");return e={},n=o,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.a.getSearchSources(this.options.typeaheadConfigs):s.a.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:f.a},this.options),{showRemove:this.shouldShowRemove(),svgRemove:l.a.getSvg(l.b.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)}}])&&m(n.prototype,t),c&&m(n,c),h}(a.a.Component)},1102:function(e,n,t){var o=t(10);e.exports=(o.default||o).template({1:function(e,n,t,o,r){var a;e.propertyIsEnumerable;return e.escapeExpression(e.lambda(null!=(a=null!=(a=null!=n?n.options:n)?a.styles:a)?a.disabled:a,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 a,i=e.lambda,l=e.escapeExpression,s=null!=n?n:e.nullContext||{};return'<input\r\n name="'+l(i(null!=(a=null!=n?n.options:n)?a.inputName:a,n))+'"\r\n type="text"\r\n class="form-control '+(null!=(a=t.unless.call(s,null!=(a=null!=n?n.options:n)?a.editable:a,{name:"unless",hash:{},fn:e.program(1,r,0),inverse:e.noop,data:r}))?a:"")+" "+l(i(null!=(a=null!=n?n.options:n)?a.additionalClasses:a,n))+'"\r\n id="'+l(i(null!=(a=null!=n?n.options:n)?a.inputId:a,n))+'"\r\n autocomplete="off"\r\n placeholder="'+l(i(null!=(a=null!=n?n.options:n)?a.placeholderText:a,n))+'"\r\n '+(null!=(a=t.if.call(s,null!=(a=null!=n?n.options:n)?a.autofocus:a,{name:"if",hash:{},fn:e.program(3,r,0),inverse:e.noop,data:r}))?a:"")+"\r\n "+(null!=(a=t.unless.call(s,null!=(a=null!=n?n.options:n)?a.editable:a,{name:"unless",hash:{},fn:e.program(5,r,0),inverse:e.noop,data:r}))?a:"")+'\r\n></input>\r\n<span class="svg-container mb-2 '+l(i(null!=(a=null!=(a=null!=n?n.options:n)?a.styles:a)?a.svg:a,n))+' remove" style="display: none;">'+(null!=(a=i(null!=(a=null!=n?n.options:n)?a.svgRemove:a,n))?a:"")+"</span>"},useData:!0})},1103:function(e,n,t){e.exports={svg:"_1iL3O",typeaheadContainer:"_1SWXc",disabled:"_3C2O8"}},1146:function(e,n,t){"use strict";t.d(n,"a",(function(){return w}));var o=t(6),r=t(2),a=t(15),i=t(1150),l=t(1148),s=t(3),u=t(0),c=t(187),p=t(1208),d=t.n(p),f=t(1050),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})(e)}function g(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 y(e,n){return(y=Object.setPrototypeOf||function(e,n){return e.__proto__=n,e})(e,n)}function b(e){var n=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(e){return!1}}();return function(){var t,o=k(e);if(n){var r=k(this).constructor;t=Reflect.construct(o,arguments,r)}else t=o.apply(this,arguments);return v(this,t)}}function v(e,n){return!n||"object"!==m(n)&&"function"!=typeof n?function(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}(e):n}function k(e){return(k=Object.setPrototypeOf?Object.getPrototypeOf: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}}),n&&y(e,n)}(f,e);var n,t,r,p=b(f);function f(e){return function(e,n){if(!(e instanceof n))throw new TypeError("Cannot call a class as a function")}(this,f),p.call(this,e)}return n=f,(t=[{key:"name",get:function(){return"EditBasicInfoComponent"}},{key:"tagName",get:function(){return"form"}},{key:"template",get:function(){return d.a}},{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:u.b.LIBRARY_EDITOR,action:u.a.LibraryEditor.SUGGEST_AN_EDIT,args:[this.model.get("id")],params:{metadata:c.MetadataType.VideoTitle}},".suggest-description":{application:u.b.LIBRARY_EDITOR,action:u.a.LibraryEditor.SUGGEST_AN_EDIT,args:[this.model.get("id")],params:{metadata:c.MetadataType.Description}},".applink-publisher-video":{application:u.b.LIBRARY_EDITOR,action:u.a.LibraryEditor.SHOW_PUBLISHER_VIDEO,args:[this.model.get("id")]}}}},{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.a({name:"description",class:"form-control ".concat(!this.options.editable&&h.a.disabled),placeholder:this.options.editable?s.a.getPhrase(this.lang,"descriptionPlaceholder"):"",id:"edit-description",disabled:!this.options.editable}))}},{key:"renderRatings",value:function(){this.showChildView("ratings",new i.a({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:h.a,requiredFields:this.options.requiredFields,videoTitlePlaceholder:this.options.editable?s.a.getPhrase(this.lang,"titlePlaceholder"):"",editable:this.options.editable,publisherArchiveSvg:a.a.getSvg(a.b.PublisherArchive),showPublisherVideoDetails:this.options.showPublisherVideoDetails,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)}}])&&g(n.prototype,t),r&&g(n,r),f}(r.a.Component)},1148:function(e,n,t){"use strict";t.d(n,"a",(function(){return m}));var o=t(1),r=t(2),a=t(1206),i=t.n(a),l=t(1207),s=t.n(l);function u(e){return(u="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}function c(e,n){for(var t=0;t<n.length;t++){var o=n[t];o.enumerable=o.enumerable||!1,o.configurable=!0,"value"in o&&(o.writable=!0),Object.defineProperty(e,o.key,o)}}function p(e,n){return(p=Object.setPrototypeOf||function(e,n){return e.__proto__=n,e})(e,n)}function d(e){var n=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(e){return!1}}();return function(){var t,o=h(e);if(n){var r=h(this).constructor;t=Reflect.construct(o,arguments,r)}else t=o.apply(this,arguments);return f(this,t)}}function f(e,n){return!n||"object"!==u(n)&&"function"!=typeof n?function(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}(e):n}function h(e){return(h=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)})(e)}var m=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}}),n&&p(e,n)}(l,e);var n,t,r,a=d(l);function l(e){return function(e,n){if(!(e instanceof n))throw new TypeError("Cannot call a class as a function")}(this,l),a.call(this,e)}return n=l,(t=[{key:"name",get:function(){return"ResizingTextAreaComponent"}},{key:"template",get:function(){return i.a}},{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:s.a})}}])&&c(n.prototype,t),r&&c(n,r),l}(r.a.Component)},1149:function(e,n,t){"use strict";var o=t(1),r=t(6),a=t(2),i=t(93),l=t(291),s=t(1051),u=t(339),c=t(0),p=t(29),d=t(15),f=t(1211),h=t.n(f),m=t(1212),g=t.n(m);function y(e){return(y="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}function 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 v(e,n){return(v=Object.setPrototypeOf||function(e,n){return e.__proto__=n,e})(e,n)}function k(e){var n=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(e){return!1}}();return function(){var t,o=E(e);if(n){var r=E(this).constructor;t=Reflect.construct(o,arguments,r)}else t=o.apply(this,arguments);return w(this,t)}}function w(e,n){return!n||"object"!==y(n)&&"function"!=typeof n?function(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}(e):n}function E(e){return(E=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)})(e)}var C=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}}),n&&v(e,n)}(i,e);var n,t,o,a=k(i);function i(e){return function(e,n){if(!(e instanceof n))throw new TypeError("Cannot call a class as a function")}(this,i),a.call(this,e)}return n=i,(t=[{key:"name",get:function(){return"ClearButtonComponent"}},{key:"className",get:function(){return"".concat(g.a.clearButton)}},{key:"template",get:function(){return h.a}},{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:g.a,svgClear:d.a.getSvg(d.b.Close)}}}])&&b(n.prototype,t),o&&b(n,o),i}(a.a.Component),S=t(3),O=t(187),x=t(1213),T=t.n(x),I=t(1214),R=t.n(I),P=t(1050),_=t.n(P);function D(e){return(D="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}function N(e,n,t){return n in e?Object.defineProperty(e,n,{value:t,enumerable:!0,configurable:!0,writable:!0}):e[n]=t,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 j(e,n){return(j=Object.setPrototypeOf||function(e,n){return e.__proto__=n,e})(e,n)}function A(e){var n=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(e){return!1}}();return function(){var t,o=M(e);if(n){var r=M(this).constructor;t=Reflect.construct(o,arguments,r)}else t=o.apply(this,arguments);return L(this,t)}}function L(e,n){return!n||"object"!==D(n)&&"function"!=typeof n?function(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}(e):n}function M(e){return(M=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)})(e)}var V=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}}),n&&j(e,n)}(i,e);var n,t,r,a=A(i);function i(e){return function(e,n){if(!(e instanceof n))throw new TypeError("Cannot call a class as a function")}(this,i),a.call(this,e)}return n=i,(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 T.a}},{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.b.LIBRARY_EDITOR,action:c.a.LibraryEditor.SUGGEST_AN_EDIT,args:[this.model.get("id")],params:{metadata:O.MetadataType.BroadcastDate}}}}},{key:"defaults",get:function(){return{placeholderText:S.a.getPhrase(this.lang,"placeholder"),allowTextInput:!1,allowClearDate:!0,minYear:1900,editable:!0}}},{key:"behaviors",get:function(){return[{behaviorClass:l.a},{behaviorClass:l.f}]}},{key:"bindings",get:function(){var e=this;return N({},"[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 N({"keydown @ui.date":"onKeyDownDate"},"click .".concat(R.a.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:R.a.previous,next:R.a.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(N({},"".concat(this.options.modelAttr),null)),!0)}},{key:"onKeyDownDate",value:function(e){this.options.allowTextInput||e.preventDefault()}},{key:"renderClearDateButton",value:function(){this.showChildView("clearButton",new C({channelName:this.channelName,shouldRender:this.options.allowClearDate&&!!this.model.get("dateBroadcast")}))}},{key:"viewOptions",value:function(){return{styles:o.extend(_.a,R.a),label:this.options.label,modelAttr:this.options.modelAttr,instanceClass:this.getInstanceClassName(),placeholderText:this.options.placeholderText,displayedTimeFormat:this.options.displayedTimeFormat,svgCalendar:d.a.getSvg(d.b.Calendar),svgClear:d.a.getSvg(d.b.Close),editable:this.options.editable}}},{key:"onRender",value:function(){this.initDatePicker(),this.renderClearDateButton()}}])&&B(n.prototype,t),r&&B(n,r),i}(a.a.Component),F=t(9),U=t(298),Y=t(1215),G=t.n(Y);function z(e){return(z="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}function q(e,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||function(e,n){return e.__proto__=n,e})(e,n)}function H(e){var n=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(e){return!1}}();return function(){var t,o=K(e);if(n){var r=K(this).constructor;t=Reflect.construct(o,arguments,r)}else t=o.apply(this,arguments);return W(this,t)}}function W(e,n){return!n||"object"!==z(n)&&"function"!=typeof n?function(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}(e):n}function K(e){return(K=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)})(e)}var Z=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}}),n&&J(e,n)}(a,e);var n,t,o,r=H(a);function a(e){return function(e,n){if(!(e instanceof n))throw new TypeError("Cannot call a class as a function")}(this,a),r.call(this,e)}return n=a,(t=[{key:"name",get:function(){return"EditBroadcastComponent"}},{key:"template",get:function(){return G.a}},{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.b.LIBRARY_EDITOR,action:c.a.LibraryEditor.SUGGEST_AN_EDIT,args:[this.model.get("id")],params:{metadata:O.MetadataType.Channel}}}}},{key:"buildTypeaheadConfig",value:function(){return{name:c.v.ChannelRaw,typeaheadConfig:U.a.getTypeaheadConfig(),bloodhoundConfig:U.a.getBloodhoundConfig()}}},{key:"renderBroadcastDate",value:function(){this.showChildView("dateBroadcast",new V({model:this.model,label:S.a.getPhrase(this.lang,"broadcastDate"),modelAttr:"dateBroadcast",displayedTimeFormat:F.l.FULL_YEAR,placeholderText:this.options.editable?S.a.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.a),this.showChildView("channelSearch",new s.a({model:this.model.get("channel"),parentChannelName:this.options.channelName,inputId:"channel-search",selectEvent:"select:channel",placeholderText:this.options.editable?S.a.getPhrase(this.lang,"searchChannels"):"",typeaheadConfigs:this.buildTypeaheadConfig(),callbacks:{onInput:i.a.emitEventOnInput(this.options.channelName,O.LibraryEditorActions.DetectInput,"channel"),onBlur:i.a.resetAssociationOnBlur(this.model.get("channel").toJSON())},editable:this.options.editable,removeEvent:"remove:channel"}))}},{key:"viewOptions",value:function(){return{styles:_.a,editable:this.options.editable}}},{key:"onRender",value:function(){this.renderBroadcastDate(),this.renderChannelTypeahead()}}])&&q(n.prototype,t),o&&q(n,o),a}(a.a.Component),$=t(1216),X=t.n($),Q=t(1217),ee=t.n(Q);function ne(e){return(ne="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}function te(e,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 oe(e,n){return(oe=Object.setPrototypeOf||function(e,n){return e.__proto__=n,e})(e,n)}function re(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=ie(e);if(n){var r=ie(this).constructor;t=Reflect.construct(o,arguments,r)}else t=o.apply(this,arguments);return ae(this,t)}}function ae(e,n){return!n||"object"!==ne(n)&&"function"!=typeof n?function(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}(e):n}function ie(e){return(ie=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)})(e)}var le=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}}),n&&oe(e,n)}(a,e);var n,t,o,r=re(a);function a(e){return function(e,n){if(!(e instanceof n))throw new TypeError("Cannot call a class as a function")}(this,a),r.call(this,e)}return n=a,(t=[{key:"name",get:function(){return"ToggleBroadcastComponent"}},{key:"template",get:function(){return X.a}},{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:l.a},{behaviorClass:l.f}]}},{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 Z({model:this.model,channelName:this.options.channelName,editable:this.options.editable})):this.getRegion("broadcast").empty()}},{key:"viewOptions",value:function(){return Object.assign({styles:ee.a},this.options)}},{key:"onRender",value:function(){this.renderEditBroadcast()}}])&&te(n.prototype,t),o&&te(n,o),a}(a.a.Component),se=t(30),ue=t(251),ce=t(12),pe=t(990),de=t(1218),fe=t.n(de),he=t(1219),me=t.n(he),ge=t(1220),ye=t.n(ge);function be(e){return(be="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}function ve(e,n){if(!(e instanceof n))throw new TypeError("Cannot call a class as a function")}function ke(e,n){for(var t=0;t<n.length;t++){var o=n[t];o.enumerable=o.enumerable||!1,o.configurable=!0,"value"in o&&(o.writable=!0),Object.defineProperty(e,o.key,o)}}function we(e,n,t){return n&&ke(e.prototype,n),t&&ke(e,t),e}function Ee(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}}),n&&Ce(e,n)}function Ce(e,n){return(Ce=Object.setPrototypeOf||function(e,n){return e.__proto__=n,e})(e,n)}function Se(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=xe(e);if(n){var r=xe(this).constructor;t=Reflect.construct(o,arguments,r)}else t=o.apply(this,arguments);return Oe(this,t)}}function Oe(e,n){return!n||"object"!==be(n)&&"function"!=typeof n?function(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}(e):n}function xe(e){return(xe=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)})(e)}var Te=function(e){Ee(t,e);var n=Se(t);function t(e){var o;return ve(this,t),(o=n.call(this,e)).showSpinner=!1,o.disableBtn=!0,o}return we(t,[{key:"initialize",value:function(){this.bindListeners()}},{key:"name",get:function(){return"CreateSeasonComponent"}},{key:"template",get:function(){return fe.a}},{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:l.f},{behaviorClass:l.a}]}},{key:"bindListeners",value:function(){this.listenTo(this.model,"change",this.onChange),this.listenTo(this.options.channelName,"create:season",this.onCreateSeason),this.listenTo(c.e.SERIES,"".concat(c.f.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 ue.a({channelName:this.options.channelName,saveEvent:"create:season",extraButtonClass:"btn btn-primary",buttonText:"Create",buttonType:"submit",showSpinner:this.showSpinner,disabled:this.disableBtn,spinnerOptions:{size:ce.s.Small}}))}},{key:"onRender",value:function(){this.stickit(),this.renderButton()}},{key:"onClose",value:function(){this.unstickit()}}]),t}(a.a.Component),Ie=function(e){Ee(t,e);var n=Se(t);function t(e){return ve(this,t),n.call(this,e)}return we(t,[{key:"initialize",value:function(){this.model.get("season.id")&&ce.c.setSelected(this.model.get("season.id"),this.collection),this.viewModel=se.a.get("".concat(this.name,":").concat(this.model.get("id"))),this.options.disabled||this.viewModel.addValidation(pe.e)}},{key:"name",get:function(){return"EditSeasonInfoComponent"}},{key:"template",get:function(){return me.a}},{key:"className",get:function(){return ye.a.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?S.a.getPhrase(this.lang,"season",{number:e}):"";this.getUI("dropdownBtn").text(n)}else{var t=e&&"-1"!==e?"season":"placeholder";this.getUI("dropdownBtn").text(S.a.getPhrase(this.lang,t,{number:e}))}}},{key:"renderCreate",value:function(){this.showChildView("create",new Te({model:this.viewModel,channelName:this.options.channelName,show:this.showCreateForm,seriesId:this.model.get("series.id")}))}},{key:"viewOptions",value:function(){return{styles:ye.a,disabled:this.options.disabled,seasons:this.collection.toJSON(),svgRemove:d.a.getSvg(d.b.Close),showRemoveIcon:!!this.model.get("season.id")&&!this.options.isSuggestEdit}}},{key:"onRender",value:function(){this.renderCreate(),this.setButtonText(this.model.get("season.number"))}}]),t}(a.a.Component),Re=t(304),Pe=t(1221),_e=t.n(Pe),De=t(1222),Ne=t.n(De);function Be(e){return(Be="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}function je(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 Ae(e,n){return(Ae=Object.setPrototypeOf||function(e,n){return e.__proto__=n,e})(e,n)}function Le(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=Ve(e);if(n){var r=Ve(this).constructor;t=Reflect.construct(o,arguments,r)}else t=o.apply(this,arguments);return Me(this,t)}}function Me(e,n){return!n||"object"!==Be(n)&&"function"!=typeof n?function(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}(e):n}function Ve(e){return(Ve=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)})(e)}t.d(n,"a",(function(){return Fe}));var Fe=function(e){!function(e,n){if("function"!=typeof n&&null!==n)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(n&&n.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),n&&Ae(e,n)}(d,e);var n,t,u,p=Le(d);function d(e){return function(e,n){if(!(e instanceof n))throw new TypeError("Cannot call a class as a function")}(this,d),p.call(this,e)}return n=d,(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 _e.a}},{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.b.LIBRARY_EDITOR,action:c.a.LibraryEditor.SUGGEST_AN_EDIT,args:[this.model.get("id")],params:{metadata:O.MetadataType.SeriesTitle}},".suggest-season-number":{application:c.b.LIBRARY_EDITOR,action:c.a.LibraryEditor.SUGGEST_AN_EDIT,args:[this.model.get("id")],params:{metadata:O.MetadataType.Season}},".suggest-episode-number":{application:c.b.LIBRARY_EDITOR,action:c.a.LibraryEditor.SUGGEST_AN_EDIT,args:[this.model.get("id")],params:{metadata:O.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:l.f},{behaviorClass:l.a}]}},{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(Ne.a.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=ce.m.getTypeaheadConfig(),n=ce.m.getBloodhoundConfig(),t={newType:c.v.Series},o={newType:c.v.Series,footerTemplate:i.a.getConfirmSelectionTemplate()};return[{name:c.v.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 a.a.Model;this.showChildView("series",new s.a({model:e,editable:this.options.editable,parentChannelName:this.options.channelName,inputId:"series-search",selectEvent:"select:series",placeholderText:this.options.editable?S.a.getPhrase(this.lang,"searchSeries"):"",typeaheadConfigs:this.getTypeaheadConfigs(),typeaheadOptions:{hint:!1},callbacks:{onRender:i.a.selectFirstResult,onInput:i.a.emitEventOnInput(this.options.channelName,O.LibraryEditorActions.DetectInput,"series"),onBlur:i.a.resetAssociationOnBlur(e.toJSON())},removeEvent:"remove:series"}))}},{key:"renderEditSeason",value:function(){var e=this,n=this.model.get("series.seasons")||new Re.a,t=new Re.a(n.map((function(n){return n.set("displayName",S.a.getPhrase(e.lang,"seasonNumber",{number:n.get("number")}))})));this.showChildView("season",new Ie({model:this.model,collection:t,channelName:this.options.channelName,disabled:!this.options.editable||this.lockSeasonAndEpisode,isSuggestEdit:!this.options.editable}))}},{key:"renderEditBroadcast",value:function(){this.showChildView("broadcast",new le({model:this.model,channelName:this.options.channelName,hideToggle:!0,editable:this.options.editable}))}},{key:"viewOptions",value:function(){return{styles:o.extend({},_.a,Ne.a),editable:this.options.editable,lockEpisodeNumber:this.lockSeasonAndEpisode,episodeNumberPlaceholderText:this.options.editable?S.a.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)}}])&&je(n.prototype,t),u&&je(n,u),d}(a.a.Component)},1151:function(e,n,t){"use strict";var o=t(1),r=t(6),a=t(2),i=t(15),l=t(93),s=t(291),u=t(0),c=t(3),p=t(1051),d=t(187),f=t(1209),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})(e)}function g(e,n){if(!(e instanceof n))throw new TypeError("Cannot call a class as a function")}function y(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 b(e,n,t){return n&&y(e.prototype,n),t&&y(e,t),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}}),n&&k(e,n)}function k(e,n){return(k=Object.setPrototypeOf||function(e,n){return e.__proto__=n,e})(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){return!n||"object"!==m(n)&&"function"!=typeof n?function(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}(e):n}function C(e){return(C=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)})(e)}var S=function(e){v(t,e);var n=w(t);function t(e){return g(this,t),n.call(this,e)}return b(t,[{key:"name",get:function(){return"TypeaheadListComponentCollection"}},{key:"childViewOptions",get:function(){return Object.assign({},this.options)}},{key:"childView",get:function(){return O}}]),t}(a.a.ComponentCollection),O=function(e){v(t,e);var n=w(t);function t(e){return g(this,t),n.call(this,e)}return b(t,[{key:"name",get:function(){return"TypeaheadListComponent"}},{key:"template",get:function(){return h.a}},{key:"modelId",get:function(){return this.model.get("id")||"new-model"}},{key:"bindings",get:function(){return e={},n="[name=".concat(this.modelId,"]"),t={observe:"name",setOptions:{validate:!0}},n 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.a({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:l.a.selectFirstResult,onInput:l.a.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}(a.a.Component),x=t(298),T=t(9),I=t(645),R=t(644),P=t(646),_=t(647),D=t(1210),N=t.n(D),B=t(1050),j=t.n(B);function A(e){return(A="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}function L(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||function(e,n){return e.__proto__=n,e})(e,n)}function V(e){var n=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(e){return!1}}();return function(){var t,o=U(e);if(n){var r=U(this).constructor;t=Reflect.construct(o,arguments,r)}else t=o.apply(this,arguments);return F(this,t)}}function F(e,n){return!n||"object"!==A(n)&&"function"!=typeof n?function(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}(e):n}function U(e){return(U=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)})(e)}t.d(n,"a",(function(){return Y}));var Y=function(e){!function(e,n){if("function"!=typeof n&&null!==n)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(n&&n.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),n&&M(e,n)}(f,e);var n,t,a,p=V(f);function f(e){return function(e,n){if(!(e instanceof n))throw new TypeError("Cannot call a class as a function")}(this,f),p.call(this,e)}return n=f,(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 N.a}},{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.a},{behaviorClass:s.f}]}},{key:"appLinks",get:function(){var e={application:u.b.LIBRARY_EDITOR,action:u.a.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(T.a.Producer)}},{key:"onClickAddNewDirector",value:function(){this.expandPersonList(T.a.Director)}},{key:"onClickAddNewDistributor",value:function(){this.expandPersonList(T.a.Distributor)}},{key:"onClickAddNewProductionCompany",value:function(){this.expandPersonList(T.a.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,T.a.Distributor)}},{key:"onSelectProductionCompany",value:function(e){this.onSelect(e,T.a.ProductionCompany)}},{key:"onSelectDirector",value:function(e){this.onSelect(e,T.a.Director)}},{key:"onSelectProducer",value:function(e){this.onSelect(e,T.a.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,T.a.Distributor)}},{key:"onRemoveProductionCompany",value:function(e){this.onRemove(e,T.a.ProductionCompany)}},{key:"onRemoveDirector",value:function(e){this.onRemove(e,T.a.Director)}},{key:"onRemoveProducer",value:function(e){this.onRemove(e,T.a.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=x.a.getTypeaheadConfig(),t=x.a.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:l.a.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 S({collection:this.model.get("distributors"),channelName:this.options.channelName,typeaheadConfig:this.buildTypeaheadConfig(u.v.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 S({collection:this.model.get("productionCompanies"),channelName:this.options.channelName,typeaheadConfig:this.buildTypeaheadConfig(u.v.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 S({collection:this.model.get("directors"),channelName:this.options.channelName,typeaheadConfig:this.buildTypeaheadConfig(u.v.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 S({collection:this.model.get("producers"),channelName:this.options.channelName,typeaheadConfig:this.buildTypeaheadConfig(u.v.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 I.a([{}])),this.model.get("productionCompanies")||this.model.set("productionCompanies",new P.a([{}])),this.model.get("directors")||this.model.set("directors",new _.a([{}])),this.model.get("producers")||this.model.set("producers",new R.a([{}])),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:j.a,editable:this.options.editable,productionYearPlaceholderText:this.options.editable?c.a.getPhrase(this.lang,"productionYearPlaceholder"):"",allowAdditionalDirector:this.allowAdditional(T.a.Director),allowAdditionalProducer:this.allowAdditional(T.a.Producer),allowAdditionalDistributor:this.allowAdditional(T.a.Distributor),allowAdditionalProductionCompany:this.allowAdditional(T.a.ProductionCompany),infoSvg:i.a.getSvg(i.b.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")}}])&&L(n.prototype,t),a&&L(n,a),f}(a.a.Component)},1206:function(e,n,t){var o=t(10);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 a,i=e.lambda,l=e.escapeExpression,s=null!=n?n:e.nullContext||{};return'<textarea\r\n name="'+l(i(null!=(a=null!=n?n.options:n)?a.name:a,n))+'"\r\n id="'+l(i(null!=(a=null!=n?n.options:n)?a.id:a,n))+'"\r\n autocomplete="false"\r\n class="'+l(i(null!=(a=null!=n?n.options:n)?a.class:a,n))+" event-selector "+l(i(null!=(a=null!=(a=null!=n?n.options:n)?a.styles:a)?a.resizingTextarea:a,n))+'"\r\n placeholder="'+l(i(null!=(a=null!=n?n.options:n)?a.placeholder:a,n))+'"\r\n '+(null!=(a=t.if.call(s,null!=(a=null!=n?n.options:n)?a.required:a,{name:"if",hash:{},fn:e.program(1,r,0),inverse:e.noop,data:r}))?a:"")+"\r\n "+(null!=(a=t.if.call(s,null!=(a=null!=n?n.options:n)?a.readonly:a,{name:"if",hash:{},fn:e.program(3,r,0),inverse:e.noop,data:r}))?a:"")+"\r\n "+(null!=(a=t.if.call(s,null!=(a=null!=n?n.options:n)?a.disabled:a,{name:"if",hash:{},fn:e.program(5,r,0),inverse:e.noop,data:r}))?a:"")+"\r\n></textarea>"},useData:!0})},1207:function(e,n,t){e.exports={resizingTextarea:"qKxbV"}},1208:function(e,n,t){var o=t(10);e.exports=(o.default||o).template({1:function(e,n,t,o,r){return"d-inline-block"},3:function(e,n,t,o,r){e.propertyIsEnumerable;var a,i=null!=n?n:e.nullContext||{},l=e.lambda,s=e.escapeExpression;return" "+(null!=(a=t.if.call(i,null!=(a=null!=n?n.options:n)?a.showingSaveButton:a,{name:"if",hash:{},fn:e.program(4,r,0),inverse:e.noop,data:r}))?a:"")+'\r\n <a class="'+(null!=(a=t.unless.call(i,null!=(a=null!=n?n.options:n)?a.showingSaveButton:a,{name:"unless",hash:{},fn:e.program(6,r,0),inverse:e.noop,data:r}))?a:"")+'cursor-pointer applink-publisher-video">\r\n <span class="d-inline-block align-middle '+s(l(null!=(a=null!=(a=null!=n?n.options:n)?a.styles:a)?a.icon:a,n))+'">'+(null!=(a=l(null!=(a=null!=n?n.options:n)?a.publisherArchiveSvg:a,n))?a:"")+"</span> "+s((t.lang||n&&n.lang||e.hooks.helperMissing).call(i,"viewInPublisherArchive",{name:"lang",hash:{},data:r}))+"\r\n </a>\r\n"},4:function(e,n,t,o,r){return"-"},6:function(e,n,t,o,r){return"float-right "},8:function(e,n,t,o,r){var a;e.propertyIsEnumerable;return e.escapeExpression(e.lambda(null!=(a=null!=(a=null!=n?n.options:n)?a.styles:a)?a.programTitle:a,n))},10:function(e,n,t,o,r){var a;e.propertyIsEnumerable;return'<span class="'+e.escapeExpression(e.lambda(null!=(a=null!=(a=null!=n?n.options:n)?a.styles:a)?a.requiredStar:a,n))+'">*</span>'},12:function(e,n,t,o,r){e.propertyIsEnumerable;var a,i=e.escapeExpression;return'<span class="'+i(e.lambda(null!=(a=null!=(a=null!=n?n.options:n)?a.styles:a)?a.suggestEdit:a,n))+'">- <a class="suggest-title">'+i((t.lang||n&&n.lang||e.hooks.helperMissing).call(null!=n?n:e.nullContext||{},"suggestEdit",{name:"lang",hash:{},data:r}))+"</a></span>"},14:function(e,n,t,o,r){var a;e.propertyIsEnumerable;return e.escapeExpression(e.lambda(null!=(a=null!=(a=null!=n?n.options:n)?a.styles:a)?a.disabled:a,n))},16:function(e,n,t,o,r){return"disabled"},18:function(e,n,t,o,r){var a;e.propertyIsEnumerable;return e.escapeExpression(e.lambda(null!=(a=null!=(a=null!=n?n.options:n)?a.styles:a)?a.description:a,n))},20:function(e,n,t,o,r){e.propertyIsEnumerable;var a,i=e.escapeExpression;return'<span class="'+i(e.lambda(null!=(a=null!=(a=null!=n?n.options:n)?a.styles:a)?a.suggestEdit:a,n))+'">- <a class="suggest-description">'+i((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 a,i=null!=n?n:e.nullContext||{},l=e.hooks.helperMissing,s=e.escapeExpression;return'<div class="position-relative '+(null!=(a=t.if.call(i,null!=(a=null!=n?n.options:n)?a.showingSaveButton:a,{name:"if",hash:{},fn:e.program(1,r,0),inverse:e.noop,data:r}))?a:"")+'">\r\n <h5 class="d-inline-block">'+s((t.lang||n&&n.lang||l).call(i,"heading",{name:"lang",hash:{},data:r}))+"</h5>\r\n\r\n"+(null!=(a=t.if.call(i,null!=(a=null!=n?n.options:n)?a.showPublisherVideoDetails:a,{name:"if",hash:{},fn:e.program(3,r,0),inverse:e.noop,data:r}))?a:"")+'</div>\r\n<div class="form-group '+(null!=(a=t.unless.call(i,null!=(a=null!=n?n.options:n)?a.editable:a,{name:"unless",hash:{},fn:e.program(8,r,0),inverse:e.noop,data:r}))?a:"")+'">\r\n <label for="edit-title">'+s((t.lang||n&&n.lang||l).call(i,"title",{name:"lang",hash:{},data:r}))+(null!=(a=t.if.call(i,null!=(a=null!=(a=null!=n?n.options:n)?a.requiredFields:a)?a.programTitle:a,{name:"if",hash:{},fn:e.program(10,r,0),inverse:e.noop,data:r}))?a:"")+"</label>\r\n "+(null!=(a=t.unless.call(i,null!=(a=null!=n?n.options:n)?a.editable:a,{name:"unless",hash:{},fn:e.program(12,r,0),inverse:e.noop,data:r}))?a:"")+'\r\n <input\r\n name="name"\r\n type="text"\r\n class="form-control '+(null!=(a=t.unless.call(i,null!=(a=null!=n?n.options:n)?a.editable:a,{name:"unless",hash:{},fn:e.program(14,r,0),inverse:e.noop,data:r}))?a:"")+'"\r\n placeholder="'+s((t.lang||n&&n.lang||l).call(i,"titlePlaceholder",{name:"lang",hash:{},data:r}))+'"\r\n id="edit-title"\r\n autocomplete="off"\r\n '+(null!=(a=t.unless.call(i,null!=(a=null!=n?n.options:n)?a.editable:a,{name:"unless",hash:{},fn:e.program(16,r,0),inverse:e.noop,data:r}))?a:"")+'\r\n >\r\n <div class="form-feedback"></div>\r\n</div>\r\n<div class="form-group '+(null!=(a=t.unless.call(i,null!=(a=null!=n?n.options:n)?a.editable:a,{name:"unless",hash:{},fn:e.program(18,r,0),inverse:e.noop,data:r}))?a:"")+'">\r\n <label for="edit-description">'+s((t.lang||n&&n.lang||l).call(i,"description",{name:"lang",hash:{},data:r}))+"</label>\r\n "+(null!=(a=t.unless.call(i,null!=(a=null!=n?n.options:n)?a.editable:a,{name:"unless",hash:{},fn:e.program(20,r,0),inverse:e.noop,data:r}))?a:"")+'\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})},1209:function(e,n,t){var o=t(10);e.exports=(o.default||o).template({compiler:[8,">= 4.3.0"],main:function(e,n,t,o,r){var a;e.propertyIsEnumerable;return'<div class="typeahead-region '+e.escapeExpression(e.lambda(null!=(a=null!=(a=null!=n?n.options:n)?a.styles:a)?a.typeahead:a,n))+'"></div>'},useData:!0})},1210:function(e,n,t){var o=t(10);e.exports=(o.default||o).template({1:function(e,n,t,o,r){var a;e.propertyIsEnumerable;return e.escapeExpression(e.lambda(null!=(a=null!=(a=null!=n?n.options:n)?a.styles:a)?a.productionYear:a,n))},3:function(e,n,t,o,r){e.propertyIsEnumerable;var a,i=e.escapeExpression;return'<span class="'+i(e.lambda(null!=(a=null!=(a=null!=n?n.options:n)?a.styles:a)?a.suggestEdit:a,n))+'">- <a class="suggest-production-year">'+i((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 a;e.propertyIsEnumerable;return e.escapeExpression(e.lambda(null!=(a=null!=(a=null!=n?n.options:n)?a.styles:a)?a.disabled:a,n))},7:function(e,n,t,o,r){return"disabled"},9:function(e,n,t,o,r){var a;e.propertyIsEnumerable;return e.escapeExpression(e.lambda(null!=(a=null!=(a=null!=n?n.options:n)?a.styles:a)?a.productionCompanies:a,n))},11:function(e,n,t,o,r){e.propertyIsEnumerable;var a,i=e.escapeExpression;return'<span class="'+i(e.lambda(null!=(a=null!=(a=null!=n?n.options:n)?a.styles:a)?a.suggestEdit:a,n))+'">- <a class="suggest-production-companies">'+i((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){e.propertyIsEnumerable;return' <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 a;e.propertyIsEnumerable;return e.escapeExpression(e.lambda(null!=(a=null!=(a=null!=n?n.options:n)?a.styles:a)?a.distributors:a,n))},17:function(e,n,t,o,r){e.propertyIsEnumerable;var a,i=e.escapeExpression;return'<span class="'+i(e.lambda(null!=(a=null!=(a=null!=n?n.options:n)?a.styles:a)?a.suggestEdit:a,n))+'">- <a class="suggest-distributors">'+i((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){e.propertyIsEnumerable;return' <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 a;e.propertyIsEnumerable;return e.escapeExpression(e.lambda(null!=(a=null!=(a=null!=n?n.options:n)?a.styles:a)?a.producers:a,n))},23:function(e,n,t,o,r){e.propertyIsEnumerable;var a,i=e.escapeExpression;return'<span class="'+i(e.lambda(null!=(a=null!=(a=null!=n?n.options:n)?a.styles:a)?a.suggestEdit:a,n))+'">- <a class="suggest-producers">'+i((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){e.propertyIsEnumerable;return' <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 a;e.propertyIsEnumerable;return e.escapeExpression(e.lambda(null!=(a=null!=(a=null!=n?n.options:n)?a.styles:a)?a.directors:a,n))},29:function(e,n,t,o,r){e.propertyIsEnumerable;var a,i=e.escapeExpression;return'<span class="'+i(e.lambda(null!=(a=null!=(a=null!=n?n.options:n)?a.styles:a)?a.suggestEdit:a,n))+'">- <a class="suggest-directors">'+i((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){e.propertyIsEnumerable;return' <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 a,i=null!=n?n:e.nullContext||{},l=e.hooks.helperMissing,s=e.escapeExpression,u=e.lambda;return"<h5>"+s((t.lang||n&&n.lang||l).call(i,"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!=(a=t.unless.call(i,null!=(a=null!=n?n.options:n)?a.editable:a,{name:"unless",hash:{},fn:e.program(1,r,0),inverse:e.noop,data:r}))?a:"")+'">\r\n <label for="edit-production-year">'+s((t.lang||n&&n.lang||l).call(i,"productionYear",{name:"lang",hash:{},data:r}))+"</label>\r\n "+(null!=(a=t.unless.call(i,null!=(a=null!=n?n.options:n)?a.editable:a,{name:"unless",hash:{},fn:e.program(3,r,0),inverse:e.noop,data:r}))?a:"")+'\r\n <input\r\n name="productionYear"\r\n type="number"\r\n class="form-control '+(null!=(a=t.unless.call(i,null!=(a=null!=n?n.options:n)?a.editable:a,{name:"unless",hash:{},fn:e.program(5,r,0),inverse:e.noop,data:r}))?a:"")+'"\r\n id="edit-production-year"\r\n placeholder="'+s(u(null!=(a=null!=n?n.options:n)?a.productionYearPlaceholderText:a,n))+'"\r\n autocomplete="off"\r\n '+(null!=(a=t.unless.call(i,null!=(a=null!=n?n.options:n)?a.editable:a,{name:"unless",hash:{},fn:e.program(7,r,0),inverse:e.noop,data:r}))?a:"")+'\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!=(a=t.unless.call(i,null!=(a=null!=n?n.options:n)?a.editable:a,{name:"unless",hash:{},fn:e.program(9,r,0),inverse:e.noop,data:r}))?a:"")+'">\r\n <label for="production-company-search">\r\n '+s((t.lang||n&&n.lang||l).call(i,"productionCompanies",{name:"lang",hash:{},data:r}))+'\r\n <span class="'+s(u(null!=(a=null!=(a=null!=n?n.options:n)?a.styles:a)?a.infoSvgContainer:a,n))+' info-tooltip" \r\n title="'+s((t.lang||n&&n.lang||l).call(i,"productionCompanyInfo",{name:"lang",hash:{},data:r}))+'"\r\n >'+(null!=(a=u(null!=(a=null!=n?n.options:n)?a.infoSvg:a,n))?a:"")+"</span>\r\n </label>\r\n "+(null!=(a=t.unless.call(i,null!=(a=null!=n?n.options:n)?a.editable:a,{name:"unless",hash:{},fn:e.program(11,r,0),inverse:e.noop,data:r}))?a:"")+'\r\n <div class="production-company-region"></div>\r\n'+(null!=(a=t.if.call(i,null!=(a=null!=n?n.options:n)?a.allowAdditionalProductionCompany:a,{name:"if",hash:{},fn:e.program(13,r,0),inverse:e.noop,data:r}))?a:"")+' </div>\r\n\r\n <div class="form-group col-6 pr-0 '+(null!=(a=t.unless.call(i,null!=(a=null!=n?n.options:n)?a.editable:a,{name:"unless",hash:{},fn:e.program(15,r,0),inverse:e.noop,data:r}))?a:"")+'">\r\n <label for="distributor-search">\r\n '+s((t.lang||n&&n.lang||l).call(i,"distributors",{name:"lang",hash:{},data:r}))+'\r\n <span class="'+s(u(null!=(a=null!=(a=null!=n?n.options:n)?a.styles:a)?a.infoSvgContainer:a,n))+' info-tooltip"\r\n title="'+s((t.lang||n&&n.lang||l).call(i,"distributorInfo",{name:"lang",hash:{},data:r}))+'"\r\n >'+(null!=(a=u(null!=(a=null!=n?n.options:n)?a.infoSvg:a,n))?a:"")+"</span>\r\n </label>\r\n "+(null!=(a=t.unless.call(i,null!=(a=null!=n?n.options:n)?a.editable:a,{name:"unless",hash:{},fn:e.program(17,r,0),inverse:e.noop,data:r}))?a:"")+'\r\n <div class="distributor-region"></div>\r\n'+(null!=(a=t.if.call(i,null!=(a=null!=n?n.options:n)?a.allowAdditionalDistributor:a,{name:"if",hash:{},fn:e.program(19,r,0),inverse:e.noop,data:r}))?a:"")+' </div>\r\n </div>\r\n\r\n <div class="row">\r\n <div class="form-group col-6 '+(null!=(a=t.unless.call(i,null!=(a=null!=n?n.options:n)?a.editable:a,{name:"unless",hash:{},fn:e.program(21,r,0),inverse:e.noop,data:r}))?a:"")+'">\r\n <label for="producer-search">\r\n '+s((t.lang||n&&n.lang||l).call(i,"producers",{name:"lang",hash:{},data:r}))+'\r\n <span class="'+s(u(null!=(a=null!=(a=null!=n?n.options:n)?a.styles:a)?a.infoSvgContainer:a,n))+' info-tooltip"\r\n title="'+s((t.lang||n&&n.lang||l).call(i,"producerInfo",{name:"lang",hash:{},data:r}))+'"\r\n >'+(null!=(a=u(null!=(a=null!=n?n.options:n)?a.infoSvg:a,n))?a:"")+"</span>\r\n </label>\r\n "+(null!=(a=t.unless.call(i,null!=(a=null!=n?n.options:n)?a.editable:a,{name:"unless",hash:{},fn:e.program(23,r,0),inverse:e.noop,data:r}))?a:"")+'\r\n <div class="producers-region"></div>\r\n'+(null!=(a=t.if.call(i,null!=(a=null!=n?n.options:n)?a.allowAdditionalProducer:a,{name:"if",hash:{},fn:e.program(25,r,0),inverse:e.noop,data:r}))?a:"")+' </div>\r\n\r\n <div class="form-group col-6 pr-0 '+(null!=(a=t.unless.call(i,null!=(a=null!=n?n.options:n)?a.editable:a,{name:"unless",hash:{},fn:e.program(27,r,0),inverse:e.noop,data:r}))?a:"")+'">\r\n <label for="director-search">\r\n '+s((t.lang||n&&n.lang||l).call(i,"directors",{name:"lang",hash:{},data:r}))+'\r\n <span class="'+s(u(null!=(a=null!=(a=null!=n?n.options:n)?a.styles:a)?a.infoSvgContainer:a,n))+' info-tooltip"\r\n title="'+s((t.lang||n&&n.lang||l).call(i,"directorInfo",{name:"lang",hash:{},data:r}))+'"\r\n >'+(null!=(a=u(null!=(a=null!=n?n.options:n)?a.infoSvg:a,n))?a:"")+"</span>\r\n </label>\r\n "+(null!=(a=t.unless.call(i,null!=(a=null!=n?n.options:n)?a.editable:a,{name:"unless",hash:{},fn:e.program(29,r,0),inverse:e.noop,data:r}))?a:"")+'\r\n <div class="directors-region"></div>\r\n'+(null!=(a=t.if.call(i,null!=(a=null!=n?n.options:n)?a.allowAdditionalDirector:a,{name:"if",hash:{},fn:e.program(31,r,0),inverse:e.noop,data:r}))?a:"")+" </div>\r\n </div>\r\n</div>"},useData:!0})},1211:function(e,n,t){var o=t(10);e.exports=(o.default||o).template({compiler:[8,">= 4.3.0"],main:function(e,n,t,o,r){e.propertyIsEnumerable;var a,i=e.lambda;return'<span class="svg-container '+e.escapeExpression(i(null!=(a=null!=(a=null!=n?n.options:n)?a.styles:a)?a.clearSvg:a,n))+' clear-button">'+(null!=(a=i(null!=(a=null!=n?n.options:n)?a.svgClear:a,n))?a:"")+"</span>"},useData:!0})},1212:function(e,n,t){e.exports={clearSvg:"_2-D4Z"}},1213:function(e,n,t){var o=t(10);e.exports=(o.default||o).template({1:function(e,n,t,o,r){e.propertyIsEnumerable;var a,i=e.lambda,l=e.escapeExpression;return' <label for="'+l(i(null!=(a=null!=n?n.options:n)?a.modelAttr:a,n))+'">'+l(i(null!=(a=null!=n?n.options:n)?a.label:a,n))+"</label>\r\n "+(null!=(a=t.unless.call(null!=n?n:e.nullContext||{},null!=(a=null!=n?n.options:n)?a.editable:a,{name:"unless",hash:{},fn:e.program(2,r,0),inverse:e.noop,data:r}))?a:"")+"\r\n"},2:function(e,n,t,o,r){e.propertyIsEnumerable;var a,i=e.escapeExpression;return'<span class="'+i(e.lambda(null!=(a=null!=(a=null!=n?n.options:n)?a.styles:a)?a.suggestEdit:a,n))+'">- <a class="suggest-broadcast-date">'+i((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 a;e.propertyIsEnumerable;return e.escapeExpression(e.lambda(null!=(a=null!=(a=null!=n?n.options:n)?a.styles:a)?a.disabled:a,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 a,i=e.lambda,l=e.escapeExpression,s=null!=n?n:e.nullContext||{};return'<div class="'+l(i(null!=(a=null!=(a=null!=n?n.options:n)?a.styles:a)?a.datePicker:a,n))+" "+l(i(null!=(a=null!=(a=null!=n?n.options:n)?a.styles:a)?a.broadcastDate:a,n))+'">\r\n'+(null!=(a=t.if.call(s,null!=(a=null!=n?n.options:n)?a.label:a,{name:"if",hash:{},fn:e.program(1,r,0),inverse:e.noop,data:r}))?a:"")+' <input\r\n name="'+l(i(null!=(a=null!=n?n.options:n)?a.modelAttr:a,n))+'"\r\n class="form-control datetimepicker-input '+l(i(null!=(a=null!=n?n.options:n)?a.instanceClass:a,n))+" "+(null!=(a=t.unless.call(s,null!=(a=null!=n?n.options:n)?a.editable:a,{name:"unless",hash:{},fn:e.program(4,r,0),inverse:e.noop,data:r}))?a:"")+'"\r\n id="'+l(i(null!=(a=null!=n?n.options:n)?a.modelAttr:a,n))+'"\r\n placeholder="'+l(i(null!=(a=null!=n?n.options:n)?a.placeholderText:a,n))+'"\r\n data-toggle="datetimepicker"\r\n data-target=".'+l(i(null!=(a=null!=n?n.options:n)?a.instanceClass:a,n))+'"\r\n autocomplete="off"\r\n '+(null!=(a=t.unless.call(s,null!=(a=null!=n?n.options:n)?a.editable:a,{name:"unless",hash:{},fn:e.program(6,r,0),inverse:e.noop,data:r}))?a:"")+'\r\n />\r\n <span class="clear-button-region clear-svg"></span>\r\n <span class="svg-container '+l(i(null!=(a=null!=(a=null!=n?n.options:n)?a.styles:a)?a.calendarSvg:a,n))+" "+(null!=(a=t.if.call(s,null!=(a=null!=n?n.options:n)?a.editable:a,{name:"if",hash:{},fn:e.program(8,r,0),inverse:e.program(4,r,0),data:r}))?a:"")+'">'+(null!=(a=i(null!=(a=null!=n?n.options:n)?a.svgCalendar:a,n))?a:"")+'</span>\r\n <div class="form-feedback"></div>\r\n</div>'},useData:!0})},1214:function(e,n,t){e.exports={next:"_1sAku",previous:"_3zc5V",datePicker:"_1j_H7",calendarSvg:"_3ViTN",disabled:"DzdxT"}},1215:function(e,n,t){var o=t(10);e.exports=(o.default||o).template({1:function(e,n,t,o,r){e.propertyIsEnumerable;var a,i=e.escapeExpression;return'<span class="'+i(e.lambda(null!=(a=null!=(a=null!=n?n.options:n)?a.styles:a)?a.suggestEdit:a,n))+'">- <a class="suggest-channel">'+i((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 a,i=e.escapeExpression,l=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 '+i(e.lambda(null!=(a=null!=(a=null!=n?n.options:n)?a.styles:a)?a.channel:a,n))+'">\r\n <label for="channel-search">'+i((t.lang||n&&n.lang||e.hooks.helperMissing).call(l,"channel",{name:"lang",hash:{},data:r}))+"</label>\r\n "+(null!=(a=t.unless.call(l,null!=(a=null!=n?n.options:n)?a.editable:a,{name:"unless",hash:{},fn:e.program(1,r,0),inverse:e.noop,data:r}))?a:"")+'\r\n <div class="channel-search-region"></div>\r\n </div>\r\n </div>\r\n</div>'},useData:!0})},1216:function(e,n,t){var o=t(10);e.exports=(o.default||o).template({1:function(e,n,t,o,r){e.propertyIsEnumerable;var a,i=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!=(a=t.unless.call(i,null!=(a=null!=n?n.options:n)?a.editable:a,{name:"unless",hash:{},fn:e.program(2,r,0),inverse:e.noop,data:r}))?a:"")+'"\r\n id="toggle-broadcast"\r\n '+(null!=(a=t.unless.call(i,null!=(a=null!=n?n.options:n)?a.editable:a,{name:"unless",hash:{},fn:e.program(4,r,0),inverse:e.noop,data:r}))?a:"")+'\r\n >\r\n <label class="custom-control-label" for="toggle-broadcast">'+e.escapeExpression((t.lang||n&&n.lang||e.hooks.helperMissing).call(i,"tv",{name:"lang",hash:{},data:r}))+"</label>\r\n </div>\r\n</div>\r\n"},2:function(e,n,t,o,r){var a;e.propertyIsEnumerable;return e.escapeExpression(e.lambda(null!=(a=null!=(a=null!=n?n.options:n)?a.styles:a)?a.disabled:a,n))},4:function(e,n,t,o,r){return"disabled"},compiler:[8,">= 4.3.0"],main:function(e,n,t,o,r){var a;e.propertyIsEnumerable;return(null!=(a=t.unless.call(null!=n?n:e.nullContext||{},null!=(a=null!=n?n.options:n)?a.hideToggle:a,{name:"unless",hash:{},fn:e.program(1,r,0),inverse:e.noop,data:r}))?a:"")+'<div class="broadcast-region"></div>\r\n'},useData:!0})},1217:function(e,n,t){e.exports={disabled:"_3TIct"}},1218:function(e,n,t){var o=t(10);e.exports=(o.default||o).template({1:function(e,n,t,o,r){return'<div class="">\r\n <button class="btn btn-light 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 a;e.propertyIsEnumerable;return(null!=(a=t.unless.call(null!=n?n:e.nullContext||{},null!=(a=null!=n?n.options:n)?a.show:a,{name:"unless",hash:{},fn:e.program(1,r,0),inverse:e.program(3,r,0),data:r}))?a:"")+'<div class="text-right">\r\n <div class="button-region"></div>\r\n</div>'},useData:!0})},1219:function(e,n,t){var o=t(10);e.exports=(o.default||o).template({1:function(e,n,t,o,r){var a;e.propertyIsEnumerable;return e.escapeExpression(e.lambda(null!=(a=null!=(a=null!=n?n.options:n)?a.styles:a)?a.disabled:a,n))},3:function(e,n,t,o,r){return"selected"},5:function(e,n,t,o,r){e.propertyIsEnumerable;var a,i=e.lambda,l=e.escapeExpression;return' <option value="'+l(i(null!=n?n.number:n,n))+'" '+(null!=(a=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}))?a:"")+">"+l(i(null!=n?n.displayName:n,n))+"</option>\r\n"},7:function(e,n,t,o,r){e.propertyIsEnumerable;var a,i=e.lambda;return'<span class="svg-container mb-2 '+e.escapeExpression(i(null!=(a=null!=(a=null!=n?n.options:n)?a.styles:a)?a.svg:a,n))+' remove">'+(null!=(a=i(null!=(a=null!=n?n.options:n)?a.svgRemove:a,n))?a:"")+"</span>\r\n"},compiler:[8,">= 4.3.0"],main:function(e,n,t,o,r){e.propertyIsEnumerable;var a,i=e.escapeExpression,l=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 '+i(e.lambda(null!=(a=null!=(a=null!=n?n.options:n)?a.styles:a)?a.button:a,n))+" "+(null!=(a=t.if.call(l,null!=(a=null!=n?n.options:n)?a.disabled:a,{name:"if",hash:{},fn:e.program(1,r,0),inverse:e.noop,data:r}))?a:"")+'"\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!=(a=t.unless.call(l,null!=(a=null!=n?n.options:n)?a.hasSelected:a,{name:"unless",hash:{},fn:e.program(3,r,0),inverse:e.noop,data:r}))?a:"")+">"+i((t.lang||n&&n.lang||e.hooks.helperMissing).call(l,"selectASeason",{name:"lang",hash:{},data:r}))+"</option>\r\n"+(null!=(a=t.each.call(l,null!=(a=null!=n?n.options:n)?a.seasons:a,{name:"each",hash:{},fn:e.program(5,r,0),inverse:e.noop,data:r}))?a:"")+' </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!=(a=t.if.call(l,null!=(a=null!=n?n.options:n)?a.showRemoveIcon:a,{name:"if",hash:{},fn:e.program(7,r,0),inverse:e.noop,data:r}))?a:"")},useData:!0})},1220:function(e,n,t){e.exports={button:"_39NvM",svg:"_2Tl0W",disabled:"_2julA",seasonContainer:"_SpZq"}},1221:function(e,n,t){var o=t(10);e.exports=(o.default||o).template({1:function(e,n,t,o,r){var a;e.propertyIsEnumerable;return e.escapeExpression(e.lambda(null!=(a=null!=(a=null!=n?n.options:n)?a.styles:a)?a.seriesTitle:a,n))},3:function(e,n,t,o,r){e.propertyIsEnumerable;var a,i=e.escapeExpression;return'<span class="'+i(e.lambda(null!=(a=null!=(a=null!=n?n.options:n)?a.styles:a)?a.suggestEdit:a,n))+'">- <a class="suggest-series-title">'+i((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 a;e.propertyIsEnumerable;return e.escapeExpression(e.lambda(null!=(a=null!=(a=null!=n?n.options:n)?a.styles:a)?a.seasonNumber:a,n))},7:function(e,n,t,o,r){e.propertyIsEnumerable;var a,i=e.escapeExpression;return'<span class="'+i(e.lambda(null!=(a=null!=(a=null!=n?n.options:n)?a.styles:a)?a.suggestEdit:a,n))+'">- <a class="suggest-season-number">'+i((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 a;e.propertyIsEnumerable;return e.escapeExpression(e.lambda(null!=(a=null!=(a=null!=n?n.options:n)?a.styles:a)?a.episodeNumber:a,n))},11:function(e,n,t,o,r){e.propertyIsEnumerable;var a,i=e.escapeExpression;return'<span class="'+i(e.lambda(null!=(a=null!=(a=null!=n?n.options:n)?a.styles:a)?a.suggestEdit:a,n))+'">- <a class="suggest-episode-number">'+i((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 a;e.propertyIsEnumerable;return e.escapeExpression(e.lambda(null!=(a=null!=(a=null!=n?n.options:n)?a.styles:a)?a.disabled:a,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 a,i=null!=n?n:e.nullContext||{},l=e.hooks.helperMissing,s=e.escapeExpression;return"<h5>"+s((t.lang||n&&n.lang||l).call(i,"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!=(a=t.unless.call(i,null!=(a=null!=n?n.options:n)?a.editable:a,{name:"unless",hash:{},fn:e.program(1,r,0),inverse:e.noop,data:r}))?a:"")+'">\r\n <label for="edit-title">'+s((t.lang||n&&n.lang||l).call(i,"series",{name:"lang",hash:{},data:r}))+"</label>\r\n "+(null!=(a=t.unless.call(i,null!=(a=null!=n?n.options:n)?a.editable:a,{name:"unless",hash:{},fn:e.program(3,r,0),inverse:e.noop,data:r}))?a:"")+'\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!=(a=t.unless.call(i,null!=(a=null!=n?n.options:n)?a.editable:a,{name:"unless",hash:{},fn:e.program(5,r,0),inverse:e.noop,data:r}))?a:"")+'">\r\n <label for="edit-season-number">'+s((t.lang||n&&n.lang||l).call(i,"season",{name:"lang",hash:{},data:r}))+"</label>\r\n "+(null!=(a=t.unless.call(i,null!=(a=null!=n?n.options:n)?a.editable:a,{name:"unless",hash:{},fn:e.program(7,r,0),inverse:e.noop,data:r}))?a:"")+'\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!=(a=t.unless.call(i,null!=(a=null!=n?n.options:n)?a.editable:a,{name:"unless",hash:{},fn:e.program(9,r,0),inverse:e.noop,data:r}))?a:"")+'">\r\n <label for="edit-episode-number">'+s((t.lang||n&&n.lang||l).call(i,"episode",{name:"lang",hash:{},data:r}))+"</label>\r\n "+(null!=(a=t.unless.call(i,null!=(a=null!=n?n.options:n)?a.editable:a,{name:"unless",hash:{},fn:e.program(11,r,0),inverse:e.noop,data:r}))?a:"")+'\r\n <input\r\n name="episodeNumber"\r\n type="number"\r\n class="form-control episode-number '+(null!=(a=t.if.call(i,null!=(a=null!=n?n.options:n)?a.lockEpisodeNumber:a,{name:"if",hash:{},fn:e.program(13,r,0),inverse:e.noop,data:r}))?a:"")+'"\r\n id="edit-episode-number"\r\n placeholder="'+s(e.lambda(null!=(a=null!=n?n.options:n)?a.episodeNumberPlaceholderText:a,n))+'"\r\n autocomplete="off"\r\n min="1"\r\n '+(null!=(a=t.if.call(i,null!=(a=null!=n?n.options:n)?a.lockEpisodeNumber:a,{name:"if",hash:{},fn:e.program(15,r,0),inverse:e.noop,data:r}))?a:"")+'\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})},1222:function(e,n,t){e.exports={disabled:"tOHRz"}}}]);
|