@clickview/library-editor 1.32.1-dev.2 → 1.32.1-rc.0
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/{1365-library-editor-cf2efde1ee.chunk.css → 1365-library-editor-6a4c863de5.chunk.css} +1 -1
- package/dist/css/{343-library-editor-12392fa0d3.chunk.css → 343-library-editor-bc3af64c10.chunk.css} +1 -1
- package/dist/css/{3636-library-editor-62f9dfacc9.chunk.css → 5987-library-editor-ce4bd7ccad.chunk.css} +1 -0
- package/dist/css/{library-editor-app-52fd909c36.css → library-editor-app-51594ece49.css} +1 -1
- package/dist/languages/en.json +1 -1
- package/dist/scripts/{1010-c562d100ac.chunk.js → 1010-9a727bc31b.chunk.js} +1 -1
- package/dist/scripts/{1086-fe154012dd.chunk.js → 1086-1e49d7436c.chunk.js} +1 -1
- package/dist/scripts/{1216-d126efc56b.chunk.js → 1216-3680236a27.chunk.js} +1 -1
- package/dist/scripts/{1269-b89af42699.chunk.js → 1269-6898014713.chunk.js} +1 -1
- package/dist/scripts/{1364-e5c8b1f848.chunk.js → 1364-bfc0e5e952.chunk.js} +1 -1
- package/dist/scripts/1365-7396591315.chunk.js +1 -0
- package/dist/scripts/{1409-9e6588218a.chunk.js → 1409-c246297ba5.chunk.js} +1 -1
- package/dist/scripts/{1492-86b5115bf1.chunk.js → 1492-773cacc5a6.chunk.js} +1 -1
- package/dist/scripts/{1601-25cbd3ab27.chunk.js → 1601-0515073058.chunk.js} +2 -2
- package/dist/scripts/{1832-46e6e69a89.chunk.js → 1832-3f3a594798.chunk.js} +1 -1
- package/dist/scripts/{1887-954988b80e.chunk.js → 1887-1f10bdcd32.chunk.js} +1 -1
- package/dist/scripts/{1911-50beb412a1.chunk.js → 1911-18bde23552.chunk.js} +1 -1
- package/dist/scripts/{2254-74f8b1db7d.chunk.js → 2254-b4c9b27888.chunk.js} +1 -1
- package/dist/scripts/{2417-9b4c6ac8e4.chunk.js → 2417-d01c128302.chunk.js} +1 -1
- package/dist/scripts/{243-aff3f572f3.chunk.js → 243-a0b55560d0.chunk.js} +1 -1
- package/dist/scripts/{259-835a687da2.chunk.js → 259-e822ff0c6a.chunk.js} +1 -1
- package/dist/scripts/{2692-aa369df8c9.chunk.js → 2692-4dec659d9d.chunk.js} +1 -1
- package/dist/scripts/{2888-b65b230077.chunk.js → 2888-0eeb8ded06.chunk.js} +1 -1
- package/dist/scripts/{299-268a19c153.chunk.js → 299-5b7a541e04.chunk.js} +1 -1
- package/dist/scripts/{3096-7d1b4d32f3.chunk.js → 3096-43d050bc6c.chunk.js} +1 -1
- package/dist/scripts/{3400-c76a38cdf8.chunk.js → 3400-a38cfe2a5d.chunk.js} +1 -1
- package/dist/scripts/{3763-dc8ddac371.chunk.js → 3763-6f873cc545.chunk.js} +1 -1
- package/dist/scripts/{4177-ac15a97029.chunk.js → 4177-b807d4cbf3.chunk.js} +1 -1
- package/dist/scripts/{4201-fc24c245e7.chunk.js → 4201-84a6867187.chunk.js} +1 -1
- package/dist/scripts/{4245-f6d4caa7ef.chunk.js → 4245-eda4ba288d.chunk.js} +1 -1
- package/dist/scripts/4483-8df155459f.chunk.js +1 -0
- package/dist/scripts/{4591-cb921b33c7.chunk.js → 4591-55fa691940.chunk.js} +1 -1
- package/dist/scripts/{4860-da56ee92fd.chunk.js → 4860-d42be62696.chunk.js} +1 -1
- package/dist/scripts/{4885-df54f067a6.chunk.js → 4885-fd8bf4e706.chunk.js} +1 -1
- package/dist/scripts/{514-3ffe5b2338.chunk.js → 514-0d0d21f74f.chunk.js} +1 -1
- package/dist/scripts/{5412-893fd84406.chunk.js → 5412-789cbf80a3.chunk.js} +1 -1
- package/dist/scripts/{5418-999daec1b7.chunk.js → 5418-c1287e4896.chunk.js} +1 -1
- package/dist/scripts/{5424-b39db67d02.chunk.js → 5424-b185ba8a45.chunk.js} +1 -1
- package/dist/scripts/{5747-2973b05689.chunk.js → 5747-a8c2c34cc9.chunk.js} +1 -1
- package/dist/scripts/5987-50df9d94f6.chunk.js +2 -0
- package/dist/scripts/{6093-25b1188c94.chunk.js → 6093-d497dc9474.chunk.js} +1 -1
- package/dist/scripts/{6220-df69ae5053.chunk.js → 6220-dfa7ef3ad3.chunk.js} +1 -1
- package/dist/scripts/{6357-fce36786e9.chunk.js → 6357-8477d01a86.chunk.js} +1 -1
- package/dist/scripts/{6505-a55246ec06.chunk.js → 6505-46dfa6d08b.chunk.js} +1 -1
- package/dist/scripts/{6732-d5590f299f.chunk.js → 6732-85c7bcbc36.chunk.js} +1 -1
- package/dist/scripts/{6774-9b62595255.chunk.js → 6774-c9e8698d5c.chunk.js} +1 -1
- package/dist/scripts/{6991-a0a9329e27.chunk.js → 6991-06f0fb6962.chunk.js} +1 -1
- package/dist/scripts/{6995-a6f779a727.chunk.js → 6995-861706c8b2.chunk.js} +1 -1
- package/dist/scripts/{6999-2764068f9b.chunk.js → 6999-c5f81dd42b.chunk.js} +1 -1
- package/dist/scripts/{7002-582dbef73b.chunk.js → 7002-9a93ae8759.chunk.js} +1 -1
- package/dist/scripts/{7053-3ad3048d55.chunk.js → 7053-92f3e0d18d.chunk.js} +1 -1
- package/dist/scripts/{708-cdef619781.chunk.js → 708-b2c98b2d1b.chunk.js} +1 -1
- package/dist/scripts/{7376-92729fc093.chunk.js → 7376-753fc6cb76.chunk.js} +1 -1
- package/dist/scripts/{7634-fd72053962.chunk.js → 7634-05b848303a.chunk.js} +1 -1
- package/dist/scripts/{8362-5162287e67.chunk.js → 8362-e662057f79.chunk.js} +1 -1
- package/dist/scripts/{8727-0d05d3801e.chunk.js → 8727-64f4904f76.chunk.js} +1 -1
- package/dist/scripts/{8762-6223770914.chunk.js → 8762-97ee795453.chunk.js} +1 -1
- package/dist/scripts/{8906-59be878f1d.chunk.js → 8906-2f788f9242.chunk.js} +1 -1
- package/dist/scripts/{8947-fcd146181d.chunk.js → 8947-c600642573.chunk.js} +1 -1
- package/dist/scripts/9219-259e44b677.chunk.js +1 -0
- package/dist/scripts/{9357-fade2427e7.chunk.js → 9357-8cae90b1de.chunk.js} +1 -1
- package/dist/scripts/{9695-d90471521a.chunk.js → 9695-ad43223301.chunk.js} +1 -1
- package/dist/scripts/{9927-bc9223c826.chunk.js → 9927-faf9b990b5.chunk.js} +1 -1
- package/dist/scripts/{9976-f4bb28d542.chunk.js → 9976-50187a4e16.chunk.js} +1 -1
- package/dist/scripts/bundle-a84aac659b.min.js +2 -0
- package/dist/scripts/bundle-a84aac659b.min.js.LICENSE.txt +1 -0
- package/package.json +2 -2
- package/typings/libs/CVEvents.d.ts +12 -12
- package/typings/libs/CVLanguages.d.ts +24 -24
- package/typings/libs/Environment.d.ts +10 -10
- package/typings/libs/LazyLoad.d.ts +29 -29
- package/typings/libs/LazyLoad.ts +27 -27
- package/typings/libs/backbone.validation.d.ts +99 -99
- package/typings/libs/cloneDeep.d.ts +4 -4
- package/typings/libs/cookiesjs.d.ts +24 -24
- package/typings/libs/google-api.d.ts +4 -4
- package/typings/libs/microsoft-teams.d.ts +2 -2
- package/typings/libs/trackjs.d.ts +2 -2
- package/typings/libs/videojs-contrib-quality-levels.d.ts +30 -30
- package/typings/utils/imports.d.ts +9 -9
- package/dist/scripts/1365-9adfcd4b1a.chunk.js +0 -1
- package/dist/scripts/3636-cdda462b20.chunk.js +0 -2
- package/dist/scripts/4483-b1021f7abf.chunk.js +0 -1
- package/dist/scripts/9219-cd1f8e17c0.chunk.js +0 -1
- package/dist/scripts/bundle-394e872fac.min.js +0 -2
- package/dist/scripts/bundle-394e872fac.min.js.LICENSE.txt +0 -21
- package/dist/scripts/bundle-f3cc28ec98.min.js +0 -2
- package/dist/scripts/bundle-f3cc28ec98.min.js.LICENSE.txt +0 -21
- package/dist/scripts/bundle-fb9640ae52.min.js +0 -2
- package/dist/scripts/bundle-fb9640ae52.min.js.LICENSE.txt +0 -21
- /package/dist/scripts/{1601-25cbd3ab27.chunk.js.LICENSE.txt → 1601-0515073058.chunk.js.LICENSE.txt} +0 -0
- /package/dist/scripts/{343-76ae1bd139.chunk.js → 343-7ee720fa12.chunk.js} +0 -0
- /package/dist/scripts/{5698-789f67f8ba.chunk.js → 5698-4b433a6b83.chunk.js} +0 -0
- /package/dist/scripts/{3636-cdda462b20.chunk.js.LICENSE.txt → 5987-50df9d94f6.chunk.js.LICENSE.txt} +0 -0
|
@@ -1 +1 @@
|
|
|
1
|
-
(self.webpackChunk_clickview_library_editor=self.webpackChunk_clickview_library_editor||[]).push([[6991],{56784:function(t){"use strict";t.exports=function(t,e,r,n,o,i,a,s){if(!t){var c;if(void 0===e)c=new Error("Minified exception occurred; use the non-minified dev environment for the full error message and additional helpful warnings.");else{var u=[r,n,o,i,a,s],l=0;(c=new Error(e.replace(/%s/g,(function(){return u[l++]})))).name="Invariant Violation"}throw c.framesToPop=1,c}}},30582:function(t,e,r){"use strict";var n=r(1024),o=r.n(n),i=r(60216),a=r.n(i),s=r(82049),c=r.n(s),u=r(56784),l=r.n(u),f=r(55007),p=r.n(f);function d(){return d=Object.assign||function(t){for(var e=1;e<arguments.length;e++){var r=arguments[e];for(var n in r)Object.prototype.hasOwnProperty.call(r,n)&&(t[n]=r[n])}return t},d.apply(this,arguments)}function h(t,e){t.prototype=Object.create(e.prototype),t.prototype.constructor=t,m(t,e)}function m(t,e){return m=Object.setPrototypeOf||function(t,e){return t.__proto__=e,t},m(t,e)}function y(t,e){if(null==t)return{};var r,n,o={},i=Object.keys(t);for(n=0;n<i.length;n++)e.indexOf(r=i[n])>=0||(o[r]=t[r]);return o}var g={BASE:"base",BODY:"body",HEAD:"head",HTML:"html",LINK:"link",META:"meta",NOSCRIPT:"noscript",SCRIPT:"script",STYLE:"style",TITLE:"title",FRAGMENT:"Symbol(react.fragment)"},T={rel:["amphtml","canonical","alternate"]},v={type:["application/ld+json"]},b={charset:"",name:["robots","description"],property:["og:type","og:title","og:url","og:image","og:image:alt","og:description","twitter:url","twitter:title","twitter:description","twitter:image","twitter:image:alt","twitter:card","twitter:site"]},C=Object.keys(g).map((function(t){return g[t]})),A={accesskey:"accessKey",charset:"charSet",class:"className",contenteditable:"contentEditable",contextmenu:"contextMenu","http-equiv":"httpEquiv",itemprop:"itemProp",tabindex:"tabIndex"},O=Object.keys(A).reduce((function(t,e){return t[A[e]]=e,t}),{}),P=function(t,e){for(var r=t.length-1;r>=0;r-=1){var n=t[r];if(Object.prototype.hasOwnProperty.call(n,e))return n[e]}return null},w=function(t){var e=P(t,g.TITLE),r=P(t,"titleTemplate");if(Array.isArray(e)&&(e=e.join("")),r&&e)return r.replace(/%s/g,(function(){return e}));var n=P(t,"defaultTitle");return e||n||void 0},S=function(t){return P(t,"onChangeClientState")||function(){}},E=function(t,e){return e.filter((function(e){return void 0!==e[t]})).map((function(e){return e[t]})).reduce((function(t,e){return d({},t,e)}),{})},j=function(t,e){return e.filter((function(t){return void 0!==t[g.BASE]})).map((function(t){return t[g.BASE]})).reverse().reduce((function(e,r){if(!e.length)for(var n=Object.keys(r),o=0;o<n.length;o+=1){var i=n[o].toLowerCase();if(-1!==t.indexOf(i)&&r[i])return e.concat(r)}return e}),[])},I=function(t,e,r){var n={};return r.filter((function(e){return!!Array.isArray(e[t])||(void 0!==e[t]&&console&&"function"==typeof console.warn&&console.warn("Helmet: "+t+' should be of type "Array". Instead found type "'+typeof e[t]+'"'),!1)})).map((function(e){return e[t]})).reverse().reduce((function(t,r){var o={};r.filter((function(t){for(var r,i=Object.keys(t),a=0;a<i.length;a+=1){var s=i[a],c=s.toLowerCase();-1===e.indexOf(c)||"rel"===r&&"canonical"===t[r].toLowerCase()||"rel"===c&&"stylesheet"===t[c].toLowerCase()||(r=c),-1===e.indexOf(s)||"innerHTML"!==s&&"cssText"!==s&&"itemprop"!==s||(r=s)}if(!r||!t[r])return!1;var u=t[r].toLowerCase();return n[r]||(n[r]={}),o[r]||(o[r]={}),!n[r][u]&&(o[r][u]=!0,!0)})).reverse().forEach((function(e){return t.push(e)}));for(var i=Object.keys(o),a=0;a<i.length;a+=1){var s=i[a],c=d({},n[s],o[s]);n[s]=c}return t}),[]).reverse()},x=function(t,e){if(Array.isArray(t)&&t.length)for(var r=0;r<t.length;r+=1)if(t[r][e])return!0;return!1},N=function(t){return Array.isArray(t)?t.join(""):t},M=function(t,e){return Array.isArray(t)?t.reduce((function(t,r){return function(t,e){for(var r=Object.keys(t),n=0;n<r.length;n+=1)if(e[r[n]]&&e[r[n]].includes(t[r[n]]))return!0;return!1}(r,e)?t.priority.push(r):t.default.push(r),t}),{priority:[],default:[]}):{default:t}},k=function(t,e){var r;return d({},t,((r={})[e]=void 0,r))},L=[g.NOSCRIPT,g.SCRIPT,g.STYLE],D=function(t,e){return void 0===e&&(e=!0),!1===e?String(t):String(t).replace(/&/g,"&").replace(/</g,"<").replace(/>/g,">").replace(/"/g,""").replace(/'/g,"'")},H=function(t){return Object.keys(t).reduce((function(e,r){var n=void 0!==t[r]?r+'="'+t[r]+'"':""+r;return e?e+" "+n:n}),"")},_=function(t,e){return void 0===e&&(e={}),Object.keys(t).reduce((function(e,r){return e[A[r]||r]=t[r],e}),e)},R=function(t,e){return e.map((function(e,r){var n,i=((n={key:r})["data-rh"]=!0,n);return Object.keys(e).forEach((function(t){var r=A[t]||t;"innerHTML"===r||"cssText"===r?i.dangerouslySetInnerHTML={__html:e.innerHTML||e.cssText}:i[r]=e[t]})),o().createElement(t,i)}))},U=function(t,e,r){switch(t){case g.TITLE:return{toComponent:function(){return r=e.titleAttributes,(n={key:t=e.title})["data-rh"]=!0,i=_(r,n),[o().createElement(g.TITLE,i,t)];var t,r,n,i},toString:function(){return function(t,e,r,n){var o=H(r),i=N(e);return o?"<"+t+' data-rh="true" '+o+">"+D(i,n)+"</"+t+">":"<"+t+' data-rh="true">'+D(i,n)+"</"+t+">"}(t,e.title,e.titleAttributes,r)}};case"bodyAttributes":case"htmlAttributes":return{toComponent:function(){return _(e)},toString:function(){return H(e)}};default:return{toComponent:function(){return R(t,e)},toString:function(){return function(t,e,r){return e.reduce((function(e,n){var o=Object.keys(n).filter((function(t){return!("innerHTML"===t||"cssText"===t)})).reduce((function(t,e){var o=void 0===n[e]?e:e+'="'+D(n[e],r)+'"';return t?t+" "+o:o}),""),i=n.innerHTML||n.cssText||"",a=-1===L.indexOf(t);return e+"<"+t+' data-rh="true" '+o+(a?"/>":">"+i+"</"+t+">")}),"")}(t,e,r)}}}},B=function(t){var e=t.baseTag,r=t.bodyAttributes,n=t.encode,o=t.htmlAttributes,i=t.noscriptTags,a=t.styleTags,s=t.title,c=void 0===s?"":s,u=t.titleAttributes,l=t.linkTags,f=t.metaTags,p=t.scriptTags,d={toComponent:function(){},toString:function(){return""}};if(t.prioritizeSeoTags){var h=function(t){var e=t.linkTags,r=t.scriptTags,n=t.encode,o=M(t.metaTags,b),i=M(e,T),a=M(r,v);return{priorityMethods:{toComponent:function(){return[].concat(R(g.META,o.priority),R(g.LINK,i.priority),R(g.SCRIPT,a.priority))},toString:function(){return U(g.META,o.priority,n)+" "+U(g.LINK,i.priority,n)+" "+U(g.SCRIPT,a.priority,n)}},metaTags:o.default,linkTags:i.default,scriptTags:a.default}}(t);d=h.priorityMethods,l=h.linkTags,f=h.metaTags,p=h.scriptTags}return{priority:d,base:U(g.BASE,e,n),bodyAttributes:U("bodyAttributes",r,n),htmlAttributes:U("htmlAttributes",o,n),link:U(g.LINK,l,n),meta:U(g.META,f,n),noscript:U(g.NOSCRIPT,i,n),script:U(g.SCRIPT,p,n),style:U(g.STYLE,a,n),title:U(g.TITLE,{title:c,titleAttributes:u},n)}},q=[],z=function(t,e){var r=this;void 0===e&&(e="undefined"!=typeof document),this.instances=[],this.value={setHelmet:function(t){r.context.helmet=t},helmetInstances:{get:function(){return r.canUseDOM?q:r.instances},add:function(t){(r.canUseDOM?q:r.instances).push(t)},remove:function(t){var e=(r.canUseDOM?q:r.instances).indexOf(t);(r.canUseDOM?q:r.instances).splice(e,1)}}},this.context=t,this.canUseDOM=e,e||(t.helmet=B({baseTag:[],bodyAttributes:{},encodeSpecialCharacters:!0,htmlAttributes:{},linkTags:[],metaTags:[],noscriptTags:[],scriptTags:[],styleTags:[],title:"",titleAttributes:{}}))},Y=o().createContext({}),K=a().shape({setHelmet:a().func,helmetInstances:a().shape({get:a().func,add:a().func,remove:a().func})}),$="undefined"!=typeof document,V=function(t){function e(r){var n;return(n=t.call(this,r)||this).helmetData=new z(n.props.context,e.canUseDOM),n}return h(e,t),e.prototype.render=function(){return o().createElement(Y.Provider,{value:this.helmetData.value},this.props.children)},e}(n.Component);V.canUseDOM=$,V.propTypes={context:a().shape({helmet:a().shape()}),children:a().node.isRequired},V.defaultProps={context:{}},V.displayName="HelmetProvider";var F=function(t,e){var r,n=document.head||document.querySelector(g.HEAD),o=n.querySelectorAll(t+"[data-rh]"),i=[].slice.call(o),a=[];return e&&e.length&&e.forEach((function(e){var n=document.createElement(t);for(var o in e)Object.prototype.hasOwnProperty.call(e,o)&&("innerHTML"===o?n.innerHTML=e.innerHTML:"cssText"===o?n.styleSheet?n.styleSheet.cssText=e.cssText:n.appendChild(document.createTextNode(e.cssText)):n.setAttribute(o,void 0===e[o]?"":e[o]));n.setAttribute("data-rh","true"),i.some((function(t,e){return r=e,n.isEqualNode(t)}))?i.splice(r,1):a.push(n)})),i.forEach((function(t){return t.parentNode.removeChild(t)})),a.forEach((function(t){return n.appendChild(t)})),{oldTags:i,newTags:a}},G=function(t,e){var r=document.getElementsByTagName(t)[0];if(r){for(var n=r.getAttribute("data-rh"),o=n?n.split(","):[],i=[].concat(o),a=Object.keys(e),s=0;s<a.length;s+=1){var c=a[s],u=e[c]||"";r.getAttribute(c)!==u&&r.setAttribute(c,u),-1===o.indexOf(c)&&o.push(c);var l=i.indexOf(c);-1!==l&&i.splice(l,1)}for(var f=i.length-1;f>=0;f-=1)r.removeAttribute(i[f]);o.length===i.length?r.removeAttribute("data-rh"):r.getAttribute("data-rh")!==a.join(",")&&r.setAttribute("data-rh",a.join(","))}},W=function(t,e){var r=t.baseTag,n=t.htmlAttributes,o=t.linkTags,i=t.metaTags,a=t.noscriptTags,s=t.onChangeClientState,c=t.scriptTags,u=t.styleTags,l=t.title,f=t.titleAttributes;G(g.BODY,t.bodyAttributes),G(g.HTML,n),function(t,e){void 0!==t&&document.title!==t&&(document.title=N(t)),G(g.TITLE,e)}(l,f);var p={baseTag:F(g.BASE,r),linkTags:F(g.LINK,o),metaTags:F(g.META,i),noscriptTags:F(g.NOSCRIPT,a),scriptTags:F(g.SCRIPT,c),styleTags:F(g.STYLE,u)},d={},h={};Object.keys(p).forEach((function(t){var e=p[t],r=e.newTags,n=e.oldTags;r.length&&(d[t]=r),n.length&&(h[t]=p[t].oldTags)})),e&&e(),s(t,d,h)},Z=null,J=function(t){function e(){for(var e,r=arguments.length,n=new Array(r),o=0;o<r;o++)n[o]=arguments[o];return(e=t.call.apply(t,[this].concat(n))||this).rendered=!1,e}h(e,t);var r=e.prototype;return r.shouldComponentUpdate=function(t){return!p()(t,this.props)},r.componentDidUpdate=function(){this.emitChange()},r.componentWillUnmount=function(){this.props.context.helmetInstances.remove(this),this.emitChange()},r.emitChange=function(){var t,e,r=this.props.context,n=r.setHelmet,o=null,i=(t=r.helmetInstances.get().map((function(t){var e=d({},t.props);return delete e.context,e})),{baseTag:j(["href"],t),bodyAttributes:E("bodyAttributes",t),defer:P(t,"defer"),encode:P(t,"encodeSpecialCharacters"),htmlAttributes:E("htmlAttributes",t),linkTags:I(g.LINK,["rel","href"],t),metaTags:I(g.META,["name","charset","http-equiv","property","itemprop"],t),noscriptTags:I(g.NOSCRIPT,["innerHTML"],t),onChangeClientState:S(t),scriptTags:I(g.SCRIPT,["src","innerHTML"],t),styleTags:I(g.STYLE,["cssText"],t),title:w(t),titleAttributes:E("titleAttributes",t),prioritizeSeoTags:x(t,"prioritizeSeoTags")});V.canUseDOM?(e=i,Z&&cancelAnimationFrame(Z),e.defer?Z=requestAnimationFrame((function(){W(e,(function(){Z=null}))})):(W(e),Z=null)):B&&(o=B(i)),n(o)},r.init=function(){this.rendered||(this.rendered=!0,this.props.context.helmetInstances.add(this),this.emitChange())},r.render=function(){return this.init(),null},e}(n.Component);J.propTypes={context:K.isRequired},J.displayName="HelmetDispatcher";var Q=["children"],X=["children"],tt=function(t){function e(){return t.apply(this,arguments)||this}h(e,t);var r=e.prototype;return r.shouldComponentUpdate=function(t){return!c()(k(this.props,"helmetData"),k(t,"helmetData"))},r.mapNestedChildrenToProps=function(t,e){if(!e)return null;switch(t.type){case g.SCRIPT:case g.NOSCRIPT:return{innerHTML:e};case g.STYLE:return{cssText:e};default:throw new Error("<"+t.type+" /> elements are self-closing and can not contain children. Refer to our API for more information.")}},r.flattenArrayTypeChildren=function(t){var e,r=t.child,n=t.arrayTypeChildren;return d({},n,((e={})[r.type]=[].concat(n[r.type]||[],[d({},t.newChildProps,this.mapNestedChildrenToProps(r,t.nestedChildren))]),e))},r.mapObjectTypeChildren=function(t){var e,r,n=t.child,o=t.newProps,i=t.newChildProps,a=t.nestedChildren;switch(n.type){case g.TITLE:return d({},o,((e={})[n.type]=a,e.titleAttributes=d({},i),e));case g.BODY:return d({},o,{bodyAttributes:d({},i)});case g.HTML:return d({},o,{htmlAttributes:d({},i)});default:return d({},o,((r={})[n.type]=d({},i),r))}},r.mapArrayTypeChildrenToProps=function(t,e){var r=d({},e);return Object.keys(t).forEach((function(e){var n;r=d({},r,((n={})[e]=t[e],n))})),r},r.warnOnInvalidChildren=function(t,e){return l()(C.some((function(e){return t.type===e})),"function"==typeof t.type?"You may be attempting to nest <Helmet> components within each other, which is not allowed. Refer to our API for more information.":"Only elements types "+C.join(", ")+" are allowed. Helmet does not support rendering <"+t.type+"> elements. Refer to our API for more information."),l()(!e||"string"==typeof e||Array.isArray(e)&&!e.some((function(t){return"string"!=typeof t})),"Helmet expects a string as a child of <"+t.type+">. Did you forget to wrap your children in braces? ( <"+t.type+">{``}</"+t.type+"> ) Refer to our API for more information."),!0},r.mapChildrenToProps=function(t,e){var r=this,n={};return o().Children.forEach(t,(function(t){if(t&&t.props){var o=t.props,i=o.children,a=y(o,Q),s=Object.keys(a).reduce((function(t,e){return t[O[e]||e]=a[e],t}),{}),c=t.type;switch("symbol"==typeof c?c=c.toString():r.warnOnInvalidChildren(t,i),c){case g.FRAGMENT:e=r.mapChildrenToProps(i,e);break;case g.LINK:case g.META:case g.NOSCRIPT:case g.SCRIPT:case g.STYLE:n=r.flattenArrayTypeChildren({child:t,arrayTypeChildren:n,newChildProps:s,nestedChildren:i});break;default:e=r.mapObjectTypeChildren({child:t,newProps:e,newChildProps:s,nestedChildren:i})}}})),this.mapArrayTypeChildrenToProps(n,e)},r.render=function(){var t=this.props,e=t.children,r=y(t,X),n=d({},r),i=r.helmetData;return e&&(n=this.mapChildrenToProps(e,n)),!i||i instanceof z||(i=new z(i.context,i.instances)),i?o().createElement(J,d({},n,{context:i.value,helmetData:void 0})):o().createElement(Y.Consumer,null,(function(t){return o().createElement(J,d({},n,{context:t}))}))},e}(n.Component);tt.propTypes={base:a().object,bodyAttributes:a().object,children:a().oneOfType([a().arrayOf(a().node),a().node]),defaultTitle:a().string,defer:a().bool,encodeSpecialCharacters:a().bool,htmlAttributes:a().object,link:a().arrayOf(a().object),meta:a().arrayOf(a().object),noscript:a().arrayOf(a().object),onChangeClientState:a().func,script:a().arrayOf(a().object),style:a().arrayOf(a().object),title:a().string,titleAttributes:a().object,titleTemplate:a().string,prioritizeSeoTags:a().bool,helmetData:a().object},tt.defaultProps={defer:!0,encodeSpecialCharacters:!0,prioritizeSeoTags:!1},tt.displayName="Helmet"},82049:function(t){var e="undefined"!=typeof Element,r="function"==typeof Map,n="function"==typeof Set,o="function"==typeof ArrayBuffer&&!!ArrayBuffer.isView;function i(t,a){if(t===a)return!0;if(t&&a&&"object"==typeof t&&"object"==typeof a){if(t.constructor!==a.constructor)return!1;var s,c,u,l;if(Array.isArray(t)){if((s=t.length)!=a.length)return!1;for(c=s;0!=c--;)if(!i(t[c],a[c]))return!1;return!0}if(r&&t instanceof Map&&a instanceof Map){if(t.size!==a.size)return!1;for(l=t.entries();!(c=l.next()).done;)if(!a.has(c.value[0]))return!1;for(l=t.entries();!(c=l.next()).done;)if(!i(c.value[1],a.get(c.value[0])))return!1;return!0}if(n&&t instanceof Set&&a instanceof Set){if(t.size!==a.size)return!1;for(l=t.entries();!(c=l.next()).done;)if(!a.has(c.value[0]))return!1;return!0}if(o&&ArrayBuffer.isView(t)&&ArrayBuffer.isView(a)){if((s=t.length)!=a.length)return!1;for(c=s;0!=c--;)if(t[c]!==a[c])return!1;return!0}if(t.constructor===RegExp)return t.source===a.source&&t.flags===a.flags;if(t.valueOf!==Object.prototype.valueOf&&"function"==typeof t.valueOf&&"function"==typeof a.valueOf)return t.valueOf()===a.valueOf();if(t.toString!==Object.prototype.toString&&"function"==typeof t.toString&&"function"==typeof a.toString)return t.toString()===a.toString();if((s=(u=Object.keys(t)).length)!==Object.keys(a).length)return!1;for(c=s;0!=c--;)if(!Object.prototype.hasOwnProperty.call(a,u[c]))return!1;if(e&&t instanceof Element)return!1;for(c=s;0!=c--;)if(("_owner"!==u[c]&&"__v"!==u[c]&&"__o"!==u[c]||!t.$$typeof)&&!i(t[u[c]],a[u[c]]))return!1;return!0}return t!=t&&a!=a}t.exports=function(t,e){try{return i(t,e)}catch(t){if((t.message||"").match(/stack|recursion/i))return console.warn("react-fast-compare cannot handle circular refs"),!1;throw t}}},17082:function(t,e,r){"use strict";r.d(e,{Nq:function(){return l},oD:function(){return p},t0:function(){return f}});var n,o=r(1024),i=r(30314),a=(n=function(t,e){return n=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var r in e)e.hasOwnProperty(r)&&(t[r]=e[r])},n(t,e)},function(t,e){function r(){this.constructor=t}n(t,e),t.prototype=null===e?Object.create(e):(r.prototype=e.prototype,new r)}),s="html",c="svg",u=function(t){var e,r,n,o={};if(t===s)n=document.createElement("div");else{if(t!==c)throw new Error('Invalid element type "'+t+'" for createPortalNode: must be "html" or "svg".');n=document.createElementNS("http://www.w3.org/2000/svg","g")}var i={element:n,elementType:t,setPortalProps:function(t){o=t},getInitialPortalProps:function(){return o},mount:function(n,o){if(o!==r){if(i.unmount(),n!==e&&!function(t,e){if(e===s)return t instanceof HTMLElement;if(e===c)return t instanceof SVGElement;throw new Error('Unrecognized element type "'+e+'" for validateElementType.')}(n,t))throw new Error('Invalid element type for portal: "'+t+'" portalNodes must be used with '+t+" elements, but OutPortal is within <"+n.tagName+">.");n.replaceChild(i.element,o),e=n,r=o}},unmount:function(t){t&&t!==r||e&&r&&(e.replaceChild(r,i.element),e=void 0,r=void 0)}};return i},l=function(t){function e(e){var r=t.call(this,e)||this;return r.addPropsChannel=function(){Object.assign(r.props.node,{setPortalProps:function(t){r.setState({nodeProps:t})}})},r.state={nodeProps:r.props.node.getInitialPortalProps()},r}return a(e,t),e.prototype.componentDidMount=function(){this.addPropsChannel()},e.prototype.componentDidUpdate=function(){this.addPropsChannel()},e.prototype.render=function(){var t=this,e=this.props,r=e.children,n=e.node;return i.createPortal(o.Children.map(r,(function(e){return o.isValidElement(e)?o.cloneElement(e,t.state.nodeProps):e})),n.element)},e}(o.PureComponent),f=function(t){function e(e){var r=t.call(this,e)||this;return r.placeholderNode=o.createRef(),r.passPropsThroughPortal(),r}return a(e,t),e.prototype.passPropsThroughPortal=function(){var t=Object.assign({},this.props,{node:void 0});this.props.node.setPortalProps(t)},e.prototype.componentDidMount=function(){var t=this.props.node;this.currentPortalNode=t;var e=this.placeholderNode.current,r=e.parentNode;t.mount(r,e),this.passPropsThroughPortal()},e.prototype.componentDidUpdate=function(){var t=this.props.node;this.currentPortalNode&&t!==this.currentPortalNode&&(this.currentPortalNode.unmount(this.placeholderNode.current),this.currentPortalNode=t);var e=this.placeholderNode.current,r=e.parentNode;t.mount(r,e),this.passPropsThroughPortal()},e.prototype.componentWillUnmount=function(){this.props.node.unmount(this.placeholderNode.current)},e.prototype.render=function(){return o.createElement("div",{ref:this.placeholderNode})},e}(o.PureComponent),p=u.bind(null,s);u.bind(null,c)},55007:function(t){t.exports=function(t,e,r,n){var o=r?r.call(n,t,e):void 0;if(void 0!==o)return!!o;if(t===e)return!0;if("object"!=typeof t||!t||"object"!=typeof e||!e)return!1;var i=Object.keys(t),a=Object.keys(e);if(i.length!==a.length)return!1;for(var s=Object.prototype.hasOwnProperty.bind(e),c=0;c<i.length;c++){var u=i[c];if(!s(u))return!1;var l=t[u],f=e[u];if(!1===(o=r?r.call(n,l,f,u):void 0)||void 0===o&&l!==f)return!1}return!0}},82602:function(t,e,r){"use strict";r.d(e,{WU:function(){return u}});var n=["second","minute","hour","day","week","month","year"],o=["秒","分钟","小时","天","周","个月","年"],i={},a=function(t,e){i[t]=e},s=[60,60,24,7,365/7/12,12];function c(t){return t instanceof Date?t:!isNaN(t)||/^\d+$/.test(t)?new Date(parseInt(t)):(t=(t||"").trim().replace(/\.\d+/,"").replace(/-/,"/").replace(/-/,"/").replace(/(\d)T(\d)/,"$1 $2").replace(/Z/," UTC").replace(/([+-]\d\d):?(\d\d)/," $1$2"),new Date(t))}var u=function(t,e,r){var n=function(t,e){return(+(e?c(e):new Date)-+c(t))/1e3}(t,r&&r.relativeDate);return function(t,e){for(var r=t<0?1:0,n=t=Math.abs(t),o=0;t>=s[o]&&o<s.length;o++)t/=s[o];return(t=Math.floor(t))>(0==(o*=2)?9:1)&&(o+=1),e(t,o,n)[r].replace("%s",t.toString())}(n,function(t){return i[t]||i.en_US}(e))};a("en_US",(function(t,e){if(0===e)return["just now","right now"];var r=n[Math.floor(e/2)];return t>1&&(r+="s"),[t+" "+r+" ago","in "+t+" "+r]})),a("zh_CN",(function(t,e){if(0===e)return["刚刚","片刻后"];var r=o[~~(e/2)];return[t+" "+r+"前",t+" "+r+"后"]}))}}]);
|
|
1
|
+
(self.webpackChunk_clickview_library_editor=self.webpackChunk_clickview_library_editor||[]).push([[6991],{56784:function(t){"use strict";t.exports=function(t,e,r,n,o,i,a,s){if(!t){var c;if(void 0===e)c=new Error("Minified exception occurred; use the non-minified dev environment for the full error message and additional helpful warnings.");else{var u=[r,n,o,i,a,s],l=0;(c=new Error(e.replace(/%s/g,(function(){return u[l++]})))).name="Invariant Violation"}throw c.framesToPop=1,c}}},30582:function(t,e,r){"use strict";var n=r(1024),o=r.n(n),i=r(60216),a=r.n(i),s=r(82049),c=r.n(s),u=r(56784),l=r.n(u),f=r(55007),p=r.n(f);function d(){return d=Object.assign||function(t){for(var e=1;e<arguments.length;e++){var r=arguments[e];for(var n in r)Object.prototype.hasOwnProperty.call(r,n)&&(t[n]=r[n])}return t},d.apply(this,arguments)}function h(t,e){t.prototype=Object.create(e.prototype),t.prototype.constructor=t,m(t,e)}function m(t,e){return m=Object.setPrototypeOf||function(t,e){return t.__proto__=e,t},m(t,e)}function y(t,e){if(null==t)return{};var r,n,o={},i=Object.keys(t);for(n=0;n<i.length;n++)e.indexOf(r=i[n])>=0||(o[r]=t[r]);return o}var g={BASE:"base",BODY:"body",HEAD:"head",HTML:"html",LINK:"link",META:"meta",NOSCRIPT:"noscript",SCRIPT:"script",STYLE:"style",TITLE:"title",FRAGMENT:"Symbol(react.fragment)"},v={rel:["amphtml","canonical","alternate"]},T={type:["application/ld+json"]},b={charset:"",name:["robots","description"],property:["og:type","og:title","og:url","og:image","og:image:alt","og:description","twitter:url","twitter:title","twitter:description","twitter:image","twitter:image:alt","twitter:card","twitter:site"]},A=Object.keys(g).map((function(t){return g[t]})),C={accesskey:"accessKey",charset:"charSet",class:"className",contenteditable:"contentEditable",contextmenu:"contextMenu","http-equiv":"httpEquiv",itemprop:"itemProp",tabindex:"tabIndex"},O=Object.keys(C).reduce((function(t,e){return t[C[e]]=e,t}),{}),P=function(t,e){for(var r=t.length-1;r>=0;r-=1){var n=t[r];if(Object.prototype.hasOwnProperty.call(n,e))return n[e]}return null},w=function(t){var e=P(t,g.TITLE),r=P(t,"titleTemplate");if(Array.isArray(e)&&(e=e.join("")),r&&e)return r.replace(/%s/g,(function(){return e}));var n=P(t,"defaultTitle");return e||n||void 0},S=function(t){return P(t,"onChangeClientState")||function(){}},E=function(t,e){return e.filter((function(e){return void 0!==e[t]})).map((function(e){return e[t]})).reduce((function(t,e){return d({},t,e)}),{})},j=function(t,e){return e.filter((function(t){return void 0!==t[g.BASE]})).map((function(t){return t[g.BASE]})).reverse().reduce((function(e,r){if(!e.length)for(var n=Object.keys(r),o=0;o<n.length;o+=1){var i=n[o].toLowerCase();if(-1!==t.indexOf(i)&&r[i])return e.concat(r)}return e}),[])},I=function(t,e,r){var n={};return r.filter((function(e){return!!Array.isArray(e[t])||(void 0!==e[t]&&console&&"function"==typeof console.warn&&console.warn("Helmet: "+t+' should be of type "Array". Instead found type "'+typeof e[t]+'"'),!1)})).map((function(e){return e[t]})).reverse().reduce((function(t,r){var o={};r.filter((function(t){for(var r,i=Object.keys(t),a=0;a<i.length;a+=1){var s=i[a],c=s.toLowerCase();-1===e.indexOf(c)||"rel"===r&&"canonical"===t[r].toLowerCase()||"rel"===c&&"stylesheet"===t[c].toLowerCase()||(r=c),-1===e.indexOf(s)||"innerHTML"!==s&&"cssText"!==s&&"itemprop"!==s||(r=s)}if(!r||!t[r])return!1;var u=t[r].toLowerCase();return n[r]||(n[r]={}),o[r]||(o[r]={}),!n[r][u]&&(o[r][u]=!0,!0)})).reverse().forEach((function(e){return t.push(e)}));for(var i=Object.keys(o),a=0;a<i.length;a+=1){var s=i[a],c=d({},n[s],o[s]);n[s]=c}return t}),[]).reverse()},x=function(t,e){if(Array.isArray(t)&&t.length)for(var r=0;r<t.length;r+=1)if(t[r][e])return!0;return!1},N=function(t){return Array.isArray(t)?t.join(""):t},M=function(t,e){return Array.isArray(t)?t.reduce((function(t,r){return function(t,e){for(var r=Object.keys(t),n=0;n<r.length;n+=1)if(e[r[n]]&&e[r[n]].includes(t[r[n]]))return!0;return!1}(r,e)?t.priority.push(r):t.default.push(r),t}),{priority:[],default:[]}):{default:t}},k=function(t,e){var r;return d({},t,((r={})[e]=void 0,r))},L=[g.NOSCRIPT,g.SCRIPT,g.STYLE],D=function(t,e){return void 0===e&&(e=!0),!1===e?String(t):String(t).replace(/&/g,"&").replace(/</g,"<").replace(/>/g,">").replace(/"/g,""").replace(/'/g,"'")},H=function(t){return Object.keys(t).reduce((function(e,r){var n=void 0!==t[r]?r+'="'+t[r]+'"':""+r;return e?e+" "+n:n}),"")},_=function(t,e){return void 0===e&&(e={}),Object.keys(t).reduce((function(e,r){return e[C[r]||r]=t[r],e}),e)},R=function(t,e){return e.map((function(e,r){var n,i=((n={key:r})["data-rh"]=!0,n);return Object.keys(e).forEach((function(t){var r=C[t]||t;"innerHTML"===r||"cssText"===r?i.dangerouslySetInnerHTML={__html:e.innerHTML||e.cssText}:i[r]=e[t]})),o().createElement(t,i)}))},U=function(t,e,r){switch(t){case g.TITLE:return{toComponent:function(){return r=e.titleAttributes,(n={key:t=e.title})["data-rh"]=!0,i=_(r,n),[o().createElement(g.TITLE,i,t)];var t,r,n,i},toString:function(){return function(t,e,r,n){var o=H(r),i=N(e);return o?"<"+t+' data-rh="true" '+o+">"+D(i,n)+"</"+t+">":"<"+t+' data-rh="true">'+D(i,n)+"</"+t+">"}(t,e.title,e.titleAttributes,r)}};case"bodyAttributes":case"htmlAttributes":return{toComponent:function(){return _(e)},toString:function(){return H(e)}};default:return{toComponent:function(){return R(t,e)},toString:function(){return function(t,e,r){return e.reduce((function(e,n){var o=Object.keys(n).filter((function(t){return!("innerHTML"===t||"cssText"===t)})).reduce((function(t,e){var o=void 0===n[e]?e:e+'="'+D(n[e],r)+'"';return t?t+" "+o:o}),""),i=n.innerHTML||n.cssText||"",a=-1===L.indexOf(t);return e+"<"+t+' data-rh="true" '+o+(a?"/>":">"+i+"</"+t+">")}),"")}(t,e,r)}}}},B=function(t){var e=t.baseTag,r=t.bodyAttributes,n=t.encode,o=t.htmlAttributes,i=t.noscriptTags,a=t.styleTags,s=t.title,c=void 0===s?"":s,u=t.titleAttributes,l=t.linkTags,f=t.metaTags,p=t.scriptTags,d={toComponent:function(){},toString:function(){return""}};if(t.prioritizeSeoTags){var h=function(t){var e=t.linkTags,r=t.scriptTags,n=t.encode,o=M(t.metaTags,b),i=M(e,v),a=M(r,T);return{priorityMethods:{toComponent:function(){return[].concat(R(g.META,o.priority),R(g.LINK,i.priority),R(g.SCRIPT,a.priority))},toString:function(){return U(g.META,o.priority,n)+" "+U(g.LINK,i.priority,n)+" "+U(g.SCRIPT,a.priority,n)}},metaTags:o.default,linkTags:i.default,scriptTags:a.default}}(t);d=h.priorityMethods,l=h.linkTags,f=h.metaTags,p=h.scriptTags}return{priority:d,base:U(g.BASE,e,n),bodyAttributes:U("bodyAttributes",r,n),htmlAttributes:U("htmlAttributes",o,n),link:U(g.LINK,l,n),meta:U(g.META,f,n),noscript:U(g.NOSCRIPT,i,n),script:U(g.SCRIPT,p,n),style:U(g.STYLE,a,n),title:U(g.TITLE,{title:c,titleAttributes:u},n)}},q=[],z=function(t,e){var r=this;void 0===e&&(e="undefined"!=typeof document),this.instances=[],this.value={setHelmet:function(t){r.context.helmet=t},helmetInstances:{get:function(){return r.canUseDOM?q:r.instances},add:function(t){(r.canUseDOM?q:r.instances).push(t)},remove:function(t){var e=(r.canUseDOM?q:r.instances).indexOf(t);(r.canUseDOM?q:r.instances).splice(e,1)}}},this.context=t,this.canUseDOM=e,e||(t.helmet=B({baseTag:[],bodyAttributes:{},encodeSpecialCharacters:!0,htmlAttributes:{},linkTags:[],metaTags:[],noscriptTags:[],scriptTags:[],styleTags:[],title:"",titleAttributes:{}}))},Y=o().createContext({}),K=a().shape({setHelmet:a().func,helmetInstances:a().shape({get:a().func,add:a().func,remove:a().func})}),$="undefined"!=typeof document,V=function(t){function e(r){var n;return(n=t.call(this,r)||this).helmetData=new z(n.props.context,e.canUseDOM),n}return h(e,t),e.prototype.render=function(){return o().createElement(Y.Provider,{value:this.helmetData.value},this.props.children)},e}(n.Component);V.canUseDOM=$,V.propTypes={context:a().shape({helmet:a().shape()}),children:a().node.isRequired},V.defaultProps={context:{}},V.displayName="HelmetProvider";var F=function(t,e){var r,n=document.head||document.querySelector(g.HEAD),o=n.querySelectorAll(t+"[data-rh]"),i=[].slice.call(o),a=[];return e&&e.length&&e.forEach((function(e){var n=document.createElement(t);for(var o in e)Object.prototype.hasOwnProperty.call(e,o)&&("innerHTML"===o?n.innerHTML=e.innerHTML:"cssText"===o?n.styleSheet?n.styleSheet.cssText=e.cssText:n.appendChild(document.createTextNode(e.cssText)):n.setAttribute(o,void 0===e[o]?"":e[o]));n.setAttribute("data-rh","true"),i.some((function(t,e){return r=e,n.isEqualNode(t)}))?i.splice(r,1):a.push(n)})),i.forEach((function(t){return t.parentNode.removeChild(t)})),a.forEach((function(t){return n.appendChild(t)})),{oldTags:i,newTags:a}},G=function(t,e){var r=document.getElementsByTagName(t)[0];if(r){for(var n=r.getAttribute("data-rh"),o=n?n.split(","):[],i=[].concat(o),a=Object.keys(e),s=0;s<a.length;s+=1){var c=a[s],u=e[c]||"";r.getAttribute(c)!==u&&r.setAttribute(c,u),-1===o.indexOf(c)&&o.push(c);var l=i.indexOf(c);-1!==l&&i.splice(l,1)}for(var f=i.length-1;f>=0;f-=1)r.removeAttribute(i[f]);o.length===i.length?r.removeAttribute("data-rh"):r.getAttribute("data-rh")!==a.join(",")&&r.setAttribute("data-rh",a.join(","))}},W=function(t,e){var r=t.baseTag,n=t.htmlAttributes,o=t.linkTags,i=t.metaTags,a=t.noscriptTags,s=t.onChangeClientState,c=t.scriptTags,u=t.styleTags,l=t.title,f=t.titleAttributes;G(g.BODY,t.bodyAttributes),G(g.HTML,n),function(t,e){void 0!==t&&document.title!==t&&(document.title=N(t)),G(g.TITLE,e)}(l,f);var p={baseTag:F(g.BASE,r),linkTags:F(g.LINK,o),metaTags:F(g.META,i),noscriptTags:F(g.NOSCRIPT,a),scriptTags:F(g.SCRIPT,c),styleTags:F(g.STYLE,u)},d={},h={};Object.keys(p).forEach((function(t){var e=p[t],r=e.newTags,n=e.oldTags;r.length&&(d[t]=r),n.length&&(h[t]=p[t].oldTags)})),e&&e(),s(t,d,h)},Z=null,J=function(t){function e(){for(var e,r=arguments.length,n=new Array(r),o=0;o<r;o++)n[o]=arguments[o];return(e=t.call.apply(t,[this].concat(n))||this).rendered=!1,e}h(e,t);var r=e.prototype;return r.shouldComponentUpdate=function(t){return!p()(t,this.props)},r.componentDidUpdate=function(){this.emitChange()},r.componentWillUnmount=function(){this.props.context.helmetInstances.remove(this),this.emitChange()},r.emitChange=function(){var t,e,r=this.props.context,n=r.setHelmet,o=null,i=(t=r.helmetInstances.get().map((function(t){var e=d({},t.props);return delete e.context,e})),{baseTag:j(["href"],t),bodyAttributes:E("bodyAttributes",t),defer:P(t,"defer"),encode:P(t,"encodeSpecialCharacters"),htmlAttributes:E("htmlAttributes",t),linkTags:I(g.LINK,["rel","href"],t),metaTags:I(g.META,["name","charset","http-equiv","property","itemprop"],t),noscriptTags:I(g.NOSCRIPT,["innerHTML"],t),onChangeClientState:S(t),scriptTags:I(g.SCRIPT,["src","innerHTML"],t),styleTags:I(g.STYLE,["cssText"],t),title:w(t),titleAttributes:E("titleAttributes",t),prioritizeSeoTags:x(t,"prioritizeSeoTags")});V.canUseDOM?(e=i,Z&&cancelAnimationFrame(Z),e.defer?Z=requestAnimationFrame((function(){W(e,(function(){Z=null}))})):(W(e),Z=null)):B&&(o=B(i)),n(o)},r.init=function(){this.rendered||(this.rendered=!0,this.props.context.helmetInstances.add(this),this.emitChange())},r.render=function(){return this.init(),null},e}(n.Component);J.propTypes={context:K.isRequired},J.displayName="HelmetDispatcher";var Q=["children"],X=["children"],tt=function(t){function e(){return t.apply(this,arguments)||this}h(e,t);var r=e.prototype;return r.shouldComponentUpdate=function(t){return!c()(k(this.props,"helmetData"),k(t,"helmetData"))},r.mapNestedChildrenToProps=function(t,e){if(!e)return null;switch(t.type){case g.SCRIPT:case g.NOSCRIPT:return{innerHTML:e};case g.STYLE:return{cssText:e};default:throw new Error("<"+t.type+" /> elements are self-closing and can not contain children. Refer to our API for more information.")}},r.flattenArrayTypeChildren=function(t){var e,r=t.child,n=t.arrayTypeChildren;return d({},n,((e={})[r.type]=[].concat(n[r.type]||[],[d({},t.newChildProps,this.mapNestedChildrenToProps(r,t.nestedChildren))]),e))},r.mapObjectTypeChildren=function(t){var e,r,n=t.child,o=t.newProps,i=t.newChildProps,a=t.nestedChildren;switch(n.type){case g.TITLE:return d({},o,((e={})[n.type]=a,e.titleAttributes=d({},i),e));case g.BODY:return d({},o,{bodyAttributes:d({},i)});case g.HTML:return d({},o,{htmlAttributes:d({},i)});default:return d({},o,((r={})[n.type]=d({},i),r))}},r.mapArrayTypeChildrenToProps=function(t,e){var r=d({},e);return Object.keys(t).forEach((function(e){var n;r=d({},r,((n={})[e]=t[e],n))})),r},r.warnOnInvalidChildren=function(t,e){return l()(A.some((function(e){return t.type===e})),"function"==typeof t.type?"You may be attempting to nest <Helmet> components within each other, which is not allowed. Refer to our API for more information.":"Only elements types "+A.join(", ")+" are allowed. Helmet does not support rendering <"+t.type+"> elements. Refer to our API for more information."),l()(!e||"string"==typeof e||Array.isArray(e)&&!e.some((function(t){return"string"!=typeof t})),"Helmet expects a string as a child of <"+t.type+">. Did you forget to wrap your children in braces? ( <"+t.type+">{``}</"+t.type+"> ) Refer to our API for more information."),!0},r.mapChildrenToProps=function(t,e){var r=this,n={};return o().Children.forEach(t,(function(t){if(t&&t.props){var o=t.props,i=o.children,a=y(o,Q),s=Object.keys(a).reduce((function(t,e){return t[O[e]||e]=a[e],t}),{}),c=t.type;switch("symbol"==typeof c?c=c.toString():r.warnOnInvalidChildren(t,i),c){case g.FRAGMENT:e=r.mapChildrenToProps(i,e);break;case g.LINK:case g.META:case g.NOSCRIPT:case g.SCRIPT:case g.STYLE:n=r.flattenArrayTypeChildren({child:t,arrayTypeChildren:n,newChildProps:s,nestedChildren:i});break;default:e=r.mapObjectTypeChildren({child:t,newProps:e,newChildProps:s,nestedChildren:i})}}})),this.mapArrayTypeChildrenToProps(n,e)},r.render=function(){var t=this.props,e=t.children,r=y(t,X),n=d({},r),i=r.helmetData;return e&&(n=this.mapChildrenToProps(e,n)),!i||i instanceof z||(i=new z(i.context,i.instances)),i?o().createElement(J,d({},n,{context:i.value,helmetData:void 0})):o().createElement(Y.Consumer,null,(function(t){return o().createElement(J,d({},n,{context:t}))}))},e}(n.Component);tt.propTypes={base:a().object,bodyAttributes:a().object,children:a().oneOfType([a().arrayOf(a().node),a().node]),defaultTitle:a().string,defer:a().bool,encodeSpecialCharacters:a().bool,htmlAttributes:a().object,link:a().arrayOf(a().object),meta:a().arrayOf(a().object),noscript:a().arrayOf(a().object),onChangeClientState:a().func,script:a().arrayOf(a().object),style:a().arrayOf(a().object),title:a().string,titleAttributes:a().object,titleTemplate:a().string,prioritizeSeoTags:a().bool,helmetData:a().object},tt.defaultProps={defer:!0,encodeSpecialCharacters:!0,prioritizeSeoTags:!1},tt.displayName="Helmet"},82049:function(t){var e="undefined"!=typeof Element,r="function"==typeof Map,n="function"==typeof Set,o="function"==typeof ArrayBuffer&&!!ArrayBuffer.isView;function i(t,a){if(t===a)return!0;if(t&&a&&"object"==typeof t&&"object"==typeof a){if(t.constructor!==a.constructor)return!1;var s,c,u,l;if(Array.isArray(t)){if((s=t.length)!=a.length)return!1;for(c=s;0!=c--;)if(!i(t[c],a[c]))return!1;return!0}if(r&&t instanceof Map&&a instanceof Map){if(t.size!==a.size)return!1;for(l=t.entries();!(c=l.next()).done;)if(!a.has(c.value[0]))return!1;for(l=t.entries();!(c=l.next()).done;)if(!i(c.value[1],a.get(c.value[0])))return!1;return!0}if(n&&t instanceof Set&&a instanceof Set){if(t.size!==a.size)return!1;for(l=t.entries();!(c=l.next()).done;)if(!a.has(c.value[0]))return!1;return!0}if(o&&ArrayBuffer.isView(t)&&ArrayBuffer.isView(a)){if((s=t.length)!=a.length)return!1;for(c=s;0!=c--;)if(t[c]!==a[c])return!1;return!0}if(t.constructor===RegExp)return t.source===a.source&&t.flags===a.flags;if(t.valueOf!==Object.prototype.valueOf&&"function"==typeof t.valueOf&&"function"==typeof a.valueOf)return t.valueOf()===a.valueOf();if(t.toString!==Object.prototype.toString&&"function"==typeof t.toString&&"function"==typeof a.toString)return t.toString()===a.toString();if((s=(u=Object.keys(t)).length)!==Object.keys(a).length)return!1;for(c=s;0!=c--;)if(!Object.prototype.hasOwnProperty.call(a,u[c]))return!1;if(e&&t instanceof Element)return!1;for(c=s;0!=c--;)if(("_owner"!==u[c]&&"__v"!==u[c]&&"__o"!==u[c]||!t.$$typeof)&&!i(t[u[c]],a[u[c]]))return!1;return!0}return t!=t&&a!=a}t.exports=function(t,e){try{return i(t,e)}catch(t){if((t.message||"").match(/stack|recursion/i))return console.warn("react-fast-compare cannot handle circular refs"),!1;throw t}}},17082:function(t,e,r){"use strict";r.d(e,{Nq:function(){return l},oD:function(){return p},t0:function(){return f}});var n,o=r(1024),i=r(30314),a=(n=function(t,e){return n=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var r in e)e.hasOwnProperty(r)&&(t[r]=e[r])},n(t,e)},function(t,e){function r(){this.constructor=t}n(t,e),t.prototype=null===e?Object.create(e):(r.prototype=e.prototype,new r)}),s="html",c="svg",u=function(t,e){var r,n,o,i={};if(t===s)o=document.createElement("div");else{if(t!==c)throw new Error('Invalid element type "'+t+'" for createPortalNode: must be "html" or "svg".');o=document.createElementNS("http://www.w3.org/2000/svg","g")}if(e&&"object"==typeof e)for(var a=0,u=Object.entries(e.attributes);a<u.length;a++){var l=u[a],f=l[0],p=l[1];o.setAttribute(f,p)}var d={element:o,elementType:t,setPortalProps:function(t){i=t},getInitialPortalProps:function(){return i},mount:function(e,o){if(o!==n){if(d.unmount(),e!==r&&!function(t,e){if(e===s)return t instanceof HTMLElement;if(e===c)return t instanceof SVGElement;throw new Error('Unrecognized element type "'+e+'" for validateElementType.')}(e,t))throw new Error('Invalid element type for portal: "'+t+'" portalNodes must be used with '+t+" elements, but OutPortal is within <"+e.tagName+">.");e.replaceChild(d.element,o),r=e,n=o}},unmount:function(t){t&&t!==n||r&&n&&(r.replaceChild(n,d.element),r=void 0,n=void 0)}};return d},l=function(t){function e(e){var r=t.call(this,e)||this;return r.addPropsChannel=function(){Object.assign(r.props.node,{setPortalProps:function(t){r.setState({nodeProps:t})}})},r.state={nodeProps:r.props.node.getInitialPortalProps()},r}return a(e,t),e.prototype.componentDidMount=function(){this.addPropsChannel()},e.prototype.componentDidUpdate=function(){this.addPropsChannel()},e.prototype.render=function(){var t=this,e=this.props,r=e.children,n=e.node;return i.createPortal(o.Children.map(r,(function(e){return o.isValidElement(e)?o.cloneElement(e,t.state.nodeProps):e})),n.element)},e}(o.PureComponent),f=function(t){function e(e){var r=t.call(this,e)||this;return r.placeholderNode=o.createRef(),r.passPropsThroughPortal(),r}return a(e,t),e.prototype.passPropsThroughPortal=function(){var t=Object.assign({},this.props,{node:void 0});this.props.node.setPortalProps(t)},e.prototype.componentDidMount=function(){var t=this.props.node;this.currentPortalNode=t;var e=this.placeholderNode.current,r=e.parentNode;t.mount(r,e),this.passPropsThroughPortal()},e.prototype.componentDidUpdate=function(){var t=this.props.node;this.currentPortalNode&&t!==this.currentPortalNode&&(this.currentPortalNode.unmount(this.placeholderNode.current),this.currentPortalNode.setPortalProps({}),this.currentPortalNode=t);var e=this.placeholderNode.current,r=e.parentNode;t.mount(r,e),this.passPropsThroughPortal()},e.prototype.componentWillUnmount=function(){var t=this.props.node;t.unmount(this.placeholderNode.current),t.setPortalProps({})},e.prototype.render=function(){return o.createElement("div",{ref:this.placeholderNode})},e}(o.PureComponent),p=u.bind(null,s);u.bind(null,c)},55007:function(t){t.exports=function(t,e,r,n){var o=r?r.call(n,t,e):void 0;if(void 0!==o)return!!o;if(t===e)return!0;if("object"!=typeof t||!t||"object"!=typeof e||!e)return!1;var i=Object.keys(t),a=Object.keys(e);if(i.length!==a.length)return!1;for(var s=Object.prototype.hasOwnProperty.bind(e),c=0;c<i.length;c++){var u=i[c];if(!s(u))return!1;var l=t[u],f=e[u];if(!1===(o=r?r.call(n,l,f,u):void 0)||void 0===o&&l!==f)return!1}return!0}},82602:function(t,e,r){"use strict";r.d(e,{WU:function(){return u}});var n=["second","minute","hour","day","week","month","year"],o=["秒","分钟","小时","天","周","个月","年"],i={},a=function(t,e){i[t]=e},s=[60,60,24,7,365/7/12,12];function c(t){return t instanceof Date?t:!isNaN(t)||/^\d+$/.test(t)?new Date(parseInt(t)):(t=(t||"").trim().replace(/\.\d+/,"").replace(/-/,"/").replace(/-/,"/").replace(/(\d)T(\d)/,"$1 $2").replace(/Z/," UTC").replace(/([+-]\d\d):?(\d\d)/," $1$2"),new Date(t))}var u=function(t,e,r){var n=function(t,e){return(+(e?c(e):new Date)-+c(t))/1e3}(t,r&&r.relativeDate);return function(t,e){for(var r=t<0?1:0,n=t=Math.abs(t),o=0;t>=s[o]&&o<s.length;o++)t/=s[o];return(t=Math.floor(t))>(0==(o*=2)?9:1)&&(o+=1),e(t,o,n)[r].replace("%s",t.toString())}(n,function(t){return i[t]||i.en_US}(e))};a("en_US",(function(t,e){if(0===e)return["just now","right now"];var r=n[Math.floor(e/2)];return t>1&&(r+="s"),[t+" "+r+" ago","in "+t+" "+r]})),a("zh_CN",(function(t,e){if(0===e)return["刚刚","片刻后"];var r=o[~~(e/2)];return[t+" "+r+"前",t+" "+r+"后"]}))}}]);
|
|
@@ -1 +1 @@
|
|
|
1
|
-
(self.webpackChunk_clickview_library_editor=self.webpackChunk_clickview_library_editor||[]).push([[6995],{24184:function(e,n,t){"use strict";t.d(n,{a:function(){return re}});var o=t(48088),r=t(39479),i=t(31647),l=t(10101),a=t(57857),s=t(17391),u=t(33192),c=t(63791),p=t(70550),d=t.n(p),f={clearSvg:"gWA4e"};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},h(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,(void 0,r=function(e,n){if("object"!==h(e)||null===e)return e;var t=e[Symbol.toPrimitive];if(void 0!==t){var o=t.call(e,"string");if("object"!==h(o))return o;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}(o.key),"symbol"===h(r)?r:String(r)),o)}var r}function y(e,n){return y=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(e,n){return e.__proto__=n,e},y(e,n)}function b(e){return b=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(e){return e.__proto__||Object.getPrototypeOf(e)},b(e)}var g=function(e){!function(e,n){if("function"!=typeof n&&null!==n)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(n&&n.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),Object.defineProperty(e,"prototype",{writable:!1}),n&&y(e,n)}(a,e);var n,t,r,i,l=(r=a,i=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(e){return!1}}(),function(){var e,n=b(r);if(i){var t=b(this).constructor;e=Reflect.construct(n,arguments,t)}else e=n.apply(this,arguments);return function(e,n){if(n&&("object"===h(n)||"function"==typeof n))return n;if(void 0!==n)throw new TypeError("Derived constructors may only return object or undefined");return function(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}(e)}(this,e)});function a(e){return function(e,n){if(!(e instanceof n))throw new TypeError("Cannot call a class as a function")}(this,a),l.call(this,e)}return n=a,(t=[{key:"name",get:function(){return"ClearButtonComponent"}},{key:"className",get:function(){return"".concat(f.clearButton)}},{key:"template",get:function(){return d()}},{key:"events",value:function(){return{click:"onClick"}}},{key:"onClick",value:function(){o.Radio.channel(this.options.channelName).trigger("clear:date")}},{key:"onBeforeRender",value:function(){return!!this.options.shouldRender}},{key:"viewOptions",value:function(){return{styles:f,svgClear:c.Nj.getSvg(c.vn.Close)}}}])&&m(n.prototype,t),Object.defineProperty(n,"prototype",{writable:!1}),a}(i.Q.wA),v=t(48090),w=t(40622),k=t(7591),E=t.n(k),C=t(45092),S={previous:"lzgvM",next:"Vxb5b",datePicker:"odbOJ",calendarSvg:"fT6E_",disabled:"nayb_"};function O(e){return O="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},O(e)}function P(e,n,t){return(n=x(n))in e?Object.defineProperty(e,n,{value:t,enumerable:!0,configurable:!0,writable:!0}):e[n]=t,e}function T(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,x(o.key),o)}}function x(e){var n=function(e,n){if("object"!==O(e)||null===e)return e;var t=e[Symbol.toPrimitive];if(void 0!==t){var o=t.call(e,"string");if("object"!==O(o))return o;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}(e);return"symbol"===O(n)?n:String(n)}function R(e,n){return R=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(e,n){return e.__proto__=n,e},R(e,n)}function j(e){return j=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(e){return e.__proto__||Object.getPrototypeOf(e)},j(e)}var I=function(e){!function(e,n){if("function"!=typeof n&&null!==n)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(n&&n.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),Object.defineProperty(e,"prototype",{writable:!1}),n&&R(e,n)}(p,e);var n,t,o,i,s=(o=p,i=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(e){return!1}}(),function(){var e,n=j(o);if(i){var t=j(this).constructor;e=Reflect.construct(n,arguments,t)}else e=n.apply(this,arguments);return function(e,n){if(n&&("object"===O(n)||"function"==typeof n))return n;if(void 0!==n)throw new TypeError("Derived constructors may only return object or undefined");return function(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}(e)}(this,e)});function p(e){return function(e,n){if(!(e instanceof n))throw new TypeError("Cannot call a class as a function")}(this,p),s.call(this,e)}return n=p,(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 E()}},{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:v.OV.LIBRARY_EDITOR,action:v.eX.LibraryEditor.SUGGEST_AN_EDIT,args:[this.model.get("id")],params:{metadata:w.pG.BroadcastDate}}}}},{key:"defaults",get:function(){return{placeholderText:a.T.getPhrase(this.lang,"placeholder"),allowTextInput:!1,allowClearDate:!0,minYear:1900,editable:!0}}},{key:"behaviors",get:function(){return[{behaviorClass:l.fS},{behaviorClass:l.Bp}]}},{key:"bindings",get:function(){var e=this;return P({},"[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 P({"keydown @ui.date":"onKeyDownDate"},"click .".concat(S.calendarSvg),"onClickCalendarIcon")}},{key:"getInstanceClassName",value:function(){return"datetimepicker-".concat(this.cid)}},{key:"initDatePicker",value:function(){this.getUI("date").datetimepicker({format:this.options.displayedTimeFormat,minDate:u().year(this.options.minYear),maxDate:u(),icons:{previous:S.previous,next:S.next}})}},{key:"getFormattedDisplayDate",value:function(e){if(e)return r.isFunction(this.options.formatDisplayDate)?this.options.formatDisplayDate(e):u.utc(e).local().format(this.options.displayedTimeFormat)}},{key:"getFormattedSavedDate",value:function(e){if(e)return r.isFunction(this.options.formatSavedDate)?this.options.formatSavedDate(e):this.options.savedTimeFormat?u.utc(e).format(this.options.savedTimeFormat):u.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(P({},"".concat(this.options.modelAttr),null)),!0)}},{key:"onKeyDownDate",value:function(e){this.options.allowTextInput||e.preventDefault()}},{key:"renderClearDateButton",value:function(){this.showChildView("clearButton",new g({channelName:this.channelName,shouldRender:this.options.allowClearDate&&!!this.model.get("dateBroadcast")}))}},{key:"viewOptions",value:function(){return{styles:r.extend(C.Z,S),label:this.options.label,modelAttr:this.options.modelAttr,instanceClass:this.getInstanceClassName(),placeholderText:this.options.placeholderText,displayedTimeFormat:this.options.displayedTimeFormat,svgCalendar:c.Nj.getSvg(c.vn.Calendar),svgClear:c.Nj.getSvg(c.vn.Close),editable:this.options.editable}}},{key:"onRender",value:function(){this.initDatePicker(),this.renderClearDateButton()}}])&&T(n.prototype,t),Object.defineProperty(n,"prototype",{writable:!1}),p}(i.Q.wA),D=t(36022),N=t(29457),_=t(33469),B=t(3974),A=t(88764),V=t.n(A);function M(e){return M="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},M(e)}function 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,(void 0,r=function(e,n){if("object"!==M(e)||null===e)return e;var t=e[Symbol.toPrimitive];if(void 0!==t){var o=t.call(e,"string");if("object"!==M(o))return o;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}(o.key),"symbol"===M(r)?r:String(r)),o)}var r}function F(e,n){return F=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(e,n){return e.__proto__=n,e},F(e,n)}function G(e){return G=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(e){return e.__proto__||Object.getPrototypeOf(e)},G(e)}var U=function(e){!function(e,n){if("function"!=typeof n&&null!==n)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(n&&n.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),Object.defineProperty(e,"prototype",{writable:!1}),n&&F(e,n)}(l,e);var n,t,o,r,i=(o=l,r=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(e){return!1}}(),function(){var e,n=G(o);if(r){var t=G(this).constructor;e=Reflect.construct(n,arguments,t)}else e=n.apply(this,arguments);return function(e,n){if(n&&("object"===M(n)||"function"==typeof n))return n;if(void 0!==n)throw new TypeError("Derived constructors may only return object or undefined");return function(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}(e)}(this,e)});function l(e){return function(e,n){if(!(e instanceof n))throw new TypeError("Cannot call a class as a function")}(this,l),i.call(this,e)}return n=l,(t=[{key:"name",get:function(){return"EditBroadcastComponent"}},{key:"template",get:function(){return V()}},{key:"lang",get:function(){return"shared.editBroadcast"}},{key:"className",get:function(){return"edit-broadcast"}},{key:"regions",value:function(){return{dateBroadcast:{el:".date-broadcast-region",replaceElement:!0},channelSearch:{el:".channel-search-region",replaceElement:!0}}}},{key:"appLinks",get:function(){return{".suggest-channel":{application:v.OV.LIBRARY_EDITOR,action:v.eX.LibraryEditor.SUGGEST_AN_EDIT,args:[this.model.get("id")],params:{metadata:w.pG.Channel}}}}},{key:"buildTypeaheadConfig",value:function(){return{name:v.n8.ChannelRaw,typeaheadConfig:B.M.getTypeaheadConfig(),bloodhoundConfig:B.M.getBloodhoundConfig()}}},{key:"renderBroadcastDate",value:function(){this.showChildView("dateBroadcast",new I({model:this.model,label:a.T.getPhrase(this.lang,"broadcastDate"),modelAttr:"dateBroadcast",displayedTimeFormat:N.K4.FULL_YEAR,placeholderText:this.options.editable?a.T.getPhrase(this.lang,"selectBroadcastDate"):"",allowClearDate:this.options.editable,editable:this.options.editable}))}},{key:"renderChannelTypeahead",value:function(){this.model.get("channel")||this.model.set("channel",new _.$),this.showChildView("channelSearch",new D.M({model:this.model.get("channel"),parentChannelName:this.options.channelName,inputId:"channel-search",selectEvent:"select:channel",placeholderText:this.options.editable?a.T.getPhrase(this.lang,"searchChannels"):"",typeaheadConfigs:this.buildTypeaheadConfig(),callbacks:{onInput:s.J.emitEventOnInput(this.options.channelName,w.NT.DetectInput,"channel"),onBlur:s.J.resetAssociationOnBlur(this.model.get("channel").toJSON())},editable:this.options.editable,removeEvent:"remove:channel"}))}},{key:"viewOptions",value:function(){return{styles:C.Z,editable:this.options.editable}}},{key:"onRender",value:function(){this.renderBroadcastDate(),this.renderChannelTypeahead()}}])&&L(n.prototype,t),Object.defineProperty(n,"prototype",{writable:!1}),l}(i.Q.wA),Z=t(68588),Y=t.n(Z),J={disabled:"Jh_Ny"};function Q(e){return Q="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},Q(e)}function z(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,(void 0,r=function(e,n){if("object"!==Q(e)||null===e)return e;var t=e[Symbol.toPrimitive];if(void 0!==t){var o=t.call(e,"string");if("object"!==Q(o))return o;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}(o.key),"symbol"===Q(r)?r:String(r)),o)}var r}function q(e,n){return q=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(e,n){return e.__proto__=n,e},q(e,n)}function X(e){return X=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(e){return e.__proto__||Object.getPrototypeOf(e)},X(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}}),Object.defineProperty(e,"prototype",{writable:!1}),n&&q(e,n)}(a,e);var n,t,o,r,i=(o=a,r=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(e){return!1}}(),function(){var e,n=X(o);if(r){var t=X(this).constructor;e=Reflect.construct(n,arguments,t)}else e=n.apply(this,arguments);return function(e,n){if(n&&("object"===Q(n)||"function"==typeof n))return n;if(void 0!==n)throw new TypeError("Derived constructors may only return object or undefined");return function(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}(e)}(this,e)});function a(e){return function(e,n){if(!(e instanceof n))throw new TypeError("Cannot call a class as a function")}(this,a),i.call(this,e)}return n=a,(t=[{key:"name",get:function(){return"ToggleBroadcastComponent"}},{key:"template",get:function(){return Y()}},{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.fS},{behaviorClass:l.Bp}]}},{key:"bindings",get:function(){return{"[name=toggleBroadcast]":{observe:"hasBroadcast"}}}},{key:"initialize",value:function(){this.listenTo(this.model,"change:hasBroadcast",this.render),this.initBroadcast()}},{key:"initBroadcast",value:function(){var e=this.model.get("channel"),n=this.model.get("dateBroadcast")||e&&e.get("id");this.model.set("hasBroadcast",!!n,{silent:!0})}},{key:"renderEditBroadcast",value:function(){this.model.get("hasBroadcast")||this.options.hideToggle?this.showChildView("broadcast",new U({model:this.model,channelName:this.options.channelName,editable:this.options.editable})):this.getRegion("broadcast").empty()}},{key:"viewOptions",value:function(){return Object.assign({styles:J},this.options)}},{key:"onRender",value:function(){this.renderEditBroadcast()}}])&&z(n.prototype,t),Object.defineProperty(n,"prototype",{writable:!1}),a}(i.Q.wA),H=t(79710),$=t.n(H),W={disabled:"lT52_"};function ee(e){return ee="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},ee(e)}function ne(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,(void 0,r=function(e,n){if("object"!==ee(e)||null===e)return e;var t=e[Symbol.toPrimitive];if(void 0!==t){var o=t.call(e,"string");if("object"!==ee(o))return o;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}(o.key),"symbol"===ee(r)?r:String(r)),o)}var r}function te(e,n){return te=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(e,n){return e.__proto__=n,e},te(e,n)}function oe(e){return oe=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(e){return e.__proto__||Object.getPrototypeOf(e)},oe(e)}var re=function(e){!function(e,n){if("function"!=typeof n&&null!==n)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(n&&n.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),Object.defineProperty(e,"prototype",{writable:!1}),n&&te(e,n)}(u,e);var n,t,i,a,s=(i=u,a=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(e){return!1}}(),function(){var e,n=oe(i);if(a){var t=oe(this).constructor;e=Reflect.construct(n,arguments,t)}else e=n.apply(this,arguments);return function(e,n){if(n&&("object"===ee(n)||"function"==typeof n))return n;if(void 0!==n)throw new TypeError("Derived constructors may only return object or undefined");return function(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}(e)}(this,e)});function u(e){return function(e,n){if(!(e instanceof n))throw new TypeError("Cannot call a class as a function")}(this,u),s.call(this,e)}return n=u,(t=[{key:"name",get:function(){return"EditAdditionalInfoComponent"}},{key:"tagName",get:function(){return"form"}},{key:"lang",get:function(){return"shared.editAdditionalInfo"}},{key:"template",get:function(){return $()}},{key:"className",get:function(){return"edit-additional-info border-top pt-3"}},{key:"events",value:function(){return{submit:function(e){return e.preventDefault()}}}},{key:"regions",value:function(){return{broadcast:{el:".edit-broadcast-region",replaceElement:!0}}}},{key:"behaviors",get:function(){return[{behaviorClass:l.Bp},{behaviorClass:l.fS}]}},{key:"renderEditBroadcast",value:function(){this.showChildView("broadcast",new K({model:this.model,channelName:this.options.channelName,hideToggle:!0,editable:this.options.editable}))}},{key:"viewOptions",value:function(){return{styles:r.extend({},C.Z,W),editable:this.options.editable}}},{key:"onRender",value:function(){this.stickit(),o.Validation.bind(this),this.renderEditBroadcast()}},{key:"onClose",value:function(){this.unstickit(),o.Validation.unbind(this)}}])&&ne(n.prototype,t),Object.defineProperty(n,"prototype",{writable:!1}),u}(i.Q.wA)},72998:function(e,n,t){"use strict";t.d(n,{J:function(){return G}});var o=t(48088),r=t(57857),i=t(31647),l=t(17391),a=t(29625),s=t(48726),u=t(99844),c=t(36022),p=t(48090),d=t(61843),f=t(40622),h=t(99249),m=t(63791),y=t(10101),b=t(88172),g=t(7190),v=t(73519),w=t.n(v),k=t(48242),E=t.n(k),C={button:"pEi0b",svg:"Hg4El",disabled:"q5qSy",seasonContainer:"KfwZK"};function S(e){return S="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},S(e)}function O(e,n){if(!(e instanceof n))throw new TypeError("Cannot call a class as a function")}function P(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,(void 0,r=function(e,n){if("object"!==S(e)||null===e)return e;var t=e[Symbol.toPrimitive];if(void 0!==t){var o=t.call(e,"string");if("object"!==S(o))return o;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}(o.key),"symbol"===S(r)?r:String(r)),o)}var r}function T(e,n,t){return n&&P(e.prototype,n),t&&P(e,t),Object.defineProperty(e,"prototype",{writable:!1}),e}function x(e,n){if("function"!=typeof n&&null!==n)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(n&&n.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),Object.defineProperty(e,"prototype",{writable:!1}),n&&R(e,n)}function R(e,n){return R=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(e,n){return e.__proto__=n,e},R(e,n)}function j(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=I(e);if(n){var r=I(this).constructor;t=Reflect.construct(o,arguments,r)}else t=o.apply(this,arguments);return function(e,n){if(n&&("object"===S(n)||"function"==typeof n))return n;if(void 0!==n)throw new TypeError("Derived constructors may only return object or undefined");return function(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}(e)}(this,t)}}function I(e){return I=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(e){return e.__proto__||Object.getPrototypeOf(e)},I(e)}var D=function(e){x(t,e);var n=j(t);function t(e){var o;return O(this,t),(o=n.call(this,e)).showSpinner=!1,o.disableBtn=!0,o}return T(t,[{key:"initialize",value:function(){this.bindListeners()}},{key:"name",get:function(){return"CreateSeasonComponent"}},{key:"template",get:function(){return w()}},{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:y.Bp},{behaviorClass:y.fS}]}},{key:"bindListeners",value:function(){this.listenTo(this.model,"change",this.onChange),this.listenTo(this.options.channelName,"create:season",this.onCreateSeason),this.listenTo(p.Vk.SERIES,"".concat(p.M_.CREATE_SEASON,":").concat(this.options.seriesId,":sync"),this.onSync)}},{key:"onChange",value:function(){this.disableBtn=!this.model.isValid(),this.renderButton()}},{key:"onCreateSeason",value:function(){this.disableBtn||(this.model.validate(),this.model.isValid()&&(this.showSpinner=!0,this.renderButton(),this.model.set("number",parseInt(this.model.get("number"))),o.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 b.Py({channelName:this.options.channelName,saveEvent:"create:season",extraButtonClass:"btn btn-dark",buttonText:"Create",buttonType:"submit",showSpinner:this.showSpinner,disabled:this.disableBtn,spinnerOptions:{size:d.Ey.Small}}))}},{key:"onRender",value:function(){this.stickit(),this.renderButton()}},{key:"onClose",value:function(){this.unstickit()}}]),t}(i.Q.wA),N=function(e){x(t,e);var n=j(t);function t(e){return O(this,t),n.call(this,e)}return T(t,[{key:"initialize",value:function(){this.model.get("season.id")&&d.yV.setSelected(this.model.get("season.id"),this.collection),this.viewModel=h.r.get("".concat(this.name,":").concat(this.model.get("id"))),this.options.disabled||this.viewModel.addValidation(g.c6)}},{key:"name",get:function(){return"EditSeasonInfoComponent"}},{key:"template",get:function(){return E()}},{key:"className",get:function(){return C.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 .form-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),o.Radio.channel(this.options.channelName).trigger("select:season",t),this.showCreateForm=!1,this.render()}},{key:"onClickRemove",value:function(e){e.stopPropagation(),o.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?r.T.getPhrase(this.lang,"season",{number:e}):"";n&&this.getUI("dropdownBtn").text(n)}else{var t=e&&"-1"!==e?"season":"placeholder";this.getUI("dropdownBtn").text(r.T.getPhrase(this.lang,t,{number:e}))}}},{key:"renderCreate",value:function(){this.showChildView("create",new D({model:this.viewModel,channelName:this.options.channelName,show:this.showCreateForm,seriesId:this.model.get("series.id")}))}},{key:"viewOptions",value:function(){return{styles:C,disabled:this.options.disabled,seasons:this.collection.toJSON(),svgRemove:m.Nj.getSvg(m.vn.Close),showRemoveIcon:!!this.model.get("season.id")&&!this.options.isSuggestEdit}}},{key:"onRender",value:function(){this.renderCreate(),this.setButtonText(this.model.get("season.number"))}}]),t}(i.Q.wA),_=t(37571),B=t.n(_),A=t(45092);function V(e){return V="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},V(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,(void 0,r=function(e,n){if("object"!==V(e)||null===e)return e;var t=e[Symbol.toPrimitive];if(void 0!==t){var o=t.call(e,"string");if("object"!==V(o))return o;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}(o.key),"symbol"===V(r)?r:String(r)),o)}var r}function L(e,n){return L=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(e,n){return e.__proto__=n,e},L(e,n)}function F(e){return F=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(e){return e.__proto__||Object.getPrototypeOf(e)},F(e)}var G=function(e){!function(e,n){if("function"!=typeof n&&null!==n)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(n&&n.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),Object.defineProperty(e,"prototype",{writable:!1}),n&&L(e,n)}(b,e);var n,t,h,m,y=(h=b,m=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(e){return!1}}(),function(){var e,n=F(h);if(m){var t=F(this).constructor;e=Reflect.construct(n,arguments,t)}else e=n.apply(this,arguments);return function(e,n){if(n&&("object"===V(n)||"function"==typeof n))return n;if(void 0!==n)throw new TypeError("Derived constructors may only return object or undefined");return function(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}(e)}(this,e)});function b(e){return function(e,n){if(!(e instanceof n))throw new TypeError("Cannot call a class as a function")}(this,b),y.call(this,e)}return n=b,(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"EditBasicInfoComponent"}},{key:"tagName",get:function(){return"form"}},{key:"template",get:function(){return B()}},{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:"elements",get:function(){return{episodeNumberField:".episode-number",seriesTypeahead:".tt-input"}}},{key:"regions",value:function(){return{description:{el:".description-region",replaceElement:!0},ratings:{el:".ratings-region",replaceElement:!0},series:{el:".edit-series-region",replaceElement:!0},season:{el:".edit-season-region",replaceElement:!0}}}},{key:"appLinks",get:function(){return{".suggest-title":{application:p.OV.LIBRARY_EDITOR,action:p.eX.LibraryEditor.SUGGEST_AN_EDIT,args:[this.model.get("id")],params:{metadata:f.pG.VideoTitle}},".suggest-description":{application:p.OV.LIBRARY_EDITOR,action:p.eX.LibraryEditor.SUGGEST_AN_EDIT,args:[this.model.get("id")],params:{metadata:f.pG.Description}},".suggest-series-title":{application:p.OV.LIBRARY_EDITOR,action:p.eX.LibraryEditor.SUGGEST_AN_EDIT,args:[this.model.get("id")],params:{metadata:f.pG.SeriesTitle}},".suggest-season-number":{application:p.OV.LIBRARY_EDITOR,action:p.eX.LibraryEditor.SUGGEST_AN_EDIT,args:[this.model.get("id")],params:{metadata:f.pG.Season}},".suggest-episode-number":{application:p.OV.LIBRARY_EDITOR,action:p.eX.LibraryEditor.SUGGEST_AN_EDIT,args:[this.model.get("id")],params:{metadata:f.pG.EpisodeNumber}}}}},{key:"bindings",get:function(){return{"[name=name]":{observe:"name",setOptions:{validate:!0}},"[name=description]":{observe:"description",setOptions:{validate:!0}},"[name=episodeNumber]":{observe:"episodeNumber",setOptions:{validate:!0},onSet:function(e){return e?+e:null}}}}},{key:"onSelectSeason",value:function(e){e&&this.getUI("episodeNumberField").focus(),o.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(A.Z.disabled))):(n.removeAttr("disabled"),n.attr("class","form-control"))}},{key:"getTypeaheadConfigs",value:function(){var e=d.MK.getTypeaheadConfig(),n=d.MK.getBloodhoundConfig(),t={filterEmptySeries:!1},o=Object.assign({hideEmptyResults:!0},t),r=Object.assign({newType:p.n8.Series},t),i=Object.assign({newType:p.n8.Series,footerTemplate:l.J.getConfirmSelectionTemplate()},t);return[{name:p.n8.Series,typeaheadConfig:e,bloodhoundConfig:n,options:o},{name:"add-new",typeaheadConfig:e,bloodhoundConfig:n,options:r},{name:"empty-suggestion",typeaheadConfig:e,bloodhoundConfig:n,options:i}]}},{key:"renderSeriesTypeahead",value:function(){var e=this.model.series||new i.Q.Hn;this.showChildView("series",new c.M({model:e,editable:this.options.editable,parentChannelName:this.options.channelName,inputId:"series-search",selectEvent:"select:series",placeholderText:this.options.editable?r.T.getPhrase(this.lang,"searchSeries"):"",typeaheadConfigs:this.getTypeaheadConfigs(),typeaheadOptions:{hint:!1},callbacks:{onRender:l.J.selectFirstResult,onInput:l.J.emitEventOnInput(this.options.channelName,f.NT.DetectInput,"series"),onBlur:l.J.resetAssociationOnBlur(e.toJSON())},removeEvent:"remove:series"}))}},{key:"renderEditSeason",value:function(){var e=this,n=this.model.get("series.seasons")||new a.i,t=new a.i(n.map((function(n){return n.set("displayName",r.T.getPhrase(e.lang,"seasonNumber",{number:n.get("number")}))})));this.showChildView("season",new N({model:this.model,collection:t,channelName:this.options.channelName,disabled:!this.options.editable||this.lockSeasonAndEpisode,isSuggestEdit:!this.options.editable}))}},{key:"renderDescription",value:function(){this.showChildView("description",new u.F({name:"description",class:"form-control ".concat(!this.options.editable&&A.Z.disabled),placeholder:this.options.editable?r.T.getPhrase(this.lang,"descriptionPlaceholder"):"",id:"edit-description",disabled:!this.options.editable}))}},{key:"renderRatings",value:function(){this.showChildView("ratings",new s.R({model:this.model.rating,collection:this.options.ratings,parentChannelName:this.options.channelName,editable:this.options.editable,videoId:this.model.get("id")}))}},{key:"viewOptions",value:function(){return{styles:A.Z,requiredFields:this.options.requiredFields,videoTitlePlaceholder:this.options.editable?r.T.getPhrase(this.lang,"titlePlaceholder"):"",editable:this.options.editable,showingSaveButton:this.options.showingSaveButton,lockEpisodeNumber:this.lockSeasonAndEpisode,episodeNumberPlaceholderText:this.options.editable?r.T.getPhrase(this.lang,"epNumberPlaceholder"):""}}},{key:"onRender",value:function(){this.renderDescription(),this.renderRatings(),this.renderSeriesTypeahead(),this.renderEditSeason(),this.stickit(),o.Validation.bind(this)}},{key:"onDestroy",value:function(){this.unstickit(),o.Validation.unbind(this)}}])&&M(n.prototype,t),Object.defineProperty(n,"prototype",{writable:!1}),b}(i.Q.wA)},95168:function(e,n,t){"use strict";t.d(n,{O:function(){return L}});var o=t(48088),r=t(39479),i=t(57857),l=t(31647),a=t(17391),s=t(63791),u=t(10101),c=t(52092),p=t(84013),d=t(4589),f=t(4228),h=t(36022),m=t(40622),y=t(69369),b=t.n(y);function g(e){return g="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},g(e)}function v(e,n){if(!(e instanceof n))throw new TypeError("Cannot call a class as a function")}function w(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,E(o.key),o)}}function k(e,n,t){return n&&w(e.prototype,n),t&&w(e,t),Object.defineProperty(e,"prototype",{writable:!1}),e}function E(e){var n=function(e,n){if("object"!==g(e)||null===e)return e;var t=e[Symbol.toPrimitive];if(void 0!==t){var o=t.call(e,"string");if("object"!==g(o))return o;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}(e);return"symbol"===g(n)?n:String(n)}function C(e,n){if("function"!=typeof n&&null!==n)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(n&&n.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),Object.defineProperty(e,"prototype",{writable:!1}),n&&S(e,n)}function S(e,n){return S=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(e,n){return e.__proto__=n,e},S(e,n)}function O(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=P(e);if(n){var r=P(this).constructor;t=Reflect.construct(o,arguments,r)}else t=o.apply(this,arguments);return function(e,n){if(n&&("object"===g(n)||"function"==typeof n))return n;if(void 0!==n)throw new TypeError("Derived constructors may only return object or undefined");return function(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}(e)}(this,t)}}function P(e){return P=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(e){return e.__proto__||Object.getPrototypeOf(e)},P(e)}var T=function(e){C(t,e);var n=O(t);function t(e){return v(this,t),n.call(this,e)}return k(t,[{key:"name",get:function(){return"TypeaheadListComponentCollection"}},{key:"childViewOptions",get:function(){return Object.assign({},this.options)}},{key:"childView",get:function(){return x}}]),t}(l.Q.$W),x=function(e){C(t,e);var n=O(t);function t(e){return v(this,t),n.call(this,e)}return k(t,[{key:"name",get:function(){return"TypeaheadListComponent"}},{key:"template",get:function(){return b()}},{key:"modelId",get:function(){return this.model.get("id")||"new-model"}},{key:"bindings",get:function(){return e={},t={observe:"name",setOptions:{validate:!0}},(n=E(n="[name=".concat(this.modelId,"]")))in e?Object.defineProperty(e,n,{value:t,enumerable:!0,configurable:!0,writable:!0}):e[n]=t,e;var e,n,t}},{key:"regions",value:function(){return{typeahead:{el:".typeahead-region",replaceElement:!1}}}},{key:"renderTypeahead",value:function(){this.showChildView("typeahead",new h.M({model:this.model,parentChannelName:this.options.channelName,inputId:this.options.inputId,selectEvent:this.options.selectEvent,typeaheadConfigs:this.options.typeaheadConfig,placeholderText:this.options.editable?this.options.placeholderText:"",callbacks:{onRender:a.J.selectFirstResult,onInput:a.J.emitEventOnInput(this.options.channelName,m.NT.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}(l.Q.wA),R=t(48090),j=t(29457),I=t(3974),D=t(52529),N=t.n(D),_=t(45092);function B(e){return B="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},B(e)}function A(e,n){for(var t=0;t<n.length;t++){var o=n[t];o.enumerable=o.enumerable||!1,o.configurable=!0,"value"in o&&(o.writable=!0),Object.defineProperty(e,(void 0,r=function(e,n){if("object"!==B(e)||null===e)return e;var t=e[Symbol.toPrimitive];if(void 0!==t){var o=t.call(e,"string");if("object"!==B(o))return o;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}(o.key),"symbol"===B(r)?r:String(r)),o)}var r}function V(e,n){return V=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(e,n){return e.__proto__=n,e},V(e,n)}function M(e){return M=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(e){return e.__proto__||Object.getPrototypeOf(e)},M(e)}var L=function(e){!function(e,n){if("function"!=typeof n&&null!==n)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(n&&n.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),Object.defineProperty(e,"prototype",{writable:!1}),n&&V(e,n)}(b,e);var n,t,l,h,y=(l=b,h=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(e){return!1}}(),function(){var e,n=M(l);if(h){var t=M(this).constructor;e=Reflect.construct(n,arguments,t)}else e=n.apply(this,arguments);return function(e,n){if(n&&("object"===B(n)||"function"==typeof n))return n;if(void 0!==n)throw new TypeError("Derived constructors may only return object or undefined");return function(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}(e)}(this,e)});function b(e){return function(e,n){if(!(e instanceof n))throw new TypeError("Cannot call a class as a function")}(this,b),y.call(this,e)}return n=b,(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()}},{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:u.fS},{behaviorClass:u.Bp}]}},{key:"appLinks",get:function(){var e={application:R.OV.LIBRARY_EDITOR,action:R.eX.LibraryEditor.SUGGEST_AN_EDIT,args:[this.model.get("id")]};return{".suggest-production-year":r.extend({},e,{params:{metadata:m.pG.ProductionYear}}),".suggest-distributors":r.extend({},e,{params:{metadata:m.pG.Distributors}}),".suggest-production-companies":r.extend({},e,{params:{metadata:m.pG.ProductionCompanies}}),".suggest-directors":r.extend({},e,{params:{metadata:m.pG.Directors}}),".suggest-producers":r.extend({},e,{params:{metadata:m.pG.Producers}})}}},{key:"onClickAddNewProducer",value:function(){this.expandPersonList(j.Zn.Producer)}},{key:"onClickAddNewDirector",value:function(){this.expandPersonList(j.Zn.Director)}},{key:"onClickAddNewDistributor",value:function(){this.expandPersonList(j.Zn.Distributor)}},{key:"onClickAddNewProductionCompany",value:function(){this.expandPersonList(j.Zn.ProductionCompany)}},{key:"expandPersonList",value:function(e){var n=this.model.get(e);5!==n.length&&n.add({}),this.render()}},{key:"onSelectDistributor",value:function(e){this.onSelect(e,j.Zn.Distributor)}},{key:"onSelectProductionCompany",value:function(e){this.onSelect(e,j.Zn.ProductionCompany)}},{key:"onSelectDirector",value:function(e){this.onSelect(e,j.Zn.Director)}},{key:"onSelectProducer",value:function(e){this.onSelect(e,j.Zn.Producer)}},{key:"onSelect",value:function(e,n){o.Radio.channel(this.options.channelName).trigger("add:".concat(n),e),this.render()}},{key:"onRemoveDistributor",value:function(e){this.onRemove(e,j.Zn.Distributor)}},{key:"onRemoveProductionCompany",value:function(e){this.onRemove(e,j.Zn.ProductionCompany)}},{key:"onRemoveDirector",value:function(e){this.onRemove(e,j.Zn.Director)}},{key:"onRemoveProducer",value:function(e){this.onRemove(e,j.Zn.Producer)}},{key:"onRemove",value:function(e,n){this.model.get(n).remove(e),o.Radio.channel(this.options.channelName).trigger("remove:".concat(n),e),this.render()}},{key:"buildTypeaheadConfig",value:function(e){var n=I.M.getTypeaheadConfig(),t=I.M.getBloodhoundConfig();return[{name:e,typeaheadConfig:n,bloodhoundConfig:t,options:{hideEmptyResults:!0}},{name:"add-new",typeaheadConfig:n,bloodhoundConfig:t,options:{newType:e}},{name:"empty-suggestion",typeaheadConfig:n,bloodhoundConfig:t,options:{newType:e,footerTemplate:a.J.getConfirmSelectionTemplate()}}]}},{key:"allowAdditional",value:function(e){return!!this.options.editable&&this.model.get(e)&&5!==this.model.get(e).length}},{key:"renderDistributors",value:function(){this.showChildView("distributors",new T({collection:this.model.get("distributors"),channelName:this.options.channelName,typeaheadConfig:this.buildTypeaheadConfig(R.n8.Distributors),removeEvent:"remove:distributor",selectEvent:"select:distributor",inputId:"distributor-search",editable:this.options.editable,placeholderText:"Search content distributors",modelType:"distributors"}))}},{key:"renderProductionCompanies",value:function(){this.showChildView("productionCompanies",new T({collection:this.model.get("productionCompanies"),channelName:this.options.channelName,typeaheadConfig:this.buildTypeaheadConfig(R.n8.ProductionCompanies),removeEvent:"remove:production:company",selectEvent:"select:production:company",inputId:"production-company-search",editable:this.options.editable,placeholderText:"Search content production companies",modelType:"productionCompanies"}))}},{key:"renderDirectors",value:function(){this.showChildView("directors",new T({collection:this.model.get("directors"),channelName:this.options.channelName,typeaheadConfig:this.buildTypeaheadConfig(R.n8.Directors),removeEvent:"remove:director",selectEvent:"select:director",inputId:"director-search",editable:this.options.editable,placeholderText:"Search content directors",modelType:"directors"}))}},{key:"renderProducers",value:function(){this.showChildView("producers",new T({collection:this.model.get("producers"),channelName:this.options.channelName,typeaheadConfig:this.buildTypeaheadConfig(R.n8.Producers),removeEvent:"remove:producer",selectEvent:"select:producer",inputId:"producer-search",editable:this.options.editable,placeholderText:"Search content producers",modelType:"producers"}))}},{key:"onBeforeRender",value:function(){this.model.get("distributors")||this.model.set("distributors",new p.n([{}])),this.model.get("productionCompanies")||this.model.set("productionCompanies",new f.h([{}])),this.model.get("directors")||this.model.set("directors",new c.A([{}])),this.model.get("producers")||this.model.set("producers",new d.T([{}])),this.model.get("distributors").length||this.model.get("distributors").add({}),this.model.get("productionCompanies").length||this.model.get("productionCompanies").add({}),this.model.get("directors").length||this.model.get("directors").add({}),this.model.get("producers").length||this.model.get("producers").add({})}},{key:"viewOptions",value:function(){return{styles:_.Z,editable:this.options.editable,productionYearPlaceholderText:this.options.editable?i.T.getPhrase(this.lang,"productionYearPlaceholder"):"",allowAdditionalDirector:this.allowAdditional(j.Zn.Director),allowAdditionalProducer:this.allowAdditional(j.Zn.Producer),allowAdditionalDistributor:this.allowAdditional(j.Zn.Distributor),allowAdditionalProductionCompany:this.allowAdditional(j.Zn.ProductionCompany),infoSvg:s.Nj.getSvg(s.vn.Info)}}},{key:"onRender",value:function(){this.renderDistributors(),this.renderProductionCompanies(),this.renderDirectors(),this.renderProducers(),this.getUI("tooltips").tooltip()}},{key:"onBeforeDestroy",value:function(){this.getUI("tooltips").tooltip("dispose")}}])&&A(n.prototype,t),Object.defineProperty(n,"prototype",{writable:!1}),b}(l.Q.wA)},99844:function(e,n,t){"use strict";t.d(n,{F:function(){return d}});var o=t(39479),r=t(31647),i=t(64154),l=t.n(i),a={resizingTextarea:"hJmNl"};function s(e){return s="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},s(e)}function u(e,n){for(var t=0;t<n.length;t++){var o=n[t];o.enumerable=o.enumerable||!1,o.configurable=!0,"value"in o&&(o.writable=!0),Object.defineProperty(e,(void 0,r=function(e,n){if("object"!==s(e)||null===e)return e;var t=e[Symbol.toPrimitive];if(void 0!==t){var o=t.call(e,"string");if("object"!==s(o))return o;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}(o.key),"symbol"===s(r)?r:String(r)),o)}var r}function c(e,n){return c=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(e,n){return e.__proto__=n,e},c(e,n)}function p(e){return p=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(e){return e.__proto__||Object.getPrototypeOf(e)},p(e)}var d=function(e){!function(e,n){if("function"!=typeof n&&null!==n)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(n&&n.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),Object.defineProperty(e,"prototype",{writable:!1}),n&&c(e,n)}(f,e);var n,t,r,i,d=(r=f,i=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(e){return!1}}(),function(){var e,n=p(r);if(i){var t=p(this).constructor;e=Reflect.construct(n,arguments,t)}else e=n.apply(this,arguments);return function(e,n){if(n&&("object"===s(n)||"function"==typeof n))return n;if(void 0!==n)throw new TypeError("Derived constructors may only return object or undefined");return function(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}(e)}(this,e)});function f(e){return function(e,n){if(!(e instanceof n))throw new TypeError("Cannot call a class as a function")}(this,f),d.call(this,e)}return n=f,(t=[{key:"name",get:function(){return"ResizingTextAreaComponent"}},{key:"template",get:function(){return l()}},{key:"events",value:function(){return{"input .event-selector":"onInput"}}},{key:"onInput",value:function(e){var n=e.target;n.style.height="inherit";var t=window.getComputedStyle(n),o=parseInt(t.getPropertyValue("border-top-width"),10)+parseInt(t.getPropertyValue("padding-top"),10)+n.scrollHeight+parseInt(t.getPropertyValue("padding-bottom"),10)+parseInt(t.getPropertyValue("border-bottom-width"),10);n.style.height=o+"px"}},{key:"viewOptions",value:function(){return o.extend({},this.options,{styles:a})}}])&&u(n.prototype,t),Object.defineProperty(n,"prototype",{writable:!1}),f}(r.Q.wA)},36022:function(e,n,t){"use strict";t.d(n,{M:function(){return g}});var o=t(48088),r=t(39479),i=t(11306),l=t(31647),a=t(17391),s=t(63791),u=t(61843),c=t(94407),p=t.n(c),d={svg:"QbFgf",typeaheadContainer:"Y3ErG",disabled:"VTCM4"};function f(e){return f="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},f(e)}function h(e,n){for(var t=0;t<n.length;t++){var o=n[t];o.enumerable=o.enumerable||!1,o.configurable=!0,"value"in o&&(o.writable=!0),Object.defineProperty(e,m(o.key),o)}}function m(e){var n=function(e,n){if("object"!==f(e)||null===e)return e;var t=e[Symbol.toPrimitive];if(void 0!==t){var o=t.call(e,"string");if("object"!==f(o))return o;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}(e);return"symbol"===f(n)?n:String(n)}function y(e,n){return y=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(e,n){return e.__proto__=n,e},y(e,n)}function b(e){return b=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(e){return e.__proto__||Object.getPrototypeOf(e)},b(e)}var g=function(e){!function(e,n){if("function"!=typeof n&&null!==n)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(n&&n.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),Object.defineProperty(e,"prototype",{writable:!1}),n&&y(e,n)}(w,e);var n,t,c,g,v=(c=w,g=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(e){return!1}}(),function(){var e,n=b(c);if(g){var t=b(this).constructor;e=Reflect.construct(n,arguments,t)}else e=n.apply(this,arguments);return function(e,n){if(n&&("object"===f(n)||"function"==typeof n))return n;if(void 0!==n)throw new TypeError("Derived constructors may only return object or undefined");return function(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}(e)}(this,e)});function w(e){return function(e,n){if(!(e instanceof n))throw new TypeError("Cannot call a class as a function")}(this,w),v.call(this,e)}return n=w,(t=[{key:"name",get:function(){return"SearchTypeaheadComponent"}},{key:"template",get:function(){return p()}},{key:"className",get:function(){return"search-container ".concat(d.typeaheadContainer," mb-2")}},{key:"channelName",get:function(){return u.N0.generateUniqueChannelName(this)}},{key:"elements",get:function(){return{input:"#".concat(this.options.inputId)}}},{key:"defaults",get:function(){return{inputId:"search-typeahead",placeholderText:"Search",stickItProperty:"name",selectEvent:"select:result",additionalClasses:"",editable:!0}}},{key:"events",value:function(){return{submit:"onSubmit","click .remove":"onClickRemove"}}},{key:"initialize",value:function(){this.model||this.options.parentChannelName||l.Q.Ry.throw(new i.H("Either pass a model or a channelName to access the typeahead selection")),this.model||(this.model=new l.Q.Hn),this.options.inputName||(this.options.inputName=this.options.inputId),this.bindListeners()}},{key:"bindListeners",value:function(){this.options.parentChannelName&&(this.parentChannel=o.Radio.channel(this.options.parentChannelName)),this.listenTo(this.channelName,"typeahead:set:input",this.setInput),this.listenTo(this.channelName,"typeahead:clear:input",this.clearInput)}},{key:"bindings",get:function(){var e,n,t;return e={},n="[name=".concat(this.options.inputName,"]"),t={observe:this.options.stickItProperty,setOptions:{validate:!0}},(n=m(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 r.isArray(this.options.typeaheadConfigs)?a.J.getSearchSources(this.options.typeaheadConfigs):a.J.getSearchSources([this.options.typeaheadConfigs])}},{key:"getTypeaheadOptions",value:function(){var e={minLength:1,highlight:!0};return this.options.typeaheadOptions?r.extend({},e,this.options.typeaheadOptions):e}},{key:"getTypeaheadActionOptions",value:function(){var e={clearOnSelect:!1};return r.isObject(this.options.actionOptions)?r.extend({},e,this.options.actionOptions):e}},{key:"bindOptionalCallbacks",value:function(){r.isObject(this.options.callbacks)&&(r.isFunction(this.options.callbacks.onRender)&&this.getUI("input").on("typeahead:render",r.bind(this.options.callbacks.onRender,this)),r.isFunction(this.options.callbacks.onInput)&&this.listenTo(this.model,"change:".concat(this.options.stickItProperty),this.options.callbacks.onInput),r.isFunction(this.options.callbacks.onBlur)&&this.getUI("input").on("blur",r.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",r.bind(this.onTypeaheadSelect,this)),this.bindOptionalCallbacks()}},{key:"toggleRemove",value:function(){this.shouldShowRemove()?this.$el.find(".remove").show():this.$el.find(".remove").hide()}},{key:"shouldShowRemove",value:function(){return!!this.options.editable&&(!!this.options.forceShowRemoveButton||this.options.removeEvent&&!!this.model.get(this.options.stickItProperty))}},{key:"viewOptions",value:function(){return Object.assign(Object.assign({styles:d},this.options),{showRemove:this.shouldShowRemove(),svgRemove:s.Nj.getSvg(s.vn.Close)})}},{key:"onRender",value:function(){var e=this;this.stickit(),this.initTypeahead(),this.initTypeaheadListeners(),o.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(),o.Validation.unbind(this)}}])&&h(n.prototype,t),Object.defineProperty(n,"prototype",{writable:!1}),w}(l.Q.wA)},70550:function(e,n,t){var o=t(32227);e.exports=(o.default||o).template({compiler:[8,">= 4.3.0"],main:function(e,n,t,o,r){e.propertyIsEnumerable;var i,l=e.lambda;return'<span class="svg-container '+e.escapeExpression(l(null!=(i=null!=(i=null!=n?n.options:n)?i.styles:i)?i.clearSvg:i,n))+' clear-button">'+(null!=(i=l(null!=(i=null!=n?n.options:n)?i.svgClear:i,n))?i:"")+"</span>"},useData:!0})},7591:function(e,n,t){var o=t(32227);e.exports=(o.default||o).template({1:function(e,n,t,o,r){e.propertyIsEnumerable;var i,l=e.lambda,a=e.escapeExpression;return' <label for="'+a(l(null!=(i=null!=n?n.options:n)?i.modelAttr:i,n))+'">'+a(l(null!=(i=null!=n?n.options:n)?i.label:i,n))+"</label>\r\n "+(null!=(i=t.unless.call(null!=n?n:e.nullContext||{},null!=(i=null!=n?n.options:n)?i.editable:i,{name:"unless",hash:{},fn:e.program(2,r,0),inverse:e.noop,data:r}))?i:"")+"\r\n"},2:function(e,n,t,o,r){e.propertyIsEnumerable;var i,l=e.escapeExpression;return'<span class="'+l(e.lambda(null!=(i=null!=(i=null!=n?n.options:n)?i.styles:i)?i.suggestEdit:i,n))+'">- <a class="suggest-broadcast-date">'+l((t.lang||n&&n.lang||e.hooks.helperMissing).call(null!=n?n:e.nullContext||{},"suggestEdit",{name:"lang",hash:{},data:r}))+"</a></span>"},4:function(e,n,t,o,r){var i;return e.propertyIsEnumerable,e.escapeExpression(e.lambda(null!=(i=null!=(i=null!=n?n.options:n)?i.styles:i)?i.disabled:i,n))},6:function(e,n,t,o,r){return"disabled"},8:function(e,n,t,o,r){return"cursor-pointer"},compiler:[8,">= 4.3.0"],main:function(e,n,t,o,r){e.propertyIsEnumerable;var i,l=e.lambda,a=e.escapeExpression,s=null!=n?n:e.nullContext||{};return'<div class="'+a(l(null!=(i=null!=(i=null!=n?n.options:n)?i.styles:i)?i.datePicker:i,n))+" "+a(l(null!=(i=null!=(i=null!=n?n.options:n)?i.styles:i)?i.broadcastDate:i,n))+'">\r\n'+(null!=(i=t.if.call(s,null!=(i=null!=n?n.options:n)?i.label:i,{name:"if",hash:{},fn:e.program(1,r,0),inverse:e.noop,data:r}))?i:"")+' <input\r\n name="'+a(l(null!=(i=null!=n?n.options:n)?i.modelAttr:i,n))+'"\r\n class="form-control datetimepicker-input '+a(l(null!=(i=null!=n?n.options:n)?i.instanceClass:i,n))+" "+(null!=(i=t.unless.call(s,null!=(i=null!=n?n.options:n)?i.editable:i,{name:"unless",hash:{},fn:e.program(4,r,0),inverse:e.noop,data:r}))?i:"")+'"\r\n id="'+a(l(null!=(i=null!=n?n.options:n)?i.modelAttr:i,n))+'"\r\n placeholder="'+a(l(null!=(i=null!=n?n.options:n)?i.placeholderText:i,n))+'"\r\n data-bs-toggle="datetimepicker"\r\n data-bs-target=".'+a(l(null!=(i=null!=n?n.options:n)?i.instanceClass:i,n))+'"\r\n autocomplete="off"\r\n '+(null!=(i=t.unless.call(s,null!=(i=null!=n?n.options:n)?i.editable:i,{name:"unless",hash:{},fn:e.program(6,r,0),inverse:e.noop,data:r}))?i:"")+'\r\n />\r\n <span class="clear-button-region clear-svg"></span>\r\n <span class="svg-container '+a(l(null!=(i=null!=(i=null!=n?n.options:n)?i.styles:i)?i.calendarSvg:i,n))+" "+(null!=(i=t.if.call(s,null!=(i=null!=n?n.options:n)?i.editable:i,{name:"if",hash:{},fn:e.program(8,r,0),inverse:e.program(4,r,0),data:r}))?i:"")+'">'+(null!=(i=l(null!=(i=null!=n?n.options:n)?i.svgCalendar:i,n))?i:"")+'</span>\r\n <div class="form-feedback"></div>\r\n</div>'},useData:!0})},79710:function(e,n,t){var o=t(32227);e.exports=(o.default||o).template({compiler:[8,">= 4.3.0"],main:function(e,n,t,o,r){return e.propertyIsEnumerable,"<h5>"+e.escapeExpression((t.lang||n&&n.lang||e.hooks.helperMissing).call(null!=n?n:e.nullContext||{},"heading",{name:"lang",hash:{},data:r}))+'</h5>\r\n<div class="edit-broadcast-region"></div>'},useData:!0})},37571:function(e,n,t){var o=t(32227);e.exports=(o.default||o).template({1:function(e,n,t,o,r){return"d-inline-block"},3:function(e,n,t,o,r){var i;return e.propertyIsEnumerable,e.escapeExpression(e.lambda(null!=(i=null!=(i=null!=n?n.options:n)?i.styles:i)?i.programTitle:i,n))},5:function(e,n,t,o,r){var i;return e.propertyIsEnumerable,'<span class="'+e.escapeExpression(e.lambda(null!=(i=null!=(i=null!=n?n.options:n)?i.styles:i)?i.requiredStar:i,n))+'">*</span>'},7:function(e,n,t,o,r){e.propertyIsEnumerable;var i,l=e.escapeExpression;return'<span class="'+l(e.lambda(null!=(i=null!=(i=null!=n?n.options:n)?i.styles:i)?i.suggestEdit:i,n))+'">- <a class="suggest-title">'+l((t.lang||n&&n.lang||e.hooks.helperMissing).call(null!=n?n:e.nullContext||{},"suggestEdit",{name:"lang",hash:{},data:r}))+"</a></span>"},9:function(e,n,t,o,r){var i;return e.propertyIsEnumerable,e.escapeExpression(e.lambda(null!=(i=null!=(i=null!=n?n.options:n)?i.styles:i)?i.disabled:i,n))},11:function(e,n,t,o,r){return"disabled"},13:function(e,n,t,o,r){var i;return e.propertyIsEnumerable,e.escapeExpression(e.lambda(null!=(i=null!=(i=null!=n?n.options:n)?i.styles:i)?i.seriesTitle:i,n))},15:function(e,n,t,o,r){e.propertyIsEnumerable;var i,l=e.escapeExpression;return'<span class="'+l(e.lambda(null!=(i=null!=(i=null!=n?n.options:n)?i.styles:i)?i.suggestEdit:i,n))+'">- <a class="suggest-series-title">'+l((t.lang||n&&n.lang||e.hooks.helperMissing).call(null!=n?n:e.nullContext||{},"suggestEdit",{name:"lang",hash:{},data:r}))+"</a></span>"},17:function(e,n,t,o,r){var i;return e.propertyIsEnumerable,e.escapeExpression(e.lambda(null!=(i=null!=(i=null!=n?n.options:n)?i.styles:i)?i.seasonNumber:i,n))},19:function(e,n,t,o,r){e.propertyIsEnumerable;var i,l=e.escapeExpression;return'<span class="'+l(e.lambda(null!=(i=null!=(i=null!=n?n.options:n)?i.styles:i)?i.suggestEdit:i,n))+'">- <a class="suggest-season-number">'+l((t.lang||n&&n.lang||e.hooks.helperMissing).call(null!=n?n:e.nullContext||{},"suggestEdit",{name:"lang",hash:{},data:r}))+"</a></span>"},21:function(e,n,t,o,r){var i;return e.propertyIsEnumerable,e.escapeExpression(e.lambda(null!=(i=null!=(i=null!=n?n.options:n)?i.styles:i)?i.episodeNumber:i,n))},23:function(e,n,t,o,r){e.propertyIsEnumerable;var i,l=e.escapeExpression;return'<span class="'+l(e.lambda(null!=(i=null!=(i=null!=n?n.options:n)?i.styles:i)?i.suggestEdit:i,n))+'">- <a class="suggest-episode-number">'+l((t.lang||n&&n.lang||e.hooks.helperMissing).call(null!=n?n:e.nullContext||{},"suggestEdit",{name:"lang",hash:{},data:r}))+"</a></span>"},25:function(e,n,t,o,r){var i;return e.propertyIsEnumerable,e.escapeExpression(e.lambda(null!=(i=null!=(i=null!=n?n.options:n)?i.styles:i)?i.description:i,n))},27:function(e,n,t,o,r){e.propertyIsEnumerable;var i,l=e.escapeExpression;return'<span class="'+l(e.lambda(null!=(i=null!=(i=null!=n?n.options:n)?i.styles:i)?i.suggestEdit:i,n))+'">- <a class="suggest-description">'+l((t.lang||n&&n.lang||e.hooks.helperMissing).call(null!=n?n:e.nullContext||{},"suggestEdit",{name:"lang",hash:{},data:r}))+"</a></span>"},compiler:[8,">= 4.3.0"],main:function(e,n,t,o,r){e.propertyIsEnumerable;var i,l=null!=n?n:e.nullContext||{},a=e.hooks.helperMissing,s=e.escapeExpression;return'<div class="position-relative '+(null!=(i=t.if.call(l,null!=(i=null!=n?n.options:n)?i.showingSaveButton:i,{name:"if",hash:{},fn:e.program(1,r,0),inverse:e.noop,data:r}))?i:"")+'">\r\n <h5 class="d-inline-block">'+s((t.lang||n&&n.lang||a).call(l,"heading",{name:"lang",hash:{},data:r}))+'</h5>\r\n</div>\r\n<div class="form-group '+(null!=(i=t.unless.call(l,null!=(i=null!=n?n.options:n)?i.editable:i,{name:"unless",hash:{},fn:e.program(3,r,0),inverse:e.noop,data:r}))?i:"")+'">\r\n <label for="edit-title">'+s((t.lang||n&&n.lang||a).call(l,"title",{name:"lang",hash:{},data:r}))+(null!=(i=t.if.call(l,null!=(i=null!=(i=null!=n?n.options:n)?i.requiredFields:i)?i.programTitle:i,{name:"if",hash:{},fn:e.program(5,r,0),inverse:e.noop,data:r}))?i:"")+"</label>\r\n "+(null!=(i=t.unless.call(l,null!=(i=null!=n?n.options:n)?i.editable:i,{name:"unless",hash:{},fn:e.program(7,r,0),inverse:e.noop,data:r}))?i:"")+'\r\n <input\r\n name="name"\r\n type="text"\r\n class="form-control '+(null!=(i=t.unless.call(l,null!=(i=null!=n?n.options:n)?i.editable:i,{name:"unless",hash:{},fn:e.program(9,r,0),inverse:e.noop,data:r}))?i:"")+'"\r\n placeholder="'+s((t.lang||n&&n.lang||a).call(l,"titlePlaceholder",{name:"lang",hash:{},data:r}))+'"\r\n id="edit-title"\r\n autocomplete="off"\r\n '+(null!=(i=t.unless.call(l,null!=(i=null!=n?n.options:n)?i.editable:i,{name:"unless",hash:{},fn:e.program(11,r,0),inverse:e.noop,data:r}))?i:"")+'\r\n >\r\n <div class="form-feedback"></div>\r\n</div>\r\n<div class="container-fluid">\r\n <div class="row">\r\n <div class="form-group col-6 p-0 '+(null!=(i=t.unless.call(l,null!=(i=null!=n?n.options:n)?i.editable:i,{name:"unless",hash:{},fn:e.program(13,r,0),inverse:e.noop,data:r}))?i:"")+'">\r\n <label for="edit-title">'+s((t.lang||n&&n.lang||a).call(l,"series",{name:"lang",hash:{},data:r}))+"</label>\r\n "+(null!=(i=t.unless.call(l,null!=(i=null!=n?n.options:n)?i.editable:i,{name:"unless",hash:{},fn:e.program(15,r,0),inverse:e.noop,data:r}))?i:"")+'\r\n <div class="edit-series-region"></div>\r\n <div class="form-feedback"></div>\r\n </div>\r\n <div class="form-group col-3 pe-0 '+(null!=(i=t.unless.call(l,null!=(i=null!=n?n.options:n)?i.editable:i,{name:"unless",hash:{},fn:e.program(17,r,0),inverse:e.noop,data:r}))?i:"")+'">\r\n <label for="edit-season-number">'+s((t.lang||n&&n.lang||a).call(l,"season",{name:"lang",hash:{},data:r}))+"</label>\r\n "+(null!=(i=t.unless.call(l,null!=(i=null!=n?n.options:n)?i.editable:i,{name:"unless",hash:{},fn:e.program(19,r,0),inverse:e.noop,data:r}))?i:"")+'\r\n <div class="edit-season-region"></div>\r\n <div class="form-feedback"></div>\r\n </div>\r\n <div class="form-group col-3 pe-0 '+(null!=(i=t.unless.call(l,null!=(i=null!=n?n.options:n)?i.editable:i,{name:"unless",hash:{},fn:e.program(21,r,0),inverse:e.noop,data:r}))?i:"")+'">\r\n <label for="edit-episode-number">'+s((t.lang||n&&n.lang||a).call(l,"episode",{name:"lang",hash:{},data:r}))+"</label>\r\n "+(null!=(i=t.unless.call(l,null!=(i=null!=n?n.options:n)?i.editable:i,{name:"unless",hash:{},fn:e.program(23,r,0),inverse:e.noop,data:r}))?i:"")+'\r\n <input\r\n name="episodeNumber"\r\n type="number"\r\n class="form-control episode-number '+(null!=(i=t.if.call(l,null!=(i=null!=n?n.options:n)?i.lockEpisodeNumber:i,{name:"if",hash:{},fn:e.program(9,r,0),inverse:e.noop,data:r}))?i:"")+'"\r\n id="edit-episode-number"\r\n placeholder="'+s(e.lambda(null!=(i=null!=n?n.options:n)?i.episodeNumberPlaceholderText:i,n))+'"\r\n autocomplete="off"\r\n min="1"\r\n '+(null!=(i=t.if.call(l,null!=(i=null!=n?n.options:n)?i.lockEpisodeNumber:i,{name:"if",hash:{},fn:e.program(11,r,0),inverse:e.noop,data:r}))?i:"")+'\r\n >\r\n <div class="form-feedback"></div>\r\n </div>\r\n </div>\r\n</div>\r\n<div class="form-group '+(null!=(i=t.unless.call(l,null!=(i=null!=n?n.options:n)?i.editable:i,{name:"unless",hash:{},fn:e.program(25,r,0),inverse:e.noop,data:r}))?i:"")+'">\r\n <label for="edit-description">'+s((t.lang||n&&n.lang||a).call(l,"description",{name:"lang",hash:{},data:r}))+"</label>\r\n "+(null!=(i=t.unless.call(l,null!=(i=null!=n?n.options:n)?i.editable:i,{name:"unless",hash:{},fn:e.program(27,r,0),inverse:e.noop,data:r}))?i:"")+'\r\n <div class="description-region"></div>\r\n <div class="form-feedback"></div>\r\n</div>\r\n<div class="ratings-region"></div>\r\n'},useData:!0})},88764:function(e,n,t){var o=t(32227);e.exports=(o.default||o).template({1:function(e,n,t,o,r){e.propertyIsEnumerable;var i,l=e.escapeExpression;return'<span class="'+l(e.lambda(null!=(i=null!=(i=null!=n?n.options:n)?i.styles:i)?i.suggestEdit:i,n))+'">- <a class="suggest-channel">'+l((t.lang||n&&n.lang||e.hooks.helperMissing).call(null!=n?n:e.nullContext||{},"suggestEdit",{name:"lang",hash:{},data:r}))+"</a></span>"},compiler:[8,">= 4.3.0"],main:function(e,n,t,o,r){e.propertyIsEnumerable;var i,l=e.escapeExpression,a=null!=n?n:e.nullContext||{};return'<div class="container-fluid">\r\n <div class="row">\r\n <div class="form-group col-6 px-0">\r\n <div class="date-broadcast-region"></div>\r\n </div>\r\n <div class="form-group col-6 pe-0 '+l(e.lambda(null!=(i=null!=(i=null!=n?n.options:n)?i.styles:i)?i.channel:i,n))+'">\r\n <label for="channel-search">'+l((t.lang||n&&n.lang||e.hooks.helperMissing).call(a,"channel",{name:"lang",hash:{},data:r}))+"</label>\r\n "+(null!=(i=t.unless.call(a,null!=(i=null!=n?n.options:n)?i.editable:i,{name:"unless",hash:{},fn:e.program(1,r,0),inverse:e.noop,data:r}))?i:"")+'\r\n <div class="channel-search-region"></div>\r\n </div>\r\n </div>\r\n</div>'},useData:!0})},68588:function(e,n,t){var o=t(32227);e.exports=(o.default||o).template({1:function(e,n,t,o,r){e.propertyIsEnumerable;var i,l=null!=n?n:e.nullContext||{};return'<div class="form-group"> \r\n <div class="form-check">\r\n <input\r\n name="toggleBroadcast"\r\n type="checkbox"\r\n class="form-check-input '+(null!=(i=t.unless.call(l,null!=(i=null!=n?n.options:n)?i.editable:i,{name:"unless",hash:{},fn:e.program(2,r,0),inverse:e.noop,data:r}))?i:"")+'"\r\n id="toggle-broadcast"\r\n '+(null!=(i=t.unless.call(l,null!=(i=null!=n?n.options:n)?i.editable:i,{name:"unless",hash:{},fn:e.program(4,r,0),inverse:e.noop,data:r}))?i:"")+'\r\n >\r\n <label class="form-check-label" for="toggle-broadcast">'+e.escapeExpression((t.lang||n&&n.lang||e.hooks.helperMissing).call(l,"tv",{name:"lang",hash:{},data:r}))+"</label>\r\n </div>\r\n</div>\r\n"},2:function(e,n,t,o,r){var i;return e.propertyIsEnumerable,e.escapeExpression(e.lambda(null!=(i=null!=(i=null!=n?n.options:n)?i.styles:i)?i.disabled:i,n))},4:function(e,n,t,o,r){return"disabled"},compiler:[8,">= 4.3.0"],main:function(e,n,t,o,r){var i;return e.propertyIsEnumerable,(null!=(i=t.unless.call(null!=n?n:e.nullContext||{},null!=(i=null!=n?n.options:n)?i.hideToggle:i,{name:"unless",hash:{},fn:e.program(1,r,0),inverse:e.noop,data:r}))?i:"")+'<div class="broadcast-region"></div>\r\n'},useData:!0})},52529:function(e,n,t){var o=t(32227);e.exports=(o.default||o).template({1:function(e,n,t,o,r){var i;return e.propertyIsEnumerable,e.escapeExpression(e.lambda(null!=(i=null!=(i=null!=n?n.options:n)?i.styles:i)?i.productionYear:i,n))},3:function(e,n,t,o,r){e.propertyIsEnumerable;var i,l=e.escapeExpression;return'<span class="'+l(e.lambda(null!=(i=null!=(i=null!=n?n.options:n)?i.styles:i)?i.suggestEdit:i,n))+'">- <a class="suggest-production-year">'+l((t.lang||n&&n.lang||e.hooks.helperMissing).call(null!=n?n:e.nullContext||{},"suggestEdit",{name:"lang",hash:{},data:r}))+"</a></span>"},5:function(e,n,t,o,r){var i;return e.propertyIsEnumerable,e.escapeExpression(e.lambda(null!=(i=null!=(i=null!=n?n.options:n)?i.styles:i)?i.disabled:i,n))},7:function(e,n,t,o,r){return"disabled"},9:function(e,n,t,o,r){var i;return e.propertyIsEnumerable,e.escapeExpression(e.lambda(null!=(i=null!=(i=null!=n?n.options:n)?i.styles:i)?i.productionCompanies:i,n))},11:function(e,n,t,o,r){e.propertyIsEnumerable;var i,l=e.escapeExpression;return'<span class="'+l(e.lambda(null!=(i=null!=(i=null!=n?n.options:n)?i.styles:i)?i.suggestEdit:i,n))+'">- <a class="suggest-production-companies">'+l((t.lang||n&&n.lang||e.hooks.helperMissing).call(null!=n?n:e.nullContext||{},"suggestEdit",{name:"lang",hash:{},data:r}))+"</a></span>"},13:function(e,n,t,o,r){return e.propertyIsEnumerable,' <p class="info-link pb-0 new-production-company">'+e.escapeExpression((t.lang||n&&n.lang||e.hooks.helperMissing).call(null!=n?n:e.nullContext||{},"newProductionCompany",{name:"lang",hash:{},data:r}))+"</p>\r\n"},15:function(e,n,t,o,r){var i;return e.propertyIsEnumerable,e.escapeExpression(e.lambda(null!=(i=null!=(i=null!=n?n.options:n)?i.styles:i)?i.distributors:i,n))},17:function(e,n,t,o,r){e.propertyIsEnumerable;var i,l=e.escapeExpression;return'<span class="'+l(e.lambda(null!=(i=null!=(i=null!=n?n.options:n)?i.styles:i)?i.suggestEdit:i,n))+'">- <a class="suggest-distributors">'+l((t.lang||n&&n.lang||e.hooks.helperMissing).call(null!=n?n:e.nullContext||{},"suggestEdit",{name:"lang",hash:{},data:r}))+"</a></span>"},19:function(e,n,t,o,r){return e.propertyIsEnumerable,' <p class="info-link pb-0 new-distributor">'+e.escapeExpression((t.lang||n&&n.lang||e.hooks.helperMissing).call(null!=n?n:e.nullContext||{},"newDistributor",{name:"lang",hash:{},data:r}))+"</p>\r\n"},21:function(e,n,t,o,r){var i;return e.propertyIsEnumerable,e.escapeExpression(e.lambda(null!=(i=null!=(i=null!=n?n.options:n)?i.styles:i)?i.producers:i,n))},23:function(e,n,t,o,r){e.propertyIsEnumerable;var i,l=e.escapeExpression;return'<span class="'+l(e.lambda(null!=(i=null!=(i=null!=n?n.options:n)?i.styles:i)?i.suggestEdit:i,n))+'">- <a class="suggest-producers">'+l((t.lang||n&&n.lang||e.hooks.helperMissing).call(null!=n?n:e.nullContext||{},"suggestEdit",{name:"lang",hash:{},data:r}))+"</a></span>"},25:function(e,n,t,o,r){return e.propertyIsEnumerable,' <p class="info-link pb-0 new-producer">'+e.escapeExpression((t.lang||n&&n.lang||e.hooks.helperMissing).call(null!=n?n:e.nullContext||{},"newProducer",{name:"lang",hash:{},data:r}))+"</p>\r\n"},27:function(e,n,t,o,r){var i;return e.propertyIsEnumerable,e.escapeExpression(e.lambda(null!=(i=null!=(i=null!=n?n.options:n)?i.styles:i)?i.directors:i,n))},29:function(e,n,t,o,r){e.propertyIsEnumerable;var i,l=e.escapeExpression;return'<span class="'+l(e.lambda(null!=(i=null!=(i=null!=n?n.options:n)?i.styles:i)?i.suggestEdit:i,n))+'">- <a class="suggest-directors">'+l((t.lang||n&&n.lang||e.hooks.helperMissing).call(null!=n?n:e.nullContext||{},"suggestEdit",{name:"lang",hash:{},data:r}))+"</a></span>"},31:function(e,n,t,o,r){return e.propertyIsEnumerable,' <p class="info-link pb-0 new-director">'+e.escapeExpression((t.lang||n&&n.lang||e.hooks.helperMissing).call(null!=n?n:e.nullContext||{},"newDirector",{name:"lang",hash:{},data:r}))+"</p>\r\n"},compiler:[8,">= 4.3.0"],main:function(e,n,t,o,r){e.propertyIsEnumerable;var i,l=null!=n?n:e.nullContext||{},a=e.hooks.helperMissing,s=e.escapeExpression,u=e.lambda;return"<h5>"+s((t.lang||n&&n.lang||a).call(l,"heading",{name:"lang",hash:{},data:r}))+'</h5>\r\n\r\n<div class="container-fluid p-0">\r\n <div class="row">\r\n <div class="form-group col-4 pe-0 '+(null!=(i=t.unless.call(l,null!=(i=null!=n?n.options:n)?i.editable:i,{name:"unless",hash:{},fn:e.program(1,r,0),inverse:e.noop,data:r}))?i:"")+'">\r\n <label for="edit-production-year">'+s((t.lang||n&&n.lang||a).call(l,"productionYear",{name:"lang",hash:{},data:r}))+"</label>\r\n "+(null!=(i=t.unless.call(l,null!=(i=null!=n?n.options:n)?i.editable:i,{name:"unless",hash:{},fn:e.program(3,r,0),inverse:e.noop,data:r}))?i:"")+'\r\n <input\r\n name="productionYear"\r\n type="number"\r\n class="form-control '+(null!=(i=t.unless.call(l,null!=(i=null!=n?n.options:n)?i.editable:i,{name:"unless",hash:{},fn:e.program(5,r,0),inverse:e.noop,data:r}))?i:"")+'"\r\n id="edit-production-year"\r\n placeholder="'+s(u(null!=(i=null!=n?n.options:n)?i.productionYearPlaceholderText:i,n))+'"\r\n autocomplete="off"\r\n '+(null!=(i=t.unless.call(l,null!=(i=null!=n?n.options:n)?i.editable:i,{name:"unless",hash:{},fn:e.program(7,r,0),inverse:e.noop,data:r}))?i:"")+'\r\n >\r\n <div class="form-feedback"></div>\r\n </div>\r\n </div>\r\n\r\n <div class="row">\r\n <div class="form-group col-6 '+(null!=(i=t.unless.call(l,null!=(i=null!=n?n.options:n)?i.editable:i,{name:"unless",hash:{},fn:e.program(9,r,0),inverse:e.noop,data:r}))?i:"")+'">\r\n <label for="production-company-search">\r\n '+s((t.lang||n&&n.lang||a).call(l,"productionCompanies",{name:"lang",hash:{},data:r}))+'\r\n <span class="'+s(u(null!=(i=null!=(i=null!=n?n.options:n)?i.styles:i)?i.infoSvgContainer:i,n))+' info-tooltip" \r\n title="'+s((t.lang||n&&n.lang||a).call(l,"productionCompanyInfo",{name:"lang",hash:{},data:r}))+'"\r\n >'+(null!=(i=u(null!=(i=null!=n?n.options:n)?i.infoSvg:i,n))?i:"")+"</span>\r\n </label>\r\n "+(null!=(i=t.unless.call(l,null!=(i=null!=n?n.options:n)?i.editable:i,{name:"unless",hash:{},fn:e.program(11,r,0),inverse:e.noop,data:r}))?i:"")+'\r\n <div class="production-company-region"></div>\r\n'+(null!=(i=t.if.call(l,null!=(i=null!=n?n.options:n)?i.allowAdditionalProductionCompany:i,{name:"if",hash:{},fn:e.program(13,r,0),inverse:e.noop,data:r}))?i:"")+' </div>\r\n\r\n <div class="form-group col-6 pe-0 '+(null!=(i=t.unless.call(l,null!=(i=null!=n?n.options:n)?i.editable:i,{name:"unless",hash:{},fn:e.program(15,r,0),inverse:e.noop,data:r}))?i:"")+'">\r\n <label for="distributor-search">\r\n '+s((t.lang||n&&n.lang||a).call(l,"distributors",{name:"lang",hash:{},data:r}))+'\r\n <span class="'+s(u(null!=(i=null!=(i=null!=n?n.options:n)?i.styles:i)?i.infoSvgContainer:i,n))+' info-tooltip"\r\n title="'+s((t.lang||n&&n.lang||a).call(l,"distributorInfo",{name:"lang",hash:{},data:r}))+'"\r\n >'+(null!=(i=u(null!=(i=null!=n?n.options:n)?i.infoSvg:i,n))?i:"")+"</span>\r\n </label>\r\n "+(null!=(i=t.unless.call(l,null!=(i=null!=n?n.options:n)?i.editable:i,{name:"unless",hash:{},fn:e.program(17,r,0),inverse:e.noop,data:r}))?i:"")+'\r\n <div class="distributor-region"></div>\r\n'+(null!=(i=t.if.call(l,null!=(i=null!=n?n.options:n)?i.allowAdditionalDistributor:i,{name:"if",hash:{},fn:e.program(19,r,0),inverse:e.noop,data:r}))?i:"")+' </div>\r\n </div>\r\n\r\n <div class="row">\r\n <div class="form-group col-6 '+(null!=(i=t.unless.call(l,null!=(i=null!=n?n.options:n)?i.editable:i,{name:"unless",hash:{},fn:e.program(21,r,0),inverse:e.noop,data:r}))?i:"")+'">\r\n <label for="producer-search">\r\n '+s((t.lang||n&&n.lang||a).call(l,"producers",{name:"lang",hash:{},data:r}))+'\r\n <span class="'+s(u(null!=(i=null!=(i=null!=n?n.options:n)?i.styles:i)?i.infoSvgContainer:i,n))+' info-tooltip"\r\n title="'+s((t.lang||n&&n.lang||a).call(l,"producerInfo",{name:"lang",hash:{},data:r}))+'"\r\n >'+(null!=(i=u(null!=(i=null!=n?n.options:n)?i.infoSvg:i,n))?i:"")+"</span>\r\n </label>\r\n "+(null!=(i=t.unless.call(l,null!=(i=null!=n?n.options:n)?i.editable:i,{name:"unless",hash:{},fn:e.program(23,r,0),inverse:e.noop,data:r}))?i:"")+'\r\n <div class="producers-region"></div>\r\n'+(null!=(i=t.if.call(l,null!=(i=null!=n?n.options:n)?i.allowAdditionalProducer:i,{name:"if",hash:{},fn:e.program(25,r,0),inverse:e.noop,data:r}))?i:"")+' </div>\r\n\r\n <div class="form-group col-6 pe-0 '+(null!=(i=t.unless.call(l,null!=(i=null!=n?n.options:n)?i.editable:i,{name:"unless",hash:{},fn:e.program(27,r,0),inverse:e.noop,data:r}))?i:"")+'">\r\n <label for="director-search">\r\n '+s((t.lang||n&&n.lang||a).call(l,"directors",{name:"lang",hash:{},data:r}))+'\r\n <span class="'+s(u(null!=(i=null!=(i=null!=n?n.options:n)?i.styles:i)?i.infoSvgContainer:i,n))+' info-tooltip"\r\n title="'+s((t.lang||n&&n.lang||a).call(l,"directorInfo",{name:"lang",hash:{},data:r}))+'"\r\n >'+(null!=(i=u(null!=(i=null!=n?n.options:n)?i.infoSvg:i,n))?i:"")+"</span>\r\n </label>\r\n "+(null!=(i=t.unless.call(l,null!=(i=null!=n?n.options:n)?i.editable:i,{name:"unless",hash:{},fn:e.program(29,r,0),inverse:e.noop,data:r}))?i:"")+'\r\n <div class="directors-region"></div>\r\n'+(null!=(i=t.if.call(l,null!=(i=null!=n?n.options:n)?i.allowAdditionalDirector:i,{name:"if",hash:{},fn:e.program(31,r,0),inverse:e.noop,data:r}))?i:"")+" </div>\r\n </div>\r\n</div>"},useData:!0})},73519:function(e,n,t){var o=t(32227);e.exports=(o.default||o).template({1:function(e,n,t,o,r){return'<div class="">\r\n <button class="btn btn-outline-dark create w-100">+ Create a season</button>\r\n</div>\r\n'},3:function(e,n,t,o,r){return'<div class="form-group mb-2">\r\n <input type="number" class="form-control" name="number" min="1" placeholder="Season number">\r\n <div class="form-feedback"></div>\r\n</div>\r\n'},compiler:[8,">= 4.3.0"],main:function(e,n,t,o,r){var i;return e.propertyIsEnumerable,(null!=(i=t.unless.call(null!=n?n:e.nullContext||{},null!=(i=null!=n?n.options:n)?i.show:i,{name:"unless",hash:{},fn:e.program(1,r,0),inverse:e.program(3,r,0),data:r}))?i:"")+'<div class="text-end">\r\n <div class="button-region"></div>\r\n</div>'},useData:!0})},48242:function(e,n,t){var o=t(32227);e.exports=(o.default||o).template({1:function(e,n,t,o,r){var i;return e.propertyIsEnumerable,e.escapeExpression(e.lambda(null!=(i=null!=(i=null!=n?n.options:n)?i.styles:i)?i.disabled:i,n))},3:function(e,n,t,o,r){return"selected"},5:function(e,n,t,o,r){e.propertyIsEnumerable;var i,l=e.lambda,a=e.escapeExpression;return' <option value="'+a(l(null!=n?n.number:n,n))+'" '+(null!=(i=t.if.call(null!=n?n:e.nullContext||{},null!=n?n.selected:n,{name:"if",hash:{},fn:e.program(3,r,0),inverse:e.noop,data:r}))?i:"")+">"+a(l(null!=n?n.displayName:n,n))+"</option>\r\n"},7:function(e,n,t,o,r){e.propertyIsEnumerable;var i,l=e.lambda;return'<span class="svg-container mb-2 '+e.escapeExpression(l(null!=(i=null!=(i=null!=n?n.options:n)?i.styles:i)?i.svg:i,n))+' remove">'+(null!=(i=l(null!=(i=null!=n?n.options:n)?i.svgRemove:i,n))?i:"")+"</span>\r\n"},compiler:[8,">= 4.3.0"],main:function(e,n,t,o,r){e.propertyIsEnumerable;var i,l=e.escapeExpression,a=null!=n?n:e.nullContext||{};return'<div\r\n data-bs-toggle="dropdown"\r\n aria-haspopup="true"\r\n aria-expanded="false"\r\n class="cursor-pointer w-100 dropdown-btn btn btn-link '+l(e.lambda(null!=(i=null!=(i=null!=n?n.options:n)?i.styles:i)?i.button:i,n))+" "+(null!=(i=t.if.call(a,null!=(i=null!=n?n.options:n)?i.disabled:i,{name:"if",hash:{},fn:e.program(1,r,0),inverse:e.noop,data:r}))?i:"")+'"\r\n name="season"\r\n> </div>\r\n<div class="dropdown-menu dropdown-menu-end dropdown-arrow w-100">\r\n <div class="text-center px-2">\r\n <select name="season" class="form-select">\r\n <option value="-1" '+(null!=(i=t.unless.call(a,null!=(i=null!=n?n.options:n)?i.hasSelected:i,{name:"unless",hash:{},fn:e.program(3,r,0),inverse:e.noop,data:r}))?i:"")+">"+l((t.lang||n&&n.lang||e.hooks.helperMissing).call(a,"selectASeason",{name:"lang",hash:{},data:r}))+"</option>\r\n"+(null!=(i=t.each.call(a,null!=(i=null!=n?n.options:n)?i.seasons:i,{name:"each",hash:{},fn:e.program(5,r,0),inverse:e.noop,data:r}))?i:"")+' </select>\r\n </div>\r\n\r\n <div class="dropdown-divider"></div>\r\n\r\n <div class="create-region"></div>\r\n</div>\r\n'+(null!=(i=t.if.call(a,null!=(i=null!=n?n.options:n)?i.showRemoveIcon:i,{name:"if",hash:{},fn:e.program(7,r,0),inverse:e.noop,data:r}))?i:"")},useData:!0})},64154:function(e,n,t){var o=t(32227);e.exports=(o.default||o).template({1:function(e,n,t,o,r){return"required"},3:function(e,n,t,o,r){return"readonly"},5:function(e,n,t,o,r){return"disabled"},compiler:[8,">= 4.3.0"],main:function(e,n,t,o,r){e.propertyIsEnumerable;var i,l=e.lambda,a=e.escapeExpression,s=null!=n?n:e.nullContext||{};return'<textarea\r\n name="'+a(l(null!=(i=null!=n?n.options:n)?i.name:i,n))+'"\r\n id="'+a(l(null!=(i=null!=n?n.options:n)?i.id:i,n))+'"\r\n autocomplete="false"\r\n class="'+a(l(null!=(i=null!=n?n.options:n)?i.class:i,n))+" event-selector "+a(l(null!=(i=null!=(i=null!=n?n.options:n)?i.styles:i)?i.resizingTextarea:i,n))+'"\r\n placeholder="'+a(l(null!=(i=null!=n?n.options:n)?i.placeholder:i,n))+'"\r\n '+(null!=(i=t.if.call(s,null!=(i=null!=n?n.options:n)?i.required:i,{name:"if",hash:{},fn:e.program(1,r,0),inverse:e.noop,data:r}))?i:"")+"\r\n "+(null!=(i=t.if.call(s,null!=(i=null!=n?n.options:n)?i.readonly:i,{name:"if",hash:{},fn:e.program(3,r,0),inverse:e.noop,data:r}))?i:"")+"\r\n "+(null!=(i=t.if.call(s,null!=(i=null!=n?n.options:n)?i.disabled:i,{name:"if",hash:{},fn:e.program(5,r,0),inverse:e.noop,data:r}))?i:"")+"\r\n></textarea>"},useData:!0})},94407:function(e,n,t){var o=t(32227);e.exports=(o.default||o).template({1:function(e,n,t,o,r){var i;return e.propertyIsEnumerable,e.escapeExpression(e.lambda(null!=(i=null!=(i=null!=n?n.options:n)?i.styles:i)?i.disabled:i,n))},3:function(e,n,t,o,r){return"autofocus"},5:function(e,n,t,o,r){return"disabled"},compiler:[8,">= 4.3.0"],main:function(e,n,t,o,r){e.propertyIsEnumerable;var i,l=e.lambda,a=e.escapeExpression,s=null!=n?n:e.nullContext||{};return'<input\r\n name="'+a(l(null!=(i=null!=n?n.options:n)?i.inputName:i,n))+'"\r\n type="text"\r\n class="form-control '+(null!=(i=t.unless.call(s,null!=(i=null!=n?n.options:n)?i.editable:i,{name:"unless",hash:{},fn:e.program(1,r,0),inverse:e.noop,data:r}))?i:"")+" "+a(l(null!=(i=null!=n?n.options:n)?i.additionalClasses:i,n))+'"\r\n id="'+a(l(null!=(i=null!=n?n.options:n)?i.inputId:i,n))+'"\r\n autocomplete="off"\r\n placeholder="'+a(l(null!=(i=null!=n?n.options:n)?i.placeholderText:i,n))+'"\r\n '+(null!=(i=t.if.call(s,null!=(i=null!=n?n.options:n)?i.autofocus:i,{name:"if",hash:{},fn:e.program(3,r,0),inverse:e.noop,data:r}))?i:"")+"\r\n "+(null!=(i=t.unless.call(s,null!=(i=null!=n?n.options:n)?i.editable:i,{name:"unless",hash:{},fn:e.program(5,r,0),inverse:e.noop,data:r}))?i:"")+'\r\n></input>\r\n<span class="svg-container mb-2 '+a(l(null!=(i=null!=(i=null!=n?n.options:n)?i.styles:i)?i.svg:i,n))+' remove" style="display: none;">'+(null!=(i=l(null!=(i=null!=n?n.options:n)?i.svgRemove:i,n))?i:"")+"</span>"},useData:!0})},69369:function(e,n,t){var o=t(32227);e.exports=(o.default||o).template({compiler:[8,">= 4.3.0"],main:function(e,n,t,o,r){var i;return e.propertyIsEnumerable,'<div class="typeahead-region '+e.escapeExpression(e.lambda(null!=(i=null!=(i=null!=n?n.options:n)?i.styles:i)?i.typeahead:i,n))+'"></div>'},useData:!0})}}]);
|
|
1
|
+
(self.webpackChunk_clickview_library_editor=self.webpackChunk_clickview_library_editor||[]).push([[6995],{24184:function(e,n,t){"use strict";t.d(n,{a:function(){return re}});var o=t(48088),r=t(39479),i=t(31647),l=t(10101),a=t(57857),s=t(17391),u=t(33192),c=t(63791),p=t(70550),d=t.n(p),f={clearSvg:"gWA4e"};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},h(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,(void 0,r=function(e,n){if("object"!==h(e)||null===e)return e;var t=e[Symbol.toPrimitive];if(void 0!==t){var o=t.call(e,"string");if("object"!==h(o))return o;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}(o.key),"symbol"===h(r)?r:String(r)),o)}var r}function y(e,n){return y=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(e,n){return e.__proto__=n,e},y(e,n)}function b(e){return b=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(e){return e.__proto__||Object.getPrototypeOf(e)},b(e)}var g=function(e){!function(e,n){if("function"!=typeof n&&null!==n)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(n&&n.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),Object.defineProperty(e,"prototype",{writable:!1}),n&&y(e,n)}(a,e);var n,t,r,i,l=(r=a,i=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(e){return!1}}(),function(){var e,n=b(r);if(i){var t=b(this).constructor;e=Reflect.construct(n,arguments,t)}else e=n.apply(this,arguments);return function(e,n){if(n&&("object"===h(n)||"function"==typeof n))return n;if(void 0!==n)throw new TypeError("Derived constructors may only return object or undefined");return function(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}(e)}(this,e)});function a(e){return function(e,n){if(!(e instanceof n))throw new TypeError("Cannot call a class as a function")}(this,a),l.call(this,e)}return n=a,(t=[{key:"name",get:function(){return"ClearButtonComponent"}},{key:"className",get:function(){return"".concat(f.clearButton)}},{key:"template",get:function(){return d()}},{key:"events",value:function(){return{click:"onClick"}}},{key:"onClick",value:function(){o.Radio.channel(this.options.channelName).trigger("clear:date")}},{key:"onBeforeRender",value:function(){return!!this.options.shouldRender}},{key:"viewOptions",value:function(){return{styles:f,svgClear:c.Nj.getSvg(c.vn.Close)}}}])&&m(n.prototype,t),Object.defineProperty(n,"prototype",{writable:!1}),a}(i.Q.wA),v=t(48090),w=t(40622),k=t(7591),E=t.n(k),C=t(45092),S={previous:"lzgvM",next:"Vxb5b",datePicker:"odbOJ",calendarSvg:"fT6E_",disabled:"nayb_"};function O(e){return O="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},O(e)}function P(e,n,t){return(n=x(n))in e?Object.defineProperty(e,n,{value:t,enumerable:!0,configurable:!0,writable:!0}):e[n]=t,e}function T(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,x(o.key),o)}}function x(e){var n=function(e,n){if("object"!==O(e)||null===e)return e;var t=e[Symbol.toPrimitive];if(void 0!==t){var o=t.call(e,"string");if("object"!==O(o))return o;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}(e);return"symbol"===O(n)?n:String(n)}function R(e,n){return R=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(e,n){return e.__proto__=n,e},R(e,n)}function j(e){return j=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(e){return e.__proto__||Object.getPrototypeOf(e)},j(e)}var I=function(e){!function(e,n){if("function"!=typeof n&&null!==n)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(n&&n.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),Object.defineProperty(e,"prototype",{writable:!1}),n&&R(e,n)}(p,e);var n,t,o,i,s=(o=p,i=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(e){return!1}}(),function(){var e,n=j(o);if(i){var t=j(this).constructor;e=Reflect.construct(n,arguments,t)}else e=n.apply(this,arguments);return function(e,n){if(n&&("object"===O(n)||"function"==typeof n))return n;if(void 0!==n)throw new TypeError("Derived constructors may only return object or undefined");return function(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}(e)}(this,e)});function p(e){return function(e,n){if(!(e instanceof n))throw new TypeError("Cannot call a class as a function")}(this,p),s.call(this,e)}return n=p,(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 E()}},{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:v.OV.LIBRARY_EDITOR,action:v.eX.LibraryEditor.SUGGEST_AN_EDIT,args:[this.model.get("id")],params:{metadata:w.pG.BroadcastDate}}}}},{key:"defaults",get:function(){return{placeholderText:a.T.getPhrase(this.lang,"placeholder"),allowTextInput:!1,allowClearDate:!0,minYear:1900,editable:!0}}},{key:"behaviors",get:function(){return[{behaviorClass:l.fS},{behaviorClass:l.Bp}]}},{key:"bindings",get:function(){var e=this;return P({},"[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 P({"keydown @ui.date":"onKeyDownDate"},"click .".concat(S.calendarSvg),"onClickCalendarIcon")}},{key:"getInstanceClassName",value:function(){return"datetimepicker-".concat(this.cid)}},{key:"initDatePicker",value:function(){this.getUI("date").datetimepicker({format:this.options.displayedTimeFormat,minDate:u().year(this.options.minYear),maxDate:u(),icons:{previous:S.previous,next:S.next}})}},{key:"getFormattedDisplayDate",value:function(e){if(e)return r.isFunction(this.options.formatDisplayDate)?this.options.formatDisplayDate(e):u.utc(e).local().format(this.options.displayedTimeFormat)}},{key:"getFormattedSavedDate",value:function(e){if(e)return r.isFunction(this.options.formatSavedDate)?this.options.formatSavedDate(e):this.options.savedTimeFormat?u.utc(e).format(this.options.savedTimeFormat):u.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(P({},"".concat(this.options.modelAttr),null)),!0)}},{key:"onKeyDownDate",value:function(e){this.options.allowTextInput||e.preventDefault()}},{key:"renderClearDateButton",value:function(){this.showChildView("clearButton",new g({channelName:this.channelName,shouldRender:this.options.allowClearDate&&!!this.model.get("dateBroadcast")}))}},{key:"viewOptions",value:function(){return{styles:r.extend(C.Z,S),label:this.options.label,modelAttr:this.options.modelAttr,instanceClass:this.getInstanceClassName(),placeholderText:this.options.placeholderText,displayedTimeFormat:this.options.displayedTimeFormat,svgCalendar:c.Nj.getSvg(c.vn.Calendar),svgClear:c.Nj.getSvg(c.vn.Close),editable:this.options.editable}}},{key:"onRender",value:function(){this.initDatePicker(),this.renderClearDateButton()}}])&&T(n.prototype,t),Object.defineProperty(n,"prototype",{writable:!1}),p}(i.Q.wA),D=t(36022),N=t(29457),_=t(33469),B=t(3974),A=t(88764),V=t.n(A);function M(e){return M="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},M(e)}function 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,(void 0,r=function(e,n){if("object"!==M(e)||null===e)return e;var t=e[Symbol.toPrimitive];if(void 0!==t){var o=t.call(e,"string");if("object"!==M(o))return o;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}(o.key),"symbol"===M(r)?r:String(r)),o)}var r}function F(e,n){return F=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(e,n){return e.__proto__=n,e},F(e,n)}function G(e){return G=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(e){return e.__proto__||Object.getPrototypeOf(e)},G(e)}var U=function(e){!function(e,n){if("function"!=typeof n&&null!==n)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(n&&n.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),Object.defineProperty(e,"prototype",{writable:!1}),n&&F(e,n)}(l,e);var n,t,o,r,i=(o=l,r=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(e){return!1}}(),function(){var e,n=G(o);if(r){var t=G(this).constructor;e=Reflect.construct(n,arguments,t)}else e=n.apply(this,arguments);return function(e,n){if(n&&("object"===M(n)||"function"==typeof n))return n;if(void 0!==n)throw new TypeError("Derived constructors may only return object or undefined");return function(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}(e)}(this,e)});function l(e){return function(e,n){if(!(e instanceof n))throw new TypeError("Cannot call a class as a function")}(this,l),i.call(this,e)}return n=l,(t=[{key:"name",get:function(){return"EditBroadcastComponent"}},{key:"template",get:function(){return V()}},{key:"lang",get:function(){return"shared.editBroadcast"}},{key:"className",get:function(){return"edit-broadcast"}},{key:"regions",value:function(){return{dateBroadcast:{el:".date-broadcast-region",replaceElement:!0},channelSearch:{el:".channel-search-region",replaceElement:!0}}}},{key:"appLinks",get:function(){return{".suggest-channel":{application:v.OV.LIBRARY_EDITOR,action:v.eX.LibraryEditor.SUGGEST_AN_EDIT,args:[this.model.get("id")],params:{metadata:w.pG.Channel}}}}},{key:"buildTypeaheadConfig",value:function(){return{name:v.n8.ChannelRaw,typeaheadConfig:B.M.getTypeaheadConfig(),bloodhoundConfig:B.M.getBloodhoundConfig()}}},{key:"renderBroadcastDate",value:function(){this.showChildView("dateBroadcast",new I({model:this.model,label:a.T.getPhrase(this.lang,"broadcastDate"),modelAttr:"dateBroadcast",displayedTimeFormat:N.K4.FULL_YEAR,placeholderText:this.options.editable?a.T.getPhrase(this.lang,"selectBroadcastDate"):"",allowClearDate:this.options.editable,editable:this.options.editable}))}},{key:"renderChannelTypeahead",value:function(){this.model.get("channel")||this.model.set("channel",new _.$),this.showChildView("channelSearch",new D.M({model:this.model.get("channel"),parentChannelName:this.options.channelName,inputId:"channel-search",selectEvent:"select:channel",placeholderText:this.options.editable?a.T.getPhrase(this.lang,"searchChannels"):"",typeaheadConfigs:this.buildTypeaheadConfig(),callbacks:{onInput:s.J.emitEventOnInput(this.options.channelName,w.NT.DetectInput,"channel"),onBlur:s.J.resetAssociationOnBlur(this.model.get("channel").toJSON())},editable:this.options.editable,removeEvent:"remove:channel"}))}},{key:"viewOptions",value:function(){return{styles:C.Z,editable:this.options.editable}}},{key:"onRender",value:function(){this.renderBroadcastDate(),this.renderChannelTypeahead()}}])&&L(n.prototype,t),Object.defineProperty(n,"prototype",{writable:!1}),l}(i.Q.wA),Z=t(68588),Y=t.n(Z),J={disabled:"Jh_Ny"};function Q(e){return Q="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},Q(e)}function z(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,(void 0,r=function(e,n){if("object"!==Q(e)||null===e)return e;var t=e[Symbol.toPrimitive];if(void 0!==t){var o=t.call(e,"string");if("object"!==Q(o))return o;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}(o.key),"symbol"===Q(r)?r:String(r)),o)}var r}function q(e,n){return q=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(e,n){return e.__proto__=n,e},q(e,n)}function X(e){return X=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(e){return e.__proto__||Object.getPrototypeOf(e)},X(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}}),Object.defineProperty(e,"prototype",{writable:!1}),n&&q(e,n)}(a,e);var n,t,o,r,i=(o=a,r=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(e){return!1}}(),function(){var e,n=X(o);if(r){var t=X(this).constructor;e=Reflect.construct(n,arguments,t)}else e=n.apply(this,arguments);return function(e,n){if(n&&("object"===Q(n)||"function"==typeof n))return n;if(void 0!==n)throw new TypeError("Derived constructors may only return object or undefined");return function(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}(e)}(this,e)});function a(e){return function(e,n){if(!(e instanceof n))throw new TypeError("Cannot call a class as a function")}(this,a),i.call(this,e)}return n=a,(t=[{key:"name",get:function(){return"ToggleBroadcastComponent"}},{key:"template",get:function(){return Y()}},{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.fS},{behaviorClass:l.Bp}]}},{key:"bindings",get:function(){return{"[name=toggleBroadcast]":{observe:"hasBroadcast"}}}},{key:"initialize",value:function(){this.listenTo(this.model,"change:hasBroadcast",this.render),this.initBroadcast()}},{key:"initBroadcast",value:function(){var e=this.model.get("channel"),n=this.model.get("dateBroadcast")||e&&e.get("id");this.model.set("hasBroadcast",!!n,{silent:!0})}},{key:"renderEditBroadcast",value:function(){this.model.get("hasBroadcast")||this.options.hideToggle?this.showChildView("broadcast",new U({model:this.model,channelName:this.options.channelName,editable:this.options.editable})):this.getRegion("broadcast").empty()}},{key:"viewOptions",value:function(){return Object.assign({styles:J},this.options)}},{key:"onRender",value:function(){this.renderEditBroadcast()}}])&&z(n.prototype,t),Object.defineProperty(n,"prototype",{writable:!1}),a}(i.Q.wA),H=t(79710),$=t.n(H),W={disabled:"lT52_"};function ee(e){return ee="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},ee(e)}function ne(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,(void 0,r=function(e,n){if("object"!==ee(e)||null===e)return e;var t=e[Symbol.toPrimitive];if(void 0!==t){var o=t.call(e,"string");if("object"!==ee(o))return o;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}(o.key),"symbol"===ee(r)?r:String(r)),o)}var r}function te(e,n){return te=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(e,n){return e.__proto__=n,e},te(e,n)}function oe(e){return oe=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(e){return e.__proto__||Object.getPrototypeOf(e)},oe(e)}var re=function(e){!function(e,n){if("function"!=typeof n&&null!==n)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(n&&n.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),Object.defineProperty(e,"prototype",{writable:!1}),n&&te(e,n)}(u,e);var n,t,i,a,s=(i=u,a=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(e){return!1}}(),function(){var e,n=oe(i);if(a){var t=oe(this).constructor;e=Reflect.construct(n,arguments,t)}else e=n.apply(this,arguments);return function(e,n){if(n&&("object"===ee(n)||"function"==typeof n))return n;if(void 0!==n)throw new TypeError("Derived constructors may only return object or undefined");return function(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}(e)}(this,e)});function u(e){return function(e,n){if(!(e instanceof n))throw new TypeError("Cannot call a class as a function")}(this,u),s.call(this,e)}return n=u,(t=[{key:"name",get:function(){return"EditAdditionalInfoComponent"}},{key:"tagName",get:function(){return"form"}},{key:"lang",get:function(){return"shared.editAdditionalInfo"}},{key:"template",get:function(){return $()}},{key:"className",get:function(){return"edit-additional-info border-top pt-3"}},{key:"events",value:function(){return{submit:function(e){return e.preventDefault()}}}},{key:"regions",value:function(){return{broadcast:{el:".edit-broadcast-region",replaceElement:!0}}}},{key:"behaviors",get:function(){return[{behaviorClass:l.Bp},{behaviorClass:l.fS}]}},{key:"renderEditBroadcast",value:function(){this.showChildView("broadcast",new K({model:this.model,channelName:this.options.channelName,hideToggle:!0,editable:this.options.editable}))}},{key:"viewOptions",value:function(){return{styles:r.extend({},C.Z,W),editable:this.options.editable}}},{key:"onRender",value:function(){this.stickit(),o.Validation.bind(this),this.renderEditBroadcast()}},{key:"onClose",value:function(){this.unstickit(),o.Validation.unbind(this)}}])&&ne(n.prototype,t),Object.defineProperty(n,"prototype",{writable:!1}),u}(i.Q.wA)},72998:function(e,n,t){"use strict";t.d(n,{J:function(){return G}});var o=t(48088),r=t(57857),i=t(31647),l=t(17391),a=t(29625),s=t(48726),u=t(99844),c=t(36022),p=t(48090),d=t(61843),f=t(40622),h=t(99249),m=t(63791),y=t(10101),b=t(88172),g=t(7190),v=t(73519),w=t.n(v),k=t(48242),E=t.n(k),C={button:"pEi0b",svg:"Hg4El",disabled:"q5qSy",seasonContainer:"KfwZK"};function S(e){return S="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},S(e)}function O(e,n){if(!(e instanceof n))throw new TypeError("Cannot call a class as a function")}function P(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,(void 0,r=function(e,n){if("object"!==S(e)||null===e)return e;var t=e[Symbol.toPrimitive];if(void 0!==t){var o=t.call(e,"string");if("object"!==S(o))return o;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}(o.key),"symbol"===S(r)?r:String(r)),o)}var r}function T(e,n,t){return n&&P(e.prototype,n),t&&P(e,t),Object.defineProperty(e,"prototype",{writable:!1}),e}function x(e,n){if("function"!=typeof n&&null!==n)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(n&&n.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),Object.defineProperty(e,"prototype",{writable:!1}),n&&R(e,n)}function R(e,n){return R=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(e,n){return e.__proto__=n,e},R(e,n)}function j(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=I(e);if(n){var r=I(this).constructor;t=Reflect.construct(o,arguments,r)}else t=o.apply(this,arguments);return function(e,n){if(n&&("object"===S(n)||"function"==typeof n))return n;if(void 0!==n)throw new TypeError("Derived constructors may only return object or undefined");return function(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}(e)}(this,t)}}function I(e){return I=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(e){return e.__proto__||Object.getPrototypeOf(e)},I(e)}var D=function(e){x(t,e);var n=j(t);function t(e){var o;return O(this,t),(o=n.call(this,e)).showSpinner=!1,o.disableBtn=!0,o}return T(t,[{key:"initialize",value:function(){this.bindListeners()}},{key:"name",get:function(){return"CreateSeasonComponent"}},{key:"template",get:function(){return w()}},{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:y.Bp},{behaviorClass:y.fS}]}},{key:"bindListeners",value:function(){this.listenTo(this.model,"change",this.onChange),this.listenTo(this.options.channelName,"create:season",this.onCreateSeason),this.listenTo(p.Vk.SERIES,"".concat(p.M_.CREATE_SEASON,":").concat(this.options.seriesId,":sync"),this.onSync)}},{key:"onChange",value:function(){this.disableBtn=!this.model.isValid(),this.renderButton()}},{key:"onCreateSeason",value:function(){this.disableBtn||(this.model.validate(),this.model.isValid()&&(this.showSpinner=!0,this.renderButton(),this.model.set("number",parseInt(this.model.get("number"))),o.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 b.Py({channelName:this.options.channelName,saveEvent:"create:season",extraButtonClass:"btn btn-dark",buttonText:"Create",buttonType:"submit",showSpinner:this.showSpinner,disabled:this.disableBtn,spinnerOptions:{size:d.Ey.Small}}))}},{key:"onRender",value:function(){this.stickit(),this.renderButton()}},{key:"onClose",value:function(){this.unstickit()}}]),t}(i.Q.wA),N=function(e){x(t,e);var n=j(t);function t(e){return O(this,t),n.call(this,e)}return T(t,[{key:"initialize",value:function(){this.model.get("season.id")&&d.yV.setSelected(this.model.get("season.id"),this.collection),this.viewModel=h.r.get("".concat(this.name,":").concat(this.model.get("id"))),this.options.disabled||this.viewModel.addValidation(g.c6)}},{key:"name",get:function(){return"EditSeasonInfoComponent"}},{key:"template",get:function(){return E()}},{key:"className",get:function(){return C.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 .form-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),o.Radio.channel(this.options.channelName).trigger("select:season",t),this.showCreateForm=!1,this.render()}},{key:"onClickRemove",value:function(e){e.stopPropagation(),o.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?r.T.getPhrase(this.lang,"season",{number:e}):"";n&&this.getUI("dropdownBtn").text(n)}else{var t=e&&"-1"!==e?"season":"placeholder";this.getUI("dropdownBtn").text(r.T.getPhrase(this.lang,t,{number:e}))}}},{key:"renderCreate",value:function(){this.showChildView("create",new D({model:this.viewModel,channelName:this.options.channelName,show:this.showCreateForm,seriesId:this.model.get("series.id")}))}},{key:"viewOptions",value:function(){return{styles:C,disabled:this.options.disabled,seasons:this.collection.toJSON(),svgRemove:m.Nj.getSvg(m.vn.Close),showRemoveIcon:!!this.model.get("season.id")&&!this.options.isSuggestEdit}}},{key:"onRender",value:function(){this.renderCreate(),this.setButtonText(this.model.get("season.number"))}}]),t}(i.Q.wA),_=t(37571),B=t.n(_),A=t(45092);function V(e){return V="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},V(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,(void 0,r=function(e,n){if("object"!==V(e)||null===e)return e;var t=e[Symbol.toPrimitive];if(void 0!==t){var o=t.call(e,"string");if("object"!==V(o))return o;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}(o.key),"symbol"===V(r)?r:String(r)),o)}var r}function L(e,n){return L=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(e,n){return e.__proto__=n,e},L(e,n)}function F(e){return F=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(e){return e.__proto__||Object.getPrototypeOf(e)},F(e)}var G=function(e){!function(e,n){if("function"!=typeof n&&null!==n)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(n&&n.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),Object.defineProperty(e,"prototype",{writable:!1}),n&&L(e,n)}(b,e);var n,t,h,m,y=(h=b,m=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(e){return!1}}(),function(){var e,n=F(h);if(m){var t=F(this).constructor;e=Reflect.construct(n,arguments,t)}else e=n.apply(this,arguments);return function(e,n){if(n&&("object"===V(n)||"function"==typeof n))return n;if(void 0!==n)throw new TypeError("Derived constructors may only return object or undefined");return function(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}(e)}(this,e)});function b(e){return function(e,n){if(!(e instanceof n))throw new TypeError("Cannot call a class as a function")}(this,b),y.call(this,e)}return n=b,(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"EditBasicInfoComponent"}},{key:"tagName",get:function(){return"form"}},{key:"template",get:function(){return B()}},{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:"elements",get:function(){return{episodeNumberField:".episode-number",seriesTypeahead:".tt-input"}}},{key:"regions",value:function(){return{description:{el:".description-region",replaceElement:!0},ratings:{el:".ratings-region",replaceElement:!0},series:{el:".edit-series-region",replaceElement:!0},season:{el:".edit-season-region",replaceElement:!0}}}},{key:"appLinks",get:function(){return{".suggest-title":{application:p.OV.LIBRARY_EDITOR,action:p.eX.LibraryEditor.SUGGEST_AN_EDIT,args:[this.model.get("id")],params:{metadata:f.pG.VideoTitle}},".suggest-description":{application:p.OV.LIBRARY_EDITOR,action:p.eX.LibraryEditor.SUGGEST_AN_EDIT,args:[this.model.get("id")],params:{metadata:f.pG.Description}},".suggest-series-title":{application:p.OV.LIBRARY_EDITOR,action:p.eX.LibraryEditor.SUGGEST_AN_EDIT,args:[this.model.get("id")],params:{metadata:f.pG.SeriesTitle}},".suggest-season-number":{application:p.OV.LIBRARY_EDITOR,action:p.eX.LibraryEditor.SUGGEST_AN_EDIT,args:[this.model.get("id")],params:{metadata:f.pG.Season}},".suggest-episode-number":{application:p.OV.LIBRARY_EDITOR,action:p.eX.LibraryEditor.SUGGEST_AN_EDIT,args:[this.model.get("id")],params:{metadata:f.pG.EpisodeNumber}}}}},{key:"bindings",get:function(){return{"[name=name]":{observe:"name",setOptions:{validate:!0}},"[name=description]":{observe:"description",setOptions:{validate:!0}},"[name=episodeNumber]":{observe:"episodeNumber",setOptions:{validate:!0},onSet:function(e){return e?+e:null}}}}},{key:"onSelectSeason",value:function(e){e&&this.getUI("episodeNumberField").focus(),o.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(A.Z.disabled))):(n.removeAttr("disabled"),n.attr("class","form-control"))}},{key:"getTypeaheadConfigs",value:function(){var e=d.MK.getTypeaheadConfig(),n=d.MK.getBloodhoundConfig(),t={filterEmptySeries:!1},o=Object.assign({hideEmptyResults:!0},t),r=Object.assign({newType:p.n8.Series},t),i=Object.assign({newType:p.n8.Series,footerTemplate:l.J.getConfirmSelectionTemplate()},t);return[{name:p.n8.Series,typeaheadConfig:e,bloodhoundConfig:n,options:o},{name:"add-new",typeaheadConfig:e,bloodhoundConfig:n,options:r},{name:"empty-suggestion",typeaheadConfig:e,bloodhoundConfig:n,options:i}]}},{key:"renderSeriesTypeahead",value:function(){var e=this.model.series||new i.Q.Hn;this.showChildView("series",new c.M({model:e,editable:this.options.editable,parentChannelName:this.options.channelName,inputId:"series-search",selectEvent:"select:series",placeholderText:this.options.editable?r.T.getPhrase(this.lang,"searchSeries"):"",typeaheadConfigs:this.getTypeaheadConfigs(),typeaheadOptions:{hint:!1},callbacks:{onRender:l.J.selectFirstResult,onInput:l.J.emitEventOnInput(this.options.channelName,f.NT.DetectInput,"series"),onBlur:l.J.resetAssociationOnBlur(e.toJSON())},removeEvent:"remove:series"}))}},{key:"renderEditSeason",value:function(){var e=this,n=this.model.get("series.seasons")||new a.i,t=new a.i(n.map((function(n){return n.set("displayName",r.T.getPhrase(e.lang,"seasonNumber",{number:n.get("number")}))})));this.showChildView("season",new N({model:this.model,collection:t,channelName:this.options.channelName,disabled:!this.options.editable||this.lockSeasonAndEpisode,isSuggestEdit:!this.options.editable}))}},{key:"renderDescription",value:function(){this.showChildView("description",new u.F({name:"description",class:"form-control ".concat(!this.options.editable&&A.Z.disabled),placeholder:this.options.editable?r.T.getPhrase(this.lang,"descriptionPlaceholder"):"",id:"edit-description",disabled:!this.options.editable}))}},{key:"renderRatings",value:function(){this.showChildView("ratings",new s.R({model:this.model.rating,collection:this.options.ratings,parentChannelName:this.options.channelName,editable:this.options.editable,videoId:this.model.get("id")}))}},{key:"viewOptions",value:function(){return{styles:A.Z,requiredFields:this.options.requiredFields,videoTitlePlaceholder:this.options.editable?r.T.getPhrase(this.lang,"titlePlaceholder"):"",editable:this.options.editable,showingSaveButton:this.options.showingSaveButton,lockEpisodeNumber:this.lockSeasonAndEpisode,episodeNumberPlaceholderText:this.options.editable?r.T.getPhrase(this.lang,"epNumberPlaceholder"):""}}},{key:"onRender",value:function(){this.renderDescription(),this.renderRatings(),this.renderSeriesTypeahead(),this.renderEditSeason(),this.stickit(),o.Validation.bind(this)}},{key:"onDestroy",value:function(){this.unstickit(),o.Validation.unbind(this)}}])&&M(n.prototype,t),Object.defineProperty(n,"prototype",{writable:!1}),b}(i.Q.wA)},95168:function(e,n,t){"use strict";t.d(n,{O:function(){return L}});var o=t(48088),r=t(39479),i=t(57857),l=t(31647),a=t(17391),s=t(63791),u=t(10101),c=t(52092),p=t(84013),d=t(4589),f=t(4228),h=t(36022),m=t(40622),y=t(69369),b=t.n(y);function g(e){return g="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},g(e)}function v(e,n){if(!(e instanceof n))throw new TypeError("Cannot call a class as a function")}function w(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,E(o.key),o)}}function k(e,n,t){return n&&w(e.prototype,n),t&&w(e,t),Object.defineProperty(e,"prototype",{writable:!1}),e}function E(e){var n=function(e,n){if("object"!==g(e)||null===e)return e;var t=e[Symbol.toPrimitive];if(void 0!==t){var o=t.call(e,"string");if("object"!==g(o))return o;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}(e);return"symbol"===g(n)?n:String(n)}function C(e,n){if("function"!=typeof n&&null!==n)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(n&&n.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),Object.defineProperty(e,"prototype",{writable:!1}),n&&S(e,n)}function S(e,n){return S=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(e,n){return e.__proto__=n,e},S(e,n)}function O(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=P(e);if(n){var r=P(this).constructor;t=Reflect.construct(o,arguments,r)}else t=o.apply(this,arguments);return function(e,n){if(n&&("object"===g(n)||"function"==typeof n))return n;if(void 0!==n)throw new TypeError("Derived constructors may only return object or undefined");return function(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}(e)}(this,t)}}function P(e){return P=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(e){return e.__proto__||Object.getPrototypeOf(e)},P(e)}var T=function(e){C(t,e);var n=O(t);function t(e){return v(this,t),n.call(this,e)}return k(t,[{key:"name",get:function(){return"TypeaheadListComponentCollection"}},{key:"childViewOptions",get:function(){return Object.assign({},this.options)}},{key:"childView",get:function(){return x}}]),t}(l.Q.$W),x=function(e){C(t,e);var n=O(t);function t(e){return v(this,t),n.call(this,e)}return k(t,[{key:"name",get:function(){return"TypeaheadListComponent"}},{key:"template",get:function(){return b()}},{key:"modelId",get:function(){return this.model.get("id")||"new-model"}},{key:"bindings",get:function(){return e={},t={observe:"name",setOptions:{validate:!0}},(n=E(n="[name=".concat(this.modelId,"]")))in e?Object.defineProperty(e,n,{value:t,enumerable:!0,configurable:!0,writable:!0}):e[n]=t,e;var e,n,t}},{key:"regions",value:function(){return{typeahead:{el:".typeahead-region",replaceElement:!1}}}},{key:"renderTypeahead",value:function(){this.showChildView("typeahead",new h.M({model:this.model,parentChannelName:this.options.channelName,inputId:this.options.inputId,selectEvent:this.options.selectEvent,typeaheadConfigs:this.options.typeaheadConfig,placeholderText:this.options.editable?this.options.placeholderText:"",callbacks:{onRender:a.J.selectFirstResult,onInput:a.J.emitEventOnInput(this.options.channelName,m.NT.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}(l.Q.wA),R=t(48090),j=t(29457),I=t(3974),D=t(52529),N=t.n(D),_=t(45092);function B(e){return B="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},B(e)}function A(e,n){for(var t=0;t<n.length;t++){var o=n[t];o.enumerable=o.enumerable||!1,o.configurable=!0,"value"in o&&(o.writable=!0),Object.defineProperty(e,(void 0,r=function(e,n){if("object"!==B(e)||null===e)return e;var t=e[Symbol.toPrimitive];if(void 0!==t){var o=t.call(e,"string");if("object"!==B(o))return o;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}(o.key),"symbol"===B(r)?r:String(r)),o)}var r}function V(e,n){return V=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(e,n){return e.__proto__=n,e},V(e,n)}function M(e){return M=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(e){return e.__proto__||Object.getPrototypeOf(e)},M(e)}var L=function(e){!function(e,n){if("function"!=typeof n&&null!==n)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(n&&n.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),Object.defineProperty(e,"prototype",{writable:!1}),n&&V(e,n)}(b,e);var n,t,l,h,y=(l=b,h=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(e){return!1}}(),function(){var e,n=M(l);if(h){var t=M(this).constructor;e=Reflect.construct(n,arguments,t)}else e=n.apply(this,arguments);return function(e,n){if(n&&("object"===B(n)||"function"==typeof n))return n;if(void 0!==n)throw new TypeError("Derived constructors may only return object or undefined");return function(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}(e)}(this,e)});function b(e){return function(e,n){if(!(e instanceof n))throw new TypeError("Cannot call a class as a function")}(this,b),y.call(this,e)}return n=b,(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()}},{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:u.fS},{behaviorClass:u.Bp}]}},{key:"appLinks",get:function(){var e={application:R.OV.LIBRARY_EDITOR,action:R.eX.LibraryEditor.SUGGEST_AN_EDIT,args:[this.model.get("id")]};return{".suggest-production-year":r.extend({},e,{params:{metadata:m.pG.ProductionYear}}),".suggest-distributors":r.extend({},e,{params:{metadata:m.pG.Distributors}}),".suggest-production-companies":r.extend({},e,{params:{metadata:m.pG.ProductionCompanies}}),".suggest-directors":r.extend({},e,{params:{metadata:m.pG.Directors}}),".suggest-producers":r.extend({},e,{params:{metadata:m.pG.Producers}})}}},{key:"onClickAddNewProducer",value:function(){this.expandPersonList(j.Zn.Producer)}},{key:"onClickAddNewDirector",value:function(){this.expandPersonList(j.Zn.Director)}},{key:"onClickAddNewDistributor",value:function(){this.expandPersonList(j.Zn.Distributor)}},{key:"onClickAddNewProductionCompany",value:function(){this.expandPersonList(j.Zn.ProductionCompany)}},{key:"expandPersonList",value:function(e){var n=this.model.get(e);5!==n.length&&n.add({}),this.render()}},{key:"onSelectDistributor",value:function(e){this.onSelect(e,j.Zn.Distributor)}},{key:"onSelectProductionCompany",value:function(e){this.onSelect(e,j.Zn.ProductionCompany)}},{key:"onSelectDirector",value:function(e){this.onSelect(e,j.Zn.Director)}},{key:"onSelectProducer",value:function(e){this.onSelect(e,j.Zn.Producer)}},{key:"onSelect",value:function(e,n){o.Radio.channel(this.options.channelName).trigger("add:".concat(n),e),this.render()}},{key:"onRemoveDistributor",value:function(e){this.onRemove(e,j.Zn.Distributor)}},{key:"onRemoveProductionCompany",value:function(e){this.onRemove(e,j.Zn.ProductionCompany)}},{key:"onRemoveDirector",value:function(e){this.onRemove(e,j.Zn.Director)}},{key:"onRemoveProducer",value:function(e){this.onRemove(e,j.Zn.Producer)}},{key:"onRemove",value:function(e,n){this.model.get(n).remove(e),o.Radio.channel(this.options.channelName).trigger("remove:".concat(n),e),this.render()}},{key:"buildTypeaheadConfig",value:function(e){var n=I.M.getTypeaheadConfig(),t=I.M.getBloodhoundConfig();return[{name:e,typeaheadConfig:n,bloodhoundConfig:t,options:{hideEmptyResults:!0}},{name:"add-new",typeaheadConfig:n,bloodhoundConfig:t,options:{newType:e}},{name:"empty-suggestion",typeaheadConfig:n,bloodhoundConfig:t,options:{newType:e,footerTemplate:a.J.getConfirmSelectionTemplate()}}]}},{key:"allowAdditional",value:function(e){return!!this.options.editable&&this.model.get(e)&&5!==this.model.get(e).length}},{key:"renderDistributors",value:function(){this.showChildView("distributors",new T({collection:this.model.get("distributors"),channelName:this.options.channelName,typeaheadConfig:this.buildTypeaheadConfig(R.n8.Distributors),removeEvent:"remove:distributor",selectEvent:"select:distributor",inputId:"distributor-search",editable:this.options.editable,placeholderText:"Search content distributors",modelType:"distributors"}))}},{key:"renderProductionCompanies",value:function(){this.showChildView("productionCompanies",new T({collection:this.model.get("productionCompanies"),channelName:this.options.channelName,typeaheadConfig:this.buildTypeaheadConfig(R.n8.ProductionCompanies),removeEvent:"remove:production:company",selectEvent:"select:production:company",inputId:"production-company-search",editable:this.options.editable,placeholderText:"Search content production companies",modelType:"productionCompanies"}))}},{key:"renderDirectors",value:function(){this.showChildView("directors",new T({collection:this.model.get("directors"),channelName:this.options.channelName,typeaheadConfig:this.buildTypeaheadConfig(R.n8.Directors),removeEvent:"remove:director",selectEvent:"select:director",inputId:"director-search",editable:this.options.editable,placeholderText:"Search content directors",modelType:"directors"}))}},{key:"renderProducers",value:function(){this.showChildView("producers",new T({collection:this.model.get("producers"),channelName:this.options.channelName,typeaheadConfig:this.buildTypeaheadConfig(R.n8.Producers),removeEvent:"remove:producer",selectEvent:"select:producer",inputId:"producer-search",editable:this.options.editable,placeholderText:"Search content producers",modelType:"producers"}))}},{key:"onBeforeRender",value:function(){this.model.get("distributors")||this.model.set("distributors",new p.n([{}])),this.model.get("productionCompanies")||this.model.set("productionCompanies",new f.h([{}])),this.model.get("directors")||this.model.set("directors",new c.A([{}])),this.model.get("producers")||this.model.set("producers",new d.T([{}])),this.model.get("distributors").length||this.model.get("distributors").add({}),this.model.get("productionCompanies").length||this.model.get("productionCompanies").add({}),this.model.get("directors").length||this.model.get("directors").add({}),this.model.get("producers").length||this.model.get("producers").add({})}},{key:"viewOptions",value:function(){return{styles:_.Z,editable:this.options.editable,productionYearPlaceholderText:this.options.editable?i.T.getPhrase(this.lang,"productionYearPlaceholder"):"",allowAdditionalDirector:this.allowAdditional(j.Zn.Director),allowAdditionalProducer:this.allowAdditional(j.Zn.Producer),allowAdditionalDistributor:this.allowAdditional(j.Zn.Distributor),allowAdditionalProductionCompany:this.allowAdditional(j.Zn.ProductionCompany),infoSvg:s.Nj.getSvg(s.vn.Info)}}},{key:"onRender",value:function(){this.renderDistributors(),this.renderProductionCompanies(),this.renderDirectors(),this.renderProducers(),this.getUI("tooltips").tooltip()}},{key:"onBeforeDestroy",value:function(){this.getUI("tooltips").tooltip("dispose")}}])&&A(n.prototype,t),Object.defineProperty(n,"prototype",{writable:!1}),b}(l.Q.wA)},99844:function(e,n,t){"use strict";t.d(n,{F:function(){return d}});var o=t(39479),r=t(31647),i=t(64154),l=t.n(i),a={resizingTextarea:"hJmNl"};function s(e){return s="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},s(e)}function u(e,n){for(var t=0;t<n.length;t++){var o=n[t];o.enumerable=o.enumerable||!1,o.configurable=!0,"value"in o&&(o.writable=!0),Object.defineProperty(e,(void 0,r=function(e,n){if("object"!==s(e)||null===e)return e;var t=e[Symbol.toPrimitive];if(void 0!==t){var o=t.call(e,"string");if("object"!==s(o))return o;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}(o.key),"symbol"===s(r)?r:String(r)),o)}var r}function c(e,n){return c=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(e,n){return e.__proto__=n,e},c(e,n)}function p(e){return p=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(e){return e.__proto__||Object.getPrototypeOf(e)},p(e)}var d=function(e){!function(e,n){if("function"!=typeof n&&null!==n)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(n&&n.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),Object.defineProperty(e,"prototype",{writable:!1}),n&&c(e,n)}(f,e);var n,t,r,i,d=(r=f,i=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(e){return!1}}(),function(){var e,n=p(r);if(i){var t=p(this).constructor;e=Reflect.construct(n,arguments,t)}else e=n.apply(this,arguments);return function(e,n){if(n&&("object"===s(n)||"function"==typeof n))return n;if(void 0!==n)throw new TypeError("Derived constructors may only return object or undefined");return function(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}(e)}(this,e)});function f(e){return function(e,n){if(!(e instanceof n))throw new TypeError("Cannot call a class as a function")}(this,f),d.call(this,e)}return n=f,(t=[{key:"name",get:function(){return"ResizingTextAreaComponent"}},{key:"template",get:function(){return l()}},{key:"events",value:function(){return{"input .event-selector":"onInput"}}},{key:"onInput",value:function(e){var n=e.target;n.style.height="inherit";var t=window.getComputedStyle(n),o=parseInt(t.getPropertyValue("border-top-width"),10)+parseInt(t.getPropertyValue("padding-top"),10)+n.scrollHeight+parseInt(t.getPropertyValue("padding-bottom"),10)+parseInt(t.getPropertyValue("border-bottom-width"),10);n.style.height=o+"px"}},{key:"viewOptions",value:function(){return o.extend({},this.options,{styles:a})}}])&&u(n.prototype,t),Object.defineProperty(n,"prototype",{writable:!1}),f}(r.Q.wA)},36022:function(e,n,t){"use strict";t.d(n,{M:function(){return g}});var o=t(48088),r=t(39479),i=t(11306),l=t(31647),a=t(17391),s=t(63791),u=t(61843),c=t(94407),p=t.n(c),d={svg:"QbFgf",typeaheadContainer:"Y3ErG",disabled:"VTCM4"};function f(e){return f="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},f(e)}function h(e,n){for(var t=0;t<n.length;t++){var o=n[t];o.enumerable=o.enumerable||!1,o.configurable=!0,"value"in o&&(o.writable=!0),Object.defineProperty(e,m(o.key),o)}}function m(e){var n=function(e,n){if("object"!==f(e)||null===e)return e;var t=e[Symbol.toPrimitive];if(void 0!==t){var o=t.call(e,"string");if("object"!==f(o))return o;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}(e);return"symbol"===f(n)?n:String(n)}function y(e,n){return y=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(e,n){return e.__proto__=n,e},y(e,n)}function b(e){return b=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(e){return e.__proto__||Object.getPrototypeOf(e)},b(e)}var g=function(e){!function(e,n){if("function"!=typeof n&&null!==n)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(n&&n.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),Object.defineProperty(e,"prototype",{writable:!1}),n&&y(e,n)}(w,e);var n,t,c,g,v=(c=w,g=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(e){return!1}}(),function(){var e,n=b(c);if(g){var t=b(this).constructor;e=Reflect.construct(n,arguments,t)}else e=n.apply(this,arguments);return function(e,n){if(n&&("object"===f(n)||"function"==typeof n))return n;if(void 0!==n)throw new TypeError("Derived constructors may only return object or undefined");return function(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}(e)}(this,e)});function w(e){return function(e,n){if(!(e instanceof n))throw new TypeError("Cannot call a class as a function")}(this,w),v.call(this,e)}return n=w,(t=[{key:"name",get:function(){return"SearchTypeaheadComponent"}},{key:"template",get:function(){return p()}},{key:"className",get:function(){return"search-container ".concat(d.typeaheadContainer," mb-2")}},{key:"channelName",get:function(){return u.N0.generateUniqueChannelName(this)}},{key:"elements",get:function(){return{input:"#".concat(this.options.inputId)}}},{key:"defaults",get:function(){return{inputId:"search-typeahead",placeholderText:"Search",stickItProperty:"name",selectEvent:"select:result",additionalClasses:"",editable:!0}}},{key:"events",value:function(){return{submit:"onSubmit","click .remove":"onClickRemove"}}},{key:"initialize",value:function(){this.model||this.options.parentChannelName||l.Q.Ry.throw(new i.H("Either pass a model or a channelName to access the typeahead selection")),this.model||(this.model=new l.Q.Hn),this.options.inputName||(this.options.inputName=this.options.inputId),this.bindListeners()}},{key:"bindListeners",value:function(){this.options.parentChannelName&&(this.parentChannel=o.Radio.channel(this.options.parentChannelName)),this.listenTo(this.channelName,"typeahead:set:input",this.setInput),this.listenTo(this.channelName,"typeahead:clear:input",this.clearInput)}},{key:"bindings",get:function(){var e,n,t;return e={},n="[name=".concat(this.options.inputName,"]"),t={observe:this.options.stickItProperty,setOptions:{validate:!0}},(n=m(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 r.isArray(this.options.typeaheadConfigs)?a.J.getSearchSources(this.options.typeaheadConfigs):a.J.getSearchSources([this.options.typeaheadConfigs])}},{key:"getTypeaheadOptions",value:function(){var e={minLength:1,highlight:!0};return this.options.typeaheadOptions?r.extend({},e,this.options.typeaheadOptions):e}},{key:"getTypeaheadActionOptions",value:function(){var e={clearOnSelect:!1};return r.isObject(this.options.actionOptions)?r.extend({},e,this.options.actionOptions):e}},{key:"bindOptionalCallbacks",value:function(){r.isObject(this.options.callbacks)&&(r.isFunction(this.options.callbacks.onRender)&&this.getUI("input").on("typeahead:render",r.bind(this.options.callbacks.onRender,this)),r.isFunction(this.options.callbacks.onInput)&&this.listenTo(this.model,"change:".concat(this.options.stickItProperty),this.options.callbacks.onInput),r.isFunction(this.options.callbacks.onBlur)&&this.getUI("input").on("blur",r.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",r.bind(this.onTypeaheadSelect,this)),this.bindOptionalCallbacks()}},{key:"toggleRemove",value:function(){this.shouldShowRemove()?this.$el.find(".remove").show():this.$el.find(".remove").hide()}},{key:"shouldShowRemove",value:function(){return!!this.options.editable&&(!!this.options.forceShowRemoveButton||this.options.removeEvent&&!!this.model.get(this.options.stickItProperty))}},{key:"viewOptions",value:function(){return Object.assign(Object.assign({styles:d},this.options),{showRemove:this.shouldShowRemove(),svgRemove:s.Nj.getSvg(s.vn.Close)})}},{key:"onRender",value:function(){var e=this;this.stickit(),this.initTypeahead(),this.initTypeaheadListeners(),o.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(),o.Validation.unbind(this)}}])&&h(n.prototype,t),Object.defineProperty(n,"prototype",{writable:!1}),w}(l.Q.wA)},70550:function(e,n,t){var o=t(32227);e.exports=(o.default||o).template({compiler:[8,">= 4.3.0"],main:function(e,n,t,o,r){e.propertyIsEnumerable;var i,l=e.lambda;return'<span class="svg-container '+e.escapeExpression(l(null!=(i=null!=(i=null!=n?n.options:n)?i.styles:i)?i.clearSvg:i,n))+' clear-button">'+(null!=(i=l(null!=(i=null!=n?n.options:n)?i.svgClear:i,n))?i:"")+"</span>"},useData:!0})},7591:function(e,n,t){var o=t(32227);e.exports=(o.default||o).template({1:function(e,n,t,o,r){e.propertyIsEnumerable;var i,l=e.lambda,a=e.escapeExpression;return' <label for="'+a(l(null!=(i=null!=n?n.options:n)?i.modelAttr:i,n))+'">'+a(l(null!=(i=null!=n?n.options:n)?i.label:i,n))+"</label>\n "+(null!=(i=t.unless.call(null!=n?n:e.nullContext||{},null!=(i=null!=n?n.options:n)?i.editable:i,{name:"unless",hash:{},fn:e.program(2,r,0),inverse:e.noop,data:r}))?i:"")+"\n"},2:function(e,n,t,o,r){e.propertyIsEnumerable;var i,l=e.escapeExpression;return'<span class="'+l(e.lambda(null!=(i=null!=(i=null!=n?n.options:n)?i.styles:i)?i.suggestEdit:i,n))+'">- <a class="suggest-broadcast-date">'+l((t.lang||n&&n.lang||e.hooks.helperMissing).call(null!=n?n:e.nullContext||{},"suggestEdit",{name:"lang",hash:{},data:r}))+"</a></span>"},4:function(e,n,t,o,r){var i;return e.propertyIsEnumerable,e.escapeExpression(e.lambda(null!=(i=null!=(i=null!=n?n.options:n)?i.styles:i)?i.disabled:i,n))},6:function(e,n,t,o,r){return"disabled"},8:function(e,n,t,o,r){return"cursor-pointer"},compiler:[8,">= 4.3.0"],main:function(e,n,t,o,r){e.propertyIsEnumerable;var i,l=e.lambda,a=e.escapeExpression,s=null!=n?n:e.nullContext||{};return'<div class="'+a(l(null!=(i=null!=(i=null!=n?n.options:n)?i.styles:i)?i.datePicker:i,n))+" "+a(l(null!=(i=null!=(i=null!=n?n.options:n)?i.styles:i)?i.broadcastDate:i,n))+'">\n'+(null!=(i=t.if.call(s,null!=(i=null!=n?n.options:n)?i.label:i,{name:"if",hash:{},fn:e.program(1,r,0),inverse:e.noop,data:r}))?i:"")+' <input\n name="'+a(l(null!=(i=null!=n?n.options:n)?i.modelAttr:i,n))+'"\n class="form-control datetimepicker-input '+a(l(null!=(i=null!=n?n.options:n)?i.instanceClass:i,n))+" "+(null!=(i=t.unless.call(s,null!=(i=null!=n?n.options:n)?i.editable:i,{name:"unless",hash:{},fn:e.program(4,r,0),inverse:e.noop,data:r}))?i:"")+'"\n id="'+a(l(null!=(i=null!=n?n.options:n)?i.modelAttr:i,n))+'"\n placeholder="'+a(l(null!=(i=null!=n?n.options:n)?i.placeholderText:i,n))+'"\n data-bs-toggle="datetimepicker"\n data-bs-target=".'+a(l(null!=(i=null!=n?n.options:n)?i.instanceClass:i,n))+'"\n autocomplete="off"\n '+(null!=(i=t.unless.call(s,null!=(i=null!=n?n.options:n)?i.editable:i,{name:"unless",hash:{},fn:e.program(6,r,0),inverse:e.noop,data:r}))?i:"")+'\n />\n <span class="clear-button-region clear-svg"></span>\n <span class="svg-container '+a(l(null!=(i=null!=(i=null!=n?n.options:n)?i.styles:i)?i.calendarSvg:i,n))+" "+(null!=(i=t.if.call(s,null!=(i=null!=n?n.options:n)?i.editable:i,{name:"if",hash:{},fn:e.program(8,r,0),inverse:e.program(4,r,0),data:r}))?i:"")+'">'+(null!=(i=l(null!=(i=null!=n?n.options:n)?i.svgCalendar:i,n))?i:"")+'</span>\n <div class="form-feedback"></div>\n</div>'},useData:!0})},79710:function(e,n,t){var o=t(32227);e.exports=(o.default||o).template({compiler:[8,">= 4.3.0"],main:function(e,n,t,o,r){return e.propertyIsEnumerable,"<h5>"+e.escapeExpression((t.lang||n&&n.lang||e.hooks.helperMissing).call(null!=n?n:e.nullContext||{},"heading",{name:"lang",hash:{},data:r}))+'</h5>\n<div class="edit-broadcast-region"></div>'},useData:!0})},37571:function(e,n,t){var o=t(32227);e.exports=(o.default||o).template({1:function(e,n,t,o,r){return"d-inline-block"},3:function(e,n,t,o,r){var i;return e.propertyIsEnumerable,e.escapeExpression(e.lambda(null!=(i=null!=(i=null!=n?n.options:n)?i.styles:i)?i.programTitle:i,n))},5:function(e,n,t,o,r){var i;return e.propertyIsEnumerable,'<span class="'+e.escapeExpression(e.lambda(null!=(i=null!=(i=null!=n?n.options:n)?i.styles:i)?i.requiredStar:i,n))+'">*</span>'},7:function(e,n,t,o,r){e.propertyIsEnumerable;var i,l=e.escapeExpression;return'<span class="'+l(e.lambda(null!=(i=null!=(i=null!=n?n.options:n)?i.styles:i)?i.suggestEdit:i,n))+'">- <a class="suggest-title">'+l((t.lang||n&&n.lang||e.hooks.helperMissing).call(null!=n?n:e.nullContext||{},"suggestEdit",{name:"lang",hash:{},data:r}))+"</a></span>"},9:function(e,n,t,o,r){var i;return e.propertyIsEnumerable,e.escapeExpression(e.lambda(null!=(i=null!=(i=null!=n?n.options:n)?i.styles:i)?i.disabled:i,n))},11:function(e,n,t,o,r){return"disabled"},13:function(e,n,t,o,r){var i;return e.propertyIsEnumerable,e.escapeExpression(e.lambda(null!=(i=null!=(i=null!=n?n.options:n)?i.styles:i)?i.seriesTitle:i,n))},15:function(e,n,t,o,r){e.propertyIsEnumerable;var i,l=e.escapeExpression;return'<span class="'+l(e.lambda(null!=(i=null!=(i=null!=n?n.options:n)?i.styles:i)?i.suggestEdit:i,n))+'">- <a class="suggest-series-title">'+l((t.lang||n&&n.lang||e.hooks.helperMissing).call(null!=n?n:e.nullContext||{},"suggestEdit",{name:"lang",hash:{},data:r}))+"</a></span>"},17:function(e,n,t,o,r){var i;return e.propertyIsEnumerable,e.escapeExpression(e.lambda(null!=(i=null!=(i=null!=n?n.options:n)?i.styles:i)?i.seasonNumber:i,n))},19:function(e,n,t,o,r){e.propertyIsEnumerable;var i,l=e.escapeExpression;return'<span class="'+l(e.lambda(null!=(i=null!=(i=null!=n?n.options:n)?i.styles:i)?i.suggestEdit:i,n))+'">- <a class="suggest-season-number">'+l((t.lang||n&&n.lang||e.hooks.helperMissing).call(null!=n?n:e.nullContext||{},"suggestEdit",{name:"lang",hash:{},data:r}))+"</a></span>"},21:function(e,n,t,o,r){var i;return e.propertyIsEnumerable,e.escapeExpression(e.lambda(null!=(i=null!=(i=null!=n?n.options:n)?i.styles:i)?i.episodeNumber:i,n))},23:function(e,n,t,o,r){e.propertyIsEnumerable;var i,l=e.escapeExpression;return'<span class="'+l(e.lambda(null!=(i=null!=(i=null!=n?n.options:n)?i.styles:i)?i.suggestEdit:i,n))+'">- <a class="suggest-episode-number">'+l((t.lang||n&&n.lang||e.hooks.helperMissing).call(null!=n?n:e.nullContext||{},"suggestEdit",{name:"lang",hash:{},data:r}))+"</a></span>"},25:function(e,n,t,o,r){var i;return e.propertyIsEnumerable,e.escapeExpression(e.lambda(null!=(i=null!=(i=null!=n?n.options:n)?i.styles:i)?i.description:i,n))},27:function(e,n,t,o,r){e.propertyIsEnumerable;var i,l=e.escapeExpression;return'<span class="'+l(e.lambda(null!=(i=null!=(i=null!=n?n.options:n)?i.styles:i)?i.suggestEdit:i,n))+'">- <a class="suggest-description">'+l((t.lang||n&&n.lang||e.hooks.helperMissing).call(null!=n?n:e.nullContext||{},"suggestEdit",{name:"lang",hash:{},data:r}))+"</a></span>"},compiler:[8,">= 4.3.0"],main:function(e,n,t,o,r){e.propertyIsEnumerable;var i,l=null!=n?n:e.nullContext||{},a=e.hooks.helperMissing,s=e.escapeExpression;return'<div class="position-relative '+(null!=(i=t.if.call(l,null!=(i=null!=n?n.options:n)?i.showingSaveButton:i,{name:"if",hash:{},fn:e.program(1,r,0),inverse:e.noop,data:r}))?i:"")+'">\n <h5 class="d-inline-block">'+s((t.lang||n&&n.lang||a).call(l,"heading",{name:"lang",hash:{},data:r}))+'</h5>\n</div>\n<div class="form-group '+(null!=(i=t.unless.call(l,null!=(i=null!=n?n.options:n)?i.editable:i,{name:"unless",hash:{},fn:e.program(3,r,0),inverse:e.noop,data:r}))?i:"")+'">\n <label for="edit-title">'+s((t.lang||n&&n.lang||a).call(l,"title",{name:"lang",hash:{},data:r}))+(null!=(i=t.if.call(l,null!=(i=null!=(i=null!=n?n.options:n)?i.requiredFields:i)?i.programTitle:i,{name:"if",hash:{},fn:e.program(5,r,0),inverse:e.noop,data:r}))?i:"")+"</label>\n "+(null!=(i=t.unless.call(l,null!=(i=null!=n?n.options:n)?i.editable:i,{name:"unless",hash:{},fn:e.program(7,r,0),inverse:e.noop,data:r}))?i:"")+'\n <input\n name="name"\n type="text"\n class="form-control '+(null!=(i=t.unless.call(l,null!=(i=null!=n?n.options:n)?i.editable:i,{name:"unless",hash:{},fn:e.program(9,r,0),inverse:e.noop,data:r}))?i:"")+'"\n placeholder="'+s((t.lang||n&&n.lang||a).call(l,"titlePlaceholder",{name:"lang",hash:{},data:r}))+'"\n id="edit-title"\n autocomplete="off"\n '+(null!=(i=t.unless.call(l,null!=(i=null!=n?n.options:n)?i.editable:i,{name:"unless",hash:{},fn:e.program(11,r,0),inverse:e.noop,data:r}))?i:"")+'\n >\n <div class="form-feedback"></div>\n</div>\n<div class="container-fluid">\n <div class="row">\n <div class="form-group col-6 p-0 '+(null!=(i=t.unless.call(l,null!=(i=null!=n?n.options:n)?i.editable:i,{name:"unless",hash:{},fn:e.program(13,r,0),inverse:e.noop,data:r}))?i:"")+'">\n <label for="edit-title">'+s((t.lang||n&&n.lang||a).call(l,"series",{name:"lang",hash:{},data:r}))+"</label>\n "+(null!=(i=t.unless.call(l,null!=(i=null!=n?n.options:n)?i.editable:i,{name:"unless",hash:{},fn:e.program(15,r,0),inverse:e.noop,data:r}))?i:"")+'\n <div class="edit-series-region"></div>\n <div class="form-feedback"></div>\n </div>\n <div class="form-group col-3 pe-0 '+(null!=(i=t.unless.call(l,null!=(i=null!=n?n.options:n)?i.editable:i,{name:"unless",hash:{},fn:e.program(17,r,0),inverse:e.noop,data:r}))?i:"")+'">\n <label for="edit-season-number">'+s((t.lang||n&&n.lang||a).call(l,"season",{name:"lang",hash:{},data:r}))+"</label>\n "+(null!=(i=t.unless.call(l,null!=(i=null!=n?n.options:n)?i.editable:i,{name:"unless",hash:{},fn:e.program(19,r,0),inverse:e.noop,data:r}))?i:"")+'\n <div class="edit-season-region"></div>\n <div class="form-feedback"></div>\n </div>\n <div class="form-group col-3 pe-0 '+(null!=(i=t.unless.call(l,null!=(i=null!=n?n.options:n)?i.editable:i,{name:"unless",hash:{},fn:e.program(21,r,0),inverse:e.noop,data:r}))?i:"")+'">\n <label for="edit-episode-number">'+s((t.lang||n&&n.lang||a).call(l,"episode",{name:"lang",hash:{},data:r}))+"</label>\n "+(null!=(i=t.unless.call(l,null!=(i=null!=n?n.options:n)?i.editable:i,{name:"unless",hash:{},fn:e.program(23,r,0),inverse:e.noop,data:r}))?i:"")+'\n <input\n name="episodeNumber"\n type="number"\n class="form-control episode-number '+(null!=(i=t.if.call(l,null!=(i=null!=n?n.options:n)?i.lockEpisodeNumber:i,{name:"if",hash:{},fn:e.program(9,r,0),inverse:e.noop,data:r}))?i:"")+'"\n id="edit-episode-number"\n placeholder="'+s(e.lambda(null!=(i=null!=n?n.options:n)?i.episodeNumberPlaceholderText:i,n))+'"\n autocomplete="off"\n min="1"\n '+(null!=(i=t.if.call(l,null!=(i=null!=n?n.options:n)?i.lockEpisodeNumber:i,{name:"if",hash:{},fn:e.program(11,r,0),inverse:e.noop,data:r}))?i:"")+'\n >\n <div class="form-feedback"></div>\n </div>\n </div>\n</div>\n<div class="form-group '+(null!=(i=t.unless.call(l,null!=(i=null!=n?n.options:n)?i.editable:i,{name:"unless",hash:{},fn:e.program(25,r,0),inverse:e.noop,data:r}))?i:"")+'">\n <label for="edit-description">'+s((t.lang||n&&n.lang||a).call(l,"description",{name:"lang",hash:{},data:r}))+"</label>\n "+(null!=(i=t.unless.call(l,null!=(i=null!=n?n.options:n)?i.editable:i,{name:"unless",hash:{},fn:e.program(27,r,0),inverse:e.noop,data:r}))?i:"")+'\n <div class="description-region"></div>\n <div class="form-feedback"></div>\n</div>\n<div class="ratings-region"></div>\n'},useData:!0})},88764:function(e,n,t){var o=t(32227);e.exports=(o.default||o).template({1:function(e,n,t,o,r){e.propertyIsEnumerable;var i,l=e.escapeExpression;return'<span class="'+l(e.lambda(null!=(i=null!=(i=null!=n?n.options:n)?i.styles:i)?i.suggestEdit:i,n))+'">- <a class="suggest-channel">'+l((t.lang||n&&n.lang||e.hooks.helperMissing).call(null!=n?n:e.nullContext||{},"suggestEdit",{name:"lang",hash:{},data:r}))+"</a></span>"},compiler:[8,">= 4.3.0"],main:function(e,n,t,o,r){e.propertyIsEnumerable;var i,l=e.escapeExpression,a=null!=n?n:e.nullContext||{};return'<div class="container-fluid">\n <div class="row">\n <div class="form-group col-6 px-0">\n <div class="date-broadcast-region"></div>\n </div>\n <div class="form-group col-6 pe-0 '+l(e.lambda(null!=(i=null!=(i=null!=n?n.options:n)?i.styles:i)?i.channel:i,n))+'">\n <label for="channel-search">'+l((t.lang||n&&n.lang||e.hooks.helperMissing).call(a,"channel",{name:"lang",hash:{},data:r}))+"</label>\n "+(null!=(i=t.unless.call(a,null!=(i=null!=n?n.options:n)?i.editable:i,{name:"unless",hash:{},fn:e.program(1,r,0),inverse:e.noop,data:r}))?i:"")+'\n <div class="channel-search-region"></div>\n </div>\n </div>\n</div>'},useData:!0})},68588:function(e,n,t){var o=t(32227);e.exports=(o.default||o).template({1:function(e,n,t,o,r){e.propertyIsEnumerable;var i,l=null!=n?n:e.nullContext||{};return'<div class="form-group"> \n <div class="form-check">\n <input\n name="toggleBroadcast"\n type="checkbox"\n class="form-check-input '+(null!=(i=t.unless.call(l,null!=(i=null!=n?n.options:n)?i.editable:i,{name:"unless",hash:{},fn:e.program(2,r,0),inverse:e.noop,data:r}))?i:"")+'"\n id="toggle-broadcast"\n '+(null!=(i=t.unless.call(l,null!=(i=null!=n?n.options:n)?i.editable:i,{name:"unless",hash:{},fn:e.program(4,r,0),inverse:e.noop,data:r}))?i:"")+'\n >\n <label class="form-check-label" for="toggle-broadcast">'+e.escapeExpression((t.lang||n&&n.lang||e.hooks.helperMissing).call(l,"tv",{name:"lang",hash:{},data:r}))+"</label>\n </div>\n</div>\n"},2:function(e,n,t,o,r){var i;return e.propertyIsEnumerable,e.escapeExpression(e.lambda(null!=(i=null!=(i=null!=n?n.options:n)?i.styles:i)?i.disabled:i,n))},4:function(e,n,t,o,r){return"disabled"},compiler:[8,">= 4.3.0"],main:function(e,n,t,o,r){var i;return e.propertyIsEnumerable,(null!=(i=t.unless.call(null!=n?n:e.nullContext||{},null!=(i=null!=n?n.options:n)?i.hideToggle:i,{name:"unless",hash:{},fn:e.program(1,r,0),inverse:e.noop,data:r}))?i:"")+'<div class="broadcast-region"></div>\n'},useData:!0})},52529:function(e,n,t){var o=t(32227);e.exports=(o.default||o).template({1:function(e,n,t,o,r){var i;return e.propertyIsEnumerable,e.escapeExpression(e.lambda(null!=(i=null!=(i=null!=n?n.options:n)?i.styles:i)?i.productionYear:i,n))},3:function(e,n,t,o,r){e.propertyIsEnumerable;var i,l=e.escapeExpression;return'<span class="'+l(e.lambda(null!=(i=null!=(i=null!=n?n.options:n)?i.styles:i)?i.suggestEdit:i,n))+'">- <a class="suggest-production-year">'+l((t.lang||n&&n.lang||e.hooks.helperMissing).call(null!=n?n:e.nullContext||{},"suggestEdit",{name:"lang",hash:{},data:r}))+"</a></span>"},5:function(e,n,t,o,r){var i;return e.propertyIsEnumerable,e.escapeExpression(e.lambda(null!=(i=null!=(i=null!=n?n.options:n)?i.styles:i)?i.disabled:i,n))},7:function(e,n,t,o,r){return"disabled"},9:function(e,n,t,o,r){var i;return e.propertyIsEnumerable,e.escapeExpression(e.lambda(null!=(i=null!=(i=null!=n?n.options:n)?i.styles:i)?i.productionCompanies:i,n))},11:function(e,n,t,o,r){e.propertyIsEnumerable;var i,l=e.escapeExpression;return'<span class="'+l(e.lambda(null!=(i=null!=(i=null!=n?n.options:n)?i.styles:i)?i.suggestEdit:i,n))+'">- <a class="suggest-production-companies">'+l((t.lang||n&&n.lang||e.hooks.helperMissing).call(null!=n?n:e.nullContext||{},"suggestEdit",{name:"lang",hash:{},data:r}))+"</a></span>"},13:function(e,n,t,o,r){return e.propertyIsEnumerable,' <p class="info-link pb-0 new-production-company">'+e.escapeExpression((t.lang||n&&n.lang||e.hooks.helperMissing).call(null!=n?n:e.nullContext||{},"newProductionCompany",{name:"lang",hash:{},data:r}))+"</p>\n"},15:function(e,n,t,o,r){var i;return e.propertyIsEnumerable,e.escapeExpression(e.lambda(null!=(i=null!=(i=null!=n?n.options:n)?i.styles:i)?i.distributors:i,n))},17:function(e,n,t,o,r){e.propertyIsEnumerable;var i,l=e.escapeExpression;return'<span class="'+l(e.lambda(null!=(i=null!=(i=null!=n?n.options:n)?i.styles:i)?i.suggestEdit:i,n))+'">- <a class="suggest-distributors">'+l((t.lang||n&&n.lang||e.hooks.helperMissing).call(null!=n?n:e.nullContext||{},"suggestEdit",{name:"lang",hash:{},data:r}))+"</a></span>"},19:function(e,n,t,o,r){return e.propertyIsEnumerable,' <p class="info-link pb-0 new-distributor">'+e.escapeExpression((t.lang||n&&n.lang||e.hooks.helperMissing).call(null!=n?n:e.nullContext||{},"newDistributor",{name:"lang",hash:{},data:r}))+"</p>\n"},21:function(e,n,t,o,r){var i;return e.propertyIsEnumerable,e.escapeExpression(e.lambda(null!=(i=null!=(i=null!=n?n.options:n)?i.styles:i)?i.producers:i,n))},23:function(e,n,t,o,r){e.propertyIsEnumerable;var i,l=e.escapeExpression;return'<span class="'+l(e.lambda(null!=(i=null!=(i=null!=n?n.options:n)?i.styles:i)?i.suggestEdit:i,n))+'">- <a class="suggest-producers">'+l((t.lang||n&&n.lang||e.hooks.helperMissing).call(null!=n?n:e.nullContext||{},"suggestEdit",{name:"lang",hash:{},data:r}))+"</a></span>"},25:function(e,n,t,o,r){return e.propertyIsEnumerable,' <p class="info-link pb-0 new-producer">'+e.escapeExpression((t.lang||n&&n.lang||e.hooks.helperMissing).call(null!=n?n:e.nullContext||{},"newProducer",{name:"lang",hash:{},data:r}))+"</p>\n"},27:function(e,n,t,o,r){var i;return e.propertyIsEnumerable,e.escapeExpression(e.lambda(null!=(i=null!=(i=null!=n?n.options:n)?i.styles:i)?i.directors:i,n))},29:function(e,n,t,o,r){e.propertyIsEnumerable;var i,l=e.escapeExpression;return'<span class="'+l(e.lambda(null!=(i=null!=(i=null!=n?n.options:n)?i.styles:i)?i.suggestEdit:i,n))+'">- <a class="suggest-directors">'+l((t.lang||n&&n.lang||e.hooks.helperMissing).call(null!=n?n:e.nullContext||{},"suggestEdit",{name:"lang",hash:{},data:r}))+"</a></span>"},31:function(e,n,t,o,r){return e.propertyIsEnumerable,' <p class="info-link pb-0 new-director">'+e.escapeExpression((t.lang||n&&n.lang||e.hooks.helperMissing).call(null!=n?n:e.nullContext||{},"newDirector",{name:"lang",hash:{},data:r}))+"</p>\n"},compiler:[8,">= 4.3.0"],main:function(e,n,t,o,r){e.propertyIsEnumerable;var i,l=null!=n?n:e.nullContext||{},a=e.hooks.helperMissing,s=e.escapeExpression,u=e.lambda;return"<h5>"+s((t.lang||n&&n.lang||a).call(l,"heading",{name:"lang",hash:{},data:r}))+'</h5>\n\n<div class="container-fluid p-0">\n <div class="row">\n <div class="form-group col-4 pe-0 '+(null!=(i=t.unless.call(l,null!=(i=null!=n?n.options:n)?i.editable:i,{name:"unless",hash:{},fn:e.program(1,r,0),inverse:e.noop,data:r}))?i:"")+'">\n <label for="edit-production-year">'+s((t.lang||n&&n.lang||a).call(l,"productionYear",{name:"lang",hash:{},data:r}))+"</label>\n "+(null!=(i=t.unless.call(l,null!=(i=null!=n?n.options:n)?i.editable:i,{name:"unless",hash:{},fn:e.program(3,r,0),inverse:e.noop,data:r}))?i:"")+'\n <input\n name="productionYear"\n type="number"\n class="form-control '+(null!=(i=t.unless.call(l,null!=(i=null!=n?n.options:n)?i.editable:i,{name:"unless",hash:{},fn:e.program(5,r,0),inverse:e.noop,data:r}))?i:"")+'"\n id="edit-production-year"\n placeholder="'+s(u(null!=(i=null!=n?n.options:n)?i.productionYearPlaceholderText:i,n))+'"\n autocomplete="off"\n '+(null!=(i=t.unless.call(l,null!=(i=null!=n?n.options:n)?i.editable:i,{name:"unless",hash:{},fn:e.program(7,r,0),inverse:e.noop,data:r}))?i:"")+'\n >\n <div class="form-feedback"></div>\n </div>\n </div>\n\n <div class="row">\n <div class="form-group col-6 '+(null!=(i=t.unless.call(l,null!=(i=null!=n?n.options:n)?i.editable:i,{name:"unless",hash:{},fn:e.program(9,r,0),inverse:e.noop,data:r}))?i:"")+'">\n <label for="production-company-search">\n '+s((t.lang||n&&n.lang||a).call(l,"productionCompanies",{name:"lang",hash:{},data:r}))+'\n <span class="'+s(u(null!=(i=null!=(i=null!=n?n.options:n)?i.styles:i)?i.infoSvgContainer:i,n))+' info-tooltip" \n title="'+s((t.lang||n&&n.lang||a).call(l,"productionCompanyInfo",{name:"lang",hash:{},data:r}))+'"\n >'+(null!=(i=u(null!=(i=null!=n?n.options:n)?i.infoSvg:i,n))?i:"")+"</span>\n </label>\n "+(null!=(i=t.unless.call(l,null!=(i=null!=n?n.options:n)?i.editable:i,{name:"unless",hash:{},fn:e.program(11,r,0),inverse:e.noop,data:r}))?i:"")+'\n <div class="production-company-region"></div>\n'+(null!=(i=t.if.call(l,null!=(i=null!=n?n.options:n)?i.allowAdditionalProductionCompany:i,{name:"if",hash:{},fn:e.program(13,r,0),inverse:e.noop,data:r}))?i:"")+' </div>\n\n <div class="form-group col-6 pe-0 '+(null!=(i=t.unless.call(l,null!=(i=null!=n?n.options:n)?i.editable:i,{name:"unless",hash:{},fn:e.program(15,r,0),inverse:e.noop,data:r}))?i:"")+'">\n <label for="distributor-search">\n '+s((t.lang||n&&n.lang||a).call(l,"distributors",{name:"lang",hash:{},data:r}))+'\n <span class="'+s(u(null!=(i=null!=(i=null!=n?n.options:n)?i.styles:i)?i.infoSvgContainer:i,n))+' info-tooltip"\n title="'+s((t.lang||n&&n.lang||a).call(l,"distributorInfo",{name:"lang",hash:{},data:r}))+'"\n >'+(null!=(i=u(null!=(i=null!=n?n.options:n)?i.infoSvg:i,n))?i:"")+"</span>\n </label>\n "+(null!=(i=t.unless.call(l,null!=(i=null!=n?n.options:n)?i.editable:i,{name:"unless",hash:{},fn:e.program(17,r,0),inverse:e.noop,data:r}))?i:"")+'\n <div class="distributor-region"></div>\n'+(null!=(i=t.if.call(l,null!=(i=null!=n?n.options:n)?i.allowAdditionalDistributor:i,{name:"if",hash:{},fn:e.program(19,r,0),inverse:e.noop,data:r}))?i:"")+' </div>\n </div>\n\n <div class="row">\n <div class="form-group col-6 '+(null!=(i=t.unless.call(l,null!=(i=null!=n?n.options:n)?i.editable:i,{name:"unless",hash:{},fn:e.program(21,r,0),inverse:e.noop,data:r}))?i:"")+'">\n <label for="producer-search">\n '+s((t.lang||n&&n.lang||a).call(l,"producers",{name:"lang",hash:{},data:r}))+'\n <span class="'+s(u(null!=(i=null!=(i=null!=n?n.options:n)?i.styles:i)?i.infoSvgContainer:i,n))+' info-tooltip"\n title="'+s((t.lang||n&&n.lang||a).call(l,"producerInfo",{name:"lang",hash:{},data:r}))+'"\n >'+(null!=(i=u(null!=(i=null!=n?n.options:n)?i.infoSvg:i,n))?i:"")+"</span>\n </label>\n "+(null!=(i=t.unless.call(l,null!=(i=null!=n?n.options:n)?i.editable:i,{name:"unless",hash:{},fn:e.program(23,r,0),inverse:e.noop,data:r}))?i:"")+'\n <div class="producers-region"></div>\n'+(null!=(i=t.if.call(l,null!=(i=null!=n?n.options:n)?i.allowAdditionalProducer:i,{name:"if",hash:{},fn:e.program(25,r,0),inverse:e.noop,data:r}))?i:"")+' </div>\n\n <div class="form-group col-6 pe-0 '+(null!=(i=t.unless.call(l,null!=(i=null!=n?n.options:n)?i.editable:i,{name:"unless",hash:{},fn:e.program(27,r,0),inverse:e.noop,data:r}))?i:"")+'">\n <label for="director-search">\n '+s((t.lang||n&&n.lang||a).call(l,"directors",{name:"lang",hash:{},data:r}))+'\n <span class="'+s(u(null!=(i=null!=(i=null!=n?n.options:n)?i.styles:i)?i.infoSvgContainer:i,n))+' info-tooltip"\n title="'+s((t.lang||n&&n.lang||a).call(l,"directorInfo",{name:"lang",hash:{},data:r}))+'"\n >'+(null!=(i=u(null!=(i=null!=n?n.options:n)?i.infoSvg:i,n))?i:"")+"</span>\n </label>\n "+(null!=(i=t.unless.call(l,null!=(i=null!=n?n.options:n)?i.editable:i,{name:"unless",hash:{},fn:e.program(29,r,0),inverse:e.noop,data:r}))?i:"")+'\n <div class="directors-region"></div>\n'+(null!=(i=t.if.call(l,null!=(i=null!=n?n.options:n)?i.allowAdditionalDirector:i,{name:"if",hash:{},fn:e.program(31,r,0),inverse:e.noop,data:r}))?i:"")+" </div>\n </div>\n</div>"},useData:!0})},73519:function(e,n,t){var o=t(32227);e.exports=(o.default||o).template({1:function(e,n,t,o,r){return'<div class="">\n <button class="btn btn-outline-dark create w-100">+ Create a season</button>\n</div>\n'},3:function(e,n,t,o,r){return'<div class="form-group mb-2">\n <input type="number" class="form-control" name="number" min="1" placeholder="Season number">\n <div class="form-feedback"></div>\n</div>\n'},compiler:[8,">= 4.3.0"],main:function(e,n,t,o,r){var i;return e.propertyIsEnumerable,(null!=(i=t.unless.call(null!=n?n:e.nullContext||{},null!=(i=null!=n?n.options:n)?i.show:i,{name:"unless",hash:{},fn:e.program(1,r,0),inverse:e.program(3,r,0),data:r}))?i:"")+'<div class="text-end">\n <div class="button-region"></div>\n</div>'},useData:!0})},48242:function(e,n,t){var o=t(32227);e.exports=(o.default||o).template({1:function(e,n,t,o,r){var i;return e.propertyIsEnumerable,e.escapeExpression(e.lambda(null!=(i=null!=(i=null!=n?n.options:n)?i.styles:i)?i.disabled:i,n))},3:function(e,n,t,o,r){return"selected"},5:function(e,n,t,o,r){e.propertyIsEnumerable;var i,l=e.lambda,a=e.escapeExpression;return' <option value="'+a(l(null!=n?n.number:n,n))+'" '+(null!=(i=t.if.call(null!=n?n:e.nullContext||{},null!=n?n.selected:n,{name:"if",hash:{},fn:e.program(3,r,0),inverse:e.noop,data:r}))?i:"")+">"+a(l(null!=n?n.displayName:n,n))+"</option>\n"},7:function(e,n,t,o,r){e.propertyIsEnumerable;var i,l=e.lambda;return'<span class="svg-container mb-2 '+e.escapeExpression(l(null!=(i=null!=(i=null!=n?n.options:n)?i.styles:i)?i.svg:i,n))+' remove">'+(null!=(i=l(null!=(i=null!=n?n.options:n)?i.svgRemove:i,n))?i:"")+"</span>\n"},compiler:[8,">= 4.3.0"],main:function(e,n,t,o,r){e.propertyIsEnumerable;var i,l=e.escapeExpression,a=null!=n?n:e.nullContext||{};return'<div\n data-bs-toggle="dropdown"\n aria-haspopup="true"\n aria-expanded="false"\n class="cursor-pointer w-100 dropdown-btn btn btn-link '+l(e.lambda(null!=(i=null!=(i=null!=n?n.options:n)?i.styles:i)?i.button:i,n))+" "+(null!=(i=t.if.call(a,null!=(i=null!=n?n.options:n)?i.disabled:i,{name:"if",hash:{},fn:e.program(1,r,0),inverse:e.noop,data:r}))?i:"")+'"\n name="season"\n> </div>\n<div class="dropdown-menu dropdown-menu-end dropdown-arrow w-100">\n <div class="text-center px-2">\n <select name="season" class="form-select">\n <option value="-1" '+(null!=(i=t.unless.call(a,null!=(i=null!=n?n.options:n)?i.hasSelected:i,{name:"unless",hash:{},fn:e.program(3,r,0),inverse:e.noop,data:r}))?i:"")+">"+l((t.lang||n&&n.lang||e.hooks.helperMissing).call(a,"selectASeason",{name:"lang",hash:{},data:r}))+"</option>\n"+(null!=(i=t.each.call(a,null!=(i=null!=n?n.options:n)?i.seasons:i,{name:"each",hash:{},fn:e.program(5,r,0),inverse:e.noop,data:r}))?i:"")+' </select>\n </div>\n\n <div class="dropdown-divider"></div>\n\n <div class="create-region"></div>\n</div>\n'+(null!=(i=t.if.call(a,null!=(i=null!=n?n.options:n)?i.showRemoveIcon:i,{name:"if",hash:{},fn:e.program(7,r,0),inverse:e.noop,data:r}))?i:"")},useData:!0})},64154:function(e,n,t){var o=t(32227);e.exports=(o.default||o).template({1:function(e,n,t,o,r){return"required"},3:function(e,n,t,o,r){return"readonly"},5:function(e,n,t,o,r){return"disabled"},compiler:[8,">= 4.3.0"],main:function(e,n,t,o,r){e.propertyIsEnumerable;var i,l=e.lambda,a=e.escapeExpression,s=null!=n?n:e.nullContext||{};return'<textarea\n name="'+a(l(null!=(i=null!=n?n.options:n)?i.name:i,n))+'"\n id="'+a(l(null!=(i=null!=n?n.options:n)?i.id:i,n))+'"\n autocomplete="false"\n class="'+a(l(null!=(i=null!=n?n.options:n)?i.class:i,n))+" event-selector "+a(l(null!=(i=null!=(i=null!=n?n.options:n)?i.styles:i)?i.resizingTextarea:i,n))+'"\n placeholder="'+a(l(null!=(i=null!=n?n.options:n)?i.placeholder:i,n))+'"\n '+(null!=(i=t.if.call(s,null!=(i=null!=n?n.options:n)?i.required:i,{name:"if",hash:{},fn:e.program(1,r,0),inverse:e.noop,data:r}))?i:"")+"\n "+(null!=(i=t.if.call(s,null!=(i=null!=n?n.options:n)?i.readonly:i,{name:"if",hash:{},fn:e.program(3,r,0),inverse:e.noop,data:r}))?i:"")+"\n "+(null!=(i=t.if.call(s,null!=(i=null!=n?n.options:n)?i.disabled:i,{name:"if",hash:{},fn:e.program(5,r,0),inverse:e.noop,data:r}))?i:"")+"\n></textarea>"},useData:!0})},94407:function(e,n,t){var o=t(32227);e.exports=(o.default||o).template({1:function(e,n,t,o,r){var i;return e.propertyIsEnumerable,e.escapeExpression(e.lambda(null!=(i=null!=(i=null!=n?n.options:n)?i.styles:i)?i.disabled:i,n))},3:function(e,n,t,o,r){return"autofocus"},5:function(e,n,t,o,r){return"disabled"},compiler:[8,">= 4.3.0"],main:function(e,n,t,o,r){e.propertyIsEnumerable;var i,l=e.lambda,a=e.escapeExpression,s=null!=n?n:e.nullContext||{};return'<input\n name="'+a(l(null!=(i=null!=n?n.options:n)?i.inputName:i,n))+'"\n type="text"\n class="form-control '+(null!=(i=t.unless.call(s,null!=(i=null!=n?n.options:n)?i.editable:i,{name:"unless",hash:{},fn:e.program(1,r,0),inverse:e.noop,data:r}))?i:"")+" "+a(l(null!=(i=null!=n?n.options:n)?i.additionalClasses:i,n))+'"\n id="'+a(l(null!=(i=null!=n?n.options:n)?i.inputId:i,n))+'"\n autocomplete="off"\n placeholder="'+a(l(null!=(i=null!=n?n.options:n)?i.placeholderText:i,n))+'"\n '+(null!=(i=t.if.call(s,null!=(i=null!=n?n.options:n)?i.autofocus:i,{name:"if",hash:{},fn:e.program(3,r,0),inverse:e.noop,data:r}))?i:"")+"\n "+(null!=(i=t.unless.call(s,null!=(i=null!=n?n.options:n)?i.editable:i,{name:"unless",hash:{},fn:e.program(5,r,0),inverse:e.noop,data:r}))?i:"")+'\n></input>\n<span class="svg-container mb-2 '+a(l(null!=(i=null!=(i=null!=n?n.options:n)?i.styles:i)?i.svg:i,n))+' remove" style="display: none;">'+(null!=(i=l(null!=(i=null!=n?n.options:n)?i.svgRemove:i,n))?i:"")+"</span>"},useData:!0})},69369:function(e,n,t){var o=t(32227);e.exports=(o.default||o).template({compiler:[8,">= 4.3.0"],main:function(e,n,t,o,r){var i;return e.propertyIsEnumerable,'<div class="typeahead-region '+e.escapeExpression(e.lambda(null!=(i=null!=(i=null!=n?n.options:n)?i.styles:i)?i.typeahead:i,n))+'"></div>'},useData:!0})}}]);
|