@clickview/library-editor 1.64.0-rc.1 → 1.64.0-rc.2
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/languages/en.json +1 -1
- package/dist/scripts/1010-5488aa2ff0.chunk.js +1 -0
- package/dist/scripts/1115-ea197312ba.chunk.js +1 -0
- package/dist/scripts/1200-5edfc011db.chunk.js +1 -0
- package/dist/scripts/1318-3fc90ae380.chunk.js +1 -0
- package/dist/scripts/1524-0256080e94.chunk.js +1 -0
- package/dist/scripts/1752-1cc77fb182.chunk.js +1 -0
- package/dist/scripts/1934-1deec5c14f.chunk.js +2 -0
- package/dist/scripts/2035-550073891d.chunk.js +1 -0
- package/dist/scripts/2539-4aab3368d8.chunk.js +1 -0
- package/dist/scripts/2591-06b808d96f.chunk.js +1 -0
- package/dist/scripts/2781-bd09622ade.chunk.js +2 -0
- package/dist/scripts/2781-bd09622ade.chunk.js.LICENSE.txt +1 -0
- package/dist/scripts/2803-b9bcf14dbc.chunk.js +1 -0
- package/dist/scripts/2888-bc66454b24.chunk.js +1 -0
- package/dist/scripts/299-f4a952cbbf.chunk.js +1 -0
- package/dist/scripts/3236-6a7cb9be48.chunk.js +2 -0
- package/dist/scripts/3236-6a7cb9be48.chunk.js.LICENSE.txt +1 -0
- package/dist/scripts/3305-5e7276a25d.chunk.js +1 -0
- package/dist/scripts/336-aaaad34c63.chunk.js +2 -0
- package/dist/scripts/336-aaaad34c63.chunk.js.LICENSE.txt +1 -0
- package/dist/scripts/3373-0b8fc10032.chunk.js +1 -0
- package/dist/scripts/3391-7d6d13408d.chunk.js +1 -0
- package/dist/scripts/3400-0cf6cbede5.chunk.js +1 -0
- package/dist/scripts/3450-4284a60805.chunk.js +1 -0
- package/dist/scripts/3475-8a3623ae22.chunk.js +1 -0
- package/dist/scripts/3639-ff8bf51fe5.chunk.js +1 -0
- package/dist/scripts/3643-cc5b2ec6d9.chunk.js +1 -0
- package/dist/scripts/3664-c8fe2e77de.chunk.js +1 -0
- package/dist/scripts/3763-93c217e1d6.chunk.js +1 -0
- package/dist/scripts/3873-a70c87d3a8.chunk.js +1 -0
- package/dist/scripts/4096-f73b3f1eb3.chunk.js +1 -0
- package/dist/scripts/4201-9fb1d6fa7e.chunk.js +1 -0
- package/dist/scripts/4245-ea180d7240.chunk.js +1 -0
- package/dist/scripts/4327-274f834810.chunk.js +1 -0
- package/dist/scripts/4567-ea4c943187.chunk.js +1 -0
- package/dist/scripts/4591-3158e38f59.chunk.js +1 -0
- package/dist/scripts/4796-715e3f2b8b.chunk.js +2 -0
- package/dist/scripts/4796-715e3f2b8b.chunk.js.LICENSE.txt +1 -0
- package/dist/scripts/5173-5459fe9617.chunk.js +1 -0
- package/dist/scripts/5180-35612cb57e.chunk.js +1 -0
- package/dist/scripts/5327-90b0daeedd.chunk.js +1 -0
- package/dist/scripts/5346-96ba841e31.chunk.js +1 -0
- package/dist/scripts/5412-806e4b03b6.chunk.js +1 -0
- package/dist/scripts/5418-d9b73741e6.chunk.js +1 -0
- package/dist/scripts/5424-e6d5e20449.chunk.js +1 -0
- package/dist/scripts/5513-ce9c27b731.chunk.js +1 -0
- package/dist/scripts/576-275aeaa88a.chunk.js +1 -0
- package/dist/scripts/5972-bd6ca57952.chunk.js +1 -0
- package/dist/scripts/6239-b216beeef2.chunk.js +1 -0
- package/dist/scripts/6350-fe2f5d07ae.chunk.js +1 -0
- package/dist/scripts/6439-8af974fe93.chunk.js +1 -0
- package/dist/scripts/6450-179a533a35.chunk.js +1 -0
- package/dist/scripts/6467-e4856f0f90.chunk.js +1 -0
- package/dist/scripts/6567-e6d3411b91.chunk.js +2 -0
- package/dist/scripts/{6567-02b07e94bc.chunk.js.LICENSE.txt → 6567-e6d3411b91.chunk.js.LICENSE.txt} +1 -1
- package/dist/scripts/6587-a52e6ae3db.chunk.js +1 -0
- package/dist/scripts/6591-1f53a56a4f.chunk.js +1 -0
- package/dist/scripts/6677-679046f587.chunk.js +1 -0
- package/dist/scripts/6697-72ac40931d.chunk.js +1 -0
- package/dist/scripts/6768-945c9c69c7.chunk.js +1 -0
- package/dist/scripts/6774-e23988f663.chunk.js +1 -0
- package/dist/scripts/6788-40d07b7ac5.chunk.js +1 -0
- package/dist/scripts/6796-2744de7ac8.chunk.js +1 -0
- package/dist/scripts/7071-21381973d1.chunk.js +1 -0
- package/dist/scripts/7182-700d11a1b6.chunk.js +2 -0
- package/dist/scripts/7190-9f654e9bab.chunk.js +1 -0
- package/dist/scripts/7197-46b37cfd17.chunk.js +2 -0
- package/dist/scripts/7197-46b37cfd17.chunk.js.LICENSE.txt +1 -0
- package/dist/scripts/7366-438b9e40d9.chunk.js +1 -0
- package/dist/scripts/7384-738b216ce5.chunk.js +1 -0
- package/dist/scripts/775-f94fdf08a6.chunk.js +1 -0
- package/dist/scripts/777-ad756c2420.chunk.js +2 -0
- package/dist/scripts/777-ad756c2420.chunk.js.LICENSE.txt +1 -0
- package/dist/scripts/7925-afa4ac58db.chunk.js +2 -0
- package/dist/scripts/8113-f198ecf002.chunk.js +1 -0
- package/dist/scripts/8143-3881cf510e.chunk.js +1 -0
- package/dist/scripts/8306-7a937af758.chunk.js +1 -0
- package/dist/scripts/8362-e513473f50.chunk.js +1 -0
- package/dist/scripts/8542-29e39900a1.chunk.js +1 -0
- package/dist/scripts/8591-4b212ec72d.chunk.js +1 -0
- package/dist/scripts/8757-218873f759.chunk.js +2 -0
- package/dist/scripts/8797-d74aa54767.chunk.js +1 -0
- package/dist/scripts/8862-d4faaa1043.chunk.js +1 -0
- package/dist/scripts/8915-60cef85b59.chunk.js +1 -0
- package/dist/scripts/8989-f5a1466541.chunk.js +1 -0
- package/dist/scripts/9011-8ad9cd886b.chunk.js +1 -0
- package/dist/scripts/9037-8ee5edeb0f.chunk.js +1 -0
- package/dist/scripts/9082-6ae95039ff.chunk.js +1 -0
- package/dist/scripts/9090-9d0aafabc4.chunk.js +1 -0
- package/dist/scripts/9096-a05aba009e.chunk.js +1 -0
- package/dist/scripts/9219-a62eb8dec1.chunk.js +1 -0
- package/dist/scripts/9357-cacc922e17.chunk.js +1 -0
- package/dist/scripts/9376-a690087044.chunk.js +1 -0
- package/dist/scripts/95-14875ad65e.chunk.js +1 -0
- package/dist/scripts/9620-47637ac50e.chunk.js +1 -0
- package/dist/scripts/968-4da16290ef.chunk.js +1 -0
- package/dist/scripts/9734-a32f5aa1b8.chunk.js +1 -0
- package/dist/scripts/9743-1a17ae4c30.chunk.js +1 -0
- package/dist/scripts/9766-22dd736844.chunk.js +2 -0
- package/dist/scripts/9825-40ead8d7a8.chunk.js +1 -0
- package/dist/scripts/9928-7069d8d073.chunk.js +1 -0
- package/dist/scripts/bundle-441218310a.min.js +2 -0
- package/dist/scripts/{bundle-7c1c669253.min.js.LICENSE.txt → bundle-441218310a.min.js.LICENSE.txt} +1 -1
- package/dist/scripts/polyfills-be59146258.min.js +1 -0
- package/package.json +1 -1
- package/dist/scripts/1010-9c54dac5ec.chunk.js +0 -1
- package/dist/scripts/1115-189174d1dd.chunk.js +0 -1
- package/dist/scripts/1200-9c85c3d5ca.chunk.js +0 -1
- package/dist/scripts/1318-11b8de6498.chunk.js +0 -1
- package/dist/scripts/1524-ae7b7beeda.chunk.js +0 -1
- package/dist/scripts/1752-111d0ad14d.chunk.js +0 -1
- package/dist/scripts/1934-84460445ad.chunk.js +0 -2
- package/dist/scripts/2035-4bf3392b3a.chunk.js +0 -1
- package/dist/scripts/2539-915297f0b5.chunk.js +0 -1
- package/dist/scripts/2591-730e72b14a.chunk.js +0 -1
- package/dist/scripts/2781-efa54c8c8c.chunk.js +0 -2
- package/dist/scripts/2781-efa54c8c8c.chunk.js.LICENSE.txt +0 -1
- package/dist/scripts/2803-d7cf29380f.chunk.js +0 -1
- package/dist/scripts/2888-97c3b4f37c.chunk.js +0 -1
- package/dist/scripts/299-f415ca8856.chunk.js +0 -1
- package/dist/scripts/3236-24a5bf1bb8.chunk.js +0 -2
- package/dist/scripts/3236-24a5bf1bb8.chunk.js.LICENSE.txt +0 -1
- package/dist/scripts/3305-d21eab0110.chunk.js +0 -1
- package/dist/scripts/336-86a858ee3c.chunk.js +0 -2
- package/dist/scripts/336-86a858ee3c.chunk.js.LICENSE.txt +0 -1
- package/dist/scripts/3373-c35e99d4f4.chunk.js +0 -1
- package/dist/scripts/3391-c1544af17d.chunk.js +0 -1
- package/dist/scripts/3400-7a082a0377.chunk.js +0 -1
- package/dist/scripts/3450-2b77dc7d81.chunk.js +0 -1
- package/dist/scripts/3475-c2090d0f65.chunk.js +0 -1
- package/dist/scripts/3639-a0854003d2.chunk.js +0 -1
- package/dist/scripts/3643-877406d207.chunk.js +0 -1
- package/dist/scripts/3664-7bab52835f.chunk.js +0 -1
- package/dist/scripts/3763-7ae73d91fa.chunk.js +0 -1
- package/dist/scripts/3873-32cef8b267.chunk.js +0 -1
- package/dist/scripts/4096-2f0afc78f8.chunk.js +0 -1
- package/dist/scripts/4201-f856bd659a.chunk.js +0 -1
- package/dist/scripts/4245-09abccc77c.chunk.js +0 -1
- package/dist/scripts/4327-b8cd9a74f9.chunk.js +0 -1
- package/dist/scripts/4567-3ca6ef4308.chunk.js +0 -1
- package/dist/scripts/4591-7f81bdcc51.chunk.js +0 -1
- package/dist/scripts/4796-1330a255f5.chunk.js +0 -2
- package/dist/scripts/4796-1330a255f5.chunk.js.LICENSE.txt +0 -1
- package/dist/scripts/5173-9338a14ee3.chunk.js +0 -1
- package/dist/scripts/5180-542a42cb27.chunk.js +0 -1
- package/dist/scripts/5327-c4b6d0885a.chunk.js +0 -1
- package/dist/scripts/5346-4a50d1fd29.chunk.js +0 -1
- package/dist/scripts/5412-9a31b69a02.chunk.js +0 -1
- package/dist/scripts/5418-a9d060f9d0.chunk.js +0 -1
- package/dist/scripts/5424-843a480e1a.chunk.js +0 -1
- package/dist/scripts/5513-1c7c464e84.chunk.js +0 -1
- package/dist/scripts/576-b7bc67c359.chunk.js +0 -1
- package/dist/scripts/5972-e170671a7c.chunk.js +0 -1
- package/dist/scripts/6239-b13c96eaf8.chunk.js +0 -1
- package/dist/scripts/6350-ebae8f11b0.chunk.js +0 -1
- package/dist/scripts/6439-8aac0bd92a.chunk.js +0 -1
- package/dist/scripts/6450-8de9792b20.chunk.js +0 -1
- package/dist/scripts/6467-eae5f517db.chunk.js +0 -1
- package/dist/scripts/6567-02b07e94bc.chunk.js +0 -2
- package/dist/scripts/6587-2e97f69e7a.chunk.js +0 -1
- package/dist/scripts/6591-62947b6aea.chunk.js +0 -1
- package/dist/scripts/6677-5c66883ffc.chunk.js +0 -1
- package/dist/scripts/6697-efdc49a3ce.chunk.js +0 -1
- package/dist/scripts/6768-416924be66.chunk.js +0 -1
- package/dist/scripts/6774-7ed47e1b8c.chunk.js +0 -1
- package/dist/scripts/6788-5ad863550d.chunk.js +0 -1
- package/dist/scripts/6796-d47d2fa948.chunk.js +0 -1
- package/dist/scripts/7071-e41e06917b.chunk.js +0 -1
- package/dist/scripts/7182-e45ad5e0fe.chunk.js +0 -2
- package/dist/scripts/7190-3b8aefddee.chunk.js +0 -1
- package/dist/scripts/7197-35da0227f2.chunk.js +0 -2
- package/dist/scripts/7197-35da0227f2.chunk.js.LICENSE.txt +0 -1
- package/dist/scripts/7366-4b7b22791a.chunk.js +0 -1
- package/dist/scripts/7384-8f86b79bd6.chunk.js +0 -1
- package/dist/scripts/775-96028af5a8.chunk.js +0 -1
- package/dist/scripts/777-03d78e4162.chunk.js +0 -2
- package/dist/scripts/777-03d78e4162.chunk.js.LICENSE.txt +0 -1
- package/dist/scripts/7925-b80cab7a7a.chunk.js +0 -2
- package/dist/scripts/8113-fa8be2fe60.chunk.js +0 -1
- package/dist/scripts/8143-3c844e6f7b.chunk.js +0 -1
- package/dist/scripts/8306-7e1ecc6b80.chunk.js +0 -1
- package/dist/scripts/8362-976c6b3cfc.chunk.js +0 -1
- package/dist/scripts/8542-a96ff58cda.chunk.js +0 -1
- package/dist/scripts/8591-047736d51e.chunk.js +0 -1
- package/dist/scripts/8757-9ff47570ba.chunk.js +0 -2
- package/dist/scripts/8797-2e772deab9.chunk.js +0 -1
- package/dist/scripts/8862-292b678cef.chunk.js +0 -1
- package/dist/scripts/8915-e31f2d1282.chunk.js +0 -1
- package/dist/scripts/8989-1ca7a01335.chunk.js +0 -1
- package/dist/scripts/9011-4862aa077d.chunk.js +0 -1
- package/dist/scripts/9037-7ce5f91571.chunk.js +0 -1
- package/dist/scripts/9082-ad6d7d2f96.chunk.js +0 -1
- package/dist/scripts/9090-42d71ef295.chunk.js +0 -1
- package/dist/scripts/9096-ce7dabfccf.chunk.js +0 -1
- package/dist/scripts/9219-5a71a27c3e.chunk.js +0 -1
- package/dist/scripts/9357-64d247d840.chunk.js +0 -1
- package/dist/scripts/9376-fa6bc20209.chunk.js +0 -1
- package/dist/scripts/95-d04a83d83f.chunk.js +0 -1
- package/dist/scripts/9620-3ba8334ebc.chunk.js +0 -1
- package/dist/scripts/968-b8e7ead008.chunk.js +0 -1
- package/dist/scripts/9734-bf7adc8154.chunk.js +0 -1
- package/dist/scripts/9743-d88fb1f700.chunk.js +0 -1
- package/dist/scripts/9766-da39830c71.chunk.js +0 -2
- package/dist/scripts/9825-965bc63629.chunk.js +0 -1
- package/dist/scripts/9928-0d83a09f31.chunk.js +0 -1
- package/dist/scripts/bundle-7c1c669253.min.js +0 -2
- package/dist/scripts/polyfills-4c06ebd0dd.min.js +0 -1
- /package/dist/scripts/{1934-84460445ad.chunk.js.LICENSE.txt → 1934-1deec5c14f.chunk.js.LICENSE.txt} +0 -0
- /package/dist/scripts/{7182-e45ad5e0fe.chunk.js.LICENSE.txt → 7182-700d11a1b6.chunk.js.LICENSE.txt} +0 -0
- /package/dist/scripts/{7925-b80cab7a7a.chunk.js.LICENSE.txt → 7925-afa4ac58db.chunk.js.LICENSE.txt} +0 -0
- /package/dist/scripts/{8757-9ff47570ba.chunk.js.LICENSE.txt → 8757-218873f759.chunk.js.LICENSE.txt} +0 -0
- /package/dist/scripts/{9766-da39830c71.chunk.js.LICENSE.txt → 9766-22dd736844.chunk.js.LICENSE.txt} +0 -0
|
@@ -1 +0,0 @@
|
|
|
1
|
-
(self.webpackChunk_clickview_library_editor=self.webpackChunk_clickview_library_editor||[]).push([[775],{79665:function(e,t,n){"use strict";n.d(t,{A:function(){return v}});var o=n(43823),r=n(21161),i=n(57857),l=n(31647),c=n(52076),u=n(75226),s=n(93569),a=n(58315),p=n.n(a);function f(e){return f="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},f(e)}function d(e,t){for(var n=0;n<t.length;n++){var o=t[n];o.enumerable=o.enumerable||!1,o.configurable=!0,"value"in o&&(o.writable=!0),Object.defineProperty(e,y(o.key),o)}}function y(e){var t=function(e){if("object"!=f(e)||!e)return e;var t=e[Symbol.toPrimitive];if(void 0!==t){var n=t.call(e,"string");if("object"!=f(n))return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}(e);return"symbol"==f(t)?t:t+""}function h(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){})))}catch(e){}return(h=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),function(e,t,n){return t=b(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||[],b(e).constructor):t.apply(e,n))}(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,(l=[{key:"initialize",value:function(){this.bindListeners(),s.yV.deselectAll(this.collection),s.yV.setSelected(this.options.currentLibraryId,this.collection)}},{key:"name",get:function(){return"LibrarySelectComponent"}},{key:"channelName",get:function(){return"".concat(this.name).concat(this.cid)}},{key:"className",get:function(){return"position-relative"}},{key:"lang",get:function(){return"libraryEditor.librarySelect"}},{key:"template",get:function(){return p()}},{key:"regions",value:function(){return{dropdown:{el:".dropdown-menu-region",replaceElement:!0}}}},{key:"bindListeners",value:function(){var e=this;this.listenTo(this.channelName,"select:option:selected",(function(t){o.Radio.channel(e.options.channelName).trigger("library:selected",t)}))}},{key:"getIsOptionDisabledFn",value:function(){var e=this.options.disabledLibraryIds;return function(t){var n=t||this.model;if(r.contains(e,n.get("id")+""))return!0}}},{key:"onRender",value:function(){this.showChildView("dropdown",new u.H({collection:this.collection,channelName:this.channelName,childOptions:{titleProperty:"name",eventName:"select:option:click",isDisabled:this.getIsOptionDisabledFn()},placeholderText:this.options.placeholderText||i.T.getPhrase(this.lang,"placeholder"),noOptionsText:i.T.getPhrase(this.lang,"noLibraries"),inputName:this.options.inputName,disabled:0===this.collection.length||this.options.disabled,analyticsHelper:c.k}))}}])&&d(n.prototype,l),Object.defineProperty(n,"prototype",{writable:!1}),n;var n,l}(l.Q.wA)},71641:function(e,t,n){"use strict";n.d(t,{w:function(){return f}});var o=n(21161),r=n(31647),i=n(55142);function l(e){return l="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},l(e)}function c(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){if("object"!=l(e)||!e)return e;var t=e[Symbol.toPrimitive];if(void 0!==t){var n=t.call(e,"string");if("object"!=l(n))return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}(e);return"symbol"==l(t)?t:t+""}function s(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){})))}catch(e){}return(s=function(){return!!e})()}function a(e){return a=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(e){return e.__proto__||Object.getPrototypeOf(e)},a(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),function(e,t,n){return t=a(t),function(e,t){if(t&&("object"==l(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,s()?Reflect.construct(t,n||[],a(e).constructor):t.apply(e,n))}(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,r=[{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 i.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,r="dropdown-menu-".concat(n);return o&&(r="".concat(r," ").concat(o)),r}},{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)}}}],r&&c(n.prototype,r),Object.defineProperty(n,"prototype",{writable:!1}),n;var n,r}(r.Q.$W)},75226:function(e,t,n){"use strict";n.d(t,{H:function(){return m}});var o=n(43823),r=n(21161),i=n(31647),l=n(71641),c=n(93569),u=n(46635),s=n.n(u),a={dropdownMenu:"oKdKI",selectButton:"fTeoW",disabled:"gZbQ4"};function p(e){return p="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},p(e)}function f(e,t){for(var n=0;n<t.length;n++){var o=t[n];o.enumerable=o.enumerable||!1,o.configurable=!0,"value"in o&&(o.writable=!0),Object.defineProperty(e,d(o.key),o)}}function d(e){var t=function(e){if("object"!=p(e)||!e)return e;var t=e[Symbol.toPrimitive];if(void 0!==t){var n=t.call(e,"string");if("object"!=p(n))return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}(e);return"symbol"==p(t)?t:t+""}function y(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){})))}catch(e){}return(y=function(){return!!e})()}function h(e){return h=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(e){return e.__proto__||Object.getPrototypeOf(e)},h(e)}function b(e,t){return b=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(e,t){return e.__proto__=t,e},b(e,t)}var 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=function(e,t,n){return t=h(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||[],h(e).constructor):t.apply(e,n))}(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&&b(e,t)}(t,e),n=t,i=[{key:"initialize",value:function(){this.setModel(),this.bindListeners()}},{key:"name",get:function(){return"SelectComponent"}},{key:"template",get:function(){return s()}},{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){c.yV.getSelected(this.collection)?this.optionStep=1:this.optionStep=0;var t=this.getNextModel(e.keyCode);for(t||(c.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)||(c.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=c.yV.getSelected(this.collection)}},{key:"getNextModel",value:function(e){var t,n=c.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))||(c.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=r.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=r.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=r.first(n),this.sameCharIndex=0),this.sameCharIndex++,o}return r.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(!r.isFunction(this.options.childOptions.isDisabled))return!1;for(var n=arguments.length,o=new Array(n>1?n-1:0),i=1;i<n;i++)o[i-1]=arguments[i];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=c.yV.getSelected(this.collection);return e&&e.get(this.options.displayProperty)||this.options.placeholderText}},{key:"viewOptions",value:function(){return{styles:a,inputName:this.options.inputName,disabled:this.options.disabled,placeholderText:this.getButtonText()}}},{key:"onRender",value:function(){this.showChildView("dropdown",new l.w({collection:this.collection,channelName:this.options.channelName,childOptions:r.extend(this.options.childOptions),displayOptions:{extraClasses:"w-100 ".concat(a.dropdownMenu)},analyticsHelper:this.options.analyticsHelper}))}}],i&&f(n.prototype,i),Object.defineProperty(n,"prototype",{writable:!1}),n;var n,i}(i.Q.wA)},75917:function(e,t,n){"use strict";n.d(t,{Y:function(){return m}});var o=n(43823),r=n(57857),i=n(31647),l=n(50299),c=n(93569),u=n(68979),s=n.n(u),a={selectBtn:"tZUtI",list:"MxlSt",selector:"qHvbU",maxHeight:"jp36d",customItem:"aJzJB"};function p(e){return p="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},p(e)}function f(e,t){for(var n=0;n<t.length;n++){var o=t[n];o.enumerable=o.enumerable||!1,o.configurable=!0,"value"in o&&(o.writable=!0),Object.defineProperty(e,d(o.key),o)}}function d(e){var t=function(e){if("object"!=p(e)||!e)return e;var t=e[Symbol.toPrimitive];if(void 0!==t){var n=t.call(e,"string");if("object"!=p(n))return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}(e);return"symbol"==p(t)?t:t+""}function y(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){})))}catch(e){}return(y=function(){return!!e})()}function h(e){return h=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(e){return e.__proto__||Object.getPrototypeOf(e)},h(e)}function b(e,t){return b=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(e,t){return e.__proto__=t,e},b(e,t)}var m=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),function(e,t,n){return t=h(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||[],h(e).constructor):t.apply(e,n))}(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&&b(e,t)}(t,e),n=t,i=[{key:"initialize",value:function(){this.listenTo(this.options.channelName,"folder:selected new:folder:selected",this.setButtonText),this.listenTo(this.options.channelName,"re:render:selector",this.renderSelector),this.disabledIds=this.options.disabledIds&&this.options.disabledIds.reduce((function(e,t){return Object.assign(Object.assign({},e),(n={},r=!0,(o=d(o=t))in n?Object.defineProperty(n,o,{value:r,enumerable:!0,configurable:!0,writable:!0}):n[o]=r,n));var n,o,r}),{})}},{key:"name",get:function(){return"TreeDropdownComponent"}},{key:"template",get:function(){return s()}},{key:"className",get:function(){return"position-relative"}},{key:"lang",get:function(){return"libraryEditor.treeDropdown"}},{key:"regions",value:function(){return{selector:{el:".selector-region",replaceElement:!1}}}},{key:"events",value:function(){return{"click .create-new":"onClickCreateNew"}}},{key:"defaults",get:function(){return{disabledIds:[]}}},{key:"elements",get:function(){return{button:".button-text"}}},{key:"onClickCreateNew",value:function(e){e.preventDefault(),o.Radio.channel(this.options.channelName).trigger("create:folder:clicked")}},{key:"setButtonText",value:function(e,t){if(e&&!t){var n=e.get("name");this.getUI("button").text(n)}else{var o=c.PU.getSelected(this.options.folderTreeKey,this.collection),i=o?o.get("name"):r.T.getPhrase(this.lang,"button");this.getUI("button").text(i)}}},{key:"renderSelector",value:function(){this.showChildView("selector",new l.J({styles:a,collection:this.collection,channelName:this.options.channelName,childrenProperty:"children",folderTreeId:this.options.folderTreeKey,extraClass:a.list,isSelector:!0,disabledIds:this.disabledIds||{}}))}},{key:"viewOptions",value:function(){return{styles:a,name:this.options.name||this.options.channelName,buttonText:this.buttonText,canCreateNew:this.options.canCreateNew,dropdown:this.options.dropdown}}},{key:"onRender",value:function(){this.setButtonText(),this.renderSelector()}}],i&&f(n.prototype,i),Object.defineProperty(n,"prototype",{writable:!1}),n;var n,i}(i.Q.wA)},67670:function(e,t,n){"use strict";n.d(t,{v:function(){return f}});var o=n(31647),r=n(88172);function i(e){return i="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},i(e)}function l(e,t,n){return(t=u(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function c(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){if("object"!=i(e)||!e)return e;var t=e[Symbol.toPrimitive];if(void 0!==t){var n=t.call(e,"string");if("object"!=i(n))return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}(e);return"symbol"==i(t)?t:t+""}function s(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){})))}catch(e){}return(s=function(){return!!e})()}function a(e){return a=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(e){return e.__proto__||Object.getPrototypeOf(e)},a(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),function(e,t,n){return t=a(t),function(e,t){if(t&&("object"==i(t)||"function"==typeof t))return t;if(void 0!==t)throw new TypeError("Derived constructors may only return object or undefined");return function(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}(e)}(e,s()?Reflect.construct(t,n||[],a(e).constructor):t.apply(e,n))}(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 l(l({},r.ZV.Disabled,!0),r.ZV.Hidden,!1)}}])&&c(n.prototype,o),Object.defineProperty(n,"prototype",{writable:!1}),n;var n,o}(o.Q.Hn)},58315:function(e,t,n){var o=n(31197);e.exports=(o.default||o).template({compiler:[8,">= 4.3.0"],main:function(e,t,n,o,r){return'<div class="dropdown-menu-region"></div>\n<div class="form-feedback"></div>'},useData:!0})},46635:function(e,t,n){var o=n(31197);e.exports=(o.default||o).template({1:function(e,t,n,o,r){var i;return e.propertyIsEnumerable,e.escapeExpression(e.lambda(null!=(i=null!=(i=null!=t?t.options:t)?i.styles:i)?i.disabled:i,t))},3:function(e,t,n,o,r){return" disabled"},compiler:[8,">= 4.3.0"],main:function(e,t,n,o,r){e.propertyIsEnumerable;var i,l=e.lambda,c=e.escapeExpression,u=null!=t?t:e.nullContext||{};return'<button \n class="dropdown-toggle form-control text-start position-relative '+c(l(null!=(i=null!=(i=null!=t?t.options:t)?i.styles:i)?i.selectButton:i,t))+" "+(null!=(i=n.if.call(u,null!=(i=null!=t?t.options:t)?i.disabled:i,{name:"if",hash:{},fn:e.program(1,r,0),inverse:e.noop,data:r}))?i:"")+'" \n type="button" \n id="dropdownMenuButton" \n data-bs-toggle="dropdown" \n aria-haspopup="true" \n aria-expanded="false"\n '+(null!=(i=n.if.call(u,null!=(i=null!=t?t.options:t)?i.disabled:i,{name:"if",hash:{},fn:e.program(3,r,0),inverse:e.noop,data:r}))?i:"")+' \n name="'+c(l(null!=(i=null!=t?t.options:t)?i.inputName:i,t))+'"\n >\n '+c(l(null!=(i=null!=t?t.options:t)?i.placeholderText:i,t))+'\n</button>\n<div class="dropdown-region"></div>\n<div class="form-feedback"></div>'},useData:!0})},68979:function(e,t,n){var o=n(31197);e.exports=(o.default||o).template({1:function(e,t,n,o,r){e.propertyIsEnumerable;var i,l=e.lambda,c=e.escapeExpression;return' <button\n class="'+c(l(null!=(i=null!=(i=null!=t?t.options:t)?i.styles:i)?i.selectBtn:i,t))+' form-select form-control"\n data-bs-toggle="dropdown"\n aria-haspopup="true"\n aria-expanded="false"\n name='+c(l(null!=(i=null!=t?t.options:t)?i.name:i,t))+'\n >\n <span class="d-block text-truncate button-text">\n '+c(l(null!=(i=null!=t?t.options:t)?i.buttonText:i,t))+'\n </span>\n </button>\n<div class="dropdown-menu '+c(l(null!=(i=null!=(i=null!=t?t.options:t)?i.styles:i)?i.selector:i,t))+'">\n'},3:function(e,t,n,o,r){var i;return e.propertyIsEnumerable,"border rounded-3 "+e.escapeExpression(e.lambda(null!=(i=null!=(i=null!=t?t.options:t)?i.styles:i)?i.maxHeight:i,t))},5:function(e,t,n,o,r){e.propertyIsEnumerable;var i,l=e.escapeExpression;return' <button class="create-new btn fw-bold rounded-0 rounded-bottom-lg w-100 text-start '+l(e.lambda(null!=(i=null!=(i=null!=t?t.options:t)?i.styles:i)?i.customItem:i,t))+'">'+l((n.lang||t&&t.lang||e.hooks.helperMissing).call(null!=t?t:e.nullContext||{},"createNew",{name:"lang",hash:{},data:r}))+"</button>\n"},compiler:[8,">= 4.3.0"],main:function(e,t,n,o,r){e.propertyIsEnumerable;var i,l=null!=t?t:e.nullContext||{};return(null!=(i=n.if.call(l,null!=(i=null!=t?t.options:t)?i.dropdown:i,{name:"if",hash:{},fn:e.program(1,r,0),inverse:e.noop,data:r}))?i:"")+'<div class="'+(null!=(i=n.unless.call(l,null!=(i=null!=t?t.options:t)?i.dropdown:i,{name:"unless",hash:{},fn:e.program(3,r,0),inverse:e.noop,data:r}))?i:"")+' overflow-auto" name='+e.escapeExpression(e.lambda(null!=(i=null!=t?t.options:t)?i.name:i,t))+'>\n <div class="selector-region"></div>\n'+(null!=(i=n.if.call(l,null!=(i=null!=t?t.options:t)?i.canCreateNew:i,{name:"if",hash:{},fn:e.program(5,r,0),inverse:e.noop,data:r}))?i:"")+'</div>\n<div class="form-feedback"></div>'},useData:!0})}}]);
|
|
@@ -1,2 +0,0 @@
|
|
|
1
|
-
/*! For license information please see 777-03d78e4162.chunk.js.LICENSE.txt */
|
|
2
|
-
(self.webpackChunk_clickview_library_editor=self.webpackChunk_clickview_library_editor||[]).push([[777],{79472:function(e,t,r){"use strict";r.d(t,{W:function(){return g}});var n=r(43823),i=r(57857),o=r(31647),a=r(57085),c=r(65078),s=r(45390),u=r(43791),l=r.n(u),h={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 p(e,t){for(var r=0;r<t.length;r++){var n=t[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(e,d(n.key),n)}}function d(e){var t=function(e){if("object"!=f(e)||!e)return e;var t=e[Symbol.toPrimitive];if(void 0!==t){var r=t.call(e,"string");if("object"!=f(r))return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}(e);return"symbol"==f(t)?t:t+""}function y(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){})))}catch(e){}return(y=function(){return!!e})()}function v(e){return v=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(e){return e.__proto__||Object.getPrototypeOf(e)},v(e)}function m(e,t){return m=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(e,t){return e.__proto__=t,e},m(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),function(e,t,r){return t=v(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,y()?Reflect.construct(t,r||[],v(e).constructor):t.apply(e,r))}(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),r=t,(o=[{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 l()}},{key:"viewOptions",value:function(){return{styles:h}}},{key:"onSave",value:function(){n.Radio.channel(s.OV.LIBRARY_EDITOR).trigger(s.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 c.n({tabs:this.options.tabs,activeTab:this.options.activeTab})),this.showChildView("breadcrumbs",new a.n({folder:this.options.folder,libraries:this.options.libraries,video:this.model,customBreadcrumbs:[this.getLocationBreadcrumb()],enableLastItemAppLink:!1}))}}])&&p(r.prototype,o),Object.defineProperty(r,"prototype",{writable:!1}),r;var r,o}(o.Q.wA)},61596:function(e,t,r){"use strict";r.d(t,{$:function(){return c}});var n=r(21161),i=r(57857),o=r(93569),a="libraryEditor.utils",c={isValidChapterTime:function(e,t,r,i){if(i){if(!n.isNumber(t))return s.StartTime.Invalid();if(t<0)return s.StartTime.Invalid();if(t>o.X4.millisecondsToSeconds(r))return s.StartTime.Exceeds();if(i.some((function(r){return!(r.id&&r.id===e.id||r.cid===e.cid)&&r.get("startTime")===t})))return s.StartTime.Exists()}},isValidChapterName:function(e,t,r){return t?t.length>255?s.Name.MaxLength():r.some((function(r){return!(r.id&&r.id===e.id||r.cid===e.cid)&&r.get("name").trim()===t.trim()}))?s.Name.Exists():n.isEmpty(t.trim())?s.Name.Invalid():void 0:s.Name.Invalid()}},s={Name:{Invalid:function(){return i.T.getPhrase(a,"chapterNameInvalid")},Exists:function(){return i.T.getPhrase(a,"chapterNameExists")},MaxLength:function(){return i.T.getPhrase(a,"chapterNameExceeds")}},StartTime:{Invalid:function(){return i.T.getPhrase(a,"chapterStartTimeInvalid")},Exists:function(){return i.T.getPhrase(a,"chapterStartTimeExists")},Exceeds:function(){return i.T.getPhrase(a,"chapterStartTimeExceeds")}}}},16704:function(e,t,r){"use strict";r.r(t),r.d(t,{EditChaptersView:function(){return A}});var n=r(99748),i=r(21679),o=r(57857),a=r(31647),c=r(52076),s=r(70065),u=r(59054),l=r(13156),h=r(57e3),f=r(10079),p=r(45390),d=r(29457),y=r(74749),v=r(48404),m=r(19226),g=r(93569),b=r(264),w=r(45114),E=r(71733),T=r(79472),k=r(40622),C=r(56906),O=r(95061),S=r(61159),L=r.n(S);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 x(){x=function(){return t};var e,t={},r=Object.prototype,n=r.hasOwnProperty,i=Object.defineProperty||function(e,t,r){e[t]=r.value},o="function"==typeof Symbol?Symbol:{},a=o.iterator||"@@iterator",c=o.asyncIterator||"@@asyncIterator",s=o.toStringTag||"@@toStringTag";function u(e,t,r){return Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}),e[t]}try{u({},"")}catch(e){u=function(e,t,r){return e[t]=r}}function l(e,t,r,n){var o=t&&t.prototype instanceof m?t:m,a=Object.create(o.prototype),c=new j(n||[]);return i(a,"_invoke",{value:S(e,r,c)}),a}function h(e,t,r){try{return{type:"normal",arg:e.call(t,r)}}catch(e){return{type:"throw",arg:e}}}t.wrap=l;var f="suspendedStart",p="suspendedYield",d="executing",y="completed",v={};function m(){}function g(){}function b(){}var w={};u(w,a,(function(){return this}));var E=Object.getPrototypeOf,T=E&&E(E(N([])));T&&T!==r&&n.call(T,a)&&(w=T);var k=b.prototype=m.prototype=Object.create(w);function C(e){["next","throw","return"].forEach((function(t){u(e,t,(function(e){return this._invoke(t,e)}))}))}function O(e,t){function r(i,o,a,c){var s=h(e[i],e,o);if("throw"!==s.type){var u=s.arg,l=u.value;return l&&"object"==P(l)&&n.call(l,"__await")?t.resolve(l.__await).then((function(e){r("next",e,a,c)}),(function(e){r("throw",e,a,c)})):t.resolve(l).then((function(e){u.value=e,a(u)}),(function(e){return r("throw",e,a,c)}))}c(s.arg)}var o;i(this,"_invoke",{value:function(e,n){function i(){return new t((function(t,i){r(e,n,t,i)}))}return o=o?o.then(i,i):i()}})}function S(t,r,n){var i=f;return function(o,a){if(i===d)throw Error("Generator is already running");if(i===y){if("throw"===o)throw a;return{value:e,done:!0}}for(n.method=o,n.arg=a;;){var c=n.delegate;if(c){var s=L(c,n);if(s){if(s===v)continue;return s}}if("next"===n.method)n.sent=n._sent=n.arg;else if("throw"===n.method){if(i===f)throw i=y,n.arg;n.dispatchException(n.arg)}else"return"===n.method&&n.abrupt("return",n.arg);i=d;var u=h(t,r,n);if("normal"===u.type){if(i=n.done?y:p,u.arg===v)continue;return{value:u.arg,done:n.done}}"throw"===u.type&&(i=y,n.method="throw",n.arg=u.arg)}}}function L(t,r){var n=r.method,i=t.iterator[n];if(i===e)return r.delegate=null,"throw"===n&&t.iterator.return&&(r.method="return",r.arg=e,L(t,r),"throw"===r.method)||"return"!==n&&(r.method="throw",r.arg=new TypeError("The iterator does not provide a '"+n+"' method")),v;var o=h(i,t.iterator,r.arg);if("throw"===o.type)return r.method="throw",r.arg=o.arg,r.delegate=null,v;var a=o.arg;return a?a.done?(r[t.resultName]=a.value,r.next=t.nextLoc,"return"!==r.method&&(r.method="next",r.arg=e),r.delegate=null,v):a:(r.method="throw",r.arg=new TypeError("iterator result is not an object"),r.delegate=null,v)}function V(e){var t={tryLoc:e[0]};1 in e&&(t.catchLoc=e[1]),2 in e&&(t.finallyLoc=e[2],t.afterLoc=e[3]),this.tryEntries.push(t)}function _(e){var t=e.completion||{};t.type="normal",delete t.arg,e.completion=t}function j(e){this.tryEntries=[{tryLoc:"root"}],e.forEach(V,this),this.reset(!0)}function N(t){if(t||""===t){var r=t[a];if(r)return r.call(t);if("function"==typeof t.next)return t;if(!isNaN(t.length)){var i=-1,o=function r(){for(;++i<t.length;)if(n.call(t,i))return r.value=t[i],r.done=!1,r;return r.value=e,r.done=!0,r};return o.next=o}}throw new TypeError(P(t)+" is not iterable")}return g.prototype=b,i(k,"constructor",{value:b,configurable:!0}),i(b,"constructor",{value:g,configurable:!0}),g.displayName=u(b,s,"GeneratorFunction"),t.isGeneratorFunction=function(e){var t="function"==typeof e&&e.constructor;return!!t&&(t===g||"GeneratorFunction"===(t.displayName||t.name))},t.mark=function(e){return Object.setPrototypeOf?Object.setPrototypeOf(e,b):(e.__proto__=b,u(e,s,"GeneratorFunction")),e.prototype=Object.create(k),e},t.awrap=function(e){return{__await:e}},C(O.prototype),u(O.prototype,c,(function(){return this})),t.AsyncIterator=O,t.async=function(e,r,n,i,o){void 0===o&&(o=Promise);var a=new O(l(e,r,n,i),o);return t.isGeneratorFunction(r)?a:a.next().then((function(e){return e.done?e.value:a.next()}))},C(k),u(k,s,"Generator"),u(k,a,(function(){return this})),u(k,"toString",(function(){return"[object Generator]"})),t.keys=function(e){var t=Object(e),r=[];for(var n in t)r.push(n);return r.reverse(),function e(){for(;r.length;){var n=r.pop();if(n in t)return e.value=n,e.done=!1,e}return e.done=!0,e}},t.values=N,j.prototype={constructor:j,reset:function(t){if(this.prev=0,this.next=0,this.sent=this._sent=e,this.done=!1,this.delegate=null,this.method="next",this.arg=e,this.tryEntries.forEach(_),!t)for(var r in this)"t"===r.charAt(0)&&n.call(this,r)&&!isNaN(+r.slice(1))&&(this[r]=e)},stop:function(){this.done=!0;var e=this.tryEntries[0].completion;if("throw"===e.type)throw e.arg;return this.rval},dispatchException:function(t){if(this.done)throw t;var r=this;function i(n,i){return c.type="throw",c.arg=t,r.next=n,i&&(r.method="next",r.arg=e),!!i}for(var o=this.tryEntries.length-1;o>=0;--o){var a=this.tryEntries[o],c=a.completion;if("root"===a.tryLoc)return i("end");if(a.tryLoc<=this.prev){var s=n.call(a,"catchLoc"),u=n.call(a,"finallyLoc");if(s&&u){if(this.prev<a.catchLoc)return i(a.catchLoc,!0);if(this.prev<a.finallyLoc)return i(a.finallyLoc)}else if(s){if(this.prev<a.catchLoc)return i(a.catchLoc,!0)}else{if(!u)throw Error("try statement without catch or finally");if(this.prev<a.finallyLoc)return i(a.finallyLoc)}}}},abrupt:function(e,t){for(var r=this.tryEntries.length-1;r>=0;--r){var i=this.tryEntries[r];if(i.tryLoc<=this.prev&&n.call(i,"finallyLoc")&&this.prev<i.finallyLoc){var o=i;break}}o&&("break"===e||"continue"===e)&&o.tryLoc<=t&&t<=o.finallyLoc&&(o=null);var a=o?o.completion:{};return a.type=e,a.arg=t,o?(this.method="next",this.next=o.finallyLoc,v):this.complete(a)},complete:function(e,t){if("throw"===e.type)throw e.arg;return"break"===e.type||"continue"===e.type?this.next=e.arg:"return"===e.type?(this.rval=this.arg=e.arg,this.method="return",this.next="end"):"normal"===e.type&&t&&(this.next=t),v},finish:function(e){for(var t=this.tryEntries.length-1;t>=0;--t){var r=this.tryEntries[t];if(r.finallyLoc===e)return this.complete(r.completion,r.afterLoc),_(r),v}},catch:function(e){for(var t=this.tryEntries.length-1;t>=0;--t){var r=this.tryEntries[t];if(r.tryLoc===e){var n=r.completion;if("throw"===n.type){var i=n.arg;_(r)}return i}}throw Error("illegal catch attempt")},delegateYield:function(t,r,n){return this.delegate={iterator:N(t),resultName:r,nextLoc:n},"next"===this.method&&(this.arg=e),v}},t}function V(e,t){(null==t||t>e.length)&&(t=e.length);for(var r=0,n=Array(t);r<t;r++)n[r]=e[r];return n}function _(e,t){for(var r=0;r<t.length;r++){var n=t[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(e,j(n.key),n)}}function j(e){var t=function(e){if("object"!=P(e)||!e)return e;var t=e[Symbol.toPrimitive];if(void 0!==t){var r=t.call(e,"string");if("object"!=P(r))return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}(e);return"symbol"==P(t)?t:t+""}function N(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){})))}catch(e){}return(N=function(){return!!e})()}function I(e){return I=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(e){return e.__proto__||Object.getPrototypeOf(e)},I(e)}function D(e,t){return D=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(e,t){return e.__proto__=t,e},D(e,t)}var A=function(e){function t(e){var r;return function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,t),(r=function(e,t,r){return t=I(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,N()?Reflect.construct(t,r||[],I(e).constructor):t.apply(e,r))}(this,t,[e]))._viewKeyRequested=!1,r}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&&D(e,t)}(t,e),r=t,(S=[{key:"initialize",value:function(){this.bindListeners(),this.initializeDataServices(),g.Si.initBackButton()}},{key:"name",get:function(){return"EditVideoChaptersView"}},{key:"title",get:function(){return!!this.model&&this.model.get("name")}},{key:"lang",get:function(){return"libraryEditor.editChapters"}},{key:"channelName",get:function(){return"".concat(this.name).concat(this.cid)}},{key:"className",get:function(){return"bg-white p-3 rounded"}},{key:"template",get:function(){return L()}},{key:"regions",value:function(){return{tabs:{el:".tab-region",partialLoading:d.LP.EditVideoTabs},webplayer:{replaceElement:!0,el:".webplayer-region",partialLoading:d.LP.WebPlayer},addChapter:{replaceElement:!0,el:".add-chapter-region",partialLoading:d.LP.EditVideoChaptersForm},chapterList:{replaceElement:!0,el:".chapter-list-region",partialLoading:d.LP.EditVideoChapterList}}}},{key:"bindListeners",value:function(){this.listenTo(p.Vk.VIDEO,"".concat(p.M_.VIDEOS,":").concat(this.options.videoId,":sync"),this.render),this.listenTo(p.Vk.VIDEO,"".concat(p.M_.VIDEOS,":").concat(this.options.videoId,":error"),this.onVideoDataError),this.listenTo(this.channelName,k.NT.CreateChapter,this.onCreateChapter),this.listenTo(this.channelName,k.NT.UpdateChapter,this.onUpdateChapter),this.listenTo(this.channelName,k.NT.DeleteChapter,this.onDeleteChapter),this.listenTo(this.channelName,k.NT.UpdateChapterTime,this.onTimeInputUpdate),this.listenTo(this.channelName,k.NT.SeekToChapter,this.onSeekToChapter)}},{key:"initializeDataServices",value:function(){this.videoDataService=i.u.getInstance(p.Or.Video,this),this.chapterDataService=i.u.getInstance(p.Or.Chapter,this),this.playerDataService=i.u.getInstance(p.Or.Player,this)}},{key:"onVideoDataError",value:function(e){switch(e.type){case n.h.NotFound:a.Q.Ry.throw(new C.l1);break;case n.h.Forbidden:a.Q.Ry.throw(new C.aV)}}},{key:"updateChapters",value:function(){var e=this;if(b.g.hasLite){var t=this.chapters.toJSON().reverse().reduce((function(t,r){var n=t[t.length-1];return[].concat(function(e){return function(e){if(Array.isArray(e))return V(e)}(e)||function(e){if("undefined"!=typeof Symbol&&null!=e[Symbol.iterator]||null!=e["@@iterator"])return Array.from(e)}(e)||function(e,t){if(e){if("string"==typeof e)return V(e,t);var r={}.toString.call(e).slice(8,-1);return"Object"===r&&e.constructor&&(r=e.constructor.name),"Map"===r||"Set"===r?Array.from(e):"Arguments"===r||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r)?V(e,t):void 0}}(e)||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.")}()}(t),[{timestamp:r.startTime,endTimestamp:(null==n?void 0:n.timestamp)||e.player.duration(),name:r.name}])}),[]).reverse();this.player.setChapters(t)}}},{key:"onCreateChapter",value:function(e){0===this.chapters.length&&0!==e.startTime&&this.createChapter({name:o.T.getPhrase(this.lang,"intro"),startTime:0}),this.createChapter(e)}},{key:"createChapter",value:function(e){var t=this,r=new y.W(e);this.chapters.add(r),r.set("loading",!0),this.chapterDataService.createChapter(this.model.get("id"),e.name,e.startTime,(function(e){r.set(e.toJSON(),{silent:!0}),r.set("loading",!1),t.chapters.sort(),t.renderChapterForm(),t.updateChapters(),t.logAction(e,s.Vw.Create)}))}},{key:"onUpdateChapter",value:function(e){var t=this,r=this.chapters.find((function(t){return t.get("id")===e.id}));r.set("loading",!0);var n=l.J.updatedChaptersAlert(this.model.get("name"));this.chapterDataService.updateChapter(r.id,e.name,e.startTime,(function(e){r.set(e.toJSON(),{silent:!0}),r.set("loading",!1),t.chapters.sort(),t.updateChapters(),t.logAction(e,s.Vw.Edit)}),n)}},{key:"onDeleteChapter",value:function(e){var t=this;e.set("loading",!0),this.chapterDataService.deleteChapter(e.id,(function(){t.logAction(e,s.Vw.Delete),t.chapters.remove(e),t.updateChapters()}))}},{key:"onTimeInputUpdate",value:function(e){e>=0&&e<=g.X4.millisecondsToSeconds(this.model.get("duration"))&&(this.player?this.player.currentTime(e):this.webPlayer.seekTo(e))}},{key:"logAction",value:function(e,t){var r=Object.assign({videoId:this.model.get("id")},e.pick("id","name","startTime"));c.k.logUserAction(r,{actionType:t,entity:s.py.Chapter,location:s.LZ.EditVideoChapters})}},{key:"onSeekToChapter",value:function(e){return t=this,r=void 0,n=void 0,i=x().mark((function t(){var r,n;return x().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:if(!(e<0)){t.next=2;break}return t.abrupt("return");case 2:if(!this.player){t.next=9;break}return t.next=5,this.player.getChapters();case 5:return r=t.sent,n=r[e],this.player.currentTime(n.timestamp),t.abrupt("return");case 9:this.webPlayer.seekToChapter(e);case 10:case"end":return t.stop()}}),t,this)})),new(n||(n=Promise))((function(e,o){function a(e){try{s(i.next(e))}catch(e){o(e)}}function c(e){try{s(i.throw(e))}catch(e){o(e)}}function s(t){var r;t.done?e(t.value):(r=t.value,r instanceof n?r:new n((function(e){e(r)}))).then(a,c)}s((i=i.apply(t,r||[])).next())}));var t,r,n,i}},{key:"renderChapterList",value:function(){this.showChildView("chapterList",new E.Q({collection:this.chapters,duration:this.model.get("duration"),channelName:this.channelName,showActions:!0,editable:!0,showHeader:!0}))}},{key:"renderChapterForm",value:function(){this.showChildView("addChapter",new w.L({model:new y.W,collection:this.chapters,creating:!0,duration:this.model.get("duration"),channelName:this.channelName,playerViewModelKey:"".concat(p._2.NAME,"-").concat(this.model.get("id"))}))}},{key:"renderEditComponents",value:function(){this.renderChapterForm(),this.renderChapterList()}},{key:"renderTabs",value:function(){var e=g.BK.canEditVideo(this.model);this.showChildView("tabs",new T.W({model:this.model,tabs:g.Si.getEditVideoTabs(this.options.videoId,e),activeTab:".edit-chapters-applink",context:"chapters",folder:this.folder,libraries:this.libraries}))}},{key:"renderWebPlayer",value:function(){if(this.playerViewKey)return this.player=new h.l({model:this.playerViewKey,playerApiUrl:this.config.get("playerApiUrl"),channelName:this.channelName,inactivityTimeout:0}),void this.showChildView("webplayer",this.player);this.webPlayer=new f.Q({model:this.model,webPlayerUrl:this.config.get("webPlayerUrl"),captureAnalytics:!1,currentUser:this.currentUser}),this.showChildView("webplayer",this.webPlayer)}},{key:"redirectToVideoDetails",value:function(){a.Q.C$.trigger({application:p.OV.LIBRARY_EDITOR,action:p.eX.LibraryEditor.VIDEO_DETAILS,args:[this.model.get("id")]},{replace:!0})}},{key:"fetchData",value:function(){var e=this;this.model=this.videoDataService.getVideo(this.options.videoId),this.model&&(g.BK.canEditVideo(this.model)?(this.chapters=this.model.chapters,this.folder=this.model.categories.first(),b.g.hasLite&&!this._viewKeyRequested&&(this._viewKeyRequested=!0,this.playerDataService.createViewKey(this.model.get("id"),u.f.MasterObject,(function(t){e.playerViewKey=t,e.render()})))):this.redirectToVideoDetails())}},{key:"shouldRender",value:function(){return!(!this.model||b.g.hasLite&&!this.playerViewKey)}},{key:"requiredResources",get:function(){return{config:v.p.config,currentUser:m.K.currentUser,libraries:O.T.libraries}}},{key:"onBeforeRender",value:function(){return this.fetchData(),this.shouldRender()}},{key:"onRender",value:function(){this.renderTabs(),this.renderWebPlayer(),this.renderEditComponents()}}])&&_(r.prototype,S),Object.defineProperty(r,"prototype",{writable:!1}),r;var r,S}(a.Q.G7)},43791:function(e,t,r){var n=r(31197);e.exports=(n.default||n).template({compiler:[8,">= 4.3.0"],main:function(e,t,r,n,i){var o;return e.propertyIsEnumerable,'<h1 class="h3">\n '+e.escapeExpression("function"==typeof(o=null!=(o=r.name||(null!=t?t.name:t))?o:e.hooks.helperMissing)?o.call(null!=t?t:e.nullContext||{},{name:"name",hash:{},data:i}):o)+'\n</h2>\n<div class="breadcrumbs-region"></div>\n<div class="tabs-region ps-2"></div>'},useData:!0})},61159:function(e,t,r){var n=r(31197);e.exports=(n.default||n).template({compiler:[8,">= 4.3.0"],main:function(e,t,r,n,i){return'<div class="tab-region w-100"></div>\n<div class="row">\n <div class="col-6 pt-3">\n <div class="webplayer-region"></div>\n <div class="add-chapter-region"></div>\n </div>\n <div class="col-6 mb-2 pt-3">\n <div class="chapter-list-region"></div>\n </div>\n</div>'},useData:!0})}}]);
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
/*! regenerator-runtime -- Copyright (c) 2014-present, Facebook, Inc. -- license (MIT): https://github.com/facebook/regenerator/blob/main/LICENSE */
|