@clickview/library-editor 1.34.0-rc.7 → 1.34.1

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 (99) hide show
  1. package/dist/bundles.json +1 -1
  2. package/dist/scripts/{1010-a4704e61de.chunk.js → 1010-0885c521b8.chunk.js} +1 -1
  3. package/dist/scripts/{1086-1e49d7436c.chunk.js → 1086-fe154012dd.chunk.js} +1 -1
  4. package/dist/scripts/{1216-3680236a27.chunk.js → 1216-d126efc56b.chunk.js} +1 -1
  5. package/dist/scripts/{1269-6898014713.chunk.js → 1269-2b37c230ee.chunk.js} +1 -1
  6. package/dist/scripts/1364-e6e04987d4.chunk.js +1 -0
  7. package/dist/scripts/1409-1e86b4eda5.chunk.js +1 -0
  8. package/dist/scripts/{1492-815b776897.chunk.js → 1492-91af564cb2.chunk.js} +1 -1
  9. package/dist/scripts/{1601-d11282915d.chunk.js → 1601-893f768f11.chunk.js} +2 -2
  10. package/dist/scripts/{1832-2c91ee3a51.chunk.js → 1832-4f4b6ba356.chunk.js} +1 -1
  11. package/dist/scripts/{1887-1f10bdcd32.chunk.js → 1887-954988b80e.chunk.js} +1 -1
  12. package/dist/scripts/{1911-90a2329c55.chunk.js → 1911-1dcbdf2ca3.chunk.js} +1 -1
  13. package/dist/scripts/{2254-28945bd10d.chunk.js → 2254-d8b8504476.chunk.js} +1 -1
  14. package/dist/scripts/{2417-5006b87aa9.chunk.js → 2417-274561b5b6.chunk.js} +1 -1
  15. package/dist/scripts/{243-7cbcd679de.chunk.js → 243-1dbfc3220c.chunk.js} +1 -1
  16. package/dist/scripts/259-d117cc1894.chunk.js +1 -0
  17. package/dist/scripts/{2692-4dec659d9d.chunk.js → 2692-aa369df8c9.chunk.js} +1 -1
  18. package/dist/scripts/{2888-0eeb8ded06.chunk.js → 2888-d50b64a6b4.chunk.js} +1 -1
  19. package/dist/scripts/{299-500f0b6af0.chunk.js → 299-ab469ed1ae.chunk.js} +1 -1
  20. package/dist/scripts/3096-669715698a.chunk.js +1 -0
  21. package/dist/scripts/{3400-a38cfe2a5d.chunk.js → 3400-c76a38cdf8.chunk.js} +1 -1
  22. package/dist/scripts/3525-c303e09399.chunk.js +2 -0
  23. package/dist/scripts/{3763-6f873cc545.chunk.js → 3763-dc8ddac371.chunk.js} +1 -1
  24. package/dist/scripts/{4177-2ce1a9bdaa.chunk.js → 4177-bdd5090174.chunk.js} +1 -1
  25. package/dist/scripts/{4201-84a6867187.chunk.js → 4201-625f4064dd.chunk.js} +1 -1
  26. package/dist/scripts/{4245-b2e9ec5ba5.chunk.js → 4245-a1a023cd7d.chunk.js} +1 -1
  27. package/dist/scripts/{4591-55fa691940.chunk.js → 4591-cb921b33c7.chunk.js} +1 -1
  28. package/dist/scripts/{4860-d42be62696.chunk.js → 4860-da56ee92fd.chunk.js} +1 -1
  29. package/dist/scripts/{4885-8b2fae075e.chunk.js → 4885-ece06ae02f.chunk.js} +1 -1
  30. package/dist/scripts/{514-0d0d21f74f.chunk.js → 514-3ffe5b2338.chunk.js} +1 -1
  31. package/dist/scripts/{5412-789cbf80a3.chunk.js → 5412-9846d1f676.chunk.js} +1 -1
  32. package/dist/scripts/{5418-c1287e4896.chunk.js → 5418-eca3699393.chunk.js} +1 -1
  33. package/dist/scripts/{5424-b185ba8a45.chunk.js → 5424-b39db67d02.chunk.js} +1 -1
  34. package/dist/scripts/5524-b4a0c38b11.chunk.js +1 -0
  35. package/dist/scripts/{5698-74d4735cbc.chunk.js → 5698-c93b7d0f23.chunk.js} +1 -1
  36. package/dist/scripts/{5747-05c9d61fe0.chunk.js → 5747-70016712db.chunk.js} +1 -1
  37. package/dist/scripts/{6093-d497dc9474.chunk.js → 6093-25b1188c94.chunk.js} +1 -1
  38. package/dist/scripts/61-c1d9ae9d3f.chunk.js +2 -0
  39. package/dist/scripts/{6220-dfa7ef3ad3.chunk.js → 6220-df69ae5053.chunk.js} +1 -1
  40. package/dist/scripts/{6357-8477d01a86.chunk.js → 6357-fce36786e9.chunk.js} +1 -1
  41. package/dist/scripts/{6505-f069c1fbe4.chunk.js → 6505-eda1d34b53.chunk.js} +1 -1
  42. package/dist/scripts/{6732-59d6dff740.chunk.js → 6732-99288b7716.chunk.js} +1 -1
  43. package/dist/scripts/{6774-c9e8698d5c.chunk.js → 6774-9b62595255.chunk.js} +1 -1
  44. package/dist/scripts/{6995-861706c8b2.chunk.js → 6995-a6f779a727.chunk.js} +1 -1
  45. package/dist/scripts/{6999-1b7d8256a1.chunk.js → 6999-32f5791926.chunk.js} +1 -1
  46. package/dist/scripts/{7002-29951169db.chunk.js → 7002-e88c82d257.chunk.js} +1 -1
  47. package/dist/scripts/{7053-86b05dc741.chunk.js → 7053-af84e27ffc.chunk.js} +1 -1
  48. package/dist/scripts/{708-ac4137af9c.chunk.js → 708-4cc63f751b.chunk.js} +1 -1
  49. package/dist/scripts/{7190-921073f4ef.chunk.js → 7190-cc85bd1c26.chunk.js} +1 -1
  50. package/dist/scripts/{7376-753fc6cb76.chunk.js → 7376-92729fc093.chunk.js} +1 -1
  51. package/dist/scripts/7634-cbe11fd31f.chunk.js +1 -0
  52. package/dist/scripts/{8362-e662057f79.chunk.js → 8362-ff7966140e.chunk.js} +1 -1
  53. package/dist/scripts/{8727-6104f06be6.chunk.js → 8727-12197a5a2b.chunk.js} +1 -1
  54. package/dist/scripts/{8762-97ee795453.chunk.js → 8762-6223770914.chunk.js} +1 -1
  55. package/dist/scripts/{8906-2f788f9242.chunk.js → 8906-746489f5ca.chunk.js} +1 -1
  56. package/dist/scripts/{8947-c600642573.chunk.js → 8947-fcd146181d.chunk.js} +1 -1
  57. package/dist/scripts/9215-c65cf4202e.chunk.js +2 -0
  58. package/dist/scripts/9219-0117d9169b.chunk.js +1 -0
  59. package/dist/scripts/9309-3c56aacfb6.chunk.js +1 -0
  60. package/dist/scripts/{9357-8cae90b1de.chunk.js → 9357-fade2427e7.chunk.js} +1 -1
  61. package/dist/scripts/{9695-ad43223301.chunk.js → 9695-d90471521a.chunk.js} +1 -1
  62. package/dist/scripts/9927-09536434a8.chunk.js +1 -0
  63. package/dist/scripts/{9976-e00c6a4cb7.chunk.js → 9976-91f8545a3c.chunk.js} +1 -1
  64. package/dist/scripts/bundle-452a6bbd77.min.js +2 -0
  65. package/package.json +73 -73
  66. package/typings/libs/CVEvents.d.ts +12 -12
  67. package/typings/libs/CVLanguages.d.ts +24 -24
  68. package/typings/libs/Environment.d.ts +10 -10
  69. package/typings/libs/LazyLoad.d.ts +29 -29
  70. package/typings/libs/LazyLoad.ts +27 -27
  71. package/typings/libs/backbone.validation.d.ts +99 -99
  72. package/typings/libs/cloneDeep.d.ts +4 -4
  73. package/typings/libs/cookiesjs.d.ts +24 -24
  74. package/typings/libs/draft-convert.d.ts +3 -3
  75. package/typings/libs/google-api.d.ts +4 -4
  76. package/typings/libs/microsoft-teams.d.ts +2 -2
  77. package/typings/libs/trackjs.d.ts +2 -2
  78. package/typings/libs/videojs-contrib-quality-levels.d.ts +30 -30
  79. package/typings/utils/imports.d.ts +9 -9
  80. package/dist/scripts/1364-17e2eeefbc.chunk.js +0 -1
  81. package/dist/scripts/1409-7dec2a8e18.chunk.js +0 -1
  82. package/dist/scripts/259-1e858db89a.chunk.js +0 -1
  83. package/dist/scripts/3096-ce0ed4447d.chunk.js +0 -1
  84. package/dist/scripts/3525-54f3afe02c.chunk.js +0 -2
  85. package/dist/scripts/5524-b4527dfc81.chunk.js +0 -1
  86. package/dist/scripts/61-f5a72e06da.chunk.js +0 -2
  87. package/dist/scripts/7634-8a81b8d57d.chunk.js +0 -1
  88. package/dist/scripts/9215-23e4e44ad3.chunk.js +0 -2
  89. package/dist/scripts/9219-f1a3581014.chunk.js +0 -1
  90. package/dist/scripts/9309-f68d1f311a.chunk.js +0 -1
  91. package/dist/scripts/9927-faf9b990b5.chunk.js +0 -1
  92. package/dist/scripts/bundle-d1576963eb.min.js +0 -2
  93. /package/dist/scripts/{1601-d11282915d.chunk.js.LICENSE.txt → 1601-893f768f11.chunk.js.LICENSE.txt} +0 -0
  94. /package/dist/scripts/{3525-54f3afe02c.chunk.js.LICENSE.txt → 3525-c303e09399.chunk.js.LICENSE.txt} +0 -0
  95. /package/dist/scripts/{3969-07f2d1c976.chunk.js → 3969-1b2647b886.chunk.js} +0 -0
  96. /package/dist/scripts/{61-f5a72e06da.chunk.js.LICENSE.txt → 61-c1d9ae9d3f.chunk.js.LICENSE.txt} +0 -0
  97. /package/dist/scripts/{8113-a5da448af4.chunk.js → 8113-c9edecedca.chunk.js} +0 -0
  98. /package/dist/scripts/{9215-23e4e44ad3.chunk.js.LICENSE.txt → 9215-c65cf4202e.chunk.js.LICENSE.txt} +0 -0
  99. /package/dist/scripts/{bundle-d1576963eb.min.js.LICENSE.txt → bundle-452a6bbd77.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(21679),o=i(57857),l=i(31647),a=i(52076),s=i(13156),c=i(10101),u=i(90680),h=i(88172),d=i(20072),f=i(48090),b=i(67670),y=i(61843),p=i(76001),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(f.Vk.LIBRARY,"libraries:sync",this.render),this.listenTo(f.Vk.VIDEO,"".concat(f.M_.VIDEOS_BY_ID,":").concat(this.options.videoIds.join(","),":sync"),this.render),this.listenTo(this.channelName,"library:selected",this.onLibrarySelected),this.listenTo(this.channelName,"folder:selected",this.onFolderSelected),this.libraryDataService=n.u.getInstance(f.Or.Library,this),this.videoDataService=n.u.getInstance(f.Or.Video,this)}},{key:"name",get:function(){return"MoveVideoView"}},{key:"title",get:function(){return this.options.videoIds&&o.T.getPhrase(this.lang,"title",{smartCount:this.options.videoIds.length})}},{key:"lang",get:function(){return"libraryEditor.moveVideo"}},{key:"channelName",get:function(){return y.N0.generateUniqueChannelName(this)}},{key:"libraryTreeKey",get:function(){return"libraryselect:".concat(this.cid)}},{key:"folderTreeKey",get:function(){return"folderselect:".concat(this.cid)}},{key:"template",get:function(){return m()}},{key:"regions",value:function(){return{folder:".folder-region",library:".library-region"}}},{key:"events",value:function(){return{submit:"onSubmit","click .submit":"onSubmit"}}},{key:"elements",get:function(){return{folderLabel:".folder-label"}}},{key:"behaviors",get:function(){var e,t,i,r,n=this;return[{title:o.T.getPhrase(this.lang,"heading",{smartCount:null!==(t=null===(e=this.options.videoIds)||void 0===e?void 0:e.length)&&void 0!==t?t:1}),behaviorClass:c.Yw,closeOnRoute:!1,spinnerButtonOptions:{channelName:this.channelName,model:this.spinnerModel=new b.v,buttonText:o.T.getPhrase(this.lang,"submit",{smartCount:null!==(r=null===(i=this.options.videoIds)||void 0===i?void 0:i.length)&&void 0!==r?r:1}),tooltip:function(){return n.getSubmitBtnTooltipOptions()},onClick:function(){return n.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=y.PU.getModelFromCollection(e.options.folderId,t.get("children"));!r.contains(i,+t.get("id"))||l?n.push(t):o.push(t)})),this.libraries=new u.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(h.ZV.Disabled))return{title:o.T.getPhrase(this.lang,"btnTooltip")}}},{key:"onLibrarySelected",value:function(e){var t=y.PU.getSelected(this.libraryTreeKey,this.libraries);t&&y.PU.deselectAll(this.folderTreeKey,t.get("children")),y.PU.setSelected(this.libraryTreeKey,e,this.libraries),this.hasMultipleLibraries()&&this.getUI("folderLabel").show(),this.spinnerModel.set(h.ZV.Disabled,!0),this.render()}},{key:"onFolderSelected",value:function(e,t){var i=y.PU.getSelected(this.libraryTreeKey,this.libraries).get("children");y.PU.setSelected(this.folderTreeKey,e,i,t),t||this.spinnerModel.set(h.ZV.Disabled,!1)}},{key:"onSubmit",value:function(){var e=this;this.spinnerModel.set(h.ZV.ShowSpinner,!0);var t,i,r=y.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=s.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(p.m.escapeExpression(e),"</strong>")}));if(1===e.length)return e[0];var t=o.T.getPhrase(this.lang,"and");return"".concat(e.slice(0,-1).join(", ")," ").concat(t," ").concat(e.slice(-1))}},{key:"logAction",value:function(e,t){var i={newParentId:t,oldParentId:this.options.folderId,count:e.length};1===e.length&&(i.id=r.first(e)),a.k.logUserAction(i,this.options.analyticsOptions)}},{key:"renderLibrarySelect",value:function(){if(this.libraries&&1!==this.libraries.length){var e=y.PU.getSelected(this.libraryTreeKey,this.libraries);this.showChildView("library",new g.A({collection:this.libraries,channelName:this.channelName,currentLibraryId:e?e.get("id"):null}))}}},{key:"renderFolderSelect",value:function(){var e=y.PU.getSelected(this.libraryTreeKey,this.libraries);this.showChildView("folder",new d.Y({collection:e.get("children"),channelName:this.channelName,folderTreeKey:this.folderTreeKey,disabledIds:[this.options.folderId]}))}},{key:"viewOptions",value:function(){var e,t;return{hasMultipleLibraries:this.hasMultipleLibraries(),hiddenLibraryNames:(null===(e=this.hiddenLibraryNames)||void 0===e?void 0:e.length)?this.getFormattedHiddenLibraryNames():"",hiddenLibraryNamesLength:null===(t=this.hiddenLibraryNames)||void 0===t?void 0:t.length}}},{key:"onBeforeRender",value:function(){var e=this;return this.libraries||this.libraryDataService.getLibraries((function(t){e.libraries=new u.q(t.filter((function(e){return!!e.get("children").length}))),e.hasMultipleLibraries()||e.onLibrarySelected(e.libraries.first()),e.filterLibrariesWithVideo(),e.render()})),this.collection||this.videoDataService.getVideos(this.options.videoIds,(function(t){e.collection=t,e.filterLibrariesWithVideo(),e.render()})),!!this.collection&&!!this.libraries}},{key:"onRender",value:function(){this.renderLibrarySelect(),y.PU.getSelected(this.libraryTreeKey,this.libraries)&&this.renderFolderSelect()}}])&&k(t.prototype,i),Object.defineProperty(t,"prototype",{writable:!1}),P}(l.Q.G7)},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
+ (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(21679),o=i(57857),l=i(31647),a=i(52076),s=i(13156),c=i(10101),u=i(90680),h=i(88172),d=i(20072),f=i(48090),b=i(67670),y=i(61843),p=i(76001),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(f.Vk.LIBRARY,"libraries:sync",this.render),this.listenTo(f.Vk.VIDEO,"".concat(f.M_.VIDEOS_BY_ID,":").concat(this.options.videoIds.join(","),":sync"),this.render),this.listenTo(this.channelName,"library:selected",this.onLibrarySelected),this.listenTo(this.channelName,"folder:selected",this.onFolderSelected),this.libraryDataService=n.u.getInstance(f.Or.Library,this),this.videoDataService=n.u.getInstance(f.Or.Video,this)}},{key:"name",get:function(){return"MoveVideoView"}},{key:"title",get:function(){return this.options.videoIds&&o.T.getPhrase(this.lang,"title",{smartCount:this.options.videoIds.length})}},{key:"lang",get:function(){return"libraryEditor.moveVideo"}},{key:"channelName",get:function(){return y.N0.generateUniqueChannelName(this)}},{key:"libraryTreeKey",get:function(){return"libraryselect:".concat(this.cid)}},{key:"folderTreeKey",get:function(){return"folderselect:".concat(this.cid)}},{key:"template",get:function(){return m()}},{key:"regions",value:function(){return{folder:".folder-region",library:".library-region"}}},{key:"events",value:function(){return{submit:"onSubmit","click .submit":"onSubmit"}}},{key:"elements",get:function(){return{folderLabel:".folder-label"}}},{key:"behaviors",get:function(){var e,t,i,r,n=this;return[{title:o.T.getPhrase(this.lang,"heading",{smartCount:null!==(t=null===(e=this.options.videoIds)||void 0===e?void 0:e.length)&&void 0!==t?t:1}),behaviorClass:c.Yw,closeOnRoute:!1,spinnerButtonOptions:{channelName:this.channelName,model:this.spinnerModel=new b.v,buttonText:o.T.getPhrase(this.lang,"submit",{smartCount:null!==(r=null===(i=this.options.videoIds)||void 0===i?void 0:i.length)&&void 0!==r?r:1}),tooltip:function(){return n.getSubmitBtnTooltipOptions()},onClick:function(){return n.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=y.PU.getModelFromCollection(e.options.folderId,t.get("children"));!r.contains(i,+t.get("id"))||l?n.push(t):o.push(t)})),this.libraries=new u.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(h.ZV.Disabled))return{title:o.T.getPhrase(this.lang,"btnTooltip")}}},{key:"onLibrarySelected",value:function(e){var t=y.PU.getSelected(this.libraryTreeKey,this.libraries);t&&y.PU.deselectAll(this.folderTreeKey,t.get("children")),y.PU.setSelected(this.libraryTreeKey,e,this.libraries),this.hasMultipleLibraries()&&this.getUI("folderLabel").show(),this.spinnerModel.set(h.ZV.Disabled,!0),this.render()}},{key:"onFolderSelected",value:function(e,t){var i=y.PU.getSelected(this.libraryTreeKey,this.libraries).get("children");y.PU.setSelected(this.folderTreeKey,e,i,t),t||this.spinnerModel.set(h.ZV.Disabled,!1)}},{key:"onSubmit",value:function(){var e=this;this.spinnerModel.set(h.ZV.ShowSpinner,!0);var t,i,r=y.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=s.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(p.m.escapeExpression(e),"</strong>")}));if(1===e.length)return e[0];var t=o.T.getPhrase(this.lang,"and");return"".concat(e.slice(0,-1).join(", ")," ").concat(t," ").concat(e.slice(-1))}},{key:"logAction",value:function(e,t){var i={newParentId:t,oldParentId:this.options.folderId,count:e.length};1===e.length&&(i.id=r.first(e)),a.k.logUserAction(i,this.options.analyticsOptions)}},{key:"renderLibrarySelect",value:function(){if(this.libraries&&1!==this.libraries.length){var e=y.PU.getSelected(this.libraryTreeKey,this.libraries);this.showChildView("library",new g.A({collection:this.libraries,channelName:this.channelName,currentLibraryId:e?e.get("id"):null}))}}},{key:"renderFolderSelect",value:function(){var e=y.PU.getSelected(this.libraryTreeKey,this.libraries);this.showChildView("folder",new d.Y({collection:e.get("children"),channelName:this.channelName,folderTreeKey:this.folderTreeKey,disabledIds:[this.options.folderId]}))}},{key:"viewOptions",value:function(){var e,t;return{hasMultipleLibraries:this.hasMultipleLibraries(),hiddenLibraryNames:(null===(e=this.hiddenLibraryNames)||void 0===e?void 0:e.length)?this.getFormattedHiddenLibraryNames():"",hiddenLibraryNamesLength:null===(t=this.hiddenLibraryNames)||void 0===t?void 0:t.length}}},{key:"onBeforeRender",value:function(){var e=this;return this.libraries||this.libraryDataService.getLibraries((function(t){e.libraries=new u.q(t.filter((function(e){return!!e.get("children").length}))),e.hasMultipleLibraries()||e.onLibrarySelected(e.libraries.first()),e.filterLibrariesWithVideo(),e.render()})),this.collection||this.videoDataService.getVideos(this.options.videoIds,(function(t){e.collection=t,e.filterLibrariesWithVideo(),e.render()})),!!this.collection&&!!this.libraries}},{key:"onRender",value:function(){this.renderLibrarySelect(),y.PU.getSelected(this.libraryTreeKey,this.libraries)&&this.renderFolderSelect()}}])&&k(t.prototype,i),Object.defineProperty(t,"prototype",{writable:!1}),P}(l.Q.G7)},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})}}]);
@@ -0,0 +1 @@
1
+ "use strict";(self.webpackChunk_clickview_library_editor=self.webpackChunk_clickview_library_editor||[]).push([[5524],{99828:function(e,t,r){r.d(t,{y:function(){return u}});var n=r(88483);function i(e){return i="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},i(e)}function o(e,t,r){return(t=function(e){var t=function(e,t){if("object"!==i(e)||null===e)return e;var r=e[Symbol.toPrimitive];if(void 0!==r){var n=r.call(e,"string");if("object"!==i(n))return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}(e);return"symbol"===i(t)?t:String(t)}(t))in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}var u=o(o(o(o(o(o(o(o(o({},n.__.Thumbnails,{width:1280,height:720}),n.__.Banners,{width:1200,height:222}),n.__.Covers,{width:512,height:512}),n.__.Posters,{width:1e3,height:1500}),n.__.TallPosters,{width:1080,height:1920}),n.__.HeroBanners,{width:1920,height:640}),n.__.None,{width:1,height:1}),n.__.Avatars,{width:256,height:256}),n.__.Logos,{width:128,height:128})},24365:function(e,t,r){r.r(t),r.d(t,{CropperHelper:function(){return v}});var n=r(1024),i=r.n(n),o=r(44645),u=r(51934),a=r.n(u),c=r(57857),l=r(71575),f=r(85610),s=r(99828);function p(e,t){return function(e){if(Array.isArray(e))return e}(e)||function(e,t){var r=null==e?null:"undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null!=r){var n,i,o,u,a=[],c=!0,l=!1;try{if(o=(r=r.call(e)).next,0===t){if(Object(r)!==r)return;c=!1}else for(;!(c=(n=o.call(r)).done)&&(a.push(n.value),a.length!==t);c=!0);}catch(e){l=!0,i=e}finally{try{if(!c&&null!=r.return&&(u=r.return(),Object(u)!==u))return}finally{if(l)throw i}}return a}}(e,t)||function(e,t){if(e){if("string"==typeof e)return h(e,t);var r=Object.prototype.toString.call(e).slice(8,-1);return"Object"===r&&e.constructor&&(r=e.constructor.name),"Map"===r||"Set"===r?Array.from(e):"Arguments"===r||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r)?h(e,t):void 0}}(e,t)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function h(e,t){(null==t||t>e.length)&&(t=e.length);for(var r=0,n=new Array(t);r<t;r++)n[r]=e[r];return n}var m=c.T.encloseNamespace("shared.imageCropper"),d=/data:([a-zA-Z0-9]+\/[a-zA-Z0-9-.+]+).*,.*/;function y(e){var t=p(i().useState(!1),2),r=t[0],n=t[1],o=p(i().useState(!1),2),u=o[0],c=o[1],h=i().useRef(),y=i().useRef();return i().useEffect((function(){var t=new Image;t.src=e.src;var r=h.current.offsetWidth/t.width,i=s.y[e.imageType],o={viewMode:2,autoCropArea:1,ready:function(){return n(!0)}};return i&&(o.minCropBoxWidth=i.width*r,o.minCropBoxHeight=i.height*r,o.aspectRatio=i.width/i.height),y.current=new(a())(h.current,o),function(){y.current.destroy()}}),[]),i().createElement(l.G,{title:m("title"),closePopup:e.closePopup,size:e.popupSize},i().createElement("div",null,i().createElement("img",{src:e.src,alt:e.alt,ref:h,className:"img img-fluid"})),i().createElement(f.u,null,i().createElement(f.u.Cancel,{onClick:e.closePopup}),i().createElement(f.u.Submit,{onClick:function(){if(r){var t=y.current.getCroppedCanvas().toDataURL(function(e){var t=e.match(d);if(t)return t[1]}(e.src));c(!0),e.onClickCrop(t,e.closePopup)}},text:m("crop"),variant:"dark",showSpinner:u})))}y.defaultProps={popupSize:"lg"};var v={renderCropper:function(e){var t=(0,o.s)(document.getElementById("dialog-region"));t.render(i().createElement(y,Object.assign({},e,{closePopup:function(){return t.unmount()}})))}}}}]);
@@ -1 +1 @@
1
- "use strict";(self.webpackChunk_clickview_library_editor=self.webpackChunk_clickview_library_editor||[]).push([[5698],{54096:function(e,t,n){n.d(t,{G:function(){return a}});var i=n(1024),r=n(21679);function a(e){var t,n;return t=e,n=r.u.getInstance(t),i.useEffect((function(){return function(){r.u.releaseInstance(t)}})),n}},38182:function(e,t,n){n.d(t,{q:function(){return u}});var i=n(1024),r=n.n(i),a=n(68003),o=n(88483),c=n(87013),s={avatar:"Gvwzj",dot:"JJHBJ"};function u(e){var t,n,i=e.imageUrl||(t=e.imageCdnUrl,(n=e.initials)?c.j.createUrl(a._.safeUrlConcat(t,"/v1/profile-images?initials=".concat(n)),{size:o.h2.Small}):"");return r().createElement("div",{className:"position-relative h-100 w-100"},r().createElement("div",{className:"".concat(s.avatar," ").concat((null==e?void 0:e.extraClasses)||""),style:{backgroundImage:"url('".concat(i,"')")}}," "),e.showDot&&r().createElement("div",{className:"".concat(s.dot," rounded-circle bg-danger")}))}},45458:function(e,t,n){n.d(t,{C:function(){return m},g:function(){return i}});var i,r=n(1024),a=n(57857),o=n(39396),c=n(63946),s=n(50028),u=n(27866),l=n(45428),d=n(63791),v=n(21974),p=a.T.encloseNamespace("shared.badges");function m(e){var t=e.type,n=e.data;if(!function(e,t){var n,r,a;return"boolean"==typeof t?!!t:e===i.Rating?t&&!!t.value:e===i.Resources?!!(null==t?void 0:t.length)||!!(null===(n=null==t?void 0:t.data)||void 0===n?void 0:n.length):e===i.Interactive?!!(null==t?void 0:t.length)||!!(null===(r=null==t?void 0:t.data)||void 0===r?void 0:r.length):e===i.Captions?!!(null==t?void 0:t.length)||!!(null===(a=null==t?void 0:t.data)||void 0===a?void 0:a.length):e===i.Status?"number"==typeof t:!!t}(t,n))return r.createElement(r.Fragment,null);var a=function(e,t){var n="";if(e===i.DurationApproximate&&(n="duration-badge-new px-2 rounded-pill text-nowrap d-flex align-items-center"),e===i.DurationExact&&(n="duration-badge"),e===i.Interactive&&(n="interactive-badge"),e===i.Rating&&(n="rating-badge ".concat(v.u.mapRatingToClass(t.value))),e===i.ProductionYear&&(n="production-year-badge"),e===i.Resources&&(n="resources-badge"),e===i.Captions)return"p-0";if(e===i.Status)return"badge ".concat(function(e){switch(e){case s.X.Published:return"bg-success";case s.X.Archived:case s.X.Rejected:return"bg-danger";case s.X.Draft:return"draft-badge px-2 rounded-pill text-nowrap d-flex align-items-center";case s.X.Pending:case s.X.Processing:return"bg-warning"}}(t));if(e===i.Trending)return"trending-badge px-2 d-flex align-items-center";if(e===i.Count&&(n="count-badge px-1 rounded"),e===i.Restriction){var r=l.l.mapRestrictionToClass(t.restrictions);return"restriction-badge rounded-pill px-2 d-flex align-items-center ".concat(r)}return"".concat("badge"," ").concat(n)}(t,n);a="".concat(a," ").concat(e.inline?"d-inline-block":"d-flex justify-content-center"," ").concat(e.className||"");var m=function(e,t){return e===i.Interactive?p("interactive"):e===i.DurationApproximate?u.T.ToDisplayDurationNewStyle(t):e===i.DurationExact?u.T.ToDisplayDuration(t):e===i.Rating?t.code:e===i.ProductionYear?t:e===i.Resources?p("resources"):e===i.Captions?r.createElement(o.x,{svgName:d.vn.CloseCaptionBadge}):e===i.Status?s.X[t]:e===i.Trending?r.createElement(r.Fragment,null,r.createElement(o.x,{svgName:d.vn.Trending}),r.createElement("span",{className:"ps-1"},t)):e===i.Count?t:e===i.Restriction?r.createElement(r.Fragment,null,r.createElement(o.x,{svgName:l.l.mapRestrictionToSvg(t.restrictions)}),r.createElement("span",null,l.l.mapRestrictionToText(t.restrictions,t.yearGroups))):void 0}(t,n),g=function(e,t){return e===i.Rating?{title:t.name,placement:"top"}:null}(t,n),f=e.inline&&"d-inline-block";return g?r.createElement("div",{className:"badge-wrapper d-inline"},r.createElement(c.u,Object.assign({},g,{spanHack:!0,spanHackClassName:f}),r.createElement("span",{className:a},m))):r.createElement("span",{className:"".concat(a," badge-wrapper")},m)}!function(e){e.DurationExact="duration-exact",e.DurationApproximate="duration-approximate",e.Interactive="interactive",e.Rating="rating",e.ProductionYear="production-year",e.Resources="resources",e.Captions="captions",e.Status="status",e.Trending="trending",e.Count="count",e.Restriction="restriction"}(i||(i={}))},44550:function(e,t,n){n.d(t,{c:function(){return a}});var i=n(1024),r=n(7121);function a(e){var t="d-flex align-items-center badge-list ".concat(r.Z.minHeight);return e.className&&(t+=" ".concat(e.className)),i.createElement("div",{className:t},e.children)}},84657:function(e,t,n){n.d(t,{t:function(){return a},v:function(){return r}});var i=n(50028),r={BASE_VIDEO_COLLECTION:"thumbnail,tags,rating,series,season,owner",VIDEO_COLLECTION:"(videoCollection)",SERIES:"tallposter,rating,banner",FOLDER:"banner,thumbnail",CLASSIFICATION_COLLECTION:"banner,cover,tallPoster",CLASSIFICATION:function(e){return"banner,cover,tallPoster,thumbnail,followers{id:".concat(e,"},pinnedVideos[count()]{limit:0},playlists[count()]{limit:0},series[count()]{limit:0}")},VIDEO:"series,season,rating,producers,glance,distributors,owner,subjectPresentationAudiences,resources[thumbnail,pdf],tags,productionCompanies,directors,links,thumbnail,interactives[thumbnail,_canBeConsumed,_isClickViewContent,owner[avatar]],clips[_canBeConsumed,owner[avatar],_isClickViewContent,_thumbnail],_canUpdate,_videoProgress,_canBeConsumed,categories[libraries],libraries,_canAddToLibrary,_restrictions,contentLicences",PLAYLIST:"cover,banner,owner,videos[count()]{limit:0,status:[".concat(i.X.Published,",").concat(i.X.Archived,"]},clips[count()]{limit:0},interactives[count()]{limit:0},followers[count()]{limit:0}"),PLAYLIST_COLLECTION:"videos[count()]{limit:0},interactives[count()]{limit:0},clips[count()]{limit:0},cover",CLIP:"(clip)",CLIP_COLLECTION:"(clipCollection)",INTERACTIVE:"(interactive)",LIBRARY_COLLECTION:"owner[logo]",LIBRARY:"owner[logo],categorytree"},a={CLASSIFICATION:"banner,cover,tallPoster,pinnedVideos[count()]{limit:0},playlists[count()]{limit:0},series[count()]{limit:0}",CLASSIFICATION_COLLECTION:"banner,cover,tallPoster",VIDEO:"series,season,rating,producers,glance,distributors,subjectPresentationAudiences,resources[thumbnail,pdf],tags,productionCompanies,directors,links,thumbnail,interactives[thumbnail,_canBeConsumed,_isClickViewContent],clips[_canBeConsumed,_isClickViewContent,_thumbnail],_canBeConsumed,categories,libraries",VIDEO_COLLECTION:"thumbnail,rating,series,season,subjectPresentationAudiences,subtitles{limit:1},_canBeConsumed"}},74421:function(e,t,n){var i;n.d(t,{E:function(){return i}}),function(e){e[e.Audience=1]="Audience",e[e.Category=2]="Category",e[e.Channel=3]="Channel",e[e.Chapter=4]="Chapter",e[e.Comment=5]="Comment",e[e.OwnerComment=6]="OwnerComment",e[e.Image=7]="Image",e[e.Thumbnail=8]="Thumbnail",e[e.Avatar=9]="Avatar",e[e.Banner=10]="Banner",e[e.Video=11]="Video",e[e.Trailer=12]="Trailer",e[e.Rating=13]="Rating",e[e.Topic=14]="Topic",e[e.Series=15]="Series",e[e.Season=16]="Season",e[e.HostedMediaObjectCollection=17]="HostedMediaObjectCollection",e[e.ExchangeCollection=18]="ExchangeCollection",e[e.CustomMediaObjectCollection=19]="CustomMediaObjectCollection",e[e.Playlist=20]="Playlist",e[e.ClickViewTvCollection=21]="ClickViewTvCollection",e[e.ClickViewProductionsCollection=22]="ClickViewProductionsCollection",e[e.User=23]="User",e[e.SystemUser=24]="SystemUser",e[e.Customer=25]="Customer",e[e.Country=26]="Country",e[e.Organisation=28]="Organisation",e[e.SystemOrganisation=29]="SystemOrganisation",e[e.Group=30]="Group",e[e.SystemGroup=31]="SystemGroup",e[e.FlagReason=32]="FlagReason",e[e.Library=33]="Library",e[e.Interactive=34]="Interactive",e[e.WorkspaceCollection=35]="WorkspaceCollection",e[e.Conversation=36]="Conversation",e[e.Message=37]="Message",e[e.Notification=38]="Notification",e[e.Clip=39]="Clip",e[e.Link=40]="Link",e[e.UserChannel=41]="UserChannel",e[e.Resource=42]="Resource",e[e.VideoStream=43]="VideoStream",e[e.AudioStream=44]="AudioStream",e[e.Tag=45]="Tag",e[e.Subtitle=46]="Subtitle",e[e.LicencedContentCollection=47]="LicencedContentCollection",e[e.PublicCollection=48]="PublicCollection",e[e.CategoryTree=49]="CategoryTree",e[e.Logo=50]="Logo",e[e.Permission=51]="Permission",e[e.Subject=52]="Subject",e[e.Field=53]="Field",e[e.Company=54]="Company",e[e.Person=55]="Person",e[e.Cover=56]="Cover",e[e.Poster=57]="Poster",e[e.SubjectAudience=58]="SubjectAudience",e[e.TallPoster=60]="TallPoster",e[e.Classroom=67]="Classroom",e[e.ClassroomGroup=68]="ClassroomGroup",e[e.UserProfile=74]="UserProfile"}(i||(i={}))},90547:function(e,t,n){var i;n.d(t,{r:function(){return i}}),function(e){e.XS="(max-width: 575px)",e.SM="(min-width: 576px) and (max-width: 767px)",e.MD="(min-width: 768px) and (max-width: 991px)",e.LG="(min-width: 992px)",e.XL="(min-width: 1200px)",e.XXL="(min-width: 1440px)",e.SMDown="(max-width: 576px)",e.MDDown="(max-width: 768px)",e.LGDown="(max-width: 992px)",e.XLDown="(max-width: 1200px)"}(i||(i={}))},34254:function(e,t,n){var i;n.d(t,{r:function(){return i}}),function(e){e[e.FilterOut=0]="FilterOut",e[e.StripMetadata=1]="StripMetadata"}(i||(i={}))},86257:function(e,t,n){var i;n.d(t,{L:function(){return i}}),function(e){e.Pdf="pdf",e.Image="image",e.PowerPoint="powerpoint",e.Document="document",e.Excel="excel",e.Zip="archive",e.File="text"}(i||(i={}))},87648:function(e,t,n){var i;n.d(t,{c:function(){return i}}),function(e){e.Custom="custom",e.User="year_group"}(i||(i={}))},89603:function(e,t,n){var i,r;n.d(t,{Q:function(){return i}}),function(e){e.Normal="normal",e.Pedagogy="pedagogy",e.Hidden="hidden",e.Skill="skill",e.Curation="curation"}(i||(i={})),function(e){e[e.Normal=0]="Normal",e[e.Pedagogy=1]="Pedagogy",e[e.Hidden=2]="Hidden",e[e.Skill=3]="Skill",e[e.Curation=4]="Curation"}(r||(r={}))},90335:function(e,t,n){var i;n.d(t,{D:function(){return i}}),function(e){e.Newest="newest",e.Oldest="oldest",e.RecentlyAdded="recently_added",e.AtoZ="atoz",e.ZtoA="ztoa",e.Series="series"}(i||(i={}))},332:function(e,t,n){n.d(t,{e:function(){return c}});var i=n(2248),r=n(68003),a=n(84657),o=n(34254),c={clip:function(e,t){return{key:"clip:".concat(e,":").concat(t),url:r._.urlBuilder("{gateway}/v1/objects/".concat(e),{query:a.v.CLIP,permissionFilterOption:t})}},clipWithAllInteractives:function(e,t){return{key:"clip:".concat(e,":").concat(t,":interactives"),url:r._.urlBuilder("{gateway}/v1/objects/".concat(e),{query:"".concat(a.v.CLIP,",interactives{status:[0,1]}"),permissionFilterOption:t}),normalize:!1}},publicClip:function(e,t,n,i){return{key:"clip:".concat(e,":public:").concat(t),url:r._.urlBuilder("/api/objects/".concat(e),{query:"_parentVideo,_canBeConsumed,_thumbnail",permissionFilterOption:o.r.StripMetadata,shareId:t}),bootstrapName:"shared:object:".concat(e),success:n,error:i}},sharedClip:function(e,t,n,i){return{key:"shared:clip:".concat(e),url:r._.urlBuilder("/api/objects/".concat(e),{shareId:t,query:a.v.CLIP}),success:n,error:i}},createClip:function(e,t,n,r,a){return{key:"create:clip",url:"{gateway}/v1/objects/".concat(e,"/clips"),data:t,type:i.k.POST,invalidationKeys:["videos:".concat(e),"my:videos"],success:n,error:r,always:a}},updateClip:function(e,t,n,r,a){return{key:"update:clip",url:"{gateway}/v1/objects/".concat(e),data:t,type:i.k.PUT,success:n,error:r,always:a}},deleteClip:function(e,t,n,r,a){return{key:"delete:clip",url:"{gateway}/v1/objects/".concat(e),type:i.k.DELETE,invalidationKeys:["videos:".concat(t),"my:videos"],success:n,error:r,always:a}}}},91432:function(e,t,n){n.d(t,{b:function(){return c}});var i=n(2248),r=n(68003),a=n(84657),o=n(34254),c={interactiveMetadata:function(e,t){return{url:r._.urlBuilder("{gateway}/v1/objects/".concat(e),{query:a.v.INTERACTIVE,permissionFilterOption:t}),key:"interactive:metadata:".concat(e,":").concat(t)}},sharedInteractiveMetadata:function(e,t,n,i){return{url:r._.urlBuilder("/api/objects/".concat(e),{shareId:t,query:a.v.INTERACTIVE}),key:"shared:interactive:metadata:".concat(e),success:n,error:i}},publicInteractiveMetadata:function(e,t,n,i){return{url:r._.urlBuilder("/api/objects/".concat(e),{query:"_parentVideo[rating],_canBeConsumed,_thumbnail",permissionFilterOption:o.r.StripMetadata,shareId:t}),key:"interactive:metadata:".concat(e,":public:").concat(t),bootstrapName:"shared:object:".concat(e),success:n,error:i}},interactive:function(e){return{url:"/api/domain/v1/interactives/".concat(e),key:"interactive:".concat(e)}},createInteractive:function(e,t,n){return{url:"/api/domain/v1/interactives",key:"create:interactive",type:i.k.POST,invalidationKeys:["my:videos"],data:e,success:t,error:n}},createInteractiveMetadata:function(e,t,n,r){return{url:"{gateway}/v1/objects/".concat(e,"/interactives"),key:"create:interactive:metadata",type:i.k.POST,data:t,success:n,error:r}},updateInteractive:function(e,t,n,r){return{url:"/api/domain/v1/interactives/".concat(e),key:"update:interactive",type:i.k.PUT,data:t,success:n,error:r,formatData:function(){return t}}},updateInteractiveMetadata:function(e,t,n,r){return{url:"{gateway}/v1/objects/".concat(e),key:"update:interactive:metadata",type:i.k.PUT,data:t,success:n,error:r}},interactiveResultSet:function(e,t){return{url:"/api/domain/v1/analytics/interactives/".concat(e,"/metadata/").concat(t),key:"interactive:result:set:".concat(e,":").concat(t)}},copyInteractive:function(e,t,n){return{url:"/api/domain/v1/interactives/".concat(e,"/copy"),key:"copy:interactive",type:i.k.POST,invalidationKeys:["interactive:".concat(e),"my:videos"],success:t,error:n}},deleteInteractiveMetadata:function(e,t,n){return{url:"{gateway}/v1/objects/".concat(e),key:"delete:interactive",type:i.k.DELETE,invalidationKeys:["interactive:".concat(e),"my:videos"],success:t,error:n}}}},77131:function(e,t,n){n.d(t,{R:function(){return g}});var i,r=n(2248),a=n(68003),o=n(84657),c=n(50028),s=n(74421),u=n(34254);!function(e){e.Series="series",e.Playlist="playlist",e.Widget="widget"}(i||(i={}));var l=n(15970),d=function(e,t){return a._.urlBuilder("/api/objects/".concat(e),{shareId:t,query:o.v.VIDEO})},v=function(e,t){return a._.urlBuilder("/api/objects/".concat(e),{query:"thumbnail,_canBeConsumed,series,season,rating",permissionFilterOption:u.r.StripMetadata,shareId:t})},p=function(e){return a._.urlBuilder("{gateway}/v1/objects",{"query.video":o.v.VIDEO_COLLECTION,"query.clip":o.v.CLIP_COLLECTION,"query.interactive":o.v.INTERACTIVE,id:e})},m=function(e){var t=e.videoId,n=e.context,r=e.collectionId,c=e.moviesAndTv,s={videoId:t,limit:25,query:o.v.VIDEO_COLLECTION};return n&&(n===i.Widget?s["context.widgetId"]=r:(s["context.collectionType"]=n,s["context.collectionId"]=r)),c&&(s["context.moviesAndTv"]=!0),a._.urlBuilder("{gateway}/v1/suggestions/related-videos",s)},g={video:function(e,t){return{url:a._.urlBuilder("{gateway}/v1/objects/".concat(e),{query:o.v.VIDEO,permissionFilterOption:t}),publicUrl:a._.urlBuilder("/api/objects/".concat(e),{query:o.t.VIDEO,permissionFilterOption:t}),key:"videos:".concat(e,":").concat(t),formatData:function(e){var t,n;return(null===(t=e.interactives)||void 0===t?void 0:t.data)&&(e.interactives.data=e.interactives.data.map((function(t){return Object.assign(Object.assign({},t),{_parentVideo:{id:e.id}})}))),(null===(n=e.clips)||void 0===n?void 0:n.data)&&(e.clips.data=e.clips.data.map((function(t){return Object.assign(Object.assign({},t),{_parentVideo:{id:e.id}})}))),e}}},publicVideo:function(e,t,n,i){return{url:v(e,t),key:"videos:".concat(e,":public:").concat(t),bootstrapName:"shared:object:".concat(e),success:n,error:i}},sharedVideo:function(e,t,n,i){return{url:d(e,t),key:"shared:video:".concat(e),formatData:function(e){var t,n;return(null===(t=e.interactives)||void 0===t?void 0:t.data)&&(e.interactives.data=e.interactives.data.map((function(t){return Object.assign(Object.assign({},t),{_parentVideo:{id:e.id}})}))),(null===(n=e.clips)||void 0===n?void 0:n.data)&&(e.clips.data=e.clips.data.map((function(t){return Object.assign(Object.assign({},t),{_parentVideo:{id:e.id}})}))),e},success:n,error:i}},myVideos:function(e,t){var n=o.v.VIDEO_COLLECTION,i=o.v.CLIP_COLLECTION,r=o.v.INTERACTIVE,l="videos[".concat(n,"]{libraries.typeid:").concat(s.E.WorkspaceCollection,"}"),d="clips[".concat(i,"]"),v="interactives[".concat(r,"]{status:[").concat(c.X.Published,",").concat(c.X.Draft,"]}"),p={query:"(".concat(l,"|").concat(d,"|").concat(v,"){orderbydesc:id}"),permissionFilterOption:u.r.StripMetadata};return t&&(p.cursor=t),{url:a._.urlBuilder("{gateway}/v1/objects/".concat(e,"/members"),p),key:"my:videos:".concat(t)}},videos:function(e,t){return{url:p(e),key:"videos:by:id:".concat(e.join(",")),success:t}},watchHistoryVideos:function(e,t){return{url:p(e),key:"watch:history:videos:by:id:".concat(e.join(",")),success:t}},updateVideo:function(e,t,n,i,a){return{key:"update:video:".concat(e),url:"{gateway}/v1/objects/".concat(e),type:r.k.PUT,data:t,success:n,error:i,always:a}},videoRatings:function(e,t){var n=e.map((function(e){return"id=".concat(e)}));if(n.length)return{url:"/api/domain/v2/objects?query=rating&".concat(n.join("&")),key:"video:ratings:by:id:".concat(e.join(",")),normalizeOptions:{namespace:t}}},getRestrictions:function(e){var t=e.slice().sort();return{url:"/api/domain/v1/restrictedobjects"+"?objectTypeId=".concat(s.E.Video).concat(t.map((function(e){return"&objectId=".concat(e)})).join("")),key:"restrictions:".concat(t.join(",")),normalizeOptions:{namespace:"domain",idAttribute:"objectId"}}},delete:function(e,t,n){return{url:"{gateway}/v1/objects/".concat(e),key:"delete:video",type:r.k.DELETE,success:t,error:n,invalidationKeys:["videos"]}},relatedVideos:function(e){var t=e.videoId,n=e.context,i=e.collectionId,r=e.moviesAndTv;return{url:m(e),key:"related:videos:".concat(t,":").concat(n,":").concat(i,":").concat(r)}},collectionVideos:function(e,t,n,i,r,c){var s=l.d.getVideoSortParam(t),d=(s?"{".concat(s,"}"):"")+o.v.VIDEO_COLLECTION;return{url:a._.urlBuilder("{gateway}/v1/objects/".concat(e,"/videos"),{cursor:n,query:d,permissionFilterOption:u.r.StripMetadata}),key:["folder","videos",e,n,t].filter((function(e){return!!e})).join(":"),success:i,error:r,always:c}},pointsOfInterest:function(e,t,n,i,r){var o={query:"{limit:100}",cursor:t};return{url:a._.urlBuilder("{gateway}/v1/objects/".concat(e,"/pointsofinterest"),o),publicUrl:a._.urlBuilder("/api/objects/".concat(e,"/pointsofinterest"),o),key:"pointsofinterest:".concat(e).concat(t?":".concat(t):""),success:n,error:i,always:r}},regionAlternatives:function(e,t,n,i){return{url:"/api/objects/videos/".concat(e,"/region-alternatives"),publicUrl:"/api/objects/videos/".concat(e,"/region-alternatives"),key:"video:regionAlternatives:".concat(e),normalize:!1,success:t,error:n,always:i}}}},2491:function(e,t,n){n.d(t,{Z:function(){return o}});var i=n(92159),r=n(21186),a=n(54096);function o(){var e=(0,a.G)(i.P.ALERT);return{success:function(t){e.success(t)()},error:function(t){e.error(t)()},warning:function(t){e.createAlert({type:r.NK.Warning,heading:r.R6.Warning,message:t})}}}},45428:function(e,t,n){n.d(t,{l:function(){return b}});var i,r,a,o,c=n(57857),s=n(56285),u=n(7121),l=n(87648),d=n(63791);function v(e){return v="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},v(e)}function p(e,t,n){return(t=function(e){var t=function(e,t){if("object"!==v(e)||null===e)return e;var n=e[Symbol.toPrimitive];if(void 0!==n){var i=n.call(e,"string");if("object"!==v(i))return i;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}(e);return"symbol"===v(t)?t:String(t)}(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}var m=c.T.encloseNamespace("shared.shared-utils"),g=(p(i={},l.c.Custom,u.Z.restrictionBadgeCustom),p(i,l.c.User,u.Z.restrictionBadgeUser),i),f=(p(r={},l.c.Custom,d.vn.Timer),p(r,l.c.User,d.vn.Lock),r),y=(p(a={},l.c.Custom,"restrictionCustom"),p(a,l.c.User,"restrictionYearGroup"),a),C=(p(o={},l.c.Custom,200),p(o,l.c.User,100),o),b={mapRestrictionToClass:function(e){var t;if(!(null===(t=null==e?void 0:e.value)||void 0===t?void 0:t.length))return"";var n=b.getWeightedRestriction(e.value);return g[n.type]},mapRestrictionToSvg:function(e){var t;if(!(null===(t=null==e?void 0:e.value)||void 0===t?void 0:t.length))return d.vn.Lock;var n=b.getWeightedRestriction(e.value);return f[n.type]},mapRestrictionToText:function(e,t){var n;if(!(null===(n=null==e?void 0:e.value)||void 0===n?void 0:n.length)||!(null==t?void 0:t.length))return"";var i=b.getWeightedRestriction(e.value),r=t.find((function(e){return e.value===i.yearGroup})),a=y[i.type];if(i.type===l.c.User)return r?m(a,{yearGroup:r.name}):m("restrictionStaff");if(i.type===l.c.Custom){var o=b.getRestrictionDuration(i);return o?m(a,{duration:o,smartCount:o}):m("restrictionCustomLessThanDay",{duration:o,smartCount:1})}return""},getWeightedRestriction:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"highest";if(e.length)return 1===e.length?e[0]:e.reduce((function(e,n){var i=C[e.type],r=C[n.type];return"highest"===t&&i>r||"lowest"===t&&i<r?e:n}))},getRestrictionByType:function(e,t){if(!b.hasRestrictions(e))return null;var n=Array.isArray(t)?t:[t],i=e._restrictions.value.filter((function(e){return n.includes(e.type)}));return b.getWeightedRestriction(i)},getRestrictionDuration:function(e){if(e.type===l.c.Custom&&e.expiresOn){var t=s.O.convertUTCToLocal(e.expiresOn);if(t)return s.O.diffBetween(t,new Date,"day")}},hasCustomRestriction:function(e){return!!b.getRestrictionByType(e,[l.c.Custom])},hasRestrictions:function(e){var t,n;return!!(null===(n=null===(t=null==e?void 0:e._restrictions)||void 0===t?void 0:t.value)||void 0===n?void 0:n.length)}}},21974:function(e,t,n){n.d(t,{u:function(){return l}});var i=n(57857),r=n(75459),a=n(86257),o=n(63791);function c(e){return c="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},c(e)}function s(e,t,n){return(t=function(e){var t=function(e,t){if("object"!==c(e)||null===e)return e;var n=e[Symbol.toPrimitive];if(void 0!==n){var i=n.call(e,"string");if("object"!==c(i))return i;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}(e);return"symbol"===c(t)?t:String(t)}(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}var u="shared.shared-utils",l={mapRatingToClass:function(e){return e?function(e){switch(!0){case e<32:return"bg-purple";case e<48:return"bg-green";case e<80:return"bg-info";case e<96:return"bg-red";case e<128:return"bg-pink";case e>=128:return"bg-yellow";default:return""}}(e):""},mapSourceToDisplayName:function(e,t){switch(e.type){case r.r.HostedLibrary:case r.r.CustomLibrary:return e.name;case r.r.Exchange:return i.T.getPhrase(u,"exchange");case r.r.Workspace:return i.T.getPhrase(u,t?"myVideos":"workspace");default:return""}},mapSourceToClass:function(e){switch(e){case r.r.HostedLibrary:case r.r.CustomLibrary:return"bg-info";case r.r.Exchange:return"bg-green";case r.r.Workspace:default:return"bg-red"}},isInteractive:function(e){var t,n;return!!(null===(n=null===(t=null==e?void 0:e.interactives)||void 0===t?void 0:t.data)||void 0===n?void 0:n.length)},mapTypeToSvg:function(e){var t,n=(s(t={},a.L.Pdf,o.vn.FilePDF),s(t,a.L.Image,o.vn.FileImg),s(t,a.L.PowerPoint,o.vn.FilePowerpoint),s(t,a.L.Document,o.vn.FileWord),s(t,a.L.Excel,o.vn.FileExcel),s(t,a.L.Zip,o.vn.FileZip),s(t,a.L.File,o.vn.File),t)[e];return n||(n=o.vn.Folder),n},mapTypeToClass:function(e){switch(e){case a.L.Pdf:return"icon-red";case a.L.Image:return"icon-purple";case a.L.Document:return"icon-blue";case a.L.Excel:return"icon-green";case a.L.PowerPoint:return"icon-orange";case a.L.Zip:return"icon-teal";case a.L.File:return"icon-gray";default:return""}},mapTypeToExtension:function(e){return e?{pdf:"pdf",image:"png",powerpoint:"pptx"}[e.toLowerCase()]:""},mapTypeToName:function(e){if(!e)return"";switch(e){case a.L.Pdf:return i.T.getPhrase(u,"pdf");case a.L.Image:return i.T.getPhrase(u,"image");case a.L.Document:return i.T.getPhrase(u,"document");case a.L.Excel:return i.T.getPhrase(u,"spreadsheet");case a.L.PowerPoint:return i.T.getPhrase(u,"presentation");case a.L.Zip:return i.T.getPhrase(u,"zipArchive");case a.L.File:return i.T.getPhrase(u,"file");default:return""}}}},12927:function(e,t,n){n.d(t,{M:function(){return y}});var i,r=n(11306),a=n(57857),o=n(31647),c=n(70065);!function(e){e.Screenrights="screenrights",e.Era="era",e.ClickView="clickview"}(i||(i={}));var s=n(50028),u=n(74421),l=n(87648),d=n(89603),v=n(332),p=n(91432),m=n(77131),g=n(45428),f=a.T.encloseNamespace("shared.shared-utils"),y={isVideo:function(e){return(null==e?void 0:e.typeId)===u.E.Video},isClip:function(e){return(null==e?void 0:e.typeId)===u.E.Clip},isInteractive:function(e){return(null==e?void 0:e.typeId)===u.E.Interactive},isVideoType:function(e){return y.isVideo(e)||y.isInteractive(e)||y.isClip(e)},hasSeries:function(e){var t;return!!(null===(t=null==e?void 0:e.series)||void 0===t?void 0:t.id)},getVideoProgress:function(e){var t,n;return(null==e?void 0:e.lastProgressPoint)?null==e?void 0:e.lastProgressPoint:(null===(t=null==e?void 0:e._videoProgress)||void 0===t?void 0:t.progress)?null===(n=null==e?void 0:e._videoProgress)||void 0===n?void 0:n.progress:0},getThumbnail:function(e){var t,n;return e?y.isVideo(e)?e.thumbnail:(null==e?void 0:e._thumbnail)?e._thumbnail:y.isClip(e)?e.thumbnail||(null===(t=e._parentVideo)||void 0===t?void 0:t.thumbnail):y.isInteractive(e)?null===(n=e._parentVideo)||void 0===n?void 0:n.thumbnail:void 0:null},getDuration:function(e){var t,n;if(e){if(y.isVideo(e))return e.duration;if(y.isInteractive(e)){if(null===(t=e._parentClip)||void 0===t?void 0:t.id)return 1e3*(e._parentClip.endTime-e._parentClip.startTime);if(null===(n=e._parentVideo)||void 0===n?void 0:n.duration)return e._parentVideo.duration}return y.isClip(e)?1e3*(e.endTime-e.startTime):void 0}},getAnalyticsEntity:function(e){return y.isVideo(e)?c.py.Video:y.isInteractive(e)?c.py.Interactive:y.isClip(e)?c.py.Clip:void 0},getCanBeConsumed:function(e){var t,n;return e&&y.isVideoType(e)?e._canBeConsumed?{canNavigate:"login-required"===(null===(t=e._canBeConsumed)||void 0===t?void 0:t.reason)&&y.isVideo(e)||!0===e._canBeConsumed.value,canConsume:e._canBeConsumed.value,reason:null===(n=e._canBeConsumed)||void 0===n?void 0:n.reason}:{canNavigate:!0,canConsume:!0}:{canNavigate:!1,canConsume:!1}},getPrivacyReasoning:function(e){var t,n=arguments.length>1&&void 0!==arguments[1]&&arguments[1],i=y.getCanBeConsumed(e),r=i.canConsume,a=i.canNavigate,o=i.reason,c=function(){return y.isClip(e)?f("clipLoginRequired"):y.isInteractive(e)?f("interactiveLoginRequired"):f("videoLoginRequired")};if(!r&&!a){if(n)return c();switch(o){case"rating-not-allowed":return f("ratingNotAllowed");case"video-deleted":return y.isClip(e)?f("clipParentDeleted"):y.isInteractive(e)?f("interactiveParentDeleted"):f("videoDeleted");case"clickview-private":return f("clickViewPrivate");case"private":default:return f("genericCannotAccess");case"login-required":return c();case"restricted-access":var u=g.l.getWeightedRestriction(null===(t=e._restrictions)||void 0===t?void 0:t.value);return(null==u?void 0:u.type)===l.c.Custom?f("awaitingApproval"):f("restrictedAccess")}}return y.isInteractive(e)&&e.status===s.X.Draft?f("draftInteractive"):""},getTitle:function(e){if(e.name)return e.name;var t=y.getCanBeConsumed(e),n=t.canConsume,i=t.reason;return f(n||"private"!==i?n||"video-deleted"!==i?"privateVideo":"videoUnavailable":"privateVideo")},getParentVideo:function(e){return y.isVideo(e)?e:y.isClip(e)||y.isInteractive(e)?e._parentVideo:void 0},showWhyThisVideo:function(e){var t,n;return!!y.isVideo(e)&&!!(null===(n=null===(t=e.tags)||void 0===t?void 0:t.data)||void 0===n?void 0:n.some((function(e){return e.tagType===d.Q.Pedagogy||e.tagType===d.Q.Skill})))},showWhatsIncluded:function(e){var t,n,i,r,a,o;if(!y.isVideo(e))return!1;var c=!!(null===(n=null===(t=e.interactives)||void 0===t?void 0:t.data)||void 0===n?void 0:n.length),s=!!(null===(r=null===(i=e.resources)||void 0===i?void 0:i.data)||void 0===r?void 0:r.length),u=!!(null===(o=null===(a=e.subtitles)||void 0===a?void 0:a.data)||void 0===o?void 0:o.length);return c||s||u},getRating:function(e){var t;return y.isVideo(e)?e.rating:null===(t=null==e?void 0:e._parentVideo)||void 0===t?void 0:t.rating},getVideoRequest:function(e,t,n){if(n){switch(t){case u.E.Video:return m.R.sharedVideo(e,n);case u.E.Clip:return v.e.sharedClip(e,n);case u.E.Interactive:return p.b.sharedInteractiveMetadata(e,n)}o.Q.Ry.throw(new r.H("Unsupported master type"))}switch(t){case u.E.Video:return m.R.video(e);case u.E.Clip:return v.e.clip(e);case u.E.Interactive:return p.b.interactiveMetadata(e)}o.Q.Ry.throw(new r.H("Unsupported master type"))},isBroadcast:function(e){var t,n;return!!(null===(n=null===(t=null==e?void 0:e.contentLicences)||void 0===t?void 0:t.data)||void 0===n?void 0:n.some((function(e){return e.systemName===i.Era||e.systemName===i.Screenrights})))}}},15970:function(e,t,n){n.d(t,{d:function(){return o}});var i=n(4705),r=n(90335),a=r.D.RecentlyAdded,o={getValidSortTypeFromParam:function(e){return Object.values(r.D).includes(e)?e:r.D.Newest},getOrSetSortType:function(e,t,n){var r=function(e){return"video:sort:".concat(e)}(e);return!t&&i.SG.cacheExists(r)||i.SG.cacheSet(r,t||n||a),t||(t=i.SG.cacheGet(r)),t},getVideoSortParam:function(e){switch(e){case r.D.AtoZ:return"orderby:name";case r.D.ZtoA:return"orderbydesc:name";case r.D.Newest:return"orderbydesc:datecreated";case r.D.Oldest:return"orderby:datecreated";case r.D.RecentlyAdded:return"orderbydesc:timestamp";case r.D.Series:return"orderby:seriessort";default:return}}}},7121:function(e,t){t.Z={minHeight:"jEh7m",restrictionBadgeCustom:"WQ2eS",restrictionBadgeUser:"z4DeQ"}}}]);
1
+ "use strict";(self.webpackChunk_clickview_library_editor=self.webpackChunk_clickview_library_editor||[]).push([[5698],{54096:function(e,t,n){n.d(t,{G:function(){return a}});var i=n(1024),r=n(21679);function a(e){var t,n;return t=e,n=r.u.getInstance(t),i.useEffect((function(){return function(){r.u.releaseInstance(t)}})),n}},38182:function(e,t,n){n.d(t,{q:function(){return u}});var i=n(1024),r=n.n(i),a=n(68003),o=n(88483),c=n(87013),s={avatar:"Gvwzj",dot:"JJHBJ"};function u(e){var t,n,i=e.imageUrl||(t=e.imageCdnUrl,(n=e.initials)?c.j.createUrl(a._.safeUrlConcat(t,"/v1/profile-images?initials=".concat(n)),{size:o.h2.Small}):"");return r().createElement("div",{className:"position-relative h-100 w-100"},r().createElement("div",{className:"".concat(s.avatar," ").concat((null==e?void 0:e.extraClasses)||""),style:{backgroundImage:"url('".concat(i,"')")}}," "),e.showDot&&r().createElement("div",{className:"".concat(s.dot," rounded-circle bg-danger")}))}},45458:function(e,t,n){n.d(t,{C:function(){return m},g:function(){return i}});var i,r=n(1024),a=n(57857),o=n(39396),c=n(63946),s=n(50028),u=n(27866),l=n(45428),d=n(63791),v=n(21974),p=a.T.encloseNamespace("shared.badges");function m(e){var t=e.type,n=e.data;if(!function(e,t){var n,r,a;return"boolean"==typeof t?!!t:e===i.Rating?t&&!!t.value:e===i.Resources?!!(null==t?void 0:t.length)||!!(null===(n=null==t?void 0:t.data)||void 0===n?void 0:n.length):e===i.Interactive?!!(null==t?void 0:t.length)||!!(null===(r=null==t?void 0:t.data)||void 0===r?void 0:r.length):e===i.Captions?!!(null==t?void 0:t.length)||!!(null===(a=null==t?void 0:t.data)||void 0===a?void 0:a.length):e===i.Status?"number"==typeof t:!!t}(t,n))return r.createElement(r.Fragment,null);var a=function(e,t){var n="";if(e===i.DurationApproximate&&(n="duration-badge-new px-2 rounded-pill text-nowrap d-flex align-items-center"),e===i.DurationExact&&(n="duration-badge"),e===i.Interactive&&(n="interactive-badge"),e===i.Rating&&(n="rating-badge ".concat(v.u.mapRatingToClass(t.value))),e===i.ProductionYear&&(n="production-year-badge"),e===i.Resources&&(n="resources-badge"),e===i.Captions)return"p-0";if(e===i.Status)return"badge ".concat(function(e){switch(e){case s.X.Published:return"bg-success";case s.X.Archived:case s.X.Rejected:return"bg-danger";case s.X.Draft:return"draft-badge px-2 rounded-pill text-nowrap d-flex align-items-center";case s.X.Pending:case s.X.Processing:return"bg-warning"}}(t));if(e===i.Trending)return"trending-badge px-2 d-flex align-items-center";if(e===i.Count&&(n="count-badge px-1 rounded"),e===i.Restriction){var r=l.l.mapRestrictionToClass(t.restrictions);return"restriction-badge rounded-pill px-2 d-flex align-items-center ".concat(r)}return"".concat("badge"," ").concat(n)}(t,n);a="".concat(a," ").concat(e.inline?"d-inline-block":"d-flex justify-content-center"," ").concat(e.className||"");var m=function(e,t){return e===i.Interactive?p("interactive"):e===i.DurationApproximate?u.T.ToDisplayDurationNewStyle(t):e===i.DurationExact?u.T.ToDisplayDuration(t):e===i.Rating?t.code:e===i.ProductionYear?t:e===i.Resources?p("resources"):e===i.Captions?r.createElement(o.x,{svgName:d.vn.CloseCaptionBadge}):e===i.Status?s.X[t]:e===i.Trending?r.createElement(r.Fragment,null,r.createElement(o.x,{svgName:d.vn.Trending}),r.createElement("span",{className:"ps-1"},t)):e===i.Count?t:e===i.Restriction?r.createElement(r.Fragment,null,r.createElement(o.x,{svgName:l.l.mapRestrictionToSvg(t.restrictions)}),r.createElement("span",null,l.l.mapRestrictionToText(t.restrictions,t.yearGroups))):void 0}(t,n),g=function(e,t){return e===i.Rating?{title:t.name,placement:"top"}:null}(t,n),f=e.inline&&"d-inline-block";return g?r.createElement("div",{className:"badge-wrapper d-inline"},r.createElement(c.u,Object.assign({},g,{spanHack:!0,spanHackClassName:f}),r.createElement("span",{className:a},m))):r.createElement("span",{className:"".concat(a," badge-wrapper")},m)}!function(e){e.DurationExact="duration-exact",e.DurationApproximate="duration-approximate",e.Interactive="interactive",e.Rating="rating",e.ProductionYear="production-year",e.Resources="resources",e.Captions="captions",e.Status="status",e.Trending="trending",e.Count="count",e.Restriction="restriction"}(i||(i={}))},44550:function(e,t,n){n.d(t,{c:function(){return a}});var i=n(1024),r=n(7121);function a(e){var t="d-flex align-items-center badge-list ".concat(r.Z.minHeight);return e.className&&(t+=" ".concat(e.className)),i.createElement("div",{className:t},e.children)}},84657:function(e,t,n){n.d(t,{t:function(){return a},v:function(){return r}});var i=n(50028),r={BASE_VIDEO_COLLECTION:"thumbnail,tags,rating,series,season,owner",VIDEO_COLLECTION:"(videoCollection)",SERIES:"tallposter,rating,banner",FOLDER:"banner,thumbnail",CLASSIFICATION_COLLECTION:"banner,cover,tallPoster",CLASSIFICATION:function(e){return"banner,cover,tallPoster,thumbnail,followers{id:".concat(e,"},pinnedVideos[count()]{limit:0},playlists[count()]{limit:0},series[count()]{limit:0}")},VIDEO:"series,season,rating,producers,glance,distributors,owner,subjectPresentationAudiences,resources[thumbnail,pdf],tags,productionCompanies,directors,links,thumbnail,interactives[thumbnail,_canBeConsumed,_isClickViewContent,owner[avatar]],clips[_canBeConsumed,owner[avatar],_isClickViewContent,_thumbnail],_canUpdate,_videoProgress,_canBeConsumed,categories[libraries],libraries,_canAddToLibrary,_restrictions,contentLicences",PLAYLIST:"cover,banner,owner,videos[count()]{limit:0,status:[".concat(i.X.Published,",").concat(i.X.Archived,"]},clips[count()]{limit:0},interactives[count()]{limit:0},followers[count()]{limit:0}"),PLAYLIST_COLLECTION:"videos[count()]{limit:0},interactives[count()]{limit:0},clips[count()]{limit:0},cover",CLIP:"(clip)",CLIP_COLLECTION:"(clipCollection)",INTERACTIVE:"(interactive)",LIBRARY_COLLECTION:"owner[logo]",LIBRARY:"owner[logo],categorytree"},a={CLASSIFICATION:"banner,cover,tallPoster,pinnedVideos[count()]{limit:0},playlists[count()]{limit:0},series[count()]{limit:0}",CLASSIFICATION_COLLECTION:"banner,cover,tallPoster",VIDEO:"series,season,rating,producers,glance,distributors,subjectPresentationAudiences,resources[thumbnail,pdf],tags,productionCompanies,directors,links,thumbnail,interactives[thumbnail,_canBeConsumed,_isClickViewContent],clips[_canBeConsumed,_isClickViewContent,_thumbnail],_canBeConsumed,categories,libraries",VIDEO_COLLECTION:"thumbnail,rating,series,season,subjectPresentationAudiences,subtitles{limit:1},_canBeConsumed"}},74421:function(e,t,n){var i;n.d(t,{E:function(){return i}}),function(e){e[e.Audience=1]="Audience",e[e.Category=2]="Category",e[e.Channel=3]="Channel",e[e.Chapter=4]="Chapter",e[e.Comment=5]="Comment",e[e.OwnerComment=6]="OwnerComment",e[e.Image=7]="Image",e[e.Thumbnail=8]="Thumbnail",e[e.Avatar=9]="Avatar",e[e.Banner=10]="Banner",e[e.Video=11]="Video",e[e.Trailer=12]="Trailer",e[e.Rating=13]="Rating",e[e.Topic=14]="Topic",e[e.Series=15]="Series",e[e.Season=16]="Season",e[e.HostedMediaObjectCollection=17]="HostedMediaObjectCollection",e[e.ExchangeCollection=18]="ExchangeCollection",e[e.CustomMediaObjectCollection=19]="CustomMediaObjectCollection",e[e.Playlist=20]="Playlist",e[e.ClickViewTvCollection=21]="ClickViewTvCollection",e[e.ClickViewProductionsCollection=22]="ClickViewProductionsCollection",e[e.User=23]="User",e[e.SystemUser=24]="SystemUser",e[e.Customer=25]="Customer",e[e.Country=26]="Country",e[e.Organisation=28]="Organisation",e[e.SystemOrganisation=29]="SystemOrganisation",e[e.Group=30]="Group",e[e.SystemGroup=31]="SystemGroup",e[e.FlagReason=32]="FlagReason",e[e.Library=33]="Library",e[e.Interactive=34]="Interactive",e[e.WorkspaceCollection=35]="WorkspaceCollection",e[e.Conversation=36]="Conversation",e[e.Message=37]="Message",e[e.Notification=38]="Notification",e[e.Clip=39]="Clip",e[e.Link=40]="Link",e[e.UserChannel=41]="UserChannel",e[e.Resource=42]="Resource",e[e.VideoStream=43]="VideoStream",e[e.AudioStream=44]="AudioStream",e[e.Tag=45]="Tag",e[e.Subtitle=46]="Subtitle",e[e.LicencedContentCollection=47]="LicencedContentCollection",e[e.PublicCollection=48]="PublicCollection",e[e.CategoryTree=49]="CategoryTree",e[e.Logo=50]="Logo",e[e.Permission=51]="Permission",e[e.Subject=52]="Subject",e[e.Field=53]="Field",e[e.Company=54]="Company",e[e.Person=55]="Person",e[e.Cover=56]="Cover",e[e.Poster=57]="Poster",e[e.SubjectAudience=58]="SubjectAudience",e[e.TallPoster=60]="TallPoster",e[e.Classroom=67]="Classroom",e[e.ClassroomGroup=68]="ClassroomGroup",e[e.UserProfile=74]="UserProfile"}(i||(i={}))},90547:function(e,t,n){var i;n.d(t,{r:function(){return i}}),function(e){e.XS="(max-width: 575px)",e.SM="(min-width: 576px) and (max-width: 767px)",e.MD="(min-width: 768px) and (max-width: 991px)",e.LG="(min-width: 992px)",e.XL="(min-width: 1200px)",e.XXL="(min-width: 1440px)",e.SMDown="(max-width: 576px)",e.MDDown="(max-width: 768px)",e.LGDown="(max-width: 992px)",e.XLDown="(max-width: 1200px)"}(i||(i={}))},34254:function(e,t,n){var i;n.d(t,{r:function(){return i}}),function(e){e[e.FilterOut=0]="FilterOut",e[e.StripMetadata=1]="StripMetadata"}(i||(i={}))},86257:function(e,t,n){var i;n.d(t,{L:function(){return i}}),function(e){e.Pdf="pdf",e.Image="image",e.PowerPoint="powerpoint",e.Document="document",e.Excel="excel",e.Zip="archive",e.File="text"}(i||(i={}))},87648:function(e,t,n){var i;n.d(t,{c:function(){return i}}),function(e){e.Custom="custom",e.User="year_group"}(i||(i={}))},89603:function(e,t,n){var i,r;n.d(t,{Q:function(){return i}}),function(e){e.Normal="normal",e.Pedagogy="pedagogy",e.Hidden="hidden",e.Skill="skill",e.Curation="curation"}(i||(i={})),function(e){e[e.Normal=0]="Normal",e[e.Pedagogy=1]="Pedagogy",e[e.Hidden=2]="Hidden",e[e.Skill=3]="Skill",e[e.Curation=4]="Curation"}(r||(r={}))},90335:function(e,t,n){var i;n.d(t,{D:function(){return i}}),function(e){e.Newest="newest",e.Oldest="oldest",e.RecentlyAdded="recently_added",e.AtoZ="atoz",e.ZtoA="ztoa",e.Series="series"}(i||(i={}))},332:function(e,t,n){n.d(t,{e:function(){return c}});var i=n(2248),r=n(68003),a=n(84657),o=n(34254),c={clip:function(e,t){return{key:"clip:".concat(e,":").concat(t),url:r._.urlBuilder("{gateway}/v1/objects/".concat(e),{query:a.v.CLIP,permissionFilterOption:t})}},clipWithAllInteractives:function(e,t){return{key:"clip:".concat(e,":").concat(t,":interactives"),url:r._.urlBuilder("{gateway}/v1/objects/".concat(e),{query:"".concat(a.v.CLIP,",interactives{status:[0,1]}"),permissionFilterOption:t}),normalize:!1}},publicClip:function(e,t,n,i){return{key:"clip:".concat(e,":public:").concat(t),url:r._.urlBuilder("/api/objects/".concat(e),{query:"_parentVideo,_canBeConsumed,_thumbnail",permissionFilterOption:o.r.StripMetadata,shareId:t}),bootstrapName:"shared:object:".concat(e),success:n,error:i}},sharedClip:function(e,t,n,i){return{key:"shared:clip:".concat(e),url:r._.urlBuilder("/api/objects/".concat(e),{shareId:t,query:a.v.CLIP}),success:n,error:i}},createClip:function(e,t,n,r,a){return{key:"create:clip",url:"{gateway}/v1/objects/".concat(e,"/clips"),data:t,type:i.k.POST,invalidationKeys:["videos:".concat(e),"my:videos"],success:n,error:r,always:a}},updateClip:function(e,t,n,r,a){return{key:"update:clip",url:"{gateway}/v1/objects/".concat(e),data:t,type:i.k.PUT,success:n,error:r,always:a}},deleteClip:function(e,t,n,r,a){return{key:"delete:clip",url:"{gateway}/v1/objects/".concat(e),type:i.k.DELETE,invalidationKeys:["videos:".concat(t),"my:videos"],success:n,error:r,always:a}}}},91432:function(e,t,n){n.d(t,{b:function(){return c}});var i=n(2248),r=n(68003),a=n(84657),o=n(34254),c={interactiveMetadata:function(e,t){return{url:r._.urlBuilder("{gateway}/v1/objects/".concat(e),{query:a.v.INTERACTIVE,permissionFilterOption:t}),key:"interactive:metadata:".concat(e,":").concat(t)}},sharedInteractiveMetadata:function(e,t,n,i){return{url:r._.urlBuilder("/api/objects/".concat(e),{shareId:t,query:a.v.INTERACTIVE}),key:"shared:interactive:metadata:".concat(e),success:n,error:i}},publicInteractiveMetadata:function(e,t,n,i){return{url:r._.urlBuilder("/api/objects/".concat(e),{query:"_parentVideo[rating],_canBeConsumed,_thumbnail",permissionFilterOption:o.r.StripMetadata,shareId:t}),key:"interactive:metadata:".concat(e,":public:").concat(t),bootstrapName:"shared:object:".concat(e),success:n,error:i}},interactive:function(e){return{url:"/api/domain/v1/interactives/".concat(e),key:"interactive:".concat(e)}},createInteractive:function(e,t,n){return{url:"/api/domain/v1/interactives",key:"create:interactive",type:i.k.POST,invalidationKeys:["my:videos"],data:e,success:t,error:n}},createInteractiveMetadata:function(e,t,n,r){return{url:"{gateway}/v1/objects/".concat(e,"/interactives"),key:"create:interactive:metadata",type:i.k.POST,data:t,success:n,error:r}},updateInteractive:function(e,t,n,r){return{url:"/api/domain/v1/interactives/".concat(e),key:"update:interactive",type:i.k.PUT,data:t,success:n,error:r,formatData:function(){return t}}},updateInteractiveMetadata:function(e,t,n,r){return{url:"{gateway}/v1/objects/".concat(e),key:"update:interactive:metadata",type:i.k.PUT,data:t,success:n,error:r}},interactiveResultSet:function(e,t){return{url:"/api/domain/v1/analytics/interactives/".concat(e,"/metadata/").concat(t),key:"interactive:result:set:".concat(e,":").concat(t)}},copyInteractive:function(e,t,n){return{url:"/api/domain/v1/interactives/".concat(e,"/copy"),key:"copy:interactive",type:i.k.POST,invalidationKeys:["interactive:".concat(e),"my:videos"],success:t,error:n}},deleteInteractiveMetadata:function(e,t,n){return{url:"{gateway}/v1/objects/".concat(e),key:"delete:interactive",type:i.k.DELETE,invalidationKeys:["interactive:".concat(e),"my:videos"],success:t,error:n}}}},77131:function(e,t,n){n.d(t,{R:function(){return g}});var i,r=n(2248),a=n(68003),o=n(84657),c=n(50028),s=n(74421),u=n(34254);!function(e){e.Series="series",e.Playlist="playlist",e.Widget="widget"}(i||(i={}));var l=n(15970),d=function(e,t){return a._.urlBuilder("/api/objects/".concat(e),{shareId:t,query:o.v.VIDEO})},v=function(e,t){return a._.urlBuilder("/api/objects/".concat(e),{query:"thumbnail,_canBeConsumed,series,season,rating",permissionFilterOption:u.r.StripMetadata,shareId:t})},p=function(e){return a._.urlBuilder("{gateway}/v1/objects",{"query.video":o.v.VIDEO_COLLECTION,"query.clip":o.v.CLIP_COLLECTION,"query.interactive":o.v.INTERACTIVE,id:e})},m=function(e){var t=e.videoId,n=e.context,r=e.collectionId,c=e.moviesAndTv,s={videoId:t,limit:25,query:o.v.VIDEO_COLLECTION};return n&&(n===i.Widget?s["context.widgetId"]=r:(s["context.collectionType"]=n,s["context.collectionId"]=r)),c&&(s["context.moviesAndTv"]=!0),a._.urlBuilder("{gateway}/v1/suggestions/related-videos",s)},g={video:function(e,t){return{url:a._.urlBuilder("{gateway}/v1/objects/".concat(e),{query:o.v.VIDEO,permissionFilterOption:t}),publicUrl:a._.urlBuilder("/api/objects/".concat(e),{query:o.t.VIDEO,permissionFilterOption:t}),key:"videos:".concat(e,":").concat(t),formatData:function(e){var t,n;return(null===(t=e.interactives)||void 0===t?void 0:t.data)&&(e.interactives.data=e.interactives.data.map((function(t){return Object.assign(Object.assign({},t),{_parentVideo:{id:e.id}})}))),(null===(n=e.clips)||void 0===n?void 0:n.data)&&(e.clips.data=e.clips.data.map((function(t){return Object.assign(Object.assign({},t),{_parentVideo:{id:e.id}})}))),e}}},publicVideo:function(e,t,n,i){return{url:v(e,t),key:"videos:".concat(e,":public:").concat(t),bootstrapName:"shared:object:".concat(e),success:n,error:i}},sharedVideo:function(e,t,n,i){return{url:d(e,t),key:"shared:video:".concat(e),formatData:function(e){var t,n;return(null===(t=e.interactives)||void 0===t?void 0:t.data)&&(e.interactives.data=e.interactives.data.map((function(t){return Object.assign(Object.assign({},t),{_parentVideo:{id:e.id}})}))),(null===(n=e.clips)||void 0===n?void 0:n.data)&&(e.clips.data=e.clips.data.map((function(t){return Object.assign(Object.assign({},t),{_parentVideo:{id:e.id}})}))),e},success:n,error:i}},myVideos:function(e,t){var n=o.v.VIDEO_COLLECTION,i=o.v.CLIP_COLLECTION,r=o.v.INTERACTIVE,l="videos[".concat(n,"]{libraries.typeid:").concat(s.E.WorkspaceCollection,"}"),d="clips[".concat(i,"]"),v="interactives[".concat(r,"]{status:[").concat(c.X.Published,",").concat(c.X.Draft,"]}"),p={query:"(".concat(l,"|").concat(d,"|").concat(v,"){orderbydesc:id}"),permissionFilterOption:u.r.StripMetadata};return t&&(p.cursor=t),{url:a._.urlBuilder("{gateway}/v1/objects/".concat(e,"/members"),p),key:"my:videos:".concat(t)}},videos:function(e,t){return{url:p(e),key:"videos:by:id:".concat(e.join(",")),success:t}},watchHistoryVideos:function(e,t){return{url:p(e),key:"watch:history:videos:by:id:".concat(e.join(",")),success:t}},updateVideo:function(e,t,n,i,a){return{key:"update:video:".concat(e),url:"{gateway}/v1/objects/".concat(e),type:r.k.PUT,data:t,success:n,error:i,always:a}},videoRatings:function(e,t){var n=e.map((function(e){return"id=".concat(e)}));if(n.length)return{url:"/api/domain/v2/objects?query=rating&".concat(n.join("&")),key:"video:ratings:by:id:".concat(e.join(",")),normalizeOptions:{namespace:t}}},getRestrictions:function(e){var t=e.slice().sort();return{url:"/api/domain/v1/restrictedobjects"+"?objectTypeId=".concat(s.E.Video).concat(t.map((function(e){return"&objectId=".concat(e)})).join("")),key:"restrictions:".concat(t.join(",")),normalizeOptions:{namespace:"domain",idAttribute:"objectId"}}},delete:function(e,t,n){return{url:"{gateway}/v1/objects/".concat(e),key:"delete:video",type:r.k.DELETE,success:t,error:n,invalidationKeys:["videos"]}},relatedVideos:function(e){var t=e.videoId,n=e.context,i=e.collectionId,r=e.moviesAndTv;return{url:m(e),key:"related:videos:".concat(t,":").concat(n,":").concat(i,":").concat(r)}},collectionVideos:function(e,t,n,i,r,c){var s=l.d.getVideoSortParam(t),d=(s?"{".concat(s,"}"):"")+o.v.VIDEO_COLLECTION;return{url:a._.urlBuilder("{gateway}/v1/objects/".concat(e,"/videos"),{cursor:n,query:d,permissionFilterOption:u.r.StripMetadata}),key:["folder","videos",e,n,t].filter((function(e){return!!e})).join(":"),success:i,error:r,always:c}},pointsOfInterest:function(e,t,n,i,r){var o={query:"{limit:100}",cursor:t};return{url:a._.urlBuilder("{gateway}/v1/objects/".concat(e,"/pointsofinterest"),o),publicUrl:a._.urlBuilder("/api/objects/".concat(e,"/pointsofinterest"),o),key:"pointsofinterest:".concat(e).concat(t?":".concat(t):""),success:n,error:i,always:r}},regionAlternatives:function(e,t,n,i){return{url:"/api/objects/videos/".concat(e,"/region-alternatives"),publicUrl:"/api/objects/videos/".concat(e,"/region-alternatives"),key:"video:regionAlternatives:".concat(e),normalize:!1,success:t,error:n,always:i}}}},2491:function(e,t,n){n.d(t,{Z:function(){return o}});var i=n(92159),r=n(21186),a=n(54096);function o(){var e=(0,a.G)(i.P.ALERT);return{success:function(t){e.success(t)()},error:function(t){e.error(t)()},warning:function(t){e.createAlert({type:r.NK.Warning,heading:r.R6.Warning,message:t})}}}},45428:function(e,t,n){n.d(t,{l:function(){return g}});var i=n(57857),r=n(56285),a=n(7121),o=n(87648),c=n(63791);function s(e){return s="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},s(e)}function u(e,t,n){return(t=function(e){var t=function(e,t){if("object"!==s(e)||null===e)return e;var n=e[Symbol.toPrimitive];if(void 0!==n){var i=n.call(e,"string");if("object"!==s(i))return i;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}(e);return"symbol"===s(t)?t:String(t)}(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}var l=i.T.encloseNamespace("shared.shared-utils"),d=u(u({},o.c.Custom,a.Z.restrictionBadgeCustom),o.c.User,a.Z.restrictionBadgeUser),v=u(u({},o.c.Custom,c.vn.Timer),o.c.User,c.vn.Lock),p=u(u({},o.c.Custom,"restrictionCustom"),o.c.User,"restrictionYearGroup"),m=u(u({},o.c.Custom,200),o.c.User,100),g={mapRestrictionToClass:function(e){var t;if(!(null===(t=null==e?void 0:e.value)||void 0===t?void 0:t.length))return"";var n=g.getWeightedRestriction(e.value);return d[n.type]},mapRestrictionToSvg:function(e){var t;if(!(null===(t=null==e?void 0:e.value)||void 0===t?void 0:t.length))return c.vn.Lock;var n=g.getWeightedRestriction(e.value);return v[n.type]},mapRestrictionToText:function(e,t){var n;if(!(null===(n=null==e?void 0:e.value)||void 0===n?void 0:n.length)||!(null==t?void 0:t.length))return"";var i=g.getWeightedRestriction(e.value),r=t.find((function(e){return e.value===i.yearGroup})),a=p[i.type];if(i.type===o.c.User)return null===i.yearGroup?l("restrictionStaff"):r?l(a,{yearGroup:r.name}):"";if(i.type===o.c.Custom){var c=g.getRestrictionDuration(i);return c?l(a,{duration:c,smartCount:c}):l("restrictionCustomLessThanDay",{duration:c,smartCount:1})}return""},getWeightedRestriction:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"highest";if(e.length)return 1===e.length?e[0]:e.reduce((function(e,n){var i=m[e.type],r=m[n.type];return"highest"===t&&i>r||"lowest"===t&&i<r?e:n}))},getRestrictionByType:function(e,t){if(!g.hasRestrictions(e))return null;var n=Array.isArray(t)?t:[t],i=e._restrictions.value.filter((function(e){return n.includes(e.type)}));return g.getWeightedRestriction(i)},getRestrictionDuration:function(e){if(e.type===o.c.Custom&&e.expiresOn){var t=r.O.convertUTCToLocal(e.expiresOn);if(t)return r.O.diffBetween(t,new Date,"day")}},hasCustomRestriction:function(e){return!!g.getRestrictionByType(e,[o.c.Custom])},hasRestrictions:function(e){var t,n;return!!(null===(n=null===(t=null==e?void 0:e._restrictions)||void 0===t?void 0:t.value)||void 0===n?void 0:n.length)}}},21974:function(e,t,n){n.d(t,{u:function(){return l}});var i=n(57857),r=n(75459),a=n(86257),o=n(63791);function c(e){return c="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},c(e)}function s(e,t,n){return(t=function(e){var t=function(e,t){if("object"!==c(e)||null===e)return e;var n=e[Symbol.toPrimitive];if(void 0!==n){var i=n.call(e,"string");if("object"!==c(i))return i;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}(e);return"symbol"===c(t)?t:String(t)}(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}var u="shared.shared-utils",l={mapRatingToClass:function(e){return e?function(e){switch(!0){case e<32:return"bg-purple";case e<48:return"bg-green";case e<80:return"bg-info";case e<96:return"bg-red";case e<128:return"bg-pink";case e>=128:return"bg-yellow";default:return""}}(e):""},mapSourceToDisplayName:function(e,t){switch(e.type){case r.r.HostedLibrary:case r.r.CustomLibrary:return e.name;case r.r.Exchange:return i.T.getPhrase(u,"exchange");case r.r.Workspace:return i.T.getPhrase(u,t?"myVideos":"workspace");default:return""}},mapSourceToClass:function(e){switch(e){case r.r.HostedLibrary:case r.r.CustomLibrary:return"bg-info";case r.r.Exchange:return"bg-green";case r.r.Workspace:default:return"bg-red"}},isInteractive:function(e){var t,n;return!!(null===(n=null===(t=null==e?void 0:e.interactives)||void 0===t?void 0:t.data)||void 0===n?void 0:n.length)},mapTypeToSvg:function(e){var t=s(s(s(s(s(s(s({},a.L.Pdf,o.vn.FilePDF),a.L.Image,o.vn.FileImg),a.L.PowerPoint,o.vn.FilePowerpoint),a.L.Document,o.vn.FileWord),a.L.Excel,o.vn.FileExcel),a.L.Zip,o.vn.FileZip),a.L.File,o.vn.File)[e];return t||(t=o.vn.Folder),t},mapTypeToClass:function(e){switch(e){case a.L.Pdf:return"icon-red";case a.L.Image:return"icon-purple";case a.L.Document:return"icon-blue";case a.L.Excel:return"icon-green";case a.L.PowerPoint:return"icon-orange";case a.L.Zip:return"icon-teal";case a.L.File:return"icon-gray";default:return""}},mapTypeToExtension:function(e){return e?{pdf:"pdf",image:"png",powerpoint:"pptx"}[e.toLowerCase()]:""},mapTypeToName:function(e){if(!e)return"";switch(e){case a.L.Pdf:return i.T.getPhrase(u,"pdf");case a.L.Image:return i.T.getPhrase(u,"image");case a.L.Document:return i.T.getPhrase(u,"document");case a.L.Excel:return i.T.getPhrase(u,"spreadsheet");case a.L.PowerPoint:return i.T.getPhrase(u,"presentation");case a.L.Zip:return i.T.getPhrase(u,"zipArchive");case a.L.File:return i.T.getPhrase(u,"file");default:return""}}}},12927:function(e,t,n){n.d(t,{M:function(){return y}});var i,r=n(11306),a=n(57857),o=n(31647),c=n(70065);!function(e){e.Screenrights="screenrights",e.Era="era",e.ClickView="clickview"}(i||(i={}));var s=n(50028),u=n(74421),l=n(87648),d=n(89603),v=n(332),p=n(91432),m=n(77131),g=n(45428),f=a.T.encloseNamespace("shared.shared-utils"),y={isVideo:function(e){return(null==e?void 0:e.typeId)===u.E.Video},isClip:function(e){return(null==e?void 0:e.typeId)===u.E.Clip},isInteractive:function(e){return(null==e?void 0:e.typeId)===u.E.Interactive},isVideoType:function(e){return y.isVideo(e)||y.isInteractive(e)||y.isClip(e)},hasSeries:function(e){var t;return!!(null===(t=null==e?void 0:e.series)||void 0===t?void 0:t.id)},getVideoProgress:function(e){var t,n;return(null==e?void 0:e.lastProgressPoint)?null==e?void 0:e.lastProgressPoint:(null===(t=null==e?void 0:e._videoProgress)||void 0===t?void 0:t.progress)?null===(n=null==e?void 0:e._videoProgress)||void 0===n?void 0:n.progress:0},getThumbnail:function(e){var t,n;return e?y.isVideo(e)?e.thumbnail:(null==e?void 0:e._thumbnail)?e._thumbnail:y.isClip(e)?e.thumbnail||(null===(t=e._parentVideo)||void 0===t?void 0:t.thumbnail):y.isInteractive(e)?null===(n=e._parentVideo)||void 0===n?void 0:n.thumbnail:void 0:null},getDuration:function(e){var t,n;if(e){if(y.isVideo(e))return e.duration;if(y.isInteractive(e)){if(null===(t=e._parentClip)||void 0===t?void 0:t.id)return 1e3*(e._parentClip.endTime-e._parentClip.startTime);if(null===(n=e._parentVideo)||void 0===n?void 0:n.duration)return e._parentVideo.duration}return y.isClip(e)?1e3*(e.endTime-e.startTime):void 0}},getAnalyticsEntity:function(e){return y.isVideo(e)?c.py.Video:y.isInteractive(e)?c.py.Interactive:y.isClip(e)?c.py.Clip:void 0},getCanBeConsumed:function(e){var t,n;return e&&y.isVideoType(e)?e._canBeConsumed?{canNavigate:"login-required"===(null===(t=e._canBeConsumed)||void 0===t?void 0:t.reason)&&y.isVideo(e)||!0===e._canBeConsumed.value,canConsume:e._canBeConsumed.value,reason:null===(n=e._canBeConsumed)||void 0===n?void 0:n.reason}:{canNavigate:!0,canConsume:!0}:{canNavigate:!1,canConsume:!1}},getPrivacyReasoning:function(e){var t,n=arguments.length>1&&void 0!==arguments[1]&&arguments[1],i=y.getCanBeConsumed(e),r=i.canConsume,a=i.canNavigate,o=i.reason,c=function(){return y.isClip(e)?f("clipLoginRequired"):y.isInteractive(e)?f("interactiveLoginRequired"):f("videoLoginRequired")};if(!r&&!a){if(n)return c();switch(o){case"rating-not-allowed":return f("ratingNotAllowed");case"video-deleted":return y.isClip(e)?f("clipParentDeleted"):y.isInteractive(e)?f("interactiveParentDeleted"):f("videoDeleted");case"clickview-private":return f("clickViewPrivate");case"private":default:return f("genericCannotAccess");case"login-required":return c();case"restricted-access":var u=g.l.getWeightedRestriction(null===(t=e._restrictions)||void 0===t?void 0:t.value);return(null==u?void 0:u.type)===l.c.Custom?f("awaitingApproval"):f("restrictedAccess")}}return y.isInteractive(e)&&e.status===s.X.Draft?f("draftInteractive"):""},getTitle:function(e){if(e.name)return e.name;var t=y.getCanBeConsumed(e),n=t.canConsume,i=t.reason;return f(n||"private"!==i?n||"video-deleted"!==i?"privateVideo":"videoUnavailable":"privateVideo")},getParentVideo:function(e){return y.isVideo(e)?e:y.isClip(e)||y.isInteractive(e)?e._parentVideo:void 0},showWhyThisVideo:function(e){var t,n;return!!y.isVideo(e)&&!!(null===(n=null===(t=e.tags)||void 0===t?void 0:t.data)||void 0===n?void 0:n.some((function(e){return e.tagType===d.Q.Pedagogy||e.tagType===d.Q.Skill})))},showWhatsIncluded:function(e){var t,n,i,r,a,o;if(!y.isVideo(e))return!1;var c=!!(null===(n=null===(t=e.interactives)||void 0===t?void 0:t.data)||void 0===n?void 0:n.length),s=!!(null===(r=null===(i=e.resources)||void 0===i?void 0:i.data)||void 0===r?void 0:r.length),u=!!(null===(o=null===(a=e.subtitles)||void 0===a?void 0:a.data)||void 0===o?void 0:o.length);return c||s||u},getRating:function(e){var t;return y.isVideo(e)?e.rating:null===(t=null==e?void 0:e._parentVideo)||void 0===t?void 0:t.rating},getVideoRequest:function(e,t,n){if(n){switch(t){case u.E.Video:return m.R.sharedVideo(e,n);case u.E.Clip:return v.e.sharedClip(e,n);case u.E.Interactive:return p.b.sharedInteractiveMetadata(e,n)}o.Q.Ry.throw(new r.H("Unsupported master type"))}switch(t){case u.E.Video:return m.R.video(e);case u.E.Clip:return v.e.clip(e);case u.E.Interactive:return p.b.interactiveMetadata(e)}o.Q.Ry.throw(new r.H("Unsupported master type"))},isBroadcast:function(e){var t,n;return!!(null===(n=null===(t=null==e?void 0:e.contentLicences)||void 0===t?void 0:t.data)||void 0===n?void 0:n.some((function(e){return e.systemName===i.Era||e.systemName===i.Screenrights})))}}},15970:function(e,t,n){n.d(t,{d:function(){return o}});var i=n(4705),r=n(90335),a=r.D.RecentlyAdded,o={getValidSortTypeFromParam:function(e){return Object.values(r.D).includes(e)?e:r.D.Newest},getOrSetSortType:function(e,t,n){var r=function(e){return"video:sort:".concat(e)}(e);return!t&&i.SG.cacheExists(r)||i.SG.cacheSet(r,t||n||a),t||(t=i.SG.cacheGet(r)),t},getVideoSortParam:function(e){switch(e){case r.D.AtoZ:return"orderby:name";case r.D.ZtoA:return"orderbydesc:name";case r.D.Newest:return"orderbydesc:datecreated";case r.D.Oldest:return"orderby:datecreated";case r.D.RecentlyAdded:return"orderbydesc:timestamp";case r.D.Series:return"orderby:seriessort";default:return}}}},7121:function(e,t){t.Z={minHeight:"jEh7m",restrictionBadgeCustom:"WQ2eS",restrictionBadgeUser:"z4DeQ"}}}]);
@@ -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 o=t(39479),r=t(21679),i=t(57857),l=t(68003),a=t(31647),c=t(52076),u=t(70065),s=t(81937),p=t(25692),f=t(57769),d=t(75432),h=t(98985),y=t(48090),g=t(48404),m=t(22103),v=t.n(m),b={uploadImage:"yRGoO"};function k(e){return k="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},k(e)}function w(e,n){for(var t=0;t<n.length;t++){var o=n[t];o.enumerable=o.enumerable||!1,o.configurable=!0,"value"in o&&(o.writable=!0),Object.defineProperty(e,(void 0,r=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(r)?r:String(r)),o)}var r}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,a,m,O=(a=_,m=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(a);if(m){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,s.S.FILES_SELECTED,this.onFilesSelected),this.videoUploadService=r.u.getInstance(y.K9.VideoUpload,this)}},{key:"name",get:function(){return"FileSelectView"}},{key:"title",get:function(){return i.T.getPhrase(this.lang,"title")}},{key:"lang",get:function(){return"upload.fileSelect"}},{key:"template",get:function(){return v()}},{key:"className",get:function(){return"container px-0"}},{key:"props",get:function(){return["videoUploadService"]}},{key:"channelName",get:function(){return this.customCid||(this.customCid=o.uniqueId("custom")),"".concat(this.name).concat(this.customCid)}},{key:"behaviors",get:function(){return[{behaviorClass:f.Z,buttonSelector:".choose-files",channelName:this.channelName,acceptMultiple:!0,mimeType:"video/*"}]}},{key:"onFilesSelected",value:function(e,n){this.videoUploadService.addFiles(e),this.logAction(e,n)}},{key:"logAction",value:function(e,n){var t={actionType:u.Vw.Upload,entity:u.py.Video,location:u.LZ.VideoUpload,workflowPhase:u.eu.Start,descriptor:c.k.mapInteractionType(n)};c.k.logUserAction(e,t)}},{key:"requiredResources",get:function(){return{config:g.p.config,currentUser:d.K.currentUser}}},{key:"viewOptions",value:function(){return{styles:b,uploadArticleUrl:h.o.getHybridArticle(p.s.UploadToLibraryEditor,p.b.UploadToLibraryEditor),uploadTermsUrl:this.config?l._.safeUrlConcat(this.config.get("marketingSiteUrl"),y.l.UploadingUserContent):"",classNames:"info-link",imageUrl:y.Wn.Upload.UPLOAD_VIDEO}}}])&&w(n.prototype,t),Object.defineProperty(n,"prototype",{writable:!1}),_}(a.Q.G7)},22103:function(e,n,t){var o=t(32227);e.exports=(o.default||o).template({compiler:[8,">= 4.3.0"],main:function(e,n,t,o,r){e.propertyIsEnumerable;var i,l=null!=n?n:e.nullContext||{},a=e.hooks.helperMissing,c=e.escapeExpression,u=e.lambda;return'<div class="p-3 my-3 bg-white text-center">\n <h1>'+c((t.lang||n&&n.lang||a).call(l,"uploadVideos",{name:"lang",hash:{},data:r}))+'</h1>\n <div class="my-3">\n <img src="'+c(u(null!=(i=null!=n?n.options:n)?i.imageUrl:i,n))+'" class="'+c(u(null!=(i=null!=(i=null!=n?n.options:n)?i.styles:i)?i.uploadImage:i,n))+' img-fluid mb-2" />\n </div>\n <div>\n <button class="btn btn-dark choose-files">'+c((t.lang||n&&n.lang||a).call(l,"chooseVideo",{name:"lang",hash:{},data:r}))+"</button>\n </div>\n <div>\n <span>"+c((t.lang||n&&n.lang||a).call(l,"dragDrop",{name:"lang",hash:{},data:r}))+'</span>\n </div>\n</div>\n<div class="p-3 bg-white container-fluid">\n <div class="row">\n <div class="col-4">\n <h4>'+c((t.lang||n&&n.lang||a).call(l,"help",{name:"lang",hash:{},data:r}))+'</h2>\n <div class="border-top pt-2">\n <ul>\n <li><a class="info-link" href="'+c(u(null!=(i=null!=n?n.options:n)?i.uploadArticleUrl:i,n))+'" target="_blank">'+c((t.lang||n&&n.lang||a).call(l,"instructionsHeading",{name:"lang",hash:{},data:r}))+'</a></li>\n </ul>\n </div>\n </div>\n <div class="col-8">\n <h4>'+c((t.lang||n&&n.lang||a).call(l,"termsHeading",{name:"lang",hash:{},data:r}))+'</h2>\n <div class="border-top pt-2">\n <ol>\n <li>'+c((t.lang||n&&n.lang||a).call(l,"term1",{name:"lang",hash:{},data:r}))+"</li>\n <li>"+c((t.lang||n&&n.lang||a).call(l,"term2",{name:"lang",hash:{},data:r}))+"</li>\n <li>"+(null!=(i=(t.lang||n&&n.lang||a).call(l,"term3",{name:"lang",hash:{classNames:null!=(i=null!=n?n.options:n)?i.classNames:i,uploadTermsUrl:null!=(i=null!=n?n.options:n)?i.uploadTermsUrl:i},data:r}))?i:"")+"</li>\n </ol>\n </div>\n </div>\n </div>\n</div>"},useData:!0})}}]);
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(21679),i=t(57857),l=t(68003),a=t(31647),c=t(52076),u=t(70065),s=t(81937),p=t(25692),f=t(57769),d=t(75432),h=t(98985),y=t(48090),g=t(48404),m=t(22103),v=t.n(m),b={uploadImage:"yRGoO"};function k(e){return k="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},k(e)}function w(e,n){for(var t=0;t<n.length;t++){var 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,a,m,O=(a=_,m=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(a);if(m){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,s.S.FILES_SELECTED,this.onFilesSelected),this.videoUploadService=o.u.getInstance(y.K9.VideoUpload,this)}},{key:"name",get:function(){return"FileSelectView"}},{key:"title",get:function(){return i.T.getPhrase(this.lang,"title")}},{key:"lang",get:function(){return"upload.fileSelect"}},{key:"template",get:function(){return v()}},{key:"className",get:function(){return"container px-0"}},{key:"props",get:function(){return["videoUploadService"]}},{key:"channelName",get:function(){return this.customCid||(this.customCid=r.uniqueId("custom")),"".concat(this.name).concat(this.customCid)}},{key:"behaviors",get:function(){return[{behaviorClass:f.Z,buttonSelector:".choose-files",channelName:this.channelName,acceptMultiple:!0,mimeType:"video/*"}]}},{key:"onFilesSelected",value:function(e,n){this.videoUploadService.addFiles(e),this.logAction(e,n)}},{key:"logAction",value:function(e,n){var t={actionType:u.Vw.Upload,entity:u.py.Video,location:u.LZ.VideoUpload,workflowPhase:u.eu.Start,descriptor:c.k.mapInteractionType(n)};c.k.logUserAction(e,t)}},{key:"requiredResources",get:function(){return{config:g.p.config,currentUser:d.K.currentUser}}},{key:"viewOptions",value:function(){return{styles:b,uploadArticleUrl:h.o.getHybridArticle(p.s.UploadToLibraryEditor,p.b.UploadToLibraryEditor),uploadTermsUrl:this.config?l._.safeUrlConcat(this.config.get("marketingSiteUrl"),y.l.UploadingUserContent):"",classNames:"info-link",imageUrl:y.Wn.Upload.UPLOAD_VIDEO}}}])&&w(n.prototype,t),Object.defineProperty(n,"prototype",{writable:!1}),_}(a.Q.G7)},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,u=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(u(null!=(i=null!=n?n.options:n)?i.imageUrl:i,n))+'" class="'+c(u(null!=(i=null!=(i=null!=n?n.options:n)?i.styles:i)?i.uploadImage:i,n))+' img-fluid mb-2" />\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(u(null!=(i=null!=n?n.options:n)?i.uploadArticleUrl:i,n))+'" target="_blank">'+c((t.lang||n&&n.lang||a).call(l,"instructionsHeading",{name:"lang",hash:{},data: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 +1 @@
1
- (self.webpackChunk_clickview_library_editor=self.webpackChunk_clickview_library_editor||[]).push([[6093],{36093:function(t,e,r){"use strict";r.r(e),r.d(e,{ErrorView:function(){return y}});var n=r(48088),o=r(31647),i=r(50997),u=r(2882),c=r.n(u),l={image:"DlVFv"};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){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,(void 0,o=function(t,e){if("object"!==a(t)||null===t)return t;var r=t[Symbol.toPrimitive];if(void 0!==r){var n=r.call(t,"string");if("object"!==a(n))return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(t)}(n.key),"symbol"===a(o)?o:String(o)),n)}var o}function s(t,e){return s=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(t,e){return t.__proto__=e,t},s(t,e)}function p(t){return p=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(t){return t.__proto__||Object.getPrototypeOf(t)},p(t)}var y=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)}(b,t);var e,r,o,u,y=(o=b,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=p(o);if(u){var r=p(this).constructor;t=Reflect.construct(e,arguments,r)}else t=e.apply(this,arguments);return function(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)}(this,t)});function b(){return function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,b),y.apply(this,arguments)}return e=b,(r=[{key:"initialize",value:function(){var t=n.Radio.channel("error:view");this.error=t.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 c()}},{key:"viewOptions",value:function(){return{heading:this.error.heading,description:this.error.description,imageUrl:i.Wn.Errors.GENERIC,styles:l}}}])&&f(e.prototype,r),Object.defineProperty(e,"prototype",{writable:!1}),b}(o.Q.G7)},2882: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){t.propertyIsEnumerable;var i,u=t.lambda,c=t.escapeExpression;return'<img src="'+c(u(null!=(i=null!=e?e.options:e)?i.imageUrl:i,e))+'" class="img-fluid '+c(u(null!=(i=null!=(i=null!=e?e.options:e)?i.styles:i)?i.image:i,e))+' pt-5 pb-3" />\n<h2 class="h6">'+c(u(null!=(i=null!=e?e.options:e)?i.heading:i,e))+'</h2>\n<p class="pb-5">'+(null!=(i=u(null!=(i=null!=e?e.options:e)?i.description:i,e))?i:"")+"</p>"},useData:!0})}}]);
1
+ (self.webpackChunk_clickview_library_editor=self.webpackChunk_clickview_library_editor||[]).push([[6093],{36093:function(t,e,r){"use strict";r.r(e),r.d(e,{ErrorView:function(){return y}});var n=r(48088),o=r(31647),i=r(50997),u=r(2882),c=r.n(u),l={image:"DlVFv"};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){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,(void 0,o=function(t,e){if("object"!==a(t)||null===t)return t;var r=t[Symbol.toPrimitive];if(void 0!==r){var n=r.call(t,"string");if("object"!==a(n))return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(t)}(n.key),"symbol"===a(o)?o:String(o)),n)}var o}function s(t,e){return s=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(t,e){return t.__proto__=e,t},s(t,e)}function p(t){return p=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(t){return t.__proto__||Object.getPrototypeOf(t)},p(t)}var y=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)}(b,t);var e,r,o,u,y=(o=b,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=p(o);if(u){var r=p(this).constructor;t=Reflect.construct(e,arguments,r)}else t=e.apply(this,arguments);return function(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)}(this,t)});function b(){return function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,b),y.apply(this,arguments)}return e=b,(r=[{key:"initialize",value:function(){var t=n.Radio.channel("error:view");this.error=t.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 c()}},{key:"viewOptions",value:function(){return{heading:this.error.heading,description:this.error.description,imageUrl:i.Wn.Errors.GENERIC,styles:l}}}])&&f(e.prototype,r),Object.defineProperty(e,"prototype",{writable:!1}),b}(o.Q.G7)},2882: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){t.propertyIsEnumerable;var i,u=t.lambda,c=t.escapeExpression;return'<img src="'+c(u(null!=(i=null!=e?e.options:e)?i.imageUrl:i,e))+'" class="img-fluid '+c(u(null!=(i=null!=(i=null!=e?e.options:e)?i.styles:i)?i.image:i,e))+' pt-5 pb-3" />\r\n<h2 class="h6">'+c(u(null!=(i=null!=e?e.options:e)?i.heading:i,e))+'</h2>\r\n<p class="pb-5">'+(null!=(i=u(null!=(i=null!=e?e.options:e)?i.description:i,e))?i:"")+"</p>"},useData:!0})}}]);