@clickview/library-editor 1.5.0 → 1.5.1-rc.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (245) hide show
  1. package/dist/bundles.json +3 -3
  2. package/dist/css/1086-library-editor-968a46a22b.chunk.css +8 -0
  3. package/dist/css/1409-library-editor-c2f01466c5.chunk.css +2 -0
  4. package/dist/css/1832-library-editor-761fcb8755.chunk.css +2 -0
  5. package/dist/css/243-library-editor-ef57ff2380.chunk.css +4 -0
  6. package/dist/css/2526-library-editor-4e1576c40b.chunk.css +32 -0
  7. package/dist/css/2692-library-editor-968a46a22b.chunk.css +8 -0
  8. package/dist/css/3427-library-editor-d2c6b60f4b.chunk.css +18 -0
  9. package/dist/css/3803-library-editor-780ab340b7.chunk.css +28 -0
  10. package/dist/css/409-library-editor-38562d76cd.chunk.css +10 -0
  11. package/dist/css/4198-library-editor-b1bd4cf413.chunk.css +2 -0
  12. package/dist/css/4269-library-editor-deb40a91d3.chunk.css +14 -0
  13. package/dist/css/435-library-editor-cc1aed9a29.chunk.css +10 -0
  14. package/dist/css/4353-library-editor-ab9b6e56f4.chunk.css +8 -0
  15. package/dist/css/4463-library-editor-31ad107af8.chunk.css +30 -0
  16. package/dist/css/469-library-editor-e4fb95eadc.chunk.css +80 -0
  17. package/dist/css/4810-library-editor-f78ee0ac30.chunk.css +24 -0
  18. package/dist/css/4860-library-editor-d2f7f18ab7.chunk.css +2 -0
  19. package/dist/css/5047-library-editor-616fd087e9.chunk.css +22 -0
  20. package/dist/css/514-library-editor-58793ed69e.chunk.css +2 -0
  21. package/dist/css/5248-library-editor-673111a906.chunk.css +30 -0
  22. package/dist/css/5356-library-editor-84c7439a3a.chunk.css +32 -0
  23. package/dist/css/5624-library-editor-6d43685081.chunk.css +14 -0
  24. package/dist/css/5747-library-editor-a3e5ded646.chunk.css +2 -0
  25. package/dist/css/6093-library-editor-07e26e7dd0.chunk.css +2 -0
  26. package/dist/css/7053-library-editor-96752915ef.chunk.css +2 -0
  27. package/dist/css/8080-library-editor-fbbbd8b68b.chunk.css +14 -0
  28. package/dist/css/8343-library-editor-ecb0d73baf.chunk.css +20 -0
  29. package/dist/css/8420-library-editor-f8846ec2c2.chunk.css +40 -0
  30. package/dist/css/8762-library-editor-968a46a22b.chunk.css +8 -0
  31. package/dist/css/8906-library-editor-968a46a22b.chunk.css +8 -0
  32. package/dist/css/9298-library-editor-8876725368.chunk.css +12 -0
  33. package/dist/css/9383-library-editor-33aa5f52c7.chunk.css +32 -0
  34. package/dist/css/9695-library-editor-a995f8ddfd.chunk.css +2 -0
  35. package/dist/css/library-editor-app-80e343eeaa.css +121 -0
  36. package/dist/en.json +1 -1
  37. package/dist/scripts/1010-187155c696.chunk.js +1 -0
  38. package/dist/scripts/1086-f133353b06.chunk.js +1 -0
  39. package/dist/scripts/1409-5012f7ef74.chunk.js +1 -0
  40. package/dist/scripts/1832-a7aa0ecef5.chunk.js +1 -0
  41. package/dist/scripts/1934-3b82bbbc99.chunk.js +2 -0
  42. package/dist/scripts/1934-3b82bbbc99.chunk.js.LICENSE.txt +9 -0
  43. package/dist/scripts/2098-ad8754cfb1.chunk.js +1 -0
  44. package/dist/scripts/243-395c50486d.chunk.js +1 -0
  45. package/dist/scripts/2526-3655c9227a.chunk.js +1 -0
  46. package/dist/scripts/259-ee63296af8.chunk.js +1 -0
  47. package/dist/scripts/2692-68c581fa09.chunk.js +1 -0
  48. package/dist/scripts/2733-953a077283.chunk.js +1 -0
  49. package/dist/scripts/2803-3d9658a39f.chunk.js +1 -0
  50. package/dist/scripts/2888-dcb3f9554c.chunk.js +1 -0
  51. package/dist/scripts/299-8561db699d.chunk.js +1 -0
  52. package/dist/scripts/3019-8c7fdaf749.chunk.js +1 -0
  53. package/dist/scripts/3096-81108d029e.chunk.js +1 -0
  54. package/dist/scripts/3122-ef94efcef2.chunk.js +1 -0
  55. package/dist/scripts/3400-3a56ad67d9.chunk.js +1 -0
  56. package/dist/scripts/3427-c1019a852e.chunk.js +1 -0
  57. package/dist/scripts/3639-0889b8796c.chunk.js +1 -0
  58. package/dist/scripts/3763-66fb4f7ab9.chunk.js +1 -0
  59. package/dist/scripts/3803-ecb9aa097f.chunk.js +1 -0
  60. package/dist/scripts/400-1e23b44b3d.chunk.js +1 -0
  61. package/dist/scripts/409-7b2d72c33c.chunk.js +1 -0
  62. package/dist/scripts/4198-f2de3da811.chunk.js +1 -0
  63. package/dist/scripts/4201-a43528d101.chunk.js +1 -0
  64. package/dist/scripts/4245-85613e8ec8.chunk.js +1 -0
  65. package/dist/scripts/4269-6f9e82e570.chunk.js +1 -0
  66. package/dist/scripts/435-aacf684517.chunk.js +1 -0
  67. package/dist/scripts/4353-ef2f79f90d.chunk.js +1 -0
  68. package/dist/scripts/4463-71fd94bfb3.chunk.js +1 -0
  69. package/dist/scripts/4591-a6e8818803.chunk.js +1 -0
  70. package/dist/scripts/469-a5b931f910.chunk.js +2 -0
  71. package/dist/scripts/469-a5b931f910.chunk.js.LICENSE.txt +1 -0
  72. package/dist/scripts/4810-2d812b1847.chunk.js +1 -0
  73. package/dist/scripts/4860-1db82c2cda.chunk.js +1 -0
  74. package/dist/scripts/4885-0de9aceda4.chunk.js +1 -0
  75. package/dist/scripts/5047-4ca0d480d2.chunk.js +1 -0
  76. package/dist/scripts/514-e2257e58bd.chunk.js +1 -0
  77. package/dist/scripts/5248-b1f7b8d9fd.chunk.js +1 -0
  78. package/dist/scripts/5356-7abbf73447.chunk.js +1 -0
  79. package/dist/scripts/5412-6a3117fa77.chunk.js +1 -0
  80. package/dist/scripts/5418-94a6b15be1.chunk.js +1 -0
  81. package/dist/scripts/546-9f0093aa66.chunk.js +1 -0
  82. package/dist/scripts/5624-8aa90b5f57.chunk.js +1 -0
  83. package/dist/scripts/5747-9a64e93671.chunk.js +1 -0
  84. package/dist/scripts/6093-c2088a505f.chunk.js +1 -0
  85. package/dist/scripts/6420-218dd42b2a.chunk.js +1 -0
  86. package/dist/scripts/6774-de07d107a4.chunk.js +1 -0
  87. package/dist/scripts/6788-f6b0a8cc33.chunk.js +1 -0
  88. package/dist/scripts/693-26dce53392.chunk.js +1 -0
  89. package/dist/scripts/7053-4c386601c3.chunk.js +1 -0
  90. package/dist/scripts/7190-6574587b99.chunk.js +1 -0
  91. package/dist/scripts/7251-a247842ccb.chunk.js +2 -0
  92. package/dist/scripts/7251-a247842ccb.chunk.js.LICENSE.txt +13 -0
  93. package/dist/scripts/733-3dc29f5775.chunk.js +1 -0
  94. package/dist/scripts/8074-2f29dcbf11.chunk.js +1 -0
  95. package/dist/scripts/8080-34a458a81c.chunk.js +1 -0
  96. package/dist/scripts/8343-5ea346ff5b.chunk.js +1 -0
  97. package/dist/scripts/8362-a0a23ba68a.chunk.js +1 -0
  98. package/dist/scripts/8420-1a5b232743.chunk.js +1 -0
  99. package/dist/scripts/8726-7e3e7b6535.chunk.js +1 -0
  100. package/dist/scripts/8727-64c035a56f.chunk.js +1 -0
  101. package/dist/scripts/8762-02bdc15632.chunk.js +1 -0
  102. package/dist/scripts/8906-9920a2a83d.chunk.js +1 -0
  103. package/dist/scripts/9167-a9d920d75e.chunk.js +1 -0
  104. package/dist/scripts/9231-5de6f18fae.chunk.js +2 -0
  105. package/dist/scripts/9231-5de6f18fae.chunk.js.LICENSE.txt +17 -0
  106. package/dist/scripts/9298-8438cbb300.chunk.js +1 -0
  107. package/dist/scripts/9355-3a23e503c3.chunk.js +1 -0
  108. package/dist/scripts/9357-f0b8bc48ad.chunk.js +1 -0
  109. package/dist/scripts/9383-69a59536d6.chunk.js +1 -0
  110. package/dist/scripts/9592-de190aca67.chunk.js +1 -0
  111. package/dist/scripts/9695-dd63b52766.chunk.js +1 -0
  112. package/dist/scripts/bundle-60541f84c7.min.js +2 -0
  113. package/dist/scripts/bundle-60541f84c7.min.js.LICENSE.txt +1 -0
  114. package/dist/scripts/polyfills-c62d0e7aec.min.js +1 -0
  115. package/package.json +3 -25
  116. package/typings/libs/google-api.d.ts +5 -0
  117. package/typings/libs/microsoft-teams.d.ts +3 -0
  118. package/typings/libs/videojs-contrib-quality-levels.d.ts +31 -0
  119. package/dist/css/0-library-editor-c3083c7c46.chunk.css +0 -6
  120. package/dist/css/1-library-editor-9a899a1d1d.chunk.css +0 -2
  121. package/dist/css/10-library-editor-53c28be130.chunk.css +0 -2
  122. package/dist/css/12-library-editor-7f17ad1c90.chunk.css +0 -24
  123. package/dist/css/13-library-editor-911b8069ae.chunk.css +0 -14
  124. package/dist/css/14-library-editor-f507c0ef52.chunk.css +0 -14
  125. package/dist/css/15-library-editor-6fd06eea2a.chunk.css +0 -4
  126. package/dist/css/16-library-editor-6b9ba08288.chunk.css +0 -4
  127. package/dist/css/17-library-editor-b08725a10e.chunk.css +0 -2
  128. package/dist/css/18-library-editor-89ad109c63.chunk.css +0 -2
  129. package/dist/css/22-library-editor-2bd52b5a32.chunk.css +0 -34
  130. package/dist/css/23-library-editor-a7633bece5.chunk.css +0 -26
  131. package/dist/css/24-library-editor-459b106aec.chunk.css +0 -24
  132. package/dist/css/25-library-editor-33acb75c24.chunk.css +0 -18
  133. package/dist/css/26-library-editor-b180014922.chunk.css +0 -18
  134. package/dist/css/27-library-editor-4c64aed388.chunk.css +0 -16
  135. package/dist/css/28-library-editor-b72d0e2d36.chunk.css +0 -10
  136. package/dist/css/29-library-editor-de55d150ef.chunk.css +0 -10
  137. package/dist/css/3-library-editor-904319558a.chunk.css +0 -4
  138. package/dist/css/30-library-editor-b0e16f882d.chunk.css +0 -8
  139. package/dist/css/31-library-editor-10f54d8a75.chunk.css +0 -8
  140. package/dist/css/32-library-editor-9dfe56513f.chunk.css +0 -10
  141. package/dist/css/36-library-editor-d18b8a3619.chunk.css +0 -4
  142. package/dist/css/37-library-editor-8b225d15f4.chunk.css +0 -4
  143. package/dist/css/38-library-editor-b08725a10e.chunk.css +0 -2
  144. package/dist/css/39-library-editor-b08725a10e.chunk.css +0 -2
  145. package/dist/css/40-library-editor-9a2d011500.chunk.css +0 -4
  146. package/dist/css/41-library-editor-234f39ca94.chunk.css +0 -4
  147. package/dist/css/42-library-editor-593c0084b4.chunk.css +0 -4
  148. package/dist/css/43-library-editor-ca20e9d127.chunk.css +0 -2
  149. package/dist/css/44-library-editor-aa3e9bea9a.chunk.css +0 -2
  150. package/dist/css/45-library-editor-7b1cd4a5cc.chunk.css +0 -2
  151. package/dist/css/46-library-editor-f1820aeeff.chunk.css +0 -2
  152. package/dist/css/47-library-editor-547abc7492.chunk.css +0 -2
  153. package/dist/css/48-library-editor-3f6fb7f3ab.chunk.css +0 -2
  154. package/dist/css/49-library-editor-467e156ba3.chunk.css +0 -2
  155. package/dist/css/5-library-editor-24603066ed.chunk.css +0 -6
  156. package/dist/css/51-library-editor-7aca18778d.chunk.css +0 -2
  157. package/dist/css/52-library-editor-81c5aced1f.chunk.css +0 -2
  158. package/dist/css/56-library-editor-d3b8bb68f9.chunk.css +0 -2
  159. package/dist/css/57-library-editor-94a8c4e7fa.chunk.css +0 -2
  160. package/dist/css/58-library-editor-61808b02a0.chunk.css +0 -2
  161. package/dist/css/59-library-editor-c49b3847df.chunk.css +0 -2
  162. package/dist/css/6-library-editor-d96af27be1.chunk.css +0 -14
  163. package/dist/css/60-library-editor-8f5e04b64a.chunk.css +0 -2
  164. package/dist/css/61-library-editor-b64f6f3e74.chunk.css +0 -2
  165. package/dist/css/63-library-editor-7f123672b2.chunk.css +0 -2
  166. package/dist/css/64-library-editor-61e4c24a7b.chunk.css +0 -2
  167. package/dist/css/7-library-editor-b08725a10e.chunk.css +0 -2
  168. package/dist/css/8-library-editor-eb68c1df75.chunk.css +0 -2
  169. package/dist/css/9-library-editor-fec6984a64.chunk.css +0 -4
  170. package/dist/css/library-editor-app-bc12f8ea16.css +0 -135
  171. package/dist/scripts/0-01f04d6d56.chunk.js +0 -1
  172. package/dist/scripts/1-55d605c2c4.chunk.js +0 -1
  173. package/dist/scripts/10-3f2a274869.chunk.js +0 -1
  174. package/dist/scripts/11-f164d2f418.chunk.js +0 -11
  175. package/dist/scripts/12-c1693e5672.chunk.js +0 -1
  176. package/dist/scripts/13-c2b9880d80.chunk.js +0 -1
  177. package/dist/scripts/14-a8bbfcc005.chunk.js +0 -1
  178. package/dist/scripts/15-46f82eb565.chunk.js +0 -1
  179. package/dist/scripts/16-b2e034d835.chunk.js +0 -1
  180. package/dist/scripts/17-cf12ff6692.chunk.js +0 -1
  181. package/dist/scripts/18-3d7b2bb66b.chunk.js +0 -1
  182. package/dist/scripts/19-4050e84d9e.chunk.js +0 -1
  183. package/dist/scripts/2-cd7f1d10b5.chunk.js +0 -1
  184. package/dist/scripts/22-10eeb6ed95.chunk.js +0 -1
  185. package/dist/scripts/23-3176524b2e.chunk.js +0 -1
  186. package/dist/scripts/24-2620726cc2.chunk.js +0 -1
  187. package/dist/scripts/25-4277b864b4.chunk.js +0 -1
  188. package/dist/scripts/26-29a13a6b02.chunk.js +0 -1
  189. package/dist/scripts/27-66f129aade.chunk.js +0 -1
  190. package/dist/scripts/28-2cb1321628.chunk.js +0 -1
  191. package/dist/scripts/29-7d3e020b57.chunk.js +0 -1
  192. package/dist/scripts/3-408b6c2e20.chunk.js +0 -1
  193. package/dist/scripts/30-59dc5e292e.chunk.js +0 -1
  194. package/dist/scripts/31-e5be7f6d55.chunk.js +0 -1
  195. package/dist/scripts/32-9d14a73828.chunk.js +0 -1
  196. package/dist/scripts/33-2b7afd675e.chunk.js +0 -1
  197. package/dist/scripts/34-3449671540.chunk.js +0 -1
  198. package/dist/scripts/35-a553d5a148.chunk.js +0 -1
  199. package/dist/scripts/36-e494df0f54.chunk.js +0 -1
  200. package/dist/scripts/37-4f2ae73dc5.chunk.js +0 -1
  201. package/dist/scripts/38-a569e85303.chunk.js +0 -1
  202. package/dist/scripts/39-04168942c9.chunk.js +0 -1
  203. package/dist/scripts/4-512c8f05c3.chunk.js +0 -1
  204. package/dist/scripts/40-203241bd8d.chunk.js +0 -1
  205. package/dist/scripts/41-5d00db5a16.chunk.js +0 -1
  206. package/dist/scripts/42-493f93fd61.chunk.js +0 -1
  207. package/dist/scripts/43-f03b40f6bc.chunk.js +0 -1
  208. package/dist/scripts/44-cdca04fbae.chunk.js +0 -1
  209. package/dist/scripts/45-2f3e679889.chunk.js +0 -1
  210. package/dist/scripts/46-af1a164c00.chunk.js +0 -1
  211. package/dist/scripts/47-bd07b4acee.chunk.js +0 -1
  212. package/dist/scripts/48-f709ce0290.chunk.js +0 -1
  213. package/dist/scripts/49-dafac4cd90.chunk.js +0 -1
  214. package/dist/scripts/5-706a90d50a.chunk.js +0 -1
  215. package/dist/scripts/50-9d66026f2b.chunk.js +0 -1
  216. package/dist/scripts/51-f37ca8fa1b.chunk.js +0 -1
  217. package/dist/scripts/52-d1d8bedaad.chunk.js +0 -1
  218. package/dist/scripts/53-a42f975523.chunk.js +0 -1
  219. package/dist/scripts/54-d02dcc88dd.chunk.js +0 -1
  220. package/dist/scripts/55-37223f5e6c.chunk.js +0 -1
  221. package/dist/scripts/56-a90ebf7e95.chunk.js +0 -1
  222. package/dist/scripts/57-952cbdd523.chunk.js +0 -1
  223. package/dist/scripts/58-4d4d2ab11c.chunk.js +0 -1
  224. package/dist/scripts/59-6ce8d22854.chunk.js +0 -1
  225. package/dist/scripts/6-90ce8bfc8e.chunk.js +0 -1
  226. package/dist/scripts/60-18494da9d7.chunk.js +0 -1
  227. package/dist/scripts/61-86685720a1.chunk.js +0 -1
  228. package/dist/scripts/62-96300609c4.chunk.js +0 -1
  229. package/dist/scripts/63-5cf8bf730e.chunk.js +0 -1
  230. package/dist/scripts/64-a9e7449778.chunk.js +0 -1
  231. package/dist/scripts/65-55bda72c96.chunk.js +0 -1
  232. package/dist/scripts/66-55a1693f05.chunk.js +0 -1
  233. package/dist/scripts/67-86aac165f9.chunk.js +0 -1
  234. package/dist/scripts/68-fed6d09e61.chunk.js +0 -1
  235. package/dist/scripts/69-3ae70614ff.chunk.js +0 -1
  236. package/dist/scripts/7-1dc25bf167.chunk.js +0 -1
  237. package/dist/scripts/70-a06f10c030.chunk.js +0 -1
  238. package/dist/scripts/71-879b44e721.chunk.js +0 -1
  239. package/dist/scripts/72-68e8c56940.chunk.js +0 -1
  240. package/dist/scripts/73-2e1903d7ed.chunk.js +0 -1
  241. package/dist/scripts/74-8e2e1cb7a9.chunk.js +0 -1
  242. package/dist/scripts/8-02b96935fe.chunk.js +0 -1
  243. package/dist/scripts/9-ae30afaedb.chunk.js +0 -1
  244. package/dist/scripts/bundle-dec56a0065.min.js +0 -10
  245. package/dist/scripts/polyfills-0fbc27cd8a.min.js +0 -1
@@ -1 +0,0 @@
1
- (window.webpackJsonp_clickview_library_editor=window.webpackJsonp_clickview_library_editor||[]).push([[8],{1051:function(e,t,n){"use strict";n.d(t,"a",(function(){return p}));var r=n(2),o=n(265);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})(e)}function c(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function u(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,r.key,r)}}function s(e,t){return(s=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(e,t){return e.__proto__=t,e})(e,t)}function l(e){var t=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(e){return!1}}();return function(){var n,r=f(e);if(t){var o=f(this).constructor;n=Reflect.construct(r,arguments,o)}else n=r.apply(this,arguments);return a(this,n)}}function a(e,t){if(t&&("object"===i(t)||"function"==typeof t))return t;if(void 0!==t)throw new TypeError("Derived constructors may only return object or undefined");return function(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}(e)}function f(e){return(f=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(e){return e.__proto__||Object.getPrototypeOf(e)})(e)}var p=function(e){!function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),Object.defineProperty(e,"prototype",{writable:!1}),t&&s(e,t)}(a,e);var t,n,r,i=l(a);function a(){return c(this,a),i.apply(this,arguments)}return t=a,(n=[{key:"defaults",value:function(){return e={},t=o.c.Disabled,n=!0,t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e;var e,t,n}}])&&u(t.prototype,n),r&&u(t,r),Object.defineProperty(t,"prototype",{writable:!1}),a}(r.a.Model)},1065:function(e,t,n){"use strict";n.d(t,"a",(function(){return p}));var r=n(1),o=n(2),i=n(312);function c(e){return(c="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}function u(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,r.key,r)}}function s(e,t){return(s=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(e,t){return e.__proto__=t,e})(e,t)}function l(e){var t=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(e){return!1}}();return function(){var n,r=f(e);if(t){var o=f(this).constructor;n=Reflect.construct(r,arguments,o)}else n=r.apply(this,arguments);return a(this,n)}}function a(e,t){if(t&&("object"===c(t)||"function"==typeof t))return t;if(void 0!==t)throw new TypeError("Derived constructors may only return object or undefined");return function(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}(e)}function f(e){return(f=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(e){return e.__proto__||Object.getPrototypeOf(e)})(e)}var p=function(e){!function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),Object.defineProperty(e,"prototype",{writable:!1}),t&&s(e,t)}(a,e);var t,n,o,c=l(a);function a(e){return function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,a),c.call(this,e)}return t=a,(n=[{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 i.a}},{key:"childViewOptions",get:function(){var e={channelName:this.options.channelName,analyticsHelper:this.options.analyticsHelper};return r.extend(e,this.options.childOptions)}},{key:"getExtraClasses",value:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t=e.alignment,n=void 0===t?"left":t,r=e.extraClasses,o="dropdown-menu-".concat(n);return r&&(o="".concat(o," ").concat(r)),o}},{key:"centerSelectedItem",value:function(){var e=this.$el.find(".active");if(e.length){var t=this.$el.scrollTop()+e.position().top,n=.5*this.$el.height()+.5*e.height();this.$el.scrollTop(t-n)}}}])&&u(t.prototype,n),o&&u(t,o),Object.defineProperty(t,"prototype",{writable:!1}),a}(o.a.ComponentCollection)},1210:function(e,t,n){e.exports={select:"_1rbBR",selectButton:"htYy7",svgContainer:"_1sQ7D",groupButton:"_2CM1D",groupButtons:"_3uv-z",groupButtonSelected:"uC5RG",buttonDisabled:"_3-I1L",mediumWeight:"_10amI"}},1268:function(e,t,n){var r=n(10);e.exports=(r.default||r).template({1:function(e,t,n,r,o){e.propertyIsEnumerable;var i,c=e.lambda,u=e.escapeExpression;return'<label for="'+u(c(null!=(i=null!=t?t.options:t)?i.buttonId:i,t))+'" class="control-label">'+u(c(null!=(i=null!=t?t.options:t)?i.labelText:i,t))+"</label>\r\n"},compiler:[8,">= 4.3.0"],main:function(e,t,n,r,o){e.propertyIsEnumerable;var i,c=e.lambda,u=e.escapeExpression;return(null!=(i=n.if.call(null!=t?t:e.nullContext||{},null!=(i=null!=t?t.options:t)?i.labelText:i,{name:"if",hash:{},fn:e.program(1,o,0),inverse:e.noop,data:o}))?i:"")+'<button class="dropdown-toggle form-control btn-block text-left '+u(c(null!=(i=null!=t?t.options:t)?i.buttonClass:i,t))+'" type="button" id="'+u(c(null!=(i=null!=t?t.options:t)?i.buttonId:i,t))+'" data-toggle="dropdown" aria-haspopup="true" aria-expanded="false">\r\n '+u(c(null!=(i=null!=t?t.options:t)?i.selected:i,t))+'\r\n</button>\r\n<div class="dropdown-menu-region"></div>'},useData:!0})},1269:function(e,t,n){var r=n(10);e.exports=(r.default||r).template({compiler:[8,">= 4.3.0"],main:function(e,t,n,r,o){return'<div class="year-group-region"></div>\r\n<div name="year" class="mt-3"></div>'},useData:!0})},1270:function(e,t,n){var r=n(10);e.exports=(r.default||r).template({1:function(e,t,n,r,o){var i;e.propertyIsEnumerable;return(null!=(i=e.lambda(null!=(i=null!=t?t.options:t)?i.spinnerEl:i,t))?i:"")+"\r\n"},3:function(e,t,n,r,o){e.propertyIsEnumerable;var i,c=e.lambda,u=e.escapeExpression;return'<div class="d-flex align-items-center">\r\n<label class="control-label m-0 pb-2">'+u(c(null!=(i=null!=t?t.options:t)?i.restrictFromLabel:i,t))+"</label>\r\n"+(null!=(i=n.if.call(null!=t?t:e.nullContext||{},null!=(i=null!=t?t.options:t)?i.supportUrl:i,{name:"if",hash:{},fn:e.program(4,o,0),inverse:e.noop,data:o}))?i:"")+'</div>\r\n<div class="dropdown-region '+u(c(null!=(i=null!=(i=null!=t?t.options:t)?i.styles:i)?i.select:i,t))+' mb-3"></div>\r\n<div class="access-view-region"></div>\r\n'},4:function(e,t,n,r,o){e.propertyIsEnumerable;var i,c=e.lambda,u=e.escapeExpression;return'<a \r\n class="d-inline-block ml-1 mb-3 '+u(c(null!=(i=null!=(i=null!=t?t.options:t)?i.styles:i)?i.svgContainer:i,t))+'"\r\n title="'+u((n.lang||t&&t.lang||e.hooks.helperMissing).call(null!=t?t:e.nullContext||{},"findOutMore",{name:"lang",hash:{},data:o}))+'"\r\n href="'+u(c(null!=(i=null!=t?t.options:t)?i.supportUrl:i,t))+'" \r\n target="_blank"\r\n>\r\n '+(null!=(i=c(null!=(i=null!=t?t.options:t)?i.svg:i,t))?i:"")+"\r\n</a>\r\n"},compiler:[8,">= 4.3.0"],main:function(e,t,n,r,o){var i;e.propertyIsEnumerable;return null!=(i=n.unless.call(null!=t?t:e.nullContext||{},null!=(i=null!=t?t.options:t)?i.dataFetched:i,{name:"unless",hash:{},fn:e.program(1,o,0),inverse:e.program(3,o,0),data:o}))?i:""},useData:!0})},1485:function(e,t,n){"use strict";n.r(t);var r=n(1),o=n(6),i=n(2),c=n(5),u=n(3),s=n(16),l=n(144),a=n(310),f=n(308),p=n(1051),d=n(305),y=n(4),h=n(42),b=n(12),g=n(372),m=n(0),v=n(145),w=n(202),O=n(9),k=n(265),S=n(1065),j=n(1268),P=n.n(j);function C(e){return(C="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}function R(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,r.key,r)}}function _(e,t){return(_=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(e,t){return e.__proto__=t,e})(e,t)}function I(e){var t=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(e){return!1}}();return function(){var n,r=T(e);if(t){var o=T(this).constructor;n=Reflect.construct(r,arguments,o)}else n=r.apply(this,arguments);return E(this,n)}}function E(e,t){if(t&&("object"===C(t)||"function"==typeof t))return t;if(void 0!==t)throw new TypeError("Derived constructors may only return object or undefined");return function(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}(e)}function T(e){return(T=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(e){return e.__proto__||Object.getPrototypeOf(e)})(e)}var x=function(e){!function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),Object.defineProperty(e,"prototype",{writable:!1}),t&&_(e,t)}(i,e);var t,n,r,o=I(i);function i(e){return function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,i),o.call(this,e)}return t=i,(n=[{key:"initialize",value:function(){var e=this.model?this.model.get("id"):"";b.c.setSelected(e,this.collection),this.listenTo(this.options.channelName,this.options.eventName,this.onSelect)}},{key:"name",get:function(){return"DropdownComponent"}},{key:"template",get:function(){return P.a}},{key:"className",get:function(){return this.options.buttonClass?"select-channel ".concat(this.options.buttonClass):"select-channel"}},{key:"regions",value:function(){return{dropdown:{el:".dropdown-menu-region",replaceElement:!0}}}},{key:"onSelect",value:function(e){b.c.setSelected(e.get("id"),this.collection),this.render()}},{key:"viewOptions",value:function(){var e=b.c.getSelected(this.collection);return Object.assign({selected:e&&e.get("name")},this.options)}},{key:"getIsOptionDisabledFn",value:function(){var e=b.c.getSelected(this.collection),t=e&&e.id;return function(){return!!t&&(t=t.toString(),this.model.get("id").toString()===t)}}},{key:"renderChannelDropdown",value:function(){this.showChildView("dropdown",new S.a({collection:this.collection,channelName:this.options.channelName,childOptions:{titleProperty:this.options.titleProperty,isDisabled:this.getIsOptionDisabledFn(),eventName:this.options.eventName},displayOptions:this.options.displayOptions,analyticsHelper:this.options.analyticsHelper}))}},{key:"onRender",value:function(){this.renderChannelDropdown()}}])&&R(t.prototype,n),r&&R(t,r),Object.defineProperty(t,"prototype",{writable:!1}),i}(i.a.Component),D=n(1210),N=n.n(D),A=n(1269),V=n.n(A);function B(e){return(B="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})(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 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,r.key,r)}}function U(e,t,n){return t&&M(e.prototype,t),n&&M(e,n),Object.defineProperty(e,"prototype",{writable:!1}),e}function F(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)}function Y(e,t){return(Y=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(e,t){return e.__proto__=t,e})(e,t)}function L(e){var t=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(e){return!1}}();return function(){var n,r=H(e);if(t){var o=H(this).constructor;n=Reflect.construct(r,arguments,o)}else n=r.apply(this,arguments);return z(this,n)}}function z(e,t){if(t&&("object"===B(t)||"function"==typeof t))return t;if(void 0!==t)throw new TypeError("Derived constructors may only return object or undefined");return function(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}(e)}function H(e){return(H=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(e){return e.__proto__||Object.getPrototypeOf(e)})(e)}var $=function(e){F(n,e);var t=L(n);function n(){return G(this,n),t.apply(this,arguments)}return U(n,[{key:"name",get:function(){return"RestrictAccessYearGroupItemView"}},{key:"className",get:function(){var e="btn text-center p-0 pb-1 pt-1 ".concat(N.a.groupButton);return this.model.get("selected")&&(e+=" ".concat(N.a.groupButtonSelected)),e}},{key:"tagName",get:function(){return"button"}},{key:"attributes",get:function(){var e=100/this.model.collection.length;return{type:"button",style:"width: ".concat(e,"%")}}},{key:"template",get:function(){var e=this.model.get("year");return"<span>".concat(e,"</span>")}},{key:"events",value:function(){return{click:"onClick"}}},{key:"onClick",value:function(){o.Radio.channel(this.options.channelName).trigger("group:selected",this.model)}}]),n}(i.a.Component),q=function(e){F(n,e);var t=L(n);function n(){return G(this,n),t.apply(this,arguments)}return U(n,[{key:"initialize",value:function(){this.bindListeners()}},{key:"name",get:function(){return"RestrictAccessYearGroupComponentCollection"}},{key:"className",get:function(){return"btn-group w-100 ".concat(N.a.groupButtons)}},{key:"channelName",get:function(){return"".concat(this.name).concat(this.cid)}},{key:"childView",get:function(){return $}},{key:"childViewOptions",get:function(){return{channelName:this.channelName}}},{key:"bindListeners",value:function(){this.listenTo(this.channelName,"group:selected",this.onYearGroupSelected)}},{key:"onYearGroupSelected",value:function(e){this.collection.each((function(t){return t.set("selected",t.get("groupId")<=e.get("groupId"))})),this.model.set("groupId",e.get("groupId")),this.model.set("yearGroup",e.get("groupId")),this.render()}},{key:"onBeforeRender",value:function(){var e=this.model.get("yearGroup")||this.model.get("groupId");e&&(this.collection.each((function(t){return t.set("selected",t.get("groupId")<=e)})),this.model.set("groupId",e))}}]),n}(i.a.CollectionView),J=function(e){F(n,e);var t=L(n);function n(){return G(this,n),t.apply(this,arguments)}return U(n,[{key:"initialize",value:function(){this.configDataService=c.a.getInstance(m.g.Config,this)}},{key:"name",get:function(){return"RestrictAccessGroupComponent"}},{key:"lang",get:function(){return"shared.restrictAccess"}},{key:"props",get:function(){return["configDataService","currentUser"]}},{key:"template",get:function(){return V.a}},{key:"bindings",get:function(){var e=this;return{"[name=year]":{observe:"groupId",onGet:function(t){return e.buildGroupMessage(t)},updateMethod:"html",escape:!1}}}},{key:"regions",value:function(){return{yearGroupList:{replaceElement:!0,el:".year-group-region"}}}},{key:"requiredResources",get:function(){return{currentUser:v.b.currentUser}}},{key:"viewOptions",value:function(){return{styles:N.a}}},{key:"onBeforeRender",value:function(){var e=this;this.yearGroups||this.getYearGroups(),r.some(this.yearGroups,(function(t){return t.groupId===e.model.get("groupId")}))||this.model.set("groupId",void 0)}},{key:"onRender",value:function(){this.stickit(),this.showChildView("yearGroupList",new q({model:this.model,collection:new i.a.Collection(this.yearGroups)}))}},{key:"onBeforeDestroy",value:function(){this.unstickit()}},{key:"getYearGroups",value:function(){var e=this,t=this.configDataService.getCustomerYearGroups(this.currentUser.get("countryCode"));this.yearGroups=[],r.keys(O.n).forEach((function(n){var o=parseInt(n,10);if(!r.isNaN(o)&&r.contains(t,o)){var i=o===O.n.Kindergarten?"K":O.n[o].replace("Year","Y");e.yearGroups.push({year:i,groupId:o})}}))}},{key:"buildGroupMessage",value:function(e){if(e){var t=b.o.mapYearGroupToName(e);return u.a.getPhrase(this.lang,"selectedYearGroups",{classNames:N.a.mediumWeight,groupName:t})}return u.a.getPhrase(this.lang,"selectYearGroups")}}]),n}(i.a.Component);function W(e){return(W="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})(e)}function K(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function Q(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,r.key,r)}}function X(e,t){return(X=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(e,t){return e.__proto__=t,e})(e,t)}function Z(e){var t=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(e){return!1}}();return function(){var n,r=te(e);if(t){var o=te(this).constructor;n=Reflect.construct(r,arguments,o)}else n=r.apply(this,arguments);return ee(this,n)}}function ee(e,t){if(t&&("object"===W(t)||"function"==typeof t))return t;if(void 0!==t)throw new TypeError("Derived constructors may only return object or undefined");return function(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}(e)}function te(e){return(te=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(e){return e.__proto__||Object.getPrototypeOf(e)})(e)}var ne=function(e){!function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),Object.defineProperty(e,"prototype",{writable:!1}),t&&X(e,t)}(i,e);var t,n,r,o=Z(i);function i(){return K(this,i),o.apply(this,arguments)}return t=i,(n=[{key:"name",get:function(){return"RestrictAccessComponent"}},{key:"template",get:function(){return"<p>".concat(this.getTemplateText(),"</p>")}},{key:"lang",get:function(){return"shared.restrictAccess"}},{key:"getTemplateText",value:function(){return u.a.getPhrase(this.lang,"groupNoAccess",{groupName:b.o.mapYearGroupToName(this.model.get("groupId"))})}}])&&Q(t.prototype,n),r&&Q(t,r),Object.defineProperty(t,"prototype",{writable:!1}),i}(i.a.Component);function re(e){return(re="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})(e)}function oe(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function ie(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,r.key,r)}}function ce(e,t){return(ce=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(e,t){return e.__proto__=t,e})(e,t)}function ue(e){var t=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(e){return!1}}();return function(){var n,r=le(e);if(t){var o=le(this).constructor;n=Reflect.construct(r,arguments,o)}else n=r.apply(this,arguments);return se(this,n)}}function se(e,t){if(t&&("object"===re(t)||"function"==typeof t))return t;if(void 0!==t)throw new TypeError("Derived constructors may only return object or undefined");return function(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}(e)}function le(e){return(le=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(e){return e.__proto__||Object.getPrototypeOf(e)})(e)}var ae,fe=function(e){!function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),Object.defineProperty(e,"prototype",{writable:!1}),t&&ce(e,t)}(i,e);var t,n,r,o=ue(i);function i(){return oe(this,i),o.apply(this,arguments)}return t=i,(n=[{key:"name",get:function(){return"RestrictAccessNoneComponent"}},{key:"template",get:function(){return"<p>".concat(this.getTemplateText(),"</p>")}},{key:"lang",get:function(){return"shared.restrictAccess"}},{key:"getTemplateText",value:function(){return u.a.getPhrase(this.lang,"noGroupSelected")}}])&&ie(t.prototype,n),r&&ie(t,r),Object.defineProperty(t,"prototype",{writable:!1}),i}(i.a.Component),pe=n(1270),de=n.n(pe);function ye(e){return(ye="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})(e)}function he(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,r.key,r)}}function be(e,t){return(be=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(e,t){return e.__proto__=t,e})(e,t)}function ge(e){var t=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(e){return!1}}();return function(){var n,r=ve(e);if(t){var o=ve(this).constructor;n=Reflect.construct(r,arguments,o)}else n=r.apply(this,arguments);return me(this,n)}}function me(e,t){if(t&&("object"===ye(t)||"function"==typeof t))return t;if(void 0!==t)throw new TypeError("Derived constructors may only return object or undefined");return function(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}(e)}function ve(e){return(ve=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(e){return e.__proto__||Object.getPrototypeOf(e)})(e)}n.d(t,"RestrictAccessView",(function(){return we})),function(e){e.None="Select a group...",e.Students="Students",e.Groups="Certain year groups",e.All="Students and staff"}(ae||(ae={}));var we=function(e){!function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),Object.defineProperty(e,"prototype",{writable:!1}),t&&be(e,t)}(P,e);var t,n,S,j=ge(P);function P(e){return function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,P),j.call(this,e)}return t=P,(n=[{key:"initialize",value:function(){this.restriction=new g.a({groupId:O.n.Students}),this.selected=ae.None,this.bindListeners(),this.videoDataService=c.a.getInstance(m.g.Video,this),this.restrictedVideoDataService=c.a.getInstance(m.g.RestrictedVideo,this),this.videoMixinService=c.a.getInstance(m.x.VideoMixin,this)}},{key:"bindListeners",value:function(){this.listenTo(this.channelName,"dropdown:selected",this.onOptionSelected),this.listenTo(this.restriction,"change:groupId",this.onGroupChanged),this.listenTo(m.e.VIDEO,"".concat(m.f.VIDEOS,":").concat(this.options.videoId,":sync"),this.render),this.listenTo(m.e.RESTRICTED_VIDEO,"".concat(m.f.RESTRICTED_OBJECTS,":").concat(this.options.videoId,":sync"),this.render)}},{key:"name",get:function(){return"RestrictAccessView"}},{key:"title",get:function(){return u.a.getPhrase(this.lang,"title")}},{key:"lang",get:function(){return"shared.restrictAccess"}},{key:"tagName",get:function(){return"form"}},{key:"className",get:function(){return"form-group"}},{key:"channelName",get:function(){return b.k.generateUniqueChannelName(this)}},{key:"template",get:function(){return de.a}},{key:"behaviors",get:function(){var e=this;return[{behaviorClass:d.e,title:u.a.getPhrase(this.lang,"popupHeading"),modalClasses:N.a.modal,hideCloseButton:!0,size:"modal-md",spinnerButtonOptions:{channelName:this.channelName,model:this.spinnerModel=new p.a,buttonText:u.a.getPhrase(this.lang,"updateAccess"),tooltip:function(){return e.getSubmitBtnTooltipOptions()},onClick:function(t){return e.onSubmit(t)}},buttons:[{text:u.a.getPhrase(this.lang,"allowFullAccess"),getClassName:function(){return e.getAllowFullAccessBtnClassName()}}]},{behaviorClass:l.a,selector:".".concat(N.a.svgContainer),title:u.a.getPhrase(this.lang,"findOutMore")}]}},{key:"elements",get:function(){return{submit:"submit"}}},{key:"events",value:function(){return{submit:"onSubmit","click .allow-full-access":"onAllowFullAccess"}}},{key:"regions",value:function(){return{dropdown:".dropdown-region",accessView:{replaceElement:!0,el:".access-view-region"}}}},{key:"getAllowFullAccessBtnClassName",value:function(){var e="btn btn-link cursor-pointer mr-2 allow-full-access";return this.dataFetched()&&!this.spinnerModel.get(k.c.ShowSpinner)||(e+=" disabled"),e}},{key:"getSubmitBtnTooltipOptions",value:function(){if(this.dataFetched()&&this.spinnerModel.get(k.c.Disabled))return{title:u.a.getPhrase(this.lang,"selectYear")}}},{key:"onOptionSelected",value:function(e){this.refreshRestriction();var t=this.getAccessView(e.get("name"));this.spinnerModel.set(k.c.Disabled,e.get("name")===ae.None),this.showChildView("accessView",new t({model:this.restriction,currentUser:this.currentUser})),this.renderDropdown()}},{key:"onGroupChanged",value:function(e){this.isRendered()&&this.spinnerModel.set(k.c.Disabled,r.isUndefined(e.get("groupId")))}},{key:"getAccessView",value:function(e){switch(this.selected=e,e){case ae.None:return fe;case ae.Students:return this.restriction.set("groupId",O.n.Students),ne;case ae.Groups:return J;case ae.All:return this.restriction.set("groupId",O.n.All),ne}}},{key:"getSelection",value:function(e){switch(e){case O.n.All:case O.n.Staff:return ae.All;case O.n.Students:return ae.Students;default:return ae.Groups}}},{key:"refreshRestriction",value:function(){if(this.restrictedObjectCollection&&this.restrictedObjectCollection.length&&this.model){this.videoMixinService.mixinVideoRestriction(this.model,this.restrictedObjectCollection);var e=this.model.restrictions.last();e&&r.isNumber(e.get("groupId"))&&(this.restriction.set("groupId",e.get("groupId")),this.selected=this.getSelection(e.get("groupId")))}}},{key:"onSubmit",value:function(e){var t=this;if(e&&e.preventDefault(),r.isUndefined(this.restriction.get("groupId")))return!1;o.Radio.channel(this.channelName).trigger(k.b.ShowSpinner),this.restrictedVideoDataService.updateVideoRestriction(this.options.videoId,this.restriction.get("groupId"),this.currentUser.get("customerId"),this.currentUser.get("id"),(function(){t.triggerMethod("hide"),o.Radio.channel(m.e.RESTRICTED_VIDEO).trigger("cache:cleared")})),this.logAction(this.restriction.get("groupId"))}},{key:"onAllowFullAccess",value:function(){this.dataFetched()&&!this.spinnerModel.get(k.c.ShowSpinner)&&(this.spinnerModel.set(k.c.Disabled,!0),this.restriction.set("groupId",O.n.All),this.restrictedVideoDataService.deleteVideoRestriction(this.options.videoId,(function(){o.Radio.channel(m.e.RESTRICTED_VIDEO).trigger("cache:cleared")})),this.triggerMethod("hide"),this.logAction())}},{key:"logAction",value:function(e){var t={location:y.LocationContext.Popup,actionType:y.UserAction.SetAccess,entity:y.EntityType.Video,workflowPhase:y.WorkflowPhase.Complete},n={id:this.model.get("id"),restriction:!!r.isNumber(e)&&O.n[e]};h.a.logUserAction(n,t)}},{key:"dataFetched",value:function(){return!!this.model&&!!this.restrictedObjectCollection}},{key:"renderDropdown",value:function(){var e=this;this.collection=new i.a.Collection([{name:ae.None},{name:ae.Students},{name:ae.Groups},{name:ae.All}]),this.collection.each((function(t){return t.set("selected",t.get("name")===e.selected)})),this.showChildView("dropdown",new x({titleProperty:"name",eventName:"dropdown:selected",buttonId:"select-btn",collection:this.collection,channelName:this.channelName,buttonClass:N.a.selectButton,displayOptions:{extraClasses:"w-100"},analyticsHelper:h.a}))}},{key:"requiredResources",get:function(){return{config:w.b.config,currentUser:v.b.currentUser}}},{key:"onBeforeRender",value:function(){this.model=this.videoDataService.getVideo(this.options.videoId),this.restrictedObjectCollection=this.restrictedVideoDataService.getVideoRestrictions([this.options.videoId]),this.model&&this.restrictedObjectCollection&&this.refreshRestriction(),this.dataFetched()&&this.spinnerModel.set(k.c.Disabled,!1)}},{key:"viewOptions",value:function(){var e,t;return{styles:N.a,supportUrl:a.a.getArticle(null===(e=this.config)||void 0===e?void 0:e.get("supportSiteUrl"),f.a.VideoAccess,null===(t=this.currentUser)||void 0===t?void 0:t.get("countryCode")),svg:s.a.getSvg(s.b.Info),dataFetched:this.dataFetched(),spinnerEl:b.r.getSpinner({size:b.s.Large,extraClasses:"mx-auto"}),restrictFromLabel:u.a.getPhrase(this.lang,"popupSubheading")}}},{key:"onRender",value:function(){this.dataFetched()&&(this.renderDropdown(),this.onOptionSelected(new i.a.Model({name:this.selected})))}}])&&he(t.prototype,n),S&&he(t,S),Object.defineProperty(t,"prototype",{writable:!1}),P}(i.a.View)}}]);
@@ -1 +0,0 @@
1
- (window.webpackJsonp_clickview_library_editor=window.webpackJsonp_clickview_library_editor||[]).push([[9],{1057:function(e,t,n){"use strict";var r=n(1061),o=n(1058),i=(n(1059),n(3),n(1062)),a=(n(1064),n(1060));n.d(t,"a",(function(){return r.a})),n.d(t,"d",(function(){return o.g})),n.d(t,"g",(function(){return o.j})),n.d(t,"f",(function(){return o.i})),n.d(t,"c",(function(){return o.f})),n.d(t,"e",(function(){return o.h})),n.d(t,"b",(function(){return i.a})),n.d(t,"h",(function(){return a.a}))},1058:function(e,t,n){"use strict";n.d(t,"a",(function(){return d})),n.d(t,"k",(function(){return p})),n.d(t,"g",(function(){return h})),n.d(t,"e",(function(){return m})),n.d(t,"j",(function(){return b})),n.d(t,"i",(function(){return v})),n.d(t,"c",(function(){return w})),n.d(t,"b",(function(){return E})),n.d(t,"d",(function(){return O})),n.d(t,"f",(function(){return P})),n.d(t,"h",(function(){return y}));var r=n(2),o=n(1),i=n(19),a=n(29),u=n(3),s="libraryEditor.utils",c=["tags","thumbnail","chapters","resources","subtitles","disabled","links","restrictions","categories"];function l(e,t){if(e){var n=o.reduce(e,(function(e,n,r){var i=t[r];return n||i?o.isObject(n)&&o.isObject(i)&&!o.isUndefined(n.id)&&n.id===i.id?e:o.isArray(n)?f(n,i).length?e.concat(r):e:o.isEqual(n,i)?e:e.concat(r):e}),[]);if(n.length)return o.object(o.map(n,(function(n){return o.isArray(t[n])?[n,f(e[n],t[n])]:[n,t[n]]})))}}function f(e,t){var n=[];return o.each(t,(function(t){var r=o.findWhere(e,{id:t.id});if(!o.isUndefined(r)||0!==Object.keys(t).length){var i=o.isUndefined(r)?t:l(r,t);i&&(t.id<0&&!t.value||(!r||t.id<0?n.push(t):(i.id=t.id,n.push(i))))}})),n}var d={getChanges:function(e,t){var n=l(o.omit(e.toJSON(),c),o.omit(t.toJSON(),c));if(n)return o.object(o.map(o.keys(n),(function(e){return[e,d.formatChanges(e,n[e])]})))},formatChanges:function(e,t){if(!t)return null;if(o.isObject(t)&&o.isEmpty(t))return null;switch(e){case"name":case"description":case"productionYear":case"dateBroadcast":case"fields":case"episodeNumber":return t;case"channel":case"series":case"rating":case"season":return{id:t.id};case"distributors":case"producers":case"directors":case"productionCompanies":return o.map(t,(function(e){return e.id}));case"dateModified":case"hasBroadcast":case"seriesSort":return;default:r.a.ErrorHelper.throw(new i.a("There are no formatting settings for ".concat(e)))}},updateModelState:function(e,t,n){var i=["distributors","producers","directors","productionCompanies"];for(var a in o.each(o.keys(n),(function(e){i.includes(e)&&(n[e]=t.get(e).toJSON())})),t.set(o.clone(n),{silent:!0}),e.set(t.toJSON(),{silent:!0}),n){if(!n[a]&&e.associations[a]){var u=e.get(a);(u instanceof r.a.Model||u instanceof r.a.NestedModel)&&u.clear()}}},getRemovedObjectIds:function(e,t){var n=["distributors","productionCompanies","producers","directors"],r={};return o.each(o.keys(e.toJSON()),(function(i){if(o.contains(n,i)){var a=e.get(i).map((function(e){return e.id})),u=t.get(i).map((function(e){return e.id})),s=o.filter(a,(function(e){return e&&!o.contains(u,e)}));s.length&&(r[i]=s)}})),r}},p={name:[{required:!0,msg:function(){return u.a.getPhrase(s,"videoTitleRequired")}},{maxLength:255,msg:function(){return u.a.getPhrase(s,"videoTitleExceeds")}}],description:[{required:!1},{maxLength:16e3,msg:function(){return u.a.getPhrase(s,"videoDescriptionExceeds")}}],episodeNumber:function(e,t,n){return e&&e<1?u.a.getPhrase(s,"episodeNumberLessThanOne"):e&&e>2147483647?u.a.getPhrase(s,"episodeNumberExceeds"):e%1!=0?u.a.getPhrase(s,"episodeNumberNotWhole"):n.season&&n.season.get("number")>=0&&null===e?u.a.getPhrase(s,"episodeNumberNoSeason"):""},season:function(e,t,n){return n.season&&n.season.get("number")||e&&e.number||!n.episodeNumber?"":u.a.getPhrase(s,"seasonNoEpisodeNumber")}},g=a().year(),m={productionYear:function(e){return e||0===e?(e=+e,isNaN(e)?"Production year must be a number.":e<1900||e>g?u.a.getPhrase(s,"validProductionYears",{currentYear:g}):void 0):""}},h={name:[{required:!0,msg:function(){return u.a.getPhrase(s,"resourceNameRequired")}}]},b={suggestion:[{required:!0,msg:function(){return u.a.getPhrase(s,"suggestEditRequired")}},{maxLength:16e3,msg:function(){return u.a.getPhrase(s,"suggestEditExceeds")}}],reason:[{required:!0,msg:function(){return u.a.getPhrase(s,"suggestEditReasonRequired")}},{maxLength:16e3,msg:function(){return u.a.getPhrase(s,"suggestEditReasonExceeds")}}]},y={number:function(e){return e?+e<1?u.a.getPhrase(s,"seasonLessThanOne"):+e>3e3?u.a.getPhrase(s,"seasonExceeds"):+e%1!=0?u.a.getPhrase(s,"seasonNotWhole"):"":u.a.getPhrase(s,"seasonRequired")}},v={empty:function(){return u.a.getPhrase(s,"suggestEditRatingRequired")},original:function(){return u.a.getPhrase(s,"suggestEditRatingInvalid")}},P={url:[{required:!0,pattern:"url",msg:function(){return u.a.getPhrase(s,"linkUrlRequired")}},{maxLength:16e3,msg:function(){return u.a.getPhrase(s,"linkUrlExceeds")}}],name:[{required:!0,msg:function(){return u.a.getPhrase(s,"linkNameRequired")}},{maxLength:255,msg:function(){return u.a.getPhrase(s,"linkNameExceeds")}}]},w={name:[{maxLength:128,msg:function(){return u.a.getPhrase(s,"fieldNameExceeds")}}],value:[{maxLength:16e3,msg:function(){return u.a.getPhrase(s,"fieldValueExceeds")}}]},E={fields:function(e){return e&&e.length?e.all((function(e){return!1!==e.isValid()}))?"":u.a.getPhrase(s,"fieldsInvalid"):""}};function O(){return[{id:-1,name:"Admin Notes",value:"",placeholder:"Notes that only admins will see"}]}},1059:function(e,t,n){"use strict";n.d(t,"a",(function(){return l}));var r=n(1),o=n(48),i=n(169),a=n(3),u="libraryEditor.utils",s={name:[{required:!0,msg:function(){return a.a.getPhrase(u,"folderNameRequired")}},{maxLength:255,msg:function(){return a.a.getPhrase(u,"folderNameExceeds")}}]},c=function(e,t){return{parentId:function(n){return n?o.a.calculateDestinationFolderDepth(e,n,t)>i.a.MAX_FOLDER_DEPTH?a.a.getPhrase(u,"maxFolderDepth",{maxDepth:i.a.MAX_FOLDER_DEPTH}):"":a.a.getPhrase(u,"selectParentFolder")}}},l=function(e){var t=e.validateName,n=e.validateParent,o=e.folder,i=e.collection;return t&&n?r.extend({},s,c(o,i)):t?s:n?c(o,i):void 0}},1060:function(e,t,n){"use strict";n.d(t,"a",(function(){return f}));var r=n(16),o=n(3),i=n(201),a=n(1077),u=n(63);function s(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}var c,l="libraryEditor.utils";!function(e){e.Pdf="pdf",e.Image="image",e.PowerPoint="powerpoint",e.Document="document",e.Excel="excel",e.Zip="archive",e.File="text"}(c||(c={}));var f={mapRatingToClass:function(e){if(!e)return"";return function(e){switch(!0){case e<32:return"bg-purple";case e<48:return"bg-green";case e<80:return"bg-info";case e<96:return"bg-red";case e<128:return"bg-pink";case e>=128:return"bg-yellow";default:return""}}(e)},mapSourceToDisplayName:function(e){switch(e.get("type")){case u.a.HostedLibrary:case u.a.CustomLibrary:return e.get("name");case u.a.Exchange:return o.a.getPhrase(l,"exchange");case u.a.Workspace:return o.a.getPhrase(l,"workspace");default:return""}},mapSourceToClass:function(e){switch(e){case u.a.HostedLibrary:case u.a.CustomLibrary:return"bg-info";case u.a.Exchange:return"bg-green";case u.a.Workspace:default:return"bg-red"}},isInteractive:function(e){return!(!e||!e.interactives)&&!!e.interactives.length},mapTypeToSvg:function(e){var t,n=(s(t={},c.Pdf,r.b.FilePDF),s(t,c.Image,r.b.FileImg),s(t,c.PowerPoint,r.b.FilePowerpoint),s(t,c.Document,r.b.FileWord),s(t,c.Excel,r.b.FileExcel),s(t,c.Zip,r.b.FileZip),s(t,c.File,r.b.File),t)[e];return n||(n=r.b.Folder),r.a.getSvg(n)},mapTypeToClass:function(e){switch(e){case c.Pdf:return"icon-red";case c.Image:return"icon-purple";case c.Document:return"icon-blue";case c.Excel:return"icon-green";case c.PowerPoint:return"icon-orange";case c.Zip:return"icon-teal";case c.File:return"icon-gray";default:return""}},mapTypeToExtension:function(e){if(!e)return"";return{pdf:"pdf",image:"png",powerpoint:"pptx"}[e.toLowerCase()]},mapTypeToName:function(e){if(!e)return"";switch(e){case c.Pdf:return o.a.getPhrase(l,"pdf");case c.Image:return o.a.getPhrase(l,"image");case c.Document:return o.a.getPhrase(l,"document");case c.Excel:return o.a.getPhrase(l,"spreadsheet");case c.PowerPoint:return o.a.getPhrase(l,"presentation");case c.Zip:return o.a.getPhrase(l,"zipArchive");case c.File:return o.a.getPhrase(l,"file");default:return""}},translateMetadataCollectionNames:function(e){return new a.a(e.map((function(e){return Object.assign(Object.assign({},e.toJSON()),{name:f.translateMetadataName(e.get("name"))})})))},translateMetadataName:function(e){var t="suggestEdit";switch(e){case i.MetadataType.VideoTitle:t+="VideoTitle";break;case i.MetadataType.Description:t+="Description";break;case i.MetadataType.Rating:t+="Rating";break;case i.MetadataType.SeriesTitle:t+="SeriesTitle";break;case i.MetadataType.Season:t+="SeasonNumber";break;case i.MetadataType.EpisodeNumber:t+="EpisodeNumber";break;case i.MetadataType.BroadcastDate:t+="BroadcastDate";break;case i.MetadataType.Channel:t+="Channel";break;case i.MetadataType.ProductionYear:t+="ProductionYear";break;case i.MetadataType.Distributors:t+="Distributors";break;case i.MetadataType.ProductionCompanies:t+="ProductionCompanies";break;case i.MetadataType.Directors:t+="Directors";break;case i.MetadataType.Producers:t+="Producers";break;case i.MetadataType.Other:t+="Other"}return o.a.getPhrase(l,t)}}},1061:function(e,t,n){"use strict";n.d(t,"a",(function(){return u}));var r=n(1),o=n(12),i=n(3),a="libraryEditor.utils",u={isValidChapterTime:function(e,t,n,i){if(i){if(!r.isNumber(t))return s.StartTime.Invalid();if(t<0)return s.StartTime.Invalid();if(t>o.x.millisecondsToSeconds(n))return s.StartTime.Exceeds();if(i.some((function(n){return!(n.id&&n.id===e.id||n.cid===e.cid)&&n.get("startTime")===t})))return s.StartTime.Exists()}},isValidChapterName:function(e,t,n){return t?t.length>255?s.Name.MaxLength():n.some((function(n){return!(n.id&&n.id===e.id||n.cid===e.cid)&&n.get("name").trim()===t.trim()}))?s.Name.Exists():r.isEmpty(t.trim())?s.Name.Invalid():void 0:s.Name.Invalid()},mapPhysicalChapters:function(e){var t=0;return r.map(e,(function(e,n){var r={name:e.title,startTime:t,index:n,isPhysicalChapter:!0};return t+=e.duration,r}))}},s={Name:{Invalid:function(){return i.a.getPhrase(a,"chapterNameInvalid")},Exists:function(){return i.a.getPhrase(a,"chapterNameExists")},MaxLength:function(){return i.a.getPhrase(a,"chapterNameExceeds")}},StartTime:{Invalid:function(){return i.a.getPhrase(a,"chapterStartTimeInvalid")},Exists:function(){return i.a.getPhrase(a,"chapterStartTimeExists")},Exceeds:function(){return i.a.getPhrase(a,"chapterStartTimeExceeds")}}}},1062:function(e,t,n){"use strict";n.d(t,"a",(function(){return i}));var r=n(3),o="libraryEditor.utils",i={name:[{required:!0,msg:function(){return r.a.getPhrase(o,"libraryNameRequired")}},{maxLength:255,msg:function(){return r.a.getPhrase(o,"libraryNameExceeds")}}]}},1064:function(e,t,n){"use strict";n.d(t,"a",(function(){return a}));var r=n(3),o=n(1058),i=r.a.encloseNamespace("libraryEditor.utils"),a={name:[{required:!0,msg:function(){return i("videoTitleRequired")}}],folderId:[{required:!0,msg:function(){return i("uploadFolderRequired")}}],libraryId:[{required:!0,msg:function(){return i("uploadLibraryRequired")}}],episodeNumber:function(e,t,n){return e&&e<1?i("episodeNumberLessThanOne"):e&&e>255?i("episodeNumberExceeds"):e&&e%1!=0?i("episodeNumberNotWhole"):n.season&&n.season.get("number")>=0&&null===e?i("episodeNumberNoSeason"):""},season:function(e,t,n){return n.season&&n.season.get("number")||e&&e.number||!n.episodeNumber?"":i("seasonNoEpisodeNumber")},productionYear:function(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];return o.e.productionYear.apply(null,t)}}},1077:function(e,t,n){"use strict";function r(e){return(r="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}function o(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,r.key,r)}}function i(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function a(e,t){return(a=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(e,t){return e.__proto__=t,e})(e,t)}function u(e){var t=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(e){return!1}}();return function(){var n,r=c(e);if(t){var o=c(this).constructor;n=Reflect.construct(r,arguments,o)}else n=r.apply(this,arguments);return s(this,n)}}function s(e,t){if(t&&("object"===r(t)||"function"==typeof t))return t;if(void 0!==t)throw new TypeError("Derived constructors may only return object or undefined");return function(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}(e)}function c(e){return(c=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(e){return e.__proto__||Object.getPrototypeOf(e)})(e)}n.d(t,"a",(function(){return l}));var l=function(e){!function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),Object.defineProperty(e,"prototype",{writable:!1}),t&&a(e,t)}(c,e);var t,n,r,s=u(c);function c(){return i(this,c),s.apply(this,arguments)}return t=c,n&&o(t.prototype,n),r&&o(t,r),Object.defineProperty(t,"prototype",{writable:!1}),t}(n(2).a.Collection)},1117:function(e,t,n){e.exports={requiredStar:"_3S5iJ",disabled:"_3iZQ5",formGroup:"B4xS9",suggestEdit:"_3n3sM",programTitle:"_3bWJB",description:"_3qayV",seriesTitle:"_3ojjo",broadcastDate:"_2hA-0",channel:"_1SMGG",rating:"_3AkUv",productionYear:"_1DYCl",distributors:"_2CbiR",productionCompanies:"_3hB5o",directors:"ksEaA",producers:"h7P2B",episodeNumber:"_3fMUg",seasonNumber:"GwqaB",icon:"quxL2",infoSvgContainer:"_18UDY"}},1212:function(e,t,n){e.exports={selectRating:"_1I6jj",removeRating:"_1ze5G",disabled:"_2hO8J",disabledSelected:"mnQ5O"}},1215:function(e,t,n){"use strict";var r=n(1),o=n(6),i=n(2),a=n(144),u=n(493),s=n(1271),c=n.n(s),l=n(1212),f=n.n(l);function d(e){return(d="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(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,r.key,r)}}function g(e,t){return(g=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(e,t){return e.__proto__=t,e})(e,t)}function m(e){var t=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(e){return!1}}();return function(){var n,r=b(e);if(t){var o=b(this).constructor;n=Reflect.construct(r,arguments,o)}else n=r.apply(this,arguments);return h(this,n)}}function h(e,t){if(t&&("object"===d(t)||"function"==typeof t))return t;if(void 0!==t)throw new TypeError("Derived constructors may only return object or undefined");return function(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}(e)}function b(e){return(b=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(e){return e.__proto__||Object.getPrototypeOf(e)})(e)}var y=function(e){!function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),Object.defineProperty(e,"prototype",{writable:!1}),t&&g(e,t)}(u,e);var t,n,r,i=m(u);function u(e){return function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,u),i.call(this,e)}return t=u,(n=[{key:"name",get:function(){return"SelectRatingItemComponent"}},{key:"template",get:function(){return c.a}},{key:"tagName",get:function(){return"li"}},{key:"attributes",get:function(){return{title:this.options.editable?this.model.get("name"):""}}},{key:"className",get:function(){var e="";return e+="btn ".concat(this.options.editable?"btn-light":"".concat(f.a.disabled)),this.model.get("selected")&&(e+=this.options.editable?" active":" ".concat(f.a.disabledSelected)),e}},{key:"events",value:function(){return{click:"onClick"}}},{key:"behaviors",get:function(){var e=this.options.editable?this.options.model.get("name"):"";return[{behaviorClass:a.a,title:e}]}},{key:"onClick",value:function(){this.options.editable&&o.Radio.channel(this.options.channelName).trigger("select:rating",this.model)}},{key:"onRender",value:function(){this.resetClassName()}}])&&p(t.prototype,n),r&&p(t,r),Object.defineProperty(t,"prototype",{writable:!1}),u}(i.a.Component);function v(e){return(v="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(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,r.key,r)}}function w(e,t){return(w=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(e,t){return e.__proto__=t,e})(e,t)}function E(e){var t=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(e){return!1}}();return function(){var n,r=R(e);if(t){var o=R(this).constructor;n=Reflect.construct(r,arguments,o)}else n=r.apply(this,arguments);return O(this,n)}}function O(e,t){if(t&&("object"===v(t)||"function"==typeof t))return t;if(void 0!==t)throw new TypeError("Derived constructors may only return object or undefined");return function(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}(e)}function R(e){return(R=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(e){return e.__proto__||Object.getPrototypeOf(e)})(e)}var x=function(e){!function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),Object.defineProperty(e,"prototype",{writable:!1}),t&&w(e,t)}(i,e);var t,n,r,o=E(i);function i(e){return function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,i),o.call(this,e)}return t=i,(n=[{key:"name",get:function(){return"SelectRatingCollectionComponent"}},{key:"tagName",get:function(){return"ul"}},{key:"className",get:function(){return"rating-group btn-group p-0 m-0"}},{key:"childView",get:function(){return y}},{key:"childViewOptions",get:function(){return{channelName:this.options.channelName,currentRatingId:this.options.currentRatingId,editable:this.options.editable}}}])&&P(t.prototype,n),r&&P(t,r),Object.defineProperty(t,"prototype",{writable:!1}),i}(i.a.ComponentCollection),k=n(12),N=n(3),T=n(0),S=n(201),C=n(1272),_=n.n(C),j=n(1117),D=n.n(j);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})(e)}function M(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,r.key,r)}}function q(e,t){return(q=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(e,t){return e.__proto__=t,e})(e,t)}function L(e){var t=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(e){return!1}}();return function(){var n,r=B(e);if(t){var o=B(this).constructor;n=Reflect.construct(r,arguments,o)}else n=r.apply(this,arguments);return F(this,n)}}function F(e,t){if(t&&("object"===I(t)||"function"==typeof t))return t;if(void 0!==t)throw new TypeError("Derived constructors may only return object or undefined");return function(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}(e)}function B(e){return(B=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(e){return e.__proto__||Object.getPrototypeOf(e)})(e)}n.d(t,"a",(function(){return A}));var A=function(e){!function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),Object.defineProperty(e,"prototype",{writable:!1}),t&&q(e,t)}(c,e);var t,n,i,s=L(c);function c(e){return function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,c),s.call(this,e)}return t=c,(n=[{key:"name",get:function(){return"SelectRatingComponent"}},{key:"channelName",get:function(){return"".concat(this.name).concat(this.cid)}},{key:"lang",get:function(){return"shared.selectRating"}},{key:"events",value:function(){return{"click .remove-rating":"onRemoveRating"}}},{key:"regions",value:function(){return{ratings:{el:".ratings-region",replaceElement:!0}}}},{key:"template",get:function(){return _.a}},{key:"behaviors",get:function(){return[{behaviorClass:a.a,selector:".remove-rating",title:N.a.getPhrase(this.lang,"removeTooltip")}]}},{key:"appLinks",get:function(){return{".suggest-rating":{application:T.b.LIBRARY_EDITOR,action:T.a.LibraryEditor.SUGGEST_AN_EDIT,args:[this.options.videoId],params:{metadata:S.MetadataType.Rating}}}}},{key:"defaults",get:function(){return{editable:!0}}},{key:"initialize",value:function(){this.setViewCollection(),this.setCurrentRating(this.model),this.bindListeners()}},{key:"bindListeners",value:function(){this.listenTo(this.channelName,"select:rating",this.onRatingSelected)}},{key:"setCurrentRating",value:function(e){k.l.setRating(e,this.viewCollection)}},{key:"onRatingSelected",value:function(e){this.setCurrentRating(e);var t=k.c.getSelected(this.viewCollection);this.updateRating(t)}},{key:"onRemoveRating",value:function(e){e.preventDefault(),this.$(".remove-rating").tooltip("dispose"),this.setCurrentRating(null);var t=this.collection.findWhere({value:0});return this.updateRating(t),!1}},{key:"updateRating",value:function(e){o.Radio.channel(this.options.parentChannelName).trigger("select:rating",e),this.render()}},{key:"setViewCollection",value:function(){var e=r.filter(this.collection.toJSON(),(function(e){return 0!==e.value}));return this.viewCollection=new u.a(e)}},{key:"viewOptions",value:function(){var e=k.c.getSelected(this.viewCollection);return{styles:r.extend(D.a,f.a),showRemove:!this.options.hideRemove&&e&&this.options.editable,editable:this.options.editable,hideHeaderText:this.options.hideHeaderText}}},{key:"renderRatingCollectionComponent",value:function(){this.showChildView("ratings",new x({collection:this.viewCollection,channelName:this.channelName,editable:this.options.editable}))}},{key:"onRender",value:function(){this.renderRatingCollectionComponent()}}])&&M(t.prototype,n),i&&M(t,i),Object.defineProperty(t,"prototype",{writable:!1}),c}(i.a.Component)},1271:function(e,t,n){var r=n(10);e.exports=(r.default||r).template({compiler:[8,">= 4.3.0"],main:function(e,t,n,r,o){var i;e.propertyIsEnumerable;return"\r\n"+e.escapeExpression("function"==typeof(i=null!=(i=n.code||(null!=t?t.code:t))?i:e.hooks.helperMissing)?i.call(null!=t?t:e.nullContext||{},{name:"code",hash:{},data:o}):i)},useData:!0})},1272:function(e,t,n){var r=n(10);e.exports=(r.default||r).template({1:function(e,t,n,r,o){e.propertyIsEnumerable;var i,a=null!=t?t:e.nullContext||{};return' <label class="'+(null!=(i=n.unless.call(a,null!=(i=null!=t?t.options:t)?i.editable:i,{name:"unless",hash:{},fn:e.program(2,o,0),inverse:e.noop,data:o}))?i:"")+'">'+e.escapeExpression((n.lang||t&&t.lang||e.hooks.helperMissing).call(a,"rating",{name:"lang",hash:{},data:o}))+"</label>\r\n "+(null!=(i=n.unless.call(a,null!=(i=null!=t?t.options:t)?i.editable:i,{name:"unless",hash:{},fn:e.program(4,o,0),inverse:e.noop,data:o}))?i:"")+"\r\n"},2:function(e,t,n,r,o){return"d-inline-block"},4:function(e,t,n,r,o){e.propertyIsEnumerable;var i,a=e.escapeExpression;return'<span class="'+a(e.lambda(null!=(i=null!=(i=null!=t?t.options:t)?i.styles:i)?i.suggestEdit:i,t))+'">- <a class="suggest-rating">'+a((n.lang||t&&t.lang||e.hooks.helperMissing).call(null!=t?t:e.nullContext||{},"suggestEdit",{name:"lang",hash:{},data:o}))+"</a></span><br>"},6:function(e,t,n,r,o){e.propertyIsEnumerable;var i,a=e.escapeExpression;return'<span class="text-muted mx-2 remove-rating '+a(e.lambda(null!=(i=null!=(i=null!=t?t.options:t)?i.styles:i)?i.removeRating:i,t))+'">'+a((n.lang||t&&t.lang||e.hooks.helperMissing).call(null!=t?t:e.nullContext||{},"remove",{name:"lang",hash:{},data:o}))+"</span>"},compiler:[8,">= 4.3.0"],main:function(e,t,n,r,o){e.propertyIsEnumerable;var i,a=e.lambda,u=e.escapeExpression,s=null!=t?t:e.nullContext||{};return'<div class="edit-rating form-group '+u(a(null!=(i=null!=(i=null!=t?t.options:t)?i.styles:i)?i.selectRating:i,t))+" "+u(a(null!=(i=null!=(i=null!=t?t.options:t)?i.styles:i)?i.rating:i,t))+'">\r\n'+(null!=(i=n.unless.call(s,null!=(i=null!=t?t.options:t)?i.hideHeaderText:i,{name:"unless",hash:{},fn:e.program(1,o,0),inverse:e.noop,data:o}))?i:"")+' <div>\r\n <div class="ratings-region" name="rating"></div>\r\n '+(null!=(i=n.if.call(s,null!=(i=null!=t?t.options:t)?i.showRemove:i,{name:"if",hash:{},fn:e.program(6,o,0),inverse:e.noop,data:o}))?i:"")+'\r\n <div class="form-feedback"></div>\r\n </div>\r\n</div>'},useData:!0})}}]);