@clickview/library-editor 1.16.1-dev.0 → 1.16.1-rc.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/bundles.json +2 -2
- package/dist/css/{2227-library-editor-0d09b13673.chunk.css → 2227-library-editor-9bc11aebb1.chunk.css} +1 -1
- package/dist/css/{969-library-editor-c6e04e5107.chunk.css → 4274-library-editor-2e7ad56bc8.chunk.css} +9 -1
- package/dist/css/{58-library-editor-6b4606a972.chunk.css → 6833-library-editor-cf78223244.chunk.css} +10 -1
- package/dist/css/{library-editor-app-0f73fdab81.css → library-editor-app-bb91d6169b.css} +1 -1
- package/dist/languages/en.json +1 -1
- package/dist/scripts/101-882794aeb8.chunk.js +1 -0
- package/dist/scripts/1010-deb50c7ea4.chunk.js +1 -0
- package/dist/scripts/1086-c589e7a188.chunk.js +1 -0
- package/dist/scripts/1203-81d0661e18.chunk.js +1 -0
- package/dist/scripts/1216-7f24ede8e0.chunk.js +1 -0
- package/dist/scripts/1269-0663125949.chunk.js +1 -0
- package/dist/scripts/1364-3cdf7e5e62.chunk.js +1 -0
- package/dist/scripts/1409-061e3f9029.chunk.js +1 -0
- package/dist/scripts/1492-e352aa8d88.chunk.js +1 -0
- package/dist/scripts/1601-1ef0e562fc.chunk.js +2 -0
- package/dist/scripts/1671-f88be3329a.chunk.js +1 -0
- package/dist/scripts/1832-4939bef81a.chunk.js +1 -0
- package/dist/scripts/1887-10d9bb03cb.chunk.js +1 -0
- package/dist/scripts/1911-23568f6138.chunk.js +1 -0
- package/dist/scripts/2227-af3bb5232c.chunk.js +2 -0
- package/dist/scripts/243-7bb390ea4d.chunk.js +1 -0
- package/dist/scripts/259-fdac3828c2.chunk.js +1 -0
- package/dist/scripts/2692-a74b07a169.chunk.js +1 -0
- package/dist/scripts/{2802-2218d4b4bb.chunk.js → 2802-af98ef08cd.chunk.js} +1 -1
- package/dist/scripts/2803-29511f028a.chunk.js +1 -0
- package/dist/scripts/2888-eec152c5f5.chunk.js +1 -0
- package/dist/scripts/299-e581e06f46.chunk.js +1 -0
- package/dist/scripts/3096-3b816591ce.chunk.js +1 -0
- package/dist/scripts/3400-d4b59083ef.chunk.js +1 -0
- package/dist/scripts/3639-63ad27fb38.chunk.js +1 -0
- package/dist/scripts/3746-1f13b0764f.chunk.js +1 -0
- package/dist/scripts/3763-f486c7b891.chunk.js +1 -0
- package/dist/scripts/4000-9ac17853ea.chunk.js +1 -0
- package/dist/scripts/4177-d135a23ab6.chunk.js +1 -0
- package/dist/scripts/4201-84129dfc88.chunk.js +1 -0
- package/dist/scripts/4245-a95daa8056.chunk.js +1 -0
- package/dist/scripts/4274-3eb2257694.chunk.js +1 -0
- package/dist/scripts/4591-706f7173dd.chunk.js +1 -0
- package/dist/scripts/4830-a10093b5d2.chunk.js +1 -0
- package/dist/scripts/4860-f9a7be96c8.chunk.js +1 -0
- package/dist/scripts/4885-7c1d78dd3d.chunk.js +1 -0
- package/dist/scripts/4993-1e2baa25b7.chunk.js +1 -0
- package/dist/scripts/514-520d9e5687.chunk.js +1 -0
- package/dist/scripts/{5173-088a10449c.chunk.js → 5173-02a0713c0b.chunk.js} +1 -1
- package/dist/scripts/5235-d8a1857ab9.chunk.js +1 -0
- package/dist/scripts/5412-3b77eef79d.chunk.js +1 -0
- package/dist/scripts/5418-8318e5971b.chunk.js +1 -0
- package/dist/scripts/5424-164897f2cf.chunk.js +1 -0
- package/dist/scripts/546-7f77850497.chunk.js +1 -0
- package/dist/scripts/5747-c7570a4dee.chunk.js +1 -0
- package/dist/scripts/{5891-12bda30b4c.chunk.js → 5891-784e65ff2e.chunk.js} +1 -1
- package/dist/scripts/6093-e000b9f0a3.chunk.js +1 -0
- package/dist/scripts/6220-3273db4569.chunk.js +1 -0
- package/dist/scripts/6357-d37e948f5e.chunk.js +1 -0
- package/dist/scripts/6505-8ae1da1dfa.chunk.js +1 -0
- package/dist/scripts/6732-73f12b3316.chunk.js +1 -0
- package/dist/scripts/6756-73653a9e01.chunk.js +1 -0
- package/dist/scripts/6774-3b27ee5b7d.chunk.js +1 -0
- package/dist/scripts/6788-d25db35e6c.chunk.js +1 -0
- package/dist/scripts/6833-36be90324c.chunk.js +1 -0
- package/dist/scripts/{6963-473a09e985.chunk.js → 6963-222d163a4b.chunk.js} +1 -1
- package/dist/scripts/6995-6be8d799d2.chunk.js +1 -0
- package/dist/scripts/6999-9284afd732.chunk.js +1 -0
- package/dist/scripts/7002-baa9e9e285.chunk.js +1 -0
- package/dist/scripts/7053-cce5055ceb.chunk.js +1 -0
- package/dist/scripts/708-44fa959bcc.chunk.js +1 -0
- package/dist/scripts/{7190-3632c1b97b.chunk.js → 7190-aa3f4b4ba1.chunk.js} +1 -1
- package/dist/scripts/7376-e3e7d54126.chunk.js +1 -0
- package/dist/scripts/755-03d4567c99.chunk.js +1 -0
- package/dist/scripts/7634-bcbee3cbfc.chunk.js +1 -0
- package/dist/scripts/8362-ccb5f61d03.chunk.js +1 -0
- package/dist/scripts/8727-86d52bc39b.chunk.js +1 -0
- package/dist/scripts/8762-ab438942a2.chunk.js +1 -0
- package/dist/scripts/8906-e6be28b199.chunk.js +1 -0
- package/dist/scripts/8947-50189acd36.chunk.js +1 -0
- package/dist/scripts/9357-cac07c3362.chunk.js +1 -0
- package/dist/scripts/{9379-12465b685a.chunk.js → 9379-dc10121a03.chunk.js} +1 -1
- package/dist/scripts/9695-b789b2a9be.chunk.js +1 -0
- package/dist/scripts/9927-773e307959.chunk.js +1 -0
- package/dist/scripts/9976-aa31d18e61.chunk.js +1 -0
- package/dist/scripts/bundle-eb490e61aa.min.js +2 -0
- package/package.json +2 -2
- package/dist/scripts/101-d96e2f6c30.chunk.js +0 -1
- package/dist/scripts/1010-9322c39308.chunk.js +0 -1
- package/dist/scripts/1086-65173e4f6f.chunk.js +0 -1
- package/dist/scripts/1203-50f5844bcc.chunk.js +0 -1
- package/dist/scripts/1216-7a9f411abd.chunk.js +0 -1
- package/dist/scripts/1269-391b95a348.chunk.js +0 -1
- package/dist/scripts/1364-2540e700a9.chunk.js +0 -1
- package/dist/scripts/1409-9ca416a3a6.chunk.js +0 -1
- package/dist/scripts/1601-4fee3d2336.chunk.js +0 -2
- package/dist/scripts/1832-84b066cd22.chunk.js +0 -1
- package/dist/scripts/1887-59656a5c74.chunk.js +0 -1
- package/dist/scripts/1911-fb86f6cf48.chunk.js +0 -1
- package/dist/scripts/2227-fa9bef889f.chunk.js +0 -2
- package/dist/scripts/243-6b31d75a3e.chunk.js +0 -1
- package/dist/scripts/259-14636ed69c.chunk.js +0 -1
- package/dist/scripts/2692-2bd19c2b39.chunk.js +0 -1
- package/dist/scripts/2803-c102b0ab98.chunk.js +0 -1
- package/dist/scripts/2888-7a0e8d2574.chunk.js +0 -1
- package/dist/scripts/299-529b3d1c71.chunk.js +0 -1
- package/dist/scripts/3096-3ca8e8973f.chunk.js +0 -1
- package/dist/scripts/3400-181a33c06f.chunk.js +0 -1
- package/dist/scripts/3639-69c8ac5224.chunk.js +0 -1
- package/dist/scripts/3746-5e91d1f43b.chunk.js +0 -1
- package/dist/scripts/3763-99ac8ff777.chunk.js +0 -1
- package/dist/scripts/4000-a623369bef.chunk.js +0 -1
- package/dist/scripts/4177-719ae5d83e.chunk.js +0 -1
- package/dist/scripts/4201-8af865508e.chunk.js +0 -1
- package/dist/scripts/4245-1eba9c3cf2.chunk.js +0 -1
- package/dist/scripts/4353-ec529c5ba1.chunk.js +0 -1
- package/dist/scripts/4591-c6ba353e39.chunk.js +0 -1
- package/dist/scripts/4830-e87392f843.chunk.js +0 -1
- package/dist/scripts/4860-3da347c5a2.chunk.js +0 -1
- package/dist/scripts/4885-cc2e3d4f81.chunk.js +0 -1
- package/dist/scripts/514-bea172c18c.chunk.js +0 -1
- package/dist/scripts/5235-b6c96f2729.chunk.js +0 -1
- package/dist/scripts/5412-273d33a674.chunk.js +0 -1
- package/dist/scripts/5418-32716c915a.chunk.js +0 -1
- package/dist/scripts/5424-208acbb259.chunk.js +0 -1
- package/dist/scripts/546-a82365178d.chunk.js +0 -1
- package/dist/scripts/5747-fea829f6ed.chunk.js +0 -1
- package/dist/scripts/58-69552d3a8a.chunk.js +0 -1
- package/dist/scripts/6093-8b76178c29.chunk.js +0 -1
- package/dist/scripts/6220-36949a4ae4.chunk.js +0 -1
- package/dist/scripts/6732-fdb443a7b2.chunk.js +0 -1
- package/dist/scripts/6774-1322f42232.chunk.js +0 -1
- package/dist/scripts/6788-3450bef42f.chunk.js +0 -1
- package/dist/scripts/6995-5aa2da66d8.chunk.js +0 -1
- package/dist/scripts/6999-deb99c2bc6.chunk.js +0 -1
- package/dist/scripts/7002-cc2ef03644.chunk.js +0 -1
- package/dist/scripts/7053-f60b518071.chunk.js +0 -1
- package/dist/scripts/708-a654139b29.chunk.js +0 -1
- package/dist/scripts/7136-63abefe108.chunk.js +0 -1
- package/dist/scripts/7295-78d818c45e.chunk.js +0 -1
- package/dist/scripts/7376-0cb303b67a.chunk.js +0 -1
- package/dist/scripts/7634-0af03f5b05.chunk.js +0 -1
- package/dist/scripts/8362-3956de64fc.chunk.js +0 -1
- package/dist/scripts/8727-f4069ff97d.chunk.js +0 -1
- package/dist/scripts/8762-d2131ead72.chunk.js +0 -1
- package/dist/scripts/8906-6ebd80b566.chunk.js +0 -1
- package/dist/scripts/8947-fdf495502b.chunk.js +0 -1
- package/dist/scripts/9040-5117f20224.chunk.js +0 -1
- package/dist/scripts/9268-6b2b1cd07c.chunk.js +0 -1
- package/dist/scripts/9357-985ceb4f17.chunk.js +0 -1
- package/dist/scripts/9383-65c422d821.chunk.js +0 -1
- package/dist/scripts/969-85e83a6a9b.chunk.js +0 -1
- package/dist/scripts/9695-6ad5f06aef.chunk.js +0 -1
- package/dist/scripts/9927-998d2ca69d.chunk.js +0 -1
- package/dist/scripts/9976-0072a2700d.chunk.js +0 -1
- package/dist/scripts/bundle-b610b4e8f2.min.js +0 -2
- /package/dist/css/{7295-library-editor-cdf829452c.chunk.css → 1492-library-editor-cdf829452c.chunk.css} +0 -0
- /package/dist/css/{7136-library-editor-bd1f6e2ee3.chunk.css → 1671-library-editor-bd1f6e2ee3.chunk.css} +0 -0
- /package/dist/css/{9383-library-editor-c6a9216107.chunk.css → 6505-library-editor-c6a9216107.chunk.css} +0 -0
- /package/dist/css/{4353-library-editor-7a8f34cf74.chunk.css → 6756-library-editor-7a8f34cf74.chunk.css} +0 -0
- /package/dist/scripts/{1601-4fee3d2336.chunk.js.LICENSE.txt → 1601-1ef0e562fc.chunk.js.LICENSE.txt} +0 -0
- /package/dist/scripts/{2227-fa9bef889f.chunk.js.LICENSE.txt → 2227-af3bb5232c.chunk.js.LICENSE.txt} +0 -0
- /package/dist/scripts/{2802-2218d4b4bb.chunk.js.LICENSE.txt → 2802-af98ef08cd.chunk.js.LICENSE.txt} +0 -0
- /package/dist/scripts/{3969-a22b097163.chunk.js → 3969-2a1261acad.chunk.js} +0 -0
- /package/dist/scripts/{8495-c2a8d27ffa.chunk.js → 8495-80e0f9737d.chunk.js} +0 -0
- /package/dist/scripts/{9770-f16965ec13.chunk.js → 9770-d498ca5470.chunk.js} +0 -0
- /package/dist/scripts/{bundle-b610b4e8f2.min.js.LICENSE.txt → bundle-eb490e61aa.min.js.LICENSE.txt} +0 -0
|
@@ -1 +0,0 @@
|
|
|
1
|
-
(self.webpackChunk_clickview_library_editor=self.webpackChunk_clickview_library_editor||[]).push([[243],{24828:function(e,t,n){"use strict";n.d(t,{o:function(){return o}});var o=["bg-pink","bg-orange"].concat(["bg-green","bg-cyan","bg-teal","bg-blue","bg-indigo","bg-purple"])},22231:function(e,t,n){"use strict";function o(e,t){return t[e.charCodeAt(0)%t.length]}n.d(t,{x:function(){return o}})},50243:function(e,t,n){"use strict";n.r(t),n.d(t,{EditFolderImagesView:function(){return q}});var o=n(39479),r=n(48088),i=n(31647),a=n(21679),l=n(99249),u=n(70065),c=n(52076),s=n(10101),p=n(18375),f=n(67670),h=n(61843),d=n(48090),m=n(29457),y=n(58025),g=n(88172),b=n(48404),v=n(57857),w=n(86983),I=n.n(w),k={removeImage:"daDCA",imageElement:"U_0tb",banner:"J28Xw",thumbnail:"OoZ6O",imageContainer:"RWdbM"},C=n(22231),T=n(24828);function _(e){return _="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},_(e)}function O(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 R(e,t){if(t&&("object"===_(t)||"function"==typeof t))return t;if(void 0!==t)throw new TypeError("Derived constructors may only return object or undefined");return function(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}(e)}function B(e){return B=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(e){return e.__proto__||Object.getPrototypeOf(e)},B(e)}var j=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)}(c,e);var t,n,o,a,u=(o=c,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=B(o);if(a){var n=B(this).constructor;e=Reflect.construct(t,arguments,n)}else e=t.apply(this,arguments);return R(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),u.call(this,e)}return t=c,(n=[{key:"initialize",value:function(){this.viewModel=l.r.get("edit:folder:images")}},{key:"name",get:function(){return"EditImageComponent"}},{key:"template",get:function(){return I()}},{key:"lang",get:function(){return"libraryEditor.editImage"}},{key:"className",get:function(){return this.options.imageType===m.__.Thumbnails?"".concat(k.thumbnail," mb-2"):"".concat(k.banner," mt-2")}},{key:"events",value:function(){return e={},n="onClickRemoveImage",(t="click .".concat(k.removeImage))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e;var e,t,n}},{key:"behaviors",get:function(){var e=this;return[{behaviorClass:s.YR,channelName:this.options.channelName,buttonSelector:".btn-outline-dark",imageType:this.options.imageType,saveImage:function(t,n){n?(e.viewModel.set({dataUrl:t,type:e.options.imageType}),i.Q.AppLinkHelper.trigger({application:d.OV.LIBRARY_EDITOR,action:d.eX.LibraryEditor.EDIT_FOLDER_IMAGES,args:[e.options.folderId]})):r.Radio.channel(e.options.channelName).trigger("select:image",t,e.options.imageType)}}]}},{key:"onClickRemoveImage",value:function(){r.Radio.channel(this.options.channelName).trigger("show:dialog",this.options.imageType)}},{key:"getImageUrl",value:function(){var e=this.options.imageType===m.__.Banners?"createBannerUrl":"createFolderThumbnailUrl";return h.jw[e](this.options.originalImage)}},{key:"getImageTypeText",value:function(){switch(this.options.imageType){case m.__.Banners:return v.T.getPhrase(this.lang,"banner");case m.__.Thumbnails:return v.T.getPhrase(this.lang,"thumbnail")}}},{key:"viewOptions",value:function(){return{styles:k,imageUrl:this.getImageUrl(),backgroundColor:(0,C.x)(this.options.folderName,T.o),hasImage:this.options.originalImage&&this.options.originalImage.get("id"),imageTypeText:this.getImageTypeText(),dimensions:d.yE[this.options.imageType],recommendedDimensions:d.nq[this.options.imageType]}}}])&&O(t.prototype,n),Object.defineProperty(t,"prototype",{writable:!1}),c}(i.Q.Component),S=n(80322),P=n.n(S);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 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 D(e,t){return D=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(e,t){return e.__proto__=t,e},D(e,t)}function M(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 N(e){return N=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(e){return e.__proto__||Object.getPrototypeOf(e)},N(e)}var V,A=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&&D(e,t)}(a,e);var t,n,o,r,i=(o=a,r=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(e){return!1}}(),function(){var e,t=N(o);if(r){var n=N(this).constructor;e=Reflect.construct(t,arguments,n)}else e=t.apply(this,arguments);return M(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),i.call(this,e)}return t=a,(n=[{key:"name",get:function(){return"EditImagesWrapperComponent"}},{key:"template",get:function(){return P()}},{key:"regions",value:function(){return{banner:{el:".banner-region",replaceElement:!0},thumbnail:{el:".thumbnail-region",replaceElement:!0}}}},{key:"renderBanner",value:function(){this.showChildView("banner",new j({channelName:this.options.bannerChannel,imageCdnUrl:this.options.imageCdnUrl,imageType:m.__.Banners,folderName:this.options.folderName,originalImage:this.options.bannerImage,folderId:this.options.folderId}))}},{key:"renderThumbnail",value:function(){this.showChildView("thumbnail",new j({channelName:this.options.thumbnailChannel,imageCdnUrl:this.options.imageCdnUrl,imageType:m.__.Thumbnails,folderName:this.options.folderName,originalImage:this.options.thumbnailImage,folderId:this.options.folderId}))}},{key:"onRender",value:function(){this.renderBanner(),this.renderThumbnail()}}])&&U(t.prototype,n),Object.defineProperty(t,"prototype",{writable:!1}),a}(i.Q.Component),L="EOVMO",W=n(42687),F=n.n(W);function H(e){return H="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},H(e)}function Z(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 z(e,t){if(t&&("object"===H(t)||"function"==typeof t))return t;if(void 0!==t)throw new TypeError("Derived constructors may only return object or undefined");return function(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}(e)}function Q(e){return Q=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(e){return e.__proto__||Object.getPrototypeOf(e)},Q(e)}!function(e){e[e.Upload=0]="Upload",e[e.Crop=1]="Crop"}(V||(V={}));var q=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)}(k,e);var t,n,v,w,I=(v=k,w=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=Q(v);if(w){var n=Q(this).constructor;e=Reflect.construct(t,arguments,n)}else e=t.apply(this,arguments);return z(this,e)});function k(e){return function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,k),I.call(this,e)}return t=k,(n=[{key:"initialize",value:function(){this.popupContentState=V.Upload,this.viewModel=l.r.get("edit:folder:images"),this.viewModel.get("dataUrl")&&(this.selectedImageType=this.viewModel.get("type"),this.newImageEl=new Image,this.newImageEl.src=this.viewModel.get("dataUrl"),this.spinnerModel.set(g.ZV.Disabled,!1),this.popupContentState=V.Crop),this.libraryDataService=a.u.getInstance(d.Or.Library,this),this.imageUploadDataService=a.u.getInstance(d.Or.ImageUpload,this),this.bindListeners()}},{key:"name",get:function(){return"EditFolderImagesView"}},{key:"title",get:function(){return"Edit Folder Images"}},{key:"template",get:function(){return F()}},{key:"channelName",get:function(){return h.N0.generateUniqueChannelName(this)}},{key:"regions",value:function(){return{content:{el:".content-region",replaceElement:!0}}}},{key:"events",value:function(){return{"click .back-btn":"onClickBackButton","shown.bs.modal":"renderCropper"}}},{key:"elements",get:function(){return{backBtn:".back-btn",cancelBtn:".cancel-btn"}}},{key:"behaviors",get:function(){return[{title:"Edit folder images",behaviorClass:s.Yw,size:"modal-lg",buttons:[{text:"Back",className:"btn btn-outline-dark back-btn ".concat(L)}],spinnerButtonOptions:{model:this.spinnerModel=new f.v((e={},t=g.ZV.Hidden,!0,t in e?Object.defineProperty(e,t,{value:true,enumerable:!0,configurable:!0,writable:!0}):e[t]=true,e)),channelName:this.channelName,buttonText:"Continue",onClick:this.onClickCrop,extraButtonClass:"btn-dark"},cancelButtonOptions:{className:"btn btn-dark cancel-btn",text:"Close"}}];var e,t}},{key:"requiredResources",get:function(){return{config:b.p.config}}},{key:"bindListeners",value:function(){var e=this;this.listenTo(d.Vk.LIBRARY,"".concat(d.M_.FOLDER,":").concat(this.options.folderId,":sync"),this.render);var t="".concat(this.channelName,":").concat(m.__.Banners),n="".concat(this.channelName,":").concat(m.__.Thumbnails);this.listenTo(t,"select:image",(function(t){return e.onSelectImage(t,m.__.Banners)})),this.listenTo(n,"select:image",(function(t){return e.onSelectImage(t,m.__.Thumbnails)})),this.listenTo(t,"show:dialog",(function(){return e.onShowDialog(m.__.Banners)})),this.listenTo(n,"show:dialog",(function(){return e.onShowDialog(m.__.Thumbnails)})),this.listenTo(t,"image:error",(function(){return e.triggerMethod("hide")})),this.listenTo(n,"image:error",(function(){return e.triggerMethod("hide")})),this.listenTo(this.channelName,y.Y.ImageCropped,this.onImageCropped)}},{key:"onClickBackButton",value:function(){this.popupContentState!==V.Upload&&(this.popupContentState=V.Upload,this.selectedImageType=null,this.newImageEl=null,this.spinnerModel.set(g.ZV.Disabled,!0),this.renderContent())}},{key:"onClickCrop",value:function(){r.Radio.channel(this.channelName).trigger(y.Y.CropImage).trigger(g.I3.ShowSpinner)}},{key:"onSelectImage",value:function(e,t){this.selectedImageType=t,this.newImageEl=new Image,this.newImageEl.src=e,this.popupContentState=V.Crop,this.spinnerModel.set(g.ZV.Disabled,!1),this.renderCropper()}},{key:"onImageCropped",value:function(e){var t=this;this.imageUploadDataService.uploadBase64Image(e,this.selectedImageType,(function(e){return t.onImageUploaded(e)}))}},{key:"onImageUploaded",value:function(e){var t=this,n={libraryId:this.libraryId,folderId:this.options.folderId,currentImageId:this.getCurrentImageId(),imageModel:e},o=this.selectedImageType===m.__.Banners?u.EntityType.Banner:u.EntityType.Thumbnail,r=this.selectedImageType===m.__.Banners?"addOrUpdateBanner":"addOrUpdateThumbnail";this.libraryDataService[r](n,(function(e){c.k.logUserAction({libraryId:t.libraryId,folderId:t.options.folderId,id:e.get("id")},{actionType:u.UserAction.Upload,entity:o,workflowPhase:u.WorkflowPhase.Complete,location:u.LocationContext.Popup}),t.onFinish()}))}},{key:"onShowDialog",value:function(e){var t=this,n=new h.Mr({title:"Remove image?",text:"Are you sure you want to remove this image?",buttons:[{text:"Remove",className:"btn btn-danger",success:!0},{text:"Cancel",className:"btn btn-link",close:!0}],channelName:this.options.channelName});setTimeout((function(){return n.render().done((function(){return t.removeImage(e)}))}),200),this.triggerMethod("hide")}},{key:"removeImage",value:function(e){var t=this,n=e===m.__.Banners?"deleteBanner":"deleteThumbnail",o=e===m.__.Banners?this.currentBanner:this.currentThumbnail,r={libraryId:this.libraryId,folderId:this.model.get("id"),imageId:o.get("id")},i=e===m.__.Banners?u.EntityType.Banner:u.EntityType.Thumbnail;this.libraryDataService[n](r,(function(){c.k.logUserAction({libraryId:t.libraryId,folderId:t.model.get("id"),id:o.get("id")},{actionType:u.UserAction.Delete,entity:i,workflowPhase:u.WorkflowPhase.Complete,location:u.LocationContext.Popup}),e===m.__.Banners&&(t.currentBanner=null),e===m.__.Thumbnails&&(t.currentThumbnail=null),t.onFinish()}))}},{key:"onFinish",value:function(){this.viewModel.clear(),i.Q.AppLinkHelper.trigger({application:d.OV.LIBRARY_EDITOR,action:d.eX.LibraryEditor.EDIT_FOLDER_IMAGES,args:[this.options.folderId]})}},{key:"getCurrentImageId",value:function(){return this.selectedImageType===m.__.Banners&&this.currentBanner?this.currentBanner.get("id"):this.selectedImageType===m.__.Thumbnails&&this.currentThumbnail?this.currentThumbnail.get("id"):void 0}},{key:"getCropRegionWidth",value:function(){return this.$el.find(".modal-body").width()}},{key:"getImageModel",value:function(){return new p.E({dataUrl:this.newImageEl.src,width:this.newImageEl.width,height:this.newImageEl.height})}},{key:"renderContent",value:function(){this.popupContentState===V.Upload&&(this.getUI("backBtn").addClass(L),this.getUI("cancelBtn").removeClass(L),r.Radio.channel(this.channelName).trigger(g.I3.HideButton),this.showChildView("content",new A({imageCdnUrl:this.config.get("imageCdnUrl"),folderName:this.model.get("name"),bannerImage:this.currentBanner,thumbnailImage:this.currentThumbnail,bannerChannel:"".concat(this.channelName,":").concat(m.__.Banners),thumbnailChannel:"".concat(this.channelName,":").concat(m.__.Thumbnails),folderId:this.options.folderId})))}},{key:"renderCropper",value:function(){this.popupContentState===V.Crop&&(this.getUI("backBtn").removeClass(L),this.getUI("cancelBtn").addClass(L),r.Radio.channel(this.channelName).trigger(g.I3.ShowButton),this.showChildView("content",new y.a({model:this.getImageModel(),channelName:this.channelName,imageType:this.selectedImageType,minWidth:d.yE[this.selectedImageType].width,minHeight:d.yE[this.selectedImageType].height,getCropRegionWidth:o.bind(this.getCropRegionWidth,this)})))}},{key:"viewOptions",value:function(){return{dataFetched:!!this.model&&!!this.libraryId,spinnerEl:h.Kp.getSpinner({size:h.Ey.Large,extraClasses:"mx-auto"})}}},{key:"onBeforeRender",value:function(){var e=this;this.model&&this.libraryId||(this.model=this.libraryDataService.getFolder(this.options.folderId),this.libraryDataService.getLibraries((function(t){return e.libraryId=t.first().id})))}},{key:"onRender",value:function(){this.model&&this.libraryId&&(this.currentBanner=this.model.get("banner"),this.currentThumbnail=this.model.get("thumbnail"),this.renderContent())}},{key:"onBeforeDestroy",value:function(){this.viewModel.clear()}}])&&Z(t.prototype,n),Object.defineProperty(t,"prototype",{writable:!1}),k}(i.Q.View)},58025:function(e,t,n){"use strict";n.d(t,{Y:function(){return o},a:function(){return m}});var o,r=n(48088),i=n(31647),a=n(51934),l=n.n(a),u=n(91465),c=n.n(u);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 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"===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 d(e){return d=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(e){return e.__proto__||Object.getPrototypeOf(e)},d(e)}!function(e){e.ClickCrop="click:crop",e.CropImage="crop:image",e.ImageCropped="image:cropped"}(o||(o={}));var m=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)}(s,e);var t,n,i,a,u=(i=s,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=d(i);if(a){var n=d(this).constructor;e=Reflect.construct(t,arguments,n)}else e=t.apply(this,arguments);return h(this,e)});function s(e){return function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,s),u.call(this,e)}return t=s,(n=[{key:"initialize",value:function(){this.listenTo(this.options.channelName,o.CropImage,this.crop)}},{key:"name",get:function(){return"ImageCropperComponent"}},{key:"template",get:function(){return c()}},{key:"className",get:function(){return"text-center"}},{key:"elements",get:function(){return{image:".img"}}},{key:"getMinCropBoxWidth",value:function(){return this.options.minWidth*this.getViewportToImageRatio()}},{key:"getMinCropBoxHeight",value:function(){return this.options.minHeight*this.getViewportToImageRatio()}},{key:"getViewportToImageRatio",value:function(){return this.options.getCropRegionWidth()/this.model.get("width")}},{key:"crop",value:function(){var e=this.cropper.getCroppedCanvas().toDataURL(this.getImageMimeType());r.Radio.channel(this.options.channelName).trigger(o.ImageCropped,e)}},{key:"getImageMimeType",value:function(){var e=this.model.get("dataUrl").match(/data:([a-zA-Z0-9]+\/[a-zA-Z0-9-.+]+).*,.*/);if(e)return e[1]}},{key:"renderCropper",value:function(){this.getMinCropBoxWidth();var e=this.getUI("image").get(0);this.cropper=new(l())(e,{viewMode:1,aspectRatio:this.options.minWidth/this.options.minHeight,minCropBoxWidth:this.getMinCropBoxWidth(),minCropBoxHeight:this.getMinCropBoxHeight(),autoCropArea:1})}},{key:"onRender",value:function(){this.renderCropper()}},{key:"onBeforeDestroy",value:function(){this.cropper.destroy()}}])&&p(t.prototype,n),Object.defineProperty(t,"prototype",{writable:!1}),s}(i.Q.Component)},67670:function(e,t,n){"use strict";n.d(t,{v:function(){return f}});var o=n(31647),r=n(88172);function i(e){return i="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},i(e)}function a(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function l(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 c(e,t){return c=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(e,t){return e.__proto__=t,e},c(e,t)}function s(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 p(e){return p=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(e){return e.__proto__||Object.getPrototypeOf(e)},p(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&&c(e,t)}(h,e);var t,n,o,i,f=(o=h,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=p(o);if(i){var n=p(this).constructor;e=Reflect.construct(t,arguments,n)}else e=t.apply(this,arguments);return s(this,e)});function h(){return l(this,h),f.apply(this,arguments)}return t=h,(n=[{key:"defaults",value:function(){var e;return a(e={},r.ZV.Disabled,!0),a(e,r.ZV.Hidden,!1),e}}])&&u(t.prototype,n),Object.defineProperty(t,"prototype",{writable:!1}),h}(o.Q.Model)},86983: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((n.lang||t&&t.lang||e.hooks.helperMissing).call(null!=t?t:e.nullContext||{},"minimumRecommended",{name:"lang",hash:{height:null!=(i=null!=(i=null!=t?t.options:t)?i.recommendedDimensions:i)?i.height:i,width:null!=(i=null!=(i=null!=t?t.options:t)?i.recommendedDimensions:i)?i.width:i},data:r}))+"\n"},3:function(e,t,n,o,r){var i;return e.propertyIsEnumerable," "+e.escapeExpression((n.lang||t&&t.lang||e.hooks.helperMissing).call(null!=t?t:e.nullContext||{},"minimumActual",{name:"lang",hash:{height:null!=(i=null!=(i=null!=t?t.options:t)?i.dimensions:i)?i.height:i,width:null!=(i=null!=(i=null!=t?t.options:t)?i.dimensions:i)?i.width:i},data:r}))+"\n"},5:function(e,t,n,o,r){e.propertyIsEnumerable;var i,a=e.lambda,l=e.escapeExpression;return'<button class="'+l(a(null!=(i=null!=(i=null!=t?t.options:t)?i.styles:i)?i.removeImage:i,t))+'">'+l((n.lang||t&&t.lang||e.hooks.helperMissing).call(null!=t?t:e.nullContext||{},"remove",{name:"lang",hash:{},data:r}))+" "+l(a(null!=(i=null!=t?t.options:t)?i.imageTypeText:i,t))+"</button>\n"},compiler:[8,">= 4.3.0"],main:function(e,t,n,o,r){e.propertyIsEnumerable;var i,a=null!=t?t:e.nullContext||{},l=e.hooks.helperMissing,u=e.escapeExpression,c=e.lambda;return'<h6 class="mb-0">'+u((n.lang||t&&t.lang||l).call(a,"edit",{name:"lang",hash:{},data:r}))+" "+u(c(null!=(i=null!=t?t.options:t)?i.imageTypeText:i,t))+'</h6>\n<div class="text-muted mb-1">\n <em>\n'+(null!=(i=n.if.call(a,null!=(i=null!=t?t.options:t)?i.recommendedDimensions:i,{name:"if",hash:{},fn:e.program(1,r,0),inverse:e.program(3,r,0),data:r}))?i:"")+' </em>\n</div>\n<div class="my-1 '+u(c(null!=(i=null!=(i=null!=t?t.options:t)?i.styles:i)?i.imageContainer:i,t))+'">\n <div class="'+u(c(null!=(i=null!=(i=null!=t?t.options:t)?i.styles:i)?i.imageElement:i,t))+" "+u(c(null!=(i=null!=t?t.options:t)?i.backgroundColor:i,t))+'" style="background-image: url(\''+u(c(null!=(i=null!=t?t.options:t)?i.imageUrl:i,t))+'\')"></div>\n</div>\n<button class="btn btn-outline-dark my-1">'+u((n.lang||t&&t.lang||l).call(a,"upload",{name:"lang",hash:{},data:r}))+" "+u(c(null!=(i=null!=t?t.options:t)?i.imageTypeText:i,t))+"</button>\n"+(null!=(i=n.if.call(a,null!=(i=null!=t?t.options:t)?i.hasImage:i,{name:"if",hash:{},fn:e.program(5,r,0),inverse:e.noop,data:r}))?i:"")},useData:!0})},80322: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="thumbnail-region"></div>\n<div class="dropdown-divider"></div>\n<div class="banner-region"></div>'},useData:!0})},42687:function(e,t,n){var o=n(32227);e.exports=(o.default||o).template({1:function(e,t,n,o,r){return'<div class="content-region"></div>\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:"")+"\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})},91465: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,'<img src="'+e.escapeExpression("function"==typeof(i=null!=(i=n.dataUrl||(null!=t?t.dataUrl:t))?i:e.hooks.helperMissing)?i.call(null!=t?t:e.nullContext||{},{name:"dataUrl",hash:{},data:r}):i)+'" class="img img-fluid" />'},useData:!0})}}]);
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
(self.webpackChunk_clickview_library_editor=self.webpackChunk_clickview_library_editor||[]).push([[259],{18582:function(e,t,n){"use strict";n.d(t,{u:function(){return c}});var o,r=n(57857),i=n(63791),a=n(75459);function u(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}!function(e){e.Pdf="pdf",e.Image="image",e.PowerPoint="powerpoint",e.Document="document",e.Excel="excel",e.Zip="archive",e.File="text"}(o||(o={}));var l="shared.shared-utils",c={mapRatingToClass:function(e){return e?function(e){switch(!0){case e<32:return"bg-purple";case e<48:return"bg-green";case e<80:return"bg-info";case e<96:return"bg-red";case e<128:return"bg-pink";case e>=128:return"bg-yellow";default:return""}}(e):""},mapSourceToDisplayName:function(e,t){switch(e.type){case a.r.HostedLibrary:case a.r.CustomLibrary:return e.name;case a.r.Exchange:return r.T.getPhrase(l,"exchange");case a.r.Workspace:return r.T.getPhrase(l,t?"myVideos":"workspace");default:return""}},mapSourceToClass:function(e){switch(e){case a.r.HostedLibrary:case a.r.CustomLibrary:return"bg-info";case a.r.Exchange:return"bg-green";case a.r.Workspace:default:return"bg-red"}},isInteractive:function(e){var t,n;return!!(null===(n=null===(t=null==e?void 0:e.interactives)||void 0===t?void 0:t.data)||void 0===n?void 0:n.length)},mapTypeToSvg:function(e){var t,n=(u(t={},o.Pdf,i.vn.FilePDF),u(t,o.Image,i.vn.FileImg),u(t,o.PowerPoint,i.vn.FilePowerpoint),u(t,o.Document,i.vn.FileWord),u(t,o.Excel,i.vn.FileExcel),u(t,o.Zip,i.vn.FileZip),u(t,o.File,i.vn.File),t)[e];return n||(n=i.vn.Folder),n},mapTypeToClass:function(e){switch(e){case o.Pdf:return"icon-red";case o.Image:return"icon-purple";case o.Document:return"icon-blue";case o.Excel:return"icon-green";case o.PowerPoint:return"icon-orange";case o.Zip:return"icon-teal";case o.File:return"icon-gray";default:return""}},mapTypeToExtension:function(e){return e?{pdf:"pdf",image:"png",powerpoint:"pptx"}[e.toLowerCase()]:""},mapTypeToName:function(e){if(!e)return"";switch(e){case o.Pdf:return r.T.getPhrase(l,"pdf");case o.Image:return r.T.getPhrase(l,"image");case o.Document:return r.T.getPhrase(l,"document");case o.Excel:return r.T.getPhrase(l,"spreadsheet");case o.PowerPoint:return r.T.getPhrase(l,"presentation");case o.Zip:return r.T.getPhrase(l,"zipArchive");case o.File:return r.T.getPhrase(l,"file");default:return""}}}},68708:function(e,t,n){"use strict";n.d(t,{c:function(){return _}});var o=n(31647),r=n(48088),i=n(63791),a=n(70065),u=n(52076),l=n(61843),c=n(48090),s=n(76431),p=n.n(s),f={container:"vvTSf"},y=n(57857);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 m(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"===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 g(e){return g=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(e){return e.__proto__||Object.getPrototypeOf(e)},g(e)}var v=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)}(v,e);var t,n,o,s,d=(o=v,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(e){return!1}}(),function(){var e,t=g(o);if(s){var n=g(this).constructor;e=Reflect.construct(t,arguments,n)}else e=t.apply(this,arguments);return b(this,e)});function v(e){return function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,v),d.call(this,e)}return t=v,(n=[{key:"name",get:function(){return"LinkItemComponent"}},{key:"template",get:function(){return p()}},{key:"className",get:function(){return"".concat(f.container," rounded p-2 mb-2 d-flex align-items-center")}},{key:"lang",get:function(){return"libraryEditor.editLinks"}},{key:"attributes",get:function(){return{title:this.model.get("name")}}},{key:"events",value:function(){return{"click .delete":"onClickDelete","click .edit":"onClickEdit"}}},{key:"appLinks",get:function(){return{".edit":{application:c.OV.LIBRARY_EDITOR,action:c.eX.LibraryEditor.EDIT_LINK,args:[this.options.videoId,this.model.get("id")]}}}},{key:"onClickEdit",value:function(){var e=u.k.mergeOptions(this.options.analyticsOptions,{actionType:a.UserAction.Edit,entity:a.EntityType.Resource,workflowPhase:a.WorkflowPhase.Start}),t={id:this.model.get("id"),parentId:+this.options.videoId};u.k.logUserAction(t,e)}},{key:"onClickDelete",value:function(){var e=this;new l.Mr({title:y.T.getPhrase(this.lang,"removeHeading"),text:y.T.getPhrase(this.lang,"removeConfirm",{name:l.m$.escapeExpression(this.model.get("name"))}),buttons:[{text:y.T.getPhrase(this.lang,"remove"),className:"btn btn-danger",success:!0},{text:y.T.getPhrase(this.lang,"cancel"),className:"btn btn-outline-dark",close:!0}],channelName:l.N0.generateUniqueChannelName(this)}).render().done((function(){r.Radio.channel(e.options.channelName).trigger("delete:link",e.model.get("id"))}))}},{key:"viewOptions",value:function(){return{styles:f,editable:this.options.editable,linkSvg:i.Nj.getSvg(i.vn.Link),editSvg:i.Nj.getSvg(i.vn.Edit),trashSvg:i.Nj.getSvg(i.vn.Delete)}}}])&&m(t.prototype,n),Object.defineProperty(t,"prototype",{writable:!1}),v}(o.Q.Component),k=n(52929),w=n.n(k);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 T(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 E(e,t,n){return t&&P(e.prototype,t),n&&P(e,n),Object.defineProperty(e,"prototype",{writable:!1}),e}function x(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&&C(e,t)}function C(e,t){return C=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(e,t){return e.__proto__=t,e},C(e,t)}function S(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=R(e);if(t){var r=R(this).constructor;n=Reflect.construct(o,arguments,r)}else n=o.apply(this,arguments);return j(this,n)}}function j(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 R(e){return R=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(e){return e.__proto__||Object.getPrototypeOf(e)},R(e)}var _=function(e){x(n,e);var t=S(n);function n(e){return T(this,n),t.call(this,e)}return E(n,[{key:"name",get:function(){return"VideoLinksComponent"}},{key:"template",get:function(){return w()}},{key:"className",get:function(){return this.options.customCollection?"":"py-3 border-top"}},{key:"regions",value:function(){return{links:{el:".links-region",replaceElement:!0}}}},{key:"viewOptions",value:function(){return this.options}},{key:"onRender",value:function(){this.showChildView("links",new I({collection:this.options.customCollection||this.model.get("links"),channelName:this.options.channelName,analyticsOptions:this.options.analyticsOptions,editable:this.options.editable,videoId:this.options.videoId,headingText:this.options.headingText,emptyStateText:this.options.emptyStateText}))}}]),n}(o.Q.Component),I=function(e){x(n,e);var t=S(n);function n(e){return T(this,n),t.call(this,e)}return E(n,[{key:"name",get:function(){return"LinkItemComponentCollection"}},{key:"childViewOptions",get:function(){return this.options}},{key:"childView",get:function(){return v}}]),n}(o.Q.ComponentCollection)},77605:function(e,t,n){"use strict";n.d(t,{c:function(){return D},h:function(){return N}});var o=n(31647),r=n(48088),i=n(99114),a=n.n(i),u=n(53808),l=n(70065),c=n(52076),s=n(63791),p=n(18582),f=n(95117),y=n.n(f);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 m(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"===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 g(e){return g=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(e){return e.__proto__||Object.getPrototypeOf(e)},g(e)}var v=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)}(a,e);var t,n,o,r,i=(o=a,r=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(e){return!1}}(),function(){var e,t=g(o);if(r){var n=g(this).constructor;e=Reflect.construct(t,arguments,n)}else e=t.apply(this,arguments);return b(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),i.call(this,e)}return t=a,(n=[{key:"name",get:function(){return"ResourceItemComponent"}},{key:"template",get:function(){return y()}},{key:"className",get:function(){return"".concat("CdlNn"," rounded p-2 mb-2")}},{key:"events",value:function(){return{"click .delete":"onClickDelete","click .edit":"onClickEdit"}}},{key:"appLinks",get:function(){return{".edit":this.options.getEditAppLink(this.model.get("id"))}}},{key:"onClickEdit",value:function(){var e=c.k.mergeOptions(this.options.analyticsOptions,{actionType:l.UserAction.Edit,entity:l.EntityType.Resource,workflowPhase:l.WorkflowPhase.Start}),t={id:this.model.get("id"),parentId:+this.options.videoId};c.k.logUserAction(t,e)}},{key:"onClickDelete",value:function(){u.q.isFunction(this.options.onClickDelete)&&this.options.onClickDelete(this.model)}},{key:"viewOptions",value:function(){var e=this.model.get("metadata"),t=e?e.type:"";return{editable:this.options.editable,extension:p.u.mapTypeToExtension(t),svg:s.Nj.getSvg(p.u.mapTypeToSvg(t)),iconClass:p.u.mapTypeToClass(t),resourceType:p.u.mapTypeToName(t),editSvg:s.Nj.getSvg(s.vn.Edit),trashSvg:s.Nj.getSvg(s.vn.Delete)}}}])&&m(t.prototype,n),Object.defineProperty(t,"prototype",{writable:!1}),a}(o.Q.Component),k=n(57857),w=n(25094),O=n(41934),T=n(54758);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 E(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function x(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 C(e,t,n){return t&&x(e.prototype,t),n&&x(e,n),Object.defineProperty(e,"prototype",{writable:!1}),e}function S(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)}function j(e,t){return j=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(e,t){return e.__proto__=t,e},j(e,t)}function R(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=I(e);if(t){var r=I(this).constructor;n=Reflect.construct(o,arguments,r)}else n=o.apply(this,arguments);return _(this,n)}}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 I(e){return I=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(e){return e.__proto__||Object.getPrototypeOf(e)},I(e)}var N=function(e){S(n,e);var t=R(n);function n(e){return E(this,n),t.call(this,e)}return C(n,[{key:"name",get:function(){return"VideoResourcesComponentCollection"}},{key:"className",get:function(){return"mt-3"}},{key:"lang",get:function(){return"libraryEditor.videoResources"}},{key:"childView",get:function(){return v}},{key:"childViewOptions",get:function(){var e=this;return{editable:this.options.editable,videoId:this.options.videoId,analyticsOptions:this.options.analyticsOptions,onClickDelete:function(t){return e.onClickDelete(t)},getEditAppLink:function(t){return{application:w.OV.LIBRARY_EDITOR,action:O.e.LibraryEditor.EDIT_RESOURCE,args:[e.options.videoId,t]}}}}},{key:"onClickDelete",value:function(e){var t=this;new T.M({title:k.T.getPhrase(this.lang,"removeHeading"),text:k.T.getPhrase(this.lang,"removeBody",{resourceName:e.get("name")}),buttons:[{text:k.T.getPhrase(this.lang,"remove"),className:"btn btn-danger",success:!0},{text:k.T.getPhrase(this.lang,"cancel"),className:"btn btn-outline-dark",close:!0}],channelName:"".concat(this.name).concat(this.cid)}).render().done((function(){r.Radio.channel(t.options.channelName).trigger("delete:resource",e.get("id"))}))}}]),n}(o.Q.ComponentCollection),D=function(e){S(n,e);var t=R(n);function n(e){return E(this,n),t.call(this,e)}return C(n,[{key:"name",get:function(){return"VideoResourcesComponent"}},{key:"template",get:function(){return a()}},{key:"lang",get:function(){return"libraryEditor.videoResources"}},{key:"channelName",get:function(){return"".concat(this.name).concat(this.cid)}},{key:"className",get:function(){return this.options.customCollection?"":"py-3 border-top"}},{key:"regions",value:function(){return{resources:{replaceElement:!0,el:".resource-list-region"}}}},{key:"renderResources",value:function(){var e=new N({collection:this.options.customCollection||this.model.resources,editable:this.options.editable||!1,videoId:this.options.videoId||this.model.get("id"),channelName:this.options.parentChannelName||this.channelName});this.showChildView("resources",e)}},{key:"viewOptions",value:function(){return{resourcesHeadingText:this.options.headerText||k.T.getPhrase(this.lang,"heading"),emptyStateText:this.options.emptyStateText}}},{key:"onRender",value:function(){this.renderResources()}}]),n}(o.Q.Component)},95117: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.lambda;return'<a class="float-right svg-container cursor-pointer text-muted delete">'+(null!=(i=a(null!=(i=null!=t?t.options:t)?i.trashSvg:i,t))?i:"")+'</a>\n<a class="float-right svg-container cursor-pointer text-muted edit">'+(null!=(i=a(null!=(i=null!=t?t.options:t)?i.editSvg:i,t))?i:"")+"</a>\n"},compiler:[8,">= 4.3.0"],main:function(e,t,n,o,r){e.propertyIsEnumerable;var i,a,u=e.lambda,l=e.escapeExpression,c=null!=t?t:e.nullContext||{},s=e.hooks.helperMissing,p="function";return'<span title="'+l(u(null!=(i=null!=t?t.options:t)?i.resourceType:i,t))+'" class="d-inline-block align-middle mr-2 svg-container '+l(u(null!=(i=null!=t?t.options:t)?i.iconClass:i,t))+'">'+(null!=(i=u(null!=(i=null!=t?t.options:t)?i.svg:i,t))?i:"")+'</span>\n<a href="'+l(typeof(a=null!=(a=n.url||(null!=t?t.url:t))?a:s)===p?a.call(c,{name:"url",hash:{},data:r}):a)+"?name="+l(typeof(a=null!=(a=n.name||(null!=t?t.name:t))?a:s)===p?a.call(c,{name:"name",hash:{},data:r}):a)+'" class="align-middle">\n '+l(typeof(a=null!=(a=n.name||(null!=t?t.name:t))?a:s)===p?a.call(c,{name:"name",hash:{},data:r}):a)+"\n</a>\n"+(null!=(i=n.if.call(c,null!=(i=null!=t?t.options:t)?i.editable:i,{name:"if",hash:{},fn:e.program(1,r,0),inverse:e.noop,data:r}))?i:"")},useData:!0})},76431: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.lambda;return' <a class="ml-auto mr-1 svg-container cursor-pointer text-muted edit">'+(null!=(i=a(null!=(i=null!=t?t.options:t)?i.editSvg:i,t))?i:"")+'</a>\n <a class="svg-container cursor-pointer text-muted delete">'+(null!=(i=a(null!=(i=null!=t?t.options:t)?i.trashSvg:i,t))?i:"")+"</a>\n"},compiler:[8,">= 4.3.0"],main:function(e,t,n,o,r){e.propertyIsEnumerable;var i,a,u=null!=t?t:e.nullContext||{},l=e.hooks.helperMissing,c="function",s=e.escapeExpression;return'<span class="svg-container text-info mr-2">'+(null!=(i=e.lambda(null!=(i=null!=t?t.options:t)?i.linkSvg:i,t))?i:"")+'</span>\n<a class="w-75 text-truncate" href="'+s(typeof(a=null!=(a=n.url||(null!=t?t.url:t))?a:l)===c?a.call(u,{name:"url",hash:{},data:r}):a)+'" target="_blank">'+s(typeof(a=null!=(a=n.name||(null!=t?t.name:t))?a:l)===c?a.call(u,{name:"name",hash:{},data:r}):a)+"</a>\n"+(null!=(i=n.if.call(u,null!=(i=null!=t?t.options:t)?i.editable:i,{name:"if",hash:{},fn:e.program(1,r,0),inverse:e.noop,data:r}))?i:"")},useData:!0})},52929: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,"<p>"+e.escapeExpression(e.lambda(null!=(i=null!=t?t.options:t)?i.emptyStateText:i,t))+"</p>"},compiler:[8,">= 4.3.0"],main:function(e,t,n,o,r){var i;return e.propertyIsEnumerable,"<h5>"+e.escapeExpression(e.lambda(null!=(i=null!=t?t.options:t)?i.headingText:i,t))+"</h5>\n"+(null!=(i=n.if.call(null!=t?t:e.nullContext||{},null!=(i=null!=t?t.options:t)?i.emptyStateText:i,{name:"if",hash:{},fn:e.program(1,r,0),inverse:e.noop,data:r}))?i:"")+'\n<div class="links-region"></div>'},useData:!0})},99114: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,"<p>"+e.escapeExpression(e.lambda(null!=(i=null!=t?t.options:t)?i.emptyStateText:i,t))+"</p>"},compiler:[8,">= 4.3.0"],main:function(e,t,n,o,r){var i;return e.propertyIsEnumerable,"<h5>"+e.escapeExpression(e.lambda(null!=(i=null!=t?t.options:t)?i.resourcesHeadingText:i,t))+"</h5>\n"+(null!=(i=n.if.call(null!=t?t:e.nullContext||{},null!=(i=null!=t?t.options:t)?i.emptyStateText:i,{name:"if",hash:{},fn:e.program(1,r,0),inverse:e.noop,data:r}))?i:"")+'\n<div class="resource-list-region"></div>'},useData:!0})}}]);
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
(self.webpackChunk_clickview_library_editor=self.webpackChunk_clickview_library_editor||[]).push([[2692],{87221:function(e,t,n){"use strict";n.r(t),n.d(t,{RenameFolderView:function(){return R}});var i=n(39479),r=n(48088),o=n(99249),l=n(21679),a=n(31647),s=n(52076),u=n(48090),c=n(10101),f=n(67670),d=n(60602),h=n(88172),p=n(61843),y=n(57857),b=n(77739),v=n(80852),m=n.n(v);function g(e){return g="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},g(e)}function w(e,t){for(var n=0;n<t.length;n++){var i=t[n];i.enumerable=i.enumerable||!1,i.configurable=!0,"value"in i&&(i.writable=!0),Object.defineProperty(e,i.key,i)}}function k(e,t){return k=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(e,t){return e.__proto__=t,e},k(e,t)}function O(e,t){if(t&&("object"===g(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 S(e){return S=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(e){return e.__proto__||Object.getPrototypeOf(e)},S(e)}var R=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&&k(e,t)}(R,e);var t,n,a,v,g=(a=R,v=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=S(a);if(v){var n=S(this).constructor;e=Reflect.construct(t,arguments,n)}else e=t.apply(this,arguments);return O(this,e)});function R(e){return function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,R),g.call(this,e)}return t=R,(n=[{key:"initialize",value:function(){this.bindListeners(),this.libraryDataService=l.u.getInstance(u.Or.Library,this)}},{key:"bindListeners",value:function(){this.listenTo(u.Vk.LIBRARY,"folder:".concat(this.options.folderId,":sync"),this.render),this.listenTo(u.Vk.LIBRARY,"libraries:sync",this.render)}},{key:"name",get:function(){return"RenameFolderView"}},{key:"title",get:function(){return y.T.getPhrase(this.lang,"title")}},{key:"lang",get:function(){return"libraryEditor.renameFolder"}},{key:"template",get:function(){return m()}},{key:"channelName",get:function(){return p.N0.generateUniqueChannelName(this)}},{key:"behaviors",get:function(){var e=this;return[{behaviorClass:c.Yw,title:y.T.getPhrase(this.lang,"heading"),spinnerButtonOptions:{model:this.spinnerModel=new f.v,channelName:this.channelName,buttonText:y.T.getPhrase(this.lang,"save"),onClick:function(t){return e.onSubmit(t)}}}]}},{key:"regions",value:function(){return{folderDetails:".folder-details-region"}}},{key:"events",value:function(){return{submit:"onSubmit"}}},{key:"onSubmit",value:function(e){e&&e.preventDefault(),this.viewModel.validate(),!1!==this.viewModel.isValid()&&(r.Radio.channel(this.channelName).trigger(h.I3.ShowSpinner),this.saveFolder(),this.logAction())}},{key:"logAction",value:function(){var e={id:this.options.folderId,name:this.viewModel.get("name")};s.k.logUserAction(e,this.options.analyticsOptions)}},{key:"saveFolder",value:function(){var e=this;this.libraryDataService.updateFolder(this.viewModel,(function(){e.triggerMethod("hide")}))}},{key:"setUpCollection",value:function(e){this.collection||(this.library=p.PU.getLibrary(this.options.folderId,e),this.collection=this.library.children)}},{key:"setUpModel",value:function(e){this.model||(this.model=e,this.setUpViewModel())}},{key:"setUpViewModel",value:function(){if(!this.viewModel){var e="folder:details:".concat(this.options.folderId);this.viewModel=o.r.get(e,this.model.toJSON(),{ctor:d.g})}}},{key:"renderFolderDetails",value:function(){if(this.model&&this.collection){var e=new b.r({model:this.viewModel,channelName:this.channelName,editName:!0,editParent:!1});this.showChildView("folderDetails",e)}}},{key:"onBeforeRender",value:function(){this.libraryDataService.getLibraries(i.bind(this.setUpCollection,this)),this.libraryDataService.getFolderFromLibraries(this.options.folderId,i.bind(this.setUpModel,this)),this.model&&this.collection&&this.spinnerModel.set(h.ZV.Disabled,!1)}},{key:"viewOptions",value:function(){return{dataFetched:!!this.model&&!!this.collection,spinnerEl:p.Kp.getSpinner({size:p.Ey.Large,extraClasses:"mx-auto"})}}},{key:"onRender",value:function(){this.renderFolderDetails()}}])&&w(t.prototype,n),Object.defineProperty(t,"prototype",{writable:!1}),R}(a.Q.View)},80852:function(e,t,n){var i=n(32227);e.exports=(i.default||i).template({1:function(e,t,n,i,r){var o;return e.propertyIsEnumerable,(null!=(o=e.lambda(null!=(o=null!=t?t.options:t)?o.spinnerEl:o,t))?o:"")+"\n"},3:function(e,t,n,i,r){return'<div class="folder-details-region"></div>\n'},compiler:[8,">= 4.3.0"],main:function(e,t,n,i,r){var o;return e.propertyIsEnumerable,null!=(o=n.unless.call(null!=t?t:e.nullContext||{},null!=(o=null!=t?t.options:t)?o.dataFetched:o,{name:"unless",hash:{},fn:e.program(1,r,0),inverse:e.program(3,r,0),data:r}))?o:""},useData:!0})}}]);
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
(self.webpackChunk_clickview_library_editor=self.webpackChunk_clickview_library_editor||[]).push([[2803],{2803:function(e,t,n){"use strict";n.r(t),n.d(t,{DeleteFolderView:function(){return w}});var r=n(48088),i=n(21679),o=n(31647),l=n(52076),c=n(48090),a=n(10101),s=n(61843),u=n(88172),f=n(3059),h=n(57857),d=n(56906),p=n(11885),y=n.n(p);function b(e){return b="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},b(e)}function g(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}function m(e,t){return m=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(e,t){return e.__proto__=t,e},m(e,t)}function v(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 k(e){return k=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(e){return e.__proto__||Object.getPrototypeOf(e)},k(e)}var w=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)}(O,e);var t,n,p,b,w=(p=O,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(e){return!1}}(),function(){var e,t=k(p);if(b){var n=k(this).constructor;e=Reflect.construct(t,arguments,n)}else e=t.apply(this,arguments);return v(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),w.call(this,e)}return t=O,(n=[{key:"initialize",value:function(){this.listenTo(c.Vk.LIBRARY,"libraries:sync",this.render),this.collectionIdentifier=new f.F7(this.options.folderId,s.x$.GetCurrentSortType()),this.listenTo(c.Vk.VIDEO,"".concat(this.collectionIdentifier,":sync"),this.render),this.libraryDataService=i.u.getInstance(c.Or.Library,this),this.videoDataService=i.u.getInstance(c.Or.Video,this)}},{key:"name",get:function(){return"DeleteFolderView"}},{key:"title",get:function(){return h.T.getPhrase(this.lang,"title")}},{key:"lang",get:function(){return"libraryEditor.deleteFolder"}},{key:"template",get:function(){return y()}},{key:"channelName",get:function(){return s.N0.generateUniqueChannelName(this)}},{key:"behaviors",get:function(){var e=this;return[{behaviorClass:a.Yw,title:h.T.getPhrase(this.lang,"removeFolder"),spinnerButtonOptions:{channelName:this.channelName,buttonText:h.T.getPhrase(this.lang,"remove"),extraButtonClass:"btn-danger",onClick:function(t){return e.onClickDelete(t)}}}]}},{key:"getParentId",value:function(){if(s.PU.isSubFolder(this.model)&&this.model&&this.model.collection&&this.model.collection.parent&&this.model.collection.parent instanceof o.Q.Model)return this.model.collection.parent.get("id");var e=s.PU.getLibrary(this.model.get("id"),this.model.collection);return e&&e.id||null}},{key:"onClickDelete",value:function(e){e&&e.preventDefault(),r.Radio.channel(this.channelName).trigger(u.I3.ShowSpinner);var t=this.getParentId(),n=s.PU.isSubFolder(this.model)?c.eX.LibraryEditor.FOLDER:c.eX.LibraryEditor.LIBRARY;this.libraryDataService.deleteFolder(this.options.folderId,(function(){o.Q.AppLinkHelper.trigger({application:c.OV.LIBRARY_EDITOR,action:n,args:[t]},{replace:!0})})),this.logAction()}},{key:"logAction",value:function(){var e={id:this.options.folderId,name:this.model.get("name")};l.k.logUserAction(e,this.options.analyticsOptions)}},{key:"canDelete",value:function(){return!(this.model.children&&this.model.children.length||this.videos&&this.videos.length)}},{key:"onBeforeRender",value:function(){var e=this;return this.libraryDataService.getFolderFromLibraries(this.options.folderId,(function(t){e.model=t})),this.videos=this.videoDataService.getCollectionVideos(this.collectionIdentifier),!(!this.model||!this.videos||!this.canDelete()&&(window.setTimeout((function(){e.triggerMethod("hide"),o.Q.ErrorHelper.throw(new d.QH)}),c.pA.POPUP_FADE_TIMEOUT),1))}}])&&g(t.prototype,n),Object.defineProperty(t,"prototype",{writable:!1}),O}(o.Q.View)},11885: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){var o;return e.propertyIsEnumerable,null!=(o=(n.lang||t&&t.lang||e.hooks.helperMissing).call(null!=t?t:e.nullContext||{},"check",{name:"lang",hash:{name:null!=t?t.name:t},data:i}))?o:""},useData:!0})}}]);
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
(self.webpackChunk_clickview_library_editor=self.webpackChunk_clickview_library_editor||[]).push([[2888],{12888:function(e,t,n){"use strict";n.r(t),n.d(t,{EditResourceView:function(){return E}});var o=n(39479),r=n(48088),i=n(52076),a=n(31647),u=n(21679),c=n(99249),l=n(10101),s=n(88172),f=n(48090),p=n(61843),d=n(67670),h=n(14327),y=n(57857),b=n(7190),v=n(6375),m=n.n(v);function g(e){return g="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},g(e)}function w(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 O(e,t){return O=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(e,t){return e.__proto__=t,e},O(e,t)}function k(e,t){if(t&&("object"===g(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 R(e){return R=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(e){return e.__proto__||Object.getPrototypeOf(e)},R(e)}var E=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&&O(e,t)}(S,e);var t,n,v,g,E=(v=S,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=R(v);if(g){var n=R(this).constructor;e=Reflect.construct(t,arguments,n)}else e=t.apply(this,arguments);return k(this,e)});function S(e){return function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,S),E.call(this,e)}return t=S,(n=[{key:"initialize",value:function(){this.listenTo(f.Vk.RESOURCE,"resource:".concat(this.options.resourceId,":sync"),this.render),this.resourceDataService=u.u.getInstance(f.Or.Resource,this)}},{key:"name",get:function(){return"EditResourceView"}},{key:"lang",get:function(){return"libraryEditor.editResource"}},{key:"title",get:function(){return y.T.getPhrase(this.lang,"title")}},{key:"template",get:function(){return m()}},{key:"channelName",get:function(){return p.N0.generateUniqueChannelName(this)}},{key:"behaviors",get:function(){var e=this;return[{behaviorClass:l.Yw,title:y.T.getPhrase(this.lang,"edit"),spinnerButtonOptions:{channelName:this.channelName,model:this.spinnerModel=new d.v,buttonText:y.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:"elements",get:function(){return{name:"#name",feedback:".form-feedback"}}},{key:"events",value:function(){return{submit:"onSubmit","shown.bs.modal":"onModalShown"}}},{key:"onSubmit",value:function(e){var t=this;e&&e.preventDefault(),this.viewModel.validate(),!1!==this.viewModel.isValid()&&(r.Radio.channel(this.channelName).trigger(s.I3.ShowSpinner),this.resourceDataService.updateResource(this.options.videoId,this.viewModel,(function(){t.logAction(),a.Q.AppLinkHelper.trigger({application:f.OV.LIBRARY_EDITOR,action:f.eX.LibraryEditor.EDIT_VIDEO_RESOURCES,args:[t.options.videoId]})})))}},{key:"logAction",value:function(){var e={id:this.options.resourceId,parentId:+this.options.videoId,name:this.viewModel.get("name")};i.k.logUserAction(e,this.options.analyticsOptions)}},{key:"selectAllWithoutExtension",value:function(){if(this.model){var e=this.model.get("name").split(".").slice(0,-1).join("."),t=this.getUI("name");t.each((function(n,r){if(o.isFunction(r.setSelectionRange))t.focus(),r.setSelectionRange(0,e.length);else if(o.isFunction(r.createTextRange)){var i=r.createTextRange();i.collapse(!0),i.moveEnd("character",e.length),i.moveStart("character",0),i.select()}}))}}},{key:"onModalShown",value:function(){this.selectAllWithoutExtension()}},{key:"dataFetched",value:function(){return!!this.model&&!!this.viewModel}},{key:"onBeforeRender",value:function(){var e=this;this.model=this.resourceDataService.getResource(this.options.resourceId,(function(t){e.viewModel=c.r.get("resource:".concat(e.options.resourceId),t.toJSON(),{ctor:h._}),e.viewModel.addValidation(b.A9)})),this.dataFetched()&&this.spinnerModel.set(s.ZV.Disabled,!1)}},{key:"viewOptions",value:function(){return{dataFetched:this.dataFetched(),spinnerEl:p.Kp.getSpinner({size:p.Ey.Large,extraClasses:"mx-auto"})}}},{key:"onRender",value:function(){this.viewModel&&(this.stickit(this.viewModel),r.Validation.bind(this,{model:this.viewModel}),this.selectAllWithoutExtension())}},{key:"onClose",value:function(){this.unstickit(),r.Validation.unbind(this)}}])&&w(t.prototype,n),Object.defineProperty(t,"prototype",{writable:!1}),S}(a.Q.View)},67670:function(e,t,n){"use strict";n.d(t,{v:function(){return p}});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,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function u(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}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 l(e,t){return l=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(e,t){return e.__proto__=t,e},l(e,t)}function s(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 f(e){return f=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(e){return e.__proto__||Object.getPrototypeOf(e)},f(e)}var p=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)}(d,e);var t,n,o,i,p=(o=d,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=f(o);if(i){var n=f(this).constructor;e=Reflect.construct(t,arguments,n)}else e=t.apply(this,arguments);return s(this,e)});function d(){return u(this,d),p.apply(this,arguments)}return t=d,(n=[{key:"defaults",value:function(){var e;return a(e={},r.ZV.Disabled,!0),a(e,r.ZV.Hidden,!1),e}}])&&c(t.prototype,n),Object.defineProperty(t,"prototype",{writable:!1}),d}(o.Q.Model)},6375: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,(null!=(i=e.lambda(null!=(i=null!=t?t.options:t)?i.spinnerEl:i,t))?i:"")+"\n"},3:function(e,t,n,o,r){e.propertyIsEnumerable;var i=null!=t?t:e.nullContext||{},a=e.hooks.helperMissing,u=e.escapeExpression;return'<form>\n <div class="form-group">\n <label for="name" class="control-label">'+u((n.lang||t&&t.lang||a).call(i,"fileName",{name:"lang",hash:{},data:r}))+'</label>\n <input name="name" id="name" type="text" class="form-control" placeholder="'+u((n.lang||t&&t.lang||a).call(i,"fileName",{name:"lang",hash:{},data:r}))+'" autocomplete="off" autofocus/>\n <div class="form-feedback"></div>\n </div>\n</form>\n'},compiler:[8,">= 4.3.0"],main:function(e,t,n,o,r){var i;return e.propertyIsEnumerable,null!=(i=n.unless.call(null!=t?t:e.nullContext||{},null!=(i=null!=t?t.options:t)?i.dataFetched:i,{name:"unless",hash:{},fn:e.program(1,r,0),inverse:e.program(3,r,0),data:r}))?i:""},useData:!0})}}]);
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
(self.webpackChunk_clickview_library_editor=self.webpackChunk_clickview_library_editor||[]).push([[299],{91439:function(t,e,n){"use strict";n.d(e,{u:function(){return b}});var o=n(39479),r=n(48088),i=n(31647),s=n(63791),l=n(48090),a=n(93421),c="C8gyn";function u(t){return u="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},u(t)}function p(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}function f(t,e){for(var n=0;n<e.length;n++){var o=e[n];o.enumerable=o.enumerable||!1,o.configurable=!0,"value"in o&&(o.writable=!0),Object.defineProperty(t,o.key,o)}}function h(t,e){return h=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(t,e){return t.__proto__=e,t},h(t,e)}function d(t,e){if(e&&("object"===u(e)||"function"==typeof e))return e;if(void 0!==e)throw new TypeError("Derived constructors may only return object or undefined");return function(t){if(void 0===t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return t}(t)}function y(t){return y=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(t){return t.__proto__||Object.getPrototypeOf(t)},y(t)}var b=function(t){!function(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function");t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,writable:!0,configurable:!0}}),Object.defineProperty(t,"prototype",{writable:!1}),e&&h(t,e)}(v,t);var e,n,i,u,b=(i=v,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(t){return!1}}(),function(){var t,e=y(i);if(u){var n=y(this).constructor;t=Reflect.construct(e,arguments,n)}else t=e.apply(this,arguments);return d(this,t)});function v(){return p(this,v),b.apply(this,arguments)}return e=v,(n=[{key:"getClassMappings",value:function(){return{"ui-draggable":a.W2.draggable,"ui-draggable-handle":a.W2.handle,"ui-draggable-disabled":a.W2.disabled,"ui-draggable-dragging":a.W2.dragging}}},{key:"helper",value:function(){return new a.ND({text:this.view.model.get("name"),svg:s.Nj.getSvg(s.vn.Folder)}).render().el}},{key:"start",value:function(){r.Radio.channel(l.jr.FOLDER_DRAG_DROP).trigger("drag:start",this.view.model),this.view.$el.addClass(c)}},{key:"stop",value:function(){r.Radio.channel(l.jr.FOLDER_DRAG_DROP).trigger("drag:stop"),this.view.$el.removeClass(c)}},{key:"onRender",value:function(){var t={helper:o.bind(this.helper,this),start:o.bind(this.start,this),stop:o.bind(this.stop,this)};t.classes=this.getClassMappings(),this.view.$el.draggable(o.extend({},a.wc,t))}},{key:"onBeforeDestroy",value:function(){this.view.$el.draggable("instance")&&this.view.$el.draggable("destroy")}}])&&f(e.prototype,n),Object.defineProperty(e,"prototype",{writable:!1}),v}(i.Q.Behavior)},6929:function(t,e,n){"use strict";n.d(e,{x:function(){return d}});var o=n(39479),r=n(48088),i=n(31647),s=n(50997),l=n(10454);function a(t){return a="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},a(t)}function c(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}function u(t,e){for(var n=0;n<e.length;n++){var o=e[n];o.enumerable=o.enumerable||!1,o.configurable=!0,"value"in o&&(o.writable=!0),Object.defineProperty(t,o.key,o)}}function p(t,e){return p=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(t,e){return t.__proto__=e,t},p(t,e)}function f(t,e){if(e&&("object"===a(e)||"function"==typeof e))return e;if(void 0!==e)throw new TypeError("Derived constructors may only return object or undefined");return function(t){if(void 0===t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return t}(t)}function h(t){return h=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(t){return t.__proto__||Object.getPrototypeOf(t)},h(t)}var d=function(t){!function(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function");t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,writable:!0,configurable:!0}}),Object.defineProperty(t,"prototype",{writable:!1}),e&&p(t,e)}(y,t);var e,n,i,a,d=(i=y,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(t){return!1}}(),function(){var t,e=h(i);if(a){var n=h(this).constructor;t=Reflect.construct(e,arguments,n)}else t=e.apply(this,arguments);return f(this,t)});function y(){return c(this,y),d.apply(this,arguments)}return e=y,(n=[{key:"initialize",value:function(){this.listenTo(s.jr.VIDEO_DRAG_DROP,"drag:stop",this.stop),this.listenTo(s.jr.FOLDER_DRAG_DROP,"drag:stop",this.stop)}},{key:"getDroppableElement",value:function(){return this.options.ui?this.view.getUI(this.options.ui):this.$el}},{key:"drop",value:function(){var t=this;o.each(this.options.channelNames,(function(e){r.Radio.channel(e).trigger("drag:drop",t.view.model,t.options.analyticsOptions)}))}},{key:"accept",value:function(){var t=this,e=!1;return o.each(this.options.channelNames,(function(n){!0===r.Radio.channel(n).request("accept",t.view.model)&&(e=!0)})),e||(this.disabledElement=this.getDroppableElement(),this.disabledElement.addClass(l.Z.disabled)),e}},{key:"stop",value:function(){var t;null===(t=this.disabledElement)||void 0===t||t.removeClass(l.Z.disabled)}},{key:"over",value:function(){var t=this;this.isHoveringOver=!0,window.setTimeout((function(){t.isHoveringOver&&t.view.trigger("open:sub:folders",l.Z.active)}),500)}},{key:"out",value:function(){this.isHoveringOver=!1}},{key:"onRender",value:function(){var t={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)};t.classes={"ui-droppable":l.Z.droppable,"ui-droppable-active":l.Z.active,"ui-droppable-hover":l.Z.hover},this.getDroppableElement().droppable(t)}},{key:"onBeforeDestroy",value:function(){this.getDroppableElement().droppable("instance")&&this.getDroppableElement().droppable("destroy")}}])&&u(e.prototype,n),Object.defineProperty(e,"prototype",{writable:!1}),y}(i.Q.Behavior)},93421:function(t,e,n){"use strict";n.d(e,{wc:function(){return f},ND:function(){return p},W2:function(){return o}});var o={dragItem:"GYPuI",svgContainer:"olYDa",dragText:"O53FV"},r=n(62699),i=n.n(r);function s(t){return s="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},s(t)}function l(t,e){for(var n=0;n<e.length;n++){var o=e[n];o.enumerable=o.enumerable||!1,o.configurable=!0,"value"in o&&(o.writable=!0),Object.defineProperty(t,o.key,o)}}function a(t,e){return a=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(t,e){return t.__proto__=e,t},a(t,e)}function c(t,e){if(e&&("object"===s(e)||"function"==typeof e))return e;if(void 0!==e)throw new TypeError("Derived constructors may only return object or undefined");return function(t){if(void 0===t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return t}(t)}function u(t){return u=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(t){return t.__proto__||Object.getPrototypeOf(t)},u(t)}var p=function(t){!function(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function");t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,writable:!0,configurable:!0}}),Object.defineProperty(t,"prototype",{writable:!1}),e&&a(t,e)}(f,t);var e,n,r,s,p=(r=f,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,e=u(r);if(s){var n=u(this).constructor;t=Reflect.construct(e,arguments,n)}else t=e.apply(this,arguments);return c(this,t)});function f(t){return function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,f),p.call(this,t)}return e=f,(n=[{key:"name",get:function(){return"DraggableItemComponent"}},{key:"template",get:function(){return i()}},{key:"className",get:function(){return"".concat(o.dragItem," p-3")}},{key:"viewOptions",value:function(){return Object.assign({styles:o},this.options)}}])&&l(e.prototype,n),Object.defineProperty(e,"prototype",{writable:!1}),f}(n(31647).Q.Component),f={delay:150,cursorAt:{left:-20,top:10},refreshPositions:!0}},50299:function(t,e,n){"use strict";n.d(e,{J:function(){return x}});var o=n(39479),r=n(31647),i=n(48088),s=n(63791),l=n(70065),a=n(61843),c=n(48090),u=n(6929),p=n(91439),f=n(42978),h=n.n(f);function d(t){return d="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},d(t)}function y(t,e){for(var n=0;n<e.length;n++){var o=e[n];o.enumerable=o.enumerable||!1,o.configurable=!0,"value"in o&&(o.writable=!0),Object.defineProperty(t,o.key,o)}}function b(t,e){return b=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(t,e){return t.__proto__=e,t},b(t,e)}function v(t,e){if(e&&("object"===d(e)||"function"==typeof e))return e;if(void 0!==e)throw new TypeError("Derived constructors may only return object or undefined");return function(t){if(void 0===t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return t}(t)}function g(t){return g=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(t){return t.__proto__||Object.getPrototypeOf(t)},g(t)}var m=function(t){!function(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function");t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,writable:!0,configurable:!0}}),Object.defineProperty(t,"prototype",{writable:!1}),e&&b(t,e)}(O,t);var e,n,f,d,m=(f=O,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(t){return!1}}(),function(){var t,e=g(f);if(d){var n=g(this).constructor;t=Reflect.construct(e,arguments,n)}else t=e.apply(this,arguments);return v(this,t)});function O(t){return function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,O),m.call(this,t)}return e=O,(n=[{key:"initialize",value:function(){this.listenTo(this.model,"change:name",this.render);var t=this.getChildren();t&&this.listenTo(t,"add remove",this.render),this.listenTo(this,"open:sub:folders",this.onOpenSubFolders)}},{key:"name",get:function(){return"LeftNavNodeComponent"}},{key:"elements",get:function(){return{anchor:".ui-node",text:".ui-text"}}},{key:"tagName",get:function(){return"li"}},{key:"className",get:function(){var t="position-relative";return this.isSelected()&&(t+=" ".concat(this.options.styles.selected)),this.isParent()&&(t+=" ".concat(this.options.styles.parent)),this.options.isSelector&&(t+=" ".concat(this.options.styles.isSelector)),t}},{key:"behaviors",get:function(){return this.options.isSelector?[]:[{behaviorClass:u.x,ui:"anchor",channelNames:[c.jr.VIDEO_DRAG_DROP,c.jr.FOLDER_DRAG_DROP],analyticsOptions:{location:l.LocationContext.LeftNav}},{behaviorClass:p.u}]}},{key:"appLinks",get:function(){return this.options.appLink?{"@ui.anchor":this.getAppLink()}:{}}},{key:"events",value:function(){return{"click .ui-node":"onClick"}}},{key:"regions",value:function(){return{children:{el:"ul",replaceElement:!0},actions:{el:".actions-region",replaceElement:!0}}}},{key:"template",get:function(){return h()}},{key:"hasChildren",value:function(){var t=this.getChildren();return!!t&&!!t.length}},{key:"getChildren",value:function(){return this.options.childrenProperty?this.model.get(this.options.childrenProperty):null}},{key:"getText",value:function(){return this.options.textProperty?this.model.get(this.options.textProperty):this.model.get("name")}},{key:"isSelected",value:function(){return a.PU.isSelected(this.options.folderTreeId,this.model.get("id"))}},{key:"isParent",value:function(){return a.PU.isParent(this.options.folderTreeId,this.model.get("id"))}},{key:"isDisabled",value:function(){return this.options.disabledIds&&this.options.disabledIds[this.model.get("id").toString()]}},{key:"getAnchorClass",value:function(){var t="position-relative ".concat(this.options.styles.node);return this.isSelected()?t+=" text-body font-weight-bold":this.isDisabled()?t+=" text-muted":t+=" text-dark",t}},{key:"getCaretClass",value:function(){var t=this.options.styles.caret;return this.isDisabled()&&(t+=" text-muted"),t}},{key:"getAppLink",value:function(){if(!this.options.appLink)return{};var t=this.options.linkArgs,e=this.options.linkParams;return{application:this.options.appLink.application,action:this.options.appLink.action,args:o.isFunction(t)?t(this.model):null,params:o.isFunction(e)?e(this.model):null}}},{key:"onClick",value:function(t){t.stopPropagation();var e=this.getRegion("children"),n=i.Radio.channel(this.options.channelName);if(this.isDisabled()||(this.$el.addClass(this.options.styles.selected),this.getUI("text").addClass("text-body font-weight-bold")),this.options.isSelector&&n.trigger("folder:selected",this.model,this.isDisabled()),this.isDisabled()||this.isSelected()&&this.isCurrentPath()){if(t.stopImmediatePropagation(),t.preventDefault(),!this.hasChildren())return void(this.options.isSelector&&n.trigger("re:render:selector"));var o=!e.hasView();return o?this.openChildren():this.closeChildren(),void(this.options.isSelector&&o&&n.trigger("re:render:selector"))}this.hasChildren()&&(this.openChildren(),this.options.isSelector&&i.Radio.channel(this.options.channelName).trigger("re:render:selector"))}},{key:"isCurrentPath",value:function(){var t=r.Q.AppLinkHelper.getCurrentAppLink(),e=this.getAppLink();return!o.keys(e).length||t.application===e.application&&t.action===e.action}},{key:"closeChildren",value:function(){var t=this.getRegion("children");this.$el.addClass(this.options.styles.collapsed),this.$el.removeClass(this.options.styles.parent),t.empty()}},{key:"openChildren",value:function(){this.$el.removeClass(this.options.styles.collapsed),this.renderChildren()}},{key:"onOpenSubFolders",value:function(t){this.renderedSubChildren||this.renderChildren(t)}},{key:"renderChildren",value:function(t){var e=this.getChildren();if(e&&e.length){var n={styles:this.options.styles,channelName:this.options.channelName,appLink:this.options.appLink,linkArgs:this.options.linkArgs,linkParams:this.options.linkParams,childrenProperty:this.options.childrenProperty,textProperty:this.options.textProperty,actions:this.options.actions,folderTreeId:this.options.folderTreeId,analyticsOptions:this.options.analyticsOptions,extraClass:this.options.extraClass,isSelector:this.options.isSelector,disabledIds:this.options.disabledIds};n.extraClasses=t,n.collection=e,this.showChildView("children",new x(n)),this.renderedSubChildren=!0}}},{key:"viewOptions",value:function(){var t="".concat(this.options.styles.item," ").concat(this.options.styles.customItem||"");return this.isDisabled()&&this.renderedSubChildren&&(t+=" ".concat(this.options.styles.disabledActive)),{children:this.getChildren(),itemClass:t,anchorClass:this.getAnchorClass(),caretClass:this.getCaretClass(),showCaret:this.hasChildren(),svg:s.Nj.getSvg(s.vn.Caret),extraClasses:this.options.extraClasses,textStyle:this.options.styles.text,text:this.getText()}}},{key:"onRender",value:function(){this.resetClassName(),this.options.actions&&this.showChildView("actions",new this.options.actions({model:this.model,extraClasses:"rounded-circle mr-1 ".concat(this.options.styles.actions),buttonClass:"text-muted",analyticsOptions:this.options.analyticsOptions})),(this.isSelected()||this.isParent())&&this.renderChildren()}}])&&y(e.prototype,n),Object.defineProperty(e,"prototype",{writable:!1}),O}(r.Q.Component),O=n(95308);function w(t){return w="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},w(t)}function k(t,e){for(var n=0;n<e.length;n++){var o=e[n];o.enumerable=o.enumerable||!1,o.configurable=!0,"value"in o&&(o.writable=!0),Object.defineProperty(t,o.key,o)}}function C(t,e){return C=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(t,e){return t.__proto__=e,t},C(t,e)}function P(t,e){if(e&&("object"===w(e)||"function"==typeof e))return e;if(void 0!==e)throw new TypeError("Derived constructors may only return object or undefined");return function(t){if(void 0===t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return t}(t)}function j(t){return j=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(t){return t.__proto__||Object.getPrototypeOf(t)},j(t)}var x=function(t){!function(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function");t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,writable:!0,configurable:!0}}),Object.defineProperty(t,"prototype",{writable:!1}),e&&C(t,e)}(l,t);var e,n,r,i,s=(r=l,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(t){return!1}}(),function(){var t,e=j(r);if(i){var n=j(this).constructor;t=Reflect.construct(e,arguments,n)}else t=e.apply(this,arguments);return P(this,t)});function l(t){return function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,l),t.styles=o.extend({},O.Z,t.styles),s.call(this,t)}return e=l,(n=[{key:"name",get:function(){return"LeftNavComponent"}},{key:"tagName",get:function(){return"ul"}},{key:"childView",get:function(){return m}},{key:"className",get:function(){var t="".concat(this.options.styles.folderTree," position-relative");return this.options.extraClass?"".concat(t," ").concat(this.options.extraClass):t}},{key:"viewComparator",get:function(){return function(t){var e;return null===(e=t.get("name"))||void 0===e?void 0:e.toLowerCase()}}},{key:"childViewOptions",get:function(){return{styles:this.options.styles,channelName:this.options.channelName,appLink:this.options.appLink,linkArgs:this.options.linkArgs,linkParams:this.options.linkParams,childrenProperty:this.options.childrenProperty,textProperty:this.options.textProperty,actions:this.options.actions,extraClass:this.options.extraClass,folderTreeId:this.options.folderTreeId,analyticsOptions:this.options.analyticsOptions,isSelector:this.options.isSelector,disabledIds:this.options.disabledIds}}}])&&k(e.prototype,n),Object.defineProperty(e,"prototype",{writable:!1}),l}(r.Q.ComponentCollection)},62699:function(t,e,n){var o=n(32227);t.exports=(o.default||o).template({compiler:[8,">= 4.3.0"],main:function(t,e,n,o,r){t.propertyIsEnumerable;var i,s=t.lambda,l=t.escapeExpression;return'<span class="'+l(s(null!=(i=null!=(i=null!=e?e.options:e)?i.styles:i)?i.svgContainer:i,e))+' mr-2">'+(null!=(i=s(null!=(i=null!=e?e.options:e)?i.svg:i,e))?i:"")+'</span>\n<span class="'+l(s(null!=(i=null!=(i=null!=e?e.options:e)?i.styles:i)?i.dragText:i,e))+'">'+l(s(null!=(i=null!=e?e.options:e)?i.text:i,e))+"</span>"},useData:!0})},42978:function(t,e,n){var o=n(32227);t.exports=(o.default||o).template({1:function(t,e,n,o,r){t.propertyIsEnumerable;var i,s=t.lambda;return' <span class="'+t.escapeExpression(s(null!=(i=null!=e?e.options:e)?i.caretClass:i,e))+' d-inline-block position-absolute">\n '+(null!=(i=s(null!=(i=null!=e?e.options:e)?i.svg:i,e))?i:"")+"\n </span>\n"},3:function(t,e,n,o,r){return"<ul></ul>\n"},compiler:[8,">= 4.3.0"],main:function(t,e,n,o,r){t.propertyIsEnumerable;var i,s=t.lambda,l=t.escapeExpression,a=null!=e?e:t.nullContext||{};return'<div class="position-relative '+l(s(null!=(i=null!=e?e.options:e)?i.itemClass:i,e))+'">\n <a class="'+l(s(null!=(i=null!=e?e.options:e)?i.anchorClass:i,e))+' d-block ui-node">\n'+(null!=(i=n.if.call(a,null!=(i=null!=e?e.options:e)?i.showCaret:i,{name:"if",hash:{},fn:t.program(1,r,0),inverse:t.noop,data:r}))?i:"")+' <span class="'+l(s(null!=(i=null!=e?e.options:e)?i.textStyle:i,e))+" ui-text "+l(s(null!=(i=null!=e?e.options:e)?i.extraClasses:i,e))+'">'+l(s(null!=(i=null!=e?e.options:e)?i.text:i,e))+'</span>\n </a>\n <div class="actions-region"></div>\n</div>\n'+(null!=(i=n.if.call(a,null!=(i=null!=(i=null!=e?e.options:e)?i.children:i)?i.length:i,{name:"if",hash:{},fn:t.program(3,r,0),inverse:t.noop,data:r}))?i:"")},useData:!0})},95308:function(t,e){"use strict";e.Z={folderTree:"JTT7V",text:"ekgGD",caret:"tFpUT",library:"VmDO7",isSelector:"gxCnr",selected:"UotqF",parent:"WHPA5",disabledActive:"S2QPI",disabled:"tntwp",collapsed:"Po9s7",actions:"Sf28U",node:"vm17w",libraryContainer:"_xoJs",item:"aMuxi"}}}]);
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
(self.webpackChunk_clickview_library_editor=self.webpackChunk_clickview_library_editor||[]).push([[3096],{98001:function(e,n,t){"use strict";t.d(n,{u:function(){return w}});var o=t(39479),i=t(48088),r=t(31647),l=t(11306),a=t(63791),s=t(48090),c=t(61843),u=t(57857),p=t(93421),f=t(40622),d="bimhO";function h(e){return h="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},h(e)}function y(e,n){if(!(e instanceof n))throw new TypeError("Cannot call a class as a function")}function m(e,n){for(var t=0;t<n.length;t++){var o=n[t];o.enumerable=o.enumerable||!1,o.configurable=!0,"value"in o&&(o.writable=!0),Object.defineProperty(e,o.key,o)}}function g(e,n){return g=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(e,n){return e.__proto__=n,e},g(e,n)}function v(e,n){if(n&&("object"===h(n)||"function"==typeof n))return n;if(void 0!==n)throw new TypeError("Derived constructors may only return object or undefined");return function(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}(e)}function b(e){return b=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(e){return e.__proto__||Object.getPrototypeOf(e)},b(e)}var w=function(e){!function(e,n){if("function"!=typeof n&&null!==n)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(n&&n.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),Object.defineProperty(e,"prototype",{writable:!1}),n&&g(e,n)}(O,e);var n,t,h,w,k=(h=O,w=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(e){return!1}}(),function(){var e,n=b(h);if(w){var t=b(this).constructor;e=Reflect.construct(n,arguments,t)}else e=n.apply(this,arguments);return v(this,e)});function O(){return y(this,O),k.apply(this,arguments)}return n=O,(t=[{key:"initialize",value:function(){this.options.model||r.Q.ErrorHelper.throw(new l.H("DraggableVideoBehavior must be passed a Video model")),this.listenTo(s.jr.VIDEO_DRAG_DROP,"drag:style:".concat(this.options.model.id),this.styleDragStart),this.listenTo(s.jr.VIDEO_DRAG_DROP,"drag:stop",this.styleDragStop)}},{key:"lang",get:function(){return"libraryEditor.behaviors"}},{key:"helper",value:function(){var e=this.getVideoModels();return new p.ND({text:e.length>1?u.T.getPhrase(this.lang,"videos",{videoCount:e.length}):e[0].get("name"),svg:a.Nj.getSvg(a.vn.Play)}).render().el}},{key:"getSelector",value:function(){return this.view.getUI(this.options.selector)}},{key:"styleDragStart",value:function(){this.getSelector().addClass(d)}},{key:"styleDragStop",value:function(){this.getSelector().removeClass(d)}},{key:"start",value:function(){var e=this.getVideoModels(),n=i.Radio.channel(s.jr.VIDEO_DRAG_DROP);n.trigger("drag:start",e,this.options.collectionIdentifier),o.each(e,(function(e){return n.trigger("drag:style:".concat(e.id))}))}},{key:"stop",value:function(){i.Radio.channel(s.jr.VIDEO_DRAG_DROP).trigger("drag:stop")}},{key:"getVideoModels",value:function(){var e=this,n=c.S0.GetSelectedModels({key:this.options.collectionIdentifier.toString(),type:f.CheckboxTypes.VIDEO_LIST,collection:this.view.model.collection});return o.any(n,(function(n){return n.id===e.view.model.id}))||(n=[this.view.model]),n.length?n:[this.view.model]}},{key:"getClassMappings",value:function(){return{"ui-draggable":p.W2.draggable,"ui-draggable-disabled":p.W2.disabled,"ui-draggable-handle":p.W2.handle,"ui-draggable-dragging":p.W2.dragging}}},{key:"onRender",value:function(){var e=this.getSelector(),n={helper:o.bind(this.helper,this),start:o.bind(this.start,this),stop:o.bind(this.stop,this)};n.classes=this.getClassMappings(),e.draggable(o.extend({},p.wc,n))}},{key:"onBeforeDestroy",value:function(){var e=this.getSelector();e.draggable("instance")&&e.draggable("destroy")}}])&&m(n.prototype,t),Object.defineProperty(n,"prototype",{writable:!1}),O}(r.Q.Behavior)},93421:function(e,n,t){"use strict";t.d(n,{wc:function(){return f},ND:function(){return p},W2:function(){return o}});var o={dragItem:"GYPuI",svgContainer:"olYDa",dragText:"O53FV"},i=t(62699),r=t.n(i);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,n){for(var t=0;t<n.length;t++){var o=n[t];o.enumerable=o.enumerable||!1,o.configurable=!0,"value"in o&&(o.writable=!0),Object.defineProperty(e,o.key,o)}}function s(e,n){return s=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(e,n){return e.__proto__=n,e},s(e,n)}function c(e,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(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 p=function(e){!function(e,n){if("function"!=typeof n&&null!==n)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(n&&n.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),Object.defineProperty(e,"prototype",{writable:!1}),n&&s(e,n)}(f,e);var n,t,i,l,p=(i=f,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,n=u(i);if(l){var t=u(this).constructor;e=Reflect.construct(n,arguments,t)}else e=n.apply(this,arguments);return c(this,e)});function f(e){return function(e,n){if(!(e instanceof n))throw new TypeError("Cannot call a class as a function")}(this,f),p.call(this,e)}return n=f,(t=[{key:"name",get:function(){return"DraggableItemComponent"}},{key:"template",get:function(){return r()}},{key:"className",get:function(){return"".concat(o.dragItem," p-3")}},{key:"viewOptions",value:function(){return Object.assign({styles:o},this.options)}}])&&a(n.prototype,t),Object.defineProperty(n,"prototype",{writable:!1}),f}(t(31647).Q.Component),f={delay:150,cursorAt:{left:-20,top:10},refreshPositions:!0}},12542:function(e,n,t){"use strict";t.d(n,{X:function(){return h},Y:function(){return y}});var o=t(39479),i=t(31647),r=t(16317),l=t.n(r),a=t(61843);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 c(e,n,t){return n in e?Object.defineProperty(e,n,{value:t,enumerable:!0,configurable:!0,writable:!0}):e[n]=t,e}function u(e,n){for(var t=0;t<n.length;t++){var o=n[t];o.enumerable=o.enumerable||!1,o.configurable=!0,"value"in o&&(o.writable=!0),Object.defineProperty(e,o.key,o)}}function p(e,n){return p=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(e,n){return e.__proto__=n,e},p(e,n)}function f(e,n){if(n&&("object"===s(n)||"function"==typeof n))return n;if(void 0!==n)throw new TypeError("Derived constructors may only return object or undefined");return function(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}(e)}function d(e){return d=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(e){return e.__proto__||Object.getPrototypeOf(e)},d(e)}var h="checkbox-all",y=function(e){!function(e,n){if("function"!=typeof n&&null!==n)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(n&&n.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),Object.defineProperty(e,"prototype",{writable:!1}),n&&p(e,n)}(y,e);var n,t,i,r,s=(i=y,r=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(e){return!1}}(),function(){var e,n=d(i);if(r){var t=d(this).constructor;e=Reflect.construct(n,arguments,t)}else e=n.apply(this,arguments);return f(this,e)});function y(e){return function(e,n){if(!(e instanceof n))throw new TypeError("Cannot call a class as a function")}(this,y),s.call(this,e)}return n=y,(t=[{key:"initialize",value:function(){this.getViewModel(),this.bindListeners()}},{key:"name",get:function(){return"BulkCheckboxComponent"}},{key:"className",get:function(){return this.options.className}},{key:"template",get:function(){return l()}},{key:"getViewModel",value:function(){this.model=a.S0.GetViewModel(this.options.key,this.options.type)}},{key:"bindListeners",value:function(){this.options.disabled||this.listenTo(this.model,"change",this.onChange)}},{key:"events",value:function(){return{"change .custom-control-input":"onClick"}}},{key:"onChange",value:function(){this.checkAllChecked(),this.render()}},{key:"checkAllChecked",value:function(){var e=o.values(this.model.omit("all",h));o.every(e,(function(e){return!!e}))&&(this.model.get("all")||e.length===this.options.numberOfItems)&&this.model.set(c({all:!0},this.getItemId(),!0))}},{key:"getItemId",value:function(){return h}},{key:"onClick",value:function(){this.model.get(this.getItemId())?this.model.clear():(this.model.clear(),this.model.set(c({all:!0},this.getItemId(),!0)))}},{key:"viewOptions",value:function(){return{id:this.getItemId(),checked:this.model.get(h),disabled:this.options.disabled,checkboxClassName:this.options.checkboxClassName}}}])&&u(n.prototype,t),Object.defineProperty(n,"prototype",{writable:!1}),y}(i.Q.Component)},14898:function(e,n,t){"use strict";t.d(n,{a:function(){return y}});var o,i,r,l=t(31647),a=t(39479),s=t(58688),c=t(86605),u=t(98001),p=(o={},r=function(e){return[{behaviorClass:u.u,collectionIdentifier:e.options.collectionIdentifier,model:e.options.model,selector:"drag-selector"}]},(i=s.U.Draggable)in o?Object.defineProperty(o,i,{value:r,enumerable:!0,configurable:!0,writable:!0}):o[i]=r,o),f=t(11306),d=s.U.Base,h=c.E,y={renderRegions:function(e,n){a.each(e.regions,(function(t,o){m.onBeforeRenderRegion(e,n,o)&&m.renderRegion(e,n,o)}))},onBeforeRenderRegion:function(e,n,t){var o=h.onBeforeRender[n];if(o||(o=h.onBeforeRender[d]),!o)return!0;var i=o[t];return!i||!a.isFunction(i)||i(e)},renderRegion:function(e,n,t){var o=m.getComponent(e,n,t);e.showChildView(t,o)},getComponent:function(e,n,t){var o=h.componentOptions[n];o||l.Q.ErrorHelper.throw(new f.H("Must define VideoItemComponent type options: ".concat(s.U[n],".")));var i=o[t];i||(i=h.componentOptions[d][t]),i||l.Q.ErrorHelper.throw(new f.H("Must define VideoItemComponent region options: ".concat(t,".")));var r=i(e);return r.component||l.Q.ErrorHelper.throw(new f.H("Must define component for region: ".concat(t,",\n in VideoItemComponent type: ").concat(s.U[n],"."))),new r.component(r.options||{})},getBehaviors:function(e,n){return p[n]?p[n](e):null}},m=y},58688:function(e,n,t){"use strict";var o,i;t.d(n,{H:function(){return i},U:function(){return o}}),function(e){e[e.Base=0]="Base",e[e.AwaitingReview=1]="AwaitingReview",e[e.PastReleases=2]="PastReleases",e[e.VideoAccess=3]="VideoAccess",e[e.ProcessingVideo=4]="ProcessingVideo",e[e.Draggable=5]="Draggable",e[e.Search=6]="Search"}(o||(o={})),function(e){e.Checkbox="checkbox",e.Thumbnail="thumbnail",e.Metadata="metadata",e.VideoActions="videoActions",e.VideoInfo="videoInfo"}(i||(i={}))},86605:function(e,n,t){"use strict";t.d(n,{E:function(){return rt}});var o=t(48090),i=t(2772),r=t(88483),l=t(31647),a=t(16317),s=t.n(a),c=t(61843),u=t(12542);function p(e){return p="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},p(e)}function f(e,n){for(var t=0;t<n.length;t++){var o=n[t];o.enumerable=o.enumerable||!1,o.configurable=!0,"value"in o&&(o.writable=!0),Object.defineProperty(e,o.key,o)}}function d(e,n){return d=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(e,n){return e.__proto__=n,e},d(e,n)}function h(e,n){if(n&&("object"===p(n)||"function"==typeof n))return n;if(void 0!==n)throw new TypeError("Derived constructors may only return object or undefined");return function(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}(e)}function y(e){return y=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(e){return e.__proto__||Object.getPrototypeOf(e)},y(e)}var m=function(e){!function(e,n){if("function"!=typeof n&&null!==n)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(n&&n.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),Object.defineProperty(e,"prototype",{writable:!1}),n&&d(e,n)}(l,e);var n,t,o,i,r=(o=l,i=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(e){return!1}}(),function(){var e,n=y(o);if(i){var t=y(this).constructor;e=Reflect.construct(n,arguments,t)}else e=n.apply(this,arguments);return h(this,e)});function l(e){return function(e,n){if(!(e instanceof n))throw new TypeError("Cannot call a class as a function")}(this,l),r.call(this,e)}return n=l,(t=[{key:"initialize",value:function(){if(this.getViewModel(),this.bindListeners(),this.options.checked){var e=this.getItemId();this.model.set(e,!0,{silent:!0})}}},{key:"name",get:function(){return"CheckboxComponent"}},{key:"className",get:function(){return this.options.className}},{key:"template",get:function(){return s()}},{key:"getViewModel",value:function(){this.model=c.S0.GetViewModel(this.options.key,this.options.type)}},{key:"bindListeners",value:function(){this.options.disabled||this.listenTo(this.model,"change:all change:".concat(this.getItemId()),this.render)}},{key:"events",value:function(){return{"click .custom-checkbox":"onClickCheckbox","change .custom-control-input":"onChangeCheckbox"}}},{key:"getItemId",value:function(){return this.options.itemId.toString()}},{key:"onClickCheckbox",value:function(e){e.stopPropagation()}},{key:"onChangeCheckbox",value:function(){if(!this.options.disabled){var e=this.getItemId();this.model.has(e)||this.model.get("all")?!1===this.model.get(e)?this.model.set(e,!0):(this.model.set(e,!1),this.model.set(u.X,!1)):this.model.set(e,!0)}}},{key:"viewOptions",value:function(){var e=this.getItemId();return{id:e,checked:this.model.has(e)?this.model.get(e):this.model.get("all"),disabled:this.options.disabled,checkboxClassName:this.options.checkboxClassName}}}])&&f(n.prototype,t),Object.defineProperty(n,"prototype",{writable:!1}),l}(l.Q.Component),g=t(39479),v=t(63791),b=t(56210),w=t(7190),k=t(53885),O=t.n(k),C={interactive:"ggsOm",rating:"CPfqH",svgContainer:"lp1lA",badgesWrapper:"Jh1rs",restrictionBadgeClass:"M6hY4",reviewBadge:"wkjr7",urgentReviewBadge:"rScjU"};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 E(e,n){for(var t=0;t<n.length;t++){var o=n[t];o.enumerable=o.enumerable||!1,o.configurable=!0,"value"in o&&(o.writable=!0),Object.defineProperty(e,o.key,o)}}function S(e,n){return S=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(e,n){return e.__proto__=n,e},S(e,n)}function x(e,n){if(n&&("object"===P(n)||"function"==typeof n))return n;if(void 0!==n)throw new TypeError("Derived constructors may only return object or undefined");return function(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}(e)}function j(e){return j=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(e){return e.__proto__||Object.getPrototypeOf(e)},j(e)}var I=function(e){!function(e,n){if("function"!=typeof n&&null!==n)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(n&&n.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),Object.defineProperty(e,"prototype",{writable:!1}),n&&S(e,n)}(l,e);var n,t,o,i,r=(o=l,i=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(e){return!1}}(),function(){var e,n=j(o);if(i){var t=j(this).constructor;e=Reflect.construct(n,arguments,t)}else e=n.apply(this,arguments);return x(this,e)});function l(e){return function(e,n){if(!(e instanceof n))throw new TypeError("Cannot call a class as a function")}(this,l),r.call(this,e)}return n=l,(t=[{key:"name",get:function(){return"VideoItemBadgesComponent"}},{key:"template",get:function(){return O()}},{key:"lang",get:function(){return"shared.videoItemBadges"}},{key:"behaviors",get:function(){return[{behaviorClass:b.H,selector:".tool-tip"}]}},{key:"defaults",get:function(){return{showRestrictionBadge:!1,showReviewBadge:!1}}},{key:"events",value:function(){return{"click span":"onClick"}}},{key:"onClick",value:function(e){e.stopPropagation()}},{key:"viewOptions",value:function(){var e=this.options.showReviewBadge&&c.S9.getRestrictionTooltipMessage(this.model),n=this.options.showRestrictionBadge&&c.S9.getRestrictionTooltipMessage(this.model);return{styles:C,interactive:w.uB.isInteractive(this.model),subtitles:!1,resources:!1,ratingColorClass:w.uB.mapRatingToClass(this.model.rating.get("value")),closeCaptionSvg:v.Nj.getSvg(v.vn.CloseCaptionBadge),resourcesSvg:v.Nj.getSvg(v.vn.Resources),awaitingReviewMessage:e,awaitingReviewBadgeClass:c.S9.getReviewBadgeClassName(this.model,C.reviewBadge,C.urgentReviewBadge),restrictionMessage:n}}}])&&E(n.prototype,t),Object.defineProperty(n,"prototype",{writable:!1}),l}(l.Q.Component),R=t(7427),_=t(37570),T=t(27367),V=t.n(T),M={lock:"I7AaK",svgContainer:"avSZT"};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 A(e,n){for(var t=0;t<n.length;t++){var o=n[t];o.enumerable=o.enumerable||!1,o.configurable=!0,"value"in o&&(o.writable=!0),Object.defineProperty(e,o.key,o)}}function L(e,n){return L=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(e,n){return e.__proto__=n,e},L(e,n)}function B(e,n){if(n&&("object"===D(n)||"function"==typeof n))return n;if(void 0!==n)throw new TypeError("Derived constructors may only return object or undefined");return function(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}(e)}function N(e){return N=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(e){return e.__proto__||Object.getPrototypeOf(e)},N(e)}var U=function(e){!function(e,n){if("function"!=typeof n&&null!==n)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(n&&n.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),Object.defineProperty(e,"prototype",{writable:!1}),n&&L(e,n)}(a,e);var n,t,i,r,l=(i=a,r=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(e){return!1}}(),function(){var e,n=N(i);if(r){var t=N(this).constructor;e=Reflect.construct(n,arguments,t)}else e=n.apply(this,arguments);return B(this,e)});function a(e){return function(e,n){if(!(e instanceof n))throw new TypeError("Cannot call a class as a function")}(this,a),l.call(this,e)}return n=a,(t=[{key:"initialize",value:function(){this.listenTo(this.model,"change:restrictions",this.render)}},{key:"name",get:function(){return"VideoItemMetadataComponent"}},{key:"template",get:function(){return V()}},{key:"behaviors",get:function(){return[{behaviorClass:b.H,selector:".tool-tip"}]}},{key:"appLinks",get:function(){return{".applink-show-video":{application:o.OV.LIBRARY_EDITOR,action:o.eX.LibraryEditor.VIDEO_DETAILS,args:[this.model.get("id")]}}}},{key:"regions",value:function(){return{sources:{el:".sources-region",replaceElement:!0},badges:{el:".badges-region",replaceElement:!0},series:{el:".series-region",replaceElement:!0}}}},{key:"events",value:function(){return e={},t="onClickBadge",(n="click .".concat(M.svgContainer))in e?Object.defineProperty(e,n,{value:t,enumerable:!0,configurable:!0,writable:!0}):e[n]=t,e;var e,n,t}},{key:"onClickBadge",value:function(e){e.stopPropagation()}},{key:"renderSources",value:function(){var e=g.extend({},{model:this.model},this.options.sourceMetadataOptions);this.showChildView("sources",new R.V(e))}},{key:"renderSeries",value:function(){this.showChildView("series",new _.O({model:this.model,highlight:this.options.sourceMetadataOptions&&!!this.options.sourceMetadataOptions.highlight}))}},{key:"renderBadges",value:function(){this.showChildView("badges",new I({model:this.model}))}},{key:"viewOptions",value:function(){return{styles:M,hasAdminRestriction:c.S9.hasAdminRestriction(this.model),restrictionMessage:c.S9.getRestrictionTooltipMessage(this.model),lockSvg:v.Nj.getSvg(v.vn.Lock)}}},{key:"onRender",value:function(){this.renderSeries(),this.renderSources(),this.renderBadges()}}])&&A(n.prototype,t),Object.defineProperty(n,"prototype",{writable:!1}),a}(l.Q.Component),H=t(89707),Q=t(94446),W=t.n(Q);function z(e){return z="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},z(e)}function K(e,n){for(var t=0;t<n.length;t++){var o=n[t];o.enumerable=o.enumerable||!1,o.configurable=!0,"value"in o&&(o.writable=!0),Object.defineProperty(e,o.key,o)}}function Y(e,n){return Y=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(e,n){return e.__proto__=n,e},Y(e,n)}function X(e,n){if(n&&("object"===z(n)||"function"==typeof n))return n;if(void 0!==n)throw new TypeError("Derived constructors may only return object or undefined");return function(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}(e)}function Z(e){return Z=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(e){return e.__proto__||Object.getPrototypeOf(e)},Z(e)}var G=function(e){!function(e,n){if("function"!=typeof n&&null!==n)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(n&&n.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),Object.defineProperty(e,"prototype",{writable:!1}),n&&Y(e,n)}(a,e);var n,t,i,r,l=(i=a,r=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(e){return!1}}(),function(){var e,n=Z(i);if(r){var t=Z(this).constructor;e=Reflect.construct(n,arguments,t)}else e=n.apply(this,arguments);return X(this,e)});function a(e){return function(e,n){if(!(e instanceof n))throw new TypeError("Cannot call a class as a function")}(this,a),l.call(this,e)}return n=a,(t=[{key:"initialize",value:function(){this.listenTo(this.model,"change:restrictions",this.render)}},{key:"name",get:function(){return"VideoItemVideoAccessMetadataComponent"}},{key:"template",get:function(){return W()}},{key:"behaviors",get:function(){return[{behaviorClass:b.H,selector:".tool-tip"}]}},{key:"appLinks",get:function(){if(c.M2.hasCustomLibrary(this.model))return{".applink-show-video":{application:o.OV.LIBRARY_EDITOR,action:o.eX.LibraryEditor.VIDEO_DETAILS,args:[this.model.get("id")]}}}},{key:"regions",value:function(){return{sources:{el:".sources-region",replaceElement:!0},badges:{el:".badges-region",replaceElement:!0},series:{el:".series-region",replaceElement:!0}}}},{key:"events",value:function(){return e={click:"onClick","click .video-title":"onClickMetadata"},t="onClickMetadata",(n="click .".concat(M.svgContainer))in e?Object.defineProperty(e,n,{value:t,enumerable:!0,configurable:!0,writable:!0}):e[n]=t,e;var e,n,t}},{key:"onClickMetadata",value:function(e){e.stopPropagation()}},{key:"getVideoUrl",value:function(){var e="videos/".concat(this.model.get("id"));return H.k.getMainProductUrl(this.options.config,e,e)}},{key:"renderSources",value:function(){if(c.M2.hasCustomLibrary(this.model)){var e=g.extend({},{model:this.model},this.options.sourceMetadataOptions);this.showChildView("sources",new R.V(e))}}},{key:"renderSeries",value:function(){c.M2.hasCustomLibrary(this.model)&&this.showChildView("series",new _.O({model:this.model,highlight:this.options.sourceMetadataOptions&&!!this.options.sourceMetadataOptions.highlight}))}},{key:"renderBadges",value:function(){this.showChildView("badges",new I({model:this.model,showRestrictionBadge:!0}))}},{key:"viewOptions",value:function(){return{styles:M,restrictionMessage:c.S9.getRestrictionTooltipMessage(this.model),lockSvg:v.Nj.getSvg(v.vn.Lock),linkToOnline:!c.M2.hasCustomLibrary(this.model),videoUrl:this.getVideoUrl(),openExternalSvg:v.Nj.getSvg(v.vn.NewWindow)}}},{key:"onRender",value:function(){this.renderSeries(),this.renderSources(),this.renderBadges()}}])&&K(n.prototype,t),Object.defineProperty(n,"prototype",{writable:!1}),a}(l.Q.Component),F=t(50028),$=t(5854),q=t(56914),J=t.n(q);function ee(e){return ee="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},ee(e)}function ne(e,n){for(var t=0;t<n.length;t++){var o=n[t];o.enumerable=o.enumerable||!1,o.configurable=!0,"value"in o&&(o.writable=!0),Object.defineProperty(e,o.key,o)}}function te(e,n){return te=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(e,n){return e.__proto__=n,e},te(e,n)}function oe(e,n){if(n&&("object"===ee(n)||"function"==typeof n))return n;if(void 0!==n)throw new TypeError("Derived constructors may only return object or undefined");return function(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}(e)}function ie(e){return ie=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(e){return e.__proto__||Object.getPrototypeOf(e)},ie(e)}var re=function(e){!function(e,n){if("function"!=typeof n&&null!==n)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(n&&n.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),Object.defineProperty(e,"prototype",{writable:!1}),n&&te(e,n)}(a,e);var n,t,i,r,l=(i=a,r=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(e){return!1}}(),function(){var e,n=ie(i);if(r){var t=ie(this).constructor;e=Reflect.construct(n,arguments,t)}else e=n.apply(this,arguments);return oe(this,e)});function a(e){return function(e,n){if(!(e instanceof n))throw new TypeError("Cannot call a class as a function")}(this,a),l.call(this,e)}return n=a,(t=[{key:"initialize",value:function(){this.bindListeners()}},{key:"bindListeners",value:function(){this.model.get("status")===F.X.Processing&&this.options.pendingItems&&(this.pendingItem||(this.listenTo(this.options.pendingItems,"update",this.mapPendingItem),this.mapPendingItem()))}},{key:"lang",get:function(){return"shared.videoItemProcessingMetadata"}},{key:"mapPendingItem",value:function(){this.pendingItem=this.options.pendingItems.get(this.model.get("id")),this.render(),this.pendingItem&&(this.stopListening(this.options.pendingItems,"update"),this.listenTo(this.pendingItem,"change:foregroundProgress change:backgroundProgress change:pendingProcessStatus",this.render))}},{key:"name",get:function(){return"VideoItemProcessingMetadataComponent"}},{key:"template",get:function(){return J()}},{key:"appLinks",get:function(){var e=this.model.series?this.model.series.id:"";return{".applink-series":{application:o.OV.LIBRARY_EDITOR,action:o.eX.LibraryEditor.FOLDER,args:[e]}}}},{key:"viewOptions",value:function(){return this.pendingItem?{status:$.S.getStatus(this.pendingItem),hasError:$.S.hasError(this.pendingItem),hasPendingItem:!0}:{hasPendingItem:!1}}}])&&ne(n.prototype,t),Object.defineProperty(n,"prototype",{writable:!1}),a}(l.Q.Component),le=t(61539),ae=t.n(le);function se(e){return se="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},se(e)}function ce(e,n){for(var t=0;t<n.length;t++){var o=n[t];o.enumerable=o.enumerable||!1,o.configurable=!0,"value"in o&&(o.writable=!0),Object.defineProperty(e,o.key,o)}}function ue(e,n){return ue=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(e,n){return e.__proto__=n,e},ue(e,n)}function pe(e,n){if(n&&("object"===se(n)||"function"==typeof n))return n;if(void 0!==n)throw new TypeError("Derived constructors may only return object or undefined");return function(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}(e)}function fe(e){return fe=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(e){return e.__proto__||Object.getPrototypeOf(e)},fe(e)}var de=function(e){!function(e,n){if("function"!=typeof n&&null!==n)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(n&&n.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),Object.defineProperty(e,"prototype",{writable:!1}),n&&ue(e,n)}(l,e);var n,t,o,i,r=(o=l,i=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(e){return!1}}(),function(){var e,n=fe(o);if(i){var t=fe(this).constructor;e=Reflect.construct(n,arguments,t)}else e=n.apply(this,arguments);return pe(this,e)});function l(e){return function(e,n){if(!(e instanceof n))throw new TypeError("Cannot call a class as a function")}(this,l),r.call(this,e)}return n=l,(t=[{key:"name",get:function(){return"VideoItemAwaitingReviewMetadataComponent"}},{key:"template",get:function(){return ae()}},{key:"events",value:function(){return{"click .video-title":"onClickMetadata","click .svg-container":"onClickMetadata"}}},{key:"regions",value:function(){return{badges:{el:".badges-region",replaceElement:!0},series:{el:".series-region",replaceElement:!0}}}},{key:"onClickMetadata",value:function(e){e.stopPropagation()}},{key:"getVideoUrl",value:function(){var e="videos/".concat(this.model.get("id"));return H.k.getMainProductUrl(this.options.config,e,e)}},{key:"getSeriesUrl",value:function(){if(this.model.series){var e="series/".concat(this.model.series.id);return H.k.getMainProductUrl(this.options.config,e,e)}}},{key:"renderBadges",value:function(){this.showChildView("badges",new I({model:this.model,showReviewBadge:!0}))}},{key:"renderSeries",value:function(){this.showChildView("series",new _.O({model:this.model,highlight:!1,seriesUrl:this.getSeriesUrl()}))}},{key:"viewOptions",value:function(){return{styles:M,videoUrl:this.getVideoUrl(),openExternalSvg:v.Nj.getSvg(v.vn.NewWindow)}}},{key:"onRender",value:function(){this.renderSeries(),this.renderBadges()}}])&&ce(n.prototype,t),Object.defineProperty(n,"prototype",{writable:!1}),l}(l.Q.Component),he=t(94559),ye=t.n(he),me={series:"IEOid"};function ge(e){return ge="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},ge(e)}function ve(e,n,t){return n in e?Object.defineProperty(e,n,{value:t,enumerable:!0,configurable:!0,writable:!0}):e[n]=t,e}function be(e,n){for(var t=0;t<n.length;t++){var o=n[t];o.enumerable=o.enumerable||!1,o.configurable=!0,"value"in o&&(o.writable=!0),Object.defineProperty(e,o.key,o)}}function we(e,n){return we=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(e,n){return e.__proto__=n,e},we(e,n)}function ke(e,n){if(n&&("object"===ge(n)||"function"==typeof n))return n;if(void 0!==n)throw new TypeError("Derived constructors may only return object or undefined");return function(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}(e)}function Oe(e){return Oe=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(e){return e.__proto__||Object.getPrototypeOf(e)},Oe(e)}var Ce=function(e){!function(e,n){if("function"!=typeof n&&null!==n)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(n&&n.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),Object.defineProperty(e,"prototype",{writable:!1}),n&&we(e,n)}(l,e);var n,t,o,i,r=(o=l,i=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(e){return!1}}(),function(){var e,n=Oe(o);if(i){var t=Oe(this).constructor;e=Reflect.construct(n,arguments,t)}else e=n.apply(this,arguments);return ke(this,e)});function l(e){return function(e,n){if(!(e instanceof n))throw new TypeError("Cannot call a class as a function")}(this,l),r.call(this,e)}return n=l,(t=[{key:"initialize",value:function(){this.listenTo(this.model,"change:restrictions",this.render)}},{key:"name",get:function(){return"VideoItemPastReleasesMetadataComponent"}},{key:"template",get:function(){return ye()}},{key:"lang",get:function(){return"shared.videoItemPastReleasesMetadata"}},{key:"behaviors",get:function(){return[{behaviorClass:b.H,selector:".tool-tip"}]}},{key:"regions",value:function(){return{badges:{el:".badges-region",replaceElement:!0},series:{el:".series-region",replaceElement:!0}}}},{key:"events",value:function(){var e;return ve(e={"click .video-title":"onClickMetadata"},"click .".concat(me.series),"onClickMetadata"),ve(e,"click .svg-container","onClickMetadata"),e}},{key:"onClickMetadata",value:function(e){e.stopPropagation()}},{key:"getVideoUrl",value:function(){var e="videos/".concat(this.model.get("id"));return H.k.getMainProductUrl(this.options.config,e,e)}},{key:"getSeriesUrl",value:function(){if(this.model.series){var e="series/".concat(this.model.series.id);return H.k.getMainProductUrl(this.options.config,e,e)}}},{key:"renderBadges",value:function(){this.showChildView("badges",new I({model:this.model}))}},{key:"renderSeries",value:function(){this.showChildView("series",new _.O({model:this.model,highlight:!1,seriesUrl:this.getSeriesUrl()}))}},{key:"viewOptions",value:function(){return{styles:g.extend({},M,me),videoUrl:this.getVideoUrl(),openExternalSvg:v.Nj.getSvg(v.vn.NewWindow),hasAdminRestriction:c.S9.hasAdminRestriction(this.model),restrictionMessage:c.S9.getRestrictionTooltipMessage(this.model),lockSvg:v.Nj.getSvg(v.vn.Lock)}}},{key:"onRender",value:function(){this.renderSeries(),this.renderBadges()}}])&&be(n.prototype,t),Object.defineProperty(n,"prototype",{writable:!1}),l}(l.Q.Component),Pe=t(47062),Ee=t.n(Pe);function Se(e){return Se="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},Se(e)}function xe(e,n){for(var t=0;t<n.length;t++){var o=n[t];o.enumerable=o.enumerable||!1,o.configurable=!0,"value"in o&&(o.writable=!0),Object.defineProperty(e,o.key,o)}}function je(e,n){return je=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(e,n){return e.__proto__=n,e},je(e,n)}function Ie(e,n){if(n&&("object"===Se(n)||"function"==typeof n))return n;if(void 0!==n)throw new TypeError("Derived constructors may only return object or undefined");return function(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}(e)}function Re(e){return Re=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(e){return e.__proto__||Object.getPrototypeOf(e)},Re(e)}var _e=function(e){!function(e,n){if("function"!=typeof n&&null!==n)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(n&&n.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),Object.defineProperty(e,"prototype",{writable:!1}),n&&je(e,n)}(a,e);var n,t,i,r,l=(i=a,r=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(e){return!1}}(),function(){var e,n=Re(i);if(r){var t=Re(this).constructor;e=Reflect.construct(n,arguments,t)}else e=n.apply(this,arguments);return Ie(this,e)});function a(e){return function(e,n){if(!(e instanceof n))throw new TypeError("Cannot call a class as a function")}(this,a),l.call(this,e)}return n=a,(t=[{key:"initialize",value:function(){this.listenTo(this.model,"change:restrictions",this.render)}},{key:"name",get:function(){return"VideoItemSearchMetadataComponent"}},{key:"template",get:function(){return Ee()}},{key:"behaviors",get:function(){return[{behaviorClass:b.H,selector:".tool-tip"}]}},{key:"appLinks",get:function(){return{".applink-show-video":{application:o.OV.LIBRARY_EDITOR,action:o.eX.LibraryEditor.VIDEO_DETAILS,args:[this.model.get("id")]}}}},{key:"regions",value:function(){return{sources:{el:".sources-region",replaceElement:!0},badges:{el:".badges-region",replaceElement:!0},series:{el:".series-region",replaceElement:!0}}}},{key:"events",value:function(){return e={click:"onClick"},t="onClickSvg",(n="click ".concat(M.svgContainer))in e?Object.defineProperty(e,n,{value:t,enumerable:!0,configurable:!0,writable:!0}):e[n]=t,e;var e,n,t}},{key:"onClickSvg",value:function(e){e.stopPropagation()}},{key:"getKeyPhrases",value:function(){var e=this;return c.m$.extractKeyPhrases(this.model.get("description"),this.model.get("_matchedWords"),100,2).map((function(n){return c.m$.wordsHighlighter(c.m$.escapeExpression(n),e.model.get("_matchedWords"))}))}},{key:"renderSources",value:function(){var e=g.extend({},{model:this.model},this.options.sourceMetadataOptions);this.showChildView("sources",new R.V(e))}},{key:"renderSeries",value:function(){this.showChildView("series",new _.O({model:this.model,highlight:this.options.sourceMetadataOptions&&!!this.options.sourceMetadataOptions.highlight}))}},{key:"renderBadges",value:function(){this.showChildView("badges",new I({model:this.model}))}},{key:"viewOptions",value:function(){return{styles:M,name:c.m$.wordsHighlighter(c.m$.escapeExpression(this.model.get("name")),this.model.get("_matchedWords")),keyPhrases:this.getKeyPhrases(),hasAdminRestriction:c.S9.hasAdminRestriction(this.model),restrictionMessage:c.S9.getRestrictionTooltipMessage(this.model),lockSvg:v.Nj.getSvg(v.vn.Lock)}}},{key:"onRender",value:function(){this.renderSeries(),this.renderSources(),this.renderBadges()}}])&&xe(n.prototype,t),Object.defineProperty(n,"prototype",{writable:!1}),a}(l.Q.Component),Te=t(48088),Ve=t(66882),Me=t(15900),De=t.n(Me),Ae={actions:"xyPxU",showPreview:"XMkZv"};function Le(e){return Le="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},Le(e)}function Be(e,n){for(var t=0;t<n.length;t++){var o=n[t];o.enumerable=o.enumerable||!1,o.configurable=!0,"value"in o&&(o.writable=!0),Object.defineProperty(e,o.key,o)}}function Ne(e,n){return Ne=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(e,n){return e.__proto__=n,e},Ne(e,n)}function Ue(e,n){if(n&&("object"===Le(n)||"function"==typeof n))return n;if(void 0!==n)throw new TypeError("Derived constructors may only return object or undefined");return function(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}(e)}function He(e){return He=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(e){return e.__proto__||Object.getPrototypeOf(e)},He(e)}var Qe=function(e){!function(e,n){if("function"!=typeof n&&null!==n)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(n&&n.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),Object.defineProperty(e,"prototype",{writable:!1}),n&&Ne(e,n)}(l,e);var n,t,o,i,r=(o=l,i=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(e){return!1}}(),function(){var e,n=He(o);if(i){var t=He(this).constructor;e=Reflect.construct(n,arguments,t)}else e=n.apply(this,arguments);return Ue(this,e)});function l(e){return function(e,n){if(!(e instanceof n))throw new TypeError("Cannot call a class as a function")}(this,l),r.call(this,e)}return n=l,(t=[{key:"name",get:function(){return"VideoItemActionsComponent"}},{key:"template",get:function(){return De()}},{key:"className",get:function(){return"d-flex h-100 flex-column align-items-end justify-content-between"}},{key:"lang",get:function(){return"shared._videoItemActions"}},{key:"regions",value:function(){return{videoActions:".video-actions-region"}}},{key:"events",value:function(){return e={},t="onClickShowPreview",(n="click .".concat(Ae.showPreview))in e?Object.defineProperty(e,n,{value:t,enumerable:!0,configurable:!0,writable:!0}):e[n]=t,e;var e,n,t}},{key:"onClickShowPreview",value:function(e){e.stopPropagation(),this.options.channelName&&Te.Radio.channel(this.options.channelName).trigger("click:show:preview")}},{key:"renderVideoActions",value:function(){this.showChildView("videoActions",new Ve.R(this.options.videoActionsOptions))}},{key:"viewOptions",value:function(){return{styles:Ae,previewDisplayed:this.options.previewDisplayed,previewSvg:v.Nj.getSvg(v.vn.Preview)}}},{key:"onRender",value:function(){this.renderVideoActions()}}])&&Be(n.prototype,t),Object.defineProperty(n,"prototype",{writable:!1}),l}(l.Q.Component),We=t(21679),ze=t(70065),Ke=t(52076),Ye=t(72108),Xe=t.n(Ye);function Ze(e){return Ze="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},Ze(e)}function Ge(e,n){for(var t=0;t<n.length;t++){var o=n[t];o.enumerable=o.enumerable||!1,o.configurable=!0,"value"in o&&(o.writable=!0),Object.defineProperty(e,o.key,o)}}function Fe(e,n){return Fe=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(e,n){return e.__proto__=n,e},Fe(e,n)}function $e(e,n){if(n&&("object"===Ze(n)||"function"==typeof n))return n;if(void 0!==n)throw new TypeError("Derived constructors may only return object or undefined");return function(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}(e)}function qe(e){return qe=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(e){return e.__proto__||Object.getPrototypeOf(e)},qe(e)}var Je=function(e){!function(e,n){if("function"!=typeof n&&null!==n)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(n&&n.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),Object.defineProperty(e,"prototype",{writable:!1}),n&&Fe(e,n)}(a,e);var n,t,i,r,l=(i=a,r=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(e){return!1}}(),function(){var e,n=qe(i);if(r){var t=qe(this).constructor;e=Reflect.construct(n,arguments,t)}else e=n.apply(this,arguments);return $e(this,e)});function a(e){return function(e,n){if(!(e instanceof n))throw new TypeError("Cannot call a class as a function")}(this,a),l.call(this,e)}return n=a,(t=[{key:"initialize",value:function(){this.restrictedVideoDataService=We.u.getInstance(o.Or.RestrictedVideo,this)}},{key:"name",get:function(){return"VideoItemReviewActionsComponent"}},{key:"template",get:function(){return Xe()}},{key:"lang",get:function(){return"shared.videoItemReviewActions"}},{key:"className",get:function(){return"d-flex h-100 flex-column align-items-end"}},{key:"events",value:function(){return e={"click .approve":"onClickApprove","click .applink-manage-video-access":"onClickManageVideoAccess"},t="onClickShowPreview",(n="click .".concat(Ae.showPreview))in e?Object.defineProperty(e,n,{value:t,enumerable:!0,configurable:!0,writable:!0}):e[n]=t,e;var e,n,t}},{key:"appLinks",get:function(){return{".applink-manage-video-access":{application:o.OV.CONTENT_UPDATES,action:o.eX.Shared.MANAGE_VIDEO_ACCESS,args:[this.model.get("id")]}}}},{key:"onClickApprove",value:function(e){e.stopPropagation(),this.restrictedVideoDataService.deleteVideoRestriction(this.model.get("id")),this.logApproveAction()}},{key:"onClickManageVideoAccess",value:function(e){e.stopPropagation(),this.logManageAccessAction()}},{key:"onClickShowPreview",value:function(e){e.stopPropagation(),this.options.channelName&&Te.Radio.channel(this.options.channelName).trigger("click:show:preview")}},{key:"logApproveAction",value:function(){var e={location:ze.LocationContext.AwaitingReviewVideoItem,actionType:ze.UserAction.Approve,entity:ze.EntityType.Video,descriptor:ze.OperationDescriptor.Single,workflowPhase:ze.WorkflowPhase.Complete},n={id:this.model.get("id")};Ke.k.logUserAction(n,e)}},{key:"logManageAccessAction",value:function(){var e={location:ze.LocationContext.AwaitingReviewVideoItem,actionType:ze.UserAction.SetAccess,entity:ze.EntityType.Video,workflowPhase:ze.WorkflowPhase.Start},n={id:this.model.get("id")};Ke.k.logUserAction(n,e)}},{key:"viewOptions",value:function(){return{styles:Ae,previewDisplayed:this.options.previewDisplayed,previewSvg:v.Nj.getSvg(v.vn.Preview)}}}])&&Ge(n.prototype,t),Object.defineProperty(n,"prototype",{writable:!1}),a}(l.Q.Component),en=t(66774),nn=t.n(en);function tn(e){return tn="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},tn(e)}function on(e,n){for(var t=0;t<n.length;t++){var o=n[t];o.enumerable=o.enumerable||!1,o.configurable=!0,"value"in o&&(o.writable=!0),Object.defineProperty(e,o.key,o)}}function rn(e,n){return rn=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(e,n){return e.__proto__=n,e},rn(e,n)}function ln(e,n){if(n&&("object"===tn(n)||"function"==typeof n))return n;if(void 0!==n)throw new TypeError("Derived constructors may only return object or undefined");return function(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}(e)}function an(e){return an=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(e){return e.__proto__||Object.getPrototypeOf(e)},an(e)}var sn=function(e){!function(e,n){if("function"!=typeof n&&null!==n)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(n&&n.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),Object.defineProperty(e,"prototype",{writable:!1}),n&&rn(e,n)}(a,e);var n,t,i,r,l=(i=a,r=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(e){return!1}}(),function(){var e,n=an(i);if(r){var t=an(this).constructor;e=Reflect.construct(n,arguments,t)}else e=n.apply(this,arguments);return ln(this,e)});function a(e){return function(e,n){if(!(e instanceof n))throw new TypeError("Cannot call a class as a function")}(this,a),l.call(this,e)}return n=a,(t=[{key:"name",get:function(){return"VideoItemVideoAccessComponent"}},{key:"template",get:function(){return nn()}},{key:"lang",get:function(){return"shared.videoItemVideoAccessActions"}},{key:"className",get:function(){return"d-flex h-100 flex-column align-items-end justify-content-between"}},{key:"appLinks",get:function(){return{".applink-manage-video-access":{application:o.OV.VIDEO_ACCESS,action:o.eX.Shared.MANAGE_VIDEO_ACCESS,args:[this.model.get("id")]}}}},{key:"events",value:function(){return e={"click .applink-manage-video-access":"onClickManageVideoAccess"},t="onClickShowPreview",(n="click .".concat(Ae.showPreview))in e?Object.defineProperty(e,n,{value:t,enumerable:!0,configurable:!0,writable:!0}):e[n]=t,e;var e,n,t}},{key:"onClickManageVideoAccess",value:function(e){e.stopPropagation(),this.logAction()}},{key:"onClickShowPreview",value:function(e){e.stopPropagation(),this.options.channelName&&Te.Radio.channel(this.options.channelName).trigger("click:show:preview")}},{key:"logAction",value:function(){var e={location:ze.LocationContext.VideoListItem,actionType:ze.UserAction.SetAccess,entity:ze.EntityType.Video,workflowPhase:ze.WorkflowPhase.Start},n={id:this.model.get("id")};Ke.k.logUserAction(n,e)}},{key:"viewOptions",value:function(){return{styles:Ae,previewDisplayed:this.options.previewDisplayed,previewSvg:v.Nj.getSvg(v.vn.Preview)}}}])&&on(n.prototype,t),Object.defineProperty(n,"prototype",{writable:!1}),a}(l.Q.Component),cn=t(23130),un=t(61356),pn=t(29457),fn=t(57857),dn=t(58085),hn=t(44391),yn=t(26457),mn=t(85597),gn=t.n(mn);function vn(e){return vn="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},vn(e)}function bn(e,n){for(var t=0;t<n.length;t++){var o=n[t];o.enumerable=o.enumerable||!1,o.configurable=!0,"value"in o&&(o.writable=!0),Object.defineProperty(e,o.key,o)}}function wn(e,n){return wn=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(e,n){return e.__proto__=n,e},wn(e,n)}function kn(e,n){if(n&&("object"===vn(n)||"function"==typeof n))return n;if(void 0!==n)throw new TypeError("Derived constructors may only return object or undefined");return function(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}(e)}function On(e){return On=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(e){return e.__proto__||Object.getPrototypeOf(e)},On(e)}var Cn=function(e){!function(e,n){if("function"!=typeof n&&null!==n)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(n&&n.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),Object.defineProperty(e,"prototype",{writable:!1}),n&&wn(e,n)}(a,e);var n,t,i,r,l=(i=a,r=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(e){return!1}}(),function(){var e,n=On(i);if(r){var t=On(this).constructor;e=Reflect.construct(n,arguments,t)}else e=n.apply(this,arguments);return kn(this,e)});function a(e){return function(e,n){if(!(e instanceof n))throw new TypeError("Cannot call a class as a function")}(this,a),l.call(this,e)}return n=a,(t=[{key:"name",get:function(){return"ExpandableTagListComponent"}},{key:"template",get:function(){return gn()}},{key:"lang",get:function(){return"libraryEditor.expandableTagList"}},{key:"defaults",get:function(){return{initialTagDisplayCount:5,expandedTagDisplayCount:10}}},{key:"appLinks",get:function(){return{".applink-video-details":{application:o.OV.LIBRARY_EDITOR,action:o.eX.LibraryEditor.VIDEO_DETAILS,args:[this.options.videoId]}}}},{key:"events",value:function(){return{"click .show-more-tags":"onClickShowMoreTags"}}},{key:"regions",value:function(){return{tags:{replaceElement:!0,el:".tags-region"}}}},{key:"onClickShowMoreTags",value:function(){this.showingMoreTags=!0,this.options.channelName&&Te.Radio.channel(this.options.channelName).trigger("show:more:tags"),this.render()}},{key:"getTagCollection",value:function(){var e=this.showingMoreTags?this.options.expandedTagDisplayCount:this.options.initialTagDisplayCount;return new dn.E(this.collection.slice(0,e))}},{key:"getExtraTagsInfo",value:function(){if(!this.showingMoreTags)return fn.T.getPhrase(this.lang,"extraTags",{smartCount:g.max([this.collection.length-this.options.initialTagDisplayCount,0])})}},{key:"renderTags",value:function(){var e=new hn.K({collection:this.getTagCollection(),behavior:yn.Dm.Link});this.showChildView("tags",e)}},{key:"viewOptions",value:function(){return{expandable:this.collection.length>this.options.initialTagDisplayCount&&!this.showingMoreTags,extraTagsText:this.getExtraTagsInfo(),moreTags:this.showingMoreTags&&this.collection.length>this.options.expandedTagDisplayCount}}},{key:"onRender",value:function(){this.renderTags()}}])&&bn(n.prototype,t),Object.defineProperty(n,"prototype",{writable:!1}),a}(l.Q.Component),Pn=t(15035),En=t.n(Pn),Sn={columnNames:"vMHcA",smallSvgContainer:"xw6kv"};function xn(e){return xn="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},xn(e)}function jn(e,n){for(var t=0;t<n.length;t++){var o=n[t];o.enumerable=o.enumerable||!1,o.configurable=!0,"value"in o&&(o.writable=!0),Object.defineProperty(e,o.key,o)}}function In(e,n){return In=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(e,n){return e.__proto__=n,e},In(e,n)}function Rn(e,n){if(n&&("object"===xn(n)||"function"==typeof n))return n;if(void 0!==n)throw new TypeError("Derived constructors may only return object or undefined");return function(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}(e)}function _n(e){return _n=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(e){return e.__proto__||Object.getPrototypeOf(e)},_n(e)}var Tn=function(e){!function(e,n){if("function"!=typeof n&&null!==n)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(n&&n.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),Object.defineProperty(e,"prototype",{writable:!1}),n&&In(e,n)}(a,e);var n,t,i,r,l=(i=a,r=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(e){return!1}}(),function(){var e,n=_n(i);if(r){var t=_n(this).constructor;e=Reflect.construct(n,arguments,t)}else e=n.apply(this,arguments);return Rn(this,e)});function a(e){return function(e,n){if(!(e instanceof n))throw new TypeError("Cannot call a class as a function")}(this,a),l.call(this,e)}return n=a,(t=[{key:"initialize",value:function(){this.listenTo(this.model,"change",this.render),this.listenTo(this.channelName,"show:more:tags",this.onClickShowMoreTags)}},{key:"name",get:function(){return"VideoItemPreviewComponent"}},{key:"template",get:function(){return En()}},{key:"lang",get:function(){return"shared.videoItemPreview"}},{key:"className",get:function(){return"row px-3 m-0"}},{key:"channelName",get:function(){return"".concat(this.name).concat(this.cid)}},{key:"appLinks",get:function(){return{".applink-video-details":{application:o.OV.LIBRARY_EDITOR,action:o.eX.LibraryEditor.VIDEO_DETAILS,args:[this.model.get("id")]}}}},{key:"behaviors",get:function(){return[{behaviorClass:b.H,selector:".tool-tip"}]}},{key:"regions",value:function(){return{partialLoadingContainer:{el:".content-container-region",replaceElement:!1,partialLoading:pn.LP.VideoItemPreview},description:".description-region",preview:".video-preview-region",tags:{replaceElement:!0,el:".tags-region"}}}},{key:"events",value:function(){return{click:"onClick"}}},{key:"onClick",value:function(e){e.stopPropagation()}},{key:"onClickShowMoreTags",value:function(){Te.Radio.channel(this.options.channelName).trigger("resize:preview")}},{key:"showTags",value:function(){return!(!this.model.tags||!this.model.tags.length)}},{key:"renderDescription",value:function(){if(this.model&&this.model.get("description")){var e=new cn.Z({model:this.model,highlighter:!0,size:cn.t.Small,truncate:!0});this.showChildView("description",e)}}},{key:"renderTags",value:function(){if(this.showTags()){var e=new Cn({collection:this.model.tags,videoId:this.model.id&&this.model.get("id"),channelName:this.channelName});this.showChildView("tags",e)}}},{key:"renderVideoPreview",value:function(){var e=new un.c({model:this.model,webPlayerUrl:this.options.webPlayerUrl,analyticsOptions:{location:ze.LocationContext.VideoItemPreview},currentUser:this.options.currentUser,channelName:this.options.channelName,createViewKey:this.options.createViewKey,playerApiUrl:this.options.playerApiUrl});this.showChildView("preview",e)}},{key:"getSubtitleLanguage",value:function(){if(!this.model.subtitles||!this.model.get("subtitles").length)return"";var e=g.uniq(this.model.get("subtitles").map((function(e){return e.get("language")})));return g.map(e,(function(e){return CVLanguages.getFullEnglishName(e)})).join(", ")}},{key:"getDetails",value:function(e){if(!this.model[e]||!this.model.get(e).length)return"";var n=this.model.get(e).length;return n>1?"".concat(n," ").concat(e):"".concat(fn.T.getPhrase(this.lang,"one")," ").concat(e.slice(0,-1))}},{key:"onBeforeRender",value:function(){return!(!this.model||!this.model.get("dataFetched"))||(Te.Radio.channel(this.options.collectionViewChannel).trigger("fetch:video:with:metadata",this.options.videoId),!(!this.model||!this.model.get("dataFetched"))&&void 0)}},{key:"viewOptions",value:function(){if(this.model&&this.model.get("dataFetched")){var e=this.model.get("duration");return{styles:Sn,ratingClass:this.model.rating&&w.uB.mapRatingToClass(this.model.rating.get("value")),showTags:this.showTags(),description:this.model.get("description"),duration:e&&c.T.ToDisplayDuration(e),chapters:this.getDetails("chapters"),interactives:this.model.interactives&&this.model.get("interactives").length,subtitles:this.getSubtitleLanguage(),resources:this.getDetails("resources"),links:this.getDetails("links"),externalLink:this.options.externalLink,openExternalSvg:v.Nj.getSvg(v.vn.NewWindow)}}}},{key:"onRender",value:function(){this.renderDescription(),this.renderTags(),this.renderVideoPreview()}}])&&jn(n.prototype,t),Object.defineProperty(n,"prototype",{writable:!1}),a}(l.Q.Component),Vn=t(71548),Mn=t.n(Vn);function Dn(e){return Dn="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},Dn(e)}function An(e,n){for(var t=0;t<n.length;t++){var o=n[t];o.enumerable=o.enumerable||!1,o.configurable=!0,"value"in o&&(o.writable=!0),Object.defineProperty(e,o.key,o)}}function Ln(e,n){return Ln=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(e,n){return e.__proto__=n,e},Ln(e,n)}function Bn(e,n){if(n&&("object"===Dn(n)||"function"==typeof n))return n;if(void 0!==n)throw new TypeError("Derived constructors may only return object or undefined");return function(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}(e)}function Nn(e){return Nn=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(e){return e.__proto__||Object.getPrototypeOf(e)},Nn(e)}var Un,Hn,Qn,Wn,zn,Kn,Yn,Xn,Zn,Gn=function(e){!function(e,n){if("function"!=typeof n&&null!==n)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(n&&n.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),Object.defineProperty(e,"prototype",{writable:!1}),n&&Ln(e,n)}(l,e);var n,t,o,i,r=(o=l,i=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(e){return!1}}(),function(){var e,n=Nn(o);if(i){var t=Nn(this).constructor;e=Reflect.construct(n,arguments,t)}else e=n.apply(this,arguments);return Bn(this,e)});function l(e){return function(e,n){if(!(e instanceof n))throw new TypeError("Cannot call a class as a function")}(this,l),r.call(this,e)}return n=l,(t=[{key:"initialize",value:function(){this.bindListeners()}},{key:"name",get:function(){return"VideoItemProcessingActionsComponent"}},{key:"template",get:function(){return Mn()}},{key:"lang",get:function(){return"shared.videoItemProcessingActions"}},{key:"className",get:function(){return"d-flex h-100 flex-column align-items-end justify-content-between"}},{key:"events",value:function(){return{"click .cancel":"onClickCancel","click .retry":"onClickRetry"}}},{key:"onClickCancel",value:function(){var e=this.pendingItem.get("video").get("name");c.Ce.generateDialog(e,this.options.channelName,"cancel:pending:item",this.pendingItem)}},{key:"onClickRetry",value:function(){Te.Radio.channel(this.options.channelName).trigger("retry:pending:item",this.pendingItem)}},{key:"bindListeners",value:function(){this.model.get("status")===F.X.Processing&&this.options.pendingItems&&(this.pendingItem||(this.listenTo(this.options.pendingItems,"update",this.mapPendingItem),this.mapPendingItem()))}},{key:"mapPendingItem",value:function(){this.pendingItem=this.options.pendingItems.get(this.model.get("id")),this.render(),this.pendingItem&&(this.stopListening(this.options.pendingItems,"update"),this.listenTo(this.pendingItem,"change:pendingProcessStatus",this.render))}},{key:"viewOptions",value:function(){return{hasError:$.S.hasError(this.pendingItem)}}},{key:"onBeforeRender",value:function(){return!!this.pendingItem}}])&&An(n.prototype,t),Object.defineProperty(n,"prototype",{writable:!1}),l}(l.Q.Component),Fn=t(53426),$n=t(40622),qn=t(58688);function Jn(e,n,t){return n in e?Object.defineProperty(e,n,{value:t,enumerable:!0,configurable:!0,writable:!0}):e[n]=t,e}var et=qn.U,nt=qn.H,tt=function(e){var n="videos/".concat(e.model.id);return{component:i.Z,options:{model:e.model,lazyload:e.shouldLazyLoadThumbnail(),thumbnailOptions:{size:r.h2.Small},href:H.k.getMainProductUrl(e.options.config,n,n),channelName:e.channelName}}},ot=function(e){return{component:Tn,options:{model:e.options.videoWithMetadata,videoId:e.model.id.toString(),channelName:e.channelName,collectionViewChannel:e.options.collectionViewChannel,webPlayerUrl:e.options.config.get("webPlayerUrl"),currentUser:e.options.currentUser,playerApiUrl:e.options.playerApiUrl,createViewKey:e.options.createViewKey}}},it=function(e){var n="videos/".concat(e.model.id);return{component:Tn,options:{model:e.options.videoWithMetadata,videoId:e.model.id.toString(),channelName:e.channelName,collectionViewChannel:e.options.collectionViewChannel,webPlayerUrl:e.options.config.get("webPlayerUrl"),externalLink:H.k.getMainProductUrl(e.options.config,n,n),currentUser:e.options.currentUser,playerApiUrl:e.options.playerApiUrl,createViewKey:e.options.createViewKey}}},rt={componentOptions:(Kn={},Jn(Kn,et.Base,(Un={},Jn(Un,nt.Checkbox,(function(e){return{component:m,options:{className:"d-inline-flex align-items-center mr-3 ".concat(Fn.Z.checkboxContainer),checkboxClassName:Fn.Z.checkbox,itemId:e.model.id,key:e.collectionIdentifier.toString(),type:$n.CheckboxTypes.VIDEO_LIST}}})),Jn(Un,nt.Thumbnail,(function(e){return{component:i.Z,options:{model:e.model,lazyload:e.shouldLazyLoadThumbnail(),thumbnailOptions:{size:r.h2.Small},appLink:{application:o.OV.LIBRARY_EDITOR,action:o.eX.LibraryEditor.VIDEO_DETAILS,args:[e.model.id]},channelName:e.channelName}}})),Jn(Un,nt.Metadata,(function(e){return{component:U,options:{model:e.model,sourceMetadataOptions:e.options.sourceMetadataOptions}}})),Jn(Un,nt.VideoActions,(function(e){return{component:Qe,options:{model:e.model,channelName:e.channelName,previewDisplayed:e.viewModel.get("previewOpen"),videoActionsOptions:{model:e.model,application:e.options.application,collectionIdentifier:e.options.collectionIdentifier,customerHasLocalCache:e.options.customerHasLocalCache,customerHasExchange:e.options.customerHasExchange,customerHasCustomLibrary:e.options.customerHasCustomLibrary,analyticsOptions:e.options.analyticsOptions,config:e.options.config,collectionSource:e.options.videoCollectionSource}}}})),Jn(Un,nt.VideoInfo,ot),Un)),Jn(Kn,et.AwaitingReview,(Hn={},Jn(Hn,nt.Thumbnail,tt),Jn(Hn,nt.Metadata,(function(e){return{component:de,options:{model:e.model,config:e.options.config}}})),Jn(Hn,nt.VideoActions,(function(e){return{component:Je,options:{model:e.model,channelName:e.channelName,previewDisplayed:e.viewModel.get("previewOpen"),analyticsOptions:e.options.analyticsOptions}}})),Jn(Hn,nt.VideoInfo,it),Hn)),Jn(Kn,et.PastReleases,(Qn={},Jn(Qn,nt.Thumbnail,tt),Jn(Qn,nt.Metadata,(function(e){return{component:Ce,options:{model:e.model,config:e.options.config}}})),Jn(Qn,nt.VideoInfo,it),Qn)),Jn(Kn,et.VideoAccess,(Wn={},Jn(Wn,nt.VideoActions,(function(e){return{component:sn,options:{model:e.model,channelName:e.channelName,previewDisplayed:e.viewModel.get("previewOpen"),analyticsOptions:e.options.analyticsOptions}}})),Jn(Wn,nt.Metadata,(function(e){return{component:G,options:{model:e.model,config:e.options.config,sourceMetadataOptions:{showFolder:!0,libraries:e.options.libraries}}}})),Jn(Wn,nt.VideoInfo,(function(e){return c.M2.hasCustomLibrary(e.model)?ot(e):it(e)})),Wn)),Jn(Kn,et.ProcessingVideo,(zn={},Jn(zn,nt.Metadata,(function(e){return{component:re,options:{model:e.model,pendingItems:e.options.pendingItems}}})),Jn(zn,nt.VideoActions,(function(e){return{component:Gn,options:{model:e.model,pendingItems:e.options.pendingItems,channelName:e.options.collectionViewChannel,analyticsOptions:e.options.analyticsOptions}}})),zn)),Jn(Kn,et.Draggable,{}),Jn(Kn,et.Search,Jn({},nt.Metadata,(function(e){return{component:_e,options:{model:e.model,sourceMetadataOptions:{showFolder:!0,highlight:!0,libraries:e.options.libraries}}}}))),Kn),onBeforeRender:(Zn={},Jn(Zn,et.Base,(Yn={},Jn(Yn,nt.Checkbox,(function(e){return!!e.options.allowBulk})),Jn(Yn,nt.VideoInfo,(function(e){return!!e.viewModel.get("previewOpen")})),Yn)),Jn(Zn,et.ProcessingVideo,(Xn={},Jn(Xn,nt.Checkbox,(function(){return!1})),Jn(Xn,nt.VideoInfo,(function(){return!1})),Xn)),Zn)}},23096:function(e,n,t){"use strict";t.d(n,{Y:function(){return U}});var o=t(31647),i=t(70065),r=t(52076),l=t(80758),a=t(48088),s=t(99249),c=t(25417),u=t(48090),p=t(61843),f=t(14898),d=t(58688),h=t(56704),y=t.n(h),m=t(53426);function g(e){return g="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},g(e)}function v(e,n,t){return n in e?Object.defineProperty(e,n,{value:t,enumerable:!0,configurable:!0,writable:!0}):e[n]=t,e}function b(e,n){for(var t=0;t<n.length;t++){var o=n[t];o.enumerable=o.enumerable||!1,o.configurable=!0,"value"in o&&(o.writable=!0),Object.defineProperty(e,o.key,o)}}function w(e,n){return w=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(e,n){return e.__proto__=n,e},w(e,n)}function k(e,n){if(n&&("object"===g(n)||"function"==typeof n))return n;if(void 0!==n)throw new TypeError("Derived constructors may only return object or undefined");return function(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}(e)}function O(e){return O=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(e){return e.__proto__||Object.getPrototypeOf(e)},O(e)}var C=function(e){!function(e,n){if("function"!=typeof n&&null!==n)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(n&&n.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),Object.defineProperty(e,"prototype",{writable:!1}),n&&w(e,n)}(C,e);var n,t,l,h,g=(l=C,h=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(e){return!1}}(),function(){var e,n=O(l);if(h){var t=O(this).constructor;e=Reflect.construct(n,arguments,t)}else e=n.apply(this,arguments);return k(this,e)});function C(e){return function(e,n){if(!(e instanceof n))throw new TypeError("Cannot call a class as a function")}(this,C),g.call(this,e)}return n=C,t=[{key:"initialize",value:function(){this.initViewModel(),this.listenTo(this.channelName,"thumbnail:load",this.onThumbnailLoad),this.listenTo(this.channelName,"click:show:preview",this.onClickTogglePreview),this.listenTo(this.options.collectionViewChannel,"close:preview",this.onCloseCollectionPreview)}},{key:"name",get:function(){return"VideoItemComponent"}},{key:"defaults",get:function(){return{componentType:d.U.Base,allowBulk:!1}}},{key:"behaviors",get:function(){return f.a.getBehaviors(this,this.options.componentType)}},{key:"template",get:function(){return y()}},{key:"channelName",get:function(){return p.N0.generateUniqueChannelName(this)}},{key:"getTypeClassName",value:function(){return this.options.componentType===d.U.ProcessingVideo?m.Z.processingVideo:""}},{key:"className",get:function(){var e="";return this.options.allowBulk&&(e+=" ".concat(m.Z.allowBulk)),this.options.componentType&&(e+=" ".concat(this.getTypeClassName())),e}},{key:"props",get:function(){return["collectionIdentifier"]}},{key:"elements",get:function(){return{"drag-selector":".drag-item",previewContainer:".".concat(m.Z.previewContainer)}}},{key:"regions",value:function(){var e;return v(e={},d.H.Checkbox,{replaceElement:!0,el:".bulk-checkbox-region"}),v(e,d.H.Thumbnail,".thumbnail-region"),v(e,d.H.Metadata,".metadata-region"),v(e,d.H.VideoActions,".video-actions-region"),v(e,d.H.VideoInfo,".video-info-region"),e}},{key:"events",value:function(){return{click:"onClick"}}},{key:"initViewModel",value:function(){this.viewModel=s.r.get("".concat(this.name,":").concat(this.model.get("id")),{previewOpen:!1})}},{key:"isClickable",value:function(){return this.options.componentType!==d.U.ProcessingVideo}},{key:"onThumbnailLoad",value:function(){this.thumbnailLoaded=!0}},{key:"onClick",value:function(){this.isClickable()&&this.onClickTogglePreview(!1)}},{key:"onClickTogglePreview",value:function(){var e=!(arguments.length>0&&void 0!==arguments[0])||arguments[0];a.Radio.channel(this.options.collectionViewChannel).trigger("close:preview",this.cid),this.togglePreview(!this.viewModel.get("previewOpen")),this.logTogglePreviewAction(e)}},{key:"onNavigateAway",value:function(){this.viewModel.set({previewOpen:!1})}},{key:"togglePreview",value:function(e){var n=this;if(this.viewModel.set({previewOpen:e}),e)return this.setPreviewHeight(),this.listenToOnce(c.G.SHELL,o.Q.EventNames.ROUTE,this.onNavigateAway),void this.render();this.stopListening(a.Radio.channel(c.G.SHELL),o.Q.EventNames.ROUTE),this.getUI("previewContainer").height(0),window.setTimeout((function(){return n.render()}),300)}},{key:"setPreviewHeight",value:function(){var e=this;this.listenToOnce(this.getRegion(d.H.VideoInfo),"show",(function(){var n=e.getRegion(d.H.VideoInfo).currentView;e.listenTo(n,"render",(function(){e.getUI("previewContainer").height(n.$el.outerHeight())})),e.listenTo(e.channelName,"resize:preview",(function(){window.setTimeout((function(){return e.getUI("previewContainer").height(n.$el.outerHeight())}),0)})),n.isRendered()&&e.getUI("previewContainer").height(n.$el.outerHeight())}))}},{key:"onCloseCollectionPreview",value:function(e){this.cid!==e&&this.viewModel.get("previewOpen")&&this.togglePreview(!1)}},{key:"shouldLazyLoadThumbnail",value:function(){return!!p.Vm.isLazyLoadSupported(u.v9)&&!this.thumbnailLoaded}},{key:"logTogglePreviewAction",value:function(e){var n=r.k.mergeOptions(this.options.analyticsOptions,{actionType:i.UserAction.Click,descriptor:i.ClickDescriptor.TogglePreview,workflowPhase:i.WorkflowPhase.Complete}),t={buttonClicked:e,show:this.viewModel.get("previewOpen")};r.k.logUserAction(t,n)}},{key:"viewOptions",value:function(){return{styles:m.Z,allowBulk:this.options.allowBulk,bulkPlaceholder:this.options.componentType===d.U.ProcessingVideo&&this.options.allowBulk,isClickable:this.isClickable(),isLastItem:this.options.isLastItem}}},{key:"onRender",value:function(){f.a.renderRegions(this,this.options.componentType)}},{key:"onAttach",value:function(){this.viewModel.get("previewOpen")&&this.togglePreview(!0)}}],t&&b(n.prototype,t),Object.defineProperty(n,"prototype",{writable:!1}),C}(o.Q.Component),P=t(10101),E=t(50028),S=t(29457),x=t(26457),j=t(30606),I=t.n(j);function R(e){return R="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},R(e)}function _(e,n){if(!(e instanceof n))throw new TypeError("Cannot call a class as a function")}function T(e,n){for(var t=0;t<n.length;t++){var o=n[t];o.enumerable=o.enumerable||!1,o.configurable=!0,"value"in o&&(o.writable=!0),Object.defineProperty(e,o.key,o)}}function V(e,n,t){return n&&T(e.prototype,n),t&&T(e,t),Object.defineProperty(e,"prototype",{writable:!1}),e}function M(e,n){if("function"!=typeof n&&null!==n)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(n&&n.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),Object.defineProperty(e,"prototype",{writable:!1}),n&&D(e,n)}function D(e,n){return D=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(e,n){return e.__proto__=n,e},D(e,n)}function A(e){var n=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(e){return!1}}();return function(){var t,o=B(e);if(n){var i=B(this).constructor;t=Reflect.construct(o,arguments,i)}else t=o.apply(this,arguments);return L(this,t)}}function L(e,n){if(n&&("object"===R(n)||"function"==typeof n))return n;if(void 0!==n)throw new TypeError("Derived constructors may only return object or undefined");return function(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}(e)}function B(e){return B=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(e){return e.__proto__||Object.getPrototypeOf(e)},B(e)}var N=function(e){M(t,e);var n=A(t);function t(e){return _(this,t),n.call(this,e)}return V(t,[{key:"name",get:function(){return"VideoItemListComponent"}},{key:"childView",get:function(){return C}},{key:"childViewOptions",get:function(){var e=this;return function(n,t){return{componentType:n.get("status")===E.X.Processing?d.U.ProcessingVideo:e.options.videoItemComponentType,videoWithMetadata:e.options.videosWithMetadata&&e.options.videosWithMetadata.get(n.get("id")),allowBulk:e.options.allowBulk,collectionIdentifier:e.options.collectionIdentifier,application:e.options.application,pendingItems:e.options.pendingItems,config:e.options.config,sourceMetadataOptions:e.options.sourceMetadataOptions,collectionViewChannel:e.options.collectionViewChannel,customerHasLocalCache:e.options.customerHasLocalCache,customerHasExchange:e.options.customerHasExchange,customerHasCustomLibrary:e.options.customerHasCustomLibrary,analyticsOptions:e.options.analyticsOptions,videoCollectionSource:e.options.videoCollectionSource,currentUser:e.options.currentUser,playerApiUrl:e.options.playerApiUrl,createViewKey:e.options.createViewKey,isLastItem:!e.options.hasCursors&&t===e.collection.length-1,libraries:e.options.libraries}}}}]),t}(o.Q.ComponentCollection),U=function(e){M(t,e);var n=A(t);function t(e){return _(this,t),n.call(this,e)}return V(t,[{key:"name",get:function(){return"VideoListView"}},{key:"props",get:function(){return["collectionIdentifier"]}},{key:"template",get:function(){return I()}},{key:"defaults",get:function(){return{videoItemComponentType:d.U.Base,allowBulk:!1,emptyState:S.ub.Default,videoCollectionSource:x.x_.Folder}}},{key:"behaviors",get:function(){var e=[{behaviorClass:P.Im,selector:".lazy-img",minBrowserSupportVersion:u.v9}];return this.options.showEmptyState&&e.push({behaviorClass:l.o,region:"videos",type:this.options.emptyStateType,componentOptions:this.options.emptyStateOptions,emptyStateComponents:u.aW}),e}},{key:"regions",value:function(){return{videos:".videos-region"}}},{key:"onRender",value:function(){var e=new N({collection:this.collection,videosWithMetadata:this.options.videosWithMetadata,videoItemComponentType:this.options.videoItemComponentType,allowBulk:this.options.allowBulk,collectionIdentifier:this.collectionIdentifier,application:this.options.application,pendingItems:this.options.pendingItems,config:this.options.config,sourceMetadataOptions:this.options.sourceMetadataOptions,collectionViewChannel:this.options.collectionViewChannel,customerHasLocalCache:this.options.customerHasLocalCache,customerHasExchange:this.options.customerHasExchange,customerHasCustomLibrary:this.options.customerHasCustomLibrary,analyticsOptions:r.k.mergeOptions(this.options.analyticsOptions,{location:i.LocationContext.VideoListItem,entity:i.EntityType.Video}),videoCollectionSource:this.options.videoCollectionSource,currentUser:this.options.currentUser,playerApiUrl:this.options.playerApiUrl,createViewKey:this.options.createViewKey,hasCursors:this.options.hasCursors,libraries:this.options.libraries});this.showChildView("videos",e)}}]),t}(o.Q.Component)},62699:function(e,n,t){var o=t(32227);e.exports=(o.default||o).template({compiler:[8,">= 4.3.0"],main:function(e,n,t,o,i){e.propertyIsEnumerable;var r,l=e.lambda,a=e.escapeExpression;return'<span class="'+a(l(null!=(r=null!=(r=null!=n?n.options:n)?r.styles:r)?r.svgContainer:r,n))+' mr-2">'+(null!=(r=l(null!=(r=null!=n?n.options:n)?r.svg:r,n))?r:"")+'</span>\n<span class="'+a(l(null!=(r=null!=(r=null!=n?n.options:n)?r.styles:r)?r.dragText:r,n))+'">'+a(l(null!=(r=null!=n?n.options:n)?r.text:r,n))+"</span>"},useData:!0})},85597:function(e,n,t){var o=t(32227);e.exports=(o.default||o).template({1:function(e,n,t,o,i){var r;return e.propertyIsEnumerable,' <a class="info-link show-more-tags">'+e.escapeExpression(e.lambda(null!=(r=null!=n?n.options:n)?r.extraTagsText:r,n))+"</a>\n"},3:function(e,n,t,o,i){return e.propertyIsEnumerable,' <a class="info-link applink-video-details">'+e.escapeExpression((t.lang||n&&n.lang||e.hooks.helperMissing).call(null!=n?n:e.nullContext||{},"viewAllTags",{name:"lang",hash:{},data:i}))+"</a>\n"},compiler:[8,">= 4.3.0"],main:function(e,n,t,o,i){e.propertyIsEnumerable;var r,l=null!=n?n:e.nullContext||{};return'<div class="tags-region"></div>\n\n'+(null!=(r=t.if.call(l,null!=(r=null!=n?n.options:n)?r.expandable:r,{name:"if",hash:{},fn:e.program(1,i,0),inverse:e.noop,data:i}))?r:"")+(null!=(r=t.if.call(l,null!=(r=null!=n?n.options:n)?r.moreTags:r,{name:"if",hash:{},fn:e.program(3,i,0),inverse:e.noop,data:i}))?r:"")},useData:!0})},16317:function(e,n,t){var o=t(32227);e.exports=(o.default||o).template({1:function(e,n,t,o,i){return" cursor-pointer"},3:function(e,n,t,o,i){return"checked"},5:function(e,n,t,o,i){return"disabled"},compiler:[8,">= 4.3.0"],main:function(e,n,t,o,i){e.propertyIsEnumerable;var r,l=e.lambda,a=e.escapeExpression,s=null!=n?n:e.nullContext||{};return'<div class="custom-control custom-checkbox '+a(l(null!=(r=null!=n?n.options:n)?r.checkboxClassName:r,n))+'">\n <input name="checkbox-'+a(l(null!=(r=null!=n?n.options:n)?r.id:r,n))+'" id="checkbox-'+a(l(null!=(r=null!=n?n.options:n)?r.id:r,n))+'" type="checkbox" class="custom-control-input'+(null!=(r=t.unless.call(s,null!=(r=null!=n?n.options:n)?r.disabled:r,{name:"unless",hash:{},fn:e.program(1,i,0),inverse:e.noop,data:i}))?r:"")+'" '+(null!=(r=t.if.call(s,null!=(r=null!=n?n.options:n)?r.checked:r,{name:"if",hash:{},fn:e.program(3,i,0),inverse:e.noop,data:i}))?r:"")+" "+(null!=(r=t.if.call(s,null!=(r=null!=n?n.options:n)?r.disabled:r,{name:"if",hash:{},fn:e.program(5,i,0),inverse:e.noop,data:i}))?r:"")+' />\n <label class="custom-control-label'+(null!=(r=t.unless.call(s,null!=(r=null!=n?n.options:n)?r.disabled:r,{name:"unless",hash:{},fn:e.program(1,i,0),inverse:e.noop,data:i}))?r:"")+'" for="checkbox-'+a(l(null!=(r=null!=n?n.options:n)?r.id:r,n))+'"> </label>\n</div>'},useData:!0})},15035:function(e,n,t){var o=t(32227);e.exports=(o.default||o).template({1:function(e,n,t,o,i){return e.propertyIsEnumerable," <p>"+e.escapeExpression((t.lang||n&&n.lang||e.hooks.helperMissing).call(null!=n?n:e.nullContext||{},"noDescription",{name:"lang",hash:{},data:i}))+"</p>\n"},3:function(e,n,t,o,i){return' <div class="description-region"></div>\n'},5:function(e,n,t,o,i){e.propertyIsEnumerable;var r,l=e.lambda,a=e.escapeExpression;return' <div class="col-6 pb-1 '+a(l(null!=(r=null!=(r=null!=n?n.options:n)?r.styles:r)?r.columnNames:r,n))+'">'+a((t.lang||n&&n.lang||e.hooks.helperMissing).call(null!=n?n:e.nullContext||{},"rating",{name:"lang",hash:{},data:i}))+'</div>\n <div class="col-6 mb-0 pb-1">\n <span class="badge p-1 text-white tool-tip '+a(l(null!=(r=null!=n?n.options:n)?r.ratingClass:r,n))+'" title="'+a(l(null!=(r=null!=n?n.rating:n)?r.name:r,n))+'">'+a(l(null!=(r=null!=n?n.rating:n)?r.code:r,n))+"</span>\n </div>\n"},7:function(e,n,t,o,i){e.propertyIsEnumerable;var r,l,a=e.escapeExpression,s=null!=n?n:e.nullContext||{},c=e.hooks.helperMissing;return' <div class="col-6 py-1 '+a(e.lambda(null!=(r=null!=(r=null!=n?n.options:n)?r.styles:r)?r.columnNames:r,n))+'">'+a((t.lang||n&&n.lang||c).call(s,"productionYear",{name:"lang",hash:{},data:i}))+'</div>\n <p class="col-6 mb-0 py-1">'+a("function"==typeof(l=null!=(l=t.productionYear||(null!=n?n.productionYear:n))?l:c)?l.call(s,{name:"productionYear",hash:{},data:i}):l)+"</p>\n"},9:function(e,n,t,o,i){e.propertyIsEnumerable;var r,l=e.lambda,a=e.escapeExpression,s=null!=n?n:e.nullContext||{};return' <div class="col-6 py-1 '+a(l(null!=(r=null!=(r=null!=n?n.options:n)?r.styles:r)?r.columnNames:r,n))+'">'+a((t.lang||n&&n.lang||e.hooks.helperMissing).call(s,"chapters",{name:"lang",hash:{},data:i}))+'</div>\n <a\n class="col-6 info-link mb-0 py-1 '+(null!=(r=t.unless.call(s,null!=(r=null!=n?n.options:n)?r.externalLink:r,{name:"unless",hash:{},fn:e.program(10,i,0),inverse:e.noop,data:i}))?r:"")+'"\n'+(null!=(r=t.if.call(s,null!=(r=null!=n?n.options:n)?r.externalLink:r,{name:"if",hash:{},fn:e.program(12,i,0),inverse:e.noop,data:i}))?r:"")+" >\n "+a(l(null!=(r=null!=n?n.options:n)?r.chapters:r,n))+"\n "+(null!=(r=t.if.call(s,null!=(r=null!=n?n.options:n)?r.externalLink:r,{name:"if",hash:{},fn:e.program(14,i,0),inverse:e.noop,data:i}))?r:"")+"\n </a>\n"},10:function(e,n,t,o,i){return"applink-video-details"},12:function(e,n,t,o,i){var r;return e.propertyIsEnumerable,' href="'+e.escapeExpression(e.lambda(null!=(r=null!=n?n.options:n)?r.externalLink:r,n))+'"\n target="_blank"\n'},14:function(e,n,t,o,i){e.propertyIsEnumerable;var r,l=e.lambda;return'<div class="d-inline-block '+e.escapeExpression(l(null!=(r=null!=(r=null!=n?n.options:n)?r.styles:r)?r.smallSvgContainer:r,n))+'">'+(null!=(r=l(null!=(r=null!=n?n.options:n)?r.openExternalSvg:r,n))?r:"")+"</div>"},16:function(e,n,t,o,i){e.propertyIsEnumerable;var r,l=e.lambda,a=e.escapeExpression;return' <div class="col-6 py-1 '+a(l(null!=(r=null!=(r=null!=n?n.options:n)?r.styles:r)?r.columnNames:r,n))+'">'+a((t.lang||n&&n.lang||e.hooks.helperMissing).call(null!=n?n:e.nullContext||{},"interactives",{name:"lang",hash:{},data:i}))+'</div>\n <p class="col-6 mb-0 py-1">'+a(l(null!=(r=null!=n?n.options:n)?r.interactives:r,n))+"</p>\n"},18:function(e,n,t,o,i){e.propertyIsEnumerable;var r,l=e.lambda,a=e.escapeExpression;return' <div class="col-6 py-1 '+a(l(null!=(r=null!=(r=null!=n?n.options:n)?r.styles:r)?r.columnNames:r,n))+'">'+a((t.lang||n&&n.lang||e.hooks.helperMissing).call(null!=n?n:e.nullContext||{},"subtitles",{name:"lang",hash:{},data:i}))+'</div>\n <p class="col-6 mb-0 py-1">'+a(l(null!=(r=null!=n?n.options:n)?r.subtitles:r,n))+"</p>\n"},20:function(e,n,t,o,i){e.propertyIsEnumerable;var r,l=e.lambda,a=e.escapeExpression,s=null!=n?n:e.nullContext||{};return' <div class="col-6 py-1 '+a(l(null!=(r=null!=(r=null!=n?n.options:n)?r.styles:r)?r.columnNames:r,n))+'">'+a((t.lang||n&&n.lang||e.hooks.helperMissing).call(s,"resources",{name:"lang",hash:{},data:i}))+'</div>\n <a\n class="col-6 info-link mb-0 py-1 '+(null!=(r=t.unless.call(s,null!=(r=null!=n?n.options:n)?r.externalLink:r,{name:"unless",hash:{},fn:e.program(10,i,0),inverse:e.noop,data:i}))?r:"")+'"\n'+(null!=(r=t.if.call(s,null!=(r=null!=n?n.options:n)?r.externalLink:r,{name:"if",hash:{},fn:e.program(12,i,0),inverse:e.noop,data:i}))?r:"")+" >\n "+a(l(null!=(r=null!=n?n.options:n)?r.resources:r,n))+"\n "+(null!=(r=t.if.call(s,null!=(r=null!=n?n.options:n)?r.externalLink:r,{name:"if",hash:{},fn:e.program(14,i,0),inverse:e.noop,data:i}))?r:"")+"\n </a>\n"},22:function(e,n,t,o,i){e.propertyIsEnumerable;var r,l=e.lambda,a=e.escapeExpression,s=null!=n?n:e.nullContext||{};return' <div class="col-6 py-1 '+a(l(null!=(r=null!=(r=null!=n?n.options:n)?r.styles:r)?r.columnNames:r,n))+'">'+a((t.lang||n&&n.lang||e.hooks.helperMissing).call(s,"links",{name:"lang",hash:{},data:i}))+'</div>\n <a\n class="col-6 info-link mb-0 py-1 '+(null!=(r=t.unless.call(s,null!=(r=null!=n?n.options:n)?r.externalLink:r,{name:"unless",hash:{},fn:e.program(10,i,0),inverse:e.noop,data:i}))?r:"")+'"\n'+(null!=(r=t.if.call(s,null!=(r=null!=n?n.options:n)?r.externalLink:r,{name:"if",hash:{},fn:e.program(12,i,0),inverse:e.noop,data:i}))?r:"")+" >\n "+a(l(null!=(r=null!=n?n.options:n)?r.links:r,n))+"\n "+(null!=(r=t.if.call(s,null!=(r=null!=n?n.options:n)?r.externalLink:r,{name:"if",hash:{},fn:e.program(14,i,0),inverse:e.noop,data:i}))?r:"")+"\n </a>\n"},24:function(e,n,t,o,i){e.propertyIsEnumerable;var r,l=e.escapeExpression;return' <div class="py-1 '+l(e.lambda(null!=(r=null!=(r=null!=n?n.options:n)?r.styles:r)?r.columnNames:r,n))+'">'+l((t.lang||n&&n.lang||e.hooks.helperMissing).call(null!=n?n:e.nullContext||{},"tags",{name:"lang",hash:{},data:i}))+'</div>\n <div class="tags-region"></div>\n <div class="col-12"> </div>\n'},26:function(e,n,t,o,i){e.propertyIsEnumerable;var r,l=e.lambda,a=e.escapeExpression;return' <a href="'+a(l(null!=(r=null!=n?n.options:n)?r.externalLink:r,n))+'" target="_blank" class="info-link d-inline-block pt-3 '+a(l(null!=(r=null!=(r=null!=n?n.options:n)?r.styles:r)?r.columnNames:r,n))+'">\n '+a((t.lang||n&&n.lang||e.hooks.helperMissing).call(null!=n?n:e.nullContext||{},"goToVideo",{name:"lang",hash:{},data:i}))+'\n <div class="d-inline-block svg-container">'+(null!=(r=l(null!=(r=null!=n?n.options:n)?r.openExternalSvg:r,n))?r:"")+"</div>\n </a>\n"},28:function(e,n,t,o,i){e.propertyIsEnumerable;var r,l=e.escapeExpression;return' <a class="info-link applink-video-details d-inline-block pt-3 '+l(e.lambda(null!=(r=null!=(r=null!=n?n.options:n)?r.styles:r)?r.columnNames:r,n))+'">'+l((t.lang||n&&n.lang||e.hooks.helperMissing).call(null!=n?n:e.nullContext||{},"viewFullDetails",{name:"lang",hash:{},data:i}))+"</a>\n"},compiler:[8,">= 4.3.0"],main:function(e,n,t,o,i){e.propertyIsEnumerable;var r,l=e.lambda,a=e.escapeExpression,s=null!=n?n:e.nullContext||{},c=e.hooks.helperMissing;return'<div class="content-container-region row w-100 pl-0">\n <div class="col-8 pt-3">\n <p class="h5 '+a(l(null!=(r=null!=(r=null!=n?n.options:n)?r.styles:r)?r.columnNames:r,n))+'">'+a((t.lang||n&&n.lang||c).call(s,"description",{name:"lang",hash:{},data:i}))+"</p>\n \n"+(null!=(r=t.unless.call(s,null!=(r=null!=n?n.options:n)?r.description:r,{name:"unless",hash:{},fn:e.program(1,i,0),inverse:e.program(3,i,0),data:i}))?r:"")+' \n <div class="video-preview-region col-7 my-3 pl-0"></div>\n </div>\n <div class="col-4 my-3 pr-0 pl-3">\n <p class="h5 '+a(l(null!=(r=null!=(r=null!=n?n.options:n)?r.styles:r)?r.columnNames:r,n))+'">'+a((t.lang||n&&n.lang||c).call(s,"details",{name:"lang",hash:{},data:i}))+'</p>\n\n <div class="row">\n'+(null!=(r=t.if.call(s,null!=(r=null!=n?n.rating:n)?r.code:r,{name:"if",hash:{},fn:e.program(5,i,0),inverse:e.noop,data:i}))?r:"")+"\n"+(null!=(r=t.if.call(s,null!=n?n.productionYear:n,{name:"if",hash:{},fn:e.program(7,i,0),inverse:e.noop,data:i}))?r:"")+'\n <div class="col-6 py-1 '+a(l(null!=(r=null!=(r=null!=n?n.options:n)?r.styles:r)?r.columnNames:r,n))+'">'+a((t.lang||n&&n.lang||c).call(s,"duration",{name:"lang",hash:{},data:i}))+'</div>\n <p class="col-6 mb-0 py-1">'+a(l(null!=(r=null!=n?n.options:n)?r.duration:r,n))+"</p>\n\n"+(null!=(r=t.if.call(s,null!=(r=null!=n?n.options:n)?r.chapters:r,{name:"if",hash:{},fn:e.program(9,i,0),inverse:e.noop,data:i}))?r:"")+"\n"+(null!=(r=t.if.call(s,null!=(r=null!=n?n.options:n)?r.interactives:r,{name:"if",hash:{},fn:e.program(16,i,0),inverse:e.noop,data:i}))?r:"")+"\n"+(null!=(r=t.if.call(s,null!=(r=null!=n?n.options:n)?r.subtitles:r,{name:"if",hash:{},fn:e.program(18,i,0),inverse:e.noop,data:i}))?r:"")+"\n"+(null!=(r=t.if.call(s,null!=(r=null!=n?n.options:n)?r.resources:r,{name:"if",hash:{},fn:e.program(20,i,0),inverse:e.noop,data:i}))?r:"")+"\n"+(null!=(r=t.if.call(s,null!=(r=null!=n?n.options:n)?r.links:r,{name:"if",hash:{},fn:e.program(22,i,0),inverse:e.noop,data:i}))?r:"")+" </div>\n\n"+(null!=(r=t.if.call(s,null!=(r=null!=n?n.options:n)?r.showTags:r,{name:"if",hash:{},fn:e.program(24,i,0),inverse:e.noop,data:i}))?r:"")+"\n"+(null!=(r=t.if.call(s,null!=(r=null!=n?n.options:n)?r.externalLink:r,{name:"if",hash:{},fn:e.program(26,i,0),inverse:e.program(28,i,0),data:i}))?r:"")+" </div>\n</div>"},useData:!0})},56704:function(e,n,t){var o=t(32227);e.exports=(o.default||o).template({1:function(e,n,t,o,i){return" cursor-pointer"},3:function(e,n,t,o,i){return" rounded-bottom"},5:function(e,n,t,o,i){var r;return e.propertyIsEnumerable,' <div class="bulk-checkbox-region '+(null!=(r=t.if.call(null!=n?n:e.nullContext||{},null!=(r=null!=n?n.options:n)?r.bulkPlaceholder:r,{name:"if",hash:{},fn:e.program(6,i,0),inverse:e.noop,data:i}))?r:"")+'"></div>\n'},6:function(e,n,t,o,i){var r;return e.propertyIsEnumerable,e.escapeExpression(e.lambda(null!=(r=null!=(r=null!=n?n.options:n)?r.styles:r)?r.bulkPlaceholder:r,n))},compiler:[8,">= 4.3.0"],main:function(e,n,t,o,i){e.propertyIsEnumerable;var r,l=e.lambda,a=e.escapeExpression,s=null!=n?n:e.nullContext||{};return'<div class="d-flex justify-content-between align-items-stretch p-3 drag-item '+a(l(null!=(r=null!=(r=null!=n?n.options:n)?r.styles:r)?r.videoItem:r,n))+(null!=(r=t.if.call(s,null!=(r=null!=n?n.options:n)?r.isClickable:r,{name:"if",hash:{},fn:e.program(1,i,0),inverse:e.noop,data:i}))?r:"")+(null!=(r=t.if.call(s,null!=(r=null!=n?n.options:n)?r.isLastItem:r,{name:"if",hash:{},fn:e.program(3,i,0),inverse:e.noop,data:i}))?r:"")+'">\n'+(null!=(r=t.if.call(s,null!=(r=null!=n?n.options:n)?r.allowBulk:r,{name:"if",hash:{},fn:e.program(5,i,0),inverse:e.noop,data:i}))?r:"")+' <div class="thumbnail-region d-inline-block '+a(l(null!=(r=null!=(r=null!=n?n.options:n)?r.styles:r)?r.thumbnailContainer:r,n))+'"></div>\n <div class="metadata-region d-inline-block px-3 '+a(l(null!=(r=null!=(r=null!=n?n.options:n)?r.styles:r)?r.metaContainer:r,n))+'"></div>\n <div class="video-actions-region d-inline-block '+a(l(null!=(r=null!=(r=null!=n?n.options:n)?r.styles:r)?r.actionsContainer:r,n))+'"></div>\n</div>\n<div class="video-info-region '+a(l(null!=(r=null!=(r=null!=n?n.options:n)?r.styles:r)?r.previewContainer:r,n))+'"></div>'},useData:!0})},15900:function(e,n,t){var o=t(32227);e.exports=(o.default||o).template({1:function(e,n,t,o,i){return e.propertyIsEnumerable,e.escapeExpression((t.lang||n&&n.lang||e.hooks.helperMissing).call(null!=n?n:e.nullContext||{},"hide",{name:"lang",hash:{},data:i}))},3:function(e,n,t,o,i){return e.propertyIsEnumerable,e.escapeExpression((t.lang||n&&n.lang||e.hooks.helperMissing).call(null!=n?n:e.nullContext||{},"show",{name:"lang",hash:{},data:i}))},compiler:[8,">= 4.3.0"],main:function(e,n,t,o,i){e.propertyIsEnumerable;var r,l=e.lambda,a=e.escapeExpression,s=null!=n?n:e.nullContext||{};return'<div class="video-actions-region row no-gutters video-item-actions '+a(l(null!=(r=null!=(r=null!=n?n.options:n)?r.styles:r)?r.actions:r,n))+'"></div>\n<div class="row no-gutters cursor-pointer video-item-show-preview '+a(l(null!=(r=null!=(r=null!=n?n.options:n)?r.styles:r)?r.showPreview:r,n))+'">\n <span class="svg-container">'+(null!=(r=l(null!=(r=null!=n?n.options:n)?r.previewSvg:r,n))?r:"")+"</span>\n "+(null!=(r=t.if.call(s,null!=(r=null!=n?n.options:n)?r.previewDisplayed:r,{name:"if",hash:{},fn:e.program(1,i,0),inverse:e.program(3,i,0),data:i}))?r:"")+" "+a((t.lang||n&&n.lang||e.hooks.helperMissing).call(s,"preview",{name:"lang",hash:{},data:i}))+"\n</div>"},useData:!0})},71548:function(e,n,t){var o=t(32227);e.exports=(o.default||o).template({1:function(e,n,t,o,i){return e.propertyIsEnumerable,' <button class="btn btn-outline-dark retry">'+e.escapeExpression((t.lang||n&&n.lang||e.hooks.helperMissing).call(null!=n?n:e.nullContext||{},"retry",{name:"lang",hash:{},data:i}))+"</button>\n"},compiler:[8,">= 4.3.0"],main:function(e,n,t,o,i){e.propertyIsEnumerable;var r,l=null!=n?n:e.nullContext||{};return"<div>\n"+(null!=(r=t.if.call(l,null!=(r=null!=n?n.options:n)?r.hasError:r,{name:"if",hash:{},fn:e.program(1,i,0),inverse:e.noop,data:i}))?r:"")+' <button class="btn btn-outline-dark cancel">'+e.escapeExpression((t.lang||n&&n.lang||e.hooks.helperMissing).call(l,"cancel",{name:"lang",hash:{},data:i}))+"</button>\n</div>\n"},useData:!0})},72108:function(e,n,t){var o=t(32227);e.exports=(o.default||o).template({1:function(e,n,t,o,i){return e.propertyIsEnumerable,e.escapeExpression((t.lang||n&&n.lang||e.hooks.helperMissing).call(null!=n?n:e.nullContext||{},"hide",{name:"lang",hash:{},data:i}))},3:function(e,n,t,o,i){return e.propertyIsEnumerable,e.escapeExpression((t.lang||n&&n.lang||e.hooks.helperMissing).call(null!=n?n:e.nullContext||{},"show",{name:"lang",hash:{},data:i}))},compiler:[8,">= 4.3.0"],main:function(e,n,t,o,i){e.propertyIsEnumerable;var r,l=null!=n?n:e.nullContext||{},a=e.hooks.helperMissing,s=e.escapeExpression,c=e.lambda;return'<button class="approve d-flex btn btn btn-outline-dark" type="button">'+s((t.lang||n&&n.lang||a).call(l,"approve",{name:"lang",hash:{},data:i}))+'</button>\n<a class="applink-manage-video-access cursor-pointer hover-text-underline py-1">'+(null!=(r=(t.lang||n&&n.lang||a).call(l,"manageAccess",{name:"lang",hash:{},data:i}))?r:"")+'</a> \n<div class="row no-gutters cursor-pointer video-item-show-preview '+s(c(null!=(r=null!=(r=null!=n?n.options:n)?r.styles:r)?r.showPreview:r,n))+'"> \n <span class="svg-container">'+(null!=(r=c(null!=(r=null!=n?n.options:n)?r.previewSvg:r,n))?r:"")+"</span> \n "+(null!=(r=t.if.call(l,null!=(r=null!=n?n.options:n)?r.previewDisplayed:r,{name:"if",hash:{},fn:e.program(1,i,0),inverse:e.program(3,i,0),data:i}))?r:"")+" "+s((t.lang||n&&n.lang||a).call(l,"preview",{name:"lang",hash:{},data:i}))+"\n</div> "},useData:!0})},66774:function(e,n,t){var o=t(32227);e.exports=(o.default||o).template({1:function(e,n,t,o,i){return e.propertyIsEnumerable,e.escapeExpression((t.lang||n&&n.lang||e.hooks.helperMissing).call(null!=n?n:e.nullContext||{},"hide",{name:"lang",hash:{},data:i}))},3:function(e,n,t,o,i){return e.propertyIsEnumerable,e.escapeExpression((t.lang||n&&n.lang||e.hooks.helperMissing).call(null!=n?n:e.nullContext||{},"show",{name:"lang",hash:{},data:i}))},compiler:[8,">= 4.3.0"],main:function(e,n,t,o,i){e.propertyIsEnumerable;var r,l=null!=n?n:e.nullContext||{},a=e.hooks.helperMissing,s=e.escapeExpression,c=e.lambda;return'<button class="applink-manage-video-access d-flex btn btn-outline-dark" type="button">'+s((t.lang||n&&n.lang||a).call(l,"manageAccess",{name:"lang",hash:{},data:i}))+'</button>\n<div class="row no-gutters cursor-pointer video-item-show-preview '+s(c(null!=(r=null!=(r=null!=n?n.options:n)?r.styles:r)?r.showPreview:r,n))+'">\n <span class="svg-container">'+(null!=(r=c(null!=(r=null!=n?n.options:n)?r.previewSvg:r,n))?r:"")+"</span>\n "+(null!=(r=t.if.call(l,null!=(r=null!=n?n.options:n)?r.previewDisplayed:r,{name:"if",hash:{},fn:e.program(1,i,0),inverse:e.program(3,i,0),data:i}))?r:"")+" "+s((t.lang||n&&n.lang||a).call(l,"preview",{name:"lang",hash:{},data:i}))+"\n</div>"},useData:!0})},27367:function(e,n,t){var o=t(32227);e.exports=(o.default||o).template({1:function(e,n,t,o,i){e.propertyIsEnumerable;var r,l=e.lambda,a=e.escapeExpression;return' <span class="d-inline-block ml-1 tool-tip '+a(l(null!=(r=null!=(r=null!=n?n.options:n)?r.styles:r)?r.svgContainer:r,n))+'" title="'+a(l(null!=(r=null!=n?n.options:n)?r.restrictionMessage:r,n))+'">'+(null!=(r=l(null!=(r=null!=n?n.options:n)?r.lockSvg:r,n))?r:"")+"</span>\n"},compiler:[8,">= 4.3.0"],main:function(e,n,t,o,i){e.propertyIsEnumerable;var r,l,a=null!=n?n:e.nullContext||{};return'<div class="series-region"></div>\n<a class="cursor-pointer applink-show-video h5 text-dark">'+e.escapeExpression("function"==typeof(l=null!=(l=t.name||(null!=n?n.name:n))?l:e.hooks.helperMissing)?l.call(a,{name:"name",hash:{},data:i}):l)+"</a>\n"+(null!=(r=t.if.call(a,null!=(r=null!=n?n.options:n)?r.hasAdminRestriction:r,{name:"if",hash:{},fn:e.program(1,i,0),inverse:e.noop,data:i}))?r:"")+'<div class="sources-region"></div>\n<div class="badges-region"></div>'},useData:!0})},61539:function(e,n,t){var o=t(32227);e.exports=(o.default||o).template({compiler:[8,">= 4.3.0"],main:function(e,n,t,o,i){e.propertyIsEnumerable;var r,l,a=e.lambda,s=e.escapeExpression;return'<div class="series-region"></div>\n<a class="cursor-pointer h5 video-title text-dark" href="'+s(a(null!=(r=null!=n?n.options:n)?r.videoUrl:r,n))+'" target="_blank">'+s("function"==typeof(l=null!=(l=t.name||(null!=n?n.name:n))?l:e.hooks.helperMissing)?l.call(null!=n?n:e.nullContext||{},{name:"name",hash:{},data:i}):l)+'</a>\n<a class="svg-container d-inline-block align-bottom text-muted no-decoration" href="'+s(a(null!=(r=null!=n?n.options:n)?r.videoUrl:r,n))+'" target="_blank">'+(null!=(r=a(null!=(r=null!=n?n.options:n)?r.openExternalSvg:r,n))?r:"")+'</a>\n<div class="badges-region"></div>'},useData:!0})},53885:function(e,n,t){var o=t(32227);e.exports=(o.default||o).template({1:function(e,n,t,o,i){e.propertyIsEnumerable;var r,l=e.escapeExpression;return' <span class="badge p-1 '+l(e.lambda(null!=(r=null!=(r=null!=n?n.options:n)?r.styles:r)?r.interactive:r,n))+'">'+l((t.lang||n&&n.lang||e.hooks.helperMissing).call(null!=n?n:e.nullContext||{},"interactive",{name:"lang",hash:{},data:i}))+"</span>\n"},3:function(e,n,t,o,i){e.propertyIsEnumerable;var r,l=e.lambda,a=e.escapeExpression;return' <span class="badge p-1 tool-tip '+a(l(null!=(r=null!=(r=null!=n?n.options:n)?r.styles:r)?r.rating:r,n))+" "+a(l(null!=(r=null!=n?n.options:n)?r.ratingColorClass:r,n))+'" title="'+a(l(null!=(r=null!=n?n.rating:n)?r.name:r,n))+'">'+a(l(null!=(r=null!=n?n.rating:n)?r.code:r,n))+"</span>\n"},5:function(e,n,t,o,i){e.propertyIsEnumerable;var r,l=e.lambda;return' <span class="d-inline-block tool-tip '+e.escapeExpression(l(null!=(r=null!=(r=null!=n?n.options:n)?r.styles:r)?r.svgContainer:r,n))+'" title="Subtitles">'+(null!=(r=l(null!=(r=null!=n?n.options:n)?r.closeCaptionSvg:r,n))?r:"")+"</span>\n"},7:function(e,n,t,o,i){e.propertyIsEnumerable;var r,l=e.lambda;return' <span class="d-inline-block tool-tip '+e.escapeExpression(l(null!=(r=null!=(r=null!=n?n.options:n)?r.styles:r)?r.svgContainer:r,n))+'" title="Resources">'+(null!=(r=l(null!=(r=null!=n?n.options:n)?r.resourcesSvg:r,n))?r:"")+"</span>\n"},9:function(e,n,t,o,i){e.propertyIsEnumerable;var r,l=e.lambda,a=e.escapeExpression;return' <span class="badge p-1 '+a(l(null!=(r=null!=n?n.options:n)?r.awaitingReviewBadgeClass:r,n))+'">'+a(l(null!=(r=null!=n?n.options:n)?r.awaitingReviewMsg:r,n))+"</span>\n"},11:function(e,n,t,o,i){e.propertyIsEnumerable;var r,l=e.lambda,a=e.escapeExpression;return' <span class="badge p-1 '+a(l(null!=(r=null!=(r=null!=n?n.options:n)?r.styles:r)?r.restrictionBadgeClass:r,n))+'">'+a(l(null!=(r=null!=n?n.options:n)?r.restrictionMessage:r,n))+"</span>\n"},compiler:[8,">= 4.3.0"],main:function(e,n,t,o,i){e.propertyIsEnumerable;var r,l=null!=n?n:e.nullContext||{};return'<div class="mt-1 '+e.escapeExpression(e.lambda(null!=(r=null!=(r=null!=n?n.options:n)?r.styles:r)?r.badgesWrapper:r,n))+'">\n'+(null!=(r=t.if.call(l,null!=(r=null!=n?n.options:n)?r.interactive:r,{name:"if",hash:{},fn:e.program(1,i,0),inverse:e.noop,data:i}))?r:"")+"\n"+(null!=(r=t.if.call(l,null!=(r=null!=n?n.rating:n)?r.code:r,{name:"if",hash:{},fn:e.program(3,i,0),inverse:e.noop,data:i}))?r:"")+"\n"+(null!=(r=t.if.call(l,null!=(r=null!=n?n.options:n)?r.subtitles:r,{name:"if",hash:{},fn:e.program(5,i,0),inverse:e.noop,data:i}))?r:"")+"\n"+(null!=(r=t.if.call(l,null!=(r=null!=n?n.options:n)?r.resources:r,{name:"if",hash:{},fn:e.program(7,i,0),inverse:e.noop,data:i}))?r:"")+"\n"+(null!=(r=t.if.call(l,null!=(r=null!=n?n.options:n)?r.awaitingReviewMsg:r,{name:"if",hash:{},fn:e.program(9,i,0),inverse:e.noop,data:i}))?r:"")+"\n"+(null!=(r=t.if.call(l,null!=(r=null!=n?n.options:n)?r.restrictionMessage:r,{name:"if",hash:{},fn:e.program(11,i,0),inverse:e.noop,data:i}))?r:"")+"</div>"},useData:!0})},94559:function(e,n,t){var o=t(32227);e.exports=(o.default||o).template({1:function(e,n,t,o,i){e.propertyIsEnumerable;var r,l=e.lambda,a=e.escapeExpression;return' <span class="d-inline-block svg-container align-bottom tool-tip '+a(l(null!=(r=null!=(r=null!=n?n.options:n)?r.styles:r)?r.lock:r,n))+'" title="'+a(l(null!=(r=null!=n?n.options:n)?r.restrictionMessage:r,n))+'">'+(null!=(r=l(null!=(r=null!=n?n.options:n)?r.lockSvg:r,n))?r:"")+"</span>\n"},compiler:[8,">= 4.3.0"],main:function(e,n,t,o,i){e.propertyIsEnumerable;var r,l,a=e.lambda,s=e.escapeExpression,c=null!=n?n:e.nullContext||{};return'<div class="series-region"></div>\n<a class="cursor-pointer h5 video-title text-dark" href="'+s(a(null!=(r=null!=n?n.options:n)?r.videoUrl:r,n))+'" target="_blank">'+s("function"==typeof(l=null!=(l=t.name||(null!=n?n.name:n))?l:e.hooks.helperMissing)?l.call(c,{name:"name",hash:{},data:i}):l)+'</a>\n<a class="svg-container d-inline-block align-bottom text-muted no-decoration" href="'+s(a(null!=(r=null!=n?n.options:n)?r.videoUrl:r,n))+'" target="_blank">'+(null!=(r=a(null!=(r=null!=n?n.options:n)?r.openExternalSvg:r,n))?r:"")+"</a>\n"+(null!=(r=t.if.call(c,null!=(r=null!=n?n.options:n)?r.hasAdminRestriction:r,{name:"if",hash:{},fn:e.program(1,i,0),inverse:e.noop,data:i}))?r:"")+'<div class="badges-region"></div>'},useData:!0})},56914:function(e,n,t){var o=t(32227);e.exports=(o.default||o).template({1:function(e,n,t,o,i){e.propertyIsEnumerable;var r,l=e.lambda;return' <span class="d-inline-block align-middle ml-1 '+e.escapeExpression(l(null!=(r=null!=(r=null!=n?n.options:n)?r.styles:r)?r.lockSvgContainer:r,n))+'">'+(null!=(r=l(null!=(r=null!=n?n.options:n)?r.lockSvg:r,n))?r:"")+"</span>\n"},3:function(e,n,t,o,i){return"text-danger"},5:function(e,n,t,o,i){var r;return e.propertyIsEnumerable," "+e.escapeExpression(e.lambda(null!=(r=null!=n?n.options:n)?r.status:r,n))+"\n"},7:function(e,n,t,o,i){return e.propertyIsEnumerable," "+e.escapeExpression((t.lang||n&&n.lang||e.hooks.helperMissing).call(null!=n?n:e.nullContext||{},"waiting",{name:"lang",hash:{},data:i}))+"\n"},9:function(e,n,t,o,i){return e.propertyIsEnumerable," <br><i>"+e.escapeExpression((t.lang||n&&n.lang||e.hooks.helperMissing).call(null!=n?n:e.nullContext||{},"anotherAdmin",{name:"lang",hash:{},data:i}))+"</i>\n"},compiler:[8,">= 4.3.0"],main:function(e,n,t,o,i){e.propertyIsEnumerable;var r,l,a=null!=n?n:e.nullContext||{};return'<a class="applink-show-video h5 text-dark">'+e.escapeExpression("function"==typeof(l=null!=(l=t.name||(null!=n?n.name:n))?l:e.hooks.helperMissing)?l.call(a,{name:"name",hash:{},data:i}):l)+"</a>\n"+(null!=(r=t.if.call(a,null!=(r=null!=n?n.options:n)?r.hasAdminRestriction:r,{name:"if",hash:{},fn:e.program(1,i,0),inverse:e.noop,data:i}))?r:"")+'<div class="processing '+(null!=(r=t.if.call(a,null!=(r=null!=n?n.options:n)?r.hasError:r,{name:"if",hash:{},fn:e.program(3,i,0),inverse:e.noop,data:i}))?r:"")+'">\n'+(null!=(r=t.if.call(a,null!=(r=null!=n?n.options:n)?r.hasPendingItem:r,{name:"if",hash:{},fn:e.program(5,i,0),inverse:e.program(7,i,0),data:i}))?r:"")+(null!=(r=t.unless.call(a,null!=(r=null!=n?n.options:n)?r.hasPendingItem:r,{name:"unless",hash:{},fn:e.program(9,i,0),inverse:e.noop,data:i}))?r:"")+"</div>"},useData:!0})},47062:function(e,n,t){var o=t(32227);e.exports=(o.default||o).template({1:function(e,n,t,o,i){e.propertyIsEnumerable;var r,l=e.lambda,a=e.escapeExpression;return' <span class="d-inline-block ml-1 tool-tip '+a(l(null!=(r=null!=(r=null!=n?n.options:n)?r.styles:r)?r.svgContainer:r,n))+'" title="'+a(l(null!=(r=null!=n?n.options:n)?r.restrictionMessage:r,n))+'">'+(null!=(r=l(null!=(r=null!=n?n.options:n)?r.lockSvg:r,n))?r:"")+"</span>\n"},3:function(e,n,t,o,i){var r;return' <span class="d-block pt-1">'+(null!=(r=e.lambda(n,n))?r:"")+"</span>\n"},compiler:[8,">= 4.3.0"],main:function(e,n,t,o,i){e.propertyIsEnumerable;var r,l=null!=n?n:e.nullContext||{};return'<div class="series-region"></div>\n<a class="cursor-pointer applink-show-video h5 text-dark">'+(null!=(r=e.lambda(null!=(r=null!=n?n.options:n)?r.name:r,n))?r:"")+"</a>\n"+(null!=(r=t.if.call(l,null!=(r=null!=n?n.options:n)?r.hasAdminRestriction:r,{name:"if",hash:{},fn:e.program(1,i,0),inverse:e.noop,data:i}))?r:"")+'<div class="sources-region"></div>\n<div class="badges-region"></div>\n'+(null!=(r=t.each.call(l,null!=(r=null!=n?n.options:n)?r.keyPhrases:r,{name:"each",hash:{},fn:e.program(3,i,0),inverse:e.noop,data:i}))?r:"")},useData:!0})},94446:function(e,n,t){var o=t(32227);e.exports=(o.default||o).template({1:function(e,n,t,o,i){e.propertyIsEnumerable;var r,l,a=e.lambda,s=e.escapeExpression;return'<a class="cursor-pointer h5 video-title text-dark" href="'+s(a(null!=(r=null!=n?n.options:n)?r.videoUrl:r,n))+'" target="_blank">'+s("function"==typeof(l=null!=(l=t.name||(null!=n?n.name:n))?l:e.hooks.helperMissing)?l.call(null!=n?n:e.nullContext||{},{name:"name",hash:{},data:i}):l)+'</a>\n<a class="svg-container d-inline-block align-bottom text-muted no-decoration" href="'+s(a(null!=(r=null!=n?n.options:n)?r.videoUrl:r,n))+'" target="_blank">'+(null!=(r=a(null!=(r=null!=n?n.options:n)?r.openExternalSvg:r,n))?r:"")+"</a>\n"},3:function(e,n,t,o,i){var r;return e.propertyIsEnumerable,'<a class="cursor-pointer applink-show-video h6">'+e.escapeExpression("function"==typeof(r=null!=(r=t.name||(null!=n?n.name:n))?r:e.hooks.helperMissing)?r.call(null!=n?n:e.nullContext||{},{name:"name",hash:{},data:i}):r)+"</a>\n"},compiler:[8,">= 4.3.0"],main:function(e,n,t,o,i){e.propertyIsEnumerable;var r,l=e.lambda,a=e.escapeExpression;return'<div class="series-region"></div>\n'+(null!=(r=t.if.call(null!=n?n:e.nullContext||{},null!=(r=null!=n?n.options:n)?r.linkToOnline:r,{name:"if",hash:{},fn:e.program(1,i,0),inverse:e.program(3,i,0),data:i}))?r:"")+'<span class="d-inline-block ml-1 tool-tip '+a(l(null!=(r=null!=(r=null!=n?n.options:n)?r.styles:r)?r.lock:r,n))+" "+a(l(null!=(r=null!=(r=null!=n?n.options:n)?r.styles:r)?r.svgContainer:r,n))+'" title="'+a(l(null!=(r=null!=n?n.options:n)?r.restrictionMessage:r,n))+'">'+(null!=(r=l(null!=(r=null!=n?n.options:n)?r.lockSvg:r,n))?r:"")+'</span>\n<div class="sources-region"></div>\n<div class="badges-region"></div>'},useData:!0})},30606:function(e,n,t){var o=t(32227);e.exports=(o.default||o).template({compiler:[8,">= 4.3.0"],main:function(e,n,t,o,i){return'<div class="videos-region"></div>'},useData:!0})},53426:function(e,n){"use strict";n.Z={checkboxContainer:"sfB6X",thumbnailContainer:"u9oVV",metaContainer:"jnomD",actionsContainer:"BjK6Z",allowBulk:"VSdyH",videoItem:"p5AgE",processingVideo:"OOtNp",bulkPlaceholder:"IU_AK",previewContainer:"h4Ml1"}}}]);
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
(self.webpackChunk_clickview_library_editor=self.webpackChunk_clickview_library_editor||[]).push([[3400],{3400:function(e,t,r){"use strict";r.r(t),r.d(t,{DevErrorView:function(){return y}});var n=r(48088),o=r(31647),i=r(78084),u=r.n(i);function c(e){return c="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},c(e)}function a(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function l(e,t){for(var r=0;r<t.length;r++){var n=t[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(e,n.key,n)}}function f(e,t){return f=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(e,t){return e.__proto__=t,e},f(e,t)}function s(e,t){if(t&&("object"===c(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&&f(e,t)}(y,e);var t,r,o,i,c=(o=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=p(o);if(i){var r=p(this).constructor;e=Reflect.construct(t,arguments,r)}else e=t.apply(this,arguments);return s(this,e)});function y(){return a(this,y),c.apply(this,arguments)}return t=y,(r=[{key:"initialize",value:function(){var e=n.Radio.channel("error:view");this.error=e.request("current:error")}},{key:"name",get:function(){return"ErrorView"}},{key:"title",get:function(){return!1}},{key:"template",get:function(){return u()}},{key:"className",get:function(){return"mt-5"}},{key:"viewOptions",value:function(){return{message:this.error.message,stack:this.error.stack,name:this.error.name}}}])&&l(t.prototype,r),Object.defineProperty(t,"prototype",{writable:!1}),y}(o.Q.View)},78084:function(e,t,r){var n=r(32227);e.exports=(n.default||n).template({compiler:[8,">= 4.3.0"],main:function(e,t,r,n,o){e.propertyIsEnumerable;var i,u=e.lambda,c=e.escapeExpression;return"<h1>"+c(u(null!=(i=null!=t?t.options:t)?i.name:i,t))+'</h1>\n<div class="alert alert-danger" role="alert">\n <h2>'+c(u(null!=(i=null!=t?t.options:t)?i.message:i,t))+'</h2>\n</div>\n<div class="alert alert-warning" role="alert">\n <h3>Call stack</h3>\n <code>'+c(u(null!=(i=null!=t?t.options:t)?i.stack:i,t))+"</code>\n</div>"},useData:!0})}}]);
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
(self.webpackChunk_clickview_library_editor=self.webpackChunk_clickview_library_editor||[]).push([[3639],{63639:function(e,t,n){"use strict";n.r(t),n.d(t,{DeleteLibraryView:function(){return w}});var r=n(48088),i=n(21679),o=n(31647),a=n(52076),l=n(48090),c=n(10101),u=n(61843),s=n(88172),f=n(57857),y=n(56906),p=n(72634),h=n.n(p);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 d(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 m(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 v(e){return v=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(e){return e.__proto__||Object.getPrototypeOf(e)},v(e)}var w=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)}(k,e);var t,n,p,b,w=(p=k,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(e){return!1}}(),function(){var e,t=v(p);if(b){var n=v(this).constructor;e=Reflect.construct(t,arguments,n)}else e=t.apply(this,arguments);return m(this,e)});function k(e){return function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,k),w.call(this,e)}return t=k,(n=[{key:"initialize",value:function(){this.listenTo(l.Vk.LIBRARY,"libraries:sync",this.render),this.libraryDataService=i.u.getInstance(l.Or.Library,this)}},{key:"name",get:function(){return"DeleteLibraryView"}},{key:"title",get:function(){return f.T.getPhrase(this.lang,"title")}},{key:"lang",get:function(){return"libraryEditor.deleteLibrary"}},{key:"template",get:function(){return h()}},{key:"channelName",get:function(){return u.N0.generateUniqueChannelName(this)}},{key:"behaviors",get:function(){var e=this;return[{title:f.T.getPhrase(this.lang,"removeLibrary"),behaviorClass:c.Yw,spinnerButtonOptions:{channelName:this.channelName,buttonText:f.T.getPhrase(this.lang,"remove"),extraButtonClass:"btn-danger",onClick:function(){return e.onClickDelete()}}}]}},{key:"onClickDelete",value:function(){r.Radio.channel(this.channelName).trigger(s.I3.ShowSpinner),this.libraryDataService.deleteLibrary(this.options.libraryId,(function(){o.Q.AppLinkHelper.trigger({application:l.OV.LIBRARY_EDITOR,action:l.eX.LibraryEditor.HOME})})),this.logAction()}},{key:"logAction",value:function(){var e={id:this.options.libraryId};a.k.logUserAction(e,this.options.analyticsOptions)}},{key:"onBeforeRender",value:function(){var e=this;if(this.libraryDataService.getFolderFromLibraries(this.options.libraryId,(function(t){e.model=t})),!this.model)return!1;var t=null;return this.model.get("hasSubscribers")?t=new y.YP:this.model.children.length&&(t=new y.d7),t?(window.setTimeout((function(){e.triggerMethod("hide"),o.Q.ErrorHelper.throw(t)}),l.pA.POPUP_FADE_TIMEOUT),!1):!!this.model}}])&&d(t.prototype,n),Object.defineProperty(t,"prototype",{writable:!1}),k}(o.Q.View)},72634: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){var o;return e.propertyIsEnumerable,null!=(o=(n.lang||t&&t.lang||e.hooks.helperMissing).call(null!=t?t:e.nullContext||{},"check",{name:"lang",hash:{name:null!=t?t.name:t},data:i}))?o:""},useData:!0})}}]);
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
"use strict";(self.webpackChunk_clickview_library_editor=self.webpackChunk_clickview_library_editor||[]).push([[3746],{54096:function(e,t,r){r.d(t,{G:function(){return c}});var n=r(1024),o=r(21679);function c(e){var t,r;return t=e,r=o.u.getInstance(t),n.useEffect((function(){return function(){o.u.releaseInstance(t)}})),r}},2491:function(e,t,r){r.d(t,{Z:function(){return a}});var n=r(54096),o=r(21186),c=r(92159);function a(){var e=(0,n.G)(c.P.ALERT);return{success:function(t){e.success(t)()},error:function(t){e.error(t)()},warning:function(t){e.createAlert({type:o.NK.Warning,heading:o.R6.Warning,message:t})}}}},17942:function(e,t,r){r.r(t),r.d(t,{RemoveLogoView:function(){return h}});var n=r(1024),o=r.n(n),c=r(86120),a=r(57857),u=r(71575),i=r(85610),l=r(66703),s=r(2491),f=r(52076),p=r(70065),m=r(2248),v=r(48090);function y(e,t){(null==t||t>e.length)&&(t=e.length);for(var r=0,n=new Array(t);r<t;r++)n[r]=e[r];return n}var d="libraryEditor.removeLogo",g=a.T.encloseNamespace(d);function h(e){var t,r,n=(t=o().useState(!1),r=2,function(e){if(Array.isArray(e))return e}(t)||function(e,t){var r=null==e?null:"undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null!=r){var n,o,c=[],a=!0,u=!1;try{for(r=r.call(e);!(a=(n=r.next()).done)&&(c.push(n.value),!t||c.length!==t);a=!0);}catch(e){u=!0,o=e}finally{try{a||null==r.return||r.return()}finally{if(u)throw o}}return c}}(t,r)||function(e,t){if(e){if("string"==typeof e)return y(e,t);var r=Object.prototype.toString.call(e).slice(8,-1);return"Object"===r&&e.constructor&&(r=e.constructor.name),"Map"===r||"Set"===r?Array.from(e):"Arguments"===r||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r)?y(e,t):void 0}}(t,r)||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.")}()),a=n[0],h=n[1],b=c.a.useGetFetch(),w=(0,s.Z)();return o().createElement(u.G,{closePopup:e.closePopup,title:g("removeSchoolCrest")},o().createElement("p",null,o().createElement(l.x,{namespace:d,phrase:"areYouSure"})),o().createElement(i.u,null,o().createElement(i.u.Cancel,{onClick:e.closePopup}),o().createElement(i.u.Submit,{onClick:function(){var t,r,n,o;h(!0),b((t=e.customerId,r=e.logoId,n=function(){w.success(g("success")),f.k.logUserAction({id:e.logoId},{actionType:p.UserAction.Remove,entity:p.EntityType.Logo,workflowPhase:p.WorkflowPhase.Complete,location:p.LocationContext.Popup}),e.closePopup()},o=function(){w.success(g("error")),h(!1)},{url:"/api/domain/v2/objects/".concat(t,"/logo/").concat(r),key:"remove:logo:".concat(r),type:m.k.DELETE,success:n,error:o,invalidationKeys:[v.M_.LOGO],dataServices:[v.Or.Customer]}))},text:g("remove"),showSpinner:a,variant:"danger"})))}}}]);
|