@clickview/library-editor 1.44.0 → 1.44.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/{2482-library-editor-9683109615.chunk.css → 2482-library-editor-5078795cf9.chunk.css} +1 -1
- package/dist/css/{3087-library-editor-32398cd1ad.chunk.css → 3087-library-editor-48ea20c815.chunk.css} +1 -1
- package/dist/css/{343-library-editor-c4402b71ea.chunk.css → 343-library-editor-b5257118f9.chunk.css} +1 -1
- package/dist/css/{3551-library-editor-875234ea74.chunk.css → 3551-library-editor-d7b4563664.chunk.css} +2 -2
- package/dist/css/{9290-library-editor-8cd863992c.chunk.css → 3567-library-editor-e9cac790d6.chunk.css} +0 -1
- package/dist/css/4251-library-editor-5368f03ffe.chunk.css +16 -0
- package/dist/css/{6352-library-editor-a033138bd8.chunk.css → 6352-library-editor-644fb58ac8.chunk.css} +1 -1
- package/dist/css/{8572-library-editor-af134cb76e.chunk.css → 6582-library-editor-47a75275ca.chunk.css} +4 -4
- package/dist/css/{library-editor-app-0f996b4d1d.css → library-editor-app-94ad6d7654.css} +3 -3
- package/dist/languages/en.json +1 -1
- package/dist/scripts/101-59428084bf.chunk.js +1 -0
- package/dist/scripts/1010-d5c811879c.chunk.js +1 -0
- package/dist/scripts/1086-2682e6d3f7.chunk.js +1 -0
- package/dist/scripts/112-24c19e2cde.chunk.js +1 -0
- package/dist/scripts/1216-f3e3f911fa.chunk.js +1 -0
- package/dist/scripts/1269-a34a1de36d.chunk.js +1 -0
- package/dist/scripts/1409-e77c8982bb.chunk.js +1 -0
- package/dist/scripts/1479-9cdc81c093.chunk.js +1 -0
- package/dist/scripts/1601-807fe6b883.chunk.js +2 -0
- package/dist/scripts/1703-a4165b29f0.chunk.js +1 -0
- package/dist/scripts/1832-64d40684a4.chunk.js +1 -0
- package/dist/scripts/1876-a62d35b891.chunk.js +1 -0
- package/dist/scripts/2417-f6194f2c0e.chunk.js +1 -0
- package/dist/scripts/243-845572fbbb.chunk.js +1 -0
- package/dist/scripts/2482-1f565c0998.chunk.js +1 -0
- package/dist/scripts/259-b9143cebc3.chunk.js +1 -0
- package/dist/scripts/2601-3c14f9bb49.chunk.js +1 -0
- package/dist/scripts/2644-d371f7f2cf.chunk.js +1 -0
- package/dist/scripts/2692-438539ccbe.chunk.js +1 -0
- package/dist/scripts/{2802-600d2b3485.chunk.js → 2802-31b24a8131.chunk.js} +1 -1
- package/dist/scripts/2803-3cee0dd7a5.chunk.js +1 -0
- package/dist/scripts/2888-55edc16fd6.chunk.js +1 -0
- package/dist/scripts/299-902bf9f064.chunk.js +1 -0
- package/dist/scripts/2998-24191bc8ab.chunk.js +1 -0
- package/dist/scripts/3087-10641264a6.chunk.js +1 -0
- package/dist/scripts/3400-95d7a3a0d6.chunk.js +1 -0
- package/dist/scripts/343-f4fe764628.chunk.js +1 -0
- package/dist/scripts/35-059b230132.chunk.js +1 -0
- package/dist/scripts/3551-f653ca1b11.chunk.js +1 -0
- package/dist/scripts/3567-77588c7fee.chunk.js +1 -0
- package/dist/scripts/{3578-92cbcc9f66.chunk.js → 3578-c16c72054d.chunk.js} +2 -2
- package/dist/scripts/3639-02abbd0b71.chunk.js +1 -0
- package/dist/scripts/3746-65a75d633b.chunk.js +1 -0
- package/dist/scripts/376-f1479ce5b5.chunk.js +1 -0
- package/dist/scripts/3763-c5de5a36a1.chunk.js +1 -0
- package/dist/scripts/3778-c1359747ac.chunk.js +1 -0
- package/dist/scripts/3969-06f3eacbc6.chunk.js +1 -0
- package/dist/scripts/4064-0862db0614.chunk.js +1 -0
- package/dist/scripts/4201-6311ac5cac.chunk.js +1 -0
- package/dist/scripts/4245-05262bc3f2.chunk.js +1 -0
- package/dist/scripts/4251-0b0c374686.chunk.js +2 -0
- package/dist/scripts/4523-ca8248823d.chunk.js +1 -0
- package/dist/scripts/4591-9e342f97bc.chunk.js +1 -0
- package/dist/scripts/4860-955b4bf901.chunk.js +1 -0
- package/dist/scripts/5046-d96f9b8a40.chunk.js +1 -0
- package/dist/scripts/514-927a43219d.chunk.js +1 -0
- package/dist/scripts/{5173-1b1806ceaa.chunk.js → 5173-ae0218ce2b.chunk.js} +1 -1
- package/dist/scripts/5286-cd51d38877.chunk.js +1 -0
- package/dist/scripts/5412-95152820bb.chunk.js +1 -0
- package/dist/scripts/5418-f31f79952c.chunk.js +1 -0
- package/dist/scripts/5424-f53a7d8068.chunk.js +1 -0
- package/dist/scripts/546-dbcd00e8a9.chunk.js +1 -0
- package/dist/scripts/5524-3ecfd1675f.chunk.js +1 -0
- package/dist/scripts/5707-7a54774b60.chunk.js +1 -0
- package/dist/scripts/5747-459f8afa94.chunk.js +1 -0
- package/dist/scripts/5891-1f84bfeb5a.chunk.js +1 -0
- package/dist/scripts/6093-7e5c1af050.chunk.js +1 -0
- package/dist/scripts/61-afc963ebe2.chunk.js +2 -0
- package/dist/scripts/6352-f59224dcd2.chunk.js +1 -0
- package/dist/scripts/{6427-5d16b4c64a.chunk.js → 6427-373276a90b.chunk.js} +1 -1
- package/dist/scripts/6582-3d53d7e4cd.chunk.js +2 -0
- package/dist/scripts/6721-b31c7b97e8.chunk.js +1 -0
- package/dist/scripts/6732-5bf9ec4e56.chunk.js +1 -0
- package/dist/scripts/6774-3cad51b5b7.chunk.js +1 -0
- package/dist/scripts/6788-6e4efcfd00.chunk.js +1 -0
- package/dist/scripts/{6963-8de06d6ea2.chunk.js → 6963-9742b1ac30.chunk.js} +1 -1
- package/dist/scripts/7002-580c3dac24.chunk.js +1 -0
- package/dist/scripts/7053-62aabdd574.chunk.js +1 -0
- package/dist/scripts/7071-5ff3233cde.chunk.js +1 -0
- package/dist/scripts/708-5773723b46.chunk.js +1 -0
- package/dist/scripts/{7190-62556429f8.chunk.js → 7190-bb5d61afc5.chunk.js} +1 -1
- package/dist/scripts/7295-0ee9d9bd85.chunk.js +1 -0
- package/dist/scripts/7376-baac126511.chunk.js +1 -0
- package/dist/scripts/7408-40f786ee81.chunk.js +1 -0
- package/dist/scripts/8113-b8b033a0fb.chunk.js +1 -0
- package/dist/scripts/8213-ef3077d565.chunk.js +1 -0
- package/dist/scripts/8362-e82bef3e07.chunk.js +1 -0
- package/dist/scripts/8542-727d658bd8.chunk.js +1 -0
- package/dist/scripts/8726-edded1064e.chunk.js +1 -0
- package/dist/scripts/8727-273095d854.chunk.js +1 -0
- package/dist/scripts/8762-4ee15995c8.chunk.js +1 -0
- package/dist/scripts/8906-3bde92a78d.chunk.js +1 -0
- package/dist/scripts/9024-06b27d2b22.chunk.js +1 -0
- package/dist/scripts/9357-c5c5984ec8.chunk.js +1 -0
- package/dist/scripts/9383-66ee024166.chunk.js +1 -0
- package/dist/scripts/9695-a04e508364.chunk.js +1 -0
- package/dist/scripts/9927-a667775ac4.chunk.js +1 -0
- package/dist/scripts/bundle-3d909cf0e8.min.js +2 -0
- package/dist/scripts/bundle-3d909cf0e8.min.js.LICENSE.txt +1 -0
- package/package.json +1 -1
- package/dist/scripts/101-b1dbc86a90.chunk.js +0 -1
- package/dist/scripts/1010-b04f5455e5.chunk.js +0 -1
- package/dist/scripts/1086-18354eee73.chunk.js +0 -1
- package/dist/scripts/112-6a9fb5a3b4.chunk.js +0 -1
- package/dist/scripts/1216-3a338cf937.chunk.js +0 -1
- package/dist/scripts/1269-ebb70ecc87.chunk.js +0 -1
- package/dist/scripts/1409-7e3844a2c1.chunk.js +0 -1
- package/dist/scripts/1601-5e4723da8a.chunk.js +0 -2
- package/dist/scripts/1703-a0ce73193e.chunk.js +0 -1
- package/dist/scripts/1832-6237ec0650.chunk.js +0 -1
- package/dist/scripts/1876-bd3b0a577a.chunk.js +0 -1
- package/dist/scripts/2417-facbb43a54.chunk.js +0 -1
- package/dist/scripts/243-065eeeb636.chunk.js +0 -1
- package/dist/scripts/2482-2e771aa32e.chunk.js +0 -1
- package/dist/scripts/259-3fa2437542.chunk.js +0 -1
- package/dist/scripts/2601-bce7a0176e.chunk.js +0 -1
- package/dist/scripts/2644-c4c2859dbf.chunk.js +0 -1
- package/dist/scripts/2692-72f0ddadb4.chunk.js +0 -1
- package/dist/scripts/2803-d7f348b7f5.chunk.js +0 -1
- package/dist/scripts/2888-808acc2fef.chunk.js +0 -1
- package/dist/scripts/299-eaa1354f0c.chunk.js +0 -1
- package/dist/scripts/2998-a78cff549d.chunk.js +0 -1
- package/dist/scripts/3087-acee4b4e17.chunk.js +0 -1
- package/dist/scripts/3400-2e845c4564.chunk.js +0 -1
- package/dist/scripts/343-7a796e6a56.chunk.js +0 -1
- package/dist/scripts/35-d9c25d5624.chunk.js +0 -1
- package/dist/scripts/3551-ad54980e13.chunk.js +0 -1
- package/dist/scripts/3639-bf6b264ec9.chunk.js +0 -1
- package/dist/scripts/3746-a3ca46cf28.chunk.js +0 -1
- package/dist/scripts/376-15ce0b43dd.chunk.js +0 -1
- package/dist/scripts/3763-408ce1508a.chunk.js +0 -1
- package/dist/scripts/3778-f55494fe5a.chunk.js +0 -1
- package/dist/scripts/3969-92dd3b164a.chunk.js +0 -1
- package/dist/scripts/4201-30387c4a99.chunk.js +0 -1
- package/dist/scripts/4245-d1ded0584f.chunk.js +0 -1
- package/dist/scripts/4523-1ccb20cd86.chunk.js +0 -1
- package/dist/scripts/4591-e149bc74c4.chunk.js +0 -1
- package/dist/scripts/4860-0d9f4a4d0b.chunk.js +0 -1
- package/dist/scripts/5046-7a4e1b7df0.chunk.js +0 -1
- package/dist/scripts/514-c6a928c7c4.chunk.js +0 -1
- package/dist/scripts/5286-472885bf9c.chunk.js +0 -1
- package/dist/scripts/5412-c8877fa040.chunk.js +0 -1
- package/dist/scripts/5418-c3e6433e3e.chunk.js +0 -1
- package/dist/scripts/5424-66a285070b.chunk.js +0 -1
- package/dist/scripts/546-dd9117fa94.chunk.js +0 -1
- package/dist/scripts/5524-e3ae3829ab.chunk.js +0 -1
- package/dist/scripts/5707-aa2a8aed09.chunk.js +0 -1
- package/dist/scripts/5747-3c7f3e0bb1.chunk.js +0 -1
- package/dist/scripts/5891-e5d8930469.chunk.js +0 -1
- package/dist/scripts/6093-defd3e7edf.chunk.js +0 -1
- package/dist/scripts/61-e24004149c.chunk.js +0 -2
- package/dist/scripts/6352-ed9a44d7bf.chunk.js +0 -1
- package/dist/scripts/6721-e479e42307.chunk.js +0 -1
- package/dist/scripts/6732-33c1578a4a.chunk.js +0 -1
- package/dist/scripts/6774-5ec2037d61.chunk.js +0 -1
- package/dist/scripts/6788-fabfcf71cf.chunk.js +0 -1
- package/dist/scripts/7002-df13e9f6c5.chunk.js +0 -1
- package/dist/scripts/7053-8aa0d915f9.chunk.js +0 -1
- package/dist/scripts/7071-a6d0bdadd1.chunk.js +0 -1
- package/dist/scripts/708-80efe251de.chunk.js +0 -1
- package/dist/scripts/7295-8a525c7426.chunk.js +0 -1
- package/dist/scripts/7376-2a91178587.chunk.js +0 -1
- package/dist/scripts/7408-50b66e1a5a.chunk.js +0 -1
- package/dist/scripts/8113-133ecdfe0c.chunk.js +0 -1
- package/dist/scripts/8213-400f1712b3.chunk.js +0 -1
- package/dist/scripts/8362-b11e7dbcbd.chunk.js +0 -1
- package/dist/scripts/8542-48fd3a46e3.chunk.js +0 -1
- package/dist/scripts/8572-df35f37677.chunk.js +0 -2
- package/dist/scripts/8726-8f24d59af7.chunk.js +0 -1
- package/dist/scripts/8727-16694cfdf0.chunk.js +0 -1
- package/dist/scripts/8762-ded7396830.chunk.js +0 -1
- package/dist/scripts/8906-327640bf39.chunk.js +0 -1
- package/dist/scripts/9290-9ccb931dbe.chunk.js +0 -1
- package/dist/scripts/9357-35c3761c84.chunk.js +0 -1
- package/dist/scripts/9383-941f88b031.chunk.js +0 -1
- package/dist/scripts/9695-0cf4f10b51.chunk.js +0 -1
- package/dist/scripts/9770-f9c6709b6e.chunk.js +0 -1
- package/dist/scripts/9927-8e56991c93.chunk.js +0 -1
- package/dist/scripts/bundle-03f36c0a76.min.js +0 -2
- /package/dist/scripts/{1601-5e4723da8a.chunk.js.LICENSE.txt → 1601-807fe6b883.chunk.js.LICENSE.txt} +0 -0
- /package/dist/scripts/{2802-600d2b3485.chunk.js.LICENSE.txt → 2802-31b24a8131.chunk.js.LICENSE.txt} +0 -0
- /package/dist/scripts/{3578-92cbcc9f66.chunk.js.LICENSE.txt → 3578-c16c72054d.chunk.js.LICENSE.txt} +0 -0
- /package/dist/scripts/{61-e24004149c.chunk.js.LICENSE.txt → 4251-0b0c374686.chunk.js.LICENSE.txt} +0 -0
- /package/dist/scripts/{8572-df35f37677.chunk.js.LICENSE.txt → 61-afc963ebe2.chunk.js.LICENSE.txt} +0 -0
- /package/dist/scripts/{bundle-03f36c0a76.min.js.LICENSE.txt → 6582-3d53d7e4cd.chunk.js.LICENSE.txt} +0 -0
|
@@ -1 +0,0 @@
|
|
|
1
|
-
(self.webpackChunk_clickview_library_editor=self.webpackChunk_clickview_library_editor||[]).push([[7295],{70680:function(e,t,n){"use strict";n.d(t,{r:function(){return v}});var o=n(57857),i=n(31647),r=n(88172),s=n(93569),l=n(40622),a=n(26457),u=n(97781),c=n.n(u);function p(e){return p="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},p(e)}function f(e,t){for(var n=0;n<t.length;n++){var o=t[n];o.enumerable=o.enumerable||!1,o.configurable=!0,"value"in o&&(o.writable=!0),Object.defineProperty(e,h(o.key),o)}}function h(e){var t=function(e,t){if("object"!=p(e)||!e)return e;var n=e[Symbol.toPrimitive];if(void 0!==n){var o=n.call(e,"string");if("object"!=p(o))return o;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}(e);return"symbol"==p(t)?t:t+""}function d(e,t,n){return t=b(t),function(e,t){if(t&&("object"===p(t)||"function"==typeof t))return t;if(void 0!==t)throw new TypeError("Derived constructors may only return object or undefined");return function(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}(e)}(e,y()?Reflect.construct(t,n||[],b(e).constructor):t.apply(e,n))}function y(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){})))}catch(e){}return(y=function(){return!!e})()}function b(e){return b=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(e){return e.__proto__||Object.getPrototypeOf(e)},b(e)}function m(e,t){return m=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(e,t){return e.__proto__=t,e},m(e,t)}var v=function(e){function t(e){return function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,t),d(this,t,[e])}return function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),Object.defineProperty(e,"prototype",{writable:!1}),t&&m(e,t)}(t,e),n=t,(u=[{key:"initialize",value:function(){this.spinnerModel=new i.Q.Hn({showSpinner:this.isProcessing()}),this.listenTo(this.options.channelName,l.NT.MergeChapters,this.onClickMergeChapters)}},{key:"name",get:function(){return"ConcatenateRequestComponent"}},{key:"template",get:function(){return c()}},{key:"lang",get:function(){return"libraryEditor.concatenateRequest"}},{key:"className",get:function(){return"mt-3"}},{key:"regions",value:function(){return{button:{el:".btn-region",replaceElement:!0}}}},{key:"onClickMergeChapters",value:function(){this.spinnerModel.set(r.ZV.ShowSpinner,!0),this.render()}},{key:"isProcessing",value:function(){return!(!this.model||!this.model.get("status")||this.model.get("status")!==a.Um.New&&this.model.get("status")!==a.Um.Concatenating)}},{key:"renderButton",value:function(){var e={chapters:o.T.getPhrase(this.lang,"mergeChapters"),subtitles:o.T.getPhrase(this.lang,"mergeChapters"),clickViewSubtitles:o.T.getPhrase(this.lang,"enabledCustomSubtitles")},t=new r.Py({buttonText:e[this.options.type],extraButtonClass:"btn-dark ".concat("XKFne"),model:this.spinnerModel,spinnerOptions:{size:s.Ey.Small,type:s.dR.Light,extraClasses:"mx-auto"},channelName:this.options.channelName,saveEvent:l.NT.MergeChapters});this.showChildView("button",t)}},{key:"viewOptions",value:function(){var e={chapters:{heading:o.T.getPhrase(this.lang,"chaptersHeading"),line1:o.T.getPhrase(this.lang,"chaptersInfo1"),line2:o.T.getPhrase(this.lang,"chaptersInfo2")},subtitles:{heading:o.T.getPhrase(this.lang,"subtitlesHeading"),line1:o.T.getPhrase(this.lang,"subtitlesInfo1"),line2:o.T.getPhrase(this.lang,"subtitlesInfo2")},clickViewSubtitles:{heading:o.T.getPhrase(this.lang,"cvSubtitlesHeading"),line1:o.T.getPhrase(this.lang,"cvSubtitlesInfo1"),line2:o.T.getPhrase(this.lang,"cvSubtitlesInfo2")}};return{progress:this.model&&this.model.get("progress")&&o.T.getPhrase(this.lang,"progress",{progress:this.model.get("progress")}),componentOptions:e[this.options.type],processing:this.spinnerModel.get(r.ZV.ShowSpinner),failed:this.model&&this.model.get("status")&&this.model.get("status")===a.Um.ConcatenationFailed}}},{key:"onRender",value:function(){this.renderButton()}}])&&f(n.prototype,u),Object.defineProperty(n,"prototype",{writable:!1}),n;var n,u}(i.Q.wA)},21053:function(e,t,n){"use strict";n.d(t,{W:function(){return g}});var o=n(48088),i=n(57857),r=n(31647),s=n(57085),l=n(35630),a=n(57098),u=n(43791),c=n.n(u),p={svgContainer:"mtegw"};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,t){for(var n=0;n<t.length;n++){var o=t[n];o.enumerable=o.enumerable||!1,o.configurable=!0,"value"in o&&(o.writable=!0),Object.defineProperty(e,d(o.key),o)}}function d(e){var t=function(e,t){if("object"!=f(e)||!e)return e;var n=e[Symbol.toPrimitive];if(void 0!==n){var o=n.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(t)?t:t+""}function y(e,t,n){return t=m(t),function(e,t){if(t&&("object"===f(t)||"function"==typeof t))return t;if(void 0!==t)throw new TypeError("Derived constructors may only return object or undefined");return function(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}(e)}(e,b()?Reflect.construct(t,n||[],m(e).constructor):t.apply(e,n))}function b(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){})))}catch(e){}return(b=function(){return!!e})()}function m(e){return m=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(e){return e.__proto__||Object.getPrototypeOf(e)},m(e)}function v(e,t){return v=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(e,t){return e.__proto__=t,e},v(e,t)}var g=function(e){function t(e){return function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,t),y(this,t,[e])}return function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),Object.defineProperty(e,"prototype",{writable:!1}),t&&v(e,t)}(t,e),n=t,(r=[{key:"name",get:function(){return"EditVideoTabsComponent"}},{key:"className",get:function(){return"bg-white"}},{key:"regions",value:function(){return{tabs:{el:".tabs-region",replaceElement:!0},breadcrumbs:{el:".breadcrumbs-region",replaceElement:!0}}}},{key:"lang",get:function(){return"libraryEditor.editVideoTabs"}},{key:"template",get:function(){return c()}},{key:"viewOptions",value:function(){return{styles:p}}},{key:"onSave",value:function(){o.Radio.channel(a.OV.LIBRARY_EDITOR).trigger(a.eX.LibraryEditor.SAVE_VIDEO)}},{key:"getLocationBreadcrumb",value:function(){switch(this.options.context){case"edit":return{name:i.T.getPhrase(this.lang,"videoDetails")};case"chapters":return{name:i.T.getPhrase(this.lang,"chapters")};case"resources":return{name:i.T.getPhrase(this.lang,"resources")}}}},{key:"onRender",value:function(){this.showChildView("tabs",new l.n({tabs:this.options.tabs,activeTab:this.options.activeTab})),this.showChildView("breadcrumbs",new s.n({folder:this.options.folder,libraries:this.options.libraries,video:this.model,customBreadcrumbs:[this.getLocationBreadcrumb()],enableLastItemAppLink:!1}))}}])&&h(n.prototype,r),Object.defineProperty(n,"prototype",{writable:!1}),n;var n,r}(r.Q.wA)},82407:function(e,t,n){"use strict";n.r(t),n.d(t,{EditResourcesView:function(){return Ft}});var o=n(48088),i=n(39479),r=n(25417),s=n(99748),l=n(21679),a=n(57857),u=n(31647),c=n(52076),p=n(70065),f=n(81937),h=n(56252),d=n(18222),y=n(45837),b=n(83162),m=n(57769),v=n(44237),g=n.n(v),k=n(61571),w=n.n(k),C={fileDrop:"ejhuF",dropMask:"fLdBH",dragOver:"_sk3R"};function O(e){return O="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},O(e)}function S(e,t){for(var n=0;n<t.length;n++){var o=t[n];o.enumerable=o.enumerable||!1,o.configurable=!0,"value"in o&&(o.writable=!0),Object.defineProperty(e,T(o.key),o)}}function T(e){var t=function(e,t){if("object"!=O(e)||!e)return e;var n=e[Symbol.toPrimitive];if(void 0!==n){var o=n.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(t)?t:t+""}function P(e,t,n){return t=E(t),function(e,t){if(t&&("object"===O(t)||"function"==typeof t))return t;if(void 0!==t)throw new TypeError("Derived constructors may only return object or undefined");return function(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}(e)}(e,j()?Reflect.construct(t,n||[],E(e).constructor):t.apply(e,n))}function j(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){})))}catch(e){}return(j=function(){return!!e})()}function E(e){return E=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(e){return e.__proto__||Object.getPrototypeOf(e)},E(e)}function R(e,t){return R=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(e,t){return e.__proto__=t,e},R(e,t)}var L=function(e){function t(e){return function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,t),P(this,t,[e])}return function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),Object.defineProperty(e,"prototype",{writable:!1}),t&&R(e,t)}(t,e),n=t,(o=[{key:"name",get:function(){return"FileSelectComponent"}},{key:"template",get:function(){return g()}},{key:"lang",get:function(){return"shared._fileSelect"}},{key:"elements",get:function(){return{dropArea:".file-drop"}}},{key:"defaults",get:function(){return{acceptMultiple:!0}}},{key:"behaviors",get:function(){return[{behaviorClass:m.Z,buttonSelector:".browse",channelName:this.options.channelName,acceptMultiple:this.options.acceptMultiple,mimeType:this.options.mimeType},{behaviorClass:b.V,channelName:this.options.channelName,acceptMultiple:this.options.acceptMultiple}]}},{key:"events",value:function(){var e,t,n;return e={"drop .file-drop":"onDrop","dragover .file-drop":"onDragOver"},n="onDragLeave",(t=T(t="dragleave .".concat(C.dropMask)))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}},{key:"onDrop",value:function(){this.$el.removeClass(C.dragOver)}},{key:"onDragOver",value:function(e){this.$el.addClass(C.dragOver),e.preventDefault()}},{key:"onDragLeave",value:function(){this.$el.removeClass(C.dragOver)}},{key:"viewOptions",value:function(){return Object.assign(Object.assign({},this.options),{styles:C,limitText:this.options.limitText,isClickViewContent:this.options.isClickViewContent})}},{key:"onRender",value:function(){this.getUI("dropArea").append(w()({dropMask:C.dropMask,fileDropText:a.T.getPhrase(this.lang,"drop")}))}}])&&S(n.prototype,o),Object.defineProperty(n,"prototype",{writable:!1}),n;var n,o}(u.Q.wA),V=n(85835);function _(e){return _="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},_(e)}function I(e,t){for(var n=0;n<t.length;n++){var o=t[n];o.enumerable=o.enumerable||!1,o.configurable=!0,"value"in o&&(o.writable=!0),Object.defineProperty(e,N(o.key),o)}}function N(e){var t=function(e,t){if("object"!=_(e)||!e)return e;var n=e[Symbol.toPrimitive];if(void 0!==n){var o=n.call(e,"string");if("object"!=_(o))return o;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}(e);return"symbol"==_(t)?t:t+""}function x(e,t,n){return t=D(t),function(e,t){if(t&&("object"===_(t)||"function"==typeof t))return t;if(void 0!==t)throw new TypeError("Derived constructors may only return object or undefined");return function(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}(e)}(e,U()?Reflect.construct(t,n||[],D(e).constructor):t.apply(e,n))}function U(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){})))}catch(e){}return(U=function(){return!!e})()}function D(e){return D=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(e){return e.__proto__||Object.getPrototypeOf(e)},D(e)}function B(e,t){return B=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(e,t){return e.__proto__=t,e},B(e,t)}var A="shared.errors.tooManyResources",M=function(e){function t(e){var n;return function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,t),(n=x(this,t,["Cannot add that many resources"])).resourceLimit=e,n}return function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),Object.defineProperty(e,"prototype",{writable:!1}),t&&B(e,t)}(t,e),n=t,(o=[{key:"name",get:function(){return"TooManyResourcesError"}},{key:"dialogOptions",get:function(){return{title:a.T.getPhrase(A,"heading"),text:a.T.getPhrase(A,"body",{resourceLimit:this.resourceLimit}),buttons:[{text:a.T.getPhrase(A,"okay"),className:"btn btn-dark",success:!0}]}}}])&&I(n.prototype,o),Object.defineProperty(n,"prototype",{writable:!1}),n;var n,o}(V.S);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 q(e,t){for(var n=0;n<t.length;n++){var o=t[n];o.enumerable=o.enumerable||!1,o.configurable=!0,"value"in o&&(o.writable=!0),Object.defineProperty(e,Q(o.key),o)}}function Q(e){var t=function(e,t){if("object"!=F(e)||!e)return e;var n=e[Symbol.toPrimitive];if(void 0!==n){var o=n.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(t)?t:t+""}function z(e,t,n){return t=J(t),function(e,t){if(t&&("object"===F(t)||"function"==typeof t))return t;if(void 0!==t)throw new TypeError("Derived constructors may only return object or undefined");return function(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}(e)}(e,H()?Reflect.construct(t,n||[],J(e).constructor):t.apply(e,n))}function H(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){})))}catch(e){}return(H=function(){return!!e})()}function J(e){return J=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(e){return e.__proto__||Object.getPrototypeOf(e)},J(e)}function K(e,t){return K=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(e,t){return e.__proto__=t,e},K(e,t)}var Z="shared.errors.tooManySubtitles",G=function(e){function t(e){var n;return function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,t),(n=z(this,t,["Cannot add that many subtitles"])).subtileLimit=e,n}return function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),Object.defineProperty(e,"prototype",{writable:!1}),t&&K(e,t)}(t,e),n=t,(o=[{key:"name",get:function(){return"TooManySubtitlesError"}},{key:"dialogOptions",get:function(){return{title:a.T.getPhrase(Z,"heading"),text:a.T.getPhrase(Z,"body",{subtitleLimit:this.subtileLimit}),buttons:[{text:a.T.getPhrase(Z,"okay"),className:"btn btn-dark",success:!0}]}}}])&&q(n.prototype,o),Object.defineProperty(n,"prototype",{writable:!1}),n;var n,o}(V.S),W=n(10101),Y=n(57098),X=n(29457),ee=n(14327),te=n(19226),ne=n(93569),oe=n(99249),ie=n(88172),re=n(7190),se=n(41165),le=n.n(se);function ae(e){return ae="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},ae(e)}function ue(e,t){for(var n=0;n<t.length;n++){var o=t[n];o.enumerable=o.enumerable||!1,o.configurable=!0,"value"in o&&(o.writable=!0),Object.defineProperty(e,ce(o.key),o)}}function ce(e){var t=function(e,t){if("object"!=ae(e)||!e)return e;var n=e[Symbol.toPrimitive];if(void 0!==n){var o=n.call(e,"string");if("object"!=ae(o))return o;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}(e);return"symbol"==ae(t)?t:t+""}function pe(e,t,n){return t=he(t),function(e,t){if(t&&("object"===ae(t)||"function"==typeof t))return t;if(void 0!==t)throw new TypeError("Derived constructors may only return object or undefined");return function(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}(e)}(e,fe()?Reflect.construct(t,n||[],he(e).constructor):t.apply(e,n))}function fe(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){})))}catch(e){}return(fe=function(){return!!e})()}function he(e){return he=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(e){return e.__proto__||Object.getPrototypeOf(e)},he(e)}function de(e,t){return de=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(e,t){return e.__proto__=t,e},de(e,t)}var ye=function(e){function t(e){var n;return function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,t),(n=pe(this,t,[e])).showNameField=!1,n.disableBtn=!0,n}return function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),Object.defineProperty(e,"prototype",{writable:!1}),t&&de(e,t)}(t,e),n=t,(i=[{key:"initialize",value:function(){this.model=oe.r.get(this.viewModelName),this.model.addValidation(re.yU),this.bindListeners()}},{key:"name",get:function(){return"AddLinksComponent"}},{key:"template",get:function(){return le()}},{key:"lang",get:function(){return"libraryEditor.addLinks"}},{key:"tagName",get:function(){return"form"}},{key:"bindings",get:function(){return{"[name=url]":{observe:"url",setOptions:{validate:!0}},"[name=name]":{observe:"name",setOptions:{validate:!0}}}}},{key:"regions",value:function(){return{attachBtn:".attach-btn-region"}}},{key:"behaviors",get:function(){return[{behaviorClass:W.Bp},{behaviorClass:W.fS}]}},{key:"elements",get:function(){return{nameField:"#name-container"}}},{key:"viewModelName",get:function(){return"".concat(this.name,":").concat(this.cid)}},{key:"bindListeners",value:function(){this.listenTo(this.model,"change:url",this.onChangeUrl),this.listenTo(this.model,"change:name",this.onChangeName),this.listenTo(this.options.channelName,"attach:link",this.onClickAttach)}},{key:"onChangeUrl",value:function(){this.showNameField&&!this.model.isValid("url")?(this.getUI("nameField").hide(),this.model.set("name",""),this.showNameField=!1):!this.showNameField&&this.model.isValid("url")&&(this.getUI("nameField").show(),this.showNameField=!0)}},{key:"onChangeName",value:function(){this.model.validate("name"),this.disableBtn=!this.model.isValid(),this.renderAttachButton()}},{key:"onClickAttach",value:function(){var e=this.model.toJSON();this.model.clear(),o.Radio.channel(this.options.channelName).trigger("add:link",e),this.render()}},{key:"renderAttachButton",value:function(){this.options.hide||this.showChildView("attachBtn",new ie.Py({saveEvent:"attach:link",channelName:this.options.channelName,buttonText:a.T.getPhrase(this.lang,"attach"),extraButtonClass:"btn-dark attach",disabled:this.disableBtn,buttonType:"submit",spinnerOptions:{size:ne.Ey.Medium,type:ne.dR.Light,extraClasses:"mx-auto"}}))}},{key:"viewOptions",value:function(){return{limit:this.options.limit,hide:this.options.hide}}},{key:"onRender",value:function(){this.renderAttachButton(),this.stickit(),o.Validation.bind(this)}},{key:"onClose",value:function(){this.unstickit(),o.Validation.unbind(this)}}])&&ue(n.prototype,i),Object.defineProperty(n,"prototype",{writable:!1}),n;var n,i}(u.Q.wA),be=n(70680),me=n(68708),ve=n(21053),ge=n(53808),ke=n(63791),we=n(97237),Ce=n.n(we),Oe={svgContainer:"sr9KQ",progress:"Cn0ad"};function Se(e){return Se="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},Se(e)}function Te(e,t){for(var n=0;n<t.length;n++){var o=t[n];o.enumerable=o.enumerable||!1,o.configurable=!0,"value"in o&&(o.writable=!0),Object.defineProperty(e,Pe(o.key),o)}}function Pe(e){var t=function(e,t){if("object"!=Se(e)||!e)return e;var n=e[Symbol.toPrimitive];if(void 0!==n){var o=n.call(e,"string");if("object"!=Se(o))return o;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}(e);return"symbol"==Se(t)?t:t+""}function je(e,t,n){return t=Re(t),function(e,t){if(t&&("object"===Se(t)||"function"==typeof t))return t;if(void 0!==t)throw new TypeError("Derived constructors may only return object or undefined");return function(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}(e)}(e,Ee()?Reflect.construct(t,n||[],Re(e).constructor):t.apply(e,n))}function Ee(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){})))}catch(e){}return(Ee=function(){return!!e})()}function Re(e){return Re=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(e){return e.__proto__||Object.getPrototypeOf(e)},Re(e)}function Le(e,t){return Le=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(e,t){return e.__proto__=t,e},Le(e,t)}var Ve=function(e){function t(e){return function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,t),je(this,t,[e])}return function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),Object.defineProperty(e,"prototype",{writable:!1}),t&&Le(e,t)}(t,e),n=t,(o=[{key:"initialize",value:function(){this.listenTo(this.model,"change:progress",this.render)}},{key:"name",get:function(){return"FileUploadComponent"}},{key:"template",get:function(){return Ce()}},{key:"events",value:function(){return{"click .cancel-upload":"onClickCancelUpload"}}},{key:"onClickCancelUpload",value:function(){ge.q.isFunction(this.options.onClickCancelUpload)&&this.options.onClickCancelUpload(this.model.get("id"))}},{key:"viewOptions",value:function(){return{styles:Oe,svg:ke.Nj.getSvg(ke.vn.Folder),tickSvg:ke.Nj.getSvg(ke.vn.Check),finished:this.model.get("progress")>=100}}}])&&Te(n.prototype,o),Object.defineProperty(n,"prototype",{writable:!1}),n;var n,o}(u.Q.wA);function _e(e){return _e="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},_e(e)}function Ie(e,t){for(var n=0;n<t.length;n++){var o=t[n];o.enumerable=o.enumerable||!1,o.configurable=!0,"value"in o&&(o.writable=!0),Object.defineProperty(e,Ne(o.key),o)}}function Ne(e){var t=function(e,t){if("object"!=_e(e)||!e)return e;var n=e[Symbol.toPrimitive];if(void 0!==n){var o=n.call(e,"string");if("object"!=_e(o))return o;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}(e);return"symbol"==_e(t)?t:t+""}function xe(e,t,n){return t=De(t),function(e,t){if(t&&("object"===_e(t)||"function"==typeof t))return t;if(void 0!==t)throw new TypeError("Derived constructors may only return object or undefined");return function(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}(e)}(e,Ue()?Reflect.construct(t,n||[],De(e).constructor):t.apply(e,n))}function Ue(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){})))}catch(e){}return(Ue=function(){return!!e})()}function De(e){return De=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(e){return e.__proto__||Object.getPrototypeOf(e)},De(e)}function Be(e,t){return Be=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(e,t){return e.__proto__=t,e},Be(e,t)}var Ae=function(e){function t(e){return function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,t),xe(this,t,[e])}return function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),Object.defineProperty(e,"prototype",{writable:!1}),t&&Be(e,t)}(t,e),n=t,(i=[{key:"name",get:function(){return"FileUploadsComponentCollection"}},{key:"childView",get:function(){return Ve}},{key:"childViewOptions",get:function(){var e=this;return{onClickCancelUpload:function(t){o.Radio.channel(e.options.channelName).trigger("cancel:upload",t)}}}}])&&Ie(n.prototype,i),Object.defineProperty(n,"prototype",{writable:!1}),n;var n,i}(u.Q.$W),Me=n(36022),Fe=n(19249),qe={handleQuery:function(){return function(e,t){var n=[];if(e){var o=CVLanguages.getEnglishNameContains(e);return i.each(o,(function(e,t){n.push({key:t,name:e.englishName})})),t(n)}t()}},getTypeaheadConfig:function(){return function(){return{name:"languages",source:qe.handleQuery(),limit:5,display:function(e){return e.name},templates:{suggestion:Fe.ou,pending:Fe.gb,notFound:Fe.TX}}}}},Qe=n(56730),ze=n.n(Qe);function He(e){return He="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},He(e)}function Je(e,t){for(var n=0;n<t.length;n++){var o=t[n];o.enumerable=o.enumerable||!1,o.configurable=!0,"value"in o&&(o.writable=!0),Object.defineProperty(e,Ke(o.key),o)}}function Ke(e){var t=function(e,t){if("object"!=He(e)||!e)return e;var n=e[Symbol.toPrimitive];if(void 0!==n){var o=n.call(e,"string");if("object"!=He(o))return o;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}(e);return"symbol"==He(t)?t:t+""}function Ze(e,t,n){return t=Ge(t),function(e,t){if(t&&("object"===He(t)||"function"==typeof t))return t;if(void 0!==t)throw new TypeError("Derived constructors may only return object or undefined");return function(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}(e)}(e,$e()?Reflect.construct(t,n||[],Ge(e).constructor):t.apply(e,n))}function $e(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){})))}catch(e){}return($e=function(){return!!e})()}function Ge(e){return Ge=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(e){return e.__proto__||Object.getPrototypeOf(e)},Ge(e)}function We(e,t){return We=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(e,t){return e.__proto__=t,e},We(e,t)}var Ye=function(e){function t(e){return function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,t),Ze(this,t,[e])}return function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),Object.defineProperty(e,"prototype",{writable:!1}),t&&We(e,t)}(t,e),n=t,(o=[{key:"initialize",value:function(e){this.model=oe.r.get("subtitle:language",e.defaultLanguage),this.model.addValidation(ne.AJ),this.listenTo(this.channelName,"select:language",this.onLanguageSelected)}},{key:"template",get:function(){return ze()}},{key:"name",get:function(){return"LanguageSelectComponent"}},{key:"lang",get:function(){return"libraryEditor.languageSelect"}},{key:"events",value:function(){return{"click .submit":"onClickSubmit",submit:"onClickSubmit"}}},{key:"behaviors",get:function(){return[{behaviorClass:W.Yw,title:a.T.getPhrase(this.lang,"heading"),buttons:[{text:a.T.getPhrase(this.lang,"submit"),type:"submit",className:"btn btn-dark submit"}]},{behaviorClass:W.fS}]}},{key:"regions",value:function(){return{typeahead:".typahead-region"}}},{key:"channelName",get:function(){return"".concat(this.name).concat(this.cid)}},{key:"getTypeaheadConfigs",value:function(){return[{name:"languages",typeaheadConfig:qe.getTypeaheadConfig()}]}},{key:"renderTypeahead",value:function(){this.showChildView("typeahead",new Me.M({model:this.model,parentChannelName:this.channelName,inputId:"language",selectEvent:"select:language",typeaheadConfigs:this.getTypeaheadConfigs()}))}},{key:"onLanguageSelected",value:function(e){this.model.set("code",e.key)}},{key:"onClickSubmit",value:function(){this.model.validate(),this.model.isValid()&&(this.options.promise.resolve(this.model.toJSON()),this.triggerMethod("hide"))}},{key:"onBeforeDestroy",value:function(){"pending"===this.options.promise.state()&&this.options.promise.reject()}},{key:"onRender",value:function(){this.renderTypeahead()}}])&&Je(n.prototype,o),Object.defineProperty(n,"prototype",{writable:!1}),n;var n,o}(u.Q.wA),Xe=n(77605),et=function(e,t){var n,o,i=e.language;return o=(null==t?void 0:t.filter((function(e){return e.language!==i}))).length>0?CVLanguages.getFullEnglishName(i):CVLanguages.getEnglishName(i),(null===(n=e.metadata)||void 0===n?void 0:n.autoGenerated)?a.T.getPhrase("shared.shared-utils","autoGeneratedSubtitle",{name:o}):o},tt=n(21974),nt=n(85985),ot=n.n(nt),it={container:"SizJb",svgContainer:"PuqLQ",actionSvg:"L9P1P"};function rt(e){return rt="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},rt(e)}function st(e,t){for(var n=0;n<t.length;n++){var o=t[n];o.enumerable=o.enumerable||!1,o.configurable=!0,"value"in o&&(o.writable=!0),Object.defineProperty(e,lt(o.key),o)}}function lt(e){var t=function(e,t){if("object"!=rt(e)||!e)return e;var n=e[Symbol.toPrimitive];if(void 0!==n){var o=n.call(e,"string");if("object"!=rt(o))return o;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}(e);return"symbol"==rt(t)?t:t+""}function at(e,t,n){return t=ct(t),function(e,t){if(t&&("object"===rt(t)||"function"==typeof t))return t;if(void 0!==t)throw new TypeError("Derived constructors may only return object or undefined");return function(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}(e)}(e,ut()?Reflect.construct(t,n||[],ct(e).constructor):t.apply(e,n))}function ut(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){})))}catch(e){}return(ut=function(){return!!e})()}function ct(e){return ct=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(e){return e.__proto__||Object.getPrototypeOf(e)},ct(e)}function pt(e,t){return pt=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(e,t){return e.__proto__=t,e},pt(e,t)}var ft=function(e){function t(e){return function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,t),at(this,t,[e])}return function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),Object.defineProperty(e,"prototype",{writable:!1}),t&&pt(e,t)}(t,e),n=t,(o=[{key:"name",get:function(){return"SubtitleItemComponent"}},{key:"template",get:function(){return ot()}},{key:"className",get:function(){return"".concat(it.container," rounded p-2 mb-2")}},{key:"events",value:function(){return{"click .delete":"onClickDelete"}}},{key:"getEnglishName",value:function(){return et(this.model.toJSON(),this.model.collection.toJSON())}},{key:"onClickDelete",value:function(){!this.options.isClickViewContent&&ge.q.isFunction(this.options.onClickDelete)&&this.options.onClickDelete(this.model)}},{key:"viewOptions",value:function(){return{styles:it,svg:ke.Nj.getSvg(tt.u.mapTypeToSvg("subtitle")),trashSvg:ke.Nj.getSvg(ke.vn.Delete),name:this.getEnglishName(),isClickViewContent:this.options.isClickViewContent}}}])&&st(n.prototype,o),Object.defineProperty(n,"prototype",{writable:!1}),n;var n,o}(u.Q.wA),ht=n(54758),dt=n(71060),yt=n.n(dt);function bt(e){return bt="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},bt(e)}function mt(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function vt(e,t){for(var n=0;n<t.length;n++){var o=t[n];o.enumerable=o.enumerable||!1,o.configurable=!0,"value"in o&&(o.writable=!0),Object.defineProperty(e,kt(o.key),o)}}function gt(e,t,n){return t&&vt(e.prototype,t),n&&vt(e,n),Object.defineProperty(e,"prototype",{writable:!1}),e}function kt(e){var t=function(e,t){if("object"!=bt(e)||!e)return e;var n=e[Symbol.toPrimitive];if(void 0!==n){var o=n.call(e,"string");if("object"!=bt(o))return o;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}(e);return"symbol"==bt(t)?t:t+""}function wt(e,t,n){return t=Ot(t),function(e,t){if(t&&("object"===bt(t)||"function"==typeof t))return t;if(void 0!==t)throw new TypeError("Derived constructors may only return object or undefined");return function(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}(e)}(e,Ct()?Reflect.construct(t,n||[],Ot(e).constructor):t.apply(e,n))}function Ct(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){})))}catch(e){}return(Ct=function(){return!!e})()}function Ot(e){return Ot=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(e){return e.__proto__||Object.getPrototypeOf(e)},Ot(e)}function St(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),Object.defineProperty(e,"prototype",{writable:!1}),t&&Tt(e,t)}function Tt(e,t){return Tt=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(e,t){return e.__proto__=t,e},Tt(e,t)}var Pt=function(e){function t(e){return mt(this,t),wt(this,t,[e])}return St(t,e),gt(t,[{key:"name",get:function(){return"VideoSubtitlesComponent"}},{key:"template",get:function(){return yt()}},{key:"regions",value:function(){return{subtitles:{el:".subtitles-list-region",replaceElement:!0}}}},{key:"viewOptions",value:function(){return{headerText:this.options.headerText,emptyStateText:this.options.emptyStateText}}},{key:"onRender",value:function(){this.showChildView("subtitles",new jt({collection:this.collection,channelName:this.options.channelName,isClickViewContent:this.options.isClickViewContent}))}}])}(u.Q.wA),jt=function(e){function t(e){return mt(this,t),wt(this,t,[e])}return St(t,e),gt(t,[{key:"name",get:function(){return"VideoSubtitlesComponentCollection"}},{key:"lang",get:function(){return"libraryEditor.videoSubtitles"}},{key:"childView",get:function(){return ft}},{key:"childViewOptions",get:function(){var e=this;return{isClickViewContent:this.options.isClickViewContent,onClickDelete:function(t){return e.onClickDelete(t)}}}},{key:"onClickDelete",value:function(e){var t=this;this.options.isClickViewContent||new ht.M({title:a.T.getPhrase(this.lang,"removeHeading"),text:a.T.getPhrase(this.lang,"removeBody",{language:this.getEnglishName(e)}),buttons:[{text:a.T.getPhrase(this.lang,"remove"),className:"btn btn-danger",success:!0},{text:a.T.getPhrase(this.lang,"cancel"),className:"btn btn-link",close:!0}],channelName:"".concat(this.name).concat(this.cid)}).render().done((function(){o.Radio.channel(t.options.channelName).trigger("delete:subtitle",e.get("id"))}))}},{key:"getEnglishName",value:function(e){return et(e.toJSON(),e.collection.toJSON())}}])}(u.Q.$W),Et=n(40622),Rt=n(26457),Lt=n(56906),Vt=n(95061),_t=n(51069),It=n.n(_t);function Nt(e){return Nt="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},Nt(e)}function xt(e,t){for(var n=0;n<t.length;n++){var o=t[n];o.enumerable=o.enumerable||!1,o.configurable=!0,"value"in o&&(o.writable=!0),Object.defineProperty(e,Ut(o.key),o)}}function Ut(e){var t=function(e,t){if("object"!=Nt(e)||!e)return e;var n=e[Symbol.toPrimitive];if(void 0!==n){var o=n.call(e,"string");if("object"!=Nt(o))return o;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}(e);return"symbol"==Nt(t)?t:t+""}function Dt(e,t,n){return t=At(t),function(e,t){if(t&&("object"===Nt(t)||"function"==typeof t))return t;if(void 0!==t)throw new TypeError("Derived constructors may only return object or undefined");return function(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}(e)}(e,Bt()?Reflect.construct(t,n||[],At(e).constructor):t.apply(e,n))}function Bt(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){})))}catch(e){}return(Bt=function(){return!!e})()}function At(e){return At=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(e){return e.__proto__||Object.getPrototypeOf(e)},At(e)}function Mt(e,t){return Mt=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(e,t){return e.__proto__=t,e},Mt(e,t)}var Ft=function(e){function t(e){return function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,t),Dt(this,t,[e])}return function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),Object.defineProperty(e,"prototype",{writable:!1}),t&&Mt(e,t)}(t,e),n=t,b=[{key:"initialize",value:function(){this.initializeUploadServices(),this.bindDataListeners(),this.bindViewListeners(),this.bindFileSelectListeners(),ne.Si.initBackButton(),this.chapterDataService=l.u.getInstance(Y.Or.Chapter,this),this.videoDataService=l.u.getInstance(Y.Or.Video,this),this.linkDataService=l.u.getInstance(Y.Or.Link,this),this.resourceDataService=l.u.getInstance(Y.Or.Resource,this),this.subtitleDataService=l.u.getInstance(Y.Or.Subtitle,this),this.resourceUploads=[],this.resourceUploadCount=0}},{key:"name",get:function(){return"EditResourcesView"}},{key:"lang",get:function(){return"libraryEditor.editResources"}},{key:"title",get:function(){return this.model&&this.model.get("name")||"Edit Resources"}},{key:"template",get:function(){return It()}},{key:"props",get:function(){return["videoDataService"]}},{key:"className",get:function(){return"bg-white p-3 rounded"}},{key:"channelName",get:function(){return ne.N0.generateUniqueChannelName(this)}},{key:"behaviors",get:function(){return[{behaviorClass:W._7}]}},{key:"requiredResources",get:function(){return{currentUser:te.K.currentUser,libraries:Vt.T.libraries}}},{key:"initializeUploadServices",value:function(){this.resourceUploadService=new h.L1,this.listenTo(Y.jr.RESOURCE_UPLOAD,f.S.UPLOAD_COMPLETE,this.onResourceUploadComplete),this.subtitleUploadService=new h.M_,this.listenTo(Y.jr.SUBTITLE_UPLOAD,f.S.UPLOAD_COMPLETE,this.onSubtitleUploadComplete)}},{key:"bindDataListeners",value:function(){this.listenTo(Y.Vk.VIDEO,"".concat(Y.M_.VIDEOS,":").concat(this.options.videoId,":sync"),this.render),this.listenTo(Y.Vk.VIDEO,"".concat(Y.M_.VIDEOS,":").concat(this.options.videoId,":error"),this.onVideoDataError),this.listenTo(Y.Vk.VIDEO,"".concat(Y.M_.VIDEO_HAS_PHYSICAL_CHAPTERS,":").concat(this.options.videoId,":sync"),this.render),this.listenTo(Y.Vk.CHAPTER,"".concat(Y.M_.CONCATENATE_STATUS,":").concat(this.options.videoId,":error"),this.onConcatenateDataError)}},{key:"bindViewListeners",value:function(){this.listenTo(this.channelName,"add:link",this.onAddLink),this.listenTo(this.channelName,"delete:subtitle",this.onDeleteSubtitle),this.listenTo(this.channelName,"delete:resource",this.onDeleteResource),this.listenTo(this.channelName,"delete:link",this.onDeleteLink),this.listenTo(this.channelName,"cancel:upload",this.onCancelUpload),this.listenTo(this.channelName,Et.NT.MergeChapters,this.onMergeChapters)}},{key:"bindFileSelectListeners",value:function(){this.listenTo(this.getSubtitleSelectChannelName(),f.S.FILES_SELECTED,this.onSubtitleFilesAdded),this.listenTo(this.getResourceSelectChannelName(),f.S.FILES_SELECTED,this.onResourceFilesAdded)}},{key:"getSubtitleSelectChannelName",value:function(){return"".concat(this.name).concat(this.cid,"subtitles")}},{key:"getResourceSelectChannelName",value:function(){return"".concat(this.name).concat(this.cid,"resources")}},{key:"onVideoDataError",value:function(e){switch(e.type){case s.h.NotFound:u.Q.Ry.throw(new Lt.l1);break;case s.h.Forbidden:u.Q.Ry.throw(new Lt.aV)}}},{key:"onConcatenateDataError",value:function(e){e.type===s.h.NotFound&&(this.concatenateRequestNotFound=!0,this.render())}},{key:"onSubtitleFilesAdded",value:function(e,t){e.length>5-this.model.subtitles.length?u.Q.Ry.throw(new G(5)):(t&&(this.interactionType=t),this.subtitleUploadService.addFiles(e))}},{key:"onResourceFilesAdded",value:function(e,t){e.length>25-this.model.resources.length?u.Q.Ry.throw(new M(25)):(this.resourceUploadCount+=e.length,t&&(this.interactionType=t),this.resourceUploadService.addFiles(e))}},{key:"onAddLink",value:function(e){var t=this;25!==this.model.links.length&&(this.model.links.length+1===25&&this.renderAddLinks(!0),this.linkDataService.addLink(this.model.get("id"),e,(function(e){t.model.links.add(e),t.render()})))}},{key:"regions",value:function(){return{tabs:{el:".tab-region",partialLoading:X.LP.EditVideoTabs},subtitlesUpload:{el:".subtitles-upload-region",partialLoading:X.LP.EditVideoUploadArea},subtitlesUploadList:".subtitles-upload-list-region",customerSubtitlesList:".customer-subtitles-list-region",clickViewSubtitlesList:".clickview-subtitles-list-region",resourcesUpload:{el:".resources-upload-region",partialLoading:X.LP.EditVideoUploadArea},resourcesUploadList:".resources-upload-list-region",customerResourcesList:".customer-resources-list-region",clickViewResourcesList:".clickview-resources-list-region",addLinks:{el:".add-links-region",partialLoading:X.LP.EditVideoUploadArea},customerLinkList:".customer-link-list-region",clickViewLinkList:".clickview-link-list-region"}}},{key:"startPollingConcatenation",value:function(){if(this.concatenateRequest){var e=[Rt.Um.SingleFile,Rt.Um.ConcatenationFailed];i.contains(e,this.concatenateRequest.get("status"))||this.pollConcatenation()}}},{key:"pollConcatenation",value:function(){var e=this;this.isDestroyed()||this.chapterDataService.getConcatenateRequest(this.options.videoId,(function(t){if(e.concatenateRequest=t,e.concatenateRequest.get("status")!==Rt.Um.SingleFile)return setTimeout((function(){return e.pollConcatenation()}),5e3),void e.renderConcatenationRequest();e.videoDataService.clearPhysicialChaptersCache(),e.videoDataService.hasPhysicalChapters(e.options.videoId,(function(t){e.hasPhysicalChapters=t,e.renderSubtitleFileSelect()}))}))}},{key:"onDeleteResource",value:function(e){var t=this;this.resourceDataService.deleteResource(this.options.videoId,e,(function(){t.logDeleteAction(p.py.Resource,e),t.render()}))}},{key:"onDeleteSubtitle",value:function(e){var t=this;this.subtitleDataService.deleteSubtitle(this.options.videoId,e,(function(){t.logDeleteAction(p.py.Subtitle,e),t.render()}))}},{key:"onDeleteLink",value:function(e){var t=this;this.linkDataService.deleteLink(this.options.videoId,e,(function(){t.logDeleteAction(p.py.Link,e),t.render()}))}},{key:"onCancelUpload",value:function(e){this.resourceUploadService.cancelUpload(e),this.subtitleUploadService.cancelUpload(e)}},{key:"onResourceUploadComplete",value:function(e){var t=this,n=e.toJSON(),o={fileId:n.fileInfo.id,uploadId:n.file.cvUpload.uploadId,name:n.fileInfo.name,type:d.v.getResourceType(n.fileInfo.extension),extension:n.fileInfo.extension,fileSize:n.fileInfo.size,fileUrl:n.fileInfo.url,ingestUrl:n.file.cvUpload.ingestUrl,metaData:{type:d.v.getResourceType(n.fileInfo.extension)},contribution:!1,url:n.fileInfo.url,fileIdType:2};this.resourceUploads.push(o),this.resourceUploadCount--,this.resourceUploadCount>0||(this.resourceDataService.addResource(this.options.videoId,this.resourceUploads,(function(e){t.model.resources.add(e);var n=t.resourceUploadService.getCollection().filter((function(t){return t.get("fileInfo").id===e.get("fileId")}));t.resourceUploadService.getCollection().remove(n),t.logUploadAction(e),t.render()})),this.resourceUploads=[])}},{key:"onSubtitleUploadComplete",value:function(e){var t=this,n=$.Deferred(),i=new Ye({defaultLanguage:{code:"en",name:"English"},promise:n});n.done((function(n){var o=e.toJSON(),i={fileId:o.fileInfo.id,name:n.name,language:n.code,type:d.v.getResourceType(o.fileInfo.extension),fileIdType:2};t.subtitleDataService.addSubtitle(t.options.videoId,i,(function(n){t.model.subtitles.add(n),t.subtitleUploadService.getCollection().remove(e),t.logUploadAction(n),t.render()}))})).fail((function(){t.subtitleUploadService.cancelUpload(e.get("id"))})),o.Radio.channel(r.G.POPUP).trigger(u.Q.Vy.SHOW_POPUP,i)}},{key:"logUploadAction",value:function(e){var t=e instanceof ee._?p.py.Resource:p.py.Subtitle,n=c.k.mapInteractionType(this.interactionType),o={location:p.LZ.EditVideoResources,actionType:p.Vw.Upload,entity:t,descriptor:n};c.k.logUserAction(e,o)}},{key:"logDeleteAction",value:function(e,t){var n={location:p.LZ.EditVideoResources,actionType:p.Vw.Delete,entity:e},o={id:t,parentId:+this.options.videoId};c.k.logUserAction(o,n)}},{key:"onMergeChapters",value:function(){var e=this;this.chapterDataService.addConcatenateRequest(this.options.videoId,(function(){e.pollConcatenation()}))}},{key:"renderTabs",value:function(){var e=ne.BK.canEditVideo(this.model);this.showChildView("tabs",new ve.W({model:this.model,tabs:ne.Si.getEditVideoTabs(this.options.videoId,e),activeTab:".edit-resources-subtitles-applink",context:"resources",folder:this.folder,libraries:this.libraries}))}},{key:"renderSubtitleFileSelect",value:function(){if(this.hasPhysicalChapters.get("value"))this.renderConcatenationRequest();else{var e=a.T.getPhrase(this.lang,"subtitlesLimit",{limit:5});this.showChildView("subtitlesUpload",new L({title:this.isClickViewContent?a.T.getPhrase(this.lang,"customerSubtitles"):a.T.getPhrase(this.lang,"subtitles"),description:a.T.getPhrase(this.lang,"subtitlesInfo"),alternateText:a.T.getPhrase(this.lang,"subtitlesAlternative"),mimeType:d.l.SUBTITLES,channelName:this.getSubtitleSelectChannelName(),acceptMultiple:!1,limitText:this.model.subtitles.length>=5?e:null,isClickViewContent:this.isClickViewContent}))}}},{key:"renderSubtitleUploadList",value:function(){var e=this.subtitleUploadService.getCollection();this.showChildView("subtitlesUploadList",new Ae({collection:e,channelName:this.channelName}))}},{key:"renderSubtitlesLists",value:function(){this.renderClickViewSubtitlesList(),this.renderCustomerSubtitlesList()}},{key:"renderClickViewSubtitlesList",value:function(){if(this.isClickViewContent){var e=ne.BK.filterObjectsByOwnerType(this.model.subtitles,y.N.ClickView);this.showChildView("clickViewSubtitlesList",new Pt({collection:e,channelName:this.channelName,isClickViewContent:!0,headerText:a.T.getPhrase(this.lang,"clickViewSubtitles"),emptyStateText:e.models.length?"":a.T.getPhrase(this.lang,"clickViewSubtitlesEmpty")}))}}},{key:"renderCustomerSubtitlesList",value:function(){this.showChildView("customerSubtitlesList",new Pt({collection:ne.BK.filterObjectsByOwnerType(this.model.subtitles,y.N.Customer,this.currentUser.get("customerId")),channelName:this.channelName}))}},{key:"renderConcatenationRequest",value:function(){this.isRendered()&&this.showChildView("subtitlesUpload",new be.r({type:this.isClickViewContent?"clickViewSubtitles":"subtitles",channelName:this.channelName,model:this.concatenateRequest}))}},{key:"renderResourcesFileSelect",value:function(){var e=a.T.getPhrase(this.lang,"resourcesLimit",{limit:25});this.showChildView("resourcesUpload",new L({title:this.isClickViewContent?a.T.getPhrase(this.lang,"customerResources"):a.T.getPhrase(this.lang,"resources"),description:a.T.getPhrase(this.lang,"resourcesDescription"),alternateText:a.T.getPhrase(this.lang,"resourcesAlternative"),mimeType:d.l.RESOURCES,channelName:this.getResourceSelectChannelName(),limitText:this.model.resources.length>=25?e:null,isClickViewContent:this.isClickViewContent}))}},{key:"renderResourcesUploadList",value:function(){var e=this.resourceUploadService.getCollection();this.showChildView("resourcesUploadList",new Ae({collection:e,channelName:this.channelName}))}},{key:"renderResourcesLists",value:function(){this.renderClickViewResourcesList(),this.renderCustomerResourcesList()}},{key:"renderClickViewResourcesList",value:function(){if(this.isClickViewContent){var e=ne.BK.filterObjectsByOwnerType(this.model.resources,y.N.ClickView);this.showChildView("clickViewResourcesList",new Xe.c({model:this.model,customCollection:e,editable:!1,videoId:this.options.videoId,parentChannelName:this.channelName,headerText:a.T.getPhrase(this.lang,"clickViewResources"),emptyStateText:e.models.length?"":a.T.getPhrase(this.lang,"clickViewResourcesEmpty"),analyticsOptions:{location:p.LZ.EditVideoResources}}))}}},{key:"renderCustomerResourcesList",value:function(){this.showChildView("customerResourcesList",new Xe.h({collection:ne.BK.filterObjectsByOwnerType(this.model.resources,y.N.Customer,this.currentUser.get("customerId")),editable:!0,videoId:this.options.videoId,channelName:this.channelName,analyticsOptions:{location:p.LZ.EditVideoResources}}))}},{key:"renderAddLinks",value:function(e){this.showChildView("addLinks",new ye({collection:this.model.get("links"),channelName:this.channelName,hide:e||25===this.model.get("links").length,limit:25}))}},{key:"renderLinkLists",value:function(){var e={channelName:this.channelName,analyticsOptions:{location:p.LZ.EditVideoResources},videoId:this.options.videoId};this.renderClickViewLinkList(e),this.renderCustomerLinkList(e)}},{key:"renderClickViewLinkList",value:function(e){if(this.isClickViewContent){var t=ne.BK.filterObjectsByOwnerType(this.model.links,y.N.ClickView);this.showChildView("clickViewLinkList",new me.c(Object.assign(Object.assign({},e),{headingText:"Resource links by ClickView",emptyStateText:t.models.length?"":"There are no ClickView links for this video",customCollection:t,editable:!1})))}}},{key:"renderCustomerLinkList",value:function(e){this.showChildView("customerLinkList",new me.c(Object.assign(Object.assign({},e),{customCollection:ne.BK.filterObjectsByOwnerType(this.model.links,y.N.Customer,this.currentUser.get("customerId")),editable:!0})))}},{key:"fetchData",value:function(){var e=this;this.model=this.videoDataService.getVideo(this.options.videoId),this.hasPhysicalChapters=this.videoDataService.hasPhysicalChapters(this.options.videoId),this.isClickViewContent=this.model&&!ne.BK.canEditVideo(this.model),this.folder=this.model&&this.model.categories.first(),this.hasPhysicalChapters&&this.hasPhysicalChapters.get("value")&&!this.getConcatenateRequestSent&&(this.chapterDataService.getConcatenateRequest(this.options.videoId,(function(t){e.concatenateRequest=t,e.render()})),this.getConcatenateRequestSent=!0)}},{key:"shouldRender",value:function(){return!(!this.model||!this.hasPhysicalChapters||this.hasPhysicalChapters.get("value")&&!this.concatenateRequest&&!this.concatenateRequestNotFound)}},{key:"onBeforeRender",value:function(){return this.fetchData(),this.shouldRender()}},{key:"viewOptions",value:function(){return{isClickViewContent:this.isClickViewContent}}},{key:"onRender",value:function(){this.renderTabs(),this.renderSubtitleFileSelect(),this.renderSubtitleUploadList(),this.renderSubtitlesLists(),this.renderResourcesFileSelect(),this.renderResourcesUploadList(),this.renderResourcesLists(),this.renderAddLinks(),this.renderLinkLists(),this.startPollingConcatenation()}},{key:"onDestroy",value:function(){this.subtitleUploadService.destroy(),this.resourceUploadService.destroy()}}],b&&xt(n.prototype,b),Object.defineProperty(n,"prototype",{writable:!1}),n;var n,b}(u.Q.G7)},36022:function(e,t,n){"use strict";n.d(t,{M:function(){return k}});var o=n(48088),i=n(39479),r=n(11306),s=n(31647),l=n(17391),a=n(63791),u=n(93569),c=n(94407),p=n.n(c),f={svg:"QbFgf",typeaheadContainer:"Y3ErG",disabled:"VTCM4"};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 d(e,t){for(var n=0;n<t.length;n++){var o=t[n];o.enumerable=o.enumerable||!1,o.configurable=!0,"value"in o&&(o.writable=!0),Object.defineProperty(e,y(o.key),o)}}function y(e){var t=function(e,t){if("object"!=h(e)||!e)return e;var n=e[Symbol.toPrimitive];if(void 0!==n){var o=n.call(e,"string");if("object"!=h(o))return o;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}(e);return"symbol"==h(t)?t:t+""}function b(e,t,n){return t=v(t),function(e,t){if(t&&("object"===h(t)||"function"==typeof t))return t;if(void 0!==t)throw new TypeError("Derived constructors may only return object or undefined");return function(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}(e)}(e,m()?Reflect.construct(t,n||[],v(e).constructor):t.apply(e,n))}function m(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){})))}catch(e){}return(m=function(){return!!e})()}function v(e){return v=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(e){return e.__proto__||Object.getPrototypeOf(e)},v(e)}function g(e,t){return g=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(e,t){return e.__proto__=t,e},g(e,t)}var k=function(e){function t(e){return function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,t),b(this,t,[e])}return function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),Object.defineProperty(e,"prototype",{writable:!1}),t&&g(e,t)}(t,e),n=t,(c=[{key:"name",get:function(){return"SearchTypeaheadComponent"}},{key:"template",get:function(){return p()}},{key:"className",get:function(){return"search-container ".concat(f.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||s.Q.Ry.throw(new r.H("Either pass a model or a channelName to access the typeahead selection")),this.model||(this.model=new s.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,t,n;return e={},t="[name=".concat(this.options.inputName,"]"),n={observe:this.options.stickItProperty,setOptions:{validate:!0}},(t=y(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,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,t){var n;e.preventDefault(),n="string"==typeof t?t:t.title||t.name||t.query,this.model.set(this.options.stickItProperty,n),this.parentChannel&&this.options.selectEvent&&this.parentChannel.trigger(this.options.selectEvent,t),this.onSubmit(e),this.toggleRemove()}},{key:"onSubmit",value:function(e){var t=this;if(e.preventDefault(),!this.isDestroyed()&&this.getTypeaheadActionOptions().clearOnSelect)return this.getUI("input").typeahead("close"),setTimeout((function(){t.model.clear(),t.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 i.isArray(this.options.typeaheadConfigs)?l.J.getSearchSources(this.options.typeaheadConfigs):l.J.getSearchSources([this.options.typeaheadConfigs])}},{key:"getTypeaheadOptions",value:function(){var e={minLength:1,highlight:!0};return this.options.typeaheadOptions?i.extend({},e,this.options.typeaheadOptions):e}},{key:"getTypeaheadActionOptions",value:function(){var e={clearOnSelect:!1};return i.isObject(this.options.actionOptions)?i.extend({},e,this.options.actionOptions):e}},{key:"bindOptionalCallbacks",value:function(){i.isObject(this.options.callbacks)&&(i.isFunction(this.options.callbacks.onRender)&&this.getUI("input").on("typeahead:render",i.bind(this.options.callbacks.onRender,this)),i.isFunction(this.options.callbacks.onInput)&&this.listenTo(this.model,"change:".concat(this.options.stickItProperty),this.options.callbacks.onInput),i.isFunction(this.options.callbacks.onBlur)&&this.getUI("input").on("blur",i.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",i.bind(this.onTypeaheadSelect,this)),this.bindOptionalCallbacks()}},{key:"toggleRemove",value:function(){this.shouldShowRemove()?this.$el.find(".remove").show():this.$el.find(".remove").hide()}},{key:"shouldShowRemove",value:function(){return!!this.options.editable&&(!!this.options.forceShowRemoveButton||this.options.removeEvent&&!!this.model.get(this.options.stickItProperty))}},{key:"viewOptions",value:function(){return Object.assign(Object.assign({styles:f},this.options),{showRemove:this.shouldShowRemove(),svgRemove:a.Nj.getSvg(a.vn.Close)})}},{key:"onRender",value:function(){var e=this;this.stickit(),this.initTypeahead(),this.initTypeaheadListeners(),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)}}])&&d(n.prototype,c),Object.defineProperty(n,"prototype",{writable:!1}),n;var n,c}(s.Q.wA)},44237:function(e,t,n){var o=n(32227);e.exports=(o.default||o).template({1:function(e,t,n,o,i){var r;return e.propertyIsEnumerable,'<p class="alert alert-warning mb-0">'+e.escapeExpression(e.lambda(null!=(r=null!=t?t.options:t)?r.limitText:r,t))+"</p>\n"},3:function(e,t,n,o,i){e.propertyIsEnumerable;var r,s=e.lambda,l=e.escapeExpression,a=null!=t?t:e.nullContext||{};return'<div class="file-drop '+l(s(null!=(r=null!=(r=null!=t?t.options:t)?r.styles:r)?r.fileDrop:r,t))+" p-2"+(null!=(r=n.if.call(a,null!=(r=null!=t?t.options:t)?r.limitText:r,{name:"if",hash:{},fn:e.program(4,i,0),inverse:e.noop,data:i}))?r:"")+'">\n <button class="browse btn btn-outline-dark me-2">'+l((n.lang||t&&t.lang||e.hooks.helperMissing).call(a,"browse",{name:"lang",hash:{},data:i}))+'</button>\n <span class="text-secondary align-middle">'+l(s(null!=(r=null!=t?t.options:t)?r.alternateText:r,t))+"</span>\n</div>\n"},4:function(e,t,n,o,i){return" col-6 "},compiler:[8,">= 4.3.0"],main:function(e,t,n,o,i){e.propertyIsEnumerable;var r,s=e.lambda;return"<h5>"+e.escapeExpression(s(null!=(r=null!=t?t.options:t)?r.title:r,t))+"</h5>\n<p>"+(null!=(r=s(null!=(r=null!=t?t.options:t)?r.description:r,t))?r:"")+"</p>\n"+(null!=(r=n.if.call(null!=t?t:e.nullContext||{},null!=(r=null!=t?t.options:t)?r.limitText:r,{name:"if",hash:{},fn:e.program(1,i,0),inverse:e.program(3,i,0),data:i}))?r:"")},useData:!0})},61571:function(e,t,n){var o=n(32227);e.exports=(o.default||o).template({compiler:[8,">= 4.3.0"],main:function(e,t,n,o,i){e.propertyIsEnumerable;var r,s,l=e.escapeExpression;return'<div class="'+l("function"==typeof(s=null!=(s=n.dropMask||(null!=t?t.dropMask:t))?s:e.hooks.helperMissing)?s.call(null!=t?t:e.nullContext||{},{name:"dropMask",hash:{},data:i}):s)+'">\n <h3>'+l(e.lambda(null!=(r=null!=t?t.options:t)?r.fileDropText:r,t))+"</h3>\n</div>"},useData:!0})},97237:function(e,t,n){var o=n(32227);e.exports=(o.default||o).template({1:function(e,t,n,o,i){e.propertyIsEnumerable;var r,s=e.lambda;return'<span class="d-inline-block align-middle me-2 '+e.escapeExpression(s(null!=(r=null!=(r=null!=t?t.options:t)?r.styles:r)?r.svgContainer:r,t))+' float-end text-success">'+(null!=(r=s(null!=(r=null!=t?t.options:t)?r.tickSvg:r,t))?r:"")+"</span>\n"},3:function(e,t,n,o,i){var r;return e.propertyIsEnumerable,'<span class="d-inline-block align-middle me-2 '+e.escapeExpression(e.lambda(null!=(r=null!=(r=null!=t?t.options:t)?r.styles:r)?r.svgContainer:r,t))+' cursor-pointer cancel-upload btn-close float-end" role="button" aria-label="Close"></span>\n'},compiler:[8,">= 4.3.0"],main:function(e,t,n,o,i){e.propertyIsEnumerable;var r,s,l=e.lambda,a=e.escapeExpression,u=null!=t?t:e.nullContext||{},c=e.hooks.helperMissing,p="function";return'<span class="d-inline-block align-middle me-2 '+a(l(null!=(r=null!=(r=null!=t?t.options:t)?r.styles:r)?r.svgContainer:r,t))+'">'+(null!=(r=l(null!=(r=null!=t?t.options:t)?r.svg:r,t))?r:"")+'</span>\n<span class="align-middle">\n '+a(typeof(s=null!=(s=n.name||(null!=t?t.name:t))?s:c)===p?s.call(u,{name:"name",hash:{},data:i}):s)+"\n</span>\n"+(null!=(r=n.if.call(u,null!=(r=null!=t?t.options:t)?r.finished:r,{name:"if",hash:{},fn:e.program(1,i,0),inverse:e.program(3,i,0),data:i}))?r:"")+'\n<div class="progress my-2 '+a(l(null!=(r=null!=(r=null!=t?t.options:t)?r.styles:r)?r.progress:r,t))+' mt-2">\n <div class="progress-bar bg-info" style="width: '+a(typeof(s=null!=(s=n.progress||(null!=t?t.progress:t))?s:c)===p?s.call(u,{name:"progress",hash:{},data:i}):s)+'%" aria-valuenow="'+a(typeof(s=null!=(s=n.progress||(null!=t?t.progress:t))?s:c)===p?s.call(u,{name:"progress",hash:{},data:i}):s)+'" aria-valuemin="0" aria-valuemax="100"></div>\n</div>'},useData:!0})},85985:function(e,t,n){var o=n(32227);e.exports=(o.default||o).template({1:function(e,t,n,o,i){e.propertyIsEnumerable;var r,s=e.lambda,l=e.escapeExpression;return'<a class="float-end '+l(s(null!=(r=null!=(r=null!=t?t.options:t)?r.styles:r)?r.svgContainer:r,t))+" "+l(s(null!=(r=null!=(r=null!=t?t.options:t)?r.styles:r)?r.actionSvg:r,t))+' text-secondary delete">'+(null!=(r=s(null!=(r=null!=t?t.options:t)?r.trashSvg:r,t))?r:"")+"</a>\n"},compiler:[8,">= 4.3.0"],main:function(e,t,n,o,i){e.propertyIsEnumerable;var r,s,l=e.lambda,a=e.escapeExpression,u=null!=t?t:e.nullContext||{};return'<span class="d-inline-block align-middle me-2 '+a(l(null!=(r=null!=(r=null!=t?t.options:t)?r.styles:r)?r.svgContainer:r,t))+'">'+(null!=(r=l(null!=(r=null!=t?t.options:t)?r.svg:r,t))?r:"")+'</span>\n<a href="'+a("function"==typeof(s=null!=(s=n.url||(null!=t?t.url:t))?s:e.hooks.helperMissing)?s.call(u,{name:"url",hash:{},data:i}):s)+"?name="+a(l(null!=(r=null!=t?t.options:t)?r.name:r,t))+'" class="align-middle">\n '+a(l(null!=(r=null!=t?t.options:t)?r.name:r,t))+"\n</a>\n"+(null!=(r=n.unless.call(u,null!=(r=null!=t?t.options:t)?r.isClickViewContent:r,{name:"unless",hash:{},fn:e.program(1,i,0),inverse:e.noop,data:i}))?r:"")},useData:!0})},41165:function(e,t,n){var o=n(32227);e.exports=(o.default||o).template({1:function(e,t,n,o,i){var r;return e.propertyIsEnumerable,'<p class="alert alert-warning col-8">'+e.escapeExpression((n.lang||t&&t.lang||e.hooks.helperMissing).call(null!=t?t:e.nullContext||{},"limit",{name:"lang",hash:{limit:null!=(r=null!=t?t.options:t)?r.limit:r},data:i}))+"</p>\n"},3:function(e,t,n,o,i){e.propertyIsEnumerable;var r=null!=t?t:e.nullContext||{},s=e.hooks.helperMissing,l=e.escapeExpression;return"<p>"+l((n.lang||t&&t.lang||s).call(r,"subheading",{name:"lang",hash:{},data:i}))+'</p>\n<div class="form-group mb-1">\n <label for="url">'+l((n.lang||t&&t.lang||s).call(r,"urlLabel",{name:"lang",hash:{},data:i}))+'</label>\n <input name="url" id="url" class="form-control" type="text" placeholder="'+l((n.lang||t&&t.lang||s).call(r,"urlPlaceholder",{name:"lang",hash:{},data:i}))+'">\n <div class="form-feedback"></div>\n</div>\n<div class="form-group mb-1" id="name-container" style="display: none;">\n <input type="text" class="form-control" name="name" placeholder="'+l((n.lang||t&&t.lang||s).call(r,"namePlaceholder",{name:"lang",hash:{},data:i}))+'">\n <div class="form-feedback"></div>\n</div>\n<div class="attach-btn-region"></div>\n'},compiler:[8,">= 4.3.0"],main:function(e,t,n,o,i){var r;return e.propertyIsEnumerable,'<h5 class="pt-2">Resource links</h5>\n'+(null!=(r=n.if.call(null!=t?t:e.nullContext||{},null!=(r=null!=t?t.options:t)?r.hide:r,{name:"if",hash:{},fn:e.program(1,i,0),inverse:e.program(3,i,0),data:i}))?r:"")},useData:!0})},97781:function(e,t,n){var o=n(32227);e.exports=(o.default||o).template({1:function(e,t,n,o,i){var r;return e.propertyIsEnumerable,null!=(r=n.if.call(null!=t?t:e.nullContext||{},null!=(r=null!=t?t.options:t)?r.progress:r,{name:"if",hash:{},fn:e.program(2,i,0),inverse:e.noop,data:i}))?r:""},2:function(e,t,n,o,i){e.propertyIsEnumerable;var r,s=e.escapeExpression;return' <span class="m-3 text-secondary">'+s(e.lambda(null!=(r=null!=t?t.options:t)?r.progress:r,t))+'</span>\n <p class="pt-2">'+s((n.lang||t&&t.lang||e.hooks.helperMissing).call(null!=t?t:e.nullContext||{},"processing",{name:"lang",hash:{},data:i}))+"</p>\n"},4:function(e,t,n,o,i){var r;return e.propertyIsEnumerable,null!=(r=n.if.call(null!=t?t:e.nullContext||{},null!=(r=null!=t?t.options:t)?r.failed:r,{name:"if",hash:{},fn:e.program(5,i,0),inverse:e.noop,data:i}))?r:""},5:function(e,t,n,o,i){return e.propertyIsEnumerable,'<p class="pt-2 text-danger">'+e.escapeExpression((n.lang||t&&t.lang||e.hooks.helperMissing).call(null!=t?t:e.nullContext||{},"failed",{name:"lang",hash:{},data:i}))+"</p>\n"},compiler:[8,">= 4.3.0"],main:function(e,t,n,o,i){e.propertyIsEnumerable;var r,s=e.lambda,l=e.escapeExpression;return"<h4>"+l(s(null!=(r=null!=(r=null!=t?t.options:t)?r.componentOptions:r)?r.heading:r,t))+"</h4>\n<p>"+l(s(null!=(r=null!=(r=null!=t?t.options:t)?r.componentOptions:r)?r.line1:r,t))+"</p>\n<p>"+l(s(null!=(r=null!=(r=null!=t?t.options:t)?r.componentOptions:r)?r.line2:r,t))+'</p>\n<div class="btn-region"></div>\n'+(null!=(r=n.if.call(null!=t?t:e.nullContext||{},null!=(r=null!=t?t.options:t)?r.processing:r,{name:"if",hash:{},fn:e.program(1,i,0),inverse:e.program(4,i,0),data:i}))?r:"")},useData:!0})},43791:function(e,t,n){var o=n(32227);e.exports=(o.default||o).template({compiler:[8,">= 4.3.0"],main:function(e,t,n,o,i){var r;return e.propertyIsEnumerable,'<h1 class="h3">\n '+e.escapeExpression("function"==typeof(r=null!=(r=n.name||(null!=t?t.name:t))?r:e.hooks.helperMissing)?r.call(null!=t?t:e.nullContext||{},{name:"name",hash:{},data:i}):r)+'\n</h2>\n<div class="breadcrumbs-region"></div>\n<div class="tabs-region ps-2"></div>'},useData:!0})},56730:function(e,t,n){var o=n(32227);e.exports=(o.default||o).template({compiler:[8,">= 4.3.0"],main:function(e,t,n,o,i){return e.propertyIsEnumerable,'<form>\n <div class="form-group">\n <label for="language">'+e.escapeExpression((n.lang||t&&t.lang||e.hooks.helperMissing).call(null!=t?t:e.nullContext||{},"label",{name:"lang",hash:{},data:i}))+'</label>\n <div class="typahead-region"></div>\n </div>\n</form>'},useData:!0})},71060:function(e,t,n){var o=n(32227);e.exports=(o.default||o).template({1:function(e,t,n,o,i){var r;return e.propertyIsEnumerable,e.escapeExpression(e.lambda(null!=(r=null!=t?t.options:t)?r.emptyStateText:r,t))},compiler:[8,">= 4.3.0"],main:function(e,t,n,o,i){var r;return e.propertyIsEnumerable,"<h5>"+e.escapeExpression(e.lambda(null!=(r=null!=t?t.options:t)?r.headerText:r,t))+"</h5>\n"+(null!=(r=n.if.call(null!=t?t:e.nullContext||{},null!=(r=null!=t?t.options:t)?r.emptyStateText:r,{name:"if",hash:{},fn:e.program(1,i,0),inverse:e.noop,data:i}))?r:"")+'\n<div class="subtitles-list-region"></div>'},useData:!0})},51069:function(e,t,n){var o=n(32227);e.exports=(o.default||o).template({1:function(e,t,n,o,i){return"col-5"},compiler:[8,">= 4.3.0"],main:function(e,t,n,o,i){e.propertyIsEnumerable;var r,s=null!=t?t:e.nullContext||{};return'<div class="tab-region"></div>\n\n<div class="row py-3">\n <div class="'+(null!=(r=n.if.call(s,null!=(r=null!=t?t.options:t)?r.isClickViewContent:r,{name:"if",hash:{},fn:e.program(1,i,0),inverse:e.noop,data:i}))?r:"")+'">\n <div class="clickview-subtitles-list-region"></div>\n </div>\n <div class="col-7">\n <div class="subtitles-upload-region"></div>\n <div class="subtitles-upload-list-region p-0 col-8"></div>\n <div class="customer-subtitles-list-region p-0 col-8"></div>\n </div>\n</div>\n\n<div class="row border-top py-3">\n <div class="'+(null!=(r=n.if.call(s,null!=(r=null!=t?t.options:t)?r.isClickViewContent:r,{name:"if",hash:{},fn:e.program(1,i,0),inverse:e.noop,data:i}))?r:"")+'">\n <div class="clickview-resources-list-region"></div>\n </div>\n <div class="col-7">\n <div class="resources-upload-region"></div>\n <div class="resources-upload-list-region p-0 col-8"></div>\n <div class="customer-resources-list-region p-0 col-8"></div>\n </div>\n</div>\n\n<div class="row border-top py-3">\n <div class="'+(null!=(r=n.if.call(s,null!=(r=null!=t?t.options:t)?r.isClickViewContent:r,{name:"if",hash:{},fn:e.program(1,i,0),inverse:e.noop,data:i}))?r:"")+'">\n <div class="clickview-link-list-region"></div>\n </div>\n <div class="col-7">\n <div class="add-links-region mb-2"></div>\n <div class="customer-link-list-region p-0 col-8"></div>\n </div>\n</div>'},useData:!0})},94407:function(e,t,n){var o=n(32227);e.exports=(o.default||o).template({1:function(e,t,n,o,i){var r;return e.propertyIsEnumerable,e.escapeExpression(e.lambda(null!=(r=null!=(r=null!=t?t.options:t)?r.styles:r)?r.disabled:r,t))},3:function(e,t,n,o,i){return"autofocus"},5:function(e,t,n,o,i){return"disabled"},compiler:[8,">= 4.3.0"],main:function(e,t,n,o,i){e.propertyIsEnumerable;var r,s=e.lambda,l=e.escapeExpression,a=null!=t?t:e.nullContext||{};return'<input\n name="'+l(s(null!=(r=null!=t?t.options:t)?r.inputName:r,t))+'"\n type="text"\n class="form-control '+(null!=(r=n.unless.call(a,null!=(r=null!=t?t.options:t)?r.editable:r,{name:"unless",hash:{},fn:e.program(1,i,0),inverse:e.noop,data:i}))?r:"")+" "+l(s(null!=(r=null!=t?t.options:t)?r.additionalClasses:r,t))+'"\n id="'+l(s(null!=(r=null!=t?t.options:t)?r.inputId:r,t))+'"\n autocomplete="off"\n placeholder="'+l(s(null!=(r=null!=t?t.options:t)?r.placeholderText:r,t))+'"\n '+(null!=(r=n.if.call(a,null!=(r=null!=t?t.options:t)?r.autofocus:r,{name:"if",hash:{},fn:e.program(3,i,0),inverse:e.noop,data:i}))?r:"")+"\n "+(null!=(r=n.unless.call(a,null!=(r=null!=t?t.options:t)?r.editable:r,{name:"unless",hash:{},fn:e.program(5,i,0),inverse:e.noop,data:i}))?r:"")+'\n></input>\n<span class="svg-container mb-2 '+l(s(null!=(r=null!=(r=null!=t?t.options:t)?r.styles:r)?r.svg:r,t))+' remove" style="display: none;">'+(null!=(r=s(null!=(r=null!=t?t.options:t)?r.svgRemove:r,t))?r:"")+"</span>"},useData:!0})}}]);
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
(self.webpackChunk_clickview_library_editor=self.webpackChunk_clickview_library_editor||[]).push([[7376],{57085:function(t,e,n){"use strict";n.d(e,{n:function(){return x}});var r=n(31647),o=n(57098),i=n(22557),u=n(86363),a=n.n(u);function c(t){return c="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},c(t)}function l(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}function s(t,e){for(var n=0;n<e.length;n++){var r=e[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(t,p(r.key),r)}}function f(t,e,n){return e&&s(t.prototype,e),n&&s(t,n),Object.defineProperty(t,"prototype",{writable:!1}),t}function p(t){var e=function(t,e){if("object"!=c(t)||!t)return t;var n=t[Symbol.toPrimitive];if(void 0!==n){var r=n.call(t,"string");if("object"!=c(r))return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(t)}(t);return"symbol"==c(e)?e:e+""}function b(t,e,n){return e=m(e),function(t,e){if(e&&("object"===c(e)||"function"==typeof e))return e;if(void 0!==e)throw new TypeError("Derived constructors may only return object or undefined");return function(t){if(void 0===t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return t}(t)}(t,y()?Reflect.construct(e,n||[],m(t).constructor):e.apply(t,n))}function y(){try{var t=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){})))}catch(t){}return(y=function(){return!!t})()}function m(t){return m=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(t){return t.__proto__||Object.getPrototypeOf(t)},m(t)}function d(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function");t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,writable:!0,configurable:!0}}),Object.defineProperty(t,"prototype",{writable:!1}),e&&v(t,e)}function v(t,e){return v=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(t,e){return t.__proto__=e,t},v(t,e)}var h=function(t){function e(){return l(this,e),b(this,e,arguments)}return d(e,t),f(e,[{key:"name",get:function(){return"BreadcrumbItemComponent"}},{key:"template",get:function(){return a()}},{key:"tagName",get:function(){return"li"}},{key:"className",get:function(){var t="breadcrumb-item";return this.model.get("active")&&(t+=" active"),t}},{key:"attributes",get:function(){return this.model.get("active")?{"aria-current":"page"}:{}}},{key:"appLinks",get:function(){return this.model.get("active")?{}:{a:this.model.get("appLink")}}},{key:"viewOptions",value:function(){return{isActive:this.model.get("active")}}}])}(r.Q.wA),g=function(t){function e(){return l(this,e),b(this,e,arguments)}return d(e,t),f(e,[{key:"name",get:function(){return"BreadcrumbComponentCollection"}},{key:"tagName",get:function(){return"ol"}},{key:"className",get:function(){return"breadcrumb m-0 p-0"}},{key:"childView",get:function(){return h}}])}(r.Q.$W),w=n(93933),k=n.n(w);function O(t){return O="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},O(t)}function j(t,e){for(var n=0;n<e.length;n++){var r=e[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(t,E(r.key),r)}}function E(t){var e=function(t,e){if("object"!=O(t)||!t)return t;var n=t[Symbol.toPrimitive];if(void 0!==n){var r=n.call(t,"string");if("object"!=O(r))return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(t)}(t);return"symbol"==O(e)?e:e+""}function _(t,e,n){return e=S(e),function(t,e){if(e&&("object"===O(e)||"function"==typeof e))return e;if(void 0!==e)throw new TypeError("Derived constructors may only return object or undefined");return function(t){if(void 0===t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return t}(t)}(t,P()?Reflect.construct(e,n||[],S(t).constructor):e.apply(t,n))}function P(){try{var t=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){})))}catch(t){}return(P=function(){return!!t})()}function S(t){return S=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(t){return t.__proto__||Object.getPrototypeOf(t)},S(t)}function C(t,e){return C=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(t,e){return t.__proto__=e,t},C(t,e)}var x=function(t){function e(t){return function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,e),_(this,e,[t])}return function(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function");t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,writable:!0,configurable:!0}}),Object.defineProperty(t,"prototype",{writable:!1}),e&&C(t,e)}(e,t),n=e,(u=[{key:"initialize",value:function(){this.getBreadcrumbs()}},{key:"name",get:function(){return"BreadcrumbsComponent"}},{key:"template",get:function(){return k()}},{key:"className",get:function(){return"d-inline-block"}},{key:"regions",value:function(){return{breadcrumbs:".breadcrumbs-region"}}},{key:"defaults",get:function(){return{customBreadcrumbs:[]}}},{key:"getBreadcrumbs",value:function(){var t=this;this.breadcrumbCollection=new r.Q.FE([]);var e,n=this.options.folder;do{if(!n)break;if(e=i.P.getParent(n.id,this.options.libraries),this.breadcrumbCollection.add(this.getBreadcrumb(n,!!e),{at:0}),!e)break;n=e}while(e);this.options.video&&this.breadcrumbCollection.add({name:this.options.video.get("name"),appLink:{application:o.OV.LIBRARY_EDITOR,action:o.eX.LibraryEditor.VIDEO_DETAILS,args:[this.options.video.id]}}),this.options.customBreadcrumbs&&this.options.customBreadcrumbs.forEach((function(e){return t.breadcrumbCollection.add(e)})),this.breadcrumbCollection.length&&this.breadcrumbCollection.last().set("active",!this.options.enableLastItemAppLink)}},{key:"getBreadcrumb",value:function(t,e){var n=e?o.eX.LibraryEditor.FOLDER:o.eX.LibraryEditor.LIBRARY;return{name:t.get("name"),appLink:{application:o.OV.LIBRARY_EDITOR,action:n,args:[t.id]}}}},{key:"onRender",value:function(){var t=new g({collection:this.breadcrumbCollection});this.showChildView("breadcrumbs",t)}}])&&j(n.prototype,u),Object.defineProperty(n,"prototype",{writable:!1}),n;var n,u}(r.Q.wA)},35630:function(t,e,n){"use strict";n.d(e,{n:function(){return m}});var r=n(39479),o=n(31647),i=n(92655),u=n.n(i),a={pillTabSelector:"lo5ex",pillItem:"Zschz",umm:"uD6rh"};function c(t){return c="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},c(t)}function l(t,e){for(var n=0;n<e.length;n++){var r=e[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(t,s(r.key),r)}}function s(t){var e=function(t,e){if("object"!=c(t)||!t)return t;var n=t[Symbol.toPrimitive];if(void 0!==n){var r=n.call(t,"string");if("object"!=c(r))return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(t)}(t);return"symbol"==c(e)?e:e+""}function f(t,e,n){return e=b(e),function(t,e){if(e&&("object"===c(e)||"function"==typeof e))return e;if(void 0!==e)throw new TypeError("Derived constructors may only return object or undefined");return function(t){if(void 0===t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return t}(t)}(t,p()?Reflect.construct(e,n||[],b(t).constructor):e.apply(t,n))}function p(){try{var t=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){})))}catch(t){}return(p=function(){return!!t})()}function b(t){return b=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(t){return t.__proto__||Object.getPrototypeOf(t)},b(t)}function y(t,e){return y=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(t,e){return t.__proto__=e,t},y(t,e)}var m=function(t){function e(t){return function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,e),f(this,e,[t])}return function(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function");t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,writable:!0,configurable:!0}}),Object.defineProperty(t,"prototype",{writable:!1}),e&&y(t,e)}(e,t),n=e,(o=[{key:"name",get:function(){return"TabsView"}},{key:"className",get:function(){var t="bg-white py-3 border-bottom";return this.options.className&&(t+=" ".concat(this.options.className)),t}},{key:"template",get:function(){return u()}},{key:"tagName",get:function(){return"nav"}},{key:"appLinks",get:function(){var t={};return this.options.tabs.forEach((function(e){return t[e.link.selector]=e.link.appLink})),t}},{key:"viewOptions",value:function(){var t=this.options.tabs.map((function(t){return Object.assign(Object.assign({},t),{link:t.link.selector.replace(".","")})}));return{styles:a,tabs:t}}},{key:"setActiveTab",value:function(){var t=this,e=!1;if(this.options.tabs.forEach((function(n){n.active=!1,n.link.selector===t.options.activeTab&&(n.active=!0,e=!0)})),!e){var n=r.first(this.options.tabs);n&&(n.active=!0)}}},{key:"onBeforeRender",value:function(){this.setActiveTab()}}])&&l(n.prototype,o),Object.defineProperty(n,"prototype",{writable:!1}),n;var n,o}(o.Q.wA)},86363:function(t,e,n){var r=n(32227);t.exports=(r.default||r).template({1:function(t,e,n,r,o){var i;return t.propertyIsEnumerable,'<span class="fw-bolder">'+t.escapeExpression("function"==typeof(i=null!=(i=n.name||(null!=e?e.name:e))?i:t.hooks.helperMissing)?i.call(null!=e?e:t.nullContext||{},{name:"name",hash:{},data:o}):i)+"</span>\n"},3:function(t,e,n,r,o){var i;return t.propertyIsEnumerable,"<a>"+t.escapeExpression("function"==typeof(i=null!=(i=n.name||(null!=e?e.name:e))?i:t.hooks.helperMissing)?i.call(null!=e?e:t.nullContext||{},{name:"name",hash:{},data:o}):i)+"</a>\n"},compiler:[8,">= 4.3.0"],main:function(t,e,n,r,o){var i;return t.propertyIsEnumerable,null!=(i=n.if.call(null!=e?e:t.nullContext||{},null!=(i=null!=e?e.options:e)?i.isActive:i,{name:"if",hash:{},fn:t.program(1,o,0),inverse:t.program(3,o,0),data:o}))?i:""},useData:!0})},93933:function(t,e,n){var r=n(32227);t.exports=(r.default||r).template({compiler:[8,">= 4.3.0"],main:function(t,e,n,r,o){return'<nav class="breadcrumbs-region" aria-label="breadcrumb"></nav>'},useData:!0})},92655:function(t,e,n){var r=n(32227);t.exports=(r.default||r).template({1:function(t,e,n,r,o,i,u){var a;return t.propertyIsEnumerable,null!=(a=n.unless.call(null!=e?e:t.nullContext||{},null!=e?e.hide:e,{name:"unless",hash:{},fn:t.program(2,o,0,i,u),inverse:t.noop,data:o}))?a:""},2:function(t,e,n,r,o,i,u){t.propertyIsEnumerable;var a,c=t.lambda,l=t.escapeExpression;return' <li class="p-0 '+(null!=(a=n.if.call(null!=e?e:t.nullContext||{},null!=e?e.active:e,{name:"if",hash:{},fn:t.program(3,o,0,i,u),inverse:t.program(5,o,0,i,u),data:o}))?a:"")+'">\n <a class="'+l(c(null!=e?e.link:e,e))+" cursor-pointer d-block text-decoration-none text-reset px-2 "+l(c(null!=(a=null!=(a=null!=u[1]?u[1].options:u[1])?a.styles:a)?a.pillItem:a,e))+'">\n '+l(c(null!=e?e.name:e,e))+"\n </a>\n </li>\n"},3:function(t,e,n,r,o){return"btn btn-dark"},5:function(t,e,n,r,o){return"btn btn-outline-dark"},compiler:[8,">= 4.3.0"],main:function(t,e,n,r,o,i,u){var a;return t.propertyIsEnumerable,'<ul class="list-unstyled d-inline-block m-0 d-flex '+t.escapeExpression(t.lambda(null!=(a=null!=(a=null!=e?e.options:e)?a.styles:a)?a.pillTabSelector:a,e))+'">\n'+(null!=(a=n.each.call(null!=e?e:t.nullContext||{},null!=(a=null!=e?e.options:e)?a.tabs:a,{name:"each",hash:{},fn:t.program(1,o,0,i,u),inverse:t.noop,data:o}))?a:"")+"</ul>"},useData:!0,useDepths:!0})}}]);
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
(self.webpackChunk_clickview_library_editor=self.webpackChunk_clickview_library_editor||[]).push([[7408],{8371:function(e,t,n){"use strict";var o;n.d(t,{b:function(){return o}}),function(e){e.AU="cv-ap-southeast-1",e.NZ="cv-ap-southeast-2",e.UK="cv-eu-west-1",e.US="cv-na-west-1"}(o||(o={}))},34629:function(e,t,n){"use strict";n.r(t),n.d(t,{SuggestAnEditView:function(){return ie}});var o=n(39479),i=n(21679),r=n(57857),a=n(99249),s=n(31647),l=n(52076),u=n(70065),c=n(8371),d=n(75459),p=n(10101),f=n(83665),h=n(26357),y=n(88172),g=n(57098),m=n(67670);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 b(e,t,n){return t=S(t),function(e,t){if(t&&("object"===v(t)||"function"==typeof t))return t;if(void 0!==t)throw new TypeError("Derived constructors may only return object or undefined");return function(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}(e)}(e,w()?Reflect.construct(t,n||[],S(e).constructor):t.apply(e,n))}function w(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){})))}catch(e){}return(w=function(){return!!e})()}function S(e){return S=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(e){return e.__proto__||Object.getPrototypeOf(e)},S(e)}function O(e,t){return O=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(e,t){return e.__proto__=t,e},O(e,t)}var k=function(e){function t(){return function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,t),b(this,t,arguments)}return function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),Object.defineProperty(e,"prototype",{writable:!1}),t&&O(e,t)}(t,e),n=t,Object.defineProperty(n,"prototype",{writable:!1}),n;var n}(s.Q.Hn),T=n(13102),M=n(48404),P=n(19226),E=n(93569),j=n(48088),V=n(56285),C=n(48726),x=n(29457),_=n(40622),R=n(7190),N=n(19098),I=n.n(N),D={metadataValue:"mvVSS"};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 G(e,t){for(var n=0;n<t.length;n++){var o=t[n];o.enumerable=o.enumerable||!1,o.configurable=!0,"value"in o&&(o.writable=!0),Object.defineProperty(e,U(o.key),o)}}function U(e){var t=function(e,t){if("object"!=B(e)||!e)return e;var n=e[Symbol.toPrimitive];if(void 0!==n){var o=n.call(e,"string");if("object"!=B(o))return o;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}(e);return"symbol"==B(t)?t:t+""}function A(e,t,n){return t=F(t),function(e,t){if(t&&("object"===B(t)||"function"==typeof t))return t;if(void 0!==t)throw new TypeError("Derived constructors may only return object or undefined");return function(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}(e)}(e,L()?Reflect.construct(t,n||[],F(e).constructor):t.apply(e,n))}function L(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){})))}catch(e){}return(L=function(){return!!e})()}function F(e){return F=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(e){return e.__proto__||Object.getPrototypeOf(e)},F(e)}function H(e,t){return H=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(e,t){return e.__proto__=t,e},H(e,t)}var K,Z=function(e){function t(e){return function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,t),A(this,t,[e])}return function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),Object.defineProperty(e,"prototype",{writable:!1}),t&&H(e,t)}(t,e),n=t,(o=[{key:"name",get:function(){return"SuggestEditComponent"}},{key:"template",get:function(){return I()}},{key:"tagName",get:function(){return"form"}},{key:"className",get:function(){return"mt-3"}},{key:"lang",get:function(){return"libraryEditor.suggestEdit"}},{key:"regions",value:function(){return{ratingSelect:{el:".rating-select-region",replaceElement:!0}}}},{key:"bindings",get:function(){return{"[name=suggestion]":{observe:"suggestion",setOptions:{validate:!0}},"[name=reason]":{observe:"reason",setOptions:{validate:!0}}}}},{key:"elements",get:function(){return{ratingValidation:".rating-form-feedback"}}},{key:"getMetadataValue",value:function(){return this.options.metadataType===_.pG.BroadcastDate?this.options.metadataValue?V.O.format(this.options.metadataValue,x.K4.FULL_YEAR):r.T.getPhrase(this.lang,"noMetadataValue"):this.options.metadataValue instanceof s.Q.FE?this.options.metadataValue.length?this.options.metadataValue.map((function(e){return e.get("name")})).join(", "):r.T.getPhrase(this.lang,"noMetadataValue"):this.options.metadataValue||r.T.getPhrase(this.lang,"noMetadataValue")}},{key:"getSuggestionPlaceholder",value:function(){return this.options.metadataType===_.pG.Other?r.T.getPhrase(this.lang,"otherSuggestionPlaceholder"):r.T.getPhrase(this.lang,"suggestionPlaceholder",{metadataType:R.uB.translateMetadataName(this.options.metadataType).toLowerCase()})}},{key:"renderRatingSelect",value:function(){this.options.ratingValidationMessage?this.getUI("ratingValidation").text(this.options.ratingValidationMessage).attr("style","display: block;"):this.getUI("ratingValidation").hide(),this.options.metadataType===_.pG.Rating&&this.showChildView("ratingSelect",new C.R({model:this.options.currentRating,collection:this.options.ratings,parentChannelName:this.options.channelName,hideHeaderText:!0,hideRemove:!0}))}},{key:"viewOptions",value:function(){return{styles:D,metadataValue:this.getMetadataValue(),useRatingSelect:this.options.metadataType===_.pG.Rating,isOtherType:this.options.metadataType===_.pG.Other,metadataType:R.uB.translateMetadataName(this.options.metadataType).toLowerCase(),suggestionPlaceholder:this.getSuggestionPlaceholder()}}},{key:"onRender",value:function(){this.renderRatingSelect(),this.stickit(),j.Validation.bind(this)}},{key:"onDestroy",value:function(){this.unstickit(),j.Validation.unbind(this)}}])&&G(n.prototype,o),Object.defineProperty(n,"prototype",{writable:!1}),n;var n,o}(s.Q.wA),Q=n(68249),z=n(60519);!function(e){e[e.Email=0]="Email"}(K||(K={}));var $=Object.assign(Object.assign({},z.c),{createSuggestEditNotification:function(e){return{_type:Q.k.SuggestEdit,groupId:e.groupId,receiverId:0,instanceRegion:e.instanceRegion,countryCode:e.countryCode,channels:[K.Email],data:{video:e.video,user:e.user,property:e.property,suggestion:e.suggestion,reason:e.reason,currentValue:e.currentValue}}}}),W=n(34651),q=n.n(W);function J(e){return J="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},J(e)}function Y(e,t){for(var n=0;n<t.length;n++){var o=t[n];o.enumerable=o.enumerable||!1,o.configurable=!0,"value"in o&&(o.writable=!0),Object.defineProperty(e,X(o.key),o)}}function X(e){var t=function(e,t){if("object"!=J(e)||!e)return e;var n=e[Symbol.toPrimitive];if(void 0!==n){var o=n.call(e,"string");if("object"!=J(o))return o;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}(e);return"symbol"==J(t)?t:t+""}function ee(e,t,n){return t=ne(t),function(e,t){if(t&&("object"===J(t)||"function"==typeof t))return t;if(void 0!==t)throw new TypeError("Derived constructors may only return object or undefined");return function(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}(e)}(e,te()?Reflect.construct(t,n||[],ne(e).constructor):t.apply(e,n))}function te(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){})))}catch(e){}return(te=function(){return!!e})()}function ne(e){return ne=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(e){return e.__proto__||Object.getPrototypeOf(e)},ne(e)}function oe(e,t){return oe=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(e,t){return e.__proto__=t,e},oe(e,t)}var ie=function(e){function t(e){return function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,t),ee(this,t,[e])}return function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),Object.defineProperty(e,"prototype",{writable:!1}),t&&oe(e,t)}(t,e),n=t,(s=[{key:"initialize",value:function(){this.getViewModel(),this.videoDataService=i.u.getInstance(g.Or.Video,this),this.ratingsDataService=i.u.getInstance(g.Or.Ratings,this),this.notificationDataService=i.u.getInstance(g.Or.Notifications,this),this.selectedMetadata=new k,this.bindListeners()}},{key:"name",get:function(){return"SuggestAnEditView"}},{key:"template",get:function(){return q()}},{key:"tagName",get:function(){return"form"}},{key:"className",get:function(){return"form-group"}},{key:"lang",get:function(){return"libraryEditor.suggestAnEdit"}},{key:"title",get:function(){return r.T.getPhrase(this.lang,"title")}},{key:"channelName",get:function(){return E.N0.generateUniqueChannelName(this)}},{key:"viewModelName",get:function(){return"".concat(this.name,":").concat(this.options.videoId)}},{key:"regions",value:function(){return{dropdown:{el:".metadata-dropdown-region",replaceElement:!1},suggestEdit:{el:".suggest-edit-region",replaceElement:!0}}}},{key:"behaviors",get:function(){var e=this;return[{behaviorClass:p.Yw,title:r.T.getPhrase(this.lang,"heading"),spinnerButtonOptions:{model:this.spinnerModel=new m.v,channelName:this.channelName,buttonText:r.T.getPhrase(this.lang,"submit"),onClick:function(){return e.onSubmit()}}}]}},{key:"requiredResources",get:function(){return{config:M.p.config,currentUser:P.K.currentUser}}},{key:"bindListeners",value:function(){this.listenTo(this.channelName,"select:option:selected",this.onMetadataSelect),this.listenTo(this.channelName,"select:rating",this.onSelectRating),this.listenTo(g.Vk.VIDEO,"".concat(g.M_.VIDEOS,":").concat(this.options.videoId,":sync"),this.render),this.listenTo(g.Vk.NOTIFICATIONS,"".concat(g.M_.SUGGEST_EDIT,":error"),this.onError)}},{key:"onSubmit",value:function(){var e=this;if(this.validateForm()){this.spinnerModel.set(y.ZV.ShowSpinner,!0);var t=this.selectedMetadata.get("metadataType")===_.pG.Rating?this.viewModel.get("ratingSuggestion"):this.viewModel.get("suggestion"),n=this.config.get("suggestEditMetadataGroupId"),o=$.createSuggestEditNotification({groupId:n,instanceRegion:this.currentUser.get("instanceRegion"),countryCode:this.currentUser.get("countryCode"),video:this.model.toJSON(),user:this.currentUser.toJSON(),property:this.selectedMetadata.get("metadataType").toLowerCase(),suggestion:t,reason:this.viewModel.get("reason"),currentValue:this.selectedMetadata.get("metadataValue")});this.notificationDataService.suggestEdit(o,(function(){e.triggerMethod("hide"),e.spinnerModel.set(y.ZV.ShowSpinner,!1),e.spinnerModel.set(y.ZV.Disabled,!0)})),this.logAction(),this.viewModel.clear()}}},{key:"onError",value:function(){this.spinnerModel.set(y.ZV.ShowSpinner,!1)}},{key:"onMetadataSelect",value:function(e){this.selectMetadata(e),this.renderSuggestEdit()}},{key:"onSelectRating",value:function(e){this.viewModel.set("ratingSuggestion",e.get("name")),this.renderSuggestEdit()}},{key:"selectMetadata",value:function(e){this.spinnerModel.set(y.ZV.Disabled,!1),E.yV.setSelected(e.get("id"),this.metadataCollection),this.selectedMetadata.set({metadataType:e.get("name"),metadataValue:e.get("name")!==_.pG.Other?this.model.get(e.get("property")):null}),e.get("name")!==_.pG.Rating&&this.viewModel.set("ratingSuggestion","")}},{key:"getMetadataCollection",value:function(){var e=Object.keys(_.zK).map((function(e){return _.zK[e]}));return(E.M2.isClip(this.model)||E.M2.isInteractive(this.model))&&(e=e.filter((function(e){return e.name===_.pG.VideoTitle||e.name===_.pG.Description}))),this.currentUser.get("instanceRegion")===c.b.US&&(e=e.filter((function(e){return e.name!==_.pG.Channel&&e.name!==_.pG.BroadcastDate}))),new f.L(e)}},{key:"getMetadataByType",value:function(e){return this.metadataCollection.findWhere({name:e})}},{key:"getViewModel",value:function(){this.viewModel=a.r.get(this.viewModelName),this.viewModel.addValidation(R.xs)}},{key:"validateForm",value:function(){this.renderSuggestEdit(),this.viewModel.validate();var e=this.viewModel.toJSON(),t=e.reason,n=e.suggestion;return!(this.getRatingValidationMessage()||this.selectedMetadata.get("metadataType")!==_.pG.Rating&&!n||!t)}},{key:"getRatingValidationMessage",value:function(){if(this.selectedMetadata.get("metadataType")!==_.pG.Rating)return"";var e=this.selectedMetadata.get("metadataValue"),t=this.viewModel.get("ratingSuggestion");return t?e===t?R.nf.original():"":R.nf.empty()}},{key:"checkPreselection",value:function(){if(!this.selectedMetadata.get("metadataType")&&this.options.metadata&&this.dataFetched()){var e=this.getMetadataByType(this.options.metadata);this.selectMetadata(e)}}},{key:"logAction",value:function(){var e=E.M2.getSourceTypes(this.model);e=o.filter(e,(function(e){return e!==d.r.CustomLibrary}));var t={videoSourceTypes:o.sortBy(o.unique(e),(function(e){return e})).join(","),videoId:this.model.get("id"),metadataProperty:this.selectedMetadata.get("metadataType"),metadataPropertyValue:this.selectedMetadata.get("metadataValue"),suggestion:this.viewModel.get("suggestion"),reason:this.viewModel.get("reason")};l.k.logUserAction(t,{descriptor:u.gL.Edit,location:u.LZ.Popup,actionType:u.Vw.Suggest,entity:u.py.Video})}},{key:"dataFetched",value:function(){return!(!this.model||E.M2.isVideo(this.model)&&!this.ratingCollection)}},{key:"renderMetadataDropdown",value:function(){this.showChildView("dropdown",new h.H({collection:R.uB.translateMetadataCollectionNames(this.metadataCollection),channelName:this.channelName,childOptions:{titleProperty:"name",eventName:"select:option:click"},placeholderText:this.selectedMetadata.get("metadataType")||r.T.getPhrase(this.lang,"dropdownPlaceholder"),analyticsHelper:l.k}))}},{key:"renderSuggestEdit",value:function(){this.selectedMetadata.get("metadataType")&&this.showChildView("suggestEdit",new Z({model:this.viewModel,channelName:this.channelName,ratings:this.ratingCollection,currentRating:this.viewModel.get("ratingSuggestion")?new T.i(this.ratingCollection.findWhere({name:this.viewModel.get("ratingSuggestion")})):null,metadataType:this.selectedMetadata.get("metadataType"),metadataValue:this.selectedMetadata.get("metadataValue"),ratingValidationMessage:this.getRatingValidationMessage()}))}},{key:"onBeforeRender",value:function(){this.model||(this.model=this.videoDataService.getUnionVideo(this.options.videoId,this.options.typeId)),this.ratingCollection||(this.ratingCollection=this.ratingsDataService.getAllRatings()),this.model&&!this.metadataCollection&&(this.metadataCollection=this.getMetadataCollection()),this.checkPreselection()}},{key:"viewOptions",value:function(){return{dataFetched:this.dataFetched(),spinnerEl:E.Kp.getSpinner({size:E.Ey.Large,extraClasses:"mx-auto"})}}},{key:"onRender",value:function(){this.dataFetched()&&(this.renderMetadataDropdown(),this.renderSuggestEdit())}}])&&Y(n.prototype,s),Object.defineProperty(n,"prototype",{writable:!1}),n;var n,s}(s.Q.G7)},71641:function(e,t,n){"use strict";n.d(t,{w:function(){return f}});var o=n(39479),i=n(31647),r=n(55142);function a(e){return a="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},a(e)}function s(e,t){for(var n=0;n<t.length;n++){var o=t[n];o.enumerable=o.enumerable||!1,o.configurable=!0,"value"in o&&(o.writable=!0),Object.defineProperty(e,l(o.key),o)}}function l(e){var t=function(e,t){if("object"!=a(e)||!e)return e;var n=e[Symbol.toPrimitive];if(void 0!==n){var o=n.call(e,"string");if("object"!=a(o))return o;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}(e);return"symbol"==a(t)?t:t+""}function u(e,t,n){return t=d(t),function(e,t){if(t&&("object"===a(t)||"function"==typeof t))return t;if(void 0!==t)throw new TypeError("Derived constructors may only return object or undefined");return function(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}(e)}(e,c()?Reflect.construct(t,n||[],d(e).constructor):t.apply(e,n))}function c(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){})))}catch(e){}return(c=function(){return!!e})()}function d(e){return d=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(e){return e.__proto__||Object.getPrototypeOf(e)},d(e)}function p(e,t){return p=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(e,t){return e.__proto__=t,e},p(e,t)}var f=function(e){function t(e){return function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,t),u(this,t,[e])}return function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),Object.defineProperty(e,"prototype",{writable:!1}),t&&p(e,t)}(t,e),n=t,i=[{key:"name",get:function(){return"DropdownCollectionComponent"}},{key:"className",get:function(){return"dropdown-menu items-viewpart ".concat(this.getExtraClasses(this.options.displayOptions))}},{key:"attributes",get:function(){return{"aria-labelledby":"dropdownSelector"}}},{key:"initialize",value:function(){this.listenTo(this.options.channelName,"center:dropdown",this.centerSelectedItem)}},{key:"childView",get:function(){return r.N}},{key:"childViewOptions",get:function(){var e={channelName:this.options.channelName,analyticsHelper:this.options.analyticsHelper};return o.extend(e,this.options.childOptions)}},{key:"getExtraClasses",value:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t=e.alignment,n=void 0===t?"left":t,o=e.extraClasses,i="dropdown-menu-".concat(n);return o&&(i="".concat(i," ").concat(o)),i}},{key:"centerSelectedItem",value:function(){var e=this.$el.find(".active");if(e.length){var t=this.$el.scrollTop()+e.position().top,n=.5*this.$el.height()+.5*e.height();this.$el.scrollTop(t-n)}}}],i&&s(n.prototype,i),Object.defineProperty(n,"prototype",{writable:!1}),n;var n,i}(i.Q.$W)},26357:function(e,t,n){"use strict";n.d(t,{H:function(){return v}});var o=n(48088),i=n(39479),r=n(31647),a=n(71641),s=n(93569),l=n(46635),u=n.n(l),c={dropdownMenu:"oKdKI",selectButton:"fTeoW",disabled:"gZbQ4"};function d(e){return d="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},d(e)}function p(e,t){for(var n=0;n<t.length;n++){var o=t[n];o.enumerable=o.enumerable||!1,o.configurable=!0,"value"in o&&(o.writable=!0),Object.defineProperty(e,f(o.key),o)}}function f(e){var t=function(e,t){if("object"!=d(e)||!e)return e;var n=e[Symbol.toPrimitive];if(void 0!==n){var o=n.call(e,"string");if("object"!=d(o))return o;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}(e);return"symbol"==d(t)?t:t+""}function h(e,t,n){return t=g(t),function(e,t){if(t&&("object"===d(t)||"function"==typeof t))return t;if(void 0!==t)throw new TypeError("Derived constructors may only return object or undefined");return function(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}(e)}(e,y()?Reflect.construct(t,n||[],g(e).constructor):t.apply(e,n))}function y(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){})))}catch(e){}return(y=function(){return!!e})()}function g(e){return g=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(e){return e.__proto__||Object.getPrototypeOf(e)},g(e)}function m(e,t){return m=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(e,t){return e.__proto__=t,e},m(e,t)}var v=function(e){function t(e){var n;return function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,t),(n=h(this,t,[e])).selectSearch="",n.sameCharIndex=1,n.optionStep=1,n}return function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),Object.defineProperty(e,"prototype",{writable:!1}),t&&m(e,t)}(t,e),n=t,r=[{key:"initialize",value:function(){this.setModel(),this.bindListeners()}},{key:"name",get:function(){return"SelectComponent"}},{key:"template",get:function(){return u()}},{key:"regions",value:function(){return{dropdown:{el:".dropdown-region",replaceElement:!0}}}},{key:"events",value:function(){return{keydown:"onKeydown","shown.bs.dropdown":"onShowDropdown"}}},{key:"defaults",get:function(){return{displayProperty:"name"}}},{key:"elements",get:function(){return{dropdownToggle:".dropdown-toggle"}}},{key:"bindListeners",value:function(){this.listenTo(this.options.channelName,this.options.childOptions.eventName,this.onSelect)}},{key:"onShowDropdown",value:function(){o.Radio.channel(this.options.channelName).trigger("center:dropdown")}},{key:"onKeydown",value:function(e){38===e.keyCode||40===e.keyCode?this.onArrowKeyDown(e):13===e.keyCode?this.render():this.onType(e),o.Radio.channel(this.options.channelName).trigger("center:dropdown")}},{key:"onArrowKeyDown",value:function(e){s.yV.getSelected(this.collection)?this.optionStep=1:this.optionStep=0;var t=this.getNextModel(e.keyCode);for(t||(s.yV.deselectAll(this.collection),t=this.getNextModel(e.keyCode));this.isDisabled(t);)this.optionStep++,t=this.getNextModel(e.keyCode);this.onSelect(t)}},{key:"onType",value:function(e){if(1===e.key.toString().length){var t=this.getModelMatch(e);t&&this.onSelect(t),this.runTimer()}}},{key:"onSelect",value:function(e){this.isDisabled(e)||(s.yV.setSelected(e.get("id"),this.collection),this.setModel(),this.getUI("dropdownToggle").text(this.getButtonText()),o.Radio.channel(this.options.channelName).trigger("select:option:selected",e))}},{key:"setModel",value:function(){this.model=s.yV.getSelected(this.collection)}},{key:"getNextModel",value:function(e){var t,n=s.yV.getSelected(this.collection)||this.collection.first(),o=this.collection.indexOf(n);return(t=38===e?this.collection.at(o-this.optionStep):this.collection.at(o+this.optionStep))||(s.yV.deselectAll(this.collection),t=this.collection.first(),this.optionStep=0),t}},{key:"getModelMatch",value:function(e){var t,n=this;return 1===this.selectSearch.length&&this.selectSearch===e.key?t=this.handleSameCharIndex(e.key):(this.selectSearch+=e.key,this.sameCharIndex=1),t||(t=i.find(this.collection.models,(function(e){return e.get(n.options.displayProperty).toLowerCase().slice(0,n.selectSearch.length).includes(n.selectSearch.toLowerCase())}))),t}},{key:"handleSameCharIndex",value:function(e){var t=this,n=i.filter(this.collection.models,(function(n){return n.get(t.options.displayProperty).toLowerCase().slice(0,1)===e}));if(n.length>1){var o=n[this.sameCharIndex];return o||(o=i.first(n),this.sameCharIndex=0),this.sameCharIndex++,o}return i.first(n)}},{key:"runTimer",value:function(){var e=this;this.scopedTimerIndex&&clearTimeout(this.scopedTimerIndex),this.scopedTimerIndex=window.setTimeout((function(){e.selectSearch=""}),500)}},{key:"isDisabled",value:function(e){var t;if(e.get("divider"))return!0;if(!i.isFunction(this.options.childOptions.isDisabled))return!1;for(var n=arguments.length,o=new Array(n>1?n-1:0),r=1;r<n;r++)o[r-1]=arguments[r];return(t=this.options.childOptions.isDisabled).call.apply(t,[this,e].concat(o))}},{key:"getButtonText",value:function(){if(this.options.disabled)return this.options.noOptionsText;var e=s.yV.getSelected(this.collection);return e&&e.get(this.options.displayProperty)||this.options.placeholderText}},{key:"viewOptions",value:function(){return{styles:c,inputName:this.options.inputName,disabled:this.options.disabled,placeholderText:this.getButtonText()}}},{key:"onRender",value:function(){this.showChildView("dropdown",new a.w({collection:this.collection,channelName:this.options.channelName,childOptions:i.extend(this.options.childOptions),displayOptions:{extraClasses:"w-100 ".concat(c.dropdownMenu)},analyticsHelper:this.options.analyticsHelper}))}}],r&&p(n.prototype,r),Object.defineProperty(n,"prototype",{writable:!1}),n;var n,r}(r.Q.wA)},67670:function(e,t,n){"use strict";n.d(t,{v:function(){return f}});var o=n(31647),i=n(88172);function r(e){return r="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},r(e)}function a(e,t,n){return(t=l(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function s(e,t){for(var n=0;n<t.length;n++){var o=t[n];o.enumerable=o.enumerable||!1,o.configurable=!0,"value"in o&&(o.writable=!0),Object.defineProperty(e,l(o.key),o)}}function l(e){var t=function(e,t){if("object"!=r(e)||!e)return e;var n=e[Symbol.toPrimitive];if(void 0!==n){var o=n.call(e,"string");if("object"!=r(o))return o;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}(e);return"symbol"==r(t)?t:t+""}function u(e,t,n){return t=d(t),function(e,t){if(t&&("object"===r(t)||"function"==typeof t))return t;if(void 0!==t)throw new TypeError("Derived constructors may only return object or undefined");return function(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}(e)}(e,c()?Reflect.construct(t,n||[],d(e).constructor):t.apply(e,n))}function c(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){})))}catch(e){}return(c=function(){return!!e})()}function d(e){return d=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(e){return e.__proto__||Object.getPrototypeOf(e)},d(e)}function p(e,t){return p=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(e,t){return e.__proto__=t,e},p(e,t)}var f=function(e){function t(){return function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,t),u(this,t,arguments)}return function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),Object.defineProperty(e,"prototype",{writable:!1}),t&&p(e,t)}(t,e),n=t,(o=[{key:"defaults",value:function(){return a(a({},i.ZV.Disabled,!0),i.ZV.Hidden,!1)}}])&&s(n.prototype,o),Object.defineProperty(n,"prototype",{writable:!1}),n;var n,o}(o.Q.Hn)},19098:function(e,t,n){var o=n(32227);e.exports=(o.default||o).template({1:function(e,t,n,o,i){e.propertyIsEnumerable;var r,a=e.escapeExpression,s=e.lambda;return'<p class="fw-bold mb-0">'+a((n.lang||t&&t.lang||e.hooks.helperMissing).call(null!=t?t:e.nullContext||{},"currentType",{name:"lang",hash:{metadataType:null!=(r=null!=t?t.options:t)?r.metadataType:r},data:i}))+'</p>\n<p class="mb-3 '+a(s(null!=(r=null!=(r=null!=t?t.options:t)?r.styles:r)?r.metadataValue:r,t))+'">'+(null!=(r=s(null!=(r=null!=t?t.options:t)?r.metadataValue:r,t))?r:"")+"</p>\n"},3:function(e,t,n,o,i){var r;return e.propertyIsEnumerable,' <textarea\n id="suggest-edit"\n placeholder="'+e.escapeExpression(e.lambda(null!=(r=null!=t?t.options:t)?r.suggestionPlaceholder:r,t))+'"\n class="form-control"\n name="suggestion"\n ></textarea>\n <div class="form-feedback"></div>\n'},compiler:[8,">= 4.3.0"],main:function(e,t,n,o,i){e.propertyIsEnumerable;var r,a=null!=t?t:e.nullContext||{},s=e.hooks.helperMissing,l=e.escapeExpression;return(null!=(r=n.unless.call(a,null!=(r=null!=t?t.options:t)?r.isOtherType:r,{name:"unless",hash:{},fn:e.program(1,i,0),inverse:e.noop,data:i}))?r:"")+'\n<div class="dropdown-divider"></div>\n\n<div class="form-group">\n <label for="suggest-edit" class="fw-bold">'+l((n.lang||t&&t.lang||s).call(a,"suggestionSubheading",{name:"lang",hash:{},data:i}))+'</label>\n <div class="rating-select-region"></div>\n <div class="rating-form-feedback invalid-feedback"></div>\n'+(null!=(r=n.unless.call(a,null!=(r=null!=t?t.options:t)?r.useRatingSelect:r,{name:"unless",hash:{},fn:e.program(3,i,0),inverse:e.noop,data:i}))?r:"")+'</div>\n\n<div class="form-group">\n <label for="reason-for-edit" class="fw-bold">'+l((n.lang||t&&t.lang||s).call(a,"reasoningSubheading",{name:"lang",hash:{},data:i}))+'</label>\n <textarea\n id="reason-for-edit"\n placeholder="'+l((n.lang||t&&t.lang||s).call(a,"reasoningPlaceholder",{name:"lang",hash:{},data:i}))+'"\n class="form-control"\n name="reason"\n ></textarea>\n <div class="form-feedback"></div>\n</div>'},useData:!0})},34651:function(e,t,n){var o=n(32227);e.exports=(o.default||o).template({1:function(e,t,n,o,i){e.propertyIsEnumerable;var r=null!=t?t:e.nullContext||{},a=e.hooks.helperMissing,s=e.escapeExpression;return"<p>"+s((n.lang||t&&t.lang||a).call(r,"guidelines",{name:"lang",hash:{},data:i}))+'</p>\n<p class="fw-bold mb-1">'+s((n.lang||t&&t.lang||a).call(r,"dropdownHeading",{name:"lang",hash:{},data:i}))+'</p>\n<div class="metadata-dropdown-region position-relative"></div>\n<div class="suggest-edit-region"></div>\n'},3:function(e,t,n,o,i){var r;return e.propertyIsEnumerable,(null!=(r=e.lambda(null!=(r=null!=t?t.options:t)?r.spinnerEl:r,t))?r:"")+"\n"},compiler:[8,">= 4.3.0"],main:function(e,t,n,o,i){var r;return e.propertyIsEnumerable,null!=(r=n.if.call(null!=t?t:e.nullContext||{},null!=(r=null!=t?t.options:t)?r.dataFetched:r,{name:"if",hash:{},fn:e.program(1,i,0),inverse:e.program(3,i,0),data:i}))?r:""},useData:!0})},46635:function(e,t,n){var o=n(32227);e.exports=(o.default||o).template({1:function(e,t,n,o,i){var r;return e.propertyIsEnumerable,e.escapeExpression(e.lambda(null!=(r=null!=(r=null!=t?t.options:t)?r.styles:r)?r.disabled:r,t))},3:function(e,t,n,o,i){return" disabled"},compiler:[8,">= 4.3.0"],main:function(e,t,n,o,i){e.propertyIsEnumerable;var r,a=e.lambda,s=e.escapeExpression,l=null!=t?t:e.nullContext||{};return'<button \n class="dropdown-toggle form-control text-start position-relative '+s(a(null!=(r=null!=(r=null!=t?t.options:t)?r.styles:r)?r.selectButton:r,t))+" "+(null!=(r=n.if.call(l,null!=(r=null!=t?t.options:t)?r.disabled:r,{name:"if",hash:{},fn:e.program(1,i,0),inverse:e.noop,data:i}))?r:"")+'" \n type="button" \n id="dropdownMenuButton" \n data-bs-toggle="dropdown" \n aria-haspopup="true" \n aria-expanded="false"\n '+(null!=(r=n.if.call(l,null!=(r=null!=t?t.options:t)?r.disabled:r,{name:"if",hash:{},fn:e.program(3,i,0),inverse:e.noop,data:i}))?r:"")+' \n name="'+s(a(null!=(r=null!=t?t.options:t)?r.inputName:r,t))+'"\n >\n '+s(a(null!=(r=null!=t?t.options:t)?r.placeholderText:r,t))+'\n</button>\n<div class="dropdown-region"></div>\n<div class="form-feedback"></div>'},useData:!0})}}]);
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
"use strict";(self.webpackChunk_clickview_library_editor=self.webpackChunk_clickview_library_editor||[]).push([[8113],{70868:function(t,e,r){r.d(e,{t:function(){return i}});var n=r(48088),o=r(25417),i={preventScrollTop:function(){n.Radio.channel(o.G.SHELL).trigger("prevent:scroll:top")}}},89375:function(t,e,r){r.d(e,{j:function(){return i}});var n=r(31647),o=" - ClickView",i={setPageTitle:function(t){t&&n.Q.Ab.SetPageTitle(function(t){return t.length+12<=60?t+o:t.substring(0,57)+"..."+o}(t))}}},86242:function(t,e,r){r.d(e,{Oo:function(){return s},b2:function(){return p}});var n=r(1024),o=r(49642),i=r(90547),u=r(5256),c=r(89146),a=r(63791),f=r(39396),l=function(t){var e=t.breadcrumb,r=e.name,i=e.appLink,u=e.active,c=t.withBackIcon;return n.createElement("li",{className:"breadcrumb-item".concat(u?" active":"")},u?n.createElement("strong",null,r):n.createElement(o.F,{appLink:i},c&&n.createElement(f.x,{svgName:a.vn.ChevronLeft,size:f.S.Small}),n.createElement("span",{className:c?"ms-2":""},r)))},s=function(t){var e=t.breadcrumbs,r=(0,u.a)(i.r.XS),o=null==e?void 0:e.length;return!o||r&&o<2?n.createElement(n.Fragment,null):r?n.createElement("nav",{"aria-label":"breadcrumb"},n.createElement("ol",{className:"breadcrumb m-0 p-0"},n.createElement(l,{breadcrumb:e[o-2],withBackIcon:!0}))):n.createElement("nav",{"aria-label":"breadcrumb"},n.createElement("ol",{className:"breadcrumb m-0 p-0"},e.map((function(t,e){return n.createElement(l,{key:e,breadcrumb:t})}))))},p=n.memo((function(t){var e=t.numItems,r=void 0===e?3:e;return(0,u.a)(i.r.XS)?n.createElement("div",{className:"partial-loading-background",style:{height:"1.3125rem",width:"6rem"}}):n.createElement("nav",{"aria-label":"breadcrumb"},n.createElement("ol",{className:"breadcrumb m-0 p-0"},c.u.getPartialLoadingItems({numItems:r}).map((function(t,e){var r=t.width;return n.createElement("li",{key:e,className:"breadcrumb-item"},n.createElement("span",{className:"d-inline-block partial-loading-background",style:{width:r},dangerouslySetInnerHTML:{__html:" "}}))}))))}))},30317:function(t,e,r){r.d(e,{v:function(){return X}});var n=r(1024),o=r(35656),i=r(31647),u=r(57857),c=r(88070);function a(t){return a="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},a(t)}function f(t,e){for(var r=0;r<e.length;r++){var n=e[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(t,l(n.key),n)}}function l(t){var e=function(t,e){if("object"!=a(t)||!t)return t;var r=t[Symbol.toPrimitive];if(void 0!==r){var n=r.call(t,"string");if("object"!=a(n))return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(t)}(t);return"symbol"==a(e)?e:e+""}function s(t,e,r){return e=y(e),function(t,e){if(e&&("object"===a(e)||"function"==typeof e))return e;if(void 0!==e)throw new TypeError("Derived constructors may only return object or undefined");return function(t){if(void 0===t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return t}(t)}(t,p()?Reflect.construct(e,r||[],y(t).constructor):e.apply(t,r))}function p(){try{var t=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){})))}catch(t){}return(p=function(){return!!t})()}function y(t){return y=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(t){return t.__proto__||Object.getPrototypeOf(t)},y(t)}function b(t,e){return b=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(t,e){return t.__proto__=e,t},b(t,e)}var m="shared.notFoundError",d=function(t){function e(){return function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,e),s(this,e,[u.T.getPhrase(m,"title")])}return function(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function");t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,writable:!0,configurable:!0}}),Object.defineProperty(t,"prototype",{writable:!1}),e&&b(t,e)}(e,t),r=e,(n=[{key:"name",get:function(){return"NotFoundError"}},{key:"heading",get:function(){return u.T.getPhrase(m,"heading")}},{key:"description",get:function(){return u.T.getPhrase(m,"description")}}])&&f(r.prototype,n),Object.defineProperty(r,"prototype",{writable:!1}),r;var r,n}(c.H);function v(t){return v="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},v(t)}function h(t,e){for(var r=0;r<e.length;r++){var n=e[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(t,g(n.key),n)}}function g(t){var e=function(t,e){if("object"!=v(t)||!t)return t;var r=t[Symbol.toPrimitive];if(void 0!==r){var n=r.call(t,"string");if("object"!=v(n))return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(t)}(t);return"symbol"==v(e)?e:e+""}function w(t,e,r){return e=j(e),function(t,e){if(e&&("object"===v(e)||"function"==typeof e))return e;if(void 0!==e)throw new TypeError("Derived constructors may only return object or undefined");return function(t){if(void 0===t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return t}(t)}(t,O()?Reflect.construct(e,r||[],j(t).constructor):e.apply(t,r))}function O(){try{var t=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){})))}catch(t){}return(O=function(){return!!t})()}function j(t){return j=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(t){return t.__proto__||Object.getPrototypeOf(t)},j(t)}function P(t,e){return P=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(t,e){return t.__proto__=e,t},P(t,e)}var E="shared.privateResourceError",S=function(t){function e(){return function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,e),w(this,e,[u.T.getPhrase(E,"title")])}return function(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function");t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,writable:!0,configurable:!0}}),Object.defineProperty(t,"prototype",{writable:!1}),e&&P(t,e)}(e,t),r=e,(n=[{key:"name",get:function(){return"PrivateResourceError"}},{key:"heading",get:function(){return u.T.getPhrase(E,"heading")}},{key:"description",get:function(){return u.T.getPhrase(E,"description")}}])&&h(r.prototype,n),Object.defineProperty(r,"prototype",{writable:!1}),r;var r,n}(c.H);function _(t){return _="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},_(t)}function k(t,e){for(var r=0;r<e.length;r++){var n=e[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(t,T(n.key),n)}}function T(t){var e=function(t,e){if("object"!=_(t)||!t)return t;var r=t[Symbol.toPrimitive];if(void 0!==r){var n=r.call(t,"string");if("object"!=_(n))return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(t)}(t);return"symbol"==_(e)?e:e+""}function R(t,e,r){return e=I(e),function(t,e){if(e&&("object"===_(e)||"function"==typeof e))return e;if(void 0!==e)throw new TypeError("Derived constructors may only return object or undefined");return function(t){if(void 0===t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return t}(t)}(t,C()?Reflect.construct(e,r||[],I(t).constructor):e.apply(t,r))}function C(){try{var t=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){})))}catch(t){}return(C=function(){return!!t})()}function I(t){return I=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(t){return t.__proto__||Object.getPrototypeOf(t)},I(t)}function A(t,e){return A=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(t,e){return t.__proto__=e,t},A(t,e)}var L="shared.regionLockedResourceError",N=function(t){function e(){return function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,e),R(this,e,[u.T.getPhrase(L,"title")])}return function(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function");t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,writable:!0,configurable:!0}}),Object.defineProperty(t,"prototype",{writable:!1}),e&&A(t,e)}(e,t),r=e,(n=[{key:"name",get:function(){return"RegionLockedResourceError"}},{key:"heading",get:function(){return u.T.getPhrase(L,"heading")}},{key:"description",get:function(){return u.T.getPhrase(L,"description")}}])&&k(r.prototype,n),Object.defineProperty(r,"prototype",{writable:!1}),r;var r,n}(c.H);function B(t){return B="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},B(t)}function x(t,e){for(var r=0;r<e.length;r++){var n=e[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(t,F(n.key),n)}}function F(t){var e=function(t,e){if("object"!=B(t)||!t)return t;var r=t[Symbol.toPrimitive];if(void 0!==r){var n=r.call(t,"string");if("object"!=B(n))return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(t)}(t);return"symbol"==B(e)?e:e+""}function H(t,e,r){return e=Q(e),function(t,e){if(e&&("object"===B(e)||"function"==typeof e))return e;if(void 0!==e)throw new TypeError("Derived constructors may only return object or undefined");return function(t){if(void 0===t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return t}(t)}(t,M()?Reflect.construct(e,r||[],Q(t).constructor):e.apply(t,r))}function M(){try{var t=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){})))}catch(t){}return(M=function(){return!!t})()}function Q(t){return Q=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(t){return t.__proto__||Object.getPrototypeOf(t)},Q(t)}function D(t,e){return D=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(t,e){return t.__proto__=e,t},D(t,e)}var W="shared.unspecifiedError",q={notFound:d,forbidden:{rating:S,yearLevel:S,region:N,privacy:S},badRequest:function(t){function e(){return function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,e),H(this,e,[u.T.getPhrase(W,"title")])}return function(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function");t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,writable:!0,configurable:!0}}),Object.defineProperty(t,"prototype",{writable:!1}),e&&D(t,e)}(e,t),r=e,(n=[{key:"name",get:function(){return"UnspecifiedError"}},{key:"heading",get:function(){return u.T.getPhrase(W,"heading")}},{key:"description",get:function(){return u.T.getPhrase(W,"description")}},{key:"cta",get:function(){return!1}}])&&x(r.prototype,n),Object.defineProperty(r,"prototype",{writable:!1}),r;var r,n}(c.H)};function U(t){return t.map((function(t){return t.statusCode})).join(":")}function X(t,e,r){var u=Array.isArray(t)?t:[t];(0,n.useEffect)((function(){u.forEach((function(t){!function(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},r=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{};if(t){var n;n="number"==typeof t?t:t.status;var u=Object.assign(Object.assign({},q),e);n&&i.Q.Ry.isStatusCodeError(n)&&(n!==o.o.NotFound?n!==o.o.Forbidden?r.badRequest||i.Q.Ry.throw(new u.badRequest):r.forbidden||i.Q.Ry.throw(new u.forbidden.privacy):r.notFound||i.Q.Ry.throw(new u.notFound))}}(t.statusCode,e,r)}))}),[U(u),e,r])}},89146:function(t,e,r){function n(t,e){(null==e||e>t.length)&&(e=t.length);for(var r=0,n=new Array(e);r<e;r++)n[r]=t[r];return n}r.d(e,{u:function(){return i}});var o={numItems:5,minWidth:50,maxWidth:100},i={getPartialLoadingItems:function(){var t,e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},r=Object.assign(Object.assign({},o),e);return(t=Array(r.numItems),function(t){if(Array.isArray(t))return n(t)}(t)||function(t){if("undefined"!=typeof Symbol&&null!=t[Symbol.iterator]||null!=t["@@iterator"])return Array.from(t)}(t)||function(t,e){if(t){if("string"==typeof t)return n(t,e);var r=Object.prototype.toString.call(t).slice(8,-1);return"Object"===r&&t.constructor&&(r=t.constructor.name),"Map"===r||"Set"===r?Array.from(t):"Arguments"===r||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r)?n(t,e):void 0}}(t)||function(){throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()).map((function(){return{width:"".concat(Math.max(Math.floor(Math.random()*r.maxWidth),r.minWidth),"px")}}))}}}}]);
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
(self.webpackChunk_clickview_library_editor=self.webpackChunk_clickview_library_editor||[]).push([[8213],{8371:function(e,n,t){"use strict";var o;t.d(n,{b:function(){return o}}),function(e){e.AU="cv-ap-southeast-1",e.NZ="cv-ap-southeast-2",e.UK="cv-eu-west-1",e.US="cv-na-west-1"}(o||(o={}))},24184:function(e,n,t){"use strict";t.d(n,{a:function(){return ge}});var o=t(48088),r=t(39479),i=t(31647),l=t(10101),a=t(57857),s=t(17391),u=t(56285),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,y(o.key),o)}}function y(e){var n=function(e,n){if("object"!=h(e)||!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)}(e);return"symbol"==h(n)?n:n+""}function b(e,n,t){return n=v(n),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)}(e,g()?Reflect.construct(n,t||[],v(e).constructor):n.apply(e,t))}function g(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){})))}catch(e){}return(g=function(){return!!e})()}function v(e){return v=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(e){return e.__proto__||Object.getPrototypeOf(e)},v(e)}function w(e,n){return w=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(e,n){return e.__proto__=n,e},w(e,n)}var k=function(e){function n(e){return function(e,n){if(!(e instanceof n))throw new TypeError("Cannot call a class as a function")}(this,n),b(this,n,[e])}return 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&&w(e,n)}(n,e),t=n,(r=[{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(t.prototype,r),Object.defineProperty(t,"prototype",{writable:!1}),t;var t,r}(i.Q.wA),C=t(57098),E=t(40622),O=t(7591),P=t.n(O),S=t(45092),T={previous:"lzgvM",next:"Vxb5b",datePicker:"odbOJ",calendarSvg:"fT6E_",disabled:"nayb_"};function j(e){return j="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},j(e)}function D(e,n,t){return(n=_(n))in e?Object.defineProperty(e,n,{value:t,enumerable:!0,configurable:!0,writable:!0}):e[n]=t,e}function x(e,n){for(var t=0;t<n.length;t++){var o=n[t];o.enumerable=o.enumerable||!1,o.configurable=!0,"value"in o&&(o.writable=!0),Object.defineProperty(e,_(o.key),o)}}function _(e){var n=function(e,n){if("object"!=j(e)||!e)return e;var t=e[Symbol.toPrimitive];if(void 0!==t){var o=t.call(e,"string");if("object"!=j(o))return o;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}(e);return"symbol"==j(n)?n:n+""}function I(e,n,t){return n=B(n),function(e,n){if(n&&("object"===j(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)}(e,R()?Reflect.construct(n,t||[],B(e).constructor):n.apply(e,t))}function R(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){})))}catch(e){}return(R=function(){return!!e})()}function B(e){return B=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(e){return e.__proto__||Object.getPrototypeOf(e)},B(e)}function N(e,n){return N=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(e,n){return e.__proto__=n,e},N(e,n)}var A=function(e){function n(e){return function(e,n){if(!(e instanceof n))throw new TypeError("Cannot call a class as a function")}(this,n),I(this,n,[e])}return 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&&N(e,n)}(n,e),t=n,(o=[{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 P()}},{key:"lang",get:function(){return"shared.datePicker"}},{key:"channelName",get:function(){return"".concat(this.name,":").concat(this.cid)}},{key:"elements",get:function(){return{date:"#".concat(this.options.modelAttr)}}},{key:"regions",value:function(){return{clearButton:{el:".clear-button-region"}}}},{key:"appLinks",get:function(){return{".suggest-broadcast-date":{application:C.OV.LIBRARY_EDITOR,action:C.eX.LibraryEditor.SUGGEST_AN_EDIT,args:[this.model.get("id")],params:{metadata:E.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 D({},"[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 D({"keydown @ui.date":"onKeyDownDate"},"click .".concat(T.calendarSvg),"onClickCalendarIcon")}},{key:"getInstanceClassName",value:function(){return"datetimepicker-".concat(this.cid)}},{key:"initDatePicker",value:function(){this.getUI("date").datetimepicker({format:this.options.displayedTimeFormat,minDate:(new Date).setFullYear(this.options.minYear),maxDate:new Date,icons:{previous:T.previous,next:T.next}})}},{key:"getFormattedDisplayDate",value:function(e){if(e)return r.isFunction(this.options.formatDisplayDate)?this.options.formatDisplayDate(e):u.O.formatUtcString(e,this.options.displayedTimeFormat)}},{key:"getFormattedSavedDate",value:function(e){if(e)return r.isFunction(this.options.formatSavedDate)?this.options.formatSavedDate(e):u.O.formatUtcString(e,this.options.savedTimeFormat)}},{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(D({},"".concat(this.options.modelAttr),null)),!0)}},{key:"onKeyDownDate",value:function(e){this.options.allowTextInput||e.preventDefault()}},{key:"renderClearDateButton",value:function(){this.showChildView("clearButton",new k({channelName:this.channelName,shouldRender:this.options.allowClearDate&&!!this.model.get("dateBroadcast")}))}},{key:"viewOptions",value:function(){return{styles:r.extend(S.Z,T),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()}}])&&x(t.prototype,o),Object.defineProperty(t,"prototype",{writable:!1}),t;var t,o}(i.Q.wA),M=t(36022),Z=t(29457),L=t(33469),V=t(3974),Y=t(88764),F=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 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,J(o.key),o)}}function J(e){var n=function(e,n){if("object"!=G(e)||!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:n+""}function Q(e,n,t){return n=K(n),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)}(e,z()?Reflect.construct(n,t||[],K(e).constructor):n.apply(e,t))}function z(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){})))}catch(e){}return(z=function(){return!!e})()}function K(e){return K=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(e){return e.__proto__||Object.getPrototypeOf(e)},K(e)}function X(e,n){return X=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(e,n){return e.__proto__=n,e},X(e,n)}var W=function(e){function n(e){return function(e,n){if(!(e instanceof n))throw new TypeError("Cannot call a class as a function")}(this,n),Q(this,n,[e])}return 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&&X(e,n)}(n,e),t=n,(o=[{key:"name",get:function(){return"EditBroadcastComponent"}},{key:"template",get:function(){return F()}},{key:"lang",get:function(){return"shared.editBroadcast"}},{key:"className",get:function(){return"edit-broadcast"}},{key:"regions",value:function(){return{dateBroadcast:{el:".date-broadcast-region",replaceElement:!0},channelSearch:{el:".channel-search-region",replaceElement:!0}}}},{key:"appLinks",get:function(){return{".suggest-channel":{application:C.OV.LIBRARY_EDITOR,action:C.eX.LibraryEditor.SUGGEST_AN_EDIT,args:[this.model.get("id")],params:{metadata:E.pG.Channel}}}}},{key:"buildTypeaheadConfig",value:function(){return{name:C.n8.ChannelRaw,typeaheadConfig:V.M.getTypeaheadConfig(),bloodhoundConfig:V.M.getBloodhoundConfig()}}},{key:"renderBroadcastDate",value:function(){this.showChildView("dateBroadcast",new A({model:this.model,label:a.T.getPhrase(this.lang,"broadcastDate"),modelAttr:"dateBroadcast",displayedTimeFormat:Z.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 L.$),this.showChildView("channelSearch",new M.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,E.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:S.Z,editable:this.options.editable}}},{key:"onRender",value:function(){this.renderBroadcastDate(),this.renderChannelTypeahead()}}])&&U(t.prototype,o),Object.defineProperty(t,"prototype",{writable:!1}),t;var t,o}(i.Q.wA),$=t(68588),q=t.n($),H={disabled:"Jh_Ny"};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,te(o.key),o)}}function te(e){var n=function(e,n){if("object"!=ee(e)||!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)}(e);return"symbol"==ee(n)?n:n+""}function oe(e,n,t){return n=ie(n),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)}(e,re()?Reflect.construct(n,t||[],ie(e).constructor):n.apply(e,t))}function re(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){})))}catch(e){}return(re=function(){return!!e})()}function ie(e){return ie=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(e){return e.__proto__||Object.getPrototypeOf(e)},ie(e)}function le(e,n){return le=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(e,n){return e.__proto__=n,e},le(e,n)}var ae=function(e){function n(e){return function(e,n){if(!(e instanceof n))throw new TypeError("Cannot call a class as a function")}(this,n),oe(this,n,[e])}return 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&&le(e,n)}(n,e),t=n,(o=[{key:"name",get:function(){return"ToggleBroadcastComponent"}},{key:"template",get:function(){return q()}},{key:"lang",get:function(){return"shared.toggleBroadcast"}},{key:"className",get:function(){return"toggle-broadcast"}},{key:"regions",value:function(){return{broadcast:{el:".broadcast-region",replaceElement:!0}}}},{key:"behaviors",get:function(){return this.options.hideToggle?[]:[{behaviorClass: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 W({model:this.model,channelName:this.options.channelName,editable:this.options.editable})):this.getRegion("broadcast").empty()}},{key:"viewOptions",value:function(){return Object.assign({styles:H},this.options)}},{key:"onRender",value:function(){this.renderEditBroadcast()}}])&&ne(t.prototype,o),Object.defineProperty(t,"prototype",{writable:!1}),t;var t,o}(i.Q.wA),se=t(79710),ue=t.n(se),ce={disabled:"lT52_"};function pe(e){return pe="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},pe(e)}function de(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,fe(o.key),o)}}function fe(e){var n=function(e,n){if("object"!=pe(e)||!e)return e;var t=e[Symbol.toPrimitive];if(void 0!==t){var o=t.call(e,"string");if("object"!=pe(o))return o;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}(e);return"symbol"==pe(n)?n:n+""}function he(e,n,t){return n=ye(n),function(e,n){if(n&&("object"===pe(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)}(e,me()?Reflect.construct(n,t||[],ye(e).constructor):n.apply(e,t))}function me(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){})))}catch(e){}return(me=function(){return!!e})()}function ye(e){return ye=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(e){return e.__proto__||Object.getPrototypeOf(e)},ye(e)}function be(e,n){return be=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(e,n){return e.__proto__=n,e},be(e,n)}var ge=function(e){function n(e){return function(e,n){if(!(e instanceof n))throw new TypeError("Cannot call a class as a function")}(this,n),he(this,n,[e])}return 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&&be(e,n)}(n,e),t=n,(i=[{key:"name",get:function(){return"EditAdditionalInfoComponent"}},{key:"tagName",get:function(){return"form"}},{key:"lang",get:function(){return"shared.editAdditionalInfo"}},{key:"template",get:function(){return ue()}},{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 ae({model:this.model,channelName:this.options.channelName,hideToggle:!0,editable:this.options.editable}))}},{key:"viewOptions",value:function(){return{styles:r.extend({},S.Z,ce),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)}}])&&de(t.prototype,i),Object.defineProperty(t,"prototype",{writable:!1}),t;var t,i}(i.Q.wA)},95168:function(e,n,t){"use strict";t.d(n,{O:function(){return G}});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,C(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 C(e){var n=function(e,n){if("object"!=g(e)||!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:n+""}function E(e,n,t){return n=P(n),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)}(e,O()?Reflect.construct(n,t||[],P(e).constructor):n.apply(e,t))}function O(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){})))}catch(e){}return(O=function(){return!!e})()}function P(e){return P=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(e){return e.__proto__||Object.getPrototypeOf(e)},P(e)}function S(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&&T(e,n)}function T(e,n){return T=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(e,n){return e.__proto__=n,e},T(e,n)}var j=function(e){function n(e){return v(this,n),E(this,n,[e])}return S(n,e),k(n,[{key:"name",get:function(){return"TypeaheadListComponentCollection"}},{key:"childViewOptions",get:function(){return Object.assign({},this.options)}},{key:"childView",get:function(){return D}}])}(l.Q.$W),D=function(e){function n(e){return v(this,n),E(this,n,[e])}return S(n,e),k(n,[{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=C(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()}}])}(l.Q.wA),x=t(57098),_=t(29457),I=t(3974),R=t(52529),B=t.n(R),N=t(45092);function A(e){return A="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},A(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,Z(o.key),o)}}function Z(e){var n=function(e,n){if("object"!=A(e)||!e)return e;var t=e[Symbol.toPrimitive];if(void 0!==t){var o=t.call(e,"string");if("object"!=A(o))return o;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}(e);return"symbol"==A(n)?n:n+""}function L(e,n,t){return n=Y(n),function(e,n){if(n&&("object"===A(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)}(e,V()?Reflect.construct(n,t||[],Y(e).constructor):n.apply(e,t))}function V(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){})))}catch(e){}return(V=function(){return!!e})()}function Y(e){return Y=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(e){return e.__proto__||Object.getPrototypeOf(e)},Y(e)}function F(e,n){return F=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(e,n){return e.__proto__=n,e},F(e,n)}var G=function(e){function n(e){return function(e,n){if(!(e instanceof n))throw new TypeError("Cannot call a class as a function")}(this,n),L(this,n,[e])}return 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)}(n,e),t=n,(l=[{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 B()}},{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:x.OV.LIBRARY_EDITOR,action:x.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(_.Zn.Producer)}},{key:"onClickAddNewDirector",value:function(){this.expandPersonList(_.Zn.Director)}},{key:"onClickAddNewDistributor",value:function(){this.expandPersonList(_.Zn.Distributor)}},{key:"onClickAddNewProductionCompany",value:function(){this.expandPersonList(_.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,_.Zn.Distributor)}},{key:"onSelectProductionCompany",value:function(e){this.onSelect(e,_.Zn.ProductionCompany)}},{key:"onSelectDirector",value:function(e){this.onSelect(e,_.Zn.Director)}},{key:"onSelectProducer",value:function(e){this.onSelect(e,_.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,_.Zn.Distributor)}},{key:"onRemoveProductionCompany",value:function(e){this.onRemove(e,_.Zn.ProductionCompany)}},{key:"onRemoveDirector",value:function(e){this.onRemove(e,_.Zn.Director)}},{key:"onRemoveProducer",value:function(e){this.onRemove(e,_.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 j({collection:this.model.get("distributors"),channelName:this.options.channelName,typeaheadConfig:this.buildTypeaheadConfig(x.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 j({collection:this.model.get("productionCompanies"),channelName:this.options.channelName,typeaheadConfig:this.buildTypeaheadConfig(x.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 j({collection:this.model.get("directors"),channelName:this.options.channelName,typeaheadConfig:this.buildTypeaheadConfig(x.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 j({collection:this.model.get("producers"),channelName:this.options.channelName,typeaheadConfig:this.buildTypeaheadConfig(x.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:N.Z,editable:this.options.editable,productionYearPlaceholderText:this.options.editable?i.T.getPhrase(this.lang,"productionYearPlaceholder"):"",allowAdditionalDirector:this.allowAdditional(_.Zn.Director),allowAdditionalProducer:this.allowAdditional(_.Zn.Producer),allowAdditionalDistributor:this.allowAdditional(_.Zn.Distributor),allowAdditionalProductionCompany:this.allowAdditional(_.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")}}])&&M(t.prototype,l),Object.defineProperty(t,"prototype",{writable:!1}),t;var t,l}(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})},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})},69369:function(e,n,t){var o=t(32227);e.exports=(o.default||o).template({compiler:[8,">= 4.3.0"],main:function(e,n,t,o,r){var i;return e.propertyIsEnumerable,'<div class="typeahead-region '+e.escapeExpression(e.lambda(null!=(i=null!=(i=null!=n?n.options:n)?i.styles:i)?i.typeahead:i,n))+'"></div>'},useData:!0})}}]);
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
(self.webpackChunk_clickview_library_editor=self.webpackChunk_clickview_library_editor||[]).push([[8362],{38362:function(t,e,n){"use strict";n.r(e),n.d(e,{EditLinkView:function(){return E}});var r=n(48088),o=n(21679),i=n(57857),u=n(99249),a=n(31647),l=n(52076),c=n(10101),s=n(88172),f=n(57098),p=n(67670),d=n(13823),y=n(93569),b=n(7190),v=n(8407),h=n.n(v);function m(t){return m="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},m(t)}function w(t,e){for(var n=0;n<e.length;n++){var r=e[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(t,g(r.key),r)}}function g(t){var e=function(t,e){if("object"!=m(t)||!t)return t;var n=t[Symbol.toPrimitive];if(void 0!==n){var r=n.call(t,"string");if("object"!=m(r))return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(t)}(t);return"symbol"==m(e)?e:e+""}function k(t,e,n){return e=S(e),function(t,e){if(e&&("object"===m(e)||"function"==typeof e))return e;if(void 0!==e)throw new TypeError("Derived constructors may only return object or undefined");return function(t){if(void 0===t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return t}(t)}(t,O()?Reflect.construct(e,n||[],S(t).constructor):e.apply(t,n))}function O(){try{var t=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){})))}catch(t){}return(O=function(){return!!t})()}function S(t){return S=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(t){return t.__proto__||Object.getPrototypeOf(t)},S(t)}function j(t,e){return j=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(t,e){return t.__proto__=e,t},j(t,e)}var E=function(t){function e(t){return function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,e),k(this,e,[t])}return function(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function");t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,writable:!0,configurable:!0}}),Object.defineProperty(t,"prototype",{writable:!1}),e&&j(t,e)}(e,t),n=e,(v=[{key:"initialize",value:function(){this.listenTo(f.Vk.LINK,"link:".concat(this.options.linkId,":sync"),this.render),this.linkDataService=o.u.getInstance(f.Or.Link,this)}},{key:"name",get:function(){return"EditLinkView"}},{key:"title",get:function(){return"Edit link"}},{key:"template",get:function(){return h()}},{key:"channelName",get:function(){return y.N0.generateUniqueChannelName(this)}},{key:"bindings",get:function(){return{"[name=url]":{observe:"url",setOptions:{validate:!0}},"[name=name]":{observe:"name",setOptions:{validate:!0}}}}},{key:"lang",get:function(){return"libraryEditor.editLink"}},{key:"behaviors",get:function(){var t=this;return[{behaviorClass:c.Yw,title:i.T.getPhrase(this.lang,"heading"),spinnerButtonOptions:{channelName:this.channelName,model:this.spinnerModel=new p.v,buttonText:i.T.getPhrase(this.lang,"save"),onClick:function(e){return t.onSubmit(e)}}}]}},{key:"events",value:function(){return{submit:"onSubmit"}}},{key:"onSubmit",value:function(t){var e=this;t&&t.preventDefault(),this.viewModel.validate(),!1!==this.viewModel.isValid()&&(r.Radio.channel(this.channelName).trigger(s.I3.ShowSpinner),this.linkDataService.updateLink(this.options.videoId,this.viewModel,(function(){e.logAction(),a.Q.C$.trigger({application:f.OV.LIBRARY_EDITOR,action:f.eX.LibraryEditor.EDIT_VIDEO_RESOURCES,args:[e.options.videoId]})})))}},{key:"logAction",value:function(){var t={id:this.options.linkId,parentId:+this.options.videoId,name:this.viewModel.get("name")};l.k.logUserAction(t,this.options.analyticsOptions)}},{key:"dataFetched",value:function(){return!!this.model&&!!this.viewModel}},{key:"onBeforeRender",value:function(){var t=this;this.model=this.linkDataService.getLink(this.options.linkId,(function(e){t.viewModel=u.r.get("link:".concat(t.options.linkId),e.toJSON(),{ctor:d.r}),t.viewModel.addValidation(b.yU)})),this.dataFetched()&&this.spinnerModel.set(s.ZV.Disabled,!1)}},{key:"viewOptions",value:function(){return{dataFetched:this.dataFetched(),spinnerEl:y.Kp.getSpinner({size:y.Ey.Large,extraClasses:"mx-auto"})}}},{key:"onRender",value:function(){this.viewModel&&(this.stickit(this.viewModel),r.Validation.bind(this,{model:this.viewModel}))}},{key:"onClose",value:function(){this.unstickit()}}])&&w(n.prototype,v),Object.defineProperty(n,"prototype",{writable:!1}),n;var n,v}(a.Q.G7)},67670:function(t,e,n){"use strict";n.d(e,{v:function(){return d}});var r=n(31647),o=n(88172);function i(t){return i="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},i(t)}function u(t,e,n){return(e=l(e))in t?Object.defineProperty(t,e,{value:n,enumerable:!0,configurable:!0,writable:!0}):t[e]=n,t}function a(t,e){for(var n=0;n<e.length;n++){var r=e[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(t,l(r.key),r)}}function l(t){var e=function(t,e){if("object"!=i(t)||!t)return t;var n=t[Symbol.toPrimitive];if(void 0!==n){var r=n.call(t,"string");if("object"!=i(r))return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(t)}(t);return"symbol"==i(e)?e:e+""}function c(t,e,n){return e=f(e),function(t,e){if(e&&("object"===i(e)||"function"==typeof e))return e;if(void 0!==e)throw new TypeError("Derived constructors may only return object or undefined");return function(t){if(void 0===t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return t}(t)}(t,s()?Reflect.construct(e,n||[],f(t).constructor):e.apply(t,n))}function s(){try{var t=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){})))}catch(t){}return(s=function(){return!!t})()}function f(t){return f=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(t){return t.__proto__||Object.getPrototypeOf(t)},f(t)}function p(t,e){return p=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(t,e){return t.__proto__=e,t},p(t,e)}var d=function(t){function e(){return function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,e),c(this,e,arguments)}return function(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function");t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,writable:!0,configurable:!0}}),Object.defineProperty(t,"prototype",{writable:!1}),e&&p(t,e)}(e,t),n=e,(r=[{key:"defaults",value:function(){return u(u({},o.ZV.Disabled,!0),o.ZV.Hidden,!1)}}])&&a(n.prototype,r),Object.defineProperty(n,"prototype",{writable:!1}),n;var n,r}(r.Q.Hn)},8407:function(t,e,n){var r=n(32227);t.exports=(r.default||r).template({1:function(t,e,n,r,o){var i;return t.propertyIsEnumerable,(null!=(i=t.lambda(null!=(i=null!=e?e.options:e)?i.spinnerEl:i,e))?i:"")+"\n"},3:function(t,e,n,r,o){return'<form>\n <div class="form-group">\n <label for="url" class="control-label">URL</label>\n <input name="url" id="url" type="text" class="form-control" placeholder="URL" autocomplete="off" autofocus/>\n <div class="form-feedback"></div>\n </div>\n <div class="form-group">\n <label for="name" class="control-label">Name</label>\n <input name="name" id="name" type="text" class="form-control" placeholder="Name" autocomplete="off" autofocus/>\n <div class="form-feedback"></div>\n </div>\n</form>\n'},compiler:[8,">= 4.3.0"],main:function(t,e,n,r,o){var i;return t.propertyIsEnumerable,null!=(i=n.unless.call(null!=e?e:t.nullContext||{},null!=(i=null!=e?e.options:e)?i.dataFetched:i,{name:"unless",hash:{},fn:t.program(1,o,0),inverse:t.program(3,o,0),data:o}))?i:""},useData:!0})}}]);
|