@clickview/library-editor 1.1.26-rc.0 → 1.1.26

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 (596) hide show
  1. package/dist/css/1.chunk.css.map +1 -0
  2. package/dist/css/10.chunk.css.map +1 -0
  3. package/dist/css/11.chunk.css +137 -0
  4. package/dist/css/11.chunk.css.map +1 -0
  5. package/dist/css/12.chunk.css.map +1 -0
  6. package/dist/css/13.chunk.css.map +1 -0
  7. package/dist/css/14.chunk.css.map +1 -0
  8. package/dist/css/16.chunk.css.map +1 -0
  9. package/dist/css/17.chunk.css.map +1 -0
  10. package/dist/css/18.chunk.css +20 -0
  11. package/dist/css/18.chunk.css.map +1 -0
  12. package/dist/css/2.chunk.css +145 -0
  13. package/dist/css/2.chunk.css.map +1 -0
  14. package/dist/css/21.chunk.css.map +1 -0
  15. package/dist/css/22.chunk.css.map +1 -0
  16. package/dist/css/23.chunk.css.map +1 -0
  17. package/dist/css/25.chunk.css.map +1 -0
  18. package/dist/css/26.chunk.css.map +1 -0
  19. package/dist/css/28.chunk.css.map +1 -0
  20. package/dist/css/29.chunk.css.map +1 -0
  21. package/dist/css/3.chunk.css.map +1 -0
  22. package/dist/css/30.chunk.css.map +1 -0
  23. package/dist/css/31.chunk.css.map +1 -0
  24. package/dist/css/32.chunk.css.map +1 -0
  25. package/dist/css/33.chunk.css.map +1 -0
  26. package/dist/css/34.chunk.css +21 -0
  27. package/dist/css/34.chunk.css.map +1 -0
  28. package/dist/css/35.chunk.css +20 -0
  29. package/dist/css/35.chunk.css.map +1 -0
  30. package/dist/css/36.chunk.css +14 -0
  31. package/dist/css/36.chunk.css.map +1 -0
  32. package/dist/css/37.chunk.css.map +1 -0
  33. package/dist/css/38.chunk.css.map +1 -0
  34. package/dist/css/40.chunk.css.map +1 -0
  35. package/dist/css/41.chunk.css.map +1 -0
  36. package/dist/css/42.chunk.css.map +1 -0
  37. package/dist/css/43.chunk.css.map +1 -0
  38. package/dist/css/44.chunk.css.map +1 -0
  39. package/dist/css/45.chunk.css.map +1 -0
  40. package/dist/css/46.chunk.css.map +1 -0
  41. package/dist/css/47.chunk.css.map +1 -0
  42. package/dist/css/48.chunk.css.map +1 -0
  43. package/dist/css/49.chunk.css +35 -0
  44. package/dist/css/49.chunk.css.map +1 -0
  45. package/dist/css/50.chunk.css.map +1 -0
  46. package/dist/css/51.chunk.css.map +1 -0
  47. package/dist/css/52.chunk.css +66 -0
  48. package/dist/css/52.chunk.css.map +1 -0
  49. package/dist/css/55.chunk.css.map +1 -0
  50. package/dist/css/56.chunk.css.map +1 -0
  51. package/dist/css/58.chunk.css.map +1 -0
  52. package/dist/css/59.chunk.css.map +1 -0
  53. package/dist/css/6.chunk.css.map +1 -0
  54. package/dist/css/60.chunk.css +18 -0
  55. package/dist/css/60.chunk.css.map +1 -0
  56. package/dist/css/62.chunk.css.map +1 -0
  57. package/dist/css/63.chunk.css +170 -0
  58. package/dist/css/63.chunk.css.map +1 -0
  59. package/dist/css/67.chunk.css +78 -0
  60. package/dist/css/67.chunk.css.map +1 -0
  61. package/dist/css/68.chunk.css +17 -0
  62. package/dist/css/68.chunk.css.map +1 -0
  63. package/dist/css/69.chunk.css +17 -0
  64. package/dist/css/69.chunk.css.map +1 -0
  65. package/dist/css/7.chunk.css.map +1 -0
  66. package/dist/css/70.chunk.css +23 -0
  67. package/dist/css/70.chunk.css.map +1 -0
  68. package/dist/css/71.chunk.css +40 -0
  69. package/dist/css/71.chunk.css.map +1 -0
  70. package/dist/css/72.chunk.css +16 -0
  71. package/dist/css/72.chunk.css.map +1 -0
  72. package/dist/css/73.chunk.css +37 -0
  73. package/dist/css/73.chunk.css.map +1 -0
  74. package/dist/css/74.chunk.css +29 -0
  75. package/dist/css/74.chunk.css.map +1 -0
  76. package/dist/css/75.chunk.css +6 -0
  77. package/dist/css/75.chunk.css.map +1 -0
  78. package/dist/css/76.chunk.css +6 -0
  79. package/dist/css/76.chunk.css.map +1 -0
  80. package/dist/css/8.chunk.css.map +1 -0
  81. package/dist/css/library-editor-app.css.map +1 -0
  82. package/dist/libs/common/src/react/flight/enums/RequestStatus.d.ts +6 -0
  83. package/dist/libs/common/src/react/flight/enums/index.d.ts +1 -0
  84. package/dist/libs/common/src/react/flight/interfaces/FlightState.d.ts +22 -0
  85. package/dist/libs/common/src/react/flight/interfaces/NormalizeOptions.d.ts +4 -0
  86. package/dist/libs/common/src/react/flight/interfaces/Request.d.ts +29 -0
  87. package/dist/libs/common/src/react/flight/interfaces/UpdateStateOptions.d.ts +15 -0
  88. package/dist/libs/common/src/react/interfaces/ApplicationData.d.ts +3 -0
  89. package/dist/libs/common/src/react/interfaces/ApplicationState.d.ts +8 -0
  90. package/dist/libs/common/src/react/interfaces/BaseReducerActions.d.ts +4 -0
  91. package/dist/libs/common/src/react/interfaces/index.d.ts +4 -0
  92. package/dist/libs/shared/src/enums/MasterObjectTypes.d.ts +8 -0
  93. package/dist/libs/shared/src/enums/ObjectOwnerType.d.ts +4 -0
  94. package/dist/libs/shared/src/enums/UploadInteractionType.d.ts +4 -0
  95. package/dist/libs/shared/src/interfaces/collections/SubtitleCollection.d.ts +3 -0
  96. package/dist/libs/shared/src/interfaces/models/FileUpload.d.ts +20 -0
  97. package/dist/libs/shared/src/interfaces/models/Language.d.ts +4 -0
  98. package/dist/libs/shared/src/interfaces/models/Pdf.d.ts +4 -0
  99. package/dist/libs/shared/src/interfaces/models/Subtitle.d.ts +7 -0
  100. package/dist/libs/shared/src/interfaces/requests/UpdateObjectChannel.d.ts +3 -0
  101. package/dist/libs/shared/src/interfaces/requests/UpdateObjectRating.d.ts +3 -0
  102. package/dist/libs/shared/src/interfaces/requests/UpdateResourceRequest.d.ts +3 -0
  103. package/dist/libs/shared/src/interfaces/services/BaseConfigDataService.d.ts +5 -0
  104. package/dist/libs/shared/src/legacy/behaviors/file-drop/FileDropBehavior.d.ts +19 -0
  105. package/dist/libs/shared/src/legacy/behaviors/file-drop/FileDropHelper.d.ts +4 -0
  106. package/dist/libs/shared/src/legacy/behaviors/file-drop/FileDropMaskBehavior.d.ts +19 -0
  107. package/dist/libs/shared/src/legacy/behaviors/file-select/FileSelectBehavior.d.ts +16 -0
  108. package/dist/libs/shared/src/legacy/components/file-select/FileSelectComponent.d.ts +29 -0
  109. package/dist/libs/shared/src/legacy/components/file-uploads/FileUploadComponent.d.ts +15 -0
  110. package/dist/libs/shared/src/legacy/components/resource-item/ResourceItemComponent.d.ts +22 -0
  111. package/dist/libs/shared/src/legacy/components/subtitle-item/SubtitleItemComponent.d.ts +17 -0
  112. package/dist/libs/shared/src/legacy/errors/too-many-files/TooManyFilesError.d.ts +7 -0
  113. package/dist/libs/shared/src/legacy/errors/too-many-resources/TooManyResourcesError.d.ts +8 -0
  114. package/dist/libs/shared/src/legacy/errors/too-many-subtitles/TooManySubtitlesError.d.ts +8 -0
  115. package/dist/libs/shared/src/utils/SubtitleHelper.d.ts +9 -0
  116. package/dist/libs/shared/src/utils/VideoDetailsHelper.d.ts +21 -0
  117. package/dist/scripts/0-1c2bb7e28a.chunk.js +1 -0
  118. package/dist/scripts/0-1dbc79e4e7.chunk.js +1 -0
  119. package/dist/scripts/0-93276429bf.chunk.js +1 -0
  120. package/dist/scripts/0.chunk.js +1039 -0
  121. package/dist/scripts/0.chunk.js.map +1 -0
  122. package/dist/scripts/1-480e5932a6.chunk.js +1 -0
  123. package/dist/scripts/1-6051b28de6.chunk.js +1 -0
  124. package/dist/scripts/1-b85c11fc30.chunk.js +1 -0
  125. package/dist/scripts/1.chunk.js +442 -0
  126. package/dist/scripts/1.chunk.js.map +1 -0
  127. package/dist/scripts/10-3ff370d548.chunk.js +1 -0
  128. package/dist/scripts/10-923c4b075a.chunk.js +1 -0
  129. package/dist/scripts/10-e2fea45a6c.chunk.js +1 -0
  130. package/dist/scripts/10.chunk.js +820 -0
  131. package/dist/scripts/10.chunk.js.map +1 -0
  132. package/dist/scripts/11-3dec7d2c7e.chunk.js +11 -0
  133. package/dist/scripts/11-74bc3f2d9f.chunk.js +11 -0
  134. package/dist/scripts/11.chunk.js +4091 -0
  135. package/dist/scripts/11.chunk.js.map +1 -0
  136. package/dist/scripts/12-07999b80e0.chunk.js +1 -0
  137. package/dist/scripts/12-24bd360be0.chunk.js +1 -0
  138. package/dist/scripts/12-e522e64a94.chunk.js +1 -0
  139. package/dist/scripts/12.chunk.js +555 -0
  140. package/dist/scripts/12.chunk.js.map +1 -0
  141. package/dist/scripts/13-081c0e5887.chunk.js +1 -0
  142. package/dist/scripts/13-54fe4fe53b.chunk.js +1 -0
  143. package/dist/scripts/13-958a8fd026.chunk.js +1 -0
  144. package/dist/scripts/13.chunk.js +380 -0
  145. package/dist/scripts/13.chunk.js.map +1 -0
  146. package/dist/scripts/14-16f84b2721.chunk.js +1 -0
  147. package/dist/scripts/14-45cd4dc6ef.chunk.js +1 -0
  148. package/dist/scripts/14-68c85d6674.chunk.js +1 -0
  149. package/dist/scripts/14.chunk.js +2386 -0
  150. package/dist/scripts/14.chunk.js.map +1 -0
  151. package/dist/scripts/15-12fa4c3471.chunk.js +1 -0
  152. package/dist/scripts/15-5544e6bde6.chunk.js +1 -0
  153. package/dist/scripts/15-8c96c3288e.chunk.js +1 -0
  154. package/dist/scripts/15.chunk.js +314 -0
  155. package/dist/scripts/15.chunk.js.map +1 -0
  156. package/dist/scripts/16-670c43d26f.chunk.js +1 -0
  157. package/dist/scripts/16-742a776f88.chunk.js +1 -0
  158. package/dist/scripts/16-7bcffb06e7.chunk.js +1 -0
  159. package/dist/scripts/16.chunk.js +1290 -0
  160. package/dist/scripts/16.chunk.js.map +1 -0
  161. package/dist/scripts/17-140fec014b.chunk.js +1 -0
  162. package/dist/scripts/17-b5e44e8b17.chunk.js +1 -0
  163. package/dist/scripts/17-f6b0159da3.chunk.js +1 -0
  164. package/dist/scripts/17.chunk.js +381 -0
  165. package/dist/scripts/17.chunk.js.map +1 -0
  166. package/dist/scripts/18.chunk.js +393 -0
  167. package/dist/scripts/18.chunk.js.map +1 -0
  168. package/dist/scripts/19.chunk.js +364 -0
  169. package/dist/scripts/19.chunk.js.map +1 -0
  170. package/dist/scripts/2-0c5fba8b60.chunk.js +1 -0
  171. package/dist/scripts/2-7cc9176e8a.chunk.js +1 -0
  172. package/dist/scripts/2.chunk.js +523 -0
  173. package/dist/scripts/2.chunk.js.map +1 -0
  174. package/dist/scripts/20-4d88ede0e0.chunk.js +1 -0
  175. package/dist/scripts/20-732a7a549d.chunk.js +1 -0
  176. package/dist/scripts/20-df9f6f7661.chunk.js +1 -0
  177. package/dist/scripts/20.chunk.js +317 -0
  178. package/dist/scripts/20.chunk.js.map +1 -0
  179. package/dist/scripts/21-0b84d33cef.chunk.js +1 -0
  180. package/dist/scripts/21-c9983ca8ad.chunk.js +1 -0
  181. package/dist/scripts/21-ee85b6d208.chunk.js +1 -0
  182. package/dist/scripts/21.chunk.js +531 -0
  183. package/dist/scripts/21.chunk.js.map +1 -0
  184. package/dist/scripts/22-151cf38018.chunk.js +1 -0
  185. package/dist/scripts/22-3b2207c8f6.chunk.js +1 -0
  186. package/dist/scripts/22-6e6ed9f607.chunk.js +1 -0
  187. package/dist/scripts/22.chunk.js +354 -0
  188. package/dist/scripts/22.chunk.js.map +1 -0
  189. package/dist/scripts/23-1af21bf234.chunk.js +1 -0
  190. package/dist/scripts/23-94f9fe4222.chunk.js +1 -0
  191. package/dist/scripts/23-ab8f73ee87.chunk.js +1 -0
  192. package/dist/scripts/23.chunk.js +604 -0
  193. package/dist/scripts/23.chunk.js.map +1 -0
  194. package/dist/scripts/24-74ab289589.chunk.js +1 -0
  195. package/dist/scripts/24-7aa9b43511.chunk.js +1 -0
  196. package/dist/scripts/24-d1ffdd4755.chunk.js +1 -0
  197. package/dist/scripts/24.chunk.js +318 -0
  198. package/dist/scripts/24.chunk.js.map +1 -0
  199. package/dist/scripts/25-5a38ce3533.chunk.js +1 -0
  200. package/dist/scripts/25-76d9011eea.chunk.js +1 -0
  201. package/dist/scripts/25-866cfc0ef5.chunk.js +1 -0
  202. package/dist/scripts/25.chunk.js +365 -0
  203. package/dist/scripts/25.chunk.js.map +1 -0
  204. package/dist/scripts/26-d166e3c313.chunk.js +1 -0
  205. package/dist/scripts/26-e53ba8e00f.chunk.js +1 -0
  206. package/dist/scripts/26-ea028a6276.chunk.js +1 -0
  207. package/dist/scripts/26.chunk.js +442 -0
  208. package/dist/scripts/26.chunk.js.map +1 -0
  209. package/dist/scripts/27-2109d41afa.chunk.js +1 -0
  210. package/dist/scripts/27-c1241fcd84.chunk.js +1 -0
  211. package/dist/scripts/27-ee88c84482.chunk.js +1 -0
  212. package/dist/scripts/27.chunk.js +3630 -0
  213. package/dist/scripts/27.chunk.js.map +1 -0
  214. package/dist/scripts/28-5c540e74cc.chunk.js +1 -0
  215. package/dist/scripts/28-76b9766891.chunk.js +1 -0
  216. package/dist/scripts/28-e490147f6b.chunk.js +1 -0
  217. package/dist/scripts/28.chunk.js +3172 -0
  218. package/dist/scripts/28.chunk.js.map +1 -0
  219. package/dist/scripts/29-2da59b1589.chunk.js +1 -0
  220. package/dist/scripts/29-69389908f8.chunk.js +1 -0
  221. package/dist/scripts/29-bb7e39304b.chunk.js +1 -0
  222. package/dist/scripts/29.chunk.js +3090 -0
  223. package/dist/scripts/29.chunk.js.map +1 -0
  224. package/dist/scripts/3-6e67dd4b74.chunk.js +1 -0
  225. package/dist/scripts/3-81b501ac1e.chunk.js +1 -0
  226. package/dist/scripts/3-c69e4454ce.chunk.js +1 -0
  227. package/dist/scripts/3.chunk.js +845 -0
  228. package/dist/scripts/3.chunk.js.map +1 -0
  229. package/dist/scripts/30-9d32d88d76.chunk.js +1 -0
  230. package/dist/scripts/30-a1df3e37da.chunk.js +1 -0
  231. package/dist/scripts/30-fa390c35f6.chunk.js +1 -0
  232. package/dist/scripts/30.chunk.js +1851 -0
  233. package/dist/scripts/30.chunk.js.map +1 -0
  234. package/dist/scripts/31-ce31250e42.chunk.js +1 -0
  235. package/dist/scripts/31-f15802825c.chunk.js +1 -0
  236. package/dist/scripts/31-fc63c4629d.chunk.js +1 -0
  237. package/dist/scripts/31.chunk.js +958 -0
  238. package/dist/scripts/31.chunk.js.map +1 -0
  239. package/dist/scripts/32-1ad8193581.chunk.js +1 -0
  240. package/dist/scripts/32-4173874dbe.chunk.js +1 -0
  241. package/dist/scripts/32-9bca57f408.chunk.js +1 -0
  242. package/dist/scripts/32.chunk.js +1235 -0
  243. package/dist/scripts/32.chunk.js.map +1 -0
  244. package/dist/scripts/33-20ac0ab4a1.chunk.js +1 -0
  245. package/dist/scripts/33-350334db4c.chunk.js +1 -0
  246. package/dist/scripts/33-7efae85b8b.chunk.js +1 -0
  247. package/dist/scripts/33.chunk.js +958 -0
  248. package/dist/scripts/33.chunk.js.map +1 -0
  249. package/dist/scripts/34-3adf309726.chunk.js +1 -0
  250. package/dist/scripts/34-c4f0495750.chunk.js +1 -0
  251. package/dist/scripts/34-f6eea83a09.chunk.js +1 -0
  252. package/dist/scripts/34.chunk.js +990 -0
  253. package/dist/scripts/34.chunk.js.map +1 -0
  254. package/dist/scripts/35-17b30890a5.chunk.js +1 -0
  255. package/dist/scripts/35-7f90628b77.chunk.js +1 -0
  256. package/dist/scripts/35-9c3899dfbd.chunk.js +1 -0
  257. package/dist/scripts/35.chunk.js +518 -0
  258. package/dist/scripts/35.chunk.js.map +1 -0
  259. package/dist/scripts/36-2ec95df618.chunk.js +1 -0
  260. package/dist/scripts/36-b5ad543fba.chunk.js +1 -0
  261. package/dist/scripts/36-cdbe95bd06.chunk.js +1 -0
  262. package/dist/scripts/36.chunk.js +335 -0
  263. package/dist/scripts/36.chunk.js.map +1 -0
  264. package/dist/scripts/37-3f3a603b60.chunk.js +1 -0
  265. package/dist/scripts/37-6fa4b8fc60.chunk.js +1 -0
  266. package/dist/scripts/37-c649a307d4.chunk.js +1 -0
  267. package/dist/scripts/37.chunk.js +236 -0
  268. package/dist/scripts/37.chunk.js.map +1 -0
  269. package/dist/scripts/38-1c98f19489.chunk.js +1 -0
  270. package/dist/scripts/38-6fc346f964.chunk.js +1 -0
  271. package/dist/scripts/38-7ffe535b0d.chunk.js +1 -0
  272. package/dist/scripts/38.chunk.js +315 -0
  273. package/dist/scripts/38.chunk.js.map +1 -0
  274. package/dist/scripts/39-13d6669c3f.chunk.js +1 -0
  275. package/dist/scripts/39-71c4bb46b2.chunk.js +1 -0
  276. package/dist/scripts/39-e5983a5d53.chunk.js +1 -0
  277. package/dist/scripts/39.chunk.js +107 -0
  278. package/dist/scripts/39.chunk.js.map +1 -0
  279. package/dist/scripts/4-435484d217.chunk.js +1 -0
  280. package/dist/scripts/4-7274621693.chunk.js +1 -0
  281. package/dist/scripts/4-85ba8523ad.chunk.js +1 -0
  282. package/dist/scripts/4.chunk.js +335 -0
  283. package/dist/scripts/4.chunk.js.map +1 -0
  284. package/dist/scripts/40-2ecbd41570.chunk.js +1 -0
  285. package/dist/scripts/40-a691a401ff.chunk.js +1 -0
  286. package/dist/scripts/40-f1d72b1049.chunk.js +1 -0
  287. package/dist/scripts/40.chunk.js +2493 -0
  288. package/dist/scripts/40.chunk.js.map +1 -0
  289. package/dist/scripts/41-0368ba16dc.chunk.js +1 -0
  290. package/dist/scripts/41-85fcb15184.chunk.js +1 -0
  291. package/dist/scripts/41-bb9aef24f7.chunk.js +1 -0
  292. package/dist/scripts/41.chunk.js +1782 -0
  293. package/dist/scripts/41.chunk.js.map +1 -0
  294. package/dist/scripts/42-389acb6e55.chunk.js +1 -0
  295. package/dist/scripts/42-3ef41f40f5.chunk.js +1 -0
  296. package/dist/scripts/42-61a626d7f4.chunk.js +1 -0
  297. package/dist/scripts/42.chunk.js +2327 -0
  298. package/dist/scripts/42.chunk.js.map +1 -0
  299. package/dist/scripts/43-2fe5b1c9cc.chunk.js +1 -0
  300. package/dist/scripts/43-49f13dab14.chunk.js +1 -0
  301. package/dist/scripts/43-a5b882d502.chunk.js +1 -0
  302. package/dist/scripts/43.chunk.js +1206 -0
  303. package/dist/scripts/43.chunk.js.map +1 -0
  304. package/dist/scripts/44-0703eb0ad8.chunk.js +1 -0
  305. package/dist/scripts/44-de22428999.chunk.js +1 -0
  306. package/dist/scripts/44-ee6a740a16.chunk.js +1 -0
  307. package/dist/scripts/44.chunk.js +2245 -0
  308. package/dist/scripts/44.chunk.js.map +1 -0
  309. package/dist/scripts/45-806dd5b78c.chunk.js +1 -0
  310. package/dist/scripts/45-da34a8b6b2.chunk.js +1 -0
  311. package/dist/scripts/45-e4a92a40fd.chunk.js +1 -0
  312. package/dist/scripts/45.chunk.js +1065 -0
  313. package/dist/scripts/45.chunk.js.map +1 -0
  314. package/dist/scripts/46-4aa05464fe.chunk.js +1 -0
  315. package/dist/scripts/46-cccef3e874.chunk.js +1 -0
  316. package/dist/scripts/46-ebf8eee4ac.chunk.js +1 -0
  317. package/dist/scripts/46.chunk.js +655 -0
  318. package/dist/scripts/46.chunk.js.map +1 -0
  319. package/dist/scripts/47-1e3d829757.chunk.js +1 -0
  320. package/dist/scripts/47-56d22af6ba.chunk.js +1 -0
  321. package/dist/scripts/47-c61fa52c53.chunk.js +1 -0
  322. package/dist/scripts/47.chunk.js +736 -0
  323. package/dist/scripts/47.chunk.js.map +1 -0
  324. package/dist/scripts/48-877e9e02b8.chunk.js +1 -0
  325. package/dist/scripts/48-e05ab3ecac.chunk.js +1 -0
  326. package/dist/scripts/48-fc96b968fc.chunk.js +1 -0
  327. package/dist/scripts/48.chunk.js +994 -0
  328. package/dist/scripts/48.chunk.js.map +1 -0
  329. package/dist/scripts/49-13c5f8e87d.chunk.js +1 -0
  330. package/dist/scripts/49-4a6c119f58.chunk.js +1 -0
  331. package/dist/scripts/49-f9151c7e06.chunk.js +1 -0
  332. package/dist/scripts/49.chunk.js +761 -0
  333. package/dist/scripts/49.chunk.js.map +1 -0
  334. package/dist/scripts/5-1ba89c4774.chunk.js +1 -0
  335. package/dist/scripts/5-515b264fbc.chunk.js +1 -0
  336. package/dist/scripts/5-d6a7d71167.chunk.js +1 -0
  337. package/dist/scripts/5.chunk.js +15 -0
  338. package/dist/scripts/5.chunk.js.map +1 -0
  339. package/dist/scripts/50-0741587a02.chunk.js +1 -0
  340. package/dist/scripts/50-3924907655.chunk.js +1 -0
  341. package/dist/scripts/50-4de0b758d5.chunk.js +1 -0
  342. package/dist/scripts/50.chunk.js +530 -0
  343. package/dist/scripts/50.chunk.js.map +1 -0
  344. package/dist/scripts/51-a5f1309ada.chunk.js +1 -0
  345. package/dist/scripts/51-dca2a9cc86.chunk.js +1 -0
  346. package/dist/scripts/51-ea33746146.chunk.js +1 -0
  347. package/dist/scripts/51.chunk.js +932 -0
  348. package/dist/scripts/51.chunk.js.map +1 -0
  349. package/dist/scripts/52-50230b48c8.chunk.js +1 -0
  350. package/dist/scripts/52-a3c8ed29ca.chunk.js +1 -0
  351. package/dist/scripts/52-bc48f1f9e8.chunk.js +1 -0
  352. package/dist/scripts/52.chunk.js +408 -0
  353. package/dist/scripts/52.chunk.js.map +1 -0
  354. package/dist/scripts/53-0e253f9f3e.chunk.js +1 -0
  355. package/dist/scripts/53-36007500cf.chunk.js +1 -0
  356. package/dist/scripts/53-d8f0dea552.chunk.js +1 -0
  357. package/dist/scripts/53.chunk.js +756 -0
  358. package/dist/scripts/53.chunk.js.map +1 -0
  359. package/dist/scripts/54-7cdbdcebf9.chunk.js +1 -0
  360. package/dist/scripts/54-d1bc70c7b5.chunk.js +1 -0
  361. package/dist/scripts/54-ead54d0b34.chunk.js +1 -0
  362. package/dist/scripts/54.chunk.js +681 -0
  363. package/dist/scripts/54.chunk.js.map +1 -0
  364. package/dist/scripts/55-3c60601030.chunk.js +1 -0
  365. package/dist/scripts/55-a5fa20b497.chunk.js +1 -0
  366. package/dist/scripts/55-e29d6a6ba9.chunk.js +1 -0
  367. package/dist/scripts/55.chunk.js +645 -0
  368. package/dist/scripts/55.chunk.js.map +1 -0
  369. package/dist/scripts/56-36d54fa08f.chunk.js +1 -0
  370. package/dist/scripts/56-370078d597.chunk.js +1 -0
  371. package/dist/scripts/56-df0a32000b.chunk.js +1 -0
  372. package/dist/scripts/56.chunk.js +346 -0
  373. package/dist/scripts/56.chunk.js.map +1 -0
  374. package/dist/scripts/57-6e622c6480.chunk.js +1 -0
  375. package/dist/scripts/57-a4f4d6fe41.chunk.js +1 -0
  376. package/dist/scripts/57-c1faec8b32.chunk.js +1 -0
  377. package/dist/scripts/57.chunk.js +422 -0
  378. package/dist/scripts/57.chunk.js.map +1 -0
  379. package/dist/scripts/58-17706ccb46.chunk.js +1 -0
  380. package/dist/scripts/58-a0fe201826.chunk.js +1 -0
  381. package/dist/scripts/58-e996405f2b.chunk.js +1 -0
  382. package/dist/scripts/58.chunk.js +437 -0
  383. package/dist/scripts/58.chunk.js.map +1 -0
  384. package/dist/scripts/59-0a7bdc86b0.chunk.js +1 -0
  385. package/dist/scripts/59-381a49ed7f.chunk.js +1 -0
  386. package/dist/scripts/59-4f2fcb6412.chunk.js +1 -0
  387. package/dist/scripts/59.chunk.js +342 -0
  388. package/dist/scripts/59.chunk.js.map +1 -0
  389. package/dist/scripts/6-40c8ba5007.chunk.js +1 -0
  390. package/dist/scripts/6-51a379e066.chunk.js +1 -0
  391. package/dist/scripts/6-b3d36065dc.chunk.js +1 -0
  392. package/dist/scripts/6.chunk.js +484 -0
  393. package/dist/scripts/6.chunk.js.map +1 -0
  394. package/dist/scripts/60-0d8896555f.chunk.js +1 -0
  395. package/dist/scripts/60-b4a91c86fa.chunk.js +1 -0
  396. package/dist/scripts/60-c57f161f18.chunk.js +1 -0
  397. package/dist/scripts/60.chunk.js +254 -0
  398. package/dist/scripts/60.chunk.js.map +1 -0
  399. package/dist/scripts/61-5d6e59d408.chunk.js +1 -0
  400. package/dist/scripts/61-7d81d27c31.chunk.js +1 -0
  401. package/dist/scripts/61-a342a0d501.chunk.js +1 -0
  402. package/dist/scripts/61.chunk.js +408 -0
  403. package/dist/scripts/61.chunk.js.map +1 -0
  404. package/dist/scripts/62-758f5e505b.chunk.js +1 -0
  405. package/dist/scripts/62-b572d8b80d.chunk.js +1 -0
  406. package/dist/scripts/62-f5fd35fdc0.chunk.js +1 -0
  407. package/dist/scripts/62.chunk.js +142 -0
  408. package/dist/scripts/62.chunk.js.map +1 -0
  409. package/dist/scripts/63-568008965e.chunk.js +1 -0
  410. package/dist/scripts/63-6700b4d00a.chunk.js +1 -0
  411. package/dist/scripts/63-c88b9860e9.chunk.js +1 -0
  412. package/dist/scripts/63.chunk.js +147 -0
  413. package/dist/scripts/63.chunk.js.map +1 -0
  414. package/dist/scripts/64-9c88ee6161.chunk.js +1 -0
  415. package/dist/scripts/64-e177d4c971.chunk.js +1 -0
  416. package/dist/scripts/64-fa2facacbb.chunk.js +1 -0
  417. package/dist/scripts/64.chunk.js +439 -0
  418. package/dist/scripts/64.chunk.js.map +1 -0
  419. package/dist/scripts/65-93567fe088.chunk.js +1 -0
  420. package/dist/scripts/65-e4568d1f06.chunk.js +1 -0
  421. package/dist/scripts/65-f750573f69.chunk.js +1 -0
  422. package/dist/scripts/65.chunk.js +582 -0
  423. package/dist/scripts/65.chunk.js.map +1 -0
  424. package/dist/scripts/66-c84a3a3c3f.chunk.js +1 -0
  425. package/dist/scripts/66-f325ff3187.chunk.js +1 -0
  426. package/dist/scripts/66-f6d213b33c.chunk.js +1 -0
  427. package/dist/scripts/66.chunk.js +442 -0
  428. package/dist/scripts/66.chunk.js.map +1 -0
  429. package/dist/scripts/67-3c9628d296.chunk.js +1 -0
  430. package/dist/scripts/67-97c694c3d5.chunk.js +1 -0
  431. package/dist/scripts/67-c5af18680c.chunk.js +1 -0
  432. package/dist/scripts/67.chunk.js +295 -0
  433. package/dist/scripts/67.chunk.js.map +1 -0
  434. package/dist/scripts/68-488cd1552f.chunk.js +1 -0
  435. package/dist/scripts/68-7b1d5e8e75.chunk.js +1 -0
  436. package/dist/scripts/68-eb8700aeb1.chunk.js +1 -0
  437. package/dist/scripts/68.chunk.js +165 -0
  438. package/dist/scripts/68.chunk.js.map +1 -0
  439. package/dist/scripts/69-3d2063cd0f.chunk.js +1 -0
  440. package/dist/scripts/69-b0ea71d7c5.chunk.js +1 -0
  441. package/dist/scripts/69-be2be90b7c.chunk.js +1 -0
  442. package/dist/scripts/69.chunk.js +248 -0
  443. package/dist/scripts/69.chunk.js.map +1 -0
  444. package/dist/scripts/7-3151397d74.chunk.js +1 -0
  445. package/dist/scripts/7-aac8c84ccb.chunk.js +1 -0
  446. package/dist/scripts/7-dfddb8ffa8.chunk.js +1 -0
  447. package/dist/scripts/7.chunk.js +309 -0
  448. package/dist/scripts/7.chunk.js.map +1 -0
  449. package/dist/scripts/70-27e9e5792a.chunk.js +1 -0
  450. package/dist/scripts/70-39dc936989.chunk.js +1 -0
  451. package/dist/scripts/70-e6ebb44667.chunk.js +1 -0
  452. package/dist/scripts/70.chunk.js +207 -0
  453. package/dist/scripts/70.chunk.js.map +1 -0
  454. package/dist/scripts/71-8e3682a7d7.chunk.js +1 -0
  455. package/dist/scripts/71-a80858069c.chunk.js +1 -0
  456. package/dist/scripts/71-c5923e2d2d.chunk.js +1 -0
  457. package/dist/scripts/71.chunk.js +237 -0
  458. package/dist/scripts/71.chunk.js.map +1 -0
  459. package/dist/scripts/72-245f28bf97.chunk.js +1 -0
  460. package/dist/scripts/72-550438db4e.chunk.js +1 -0
  461. package/dist/scripts/72-65364adff1.chunk.js +1 -0
  462. package/dist/scripts/72.chunk.js +331 -0
  463. package/dist/scripts/72.chunk.js.map +1 -0
  464. package/dist/scripts/73.chunk.js +404 -0
  465. package/dist/scripts/73.chunk.js.map +1 -0
  466. package/dist/scripts/74.chunk.js +301 -0
  467. package/dist/scripts/74.chunk.js.map +1 -0
  468. package/dist/scripts/75.chunk.js +231 -0
  469. package/dist/scripts/75.chunk.js.map +1 -0
  470. package/dist/scripts/76.chunk.js +157 -0
  471. package/dist/scripts/76.chunk.js.map +1 -0
  472. package/dist/scripts/77.chunk.js +307 -0
  473. package/dist/scripts/77.chunk.js.map +1 -0
  474. package/dist/scripts/78.chunk.js +249 -0
  475. package/dist/scripts/78.chunk.js.map +1 -0
  476. package/dist/scripts/79.chunk.js +282 -0
  477. package/dist/scripts/79.chunk.js.map +1 -0
  478. package/dist/scripts/8-c4955c2009.chunk.js +1 -0
  479. package/dist/scripts/8-d46f48d03c.chunk.js +1 -0
  480. package/dist/scripts/8-e5d19252c8.chunk.js +1 -0
  481. package/dist/scripts/8.chunk.js +307 -0
  482. package/dist/scripts/8.chunk.js.map +1 -0
  483. package/dist/scripts/80.chunk.js +308 -0
  484. package/dist/scripts/80.chunk.js.map +1 -0
  485. package/dist/scripts/81.chunk.js +366 -0
  486. package/dist/scripts/81.chunk.js.map +1 -0
  487. package/dist/scripts/82.chunk.js +314 -0
  488. package/dist/scripts/82.chunk.js.map +1 -0
  489. package/dist/scripts/83.chunk.js +328 -0
  490. package/dist/scripts/83.chunk.js.map +1 -0
  491. package/dist/scripts/84.chunk.js +313 -0
  492. package/dist/scripts/84.chunk.js.map +1 -0
  493. package/dist/scripts/85.chunk.js +291 -0
  494. package/dist/scripts/85.chunk.js.map +1 -0
  495. package/dist/scripts/86.chunk.js +119 -0
  496. package/dist/scripts/86.chunk.js.map +1 -0
  497. package/dist/scripts/87.chunk.js +219 -0
  498. package/dist/scripts/87.chunk.js.map +1 -0
  499. package/dist/scripts/88.chunk.js +194 -0
  500. package/dist/scripts/88.chunk.js.map +1 -0
  501. package/dist/scripts/89.chunk.js +522 -0
  502. package/dist/scripts/89.chunk.js.map +1 -0
  503. package/dist/scripts/9-4589726554.chunk.js +1 -0
  504. package/dist/scripts/9-66021549bd.chunk.js +1 -0
  505. package/dist/scripts/9-df99ba6ce1.chunk.js +1 -0
  506. package/dist/scripts/9.chunk.js +222 -0
  507. package/dist/scripts/9.chunk.js.map +1 -0
  508. package/dist/scripts/90.chunk.js +337 -0
  509. package/dist/scripts/90.chunk.js.map +1 -0
  510. package/dist/scripts/91.chunk.js +131 -0
  511. package/dist/scripts/91.chunk.js.map +1 -0
  512. package/dist/scripts/92.chunk.js +266 -0
  513. package/dist/scripts/92.chunk.js.map +1 -0
  514. package/dist/scripts/bundle-1b984e2fd9.min.js +8 -0
  515. package/dist/scripts/{bundle-8862b095c0.min.js → bundle-203920eb14.min.js} +1 -1
  516. package/dist/scripts/bundle-7d13ba933b.min.js +8 -0
  517. package/dist/scripts/bundle-d5b23160b1.min.js +8 -0
  518. package/dist/scripts/bundle.js +67100 -0
  519. package/dist/scripts/bundle.js.map +1 -0
  520. package/dist/scripts/bundles.json +2 -2
  521. package/dist/scripts/polyfills-9b0be1bd72.min.js +1 -0
  522. package/dist/scripts/polyfills-cd3d0a9f6d.min.js +1 -0
  523. package/dist/scripts/polyfills-d891a77823.min.js +1 -0
  524. package/dist/scripts/polyfills.js +14866 -0
  525. package/dist/scripts/polyfills.js.map +1 -0
  526. package/package.json +2 -2
  527. /package/dist/scripts/{0-1deffb42bf.chunk.js → 0-8b75adf540.chunk.js} +0 -0
  528. /package/dist/scripts/{1-a4065968c1.chunk.js → 1-22a3bd404f.chunk.js} +0 -0
  529. /package/dist/scripts/{10-0adc529f9b.chunk.js → 10-31317a2d02.chunk.js} +0 -0
  530. /package/dist/scripts/{12-18ae0dfa89.chunk.js → 12-6ecdd79b85.chunk.js} +0 -0
  531. /package/dist/scripts/{13-a9ed73e93d.chunk.js → 13-282f8add17.chunk.js} +0 -0
  532. /package/dist/scripts/{14-e0828acdfa.chunk.js → 14-5e443cb402.chunk.js} +0 -0
  533. /package/dist/scripts/{15-c67caabb0a.chunk.js → 15-1f779dd0d3.chunk.js} +0 -0
  534. /package/dist/scripts/{16-31fefb2cac.chunk.js → 16-427a8933c8.chunk.js} +0 -0
  535. /package/dist/scripts/{17-b9c5bbda43.chunk.js → 17-7093f50dff.chunk.js} +0 -0
  536. /package/dist/scripts/{20-2bca62d1c0.chunk.js → 20-a84733c89f.chunk.js} +0 -0
  537. /package/dist/scripts/{21-c70d40dc61.chunk.js → 21-9b28a13702.chunk.js} +0 -0
  538. /package/dist/scripts/{22-0e9dca307f.chunk.js → 22-082c94a39c.chunk.js} +0 -0
  539. /package/dist/scripts/{23-b4a5ffb3a6.chunk.js → 23-2b00ff99bf.chunk.js} +0 -0
  540. /package/dist/scripts/{24-88056bc5c9.chunk.js → 24-c94049500e.chunk.js} +0 -0
  541. /package/dist/scripts/{25-ec294abf37.chunk.js → 25-34c0406f50.chunk.js} +0 -0
  542. /package/dist/scripts/{26-2a038b6df5.chunk.js → 26-d19e3f755c.chunk.js} +0 -0
  543. /package/dist/scripts/{27-9f06d5bb5d.chunk.js → 27-3aa629dd67.chunk.js} +0 -0
  544. /package/dist/scripts/{28-4e62071464.chunk.js → 28-738b88c816.chunk.js} +0 -0
  545. /package/dist/scripts/{29-5ab940b23f.chunk.js → 29-3faa153e38.chunk.js} +0 -0
  546. /package/dist/scripts/{3-dbf1f0bdbc.chunk.js → 3-42e8af9f39.chunk.js} +0 -0
  547. /package/dist/scripts/{30-87ec7ee868.chunk.js → 30-109f8ddd5c.chunk.js} +0 -0
  548. /package/dist/scripts/{31-24f9dc350e.chunk.js → 31-639090fee3.chunk.js} +0 -0
  549. /package/dist/scripts/{32-a06209da52.chunk.js → 32-3de9c7454b.chunk.js} +0 -0
  550. /package/dist/scripts/{33-c33020ec6f.chunk.js → 33-675467f07d.chunk.js} +0 -0
  551. /package/dist/scripts/{34-116a50814d.chunk.js → 34-0a7f3b55fe.chunk.js} +0 -0
  552. /package/dist/scripts/{35-33ea39c18e.chunk.js → 35-4254e160f0.chunk.js} +0 -0
  553. /package/dist/scripts/{36-ccb493b3f6.chunk.js → 36-1fde696d6a.chunk.js} +0 -0
  554. /package/dist/scripts/{37-bb5a5bdad3.chunk.js → 37-97b84a8be5.chunk.js} +0 -0
  555. /package/dist/scripts/{38-64d5f34871.chunk.js → 38-0cf8029bec.chunk.js} +0 -0
  556. /package/dist/scripts/{39-14259bc6fe.chunk.js → 39-748eb61732.chunk.js} +0 -0
  557. /package/dist/scripts/{4-dbbff4289b.chunk.js → 4-5c50e71b83.chunk.js} +0 -0
  558. /package/dist/scripts/{40-ea678bbe5b.chunk.js → 40-2691dfbd5a.chunk.js} +0 -0
  559. /package/dist/scripts/{41-2d35060d0e.chunk.js → 41-1df587ee3a.chunk.js} +0 -0
  560. /package/dist/scripts/{42-898076e213.chunk.js → 42-3480033857.chunk.js} +0 -0
  561. /package/dist/scripts/{43-0616177a42.chunk.js → 43-72d1bc0ae2.chunk.js} +0 -0
  562. /package/dist/scripts/{44-861ac46f36.chunk.js → 44-756fd6622b.chunk.js} +0 -0
  563. /package/dist/scripts/{45-7446535f17.chunk.js → 45-610d098194.chunk.js} +0 -0
  564. /package/dist/scripts/{46-26620d2a5f.chunk.js → 46-cadf3f46ee.chunk.js} +0 -0
  565. /package/dist/scripts/{47-a4034122c9.chunk.js → 47-22a83e5974.chunk.js} +0 -0
  566. /package/dist/scripts/{48-76b2c74863.chunk.js → 48-e577124476.chunk.js} +0 -0
  567. /package/dist/scripts/{49-505e968070.chunk.js → 49-0f9a6a1782.chunk.js} +0 -0
  568. /package/dist/scripts/{5-2051149282.chunk.js → 5-06b97501c3.chunk.js} +0 -0
  569. /package/dist/scripts/{50-5fc4da3bc5.chunk.js → 50-0d5aed7730.chunk.js} +0 -0
  570. /package/dist/scripts/{51-fc0310c5cd.chunk.js → 51-cd37c8efa2.chunk.js} +0 -0
  571. /package/dist/scripts/{52-bf7eecfbac.chunk.js → 52-8b53a5c0b1.chunk.js} +0 -0
  572. /package/dist/scripts/{53-ec51fba164.chunk.js → 53-54b0df474f.chunk.js} +0 -0
  573. /package/dist/scripts/{54-d3990092dd.chunk.js → 54-dd4d101665.chunk.js} +0 -0
  574. /package/dist/scripts/{55-e4665da63e.chunk.js → 55-078bb9b0ea.chunk.js} +0 -0
  575. /package/dist/scripts/{56-21b33b42c3.chunk.js → 56-7a6c662f14.chunk.js} +0 -0
  576. /package/dist/scripts/{57-07deff9444.chunk.js → 57-0e126120b9.chunk.js} +0 -0
  577. /package/dist/scripts/{58-68ca09ffdf.chunk.js → 58-5729cbaa5c.chunk.js} +0 -0
  578. /package/dist/scripts/{59-c7705e6551.chunk.js → 59-333f38ee3b.chunk.js} +0 -0
  579. /package/dist/scripts/{6-9bc788ce4c.chunk.js → 6-1045293de4.chunk.js} +0 -0
  580. /package/dist/scripts/{60-319578f49a.chunk.js → 60-b17c6609cd.chunk.js} +0 -0
  581. /package/dist/scripts/{61-25fcfd00c9.chunk.js → 61-57fa6b5248.chunk.js} +0 -0
  582. /package/dist/scripts/{62-d07ddf14ff.chunk.js → 62-67458b7fb4.chunk.js} +0 -0
  583. /package/dist/scripts/{63-08c93c2e53.chunk.js → 63-420b10f5f2.chunk.js} +0 -0
  584. /package/dist/scripts/{64-ffead99364.chunk.js → 64-e6598113a7.chunk.js} +0 -0
  585. /package/dist/scripts/{65-86eee87750.chunk.js → 65-a7e499ceee.chunk.js} +0 -0
  586. /package/dist/scripts/{66-79a4d8629a.chunk.js → 66-f00f29ccae.chunk.js} +0 -0
  587. /package/dist/scripts/{67-bc34473155.chunk.js → 67-1ebaab7a2d.chunk.js} +0 -0
  588. /package/dist/scripts/{68-c3fe0c028e.chunk.js → 68-38a6d7fb50.chunk.js} +0 -0
  589. /package/dist/scripts/{69-f4f1f07045.chunk.js → 69-870856c6fb.chunk.js} +0 -0
  590. /package/dist/scripts/{7-74c0fcd6fe.chunk.js → 7-d41d3bf60c.chunk.js} +0 -0
  591. /package/dist/scripts/{70-4681989887.chunk.js → 70-6ef72cd9b6.chunk.js} +0 -0
  592. /package/dist/scripts/{71-8ae59fd304.chunk.js → 71-4e4a47d601.chunk.js} +0 -0
  593. /package/dist/scripts/{72-8615720ce0.chunk.js → 72-0a6c88f9fe.chunk.js} +0 -0
  594. /package/dist/scripts/{8-039e714b81.chunk.js → 8-7278f3247c.chunk.js} +0 -0
  595. /package/dist/scripts/{9-e76ba48df5.chunk.js → 9-576592d419.chunk.js} +0 -0
  596. /package/dist/scripts/{polyfills-57fccaae30.min.js → polyfills-5a81b67408.min.js} +0 -0
@@ -0,0 +1 @@
1
+ {"version":3,"sources":["file://C:/ClickView Projects/@clickview/packages/projects/library-editor/src/shared/components/select/Select.hbs","file://C:/ClickView Projects/@clickview/packages/projects/library-editor/src/shared/components/select/SelectComponent.ts","webpack://@clickview/library-editor/./src/shared/components/select/select.scss?d7a2"],"names":[],"mappings":";;;;;;;;;AAAA,iBAAiB,mBAAO,CAAC,8BAAY;AACrC,iEAAiE;AACjE;;AAEA;AACA,CAAC;AACD;AACA,CAAC;AACD,gLAAgL;;AAEhL;AACA;AACA;AACA,uIAAuI,qBAAqB,yEAAyE;AACrO;AACA,uIAAuI,qBAAqB,yEAAyE;AACrO;AACA;AACA;AACA;AACA;AACA,CAAC,gBAAgB,E;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;ACrBjB;AACA;AAEA;AAEA;AACA;AAEA;AACA;AAwBA,IAAM,aAAa,GAAG,EAAtB;AACA,IAAM,gBAAgB,GAAG,EAAzB;AACA,IAAM,kBAAkB,GAAG,EAA3B;AACA,IAAM,cAAc,GAAG,GAAvB;AAEO,IAAM,eAAb;AAAA;;AAAA;;AAUE,2BAAmB,OAAnB,EAAkD;AAAA;;AAAA;;AAChD,8BAAM,OAAN,EADgD,CANlD;;AACQ,yBAAuB,EAAvB;AACA,0BAAwB,CAAxB;AAEA,uBAAqB,CAArB;AAE0C;AAEjD;;AAZH;AAAA;AAAA,iCAcmB;AACf,WAAK,QAAL;AAEA,WAAK,aAAL;AACD;AAlBH;AAAA;AAAA,8BA4BgB;AACZ,aAAO;AACL,gBAAQ,EAAE;AACR,YAAE,EAAE,kBADI;AAER,wBAAc,EAAE;AAFR;AADL,OAAP;AAMD;AAnCH;AAAA;AAAA,6BAqCe;AACX,aAAO;AACL,mBAAW,WADN;AAEL,6BAAqB;AAFhB,OAAP;AAID;AA1CH;AAAA;AAAA,oCAwDuB;AACnB,WAAK,QAAL,CAAc,KAAK,OAAL,CAAa,WAA3B,EAAwC,KAAK,OAAL,CAAa,YAAb,CAA0B,SAAlE,EAA6E,KAAK,QAAlF;AACD;AA1DH;AAAA;AAAA,qCA4DwB;AACpB,UAAM,KAAK,GAAG,8CAAK,CAAC,OAAN,CAAc,KAAK,OAAL,CAAa,WAA3B,CAAd;AACA,WAAK,CAAC,OAAN,CAAc,iBAAd;AACD;AA/DH;AAAA;AAAA,8BAiEoB,KAjEpB,EAiE4C;AACxC,UAAI,KAAK,CAAC,OAAN,KAAkB,gBAAlB,IAAsC,KAAK,CAAC,OAAN,KAAkB,kBAA5D,EAAgF;AAC9E,aAAK,cAAL,CAAoB,KAApB;AACD,OAFD,MAEO,IAAI,KAAK,CAAC,OAAN,KAAkB,aAAtB,EAAqC;AAC1C,aAAK,MAAL;AACD,OAFM,MAEA;AACL,aAAK,MAAL,CAAY,KAAZ;AACD;;AAED,UAAM,KAAK,GAAG,8CAAK,CAAC,OAAN,CAAc,KAAK,OAAL,CAAa,WAA3B,CAAd;AACA,WAAK,CAAC,OAAN,CAAc,iBAAd;AACD;AA5EH;AAAA;AAAA,mCA8EyB,KA9EzB,EA8EiD;AAC7C,UAAI,wDAAiB,CAAC,WAAlB,CAA8B,KAAK,UAAnC,CAAJ,EAAoD;AAClD,aAAK,UAAL,GAAkB,CAAlB;AACD,OAFD,MAEO;AACL,aAAK,UAAL,GAAkB,CAAlB;AACD;;AAED,UAAI,aAAa,GAAe,KAAK,YAAL,CAAkB,KAAK,CAAC,OAAxB,CAAhC;;AAEA,UAAI,CAAC,aAAL,EAAoB;AAClB,gEAAiB,CAAC,WAAlB,CAA8B,KAAK,UAAnC;AACA,qBAAa,GAAG,KAAK,YAAL,CAAkB,KAAK,CAAC,OAAxB,CAAhB;AACD;;AAED,aAAO,KAAK,UAAL,CAAgB,aAAhB,CAAP,EAAuC;AACrC,aAAK,UAAL;AACA,qBAAa,GAAG,KAAK,YAAL,CAAkB,KAAK,CAAC,OAAxB,CAAhB;AACD;;AAED,WAAK,QAAL,CAAc,aAAd;AACD;AAlGH;AAAA;AAAA,2BAoGiB,KApGjB,EAoGyC;AACrC;AACA,UAAI,KAAK,CAAC,GAAN,CAAU,QAAV,GAAqB,MAArB,KAAgC,CAApC,EAAuC;AAEvC,UAAM,UAAU,GAAe,KAAK,aAAL,CAAmB,KAAnB,CAA/B;AACA,UAAI,UAAJ,EACE,KAAK,QAAL,CAAc,UAAd;AAEF,WAAK,QAAL;AACD;AA7GH;AAAA;AAAA,6BA+GkB,KA/GlB,EA+GmC;AAC/B,UAAI,KAAK,UAAL,CAAgB,KAAhB,CAAJ,EACE;AAEF,8DAAiB,CAAC,WAAlB,CAA8B,KAAK,CAAC,GAAN,CAAU,IAAV,CAA9B,EAA+C,KAAK,UAApD;AACA,WAAK,QAAL;AACA,WAAK,KAAL,CAAW,gBAAX,EAA6B,IAA7B,CAAkC,KAAK,aAAL,EAAlC;AAEA,UAAM,KAAK,GAAG,8CAAK,CAAC,OAAN,CAAc,KAAK,OAAL,CAAa,WAA3B,CAAd;AACA,WAAK,CAAC,OAAN,CAAc,wBAAd,EAAwC,KAAxC;AACD;AAzHH;AAAA;AAAA,+BA2HiB;AACb,WAAK,KAAL,GAAa,wDAAiB,CAAC,WAAlB,CAA8B,KAAK,UAAnC,CAAb;AACD;AA7HH;AAAA;AAAA,iCA+HuB,GA/HvB,EA+HkC;AAC9B,UAAM,YAAY,GAAe,wDAAiB,CAAC,WAAlB,CAA8B,KAAK,UAAnC,KAAkD,KAAK,UAAL,CAAgB,KAAhB,EAAnF;AACA,UAAM,KAAK,GAAW,KAAK,UAAL,CAAgB,OAAhB,CAAwB,YAAxB,CAAtB;AAEA,UAAI,SAAJ;;AACA,UAAI,GAAG,KAAK,gBAAZ,EAA8B;AAC5B,iBAAS,GAAG,KAAK,UAAL,CAAgB,EAAhB,CAAmB,KAAK,GAAG,KAAK,UAAhC,CAAZ;AACD,OAFD,MAEO;AACL,iBAAS,GAAG,KAAK,UAAL,CAAgB,EAAhB,CAAmB,KAAK,GAAG,KAAK,UAAhC,CAAZ;AACD;AAED;;;;AAIG;;;AACH,UAAI,CAAC,SAAL,EAAgB;AACd,gEAAiB,CAAC,WAAlB,CAA8B,KAAK,UAAnC;AACA,iBAAS,GAAG,KAAK,UAAL,CAAgB,KAAhB,EAAZ;AACA,aAAK,UAAL,GAAkB,CAAlB;AACD;;AAED,aAAO,SAAP;AACD;AAtJH;AAAA;AAAA,kCAwJwB,KAxJxB,EAwJgD;AAAA;;AAC5C,UAAI,iBAAJ;;AACA,UAAI,KAAK,YAAL,CAAkB,MAAlB,KAA6B,CAA7B,IAAkC,KAAK,YAAL,KAAsB,KAAK,CAAC,GAAlE,EAAuE;AACrE,yBAAiB,GAAG,KAAK,mBAAL,CAAyB,KAAK,CAAC,GAA/B,CAApB;AACD,OAFD,MAEO;AACL,aAAK,YAAL,IAAqB,KAAK,CAAC,GAA3B;AACA,aAAK,aAAL,GAAqB,CAArB;AACD;;AAED,UAAI,CAAC,iBAAL,EAAwB;AACtB,yBAAiB,GAAG,gDAAO,KAAK,UAAL,CAAgB,MAAvB,EAA+B,UAAC,KAAD;AAAA,iBACjD,KAAK,CAAC,GAAN,CAAU,MAAI,CAAC,OAAL,CAAa,eAAvB,EACG,WADH,GACiB,KADjB,CACuB,CADvB,EAC0B,MAAI,CAAC,YAAL,CAAkB,MAD5C,EACoD,QADpD,CAC6D,MAAI,CAAC,YAAL,CAAkB,WAAlB,EAD7D,CADiD;AAAA,SAA/B,CAApB;AAGD;;AAED,aAAO,iBAAP;AACD;AAxKH;AAAA;AAAA,wCA0K8B,OA1K9B,EA0K6C;AAAA;;AACzC,UAAM,MAAM,GAAiB,kDAC3B,KAAK,UAAL,CAAgB,MADW,EACH,UAAC,KAAD,EAAsB;AAC5C,eAAO,KAAK,CAAC,GAAN,CAAU,MAAI,CAAC,OAAL,CAAa,eAAvB,EAAwC,WAAxC,GAAsD,KAAtD,CAA4D,CAA5D,EAA+D,CAA/D,MAAsE,OAA7E;AACD,OAH0B,CAA7B;;AAKA,UAAI,MAAM,CAAC,MAAP,GAAgB,CAApB,EAAuB;AACrB;;;;;;AAMG;AACH,YAAI,iBAAiB,GAAG,MAAM,CAAC,KAAK,aAAN,CAA9B;;AACA,YAAI,CAAC,iBAAL,EAAwB;AACtB,2BAAiB,GAAG,iDAAQ,MAAR,CAApB;AACA,eAAK,aAAL,GAAqB,CAArB;AACD;;AACD,aAAK,aAAL;AACA,eAAO,iBAAP;AACD,OAfD,MAeO;AACL,eAAO,iDAAQ,MAAR,CAAP;AACD;AACF;AAlMH;AAAA;AAAA,+BAoMkB;AAAA;;AACd,UAAI,KAAK,gBAAT,EACE,YAAY,CAAC,KAAK,gBAAN,CAAZ;AAEF,WAAK,gBAAL,GAAwB,MAAM,CAAC,UAAP,CAAkB,YAAK;AAC7C,cAAI,CAAC,YAAL,GAAoB,EAApB;AACD,OAFuB,EAErB,cAFqB,CAAxB;AAGD;AA3MH;AAAA;AAAA,+BA6MqB,KA7MrB,EA6MoD;AAAA;;AAChD,UAAI,KAAK,CAAC,GAAN,CAAU,SAAV,CAAJ,EACE,OAAO,IAAP;AAEF,UAAI,CAAC,sDAAa,KAAK,OAAL,CAAa,YAAb,CAA0B,UAAvC,CAAL,EACE,OAAO,KAAP;;AAL8C,wCAAT,IAAS;AAAT,YAAS;AAAA;;AAOhD,aAAO,8BAAK,OAAL,CAAa,YAAb,CAA0B,UAA1B,EAAqC,IAArC,+BAA0C,IAA1C,EAAgD,KAAhD,SAA0D,IAA1D,EAAP;AACD;AArNH;AAAA;AAAA,oCAuNuB;AACnB,UAAI,KAAK,OAAL,CAAa,QAAjB,EACE,OAAO,KAAK,OAAL,CAAa,aAApB;AAEF,UAAM,SAAS,GAAG,wDAAiB,CAAC,WAAlB,CAA8B,KAAK,UAAnC,CAAlB;AACA,aAAQ,SAAS,IAAI,SAAS,CAAC,GAAV,CAAc,KAAK,OAAL,CAAa,eAA3B,CAAd,IAA8D,KAAK,OAAL,CAAa,eAAlF;AACD;AA7NH;AAAA;AAAA,kCA+NoB;AAChB,aAAO;AACL,cAAM,EAAN,mDADK;AAEL,iBAAS,EAAE,KAAK,OAAL,CAAa,SAFnB;AAGL,gBAAQ,EAAE,KAAK,OAAL,CAAa,QAHlB;AAIL,uBAAe,EAAE,KAAK,aAAL;AAJZ,OAAP;AAMD;AAtOH;AAAA;AAAA,+BAwOiB;AACb,WAAK,aAAL,CAAmB,UAAnB,EAA+B,IAAI,iGAAJ,CAAgC;AAC7D,kBAAU,EAAE,KAAK,UAD4C;AAE7D,mBAAW,EAAE,KAAK,OAAL,CAAa,WAFmC;AAG7D,oBAAY,EAAE,kDAAS,KAAK,OAAL,CAAa,YAAtB,CAH+C;AAI7D,sBAAc,EAAE;AACd,sBAAY,kBAAW,mDAAM,CAAC,YAAlB;AADE,SAJ6C;AAO7D,uBAAe,EAAE,KAAK,OAAL,CAAa;AAP+B,OAAhC,CAA/B;AASD;AAlPH;AAAA;AAAA,wBAoBiB;AACb,aAAO,iBAAP;AACD;AAtBH;AAAA;AAAA,wBAwBqB;AACjB,aAAO,kDAAP;AACD;AA1BH;AAAA;AAAA,wBA4CqB;AACjB,aAAO;AACL,uBAAe,EAAE;AADZ,OAAP;AAGD;AAhDH;AAAA;AAAA,wBAkDqB;AACjB,aAAO;AACL,sBAAc,EAAE;AADX,OAAP;AAGD;AAtDH;;AAAA;AAAA,EAAqC,8DAAI,CAAC,SAA1C,E;;;;;;;;;;;ACtCA;AACA,kBAAkB,oH","file":"scripts/13.chunk.js","sourcesContent":["var Handlebars = require('handlebars');\nmodule.exports = (Handlebars['default'] || Handlebars).template({\"1\":function(container,depth0,helpers,partials,data) {\n var stack1, alias1=container.propertyIsEnumerable;\n\n return container.escapeExpression(container.lambda(((stack1 = ((stack1 = (depth0 != null ? depth0.options : depth0)) != null ? stack1.styles : stack1)) != null ? stack1.disabled : stack1), depth0));\n},\"3\":function(container,depth0,helpers,partials,data) {\n return \" disabled\";\n},\"compiler\":[8,\">= 4.3.0\"],\"main\":function(container,depth0,helpers,partials,data) {\n var stack1, alias1=container.propertyIsEnumerable, alias2=container.lambda, alias3=container.escapeExpression, alias4=depth0 != null ? depth0 : (container.nullContext || {});\n\n return \"<button \\r\\n class=\\\"dropdown-toggle form-control btn-block text-left position-relative \"\n + alias3(alias2(((stack1 = ((stack1 = (depth0 != null ? depth0.options : depth0)) != null ? stack1.styles : stack1)) != null ? stack1.selectButton : stack1), depth0))\n + \" \"\n + ((stack1 = helpers[\"if\"].call(alias4,((stack1 = (depth0 != null ? depth0.options : depth0)) != null ? stack1.disabled : stack1),{\"name\":\"if\",\"hash\":{},\"fn\":container.program(1, data, 0),\"inverse\":container.noop,\"data\":data})) != null ? stack1 : \"\")\n + \"\\\" \\r\\n type=\\\"button\\\" \\r\\n id=\\\"dropdownMenuButton\\\" \\r\\n data-toggle=\\\"dropdown\\\" \\r\\n aria-haspopup=\\\"true\\\" \\r\\n aria-expanded=\\\"false\\\"\\r\\n \"\n + ((stack1 = helpers[\"if\"].call(alias4,((stack1 = (depth0 != null ? depth0.options : depth0)) != null ? stack1.disabled : stack1),{\"name\":\"if\",\"hash\":{},\"fn\":container.program(3, data, 0),\"inverse\":container.noop,\"data\":data})) != null ? stack1 : \"\")\n + \" \\r\\n name=\\\"\"\n + alias3(alias2(((stack1 = (depth0 != null ? depth0.options : depth0)) != null ? stack1.inputName : stack1), depth0))\n + \"\\\"\\r\\n >\\r\\n \"\n + alias3(alias2(((stack1 = (depth0 != null ? depth0.options : depth0)) != null ? stack1.placeholderText : stack1), depth0))\n + \"\\r\\n</button>\\r\\n<div class=\\\"dropdown-region\\\"></div>\\r\\n<div class=\\\"form-feedback\\\"></div>\";\n},\"useData\":true});","import * as _ from 'underscore';\r\nimport { ObjectHash, Radio } from 'backbone';\r\n\r\nimport { Core } from 'libs/common/core';\r\n\r\nimport { DropdownComponentCollection, DropdownAnalyticsHelper } from 'shared/components/dropdown/DropdownComponentCollection';\r\nimport { CollectionHelpers } from 'shared/utils';\r\n\r\nimport SelectTemplate from './Select.hbs';\r\nimport styles from './select.scss';\r\n\r\nexport interface SelectChildOptions {\r\n channelName?: string;\r\n titleProperty?: string;\r\n eventName: string;\r\n extraClasses?: string;\r\n prefixHandler?: () => string;\r\n currentSelectedMessage?: string;\r\n isDisabled?: (model: Core.Model, ...args: any) => boolean;\r\n truncateOptionNames?: boolean;\r\n}\r\n\r\nexport interface SelectComponentOptions extends Core.ComponentCollectionOptions {\r\n channelName: string;\r\n childOptions: SelectChildOptions;\r\n placeholderText: string;\r\n noOptionsText?: string;\r\n inputName?: string;\r\n disabled?: boolean;\r\n displayProperty?: string;\r\n analyticsHelper: DropdownAnalyticsHelper;\r\n}\r\n\r\nconst ENTER_KEYCODE = 13;\r\nconst UP_ARROW_KEYCODE = 38;\r\nconst DOWN_ARROW_KEYCODE = 40;\r\nconst TYPING_TIMEOUT = 500;\r\n\r\nexport class SelectComponent extends Core.Component {\r\n public collection: Core.Collection;\r\n public options: SelectComponentOptions;\r\n\r\n // Component state\r\n private selectSearch: string = '';\r\n private sameCharIndex: number = 1;\r\n private scopedTimerIndex: number;\r\n private optionStep: number = 1;\r\n\r\n public constructor(options: SelectComponentOptions) {\r\n super(options);\r\n }\r\n\r\n public initialize(): void {\r\n this.setModel();\r\n\r\n this.bindListeners();\r\n }\r\n\r\n public get name(): string {\r\n return 'SelectComponent';\r\n }\r\n\r\n public get template(): any {\r\n return SelectTemplate;\r\n }\r\n\r\n public regions(): ObjectHash {\r\n return {\r\n dropdown: {\r\n el: '.dropdown-region',\r\n replaceElement: true\r\n }\r\n };\r\n }\r\n\r\n public events(): ObjectHash {\r\n return {\r\n 'keydown': 'onKeydown',\r\n 'shown.bs.dropdown': 'onShowDropdown'\r\n };\r\n }\r\n\r\n public get defaults(): ObjectHash {\r\n return {\r\n displayProperty: 'name'\r\n };\r\n }\r\n\r\n public get elements(): ObjectHash {\r\n return {\r\n dropdownToggle: '.dropdown-toggle'\r\n };\r\n }\r\n\r\n private bindListeners(): void {\r\n this.listenTo(this.options.channelName, this.options.childOptions.eventName, this.onSelect);\r\n }\r\n\r\n private onShowDropdown(): void {\r\n const radio = Radio.channel(this.options.channelName);\r\n radio.trigger('center:dropdown');\r\n }\r\n\r\n private onKeydown(event: JQueryEventObject): void {\r\n if (event.keyCode === UP_ARROW_KEYCODE || event.keyCode === DOWN_ARROW_KEYCODE) {\r\n this.onArrowKeyDown(event);\r\n } else if (event.keyCode === ENTER_KEYCODE) {\r\n this.render();\r\n } else {\r\n this.onType(event);\r\n }\r\n\r\n const radio = Radio.channel(this.options.channelName);\r\n radio.trigger('center:dropdown');\r\n }\r\n\r\n private onArrowKeyDown(event: JQueryEventObject): void {\r\n if (CollectionHelpers.getSelected(this.collection)) {\r\n this.optionStep = 1;\r\n } else {\r\n this.optionStep = 0;\r\n }\r\n\r\n let selectedModel: Core.Model = this.getNextModel(event.keyCode);\r\n\r\n if (!selectedModel) {\r\n CollectionHelpers.deselectAll(this.collection);\r\n selectedModel = this.getNextModel(event.keyCode);\r\n }\r\n\r\n while (this.isDisabled(selectedModel)) {\r\n this.optionStep++;\r\n selectedModel = this.getNextModel(event.keyCode);\r\n }\r\n\r\n this.onSelect(selectedModel);\r\n }\r\n\r\n private onType(event: JQueryEventObject): void {\r\n // Returns if keys such as \"Tab\" or \"Backspace\" are pressed\r\n if (event.key.toString().length !== 1) return;\r\n\r\n const modelMatch: Core.Model = this.getModelMatch(event);\r\n if (modelMatch)\r\n this.onSelect(modelMatch);\r\n\r\n this.runTimer();\r\n }\r\n\r\n public onSelect(model: Core.Model): void {\r\n if (this.isDisabled(model))\r\n return;\r\n\r\n CollectionHelpers.setSelected(model.get('id'), this.collection);\r\n this.setModel();\r\n this.getUI('dropdownToggle').text(this.getButtonText());\r\n\r\n const radio = Radio.channel(this.options.channelName);\r\n radio.trigger('select:option:selected', model);\r\n }\r\n\r\n public setModel(): void {\r\n this.model = CollectionHelpers.getSelected(this.collection);\r\n }\r\n\r\n private getNextModel(key: number): Core.Model {\r\n const currentModel: Core.Model = CollectionHelpers.getSelected(this.collection) || this.collection.first();\r\n const index: number = this.collection.indexOf(currentModel);\r\n\r\n let nextModel: Core.Model;\r\n if (key === UP_ARROW_KEYCODE) {\r\n nextModel = this.collection.at(index - this.optionStep);\r\n } else {\r\n nextModel = this.collection.at(index + this.optionStep);\r\n }\r\n\r\n /**\r\n * This handles cases where users downstroke into 1 or more\r\n * disabled folders that stretch until the end of the collection.\r\n * This will wrap their selection back to the top.\r\n */\r\n if (!nextModel) {\r\n CollectionHelpers.deselectAll(this.collection);\r\n nextModel = this.collection.first();\r\n this.optionStep = 0;\r\n }\r\n\r\n return nextModel;\r\n }\r\n\r\n private getModelMatch(event: JQueryEventObject): Core.Model {\r\n let modelSearchResult: Core.Model;\r\n if (this.selectSearch.length === 1 && this.selectSearch === event.key) {\r\n modelSearchResult = this.handleSameCharIndex(event.key);\r\n } else {\r\n this.selectSearch += event.key;\r\n this.sameCharIndex = 1;\r\n }\r\n\r\n if (!modelSearchResult) {\r\n modelSearchResult = _.find(this.collection.models, (model: Core.Model) =>\r\n model.get(this.options.displayProperty)\r\n .toLowerCase().slice(0, this.selectSearch.length).includes(this.selectSearch.toLowerCase()));\r\n }\r\n\r\n return modelSearchResult;\r\n }\r\n\r\n private handleSameCharIndex(keyCode: string): Core.Model {\r\n const models: Core.Model[] = _.filter(\r\n this.collection.models, (model: Core.Model) => {\r\n return model.get(this.options.displayProperty).toLowerCase().slice(0, 1) === keyCode;\r\n }\r\n );\r\n if (models.length > 1) {\r\n /**\r\n * When a user types the first char of their search, then they\r\n * type that char again, rather than append that char to the search\r\n * string (e.g. \"aa\"), we instead search for the next option in the\r\n * dropdown that starts with \"a\", then increment sameCharIndex for cases\r\n * where the user continues pressing \"a\" for example.\r\n */\r\n let modelSearchResult = models[this.sameCharIndex];\r\n if (!modelSearchResult) {\r\n modelSearchResult = _.first(models);\r\n this.sameCharIndex = 0;\r\n }\r\n this.sameCharIndex++;\r\n return modelSearchResult;\r\n } else {\r\n return _.first(models);\r\n }\r\n }\r\n\r\n private runTimer(): void {\r\n if (this.scopedTimerIndex)\r\n clearTimeout(this.scopedTimerIndex);\r\n\r\n this.scopedTimerIndex = window.setTimeout(() => {\r\n this.selectSearch = '';\r\n }, TYPING_TIMEOUT);\r\n }\r\n\r\n private isDisabled(model: Core.Model, ...args: any): boolean {\r\n if (model.get('divider'))\r\n return true;\r\n\r\n if (!_.isFunction(this.options.childOptions.isDisabled))\r\n return false;\r\n\r\n return this.options.childOptions.isDisabled.call(this, model, ...args);\r\n }\r\n\r\n private getButtonText(): string {\r\n if (this.options.disabled)\r\n return this.options.noOptionsText;\r\n\r\n const selection = CollectionHelpers.getSelected(this.collection);\r\n return (selection && selection.get(this.options.displayProperty)) || this.options.placeholderText;\r\n }\r\n\r\n public viewOptions(): ObjectHash {\r\n return {\r\n styles,\r\n inputName: this.options.inputName,\r\n disabled: this.options.disabled,\r\n placeholderText: this.getButtonText()\r\n };\r\n }\r\n\r\n public onRender(): void {\r\n this.showChildView('dropdown', new DropdownComponentCollection({\r\n collection: this.collection,\r\n channelName: this.options.channelName,\r\n childOptions: _.extend(this.options.childOptions),\r\n displayOptions: {\r\n extraClasses: `w-100 ${styles.dropdownMenu}`\r\n },\r\n analyticsHelper: this.options.analyticsHelper\r\n }));\r\n }\r\n}","// extracted by mini-css-extract-plugin\nmodule.exports = {\"dropdownMenu\":\"cv--dropdownMenu--2RaQu\",\"selectButton\":\"cv--selectButton--2xGqi\",\"disabled\":\"cv--disabled--15kWr\"};"],"sourceRoot":""}
@@ -0,0 +1 @@
1
+ (window.webpackJsonp_clickview_library_editor=window.webpackJsonp_clickview_library_editor||[]).push([[14],{1044:function(e,t,n){"use strict";n.d(t,"a",(function(){return v}));var o=n(6),r=n(2),i=n(3),l=n(1058),s=n(13),a=n(1045),c=n.n(a),u=n(1046),f=n.n(u);function p(e){return(p="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 d(e,t){for(var n=0;n<t.length;n++){var o=t[n];o.enumerable=o.enumerable||!1,o.configurable=!0,"value"in o&&(o.writable=!0),Object.defineProperty(e,o.key,o)}}function h(e,t){return(h=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e})(e,t)}function y(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 Date.prototype.toString.call(Reflect.construct(Date,[],(function(){}))),!0}catch(e){return!1}}();return function(){var n,o=g(e);if(t){var r=g(this).constructor;n=Reflect.construct(o,arguments,r)}else n=o.apply(this,arguments);return m(this,n)}}function m(e,t){return!t||"object"!==p(t)&&"function"!=typeof t?function(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}(e):t}function g(e){return(g=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)})(e)}var v=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}}),t&&h(e,t)}(u,e);var t,n,r,a=y(u);function u(e){return function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,u),a.call(this,e)}return t=u,(n=[{key:"initialize",value:function(){this.listenTo(this.options.channelName,"folder:selected new:folder:selected",this.setButtonText),this.listenTo(this.options.channelName,"re:render:selector",this.renderSelector),this.disabledIds=this.options.disabledIds&&this.options.disabledIds.reduce((function(e,t){return Object.assign(Object.assign({},e),function(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}({},t,!0))}),{})}},{key:"regions",value:function(){return{selector:{el:".selector-region",replaceElement:!1}}}},{key:"events",value:function(){return{"click .create-new":"onClickCreateNew"}}},{key:"onClickCreateNew",value:function(e){e.preventDefault(),o.Radio.channel(this.options.channelName).trigger("create:folder:clicked")}},{key:"setButtonText",value:function(e,t){if(e&&!t){var n=e.get("name");this.getUI("button").text(n)}else{var o=s.f.getSelected(this.options.folderTreeKey,this.collection),r=o?o.get("name"):i.a.getPhrase(this.lang,"button");this.getUI("button").text(r)}}},{key:"renderSelector",value:function(){this.showChildView("selector",new l.a({styles:f.a,collection:this.collection,channelName:this.options.channelName,childrenProperty:"children",folderTreeId:this.options.folderTreeKey,extraClass:f.a.list,extraClasses:f.a.list,isSelector:!0,disabledIds:this.disabledIds||{}}))}},{key:"viewOptions",value:function(){return{styles:f.a,name:this.options.name||this.options.channelName,buttonText:this.buttonText,canCreateNew:this.options.canCreateNew}}},{key:"onRender",value:function(){this.setButtonText(),this.renderSelector()}},{key:"name",get:function(){return"TreeDropdownComponent"}},{key:"template",get:function(){return c.a}},{key:"className",get:function(){return"position-relative"}},{key:"lang",get:function(){return"libraryEditor.treeDropdown"}},{key:"defaults",get:function(){return{disabledIds:[]}}},{key:"elements",get:function(){return{button:".custom-select"}}}])&&d(t.prototype,n),r&&d(t,r),u}(r.a.Component)},1045:function(e,t,n){var o=n(10);e.exports=(o.default||o).template({1:function(e,t,n,o,r){e.propertyIsEnumerable;var i,l=e.escapeExpression;return' <button class="create-new btn font-weight-bold rounded-0 w-100 text-left '+l(e.lambda(null!=(i=null!=(i=null!=t?t.options:t)?i.styles:i)?i.customItem:i,t))+'">'+l((n.lang||t&&t.lang||e.hooks.helperMissing).call(null!=t?t:e.nullContext||{},"createNew",{name:"lang",hash:{},data:r}))+"</button>\r\n"},compiler:[8,">= 4.3.0"],main:function(e,t,n,o,r){e.propertyIsEnumerable;var i,l=e.lambda,s=e.escapeExpression;return'<button\r\n class="'+s(l(null!=(i=null!=(i=null!=t?t.options:t)?i.styles:i)?i.selectBtn:i,t))+' custom-select form-control"\r\n data-toggle="dropdown"\r\n aria-haspopup="true"\r\n aria-expanded="false"\r\n name='+s(l(null!=(i=null!=t?t.options:t)?i.name:i,t))+"\r\n>"+s(l(null!=(i=null!=t?t.options:t)?i.buttonText:i,t))+'</button>\r\n<div class="dropdown-menu '+s(l(null!=(i=null!=(i=null!=t?t.options:t)?i.styles:i)?i.selector:i,t))+'">\r\n <div class="selector-region"></div>\r\n'+(null!=(i=n.if.call(null!=t?t:e.nullContext||{},null!=(i=null!=t?t.options:t)?i.canCreateNew:i,{name:"if",hash:{},fn:e.program(1,r,0),inverse:e.noop,data:r}))?i:"")+'</div>\r\n<div class="form-feedback"></div>'},useData:!0})},1046:function(e,t,n){e.exports={selectBtn:"_2TTgs",list:"_3wN7o",selector:"_3Xf1P",customItem:"_199PI"}},1081:function(e,t,n){"use strict";n.d(t,"a",(function(){return v}));var o=n(1),r=n(6),i=n(2),l=n(1039),s=n(13),a=n(1082),c=n.n(a),u=n(1083),f=n.n(u);function p(e){return(p="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 d(e,t){for(var n=0;n<t.length;n++){var o=t[n];o.enumerable=o.enumerable||!1,o.configurable=!0,"value"in o&&(o.writable=!0),Object.defineProperty(e,o.key,o)}}function h(e,t){return(h=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e})(e,t)}function y(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 Date.prototype.toString.call(Reflect.construct(Date,[],(function(){}))),!0}catch(e){return!1}}();return function(){var n,o=g(e);if(t){var r=g(this).constructor;n=Reflect.construct(o,arguments,r)}else n=o.apply(this,arguments);return m(this,n)}}function m(e,t){return!t||"object"!==p(t)&&"function"!=typeof t?function(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}(e):t}function g(e){return(g=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)})(e)}var v=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}}),t&&h(e,t)}(u,e);var t,n,i,a=y(u);function u(e){var t;return function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,u),(t=a.call(this,e)).selectSearch="",t.sameCharIndex=1,t.optionStep=1,t}return t=u,(n=[{key:"initialize",value:function(){this.setModel(),this.bindListeners()}},{key:"regions",value:function(){return{dropdown:{el:".dropdown-region",replaceElement:!0}}}},{key:"events",value:function(){return{keydown:"onKeydown","shown.bs.dropdown":"onShowDropdown"}}},{key:"bindListeners",value:function(){this.listenTo(this.options.channelName,this.options.childOptions.eventName,this.onSelect)}},{key:"onShowDropdown",value:function(e){r.Radio.channel(this.options.channelName).trigger("center:dropdown")}},{key:"onKeydown",value:function(e){38===e.keyCode||40===e.keyCode?this.onArrowKeyDown(e):13===e.keyCode?this.render():this.onType(e),r.Radio.channel(this.options.channelName).trigger("center:dropdown")}},{key:"onArrowKeyDown",value:function(e){s.c.getSelected(this.collection)?this.optionStep=1:this.optionStep=0;var t=this.getNextModel(e.keyCode);for(t||(s.c.deselectAll(this.collection),t=this.getNextModel(e.keyCode));this.isDisabled(t);)this.optionStep++,t=this.getNextModel(e.keyCode);this.onSelect(t)}},{key:"onType",value:function(e){if(1===e.key.toString().length){var t=this.getModelMatch(e);t&&this.onSelect(t),this.runTimer()}}},{key:"onSelect",value:function(e){this.isDisabled(e)||(s.c.setSelected(e.get("id"),this.collection),this.setModel(),this.getUI("dropdownToggle").text(this.getButtonText()),r.Radio.channel(this.options.channelName).trigger("select:option:selected",e))}},{key:"setModel",value:function(){this.model=s.c.getSelected(this.collection)}},{key:"getNextModel",value:function(e){var t,n=s.c.getSelected(this.collection)||this.collection.first(),o=this.collection.indexOf(n);return(t=38===e?this.collection.at(o-this.optionStep):this.collection.at(o+this.optionStep))||(s.c.deselectAll(this.collection),t=this.collection.first(),this.optionStep=0),t}},{key:"getModelMatch",value:function(e){var t,n=this;return 1===this.selectSearch.length&&this.selectSearch===e.key?t=this.handleSameCharIndex(e.key):(this.selectSearch+=e.key,this.sameCharIndex=1),t||(t=o.find(this.collection.models,(function(e){return e.get(n.options.displayProperty).toLowerCase().slice(0,n.selectSearch.length).includes(n.selectSearch.toLowerCase())}))),t}},{key:"handleSameCharIndex",value:function(e){var t=this,n=o.filter(this.collection.models,(function(n){return n.get(t.options.displayProperty).toLowerCase().slice(0,1)===e}));if(n.length>1){var r=n[this.sameCharIndex];return r||(r=o.first(n),this.sameCharIndex=0),this.sameCharIndex++,r}return o.first(n)}},{key:"runTimer",value:function(){var e=this;this.scopedTimerIndex&&clearTimeout(this.scopedTimerIndex),this.scopedTimerIndex=window.setTimeout((function(){e.selectSearch=""}),500)}},{key:"isDisabled",value:function(e){return!!e.get("divider")||!!o.isFunction(this.options.childOptions.isDisabled)&&this.options.childOptions.isDisabled.apply(this,arguments)}},{key:"getButtonText",value:function(){if(this.options.disabled)return this.options.noOptionsText;var e=s.c.getSelected(this.collection);return e&&e.get(this.options.displayProperty)||this.options.placeholderText}},{key:"viewOptions",value:function(){return{styles:f.a,inputName:this.options.inputName,disabled:this.options.disabled,placeholderText:this.getButtonText()}}},{key:"onRender",value:function(){this.showChildView("dropdown",new l.a({collection:this.collection,channelName:this.options.channelName,childOptions:o.extend(this.options.childOptions),displayOptions:{extraClasses:"w-100 ".concat(f.a.dropdownMenu)},analyticsHelper:this.options.analyticsHelper}))}},{key:"name",get:function(){return"SelectComponent"}},{key:"template",get:function(){return c.a}},{key:"defaults",get:function(){return{displayProperty:"name"}}},{key:"elements",get:function(){return{dropdownToggle:".dropdown-toggle"}}}])&&d(t.prototype,n),i&&d(t,i),u}(i.a.Component)},1082:function(e,t,n){var o=n(10);e.exports=(o.default||o).template({1:function(e,t,n,o,r){var i;e.propertyIsEnumerable;return e.escapeExpression(e.lambda(null!=(i=null!=(i=null!=t?t.options:t)?i.styles:i)?i.disabled:i,t))},3:function(e,t,n,o,r){return" disabled"},compiler:[8,">= 4.3.0"],main:function(e,t,n,o,r){e.propertyIsEnumerable;var i,l=e.lambda,s=e.escapeExpression,a=null!=t?t:e.nullContext||{};return'<button \r\n class="dropdown-toggle form-control btn-block text-left position-relative '+s(l(null!=(i=null!=(i=null!=t?t.options:t)?i.styles:i)?i.selectButton:i,t))+" "+(null!=(i=n.if.call(a,null!=(i=null!=t?t.options:t)?i.disabled:i,{name:"if",hash:{},fn:e.program(1,r,0),inverse:e.noop,data:r}))?i:"")+'" \r\n type="button" \r\n id="dropdownMenuButton" \r\n data-toggle="dropdown" \r\n aria-haspopup="true" \r\n aria-expanded="false"\r\n '+(null!=(i=n.if.call(a,null!=(i=null!=t?t.options:t)?i.disabled:i,{name:"if",hash:{},fn:e.program(3,r,0),inverse:e.noop,data:r}))?i:"")+' \r\n name="'+s(l(null!=(i=null!=t?t.options:t)?i.inputName:i,t))+'"\r\n >\r\n '+s(l(null!=(i=null!=t?t.options:t)?i.placeholderText:i,t))+'\r\n</button>\r\n<div class="dropdown-region"></div>\r\n<div class="form-feedback"></div>'},useData:!0})},1083:function(e,t,n){e.exports={dropdownMenu:"_2RaQu",selectButton:"_2xGqi",disabled:"_15kWr"}},1104:function(e,t,n){"use strict";n.d(t,"a",(function(){return v}));var o=n(1),r=n(6),i=n(2),l=n(3),s=n(42),a=n(1081),c=n(13),u=n(1105),f=n.n(u);function p(e){return(p="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 d(e,t){for(var n=0;n<t.length;n++){var o=t[n];o.enumerable=o.enumerable||!1,o.configurable=!0,"value"in o&&(o.writable=!0),Object.defineProperty(e,o.key,o)}}function h(e,t){return(h=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e})(e,t)}function y(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 Date.prototype.toString.call(Reflect.construct(Date,[],(function(){}))),!0}catch(e){return!1}}();return function(){var n,o=g(e);if(t){var r=g(this).constructor;n=Reflect.construct(o,arguments,r)}else n=o.apply(this,arguments);return m(this,n)}}function m(e,t){return!t||"object"!==p(t)&&"function"!=typeof t?function(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}(e):t}function g(e){return(g=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)})(e)}var v=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}}),t&&h(e,t)}(p,e);var t,n,i,u=y(p);function p(e){return function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,p),u.call(this,e)}return t=p,(n=[{key:"initialize",value:function(){this.bindListeners(),c.c.deselectAll(this.collection),c.c.setSelected(this.options.currentLibraryId,this.collection)}},{key:"regions",value:function(){return{dropdown:{el:".dropdown-menu-region",replaceElement:!0}}}},{key:"bindListeners",value:function(){var e=this;this.listenTo(this.channelName,"select:option:selected",(function(t){r.Radio.channel(e.options.channelName).trigger("library:selected",t)}))}},{key:"getIsOptionDisabledFn",value:function(){var e=this.options.disabledLibraryIds;return function(t){var n=t||this.model;if(o.contains(e,n.get("id")+""))return!0}}},{key:"onRender",value:function(){this.showChildView("dropdown",new a.a({collection:this.collection,channelName:this.channelName,childOptions:{titleProperty:"name",eventName:"select:option:click",isDisabled:this.getIsOptionDisabledFn()},placeholderText:this.options.placeholderText||l.a.getPhrase(this.lang,"placeholder"),noOptionsText:l.a.getPhrase(this.lang,"noLibraries"),inputName:this.options.inputName,disabled:0===this.collection.length||this.options.disabled,analyticsHelper:s.a}))}},{key:"name",get:function(){return"LibrarySelectComponent"}},{key:"channelName",get:function(){return"".concat(this.name).concat(this.cid)}},{key:"className",get:function(){return"position-relative"}},{key:"lang",get:function(){return"libraryEditor.librarySelect"}},{key:"template",get:function(){return f.a}}])&&d(t.prototype,n),i&&d(t,i),p}(i.a.Component)},1105:function(e,t,n){var o=n(10);e.exports=(o.default||o).template({compiler:[8,">= 4.3.0"],main:function(e,t,n,o,r){return'<div class="dropdown-menu-region"></div>\r\n<div class="form-feedback"></div>'},useData:!0})},1141:function(e,t,n){"use strict";n.d(t,"a",(function(){return E}));var o=n(1),r=n(29),i=n(2),l=n(82),s=n(15),a=n(135),c=n(0),u=n(8),f=n(1057),p=n(1034),d=n(1031),h=n(1142),y=n.n(h),m=n(1143),g=n.n(m),v=n(3);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 w(e,t){for(var n=0;n<t.length;n++){var o=t[n];o.enumerable=o.enumerable||!1,o.configurable=!0,"value"in o&&(o.writable=!0),Object.defineProperty(e,o.key,o)}}function S(e,t){return(S=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e})(e,t)}function k(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 Date.prototype.toString.call(Reflect.construct(Date,[],(function(){}))),!0}catch(e){return!1}}();return function(){var n,o=R(e);if(t){var r=R(this).constructor;n=Reflect.construct(o,arguments,r)}else n=o.apply(this,arguments);return C(this,n)}}function C(e,t){return!t||"object"!==b(t)&&"function"!=typeof t?function(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}(e):t}function R(e){return(R=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)})(e)}var E=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}}),t&&S(e,t)}(m,e);var t,n,i,h=k(m);function m(e){return function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,m),h.call(this,e)}return t=m,(n=[{key:"regions",value:function(){return{description:{el:".description-region",replaceElement:!0,partialLoading:u.j.VideoBasicInfo},series:{el:".series-region",replaceElement:!0}}}},{key:"getBroadcastDate",value:function(){return this.model.get("dateBroadcast")?r(this.model.get("dateBroadcast")).format(u.n.FULL_YEAR):""}},{key:"getSeriesUrl",value:function(){if(this.options.externalSeriesLink&&this.model.series)return l.a.safeUrlConcat(this.options.config.get("onlineUrl"),"series/".concat(this.model.series.id))}},{key:"renderSeries",value:function(){this.model.series&&this.model.series.get("name")&&this.showChildView("series",new p.a({model:this.model,highlight:!1,seriesUrl:this.getSeriesUrl(),styleUppercase:!1}))}},{key:"renderDescription",value:function(){if(this.model&&this.model.get("description")){var e=new f.a({model:this.model,linkify:!0,size:f.b.Large,truncate:this.options.truncateDescription,allowExpand:!0});this.showChildView("description",e)}}},{key:"getSubtitleLanguage",value:function(){var e=this;return this.model.subtitles&&this.model.get("subtitles").length?o.uniq(this.model.get("subtitles").map((function(t){var n,o=t.get("language"),r=CVLanguages.getFullEnglishName(o);return(null===(n=t.get("metadata"))||void 0===n?void 0:n.autoGenerated)?v.a.getPhrase(e.lang,"autoGenerated",{name:r}):r}))).join(", "):""}},{key:"getCitationHeading",value:function(e,t,n){return this.model.get(e)?this.model.get(e).length>1?n:t:""}},{key:"getCitationHeadings",value:function(){return{productionCompaniesText:this.getCitationHeading(u.a.ProductionCompany,"Production Company","Production Companies"),producersText:this.getCitationHeading(u.a.Producer,"Producer","Producers"),disributorsText:this.getCitationHeading(u.a.Distributor,"Distributor","Distributors"),directorsText:this.getCitationHeading(u.a.Director,"Director","Directors")}}},{key:"viewOptions",value:function(){return Object.assign({styles:y.a,ratingClass:this.model.rating&&d.i.mapRatingToClass(this.model.rating.get("value")),broadcastDate:this.getBroadcastDate(),showHeading:this.options.showHeading,subtitles:this.getSubtitleLanguage(),publisherArchiveSvg:s.a.getSvg(s.b.PublisherArchive),showPublisherVideoDetails:this.options.showPublisherVideoDetails},this.getCitationHeadings())}},{key:"onRender",value:function(){this.renderSeries(),this.renderDescription()}},{key:"name",get:function(){return"VideoBasicInfoComponent"}},{key:"template",get:function(){return g.a}},{key:"lang",get:function(){return"shared.videoBasicInfo"}},{key:"defaults",get:function(){return{truncateDescription:!0}}},{key:"behaviors",get:function(){return[{behaviorClass:a.a,selector:".tool-tip"}]}},{key:"appLinks",get:function(){return{".applink-publisher-video":{application:c.b.LIBRARY_EDITOR,action:c.a.LibraryEditor.SHOW_PUBLISHER_VIDEO,args:[this.model.get("id")]}}}}])&&w(t.prototype,n),i&&w(t,i),m}(i.a.Component)},1142:function(e,t,n){e.exports={columnNames:"_1N_VT",seriesContainer:"_4pk2s",icon:"_3SoBV",citationValues:"_1nYZg"}},1143:function(e,t,n){var o=n(10);e.exports=(o.default||o).template({1:function(e,t,n,o,r){e.propertyIsEnumerable;var i,l=null!=t?t:e.nullContext||{};return'<div class="position-relative">\r\n <h5 class="d-inline-block">'+e.escapeExpression((n.lang||t&&t.lang||e.hooks.helperMissing).call(l,"basicInfo",{name:"lang",hash:{},data:r}))+"</h5>\r\n"+(null!=(i=n.if.call(l,null!=(i=null!=t?t.options:t)?i.showPublisherVideoDetails:i,{name:"if",hash:{},fn:e.program(2,r,0),inverse:e.noop,data:r}))?i:"")+"</div>\r\n"},2:function(e,t,n,o,r){e.propertyIsEnumerable;var i,l=e.lambda,s=e.escapeExpression;return' <a class="float-right cursor-pointer applink-publisher-video">\r\n <span class="d-inline-block align-middle '+s(l(null!=(i=null!=(i=null!=t?t.options:t)?i.styles:i)?i.icon:i,t))+'">'+(null!=(i=l(null!=(i=null!=t?t.options:t)?i.publisherArchiveSvg:i,t))?i:"")+"</span> "+s((n.lang||t&&t.lang||e.hooks.helperMissing).call(null!=t?t:e.nullContext||{},"viewInPublisherArchive",{name:"lang",hash:{},data:r}))+"\r\n </a>\r\n"},4:function(e,t,n,o,r){e.propertyIsEnumerable;var i,l,s=e.escapeExpression,a=null!=t?t:e.nullContext||{},c=e.hooks.helperMissing;return' <div class="col-3 '+s(e.lambda(null!=(i=null!=(i=null!=t?t.options:t)?i.styles:i)?i.columnNames:i,t))+'">'+s((n.lang||t&&t.lang||c).call(a,"videoTitle",{name:"lang",hash:{},data:r}))+'</div>\r\n <p class="col-9">'+s("function"==typeof(l=null!=(l=n.name||(null!=t?t.name:t))?l:c)?l.call(a,{name:"name",hash:{},data:r}):l)+"</p>\r\n"},6:function(e,t,n,o,r){e.propertyIsEnumerable;var i,l=e.lambda,s=e.escapeExpression;return' <div class="col-3 '+s(l(null!=(i=null!=(i=null!=t?t.options:t)?i.styles:i)?i.columnNames:i,t))+'">'+s((n.lang||t&&t.lang||e.hooks.helperMissing).call(null!=t?t:e.nullContext||{},"series",{name:"lang",hash:{},data:r}))+'</div>\r\n <div class="col-9 '+s(l(null!=(i=null!=(i=null!=t?t.options:t)?i.styles:i)?i.seriesContainer:i,t))+'"><div class="series-region"></div></div>\r\n'},8:function(e,t,n,o,r){e.propertyIsEnumerable;var i,l=e.lambda,s=e.escapeExpression;return' <div class="col-3 '+s(l(null!=(i=null!=(i=null!=t?t.options:t)?i.styles:i)?i.columnNames:i,t))+'">'+s((n.lang||t&&t.lang||e.hooks.helperMissing).call(null!=t?t:e.nullContext||{},"rating",{name:"lang",hash:{},data:r}))+'</div>\r\n <p class="col-9"><span class="p-1 badge text-white tool-tip '+s(l(null!=(i=null!=t?t.options:t)?i.ratingClass:i,t))+" "+s(l(null!=(i=null!=(i=null!=t?t.options:t)?i.styles:i)?i.rating:i,t))+'" title="'+s(l(null!=(i=null!=t?t.rating:t)?i.name:i,t))+'">'+s(l(null!=(i=null!=t?t.rating:t)?i.code:i,t))+"</span></p>\r\n"},10:function(e,t,n,o,r){e.propertyIsEnumerable;var i,l=e.escapeExpression;return' <div class="col-3 '+l(e.lambda(null!=(i=null!=(i=null!=t?t.options:t)?i.styles:i)?i.columnNames:i,t))+'">'+l((n.lang||t&&t.lang||e.hooks.helperMissing).call(null!=t?t:e.nullContext||{},"description",{name:"lang",hash:{},data:r}))+'</div>\r\n <div class="col-9">\r\n <div class="description-region"></div>\r\n </div>\r\n'},12:function(e,t,n,o,r){e.propertyIsEnumerable;var i,l,s=e.escapeExpression,a=null!=t?t:e.nullContext||{},c=e.hooks.helperMissing;return' <div class="col-3 '+s(e.lambda(null!=(i=null!=(i=null!=t?t.options:t)?i.styles:i)?i.columnNames:i,t))+'">'+s((n.lang||t&&t.lang||c).call(a,"productionYear",{name:"lang",hash:{},data:r}))+'</div>\r\n <p class="col-9">'+s("function"==typeof(l=null!=(l=n.productionYear||(null!=t?t.productionYear:t))?l:c)?l.call(a,{name:"productionYear",hash:{},data:r}):l)+"</p>\r\n"},14:function(e,t,n,o,r){e.propertyIsEnumerable;var i,l=e.lambda,s=e.escapeExpression,a=null!=t?t:e.nullContext||{};return' <div class="col-3 '+s(l(null!=(i=null!=(i=null!=t?t.options:t)?i.styles:i)?i.columnNames:i,t))+'">'+s((n.lang||t&&t.lang||e.hooks.helperMissing).call(a,"producers",{name:"lang",hash:{},data:r}))+'</div>\r\n <div class="col-9 '+s(l(null!=(i=null!=(i=null!=t?t.options:t)?i.styles:i)?i.citationValues:i,t))+'">\r\n <p>\r\n'+(null!=(i=n.each.call(a,null!=t?t.producers:t,{name:"each",hash:{},fn:e.program(15,r,0),inverse:e.noop,data:r}))?i:"")+" </p>\r\n </div>\r\n"},15:function(e,t,n,o,r){var i;e.propertyIsEnumerable;return" <span>"+e.escapeExpression("function"==typeof(i=null!=(i=n.name||(null!=t?t.name:t))?i:e.hooks.helperMissing)?i.call(null!=t?t:e.nullContext||{},{name:"name",hash:{},data:r}):i)+"</span>\r\n"},17:function(e,t,n,o,r){e.propertyIsEnumerable;var i,l=e.lambda,s=e.escapeExpression,a=null!=t?t:e.nullContext||{};return' <div class="col-3 '+s(l(null!=(i=null!=(i=null!=t?t.options:t)?i.styles:i)?i.columnNames:i,t))+'">'+s((n.lang||t&&t.lang||e.hooks.helperMissing).call(a,"directors",{name:"lang",hash:{},data:r}))+'</div>\r\n <div class="col-9 '+s(l(null!=(i=null!=(i=null!=t?t.options:t)?i.styles:i)?i.citationValues:i,t))+'">\r\n <p>\r\n'+(null!=(i=n.each.call(a,null!=t?t.directors:t,{name:"each",hash:{},fn:e.program(15,r,0),inverse:e.noop,data:r}))?i:"")+" </p>\r\n </div>\r\n"},19:function(e,t,n,o,r){e.propertyIsEnumerable;var i,l=e.lambda,s=e.escapeExpression,a=null!=t?t:e.nullContext||{};return' <div class="col-3 '+s(l(null!=(i=null!=(i=null!=t?t.options:t)?i.styles:i)?i.columnNames:i,t))+'">'+s((n.lang||t&&t.lang||e.hooks.helperMissing).call(a,"productionCompanies",{name:"lang",hash:{},data:r}))+'</div>\r\n <div class="col-9 '+s(l(null!=(i=null!=(i=null!=t?t.options:t)?i.styles:i)?i.citationValues:i,t))+'">\r\n <p>\r\n'+(null!=(i=n.each.call(a,null!=t?t.productionCompanies:t,{name:"each",hash:{},fn:e.program(15,r,0),inverse:e.noop,data:r}))?i:"")+" </p>\r\n </div>\r\n"},21:function(e,t,n,o,r){e.propertyIsEnumerable;var i,l=e.lambda,s=e.escapeExpression,a=null!=t?t:e.nullContext||{};return' <div class="col-3 '+s(l(null!=(i=null!=(i=null!=t?t.options:t)?i.styles:i)?i.columnNames:i,t))+'">'+s((n.lang||t&&t.lang||e.hooks.helperMissing).call(a,"distributors",{name:"lang",hash:{},data:r}))+'</div>\r\n <div class="col-9 '+s(l(null!=(i=null!=(i=null!=t?t.options:t)?i.styles:i)?i.citationValues:i,t))+'">\r\n <p>\r\n'+(null!=(i=n.each.call(a,null!=t?t.distributors:t,{name:"each",hash:{},fn:e.program(15,r,0),inverse:e.noop,data:r}))?i:"")+" </p>\r\n </div>\r\n"},23:function(e,t,n,o,r){var i;e.propertyIsEnumerable;return null!=(i=n.if.call(null!=t?t:e.nullContext||{},null!=t?t.channel:t,{name:"if",hash:{},fn:e.program(24,r,0),inverse:e.noop,data:r}))?i:""},24:function(e,t,n,o,r){e.propertyIsEnumerable;var i,l=e.lambda,s=e.escapeExpression;return'\r\n <div class="col-3 '+s(l(null!=(i=null!=(i=null!=t?t.options:t)?i.styles:i)?i.columnNames:i,t))+'">'+s((n.lang||t&&t.lang||e.hooks.helperMissing).call(null!=t?t:e.nullContext||{},"channel",{name:"lang",hash:{},data:r}))+'</div>\r\n <p class="col-9">'+s(l(null!=(i=null!=t?t.channel:t)?i.name:i,t))+"</p>\r\n "},26:function(e,t,n,o,r){e.propertyIsEnumerable;var i,l=e.lambda,s=e.escapeExpression;return' <div class="col-3 '+s(l(null!=(i=null!=(i=null!=t?t.options:t)?i.styles:i)?i.columnNames:i,t))+'">'+s((n.lang||t&&t.lang||e.hooks.helperMissing).call(null!=t?t:e.nullContext||{},"broadcastDate",{name:"lang",hash:{},data:r}))+'</div>\r\n <p class="col-9">'+s(l(null!=(i=null!=t?t.options:t)?i.broadcastDate:i,t))+"</p>\r\n"},28:function(e,t,n,o,r){e.propertyIsEnumerable;var i,l=e.lambda,s=e.escapeExpression;return' <div class="col-3 '+s(l(null!=(i=null!=(i=null!=t?t.options:t)?i.styles:i)?i.columnNames:i,t))+'">'+s((n.lang||t&&t.lang||e.hooks.helperMissing).call(null!=t?t:e.nullContext||{},"subtitles",{name:"lang",hash:{},data:r}))+'</div>\r\n <p class="col-9">'+s(l(null!=(i=null!=t?t.options:t)?i.subtitles:i,t))+"</p>\r\n"},compiler:[8,">= 4.3.0"],main:function(e,t,n,o,r){e.propertyIsEnumerable;var i,l=null!=t?t:e.nullContext||{};return(null!=(i=n.if.call(l,null!=(i=null!=t?t.options:t)?i.showHeading:i,{name:"if",hash:{},fn:e.program(1,r,0),inverse:e.noop,data:r}))?i:"")+'<div class="row mb-0">\r\n'+(null!=(i=n.if.call(l,null!=t?t.name:t,{name:"if",hash:{},fn:e.program(4,r,0),inverse:e.noop,data:r}))?i:"")+"\r\n"+(null!=(i=n.if.call(l,null!=(i=null!=t?t.series:t)?i.name:i,{name:"if",hash:{},fn:e.program(6,r,0),inverse:e.noop,data:r}))?i:"")+"\r\n"+(null!=(i=n.if.call(l,null!=(i=null!=t?t.rating:t)?i.code:i,{name:"if",hash:{},fn:e.program(8,r,0),inverse:e.noop,data:r}))?i:"")+"\r\n"+(null!=(i=n.if.call(l,null!=t?t.description:t,{name:"if",hash:{},fn:e.program(10,r,0),inverse:e.noop,data:r}))?i:"")+"\r\n"+(null!=(i=n.if.call(l,null!=t?t.productionYear:t,{name:"if",hash:{},fn:e.program(12,r,0),inverse:e.noop,data:r}))?i:"")+"\r\n"+(null!=(i=n.if.call(l,null!=(i=null!=t?t.producers:t)?i.length:i,{name:"if",hash:{},fn:e.program(14,r,0),inverse:e.noop,data:r}))?i:"")+"\r\n"+(null!=(i=n.if.call(l,null!=(i=null!=t?t.directors:t)?i.length:i,{name:"if",hash:{},fn:e.program(17,r,0),inverse:e.noop,data:r}))?i:"")+"\r\n"+(null!=(i=n.if.call(l,null!=(i=null!=t?t.productionCompanies:t)?i.length:i,{name:"if",hash:{},fn:e.program(19,r,0),inverse:e.noop,data:r}))?i:"")+"\r\n"+(null!=(i=n.if.call(l,null!=(i=null!=t?t.distributors:t)?i.length:i,{name:"if",hash:{},fn:e.program(21,r,0),inverse:e.noop,data:r}))?i:"")+"\r\n "+(null!=(i=n.if.call(l,null!=(i=null!=t?t.channel:t)?i.name:i,{name:"if",hash:{},fn:e.program(23,r,0),inverse:e.noop,data:r}))?i:"")+"\r\n\r\n"+(null!=(i=n.if.call(l,null!=(i=null!=t?t.options:t)?i.broadcastDate:i,{name:"if",hash:{},fn:e.program(26,r,0),inverse:e.noop,data:r}))?i:"")+"\r\n"+(null!=(i=n.if.call(l,null!=(i=null!=t?t.options:t)?i.subtitles:i,{name:"if",hash:{},fn:e.program(28,r,0),inverse:e.noop,data:r}))?i:"")+"</div>"},useData:!0})},1182:function(e,t,n){"use strict";var o=n(3),r="staffRequests.utils",i={destinationLibrary:function(e){if(!e||!e.id)return o.a.getPhrase(r,"selectLibrary")},destinationFolder:function(e){if(!e||!e.id)return o.a.getPhrase(r,"selectFolder")}},l={message:[{required:!0,msg:function(){return o.a.getPhrase("staffRequests.utils","provideMessage")}}]};n.d(t,"a",(function(){return i})),n.d(t,"b",(function(){return l}))},1316:function(e,t,n){var o=n(10);e.exports=(o.default||o).template({1:function(e,t,n,o,r){return" text-muted"},compiler:[8,">= 4.3.0"],main:function(e,t,n,o,r){e.propertyIsEnumerable;var i,l,s=e.lambda,a=e.escapeExpression,c=null!=t?t:e.nullContext||{},u=e.hooks.helperMissing;return'<h6 class="mb-1">'+a(s(null!=(i=null!=t?t.video:t)?i.name:i,t))+'</h6>\r\n<p class="m-0">'+a((n.lang||t&&t.lang||u).call(c,"request",{name:"lang",hash:{lastName:null!=(i=null!=t?t.options:t)?i.lastName:i,firstName:null!=(i=null!=t?t.options:t)?i.firstName:i},data:r}))+'</p>\r\n<time class="m-0'+(null!=(i=n.unless.call(c,null!=(i=null!=t?t.options:t)?i.isSelected:i,{name:"unless",hash:{},fn:e.program(1,r,0),inverse:e.noop,data:r}))?i:"")+'" datetime='+a("function"==typeof(l=null!=(l=n.dateCreated||(null!=t?t.dateCreated:t))?l:u)?l.call(c,{name:"dateCreated",hash:{},data:r}):l)+">"+a(s(null!=(i=null!=t?t.options:t)?i.dateRequested:i,t))+"</time"},useData:!0})},1317:function(e,t,n){e.exports={list:"_3aP3V",item:"_1uqg-",selected:"_29kkj"}},1318:function(e,t,n){e.exports={actions:"_2xyI4",source:"_153F1",button:"_3I7SQ"}},1319:function(e,t,n){var o=n(10);e.exports=(o.default||o).template({1:function(e,t,n,o,r){var i;e.propertyIsEnumerable;return" <span>"+e.escapeExpression(e.lambda(null!=(i=null!=t?t.sourceFolder:t)?i.name:i,t))+"</span>\r\n"},3:function(e,t,n,o,r){return' <div class="form-group m-0 pb-2">\r\n <div class="library-select-region"></div>\r\n </div> \r\n'},compiler:[8,">= 4.3.0"],main:function(e,t,n,o,r){e.propertyIsEnumerable;var i,l=null!=t?t:e.nullContext||{},s=e.hooks.helperMissing,a=e.escapeExpression,c=e.lambda;return'<div class="row align-items-center py-2">\r\n <div class="col-3"><strong>'+a((n.lang||t&&t.lang||s).call(l,"source",{name:"lang",hash:{},data:r}))+'</strong></div>\r\n <div class="col-5">\r\n <span class="badge p-1 mr-1 '+a(c(null!=(i=null!=t?t.options:t)?i.sourceClass:i,t))+'">'+a(c(null!=(i=null!=t?t.options:t)?i.sourceLibraryName:i,t))+"</span>\r\n"+(null!=(i=n.if.call(l,null!=(i=null!=t?t.sourceFolder:t)?i.name:i,{name:"if",hash:{},fn:e.program(1,r,0),inverse:e.noop,data:r}))?i:"")+' </div>\r\n <div class="col-4 text-right">\r\n <button class="btn btn-success btn-sm '+a(c(null!=(i=null!=(i=null!=t?t.options:t)?i.styles:i)?i.button:i,t))+' approve" type="button">'+a((n.lang||t&&t.lang||s).call(l,"approve",{name:"lang",hash:{},data:r}))+'</button>\r\n <button class="btn btn-light btn-sm border-secondary '+a(c(null!=(i=null!=(i=null!=t?t.options:t)?i.styles:i)?i.button:i,t))+' reject" type="button">'+a((n.lang||t&&t.lang||s).call(l,"reject",{name:"lang",hash:{},data:r}))+'</button>\r\n </div>\r\n</div>\r\n<div class="row align-items-center py-2">\r\n <div class="col-3"><strong>'+a((n.lang||t&&t.lang||s).call(l,"moveVideo",{name:"lang",hash:{},data:r}))+'</strong></div>\r\n <div class="col-5">\r\n'+(null!=(i=n.if.call(l,null!=(i=null!=t?t.options:t)?i.showLibrarySelect:i,{name:"if",hash:{},fn:e.program(3,r,0),inverse:e.noop,data:r}))?i:"")+' <div class="form-group m-0">\r\n <div class="folder-select-region"></div>\r\n </div> \r\n </div>\r\n</div>'},useData:!0})},1320:function(e,t,n){var o=n(10);e.exports=(o.default||o).template({1:function(e,t,n,o,r){e.propertyIsEnumerable;var i,l=e.lambda,s=e.escapeExpression;return'<div class="border-bottom">\r\n <div class="d-inline-block mr-2 '+s(l(null!=(i=null!=(i=null!=t?t.options:t)?i.styles:i)?i.avatar:i,t))+'" style="background-image: url(\''+s(l(null!=(i=null!=t?t.options:t)?i.avatarUrl:i,t))+'\')">\r\n &nbsp\r\n </div>\r\n <div class="d-inline-block">\r\n <p>'+(null!=(i=(n.lang||t&&t.lang||e.hooks.helperMissing).call(null!=t?t:e.nullContext||{},"requestNote",{name:"lang",hash:{lastName:null!=(i=null!=t?t.options:t)?i.lastName:i,firstName:null!=(i=null!=t?t.options:t)?i.firstName:i},data:r}))?i:"")+'</p>\r\n <p class="pl-2 '+s(l(null!=(i=null!=(i=null!=t?t.options:t)?i.styles:i)?i.message:i,t))+'">'+s(l(null!=(i=null!=(i=null!=t?t.options:t)?i.message:i)?i.message:i,t))+"</p>\r\n </div> \r\n</div>\r\n"},3:function(e,t,n,o,r){e.propertyIsEnumerable;var i,l=e.escapeExpression;return'<span class="badge p-1 '+l(e.lambda(null!=(i=null!=(i=null!=t?t.options:t)?i.styles:i)?i.interactive:i,t))+'">'+l((n.lang||t&&t.lang||e.hooks.helperMissing).call(null!=t?t:e.nullContext||{},"interactive",{name:"lang",hash:{},data:r}))+"</span>\r\n"},compiler:[8,">= 4.3.0"],main:function(e,t,n,o,r){e.propertyIsEnumerable;var i,l=null!=t?t:e.nullContext||{};return'<div class="request-action-region"></div>\r\n<div class="p-3">\r\n'+(null!=(i=n.if.call(l,null!=(i=null!=t?t.options:t)?i.message:i,{name:"if",hash:{},fn:e.program(1,r,0),inverse:e.noop,data:r}))?i:"")+'<div class="video-preview-region responsize-img col-7 pt-3 pb-2 px-0">\r\n <img class="img-fluid cursor-pointer" src="'+e.escapeExpression(e.lambda(null!=(i=null!=(i=null!=t?t.video:t)?i.thumbnail:i)?i.url:i,t))+'"/>\r\n</div>\r\n'+(null!=(i=n.if.call(l,null!=(i=null!=t?t.options:t)?i.interactive:i,{name:"if",hash:{},fn:e.program(3,r,0),inverse:e.noop,data:r}))?i:"")+'<div class="video-info-region py-1"></div>\r\n</div>'},useData:!0})},1321:function(e,t,n){e.exports={avatar:"_2c8zD",message:"EQzqm",interactive:"mnE2L"}},1322:function(e,t,n){var o=n(10);e.exports=(o.default||o).template({compiler:[8,">= 4.3.0"],main:function(e,t,n,o,r){e.propertyIsEnumerable;var i,l=e.escapeExpression,s=e.lambda;return'<div class="border-bottom">\r\n <h1 class="h3 p-3 m-0">'+l((n.lang||t&&t.lang||e.hooks.helperMissing).call(null!=t?t:e.nullContext||{},"staffRequests",{name:"lang",hash:{},data:r}))+'</h1>\r\n</div>\r\n<div class="request-list-region border-right d-inline-block '+l(s(null!=(i=null!=(i=null!=t?t.options:t)?i.styles:i)?i.requestList:i,t))+'"></div><div class="request-details-region border-left d-inline-block '+l(s(null!=(i=null!=(i=null!=t?t.options:t)?i.styles:i)?i.requestDetails:i,t))+'"></div>\r\n<div class="empty-region"></div>'},useData:!0})},1323:function(e,t,n){e.exports={requestList:"_3DFfh",requestDetails:"_2ezub"}},1460:function(e,t,n){"use strict";n.r(t);var o=n(6),r=n(5),i=n(3),l=n(2),s=n(96),a=n(412),c=n(411),u=n(285),f=n(0),p=n(187),d=n(136),h=n(8),y=n(238),m=n(29),g=n(1316),v=n.n(g),b=n(1317),w=n.n(b);function S(e){return(S="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}function k(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function C(e,t){for(var n=0;n<t.length;n++){var o=t[n];o.enumerable=o.enumerable||!1,o.configurable=!0,"value"in o&&(o.writable=!0),Object.defineProperty(e,o.key,o)}}function R(e,t,n){return t&&C(e.prototype,t),n&&C(e,n),e}function E(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}}),t&&x(e,t)}function x(e,t){return(x=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e})(e,t)}function T(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 Date.prototype.toString.call(Reflect.construct(Date,[],(function(){}))),!0}catch(e){return!1}}();return function(){var n,o=O(e);if(t){var r=O(this).constructor;n=Reflect.construct(o,arguments,r)}else n=o.apply(this,arguments);return _(this,n)}}function _(e,t){return!t||"object"!==S(t)&&"function"!=typeof t?function(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}(e):t}function O(e){return(O=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)})(e)}var I=function(e){E(n,e);var t=T(n);function n(e){return k(this,n),t.call(this,e)}return R(n,[{key:"events",value:function(){return{click:"onClick"}}},{key:"isSelected",value:function(){return this.options.selectedRequestId&&this.model.get("id").toString()===this.options.selectedRequestId.toString()}},{key:"onClick",value:function(){l.a.AppLinkHelper.trigger({application:f.b.STAFF_REQUESTS,action:f.a.StaffRequests.EDIT_REQUEST,args:[this.model.get("id")]})}},{key:"viewOptions",value:function(){return{dateRequested:m.parseZone(this.model.get("dateCreated")).local().fromNow(),isSelected:this.isSelected(),firstName:this.model.user.get("name"),lastName:this.model.user.get("surname")}}},{key:"name",get:function(){return"StaffRequestItemComponent"}},{key:"template",get:function(){return v.a}},{key:"lang",get:function(){return"staffRequests.staffRequestItem"}},{key:"className",get:function(){var e="p-3 border-bottom cursor-pointer ".concat(w.a.item);return this.isSelected()&&(e+=" ".concat(w.a.selected)),e}}]),n}(l.a.Component),q=function(e){E(n,e);var t=T(n);function n(e){return k(this,n),t.call(this,e)}return R(n,[{key:"name",get:function(){return"StaffRequestListComponent"}},{key:"className",get:function(){return w.a.list}},{key:"childView",get:function(){return I}},{key:"childViewOptions",get:function(){return{selectedRequestId:this.options.selectedRequestId,currentUser:this.options.currentUser}}}]),n}(l.a.ComponentCollection),N=n(13),P=n(4),L=n(1141),D=n(1074),j=n(1036),F=n(30),M=n(42),A=n(49),U=n(79),V=n(1044),H=n(149),B=n(1182),Q=n(1104),K=n(1318),z=n.n(K),Y=n(1319),J=n.n(Y);function G(e){return(G="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 W(e,t){for(var n=0;n<t.length;n++){var o=t[n];o.enumerable=o.enumerable||!1,o.configurable=!0,"value"in o&&(o.writable=!0),Object.defineProperty(e,o.key,o)}}function Z(e,t){return(Z=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e})(e,t)}function X(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 Date.prototype.toString.call(Reflect.construct(Date,[],(function(){}))),!0}catch(e){return!1}}();return function(){var n,o=ee(e);if(t){var r=ee(this).constructor;n=Reflect.construct(o,arguments,r)}else n=o.apply(this,arguments);return $(this,n)}}function $(e,t){return!t||"object"!==G(t)&&"function"!=typeof t?function(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}(e):t}function ee(e){return(ee=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)})(e)}var te=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}}),t&&Z(e,t)}(s,e);var t,n,r,i=X(s);function s(e){return function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,s),i.call(this,e)}return t=s,(n=[{key:"initialize",value:function(){this.bindListeners(),this.getViewModel();var e=this.viewModel.destinationLibrary&&this.viewModel.destinationLibrary.get("id"),t=e&&this.collection.get(e);this.folderCollection=t?t.children:new U.a,A.a.setSelected(this.folderTreeKey,this.viewModel.destinationFolder,this.folderCollection)}},{key:"regions",value:function(){return{librarySelect:{el:".library-select-region",replaceElement:!0},folderSelect:{el:".folder-select-region",replaceElement:!0}}}},{key:"events",value:function(){return{"click .approve":"onClickApprove","click .reject":"onClickReject"}}},{key:"bindListeners",value:function(){var e=this;this.listenTo(this.channelName,"library:selected",this.onLibrarySelected),this.listenTo(this.channelName,"folder:selected",this.onFolderSelected),this.listenTo(this.channelName,"create:folder:clicked",this.onClickCreateFolder),this.listenTo(this.options.staffRequestsChannel,"select:folder",(function(t){e.onFolderSelected(t),e.render()}))}},{key:"getViewModel",value:function(){var e={},t=this.collection.get(this.model.destinationLibrary);t&&(e.destinationLibrary=t.toJSON());var n=A.a.getModelFromCollection(this.model.destinationFolder.get("id"),this.collection);n&&(e.destinationFolder=n.toJSON()),this.viewModel=F.a.get(this.viewModelName,e,{ctor:H.a}),this.viewModel.addValidation(B.a)}},{key:"onLibrarySelected",value:function(e){this.viewModel.set("destinationLibrary",e.toJSON()),this.viewModel.unset("destinationFolder"),this.viewModel.set("destinationFolder",{}),A.a.deselectAll(this.folderTreeKey,this.folderCollection),this.folderCollection=e.get("children"),this.renderFolderSelect()}},{key:"onFolderSelected",value:function(e){this.viewModel.set("destinationFolder",e.toJSON()),A.a.setSelected(this.folderTreeKey,e,this.folderCollection)}},{key:"onClickApprove",value:function(){var e=this.model.get("id"),t=this.viewModel.destinationLibrary.get("id"),n=this.viewModel.destinationFolder.get("id");e&&t&&n&&(l.a.AppLinkHelper.trigger({application:f.b.STAFF_REQUESTS,action:f.a.StaffRequests.APPROVE_REQUEST,args:[e,t,n]}),this.logStaffRequestAction(P.q.Approve))}},{key:"onClickReject",value:function(){l.a.AppLinkHelper.trigger({application:f.b.STAFF_REQUESTS,action:f.a.StaffRequests.REJECT_REQUEST,args:[this.model.get("id")]}),this.logStaffRequestAction(P.q.Reject)}},{key:"onClickCreateFolder",value:function(){l.a.AppLinkHelper.trigger({application:f.b.STAFF_REQUESTS,action:f.a.Shared.NEW_FOLDER,args:[this.viewModel.destinationLibrary.get("id")]}),this.logCreateFolderAction()}},{key:"logStaffRequestAction",value:function(e){var t={location:P.k.StaffRequestDetails,actionType:e,entity:P.e.StaffRequest,workflowPhase:P.r.Start},n={id:this.model.get("id"),videoId:this.model.get("video")&&this.model.get("video").get("id"),requestingUserId:this.model.get("user")&&this.model.get("user").get("id"),sourceLibraryId:this.model.get("sourceLibrary")&&this.model.get("sourceLibrary").get("id"),sourceFolderId:this.model.get("sourceFolder")&&this.model.get("sourceFolder").get("id"),destinationLibraryId:this.viewModel.destinationLibrary.get("id"),destinationFolderId:this.viewModel.destinationFolder.get("id")};M.a.logUserAction(n,t)}},{key:"logCreateFolderAction",value:function(){var e={location:P.k.StaffRequestDetails,actionType:P.q.Create,entity:P.e.Folder,workflowPhase:P.r.Start},t={libraryId:this.viewModel.destinationLibrary.get("id")};M.a.logUserAction(t,e)}},{key:"renderLibrarySelect",value:function(){this.collection.length<2||this.showChildView("librarySelect",new Q.a({collection:this.collection,channelName:this.channelName,currentLibraryId:this.viewModel.destinationLibrary&&this.viewModel.destinationLibrary.get("id"),inputName:"destinationLibrary",placeholderText:this.viewModel.destinationLibrary&&this.viewModel.destinationLibrary.get("name"),disabledLibraryIds:this.options.disabledLibraryIds}))}},{key:"renderFolderSelect",value:function(){this.showChildView("folderSelect",new V.a({collection:this.folderCollection,channelName:this.channelName,folderTreeKey:this.folderTreeKey,canCreateNew:!0}))}},{key:"viewOptions",value:function(){return{styles:z.a,sourceLibraryName:j.a.mapSourceToDisplayName(this.model.sourceLibrary),sourceClass:"".concat(z.a.source," ").concat(j.a.mapSourceToClass(this.model.sourceLibrary.get("type"))),showLibrarySelect:this.collection&&this.collection.length>1}}},{key:"onRender",value:function(){this.renderLibrarySelect(),this.renderFolderSelect(),o.Validation.bind(this,{model:this.viewModel})}},{key:"name",get:function(){return"StaffRequestActionsComponent"}},{key:"template",get:function(){return J.a}},{key:"lang",get:function(){return"staffRequests.staffRequestActions"}},{key:"folderTreeKey",get:function(){return"staff:requests:folder:select"}},{key:"className",get:function(){return"p-3 border-bottom ".concat(z.a.actions)}},{key:"channelName",get:function(){return"".concat(this.name).concat(this.cid)}},{key:"viewModelName",get:function(){return"".concat(this.name,":").concat(this.model.get("id"))}}])&&W(t.prototype,n),r&&W(t,r),s}(l.a.Component),ne=n(1320),oe=n.n(ne),re=n(1321),ie=n.n(re);function le(e){return(le="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 se(e,t){for(var n=0;n<t.length;n++){var o=t[n];o.enumerable=o.enumerable||!1,o.configurable=!0,"value"in o&&(o.writable=!0),Object.defineProperty(e,o.key,o)}}function ae(e,t){return(ae=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e})(e,t)}function ce(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 Date.prototype.toString.call(Reflect.construct(Date,[],(function(){}))),!0}catch(e){return!1}}();return function(){var n,o=fe(e);if(t){var r=fe(this).constructor;n=Reflect.construct(o,arguments,r)}else n=o.apply(this,arguments);return ue(this,n)}}function ue(e,t){return!t||"object"!==le(t)&&"function"!=typeof t?function(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}(e):t}function fe(e){return(fe=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)})(e)}var pe=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}}),t&&ae(e,t)}(i,e);var t,n,o,r=ce(i);function i(e){return function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,i),r.call(this,e)}return t=i,(n=[{key:"regions",value:function(){return{actions:{el:".request-action-region",replaceElement:!0},preview:{el:".video-preview-region",replaceElement:!1},info:{el:".video-info-region",replaceElement:!1}}}},{key:"getAvatarUrl",value:function(){var e=this.collection&&this.collection.first(),t=e&&e.user&&e.user.avatar;if(t&&t.get("url"))return t.get("url");var n="".concat(this.options.config.get("imageCdnUrl"),"/v1/profile-images?initials=").concat(this.getInitials());return N.g.createUrl(n,{size:"small"})}},{key:"getInitials",value:function(){var e=this.collection&&this.collection.first();if(e&&e.user){var t=e.user.get("name"),n=e.user.get("surname");return"".concat(t&&t.trim()[0]).concat(n&&n.trim()[0])}}},{key:"renderActions",value:function(){this.showChildView("actions",new te({model:this.model,collection:this.options.libraryCollection,disabledLibraryIds:this.options.disabledLibraryIds,staffRequestsChannel:this.options.channelName}))}},{key:"renderVideoPreview",value:function(){this.showChildView("preview",new D.a({model:this.model.video,webPlayerUrl:this.options.config.get("webPlayerUrl"),analyticsOptions:{location:P.k.VideoRequest}}))}},{key:"renderVideoInfo",value:function(){this.showChildView("info",new L.a({model:this.model.video,config:this.options.config,externalSeriesLink:!0}))}},{key:"viewOptions",value:function(){return{styles:ie.a,avatarUrl:this.getAvatarUrl(),message:this.collection&&this.collection.length&&this.collection.first().toJSON(),interactive:j.a.isInteractive(this.model.video),firstName:this.model.user.get("name"),lastName:this.model.user.get("surname")}}},{key:"onRender",value:function(){this.renderActions(),this.renderVideoPreview(),this.renderVideoInfo()}},{key:"name",get:function(){return"StaffRequestDetailsComponent"}},{key:"template",get:function(){return oe.a}},{key:"lang",get:function(){return"staffRequests.staffRequestDetails"}}])&&se(t.prototype,n),o&&se(t,o),i}(l.a.Component),de=n(138),he=n(1322),ye=n.n(he),me=n(1323),ge=n.n(me);function ve(e){return(ve="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 be(e,t){for(var n=0;n<t.length;n++){var o=t[n];o.enumerable=o.enumerable||!1,o.configurable=!0,"value"in o&&(o.writable=!0),Object.defineProperty(e,o.key,o)}}function we(e,t){return(we=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e})(e,t)}function Se(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 Date.prototype.toString.call(Reflect.construct(Date,[],(function(){}))),!0}catch(e){return!1}}();return function(){var n,o=Ce(e);if(t){var r=Ce(this).constructor;n=Reflect.construct(o,arguments,r)}else n=o.apply(this,arguments);return ke(this,n)}}function ke(e,t){return!t||"object"!==ve(t)&&"function"!=typeof t?function(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}(e):t}function Ce(e){return(Ce=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)})(e)}n.d(t,"StaffRequestsView",(function(){return Re}));var Re=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}}),t&&we(e,t)}(v,e);var t,n,m,g=Se(v);function v(e){var t;return function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,v),(t=g.call(this,e)).unavailableLibraryIds=[],t}return t=v,(n=[{key:"initialize",value:function(){this.staffRequestDataService=r.a.getInstance(f.g.StaffRequests,this),this.videoDataService=r.a.getInstance(f.g.Video,this),this.options.referrer===a.a.Notification&&this.staffRequestDataService.clearRequestCache(),this.bindListeners()}},{key:"regions",value:function(){return{requestList:{el:".request-list-region",partialLoading:h.j.StaffRequestList,replaceElement:!1},requestDetails:{el:".request-details-region",partialLoading:h.j.StaffRequestDetails,replaceElement:!1},emptyState:{el:".empty-region",replaceElement:!0}}}},{key:"bindListeners",value:function(){if(this.listenTo(f.e.LIBRARY,"folder:created",this.onFolderCreated),this.options.requestId){this.listenTo(f.e.STAFF_REQUEST,"cache:cleared",this.render);var e="".concat(f.f.STAFF_REQUEST_BY_ID,":").concat(this.options.requestId);this.listenTo(f.e.STAFF_REQUEST,"".concat(e,":sync"),this.render),this.listenTo(f.e.STAFF_REQUEST,"".concat(e,":error"),this.onError),this.listenTo(f.e.STAFF_REQUEST,"".concat(f.f.STAFF_REQUESTS,":invalidate"),this.onUpdate);var t="".concat(f.f.STAFF_REQUEST_MESSAGES,":").concat(this.options.requestId);this.listenTo(f.e.STAFF_REQUEST,"".concat(t,":sync"),this.render),this.listenTo(f.e.STAFF_REQUEST,"".concat(t,":error"),this.onError)}}},{key:"onUpdate",value:function(){this.staffRequestCollection=null,this.render()}},{key:"fetchData",value:function(){var e=this;if(this.staffRequestCollection||this.staffRequestDataService.getStaffRequests((function(t){e.staffRequestCollection=t,e.onRequestsSync()})),this.options.requestId&&(this.model=this.staffRequestDataService.getStaffRequest(this.options.requestId),this.staffRequestMessageCollection=this.staffRequestDataService.getMessages(this.options.requestId),this.libraryCollection&&this.libraryCollection.length>1&&this.model&&!this.unavailableLibraryIds.length)){var t=this.model.get("video");this.videoDataService.getLibraries(t.get("id"),(function(t){e.unavailableLibraryIds=t.map((function(e){return e.get("id")+""})),e.render()}))}}},{key:"onRequestsSync",value:function(){var e;this.options.requestId&&(e=this.staffRequestCollection.get(this.options.requestId)),!e&&this.staffRequestCollection.first()?(e=this.staffRequestCollection.first(),l.a.AppLinkHelper.trigger({application:f.b.STAFF_REQUESTS,action:f.a.StaffRequests.EDIT_REQUEST,args:[e.id]},{replace:!0})):this.render()}},{key:"onError",value:function(){this.redirectToHome()}},{key:"onFolderCreated",value:function(e){o.Radio.channel(this.channelName).trigger("select:folder",e),this.render()}},{key:"redirectToHome",value:function(){l.a.AppLinkHelper.trigger({application:f.b.STAFF_REQUESTS,action:f.a.StaffRequests.HOME})}},{key:"getEmptyStateDescription",value:function(){return this.libraryCollection?!this.libraryCollection.length||this.libraryCollection.every((function(e){return e.get("status")!==s.a.Published}))?i.a.getPhrase(this.lang,"emptyStateNoLibraries"):i.a.getPhrase(this.lang,"emptyStateDescription"):""}},{key:"renderRequestList",value:function(){this.staffRequestCollection?this.showChildView("requestList",new q({collection:this.staffRequestCollection,selectedRequestId:this.options.requestId,currentUser:this.currentUser})):this.renderPartialLoading("requestList")}},{key:"renderRequestDetails",value:function(){var e=!!this.libraryCollection,t=e&&!!this.model&&!!this.staffRequestMessageCollection;!this.options.requestId&&!e||this.options.requestId&&!t?this.renderPartialLoading("requestDetails"):this.options.requestId&&this.showChildView("requestDetails",new pe({model:this.model,collection:this.staffRequestMessageCollection,libraryCollection:this.libraryCollection,disabledLibraryIds:this.unavailableLibraryIds,config:this.config,channelName:this.channelName}))}},{key:"viewOptions",value:function(){return{styles:ge.a}}},{key:"onBeforeRender",value:function(){return this.fetchData(),!this.model||this.model.get("status")===y.a.Pending||(this.redirectToHome(),!1)}},{key:"onRender",value:function(){this.renderRequestList(),this.renderRequestDetails()}},{key:"name",get:function(){return"StaffRequestsView"}},{key:"lang",get:function(){return"staffRequests.staffRequests"}},{key:"title",get:function(){return i.a.getPhrase(this.lang,"title")}},{key:"template",get:function(){return ye.a}},{key:"className",get:function(){return"bg-white"}},{key:"channelName",get:function(){return"".concat(this.name).concat(this.cid)}},{key:"behaviors",get:function(){var e=this;return[{behaviorClass:u.a,collectionName:"staffRequestCollection",region:"emptyState",type:h.c.StaffRequests,shouldRender:c.a.isCollectionEmpty.bind(null,this,"staffRequestCollection"),componentOptions:{description:function(){return e.getEmptyStateDescription()},emptyState:function(){return i.a.getPhrase(e.lang,"emptyStateHeading")}},emptyStateComponents:f.h}]}},{key:"requiredResources",get:function(){return{config:p.b.config,libraryCollection:de.b.libraries,currentUser:d.b.currentUser}}}])&&be(t.prototype,n),m&&be(t,m),v}(l.a.View)}}]);
@@ -0,0 +1 @@
1
+ (window.webpackJsonp_clickview_library_editor=window.webpackJsonp_clickview_library_editor||[]).push([[14],{1048:function(e,t,n){"use strict";n.d(t,"a",(function(){return v}));var o=n(6),r=n(2),i=n(3),l=n(1062),s=n(13),a=n(1049),c=n.n(a),u=n(1050),f=n.n(u);function p(e){return(p="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 d(e,t){for(var n=0;n<t.length;n++){var o=t[n];o.enumerable=o.enumerable||!1,o.configurable=!0,"value"in o&&(o.writable=!0),Object.defineProperty(e,o.key,o)}}function h(e,t){return(h=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e})(e,t)}function y(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 Date.prototype.toString.call(Reflect.construct(Date,[],(function(){}))),!0}catch(e){return!1}}();return function(){var n,o=g(e);if(t){var r=g(this).constructor;n=Reflect.construct(o,arguments,r)}else n=o.apply(this,arguments);return m(this,n)}}function m(e,t){return!t||"object"!==p(t)&&"function"!=typeof t?function(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}(e):t}function g(e){return(g=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)})(e)}var v=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}}),t&&h(e,t)}(u,e);var t,n,r,a=y(u);function u(e){return function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,u),a.call(this,e)}return t=u,(n=[{key:"initialize",value:function(){this.listenTo(this.options.channelName,"folder:selected new:folder:selected",this.setButtonText),this.listenTo(this.options.channelName,"re:render:selector",this.renderSelector),this.disabledIds=this.options.disabledIds&&this.options.disabledIds.reduce((function(e,t){return Object.assign(Object.assign({},e),function(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}({},t,!0))}),{})}},{key:"regions",value:function(){return{selector:{el:".selector-region",replaceElement:!1}}}},{key:"events",value:function(){return{"click .create-new":"onClickCreateNew"}}},{key:"onClickCreateNew",value:function(e){e.preventDefault(),o.Radio.channel(this.options.channelName).trigger("create:folder:clicked")}},{key:"setButtonText",value:function(e,t){if(e&&!t){var n=e.get("name");this.getUI("button").text(n)}else{var o=s.f.getSelected(this.options.folderTreeKey,this.collection),r=o?o.get("name"):i.a.getPhrase(this.lang,"button");this.getUI("button").text(r)}}},{key:"renderSelector",value:function(){this.showChildView("selector",new l.a({styles:f.a,collection:this.collection,channelName:this.options.channelName,childrenProperty:"children",folderTreeId:this.options.folderTreeKey,extraClass:f.a.list,extraClasses:f.a.list,isSelector:!0,disabledIds:this.disabledIds||{}}))}},{key:"viewOptions",value:function(){return{styles:f.a,name:this.options.name||this.options.channelName,buttonText:this.buttonText,canCreateNew:this.options.canCreateNew}}},{key:"onRender",value:function(){this.setButtonText(),this.renderSelector()}},{key:"name",get:function(){return"TreeDropdownComponent"}},{key:"template",get:function(){return c.a}},{key:"className",get:function(){return"position-relative"}},{key:"lang",get:function(){return"libraryEditor.treeDropdown"}},{key:"defaults",get:function(){return{disabledIds:[]}}},{key:"elements",get:function(){return{button:".custom-select"}}}])&&d(t.prototype,n),r&&d(t,r),u}(r.a.Component)},1049:function(e,t,n){var o=n(10);e.exports=(o.default||o).template({1:function(e,t,n,o,r){e.propertyIsEnumerable;var i,l=e.escapeExpression;return' <button class="create-new btn font-weight-bold rounded-0 w-100 text-left '+l(e.lambda(null!=(i=null!=(i=null!=t?t.options:t)?i.styles:i)?i.customItem:i,t))+'">'+l((n.lang||t&&t.lang||e.hooks.helperMissing).call(null!=t?t:e.nullContext||{},"createNew",{name:"lang",hash:{},data:r}))+"</button>\r\n"},compiler:[8,">= 4.3.0"],main:function(e,t,n,o,r){e.propertyIsEnumerable;var i,l=e.lambda,s=e.escapeExpression;return'<button\r\n class="'+s(l(null!=(i=null!=(i=null!=t?t.options:t)?i.styles:i)?i.selectBtn:i,t))+' custom-select form-control"\r\n data-toggle="dropdown"\r\n aria-haspopup="true"\r\n aria-expanded="false"\r\n name='+s(l(null!=(i=null!=t?t.options:t)?i.name:i,t))+"\r\n>"+s(l(null!=(i=null!=t?t.options:t)?i.buttonText:i,t))+'</button>\r\n<div class="dropdown-menu '+s(l(null!=(i=null!=(i=null!=t?t.options:t)?i.styles:i)?i.selector:i,t))+'">\r\n <div class="selector-region"></div>\r\n'+(null!=(i=n.if.call(null!=t?t:e.nullContext||{},null!=(i=null!=t?t.options:t)?i.canCreateNew:i,{name:"if",hash:{},fn:e.program(1,r,0),inverse:e.noop,data:r}))?i:"")+'</div>\r\n<div class="form-feedback"></div>'},useData:!0})},1050:function(e,t,n){e.exports={selectBtn:"_2TTgs",list:"_3wN7o",selector:"_3Xf1P",customItem:"_199PI"}},1085:function(e,t,n){"use strict";n.d(t,"a",(function(){return v}));var o=n(1),r=n(6),i=n(2),l=n(1043),s=n(13),a=n(1086),c=n.n(a),u=n(1087),f=n.n(u);function p(e){return(p="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 d(e,t){for(var n=0;n<t.length;n++){var o=t[n];o.enumerable=o.enumerable||!1,o.configurable=!0,"value"in o&&(o.writable=!0),Object.defineProperty(e,o.key,o)}}function h(e,t){return(h=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e})(e,t)}function y(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 Date.prototype.toString.call(Reflect.construct(Date,[],(function(){}))),!0}catch(e){return!1}}();return function(){var n,o=g(e);if(t){var r=g(this).constructor;n=Reflect.construct(o,arguments,r)}else n=o.apply(this,arguments);return m(this,n)}}function m(e,t){return!t||"object"!==p(t)&&"function"!=typeof t?function(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}(e):t}function g(e){return(g=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)})(e)}var v=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}}),t&&h(e,t)}(u,e);var t,n,i,a=y(u);function u(e){var t;return function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,u),(t=a.call(this,e)).selectSearch="",t.sameCharIndex=1,t.optionStep=1,t}return t=u,(n=[{key:"initialize",value:function(){this.setModel(),this.bindListeners()}},{key:"regions",value:function(){return{dropdown:{el:".dropdown-region",replaceElement:!0}}}},{key:"events",value:function(){return{keydown:"onKeydown","shown.bs.dropdown":"onShowDropdown"}}},{key:"bindListeners",value:function(){this.listenTo(this.options.channelName,this.options.childOptions.eventName,this.onSelect)}},{key:"onShowDropdown",value:function(e){r.Radio.channel(this.options.channelName).trigger("center:dropdown")}},{key:"onKeydown",value:function(e){38===e.keyCode||40===e.keyCode?this.onArrowKeyDown(e):13===e.keyCode?this.render():this.onType(e),r.Radio.channel(this.options.channelName).trigger("center:dropdown")}},{key:"onArrowKeyDown",value:function(e){s.c.getSelected(this.collection)?this.optionStep=1:this.optionStep=0;var t=this.getNextModel(e.keyCode);for(t||(s.c.deselectAll(this.collection),t=this.getNextModel(e.keyCode));this.isDisabled(t);)this.optionStep++,t=this.getNextModel(e.keyCode);this.onSelect(t)}},{key:"onType",value:function(e){if(1===e.key.toString().length){var t=this.getModelMatch(e);t&&this.onSelect(t),this.runTimer()}}},{key:"onSelect",value:function(e){this.isDisabled(e)||(s.c.setSelected(e.get("id"),this.collection),this.setModel(),this.getUI("dropdownToggle").text(this.getButtonText()),r.Radio.channel(this.options.channelName).trigger("select:option:selected",e))}},{key:"setModel",value:function(){this.model=s.c.getSelected(this.collection)}},{key:"getNextModel",value:function(e){var t,n=s.c.getSelected(this.collection)||this.collection.first(),o=this.collection.indexOf(n);return(t=38===e?this.collection.at(o-this.optionStep):this.collection.at(o+this.optionStep))||(s.c.deselectAll(this.collection),t=this.collection.first(),this.optionStep=0),t}},{key:"getModelMatch",value:function(e){var t,n=this;return 1===this.selectSearch.length&&this.selectSearch===e.key?t=this.handleSameCharIndex(e.key):(this.selectSearch+=e.key,this.sameCharIndex=1),t||(t=o.find(this.collection.models,(function(e){return e.get(n.options.displayProperty).toLowerCase().slice(0,n.selectSearch.length).includes(n.selectSearch.toLowerCase())}))),t}},{key:"handleSameCharIndex",value:function(e){var t=this,n=o.filter(this.collection.models,(function(n){return n.get(t.options.displayProperty).toLowerCase().slice(0,1)===e}));if(n.length>1){var r=n[this.sameCharIndex];return r||(r=o.first(n),this.sameCharIndex=0),this.sameCharIndex++,r}return o.first(n)}},{key:"runTimer",value:function(){var e=this;this.scopedTimerIndex&&clearTimeout(this.scopedTimerIndex),this.scopedTimerIndex=window.setTimeout((function(){e.selectSearch=""}),500)}},{key:"isDisabled",value:function(e){return!!e.get("divider")||!!o.isFunction(this.options.childOptions.isDisabled)&&this.options.childOptions.isDisabled.apply(this,arguments)}},{key:"getButtonText",value:function(){if(this.options.disabled)return this.options.noOptionsText;var e=s.c.getSelected(this.collection);return e&&e.get(this.options.displayProperty)||this.options.placeholderText}},{key:"viewOptions",value:function(){return{styles:f.a,inputName:this.options.inputName,disabled:this.options.disabled,placeholderText:this.getButtonText()}}},{key:"onRender",value:function(){this.showChildView("dropdown",new l.a({collection:this.collection,channelName:this.options.channelName,childOptions:o.extend(this.options.childOptions),displayOptions:{extraClasses:"w-100 ".concat(f.a.dropdownMenu)},analyticsHelper:this.options.analyticsHelper}))}},{key:"name",get:function(){return"SelectComponent"}},{key:"template",get:function(){return c.a}},{key:"defaults",get:function(){return{displayProperty:"name"}}},{key:"elements",get:function(){return{dropdownToggle:".dropdown-toggle"}}}])&&d(t.prototype,n),i&&d(t,i),u}(i.a.Component)},1086:function(e,t,n){var o=n(10);e.exports=(o.default||o).template({1:function(e,t,n,o,r){var i;e.propertyIsEnumerable;return e.escapeExpression(e.lambda(null!=(i=null!=(i=null!=t?t.options:t)?i.styles:i)?i.disabled:i,t))},3:function(e,t,n,o,r){return" disabled"},compiler:[8,">= 4.3.0"],main:function(e,t,n,o,r){e.propertyIsEnumerable;var i,l=e.lambda,s=e.escapeExpression,a=null!=t?t:e.nullContext||{};return'<button \r\n class="dropdown-toggle form-control btn-block text-left position-relative '+s(l(null!=(i=null!=(i=null!=t?t.options:t)?i.styles:i)?i.selectButton:i,t))+" "+(null!=(i=n.if.call(a,null!=(i=null!=t?t.options:t)?i.disabled:i,{name:"if",hash:{},fn:e.program(1,r,0),inverse:e.noop,data:r}))?i:"")+'" \r\n type="button" \r\n id="dropdownMenuButton" \r\n data-toggle="dropdown" \r\n aria-haspopup="true" \r\n aria-expanded="false"\r\n '+(null!=(i=n.if.call(a,null!=(i=null!=t?t.options:t)?i.disabled:i,{name:"if",hash:{},fn:e.program(3,r,0),inverse:e.noop,data:r}))?i:"")+' \r\n name="'+s(l(null!=(i=null!=t?t.options:t)?i.inputName:i,t))+'"\r\n >\r\n '+s(l(null!=(i=null!=t?t.options:t)?i.placeholderText:i,t))+'\r\n</button>\r\n<div class="dropdown-region"></div>\r\n<div class="form-feedback"></div>'},useData:!0})},1087:function(e,t,n){e.exports={dropdownMenu:"_2RaQu",selectButton:"_2xGqi",disabled:"_15kWr"}},1108:function(e,t,n){"use strict";n.d(t,"a",(function(){return v}));var o=n(1),r=n(6),i=n(2),l=n(3),s=n(42),a=n(1085),c=n(13),u=n(1109),f=n.n(u);function p(e){return(p="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 d(e,t){for(var n=0;n<t.length;n++){var o=t[n];o.enumerable=o.enumerable||!1,o.configurable=!0,"value"in o&&(o.writable=!0),Object.defineProperty(e,o.key,o)}}function h(e,t){return(h=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e})(e,t)}function y(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 Date.prototype.toString.call(Reflect.construct(Date,[],(function(){}))),!0}catch(e){return!1}}();return function(){var n,o=g(e);if(t){var r=g(this).constructor;n=Reflect.construct(o,arguments,r)}else n=o.apply(this,arguments);return m(this,n)}}function m(e,t){return!t||"object"!==p(t)&&"function"!=typeof t?function(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}(e):t}function g(e){return(g=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)})(e)}var v=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}}),t&&h(e,t)}(p,e);var t,n,i,u=y(p);function p(e){return function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,p),u.call(this,e)}return t=p,(n=[{key:"initialize",value:function(){this.bindListeners(),c.c.deselectAll(this.collection),c.c.setSelected(this.options.currentLibraryId,this.collection)}},{key:"regions",value:function(){return{dropdown:{el:".dropdown-menu-region",replaceElement:!0}}}},{key:"bindListeners",value:function(){var e=this;this.listenTo(this.channelName,"select:option:selected",(function(t){r.Radio.channel(e.options.channelName).trigger("library:selected",t)}))}},{key:"getIsOptionDisabledFn",value:function(){var e=this.options.disabledLibraryIds;return function(t){var n=t||this.model;if(o.contains(e,n.get("id")+""))return!0}}},{key:"onRender",value:function(){this.showChildView("dropdown",new a.a({collection:this.collection,channelName:this.channelName,childOptions:{titleProperty:"name",eventName:"select:option:click",isDisabled:this.getIsOptionDisabledFn()},placeholderText:this.options.placeholderText||l.a.getPhrase(this.lang,"placeholder"),noOptionsText:l.a.getPhrase(this.lang,"noLibraries"),inputName:this.options.inputName,disabled:0===this.collection.length||this.options.disabled,analyticsHelper:s.a}))}},{key:"name",get:function(){return"LibrarySelectComponent"}},{key:"channelName",get:function(){return"".concat(this.name).concat(this.cid)}},{key:"className",get:function(){return"position-relative"}},{key:"lang",get:function(){return"libraryEditor.librarySelect"}},{key:"template",get:function(){return f.a}}])&&d(t.prototype,n),i&&d(t,i),p}(i.a.Component)},1109:function(e,t,n){var o=n(10);e.exports=(o.default||o).template({compiler:[8,">= 4.3.0"],main:function(e,t,n,o,r){return'<div class="dropdown-menu-region"></div>\r\n<div class="form-feedback"></div>'},useData:!0})},1145:function(e,t,n){"use strict";n.d(t,"a",(function(){return E}));var o=n(1),r=n(29),i=n(2),l=n(82),s=n(15),a=n(135),c=n(0),u=n(8),f=n(1061),p=n(1038),d=n(1035),h=n(1146),y=n.n(h),m=n(1147),g=n.n(m),v=n(3);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 w(e,t){for(var n=0;n<t.length;n++){var o=t[n];o.enumerable=o.enumerable||!1,o.configurable=!0,"value"in o&&(o.writable=!0),Object.defineProperty(e,o.key,o)}}function S(e,t){return(S=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e})(e,t)}function k(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 Date.prototype.toString.call(Reflect.construct(Date,[],(function(){}))),!0}catch(e){return!1}}();return function(){var n,o=R(e);if(t){var r=R(this).constructor;n=Reflect.construct(o,arguments,r)}else n=o.apply(this,arguments);return C(this,n)}}function C(e,t){return!t||"object"!==b(t)&&"function"!=typeof t?function(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}(e):t}function R(e){return(R=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)})(e)}var E=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}}),t&&S(e,t)}(m,e);var t,n,i,h=k(m);function m(e){return function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,m),h.call(this,e)}return t=m,(n=[{key:"regions",value:function(){return{description:{el:".description-region",replaceElement:!0,partialLoading:u.j.VideoBasicInfo},series:{el:".series-region",replaceElement:!0}}}},{key:"getBroadcastDate",value:function(){return this.model.get("dateBroadcast")?r(this.model.get("dateBroadcast")).format(u.n.FULL_YEAR):""}},{key:"getSeriesUrl",value:function(){if(this.options.externalSeriesLink&&this.model.series)return l.a.safeUrlConcat(this.options.config.get("onlineUrl"),"series/".concat(this.model.series.id))}},{key:"renderSeries",value:function(){this.model.series&&this.model.series.get("name")&&this.showChildView("series",new p.a({model:this.model,highlight:!1,seriesUrl:this.getSeriesUrl(),styleUppercase:!1}))}},{key:"renderDescription",value:function(){if(this.model&&this.model.get("description")){var e=new f.a({model:this.model,linkify:!0,size:f.b.Large,truncate:this.options.truncateDescription,allowExpand:!0});this.showChildView("description",e)}}},{key:"getSubtitleLanguage",value:function(){var e=this;return this.model.subtitles&&this.model.get("subtitles").length?o.uniq(this.model.get("subtitles").map((function(t){var n,o=t.get("language"),r=CVLanguages.getFullEnglishName(o);return(null===(n=t.get("metadata"))||void 0===n?void 0:n.autoGenerated)?v.a.getPhrase(e.lang,"autoGenerated",{name:r}):r}))).join(", "):""}},{key:"getCitationHeading",value:function(e,t,n){return this.model.get(e)?this.model.get(e).length>1?n:t:""}},{key:"getCitationHeadings",value:function(){return{productionCompaniesText:this.getCitationHeading(u.a.ProductionCompany,"Production Company","Production Companies"),producersText:this.getCitationHeading(u.a.Producer,"Producer","Producers"),disributorsText:this.getCitationHeading(u.a.Distributor,"Distributor","Distributors"),directorsText:this.getCitationHeading(u.a.Director,"Director","Directors")}}},{key:"viewOptions",value:function(){return Object.assign({styles:y.a,ratingClass:this.model.rating&&d.i.mapRatingToClass(this.model.rating.get("value")),broadcastDate:this.getBroadcastDate(),showHeading:this.options.showHeading,subtitles:this.getSubtitleLanguage(),publisherArchiveSvg:s.a.getSvg(s.b.PublisherArchive),showPublisherVideoDetails:this.options.showPublisherVideoDetails},this.getCitationHeadings())}},{key:"onRender",value:function(){this.renderSeries(),this.renderDescription()}},{key:"name",get:function(){return"VideoBasicInfoComponent"}},{key:"template",get:function(){return g.a}},{key:"lang",get:function(){return"shared.videoBasicInfo"}},{key:"defaults",get:function(){return{truncateDescription:!0}}},{key:"behaviors",get:function(){return[{behaviorClass:a.a,selector:".tool-tip"}]}},{key:"appLinks",get:function(){return{".applink-publisher-video":{application:c.b.LIBRARY_EDITOR,action:c.a.LibraryEditor.SHOW_PUBLISHER_VIDEO,args:[this.model.get("id")]}}}}])&&w(t.prototype,n),i&&w(t,i),m}(i.a.Component)},1146:function(e,t,n){e.exports={columnNames:"_1N_VT",seriesContainer:"_4pk2s",icon:"_3SoBV",citationValues:"_1nYZg"}},1147:function(e,t,n){var o=n(10);e.exports=(o.default||o).template({1:function(e,t,n,o,r){e.propertyIsEnumerable;var i,l=null!=t?t:e.nullContext||{};return'<div class="position-relative">\r\n <h5 class="d-inline-block">'+e.escapeExpression((n.lang||t&&t.lang||e.hooks.helperMissing).call(l,"basicInfo",{name:"lang",hash:{},data:r}))+"</h5>\r\n"+(null!=(i=n.if.call(l,null!=(i=null!=t?t.options:t)?i.showPublisherVideoDetails:i,{name:"if",hash:{},fn:e.program(2,r,0),inverse:e.noop,data:r}))?i:"")+"</div>\r\n"},2:function(e,t,n,o,r){e.propertyIsEnumerable;var i,l=e.lambda,s=e.escapeExpression;return' <a class="float-right cursor-pointer applink-publisher-video">\r\n <span class="d-inline-block align-middle '+s(l(null!=(i=null!=(i=null!=t?t.options:t)?i.styles:i)?i.icon:i,t))+'">'+(null!=(i=l(null!=(i=null!=t?t.options:t)?i.publisherArchiveSvg:i,t))?i:"")+"</span> "+s((n.lang||t&&t.lang||e.hooks.helperMissing).call(null!=t?t:e.nullContext||{},"viewInPublisherArchive",{name:"lang",hash:{},data:r}))+"\r\n </a>\r\n"},4:function(e,t,n,o,r){e.propertyIsEnumerable;var i,l,s=e.escapeExpression,a=null!=t?t:e.nullContext||{},c=e.hooks.helperMissing;return' <div class="col-3 '+s(e.lambda(null!=(i=null!=(i=null!=t?t.options:t)?i.styles:i)?i.columnNames:i,t))+'">'+s((n.lang||t&&t.lang||c).call(a,"videoTitle",{name:"lang",hash:{},data:r}))+'</div>\r\n <p class="col-9">'+s("function"==typeof(l=null!=(l=n.name||(null!=t?t.name:t))?l:c)?l.call(a,{name:"name",hash:{},data:r}):l)+"</p>\r\n"},6:function(e,t,n,o,r){e.propertyIsEnumerable;var i,l=e.lambda,s=e.escapeExpression;return' <div class="col-3 '+s(l(null!=(i=null!=(i=null!=t?t.options:t)?i.styles:i)?i.columnNames:i,t))+'">'+s((n.lang||t&&t.lang||e.hooks.helperMissing).call(null!=t?t:e.nullContext||{},"series",{name:"lang",hash:{},data:r}))+'</div>\r\n <div class="col-9 '+s(l(null!=(i=null!=(i=null!=t?t.options:t)?i.styles:i)?i.seriesContainer:i,t))+'"><div class="series-region"></div></div>\r\n'},8:function(e,t,n,o,r){e.propertyIsEnumerable;var i,l=e.lambda,s=e.escapeExpression;return' <div class="col-3 '+s(l(null!=(i=null!=(i=null!=t?t.options:t)?i.styles:i)?i.columnNames:i,t))+'">'+s((n.lang||t&&t.lang||e.hooks.helperMissing).call(null!=t?t:e.nullContext||{},"rating",{name:"lang",hash:{},data:r}))+'</div>\r\n <p class="col-9"><span class="p-1 badge text-white tool-tip '+s(l(null!=(i=null!=t?t.options:t)?i.ratingClass:i,t))+" "+s(l(null!=(i=null!=(i=null!=t?t.options:t)?i.styles:i)?i.rating:i,t))+'" title="'+s(l(null!=(i=null!=t?t.rating:t)?i.name:i,t))+'">'+s(l(null!=(i=null!=t?t.rating:t)?i.code:i,t))+"</span></p>\r\n"},10:function(e,t,n,o,r){e.propertyIsEnumerable;var i,l=e.escapeExpression;return' <div class="col-3 '+l(e.lambda(null!=(i=null!=(i=null!=t?t.options:t)?i.styles:i)?i.columnNames:i,t))+'">'+l((n.lang||t&&t.lang||e.hooks.helperMissing).call(null!=t?t:e.nullContext||{},"description",{name:"lang",hash:{},data:r}))+'</div>\r\n <div class="col-9">\r\n <div class="description-region"></div>\r\n </div>\r\n'},12:function(e,t,n,o,r){e.propertyIsEnumerable;var i,l,s=e.escapeExpression,a=null!=t?t:e.nullContext||{},c=e.hooks.helperMissing;return' <div class="col-3 '+s(e.lambda(null!=(i=null!=(i=null!=t?t.options:t)?i.styles:i)?i.columnNames:i,t))+'">'+s((n.lang||t&&t.lang||c).call(a,"productionYear",{name:"lang",hash:{},data:r}))+'</div>\r\n <p class="col-9">'+s("function"==typeof(l=null!=(l=n.productionYear||(null!=t?t.productionYear:t))?l:c)?l.call(a,{name:"productionYear",hash:{},data:r}):l)+"</p>\r\n"},14:function(e,t,n,o,r){e.propertyIsEnumerable;var i,l=e.lambda,s=e.escapeExpression,a=null!=t?t:e.nullContext||{};return' <div class="col-3 '+s(l(null!=(i=null!=(i=null!=t?t.options:t)?i.styles:i)?i.columnNames:i,t))+'">'+s((n.lang||t&&t.lang||e.hooks.helperMissing).call(a,"producers",{name:"lang",hash:{},data:r}))+'</div>\r\n <div class="col-9 '+s(l(null!=(i=null!=(i=null!=t?t.options:t)?i.styles:i)?i.citationValues:i,t))+'">\r\n <p>\r\n'+(null!=(i=n.each.call(a,null!=t?t.producers:t,{name:"each",hash:{},fn:e.program(15,r,0),inverse:e.noop,data:r}))?i:"")+" </p>\r\n </div>\r\n"},15:function(e,t,n,o,r){var i;e.propertyIsEnumerable;return" <span>"+e.escapeExpression("function"==typeof(i=null!=(i=n.name||(null!=t?t.name:t))?i:e.hooks.helperMissing)?i.call(null!=t?t:e.nullContext||{},{name:"name",hash:{},data:r}):i)+"</span>\r\n"},17:function(e,t,n,o,r){e.propertyIsEnumerable;var i,l=e.lambda,s=e.escapeExpression,a=null!=t?t:e.nullContext||{};return' <div class="col-3 '+s(l(null!=(i=null!=(i=null!=t?t.options:t)?i.styles:i)?i.columnNames:i,t))+'">'+s((n.lang||t&&t.lang||e.hooks.helperMissing).call(a,"directors",{name:"lang",hash:{},data:r}))+'</div>\r\n <div class="col-9 '+s(l(null!=(i=null!=(i=null!=t?t.options:t)?i.styles:i)?i.citationValues:i,t))+'">\r\n <p>\r\n'+(null!=(i=n.each.call(a,null!=t?t.directors:t,{name:"each",hash:{},fn:e.program(15,r,0),inverse:e.noop,data:r}))?i:"")+" </p>\r\n </div>\r\n"},19:function(e,t,n,o,r){e.propertyIsEnumerable;var i,l=e.lambda,s=e.escapeExpression,a=null!=t?t:e.nullContext||{};return' <div class="col-3 '+s(l(null!=(i=null!=(i=null!=t?t.options:t)?i.styles:i)?i.columnNames:i,t))+'">'+s((n.lang||t&&t.lang||e.hooks.helperMissing).call(a,"productionCompanies",{name:"lang",hash:{},data:r}))+'</div>\r\n <div class="col-9 '+s(l(null!=(i=null!=(i=null!=t?t.options:t)?i.styles:i)?i.citationValues:i,t))+'">\r\n <p>\r\n'+(null!=(i=n.each.call(a,null!=t?t.productionCompanies:t,{name:"each",hash:{},fn:e.program(15,r,0),inverse:e.noop,data:r}))?i:"")+" </p>\r\n </div>\r\n"},21:function(e,t,n,o,r){e.propertyIsEnumerable;var i,l=e.lambda,s=e.escapeExpression,a=null!=t?t:e.nullContext||{};return' <div class="col-3 '+s(l(null!=(i=null!=(i=null!=t?t.options:t)?i.styles:i)?i.columnNames:i,t))+'">'+s((n.lang||t&&t.lang||e.hooks.helperMissing).call(a,"distributors",{name:"lang",hash:{},data:r}))+'</div>\r\n <div class="col-9 '+s(l(null!=(i=null!=(i=null!=t?t.options:t)?i.styles:i)?i.citationValues:i,t))+'">\r\n <p>\r\n'+(null!=(i=n.each.call(a,null!=t?t.distributors:t,{name:"each",hash:{},fn:e.program(15,r,0),inverse:e.noop,data:r}))?i:"")+" </p>\r\n </div>\r\n"},23:function(e,t,n,o,r){var i;e.propertyIsEnumerable;return null!=(i=n.if.call(null!=t?t:e.nullContext||{},null!=t?t.channel:t,{name:"if",hash:{},fn:e.program(24,r,0),inverse:e.noop,data:r}))?i:""},24:function(e,t,n,o,r){e.propertyIsEnumerable;var i,l=e.lambda,s=e.escapeExpression;return'\r\n <div class="col-3 '+s(l(null!=(i=null!=(i=null!=t?t.options:t)?i.styles:i)?i.columnNames:i,t))+'">'+s((n.lang||t&&t.lang||e.hooks.helperMissing).call(null!=t?t:e.nullContext||{},"channel",{name:"lang",hash:{},data:r}))+'</div>\r\n <p class="col-9">'+s(l(null!=(i=null!=t?t.channel:t)?i.name:i,t))+"</p>\r\n "},26:function(e,t,n,o,r){e.propertyIsEnumerable;var i,l=e.lambda,s=e.escapeExpression;return' <div class="col-3 '+s(l(null!=(i=null!=(i=null!=t?t.options:t)?i.styles:i)?i.columnNames:i,t))+'">'+s((n.lang||t&&t.lang||e.hooks.helperMissing).call(null!=t?t:e.nullContext||{},"broadcastDate",{name:"lang",hash:{},data:r}))+'</div>\r\n <p class="col-9">'+s(l(null!=(i=null!=t?t.options:t)?i.broadcastDate:i,t))+"</p>\r\n"},28:function(e,t,n,o,r){e.propertyIsEnumerable;var i,l=e.lambda,s=e.escapeExpression;return' <div class="col-3 '+s(l(null!=(i=null!=(i=null!=t?t.options:t)?i.styles:i)?i.columnNames:i,t))+'">'+s((n.lang||t&&t.lang||e.hooks.helperMissing).call(null!=t?t:e.nullContext||{},"subtitles",{name:"lang",hash:{},data:r}))+'</div>\r\n <p class="col-9">'+s(l(null!=(i=null!=t?t.options:t)?i.subtitles:i,t))+"</p>\r\n"},compiler:[8,">= 4.3.0"],main:function(e,t,n,o,r){e.propertyIsEnumerable;var i,l=null!=t?t:e.nullContext||{};return(null!=(i=n.if.call(l,null!=(i=null!=t?t.options:t)?i.showHeading:i,{name:"if",hash:{},fn:e.program(1,r,0),inverse:e.noop,data:r}))?i:"")+'<div class="row mb-0">\r\n'+(null!=(i=n.if.call(l,null!=t?t.name:t,{name:"if",hash:{},fn:e.program(4,r,0),inverse:e.noop,data:r}))?i:"")+"\r\n"+(null!=(i=n.if.call(l,null!=(i=null!=t?t.series:t)?i.name:i,{name:"if",hash:{},fn:e.program(6,r,0),inverse:e.noop,data:r}))?i:"")+"\r\n"+(null!=(i=n.if.call(l,null!=(i=null!=t?t.rating:t)?i.code:i,{name:"if",hash:{},fn:e.program(8,r,0),inverse:e.noop,data:r}))?i:"")+"\r\n"+(null!=(i=n.if.call(l,null!=t?t.description:t,{name:"if",hash:{},fn:e.program(10,r,0),inverse:e.noop,data:r}))?i:"")+"\r\n"+(null!=(i=n.if.call(l,null!=t?t.productionYear:t,{name:"if",hash:{},fn:e.program(12,r,0),inverse:e.noop,data:r}))?i:"")+"\r\n"+(null!=(i=n.if.call(l,null!=(i=null!=t?t.producers:t)?i.length:i,{name:"if",hash:{},fn:e.program(14,r,0),inverse:e.noop,data:r}))?i:"")+"\r\n"+(null!=(i=n.if.call(l,null!=(i=null!=t?t.directors:t)?i.length:i,{name:"if",hash:{},fn:e.program(17,r,0),inverse:e.noop,data:r}))?i:"")+"\r\n"+(null!=(i=n.if.call(l,null!=(i=null!=t?t.productionCompanies:t)?i.length:i,{name:"if",hash:{},fn:e.program(19,r,0),inverse:e.noop,data:r}))?i:"")+"\r\n"+(null!=(i=n.if.call(l,null!=(i=null!=t?t.distributors:t)?i.length:i,{name:"if",hash:{},fn:e.program(21,r,0),inverse:e.noop,data:r}))?i:"")+"\r\n "+(null!=(i=n.if.call(l,null!=(i=null!=t?t.channel:t)?i.name:i,{name:"if",hash:{},fn:e.program(23,r,0),inverse:e.noop,data:r}))?i:"")+"\r\n\r\n"+(null!=(i=n.if.call(l,null!=(i=null!=t?t.options:t)?i.broadcastDate:i,{name:"if",hash:{},fn:e.program(26,r,0),inverse:e.noop,data:r}))?i:"")+"\r\n"+(null!=(i=n.if.call(l,null!=(i=null!=t?t.options:t)?i.subtitles:i,{name:"if",hash:{},fn:e.program(28,r,0),inverse:e.noop,data:r}))?i:"")+"</div>"},useData:!0})},1186:function(e,t,n){"use strict";var o=n(3),r="staffRequests.utils",i={destinationLibrary:function(e){if(!e||!e.id)return o.a.getPhrase(r,"selectLibrary")},destinationFolder:function(e){if(!e||!e.id)return o.a.getPhrase(r,"selectFolder")}},l={message:[{required:!0,msg:function(){return o.a.getPhrase("staffRequests.utils","provideMessage")}}]};n.d(t,"a",(function(){return i})),n.d(t,"b",(function(){return l}))},1322:function(e,t,n){var o=n(10);e.exports=(o.default||o).template({1:function(e,t,n,o,r){return" text-muted"},compiler:[8,">= 4.3.0"],main:function(e,t,n,o,r){e.propertyIsEnumerable;var i,l,s=e.lambda,a=e.escapeExpression,c=null!=t?t:e.nullContext||{},u=e.hooks.helperMissing;return'<h6 class="mb-1">'+a(s(null!=(i=null!=t?t.video:t)?i.name:i,t))+'</h6>\r\n<p class="m-0">'+a((n.lang||t&&t.lang||u).call(c,"request",{name:"lang",hash:{lastName:null!=(i=null!=t?t.options:t)?i.lastName:i,firstName:null!=(i=null!=t?t.options:t)?i.firstName:i},data:r}))+'</p>\r\n<time class="m-0'+(null!=(i=n.unless.call(c,null!=(i=null!=t?t.options:t)?i.isSelected:i,{name:"unless",hash:{},fn:e.program(1,r,0),inverse:e.noop,data:r}))?i:"")+'" datetime='+a("function"==typeof(l=null!=(l=n.dateCreated||(null!=t?t.dateCreated:t))?l:u)?l.call(c,{name:"dateCreated",hash:{},data:r}):l)+">"+a(s(null!=(i=null!=t?t.options:t)?i.dateRequested:i,t))+"</time"},useData:!0})},1323:function(e,t,n){e.exports={list:"_3aP3V",item:"_1uqg-",selected:"_29kkj"}},1324:function(e,t,n){e.exports={actions:"_2xyI4",source:"_153F1",button:"_3I7SQ"}},1325:function(e,t,n){var o=n(10);e.exports=(o.default||o).template({1:function(e,t,n,o,r){var i;e.propertyIsEnumerable;return" <span>"+e.escapeExpression(e.lambda(null!=(i=null!=t?t.sourceFolder:t)?i.name:i,t))+"</span>\r\n"},3:function(e,t,n,o,r){return' <div class="form-group m-0 pb-2">\r\n <div class="library-select-region"></div>\r\n </div> \r\n'},compiler:[8,">= 4.3.0"],main:function(e,t,n,o,r){e.propertyIsEnumerable;var i,l=null!=t?t:e.nullContext||{},s=e.hooks.helperMissing,a=e.escapeExpression,c=e.lambda;return'<div class="row align-items-center py-2">\r\n <div class="col-3"><strong>'+a((n.lang||t&&t.lang||s).call(l,"source",{name:"lang",hash:{},data:r}))+'</strong></div>\r\n <div class="col-5">\r\n <span class="badge p-1 mr-1 '+a(c(null!=(i=null!=t?t.options:t)?i.sourceClass:i,t))+'">'+a(c(null!=(i=null!=t?t.options:t)?i.sourceLibraryName:i,t))+"</span>\r\n"+(null!=(i=n.if.call(l,null!=(i=null!=t?t.sourceFolder:t)?i.name:i,{name:"if",hash:{},fn:e.program(1,r,0),inverse:e.noop,data:r}))?i:"")+' </div>\r\n <div class="col-4 text-right">\r\n <button class="btn btn-success btn-sm '+a(c(null!=(i=null!=(i=null!=t?t.options:t)?i.styles:i)?i.button:i,t))+' approve" type="button">'+a((n.lang||t&&t.lang||s).call(l,"approve",{name:"lang",hash:{},data:r}))+'</button>\r\n <button class="btn btn-light btn-sm border-secondary '+a(c(null!=(i=null!=(i=null!=t?t.options:t)?i.styles:i)?i.button:i,t))+' reject" type="button">'+a((n.lang||t&&t.lang||s).call(l,"reject",{name:"lang",hash:{},data:r}))+'</button>\r\n </div>\r\n</div>\r\n<div class="row align-items-center py-2">\r\n <div class="col-3"><strong>'+a((n.lang||t&&t.lang||s).call(l,"moveVideo",{name:"lang",hash:{},data:r}))+'</strong></div>\r\n <div class="col-5">\r\n'+(null!=(i=n.if.call(l,null!=(i=null!=t?t.options:t)?i.showLibrarySelect:i,{name:"if",hash:{},fn:e.program(3,r,0),inverse:e.noop,data:r}))?i:"")+' <div class="form-group m-0">\r\n <div class="folder-select-region"></div>\r\n </div> \r\n </div>\r\n</div>'},useData:!0})},1326:function(e,t,n){var o=n(10);e.exports=(o.default||o).template({1:function(e,t,n,o,r){e.propertyIsEnumerable;var i,l=e.lambda,s=e.escapeExpression;return'<div class="border-bottom">\r\n <div class="d-inline-block mr-2 '+s(l(null!=(i=null!=(i=null!=t?t.options:t)?i.styles:i)?i.avatar:i,t))+'" style="background-image: url(\''+s(l(null!=(i=null!=t?t.options:t)?i.avatarUrl:i,t))+'\')">\r\n &nbsp\r\n </div>\r\n <div class="d-inline-block">\r\n <p>'+(null!=(i=(n.lang||t&&t.lang||e.hooks.helperMissing).call(null!=t?t:e.nullContext||{},"requestNote",{name:"lang",hash:{lastName:null!=(i=null!=t?t.options:t)?i.lastName:i,firstName:null!=(i=null!=t?t.options:t)?i.firstName:i},data:r}))?i:"")+'</p>\r\n <p class="pl-2 '+s(l(null!=(i=null!=(i=null!=t?t.options:t)?i.styles:i)?i.message:i,t))+'">'+s(l(null!=(i=null!=(i=null!=t?t.options:t)?i.message:i)?i.message:i,t))+"</p>\r\n </div> \r\n</div>\r\n"},3:function(e,t,n,o,r){e.propertyIsEnumerable;var i,l=e.escapeExpression;return'<span class="badge p-1 '+l(e.lambda(null!=(i=null!=(i=null!=t?t.options:t)?i.styles:i)?i.interactive:i,t))+'">'+l((n.lang||t&&t.lang||e.hooks.helperMissing).call(null!=t?t:e.nullContext||{},"interactive",{name:"lang",hash:{},data:r}))+"</span>\r\n"},compiler:[8,">= 4.3.0"],main:function(e,t,n,o,r){e.propertyIsEnumerable;var i,l=null!=t?t:e.nullContext||{};return'<div class="request-action-region"></div>\r\n<div class="p-3">\r\n'+(null!=(i=n.if.call(l,null!=(i=null!=t?t.options:t)?i.message:i,{name:"if",hash:{},fn:e.program(1,r,0),inverse:e.noop,data:r}))?i:"")+'<div class="video-preview-region responsize-img col-7 pt-3 pb-2 px-0">\r\n <img class="img-fluid cursor-pointer" src="'+e.escapeExpression(e.lambda(null!=(i=null!=(i=null!=t?t.video:t)?i.thumbnail:i)?i.url:i,t))+'"/>\r\n</div>\r\n'+(null!=(i=n.if.call(l,null!=(i=null!=t?t.options:t)?i.interactive:i,{name:"if",hash:{},fn:e.program(3,r,0),inverse:e.noop,data:r}))?i:"")+'<div class="video-info-region py-1"></div>\r\n</div>'},useData:!0})},1327:function(e,t,n){e.exports={avatar:"_2c8zD",message:"EQzqm",interactive:"mnE2L"}},1328:function(e,t,n){var o=n(10);e.exports=(o.default||o).template({compiler:[8,">= 4.3.0"],main:function(e,t,n,o,r){e.propertyIsEnumerable;var i,l=e.escapeExpression,s=e.lambda;return'<div class="border-bottom">\r\n <h1 class="h3 p-3 m-0">'+l((n.lang||t&&t.lang||e.hooks.helperMissing).call(null!=t?t:e.nullContext||{},"staffRequests",{name:"lang",hash:{},data:r}))+'</h1>\r\n</div>\r\n<div class="request-list-region border-right d-inline-block '+l(s(null!=(i=null!=(i=null!=t?t.options:t)?i.styles:i)?i.requestList:i,t))+'"></div><div class="request-details-region border-left d-inline-block '+l(s(null!=(i=null!=(i=null!=t?t.options:t)?i.styles:i)?i.requestDetails:i,t))+'"></div>\r\n<div class="empty-region"></div>'},useData:!0})},1329:function(e,t,n){e.exports={requestList:"_3DFfh",requestDetails:"_2ezub"}},1466:function(e,t,n){"use strict";n.r(t);var o=n(6),r=n(5),i=n(3),l=n(2),s=n(96),a=n(413),c=n(412),u=n(285),f=n(0),p=n(187),d=n(136),h=n(8),y=n(238),m=n(29),g=n(1322),v=n.n(g),b=n(1323),w=n.n(b);function S(e){return(S="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}function k(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function C(e,t){for(var n=0;n<t.length;n++){var o=t[n];o.enumerable=o.enumerable||!1,o.configurable=!0,"value"in o&&(o.writable=!0),Object.defineProperty(e,o.key,o)}}function R(e,t,n){return t&&C(e.prototype,t),n&&C(e,n),e}function E(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}}),t&&x(e,t)}function x(e,t){return(x=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e})(e,t)}function T(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 Date.prototype.toString.call(Reflect.construct(Date,[],(function(){}))),!0}catch(e){return!1}}();return function(){var n,o=O(e);if(t){var r=O(this).constructor;n=Reflect.construct(o,arguments,r)}else n=o.apply(this,arguments);return _(this,n)}}function _(e,t){return!t||"object"!==S(t)&&"function"!=typeof t?function(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}(e):t}function O(e){return(O=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)})(e)}var I=function(e){E(n,e);var t=T(n);function n(e){return k(this,n),t.call(this,e)}return R(n,[{key:"events",value:function(){return{click:"onClick"}}},{key:"isSelected",value:function(){return this.options.selectedRequestId&&this.model.get("id").toString()===this.options.selectedRequestId.toString()}},{key:"onClick",value:function(){l.a.AppLinkHelper.trigger({application:f.b.STAFF_REQUESTS,action:f.a.StaffRequests.EDIT_REQUEST,args:[this.model.get("id")]})}},{key:"viewOptions",value:function(){return{dateRequested:m.parseZone(this.model.get("dateCreated")).local().fromNow(),isSelected:this.isSelected(),firstName:this.model.user.get("name"),lastName:this.model.user.get("surname")}}},{key:"name",get:function(){return"StaffRequestItemComponent"}},{key:"template",get:function(){return v.a}},{key:"lang",get:function(){return"staffRequests.staffRequestItem"}},{key:"className",get:function(){var e="p-3 border-bottom cursor-pointer ".concat(w.a.item);return this.isSelected()&&(e+=" ".concat(w.a.selected)),e}}]),n}(l.a.Component),q=function(e){E(n,e);var t=T(n);function n(e){return k(this,n),t.call(this,e)}return R(n,[{key:"name",get:function(){return"StaffRequestListComponent"}},{key:"className",get:function(){return w.a.list}},{key:"childView",get:function(){return I}},{key:"childViewOptions",get:function(){return{selectedRequestId:this.options.selectedRequestId,currentUser:this.options.currentUser}}}]),n}(l.a.ComponentCollection),N=n(13),P=n(4),L=n(1145),D=n(1078),j=n(1040),F=n(30),M=n(42),A=n(49),U=n(79),V=n(1048),H=n(149),B=n(1186),Q=n(1108),K=n(1324),z=n.n(K),Y=n(1325),J=n.n(Y);function G(e){return(G="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 W(e,t){for(var n=0;n<t.length;n++){var o=t[n];o.enumerable=o.enumerable||!1,o.configurable=!0,"value"in o&&(o.writable=!0),Object.defineProperty(e,o.key,o)}}function Z(e,t){return(Z=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e})(e,t)}function X(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 Date.prototype.toString.call(Reflect.construct(Date,[],(function(){}))),!0}catch(e){return!1}}();return function(){var n,o=ee(e);if(t){var r=ee(this).constructor;n=Reflect.construct(o,arguments,r)}else n=o.apply(this,arguments);return $(this,n)}}function $(e,t){return!t||"object"!==G(t)&&"function"!=typeof t?function(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}(e):t}function ee(e){return(ee=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)})(e)}var te=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}}),t&&Z(e,t)}(s,e);var t,n,r,i=X(s);function s(e){return function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,s),i.call(this,e)}return t=s,(n=[{key:"initialize",value:function(){this.bindListeners(),this.getViewModel();var e=this.viewModel.destinationLibrary&&this.viewModel.destinationLibrary.get("id"),t=e&&this.collection.get(e);this.folderCollection=t?t.children:new U.a,A.a.setSelected(this.folderTreeKey,this.viewModel.destinationFolder,this.folderCollection)}},{key:"regions",value:function(){return{librarySelect:{el:".library-select-region",replaceElement:!0},folderSelect:{el:".folder-select-region",replaceElement:!0}}}},{key:"events",value:function(){return{"click .approve":"onClickApprove","click .reject":"onClickReject"}}},{key:"bindListeners",value:function(){var e=this;this.listenTo(this.channelName,"library:selected",this.onLibrarySelected),this.listenTo(this.channelName,"folder:selected",this.onFolderSelected),this.listenTo(this.channelName,"create:folder:clicked",this.onClickCreateFolder),this.listenTo(this.options.staffRequestsChannel,"select:folder",(function(t){e.onFolderSelected(t),e.render()}))}},{key:"getViewModel",value:function(){var e={},t=this.collection.get(this.model.destinationLibrary);t&&(e.destinationLibrary=t.toJSON());var n=A.a.getModelFromCollection(this.model.destinationFolder.get("id"),this.collection);n&&(e.destinationFolder=n.toJSON()),this.viewModel=F.a.get(this.viewModelName,e,{ctor:H.a}),this.viewModel.addValidation(B.a)}},{key:"onLibrarySelected",value:function(e){this.viewModel.set("destinationLibrary",e.toJSON()),this.viewModel.unset("destinationFolder"),this.viewModel.set("destinationFolder",{}),A.a.deselectAll(this.folderTreeKey,this.folderCollection),this.folderCollection=e.get("children"),this.renderFolderSelect()}},{key:"onFolderSelected",value:function(e){this.viewModel.set("destinationFolder",e.toJSON()),A.a.setSelected(this.folderTreeKey,e,this.folderCollection)}},{key:"onClickApprove",value:function(){var e=this.model.get("id"),t=this.viewModel.destinationLibrary.get("id"),n=this.viewModel.destinationFolder.get("id");e&&t&&n&&(l.a.AppLinkHelper.trigger({application:f.b.STAFF_REQUESTS,action:f.a.StaffRequests.APPROVE_REQUEST,args:[e,t,n]}),this.logStaffRequestAction(P.q.Approve))}},{key:"onClickReject",value:function(){l.a.AppLinkHelper.trigger({application:f.b.STAFF_REQUESTS,action:f.a.StaffRequests.REJECT_REQUEST,args:[this.model.get("id")]}),this.logStaffRequestAction(P.q.Reject)}},{key:"onClickCreateFolder",value:function(){l.a.AppLinkHelper.trigger({application:f.b.STAFF_REQUESTS,action:f.a.Shared.NEW_FOLDER,args:[this.viewModel.destinationLibrary.get("id")]}),this.logCreateFolderAction()}},{key:"logStaffRequestAction",value:function(e){var t={location:P.k.StaffRequestDetails,actionType:e,entity:P.e.StaffRequest,workflowPhase:P.r.Start},n={id:this.model.get("id"),videoId:this.model.get("video")&&this.model.get("video").get("id"),requestingUserId:this.model.get("user")&&this.model.get("user").get("id"),sourceLibraryId:this.model.get("sourceLibrary")&&this.model.get("sourceLibrary").get("id"),sourceFolderId:this.model.get("sourceFolder")&&this.model.get("sourceFolder").get("id"),destinationLibraryId:this.viewModel.destinationLibrary.get("id"),destinationFolderId:this.viewModel.destinationFolder.get("id")};M.a.logUserAction(n,t)}},{key:"logCreateFolderAction",value:function(){var e={location:P.k.StaffRequestDetails,actionType:P.q.Create,entity:P.e.Folder,workflowPhase:P.r.Start},t={libraryId:this.viewModel.destinationLibrary.get("id")};M.a.logUserAction(t,e)}},{key:"renderLibrarySelect",value:function(){this.collection.length<2||this.showChildView("librarySelect",new Q.a({collection:this.collection,channelName:this.channelName,currentLibraryId:this.viewModel.destinationLibrary&&this.viewModel.destinationLibrary.get("id"),inputName:"destinationLibrary",placeholderText:this.viewModel.destinationLibrary&&this.viewModel.destinationLibrary.get("name"),disabledLibraryIds:this.options.disabledLibraryIds}))}},{key:"renderFolderSelect",value:function(){this.showChildView("folderSelect",new V.a({collection:this.folderCollection,channelName:this.channelName,folderTreeKey:this.folderTreeKey,canCreateNew:!0}))}},{key:"viewOptions",value:function(){return{styles:z.a,sourceLibraryName:j.a.mapSourceToDisplayName(this.model.sourceLibrary),sourceClass:"".concat(z.a.source," ").concat(j.a.mapSourceToClass(this.model.sourceLibrary.get("type"))),showLibrarySelect:this.collection&&this.collection.length>1}}},{key:"onRender",value:function(){this.renderLibrarySelect(),this.renderFolderSelect(),o.Validation.bind(this,{model:this.viewModel})}},{key:"name",get:function(){return"StaffRequestActionsComponent"}},{key:"template",get:function(){return J.a}},{key:"lang",get:function(){return"staffRequests.staffRequestActions"}},{key:"folderTreeKey",get:function(){return"staff:requests:folder:select"}},{key:"className",get:function(){return"p-3 border-bottom ".concat(z.a.actions)}},{key:"channelName",get:function(){return"".concat(this.name).concat(this.cid)}},{key:"viewModelName",get:function(){return"".concat(this.name,":").concat(this.model.get("id"))}}])&&W(t.prototype,n),r&&W(t,r),s}(l.a.Component),ne=n(1326),oe=n.n(ne),re=n(1327),ie=n.n(re);function le(e){return(le="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 se(e,t){for(var n=0;n<t.length;n++){var o=t[n];o.enumerable=o.enumerable||!1,o.configurable=!0,"value"in o&&(o.writable=!0),Object.defineProperty(e,o.key,o)}}function ae(e,t){return(ae=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e})(e,t)}function ce(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 Date.prototype.toString.call(Reflect.construct(Date,[],(function(){}))),!0}catch(e){return!1}}();return function(){var n,o=fe(e);if(t){var r=fe(this).constructor;n=Reflect.construct(o,arguments,r)}else n=o.apply(this,arguments);return ue(this,n)}}function ue(e,t){return!t||"object"!==le(t)&&"function"!=typeof t?function(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}(e):t}function fe(e){return(fe=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)})(e)}var pe=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}}),t&&ae(e,t)}(i,e);var t,n,o,r=ce(i);function i(e){return function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,i),r.call(this,e)}return t=i,(n=[{key:"regions",value:function(){return{actions:{el:".request-action-region",replaceElement:!0},preview:{el:".video-preview-region",replaceElement:!1},info:{el:".video-info-region",replaceElement:!1}}}},{key:"getAvatarUrl",value:function(){var e=this.collection&&this.collection.first(),t=e&&e.user&&e.user.avatar;if(t&&t.get("url"))return t.get("url");var n="".concat(this.options.config.get("imageCdnUrl"),"/v1/profile-images?initials=").concat(this.getInitials());return N.g.createUrl(n,{size:"small"})}},{key:"getInitials",value:function(){var e=this.collection&&this.collection.first();if(e&&e.user){var t=e.user.get("name"),n=e.user.get("surname");return"".concat(t&&t.trim()[0]).concat(n&&n.trim()[0])}}},{key:"renderActions",value:function(){this.showChildView("actions",new te({model:this.model,collection:this.options.libraryCollection,disabledLibraryIds:this.options.disabledLibraryIds,staffRequestsChannel:this.options.channelName}))}},{key:"renderVideoPreview",value:function(){this.showChildView("preview",new D.a({model:this.model.video,webPlayerUrl:this.options.config.get("webPlayerUrl"),analyticsOptions:{location:P.k.VideoRequest}}))}},{key:"renderVideoInfo",value:function(){this.showChildView("info",new L.a({model:this.model.video,config:this.options.config,externalSeriesLink:!0}))}},{key:"viewOptions",value:function(){return{styles:ie.a,avatarUrl:this.getAvatarUrl(),message:this.collection&&this.collection.length&&this.collection.first().toJSON(),interactive:j.a.isInteractive(this.model.video),firstName:this.model.user.get("name"),lastName:this.model.user.get("surname")}}},{key:"onRender",value:function(){this.renderActions(),this.renderVideoPreview(),this.renderVideoInfo()}},{key:"name",get:function(){return"StaffRequestDetailsComponent"}},{key:"template",get:function(){return oe.a}},{key:"lang",get:function(){return"staffRequests.staffRequestDetails"}}])&&se(t.prototype,n),o&&se(t,o),i}(l.a.Component),de=n(138),he=n(1328),ye=n.n(he),me=n(1329),ge=n.n(me);function ve(e){return(ve="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 be(e,t){for(var n=0;n<t.length;n++){var o=t[n];o.enumerable=o.enumerable||!1,o.configurable=!0,"value"in o&&(o.writable=!0),Object.defineProperty(e,o.key,o)}}function we(e,t){return(we=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e})(e,t)}function Se(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 Date.prototype.toString.call(Reflect.construct(Date,[],(function(){}))),!0}catch(e){return!1}}();return function(){var n,o=Ce(e);if(t){var r=Ce(this).constructor;n=Reflect.construct(o,arguments,r)}else n=o.apply(this,arguments);return ke(this,n)}}function ke(e,t){return!t||"object"!==ve(t)&&"function"!=typeof t?function(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}(e):t}function Ce(e){return(Ce=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)})(e)}n.d(t,"StaffRequestsView",(function(){return Re}));var Re=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}}),t&&we(e,t)}(v,e);var t,n,m,g=Se(v);function v(e){var t;return function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,v),(t=g.call(this,e)).unavailableLibraryIds=[],t}return t=v,(n=[{key:"initialize",value:function(){this.staffRequestDataService=r.a.getInstance(f.g.StaffRequests,this),this.videoDataService=r.a.getInstance(f.g.Video,this),this.options.referrer===a.a.Notification&&this.staffRequestDataService.clearRequestCache(),this.bindListeners()}},{key:"regions",value:function(){return{requestList:{el:".request-list-region",partialLoading:h.j.StaffRequestList,replaceElement:!1},requestDetails:{el:".request-details-region",partialLoading:h.j.StaffRequestDetails,replaceElement:!1},emptyState:{el:".empty-region",replaceElement:!0}}}},{key:"bindListeners",value:function(){if(this.listenTo(f.e.LIBRARY,"folder:created",this.onFolderCreated),this.options.requestId){this.listenTo(f.e.STAFF_REQUEST,"cache:cleared",this.render);var e="".concat(f.f.STAFF_REQUEST_BY_ID,":").concat(this.options.requestId);this.listenTo(f.e.STAFF_REQUEST,"".concat(e,":sync"),this.render),this.listenTo(f.e.STAFF_REQUEST,"".concat(e,":error"),this.onError),this.listenTo(f.e.STAFF_REQUEST,"".concat(f.f.STAFF_REQUESTS,":invalidate"),this.onUpdate);var t="".concat(f.f.STAFF_REQUEST_MESSAGES,":").concat(this.options.requestId);this.listenTo(f.e.STAFF_REQUEST,"".concat(t,":sync"),this.render),this.listenTo(f.e.STAFF_REQUEST,"".concat(t,":error"),this.onError)}}},{key:"onUpdate",value:function(){this.staffRequestCollection=null,this.render()}},{key:"fetchData",value:function(){var e=this;if(this.staffRequestCollection||this.staffRequestDataService.getStaffRequests((function(t){e.staffRequestCollection=t,e.onRequestsSync()})),this.options.requestId&&(this.model=this.staffRequestDataService.getStaffRequest(this.options.requestId),this.staffRequestMessageCollection=this.staffRequestDataService.getMessages(this.options.requestId),this.libraryCollection&&this.libraryCollection.length>1&&this.model&&!this.unavailableLibraryIds.length)){var t=this.model.get("video");this.videoDataService.getLibraries(t.get("id"),(function(t){e.unavailableLibraryIds=t.map((function(e){return e.get("id")+""})),e.render()}))}}},{key:"onRequestsSync",value:function(){var e;this.options.requestId&&(e=this.staffRequestCollection.get(this.options.requestId)),!e&&this.staffRequestCollection.first()?(e=this.staffRequestCollection.first(),l.a.AppLinkHelper.trigger({application:f.b.STAFF_REQUESTS,action:f.a.StaffRequests.EDIT_REQUEST,args:[e.id]},{replace:!0})):this.render()}},{key:"onError",value:function(){this.redirectToHome()}},{key:"onFolderCreated",value:function(e){o.Radio.channel(this.channelName).trigger("select:folder",e),this.render()}},{key:"redirectToHome",value:function(){l.a.AppLinkHelper.trigger({application:f.b.STAFF_REQUESTS,action:f.a.StaffRequests.HOME})}},{key:"getEmptyStateDescription",value:function(){return this.libraryCollection?!this.libraryCollection.length||this.libraryCollection.every((function(e){return e.get("status")!==s.a.Published}))?i.a.getPhrase(this.lang,"emptyStateNoLibraries"):i.a.getPhrase(this.lang,"emptyStateDescription"):""}},{key:"renderRequestList",value:function(){this.staffRequestCollection?this.showChildView("requestList",new q({collection:this.staffRequestCollection,selectedRequestId:this.options.requestId,currentUser:this.currentUser})):this.renderPartialLoading("requestList")}},{key:"renderRequestDetails",value:function(){var e=!!this.libraryCollection,t=e&&!!this.model&&!!this.staffRequestMessageCollection;!this.options.requestId&&!e||this.options.requestId&&!t?this.renderPartialLoading("requestDetails"):this.options.requestId&&this.showChildView("requestDetails",new pe({model:this.model,collection:this.staffRequestMessageCollection,libraryCollection:this.libraryCollection,disabledLibraryIds:this.unavailableLibraryIds,config:this.config,channelName:this.channelName}))}},{key:"viewOptions",value:function(){return{styles:ge.a}}},{key:"onBeforeRender",value:function(){return this.fetchData(),!this.model||this.model.get("status")===y.a.Pending||(this.redirectToHome(),!1)}},{key:"onRender",value:function(){this.renderRequestList(),this.renderRequestDetails()}},{key:"name",get:function(){return"StaffRequestsView"}},{key:"lang",get:function(){return"staffRequests.staffRequests"}},{key:"title",get:function(){return i.a.getPhrase(this.lang,"title")}},{key:"template",get:function(){return ye.a}},{key:"className",get:function(){return"bg-white"}},{key:"channelName",get:function(){return"".concat(this.name).concat(this.cid)}},{key:"behaviors",get:function(){var e=this;return[{behaviorClass:u.a,collectionName:"staffRequestCollection",region:"emptyState",type:h.c.StaffRequests,shouldRender:c.a.isCollectionEmpty.bind(null,this,"staffRequestCollection"),componentOptions:{description:function(){return e.getEmptyStateDescription()},emptyState:function(){return i.a.getPhrase(e.lang,"emptyStateHeading")}},emptyStateComponents:f.h}]}},{key:"requiredResources",get:function(){return{config:p.b.config,libraryCollection:de.b.libraries,currentUser:d.b.currentUser}}}])&&be(t.prototype,n),m&&be(t,m),v}(l.a.View)}}]);
@@ -0,0 +1 @@
1
+ (window.webpackJsonp_clickview_library_editor=window.webpackJsonp_clickview_library_editor||[]).push([[14],{1049:function(e,t,n){"use strict";n.d(t,"a",(function(){return v}));var o=n(6),r=n(2),i=n(3),l=n(1063),s=n(13),a=n(1050),c=n.n(a),u=n(1051),f=n.n(u);function p(e){return(p="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 d(e,t){for(var n=0;n<t.length;n++){var o=t[n];o.enumerable=o.enumerable||!1,o.configurable=!0,"value"in o&&(o.writable=!0),Object.defineProperty(e,o.key,o)}}function h(e,t){return(h=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e})(e,t)}function y(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 Date.prototype.toString.call(Reflect.construct(Date,[],(function(){}))),!0}catch(e){return!1}}();return function(){var n,o=g(e);if(t){var r=g(this).constructor;n=Reflect.construct(o,arguments,r)}else n=o.apply(this,arguments);return m(this,n)}}function m(e,t){return!t||"object"!==p(t)&&"function"!=typeof t?function(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}(e):t}function g(e){return(g=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)})(e)}var v=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}}),t&&h(e,t)}(u,e);var t,n,r,a=y(u);function u(e){return function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,u),a.call(this,e)}return t=u,(n=[{key:"initialize",value:function(){this.listenTo(this.options.channelName,"folder:selected new:folder:selected",this.setButtonText),this.listenTo(this.options.channelName,"re:render:selector",this.renderSelector),this.disabledIds=this.options.disabledIds&&this.options.disabledIds.reduce((function(e,t){return Object.assign(Object.assign({},e),function(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}({},t,!0))}),{})}},{key:"regions",value:function(){return{selector:{el:".selector-region",replaceElement:!1}}}},{key:"events",value:function(){return{"click .create-new":"onClickCreateNew"}}},{key:"onClickCreateNew",value:function(e){e.preventDefault(),o.Radio.channel(this.options.channelName).trigger("create:folder:clicked")}},{key:"setButtonText",value:function(e,t){if(e&&!t){var n=e.get("name");this.getUI("button").text(n)}else{var o=s.f.getSelected(this.options.folderTreeKey,this.collection),r=o?o.get("name"):i.a.getPhrase(this.lang,"button");this.getUI("button").text(r)}}},{key:"renderSelector",value:function(){this.showChildView("selector",new l.a({styles:f.a,collection:this.collection,channelName:this.options.channelName,childrenProperty:"children",folderTreeId:this.options.folderTreeKey,extraClass:f.a.list,extraClasses:f.a.list,isSelector:!0,disabledIds:this.disabledIds||{}}))}},{key:"viewOptions",value:function(){return{styles:f.a,name:this.options.name||this.options.channelName,buttonText:this.buttonText,canCreateNew:this.options.canCreateNew}}},{key:"onRender",value:function(){this.setButtonText(),this.renderSelector()}},{key:"name",get:function(){return"TreeDropdownComponent"}},{key:"template",get:function(){return c.a}},{key:"className",get:function(){return"position-relative"}},{key:"lang",get:function(){return"libraryEditor.treeDropdown"}},{key:"defaults",get:function(){return{disabledIds:[]}}},{key:"elements",get:function(){return{button:".custom-select"}}}])&&d(t.prototype,n),r&&d(t,r),u}(r.a.Component)},1050:function(e,t,n){var o=n(10);e.exports=(o.default||o).template({1:function(e,t,n,o,r){e.propertyIsEnumerable;var i,l=e.escapeExpression;return' <button class="create-new btn font-weight-bold rounded-0 w-100 text-left '+l(e.lambda(null!=(i=null!=(i=null!=t?t.options:t)?i.styles:i)?i.customItem:i,t))+'">'+l((n.lang||t&&t.lang||e.hooks.helperMissing).call(null!=t?t:e.nullContext||{},"createNew",{name:"lang",hash:{},data:r}))+"</button>\r\n"},compiler:[8,">= 4.3.0"],main:function(e,t,n,o,r){e.propertyIsEnumerable;var i,l=e.lambda,s=e.escapeExpression;return'<button\r\n class="'+s(l(null!=(i=null!=(i=null!=t?t.options:t)?i.styles:i)?i.selectBtn:i,t))+' custom-select form-control"\r\n data-toggle="dropdown"\r\n aria-haspopup="true"\r\n aria-expanded="false"\r\n name='+s(l(null!=(i=null!=t?t.options:t)?i.name:i,t))+"\r\n>"+s(l(null!=(i=null!=t?t.options:t)?i.buttonText:i,t))+'</button>\r\n<div class="dropdown-menu '+s(l(null!=(i=null!=(i=null!=t?t.options:t)?i.styles:i)?i.selector:i,t))+'">\r\n <div class="selector-region"></div>\r\n'+(null!=(i=n.if.call(null!=t?t:e.nullContext||{},null!=(i=null!=t?t.options:t)?i.canCreateNew:i,{name:"if",hash:{},fn:e.program(1,r,0),inverse:e.noop,data:r}))?i:"")+'</div>\r\n<div class="form-feedback"></div>'},useData:!0})},1051:function(e,t,n){e.exports={selectBtn:"_2TTgs",list:"_3wN7o",selector:"_3Xf1P",customItem:"_199PI"}},1086:function(e,t,n){"use strict";n.d(t,"a",(function(){return v}));var o=n(1),r=n(6),i=n(2),l=n(1044),s=n(13),a=n(1087),c=n.n(a),u=n(1088),f=n.n(u);function p(e){return(p="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 d(e,t){for(var n=0;n<t.length;n++){var o=t[n];o.enumerable=o.enumerable||!1,o.configurable=!0,"value"in o&&(o.writable=!0),Object.defineProperty(e,o.key,o)}}function h(e,t){return(h=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e})(e,t)}function y(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 Date.prototype.toString.call(Reflect.construct(Date,[],(function(){}))),!0}catch(e){return!1}}();return function(){var n,o=g(e);if(t){var r=g(this).constructor;n=Reflect.construct(o,arguments,r)}else n=o.apply(this,arguments);return m(this,n)}}function m(e,t){return!t||"object"!==p(t)&&"function"!=typeof t?function(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}(e):t}function g(e){return(g=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)})(e)}var v=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}}),t&&h(e,t)}(u,e);var t,n,i,a=y(u);function u(e){var t;return function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,u),(t=a.call(this,e)).selectSearch="",t.sameCharIndex=1,t.optionStep=1,t}return t=u,(n=[{key:"initialize",value:function(){this.setModel(),this.bindListeners()}},{key:"regions",value:function(){return{dropdown:{el:".dropdown-region",replaceElement:!0}}}},{key:"events",value:function(){return{keydown:"onKeydown","shown.bs.dropdown":"onShowDropdown"}}},{key:"bindListeners",value:function(){this.listenTo(this.options.channelName,this.options.childOptions.eventName,this.onSelect)}},{key:"onShowDropdown",value:function(e){r.Radio.channel(this.options.channelName).trigger("center:dropdown")}},{key:"onKeydown",value:function(e){38===e.keyCode||40===e.keyCode?this.onArrowKeyDown(e):13===e.keyCode?this.render():this.onType(e),r.Radio.channel(this.options.channelName).trigger("center:dropdown")}},{key:"onArrowKeyDown",value:function(e){s.c.getSelected(this.collection)?this.optionStep=1:this.optionStep=0;var t=this.getNextModel(e.keyCode);for(t||(s.c.deselectAll(this.collection),t=this.getNextModel(e.keyCode));this.isDisabled(t);)this.optionStep++,t=this.getNextModel(e.keyCode);this.onSelect(t)}},{key:"onType",value:function(e){if(1===e.key.toString().length){var t=this.getModelMatch(e);t&&this.onSelect(t),this.runTimer()}}},{key:"onSelect",value:function(e){this.isDisabled(e)||(s.c.setSelected(e.get("id"),this.collection),this.setModel(),this.getUI("dropdownToggle").text(this.getButtonText()),r.Radio.channel(this.options.channelName).trigger("select:option:selected",e))}},{key:"setModel",value:function(){this.model=s.c.getSelected(this.collection)}},{key:"getNextModel",value:function(e){var t,n=s.c.getSelected(this.collection)||this.collection.first(),o=this.collection.indexOf(n);return(t=38===e?this.collection.at(o-this.optionStep):this.collection.at(o+this.optionStep))||(s.c.deselectAll(this.collection),t=this.collection.first(),this.optionStep=0),t}},{key:"getModelMatch",value:function(e){var t,n=this;return 1===this.selectSearch.length&&this.selectSearch===e.key?t=this.handleSameCharIndex(e.key):(this.selectSearch+=e.key,this.sameCharIndex=1),t||(t=o.find(this.collection.models,(function(e){return e.get(n.options.displayProperty).toLowerCase().slice(0,n.selectSearch.length).includes(n.selectSearch.toLowerCase())}))),t}},{key:"handleSameCharIndex",value:function(e){var t=this,n=o.filter(this.collection.models,(function(n){return n.get(t.options.displayProperty).toLowerCase().slice(0,1)===e}));if(n.length>1){var r=n[this.sameCharIndex];return r||(r=o.first(n),this.sameCharIndex=0),this.sameCharIndex++,r}return o.first(n)}},{key:"runTimer",value:function(){var e=this;this.scopedTimerIndex&&clearTimeout(this.scopedTimerIndex),this.scopedTimerIndex=window.setTimeout((function(){e.selectSearch=""}),500)}},{key:"isDisabled",value:function(e){return!!e.get("divider")||!!o.isFunction(this.options.childOptions.isDisabled)&&this.options.childOptions.isDisabled.apply(this,arguments)}},{key:"getButtonText",value:function(){if(this.options.disabled)return this.options.noOptionsText;var e=s.c.getSelected(this.collection);return e&&e.get(this.options.displayProperty)||this.options.placeholderText}},{key:"viewOptions",value:function(){return{styles:f.a,inputName:this.options.inputName,disabled:this.options.disabled,placeholderText:this.getButtonText()}}},{key:"onRender",value:function(){this.showChildView("dropdown",new l.a({collection:this.collection,channelName:this.options.channelName,childOptions:o.extend(this.options.childOptions),displayOptions:{extraClasses:"w-100 ".concat(f.a.dropdownMenu)},analyticsHelper:this.options.analyticsHelper}))}},{key:"name",get:function(){return"SelectComponent"}},{key:"template",get:function(){return c.a}},{key:"defaults",get:function(){return{displayProperty:"name"}}},{key:"elements",get:function(){return{dropdownToggle:".dropdown-toggle"}}}])&&d(t.prototype,n),i&&d(t,i),u}(i.a.Component)},1087:function(e,t,n){var o=n(10);e.exports=(o.default||o).template({1:function(e,t,n,o,r){var i;e.propertyIsEnumerable;return e.escapeExpression(e.lambda(null!=(i=null!=(i=null!=t?t.options:t)?i.styles:i)?i.disabled:i,t))},3:function(e,t,n,o,r){return" disabled"},compiler:[8,">= 4.3.0"],main:function(e,t,n,o,r){e.propertyIsEnumerable;var i,l=e.lambda,s=e.escapeExpression,a=null!=t?t:e.nullContext||{};return'<button \r\n class="dropdown-toggle form-control btn-block text-left position-relative '+s(l(null!=(i=null!=(i=null!=t?t.options:t)?i.styles:i)?i.selectButton:i,t))+" "+(null!=(i=n.if.call(a,null!=(i=null!=t?t.options:t)?i.disabled:i,{name:"if",hash:{},fn:e.program(1,r,0),inverse:e.noop,data:r}))?i:"")+'" \r\n type="button" \r\n id="dropdownMenuButton" \r\n data-toggle="dropdown" \r\n aria-haspopup="true" \r\n aria-expanded="false"\r\n '+(null!=(i=n.if.call(a,null!=(i=null!=t?t.options:t)?i.disabled:i,{name:"if",hash:{},fn:e.program(3,r,0),inverse:e.noop,data:r}))?i:"")+' \r\n name="'+s(l(null!=(i=null!=t?t.options:t)?i.inputName:i,t))+'"\r\n >\r\n '+s(l(null!=(i=null!=t?t.options:t)?i.placeholderText:i,t))+'\r\n</button>\r\n<div class="dropdown-region"></div>\r\n<div class="form-feedback"></div>'},useData:!0})},1088:function(e,t,n){e.exports={dropdownMenu:"_2RaQu",selectButton:"_2xGqi",disabled:"_15kWr"}},1109:function(e,t,n){"use strict";n.d(t,"a",(function(){return v}));var o=n(1),r=n(6),i=n(2),l=n(3),s=n(42),a=n(1086),c=n(13),u=n(1110),f=n.n(u);function p(e){return(p="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 d(e,t){for(var n=0;n<t.length;n++){var o=t[n];o.enumerable=o.enumerable||!1,o.configurable=!0,"value"in o&&(o.writable=!0),Object.defineProperty(e,o.key,o)}}function h(e,t){return(h=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e})(e,t)}function y(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 Date.prototype.toString.call(Reflect.construct(Date,[],(function(){}))),!0}catch(e){return!1}}();return function(){var n,o=g(e);if(t){var r=g(this).constructor;n=Reflect.construct(o,arguments,r)}else n=o.apply(this,arguments);return m(this,n)}}function m(e,t){return!t||"object"!==p(t)&&"function"!=typeof t?function(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}(e):t}function g(e){return(g=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)})(e)}var v=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}}),t&&h(e,t)}(p,e);var t,n,i,u=y(p);function p(e){return function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,p),u.call(this,e)}return t=p,(n=[{key:"initialize",value:function(){this.bindListeners(),c.c.deselectAll(this.collection),c.c.setSelected(this.options.currentLibraryId,this.collection)}},{key:"regions",value:function(){return{dropdown:{el:".dropdown-menu-region",replaceElement:!0}}}},{key:"bindListeners",value:function(){var e=this;this.listenTo(this.channelName,"select:option:selected",(function(t){r.Radio.channel(e.options.channelName).trigger("library:selected",t)}))}},{key:"getIsOptionDisabledFn",value:function(){var e=this.options.disabledLibraryIds;return function(t){var n=t||this.model;if(o.contains(e,n.get("id")+""))return!0}}},{key:"onRender",value:function(){this.showChildView("dropdown",new a.a({collection:this.collection,channelName:this.channelName,childOptions:{titleProperty:"name",eventName:"select:option:click",isDisabled:this.getIsOptionDisabledFn()},placeholderText:this.options.placeholderText||l.a.getPhrase(this.lang,"placeholder"),noOptionsText:l.a.getPhrase(this.lang,"noLibraries"),inputName:this.options.inputName,disabled:0===this.collection.length||this.options.disabled,analyticsHelper:s.a}))}},{key:"name",get:function(){return"LibrarySelectComponent"}},{key:"channelName",get:function(){return"".concat(this.name).concat(this.cid)}},{key:"className",get:function(){return"position-relative"}},{key:"lang",get:function(){return"libraryEditor.librarySelect"}},{key:"template",get:function(){return f.a}}])&&d(t.prototype,n),i&&d(t,i),p}(i.a.Component)},1110:function(e,t,n){var o=n(10);e.exports=(o.default||o).template({compiler:[8,">= 4.3.0"],main:function(e,t,n,o,r){return'<div class="dropdown-menu-region"></div>\r\n<div class="form-feedback"></div>'},useData:!0})},1146:function(e,t,n){"use strict";n.d(t,"a",(function(){return E}));var o=n(1),r=n(29),i=n(2),l=n(82),s=n(15),a=n(135),c=n(0),u=n(8),f=n(1062),p=n(1039),d=n(1036),h=n(1147),y=n.n(h),m=n(1148),g=n.n(m),v=n(3);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 w(e,t){for(var n=0;n<t.length;n++){var o=t[n];o.enumerable=o.enumerable||!1,o.configurable=!0,"value"in o&&(o.writable=!0),Object.defineProperty(e,o.key,o)}}function S(e,t){return(S=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e})(e,t)}function k(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 Date.prototype.toString.call(Reflect.construct(Date,[],(function(){}))),!0}catch(e){return!1}}();return function(){var n,o=R(e);if(t){var r=R(this).constructor;n=Reflect.construct(o,arguments,r)}else n=o.apply(this,arguments);return C(this,n)}}function C(e,t){return!t||"object"!==b(t)&&"function"!=typeof t?function(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}(e):t}function R(e){return(R=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)})(e)}var E=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}}),t&&S(e,t)}(m,e);var t,n,i,h=k(m);function m(e){return function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,m),h.call(this,e)}return t=m,(n=[{key:"regions",value:function(){return{description:{el:".description-region",replaceElement:!0,partialLoading:u.j.VideoBasicInfo},series:{el:".series-region",replaceElement:!0}}}},{key:"getBroadcastDate",value:function(){return this.model.get("dateBroadcast")?r(this.model.get("dateBroadcast")).format(u.n.FULL_YEAR):""}},{key:"getSeriesUrl",value:function(){if(this.options.externalSeriesLink&&this.model.series)return l.a.safeUrlConcat(this.options.config.get("onlineUrl"),"series/".concat(this.model.series.id))}},{key:"renderSeries",value:function(){this.model.series&&this.model.series.get("name")&&this.showChildView("series",new p.a({model:this.model,highlight:!1,seriesUrl:this.getSeriesUrl(),styleUppercase:!1}))}},{key:"renderDescription",value:function(){if(this.model&&this.model.get("description")){var e=new f.a({model:this.model,linkify:!0,size:f.b.Large,truncate:this.options.truncateDescription,allowExpand:!0});this.showChildView("description",e)}}},{key:"getSubtitleLanguage",value:function(){var e=this;return this.model.subtitles&&this.model.get("subtitles").length?o.uniq(this.model.get("subtitles").map((function(t){var n,o=t.get("language"),r=CVLanguages.getFullEnglishName(o);return(null===(n=t.get("metadata"))||void 0===n?void 0:n.autoGenerated)?v.a.getPhrase(e.lang,"autoGenerated",{name:r}):r}))).join(", "):""}},{key:"getCitationHeading",value:function(e,t,n){return this.model.get(e)?this.model.get(e).length>1?n:t:""}},{key:"getCitationHeadings",value:function(){return{productionCompaniesText:this.getCitationHeading(u.a.ProductionCompany,"Production Company","Production Companies"),producersText:this.getCitationHeading(u.a.Producer,"Producer","Producers"),disributorsText:this.getCitationHeading(u.a.Distributor,"Distributor","Distributors"),directorsText:this.getCitationHeading(u.a.Director,"Director","Directors")}}},{key:"viewOptions",value:function(){return Object.assign({styles:y.a,ratingClass:this.model.rating&&d.i.mapRatingToClass(this.model.rating.get("value")),broadcastDate:this.getBroadcastDate(),showHeading:this.options.showHeading,subtitles:this.getSubtitleLanguage(),publisherArchiveSvg:s.a.getSvg(s.b.PublisherArchive),showPublisherVideoDetails:this.options.showPublisherVideoDetails},this.getCitationHeadings())}},{key:"onRender",value:function(){this.renderSeries(),this.renderDescription()}},{key:"name",get:function(){return"VideoBasicInfoComponent"}},{key:"template",get:function(){return g.a}},{key:"lang",get:function(){return"shared.videoBasicInfo"}},{key:"defaults",get:function(){return{truncateDescription:!0}}},{key:"behaviors",get:function(){return[{behaviorClass:a.a,selector:".tool-tip"}]}},{key:"appLinks",get:function(){return{".applink-publisher-video":{application:c.b.LIBRARY_EDITOR,action:c.a.LibraryEditor.SHOW_PUBLISHER_VIDEO,args:[this.model.get("id")]}}}}])&&w(t.prototype,n),i&&w(t,i),m}(i.a.Component)},1147:function(e,t,n){e.exports={columnNames:"_1N_VT",seriesContainer:"_4pk2s",icon:"_3SoBV",citationValues:"_1nYZg"}},1148:function(e,t,n){var o=n(10);e.exports=(o.default||o).template({1:function(e,t,n,o,r){e.propertyIsEnumerable;var i,l=null!=t?t:e.nullContext||{};return'<div class="position-relative">\r\n <h5 class="d-inline-block">'+e.escapeExpression((n.lang||t&&t.lang||e.hooks.helperMissing).call(l,"basicInfo",{name:"lang",hash:{},data:r}))+"</h5>\r\n"+(null!=(i=n.if.call(l,null!=(i=null!=t?t.options:t)?i.showPublisherVideoDetails:i,{name:"if",hash:{},fn:e.program(2,r,0),inverse:e.noop,data:r}))?i:"")+"</div>\r\n"},2:function(e,t,n,o,r){e.propertyIsEnumerable;var i,l=e.lambda,s=e.escapeExpression;return' <a class="float-right cursor-pointer applink-publisher-video">\r\n <span class="d-inline-block align-middle '+s(l(null!=(i=null!=(i=null!=t?t.options:t)?i.styles:i)?i.icon:i,t))+'">'+(null!=(i=l(null!=(i=null!=t?t.options:t)?i.publisherArchiveSvg:i,t))?i:"")+"</span> "+s((n.lang||t&&t.lang||e.hooks.helperMissing).call(null!=t?t:e.nullContext||{},"viewInPublisherArchive",{name:"lang",hash:{},data:r}))+"\r\n </a>\r\n"},4:function(e,t,n,o,r){e.propertyIsEnumerable;var i,l,s=e.escapeExpression,a=null!=t?t:e.nullContext||{},c=e.hooks.helperMissing;return' <div class="col-3 '+s(e.lambda(null!=(i=null!=(i=null!=t?t.options:t)?i.styles:i)?i.columnNames:i,t))+'">'+s((n.lang||t&&t.lang||c).call(a,"videoTitle",{name:"lang",hash:{},data:r}))+'</div>\r\n <p class="col-9">'+s("function"==typeof(l=null!=(l=n.name||(null!=t?t.name:t))?l:c)?l.call(a,{name:"name",hash:{},data:r}):l)+"</p>\r\n"},6:function(e,t,n,o,r){e.propertyIsEnumerable;var i,l=e.lambda,s=e.escapeExpression;return' <div class="col-3 '+s(l(null!=(i=null!=(i=null!=t?t.options:t)?i.styles:i)?i.columnNames:i,t))+'">'+s((n.lang||t&&t.lang||e.hooks.helperMissing).call(null!=t?t:e.nullContext||{},"series",{name:"lang",hash:{},data:r}))+'</div>\r\n <div class="col-9 '+s(l(null!=(i=null!=(i=null!=t?t.options:t)?i.styles:i)?i.seriesContainer:i,t))+'"><div class="series-region"></div></div>\r\n'},8:function(e,t,n,o,r){e.propertyIsEnumerable;var i,l=e.lambda,s=e.escapeExpression;return' <div class="col-3 '+s(l(null!=(i=null!=(i=null!=t?t.options:t)?i.styles:i)?i.columnNames:i,t))+'">'+s((n.lang||t&&t.lang||e.hooks.helperMissing).call(null!=t?t:e.nullContext||{},"rating",{name:"lang",hash:{},data:r}))+'</div>\r\n <p class="col-9"><span class="p-1 badge text-white tool-tip '+s(l(null!=(i=null!=t?t.options:t)?i.ratingClass:i,t))+" "+s(l(null!=(i=null!=(i=null!=t?t.options:t)?i.styles:i)?i.rating:i,t))+'" title="'+s(l(null!=(i=null!=t?t.rating:t)?i.name:i,t))+'">'+s(l(null!=(i=null!=t?t.rating:t)?i.code:i,t))+"</span></p>\r\n"},10:function(e,t,n,o,r){e.propertyIsEnumerable;var i,l=e.escapeExpression;return' <div class="col-3 '+l(e.lambda(null!=(i=null!=(i=null!=t?t.options:t)?i.styles:i)?i.columnNames:i,t))+'">'+l((n.lang||t&&t.lang||e.hooks.helperMissing).call(null!=t?t:e.nullContext||{},"description",{name:"lang",hash:{},data:r}))+'</div>\r\n <div class="col-9">\r\n <div class="description-region"></div>\r\n </div>\r\n'},12:function(e,t,n,o,r){e.propertyIsEnumerable;var i,l,s=e.escapeExpression,a=null!=t?t:e.nullContext||{},c=e.hooks.helperMissing;return' <div class="col-3 '+s(e.lambda(null!=(i=null!=(i=null!=t?t.options:t)?i.styles:i)?i.columnNames:i,t))+'">'+s((n.lang||t&&t.lang||c).call(a,"productionYear",{name:"lang",hash:{},data:r}))+'</div>\r\n <p class="col-9">'+s("function"==typeof(l=null!=(l=n.productionYear||(null!=t?t.productionYear:t))?l:c)?l.call(a,{name:"productionYear",hash:{},data:r}):l)+"</p>\r\n"},14:function(e,t,n,o,r){e.propertyIsEnumerable;var i,l=e.lambda,s=e.escapeExpression,a=null!=t?t:e.nullContext||{};return' <div class="col-3 '+s(l(null!=(i=null!=(i=null!=t?t.options:t)?i.styles:i)?i.columnNames:i,t))+'">'+s((n.lang||t&&t.lang||e.hooks.helperMissing).call(a,"producers",{name:"lang",hash:{},data:r}))+'</div>\r\n <div class="col-9 '+s(l(null!=(i=null!=(i=null!=t?t.options:t)?i.styles:i)?i.citationValues:i,t))+'">\r\n <p>\r\n'+(null!=(i=n.each.call(a,null!=t?t.producers:t,{name:"each",hash:{},fn:e.program(15,r,0),inverse:e.noop,data:r}))?i:"")+" </p>\r\n </div>\r\n"},15:function(e,t,n,o,r){var i;e.propertyIsEnumerable;return" <span>"+e.escapeExpression("function"==typeof(i=null!=(i=n.name||(null!=t?t.name:t))?i:e.hooks.helperMissing)?i.call(null!=t?t:e.nullContext||{},{name:"name",hash:{},data:r}):i)+"</span>\r\n"},17:function(e,t,n,o,r){e.propertyIsEnumerable;var i,l=e.lambda,s=e.escapeExpression,a=null!=t?t:e.nullContext||{};return' <div class="col-3 '+s(l(null!=(i=null!=(i=null!=t?t.options:t)?i.styles:i)?i.columnNames:i,t))+'">'+s((n.lang||t&&t.lang||e.hooks.helperMissing).call(a,"directors",{name:"lang",hash:{},data:r}))+'</div>\r\n <div class="col-9 '+s(l(null!=(i=null!=(i=null!=t?t.options:t)?i.styles:i)?i.citationValues:i,t))+'">\r\n <p>\r\n'+(null!=(i=n.each.call(a,null!=t?t.directors:t,{name:"each",hash:{},fn:e.program(15,r,0),inverse:e.noop,data:r}))?i:"")+" </p>\r\n </div>\r\n"},19:function(e,t,n,o,r){e.propertyIsEnumerable;var i,l=e.lambda,s=e.escapeExpression,a=null!=t?t:e.nullContext||{};return' <div class="col-3 '+s(l(null!=(i=null!=(i=null!=t?t.options:t)?i.styles:i)?i.columnNames:i,t))+'">'+s((n.lang||t&&t.lang||e.hooks.helperMissing).call(a,"productionCompanies",{name:"lang",hash:{},data:r}))+'</div>\r\n <div class="col-9 '+s(l(null!=(i=null!=(i=null!=t?t.options:t)?i.styles:i)?i.citationValues:i,t))+'">\r\n <p>\r\n'+(null!=(i=n.each.call(a,null!=t?t.productionCompanies:t,{name:"each",hash:{},fn:e.program(15,r,0),inverse:e.noop,data:r}))?i:"")+" </p>\r\n </div>\r\n"},21:function(e,t,n,o,r){e.propertyIsEnumerable;var i,l=e.lambda,s=e.escapeExpression,a=null!=t?t:e.nullContext||{};return' <div class="col-3 '+s(l(null!=(i=null!=(i=null!=t?t.options:t)?i.styles:i)?i.columnNames:i,t))+'">'+s((n.lang||t&&t.lang||e.hooks.helperMissing).call(a,"distributors",{name:"lang",hash:{},data:r}))+'</div>\r\n <div class="col-9 '+s(l(null!=(i=null!=(i=null!=t?t.options:t)?i.styles:i)?i.citationValues:i,t))+'">\r\n <p>\r\n'+(null!=(i=n.each.call(a,null!=t?t.distributors:t,{name:"each",hash:{},fn:e.program(15,r,0),inverse:e.noop,data:r}))?i:"")+" </p>\r\n </div>\r\n"},23:function(e,t,n,o,r){var i;e.propertyIsEnumerable;return null!=(i=n.if.call(null!=t?t:e.nullContext||{},null!=t?t.channel:t,{name:"if",hash:{},fn:e.program(24,r,0),inverse:e.noop,data:r}))?i:""},24:function(e,t,n,o,r){e.propertyIsEnumerable;var i,l=e.lambda,s=e.escapeExpression;return'\r\n <div class="col-3 '+s(l(null!=(i=null!=(i=null!=t?t.options:t)?i.styles:i)?i.columnNames:i,t))+'">'+s((n.lang||t&&t.lang||e.hooks.helperMissing).call(null!=t?t:e.nullContext||{},"channel",{name:"lang",hash:{},data:r}))+'</div>\r\n <p class="col-9">'+s(l(null!=(i=null!=t?t.channel:t)?i.name:i,t))+"</p>\r\n "},26:function(e,t,n,o,r){e.propertyIsEnumerable;var i,l=e.lambda,s=e.escapeExpression;return' <div class="col-3 '+s(l(null!=(i=null!=(i=null!=t?t.options:t)?i.styles:i)?i.columnNames:i,t))+'">'+s((n.lang||t&&t.lang||e.hooks.helperMissing).call(null!=t?t:e.nullContext||{},"broadcastDate",{name:"lang",hash:{},data:r}))+'</div>\r\n <p class="col-9">'+s(l(null!=(i=null!=t?t.options:t)?i.broadcastDate:i,t))+"</p>\r\n"},28:function(e,t,n,o,r){e.propertyIsEnumerable;var i,l=e.lambda,s=e.escapeExpression;return' <div class="col-3 '+s(l(null!=(i=null!=(i=null!=t?t.options:t)?i.styles:i)?i.columnNames:i,t))+'">'+s((n.lang||t&&t.lang||e.hooks.helperMissing).call(null!=t?t:e.nullContext||{},"subtitles",{name:"lang",hash:{},data:r}))+'</div>\r\n <p class="col-9">'+s(l(null!=(i=null!=t?t.options:t)?i.subtitles:i,t))+"</p>\r\n"},compiler:[8,">= 4.3.0"],main:function(e,t,n,o,r){e.propertyIsEnumerable;var i,l=null!=t?t:e.nullContext||{};return(null!=(i=n.if.call(l,null!=(i=null!=t?t.options:t)?i.showHeading:i,{name:"if",hash:{},fn:e.program(1,r,0),inverse:e.noop,data:r}))?i:"")+'<div class="row mb-0">\r\n'+(null!=(i=n.if.call(l,null!=t?t.name:t,{name:"if",hash:{},fn:e.program(4,r,0),inverse:e.noop,data:r}))?i:"")+"\r\n"+(null!=(i=n.if.call(l,null!=(i=null!=t?t.series:t)?i.name:i,{name:"if",hash:{},fn:e.program(6,r,0),inverse:e.noop,data:r}))?i:"")+"\r\n"+(null!=(i=n.if.call(l,null!=(i=null!=t?t.rating:t)?i.code:i,{name:"if",hash:{},fn:e.program(8,r,0),inverse:e.noop,data:r}))?i:"")+"\r\n"+(null!=(i=n.if.call(l,null!=t?t.description:t,{name:"if",hash:{},fn:e.program(10,r,0),inverse:e.noop,data:r}))?i:"")+"\r\n"+(null!=(i=n.if.call(l,null!=t?t.productionYear:t,{name:"if",hash:{},fn:e.program(12,r,0),inverse:e.noop,data:r}))?i:"")+"\r\n"+(null!=(i=n.if.call(l,null!=(i=null!=t?t.producers:t)?i.length:i,{name:"if",hash:{},fn:e.program(14,r,0),inverse:e.noop,data:r}))?i:"")+"\r\n"+(null!=(i=n.if.call(l,null!=(i=null!=t?t.directors:t)?i.length:i,{name:"if",hash:{},fn:e.program(17,r,0),inverse:e.noop,data:r}))?i:"")+"\r\n"+(null!=(i=n.if.call(l,null!=(i=null!=t?t.productionCompanies:t)?i.length:i,{name:"if",hash:{},fn:e.program(19,r,0),inverse:e.noop,data:r}))?i:"")+"\r\n"+(null!=(i=n.if.call(l,null!=(i=null!=t?t.distributors:t)?i.length:i,{name:"if",hash:{},fn:e.program(21,r,0),inverse:e.noop,data:r}))?i:"")+"\r\n "+(null!=(i=n.if.call(l,null!=(i=null!=t?t.channel:t)?i.name:i,{name:"if",hash:{},fn:e.program(23,r,0),inverse:e.noop,data:r}))?i:"")+"\r\n\r\n"+(null!=(i=n.if.call(l,null!=(i=null!=t?t.options:t)?i.broadcastDate:i,{name:"if",hash:{},fn:e.program(26,r,0),inverse:e.noop,data:r}))?i:"")+"\r\n"+(null!=(i=n.if.call(l,null!=(i=null!=t?t.options:t)?i.subtitles:i,{name:"if",hash:{},fn:e.program(28,r,0),inverse:e.noop,data:r}))?i:"")+"</div>"},useData:!0})},1187:function(e,t,n){"use strict";var o=n(3),r="staffRequests.utils",i={destinationLibrary:function(e){if(!e||!e.id)return o.a.getPhrase(r,"selectLibrary")},destinationFolder:function(e){if(!e||!e.id)return o.a.getPhrase(r,"selectFolder")}},l={message:[{required:!0,msg:function(){return o.a.getPhrase("staffRequests.utils","provideMessage")}}]};n.d(t,"a",(function(){return i})),n.d(t,"b",(function(){return l}))},1323:function(e,t,n){var o=n(10);e.exports=(o.default||o).template({1:function(e,t,n,o,r){return" text-muted"},compiler:[8,">= 4.3.0"],main:function(e,t,n,o,r){e.propertyIsEnumerable;var i,l,s=e.lambda,a=e.escapeExpression,c=null!=t?t:e.nullContext||{},u=e.hooks.helperMissing;return'<h6 class="mb-1">'+a(s(null!=(i=null!=t?t.video:t)?i.name:i,t))+'</h6>\r\n<p class="m-0">'+a((n.lang||t&&t.lang||u).call(c,"request",{name:"lang",hash:{lastName:null!=(i=null!=t?t.options:t)?i.lastName:i,firstName:null!=(i=null!=t?t.options:t)?i.firstName:i},data:r}))+'</p>\r\n<time class="m-0'+(null!=(i=n.unless.call(c,null!=(i=null!=t?t.options:t)?i.isSelected:i,{name:"unless",hash:{},fn:e.program(1,r,0),inverse:e.noop,data:r}))?i:"")+'" datetime='+a("function"==typeof(l=null!=(l=n.dateCreated||(null!=t?t.dateCreated:t))?l:u)?l.call(c,{name:"dateCreated",hash:{},data:r}):l)+">"+a(s(null!=(i=null!=t?t.options:t)?i.dateRequested:i,t))+"</time"},useData:!0})},1324:function(e,t,n){e.exports={list:"_3aP3V",item:"_1uqg-",selected:"_29kkj"}},1325:function(e,t,n){e.exports={actions:"_2xyI4",source:"_153F1",button:"_3I7SQ"}},1326:function(e,t,n){var o=n(10);e.exports=(o.default||o).template({1:function(e,t,n,o,r){var i;e.propertyIsEnumerable;return" <span>"+e.escapeExpression(e.lambda(null!=(i=null!=t?t.sourceFolder:t)?i.name:i,t))+"</span>\r\n"},3:function(e,t,n,o,r){return' <div class="form-group m-0 pb-2">\r\n <div class="library-select-region"></div>\r\n </div> \r\n'},compiler:[8,">= 4.3.0"],main:function(e,t,n,o,r){e.propertyIsEnumerable;var i,l=null!=t?t:e.nullContext||{},s=e.hooks.helperMissing,a=e.escapeExpression,c=e.lambda;return'<div class="row align-items-center py-2">\r\n <div class="col-3"><strong>'+a((n.lang||t&&t.lang||s).call(l,"source",{name:"lang",hash:{},data:r}))+'</strong></div>\r\n <div class="col-5">\r\n <span class="badge p-1 mr-1 '+a(c(null!=(i=null!=t?t.options:t)?i.sourceClass:i,t))+'">'+a(c(null!=(i=null!=t?t.options:t)?i.sourceLibraryName:i,t))+"</span>\r\n"+(null!=(i=n.if.call(l,null!=(i=null!=t?t.sourceFolder:t)?i.name:i,{name:"if",hash:{},fn:e.program(1,r,0),inverse:e.noop,data:r}))?i:"")+' </div>\r\n <div class="col-4 text-right">\r\n <button class="btn btn-success btn-sm '+a(c(null!=(i=null!=(i=null!=t?t.options:t)?i.styles:i)?i.button:i,t))+' approve" type="button">'+a((n.lang||t&&t.lang||s).call(l,"approve",{name:"lang",hash:{},data:r}))+'</button>\r\n <button class="btn btn-light btn-sm border-secondary '+a(c(null!=(i=null!=(i=null!=t?t.options:t)?i.styles:i)?i.button:i,t))+' reject" type="button">'+a((n.lang||t&&t.lang||s).call(l,"reject",{name:"lang",hash:{},data:r}))+'</button>\r\n </div>\r\n</div>\r\n<div class="row align-items-center py-2">\r\n <div class="col-3"><strong>'+a((n.lang||t&&t.lang||s).call(l,"moveVideo",{name:"lang",hash:{},data:r}))+'</strong></div>\r\n <div class="col-5">\r\n'+(null!=(i=n.if.call(l,null!=(i=null!=t?t.options:t)?i.showLibrarySelect:i,{name:"if",hash:{},fn:e.program(3,r,0),inverse:e.noop,data:r}))?i:"")+' <div class="form-group m-0">\r\n <div class="folder-select-region"></div>\r\n </div> \r\n </div>\r\n</div>'},useData:!0})},1327:function(e,t,n){var o=n(10);e.exports=(o.default||o).template({1:function(e,t,n,o,r){e.propertyIsEnumerable;var i,l=e.lambda,s=e.escapeExpression;return'<div class="border-bottom">\r\n <div class="d-inline-block mr-2 '+s(l(null!=(i=null!=(i=null!=t?t.options:t)?i.styles:i)?i.avatar:i,t))+'" style="background-image: url(\''+s(l(null!=(i=null!=t?t.options:t)?i.avatarUrl:i,t))+'\')">\r\n &nbsp\r\n </div>\r\n <div class="d-inline-block">\r\n <p>'+(null!=(i=(n.lang||t&&t.lang||e.hooks.helperMissing).call(null!=t?t:e.nullContext||{},"requestNote",{name:"lang",hash:{lastName:null!=(i=null!=t?t.options:t)?i.lastName:i,firstName:null!=(i=null!=t?t.options:t)?i.firstName:i},data:r}))?i:"")+'</p>\r\n <p class="pl-2 '+s(l(null!=(i=null!=(i=null!=t?t.options:t)?i.styles:i)?i.message:i,t))+'">'+s(l(null!=(i=null!=(i=null!=t?t.options:t)?i.message:i)?i.message:i,t))+"</p>\r\n </div> \r\n</div>\r\n"},3:function(e,t,n,o,r){e.propertyIsEnumerable;var i,l=e.escapeExpression;return'<span class="badge p-1 '+l(e.lambda(null!=(i=null!=(i=null!=t?t.options:t)?i.styles:i)?i.interactive:i,t))+'">'+l((n.lang||t&&t.lang||e.hooks.helperMissing).call(null!=t?t:e.nullContext||{},"interactive",{name:"lang",hash:{},data:r}))+"</span>\r\n"},compiler:[8,">= 4.3.0"],main:function(e,t,n,o,r){e.propertyIsEnumerable;var i,l=null!=t?t:e.nullContext||{};return'<div class="request-action-region"></div>\r\n<div class="p-3">\r\n'+(null!=(i=n.if.call(l,null!=(i=null!=t?t.options:t)?i.message:i,{name:"if",hash:{},fn:e.program(1,r,0),inverse:e.noop,data:r}))?i:"")+'<div class="video-preview-region responsize-img col-7 pt-3 pb-2 px-0">\r\n <img class="img-fluid cursor-pointer" src="'+e.escapeExpression(e.lambda(null!=(i=null!=(i=null!=t?t.video:t)?i.thumbnail:i)?i.url:i,t))+'"/>\r\n</div>\r\n'+(null!=(i=n.if.call(l,null!=(i=null!=t?t.options:t)?i.interactive:i,{name:"if",hash:{},fn:e.program(3,r,0),inverse:e.noop,data:r}))?i:"")+'<div class="video-info-region py-1"></div>\r\n</div>'},useData:!0})},1328:function(e,t,n){e.exports={avatar:"_2c8zD",message:"EQzqm",interactive:"mnE2L"}},1329:function(e,t,n){var o=n(10);e.exports=(o.default||o).template({compiler:[8,">= 4.3.0"],main:function(e,t,n,o,r){e.propertyIsEnumerable;var i,l=e.escapeExpression,s=e.lambda;return'<div class="border-bottom">\r\n <h1 class="h3 p-3 m-0">'+l((n.lang||t&&t.lang||e.hooks.helperMissing).call(null!=t?t:e.nullContext||{},"staffRequests",{name:"lang",hash:{},data:r}))+'</h1>\r\n</div>\r\n<div class="request-list-region border-right d-inline-block '+l(s(null!=(i=null!=(i=null!=t?t.options:t)?i.styles:i)?i.requestList:i,t))+'"></div><div class="request-details-region border-left d-inline-block '+l(s(null!=(i=null!=(i=null!=t?t.options:t)?i.styles:i)?i.requestDetails:i,t))+'"></div>\r\n<div class="empty-region"></div>'},useData:!0})},1330:function(e,t,n){e.exports={requestList:"_3DFfh",requestDetails:"_2ezub"}},1467:function(e,t,n){"use strict";n.r(t);var o=n(6),r=n(5),i=n(3),l=n(2),s=n(96),a=n(413),c=n(412),u=n(285),f=n(0),p=n(187),d=n(136),h=n(8),y=n(238),m=n(29),g=n(1323),v=n.n(g),b=n(1324),w=n.n(b);function S(e){return(S="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}function k(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function C(e,t){for(var n=0;n<t.length;n++){var o=t[n];o.enumerable=o.enumerable||!1,o.configurable=!0,"value"in o&&(o.writable=!0),Object.defineProperty(e,o.key,o)}}function R(e,t,n){return t&&C(e.prototype,t),n&&C(e,n),e}function E(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}}),t&&x(e,t)}function x(e,t){return(x=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e})(e,t)}function T(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 Date.prototype.toString.call(Reflect.construct(Date,[],(function(){}))),!0}catch(e){return!1}}();return function(){var n,o=O(e);if(t){var r=O(this).constructor;n=Reflect.construct(o,arguments,r)}else n=o.apply(this,arguments);return _(this,n)}}function _(e,t){return!t||"object"!==S(t)&&"function"!=typeof t?function(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}(e):t}function O(e){return(O=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)})(e)}var I=function(e){E(n,e);var t=T(n);function n(e){return k(this,n),t.call(this,e)}return R(n,[{key:"events",value:function(){return{click:"onClick"}}},{key:"isSelected",value:function(){return this.options.selectedRequestId&&this.model.get("id").toString()===this.options.selectedRequestId.toString()}},{key:"onClick",value:function(){l.a.AppLinkHelper.trigger({application:f.b.STAFF_REQUESTS,action:f.a.StaffRequests.EDIT_REQUEST,args:[this.model.get("id")]})}},{key:"viewOptions",value:function(){return{dateRequested:m.parseZone(this.model.get("dateCreated")).local().fromNow(),isSelected:this.isSelected(),firstName:this.model.user.get("name"),lastName:this.model.user.get("surname")}}},{key:"name",get:function(){return"StaffRequestItemComponent"}},{key:"template",get:function(){return v.a}},{key:"lang",get:function(){return"staffRequests.staffRequestItem"}},{key:"className",get:function(){var e="p-3 border-bottom cursor-pointer ".concat(w.a.item);return this.isSelected()&&(e+=" ".concat(w.a.selected)),e}}]),n}(l.a.Component),q=function(e){E(n,e);var t=T(n);function n(e){return k(this,n),t.call(this,e)}return R(n,[{key:"name",get:function(){return"StaffRequestListComponent"}},{key:"className",get:function(){return w.a.list}},{key:"childView",get:function(){return I}},{key:"childViewOptions",get:function(){return{selectedRequestId:this.options.selectedRequestId,currentUser:this.options.currentUser}}}]),n}(l.a.ComponentCollection),N=n(13),P=n(4),L=n(1146),D=n(1079),j=n(1041),F=n(30),M=n(42),A=n(49),U=n(79),V=n(1049),H=n(149),B=n(1187),Q=n(1109),K=n(1325),z=n.n(K),Y=n(1326),J=n.n(Y);function G(e){return(G="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 W(e,t){for(var n=0;n<t.length;n++){var o=t[n];o.enumerable=o.enumerable||!1,o.configurable=!0,"value"in o&&(o.writable=!0),Object.defineProperty(e,o.key,o)}}function Z(e,t){return(Z=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e})(e,t)}function X(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 Date.prototype.toString.call(Reflect.construct(Date,[],(function(){}))),!0}catch(e){return!1}}();return function(){var n,o=ee(e);if(t){var r=ee(this).constructor;n=Reflect.construct(o,arguments,r)}else n=o.apply(this,arguments);return $(this,n)}}function $(e,t){return!t||"object"!==G(t)&&"function"!=typeof t?function(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}(e):t}function ee(e){return(ee=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)})(e)}var te=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}}),t&&Z(e,t)}(s,e);var t,n,r,i=X(s);function s(e){return function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,s),i.call(this,e)}return t=s,(n=[{key:"initialize",value:function(){this.bindListeners(),this.getViewModel();var e=this.viewModel.destinationLibrary&&this.viewModel.destinationLibrary.get("id"),t=e&&this.collection.get(e);this.folderCollection=t?t.children:new U.a,A.a.setSelected(this.folderTreeKey,this.viewModel.destinationFolder,this.folderCollection)}},{key:"regions",value:function(){return{librarySelect:{el:".library-select-region",replaceElement:!0},folderSelect:{el:".folder-select-region",replaceElement:!0}}}},{key:"events",value:function(){return{"click .approve":"onClickApprove","click .reject":"onClickReject"}}},{key:"bindListeners",value:function(){var e=this;this.listenTo(this.channelName,"library:selected",this.onLibrarySelected),this.listenTo(this.channelName,"folder:selected",this.onFolderSelected),this.listenTo(this.channelName,"create:folder:clicked",this.onClickCreateFolder),this.listenTo(this.options.staffRequestsChannel,"select:folder",(function(t){e.onFolderSelected(t),e.render()}))}},{key:"getViewModel",value:function(){var e={},t=this.collection.get(this.model.destinationLibrary);t&&(e.destinationLibrary=t.toJSON());var n=A.a.getModelFromCollection(this.model.destinationFolder.get("id"),this.collection);n&&(e.destinationFolder=n.toJSON()),this.viewModel=F.a.get(this.viewModelName,e,{ctor:H.a}),this.viewModel.addValidation(B.a)}},{key:"onLibrarySelected",value:function(e){this.viewModel.set("destinationLibrary",e.toJSON()),this.viewModel.unset("destinationFolder"),this.viewModel.set("destinationFolder",{}),A.a.deselectAll(this.folderTreeKey,this.folderCollection),this.folderCollection=e.get("children"),this.renderFolderSelect()}},{key:"onFolderSelected",value:function(e){this.viewModel.set("destinationFolder",e.toJSON()),A.a.setSelected(this.folderTreeKey,e,this.folderCollection)}},{key:"onClickApprove",value:function(){var e=this.model.get("id"),t=this.viewModel.destinationLibrary.get("id"),n=this.viewModel.destinationFolder.get("id");e&&t&&n&&(l.a.AppLinkHelper.trigger({application:f.b.STAFF_REQUESTS,action:f.a.StaffRequests.APPROVE_REQUEST,args:[e,t,n]}),this.logStaffRequestAction(P.q.Approve))}},{key:"onClickReject",value:function(){l.a.AppLinkHelper.trigger({application:f.b.STAFF_REQUESTS,action:f.a.StaffRequests.REJECT_REQUEST,args:[this.model.get("id")]}),this.logStaffRequestAction(P.q.Reject)}},{key:"onClickCreateFolder",value:function(){l.a.AppLinkHelper.trigger({application:f.b.STAFF_REQUESTS,action:f.a.Shared.NEW_FOLDER,args:[this.viewModel.destinationLibrary.get("id")]}),this.logCreateFolderAction()}},{key:"logStaffRequestAction",value:function(e){var t={location:P.k.StaffRequestDetails,actionType:e,entity:P.e.StaffRequest,workflowPhase:P.r.Start},n={id:this.model.get("id"),videoId:this.model.get("video")&&this.model.get("video").get("id"),requestingUserId:this.model.get("user")&&this.model.get("user").get("id"),sourceLibraryId:this.model.get("sourceLibrary")&&this.model.get("sourceLibrary").get("id"),sourceFolderId:this.model.get("sourceFolder")&&this.model.get("sourceFolder").get("id"),destinationLibraryId:this.viewModel.destinationLibrary.get("id"),destinationFolderId:this.viewModel.destinationFolder.get("id")};M.a.logUserAction(n,t)}},{key:"logCreateFolderAction",value:function(){var e={location:P.k.StaffRequestDetails,actionType:P.q.Create,entity:P.e.Folder,workflowPhase:P.r.Start},t={libraryId:this.viewModel.destinationLibrary.get("id")};M.a.logUserAction(t,e)}},{key:"renderLibrarySelect",value:function(){this.collection.length<2||this.showChildView("librarySelect",new Q.a({collection:this.collection,channelName:this.channelName,currentLibraryId:this.viewModel.destinationLibrary&&this.viewModel.destinationLibrary.get("id"),inputName:"destinationLibrary",placeholderText:this.viewModel.destinationLibrary&&this.viewModel.destinationLibrary.get("name"),disabledLibraryIds:this.options.disabledLibraryIds}))}},{key:"renderFolderSelect",value:function(){this.showChildView("folderSelect",new V.a({collection:this.folderCollection,channelName:this.channelName,folderTreeKey:this.folderTreeKey,canCreateNew:!0}))}},{key:"viewOptions",value:function(){return{styles:z.a,sourceLibraryName:j.a.mapSourceToDisplayName(this.model.sourceLibrary),sourceClass:"".concat(z.a.source," ").concat(j.a.mapSourceToClass(this.model.sourceLibrary.get("type"))),showLibrarySelect:this.collection&&this.collection.length>1}}},{key:"onRender",value:function(){this.renderLibrarySelect(),this.renderFolderSelect(),o.Validation.bind(this,{model:this.viewModel})}},{key:"name",get:function(){return"StaffRequestActionsComponent"}},{key:"template",get:function(){return J.a}},{key:"lang",get:function(){return"staffRequests.staffRequestActions"}},{key:"folderTreeKey",get:function(){return"staff:requests:folder:select"}},{key:"className",get:function(){return"p-3 border-bottom ".concat(z.a.actions)}},{key:"channelName",get:function(){return"".concat(this.name).concat(this.cid)}},{key:"viewModelName",get:function(){return"".concat(this.name,":").concat(this.model.get("id"))}}])&&W(t.prototype,n),r&&W(t,r),s}(l.a.Component),ne=n(1327),oe=n.n(ne),re=n(1328),ie=n.n(re);function le(e){return(le="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 se(e,t){for(var n=0;n<t.length;n++){var o=t[n];o.enumerable=o.enumerable||!1,o.configurable=!0,"value"in o&&(o.writable=!0),Object.defineProperty(e,o.key,o)}}function ae(e,t){return(ae=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e})(e,t)}function ce(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 Date.prototype.toString.call(Reflect.construct(Date,[],(function(){}))),!0}catch(e){return!1}}();return function(){var n,o=fe(e);if(t){var r=fe(this).constructor;n=Reflect.construct(o,arguments,r)}else n=o.apply(this,arguments);return ue(this,n)}}function ue(e,t){return!t||"object"!==le(t)&&"function"!=typeof t?function(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}(e):t}function fe(e){return(fe=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)})(e)}var pe=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}}),t&&ae(e,t)}(i,e);var t,n,o,r=ce(i);function i(e){return function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,i),r.call(this,e)}return t=i,(n=[{key:"regions",value:function(){return{actions:{el:".request-action-region",replaceElement:!0},preview:{el:".video-preview-region",replaceElement:!1},info:{el:".video-info-region",replaceElement:!1}}}},{key:"getAvatarUrl",value:function(){var e=this.collection&&this.collection.first(),t=e&&e.user&&e.user.avatar;if(t&&t.get("url"))return t.get("url");var n="".concat(this.options.config.get("imageCdnUrl"),"/v1/profile-images?initials=").concat(this.getInitials());return N.g.createUrl(n,{size:"small"})}},{key:"getInitials",value:function(){var e=this.collection&&this.collection.first();if(e&&e.user){var t=e.user.get("name"),n=e.user.get("surname");return"".concat(t&&t.trim()[0]).concat(n&&n.trim()[0])}}},{key:"renderActions",value:function(){this.showChildView("actions",new te({model:this.model,collection:this.options.libraryCollection,disabledLibraryIds:this.options.disabledLibraryIds,staffRequestsChannel:this.options.channelName}))}},{key:"renderVideoPreview",value:function(){this.showChildView("preview",new D.a({model:this.model.video,webPlayerUrl:this.options.config.get("webPlayerUrl"),analyticsOptions:{location:P.k.VideoRequest}}))}},{key:"renderVideoInfo",value:function(){this.showChildView("info",new L.a({model:this.model.video,config:this.options.config,externalSeriesLink:!0}))}},{key:"viewOptions",value:function(){return{styles:ie.a,avatarUrl:this.getAvatarUrl(),message:this.collection&&this.collection.length&&this.collection.first().toJSON(),interactive:j.a.isInteractive(this.model.video),firstName:this.model.user.get("name"),lastName:this.model.user.get("surname")}}},{key:"onRender",value:function(){this.renderActions(),this.renderVideoPreview(),this.renderVideoInfo()}},{key:"name",get:function(){return"StaffRequestDetailsComponent"}},{key:"template",get:function(){return oe.a}},{key:"lang",get:function(){return"staffRequests.staffRequestDetails"}}])&&se(t.prototype,n),o&&se(t,o),i}(l.a.Component),de=n(138),he=n(1329),ye=n.n(he),me=n(1330),ge=n.n(me);function ve(e){return(ve="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 be(e,t){for(var n=0;n<t.length;n++){var o=t[n];o.enumerable=o.enumerable||!1,o.configurable=!0,"value"in o&&(o.writable=!0),Object.defineProperty(e,o.key,o)}}function we(e,t){return(we=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e})(e,t)}function Se(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 Date.prototype.toString.call(Reflect.construct(Date,[],(function(){}))),!0}catch(e){return!1}}();return function(){var n,o=Ce(e);if(t){var r=Ce(this).constructor;n=Reflect.construct(o,arguments,r)}else n=o.apply(this,arguments);return ke(this,n)}}function ke(e,t){return!t||"object"!==ve(t)&&"function"!=typeof t?function(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}(e):t}function Ce(e){return(Ce=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)})(e)}n.d(t,"StaffRequestsView",(function(){return Re}));var Re=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}}),t&&we(e,t)}(v,e);var t,n,m,g=Se(v);function v(e){var t;return function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,v),(t=g.call(this,e)).unavailableLibraryIds=[],t}return t=v,(n=[{key:"initialize",value:function(){this.staffRequestDataService=r.a.getInstance(f.g.StaffRequests,this),this.videoDataService=r.a.getInstance(f.g.Video,this),this.options.referrer===a.a.Notification&&this.staffRequestDataService.clearRequestCache(),this.bindListeners()}},{key:"regions",value:function(){return{requestList:{el:".request-list-region",partialLoading:h.j.StaffRequestList,replaceElement:!1},requestDetails:{el:".request-details-region",partialLoading:h.j.StaffRequestDetails,replaceElement:!1},emptyState:{el:".empty-region",replaceElement:!0}}}},{key:"bindListeners",value:function(){if(this.listenTo(f.e.LIBRARY,"folder:created",this.onFolderCreated),this.options.requestId){this.listenTo(f.e.STAFF_REQUEST,"cache:cleared",this.render);var e="".concat(f.f.STAFF_REQUEST_BY_ID,":").concat(this.options.requestId);this.listenTo(f.e.STAFF_REQUEST,"".concat(e,":sync"),this.render),this.listenTo(f.e.STAFF_REQUEST,"".concat(e,":error"),this.onError),this.listenTo(f.e.STAFF_REQUEST,"".concat(f.f.STAFF_REQUESTS,":invalidate"),this.onUpdate);var t="".concat(f.f.STAFF_REQUEST_MESSAGES,":").concat(this.options.requestId);this.listenTo(f.e.STAFF_REQUEST,"".concat(t,":sync"),this.render),this.listenTo(f.e.STAFF_REQUEST,"".concat(t,":error"),this.onError)}}},{key:"onUpdate",value:function(){this.staffRequestCollection=null,this.render()}},{key:"fetchData",value:function(){var e=this;if(this.staffRequestCollection||this.staffRequestDataService.getStaffRequests((function(t){e.staffRequestCollection=t,e.onRequestsSync()})),this.options.requestId&&(this.model=this.staffRequestDataService.getStaffRequest(this.options.requestId),this.staffRequestMessageCollection=this.staffRequestDataService.getMessages(this.options.requestId),this.libraryCollection&&this.libraryCollection.length>1&&this.model&&!this.unavailableLibraryIds.length)){var t=this.model.get("video");this.videoDataService.getLibraries(t.get("id"),(function(t){e.unavailableLibraryIds=t.map((function(e){return e.get("id")+""})),e.render()}))}}},{key:"onRequestsSync",value:function(){var e;this.options.requestId&&(e=this.staffRequestCollection.get(this.options.requestId)),!e&&this.staffRequestCollection.first()?(e=this.staffRequestCollection.first(),l.a.AppLinkHelper.trigger({application:f.b.STAFF_REQUESTS,action:f.a.StaffRequests.EDIT_REQUEST,args:[e.id]},{replace:!0})):this.render()}},{key:"onError",value:function(){this.redirectToHome()}},{key:"onFolderCreated",value:function(e){o.Radio.channel(this.channelName).trigger("select:folder",e),this.render()}},{key:"redirectToHome",value:function(){l.a.AppLinkHelper.trigger({application:f.b.STAFF_REQUESTS,action:f.a.StaffRequests.HOME})}},{key:"getEmptyStateDescription",value:function(){return this.libraryCollection?!this.libraryCollection.length||this.libraryCollection.every((function(e){return e.get("status")!==s.a.Published}))?i.a.getPhrase(this.lang,"emptyStateNoLibraries"):i.a.getPhrase(this.lang,"emptyStateDescription"):""}},{key:"renderRequestList",value:function(){this.staffRequestCollection?this.showChildView("requestList",new q({collection:this.staffRequestCollection,selectedRequestId:this.options.requestId,currentUser:this.currentUser})):this.renderPartialLoading("requestList")}},{key:"renderRequestDetails",value:function(){var e=!!this.libraryCollection,t=e&&!!this.model&&!!this.staffRequestMessageCollection;!this.options.requestId&&!e||this.options.requestId&&!t?this.renderPartialLoading("requestDetails"):this.options.requestId&&this.showChildView("requestDetails",new pe({model:this.model,collection:this.staffRequestMessageCollection,libraryCollection:this.libraryCollection,disabledLibraryIds:this.unavailableLibraryIds,config:this.config,channelName:this.channelName}))}},{key:"viewOptions",value:function(){return{styles:ge.a}}},{key:"onBeforeRender",value:function(){return this.fetchData(),!this.model||this.model.get("status")===y.a.Pending||(this.redirectToHome(),!1)}},{key:"onRender",value:function(){this.renderRequestList(),this.renderRequestDetails()}},{key:"name",get:function(){return"StaffRequestsView"}},{key:"lang",get:function(){return"staffRequests.staffRequests"}},{key:"title",get:function(){return i.a.getPhrase(this.lang,"title")}},{key:"template",get:function(){return ye.a}},{key:"className",get:function(){return"bg-white"}},{key:"channelName",get:function(){return"".concat(this.name).concat(this.cid)}},{key:"behaviors",get:function(){var e=this;return[{behaviorClass:u.a,collectionName:"staffRequestCollection",region:"emptyState",type:h.c.StaffRequests,shouldRender:c.a.isCollectionEmpty.bind(null,this,"staffRequestCollection"),componentOptions:{description:function(){return e.getEmptyStateDescription()},emptyState:function(){return i.a.getPhrase(e.lang,"emptyStateHeading")}},emptyStateComponents:f.h}]}},{key:"requiredResources",get:function(){return{config:p.b.config,libraryCollection:de.b.libraries,currentUser:d.b.currentUser}}}])&&be(t.prototype,n),m&&be(t,m),v}(l.a.View)}}]);