@clickview/library-editor 1.54.0-rc.1 → 1.54.1-dev.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (164) hide show
  1. package/dist/bundles.json +3 -3
  2. package/dist/css/{826-library-editor-2797c4568f.chunk.css → 4001-library-editor-da87291909.chunk.css} +3 -2
  3. package/dist/css/{library-editor-app-cade5e4b6a.css → library-editor-app-08d619de95.css} +2 -2
  4. package/dist/languages/en.json +1 -1
  5. package/dist/scripts/101-1aa755b98b.chunk.js +1 -0
  6. package/dist/scripts/{1010-37e7c83417.chunk.js → 1010-2c4e71bac2.chunk.js} +1 -1
  7. package/dist/scripts/{1086-7632f7b45b.chunk.js → 1086-d0efa1a0ca.chunk.js} +1 -1
  8. package/dist/scripts/1216-9d2e314558.chunk.js +1 -0
  9. package/dist/scripts/{1269-02d8d91784.chunk.js → 1269-ec70091b19.chunk.js} +1 -1
  10. package/dist/scripts/{1409-79be9fc25d.chunk.js → 1409-f3fea6c3c3.chunk.js} +1 -1
  11. package/dist/scripts/1537-2945b91924.chunk.js +1 -0
  12. package/dist/scripts/{1703-4d41a9e919.chunk.js → 1703-0e6940a3c0.chunk.js} +1 -1
  13. package/dist/scripts/{1832-305c691701.chunk.js → 1832-9fd96d5efe.chunk.js} +1 -1
  14. package/dist/scripts/{1876-33e86bc26f.chunk.js → 1876-fc815ba31e.chunk.js} +1 -1
  15. package/dist/scripts/1973-074d4e72c2.chunk.js +1 -0
  16. package/dist/scripts/209-f9e52775b1.chunk.js +1 -0
  17. package/dist/scripts/{243-526e36736c.chunk.js → 243-d27b3c7903.chunk.js} +1 -1
  18. package/dist/scripts/2516-0290fc7712.chunk.js +1 -0
  19. package/dist/scripts/{259-e1c3eb98ce.chunk.js → 259-d6a4aa6694.chunk.js} +1 -1
  20. package/dist/scripts/{2601-f14eacbf73.chunk.js → 2601-d42245cb40.chunk.js} +1 -1
  21. package/dist/scripts/2639-efe1222211.chunk.js +2 -0
  22. package/dist/scripts/2639-efe1222211.chunk.js.LICENSE.txt +8 -0
  23. package/dist/scripts/{2644-60bdfc1c95.chunk.js → 2644-cadc6531d6.chunk.js} +1 -1
  24. package/dist/scripts/2648-61a84bc983.chunk.js +1 -0
  25. package/dist/scripts/{2692-1ddd87476e.chunk.js → 2692-b7dff9da8a.chunk.js} +1 -1
  26. package/dist/scripts/{2803-fbb9d2439d.chunk.js → 2803-026f3af7cb.chunk.js} +1 -1
  27. package/dist/scripts/{2888-c2c8b859cd.chunk.js → 2888-a406bcd564.chunk.js} +1 -1
  28. package/dist/scripts/2955-521e238d27.chunk.js +1 -0
  29. package/dist/scripts/299-32a1391000.chunk.js +1 -0
  30. package/dist/scripts/{2998-aae0ec14de.chunk.js → 2998-a3c3a1e950.chunk.js} +1 -1
  31. package/dist/scripts/{3400-ebc91cde7a.chunk.js → 3400-326dc33968.chunk.js} +1 -1
  32. package/dist/scripts/{35-278014f3ca.chunk.js → 35-d04a61537f.chunk.js} +1 -1
  33. package/dist/scripts/{3551-17275d533c.chunk.js → 3551-97ac416527.chunk.js} +1 -1
  34. package/dist/scripts/{3639-c5cc04c72d.chunk.js → 3639-171b53e474.chunk.js} +1 -1
  35. package/dist/scripts/3746-9f89d2e526.chunk.js +1 -0
  36. package/dist/scripts/376-4d9e8d5305.chunk.js +1 -0
  37. package/dist/scripts/{3763-47619f0e54.chunk.js → 3763-21a9bc8c81.chunk.js} +1 -1
  38. package/dist/scripts/3969-14f58e46c8.chunk.js +1 -0
  39. package/dist/scripts/4001-5f16bcaff3.chunk.js +2 -0
  40. package/dist/scripts/4024-e76b07c207.chunk.js +1 -0
  41. package/dist/scripts/{4201-ffd35af9cb.chunk.js → 4201-9f363cadea.chunk.js} +1 -1
  42. package/dist/scripts/{4245-9262674448.chunk.js → 4245-3680566469.chunk.js} +1 -1
  43. package/dist/scripts/{8727-30dadf014c.chunk.js → 4506-e3e16c1c39.chunk.js} +1 -1
  44. package/dist/scripts/4523-e918636e67.chunk.js +1 -0
  45. package/dist/scripts/{4591-78600e384c.chunk.js → 4591-84bc2f21f0.chunk.js} +1 -1
  46. package/dist/scripts/471-9ae0a7d088.chunk.js +2 -0
  47. package/dist/scripts/{4860-6001ab4e2a.chunk.js → 4860-7e9c7b578f.chunk.js} +1 -1
  48. package/dist/scripts/4984-e55e0bfa17.chunk.js +1 -0
  49. package/dist/scripts/514-9e42f33112.chunk.js +2 -0
  50. package/dist/scripts/514-9e42f33112.chunk.js.LICENSE.txt +6 -0
  51. package/dist/scripts/{5173-d333602893.chunk.js → 5173-6fe93f90b8.chunk.js} +1 -1
  52. package/dist/scripts/{5286-b5a0097954.chunk.js → 5286-c55bd5882c.chunk.js} +1 -1
  53. package/dist/scripts/535-96be75b325.chunk.js +1 -0
  54. package/dist/scripts/{5412-e2505df3a4.chunk.js → 5412-abf3c7ab24.chunk.js} +1 -1
  55. package/dist/scripts/{5418-f84d0ff359.chunk.js → 5418-4cf3592f6a.chunk.js} +1 -1
  56. package/dist/scripts/{5424-65be3c657c.chunk.js → 5424-fb9af4cac5.chunk.js} +1 -1
  57. package/dist/scripts/5524-83e92242a1.chunk.js +1 -0
  58. package/dist/scripts/5698-74d4a95cab.chunk.js +1 -0
  59. package/dist/scripts/{5707-41459498e9.chunk.js → 5707-2455798bbe.chunk.js} +1 -1
  60. package/dist/scripts/{5747-f28298b80d.chunk.js → 5747-dc100fe944.chunk.js} +1 -1
  61. package/dist/scripts/5850-21711256a9.chunk.js +1 -0
  62. package/dist/scripts/5891-1f548b9c62.chunk.js +1 -0
  63. package/dist/scripts/{6093-e19df1d1fa.chunk.js → 6093-c4d7d99258.chunk.js} +1 -1
  64. package/dist/scripts/61-35a4e0dd3d.chunk.js +2 -0
  65. package/dist/scripts/{6352-d267f9afea.chunk.js → 6352-9f5498c43f.chunk.js} +1 -1
  66. package/dist/scripts/6637-3078ed12bc.chunk.js +1 -0
  67. package/dist/scripts/6725-52d65e0d02.chunk.js +2 -0
  68. package/dist/scripts/{6732-85afd02f41.chunk.js → 6732-0223b7e084.chunk.js} +1 -1
  69. package/dist/scripts/{6774-a002ac7253.chunk.js → 6774-7d16e3a1b2.chunk.js} +1 -1
  70. package/dist/scripts/{6788-dc6b522995.chunk.js → 6788-1baf5483df.chunk.js} +1 -1
  71. package/dist/scripts/6963-2e5edf04ac.chunk.js +1 -0
  72. package/dist/scripts/{7053-00950d18ae.chunk.js → 7053-5f6f2bf8ee.chunk.js} +1 -1
  73. package/dist/scripts/7071-9ae15d6979.chunk.js +1 -0
  74. package/dist/scripts/7153-11798dda90.chunk.js +1 -0
  75. package/dist/scripts/{7190-2b40df1e89.chunk.js → 7190-b143292308.chunk.js} +1 -1
  76. package/dist/scripts/7295-c5ccbfe2be.chunk.js +1 -0
  77. package/dist/scripts/{7376-e3bf3a94f9.chunk.js → 7376-e476873e22.chunk.js} +1 -1
  78. package/dist/scripts/{7408-49b32d5829.chunk.js → 7408-eb04403233.chunk.js} +1 -1
  79. package/dist/scripts/7416-bafece2a3d.chunk.js +1 -0
  80. package/dist/scripts/7827-53c10fe9d7.chunk.js +1 -0
  81. package/dist/scripts/8080-540165cb5c.chunk.js +1 -0
  82. package/dist/scripts/8113-eb9901344c.chunk.js +1 -0
  83. package/dist/scripts/{8213-6c873c853e.chunk.js → 8213-4d11becb33.chunk.js} +1 -1
  84. package/dist/scripts/{8362-267efdac61.chunk.js → 8362-2712404025.chunk.js} +1 -1
  85. package/dist/scripts/8542-7dbc2fa676.chunk.js +1 -0
  86. package/dist/scripts/8591-920b0560e4.chunk.js +1 -0
  87. package/dist/scripts/{8726-2d0bc64637.chunk.js → 8726-10013d1e22.chunk.js} +1 -1
  88. package/dist/scripts/8757-8ba60a3c5f.chunk.js +2 -0
  89. package/dist/scripts/8757-8ba60a3c5f.chunk.js.LICENSE.txt +44 -0
  90. package/dist/scripts/{8762-be126e413d.chunk.js → 8762-0c818e61d0.chunk.js} +1 -1
  91. package/dist/scripts/{8906-2ae58fb990.chunk.js → 8906-3052c24e98.chunk.js} +1 -1
  92. package/dist/scripts/{8952-27f5ea4a16.chunk.js → 8952-5dfd08cdc7.chunk.js} +2 -2
  93. package/dist/scripts/9077-fd1d054d31.chunk.js +1 -0
  94. package/dist/scripts/9134-8845590ece.chunk.js +1 -0
  95. package/dist/scripts/{9357-e71ea6a34d.chunk.js → 9357-04700677af.chunk.js} +1 -1
  96. package/dist/scripts/9369-cacc5f30e5.chunk.js +2 -0
  97. package/dist/scripts/9383-26ce3e3847.chunk.js +1 -0
  98. package/dist/scripts/{9695-636ea0ef64.chunk.js → 9695-8b46921478.chunk.js} +1 -1
  99. package/dist/scripts/{9927-7a935c955d.chunk.js → 9927-1a5a65a341.chunk.js} +1 -1
  100. package/dist/scripts/bundle-5d010f1f12.min.js +2 -0
  101. package/dist/scripts/bundle-5d010f1f12.min.js.LICENSE.txt +133 -0
  102. package/dist/scripts/{polyfills-5ce436cbbe.min.js → polyfills-e4d8584da7.min.js} +1 -1
  103. package/package.json +4 -4
  104. package/dist/scripts/101-c8fa0bf8c0.chunk.js +0 -1
  105. package/dist/scripts/112-4f413f94c0.chunk.js +0 -1
  106. package/dist/scripts/1216-83f6fbc7be.chunk.js +0 -1
  107. package/dist/scripts/152-808e046b1f.chunk.js +0 -2
  108. package/dist/scripts/1973-7a1768228d.chunk.js +0 -1
  109. package/dist/scripts/2417-e85abc4005.chunk.js +0 -1
  110. package/dist/scripts/2482-ded3090c15.chunk.js +0 -1
  111. package/dist/scripts/2648-0a58c0fc05.chunk.js +0 -1
  112. package/dist/scripts/2802-d428814c29.chunk.js +0 -2
  113. package/dist/scripts/2802-d428814c29.chunk.js.LICENSE.txt +0 -8
  114. package/dist/scripts/299-e59ef1fc4f.chunk.js +0 -1
  115. package/dist/scripts/343-4f77983932.chunk.js +0 -1
  116. package/dist/scripts/3746-1fd61fe062.chunk.js +0 -1
  117. package/dist/scripts/376-0ae51da38f.chunk.js +0 -1
  118. package/dist/scripts/3969-c636ff3159.chunk.js +0 -1
  119. package/dist/scripts/4024-8372510247.chunk.js +0 -1
  120. package/dist/scripts/4523-e244d0dae2.chunk.js +0 -1
  121. package/dist/scripts/5046-7f741b88da.chunk.js +0 -1
  122. package/dist/scripts/514-eeb95eba47.chunk.js +0 -1
  123. package/dist/scripts/535-b26597b4d0.chunk.js +0 -1
  124. package/dist/scripts/5524-04583b6e40.chunk.js +0 -1
  125. package/dist/scripts/5850-996ea58208.chunk.js +0 -1
  126. package/dist/scripts/5891-bf6bb58afe.chunk.js +0 -1
  127. package/dist/scripts/61-29f179811f.chunk.js +0 -2
  128. package/dist/scripts/6532-48f3f080f5.chunk.js +0 -2
  129. package/dist/scripts/6963-68cce4d38c.chunk.js +0 -1
  130. package/dist/scripts/7002-48057608dc.chunk.js +0 -1
  131. package/dist/scripts/7071-78d0b6c0cb.chunk.js +0 -1
  132. package/dist/scripts/708-4faf09f1e5.chunk.js +0 -1
  133. package/dist/scripts/7153-b581d35045.chunk.js +0 -1
  134. package/dist/scripts/7295-5a82c36f28.chunk.js +0 -1
  135. package/dist/scripts/7827-ef0d617862.chunk.js +0 -1
  136. package/dist/scripts/8113-d678e76098.chunk.js +0 -1
  137. package/dist/scripts/8234-8b643077a3.chunk.js +0 -1
  138. package/dist/scripts/826-c6d1a46e45.chunk.js +0 -2
  139. package/dist/scripts/8542-475ab8438e.chunk.js +0 -1
  140. package/dist/scripts/8591-149f4a2b62.chunk.js +0 -1
  141. package/dist/scripts/9369-f43ee314be.chunk.js +0 -2
  142. package/dist/scripts/9383-2c77c78fe8.chunk.js +0 -1
  143. package/dist/scripts/bundle-24f329fa27.min.js +0 -2
  144. package/dist/scripts/bundle-24f329fa27.min.js.LICENSE.txt +0 -1
  145. package/typings/libs/CVEvents.d.ts +0 -13
  146. package/typings/libs/CVLanguages.d.ts +0 -24
  147. package/typings/libs/LazyLoad.d.ts +0 -30
  148. package/typings/libs/LazyLoad.ts +0 -27
  149. package/typings/libs/cookiesjs.d.ts +0 -24
  150. /package/dist/css/{2417-library-editor-46f8e6e95b.chunk.css → 1537-library-editor-46f8e6e95b.chunk.css} +0 -0
  151. /package/dist/css/{2482-library-editor-1b6dc45d45.chunk.css → 209-library-editor-1b6dc45d45.chunk.css} +0 -0
  152. /package/dist/css/{343-library-editor-d2f704c6a5.chunk.css → 2955-library-editor-d2f704c6a5.chunk.css} +0 -0
  153. /package/dist/css/{112-library-editor-6a2d152d7d.chunk.css → 6637-library-editor-6a2d152d7d.chunk.css} +0 -0
  154. /package/dist/css/{152-library-editor-01b4461ff1.chunk.css → 6725-library-editor-01b4461ff1.chunk.css} +0 -0
  155. /package/dist/css/{708-library-editor-7ffe353138.chunk.css → 8080-library-editor-7ffe353138.chunk.css} +0 -0
  156. /package/dist/css/{5046-library-editor-765ea88cb0.chunk.css → 9077-library-editor-765ea88cb0.chunk.css} +0 -0
  157. /package/dist/css/{8234-library-editor-5a1c6fc3b4.chunk.css → 9134-library-editor-5a1c6fc3b4.chunk.css} +0 -0
  158. /package/dist/scripts/{61-29f179811f.chunk.js.LICENSE.txt → 4001-5f16bcaff3.chunk.js.LICENSE.txt} +0 -0
  159. /package/dist/scripts/{6532-48f3f080f5.chunk.js.LICENSE.txt → 471-9ae0a7d088.chunk.js.LICENSE.txt} +0 -0
  160. /package/dist/scripts/{546-40961bc779.chunk.js → 546-2cf4378b0c.chunk.js} +0 -0
  161. /package/dist/scripts/{826-c6d1a46e45.chunk.js.LICENSE.txt → 61-35a4e0dd3d.chunk.js.LICENSE.txt} +0 -0
  162. /package/dist/scripts/{152-808e046b1f.chunk.js.LICENSE.txt → 6725-52d65e0d02.chunk.js.LICENSE.txt} +0 -0
  163. /package/dist/scripts/{8952-27f5ea4a16.chunk.js.LICENSE.txt → 8952-5dfd08cdc7.chunk.js.LICENSE.txt} +0 -0
  164. /package/dist/scripts/{9369-f43ee314be.chunk.js.LICENSE.txt → 9369-cacc5f30e5.chunk.js.LICENSE.txt} +0 -0
@@ -1 +1 @@
1
- (self.webpackChunk_clickview_library_editor=self.webpackChunk_clickview_library_editor||[]).push([[5412],{95412:function(t,e,n){"use strict";n.r(e),n.d(e,{DeleteVideosView:function(){return j}});var r=n(48088),o=n(39479),i=n(21679),u=n(57857),l=n(31647),a=n(52076),c=n(10101),s=n(88172),f=n(57098),p=n(67670),y=n(93569),b=n(21218),d=n.n(b);function h(t){return h="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},h(t)}function v(t,e){for(var n=0;n<e.length;n++){var r=e[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(t,m(r.key),r)}}function m(t){var e=function(t){if("object"!=h(t)||!t)return t;var e=t[Symbol.toPrimitive];if(void 0!==e){var n=e.call(t,"string");if("object"!=h(n))return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(t)}(t);return"symbol"==h(e)?e:e+""}function g(){try{var t=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){})))}catch(t){}return(g=function(){return!!t})()}function O(t){return O=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(t){return t.__proto__||Object.getPrototypeOf(t)},O(t)}function w(t,e){return w=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(t,e){return t.__proto__=e,t},w(t,e)}var j=function(t){function e(t){return function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,e),function(t,e,n){return e=O(e),function(t,e){if(e&&("object"==h(e)||"function"==typeof e))return e;if(void 0!==e)throw new TypeError("Derived constructors may only return object or undefined");return function(t){if(void 0===t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return t}(t)}(t,g()?Reflect.construct(e,n||[],O(t).constructor):e.apply(t,n))}(this,e,[t])}return function(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function");t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,writable:!0,configurable:!0}}),Object.defineProperty(t,"prototype",{writable:!1}),e&&w(t,e)}(e,t),n=e,(b=[{key:"initialize",value:function(){this.libraryDataService=i.u.getInstance(f.Or.Library,this),this.videoDataService=i.u.getInstance(f.Or.Video,this)}},{key:"name",get:function(){return"DeleteVideoView"}},{key:"lang",get:function(){return"libraryEditor.deleteVideos"}},{key:"title",get:function(){return this.options.videoIds&&u.T.getPhrase(this.lang,"removeVideos",{smartCount:this.options.videoIds.length})}},{key:"template",get:function(){return d()}},{key:"channelName",get:function(){return y.N0.generateUniqueChannelName(this)}},{key:"behaviors",get:function(){var t,e,n,r,o=this;return[{title:u.T.getPhrase(this.lang,"removeVideos",{smartCount:null!==(e=null===(t=this.options.videoIds)||void 0===t?void 0:t.length)&&void 0!==e?e:1}),behaviorClass:c.Yw,spinnerButtonOptions:{channelName:this.channelName,model:this.spinnerModel=new p.v,buttonText:u.T.getPhrase(this.lang,"removeVideos",{smartCount:null!==(r=null===(n=this.options.videoIds)||void 0===n?void 0:n.length)&&void 0!==r?r:1}),extraButtonClass:"btn-danger",onClick:function(){return o.onClickDelete()}}}]}},{key:"onClickDelete",value:function(){var t=this;this.library&&(r.Radio.channel(this.channelName).trigger(s.I3.ShowSpinner),this.videoDataService.deleteVideosFromLibrary(this.library.id,this.options.folderId,this.options.videoIds,(function(){t.options.routeToFolderOnDelete?l.Q.C$.trigger({application:f.OV.LIBRARY_EDITOR,action:f.eX.LibraryEditor.FOLDER,args:[t.options.folderId]}):t.triggerMethod("hide")})),this.logAction())}},{key:"logAction",value:function(){var t=this.options.videoIds,e={libraryId:this.library.id,folderId:this.options.folderId,count:t.length};1===t.length&&(e.id=o.first(t)),a.k.logUserAction(e,this.options.analyticsOptions)}},{key:"onBeforeRender",value:function(){var t=this;this.library?this.spinnerModel.set(s.ZV.Disabled,!1):this.libraryDataService.getLibraries((function(e){t.library=y.PU.getLibrary(t.options.folderId,e),t.render()}))}},{key:"viewOptions",value:function(){return{count:this.options.videoIds.length,libraryFetched:!!this.library,spinnerEl:y.Kp.getSpinner({size:y.Ey.Large,extraClasses:"mx-auto"}),videoCount:this.options.videoIds.length}}}])&&v(n.prototype,b),Object.defineProperty(n,"prototype",{writable:!1}),n;var n,b}(l.Q.G7)},67670:function(t,e,n){"use strict";n.d(e,{v:function(){return p}});var r=n(31647),o=n(88172);function i(t){return i="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},i(t)}function u(t,e,n){return(e=a(e))in t?Object.defineProperty(t,e,{value:n,enumerable:!0,configurable:!0,writable:!0}):t[e]=n,t}function l(t,e){for(var n=0;n<e.length;n++){var r=e[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(t,a(r.key),r)}}function a(t){var e=function(t){if("object"!=i(t)||!t)return t;var e=t[Symbol.toPrimitive];if(void 0!==e){var n=e.call(t,"string");if("object"!=i(n))return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(t)}(t);return"symbol"==i(e)?e:e+""}function c(){try{var t=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){})))}catch(t){}return(c=function(){return!!t})()}function s(t){return s=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(t){return t.__proto__||Object.getPrototypeOf(t)},s(t)}function f(t,e){return f=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(t,e){return t.__proto__=e,t},f(t,e)}var p=function(t){function e(){return function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,e),function(t,e,n){return e=s(e),function(t,e){if(e&&("object"==i(e)||"function"==typeof e))return e;if(void 0!==e)throw new TypeError("Derived constructors may only return object or undefined");return function(t){if(void 0===t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return t}(t)}(t,c()?Reflect.construct(e,n||[],s(t).constructor):e.apply(t,n))}(this,e,arguments)}return function(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function");t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,writable:!0,configurable:!0}}),Object.defineProperty(t,"prototype",{writable:!1}),e&&f(t,e)}(e,t),n=e,(r=[{key:"defaults",value:function(){return u(u({},o.ZV.Disabled,!0),o.ZV.Hidden,!1)}}])&&l(n.prototype,r),Object.defineProperty(n,"prototype",{writable:!1}),n;var n,r}(r.Q.Hn)},21218:function(t,e,n){var r=n(32227);t.exports=(r.default||r).template({1:function(t,e,n,r,o){var i;return t.propertyIsEnumerable,(null!=(i=t.lambda(null!=(i=null!=e?e.options:e)?i.spinnerEl:i,e))?i:"")+"\n"},3:function(t,e,n,r,o){var i;return t.propertyIsEnumerable,(null!=(i=(n.lang||e&&e.lang||t.hooks.helperMissing).call(null!=e?e:t.nullContext||{},"check",{name:"lang",hash:{smartCount:null!=(i=null!=e?e.options:e)?i.videoCount:i},data:o}))?i:"")+"\n"},compiler:[8,">= 4.3.0"],main:function(t,e,n,r,o){var i;return t.propertyIsEnumerable,null!=(i=n.unless.call(null!=e?e:t.nullContext||{},null!=(i=null!=e?e.options:e)?i.libraryFetched:i,{name:"unless",hash:{},fn:t.program(1,o,0),inverse:t.program(3,o,0),data:o}))?i:""},useData:!0})}}]);
1
+ (self.webpackChunk_clickview_library_editor=self.webpackChunk_clickview_library_editor||[]).push([[5412],{95412:function(t,e,n){"use strict";n.r(e),n.d(e,{DeleteVideosView:function(){return j}});var r=n(43823),o=n(21161),i=n(21679),u=n(57857),l=n(31647),a=n(52076),c=n(10101),s=n(88172),f=n(57098),p=n(67670),y=n(93569),b=n(21218),d=n.n(b);function h(t){return h="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},h(t)}function v(t,e){for(var n=0;n<e.length;n++){var r=e[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(t,m(r.key),r)}}function m(t){var e=function(t){if("object"!=h(t)||!t)return t;var e=t[Symbol.toPrimitive];if(void 0!==e){var n=e.call(t,"string");if("object"!=h(n))return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(t)}(t);return"symbol"==h(e)?e:e+""}function g(){try{var t=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){})))}catch(t){}return(g=function(){return!!t})()}function O(t){return O=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(t){return t.__proto__||Object.getPrototypeOf(t)},O(t)}function w(t,e){return w=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(t,e){return t.__proto__=e,t},w(t,e)}var j=function(t){function e(t){return function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,e),function(t,e,n){return e=O(e),function(t,e){if(e&&("object"==h(e)||"function"==typeof e))return e;if(void 0!==e)throw new TypeError("Derived constructors may only return object or undefined");return function(t){if(void 0===t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return t}(t)}(t,g()?Reflect.construct(e,n||[],O(t).constructor):e.apply(t,n))}(this,e,[t])}return function(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function");t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,writable:!0,configurable:!0}}),Object.defineProperty(t,"prototype",{writable:!1}),e&&w(t,e)}(e,t),n=e,(b=[{key:"initialize",value:function(){this.libraryDataService=i.u.getInstance(f.Or.Library,this),this.videoDataService=i.u.getInstance(f.Or.Video,this)}},{key:"name",get:function(){return"DeleteVideoView"}},{key:"lang",get:function(){return"libraryEditor.deleteVideos"}},{key:"title",get:function(){return this.options.videoIds&&u.T.getPhrase(this.lang,"removeVideos",{smartCount:this.options.videoIds.length})}},{key:"template",get:function(){return d()}},{key:"channelName",get:function(){return y.N0.generateUniqueChannelName(this)}},{key:"behaviors",get:function(){var t,e,n,r,o=this;return[{title:u.T.getPhrase(this.lang,"removeVideos",{smartCount:null!==(e=null===(t=this.options.videoIds)||void 0===t?void 0:t.length)&&void 0!==e?e:1}),behaviorClass:c.Yw,spinnerButtonOptions:{channelName:this.channelName,model:this.spinnerModel=new p.v,buttonText:u.T.getPhrase(this.lang,"removeVideos",{smartCount:null!==(r=null===(n=this.options.videoIds)||void 0===n?void 0:n.length)&&void 0!==r?r:1}),extraButtonClass:"btn-danger",onClick:function(){return o.onClickDelete()}}}]}},{key:"onClickDelete",value:function(){var t=this;this.library&&(r.Radio.channel(this.channelName).trigger(s.I3.ShowSpinner),this.videoDataService.deleteVideosFromLibrary(this.library.id,this.options.folderId,this.options.videoIds,(function(){t.options.routeToFolderOnDelete?l.Q.C$.trigger({application:f.OV.LIBRARY_EDITOR,action:f.eX.LibraryEditor.FOLDER,args:[t.options.folderId]}):t.triggerMethod("hide")})),this.logAction())}},{key:"logAction",value:function(){var t=this.options.videoIds,e={libraryId:this.library.id,folderId:this.options.folderId,count:t.length};1===t.length&&(e.id=o.first(t)),a.k.logUserAction(e,this.options.analyticsOptions)}},{key:"onBeforeRender",value:function(){var t=this;this.library?this.spinnerModel.set(s.ZV.Disabled,!1):this.libraryDataService.getLibraries((function(e){t.library=y.PU.getLibrary(t.options.folderId,e),t.render()}))}},{key:"viewOptions",value:function(){return{count:this.options.videoIds.length,libraryFetched:!!this.library,spinnerEl:y.Kp.getSpinner({size:y.Ey.Large,extraClasses:"mx-auto"}),videoCount:this.options.videoIds.length}}}])&&v(n.prototype,b),Object.defineProperty(n,"prototype",{writable:!1}),n;var n,b}(l.Q.G7)},67670:function(t,e,n){"use strict";n.d(e,{v:function(){return p}});var r=n(31647),o=n(88172);function i(t){return i="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},i(t)}function u(t,e,n){return(e=a(e))in t?Object.defineProperty(t,e,{value:n,enumerable:!0,configurable:!0,writable:!0}):t[e]=n,t}function l(t,e){for(var n=0;n<e.length;n++){var r=e[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(t,a(r.key),r)}}function a(t){var e=function(t){if("object"!=i(t)||!t)return t;var e=t[Symbol.toPrimitive];if(void 0!==e){var n=e.call(t,"string");if("object"!=i(n))return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(t)}(t);return"symbol"==i(e)?e:e+""}function c(){try{var t=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){})))}catch(t){}return(c=function(){return!!t})()}function s(t){return s=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(t){return t.__proto__||Object.getPrototypeOf(t)},s(t)}function f(t,e){return f=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(t,e){return t.__proto__=e,t},f(t,e)}var p=function(t){function e(){return function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,e),function(t,e,n){return e=s(e),function(t,e){if(e&&("object"==i(e)||"function"==typeof e))return e;if(void 0!==e)throw new TypeError("Derived constructors may only return object or undefined");return function(t){if(void 0===t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return t}(t)}(t,c()?Reflect.construct(e,n||[],s(t).constructor):e.apply(t,n))}(this,e,arguments)}return function(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function");t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,writable:!0,configurable:!0}}),Object.defineProperty(t,"prototype",{writable:!1}),e&&f(t,e)}(e,t),n=e,(r=[{key:"defaults",value:function(){return u(u({},o.ZV.Disabled,!0),o.ZV.Hidden,!1)}}])&&l(n.prototype,r),Object.defineProperty(n,"prototype",{writable:!1}),n;var n,r}(r.Q.Hn)},21218:function(t,e,n){var r=n(31197);t.exports=(r.default||r).template({1:function(t,e,n,r,o){var i;return t.propertyIsEnumerable,(null!=(i=t.lambda(null!=(i=null!=e?e.options:e)?i.spinnerEl:i,e))?i:"")+"\n"},3:function(t,e,n,r,o){var i;return t.propertyIsEnumerable,(null!=(i=(n.lang||e&&e.lang||t.hooks.helperMissing).call(null!=e?e:t.nullContext||{},"check",{name:"lang",hash:{smartCount:null!=(i=null!=e?e.options:e)?i.videoCount:i},data:o}))?i:"")+"\n"},compiler:[8,">= 4.3.0"],main:function(t,e,n,r,o){var i;return t.propertyIsEnumerable,null!=(i=n.unless.call(null!=e?e:t.nullContext||{},null!=(i=null!=e?e.options:e)?i.libraryFetched:i,{name:"unless",hash:{},fn:t.program(1,o,0),inverse:t.program(3,o,0),data:o}))?i:""},useData:!0})}}]);
@@ -1 +1 @@
1
- (self.webpackChunk_clickview_library_editor=self.webpackChunk_clickview_library_editor||[]).push([[5418],{77739:function(e,t,n){"use strict";n.d(t,{r:function(){return m}});var r=n(31647),o=n(10101),i=n(20072),l=n(93569),a=n(11653),u=n(14538),c=n.n(u);function s(e){return s="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},s(e)}function f(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,p(r.key),r)}}function p(e){var t=function(e){if("object"!=s(e)||!e)return e;var t=e[Symbol.toPrimitive];if(void 0!==t){var n=t.call(e,"string");if("object"!=s(n))return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}(e);return"symbol"==s(t)?t:t+""}function d(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){})))}catch(e){}return(d=function(){return!!e})()}function b(e){return b=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(e){return e.__proto__||Object.getPrototypeOf(e)},b(e)}function y(e,t){return y=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(e,t){return e.__proto__=t,e},y(e,t)}var m=function(e){function t(e){return function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,t),function(e,t,n){return t=b(t),function(e,t){if(t&&("object"==s(t)||"function"==typeof t))return t;if(void 0!==t)throw new TypeError("Derived constructors may only return object or undefined");return function(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}(e)}(e,d()?Reflect.construct(t,n||[],b(e).constructor):t.apply(e,n))}(this,t,[e])}return function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),Object.defineProperty(e,"prototype",{writable:!1}),t&&y(e,t)}(t,e),n=t,(r=[{key:"initialize",value:function(){this.bindListeners()}},{key:"bindListeners",value:function(){this.listenTo(this.options.channelName,"folder:selected",this.onFolderSelected)}},{key:"name",get:function(){return"FolderDetailsComponent"}},{key:"template",get:function(){return c()}},{key:"lang",get:function(){return"libraryEditor.folderDetails"}},{key:"folderTreeKey",get:function(){return this.options.folderTreeKey||"folderselect:".concat(this.cid)}},{key:"regions",value:function(){return{parentFolder:".parent-folder-region"}}},{key:"behaviors",get:function(){return[{behaviorClass:o.fS,modelValidation:(0,a.h)({validateName:this.options.editName,validateParent:this.options.editParent,folder:this.options.model,collection:this.options.collection})},{behaviorClass:o.Bp}]}},{key:"bindings",get:function(){return{"[name=name]":{observe:"name",setOptions:{validate:!0}}}}},{key:"onFolderSelected",value:function(e,t){e&&(l.PU.setSelected(this.folderTreeKey,e,this.collection,t),t||this.model.set("parentId",e.get("id"),{validate:!0}))}},{key:"renderSubFolders",value:function(){this.options.editParent&&this.showChildView("parentFolder",new i.Y({collection:this.collection,channelName:this.options.channelName,folderTreeKey:this.folderTreeKey,disabledIds:this.options.disabledParentFolderIds}))}},{key:"viewOptions",value:function(){return{editName:this.options.editName,editParent:this.options.editParent}}},{key:"onRender",value:function(){this.renderSubFolders()}}])&&f(n.prototype,r),Object.defineProperty(n,"prototype",{writable:!1}),n;var n,r}(r.Q.wA)},11653:function(e,t,n){"use strict";n.d(t,{h:function(){return s}});var r=n(39479),o=n(57857),i=n(54008),l=n(22557),a="libraryEditor.utils",u={name:[{required:!0,msg:function(){return o.T.getPhrase(a,"folderNameRequired")}},{maxLength:255,msg:function(){return o.T.getPhrase(a,"folderNameExceeds")}}]},c=function(e,t){return{parentId:function(n){return n?l.P.calculateDestinationFolderDepth(e,n,t)>i.p.MAX_FOLDER_DEPTH?o.T.getPhrase(a,"maxFolderDepth",{maxDepth:i.p.MAX_FOLDER_DEPTH}):"":o.T.getPhrase(a,"selectParentFolder")}}},s=function(e){var t=e.validateName,n=e.validateParent,o=e.folder,i=e.collection;return t&&n?r.extend({},u,c(o,i)):t?u:n?c(o,i):void 0}},20072:function(e,t,n){"use strict";n.d(t,{Y:function(){return h}});var r=n(48088),o=n(57857),i=n(31647),l=n(50299),a=n(93569),u=n(68979),c=n.n(u),s={selectBtn:"tZUtI",list:"MxlSt",selector:"qHvbU",maxHeight:"jp36d",customItem:"aJzJB"};function f(e){return f="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},f(e)}function p(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,d(r.key),r)}}function d(e){var t=function(e){if("object"!=f(e)||!e)return e;var t=e[Symbol.toPrimitive];if(void 0!==t){var n=t.call(e,"string");if("object"!=f(n))return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}(e);return"symbol"==f(t)?t:t+""}function b(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){})))}catch(e){}return(b=function(){return!!e})()}function y(e){return y=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(e){return e.__proto__||Object.getPrototypeOf(e)},y(e)}function m(e,t){return m=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(e,t){return e.__proto__=t,e},m(e,t)}var h=function(e){function t(e){return function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,t),function(e,t,n){return t=y(t),function(e,t){if(t&&("object"==f(t)||"function"==typeof t))return t;if(void 0!==t)throw new TypeError("Derived constructors may only return object or undefined");return function(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}(e)}(e,b()?Reflect.construct(t,n||[],y(e).constructor):t.apply(e,n))}(this,t,[e])}return function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),Object.defineProperty(e,"prototype",{writable:!1}),t&&m(e,t)}(t,e),n=t,i=[{key:"initialize",value:function(){this.listenTo(this.options.channelName,"folder:selected new:folder:selected",this.setButtonText),this.listenTo(this.options.channelName,"re:render:selector",this.renderSelector),this.disabledIds=this.options.disabledIds&&this.options.disabledIds.reduce((function(e,t){return Object.assign(Object.assign({},e),(n={},o=!0,(r=d(r=t))in n?Object.defineProperty(n,r,{value:o,enumerable:!0,configurable:!0,writable:!0}):n[r]=o,n));var n,r,o}),{})}},{key:"name",get:function(){return"TreeDropdownComponent"}},{key:"template",get:function(){return c()}},{key:"className",get:function(){return"position-relative"}},{key:"lang",get:function(){return"libraryEditor.treeDropdown"}},{key:"regions",value:function(){return{selector:{el:".selector-region",replaceElement:!1}}}},{key:"events",value:function(){return{"click .create-new":"onClickCreateNew"}}},{key:"defaults",get:function(){return{disabledIds:[]}}},{key:"elements",get:function(){return{button:".button-text"}}},{key:"onClickCreateNew",value:function(e){e.preventDefault(),r.Radio.channel(this.options.channelName).trigger("create:folder:clicked")}},{key:"setButtonText",value:function(e,t){if(e&&!t){var n=e.get("name");this.getUI("button").text(n)}else{var r=a.PU.getSelected(this.options.folderTreeKey,this.collection),i=r?r.get("name"):o.T.getPhrase(this.lang,"button");this.getUI("button").text(i)}}},{key:"renderSelector",value:function(){this.showChildView("selector",new l.J({styles:s,collection:this.collection,channelName:this.options.channelName,childrenProperty:"children",folderTreeId:this.options.folderTreeKey,extraClass:s.list,isSelector:!0,disabledIds:this.disabledIds||{}}))}},{key:"viewOptions",value:function(){return{styles:s,name:this.options.name||this.options.channelName,buttonText:this.buttonText,canCreateNew:this.options.canCreateNew,dropdown:this.options.dropdown}}},{key:"onRender",value:function(){this.setButtonText(),this.renderSelector()}}],i&&p(n.prototype,i),Object.defineProperty(n,"prototype",{writable:!1}),n;var n,i}(i.Q.wA)},67670:function(e,t,n){"use strict";n.d(t,{v:function(){return p}});var r=n(31647),o=n(88172);function i(e){return i="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},i(e)}function l(e,t,n){return(t=u(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function a(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,u(r.key),r)}}function u(e){var t=function(e){if("object"!=i(e)||!e)return e;var t=e[Symbol.toPrimitive];if(void 0!==t){var n=t.call(e,"string");if("object"!=i(n))return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}(e);return"symbol"==i(t)?t:t+""}function c(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){})))}catch(e){}return(c=function(){return!!e})()}function s(e){return s=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(e){return e.__proto__||Object.getPrototypeOf(e)},s(e)}function f(e,t){return f=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(e,t){return e.__proto__=t,e},f(e,t)}var p=function(e){function t(){return function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,t),function(e,t,n){return t=s(t),function(e,t){if(t&&("object"==i(t)||"function"==typeof t))return t;if(void 0!==t)throw new TypeError("Derived constructors may only return object or undefined");return function(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}(e)}(e,c()?Reflect.construct(t,n||[],s(e).constructor):t.apply(e,n))}(this,t,arguments)}return function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),Object.defineProperty(e,"prototype",{writable:!1}),t&&f(e,t)}(t,e),n=t,(r=[{key:"defaults",value:function(){return l(l({},o.ZV.Disabled,!0),o.ZV.Hidden,!1)}}])&&a(n.prototype,r),Object.defineProperty(n,"prototype",{writable:!1}),n;var n,r}(r.Q.Hn)},14538:function(e,t,n){var r=n(32227);e.exports=(r.default||r).template({1:function(e,t,n,r,o){e.propertyIsEnumerable;var i=null!=t?t:e.nullContext||{},l=e.hooks.helperMissing,a=e.escapeExpression;return' <div class="form-group">\n <label for="name" class="control-label">'+a((n.lang||t&&t.lang||l).call(i,"name",{name:"lang",hash:{},data:o}))+'</label>\n <input name="name" id="name" type="text" class="form-control" placeholder="'+a((n.lang||t&&t.lang||l).call(i,"namePlaceholder",{name:"lang",hash:{},data:o}))+'" autocomplete="off" autofocus/>\n <div class="form-feedback"></div>\n </div>\n'},3:function(e,t,n,r,o){return e.propertyIsEnumerable,' <div class="form-group pt-2">\n <label for="parentId" class="control-label">'+e.escapeExpression((n.lang||t&&t.lang||e.hooks.helperMissing).call(null!=t?t:e.nullContext||{},"parent",{name:"lang",hash:{},data:o}))+'</label>\n <div class="parent-folder-region"></div>\n </div>\n'},compiler:[8,">= 4.3.0"],main:function(e,t,n,r,o){e.propertyIsEnumerable;var i,l=null!=t?t:e.nullContext||{};return"<form>\n"+(null!=(i=n.if.call(l,null!=(i=null!=t?t.options:t)?i.editName:i,{name:"if",hash:{},fn:e.program(1,o,0),inverse:e.noop,data:o}))?i:"")+(null!=(i=n.if.call(l,null!=(i=null!=t?t.options:t)?i.editParent:i,{name:"if",hash:{},fn:e.program(3,o,0),inverse:e.noop,data:o}))?i:"")+"</form>"},useData:!0})},68979:function(e,t,n){var r=n(32227);e.exports=(r.default||r).template({1:function(e,t,n,r,o){e.propertyIsEnumerable;var i,l=e.lambda,a=e.escapeExpression;return' <button\n class="'+a(l(null!=(i=null!=(i=null!=t?t.options:t)?i.styles:i)?i.selectBtn:i,t))+' form-select form-control"\n data-bs-toggle="dropdown"\n aria-haspopup="true"\n aria-expanded="false"\n name='+a(l(null!=(i=null!=t?t.options:t)?i.name:i,t))+'\n >\n <span class="d-block text-truncate button-text">\n '+a(l(null!=(i=null!=t?t.options:t)?i.buttonText:i,t))+'\n </span>\n </button>\n<div class="dropdown-menu '+a(l(null!=(i=null!=(i=null!=t?t.options:t)?i.styles:i)?i.selector:i,t))+'">\n'},3:function(e,t,n,r,o){var i;return e.propertyIsEnumerable,"border rounded-3 "+e.escapeExpression(e.lambda(null!=(i=null!=(i=null!=t?t.options:t)?i.styles:i)?i.maxHeight:i,t))},5:function(e,t,n,r,o){e.propertyIsEnumerable;var i,l=e.escapeExpression;return' <button class="create-new btn fw-bold rounded-0 rounded-bottom-lg w-100 text-start '+l(e.lambda(null!=(i=null!=(i=null!=t?t.options:t)?i.styles:i)?i.customItem:i,t))+'">'+l((n.lang||t&&t.lang||e.hooks.helperMissing).call(null!=t?t:e.nullContext||{},"createNew",{name:"lang",hash:{},data:o}))+"</button>\n"},compiler:[8,">= 4.3.0"],main:function(e,t,n,r,o){e.propertyIsEnumerable;var i,l=null!=t?t:e.nullContext||{};return(null!=(i=n.if.call(l,null!=(i=null!=t?t.options:t)?i.dropdown:i,{name:"if",hash:{},fn:e.program(1,o,0),inverse:e.noop,data:o}))?i:"")+'<div class="'+(null!=(i=n.unless.call(l,null!=(i=null!=t?t.options:t)?i.dropdown:i,{name:"unless",hash:{},fn:e.program(3,o,0),inverse:e.noop,data:o}))?i:"")+' overflow-auto" name='+e.escapeExpression(e.lambda(null!=(i=null!=t?t.options:t)?i.name:i,t))+'>\n <div class="selector-region"></div>\n'+(null!=(i=n.if.call(l,null!=(i=null!=t?t.options:t)?i.canCreateNew:i,{name:"if",hash:{},fn:e.program(5,o,0),inverse:e.noop,data:o}))?i:"")+'</div>\n<div class="form-feedback"></div>'},useData:!0})}}]);
1
+ (self.webpackChunk_clickview_library_editor=self.webpackChunk_clickview_library_editor||[]).push([[5418],{77739:function(e,t,n){"use strict";n.d(t,{r:function(){return m}});var r=n(31647),o=n(10101),i=n(20072),l=n(93569),a=n(11653),u=n(14538),c=n.n(u);function s(e){return s="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},s(e)}function f(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,p(r.key),r)}}function p(e){var t=function(e){if("object"!=s(e)||!e)return e;var t=e[Symbol.toPrimitive];if(void 0!==t){var n=t.call(e,"string");if("object"!=s(n))return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}(e);return"symbol"==s(t)?t:t+""}function d(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){})))}catch(e){}return(d=function(){return!!e})()}function b(e){return b=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(e){return e.__proto__||Object.getPrototypeOf(e)},b(e)}function y(e,t){return y=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(e,t){return e.__proto__=t,e},y(e,t)}var m=function(e){function t(e){return function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,t),function(e,t,n){return t=b(t),function(e,t){if(t&&("object"==s(t)||"function"==typeof t))return t;if(void 0!==t)throw new TypeError("Derived constructors may only return object or undefined");return function(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}(e)}(e,d()?Reflect.construct(t,n||[],b(e).constructor):t.apply(e,n))}(this,t,[e])}return function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),Object.defineProperty(e,"prototype",{writable:!1}),t&&y(e,t)}(t,e),n=t,(r=[{key:"initialize",value:function(){this.bindListeners()}},{key:"bindListeners",value:function(){this.listenTo(this.options.channelName,"folder:selected",this.onFolderSelected)}},{key:"name",get:function(){return"FolderDetailsComponent"}},{key:"template",get:function(){return c()}},{key:"lang",get:function(){return"libraryEditor.folderDetails"}},{key:"folderTreeKey",get:function(){return this.options.folderTreeKey||"folderselect:".concat(this.cid)}},{key:"regions",value:function(){return{parentFolder:".parent-folder-region"}}},{key:"behaviors",get:function(){return[{behaviorClass:o.fS,modelValidation:(0,a.h)({validateName:this.options.editName,validateParent:this.options.editParent,folder:this.options.model,collection:this.options.collection})},{behaviorClass:o.Bp}]}},{key:"bindings",get:function(){return{"[name=name]":{observe:"name",setOptions:{validate:!0}}}}},{key:"onFolderSelected",value:function(e,t){e&&(l.PU.setSelected(this.folderTreeKey,e,this.collection,t),t||this.model.set("parentId",e.get("id"),{validate:!0}))}},{key:"renderSubFolders",value:function(){this.options.editParent&&this.showChildView("parentFolder",new i.Y({collection:this.collection,channelName:this.options.channelName,folderTreeKey:this.folderTreeKey,disabledIds:this.options.disabledParentFolderIds}))}},{key:"viewOptions",value:function(){return{editName:this.options.editName,editParent:this.options.editParent}}},{key:"onRender",value:function(){this.renderSubFolders()}}])&&f(n.prototype,r),Object.defineProperty(n,"prototype",{writable:!1}),n;var n,r}(r.Q.wA)},11653:function(e,t,n){"use strict";n.d(t,{h:function(){return s}});var r=n(21161),o=n(57857),i=n(54008),l=n(22557),a="libraryEditor.utils",u={name:[{required:!0,msg:function(){return o.T.getPhrase(a,"folderNameRequired")}},{maxLength:255,msg:function(){return o.T.getPhrase(a,"folderNameExceeds")}}]},c=function(e,t){return{parentId:function(n){return n?l.P.calculateDestinationFolderDepth(e,n,t)>i.p.MAX_FOLDER_DEPTH?o.T.getPhrase(a,"maxFolderDepth",{maxDepth:i.p.MAX_FOLDER_DEPTH}):"":o.T.getPhrase(a,"selectParentFolder")}}},s=function(e){var t=e.validateName,n=e.validateParent,o=e.folder,i=e.collection;return t&&n?r.extend({},u,c(o,i)):t?u:n?c(o,i):void 0}},20072:function(e,t,n){"use strict";n.d(t,{Y:function(){return h}});var r=n(43823),o=n(57857),i=n(31647),l=n(50299),a=n(93569),u=n(68979),c=n.n(u),s={selectBtn:"tZUtI",list:"MxlSt",selector:"qHvbU",maxHeight:"jp36d",customItem:"aJzJB"};function f(e){return f="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},f(e)}function p(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,d(r.key),r)}}function d(e){var t=function(e){if("object"!=f(e)||!e)return e;var t=e[Symbol.toPrimitive];if(void 0!==t){var n=t.call(e,"string");if("object"!=f(n))return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}(e);return"symbol"==f(t)?t:t+""}function b(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){})))}catch(e){}return(b=function(){return!!e})()}function y(e){return y=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(e){return e.__proto__||Object.getPrototypeOf(e)},y(e)}function m(e,t){return m=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(e,t){return e.__proto__=t,e},m(e,t)}var h=function(e){function t(e){return function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,t),function(e,t,n){return t=y(t),function(e,t){if(t&&("object"==f(t)||"function"==typeof t))return t;if(void 0!==t)throw new TypeError("Derived constructors may only return object or undefined");return function(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}(e)}(e,b()?Reflect.construct(t,n||[],y(e).constructor):t.apply(e,n))}(this,t,[e])}return function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),Object.defineProperty(e,"prototype",{writable:!1}),t&&m(e,t)}(t,e),n=t,i=[{key:"initialize",value:function(){this.listenTo(this.options.channelName,"folder:selected new:folder:selected",this.setButtonText),this.listenTo(this.options.channelName,"re:render:selector",this.renderSelector),this.disabledIds=this.options.disabledIds&&this.options.disabledIds.reduce((function(e,t){return Object.assign(Object.assign({},e),(n={},o=!0,(r=d(r=t))in n?Object.defineProperty(n,r,{value:o,enumerable:!0,configurable:!0,writable:!0}):n[r]=o,n));var n,r,o}),{})}},{key:"name",get:function(){return"TreeDropdownComponent"}},{key:"template",get:function(){return c()}},{key:"className",get:function(){return"position-relative"}},{key:"lang",get:function(){return"libraryEditor.treeDropdown"}},{key:"regions",value:function(){return{selector:{el:".selector-region",replaceElement:!1}}}},{key:"events",value:function(){return{"click .create-new":"onClickCreateNew"}}},{key:"defaults",get:function(){return{disabledIds:[]}}},{key:"elements",get:function(){return{button:".button-text"}}},{key:"onClickCreateNew",value:function(e){e.preventDefault(),r.Radio.channel(this.options.channelName).trigger("create:folder:clicked")}},{key:"setButtonText",value:function(e,t){if(e&&!t){var n=e.get("name");this.getUI("button").text(n)}else{var r=a.PU.getSelected(this.options.folderTreeKey,this.collection),i=r?r.get("name"):o.T.getPhrase(this.lang,"button");this.getUI("button").text(i)}}},{key:"renderSelector",value:function(){this.showChildView("selector",new l.J({styles:s,collection:this.collection,channelName:this.options.channelName,childrenProperty:"children",folderTreeId:this.options.folderTreeKey,extraClass:s.list,isSelector:!0,disabledIds:this.disabledIds||{}}))}},{key:"viewOptions",value:function(){return{styles:s,name:this.options.name||this.options.channelName,buttonText:this.buttonText,canCreateNew:this.options.canCreateNew,dropdown:this.options.dropdown}}},{key:"onRender",value:function(){this.setButtonText(),this.renderSelector()}}],i&&p(n.prototype,i),Object.defineProperty(n,"prototype",{writable:!1}),n;var n,i}(i.Q.wA)},67670:function(e,t,n){"use strict";n.d(t,{v:function(){return p}});var r=n(31647),o=n(88172);function i(e){return i="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},i(e)}function l(e,t,n){return(t=u(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function a(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,u(r.key),r)}}function u(e){var t=function(e){if("object"!=i(e)||!e)return e;var t=e[Symbol.toPrimitive];if(void 0!==t){var n=t.call(e,"string");if("object"!=i(n))return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}(e);return"symbol"==i(t)?t:t+""}function c(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){})))}catch(e){}return(c=function(){return!!e})()}function s(e){return s=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(e){return e.__proto__||Object.getPrototypeOf(e)},s(e)}function f(e,t){return f=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(e,t){return e.__proto__=t,e},f(e,t)}var p=function(e){function t(){return function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,t),function(e,t,n){return t=s(t),function(e,t){if(t&&("object"==i(t)||"function"==typeof t))return t;if(void 0!==t)throw new TypeError("Derived constructors may only return object or undefined");return function(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}(e)}(e,c()?Reflect.construct(t,n||[],s(e).constructor):t.apply(e,n))}(this,t,arguments)}return function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),Object.defineProperty(e,"prototype",{writable:!1}),t&&f(e,t)}(t,e),n=t,(r=[{key:"defaults",value:function(){return l(l({},o.ZV.Disabled,!0),o.ZV.Hidden,!1)}}])&&a(n.prototype,r),Object.defineProperty(n,"prototype",{writable:!1}),n;var n,r}(r.Q.Hn)},14538:function(e,t,n){var r=n(31197);e.exports=(r.default||r).template({1:function(e,t,n,r,o){e.propertyIsEnumerable;var i=null!=t?t:e.nullContext||{},l=e.hooks.helperMissing,a=e.escapeExpression;return' <div class="form-group">\n <label for="name" class="control-label">'+a((n.lang||t&&t.lang||l).call(i,"name",{name:"lang",hash:{},data:o}))+'</label>\n <input name="name" id="name" type="text" class="form-control" placeholder="'+a((n.lang||t&&t.lang||l).call(i,"namePlaceholder",{name:"lang",hash:{},data:o}))+'" autocomplete="off" autofocus/>\n <div class="form-feedback"></div>\n </div>\n'},3:function(e,t,n,r,o){return e.propertyIsEnumerable,' <div class="form-group pt-2">\n <label for="parentId" class="control-label">'+e.escapeExpression((n.lang||t&&t.lang||e.hooks.helperMissing).call(null!=t?t:e.nullContext||{},"parent",{name:"lang",hash:{},data:o}))+'</label>\n <div class="parent-folder-region"></div>\n </div>\n'},compiler:[8,">= 4.3.0"],main:function(e,t,n,r,o){e.propertyIsEnumerable;var i,l=null!=t?t:e.nullContext||{};return"<form>\n"+(null!=(i=n.if.call(l,null!=(i=null!=t?t.options:t)?i.editName:i,{name:"if",hash:{},fn:e.program(1,o,0),inverse:e.noop,data:o}))?i:"")+(null!=(i=n.if.call(l,null!=(i=null!=t?t.options:t)?i.editParent:i,{name:"if",hash:{},fn:e.program(3,o,0),inverse:e.noop,data:o}))?i:"")+"</form>"},useData:!0})},68979:function(e,t,n){var r=n(31197);e.exports=(r.default||r).template({1:function(e,t,n,r,o){e.propertyIsEnumerable;var i,l=e.lambda,a=e.escapeExpression;return' <button\n class="'+a(l(null!=(i=null!=(i=null!=t?t.options:t)?i.styles:i)?i.selectBtn:i,t))+' form-select form-control"\n data-bs-toggle="dropdown"\n aria-haspopup="true"\n aria-expanded="false"\n name='+a(l(null!=(i=null!=t?t.options:t)?i.name:i,t))+'\n >\n <span class="d-block text-truncate button-text">\n '+a(l(null!=(i=null!=t?t.options:t)?i.buttonText:i,t))+'\n </span>\n </button>\n<div class="dropdown-menu '+a(l(null!=(i=null!=(i=null!=t?t.options:t)?i.styles:i)?i.selector:i,t))+'">\n'},3:function(e,t,n,r,o){var i;return e.propertyIsEnumerable,"border rounded-3 "+e.escapeExpression(e.lambda(null!=(i=null!=(i=null!=t?t.options:t)?i.styles:i)?i.maxHeight:i,t))},5:function(e,t,n,r,o){e.propertyIsEnumerable;var i,l=e.escapeExpression;return' <button class="create-new btn fw-bold rounded-0 rounded-bottom-lg w-100 text-start '+l(e.lambda(null!=(i=null!=(i=null!=t?t.options:t)?i.styles:i)?i.customItem:i,t))+'">'+l((n.lang||t&&t.lang||e.hooks.helperMissing).call(null!=t?t:e.nullContext||{},"createNew",{name:"lang",hash:{},data:o}))+"</button>\n"},compiler:[8,">= 4.3.0"],main:function(e,t,n,r,o){e.propertyIsEnumerable;var i,l=null!=t?t:e.nullContext||{};return(null!=(i=n.if.call(l,null!=(i=null!=t?t.options:t)?i.dropdown:i,{name:"if",hash:{},fn:e.program(1,o,0),inverse:e.noop,data:o}))?i:"")+'<div class="'+(null!=(i=n.unless.call(l,null!=(i=null!=t?t.options:t)?i.dropdown:i,{name:"unless",hash:{},fn:e.program(3,o,0),inverse:e.noop,data:o}))?i:"")+' overflow-auto" name='+e.escapeExpression(e.lambda(null!=(i=null!=t?t.options:t)?i.name:i,t))+'>\n <div class="selector-region"></div>\n'+(null!=(i=n.if.call(l,null!=(i=null!=t?t.options:t)?i.canCreateNew:i,{name:"if",hash:{},fn:e.program(5,o,0),inverse:e.noop,data:o}))?i:"")+'</div>\n<div class="form-feedback"></div>'},useData:!0})}}]);
@@ -1 +1 @@
1
- (self.webpackChunk_clickview_library_editor=self.webpackChunk_clickview_library_editor||[]).push([[5424],{21771:function(e,t,i){"use strict";i.r(t),i.d(t,{MoveVideoView:function(){return P}});var n=i(39479),r=i(21679),o=i(57857),l=i(31647),a=i(52076),s=i(13156),c=i(10101),u=i(90680),h=i(88172),d=i(20072),f=i(57098),b=i(67670),y=i(93569),p=i(76001),g=i(79665),v=i(97011),m=i.n(v);function k(e){return k="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},k(e)}function S(e,t){for(var i=0;i<t.length;i++){var n=t[i];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(e,L(n.key),n)}}function L(e){var t=function(e){if("object"!=k(e)||!e)return e;var t=e[Symbol.toPrimitive];if(void 0!==t){var i=t.call(e,"string");if("object"!=k(i))return i;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}(e);return"symbol"==k(t)?t:t+""}function w(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){})))}catch(e){}return(w=function(){return!!e})()}function T(e){return T=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(e){return e.__proto__||Object.getPrototypeOf(e)},T(e)}function O(e,t){return O=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(e,t){return e.__proto__=t,e},O(e,t)}var P=function(e){function t(e){return function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,t),function(e,t,i){return t=T(t),function(e,t){if(t&&("object"==k(t)||"function"==typeof t))return t;if(void 0!==t)throw new TypeError("Derived constructors may only return object or undefined");return function(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}(e)}(e,w()?Reflect.construct(t,i||[],T(e).constructor):t.apply(e,i))}(this,t,[e])}return function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),Object.defineProperty(e,"prototype",{writable:!1}),t&&O(e,t)}(t,e),i=t,(l=[{key:"initialize",value:function(){this.listenTo(f.Vk.LIBRARY,"libraries:sync",this.render),this.listenTo(f.Vk.VIDEO,"".concat(f.M_.VIDEOS_BY_ID,":").concat(this.options.videoIds.join(","),":sync"),this.render),this.listenTo(this.channelName,"library:selected",this.onLibrarySelected),this.listenTo(this.channelName,"folder:selected",this.onFolderSelected),this.libraryDataService=r.u.getInstance(f.Or.Library,this),this.videoDataService=r.u.getInstance(f.Or.Video,this)}},{key:"name",get:function(){return"MoveVideoView"}},{key:"title",get:function(){return this.options.videoIds&&o.T.getPhrase(this.lang,"title",{smartCount:this.options.videoIds.length})}},{key:"lang",get:function(){return"libraryEditor.moveVideo"}},{key:"channelName",get:function(){return y.N0.generateUniqueChannelName(this)}},{key:"libraryTreeKey",get:function(){return"libraryselect:".concat(this.cid)}},{key:"folderTreeKey",get:function(){return"folderselect:".concat(this.cid)}},{key:"template",get:function(){return m()}},{key:"regions",value:function(){return{folder:".folder-region",library:".library-region"}}},{key:"events",value:function(){return{submit:"onSubmit","click .submit":"onSubmit"}}},{key:"elements",get:function(){return{folderLabel:".folder-label"}}},{key:"behaviors",get:function(){var e,t,i,n,r=this;return[{title:o.T.getPhrase(this.lang,"heading",{smartCount:null!==(t=null===(e=this.options.videoIds)||void 0===e?void 0:e.length)&&void 0!==t?t:1}),behaviorClass:c.Yw,closeOnRoute:!1,spinnerButtonOptions:{channelName:this.channelName,model:this.spinnerModel=new b.v,buttonText:o.T.getPhrase(this.lang,"submit",{smartCount:null!==(n=null===(i=this.options.videoIds)||void 0===i?void 0:i.length)&&void 0!==n?n:1}),tooltip:function(){return r.getSubmitBtnTooltipOptions()},onClick:function(){return r.onSubmit()}}}]}},{key:"filterLibrariesWithVideo",value:function(){var e=this;if(this.libraries&&this.collection&&this.hasMultipleLibraries()){var t=this.collection.map((function(e){return e.get("libraries").map((function(e){return e.get("id")}))})),i=n.uniq(n.flatten(t)),r=[],o=[];this.libraries.forEach((function(t){var l=y.PU.getModelFromCollection(e.options.folderId,t.get("children"));!n.contains(i,+t.get("id"))||l?r.push(t):o.push(t)})),this.libraries=new u.q(r),this.hiddenLibraryNames=o.map((function(e){return e.get("name")})),1===this.libraries.length&&this.onLibrarySelected(this.libraries.first())}}},{key:"getSubmitBtnTooltipOptions",value:function(){if(this.spinnerModel.get(h.ZV.Disabled))return{title:o.T.getPhrase(this.lang,"btnTooltip")}}},{key:"onLibrarySelected",value:function(e){var t=y.PU.getSelected(this.libraryTreeKey,this.libraries);t&&y.PU.deselectAll(this.folderTreeKey,t.get("children")),y.PU.setSelected(this.libraryTreeKey,e,this.libraries),this.hasMultipleLibraries()&&this.getUI("folderLabel").show(),this.spinnerModel.set(h.ZV.Disabled,!0),this.render()}},{key:"onFolderSelected",value:function(e,t){var i=y.PU.getSelected(this.libraryTreeKey,this.libraries).get("children");y.PU.setSelected(this.folderTreeKey,e,i,t),t||this.spinnerModel.set(h.ZV.Disabled,!1)}},{key:"onSubmit",value:function(){var e=this;this.spinnerModel.set(h.ZV.ShowSpinner,!0);var t,i,n=y.PU.getSelected(this.folderTreeKey,this.libraries),r=n.get("id"),o=this.collection.map((function(e){return e.id}));this.collection.each((function(n){t||(t=n.categories.find((function(t){return t.get("id")===+e.options.folderId})),i=n)}));var l=1===this.collection.length?i.get("name"):"",a=s.J.moveVideoAlert(t.get("name"),n.get("name"),n.get("id"),this.collection.length,l);this.videoDataService.moveVideos(o,r,this.options.folderId,(function(){e.triggerMethod("hide")}),a),this.logAction(Object.entries(o),r)}},{key:"hasMultipleLibraries",value:function(){return this.libraries&&this.libraries.length>1}},{key:"getFormattedHiddenLibraryNames",value:function(){var e=n.map(this.hiddenLibraryNames,(function(e){return"<strong>".concat(p.m.escapeExpression(e),"</strong>")}));if(1===e.length)return e[0];var t=o.T.getPhrase(this.lang,"and");return"".concat(e.slice(0,-1).join(", ")," ").concat(t," ").concat(e.slice(-1))}},{key:"logAction",value:function(e,t){var i={newParentId:t,oldParentId:this.options.folderId,count:this.collection.length};1===this.collection.length&&(i.id=n.first(Object.values(e))),a.k.logUserAction(i,this.options.analyticsOptions)}},{key:"renderLibrarySelect",value:function(){if(this.libraries&&1!==this.libraries.length){var e=y.PU.getSelected(this.libraryTreeKey,this.libraries);this.showChildView("library",new g.A({collection:this.libraries,channelName:this.channelName,currentLibraryId:e?e.get("id"):null}))}}},{key:"renderFolderSelect",value:function(){var e=y.PU.getSelected(this.libraryTreeKey,this.libraries);this.showChildView("folder",new d.Y({collection:e.get("children"),channelName:this.channelName,folderTreeKey:this.folderTreeKey,disabledIds:[this.options.folderId]}))}},{key:"viewOptions",value:function(){var e,t;return{hasMultipleLibraries:this.hasMultipleLibraries(),hiddenLibraryNames:(null===(e=this.hiddenLibraryNames)||void 0===e?void 0:e.length)?this.getFormattedHiddenLibraryNames():"",hiddenLibraryNamesLength:null===(t=this.hiddenLibraryNames)||void 0===t?void 0:t.length}}},{key:"onBeforeRender",value:function(){var e=this;return this.libraries||this.libraryDataService.getLibraries((function(t){e.libraries=new u.q(t.filter((function(e){return!!e.get("children").length}))),e.hasMultipleLibraries()||e.onLibrarySelected(e.libraries.first()),e.filterLibrariesWithVideo(),e.render()})),this.collection||this.videoDataService.getVideos(this.options.videoIds,(function(t){e.collection=t,e.filterLibrariesWithVideo(),e.render()})),!!this.collection&&!!this.libraries}},{key:"onRender",value:function(){this.renderLibrarySelect(),y.PU.getSelected(this.libraryTreeKey,this.libraries)&&this.renderFolderSelect()}}])&&S(i.prototype,l),Object.defineProperty(i,"prototype",{writable:!1}),i;var i,l}(l.Q.G7)},97011:function(e,t,i){var n=i(32227);e.exports=(n.default||n).template({1:function(e,t,i,n,r){var o;return e.propertyIsEnumerable,' <div class="alert alert-info" role="alert">\n <p class="m-0">'+(null!=(o=(i.lang||t&&t.lang||e.hooks.helperMissing).call(null!=t?t:e.nullContext||{},"hiddenLibraryNames",{name:"lang",hash:{smartCount:null!=(o=null!=t?t.options:t)?o.hiddenLibraryNamesLength:o,libraries:null!=(o=null!=t?t.options:t)?o.hiddenLibraryNames:o},data:r}))?o:"")+"</p>\n </div>\n"},3:function(e,t,i,n,r){return e.propertyIsEnumerable,' <div class="form-group">\n <label class="control-label">'+e.escapeExpression((i.lang||t&&t.lang||e.hooks.helperMissing).call(null!=t?t:e.nullContext||{},"library",{name:"lang",hash:{},data:r}))+'</label>\n <div class="library-region"></div>\n </div>\n'},5:function(e,t,i,n,r){return'style="display: none;"'},compiler:[8,">= 4.3.0"],main:function(e,t,i,n,r){e.propertyIsEnumerable;var o,l=null!=t?t:e.nullContext||{};return"<form>\n"+(null!=(o=i.if.call(l,null!=(o=null!=t?t.options:t)?o.hiddenLibraryNames:o,{name:"if",hash:{},fn:e.program(1,r,0),inverse:e.noop,data:r}))?o:"")+"\n"+(null!=(o=i.if.call(l,null!=(o=null!=t?t.options:t)?o.hasMultipleLibraries:o,{name:"if",hash:{},fn:e.program(3,r,0),inverse:e.noop,data:r}))?o:"")+'\n <div class="form-group">\n <label class="control-label folder-label" '+(null!=(o=i.if.call(l,null!=(o=null!=t?t.options:t)?o.hasMultipleLibraries:o,{name:"if",hash:{},fn:e.program(5,r,0),inverse:e.noop,data:r}))?o:"")+">"+e.escapeExpression((i.lang||t&&t.lang||e.hooks.helperMissing).call(l,"folder",{name:"lang",hash:{},data:r}))+'</label>\n <div class="folder-region"></div>\n </div>\n</form>'},useData:!0})}}]);
1
+ (self.webpackChunk_clickview_library_editor=self.webpackChunk_clickview_library_editor||[]).push([[5424],{21771:function(e,t,i){"use strict";i.r(t),i.d(t,{MoveVideoView:function(){return P}});var n=i(21161),r=i(21679),o=i(57857),l=i(31647),a=i(52076),s=i(13156),c=i(10101),u=i(90680),h=i(88172),d=i(20072),f=i(57098),b=i(67670),y=i(93569),p=i(76001),g=i(79665),v=i(97011),m=i.n(v);function k(e){return k="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},k(e)}function S(e,t){for(var i=0;i<t.length;i++){var n=t[i];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(e,L(n.key),n)}}function L(e){var t=function(e){if("object"!=k(e)||!e)return e;var t=e[Symbol.toPrimitive];if(void 0!==t){var i=t.call(e,"string");if("object"!=k(i))return i;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}(e);return"symbol"==k(t)?t:t+""}function w(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){})))}catch(e){}return(w=function(){return!!e})()}function T(e){return T=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(e){return e.__proto__||Object.getPrototypeOf(e)},T(e)}function O(e,t){return O=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(e,t){return e.__proto__=t,e},O(e,t)}var P=function(e){function t(e){return function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,t),function(e,t,i){return t=T(t),function(e,t){if(t&&("object"==k(t)||"function"==typeof t))return t;if(void 0!==t)throw new TypeError("Derived constructors may only return object or undefined");return function(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}(e)}(e,w()?Reflect.construct(t,i||[],T(e).constructor):t.apply(e,i))}(this,t,[e])}return function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),Object.defineProperty(e,"prototype",{writable:!1}),t&&O(e,t)}(t,e),i=t,(l=[{key:"initialize",value:function(){this.listenTo(f.Vk.LIBRARY,"libraries:sync",this.render),this.listenTo(f.Vk.VIDEO,"".concat(f.M_.VIDEOS_BY_ID,":").concat(this.options.videoIds.join(","),":sync"),this.render),this.listenTo(this.channelName,"library:selected",this.onLibrarySelected),this.listenTo(this.channelName,"folder:selected",this.onFolderSelected),this.libraryDataService=r.u.getInstance(f.Or.Library,this),this.videoDataService=r.u.getInstance(f.Or.Video,this)}},{key:"name",get:function(){return"MoveVideoView"}},{key:"title",get:function(){return this.options.videoIds&&o.T.getPhrase(this.lang,"title",{smartCount:this.options.videoIds.length})}},{key:"lang",get:function(){return"libraryEditor.moveVideo"}},{key:"channelName",get:function(){return y.N0.generateUniqueChannelName(this)}},{key:"libraryTreeKey",get:function(){return"libraryselect:".concat(this.cid)}},{key:"folderTreeKey",get:function(){return"folderselect:".concat(this.cid)}},{key:"template",get:function(){return m()}},{key:"regions",value:function(){return{folder:".folder-region",library:".library-region"}}},{key:"events",value:function(){return{submit:"onSubmit","click .submit":"onSubmit"}}},{key:"elements",get:function(){return{folderLabel:".folder-label"}}},{key:"behaviors",get:function(){var e,t,i,n,r=this;return[{title:o.T.getPhrase(this.lang,"heading",{smartCount:null!==(t=null===(e=this.options.videoIds)||void 0===e?void 0:e.length)&&void 0!==t?t:1}),behaviorClass:c.Yw,closeOnRoute:!1,spinnerButtonOptions:{channelName:this.channelName,model:this.spinnerModel=new b.v,buttonText:o.T.getPhrase(this.lang,"submit",{smartCount:null!==(n=null===(i=this.options.videoIds)||void 0===i?void 0:i.length)&&void 0!==n?n:1}),tooltip:function(){return r.getSubmitBtnTooltipOptions()},onClick:function(){return r.onSubmit()}}}]}},{key:"filterLibrariesWithVideo",value:function(){var e=this;if(this.libraries&&this.collection&&this.hasMultipleLibraries()){var t=this.collection.map((function(e){return e.get("libraries").map((function(e){return e.get("id")}))})),i=n.uniq(n.flatten(t)),r=[],o=[];this.libraries.forEach((function(t){var l=y.PU.getModelFromCollection(e.options.folderId,t.get("children"));!n.contains(i,+t.get("id"))||l?r.push(t):o.push(t)})),this.libraries=new u.q(r),this.hiddenLibraryNames=o.map((function(e){return e.get("name")})),1===this.libraries.length&&this.onLibrarySelected(this.libraries.first())}}},{key:"getSubmitBtnTooltipOptions",value:function(){if(this.spinnerModel.get(h.ZV.Disabled))return{title:o.T.getPhrase(this.lang,"btnTooltip")}}},{key:"onLibrarySelected",value:function(e){var t=y.PU.getSelected(this.libraryTreeKey,this.libraries);t&&y.PU.deselectAll(this.folderTreeKey,t.get("children")),y.PU.setSelected(this.libraryTreeKey,e,this.libraries),this.hasMultipleLibraries()&&this.getUI("folderLabel").show(),this.spinnerModel.set(h.ZV.Disabled,!0),this.render()}},{key:"onFolderSelected",value:function(e,t){var i=y.PU.getSelected(this.libraryTreeKey,this.libraries).get("children");y.PU.setSelected(this.folderTreeKey,e,i,t),t||this.spinnerModel.set(h.ZV.Disabled,!1)}},{key:"onSubmit",value:function(){var e=this;this.spinnerModel.set(h.ZV.ShowSpinner,!0);var t,i,n=y.PU.getSelected(this.folderTreeKey,this.libraries),r=n.get("id"),o=this.collection.map((function(e){return e.id}));this.collection.each((function(n){t||(t=n.categories.find((function(t){return t.get("id")===+e.options.folderId})),i=n)}));var l=1===this.collection.length?i.get("name"):"",a=s.J.moveVideoAlert(t.get("name"),n.get("name"),n.get("id"),this.collection.length,l);this.videoDataService.moveVideos(o,r,this.options.folderId,(function(){e.triggerMethod("hide")}),a),this.logAction(Object.entries(o),r)}},{key:"hasMultipleLibraries",value:function(){return this.libraries&&this.libraries.length>1}},{key:"getFormattedHiddenLibraryNames",value:function(){var e=n.map(this.hiddenLibraryNames,(function(e){return"<strong>".concat(p.m.escapeExpression(e),"</strong>")}));if(1===e.length)return e[0];var t=o.T.getPhrase(this.lang,"and");return"".concat(e.slice(0,-1).join(", ")," ").concat(t," ").concat(e.slice(-1))}},{key:"logAction",value:function(e,t){var i={newParentId:t,oldParentId:this.options.folderId,count:this.collection.length};1===this.collection.length&&(i.id=n.first(Object.values(e))),a.k.logUserAction(i,this.options.analyticsOptions)}},{key:"renderLibrarySelect",value:function(){if(this.libraries&&1!==this.libraries.length){var e=y.PU.getSelected(this.libraryTreeKey,this.libraries);this.showChildView("library",new g.A({collection:this.libraries,channelName:this.channelName,currentLibraryId:e?e.get("id"):null}))}}},{key:"renderFolderSelect",value:function(){var e=y.PU.getSelected(this.libraryTreeKey,this.libraries);this.showChildView("folder",new d.Y({collection:e.get("children"),channelName:this.channelName,folderTreeKey:this.folderTreeKey,disabledIds:[this.options.folderId]}))}},{key:"viewOptions",value:function(){var e,t;return{hasMultipleLibraries:this.hasMultipleLibraries(),hiddenLibraryNames:(null===(e=this.hiddenLibraryNames)||void 0===e?void 0:e.length)?this.getFormattedHiddenLibraryNames():"",hiddenLibraryNamesLength:null===(t=this.hiddenLibraryNames)||void 0===t?void 0:t.length}}},{key:"onBeforeRender",value:function(){var e=this;return this.libraries||this.libraryDataService.getLibraries((function(t){e.libraries=new u.q(t.filter((function(e){return!!e.get("children").length}))),e.hasMultipleLibraries()||e.onLibrarySelected(e.libraries.first()),e.filterLibrariesWithVideo(),e.render()})),this.collection||this.videoDataService.getVideos(this.options.videoIds,(function(t){e.collection=t,e.filterLibrariesWithVideo(),e.render()})),!!this.collection&&!!this.libraries}},{key:"onRender",value:function(){this.renderLibrarySelect(),y.PU.getSelected(this.libraryTreeKey,this.libraries)&&this.renderFolderSelect()}}])&&S(i.prototype,l),Object.defineProperty(i,"prototype",{writable:!1}),i;var i,l}(l.Q.G7)},97011:function(e,t,i){var n=i(31197);e.exports=(n.default||n).template({1:function(e,t,i,n,r){var o;return e.propertyIsEnumerable,' <div class="alert alert-info" role="alert">\n <p class="m-0">'+(null!=(o=(i.lang||t&&t.lang||e.hooks.helperMissing).call(null!=t?t:e.nullContext||{},"hiddenLibraryNames",{name:"lang",hash:{smartCount:null!=(o=null!=t?t.options:t)?o.hiddenLibraryNamesLength:o,libraries:null!=(o=null!=t?t.options:t)?o.hiddenLibraryNames:o},data:r}))?o:"")+"</p>\n </div>\n"},3:function(e,t,i,n,r){return e.propertyIsEnumerable,' <div class="form-group">\n <label class="control-label">'+e.escapeExpression((i.lang||t&&t.lang||e.hooks.helperMissing).call(null!=t?t:e.nullContext||{},"library",{name:"lang",hash:{},data:r}))+'</label>\n <div class="library-region"></div>\n </div>\n'},5:function(e,t,i,n,r){return'style="display: none;"'},compiler:[8,">= 4.3.0"],main:function(e,t,i,n,r){e.propertyIsEnumerable;var o,l=null!=t?t:e.nullContext||{};return"<form>\n"+(null!=(o=i.if.call(l,null!=(o=null!=t?t.options:t)?o.hiddenLibraryNames:o,{name:"if",hash:{},fn:e.program(1,r,0),inverse:e.noop,data:r}))?o:"")+"\n"+(null!=(o=i.if.call(l,null!=(o=null!=t?t.options:t)?o.hasMultipleLibraries:o,{name:"if",hash:{},fn:e.program(3,r,0),inverse:e.noop,data:r}))?o:"")+'\n <div class="form-group">\n <label class="control-label folder-label" '+(null!=(o=i.if.call(l,null!=(o=null!=t?t.options:t)?o.hasMultipleLibraries:o,{name:"if",hash:{},fn:e.program(5,r,0),inverse:e.noop,data:r}))?o:"")+">"+e.escapeExpression((i.lang||t&&t.lang||e.hooks.helperMissing).call(l,"folder",{name:"lang",hash:{},data:r}))+'</label>\n <div class="folder-region"></div>\n </div>\n</form>'},useData:!0})}}]);
@@ -0,0 +1 @@
1
+ "use strict";(self.webpackChunk_clickview_library_editor=self.webpackChunk_clickview_library_editor||[]).push([[5524],{99828:function(e,t,r){r.d(t,{y:function(){return u}});var n=r(88483);function i(e){return i="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},i(e)}function o(e,t,r){return(t=function(e){var t=function(e){if("object"!=i(e)||!e)return e;var t=e[Symbol.toPrimitive];if(void 0!==t){var r=t.call(e,"string");if("object"!=i(r))return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}(e);return"symbol"==i(t)?t:t+""}(t))in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}var u=o(o(o(o(o(o(o(o(o({},n.__.Thumbnails,{width:1280,height:720}),n.__.Banners,{width:1200,height:222}),n.__.Covers,{width:512,height:512}),n.__.Posters,{width:1e3,height:1500}),n.__.TallPosters,{width:1080,height:1920}),n.__.HeroBanners,{width:1920,height:640}),n.__.None,{width:1,height:1}),n.__.Avatars,{width:256,height:256}),n.__.Logos,{width:128,height:128})},24365:function(e,t,r){r.r(t),r.d(t,{CropperHelper:function(){return y}});var n=r(32735),i=r(44645),o=r(51934),u=r.n(o),a=r(57857),l=r(4231),c=r(83996),f=r(99828);function s(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=[],l=!0,c=!1;try{if(o=(r=r.call(e)).next,0===t){if(Object(r)!==r)return;l=!1}else for(;!(l=(n=o.call(r)).done)&&(a.push(n.value),a.length!==t);l=!0);}catch(e){c=!0,i=e}finally{try{if(!l&&null!=r.return&&(u=r.return(),Object(u)!==u))return}finally{if(c)throw i}}return a}}(e,t)||function(e,t){if(e){if("string"==typeof e)return p(e,t);var r={}.toString.call(e).slice(8,-1);return"Object"===r&&e.constructor&&(r=e.constructor.name),"Map"===r||"Set"===r?Array.from(e):"Arguments"===r||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r)?p(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 p(e,t){(null==t||t>e.length)&&(t=e.length);for(var r=0,n=Array(t);r<t;r++)n[r]=e[r];return n}var h=a.T.encloseNamespace("shared.imageCropper"),m=/data:([a-zA-Z0-9]+\/[a-zA-Z0-9-.+]+).*,.*/;function d(e){var t=s(n.useState(!1),2),r=t[0],i=t[1],o=s(n.useState(!1),2),a=o[0],p=o[1],d=n.useRef(null),y=n.useRef(null);return n.useEffect((function(){var t=new Image;t.src=e.src;var r=d.current.offsetWidth/t.width,n=f.y[e.imageType],o={viewMode:2,autoCropArea:1,ready:function(){return i(!0)}};return n&&(o.minCropBoxWidth=n.width*r,o.minCropBoxHeight=n.height*r,o.aspectRatio=n.width/n.height),y.current=new(u())(d.current,o),function(){y.current.destroy()}}),[]),n.createElement(l.G,{title:h("title"),closePopup:e.closePopup,size:e.popupSize},n.createElement("div",null,n.createElement("img",{src:e.src,alt:e.alt,ref:d,className:"img img-fluid"})),n.createElement(c.u,null,n.createElement(c.u.Cancel,{onClick:e.closePopup}),n.createElement(c.u.Submit,{onClick:function(){if(r){var t=y.current.getCroppedCanvas().toDataURL(function(e){var t=e.match(m);if(t)return t[1]}(e.src));p(!0),e.onClickCrop(t,e.closePopup)}},text:h("crop"),variant:"dark",showSpinner:a})))}d.defaultProps={popupSize:"lg"};var y={renderCropper:function(e){var t=(0,i.s)(document.getElementById("dialog-region"));t.render(n.createElement(d,Object.assign({},e,{closePopup:function(){return t.unmount()}})))}}}}]);
@@ -0,0 +1 @@
1
+ "use strict";(self.webpackChunk_clickview_library_editor=self.webpackChunk_clickview_library_editor||[]).push([[5698],{75698:function(e,t,n){n.d(t,{Z:function(){return ke}});var r=n(95685),o=n.n(r),s=n(32735),a=n(30720),l=n(14473);var c=n(79765),i=n(36177),u=s.createContext(null),d=n(46603),p=n(38521),f=n(37479),v=n(51988),m=n(74512);const w=["children","usePopper"],g=()=>{};function h(e={}){const t=(0,s.useContext)(u),[n,r]=(0,d.Z)(),o=(0,s.useRef)(!1),{flip:a,offset:l,rootCloseEvent:c,fixed:i=!1,placement:m,popperConfig:w={},enableEventListeners:h=!0,usePopper:x=!!t}=e,y=null==(null==t?void 0:t.show)?!!e.show:t.show;y&&!o.current&&(o.current=!0);const{placement:b,setMenu:C,menuElement:E,toggleElement:k}=t||{},N=(0,p.Z)(k,E,(0,v.ZP)({placement:m||b||"bottom-start",enabled:x,enableEvents:null==h?y:h,offset:l,flip:a,fixed:i,arrowElement:n,popperConfig:w})),P=Object.assign({ref:C||g,"aria-labelledby":null==k?void 0:k.id},N.attributes.popper,{style:N.styles.popper}),S={show:y,placement:b,hasShown:o.current,toggle:null==t?void 0:t.toggle,popper:x?N:null,arrowProps:x?Object.assign({ref:r},N.attributes.arrow,{style:N.styles.arrow}):{}};return(0,f.Z)(E,(e=>{null==t||t.toggle(!1,e)}),{clickTrigger:c,disabled:!y}),[P,S]}function x(e){let{children:t,usePopper:n=!0}=e,r=function(e,t){if(null==e)return{};var n={};for(var r in e)if({}.hasOwnProperty.call(e,r)){if(t.indexOf(r)>=0)continue;n[r]=e[r]}return n}(e,w);const[o,s]=h(Object.assign({},r,{usePopper:n}));return(0,m.jsx)(m.Fragment,{children:t(o,s)})}x.displayName="DropdownMenu";var y=x;const b={prefix:String(Math.round(1e10*Math.random())),current:0},C=s.createContext(b),E=s.createContext(!1);let k=Boolean("undefined"!=typeof window&&window.document&&window.document.createElement),N=new WeakMap;const P="function"==typeof s.useId?function(e){let t=s.useId(),[n]=(0,s.useState)("function"==typeof s.useSyncExternalStore?s.useSyncExternalStore(j,S,D):(0,s.useContext)(E));return e||`${n?"react-aria":`react-aria${b.prefix}`}-${t}`}:function(e){let t=(0,s.useContext)(C);t!==b||k||console.warn("When server rendering, you must wrap your application in an <SSRProvider> to ensure consistent ids are generated between the client and server.");let n=function(e=!1){let t=(0,s.useContext)(C),n=(0,s.useRef)(null);if(null===n.current&&!e){var r,o;let e=null===(o=s.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED)||void 0===o||null===(r=o.ReactCurrentOwner)||void 0===r?void 0:r.current;if(e){let n=N.get(e);null==n?N.set(e,{id:t.current,state:e.memoizedState}):e.memoizedState!==n.state&&(t.current=n.id,N.delete(e))}n.current=++t.current}return n.current}(!!e),r=`react-aria${t.prefix}`;return e||`${r}-${n}`};function S(){return!1}function D(){return!0}function j(e){return()=>{}}const O=e=>{var t;return"menu"===(null==(t=e.getAttribute("role"))?void 0:t.toLowerCase())},R=()=>{};function T(){const e=P(),{show:t=!1,toggle:n=R,setToggle:r,menuElement:o}=(0,s.useContext)(u)||{},a=(0,s.useCallback)((e=>{n(!t,e)}),[t,n]),l={id:e,ref:r||R,onClick:a,"aria-expanded":!!t};return o&&O(o)&&(l["aria-haspopup"]=!0),[l,{show:t,toggle:n}]}function Z({children:e}){const[t,n]=T();return(0,m.jsx)(m.Fragment,{children:e(t,n)})}Z.displayName="DropdownToggle";var $=Z;const _=(e,t=null)=>null!=e?String(e):t||null;var I=s.createContext(null);const M=s.createContext(null);M.displayName="NavContext";var K=M,L=n(16616),A=n(27445);const F=["eventKey","disabled","onClick","active","as"];function B({key:e,href:t,active:n,disabled:r,onClick:o}){const a=(0,s.useContext)(I),l=(0,s.useContext)(K),{activeKey:c}=l||{},u=_(e,t),d=null==n&&null!=e?_(c)===u:n;return[{onClick:(0,i.Z)((e=>{r||(null==o||o(e),a&&!e.isPropagationStopped()&&a(u,e))})),"aria-disabled":r||void 0,"aria-selected":d,[(0,A.PB)("dropdown-item")]:""},{isActive:d}]}const W=s.forwardRef(((e,t)=>{let{eventKey:n,disabled:r,onClick:o,active:s,as:a=L.ZP}=e,l=function(e,t){if(null==e)return{};var n={};for(var r in e)if({}.hasOwnProperty.call(e,r)){if(t.indexOf(r)>=0)continue;n[r]=e[r]}return n}(e,F);const[c]=B({key:n,href:l.href,disabled:r,onClick:o,active:s});return(0,m.jsx)(a,Object.assign({},l,{ref:t},c))}));W.displayName="DropdownItem";var U=W,z=n(9418);function H(){const e=function(){const[,e]=(0,s.useReducer)((e=>!e),!1);return e}(),t=(0,s.useRef)(null),n=(0,s.useCallback)((n=>{t.current=n,e()}),[e]);return[t,n]}function G({defaultShow:e,show:t,onSelect:n,onToggle:r,itemSelector:o=`* [${(0,A.PB)("dropdown-item")}]`,focusFirstItemOnShow:d,placement:p="bottom-start",children:f}){const v=(0,z.Z)(),[w,g]=function(e,t,n){const r=(0,s.useRef)(void 0!==e),[o,a]=(0,s.useState)(t),l=void 0!==e,c=r.current;return r.current=l,!l&&c&&o!==t&&a(t),[l?e:o,(0,s.useCallback)(((...e)=>{const[t,...r]=e;let o=null==n?void 0:n(t,...r);return a(t),o}),[n])]}(t,e,r),[h,x]=H(),y=h.current,[b,C]=H(),E=b.current,k=(0,c.Z)(w),N=(0,s.useRef)(null),P=(0,s.useRef)(!1),S=(0,s.useContext)(I),D=(0,s.useCallback)(((e,t,n=(null==t?void 0:t.type))=>{g(e,{originalEvent:t,source:n})}),[g]),j=(0,i.Z)(((e,t)=>{null==n||n(e,t),D(!1,t,"select"),t.isPropagationStopped()||null==S||S(e,t)})),R=(0,s.useMemo)((()=>({toggle:D,placement:p,show:w,menuElement:y,toggleElement:E,setMenu:x,setToggle:C})),[D,p,w,y,E,x,C]);y&&k&&!w&&(P.current=y.contains(y.ownerDocument.activeElement));const T=(0,i.Z)((()=>{E&&E.focus&&E.focus()})),Z=(0,i.Z)((()=>{const e=N.current;let t=d;if(null==t&&(t=!(!h.current||!O(h.current))&&"keyboard"),!1===t||"keyboard"===t&&!/^key.+$/.test(e))return;const n=(0,a.Z)(h.current,o)[0];n&&n.focus&&n.focus()}));(0,s.useEffect)((()=>{w?Z():P.current&&(P.current=!1,T())}),[w,P,T,Z]),(0,s.useEffect)((()=>{N.current=null}));const $=(e,t)=>{if(!h.current)return null;const n=(0,a.Z)(h.current,o);let r=n.indexOf(e)+t;return r=Math.max(0,Math.min(r,n.length)),n[r]};return function(e,t,n,r=!1){const o=(0,i.Z)(n);(0,s.useEffect)((()=>{const n="function"==typeof e?e():e;return n.addEventListener(t,o,r),()=>n.removeEventListener(t,o,r)}),[e])}((0,s.useCallback)((()=>v.document),[v]),"keydown",(e=>{var t,n;const{key:r}=e,o=e.target,s=null==(t=h.current)?void 0:t.contains(o),a=null==(n=b.current)?void 0:n.contains(o);if(/input|textarea/i.test(o.tagName)&&(" "===r||"Escape"!==r&&s||"Escape"===r&&"search"===o.type))return;if(!s&&!a)return;if(!("Tab"!==r||h.current&&w))return;N.current=e.type;const c={originalEvent:e,source:e.type};switch(r){case"ArrowUp":{const t=$(o,-1);return t&&t.focus&&t.focus(),void e.preventDefault()}case"ArrowDown":if(e.preventDefault(),w){const e=$(o,1);e&&e.focus&&e.focus()}else g(!0,c);return;case"Tab":(0,l.ZP)(o.ownerDocument,"keyup",(e=>{var t;("Tab"!==e.key||e.target)&&null!=(t=h.current)&&t.contains(e.target)||g(!1,c)}),{once:!0});break;case"Escape":"Escape"===r&&(e.preventDefault(),e.stopPropagation()),g(!1,c)}})),(0,m.jsx)(I.Provider,{value:j,children:(0,m.jsx)(u.Provider,{value:R,children:f})})}G.displayName="Dropdown",G.Menu=y,G.Toggle=$,G.Item=U;var Y=G,q=n(80638);const J=s.createContext({});J.displayName="DropdownContext";var Q=J,V=n(46304);const X=s.forwardRef((({className:e,bsPrefix:t,as:n="hr",role:r="separator",...s},a)=>(t=(0,V.vE)(t,"dropdown-divider"),(0,m.jsx)(n,{ref:a,className:o()(e,t),role:r,...s}))));X.displayName="DropdownDivider";var ee=X;const te=s.forwardRef((({className:e,bsPrefix:t,as:n="div",role:r="heading",...s},a)=>(t=(0,V.vE)(t,"dropdown-header"),(0,m.jsx)(n,{ref:a,className:o()(e,t),role:r,...s}))));te.displayName="DropdownHeader";var ne=te;n(54895),n(60577);var re=n(14140);new WeakMap;const oe=["onKeyDown"],se=s.forwardRef(((e,t)=>{let{onKeyDown:n}=e,r=function(e,t){if(null==e)return{};var n={};for(var r in e)if({}.hasOwnProperty.call(e,r)){if(t.indexOf(r)>=0)continue;n[r]=e[r]}return n}(e,oe);const[o]=(0,L.FT)(Object.assign({tagName:"a"},r)),s=(0,i.Z)((e=>{o.onKeyDown(e),null==n||n(e)}));return(a=r.href)&&"#"!==a.trim()&&"button"!==r.role?(0,m.jsx)("a",Object.assign({ref:t},r,{onKeyDown:n})):(0,m.jsx)("a",Object.assign({ref:t},r,o,{onKeyDown:s}));var a}));se.displayName="Anchor";var ae=se;const le=s.forwardRef((({bsPrefix:e,className:t,eventKey:n,disabled:r=!1,onClick:s,active:a,as:l=ae,...c},i)=>{const u=(0,V.vE)(e,"dropdown-item"),[d,p]=B({key:n,href:c.href,disabled:r,onClick:s,active:a});return(0,m.jsx)(l,{...c,...d,ref:i,className:o()(t,u,p.isActive&&"active",r&&"disabled")})}));le.displayName="DropdownItem";var ce=le;const ie=s.forwardRef((({className:e,bsPrefix:t,as:n="span",...r},s)=>(t=(0,V.vE)(t,"dropdown-item-text"),(0,m.jsx)(n,{ref:s,className:o()(e,t),...r}))));ie.displayName="DropdownItemText";var ue=ie,de=n(72080);n(65719);const pe=s.createContext(null);pe.displayName="InputGroupContext";var fe=pe;const ve=s.createContext(null);ve.displayName="NavbarContext";var me=ve;function we(e,t){return e}function ge(e,t,n){let r=e?n?"bottom-start":"bottom-end":n?"bottom-end":"bottom-start";return"up"===t?r=e?n?"top-start":"top-end":n?"top-end":"top-start":"end"===t?r=e?n?"left-end":"right-end":n?"left-start":"right-start":"start"===t?r=e?n?"right-end":"left-end":n?"right-start":"left-start":"down-centered"===t?r="bottom":"up-centered"===t&&(r="top"),r}n(56784);const he=s.forwardRef((({bsPrefix:e,className:t,align:n,rootCloseEvent:r,flip:a=!0,show:l,renderOnMount:c,as:i="div",popperConfig:u,variant:d,...p},f)=>{let v=!1;const w=(0,s.useContext)(me),g=(0,V.vE)(e,"dropdown-menu"),{align:x,drop:y,isRTL:b}=(0,s.useContext)(Q);n=n||x;const C=(0,s.useContext)(fe),E=[];if(n)if("object"==typeof n){const e=Object.keys(n);if(e.length){const t=e[0],r=n[t];v="start"===r,E.push(`${g}-${t}-${r}`)}}else"end"===n&&(v=!0);const k=ge(v,y,b),[N,{hasShown:P,popper:S,show:D,toggle:j}]=h({flip:a,rootCloseEvent:r,show:l,usePopper:!w&&0===E.length,offset:[0,2],popperConfig:u,placement:k});if(N.ref=(0,de.Z)(we(f),N.ref),(0,re.Z)((()=>{D&&(null==S||S.update())}),[D]),!P&&!c&&!C)return null;"string"!=typeof i&&(N.show=D,N.close=()=>null==j?void 0:j(!1),N.align=n);let O=p.style;return null!=S&&S.placement&&(O={...p.style,...N.style},p["x-placement"]=S.placement),(0,m.jsx)(i,{...p,...N,style:O,...(E.length||w)&&{"data-bs-popper":"static"},className:o()(t,g,D&&"show",v&&`${g}-end`,d&&`${g}-${d}`,...E)})}));he.displayName="DropdownMenu";var xe=he,ye=n(98269);const be=s.forwardRef((({bsPrefix:e,split:t,className:n,childBsPrefix:r,as:a=ye.Z,...l},c)=>{const i=(0,V.vE)(e,"dropdown-toggle"),d=(0,s.useContext)(u);void 0!==r&&(l.bsPrefix=r);const[p]=T();return p.ref=(0,de.Z)(p.ref,we(c)),(0,m.jsx)(a,{className:o()(n,i,t&&`${i}-split`,(null==d?void 0:d.show)&&"show"),...p,...l})}));be.displayName="DropdownToggle";var Ce=be;const Ee=s.forwardRef(((e,t)=>{const{bsPrefix:n,drop:r="down",show:a,className:l,align:c="start",onSelect:u,onToggle:d,focusFirstItemOnShow:p,as:f="div",navbar:v,autoClose:w=!0,...g}=(0,q.Ch)(e,{show:"onToggle"}),h=(0,s.useContext)(fe),x=(0,V.vE)(n,"dropdown"),y=(0,V.SC)(),b=(0,i.Z)(((e,t)=>{var n;t.originalEvent.currentTarget!==document||"keydown"===t.source&&"Escape"!==t.originalEvent.key||(t.source="rootClose"),n=t.source,(!1===w?"click"===n:"inside"===w?"rootClose"!==n:"outside"!==w||"select"!==n)&&(null==d||d(e,t))})),C=ge("end"===c,r,y),E=(0,s.useMemo)((()=>({align:c,drop:r,isRTL:y})),[c,r,y]),k={down:x,"down-centered":`${x}-center`,up:"dropup","up-centered":"dropup-center dropup",end:"dropend",start:"dropstart"};return(0,m.jsx)(Q.Provider,{value:E,children:(0,m.jsx)(Y,{placement:C,show:a,onSelect:u,onToggle:b,focusFirstItemOnShow:p,itemSelector:`.${x}-item:not(.disabled):not(:disabled)`,children:h?g.children:(0,m.jsx)(f,{...g,ref:t,className:o()(l,a&&"show",k[r])})})})}));Ee.displayName="Dropdown";var ke=Object.assign(Ee,{Toggle:Ce,Menu:xe,Item:ce,ItemText:ue,Divider:ee,Header:ne})}}]);
@@ -1 +1 @@
1
- (self.webpackChunk_clickview_library_editor=self.webpackChunk_clickview_library_editor||[]).push([[5707],{44391:function(t,e,n){"use strict";n.d(e,{K:function(){return E}});var o=n(11306),i=n(31647),r=n(48088),l=n(57098),s=n(25887),a=n(15564),c=n.n(a);function u(t){return u="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},u(t)}function p(t,e){for(var n=0;n<e.length;n++){var o=e[n];o.enumerable=o.enumerable||!1,o.configurable=!0,"value"in o&&(o.writable=!0),Object.defineProperty(t,f(o.key),o)}}function f(t){var e=function(t){if("object"!=u(t)||!t)return t;var e=t[Symbol.toPrimitive];if(void 0!==e){var n=e.call(t,"string");if("object"!=u(n))return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(t)}(t);return"symbol"==u(e)?e:e+""}function h(){try{var t=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){})))}catch(t){}return(h=function(){return!!t})()}function d(t){return d=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(t){return t.__proto__||Object.getPrototypeOf(t)},d(t)}function y(t,e){return y=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(t,e){return t.__proto__=e,t},y(t,e)}var m=function(t){function e(t){return function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,e),function(t,e,n){return e=d(e),function(t,e){if(e&&("object"==u(e)||"function"==typeof e))return e;if(void 0!==e)throw new TypeError("Derived constructors may only return object or undefined");return function(t){if(void 0===t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return t}(t)}(t,h()?Reflect.construct(e,n||[],d(t).constructor):e.apply(t,n))}(this,e,[t])}return function(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function");t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,writable:!0,configurable:!0}}),Object.defineProperty(t,"prototype",{writable:!1}),e&&y(t,e)}(e,t),n=e,o=[{key:"name",get:function(){return"TagItemComponent"}},{key:"tagName",get:function(){return this.options.behavior===s.Dm.Link?"a":"span"}},{key:"className",get:function(){var t="".concat(this.options.orientation===s.zM.Vertical?"":" d-inline-flex"),e="".concat(this.isSaving()?" saving":""),n="".concat(this.options.behavior===s.Dm.Disabled?" ".concat("dE3WC"):""),o="".concat(this.options.behavior===s.Dm.Filter?" cursor-pointer":"");return"rounded-pill tag py-1 px-2 flex-shrink-0 ".concat(o).concat(t).concat(e).concat(n)}},{key:"template",get:function(){return c()}},{key:"elements",get:function(){return{close:".btn-close"}}},{key:"appLinks",get:function(){return this.options.behavior!==s.Dm.Link?{}:{"[this]":{application:l.OV.SEARCH,action:l.eX.Search.HOME,params:{tag:this.model.get("name")}}}}},{key:"defaults",get:function(){return{behavior:s.Dm.Link,orientation:s.zM.Flex}}},{key:"events",value:function(){return this.options.removeEvent?{"click @ui.close":"onRemoveTag"}:{click:"onClickTag"}}},{key:"initialize",value:function(){this.options.behavior===s.Dm.Edit&&this.listenTo(this.model,"change",this.render)}},{key:"isSaving",value:function(){if(this.options.behavior!==s.Dm.Filter){var t=this.model.pick("id","name","remove"),e=t.id,n=t.name;return!!t.remove||!e||!n}}},{key:"onRemoveTag",value:function(t){if(t.stopPropagation(),!this.isSaving())return this.model.set("remove",!0),r.Radio.channel(this.options.channelName).trigger(this.options.removeEvent,this.model),!1}},{key:"onClickTag",value:function(){this.options.behavior!==s.Dm.Filter||this.options.removeEvent||r.Radio.channel(this.options.channelName).trigger(this.options.clickEvent,this.model)}},{key:"getTrimmedName",value:function(){var t=this.model.get("name");return t.length>36?"".concat(t.substring(0,36),"..."):t}},{key:"viewOptions",value:function(){return{removable:this.options.removeEvent,trimmedName:this.getTrimmedName()}}},{key:"onRender",value:function(){this.resetClassName()}}],o&&p(n.prototype,o),Object.defineProperty(n,"prototype",{writable:!1}),n;var n,o}(i.Q.wA);function b(t){return b="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},b(t)}function v(t,e){for(var n=0;n<e.length;n++){var o=e[n];o.enumerable=o.enumerable||!1,o.configurable=!0,"value"in o&&(o.writable=!0),Object.defineProperty(t,g(o.key),o)}}function g(t){var e=function(t){if("object"!=b(t)||!t)return t;var e=t[Symbol.toPrimitive];if(void 0!==e){var n=e.call(t,"string");if("object"!=b(n))return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(t)}(t);return"symbol"==b(e)?e:e+""}function w(){try{var t=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){})))}catch(t){}return(w=function(){return!!t})()}function k(t){return k=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(t){return t.__proto__||Object.getPrototypeOf(t)},k(t)}function O(t,e){return O=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(t,e){return t.__proto__=e,t},O(t,e)}var E=function(t){function e(t){return function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,e),function(t,e,n){return e=k(e),function(t,e){if(e&&("object"==b(e)||"function"==typeof e))return e;if(void 0!==e)throw new TypeError("Derived constructors may only return object or undefined");return function(t){if(void 0===t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return t}(t)}(t,w()?Reflect.construct(e,n||[],k(t).constructor):e.apply(t,n))}(this,e,[t])}return function(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function");t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,writable:!0,configurable:!0}}),Object.defineProperty(t,"prototype",{writable:!1}),e&&O(t,e)}(e,t),n=e,(r=[{key:"initialize",value:function(){this.options.behavior!==s.Dm.Edit||this.options.removeEvent||i.Q.Ry.throw(new o.H("removeEvent is required to edit tags."))}},{key:"name",get:function(){return"TagComponentCollection"}},{key:"defaults",get:function(){return{orientation:s.zM.Flex}}},{key:"className",get:function(){var t="".concat(this.options.orientation===s.zM.Vertical?"d-flex align-items-start flex-column":"d-flex flex-wrap gap-1");return"tags ".concat(t)}},{key:"childViewOptions",get:function(){return{channelName:this.options.channelName,behavior:this.options.behavior,orientation:this.options.orientation,removeEvent:this.options.removeEvent,clickEvent:this.options.clickEvent}}},{key:"childView",get:function(){return m}}])&&v(n.prototype,r),Object.defineProperty(n,"prototype",{writable:!1}),n;var n,r}(i.Q.$W)},25887:function(t,e,n){"use strict";var o,i,r;n.d(e,{Dm:function(){return o},zM:function(){return i},x_:function(){return r}}),function(t){t[t.Link=1]="Link",t[t.Edit=2]="Edit",t[t.Disabled=3]="Disabled",t[t.Filter=4]="Filter"}(o||(o={})),function(t){t[t.Flex=1]="Flex",t[t.Vertical=2]="Vertical"}(i||(i={})),function(t){t[t.Folder=0]="Folder",t[t.Series=1]="Series"}(r||(r={}))},71641:function(t,e,n){"use strict";n.d(e,{w:function(){return f}});var o=n(39479),i=n(31647),r=n(55142);function l(t){return l="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},l(t)}function s(t,e){for(var n=0;n<e.length;n++){var o=e[n];o.enumerable=o.enumerable||!1,o.configurable=!0,"value"in o&&(o.writable=!0),Object.defineProperty(t,a(o.key),o)}}function a(t){var e=function(t){if("object"!=l(t)||!t)return t;var e=t[Symbol.toPrimitive];if(void 0!==e){var n=e.call(t,"string");if("object"!=l(n))return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(t)}(t);return"symbol"==l(e)?e:e+""}function c(){try{var t=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){})))}catch(t){}return(c=function(){return!!t})()}function u(t){return u=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(t){return t.__proto__||Object.getPrototypeOf(t)},u(t)}function p(t,e){return p=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(t,e){return t.__proto__=e,t},p(t,e)}var f=function(t){function e(t){return function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,e),function(t,e,n){return e=u(e),function(t,e){if(e&&("object"==l(e)||"function"==typeof e))return e;if(void 0!==e)throw new TypeError("Derived constructors may only return object or undefined");return function(t){if(void 0===t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return t}(t)}(t,c()?Reflect.construct(e,n||[],u(t).constructor):e.apply(t,n))}(this,e,[t])}return function(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function");t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,writable:!0,configurable:!0}}),Object.defineProperty(t,"prototype",{writable:!1}),e&&p(t,e)}(e,t),n=e,i=[{key:"name",get:function(){return"DropdownCollectionComponent"}},{key:"className",get:function(){return"dropdown-menu items-viewpart ".concat(this.getExtraClasses(this.options.displayOptions))}},{key:"attributes",get:function(){return{"aria-labelledby":"dropdownSelector"}}},{key:"initialize",value:function(){this.listenTo(this.options.channelName,"center:dropdown",this.centerSelectedItem)}},{key:"childView",get:function(){return r.N}},{key:"childViewOptions",get:function(){var t={channelName:this.options.channelName,analyticsHelper:this.options.analyticsHelper};return o.extend(t,this.options.childOptions)}},{key:"getExtraClasses",value:function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},e=t.alignment,n=void 0===e?"left":e,o=t.extraClasses,i="dropdown-menu-".concat(n);return o&&(i="".concat(i," ").concat(o)),i}},{key:"centerSelectedItem",value:function(){var t=this.$el.find(".active");if(t.length){var e=this.$el.scrollTop()+t.position().top,n=.5*this.$el.height()+.5*t.height();this.$el.scrollTop(e-n)}}}],i&&s(n.prototype,i),Object.defineProperty(n,"prototype",{writable:!1}),n;var n,i}(i.Q.$W)},66882:function(t,e,n){"use strict";n.d(e,{R:function(){return z}});var o=n(48088),i=n(57857),r=n(31647),l=n(52076),s=n(70065),a=n(84868),c=n(63791),u=n(71641),p=n(39479),f=n(56210),h=n(37106),d=n.n(h),y={actions:"VXWM3",svgContainer:"etJKo",moreSvgContainer:"kwNUa",actionName:"gbBGB",disabled:"Ykm_2",iconButton:"xqFbC"};function m(t){return m="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},m(t)}function b(t,e){(null==e||e>t.length)&&(e=t.length);for(var n=0,o=Array(e);n<e;n++)o[n]=t[n];return o}function v(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}function g(t,e){for(var n=0;n<e.length;n++){var o=e[n];o.enumerable=o.enumerable||!1,o.configurable=!0,"value"in o&&(o.writable=!0),Object.defineProperty(t,k(o.key),o)}}function w(t,e,n){return e&&g(t.prototype,e),n&&g(t,n),Object.defineProperty(t,"prototype",{writable:!1}),t}function k(t){var e=function(t){if("object"!=m(t)||!t)return t;var e=t[Symbol.toPrimitive];if(void 0!==e){var n=e.call(t,"string");if("object"!=m(n))return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(t)}(t);return"symbol"==m(e)?e:e+""}function O(t,e,n){return e=S(e),function(t,e){if(e&&("object"==m(e)||"function"==typeof e))return e;if(void 0!==e)throw new TypeError("Derived constructors may only return object or undefined");return function(t){if(void 0===t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return t}(t)}(t,E()?Reflect.construct(e,n||[],S(t).constructor):e.apply(t,n))}function E(){try{var t=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){})))}catch(t){}return(E=function(){return!!t})()}function S(t){return S=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(t){return t.__proto__||Object.getPrototypeOf(t)},S(t)}function P(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function");t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,writable:!0,configurable:!0}}),Object.defineProperty(t,"prototype",{writable:!1}),e&&T(t,e)}function T(t,e){return T=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(t,e){return t.__proto__=e,t},T(t,e)}var j=function(t){function e(t){return v(this,e),O(this,e,[t])}return P(e,t),w(e,[{key:"name",get:function(){return"VideoActionItemComponent"}},{key:"template",get:function(){return d()}},{key:"tagName",get:function(){return"a"}},{key:"attributes",get:function(){return this.model.get("href")?{href:this.model.get("href"),target:this.model.get("external")?"_blank":""}:{}}},{key:"className",get:function(){var t="cursor-pointer";return this.options.showLabel?t+=" ".concat(y.iconButton," btn btn-outline-dark ms-2"):t+=" d-inline-block px-1 no-decoration",this.model.get("isDisabled")&&(t+=" ".concat(y.disabled)),t}},{key:"events",value:function(){return{click:"onClick"}}},{key:"behaviors",get:function(){var t=(!this.options.showLabel||this.options.model.get("isDisabled"))&&this.options.model.get("tooltipText");if(t)return[{behaviorClass:f.H,title:t}]}},{key:"appLinks",get:function(){return!this.model.get("appLink")||this.model.get("isDisabled")?{}:{"[this]":this.model.get("appLink")}}},{key:"onClick",value:function(){this.logAction()}},{key:"logAction",value:function(){var t,e,n=this.model.get("appLink");if(p.isObject(n)){var o=(t=n.args,e=1,function(t){if(Array.isArray(t))return t}(t)||function(t,e){var n=null==t?null:"undefined"!=typeof Symbol&&t[Symbol.iterator]||t["@@iterator"];if(null!=n){var o,i,r,l,s=[],a=!0,c=!1;try{if(r=(n=n.call(t)).next,0===e){if(Object(n)!==n)return;a=!1}else for(;!(a=(o=r.call(n)).done)&&(s.push(o.value),s.length!==e);a=!0);}catch(t){c=!0,i=t}finally{try{if(!a&&null!=n.return&&(l=n.return(),Object(l)!==l))return}finally{if(c)throw i}}return s}}(t,e)||function(t,e){if(t){if("string"==typeof t)return b(t,e);var n={}.toString.call(t).slice(8,-1);return"Object"===n&&t.constructor&&(n=t.constructor.name),"Map"===n||"Set"===n?Array.from(t):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?b(t,e):void 0}}(t,e)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}())[0];l.k.logUserAction({id:o},this.model.get("analyticsOptions"))}}},{key:"viewOptions",value:function(){return{styles:y,showLabel:this.options.showLabel,additionalClassName:this.model.get("isDisabled")?"disabled":"cursor-pointer"}}}])}(r.Q.wA),C=function(t){function e(t){return v(this,e),O(this,e,[t])}return P(e,t),w(e,[{key:"name",get:function(){return"VideoActionsComponentCollection"}},{key:"childView",get:function(){return j}},{key:"childViewOptions",get:function(){return{showLabel:this.options.showActionLabels}}}])}(r.Q.$W),_=n(57098),x=n(93569),A=n(89707),D=n(264),V=n(25887),L=n(59168),N=n.n(L);function R(t){return R="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},R(t)}function M(t,e){(null==e||e>t.length)&&(e=t.length);for(var n=0,o=Array(e);n<e;n++)o[n]=t[n];return o}function I(t,e){for(var n=0;n<e.length;n++){var o=e[n];o.enumerable=o.enumerable||!1,o.configurable=!0,"value"in o&&(o.writable=!0),Object.defineProperty(t,B(o.key),o)}}function B(t){var e=function(t){if("object"!=R(t)||!t)return t;var e=t[Symbol.toPrimitive];if(void 0!==e){var n=e.call(t,"string");if("object"!=R(n))return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(t)}(t);return"symbol"==R(e)?e:e+""}function F(){try{var t=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){})))}catch(t){}return(F=function(){return!!t})()}function U(t){return U=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(t){return t.__proto__||Object.getPrototypeOf(t)},U(t)}function K(t,e){return K=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(t,e){return t.__proto__=e,t},K(t,e)}var z=function(t){function e(t){return function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,e),function(t,e,n){return e=U(e),function(t,e){if(e&&("object"==R(e)||"function"==typeof e))return e;if(void 0!==e)throw new TypeError("Derived constructors may only return object or undefined");return function(t){if(void 0===t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return t}(t)}(t,F()?Reflect.construct(e,n||[],U(t).constructor):e.apply(t,n))}(this,e,[t])}return function(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function");t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,writable:!0,configurable:!0}}),Object.defineProperty(t,"prototype",{writable:!1}),e&&K(t,e)}(e,t),n=e,p=[{key:"initialize",value:function(){this.bindListeners()}},{key:"name",get:function(){return"VideoActionsComponent"}},{key:"template",get:function(){return N()}},{key:"lang",get:function(){return"shared.videoActions"}},{key:"className",get:function(){return"".concat(y.actions," ").concat(this.model.id)}},{key:"channelName",get:function(){return"".concat(this.name).concat(this.cid)}},{key:"elements",get:function(){return{dropdownToggle:".ui-dropdown-toggle",moreActions:".more-actions-region"}}},{key:"regions",value:function(){return{actions:{el:".actions-region"},moreActions:{el:"@ui.moreActions",replaceElement:!1}}}},{key:"events",value:function(){return{click:"onClick"}}},{key:"bindListeners",value:function(){this.listenTo(this.name,"hide:actions:dropdown",this.hideDropdown)}},{key:"hideDropdown",value:function(t){this.model.id!==t&&this.getUI("dropdownToggle").dropdown("hide")}},{key:"onClick",value:function(t){o.Radio.channel(this.name).trigger("hide:actions:dropdown",this.model.id),t.stopPropagation()}},{key:"onClickMore",value:function(){this.renderMoreActions(),this.getUI("dropdownToggle").dropdown("toggle")}},{key:"hasProduct",value:function(t){var e;return!!(null===(e=this.options.products)||void 0===e?void 0:e.find((function(e){return e.get("id")===t})))}},{key:"getActions",value:function(){return new r.Q.FE([].concat(function(t){return function(t){if(Array.isArray(t))return M(t)}(t)||function(t){if("undefined"!=typeof Symbol&&null!=t[Symbol.iterator]||null!=t["@@iterator"])return Array.from(t)}(t)||function(t,e){if(t){if("string"==typeof t)return M(t,e);var n={}.toString.call(t).slice(8,-1);return"Object"===n&&t.constructor&&(n=t.constructor.name),"Map"===n||"Set"===n?Array.from(t):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?M(t,e):void 0}}(t)||function(){throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}(x.M2.isInteractive(this.model)&&this.hasProduct(a.x.Analytics)?[{title:i.T.getPhrase(this.lang,"viewResults"),svg:c.Nj.getSvg(c.vn.Analytics),tooltipText:i.T.getPhrase(this.lang,"viewResults"),analyticsOptions:l.k.mergeOptions(this.options.analyticsOptions,{actionType:s.Vw.Click,descriptor:s.XX.ViewResults}),href:A.k.getAnalyticsUrl(this.model,this.options.config),external:!0}]:[]),[{title:i.T.getPhrase(this.lang,"share"),svg:c.Nj.getSvg(c.vn.Share),isDisabled:!x.BK.canShareVideo(this.options.libraries,this.options.application),tooltipText:x.BK.canShareVideo(this.options.libraries,this.options.application)?i.T.getPhrase(this.lang,"share"):x.BK.getSharePermissionsMessage(this.options.libraries,this.options.application),appLink:D.g.hasLite?{application:this.options.application,action:_.eX.Shared.SHARE,args:[this.model.get("id")],params:{entityType:x.M2.getMediaType(this.model)}}:{application:this.options.application,action:_.eX.Shared.SHARE_VIDEO,args:[this.model.get("id")]},analyticsOptions:l.k.mergeOptions(this.options.analyticsOptions,{actionType:s.Vw.Share,eventVersion:s.eq.V3})},{title:i.T.getPhrase(this.lang,"edit"),svg:x.BK.canEditVideo(this.model)?c.Nj.getSvg(c.vn.Edit):c.Nj.getSvg(c.vn.EditClickView),tooltipText:this.getEditTooltip(),appLink:x.M2.getEditAppLink(this.model),analyticsOptions:l.k.mergeOptions(this.options.analyticsOptions,{actionType:s.Vw.Edit,workflowPhase:s.eu.Start})}]))}},{key:"getEditTooltip",value:function(){return x.BK.canEditVideo(this.model)?i.T.getPhrase(this.lang,"edit"):x.M2.isExchangeVideo(this.model)?i.T.getPhrase(this.lang,"linkedToExchange"):i.T.getPhrase(this.lang,"linkedToCv")}},{key:"getFolderSourceId",value:function(){return this.options.collectionSource===V.x_.Folder?this.options.collectionIdentifier.id:this.model.get("categories").first().get("id")}},{key:"getMoreActions",value:function(){var t=[];if(this.options.collectionIdentifier&&t.push({title:i.T.getPhrase(this.lang,"move"),appLink:{application:this.options.application,action:_.eX.Shared.MOVE_VIDEOS,args:[this.model.get("id").toString(),this.getFolderSourceId()]},analyticsOptions:l.k.mergeOptions(this.options.analyticsOptions,{actionType:s.Vw.Move,descriptor:s.yh.Single,workflowPhase:s.eu.Start})}),t.push({title:i.T.getPhrase(this.lang,"manageAccess"),appLink:{application:this.options.application,action:_.eX.Shared.MANAGE_VIDEO_ACCESS,args:[this.model.get("id").toString(),this.model.get("typeId")]},analyticsOptions:l.k.mergeOptions(this.options.analyticsOptions,{actionType:s.Vw.SetAccess,workflowPhase:s.eu.Start})}),this.options.application===_.OV.CONTENT_UPDATES&&this.options.customerHasCustomLibrary&&t.push({title:i.T.getPhrase(this.lang,"addToLibrary"),appLink:{application:this.options.application,action:_.eX.ContentUpdates.ADD_TO_LIBRARY,args:[this.model.get("id").toString()]}}),t.push({title:i.T.getPhrase(this.lang,"openInStaffView"),href:x.M2.getProductUrl(this.model,this.options.config),external:!0,icon:c.Nj.getSvg(c.vn.NewWindow),analyticsOptions:l.k.mergeOptions(this.options.analyticsOptions,{actionType:s.Vw.Click,descriptor:s._S.OpenInStaffView})}),!x.M2.isInteractive(this.model)&&this.hasProduct(a.x.Analytics)&&t.push({title:i.T.getPhrase(this.lang,"viewUsage"),icon:c.Nj.getSvg(c.vn.NewWindow),analyticsOptions:l.k.mergeOptions(this.options.analyticsOptions,{actionType:s.Vw.Click,descriptor:s.XX.ViewResults}),href:A.k.getAnalyticsUrl(this.model,this.options.config),external:!0}),x.M2.isVideo(this.model)&&this.options.application!==_.OV.CONTENT_UPDATES){var e=x.BK.canDownloadVideo(this.model);t.push({title:i.T.getPhrase(this.lang,"download"),disabled:!e,classes:e?"":"".concat(y.disabled),tooltip:e?null:{title:i.T.getPhrase(this.lang,"cannotDownload"),placement:"left"},analyticsOptions:l.k.mergeOptions(this.options.analyticsOptions,{actionType:s.Vw.Download}),appLink:e?{application:this.options.application,action:_.eX.Shared.DOWNLOAD_VIDEO,args:[this.model.id.toString()]}:null})}return x.M2.isVideo(this.model)&&this.options.customerHasExchange&&x.BK.canAddToExchange(this.model)&&t.push({title:i.T.getPhrase(this.lang,"addToExchange"),appLink:{application:this.options.application,action:_.eX.LibraryEditor.ADD_TO_EXCHANGE,args:[this.model.get("id").toString()]}}),x.M2.isVideo(this.model)&&this.options.customerHasLocalCache&&t.push({title:i.T.getPhrase(this.lang,"localCache"),appLink:{application:this.options.application,action:_.eX.Shared.DOWNLOAD_TO_LOCAL_CACHE,args:[this.model.id.toString()]},analyticsOptions:l.k.mergeOptions(this.options.analyticsOptions,{actionType:s.Vw.AddToLocalCache})}),this.options.collectionIdentifier&&t.push({title:i.T.getPhrase(this.lang,"remove"),appLink:{application:this.options.application,action:_.eX.Shared.DELETE_VIDEOS,args:[this.getFolderSourceId(),this.model.get("id").toString()],params:{routeToFolderOnDelete:this.options.routeToFolderOnDelete}},classes:"text-danger",analyticsOptions:l.k.mergeOptions(this.options.analyticsOptions,{actionType:s.Vw.Delete,descriptor:s.yh.Single,workflowPhase:s.eu.Start})}),new r.Q.FE(t)}},{key:"renderActions",value:function(){this.showChildView("actions",new C({collection:this.getActions(),showActionLabels:this.options.showActionLabels}))}},{key:"renderMoreActions",value:function(){this.moreActionsRendered||(this.moreActionsRendered=!0,this.showChildView("moreActions",new u.w({displayOptions:{alignment:"end"},channelName:this.channelName,collection:this.getMoreActions(),childOptions:{isDisabled:function(){return this.model.get("disabled")},getTooltip:function(){return this.options.model.get("tooltip")}},analyticsHelper:l.k})))}},{key:"viewOptions",value:function(){return{styles:y,moreSvg:c.Nj.getSvg(c.vn.More),showLabel:this.options.showActionLabels}}},{key:"onRender",value:function(){this.moreActionsRendered=!1,this.renderActions(),this.renderMoreActions()}}],p&&I(n.prototype,p),Object.defineProperty(n,"prototype",{writable:!1}),n;var n,p}(r.Q.wA)},23130:function(t,e,n){"use strict";n.d(e,{Z:function(){return v},t:function(){return o}});var o,i=n(57857),r=n(31647),l=n(93569),s=n(58040),a=n.n(s),c={columnNames:"hkjBy",descriptionWrapper:"vGCSU",description:"lM8Hu",ellipsis:"zcKZV",showMoreEllipsis:"mUQy_",singleEllipsis:"sLOGz",showEllipsis:"Dn0yN",hideEllipsis:"Y0fDv",open:"JcPWW",truncateSmall:"FgeiQ",truncateLarge:"x5Rgi"};function u(t){return u="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},u(t)}function p(t,e){for(var n=0;n<e.length;n++){var o=e[n];o.enumerable=o.enumerable||!1,o.configurable=!0,"value"in o&&(o.writable=!0),Object.defineProperty(t,m(o.key),o)}}function f(){try{var t=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){})))}catch(t){}return(f=function(){return!!t})()}function h(t){return h=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(t){return t.__proto__||Object.getPrototypeOf(t)},h(t)}function d(t,e){return d=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(t,e){return t.__proto__=e,t},d(t,e)}function y(t,e,n){return(e=m(e))in t?Object.defineProperty(t,e,{value:n,enumerable:!0,configurable:!0,writable:!0}):t[e]=n,t}function m(t){var e=function(t){if("object"!=u(t)||!t)return t;var e=t[Symbol.toPrimitive];if(void 0!==e){var n=e.call(t,"string");if("object"!=u(n))return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(t)}(t);return"symbol"==u(e)?e:e+""}!function(t){t.Small="sm",t.Large="lg"}(o||(o={}));var b=y(y({},o.Small,3),o.Large,5),v=function(t){function e(t){var n;return function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,e),(n=function(t,e,n){return e=h(e),function(t,e){if(e&&("object"==u(e)||"function"==typeof e))return e;if(void 0!==e)throw new TypeError("Derived constructors may only return object or undefined");return function(t){if(void 0===t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return t}(t)}(t,f()?Reflect.construct(e,n||[],h(t).constructor):e.apply(t,n))}(this,e,[t])).showingMore=!1,n}return function(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function");t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,writable:!0,configurable:!0}}),Object.defineProperty(t,"prototype",{writable:!1}),e&&d(t,e)}(e,t),n=e,r=[{key:"name",get:function(){return"VideoDescriptionComponent"}},{key:"template",get:function(){return a()}},{key:"lang",get:function(){return"shared.videoDescription"}},{key:"defaults",get:function(){return{size:"sm"}}},{key:"elements",get:function(){return{description:".description-element",ellipsis:this.options.allowExpand?".".concat(c.showMoreEllipsis):".".concat(c.singleEllipsis)}}},{key:"events",value:function(){return y({},"click .".concat(c.showMoreEllipsis),"onClickShowMore")}},{key:"onClickShowMore",value:function(t){t.preventDefault(),this.showingMore?this.showLessDescription():this.showMoreDescription()}},{key:"getDescription",value:function(){return this.options.linkify?l.m$.linkifyText(this.model.get("description")):this.options.highlighter?l.m$.wordsHighlighter(l.m$.escapeExpression(this.model.get("description")),this.model.get("_matchedWords")):void 0}},{key:"getDescriptionElements",value:function(){return{descriptionTextEl:this.getUI("description"),ellipsisEl:this.getUI("ellipsis")}}},{key:"showMoreDescription",value:function(){var t=this.getDescriptionElements(),e=t.descriptionTextEl,n=t.ellipsisEl;e.removeClass(c.truncateLarge).addClass(c.open),n.text(i.T.getPhrase(this.lang,"showLess")),this.showingMore=!0}},{key:"showLessDescription",value:function(){var t,e=this.getDescriptionElements(),n=e.descriptionTextEl,r=e.ellipsisEl;this.options.size===o.Small&&(t="truncateSmall"),this.options.size===o.Large&&(t="truncateLarge"),n.addClass(c[t]),r.text(this.options.allowExpand?"... ".concat(i.T.getPhrase(this.lang,"showMore")):"...").removeClass(c.hideEllipsis).addClass(c.showEllipsis),this.showingMore=!1}},{key:"truncateDescription",value:function(){if(this.options.truncate){var t=this.getDescriptionElements().descriptionTextEl,e=b[this.options.size];t.height()<=21*e||this.showLessDescription()}}},{key:"viewOptions",value:function(){return{styles:c,truncate:this.options.truncate,expandable:this.options.allowExpand,description:this.getDescription()}}},{key:"onAttach",value:function(){this.truncateDescription()}}],r&&p(n.prototype,r),Object.defineProperty(n,"prototype",{writable:!1}),n;var n,r}(r.Q.wA)},7427:function(t,e,n){"use strict";n.d(e,{V:function(){return y}});var o=n(31647),i=n(57098),r=n(93569),l=n(25205),s=n.n(l),a={sourceLabel:"TczXY"};function c(t){return c="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},c(t)}function u(t,e){for(var n=0;n<e.length;n++){var o=e[n];o.enumerable=o.enumerable||!1,o.configurable=!0,"value"in o&&(o.writable=!0),Object.defineProperty(t,p(o.key),o)}}function p(t){var e=function(t){if("object"!=c(t)||!t)return t;var e=t[Symbol.toPrimitive];if(void 0!==e){var n=e.call(t,"string");if("object"!=c(n))return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(t)}(t);return"symbol"==c(e)?e:e+""}function f(){try{var t=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){})))}catch(t){}return(f=function(){return!!t})()}function h(t){return h=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(t){return t.__proto__||Object.getPrototypeOf(t)},h(t)}function d(t,e){return d=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(t,e){return t.__proto__=e,t},d(t,e)}var y=function(t){function e(t){return function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,e),function(t,e,n){return e=h(e),function(t,e){if(e&&("object"==c(e)||"function"==typeof e))return e;if(void 0!==e)throw new TypeError("Derived constructors may only return object or undefined");return function(t){if(void 0===t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return t}(t)}(t,f()?Reflect.construct(e,n||[],h(t).constructor):e.apply(t,n))}(this,e,[t])}return function(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function");t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,writable:!0,configurable:!0}}),Object.defineProperty(t,"prototype",{writable:!1}),e&&d(t,e)}(e,t),n=e,o=[{key:"name",get:function(){return"VideoSourcesMetadataComponent"}},{key:"template",get:function(){return s()}},{key:"lang",get:function(){return"shared.videoSourcesMetadata"}},{key:"defaults",get:function(){return{showFolder:!1,highlight:!1}}},{key:"appLinks",get:function(){var t;return this.options.showFolder&&(null===(t=this.folders)||void 0===t?void 0:t.length)?this.folders.reduce((function(t,e){return t[".applink-folder-".concat(e.get("id"))]={application:i.OV.LIBRARY_EDITOR,action:i.eX.LibraryEditor.FOLDER,args:[e.get("id")]},t}),{}):{}}},{key:"events",value:function(){var t,e,n,o=Object.keys(this.appLinks),i=(t={},n="onClick",(e=p(e="click .".concat(a.sourceLabel)))in t?Object.defineProperty(t,e,{value:n,enumerable:!0,configurable:!0,writable:!0}):t[e]=n,t);return o.forEach((function(t){i["click ".concat(t)]="onClick"})),i}},{key:"onClick",value:function(t){t.stopPropagation()}},{key:"getFolderLinks",value:function(){var t,e=this;if(null===(t=this.folders)||void 0===t?void 0:t.length){var n={};return this.folders.forEach((function(t){var o=e.options.highlight?r.m$.wordsHighlighter(r.m$.escapeExpression(t.get("name")),e.model.get("_matchedWords")):r.m$.escapeExpression(t.get("name"));n[t.get("id")]=o})),Object.keys(n).map((function(t){return'<a class="info-link applink-folder-'.concat(t,'">').concat(n[t],"</a>")})).join(", ")}}},{key:"getCustomLibraryFolders",value:function(){var t;if(!(null===(t=this.model)||void 0===t?void 0:t.categories)||!this.options.libraries)return[];var e=this.options.libraries.reduce((function(t,e){return t[e.id]=!0,t}),{});return this.model.categories.filter((function(t){var n,o=null===(n=t.libraries)||void 0===n?void 0:n.first().get("id");return e[o]}))}},{key:"onBeforeRender",value:function(){var t;return this.folders||(this.folders=this.getCustomLibraryFolders()),this.options.showFolder&&!!(null===(t=this.folders)||void 0===t?void 0:t.length)}},{key:"viewOptions",value:function(){return{styles:a,folderCount:this.folders.length,folders:this.options.showFolder&&this.getFolderLinks(),hideLabel:this.options.hideLabel}}}],o&&u(n.prototype,o),Object.defineProperty(n,"prototype",{writable:!1}),n;var n,o}(o.Q.wA)},61356:function(t,e,n){"use strict";n.d(e,{c:function(){return S}});var o=n(48088),i=n(39479),r=n(31647),l=n(52076),s=n(70065),a=n(88483),c=n(2772),u=n(10101),p=n(89167),f=n(57098),h=n(93569),d=n(264),y=n(57e3),m=n(37339),b=n.n(m);function v(t){return v="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},v(t)}function g(t,e){for(var n=0;n<e.length;n++){var o=e[n];o.enumerable=o.enumerable||!1,o.configurable=!0,"value"in o&&(o.writable=!0),Object.defineProperty(t,w(o.key),o)}}function w(t){var e=function(t){if("object"!=v(t)||!t)return t;var e=t[Symbol.toPrimitive];if(void 0!==e){var n=e.call(t,"string");if("object"!=v(n))return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(t)}(t);return"symbol"==v(e)?e:e+""}function k(){try{var t=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){})))}catch(t){}return(k=function(){return!!t})()}function O(t){return O=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(t){return t.__proto__||Object.getPrototypeOf(t)},O(t)}function E(t,e){return E=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(t,e){return t.__proto__=e,t},E(t,e)}var S=function(t){function e(t){var n;return function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,e),(n=function(t,e,n){return e=O(e),function(t,e){if(e&&("object"==v(e)||"function"==typeof e))return e;if(void 0!==e)throw new TypeError("Derived constructors may only return object or undefined");return function(t){if(void 0===t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return t}(t)}(t,k()?Reflect.construct(e,n||[],O(t).constructor):e.apply(t,n))}(this,e,[t]))._viewKeyRequested=!1,n}return function(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function");t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,writable:!0,configurable:!0}}),Object.defineProperty(t,"prototype",{writable:!1}),e&&E(t,e)}(e,t),n=e,(r=[{key:"initialize",value:function(){this.bindListeners()}},{key:"name",get:function(){return"VideoPreviewComponent"}},{key:"template",get:function(){return b()}},{key:"instanceChannelName",get:function(){return h.N0.generateUniqueChannelName(this)}},{key:"defaults",get:function(){return{captureAnalytics:!0}}},{key:"behaviors",get:function(){var t=this;return[{behaviorClass:u.Im,selector:".lazy-img",callback:function(){o.Radio.channel(t.instanceChannelName).trigger("show:play:icon")},minBrowserSupportVersion:f.v9}]}},{key:"regions",value:function(){return{player:{el:".video-player-region",replaceElement:!1},thumbnail:{el:".thumbnail-region",replaceElement:!0}}}},{key:"events",value:function(){return{click:"onClick"}}},{key:"bindListeners",value:function(){this.options.channelName&&this.listenTo(this.options.channelName,"update:chapter:time",this.onUpdateWebplayer)}},{key:"onUpdateWebplayer",value:function(t){return d.g.hasLite?this.playerViewKey?this.player?void this.seekToChapter(t):(this.listenToOnce(this.options.channelName,"player:loaded",i.bind(this.seekToChapter,this,t)),void this.renderVideoPreview()):(this.listenToOnce(this.options.channelName,"player:loaded",i.bind(this.seekToChapter,this,t)),void this.requestViewKey()):this.webPlayer?void this.seekToChapter(t):(this.listenToOnce(this.options.channelName,"webplayer:loaded",i.bind(this.seekToChapter,this,t)),void this.renderVideoPreview())}},{key:"seekToChapter",value:function(t){this.player?this.player.currentTime(t):this.webPlayer.seekTo(t)}},{key:"requestViewKey",value:function(){var t=this;this.playerViewKey||this._viewKeyRequested||(this._viewKeyRequested=!0,this.options.createViewKey(this.model.get("id"),(function(e){t.playerViewKey=e,t.renderVideoPreview()})))}},{key:"onClick",value:function(){this.model.get("id")&&(d.g.hasLite?this.requestViewKey():this.webPlayer||this.renderVideoPreview())}},{key:"renderThumbnail",value:function(){this.showChildView("thumbnail",new c.Z({model:this.model,thumbnailOptions:{size:a.h2.Medium},playIcon:!0,lazyload:!0,channelName:this.instanceChannelName,thumbnail:h.M2.getThumbnail(this.model),duration:h.M2.getDuration(this.model),durationNewStyle:!0}))}},{key:"renderVideoPreview",value:function(){if(this.playerViewKey)return this.player=new y.l({model:this.playerViewKey,playerApiUrl:this.options.playerApiUrl,channelName:this.options.channelName}),void this.showChildView("player",this.player);this.webPlayer=new p.Q({model:this.model,webPlayerUrl:this.options.webPlayerUrl,parentChannelName:this.options.channelName,autoplay:!0,analyticsOptions:l.k.mergeOptions(this.options.analyticsOptions,{entity:s.py.Video}),captureAnalytics:this.options.captureAnalytics,currentUser:this.options.currentUser}),this.showChildView("player",this.webPlayer)}},{key:"onRender",value:function(){this.playerViewKey?this.renderVideoPreview():this.renderThumbnail()}}])&&g(n.prototype,r),Object.defineProperty(n,"prototype",{writable:!1}),n;var n,r}(r.Q.wA)},15564:function(t,e,n){var o=n(32227);t.exports=(o.default||o).template({1:function(t,e,n,o,i){return'<span class="btn-close cursor-pointer" role="button" aria-label="Close"></span>\n'},compiler:[8,">= 4.3.0"],main:function(t,e,n,o,i){t.propertyIsEnumerable;var r,l,s=null!=e?e:t.nullContext||{},a=t.escapeExpression;return'<span title="'+a("function"==typeof(l=null!=(l=n.name||(null!=e?e.name:e))?l:t.hooks.helperMissing)?l.call(s,{name:"name",hash:{},data:i}):l)+'">'+a(t.lambda(null!=(r=null!=e?e.options:e)?r.trimmedName:r,e))+"</span>\n"+(null!=(r=n.if.call(s,null!=(r=null!=e?e.options:e)?r.removable:r,{name:"if",hash:{},fn:t.program(1,i,0),inverse:t.noop,data:i}))?r:"")},useData:!0})},37106:function(t,e,n){var o=n(32227);t.exports=(o.default||o).template({1:function(t,e,n,o,i){var r;return t.propertyIsEnumerable,t.escapeExpression("function"==typeof(r=null!=(r=n.title||(null!=e?e.title:e))?r:t.hooks.helperMissing)?r.call(null!=e?e:t.nullContext||{},{name:"title",hash:{},data:i}):r)},compiler:[8,">= 4.3.0"],main:function(t,e,n,o,i){t.propertyIsEnumerable;var r,l,s=t.lambda,a=t.escapeExpression,c=null!=e?e:t.nullContext||{};return' <span class="d-inline-block align-middle '+a(s(null!=(r=null!=(r=null!=e?e.options:e)?r.styles:r)?r.svgContainer:r,e))+" "+a(s(null!=(r=null!=e?e.options:e)?r.additionalClassName:r,e))+'">'+(null!=(r="function"==typeof(l=null!=(l=n.svg||(null!=e?e.svg:e))?l:t.hooks.helperMissing)?l.call(c,{name:"svg",hash:{},data:i}):l)?r:"")+"</span>\n"+(null!=(r=n.if.call(c,null!=(r=null!=e?e.options:e)?r.showLabel:r,{name:"if",hash:{},fn:t.program(1,i,0),inverse:t.noop,data:i}))?r:"")},useData:!0})},59168:function(t,e,n){var o=n(32227);t.exports=(o.default||o).template({1:function(t,e,n,o,i){return"btn btn-outline-dark px-0 ms-2"},3:function(t,e,n,o,i){var r;return t.propertyIsEnumerable,t.escapeExpression(t.lambda(null!=(r=null!=(r=null!=e?e.options:e)?r.styles:r)?r.moreSvgContainer:r,e))},5:function(t,e,n,o,i){var r;return t.propertyIsEnumerable,t.escapeExpression(t.lambda(null!=(r=null!=(r=null!=e?e.options:e)?r.styles:r)?r.svgContainer:r,e))+" align-middle"},compiler:[8,">= 4.3.0"],main:function(t,e,n,o,i){t.propertyIsEnumerable;var r,l=null!=e?e:t.nullContext||{};return'<div class="actions-region d-inline-block"></div><span class="position-relative d-inline-block dropdown">\n <span\n data-bs-toggle="dropdown"\n aria-haspopup="true"\n aria-expanded="false"\n class="'+(null!=(r=n.if.call(l,null!=(r=null!=e?e.options:e)?r.showLabel:r,{name:"if",hash:{},fn:t.program(1,i,0),inverse:t.noop,data:i}))?r:"")+' ui-dropdown-toggle"\n >\n <span class="ui-more d-inline-block '+(null!=(r=n.if.call(l,null!=(r=null!=e?e.options:e)?r.showLabel:r,{name:"if",hash:{},fn:t.program(3,i,0),inverse:t.program(5,i,0),data:i}))?r:"")+' cursor-pointer">'+(null!=(r=t.lambda(null!=(r=null!=e?e.options:e)?r.moreSvg:r,e))?r:"")+'</span>\n </span>\n <div class="more-actions-region"></div>\n</span>\n'},useData:!0})},58040:function(t,e,n){var o=n(32227);t.exports=(o.default||o).template({1:function(t,e,n,o,i){t.propertyIsEnumerable;var r,l=t.lambda,s=t.escapeExpression;return' <div class="'+s(l(null!=(r=null!=(r=null!=e?e.options:e)?r.styles:r)?r.descriptionWrapper:r,e))+'">\n <p class="description-element '+s(l(null!=(r=null!=(r=null!=e?e.options:e)?r.styles:r)?r.description:r,e))+'">'+(null!=(r=n.if.call(null!=e?e:t.nullContext||{},null!=(r=null!=e?e.options:e)?r.expandable:r,{name:"if",hash:{},fn:t.program(2,i,0),inverse:t.program(4,i,0),data:i}))?r:"")+"</p>\n </div>\n"},2:function(t,e,n,o,i){t.propertyIsEnumerable;var r,l=t.lambda,s=t.escapeExpression;return(null!=(r=l(null!=(r=null!=e?e.options:e)?r.description:r,e))?r:"")+'<span class="'+s(l(null!=(r=null!=(r=null!=e?e.options:e)?r.styles:r)?r.showMoreEllipsis:r,e))+" "+s(l(null!=(r=null!=(r=null!=e?e.options:e)?r.styles:r)?r.hideEllipsis:r,e))+'">... '+s((n.lang||e&&e.lang||t.hooks.helperMissing).call(null!=e?e:t.nullContext||{},"showMore",{name:"lang",hash:{},data:i}))+"</span>"},4:function(t,e,n,o,i){t.propertyIsEnumerable;var r,l=t.lambda,s=t.escapeExpression;return(null!=(r=l(null!=(r=null!=e?e.options:e)?r.description:r,e))?r:"")+'<span class="'+s(l(null!=(r=null!=(r=null!=e?e.options:e)?r.styles:r)?r.singleEllipsis:r,e))+" "+s(l(null!=(r=null!=(r=null!=e?e.options:e)?r.styles:r)?r.hideEllipsis:r,e))+'">...</span>'},6:function(t,e,n,o,i){t.propertyIsEnumerable;var r,l=t.lambda;return' <p class="'+t.escapeExpression(l(null!=(r=null!=(r=null!=e?e.options:e)?r.styles:r)?r.description:r,e))+'">'+(null!=(r=l(null!=(r=null!=e?e.options:e)?r.description:r,e))?r:"")+"</p>\n"},compiler:[8,">= 4.3.0"],main:function(t,e,n,o,i){var r;return t.propertyIsEnumerable,null!=(r=n.if.call(null!=e?e:t.nullContext||{},null!=(r=null!=e?e.options:e)?r.truncate:r,{name:"if",hash:{},fn:t.program(1,i,0),inverse:t.program(6,i,0),data:i}))?r:""},useData:!0})},25205:function(t,e,n){var o=n(32227);t.exports=(o.default||o).template({1:function(t,e,n,o,i){t.propertyIsEnumerable;var r,l=t.escapeExpression;return'<span class="'+l(t.lambda(null!=(r=null!=(r=null!=e?e.options:e)?r.styles:r)?r.sourceLabel:r,e))+'">'+l((n.lang||e&&e.lang||t.hooks.helperMissing).call(null!=e?e:t.nullContext||{},"folder",{name:"lang",hash:{smartCount:null!=(r=null!=e?e.options:e)?r.folderCount:r},data:i}))+"</span>\n"},compiler:[8,">= 4.3.0"],main:function(t,e,n,o,i){var r;return t.propertyIsEnumerable,(null!=(r=n.unless.call(null!=e?e:t.nullContext||{},null!=(r=null!=e?e.options:e)?r.hideLabel:r,{name:"unless",hash:{},fn:t.program(1,i,0),inverse:t.noop,data:i}))?r:"")+(null!=(r=t.lambda(null!=(r=null!=e?e.options:e)?r.folders:r,e))?r:"")},useData:!0})},37339:function(t,e,n){var o=n(32227);t.exports=(o.default||o).template({1:function(t,e,n,o,i){return"cursor-pointer "},compiler:[8,">= 4.3.0"],main:function(t,e,n,o,i){var r;return t.propertyIsEnumerable,'<div class="video-player-region '+(null!=(r=n.if.call(null!=e?e:t.nullContext||{},null!=e?e.id:e,{name:"if",hash:{},fn:t.program(1,i,0),inverse:t.noop,data:i}))?r:"")+'">\n <div class="thumbnail-region"></div>\n</div>'},useData:!0})}}]);
1
+ (self.webpackChunk_clickview_library_editor=self.webpackChunk_clickview_library_editor||[]).push([[5707],{44391:function(t,e,n){"use strict";n.d(e,{K:function(){return E}});var o=n(11306),i=n(31647),r=n(43823),l=n(57098),s=n(25887),a=n(15564),c=n.n(a);function u(t){return u="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},u(t)}function p(t,e){for(var n=0;n<e.length;n++){var o=e[n];o.enumerable=o.enumerable||!1,o.configurable=!0,"value"in o&&(o.writable=!0),Object.defineProperty(t,f(o.key),o)}}function f(t){var e=function(t){if("object"!=u(t)||!t)return t;var e=t[Symbol.toPrimitive];if(void 0!==e){var n=e.call(t,"string");if("object"!=u(n))return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(t)}(t);return"symbol"==u(e)?e:e+""}function h(){try{var t=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){})))}catch(t){}return(h=function(){return!!t})()}function d(t){return d=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(t){return t.__proto__||Object.getPrototypeOf(t)},d(t)}function y(t,e){return y=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(t,e){return t.__proto__=e,t},y(t,e)}var m=function(t){function e(t){return function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,e),function(t,e,n){return e=d(e),function(t,e){if(e&&("object"==u(e)||"function"==typeof e))return e;if(void 0!==e)throw new TypeError("Derived constructors may only return object or undefined");return function(t){if(void 0===t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return t}(t)}(t,h()?Reflect.construct(e,n||[],d(t).constructor):e.apply(t,n))}(this,e,[t])}return function(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function");t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,writable:!0,configurable:!0}}),Object.defineProperty(t,"prototype",{writable:!1}),e&&y(t,e)}(e,t),n=e,o=[{key:"name",get:function(){return"TagItemComponent"}},{key:"tagName",get:function(){return this.options.behavior===s.Dm.Link?"a":"span"}},{key:"className",get:function(){var t="".concat(this.options.orientation===s.zM.Vertical?"":" d-inline-flex"),e="".concat(this.isSaving()?" saving":""),n="".concat(this.options.behavior===s.Dm.Disabled?" ".concat("dE3WC"):""),o="".concat(this.options.behavior===s.Dm.Filter?" cursor-pointer":"");return"rounded-pill tag py-1 px-2 flex-shrink-0 ".concat(o).concat(t).concat(e).concat(n)}},{key:"template",get:function(){return c()}},{key:"elements",get:function(){return{close:".btn-close"}}},{key:"appLinks",get:function(){return this.options.behavior!==s.Dm.Link?{}:{"[this]":{application:l.OV.SEARCH,action:l.eX.Search.HOME,params:{tag:this.model.get("name")}}}}},{key:"defaults",get:function(){return{behavior:s.Dm.Link,orientation:s.zM.Flex}}},{key:"events",value:function(){return this.options.removeEvent?{"click @ui.close":"onRemoveTag"}:{click:"onClickTag"}}},{key:"initialize",value:function(){this.options.behavior===s.Dm.Edit&&this.listenTo(this.model,"change",this.render)}},{key:"isSaving",value:function(){if(this.options.behavior!==s.Dm.Filter){var t=this.model.pick("id","name","remove"),e=t.id,n=t.name;return!!t.remove||!e||!n}}},{key:"onRemoveTag",value:function(t){if(t.stopPropagation(),!this.isSaving())return this.model.set("remove",!0),r.Radio.channel(this.options.channelName).trigger(this.options.removeEvent,this.model),!1}},{key:"onClickTag",value:function(){this.options.behavior!==s.Dm.Filter||this.options.removeEvent||r.Radio.channel(this.options.channelName).trigger(this.options.clickEvent,this.model)}},{key:"getTrimmedName",value:function(){var t=this.model.get("name");return t.length>36?"".concat(t.substring(0,36),"..."):t}},{key:"viewOptions",value:function(){return{removable:this.options.removeEvent,trimmedName:this.getTrimmedName()}}},{key:"onRender",value:function(){this.resetClassName()}}],o&&p(n.prototype,o),Object.defineProperty(n,"prototype",{writable:!1}),n;var n,o}(i.Q.wA);function b(t){return b="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},b(t)}function v(t,e){for(var n=0;n<e.length;n++){var o=e[n];o.enumerable=o.enumerable||!1,o.configurable=!0,"value"in o&&(o.writable=!0),Object.defineProperty(t,g(o.key),o)}}function g(t){var e=function(t){if("object"!=b(t)||!t)return t;var e=t[Symbol.toPrimitive];if(void 0!==e){var n=e.call(t,"string");if("object"!=b(n))return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(t)}(t);return"symbol"==b(e)?e:e+""}function w(){try{var t=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){})))}catch(t){}return(w=function(){return!!t})()}function k(t){return k=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(t){return t.__proto__||Object.getPrototypeOf(t)},k(t)}function O(t,e){return O=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(t,e){return t.__proto__=e,t},O(t,e)}var E=function(t){function e(t){return function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,e),function(t,e,n){return e=k(e),function(t,e){if(e&&("object"==b(e)||"function"==typeof e))return e;if(void 0!==e)throw new TypeError("Derived constructors may only return object or undefined");return function(t){if(void 0===t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return t}(t)}(t,w()?Reflect.construct(e,n||[],k(t).constructor):e.apply(t,n))}(this,e,[t])}return function(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function");t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,writable:!0,configurable:!0}}),Object.defineProperty(t,"prototype",{writable:!1}),e&&O(t,e)}(e,t),n=e,(r=[{key:"initialize",value:function(){this.options.behavior!==s.Dm.Edit||this.options.removeEvent||i.Q.Ry.throw(new o.H("removeEvent is required to edit tags."))}},{key:"name",get:function(){return"TagComponentCollection"}},{key:"defaults",get:function(){return{orientation:s.zM.Flex}}},{key:"className",get:function(){var t="".concat(this.options.orientation===s.zM.Vertical?"d-flex align-items-start flex-column":"d-flex flex-wrap gap-1");return"tags ".concat(t)}},{key:"childViewOptions",get:function(){return{channelName:this.options.channelName,behavior:this.options.behavior,orientation:this.options.orientation,removeEvent:this.options.removeEvent,clickEvent:this.options.clickEvent}}},{key:"childView",get:function(){return m}}])&&v(n.prototype,r),Object.defineProperty(n,"prototype",{writable:!1}),n;var n,r}(i.Q.$W)},25887:function(t,e,n){"use strict";var o,i,r;n.d(e,{Dm:function(){return o},zM:function(){return i},x_:function(){return r}}),function(t){t[t.Link=1]="Link",t[t.Edit=2]="Edit",t[t.Disabled=3]="Disabled",t[t.Filter=4]="Filter"}(o||(o={})),function(t){t[t.Flex=1]="Flex",t[t.Vertical=2]="Vertical"}(i||(i={})),function(t){t[t.Folder=0]="Folder",t[t.Series=1]="Series"}(r||(r={}))},71641:function(t,e,n){"use strict";n.d(e,{w:function(){return f}});var o=n(21161),i=n(31647),r=n(55142);function l(t){return l="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},l(t)}function s(t,e){for(var n=0;n<e.length;n++){var o=e[n];o.enumerable=o.enumerable||!1,o.configurable=!0,"value"in o&&(o.writable=!0),Object.defineProperty(t,a(o.key),o)}}function a(t){var e=function(t){if("object"!=l(t)||!t)return t;var e=t[Symbol.toPrimitive];if(void 0!==e){var n=e.call(t,"string");if("object"!=l(n))return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(t)}(t);return"symbol"==l(e)?e:e+""}function c(){try{var t=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){})))}catch(t){}return(c=function(){return!!t})()}function u(t){return u=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(t){return t.__proto__||Object.getPrototypeOf(t)},u(t)}function p(t,e){return p=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(t,e){return t.__proto__=e,t},p(t,e)}var f=function(t){function e(t){return function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,e),function(t,e,n){return e=u(e),function(t,e){if(e&&("object"==l(e)||"function"==typeof e))return e;if(void 0!==e)throw new TypeError("Derived constructors may only return object or undefined");return function(t){if(void 0===t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return t}(t)}(t,c()?Reflect.construct(e,n||[],u(t).constructor):e.apply(t,n))}(this,e,[t])}return function(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function");t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,writable:!0,configurable:!0}}),Object.defineProperty(t,"prototype",{writable:!1}),e&&p(t,e)}(e,t),n=e,i=[{key:"name",get:function(){return"DropdownCollectionComponent"}},{key:"className",get:function(){return"dropdown-menu items-viewpart ".concat(this.getExtraClasses(this.options.displayOptions))}},{key:"attributes",get:function(){return{"aria-labelledby":"dropdownSelector"}}},{key:"initialize",value:function(){this.listenTo(this.options.channelName,"center:dropdown",this.centerSelectedItem)}},{key:"childView",get:function(){return r.N}},{key:"childViewOptions",get:function(){var t={channelName:this.options.channelName,analyticsHelper:this.options.analyticsHelper};return o.extend(t,this.options.childOptions)}},{key:"getExtraClasses",value:function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},e=t.alignment,n=void 0===e?"left":e,o=t.extraClasses,i="dropdown-menu-".concat(n);return o&&(i="".concat(i," ").concat(o)),i}},{key:"centerSelectedItem",value:function(){var t=this.$el.find(".active");if(t.length){var e=this.$el.scrollTop()+t.position().top,n=.5*this.$el.height()+.5*t.height();this.$el.scrollTop(e-n)}}}],i&&s(n.prototype,i),Object.defineProperty(n,"prototype",{writable:!1}),n;var n,i}(i.Q.$W)},66882:function(t,e,n){"use strict";n.d(e,{R:function(){return z}});var o=n(43823),i=n(57857),r=n(31647),l=n(52076),s=n(70065),a=n(84868),c=n(85475),u=n(71641),p=n(21161),f=n(56210),h=n(37106),d=n.n(h),y={actions:"VXWM3",svgContainer:"etJKo",moreSvgContainer:"kwNUa",actionName:"gbBGB",disabled:"Ykm_2",iconButton:"xqFbC"};function m(t){return m="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},m(t)}function b(t,e){(null==e||e>t.length)&&(e=t.length);for(var n=0,o=Array(e);n<e;n++)o[n]=t[n];return o}function v(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}function g(t,e){for(var n=0;n<e.length;n++){var o=e[n];o.enumerable=o.enumerable||!1,o.configurable=!0,"value"in o&&(o.writable=!0),Object.defineProperty(t,k(o.key),o)}}function w(t,e,n){return e&&g(t.prototype,e),n&&g(t,n),Object.defineProperty(t,"prototype",{writable:!1}),t}function k(t){var e=function(t){if("object"!=m(t)||!t)return t;var e=t[Symbol.toPrimitive];if(void 0!==e){var n=e.call(t,"string");if("object"!=m(n))return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(t)}(t);return"symbol"==m(e)?e:e+""}function O(t,e,n){return e=S(e),function(t,e){if(e&&("object"==m(e)||"function"==typeof e))return e;if(void 0!==e)throw new TypeError("Derived constructors may only return object or undefined");return function(t){if(void 0===t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return t}(t)}(t,E()?Reflect.construct(e,n||[],S(t).constructor):e.apply(t,n))}function E(){try{var t=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){})))}catch(t){}return(E=function(){return!!t})()}function S(t){return S=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(t){return t.__proto__||Object.getPrototypeOf(t)},S(t)}function P(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function");t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,writable:!0,configurable:!0}}),Object.defineProperty(t,"prototype",{writable:!1}),e&&T(t,e)}function T(t,e){return T=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(t,e){return t.__proto__=e,t},T(t,e)}var j=function(t){function e(t){return v(this,e),O(this,e,[t])}return P(e,t),w(e,[{key:"name",get:function(){return"VideoActionItemComponent"}},{key:"template",get:function(){return d()}},{key:"tagName",get:function(){return"a"}},{key:"attributes",get:function(){return this.model.get("href")?{href:this.model.get("href"),target:this.model.get("external")?"_blank":""}:{}}},{key:"className",get:function(){var t="cursor-pointer";return this.options.showLabel?t+=" ".concat(y.iconButton," btn btn-outline-dark ms-2"):t+=" d-inline-block px-1 no-decoration",this.model.get("isDisabled")&&(t+=" ".concat(y.disabled)),t}},{key:"events",value:function(){return{click:"onClick"}}},{key:"behaviors",get:function(){var t=(!this.options.showLabel||this.options.model.get("isDisabled"))&&this.options.model.get("tooltipText");if(t)return[{behaviorClass:f.H,title:t}]}},{key:"appLinks",get:function(){return!this.model.get("appLink")||this.model.get("isDisabled")?{}:{"[this]":this.model.get("appLink")}}},{key:"onClick",value:function(){this.logAction()}},{key:"logAction",value:function(){var t,e,n=this.model.get("appLink");if(p.isObject(n)){var o=(t=n.args,e=1,function(t){if(Array.isArray(t))return t}(t)||function(t,e){var n=null==t?null:"undefined"!=typeof Symbol&&t[Symbol.iterator]||t["@@iterator"];if(null!=n){var o,i,r,l,s=[],a=!0,c=!1;try{if(r=(n=n.call(t)).next,0===e){if(Object(n)!==n)return;a=!1}else for(;!(a=(o=r.call(n)).done)&&(s.push(o.value),s.length!==e);a=!0);}catch(t){c=!0,i=t}finally{try{if(!a&&null!=n.return&&(l=n.return(),Object(l)!==l))return}finally{if(c)throw i}}return s}}(t,e)||function(t,e){if(t){if("string"==typeof t)return b(t,e);var n={}.toString.call(t).slice(8,-1);return"Object"===n&&t.constructor&&(n=t.constructor.name),"Map"===n||"Set"===n?Array.from(t):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?b(t,e):void 0}}(t,e)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}())[0];l.k.logUserAction({id:o},this.model.get("analyticsOptions"))}}},{key:"viewOptions",value:function(){return{styles:y,showLabel:this.options.showLabel,additionalClassName:this.model.get("isDisabled")?"disabled":"cursor-pointer"}}}])}(r.Q.wA),C=function(t){function e(t){return v(this,e),O(this,e,[t])}return P(e,t),w(e,[{key:"name",get:function(){return"VideoActionsComponentCollection"}},{key:"childView",get:function(){return j}},{key:"childViewOptions",get:function(){return{showLabel:this.options.showActionLabels}}}])}(r.Q.$W),_=n(57098),x=n(93569),A=n(89707),D=n(264),V=n(25887),L=n(59168),N=n.n(L);function R(t){return R="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},R(t)}function M(t,e){(null==e||e>t.length)&&(e=t.length);for(var n=0,o=Array(e);n<e;n++)o[n]=t[n];return o}function I(t,e){for(var n=0;n<e.length;n++){var o=e[n];o.enumerable=o.enumerable||!1,o.configurable=!0,"value"in o&&(o.writable=!0),Object.defineProperty(t,B(o.key),o)}}function B(t){var e=function(t){if("object"!=R(t)||!t)return t;var e=t[Symbol.toPrimitive];if(void 0!==e){var n=e.call(t,"string");if("object"!=R(n))return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(t)}(t);return"symbol"==R(e)?e:e+""}function F(){try{var t=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){})))}catch(t){}return(F=function(){return!!t})()}function U(t){return U=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(t){return t.__proto__||Object.getPrototypeOf(t)},U(t)}function K(t,e){return K=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(t,e){return t.__proto__=e,t},K(t,e)}var z=function(t){function e(t){return function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,e),function(t,e,n){return e=U(e),function(t,e){if(e&&("object"==R(e)||"function"==typeof e))return e;if(void 0!==e)throw new TypeError("Derived constructors may only return object or undefined");return function(t){if(void 0===t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return t}(t)}(t,F()?Reflect.construct(e,n||[],U(t).constructor):e.apply(t,n))}(this,e,[t])}return function(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function");t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,writable:!0,configurable:!0}}),Object.defineProperty(t,"prototype",{writable:!1}),e&&K(t,e)}(e,t),n=e,p=[{key:"initialize",value:function(){this.bindListeners()}},{key:"name",get:function(){return"VideoActionsComponent"}},{key:"template",get:function(){return N()}},{key:"lang",get:function(){return"shared.videoActions"}},{key:"className",get:function(){return"".concat(y.actions," ").concat(this.model.id)}},{key:"channelName",get:function(){return"".concat(this.name).concat(this.cid)}},{key:"elements",get:function(){return{dropdownToggle:".ui-dropdown-toggle",moreActions:".more-actions-region"}}},{key:"regions",value:function(){return{actions:{el:".actions-region"},moreActions:{el:"@ui.moreActions",replaceElement:!1}}}},{key:"events",value:function(){return{click:"onClick"}}},{key:"bindListeners",value:function(){this.listenTo(this.name,"hide:actions:dropdown",this.hideDropdown)}},{key:"hideDropdown",value:function(t){this.model.id!==t&&this.getUI("dropdownToggle").dropdown("hide")}},{key:"onClick",value:function(t){o.Radio.channel(this.name).trigger("hide:actions:dropdown",this.model.id),t.stopPropagation()}},{key:"onClickMore",value:function(){this.renderMoreActions(),this.getUI("dropdownToggle").dropdown("toggle")}},{key:"hasProduct",value:function(t){var e;return!!(null===(e=this.options.products)||void 0===e?void 0:e.find((function(e){return e.get("id")===t})))}},{key:"getActions",value:function(){return new r.Q.FE([].concat(function(t){return function(t){if(Array.isArray(t))return M(t)}(t)||function(t){if("undefined"!=typeof Symbol&&null!=t[Symbol.iterator]||null!=t["@@iterator"])return Array.from(t)}(t)||function(t,e){if(t){if("string"==typeof t)return M(t,e);var n={}.toString.call(t).slice(8,-1);return"Object"===n&&t.constructor&&(n=t.constructor.name),"Map"===n||"Set"===n?Array.from(t):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?M(t,e):void 0}}(t)||function(){throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}(x.M2.isInteractive(this.model)&&this.hasProduct(a.x.Analytics)?[{title:i.T.getPhrase(this.lang,"viewResults"),svg:c.Nj.getSvg(c.vn.Analytics),tooltipText:i.T.getPhrase(this.lang,"viewResults"),analyticsOptions:l.k.mergeOptions(this.options.analyticsOptions,{actionType:s.Vw.Click,descriptor:s.XX.ViewResults}),href:A.k.getAnalyticsUrl(this.model,this.options.config),external:!0}]:[]),[{title:i.T.getPhrase(this.lang,"share"),svg:c.Nj.getSvg(c.vn.Share),isDisabled:!x.BK.canShareVideo(this.options.libraries,this.options.application),tooltipText:x.BK.canShareVideo(this.options.libraries,this.options.application)?i.T.getPhrase(this.lang,"share"):x.BK.getSharePermissionsMessage(this.options.libraries,this.options.application),appLink:D.g.hasLite?{application:this.options.application,action:_.eX.Shared.SHARE,args:[this.model.get("id")],params:{entityType:x.M2.getMediaType(this.model)}}:{application:this.options.application,action:_.eX.Shared.SHARE_VIDEO,args:[this.model.get("id")]},analyticsOptions:l.k.mergeOptions(this.options.analyticsOptions,{actionType:s.Vw.Share,eventVersion:s.eq.V3})},{title:i.T.getPhrase(this.lang,"edit"),svg:x.BK.canEditVideo(this.model)?c.Nj.getSvg(c.vn.Edit):c.Nj.getSvg(c.vn.EditClickView),tooltipText:this.getEditTooltip(),appLink:x.M2.getEditAppLink(this.model),analyticsOptions:l.k.mergeOptions(this.options.analyticsOptions,{actionType:s.Vw.Edit,workflowPhase:s.eu.Start})}]))}},{key:"getEditTooltip",value:function(){return x.BK.canEditVideo(this.model)?i.T.getPhrase(this.lang,"edit"):x.M2.isExchangeVideo(this.model)?i.T.getPhrase(this.lang,"linkedToExchange"):i.T.getPhrase(this.lang,"linkedToCv")}},{key:"getFolderSourceId",value:function(){return this.options.collectionSource===V.x_.Folder?this.options.collectionIdentifier.id:this.model.get("categories").first().get("id")}},{key:"getMoreActions",value:function(){var t=[];if(this.options.collectionIdentifier&&t.push({title:i.T.getPhrase(this.lang,"move"),appLink:{application:this.options.application,action:_.eX.Shared.MOVE_VIDEOS,args:[this.model.get("id").toString(),this.getFolderSourceId()]},analyticsOptions:l.k.mergeOptions(this.options.analyticsOptions,{actionType:s.Vw.Move,descriptor:s.yh.Single,workflowPhase:s.eu.Start})}),t.push({title:i.T.getPhrase(this.lang,"manageAccess"),appLink:{application:this.options.application,action:_.eX.Shared.MANAGE_VIDEO_ACCESS,args:[this.model.get("id").toString(),this.model.get("typeId")]},analyticsOptions:l.k.mergeOptions(this.options.analyticsOptions,{actionType:s.Vw.SetAccess,workflowPhase:s.eu.Start})}),this.options.application===_.OV.CONTENT_UPDATES&&this.options.customerHasCustomLibrary&&t.push({title:i.T.getPhrase(this.lang,"addToLibrary"),appLink:{application:this.options.application,action:_.eX.ContentUpdates.ADD_TO_LIBRARY,args:[this.model.get("id").toString()]}}),t.push({title:i.T.getPhrase(this.lang,"openInStaffView"),href:x.M2.getProductUrl(this.model,this.options.config),external:!0,icon:c.Nj.getSvg(c.vn.NewWindow),analyticsOptions:l.k.mergeOptions(this.options.analyticsOptions,{actionType:s.Vw.Click,descriptor:s._S.OpenInStaffView})}),!x.M2.isInteractive(this.model)&&this.hasProduct(a.x.Analytics)&&t.push({title:i.T.getPhrase(this.lang,"viewUsage"),icon:c.Nj.getSvg(c.vn.NewWindow),analyticsOptions:l.k.mergeOptions(this.options.analyticsOptions,{actionType:s.Vw.Click,descriptor:s.XX.ViewResults}),href:A.k.getAnalyticsUrl(this.model,this.options.config),external:!0}),x.M2.isVideo(this.model)&&this.options.application!==_.OV.CONTENT_UPDATES){var e=x.BK.canDownloadVideo(this.model);t.push({title:i.T.getPhrase(this.lang,"download"),disabled:!e,classes:e?"":"".concat(y.disabled),tooltip:e?null:{title:i.T.getPhrase(this.lang,"cannotDownload"),placement:"left"},analyticsOptions:l.k.mergeOptions(this.options.analyticsOptions,{actionType:s.Vw.Download}),appLink:e?{application:this.options.application,action:_.eX.Shared.DOWNLOAD_VIDEO,args:[this.model.id.toString()]}:null})}return x.M2.isVideo(this.model)&&this.options.customerHasExchange&&x.BK.canAddToExchange(this.model)&&t.push({title:i.T.getPhrase(this.lang,"addToExchange"),appLink:{application:this.options.application,action:_.eX.LibraryEditor.ADD_TO_EXCHANGE,args:[this.model.get("id").toString()]}}),x.M2.isVideo(this.model)&&this.options.customerHasLocalCache&&t.push({title:i.T.getPhrase(this.lang,"localCache"),appLink:{application:this.options.application,action:_.eX.Shared.DOWNLOAD_TO_LOCAL_CACHE,args:[this.model.id.toString()]},analyticsOptions:l.k.mergeOptions(this.options.analyticsOptions,{actionType:s.Vw.AddToLocalCache})}),this.options.collectionIdentifier&&t.push({title:i.T.getPhrase(this.lang,"remove"),appLink:{application:this.options.application,action:_.eX.Shared.DELETE_VIDEOS,args:[this.getFolderSourceId(),this.model.get("id").toString()],params:{routeToFolderOnDelete:this.options.routeToFolderOnDelete}},classes:"text-danger",analyticsOptions:l.k.mergeOptions(this.options.analyticsOptions,{actionType:s.Vw.Delete,descriptor:s.yh.Single,workflowPhase:s.eu.Start})}),new r.Q.FE(t)}},{key:"renderActions",value:function(){this.showChildView("actions",new C({collection:this.getActions(),showActionLabels:this.options.showActionLabels}))}},{key:"renderMoreActions",value:function(){this.moreActionsRendered||(this.moreActionsRendered=!0,this.showChildView("moreActions",new u.w({displayOptions:{alignment:"end"},channelName:this.channelName,collection:this.getMoreActions(),childOptions:{isDisabled:function(){return this.model.get("disabled")},getTooltip:function(){return this.options.model.get("tooltip")}},analyticsHelper:l.k})))}},{key:"viewOptions",value:function(){return{styles:y,moreSvg:c.Nj.getSvg(c.vn.More),showLabel:this.options.showActionLabels}}},{key:"onRender",value:function(){this.moreActionsRendered=!1,this.renderActions(),this.renderMoreActions()}}],p&&I(n.prototype,p),Object.defineProperty(n,"prototype",{writable:!1}),n;var n,p}(r.Q.wA)},23130:function(t,e,n){"use strict";n.d(e,{Z:function(){return v},t:function(){return o}});var o,i=n(57857),r=n(31647),l=n(93569),s=n(58040),a=n.n(s),c={columnNames:"hkjBy",descriptionWrapper:"vGCSU",description:"lM8Hu",ellipsis:"zcKZV",showMoreEllipsis:"mUQy_",singleEllipsis:"sLOGz",showEllipsis:"Dn0yN",hideEllipsis:"Y0fDv",open:"JcPWW",truncateSmall:"FgeiQ",truncateLarge:"x5Rgi"};function u(t){return u="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},u(t)}function p(t,e){for(var n=0;n<e.length;n++){var o=e[n];o.enumerable=o.enumerable||!1,o.configurable=!0,"value"in o&&(o.writable=!0),Object.defineProperty(t,m(o.key),o)}}function f(){try{var t=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){})))}catch(t){}return(f=function(){return!!t})()}function h(t){return h=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(t){return t.__proto__||Object.getPrototypeOf(t)},h(t)}function d(t,e){return d=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(t,e){return t.__proto__=e,t},d(t,e)}function y(t,e,n){return(e=m(e))in t?Object.defineProperty(t,e,{value:n,enumerable:!0,configurable:!0,writable:!0}):t[e]=n,t}function m(t){var e=function(t){if("object"!=u(t)||!t)return t;var e=t[Symbol.toPrimitive];if(void 0!==e){var n=e.call(t,"string");if("object"!=u(n))return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(t)}(t);return"symbol"==u(e)?e:e+""}!function(t){t.Small="sm",t.Large="lg"}(o||(o={}));var b=y(y({},o.Small,3),o.Large,5),v=function(t){function e(t){var n;return function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,e),(n=function(t,e,n){return e=h(e),function(t,e){if(e&&("object"==u(e)||"function"==typeof e))return e;if(void 0!==e)throw new TypeError("Derived constructors may only return object or undefined");return function(t){if(void 0===t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return t}(t)}(t,f()?Reflect.construct(e,n||[],h(t).constructor):e.apply(t,n))}(this,e,[t])).showingMore=!1,n}return function(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function");t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,writable:!0,configurable:!0}}),Object.defineProperty(t,"prototype",{writable:!1}),e&&d(t,e)}(e,t),n=e,r=[{key:"name",get:function(){return"VideoDescriptionComponent"}},{key:"template",get:function(){return a()}},{key:"lang",get:function(){return"shared.videoDescription"}},{key:"defaults",get:function(){return{size:"sm"}}},{key:"elements",get:function(){return{description:".description-element",ellipsis:this.options.allowExpand?".".concat(c.showMoreEllipsis):".".concat(c.singleEllipsis)}}},{key:"events",value:function(){return y({},"click .".concat(c.showMoreEllipsis),"onClickShowMore")}},{key:"onClickShowMore",value:function(t){t.preventDefault(),this.showingMore?this.showLessDescription():this.showMoreDescription()}},{key:"getDescription",value:function(){return this.options.linkify?l.m$.linkifyText(this.model.get("description")):this.options.highlighter?l.m$.wordsHighlighter(l.m$.escapeExpression(this.model.get("description")),this.model.get("_matchedWords")):void 0}},{key:"getDescriptionElements",value:function(){return{descriptionTextEl:this.getUI("description"),ellipsisEl:this.getUI("ellipsis")}}},{key:"showMoreDescription",value:function(){var t=this.getDescriptionElements(),e=t.descriptionTextEl,n=t.ellipsisEl;e.removeClass(c.truncateLarge).addClass(c.open),n.text(i.T.getPhrase(this.lang,"showLess")),this.showingMore=!0}},{key:"showLessDescription",value:function(){var t,e=this.getDescriptionElements(),n=e.descriptionTextEl,r=e.ellipsisEl;this.options.size===o.Small&&(t="truncateSmall"),this.options.size===o.Large&&(t="truncateLarge"),n.addClass(c[t]),r.text(this.options.allowExpand?"... ".concat(i.T.getPhrase(this.lang,"showMore")):"...").removeClass(c.hideEllipsis).addClass(c.showEllipsis),this.showingMore=!1}},{key:"truncateDescription",value:function(){if(this.options.truncate){var t=this.getDescriptionElements().descriptionTextEl,e=b[this.options.size];t.height()<=21*e||this.showLessDescription()}}},{key:"viewOptions",value:function(){return{styles:c,truncate:this.options.truncate,expandable:this.options.allowExpand,description:this.getDescription()}}},{key:"onAttach",value:function(){this.truncateDescription()}}],r&&p(n.prototype,r),Object.defineProperty(n,"prototype",{writable:!1}),n;var n,r}(r.Q.wA)},7427:function(t,e,n){"use strict";n.d(e,{V:function(){return y}});var o=n(31647),i=n(57098),r=n(93569),l=n(25205),s=n.n(l),a={sourceLabel:"TczXY"};function c(t){return c="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},c(t)}function u(t,e){for(var n=0;n<e.length;n++){var o=e[n];o.enumerable=o.enumerable||!1,o.configurable=!0,"value"in o&&(o.writable=!0),Object.defineProperty(t,p(o.key),o)}}function p(t){var e=function(t){if("object"!=c(t)||!t)return t;var e=t[Symbol.toPrimitive];if(void 0!==e){var n=e.call(t,"string");if("object"!=c(n))return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(t)}(t);return"symbol"==c(e)?e:e+""}function f(){try{var t=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){})))}catch(t){}return(f=function(){return!!t})()}function h(t){return h=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(t){return t.__proto__||Object.getPrototypeOf(t)},h(t)}function d(t,e){return d=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(t,e){return t.__proto__=e,t},d(t,e)}var y=function(t){function e(t){return function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,e),function(t,e,n){return e=h(e),function(t,e){if(e&&("object"==c(e)||"function"==typeof e))return e;if(void 0!==e)throw new TypeError("Derived constructors may only return object or undefined");return function(t){if(void 0===t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return t}(t)}(t,f()?Reflect.construct(e,n||[],h(t).constructor):e.apply(t,n))}(this,e,[t])}return function(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function");t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,writable:!0,configurable:!0}}),Object.defineProperty(t,"prototype",{writable:!1}),e&&d(t,e)}(e,t),n=e,o=[{key:"name",get:function(){return"VideoSourcesMetadataComponent"}},{key:"template",get:function(){return s()}},{key:"lang",get:function(){return"shared.videoSourcesMetadata"}},{key:"defaults",get:function(){return{showFolder:!1,highlight:!1}}},{key:"appLinks",get:function(){var t;return this.options.showFolder&&(null===(t=this.folders)||void 0===t?void 0:t.length)?this.folders.reduce((function(t,e){return t[".applink-folder-".concat(e.get("id"))]={application:i.OV.LIBRARY_EDITOR,action:i.eX.LibraryEditor.FOLDER,args:[e.get("id")]},t}),{}):{}}},{key:"events",value:function(){var t,e,n,o=Object.keys(this.appLinks),i=(t={},n="onClick",(e=p(e="click .".concat(a.sourceLabel)))in t?Object.defineProperty(t,e,{value:n,enumerable:!0,configurable:!0,writable:!0}):t[e]=n,t);return o.forEach((function(t){i["click ".concat(t)]="onClick"})),i}},{key:"onClick",value:function(t){t.stopPropagation()}},{key:"getFolderLinks",value:function(){var t,e=this;if(null===(t=this.folders)||void 0===t?void 0:t.length){var n={};return this.folders.forEach((function(t){var o=e.options.highlight?r.m$.wordsHighlighter(r.m$.escapeExpression(t.get("name")),e.model.get("_matchedWords")):r.m$.escapeExpression(t.get("name"));n[t.get("id")]=o})),Object.keys(n).map((function(t){return'<a class="info-link applink-folder-'.concat(t,'">').concat(n[t],"</a>")})).join(", ")}}},{key:"getCustomLibraryFolders",value:function(){var t;if(!(null===(t=this.model)||void 0===t?void 0:t.categories)||!this.options.libraries)return[];var e=this.options.libraries.reduce((function(t,e){return t[e.id]=!0,t}),{});return this.model.categories.filter((function(t){var n,o=null===(n=t.libraries)||void 0===n?void 0:n.first().get("id");return e[o]}))}},{key:"onBeforeRender",value:function(){var t;return this.folders||(this.folders=this.getCustomLibraryFolders()),this.options.showFolder&&!!(null===(t=this.folders)||void 0===t?void 0:t.length)}},{key:"viewOptions",value:function(){return{styles:a,folderCount:this.folders.length,folders:this.options.showFolder&&this.getFolderLinks(),hideLabel:this.options.hideLabel}}}],o&&u(n.prototype,o),Object.defineProperty(n,"prototype",{writable:!1}),n;var n,o}(o.Q.wA)},61356:function(t,e,n){"use strict";n.d(e,{c:function(){return S}});var o=n(43823),i=n(21161),r=n(31647),l=n(52076),s=n(70065),a=n(88483),c=n(2772),u=n(10101),p=n(89167),f=n(57098),h=n(93569),d=n(264),y=n(57e3),m=n(37339),b=n.n(m);function v(t){return v="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},v(t)}function g(t,e){for(var n=0;n<e.length;n++){var o=e[n];o.enumerable=o.enumerable||!1,o.configurable=!0,"value"in o&&(o.writable=!0),Object.defineProperty(t,w(o.key),o)}}function w(t){var e=function(t){if("object"!=v(t)||!t)return t;var e=t[Symbol.toPrimitive];if(void 0!==e){var n=e.call(t,"string");if("object"!=v(n))return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(t)}(t);return"symbol"==v(e)?e:e+""}function k(){try{var t=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){})))}catch(t){}return(k=function(){return!!t})()}function O(t){return O=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(t){return t.__proto__||Object.getPrototypeOf(t)},O(t)}function E(t,e){return E=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(t,e){return t.__proto__=e,t},E(t,e)}var S=function(t){function e(t){var n;return function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,e),(n=function(t,e,n){return e=O(e),function(t,e){if(e&&("object"==v(e)||"function"==typeof e))return e;if(void 0!==e)throw new TypeError("Derived constructors may only return object or undefined");return function(t){if(void 0===t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return t}(t)}(t,k()?Reflect.construct(e,n||[],O(t).constructor):e.apply(t,n))}(this,e,[t]))._viewKeyRequested=!1,n}return function(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function");t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,writable:!0,configurable:!0}}),Object.defineProperty(t,"prototype",{writable:!1}),e&&E(t,e)}(e,t),n=e,(r=[{key:"initialize",value:function(){this.bindListeners()}},{key:"name",get:function(){return"VideoPreviewComponent"}},{key:"template",get:function(){return b()}},{key:"instanceChannelName",get:function(){return h.N0.generateUniqueChannelName(this)}},{key:"defaults",get:function(){return{captureAnalytics:!0}}},{key:"behaviors",get:function(){var t=this;return[{behaviorClass:u.Im,selector:".lazy-img",callback:function(){o.Radio.channel(t.instanceChannelName).trigger("show:play:icon")},minBrowserSupportVersion:f.v9}]}},{key:"regions",value:function(){return{player:{el:".video-player-region",replaceElement:!1},thumbnail:{el:".thumbnail-region",replaceElement:!0}}}},{key:"events",value:function(){return{click:"onClick"}}},{key:"bindListeners",value:function(){this.options.channelName&&this.listenTo(this.options.channelName,"update:chapter:time",this.onUpdateWebplayer)}},{key:"onUpdateWebplayer",value:function(t){return d.g.hasLite?this.playerViewKey?this.player?void this.seekToChapter(t):(this.listenToOnce(this.options.channelName,"player:loaded",i.bind(this.seekToChapter,this,t)),void this.renderVideoPreview()):(this.listenToOnce(this.options.channelName,"player:loaded",i.bind(this.seekToChapter,this,t)),void this.requestViewKey()):this.webPlayer?void this.seekToChapter(t):(this.listenToOnce(this.options.channelName,"webplayer:loaded",i.bind(this.seekToChapter,this,t)),void this.renderVideoPreview())}},{key:"seekToChapter",value:function(t){this.player?this.player.currentTime(t):this.webPlayer.seekTo(t)}},{key:"requestViewKey",value:function(){var t=this;this.playerViewKey||this._viewKeyRequested||(this._viewKeyRequested=!0,this.options.createViewKey(this.model.get("id"),(function(e){t.playerViewKey=e,t.renderVideoPreview()})))}},{key:"onClick",value:function(){this.model.get("id")&&(d.g.hasLite?this.requestViewKey():this.webPlayer||this.renderVideoPreview())}},{key:"renderThumbnail",value:function(){this.showChildView("thumbnail",new c.Z({model:this.model,thumbnailOptions:{size:a.h2.Medium},playIcon:!0,lazyload:!0,channelName:this.instanceChannelName,thumbnail:h.M2.getThumbnail(this.model),duration:h.M2.getDuration(this.model),durationNewStyle:!0}))}},{key:"renderVideoPreview",value:function(){if(this.playerViewKey)return this.player=new y.l({model:this.playerViewKey,playerApiUrl:this.options.playerApiUrl,channelName:this.options.channelName}),void this.showChildView("player",this.player);this.webPlayer=new p.Q({model:this.model,webPlayerUrl:this.options.webPlayerUrl,parentChannelName:this.options.channelName,autoplay:!0,analyticsOptions:l.k.mergeOptions(this.options.analyticsOptions,{entity:s.py.Video}),captureAnalytics:this.options.captureAnalytics,currentUser:this.options.currentUser}),this.showChildView("player",this.webPlayer)}},{key:"onRender",value:function(){this.playerViewKey?this.renderVideoPreview():this.renderThumbnail()}}])&&g(n.prototype,r),Object.defineProperty(n,"prototype",{writable:!1}),n;var n,r}(r.Q.wA)},15564:function(t,e,n){var o=n(31197);t.exports=(o.default||o).template({1:function(t,e,n,o,i){return'<span class="btn-close cursor-pointer" role="button" aria-label="Close"></span>\n'},compiler:[8,">= 4.3.0"],main:function(t,e,n,o,i){t.propertyIsEnumerable;var r,l,s=null!=e?e:t.nullContext||{},a=t.escapeExpression;return'<span title="'+a("function"==typeof(l=null!=(l=n.name||(null!=e?e.name:e))?l:t.hooks.helperMissing)?l.call(s,{name:"name",hash:{},data:i}):l)+'">'+a(t.lambda(null!=(r=null!=e?e.options:e)?r.trimmedName:r,e))+"</span>\n"+(null!=(r=n.if.call(s,null!=(r=null!=e?e.options:e)?r.removable:r,{name:"if",hash:{},fn:t.program(1,i,0),inverse:t.noop,data:i}))?r:"")},useData:!0})},37106:function(t,e,n){var o=n(31197);t.exports=(o.default||o).template({1:function(t,e,n,o,i){var r;return t.propertyIsEnumerable,t.escapeExpression("function"==typeof(r=null!=(r=n.title||(null!=e?e.title:e))?r:t.hooks.helperMissing)?r.call(null!=e?e:t.nullContext||{},{name:"title",hash:{},data:i}):r)},compiler:[8,">= 4.3.0"],main:function(t,e,n,o,i){t.propertyIsEnumerable;var r,l,s=t.lambda,a=t.escapeExpression,c=null!=e?e:t.nullContext||{};return' <span class="d-inline-block align-middle '+a(s(null!=(r=null!=(r=null!=e?e.options:e)?r.styles:r)?r.svgContainer:r,e))+" "+a(s(null!=(r=null!=e?e.options:e)?r.additionalClassName:r,e))+'">'+(null!=(r="function"==typeof(l=null!=(l=n.svg||(null!=e?e.svg:e))?l:t.hooks.helperMissing)?l.call(c,{name:"svg",hash:{},data:i}):l)?r:"")+"</span>\n"+(null!=(r=n.if.call(c,null!=(r=null!=e?e.options:e)?r.showLabel:r,{name:"if",hash:{},fn:t.program(1,i,0),inverse:t.noop,data:i}))?r:"")},useData:!0})},59168:function(t,e,n){var o=n(31197);t.exports=(o.default||o).template({1:function(t,e,n,o,i){return"btn btn-outline-dark px-0 ms-2"},3:function(t,e,n,o,i){var r;return t.propertyIsEnumerable,t.escapeExpression(t.lambda(null!=(r=null!=(r=null!=e?e.options:e)?r.styles:r)?r.moreSvgContainer:r,e))},5:function(t,e,n,o,i){var r;return t.propertyIsEnumerable,t.escapeExpression(t.lambda(null!=(r=null!=(r=null!=e?e.options:e)?r.styles:r)?r.svgContainer:r,e))+" align-middle"},compiler:[8,">= 4.3.0"],main:function(t,e,n,o,i){t.propertyIsEnumerable;var r,l=null!=e?e:t.nullContext||{};return'<div class="actions-region d-inline-block"></div><span class="position-relative d-inline-block dropdown">\n <span\n data-bs-toggle="dropdown"\n aria-haspopup="true"\n aria-expanded="false"\n class="'+(null!=(r=n.if.call(l,null!=(r=null!=e?e.options:e)?r.showLabel:r,{name:"if",hash:{},fn:t.program(1,i,0),inverse:t.noop,data:i}))?r:"")+' ui-dropdown-toggle"\n >\n <span class="ui-more d-inline-block '+(null!=(r=n.if.call(l,null!=(r=null!=e?e.options:e)?r.showLabel:r,{name:"if",hash:{},fn:t.program(3,i,0),inverse:t.program(5,i,0),data:i}))?r:"")+' cursor-pointer">'+(null!=(r=t.lambda(null!=(r=null!=e?e.options:e)?r.moreSvg:r,e))?r:"")+'</span>\n </span>\n <div class="more-actions-region"></div>\n</span>\n'},useData:!0})},58040:function(t,e,n){var o=n(31197);t.exports=(o.default||o).template({1:function(t,e,n,o,i){t.propertyIsEnumerable;var r,l=t.lambda,s=t.escapeExpression;return' <div class="'+s(l(null!=(r=null!=(r=null!=e?e.options:e)?r.styles:r)?r.descriptionWrapper:r,e))+'">\n <p class="description-element '+s(l(null!=(r=null!=(r=null!=e?e.options:e)?r.styles:r)?r.description:r,e))+'">'+(null!=(r=n.if.call(null!=e?e:t.nullContext||{},null!=(r=null!=e?e.options:e)?r.expandable:r,{name:"if",hash:{},fn:t.program(2,i,0),inverse:t.program(4,i,0),data:i}))?r:"")+"</p>\n </div>\n"},2:function(t,e,n,o,i){t.propertyIsEnumerable;var r,l=t.lambda,s=t.escapeExpression;return(null!=(r=l(null!=(r=null!=e?e.options:e)?r.description:r,e))?r:"")+'<span class="'+s(l(null!=(r=null!=(r=null!=e?e.options:e)?r.styles:r)?r.showMoreEllipsis:r,e))+" "+s(l(null!=(r=null!=(r=null!=e?e.options:e)?r.styles:r)?r.hideEllipsis:r,e))+'">... '+s((n.lang||e&&e.lang||t.hooks.helperMissing).call(null!=e?e:t.nullContext||{},"showMore",{name:"lang",hash:{},data:i}))+"</span>"},4:function(t,e,n,o,i){t.propertyIsEnumerable;var r,l=t.lambda,s=t.escapeExpression;return(null!=(r=l(null!=(r=null!=e?e.options:e)?r.description:r,e))?r:"")+'<span class="'+s(l(null!=(r=null!=(r=null!=e?e.options:e)?r.styles:r)?r.singleEllipsis:r,e))+" "+s(l(null!=(r=null!=(r=null!=e?e.options:e)?r.styles:r)?r.hideEllipsis:r,e))+'">...</span>'},6:function(t,e,n,o,i){t.propertyIsEnumerable;var r,l=t.lambda;return' <p class="'+t.escapeExpression(l(null!=(r=null!=(r=null!=e?e.options:e)?r.styles:r)?r.description:r,e))+'">'+(null!=(r=l(null!=(r=null!=e?e.options:e)?r.description:r,e))?r:"")+"</p>\n"},compiler:[8,">= 4.3.0"],main:function(t,e,n,o,i){var r;return t.propertyIsEnumerable,null!=(r=n.if.call(null!=e?e:t.nullContext||{},null!=(r=null!=e?e.options:e)?r.truncate:r,{name:"if",hash:{},fn:t.program(1,i,0),inverse:t.program(6,i,0),data:i}))?r:""},useData:!0})},25205:function(t,e,n){var o=n(31197);t.exports=(o.default||o).template({1:function(t,e,n,o,i){t.propertyIsEnumerable;var r,l=t.escapeExpression;return'<span class="'+l(t.lambda(null!=(r=null!=(r=null!=e?e.options:e)?r.styles:r)?r.sourceLabel:r,e))+'">'+l((n.lang||e&&e.lang||t.hooks.helperMissing).call(null!=e?e:t.nullContext||{},"folder",{name:"lang",hash:{smartCount:null!=(r=null!=e?e.options:e)?r.folderCount:r},data:i}))+"</span>\n"},compiler:[8,">= 4.3.0"],main:function(t,e,n,o,i){var r;return t.propertyIsEnumerable,(null!=(r=n.unless.call(null!=e?e:t.nullContext||{},null!=(r=null!=e?e.options:e)?r.hideLabel:r,{name:"unless",hash:{},fn:t.program(1,i,0),inverse:t.noop,data:i}))?r:"")+(null!=(r=t.lambda(null!=(r=null!=e?e.options:e)?r.folders:r,e))?r:"")},useData:!0})},37339:function(t,e,n){var o=n(31197);t.exports=(o.default||o).template({1:function(t,e,n,o,i){return"cursor-pointer "},compiler:[8,">= 4.3.0"],main:function(t,e,n,o,i){var r;return t.propertyIsEnumerable,'<div class="video-player-region '+(null!=(r=n.if.call(null!=e?e:t.nullContext||{},null!=e?e.id:e,{name:"if",hash:{},fn:t.program(1,i,0),inverse:t.noop,data:i}))?r:"")+'">\n <div class="thumbnail-region"></div>\n</div>'},useData:!0})}}]);
@@ -1 +1 @@
1
- (self.webpackChunk_clickview_library_editor=self.webpackChunk_clickview_library_editor||[]).push([[5747],{95747:function(e,n,t){"use strict";t.r(n),t.d(n,{FileSelectView:function(){return T}});var o=t(39479),r=t(21679),i=t(57857),l=t(68003),a=t(31647),c=t(52076),u=t(70065),s=t(81937),p=t(25692),d=t(57769),f=t(75432),h=t(98985),g=t(57098),y=t(48404),m=t(22103),v=t.n(m),b={uploadImage:"yRGoO"};function k(e){return k="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},k(e)}function w(e,n){for(var t=0;t<n.length;t++){var o=n[t];o.enumerable=o.enumerable||!1,o.configurable=!0,"value"in o&&(o.writable=!0),Object.defineProperty(e,U(o.key),o)}}function U(e){var n=function(e){if("object"!=k(e)||!e)return e;var n=e[Symbol.toPrimitive];if(void 0!==n){var t=n.call(e,"string");if("object"!=k(t))return t;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}(e);return"symbol"==k(n)?n:n+""}function S(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){})))}catch(e){}return(S=function(){return!!e})()}function O(e){return O=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(e){return e.__proto__||Object.getPrototypeOf(e)},O(e)}function _(e,n){return _=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(e,n){return e.__proto__=n,e},_(e,n)}var T=function(e){function n(){return function(e,n){if(!(e instanceof n))throw new TypeError("Cannot call a class as a function")}(this,n),function(e,n,t){return n=O(n),function(e,n){if(n&&("object"==k(n)||"function"==typeof n))return n;if(void 0!==n)throw new TypeError("Derived constructors may only return object or undefined");return function(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}(e)}(e,S()?Reflect.construct(n,t||[],O(e).constructor):n.apply(e,t))}(this,n,arguments)}return function(e,n){if("function"!=typeof n&&null!==n)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(n&&n.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),Object.defineProperty(e,"prototype",{writable:!1}),n&&_(e,n)}(n,e),t=n,(a=[{key:"initialize",value:function(){this.listenTo(this.channelName,s.S.FILES_SELECTED,this.onFilesSelected),this.videoUploadService=r.u.getInstance(g.K9.VideoUpload,this)}},{key:"name",get:function(){return"FileSelectView"}},{key:"title",get:function(){return i.T.getPhrase(this.lang,"title")}},{key:"lang",get:function(){return"upload.fileSelect"}},{key:"template",get:function(){return v()}},{key:"className",get:function(){return"container px-0"}},{key:"props",get:function(){return["videoUploadService"]}},{key:"channelName",get:function(){return this.customCid||(this.customCid=o.uniqueId("custom")),"".concat(this.name).concat(this.customCid)}},{key:"behaviors",get:function(){return[{behaviorClass:d.Z,buttonSelector:".choose-files",channelName:this.channelName,acceptMultiple:!0,mimeType:"video/*"}]}},{key:"onFilesSelected",value:function(e,n){this.videoUploadService.addFiles(e),this.logAction(e,n)}},{key:"logAction",value:function(e,n){var t={actionType:u.Vw.Upload,entity:u.py.Video,location:u.LZ.VideoUpload,workflowPhase:u.eu.Start,descriptor:c.k.mapInteractionType(n)};c.k.logUserAction(e,t)}},{key:"requiredResources",get:function(){return{config:y.p.config,currentUser:f.K.currentUser}}},{key:"viewOptions",value:function(){return{styles:b,uploadArticleUrl:h.o.getHybridArticle(p.s.UploadToLibraryEditor,p.b.UploadToLibraryEditor),uploadTermsUrl:this.config?l._.safeUrlConcat(this.config.get("marketingSiteUrl"),g.l.UploadingUserContent):"",classNames:"info-link",imageUrl:g.Wn.Upload.UPLOAD_VIDEO}}}])&&w(t.prototype,a),Object.defineProperty(t,"prototype",{writable:!1}),t;var t,a}(a.Q.G7)},22103:function(e,n,t){var o=t(32227);e.exports=(o.default||o).template({compiler:[8,">= 4.3.0"],main:function(e,n,t,o,r){e.propertyIsEnumerable;var i,l=null!=n?n:e.nullContext||{},a=e.hooks.helperMissing,c=e.escapeExpression,u=e.lambda;return'<div class="p-3 my-3 bg-white text-center">\n <h1>'+c((t.lang||n&&n.lang||a).call(l,"uploadVideos",{name:"lang",hash:{},data:r}))+'</h1>\n <div class="my-3">\n <img src="'+c(u(null!=(i=null!=n?n.options:n)?i.imageUrl:i,n))+'" class="'+c(u(null!=(i=null!=(i=null!=n?n.options:n)?i.styles:i)?i.uploadImage:i,n))+' img-fluid mb-2" />\n </div>\n <div>\n <button class="btn btn-dark choose-files">'+c((t.lang||n&&n.lang||a).call(l,"chooseVideo",{name:"lang",hash:{},data:r}))+"</button>\n </div>\n <div>\n <span>"+c((t.lang||n&&n.lang||a).call(l,"dragDrop",{name:"lang",hash:{},data:r}))+'</span>\n </div>\n</div>\n<div class="p-3 bg-white container-fluid">\n <div class="row">\n <div class="col-4">\n <h4>'+c((t.lang||n&&n.lang||a).call(l,"help",{name:"lang",hash:{},data:r}))+'</h2>\n <div class="border-top pt-2">\n <ul>\n <li><a class="info-link" href="'+c(u(null!=(i=null!=n?n.options:n)?i.uploadArticleUrl:i,n))+'" target="_blank">'+c((t.lang||n&&n.lang||a).call(l,"instructionsHeading",{name:"lang",hash:{},data:r}))+'</a></li>\n </ul>\n </div>\n </div>\n <div class="col-8">\n <h4>'+c((t.lang||n&&n.lang||a).call(l,"termsHeading",{name:"lang",hash:{},data:r}))+'</h2>\n <div class="border-top pt-2">\n <ol>\n <li>'+c((t.lang||n&&n.lang||a).call(l,"term1",{name:"lang",hash:{},data:r}))+"</li>\n <li>"+c((t.lang||n&&n.lang||a).call(l,"term2",{name:"lang",hash:{},data:r}))+"</li>\n <li>"+(null!=(i=(t.lang||n&&n.lang||a).call(l,"term3",{name:"lang",hash:{classNames:null!=(i=null!=n?n.options:n)?i.classNames:i,uploadTermsUrl:null!=(i=null!=n?n.options:n)?i.uploadTermsUrl:i},data:r}))?i:"")+"</li>\n </ol>\n </div>\n </div>\n </div>\n</div>"},useData:!0})}}]);
1
+ (self.webpackChunk_clickview_library_editor=self.webpackChunk_clickview_library_editor||[]).push([[5747],{95747:function(e,n,t){"use strict";t.r(n),t.d(n,{FileSelectView:function(){return T}});var o=t(21161),r=t(21679),i=t(57857),l=t(68003),a=t(31647),c=t(52076),u=t(70065),s=t(81937),p=t(25692),d=t(57769),f=t(75432),h=t(98985),g=t(57098),y=t(48404),m=t(22103),v=t.n(m),b={uploadImage:"yRGoO"};function k(e){return k="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},k(e)}function w(e,n){for(var t=0;t<n.length;t++){var o=n[t];o.enumerable=o.enumerable||!1,o.configurable=!0,"value"in o&&(o.writable=!0),Object.defineProperty(e,U(o.key),o)}}function U(e){var n=function(e){if("object"!=k(e)||!e)return e;var n=e[Symbol.toPrimitive];if(void 0!==n){var t=n.call(e,"string");if("object"!=k(t))return t;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}(e);return"symbol"==k(n)?n:n+""}function S(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){})))}catch(e){}return(S=function(){return!!e})()}function O(e){return O=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(e){return e.__proto__||Object.getPrototypeOf(e)},O(e)}function _(e,n){return _=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(e,n){return e.__proto__=n,e},_(e,n)}var T=function(e){function n(){return function(e,n){if(!(e instanceof n))throw new TypeError("Cannot call a class as a function")}(this,n),function(e,n,t){return n=O(n),function(e,n){if(n&&("object"==k(n)||"function"==typeof n))return n;if(void 0!==n)throw new TypeError("Derived constructors may only return object or undefined");return function(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}(e)}(e,S()?Reflect.construct(n,t||[],O(e).constructor):n.apply(e,t))}(this,n,arguments)}return function(e,n){if("function"!=typeof n&&null!==n)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(n&&n.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),Object.defineProperty(e,"prototype",{writable:!1}),n&&_(e,n)}(n,e),t=n,(a=[{key:"initialize",value:function(){this.listenTo(this.channelName,s.S.FILES_SELECTED,this.onFilesSelected),this.videoUploadService=r.u.getInstance(g.K9.VideoUpload,this)}},{key:"name",get:function(){return"FileSelectView"}},{key:"title",get:function(){return i.T.getPhrase(this.lang,"title")}},{key:"lang",get:function(){return"upload.fileSelect"}},{key:"template",get:function(){return v()}},{key:"className",get:function(){return"container px-0"}},{key:"props",get:function(){return["videoUploadService"]}},{key:"channelName",get:function(){return this.customCid||(this.customCid=o.uniqueId("custom")),"".concat(this.name).concat(this.customCid)}},{key:"behaviors",get:function(){return[{behaviorClass:d.Z,buttonSelector:".choose-files",channelName:this.channelName,acceptMultiple:!0,mimeType:"video/*"}]}},{key:"onFilesSelected",value:function(e,n){this.videoUploadService.addFiles(e),this.logAction(e,n)}},{key:"logAction",value:function(e,n){var t={actionType:u.Vw.Upload,entity:u.py.Video,location:u.LZ.VideoUpload,workflowPhase:u.eu.Start,descriptor:c.k.mapInteractionType(n)};c.k.logUserAction(e,t)}},{key:"requiredResources",get:function(){return{config:y.p.config,currentUser:f.K.currentUser}}},{key:"viewOptions",value:function(){return{styles:b,uploadArticleUrl:h.o.getHybridArticle(p.s.UploadToLibraryEditor,p.b.UploadToLibraryEditor),uploadTermsUrl:this.config?l._.safeUrlConcat(this.config.get("marketingSiteUrl"),g.l.UploadingUserContent):"",classNames:"info-link",imageUrl:g.Wn.Upload.UPLOAD_VIDEO}}}])&&w(t.prototype,a),Object.defineProperty(t,"prototype",{writable:!1}),t;var t,a}(a.Q.G7)},22103:function(e,n,t){var o=t(31197);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})}}]);