@clickview/library-editor 1.51.0 → 1.52.0-rc.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (222) hide show
  1. package/.eslintrc.js +5 -0
  2. package/dist/bundles.json +3 -3
  3. package/dist/css/101-library-editor-cc4c4155eb.chunk.css +2 -0
  4. package/dist/css/1086-library-editor-9f7cd4e27e.chunk.css +4 -0
  5. package/dist/css/{112-library-editor-f77f4c1797.chunk.css → 112-library-editor-6a2d152d7d.chunk.css} +3 -3
  6. package/dist/css/{2417-library-editor-1c2828a69b.chunk.css → 2417-library-editor-46f8e6e95b.chunk.css} +2 -2
  7. package/dist/css/{2482-library-editor-6893a774e7.chunk.css → 2482-library-editor-1b6dc45d45.chunk.css} +3 -3
  8. package/dist/css/{2644-library-editor-cdc1c17774.chunk.css → 2644-library-editor-9a25c88900.chunk.css} +3 -3
  9. package/dist/css/2692-library-editor-9f7cd4e27e.chunk.css +4 -0
  10. package/dist/css/3087-library-editor-b3e75f7e7d.chunk.css +4 -0
  11. package/dist/css/{343-library-editor-a5b4b92fa3.chunk.css → 343-library-editor-d2f704c6a5.chunk.css} +4 -4
  12. package/dist/css/{3551-library-editor-37e6a3ecdc.chunk.css → 3551-library-editor-787101ac7a.chunk.css} +3 -3
  13. package/dist/css/{376-library-editor-6d718e6fc5.chunk.css → 376-library-editor-ce09c2fd78.chunk.css} +2 -2
  14. package/dist/css/{456-library-editor-a92bd26671.chunk.css → 456-library-editor-7dd590d5da.chunk.css} +7 -7
  15. package/dist/css/{5046-library-editor-d255e3d3d5.chunk.css → 5046-library-editor-765ea88cb0.chunk.css} +3 -3
  16. package/dist/css/{5314-library-editor-2013dd2fec.chunk.css → 5314-library-editor-abd6613696.chunk.css} +6 -6
  17. package/dist/css/5424-library-editor-30b3c7de26.chunk.css +5 -0
  18. package/dist/css/{61-library-editor-46bcd7b5f8.chunk.css → 61-library-editor-f25bac2db6.chunk.css} +7 -7
  19. package/dist/css/{6352-library-editor-c99ed407da.chunk.css → 6352-library-editor-33de5ce339.chunk.css} +3 -3
  20. package/dist/css/{6586-library-editor-d87449021d.chunk.css → 6586-library-editor-ad58bdb1e9.chunk.css} +29 -29
  21. package/dist/css/6732-library-editor-0be4d10f09.chunk.css +6 -0
  22. package/dist/css/708-library-editor-7ffe353138.chunk.css +7 -0
  23. package/dist/css/{7295-library-editor-a539c72655.chunk.css → 7295-library-editor-34087db2b0.chunk.css} +0 -1
  24. package/dist/css/8762-library-editor-9f7cd4e27e.chunk.css +4 -0
  25. package/dist/css/8906-library-editor-9f7cd4e27e.chunk.css +4 -0
  26. package/dist/css/{1601-library-editor-4a6aafa66a.chunk.css → 8952-library-editor-5d85817bef.chunk.css} +0 -1
  27. package/dist/css/{9369-library-editor-126f3beb94.chunk.css → 9369-library-editor-9f1e2cf42c.chunk.css} +3 -3
  28. package/dist/css/{9383-library-editor-a65f7ef186.chunk.css → 9383-library-editor-02381b537c.chunk.css} +2 -2
  29. package/dist/css/library-editor-app-61b0cfb735.css +62 -0
  30. package/dist/languages/en.json +1 -1
  31. package/dist/scripts/{101-cd0245d087.chunk.js → 101-d21c700d2c.chunk.js} +1 -1
  32. package/dist/scripts/1010-02e8a15325.chunk.js +1 -0
  33. package/dist/scripts/1086-262ea2b235.chunk.js +1 -0
  34. package/dist/scripts/112-088fff3566.chunk.js +1 -0
  35. package/dist/scripts/1216-e810014734.chunk.js +1 -0
  36. package/dist/scripts/1224-88f701eed5.chunk.js +1 -0
  37. package/dist/scripts/1269-33455b77e3.chunk.js +1 -0
  38. package/dist/scripts/1409-8700120c03.chunk.js +1 -0
  39. package/dist/scripts/152-3e03297486.chunk.js +2 -0
  40. package/dist/scripts/1703-187a4204a1.chunk.js +1 -0
  41. package/dist/scripts/1832-d0edba279f.chunk.js +1 -0
  42. package/dist/scripts/1876-ece6af806b.chunk.js +1 -0
  43. package/dist/scripts/{1934-cf53d84778.chunk.js → 1934-55d1327eb7.chunk.js} +1 -1
  44. package/dist/scripts/{1973-d4b3f2d0a9.chunk.js → 1973-b4b1932093.chunk.js} +1 -1
  45. package/dist/scripts/2417-ad6f0d0fd0.chunk.js +1 -0
  46. package/dist/scripts/243-28c10ef38e.chunk.js +1 -0
  47. package/dist/scripts/2482-0bad286d91.chunk.js +1 -0
  48. package/dist/scripts/259-e04ce9b65e.chunk.js +1 -0
  49. package/dist/scripts/2601-896b1c48bd.chunk.js +1 -0
  50. package/dist/scripts/2644-2edd5377f2.chunk.js +1 -0
  51. package/dist/scripts/2648-2cbb683d6d.chunk.js +1 -0
  52. package/dist/scripts/2692-205c2b2a30.chunk.js +1 -0
  53. package/dist/scripts/{2802-31b24a8131.chunk.js → 2802-a9de5e47dc.chunk.js} +1 -1
  54. package/dist/scripts/2803-477b2df7f7.chunk.js +1 -0
  55. package/dist/scripts/2888-46d4a32920.chunk.js +1 -0
  56. package/dist/scripts/299-7940ffca4d.chunk.js +1 -0
  57. package/dist/scripts/2998-452eac1864.chunk.js +1 -0
  58. package/dist/scripts/3400-83d3c4beb2.chunk.js +1 -0
  59. package/dist/scripts/343-4941b2ce3b.chunk.js +1 -0
  60. package/dist/scripts/35-9da0465d53.chunk.js +1 -0
  61. package/dist/scripts/3551-d922b88e92.chunk.js +1 -0
  62. package/dist/scripts/3639-60600a5ec9.chunk.js +1 -0
  63. package/dist/scripts/3746-26ea375c5c.chunk.js +1 -0
  64. package/dist/scripts/376-4a074491f5.chunk.js +1 -0
  65. package/dist/scripts/3763-54afb8f767.chunk.js +1 -0
  66. package/dist/scripts/{3969-fe64f3d542.chunk.js → 3969-a1807a9a1e.chunk.js} +1 -1
  67. package/dist/scripts/4201-1b1b268276.chunk.js +1 -0
  68. package/dist/scripts/4245-278ccd31be.chunk.js +1 -0
  69. package/dist/scripts/{4523-7a79c1890d.chunk.js → 4523-66bb5f6b9b.chunk.js} +1 -1
  70. package/dist/scripts/456-8e33233627.chunk.js +1 -0
  71. package/dist/scripts/4591-a946b821ad.chunk.js +1 -0
  72. package/dist/scripts/4860-ab7d2109eb.chunk.js +1 -0
  73. package/dist/scripts/5046-ed8705ad88.chunk.js +1 -0
  74. package/dist/scripts/514-b64b498fa4.chunk.js +1 -0
  75. package/dist/scripts/{5173-ae0218ce2b.chunk.js → 5173-dffab02f01.chunk.js} +1 -1
  76. package/dist/scripts/5286-81cd9ab0aa.chunk.js +1 -0
  77. package/dist/scripts/5314-3b18fc1015.chunk.js +1 -0
  78. package/dist/scripts/5412-27b107d23b.chunk.js +1 -0
  79. package/dist/scripts/5418-ad6ef337de.chunk.js +1 -0
  80. package/dist/scripts/5424-0721f9ce8b.chunk.js +1 -0
  81. package/dist/scripts/546-932b6272a0.chunk.js +1 -0
  82. package/dist/scripts/5524-ec2fbbfe30.chunk.js +1 -0
  83. package/dist/scripts/5707-a2314e31b6.chunk.js +1 -0
  84. package/dist/scripts/5747-5aebd8ce5e.chunk.js +1 -0
  85. package/dist/scripts/5850-fd6f7d29bf.chunk.js +1 -0
  86. package/dist/scripts/{5891-f7bd1916f7.chunk.js → 5891-6e77508bf1.chunk.js} +1 -1
  87. package/dist/scripts/6093-c54db8b7a2.chunk.js +1 -0
  88. package/dist/scripts/61-c2be868544.chunk.js +2 -0
  89. package/dist/scripts/6352-8c1a579b31.chunk.js +1 -0
  90. package/dist/scripts/6427-78e788c3b9.chunk.js +1 -0
  91. package/dist/scripts/6532-bb34418e8b.chunk.js +2 -0
  92. package/dist/scripts/6586-f14cd28e96.chunk.js +2 -0
  93. package/dist/scripts/6732-881331afc9.chunk.js +1 -0
  94. package/dist/scripts/6774-c1f539fbf7.chunk.js +1 -0
  95. package/dist/scripts/6788-ff68198a04.chunk.js +1 -0
  96. package/dist/scripts/{6963-898cb28e8d.chunk.js → 6963-dc358c6e31.chunk.js} +1 -1
  97. package/dist/scripts/7002-a5097661ad.chunk.js +1 -0
  98. package/dist/scripts/7053-999af1f110.chunk.js +1 -0
  99. package/dist/scripts/7071-f1f932823b.chunk.js +1 -0
  100. package/dist/scripts/708-dcabc16f2f.chunk.js +1 -0
  101. package/dist/scripts/7153-a00d4989cd.chunk.js +1 -0
  102. package/dist/scripts/7190-34cfe64bef.chunk.js +1 -0
  103. package/dist/scripts/7295-7bf9241a12.chunk.js +1 -0
  104. package/dist/scripts/7376-0eb27a7b62.chunk.js +1 -0
  105. package/dist/scripts/7408-30188de55f.chunk.js +1 -0
  106. package/dist/scripts/8113-5dcecdc6f9.chunk.js +1 -0
  107. package/dist/scripts/8362-92af0d8f39.chunk.js +1 -0
  108. package/dist/scripts/8542-6117e3ca8a.chunk.js +1 -0
  109. package/dist/scripts/{4064-217e21dc03.chunk.js → 8591-b8bcd87d71.chunk.js} +1 -1
  110. package/dist/scripts/8726-d5e54aa139.chunk.js +1 -0
  111. package/dist/scripts/8727-aaf9baba79.chunk.js +1 -0
  112. package/dist/scripts/8762-c6dc9734c2.chunk.js +1 -0
  113. package/dist/scripts/8906-7724b68fdf.chunk.js +1 -0
  114. package/dist/scripts/8952-3295afb0b2.chunk.js +2 -0
  115. package/dist/scripts/9357-604f7dbafb.chunk.js +1 -0
  116. package/dist/scripts/9369-20f67977ae.chunk.js +2 -0
  117. package/dist/scripts/9383-b607778022.chunk.js +1 -0
  118. package/dist/scripts/9695-29895e2f41.chunk.js +1 -0
  119. package/dist/scripts/9927-889f09d139.chunk.js +1 -0
  120. package/dist/scripts/bundle-84dc154e7c.min.js +2 -0
  121. package/dist/scripts/{polyfills-a15c0386f5.min.js → polyfills-a3792d7e2d.min.js} +1 -1
  122. package/package.json +2 -7
  123. package/dist/css/101-library-editor-ea0aa41f12.chunk.css +0 -2
  124. package/dist/css/1086-library-editor-076ef8e022.chunk.css +0 -4
  125. package/dist/css/2692-library-editor-076ef8e022.chunk.css +0 -4
  126. package/dist/css/3087-library-editor-7c76d2234e.chunk.css +0 -4
  127. package/dist/css/5424-library-editor-cbb9c55dc8.chunk.css +0 -5
  128. package/dist/css/6732-library-editor-6233ce01e9.chunk.css +0 -6
  129. package/dist/css/708-library-editor-ce48b52d72.chunk.css +0 -7
  130. package/dist/css/8762-library-editor-076ef8e022.chunk.css +0 -4
  131. package/dist/css/8906-library-editor-076ef8e022.chunk.css +0 -4
  132. package/dist/css/library-editor-app-69756271a2.css +0 -62
  133. package/dist/scripts/1010-60f6dfd832.chunk.js +0 -1
  134. package/dist/scripts/1086-2682e6d3f7.chunk.js +0 -1
  135. package/dist/scripts/112-24c19e2cde.chunk.js +0 -1
  136. package/dist/scripts/1216-f3e3f911fa.chunk.js +0 -1
  137. package/dist/scripts/1224-3ad7211630.chunk.js +0 -1
  138. package/dist/scripts/1269-a34a1de36d.chunk.js +0 -1
  139. package/dist/scripts/1409-93a72ff5bf.chunk.js +0 -1
  140. package/dist/scripts/152-2a8a32c9e8.chunk.js +0 -2
  141. package/dist/scripts/1601-cfa68d5d16.chunk.js +0 -2
  142. package/dist/scripts/1703-0ee4d1051b.chunk.js +0 -1
  143. package/dist/scripts/1832-23fead57c5.chunk.js +0 -1
  144. package/dist/scripts/1876-a98a0d0a0b.chunk.js +0 -1
  145. package/dist/scripts/2417-d1a2c3b7e1.chunk.js +0 -1
  146. package/dist/scripts/243-2012c53e96.chunk.js +0 -1
  147. package/dist/scripts/2482-955e4b3615.chunk.js +0 -1
  148. package/dist/scripts/259-7d1d480f6e.chunk.js +0 -1
  149. package/dist/scripts/2601-c8a6cf71d8.chunk.js +0 -1
  150. package/dist/scripts/2644-4188284c06.chunk.js +0 -1
  151. package/dist/scripts/2648-10e901bc4c.chunk.js +0 -1
  152. package/dist/scripts/2692-438539ccbe.chunk.js +0 -1
  153. package/dist/scripts/2803-3cee0dd7a5.chunk.js +0 -1
  154. package/dist/scripts/2888-55edc16fd6.chunk.js +0 -1
  155. package/dist/scripts/299-eeaac48864.chunk.js +0 -1
  156. package/dist/scripts/2998-24191bc8ab.chunk.js +0 -1
  157. package/dist/scripts/3400-95d7a3a0d6.chunk.js +0 -1
  158. package/dist/scripts/343-4e17813e7a.chunk.js +0 -1
  159. package/dist/scripts/35-7bfbab50e6.chunk.js +0 -1
  160. package/dist/scripts/3551-5513258594.chunk.js +0 -1
  161. package/dist/scripts/3639-02abbd0b71.chunk.js +0 -1
  162. package/dist/scripts/3746-fab7340300.chunk.js +0 -1
  163. package/dist/scripts/376-98c734f74f.chunk.js +0 -1
  164. package/dist/scripts/3763-c5de5a36a1.chunk.js +0 -1
  165. package/dist/scripts/4201-6311ac5cac.chunk.js +0 -1
  166. package/dist/scripts/4245-6e9e71cc7d.chunk.js +0 -1
  167. package/dist/scripts/456-d5a07590b3.chunk.js +0 -1
  168. package/dist/scripts/4591-9e342f97bc.chunk.js +0 -1
  169. package/dist/scripts/4860-955b4bf901.chunk.js +0 -1
  170. package/dist/scripts/5046-19d7090284.chunk.js +0 -1
  171. package/dist/scripts/514-927a43219d.chunk.js +0 -1
  172. package/dist/scripts/5286-293188ce69.chunk.js +0 -1
  173. package/dist/scripts/5314-bd5f985235.chunk.js +0 -1
  174. package/dist/scripts/5412-95152820bb.chunk.js +0 -1
  175. package/dist/scripts/5418-f31f79952c.chunk.js +0 -1
  176. package/dist/scripts/5424-f53a7d8068.chunk.js +0 -1
  177. package/dist/scripts/546-9b17236feb.chunk.js +0 -1
  178. package/dist/scripts/5524-165e9fe50f.chunk.js +0 -1
  179. package/dist/scripts/5707-d7fa777817.chunk.js +0 -1
  180. package/dist/scripts/5747-0ab2cc3678.chunk.js +0 -1
  181. package/dist/scripts/5850-6391e3cda2.chunk.js +0 -1
  182. package/dist/scripts/6093-7e5c1af050.chunk.js +0 -1
  183. package/dist/scripts/61-30b83d9e41.chunk.js +0 -2
  184. package/dist/scripts/6352-aaaf02499b.chunk.js +0 -1
  185. package/dist/scripts/6427-ca580c2f5d.chunk.js +0 -1
  186. package/dist/scripts/6532-ffb2f40362.chunk.js +0 -2
  187. package/dist/scripts/6586-1d70947aa6.chunk.js +0 -2
  188. package/dist/scripts/6721-60208978c9.chunk.js +0 -1
  189. package/dist/scripts/6732-5bf9ec4e56.chunk.js +0 -1
  190. package/dist/scripts/6774-3cad51b5b7.chunk.js +0 -1
  191. package/dist/scripts/6788-6e4efcfd00.chunk.js +0 -1
  192. package/dist/scripts/7002-3686f9dcfb.chunk.js +0 -1
  193. package/dist/scripts/7053-38535c04ca.chunk.js +0 -1
  194. package/dist/scripts/7071-5a543a7eec.chunk.js +0 -1
  195. package/dist/scripts/708-9aa6428a97.chunk.js +0 -1
  196. package/dist/scripts/7190-d26b5ef34d.chunk.js +0 -1
  197. package/dist/scripts/7295-594d2f2def.chunk.js +0 -1
  198. package/dist/scripts/7376-baac126511.chunk.js +0 -1
  199. package/dist/scripts/7408-209544dca5.chunk.js +0 -1
  200. package/dist/scripts/8113-879f7b221a.chunk.js +0 -1
  201. package/dist/scripts/8362-e82bef3e07.chunk.js +0 -1
  202. package/dist/scripts/8542-776c339eeb.chunk.js +0 -1
  203. package/dist/scripts/8726-edded1064e.chunk.js +0 -1
  204. package/dist/scripts/8727-2e314f9301.chunk.js +0 -1
  205. package/dist/scripts/8762-4ee15995c8.chunk.js +0 -1
  206. package/dist/scripts/8906-3bde92a78d.chunk.js +0 -1
  207. package/dist/scripts/9357-c5c5984ec8.chunk.js +0 -1
  208. package/dist/scripts/9369-ef153a7fd3.chunk.js +0 -2
  209. package/dist/scripts/9383-b01e8ae3c8.chunk.js +0 -1
  210. package/dist/scripts/9695-a04e508364.chunk.js +0 -1
  211. package/dist/scripts/9927-a667775ac4.chunk.js +0 -1
  212. package/dist/scripts/bundle-5275a894a8.min.js +0 -2
  213. /package/dist/scripts/{152-2a8a32c9e8.chunk.js.LICENSE.txt → 152-3e03297486.chunk.js.LICENSE.txt} +0 -0
  214. /package/dist/scripts/{1934-cf53d84778.chunk.js.LICENSE.txt → 1934-55d1327eb7.chunk.js.LICENSE.txt} +0 -0
  215. /package/dist/scripts/{2802-31b24a8131.chunk.js.LICENSE.txt → 2802-a9de5e47dc.chunk.js.LICENSE.txt} +0 -0
  216. /package/dist/scripts/{3087-150643537b.chunk.js → 3087-c9b9c3e2ea.chunk.js} +0 -0
  217. /package/dist/scripts/{1601-cfa68d5d16.chunk.js.LICENSE.txt → 61-c2be868544.chunk.js.LICENSE.txt} +0 -0
  218. /package/dist/scripts/{6532-ffb2f40362.chunk.js.LICENSE.txt → 6532-bb34418e8b.chunk.js.LICENSE.txt} +0 -0
  219. /package/dist/scripts/{61-30b83d9e41.chunk.js.LICENSE.txt → 6586-f14cd28e96.chunk.js.LICENSE.txt} +0 -0
  220. /package/dist/scripts/{6586-1d70947aa6.chunk.js.LICENSE.txt → 8952-3295afb0b2.chunk.js.LICENSE.txt} +0 -0
  221. /package/dist/scripts/{9369-ef153a7fd3.chunk.js.LICENSE.txt → 9369-20f67977ae.chunk.js.LICENSE.txt} +0 -0
  222. /package/dist/scripts/{bundle-5275a894a8.min.js.LICENSE.txt → bundle-84dc154e7c.min.js.LICENSE.txt} +0 -0
@@ -0,0 +1 @@
1
+ (self.webpackChunk_clickview_library_editor=self.webpackChunk_clickview_library_editor||[]).push([[6352],{26328:function(e,t,i){"use strict";i.r(t),i.d(t,{AwaitingReviewView:function(){return P}});var n=i(39479),o=i(21679),r=i(57857),s=i(31647),a=i(70763),c=i(13809),l=i(57098),u=i(29457),p=i(85847),d=i(48404),h=i(19226),f=i(14129),v=i(7572),y=i(95920),g=i(82405),m=i(39090),b=i(29565),w=i(95061),C=i(71010),S=i.n(C);function O(e){return O="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},O(e)}function V(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,k(n.key),n)}}function k(e){var t=function(e){if("object"!=O(e)||!e)return e;var t=e[Symbol.toPrimitive];if(void 0!==t){var i=t.call(e,"string");if("object"!=O(i))return i;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}(e);return"symbol"==O(t)?t:t+""}function T(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){})))}catch(e){}return(T=function(){return!!e})()}function E(e){return E=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(e){return e.__proto__||Object.getPrototypeOf(e)},E(e)}function _(e,t){return _=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(e,t){return e.__proto__=t,e},_(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,i){return t=E(t),function(e,t){if(t&&("object"==O(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,T()?Reflect.construct(t,i||[],E(e).constructor):t.apply(e,i))}(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&&_(e,t)}(t,e),i=t,(C=[{key:"initialize",value:function(){this.bindListeners(),this.contentUpdatesDataService=o.u.getInstance(l.Or.ContentUpdates,this),this.videoDataService=o.u.getInstance(l.Or.Video,this)}},{key:"name",get:function(){return"AwaitingReviewView"}},{key:"title",get:function(){return r.T.getPhrase(this.lang,"title")}},{key:"lang",get:function(){return"contentUpdates.awaitingReview"}},{key:"channelName",get:function(){return"".concat(this.name).concat(this.cid)}},{key:"className",get:function(){return"bg-white rounded"}},{key:"template",get:function(){return S()}},{key:"regions",value:function(){return{header:{el:".header-region",replaceElement:!0},leftNav:{el:".left-nav-region",replaceElement:!0},listHeader:{el:".list-header-region",replaceElement:!0,partialLoading:u.LP.AwaitingReviewHeader},videos:{el:".video-list-region",replaceElement:!0,partialLoading:u.LP.VideoGroupList}}}},{key:"bindListeners",value:function(){this.listenTo(l.Vk.CONTENT_UPDATES,"".concat(l.M_.VIDEOS_TO_REVIEW,":sync"),this.render),this.listenTo(l.Vk.CONTENT_UPDATES,"".concat(l.M_.LIBRARY_REVIEW_SETTINGS,":sync"),this.render),this.listenTo(l.Vk.CONTENT_UPDATES,"".concat(l.M_.LIBRARY_REVIEW_SETTINGS,":error"),this.render),this.listenTo(l.Vk.RESTRICTED_VIDEO,"".concat(l.M_.VIDEOS_TO_REVIEW,":invalidate"),this.fetchVideos),this.listenTo(this.channelName,"approve:all",this.approveAllVideos),this.listenTo(this.channelName,"fetch:video:with:metadata",this.fetchVideoWithMetadata)}},{key:"approveAllVideos",value:function(){this.contentUpdatesDataService.approveAllVideos(n.bind(this.fetchVideos,this))}},{key:"redirectToPastReleases",value:function(){s.Q.C$.trigger({application:l.OV.CONTENT_UPDATES,action:l.eX.ContentUpdates.PAST_RELEASES},{replace:!0})}},{key:"getContentClassName",value:function(){var e="".concat(b.Z.content," border-start ").concat(b.Z.contentWithLeftNav);return this.videoCollection&&!this.videoCollection.length?e+=" d-inline-flex justify-content-center align-items-center":e+=" d-inline-block",e}},{key:"setVideosWithMetadata",value:function(){this.videoCollection&&!this.videosWithMetadata&&(this.videosWithMetadata=new a.t(this.videoCollection.map((function(e){return new p.n({id:e.get("id")})}))))}},{key:"renderHeader",value:function(){this.reviewSetting?this.showChildView("header",new v.u({activeTab:m.JI.AwaitingReview,reviewEnabled:this.reviewSetting.get("reviewPeriod")})):this.renderPartialLoading("header")}},{key:"renderLeftNav",value:function(){this.reviewSetting&&this.showChildView("leftNav",new y.m({supportSiteUrl:this.config.get("supportSiteUrl"),currentUser:this.currentUser}))}},{key:"renderListHeader",value:function(){this.videoCollection?this.videoCollection.length&&this.showChildView("listHeader",new f.U({collection:this.videoCollection,channelName:this.channelName})):this.renderPartialLoading("listHeader")}},{key:"renderVideos",value:function(){this.groupedVideoCollection?this.showChildView("videos",new g.D({collection:this.groupedVideoCollection,childOptions:{videoItemComponentType:c.UC.AwaitingReview,videosWithMetadata:this.videosWithMetadata,config:this.config,collectionViewChannel:this.channelName,currentUser:this.currentUser,libraries:this.libraries},emptyStateType:u.ub.AwaitingReview,emptyStateOptions:{heading:r.T.getPhrase(this.lang,"emptyStateHeading"),description:r.T.getPhrase(this.lang,"emptyStateDescription",{classNames:"disable-review info-link"})}})):this.renderPartialLoading("videos")}},{key:"fetchVideos",value:function(){this.videoCollection=this.contentUpdatesDataService.getVideosToReview(),this.videoCollection&&(this.setVideosWithMetadata(),this.groupedVideoCollection=m.hp.groupVideosByHostedLibrary(this.videoCollection))}},{key:"fetchVideoWithMetadata",value:function(e){var t=this;this.videoDataService.getVideo(e,(function(i){var n=t.videosWithMetadata.get(e);n&&(n.set(i.toJSON()),n.set({dataFetched:!0}))}))}},{key:"requiredResources",get:function(){return{config:d.p.config,currentUser:h.K.currentUser,libraries:w.T.libraries}}},{key:"onBeforeRender",value:function(){this.reviewSetting=this.contentUpdatesDataService.getLibraryReviewSettings(),this.fetchVideos(),this.reviewSetting&&!this.reviewSetting.get("reviewPeriod")&&this.redirectToPastReleases()}},{key:"viewOptions",value:function(){return{contentClass:this.getContentClassName()}}},{key:"onRender",value:function(){this.renderHeader(),this.renderLeftNav(),this.renderListHeader(),this.renderVideos()}}])&&V(i.prototype,C),Object.defineProperty(i,"prototype",{writable:!1}),i;var i,C}(s.Q.G7)},13809:function(e,t,i){"use strict";i.d(t,{UC:function(){return n.U}});var n=i(58688);i(19969),i(14898)},80867:function(e,t,i){"use strict";i.d(t,{Y:function(){return E}});var n=i(31647),o=i(52076),r=i(70065),s=i(50028),a=i(80758),c=i(10101),l=i(58688),u=i(37071),p=i(57098),d=i(29457),h=i(25887),f=i(30606),v=i.n(f);function y(e){return y="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},y(e)}function g(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function m(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,w(n.key),n)}}function b(e,t,i){return t&&m(e.prototype,t),i&&m(e,i),Object.defineProperty(e,"prototype",{writable:!1}),e}function w(e){var t=function(e){if("object"!=y(e)||!e)return e;var t=e[Symbol.toPrimitive];if(void 0!==t){var i=t.call(e,"string");if("object"!=y(i))return i;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}(e);return"symbol"==y(t)?t:t+""}function C(e,t,i){return t=O(t),function(e,t){if(t&&("object"==y(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,S()?Reflect.construct(t,i||[],O(e).constructor):t.apply(e,i))}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 V(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&&k(e,t)}function k(e,t){return k=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(e,t){return e.__proto__=t,e},k(e,t)}var T=function(e){function t(e){return g(this,t),C(this,t,[e])}return V(t,e),b(t,[{key:"name",get:function(){return"VideoItemListComponent"}},{key:"childView",get:function(){return u.j}},{key:"childViewOptions",get:function(){var e=this;return function(t,i){return{componentType:t.get("status")===s.X.Processing?l.U.ProcessingVideo:e.options.videoItemComponentType,videoWithMetadata:e.options.videosWithMetadata&&e.options.videosWithMetadata.get(t.get("id")),allowBulk:e.options.allowBulk,collectionIdentifier:e.options.collectionIdentifier,application:e.options.application,pendingItems:e.options.pendingItems,config:e.options.config,sourceMetadataOptions:e.options.sourceMetadataOptions,collectionViewChannel:e.options.collectionViewChannel,customerHasLocalCache:e.options.customerHasLocalCache,customerHasExchange:e.options.customerHasExchange,customerHasCustomLibrary:e.options.customerHasCustomLibrary,analyticsOptions:e.options.analyticsOptions,videoCollectionSource:e.options.videoCollectionSource,currentUser:e.options.currentUser,playerApiUrl:e.options.playerApiUrl,createViewKey:e.options.createViewKey,isLastItem:!e.options.hasCursors&&i===e.collection.length-1,libraries:e.options.libraries,products:e.options.products}}}}])}(n.Q.$W),E=function(e){function t(e){return g(this,t),C(this,t,[e])}return V(t,e),b(t,[{key:"name",get:function(){return"VideoListView"}},{key:"props",get:function(){return["collectionIdentifier"]}},{key:"template",get:function(){return v()}},{key:"defaults",get:function(){return{videoItemComponentType:l.U.Base,allowBulk:!1,emptyState:d.ub.Default,videoCollectionSource:h.x_.Folder}}},{key:"behaviors",get:function(){var e=[{behaviorClass:c.Im,selector:".lazy-img",minBrowserSupportVersion:p.v9}];return this.options.showEmptyState&&e.push({behaviorClass:a.o,region:"videos",type:this.options.emptyStateType,componentOptions:this.options.emptyStateOptions,emptyStateComponents:p.aW}),e}},{key:"regions",value:function(){return{videos:".videos-region"}}},{key:"onRender",value:function(){var e=new T({collection:this.collection,videosWithMetadata:this.options.videosWithMetadata,videoItemComponentType:this.options.videoItemComponentType,allowBulk:this.options.allowBulk,collectionIdentifier:this.collectionIdentifier,application:this.options.application,pendingItems:this.options.pendingItems,config:this.options.config,sourceMetadataOptions:this.options.sourceMetadataOptions,collectionViewChannel:this.options.collectionViewChannel,customerHasLocalCache:this.options.customerHasLocalCache,customerHasExchange:this.options.customerHasExchange,customerHasCustomLibrary:this.options.customerHasCustomLibrary,analyticsOptions:o.k.mergeOptions(this.options.analyticsOptions,{location:r.LZ.VideoListItem,entity:r.py.Video}),videoCollectionSource:this.options.videoCollectionSource,currentUser:this.options.currentUser,playerApiUrl:this.options.playerApiUrl,createViewKey:this.options.createViewKey,hasCursors:this.options.hasCursors,libraries:this.options.libraries,products:this.options.products});this.showChildView("videos",e)}}])}(n.Q.wA)},71010:function(e,t,i){var n=i(32227);e.exports=(n.default||n).template({compiler:[8,">= 4.3.0"],main:function(e,t,i,n,o){var r;return e.propertyIsEnumerable,'<div class="header-region"></div>\n<div class="left-nav-region"></div><div class="'+e.escapeExpression(e.lambda(null!=(r=null!=t?t.options:t)?r.contentClass:r,t))+'">\n<div class="list-header-region"></div>\n<div class="video-list-region"></div>\n</div>'},useData:!0})},30606:function(e,t,i){var n=i(32227);e.exports=(n.default||n).template({compiler:[8,">= 4.3.0"],main:function(e,t,i,n,o){return'<div class="videos-region"></div>'},useData:!0})}}]);
@@ -0,0 +1 @@
1
+ "use strict";(self.webpackChunk_clickview_library_editor=self.webpackChunk_clickview_library_editor||[]).push([[6427],{54096:function(e,t,i){i.d(t,{G:function(){return a}});var n=i(1024),r=i(21679);function a(e){var t,i;return t=e,i=r.u.getInstance(t),n.useEffect((function(){return function(){r.u.releaseInstance(t)}})),i}},38182:function(e,t,i){i.d(t,{q:function(){return l}});var n=i(1024),r=i.n(n),a=i(68003),o=i(88483),c=i(87013),u=i(63791),s=i(39396),d={avatar:"Gvwzj",dot:"JJHBJ"};function l(e){var t,i,n=e.imageUrl||(t=e.imageCdnUrl,(i=e.initials)?c.j.createUrl(a._.safeUrlConcat(t,"/v1/profile-images?initials=".concat(i)),{size:o.h2.Small}):"");return r().createElement("div",{className:"position-relative h-100 w-100"},e.showAnonymousUser?r().createElement("div",{className:"".concat(d.avatar," ").concat((null==e?void 0:e.extraClasses)||""," bg-gray-700 text-light")},r().createElement(s.x,{svgName:u.vn.Anonymous,size:e.anonymousSvgSize||s.S.Large,className:"svg-container w-100 h-100"})):r().createElement("div",{className:"".concat(d.avatar," ").concat((null==e?void 0:e.extraClasses)||""),style:{backgroundImage:"url('".concat(n,"')")}}," "),e.showDot&&r().createElement("div",{className:"".concat(d.dot," rounded-circle bg-danger")}))}},90547:function(e,t,i){var n;i.d(t,{r:function(){return n}}),function(e){e.XS="(max-width: 575px)",e.SM="(min-width: 576px) and (max-width: 767px)",e.MD="(min-width: 768px) and (max-width: 991px)",e.LG="(min-width: 992px)",e.XL="(min-width: 1200px)",e.XXL="(min-width: 1440px)",e.SMDown="(max-width: 576px)",e.MDDown="(max-width: 768px)",e.LGDown="(max-width: 992px)",e.XLDown="(max-width: 1200px)"}(n||(n={}))},34254:function(e,t,i){var n;i.d(t,{r:function(){return n}}),function(e){e[e.FilterOut=0]="FilterOut",e[e.StripMetadata=1]="StripMetadata"}(n||(n={}))},87648:function(e,t,i){var n;i.d(t,{c:function(){return n}}),function(e){e.Custom="custom",e.User="year_group"}(n||(n={}))},90335:function(e,t,i){var n;i.d(t,{D:function(){return n}}),function(e){e.Newest="newest",e.Oldest="oldest",e.RecentlyAdded="recently_added",e.AtoZ="atoz",e.ZtoA="ztoa",e.Series="series"}(n||(n={}))},332:function(e,t,i){i.d(t,{e:function(){return c}});var n=i(2248),r=i(68003),a=i(84657),o=i(34254),c={clip:function(e,t){return{key:"clip:".concat(e,":").concat(t),url:r._.urlBuilder("{gateway}/v1/objects/".concat(e),{query:a.v.CLIP,permissionFilterOption:t})}},videoClips:function(e,t,i){return{key:"video:".concat(e,":clips:").concat(t,":").concat(i),url:r._.urlBuilder("{gateway}/v1/objects/".concat(e,"/clips"),{query:a.v.CLIP_COLLECTION,permissionFilterOption:t,cursor:i})}},clipWithAllInteractives:function(e,t){return{key:"clip:".concat(e,":").concat(t,":interactives"),url:r._.urlBuilder("{gateway}/v1/objects/".concat(e),{query:"".concat(a.v.CLIP,",interactives{status:[0,1]}"),permissionFilterOption:t}),normalize:!1}},publicClip:function(e,t,i,n){return{key:"clip:".concat(e,":public:").concat(t),url:r._.urlBuilder("/api/objects/".concat(e),{query:"_parentVideo,_canBeConsumed,_thumbnail",permissionFilterOption:o.r.StripMetadata,shareId:t}),bootstrapName:"shared:object:".concat(e),success:i,error:n}},sharedClip:function(e,t,i,n){return{key:"shared:clip:".concat(e),url:r._.urlBuilder("/api/objects/".concat(e),{shareId:t,query:a.v.CLIP}),success:i,error:n}},createClip:function(e,t,i,r,a){return{key:"create:clip",url:"{gateway}/v1/objects/".concat(e,"/clips"),data:t,type:n.k.POST,invalidationKeys:["videos:".concat(e),"my:videos"],success:i,error:r,always:a}},updateClip:function(e,t,i,r,a){return{key:"update:clip",url:"{gateway}/v1/objects/".concat(e),data:t,type:n.k.PUT,success:i,error:r,always:a}},deleteClip:function(e,t,i,r,a){return{key:"delete:clip",url:"{gateway}/v1/objects/".concat(e),type:n.k.DELETE,invalidationKeys:["videos:".concat(t),"my:videos","videos"],success:i,error:r,always:a}}}},91432:function(e,t,i){i.d(t,{b:function(){return c}});var n=i(2248),r=i(68003),a=i(84657),o=i(34254),c={interactiveMetadata:function(e,t){return{url:r._.urlBuilder("{gateway}/v1/objects/".concat(e),{query:a.v.INTERACTIVE,permissionFilterOption:t}),key:"interactive:metadata:".concat(e,":").concat(t)}},videoInteractives:function(e,t,i){return{key:"video:".concat(e,":interactives:").concat(t,":").concat(i),url:r._.urlBuilder("{gateway}/v1/objects/".concat(e,"/interactives"),{query:a.v.INTERACTIVE_COLLECTION,cursor:i}),publicUrl:r._.urlBuilder("/api/objects/".concat(e,"/interactives"),{query:a.v.INTERACTIVE_COLLECTION,cursor:i})}},sharedInteractiveMetadata:function(e,t,i,n){return{url:r._.urlBuilder("/api/objects/".concat(e),{shareId:t,query:a.v.INTERACTIVE}),key:"shared:interactive:metadata:".concat(e),success:i,error:n}},publicInteractiveMetadata:function(e,t,i,n){return{url:r._.urlBuilder("/api/objects/".concat(e),{query:"_parentVideo[rating],_canBeConsumed,_thumbnail",permissionFilterOption:o.r.StripMetadata,shareId:t}),key:"interactive:metadata:".concat(e,":public:").concat(t),bootstrapName:"shared:object:".concat(e),success:i,error:n}},interactive:function(e){return{url:"/api/domain/v1/interactives/".concat(e),key:"interactive:".concat(e)}},createInteractive:function(e,t,i){return{url:"/api/domain/v1/interactives",key:"create:interactive",type:n.k.POST,invalidationKeys:["my:videos"],data:e,success:t,error:i}},createInteractiveMetadata:function(e,t,i,r){return{url:"{gateway}/v1/objects/".concat(e,"/interactives"),key:"create:interactive:metadata",type:n.k.POST,data:t,success:i,error:r}},updateInteractive:function(e,t,i,r){return{url:"/api/domain/v1/interactives/".concat(e),key:"update:interactive",type:n.k.PUT,data:t,success:i,error:r,formatData:function(){return t}}},updateInteractiveMetadata:function(e,t,i,r){return{url:"{gateway}/v1/objects/".concat(e),key:"update:interactive:metadata",type:n.k.PUT,data:t,success:i,error:r}},interactiveResultSet:function(e,t){return{url:"/api/domain/v1/analytics/interactives/".concat(e,"/metadata/").concat(t),key:"interactive:result:set:".concat(e,":").concat(t)}},copyInteractive:function(e,t,i){return{url:"/api/domain/v1/interactives/".concat(e,"/copy"),key:"copy:interactive",type:n.k.POST,invalidationKeys:["interactive:".concat(e),"my:videos"],success:t,error:i}},deleteInteractiveMetadata:function(e,t,i){return{url:"{gateway}/v1/objects/".concat(e),key:"delete:interactive",type:n.k.DELETE,invalidationKeys:["interactive:".concat(e),"my:videos","videos"],success:t,error:i}},removeInteractiveMetadata:function(e){var t=e.libraryId,i=e.categoryId,a=e.interactiveMetadataId;return{url:r._.urlBuilder("/api/domain/v1/libraries/".concat(t,"/videos"),{categoryId:i,videoIds:a}),key:"remove:interactive:metadata:".concat(a),type:n.k.DELETE,invalidationKeys:["interactive:".concat(a),"my:videos","videos"]}},contributeToCommunity:function(e){return{url:"/api/domain/v2/interactives/".concat(e,"/contribute"),key:"contribute:interactive",type:n.k.POST}},revokefromCommunity:function(e){return{url:"/api/domain/v2/interactives/".concat(e,"/contribute"),key:"contribute:interactive",type:n.k.DELETE}},isContributed:function(e){return{url:"/api/domain/v2/interactives/".concat(e,"/contributed"),key:"iscontributed:".concat(e),normalize:!1}},updateInteraction:function(e){return{url:"/api/domain/v1/interactions/bulk/".concat(e.id),key:"contribute:interactive",data:e,type:n.k.PUT,invalidationKeys:["interactive:".concat(e.interactiveId)]}}}},77131:function(e,t,i){i.d(t,{R:function(){return m}});var n,r=i(2248),a=i(68003),o=i(84657),c=i(50028),u=i(74421),s=i(34254);!function(e){e.Series="series",e.Playlist="playlist",e.Widget="widget",e.Folder="category",e.CategoryTree="categoryTree"}(n||(n={}));var d=i(15970),l=function(e,t){return a._.urlBuilder("/api/objects/".concat(e),{shareId:t,query:o.v.VIDEO})},v=function(e,t){return a._.urlBuilder("/api/objects/".concat(e),{query:"thumbnail,_canBeConsumed,series,season,rating,libraries{typeId:[17]}",permissionFilterOption:s.r.StripMetadata,shareId:t})},p=function(e){return a._.urlBuilder("{gateway}/v1/objects",{"query.video":o.v.VIDEO_COLLECTION,"query.clip":o.v.CLIP_COLLECTION,"query.interactive":o.v.INTERACTIVE_COLLECTION,id:e})},y=function(e){var t=e.videoId,i=e.context,r=e.collectionId,c=e.moviesAndTv,u={videoId:t,limit:e.limit,query:o.v.VIDEO_COLLECTION};return i&&(i===n.Widget?u["context.widgetId"]=r:(u["context.collectionType"]=i,u["context.collectionId"]=r)),c&&(u["context.moviesAndTv"]=!0),a._.urlBuilder("{gateway}/v1/suggestions/related-videos",u)},m={video:function(e,t){return{url:a._.urlBuilder("{gateway}/v1/objects/".concat(e),{query:o.v.VIDEO,permissionFilterOption:t}),publicUrl:a._.urlBuilder("/api/objects/".concat(e),{query:o.t.VIDEO,permissionFilterOption:t}),key:"videos:".concat(e,":").concat(t)}},publicVideo:function(e,t,i,n){return{url:v(e,t),key:"videos:".concat(e,":public:").concat(t),bootstrapName:"shared:object:".concat(e),success:i,error:n}},sharedVideo:function(e,t,i,n){return{url:l(e,t),key:"shared:video:".concat(e),success:i,error:n}},myVideos:function(e,t){var i=o.v.VIDEO_COLLECTION,n=o.v.CLIP_COLLECTION,r=o.v.INTERACTIVE,d="videos[".concat(i,"]{libraries.typeid:").concat(u.E.WorkspaceCollection,"}"),l="clips[".concat(n,"]"),v="interactives[".concat(r,"]{status:[").concat(c.X.Published,",").concat(c.X.Draft,"]}"),p={query:"(".concat(d,"|").concat(l,"|").concat(v,"){orderbydesc:id}"),permissionFilterOption:s.r.StripMetadata};return t&&(p.cursor=t),{url:a._.urlBuilder("{gateway}/v1/objects/".concat(e,"/members"),p),key:"my:videos:".concat(t)}},videos:function(e,t){return{url:p(e),key:"videos:by:id:".concat(e.join(",")),success:t}},watchHistoryVideos:function(e,t){return{url:p(e),key:"watch:history:videos:by:id:".concat(e.join(",")),success:t}},updateVideo:function(e,t,i,n,a){return{key:"update:video:".concat(e),url:"{gateway}/v1/objects/".concat(e),type:r.k.PUT,data:t,success:i,error:n,always:a}},videoRatings:function(e,t){var i=e.map((function(e){return"id=".concat(e)}));if(i.length)return{url:"/api/domain/v2/objects?query=rating&".concat(i.join("&")),key:"video:ratings:by:id:".concat(e.join(",")),normalizeOptions:{namespace:t}}},videoMixinAssocs:function(e,t){if(e.map((function(e){return"id=".concat(e)})).length)return{url:a._.urlBuilder("{gateway}/v1/objects",{query:"interactives{limit:100},resources{limit:100},links{limit:100},glance",id:e}),publicUrl:a._.urlBuilder("/api/objects",{query:"interactives{limit:100},resources{limit:100},links{limit:100},glance",id:e}),key:"video:mixin:assocs:".concat(e.join(",")),normalizeOptions:{namespace:t}}},getRestrictions:function(e){var t=e.slice().sort();return{url:"/api/domain/v1/restrictedobjects"+"?objectTypeId=".concat(u.E.Video).concat(t.map((function(e){return"&objectId=".concat(e)})).join("")),key:"restrictions:".concat(t.join(",")),normalizeOptions:{namespace:"domain",idAttribute:"objectId"}}},delete:function(e,t,i){return{url:"{gateway}/v1/objects/".concat(e),key:"delete:video:".concat(e),type:r.k.DELETE,success:t,error:i,invalidationKeys:["videos","search"]}},deleteBulk:function(e,t,i,n,a){var o=e.map((function(e){return"videoIds=".concat(e)})).join("&"),c=["categoryId=".concat(i),"".concat(o)].join("&");return{url:"/api/domain/v1/libraries/".concat(t,"/videos?").concat(c),key:"delete:bulk:video:".concat(e.join(":"),":").concat(t,":").concat(i),type:r.k.DELETE,success:n,error:a,invalidationKeys:["videos","search"]}},relatedVideos:function(e){var t=e.videoId,i=e.context,n=e.collectionId,r=e.moviesAndTv;return{url:y(e),key:"related:videos:".concat(t,":").concat(i,":").concat(n,":").concat(r)}},collectionVideos:function(e,t,i,n,r,u){var l=d.d.getVideoSortParam(t),v=o.v.VIDEO_COLLECTION,p=o.v.CLIP_COLLECTION,y=o.v.INTERACTIVE,m="videos[".concat(v,"]"),f="clips[".concat(p,"]"),g="interactives[".concat(y,"]{status:[").concat(c.X.Published,",").concat(c.X.Draft,"]}"),b=Object.assign({query:"(".concat(m,"|").concat(f,"|").concat(g,")").concat(l?"{".concat(l,"}"):""),permissionFilterOption:s.r.FilterOut},i?{cursor:i}:{}),C=["folder","videos",e,i,t].filter((function(e){return!!e})).join(":");return{url:a._.urlBuilder("{gateway}/v1/objects/".concat(e,"/members"),b),key:C,success:n,error:r,always:u}},pointsOfInterest:function(e,t,i,n,r){var o={query:"{limit:100}",cursor:t};return{url:a._.urlBuilder("{gateway}/v1/objects/".concat(e,"/pointsofinterest"),o),publicUrl:a._.urlBuilder("/api/objects/".concat(e,"/pointsofinterest"),o),key:"pointsofinterest:".concat(e).concat(t?":".concat(t):""),success:i,error:n,always:r}},regionAlternatives:function(e,t,i,n){return{url:"/api/objects/videos/".concat(e,"/region-alternatives"),publicUrl:"/api/objects/videos/".concat(e,"/region-alternatives"),key:"video:regionAlternatives:".concat(e),normalize:!1,success:t,error:i,always:n}}}},2491:function(e,t,i){i.d(t,{Z:function(){return o}});var n=i(92159),r=i(21186),a=i(54096);function o(){var e=(0,a.G)(n.P.ALERT);return{success:function(t){e.success(t)()},error:function(t){e.error(t)()},warning:function(t){e.createAlert({type:r.NK.Warning,heading:r.R6.Warning,message:t})}}}},38e3:function(e,t,i){i.d(t,{G:function(){return r}});var n=i(74421),r={isType:function(e,t){var i;return(null==e?void 0:e.typeId)?e.typeId===t:(null===(i=null==e?void 0:e.type)||void 0===i?void 0:i.toLowerCase())===n.E[t].toLowerCase()},isResource:function(e){return r.isType(e,n.E.Resource)},isClassification:function(e){return"Subject"===e.type}}},45428:function(e,t,i){i.d(t,{l:function(){return m}});var n=i(57857),r=i(56285),a=i(7121),o=i(87648),c=i(63791);function u(e){return u="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},u(e)}function s(e,t,i){return(t=function(e){var t=function(e){if("object"!=u(e)||!e)return e;var t=e[Symbol.toPrimitive];if(void 0!==t){var i=t.call(e,"string");if("object"!=u(i))return i;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}(e);return"symbol"==u(t)?t:t+""}(t))in e?Object.defineProperty(e,t,{value:i,enumerable:!0,configurable:!0,writable:!0}):e[t]=i,e}var d=n.T.encloseNamespace("shared.shared-utils"),l=s(s({},o.c.Custom,a.Z.restrictionBadgeCustom),o.c.User,a.Z.restrictionBadgeUser),v=s(s({},o.c.Custom,c.vn.Timer),o.c.User,c.vn.Lock),p=s(s({},o.c.Custom,"restrictionCustom"),o.c.User,"restrictionYearGroup"),y=s(s({},o.c.Custom,200),o.c.User,100),m={mapRestrictionToClass:function(e){var t;if(!(null===(t=null==e?void 0:e.value)||void 0===t?void 0:t.length))return"";var i=m.getWeightedRestriction(e.value);return l[i.type]},mapRestrictionToSvg:function(e){var t;if(!(null===(t=null==e?void 0:e.value)||void 0===t?void 0:t.length))return c.vn.Lock;var i=m.getWeightedRestriction(e.value);return v[i.type]},mapRestrictionToText:function(e,t){var i;if(!(null===(i=null==e?void 0:e.value)||void 0===i?void 0:i.length)||!(null==t?void 0:t.length))return"";var n=m.getWeightedRestriction(e.value),r=t.find((function(e){return e.value===n.yearGroup})),a=p[n.type];if(n.type===o.c.User)return null===n.yearGroup?d("restrictionStaff"):r?1===t.length?d("restrictionStudents"):d(a,{yearGroup:r.name}):"";if(n.type===o.c.Custom){var c=m.getRestrictionDuration(n);return c?d(a,{duration:c,smartCount:c}):d("restrictionCustomLessThanDay",{duration:c,smartCount:1})}return""},getWeightedRestriction:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"highest";if(null==e?void 0:e.length)return 1===e.length?e[0]:e.reduce((function(e,i){var n=y[e.type],r=y[i.type];return"highest"===t&&n>r||"lowest"===t&&n<r?e:i}))},getRestrictionByType:function(e,t){if(!m.hasRestrictions(e))return null;var i=Array.isArray(t)?t:[t],n=e._restrictions.value.filter((function(e){return i.includes(e.type)}));return m.getWeightedRestriction(n)},getRestrictionDuration:function(e){if(e.type===o.c.Custom&&e.expiresOn){var t=r.O.convertUTCToLocal(e.expiresOn);if(t)return r.O.diffBetween(t,new Date,"day")}},hasCustomRestriction:function(e){return!!m.getRestrictionByType(e,[o.c.Custom])},hasRestrictions:function(e){var t,i;return!!(null===(i=null===(t=null==e?void 0:e._restrictions)||void 0===t?void 0:t.value)||void 0===i?void 0:i.length)}}},12927:function(e,t,i){i.d(t,{M:function(){return b}});var n,r=i(11306),a=i(57857),o=i(31647),c=i(56285),u=i(70065);!function(e){e.Screenrights="screenrights",e.Era="era",e.ClickView="clickview"}(n||(n={}));var s=i(50028),d=i(74421),l=i(87648),v=i(332),p=i(91432),y=i(77131),m=i(45428),f=i(13034),g=a.T.encloseNamespace("shared.shared-utils"),b={isVideo:function(e){return(null==e?void 0:e.typeId)===d.E.Video},isClip:function(e){return(null==e?void 0:e.typeId)===d.E.Clip},isInteractive:function(e){return(null==e?void 0:e.typeId)===d.E.Interactive},isVideoTypeArchived:function(e){return(null==e?void 0:e.status)===s.X.Archived},isVideoType:function(e){return b.isVideo(e)||b.isInteractive(e)||b.isClip(e)},hasSeries:function(e){var t;return!!(null===(t=null==e?void 0:e.series)||void 0===t?void 0:t.id)},showVideoGuidance:function(e){return!e(f.C.StudentExperience)},showInteractivesGuidance:function(e){var t,i;return!(!e||b.isInteractive(e)||!(null===(i=null===(t=e.interactives)||void 0===t?void 0:t.data)||void 0===i?void 0:i.length))},showResourcesGuidance:function(e){var t,i,n,r;return!(!e||b.isInteractive(e)||!(((null===(i=null===(t=e.resources)||void 0===t?void 0:t.data)||void 0===i?void 0:i.length)||0)+((null===(r=null===(n=e.links)||void 0===n?void 0:n.data)||void 0===r?void 0:r.length)||0)))},getVideoProgress:function(e){var t,i;return(null==e?void 0:e.lastProgressPoint)?null==e?void 0:e.lastProgressPoint:(null===(t=null==e?void 0:e._videoProgress)||void 0===t?void 0:t.progress)?null===(i=null==e?void 0:e._videoProgress)||void 0===i?void 0:i.progress:0},getThumbnail:function(e){var t,i,n;return e?b.isVideo(e)?e.thumbnail:(null==e?void 0:e._thumbnail)?e._thumbnail:b.isClip(e)?e.thumbnail||(null===(t=e._parentVideo)||void 0===t?void 0:t.thumbnail):b.isInteractive(e)?(null===(i=e._parentVideo)||void 0===i?void 0:i.thumbnail)||(null===(n=e._parentClip)||void 0===n?void 0:n.thumbnail):void 0:null},getDuration:function(e){var t,i;if(e){if(b.isVideo(e))return e.duration;if(b.isInteractive(e)){if(null===(t=e._parentClip)||void 0===t?void 0:t.id)return 1e3*(e._parentClip.endTime-e._parentClip.startTime);if(null===(i=e._parentVideo)||void 0===i?void 0:i.duration)return e._parentVideo.duration}return b.isClip(e)?1e3*(e.endTime-e.startTime):void 0}},getAnalyticsEntity:function(e){return b.isVideo(e)?u.py.Video:b.isInteractive(e)?u.py.Interactive:b.isClip(e)?u.py.Clip:void 0},getAnalyticsData:function(e){var t,i,n,r,a,o,c=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};if(b.isVideo(e))return Object.assign(Object.assign({},c||{}),{id:e.id,name:e.name});if(b.isClip(e)){var u=Object.assign(Object.assign({},c||{}),{id:e.id,name:e.name});return(null===(t=e._parentVideo)||void 0===t?void 0:t.id)&&(u.video={id:null===(i=e._parentVideo)||void 0===i?void 0:i.id,name:e._parentVideo.name}),u}var s=Object.assign(Object.assign({},c),{id:e.id,interactiveId:e.interactiveId,name:e.name,status:e.status,originType:e.originType});return(null===(n=null==e?void 0:e._parentClip)||void 0===n?void 0:n.id)&&(s.clip={id:null===(r=null==e?void 0:e._parentClip)||void 0===r?void 0:r.id,name:null==e?void 0:e._parentClip.name}),(null===(a=null==e?void 0:e._parentVideo)||void 0===a?void 0:a.id)&&(s.video={id:null===(o=null==e?void 0:e._parentVideo)||void 0===o?void 0:o.id,name:null==e?void 0:e._parentVideo.name}),s},getCanBeConsumed:function(e){var t,i;return e&&b.isVideoType(e)?e._canBeConsumed?{canNavigate:"login-required"===(null===(t=e._canBeConsumed)||void 0===t?void 0:t.reason)&&b.isVideo(e)||!0===e._canBeConsumed.value,canConsume:e._canBeConsumed.value,reason:null===(i=e._canBeConsumed)||void 0===i?void 0:i.reason}:{canNavigate:!0,canConsume:!0}:{canNavigate:!1,canConsume:!1}},getPrivacyReasoning:function(e){var t,i=arguments.length>1&&void 0!==arguments[1]&&arguments[1],n=b.getCanBeConsumed(e),r=n.canConsume,a=n.canNavigate,o=n.reason,c=function(){return b.isClip(e)?g("clipLoginRequired"):b.isInteractive(e)?g("interactiveLoginRequired"):g("videoLoginRequired")};if(!r&&!a){if(i)return c();switch(o){case"rating-not-allowed":return g("ratingNotAllowed");case"video-deleted":return b.isClip(e)?g("clipParentDeleted"):b.isInteractive(e)?g("interactiveParentDeleted"):g("videoDeleted");case"clickview-private":return g("clickViewPrivate");case"private":default:return g("genericCannotAccess");case"login-required":return c();case"restricted-access":var u=m.l.getWeightedRestriction(null===(t=e._restrictions)||void 0===t?void 0:t.value);return(null==u?void 0:u.type)===l.c.Custom?g("awaitingApproval"):g("restrictedAccess")}}return b.isInteractive(e)&&e.status===s.X.Draft?g("draftInteractive"):""},getTitle:function(e){if(e.name)return b.isInteractive(e)&&e.status===s.X.Draft?g("draftInteractiveTitle",{name:e.name}):e.name;var t=b.getCanBeConsumed(e),i=t.canConsume,n=t.reason;return g(i||"private"!==n?i||"video-deleted"!==n?"privateVideo":"videoUnavailable":"privateVideo")},getParentVideo:function(e){return b.isVideo(e)?e:b.isClip(e)||b.isInteractive(e)?e._parentVideo:void 0},getRating:function(e){var t;return b.isVideo(e)?e.rating:null===(t=null==e?void 0:e._parentVideo)||void 0===t?void 0:t.rating},getVideoRequest:function(e,t,i){if(i){switch(t){case d.E.Video:return y.R.sharedVideo(e,i);case d.E.Clip:return v.e.sharedClip(e,i);case d.E.Interactive:return p.b.sharedInteractiveMetadata(e,i)}o.Q.Ry.throw(new r.H("Unsupported master type"))}switch(t){case d.E.Video:return y.R.video(e);case d.E.Clip:return v.e.clip(e);case d.E.Interactive:return p.b.interactiveMetadata(e)}o.Q.Ry.throw(new r.H("Unsupported master type"))},isBroadcast:function(e){var t,i;return!!(null===(i=null===(t=null==e?void 0:e.contentLicences)||void 0===t?void 0:t.data)||void 0===i?void 0:i.some((function(e){return e.systemName===n.Era||e.systemName===n.Screenrights})))},getReleaseDate:function(e){return e&&e.dateReleased&&b.isBroadcast(e)?c.O.format(e.dateReleased,"DD/MM/YYYY"):""},canViewOriginalVideo:function(e){var t,i;return!!(null===(i=null===(t=null==e?void 0:e._parentVideo)||void 0===t?void 0:t._canBeConsumed)||void 0===i?void 0:i.value)},getTrackingCode:function(e){return b.isVideo(e)?e.trackingCode:b.isClip(e)||b.isInteractive(e)?e._parentVideo.trackingCode:void 0},isInExchange:function(e){var t,i;return!!(null===(i=null===(t=null==e?void 0:e.libraries)||void 0===t?void 0:t.data)||void 0===i?void 0:i.some((function(e){return e.typeId===d.E.ExchangeCollection})))},canViewUploadDate:function(e){return!(!e||!e.dateCreated||!e._isClickViewCurated||e._isClickViewCurated.value)}}},15970:function(e,t,i){i.d(t,{d:function(){return o}});var n=i(4705),r=i(90335),a=r.D.RecentlyAdded,o={getValidSortTypeFromParam:function(e){return Object.values(r.D).includes(e)?e:r.D.Newest},getOrSetSortType:function(e,t,i){var r=function(e){return"video:sort:".concat(e)}(e);return!t&&n.SG.cacheExists(r)||n.SG.cacheSet(r,t||i||a),t||(t=n.SG.cacheGet(r)),t},getVideoSortParam:function(e){switch(e){case r.D.AtoZ:return"orderby:name";case r.D.ZtoA:return"orderbydesc:name";case r.D.Newest:return"orderbydesc:datecreated";case r.D.Oldest:return"orderby:datecreated";case r.D.RecentlyAdded:return"orderbydesc:timestamp";case r.D.Series:return"orderby:seriessort";default:return}}}},7121:function(e,t){t.Z={minHeight:"jEh7m",restrictionBadgeCustom:"WQ2eS",restrictionBadgeUser:"z4DeQ",streamable:"D_2nt"}}}]);