@clickview/library-editor 1.54.1-dev.0 → 1.55.0-rc.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/bundles.json +3 -3
- package/dist/css/{4001-library-editor-da87291909.chunk.css → 4001-library-editor-f6d2f9fb58.chunk.css} +1 -1
- package/dist/css/{library-editor-app-08d619de95.css → library-editor-app-bcca987662.css} +1 -1
- package/dist/languages/en.json +1 -1
- package/dist/scripts/101-8f41923234.chunk.js +1 -0
- package/dist/scripts/{1010-2c4e71bac2.chunk.js → 1010-4a381a84d4.chunk.js} +1 -1
- package/dist/scripts/{1086-d0efa1a0ca.chunk.js → 1086-7632f7b45b.chunk.js} +1 -1
- package/dist/scripts/112-4f413f94c0.chunk.js +1 -0
- package/dist/scripts/1216-83f6fbc7be.chunk.js +1 -0
- package/dist/scripts/{1269-ec70091b19.chunk.js → 1269-02d8d91784.chunk.js} +1 -1
- package/dist/scripts/{1409-f3fea6c3c3.chunk.js → 1409-58db6bd9f7.chunk.js} +1 -1
- package/dist/scripts/152-808e046b1f.chunk.js +2 -0
- package/dist/scripts/{1703-0e6940a3c0.chunk.js → 1703-45ced13ccd.chunk.js} +1 -1
- package/dist/scripts/{1832-9fd96d5efe.chunk.js → 1832-6a54b38248.chunk.js} +1 -1
- package/dist/scripts/{1876-fc815ba31e.chunk.js → 1876-e0567188b8.chunk.js} +1 -1
- package/dist/scripts/1973-7a1768228d.chunk.js +1 -0
- package/dist/scripts/2417-7628573bf3.chunk.js +1 -0
- package/dist/scripts/{243-d27b3c7903.chunk.js → 243-25fcce188c.chunk.js} +1 -1
- package/dist/scripts/2482-ded3090c15.chunk.js +1 -0
- package/dist/scripts/{259-d6a4aa6694.chunk.js → 259-e24fcf8f12.chunk.js} +1 -1
- package/dist/scripts/{2601-d42245cb40.chunk.js → 2601-d46e5810eb.chunk.js} +1 -1
- package/dist/scripts/{2644-cadc6531d6.chunk.js → 2644-98304e9394.chunk.js} +1 -1
- package/dist/scripts/2648-0a58c0fc05.chunk.js +1 -0
- package/dist/scripts/{2692-b7dff9da8a.chunk.js → 2692-1ddd87476e.chunk.js} +1 -1
- package/dist/scripts/2802-d428814c29.chunk.js +2 -0
- package/dist/scripts/2802-d428814c29.chunk.js.LICENSE.txt +8 -0
- package/dist/scripts/{2803-026f3af7cb.chunk.js → 2803-fbb9d2439d.chunk.js} +1 -1
- package/dist/scripts/{2888-a406bcd564.chunk.js → 2888-c2c8b859cd.chunk.js} +1 -1
- package/dist/scripts/299-1a0d6a88dc.chunk.js +1 -0
- package/dist/scripts/{2998-a3c3a1e950.chunk.js → 2998-aae0ec14de.chunk.js} +1 -1
- package/dist/scripts/{3400-326dc33968.chunk.js → 3400-ebc91cde7a.chunk.js} +1 -1
- package/dist/scripts/343-41502b5d24.chunk.js +1 -0
- package/dist/scripts/{35-d04a61537f.chunk.js → 35-68aa98885c.chunk.js} +1 -1
- package/dist/scripts/{3551-97ac416527.chunk.js → 3551-ad62e3a403.chunk.js} +1 -1
- package/dist/scripts/{3639-171b53e474.chunk.js → 3639-c5cc04c72d.chunk.js} +1 -1
- package/dist/scripts/3746-9c62c31099.chunk.js +1 -0
- package/dist/scripts/376-83584040a3.chunk.js +1 -0
- package/dist/scripts/{3763-21a9bc8c81.chunk.js → 3763-47619f0e54.chunk.js} +1 -1
- package/dist/scripts/3969-c636ff3159.chunk.js +1 -0
- package/dist/scripts/4001-9194fbe77b.chunk.js +2 -0
- package/dist/scripts/4024-5bc8aa8dcd.chunk.js +1 -0
- package/dist/scripts/{4201-9f363cadea.chunk.js → 4201-ffd35af9cb.chunk.js} +1 -1
- package/dist/scripts/{4245-3680566469.chunk.js → 4245-59b4242cad.chunk.js} +1 -1
- package/dist/scripts/4523-55c4df85c8.chunk.js +1 -0
- package/dist/scripts/{4591-84bc2f21f0.chunk.js → 4591-78600e384c.chunk.js} +1 -1
- package/dist/scripts/{4860-7e9c7b578f.chunk.js → 4860-6001ab4e2a.chunk.js} +1 -1
- package/dist/scripts/5046-cb525612c6.chunk.js +1 -0
- package/dist/scripts/514-eeb95eba47.chunk.js +1 -0
- package/dist/scripts/{5173-6fe93f90b8.chunk.js → 5173-d333602893.chunk.js} +1 -1
- package/dist/scripts/{5286-c55bd5882c.chunk.js → 5286-7aac82c4d1.chunk.js} +1 -1
- package/dist/scripts/535-27d0457532.chunk.js +1 -0
- package/dist/scripts/{5412-abf3c7ab24.chunk.js → 5412-e2505df3a4.chunk.js} +1 -1
- package/dist/scripts/{5418-4cf3592f6a.chunk.js → 5418-f84d0ff359.chunk.js} +1 -1
- package/dist/scripts/{5424-fb9af4cac5.chunk.js → 5424-65be3c657c.chunk.js} +1 -1
- package/dist/scripts/5524-04583b6e40.chunk.js +1 -0
- package/dist/scripts/{5707-2455798bbe.chunk.js → 5707-fcb653aa7a.chunk.js} +1 -1
- package/dist/scripts/{5747-dc100fe944.chunk.js → 5747-674f00efcd.chunk.js} +1 -1
- package/dist/scripts/5850-74b0b14549.chunk.js +1 -0
- package/dist/scripts/5891-0864c38750.chunk.js +1 -0
- package/dist/scripts/{6093-c4d7d99258.chunk.js → 6093-e19df1d1fa.chunk.js} +1 -1
- package/dist/scripts/61-ec794cf02d.chunk.js +2 -0
- package/dist/scripts/{6352-9f5498c43f.chunk.js → 6352-6452f77c89.chunk.js} +1 -1
- package/dist/scripts/6532-48f3f080f5.chunk.js +2 -0
- package/dist/scripts/{6732-0223b7e084.chunk.js → 6732-85afd02f41.chunk.js} +1 -1
- package/dist/scripts/{6774-7d16e3a1b2.chunk.js → 6774-a002ac7253.chunk.js} +1 -1
- package/dist/scripts/{6788-1baf5483df.chunk.js → 6788-dc6b522995.chunk.js} +1 -1
- package/dist/scripts/6963-0e2bf1bde7.chunk.js +1 -0
- package/dist/scripts/7002-eef9319d36.chunk.js +1 -0
- package/dist/scripts/{7053-5f6f2bf8ee.chunk.js → 7053-35b82818eb.chunk.js} +1 -1
- package/dist/scripts/7071-6f7e375aaa.chunk.js +1 -0
- package/dist/scripts/708-c74c75f82a.chunk.js +1 -0
- package/dist/scripts/7153-57796cd98e.chunk.js +1 -0
- package/dist/scripts/{7190-b143292308.chunk.js → 7190-2b40df1e89.chunk.js} +1 -1
- package/dist/scripts/7295-474c754cb6.chunk.js +1 -0
- package/dist/scripts/{7376-e476873e22.chunk.js → 7376-e3bf3a94f9.chunk.js} +1 -1
- package/dist/scripts/{7408-eb04403233.chunk.js → 7408-15b5cc4a39.chunk.js} +1 -1
- package/dist/scripts/7827-ce63697325.chunk.js +1 -0
- package/dist/scripts/8113-d678e76098.chunk.js +1 -0
- package/dist/scripts/8130-0a0a9c4cab.chunk.js +1 -0
- package/dist/scripts/{8213-4d11becb33.chunk.js → 8213-6c873c853e.chunk.js} +1 -1
- package/dist/scripts/{8362-2712404025.chunk.js → 8362-267efdac61.chunk.js} +1 -1
- package/dist/scripts/8542-64733a5c92.chunk.js +1 -0
- package/dist/scripts/8591-149f4a2b62.chunk.js +1 -0
- package/dist/scripts/{8726-10013d1e22.chunk.js → 8726-2d0bc64637.chunk.js} +1 -1
- package/dist/scripts/{4506-e3e16c1c39.chunk.js → 8727-9077c2b877.chunk.js} +1 -1
- package/dist/scripts/{8762-0c818e61d0.chunk.js → 8762-be126e413d.chunk.js} +1 -1
- package/dist/scripts/{8906-3052c24e98.chunk.js → 8906-2ae58fb990.chunk.js} +1 -1
- package/dist/scripts/{8952-5dfd08cdc7.chunk.js → 8952-a9a7742f72.chunk.js} +2 -2
- package/dist/scripts/{9357-04700677af.chunk.js → 9357-e71ea6a34d.chunk.js} +1 -1
- package/dist/scripts/9369-1e706eb521.chunk.js +2 -0
- package/dist/scripts/9383-d58506608c.chunk.js +1 -0
- package/dist/scripts/{9695-8b46921478.chunk.js → 9695-636ea0ef64.chunk.js} +1 -1
- package/dist/scripts/{9927-1a5a65a341.chunk.js → 9927-7a935c955d.chunk.js} +1 -1
- package/dist/scripts/bundle-0a99cc18ef.min.js +2 -0
- package/dist/scripts/bundle-0a99cc18ef.min.js.LICENSE.txt +1 -0
- package/dist/scripts/{polyfills-e4d8584da7.min.js → polyfills-5ce436cbbe.min.js} +1 -1
- package/package.json +4 -4
- package/typings/libs/CVEvents.d.ts +13 -0
- package/typings/libs/CVLanguages.d.ts +24 -0
- package/typings/libs/LazyLoad.d.ts +30 -0
- package/typings/libs/LazyLoad.ts +27 -0
- package/typings/libs/cookiesjs.d.ts +24 -0
- package/typings/libs/lodash.d.ts +11 -0
- package/dist/scripts/101-1aa755b98b.chunk.js +0 -1
- package/dist/scripts/1216-9d2e314558.chunk.js +0 -1
- package/dist/scripts/1537-2945b91924.chunk.js +0 -1
- package/dist/scripts/1973-074d4e72c2.chunk.js +0 -1
- package/dist/scripts/209-f9e52775b1.chunk.js +0 -1
- package/dist/scripts/2516-0290fc7712.chunk.js +0 -1
- package/dist/scripts/2639-efe1222211.chunk.js +0 -2
- package/dist/scripts/2639-efe1222211.chunk.js.LICENSE.txt +0 -8
- package/dist/scripts/2648-61a84bc983.chunk.js +0 -1
- package/dist/scripts/2955-521e238d27.chunk.js +0 -1
- package/dist/scripts/299-32a1391000.chunk.js +0 -1
- package/dist/scripts/3746-9f89d2e526.chunk.js +0 -1
- package/dist/scripts/376-4d9e8d5305.chunk.js +0 -1
- package/dist/scripts/3969-14f58e46c8.chunk.js +0 -1
- package/dist/scripts/4001-5f16bcaff3.chunk.js +0 -2
- package/dist/scripts/4024-e76b07c207.chunk.js +0 -1
- package/dist/scripts/4523-e918636e67.chunk.js +0 -1
- package/dist/scripts/471-9ae0a7d088.chunk.js +0 -2
- package/dist/scripts/4984-e55e0bfa17.chunk.js +0 -1
- package/dist/scripts/514-9e42f33112.chunk.js +0 -2
- package/dist/scripts/514-9e42f33112.chunk.js.LICENSE.txt +0 -6
- package/dist/scripts/535-96be75b325.chunk.js +0 -1
- package/dist/scripts/5524-83e92242a1.chunk.js +0 -1
- package/dist/scripts/5698-74d4a95cab.chunk.js +0 -1
- package/dist/scripts/5850-21711256a9.chunk.js +0 -1
- package/dist/scripts/5891-1f548b9c62.chunk.js +0 -1
- package/dist/scripts/61-35a4e0dd3d.chunk.js +0 -2
- package/dist/scripts/6637-3078ed12bc.chunk.js +0 -1
- package/dist/scripts/6725-52d65e0d02.chunk.js +0 -2
- package/dist/scripts/6963-2e5edf04ac.chunk.js +0 -1
- package/dist/scripts/7071-9ae15d6979.chunk.js +0 -1
- package/dist/scripts/7153-11798dda90.chunk.js +0 -1
- package/dist/scripts/7295-c5ccbfe2be.chunk.js +0 -1
- package/dist/scripts/7416-bafece2a3d.chunk.js +0 -1
- package/dist/scripts/7827-53c10fe9d7.chunk.js +0 -1
- package/dist/scripts/8080-540165cb5c.chunk.js +0 -1
- package/dist/scripts/8113-eb9901344c.chunk.js +0 -1
- package/dist/scripts/8542-7dbc2fa676.chunk.js +0 -1
- package/dist/scripts/8591-920b0560e4.chunk.js +0 -1
- package/dist/scripts/8757-8ba60a3c5f.chunk.js +0 -2
- package/dist/scripts/8757-8ba60a3c5f.chunk.js.LICENSE.txt +0 -44
- package/dist/scripts/9077-fd1d054d31.chunk.js +0 -1
- package/dist/scripts/9134-8845590ece.chunk.js +0 -1
- package/dist/scripts/9369-cacc5f30e5.chunk.js +0 -2
- package/dist/scripts/9383-26ce3e3847.chunk.js +0 -1
- package/dist/scripts/bundle-5d010f1f12.min.js +0 -2
- package/dist/scripts/bundle-5d010f1f12.min.js.LICENSE.txt +0 -133
- package/typings/libs/cloneDeep.d.ts +0 -5
- /package/dist/css/{6637-library-editor-6a2d152d7d.chunk.css → 112-library-editor-6a2d152d7d.chunk.css} +0 -0
- /package/dist/css/{6725-library-editor-01b4461ff1.chunk.css → 152-library-editor-01b4461ff1.chunk.css} +0 -0
- /package/dist/css/{1537-library-editor-46f8e6e95b.chunk.css → 2417-library-editor-46f8e6e95b.chunk.css} +0 -0
- /package/dist/css/{209-library-editor-1b6dc45d45.chunk.css → 2482-library-editor-1b6dc45d45.chunk.css} +0 -0
- /package/dist/css/{2955-library-editor-d2f704c6a5.chunk.css → 343-library-editor-d2f704c6a5.chunk.css} +0 -0
- /package/dist/css/{9077-library-editor-765ea88cb0.chunk.css → 5046-library-editor-765ea88cb0.chunk.css} +0 -0
- /package/dist/css/{8080-library-editor-7ffe353138.chunk.css → 708-library-editor-7ffe353138.chunk.css} +0 -0
- /package/dist/css/{9134-library-editor-5a1c6fc3b4.chunk.css → 8130-library-editor-5a1c6fc3b4.chunk.css} +0 -0
- /package/dist/scripts/{6725-52d65e0d02.chunk.js.LICENSE.txt → 152-808e046b1f.chunk.js.LICENSE.txt} +0 -0
- /package/dist/scripts/{4001-5f16bcaff3.chunk.js.LICENSE.txt → 4001-9194fbe77b.chunk.js.LICENSE.txt} +0 -0
- /package/dist/scripts/{546-2cf4378b0c.chunk.js → 546-f770211173.chunk.js} +0 -0
- /package/dist/scripts/{61-35a4e0dd3d.chunk.js.LICENSE.txt → 61-ec794cf02d.chunk.js.LICENSE.txt} +0 -0
- /package/dist/scripts/{471-9ae0a7d088.chunk.js.LICENSE.txt → 6532-48f3f080f5.chunk.js.LICENSE.txt} +0 -0
- /package/dist/scripts/{8952-5dfd08cdc7.chunk.js.LICENSE.txt → 8952-a9a7742f72.chunk.js.LICENSE.txt} +0 -0
- /package/dist/scripts/{9369-cacc5f30e5.chunk.js.LICENSE.txt → 9369-1e706eb521.chunk.js.LICENSE.txt} +0 -0
|
@@ -1 +1 @@
|
|
|
1
|
-
(self.webpackChunk_clickview_library_editor=self.webpackChunk_clickview_library_editor||[]).push([[5412],{95412:function(t,e,n){"use strict";n.r(e),n.d(e,{DeleteVideosView:function(){return j}});var r=n(
|
|
1
|
+
(self.webpackChunk_clickview_library_editor=self.webpackChunk_clickview_library_editor||[]).push([[5412],{95412:function(t,e,n){"use strict";n.r(e),n.d(e,{DeleteVideosView:function(){return j}});var r=n(48088),o=n(39479),i=n(21679),u=n(57857),l=n(31647),a=n(52076),c=n(10101),s=n(88172),f=n(57098),p=n(67670),y=n(93569),b=n(21218),d=n.n(b);function h(t){return h="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},h(t)}function v(t,e){for(var n=0;n<e.length;n++){var r=e[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(t,m(r.key),r)}}function m(t){var e=function(t){if("object"!=h(t)||!t)return t;var e=t[Symbol.toPrimitive];if(void 0!==e){var n=e.call(t,"string");if("object"!=h(n))return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(t)}(t);return"symbol"==h(e)?e:e+""}function g(){try{var t=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){})))}catch(t){}return(g=function(){return!!t})()}function O(t){return O=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(t){return t.__proto__||Object.getPrototypeOf(t)},O(t)}function w(t,e){return w=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(t,e){return t.__proto__=e,t},w(t,e)}var j=function(t){function e(t){return function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,e),function(t,e,n){return e=O(e),function(t,e){if(e&&("object"==h(e)||"function"==typeof e))return e;if(void 0!==e)throw new TypeError("Derived constructors may only return object or undefined");return function(t){if(void 0===t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return t}(t)}(t,g()?Reflect.construct(e,n||[],O(t).constructor):e.apply(t,n))}(this,e,[t])}return function(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function");t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,writable:!0,configurable:!0}}),Object.defineProperty(t,"prototype",{writable:!1}),e&&w(t,e)}(e,t),n=e,(b=[{key:"initialize",value:function(){this.libraryDataService=i.u.getInstance(f.Or.Library,this),this.videoDataService=i.u.getInstance(f.Or.Video,this)}},{key:"name",get:function(){return"DeleteVideoView"}},{key:"lang",get:function(){return"libraryEditor.deleteVideos"}},{key:"title",get:function(){return this.options.videoIds&&u.T.getPhrase(this.lang,"removeVideos",{smartCount:this.options.videoIds.length})}},{key:"template",get:function(){return d()}},{key:"channelName",get:function(){return y.N0.generateUniqueChannelName(this)}},{key:"behaviors",get:function(){var t,e,n,r,o=this;return[{title:u.T.getPhrase(this.lang,"removeVideos",{smartCount:null!==(e=null===(t=this.options.videoIds)||void 0===t?void 0:t.length)&&void 0!==e?e:1}),behaviorClass:c.Yw,spinnerButtonOptions:{channelName:this.channelName,model:this.spinnerModel=new p.v,buttonText:u.T.getPhrase(this.lang,"removeVideos",{smartCount:null!==(r=null===(n=this.options.videoIds)||void 0===n?void 0:n.length)&&void 0!==r?r:1}),extraButtonClass:"btn-danger",onClick:function(){return o.onClickDelete()}}}]}},{key:"onClickDelete",value:function(){var t=this;this.library&&(r.Radio.channel(this.channelName).trigger(s.I3.ShowSpinner),this.videoDataService.deleteVideosFromLibrary(this.library.id,this.options.folderId,this.options.videoIds,(function(){t.options.routeToFolderOnDelete?l.Q.C$.trigger({application:f.OV.LIBRARY_EDITOR,action:f.eX.LibraryEditor.FOLDER,args:[t.options.folderId]}):t.triggerMethod("hide")})),this.logAction())}},{key:"logAction",value:function(){var t=this.options.videoIds,e={libraryId:this.library.id,folderId:this.options.folderId,count:t.length};1===t.length&&(e.id=o.first(t)),a.k.logUserAction(e,this.options.analyticsOptions)}},{key:"onBeforeRender",value:function(){var t=this;this.library?this.spinnerModel.set(s.ZV.Disabled,!1):this.libraryDataService.getLibraries((function(e){t.library=y.PU.getLibrary(t.options.folderId,e),t.render()}))}},{key:"viewOptions",value:function(){return{count:this.options.videoIds.length,libraryFetched:!!this.library,spinnerEl:y.Kp.getSpinner({size:y.Ey.Large,extraClasses:"mx-auto"}),videoCount:this.options.videoIds.length}}}])&&v(n.prototype,b),Object.defineProperty(n,"prototype",{writable:!1}),n;var n,b}(l.Q.G7)},67670:function(t,e,n){"use strict";n.d(e,{v:function(){return p}});var r=n(31647),o=n(88172);function i(t){return i="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},i(t)}function u(t,e,n){return(e=a(e))in t?Object.defineProperty(t,e,{value:n,enumerable:!0,configurable:!0,writable:!0}):t[e]=n,t}function l(t,e){for(var n=0;n<e.length;n++){var r=e[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(t,a(r.key),r)}}function a(t){var e=function(t){if("object"!=i(t)||!t)return t;var e=t[Symbol.toPrimitive];if(void 0!==e){var n=e.call(t,"string");if("object"!=i(n))return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(t)}(t);return"symbol"==i(e)?e:e+""}function c(){try{var t=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){})))}catch(t){}return(c=function(){return!!t})()}function s(t){return s=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(t){return t.__proto__||Object.getPrototypeOf(t)},s(t)}function f(t,e){return f=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(t,e){return t.__proto__=e,t},f(t,e)}var p=function(t){function e(){return function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,e),function(t,e,n){return e=s(e),function(t,e){if(e&&("object"==i(e)||"function"==typeof e))return e;if(void 0!==e)throw new TypeError("Derived constructors may only return object or undefined");return function(t){if(void 0===t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return t}(t)}(t,c()?Reflect.construct(e,n||[],s(t).constructor):e.apply(t,n))}(this,e,arguments)}return function(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function");t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,writable:!0,configurable:!0}}),Object.defineProperty(t,"prototype",{writable:!1}),e&&f(t,e)}(e,t),n=e,(r=[{key:"defaults",value:function(){return u(u({},o.ZV.Disabled,!0),o.ZV.Hidden,!1)}}])&&l(n.prototype,r),Object.defineProperty(n,"prototype",{writable:!1}),n;var n,r}(r.Q.Hn)},21218:function(t,e,n){var r=n(32227);t.exports=(r.default||r).template({1:function(t,e,n,r,o){var i;return t.propertyIsEnumerable,(null!=(i=t.lambda(null!=(i=null!=e?e.options:e)?i.spinnerEl:i,e))?i:"")+"\n"},3:function(t,e,n,r,o){var i;return t.propertyIsEnumerable,(null!=(i=(n.lang||e&&e.lang||t.hooks.helperMissing).call(null!=e?e:t.nullContext||{},"check",{name:"lang",hash:{smartCount:null!=(i=null!=e?e.options:e)?i.videoCount:i},data:o}))?i:"")+"\n"},compiler:[8,">= 4.3.0"],main:function(t,e,n,r,o){var i;return t.propertyIsEnumerable,null!=(i=n.unless.call(null!=e?e:t.nullContext||{},null!=(i=null!=e?e.options:e)?i.libraryFetched:i,{name:"unless",hash:{},fn:t.program(1,o,0),inverse:t.program(3,o,0),data:o}))?i:""},useData:!0})}}]);
|
|
@@ -1 +1 @@
|
|
|
1
|
-
(self.webpackChunk_clickview_library_editor=self.webpackChunk_clickview_library_editor||[]).push([[5418],{77739:function(e,t,n){"use strict";n.d(t,{r:function(){return m}});var r=n(31647),o=n(10101),i=n(20072),l=n(93569),a=n(11653),u=n(14538),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 f(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,p(r.key),r)}}function p(e){var t=function(e){if("object"!=s(e)||!e)return e;var t=e[Symbol.toPrimitive];if(void 0!==t){var n=t.call(e,"string");if("object"!=s(n))return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}(e);return"symbol"==s(t)?t:t+""}function d(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){})))}catch(e){}return(d=function(){return!!e})()}function b(e){return b=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(e){return e.__proto__||Object.getPrototypeOf(e)},b(e)}function y(e,t){return y=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(e,t){return e.__proto__=t,e},y(e,t)}var m=function(e){function t(e){return function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,t),function(e,t,n){return t=b(t),function(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)}(e,d()?Reflect.construct(t,n||[],b(e).constructor):t.apply(e,n))}(this,t,[e])}return function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),Object.defineProperty(e,"prototype",{writable:!1}),t&&y(e,t)}(t,e),n=t,(r=[{key:"initialize",value:function(){this.bindListeners()}},{key:"bindListeners",value:function(){this.listenTo(this.options.channelName,"folder:selected",this.onFolderSelected)}},{key:"name",get:function(){return"FolderDetailsComponent"}},{key:"template",get:function(){return c()}},{key:"lang",get:function(){return"libraryEditor.folderDetails"}},{key:"folderTreeKey",get:function(){return this.options.folderTreeKey||"folderselect:".concat(this.cid)}},{key:"regions",value:function(){return{parentFolder:".parent-folder-region"}}},{key:"behaviors",get:function(){return[{behaviorClass:o.fS,modelValidation:(0,a.h)({validateName:this.options.editName,validateParent:this.options.editParent,folder:this.options.model,collection:this.options.collection})},{behaviorClass:o.Bp}]}},{key:"bindings",get:function(){return{"[name=name]":{observe:"name",setOptions:{validate:!0}}}}},{key:"onFolderSelected",value:function(e,t){e&&(l.PU.setSelected(this.folderTreeKey,e,this.collection,t),t||this.model.set("parentId",e.get("id"),{validate:!0}))}},{key:"renderSubFolders",value:function(){this.options.editParent&&this.showChildView("parentFolder",new i.Y({collection:this.collection,channelName:this.options.channelName,folderTreeKey:this.folderTreeKey,disabledIds:this.options.disabledParentFolderIds}))}},{key:"viewOptions",value:function(){return{editName:this.options.editName,editParent:this.options.editParent}}},{key:"onRender",value:function(){this.renderSubFolders()}}])&&f(n.prototype,r),Object.defineProperty(n,"prototype",{writable:!1}),n;var n,r}(r.Q.wA)},11653:function(e,t,n){"use strict";n.d(t,{h:function(){return s}});var r=n(21161),o=n(57857),i=n(54008),l=n(22557),a="libraryEditor.utils",u={name:[{required:!0,msg:function(){return o.T.getPhrase(a,"folderNameRequired")}},{maxLength:255,msg:function(){return o.T.getPhrase(a,"folderNameExceeds")}}]},c=function(e,t){return{parentId:function(n){return n?l.P.calculateDestinationFolderDepth(e,n,t)>i.p.MAX_FOLDER_DEPTH?o.T.getPhrase(a,"maxFolderDepth",{maxDepth:i.p.MAX_FOLDER_DEPTH}):"":o.T.getPhrase(a,"selectParentFolder")}}},s=function(e){var t=e.validateName,n=e.validateParent,o=e.folder,i=e.collection;return t&&n?r.extend({},u,c(o,i)):t?u:n?c(o,i):void 0}},20072:function(e,t,n){"use strict";n.d(t,{Y:function(){return h}});var r=n(43823),o=n(57857),i=n(31647),l=n(50299),a=n(93569),u=n(68979),c=n.n(u),s={selectBtn:"tZUtI",list:"MxlSt",selector:"qHvbU",maxHeight:"jp36d",customItem:"aJzJB"};function f(e){return f="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},f(e)}function p(e,t){for(var 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,d(r.key),r)}}function d(e){var t=function(e){if("object"!=f(e)||!e)return e;var t=e[Symbol.toPrimitive];if(void 0!==t){var n=t.call(e,"string");if("object"!=f(n))return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}(e);return"symbol"==f(t)?t:t+""}function b(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){})))}catch(e){}return(b=function(){return!!e})()}function y(e){return y=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(e){return e.__proto__||Object.getPrototypeOf(e)},y(e)}function m(e,t){return m=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(e,t){return e.__proto__=t,e},m(e,t)}var h=function(e){function t(e){return function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,t),function(e,t,n){return t=y(t),function(e,t){if(t&&("object"==f(t)||"function"==typeof t))return t;if(void 0!==t)throw new TypeError("Derived constructors may only return object or undefined");return function(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}(e)}(e,b()?Reflect.construct(t,n||[],y(e).constructor):t.apply(e,n))}(this,t,[e])}return function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),Object.defineProperty(e,"prototype",{writable:!1}),t&&m(e,t)}(t,e),n=t,i=[{key:"initialize",value:function(){this.listenTo(this.options.channelName,"folder:selected new:folder:selected",this.setButtonText),this.listenTo(this.options.channelName,"re:render:selector",this.renderSelector),this.disabledIds=this.options.disabledIds&&this.options.disabledIds.reduce((function(e,t){return Object.assign(Object.assign({},e),(n={},o=!0,(r=d(r=t))in n?Object.defineProperty(n,r,{value:o,enumerable:!0,configurable:!0,writable:!0}):n[r]=o,n));var n,r,o}),{})}},{key:"name",get:function(){return"TreeDropdownComponent"}},{key:"template",get:function(){return c()}},{key:"className",get:function(){return"position-relative"}},{key:"lang",get:function(){return"libraryEditor.treeDropdown"}},{key:"regions",value:function(){return{selector:{el:".selector-region",replaceElement:!1}}}},{key:"events",value:function(){return{"click .create-new":"onClickCreateNew"}}},{key:"defaults",get:function(){return{disabledIds:[]}}},{key:"elements",get:function(){return{button:".button-text"}}},{key:"onClickCreateNew",value:function(e){e.preventDefault(),r.Radio.channel(this.options.channelName).trigger("create:folder:clicked")}},{key:"setButtonText",value:function(e,t){if(e&&!t){var n=e.get("name");this.getUI("button").text(n)}else{var r=a.PU.getSelected(this.options.folderTreeKey,this.collection),i=r?r.get("name"):o.T.getPhrase(this.lang,"button");this.getUI("button").text(i)}}},{key:"renderSelector",value:function(){this.showChildView("selector",new l.J({styles:s,collection:this.collection,channelName:this.options.channelName,childrenProperty:"children",folderTreeId:this.options.folderTreeKey,extraClass:s.list,isSelector:!0,disabledIds:this.disabledIds||{}}))}},{key:"viewOptions",value:function(){return{styles:s,name:this.options.name||this.options.channelName,buttonText:this.buttonText,canCreateNew:this.options.canCreateNew,dropdown:this.options.dropdown}}},{key:"onRender",value:function(){this.setButtonText(),this.renderSelector()}}],i&&p(n.prototype,i),Object.defineProperty(n,"prototype",{writable:!1}),n;var n,i}(i.Q.wA)},67670:function(e,t,n){"use strict";n.d(t,{v:function(){return p}});var r=n(31647),o=n(88172);function i(e){return i="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},i(e)}function l(e,t,n){return(t=u(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function a(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,u(r.key),r)}}function u(e){var t=function(e){if("object"!=i(e)||!e)return e;var t=e[Symbol.toPrimitive];if(void 0!==t){var n=t.call(e,"string");if("object"!=i(n))return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}(e);return"symbol"==i(t)?t:t+""}function c(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){})))}catch(e){}return(c=function(){return!!e})()}function s(e){return s=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(e){return e.__proto__||Object.getPrototypeOf(e)},s(e)}function f(e,t){return f=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(e,t){return e.__proto__=t,e},f(e,t)}var p=function(e){function t(){return function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,t),function(e,t,n){return t=s(t),function(e,t){if(t&&("object"==i(t)||"function"==typeof t))return t;if(void 0!==t)throw new TypeError("Derived constructors may only return object or undefined");return function(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}(e)}(e,c()?Reflect.construct(t,n||[],s(e).constructor):t.apply(e,n))}(this,t,arguments)}return function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),Object.defineProperty(e,"prototype",{writable:!1}),t&&f(e,t)}(t,e),n=t,(r=[{key:"defaults",value:function(){return l(l({},o.ZV.Disabled,!0),o.ZV.Hidden,!1)}}])&&a(n.prototype,r),Object.defineProperty(n,"prototype",{writable:!1}),n;var n,r}(r.Q.Hn)},14538:function(e,t,n){var r=n(31197);e.exports=(r.default||r).template({1:function(e,t,n,r,o){e.propertyIsEnumerable;var i=null!=t?t:e.nullContext||{},l=e.hooks.helperMissing,a=e.escapeExpression;return' <div class="form-group">\n <label for="name" class="control-label">'+a((n.lang||t&&t.lang||l).call(i,"name",{name:"lang",hash:{},data:o}))+'</label>\n <input name="name" id="name" type="text" class="form-control" placeholder="'+a((n.lang||t&&t.lang||l).call(i,"namePlaceholder",{name:"lang",hash:{},data:o}))+'" autocomplete="off" autofocus/>\n <div class="form-feedback"></div>\n </div>\n'},3:function(e,t,n,r,o){return e.propertyIsEnumerable,' <div class="form-group pt-2">\n <label for="parentId" class="control-label">'+e.escapeExpression((n.lang||t&&t.lang||e.hooks.helperMissing).call(null!=t?t:e.nullContext||{},"parent",{name:"lang",hash:{},data:o}))+'</label>\n <div class="parent-folder-region"></div>\n </div>\n'},compiler:[8,">= 4.3.0"],main:function(e,t,n,r,o){e.propertyIsEnumerable;var i,l=null!=t?t:e.nullContext||{};return"<form>\n"+(null!=(i=n.if.call(l,null!=(i=null!=t?t.options:t)?i.editName:i,{name:"if",hash:{},fn:e.program(1,o,0),inverse:e.noop,data:o}))?i:"")+(null!=(i=n.if.call(l,null!=(i=null!=t?t.options:t)?i.editParent:i,{name:"if",hash:{},fn:e.program(3,o,0),inverse:e.noop,data:o}))?i:"")+"</form>"},useData:!0})},68979:function(e,t,n){var r=n(31197);e.exports=(r.default||r).template({1:function(e,t,n,r,o){e.propertyIsEnumerable;var i,l=e.lambda,a=e.escapeExpression;return' <button\n class="'+a(l(null!=(i=null!=(i=null!=t?t.options:t)?i.styles:i)?i.selectBtn:i,t))+' form-select form-control"\n data-bs-toggle="dropdown"\n aria-haspopup="true"\n aria-expanded="false"\n name='+a(l(null!=(i=null!=t?t.options:t)?i.name:i,t))+'\n >\n <span class="d-block text-truncate button-text">\n '+a(l(null!=(i=null!=t?t.options:t)?i.buttonText:i,t))+'\n </span>\n </button>\n<div class="dropdown-menu '+a(l(null!=(i=null!=(i=null!=t?t.options:t)?i.styles:i)?i.selector:i,t))+'">\n'},3:function(e,t,n,r,o){var i;return e.propertyIsEnumerable,"border rounded-3 "+e.escapeExpression(e.lambda(null!=(i=null!=(i=null!=t?t.options:t)?i.styles:i)?i.maxHeight:i,t))},5:function(e,t,n,r,o){e.propertyIsEnumerable;var i,l=e.escapeExpression;return' <button class="create-new btn fw-bold rounded-0 rounded-bottom-lg w-100 text-start '+l(e.lambda(null!=(i=null!=(i=null!=t?t.options:t)?i.styles:i)?i.customItem:i,t))+'">'+l((n.lang||t&&t.lang||e.hooks.helperMissing).call(null!=t?t:e.nullContext||{},"createNew",{name:"lang",hash:{},data:o}))+"</button>\n"},compiler:[8,">= 4.3.0"],main:function(e,t,n,r,o){e.propertyIsEnumerable;var i,l=null!=t?t:e.nullContext||{};return(null!=(i=n.if.call(l,null!=(i=null!=t?t.options:t)?i.dropdown:i,{name:"if",hash:{},fn:e.program(1,o,0),inverse:e.noop,data:o}))?i:"")+'<div class="'+(null!=(i=n.unless.call(l,null!=(i=null!=t?t.options:t)?i.dropdown:i,{name:"unless",hash:{},fn:e.program(3,o,0),inverse:e.noop,data:o}))?i:"")+' overflow-auto" name='+e.escapeExpression(e.lambda(null!=(i=null!=t?t.options:t)?i.name:i,t))+'>\n <div class="selector-region"></div>\n'+(null!=(i=n.if.call(l,null!=(i=null!=t?t.options:t)?i.canCreateNew:i,{name:"if",hash:{},fn:e.program(5,o,0),inverse:e.noop,data:o}))?i:"")+'</div>\n<div class="form-feedback"></div>'},useData:!0})}}]);
|
|
1
|
+
(self.webpackChunk_clickview_library_editor=self.webpackChunk_clickview_library_editor||[]).push([[5418],{77739:function(e,t,n){"use strict";n.d(t,{r:function(){return m}});var r=n(31647),o=n(10101),i=n(20072),l=n(93569),a=n(11653),u=n(14538),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 f(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,p(r.key),r)}}function p(e){var t=function(e){if("object"!=s(e)||!e)return e;var t=e[Symbol.toPrimitive];if(void 0!==t){var n=t.call(e,"string");if("object"!=s(n))return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}(e);return"symbol"==s(t)?t:t+""}function d(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){})))}catch(e){}return(d=function(){return!!e})()}function b(e){return b=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(e){return e.__proto__||Object.getPrototypeOf(e)},b(e)}function y(e,t){return y=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(e,t){return e.__proto__=t,e},y(e,t)}var m=function(e){function t(e){return function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,t),function(e,t,n){return t=b(t),function(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)}(e,d()?Reflect.construct(t,n||[],b(e).constructor):t.apply(e,n))}(this,t,[e])}return function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),Object.defineProperty(e,"prototype",{writable:!1}),t&&y(e,t)}(t,e),n=t,(r=[{key:"initialize",value:function(){this.bindListeners()}},{key:"bindListeners",value:function(){this.listenTo(this.options.channelName,"folder:selected",this.onFolderSelected)}},{key:"name",get:function(){return"FolderDetailsComponent"}},{key:"template",get:function(){return c()}},{key:"lang",get:function(){return"libraryEditor.folderDetails"}},{key:"folderTreeKey",get:function(){return this.options.folderTreeKey||"folderselect:".concat(this.cid)}},{key:"regions",value:function(){return{parentFolder:".parent-folder-region"}}},{key:"behaviors",get:function(){return[{behaviorClass:o.fS,modelValidation:(0,a.h)({validateName:this.options.editName,validateParent:this.options.editParent,folder:this.options.model,collection:this.options.collection})},{behaviorClass:o.Bp}]}},{key:"bindings",get:function(){return{"[name=name]":{observe:"name",setOptions:{validate:!0}}}}},{key:"onFolderSelected",value:function(e,t){e&&(l.PU.setSelected(this.folderTreeKey,e,this.collection,t),t||this.model.set("parentId",e.get("id"),{validate:!0}))}},{key:"renderSubFolders",value:function(){this.options.editParent&&this.showChildView("parentFolder",new i.Y({collection:this.collection,channelName:this.options.channelName,folderTreeKey:this.folderTreeKey,disabledIds:this.options.disabledParentFolderIds}))}},{key:"viewOptions",value:function(){return{editName:this.options.editName,editParent:this.options.editParent}}},{key:"onRender",value:function(){this.renderSubFolders()}}])&&f(n.prototype,r),Object.defineProperty(n,"prototype",{writable:!1}),n;var n,r}(r.Q.wA)},11653:function(e,t,n){"use strict";n.d(t,{h:function(){return s}});var r=n(39479),o=n(57857),i=n(54008),l=n(22557),a="libraryEditor.utils",u={name:[{required:!0,msg:function(){return o.T.getPhrase(a,"folderNameRequired")}},{maxLength:255,msg:function(){return o.T.getPhrase(a,"folderNameExceeds")}}]},c=function(e,t){return{parentId:function(n){return n?l.P.calculateDestinationFolderDepth(e,n,t)>i.p.MAX_FOLDER_DEPTH?o.T.getPhrase(a,"maxFolderDepth",{maxDepth:i.p.MAX_FOLDER_DEPTH}):"":o.T.getPhrase(a,"selectParentFolder")}}},s=function(e){var t=e.validateName,n=e.validateParent,o=e.folder,i=e.collection;return t&&n?r.extend({},u,c(o,i)):t?u:n?c(o,i):void 0}},20072:function(e,t,n){"use strict";n.d(t,{Y:function(){return h}});var r=n(48088),o=n(57857),i=n(31647),l=n(50299),a=n(93569),u=n(68979),c=n.n(u),s={selectBtn:"tZUtI",list:"MxlSt",selector:"qHvbU",maxHeight:"jp36d",customItem:"aJzJB"};function f(e){return f="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},f(e)}function p(e,t){for(var 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,d(r.key),r)}}function d(e){var t=function(e){if("object"!=f(e)||!e)return e;var t=e[Symbol.toPrimitive];if(void 0!==t){var n=t.call(e,"string");if("object"!=f(n))return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}(e);return"symbol"==f(t)?t:t+""}function b(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){})))}catch(e){}return(b=function(){return!!e})()}function y(e){return y=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(e){return e.__proto__||Object.getPrototypeOf(e)},y(e)}function m(e,t){return m=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(e,t){return e.__proto__=t,e},m(e,t)}var h=function(e){function t(e){return function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,t),function(e,t,n){return t=y(t),function(e,t){if(t&&("object"==f(t)||"function"==typeof t))return t;if(void 0!==t)throw new TypeError("Derived constructors may only return object or undefined");return function(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}(e)}(e,b()?Reflect.construct(t,n||[],y(e).constructor):t.apply(e,n))}(this,t,[e])}return function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),Object.defineProperty(e,"prototype",{writable:!1}),t&&m(e,t)}(t,e),n=t,i=[{key:"initialize",value:function(){this.listenTo(this.options.channelName,"folder:selected new:folder:selected",this.setButtonText),this.listenTo(this.options.channelName,"re:render:selector",this.renderSelector),this.disabledIds=this.options.disabledIds&&this.options.disabledIds.reduce((function(e,t){return Object.assign(Object.assign({},e),(n={},o=!0,(r=d(r=t))in n?Object.defineProperty(n,r,{value:o,enumerable:!0,configurable:!0,writable:!0}):n[r]=o,n));var n,r,o}),{})}},{key:"name",get:function(){return"TreeDropdownComponent"}},{key:"template",get:function(){return c()}},{key:"className",get:function(){return"position-relative"}},{key:"lang",get:function(){return"libraryEditor.treeDropdown"}},{key:"regions",value:function(){return{selector:{el:".selector-region",replaceElement:!1}}}},{key:"events",value:function(){return{"click .create-new":"onClickCreateNew"}}},{key:"defaults",get:function(){return{disabledIds:[]}}},{key:"elements",get:function(){return{button:".button-text"}}},{key:"onClickCreateNew",value:function(e){e.preventDefault(),r.Radio.channel(this.options.channelName).trigger("create:folder:clicked")}},{key:"setButtonText",value:function(e,t){if(e&&!t){var n=e.get("name");this.getUI("button").text(n)}else{var r=a.PU.getSelected(this.options.folderTreeKey,this.collection),i=r?r.get("name"):o.T.getPhrase(this.lang,"button");this.getUI("button").text(i)}}},{key:"renderSelector",value:function(){this.showChildView("selector",new l.J({styles:s,collection:this.collection,channelName:this.options.channelName,childrenProperty:"children",folderTreeId:this.options.folderTreeKey,extraClass:s.list,isSelector:!0,disabledIds:this.disabledIds||{}}))}},{key:"viewOptions",value:function(){return{styles:s,name:this.options.name||this.options.channelName,buttonText:this.buttonText,canCreateNew:this.options.canCreateNew,dropdown:this.options.dropdown}}},{key:"onRender",value:function(){this.setButtonText(),this.renderSelector()}}],i&&p(n.prototype,i),Object.defineProperty(n,"prototype",{writable:!1}),n;var n,i}(i.Q.wA)},67670:function(e,t,n){"use strict";n.d(t,{v:function(){return p}});var r=n(31647),o=n(88172);function i(e){return i="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},i(e)}function l(e,t,n){return(t=u(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function a(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,u(r.key),r)}}function u(e){var t=function(e){if("object"!=i(e)||!e)return e;var t=e[Symbol.toPrimitive];if(void 0!==t){var n=t.call(e,"string");if("object"!=i(n))return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}(e);return"symbol"==i(t)?t:t+""}function c(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){})))}catch(e){}return(c=function(){return!!e})()}function s(e){return s=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(e){return e.__proto__||Object.getPrototypeOf(e)},s(e)}function f(e,t){return f=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(e,t){return e.__proto__=t,e},f(e,t)}var p=function(e){function t(){return function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,t),function(e,t,n){return t=s(t),function(e,t){if(t&&("object"==i(t)||"function"==typeof t))return t;if(void 0!==t)throw new TypeError("Derived constructors may only return object or undefined");return function(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}(e)}(e,c()?Reflect.construct(t,n||[],s(e).constructor):t.apply(e,n))}(this,t,arguments)}return function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),Object.defineProperty(e,"prototype",{writable:!1}),t&&f(e,t)}(t,e),n=t,(r=[{key:"defaults",value:function(){return l(l({},o.ZV.Disabled,!0),o.ZV.Hidden,!1)}}])&&a(n.prototype,r),Object.defineProperty(n,"prototype",{writable:!1}),n;var n,r}(r.Q.Hn)},14538:function(e,t,n){var r=n(32227);e.exports=(r.default||r).template({1:function(e,t,n,r,o){e.propertyIsEnumerable;var i=null!=t?t:e.nullContext||{},l=e.hooks.helperMissing,a=e.escapeExpression;return' <div class="form-group">\n <label for="name" class="control-label">'+a((n.lang||t&&t.lang||l).call(i,"name",{name:"lang",hash:{},data:o}))+'</label>\n <input name="name" id="name" type="text" class="form-control" placeholder="'+a((n.lang||t&&t.lang||l).call(i,"namePlaceholder",{name:"lang",hash:{},data:o}))+'" autocomplete="off" autofocus/>\n <div class="form-feedback"></div>\n </div>\n'},3:function(e,t,n,r,o){return e.propertyIsEnumerable,' <div class="form-group pt-2">\n <label for="parentId" class="control-label">'+e.escapeExpression((n.lang||t&&t.lang||e.hooks.helperMissing).call(null!=t?t:e.nullContext||{},"parent",{name:"lang",hash:{},data:o}))+'</label>\n <div class="parent-folder-region"></div>\n </div>\n'},compiler:[8,">= 4.3.0"],main:function(e,t,n,r,o){e.propertyIsEnumerable;var i,l=null!=t?t:e.nullContext||{};return"<form>\n"+(null!=(i=n.if.call(l,null!=(i=null!=t?t.options:t)?i.editName:i,{name:"if",hash:{},fn:e.program(1,o,0),inverse:e.noop,data:o}))?i:"")+(null!=(i=n.if.call(l,null!=(i=null!=t?t.options:t)?i.editParent:i,{name:"if",hash:{},fn:e.program(3,o,0),inverse:e.noop,data:o}))?i:"")+"</form>"},useData:!0})},68979:function(e,t,n){var r=n(32227);e.exports=(r.default||r).template({1:function(e,t,n,r,o){e.propertyIsEnumerable;var i,l=e.lambda,a=e.escapeExpression;return' <button\n class="'+a(l(null!=(i=null!=(i=null!=t?t.options:t)?i.styles:i)?i.selectBtn:i,t))+' form-select form-control"\n data-bs-toggle="dropdown"\n aria-haspopup="true"\n aria-expanded="false"\n name='+a(l(null!=(i=null!=t?t.options:t)?i.name:i,t))+'\n >\n <span class="d-block text-truncate button-text">\n '+a(l(null!=(i=null!=t?t.options:t)?i.buttonText:i,t))+'\n </span>\n </button>\n<div class="dropdown-menu '+a(l(null!=(i=null!=(i=null!=t?t.options:t)?i.styles:i)?i.selector:i,t))+'">\n'},3:function(e,t,n,r,o){var i;return e.propertyIsEnumerable,"border rounded-3 "+e.escapeExpression(e.lambda(null!=(i=null!=(i=null!=t?t.options:t)?i.styles:i)?i.maxHeight:i,t))},5:function(e,t,n,r,o){e.propertyIsEnumerable;var i,l=e.escapeExpression;return' <button class="create-new btn fw-bold rounded-0 rounded-bottom-lg w-100 text-start '+l(e.lambda(null!=(i=null!=(i=null!=t?t.options:t)?i.styles:i)?i.customItem:i,t))+'">'+l((n.lang||t&&t.lang||e.hooks.helperMissing).call(null!=t?t:e.nullContext||{},"createNew",{name:"lang",hash:{},data:o}))+"</button>\n"},compiler:[8,">= 4.3.0"],main:function(e,t,n,r,o){e.propertyIsEnumerable;var i,l=null!=t?t:e.nullContext||{};return(null!=(i=n.if.call(l,null!=(i=null!=t?t.options:t)?i.dropdown:i,{name:"if",hash:{},fn:e.program(1,o,0),inverse:e.noop,data:o}))?i:"")+'<div class="'+(null!=(i=n.unless.call(l,null!=(i=null!=t?t.options:t)?i.dropdown:i,{name:"unless",hash:{},fn:e.program(3,o,0),inverse:e.noop,data:o}))?i:"")+' overflow-auto" name='+e.escapeExpression(e.lambda(null!=(i=null!=t?t.options:t)?i.name:i,t))+'>\n <div class="selector-region"></div>\n'+(null!=(i=n.if.call(l,null!=(i=null!=t?t.options:t)?i.canCreateNew:i,{name:"if",hash:{},fn:e.program(5,o,0),inverse:e.noop,data:o}))?i:"")+'</div>\n<div class="form-feedback"></div>'},useData:!0})}}]);
|
|
@@ -1 +1 @@
|
|
|
1
|
-
(self.webpackChunk_clickview_library_editor=self.webpackChunk_clickview_library_editor||[]).push([[5424],{21771:function(e,t,i){"use strict";i.r(t),i.d(t,{MoveVideoView:function(){return P}});var n=i(
|
|
1
|
+
(self.webpackChunk_clickview_library_editor=self.webpackChunk_clickview_library_editor||[]).push([[5424],{21771:function(e,t,i){"use strict";i.r(t),i.d(t,{MoveVideoView:function(){return P}});var n=i(39479),r=i(21679),o=i(57857),l=i(31647),a=i(52076),s=i(13156),c=i(10101),u=i(90680),h=i(88172),d=i(20072),f=i(57098),b=i(67670),y=i(93569),p=i(76001),g=i(79665),v=i(97011),m=i.n(v);function k(e){return k="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},k(e)}function S(e,t){for(var i=0;i<t.length;i++){var n=t[i];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(e,L(n.key),n)}}function L(e){var t=function(e){if("object"!=k(e)||!e)return e;var t=e[Symbol.toPrimitive];if(void 0!==t){var i=t.call(e,"string");if("object"!=k(i))return i;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}(e);return"symbol"==k(t)?t:t+""}function w(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){})))}catch(e){}return(w=function(){return!!e})()}function T(e){return T=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(e){return e.__proto__||Object.getPrototypeOf(e)},T(e)}function O(e,t){return O=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(e,t){return e.__proto__=t,e},O(e,t)}var P=function(e){function t(e){return function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,t),function(e,t,i){return t=T(t),function(e,t){if(t&&("object"==k(t)||"function"==typeof t))return t;if(void 0!==t)throw new TypeError("Derived constructors may only return object or undefined");return function(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}(e)}(e,w()?Reflect.construct(t,i||[],T(e).constructor):t.apply(e,i))}(this,t,[e])}return function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),Object.defineProperty(e,"prototype",{writable:!1}),t&&O(e,t)}(t,e),i=t,(l=[{key:"initialize",value:function(){this.listenTo(f.Vk.LIBRARY,"libraries:sync",this.render),this.listenTo(f.Vk.VIDEO,"".concat(f.M_.VIDEOS_BY_ID,":").concat(this.options.videoIds.join(","),":sync"),this.render),this.listenTo(this.channelName,"library:selected",this.onLibrarySelected),this.listenTo(this.channelName,"folder:selected",this.onFolderSelected),this.libraryDataService=r.u.getInstance(f.Or.Library,this),this.videoDataService=r.u.getInstance(f.Or.Video,this)}},{key:"name",get:function(){return"MoveVideoView"}},{key:"title",get:function(){return this.options.videoIds&&o.T.getPhrase(this.lang,"title",{smartCount:this.options.videoIds.length})}},{key:"lang",get:function(){return"libraryEditor.moveVideo"}},{key:"channelName",get:function(){return y.N0.generateUniqueChannelName(this)}},{key:"libraryTreeKey",get:function(){return"libraryselect:".concat(this.cid)}},{key:"folderTreeKey",get:function(){return"folderselect:".concat(this.cid)}},{key:"template",get:function(){return m()}},{key:"regions",value:function(){return{folder:".folder-region",library:".library-region"}}},{key:"events",value:function(){return{submit:"onSubmit","click .submit":"onSubmit"}}},{key:"elements",get:function(){return{folderLabel:".folder-label"}}},{key:"behaviors",get:function(){var e,t,i,n,r=this;return[{title:o.T.getPhrase(this.lang,"heading",{smartCount:null!==(t=null===(e=this.options.videoIds)||void 0===e?void 0:e.length)&&void 0!==t?t:1}),behaviorClass:c.Yw,closeOnRoute:!1,spinnerButtonOptions:{channelName:this.channelName,model:this.spinnerModel=new b.v,buttonText:o.T.getPhrase(this.lang,"submit",{smartCount:null!==(n=null===(i=this.options.videoIds)||void 0===i?void 0:i.length)&&void 0!==n?n:1}),tooltip:function(){return r.getSubmitBtnTooltipOptions()},onClick:function(){return r.onSubmit()}}}]}},{key:"filterLibrariesWithVideo",value:function(){var e=this;if(this.libraries&&this.collection&&this.hasMultipleLibraries()){var t=this.collection.map((function(e){return e.get("libraries").map((function(e){return e.get("id")}))})),i=n.uniq(n.flatten(t)),r=[],o=[];this.libraries.forEach((function(t){var l=y.PU.getModelFromCollection(e.options.folderId,t.get("children"));!n.contains(i,+t.get("id"))||l?r.push(t):o.push(t)})),this.libraries=new u.q(r),this.hiddenLibraryNames=o.map((function(e){return e.get("name")})),1===this.libraries.length&&this.onLibrarySelected(this.libraries.first())}}},{key:"getSubmitBtnTooltipOptions",value:function(){if(this.spinnerModel.get(h.ZV.Disabled))return{title:o.T.getPhrase(this.lang,"btnTooltip")}}},{key:"onLibrarySelected",value:function(e){var t=y.PU.getSelected(this.libraryTreeKey,this.libraries);t&&y.PU.deselectAll(this.folderTreeKey,t.get("children")),y.PU.setSelected(this.libraryTreeKey,e,this.libraries),this.hasMultipleLibraries()&&this.getUI("folderLabel").show(),this.spinnerModel.set(h.ZV.Disabled,!0),this.render()}},{key:"onFolderSelected",value:function(e,t){var i=y.PU.getSelected(this.libraryTreeKey,this.libraries).get("children");y.PU.setSelected(this.folderTreeKey,e,i,t),t||this.spinnerModel.set(h.ZV.Disabled,!1)}},{key:"onSubmit",value:function(){var e=this;this.spinnerModel.set(h.ZV.ShowSpinner,!0);var t,i,n=y.PU.getSelected(this.folderTreeKey,this.libraries),r=n.get("id"),o=this.collection.map((function(e){return e.id}));this.collection.each((function(n){t||(t=n.categories.find((function(t){return t.get("id")===+e.options.folderId})),i=n)}));var l=1===this.collection.length?i.get("name"):"",a=s.J.moveVideoAlert(t.get("name"),n.get("name"),n.get("id"),this.collection.length,l);this.videoDataService.moveVideos(o,r,this.options.folderId,(function(){e.triggerMethod("hide")}),a),this.logAction(Object.entries(o),r)}},{key:"hasMultipleLibraries",value:function(){return this.libraries&&this.libraries.length>1}},{key:"getFormattedHiddenLibraryNames",value:function(){var e=n.map(this.hiddenLibraryNames,(function(e){return"<strong>".concat(p.m.escapeExpression(e),"</strong>")}));if(1===e.length)return e[0];var t=o.T.getPhrase(this.lang,"and");return"".concat(e.slice(0,-1).join(", ")," ").concat(t," ").concat(e.slice(-1))}},{key:"logAction",value:function(e,t){var i={newParentId:t,oldParentId:this.options.folderId,count:this.collection.length};1===this.collection.length&&(i.id=n.first(Object.values(e))),a.k.logUserAction(i,this.options.analyticsOptions)}},{key:"renderLibrarySelect",value:function(){if(this.libraries&&1!==this.libraries.length){var e=y.PU.getSelected(this.libraryTreeKey,this.libraries);this.showChildView("library",new g.A({collection:this.libraries,channelName:this.channelName,currentLibraryId:e?e.get("id"):null}))}}},{key:"renderFolderSelect",value:function(){var e=y.PU.getSelected(this.libraryTreeKey,this.libraries);this.showChildView("folder",new d.Y({collection:e.get("children"),channelName:this.channelName,folderTreeKey:this.folderTreeKey,disabledIds:[this.options.folderId]}))}},{key:"viewOptions",value:function(){var e,t;return{hasMultipleLibraries:this.hasMultipleLibraries(),hiddenLibraryNames:(null===(e=this.hiddenLibraryNames)||void 0===e?void 0:e.length)?this.getFormattedHiddenLibraryNames():"",hiddenLibraryNamesLength:null===(t=this.hiddenLibraryNames)||void 0===t?void 0:t.length}}},{key:"onBeforeRender",value:function(){var e=this;return this.libraries||this.libraryDataService.getLibraries((function(t){e.libraries=new u.q(t.filter((function(e){return!!e.get("children").length}))),e.hasMultipleLibraries()||e.onLibrarySelected(e.libraries.first()),e.filterLibrariesWithVideo(),e.render()})),this.collection||this.videoDataService.getVideos(this.options.videoIds,(function(t){e.collection=t,e.filterLibrariesWithVideo(),e.render()})),!!this.collection&&!!this.libraries}},{key:"onRender",value:function(){this.renderLibrarySelect(),y.PU.getSelected(this.libraryTreeKey,this.libraries)&&this.renderFolderSelect()}}])&&S(i.prototype,l),Object.defineProperty(i,"prototype",{writable:!1}),i;var i,l}(l.Q.G7)},97011:function(e,t,i){var n=i(32227);e.exports=(n.default||n).template({1:function(e,t,i,n,r){var o;return e.propertyIsEnumerable,' <div class="alert alert-info" role="alert">\n <p class="m-0">'+(null!=(o=(i.lang||t&&t.lang||e.hooks.helperMissing).call(null!=t?t:e.nullContext||{},"hiddenLibraryNames",{name:"lang",hash:{smartCount:null!=(o=null!=t?t.options:t)?o.hiddenLibraryNamesLength:o,libraries:null!=(o=null!=t?t.options:t)?o.hiddenLibraryNames:o},data:r}))?o:"")+"</p>\n </div>\n"},3:function(e,t,i,n,r){return e.propertyIsEnumerable,' <div class="form-group">\n <label class="control-label">'+e.escapeExpression((i.lang||t&&t.lang||e.hooks.helperMissing).call(null!=t?t:e.nullContext||{},"library",{name:"lang",hash:{},data:r}))+'</label>\n <div class="library-region"></div>\n </div>\n'},5:function(e,t,i,n,r){return'style="display: none;"'},compiler:[8,">= 4.3.0"],main:function(e,t,i,n,r){e.propertyIsEnumerable;var o,l=null!=t?t:e.nullContext||{};return"<form>\n"+(null!=(o=i.if.call(l,null!=(o=null!=t?t.options:t)?o.hiddenLibraryNames:o,{name:"if",hash:{},fn:e.program(1,r,0),inverse:e.noop,data:r}))?o:"")+"\n"+(null!=(o=i.if.call(l,null!=(o=null!=t?t.options:t)?o.hasMultipleLibraries:o,{name:"if",hash:{},fn:e.program(3,r,0),inverse:e.noop,data:r}))?o:"")+'\n <div class="form-group">\n <label class="control-label folder-label" '+(null!=(o=i.if.call(l,null!=(o=null!=t?t.options:t)?o.hasMultipleLibraries:o,{name:"if",hash:{},fn:e.program(5,r,0),inverse:e.noop,data:r}))?o:"")+">"+e.escapeExpression((i.lang||t&&t.lang||e.hooks.helperMissing).call(l,"folder",{name:"lang",hash:{},data:r}))+'</label>\n <div class="folder-region"></div>\n </div>\n</form>'},useData:!0})}}]);
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
"use strict";(self.webpackChunk_clickview_library_editor=self.webpackChunk_clickview_library_editor||[]).push([[5524],{99828:function(e,t,r){r.d(t,{y:function(){return u}});var n=r(88483);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 o(e,t,r){return(t=function(e){var t=function(e){if("object"!=i(e)||!e)return e;var t=e[Symbol.toPrimitive];if(void 0!==t){var r=t.call(e,"string");if("object"!=i(r))return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}(e);return"symbol"==i(t)?t:t+""}(t))in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}var u=o(o(o(o(o(o(o(o(o({},n.__.Thumbnails,{width:1280,height:720}),n.__.Banners,{width:1200,height:222}),n.__.Covers,{width:512,height:512}),n.__.Posters,{width:1e3,height:1500}),n.__.TallPosters,{width:1080,height:1920}),n.__.HeroBanners,{width:1920,height:640}),n.__.None,{width:1,height:1}),n.__.Avatars,{width:256,height:256}),n.__.Logos,{width:128,height:128})},24365:function(e,t,r){r.r(t),r.d(t,{CropperHelper:function(){return v}});var n=r(1024),i=r.n(n),o=r(44645),u=r(51934),a=r.n(u),c=r(57857),l=r(4231),f=r(83996),s=r(99828);function p(e,t){return function(e){if(Array.isArray(e))return e}(e)||function(e,t){var r=null==e?null:"undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null!=r){var n,i,o,u,a=[],c=!0,l=!1;try{if(o=(r=r.call(e)).next,0===t){if(Object(r)!==r)return;c=!1}else for(;!(c=(n=o.call(r)).done)&&(a.push(n.value),a.length!==t);c=!0);}catch(e){l=!0,i=e}finally{try{if(!c&&null!=r.return&&(u=r.return(),Object(u)!==u))return}finally{if(l)throw i}}return a}}(e,t)||function(e,t){if(e){if("string"==typeof e)return h(e,t);var r={}.toString.call(e).slice(8,-1);return"Object"===r&&e.constructor&&(r=e.constructor.name),"Map"===r||"Set"===r?Array.from(e):"Arguments"===r||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r)?h(e,t):void 0}}(e,t)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function h(e,t){(null==t||t>e.length)&&(t=e.length);for(var r=0,n=Array(t);r<t;r++)n[r]=e[r];return n}var m=c.T.encloseNamespace("shared.imageCropper"),d=/data:([a-zA-Z0-9]+\/[a-zA-Z0-9-.+]+).*,.*/;function y(e){var t=p(i().useState(!1),2),r=t[0],n=t[1],o=p(i().useState(!1),2),u=o[0],c=o[1],h=i().useRef(),y=i().useRef();return i().useEffect((function(){var t=new Image;t.src=e.src;var r=h.current.offsetWidth/t.width,i=s.y[e.imageType],o={viewMode:2,autoCropArea:1,ready:function(){return n(!0)}};return i&&(o.minCropBoxWidth=i.width*r,o.minCropBoxHeight=i.height*r,o.aspectRatio=i.width/i.height),y.current=new(a())(h.current,o),function(){y.current.destroy()}}),[]),i().createElement(l.G,{title:m("title"),closePopup:e.closePopup,size:e.popupSize},i().createElement("div",null,i().createElement("img",{src:e.src,alt:e.alt,ref:h,className:"img img-fluid"})),i().createElement(f.u,null,i().createElement(f.u.Cancel,{onClick:e.closePopup}),i().createElement(f.u.Submit,{onClick:function(){if(r){var t=y.current.getCroppedCanvas().toDataURL(function(e){var t=e.match(d);if(t)return t[1]}(e.src));c(!0),e.onClickCrop(t,e.closePopup)}},text:m("crop"),variant:"dark",showSpinner:u})))}y.defaultProps={popupSize:"lg"};var v={renderCropper:function(e){var t=(0,o.s)(document.getElementById("dialog-region"));t.render(i().createElement(y,Object.assign({},e,{closePopup:function(){return t.unmount()}})))}}}}]);
|
|
@@ -1 +1 @@
|
|
|
1
|
-
(self.webpackChunk_clickview_library_editor=self.webpackChunk_clickview_library_editor||[]).push([[5707],{44391:function(t,e,n){"use strict";n.d(e,{K:function(){return E}});var o=n(11306),i=n(31647),r=n(43823),l=n(57098),s=n(25887),a=n(15564),c=n.n(a);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){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,f(o.key),o)}}function f(t){var e=function(t){if("object"!=u(t)||!t)return t;var e=t[Symbol.toPrimitive];if(void 0!==e){var n=e.call(t,"string");if("object"!=u(n))return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(t)}(t);return"symbol"==u(e)?e:e+""}function h(){try{var t=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){})))}catch(t){}return(h=function(){return!!t})()}function d(t){return d=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(t){return t.__proto__||Object.getPrototypeOf(t)},d(t)}function y(t,e){return y=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(t,e){return t.__proto__=e,t},y(t,e)}var m=function(t){function e(t){return function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,e),function(t,e,n){return e=d(e),function(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)}(t,h()?Reflect.construct(e,n||[],d(t).constructor):e.apply(t,n))}(this,e,[t])}return function(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function");t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,writable:!0,configurable:!0}}),Object.defineProperty(t,"prototype",{writable:!1}),e&&y(t,e)}(e,t),n=e,o=[{key:"name",get:function(){return"TagItemComponent"}},{key:"tagName",get:function(){return this.options.behavior===s.Dm.Link?"a":"span"}},{key:"className",get:function(){var t="".concat(this.options.orientation===s.zM.Vertical?"":" d-inline-flex"),e="".concat(this.isSaving()?" saving":""),n="".concat(this.options.behavior===s.Dm.Disabled?" ".concat("dE3WC"):""),o="".concat(this.options.behavior===s.Dm.Filter?" cursor-pointer":"");return"rounded-pill tag py-1 px-2 flex-shrink-0 ".concat(o).concat(t).concat(e).concat(n)}},{key:"template",get:function(){return c()}},{key:"elements",get:function(){return{close:".btn-close"}}},{key:"appLinks",get:function(){return this.options.behavior!==s.Dm.Link?{}:{"[this]":{application:l.OV.SEARCH,action:l.eX.Search.HOME,params:{tag:this.model.get("name")}}}}},{key:"defaults",get:function(){return{behavior:s.Dm.Link,orientation:s.zM.Flex}}},{key:"events",value:function(){return this.options.removeEvent?{"click @ui.close":"onRemoveTag"}:{click:"onClickTag"}}},{key:"initialize",value:function(){this.options.behavior===s.Dm.Edit&&this.listenTo(this.model,"change",this.render)}},{key:"isSaving",value:function(){if(this.options.behavior!==s.Dm.Filter){var t=this.model.pick("id","name","remove"),e=t.id,n=t.name;return!!t.remove||!e||!n}}},{key:"onRemoveTag",value:function(t){if(t.stopPropagation(),!this.isSaving())return this.model.set("remove",!0),r.Radio.channel(this.options.channelName).trigger(this.options.removeEvent,this.model),!1}},{key:"onClickTag",value:function(){this.options.behavior!==s.Dm.Filter||this.options.removeEvent||r.Radio.channel(this.options.channelName).trigger(this.options.clickEvent,this.model)}},{key:"getTrimmedName",value:function(){var t=this.model.get("name");return t.length>36?"".concat(t.substring(0,36),"..."):t}},{key:"viewOptions",value:function(){return{removable:this.options.removeEvent,trimmedName:this.getTrimmedName()}}},{key:"onRender",value:function(){this.resetClassName()}}],o&&p(n.prototype,o),Object.defineProperty(n,"prototype",{writable:!1}),n;var n,o}(i.Q.wA);function b(t){return b="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},b(t)}function v(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,g(o.key),o)}}function g(t){var e=function(t){if("object"!=b(t)||!t)return t;var e=t[Symbol.toPrimitive];if(void 0!==e){var n=e.call(t,"string");if("object"!=b(n))return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(t)}(t);return"symbol"==b(e)?e:e+""}function w(){try{var t=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){})))}catch(t){}return(w=function(){return!!t})()}function k(t){return k=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(t){return t.__proto__||Object.getPrototypeOf(t)},k(t)}function O(t,e){return O=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(t,e){return t.__proto__=e,t},O(t,e)}var E=function(t){function e(t){return function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,e),function(t,e,n){return e=k(e),function(t,e){if(e&&("object"==b(e)||"function"==typeof e))return e;if(void 0!==e)throw new TypeError("Derived constructors may only return object or undefined");return function(t){if(void 0===t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return t}(t)}(t,w()?Reflect.construct(e,n||[],k(t).constructor):e.apply(t,n))}(this,e,[t])}return function(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function");t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,writable:!0,configurable:!0}}),Object.defineProperty(t,"prototype",{writable:!1}),e&&O(t,e)}(e,t),n=e,(r=[{key:"initialize",value:function(){this.options.behavior!==s.Dm.Edit||this.options.removeEvent||i.Q.Ry.throw(new o.H("removeEvent is required to edit tags."))}},{key:"name",get:function(){return"TagComponentCollection"}},{key:"defaults",get:function(){return{orientation:s.zM.Flex}}},{key:"className",get:function(){var t="".concat(this.options.orientation===s.zM.Vertical?"d-flex align-items-start flex-column":"d-flex flex-wrap gap-1");return"tags ".concat(t)}},{key:"childViewOptions",get:function(){return{channelName:this.options.channelName,behavior:this.options.behavior,orientation:this.options.orientation,removeEvent:this.options.removeEvent,clickEvent:this.options.clickEvent}}},{key:"childView",get:function(){return m}}])&&v(n.prototype,r),Object.defineProperty(n,"prototype",{writable:!1}),n;var n,r}(i.Q.$W)},25887:function(t,e,n){"use strict";var o,i,r;n.d(e,{Dm:function(){return o},zM:function(){return i},x_:function(){return r}}),function(t){t[t.Link=1]="Link",t[t.Edit=2]="Edit",t[t.Disabled=3]="Disabled",t[t.Filter=4]="Filter"}(o||(o={})),function(t){t[t.Flex=1]="Flex",t[t.Vertical=2]="Vertical"}(i||(i={})),function(t){t[t.Folder=0]="Folder",t[t.Series=1]="Series"}(r||(r={}))},71641:function(t,e,n){"use strict";n.d(e,{w:function(){return f}});var o=n(21161),i=n(31647),r=n(55142);function l(t){return l="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},l(t)}function s(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,a(o.key),o)}}function a(t){var e=function(t){if("object"!=l(t)||!t)return t;var e=t[Symbol.toPrimitive];if(void 0!==e){var n=e.call(t,"string");if("object"!=l(n))return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(t)}(t);return"symbol"==l(e)?e:e+""}function c(){try{var t=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){})))}catch(t){}return(c=function(){return!!t})()}function u(t){return u=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(t){return t.__proto__||Object.getPrototypeOf(t)},u(t)}function p(t,e){return p=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(t,e){return t.__proto__=e,t},p(t,e)}var f=function(t){function e(t){return function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,e),function(t,e,n){return e=u(e),function(t,e){if(e&&("object"==l(e)||"function"==typeof e))return e;if(void 0!==e)throw new TypeError("Derived constructors may only return object or undefined");return function(t){if(void 0===t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return t}(t)}(t,c()?Reflect.construct(e,n||[],u(t).constructor):e.apply(t,n))}(this,e,[t])}return function(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function");t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,writable:!0,configurable:!0}}),Object.defineProperty(t,"prototype",{writable:!1}),e&&p(t,e)}(e,t),n=e,i=[{key:"name",get:function(){return"DropdownCollectionComponent"}},{key:"className",get:function(){return"dropdown-menu items-viewpart ".concat(this.getExtraClasses(this.options.displayOptions))}},{key:"attributes",get:function(){return{"aria-labelledby":"dropdownSelector"}}},{key:"initialize",value:function(){this.listenTo(this.options.channelName,"center:dropdown",this.centerSelectedItem)}},{key:"childView",get:function(){return r.N}},{key:"childViewOptions",get:function(){var t={channelName:this.options.channelName,analyticsHelper:this.options.analyticsHelper};return o.extend(t,this.options.childOptions)}},{key:"getExtraClasses",value:function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},e=t.alignment,n=void 0===e?"left":e,o=t.extraClasses,i="dropdown-menu-".concat(n);return o&&(i="".concat(i," ").concat(o)),i}},{key:"centerSelectedItem",value:function(){var t=this.$el.find(".active");if(t.length){var e=this.$el.scrollTop()+t.position().top,n=.5*this.$el.height()+.5*t.height();this.$el.scrollTop(e-n)}}}],i&&s(n.prototype,i),Object.defineProperty(n,"prototype",{writable:!1}),n;var n,i}(i.Q.$W)},66882:function(t,e,n){"use strict";n.d(e,{R:function(){return z}});var o=n(43823),i=n(57857),r=n(31647),l=n(52076),s=n(70065),a=n(84868),c=n(85475),u=n(71641),p=n(21161),f=n(56210),h=n(37106),d=n.n(h),y={actions:"VXWM3",svgContainer:"etJKo",moreSvgContainer:"kwNUa",actionName:"gbBGB",disabled:"Ykm_2",iconButton:"xqFbC"};function m(t){return m="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},m(t)}function b(t,e){(null==e||e>t.length)&&(e=t.length);for(var n=0,o=Array(e);n<e;n++)o[n]=t[n];return o}function v(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}function g(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,k(o.key),o)}}function w(t,e,n){return e&&g(t.prototype,e),n&&g(t,n),Object.defineProperty(t,"prototype",{writable:!1}),t}function k(t){var e=function(t){if("object"!=m(t)||!t)return t;var e=t[Symbol.toPrimitive];if(void 0!==e){var n=e.call(t,"string");if("object"!=m(n))return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(t)}(t);return"symbol"==m(e)?e:e+""}function O(t,e,n){return e=S(e),function(t,e){if(e&&("object"==m(e)||"function"==typeof e))return e;if(void 0!==e)throw new TypeError("Derived constructors may only return object or undefined");return function(t){if(void 0===t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return t}(t)}(t,E()?Reflect.construct(e,n||[],S(t).constructor):e.apply(t,n))}function E(){try{var t=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){})))}catch(t){}return(E=function(){return!!t})()}function S(t){return S=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(t){return t.__proto__||Object.getPrototypeOf(t)},S(t)}function P(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&&T(t,e)}function T(t,e){return T=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(t,e){return t.__proto__=e,t},T(t,e)}var j=function(t){function e(t){return v(this,e),O(this,e,[t])}return P(e,t),w(e,[{key:"name",get:function(){return"VideoActionItemComponent"}},{key:"template",get:function(){return d()}},{key:"tagName",get:function(){return"a"}},{key:"attributes",get:function(){return this.model.get("href")?{href:this.model.get("href"),target:this.model.get("external")?"_blank":""}:{}}},{key:"className",get:function(){var t="cursor-pointer";return this.options.showLabel?t+=" ".concat(y.iconButton," btn btn-outline-dark ms-2"):t+=" d-inline-block px-1 no-decoration",this.model.get("isDisabled")&&(t+=" ".concat(y.disabled)),t}},{key:"events",value:function(){return{click:"onClick"}}},{key:"behaviors",get:function(){var t=(!this.options.showLabel||this.options.model.get("isDisabled"))&&this.options.model.get("tooltipText");if(t)return[{behaviorClass:f.H,title:t}]}},{key:"appLinks",get:function(){return!this.model.get("appLink")||this.model.get("isDisabled")?{}:{"[this]":this.model.get("appLink")}}},{key:"onClick",value:function(){this.logAction()}},{key:"logAction",value:function(){var t,e,n=this.model.get("appLink");if(p.isObject(n)){var o=(t=n.args,e=1,function(t){if(Array.isArray(t))return t}(t)||function(t,e){var n=null==t?null:"undefined"!=typeof Symbol&&t[Symbol.iterator]||t["@@iterator"];if(null!=n){var o,i,r,l,s=[],a=!0,c=!1;try{if(r=(n=n.call(t)).next,0===e){if(Object(n)!==n)return;a=!1}else for(;!(a=(o=r.call(n)).done)&&(s.push(o.value),s.length!==e);a=!0);}catch(t){c=!0,i=t}finally{try{if(!a&&null!=n.return&&(l=n.return(),Object(l)!==l))return}finally{if(c)throw i}}return s}}(t,e)||function(t,e){if(t){if("string"==typeof t)return b(t,e);var n={}.toString.call(t).slice(8,-1);return"Object"===n&&t.constructor&&(n=t.constructor.name),"Map"===n||"Set"===n?Array.from(t):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?b(t,e):void 0}}(t,e)||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.")}())[0];l.k.logUserAction({id:o},this.model.get("analyticsOptions"))}}},{key:"viewOptions",value:function(){return{styles:y,showLabel:this.options.showLabel,additionalClassName:this.model.get("isDisabled")?"disabled":"cursor-pointer"}}}])}(r.Q.wA),C=function(t){function e(t){return v(this,e),O(this,e,[t])}return P(e,t),w(e,[{key:"name",get:function(){return"VideoActionsComponentCollection"}},{key:"childView",get:function(){return j}},{key:"childViewOptions",get:function(){return{showLabel:this.options.showActionLabels}}}])}(r.Q.$W),_=n(57098),x=n(93569),A=n(89707),D=n(264),V=n(25887),L=n(59168),N=n.n(L);function R(t){return R="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},R(t)}function M(t,e){(null==e||e>t.length)&&(e=t.length);for(var n=0,o=Array(e);n<e;n++)o[n]=t[n];return o}function I(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,B(o.key),o)}}function B(t){var e=function(t){if("object"!=R(t)||!t)return t;var e=t[Symbol.toPrimitive];if(void 0!==e){var n=e.call(t,"string");if("object"!=R(n))return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(t)}(t);return"symbol"==R(e)?e:e+""}function F(){try{var t=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){})))}catch(t){}return(F=function(){return!!t})()}function U(t){return U=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(t){return t.__proto__||Object.getPrototypeOf(t)},U(t)}function K(t,e){return K=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(t,e){return t.__proto__=e,t},K(t,e)}var z=function(t){function e(t){return function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,e),function(t,e,n){return e=U(e),function(t,e){if(e&&("object"==R(e)||"function"==typeof e))return e;if(void 0!==e)throw new TypeError("Derived constructors may only return object or undefined");return function(t){if(void 0===t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return t}(t)}(t,F()?Reflect.construct(e,n||[],U(t).constructor):e.apply(t,n))}(this,e,[t])}return function(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function");t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,writable:!0,configurable:!0}}),Object.defineProperty(t,"prototype",{writable:!1}),e&&K(t,e)}(e,t),n=e,p=[{key:"initialize",value:function(){this.bindListeners()}},{key:"name",get:function(){return"VideoActionsComponent"}},{key:"template",get:function(){return N()}},{key:"lang",get:function(){return"shared.videoActions"}},{key:"className",get:function(){return"".concat(y.actions," ").concat(this.model.id)}},{key:"channelName",get:function(){return"".concat(this.name).concat(this.cid)}},{key:"elements",get:function(){return{dropdownToggle:".ui-dropdown-toggle",moreActions:".more-actions-region"}}},{key:"regions",value:function(){return{actions:{el:".actions-region"},moreActions:{el:"@ui.moreActions",replaceElement:!1}}}},{key:"events",value:function(){return{click:"onClick"}}},{key:"bindListeners",value:function(){this.listenTo(this.name,"hide:actions:dropdown",this.hideDropdown)}},{key:"hideDropdown",value:function(t){this.model.id!==t&&this.getUI("dropdownToggle").dropdown("hide")}},{key:"onClick",value:function(t){o.Radio.channel(this.name).trigger("hide:actions:dropdown",this.model.id),t.stopPropagation()}},{key:"onClickMore",value:function(){this.renderMoreActions(),this.getUI("dropdownToggle").dropdown("toggle")}},{key:"hasProduct",value:function(t){var e;return!!(null===(e=this.options.products)||void 0===e?void 0:e.find((function(e){return e.get("id")===t})))}},{key:"getActions",value:function(){return new r.Q.FE([].concat(function(t){return function(t){if(Array.isArray(t))return M(t)}(t)||function(t){if("undefined"!=typeof Symbol&&null!=t[Symbol.iterator]||null!=t["@@iterator"])return Array.from(t)}(t)||function(t,e){if(t){if("string"==typeof t)return M(t,e);var n={}.toString.call(t).slice(8,-1);return"Object"===n&&t.constructor&&(n=t.constructor.name),"Map"===n||"Set"===n?Array.from(t):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?M(t,e):void 0}}(t)||function(){throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}(x.M2.isInteractive(this.model)&&this.hasProduct(a.x.Analytics)?[{title:i.T.getPhrase(this.lang,"viewResults"),svg:c.Nj.getSvg(c.vn.Analytics),tooltipText:i.T.getPhrase(this.lang,"viewResults"),analyticsOptions:l.k.mergeOptions(this.options.analyticsOptions,{actionType:s.Vw.Click,descriptor:s.XX.ViewResults}),href:A.k.getAnalyticsUrl(this.model,this.options.config),external:!0}]:[]),[{title:i.T.getPhrase(this.lang,"share"),svg:c.Nj.getSvg(c.vn.Share),isDisabled:!x.BK.canShareVideo(this.options.libraries,this.options.application),tooltipText:x.BK.canShareVideo(this.options.libraries,this.options.application)?i.T.getPhrase(this.lang,"share"):x.BK.getSharePermissionsMessage(this.options.libraries,this.options.application),appLink:D.g.hasLite?{application:this.options.application,action:_.eX.Shared.SHARE,args:[this.model.get("id")],params:{entityType:x.M2.getMediaType(this.model)}}:{application:this.options.application,action:_.eX.Shared.SHARE_VIDEO,args:[this.model.get("id")]},analyticsOptions:l.k.mergeOptions(this.options.analyticsOptions,{actionType:s.Vw.Share,eventVersion:s.eq.V3})},{title:i.T.getPhrase(this.lang,"edit"),svg:x.BK.canEditVideo(this.model)?c.Nj.getSvg(c.vn.Edit):c.Nj.getSvg(c.vn.EditClickView),tooltipText:this.getEditTooltip(),appLink:x.M2.getEditAppLink(this.model),analyticsOptions:l.k.mergeOptions(this.options.analyticsOptions,{actionType:s.Vw.Edit,workflowPhase:s.eu.Start})}]))}},{key:"getEditTooltip",value:function(){return x.BK.canEditVideo(this.model)?i.T.getPhrase(this.lang,"edit"):x.M2.isExchangeVideo(this.model)?i.T.getPhrase(this.lang,"linkedToExchange"):i.T.getPhrase(this.lang,"linkedToCv")}},{key:"getFolderSourceId",value:function(){return this.options.collectionSource===V.x_.Folder?this.options.collectionIdentifier.id:this.model.get("categories").first().get("id")}},{key:"getMoreActions",value:function(){var t=[];if(this.options.collectionIdentifier&&t.push({title:i.T.getPhrase(this.lang,"move"),appLink:{application:this.options.application,action:_.eX.Shared.MOVE_VIDEOS,args:[this.model.get("id").toString(),this.getFolderSourceId()]},analyticsOptions:l.k.mergeOptions(this.options.analyticsOptions,{actionType:s.Vw.Move,descriptor:s.yh.Single,workflowPhase:s.eu.Start})}),t.push({title:i.T.getPhrase(this.lang,"manageAccess"),appLink:{application:this.options.application,action:_.eX.Shared.MANAGE_VIDEO_ACCESS,args:[this.model.get("id").toString(),this.model.get("typeId")]},analyticsOptions:l.k.mergeOptions(this.options.analyticsOptions,{actionType:s.Vw.SetAccess,workflowPhase:s.eu.Start})}),this.options.application===_.OV.CONTENT_UPDATES&&this.options.customerHasCustomLibrary&&t.push({title:i.T.getPhrase(this.lang,"addToLibrary"),appLink:{application:this.options.application,action:_.eX.ContentUpdates.ADD_TO_LIBRARY,args:[this.model.get("id").toString()]}}),t.push({title:i.T.getPhrase(this.lang,"openInStaffView"),href:x.M2.getProductUrl(this.model,this.options.config),external:!0,icon:c.Nj.getSvg(c.vn.NewWindow),analyticsOptions:l.k.mergeOptions(this.options.analyticsOptions,{actionType:s.Vw.Click,descriptor:s._S.OpenInStaffView})}),!x.M2.isInteractive(this.model)&&this.hasProduct(a.x.Analytics)&&t.push({title:i.T.getPhrase(this.lang,"viewUsage"),icon:c.Nj.getSvg(c.vn.NewWindow),analyticsOptions:l.k.mergeOptions(this.options.analyticsOptions,{actionType:s.Vw.Click,descriptor:s.XX.ViewResults}),href:A.k.getAnalyticsUrl(this.model,this.options.config),external:!0}),x.M2.isVideo(this.model)&&this.options.application!==_.OV.CONTENT_UPDATES){var e=x.BK.canDownloadVideo(this.model);t.push({title:i.T.getPhrase(this.lang,"download"),disabled:!e,classes:e?"":"".concat(y.disabled),tooltip:e?null:{title:i.T.getPhrase(this.lang,"cannotDownload"),placement:"left"},analyticsOptions:l.k.mergeOptions(this.options.analyticsOptions,{actionType:s.Vw.Download}),appLink:e?{application:this.options.application,action:_.eX.Shared.DOWNLOAD_VIDEO,args:[this.model.id.toString()]}:null})}return x.M2.isVideo(this.model)&&this.options.customerHasExchange&&x.BK.canAddToExchange(this.model)&&t.push({title:i.T.getPhrase(this.lang,"addToExchange"),appLink:{application:this.options.application,action:_.eX.LibraryEditor.ADD_TO_EXCHANGE,args:[this.model.get("id").toString()]}}),x.M2.isVideo(this.model)&&this.options.customerHasLocalCache&&t.push({title:i.T.getPhrase(this.lang,"localCache"),appLink:{application:this.options.application,action:_.eX.Shared.DOWNLOAD_TO_LOCAL_CACHE,args:[this.model.id.toString()]},analyticsOptions:l.k.mergeOptions(this.options.analyticsOptions,{actionType:s.Vw.AddToLocalCache})}),this.options.collectionIdentifier&&t.push({title:i.T.getPhrase(this.lang,"remove"),appLink:{application:this.options.application,action:_.eX.Shared.DELETE_VIDEOS,args:[this.getFolderSourceId(),this.model.get("id").toString()],params:{routeToFolderOnDelete:this.options.routeToFolderOnDelete}},classes:"text-danger",analyticsOptions:l.k.mergeOptions(this.options.analyticsOptions,{actionType:s.Vw.Delete,descriptor:s.yh.Single,workflowPhase:s.eu.Start})}),new r.Q.FE(t)}},{key:"renderActions",value:function(){this.showChildView("actions",new C({collection:this.getActions(),showActionLabels:this.options.showActionLabels}))}},{key:"renderMoreActions",value:function(){this.moreActionsRendered||(this.moreActionsRendered=!0,this.showChildView("moreActions",new u.w({displayOptions:{alignment:"end"},channelName:this.channelName,collection:this.getMoreActions(),childOptions:{isDisabled:function(){return this.model.get("disabled")},getTooltip:function(){return this.options.model.get("tooltip")}},analyticsHelper:l.k})))}},{key:"viewOptions",value:function(){return{styles:y,moreSvg:c.Nj.getSvg(c.vn.More),showLabel:this.options.showActionLabels}}},{key:"onRender",value:function(){this.moreActionsRendered=!1,this.renderActions(),this.renderMoreActions()}}],p&&I(n.prototype,p),Object.defineProperty(n,"prototype",{writable:!1}),n;var n,p}(r.Q.wA)},23130:function(t,e,n){"use strict";n.d(e,{Z:function(){return v},t:function(){return o}});var o,i=n(57857),r=n(31647),l=n(93569),s=n(58040),a=n.n(s),c={columnNames:"hkjBy",descriptionWrapper:"vGCSU",description:"lM8Hu",ellipsis:"zcKZV",showMoreEllipsis:"mUQy_",singleEllipsis:"sLOGz",showEllipsis:"Dn0yN",hideEllipsis:"Y0fDv",open:"JcPWW",truncateSmall:"FgeiQ",truncateLarge:"x5Rgi"};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){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,m(o.key),o)}}function f(){try{var t=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){})))}catch(t){}return(f=function(){return!!t})()}function h(t){return h=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(t){return t.__proto__||Object.getPrototypeOf(t)},h(t)}function d(t,e){return d=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(t,e){return t.__proto__=e,t},d(t,e)}function y(t,e,n){return(e=m(e))in t?Object.defineProperty(t,e,{value:n,enumerable:!0,configurable:!0,writable:!0}):t[e]=n,t}function m(t){var e=function(t){if("object"!=u(t)||!t)return t;var e=t[Symbol.toPrimitive];if(void 0!==e){var n=e.call(t,"string");if("object"!=u(n))return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(t)}(t);return"symbol"==u(e)?e:e+""}!function(t){t.Small="sm",t.Large="lg"}(o||(o={}));var b=y(y({},o.Small,3),o.Large,5),v=function(t){function e(t){var n;return function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,e),(n=function(t,e,n){return e=h(e),function(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)}(t,f()?Reflect.construct(e,n||[],h(t).constructor):e.apply(t,n))}(this,e,[t])).showingMore=!1,n}return function(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function");t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,writable:!0,configurable:!0}}),Object.defineProperty(t,"prototype",{writable:!1}),e&&d(t,e)}(e,t),n=e,r=[{key:"name",get:function(){return"VideoDescriptionComponent"}},{key:"template",get:function(){return a()}},{key:"lang",get:function(){return"shared.videoDescription"}},{key:"defaults",get:function(){return{size:"sm"}}},{key:"elements",get:function(){return{description:".description-element",ellipsis:this.options.allowExpand?".".concat(c.showMoreEllipsis):".".concat(c.singleEllipsis)}}},{key:"events",value:function(){return y({},"click .".concat(c.showMoreEllipsis),"onClickShowMore")}},{key:"onClickShowMore",value:function(t){t.preventDefault(),this.showingMore?this.showLessDescription():this.showMoreDescription()}},{key:"getDescription",value:function(){return this.options.linkify?l.m$.linkifyText(this.model.get("description")):this.options.highlighter?l.m$.wordsHighlighter(l.m$.escapeExpression(this.model.get("description")),this.model.get("_matchedWords")):void 0}},{key:"getDescriptionElements",value:function(){return{descriptionTextEl:this.getUI("description"),ellipsisEl:this.getUI("ellipsis")}}},{key:"showMoreDescription",value:function(){var t=this.getDescriptionElements(),e=t.descriptionTextEl,n=t.ellipsisEl;e.removeClass(c.truncateLarge).addClass(c.open),n.text(i.T.getPhrase(this.lang,"showLess")),this.showingMore=!0}},{key:"showLessDescription",value:function(){var t,e=this.getDescriptionElements(),n=e.descriptionTextEl,r=e.ellipsisEl;this.options.size===o.Small&&(t="truncateSmall"),this.options.size===o.Large&&(t="truncateLarge"),n.addClass(c[t]),r.text(this.options.allowExpand?"... ".concat(i.T.getPhrase(this.lang,"showMore")):"...").removeClass(c.hideEllipsis).addClass(c.showEllipsis),this.showingMore=!1}},{key:"truncateDescription",value:function(){if(this.options.truncate){var t=this.getDescriptionElements().descriptionTextEl,e=b[this.options.size];t.height()<=21*e||this.showLessDescription()}}},{key:"viewOptions",value:function(){return{styles:c,truncate:this.options.truncate,expandable:this.options.allowExpand,description:this.getDescription()}}},{key:"onAttach",value:function(){this.truncateDescription()}}],r&&p(n.prototype,r),Object.defineProperty(n,"prototype",{writable:!1}),n;var n,r}(r.Q.wA)},7427:function(t,e,n){"use strict";n.d(e,{V:function(){return y}});var o=n(31647),i=n(57098),r=n(93569),l=n(25205),s=n.n(l),a={sourceLabel:"TczXY"};function c(t){return c="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},c(t)}function 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,p(o.key),o)}}function p(t){var e=function(t){if("object"!=c(t)||!t)return t;var e=t[Symbol.toPrimitive];if(void 0!==e){var n=e.call(t,"string");if("object"!=c(n))return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(t)}(t);return"symbol"==c(e)?e:e+""}function f(){try{var t=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){})))}catch(t){}return(f=function(){return!!t})()}function h(t){return h=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(t){return t.__proto__||Object.getPrototypeOf(t)},h(t)}function d(t,e){return d=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(t,e){return t.__proto__=e,t},d(t,e)}var y=function(t){function e(t){return function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,e),function(t,e,n){return e=h(e),function(t,e){if(e&&("object"==c(e)||"function"==typeof e))return e;if(void 0!==e)throw new TypeError("Derived constructors may only return object or undefined");return function(t){if(void 0===t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return t}(t)}(t,f()?Reflect.construct(e,n||[],h(t).constructor):e.apply(t,n))}(this,e,[t])}return function(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function");t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,writable:!0,configurable:!0}}),Object.defineProperty(t,"prototype",{writable:!1}),e&&d(t,e)}(e,t),n=e,o=[{key:"name",get:function(){return"VideoSourcesMetadataComponent"}},{key:"template",get:function(){return s()}},{key:"lang",get:function(){return"shared.videoSourcesMetadata"}},{key:"defaults",get:function(){return{showFolder:!1,highlight:!1}}},{key:"appLinks",get:function(){var t;return this.options.showFolder&&(null===(t=this.folders)||void 0===t?void 0:t.length)?this.folders.reduce((function(t,e){return t[".applink-folder-".concat(e.get("id"))]={application:i.OV.LIBRARY_EDITOR,action:i.eX.LibraryEditor.FOLDER,args:[e.get("id")]},t}),{}):{}}},{key:"events",value:function(){var t,e,n,o=Object.keys(this.appLinks),i=(t={},n="onClick",(e=p(e="click .".concat(a.sourceLabel)))in t?Object.defineProperty(t,e,{value:n,enumerable:!0,configurable:!0,writable:!0}):t[e]=n,t);return o.forEach((function(t){i["click ".concat(t)]="onClick"})),i}},{key:"onClick",value:function(t){t.stopPropagation()}},{key:"getFolderLinks",value:function(){var t,e=this;if(null===(t=this.folders)||void 0===t?void 0:t.length){var n={};return this.folders.forEach((function(t){var o=e.options.highlight?r.m$.wordsHighlighter(r.m$.escapeExpression(t.get("name")),e.model.get("_matchedWords")):r.m$.escapeExpression(t.get("name"));n[t.get("id")]=o})),Object.keys(n).map((function(t){return'<a class="info-link applink-folder-'.concat(t,'">').concat(n[t],"</a>")})).join(", ")}}},{key:"getCustomLibraryFolders",value:function(){var t;if(!(null===(t=this.model)||void 0===t?void 0:t.categories)||!this.options.libraries)return[];var e=this.options.libraries.reduce((function(t,e){return t[e.id]=!0,t}),{});return this.model.categories.filter((function(t){var n,o=null===(n=t.libraries)||void 0===n?void 0:n.first().get("id");return e[o]}))}},{key:"onBeforeRender",value:function(){var t;return this.folders||(this.folders=this.getCustomLibraryFolders()),this.options.showFolder&&!!(null===(t=this.folders)||void 0===t?void 0:t.length)}},{key:"viewOptions",value:function(){return{styles:a,folderCount:this.folders.length,folders:this.options.showFolder&&this.getFolderLinks(),hideLabel:this.options.hideLabel}}}],o&&u(n.prototype,o),Object.defineProperty(n,"prototype",{writable:!1}),n;var n,o}(o.Q.wA)},61356:function(t,e,n){"use strict";n.d(e,{c:function(){return S}});var o=n(43823),i=n(21161),r=n(31647),l=n(52076),s=n(70065),a=n(88483),c=n(2772),u=n(10101),p=n(89167),f=n(57098),h=n(93569),d=n(264),y=n(57e3),m=n(37339),b=n.n(m);function v(t){return v="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},v(t)}function g(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,w(o.key),o)}}function w(t){var e=function(t){if("object"!=v(t)||!t)return t;var e=t[Symbol.toPrimitive];if(void 0!==e){var n=e.call(t,"string");if("object"!=v(n))return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(t)}(t);return"symbol"==v(e)?e:e+""}function k(){try{var t=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){})))}catch(t){}return(k=function(){return!!t})()}function O(t){return O=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(t){return t.__proto__||Object.getPrototypeOf(t)},O(t)}function E(t,e){return E=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(t,e){return t.__proto__=e,t},E(t,e)}var S=function(t){function e(t){var n;return function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,e),(n=function(t,e,n){return e=O(e),function(t,e){if(e&&("object"==v(e)||"function"==typeof e))return e;if(void 0!==e)throw new TypeError("Derived constructors may only return object or undefined");return function(t){if(void 0===t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return t}(t)}(t,k()?Reflect.construct(e,n||[],O(t).constructor):e.apply(t,n))}(this,e,[t]))._viewKeyRequested=!1,n}return function(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function");t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,writable:!0,configurable:!0}}),Object.defineProperty(t,"prototype",{writable:!1}),e&&E(t,e)}(e,t),n=e,(r=[{key:"initialize",value:function(){this.bindListeners()}},{key:"name",get:function(){return"VideoPreviewComponent"}},{key:"template",get:function(){return b()}},{key:"instanceChannelName",get:function(){return h.N0.generateUniqueChannelName(this)}},{key:"defaults",get:function(){return{captureAnalytics:!0}}},{key:"behaviors",get:function(){var t=this;return[{behaviorClass:u.Im,selector:".lazy-img",callback:function(){o.Radio.channel(t.instanceChannelName).trigger("show:play:icon")},minBrowserSupportVersion:f.v9}]}},{key:"regions",value:function(){return{player:{el:".video-player-region",replaceElement:!1},thumbnail:{el:".thumbnail-region",replaceElement:!0}}}},{key:"events",value:function(){return{click:"onClick"}}},{key:"bindListeners",value:function(){this.options.channelName&&this.listenTo(this.options.channelName,"update:chapter:time",this.onUpdateWebplayer)}},{key:"onUpdateWebplayer",value:function(t){return d.g.hasLite?this.playerViewKey?this.player?void this.seekToChapter(t):(this.listenToOnce(this.options.channelName,"player:loaded",i.bind(this.seekToChapter,this,t)),void this.renderVideoPreview()):(this.listenToOnce(this.options.channelName,"player:loaded",i.bind(this.seekToChapter,this,t)),void this.requestViewKey()):this.webPlayer?void this.seekToChapter(t):(this.listenToOnce(this.options.channelName,"webplayer:loaded",i.bind(this.seekToChapter,this,t)),void this.renderVideoPreview())}},{key:"seekToChapter",value:function(t){this.player?this.player.currentTime(t):this.webPlayer.seekTo(t)}},{key:"requestViewKey",value:function(){var t=this;this.playerViewKey||this._viewKeyRequested||(this._viewKeyRequested=!0,this.options.createViewKey(this.model.get("id"),(function(e){t.playerViewKey=e,t.renderVideoPreview()})))}},{key:"onClick",value:function(){this.model.get("id")&&(d.g.hasLite?this.requestViewKey():this.webPlayer||this.renderVideoPreview())}},{key:"renderThumbnail",value:function(){this.showChildView("thumbnail",new c.Z({model:this.model,thumbnailOptions:{size:a.h2.Medium},playIcon:!0,lazyload:!0,channelName:this.instanceChannelName,thumbnail:h.M2.getThumbnail(this.model),duration:h.M2.getDuration(this.model),durationNewStyle:!0}))}},{key:"renderVideoPreview",value:function(){if(this.playerViewKey)return this.player=new y.l({model:this.playerViewKey,playerApiUrl:this.options.playerApiUrl,channelName:this.options.channelName}),void this.showChildView("player",this.player);this.webPlayer=new p.Q({model:this.model,webPlayerUrl:this.options.webPlayerUrl,parentChannelName:this.options.channelName,autoplay:!0,analyticsOptions:l.k.mergeOptions(this.options.analyticsOptions,{entity:s.py.Video}),captureAnalytics:this.options.captureAnalytics,currentUser:this.options.currentUser}),this.showChildView("player",this.webPlayer)}},{key:"onRender",value:function(){this.playerViewKey?this.renderVideoPreview():this.renderThumbnail()}}])&&g(n.prototype,r),Object.defineProperty(n,"prototype",{writable:!1}),n;var n,r}(r.Q.wA)},15564:function(t,e,n){var o=n(31197);t.exports=(o.default||o).template({1:function(t,e,n,o,i){return'<span class="btn-close cursor-pointer" role="button" aria-label="Close"></span>\n'},compiler:[8,">= 4.3.0"],main:function(t,e,n,o,i){t.propertyIsEnumerable;var r,l,s=null!=e?e:t.nullContext||{},a=t.escapeExpression;return'<span title="'+a("function"==typeof(l=null!=(l=n.name||(null!=e?e.name:e))?l:t.hooks.helperMissing)?l.call(s,{name:"name",hash:{},data:i}):l)+'">'+a(t.lambda(null!=(r=null!=e?e.options:e)?r.trimmedName:r,e))+"</span>\n"+(null!=(r=n.if.call(s,null!=(r=null!=e?e.options:e)?r.removable:r,{name:"if",hash:{},fn:t.program(1,i,0),inverse:t.noop,data:i}))?r:"")},useData:!0})},37106:function(t,e,n){var o=n(31197);t.exports=(o.default||o).template({1:function(t,e,n,o,i){var r;return t.propertyIsEnumerable,t.escapeExpression("function"==typeof(r=null!=(r=n.title||(null!=e?e.title:e))?r:t.hooks.helperMissing)?r.call(null!=e?e:t.nullContext||{},{name:"title",hash:{},data:i}):r)},compiler:[8,">= 4.3.0"],main:function(t,e,n,o,i){t.propertyIsEnumerable;var r,l,s=t.lambda,a=t.escapeExpression,c=null!=e?e:t.nullContext||{};return' <span class="d-inline-block align-middle '+a(s(null!=(r=null!=(r=null!=e?e.options:e)?r.styles:r)?r.svgContainer:r,e))+" "+a(s(null!=(r=null!=e?e.options:e)?r.additionalClassName:r,e))+'">'+(null!=(r="function"==typeof(l=null!=(l=n.svg||(null!=e?e.svg:e))?l:t.hooks.helperMissing)?l.call(c,{name:"svg",hash:{},data:i}):l)?r:"")+"</span>\n"+(null!=(r=n.if.call(c,null!=(r=null!=e?e.options:e)?r.showLabel:r,{name:"if",hash:{},fn:t.program(1,i,0),inverse:t.noop,data:i}))?r:"")},useData:!0})},59168:function(t,e,n){var o=n(31197);t.exports=(o.default||o).template({1:function(t,e,n,o,i){return"btn btn-outline-dark px-0 ms-2"},3:function(t,e,n,o,i){var r;return t.propertyIsEnumerable,t.escapeExpression(t.lambda(null!=(r=null!=(r=null!=e?e.options:e)?r.styles:r)?r.moreSvgContainer:r,e))},5:function(t,e,n,o,i){var r;return t.propertyIsEnumerable,t.escapeExpression(t.lambda(null!=(r=null!=(r=null!=e?e.options:e)?r.styles:r)?r.svgContainer:r,e))+" align-middle"},compiler:[8,">= 4.3.0"],main:function(t,e,n,o,i){t.propertyIsEnumerable;var r,l=null!=e?e:t.nullContext||{};return'<div class="actions-region d-inline-block"></div><span class="position-relative d-inline-block dropdown">\n <span\n data-bs-toggle="dropdown"\n aria-haspopup="true"\n aria-expanded="false"\n class="'+(null!=(r=n.if.call(l,null!=(r=null!=e?e.options:e)?r.showLabel:r,{name:"if",hash:{},fn:t.program(1,i,0),inverse:t.noop,data:i}))?r:"")+' ui-dropdown-toggle"\n >\n <span class="ui-more d-inline-block '+(null!=(r=n.if.call(l,null!=(r=null!=e?e.options:e)?r.showLabel:r,{name:"if",hash:{},fn:t.program(3,i,0),inverse:t.program(5,i,0),data:i}))?r:"")+' cursor-pointer">'+(null!=(r=t.lambda(null!=(r=null!=e?e.options:e)?r.moreSvg:r,e))?r:"")+'</span>\n </span>\n <div class="more-actions-region"></div>\n</span>\n'},useData:!0})},58040:function(t,e,n){var o=n(31197);t.exports=(o.default||o).template({1:function(t,e,n,o,i){t.propertyIsEnumerable;var r,l=t.lambda,s=t.escapeExpression;return' <div class="'+s(l(null!=(r=null!=(r=null!=e?e.options:e)?r.styles:r)?r.descriptionWrapper:r,e))+'">\n <p class="description-element '+s(l(null!=(r=null!=(r=null!=e?e.options:e)?r.styles:r)?r.description:r,e))+'">'+(null!=(r=n.if.call(null!=e?e:t.nullContext||{},null!=(r=null!=e?e.options:e)?r.expandable:r,{name:"if",hash:{},fn:t.program(2,i,0),inverse:t.program(4,i,0),data:i}))?r:"")+"</p>\n </div>\n"},2:function(t,e,n,o,i){t.propertyIsEnumerable;var r,l=t.lambda,s=t.escapeExpression;return(null!=(r=l(null!=(r=null!=e?e.options:e)?r.description:r,e))?r:"")+'<span class="'+s(l(null!=(r=null!=(r=null!=e?e.options:e)?r.styles:r)?r.showMoreEllipsis:r,e))+" "+s(l(null!=(r=null!=(r=null!=e?e.options:e)?r.styles:r)?r.hideEllipsis:r,e))+'">... '+s((n.lang||e&&e.lang||t.hooks.helperMissing).call(null!=e?e:t.nullContext||{},"showMore",{name:"lang",hash:{},data:i}))+"</span>"},4:function(t,e,n,o,i){t.propertyIsEnumerable;var r,l=t.lambda,s=t.escapeExpression;return(null!=(r=l(null!=(r=null!=e?e.options:e)?r.description:r,e))?r:"")+'<span class="'+s(l(null!=(r=null!=(r=null!=e?e.options:e)?r.styles:r)?r.singleEllipsis:r,e))+" "+s(l(null!=(r=null!=(r=null!=e?e.options:e)?r.styles:r)?r.hideEllipsis:r,e))+'">...</span>'},6:function(t,e,n,o,i){t.propertyIsEnumerable;var r,l=t.lambda;return' <p class="'+t.escapeExpression(l(null!=(r=null!=(r=null!=e?e.options:e)?r.styles:r)?r.description:r,e))+'">'+(null!=(r=l(null!=(r=null!=e?e.options:e)?r.description:r,e))?r:"")+"</p>\n"},compiler:[8,">= 4.3.0"],main:function(t,e,n,o,i){var r;return t.propertyIsEnumerable,null!=(r=n.if.call(null!=e?e:t.nullContext||{},null!=(r=null!=e?e.options:e)?r.truncate:r,{name:"if",hash:{},fn:t.program(1,i,0),inverse:t.program(6,i,0),data:i}))?r:""},useData:!0})},25205:function(t,e,n){var o=n(31197);t.exports=(o.default||o).template({1:function(t,e,n,o,i){t.propertyIsEnumerable;var r,l=t.escapeExpression;return'<span class="'+l(t.lambda(null!=(r=null!=(r=null!=e?e.options:e)?r.styles:r)?r.sourceLabel:r,e))+'">'+l((n.lang||e&&e.lang||t.hooks.helperMissing).call(null!=e?e:t.nullContext||{},"folder",{name:"lang",hash:{smartCount:null!=(r=null!=e?e.options:e)?r.folderCount:r},data:i}))+"</span>\n"},compiler:[8,">= 4.3.0"],main:function(t,e,n,o,i){var r;return t.propertyIsEnumerable,(null!=(r=n.unless.call(null!=e?e:t.nullContext||{},null!=(r=null!=e?e.options:e)?r.hideLabel:r,{name:"unless",hash:{},fn:t.program(1,i,0),inverse:t.noop,data:i}))?r:"")+(null!=(r=t.lambda(null!=(r=null!=e?e.options:e)?r.folders:r,e))?r:"")},useData:!0})},37339:function(t,e,n){var o=n(31197);t.exports=(o.default||o).template({1:function(t,e,n,o,i){return"cursor-pointer "},compiler:[8,">= 4.3.0"],main:function(t,e,n,o,i){var r;return t.propertyIsEnumerable,'<div class="video-player-region '+(null!=(r=n.if.call(null!=e?e:t.nullContext||{},null!=e?e.id:e,{name:"if",hash:{},fn:t.program(1,i,0),inverse:t.noop,data:i}))?r:"")+'">\n <div class="thumbnail-region"></div>\n</div>'},useData:!0})}}]);
|
|
1
|
+
(self.webpackChunk_clickview_library_editor=self.webpackChunk_clickview_library_editor||[]).push([[5707],{44391:function(t,e,n){"use strict";n.d(e,{K:function(){return E}});var o=n(11306),i=n(31647),r=n(48088),l=n(57098),s=n(25887),a=n(15564),c=n.n(a);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){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,f(o.key),o)}}function f(t){var e=function(t){if("object"!=u(t)||!t)return t;var e=t[Symbol.toPrimitive];if(void 0!==e){var n=e.call(t,"string");if("object"!=u(n))return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(t)}(t);return"symbol"==u(e)?e:e+""}function h(){try{var t=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){})))}catch(t){}return(h=function(){return!!t})()}function d(t){return d=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(t){return t.__proto__||Object.getPrototypeOf(t)},d(t)}function y(t,e){return y=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(t,e){return t.__proto__=e,t},y(t,e)}var m=function(t){function e(t){return function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,e),function(t,e,n){return e=d(e),function(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)}(t,h()?Reflect.construct(e,n||[],d(t).constructor):e.apply(t,n))}(this,e,[t])}return function(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function");t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,writable:!0,configurable:!0}}),Object.defineProperty(t,"prototype",{writable:!1}),e&&y(t,e)}(e,t),n=e,o=[{key:"name",get:function(){return"TagItemComponent"}},{key:"tagName",get:function(){return this.options.behavior===s.Dm.Link?"a":"span"}},{key:"className",get:function(){var t="".concat(this.options.orientation===s.zM.Vertical?"":" d-inline-flex"),e="".concat(this.isSaving()?" saving":""),n="".concat(this.options.behavior===s.Dm.Disabled?" ".concat("dE3WC"):""),o="".concat(this.options.behavior===s.Dm.Filter?" cursor-pointer":"");return"rounded-pill tag py-1 px-2 flex-shrink-0 ".concat(o).concat(t).concat(e).concat(n)}},{key:"template",get:function(){return c()}},{key:"elements",get:function(){return{close:".btn-close"}}},{key:"appLinks",get:function(){return this.options.behavior!==s.Dm.Link?{}:{"[this]":{application:l.OV.SEARCH,action:l.eX.Search.HOME,params:{tag:this.model.get("name")}}}}},{key:"defaults",get:function(){return{behavior:s.Dm.Link,orientation:s.zM.Flex}}},{key:"events",value:function(){return this.options.removeEvent?{"click @ui.close":"onRemoveTag"}:{click:"onClickTag"}}},{key:"initialize",value:function(){this.options.behavior===s.Dm.Edit&&this.listenTo(this.model,"change",this.render)}},{key:"isSaving",value:function(){if(this.options.behavior!==s.Dm.Filter){var t=this.model.pick("id","name","remove"),e=t.id,n=t.name;return!!t.remove||!e||!n}}},{key:"onRemoveTag",value:function(t){if(t.stopPropagation(),!this.isSaving())return this.model.set("remove",!0),r.Radio.channel(this.options.channelName).trigger(this.options.removeEvent,this.model),!1}},{key:"onClickTag",value:function(){this.options.behavior!==s.Dm.Filter||this.options.removeEvent||r.Radio.channel(this.options.channelName).trigger(this.options.clickEvent,this.model)}},{key:"getTrimmedName",value:function(){var t=this.model.get("name");return t.length>36?"".concat(t.substring(0,36),"..."):t}},{key:"viewOptions",value:function(){return{removable:this.options.removeEvent,trimmedName:this.getTrimmedName()}}},{key:"onRender",value:function(){this.resetClassName()}}],o&&p(n.prototype,o),Object.defineProperty(n,"prototype",{writable:!1}),n;var n,o}(i.Q.wA);function b(t){return b="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},b(t)}function v(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,g(o.key),o)}}function g(t){var e=function(t){if("object"!=b(t)||!t)return t;var e=t[Symbol.toPrimitive];if(void 0!==e){var n=e.call(t,"string");if("object"!=b(n))return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(t)}(t);return"symbol"==b(e)?e:e+""}function w(){try{var t=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){})))}catch(t){}return(w=function(){return!!t})()}function k(t){return k=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(t){return t.__proto__||Object.getPrototypeOf(t)},k(t)}function O(t,e){return O=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(t,e){return t.__proto__=e,t},O(t,e)}var E=function(t){function e(t){return function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,e),function(t,e,n){return e=k(e),function(t,e){if(e&&("object"==b(e)||"function"==typeof e))return e;if(void 0!==e)throw new TypeError("Derived constructors may only return object or undefined");return function(t){if(void 0===t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return t}(t)}(t,w()?Reflect.construct(e,n||[],k(t).constructor):e.apply(t,n))}(this,e,[t])}return function(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function");t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,writable:!0,configurable:!0}}),Object.defineProperty(t,"prototype",{writable:!1}),e&&O(t,e)}(e,t),n=e,(r=[{key:"initialize",value:function(){this.options.behavior!==s.Dm.Edit||this.options.removeEvent||i.Q.Ry.throw(new o.H("removeEvent is required to edit tags."))}},{key:"name",get:function(){return"TagComponentCollection"}},{key:"defaults",get:function(){return{orientation:s.zM.Flex}}},{key:"className",get:function(){var t="".concat(this.options.orientation===s.zM.Vertical?"d-flex align-items-start flex-column":"d-flex flex-wrap gap-1");return"tags ".concat(t)}},{key:"childViewOptions",get:function(){return{channelName:this.options.channelName,behavior:this.options.behavior,orientation:this.options.orientation,removeEvent:this.options.removeEvent,clickEvent:this.options.clickEvent}}},{key:"childView",get:function(){return m}}])&&v(n.prototype,r),Object.defineProperty(n,"prototype",{writable:!1}),n;var n,r}(i.Q.$W)},25887:function(t,e,n){"use strict";var o,i,r;n.d(e,{Dm:function(){return o},zM:function(){return i},x_:function(){return r}}),function(t){t[t.Link=1]="Link",t[t.Edit=2]="Edit",t[t.Disabled=3]="Disabled",t[t.Filter=4]="Filter"}(o||(o={})),function(t){t[t.Flex=1]="Flex",t[t.Vertical=2]="Vertical"}(i||(i={})),function(t){t[t.Folder=0]="Folder",t[t.Series=1]="Series"}(r||(r={}))},71641:function(t,e,n){"use strict";n.d(e,{w:function(){return f}});var o=n(39479),i=n(31647),r=n(55142);function l(t){return l="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},l(t)}function s(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,a(o.key),o)}}function a(t){var e=function(t){if("object"!=l(t)||!t)return t;var e=t[Symbol.toPrimitive];if(void 0!==e){var n=e.call(t,"string");if("object"!=l(n))return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(t)}(t);return"symbol"==l(e)?e:e+""}function c(){try{var t=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){})))}catch(t){}return(c=function(){return!!t})()}function u(t){return u=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(t){return t.__proto__||Object.getPrototypeOf(t)},u(t)}function p(t,e){return p=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(t,e){return t.__proto__=e,t},p(t,e)}var f=function(t){function e(t){return function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,e),function(t,e,n){return e=u(e),function(t,e){if(e&&("object"==l(e)||"function"==typeof e))return e;if(void 0!==e)throw new TypeError("Derived constructors may only return object or undefined");return function(t){if(void 0===t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return t}(t)}(t,c()?Reflect.construct(e,n||[],u(t).constructor):e.apply(t,n))}(this,e,[t])}return function(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function");t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,writable:!0,configurable:!0}}),Object.defineProperty(t,"prototype",{writable:!1}),e&&p(t,e)}(e,t),n=e,i=[{key:"name",get:function(){return"DropdownCollectionComponent"}},{key:"className",get:function(){return"dropdown-menu items-viewpart ".concat(this.getExtraClasses(this.options.displayOptions))}},{key:"attributes",get:function(){return{"aria-labelledby":"dropdownSelector"}}},{key:"initialize",value:function(){this.listenTo(this.options.channelName,"center:dropdown",this.centerSelectedItem)}},{key:"childView",get:function(){return r.N}},{key:"childViewOptions",get:function(){var t={channelName:this.options.channelName,analyticsHelper:this.options.analyticsHelper};return o.extend(t,this.options.childOptions)}},{key:"getExtraClasses",value:function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},e=t.alignment,n=void 0===e?"left":e,o=t.extraClasses,i="dropdown-menu-".concat(n);return o&&(i="".concat(i," ").concat(o)),i}},{key:"centerSelectedItem",value:function(){var t=this.$el.find(".active");if(t.length){var e=this.$el.scrollTop()+t.position().top,n=.5*this.$el.height()+.5*t.height();this.$el.scrollTop(e-n)}}}],i&&s(n.prototype,i),Object.defineProperty(n,"prototype",{writable:!1}),n;var n,i}(i.Q.$W)},66882:function(t,e,n){"use strict";n.d(e,{R:function(){return z}});var o=n(48088),i=n(57857),r=n(31647),l=n(52076),s=n(70065),a=n(84868),c=n(63791),u=n(71641),p=n(39479),f=n(56210),h=n(37106),d=n.n(h),y={actions:"VXWM3",svgContainer:"etJKo",moreSvgContainer:"kwNUa",actionName:"gbBGB",disabled:"Ykm_2",iconButton:"xqFbC"};function m(t){return m="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},m(t)}function b(t,e){(null==e||e>t.length)&&(e=t.length);for(var n=0,o=Array(e);n<e;n++)o[n]=t[n];return o}function v(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}function g(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,k(o.key),o)}}function w(t,e,n){return e&&g(t.prototype,e),n&&g(t,n),Object.defineProperty(t,"prototype",{writable:!1}),t}function k(t){var e=function(t){if("object"!=m(t)||!t)return t;var e=t[Symbol.toPrimitive];if(void 0!==e){var n=e.call(t,"string");if("object"!=m(n))return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(t)}(t);return"symbol"==m(e)?e:e+""}function O(t,e,n){return e=S(e),function(t,e){if(e&&("object"==m(e)||"function"==typeof e))return e;if(void 0!==e)throw new TypeError("Derived constructors may only return object or undefined");return function(t){if(void 0===t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return t}(t)}(t,E()?Reflect.construct(e,n||[],S(t).constructor):e.apply(t,n))}function E(){try{var t=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){})))}catch(t){}return(E=function(){return!!t})()}function S(t){return S=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(t){return t.__proto__||Object.getPrototypeOf(t)},S(t)}function P(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&&T(t,e)}function T(t,e){return T=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(t,e){return t.__proto__=e,t},T(t,e)}var j=function(t){function e(t){return v(this,e),O(this,e,[t])}return P(e,t),w(e,[{key:"name",get:function(){return"VideoActionItemComponent"}},{key:"template",get:function(){return d()}},{key:"tagName",get:function(){return"a"}},{key:"attributes",get:function(){return this.model.get("href")?{href:this.model.get("href"),target:this.model.get("external")?"_blank":""}:{}}},{key:"className",get:function(){var t="cursor-pointer";return this.options.showLabel?t+=" ".concat(y.iconButton," btn btn-outline-dark ms-2"):t+=" d-inline-block px-1 no-decoration",this.model.get("isDisabled")&&(t+=" ".concat(y.disabled)),t}},{key:"events",value:function(){return{click:"onClick"}}},{key:"behaviors",get:function(){var t=(!this.options.showLabel||this.options.model.get("isDisabled"))&&this.options.model.get("tooltipText");if(t)return[{behaviorClass:f.H,title:t}]}},{key:"appLinks",get:function(){return!this.model.get("appLink")||this.model.get("isDisabled")?{}:{"[this]":this.model.get("appLink")}}},{key:"onClick",value:function(){this.logAction()}},{key:"logAction",value:function(){var t,e,n=this.model.get("appLink");if(p.isObject(n)){var o=(t=n.args,e=1,function(t){if(Array.isArray(t))return t}(t)||function(t,e){var n=null==t?null:"undefined"!=typeof Symbol&&t[Symbol.iterator]||t["@@iterator"];if(null!=n){var o,i,r,l,s=[],a=!0,c=!1;try{if(r=(n=n.call(t)).next,0===e){if(Object(n)!==n)return;a=!1}else for(;!(a=(o=r.call(n)).done)&&(s.push(o.value),s.length!==e);a=!0);}catch(t){c=!0,i=t}finally{try{if(!a&&null!=n.return&&(l=n.return(),Object(l)!==l))return}finally{if(c)throw i}}return s}}(t,e)||function(t,e){if(t){if("string"==typeof t)return b(t,e);var n={}.toString.call(t).slice(8,-1);return"Object"===n&&t.constructor&&(n=t.constructor.name),"Map"===n||"Set"===n?Array.from(t):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?b(t,e):void 0}}(t,e)||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.")}())[0];l.k.logUserAction({id:o},this.model.get("analyticsOptions"))}}},{key:"viewOptions",value:function(){return{styles:y,showLabel:this.options.showLabel,additionalClassName:this.model.get("isDisabled")?"disabled":"cursor-pointer"}}}])}(r.Q.wA),C=function(t){function e(t){return v(this,e),O(this,e,[t])}return P(e,t),w(e,[{key:"name",get:function(){return"VideoActionsComponentCollection"}},{key:"childView",get:function(){return j}},{key:"childViewOptions",get:function(){return{showLabel:this.options.showActionLabels}}}])}(r.Q.$W),_=n(57098),x=n(93569),A=n(89707),D=n(264),V=n(25887),L=n(59168),N=n.n(L);function R(t){return R="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},R(t)}function M(t,e){(null==e||e>t.length)&&(e=t.length);for(var n=0,o=Array(e);n<e;n++)o[n]=t[n];return o}function I(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,B(o.key),o)}}function B(t){var e=function(t){if("object"!=R(t)||!t)return t;var e=t[Symbol.toPrimitive];if(void 0!==e){var n=e.call(t,"string");if("object"!=R(n))return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(t)}(t);return"symbol"==R(e)?e:e+""}function F(){try{var t=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){})))}catch(t){}return(F=function(){return!!t})()}function U(t){return U=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(t){return t.__proto__||Object.getPrototypeOf(t)},U(t)}function K(t,e){return K=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(t,e){return t.__proto__=e,t},K(t,e)}var z=function(t){function e(t){return function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,e),function(t,e,n){return e=U(e),function(t,e){if(e&&("object"==R(e)||"function"==typeof e))return e;if(void 0!==e)throw new TypeError("Derived constructors may only return object or undefined");return function(t){if(void 0===t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return t}(t)}(t,F()?Reflect.construct(e,n||[],U(t).constructor):e.apply(t,n))}(this,e,[t])}return function(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function");t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,writable:!0,configurable:!0}}),Object.defineProperty(t,"prototype",{writable:!1}),e&&K(t,e)}(e,t),n=e,p=[{key:"initialize",value:function(){this.bindListeners()}},{key:"name",get:function(){return"VideoActionsComponent"}},{key:"template",get:function(){return N()}},{key:"lang",get:function(){return"shared.videoActions"}},{key:"className",get:function(){return"".concat(y.actions," ").concat(this.model.id)}},{key:"channelName",get:function(){return"".concat(this.name).concat(this.cid)}},{key:"elements",get:function(){return{dropdownToggle:".ui-dropdown-toggle",moreActions:".more-actions-region"}}},{key:"regions",value:function(){return{actions:{el:".actions-region"},moreActions:{el:"@ui.moreActions",replaceElement:!1}}}},{key:"events",value:function(){return{click:"onClick"}}},{key:"bindListeners",value:function(){this.listenTo(this.name,"hide:actions:dropdown",this.hideDropdown)}},{key:"hideDropdown",value:function(t){this.model.id!==t&&this.getUI("dropdownToggle").dropdown("hide")}},{key:"onClick",value:function(t){o.Radio.channel(this.name).trigger("hide:actions:dropdown",this.model.id),t.stopPropagation()}},{key:"onClickMore",value:function(){this.renderMoreActions(),this.getUI("dropdownToggle").dropdown("toggle")}},{key:"hasProduct",value:function(t){var e;return!!(null===(e=this.options.products)||void 0===e?void 0:e.find((function(e){return e.get("id")===t})))}},{key:"getActions",value:function(){return new r.Q.FE([].concat(function(t){return function(t){if(Array.isArray(t))return M(t)}(t)||function(t){if("undefined"!=typeof Symbol&&null!=t[Symbol.iterator]||null!=t["@@iterator"])return Array.from(t)}(t)||function(t,e){if(t){if("string"==typeof t)return M(t,e);var n={}.toString.call(t).slice(8,-1);return"Object"===n&&t.constructor&&(n=t.constructor.name),"Map"===n||"Set"===n?Array.from(t):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?M(t,e):void 0}}(t)||function(){throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}(x.M2.isInteractive(this.model)&&this.hasProduct(a.x.Analytics)?[{title:i.T.getPhrase(this.lang,"viewResults"),svg:c.Nj.getSvg(c.vn.Analytics),tooltipText:i.T.getPhrase(this.lang,"viewResults"),analyticsOptions:l.k.mergeOptions(this.options.analyticsOptions,{actionType:s.Vw.Click,descriptor:s.XX.ViewResults}),href:A.k.getAnalyticsUrl(this.model,this.options.config),external:!0}]:[]),[{title:i.T.getPhrase(this.lang,"share"),svg:c.Nj.getSvg(c.vn.Share),isDisabled:!x.BK.canShareVideo(this.options.libraries,this.options.application),tooltipText:x.BK.canShareVideo(this.options.libraries,this.options.application)?i.T.getPhrase(this.lang,"share"):x.BK.getSharePermissionsMessage(this.options.libraries,this.options.application),appLink:D.g.hasLite?{application:this.options.application,action:_.eX.Shared.SHARE,args:[this.model.get("id")],params:{entityType:x.M2.getMediaType(this.model)}}:{application:this.options.application,action:_.eX.Shared.SHARE_VIDEO,args:[this.model.get("id")]},analyticsOptions:l.k.mergeOptions(this.options.analyticsOptions,{actionType:s.Vw.Share,eventVersion:s.eq.V3})},{title:i.T.getPhrase(this.lang,"edit"),svg:x.BK.canEditVideo(this.model)?c.Nj.getSvg(c.vn.Edit):c.Nj.getSvg(c.vn.EditClickView),tooltipText:this.getEditTooltip(),appLink:x.M2.getEditAppLink(this.model),analyticsOptions:l.k.mergeOptions(this.options.analyticsOptions,{actionType:s.Vw.Edit,workflowPhase:s.eu.Start})}]))}},{key:"getEditTooltip",value:function(){return x.BK.canEditVideo(this.model)?i.T.getPhrase(this.lang,"edit"):x.M2.isExchangeVideo(this.model)?i.T.getPhrase(this.lang,"linkedToExchange"):i.T.getPhrase(this.lang,"linkedToCv")}},{key:"getFolderSourceId",value:function(){return this.options.collectionSource===V.x_.Folder?this.options.collectionIdentifier.id:this.model.get("categories").first().get("id")}},{key:"getMoreActions",value:function(){var t=[];if(this.options.collectionIdentifier&&t.push({title:i.T.getPhrase(this.lang,"move"),appLink:{application:this.options.application,action:_.eX.Shared.MOVE_VIDEOS,args:[this.model.get("id").toString(),this.getFolderSourceId()]},analyticsOptions:l.k.mergeOptions(this.options.analyticsOptions,{actionType:s.Vw.Move,descriptor:s.yh.Single,workflowPhase:s.eu.Start})}),t.push({title:i.T.getPhrase(this.lang,"manageAccess"),appLink:{application:this.options.application,action:_.eX.Shared.MANAGE_VIDEO_ACCESS,args:[this.model.get("id").toString(),this.model.get("typeId")]},analyticsOptions:l.k.mergeOptions(this.options.analyticsOptions,{actionType:s.Vw.SetAccess,workflowPhase:s.eu.Start})}),this.options.application===_.OV.CONTENT_UPDATES&&this.options.customerHasCustomLibrary&&t.push({title:i.T.getPhrase(this.lang,"addToLibrary"),appLink:{application:this.options.application,action:_.eX.ContentUpdates.ADD_TO_LIBRARY,args:[this.model.get("id").toString()]}}),t.push({title:i.T.getPhrase(this.lang,"openInStaffView"),href:x.M2.getProductUrl(this.model,this.options.config),external:!0,icon:c.Nj.getSvg(c.vn.NewWindow),analyticsOptions:l.k.mergeOptions(this.options.analyticsOptions,{actionType:s.Vw.Click,descriptor:s._S.OpenInStaffView})}),!x.M2.isInteractive(this.model)&&this.hasProduct(a.x.Analytics)&&t.push({title:i.T.getPhrase(this.lang,"viewUsage"),icon:c.Nj.getSvg(c.vn.NewWindow),analyticsOptions:l.k.mergeOptions(this.options.analyticsOptions,{actionType:s.Vw.Click,descriptor:s.XX.ViewResults}),href:A.k.getAnalyticsUrl(this.model,this.options.config),external:!0}),x.M2.isVideo(this.model)&&this.options.application!==_.OV.CONTENT_UPDATES){var e=x.BK.canDownloadVideo(this.model);t.push({title:i.T.getPhrase(this.lang,"download"),disabled:!e,classes:e?"":"".concat(y.disabled),tooltip:e?null:{title:i.T.getPhrase(this.lang,"cannotDownload"),placement:"left"},analyticsOptions:l.k.mergeOptions(this.options.analyticsOptions,{actionType:s.Vw.Download}),appLink:e?{application:this.options.application,action:_.eX.Shared.DOWNLOAD_VIDEO,args:[this.model.id.toString()]}:null})}return x.M2.isVideo(this.model)&&this.options.customerHasExchange&&x.BK.canAddToExchange(this.model)&&t.push({title:i.T.getPhrase(this.lang,"addToExchange"),appLink:{application:this.options.application,action:_.eX.LibraryEditor.ADD_TO_EXCHANGE,args:[this.model.get("id").toString()]}}),x.M2.isVideo(this.model)&&this.options.customerHasLocalCache&&t.push({title:i.T.getPhrase(this.lang,"localCache"),appLink:{application:this.options.application,action:_.eX.Shared.DOWNLOAD_TO_LOCAL_CACHE,args:[this.model.id.toString()]},analyticsOptions:l.k.mergeOptions(this.options.analyticsOptions,{actionType:s.Vw.AddToLocalCache})}),this.options.collectionIdentifier&&t.push({title:i.T.getPhrase(this.lang,"remove"),appLink:{application:this.options.application,action:_.eX.Shared.DELETE_VIDEOS,args:[this.getFolderSourceId(),this.model.get("id").toString()],params:{routeToFolderOnDelete:this.options.routeToFolderOnDelete}},classes:"text-danger",analyticsOptions:l.k.mergeOptions(this.options.analyticsOptions,{actionType:s.Vw.Delete,descriptor:s.yh.Single,workflowPhase:s.eu.Start})}),new r.Q.FE(t)}},{key:"renderActions",value:function(){this.showChildView("actions",new C({collection:this.getActions(),showActionLabels:this.options.showActionLabels}))}},{key:"renderMoreActions",value:function(){this.moreActionsRendered||(this.moreActionsRendered=!0,this.showChildView("moreActions",new u.w({displayOptions:{alignment:"end"},channelName:this.channelName,collection:this.getMoreActions(),childOptions:{isDisabled:function(){return this.model.get("disabled")},getTooltip:function(){return this.options.model.get("tooltip")}},analyticsHelper:l.k})))}},{key:"viewOptions",value:function(){return{styles:y,moreSvg:c.Nj.getSvg(c.vn.More),showLabel:this.options.showActionLabels}}},{key:"onRender",value:function(){this.moreActionsRendered=!1,this.renderActions(),this.renderMoreActions()}}],p&&I(n.prototype,p),Object.defineProperty(n,"prototype",{writable:!1}),n;var n,p}(r.Q.wA)},23130:function(t,e,n){"use strict";n.d(e,{Z:function(){return v},t:function(){return o}});var o,i=n(57857),r=n(31647),l=n(93569),s=n(58040),a=n.n(s),c={columnNames:"hkjBy",descriptionWrapper:"vGCSU",description:"lM8Hu",ellipsis:"zcKZV",showMoreEllipsis:"mUQy_",singleEllipsis:"sLOGz",showEllipsis:"Dn0yN",hideEllipsis:"Y0fDv",open:"JcPWW",truncateSmall:"FgeiQ",truncateLarge:"x5Rgi"};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){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,m(o.key),o)}}function f(){try{var t=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){})))}catch(t){}return(f=function(){return!!t})()}function h(t){return h=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(t){return t.__proto__||Object.getPrototypeOf(t)},h(t)}function d(t,e){return d=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(t,e){return t.__proto__=e,t},d(t,e)}function y(t,e,n){return(e=m(e))in t?Object.defineProperty(t,e,{value:n,enumerable:!0,configurable:!0,writable:!0}):t[e]=n,t}function m(t){var e=function(t){if("object"!=u(t)||!t)return t;var e=t[Symbol.toPrimitive];if(void 0!==e){var n=e.call(t,"string");if("object"!=u(n))return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(t)}(t);return"symbol"==u(e)?e:e+""}!function(t){t.Small="sm",t.Large="lg"}(o||(o={}));var b=y(y({},o.Small,3),o.Large,5),v=function(t){function e(t){var n;return function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,e),(n=function(t,e,n){return e=h(e),function(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)}(t,f()?Reflect.construct(e,n||[],h(t).constructor):e.apply(t,n))}(this,e,[t])).showingMore=!1,n}return function(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function");t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,writable:!0,configurable:!0}}),Object.defineProperty(t,"prototype",{writable:!1}),e&&d(t,e)}(e,t),n=e,r=[{key:"name",get:function(){return"VideoDescriptionComponent"}},{key:"template",get:function(){return a()}},{key:"lang",get:function(){return"shared.videoDescription"}},{key:"defaults",get:function(){return{size:"sm"}}},{key:"elements",get:function(){return{description:".description-element",ellipsis:this.options.allowExpand?".".concat(c.showMoreEllipsis):".".concat(c.singleEllipsis)}}},{key:"events",value:function(){return y({},"click .".concat(c.showMoreEllipsis),"onClickShowMore")}},{key:"onClickShowMore",value:function(t){t.preventDefault(),this.showingMore?this.showLessDescription():this.showMoreDescription()}},{key:"getDescription",value:function(){return this.options.linkify?l.m$.linkifyText(this.model.get("description")):this.options.highlighter?l.m$.wordsHighlighter(l.m$.escapeExpression(this.model.get("description")),this.model.get("_matchedWords")):void 0}},{key:"getDescriptionElements",value:function(){return{descriptionTextEl:this.getUI("description"),ellipsisEl:this.getUI("ellipsis")}}},{key:"showMoreDescription",value:function(){var t=this.getDescriptionElements(),e=t.descriptionTextEl,n=t.ellipsisEl;e.removeClass(c.truncateLarge).addClass(c.open),n.text(i.T.getPhrase(this.lang,"showLess")),this.showingMore=!0}},{key:"showLessDescription",value:function(){var t,e=this.getDescriptionElements(),n=e.descriptionTextEl,r=e.ellipsisEl;this.options.size===o.Small&&(t="truncateSmall"),this.options.size===o.Large&&(t="truncateLarge"),n.addClass(c[t]),r.text(this.options.allowExpand?"... ".concat(i.T.getPhrase(this.lang,"showMore")):"...").removeClass(c.hideEllipsis).addClass(c.showEllipsis),this.showingMore=!1}},{key:"truncateDescription",value:function(){if(this.options.truncate){var t=this.getDescriptionElements().descriptionTextEl,e=b[this.options.size];t.height()<=21*e||this.showLessDescription()}}},{key:"viewOptions",value:function(){return{styles:c,truncate:this.options.truncate,expandable:this.options.allowExpand,description:this.getDescription()}}},{key:"onAttach",value:function(){this.truncateDescription()}}],r&&p(n.prototype,r),Object.defineProperty(n,"prototype",{writable:!1}),n;var n,r}(r.Q.wA)},7427:function(t,e,n){"use strict";n.d(e,{V:function(){return y}});var o=n(31647),i=n(57098),r=n(93569),l=n(25205),s=n.n(l),a={sourceLabel:"TczXY"};function c(t){return c="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},c(t)}function 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,p(o.key),o)}}function p(t){var e=function(t){if("object"!=c(t)||!t)return t;var e=t[Symbol.toPrimitive];if(void 0!==e){var n=e.call(t,"string");if("object"!=c(n))return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(t)}(t);return"symbol"==c(e)?e:e+""}function f(){try{var t=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){})))}catch(t){}return(f=function(){return!!t})()}function h(t){return h=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(t){return t.__proto__||Object.getPrototypeOf(t)},h(t)}function d(t,e){return d=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(t,e){return t.__proto__=e,t},d(t,e)}var y=function(t){function e(t){return function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,e),function(t,e,n){return e=h(e),function(t,e){if(e&&("object"==c(e)||"function"==typeof e))return e;if(void 0!==e)throw new TypeError("Derived constructors may only return object or undefined");return function(t){if(void 0===t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return t}(t)}(t,f()?Reflect.construct(e,n||[],h(t).constructor):e.apply(t,n))}(this,e,[t])}return function(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function");t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,writable:!0,configurable:!0}}),Object.defineProperty(t,"prototype",{writable:!1}),e&&d(t,e)}(e,t),n=e,o=[{key:"name",get:function(){return"VideoSourcesMetadataComponent"}},{key:"template",get:function(){return s()}},{key:"lang",get:function(){return"shared.videoSourcesMetadata"}},{key:"defaults",get:function(){return{showFolder:!1,highlight:!1}}},{key:"appLinks",get:function(){var t;return this.options.showFolder&&(null===(t=this.folders)||void 0===t?void 0:t.length)?this.folders.reduce((function(t,e){return t[".applink-folder-".concat(e.get("id"))]={application:i.OV.LIBRARY_EDITOR,action:i.eX.LibraryEditor.FOLDER,args:[e.get("id")]},t}),{}):{}}},{key:"events",value:function(){var t,e,n,o=Object.keys(this.appLinks),i=(t={},n="onClick",(e=p(e="click .".concat(a.sourceLabel)))in t?Object.defineProperty(t,e,{value:n,enumerable:!0,configurable:!0,writable:!0}):t[e]=n,t);return o.forEach((function(t){i["click ".concat(t)]="onClick"})),i}},{key:"onClick",value:function(t){t.stopPropagation()}},{key:"getFolderLinks",value:function(){var t,e=this;if(null===(t=this.folders)||void 0===t?void 0:t.length){var n={};return this.folders.forEach((function(t){var o=e.options.highlight?r.m$.wordsHighlighter(r.m$.escapeExpression(t.get("name")),e.model.get("_matchedWords")):r.m$.escapeExpression(t.get("name"));n[t.get("id")]=o})),Object.keys(n).map((function(t){return'<a class="info-link applink-folder-'.concat(t,'">').concat(n[t],"</a>")})).join(", ")}}},{key:"getCustomLibraryFolders",value:function(){var t;if(!(null===(t=this.model)||void 0===t?void 0:t.categories)||!this.options.libraries)return[];var e=this.options.libraries.reduce((function(t,e){return t[e.id]=!0,t}),{});return this.model.categories.filter((function(t){var n,o=null===(n=t.libraries)||void 0===n?void 0:n.first().get("id");return e[o]}))}},{key:"onBeforeRender",value:function(){var t;return this.folders||(this.folders=this.getCustomLibraryFolders()),this.options.showFolder&&!!(null===(t=this.folders)||void 0===t?void 0:t.length)}},{key:"viewOptions",value:function(){return{styles:a,folderCount:this.folders.length,folders:this.options.showFolder&&this.getFolderLinks(),hideLabel:this.options.hideLabel}}}],o&&u(n.prototype,o),Object.defineProperty(n,"prototype",{writable:!1}),n;var n,o}(o.Q.wA)},61356:function(t,e,n){"use strict";n.d(e,{c:function(){return S}});var o=n(48088),i=n(39479),r=n(31647),l=n(52076),s=n(70065),a=n(88483),c=n(2772),u=n(10101),p=n(89167),f=n(57098),h=n(93569),d=n(264),y=n(57e3),m=n(37339),b=n.n(m);function v(t){return v="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},v(t)}function g(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,w(o.key),o)}}function w(t){var e=function(t){if("object"!=v(t)||!t)return t;var e=t[Symbol.toPrimitive];if(void 0!==e){var n=e.call(t,"string");if("object"!=v(n))return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(t)}(t);return"symbol"==v(e)?e:e+""}function k(){try{var t=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){})))}catch(t){}return(k=function(){return!!t})()}function O(t){return O=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(t){return t.__proto__||Object.getPrototypeOf(t)},O(t)}function E(t,e){return E=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(t,e){return t.__proto__=e,t},E(t,e)}var S=function(t){function e(t){var n;return function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,e),(n=function(t,e,n){return e=O(e),function(t,e){if(e&&("object"==v(e)||"function"==typeof e))return e;if(void 0!==e)throw new TypeError("Derived constructors may only return object or undefined");return function(t){if(void 0===t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return t}(t)}(t,k()?Reflect.construct(e,n||[],O(t).constructor):e.apply(t,n))}(this,e,[t]))._viewKeyRequested=!1,n}return function(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function");t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,writable:!0,configurable:!0}}),Object.defineProperty(t,"prototype",{writable:!1}),e&&E(t,e)}(e,t),n=e,(r=[{key:"initialize",value:function(){this.bindListeners()}},{key:"name",get:function(){return"VideoPreviewComponent"}},{key:"template",get:function(){return b()}},{key:"instanceChannelName",get:function(){return h.N0.generateUniqueChannelName(this)}},{key:"defaults",get:function(){return{captureAnalytics:!0}}},{key:"behaviors",get:function(){var t=this;return[{behaviorClass:u.Im,selector:".lazy-img",callback:function(){o.Radio.channel(t.instanceChannelName).trigger("show:play:icon")},minBrowserSupportVersion:f.v9}]}},{key:"regions",value:function(){return{player:{el:".video-player-region",replaceElement:!1},thumbnail:{el:".thumbnail-region",replaceElement:!0}}}},{key:"events",value:function(){return{click:"onClick"}}},{key:"bindListeners",value:function(){this.options.channelName&&this.listenTo(this.options.channelName,"update:chapter:time",this.onUpdateWebplayer)}},{key:"onUpdateWebplayer",value:function(t){return d.g.hasLite?this.playerViewKey?this.player?void this.seekToChapter(t):(this.listenToOnce(this.options.channelName,"player:loaded",i.bind(this.seekToChapter,this,t)),void this.renderVideoPreview()):(this.listenToOnce(this.options.channelName,"player:loaded",i.bind(this.seekToChapter,this,t)),void this.requestViewKey()):this.webPlayer?void this.seekToChapter(t):(this.listenToOnce(this.options.channelName,"webplayer:loaded",i.bind(this.seekToChapter,this,t)),void this.renderVideoPreview())}},{key:"seekToChapter",value:function(t){this.player?this.player.currentTime(t):this.webPlayer.seekTo(t)}},{key:"requestViewKey",value:function(){var t=this;this.playerViewKey||this._viewKeyRequested||(this._viewKeyRequested=!0,this.options.createViewKey(this.model.get("id"),(function(e){t.playerViewKey=e,t.renderVideoPreview()})))}},{key:"onClick",value:function(){this.model.get("id")&&(d.g.hasLite?this.requestViewKey():this.webPlayer||this.renderVideoPreview())}},{key:"renderThumbnail",value:function(){this.showChildView("thumbnail",new c.Z({model:this.model,thumbnailOptions:{size:a.h2.Medium},playIcon:!0,lazyload:!0,channelName:this.instanceChannelName,thumbnail:h.M2.getThumbnail(this.model),duration:h.M2.getDuration(this.model),durationNewStyle:!0}))}},{key:"renderVideoPreview",value:function(){if(this.playerViewKey)return this.player=new y.l({model:this.playerViewKey,playerApiUrl:this.options.playerApiUrl,channelName:this.options.channelName}),void this.showChildView("player",this.player);this.webPlayer=new p.Q({model:this.model,webPlayerUrl:this.options.webPlayerUrl,parentChannelName:this.options.channelName,autoplay:!0,analyticsOptions:l.k.mergeOptions(this.options.analyticsOptions,{entity:s.py.Video}),captureAnalytics:this.options.captureAnalytics,currentUser:this.options.currentUser}),this.showChildView("player",this.webPlayer)}},{key:"onRender",value:function(){this.playerViewKey?this.renderVideoPreview():this.renderThumbnail()}}])&&g(n.prototype,r),Object.defineProperty(n,"prototype",{writable:!1}),n;var n,r}(r.Q.wA)},15564:function(t,e,n){var o=n(32227);t.exports=(o.default||o).template({1:function(t,e,n,o,i){return'<span class="btn-close cursor-pointer" role="button" aria-label="Close"></span>\n'},compiler:[8,">= 4.3.0"],main:function(t,e,n,o,i){t.propertyIsEnumerable;var r,l,s=null!=e?e:t.nullContext||{},a=t.escapeExpression;return'<span title="'+a("function"==typeof(l=null!=(l=n.name||(null!=e?e.name:e))?l:t.hooks.helperMissing)?l.call(s,{name:"name",hash:{},data:i}):l)+'">'+a(t.lambda(null!=(r=null!=e?e.options:e)?r.trimmedName:r,e))+"</span>\n"+(null!=(r=n.if.call(s,null!=(r=null!=e?e.options:e)?r.removable:r,{name:"if",hash:{},fn:t.program(1,i,0),inverse:t.noop,data:i}))?r:"")},useData:!0})},37106:function(t,e,n){var o=n(32227);t.exports=(o.default||o).template({1:function(t,e,n,o,i){var r;return t.propertyIsEnumerable,t.escapeExpression("function"==typeof(r=null!=(r=n.title||(null!=e?e.title:e))?r:t.hooks.helperMissing)?r.call(null!=e?e:t.nullContext||{},{name:"title",hash:{},data:i}):r)},compiler:[8,">= 4.3.0"],main:function(t,e,n,o,i){t.propertyIsEnumerable;var r,l,s=t.lambda,a=t.escapeExpression,c=null!=e?e:t.nullContext||{};return' <span class="d-inline-block align-middle '+a(s(null!=(r=null!=(r=null!=e?e.options:e)?r.styles:r)?r.svgContainer:r,e))+" "+a(s(null!=(r=null!=e?e.options:e)?r.additionalClassName:r,e))+'">'+(null!=(r="function"==typeof(l=null!=(l=n.svg||(null!=e?e.svg:e))?l:t.hooks.helperMissing)?l.call(c,{name:"svg",hash:{},data:i}):l)?r:"")+"</span>\n"+(null!=(r=n.if.call(c,null!=(r=null!=e?e.options:e)?r.showLabel:r,{name:"if",hash:{},fn:t.program(1,i,0),inverse:t.noop,data:i}))?r:"")},useData:!0})},59168:function(t,e,n){var o=n(32227);t.exports=(o.default||o).template({1:function(t,e,n,o,i){return"btn btn-outline-dark px-0 ms-2"},3:function(t,e,n,o,i){var r;return t.propertyIsEnumerable,t.escapeExpression(t.lambda(null!=(r=null!=(r=null!=e?e.options:e)?r.styles:r)?r.moreSvgContainer:r,e))},5:function(t,e,n,o,i){var r;return t.propertyIsEnumerable,t.escapeExpression(t.lambda(null!=(r=null!=(r=null!=e?e.options:e)?r.styles:r)?r.svgContainer:r,e))+" align-middle"},compiler:[8,">= 4.3.0"],main:function(t,e,n,o,i){t.propertyIsEnumerable;var r,l=null!=e?e:t.nullContext||{};return'<div class="actions-region d-inline-block"></div><span class="position-relative d-inline-block dropdown">\n <span\n data-bs-toggle="dropdown"\n aria-haspopup="true"\n aria-expanded="false"\n class="'+(null!=(r=n.if.call(l,null!=(r=null!=e?e.options:e)?r.showLabel:r,{name:"if",hash:{},fn:t.program(1,i,0),inverse:t.noop,data:i}))?r:"")+' ui-dropdown-toggle"\n >\n <span class="ui-more d-inline-block '+(null!=(r=n.if.call(l,null!=(r=null!=e?e.options:e)?r.showLabel:r,{name:"if",hash:{},fn:t.program(3,i,0),inverse:t.program(5,i,0),data:i}))?r:"")+' cursor-pointer">'+(null!=(r=t.lambda(null!=(r=null!=e?e.options:e)?r.moreSvg:r,e))?r:"")+'</span>\n </span>\n <div class="more-actions-region"></div>\n</span>\n'},useData:!0})},58040:function(t,e,n){var o=n(32227);t.exports=(o.default||o).template({1:function(t,e,n,o,i){t.propertyIsEnumerable;var r,l=t.lambda,s=t.escapeExpression;return' <div class="'+s(l(null!=(r=null!=(r=null!=e?e.options:e)?r.styles:r)?r.descriptionWrapper:r,e))+'">\n <p class="description-element '+s(l(null!=(r=null!=(r=null!=e?e.options:e)?r.styles:r)?r.description:r,e))+'">'+(null!=(r=n.if.call(null!=e?e:t.nullContext||{},null!=(r=null!=e?e.options:e)?r.expandable:r,{name:"if",hash:{},fn:t.program(2,i,0),inverse:t.program(4,i,0),data:i}))?r:"")+"</p>\n </div>\n"},2:function(t,e,n,o,i){t.propertyIsEnumerable;var r,l=t.lambda,s=t.escapeExpression;return(null!=(r=l(null!=(r=null!=e?e.options:e)?r.description:r,e))?r:"")+'<span class="'+s(l(null!=(r=null!=(r=null!=e?e.options:e)?r.styles:r)?r.showMoreEllipsis:r,e))+" "+s(l(null!=(r=null!=(r=null!=e?e.options:e)?r.styles:r)?r.hideEllipsis:r,e))+'">... '+s((n.lang||e&&e.lang||t.hooks.helperMissing).call(null!=e?e:t.nullContext||{},"showMore",{name:"lang",hash:{},data:i}))+"</span>"},4:function(t,e,n,o,i){t.propertyIsEnumerable;var r,l=t.lambda,s=t.escapeExpression;return(null!=(r=l(null!=(r=null!=e?e.options:e)?r.description:r,e))?r:"")+'<span class="'+s(l(null!=(r=null!=(r=null!=e?e.options:e)?r.styles:r)?r.singleEllipsis:r,e))+" "+s(l(null!=(r=null!=(r=null!=e?e.options:e)?r.styles:r)?r.hideEllipsis:r,e))+'">...</span>'},6:function(t,e,n,o,i){t.propertyIsEnumerable;var r,l=t.lambda;return' <p class="'+t.escapeExpression(l(null!=(r=null!=(r=null!=e?e.options:e)?r.styles:r)?r.description:r,e))+'">'+(null!=(r=l(null!=(r=null!=e?e.options:e)?r.description:r,e))?r:"")+"</p>\n"},compiler:[8,">= 4.3.0"],main:function(t,e,n,o,i){var r;return t.propertyIsEnumerable,null!=(r=n.if.call(null!=e?e:t.nullContext||{},null!=(r=null!=e?e.options:e)?r.truncate:r,{name:"if",hash:{},fn:t.program(1,i,0),inverse:t.program(6,i,0),data:i}))?r:""},useData:!0})},25205:function(t,e,n){var o=n(32227);t.exports=(o.default||o).template({1:function(t,e,n,o,i){t.propertyIsEnumerable;var r,l=t.escapeExpression;return'<span class="'+l(t.lambda(null!=(r=null!=(r=null!=e?e.options:e)?r.styles:r)?r.sourceLabel:r,e))+'">'+l((n.lang||e&&e.lang||t.hooks.helperMissing).call(null!=e?e:t.nullContext||{},"folder",{name:"lang",hash:{smartCount:null!=(r=null!=e?e.options:e)?r.folderCount:r},data:i}))+"</span>\n"},compiler:[8,">= 4.3.0"],main:function(t,e,n,o,i){var r;return t.propertyIsEnumerable,(null!=(r=n.unless.call(null!=e?e:t.nullContext||{},null!=(r=null!=e?e.options:e)?r.hideLabel:r,{name:"unless",hash:{},fn:t.program(1,i,0),inverse:t.noop,data:i}))?r:"")+(null!=(r=t.lambda(null!=(r=null!=e?e.options:e)?r.folders:r,e))?r:"")},useData:!0})},37339:function(t,e,n){var o=n(32227);t.exports=(o.default||o).template({1:function(t,e,n,o,i){return"cursor-pointer "},compiler:[8,">= 4.3.0"],main:function(t,e,n,o,i){var r;return t.propertyIsEnumerable,'<div class="video-player-region '+(null!=(r=n.if.call(null!=e?e:t.nullContext||{},null!=e?e.id:e,{name:"if",hash:{},fn:t.program(1,i,0),inverse:t.noop,data:i}))?r:"")+'">\n <div class="thumbnail-region"></div>\n</div>'},useData:!0})}}]);
|
|
@@ -1 +1 @@
|
|
|
1
|
-
(self.webpackChunk_clickview_library_editor=self.webpackChunk_clickview_library_editor||[]).push([[5747],{95747:function(e,n,t){"use strict";t.r(n),t.d(n,{FileSelectView:function(){return T}});var o=t(
|
|
1
|
+
(self.webpackChunk_clickview_library_editor=self.webpackChunk_clickview_library_editor||[]).push([[5747],{95747:function(e,n,t){"use strict";t.r(n),t.d(n,{FileSelectView:function(){return T}});var o=t(39479),r=t(21679),i=t(57857),l=t(68003),a=t(31647),c=t(52076),u=t(70065),s=t(81937),p=t(25692),d=t(57769),f=t(75432),h=t(98985),g=t(57098),y=t(48404),m=t(22103),v=t.n(m),b={uploadImage:"yRGoO"};function k(e){return k="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},k(e)}function w(e,n){for(var t=0;t<n.length;t++){var o=n[t];o.enumerable=o.enumerable||!1,o.configurable=!0,"value"in o&&(o.writable=!0),Object.defineProperty(e,U(o.key),o)}}function U(e){var n=function(e){if("object"!=k(e)||!e)return e;var n=e[Symbol.toPrimitive];if(void 0!==n){var t=n.call(e,"string");if("object"!=k(t))return t;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}(e);return"symbol"==k(n)?n:n+""}function S(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){})))}catch(e){}return(S=function(){return!!e})()}function O(e){return O=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(e){return e.__proto__||Object.getPrototypeOf(e)},O(e)}function _(e,n){return _=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(e,n){return e.__proto__=n,e},_(e,n)}var T=function(e){function n(){return function(e,n){if(!(e instanceof n))throw new TypeError("Cannot call a class as a function")}(this,n),function(e,n,t){return n=O(n),function(e,n){if(n&&("object"==k(n)||"function"==typeof n))return n;if(void 0!==n)throw new TypeError("Derived constructors may only return object or undefined");return function(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}(e)}(e,S()?Reflect.construct(n,t||[],O(e).constructor):n.apply(e,t))}(this,n,arguments)}return function(e,n){if("function"!=typeof n&&null!==n)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(n&&n.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),Object.defineProperty(e,"prototype",{writable:!1}),n&&_(e,n)}(n,e),t=n,(a=[{key:"initialize",value:function(){this.listenTo(this.channelName,s.S.FILES_SELECTED,this.onFilesSelected),this.videoUploadService=r.u.getInstance(g.K9.VideoUpload,this)}},{key:"name",get:function(){return"FileSelectView"}},{key:"title",get:function(){return i.T.getPhrase(this.lang,"title")}},{key:"lang",get:function(){return"upload.fileSelect"}},{key:"template",get:function(){return v()}},{key:"className",get:function(){return"container px-0"}},{key:"props",get:function(){return["videoUploadService"]}},{key:"channelName",get:function(){return this.customCid||(this.customCid=o.uniqueId("custom")),"".concat(this.name).concat(this.customCid)}},{key:"behaviors",get:function(){return[{behaviorClass:d.Z,buttonSelector:".choose-files",channelName:this.channelName,acceptMultiple:!0,mimeType:"video/*"}]}},{key:"onFilesSelected",value:function(e,n){this.videoUploadService.addFiles(e),this.logAction(e,n)}},{key:"logAction",value:function(e,n){var t={actionType:u.Vw.Upload,entity:u.py.Video,location:u.LZ.VideoUpload,workflowPhase:u.eu.Start,descriptor:c.k.mapInteractionType(n)};c.k.logUserAction(e,t)}},{key:"requiredResources",get:function(){return{config:y.p.config,currentUser:f.K.currentUser}}},{key:"viewOptions",value:function(){return{styles:b,uploadArticleUrl:h.o.getHybridArticle(p.s.UploadToLibraryEditor,p.b.UploadToLibraryEditor),uploadTermsUrl:this.config?l._.safeUrlConcat(this.config.get("marketingSiteUrl"),g.l.UploadingUserContent):"",classNames:"info-link",imageUrl:g.Wn.Upload.UPLOAD_VIDEO}}}])&&w(t.prototype,a),Object.defineProperty(t,"prototype",{writable:!1}),t;var t,a}(a.Q.G7)},22103:function(e,n,t){var o=t(32227);e.exports=(o.default||o).template({compiler:[8,">= 4.3.0"],main:function(e,n,t,o,r){e.propertyIsEnumerable;var i,l=null!=n?n:e.nullContext||{},a=e.hooks.helperMissing,c=e.escapeExpression,u=e.lambda;return'<div class="p-3 my-3 bg-white text-center">\n <h1>'+c((t.lang||n&&n.lang||a).call(l,"uploadVideos",{name:"lang",hash:{},data:r}))+'</h1>\n <div class="my-3">\n <img src="'+c(u(null!=(i=null!=n?n.options:n)?i.imageUrl:i,n))+'" class="'+c(u(null!=(i=null!=(i=null!=n?n.options:n)?i.styles:i)?i.uploadImage:i,n))+' img-fluid mb-2" />\n </div>\n <div>\n <button class="btn btn-dark choose-files">'+c((t.lang||n&&n.lang||a).call(l,"chooseVideo",{name:"lang",hash:{},data:r}))+"</button>\n </div>\n <div>\n <span>"+c((t.lang||n&&n.lang||a).call(l,"dragDrop",{name:"lang",hash:{},data:r}))+'</span>\n </div>\n</div>\n<div class="p-3 bg-white container-fluid">\n <div class="row">\n <div class="col-4">\n <h4>'+c((t.lang||n&&n.lang||a).call(l,"help",{name:"lang",hash:{},data:r}))+'</h2>\n <div class="border-top pt-2">\n <ul>\n <li><a class="info-link" href="'+c(u(null!=(i=null!=n?n.options:n)?i.uploadArticleUrl:i,n))+'" target="_blank">'+c((t.lang||n&&n.lang||a).call(l,"instructionsHeading",{name:"lang",hash:{},data:r}))+'</a></li>\n </ul>\n </div>\n </div>\n <div class="col-8">\n <h4>'+c((t.lang||n&&n.lang||a).call(l,"termsHeading",{name:"lang",hash:{},data:r}))+'</h2>\n <div class="border-top pt-2">\n <ol>\n <li>'+c((t.lang||n&&n.lang||a).call(l,"term1",{name:"lang",hash:{},data:r}))+"</li>\n <li>"+c((t.lang||n&&n.lang||a).call(l,"term2",{name:"lang",hash:{},data:r}))+"</li>\n <li>"+(null!=(i=(t.lang||n&&n.lang||a).call(l,"term3",{name:"lang",hash:{classNames:null!=(i=null!=n?n.options:n)?i.classNames:i,uploadTermsUrl:null!=(i=null!=n?n.options:n)?i.uploadTermsUrl:i},data:r}))?i:"")+"</li>\n </ol>\n </div>\n </div>\n </div>\n</div>"},useData:!0})}}]);
|