@clickview/library-editor 1.22.1 → 1.23.0-rc.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (94) hide show
  1. package/.eslintrc.json +2 -2
  2. package/dist/bundles.json +1 -1
  3. package/dist/languages/en.json +1 -1
  4. package/dist/scripts/{1010-75eddc83df.chunk.js → 1010-495ed5b057.chunk.js} +1 -1
  5. package/dist/scripts/{1086-0d272fa94d.chunk.js → 1086-2c0fc81cca.chunk.js} +1 -1
  6. package/dist/scripts/{1216-7443ea7302.chunk.js → 1216-a2598733fc.chunk.js} +1 -1
  7. package/dist/scripts/{1269-971020275d.chunk.js → 1269-1d418c93ff.chunk.js} +1 -1
  8. package/dist/scripts/{1364-12c4c2bf8c.chunk.js → 1364-75f178ff7c.chunk.js} +1 -1
  9. package/dist/scripts/{1409-50dc6173b0.chunk.js → 1409-d7aacfb491.chunk.js} +1 -1
  10. package/dist/scripts/{1492-7be750f218.chunk.js → 1492-34353e5803.chunk.js} +1 -1
  11. package/dist/scripts/{1601-43daf29a76.chunk.js → 1601-2cee26f841.chunk.js} +2 -2
  12. package/dist/scripts/{1832-adad7c94aa.chunk.js → 1832-b4f69b0fd2.chunk.js} +1 -1
  13. package/dist/scripts/{1887-2a0d9adae2.chunk.js → 1887-af4ffa7492.chunk.js} +1 -1
  14. package/dist/scripts/{1911-29bc4ac93a.chunk.js → 1911-e51ecfdbf1.chunk.js} +1 -1
  15. package/dist/scripts/{2417-760802f23b.chunk.js → 2417-786ba4266e.chunk.js} +1 -1
  16. package/dist/scripts/{243-526ca9b38d.chunk.js → 243-4a83be1c4d.chunk.js} +1 -1
  17. package/dist/scripts/{259-5d20b19b71.chunk.js → 259-55c7fc7184.chunk.js} +1 -1
  18. package/dist/scripts/{2692-fbfd44474a.chunk.js → 2692-ca0cf823f2.chunk.js} +1 -1
  19. package/dist/scripts/2774-c34b53c0c6.chunk.js +1 -0
  20. package/dist/scripts/{2888-04e04c9f5f.chunk.js → 2888-1da6a4e04e.chunk.js} +1 -1
  21. package/dist/scripts/{299-bbb7822314.chunk.js → 299-fdf9a9b203.chunk.js} +1 -1
  22. package/dist/scripts/{3096-9239b37232.chunk.js → 3096-fe94617b1b.chunk.js} +1 -1
  23. package/dist/scripts/{3400-8d975420e4.chunk.js → 3400-490d569d7b.chunk.js} +1 -1
  24. package/dist/scripts/{3763-63566d304b.chunk.js → 3763-c275baf776.chunk.js} +1 -1
  25. package/dist/scripts/{4177-34f0df9c5f.chunk.js → 4177-876bddb70e.chunk.js} +1 -1
  26. package/dist/scripts/{4201-17bf1b7bc7.chunk.js → 4201-d103a971ea.chunk.js} +1 -1
  27. package/dist/scripts/{4245-203da19753.chunk.js → 4245-1b17d6cc40.chunk.js} +1 -1
  28. package/dist/scripts/{4591-e353e6a27a.chunk.js → 4591-0a3d8964f9.chunk.js} +1 -1
  29. package/dist/scripts/{4860-f6797eaeba.chunk.js → 4860-c11ea3fe12.chunk.js} +1 -1
  30. package/dist/scripts/{4885-c1015930a3.chunk.js → 4885-4300082a41.chunk.js} +1 -1
  31. package/dist/scripts/{514-c6838c7964.chunk.js → 514-1b68f47c63.chunk.js} +1 -1
  32. package/dist/scripts/{5412-5011ba4acc.chunk.js → 5412-f27d370c1d.chunk.js} +1 -1
  33. package/dist/scripts/{5418-05351c0fbf.chunk.js → 5418-9e2c2e8a28.chunk.js} +1 -1
  34. package/dist/scripts/{5424-6c332bc29f.chunk.js → 5424-7facb2affa.chunk.js} +1 -1
  35. package/dist/scripts/{5747-cda79581ed.chunk.js → 5747-4ea0a28a50.chunk.js} +1 -1
  36. package/dist/scripts/{6093-ca4d7b4b6b.chunk.js → 6093-4f3bdb8793.chunk.js} +1 -1
  37. package/dist/scripts/{6220-b7f05d0711.chunk.js → 6220-a995ba0196.chunk.js} +1 -1
  38. package/dist/scripts/{6277-625693cf57.chunk.js → 6277-5a2cf1ba53.chunk.js} +2 -2
  39. package/dist/scripts/{6357-7bdd5610a9.chunk.js → 6357-68401d5c12.chunk.js} +1 -1
  40. package/dist/scripts/{6505-219be2386f.chunk.js → 6505-9b5e1103de.chunk.js} +1 -1
  41. package/dist/scripts/{6732-1e78593b37.chunk.js → 6732-e031dd6d48.chunk.js} +1 -1
  42. package/dist/scripts/{6756-c6f24c2739.chunk.js → 6756-5f0d4d077e.chunk.js} +1 -1
  43. package/dist/scripts/{6774-cd56290f70.chunk.js → 6774-1f7e305c42.chunk.js} +1 -1
  44. package/dist/scripts/{6995-df4c762809.chunk.js → 6995-420094a353.chunk.js} +1 -1
  45. package/dist/scripts/{6999-4914418ece.chunk.js → 6999-c978daeb75.chunk.js} +1 -1
  46. package/dist/scripts/{7002-aac70e46a6.chunk.js → 7002-dce55c7cc0.chunk.js} +1 -1
  47. package/dist/scripts/{7053-afce329751.chunk.js → 7053-6209358742.chunk.js} +1 -1
  48. package/dist/scripts/{708-dee7822f44.chunk.js → 708-7c37448edc.chunk.js} +1 -1
  49. package/dist/scripts/{7376-442dffad8f.chunk.js → 7376-94aa49d108.chunk.js} +1 -1
  50. package/dist/scripts/{7634-b052bb7963.chunk.js → 7634-cbb0ec2c46.chunk.js} +1 -1
  51. package/dist/scripts/{8362-2007a7d725.chunk.js → 8362-de0f79ef2d.chunk.js} +1 -1
  52. package/dist/scripts/{8727-85b4c8d1e5.chunk.js → 8727-092d1aa912.chunk.js} +1 -1
  53. package/dist/scripts/{8762-6ad20d8042.chunk.js → 8762-4a1455ca7c.chunk.js} +1 -1
  54. package/dist/scripts/{8906-613b8f3fa6.chunk.js → 8906-fde329353f.chunk.js} +1 -1
  55. package/dist/scripts/{8947-aef6bab624.chunk.js → 8947-e09a418678.chunk.js} +1 -1
  56. package/dist/scripts/{9357-f3fbd4ec1b.chunk.js → 9357-c824654e93.chunk.js} +1 -1
  57. package/dist/scripts/{9695-b3e32d55e0.chunk.js → 9695-d74a71dffd.chunk.js} +1 -1
  58. package/dist/scripts/9828-d6e448bb94.chunk.js +1 -0
  59. package/dist/scripts/{9927-6d852052c7.chunk.js → 9927-00d928c591.chunk.js} +1 -1
  60. package/dist/scripts/{9976-e60bf244bc.chunk.js → 9976-b1a68fb464.chunk.js} +1 -1
  61. package/dist/scripts/bundle-76a8e16b54.min.js +2 -0
  62. package/package.json +74 -74
  63. package/typings/libs/CVEvents.d.ts +12 -12
  64. package/typings/libs/CVLanguages.d.ts +24 -24
  65. package/typings/libs/Environment.d.ts +10 -10
  66. package/typings/libs/LazyLoad.d.ts +29 -29
  67. package/typings/libs/LazyLoad.ts +27 -27
  68. package/typings/libs/backbone.validation.d.ts +99 -99
  69. package/typings/libs/cloneDeep.d.ts +4 -4
  70. package/typings/libs/cookiesjs.d.ts +24 -24
  71. package/typings/libs/google-api.d.ts +4 -4
  72. package/typings/libs/microsoft-teams.d.ts +2 -2
  73. package/typings/libs/trackjs.d.ts +2 -2
  74. package/typings/libs/videojs-contrib-quality-levels.d.ts +30 -30
  75. package/typings/utils/imports.d.ts +9 -9
  76. package/dist/scripts/2774-53da2e7ca3.chunk.js +0 -1
  77. package/dist/scripts/9828-4c9b5aae16.chunk.js +0 -1
  78. package/dist/scripts/bundle-54310ddab2.min.js +0 -2
  79. /package/dist/scripts/{101-e82c8481e6.chunk.js → 101-1eeff47605.chunk.js} +0 -0
  80. /package/dist/scripts/{1601-43daf29a76.chunk.js.LICENSE.txt → 1601-2cee26f841.chunk.js.LICENSE.txt} +0 -0
  81. /package/dist/scripts/{2803-e4af79b26a.chunk.js → 2803-2e8648e8ca.chunk.js} +0 -0
  82. /package/dist/scripts/{3746-855b2f8932.chunk.js → 3746-9260f94a0f.chunk.js} +0 -0
  83. /package/dist/scripts/{3969-be8bfb8b49.chunk.js → 3969-d27d0571c4.chunk.js} +0 -0
  84. /package/dist/scripts/{5235-5bd02c9862.chunk.js → 5235-a2c89ffb8c.chunk.js} +0 -0
  85. /package/dist/scripts/{5891-ac61e4df95.chunk.js → 5891-b2b28439b2.chunk.js} +0 -0
  86. /package/dist/scripts/{6254-b06072a076.chunk.js → 6254-ef1a408f43.chunk.js} +0 -0
  87. /package/dist/scripts/{6277-625693cf57.chunk.js.LICENSE.txt → 6277-5a2cf1ba53.chunk.js.LICENSE.txt} +0 -0
  88. /package/dist/scripts/{6963-455620057f.chunk.js → 6963-fa53496a45.chunk.js} +0 -0
  89. /package/dist/scripts/{7190-5ed7ca013f.chunk.js → 7190-b9aa94d8b0.chunk.js} +0 -0
  90. /package/dist/scripts/{7433-1372c3147d.chunk.js → 7433-b8397bc971.chunk.js} +0 -0
  91. /package/dist/scripts/{8114-faf797626f.chunk.js → 8114-774b080bab.chunk.js} +0 -0
  92. /package/dist/scripts/{8622-4d10d89a0d.chunk.js → 8622-e65b370b94.chunk.js} +0 -0
  93. /package/dist/scripts/{9382-274269118e.chunk.js → 9382-f96fe3c1c1.chunk.js} +0 -0
  94. /package/dist/scripts/{bundle-54310ddab2.min.js.LICENSE.txt → bundle-76a8e16b54.min.js.LICENSE.txt} +0 -0
@@ -1 +1 @@
1
- (self.webpackChunk_clickview_library_editor=self.webpackChunk_clickview_library_editor||[]).push([[5424],{21771:function(e,t,i){"use strict";i.r(t),i.d(t,{MoveVideoView:function(){return T}});var r=i(39479),n=i(57857),o=i(21679),l=i(31647),a=i(43875),s=i(52076),c=i(10101),u=i(48090),h=i(90680),d=i(67670),f=i(13156),b=i(61843),y=i(20072),p=i(88172),g=i(79665),v=i(97011),m=i.n(v);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 k(e,t){for(var i=0;i<t.length;i++){var r=t[i];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,(void 0,n=function(e,t){if("object"!==S(e)||null===e)return e;var i=e[Symbol.toPrimitive];if(void 0!==i){var r=i.call(e,"string");if("object"!==S(r))return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}(r.key),"symbol"===S(n)?n:String(n)),r)}var n}function L(e,t){return L=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(e,t){return e.__proto__=t,e},L(e,t)}function w(e){return w=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(e){return e.__proto__||Object.getPrototypeOf(e)},w(e)}var T=function(e){!function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),Object.defineProperty(e,"prototype",{writable:!1}),t&&L(e,t)}(P,e);var t,i,l,v,T=(l=P,v=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(e){return!1}}(),function(){var e,t=w(l);if(v){var i=w(this).constructor;e=Reflect.construct(t,arguments,i)}else e=t.apply(this,arguments);return function(e,t){if(t&&("object"===S(t)||"function"==typeof t))return t;if(void 0!==t)throw new TypeError("Derived constructors may only return object or undefined");return function(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}(e)}(this,e)});function P(e){return function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,P),T.call(this,e)}return t=P,(i=[{key:"initialize",value:function(){this.listenTo(u.Vk.LIBRARY,"libraries:sync",this.render),this.listenTo(u.Vk.VIDEO,"".concat(u.M_.VIDEOS_BY_ID,":").concat(this.options.videoIds.join(","),":sync"),this.render),this.listenTo(this.channelName,"library:selected",this.onLibrarySelected),this.listenTo(this.channelName,"folder:selected",this.onFolderSelected),this.libraryDataService=o.u.getInstance(u.Or.Library,this),this.videoDataService=o.u.getInstance(u.Or.Video,this)}},{key:"name",get:function(){return"MoveVideoView"}},{key:"title",get:function(){return this.options.videoIds&&n.T.getPhrase(this.lang,"title",{smartCount:this.options.videoIds.length})}},{key:"lang",get:function(){return"libraryEditor.moveVideo"}},{key:"channelName",get:function(){return b.N0.generateUniqueChannelName(this)}},{key:"libraryTreeKey",get:function(){return"libraryselect:".concat(this.cid)}},{key:"folderTreeKey",get:function(){return"folderselect:".concat(this.cid)}},{key:"template",get:function(){return m()}},{key:"regions",value:function(){return{folder:".folder-region",library:".library-region"}}},{key:"events",value:function(){return{submit:"onSubmit","click .submit":"onSubmit"}}},{key:"elements",get:function(){return{folderLabel:".folder-label"}}},{key:"behaviors",get:function(){var e,t,i,r,o=this;return[{title:n.T.getPhrase(this.lang,"heading",{smartCount:null!==(t=null===(e=this.options.videoIds)||void 0===e?void 0:e.length)&&void 0!==t?t:1}),behaviorClass:c.Yw,closeOnRoute:!1,spinnerButtonOptions:{channelName:this.channelName,model:this.spinnerModel=new d.v,buttonText:n.T.getPhrase(this.lang,"submit",{smartCount:null!==(r=null===(i=this.options.videoIds)||void 0===i?void 0:i.length)&&void 0!==r?r:1}),tooltip:function(){return o.getSubmitBtnTooltipOptions()},onClick:function(){return o.onSubmit()}}}]}},{key:"filterLibrariesWithVideo",value:function(){var e=this;if(this.libraries&&this.collection&&this.hasMultipleLibraries()){var t=this.collection.map((function(e){return e.get("libraries").map((function(e){return e.get("id")}))})),i=r.uniq(r.flatten(t)),n=[],o=[];this.libraries.forEach((function(t){var l=b.PU.getModelFromCollection(e.options.folderId,t.get("children"));!r.contains(i,+t.get("id"))||l?n.push(t):o.push(t)})),this.libraries=new h.q(n),this.hiddenLibraryNames=o.map((function(e){return e.get("name")})),1===this.libraries.length&&this.onLibrarySelected(this.libraries.first())}}},{key:"getSubmitBtnTooltipOptions",value:function(){if(this.spinnerModel.get(p.ZV.Disabled))return{title:n.T.getPhrase(this.lang,"btnTooltip")}}},{key:"onLibrarySelected",value:function(e){var t=b.PU.getSelected(this.libraryTreeKey,this.libraries);t&&b.PU.deselectAll(this.folderTreeKey,t.get("children")),b.PU.setSelected(this.libraryTreeKey,e,this.libraries),this.hasMultipleLibraries()&&this.getUI("folderLabel").show(),this.spinnerModel.set(p.ZV.Disabled,!0),this.render()}},{key:"onFolderSelected",value:function(e,t){var i=b.PU.getSelected(this.libraryTreeKey,this.libraries).get("children");b.PU.setSelected(this.folderTreeKey,e,i,t),t||this.spinnerModel.set(p.ZV.Disabled,!1)}},{key:"onSubmit",value:function(){var e=this;this.spinnerModel.set(p.ZV.ShowSpinner,!0);var t,i,r=b.PU.getSelected(this.folderTreeKey,this.libraries),n=r.get("id"),o=this.collection.map((function(e){return e.get("id")}));this.collection.each((function(r){t||(t=r.categories.find((function(t){return t.get("id")===+e.options.folderId})),i=r)}));var l=1===o.length?i.get("name"):"",a=f.J.moveVideoAlert(t.get("name"),r.get("name"),r.get("id"),o.length,l);this.videoDataService.moveVideos(o,n,this.options.folderId,(function(){e.triggerMethod("hide")}),a),this.logAction(o,n)}},{key:"hasMultipleLibraries",value:function(){return this.libraries&&this.libraries.length>1}},{key:"getFormattedHiddenLibraryNames",value:function(){var e=r.map(this.hiddenLibraryNames,(function(e){return"<strong>".concat(a.m.escapeExpression(e),"</strong>")}));if(1===e.length)return e[0];var t=n.T.getPhrase(this.lang,"and");return"".concat(e.slice(0,-1).join(", ")," ").concat(t," ").concat(e.slice(-1))}},{key:"logAction",value:function(e,t){var i={newParentId:t,oldParentId:this.options.folderId,count:e.length};1===e.length&&(i.id=r.first(e)),s.k.logUserAction(i,this.options.analyticsOptions)}},{key:"renderLibrarySelect",value:function(){if(this.libraries&&1!==this.libraries.length){var e=b.PU.getSelected(this.libraryTreeKey,this.libraries);this.showChildView("library",new g.A({collection:this.libraries,channelName:this.channelName,currentLibraryId:e?e.get("id"):null}))}}},{key:"renderFolderSelect",value:function(){var e=b.PU.getSelected(this.libraryTreeKey,this.libraries);this.showChildView("folder",new y.Y({collection:e.get("children"),channelName:this.channelName,folderTreeKey:this.folderTreeKey,disabledIds:[this.options.folderId]}))}},{key:"viewOptions",value:function(){var e,t;return{hasMultipleLibraries:this.hasMultipleLibraries(),hiddenLibraryNames:(null===(e=this.hiddenLibraryNames)||void 0===e?void 0:e.length)?this.getFormattedHiddenLibraryNames():"",hiddenLibraryNamesLength:null===(t=this.hiddenLibraryNames)||void 0===t?void 0:t.length}}},{key:"onBeforeRender",value:function(){var e=this;return this.libraries||this.libraryDataService.getLibraries((function(t){e.libraries=new h.q(t.filter((function(e){return!!e.get("children").length}))),e.hasMultipleLibraries()||e.onLibrarySelected(e.libraries.first()),e.filterLibrariesWithVideo(),e.render()})),this.collection||this.videoDataService.getVideos(this.options.videoIds,(function(t){e.collection=t,e.filterLibrariesWithVideo(),e.render()})),!!this.collection&&!!this.libraries}},{key:"onRender",value:function(){this.renderLibrarySelect(),b.PU.getSelected(this.libraryTreeKey,this.libraries)&&this.renderFolderSelect()}}])&&k(t.prototype,i),Object.defineProperty(t,"prototype",{writable:!1}),P}(l.Q.View)},97011:function(e,t,i){var r=i(32227);e.exports=(r.default||r).template({1:function(e,t,i,r,n){var o;return e.propertyIsEnumerable,' <div class="alert alert-info" role="alert">\r\n <p class="m-0">'+(null!=(o=(i.lang||t&&t.lang||e.hooks.helperMissing).call(null!=t?t:e.nullContext||{},"hiddenLibraryNames",{name:"lang",hash:{smartCount:null!=(o=null!=t?t.options:t)?o.hiddenLibraryNamesLength:o,libraries:null!=(o=null!=t?t.options:t)?o.hiddenLibraryNames:o},data:n}))?o:"")+"</p>\r\n </div>\r\n"},3:function(e,t,i,r,n){return e.propertyIsEnumerable,' <div class="form-group">\r\n <label class="control-label">'+e.escapeExpression((i.lang||t&&t.lang||e.hooks.helperMissing).call(null!=t?t:e.nullContext||{},"library",{name:"lang",hash:{},data:n}))+'</label>\r\n <div class="library-region"></div>\r\n </div>\r\n'},5:function(e,t,i,r,n){return'style="display: none;"'},compiler:[8,">= 4.3.0"],main:function(e,t,i,r,n){e.propertyIsEnumerable;var o,l=null!=t?t:e.nullContext||{};return"<form>\r\n"+(null!=(o=i.if.call(l,null!=(o=null!=t?t.options:t)?o.hiddenLibraryNames:o,{name:"if",hash:{},fn:e.program(1,n,0),inverse:e.noop,data:n}))?o:"")+"\r\n"+(null!=(o=i.if.call(l,null!=(o=null!=t?t.options:t)?o.hasMultipleLibraries:o,{name:"if",hash:{},fn:e.program(3,n,0),inverse:e.noop,data:n}))?o:"")+'\r\n <div class="form-group">\r\n <label class="control-label folder-label" '+(null!=(o=i.if.call(l,null!=(o=null!=t?t.options:t)?o.hasMultipleLibraries:o,{name:"if",hash:{},fn:e.program(5,n,0),inverse:e.noop,data:n}))?o:"")+">"+e.escapeExpression((i.lang||t&&t.lang||e.hooks.helperMissing).call(l,"folder",{name:"lang",hash:{},data:n}))+'</label>\r\n <div class="folder-region"></div>\r\n </div>\r\n</form>'},useData:!0})}}]);
1
+ (self.webpackChunk_clickview_library_editor=self.webpackChunk_clickview_library_editor||[]).push([[5424],{21771:function(e,t,i){"use strict";i.r(t),i.d(t,{MoveVideoView:function(){return T}});var r=i(39479),n=i(57857),o=i(21679),l=i(31647),a=i(43875),s=i(52076),c=i(10101),u=i(48090),h=i(90680),d=i(67670),f=i(13156),b=i(61843),y=i(20072),p=i(88172),g=i(79665),v=i(97011),m=i.n(v);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 k(e,t){for(var i=0;i<t.length;i++){var r=t[i];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,(void 0,n=function(e,t){if("object"!==S(e)||null===e)return e;var i=e[Symbol.toPrimitive];if(void 0!==i){var r=i.call(e,"string");if("object"!==S(r))return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}(r.key),"symbol"===S(n)?n:String(n)),r)}var n}function L(e,t){return L=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(e,t){return e.__proto__=t,e},L(e,t)}function w(e){return w=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(e){return e.__proto__||Object.getPrototypeOf(e)},w(e)}var T=function(e){!function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),Object.defineProperty(e,"prototype",{writable:!1}),t&&L(e,t)}(P,e);var t,i,l,v,T=(l=P,v=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(e){return!1}}(),function(){var e,t=w(l);if(v){var i=w(this).constructor;e=Reflect.construct(t,arguments,i)}else e=t.apply(this,arguments);return function(e,t){if(t&&("object"===S(t)||"function"==typeof t))return t;if(void 0!==t)throw new TypeError("Derived constructors may only return object or undefined");return function(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}(e)}(this,e)});function P(e){return function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,P),T.call(this,e)}return t=P,(i=[{key:"initialize",value:function(){this.listenTo(u.Vk.LIBRARY,"libraries:sync",this.render),this.listenTo(u.Vk.VIDEO,"".concat(u.M_.VIDEOS_BY_ID,":").concat(this.options.videoIds.join(","),":sync"),this.render),this.listenTo(this.channelName,"library:selected",this.onLibrarySelected),this.listenTo(this.channelName,"folder:selected",this.onFolderSelected),this.libraryDataService=o.u.getInstance(u.Or.Library,this),this.videoDataService=o.u.getInstance(u.Or.Video,this)}},{key:"name",get:function(){return"MoveVideoView"}},{key:"title",get:function(){return this.options.videoIds&&n.T.getPhrase(this.lang,"title",{smartCount:this.options.videoIds.length})}},{key:"lang",get:function(){return"libraryEditor.moveVideo"}},{key:"channelName",get:function(){return b.N0.generateUniqueChannelName(this)}},{key:"libraryTreeKey",get:function(){return"libraryselect:".concat(this.cid)}},{key:"folderTreeKey",get:function(){return"folderselect:".concat(this.cid)}},{key:"template",get:function(){return m()}},{key:"regions",value:function(){return{folder:".folder-region",library:".library-region"}}},{key:"events",value:function(){return{submit:"onSubmit","click .submit":"onSubmit"}}},{key:"elements",get:function(){return{folderLabel:".folder-label"}}},{key:"behaviors",get:function(){var e,t,i,r,o=this;return[{title:n.T.getPhrase(this.lang,"heading",{smartCount:null!==(t=null===(e=this.options.videoIds)||void 0===e?void 0:e.length)&&void 0!==t?t:1}),behaviorClass:c.Yw,closeOnRoute:!1,spinnerButtonOptions:{channelName:this.channelName,model:this.spinnerModel=new d.v,buttonText:n.T.getPhrase(this.lang,"submit",{smartCount:null!==(r=null===(i=this.options.videoIds)||void 0===i?void 0:i.length)&&void 0!==r?r:1}),tooltip:function(){return o.getSubmitBtnTooltipOptions()},onClick:function(){return o.onSubmit()}}}]}},{key:"filterLibrariesWithVideo",value:function(){var e=this;if(this.libraries&&this.collection&&this.hasMultipleLibraries()){var t=this.collection.map((function(e){return e.get("libraries").map((function(e){return e.get("id")}))})),i=r.uniq(r.flatten(t)),n=[],o=[];this.libraries.forEach((function(t){var l=b.PU.getModelFromCollection(e.options.folderId,t.get("children"));!r.contains(i,+t.get("id"))||l?n.push(t):o.push(t)})),this.libraries=new h.q(n),this.hiddenLibraryNames=o.map((function(e){return e.get("name")})),1===this.libraries.length&&this.onLibrarySelected(this.libraries.first())}}},{key:"getSubmitBtnTooltipOptions",value:function(){if(this.spinnerModel.get(p.ZV.Disabled))return{title:n.T.getPhrase(this.lang,"btnTooltip")}}},{key:"onLibrarySelected",value:function(e){var t=b.PU.getSelected(this.libraryTreeKey,this.libraries);t&&b.PU.deselectAll(this.folderTreeKey,t.get("children")),b.PU.setSelected(this.libraryTreeKey,e,this.libraries),this.hasMultipleLibraries()&&this.getUI("folderLabel").show(),this.spinnerModel.set(p.ZV.Disabled,!0),this.render()}},{key:"onFolderSelected",value:function(e,t){var i=b.PU.getSelected(this.libraryTreeKey,this.libraries).get("children");b.PU.setSelected(this.folderTreeKey,e,i,t),t||this.spinnerModel.set(p.ZV.Disabled,!1)}},{key:"onSubmit",value:function(){var e=this;this.spinnerModel.set(p.ZV.ShowSpinner,!0);var t,i,r=b.PU.getSelected(this.folderTreeKey,this.libraries),n=r.get("id"),o=this.collection.map((function(e){return e.get("id")}));this.collection.each((function(r){t||(t=r.categories.find((function(t){return t.get("id")===+e.options.folderId})),i=r)}));var l=1===o.length?i.get("name"):"",a=f.J.moveVideoAlert(t.get("name"),r.get("name"),r.get("id"),o.length,l);this.videoDataService.moveVideos(o,n,this.options.folderId,(function(){e.triggerMethod("hide")}),a),this.logAction(o,n)}},{key:"hasMultipleLibraries",value:function(){return this.libraries&&this.libraries.length>1}},{key:"getFormattedHiddenLibraryNames",value:function(){var e=r.map(this.hiddenLibraryNames,(function(e){return"<strong>".concat(a.m.escapeExpression(e),"</strong>")}));if(1===e.length)return e[0];var t=n.T.getPhrase(this.lang,"and");return"".concat(e.slice(0,-1).join(", ")," ").concat(t," ").concat(e.slice(-1))}},{key:"logAction",value:function(e,t){var i={newParentId:t,oldParentId:this.options.folderId,count:e.length};1===e.length&&(i.id=r.first(e)),s.k.logUserAction(i,this.options.analyticsOptions)}},{key:"renderLibrarySelect",value:function(){if(this.libraries&&1!==this.libraries.length){var e=b.PU.getSelected(this.libraryTreeKey,this.libraries);this.showChildView("library",new g.A({collection:this.libraries,channelName:this.channelName,currentLibraryId:e?e.get("id"):null}))}}},{key:"renderFolderSelect",value:function(){var e=b.PU.getSelected(this.libraryTreeKey,this.libraries);this.showChildView("folder",new y.Y({collection:e.get("children"),channelName:this.channelName,folderTreeKey:this.folderTreeKey,disabledIds:[this.options.folderId]}))}},{key:"viewOptions",value:function(){var e,t;return{hasMultipleLibraries:this.hasMultipleLibraries(),hiddenLibraryNames:(null===(e=this.hiddenLibraryNames)||void 0===e?void 0:e.length)?this.getFormattedHiddenLibraryNames():"",hiddenLibraryNamesLength:null===(t=this.hiddenLibraryNames)||void 0===t?void 0:t.length}}},{key:"onBeforeRender",value:function(){var e=this;return this.libraries||this.libraryDataService.getLibraries((function(t){e.libraries=new h.q(t.filter((function(e){return!!e.get("children").length}))),e.hasMultipleLibraries()||e.onLibrarySelected(e.libraries.first()),e.filterLibrariesWithVideo(),e.render()})),this.collection||this.videoDataService.getVideos(this.options.videoIds,(function(t){e.collection=t,e.filterLibrariesWithVideo(),e.render()})),!!this.collection&&!!this.libraries}},{key:"onRender",value:function(){this.renderLibrarySelect(),b.PU.getSelected(this.libraryTreeKey,this.libraries)&&this.renderFolderSelect()}}])&&k(t.prototype,i),Object.defineProperty(t,"prototype",{writable:!1}),P}(l.Q.View)},97011:function(e,t,i){var r=i(32227);e.exports=(r.default||r).template({1:function(e,t,i,r,n){var o;return e.propertyIsEnumerable,' <div class="alert alert-info" role="alert">\n <p class="m-0">'+(null!=(o=(i.lang||t&&t.lang||e.hooks.helperMissing).call(null!=t?t:e.nullContext||{},"hiddenLibraryNames",{name:"lang",hash:{smartCount:null!=(o=null!=t?t.options:t)?o.hiddenLibraryNamesLength:o,libraries:null!=(o=null!=t?t.options:t)?o.hiddenLibraryNames:o},data:n}))?o:"")+"</p>\n </div>\n"},3:function(e,t,i,r,n){return e.propertyIsEnumerable,' <div class="form-group">\n <label class="control-label">'+e.escapeExpression((i.lang||t&&t.lang||e.hooks.helperMissing).call(null!=t?t:e.nullContext||{},"library",{name:"lang",hash:{},data:n}))+'</label>\n <div class="library-region"></div>\n </div>\n'},5:function(e,t,i,r,n){return'style="display: none;"'},compiler:[8,">= 4.3.0"],main:function(e,t,i,r,n){e.propertyIsEnumerable;var o,l=null!=t?t:e.nullContext||{};return"<form>\n"+(null!=(o=i.if.call(l,null!=(o=null!=t?t.options:t)?o.hiddenLibraryNames:o,{name:"if",hash:{},fn:e.program(1,n,0),inverse:e.noop,data:n}))?o:"")+"\n"+(null!=(o=i.if.call(l,null!=(o=null!=t?t.options:t)?o.hasMultipleLibraries:o,{name:"if",hash:{},fn:e.program(3,n,0),inverse:e.noop,data:n}))?o:"")+'\n <div class="form-group">\n <label class="control-label folder-label" '+(null!=(o=i.if.call(l,null!=(o=null!=t?t.options:t)?o.hasMultipleLibraries:o,{name:"if",hash:{},fn:e.program(5,n,0),inverse:e.noop,data:n}))?o:"")+">"+e.escapeExpression((i.lang||t&&t.lang||e.hooks.helperMissing).call(l,"folder",{name:"lang",hash:{},data:n}))+'</label>\n <div class="folder-region"></div>\n </div>\n</form>'},useData:!0})}}]);
@@ -1 +1 @@
1
- (self.webpackChunk_clickview_library_editor=self.webpackChunk_clickview_library_editor||[]).push([[5747],{95747:function(e,n,t){"use strict";t.r(n),t.d(n,{FileSelectView:function(){return O}});var r=t(39479),o=t(31647),i=t(21679),l=t(57857),a=t(68003),c=t(48404),s=t(70065),u=t(52076),p=t(48090),f=t(22103),d=t.n(f),h={uploadImage:"yRGoO"},y=t(57769),g=t(81937),m=t(98985),v=t(25692),b=t(75432);function k(e){return k="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},k(e)}function w(e,n){for(var t=0;t<n.length;t++){var r=n[t];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,(void 0,o=function(e,n){if("object"!==k(e)||null===e)return e;var t=e[Symbol.toPrimitive];if(void 0!==t){var r=t.call(e,"string");if("object"!==k(r))return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}(r.key),"symbol"===k(o)?o:String(o)),r)}var o}function U(e,n){return U=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(e,n){return e.__proto__=n,e},U(e,n)}function S(e){return S=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(e){return e.__proto__||Object.getPrototypeOf(e)},S(e)}var O=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&&U(e,n)}(_,e);var n,t,o,f,O=(o=_,f=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=S(o);if(f){var t=S(this).constructor;e=Reflect.construct(n,arguments,t)}else e=n.apply(this,arguments);return function(e,n){if(n&&("object"===k(n)||"function"==typeof n))return n;if(void 0!==n)throw new TypeError("Derived constructors may only return object or undefined");return function(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}(e)}(this,e)});function _(){return function(e,n){if(!(e instanceof n))throw new TypeError("Cannot call a class as a function")}(this,_),O.apply(this,arguments)}return n=_,(t=[{key:"initialize",value:function(){this.listenTo(this.channelName,g.S.FILES_SELECTED,this.onFilesSelected),this.videoUploadService=i.u.getInstance(p.K9.VideoUpload,this)}},{key:"name",get:function(){return"FileSelectView"}},{key:"title",get:function(){return l.T.getPhrase(this.lang,"title")}},{key:"lang",get:function(){return"upload.fileSelect"}},{key:"template",get:function(){return d()}},{key:"className",get:function(){return"container px-0"}},{key:"props",get:function(){return["videoUploadService"]}},{key:"channelName",get:function(){return this.customCid||(this.customCid=r.uniqueId("custom")),"".concat(this.name).concat(this.customCid)}},{key:"behaviors",get:function(){return[{behaviorClass:y.Z,buttonSelector:".choose-files",channelName:this.channelName,acceptMultiple:!0,mimeType:"video/*"}]}},{key:"onFilesSelected",value:function(e,n){this.videoUploadService.addFiles(e),this.logAction(e,n)}},{key:"logAction",value:function(e,n){var t={actionType:s.UserAction.Upload,entity:s.EntityType.Video,location:s.LocationContext.VideoUpload,workflowPhase:s.WorkflowPhase.Start,descriptor:u.k.mapInteractionType(n)};u.k.logUserAction(e,t)}},{key:"requiredResources",get:function(){return{config:c.p.config,currentUser:b.K.currentUser}}},{key:"viewOptions",value:function(){return{styles:h,uploadArticleUrl:m.o.getHybridArticle(v.s.UploadToLibraryEditor,v.b.UploadToLibraryEditor),uploadTermsUrl:this.config?a._.safeUrlConcat(this.config.get("marketingSiteUrl"),p.l.UploadingUserContent):"",classNames:"info-link",imageUrl:p.Wn.Upload.UPLOAD_VIDEO}}}])&&w(n.prototype,t),Object.defineProperty(n,"prototype",{writable:!1}),_}(o.Q.View)},22103:function(e,n,t){var r=t(32227);e.exports=(r.default||r).template({compiler:[8,">= 4.3.0"],main:function(e,n,t,r,o){e.propertyIsEnumerable;var i,l=null!=n?n:e.nullContext||{},a=e.hooks.helperMissing,c=e.escapeExpression,s=e.lambda;return'<div class="p-3 my-3 bg-white text-center">\r\n <h1>'+c((t.lang||n&&n.lang||a).call(l,"uploadVideos",{name:"lang",hash:{},data:o}))+'</h1>\r\n <div class="my-3">\r\n <img src="'+c(s(null!=(i=null!=n?n.options:n)?i.imageUrl:i,n))+'" class="'+c(s(null!=(i=null!=(i=null!=n?n.options:n)?i.styles:i)?i.uploadImage:i,n))+' img-fluid mb-2" />\r\n </div>\r\n <div>\r\n <button class="btn btn-dark choose-files">'+c((t.lang||n&&n.lang||a).call(l,"chooseVideo",{name:"lang",hash:{},data:o}))+"</button>\r\n </div>\r\n <div>\r\n <span>"+c((t.lang||n&&n.lang||a).call(l,"dragDrop",{name:"lang",hash:{},data:o}))+'</span>\r\n </div>\r\n</div>\r\n<div class="p-3 bg-white container-fluid">\r\n <div class="row">\r\n <div class="col-4">\r\n <h4>'+c((t.lang||n&&n.lang||a).call(l,"help",{name:"lang",hash:{},data:o}))+'</h2>\r\n <div class="border-top pt-2">\r\n <ul>\r\n <li><a class="info-link" href="'+c(s(null!=(i=null!=n?n.options:n)?i.uploadArticleUrl:i,n))+'" target="_blank">'+c((t.lang||n&&n.lang||a).call(l,"instructionsHeading",{name:"lang",hash:{},data:o}))+'</a></li>\r\n </ul>\r\n </div>\r\n </div>\r\n <div class="col-8">\r\n <h4>'+c((t.lang||n&&n.lang||a).call(l,"termsHeading",{name:"lang",hash:{},data:o}))+'</h2>\r\n <div class="border-top pt-2">\r\n <ol>\r\n <li>'+c((t.lang||n&&n.lang||a).call(l,"term1",{name:"lang",hash:{},data:o}))+"</li>\r\n <li>"+c((t.lang||n&&n.lang||a).call(l,"term2",{name:"lang",hash:{},data:o}))+"</li>\r\n <li>"+(null!=(i=(t.lang||n&&n.lang||a).call(l,"term3",{name:"lang",hash:{classNames:null!=(i=null!=n?n.options:n)?i.classNames:i,uploadTermsUrl:null!=(i=null!=n?n.options:n)?i.uploadTermsUrl:i},data:o}))?i:"")+"</li>\r\n </ol>\r\n </div>\r\n </div>\r\n </div>\r\n</div>"},useData:!0})}}]);
1
+ (self.webpackChunk_clickview_library_editor=self.webpackChunk_clickview_library_editor||[]).push([[5747],{95747:function(e,n,t){"use strict";t.r(n),t.d(n,{FileSelectView:function(){return O}});var o=t(39479),i=t(31647),r=t(21679),l=t(57857),a=t(68003),c=t(48404),s=t(70065),u=t(52076),p=t(48090),f=t(22103),d=t.n(f),h={uploadImage:"yRGoO"},y=t(57769),g=t(81937),m=t(98985),v=t(25692),b=t(75432);function k(e){return k="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},k(e)}function w(e,n){for(var t=0;t<n.length;t++){var o=n[t];o.enumerable=o.enumerable||!1,o.configurable=!0,"value"in o&&(o.writable=!0),Object.defineProperty(e,(void 0,i=function(e,n){if("object"!==k(e)||null===e)return e;var t=e[Symbol.toPrimitive];if(void 0!==t){var o=t.call(e,"string");if("object"!==k(o))return o;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}(o.key),"symbol"===k(i)?i:String(i)),o)}var i}function U(e,n){return U=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(e,n){return e.__proto__=n,e},U(e,n)}function S(e){return S=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(e){return e.__proto__||Object.getPrototypeOf(e)},S(e)}var O=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&&U(e,n)}(_,e);var n,t,i,f,O=(i=_,f=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=S(i);if(f){var t=S(this).constructor;e=Reflect.construct(n,arguments,t)}else e=n.apply(this,arguments);return function(e,n){if(n&&("object"===k(n)||"function"==typeof n))return n;if(void 0!==n)throw new TypeError("Derived constructors may only return object or undefined");return function(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}(e)}(this,e)});function _(){return function(e,n){if(!(e instanceof n))throw new TypeError("Cannot call a class as a function")}(this,_),O.apply(this,arguments)}return n=_,(t=[{key:"initialize",value:function(){this.listenTo(this.channelName,g.S.FILES_SELECTED,this.onFilesSelected),this.videoUploadService=r.u.getInstance(p.K9.VideoUpload,this)}},{key:"name",get:function(){return"FileSelectView"}},{key:"title",get:function(){return l.T.getPhrase(this.lang,"title")}},{key:"lang",get:function(){return"upload.fileSelect"}},{key:"template",get:function(){return d()}},{key:"className",get:function(){return"container px-0"}},{key:"props",get:function(){return["videoUploadService"]}},{key:"channelName",get:function(){return this.customCid||(this.customCid=o.uniqueId("custom")),"".concat(this.name).concat(this.customCid)}},{key:"behaviors",get:function(){return[{behaviorClass:y.Z,buttonSelector:".choose-files",channelName:this.channelName,acceptMultiple:!0,mimeType:"video/*"}]}},{key:"onFilesSelected",value:function(e,n){this.videoUploadService.addFiles(e),this.logAction(e,n)}},{key:"logAction",value:function(e,n){var t={actionType:s.UserAction.Upload,entity:s.EntityType.Video,location:s.LocationContext.VideoUpload,workflowPhase:s.WorkflowPhase.Start,descriptor:u.k.mapInteractionType(n)};u.k.logUserAction(e,t)}},{key:"requiredResources",get:function(){return{config:c.p.config,currentUser:b.K.currentUser}}},{key:"viewOptions",value:function(){return{styles:h,uploadArticleUrl:m.o.getHybridArticle(v.s.UploadToLibraryEditor,v.b.UploadToLibraryEditor),uploadTermsUrl:this.config?a._.safeUrlConcat(this.config.get("marketingSiteUrl"),p.l.UploadingUserContent):"",classNames:"info-link",imageUrl:p.Wn.Upload.UPLOAD_VIDEO}}}])&&w(n.prototype,t),Object.defineProperty(n,"prototype",{writable:!1}),_}(i.Q.View)},22103:function(e,n,t){var o=t(32227);e.exports=(o.default||o).template({compiler:[8,">= 4.3.0"],main:function(e,n,t,o,i){e.propertyIsEnumerable;var r,l=null!=n?n:e.nullContext||{},a=e.hooks.helperMissing,c=e.escapeExpression,s=e.lambda;return'<div class="p-3 my-3 bg-white text-center">\n <h1>'+c((t.lang||n&&n.lang||a).call(l,"uploadVideos",{name:"lang",hash:{},data:i}))+'</h1>\n <div class="my-3">\n <img src="'+c(s(null!=(r=null!=n?n.options:n)?r.imageUrl:r,n))+'" class="'+c(s(null!=(r=null!=(r=null!=n?n.options:n)?r.styles:r)?r.uploadImage:r,n))+' img-fluid mb-2" />\n </div>\n <div>\n <button class="btn btn-dark choose-files">'+c((t.lang||n&&n.lang||a).call(l,"chooseVideo",{name:"lang",hash:{},data:i}))+"</button>\n </div>\n <div>\n <span>"+c((t.lang||n&&n.lang||a).call(l,"dragDrop",{name:"lang",hash:{},data:i}))+'</span>\n </div>\n</div>\n<div class="p-3 bg-white container-fluid">\n <div class="row">\n <div class="col-4">\n <h4>'+c((t.lang||n&&n.lang||a).call(l,"help",{name:"lang",hash:{},data:i}))+'</h2>\n <div class="border-top pt-2">\n <ul>\n <li><a class="info-link" href="'+c(s(null!=(r=null!=n?n.options:n)?r.uploadArticleUrl:r,n))+'" target="_blank">'+c((t.lang||n&&n.lang||a).call(l,"instructionsHeading",{name:"lang",hash:{},data:i}))+'</a></li>\n </ul>\n </div>\n </div>\n <div class="col-8">\n <h4>'+c((t.lang||n&&n.lang||a).call(l,"termsHeading",{name:"lang",hash:{},data:i}))+'</h2>\n <div class="border-top pt-2">\n <ol>\n <li>'+c((t.lang||n&&n.lang||a).call(l,"term1",{name:"lang",hash:{},data:i}))+"</li>\n <li>"+c((t.lang||n&&n.lang||a).call(l,"term2",{name:"lang",hash:{},data:i}))+"</li>\n <li>"+(null!=(r=(t.lang||n&&n.lang||a).call(l,"term3",{name:"lang",hash:{classNames:null!=(r=null!=n?n.options:n)?r.classNames:r,uploadTermsUrl:null!=(r=null!=n?n.options:n)?r.uploadTermsUrl:r},data:i}))?r:"")+"</li>\n </ol>\n </div>\n </div>\n </div>\n</div>"},useData:!0})}}]);
@@ -1 +1 @@
1
- (self.webpackChunk_clickview_library_editor=self.webpackChunk_clickview_library_editor||[]).push([[6093],{36093:function(e,t,r){"use strict";r.r(t),r.d(t,{ErrorView:function(){return y}});var n=r(48088),o=r(31647),i=r(2882),u=r.n(i),c={image:"DlVFv"},l=r(50997);function a(e){return a="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},a(e)}function f(e,t){for(var r=0;r<t.length;r++){var n=t[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(e,(void 0,o=function(e,t){if("object"!==a(e)||null===e)return e;var r=e[Symbol.toPrimitive];if(void 0!==r){var n=r.call(e,"string");if("object"!==a(n))return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}(n.key),"symbol"===a(o)?o:String(o)),n)}var o}function s(e,t){return s=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(e,t){return e.__proto__=t,e},s(e,t)}function p(e){return p=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(e){return e.__proto__||Object.getPrototypeOf(e)},p(e)}var y=function(e){!function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),Object.defineProperty(e,"prototype",{writable:!1}),t&&s(e,t)}(b,e);var t,r,o,i,y=(o=b,i=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(e){return!1}}(),function(){var e,t=p(o);if(i){var r=p(this).constructor;e=Reflect.construct(t,arguments,r)}else e=t.apply(this,arguments);return function(e,t){if(t&&("object"===a(t)||"function"==typeof t))return t;if(void 0!==t)throw new TypeError("Derived constructors may only return object or undefined");return function(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}(e)}(this,e)});function b(){return function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,b),y.apply(this,arguments)}return t=b,(r=[{key:"initialize",value:function(){var e=n.Radio.channel("error:view");this.error=e.request("current:error")}},{key:"name",get:function(){return"ErrorView"}},{key:"title",get:function(){return!1}},{key:"className",get:function(){return"bg-white mt-3 p-5 text-center rounded"}},{key:"template",get:function(){return u()}},{key:"viewOptions",value:function(){return{heading:this.error.heading,description:this.error.description,imageUrl:l.Wn.Errors.GENERIC,styles:c}}}])&&f(t.prototype,r),Object.defineProperty(t,"prototype",{writable:!1}),b}(o.Q.View)},2882:function(e,t,r){var n=r(32227);e.exports=(n.default||n).template({compiler:[8,">= 4.3.0"],main:function(e,t,r,n,o){e.propertyIsEnumerable;var i,u=e.lambda,c=e.escapeExpression;return'<img src="'+c(u(null!=(i=null!=t?t.options:t)?i.imageUrl:i,t))+'" class="img-fluid '+c(u(null!=(i=null!=(i=null!=t?t.options:t)?i.styles:i)?i.image:i,t))+' pt-5 pb-3" />\r\n<h2 class="h6">'+c(u(null!=(i=null!=t?t.options:t)?i.heading:i,t))+'</h2>\r\n<p class="pb-5">'+(null!=(i=u(null!=(i=null!=t?t.options:t)?i.description:i,t))?i:"")+"</p>"},useData:!0})}}]);
1
+ (self.webpackChunk_clickview_library_editor=self.webpackChunk_clickview_library_editor||[]).push([[6093],{36093:function(e,t,r){"use strict";r.r(t),r.d(t,{ErrorView:function(){return y}});var n=r(48088),o=r(31647),i=r(2882),u=r.n(i),c={image:"DlVFv"},l=r(50997);function a(e){return a="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},a(e)}function f(e,t){for(var r=0;r<t.length;r++){var n=t[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(e,(void 0,o=function(e,t){if("object"!==a(e)||null===e)return e;var r=e[Symbol.toPrimitive];if(void 0!==r){var n=r.call(e,"string");if("object"!==a(n))return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}(n.key),"symbol"===a(o)?o:String(o)),n)}var o}function s(e,t){return s=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(e,t){return e.__proto__=t,e},s(e,t)}function p(e){return p=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(e){return e.__proto__||Object.getPrototypeOf(e)},p(e)}var y=function(e){!function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),Object.defineProperty(e,"prototype",{writable:!1}),t&&s(e,t)}(b,e);var t,r,o,i,y=(o=b,i=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(e){return!1}}(),function(){var e,t=p(o);if(i){var r=p(this).constructor;e=Reflect.construct(t,arguments,r)}else e=t.apply(this,arguments);return function(e,t){if(t&&("object"===a(t)||"function"==typeof t))return t;if(void 0!==t)throw new TypeError("Derived constructors may only return object or undefined");return function(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}(e)}(this,e)});function b(){return function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,b),y.apply(this,arguments)}return t=b,(r=[{key:"initialize",value:function(){var e=n.Radio.channel("error:view");this.error=e.request("current:error")}},{key:"name",get:function(){return"ErrorView"}},{key:"title",get:function(){return!1}},{key:"className",get:function(){return"bg-white mt-3 p-5 text-center rounded"}},{key:"template",get:function(){return u()}},{key:"viewOptions",value:function(){return{heading:this.error.heading,description:this.error.description,imageUrl:l.Wn.Errors.GENERIC,styles:c}}}])&&f(t.prototype,r),Object.defineProperty(t,"prototype",{writable:!1}),b}(o.Q.View)},2882:function(e,t,r){var n=r(32227);e.exports=(n.default||n).template({compiler:[8,">= 4.3.0"],main:function(e,t,r,n,o){e.propertyIsEnumerable;var i,u=e.lambda,c=e.escapeExpression;return'<img src="'+c(u(null!=(i=null!=t?t.options:t)?i.imageUrl:i,t))+'" class="img-fluid '+c(u(null!=(i=null!=(i=null!=t?t.options:t)?i.styles:i)?i.image:i,t))+' pt-5 pb-3" />\n<h2 class="h6">'+c(u(null!=(i=null!=t?t.options:t)?i.heading:i,t))+'</h2>\n<p class="pb-5">'+(null!=(i=u(null!=(i=null!=t?t.options:t)?i.description:i,t))?i:"")+"</p>"},useData:!0})}}]);
@@ -1 +1 @@
1
- (self.webpackChunk_clickview_library_editor=self.webpackChunk_clickview_library_editor||[]).push([[6220],{26328:function(e,t,i){"use strict";i.r(t),i.d(t,{AwaitingReviewView:function(){return O}});var n=i(39479),r=i(31647),o=i(21679),a=i(57857),s=i(48090),c=i(70763),l=i(71192),u=i(29457),d=i(14129),h=i(39090),f=i(82405),v=i(13809),p=i(48404),y=i(19226),g=i(46415),w=i(7572),b=i(71010),m=i.n(b),S=i(29565),V=i(95061);function k(e){return k="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},k(e)}function C(e,t){for(var i=0;i<t.length;i++){var n=t[i];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(e,(void 0,r=function(e,t){if("object"!==k(e)||null===e)return e;var i=e[Symbol.toPrimitive];if(void 0!==i){var n=i.call(e,"string");if("object"!==k(n))return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}(n.key),"symbol"===k(r)?r:String(r)),n)}var r}function T(e,t){return T=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(e,t){return e.__proto__=t,e},T(e,t)}function E(e){return E=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(e){return e.__proto__||Object.getPrototypeOf(e)},E(e)}var O=function(e){!function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),Object.defineProperty(e,"prototype",{writable:!1}),t&&T(e,t)}(_,e);var t,i,b,O,R=(b=_,O=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(e){return!1}}(),function(){var e,t=E(b);if(O){var i=E(this).constructor;e=Reflect.construct(t,arguments,i)}else e=t.apply(this,arguments);return function(e,t){if(t&&("object"===k(t)||"function"==typeof t))return t;if(void 0!==t)throw new TypeError("Derived constructors may only return object or undefined");return function(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}(e)}(this,e)});function _(){return function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,_),R.apply(this,arguments)}return t=_,(i=[{key:"initialize",value:function(){this.bindListeners(),this.contentUpdatesDataService=o.u.getInstance(s.Or.ContentUpdates,this),this.videoDataService=o.u.getInstance(s.Or.Video,this)}},{key:"name",get:function(){return"AwaitingReviewView"}},{key:"title",get:function(){return a.T.getPhrase(this.lang,"title")}},{key:"lang",get:function(){return"contentUpdates.awaitingReview"}},{key:"channelName",get:function(){return"".concat(this.name).concat(this.cid)}},{key:"className",get:function(){return"bg-white rounded"}},{key:"template",get:function(){return m()}},{key:"regions",value:function(){return{header:{el:".header-region",replaceElement:!0},leftNav:{el:".left-nav-region",replaceElement:!0},listHeader:{el:".list-header-region",replaceElement:!0,partialLoading:u.LP.AwaitingReviewHeader},videos:{el:".video-list-region",replaceElement:!0,partialLoading:u.LP.VideoGroupList}}}},{key:"bindListeners",value:function(){this.listenTo(s.Vk.CONTENT_UPDATES,"".concat(s.M_.VIDEOS_TO_REVIEW,":sync"),this.render),this.listenTo(s.Vk.CONTENT_UPDATES,"".concat(s.M_.LIBRARY_REVIEW_SETTINGS,":sync"),this.render),this.listenTo(s.Vk.RESTRICTED_VIDEO,"".concat(s.M_.VIDEOS_TO_REVIEW,":invalidate"),this.fetchVideos),this.listenTo(this.channelName,"approve:all",this.approveAllVideos),this.listenTo(this.channelName,"fetch:video:with:metadata",this.fetchVideoWithMetadata)}},{key:"approveAllVideos",value:function(){this.contentUpdatesDataService.approveAllVideos(n.bind(this.fetchVideos,this))}},{key:"redirectToPastReleases",value:function(){r.Q.AppLinkHelper.trigger({application:s.OV.CONTENT_UPDATES,action:s.eX.ContentUpdates.PAST_RELEASES},{replace:!0})}},{key:"getContentClassName",value:function(){var e="".concat(S.Z.content," border-left ").concat(S.Z.contentWithLeftNav);return this.videoCollection&&!this.videoCollection.length?e+=" d-inline-flex justify-content-center align-items-center":e+=" d-inline-block",e}},{key:"setVideosWithMetadata",value:function(){this.videoCollection&&!this.videosWithMetadata&&(this.videosWithMetadata=new c.t(this.videoCollection.map((function(e){return new l.n({id:e.get("id")})}))))}},{key:"renderHeader",value:function(){this.reviewSetting?this.showChildView("header",new w.u({activeTab:h.JI.AwaitingReview,reviewEnabled:this.reviewSetting.get("reviewPeriod")})):this.renderPartialLoading("header")}},{key:"renderLeftNav",value:function(){this.reviewSetting&&this.showChildView("leftNav",new g.m({supportSiteUrl:this.config.get("supportSiteUrl"),currentUser:this.currentUser}))}},{key:"renderListHeader",value:function(){this.videoCollection?this.videoCollection.length&&this.showChildView("listHeader",new d.U({collection:this.videoCollection,channelName:this.channelName})):this.renderPartialLoading("listHeader")}},{key:"renderVideos",value:function(){this.groupedVideoCollection?this.showChildView("videos",new f.D({collection:this.groupedVideoCollection,childOptions:{videoItemComponentType:v.UC.AwaitingReview,videosWithMetadata:this.videosWithMetadata,config:this.config,collectionViewChannel:this.channelName,currentUser:this.currentUser,libraries:this.libraries},emptyStateType:u.ub.AwaitingReview,emptyStateOptions:{heading:a.T.getPhrase(this.lang,"emptyStateHeading"),description:a.T.getPhrase(this.lang,"emptyStateDescription",{classNames:"disable-review info-link"})}})):this.renderPartialLoading("videos")}},{key:"fetchVideos",value:function(){this.videoCollection=this.contentUpdatesDataService.getVideosToReview(),this.videoCollection&&(this.setVideosWithMetadata(),this.groupedVideoCollection=h.hp.groupVideosByHostedLibrary(this.videoCollection))}},{key:"fetchVideoWithMetadata",value:function(e){var t=this;this.videoDataService.getVideo(e,(function(i){var n=t.videosWithMetadata.get(e);n&&(n.set(i.toJSON()),n.set({dataFetched:!0}))}))}},{key:"requiredResources",get:function(){return{config:p.p.config,currentUser:y.K.currentUser,libraries:V.T.libraries}}},{key:"onBeforeRender",value:function(){this.reviewSetting=this.contentUpdatesDataService.getLibraryReviewSettings(),this.fetchVideos(),this.reviewSetting&&!this.reviewSetting.get("reviewPeriod")&&this.redirectToPastReleases()}},{key:"viewOptions",value:function(){return{contentClass:this.getContentClassName()}}},{key:"onRender",value:function(){this.renderHeader(),this.renderLeftNav(),this.renderListHeader(),this.renderVideos()}}])&&C(t.prototype,i),Object.defineProperty(t,"prototype",{writable:!1}),_}(r.Q.View)},13809:function(e,t,i){"use strict";i.d(t,{UC:function(){return n.U}});var n=i(58688);i(86605),i(14898)},71010:function(e,t,i){var n=i(32227);e.exports=(n.default||n).template({compiler:[8,">= 4.3.0"],main:function(e,t,i,n,r){var o;return e.propertyIsEnumerable,'<div class="header-region"></div>\r\n<div class="left-nav-region"></div><div class="'+e.escapeExpression(e.lambda(null!=(o=null!=t?t.options:t)?o.contentClass:o,t))+'">\r\n<div class="list-header-region"></div>\r\n<div class="video-list-region"></div>\r\n</div>'},useData:!0})}}]);
1
+ (self.webpackChunk_clickview_library_editor=self.webpackChunk_clickview_library_editor||[]).push([[6220],{26328:function(e,t,i){"use strict";i.r(t),i.d(t,{AwaitingReviewView:function(){return O}});var n=i(39479),r=i(31647),o=i(21679),a=i(57857),s=i(48090),c=i(70763),l=i(71192),u=i(29457),d=i(14129),h=i(39090),f=i(82405),v=i(13809),p=i(48404),y=i(19226),g=i(46415),w=i(7572),b=i(71010),m=i.n(b),S=i(29565),V=i(95061);function k(e){return k="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},k(e)}function C(e,t){for(var i=0;i<t.length;i++){var n=t[i];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(e,(void 0,r=function(e,t){if("object"!==k(e)||null===e)return e;var i=e[Symbol.toPrimitive];if(void 0!==i){var n=i.call(e,"string");if("object"!==k(n))return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}(n.key),"symbol"===k(r)?r:String(r)),n)}var r}function T(e,t){return T=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(e,t){return e.__proto__=t,e},T(e,t)}function E(e){return E=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(e){return e.__proto__||Object.getPrototypeOf(e)},E(e)}var O=function(e){!function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),Object.defineProperty(e,"prototype",{writable:!1}),t&&T(e,t)}(_,e);var t,i,b,O,R=(b=_,O=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(e){return!1}}(),function(){var e,t=E(b);if(O){var i=E(this).constructor;e=Reflect.construct(t,arguments,i)}else e=t.apply(this,arguments);return function(e,t){if(t&&("object"===k(t)||"function"==typeof t))return t;if(void 0!==t)throw new TypeError("Derived constructors may only return object or undefined");return function(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}(e)}(this,e)});function _(){return function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,_),R.apply(this,arguments)}return t=_,(i=[{key:"initialize",value:function(){this.bindListeners(),this.contentUpdatesDataService=o.u.getInstance(s.Or.ContentUpdates,this),this.videoDataService=o.u.getInstance(s.Or.Video,this)}},{key:"name",get:function(){return"AwaitingReviewView"}},{key:"title",get:function(){return a.T.getPhrase(this.lang,"title")}},{key:"lang",get:function(){return"contentUpdates.awaitingReview"}},{key:"channelName",get:function(){return"".concat(this.name).concat(this.cid)}},{key:"className",get:function(){return"bg-white rounded"}},{key:"template",get:function(){return m()}},{key:"regions",value:function(){return{header:{el:".header-region",replaceElement:!0},leftNav:{el:".left-nav-region",replaceElement:!0},listHeader:{el:".list-header-region",replaceElement:!0,partialLoading:u.LP.AwaitingReviewHeader},videos:{el:".video-list-region",replaceElement:!0,partialLoading:u.LP.VideoGroupList}}}},{key:"bindListeners",value:function(){this.listenTo(s.Vk.CONTENT_UPDATES,"".concat(s.M_.VIDEOS_TO_REVIEW,":sync"),this.render),this.listenTo(s.Vk.CONTENT_UPDATES,"".concat(s.M_.LIBRARY_REVIEW_SETTINGS,":sync"),this.render),this.listenTo(s.Vk.RESTRICTED_VIDEO,"".concat(s.M_.VIDEOS_TO_REVIEW,":invalidate"),this.fetchVideos),this.listenTo(this.channelName,"approve:all",this.approveAllVideos),this.listenTo(this.channelName,"fetch:video:with:metadata",this.fetchVideoWithMetadata)}},{key:"approveAllVideos",value:function(){this.contentUpdatesDataService.approveAllVideos(n.bind(this.fetchVideos,this))}},{key:"redirectToPastReleases",value:function(){r.Q.AppLinkHelper.trigger({application:s.OV.CONTENT_UPDATES,action:s.eX.ContentUpdates.PAST_RELEASES},{replace:!0})}},{key:"getContentClassName",value:function(){var e="".concat(S.Z.content," border-left ").concat(S.Z.contentWithLeftNav);return this.videoCollection&&!this.videoCollection.length?e+=" d-inline-flex justify-content-center align-items-center":e+=" d-inline-block",e}},{key:"setVideosWithMetadata",value:function(){this.videoCollection&&!this.videosWithMetadata&&(this.videosWithMetadata=new c.t(this.videoCollection.map((function(e){return new l.n({id:e.get("id")})}))))}},{key:"renderHeader",value:function(){this.reviewSetting?this.showChildView("header",new w.u({activeTab:h.JI.AwaitingReview,reviewEnabled:this.reviewSetting.get("reviewPeriod")})):this.renderPartialLoading("header")}},{key:"renderLeftNav",value:function(){this.reviewSetting&&this.showChildView("leftNav",new g.m({supportSiteUrl:this.config.get("supportSiteUrl"),currentUser:this.currentUser}))}},{key:"renderListHeader",value:function(){this.videoCollection?this.videoCollection.length&&this.showChildView("listHeader",new d.U({collection:this.videoCollection,channelName:this.channelName})):this.renderPartialLoading("listHeader")}},{key:"renderVideos",value:function(){this.groupedVideoCollection?this.showChildView("videos",new f.D({collection:this.groupedVideoCollection,childOptions:{videoItemComponentType:v.UC.AwaitingReview,videosWithMetadata:this.videosWithMetadata,config:this.config,collectionViewChannel:this.channelName,currentUser:this.currentUser,libraries:this.libraries},emptyStateType:u.ub.AwaitingReview,emptyStateOptions:{heading:a.T.getPhrase(this.lang,"emptyStateHeading"),description:a.T.getPhrase(this.lang,"emptyStateDescription",{classNames:"disable-review info-link"})}})):this.renderPartialLoading("videos")}},{key:"fetchVideos",value:function(){this.videoCollection=this.contentUpdatesDataService.getVideosToReview(),this.videoCollection&&(this.setVideosWithMetadata(),this.groupedVideoCollection=h.hp.groupVideosByHostedLibrary(this.videoCollection))}},{key:"fetchVideoWithMetadata",value:function(e){var t=this;this.videoDataService.getVideo(e,(function(i){var n=t.videosWithMetadata.get(e);n&&(n.set(i.toJSON()),n.set({dataFetched:!0}))}))}},{key:"requiredResources",get:function(){return{config:p.p.config,currentUser:y.K.currentUser,libraries:V.T.libraries}}},{key:"onBeforeRender",value:function(){this.reviewSetting=this.contentUpdatesDataService.getLibraryReviewSettings(),this.fetchVideos(),this.reviewSetting&&!this.reviewSetting.get("reviewPeriod")&&this.redirectToPastReleases()}},{key:"viewOptions",value:function(){return{contentClass:this.getContentClassName()}}},{key:"onRender",value:function(){this.renderHeader(),this.renderLeftNav(),this.renderListHeader(),this.renderVideos()}}])&&C(t.prototype,i),Object.defineProperty(t,"prototype",{writable:!1}),_}(r.Q.View)},13809:function(e,t,i){"use strict";i.d(t,{UC:function(){return n.U}});var n=i(58688);i(86605),i(14898)},71010:function(e,t,i){var n=i(32227);e.exports=(n.default||n).template({compiler:[8,">= 4.3.0"],main:function(e,t,i,n,r){var o;return e.propertyIsEnumerable,'<div class="header-region"></div>\n<div class="left-nav-region"></div><div class="'+e.escapeExpression(e.lambda(null!=(o=null!=t?t.options:t)?o.contentClass:o,t))+'">\n<div class="list-header-region"></div>\n<div class="video-list-region"></div>\n</div>'},useData:!0})}}]);