@clickview/library-editor 1.8.1-dev.0 → 1.8.1-rc.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/bundles.json +3 -3
- package/dist/css/{8179-library-editor-df33c921f0.chunk.css → 2704-library-editor-8067d27c56.chunk.css} +4 -0
- package/dist/css/{7295-library-editor-b0c43d2c79.chunk.css → 3427-library-editor-8442ad6453.chunk.css} +1 -1
- package/dist/css/{1132-library-editor-c1a116496b.chunk.css → 3803-library-editor-c08c7cc096.chunk.css} +1 -1
- package/dist/css/{2284-library-editor-436a0d1ce1.chunk.css → 409-library-editor-38562d76cd.chunk.css} +1 -1
- package/dist/css/{6220-library-editor-e66d80c18a.chunk.css → 4810-library-editor-740619bb9d.chunk.css} +1 -11
- package/dist/css/{6181-library-editor-db9baf23c2.chunk.css → 5047-library-editor-3ed99ac07f.chunk.css} +0 -4
- package/dist/css/{4177-library-editor-4cba18186c.chunk.css → 5248-library-editor-c06823703f.chunk.css} +8 -4
- package/dist/css/{6999-library-editor-c9c844221a.chunk.css → 5356-library-editor-075fbedf48.chunk.css} +0 -12
- package/dist/css/{1911-library-editor-f7158ba599.chunk.css → 6625-library-editor-89b6e935f3.chunk.css} +0 -4
- package/dist/css/{1521-library-editor-b3d6d791c2.chunk.css → 8343-library-editor-10baca49f5.chunk.css} +0 -4
- package/dist/css/{1887-library-editor-2e57df189d.chunk.css → 8420-library-editor-3bb4952bab.chunk.css} +8 -4
- package/dist/css/{8929-library-editor-2cba3474fe.chunk.css → 9195-library-editor-14f7d9be38.chunk.css} +1 -1
- package/dist/css/{library-editor-app-1cd9634b7b.css → library-editor-app-4e790b757d.css} +10 -10
- package/dist/en.json +1 -1
- package/dist/scripts/{1010-cd4e715098.chunk.js → 1010-cb37772c49.chunk.js} +1 -1
- package/dist/scripts/{1086-b559030dcf.chunk.js → 1086-a8cf020218.chunk.js} +1 -1
- package/dist/scripts/{1203-b828105755.chunk.js → 1203-14ae840d6b.chunk.js} +1 -1
- package/dist/scripts/{1409-8f5c1c9d0e.chunk.js → 1409-32bd85885e.chunk.js} +1 -1
- package/dist/scripts/{1832-d4427bb6f5.chunk.js → 1832-86cd9ad582.chunk.js} +1 -1
- package/dist/scripts/{1934-3b82bbbc99.chunk.js → 1934-3f8be23263.chunk.js} +1 -1
- package/dist/scripts/{2098-31d99bc407.chunk.js → 2098-96f81af824.chunk.js} +1 -1
- package/dist/scripts/2417-b87afd64a5.chunk.js +1 -0
- package/dist/scripts/{243-c9fdd938fd.chunk.js → 243-f01e965f4b.chunk.js} +1 -1
- package/dist/scripts/259-004621af29.chunk.js +1 -0
- package/dist/scripts/{2692-9ebe6d1ea4.chunk.js → 2692-61fa0956f7.chunk.js} +1 -1
- package/dist/scripts/2704-2acb36a8e6.chunk.js +2 -0
- package/dist/scripts/{2733-e8cc6e3610.chunk.js → 2733-b894e791d4.chunk.js} +1 -1
- package/dist/scripts/{2802-160b25677d.chunk.js → 2802-b27bcc7922.chunk.js} +1 -1
- package/dist/scripts/2803-a61efc3928.chunk.js +1 -0
- package/dist/scripts/{2888-80050720b2.chunk.js → 2888-aa8575c95a.chunk.js} +1 -1
- package/dist/scripts/{299-d19e77b508.chunk.js → 299-f783c04b9f.chunk.js} +1 -1
- package/dist/scripts/3096-7b76aacf1b.chunk.js +1 -0
- package/dist/scripts/3427-69e041b58f.chunk.js +1 -0
- package/dist/scripts/{3639-36a34d483b.chunk.js → 3639-49cbb7726d.chunk.js} +1 -1
- package/dist/scripts/3746-035d2a375b.chunk.js +1 -0
- package/dist/scripts/{3763-3bef6ac728.chunk.js → 3763-42330d8e14.chunk.js} +1 -1
- package/dist/scripts/3803-ddb6cb3af0.chunk.js +1 -0
- package/dist/scripts/409-4d3f47dde3.chunk.js +1 -0
- package/dist/scripts/{4201-25e82e2429.chunk.js → 4201-934449ecc8.chunk.js} +1 -1
- package/dist/scripts/{435-fb19753c8d.chunk.js → 435-15245a31f0.chunk.js} +1 -1
- package/dist/scripts/{4353-c7a0df4214.chunk.js → 4353-2cc9f63986.chunk.js} +1 -1
- package/dist/scripts/{4591-9a2868f8a0.chunk.js → 4591-5170be25a2.chunk.js} +1 -1
- package/dist/scripts/4703-d6f96abde3.chunk.js +1 -0
- package/dist/scripts/4810-abc1d10673.chunk.js +1 -0
- package/dist/scripts/{4860-b3e5cb9cbd.chunk.js → 4860-59a185099c.chunk.js} +1 -1
- package/dist/scripts/{4885-9e4ce006c8.chunk.js → 4885-5e746feb33.chunk.js} +1 -1
- package/dist/scripts/5047-fede824a7a.chunk.js +1 -0
- package/dist/scripts/{514-59d9a9a7bd.chunk.js → 514-4d8b3e1241.chunk.js} +1 -1
- package/dist/scripts/{6220-984f02c732.chunk.js → 5248-f08a510a35.chunk.js} +1 -1
- package/dist/scripts/{1887-d306fab87c.chunk.js → 5356-e72cc7d540.chunk.js} +1 -1
- package/dist/scripts/{5412-a1721cffc4.chunk.js → 5412-f7addc660e.chunk.js} +1 -1
- package/dist/scripts/5431-5878626ffc.chunk.js +1 -0
- package/dist/scripts/{546-81473f1035.chunk.js → 546-0a0da54e49.chunk.js} +1 -1
- package/dist/scripts/5665-652f2d5ce2.chunk.js +1 -0
- package/dist/scripts/{5747-8a168b816b.chunk.js → 5747-1c103faee6.chunk.js} +1 -1
- package/dist/scripts/5967-7f52d83b9d.chunk.js +1 -0
- package/dist/scripts/6093-e8c8ee685e.chunk.js +1 -0
- package/dist/scripts/{6420-1537f8f587.chunk.js → 6420-e6a2a2f8e1.chunk.js} +1 -1
- package/dist/scripts/{1911-41bf677d7e.chunk.js → 6625-dad5409d21.chunk.js} +1 -1
- package/dist/scripts/{6774-185468f6f5.chunk.js → 6774-65575c493f.chunk.js} +1 -1
- package/dist/scripts/{6788-2368a122f1.chunk.js → 6788-5a4f2eb9cc.chunk.js} +1 -1
- package/dist/scripts/7002-93a4fa2a41.chunk.js +1 -0
- package/dist/scripts/7053-367c9fd75e.chunk.js +1 -0
- package/dist/scripts/{7251-a247842ccb.chunk.js → 7251-6f904debb4.chunk.js} +2 -2
- package/dist/scripts/{8074-b610b1ba63.chunk.js → 8074-f41783a736.chunk.js} +1 -1
- package/dist/scripts/{1521-0c23d44c5e.chunk.js → 8343-744924c708.chunk.js} +1 -1
- package/dist/scripts/{8362-195c5ba6c3.chunk.js → 8362-bd0a827fd1.chunk.js} +1 -1
- package/dist/scripts/8420-feedc1737c.chunk.js +1 -0
- package/dist/scripts/8727-bcd1353109.chunk.js +1 -0
- package/dist/scripts/{8762-b445a592a5.chunk.js → 8762-44030384bd.chunk.js} +1 -1
- package/dist/scripts/{8906-efcc846fad.chunk.js → 8906-9c897538cc.chunk.js} +1 -1
- package/dist/scripts/{8947-4df5e81810.chunk.js → 8947-361fa0bb45.chunk.js} +1 -1
- package/dist/scripts/{9167-9c54b36e3a.chunk.js → 9167-653b78f15a.chunk.js} +1 -1
- package/dist/scripts/9195-86ea4a2c6e.chunk.js +1 -0
- package/dist/scripts/{9298-d8c9ed5471.chunk.js → 9298-e7d4c8cdcd.chunk.js} +1 -1
- package/dist/scripts/9355-805decfc74.chunk.js +1 -0
- package/dist/scripts/{9357-2e288289f3.chunk.js → 9357-24309fbc82.chunk.js} +1 -1
- package/dist/scripts/9383-db31c7a3f4.chunk.js +1 -0
- package/dist/scripts/{9695-4bb132be57.chunk.js → 9695-3b345f10c3.chunk.js} +1 -1
- package/dist/scripts/{9927-25579dff18.chunk.js → 9927-e6b59f3a6c.chunk.js} +1 -1
- package/dist/scripts/bundle-5523d17860.min.js +2 -0
- package/package.json +1 -1
- package/dist/css/101-library-editor-808f785991.chunk.css +0 -4
- package/dist/css/2011-library-editor-9b9cd091d0.chunk.css +0 -62
- package/dist/css/2119-library-editor-1d6a95fb9f.chunk.css +0 -4
- package/dist/css/3969-library-editor-3382f0875b.chunk.css +0 -4
- package/dist/css/3987-library-editor-2271e5262a.chunk.css +0 -56
- package/dist/css/5891-library-editor-76fe7e394b.chunk.css +0 -2
- package/dist/css/6963-library-editor-76fe7e394b.chunk.css +0 -2
- package/dist/scripts/101-98e020bd6f.chunk.js +0 -1
- package/dist/scripts/1132-3f29e51c9d.chunk.js +0 -1
- package/dist/scripts/2011-f178a6dabf.chunk.js +0 -1
- package/dist/scripts/2119-cbaa6000b1.chunk.js +0 -1
- package/dist/scripts/2284-a57db3563f.chunk.js +0 -1
- package/dist/scripts/2417-48687b3eeb.chunk.js +0 -1
- package/dist/scripts/259-e1d9ce07f4.chunk.js +0 -1
- package/dist/scripts/2803-86fc1b1e3f.chunk.js +0 -1
- package/dist/scripts/3096-ca9e2f0dfd.chunk.js +0 -1
- package/dist/scripts/3746-46e0073a46.chunk.js +0 -1
- package/dist/scripts/3969-258fca82a8.chunk.js +0 -1
- package/dist/scripts/3987-e3a4ade0c9.chunk.js +0 -1
- package/dist/scripts/4177-0be8ceed3c.chunk.js +0 -1
- package/dist/scripts/5173-e1b904c06c.chunk.js +0 -1
- package/dist/scripts/5235-abc8ea83ed.chunk.js +0 -1
- package/dist/scripts/5263-38198ed595.chunk.js +0 -1
- package/dist/scripts/5664-d6cbc77d63.chunk.js +0 -1
- package/dist/scripts/5891-63973f5678.chunk.js +0 -1
- package/dist/scripts/6093-a62d8ebc86.chunk.js +0 -1
- package/dist/scripts/6181-fa5e7bcbf9.chunk.js +0 -1
- package/dist/scripts/6963-a576fd9c4d.chunk.js +0 -1
- package/dist/scripts/6999-1fe379ca99.chunk.js +0 -1
- package/dist/scripts/7002-9b2aad8369.chunk.js +0 -1
- package/dist/scripts/7053-643499a3a6.chunk.js +0 -1
- package/dist/scripts/708-9e2ef23c87.chunk.js +0 -1
- package/dist/scripts/7295-96fcbaa176.chunk.js +0 -1
- package/dist/scripts/7376-21f5de2ce6.chunk.js +0 -1
- package/dist/scripts/8179-f5cc87ded7.chunk.js +0 -2
- package/dist/scripts/8495-0a9a71f2dc.chunk.js +0 -1
- package/dist/scripts/8727-20ae545e12.chunk.js +0 -1
- package/dist/scripts/8929-6fac19a7a3.chunk.js +0 -1
- package/dist/scripts/9383-6d0392b17f.chunk.js +0 -1
- package/dist/scripts/9770-9eaef2c966.chunk.js +0 -1
- package/dist/scripts/995-3a6de1eec1.chunk.js +0 -1
- package/dist/scripts/bundle-2b73fa6c21.min.js +0 -2
- /package/dist/css/{708-library-editor-7417a89428.chunk.css → 5967-library-editor-7417a89428.chunk.css} +0 -0
- /package/dist/scripts/{1934-3b82bbbc99.chunk.js.LICENSE.txt → 1934-3f8be23263.chunk.js.LICENSE.txt} +0 -0
- /package/dist/scripts/{8179-f5cc87ded7.chunk.js.LICENSE.txt → 2704-2acb36a8e6.chunk.js.LICENSE.txt} +0 -0
- /package/dist/scripts/{2802-160b25677d.chunk.js.LICENSE.txt → 2802-b27bcc7922.chunk.js.LICENSE.txt} +0 -0
- /package/dist/scripts/{3019-8c7fdaf749.chunk.js → 3019-756f3418e1.chunk.js} +0 -0
- /package/dist/scripts/{3400-3a56ad67d9.chunk.js → 3400-77e28c9a26.chunk.js} +0 -0
- /package/dist/scripts/{400-00070f1714.chunk.js → 400-245e50bb8b.chunk.js} +0 -0
- /package/dist/scripts/{4245-4d98c3f676.chunk.js → 4245-7ca37805e2.chunk.js} +0 -0
- /package/dist/scripts/{5418-bfa546cf33.chunk.js → 5418-eab2a58869.chunk.js} +0 -0
- /package/dist/scripts/{693-0ae38e2ba5.chunk.js → 693-4e5dfe0a0a.chunk.js} +0 -0
- /package/dist/scripts/{7173-a4f745b0ed.chunk.js → 7173-f13a6eaf95.chunk.js} +0 -0
- /package/dist/scripts/{7190-d294d5b67c.chunk.js → 7190-663dc02699.chunk.js} +0 -0
- /package/dist/scripts/{7251-a247842ccb.chunk.js.LICENSE.txt → 7251-6f904debb4.chunk.js.LICENSE.txt} +0 -0
- /package/dist/scripts/{bundle-2b73fa6c21.min.js.LICENSE.txt → bundle-5523d17860.min.js.LICENSE.txt} +0 -0
- /package/dist/scripts/{polyfills-c62d0e7aec.min.js → polyfills-513148dd03.min.js} +0 -0
|
@@ -0,0 +1 @@
|
|
|
1
|
+
(self.webpackChunk_clickview_library_editor=self.webpackChunk_clickview_library_editor||[]).push([[2803],{2803:function(t,e,r){"use strict";r.r(e),r.d(e,{DeleteFolderView:function(){return w}});var n=r(48088),o=r(21679),i=r(31647),c=r(52076),u=r(30305),l=r(10101),a=r(61843),f=r(88172),s=r(3059),y=r(57857),p=r(56906),h=r(11885),d=r.n(h);function b(t){return b="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},b(t)}function m(t,e){for(var r=0;r<e.length;r++){var n=e[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(t,n.key,n)}}function v(t,e){return v=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(t,e){return t.__proto__=e,t},v(t,e)}function O(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)}function g(t){return g=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(t){return t.__proto__||Object.getPrototypeOf(t)},g(t)}var w=function(t){!function(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function");t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,writable:!0,configurable:!0}}),Object.defineProperty(t,"prototype",{writable:!1}),e&&v(t,e)}(j,t);var e,r,h,b,w=(h=j,b=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(t){return!1}}(),function(){var t,e=g(h);if(b){var r=g(this).constructor;t=Reflect.construct(e,arguments,r)}else t=e.apply(this,arguments);return O(this,t)});function j(t){return function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,j),w.call(this,t)}return e=j,(r=[{key:"initialize",value:function(){this.listenTo(u.Vk.LIBRARY,"libraries:sync",this.render),this.collectionIdentifier=new s.F7(this.options.folderId,a.x$.GetCurrentSortType()),this.listenTo(u.Vk.VIDEO,"".concat(this.collectionIdentifier,":sync"),this.render),this.libraryDataService=o.u.getInstance(u.Or.Library,this),this.videoDataService=o.u.getInstance(u.Or.Video,this)}},{key:"name",get:function(){return"DeleteFolderView"}},{key:"title",get:function(){return y.T.getPhrase(this.lang,"title")}},{key:"lang",get:function(){return"libraryEditor.deleteFolder"}},{key:"template",get:function(){return d()}},{key:"channelName",get:function(){return a.N0.generateUniqueChannelName(this)}},{key:"behaviors",get:function(){var t=this;return[{behaviorClass:l.Yw,title:y.T.getPhrase(this.lang,"removeFolder"),spinnerButtonOptions:{channelName:this.channelName,buttonText:y.T.getPhrase(this.lang,"remove"),extraButtonClass:"btn-danger",onClick:function(e){return t.onClickDelete(e)}}}]}},{key:"getParentId",value:function(){if(a.PU.isSubFolder(this.model)&&this.model&&this.model.collection&&this.model.collection.parent&&this.model.collection.parent instanceof i.Q.Model)return this.model.collection.parent.get("id");var t=a.PU.getLibrary(this.model.get("id"),this.model.collection);return t&&t.id||null}},{key:"onClickDelete",value:function(t){t&&t.preventDefault(),n.Radio.channel(this.channelName).trigger(f.I3.ShowSpinner);var e=this.getParentId(),r=a.PU.isSubFolder(this.model)?u.eX.LibraryEditor.FOLDER:u.eX.LibraryEditor.LIBRARY;this.libraryDataService.deleteFolder(this.options.folderId,(function(){i.Q.AppLinkHelper.trigger({application:u.OV.LIBRARY_EDITOR,action:r,args:[e]},{replace:!0})})),this.logAction()}},{key:"logAction",value:function(){var t={id:this.options.folderId,name:this.model.get("name")};c.k.logUserAction(t,this.options.analyticsOptions)}},{key:"canDelete",value:function(){return!(this.model.children&&this.model.children.length||this.videos&&this.videos.length)}},{key:"onBeforeRender",value:function(){var t=this;return this.libraryDataService.getFolderFromLibraries(this.options.folderId,(function(e){t.model=e})),this.videos=this.videoDataService.getCollectionVideos(this.collectionIdentifier),!(!this.model||!this.videos||!this.canDelete()&&(window.setTimeout((function(){t.triggerMethod("hide"),i.Q.ErrorHelper.throw(new p.QH)}),u.pA.POPUP_FADE_TIMEOUT),1))}}])&&m(e.prototype,r),Object.defineProperty(e,"prototype",{writable:!1}),j}(i.Q.View)},3059:function(t,e,r){"use strict";r.d(e,{KX:function(){return R},IJ:function(){return d},xw:function(){return w},F7:function(){return n.F}});var n=r(1091),o=r(39479),i=r(33303),c=r(30305),u=r(44937),l=r(39090);function a(t){return a="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},a(t)}function f(t,e){(null==e||e>t.length)&&(e=t.length);for(var r=0,n=new Array(e);r<e;r++)n[r]=t[r];return n}function s(t,e){for(var r=0;r<e.length;r++){var n=e[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(t,n.key,n)}}function y(t,e){return y=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(t,e){return t.__proto__=e,t},y(t,e)}function p(t,e){if(e&&("object"===a(e)||"function"==typeof e))return e;if(void 0!==e)throw new TypeError("Derived constructors may only return object or undefined");return function(t){if(void 0===t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return t}(t)}function h(t){return h=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(t){return t.__proto__||Object.getPrototypeOf(t)},h(t)}var d=function(t){!function(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function");t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,writable:!0,configurable:!0}}),Object.defineProperty(t,"prototype",{writable:!1}),e&&y(t,e)}(d,t);var e,r,n,i,a=(n=d,i=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(t){return!1}}(),function(){var t,e=h(n);if(i){var r=h(this).constructor;t=Reflect.construct(e,arguments,r)}else t=e.apply(this,arguments);return p(this,t)});function d(t){var e;return function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,d),(e=a.call(this,{collectionPrefix:"".concat(c.M_.RECENT_VIDEOS,":collection"),cursor:t.cursor,sort:t.sort})).setAdditionalData(t),e}return e=d,(r=[{key:"setAdditionalData",value:function(t){var e=t.libraryIds,r=t.dateQueryString,n=t.subjects;e&&(this.libraryIds=e),n&&(o.isArray(n)&&n.length&&(this.subjects=n),o.isArray(n)||(this.subjects=[n]));var i=o.findWhere(l.US,{queryString:r})||l.U1;this.dateOption=new u.Wx(i)}},{key:"toString",value:function(){var t,e=this.subjects&&this.subjects.length&&this.subjects.map((function(t){return escape(t.get("name"))}))||[];return[this.collectionPrefix,this.libraryIds,this.dateOption.get("from"),this.dateOption.get("to")].concat((t=e,function(t){if(Array.isArray(t))return f(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 f(t,e);var r=Object.prototype.toString.call(t).slice(8,-1);return"Object"===r&&t.constructor&&(r=t.constructor.name),"Map"===r||"Set"===r?Array.from(t):"Arguments"===r||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r)?f(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.")}()),[this.cursor]).filter(Boolean).join(":")}},{key:"toParams",value:function(){var t={};return this.libraryIds&&(t.libraryIds=this.libraryIds),this.dateOption&&(t.from=this.dateOption.get("from"),t.to=this.dateOption.get("to")),this.subjects&&(t.subjectIds=o.flatten(this.subjects.map((function(t){return t.get("subjectIds")})))),this.cursor&&(t.cursor=this.cursor),t}}])&&s(e.prototype,r),Object.defineProperty(e,"prototype",{writable:!1}),d}(i.J);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 m(t,e){for(var r=0;r<e.length;r++){var n=e[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(t,n.key,n)}}function v(t,e){return v=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(t,e){return t.__proto__=e,t},v(t,e)}function O(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)}function g(t){return g=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(t){return t.__proto__||Object.getPrototypeOf(t)},g(t)}var w=function(t){!function(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function");t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,writable:!0,configurable:!0}}),Object.defineProperty(t,"prototype",{writable:!1}),e&&v(t,e)}(f,t);var e,r,n,i,a=(n=f,i=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(t){return!1}}(),function(){var t,e=g(n);if(i){var r=g(this).constructor;t=Reflect.construct(e,arguments,r)}else t=e.apply(this,arguments);return O(this,t)});function f(t){var e;return function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,f),(e=a.call(this,{collectionPrefix:"".concat(c.M_.RECENT_SUBJECTS,":collection"),sort:t.sort})).setAdditionalData(t),e}return e=f,(r=[{key:"setAdditionalData",value:function(t){var e=t.libraryIds,r=t.dateQueryString;e&&(this.libraryIds=e);var n=o.findWhere(l.US,{queryString:r})||l.U1;this.dateOption=new u.Wx(n)}},{key:"toString",value:function(){return[this.collectionPrefix,this.libraryIds,this.dateOption.get("from"),this.dateOption.get("to")].filter(Boolean).join(":")}},{key:"toParams",value:function(){var t={};return this.libraryIds&&(t.libraryIds=this.libraryIds),this.dateOption&&(t.from=this.dateOption.get("from"),t.to=this.dateOption.get("to")),t}}])&&m(e.prototype,r),Object.defineProperty(e,"prototype",{writable:!1}),f}(i.J);function j(t){return j="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},j(t)}function P(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}function S(t,e){return S=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(t,e){return t.__proto__=e,t},S(t,e)}function _(t,e){if(e&&("object"===j(e)||"function"==typeof e))return e;if(void 0!==e)throw new TypeError("Derived constructors may only return object or undefined");return function(t){if(void 0===t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return t}(t)}function I(t){return I=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(t){return t.__proto__||Object.getPrototypeOf(t)},I(t)}var R=function(t){!function(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function");t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,writable:!0,configurable:!0}}),Object.defineProperty(t,"prototype",{writable:!1}),e&&S(t,e)}(i,t);var e,r,n,o=(r=i,n=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(t){return!1}}(),function(){var t,e=I(r);if(n){var o=I(this).constructor;t=Reflect.construct(e,arguments,o)}else t=e.apply(this,arguments);return _(this,t)});function i(t,e){var r=arguments.length>2&&void 0!==arguments[2]?arguments[2]:"";return P(this,i),o.call(this,{collectionPrefix:c.M_.FOLDERS,id:t,sort:e,cursor:r})}return e=i,Object.defineProperty(e,"prototype",{writable:!1}),e}(i.J)},11885:function(t,e,r){var n=r(32227);t.exports=(n.default||n).template({compiler:[8,">= 4.3.0"],main:function(t,e,r,n,o){var i;return t.propertyIsEnumerable,null!=(i=(r.lang||e&&e.lang||t.hooks.helperMissing).call(null!=e?e:t.nullContext||{},"check",{name:"lang",hash:{name:null!=e?e.name:e},data:o}))?i:""},useData:!0})}}]);
|
|
@@ -1 +1 @@
|
|
|
1
|
-
(self.webpackChunk_clickview_library_editor=self.webpackChunk_clickview_library_editor||[]).push([[2888],{12888:function(e,t,n){"use strict";n.r(t),n.d(t,{EditResourceView:function(){return E}});var o=n(39479),r=n(48088),i=n(52076),a=n(31647),u=n(21679),c=n(99249),l=n(10101),s=n(88172),f=n(
|
|
1
|
+
(self.webpackChunk_clickview_library_editor=self.webpackChunk_clickview_library_editor||[]).push([[2888],{12888:function(e,t,n){"use strict";n.r(t),n.d(t,{EditResourceView:function(){return E}});var o=n(39479),r=n(48088),i=n(52076),a=n(31647),u=n(21679),c=n(99249),l=n(10101),s=n(88172),f=n(30305),p=n(61843),d=n(67670),h=n(14327),y=n(57857),b=n(7190),v=n(6375),m=n.n(v);function g(e){return g="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},g(e)}function w(e,t){for(var n=0;n<t.length;n++){var o=t[n];o.enumerable=o.enumerable||!1,o.configurable=!0,"value"in o&&(o.writable=!0),Object.defineProperty(e,o.key,o)}}function O(e,t){return O=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(e,t){return e.__proto__=t,e},O(e,t)}function k(e,t){if(t&&("object"===g(t)||"function"==typeof t))return t;if(void 0!==t)throw new TypeError("Derived constructors may only return object or undefined");return function(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}(e)}function R(e){return R=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(e){return e.__proto__||Object.getPrototypeOf(e)},R(e)}var E=function(e){!function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),Object.defineProperty(e,"prototype",{writable:!1}),t&&O(e,t)}(S,e);var t,n,v,g,E=(v=S,g=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(e){return!1}}(),function(){var e,t=R(v);if(g){var n=R(this).constructor;e=Reflect.construct(t,arguments,n)}else e=t.apply(this,arguments);return k(this,e)});function S(e){return function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,S),E.call(this,e)}return t=S,(n=[{key:"initialize",value:function(){this.listenTo(f.Vk.RESOURCE,"resource:".concat(this.options.resourceId,":sync"),this.render),this.resourceDataService=u.u.getInstance(f.Or.Resource,this)}},{key:"name",get:function(){return"EditResourceView"}},{key:"lang",get:function(){return"libraryEditor.editResource"}},{key:"title",get:function(){return y.T.getPhrase(this.lang,"title")}},{key:"template",get:function(){return m()}},{key:"channelName",get:function(){return p.N0.generateUniqueChannelName(this)}},{key:"behaviors",get:function(){var e=this;return[{behaviorClass:l.Yw,title:y.T.getPhrase(this.lang,"edit"),spinnerButtonOptions:{channelName:this.channelName,model:this.spinnerModel=new d.v,buttonText:y.T.getPhrase(this.lang,"save"),onClick:function(t){return e.onSubmit(t)}}}]}},{key:"bindings",get:function(){return{"[name=name]":{observe:"name",setOptions:{validate:!0}}}}},{key:"elements",get:function(){return{name:"#name",feedback:".form-feedback"}}},{key:"events",value:function(){return{submit:"onSubmit","shown.bs.modal":"onModalShown"}}},{key:"onSubmit",value:function(e){var t=this;e&&e.preventDefault(),this.viewModel.validate(),!1!==this.viewModel.isValid()&&(r.Radio.channel(this.channelName).trigger(s.I3.ShowSpinner),this.resourceDataService.updateResource(this.options.videoId,this.viewModel,(function(){t.logAction(),a.Q.AppLinkHelper.trigger({application:f.OV.LIBRARY_EDITOR,action:f.eX.LibraryEditor.EDIT_VIDEO_RESOURCES,args:[t.options.videoId]})})))}},{key:"logAction",value:function(){var e={id:this.options.resourceId,parentId:+this.options.videoId,name:this.viewModel.get("name")};i.k.logUserAction(e,this.options.analyticsOptions)}},{key:"selectAllWithoutExtension",value:function(){if(this.model){var e=this.model.get("name").split(".").slice(0,-1).join("."),t=this.getUI("name");t.each((function(n,r){if(o.isFunction(r.setSelectionRange))t.focus(),r.setSelectionRange(0,e.length);else if(o.isFunction(r.createTextRange)){var i=r.createTextRange();i.collapse(!0),i.moveEnd("character",e.length),i.moveStart("character",0),i.select()}}))}}},{key:"onModalShown",value:function(){this.selectAllWithoutExtension()}},{key:"dataFetched",value:function(){return!!this.model&&!!this.viewModel}},{key:"onBeforeRender",value:function(){var e=this;this.model=this.resourceDataService.getResource(this.options.resourceId,(function(t){e.viewModel=c.r.get("resource:".concat(e.options.resourceId),t.toJSON(),{ctor:h._}),e.viewModel.addValidation(b.A9)})),this.dataFetched()&&this.spinnerModel.set(s.ZV.Disabled,!1)}},{key:"viewOptions",value:function(){return{dataFetched:this.dataFetched(),spinnerEl:p.Kp.getSpinner({size:p.Ey.Large,extraClasses:"mx-auto"})}}},{key:"onRender",value:function(){this.viewModel&&(this.stickit(this.viewModel),r.Validation.bind(this,{model:this.viewModel}),this.selectAllWithoutExtension())}},{key:"onClose",value:function(){this.unstickit(),r.Validation.unbind(this)}}])&&w(t.prototype,n),Object.defineProperty(t,"prototype",{writable:!1}),S}(a.Q.View)},67670:function(e,t,n){"use strict";n.d(t,{v:function(){return p}});var o=n(31647),r=n(88172);function i(e){return i="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},i(e)}function a(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function u(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function c(e,t){for(var n=0;n<t.length;n++){var o=t[n];o.enumerable=o.enumerable||!1,o.configurable=!0,"value"in o&&(o.writable=!0),Object.defineProperty(e,o.key,o)}}function l(e,t){return l=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(e,t){return e.__proto__=t,e},l(e,t)}function s(e,t){if(t&&("object"===i(t)||"function"==typeof t))return t;if(void 0!==t)throw new TypeError("Derived constructors may only return object or undefined");return function(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}(e)}function f(e){return f=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(e){return e.__proto__||Object.getPrototypeOf(e)},f(e)}var p=function(e){!function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),Object.defineProperty(e,"prototype",{writable:!1}),t&&l(e,t)}(d,e);var t,n,o,i,p=(o=d,i=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(e){return!1}}(),function(){var e,t=f(o);if(i){var n=f(this).constructor;e=Reflect.construct(t,arguments,n)}else e=t.apply(this,arguments);return s(this,e)});function d(){return u(this,d),p.apply(this,arguments)}return t=d,(n=[{key:"defaults",value:function(){var e;return a(e={},r.ZV.Disabled,!0),a(e,r.ZV.Hidden,!1),e}}])&&c(t.prototype,n),Object.defineProperty(t,"prototype",{writable:!1}),d}(o.Q.Model)},6375:function(e,t,n){var o=n(32227);e.exports=(o.default||o).template({1:function(e,t,n,o,r){var i;return e.propertyIsEnumerable,(null!=(i=e.lambda(null!=(i=null!=t?t.options:t)?i.spinnerEl:i,t))?i:"")+"\r\n"},3:function(e,t,n,o,r){e.propertyIsEnumerable;var i=null!=t?t:e.nullContext||{},a=e.hooks.helperMissing,u=e.escapeExpression;return'<form>\r\n <div class="form-group">\r\n <label for="name" class="control-label">'+u((n.lang||t&&t.lang||a).call(i,"fileName",{name:"lang",hash:{},data:r}))+'</label>\r\n <input name="name" id="name" type="text" class="form-control" placeholder="'+u((n.lang||t&&t.lang||a).call(i,"fileName",{name:"lang",hash:{},data:r}))+'" autocomplete="off" autofocus/>\r\n <div class="form-feedback"></div>\r\n </div>\r\n</form>\r\n'},compiler:[8,">= 4.3.0"],main:function(e,t,n,o,r){var i;return e.propertyIsEnumerable,null!=(i=n.unless.call(null!=t?t:e.nullContext||{},null!=(i=null!=t?t.options:t)?i.dataFetched:i,{name:"unless",hash:{},fn:e.program(1,r,0),inverse:e.program(3,r,0),data:r}))?i:""},useData:!0})}}]);
|
|
@@ -1 +1 @@
|
|
|
1
|
-
(self.webpackChunk_clickview_library_editor=self.webpackChunk_clickview_library_editor||[]).push([[299],{91439:function(t,e,n){"use strict";n.d(e,{u:function(){return b}});var o=n(39479),r=n(48088),i=n(31647),s=n(6681),l=n(28099),a=n(93421),c="C8gyn";function u(t){return u="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},u(t)}function p(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}function f(t,e){for(var n=0;n<e.length;n++){var o=e[n];o.enumerable=o.enumerable||!1,o.configurable=!0,"value"in o&&(o.writable=!0),Object.defineProperty(t,o.key,o)}}function h(t,e){return h=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(t,e){return t.__proto__=e,t},h(t,e)}function y(t,e){if(e&&("object"===u(e)||"function"==typeof e))return e;if(void 0!==e)throw new TypeError("Derived constructors may only return object or undefined");return function(t){if(void 0===t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return t}(t)}function d(t){return d=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(t){return t.__proto__||Object.getPrototypeOf(t)},d(t)}var b=function(t){!function(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function");t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,writable:!0,configurable:!0}}),Object.defineProperty(t,"prototype",{writable:!1}),e&&h(t,e)}(v,t);var e,n,i,u,b=(i=v,u=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(t){return!1}}(),function(){var t,e=d(i);if(u){var n=d(this).constructor;t=Reflect.construct(e,arguments,n)}else t=e.apply(this,arguments);return y(this,t)});function v(){return p(this,v),b.apply(this,arguments)}return e=v,(n=[{key:"getClassMappings",value:function(){return{"ui-draggable":a.W2.draggable,"ui-draggable-handle":a.W2.handle,"ui-draggable-disabled":a.W2.disabled,"ui-draggable-dragging":a.W2.dragging}}},{key:"helper",value:function(){return new a.ND({text:this.view.model.get("name"),svg:s.Nj.getSvg(s.vn.Folder)}).render().el}},{key:"start",value:function(){r.Radio.channel(l.jr.FOLDER_DRAG_DROP).trigger("drag:start",this.view.model),this.view.$el.addClass(c)}},{key:"stop",value:function(){r.Radio.channel(l.jr.FOLDER_DRAG_DROP).trigger("drag:stop"),this.view.$el.removeClass(c)}},{key:"onRender",value:function(){var t={helper:o.bind(this.helper,this),start:o.bind(this.start,this),stop:o.bind(this.stop,this)};t.classes=this.getClassMappings(),this.view.$el.draggable(o.extend({},a.wc,t))}},{key:"onBeforeDestroy",value:function(){this.view.$el.draggable("instance")&&this.view.$el.draggable("destroy")}}])&&f(e.prototype,n),Object.defineProperty(e,"prototype",{writable:!1}),v}(i.Q.Behavior)},6929:function(t,e,n){"use strict";n.d(e,{x:function(){return h}});var o=n(39479),r=n(48088),i=n(31647),s=n(10454);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 a(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}function c(t,e){for(var n=0;n<e.length;n++){var o=e[n];o.enumerable=o.enumerable||!1,o.configurable=!0,"value"in o&&(o.writable=!0),Object.defineProperty(t,o.key,o)}}function u(t,e){return u=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(t,e){return t.__proto__=e,t},u(t,e)}function p(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)}function f(t){return f=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(t){return t.__proto__||Object.getPrototypeOf(t)},f(t)}var h=function(t){!function(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function");t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,writable:!0,configurable:!0}}),Object.defineProperty(t,"prototype",{writable:!1}),e&&u(t,e)}(y,t);var e,n,i,l,h=(i=y,l=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(t){return!1}}(),function(){var t,e=f(i);if(l){var n=f(this).constructor;t=Reflect.construct(e,arguments,n)}else t=e.apply(this,arguments);return p(this,t)});function y(){return a(this,y),h.apply(this,arguments)}return e=y,(n=[{key:"getDroppableElement",value:function(){return this.options.ui?this.view.getUI(this.options.ui):this.$el}},{key:"drop",value:function(){var t=this;o.each(this.options.channelNames,(function(e){r.Radio.channel(e).trigger("drag:drop",t.view.model,t.options.analyticsOptions)}))}},{key:"accept",value:function(){var t=this,e=!1;return o.each(this.options.channelNames,(function(n){!0===r.Radio.channel(n).request("accept",t.view.model)&&(e=!0)})),e}},{key:"over",value:function(){var t=this;this.isHoveringOver=!0,window.setTimeout((function(){t.isHoveringOver&&t.view.trigger("open:sub:folders",s.Z.active)}),500)}},{key:"out",value:function(){this.isHoveringOver=!1}},{key:"onRender",value:function(){var t={tolerance:"pointer",drop:o.bind(this.drop,this),accept:o.bind(this.accept,this),over:o.bind(this.over,this),out:o.bind(this.out,this)};t.classes={"ui-droppable":s.Z.droppable,"ui-droppable-active":s.Z.active,"ui-droppable-hover":s.Z.hover},this.getDroppableElement().droppable(t)}},{key:"onBeforeDestroy",value:function(){this.getDroppableElement().droppable("instance")&&this.getDroppableElement().droppable("destroy")}}])&&c(e.prototype,n),Object.defineProperty(e,"prototype",{writable:!1}),y}(i.Q.Behavior)},93421:function(t,e,n){"use strict";n.d(e,{wc:function(){return f},ND:function(){return p},W2:function(){return o}});var o={dragItem:"GYPuI",svgContainer:"olYDa",dragText:"O53FV"},r=n(62699),i=n.n(r);function s(t){return s="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},s(t)}function l(t,e){for(var n=0;n<e.length;n++){var o=e[n];o.enumerable=o.enumerable||!1,o.configurable=!0,"value"in o&&(o.writable=!0),Object.defineProperty(t,o.key,o)}}function a(t,e){return a=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(t,e){return t.__proto__=e,t},a(t,e)}function c(t,e){if(e&&("object"===s(e)||"function"==typeof e))return e;if(void 0!==e)throw new TypeError("Derived constructors may only return object or undefined");return function(t){if(void 0===t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return t}(t)}function u(t){return u=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(t){return t.__proto__||Object.getPrototypeOf(t)},u(t)}var p=function(t){!function(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function");t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,writable:!0,configurable:!0}}),Object.defineProperty(t,"prototype",{writable:!1}),e&&a(t,e)}(f,t);var e,n,r,s,p=(r=f,s=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(t){return!1}}(),function(){var t,e=u(r);if(s){var n=u(this).constructor;t=Reflect.construct(e,arguments,n)}else t=e.apply(this,arguments);return c(this,t)});function f(t){return function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,f),p.call(this,t)}return e=f,(n=[{key:"name",get:function(){return"DraggableItemComponent"}},{key:"template",get:function(){return i()}},{key:"className",get:function(){return"".concat(o.dragItem," p-3")}},{key:"viewOptions",value:function(){return Object.assign({styles:o},this.options)}}])&&l(e.prototype,n),Object.defineProperty(e,"prototype",{writable:!1}),f}(n(31647).Q.Component),f={delay:150,cursorAt:{left:-20,top:10},refreshPositions:!0}},50299:function(t,e,n){"use strict";n.d(e,{J:function(){return j}});var o=n(39479),r=n(31647),i=n(48088),s=n(6681),l=n(70065),a=n(61843),c=n(28099),u=n(6929),p=n(91439),f=n(42978),h=n.n(f);function y(t){return y="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},y(t)}function d(t,e){for(var n=0;n<e.length;n++){var o=e[n];o.enumerable=o.enumerable||!1,o.configurable=!0,"value"in o&&(o.writable=!0),Object.defineProperty(t,o.key,o)}}function b(t,e){return b=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(t,e){return t.__proto__=e,t},b(t,e)}function v(t,e){if(e&&("object"===y(e)||"function"==typeof e))return e;if(void 0!==e)throw new TypeError("Derived constructors may only return object or undefined");return function(t){if(void 0===t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return t}(t)}function g(t){return g=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(t){return t.__proto__||Object.getPrototypeOf(t)},g(t)}var m=function(t){!function(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function");t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,writable:!0,configurable:!0}}),Object.defineProperty(t,"prototype",{writable:!1}),e&&b(t,e)}(O,t);var e,n,f,y,m=(f=O,y=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(t){return!1}}(),function(){var t,e=g(f);if(y){var n=g(this).constructor;t=Reflect.construct(e,arguments,n)}else t=e.apply(this,arguments);return v(this,t)});function O(t){return function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,O),m.call(this,t)}return e=O,(n=[{key:"initialize",value:function(){this.listenTo(this.model,"change:name",this.render);var t=this.getChildren();t&&this.listenTo(t,"add remove",this.render),this.listenTo(this,"open:sub:folders",this.onOpenSubFolders)}},{key:"name",get:function(){return"LeftNavNodeComponent"}},{key:"elements",get:function(){return{anchor:".ui-node",text:".ui-text"}}},{key:"tagName",get:function(){return"li"}},{key:"className",get:function(){var t="position-relative";return this.isSelected()&&(t+=" ".concat(this.options.styles.selected)),this.isParent()&&(t+=" ".concat(this.options.styles.parent)),this.options.isSelector&&(t+=" ".concat(this.options.styles.isSelector)),t}},{key:"behaviors",get:function(){return this.options.isSelector?[]:[{behaviorClass:u.x,ui:"anchor",channelNames:[c.jr.VIDEO_DRAG_DROP,c.jr.FOLDER_DRAG_DROP],analyticsOptions:{location:l.LocationContext.LeftNav}},{behaviorClass:p.u}]}},{key:"appLinks",get:function(){return this.options.appLink?{"@ui.anchor":this.getAppLink()}:{}}},{key:"events",value:function(){return{"click .ui-node":"onClick"}}},{key:"regions",value:function(){return{children:{el:"ul",replaceElement:!0},actions:{el:".actions-region",replaceElement:!0}}}},{key:"template",get:function(){return h()}},{key:"hasChildren",value:function(){var t=this.getChildren();return!!t&&!!t.length}},{key:"getChildren",value:function(){return this.options.childrenProperty?this.model.get(this.options.childrenProperty):null}},{key:"getText",value:function(){return this.options.textProperty?this.model.get(this.options.textProperty):this.model.get("name")}},{key:"isSelected",value:function(){return a.PU.isSelected(this.options.folderTreeId,this.model.get("id"))}},{key:"isParent",value:function(){return a.PU.isParent(this.options.folderTreeId,this.model.get("id"))}},{key:"isDisabled",value:function(){return this.options.disabledIds&&this.options.disabledIds[this.model.get("id").toString()]}},{key:"getAnchorClass",value:function(){var t="position-relative ".concat(this.options.styles.node);return this.isSelected()?t+=" text-body font-weight-bold":this.isDisabled()?t+=" text-muted":t+=" text-dark",t}},{key:"getCaretClass",value:function(){var t=this.options.styles.caret;return this.isDisabled()&&(t+=" text-muted"),t}},{key:"getAppLink",value:function(){if(!this.options.appLink)return{};var t=this.options.linkArgs,e=this.options.linkParams;return{application:this.options.appLink.application,action:this.options.appLink.action,args:o.isFunction(t)?t(this.model):null,params:o.isFunction(e)?e(this.model):null}}},{key:"onClick",value:function(t){t.stopPropagation();var e=this.getRegion("children"),n=i.Radio.channel(this.options.channelName);if(this.isDisabled()||(this.$el.addClass(this.options.styles.selected),this.getUI("text").addClass("text-body font-weight-bold")),this.options.isSelector&&n.trigger("folder:selected",this.model,this.isDisabled()),this.isDisabled()||this.isSelected()&&this.isCurrentPath()){if(t.stopImmediatePropagation(),t.preventDefault(),!this.hasChildren())return void(this.options.isSelector&&n.trigger("re:render:selector"));var o=!e.hasView();return o?this.openChildren():this.closeChildren(),void(this.options.isSelector&&o&&n.trigger("re:render:selector"))}this.hasChildren()&&(this.openChildren(),this.options.isSelector&&i.Radio.channel(this.options.channelName).trigger("re:render:selector"))}},{key:"isCurrentPath",value:function(){var t=r.Q.AppLinkHelper.getCurrentAppLink(),e=this.getAppLink();return!o.keys(e).length||t.application===e.application&&t.action===e.action}},{key:"closeChildren",value:function(){var t=this.getRegion("children");this.$el.addClass(this.options.styles.collapsed),this.$el.removeClass(this.options.styles.parent),t.empty()}},{key:"openChildren",value:function(){this.$el.removeClass(this.options.styles.collapsed),this.renderChildren()}},{key:"onOpenSubFolders",value:function(t){this.renderedSubChildren||this.renderChildren(t)}},{key:"renderChildren",value:function(t){var e=this.getChildren();if(e&&e.length){var n={styles:this.options.styles,channelName:this.options.channelName,appLink:this.options.appLink,linkArgs:this.options.linkArgs,linkParams:this.options.linkParams,childrenProperty:this.options.childrenProperty,textProperty:this.options.textProperty,actions:this.options.actions,folderTreeId:this.options.folderTreeId,analyticsOptions:this.options.analyticsOptions,extraClass:this.options.extraClass,isSelector:this.options.isSelector,disabledIds:this.options.disabledIds};n.extraClasses=t,n.collection=e,this.showChildView("children",new j(n)),this.renderedSubChildren=!0}}},{key:"viewOptions",value:function(){var t="".concat(this.options.styles.item," ").concat(this.options.styles.customItem||"");return this.isDisabled()&&this.renderedSubChildren&&(t+=" ".concat(this.options.styles.disabledActive)),{children:this.getChildren(),itemClass:t,anchorClass:this.getAnchorClass(),caretClass:this.getCaretClass(),showCaret:this.hasChildren(),svg:s.Nj.getSvg(s.vn.Caret),extraClasses:this.options.extraClasses,textStyle:this.options.styles.text,text:this.getText()}}},{key:"onRender",value:function(){this.resetClassName(),this.options.actions&&this.showChildView("actions",new this.options.actions({model:this.model,extraClasses:"rounded-circle mr-1 ".concat(this.options.styles.actions),buttonClass:"text-muted",analyticsOptions:this.options.analyticsOptions})),(this.isSelected()||this.isParent())&&this.renderChildren()}}])&&d(e.prototype,n),Object.defineProperty(e,"prototype",{writable:!1}),O}(r.Q.Component),O=n(95308);function w(t){return w="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},w(t)}function k(t,e){for(var n=0;n<e.length;n++){var o=e[n];o.enumerable=o.enumerable||!1,o.configurable=!0,"value"in o&&(o.writable=!0),Object.defineProperty(t,o.key,o)}}function C(t,e){return C=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(t,e){return t.__proto__=e,t},C(t,e)}function P(t,e){if(e&&("object"===w(e)||"function"==typeof e))return e;if(void 0!==e)throw new TypeError("Derived constructors may only return object or undefined");return function(t){if(void 0===t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return t}(t)}function x(t){return x=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(t){return t.__proto__||Object.getPrototypeOf(t)},x(t)}var j=function(t){!function(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function");t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,writable:!0,configurable:!0}}),Object.defineProperty(t,"prototype",{writable:!1}),e&&C(t,e)}(l,t);var e,n,r,i,s=(r=l,i=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(t){return!1}}(),function(){var t,e=x(r);if(i){var n=x(this).constructor;t=Reflect.construct(e,arguments,n)}else t=e.apply(this,arguments);return P(this,t)});function l(t){return function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,l),t.styles=o.extend({},O.Z,t.styles),s.call(this,t)}return e=l,(n=[{key:"name",get:function(){return"LeftNavComponent"}},{key:"tagName",get:function(){return"ul"}},{key:"childView",get:function(){return m}},{key:"className",get:function(){var t="".concat(this.options.styles.folderTree," position-relative");return this.options.extraClass?"".concat(t," ").concat(this.options.extraClass):t}},{key:"viewComparator",get:function(){return function(t){var e;return null===(e=t.get("name"))||void 0===e?void 0:e.toLowerCase()}}},{key:"childViewOptions",get:function(){return{styles:this.options.styles,channelName:this.options.channelName,appLink:this.options.appLink,linkArgs:this.options.linkArgs,linkParams:this.options.linkParams,childrenProperty:this.options.childrenProperty,textProperty:this.options.textProperty,actions:this.options.actions,extraClass:this.options.extraClass,folderTreeId:this.options.folderTreeId,analyticsOptions:this.options.analyticsOptions,isSelector:this.options.isSelector,disabledIds:this.options.disabledIds}}}])&&k(e.prototype,n),Object.defineProperty(e,"prototype",{writable:!1}),l}(r.Q.ComponentCollection)},62699:function(t,e,n){var o=n(32227);t.exports=(o.default||o).template({compiler:[8,">= 4.3.0"],main:function(t,e,n,o,r){t.propertyIsEnumerable;var i,s=t.lambda,l=t.escapeExpression;return'<span class="'+l(s(null!=(i=null!=(i=null!=e?e.options:e)?i.styles:i)?i.svgContainer:i,e))+' mr-2">'+(null!=(i=s(null!=(i=null!=e?e.options:e)?i.svg:i,e))?i:"")+'</span>\r\n<span class="'+l(s(null!=(i=null!=(i=null!=e?e.options:e)?i.styles:i)?i.dragText:i,e))+'">'+l(s(null!=(i=null!=e?e.options:e)?i.text:i,e))+"</span>"},useData:!0})},42978:function(t,e,n){var o=n(32227);t.exports=(o.default||o).template({1:function(t,e,n,o,r){t.propertyIsEnumerable;var i,s=t.lambda;return' <span class="'+t.escapeExpression(s(null!=(i=null!=e?e.options:e)?i.caretClass:i,e))+' d-inline-block position-absolute">\r\n '+(null!=(i=s(null!=(i=null!=e?e.options:e)?i.svg:i,e))?i:"")+"\r\n </span>\r\n"},3:function(t,e,n,o,r){return"<ul></ul>\r\n"},compiler:[8,">= 4.3.0"],main:function(t,e,n,o,r){t.propertyIsEnumerable;var i,s=t.lambda,l=t.escapeExpression,a=null!=e?e:t.nullContext||{};return'<div class="position-relative '+l(s(null!=(i=null!=e?e.options:e)?i.itemClass:i,e))+'">\r\n <a class="'+l(s(null!=(i=null!=e?e.options:e)?i.anchorClass:i,e))+' d-block ui-node">\r\n'+(null!=(i=n.if.call(a,null!=(i=null!=e?e.options:e)?i.showCaret:i,{name:"if",hash:{},fn:t.program(1,r,0),inverse:t.noop,data:r}))?i:"")+' <span class="'+l(s(null!=(i=null!=e?e.options:e)?i.textStyle:i,e))+" ui-text "+l(s(null!=(i=null!=e?e.options:e)?i.extraClasses:i,e))+'">'+l(s(null!=(i=null!=e?e.options:e)?i.text:i,e))+'</span>\r\n </a>\r\n <div class="actions-region"></div>\r\n</div>\r\n'+(null!=(i=n.if.call(a,null!=(i=null!=(i=null!=e?e.options:e)?i.children:i)?i.length:i,{name:"if",hash:{},fn:t.program(3,r,0),inverse:t.noop,data:r}))?i:"")},useData:!0})},95308:function(t,e){"use strict";e.Z={folderTree:"JTT7V",text:"ekgGD",caret:"tFpUT",library:"VmDO7",isSelector:"gxCnr",selected:"UotqF",parent:"WHPA5",disabledActive:"S2QPI",disabled:"tntwp",collapsed:"Po9s7",actions:"Sf28U",node:"vm17w",libraryContainer:"_xoJs",item:"aMuxi"}}}]);
|
|
1
|
+
(self.webpackChunk_clickview_library_editor=self.webpackChunk_clickview_library_editor||[]).push([[299],{91439:function(t,e,n){"use strict";n.d(e,{u:function(){return b}});var o=n(39479),r=n(48088),i=n(31647),s=n(6681),l=n(30305),a=n(93421),c="C8gyn";function u(t){return u="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},u(t)}function p(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}function f(t,e){for(var n=0;n<e.length;n++){var o=e[n];o.enumerable=o.enumerable||!1,o.configurable=!0,"value"in o&&(o.writable=!0),Object.defineProperty(t,o.key,o)}}function h(t,e){return h=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(t,e){return t.__proto__=e,t},h(t,e)}function y(t,e){if(e&&("object"===u(e)||"function"==typeof e))return e;if(void 0!==e)throw new TypeError("Derived constructors may only return object or undefined");return function(t){if(void 0===t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return t}(t)}function d(t){return d=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(t){return t.__proto__||Object.getPrototypeOf(t)},d(t)}var b=function(t){!function(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function");t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,writable:!0,configurable:!0}}),Object.defineProperty(t,"prototype",{writable:!1}),e&&h(t,e)}(v,t);var e,n,i,u,b=(i=v,u=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(t){return!1}}(),function(){var t,e=d(i);if(u){var n=d(this).constructor;t=Reflect.construct(e,arguments,n)}else t=e.apply(this,arguments);return y(this,t)});function v(){return p(this,v),b.apply(this,arguments)}return e=v,(n=[{key:"getClassMappings",value:function(){return{"ui-draggable":a.W2.draggable,"ui-draggable-handle":a.W2.handle,"ui-draggable-disabled":a.W2.disabled,"ui-draggable-dragging":a.W2.dragging}}},{key:"helper",value:function(){return new a.ND({text:this.view.model.get("name"),svg:s.Nj.getSvg(s.vn.Folder)}).render().el}},{key:"start",value:function(){r.Radio.channel(l.jr.FOLDER_DRAG_DROP).trigger("drag:start",this.view.model),this.view.$el.addClass(c)}},{key:"stop",value:function(){r.Radio.channel(l.jr.FOLDER_DRAG_DROP).trigger("drag:stop"),this.view.$el.removeClass(c)}},{key:"onRender",value:function(){var t={helper:o.bind(this.helper,this),start:o.bind(this.start,this),stop:o.bind(this.stop,this)};t.classes=this.getClassMappings(),this.view.$el.draggable(o.extend({},a.wc,t))}},{key:"onBeforeDestroy",value:function(){this.view.$el.draggable("instance")&&this.view.$el.draggable("destroy")}}])&&f(e.prototype,n),Object.defineProperty(e,"prototype",{writable:!1}),v}(i.Q.Behavior)},6929:function(t,e,n){"use strict";n.d(e,{x:function(){return h}});var o=n(39479),r=n(48088),i=n(31647),s=n(10454);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 a(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}function c(t,e){for(var n=0;n<e.length;n++){var o=e[n];o.enumerable=o.enumerable||!1,o.configurable=!0,"value"in o&&(o.writable=!0),Object.defineProperty(t,o.key,o)}}function u(t,e){return u=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(t,e){return t.__proto__=e,t},u(t,e)}function p(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)}function f(t){return f=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(t){return t.__proto__||Object.getPrototypeOf(t)},f(t)}var h=function(t){!function(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function");t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,writable:!0,configurable:!0}}),Object.defineProperty(t,"prototype",{writable:!1}),e&&u(t,e)}(y,t);var e,n,i,l,h=(i=y,l=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(t){return!1}}(),function(){var t,e=f(i);if(l){var n=f(this).constructor;t=Reflect.construct(e,arguments,n)}else t=e.apply(this,arguments);return p(this,t)});function y(){return a(this,y),h.apply(this,arguments)}return e=y,(n=[{key:"getDroppableElement",value:function(){return this.options.ui?this.view.getUI(this.options.ui):this.$el}},{key:"drop",value:function(){var t=this;o.each(this.options.channelNames,(function(e){r.Radio.channel(e).trigger("drag:drop",t.view.model,t.options.analyticsOptions)}))}},{key:"accept",value:function(){var t=this,e=!1;return o.each(this.options.channelNames,(function(n){!0===r.Radio.channel(n).request("accept",t.view.model)&&(e=!0)})),e}},{key:"over",value:function(){var t=this;this.isHoveringOver=!0,window.setTimeout((function(){t.isHoveringOver&&t.view.trigger("open:sub:folders",s.Z.active)}),500)}},{key:"out",value:function(){this.isHoveringOver=!1}},{key:"onRender",value:function(){var t={tolerance:"pointer",drop:o.bind(this.drop,this),accept:o.bind(this.accept,this),over:o.bind(this.over,this),out:o.bind(this.out,this)};t.classes={"ui-droppable":s.Z.droppable,"ui-droppable-active":s.Z.active,"ui-droppable-hover":s.Z.hover},this.getDroppableElement().droppable(t)}},{key:"onBeforeDestroy",value:function(){this.getDroppableElement().droppable("instance")&&this.getDroppableElement().droppable("destroy")}}])&&c(e.prototype,n),Object.defineProperty(e,"prototype",{writable:!1}),y}(i.Q.Behavior)},93421:function(t,e,n){"use strict";n.d(e,{wc:function(){return f},ND:function(){return p},W2:function(){return o}});var o={dragItem:"GYPuI",svgContainer:"olYDa",dragText:"O53FV"},r=n(62699),i=n.n(r);function s(t){return s="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},s(t)}function l(t,e){for(var n=0;n<e.length;n++){var o=e[n];o.enumerable=o.enumerable||!1,o.configurable=!0,"value"in o&&(o.writable=!0),Object.defineProperty(t,o.key,o)}}function a(t,e){return a=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(t,e){return t.__proto__=e,t},a(t,e)}function c(t,e){if(e&&("object"===s(e)||"function"==typeof e))return e;if(void 0!==e)throw new TypeError("Derived constructors may only return object or undefined");return function(t){if(void 0===t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return t}(t)}function u(t){return u=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(t){return t.__proto__||Object.getPrototypeOf(t)},u(t)}var p=function(t){!function(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function");t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,writable:!0,configurable:!0}}),Object.defineProperty(t,"prototype",{writable:!1}),e&&a(t,e)}(f,t);var e,n,r,s,p=(r=f,s=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(t){return!1}}(),function(){var t,e=u(r);if(s){var n=u(this).constructor;t=Reflect.construct(e,arguments,n)}else t=e.apply(this,arguments);return c(this,t)});function f(t){return function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,f),p.call(this,t)}return e=f,(n=[{key:"name",get:function(){return"DraggableItemComponent"}},{key:"template",get:function(){return i()}},{key:"className",get:function(){return"".concat(o.dragItem," p-3")}},{key:"viewOptions",value:function(){return Object.assign({styles:o},this.options)}}])&&l(e.prototype,n),Object.defineProperty(e,"prototype",{writable:!1}),f}(n(31647).Q.Component),f={delay:150,cursorAt:{left:-20,top:10},refreshPositions:!0}},50299:function(t,e,n){"use strict";n.d(e,{J:function(){return j}});var o=n(39479),r=n(31647),i=n(48088),s=n(6681),l=n(70065),a=n(61843),c=n(30305),u=n(6929),p=n(91439),f=n(42978),h=n.n(f);function y(t){return y="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},y(t)}function d(t,e){for(var n=0;n<e.length;n++){var o=e[n];o.enumerable=o.enumerable||!1,o.configurable=!0,"value"in o&&(o.writable=!0),Object.defineProperty(t,o.key,o)}}function b(t,e){return b=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(t,e){return t.__proto__=e,t},b(t,e)}function v(t,e){if(e&&("object"===y(e)||"function"==typeof e))return e;if(void 0!==e)throw new TypeError("Derived constructors may only return object or undefined");return function(t){if(void 0===t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return t}(t)}function g(t){return g=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(t){return t.__proto__||Object.getPrototypeOf(t)},g(t)}var m=function(t){!function(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function");t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,writable:!0,configurable:!0}}),Object.defineProperty(t,"prototype",{writable:!1}),e&&b(t,e)}(O,t);var e,n,f,y,m=(f=O,y=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(t){return!1}}(),function(){var t,e=g(f);if(y){var n=g(this).constructor;t=Reflect.construct(e,arguments,n)}else t=e.apply(this,arguments);return v(this,t)});function O(t){return function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,O),m.call(this,t)}return e=O,(n=[{key:"initialize",value:function(){this.listenTo(this.model,"change:name",this.render);var t=this.getChildren();t&&this.listenTo(t,"add remove",this.render),this.listenTo(this,"open:sub:folders",this.onOpenSubFolders)}},{key:"name",get:function(){return"LeftNavNodeComponent"}},{key:"elements",get:function(){return{anchor:".ui-node",text:".ui-text"}}},{key:"tagName",get:function(){return"li"}},{key:"className",get:function(){var t="position-relative";return this.isSelected()&&(t+=" ".concat(this.options.styles.selected)),this.isParent()&&(t+=" ".concat(this.options.styles.parent)),this.options.isSelector&&(t+=" ".concat(this.options.styles.isSelector)),t}},{key:"behaviors",get:function(){return this.options.isSelector?[]:[{behaviorClass:u.x,ui:"anchor",channelNames:[c.jr.VIDEO_DRAG_DROP,c.jr.FOLDER_DRAG_DROP],analyticsOptions:{location:l.LocationContext.LeftNav}},{behaviorClass:p.u}]}},{key:"appLinks",get:function(){return this.options.appLink?{"@ui.anchor":this.getAppLink()}:{}}},{key:"events",value:function(){return{"click .ui-node":"onClick"}}},{key:"regions",value:function(){return{children:{el:"ul",replaceElement:!0},actions:{el:".actions-region",replaceElement:!0}}}},{key:"template",get:function(){return h()}},{key:"hasChildren",value:function(){var t=this.getChildren();return!!t&&!!t.length}},{key:"getChildren",value:function(){return this.options.childrenProperty?this.model.get(this.options.childrenProperty):null}},{key:"getText",value:function(){return this.options.textProperty?this.model.get(this.options.textProperty):this.model.get("name")}},{key:"isSelected",value:function(){return a.PU.isSelected(this.options.folderTreeId,this.model.get("id"))}},{key:"isParent",value:function(){return a.PU.isParent(this.options.folderTreeId,this.model.get("id"))}},{key:"isDisabled",value:function(){return this.options.disabledIds&&this.options.disabledIds[this.model.get("id").toString()]}},{key:"getAnchorClass",value:function(){var t="position-relative ".concat(this.options.styles.node);return this.isSelected()?t+=" text-body font-weight-bold":this.isDisabled()?t+=" text-muted":t+=" text-dark",t}},{key:"getCaretClass",value:function(){var t=this.options.styles.caret;return this.isDisabled()&&(t+=" text-muted"),t}},{key:"getAppLink",value:function(){if(!this.options.appLink)return{};var t=this.options.linkArgs,e=this.options.linkParams;return{application:this.options.appLink.application,action:this.options.appLink.action,args:o.isFunction(t)?t(this.model):null,params:o.isFunction(e)?e(this.model):null}}},{key:"onClick",value:function(t){t.stopPropagation();var e=this.getRegion("children"),n=i.Radio.channel(this.options.channelName);if(this.isDisabled()||(this.$el.addClass(this.options.styles.selected),this.getUI("text").addClass("text-body font-weight-bold")),this.options.isSelector&&n.trigger("folder:selected",this.model,this.isDisabled()),this.isDisabled()||this.isSelected()&&this.isCurrentPath()){if(t.stopImmediatePropagation(),t.preventDefault(),!this.hasChildren())return void(this.options.isSelector&&n.trigger("re:render:selector"));var o=!e.hasView();return o?this.openChildren():this.closeChildren(),void(this.options.isSelector&&o&&n.trigger("re:render:selector"))}this.hasChildren()&&(this.openChildren(),this.options.isSelector&&i.Radio.channel(this.options.channelName).trigger("re:render:selector"))}},{key:"isCurrentPath",value:function(){var t=r.Q.AppLinkHelper.getCurrentAppLink(),e=this.getAppLink();return!o.keys(e).length||t.application===e.application&&t.action===e.action}},{key:"closeChildren",value:function(){var t=this.getRegion("children");this.$el.addClass(this.options.styles.collapsed),this.$el.removeClass(this.options.styles.parent),t.empty()}},{key:"openChildren",value:function(){this.$el.removeClass(this.options.styles.collapsed),this.renderChildren()}},{key:"onOpenSubFolders",value:function(t){this.renderedSubChildren||this.renderChildren(t)}},{key:"renderChildren",value:function(t){var e=this.getChildren();if(e&&e.length){var n={styles:this.options.styles,channelName:this.options.channelName,appLink:this.options.appLink,linkArgs:this.options.linkArgs,linkParams:this.options.linkParams,childrenProperty:this.options.childrenProperty,textProperty:this.options.textProperty,actions:this.options.actions,folderTreeId:this.options.folderTreeId,analyticsOptions:this.options.analyticsOptions,extraClass:this.options.extraClass,isSelector:this.options.isSelector,disabledIds:this.options.disabledIds};n.extraClasses=t,n.collection=e,this.showChildView("children",new j(n)),this.renderedSubChildren=!0}}},{key:"viewOptions",value:function(){var t="".concat(this.options.styles.item," ").concat(this.options.styles.customItem||"");return this.isDisabled()&&this.renderedSubChildren&&(t+=" ".concat(this.options.styles.disabledActive)),{children:this.getChildren(),itemClass:t,anchorClass:this.getAnchorClass(),caretClass:this.getCaretClass(),showCaret:this.hasChildren(),svg:s.Nj.getSvg(s.vn.Caret),extraClasses:this.options.extraClasses,textStyle:this.options.styles.text,text:this.getText()}}},{key:"onRender",value:function(){this.resetClassName(),this.options.actions&&this.showChildView("actions",new this.options.actions({model:this.model,extraClasses:"rounded-circle mr-1 ".concat(this.options.styles.actions),buttonClass:"text-muted",analyticsOptions:this.options.analyticsOptions})),(this.isSelected()||this.isParent())&&this.renderChildren()}}])&&d(e.prototype,n),Object.defineProperty(e,"prototype",{writable:!1}),O}(r.Q.Component),O=n(95308);function w(t){return w="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},w(t)}function k(t,e){for(var n=0;n<e.length;n++){var o=e[n];o.enumerable=o.enumerable||!1,o.configurable=!0,"value"in o&&(o.writable=!0),Object.defineProperty(t,o.key,o)}}function C(t,e){return C=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(t,e){return t.__proto__=e,t},C(t,e)}function P(t,e){if(e&&("object"===w(e)||"function"==typeof e))return e;if(void 0!==e)throw new TypeError("Derived constructors may only return object or undefined");return function(t){if(void 0===t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return t}(t)}function x(t){return x=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(t){return t.__proto__||Object.getPrototypeOf(t)},x(t)}var j=function(t){!function(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function");t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,writable:!0,configurable:!0}}),Object.defineProperty(t,"prototype",{writable:!1}),e&&C(t,e)}(l,t);var e,n,r,i,s=(r=l,i=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(t){return!1}}(),function(){var t,e=x(r);if(i){var n=x(this).constructor;t=Reflect.construct(e,arguments,n)}else t=e.apply(this,arguments);return P(this,t)});function l(t){return function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,l),t.styles=o.extend({},O.Z,t.styles),s.call(this,t)}return e=l,(n=[{key:"name",get:function(){return"LeftNavComponent"}},{key:"tagName",get:function(){return"ul"}},{key:"childView",get:function(){return m}},{key:"className",get:function(){var t="".concat(this.options.styles.folderTree," position-relative");return this.options.extraClass?"".concat(t," ").concat(this.options.extraClass):t}},{key:"viewComparator",get:function(){return function(t){var e;return null===(e=t.get("name"))||void 0===e?void 0:e.toLowerCase()}}},{key:"childViewOptions",get:function(){return{styles:this.options.styles,channelName:this.options.channelName,appLink:this.options.appLink,linkArgs:this.options.linkArgs,linkParams:this.options.linkParams,childrenProperty:this.options.childrenProperty,textProperty:this.options.textProperty,actions:this.options.actions,extraClass:this.options.extraClass,folderTreeId:this.options.folderTreeId,analyticsOptions:this.options.analyticsOptions,isSelector:this.options.isSelector,disabledIds:this.options.disabledIds}}}])&&k(e.prototype,n),Object.defineProperty(e,"prototype",{writable:!1}),l}(r.Q.ComponentCollection)},62699:function(t,e,n){var o=n(32227);t.exports=(o.default||o).template({compiler:[8,">= 4.3.0"],main:function(t,e,n,o,r){t.propertyIsEnumerable;var i,s=t.lambda,l=t.escapeExpression;return'<span class="'+l(s(null!=(i=null!=(i=null!=e?e.options:e)?i.styles:i)?i.svgContainer:i,e))+' mr-2">'+(null!=(i=s(null!=(i=null!=e?e.options:e)?i.svg:i,e))?i:"")+'</span>\r\n<span class="'+l(s(null!=(i=null!=(i=null!=e?e.options:e)?i.styles:i)?i.dragText:i,e))+'">'+l(s(null!=(i=null!=e?e.options:e)?i.text:i,e))+"</span>"},useData:!0})},42978:function(t,e,n){var o=n(32227);t.exports=(o.default||o).template({1:function(t,e,n,o,r){t.propertyIsEnumerable;var i,s=t.lambda;return' <span class="'+t.escapeExpression(s(null!=(i=null!=e?e.options:e)?i.caretClass:i,e))+' d-inline-block position-absolute">\r\n '+(null!=(i=s(null!=(i=null!=e?e.options:e)?i.svg:i,e))?i:"")+"\r\n </span>\r\n"},3:function(t,e,n,o,r){return"<ul></ul>\r\n"},compiler:[8,">= 4.3.0"],main:function(t,e,n,o,r){t.propertyIsEnumerable;var i,s=t.lambda,l=t.escapeExpression,a=null!=e?e:t.nullContext||{};return'<div class="position-relative '+l(s(null!=(i=null!=e?e.options:e)?i.itemClass:i,e))+'">\r\n <a class="'+l(s(null!=(i=null!=e?e.options:e)?i.anchorClass:i,e))+' d-block ui-node">\r\n'+(null!=(i=n.if.call(a,null!=(i=null!=e?e.options:e)?i.showCaret:i,{name:"if",hash:{},fn:t.program(1,r,0),inverse:t.noop,data:r}))?i:"")+' <span class="'+l(s(null!=(i=null!=e?e.options:e)?i.textStyle:i,e))+" ui-text "+l(s(null!=(i=null!=e?e.options:e)?i.extraClasses:i,e))+'">'+l(s(null!=(i=null!=e?e.options:e)?i.text:i,e))+'</span>\r\n </a>\r\n <div class="actions-region"></div>\r\n</div>\r\n'+(null!=(i=n.if.call(a,null!=(i=null!=(i=null!=e?e.options:e)?i.children:i)?i.length:i,{name:"if",hash:{},fn:t.program(3,r,0),inverse:t.noop,data:r}))?i:"")},useData:!0})},95308:function(t,e){"use strict";e.Z={folderTree:"JTT7V",text:"ekgGD",caret:"tFpUT",library:"VmDO7",isSelector:"gxCnr",selected:"UotqF",parent:"WHPA5",disabledActive:"S2QPI",disabled:"tntwp",collapsed:"Po9s7",actions:"Sf28U",node:"vm17w",libraryContainer:"_xoJs",item:"aMuxi"}}}]);
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
(self.webpackChunk_clickview_library_editor=self.webpackChunk_clickview_library_editor||[]).push([[3096],{98001:function(e,n,t){"use strict";t.d(n,{u:function(){return w}});var o=t(39479),r=t(48088),i=t(31647),l=t(11306),a=t(6681),s=t(30305),c=t(61843),u=t(57857),p=t(93421),f=t(40622),d="bimhO";function h(e){return h="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},h(e)}function y(e,n){if(!(e instanceof n))throw new TypeError("Cannot call a class as a function")}function m(e,n){for(var t=0;t<n.length;t++){var o=n[t];o.enumerable=o.enumerable||!1,o.configurable=!0,"value"in o&&(o.writable=!0),Object.defineProperty(e,o.key,o)}}function g(e,n){return g=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(e,n){return e.__proto__=n,e},g(e,n)}function v(e,n){if(n&&("object"===h(n)||"function"==typeof n))return n;if(void 0!==n)throw new TypeError("Derived constructors may only return object or undefined");return function(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}(e)}function b(e){return b=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(e){return e.__proto__||Object.getPrototypeOf(e)},b(e)}var w=function(e){!function(e,n){if("function"!=typeof n&&null!==n)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(n&&n.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),Object.defineProperty(e,"prototype",{writable:!1}),n&&g(e,n)}(O,e);var n,t,h,w,k=(h=O,w=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(e){return!1}}(),function(){var e,n=b(h);if(w){var t=b(this).constructor;e=Reflect.construct(n,arguments,t)}else e=n.apply(this,arguments);return v(this,e)});function O(){return y(this,O),k.apply(this,arguments)}return n=O,(t=[{key:"initialize",value:function(){this.options.model||i.Q.ErrorHelper.throw(new l.H("DraggableVideoBehavior must be passed a Video model")),this.listenTo(s.jr.VIDEO_DRAG_DROP,"drag:style:".concat(this.options.model.id),this.styleDragStart),this.listenTo(s.jr.VIDEO_DRAG_DROP,"drag:stop",this.styleDragStop)}},{key:"lang",get:function(){return"libraryEditor.behaviors"}},{key:"helper",value:function(){var e=this.getVideoModels();return new p.ND({text:e.length>1?u.T.getPhrase(this.lang,"videos",{videoCount:e.length}):e[0].get("name"),svg:a.Nj.getSvg(a.vn.Play)}).render().el}},{key:"getSelector",value:function(){return this.view.getUI(this.options.selector)}},{key:"styleDragStart",value:function(){this.getSelector().addClass(d)}},{key:"styleDragStop",value:function(){this.getSelector().removeClass(d)}},{key:"start",value:function(){var e=this.getVideoModels(),n=r.Radio.channel(s.jr.VIDEO_DRAG_DROP);n.trigger("drag:start",e,this.options.collectionIdentifier),o.each(e,(function(e){return n.trigger("drag:style:".concat(e.id))}))}},{key:"stop",value:function(){r.Radio.channel(s.jr.VIDEO_DRAG_DROP).trigger("drag:stop")}},{key:"getVideoModels",value:function(){var e=this,n=c.S0.GetSelectedModels({key:this.options.collectionIdentifier.toString(),type:f.CheckboxTypes.VIDEO_LIST,collection:this.view.model.collection});return o.any(n,(function(n){return n.id===e.view.model.id}))||(n=[this.view.model]),n.length?n:[this.view.model]}},{key:"getClassMappings",value:function(){return{"ui-draggable":p.W2.draggable,"ui-draggable-disabled":p.W2.disabled,"ui-draggable-handle":p.W2.handle,"ui-draggable-dragging":p.W2.dragging}}},{key:"onRender",value:function(){var e=this.getSelector(),n={helper:o.bind(this.helper,this),start:o.bind(this.start,this),stop:o.bind(this.stop,this)};n.classes=this.getClassMappings(),e.draggable(o.extend({},p.wc,n))}},{key:"onBeforeDestroy",value:function(){var e=this.getSelector();e.draggable("instance")&&e.draggable("destroy")}}])&&m(n.prototype,t),Object.defineProperty(n,"prototype",{writable:!1}),O}(i.Q.Behavior)},93421:function(e,n,t){"use strict";t.d(n,{wc:function(){return f},ND:function(){return p},W2:function(){return o}});var o={dragItem:"GYPuI",svgContainer:"olYDa",dragText:"O53FV"},r=t(62699),i=t.n(r);function l(e){return l="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},l(e)}function a(e,n){for(var t=0;t<n.length;t++){var o=n[t];o.enumerable=o.enumerable||!1,o.configurable=!0,"value"in o&&(o.writable=!0),Object.defineProperty(e,o.key,o)}}function s(e,n){return s=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(e,n){return e.__proto__=n,e},s(e,n)}function c(e,n){if(n&&("object"===l(n)||"function"==typeof n))return n;if(void 0!==n)throw new TypeError("Derived constructors may only return object or undefined");return function(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}(e)}function u(e){return u=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(e){return e.__proto__||Object.getPrototypeOf(e)},u(e)}var p=function(e){!function(e,n){if("function"!=typeof n&&null!==n)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(n&&n.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),Object.defineProperty(e,"prototype",{writable:!1}),n&&s(e,n)}(f,e);var n,t,r,l,p=(r=f,l=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(e){return!1}}(),function(){var e,n=u(r);if(l){var t=u(this).constructor;e=Reflect.construct(n,arguments,t)}else e=n.apply(this,arguments);return c(this,e)});function f(e){return function(e,n){if(!(e instanceof n))throw new TypeError("Cannot call a class as a function")}(this,f),p.call(this,e)}return n=f,(t=[{key:"name",get:function(){return"DraggableItemComponent"}},{key:"template",get:function(){return i()}},{key:"className",get:function(){return"".concat(o.dragItem," p-3")}},{key:"viewOptions",value:function(){return Object.assign({styles:o},this.options)}}])&&a(n.prototype,t),Object.defineProperty(n,"prototype",{writable:!1}),f}(t(31647).Q.Component),f={delay:150,cursorAt:{left:-20,top:10},refreshPositions:!0}},12542:function(e,n,t){"use strict";t.d(n,{X:function(){return h},Y:function(){return y}});var o=t(39479),r=t(31647),i=t(66246),l=t.n(i),a=t(61843);function s(e){return s="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},s(e)}function c(e,n,t){return n in e?Object.defineProperty(e,n,{value:t,enumerable:!0,configurable:!0,writable:!0}):e[n]=t,e}function u(e,n){for(var t=0;t<n.length;t++){var o=n[t];o.enumerable=o.enumerable||!1,o.configurable=!0,"value"in o&&(o.writable=!0),Object.defineProperty(e,o.key,o)}}function p(e,n){return p=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(e,n){return e.__proto__=n,e},p(e,n)}function f(e,n){if(n&&("object"===s(n)||"function"==typeof n))return n;if(void 0!==n)throw new TypeError("Derived constructors may only return object or undefined");return function(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}(e)}function d(e){return d=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(e){return e.__proto__||Object.getPrototypeOf(e)},d(e)}var h="checkbox-all",y=function(e){!function(e,n){if("function"!=typeof n&&null!==n)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(n&&n.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),Object.defineProperty(e,"prototype",{writable:!1}),n&&p(e,n)}(y,e);var n,t,r,i,s=(r=y,i=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(e){return!1}}(),function(){var e,n=d(r);if(i){var t=d(this).constructor;e=Reflect.construct(n,arguments,t)}else e=n.apply(this,arguments);return f(this,e)});function y(e){return function(e,n){if(!(e instanceof n))throw new TypeError("Cannot call a class as a function")}(this,y),s.call(this,e)}return n=y,(t=[{key:"initialize",value:function(){this.getViewModel(),this.bindListeners()}},{key:"name",get:function(){return"BulkCheckboxComponent"}},{key:"className",get:function(){return this.options.className}},{key:"template",get:function(){return l()}},{key:"getViewModel",value:function(){this.model=a.S0.GetViewModel(this.options.key,this.options.type)}},{key:"bindListeners",value:function(){this.options.disabled||this.listenTo(this.model,"change",this.onChange)}},{key:"events",value:function(){return{"change .custom-control-input":"onClick"}}},{key:"onChange",value:function(){this.checkAllChecked(),this.render()}},{key:"checkAllChecked",value:function(){var e=o.values(this.model.omit("all",h));o.every(e,(function(e){return!!e}))&&(this.model.get("all")||e.length===this.options.numberOfItems)&&this.model.set(c({all:!0},this.getItemId(),!0))}},{key:"getItemId",value:function(){return h}},{key:"onClick",value:function(){this.model.get(this.getItemId())?this.model.clear():(this.model.clear(),this.model.set(c({all:!0},this.getItemId(),!0)))}},{key:"viewOptions",value:function(){return{id:this.getItemId(),checked:this.model.get(h),disabled:this.options.disabled,checkboxClassName:this.options.checkboxClassName}}}])&&u(n.prototype,t),Object.defineProperty(n,"prototype",{writable:!1}),y}(r.Q.Component)},14898:function(e,n,t){"use strict";t.d(n,{a:function(){return y}});var o,r,i,l=t(31647),a=t(39479),s=t(58688),c=t(86605),u=t(98001),p=(o={},i=function(e){return[{behaviorClass:u.u,collectionIdentifier:e.options.collectionIdentifier,model:e.options.model,selector:"drag-selector"}]},(r=s.U.Draggable)in o?Object.defineProperty(o,r,{value:i,enumerable:!0,configurable:!0,writable:!0}):o[r]=i,o),f=t(11306),d=s.U.Base,h=c.E,y={renderRegions:function(e,n){a.each(e.regions,(function(t,o){m.onBeforeRenderRegion(e,n,o)&&m.renderRegion(e,n,o)}))},onBeforeRenderRegion:function(e,n,t){var o=h.onBeforeRender[n];if(o||(o=h.onBeforeRender[d]),!o)return!0;var r=o[t];return!r||!a.isFunction(r)||r(e)},renderRegion:function(e,n,t){var o=m.getComponent(e,n,t);e.showChildView(t,o)},getComponent:function(e,n,t){var o=h.componentOptions[n];o||l.Q.ErrorHelper.throw(new f.H("Must define VideoItemComponent type options: ".concat(s.U[n],".")));var r=o[t];r||(r=h.componentOptions[d][t]),r||l.Q.ErrorHelper.throw(new f.H("Must define VideoItemComponent region options: ".concat(t,".")));var i=r(e);return i.component||l.Q.ErrorHelper.throw(new f.H("Must define component for region: ".concat(t,",\n in VideoItemComponent type: ").concat(s.U[n],"."))),new i.component(i.options||{})},getBehaviors:function(e,n){return p[n]?p[n](e):null}},m=y},58688:function(e,n,t){"use strict";var o,r;t.d(n,{H:function(){return r},U:function(){return o}}),function(e){e[e.Base=0]="Base",e[e.AwaitingReview=1]="AwaitingReview",e[e.PastReleases=2]="PastReleases",e[e.VideoAccess=3]="VideoAccess",e[e.ProcessingVideo=4]="ProcessingVideo",e[e.Draggable=5]="Draggable",e[e.Search=6]="Search"}(o||(o={})),function(e){e.Checkbox="checkbox",e.Thumbnail="thumbnail",e.Metadata="metadata",e.VideoActions="videoActions",e.VideoInfo="videoInfo"}(r||(r={}))},86605:function(e,n,t){"use strict";t.d(n,{E:function(){return it}});var o=t(30305),r=t(39995),i=t(88483),l=t(31647),a=t(66246),s=t.n(a),c=t(61843),u=t(12542);function p(e){return p="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},p(e)}function f(e,n){for(var t=0;t<n.length;t++){var o=n[t];o.enumerable=o.enumerable||!1,o.configurable=!0,"value"in o&&(o.writable=!0),Object.defineProperty(e,o.key,o)}}function d(e,n){return d=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(e,n){return e.__proto__=n,e},d(e,n)}function h(e,n){if(n&&("object"===p(n)||"function"==typeof n))return n;if(void 0!==n)throw new TypeError("Derived constructors may only return object or undefined");return function(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}(e)}function y(e){return y=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(e){return e.__proto__||Object.getPrototypeOf(e)},y(e)}var m=function(e){!function(e,n){if("function"!=typeof n&&null!==n)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(n&&n.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),Object.defineProperty(e,"prototype",{writable:!1}),n&&d(e,n)}(l,e);var n,t,o,r,i=(o=l,r=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(e){return!1}}(),function(){var e,n=y(o);if(r){var t=y(this).constructor;e=Reflect.construct(n,arguments,t)}else e=n.apply(this,arguments);return h(this,e)});function l(e){return function(e,n){if(!(e instanceof n))throw new TypeError("Cannot call a class as a function")}(this,l),i.call(this,e)}return n=l,(t=[{key:"initialize",value:function(){if(this.getViewModel(),this.bindListeners(),this.options.checked){var e=this.getItemId();this.model.set(e,!0,{silent:!0})}}},{key:"name",get:function(){return"CheckboxComponent"}},{key:"className",get:function(){return this.options.className}},{key:"template",get:function(){return s()}},{key:"getViewModel",value:function(){this.model=c.S0.GetViewModel(this.options.key,this.options.type)}},{key:"bindListeners",value:function(){this.options.disabled||this.listenTo(this.model,"change:all change:".concat(this.getItemId()),this.render)}},{key:"events",value:function(){return{"click .custom-checkbox":"onClickCheckbox","change .custom-control-input":"onChangeCheckbox"}}},{key:"getItemId",value:function(){return this.options.itemId.toString()}},{key:"onClickCheckbox",value:function(e){e.stopPropagation()}},{key:"onChangeCheckbox",value:function(){if(!this.options.disabled){var e=this.getItemId();this.model.has(e)||this.model.get("all")?!1===this.model.get(e)?this.model.set(e,!0):(this.model.set(e,!1),this.model.set(u.X,!1)):this.model.set(e,!0)}}},{key:"viewOptions",value:function(){var e=this.getItemId();return{id:e,checked:this.model.has(e)?this.model.get(e):this.model.get("all"),disabled:this.options.disabled,checkboxClassName:this.options.checkboxClassName}}}])&&f(n.prototype,t),Object.defineProperty(n,"prototype",{writable:!1}),l}(l.Q.Component),g=t(39479),v=t(6681),b=t(56210),w=t(7190),k=t(53885),O=t.n(k),C={interactive:"ggsOm",rating:"CPfqH",svgContainer:"lp1lA",badgesWrapper:"Jh1rs",restrictionBadgeClass:"M6hY4",reviewBadge:"wkjr7",urgentReviewBadge:"rScjU"};function P(e){return P="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},P(e)}function E(e,n){for(var t=0;t<n.length;t++){var o=n[t];o.enumerable=o.enumerable||!1,o.configurable=!0,"value"in o&&(o.writable=!0),Object.defineProperty(e,o.key,o)}}function S(e,n){return S=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(e,n){return e.__proto__=n,e},S(e,n)}function x(e,n){if(n&&("object"===P(n)||"function"==typeof n))return n;if(void 0!==n)throw new TypeError("Derived constructors may only return object or undefined");return function(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}(e)}function j(e){return j=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(e){return e.__proto__||Object.getPrototypeOf(e)},j(e)}var I=function(e){!function(e,n){if("function"!=typeof n&&null!==n)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(n&&n.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),Object.defineProperty(e,"prototype",{writable:!1}),n&&S(e,n)}(l,e);var n,t,o,r,i=(o=l,r=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(e){return!1}}(),function(){var e,n=j(o);if(r){var t=j(this).constructor;e=Reflect.construct(n,arguments,t)}else e=n.apply(this,arguments);return x(this,e)});function l(e){return function(e,n){if(!(e instanceof n))throw new TypeError("Cannot call a class as a function")}(this,l),i.call(this,e)}return n=l,(t=[{key:"name",get:function(){return"VideoItemBadgesComponent"}},{key:"template",get:function(){return O()}},{key:"lang",get:function(){return"shared.videoItemBadges"}},{key:"behaviors",get:function(){return[{behaviorClass:b.H,selector:".tool-tip"}]}},{key:"defaults",get:function(){return{showRestrictionBadge:!1,showReviewBadge:!1}}},{key:"events",value:function(){return{"click span":"onClick"}}},{key:"onClick",value:function(e){e.stopPropagation()}},{key:"viewOptions",value:function(){var e=this.options.showReviewBadge&&c.S9.getRestrictionTooltipMessage(this.model),n=this.options.showRestrictionBadge&&c.S9.getRestrictionTooltipMessage(this.model);return{styles:C,interactive:w.uB.isInteractive(this.model),subtitles:!1,resources:!1,ratingColorClass:w.uB.mapRatingToClass(this.model.rating.get("value")),closeCaptionSvg:v.Nj.getSvg(v.vn.CloseCaptionBadge),resourcesSvg:v.Nj.getSvg(v.vn.Resources),awaitingReviewMessage:e,awaitingReviewBadgeClass:c.S9.getReviewBadgeClassName(this.model,C.reviewBadge,C.urgentReviewBadge),restrictionMessage:n}}}])&&E(n.prototype,t),Object.defineProperty(n,"prototype",{writable:!1}),l}(l.Q.Component),R=t(7427),_=t(37570),T=t(27367),V=t.n(T),M={lock:"I7AaK",svgContainer:"avSZT"};function D(e){return D="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},D(e)}function A(e,n){for(var t=0;t<n.length;t++){var o=n[t];o.enumerable=o.enumerable||!1,o.configurable=!0,"value"in o&&(o.writable=!0),Object.defineProperty(e,o.key,o)}}function L(e,n){return L=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(e,n){return e.__proto__=n,e},L(e,n)}function B(e,n){if(n&&("object"===D(n)||"function"==typeof n))return n;if(void 0!==n)throw new TypeError("Derived constructors may only return object or undefined");return function(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}(e)}function N(e){return N=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(e){return e.__proto__||Object.getPrototypeOf(e)},N(e)}var U=function(e){!function(e,n){if("function"!=typeof n&&null!==n)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(n&&n.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),Object.defineProperty(e,"prototype",{writable:!1}),n&&L(e,n)}(a,e);var n,t,r,i,l=(r=a,i=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(e){return!1}}(),function(){var e,n=N(r);if(i){var t=N(this).constructor;e=Reflect.construct(n,arguments,t)}else e=n.apply(this,arguments);return B(this,e)});function a(e){return function(e,n){if(!(e instanceof n))throw new TypeError("Cannot call a class as a function")}(this,a),l.call(this,e)}return n=a,(t=[{key:"initialize",value:function(){this.listenTo(this.model,"change:restrictions",this.render)}},{key:"name",get:function(){return"VideoItemMetadataComponent"}},{key:"template",get:function(){return V()}},{key:"behaviors",get:function(){return[{behaviorClass:b.H,selector:".tool-tip"}]}},{key:"appLinks",get:function(){return{".applink-show-video":{application:o.OV.LIBRARY_EDITOR,action:o.eX.LibraryEditor.VIDEO_DETAILS,args:[this.model.get("id")]}}}},{key:"regions",value:function(){return{sources:{el:".sources-region",replaceElement:!0},badges:{el:".badges-region",replaceElement:!0},series:{el:".series-region",replaceElement:!0}}}},{key:"events",value:function(){return e={},t="onClickBadge",(n="click .".concat(M.svgContainer))in e?Object.defineProperty(e,n,{value:t,enumerable:!0,configurable:!0,writable:!0}):e[n]=t,e;var e,n,t}},{key:"onClickBadge",value:function(e){e.stopPropagation()}},{key:"renderSources",value:function(){var e=g.extend({},{model:this.model},this.options.sourceMetadataOptions);this.showChildView("sources",new R.V(e))}},{key:"renderSeries",value:function(){this.showChildView("series",new _.O({model:this.model,highlight:this.options.sourceMetadataOptions&&!!this.options.sourceMetadataOptions.highlight}))}},{key:"renderBadges",value:function(){this.showChildView("badges",new I({model:this.model}))}},{key:"viewOptions",value:function(){return{styles:M,hasAdminRestriction:c.S9.hasAdminRestriction(this.model),restrictionMessage:c.S9.getRestrictionTooltipMessage(this.model),lockSvg:v.Nj.getSvg(v.vn.Lock)}}},{key:"onRender",value:function(){this.renderSeries(),this.renderSources(),this.renderBadges()}}])&&A(n.prototype,t),Object.defineProperty(n,"prototype",{writable:!1}),a}(l.Q.Component),H=t(89707),Q=t(94446),W=t.n(Q);function z(e){return z="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},z(e)}function K(e,n){for(var t=0;t<n.length;t++){var o=n[t];o.enumerable=o.enumerable||!1,o.configurable=!0,"value"in o&&(o.writable=!0),Object.defineProperty(e,o.key,o)}}function Y(e,n){return Y=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(e,n){return e.__proto__=n,e},Y(e,n)}function X(e,n){if(n&&("object"===z(n)||"function"==typeof n))return n;if(void 0!==n)throw new TypeError("Derived constructors may only return object or undefined");return function(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}(e)}function Z(e){return Z=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(e){return e.__proto__||Object.getPrototypeOf(e)},Z(e)}var G=function(e){!function(e,n){if("function"!=typeof n&&null!==n)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(n&&n.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),Object.defineProperty(e,"prototype",{writable:!1}),n&&Y(e,n)}(a,e);var n,t,r,i,l=(r=a,i=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(e){return!1}}(),function(){var e,n=Z(r);if(i){var t=Z(this).constructor;e=Reflect.construct(n,arguments,t)}else e=n.apply(this,arguments);return X(this,e)});function a(e){return function(e,n){if(!(e instanceof n))throw new TypeError("Cannot call a class as a function")}(this,a),l.call(this,e)}return n=a,(t=[{key:"initialize",value:function(){this.listenTo(this.model,"change:restrictions",this.render)}},{key:"name",get:function(){return"VideoItemVideoAccessMetadataComponent"}},{key:"template",get:function(){return W()}},{key:"behaviors",get:function(){return[{behaviorClass:b.H,selector:".tool-tip"}]}},{key:"appLinks",get:function(){if(c.M2.hasCustomLibrary(this.model))return{".applink-show-video":{application:o.OV.LIBRARY_EDITOR,action:o.eX.LibraryEditor.VIDEO_DETAILS,args:[this.model.get("id")]}}}},{key:"regions",value:function(){return{sources:{el:".sources-region",replaceElement:!0},badges:{el:".badges-region",replaceElement:!0},series:{el:".series-region",replaceElement:!0}}}},{key:"events",value:function(){return e={click:"onClick","click .video-title":"onClickMetadata"},t="onClickMetadata",(n="click .".concat(M.svgContainer))in e?Object.defineProperty(e,n,{value:t,enumerable:!0,configurable:!0,writable:!0}):e[n]=t,e;var e,n,t}},{key:"onClickMetadata",value:function(e){e.stopPropagation()}},{key:"getVideoUrl",value:function(){var e="videos/".concat(this.model.get("id"));return H.k.getMainProductUrl(this.options.config,e,e)}},{key:"renderSources",value:function(){if(c.M2.hasCustomLibrary(this.model)){var e=g.extend({},{model:this.model},this.options.sourceMetadataOptions);this.showChildView("sources",new R.V(e))}}},{key:"renderSeries",value:function(){c.M2.hasCustomLibrary(this.model)&&this.showChildView("series",new _.O({model:this.model,highlight:this.options.sourceMetadataOptions&&!!this.options.sourceMetadataOptions.highlight}))}},{key:"renderBadges",value:function(){this.showChildView("badges",new I({model:this.model,showRestrictionBadge:!0}))}},{key:"viewOptions",value:function(){return{styles:M,restrictionMessage:c.S9.getRestrictionTooltipMessage(this.model),lockSvg:v.Nj.getSvg(v.vn.Lock),linkToOnline:!c.M2.hasCustomLibrary(this.model),videoUrl:this.getVideoUrl(),openExternalSvg:v.Nj.getSvg(v.vn.NewWindow)}}},{key:"onRender",value:function(){this.renderSeries(),this.renderSources(),this.renderBadges()}}])&&K(n.prototype,t),Object.defineProperty(n,"prototype",{writable:!1}),a}(l.Q.Component),F=t(50028),$=t(5854),q=t(56914),J=t.n(q);function ee(e){return ee="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},ee(e)}function ne(e,n){for(var t=0;t<n.length;t++){var o=n[t];o.enumerable=o.enumerable||!1,o.configurable=!0,"value"in o&&(o.writable=!0),Object.defineProperty(e,o.key,o)}}function te(e,n){return te=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(e,n){return e.__proto__=n,e},te(e,n)}function oe(e,n){if(n&&("object"===ee(n)||"function"==typeof n))return n;if(void 0!==n)throw new TypeError("Derived constructors may only return object or undefined");return function(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}(e)}function re(e){return re=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(e){return e.__proto__||Object.getPrototypeOf(e)},re(e)}var ie=function(e){!function(e,n){if("function"!=typeof n&&null!==n)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(n&&n.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),Object.defineProperty(e,"prototype",{writable:!1}),n&&te(e,n)}(a,e);var n,t,r,i,l=(r=a,i=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(e){return!1}}(),function(){var e,n=re(r);if(i){var t=re(this).constructor;e=Reflect.construct(n,arguments,t)}else e=n.apply(this,arguments);return oe(this,e)});function a(e){return function(e,n){if(!(e instanceof n))throw new TypeError("Cannot call a class as a function")}(this,a),l.call(this,e)}return n=a,(t=[{key:"initialize",value:function(){this.bindListeners()}},{key:"bindListeners",value:function(){this.model.get("status")===F.X.Processing&&this.options.pendingItems&&(this.pendingItem||(this.listenTo(this.options.pendingItems,"update",this.mapPendingItem),this.mapPendingItem()))}},{key:"lang",get:function(){return"shared.videoItemProcessingMetadata"}},{key:"mapPendingItem",value:function(){this.pendingItem=this.options.pendingItems.get(this.model.get("id")),this.render(),this.pendingItem&&(this.stopListening(this.options.pendingItems,"update"),this.listenTo(this.pendingItem,"change:foregroundProgress change:backgroundProgress change:pendingProcessStatus",this.render))}},{key:"name",get:function(){return"VideoItemProcessingMetadataComponent"}},{key:"template",get:function(){return J()}},{key:"appLinks",get:function(){var e=this.model.series?this.model.series.id:"";return{".applink-series":{application:o.OV.LIBRARY_EDITOR,action:o.eX.LibraryEditor.FOLDER,args:[e]}}}},{key:"viewOptions",value:function(){return this.pendingItem?{status:$.S.getStatus(this.pendingItem),hasError:$.S.hasError(this.pendingItem),hasPendingItem:!0}:{hasPendingItem:!1}}}])&&ne(n.prototype,t),Object.defineProperty(n,"prototype",{writable:!1}),a}(l.Q.Component),le=t(61539),ae=t.n(le);function se(e){return se="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},se(e)}function ce(e,n){for(var t=0;t<n.length;t++){var o=n[t];o.enumerable=o.enumerable||!1,o.configurable=!0,"value"in o&&(o.writable=!0),Object.defineProperty(e,o.key,o)}}function ue(e,n){return ue=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(e,n){return e.__proto__=n,e},ue(e,n)}function pe(e,n){if(n&&("object"===se(n)||"function"==typeof n))return n;if(void 0!==n)throw new TypeError("Derived constructors may only return object or undefined");return function(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}(e)}function fe(e){return fe=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(e){return e.__proto__||Object.getPrototypeOf(e)},fe(e)}var de=function(e){!function(e,n){if("function"!=typeof n&&null!==n)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(n&&n.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),Object.defineProperty(e,"prototype",{writable:!1}),n&&ue(e,n)}(l,e);var n,t,o,r,i=(o=l,r=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(e){return!1}}(),function(){var e,n=fe(o);if(r){var t=fe(this).constructor;e=Reflect.construct(n,arguments,t)}else e=n.apply(this,arguments);return pe(this,e)});function l(e){return function(e,n){if(!(e instanceof n))throw new TypeError("Cannot call a class as a function")}(this,l),i.call(this,e)}return n=l,(t=[{key:"name",get:function(){return"VideoItemAwaitingReviewMetadataComponent"}},{key:"template",get:function(){return ae()}},{key:"events",value:function(){return{"click .video-title":"onClickMetadata","click .svg-container":"onClickMetadata"}}},{key:"regions",value:function(){return{badges:{el:".badges-region",replaceElement:!0},series:{el:".series-region",replaceElement:!0}}}},{key:"onClickMetadata",value:function(e){e.stopPropagation()}},{key:"getVideoUrl",value:function(){var e="videos/".concat(this.model.get("id"));return H.k.getMainProductUrl(this.options.config,e,e)}},{key:"getSeriesUrl",value:function(){if(this.model.series){var e="series/".concat(this.model.series.id);return H.k.getMainProductUrl(this.options.config,e,e)}}},{key:"renderBadges",value:function(){this.showChildView("badges",new I({model:this.model,showReviewBadge:!0}))}},{key:"renderSeries",value:function(){this.showChildView("series",new _.O({model:this.model,highlight:!1,seriesUrl:this.getSeriesUrl()}))}},{key:"viewOptions",value:function(){return{styles:M,videoUrl:this.getVideoUrl(),openExternalSvg:v.Nj.getSvg(v.vn.NewWindow)}}},{key:"onRender",value:function(){this.renderSeries(),this.renderBadges()}}])&&ce(n.prototype,t),Object.defineProperty(n,"prototype",{writable:!1}),l}(l.Q.Component),he=t(94559),ye=t.n(he),me={series:"IEOid"};function ge(e){return ge="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},ge(e)}function ve(e,n,t){return n in e?Object.defineProperty(e,n,{value:t,enumerable:!0,configurable:!0,writable:!0}):e[n]=t,e}function be(e,n){for(var t=0;t<n.length;t++){var o=n[t];o.enumerable=o.enumerable||!1,o.configurable=!0,"value"in o&&(o.writable=!0),Object.defineProperty(e,o.key,o)}}function we(e,n){return we=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(e,n){return e.__proto__=n,e},we(e,n)}function ke(e,n){if(n&&("object"===ge(n)||"function"==typeof n))return n;if(void 0!==n)throw new TypeError("Derived constructors may only return object or undefined");return function(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}(e)}function Oe(e){return Oe=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(e){return e.__proto__||Object.getPrototypeOf(e)},Oe(e)}var Ce=function(e){!function(e,n){if("function"!=typeof n&&null!==n)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(n&&n.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),Object.defineProperty(e,"prototype",{writable:!1}),n&&we(e,n)}(l,e);var n,t,o,r,i=(o=l,r=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(e){return!1}}(),function(){var e,n=Oe(o);if(r){var t=Oe(this).constructor;e=Reflect.construct(n,arguments,t)}else e=n.apply(this,arguments);return ke(this,e)});function l(e){return function(e,n){if(!(e instanceof n))throw new TypeError("Cannot call a class as a function")}(this,l),i.call(this,e)}return n=l,(t=[{key:"initialize",value:function(){this.listenTo(this.model,"change:restrictions",this.render)}},{key:"name",get:function(){return"VideoItemPastReleasesMetadataComponent"}},{key:"template",get:function(){return ye()}},{key:"lang",get:function(){return"shared.videoItemPastReleasesMetadata"}},{key:"behaviors",get:function(){return[{behaviorClass:b.H,selector:".tool-tip"}]}},{key:"regions",value:function(){return{badges:{el:".badges-region",replaceElement:!0},series:{el:".series-region",replaceElement:!0}}}},{key:"events",value:function(){var e;return ve(e={"click .video-title":"onClickMetadata"},"click .".concat(me.series),"onClickMetadata"),ve(e,"click .svg-container","onClickMetadata"),e}},{key:"onClickMetadata",value:function(e){e.stopPropagation()}},{key:"getVideoUrl",value:function(){var e="videos/".concat(this.model.get("id"));return H.k.getMainProductUrl(this.options.config,e,e)}},{key:"getSeriesUrl",value:function(){if(this.model.series){var e="series/".concat(this.model.series.id);return H.k.getMainProductUrl(this.options.config,e,e)}}},{key:"renderBadges",value:function(){this.showChildView("badges",new I({model:this.model}))}},{key:"renderSeries",value:function(){this.showChildView("series",new _.O({model:this.model,highlight:!1,seriesUrl:this.getSeriesUrl()}))}},{key:"viewOptions",value:function(){return{styles:g.extend({},M,me),videoUrl:this.getVideoUrl(),openExternalSvg:v.Nj.getSvg(v.vn.NewWindow),hasAdminRestriction:c.S9.hasAdminRestriction(this.model),restrictionMessage:c.S9.getRestrictionTooltipMessage(this.model),lockSvg:v.Nj.getSvg(v.vn.Lock)}}},{key:"onRender",value:function(){this.renderSeries(),this.renderBadges()}}])&&be(n.prototype,t),Object.defineProperty(n,"prototype",{writable:!1}),l}(l.Q.Component),Pe=t(47062),Ee=t.n(Pe);function Se(e){return Se="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},Se(e)}function xe(e,n){for(var t=0;t<n.length;t++){var o=n[t];o.enumerable=o.enumerable||!1,o.configurable=!0,"value"in o&&(o.writable=!0),Object.defineProperty(e,o.key,o)}}function je(e,n){return je=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(e,n){return e.__proto__=n,e},je(e,n)}function Ie(e,n){if(n&&("object"===Se(n)||"function"==typeof n))return n;if(void 0!==n)throw new TypeError("Derived constructors may only return object or undefined");return function(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}(e)}function Re(e){return Re=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(e){return e.__proto__||Object.getPrototypeOf(e)},Re(e)}var _e=function(e){!function(e,n){if("function"!=typeof n&&null!==n)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(n&&n.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),Object.defineProperty(e,"prototype",{writable:!1}),n&&je(e,n)}(a,e);var n,t,r,i,l=(r=a,i=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(e){return!1}}(),function(){var e,n=Re(r);if(i){var t=Re(this).constructor;e=Reflect.construct(n,arguments,t)}else e=n.apply(this,arguments);return Ie(this,e)});function a(e){return function(e,n){if(!(e instanceof n))throw new TypeError("Cannot call a class as a function")}(this,a),l.call(this,e)}return n=a,(t=[{key:"initialize",value:function(){this.listenTo(this.model,"change:restrictions",this.render)}},{key:"name",get:function(){return"VideoItemSearchMetadataComponent"}},{key:"template",get:function(){return Ee()}},{key:"behaviors",get:function(){return[{behaviorClass:b.H,selector:".tool-tip"}]}},{key:"appLinks",get:function(){return{".applink-show-video":{application:o.OV.LIBRARY_EDITOR,action:o.eX.LibraryEditor.VIDEO_DETAILS,args:[this.model.get("id")]}}}},{key:"regions",value:function(){return{sources:{el:".sources-region",replaceElement:!0},badges:{el:".badges-region",replaceElement:!0},series:{el:".series-region",replaceElement:!0}}}},{key:"events",value:function(){return e={click:"onClick"},t="onClickSvg",(n="click ".concat(M.svgContainer))in e?Object.defineProperty(e,n,{value:t,enumerable:!0,configurable:!0,writable:!0}):e[n]=t,e;var e,n,t}},{key:"onClickSvg",value:function(e){e.stopPropagation()}},{key:"getKeyPhrases",value:function(){var e=this;return c.m$.extractKeyPhrases(this.model.get("description"),this.model.get("_matchedWords"),100,2).map((function(n){return c.m$.wordsHighlighter(c.m$.escapeExpression(n),e.model.get("_matchedWords"))}))}},{key:"renderSources",value:function(){var e=g.extend({},{model:this.model},this.options.sourceMetadataOptions);this.showChildView("sources",new R.V(e))}},{key:"renderSeries",value:function(){this.showChildView("series",new _.O({model:this.model,highlight:this.options.sourceMetadataOptions&&!!this.options.sourceMetadataOptions.highlight}))}},{key:"renderBadges",value:function(){this.showChildView("badges",new I({model:this.model}))}},{key:"viewOptions",value:function(){return{styles:M,name:c.m$.wordsHighlighter(c.m$.escapeExpression(this.model.get("name")),this.model.get("_matchedWords")),keyPhrases:this.getKeyPhrases(),hasAdminRestriction:c.S9.hasAdminRestriction(this.model),restrictionMessage:c.S9.getRestrictionTooltipMessage(this.model),lockSvg:v.Nj.getSvg(v.vn.Lock)}}},{key:"onRender",value:function(){this.renderSeries(),this.renderSources(),this.renderBadges()}}])&&xe(n.prototype,t),Object.defineProperty(n,"prototype",{writable:!1}),a}(l.Q.Component),Te=t(48088),Ve=t(66882),Me=t(15900),De=t.n(Me),Ae={actions:"xyPxU",showPreview:"XMkZv"};function Le(e){return Le="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},Le(e)}function Be(e,n){for(var t=0;t<n.length;t++){var o=n[t];o.enumerable=o.enumerable||!1,o.configurable=!0,"value"in o&&(o.writable=!0),Object.defineProperty(e,o.key,o)}}function Ne(e,n){return Ne=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(e,n){return e.__proto__=n,e},Ne(e,n)}function Ue(e,n){if(n&&("object"===Le(n)||"function"==typeof n))return n;if(void 0!==n)throw new TypeError("Derived constructors may only return object or undefined");return function(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}(e)}function He(e){return He=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(e){return e.__proto__||Object.getPrototypeOf(e)},He(e)}var Qe=function(e){!function(e,n){if("function"!=typeof n&&null!==n)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(n&&n.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),Object.defineProperty(e,"prototype",{writable:!1}),n&&Ne(e,n)}(l,e);var n,t,o,r,i=(o=l,r=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(e){return!1}}(),function(){var e,n=He(o);if(r){var t=He(this).constructor;e=Reflect.construct(n,arguments,t)}else e=n.apply(this,arguments);return Ue(this,e)});function l(e){return function(e,n){if(!(e instanceof n))throw new TypeError("Cannot call a class as a function")}(this,l),i.call(this,e)}return n=l,(t=[{key:"name",get:function(){return"VideoItemActionsComponent"}},{key:"template",get:function(){return De()}},{key:"className",get:function(){return"d-flex h-100 flex-column align-items-end justify-content-between"}},{key:"lang",get:function(){return"shared._videoItemActions"}},{key:"regions",value:function(){return{videoActions:".video-actions-region"}}},{key:"events",value:function(){return e={},t="onClickShowPreview",(n="click .".concat(Ae.showPreview))in e?Object.defineProperty(e,n,{value:t,enumerable:!0,configurable:!0,writable:!0}):e[n]=t,e;var e,n,t}},{key:"onClickShowPreview",value:function(e){e.stopPropagation(),this.options.channelName&&Te.Radio.channel(this.options.channelName).trigger("click:show:preview")}},{key:"renderVideoActions",value:function(){this.showChildView("videoActions",new Ve.R(this.options.videoActionsOptions))}},{key:"viewOptions",value:function(){return{styles:Ae,previewDisplayed:this.options.previewDisplayed,previewSvg:v.Nj.getSvg(v.vn.Preview)}}},{key:"onRender",value:function(){this.renderVideoActions()}}])&&Be(n.prototype,t),Object.defineProperty(n,"prototype",{writable:!1}),l}(l.Q.Component),We=t(21679),ze=t(70065),Ke=t(52076),Ye=t(72108),Xe=t.n(Ye);function Ze(e){return Ze="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},Ze(e)}function Ge(e,n){for(var t=0;t<n.length;t++){var o=n[t];o.enumerable=o.enumerable||!1,o.configurable=!0,"value"in o&&(o.writable=!0),Object.defineProperty(e,o.key,o)}}function Fe(e,n){return Fe=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(e,n){return e.__proto__=n,e},Fe(e,n)}function $e(e,n){if(n&&("object"===Ze(n)||"function"==typeof n))return n;if(void 0!==n)throw new TypeError("Derived constructors may only return object or undefined");return function(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}(e)}function qe(e){return qe=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(e){return e.__proto__||Object.getPrototypeOf(e)},qe(e)}var Je=function(e){!function(e,n){if("function"!=typeof n&&null!==n)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(n&&n.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),Object.defineProperty(e,"prototype",{writable:!1}),n&&Fe(e,n)}(a,e);var n,t,r,i,l=(r=a,i=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(e){return!1}}(),function(){var e,n=qe(r);if(i){var t=qe(this).constructor;e=Reflect.construct(n,arguments,t)}else e=n.apply(this,arguments);return $e(this,e)});function a(e){return function(e,n){if(!(e instanceof n))throw new TypeError("Cannot call a class as a function")}(this,a),l.call(this,e)}return n=a,(t=[{key:"initialize",value:function(){this.restrictedVideoDataService=We.u.getInstance(o.Or.RestrictedVideo,this)}},{key:"name",get:function(){return"VideoItemReviewActionsComponent"}},{key:"template",get:function(){return Xe()}},{key:"lang",get:function(){return"shared.videoItemReviewActions"}},{key:"className",get:function(){return"d-flex h-100 flex-column align-items-end"}},{key:"events",value:function(){return e={"click .approve":"onClickApprove","click .applink-manage-video-access":"onClickManageVideoAccess"},t="onClickShowPreview",(n="click .".concat(Ae.showPreview))in e?Object.defineProperty(e,n,{value:t,enumerable:!0,configurable:!0,writable:!0}):e[n]=t,e;var e,n,t}},{key:"appLinks",get:function(){return{".applink-manage-video-access":{application:o.OV.CONTENT_UPDATES,action:o.eX.Shared.MANAGE_VIDEO_ACCESS,args:[this.model.get("id")]}}}},{key:"onClickApprove",value:function(e){e.stopPropagation(),this.restrictedVideoDataService.deleteVideoRestriction(this.model.get("id")),this.logApproveAction()}},{key:"onClickManageVideoAccess",value:function(e){e.stopPropagation(),this.logManageAccessAction()}},{key:"onClickShowPreview",value:function(e){e.stopPropagation(),this.options.channelName&&Te.Radio.channel(this.options.channelName).trigger("click:show:preview")}},{key:"logApproveAction",value:function(){var e={location:ze.LocationContext.AwaitingReviewVideoItem,actionType:ze.UserAction.Approve,entity:ze.EntityType.Video,descriptor:ze.OperationDescriptor.Single,workflowPhase:ze.WorkflowPhase.Complete},n={id:this.model.get("id")};Ke.k.logUserAction(n,e)}},{key:"logManageAccessAction",value:function(){var e={location:ze.LocationContext.AwaitingReviewVideoItem,actionType:ze.UserAction.SetAccess,entity:ze.EntityType.Video,workflowPhase:ze.WorkflowPhase.Start},n={id:this.model.get("id")};Ke.k.logUserAction(n,e)}},{key:"viewOptions",value:function(){return{styles:Ae,previewDisplayed:this.options.previewDisplayed,previewSvg:v.Nj.getSvg(v.vn.Preview)}}}])&&Ge(n.prototype,t),Object.defineProperty(n,"prototype",{writable:!1}),a}(l.Q.Component),en=t(66774),nn=t.n(en);function tn(e){return tn="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},tn(e)}function on(e,n){for(var t=0;t<n.length;t++){var o=n[t];o.enumerable=o.enumerable||!1,o.configurable=!0,"value"in o&&(o.writable=!0),Object.defineProperty(e,o.key,o)}}function rn(e,n){return rn=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(e,n){return e.__proto__=n,e},rn(e,n)}function ln(e,n){if(n&&("object"===tn(n)||"function"==typeof n))return n;if(void 0!==n)throw new TypeError("Derived constructors may only return object or undefined");return function(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}(e)}function an(e){return an=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(e){return e.__proto__||Object.getPrototypeOf(e)},an(e)}var sn=function(e){!function(e,n){if("function"!=typeof n&&null!==n)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(n&&n.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),Object.defineProperty(e,"prototype",{writable:!1}),n&&rn(e,n)}(a,e);var n,t,r,i,l=(r=a,i=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(e){return!1}}(),function(){var e,n=an(r);if(i){var t=an(this).constructor;e=Reflect.construct(n,arguments,t)}else e=n.apply(this,arguments);return ln(this,e)});function a(e){return function(e,n){if(!(e instanceof n))throw new TypeError("Cannot call a class as a function")}(this,a),l.call(this,e)}return n=a,(t=[{key:"name",get:function(){return"VideoItemVideoAccessComponent"}},{key:"template",get:function(){return nn()}},{key:"lang",get:function(){return"shared.videoItemVideoAccessActions"}},{key:"className",get:function(){return"d-flex h-100 flex-column align-items-end justify-content-between"}},{key:"appLinks",get:function(){return{".applink-manage-video-access":{application:o.OV.VIDEO_ACCESS,action:o.eX.Shared.MANAGE_VIDEO_ACCESS,args:[this.model.get("id")]}}}},{key:"events",value:function(){return e={"click .applink-manage-video-access":"onClickManageVideoAccess"},t="onClickShowPreview",(n="click .".concat(Ae.showPreview))in e?Object.defineProperty(e,n,{value:t,enumerable:!0,configurable:!0,writable:!0}):e[n]=t,e;var e,n,t}},{key:"onClickManageVideoAccess",value:function(e){e.stopPropagation(),this.logAction()}},{key:"onClickShowPreview",value:function(e){e.stopPropagation(),this.options.channelName&&Te.Radio.channel(this.options.channelName).trigger("click:show:preview")}},{key:"logAction",value:function(){var e={location:ze.LocationContext.VideoListItem,actionType:ze.UserAction.SetAccess,entity:ze.EntityType.Video,workflowPhase:ze.WorkflowPhase.Start},n={id:this.model.get("id")};Ke.k.logUserAction(n,e)}},{key:"viewOptions",value:function(){return{styles:Ae,previewDisplayed:this.options.previewDisplayed,previewSvg:v.Nj.getSvg(v.vn.Preview)}}}])&&on(n.prototype,t),Object.defineProperty(n,"prototype",{writable:!1}),a}(l.Q.Component),cn=t(23130),un=t(68058),pn=t(17422),fn=t(57857),dn=t(58085),hn=t(44391),yn=t(26457),mn=t(85597),gn=t.n(mn);function vn(e){return vn="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},vn(e)}function bn(e,n){for(var t=0;t<n.length;t++){var o=n[t];o.enumerable=o.enumerable||!1,o.configurable=!0,"value"in o&&(o.writable=!0),Object.defineProperty(e,o.key,o)}}function wn(e,n){return wn=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(e,n){return e.__proto__=n,e},wn(e,n)}function kn(e,n){if(n&&("object"===vn(n)||"function"==typeof n))return n;if(void 0!==n)throw new TypeError("Derived constructors may only return object or undefined");return function(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}(e)}function On(e){return On=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(e){return e.__proto__||Object.getPrototypeOf(e)},On(e)}var Cn=function(e){!function(e,n){if("function"!=typeof n&&null!==n)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(n&&n.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),Object.defineProperty(e,"prototype",{writable:!1}),n&&wn(e,n)}(a,e);var n,t,r,i,l=(r=a,i=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(e){return!1}}(),function(){var e,n=On(r);if(i){var t=On(this).constructor;e=Reflect.construct(n,arguments,t)}else e=n.apply(this,arguments);return kn(this,e)});function a(e){return function(e,n){if(!(e instanceof n))throw new TypeError("Cannot call a class as a function")}(this,a),l.call(this,e)}return n=a,(t=[{key:"name",get:function(){return"ExpandableTagListComponent"}},{key:"template",get:function(){return gn()}},{key:"lang",get:function(){return"libraryEditor.expandableTagList"}},{key:"defaults",get:function(){return{initialTagDisplayCount:5,expandedTagDisplayCount:10}}},{key:"appLinks",get:function(){return{".applink-video-details":{application:o.OV.LIBRARY_EDITOR,action:o.eX.LibraryEditor.VIDEO_DETAILS,args:[this.options.videoId]}}}},{key:"events",value:function(){return{"click .show-more-tags":"onClickShowMoreTags"}}},{key:"regions",value:function(){return{tags:{replaceElement:!0,el:".tags-region"}}}},{key:"onClickShowMoreTags",value:function(){this.showingMoreTags=!0,this.options.channelName&&Te.Radio.channel(this.options.channelName).trigger("show:more:tags"),this.render()}},{key:"getTagCollection",value:function(){var e=this.showingMoreTags?this.options.expandedTagDisplayCount:this.options.initialTagDisplayCount;return new dn.E(this.collection.slice(0,e))}},{key:"getExtraTagsInfo",value:function(){if(!this.showingMoreTags)return fn.T.getPhrase(this.lang,"extraTags",{smartCount:g.max([this.collection.length-this.options.initialTagDisplayCount,0])})}},{key:"renderTags",value:function(){var e=new hn.K({collection:this.getTagCollection(),behavior:yn.Dm.Link});this.showChildView("tags",e)}},{key:"viewOptions",value:function(){return{expandable:this.collection.length>this.options.initialTagDisplayCount&&!this.showingMoreTags,extraTagsText:this.getExtraTagsInfo(),moreTags:this.showingMoreTags&&this.collection.length>this.options.expandedTagDisplayCount}}},{key:"onRender",value:function(){this.renderTags()}}])&&bn(n.prototype,t),Object.defineProperty(n,"prototype",{writable:!1}),a}(l.Q.Component),Pn=t(15035),En=t.n(Pn),Sn={columnNames:"vMHcA",smallSvgContainer:"xw6kv"};function xn(e){return xn="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},xn(e)}function jn(e,n){for(var t=0;t<n.length;t++){var o=n[t];o.enumerable=o.enumerable||!1,o.configurable=!0,"value"in o&&(o.writable=!0),Object.defineProperty(e,o.key,o)}}function In(e,n){return In=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(e,n){return e.__proto__=n,e},In(e,n)}function Rn(e,n){if(n&&("object"===xn(n)||"function"==typeof n))return n;if(void 0!==n)throw new TypeError("Derived constructors may only return object or undefined");return function(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}(e)}function _n(e){return _n=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(e){return e.__proto__||Object.getPrototypeOf(e)},_n(e)}var Tn=function(e){!function(e,n){if("function"!=typeof n&&null!==n)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(n&&n.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),Object.defineProperty(e,"prototype",{writable:!1}),n&&In(e,n)}(a,e);var n,t,r,i,l=(r=a,i=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(e){return!1}}(),function(){var e,n=_n(r);if(i){var t=_n(this).constructor;e=Reflect.construct(n,arguments,t)}else e=n.apply(this,arguments);return Rn(this,e)});function a(e){return function(e,n){if(!(e instanceof n))throw new TypeError("Cannot call a class as a function")}(this,a),l.call(this,e)}return n=a,(t=[{key:"initialize",value:function(){this.listenTo(this.model,"change",this.render),this.listenTo(this.channelName,"show:more:tags",this.onClickShowMoreTags)}},{key:"name",get:function(){return"VideoItemPreviewComponent"}},{key:"template",get:function(){return En()}},{key:"lang",get:function(){return"shared.videoItemPreview"}},{key:"className",get:function(){return"row px-3 m-0"}},{key:"channelName",get:function(){return"".concat(this.name).concat(this.cid)}},{key:"appLinks",get:function(){return{".applink-video-details":{application:o.OV.LIBRARY_EDITOR,action:o.eX.LibraryEditor.VIDEO_DETAILS,args:[this.model.get("id")]}}}},{key:"behaviors",get:function(){return[{behaviorClass:b.H,selector:".tool-tip"}]}},{key:"regions",value:function(){return{partialLoadingContainer:{el:".content-container-region",replaceElement:!1,partialLoading:pn.LP.VideoItemPreview},description:".description-region",preview:".video-preview-region",tags:{replaceElement:!0,el:".tags-region"}}}},{key:"events",value:function(){return{click:"onClick"}}},{key:"onClick",value:function(e){e.stopPropagation()}},{key:"onClickShowMoreTags",value:function(){Te.Radio.channel(this.options.channelName).trigger("resize:preview")}},{key:"showTags",value:function(){return!(!this.model.tags||!this.model.tags.length)}},{key:"renderDescription",value:function(){if(this.model&&this.model.get("description")){var e=new cn.Z({model:this.model,highlighter:!0,size:cn.t.Small,truncate:!0});this.showChildView("description",e)}}},{key:"renderTags",value:function(){if(this.showTags()){var e=new Cn({collection:this.model.tags,videoId:this.model.id&&this.model.get("id"),channelName:this.channelName});this.showChildView("tags",e)}}},{key:"renderVideoPreview",value:function(){var e=new un.c({model:this.model,webPlayerUrl:this.options.webPlayerUrl,analyticsOptions:{location:ze.LocationContext.VideoItemPreview},currentUser:this.options.currentUser,channelName:this.options.channelName,createViewKey:this.options.createViewKey,playerApiUrl:this.options.playerApiUrl});this.showChildView("preview",e)}},{key:"getSubtitleLanguage",value:function(){if(!this.model.subtitles||!this.model.get("subtitles").length)return"";var e=g.uniq(this.model.get("subtitles").map((function(e){return e.get("language")})));return g.map(e,(function(e){return CVLanguages.getFullEnglishName(e)})).join(", ")}},{key:"getDetails",value:function(e){if(!this.model[e]||!this.model.get(e).length)return"";var n=this.model.get(e).length;return n>1?"".concat(n," ").concat(e):"".concat(fn.T.getPhrase(this.lang,"one")," ").concat(e.slice(0,-1))}},{key:"onBeforeRender",value:function(){return!(!this.model||!this.model.get("dataFetched"))||(Te.Radio.channel(this.options.collectionViewChannel).trigger("fetch:video:with:metadata",this.options.videoId),!(!this.model||!this.model.get("dataFetched"))&&void 0)}},{key:"viewOptions",value:function(){if(this.model&&this.model.get("dataFetched")){var e=this.model.get("duration");return{styles:Sn,ratingClass:this.model.rating&&w.uB.mapRatingToClass(this.model.rating.get("value")),showTags:this.showTags(),description:this.model.get("description"),duration:e&&c.T.ToDisplayDuration(e),chapters:this.getDetails("chapters"),interactives:this.model.interactives&&this.model.get("interactives").length,subtitles:this.getSubtitleLanguage(),resources:this.getDetails("resources"),links:this.getDetails("links"),externalLink:this.options.externalLink,openExternalSvg:v.Nj.getSvg(v.vn.NewWindow)}}}},{key:"onRender",value:function(){this.renderDescription(),this.renderTags(),this.renderVideoPreview()}}])&&jn(n.prototype,t),Object.defineProperty(n,"prototype",{writable:!1}),a}(l.Q.Component),Vn=t(71548),Mn=t.n(Vn);function Dn(e){return Dn="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},Dn(e)}function An(e,n){for(var t=0;t<n.length;t++){var o=n[t];o.enumerable=o.enumerable||!1,o.configurable=!0,"value"in o&&(o.writable=!0),Object.defineProperty(e,o.key,o)}}function Ln(e,n){return Ln=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(e,n){return e.__proto__=n,e},Ln(e,n)}function Bn(e,n){if(n&&("object"===Dn(n)||"function"==typeof n))return n;if(void 0!==n)throw new TypeError("Derived constructors may only return object or undefined");return function(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}(e)}function Nn(e){return Nn=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(e){return e.__proto__||Object.getPrototypeOf(e)},Nn(e)}var Un,Hn,Qn,Wn,zn,Kn,Yn,Xn,Zn,Gn=function(e){!function(e,n){if("function"!=typeof n&&null!==n)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(n&&n.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),Object.defineProperty(e,"prototype",{writable:!1}),n&&Ln(e,n)}(l,e);var n,t,o,r,i=(o=l,r=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(e){return!1}}(),function(){var e,n=Nn(o);if(r){var t=Nn(this).constructor;e=Reflect.construct(n,arguments,t)}else e=n.apply(this,arguments);return Bn(this,e)});function l(e){return function(e,n){if(!(e instanceof n))throw new TypeError("Cannot call a class as a function")}(this,l),i.call(this,e)}return n=l,(t=[{key:"initialize",value:function(){this.bindListeners()}},{key:"name",get:function(){return"VideoItemProcessingActionsComponent"}},{key:"template",get:function(){return Mn()}},{key:"lang",get:function(){return"shared.videoItemProcessingActions"}},{key:"className",get:function(){return"d-flex h-100 flex-column align-items-end justify-content-between"}},{key:"events",value:function(){return{"click .cancel":"onClickCancel","click .retry":"onClickRetry"}}},{key:"onClickCancel",value:function(){var e=this.pendingItem.get("video").get("name");c.Ce.generateDialog(e,this.options.channelName,"cancel:pending:item",this.pendingItem)}},{key:"onClickRetry",value:function(){Te.Radio.channel(this.options.channelName).trigger("retry:pending:item",this.pendingItem)}},{key:"bindListeners",value:function(){this.model.get("status")===F.X.Processing&&this.options.pendingItems&&(this.pendingItem||(this.listenTo(this.options.pendingItems,"update",this.mapPendingItem),this.mapPendingItem()))}},{key:"mapPendingItem",value:function(){this.pendingItem=this.options.pendingItems.get(this.model.get("id")),this.render(),this.pendingItem&&(this.stopListening(this.options.pendingItems,"update"),this.listenTo(this.pendingItem,"change:pendingProcessStatus",this.render))}},{key:"viewOptions",value:function(){return{hasError:$.S.hasError(this.pendingItem)}}},{key:"onBeforeRender",value:function(){return!!this.pendingItem}}])&&An(n.prototype,t),Object.defineProperty(n,"prototype",{writable:!1}),l}(l.Q.Component),Fn=t(53426),$n=t(40622),qn=t(58688);function Jn(e,n,t){return n in e?Object.defineProperty(e,n,{value:t,enumerable:!0,configurable:!0,writable:!0}):e[n]=t,e}var et=qn.U,nt=qn.H,tt=function(e){var n="videos/".concat(e.model.id);return{component:r.Z,options:{model:e.model,lazyload:e.shouldLazyLoadThumbnail(),thumbnailOptions:{size:i.h2.Small},href:H.k.getMainProductUrl(e.options.config,n,n),channelName:e.channelName}}},ot=function(e){return{component:Tn,options:{model:e.options.videoWithMetadata,videoId:e.model.id.toString(),channelName:e.channelName,collectionViewChannel:e.options.collectionViewChannel,webPlayerUrl:e.options.config.get("webPlayerUrl"),currentUser:e.options.currentUser,playerApiUrl:e.options.playerApiUrl,createViewKey:e.options.createViewKey}}},rt=function(e){var n="videos/".concat(e.model.id);return{component:Tn,options:{model:e.options.videoWithMetadata,videoId:e.model.id.toString(),channelName:e.channelName,collectionViewChannel:e.options.collectionViewChannel,webPlayerUrl:e.options.config.get("webPlayerUrl"),externalLink:H.k.getMainProductUrl(e.options.config,n,n),currentUser:e.options.currentUser,playerApiUrl:e.options.playerApiUrl,createViewKey:e.options.createViewKey}}},it={componentOptions:(Kn={},Jn(Kn,et.Base,(Un={},Jn(Un,nt.Checkbox,(function(e){return{component:m,options:{className:"d-inline-flex align-items-center mr-3 ".concat(Fn.Z.checkboxContainer),checkboxClassName:Fn.Z.checkbox,itemId:e.model.id,key:e.collectionIdentifier.toString(),type:$n.CheckboxTypes.VIDEO_LIST}}})),Jn(Un,nt.Thumbnail,(function(e){return{component:r.Z,options:{model:e.model,lazyload:e.shouldLazyLoadThumbnail(),thumbnailOptions:{size:i.h2.Small},appLink:{application:o.OV.LIBRARY_EDITOR,action:o.eX.LibraryEditor.VIDEO_DETAILS,args:[e.model.id]},channelName:e.channelName}}})),Jn(Un,nt.Metadata,(function(e){return{component:U,options:{model:e.model,sourceMetadataOptions:e.options.sourceMetadataOptions}}})),Jn(Un,nt.VideoActions,(function(e){return{component:Qe,options:{model:e.model,channelName:e.channelName,previewDisplayed:e.viewModel.get("previewOpen"),videoActionsOptions:{model:e.model,application:e.options.application,collectionIdentifier:e.options.collectionIdentifier,customerHasLocalCache:e.options.customerHasLocalCache,customerHasExchange:e.options.customerHasExchange,customerHasCustomLibrary:e.options.customerHasCustomLibrary,analyticsOptions:e.options.analyticsOptions,config:e.options.config,collectionSource:e.options.videoCollectionSource}}}})),Jn(Un,nt.VideoInfo,ot),Un)),Jn(Kn,et.AwaitingReview,(Hn={},Jn(Hn,nt.Thumbnail,tt),Jn(Hn,nt.Metadata,(function(e){return{component:de,options:{model:e.model,config:e.options.config}}})),Jn(Hn,nt.VideoActions,(function(e){return{component:Je,options:{model:e.model,channelName:e.channelName,previewDisplayed:e.viewModel.get("previewOpen"),analyticsOptions:e.options.analyticsOptions}}})),Jn(Hn,nt.VideoInfo,rt),Hn)),Jn(Kn,et.PastReleases,(Qn={},Jn(Qn,nt.Thumbnail,tt),Jn(Qn,nt.Metadata,(function(e){return{component:Ce,options:{model:e.model,config:e.options.config}}})),Jn(Qn,nt.VideoInfo,rt),Qn)),Jn(Kn,et.VideoAccess,(Wn={},Jn(Wn,nt.VideoActions,(function(e){return{component:sn,options:{model:e.model,channelName:e.channelName,previewDisplayed:e.viewModel.get("previewOpen"),analyticsOptions:e.options.analyticsOptions}}})),Jn(Wn,nt.Metadata,(function(e){return{component:G,options:{model:e.model,config:e.options.config,sourceMetadataOptions:{showFolder:!0,libraries:e.options.libraries}}}})),Jn(Wn,nt.VideoInfo,(function(e){return c.M2.hasCustomLibrary(e.model)?ot(e):rt(e)})),Wn)),Jn(Kn,et.ProcessingVideo,(zn={},Jn(zn,nt.Metadata,(function(e){return{component:ie,options:{model:e.model,pendingItems:e.options.pendingItems}}})),Jn(zn,nt.VideoActions,(function(e){return{component:Gn,options:{model:e.model,pendingItems:e.options.pendingItems,channelName:e.options.collectionViewChannel,analyticsOptions:e.options.analyticsOptions}}})),zn)),Jn(Kn,et.Draggable,{}),Jn(Kn,et.Search,Jn({},nt.Metadata,(function(e){return{component:_e,options:{model:e.model,sourceMetadataOptions:{showFolder:!0,highlight:!0,libraries:e.options.libraries}}}}))),Kn),onBeforeRender:(Zn={},Jn(Zn,et.Base,(Yn={},Jn(Yn,nt.Checkbox,(function(e){return!!e.options.allowBulk})),Jn(Yn,nt.VideoInfo,(function(e){return!!e.viewModel.get("previewOpen")})),Yn)),Jn(Zn,et.ProcessingVideo,(Xn={},Jn(Xn,nt.Checkbox,(function(){return!1})),Jn(Xn,nt.VideoInfo,(function(){return!1})),Xn)),Zn)}},23096:function(e,n,t){"use strict";t.d(n,{Y:function(){return U}});var o=t(31647),r=t(70065),i=t(52076),l=t(56371),a=t(48088),s=t(99249),c=t(25417),u=t(30305),p=t(61843),f=t(14898),d=t(58688),h=t(56704),y=t.n(h),m=t(53426);function g(e){return g="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},g(e)}function v(e,n,t){return n in e?Object.defineProperty(e,n,{value:t,enumerable:!0,configurable:!0,writable:!0}):e[n]=t,e}function b(e,n){for(var t=0;t<n.length;t++){var o=n[t];o.enumerable=o.enumerable||!1,o.configurable=!0,"value"in o&&(o.writable=!0),Object.defineProperty(e,o.key,o)}}function w(e,n){return w=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(e,n){return e.__proto__=n,e},w(e,n)}function k(e,n){if(n&&("object"===g(n)||"function"==typeof n))return n;if(void 0!==n)throw new TypeError("Derived constructors may only return object or undefined");return function(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}(e)}function O(e){return O=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(e){return e.__proto__||Object.getPrototypeOf(e)},O(e)}var C=function(e){!function(e,n){if("function"!=typeof n&&null!==n)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(n&&n.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),Object.defineProperty(e,"prototype",{writable:!1}),n&&w(e,n)}(C,e);var n,t,l,h,g=(l=C,h=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(e){return!1}}(),function(){var e,n=O(l);if(h){var t=O(this).constructor;e=Reflect.construct(n,arguments,t)}else e=n.apply(this,arguments);return k(this,e)});function C(e){return function(e,n){if(!(e instanceof n))throw new TypeError("Cannot call a class as a function")}(this,C),g.call(this,e)}return n=C,t=[{key:"initialize",value:function(){this.initViewModel(),this.listenTo(this.channelName,"thumbnail:load",this.onThumbnailLoad),this.listenTo(this.channelName,"click:show:preview",this.onClickTogglePreview),this.listenTo(this.options.collectionViewChannel,"close:preview",this.onCloseCollectionPreview)}},{key:"name",get:function(){return"VideoItemComponent"}},{key:"defaults",get:function(){return{componentType:d.U.Base,allowBulk:!1}}},{key:"behaviors",get:function(){return f.a.getBehaviors(this,this.options.componentType)}},{key:"template",get:function(){return y()}},{key:"channelName",get:function(){return p.N0.generateUniqueChannelName(this)}},{key:"getTypeClassName",value:function(){return this.options.componentType===d.U.ProcessingVideo?m.Z.processingVideo:""}},{key:"className",get:function(){var e="";return this.options.allowBulk&&(e+=" ".concat(m.Z.allowBulk)),this.options.componentType&&(e+=" ".concat(this.getTypeClassName())),e}},{key:"props",get:function(){return["collectionIdentifier"]}},{key:"elements",get:function(){return{"drag-selector":".drag-item",previewContainer:".".concat(m.Z.previewContainer)}}},{key:"regions",value:function(){var e;return v(e={},d.H.Checkbox,{replaceElement:!0,el:".bulk-checkbox-region"}),v(e,d.H.Thumbnail,".thumbnail-region"),v(e,d.H.Metadata,".metadata-region"),v(e,d.H.VideoActions,".video-actions-region"),v(e,d.H.VideoInfo,".video-info-region"),e}},{key:"events",value:function(){return{click:"onClick"}}},{key:"initViewModel",value:function(){this.viewModel=s.r.get("".concat(this.name,":").concat(this.model.get("id")),{previewOpen:!1})}},{key:"isClickable",value:function(){return this.options.componentType!==d.U.ProcessingVideo}},{key:"onThumbnailLoad",value:function(){this.thumbnailLoaded=!0}},{key:"onClick",value:function(){this.isClickable()&&this.onClickTogglePreview(!1)}},{key:"onClickTogglePreview",value:function(){var e=!(arguments.length>0&&void 0!==arguments[0])||arguments[0];a.Radio.channel(this.options.collectionViewChannel).trigger("close:preview",this.cid),this.togglePreview(!this.viewModel.get("previewOpen")),this.logTogglePreviewAction(e)}},{key:"onNavigateAway",value:function(){this.viewModel.set({previewOpen:!1})}},{key:"togglePreview",value:function(e){var n=this;if(this.viewModel.set({previewOpen:e}),e)return this.setPreviewHeight(),this.listenToOnce(c.G.SHELL,o.Q.EventNames.ROUTE,this.onNavigateAway),void this.render();this.stopListening(a.Radio.channel(c.G.SHELL),o.Q.EventNames.ROUTE),this.getUI("previewContainer").height(0),window.setTimeout((function(){return n.render()}),300)}},{key:"setPreviewHeight",value:function(){var e=this;this.listenToOnce(this.getRegion(d.H.VideoInfo),"show",(function(){var n=e.getRegion(d.H.VideoInfo).currentView;e.listenTo(n,"render",(function(){e.getUI("previewContainer").height(n.$el.outerHeight())})),e.listenTo(e.channelName,"resize:preview",(function(){window.setTimeout((function(){return e.getUI("previewContainer").height(n.$el.outerHeight())}),0)})),n.isRendered()&&e.getUI("previewContainer").height(n.$el.outerHeight())}))}},{key:"onCloseCollectionPreview",value:function(e){this.cid!==e&&this.viewModel.get("previewOpen")&&this.togglePreview(!1)}},{key:"shouldLazyLoadThumbnail",value:function(){return!!p.Vm.isLazyLoadSupported(u.v9)&&!this.thumbnailLoaded}},{key:"logTogglePreviewAction",value:function(e){var n=i.k.mergeOptions(this.options.analyticsOptions,{actionType:r.UserAction.Click,descriptor:r.ClickDescriptor.TogglePreview,workflowPhase:r.WorkflowPhase.Complete}),t={buttonClicked:e,show:this.viewModel.get("previewOpen")};i.k.logUserAction(t,n)}},{key:"viewOptions",value:function(){return{styles:m.Z,allowBulk:this.options.allowBulk,bulkPlaceholder:this.options.componentType===d.U.ProcessingVideo&&this.options.allowBulk,isClickable:this.isClickable(),isLastItem:this.options.isLastItem}}},{key:"onRender",value:function(){f.a.renderRegions(this,this.options.componentType)}},{key:"onAttach",value:function(){this.viewModel.get("previewOpen")&&this.togglePreview(!0)}}],t&&b(n.prototype,t),Object.defineProperty(n,"prototype",{writable:!1}),C}(o.Q.Component),P=t(10101),E=t(50028),S=t(17422),x=t(26457),j=t(30606),I=t.n(j);function R(e){return R="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},R(e)}function _(e,n){if(!(e instanceof n))throw new TypeError("Cannot call a class as a function")}function T(e,n){for(var t=0;t<n.length;t++){var o=n[t];o.enumerable=o.enumerable||!1,o.configurable=!0,"value"in o&&(o.writable=!0),Object.defineProperty(e,o.key,o)}}function V(e,n,t){return n&&T(e.prototype,n),t&&T(e,t),Object.defineProperty(e,"prototype",{writable:!1}),e}function M(e,n){if("function"!=typeof n&&null!==n)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(n&&n.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),Object.defineProperty(e,"prototype",{writable:!1}),n&&D(e,n)}function D(e,n){return D=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(e,n){return e.__proto__=n,e},D(e,n)}function A(e){var n=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(e){return!1}}();return function(){var t,o=B(e);if(n){var r=B(this).constructor;t=Reflect.construct(o,arguments,r)}else t=o.apply(this,arguments);return L(this,t)}}function L(e,n){if(n&&("object"===R(n)||"function"==typeof n))return n;if(void 0!==n)throw new TypeError("Derived constructors may only return object or undefined");return function(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}(e)}function B(e){return B=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(e){return e.__proto__||Object.getPrototypeOf(e)},B(e)}var N=function(e){M(t,e);var n=A(t);function t(e){return _(this,t),n.call(this,e)}return V(t,[{key:"name",get:function(){return"VideoItemListComponent"}},{key:"childView",get:function(){return C}},{key:"childViewOptions",get:function(){var e=this;return function(n,t){return{componentType:n.get("status")===E.X.Processing?d.U.ProcessingVideo:e.options.videoItemComponentType,videoWithMetadata:e.options.videosWithMetadata&&e.options.videosWithMetadata.get(n.get("id")),allowBulk:e.options.allowBulk,collectionIdentifier:e.options.collectionIdentifier,application:e.options.application,pendingItems:e.options.pendingItems,config:e.options.config,sourceMetadataOptions:e.options.sourceMetadataOptions,collectionViewChannel:e.options.collectionViewChannel,customerHasLocalCache:e.options.customerHasLocalCache,customerHasExchange:e.options.customerHasExchange,customerHasCustomLibrary:e.options.customerHasCustomLibrary,analyticsOptions:e.options.analyticsOptions,videoCollectionSource:e.options.videoCollectionSource,currentUser:e.options.currentUser,playerApiUrl:e.options.playerApiUrl,createViewKey:e.options.createViewKey,isLastItem:!e.options.hasCursors&&t===e.collection.length-1,libraries:e.options.libraries}}}}]),t}(o.Q.ComponentCollection),U=function(e){M(t,e);var n=A(t);function t(e){return _(this,t),n.call(this,e)}return V(t,[{key:"name",get:function(){return"VideoListView"}},{key:"props",get:function(){return["collectionIdentifier"]}},{key:"template",get:function(){return I()}},{key:"defaults",get:function(){return{videoItemComponentType:d.U.Base,allowBulk:!1,emptyState:S.ub.Default,videoCollectionSource:x.x_.Folder}}},{key:"behaviors",get:function(){var e=[{behaviorClass:P.Im,selector:".lazy-img",minBrowserSupportVersion:u.v9}];return this.options.showEmptyState&&e.push({behaviorClass:l.o,region:"videos",type:this.options.emptyStateType,componentOptions:this.options.emptyStateOptions,emptyStateComponents:u.aW}),e}},{key:"regions",value:function(){return{videos:".videos-region"}}},{key:"onRender",value:function(){var e=new N({collection:this.collection,videosWithMetadata:this.options.videosWithMetadata,videoItemComponentType:this.options.videoItemComponentType,allowBulk:this.options.allowBulk,collectionIdentifier:this.collectionIdentifier,application:this.options.application,pendingItems:this.options.pendingItems,config:this.options.config,sourceMetadataOptions:this.options.sourceMetadataOptions,collectionViewChannel:this.options.collectionViewChannel,customerHasLocalCache:this.options.customerHasLocalCache,customerHasExchange:this.options.customerHasExchange,customerHasCustomLibrary:this.options.customerHasCustomLibrary,analyticsOptions:i.k.mergeOptions(this.options.analyticsOptions,{location:r.LocationContext.VideoListItem,entity:r.EntityType.Video}),videoCollectionSource:this.options.videoCollectionSource,currentUser:this.options.currentUser,playerApiUrl:this.options.playerApiUrl,createViewKey:this.options.createViewKey,hasCursors:this.options.hasCursors,libraries:this.options.libraries});this.showChildView("videos",e)}}]),t}(o.Q.Component)},62699:function(e,n,t){var o=t(32227);e.exports=(o.default||o).template({compiler:[8,">= 4.3.0"],main:function(e,n,t,o,r){e.propertyIsEnumerable;var i,l=e.lambda,a=e.escapeExpression;return'<span class="'+a(l(null!=(i=null!=(i=null!=n?n.options:n)?i.styles:i)?i.svgContainer:i,n))+' mr-2">'+(null!=(i=l(null!=(i=null!=n?n.options:n)?i.svg:i,n))?i:"")+'</span>\r\n<span class="'+a(l(null!=(i=null!=(i=null!=n?n.options:n)?i.styles:i)?i.dragText:i,n))+'">'+a(l(null!=(i=null!=n?n.options:n)?i.text:i,n))+"</span>"},useData:!0})},85597:function(e,n,t){var o=t(32227);e.exports=(o.default||o).template({1:function(e,n,t,o,r){var i;return e.propertyIsEnumerable,' <a class="info-link show-more-tags">'+e.escapeExpression(e.lambda(null!=(i=null!=n?n.options:n)?i.extraTagsText:i,n))+"</a>\r\n"},3:function(e,n,t,o,r){return e.propertyIsEnumerable,' <a class="info-link applink-video-details">'+e.escapeExpression((t.lang||n&&n.lang||e.hooks.helperMissing).call(null!=n?n:e.nullContext||{},"viewAllTags",{name:"lang",hash:{},data:r}))+"</a>\r\n"},compiler:[8,">= 4.3.0"],main:function(e,n,t,o,r){e.propertyIsEnumerable;var i,l=null!=n?n:e.nullContext||{};return'<div class="tags-region"></div>\r\n\r\n'+(null!=(i=t.if.call(l,null!=(i=null!=n?n.options:n)?i.expandable:i,{name:"if",hash:{},fn:e.program(1,r,0),inverse:e.noop,data:r}))?i:"")+(null!=(i=t.if.call(l,null!=(i=null!=n?n.options:n)?i.moreTags:i,{name:"if",hash:{},fn:e.program(3,r,0),inverse:e.noop,data:r}))?i:"")},useData:!0})},66246:function(e,n,t){var o=t(32227);e.exports=(o.default||o).template({1:function(e,n,t,o,r){return" cursor-pointer"},3:function(e,n,t,o,r){return"checked"},5:function(e,n,t,o,r){return"disabled"},compiler:[8,">= 4.3.0"],main:function(e,n,t,o,r){e.propertyIsEnumerable;var i,l=e.lambda,a=e.escapeExpression,s=null!=n?n:e.nullContext||{};return'<div class="custom-control custom-checkbox '+a(l(null!=(i=null!=n?n.options:n)?i.checkboxClassName:i,n))+'">\r\n <input name="checkbox-'+a(l(null!=(i=null!=n?n.options:n)?i.id:i,n))+'" id="checkbox-'+a(l(null!=(i=null!=n?n.options:n)?i.id:i,n))+'" type="checkbox" class="custom-control-input'+(null!=(i=t.unless.call(s,null!=(i=null!=n?n.options:n)?i.disabled:i,{name:"unless",hash:{},fn:e.program(1,r,0),inverse:e.noop,data:r}))?i:"")+'" '+(null!=(i=t.if.call(s,null!=(i=null!=n?n.options:n)?i.checked:i,{name:"if",hash:{},fn:e.program(3,r,0),inverse:e.noop,data:r}))?i:"")+" "+(null!=(i=t.if.call(s,null!=(i=null!=n?n.options:n)?i.disabled:i,{name:"if",hash:{},fn:e.program(5,r,0),inverse:e.noop,data:r}))?i:"")+' />\r\n <label class="custom-control-label'+(null!=(i=t.unless.call(s,null!=(i=null!=n?n.options:n)?i.disabled:i,{name:"unless",hash:{},fn:e.program(1,r,0),inverse:e.noop,data:r}))?i:"")+'" for="checkbox-'+a(l(null!=(i=null!=n?n.options:n)?i.id:i,n))+'"> </label>\r\n</div>'},useData:!0})},15035:function(e,n,t){var o=t(32227);e.exports=(o.default||o).template({1:function(e,n,t,o,r){return e.propertyIsEnumerable," <p>"+e.escapeExpression((t.lang||n&&n.lang||e.hooks.helperMissing).call(null!=n?n:e.nullContext||{},"noDescription",{name:"lang",hash:{},data:r}))+"</p>\r\n"},3:function(e,n,t,o,r){return' <div class="description-region"></div>\r\n'},5:function(e,n,t,o,r){e.propertyIsEnumerable;var i,l=e.lambda,a=e.escapeExpression;return' <div class="col-6 pb-1 '+a(l(null!=(i=null!=(i=null!=n?n.options:n)?i.styles:i)?i.columnNames:i,n))+'">'+a((t.lang||n&&n.lang||e.hooks.helperMissing).call(null!=n?n:e.nullContext||{},"rating",{name:"lang",hash:{},data:r}))+'</div>\r\n <div class="col-6 mb-0 pb-1">\r\n <span class="badge p-1 text-white tool-tip '+a(l(null!=(i=null!=n?n.options:n)?i.ratingClass:i,n))+'" title="'+a(l(null!=(i=null!=n?n.rating:n)?i.name:i,n))+'">'+a(l(null!=(i=null!=n?n.rating:n)?i.code:i,n))+"</span>\r\n </div>\r\n"},7:function(e,n,t,o,r){e.propertyIsEnumerable;var i,l,a=e.escapeExpression,s=null!=n?n:e.nullContext||{},c=e.hooks.helperMissing;return' <div class="col-6 py-1 '+a(e.lambda(null!=(i=null!=(i=null!=n?n.options:n)?i.styles:i)?i.columnNames:i,n))+'">'+a((t.lang||n&&n.lang||c).call(s,"productionYear",{name:"lang",hash:{},data:r}))+'</div>\r\n <p class="col-6 mb-0 py-1">'+a("function"==typeof(l=null!=(l=t.productionYear||(null!=n?n.productionYear:n))?l:c)?l.call(s,{name:"productionYear",hash:{},data:r}):l)+"</p>\r\n"},9:function(e,n,t,o,r){e.propertyIsEnumerable;var i,l=e.lambda,a=e.escapeExpression,s=null!=n?n:e.nullContext||{};return' <div class="col-6 py-1 '+a(l(null!=(i=null!=(i=null!=n?n.options:n)?i.styles:i)?i.columnNames:i,n))+'">'+a((t.lang||n&&n.lang||e.hooks.helperMissing).call(s,"chapters",{name:"lang",hash:{},data:r}))+'</div>\r\n <a\r\n class="col-6 info-link mb-0 py-1 '+(null!=(i=t.unless.call(s,null!=(i=null!=n?n.options:n)?i.externalLink:i,{name:"unless",hash:{},fn:e.program(10,r,0),inverse:e.noop,data:r}))?i:"")+'"\r\n'+(null!=(i=t.if.call(s,null!=(i=null!=n?n.options:n)?i.externalLink:i,{name:"if",hash:{},fn:e.program(12,r,0),inverse:e.noop,data:r}))?i:"")+" >\r\n "+a(l(null!=(i=null!=n?n.options:n)?i.chapters:i,n))+"\r\n "+(null!=(i=t.if.call(s,null!=(i=null!=n?n.options:n)?i.externalLink:i,{name:"if",hash:{},fn:e.program(14,r,0),inverse:e.noop,data:r}))?i:"")+"\r\n </a>\r\n"},10:function(e,n,t,o,r){return"applink-video-details"},12:function(e,n,t,o,r){var i;return e.propertyIsEnumerable,' href="'+e.escapeExpression(e.lambda(null!=(i=null!=n?n.options:n)?i.externalLink:i,n))+'"\r\n target="_blank"\r\n'},14:function(e,n,t,o,r){e.propertyIsEnumerable;var i,l=e.lambda;return'<div class="d-inline-block '+e.escapeExpression(l(null!=(i=null!=(i=null!=n?n.options:n)?i.styles:i)?i.smallSvgContainer:i,n))+'">'+(null!=(i=l(null!=(i=null!=n?n.options:n)?i.openExternalSvg:i,n))?i:"")+"</div>"},16:function(e,n,t,o,r){e.propertyIsEnumerable;var i,l=e.lambda,a=e.escapeExpression;return' <div class="col-6 py-1 '+a(l(null!=(i=null!=(i=null!=n?n.options:n)?i.styles:i)?i.columnNames:i,n))+'">'+a((t.lang||n&&n.lang||e.hooks.helperMissing).call(null!=n?n:e.nullContext||{},"interactives",{name:"lang",hash:{},data:r}))+'</div>\r\n <p class="col-6 mb-0 py-1">'+a(l(null!=(i=null!=n?n.options:n)?i.interactives:i,n))+"</p>\r\n"},18:function(e,n,t,o,r){e.propertyIsEnumerable;var i,l=e.lambda,a=e.escapeExpression;return' <div class="col-6 py-1 '+a(l(null!=(i=null!=(i=null!=n?n.options:n)?i.styles:i)?i.columnNames:i,n))+'">'+a((t.lang||n&&n.lang||e.hooks.helperMissing).call(null!=n?n:e.nullContext||{},"subtitles",{name:"lang",hash:{},data:r}))+'</div>\r\n <p class="col-6 mb-0 py-1">'+a(l(null!=(i=null!=n?n.options:n)?i.subtitles:i,n))+"</p>\r\n"},20:function(e,n,t,o,r){e.propertyIsEnumerable;var i,l=e.lambda,a=e.escapeExpression,s=null!=n?n:e.nullContext||{};return' <div class="col-6 py-1 '+a(l(null!=(i=null!=(i=null!=n?n.options:n)?i.styles:i)?i.columnNames:i,n))+'">'+a((t.lang||n&&n.lang||e.hooks.helperMissing).call(s,"resources",{name:"lang",hash:{},data:r}))+'</div>\r\n <a\r\n class="col-6 info-link mb-0 py-1 '+(null!=(i=t.unless.call(s,null!=(i=null!=n?n.options:n)?i.externalLink:i,{name:"unless",hash:{},fn:e.program(10,r,0),inverse:e.noop,data:r}))?i:"")+'"\r\n'+(null!=(i=t.if.call(s,null!=(i=null!=n?n.options:n)?i.externalLink:i,{name:"if",hash:{},fn:e.program(12,r,0),inverse:e.noop,data:r}))?i:"")+" >\r\n "+a(l(null!=(i=null!=n?n.options:n)?i.resources:i,n))+"\r\n "+(null!=(i=t.if.call(s,null!=(i=null!=n?n.options:n)?i.externalLink:i,{name:"if",hash:{},fn:e.program(14,r,0),inverse:e.noop,data:r}))?i:"")+"\r\n </a>\r\n"},22:function(e,n,t,o,r){e.propertyIsEnumerable;var i,l=e.lambda,a=e.escapeExpression,s=null!=n?n:e.nullContext||{};return' <div class="col-6 py-1 '+a(l(null!=(i=null!=(i=null!=n?n.options:n)?i.styles:i)?i.columnNames:i,n))+'">'+a((t.lang||n&&n.lang||e.hooks.helperMissing).call(s,"links",{name:"lang",hash:{},data:r}))+'</div>\r\n <a\r\n class="col-6 info-link mb-0 py-1 '+(null!=(i=t.unless.call(s,null!=(i=null!=n?n.options:n)?i.externalLink:i,{name:"unless",hash:{},fn:e.program(10,r,0),inverse:e.noop,data:r}))?i:"")+'"\r\n'+(null!=(i=t.if.call(s,null!=(i=null!=n?n.options:n)?i.externalLink:i,{name:"if",hash:{},fn:e.program(12,r,0),inverse:e.noop,data:r}))?i:"")+" >\r\n "+a(l(null!=(i=null!=n?n.options:n)?i.links:i,n))+"\r\n "+(null!=(i=t.if.call(s,null!=(i=null!=n?n.options:n)?i.externalLink:i,{name:"if",hash:{},fn:e.program(14,r,0),inverse:e.noop,data:r}))?i:"")+"\r\n </a>\r\n"},24:function(e,n,t,o,r){e.propertyIsEnumerable;var i,l=e.escapeExpression;return' <div class="py-1 '+l(e.lambda(null!=(i=null!=(i=null!=n?n.options:n)?i.styles:i)?i.columnNames:i,n))+'">'+l((t.lang||n&&n.lang||e.hooks.helperMissing).call(null!=n?n:e.nullContext||{},"tags",{name:"lang",hash:{},data:r}))+'</div>\r\n <div class="tags-region"></div>\r\n <div class="col-12"> </div>\r\n'},26:function(e,n,t,o,r){e.propertyIsEnumerable;var i,l=e.lambda,a=e.escapeExpression;return' <a href="'+a(l(null!=(i=null!=n?n.options:n)?i.externalLink:i,n))+'" target="_blank" class="info-link d-inline-block pt-3 '+a(l(null!=(i=null!=(i=null!=n?n.options:n)?i.styles:i)?i.columnNames:i,n))+'">\r\n '+a((t.lang||n&&n.lang||e.hooks.helperMissing).call(null!=n?n:e.nullContext||{},"goToVideo",{name:"lang",hash:{},data:r}))+'\r\n <div class="d-inline-block svg-container">'+(null!=(i=l(null!=(i=null!=n?n.options:n)?i.openExternalSvg:i,n))?i:"")+"</div>\r\n </a>\r\n"},28:function(e,n,t,o,r){e.propertyIsEnumerable;var i,l=e.escapeExpression;return' <a class="info-link applink-video-details d-inline-block pt-3 '+l(e.lambda(null!=(i=null!=(i=null!=n?n.options:n)?i.styles:i)?i.columnNames:i,n))+'">'+l((t.lang||n&&n.lang||e.hooks.helperMissing).call(null!=n?n:e.nullContext||{},"viewFullDetails",{name:"lang",hash:{},data:r}))+"</a>\r\n"},compiler:[8,">= 4.3.0"],main:function(e,n,t,o,r){e.propertyIsEnumerable;var i,l=e.lambda,a=e.escapeExpression,s=null!=n?n:e.nullContext||{},c=e.hooks.helperMissing;return'<div class="content-container-region row w-100 pl-0">\r\n <div class="col-8 pt-3">\r\n <p class="h5 '+a(l(null!=(i=null!=(i=null!=n?n.options:n)?i.styles:i)?i.columnNames:i,n))+'">'+a((t.lang||n&&n.lang||c).call(s,"description",{name:"lang",hash:{},data:r}))+"</p>\r\n \r\n"+(null!=(i=t.unless.call(s,null!=(i=null!=n?n.options:n)?i.description:i,{name:"unless",hash:{},fn:e.program(1,r,0),inverse:e.program(3,r,0),data:r}))?i:"")+' \r\n <div class="video-preview-region col-7 my-3 pl-0"></div>\r\n </div>\r\n <div class="col-4 my-3 pr-0 pl-3">\r\n <p class="h5 '+a(l(null!=(i=null!=(i=null!=n?n.options:n)?i.styles:i)?i.columnNames:i,n))+'">'+a((t.lang||n&&n.lang||c).call(s,"details",{name:"lang",hash:{},data:r}))+'</p>\r\n\r\n <div class="row">\r\n'+(null!=(i=t.if.call(s,null!=(i=null!=n?n.rating:n)?i.code:i,{name:"if",hash:{},fn:e.program(5,r,0),inverse:e.noop,data:r}))?i:"")+"\r\n"+(null!=(i=t.if.call(s,null!=n?n.productionYear:n,{name:"if",hash:{},fn:e.program(7,r,0),inverse:e.noop,data:r}))?i:"")+'\r\n <div class="col-6 py-1 '+a(l(null!=(i=null!=(i=null!=n?n.options:n)?i.styles:i)?i.columnNames:i,n))+'">'+a((t.lang||n&&n.lang||c).call(s,"duration",{name:"lang",hash:{},data:r}))+'</div>\r\n <p class="col-6 mb-0 py-1">'+a(l(null!=(i=null!=n?n.options:n)?i.duration:i,n))+"</p>\r\n\r\n"+(null!=(i=t.if.call(s,null!=(i=null!=n?n.options:n)?i.chapters:i,{name:"if",hash:{},fn:e.program(9,r,0),inverse:e.noop,data:r}))?i:"")+"\r\n"+(null!=(i=t.if.call(s,null!=(i=null!=n?n.options:n)?i.interactives:i,{name:"if",hash:{},fn:e.program(16,r,0),inverse:e.noop,data:r}))?i:"")+"\r\n"+(null!=(i=t.if.call(s,null!=(i=null!=n?n.options:n)?i.subtitles:i,{name:"if",hash:{},fn:e.program(18,r,0),inverse:e.noop,data:r}))?i:"")+"\r\n"+(null!=(i=t.if.call(s,null!=(i=null!=n?n.options:n)?i.resources:i,{name:"if",hash:{},fn:e.program(20,r,0),inverse:e.noop,data:r}))?i:"")+"\r\n"+(null!=(i=t.if.call(s,null!=(i=null!=n?n.options:n)?i.links:i,{name:"if",hash:{},fn:e.program(22,r,0),inverse:e.noop,data:r}))?i:"")+" </div>\r\n\r\n"+(null!=(i=t.if.call(s,null!=(i=null!=n?n.options:n)?i.showTags:i,{name:"if",hash:{},fn:e.program(24,r,0),inverse:e.noop,data:r}))?i:"")+"\r\n"+(null!=(i=t.if.call(s,null!=(i=null!=n?n.options:n)?i.externalLink:i,{name:"if",hash:{},fn:e.program(26,r,0),inverse:e.program(28,r,0),data:r}))?i:"")+" </div>\r\n</div>"},useData:!0})},56704:function(e,n,t){var o=t(32227);e.exports=(o.default||o).template({1:function(e,n,t,o,r){return" cursor-pointer"},3:function(e,n,t,o,r){return" rounded-bottom"},5:function(e,n,t,o,r){var i;return e.propertyIsEnumerable,' <div class="bulk-checkbox-region '+(null!=(i=t.if.call(null!=n?n:e.nullContext||{},null!=(i=null!=n?n.options:n)?i.bulkPlaceholder:i,{name:"if",hash:{},fn:e.program(6,r,0),inverse:e.noop,data:r}))?i:"")+'"></div>\r\n'},6:function(e,n,t,o,r){var i;return e.propertyIsEnumerable,e.escapeExpression(e.lambda(null!=(i=null!=(i=null!=n?n.options:n)?i.styles:i)?i.bulkPlaceholder:i,n))},compiler:[8,">= 4.3.0"],main:function(e,n,t,o,r){e.propertyIsEnumerable;var i,l=e.lambda,a=e.escapeExpression,s=null!=n?n:e.nullContext||{};return'<div class="d-flex justify-content-between align-items-stretch p-3 drag-item '+a(l(null!=(i=null!=(i=null!=n?n.options:n)?i.styles:i)?i.videoItem:i,n))+(null!=(i=t.if.call(s,null!=(i=null!=n?n.options:n)?i.isClickable:i,{name:"if",hash:{},fn:e.program(1,r,0),inverse:e.noop,data:r}))?i:"")+(null!=(i=t.if.call(s,null!=(i=null!=n?n.options:n)?i.isLastItem:i,{name:"if",hash:{},fn:e.program(3,r,0),inverse:e.noop,data:r}))?i:"")+'">\r\n'+(null!=(i=t.if.call(s,null!=(i=null!=n?n.options:n)?i.allowBulk:i,{name:"if",hash:{},fn:e.program(5,r,0),inverse:e.noop,data:r}))?i:"")+' <div class="thumbnail-region d-inline-block '+a(l(null!=(i=null!=(i=null!=n?n.options:n)?i.styles:i)?i.thumbnailContainer:i,n))+'"></div>\r\n <div class="metadata-region d-inline-block px-3 '+a(l(null!=(i=null!=(i=null!=n?n.options:n)?i.styles:i)?i.metaContainer:i,n))+'"></div>\r\n <div class="video-actions-region d-inline-block '+a(l(null!=(i=null!=(i=null!=n?n.options:n)?i.styles:i)?i.actionsContainer:i,n))+'"></div>\r\n</div>\r\n<div class="video-info-region '+a(l(null!=(i=null!=(i=null!=n?n.options:n)?i.styles:i)?i.previewContainer:i,n))+'"></div>'},useData:!0})},15900:function(e,n,t){var o=t(32227);e.exports=(o.default||o).template({1:function(e,n,t,o,r){return e.propertyIsEnumerable,e.escapeExpression((t.lang||n&&n.lang||e.hooks.helperMissing).call(null!=n?n:e.nullContext||{},"hide",{name:"lang",hash:{},data:r}))},3:function(e,n,t,o,r){return e.propertyIsEnumerable,e.escapeExpression((t.lang||n&&n.lang||e.hooks.helperMissing).call(null!=n?n:e.nullContext||{},"show",{name:"lang",hash:{},data:r}))},compiler:[8,">= 4.3.0"],main:function(e,n,t,o,r){e.propertyIsEnumerable;var i,l=e.lambda,a=e.escapeExpression,s=null!=n?n:e.nullContext||{};return'<div class="video-actions-region row no-gutters video-item-actions '+a(l(null!=(i=null!=(i=null!=n?n.options:n)?i.styles:i)?i.actions:i,n))+'"></div>\r\n<div class="row no-gutters cursor-pointer video-item-show-preview '+a(l(null!=(i=null!=(i=null!=n?n.options:n)?i.styles:i)?i.showPreview:i,n))+'">\r\n <span class="svg-container">'+(null!=(i=l(null!=(i=null!=n?n.options:n)?i.previewSvg:i,n))?i:"")+"</span>\r\n "+(null!=(i=t.if.call(s,null!=(i=null!=n?n.options:n)?i.previewDisplayed:i,{name:"if",hash:{},fn:e.program(1,r,0),inverse:e.program(3,r,0),data:r}))?i:"")+" "+a((t.lang||n&&n.lang||e.hooks.helperMissing).call(s,"preview",{name:"lang",hash:{},data:r}))+"\r\n</div>"},useData:!0})},71548:function(e,n,t){var o=t(32227);e.exports=(o.default||o).template({1:function(e,n,t,o,r){return e.propertyIsEnumerable,' <button class="btn btn-outline-dark retry">'+e.escapeExpression((t.lang||n&&n.lang||e.hooks.helperMissing).call(null!=n?n:e.nullContext||{},"retry",{name:"lang",hash:{},data:r}))+"</button>\r\n"},compiler:[8,">= 4.3.0"],main:function(e,n,t,o,r){e.propertyIsEnumerable;var i,l=null!=n?n:e.nullContext||{};return"<div>\r\n"+(null!=(i=t.if.call(l,null!=(i=null!=n?n.options:n)?i.hasError:i,{name:"if",hash:{},fn:e.program(1,r,0),inverse:e.noop,data:r}))?i:"")+' <button class="btn btn-outline-dark cancel">'+e.escapeExpression((t.lang||n&&n.lang||e.hooks.helperMissing).call(l,"cancel",{name:"lang",hash:{},data:r}))+"</button>\r\n</div>\r\n"},useData:!0})},72108:function(e,n,t){var o=t(32227);e.exports=(o.default||o).template({1:function(e,n,t,o,r){return e.propertyIsEnumerable,e.escapeExpression((t.lang||n&&n.lang||e.hooks.helperMissing).call(null!=n?n:e.nullContext||{},"hide",{name:"lang",hash:{},data:r}))},3:function(e,n,t,o,r){return e.propertyIsEnumerable,e.escapeExpression((t.lang||n&&n.lang||e.hooks.helperMissing).call(null!=n?n:e.nullContext||{},"show",{name:"lang",hash:{},data:r}))},compiler:[8,">= 4.3.0"],main:function(e,n,t,o,r){e.propertyIsEnumerable;var i,l=null!=n?n:e.nullContext||{},a=e.hooks.helperMissing,s=e.escapeExpression,c=e.lambda;return'<button class="approve d-flex btn btn btn-outline-dark" type="button">'+s((t.lang||n&&n.lang||a).call(l,"approve",{name:"lang",hash:{},data:r}))+'</button>\r\n<a class="applink-manage-video-access cursor-pointer hover-text-underline py-1">'+(null!=(i=(t.lang||n&&n.lang||a).call(l,"manageAccess",{name:"lang",hash:{},data:r}))?i:"")+'</a> \r\n<div class="row no-gutters cursor-pointer video-item-show-preview '+s(c(null!=(i=null!=(i=null!=n?n.options:n)?i.styles:i)?i.showPreview:i,n))+'"> \r\n <span class="svg-container">'+(null!=(i=c(null!=(i=null!=n?n.options:n)?i.previewSvg:i,n))?i:"")+"</span> \r\n "+(null!=(i=t.if.call(l,null!=(i=null!=n?n.options:n)?i.previewDisplayed:i,{name:"if",hash:{},fn:e.program(1,r,0),inverse:e.program(3,r,0),data:r}))?i:"")+" "+s((t.lang||n&&n.lang||a).call(l,"preview",{name:"lang",hash:{},data:r}))+"\r\n</div> "},useData:!0})},66774:function(e,n,t){var o=t(32227);e.exports=(o.default||o).template({1:function(e,n,t,o,r){return e.propertyIsEnumerable,e.escapeExpression((t.lang||n&&n.lang||e.hooks.helperMissing).call(null!=n?n:e.nullContext||{},"hide",{name:"lang",hash:{},data:r}))},3:function(e,n,t,o,r){return e.propertyIsEnumerable,e.escapeExpression((t.lang||n&&n.lang||e.hooks.helperMissing).call(null!=n?n:e.nullContext||{},"show",{name:"lang",hash:{},data:r}))},compiler:[8,">= 4.3.0"],main:function(e,n,t,o,r){e.propertyIsEnumerable;var i,l=null!=n?n:e.nullContext||{},a=e.hooks.helperMissing,s=e.escapeExpression,c=e.lambda;return'<button class="applink-manage-video-access d-flex btn btn-outline-dark" type="button">'+s((t.lang||n&&n.lang||a).call(l,"manageAccess",{name:"lang",hash:{},data:r}))+'</button>\r\n<div class="row no-gutters cursor-pointer video-item-show-preview '+s(c(null!=(i=null!=(i=null!=n?n.options:n)?i.styles:i)?i.showPreview:i,n))+'">\r\n <span class="svg-container">'+(null!=(i=c(null!=(i=null!=n?n.options:n)?i.previewSvg:i,n))?i:"")+"</span>\r\n "+(null!=(i=t.if.call(l,null!=(i=null!=n?n.options:n)?i.previewDisplayed:i,{name:"if",hash:{},fn:e.program(1,r,0),inverse:e.program(3,r,0),data:r}))?i:"")+" "+s((t.lang||n&&n.lang||a).call(l,"preview",{name:"lang",hash:{},data:r}))+"\r\n</div>"},useData:!0})},27367:function(e,n,t){var o=t(32227);e.exports=(o.default||o).template({1:function(e,n,t,o,r){e.propertyIsEnumerable;var i,l=e.lambda,a=e.escapeExpression;return' <span class="d-inline-block ml-1 tool-tip '+a(l(null!=(i=null!=(i=null!=n?n.options:n)?i.styles:i)?i.svgContainer:i,n))+'" title="'+a(l(null!=(i=null!=n?n.options:n)?i.restrictionMessage:i,n))+'">'+(null!=(i=l(null!=(i=null!=n?n.options:n)?i.lockSvg:i,n))?i:"")+"</span>\r\n"},compiler:[8,">= 4.3.0"],main:function(e,n,t,o,r){e.propertyIsEnumerable;var i,l,a=null!=n?n:e.nullContext||{};return'<div class="series-region"></div>\r\n<a class="cursor-pointer applink-show-video h5 text-dark">'+e.escapeExpression("function"==typeof(l=null!=(l=t.name||(null!=n?n.name:n))?l:e.hooks.helperMissing)?l.call(a,{name:"name",hash:{},data:r}):l)+"</a>\r\n"+(null!=(i=t.if.call(a,null!=(i=null!=n?n.options:n)?i.hasAdminRestriction:i,{name:"if",hash:{},fn:e.program(1,r,0),inverse:e.noop,data:r}))?i:"")+'<div class="sources-region"></div>\r\n<div class="badges-region"></div>'},useData:!0})},61539:function(e,n,t){var o=t(32227);e.exports=(o.default||o).template({compiler:[8,">= 4.3.0"],main:function(e,n,t,o,r){e.propertyIsEnumerable;var i,l,a=e.lambda,s=e.escapeExpression;return'<div class="series-region"></div>\r\n<a class="cursor-pointer h5 video-title text-dark" href="'+s(a(null!=(i=null!=n?n.options:n)?i.videoUrl:i,n))+'" target="_blank">'+s("function"==typeof(l=null!=(l=t.name||(null!=n?n.name:n))?l:e.hooks.helperMissing)?l.call(null!=n?n:e.nullContext||{},{name:"name",hash:{},data:r}):l)+'</a>\r\n<a class="svg-container d-inline-block align-bottom text-muted no-decoration" href="'+s(a(null!=(i=null!=n?n.options:n)?i.videoUrl:i,n))+'" target="_blank">'+(null!=(i=a(null!=(i=null!=n?n.options:n)?i.openExternalSvg:i,n))?i:"")+'</a>\r\n<div class="badges-region"></div>'},useData:!0})},53885:function(e,n,t){var o=t(32227);e.exports=(o.default||o).template({1:function(e,n,t,o,r){e.propertyIsEnumerable;var i,l=e.escapeExpression;return' <span class="badge p-1 '+l(e.lambda(null!=(i=null!=(i=null!=n?n.options:n)?i.styles:i)?i.interactive:i,n))+'">'+l((t.lang||n&&n.lang||e.hooks.helperMissing).call(null!=n?n:e.nullContext||{},"interactive",{name:"lang",hash:{},data:r}))+"</span>\r\n"},3:function(e,n,t,o,r){e.propertyIsEnumerable;var i,l=e.lambda,a=e.escapeExpression;return' <span class="badge p-1 tool-tip '+a(l(null!=(i=null!=(i=null!=n?n.options:n)?i.styles:i)?i.rating:i,n))+" "+a(l(null!=(i=null!=n?n.options:n)?i.ratingColorClass:i,n))+'" title="'+a(l(null!=(i=null!=n?n.rating:n)?i.name:i,n))+'">'+a(l(null!=(i=null!=n?n.rating:n)?i.code:i,n))+"</span>\r\n"},5:function(e,n,t,o,r){e.propertyIsEnumerable;var i,l=e.lambda;return' <span class="d-inline-block tool-tip '+e.escapeExpression(l(null!=(i=null!=(i=null!=n?n.options:n)?i.styles:i)?i.svgContainer:i,n))+'" title="Subtitles">'+(null!=(i=l(null!=(i=null!=n?n.options:n)?i.closeCaptionSvg:i,n))?i:"")+"</span>\r\n"},7:function(e,n,t,o,r){e.propertyIsEnumerable;var i,l=e.lambda;return' <span class="d-inline-block tool-tip '+e.escapeExpression(l(null!=(i=null!=(i=null!=n?n.options:n)?i.styles:i)?i.svgContainer:i,n))+'" title="Resources">'+(null!=(i=l(null!=(i=null!=n?n.options:n)?i.resourcesSvg:i,n))?i:"")+"</span>\r\n"},9:function(e,n,t,o,r){e.propertyIsEnumerable;var i,l=e.lambda,a=e.escapeExpression;return' <span class="badge p-1 '+a(l(null!=(i=null!=n?n.options:n)?i.awaitingReviewBadgeClass:i,n))+'">'+a(l(null!=(i=null!=n?n.options:n)?i.awaitingReviewMsg:i,n))+"</span>\r\n"},11:function(e,n,t,o,r){e.propertyIsEnumerable;var i,l=e.lambda,a=e.escapeExpression;return' <span class="badge p-1 '+a(l(null!=(i=null!=(i=null!=n?n.options:n)?i.styles:i)?i.restrictionBadgeClass:i,n))+'">'+a(l(null!=(i=null!=n?n.options:n)?i.restrictionMessage:i,n))+"</span>\r\n"},compiler:[8,">= 4.3.0"],main:function(e,n,t,o,r){e.propertyIsEnumerable;var i,l=null!=n?n:e.nullContext||{};return'<div class="mt-1 '+e.escapeExpression(e.lambda(null!=(i=null!=(i=null!=n?n.options:n)?i.styles:i)?i.badgesWrapper:i,n))+'">\r\n'+(null!=(i=t.if.call(l,null!=(i=null!=n?n.options:n)?i.interactive:i,{name:"if",hash:{},fn:e.program(1,r,0),inverse:e.noop,data:r}))?i:"")+"\r\n"+(null!=(i=t.if.call(l,null!=(i=null!=n?n.rating:n)?i.code:i,{name:"if",hash:{},fn:e.program(3,r,0),inverse:e.noop,data:r}))?i:"")+"\r\n"+(null!=(i=t.if.call(l,null!=(i=null!=n?n.options:n)?i.subtitles:i,{name:"if",hash:{},fn:e.program(5,r,0),inverse:e.noop,data:r}))?i:"")+"\r\n"+(null!=(i=t.if.call(l,null!=(i=null!=n?n.options:n)?i.resources:i,{name:"if",hash:{},fn:e.program(7,r,0),inverse:e.noop,data:r}))?i:"")+"\r\n"+(null!=(i=t.if.call(l,null!=(i=null!=n?n.options:n)?i.awaitingReviewMsg:i,{name:"if",hash:{},fn:e.program(9,r,0),inverse:e.noop,data:r}))?i:"")+"\r\n"+(null!=(i=t.if.call(l,null!=(i=null!=n?n.options:n)?i.restrictionMessage:i,{name:"if",hash:{},fn:e.program(11,r,0),inverse:e.noop,data:r}))?i:"")+"</div>"},useData:!0})},94559:function(e,n,t){var o=t(32227);e.exports=(o.default||o).template({1:function(e,n,t,o,r){e.propertyIsEnumerable;var i,l=e.lambda,a=e.escapeExpression;return' <span class="d-inline-block svg-container align-bottom tool-tip '+a(l(null!=(i=null!=(i=null!=n?n.options:n)?i.styles:i)?i.lock:i,n))+'" title="'+a(l(null!=(i=null!=n?n.options:n)?i.restrictionMessage:i,n))+'">'+(null!=(i=l(null!=(i=null!=n?n.options:n)?i.lockSvg:i,n))?i:"")+"</span>\r\n"},compiler:[8,">= 4.3.0"],main:function(e,n,t,o,r){e.propertyIsEnumerable;var i,l,a=e.lambda,s=e.escapeExpression,c=null!=n?n:e.nullContext||{};return'<div class="series-region"></div>\r\n<a class="cursor-pointer h5 video-title text-dark" href="'+s(a(null!=(i=null!=n?n.options:n)?i.videoUrl:i,n))+'" target="_blank">'+s("function"==typeof(l=null!=(l=t.name||(null!=n?n.name:n))?l:e.hooks.helperMissing)?l.call(c,{name:"name",hash:{},data:r}):l)+'</a>\r\n<a class="svg-container d-inline-block align-bottom text-muted no-decoration" href="'+s(a(null!=(i=null!=n?n.options:n)?i.videoUrl:i,n))+'" target="_blank">'+(null!=(i=a(null!=(i=null!=n?n.options:n)?i.openExternalSvg:i,n))?i:"")+"</a>\r\n"+(null!=(i=t.if.call(c,null!=(i=null!=n?n.options:n)?i.hasAdminRestriction:i,{name:"if",hash:{},fn:e.program(1,r,0),inverse:e.noop,data:r}))?i:"")+'<div class="badges-region"></div>'},useData:!0})},56914:function(e,n,t){var o=t(32227);e.exports=(o.default||o).template({1:function(e,n,t,o,r){e.propertyIsEnumerable;var i,l=e.lambda;return' <span class="d-inline-block align-middle ml-1 '+e.escapeExpression(l(null!=(i=null!=(i=null!=n?n.options:n)?i.styles:i)?i.lockSvgContainer:i,n))+'">'+(null!=(i=l(null!=(i=null!=n?n.options:n)?i.lockSvg:i,n))?i:"")+"</span>\r\n"},3:function(e,n,t,o,r){return"text-danger"},5:function(e,n,t,o,r){var i;return e.propertyIsEnumerable," "+e.escapeExpression(e.lambda(null!=(i=null!=n?n.options:n)?i.status:i,n))+"\r\n"},7:function(e,n,t,o,r){return e.propertyIsEnumerable," "+e.escapeExpression((t.lang||n&&n.lang||e.hooks.helperMissing).call(null!=n?n:e.nullContext||{},"waiting",{name:"lang",hash:{},data:r}))+"\r\n"},9:function(e,n,t,o,r){return e.propertyIsEnumerable," <br><i>"+e.escapeExpression((t.lang||n&&n.lang||e.hooks.helperMissing).call(null!=n?n:e.nullContext||{},"anotherAdmin",{name:"lang",hash:{},data:r}))+"</i>\r\n"},compiler:[8,">= 4.3.0"],main:function(e,n,t,o,r){e.propertyIsEnumerable;var i,l,a=null!=n?n:e.nullContext||{};return'<a class="applink-show-video h5 text-dark">'+e.escapeExpression("function"==typeof(l=null!=(l=t.name||(null!=n?n.name:n))?l:e.hooks.helperMissing)?l.call(a,{name:"name",hash:{},data:r}):l)+"</a>\r\n"+(null!=(i=t.if.call(a,null!=(i=null!=n?n.options:n)?i.hasAdminRestriction:i,{name:"if",hash:{},fn:e.program(1,r,0),inverse:e.noop,data:r}))?i:"")+'<div class="processing '+(null!=(i=t.if.call(a,null!=(i=null!=n?n.options:n)?i.hasError:i,{name:"if",hash:{},fn:e.program(3,r,0),inverse:e.noop,data:r}))?i:"")+'">\r\n'+(null!=(i=t.if.call(a,null!=(i=null!=n?n.options:n)?i.hasPendingItem:i,{name:"if",hash:{},fn:e.program(5,r,0),inverse:e.program(7,r,0),data:r}))?i:"")+(null!=(i=t.unless.call(a,null!=(i=null!=n?n.options:n)?i.hasPendingItem:i,{name:"unless",hash:{},fn:e.program(9,r,0),inverse:e.noop,data:r}))?i:"")+"</div>"},useData:!0})},47062:function(e,n,t){var o=t(32227);e.exports=(o.default||o).template({1:function(e,n,t,o,r){e.propertyIsEnumerable;var i,l=e.lambda,a=e.escapeExpression;return' <span class="d-inline-block ml-1 tool-tip '+a(l(null!=(i=null!=(i=null!=n?n.options:n)?i.styles:i)?i.svgContainer:i,n))+'" title="'+a(l(null!=(i=null!=n?n.options:n)?i.restrictionMessage:i,n))+'">'+(null!=(i=l(null!=(i=null!=n?n.options:n)?i.lockSvg:i,n))?i:"")+"</span>\r\n"},3:function(e,n,t,o,r){var i;return' <span class="d-block pt-1">'+(null!=(i=e.lambda(n,n))?i:"")+"</span>\r\n"},compiler:[8,">= 4.3.0"],main:function(e,n,t,o,r){e.propertyIsEnumerable;var i,l=null!=n?n:e.nullContext||{};return'<div class="series-region"></div>\r\n<a class="cursor-pointer applink-show-video h5 text-dark">'+(null!=(i=e.lambda(null!=(i=null!=n?n.options:n)?i.name:i,n))?i:"")+"</a>\r\n"+(null!=(i=t.if.call(l,null!=(i=null!=n?n.options:n)?i.hasAdminRestriction:i,{name:"if",hash:{},fn:e.program(1,r,0),inverse:e.noop,data:r}))?i:"")+'<div class="sources-region"></div>\r\n<div class="badges-region"></div>\r\n'+(null!=(i=t.each.call(l,null!=(i=null!=n?n.options:n)?i.keyPhrases:i,{name:"each",hash:{},fn:e.program(3,r,0),inverse:e.noop,data:r}))?i:"")},useData:!0})},94446:function(e,n,t){var o=t(32227);e.exports=(o.default||o).template({1:function(e,n,t,o,r){e.propertyIsEnumerable;var i,l,a=e.lambda,s=e.escapeExpression;return'<a class="cursor-pointer h5 video-title text-dark" href="'+s(a(null!=(i=null!=n?n.options:n)?i.videoUrl:i,n))+'" target="_blank">'+s("function"==typeof(l=null!=(l=t.name||(null!=n?n.name:n))?l:e.hooks.helperMissing)?l.call(null!=n?n:e.nullContext||{},{name:"name",hash:{},data:r}):l)+'</a>\r\n<a class="svg-container d-inline-block align-bottom text-muted no-decoration" href="'+s(a(null!=(i=null!=n?n.options:n)?i.videoUrl:i,n))+'" target="_blank">'+(null!=(i=a(null!=(i=null!=n?n.options:n)?i.openExternalSvg:i,n))?i:"")+"</a>\r\n"},3:function(e,n,t,o,r){var i;return e.propertyIsEnumerable,'<a class="cursor-pointer applink-show-video h6">'+e.escapeExpression("function"==typeof(i=null!=(i=t.name||(null!=n?n.name:n))?i:e.hooks.helperMissing)?i.call(null!=n?n:e.nullContext||{},{name:"name",hash:{},data:r}):i)+"</a>\r\n"},compiler:[8,">= 4.3.0"],main:function(e,n,t,o,r){e.propertyIsEnumerable;var i,l=e.lambda,a=e.escapeExpression;return'<div class="series-region"></div>\r\n'+(null!=(i=t.if.call(null!=n?n:e.nullContext||{},null!=(i=null!=n?n.options:n)?i.linkToOnline:i,{name:"if",hash:{},fn:e.program(1,r,0),inverse:e.program(3,r,0),data:r}))?i:"")+'<span class="d-inline-block ml-1 tool-tip '+a(l(null!=(i=null!=(i=null!=n?n.options:n)?i.styles:i)?i.lock:i,n))+" "+a(l(null!=(i=null!=(i=null!=n?n.options:n)?i.styles:i)?i.svgContainer:i,n))+'" title="'+a(l(null!=(i=null!=n?n.options:n)?i.restrictionMessage:i,n))+'">'+(null!=(i=l(null!=(i=null!=n?n.options:n)?i.lockSvg:i,n))?i:"")+'</span>\r\n<div class="sources-region"></div>\r\n<div class="badges-region"></div>'},useData:!0})},30606:function(e,n,t){var o=t(32227);e.exports=(o.default||o).template({compiler:[8,">= 4.3.0"],main:function(e,n,t,o,r){return'<div class="videos-region"></div>'},useData:!0})},53426:function(e,n){"use strict";n.Z={checkboxContainer:"sfB6X",thumbnailContainer:"u9oVV",metaContainer:"jnomD",actionsContainer:"BjK6Z",allowBulk:"VSdyH",videoItem:"p5AgE",processingVideo:"OOtNp",bulkPlaceholder:"IU_AK",previewContainer:"h4Ml1"}}}]);
|