@clickview/library-editor 1.5.0 → 1.5.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 +3 -3
- package/dist/css/1086-library-editor-968a46a22b.chunk.css +8 -0
- package/dist/css/1409-library-editor-c2f01466c5.chunk.css +2 -0
- package/dist/css/1832-library-editor-761fcb8755.chunk.css +2 -0
- package/dist/css/243-library-editor-ef57ff2380.chunk.css +4 -0
- package/dist/css/2526-library-editor-4e1576c40b.chunk.css +32 -0
- package/dist/css/2692-library-editor-968a46a22b.chunk.css +8 -0
- package/dist/css/3427-library-editor-d2c6b60f4b.chunk.css +18 -0
- package/dist/css/3803-library-editor-780ab340b7.chunk.css +28 -0
- package/dist/css/409-library-editor-38562d76cd.chunk.css +10 -0
- package/dist/css/4198-library-editor-b1bd4cf413.chunk.css +2 -0
- package/dist/css/4269-library-editor-deb40a91d3.chunk.css +14 -0
- package/dist/css/435-library-editor-cc1aed9a29.chunk.css +10 -0
- package/dist/css/4353-library-editor-ab9b6e56f4.chunk.css +8 -0
- package/dist/css/4463-library-editor-31ad107af8.chunk.css +30 -0
- package/dist/css/469-library-editor-e4fb95eadc.chunk.css +80 -0
- package/dist/css/4810-library-editor-f78ee0ac30.chunk.css +24 -0
- package/dist/css/4860-library-editor-d2f7f18ab7.chunk.css +2 -0
- package/dist/css/5047-library-editor-616fd087e9.chunk.css +22 -0
- package/dist/css/514-library-editor-58793ed69e.chunk.css +2 -0
- package/dist/css/5248-library-editor-673111a906.chunk.css +30 -0
- package/dist/css/5356-library-editor-84c7439a3a.chunk.css +32 -0
- package/dist/css/5624-library-editor-6d43685081.chunk.css +14 -0
- package/dist/css/5747-library-editor-a3e5ded646.chunk.css +2 -0
- package/dist/css/6093-library-editor-07e26e7dd0.chunk.css +2 -0
- package/dist/css/7053-library-editor-96752915ef.chunk.css +2 -0
- package/dist/css/8080-library-editor-fbbbd8b68b.chunk.css +14 -0
- package/dist/css/8343-library-editor-ecb0d73baf.chunk.css +20 -0
- package/dist/css/8420-library-editor-f8846ec2c2.chunk.css +40 -0
- package/dist/css/8762-library-editor-968a46a22b.chunk.css +8 -0
- package/dist/css/8906-library-editor-968a46a22b.chunk.css +8 -0
- package/dist/css/9298-library-editor-8876725368.chunk.css +12 -0
- package/dist/css/9383-library-editor-33aa5f52c7.chunk.css +32 -0
- package/dist/css/9695-library-editor-a995f8ddfd.chunk.css +2 -0
- package/dist/css/library-editor-app-80e343eeaa.css +121 -0
- package/dist/en.json +1 -1
- package/dist/scripts/1010-187155c696.chunk.js +1 -0
- package/dist/scripts/1086-f133353b06.chunk.js +1 -0
- package/dist/scripts/1409-5012f7ef74.chunk.js +1 -0
- package/dist/scripts/1832-a7aa0ecef5.chunk.js +1 -0
- package/dist/scripts/1934-3b82bbbc99.chunk.js +2 -0
- package/dist/scripts/1934-3b82bbbc99.chunk.js.LICENSE.txt +9 -0
- package/dist/scripts/2098-ad8754cfb1.chunk.js +1 -0
- package/dist/scripts/243-395c50486d.chunk.js +1 -0
- package/dist/scripts/2526-3655c9227a.chunk.js +1 -0
- package/dist/scripts/259-ee63296af8.chunk.js +1 -0
- package/dist/scripts/2692-68c581fa09.chunk.js +1 -0
- package/dist/scripts/2733-953a077283.chunk.js +1 -0
- package/dist/scripts/2803-3d9658a39f.chunk.js +1 -0
- package/dist/scripts/2888-dcb3f9554c.chunk.js +1 -0
- package/dist/scripts/299-8561db699d.chunk.js +1 -0
- package/dist/scripts/3019-8c7fdaf749.chunk.js +1 -0
- package/dist/scripts/3096-81108d029e.chunk.js +1 -0
- package/dist/scripts/3122-ef94efcef2.chunk.js +1 -0
- package/dist/scripts/3400-3a56ad67d9.chunk.js +1 -0
- package/dist/scripts/3427-c1019a852e.chunk.js +1 -0
- package/dist/scripts/3639-0889b8796c.chunk.js +1 -0
- package/dist/scripts/3763-66fb4f7ab9.chunk.js +1 -0
- package/dist/scripts/3803-ecb9aa097f.chunk.js +1 -0
- package/dist/scripts/400-1e23b44b3d.chunk.js +1 -0
- package/dist/scripts/409-7b2d72c33c.chunk.js +1 -0
- package/dist/scripts/4198-f2de3da811.chunk.js +1 -0
- package/dist/scripts/4201-a43528d101.chunk.js +1 -0
- package/dist/scripts/4245-85613e8ec8.chunk.js +1 -0
- package/dist/scripts/4269-6f9e82e570.chunk.js +1 -0
- package/dist/scripts/435-aacf684517.chunk.js +1 -0
- package/dist/scripts/4353-ef2f79f90d.chunk.js +1 -0
- package/dist/scripts/4463-71fd94bfb3.chunk.js +1 -0
- package/dist/scripts/4591-a6e8818803.chunk.js +1 -0
- package/dist/scripts/469-a5b931f910.chunk.js +2 -0
- package/dist/scripts/469-a5b931f910.chunk.js.LICENSE.txt +1 -0
- package/dist/scripts/4810-2d812b1847.chunk.js +1 -0
- package/dist/scripts/4860-1db82c2cda.chunk.js +1 -0
- package/dist/scripts/4885-0de9aceda4.chunk.js +1 -0
- package/dist/scripts/5047-4ca0d480d2.chunk.js +1 -0
- package/dist/scripts/514-e2257e58bd.chunk.js +1 -0
- package/dist/scripts/5248-b1f7b8d9fd.chunk.js +1 -0
- package/dist/scripts/5356-7abbf73447.chunk.js +1 -0
- package/dist/scripts/5412-6a3117fa77.chunk.js +1 -0
- package/dist/scripts/5418-94a6b15be1.chunk.js +1 -0
- package/dist/scripts/546-9f0093aa66.chunk.js +1 -0
- package/dist/scripts/5624-8aa90b5f57.chunk.js +1 -0
- package/dist/scripts/5747-9a64e93671.chunk.js +1 -0
- package/dist/scripts/6093-c2088a505f.chunk.js +1 -0
- package/dist/scripts/6420-218dd42b2a.chunk.js +1 -0
- package/dist/scripts/6774-de07d107a4.chunk.js +1 -0
- package/dist/scripts/6788-f6b0a8cc33.chunk.js +1 -0
- package/dist/scripts/693-26dce53392.chunk.js +1 -0
- package/dist/scripts/7053-4c386601c3.chunk.js +1 -0
- package/dist/scripts/7190-6574587b99.chunk.js +1 -0
- package/dist/scripts/7251-a247842ccb.chunk.js +2 -0
- package/dist/scripts/7251-a247842ccb.chunk.js.LICENSE.txt +13 -0
- package/dist/scripts/733-3dc29f5775.chunk.js +1 -0
- package/dist/scripts/8074-2f29dcbf11.chunk.js +1 -0
- package/dist/scripts/8080-34a458a81c.chunk.js +1 -0
- package/dist/scripts/8343-5ea346ff5b.chunk.js +1 -0
- package/dist/scripts/8362-a0a23ba68a.chunk.js +1 -0
- package/dist/scripts/8420-1a5b232743.chunk.js +1 -0
- package/dist/scripts/8726-7e3e7b6535.chunk.js +1 -0
- package/dist/scripts/8727-64c035a56f.chunk.js +1 -0
- package/dist/scripts/8762-02bdc15632.chunk.js +1 -0
- package/dist/scripts/8906-9920a2a83d.chunk.js +1 -0
- package/dist/scripts/9167-a9d920d75e.chunk.js +1 -0
- package/dist/scripts/9231-5de6f18fae.chunk.js +2 -0
- package/dist/scripts/9231-5de6f18fae.chunk.js.LICENSE.txt +17 -0
- package/dist/scripts/9298-8438cbb300.chunk.js +1 -0
- package/dist/scripts/9355-3a23e503c3.chunk.js +1 -0
- package/dist/scripts/9357-f0b8bc48ad.chunk.js +1 -0
- package/dist/scripts/9383-69a59536d6.chunk.js +1 -0
- package/dist/scripts/9592-de190aca67.chunk.js +1 -0
- package/dist/scripts/9695-dd63b52766.chunk.js +1 -0
- package/dist/scripts/bundle-60541f84c7.min.js +2 -0
- package/dist/scripts/bundle-60541f84c7.min.js.LICENSE.txt +1 -0
- package/dist/scripts/polyfills-c62d0e7aec.min.js +1 -0
- package/package.json +3 -25
- package/typings/libs/google-api.d.ts +5 -0
- package/typings/libs/microsoft-teams.d.ts +3 -0
- package/typings/libs/videojs-contrib-quality-levels.d.ts +31 -0
- package/dist/css/0-library-editor-c3083c7c46.chunk.css +0 -6
- package/dist/css/1-library-editor-9a899a1d1d.chunk.css +0 -2
- package/dist/css/10-library-editor-53c28be130.chunk.css +0 -2
- package/dist/css/12-library-editor-7f17ad1c90.chunk.css +0 -24
- package/dist/css/13-library-editor-911b8069ae.chunk.css +0 -14
- package/dist/css/14-library-editor-f507c0ef52.chunk.css +0 -14
- package/dist/css/15-library-editor-6fd06eea2a.chunk.css +0 -4
- package/dist/css/16-library-editor-6b9ba08288.chunk.css +0 -4
- package/dist/css/17-library-editor-b08725a10e.chunk.css +0 -2
- package/dist/css/18-library-editor-89ad109c63.chunk.css +0 -2
- package/dist/css/22-library-editor-2bd52b5a32.chunk.css +0 -34
- package/dist/css/23-library-editor-a7633bece5.chunk.css +0 -26
- package/dist/css/24-library-editor-459b106aec.chunk.css +0 -24
- package/dist/css/25-library-editor-33acb75c24.chunk.css +0 -18
- package/dist/css/26-library-editor-b180014922.chunk.css +0 -18
- package/dist/css/27-library-editor-4c64aed388.chunk.css +0 -16
- package/dist/css/28-library-editor-b72d0e2d36.chunk.css +0 -10
- package/dist/css/29-library-editor-de55d150ef.chunk.css +0 -10
- package/dist/css/3-library-editor-904319558a.chunk.css +0 -4
- package/dist/css/30-library-editor-b0e16f882d.chunk.css +0 -8
- package/dist/css/31-library-editor-10f54d8a75.chunk.css +0 -8
- package/dist/css/32-library-editor-9dfe56513f.chunk.css +0 -10
- package/dist/css/36-library-editor-d18b8a3619.chunk.css +0 -4
- package/dist/css/37-library-editor-8b225d15f4.chunk.css +0 -4
- package/dist/css/38-library-editor-b08725a10e.chunk.css +0 -2
- package/dist/css/39-library-editor-b08725a10e.chunk.css +0 -2
- package/dist/css/40-library-editor-9a2d011500.chunk.css +0 -4
- package/dist/css/41-library-editor-234f39ca94.chunk.css +0 -4
- package/dist/css/42-library-editor-593c0084b4.chunk.css +0 -4
- package/dist/css/43-library-editor-ca20e9d127.chunk.css +0 -2
- package/dist/css/44-library-editor-aa3e9bea9a.chunk.css +0 -2
- package/dist/css/45-library-editor-7b1cd4a5cc.chunk.css +0 -2
- package/dist/css/46-library-editor-f1820aeeff.chunk.css +0 -2
- package/dist/css/47-library-editor-547abc7492.chunk.css +0 -2
- package/dist/css/48-library-editor-3f6fb7f3ab.chunk.css +0 -2
- package/dist/css/49-library-editor-467e156ba3.chunk.css +0 -2
- package/dist/css/5-library-editor-24603066ed.chunk.css +0 -6
- package/dist/css/51-library-editor-7aca18778d.chunk.css +0 -2
- package/dist/css/52-library-editor-81c5aced1f.chunk.css +0 -2
- package/dist/css/56-library-editor-d3b8bb68f9.chunk.css +0 -2
- package/dist/css/57-library-editor-94a8c4e7fa.chunk.css +0 -2
- package/dist/css/58-library-editor-61808b02a0.chunk.css +0 -2
- package/dist/css/59-library-editor-c49b3847df.chunk.css +0 -2
- package/dist/css/6-library-editor-d96af27be1.chunk.css +0 -14
- package/dist/css/60-library-editor-8f5e04b64a.chunk.css +0 -2
- package/dist/css/61-library-editor-b64f6f3e74.chunk.css +0 -2
- package/dist/css/63-library-editor-7f123672b2.chunk.css +0 -2
- package/dist/css/64-library-editor-61e4c24a7b.chunk.css +0 -2
- package/dist/css/7-library-editor-b08725a10e.chunk.css +0 -2
- package/dist/css/8-library-editor-eb68c1df75.chunk.css +0 -2
- package/dist/css/9-library-editor-fec6984a64.chunk.css +0 -4
- package/dist/css/library-editor-app-bc12f8ea16.css +0 -135
- package/dist/scripts/0-01f04d6d56.chunk.js +0 -1
- package/dist/scripts/1-55d605c2c4.chunk.js +0 -1
- package/dist/scripts/10-3f2a274869.chunk.js +0 -1
- package/dist/scripts/11-f164d2f418.chunk.js +0 -11
- package/dist/scripts/12-c1693e5672.chunk.js +0 -1
- package/dist/scripts/13-c2b9880d80.chunk.js +0 -1
- package/dist/scripts/14-a8bbfcc005.chunk.js +0 -1
- package/dist/scripts/15-46f82eb565.chunk.js +0 -1
- package/dist/scripts/16-b2e034d835.chunk.js +0 -1
- package/dist/scripts/17-cf12ff6692.chunk.js +0 -1
- package/dist/scripts/18-3d7b2bb66b.chunk.js +0 -1
- package/dist/scripts/19-4050e84d9e.chunk.js +0 -1
- package/dist/scripts/2-cd7f1d10b5.chunk.js +0 -1
- package/dist/scripts/22-10eeb6ed95.chunk.js +0 -1
- package/dist/scripts/23-3176524b2e.chunk.js +0 -1
- package/dist/scripts/24-2620726cc2.chunk.js +0 -1
- package/dist/scripts/25-4277b864b4.chunk.js +0 -1
- package/dist/scripts/26-29a13a6b02.chunk.js +0 -1
- package/dist/scripts/27-66f129aade.chunk.js +0 -1
- package/dist/scripts/28-2cb1321628.chunk.js +0 -1
- package/dist/scripts/29-7d3e020b57.chunk.js +0 -1
- package/dist/scripts/3-408b6c2e20.chunk.js +0 -1
- package/dist/scripts/30-59dc5e292e.chunk.js +0 -1
- package/dist/scripts/31-e5be7f6d55.chunk.js +0 -1
- package/dist/scripts/32-9d14a73828.chunk.js +0 -1
- package/dist/scripts/33-2b7afd675e.chunk.js +0 -1
- package/dist/scripts/34-3449671540.chunk.js +0 -1
- package/dist/scripts/35-a553d5a148.chunk.js +0 -1
- package/dist/scripts/36-e494df0f54.chunk.js +0 -1
- package/dist/scripts/37-4f2ae73dc5.chunk.js +0 -1
- package/dist/scripts/38-a569e85303.chunk.js +0 -1
- package/dist/scripts/39-04168942c9.chunk.js +0 -1
- package/dist/scripts/4-512c8f05c3.chunk.js +0 -1
- package/dist/scripts/40-203241bd8d.chunk.js +0 -1
- package/dist/scripts/41-5d00db5a16.chunk.js +0 -1
- package/dist/scripts/42-493f93fd61.chunk.js +0 -1
- package/dist/scripts/43-f03b40f6bc.chunk.js +0 -1
- package/dist/scripts/44-cdca04fbae.chunk.js +0 -1
- package/dist/scripts/45-2f3e679889.chunk.js +0 -1
- package/dist/scripts/46-af1a164c00.chunk.js +0 -1
- package/dist/scripts/47-bd07b4acee.chunk.js +0 -1
- package/dist/scripts/48-f709ce0290.chunk.js +0 -1
- package/dist/scripts/49-dafac4cd90.chunk.js +0 -1
- package/dist/scripts/5-706a90d50a.chunk.js +0 -1
- package/dist/scripts/50-9d66026f2b.chunk.js +0 -1
- package/dist/scripts/51-f37ca8fa1b.chunk.js +0 -1
- package/dist/scripts/52-d1d8bedaad.chunk.js +0 -1
- package/dist/scripts/53-a42f975523.chunk.js +0 -1
- package/dist/scripts/54-d02dcc88dd.chunk.js +0 -1
- package/dist/scripts/55-37223f5e6c.chunk.js +0 -1
- package/dist/scripts/56-a90ebf7e95.chunk.js +0 -1
- package/dist/scripts/57-952cbdd523.chunk.js +0 -1
- package/dist/scripts/58-4d4d2ab11c.chunk.js +0 -1
- package/dist/scripts/59-6ce8d22854.chunk.js +0 -1
- package/dist/scripts/6-90ce8bfc8e.chunk.js +0 -1
- package/dist/scripts/60-18494da9d7.chunk.js +0 -1
- package/dist/scripts/61-86685720a1.chunk.js +0 -1
- package/dist/scripts/62-96300609c4.chunk.js +0 -1
- package/dist/scripts/63-5cf8bf730e.chunk.js +0 -1
- package/dist/scripts/64-a9e7449778.chunk.js +0 -1
- package/dist/scripts/65-55bda72c96.chunk.js +0 -1
- package/dist/scripts/66-55a1693f05.chunk.js +0 -1
- package/dist/scripts/67-86aac165f9.chunk.js +0 -1
- package/dist/scripts/68-fed6d09e61.chunk.js +0 -1
- package/dist/scripts/69-3ae70614ff.chunk.js +0 -1
- package/dist/scripts/7-1dc25bf167.chunk.js +0 -1
- package/dist/scripts/70-a06f10c030.chunk.js +0 -1
- package/dist/scripts/71-879b44e721.chunk.js +0 -1
- package/dist/scripts/72-68e8c56940.chunk.js +0 -1
- package/dist/scripts/73-2e1903d7ed.chunk.js +0 -1
- package/dist/scripts/74-8e2e1cb7a9.chunk.js +0 -1
- package/dist/scripts/8-02b96935fe.chunk.js +0 -1
- package/dist/scripts/9-ae30afaedb.chunk.js +0 -1
- package/dist/scripts/bundle-dec56a0065.min.js +0 -10
- package/dist/scripts/polyfills-0fbc27cd8a.min.js +0 -1
|
@@ -0,0 +1 @@
|
|
|
1
|
+
(self.webpackChunk_clickview_library_editor=self.webpackChunk_clickview_library_editor||[]).push([[4245],{34245:function(t,n,e){"use strict";e.r(n),e.d(n,{NotificationsView:function(){return P}});var o=e(31647),i=e(57857),r=e(21679),a=e(70125),s=e(33955),c=e(11543),l=e(23859),u=e(33303),p=e(47022),f=e(43129),y=e(38900),h=e.n(y),b=e(24355),d=e.n(b),v=e(58081),g=e(4039);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 k(t,n){for(var e=0;e<n.length;e++){var o=n[e];o.enumerable=o.enumerable||!1,o.configurable=!0,"value"in o&&(o.writable=!0),Object.defineProperty(t,o.key,o)}}function w(t,n){return w=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(t,n){return t.__proto__=n,t},w(t,n)}function O(t,n){if(n&&("object"===m(n)||"function"==typeof n))return n;if(void 0!==n)throw new TypeError("Derived constructors may only return object or undefined");return function(t){if(void 0===t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return t}(t)}function C(t){return C=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(t){return t.__proto__||Object.getPrototypeOf(t)},C(t)}var P=function(t){!function(t,n){if("function"!=typeof n&&null!==n)throw new TypeError("Super expression must either be null or a function");t.prototype=Object.create(n&&n.prototype,{constructor:{value:t,writable:!0,configurable:!0}}),Object.defineProperty(t,"prototype",{writable:!1}),n&&w(t,n)}(P,t);var n,e,y,b,m=(y=P,b=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(t){return!1}}(),function(){var t,n=C(y);if(b){var e=C(this).constructor;t=Reflect.construct(n,arguments,e)}else t=n.apply(this,arguments);return O(this,t)});function P(t){return function(t,n){if(!(t instanceof n))throw new TypeError("Cannot call a class as a function")}(this,P),m.call(this,t)}return n=P,(e=[{key:"name",get:function(){return"NotificationsView"}},{key:"title",get:function(){return i.T.getPhrase(this.lang,"title")}},{key:"lang",get:function(){return"notifications.notifications"}},{key:"template",get:function(){return h()}},{key:"regions",value:function(){return{notifications:{replaceElement:!0,el:".list-region",partialLoading:{component:a.k.ComponentCollection,options:{collectionLength:5,childOptions:{template:d(),className:"px-1 py-2",viewOptions:{styles:v.Z}}}}},pagination:{replaceElement:!0,el:".pagination-region"}}}},{key:"initialize",value:function(){this.notificationService=r.u.getInstance(c.D.Notification,this),this.appVariables=r.u.getInstance(l.C.NOTIFICATIONS,this)}},{key:"onData",value:function(t){this.collection=t,this.render()}},{key:"getCollectionIdentifier",value:function(){return this.collectionIdentifier?this.collectionIdentifier:this.collectionIdentifier=new u.J(Object.assign({collectionPrefix:s.j.NOTIFICATIONS},this.options.params))}},{key:"renderNotificationList",value:function(){var t=new f.Z({collection:this.collection,childType:f.z.Default,liteUrl:this.config instanceof o.Q.Model?this.config.get("liteUrl"):this.config.liteUrl,hasLite:this.options.hasLite});this.showChildView("notifications",t)}},{key:"renderPagination",value:function(){if(this.collection.length){var t=this.notificationService.getNotificationsCursors(this.getCollectionIdentifier()),n=new p.Q({cursors:t,appLink:Object.assign(Object.assign({},this.appVariables.appLinks.notifications),{args:[],params:this.getCollectionIdentifier().toParams()})});this.showChildView("pagination",n)}}},{key:"requiredResources",get:function(){return{config:g.p.config}}},{key:"viewOptions",value:function(){var t,n;return{containerClass:null!==(n=null===(t=this.appVariables)||void 0===t?void 0:t.notificationsViewClassNames)&&void 0!==n?n:""}}},{key:"onBeforeRender",value:function(){var t=this;return this.collection||this.notificationService.getNotifications(this.options.params,this.getCollectionIdentifier(),(function(n){return t.onData(n)})),!!this.collection}},{key:"onRender",value:function(){this.renderNotificationList(),this.renderPagination()}}])&&k(n.prototype,e),Object.defineProperty(n,"prototype",{writable:!1}),P}(o.Q.View)},47022:function(t,n,e){"use strict";e.d(n,{Q:function(){return h}});var o=e(39479),i=e(31647),r=e(70065),a=e(52076),s=e(99186),c=e.n(s);function l(t){return l="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},l(t)}function u(t,n){for(var e=0;e<n.length;e++){var o=n[e];o.enumerable=o.enumerable||!1,o.configurable=!0,"value"in o&&(o.writable=!0),Object.defineProperty(t,o.key,o)}}function p(t,n){return p=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(t,n){return t.__proto__=n,t},p(t,n)}function f(t,n){if(n&&("object"===l(n)||"function"==typeof n))return n;if(void 0!==n)throw new TypeError("Derived constructors may only return object or undefined");return function(t){if(void 0===t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return t}(t)}function y(t){return y=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(t){return t.__proto__||Object.getPrototypeOf(t)},y(t)}var h=function(t){!function(t,n){if("function"!=typeof n&&null!==n)throw new TypeError("Super expression must either be null or a function");t.prototype=Object.create(n&&n.prototype,{constructor:{value:t,writable:!0,configurable:!0}}),Object.defineProperty(t,"prototype",{writable:!1}),n&&p(t,n)}(h,t);var n,e,i,s,l=(i=h,s=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(t){return!1}}(),function(){var t,n=y(i);if(s){var e=y(this).constructor;t=Reflect.construct(n,arguments,e)}else t=n.apply(this,arguments);return f(this,t)});function h(t){return function(t,n){if(!(t instanceof n))throw new TypeError("Cannot call a class as a function")}(this,h),l.call(this,t)}return n=h,(e=[{key:"defaults",get:function(){return{cursors:{},cursorParamName:"cursor"}}},{key:"name",get:function(){return"PaginationComponent"}},{key:"template",get:function(){return c()}},{key:"lang",get:function(){return"shared._pagination"}},{key:"appLinks",get:function(){var t={};if(!this.options.cursors)return{};if(this.options.cursors.previous){var n=this.options.cursors.previous,e=this.buildCursor(this.options.cursors.previous);+n<=1&&!0!==this.options.allowFirstPageCursor&&delete e.params.cursor,t[".previous-applink"]=e}return this.options.cursors.next&&(t[".next-applink"]=this.buildCursor(this.options.cursors.next)),t}},{key:"events",value:function(){return{"click .previous-applink":"onClickPrevious","click .next-applink":"onClickNext"}}},{key:"buildCursor",value:function(t){return{application:this.options.appLink.application,action:this.options.appLink.action,args:this.options.appLink.args,params:o.extend({},this.options.appLink.params,(n={},e=this.options.cursorParamName,i=t,e in n?Object.defineProperty(n,e,{value:i,enumerable:!0,configurable:!0,writable:!0}):n[e]=i,n))};var n,e,i}},{key:"onClickPrevious",value:function(){this.logAction("previous")}},{key:"onClickNext",value:function(){this.logAction("next")}},{key:"logAction",value:function(t){var n=a.k.mergeOptions(this.options.analyticsOptions,{location:r.LocationContext.Pagination,entity:r.EntityType.Pagination,actionType:r.UserAction.Navigate}),e={id:this.options.collectionId,page:t};a.k.logUserAction(e,n)}},{key:"viewOptions",value:function(){return{cursors:this.options.cursors}}},{key:"onBeforeRender",value:function(){return!!this.options.cursors}}])&&u(n.prototype,e),Object.defineProperty(n,"prototype",{writable:!1}),h}(i.Q.Component)},38900:function(t,n,e){var o=e(32227);t.exports=(o.default||o).template({compiler:[8,">= 4.3.0"],main:function(t,n,e,o,i){t.propertyIsEnumerable;var r,a=t.escapeExpression;return'<div class="'+a(t.lambda(null!=(r=null!=n?n.options:n)?r.containerClass:r,n))+'">\r\n <h1 class="header border-bottom pb-2 m-0">'+a((e.lang||n&&n.lang||t.hooks.helperMissing).call(null!=n?n:t.nullContext||{},"notifications",{name:"lang",hash:{},data:i}))+'</h1>\r\n <div class="list-region"></div>\r\n <div class="pagination-region"></div>\r\n</div>'},useData:!0})},99186:function(t,n,e){var o=e(32227);t.exports=(o.default||o).template({1:function(t,n,e,o,i){return"disabled"},compiler:[8,">= 4.3.0"],main:function(t,n,e,o,i){t.propertyIsEnumerable;var r,a=null!=n?n:t.nullContext||{},s=t.hooks.helperMissing,c=t.escapeExpression;return'<div class="p-3">\r\n <a class="btn previous-applink btn-secondary '+(null!=(r=e.unless.call(a,null!=(r=null!=(r=null!=n?n.options:n)?r.cursors:r)?r.previous:r,{name:"unless",hash:{},fn:t.program(1,i,0),inverse:t.noop,data:i}))?r:"")+'">'+c((e.lang||n&&n.lang||s).call(a,"previous",{name:"lang",hash:{},data:i}))+'</a>\r\n <a class="btn next-applink btn-secondary '+(null!=(r=e.unless.call(a,null!=(r=null!=(r=null!=n?n.options:n)?r.cursors:r)?r.next:r,{name:"unless",hash:{},fn:t.program(1,i,0),inverse:t.noop,data:i}))?r:"")+'">'+c((e.lang||n&&n.lang||s).call(a,"next",{name:"lang",hash:{},data:i}))+"</a>\r\n</div>"},useData:!0})}}]);
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
"use strict";(self.webpackChunk_clickview_library_editor=self.webpackChunk_clickview_library_editor||[]).push([[4269],{80325:function(e,t,n){n.d(t,{G:function(){return g}});var a=n(1024),r=n(99910),i=n(53808),o=n(52076),l=n(31647),c=n(39396),s=n(51092);function u(e){var t=e.appLink,n=e.appLinkOptions,r=e.className,i=e.style,c=e.children,u=e.disabled,p=e.tag,d=void 0===p?"a":p;if(!t)return a.createElement("span",{className:r||""},c);var m=l.Q.AppLinkHelper.getHref(t),f={onClick:function(a){var r;a.preventDefault(),u||(null===(r=e.onClick)||void 0===r||r.call(e,a),e.analyticsData&&e.analyticsOptions&&o.k.logUserAction(Object.assign({href:m},e.analyticsData),e.analyticsOptions),e.openInNewTab?s.LocationUtils.PageLoad(m,!0):l.Q.AppLinkHelper.trigger(t,n))},href:m,className:r,style:i,disabled:u};return e.title&&(f.title=e.title),a.createElement(d,Object.assign({},f),c)}u.defaultProps={appLinkOptions:{}};function p(e){var t="".concat(e.className," ").concat("aGxoe");e.children?t+=" ".concat("_cjiV"):t+=" ".concat("T1CzO");var n=a.createElement(c.x,{svgName:e.svgName,className:"svg-container ".concat("q6vwS"),size:e.svgSize});return e.appLink||e.href?e.href?a.createElement("a",{className:t,href:e.href,onClick:function(t){t.preventDefault(),e.analyticsData&&e.analyticsOptions&&o.k.logUserAction(e.analyticsData,e.analyticsOptions),i.q.isFunction(e.onClick)&&e.onClick(t),l.Q.LocationUtils.PageLoad(e.href,e.openInNewTab)}},n,e.children):a.createElement(u,{appLink:e.appLink,className:t,onClick:e.onClick,analyticsData:e.analyticsData,analyticsOptions:e.analyticsOptions,openInNewTab:e.openInNewTab,disabled:e.disabled},n,e.children):a.createElement("button",{className:t,onClick:function(t){e.analyticsData&&e.analyticsOptions&&o.k.logUserAction(e.analyticsData,e.analyticsOptions),i.q.isFunction(e.onClick)&&e.onClick(t)},disabled:e.disabled},n,e.children)}var d=n(69620);function m(e){var t,n,l=e.showSpinner?a.createElement(r.Spinner,{as:"span",animation:"border",role:"status",size:"sm"}):e.children;if(e.tooltip&&e.svgName){var c=null!==(t=e.className)&&void 0!==t?t:"";return e.disabled&&!e.appLink&&(c+=" pointer-events-none"),a.createElement(d.u,{title:e.tooltip,spanHack:!0},a.createElement(p,{appLink:e.appLink,href:e.href,svgName:e.svgName,svgSize:e.svgSize,onClick:e.onClick,className:c,analyticsData:e.analyticsData,analyticsOptions:e.analyticsOptions,openInNewTab:e.openInNewTab,disabled:e.disabled},l))}if(e.svgName)return a.createElement(p,{onClick:e.onClick,appLink:e.appLink,href:e.href,svgName:e.svgName,svgSize:e.svgSize,className:e.className,analyticsData:e.analyticsData,analyticsOptions:e.analyticsOptions,openInNewTab:e.openInNewTab,disabled:e.disabled},l);if(e.tooltip&&e.appLink)return a.createElement(d.u,{title:e.tooltip,spanHack:!0},a.createElement(u,{onClick:e.onClick,appLink:e.appLink,className:e.className,analyticsData:e.analyticsData,analyticsOptions:e.analyticsOptions,openInNewTab:e.openInNewTab,disabled:e.disabled},l));if(e.appLink)return a.createElement(u,{onClick:e.onClick,appLink:e.appLink,className:e.className,analyticsData:e.analyticsData,analyticsOptions:e.analyticsOptions,openInNewTab:e.openInNewTab,disabled:e.disabled},l);function s(t){e.analyticsData&&e.analyticsOptions&&o.k.logUserAction(e.analyticsData,e.analyticsOptions),i.q.isFunction(e.onClick)&&e.onClick(t)}return e.tooltip?a.createElement(d.u,{title:e.tooltip,spanHack:!0},a.createElement("button",{onClick:s,className:"".concat(null!==(n=e.className)&&void 0!==n?n:"").concat(e.disabled?" pointer-events-none":""),disabled:e.disabled},l)):a.createElement("button",{onClick:s,className:e.className,disabled:e.disabled},l)}function f(){return a.createElement("div",{className:"text-center p-5"},a.createElement(r.Spinner,{as:"div",animation:"border",role:"status"}))}function g(e){var t,n=(null===(t=e.headerButtons)||void 0===t?void 0:t.length)?e.headerButtons.map((function(e,t){return a.createElement(m,Object.assign({key:t},e))})):a.createElement(a.Fragment,null);return a.createElement(r.Modal,{show:!0,onHide:e.closePopup,onEntered:e.onEntered,size:"md"===e.size?null:e.size,dialogClassName:e.dialogClassName,centered:e.centered},!!e.title&&a.createElement(r.Modal.Header,{className:"d-flex align-items-center",closeButton:e.closeButton},a.createElement(r.Modal.Title,{className:"flex-grow-1 text-truncate"},e.title),n),e.showLoadingSpinner?a.createElement(f,null):a.createElement(r.Modal.Body,{className:e.bodyClassName},e.children))}g.defaultProps={closeButton:!0,bodyClassName:"",dialogClassName:"",size:"md"}},85074:function(e,t,n){n.d(t,{u:function(){return o}});var a=n(1024),r=n(99910),i=n(28294);function o(e){var t;return a.createElement("div",{className:"d-flex justify-content-end border-top pt-3 px-3 mx-n3 undo-changes-btn ".concat(null!==(t=e.className)&&void 0!==t?t:"")},e.buttons.map((function(e,t){return function(e,t){var n=e.buttonText,o=e.type,l=void 0===o?"button":o,c=e.isSpinnerButton,s=e.showSpinner,u=void 0!==s&&s,p=e.className,d=function(e,t){var n={};for(var a in e)Object.prototype.hasOwnProperty.call(e,a)&&t.indexOf(a)<0&&(n[a]=e[a]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols){var r=0;for(a=Object.getOwnPropertySymbols(e);r<a.length;r++)t.indexOf(a[r])<0&&Object.prototype.propertyIsEnumerable.call(e,a[r])&&(n[a[r]]=e[a[r]])}return n}(e,["buttonText","type","isSpinnerButton","showSpinner","className"]),m=Object.assign({key:t,type:l,className:"ml-2".concat(p?" ".concat(p):"")},d);return c?a.createElement(i.m,Object.assign({showSpinner:u},m),n):a.createElement(r.Button,Object.assign({},m),n)}(e,t)})))}},28294:function(e,t,n){n.d(t,{m:function(){return l}});var a=n(1024),r=n(99910);function i(e,t){return function(e){if(Array.isArray(e))return e}(e)||function(e,t){var n=null==e?null:"undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null!=n){var a,r,i=[],o=!0,l=!1;try{for(n=n.call(e);!(o=(a=n.next()).done)&&(i.push(a.value),!t||i.length!==t);o=!0);}catch(e){l=!0,r=e}finally{try{o||null==n.return||n.return()}finally{if(l)throw r}}return i}}(e,t)||function(e,t){if(e){if("string"==typeof e)return o(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);return"Object"===n&&e.constructor&&(n=e.constructor.name),"Map"===n||"Set"===n?Array.from(e):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?o(e,t):void 0}}(e,t)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function o(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,a=new Array(t);n<t;n++)a[n]=e[n];return a}function l(e){var t=e.showSpinner,n=e.children,o=e.style,l=function(e,t){var n={};for(var a in e)Object.prototype.hasOwnProperty.call(e,a)&&t.indexOf(a)<0&&(n[a]=e[a]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols){var r=0;for(a=Object.getOwnPropertySymbols(e);r<a.length;r++)t.indexOf(a[r])<0&&Object.prototype.propertyIsEnumerable.call(e,a[r])&&(n[a[r]]=e[a[r]])}return n}(e,["showSpinner","children","style"]),c=a.useRef(),s=i(a.useState({}),2),u=s[0],p=u.width,d=u.height,m=s[1],f=i(a.useState(t),2),g=f[0],h=f[1];a.useEffect((function(){if(t){var e=c.current,n=e.offsetHeight,a=e.offsetWidth;n&&a&&m({width:a,height:n})}else m({})}),[t]),a.useLayoutEffect((function(){h(t)}),[t]);var v=Object.assign({},o);return p&&(v.width="".concat(p+1,"px")),d&&(v.height="".concat(d+1,"px")),a.createElement(r.Button,Object.assign({ref:c,disabled:t,style:v},l),g?a.createElement(r.Spinner,{as:"span",animation:"border",role:"status",size:"sm"}):n)}},39396:function(e,t,n){n.d(t,{S:function(){return a},x:function(){return c}});var a,r=n(1024),i=n(53808),o=n(6681),l=n(69620);function c(e){var t=e.svgName,n=e.className,c=void 0===n?"d-inline-block svg-container":n,s=e.tagName,u=void 0===s?"span":s,p=e.size,d=void 0===p?a.Standard:p,m=e.onClick,f=e.title,g=e.tooltipSpanHackClassName,h=e.tooltipPlacement,v=void 0===h?"right":h,y=e.tooltipSpanHack,b=void 0!==y&&y,N=u,k={dangerouslySetInnerHTML:{__html:o.Nj.getSvg(t)},className:"".concat(c," ").concat(d),onClick:i.q.isFunction(m)?m:null};return f?r.createElement(l.u,{title:f,placement:v,spanHack:b,spanHackClassName:g},r.createElement(N,Object.assign({},k))):r.createElement(N,Object.assign({},k))}!function(e){e.Standard="std",e.Small="sm",e.Medium="md",e.Large="lg",e.ExtraLarge="xlg",e.XXL="xxlg"}(a||(a={}))},69620:function(e,t,n){n.d(t,{u:function(){return o}});var a=n(1024),r=n(99910),i=function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:1e4;return Math.floor(Math.random()*Math.floor(e))};function o(e){var t,n=e.title,o=e.placement,l=e.trigger,c=e.spanHack,s=e.children,u=e.disable;return n?c?a.createElement(r.OverlayTrigger,{placement:o,overlay:a.createElement(r.Tooltip,{id:"".concat(n,"-").concat(i())},n),trigger:l,delay:u?Number.POSITIVE_INFINITY:void 0},a.createElement("span",{className:"".concat(null!==(t=e.spanHackClassName)&&void 0!==t?t:"d-flex justify-content-center align-items-center")},s)):a.createElement(r.OverlayTrigger,{placement:o,overlay:a.createElement(r.Tooltip,{id:"".concat(n,"-").concat(i())},n),trigger:l,delay:u?Number.POSITIVE_INFINITY:void 0},a.createElement(a.Fragment,null,s)):a.createElement(a.Fragment,null,s)}o.defaultProps={trigger:["hover","click","focus"],placement:"top"}},74269:function(e,t,n){n.r(t),n.d(t,{DialogHelper:function(){return O}});var a,r=n(1024),i=n.n(r),o=n(30314),l=n(53808),c=n(57857),s=n(85074),u=n(80325),p=n(51934),d=n.n(p),m=n(88483);function f(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}var g=(f(a={},m.__.Thumbnails,{width:1280,height:720}),f(a,m.__.Banners,{width:1200,height:222}),f(a,m.__.Covers,{width:512,height:512}),f(a,m.__.Posters,{width:1e3,height:1500}),f(a,m.__.TallPosters,{width:1080,height:1920}),f(a,m.__.HeroBanners,{width:1920,height:640}),f(a,m.__.None,{width:1,height:1}),f(a,m.__.Avatars,{width:256,height:256}),f(a,m.__.Logos,{width:128,height:128}),a);function h(e,t){return function(e){if(Array.isArray(e))return e}(e)||function(e,t){var n=null==e?null:"undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null!=n){var a,r,i=[],o=!0,l=!1;try{for(n=n.call(e);!(o=(a=n.next()).done)&&(i.push(a.value),!t||i.length!==t);o=!0);}catch(e){l=!0,r=e}finally{try{o||null==n.return||n.return()}finally{if(l)throw r}}return i}}(e,t)||function(e,t){if(e){if("string"==typeof e)return v(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);return"Object"===n&&e.constructor&&(n=e.constructor.name),"Map"===n||"Set"===n?Array.from(e):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?v(e,t):void 0}}(e,t)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function v(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,a=new Array(t);n<t;n++)a[n]=e[n];return a}var y=c.T.encloseNamespace("shared.imageCropper"),b=/data:([a-zA-Z0-9]+\/[a-zA-Z0-9-.+]+).*,.*/;function N(e){var t=h(i().useState(!1),2),n=t[0],a=t[1],r=h(i().useState(!1),2),o=r[0],l=r[1],c=i().useRef(),p=i().useRef();return i().useEffect((function(){var t=new Image;t.src=e.src;var n=c.current.offsetWidth/t.width,r=g[e.imageType],i={viewMode:2,autoCropArea:1,ready:function(){return a(!0)}};return r&&(i.minCropBoxWidth=r.width*n,i.minCropBoxHeight=r.height*n,i.aspectRatio=r.width/r.height),p.current=new(d())(c.current,i),function(){p.current.destroy()}}),[]),i().createElement(u.G,{title:y("title"),closePopup:e.closePopup,size:e.popupSize},i().createElement("div",null,i().createElement("img",{src:e.src,alt:e.alt,ref:c,className:"img img-fluid"})),i().createElement(s.u,{buttons:[{onClick:e.closePopup,buttonText:y("cancel"),variant:"link"},{onClick:function(){if(n){var t=p.current.getCroppedCanvas().toDataURL(function(e){var t=e.match(b);if(t)return t[1]}(e.src));l(!0),e.onClickCrop(t,e.closePopup)}},buttonText:y("crop"),variant:"dark",isSpinnerButton:!0,showSpinner:o}]}))}N.defaultProps={popupSize:"lg"};var k="shared.shared-utils";function C(){return[O.getConfirmDefault(),O.getCancelDefault()]}var w=function(){return document.getElementById("dialog-region")},O={render:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},n=w();function a(){l.q.isFunction(t.success)&&t.success(),(0,o.unmountComponentAtNode)(n)}function r(){l.q.isFunction(t.cancel)&&t.cancel(),(0,o.unmountComponentAtNode)(n)}var c=t.buttons||C(),p=c.map((function(e){var t=e.success;return delete e.success,Object.assign(Object.assign({},e),{onClick:function(){t&&a(),r(),l.q.isFunction(e.onClick)&&e.onClick()}})}));(0,o.render)(i().createElement(u.G,{title:t.title,closePopup:r,size:t.size,centered:t.centered,bodyClassName:"overflow-hidden",dialogClassName:t.dialogClassName},e,!t.hideButtons&&i().createElement(s.u,{buttons:p,className:t.buttonContainerClassName})),n)},getCancelDefault:function(){return{variant:"light",buttonText:c.T.getPhrase(k,"cancel")}},getConfirmDefault:function(){return{variant:"dark",success:!0,buttonText:c.T.getPhrase(k,"confirm")}},renderCropper:function(e){var t=w();(0,o.render)(i().createElement(N,Object.assign({},e,{closePopup:function(){return(0,o.unmountComponentAtNode)(t)}})),t)}}}}]);
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
(self.webpackChunk_clickview_library_editor=self.webpackChunk_clickview_library_editor||[]).push([[435],{21771:function(e,t,n){"use strict";n.r(t),n.d(t,{MoveVideoView:function(){return T}});var r=n(39479),i=n(57857),o=n(21679),l=n(31647),a=n(43875),s=n(52076),c=n(10101),u=n(23807),f=n(90680),h=n(67670),d=n(13156),p=n(61843),y=n(20072),b=n(88172),v=n(79665),g=n(97011),m=n.n(g);function w(e){return w="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},w(e)}function O(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}function S(e,t){return S=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(e,t){return e.__proto__=t,e},S(e,t)}function k(e,t){if(t&&("object"===w(t)||"function"==typeof t))return t;if(void 0!==t)throw new TypeError("Derived constructors may only return object or undefined");return function(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}(e)}function P(e){return P=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(e){return e.__proto__||Object.getPrototypeOf(e)},P(e)}var T=function(e){!function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),Object.defineProperty(e,"prototype",{writable:!1}),t&&S(e,t)}(T,e);var t,n,l,g,w=(l=T,g=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(e){return!1}}(),function(){var e,t=P(l);if(g){var n=P(this).constructor;e=Reflect.construct(t,arguments,n)}else e=t.apply(this,arguments);return k(this,e)});function T(e){return function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,T),w.call(this,e)}return t=T,(n=[{key:"initialize",value:function(){this.listenTo(u.Vk.LIBRARY,"libraries:sync",this.render),this.listenTo(u.Vk.VIDEO,"".concat(u.M_.VIDEOS_BY_ID,":").concat(this.options.videoIds.join(","),":sync"),this.render),this.listenTo(this.channelName,"library:selected",this.onLibrarySelected),this.listenTo(this.channelName,"folder:selected",this.onFolderSelected),this.libraryDataService=o.u.getInstance(u.Or.Library,this),this.videoDataService=o.u.getInstance(u.Or.Video,this)}},{key:"name",get:function(){return"MoveVideoView"}},{key:"title",get:function(){return this.options.videoIds&&i.T.getPhrase(this.lang,"title",{smartCount:this.options.videoIds.length})}},{key:"lang",get:function(){return"libraryEditor.moveVideo"}},{key:"channelName",get:function(){return p.N0.generateUniqueChannelName(this)}},{key:"libraryTreeKey",get:function(){return"libraryselect:".concat(this.cid)}},{key:"folderTreeKey",get:function(){return"folderselect:".concat(this.cid)}},{key:"template",get:function(){return m()}},{key:"regions",value:function(){return{folder:".folder-region",library:".library-region"}}},{key:"events",value:function(){return{submit:"onSubmit","click .submit":"onSubmit"}}},{key:"elements",get:function(){return{folderLabel:".folder-label"}}},{key:"behaviors",get:function(){var e=this;return[{title:i.T.getPhrase(this.lang,"heading"),behaviorClass:c.Yw,closeOnRoute:!1,spinnerButtonOptions:{channelName:this.channelName,model:this.spinnerModel=new h.v,buttonText:i.T.getPhrase(this.lang,"submit"),tooltip:function(){return e.getSubmitBtnTooltipOptions()},onClick:function(){return e.onSubmit()}}}]}},{key:"filterLibrariesWithVideo",value:function(){var e=this;if(this.libraries&&this.collection&&this.hasMultipleLibraries()){var t=this.collection.map((function(e){return e.get("libraries").map((function(e){return e.get("id")}))})),n=r.uniq(r.flatten(t)),i=[],o=[];this.libraries.forEach((function(t){var l=p.PU.getModelFromCollection(e.options.folderId,t.get("children"));!r.contains(n,+t.get("id"))||l?i.push(t):o.push(t)})),this.libraries=new f.q(i),this.hiddenLibraryNames=o.map((function(e){return e.get("name")})),1===this.libraries.length&&this.onLibrarySelected(this.libraries.first())}}},{key:"getSubmitBtnTooltipOptions",value:function(){if(this.spinnerModel.get(b.ZV.Disabled))return{title:i.T.getPhrase(this.lang,"btnTooltip")}}},{key:"onLibrarySelected",value:function(e){var t=p.PU.getSelected(this.libraryTreeKey,this.libraries);t&&p.PU.deselectAll(this.folderTreeKey,t.get("children")),p.PU.setSelected(this.libraryTreeKey,e,this.libraries),this.hasMultipleLibraries()&&this.getUI("folderLabel").show(),this.spinnerModel.set(b.ZV.Disabled,!0),this.render()}},{key:"onFolderSelected",value:function(e,t){var n=p.PU.getSelected(this.libraryTreeKey,this.libraries).get("children");p.PU.setSelected(this.folderTreeKey,e,n,t),t||this.spinnerModel.set(b.ZV.Disabled,!1)}},{key:"onSubmit",value:function(){var e=this;this.spinnerModel.set(b.ZV.ShowSpinner,!0);var t,n,r=p.PU.getSelected(this.folderTreeKey,this.libraries),i=r.get("id"),o=this.collection.map((function(e){return e.get("id")}));this.collection.each((function(r){t||(t=r.categories.find((function(t){return t.get("id")===+e.options.folderId})),n=r)}));var l=1===o.length?n.get("name"):"",a=d.J.moveVideoAlert(t.get("name"),r.get("name"),r.get("id"),o.length,l);this.videoDataService.moveVideos(o,i,this.options.folderId,(function(){e.triggerMethod("hide")}),a),this.logAction(o,i)}},{key:"hasMultipleLibraries",value:function(){return this.libraries&&this.libraries.length>1}},{key:"getFormattedHiddenLibraryNames",value:function(){var e=r.map(this.hiddenLibraryNames,(function(e){return"<strong>".concat(a.m.escapeExpression(e),"</strong>")}));if(1===e.length)return e[0];var t=i.T.getPhrase(this.lang,"and");return"".concat(e.slice(0,-1).join(", ")," ").concat(t," ").concat(e.slice(-1))}},{key:"logAction",value:function(e,t){var n={newParentId:t,oldParentId:this.options.folderId,count:e.length};1===e.length&&(n.id=r.first(e)),s.k.logUserAction(n,this.options.analyticsOptions)}},{key:"renderLibrarySelect",value:function(){if(this.libraries&&1!==this.libraries.length){var e=p.PU.getSelected(this.libraryTreeKey,this.libraries);this.showChildView("library",new v.A({collection:this.libraries,channelName:this.channelName,currentLibraryId:e?e.get("id"):null}))}}},{key:"renderFolderSelect",value:function(){var e=p.PU.getSelected(this.libraryTreeKey,this.libraries);this.showChildView("folder",new y.Y({collection:e.get("children"),channelName:this.channelName,folderTreeKey:this.folderTreeKey,disabledIds:[this.options.folderId]}))}},{key:"viewOptions",value:function(){var e,t;return{hasMultipleLibraries:this.hasMultipleLibraries(),hiddenLibraryNames:(null===(e=this.hiddenLibraryNames)||void 0===e?void 0:e.length)?this.getFormattedHiddenLibraryNames():"",hiddenLibraryNamesLength:null===(t=this.hiddenLibraryNames)||void 0===t?void 0:t.length}}},{key:"onBeforeRender",value:function(){var e=this;return this.libraries||this.libraryDataService.getLibraries((function(t){e.libraries=new f.q(t.filter((function(e){return!!e.get("children").length}))),e.hasMultipleLibraries()||e.onLibrarySelected(e.libraries.first()),e.filterLibrariesWithVideo(),e.render()})),this.collection||this.videoDataService.getVideos(this.options.videoIds,(function(t){e.collection=t,e.filterLibrariesWithVideo(),e.render()})),!!this.collection&&!!this.libraries}},{key:"onRender",value:function(){this.renderLibrarySelect(),p.PU.getSelected(this.libraryTreeKey,this.libraries)&&this.renderFolderSelect()}}])&&O(t.prototype,n),Object.defineProperty(t,"prototype",{writable:!1}),T}(l.Q.View)},71641:function(e,t,n){"use strict";n.d(t,{w:function(){return f}});var r=n(39479),i=n(31647),o=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 a(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}function s(e,t){return s=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(e,t){return e.__proto__=t,e},s(e,t)}function c(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)}function u(e){return u=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(e){return e.__proto__||Object.getPrototypeOf(e)},u(e)}var f=function(e){!function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),Object.defineProperty(e,"prototype",{writable:!1}),t&&s(e,t)}(h,e);var t,n,i,l,f=(i=h,l=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(e){return!1}}(),function(){var e,t=u(i);if(l){var n=u(this).constructor;e=Reflect.construct(t,arguments,n)}else e=t.apply(this,arguments);return c(this,e)});function h(e){return function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,h),f.call(this,e)}return t=h,n=[{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 o.N}},{key:"childViewOptions",get:function(){var e={channelName:this.options.channelName,analyticsHelper:this.options.analyticsHelper};return r.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,r=e.extraClasses,i="dropdown-menu-".concat(n);return r&&(i="".concat(i," ").concat(r)),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)}}}],n&&a(t.prototype,n),Object.defineProperty(t,"prototype",{writable:!1}),h}(i.Q.ComponentCollection)},67670:function(e,t,n){"use strict";n.d(t,{v:function(){return f}});var r=n(31647),i=n(88172);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 l(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function a(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}function s(e,t){return s=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(e,t){return e.__proto__=t,e},s(e,t)}function c(e,t){if(t&&("object"===o(t)||"function"==typeof t))return t;if(void 0!==t)throw new TypeError("Derived constructors may only return object or undefined");return function(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}(e)}function u(e){return u=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(e){return e.__proto__||Object.getPrototypeOf(e)},u(e)}var f=function(e){!function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),Object.defineProperty(e,"prototype",{writable:!1}),t&&s(e,t)}(h,e);var t,n,r,o,f=(r=h,o=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(e){return!1}}(),function(){var e,t=u(r);if(o){var n=u(this).constructor;e=Reflect.construct(t,arguments,n)}else e=t.apply(this,arguments);return c(this,e)});function h(){return l(this,h),f.apply(this,arguments)}return t=h,(n=[{key:"defaults",value:function(){return e={},!0,(t=i.ZV.Disabled)in e?Object.defineProperty(e,t,{value:true,enumerable:!0,configurable:!0,writable:!0}):e[t]=true,e;var e,t}}])&&a(t.prototype,n),Object.defineProperty(t,"prototype",{writable:!1}),h}(r.Q.Model)},97011:function(e,t,n){var r=n(32227);e.exports=(r.default||r).template({1:function(e,t,n,r,i){var o;return e.propertyIsEnumerable,' <div class="alert alert-info" role="alert">\r\n <p class="m-0">'+(null!=(o=(n.lang||t&&t.lang||e.hooks.helperMissing).call(null!=t?t:e.nullContext||{},"hiddenLibraryNames",{name:"lang",hash:{smartCount:null!=(o=null!=t?t.options:t)?o.hiddenLibraryNamesLength:o,libraries:null!=(o=null!=t?t.options:t)?o.hiddenLibraryNames:o},data:i}))?o:"")+"</p>\r\n </div>\r\n"},3:function(e,t,n,r,i){return e.propertyIsEnumerable,' <div class="form-group">\r\n <label class="control-label">'+e.escapeExpression((n.lang||t&&t.lang||e.hooks.helperMissing).call(null!=t?t:e.nullContext||{},"library",{name:"lang",hash:{},data:i}))+'</label>\r\n <div class="library-region"></div>\r\n </div>\r\n'},5:function(e,t,n,r,i){return'style="display: none;"'},compiler:[8,">= 4.3.0"],main:function(e,t,n,r,i){e.propertyIsEnumerable;var o,l=null!=t?t:e.nullContext||{};return"<form>\r\n"+(null!=(o=n.if.call(l,null!=(o=null!=t?t.options:t)?o.hiddenLibraryNames:o,{name:"if",hash:{},fn:e.program(1,i,0),inverse:e.noop,data:i}))?o:"")+"\r\n"+(null!=(o=n.if.call(l,null!=(o=null!=t?t.options:t)?o.hasMultipleLibraries:o,{name:"if",hash:{},fn:e.program(3,i,0),inverse:e.noop,data:i}))?o:"")+'\r\n <div class="form-group">\r\n <label class="control-label folder-label" '+(null!=(o=n.if.call(l,null!=(o=null!=t?t.options:t)?o.hasMultipleLibraries:o,{name:"if",hash:{},fn:e.program(5,i,0),inverse:e.noop,data:i}))?o:"")+">"+e.escapeExpression((n.lang||t&&t.lang||e.hooks.helperMissing).call(l,"folder",{name:"lang",hash:{},data:i}))+'</label>\r\n <div class="folder-region"></div>\r\n </div>\r\n</form>'},useData:!0})}}]);
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
(self.webpackChunk_clickview_library_editor=self.webpackChunk_clickview_library_editor||[]).push([[4353],{18068:function(e,t,n){"use strict";n.r(t),n.d(t,{SuggestAnEditView:function(){return X}});var o=n(39479),r=n(57857),i=n(31647),a=n(21679),s=n(99249),l=n(70065),c=n(52076),u=n(61843);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){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function f(e,t){return f=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(e,t){return e.__proto__=t,e},f(e,t)}function h(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)}function y(e){return y=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(e){return e.__proto__||Object.getPrototypeOf(e)},y(e)}var g=function(e){!function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),Object.defineProperty(e,"prototype",{writable:!1}),t&&f(e,t)}(i,e);var t,n,o,r=(n=i,o=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(e){return!1}}(),function(){var e,t=y(n);if(o){var r=y(this).constructor;e=Reflect.construct(t,arguments,r)}else e=t.apply(this,arguments);return h(this,e)});function i(){return p(this,i),r.apply(this,arguments)}return t=i,Object.defineProperty(t,"prototype",{writable:!1}),t}(i.Q.Model),m=n(13102),b=n(67670),v=n(9484),w=n(48404),S=n(23807),O=n(83665),k=n(26357),T=n(88172),M=n(10101),P=n(75459),E=n(48088),C=n(33192),j=n(17422),R=n(48726),V=n(40622),x=n(7190),_=n(19098),N=n.n(_),I={metadataValue:"mvVSS"};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 B(e,t){for(var n=0;n<t.length;n++){var o=t[n];o.enumerable=o.enumerable||!1,o.configurable=!0,"value"in o&&(o.writable=!0),Object.defineProperty(e,o.key,o)}}function L(e,t){return L=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(e,t){return e.__proto__=t,e},L(e,t)}function A(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)}function U(e){return U=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(e){return e.__proto__||Object.getPrototypeOf(e)},U(e)}var F,H=function(e){!function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),Object.defineProperty(e,"prototype",{writable:!1}),t&&L(e,t)}(l,e);var t,n,o,a,s=(o=l,a=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(e){return!1}}(),function(){var e,t=U(o);if(a){var n=U(this).constructor;e=Reflect.construct(t,arguments,n)}else e=t.apply(this,arguments);return A(this,e)});function l(e){return function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,l),s.call(this,e)}return t=l,(n=[{key:"name",get:function(){return"SuggestEditComponent"}},{key:"template",get:function(){return N()}},{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===V.MetadataType.BroadcastDate?this.options.metadataValue?C(this.options.metadataValue).format(j.K4.FULL_YEAR):r.T.getPhrase(this.lang,"noMetadataValue"):this.options.metadataValue instanceof i.Q.Collection?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===V.MetadataType.Other?r.T.getPhrase(this.lang,"otherSuggestionPlaceholder"):r.T.getPhrase(this.lang,"suggestionPlaceholder",{metadataType:x.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===V.MetadataType.Rating&&this.showChildView("ratingSelect",new R.R({model:this.options.currentRating,collection:this.options.ratings,parentChannelName:this.options.channelName,hideHeaderText:!0,hideRemove:!0}))}},{key:"viewOptions",value:function(){return{styles:I,metadataValue:this.getMetadataValue(),useRatingSelect:this.options.metadataType===V.MetadataType.Rating,isOtherType:this.options.metadataType===V.MetadataType.Other,metadataType:x.uB.translateMetadataName(this.options.metadataType).toLowerCase(),suggestionPlaceholder:this.getSuggestionPlaceholder()}}},{key:"onRender",value:function(){this.renderRatingSelect(),this.stickit(),E.Validation.bind(this)}},{key:"onDestroy",value:function(){this.unstickit(),E.Validation.unbind(this)}}])&&B(t.prototype,n),Object.defineProperty(t,"prototype",{writable:!1}),l}(i.Q.Component);!function(e){e[e.Email=0]="Email"}(F||(F={}));var K=n(60519),Q=n(68249),Z=Object.assign(Object.assign({},K.c),{createSuggestEditNotification:function(e){return{_type:Q.k.SuggestEdit,groupId:e.groupId,receiverId:0,instanceRegion:e.instanceRegion,countryCode:e.countryCode,channels:[F.Email],data:{video:e.video,user:e.user,property:e.property,suggestion:e.suggestion,reason:e.reason,currentValue:e.currentValue}}}}),z=n(34651),$=n.n(z);function q(e){return q="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},q(e)}function 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,o.key,o)}}function J(e,t){return J=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(e,t){return e.__proto__=t,e},J(e,t)}function W(e,t){if(t&&("object"===q(t)||"function"==typeof t))return t;if(void 0!==t)throw new TypeError("Derived constructors may only return object or undefined");return function(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}(e)}function Y(e){return Y=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(e){return e.__proto__||Object.getPrototypeOf(e)},Y(e)}var X=function(e){!function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),Object.defineProperty(e,"prototype",{writable:!1}),t&&J(e,t)}(f,e);var t,n,i,d,p=(i=f,d=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(e){return!1}}(),function(){var e,t=Y(i);if(d){var n=Y(this).constructor;e=Reflect.construct(t,arguments,n)}else e=t.apply(this,arguments);return W(this,e)});function f(e){return function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,f),p.call(this,e)}return t=f,(n=[{key:"initialize",value:function(){this.getViewModel(),this.videoDataService=a.u.getInstance(S.Or.Video,this),this.ratingsDataService=a.u.getInstance(S.Or.Ratings,this),this.notificationDataService=a.u.getInstance(S.Or.Notifications,this),this.selectedMetadata=new g,this.metadataCollection=this.getMetadataCollection(),this.bindListeners()}},{key:"name",get:function(){return"SuggestAnEditView"}},{key:"template",get:function(){return $()}},{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 u.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:M.Yw,title:r.T.getPhrase(this.lang,"heading"),spinnerButtonOptions:{model:this.spinnerModel=new b.v,channelName:this.channelName,buttonText:r.T.getPhrase(this.lang,"submit"),onClick:function(){return e.onSubmit()}}}]}},{key:"requiredResources",get:function(){return{config:w.p.config,currentUser:v.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(S.Vk.VIDEO,"".concat(S.M_.VIDEOS,":").concat(this.options.videoId,":sync"),this.render),this.listenTo(S.Vk.NOTIFICATIONS,"".concat(S.M_.SUGGEST_EDIT,":error"),this.onError)}},{key:"onSubmit",value:function(){var e=this;if(this.validateForm()){this.spinnerModel.set(T.ZV.ShowSpinner,!0);var t=this.selectedMetadata.get("metadataType")===V.MetadataType.Rating?this.viewModel.get("ratingSuggestion"):this.viewModel.get("suggestion"),n=this.config.get("suggestEditMetadataGroupId"),o=Z.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(T.ZV.ShowSpinner,!1),e.spinnerModel.set(T.ZV.Disabled,!0)})),this.logAction(),this.viewModel.clear()}}},{key:"onError",value:function(){this.spinnerModel.set(T.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(T.ZV.Disabled,!1),u.yV.setSelected(e.get("id"),this.metadataCollection),this.selectedMetadata.set({metadataType:e.get("name"),metadataValue:e.get("name")!==V.MetadataType.Other?this.model.get(e.get("property")):null}),e.get("name")!==V.MetadataType.Rating&&this.viewModel.set("ratingSuggestion","")}},{key:"getMetadataCollection",value:function(){return new O.L(Object.keys(V.MetadataTypes).map((function(e){return V.MetadataTypes[e]})))}},{key:"getMetadataByType",value:function(e){return this.metadataCollection.findWhere({name:e})}},{key:"getViewModel",value:function(){this.viewModel=s.r.get(this.viewModelName),this.viewModel.addValidation(x.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")!==V.MetadataType.Rating&&!n||!t)}},{key:"getRatingValidationMessage",value:function(){if(this.selectedMetadata.get("metadataType")!==V.MetadataType.Rating)return"";var e=this.selectedMetadata.get("metadataValue"),t=this.viewModel.get("ratingSuggestion");return t?e===t?x.nf.original():"":x.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=u.M2.getSourceTypes(this.model);e=o.filter(e,(function(e){return e!==P.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")};c.k.logUserAction(t,{descriptor:l.SuggestionDescriptor.Edit,location:l.LocationContext.Popup,actionType:l.UserAction.Suggest,entity:l.EntityType.Video})}},{key:"dataFetched",value:function(){return!!this.model&&!!this.ratingCollection}},{key:"renderMetadataDropdown",value:function(){this.showChildView("dropdown",new k.H({collection:x.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:c.k}))}},{key:"renderSuggestEdit",value:function(){this.selectedMetadata.get("metadataType")&&this.showChildView("suggestEdit",new H({model:this.viewModel,channelName:this.channelName,ratings:this.ratingCollection,currentRating:this.viewModel.get("ratingSuggestion")?new m.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.dataFetched()||(this.model=this.videoDataService.getVideo(this.options.videoId),this.ratingCollection=this.ratingsDataService.getAllRatings()),this.checkPreselection()}},{key:"viewOptions",value:function(){return{dataFetched:this.dataFetched(),spinnerEl:u.Kp.getSpinner({size:u.Ey.Large,extraClasses:"mx-auto"})}}},{key:"onRender",value:function(){this.dataFetched()&&(this.renderMetadataDropdown(),this.renderSuggestEdit())}}])&&G(t.prototype,n),Object.defineProperty(t,"prototype",{writable:!1}),f}(i.Q.View)},71641:function(e,t,n){"use strict";n.d(t,{w:function(){return d}});var o=n(39479),r=n(31647),i=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,o.key,o)}}function l(e,t){return l=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(e,t){return e.__proto__=t,e},l(e,t)}function c(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)}function u(e){return u=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(e){return e.__proto__||Object.getPrototypeOf(e)},u(e)}var d=function(e){!function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),Object.defineProperty(e,"prototype",{writable:!1}),t&&l(e,t)}(p,e);var t,n,r,a,d=(r=p,a=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(e){return!1}}(),function(){var e,t=u(r);if(a){var n=u(this).constructor;e=Reflect.construct(t,arguments,n)}else e=t.apply(this,arguments);return c(this,e)});function p(e){return function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,p),d.call(this,e)}return t=p,n=[{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)}}}],n&&s(t.prototype,n),Object.defineProperty(t,"prototype",{writable:!1}),p}(r.Q.ComponentCollection)},26357:function(e,t,n){"use strict";n.d(t,{H:function(){return g}});var o=n(39479),r=n(48088),i=n(31647),a=n(71641),s=n(61843),l=n(46635),c=n.n(l),u={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,o.key,o)}}function f(e,t){return f=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(e,t){return e.__proto__=t,e},f(e,t)}function h(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)}function y(e){return y=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(e){return e.__proto__||Object.getPrototypeOf(e)},y(e)}var g=function(e){!function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),Object.defineProperty(e,"prototype",{writable:!1}),t&&f(e,t)}(g,e);var t,n,i,l,d=(i=g,l=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(e){return!1}}(),function(){var e,t=y(i);if(l){var n=y(this).constructor;e=Reflect.construct(t,arguments,n)}else e=t.apply(this,arguments);return h(this,e)});function g(e){var t;return function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,g),(t=d.call(this,e)).selectSearch="",t.sameCharIndex=1,t.optionStep=1,t}return t=g,n=[{key:"initialize",value:function(){this.setModel(),this.bindListeners()}},{key:"name",get:function(){return"SelectComponent"}},{key:"template",get:function(){return c()}},{key:"regions",value:function(){return{dropdown:{el:".dropdown-region",replaceElement:!0}}}},{key:"events",value:function(){return{keydown:"onKeydown","shown.bs.dropdown":"onShowDropdown"}}},{key:"defaults",get:function(){return{displayProperty:"name"}}},{key:"elements",get:function(){return{dropdownToggle:".dropdown-toggle"}}},{key:"bindListeners",value:function(){this.listenTo(this.options.channelName,this.options.childOptions.eventName,this.onSelect)}},{key:"onShowDropdown",value:function(){r.Radio.channel(this.options.channelName).trigger("center:dropdown")}},{key:"onKeydown",value:function(e){38===e.keyCode||40===e.keyCode?this.onArrowKeyDown(e):13===e.keyCode?this.render():this.onType(e),r.Radio.channel(this.options.channelName).trigger("center:dropdown")}},{key:"onArrowKeyDown",value:function(e){s.yV.getSelected(this.collection)?this.optionStep=1:this.optionStep=0;var t=this.getNextModel(e.keyCode);for(t||(s.yV.deselectAll(this.collection),t=this.getNextModel(e.keyCode));this.isDisabled(t);)this.optionStep++,t=this.getNextModel(e.keyCode);this.onSelect(t)}},{key:"onType",value:function(e){if(1===e.key.toString().length){var t=this.getModelMatch(e);t&&this.onSelect(t),this.runTimer()}}},{key:"onSelect",value:function(e){this.isDisabled(e)||(s.yV.setSelected(e.get("id"),this.collection),this.setModel(),this.getUI("dropdownToggle").text(this.getButtonText()),r.Radio.channel(this.options.channelName).trigger("select:option:selected",e))}},{key:"setModel",value:function(){this.model=s.yV.getSelected(this.collection)}},{key:"getNextModel",value:function(e){var t,n=s.yV.getSelected(this.collection)||this.collection.first(),o=this.collection.indexOf(n);return(t=38===e?this.collection.at(o-this.optionStep):this.collection.at(o+this.optionStep))||(s.yV.deselectAll(this.collection),t=this.collection.first(),this.optionStep=0),t}},{key:"getModelMatch",value:function(e){var t,n=this;return 1===this.selectSearch.length&&this.selectSearch===e.key?t=this.handleSameCharIndex(e.key):(this.selectSearch+=e.key,this.sameCharIndex=1),t||(t=o.find(this.collection.models,(function(e){return e.get(n.options.displayProperty).toLowerCase().slice(0,n.selectSearch.length).includes(n.selectSearch.toLowerCase())}))),t}},{key:"handleSameCharIndex",value:function(e){var t=this,n=o.filter(this.collection.models,(function(n){return n.get(t.options.displayProperty).toLowerCase().slice(0,1)===e}));if(n.length>1){var r=n[this.sameCharIndex];return r||(r=o.first(n),this.sameCharIndex=0),this.sameCharIndex++,r}return o.first(n)}},{key:"runTimer",value:function(){var e=this;this.scopedTimerIndex&&clearTimeout(this.scopedTimerIndex),this.scopedTimerIndex=window.setTimeout((function(){e.selectSearch=""}),500)}},{key:"isDisabled",value:function(e){var t;if(e.get("divider"))return!0;if(!o.isFunction(this.options.childOptions.isDisabled))return!1;for(var n=arguments.length,r=new Array(n>1?n-1:0),i=1;i<n;i++)r[i-1]=arguments[i];return(t=this.options.childOptions.isDisabled).call.apply(t,[this,e].concat(r))}},{key:"getButtonText",value:function(){if(this.options.disabled)return this.options.noOptionsText;var e=s.yV.getSelected(this.collection);return e&&e.get(this.options.displayProperty)||this.options.placeholderText}},{key:"viewOptions",value:function(){return{styles:u,inputName:this.options.inputName,disabled:this.options.disabled,placeholderText:this.getButtonText()}}},{key:"onRender",value:function(){this.showChildView("dropdown",new a.w({collection:this.collection,channelName:this.options.channelName,childOptions:o.extend(this.options.childOptions),displayOptions:{extraClasses:"w-100 ".concat(u.dropdownMenu)},analyticsHelper:this.options.analyticsHelper}))}}],n&&p(t.prototype,n),Object.defineProperty(t,"prototype",{writable:!1}),g}(i.Q.Component)},67670:function(e,t,n){"use strict";n.d(t,{v:function(){return d}});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 a(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}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,o.key,o)}}function l(e,t){return l=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(e,t){return e.__proto__=t,e},l(e,t)}function c(e,t){if(t&&("object"===i(t)||"function"==typeof t))return t;if(void 0!==t)throw new TypeError("Derived constructors may only return object or undefined");return function(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}(e)}function u(e){return u=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(e){return e.__proto__||Object.getPrototypeOf(e)},u(e)}var d=function(e){!function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),Object.defineProperty(e,"prototype",{writable:!1}),t&&l(e,t)}(p,e);var t,n,o,i,d=(o=p,i=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(e){return!1}}(),function(){var e,t=u(o);if(i){var n=u(this).constructor;e=Reflect.construct(t,arguments,n)}else e=t.apply(this,arguments);return c(this,e)});function p(){return a(this,p),d.apply(this,arguments)}return t=p,(n=[{key:"defaults",value:function(){return e={},!0,(t=r.ZV.Disabled)in e?Object.defineProperty(e,t,{value:true,enumerable:!0,configurable:!0,writable:!0}):e[t]=true,e;var e,t}}])&&s(t.prototype,n),Object.defineProperty(t,"prototype",{writable:!1}),p}(o.Q.Model)},19098:function(e,t,n){var o=n(32227);e.exports=(o.default||o).template({1:function(e,t,n,o,r){e.propertyIsEnumerable;var i,a=e.escapeExpression,s=e.lambda;return'<p class="font-weight-bold mb-0">'+a((n.lang||t&&t.lang||e.hooks.helperMissing).call(null!=t?t:e.nullContext||{},"currentType",{name:"lang",hash:{metadataType:null!=(i=null!=t?t.options:t)?i.metadataType:i},data:r}))+'</p>\r\n<p class="mb-3 '+a(s(null!=(i=null!=(i=null!=t?t.options:t)?i.styles:i)?i.metadataValue:i,t))+'">'+(null!=(i=s(null!=(i=null!=t?t.options:t)?i.metadataValue:i,t))?i:"")+"</p>\r\n"},3:function(e,t,n,o,r){var i;return e.propertyIsEnumerable,' <textarea\r\n id="suggest-edit"\r\n placeholder="'+e.escapeExpression(e.lambda(null!=(i=null!=t?t.options:t)?i.suggestionPlaceholder:i,t))+'"\r\n class="form-control"\r\n name="suggestion"\r\n ></textarea>\r\n <div class="form-feedback"></div>\r\n'},compiler:[8,">= 4.3.0"],main:function(e,t,n,o,r){e.propertyIsEnumerable;var i,a=null!=t?t:e.nullContext||{},s=e.hooks.helperMissing,l=e.escapeExpression;return(null!=(i=n.unless.call(a,null!=(i=null!=t?t.options:t)?i.isOtherType:i,{name:"unless",hash:{},fn:e.program(1,r,0),inverse:e.noop,data:r}))?i:"")+'\r\n<div class="dropdown-divider"></div>\r\n\r\n<div class="form-group">\r\n <label for="suggest-edit" class="font-weight-bold">'+l((n.lang||t&&t.lang||s).call(a,"suggestionSubheading",{name:"lang",hash:{},data:r}))+'</label>\r\n <div class="rating-select-region"></div>\r\n <div class="rating-form-feedback invalid-feedback"></div>\r\n'+(null!=(i=n.unless.call(a,null!=(i=null!=t?t.options:t)?i.useRatingSelect:i,{name:"unless",hash:{},fn:e.program(3,r,0),inverse:e.noop,data:r}))?i:"")+'</div>\r\n\r\n<div class="form-group">\r\n <label for="reason-for-edit" class="font-weight-bold">'+l((n.lang||t&&t.lang||s).call(a,"reasoningSubheading",{name:"lang",hash:{},data:r}))+'</label>\r\n <textarea\r\n id="reason-for-edit"\r\n placeholder="'+l((n.lang||t&&t.lang||s).call(a,"reasoningPlaceholder",{name:"lang",hash:{},data:r}))+'"\r\n class="form-control"\r\n name="reason"\r\n ></textarea>\r\n <div class="form-feedback"></div>\r\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,r){e.propertyIsEnumerable;var i=null!=t?t:e.nullContext||{},a=e.hooks.helperMissing,s=e.escapeExpression;return"<p>"+s((n.lang||t&&t.lang||a).call(i,"guidelines",{name:"lang",hash:{},data:r}))+'</p>\r\n<p class="font-weight-bold mb-1">'+s((n.lang||t&&t.lang||a).call(i,"dropdownHeading",{name:"lang",hash:{},data:r}))+'</p>\r\n<div class="metadata-dropdown-region position-relative"></div>\r\n<div class="suggest-edit-region"></div>\r\n'},3:function(e,t,n,o,r){var i;return e.propertyIsEnumerable,(null!=(i=e.lambda(null!=(i=null!=t?t.options:t)?i.spinnerEl:i,t))?i:"")+"\r\n"},compiler:[8,">= 4.3.0"],main:function(e,t,n,o,r){var i;return e.propertyIsEnumerable,null!=(i=n.if.call(null!=t?t:e.nullContext||{},null!=(i=null!=t?t.options:t)?i.dataFetched:i,{name:"if",hash:{},fn:e.program(1,r,0),inverse:e.program(3,r,0),data:r}))?i:""},useData:!0})},46635:function(e,t,n){var o=n(32227);e.exports=(o.default||o).template({1:function(e,t,n,o,r){var i;return e.propertyIsEnumerable,e.escapeExpression(e.lambda(null!=(i=null!=(i=null!=t?t.options:t)?i.styles:i)?i.disabled:i,t))},3:function(e,t,n,o,r){return" disabled"},compiler:[8,">= 4.3.0"],main:function(e,t,n,o,r){e.propertyIsEnumerable;var i,a=e.lambda,s=e.escapeExpression,l=null!=t?t:e.nullContext||{};return'<button \r\n class="dropdown-toggle form-control btn-block text-left position-relative '+s(a(null!=(i=null!=(i=null!=t?t.options:t)?i.styles:i)?i.selectButton:i,t))+" "+(null!=(i=n.if.call(l,null!=(i=null!=t?t.options:t)?i.disabled:i,{name:"if",hash:{},fn:e.program(1,r,0),inverse:e.noop,data:r}))?i:"")+'" \r\n type="button" \r\n id="dropdownMenuButton" \r\n data-toggle="dropdown" \r\n aria-haspopup="true" \r\n aria-expanded="false"\r\n '+(null!=(i=n.if.call(l,null!=(i=null!=t?t.options:t)?i.disabled:i,{name:"if",hash:{},fn:e.program(3,r,0),inverse:e.noop,data:r}))?i:"")+' \r\n name="'+s(a(null!=(i=null!=t?t.options:t)?i.inputName:i,t))+'"\r\n >\r\n '+s(a(null!=(i=null!=t?t.options:t)?i.placeholderText:i,t))+'\r\n</button>\r\n<div class="dropdown-region"></div>\r\n<div class="form-feedback"></div>'},useData:!0})}}]);
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
(self.webpackChunk_clickview_library_editor=self.webpackChunk_clickview_library_editor||[]).push([[4463],{59054:function(e,t,n){"use strict";var o;n.d(t,{f:function(){return o}}),function(e){e.Share="share",e.MasterObject="masterobject"}(o||(o={}))},47022:function(e,t,n){"use strict";n.d(t,{Q:function(){return d}});var o=n(39479),r=n(31647),i=n(70065),c=n(52076),a=n(99186),l=n.n(a);function s(e){return s="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},s(e)}function u(e,t){for(var n=0;n<t.length;n++){var o=t[n];o.enumerable=o.enumerable||!1,o.configurable=!0,"value"in o&&(o.writable=!0),Object.defineProperty(e,o.key,o)}}function f(e,t){return f=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(e,t){return e.__proto__=t,e},f(e,t)}function p(e,t){if(t&&("object"===s(t)||"function"==typeof t))return t;if(void 0!==t)throw new TypeError("Derived constructors may only return object or undefined");return function(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}(e)}function y(e){return y=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(e){return e.__proto__||Object.getPrototypeOf(e)},y(e)}var d=function(e){!function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),Object.defineProperty(e,"prototype",{writable:!1}),t&&f(e,t)}(d,e);var t,n,r,a,s=(r=d,a=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(e){return!1}}(),function(){var e,t=y(r);if(a){var n=y(this).constructor;e=Reflect.construct(t,arguments,n)}else e=t.apply(this,arguments);return p(this,e)});function d(e){return function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,d),s.call(this,e)}return t=d,(n=[{key:"defaults",get:function(){return{cursors:{},cursorParamName:"cursor"}}},{key:"name",get:function(){return"PaginationComponent"}},{key:"template",get:function(){return l()}},{key:"lang",get:function(){return"shared._pagination"}},{key:"appLinks",get:function(){var e={};if(!this.options.cursors)return{};if(this.options.cursors.previous){var t=this.options.cursors.previous,n=this.buildCursor(this.options.cursors.previous);+t<=1&&!0!==this.options.allowFirstPageCursor&&delete n.params.cursor,e[".previous-applink"]=n}return this.options.cursors.next&&(e[".next-applink"]=this.buildCursor(this.options.cursors.next)),e}},{key:"events",value:function(){return{"click .previous-applink":"onClickPrevious","click .next-applink":"onClickNext"}}},{key:"buildCursor",value:function(e){return{application:this.options.appLink.application,action:this.options.appLink.action,args:this.options.appLink.args,params:o.extend({},this.options.appLink.params,(t={},n=this.options.cursorParamName,r=e,n in t?Object.defineProperty(t,n,{value:r,enumerable:!0,configurable:!0,writable:!0}):t[n]=r,t))};var t,n,r}},{key:"onClickPrevious",value:function(){this.logAction("previous")}},{key:"onClickNext",value:function(){this.logAction("next")}},{key:"logAction",value:function(e){var t=c.k.mergeOptions(this.options.analyticsOptions,{location:i.LocationContext.Pagination,entity:i.EntityType.Pagination,actionType:i.UserAction.Navigate}),n={id:this.options.collectionId,page:e};c.k.logUserAction(n,t)}},{key:"viewOptions",value:function(){return{cursors:this.options.cursors}}},{key:"onBeforeRender",value:function(){return!!this.options.cursors}}])&&u(t.prototype,n),Object.defineProperty(t,"prototype",{writable:!1}),d}(r.Q.Component)},91439:function(e,t,n){"use strict";n.d(t,{u:function(){return b}});var o=n(39479),r=n(48088),i=n(31647),c=n(6681),a=n(23807),l=n(93421),s="C8gyn";function u(e){return u="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},u(e)}function f(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}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,o.key,o)}}function y(e,t){return y=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(e,t){return e.__proto__=t,e},y(e,t)}function d(e,t){if(t&&("object"===u(t)||"function"==typeof t))return t;if(void 0!==t)throw new TypeError("Derived constructors may only return object or undefined");return function(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}(e)}function h(e){return h=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(e){return e.__proto__||Object.getPrototypeOf(e)},h(e)}var b=function(e){!function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),Object.defineProperty(e,"prototype",{writable:!1}),t&&y(e,t)}(m,e);var t,n,i,u,b=(i=m,u=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(e){return!1}}(),function(){var e,t=h(i);if(u){var n=h(this).constructor;e=Reflect.construct(t,arguments,n)}else e=t.apply(this,arguments);return d(this,e)});function m(){return f(this,m),b.apply(this,arguments)}return t=m,(n=[{key:"getClassMappings",value:function(){return{"ui-draggable":l.W2.draggable,"ui-draggable-handle":l.W2.handle,"ui-draggable-disabled":l.W2.disabled,"ui-draggable-dragging":l.W2.dragging}}},{key:"helper",value:function(){return new l.ND({text:this.view.model.get("name"),svg:c.Nj.getSvg(c.vn.Folder)}).render().el}},{key:"start",value:function(){r.Radio.channel(a.jr.FOLDER_DRAG_DROP).trigger("drag:start",this.view.model),this.view.$el.addClass(s)}},{key:"stop",value:function(){r.Radio.channel(a.jr.FOLDER_DRAG_DROP).trigger("drag:stop"),this.view.$el.removeClass(s)}},{key:"onRender",value:function(){var e={helper:o.bind(this.helper,this),start:o.bind(this.start,this),stop:o.bind(this.stop,this)};e.classes=this.getClassMappings(),this.view.$el.draggable(o.extend({},l.wc,e))}},{key:"onBeforeDestroy",value:function(){this.view.$el.draggable("instance")&&this.view.$el.draggable("destroy")}}])&&p(t.prototype,n),Object.defineProperty(t,"prototype",{writable:!1}),m}(i.Q.Behavior)},6929:function(e,t,n){"use strict";n.d(t,{x:function(){return y}});var o=n(39479),r=n(48088),i=n(31647),c=n(10454);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 l(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}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,o.key,o)}}function u(e,t){return u=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(e,t){return e.__proto__=t,e},u(e,t)}function f(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)}function p(e){return p=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(e){return e.__proto__||Object.getPrototypeOf(e)},p(e)}var y=function(e){!function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),Object.defineProperty(e,"prototype",{writable:!1}),t&&u(e,t)}(d,e);var t,n,i,a,y=(i=d,a=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(e){return!1}}(),function(){var e,t=p(i);if(a){var n=p(this).constructor;e=Reflect.construct(t,arguments,n)}else e=t.apply(this,arguments);return f(this,e)});function d(){return l(this,d),y.apply(this,arguments)}return t=d,(n=[{key:"getDroppableElement",value:function(){return this.options.ui?this.view.getUI(this.options.ui):this.$el}},{key:"drop",value:function(){var e=this;o.each(this.options.channelNames,(function(t){r.Radio.channel(t).trigger("drag:drop",e.view.model,e.options.analyticsOptions)}))}},{key:"accept",value:function(){var e=this,t=!1;return o.each(this.options.channelNames,(function(n){!0===r.Radio.channel(n).request("accept",e.view.model)&&(t=!0)})),t}},{key:"over",value:function(){var e=this;this.isHoveringOver=!0,window.setTimeout((function(){e.isHoveringOver&&e.view.trigger("open:sub:folders",c.Z.active)}),500)}},{key:"out",value:function(){this.isHoveringOver=!1}},{key:"onRender",value:function(){var e={tolerance:"pointer",drop:o.bind(this.drop,this),accept:o.bind(this.accept,this),over:o.bind(this.over,this),out:o.bind(this.out,this)};e.classes={"ui-droppable":c.Z.droppable,"ui-droppable-active":c.Z.active,"ui-droppable-hover":c.Z.hover},this.getDroppableElement().droppable(e)}},{key:"onBeforeDestroy",value:function(){this.getDroppableElement().droppable("instance")&&this.getDroppableElement().droppable("destroy")}}])&&s(t.prototype,n),Object.defineProperty(t,"prototype",{writable:!1}),d}(i.Q.Behavior)},51785:function(e,t,n){"use strict";n.d(t,{c:function(){return C}});var o=n(31647),r=n(6681),i=n(60602),c=n(70065),a=n(52076),l=n(71641),s=n(23807),u=n(57857),f=n(58266),p=n.n(f);function y(e){return y="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},y(e)}function d(e,t){for(var n=0;n<t.length;n++){var o=t[n];o.enumerable=o.enumerable||!1,o.configurable=!0,"value"in o&&(o.writable=!0),Object.defineProperty(e,o.key,o)}}function h(e,t){return h=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(e,t){return e.__proto__=t,e},h(e,t)}function b(e,t){if(t&&("object"===y(t)||"function"==typeof t))return t;if(void 0!==t)throw new TypeError("Derived constructors may only return object or undefined");return function(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}(e)}function m(e){return m=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(e){return e.__proto__||Object.getPrototypeOf(e)},m(e)}var g=function(e){!function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),Object.defineProperty(e,"prototype",{writable:!1}),t&&h(e,t)}(y,e);var t,n,r,i,f=(r=y,i=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(e){return!1}}(),function(){var e,t=m(r);if(i){var n=m(this).constructor;e=Reflect.construct(t,arguments,n)}else e=t.apply(this,arguments);return b(this,e)});function y(e){return function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,y),f.call(this,e)}return t=y,(n=[{key:"name",get:function(){return"FolderActionsDropdownComponent"}},{key:"template",get:function(){return p()}},{key:"lang",get:function(){return"libraryEditor.folderActionsDropdown"}},{key:"channelName",get:function(){return"".concat(this.name).concat(this.cid)}},{key:"regions",value:function(){return{items:{el:".items-region",replaceElement:!0}}}},{key:"getFolderActions",value:function(){return[{title:u.T.getPhrase(this.lang,"addSubfolder"),analyticsOptions:a.k.mergeOptions(this.options.analyticsOptions,{actionType:c.UserAction.Create,entity:c.EntityType.Folder,workflowPhase:c.WorkflowPhase.Start}),appLink:{application:s.OV.LIBRARY_EDITOR,action:s.eX.LibraryEditor.NEW_SUB_FOLDER,args:[this.model.get("id")]}},{title:u.T.getPhrase(this.lang,"rename"),analyticsOptions:a.k.mergeOptions(this.options.analyticsOptions,{actionType:c.UserAction.Rename,entity:c.EntityType.Folder,workflowPhase:c.WorkflowPhase.Start}),appLink:{application:s.OV.LIBRARY_EDITOR,action:s.eX.LibraryEditor.RENAME_FOLDER,args:[this.model.get("id")]}},{title:u.T.getPhrase(this.lang,"move"),analyticsOptions:a.k.mergeOptions(this.options.analyticsOptions,{actionType:c.UserAction.Move,entity:c.EntityType.Folder,workflowPhase:c.WorkflowPhase.Start}),appLink:{application:s.OV.LIBRARY_EDITOR,action:s.eX.LibraryEditor.MOVE_FOLDER,args:[this.model.get("id")]}},{title:u.T.getPhrase(this.lang,"editImages"),analyticsOptions:a.k.mergeOptions(this.options.analyticsOptions,{actionType:c.UserAction.EditAssoc,entity:c.EntityType.Folder,workflowPhase:c.WorkflowPhase.Start,descriptor:c.AssocDescriptor.Image}),appLink:{application:s.OV.LIBRARY_EDITOR,action:s.eX.LibraryEditor.EDIT_FOLDER_IMAGES,args:[this.model.get("id")]}},{title:u.T.getPhrase(this.lang,"generatePdf"),analyticsOptions:a.k.mergeOptions(this.options.analyticsOptions,{actionType:c.UserAction.Create,entity:c.EntityType.PDF,workflowPhase:c.WorkflowPhase.Start}),appLink:{application:s.OV.LIBRARY_EDITOR,action:s.eX.LibraryEditor.GENERATE_PDF,args:[this.model.get("id")]}},{title:u.T.getPhrase(this.lang,"remove"),analyticsOptions:a.k.mergeOptions(this.options.analyticsOptions,{actionType:c.UserAction.Delete,entity:c.EntityType.Folder,workflowPhase:c.WorkflowPhase.Start}),classes:"text-danger",appLink:{application:s.OV.LIBRARY_EDITOR,action:s.eX.LibraryEditor.DELETE_FOLDER,args:[this.model.get("id")]}}]}},{key:"onRender",value:function(){this.showChildView("items",new l.w({analyticsHelper:a.k,displayOptions:{alignment:"right"},channelName:this.channelName,collection:new o.Q.Collection(this.getFolderActions()),childOptions:{isDisabled:function(){return this.model.get("disabled")}}}))}}])&&d(t.prototype,n),Object.defineProperty(t,"prototype",{writable:!1}),y}(o.Q.Component),v=n(26704),w=n.n(v);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 k(e,t){for(var n=0;n<t.length;n++){var o=t[n];o.enumerable=o.enumerable||!1,o.configurable=!0,"value"in o&&(o.writable=!0),Object.defineProperty(e,o.key,o)}}function E(e,t){return E=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(e,t){return e.__proto__=t,e},E(e,t)}function S(e,t){if(t&&("object"===O(t)||"function"==typeof t))return t;if(void 0!==t)throw new TypeError("Derived constructors may only return object or undefined");return function(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}(e)}function P(e){return P=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(e){return e.__proto__||Object.getPrototypeOf(e)},P(e)}var C=function(e){!function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),Object.defineProperty(e,"prototype",{writable:!1}),t&&E(e,t)}(l,e);var t,n,o,c,a=(o=l,c=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(e){return!1}}(),function(){var e,t=P(o);if(c){var n=P(this).constructor;e=Reflect.construct(t,arguments,n)}else e=t.apply(this,arguments);return S(this,e)});function l(e){return function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,l),a.call(this,e)}return t=l,(n=[{key:"name",get:function(){return"VideoCollectionActionsComponent"}},{key:"channelName",get:function(){return"".concat(this.name).concat(this.cid)}},{key:"className",get:function(){if(this.model instanceof i.g)return"position-absolute ".concat(this.options.overrideClasses?"":"zHCsb"," ").concat(this.options.extraClasses," ")}},{key:"elements",get:function(){return{dropdownToggle:".ui-dropdown-toggle",dropdownItem:".dropdown-item"}}},{key:"events",value:function(){return{"click @ui.dropdownToggle":"onClickDropdownToggle","click @ui.dropdownItem":"onClickDropdownItem"}}},{key:"template",get:function(){return w()}},{key:"regions",value:function(){return{items:{replaceElement:!0,el:".items-region"}}}},{key:"onClickDropdownToggle",value:function(){this.model instanceof i.g&&this.showChildView("items",new g({model:this.model,analyticsOptions:this.options.analyticsOptions}))}},{key:"onClickDropdownItem",value:function(e){e.stopPropagation(),e.preventDefault(),this.getUI("dropdownToggle").dropdown("toggle")}},{key:"viewOptions",value:function(){return{hasActions:this.model instanceof i.g,dropdownClass:"".concat("He1m9"," ").concat(this.options.buttonClass),svg:r.Nj.getSvg(r.vn.More)}}}])&&k(t.prototype,n),Object.defineProperty(t,"prototype",{writable:!1}),l}(o.Q.Component)},65041:function(e,t,n){"use strict";n.r(t),n.d(t,{FolderView:function(){return qe},SeriesView:function(){return et}});var o=n(31647),r=n(21679),i=n(57857),c=n(99748),a=n(47022),l=n(60602),s=n(71192),u=n(23807),f=n(70763),p=n(61843),y=n(17422),d=n(23096),h=n(58688),b=n(48404),m=n(9484),g=n(26457),v=n(95061),w=n(51785),O=n(85552),k=n.n(O),E=n(21625),S=n(70065);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 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,o.key,o)}}function R(e,t){return R=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(e,t){return e.__proto__=t,e},R(e,t)}function _(e,t){if(t&&("object"===P(t)||"function"==typeof t))return t;if(void 0!==t)throw new TypeError("Derived constructors may only return object or undefined");return function(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}(e)}function j(e){return j=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(e){return e.__proto__||Object.getPrototypeOf(e)},j(e)}var I=function(e){!function(e,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)}(c,e);var t,n,o,r,i=(o=c,r=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(e){return!1}}(),function(){var e,t=j(o);if(r){var n=j(this).constructor;e=Reflect.construct(t,arguments,n)}else e=t.apply(this,arguments);return _(this,e)});function c(e){return function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,c),i.call(this,e)}return t=c,(n=[{key:"name",get:function(){return"BannerComponent"}},{key:"className",get:function(){return"px-3 position-relative ".concat(E.Z.banner)}},{key:"regions",value:function(){return{options:{el:".options-region",replaceElement:!0}}}},{key:"attributes",get:function(){var e=p.jw.createBannerUrl(this.model.banner,{fallbackBaseUrl:this.options.imageCdnUrl,fallbackCategoryName:this.model.get("name"),type:y.__.Banners});return{style:"background-image: url('".concat(e,"')")}}},{key:"template",get:function(){return k()}},{key:"renderActions",value:function(){this.showChildView("options",new w.c({model:this.model,extraClasses:"".concat(E.Z.actions," rounded-circle mr-2 mt-2"),buttonClass:"text-light",analyticsOptions:{location:S.LocationContext.Banner}}))}},{key:"onRender",value:function(){this.renderActions()}}])&&C(t.prototype,n),Object.defineProperty(t,"prototype",{writable:!1}),c}(o.Q.Component),T=n(6681),L=n(6929),D=n(91439),x=n(77944),V=n.n(x),A={folderIcon:"iP88p",folder:"WWGCN",folderBlock:"IkyTj",actions:"yFmtd"};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 N(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function F(e,t){for(var n=0;n<t.length;n++){var o=t[n];o.enumerable=o.enumerable||!1,o.configurable=!0,"value"in o&&(o.writable=!0),Object.defineProperty(e,o.key,o)}}function M(e,t){return M=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(e,t){return e.__proto__=t,e},M(e,t)}function U(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)}function W(e){return W=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(e){return e.__proto__||Object.getPrototypeOf(e)},W(e)}var H=function(e){!function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),Object.defineProperty(e,"prototype",{writable:!1}),t&&M(e,t)}(c,e);var t,n,o,r,i=(o=c,r=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(e){return!1}}(),function(){var e,t=W(o);if(r){var n=W(this).constructor;e=Reflect.construct(t,arguments,n)}else e=t.apply(this,arguments);return U(this,e)});function c(){return N(this,c),i.apply(this,arguments)}return t=c,(n=[{key:"initialize",value:function(){this.listenTo(this.model,"change:name",this.render)}},{key:"name",get:function(){return"SubFolderComponent"}},{key:"elements",get:function(){return{anchor:"a",block:".ui-block"}}},{key:"template",get:function(){return V()}},{key:"className",get:function(){return"col-3 d-inline-block pb-3"}},{key:"behaviors",get:function(){return[{behaviorClass:L.x,ui:"block",channelNames:[u.jr.VIDEO_DRAG_DROP,u.jr.FOLDER_DRAG_DROP],analyticsOptions:{location:S.LocationContext.SubFolderList}},{behaviorClass:D.u}]}},{key:"regions",value:function(){return{actions:{replaceElement:!0,el:".actions-region"}}}},{key:"appLinks",get:function(){return{a:{application:u.OV.LIBRARY_EDITOR,action:u.eX.LibraryEditor.FOLDER,args:[this.model.get("id")]}}}},{key:"viewOptions",value:function(){return{styles:A,svg:T.Nj.getSvg(T.vn.Folder)}}},{key:"onRender",value:function(){this.showChildView("actions",new w.c({model:this.model,extraClasses:"".concat(A.actions," rounded-circle mr-2"),analyticsOptions:{location:S.LocationContext.SubFolderList}}))}}])&&F(t.prototype,n),Object.defineProperty(t,"prototype",{writable:!1}),c}(o.Q.Component),Q=n(73368),Y=n.n(Q);function X(e){return X="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},X(e)}function z(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}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,o.key,o)}}function $(e,t,n){return t&&G(e.prototype,t),n&&G(e,n),Object.defineProperty(e,"prototype",{writable:!1}),e}function K(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&&Z(e,t)}function Z(e,t){return Z=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(e,t){return e.__proto__=t,e},Z(e,t)}function J(e){var t=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(e){return!1}}();return function(){var n,o=ee(e);if(t){var r=ee(this).constructor;n=Reflect.construct(o,arguments,r)}else n=o.apply(this,arguments);return q(this,n)}}function q(e,t){if(t&&("object"===X(t)||"function"==typeof t))return t;if(void 0!==t)throw new TypeError("Derived constructors may only return object or undefined");return function(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}(e)}function ee(e){return ee=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(e){return e.__proto__||Object.getPrototypeOf(e)},ee(e)}var te=function(e){K(n,e);var t=J(n);function n(){return z(this,n),t.apply(this,arguments)}return $(n,[{key:"name",get:function(){return"SubFoldersCollectionView"}},{key:"childView",get:function(){return H}}]),n}(o.Q.ComponentCollection),ne=function(e){K(n,e);var t=J(n);function n(){return z(this,n),t.apply(this,arguments)}return $(n,[{key:"name",get:function(){return"SubFoldersView"}},{key:"className",get:function(){return"container-fluid border-bottom pt-3 bg-white"}},{key:"template",get:function(){return Y()}},{key:"regions",value:function(){return{subFolders:{replaceElement:!0,el:".subfolders-region"}}}},{key:"onRender",value:function(){this.showChildView("subFolders",new te({collection:this.collection}))}}]),n}(o.Q.Component),oe=n(8420),re=n.n(oe),ie=n(50028),ce=n(52076),ae=n(71641),le=n(40622),se=n(34670),ue=n.n(se);function fe(e){return fe="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},fe(e)}function pe(e,t){for(var n=0;n<t.length;n++){var o=t[n];o.enumerable=o.enumerable||!1,o.configurable=!0,"value"in o&&(o.writable=!0),Object.defineProperty(e,o.key,o)}}function ye(e,t){return ye=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(e,t){return e.__proto__=t,e},ye(e,t)}function de(e,t){if(t&&("object"===fe(t)||"function"==typeof t))return t;if(void 0!==t)throw new TypeError("Derived constructors may only return object or undefined");return function(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}(e)}function he(e){return he=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(e){return e.__proto__||Object.getPrototypeOf(e)},he(e)}var be=function(e){!function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),Object.defineProperty(e,"prototype",{writable:!1}),t&&ye(e,t)}(l,e);var t,n,r,c,a=(r=l,c=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(e){return!1}}(),function(){var e,t=he(r);if(c){var n=he(this).constructor;e=Reflect.construct(t,arguments,n)}else e=t.apply(this,arguments);return de(this,e)});function l(e){return function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,l),a.call(this,e)}return t=l,(n=[{key:"initialize",value:function(){this.getViewModel(),this.bindListeners()}},{key:"getViewModel",value:function(){var e=this.options.collectionIdentifier.toString();this.model=p.S0.GetViewModel(e,le.CheckboxTypes.VIDEO_LIST)}},{key:"bindListeners",value:function(){this.listenTo(this.model,"change",this.render),this.listenTo(this.collection,"remove",this.render)}},{key:"name",get:function(){return"BulkVideoActionsComponent"}},{key:"template",get:function(){return ue()}},{key:"lang",get:function(){return"shared.bulkVideoActions"}},{key:"regions",value:function(){return{dropdownItems:{replaceElement:!0,el:".dropdown-menu-region"}}}},{key:"getSelectedIds",value:function(){return p.S0.GetSelectedIds({key:this.options.collectionIdentifier.toString(),type:le.CheckboxTypes.VIDEO_LIST,collection:this.collection,excludePredicate:function(e){return e.get("status")===ie.X.Processing}})}},{key:"onBeforeRender",value:function(){return!!this.getSelectedIds().length||(this.$el.empty(),!1)}},{key:"getActions",value:function(){if(this.options.collectionIdentifier){var e=this.getSelectedIds();return new o.Q.Collection([{title:i.T.getPhrase(this.lang,"move",{smartCount:e.length}),appLink:{application:this.options.application,action:u.eX.Shared.MOVE_VIDEOS,args:[e.join(","),this.options.collectionIdentifier.id]},analyticsOptions:ce.k.mergeOptions(this.options.analyticsOptions,{actionType:S.UserAction.Move,workflowPhase:S.WorkflowPhase.Start})},{title:i.T.getPhrase(this.lang,"remove",{smartCount:e.length}),appLink:{application:u.OV.LIBRARY_EDITOR,action:u.eX.Shared.DELETE_VIDEOS,args:[this.options.collectionIdentifier.id,e.join(",")]},analyticsOptions:ce.k.mergeOptions(this.options.analyticsOptions,{actionType:S.UserAction.Delete,workflowPhase:S.WorkflowPhase.Start}),classes:"text-danger"}])}}},{key:"onRender",value:function(){this.showChildView("dropdownItems",new ae.w({displayOptions:{alignment:"right"},channelName:"".concat(this.name).concat(this.cid),collection:this.getActions(),analyticsHelper:ce.k}))}}])&&pe(t.prototype,n),Object.defineProperty(t,"prototype",{writable:!1}),l}(o.Q.Component),me=n(12542),ge=n(57085),ve=n(39479),we=n(53370),Oe=n.n(we);function ke(e){return ke="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},ke(e)}function Ee(e,t){for(var n=0;n<t.length;n++){var o=t[n];o.enumerable=o.enumerable||!1,o.configurable=!0,"value"in o&&(o.writable=!0),Object.defineProperty(e,o.key,o)}}function Se(e,t){return Se=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(e,t){return e.__proto__=t,e},Se(e,t)}function Pe(e,t){if(t&&("object"===ke(t)||"function"==typeof t))return t;if(void 0!==t)throw new TypeError("Derived constructors may only return object or undefined");return function(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}(e)}function Ce(e){return Ce=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(e){return e.__proto__||Object.getPrototypeOf(e)},Ce(e)}var Re=function(e){!function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),Object.defineProperty(e,"prototype",{writable:!1}),t&&Se(e,t)}(a,e);var t,n,r,i,c=(r=a,i=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(e){return!1}}(),function(){var e,t=Ce(r);if(i){var n=Ce(this).constructor;e=Reflect.construct(t,arguments,n)}else e=t.apply(this,arguments);return Pe(this,e)});function a(e){return function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,a),c.call(this,e)}return t=a,(n=[{key:"initialize",value:function(){this.getViewModel(),this.setSort(),this.bindListeners(),this.initializeCollection()}},{key:"getViewModel",value:function(){this.model=p.x$.GetSortViewModel()}},{key:"setSort",value:function(){var e=this.options.collectionIdentifier.sort;if(e!==this.model.get("sortType")){var t=p.x$.CreateSortObject(e);this.model.set(t)}}},{key:"bindListeners",value:function(){this.listenTo(this.channelName,"sort:selected",this.onSortSelected)}},{key:"initializeCollection",value:function(){this.collection||(this.collection=p.x$.CreateSortCollection())}},{key:"name",get:function(){return"SortSelectComponent"}},{key:"regions",value:function(){return{dropdown:".dropdown-menu-region"}}},{key:"template",get:function(){return Oe()}},{key:"channelName",get:function(){return"".concat(this.name).concat(this.cid)}},{key:"className",get:function(){return"d-inline-block ".concat("zs6cS")}},{key:"events",value:function(){return{click:"onClick"}}},{key:"onClick",value:function(){this.logAction(S.WorkflowPhase.Start)}},{key:"onSortSelected",value:function(e){this.model.set(e.toJSON()),this.render(),this.logAction(S.WorkflowPhase.Complete)}},{key:"logAction",value:function(e){var t=ce.k.mergeOptions(this.options.analyticsOptions,{actionType:S.UserAction.Sort,workflowPhase:e}),n={id:this.options.collectionIdentifier.id,sort:this.model.get("name")};ce.k.logUserAction(n,t)}},{key:"onRender",value:function(){var e=this,t=this.collection.filter((function(t){return t.get("name")!==e.model.get("name")})),n=new o.Q.Collection(ve.map(t,(function(t){var n=t.toJSON();return n.appLink={application:e.options.appLink.application,action:e.options.appLink.action,args:[e.options.collectionIdentifier.id],params:{sort:t.get("sortName")}},n})));this.showChildView("dropdown",new ae.w({collection:n,channelName:this.channelName,childOptions:{titleProperty:"name",eventName:"sort:selected"},displayOptions:{alignment:"right",extraClasses:"ocO66"},analyticsHelper:ce.k}))}}])&&Ee(t.prototype,n),Object.defineProperty(t,"prototype",{writable:!1}),a}(o.Q.Component);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 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,o.key,o)}}function Ie(e,t){return Ie=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(e,t){return e.__proto__=t,e},Ie(e,t)}function Te(e,t){if(t&&("object"===_e(t)||"function"==typeof t))return t;if(void 0!==t)throw new TypeError("Derived constructors may only return object or undefined");return function(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}(e)}function Le(e){return Le=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(e){return e.__proto__||Object.getPrototypeOf(e)},Le(e)}var De=function(e){!function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),Object.defineProperty(e,"prototype",{writable:!1}),t&&Ie(e,t)}(c,e);var t,n,o,r,i=(o=c,r=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(e){return!1}}(),function(){var e,t=Le(o);if(r){var n=Le(this).constructor;e=Reflect.construct(t,arguments,n)}else e=t.apply(this,arguments);return Te(this,e)});function c(e){return function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,c),i.call(this,e)}return t=c,(n=[{key:"initialize",value:function(){this.analyticsOptions=ce.k.mergeOptions(this.options.analyticsOptions,{location:S.LocationContext.VideoListHeader})}},{key:"name",get:function(){return"VideoListHeaderComponent"}},{key:"template",get:function(){return re()}},{key:"className",get:function(){return"d-flex justify-content-between align-items-center px-3 py-2 border-bottom"}},{key:"props",get:function(){return["collectionIdentifier"]}},{key:"regions",value:function(){return{checkAll:{el:".check-all-region",replaceElement:!1},bulkActions:{el:".bulk-actions-region",replaceElement:!0},breadcrumbs:{el:".breadcrumbs-region",replaceElement:!1},sorting:{el:".sorting-region",replaceElement:!0}}}},{key:"renderCheckAll",value:function(){!this.options.allowBulk||this.collection.length<=0||this.showChildView("checkAll",new me.Y({className:"float-left",key:this.collectionIdentifier.toString(),type:le.CheckboxTypes.VIDEO_LIST,numberOfItems:this.collection.length}))}},{key:"renderBulkActions",value:function(){!this.options.allowBulk||this.collection.length<=0||this.showChildView("bulkActions",new be({collection:this.collection,collectionIdentifier:this.collectionIdentifier,application:this.options.application,analyticsOptions:ce.k.mergeOptions(this.options.analyticsOptions,{descriptor:S.OperationDescriptor.Bulk,location:S.LocationContext.VideoListHeader,entity:S.EntityType.Video,workflowPhase:S.WorkflowPhase.Start})}))}},{key:"renderBreadcrumbs",value:function(){this.options.folder&&this.options.libraries&&this.showChildView("breadcrumbs",new ge.n({folder:this.options.folder,libraries:this.options.libraries}))}},{key:"renderSorting",value:function(){this.collection.length<=0||this.showChildView("sorting",new Re({collectionIdentifier:this.collectionIdentifier,analyticsOptions:this.analyticsOptions,appLink:{application:this.options.application,action:this.options.action}}))}},{key:"viewOptions",value:function(){return{showBulkActions:this.options.allowBulk&&this.collection.length>0}}},{key:"onRender",value:function(){this.renderCheckAll(),this.renderBulkActions(),this.renderBreadcrumbs(),this.renderSorting()}}])&&je(t.prototype,n),Object.defineProperty(t,"prototype",{writable:!1}),c}(o.Q.Component),xe=n(56906),Ve=n(93089),Ae=n.n(Ve),Be=n(87262),Ne=n(25692),Fe=n(264),Me=n(59054);function Ue(e){return Ue="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},Ue(e)}function We(){return We="undefined"!=typeof Reflect&&Reflect.get?Reflect.get.bind():function(e,t,n){var o=He(e,t);if(o){var r=Object.getOwnPropertyDescriptor(o,t);return r.get?r.get.call(arguments.length<3?e:n):r.value}},We.apply(this,arguments)}function He(e,t){for(;!Object.prototype.hasOwnProperty.call(e,t)&&null!==(e=Ze(e)););return e}function Qe(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function Ye(e,t){for(var n=0;n<t.length;n++){var o=t[n];o.enumerable=o.enumerable||!1,o.configurable=!0,"value"in o&&(o.writable=!0),Object.defineProperty(e,o.key,o)}}function Xe(e,t,n){return t&&Ye(e.prototype,t),n&&Ye(e,n),Object.defineProperty(e,"prototype",{writable:!1}),e}function ze(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&&Ge(e,t)}function Ge(e,t){return Ge=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(e,t){return e.__proto__=t,e},Ge(e,t)}function $e(e){var t=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(e){return!1}}();return function(){var n,o=Ze(e);if(t){var r=Ze(this).constructor;n=Reflect.construct(o,arguments,r)}else n=o.apply(this,arguments);return Ke(this,n)}}function Ke(e,t){if(t&&("object"===Ue(t)||"function"==typeof t))return t;if(void 0!==t)throw new TypeError("Derived constructors may only return object or undefined");return function(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}(e)}function Ze(e){return Ze=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(e){return e.__proto__||Object.getPrototypeOf(e)},Ze(e)}var Je=function(e){ze(n,e);var t=$e(n);function n(e){return Qe(this,n),t.call(this,e)}return Xe(n,[{key:"initialize",value:function(){this.bindListeners(),this.getSortType(),this.videoDataService=r.u.getInstance(u.Or.Video,this),this.libraryDataService=r.u.getInstance(u.Or.Library,this),this.pendingItemsService=r.u.getInstance(u.K9.PendingItems,this),this.localCacheDataService=r.u.getInstance(u.Or.LocalCache,this),this.playerDataService=r.u.getInstance(u.Or.Player,this),this.videoMixinService=r.u.getInstance(u.K9.VideoMixin,this),this.createViewKey=this.createViewKey.bind(this)}},{key:"title",get:function(){return!!this.model&&this.model.get("name")}},{key:"template",get:function(){return Ae()}},{key:"className",get:function(){return"bg-white"}},{key:"channelName",get:function(){return"".concat(this.name,":").concat(this.cid)}},{key:"props",get:function(){return["collectionIdentifier"]}},{key:"regions",value:function(){return{banner:{el:".banner-region",replaceElement:!0,partialLoading:y.LP.Banner},header:{el:".header-region",replaceElement:!0,partialLoading:y.LP.VideoListHeader},videoList:{el:".video-list-region",replaceElement:!0,partialLoading:y.LP.VideoListWithBulkActions},childFolders:{el:".child-folders-region",replaceElement:!1,partialLoading:y.LP.SubFolder},pagination:{el:".pagination-region",replaceElement:!0}}}},{key:"bindListeners",value:function(){var e=this.options.collectionIdentifier.toString();this.listenTo(u.Vk.VIDEO,"".concat(e,":sync"),this.render),this.listenTo(u.Vk.VIDEO,"".concat(u.M_.DELETE_VIDEO,":sync"),this.fetchData),this.listenTo(u.Vk.VIDEO,"cache:cleared",this.render),this.listenTo(u.Vk.RESTRICTED_VIDEO,"".concat(u.M_.RESTRICTED_OBJECTS,":").concat(e,":invalidate"),this.updateRestrictedVideos),this.listenTo(this.channelName,"cancel:pending:item",this.cancelPendingItem),this.listenTo(this.channelName,"retry:pending:item",this.retryPendingItem),this.listenTo(this.channelName,"fetch:video:with:metadata",this.fetchVideoWithMetadata),this.listenTo(u.Vk.LOCAL_CACHE,"".concat(u.M_.LOCAL_CACHE_DEVICES,":sync"),this.render),this.listenTo(u.Vk.LOCAL_CACHE,"".concat(u.M_.LOCAL_CACHE_DEVICES,":error"),this.onError)}},{key:"getSortType",value:function(){this.sortType||(this.sortType=this.options.collectionIdentifier.sort)}},{key:"updateRestrictedVideos",value:function(){var e=this;this.videoMixinService.getAndMixinVideoCollectionRestrictions(this.videoCollection,this.collectionIdentifier,(function(){return e.render()}))}},{key:"cancelPendingItem",value:function(e){this.pendingItemsService.clearPendingItem(e)}},{key:"retryPendingItem",value:function(e){this.pendingItemsService.retryPendingItem(e)}},{key:"createViewKey",value:function(e,t){this.playerDataService.createViewKey(e,Me.f.MasterObject,t)}},{key:"setVideosWithMetadata",value:function(){this.videoCollection&&(this.videosWithMetadata=new f.t(this.videoCollection.map((function(e){return new s.n({id:e.get("id")})}))))}},{key:"renderBanner",value:function(){var e=new I({model:this.model,channelName:this.channelName,imageCdnUrl:this.config.get("imageCdnUrl")});this.showChildView("banner",e)}},{key:"renderChildFolders",value:function(){if(this.folderWithChildren&&this.folderWithChildren.children&&this.folderWithChildren.children.length){var e=new ne({collection:this.folderWithChildren.children});this.showChildView("childFolders",e)}}},{key:"renderHeader",value:function(){this.showChildView("header",new De({collection:this.videoCollection,libraries:this.libraryCollection,folder:this.model instanceof l.g&&this.model,application:u.OV.LIBRARY_EDITOR,action:this.appLinkAction(),allowBulk:this.allowBulk(),collectionIdentifier:this.collectionIdentifier,analyticsOptions:this.options.analyticsOptions}))}},{key:"renderVideoList",value:function(){var e=new d.Y({collection:this.videoCollection,videosWithMetadata:this.videosWithMetadata,application:u.OV.LIBRARY_EDITOR,allowBulk:this.allowBulk(),collectionIdentifier:this.collectionIdentifier,config:this.config,pendingItems:this.pendingItemsService.getPendingItems(),videoItemComponentType:this.componentType,emptyStateType:this.emptyStateType(),emptyStateOptions:this.emptyStateOptions(),supportSiteUrl:this.config.get("supportSiteUrl"),collectionViewChannel:this.channelName,customerHasLocalCache:p.o8.customerHasLocalCache(this.devices,this.currentUser.get("customerId")),customerHasExchange:this.exchanges.any(),analyticsOptions:this.options.analyticsOptions,sourceMetadataOptions:{showFolder:this.showFolderSource()},videoCollectionSource:this.getVideoCollectionSource(),currentUser:this.currentUser,playerApiUrl:this.config.get("playerApiUrl"),createViewKey:this.createViewKey});this.showChildView("videoList",e)}},{key:"renderPagination",value:function(){var e=this.videoDataService.getVideoCollectionCursors(this.collectionIdentifier),t=new a.Q({cursors:e,collectionId:this.options.collectionIdentifier.id,appLink:{application:u.OV.LIBRARY_EDITOR,action:this.appLinkAction(),args:[this.collectionIdentifier.id],params:this.collectionIdentifier.toParams()},analyticsOptions:this.options.analyticsOptions});this.showChildView("pagination",t)}},{key:"fetchData",value:function(){this.fetchModel(),this.devices=this.localCacheDataService.getDevices(this.currentUser.get("customerId")),this.fetchVideoCollection()}},{key:"fetchVideoWithMetadata",value:function(e){var t=this;this.videoDataService.getVideo(e,(function(n){var o=t.videosWithMetadata.get(e);o&&(o.set(n.toJSON()),o.set({dataFetched:!0}))}))}},{key:"requiredResources",get:function(){return{config:b.p.config,currentUser:m.K.currentUser,libraryCollection:v.T.libraries,exchanges:v.T.exchanges}}},{key:"onBeforeRender",value:function(){return this.fetchData(),!!this.videoCollection&&(this.setVideosWithMetadata(),!!this.model)}},{key:"onRender",value:function(){this.renderBanner(),this.renderChildFolders(),this.renderHeader(),this.renderVideoList(),this.renderPagination()}}]),n}(o.Q.View),qe=function(e){ze(n,e);var t=$e(n);function n(){return Qe(this,n),t.apply(this,arguments)}return Xe(n,[{key:"name",get:function(){return"FolderView"}},{key:"lang",get:function(){return"libraryEditor.folderView"}},{key:"componentType",get:function(){return h.U.Draggable}},{key:"bindListeners",value:function(){this.listenTo(u.Vk.LIBRARY,"".concat(u.M_.FOLDER,":").concat(this.options.collectionIdentifier.id,":sync libraries:sync"),this.render),this.listenTo(u.Vk.LIBRARY,"".concat(u.M_.FOLDER,":").concat(this.options.collectionIdentifier.id,":error"),this.onError),this.listenTo(u.Vk.LIBRARY,"".concat(u.M_.UPDATE_FOLDER_BANNER,":").concat(this.options.collectionIdentifier.id,":sync"),this.fetchModel),We(Ze(n.prototype),"bindListeners",this).call(this)}},{key:"onError",value:function(e){switch(e.type){case c.h.Forbidden:o.Q.ErrorHelper.throw(new xe.gO);break;case c.h.NotFound:o.Q.ErrorHelper.throw(new xe.Zv)}}},{key:"appLinkAction",value:function(){return u.eX.LibraryEditor.FOLDER}},{key:"allowBulk",value:function(){return!0}},{key:"emptyStateType",value:function(){return y.ub.Folder}},{key:"emptyStateOptions",value:function(){var e,t;return{heading:i.T.getPhrase(this.lang,"emptyStateHeading"),description:!Fe.g.hasLite&&i.T.getPhrase(this.lang,"emptyStateInfo",{url:Be.o.getArticle(null===(e=this.config)||void 0===e?void 0:e.get("supportSiteUrl"),Ne.w.AddFromOnline,null===(t=this.currentUser)||void 0===t?void 0:t.get("countryCode")),classNames:"info-link"})}}},{key:"showFolderSource",value:function(){return!1}},{key:"getVideoCollectionSource",value:function(){return g.x_.Folder}},{key:"fetchModel",value:function(){this.model=this.libraryDataService.getFolder(this.collectionIdentifier.id)}},{key:"fetchVideoCollection",value:function(){this.videoCollection=this.videoDataService.getCollectionVideos(this.collectionIdentifier)}},{key:"onBeforeRender",value:function(){return this.folderWithChildren=p.PU.getModelFromCollection(this.collectionIdentifier.id,this.libraryCollection),this.folderWithChildren.children&&this.listenTo(this.folderWithChildren.children,"add remove",this.render),We(Ze(n.prototype),"onBeforeRender",this).call(this)}}]),n}(Je),et=function(e){ze(n,e);var t=$e(n);function n(){return Qe(this,n),t.apply(this,arguments)}return Xe(n,[{key:"initialize",value:function(){this.seriesDataService=r.u.getInstance(u.Or.Series,this),We(Ze(n.prototype),"initialize",this).call(this)}},{key:"name",get:function(){return"SeriesView"}},{key:"lang",get:function(){return"libraryEditor.seriesView"}},{key:"componentType",get:function(){return h.U.Base}},{key:"bindListeners",value:function(){this.listenTo(u.Vk.SERIES,"".concat(u.M_.SERIES,":").concat(this.options.collectionIdentifier.id,":sync"),this.render),this.listenTo(u.Vk.SERIES,"".concat(u.M_.SERIES,":").concat(this.options.collectionIdentifier.id,":error"),this.onError),We(Ze(n.prototype),"bindListeners",this).call(this)}},{key:"onError",value:function(e){e.type===c.h.NotFound&&o.Q.ErrorHelper.throw(new xe.Ag)}},{key:"appLinkAction",value:function(){return u.eX.LibraryEditor.SERIES}},{key:"allowBulk",value:function(){return!1}},{key:"emptyStateType",value:function(){return y.ub.Series}},{key:"emptyStateOptions",value:function(){var e,t;return{heading:i.T.getPhrase(this.lang,"emptyStateHeading"),description:!Fe.g.hasLite&&i.T.getPhrase(this.lang,"emptyStateInfo",{url:Be.o.getArticle(null===(e=this.config)||void 0===e?void 0:e.get("supportSiteUrl"),Ne.w.AddFromOnline,null===(t=this.currentUser)||void 0===t?void 0:t.get("countryCode")),classNames:"info-link"})}}},{key:"showFolderSource",value:function(){return!0}},{key:"getVideoCollectionSource",value:function(){return g.x_.Series}},{key:"fetchModel",value:function(){this.model=this.seriesDataService.getSeries(this.collectionIdentifier.id)}},{key:"fetchVideoCollection",value:function(){this.videoCollection=this.videoDataService.getSeriesVideos(this.collectionIdentifier,this.libraryCollection.pluck("id"))}}]),n}(Je)},57085:function(e,t,n){"use strict";n.d(t,{n:function(){return C}});var o=n(31647),r=n(93933),i=n.n(r),c=n(86363),a=n.n(c);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 s(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function u(e,t){for(var n=0;n<t.length;n++){var o=t[n];o.enumerable=o.enumerable||!1,o.configurable=!0,"value"in o&&(o.writable=!0),Object.defineProperty(e,o.key,o)}}function f(e,t,n){return t&&u(e.prototype,t),n&&u(e,n),Object.defineProperty(e,"prototype",{writable:!1}),e}function p(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&&y(e,t)}function y(e,t){return y=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(e,t){return e.__proto__=t,e},y(e,t)}function d(e){var t=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(e){return!1}}();return function(){var n,o=b(e);if(t){var r=b(this).constructor;n=Reflect.construct(o,arguments,r)}else n=o.apply(this,arguments);return h(this,n)}}function h(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)}function b(e){return b=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(e){return e.__proto__||Object.getPrototypeOf(e)},b(e)}var m=function(e){p(n,e);var t=d(n);function n(){return s(this,n),t.apply(this,arguments)}return f(n,[{key:"name",get:function(){return"BreadcrumbItemComponent"}},{key:"template",get:function(){return a()}},{key:"tagName",get:function(){return"li"}},{key:"className",get:function(){var e="breadcrumb-item";return this.model.get("active")&&(e+=" active"),e}},{key:"attributes",get:function(){return this.model.get("active")?{"aria-current":"page"}:{}}},{key:"appLinks",get:function(){return this.model.get("active")?{}:{a:this.model.get("appLink")}}},{key:"viewOptions",value:function(){return{isActive:this.model.get("active")}}}]),n}(o.Q.Component),g=function(e){p(n,e);var t=d(n);function n(){return s(this,n),t.apply(this,arguments)}return f(n,[{key:"name",get:function(){return"BreadcrumbComponentCollection"}},{key:"tagName",get:function(){return"ol"}},{key:"className",get:function(){return"breadcrumb m-0 p-0"}},{key:"childView",get:function(){return m}}]),n}(o.Q.ComponentCollection),v=n(22557),w=n(23807);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 k(e,t){for(var n=0;n<t.length;n++){var o=t[n];o.enumerable=o.enumerable||!1,o.configurable=!0,"value"in o&&(o.writable=!0),Object.defineProperty(e,o.key,o)}}function E(e,t){return E=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(e,t){return e.__proto__=t,e},E(e,t)}function S(e,t){if(t&&("object"===O(t)||"function"==typeof t))return t;if(void 0!==t)throw new TypeError("Derived constructors may only return object or undefined");return function(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}(e)}function P(e){return P=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(e){return e.__proto__||Object.getPrototypeOf(e)},P(e)}var C=function(e){!function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),Object.defineProperty(e,"prototype",{writable:!1}),t&&E(e,t)}(l,e);var t,n,r,c,a=(r=l,c=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(e){return!1}}(),function(){var e,t=P(r);if(c){var n=P(this).constructor;e=Reflect.construct(t,arguments,n)}else e=t.apply(this,arguments);return S(this,e)});function l(e){return function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,l),a.call(this,e)}return t=l,(n=[{key:"initialize",value:function(){this.getBreadcrumbs()}},{key:"name",get:function(){return"BreadcrumbsComponent"}},{key:"template",get:function(){return i()}},{key:"className",get:function(){return"d-inline-block"}},{key:"regions",value:function(){return{breadcrumbs:".breadcrumbs-region"}}},{key:"getBreadcrumbs",value:function(){this.breadcrumbCollection=new o.Q.Collection;var e,t=this.options.folder;do{if(e=v.P.getParent(t.id,this.options.libraries),this.breadcrumbCollection.add(this.getBreadcrumb(t,!!e),{at:0}),!e)break;t=e}while(e);this.options.video&&this.breadcrumbCollection.add({name:this.options.video.get("name"),appLink:{application:w.OV.LIBRARY_EDITOR,action:w.eX.LibraryEditor.VIDEO_DETAILS,args:[this.options.video.id]}}),this.breadcrumbCollection.length&&this.breadcrumbCollection.last().set("active",!this.options.enableLastItemAppLink)}},{key:"getBreadcrumb",value:function(e,t){var n=t?w.eX.LibraryEditor.FOLDER:w.eX.LibraryEditor.LIBRARY;return{name:e.get("name"),appLink:{application:w.OV.LIBRARY_EDITOR,action:n,args:[e.id]}}}},{key:"onRender",value:function(){var e=new g({collection:this.breadcrumbCollection});this.showChildView("breadcrumbs",e)}}])&&k(t.prototype,n),Object.defineProperty(t,"prototype",{writable:!1}),l}(o.Q.Component)},99186:function(e,t,n){var o=n(32227);e.exports=(o.default||o).template({1:function(e,t,n,o,r){return"disabled"},compiler:[8,">= 4.3.0"],main:function(e,t,n,o,r){e.propertyIsEnumerable;var i,c=null!=t?t:e.nullContext||{},a=e.hooks.helperMissing,l=e.escapeExpression;return'<div class="p-3">\r\n <a class="btn previous-applink btn-secondary '+(null!=(i=n.unless.call(c,null!=(i=null!=(i=null!=t?t.options:t)?i.cursors:i)?i.previous:i,{name:"unless",hash:{},fn:e.program(1,r,0),inverse:e.noop,data:r}))?i:"")+'">'+l((n.lang||t&&t.lang||a).call(c,"previous",{name:"lang",hash:{},data:r}))+'</a>\r\n <a class="btn next-applink btn-secondary '+(null!=(i=n.unless.call(c,null!=(i=null!=(i=null!=t?t.options:t)?i.cursors:i)?i.next:i,{name:"unless",hash:{},fn:e.program(1,r,0),inverse:e.noop,data:r}))?i:"")+'">'+l((n.lang||t&&t.lang||a).call(c,"next",{name:"lang",hash:{},data:r}))+"</a>\r\n</div>"},useData:!0})},85552:function(e,t,n){var o=n(32227);e.exports=(o.default||o).template({compiler:[8,">= 4.3.0"],main:function(e,t,n,o,r){var i;return e.propertyIsEnumerable,'<h1 class="text-white position-absolute m-0">\r\n '+e.escapeExpression("function"==typeof(i=null!=(i=n.name||(null!=t?t.name:t))?i:e.hooks.helperMissing)?i.call(null!=t?t:e.nullContext||{},{name:"name",hash:{},data:r}):i)+'\r\n</h1>\r\n<div class="options-region"></div>'},useData:!0})},58266:function(e,t,n){var o=n(32227);e.exports=(o.default||o).template({compiler:[8,">= 4.3.0"],main:function(e,t,n,o,r){return'<div class="items-region"></div>'},useData:!0})},53370:function(e,t,n){var o=n(32227);e.exports=(o.default||o).template({compiler:[8,">= 4.3.0"],main:function(e,t,n,o,r){var i;return e.propertyIsEnumerable,'<button class="dropdown-toggle form-control text-left cursor-pointer" type="button" id="sortSelectButton" data-toggle="dropdown" aria-haspopup="true" aria-expanded="false">\r\n '+e.escapeExpression("function"==typeof(i=null!=(i=n.name||(null!=t?t.name:t))?i:e.hooks.helperMissing)?i.call(null!=t?t:e.nullContext||{},{name:"name",hash:{},data:r}):i)+'\r\n</button>\r\n<div class="dropdown-menu-region"></div>'},useData:!0})},77944:function(e,t,n){var o=n(32227);e.exports=(o.default||o).template({compiler:[8,">= 4.3.0"],main:function(e,t,n,o,r){e.propertyIsEnumerable;var i,c,a=e.lambda,l=e.escapeExpression,s=null!=t?t:e.nullContext||{},u=e.hooks.helperMissing,f="function";return'<div class="rounded p-2 text-dark position-relative ui-block '+l(a(null!=(i=null!=(i=null!=t?t.options:t)?i.styles:i)?i.folderBlock:i,t))+'">\r\n <a class="text-dark text-truncate d-block pr-4 font-weight-bold '+l(a(null!=(i=null!=(i=null!=t?t.options:t)?i.styles:i)?i.folder:i,t))+'" title="'+l(typeof(c=null!=(c=n.name||(null!=t?t.name:t))?c:u)===f?c.call(s,{name:"name",hash:{},data:r}):c)+'">\r\n <span class="'+l(a(null!=(i=null!=(i=null!=t?t.options:t)?i.styles:i)?i.folderIcon:i,t))+' d-inline-block position-absolute">\r\n '+(null!=(i=a(null!=(i=null!=t?t.options:t)?i.svg:i,t))?i:"")+"\r\n </span>\r\n "+l(typeof(c=null!=(c=n.name||(null!=t?t.name:t))?c:u)===f?c.call(s,{name:"name",hash:{},data:r}):c)+'\r\n </a>\r\n <span class="actions-region"></div>\r\n</div>\r\n'},useData:!0})},73368:function(e,t,n){var o=n(32227);e.exports=(o.default||o).template({compiler:[8,">= 4.3.0"],main:function(e,t,n,o,r){return'<div class="subfolders-region"></div>'},useData:!0})},26704:function(e,t,n){var o=n(32227);e.exports=(o.default||o).template({1:function(e,t,n,o,r){e.propertyIsEnumerable;var i,c=e.lambda;return'<span data-toggle="dropdown" aria-haspopup="true" aria-expanded="false" class="'+e.escapeExpression(c(null!=(i=null!=t?t.options:t)?i.dropdownClass:i,t))+' d-inline-block ui-dropdown-toggle">\r\n '+(null!=(i=c(null!=(i=null!=t?t.options:t)?i.svg:i,t))?i:"")+'\r\n</span>\r\n<div class="items-region"></div>\r\n'},compiler:[8,">= 4.3.0"],main:function(e,t,n,o,r){var i;return e.propertyIsEnumerable,null!=(i=n.if.call(null!=t?t:e.nullContext||{},null!=(i=null!=t?t.options:t)?i.hasActions:i,{name:"if",hash:{},fn:e.program(1,r,0),inverse:e.noop,data:r}))?i:""},useData:!0})},8420:function(e,t,n){var o=n(32227);e.exports=(o.default||o).template({1:function(e,t,n,o,r){return"pl-2"},compiler:[8,">= 4.3.0"],main:function(e,t,n,o,r){var i;return e.propertyIsEnumerable,'<div class="d-inline-flex justify-content-start">\r\n <div class="check-all-region d-inline-flex align-items-center"></div>\r\n <div class="bulk-actions-region"></div>\r\n <div class="breadcrumbs-region d-inline-flex align-items-center '+(null!=(i=n.if.call(null!=t?t:e.nullContext||{},null!=(i=null!=t?t.options:t)?i.showBulkActions:i,{name:"if",hash:{},fn:e.program(1,r,0),inverse:e.noop,data:r}))?i:"")+'"></div>\r\n</div>\r\n<div class="sorting-region"></div>\r\n'},useData:!0})},93089:function(e,t,n){var o=n(32227);e.exports=(o.default||o).template({compiler:[8,">= 4.3.0"],main:function(e,t,n,o,r){return'<div class="banner-region"></div>\r\n<div class="child-folders-region"></div>\r\n<div class="header-region"></div>\r\n<div class="video-list-region"></div>\r\n<div class="pagination-region"></div>'},useData:!0})},86363:function(e,t,n){var o=n(32227);e.exports=(o.default||o).template({1:function(e,t,n,o,r){var i;return e.propertyIsEnumerable,e.escapeExpression("function"==typeof(i=null!=(i=n.name||(null!=t?t.name:t))?i:e.hooks.helperMissing)?i.call(null!=t?t:e.nullContext||{},{name:"name",hash:{},data:r}):i)+"\r\n"},3:function(e,t,n,o,r){var i;return e.propertyIsEnumerable,'<a class="info-link">'+e.escapeExpression("function"==typeof(i=null!=(i=n.name||(null!=t?t.name:t))?i:e.hooks.helperMissing)?i.call(null!=t?t:e.nullContext||{},{name:"name",hash:{},data:r}):i)+"</a>\r\n"},compiler:[8,">= 4.3.0"],main:function(e,t,n,o,r){var i;return e.propertyIsEnumerable,null!=(i=n.if.call(null!=t?t:e.nullContext||{},null!=(i=null!=t?t.options:t)?i.isActive:i,{name:"if",hash:{},fn:e.program(1,r,0),inverse:e.program(3,r,0),data:r}))?i:""},useData:!0})},93933:function(e,t,n){var o=n(32227);e.exports=(o.default||o).template({compiler:[8,">= 4.3.0"],main:function(e,t,n,o,r){return'<nav class="breadcrumbs-region" aria-label="breadcrumb"></nav>'},useData:!0})},34670:function(e,t,n){var o=n(32227);e.exports=(o.default||o).template({compiler:[8,">= 4.3.0"],main:function(e,t,n,o,r){return e.propertyIsEnumerable,'<button class="dropdown-toggle btn btn-light" type="button" id="bulkActions" data-toggle="dropdown" aria-haspopup="true" aria-expanded="false">\r\n '+e.escapeExpression((n.lang||t&&t.lang||e.hooks.helperMissing).call(null!=t?t:e.nullContext||{},"options",{name:"lang",hash:{},data:r}))+'\r\n</button>\r\n<div class="dropdown-menu-region"></div>'},useData:!0})}}]);
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
(self.webpackChunk_clickview_library_editor=self.webpackChunk_clickview_library_editor||[]).push([[4591],{87120:function(e,t,n){"use strict";n.d(t,{Y:function(){return o}});var r=n(57857),i="libraryEditor.utils",o={name:[{required:!0,msg:function(){return r.T.getPhrase(i,"libraryNameRequired")}},{maxLength:255,msg:function(){return r.T.getPhrase(i,"libraryNameExceeds")}}]}},4591:function(e,t,n){"use strict";n.r(t),n.d(t,{RenameLibraryView:function(){return O}});var r=n(48088),i=n(31647),o=n(21679),a=n(99249),l=n(57857),u=n(52076),c=n(10101),s=n(24539),f=n(88172),y=n(23807),b=n(61843),h=n(87120),p=n(34690),m=n.n(p);function d(e){return d="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},d(e)}function v(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}function g(e,t){return g=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(e,t){return e.__proto__=t,e},g(e,t)}function k(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)}function w(e){return w=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(e){return e.__proto__||Object.getPrototypeOf(e)},w(e)}var O=function(e){!function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),Object.defineProperty(e,"prototype",{writable:!1}),t&&g(e,t)}(O,e);var t,n,i,p,d=(i=O,p=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(e){return!1}}(),function(){var e,t=w(i);if(p){var n=w(this).constructor;e=Reflect.construct(t,arguments,n)}else e=t.apply(this,arguments);return k(this,e)});function O(e){return function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,O),d.call(this,e)}return t=O,(n=[{key:"initialize",value:function(){this.bindListeners(),this.libraryDataService=o.u.getInstance(y.Or.Library,this)}},{key:"bindListeners",value:function(){this.listenTo(y.Vk.LIBRARY,"libraries:sync",this.render)}},{key:"name",get:function(){return"RenameLibraryView"}},{key:"lang",get:function(){return"libraryEditor.renameLibrary"}},{key:"title",get:function(){return l.T.getPhrase(this.lang,"title")}},{key:"template",get:function(){return m()}},{key:"channelName",get:function(){return b.N0.generateUniqueChannelName(this)}},{key:"behaviors",get:function(){var e=this;return[{behaviorClass:c.fS,modelValidation:h.Y},{behaviorClass:c.Bp},{behaviorClass:c.Yw,title:l.T.getPhrase(this.lang,"edit"),spinnerButtonOptions:{channelName:this.channelName,buttonText:l.T.getPhrase(this.lang,"save"),onClick:function(t){return e.onSubmit(t)}}}]}},{key:"bindings",get:function(){return{"[name=name]":{observe:"name",setOptions:{validate:!0}}}}},{key:"events",value:function(){return{submit:"onSubmit"}}},{key:"onSubmit",value:function(e){e&&e.preventDefault(),this.model.validate(),this.model.isValid()&&(r.Radio.channel(this.channelName).trigger(f.I3.ShowSpinner),this.saveLibrary(),this.logAction())}},{key:"logAction",value:function(){var e={id:this.options.libraryId,name:this.model.get("name")};u.k.logUserAction(e,this.options.analyticsOptions)}},{key:"saveLibrary",value:function(){var e=this;this.libraryDataService.updateLibrary(this.model,(function(){e.triggerMethod("hide")}))}},{key:"onBeforeRender",value:function(){var e=this;return this.libraryDataService.getFolderFromLibraries(this.options.libraryId,(function(t){e.model||(e.model=a.r.get("library:".concat(e.options.libraryId),t.toJSON(),{ctor:s.Z}))})),!!this.model}}])&&v(t.prototype,n),Object.defineProperty(t,"prototype",{writable:!1}),O}(i.Q.View)},34690:function(e,t,n){var r=n(32227);e.exports=(r.default||r).template({compiler:[8,">= 4.3.0"],main:function(e,t,n,r,i){e.propertyIsEnumerable;var o=null!=t?t:e.nullContext||{},a=e.hooks.helperMissing,l=e.escapeExpression;return'<form>\r\n <div class="form-group">\r\n <label for="name" class="control-label">'+l((n.lang||t&&t.lang||a).call(o,"libraryName",{name:"lang",hash:{},data:i}))+'</label>\r\n <input name="name" id="name" type="text" class="form-control" placeholder="'+l((n.lang||t&&t.lang||a).call(o,"secondaryLibrary",{name:"lang",hash:{},data:i}))+'" autocomplete="off" autofocus/>\r\n <div class="form-feedback"></div>\r\n </div>\r\n</form>'},useData:!0})}}]);
|