@clickview/library-editor 1.1.27-dev.0 → 1.1.27-dev.1

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (405) 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 +5 -3
  17. package/dist/css/23.chunk.css.map +1 -0
  18. package/dist/css/25.chunk.css +3 -1
  19. package/dist/css/25.chunk.css.map +1 -0
  20. package/dist/css/26.chunk.css.map +1 -0
  21. package/dist/css/28.chunk.css.map +1 -0
  22. package/dist/css/29.chunk.css.map +1 -0
  23. package/dist/css/3.chunk.css.map +1 -0
  24. package/dist/css/30.chunk.css.map +1 -0
  25. package/dist/css/31.chunk.css.map +1 -0
  26. package/dist/css/32.chunk.css.map +1 -0
  27. package/dist/css/33.chunk.css.map +1 -0
  28. package/dist/css/34.chunk.css +21 -0
  29. package/dist/css/34.chunk.css.map +1 -0
  30. package/dist/css/35.chunk.css +20 -0
  31. package/dist/css/35.chunk.css.map +1 -0
  32. package/dist/css/36.chunk.css +14 -0
  33. package/dist/css/36.chunk.css.map +1 -0
  34. package/dist/css/37.chunk.css.map +1 -0
  35. package/dist/css/38.chunk.css.map +1 -0
  36. package/dist/css/40.chunk.css.map +1 -0
  37. package/dist/css/41.chunk.css.map +1 -0
  38. package/dist/css/42.chunk.css.map +1 -0
  39. package/dist/css/43.chunk.css.map +1 -0
  40. package/dist/css/44.chunk.css.map +1 -0
  41. package/dist/css/45.chunk.css.map +1 -0
  42. package/dist/css/46.chunk.css.map +1 -0
  43. package/dist/css/47.chunk.css.map +1 -0
  44. package/dist/css/48.chunk.css.map +1 -0
  45. package/dist/css/49.chunk.css +35 -0
  46. package/dist/css/49.chunk.css.map +1 -0
  47. package/dist/css/50.chunk.css.map +1 -0
  48. package/dist/css/51.chunk.css.map +1 -0
  49. package/dist/css/52.chunk.css +66 -0
  50. package/dist/css/52.chunk.css.map +1 -0
  51. package/dist/css/55.chunk.css.map +1 -0
  52. package/dist/css/56.chunk.css.map +1 -0
  53. package/dist/css/58.chunk.css.map +1 -0
  54. package/dist/css/59.chunk.css.map +1 -0
  55. package/dist/css/6.chunk.css.map +1 -0
  56. package/dist/css/60.chunk.css +18 -0
  57. package/dist/css/60.chunk.css.map +1 -0
  58. package/dist/css/62.chunk.css.map +1 -0
  59. package/dist/css/63.chunk.css +170 -0
  60. package/dist/css/63.chunk.css.map +1 -0
  61. package/dist/css/67.chunk.css +78 -0
  62. package/dist/css/67.chunk.css.map +1 -0
  63. package/dist/css/68.chunk.css +17 -0
  64. package/dist/css/68.chunk.css.map +1 -0
  65. package/dist/css/69.chunk.css +17 -0
  66. package/dist/css/69.chunk.css.map +1 -0
  67. package/dist/css/7.chunk.css.map +1 -0
  68. package/dist/css/70.chunk.css +23 -0
  69. package/dist/css/70.chunk.css.map +1 -0
  70. package/dist/css/71.chunk.css +40 -0
  71. package/dist/css/71.chunk.css.map +1 -0
  72. package/dist/css/72.chunk.css +16 -0
  73. package/dist/css/72.chunk.css.map +1 -0
  74. package/dist/css/73.chunk.css +37 -0
  75. package/dist/css/73.chunk.css.map +1 -0
  76. package/dist/css/74.chunk.css +29 -0
  77. package/dist/css/74.chunk.css.map +1 -0
  78. package/dist/css/75.chunk.css +6 -0
  79. package/dist/css/75.chunk.css.map +1 -0
  80. package/dist/css/76.chunk.css +6 -0
  81. package/dist/css/76.chunk.css.map +1 -0
  82. package/dist/css/8.chunk.css.map +1 -0
  83. package/dist/css/library-editor-app.css +2 -2
  84. package/dist/css/library-editor-app.css.map +1 -0
  85. package/dist/en.json +1 -1
  86. package/dist/libs/analytics/src/interfaces/AnalyticsTypes.d.ts +1 -0
  87. package/dist/libs/common/src/backbone/core/BaseAppRouter.d.ts +5 -1
  88. package/dist/libs/common/src/backbone/core/index.d.ts +1 -1
  89. package/dist/libs/shared/src/apps/search/components/instant-search/series/SeriesSearchResultComponent.d.ts +5 -0
  90. package/dist/libs/shared/src/apps/search/enums/SearchQueryType.d.ts +1 -1
  91. package/dist/libs/shared/src/apps/search/views/search-bar/SearchBarView.d.ts +3 -0
  92. package/dist/libs/shared/src/constants/BootstrapKeys.d.ts +1 -0
  93. package/dist/libs/shared/src/enums/MediaQueries.d.ts +3 -1
  94. package/dist/libs/shared/src/enums/PlayerMediaType.d.ts +1 -0
  95. package/dist/libs/shared/src/enums/ResourceFileType.d.ts +9 -0
  96. package/dist/libs/shared/src/enums/SettingName.d.ts +0 -1
  97. package/dist/libs/shared/src/interfaces/app-variables/BaseSearchAppVariables.d.ts +1 -0
  98. package/dist/libs/shared/src/interfaces/collections/ClassificationCollection.d.ts +4 -0
  99. package/dist/libs/shared/src/interfaces/collections/ClassroomCollection.d.ts +4 -0
  100. package/dist/libs/shared/src/interfaces/collections/ClassroomGroupCollection.d.ts +4 -0
  101. package/dist/libs/shared/src/interfaces/collections/InteractiveCollection.d.ts +2 -2
  102. package/dist/libs/shared/src/interfaces/collections/index.d.ts +3 -0
  103. package/dist/libs/shared/src/interfaces/models/Classroom.d.ts +4 -0
  104. package/dist/libs/shared/src/interfaces/models/ClassroomGroup.d.ts +18 -0
  105. package/dist/libs/shared/src/interfaces/models/Clip.d.ts +4 -3
  106. package/dist/libs/shared/src/interfaces/models/Curriculum.d.ts +4 -0
  107. package/dist/libs/shared/src/interfaces/models/InteractiveMetadata.d.ts +14 -0
  108. package/dist/libs/shared/src/interfaces/models/Resource.d.ts +2 -2
  109. package/dist/libs/shared/src/interfaces/models/User.d.ts +4 -2
  110. package/dist/libs/shared/src/interfaces/models/Video.d.ts +6 -2
  111. package/dist/libs/shared/src/interfaces/models/VideoHistory.d.ts +4 -1
  112. package/dist/libs/shared/src/interfaces/models/Widget.d.ts +1 -1
  113. package/dist/libs/shared/src/interfaces/models/YearGroup.d.ts +5 -0
  114. package/dist/libs/shared/src/interfaces/models/index.d.ts +5 -1
  115. package/dist/libs/shared/src/interfaces/models/interactive/ActionableItem.d.ts +6 -0
  116. package/dist/libs/shared/src/interfaces/models/interactive/Interaction.d.ts +16 -0
  117. package/dist/libs/shared/src/interfaces/models/interactive/InteractionType.d.ts +7 -0
  118. package/dist/libs/shared/src/interfaces/models/interactive/InteractionTypeId.d.ts +8 -0
  119. package/dist/libs/shared/src/interfaces/models/interactive/Interactive.d.ts +7 -0
  120. package/dist/libs/shared/src/interfaces/models/interactive/Timepoint.d.ts +9 -0
  121. package/dist/libs/shared/src/interfaces/models/interactive/index.d.ts +6 -0
  122. package/dist/libs/shared/src/interfaces/models/primitives/BaseObject.d.ts +1 -0
  123. package/dist/libs/shared/src/interfaces/models/primitives/VirtualObject.d.ts +5 -0
  124. package/dist/libs/shared/src/interfaces/models/primitives/index.d.ts +1 -0
  125. package/dist/libs/shared/src/interfaces/requests/CreateOrUpdateClipRequest.d.ts +6 -0
  126. package/dist/libs/shared/src/interfaces/requests/CreateViewKeyRequest.d.ts +0 -2
  127. package/dist/libs/shared/src/interfaces/requests/index.d.ts +1 -0
  128. package/dist/libs/shared/src/utils/VideoDetailsHelper.d.ts +0 -9
  129. package/dist/projects/library-editor/src/apps/migration-wizard/MigrationWizardApplication.d.ts +1 -1
  130. package/dist/projects/library-editor/src/apps/migration-wizard/filters/MigrationFilters.d.ts +2 -2
  131. package/dist/projects/library-editor/src/apps/search/models/SearchAppVariables.d.ts +1 -0
  132. package/dist/projects/library-editor/src/apps/upload/UploadApplication.d.ts +1 -1
  133. package/dist/projects/library-editor/src/shared/filters/BetaAccessFilter.d.ts +1 -1
  134. package/dist/projects/library-editor/src/shared/filters/CustomerSettingsFilter.d.ts +1 -1
  135. package/dist/projects/library-editor/src/shared/filters/RoleFilter.d.ts +1 -1
  136. package/dist/projects/library-editor/src/shared/filters/VerifiedEmailFilter.d.ts +1 -1
  137. package/dist/scripts/{0-7d941d48a1.chunk.js → 0-e25d47c666.chunk.js} +1 -1
  138. package/dist/scripts/0.chunk.js +1039 -0
  139. package/dist/scripts/0.chunk.js.map +1 -0
  140. package/dist/scripts/{1-d174976195.chunk.js → 1-620c685eee.chunk.js} +1 -1
  141. package/dist/scripts/1.chunk.js +442 -0
  142. package/dist/scripts/1.chunk.js.map +1 -0
  143. package/dist/scripts/{10-9389c5decb.chunk.js → 10-3baf058564.chunk.js} +1 -1
  144. package/dist/scripts/10.chunk.js +820 -0
  145. package/dist/scripts/10.chunk.js.map +1 -0
  146. package/dist/scripts/{11-85acf490ea.chunk.js → 11-9f5f0c25dc.chunk.js} +1 -1
  147. package/dist/scripts/11.chunk.js +4091 -0
  148. package/dist/scripts/11.chunk.js.map +1 -0
  149. package/dist/scripts/{12-0db13732f7.chunk.js → 12-b460ad405e.chunk.js} +1 -1
  150. package/dist/scripts/12.chunk.js +555 -0
  151. package/dist/scripts/12.chunk.js.map +1 -0
  152. package/dist/scripts/{13-994f87e579.chunk.js → 13-89b3a0aebb.chunk.js} +1 -1
  153. package/dist/scripts/13.chunk.js +380 -0
  154. package/dist/scripts/13.chunk.js.map +1 -0
  155. package/dist/scripts/{14-2902bc9522.chunk.js → 14-670309ef33.chunk.js} +1 -1
  156. package/dist/scripts/14.chunk.js +2386 -0
  157. package/dist/scripts/14.chunk.js.map +1 -0
  158. package/dist/scripts/{15-c6ed60d5c9.chunk.js → 15-39010184ed.chunk.js} +1 -1
  159. package/dist/scripts/15.chunk.js +314 -0
  160. package/dist/scripts/15.chunk.js.map +1 -0
  161. package/dist/scripts/{16-745edb531a.chunk.js → 16-0971cabfc8.chunk.js} +1 -1
  162. package/dist/scripts/16.chunk.js +1290 -0
  163. package/dist/scripts/16.chunk.js.map +1 -0
  164. package/dist/scripts/{17-84499189f1.chunk.js → 17-f364868870.chunk.js} +1 -1
  165. package/dist/scripts/17.chunk.js +381 -0
  166. package/dist/scripts/17.chunk.js.map +1 -0
  167. package/dist/scripts/18.chunk.js +393 -0
  168. package/dist/scripts/18.chunk.js.map +1 -0
  169. package/dist/scripts/19.chunk.js +364 -0
  170. package/dist/scripts/19.chunk.js.map +1 -0
  171. package/dist/scripts/{2-236aa94486.chunk.js → 2-cd7f1d10b5.chunk.js} +1 -1
  172. package/dist/scripts/2.chunk.js +523 -0
  173. package/dist/scripts/2.chunk.js.map +1 -0
  174. package/dist/scripts/{20-96717eb19f.chunk.js → 20-42dc06da39.chunk.js} +1 -1
  175. package/dist/scripts/20.chunk.js +317 -0
  176. package/dist/scripts/20.chunk.js.map +1 -0
  177. package/dist/scripts/{21-65f36b6673.chunk.js → 21-05615559be.chunk.js} +1 -1
  178. package/dist/scripts/21.chunk.js +531 -0
  179. package/dist/scripts/21.chunk.js.map +1 -0
  180. package/dist/scripts/{22-5e4db41745.chunk.js → 22-70b4c18dd2.chunk.js} +1 -1
  181. package/dist/scripts/22.chunk.js +354 -0
  182. package/dist/scripts/22.chunk.js.map +1 -0
  183. package/dist/scripts/23-3166dfeef5.chunk.js +1 -0
  184. package/dist/scripts/23.chunk.js +604 -0
  185. package/dist/scripts/23.chunk.js.map +1 -0
  186. package/dist/scripts/{24-6ac1386d9a.chunk.js → 24-6fbd14025b.chunk.js} +1 -1
  187. package/dist/scripts/24.chunk.js +318 -0
  188. package/dist/scripts/24.chunk.js.map +1 -0
  189. package/dist/scripts/25-3d067b8b9a.chunk.js +1 -0
  190. package/dist/scripts/25.chunk.js +365 -0
  191. package/dist/scripts/25.chunk.js.map +1 -0
  192. package/dist/scripts/{26-58a421e3cb.chunk.js → 26-468305820a.chunk.js} +1 -1
  193. package/dist/scripts/26.chunk.js +442 -0
  194. package/dist/scripts/26.chunk.js.map +1 -0
  195. package/dist/scripts/{27-a507f85408.chunk.js → 27-d03a99658e.chunk.js} +1 -1
  196. package/dist/scripts/27.chunk.js +3630 -0
  197. package/dist/scripts/27.chunk.js.map +1 -0
  198. package/dist/scripts/{28-add4a2a74d.chunk.js → 28-f3f43a3001.chunk.js} +1 -1
  199. package/dist/scripts/28.chunk.js +3172 -0
  200. package/dist/scripts/28.chunk.js.map +1 -0
  201. package/dist/scripts/{29-adf22ec3a1.chunk.js → 29-268278d2ac.chunk.js} +1 -1
  202. package/dist/scripts/29.chunk.js +3090 -0
  203. package/dist/scripts/29.chunk.js.map +1 -0
  204. package/dist/scripts/{3-3c39acc333.chunk.js → 3-4694b66aa5.chunk.js} +1 -1
  205. package/dist/scripts/3.chunk.js +845 -0
  206. package/dist/scripts/3.chunk.js.map +1 -0
  207. package/dist/scripts/{30-6e869b77b2.chunk.js → 30-694b0a0d4b.chunk.js} +1 -1
  208. package/dist/scripts/30.chunk.js +1851 -0
  209. package/dist/scripts/30.chunk.js.map +1 -0
  210. package/dist/scripts/{31-f3a0832478.chunk.js → 31-4c542c18dc.chunk.js} +1 -1
  211. package/dist/scripts/31.chunk.js +958 -0
  212. package/dist/scripts/31.chunk.js.map +1 -0
  213. package/dist/scripts/{32-cbcb5dba41.chunk.js → 32-a1543ffe27.chunk.js} +1 -1
  214. package/dist/scripts/32.chunk.js +1239 -0
  215. package/dist/scripts/32.chunk.js.map +1 -0
  216. package/dist/scripts/{33-c9a197cce2.chunk.js → 33-9685703df6.chunk.js} +1 -1
  217. package/dist/scripts/33.chunk.js +971 -0
  218. package/dist/scripts/33.chunk.js.map +1 -0
  219. package/dist/scripts/{34-37fc1c9761.chunk.js → 34-eb9f6709b3.chunk.js} +1 -1
  220. package/dist/scripts/34.chunk.js +990 -0
  221. package/dist/scripts/34.chunk.js.map +1 -0
  222. package/dist/scripts/{35-21329b155d.chunk.js → 35-1ff49137e7.chunk.js} +1 -1
  223. package/dist/scripts/35.chunk.js +518 -0
  224. package/dist/scripts/35.chunk.js.map +1 -0
  225. package/dist/scripts/{36-0d3fa3d249.chunk.js → 36-9e89154ca2.chunk.js} +1 -1
  226. package/dist/scripts/36.chunk.js +335 -0
  227. package/dist/scripts/36.chunk.js.map +1 -0
  228. package/dist/scripts/{37-681f25d8de.chunk.js → 37-80589d542e.chunk.js} +1 -1
  229. package/dist/scripts/37.chunk.js +236 -0
  230. package/dist/scripts/37.chunk.js.map +1 -0
  231. package/dist/scripts/{38-5364f1bd67.chunk.js → 38-7e88534f67.chunk.js} +1 -1
  232. package/dist/scripts/38.chunk.js +315 -0
  233. package/dist/scripts/38.chunk.js.map +1 -0
  234. package/dist/scripts/{39-996d4ddc74.chunk.js → 39-99824f3b64.chunk.js} +1 -1
  235. package/dist/scripts/39.chunk.js +107 -0
  236. package/dist/scripts/39.chunk.js.map +1 -0
  237. package/dist/scripts/{4-93e14cac14.chunk.js → 4-ad1e4b43da.chunk.js} +1 -1
  238. package/dist/scripts/4.chunk.js +335 -0
  239. package/dist/scripts/4.chunk.js.map +1 -0
  240. package/dist/scripts/{40-7ecb39dfb5.chunk.js → 40-dbfd665c74.chunk.js} +1 -1
  241. package/dist/scripts/40.chunk.js +2493 -0
  242. package/dist/scripts/40.chunk.js.map +1 -0
  243. package/dist/scripts/{41-8b5abd983b.chunk.js → 41-25fbac3d17.chunk.js} +1 -1
  244. package/dist/scripts/41.chunk.js +1782 -0
  245. package/dist/scripts/41.chunk.js.map +1 -0
  246. package/dist/scripts/{42-b0867d7db0.chunk.js → 42-9f757567db.chunk.js} +1 -1
  247. package/dist/scripts/42.chunk.js +2327 -0
  248. package/dist/scripts/42.chunk.js.map +1 -0
  249. package/dist/scripts/{43-32a9ad2254.chunk.js → 43-5ef29feb2c.chunk.js} +1 -1
  250. package/dist/scripts/43.chunk.js +1206 -0
  251. package/dist/scripts/43.chunk.js.map +1 -0
  252. package/dist/scripts/{44-bf0ebe3cf7.chunk.js → 44-223f602431.chunk.js} +1 -1
  253. package/dist/scripts/44.chunk.js +2245 -0
  254. package/dist/scripts/44.chunk.js.map +1 -0
  255. package/dist/scripts/{45-2ba05e3821.chunk.js → 45-344492a36f.chunk.js} +1 -1
  256. package/dist/scripts/45.chunk.js +1065 -0
  257. package/dist/scripts/45.chunk.js.map +1 -0
  258. package/dist/scripts/{46-3bdc667e2e.chunk.js → 46-9ca7afd6a4.chunk.js} +1 -1
  259. package/dist/scripts/46.chunk.js +655 -0
  260. package/dist/scripts/46.chunk.js.map +1 -0
  261. package/dist/scripts/{47-9955928b6f.chunk.js → 47-ac0c9c5ce1.chunk.js} +1 -1
  262. package/dist/scripts/47.chunk.js +736 -0
  263. package/dist/scripts/47.chunk.js.map +1 -0
  264. package/dist/scripts/{48-3922b945f4.chunk.js → 48-6bf590b9a0.chunk.js} +1 -1
  265. package/dist/scripts/48.chunk.js +994 -0
  266. package/dist/scripts/48.chunk.js.map +1 -0
  267. package/dist/scripts/{49-23a1f6f7e7.chunk.js → 49-8e3e782ffb.chunk.js} +1 -1
  268. package/dist/scripts/49.chunk.js +761 -0
  269. package/dist/scripts/49.chunk.js.map +1 -0
  270. package/dist/scripts/{5-4bea739cc3.chunk.js → 5-b236603e85.chunk.js} +1 -1
  271. package/dist/scripts/5.chunk.js +15 -0
  272. package/dist/scripts/5.chunk.js.map +1 -0
  273. package/dist/scripts/{50-5c842985ec.chunk.js → 50-30ba08212e.chunk.js} +1 -1
  274. package/dist/scripts/50.chunk.js +530 -0
  275. package/dist/scripts/50.chunk.js.map +1 -0
  276. package/dist/scripts/{51-76bb20846a.chunk.js → 51-828972defb.chunk.js} +1 -1
  277. package/dist/scripts/51.chunk.js +932 -0
  278. package/dist/scripts/51.chunk.js.map +1 -0
  279. package/dist/scripts/{52-837abee352.chunk.js → 52-b2acf3e742.chunk.js} +1 -1
  280. package/dist/scripts/52.chunk.js +408 -0
  281. package/dist/scripts/52.chunk.js.map +1 -0
  282. package/dist/scripts/{53-52c9fac5eb.chunk.js → 53-5d6ea94871.chunk.js} +1 -1
  283. package/dist/scripts/53.chunk.js +756 -0
  284. package/dist/scripts/53.chunk.js.map +1 -0
  285. package/dist/scripts/{54-557f6ffe65.chunk.js → 54-2d8bd6fde0.chunk.js} +1 -1
  286. package/dist/scripts/54.chunk.js +681 -0
  287. package/dist/scripts/54.chunk.js.map +1 -0
  288. package/dist/scripts/{55-8dea861900.chunk.js → 55-4a8d360746.chunk.js} +1 -1
  289. package/dist/scripts/55.chunk.js +645 -0
  290. package/dist/scripts/55.chunk.js.map +1 -0
  291. package/dist/scripts/{56-491db19e9d.chunk.js → 56-ad12ebab5f.chunk.js} +1 -1
  292. package/dist/scripts/56.chunk.js +346 -0
  293. package/dist/scripts/56.chunk.js.map +1 -0
  294. package/dist/scripts/{57-87323c96be.chunk.js → 57-53b89c2ef0.chunk.js} +1 -1
  295. package/dist/scripts/57.chunk.js +422 -0
  296. package/dist/scripts/57.chunk.js.map +1 -0
  297. package/dist/scripts/{58-3408474ea9.chunk.js → 58-b246abe78c.chunk.js} +1 -1
  298. package/dist/scripts/58.chunk.js +437 -0
  299. package/dist/scripts/58.chunk.js.map +1 -0
  300. package/dist/scripts/{59-ad89e8b776.chunk.js → 59-19290686e0.chunk.js} +1 -1
  301. package/dist/scripts/59.chunk.js +342 -0
  302. package/dist/scripts/59.chunk.js.map +1 -0
  303. package/dist/scripts/{6-cf6bf13de2.chunk.js → 6-6fb543aa78.chunk.js} +1 -1
  304. package/dist/scripts/6.chunk.js +484 -0
  305. package/dist/scripts/6.chunk.js.map +1 -0
  306. package/dist/scripts/{60-3324435680.chunk.js → 60-0c075e7b5c.chunk.js} +1 -1
  307. package/dist/scripts/60.chunk.js +254 -0
  308. package/dist/scripts/60.chunk.js.map +1 -0
  309. package/dist/scripts/{61-57f4830468.chunk.js → 61-2725bbfab2.chunk.js} +1 -1
  310. package/dist/scripts/61.chunk.js +408 -0
  311. package/dist/scripts/61.chunk.js.map +1 -0
  312. package/dist/scripts/{62-27f0a916e8.chunk.js → 62-472d10a18e.chunk.js} +1 -1
  313. package/dist/scripts/62.chunk.js +142 -0
  314. package/dist/scripts/62.chunk.js.map +1 -0
  315. package/dist/scripts/{63-c328125cb6.chunk.js → 63-7d00e50441.chunk.js} +1 -1
  316. package/dist/scripts/63.chunk.js +147 -0
  317. package/dist/scripts/63.chunk.js.map +1 -0
  318. package/dist/scripts/{64-32b869d473.chunk.js → 64-1b42f78644.chunk.js} +1 -1
  319. package/dist/scripts/64.chunk.js +439 -0
  320. package/dist/scripts/64.chunk.js.map +1 -0
  321. package/dist/scripts/{65-2f7971dc4f.chunk.js → 65-14af88c745.chunk.js} +1 -1
  322. package/dist/scripts/65.chunk.js +582 -0
  323. package/dist/scripts/65.chunk.js.map +1 -0
  324. package/dist/scripts/{66-34c241cba2.chunk.js → 66-bc274df13a.chunk.js} +1 -1
  325. package/dist/scripts/66.chunk.js +442 -0
  326. package/dist/scripts/66.chunk.js.map +1 -0
  327. package/dist/scripts/{67-b5429e74ed.chunk.js → 67-d1edef09d6.chunk.js} +1 -1
  328. package/dist/scripts/67.chunk.js +295 -0
  329. package/dist/scripts/67.chunk.js.map +1 -0
  330. package/dist/scripts/{68-c8848a4a9d.chunk.js → 68-52468201b9.chunk.js} +1 -1
  331. package/dist/scripts/68.chunk.js +165 -0
  332. package/dist/scripts/68.chunk.js.map +1 -0
  333. package/dist/scripts/{69-3840d20a46.chunk.js → 69-b681e9a99c.chunk.js} +1 -1
  334. package/dist/scripts/69.chunk.js +248 -0
  335. package/dist/scripts/69.chunk.js.map +1 -0
  336. package/dist/scripts/{7-d1e99b91aa.chunk.js → 7-2807a666bc.chunk.js} +1 -1
  337. package/dist/scripts/7.chunk.js +309 -0
  338. package/dist/scripts/7.chunk.js.map +1 -0
  339. package/dist/scripts/{70-812a99c9c1.chunk.js → 70-d4018838a9.chunk.js} +1 -1
  340. package/dist/scripts/70.chunk.js +207 -0
  341. package/dist/scripts/70.chunk.js.map +1 -0
  342. package/dist/scripts/{71-5523ee0121.chunk.js → 71-29cce07c7f.chunk.js} +1 -1
  343. package/dist/scripts/71.chunk.js +237 -0
  344. package/dist/scripts/71.chunk.js.map +1 -0
  345. package/dist/scripts/{72-fd2b5e6473.chunk.js → 72-6f83214b8d.chunk.js} +1 -1
  346. package/dist/scripts/72.chunk.js +331 -0
  347. package/dist/scripts/72.chunk.js.map +1 -0
  348. package/dist/scripts/73.chunk.js +404 -0
  349. package/dist/scripts/73.chunk.js.map +1 -0
  350. package/dist/scripts/74.chunk.js +301 -0
  351. package/dist/scripts/74.chunk.js.map +1 -0
  352. package/dist/scripts/75.chunk.js +231 -0
  353. package/dist/scripts/75.chunk.js.map +1 -0
  354. package/dist/scripts/76.chunk.js +157 -0
  355. package/dist/scripts/76.chunk.js.map +1 -0
  356. package/dist/scripts/77.chunk.js +307 -0
  357. package/dist/scripts/77.chunk.js.map +1 -0
  358. package/dist/scripts/78.chunk.js +249 -0
  359. package/dist/scripts/78.chunk.js.map +1 -0
  360. package/dist/scripts/79.chunk.js +282 -0
  361. package/dist/scripts/79.chunk.js.map +1 -0
  362. package/dist/scripts/{8-1c22ae2c22.chunk.js → 8-8f44e8bfc4.chunk.js} +1 -1
  363. package/dist/scripts/8.chunk.js +307 -0
  364. package/dist/scripts/8.chunk.js.map +1 -0
  365. package/dist/scripts/80.chunk.js +308 -0
  366. package/dist/scripts/80.chunk.js.map +1 -0
  367. package/dist/scripts/81.chunk.js +366 -0
  368. package/dist/scripts/81.chunk.js.map +1 -0
  369. package/dist/scripts/82.chunk.js +314 -0
  370. package/dist/scripts/82.chunk.js.map +1 -0
  371. package/dist/scripts/83.chunk.js +328 -0
  372. package/dist/scripts/83.chunk.js.map +1 -0
  373. package/dist/scripts/84.chunk.js +313 -0
  374. package/dist/scripts/84.chunk.js.map +1 -0
  375. package/dist/scripts/85.chunk.js +291 -0
  376. package/dist/scripts/85.chunk.js.map +1 -0
  377. package/dist/scripts/86.chunk.js +119 -0
  378. package/dist/scripts/86.chunk.js.map +1 -0
  379. package/dist/scripts/87.chunk.js +219 -0
  380. package/dist/scripts/87.chunk.js.map +1 -0
  381. package/dist/scripts/88.chunk.js +194 -0
  382. package/dist/scripts/88.chunk.js.map +1 -0
  383. package/dist/scripts/89.chunk.js +522 -0
  384. package/dist/scripts/89.chunk.js.map +1 -0
  385. package/dist/scripts/{9-fab9edf019.chunk.js → 9-b8f9ea66c4.chunk.js} +1 -1
  386. package/dist/scripts/9.chunk.js +222 -0
  387. package/dist/scripts/9.chunk.js.map +1 -0
  388. package/dist/scripts/90.chunk.js +337 -0
  389. package/dist/scripts/90.chunk.js.map +1 -0
  390. package/dist/scripts/91.chunk.js +131 -0
  391. package/dist/scripts/91.chunk.js.map +1 -0
  392. package/dist/scripts/92.chunk.js +266 -0
  393. package/dist/scripts/92.chunk.js.map +1 -0
  394. package/dist/scripts/bundle-f28b86bf5b.min.js +8 -0
  395. package/dist/scripts/bundle.js +67206 -0
  396. package/dist/scripts/bundle.js.map +1 -0
  397. package/dist/scripts/bundles.json +2 -2
  398. package/dist/scripts/{polyfills-1554419c02.min.js → polyfills-1d2233ebcc.min.js} +1 -1
  399. package/dist/scripts/polyfills.js +14866 -0
  400. package/dist/scripts/polyfills.js.map +1 -0
  401. package/package.json +4 -4
  402. package/dist/scripts/23-d0172ec9d2.chunk.js +0 -1
  403. package/dist/scripts/25-36d490b1c6.chunk.js +0 -1
  404. package/dist/scripts/bundle-c2eae7224c.min.js +0 -8
  405. /package/dist/libs/shared/src/interfaces/models/{Interactive.d.ts → interactive.d.ts} +0 -0
@@ -0,0 +1 @@
1
+ {"version":3,"sources":["file://C:/ClickView/front-end/clickview/packages/projects/library-editor/src/apps/content-updates/components/awaiting-review-header/AwaitingReviewHeader.hbs","file://C:/ClickView/front-end/clickview/packages/projects/library-editor/src/apps/content-updates/components/awaiting-review-header/AwaitingReviewHeaderComponent.ts","file://C:/ClickView/front-end/clickview/packages/projects/library-editor/src/apps/content-updates/components/content-updates-header/ContentUpdatesHeader.hbs","file://C:/ClickView/front-end/clickview/packages/projects/library-editor/src/apps/content-updates/components/content-updates-header/ContentUpdatesHeaderComponent.ts","webpack://@clickview/library-editor/./src/apps/content-updates/components/content-updates-header/content-updates-header.scss?40d9","file://C:/ClickView/front-end/clickview/packages/projects/library-editor/src/apps/content-updates/components/content-updates-left-nav/ContentUpdatesLeftNav.hbs","file://C:/ClickView/front-end/clickview/packages/projects/library-editor/src/apps/content-updates/components/content-updates-left-nav/ContentUpdatesLeftNavComponent.ts","webpack://@clickview/library-editor/./src/apps/content-updates/components/content-updates-left-nav/content-updates-left-nav.scss?e0ca","file://C:/ClickView/front-end/clickview/packages/projects/library-editor/src/apps/content-updates/components/video-group-list/VideoGroupItem.hbs","file://C:/ClickView/front-end/clickview/packages/projects/library-editor/src/apps/content-updates/components/video-group-list/VideoGroupList.hbs","file://C:/ClickView/front-end/clickview/packages/projects/library-editor/src/apps/content-updates/components/video-group-list/VideoGroupListComponent.ts","webpack://@clickview/library-editor/./src/apps/content-updates/views/content-updates.scss?8aaa","file://C:/ClickView/front-end/clickview/packages/projects/library-editor/src/shared/components/tabs/Tabs.hbs","file://C:/ClickView/front-end/clickview/packages/projects/library-editor/src/shared/components/tabs/TabsComponent.ts","webpack://@clickview/library-editor/./src/shared/components/tabs/tabs.scss?0237"],"names":[],"mappings":";;;;;;;;;AAAA,iBAAiB,mBAAO,CAAC,8BAAY;AACrC,iEAAiE;AACjE;;AAEA;AACA;AACA;AACA,+IAA+I,gBAAgB,sBAAsB,yGAAyG,aAAa;AAC3S;AACA,CAAC;AACD,uJAAuJ;;AAEvJ;AACA;AACA;AACA,2GAA2G,sBAAsB,yGAAyG,aAAa;AACvP;AACA,6IAA6I,qBAAqB,yEAAyE;AAC3O,CAAC,gBAAgB,E;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AClBjB;AAEA;AACA;AACA;AAGA;AACA;AAEA;AAEO,IAA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W,KAAX;AAEA,YAAI,CAAC,CAAC,IAAF,CAAO,QAAP,KAAoB,KAAI,CAAC,OAAL,CAAa,SAArC,EACE;AAEF,SAAC,CAAC,MAAF,GAAW,IAAX;AACA,aAAK,GAAG,IAAR;AACD,OATD;AAWA,UAAI,KAAJ,EACE;;AAEF,UAAM,QAAQ,GAAG,iDAAQ,KAAK,OAAL,CAAa,IAArB,CAAjB;;AAEA,UAAI,QAAJ,EACE,QAAQ,CAAC,MAAT,GAAkB,IAAlB;AACH;AAtEH;AAAA;AAAA,qCAwEuB;AACnB,WAAK,YAAL;AACD;AA1EH;AAAA;AAAA,wBAOiB;AACb,aAAO,UAAP;AACD;AATH;AAAA;AAAA,wBAWsB;AAClB,UAAI,SAAS,GAAG,6BAAhB;AAEA,UAAI,KAAK,OAAL,CAAa,SAAjB,EACE,SAAS,eAAQ,KAAK,OAAL,CAAa,SAArB,CAAT;AAEF,aAAO,SAAP;AACD;AAlBH;AAAA;AAAA,wBAoBqB;AACjB,aAAO,gDAAP;AACD;AAtBH;AAAA;AAAA,wBAwBqB;AACjB,UAAM,KAAK,GAAuC,EAAlD;AAEA,WAAK,OAAL,CAAa,IAAb,CAAkB,OAAlB,CAA0B,UAAC,GAAD;AAAA,eAAc,KAAK,CAAC,GAAG,CAAC,IAAJ,CAAS,QAAV,CAAL,GAA2B,GAAG,CAAC,IAAJ,CAAS,OAAlD;AAAA,OAA1B;AAEA,aAAO,KAAP;AACD;AA9BH;;AAAA;AAAA,EAAmC,8DAAI,CAAC,SAAxC,E;;;;;;;;;;;ACzBA;AACA,kBAAkB,uD","file":"scripts/31.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, alias2=container.escapeExpression;\n\n return \"<button class=\\\"approve-all btn btn-success d-inline-block \"\n + alias2(container.lambda(((stack1 = (depth0 != null ? depth0.options : depth0)) != null ? stack1.btnClass : stack1), depth0))\n + \"\\\" type=\\\"button\\\">\"\n + alias2((helpers.lang||(depth0 && depth0.lang)||container.hooks.helperMissing).call(depth0 != null ? depth0 : (container.nullContext || {}),\"approveBtn\",{\"name\":\"lang\",\"hash\":{\"smartCount\":((stack1 = (depth0 != null ? depth0.options : depth0)) != null ? stack1.numVideos : stack1)},\"data\":data}))\n + \"</button>\\r\\n\";\n},\"compiler\":[8,\">= 4.3.0\"],\"main\":function(container,depth0,helpers,partials,data) {\n var stack1, alias1=container.propertyIsEnumerable, alias2=container.escapeExpression, alias3=depth0 != null ? depth0 : (container.nullContext || {});\n\n return \"<h5 class=\\\"d-inline-block m-0 \"\n + alias2(container.lambda(((stack1 = (depth0 != null ? depth0.options : depth0)) != null ? stack1.headingClass : stack1), depth0))\n + \"\\\">\"\n + alias2((helpers.lang||(depth0 && depth0.lang)||container.hooks.helperMissing).call(alias3,\"heading\",{\"name\":\"lang\",\"hash\":{\"smartCount\":((stack1 = (depth0 != null ? depth0.options : depth0)) != null ? stack1.numVideos : stack1)},\"data\":data}))\n + \"</h5>\\r\\n\"\n + ((stack1 = helpers[\"if\"].call(alias3,((stack1 = (depth0 != null ? depth0.options : depth0)) != null ? stack1.videosToReview : stack1),{\"name\":\"if\",\"hash\":{},\"fn\":container.program(1, data, 0),\"inverse\":container.noop,\"data\":data})) != null ? stack1 : \"\");\n},\"useData\":true});","import { ObjectHash, Radio } from 'backbone';\r\n\r\nimport { Core } from 'libs/common/core';\r\nimport { LocationContext, UserAction, EntityType, WorkflowPhase, OperationDescriptor } from 'libs/analytics/interfaces';\r\nimport { AnalyticsHelper } from 'libs/analytics/AnalyticsHelper';\r\n\r\nimport { DialogViewOptions } from 'shared/components/dialog/DialogView';\r\nimport { DialogHelper } from 'shared/utils';\r\nimport { LanguageService } from 'libs/common/backbone/services/LanguageService';\r\n\r\nimport AwaitingReviewHeaderTemplate from './AwaitingReviewHeader.hbs';\r\n\r\nexport class AwaitingReviewHeaderComponent extends Core.Component {\r\n public get name(): string {\r\n return 'AwaitingReviewHeaderComponent';\r\n }\r\n\r\n public get className(): string {\r\n return 'd-flex justify-content-between align-items-center p-3 border-bottom';\r\n }\r\n\r\n public get template(): string {\r\n return AwaitingReviewHeaderTemplate;\r\n }\r\n\r\n public get lang(): string {\r\n return 'contentUpdates.awaitingReviewHeader';\r\n }\r\n\r\n public events(): ObjectHash {\r\n return {\r\n 'click .approve-all': 'onClickApproveAll'\r\n };\r\n }\r\n\r\n private onClickApproveAll(): void {\r\n const dialog = new DialogHelper(this.getApproveAllDialogOptions());\r\n\r\n dialog.render()\r\n .done(() => this.onConfirmApproveAll());\r\n\r\n this.logAction(WorkflowPhase.Start);\r\n }\r\n\r\n private onConfirmApproveAll(): void {\r\n Radio.channel(this.options.channelName).trigger('approve:all');\r\n\r\n this.logAction(WorkflowPhase.Complete);\r\n }\r\n\r\n private getApproveAllDialogOptions(): DialogViewOptions {\r\n return {\r\n title: LanguageService.getPhrase(this.lang, 'dialogTitle'),\r\n text: LanguageService.getPhrase(this.lang, 'dialogBody'),\r\n buttons: [{\r\n text: LanguageService.getPhrase(this.lang, 'dialogButton'),\r\n className: 'btn btn-primary',\r\n success: true\r\n }]\r\n };\r\n }\r\n\r\n private logAction(workflowPhase: WorkflowPhase): void {\r\n const analyticsOptions = {\r\n location: LocationContext.AwaitingReviewVideoListHeader,\r\n actionType: UserAction.Approve,\r\n descriptor: OperationDescriptor.All,\r\n entity: EntityType.Video,\r\n workflowPhase\r\n };\r\n\r\n const data = {\r\n approvedCount: this.collection.length\r\n };\r\n\r\n AnalyticsHelper.logUserAction(data, analyticsOptions);\r\n }\r\n\r\n public viewOptions(): ObjectHash {\r\n return {\r\n videosToReview: !!this.collection.length,\r\n multipleVideos: this.collection.length > 1,\r\n numVideos: this.collection.length\r\n };\r\n }\r\n}","var Handlebars = require('handlebars');\nmodule.exports = (Handlebars['default'] || Handlebars).template({\"compiler\":[8,\">= 4.3.0\"],\"main\":function(container,depth0,helpers,partials,data) {\n var stack1, alias1=container.propertyIsEnumerable, alias2=container.lambda, alias3=container.escapeExpression;\n\n return \"<div class=\\\"d-inline-block p-3 \"\n + alias3(alias2(((stack1 = ((stack1 = (depth0 != null ? depth0.options : depth0)) != null ? stack1.styles : stack1)) != null ? stack1.heading : stack1), depth0))\n + \"\\\"><h1 class=\\\"h3 m-0\\\">\"\n + alias3((helpers.lang||(depth0 && depth0.lang)||container.hooks.helperMissing).call(depth0 != null ? depth0 : (container.nullContext || {}),\"contentUpdates\",{\"name\":\"lang\",\"hash\":{},\"data\":data}))\n + \"</h1></div><div class=\\\"tabs-region d-inline-flex align-items-end \"\n + alias3(alias2(((stack1 = ((stack1 = (depth0 != null ? depth0.options : depth0)) != null ? stack1.styles : stack1)) != null ? stack1.tabsContainer : stack1), depth0))\n + \"\\\"></div>\";\n},\"useData\":true});","import { ObjectHash } from 'backbone';\r\nimport { Core } from 'libs/common/core';\r\n\r\nimport ContentUpdatesHeaderTemplate from './ContentUpdatesHeader.hbs';\r\nimport { TabsComponent, Tab } from 'shared/components/tabs/TabsComponent';\r\nimport { ContentUpdatesTabs, ContentUpdateTabNames } from 'apps/content-updates/utils';\r\nimport styles from './content-updates-header.scss';\r\n\r\ninterface ContentUpdatesHeaderComponentOptions extends Core.ComponentOptions {\r\n activeTab: string;\r\n reviewEnabled: boolean;\r\n}\r\n\r\nexport class ContentUpdatesHeaderComponent extends Core.Component {\r\n protected options: ContentUpdatesHeaderComponentOptions;\r\n\r\n constructor(options: ContentUpdatesHeaderComponentOptions) {\r\n super(options);\r\n }\r\n\r\n public get name(): string {\r\n return 'ContentUpdatesHeaderComponent';\r\n }\r\n\r\n public get className(): string {\r\n return 'd-flex align-items-end border-bottom';\r\n }\r\n\r\n public get template(): string {\r\n return ContentUpdatesHeaderTemplate;\r\n }\r\n\r\n public get lang(): string {\r\n return 'contentUpdates.contentUpdatesHeader';\r\n }\r\n\r\n public regions(): ObjectHash {\r\n return {\r\n tabs: {\r\n el: '.tabs-region'\r\n }\r\n };\r\n }\r\n\r\n private getTabs(): Array<Tab> {\r\n const tabs = ContentUpdatesTabs;\r\n\r\n if (this.options.reviewEnabled) return tabs;\r\n\r\n return tabs.filter(t => t.name !== ContentUpdateTabNames.AwaitingReview);\r\n }\r\n\r\n public viewOptions(): ObjectHash {\r\n return {\r\n styles\r\n };\r\n }\r\n\r\n public onRender(): void {\r\n const tabs = this.getTabs();\r\n\r\n if (tabs.length <= 1) return;\r\n\r\n this.showChildView('tabs', new TabsComponent({\r\n tabs,\r\n activeTab: this.options.activeTab,\r\n className: 'border-0'\r\n }));\r\n }\r\n}","// extracted by mini-css-extract-plugin\nmodule.exports = {\"heading\":\"cv--heading--1SwZ2\",\"tabsContainer\":\"cv--tabsContainer--3f4T9\"};","var Handlebars = require('handlebars');\nmodule.exports = (Handlebars['default'] || Handlebars).template({\"compiler\":[8,\">= 4.3.0\"],\"main\":function(container,depth0,helpers,partials,data) {\n var stack1, alias1=container.propertyIsEnumerable, alias2=depth0 != null ? depth0 : (container.nullContext || {}), alias3=container.hooks.helperMissing, alias4=container.escapeExpression;\n\n return \"<div class=\\\"p-3 border-bottom\\\">\\r\\n <h5>\"\n + alias4((helpers.lang||(depth0 && depth0.lang)||alias3).call(alias2,\"manualReviewHeading\",{\"name\":\"lang\",\"hash\":{},\"data\":data}))\n + \"</h5>\\r\\n <p>\"\n + alias4((helpers.lang||(depth0 && depth0.lang)||alias3).call(alias2,\"manualReviewBody\",{\"name\":\"lang\",\"hash\":{},\"data\":data}))\n + \"</p>\\r\\n <button class=\\\"btn btn-light text-center disable-review\\\" type=\\\"button\\\">\"\n + alias4((helpers.lang||(depth0 && depth0.lang)||alias3).call(alias2,\"manualReviewOffBtn\",{\"name\":\"lang\",\"hash\":{},\"data\":data}))\n + \"</button>\\r\\n</div>\\r\\n<div class=\\\"p-3 border-bottom\\\">\\r\\n <p class=\\\"m-0\\\">\"\n + alias4((helpers.lang||(depth0 && depth0.lang)||alias3).call(alias2,\"noActionDisclaimer\",{\"name\":\"lang\",\"hash\":{},\"data\":data}))\n + \"</p>\\r\\n <p class=\\\"m-0\\\">\"\n + alias4((helpers.lang||(depth0 && depth0.lang)||alias3).call(alias2,\"learnMore\",{\"name\":\"lang\",\"hash\":{},\"data\":data}))\n + \" <a href=\"\n + alias4(container.lambda(((stack1 = (depth0 != null ? depth0.options : depth0)) != null ? stack1.supportUrl : stack1), depth0))\n + \" target=\\\"_blank\\\">\"\n + alias4((helpers.lang||(depth0 && depth0.lang)||alias3).call(alias2,\"learnMoreLink\",{\"name\":\"lang\",\"hash\":{},\"data\":data}))\n + \"</a></p>\\r\\n</div>\";\n},\"useData\":true});","import { ObjectHash } from 'backbone';\r\nimport { Core } from 'libs/common/core';\r\nimport { UrlHelper } from 'libs/common/backbone/utils/UrlHelper';\r\n\r\nimport { Actions, AppChannels, SupportArticles } from 'shared/constants';\r\nimport { LocationContext, UserAction, EntityType, WorkflowPhase, CustomerSettingDescriptor } from 'libs/analytics/interfaces';\r\nimport { AnalyticsHelper } from 'libs/analytics/AnalyticsHelper';\r\n\r\nimport ContentUpdatesLeftNavTemplate from './ContentUpdatesLeftNav.hbs';\r\nimport styles from './content-updates-left-nav.scss';\r\n\r\ninterface ContentUpdatesLeftNavComponentOptions extends Core.ComponentOptions {\r\n supportSiteUrl: string;\r\n}\r\n\r\nexport class ContentUpdatesLeftNavComponent extends Core.Component {\r\n public options: ContentUpdatesLeftNavComponentOptions;\r\n\r\n constructor(options: ContentUpdatesLeftNavComponentOptions) {\r\n super(options);\r\n }\r\n\r\n public get name(): string {\r\n return 'ContentUpdatesLeftNavComponent';\r\n }\r\n\r\n public get className(): string {\r\n return `d-inline-block ${styles.leftNav}`;\r\n }\r\n\r\n public get template(): string {\r\n return ContentUpdatesLeftNavTemplate;\r\n }\r\n\r\n public get lang(): string {\r\n return 'contentUpdates.contentUpdatesLeftNav';\r\n }\r\n\r\n public get appLinks(): Core.AppLinkHash {\r\n return {\r\n '.disable-review': {\r\n application: AppChannels.CONTENT_UPDATES,\r\n action: Actions.ContentUpdates.DISABLE_REVIEW\r\n }\r\n };\r\n }\r\n\r\n public events(): ObjectHash {\r\n return {\r\n 'click .disable-review': 'onClickDisableReview'\r\n };\r\n }\r\n\r\n private onClickDisableReview(): void {\r\n const analyticsOptions = {\r\n location: LocationContext.LeftNav,\r\n actionType: UserAction.Disable,\r\n entity: EntityType.CustomerSetting,\r\n descriptor: CustomerSettingDescriptor.LibraryReview,\r\n workflowPhase: WorkflowPhase.Start\r\n };\r\n\r\n AnalyticsHelper.logUserAction({}, analyticsOptions);\r\n }\r\n\r\n public viewOptions(): ObjectHash {\r\n return {\r\n supportUrl: UrlHelper.safeUrlConcat(this.options.supportSiteUrl, SupportArticles.LIBRARY_REVIEW)\r\n };\r\n }\r\n}","// extracted by mini-css-extract-plugin\nmodule.exports = {\"leftNav\":\"cv--leftNav--15vRB\"};","var Handlebars = require('handlebars');\nmodule.exports = (Handlebars['default'] || Handlebars).template({\"compiler\":[8,\">= 4.3.0\"],\"main\":function(container,depth0,helpers,partials,data) {\n var stack1, alias1=container.propertyIsEnumerable;\n\n return \"<h4 class=\\\"pl-3\\\">\"\n + container.escapeExpression(container.lambda(((stack1 = (depth0 != null ? depth0.options : depth0)) != null ? stack1.groupTitle : stack1), depth0))\n + \"</h4>\\r\\n<div class=\\\"video-list-region\\\"></div>\";\n},\"useData\":true});","var Handlebars = require('handlebars');\nmodule.exports = (Handlebars['default'] || Handlebars).template({\"compiler\":[8,\">= 4.3.0\"],\"main\":function(container,depth0,helpers,partials,data) {\n return \"<div class=\\\"videos-region\\\"></div>\";\n},\"useData\":true});","import { ObjectHash } from 'backbone';\r\nimport { Core } from 'libs/common/core';\r\nimport { LanguageService } from 'libs/common/backbone/services/LanguageService';\r\nimport { EmptyStateBehavior } from 'libs/shared/legacy/behaviors/empty-state/EmptyStateBehavior';\r\n\r\nimport { AppChannels, EmptyStateComponents, EmptyStateOptions } from 'shared/constants';\r\nimport { Config } from 'shared/models/Config';\r\nimport { EmptyState } from 'shared/enums';\r\nimport { VideoListComponent } from 'shared/components/video-list/VideoListComponent';\r\nimport { VideoItemComponentType } from 'shared/components/video-item/utils/VideoItemComponentTypes';\r\nimport { VideoSourcesMetadataComponentOptions } from 'shared/components/video-item/video-item-metadata/video-sources-metadata/VideoSourcesMetadataComponent';\r\nimport { VideoCollection } from 'shared/collections/VideoCollection';\r\n\r\nimport { VideoGroup } from 'apps/content-updates/models';\r\n\r\nimport VideoGroupListTemplate from './VideoGroupList.hbs';\r\nimport VideoGroupItemTemplate from './VideoGroupItem.hbs';\r\n\r\ninterface VideoGroupItemComponentOptions extends Core.ComponentOptions<VideoGroup> {\r\n videoItemComponentType?: VideoItemComponentType;\r\n videosWithMetadata?: VideoCollection;\r\n groupTitleAttr?: string;\r\n config: Config;\r\n sourceMetadataOptions?: VideoSourcesMetadataComponentOptions;\r\n customerHasCustomLibrary?: boolean;\r\n customerHasLocalCache?: boolean;\r\n collectionViewChannel?: string;\r\n}\r\n\r\nclass VideoGroupItemComponent extends Core.Component<VideoGroup> {\r\n protected options: VideoGroupItemComponentOptions;\r\n\r\n constructor(options: VideoGroupItemComponentOptions) {\r\n super(options);\r\n }\r\n\r\n public get name(): string {\r\n return 'VideoGroupItemComponent';\r\n }\r\n\r\n public get template(): string {\r\n return VideoGroupItemTemplate;\r\n }\r\n\r\n public get className(): string {\r\n return 'pt-3';\r\n }\r\n\r\n public get defaults(): ObjectHash {\r\n return {\r\n videoItemComponentType: VideoItemComponentType.Base\r\n };\r\n }\r\n\r\n public regions(): ObjectHash {\r\n return {\r\n videos: {\r\n el: '.video-list-region',\r\n replaceElement: true\r\n }\r\n };\r\n }\r\n\r\n private getGroupTitle(): string {\r\n const attr = this.options.groupTitleAttr || 'groupTitle';\r\n\r\n return this.model.get(attr);\r\n }\r\n\r\n public viewOptions(): ObjectHash {\r\n return {\r\n groupTitle: this.getGroupTitle()\r\n };\r\n }\r\n\r\n public onRender(): void {\r\n this.showChildView('videos', new VideoListComponent({\r\n collection: this.model.videos,\r\n videosWithMetadata: this.options.videosWithMetadata,\r\n application: AppChannels.CONTENT_UPDATES,\r\n collectionIdentifier: null,\r\n videoItemComponentType: this.options.videoItemComponentType,\r\n config: this.options.config,\r\n sourceMetadataOptions: this.options.sourceMetadataOptions,\r\n collectionViewChannel: this.options.collectionViewChannel,\r\n customerHasLocalCache: this.options.customerHasLocalCache,\r\n customerHasCustomLibrary: this.options.customerHasCustomLibrary\r\n }));\r\n }\r\n}\r\n\r\ninterface VideoGroupItemComponentCollectionOptions extends Core.ComponentCollectionOptions {\r\n childOptions?: VideoGroupItemComponentOptions;\r\n}\r\n\r\nclass VideoGroupItemComponentCollection extends Core.ComponentCollection {\r\n public options: VideoGroupItemComponentCollectionOptions;\r\n\r\n constructor(options: VideoGroupItemComponentCollectionOptions) {\r\n super(options);\r\n }\r\n\r\n public get name(): string {\r\n return 'VideoGroupItemComponentCollection';\r\n }\r\n\r\n public get childView(): any {\r\n return VideoGroupItemComponent;\r\n }\r\n\r\n public get childViewOptions(): ObjectHash {\r\n return this.options.childOptions;\r\n }\r\n}\r\n\r\ninterface VideoGroupListComponentOptions extends Core.ComponentOptions {\r\n childOptions?: VideoGroupItemComponentOptions;\r\n emptyStateType?: EmptyState;\r\n emptyStateOptions?: EmptyStateOptions;\r\n}\r\n\r\nexport class VideoGroupListComponent extends Core.Component {\r\n public options: VideoGroupListComponentOptions;\r\n\r\n constructor(options: VideoGroupListComponentOptions) {\r\n super(options);\r\n }\r\n\r\n public get name(): string {\r\n return 'VideoGroupListComponent';\r\n }\r\n\r\n public get template(): string {\r\n return VideoGroupListTemplate;\r\n }\r\n\r\n public get lang(): string {\r\n return 'contentUpdates.videoGroupList';\r\n }\r\n\r\n public get defaults(): ObjectHash {\r\n return {\r\n emptyState: EmptyState.Default\r\n };\r\n }\r\n\r\n public get behaviors(): any[] {\r\n return [\r\n {\r\n behaviorClass: EmptyStateBehavior,\r\n region: 'videos',\r\n type: this.options.emptyStateType,\r\n componentOptions: this.getEmptyStateComponentOptions(),\r\n emptyStateComponents: EmptyStateComponents\r\n }\r\n ];\r\n }\r\n\r\n public regions(): ObjectHash {\r\n return {\r\n videos: {\r\n el: '.videos-region',\r\n replaceElement: true\r\n }\r\n };\r\n }\r\n\r\n private getEmptyStateComponentOptions(): ObjectHash {\r\n if (this.options.emptyStateType === EmptyState.AwaitingReview) {\r\n return {\r\n heading: LanguageService.getPhrase(this.lang, 'awaitingReviewEmptyStateHeading'),\r\n description: LanguageService.getPhrase(this.lang, 'awaitingReviewEmptyStateBody')\r\n };\r\n }\r\n\r\n if (this.options.emptyStateType === EmptyState.PastReleases) {\r\n return {\r\n heading: LanguageService.getPhrase(this.lang, 'pastReleasesEmptyStateHeading')\r\n };\r\n }\r\n }\r\n\r\n public onRender(): void {\r\n this.showChildView('videos', new VideoGroupItemComponentCollection(this.options));\r\n }\r\n}","// extracted by mini-css-extract-plugin\nmodule.exports = {\"content\":\"cv--content--303Nb\",\"contentWithLeftNav\":\"cv--contentWithLeftNav--2ZCHY\"};","var Handlebars = require('handlebars');\nmodule.exports = (Handlebars['default'] || Handlebars).template({\"1\":function(container,depth0,helpers,partials,data,blockParams,depths) {\n var stack1, alias1=container.propertyIsEnumerable;\n\n return ((stack1 = helpers.unless.call(depth0 != null ? depth0 : (container.nullContext || {}),(depth0 != null ? depth0.hide : depth0),{\"name\":\"unless\",\"hash\":{},\"fn\":container.program(2, data, 0, blockParams, depths),\"inverse\":container.noop,\"data\":data})) != null ? stack1 : \"\");\n},\"2\":function(container,depth0,helpers,partials,data,blockParams,depths) {\n var stack1, alias1=container.propertyIsEnumerable, alias2=container.lambda, alias3=container.escapeExpression;\n\n return \" <a class=\\\"\"\n + alias3(alias2(((stack1 = ((stack1 = (depths[1] != null ? depths[1].options : depths[1])) != null ? stack1.styles : stack1)) != null ? stack1.link : stack1), depth0))\n + \" p-2 \"\n + alias3(alias2((depth0 != null ? depth0.link : depth0), depth0))\n + \" \"\n + ((stack1 = helpers[\"if\"].call(depth0 != null ? depth0 : (container.nullContext || {}),(depth0 != null ? depth0.active : depth0),{\"name\":\"if\",\"hash\":{},\"fn\":container.program(3, data, 0, blockParams, depths),\"inverse\":container.noop,\"data\":data})) != null ? stack1 : \"\")\n + \"\\\">\"\n + alias3(alias2((depth0 != null ? depth0.name : depth0), depth0))\n + \"</a>\\r\\n\";\n},\"3\":function(container,depth0,helpers,partials,data,blockParams,depths) {\n var stack1, alias1=container.propertyIsEnumerable;\n\n return container.escapeExpression(container.lambda(((stack1 = ((stack1 = (depths[1] != null ? depths[1].options : depths[1])) != null ? stack1.styles : stack1)) != null ? stack1.active : stack1), depth0))\n + \" border-bottom border-primary text-primary\";\n},\"compiler\":[8,\">= 4.3.0\"],\"main\":function(container,depth0,helpers,partials,data,blockParams,depths) {\n var stack1, alias1=container.propertyIsEnumerable;\n\n return ((stack1 = helpers.each.call(depth0 != null ? depth0 : (container.nullContext || {}),((stack1 = (depth0 != null ? depth0.options : depth0)) != null ? stack1.tabs : stack1),{\"name\":\"each\",\"hash\":{},\"fn\":container.program(1, data, 0, blockParams, depths),\"inverse\":container.noop,\"data\":data})) != null ? stack1 : \"\");\n},\"useData\":true,\"useDepths\":true});","import * as _ from 'underscore';\r\nimport { ObjectHash } from 'backbone';\r\n\r\nimport { Core } from 'libs/common/core';\r\n\r\nimport styles from './tabs.scss';\r\nimport TabsTemplate from './Tabs.hbs';\r\n\r\ninterface TabAppLink {\r\n selector: string;\r\n appLink: Core.AppLink;\r\n}\r\n\r\nexport interface Tab {\r\n name: string | (() => string);\r\n active?: boolean;\r\n link: TabAppLink;\r\n hide?: boolean;\r\n}\r\n\r\ninterface TabsComponentOptions extends Core.ComponentOptions {\r\n tabs: Array<Tab>;\r\n activeTab: string;\r\n}\r\n\r\nexport class TabsComponent extends Core.Component {\r\n public options: TabsComponentOptions;\r\n\r\n constructor(options: TabsComponentOptions) {\r\n super(options);\r\n }\r\n\r\n public get name(): string {\r\n return 'TabsView';\r\n }\r\n\r\n public get className(): string {\r\n let className = 'bg-white py-2 border-bottom';\r\n\r\n if (this.options.className)\r\n className += ` ${this.options.className}`;\r\n\r\n return className;\r\n }\r\n\r\n public get template(): any {\r\n return TabsTemplate;\r\n }\r\n\r\n public get appLinks(): ObjectHash {\r\n const links: {[selector: string]: Core.AppLink} = {};\r\n\r\n this.options.tabs.forEach((tab: Tab) => links[tab.link.selector] = tab.link.appLink);\r\n\r\n return links;\r\n }\r\n\r\n public viewOptions(): ObjectHash {\r\n const { tabs } = this.options;\r\n\r\n const pageTabs = tabs.map((tab: Tab) => {\r\n return {\r\n ...tab,\r\n link: tab.link.selector.replace('.', '')\r\n };\r\n });\r\n\r\n return {\r\n styles,\r\n tabs: pageTabs\r\n };\r\n }\r\n\r\n private setActiveTab(): void {\r\n // Find active applink and set it as active if exists, or set first tab as active\r\n let found = false;\r\n\r\n this.options.tabs.forEach((t: Tab) => {\r\n // First reset all tabs to not active\r\n t.active = false;\r\n\r\n if (t.link.selector !== this.options.activeTab)\r\n return;\r\n\r\n t.active = true;\r\n found = true;\r\n });\r\n\r\n if (found)\r\n return;\r\n\r\n const firstTab = _.first(this.options.tabs);\r\n\r\n if (firstTab)\r\n firstTab.active = true;\r\n }\r\n\r\n public onBeforeRender(): void {\r\n this.setActiveTab();\r\n }\r\n}","// extracted by mini-css-extract-plugin\nmodule.exports = {\"link\":\"cv--link--5idZs\",\"active\":\"cv--active--3Ty4M\"};"],"sourceRoot":""}
@@ -1 +1 @@
1
- (window.webpackJsonp_clickview_library_editor=window.webpackJsonp_clickview_library_editor||[]).push([[32],{1051:function(e,t,n){"use strict";n.d(t,"a",(function(){return p}));var r=n(2),o=n(244);function i(e){return(i="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}function l(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function a(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}function s(e,t){return(s=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e})(e,t)}function c(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,r=f(e);if(t){var o=f(this).constructor;n=Reflect.construct(r,arguments,o)}else n=r.apply(this,arguments);return u(this,n)}}function u(e,t){return!t||"object"!==i(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 f(e){return(f=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)})(e)}var p=function(e){!function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),t&&s(e,t)}(u,e);var t,n,r,i=c(u);function u(){return l(this,u),i.apply(this,arguments)}return t=u,(n=[{key:"defaults",value:function(){return e={},t=o.c.Disabled,n=!0,t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e;var e,t,n}}])&&a(t.prototype,n),r&&a(t,r),u}(r.a.Model)},1063:function(e,t,n){"use strict";n.d(t,"a",(function(){return p}));var r=n(1),o=n(2),i=n(287);function l(e){return(l="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 a(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}function s(e,t){return(s=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e})(e,t)}function c(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,r=f(e);if(t){var o=f(this).constructor;n=Reflect.construct(r,arguments,o)}else n=r.apply(this,arguments);return u(this,n)}}function u(e,t){return!t||"object"!==l(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 f(e){return(f=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)})(e)}var p=function(e){!function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),t&&s(e,t)}(u,e);var t,n,o,l=c(u);function u(e){return function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,u),l.call(this,e)}return t=u,(n=[{key:"initialize",value:function(){this.listenTo(this.options.channelName,"center:dropdown",this.centerSelectedItem)}},{key:"getExtraClasses",value:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t=e.alignment,n=void 0===t?"left":t,r=e.extraClasses,o="dropdown-menu-".concat(n);return r&&(o="".concat(o," ").concat(r)),o}},{key:"centerSelectedItem",value:function(){var e=this.$el.find(".active");if(e.length){var t=this.$el.scrollTop()+e.position().top,n=.5*this.$el.height()+.5*e.height();this.$el.scrollTop(t-n)}}},{key:"name",get:function(){return"DropdownCollectionComponent"}},{key:"className",get:function(){return"dropdown-menu items-viewpart ".concat(this.getExtraClasses(this.options.displayOptions))}},{key:"attributes",get:function(){return{"aria-labelledby":"dropdownSelector"}}},{key:"childView",get:function(){return i.a}},{key:"childViewOptions",get:function(){var e={channelName:this.options.channelName,analyticsHelper:this.options.analyticsHelper};return r.extend(e,this.options.childOptions)}}])&&a(t.prototype,n),o&&a(t,o),u}(o.a.ComponentCollection)},1068:function(e,t,n){"use strict";n.d(t,"a",(function(){return g}));var r=n(6),o=n(2),i=n(3),l=n(1082),a=n(12),s=n(1069),c=n.n(s),u=n(1070),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 r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}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,r=m(e);if(t){var o=m(this).constructor;n=Reflect.construct(r,arguments,o)}else n=r.apply(this,arguments);return b(this,n)}}function b(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 m(e){return(m=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)})(e)}var g=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,o,s=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),s.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(),r.Radio.channel(this.options.channelName).trigger("create:folder:clicked")}},{key:"setButtonText",value:function(e,t){if(e&&!t){var n=e.get("name");this.getUI("button").text(n)}else{var r=a.f.getSelected(this.options.folderTreeKey,this.collection),o=r?r.get("name"):i.a.getPhrase(this.lang,"button");this.getUI("button").text(o)}}},{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),o&&d(t,o),u}(o.a.Component)},1069:function(e,t,n){var r=n(10);e.exports=(r.default||r).template({1:function(e,t,n,r,o){e.propertyIsEnumerable;var i,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:o}))+"</button>\r\n"},compiler:[8,">= 4.3.0"],main:function(e,t,n,r,o){e.propertyIsEnumerable;var i,l=e.lambda,a=e.escapeExpression;return'<button\r\n class="'+a(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='+a(l(null!=(i=null!=t?t.options:t)?i.name:i,t))+"\r\n>"+a(l(null!=(i=null!=t?t.options:t)?i.buttonText:i,t))+'</button>\r\n<div class="dropdown-menu '+a(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,o,0),inverse:e.noop,data:o}))?i:"")+'</div>\r\n<div class="form-feedback"></div>'},useData:!0})},1070:function(e,t,n){e.exports={selectBtn:"_2TTgs",list:"_3wN7o",selector:"_3Xf1P",customItem:"_199PI"}},1105:function(e,t,n){"use strict";n.d(t,"a",(function(){return g}));var r=n(1),o=n(6),i=n(2),l=n(1063),a=n(12),s=n(1106),c=n.n(s),u=n(1107),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 r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}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,r=m(e);if(t){var o=m(this).constructor;n=Reflect.construct(r,arguments,o)}else n=r.apply(this,arguments);return b(this,n)}}function b(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 m(e){return(m=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)})(e)}var g=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,s=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=s.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(){o.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),o.Radio.channel(this.options.channelName).trigger("center:dropdown")}},{key:"onArrowKeyDown",value:function(e){a.c.getSelected(this.collection)?this.optionStep=1:this.optionStep=0;var t=this.getNextModel(e.keyCode);for(t||(a.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)||(a.c.setSelected(e.get("id"),this.collection),this.setModel(),this.getUI("dropdownToggle").text(this.getButtonText()),o.Radio.channel(this.options.channelName).trigger("select:option:selected",e))}},{key:"setModel",value:function(){this.model=a.c.getSelected(this.collection)}},{key:"getNextModel",value:function(e){var t,n=a.c.getSelected(this.collection)||this.collection.first(),r=this.collection.indexOf(n);return(t=38===e?this.collection.at(r-this.optionStep):this.collection.at(r+this.optionStep))||(a.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=r.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=r.filter(this.collection.models,(function(n){return n.get(t.options.displayProperty).toLowerCase().slice(0,1)===e}));if(n.length>1){var o=n[this.sameCharIndex];return o||(o=r.first(n),this.sameCharIndex=0),this.sameCharIndex++,o}return r.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){var t;if(e.get("divider"))return!0;if(!r.isFunction(this.options.childOptions.isDisabled))return!1;for(var n=arguments.length,o=new Array(n>1?n-1:0),i=1;i<n;i++)o[i-1]=arguments[i];return(t=this.options.childOptions.isDisabled).call.apply(t,[this,e].concat(o))}},{key:"getButtonText",value:function(){if(this.options.disabled)return this.options.noOptionsText;var e=a.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:r.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)},1106:function(e,t,n){var r=n(10);e.exports=(r.default||r).template({1:function(e,t,n,r,o){var i;e.propertyIsEnumerable;return 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,r,o){return" disabled"},compiler:[8,">= 4.3.0"],main:function(e,t,n,r,o){e.propertyIsEnumerable;var i,l=e.lambda,a=e.escapeExpression,s=null!=t?t:e.nullContext||{};return'<button \r\n class="dropdown-toggle form-control btn-block text-left position-relative '+a(l(null!=(i=null!=(i=null!=t?t.options:t)?i.styles:i)?i.selectButton:i,t))+" "+(null!=(i=n.if.call(s,null!=(i=null!=t?t.options:t)?i.disabled:i,{name:"if",hash:{},fn:e.program(1,o,0),inverse:e.noop,data:o}))?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(s,null!=(i=null!=t?t.options:t)?i.disabled:i,{name:"if",hash:{},fn:e.program(3,o,0),inverse:e.noop,data:o}))?i:"")+' \r\n name="'+a(l(null!=(i=null!=t?t.options:t)?i.inputName:i,t))+'"\r\n >\r\n '+a(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})},1107:function(e,t,n){e.exports={dropdownMenu:"_2RaQu",selectButton:"_2xGqi",disabled:"_15kWr"}},1128:function(e,t,n){"use strict";n.d(t,"a",(function(){return g}));var r=n(1),o=n(6),i=n(2),l=n(3),a=n(42),s=n(1105),c=n(12),u=n(1129),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 r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}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,r=m(e);if(t){var o=m(this).constructor;n=Reflect.construct(r,arguments,o)}else n=r.apply(this,arguments);return b(this,n)}}function b(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 m(e){return(m=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)})(e)}var g=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){o.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(r.contains(e,n.get("id")+""))return!0}}},{key:"onRender",value:function(){this.showChildView("dropdown",new s.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:a.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)},1129:function(e,t,n){var r=n(10);e.exports=(r.default||r).template({compiler:[8,">= 4.3.0"],main:function(e,t,n,r,o){return'<div class="dropdown-menu-region"></div>\r\n<div class="form-feedback"></div>'},useData:!0})},1359:function(e,t,n){var r=n(10);e.exports=(r.default||r).template({1:function(e,t,n,r,o){e.propertyIsEnumerable;var i,l=null!=t?t:e.nullContext||{};return(null!=(i=n.if.call(l,null!=(i=null!=t?t.options:t)?i.foundLibraries:i,{name:"if",hash:{},fn:e.program(2,o,0),inverse:e.noop,data:o}))?i:"")+"\r\n"+(null!=(i=n.if.call(l,null!=(i=null!=t?t.options:t)?i.hasAvailableLibraries:i,{name:"if",hash:{},fn:e.program(4,o,0),inverse:e.noop,data:o}))?i:"")+"\r\n"+(null!=(i=n.if.call(l,null!=(i=null!=t?t.options:t)?i.showNoFolderText:i,{name:"if",hash:{},fn:e.program(7,o,0),inverse:e.noop,data:o}))?i:"")},2:function(e,t,n,r,o){var i;e.propertyIsEnumerable;return' <div class="alert alert-info" role="alert">\r\n <p class="m-0">'+(null!=(i=(n.lang||t&&t.lang||e.hooks.helperMissing).call(null!=t?t:e.nullContext||{},"foundLibraries",{name:"lang",hash:{libraries:null!=(i=null!=t?t.options:t)?i.foundLibraries:i},data:o}))?i:"")+"</p>\r\n </div>\r\n"},4:function(e,t,n,r,o){e.propertyIsEnumerable;var i,l=null!=t?t:e.nullContext||{},a=e.hooks.helperMissing,s=e.escapeExpression,c=e.lambda;return' <span class="d-block pb-2">'+s((n.lang||t&&t.lang||a).call(l,"selectFolder",{name:"lang",hash:{},data:o}))+"</span>\r\n"+(null!=(i=n.if.call(l,null!=(i=null!=t?t.options:t)?i.hasMultipleLibraries:i,{name:"if",hash:{},fn:e.program(5,o,0),inverse:e.noop,data:o}))?i:"")+' <div class="mt-1 mb-2 library-dropdown-region"></div>\r\n\r\n <span class="'+s(c(null!=(i=null!=(i=null!=t?t.options:t)?i.styles:i)?i.header:i,t))+' folder-name">'+s((n.lang||t&&t.lang||a).call(l,"folder",{name:"lang",hash:{},data:o}))+'</span>\r\n <div class="'+s(c(null!=(i=null!=(i=null!=t?t.options:t)?i.styles:i)?i.folderSelector:i,t))+' mt-1 folder-selector-region"></div>\r\n'},5:function(e,t,n,r,o){e.propertyIsEnumerable;var i,l=e.escapeExpression;return' <span class="'+l(e.lambda(null!=(i=null!=(i=null!=t?t.options:t)?i.styles:i)?i.header:i,t))+'">'+l((n.lang||t&&t.lang||e.hooks.helperMissing).call(null!=t?t:e.nullContext||{},"library",{name:"lang",hash:{},data:o}))+"</span>\r\n"},7:function(e,t,n,r,o){e.propertyIsEnumerable;var i,l=null!=t?t:e.nullContext||{},a=e.hooks.helperMissing;return" <p>"+e.escapeExpression((n.lang||t&&t.lang||a).call(l,"noFolders1",{name:"lang",hash:{},data:o}))+"</p>\r\n <p>"+(null!=(i=(n.lang||t&&t.lang||a).call(l,"noFolders2",{name:"lang",hash:{},data:o}))?i:"")+"</p>\r\n"},9:function(e,t,n,r,o){var i;e.propertyIsEnumerable;return(null!=(i=e.lambda(null!=(i=null!=t?t.options:t)?i.spinnerEl:i,t))?i:"")+"\r\n"},compiler:[8,">= 4.3.0"],main:function(e,t,n,r,o){var i;e.propertyIsEnumerable;return null!=(i=n.if.call(null!=t?t:e.nullContext||{},null!=(i=null!=t?t.options:t)?i.dataFetched:i,{name:"if",hash:{},fn:e.program(1,o,0),inverse:e.program(9,o,0),data:o}))?i:""},useData:!0})},1360:function(e,t,n){e.exports={header:"_1tdTv"}},1463:function(e,t,n){"use strict";n.r(t),n.d(t,"AddToLibraryView",(function(){return L}));var r=n(1),o=n(2),i=n(5),l=n(244),a=n(1068),s=n(282),c=n(9),u=n(58),f=n(1051),p=n(12),d=n(0),h=n(3),y=n(136),b=n(1128),m=n(1359),g=n.n(m),v=n(1360),w=n.n(v);function k(e){return(k="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}function S(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}function O(e,t){return(O=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,r=C(e);if(t){var o=C(this).constructor;n=Reflect.construct(r,arguments,o)}else n=r.apply(this,arguments);return T(this,n)}}function T(e,t){return!t||"object"!==k(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 C(e){return(C=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)})(e)}var L=function(e){!function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),t&&O(e,t)}(v,e);var t,n,o,m=x(v);function v(e){return function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,v),m.call(this,e)}return t=v,(n=[{key:"initialize",value:function(){this.videoDataService=i.a.getInstance(d.g.Video,this),this.bindListeners()}},{key:"regions",value:function(){return{libraryDropdown:".library-dropdown-region",folderSelector:".folder-selector-region"}}},{key:"events",value:function(){return{submit:"onSubmit"}}},{key:"bindListeners",value:function(){this.listenTo("".concat(this.channelName,":library"),"library:selected",this.onLibrarySelected),this.listenTo("".concat(this.channelName,":folder"),"folder:selected",this.onFolderSelected),this.listenTo(d.e.VIDEO,"".concat(d.f.VIDEOS,":").concat(this.options.videoId,":sync"),this.render),this.listenTo(d.e.VIDEO,"get:video:categories:libraries:".concat(this.options.videoId,":sync"),this.render)}},{key:"onSubmit",value:function(e){e&&e.preventDefault(),this.spinnerModel.set(l.c.ShowSpinner,!0),this.addToLibrary()}},{key:"onLibrarySelected",value:function(e){this.spinnerModel.set(l.c.Disabled,!0),p.f.setSelected(this.libraryTreeKey,e.get("id"),this.customLibraries),this.renderFolderSelector()}},{key:"onFolderSelected",value:function(e){this.spinnerModel.set(l.c.Disabled,!1),p.f.setSelected(this.folderTreeKey,e,this.customLibraries)}},{key:"getVideosCustomLibraryNames",value:function(){if(!this.dataFetched())return null;var e=this.getVideoCustomLibraries();if(!e.length)return null;var t=r.map(e,(function(e){return"<strong>".concat(p.v.escapeExpression(e),"</strong>")}));if(1===t.length)return t[0];var n=h.a.getPhrase(this.lang,"and");return"".concat(t.slice(0,-1).join(", ")," ").concat(n," ").concat(t.slice(-1))}},{key:"addToLibrary",value:function(){var e,t,n=this,o=p.f.getSelected(this.folderTreeKey,this.customLibraries),i=o.get("id"),l=p.f.getSelected(this.libraryTreeKey,this.customLibraries).get("id"),a=this.model.libraries.filter((function(e){return e.get("type")===u.a.HostedLibrary})),s=this.model.categories;s&&s.last()&&(e=s.last().get("id")),a&&a.length&&(t=r.last(a).get("id"));var f={masterObjectId:this.options.videoId,masterObjectType:c.g.Video,metadata:{sourceLibraryId:t,sourceCategoryId:e,destinationLibraryId:l,destinationCategoryId:i}};this.videoDataService.addVideoToCustomLibrary(f,this.model,o,(function(){n.triggerMethod("hide")}))}},{key:"getSubmitBtnTooltipOptions",value:function(){if(this.spinnerModel.get(l.c.Disabled)&&this.hasAvailableLibraries())return{title:h.a.getPhrase(this.lang,"heading")}}},{key:"getAvailableCustomLibraries",value:function(){if(!this.dataFetched())return null;var e=this.customLibraries.clone();e.remove(this.model.libraries.filter((function(e){return e.get("type")===u.a.CustomLibrary})));var t=e.filter((function(e){return 0===e.children.length}));return e.remove(t),e}},{key:"hasAvailableLibraries",value:function(){if(!this.customLibraries)return!1;var e=this.getAvailableCustomLibraries();return e&&e.length>0}},{key:"hasFolders",value:function(){return!!this.customLibraries&&!!this.customLibraries.find((function(e){return!!e.get("children").length}))}},{key:"getVideoCustomLibraries",value:function(){if(!this.model||!this.model.libraries||!this.model.libraries.length)return null;var e=this.model.libraries.filter((function(e){return e.get("type")===u.a.CustomLibrary}));return r.map(e,(function(e){return e.get("name")}))}},{key:"dataFetched",value:function(){return!!this.model}},{key:"renderLibraryDropdown",value:function(){if(this.customLibraries.length<=1)this.renderFolderSelector();else{var e=p.f.getSelected(this.libraryTreeKey,this.customLibraries),t=this.getUI("folderName");this.$(t).hide(),this.showChildView("libraryDropdown",new b.a({currentLibraryId:e?e.get("id"):null,collection:this.getAvailableCustomLibraries(),channelName:"".concat(this.channelName,":library")}))}}},{key:"renderFolderSelector",value:function(){var e=this.getAvailableCustomLibraries();1===e.length&&p.f.setSelected(this.libraryTreeKey,e.first().get("id"),e);var t=p.f.getSelected(this.libraryTreeKey,e),n=t.get("children")&&!!t.get("children").length,r=this.getUI("folderName");t&&n&&this.$(r).show(),this.showChildView("folderSelector",new a.a({collection:t.children,channelName:"".concat(this.channelName,":folder"),folderTreeKey:this.folderTreeKey}))}},{key:"onBeforeRender",value:function(){this.model=this.videoDataService.getVideo(this.options.videoId)}},{key:"viewOptions",value:function(){var e;return{styles:w.a,foundLibraries:this.getVideosCustomLibraryNames(),hasAvailableLibraries:this.hasAvailableLibraries(),hasMultipleLibraries:(null===(e=this.customLibraries)||void 0===e?void 0:e.length)>1,dataFetched:this.dataFetched(),spinnerEl:p.q.getSpinner({size:p.r.Large,extraClasses:"mx-auto"}),showNoFolderText:!this.hasFolders()}}},{key:"onRender",value:function(){this.dataFetched()&&this.hasAvailableLibraries()&&this.renderLibraryDropdown()}},{key:"name",get:function(){return"AddToLibraryView"}},{key:"title",get:function(){return h.a.getPhrase(this.lang,"title")}},{key:"lang",get:function(){return"contentUpdates.addToLibrary"}},{key:"tagName",get:function(){return"form"}},{key:"className",get:function(){return"form-group"}},{key:"appLinks",get:function(){return{".library-editor-applink":{application:d.b.LIBRARY_EDITOR,action:d.a.LibraryEditor.HOME}}}},{key:"folderTreeKey",get:function(){return"folderselect:".concat(this.cid)}},{key:"libraryTreeKey",get:function(){return"libraryselect:".concat(this.cid)}},{key:"channelName",get:function(){return p.k.generateUniqueChannelName(this)}},{key:"template",get:function(){return g.a}},{key:"behaviors",get:function(){var e=this;return[{behaviorClass:s.e,title:h.a.getPhrase(this.lang,"submitTooltip"),size:"modal-md",spinnerButtonOptions:{channelName:this.channelName,model:this.spinnerModel=new f.a,buttonText:h.a.getPhrase(this.lang,"addBtn"),tooltip:function(){return e.getSubmitBtnTooltipOptions()},onClick:function(t){return e.onSubmit(t)}}}]}},{key:"elements",get:function(){return{folderName:".folder-name"}}},{key:"requiredResources",get:function(){return{customLibraries:y.b.libraries}}}])&&S(t.prototype,n),o&&S(t,o),v}(o.a.View)}}]);
1
+ (window.webpackJsonp_clickview_library_editor=window.webpackJsonp_clickview_library_editor||[]).push([[32],{1051:function(e,t,n){"use strict";n.d(t,"a",(function(){return p}));var r=n(2),o=n(243);function i(e){return(i="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}function l(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function a(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}function s(e,t){return(s=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e})(e,t)}function c(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,r=f(e);if(t){var o=f(this).constructor;n=Reflect.construct(r,arguments,o)}else n=r.apply(this,arguments);return u(this,n)}}function u(e,t){return!t||"object"!==i(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 f(e){return(f=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)})(e)}var p=function(e){!function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),t&&s(e,t)}(u,e);var t,n,r,i=c(u);function u(){return l(this,u),i.apply(this,arguments)}return t=u,(n=[{key:"defaults",value:function(){return e={},t=o.c.Disabled,n=!0,t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e;var e,t,n}}])&&a(t.prototype,n),r&&a(t,r),u}(r.a.Model)},1063:function(e,t,n){"use strict";n.d(t,"a",(function(){return p}));var r=n(1),o=n(2),i=n(287);function l(e){return(l="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 a(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}function s(e,t){return(s=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e})(e,t)}function c(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,r=f(e);if(t){var o=f(this).constructor;n=Reflect.construct(r,arguments,o)}else n=r.apply(this,arguments);return u(this,n)}}function u(e,t){return!t||"object"!==l(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 f(e){return(f=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)})(e)}var p=function(e){!function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),t&&s(e,t)}(u,e);var t,n,o,l=c(u);function u(e){return function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,u),l.call(this,e)}return t=u,(n=[{key:"initialize",value:function(){this.listenTo(this.options.channelName,"center:dropdown",this.centerSelectedItem)}},{key:"getExtraClasses",value:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t=e.alignment,n=void 0===t?"left":t,r=e.extraClasses,o="dropdown-menu-".concat(n);return r&&(o="".concat(o," ").concat(r)),o}},{key:"centerSelectedItem",value:function(){var e=this.$el.find(".active");if(e.length){var t=this.$el.scrollTop()+e.position().top,n=.5*this.$el.height()+.5*e.height();this.$el.scrollTop(t-n)}}},{key:"name",get:function(){return"DropdownCollectionComponent"}},{key:"className",get:function(){return"dropdown-menu items-viewpart ".concat(this.getExtraClasses(this.options.displayOptions))}},{key:"attributes",get:function(){return{"aria-labelledby":"dropdownSelector"}}},{key:"childView",get:function(){return i.a}},{key:"childViewOptions",get:function(){var e={channelName:this.options.channelName,analyticsHelper:this.options.analyticsHelper};return r.extend(e,this.options.childOptions)}}])&&a(t.prototype,n),o&&a(t,o),u}(o.a.ComponentCollection)},1068:function(e,t,n){"use strict";n.d(t,"a",(function(){return g}));var r=n(6),o=n(2),i=n(3),l=n(1082),a=n(12),s=n(1069),c=n.n(s),u=n(1070),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 r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}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,r=m(e);if(t){var o=m(this).constructor;n=Reflect.construct(r,arguments,o)}else n=r.apply(this,arguments);return b(this,n)}}function b(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 m(e){return(m=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)})(e)}var g=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,o,s=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),s.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(),r.Radio.channel(this.options.channelName).trigger("create:folder:clicked")}},{key:"setButtonText",value:function(e,t){if(e&&!t){var n=e.get("name");this.getUI("button").text(n)}else{var r=a.f.getSelected(this.options.folderTreeKey,this.collection),o=r?r.get("name"):i.a.getPhrase(this.lang,"button");this.getUI("button").text(o)}}},{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),o&&d(t,o),u}(o.a.Component)},1069:function(e,t,n){var r=n(10);e.exports=(r.default||r).template({1:function(e,t,n,r,o){e.propertyIsEnumerable;var i,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:o}))+"</button>\r\n"},compiler:[8,">= 4.3.0"],main:function(e,t,n,r,o){e.propertyIsEnumerable;var i,l=e.lambda,a=e.escapeExpression;return'<button\r\n class="'+a(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='+a(l(null!=(i=null!=t?t.options:t)?i.name:i,t))+"\r\n>"+a(l(null!=(i=null!=t?t.options:t)?i.buttonText:i,t))+'</button>\r\n<div class="dropdown-menu '+a(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,o,0),inverse:e.noop,data:o}))?i:"")+'</div>\r\n<div class="form-feedback"></div>'},useData:!0})},1070:function(e,t,n){e.exports={selectBtn:"_2TTgs",list:"_3wN7o",selector:"_3Xf1P",customItem:"_199PI"}},1105:function(e,t,n){"use strict";n.d(t,"a",(function(){return g}));var r=n(1),o=n(6),i=n(2),l=n(1063),a=n(12),s=n(1106),c=n.n(s),u=n(1107),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 r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}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,r=m(e);if(t){var o=m(this).constructor;n=Reflect.construct(r,arguments,o)}else n=r.apply(this,arguments);return b(this,n)}}function b(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 m(e){return(m=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)})(e)}var g=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,s=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=s.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(){o.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),o.Radio.channel(this.options.channelName).trigger("center:dropdown")}},{key:"onArrowKeyDown",value:function(e){a.c.getSelected(this.collection)?this.optionStep=1:this.optionStep=0;var t=this.getNextModel(e.keyCode);for(t||(a.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)||(a.c.setSelected(e.get("id"),this.collection),this.setModel(),this.getUI("dropdownToggle").text(this.getButtonText()),o.Radio.channel(this.options.channelName).trigger("select:option:selected",e))}},{key:"setModel",value:function(){this.model=a.c.getSelected(this.collection)}},{key:"getNextModel",value:function(e){var t,n=a.c.getSelected(this.collection)||this.collection.first(),r=this.collection.indexOf(n);return(t=38===e?this.collection.at(r-this.optionStep):this.collection.at(r+this.optionStep))||(a.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=r.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=r.filter(this.collection.models,(function(n){return n.get(t.options.displayProperty).toLowerCase().slice(0,1)===e}));if(n.length>1){var o=n[this.sameCharIndex];return o||(o=r.first(n),this.sameCharIndex=0),this.sameCharIndex++,o}return r.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){var t;if(e.get("divider"))return!0;if(!r.isFunction(this.options.childOptions.isDisabled))return!1;for(var n=arguments.length,o=new Array(n>1?n-1:0),i=1;i<n;i++)o[i-1]=arguments[i];return(t=this.options.childOptions.isDisabled).call.apply(t,[this,e].concat(o))}},{key:"getButtonText",value:function(){if(this.options.disabled)return this.options.noOptionsText;var e=a.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:r.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)},1106:function(e,t,n){var r=n(10);e.exports=(r.default||r).template({1:function(e,t,n,r,o){var i;e.propertyIsEnumerable;return 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,r,o){return" disabled"},compiler:[8,">= 4.3.0"],main:function(e,t,n,r,o){e.propertyIsEnumerable;var i,l=e.lambda,a=e.escapeExpression,s=null!=t?t:e.nullContext||{};return'<button \r\n class="dropdown-toggle form-control btn-block text-left position-relative '+a(l(null!=(i=null!=(i=null!=t?t.options:t)?i.styles:i)?i.selectButton:i,t))+" "+(null!=(i=n.if.call(s,null!=(i=null!=t?t.options:t)?i.disabled:i,{name:"if",hash:{},fn:e.program(1,o,0),inverse:e.noop,data:o}))?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(s,null!=(i=null!=t?t.options:t)?i.disabled:i,{name:"if",hash:{},fn:e.program(3,o,0),inverse:e.noop,data:o}))?i:"")+' \r\n name="'+a(l(null!=(i=null!=t?t.options:t)?i.inputName:i,t))+'"\r\n >\r\n '+a(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})},1107:function(e,t,n){e.exports={dropdownMenu:"_2RaQu",selectButton:"_2xGqi",disabled:"_15kWr"}},1128:function(e,t,n){"use strict";n.d(t,"a",(function(){return g}));var r=n(1),o=n(6),i=n(2),l=n(3),a=n(42),s=n(1105),c=n(12),u=n(1129),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 r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}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,r=m(e);if(t){var o=m(this).constructor;n=Reflect.construct(r,arguments,o)}else n=r.apply(this,arguments);return b(this,n)}}function b(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 m(e){return(m=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)})(e)}var g=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){o.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(r.contains(e,n.get("id")+""))return!0}}},{key:"onRender",value:function(){this.showChildView("dropdown",new s.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:a.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)},1129:function(e,t,n){var r=n(10);e.exports=(r.default||r).template({compiler:[8,">= 4.3.0"],main:function(e,t,n,r,o){return'<div class="dropdown-menu-region"></div>\r\n<div class="form-feedback"></div>'},useData:!0})},1360:function(e,t,n){var r=n(10);e.exports=(r.default||r).template({1:function(e,t,n,r,o){e.propertyIsEnumerable;var i,l=null!=t?t:e.nullContext||{};return(null!=(i=n.if.call(l,null!=(i=null!=t?t.options:t)?i.foundLibraries:i,{name:"if",hash:{},fn:e.program(2,o,0),inverse:e.noop,data:o}))?i:"")+"\r\n"+(null!=(i=n.if.call(l,null!=(i=null!=t?t.options:t)?i.hasAvailableLibraries:i,{name:"if",hash:{},fn:e.program(4,o,0),inverse:e.noop,data:o}))?i:"")+"\r\n"+(null!=(i=n.if.call(l,null!=(i=null!=t?t.options:t)?i.showNoFolderText:i,{name:"if",hash:{},fn:e.program(7,o,0),inverse:e.noop,data:o}))?i:"")},2:function(e,t,n,r,o){var i;e.propertyIsEnumerable;return' <div class="alert alert-info" role="alert">\r\n <p class="m-0">'+(null!=(i=(n.lang||t&&t.lang||e.hooks.helperMissing).call(null!=t?t:e.nullContext||{},"foundLibraries",{name:"lang",hash:{libraries:null!=(i=null!=t?t.options:t)?i.foundLibraries:i},data:o}))?i:"")+"</p>\r\n </div>\r\n"},4:function(e,t,n,r,o){e.propertyIsEnumerable;var i,l=null!=t?t:e.nullContext||{},a=e.hooks.helperMissing,s=e.escapeExpression,c=e.lambda;return' <span class="d-block pb-2">'+s((n.lang||t&&t.lang||a).call(l,"selectFolder",{name:"lang",hash:{},data:o}))+"</span>\r\n"+(null!=(i=n.if.call(l,null!=(i=null!=t?t.options:t)?i.hasMultipleLibraries:i,{name:"if",hash:{},fn:e.program(5,o,0),inverse:e.noop,data:o}))?i:"")+' <div class="mt-1 mb-2 library-dropdown-region"></div>\r\n\r\n <span class="'+s(c(null!=(i=null!=(i=null!=t?t.options:t)?i.styles:i)?i.header:i,t))+' folder-name">'+s((n.lang||t&&t.lang||a).call(l,"folder",{name:"lang",hash:{},data:o}))+'</span>\r\n <div class="'+s(c(null!=(i=null!=(i=null!=t?t.options:t)?i.styles:i)?i.folderSelector:i,t))+' mt-1 folder-selector-region"></div>\r\n'},5:function(e,t,n,r,o){e.propertyIsEnumerable;var i,l=e.escapeExpression;return' <span class="'+l(e.lambda(null!=(i=null!=(i=null!=t?t.options:t)?i.styles:i)?i.header:i,t))+'">'+l((n.lang||t&&t.lang||e.hooks.helperMissing).call(null!=t?t:e.nullContext||{},"library",{name:"lang",hash:{},data:o}))+"</span>\r\n"},7:function(e,t,n,r,o){e.propertyIsEnumerable;var i,l=null!=t?t:e.nullContext||{},a=e.hooks.helperMissing;return" <p>"+e.escapeExpression((n.lang||t&&t.lang||a).call(l,"noFolders1",{name:"lang",hash:{},data:o}))+"</p>\r\n <p>"+(null!=(i=(n.lang||t&&t.lang||a).call(l,"noFolders2",{name:"lang",hash:{},data:o}))?i:"")+"</p>\r\n"},9:function(e,t,n,r,o){var i;e.propertyIsEnumerable;return(null!=(i=e.lambda(null!=(i=null!=t?t.options:t)?i.spinnerEl:i,t))?i:"")+"\r\n"},compiler:[8,">= 4.3.0"],main:function(e,t,n,r,o){var i;e.propertyIsEnumerable;return null!=(i=n.if.call(null!=t?t:e.nullContext||{},null!=(i=null!=t?t.options:t)?i.dataFetched:i,{name:"if",hash:{},fn:e.program(1,o,0),inverse:e.program(9,o,0),data:o}))?i:""},useData:!0})},1361:function(e,t,n){e.exports={header:"_1tdTv"}},1464:function(e,t,n){"use strict";n.r(t),n.d(t,"AddToLibraryView",(function(){return L}));var r=n(1),o=n(2),i=n(5),l=n(243),a=n(1068),s=n(282),c=n(9),u=n(58),f=n(1051),p=n(12),d=n(0),h=n(3),y=n(136),b=n(1128),m=n(1360),g=n.n(m),v=n(1361),w=n.n(v);function k(e){return(k="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}function S(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}function O(e,t){return(O=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,r=C(e);if(t){var o=C(this).constructor;n=Reflect.construct(r,arguments,o)}else n=r.apply(this,arguments);return T(this,n)}}function T(e,t){return!t||"object"!==k(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 C(e){return(C=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)})(e)}var L=function(e){!function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),t&&O(e,t)}(v,e);var t,n,o,m=x(v);function v(e){return function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,v),m.call(this,e)}return t=v,(n=[{key:"initialize",value:function(){this.videoDataService=i.a.getInstance(d.g.Video,this),this.bindListeners()}},{key:"regions",value:function(){return{libraryDropdown:".library-dropdown-region",folderSelector:".folder-selector-region"}}},{key:"events",value:function(){return{submit:"onSubmit"}}},{key:"bindListeners",value:function(){this.listenTo("".concat(this.channelName,":library"),"library:selected",this.onLibrarySelected),this.listenTo("".concat(this.channelName,":folder"),"folder:selected",this.onFolderSelected),this.listenTo(d.e.VIDEO,"".concat(d.f.VIDEOS,":").concat(this.options.videoId,":sync"),this.render),this.listenTo(d.e.VIDEO,"get:video:categories:libraries:".concat(this.options.videoId,":sync"),this.render)}},{key:"onSubmit",value:function(e){e&&e.preventDefault(),this.spinnerModel.set(l.c.ShowSpinner,!0),this.addToLibrary()}},{key:"onLibrarySelected",value:function(e){this.spinnerModel.set(l.c.Disabled,!0),p.f.setSelected(this.libraryTreeKey,e.get("id"),this.customLibraries),this.renderFolderSelector()}},{key:"onFolderSelected",value:function(e){this.spinnerModel.set(l.c.Disabled,!1),p.f.setSelected(this.folderTreeKey,e,this.customLibraries)}},{key:"getVideosCustomLibraryNames",value:function(){if(!this.dataFetched())return null;var e=this.getVideoCustomLibraries();if(!e.length)return null;var t=r.map(e,(function(e){return"<strong>".concat(p.v.escapeExpression(e),"</strong>")}));if(1===t.length)return t[0];var n=h.a.getPhrase(this.lang,"and");return"".concat(t.slice(0,-1).join(", ")," ").concat(n," ").concat(t.slice(-1))}},{key:"addToLibrary",value:function(){var e,t,n=this,o=p.f.getSelected(this.folderTreeKey,this.customLibraries),i=o.get("id"),l=p.f.getSelected(this.libraryTreeKey,this.customLibraries).get("id"),a=this.model.libraries.filter((function(e){return e.get("type")===u.a.HostedLibrary})),s=this.model.categories;s&&s.last()&&(e=s.last().get("id")),a&&a.length&&(t=r.last(a).get("id"));var f={masterObjectId:this.options.videoId,masterObjectType:c.g.Video,metadata:{sourceLibraryId:t,sourceCategoryId:e,destinationLibraryId:l,destinationCategoryId:i}};this.videoDataService.addVideoToCustomLibrary(f,this.model,o,(function(){n.triggerMethod("hide")}))}},{key:"getSubmitBtnTooltipOptions",value:function(){if(this.spinnerModel.get(l.c.Disabled)&&this.hasAvailableLibraries())return{title:h.a.getPhrase(this.lang,"heading")}}},{key:"getAvailableCustomLibraries",value:function(){if(!this.dataFetched())return null;var e=this.customLibraries.clone();e.remove(this.model.libraries.filter((function(e){return e.get("type")===u.a.CustomLibrary})));var t=e.filter((function(e){return 0===e.children.length}));return e.remove(t),e}},{key:"hasAvailableLibraries",value:function(){if(!this.customLibraries)return!1;var e=this.getAvailableCustomLibraries();return e&&e.length>0}},{key:"hasFolders",value:function(){return!!this.customLibraries&&!!this.customLibraries.find((function(e){return!!e.get("children").length}))}},{key:"getVideoCustomLibraries",value:function(){if(!this.model||!this.model.libraries||!this.model.libraries.length)return null;var e=this.model.libraries.filter((function(e){return e.get("type")===u.a.CustomLibrary}));return r.map(e,(function(e){return e.get("name")}))}},{key:"dataFetched",value:function(){return!!this.model}},{key:"renderLibraryDropdown",value:function(){if(this.customLibraries.length<=1)this.renderFolderSelector();else{var e=p.f.getSelected(this.libraryTreeKey,this.customLibraries),t=this.getUI("folderName");this.$(t).hide(),this.showChildView("libraryDropdown",new b.a({currentLibraryId:e?e.get("id"):null,collection:this.getAvailableCustomLibraries(),channelName:"".concat(this.channelName,":library")}))}}},{key:"renderFolderSelector",value:function(){var e=this.getAvailableCustomLibraries();1===e.length&&p.f.setSelected(this.libraryTreeKey,e.first().get("id"),e);var t=p.f.getSelected(this.libraryTreeKey,e),n=t.get("children")&&!!t.get("children").length,r=this.getUI("folderName");t&&n&&this.$(r).show(),this.showChildView("folderSelector",new a.a({collection:t.children,channelName:"".concat(this.channelName,":folder"),folderTreeKey:this.folderTreeKey}))}},{key:"onBeforeRender",value:function(){this.model=this.videoDataService.getVideo(this.options.videoId)}},{key:"viewOptions",value:function(){var e;return{styles:w.a,foundLibraries:this.getVideosCustomLibraryNames(),hasAvailableLibraries:this.hasAvailableLibraries(),hasMultipleLibraries:(null===(e=this.customLibraries)||void 0===e?void 0:e.length)>1,dataFetched:this.dataFetched(),spinnerEl:p.q.getSpinner({size:p.r.Large,extraClasses:"mx-auto"}),showNoFolderText:!this.hasFolders()}}},{key:"onRender",value:function(){this.dataFetched()&&this.hasAvailableLibraries()&&this.renderLibraryDropdown()}},{key:"name",get:function(){return"AddToLibraryView"}},{key:"title",get:function(){return h.a.getPhrase(this.lang,"title")}},{key:"lang",get:function(){return"contentUpdates.addToLibrary"}},{key:"tagName",get:function(){return"form"}},{key:"className",get:function(){return"form-group"}},{key:"appLinks",get:function(){return{".library-editor-applink":{application:d.b.LIBRARY_EDITOR,action:d.a.LibraryEditor.HOME}}}},{key:"folderTreeKey",get:function(){return"folderselect:".concat(this.cid)}},{key:"libraryTreeKey",get:function(){return"libraryselect:".concat(this.cid)}},{key:"channelName",get:function(){return p.k.generateUniqueChannelName(this)}},{key:"template",get:function(){return g.a}},{key:"behaviors",get:function(){var e=this;return[{behaviorClass:s.e,title:h.a.getPhrase(this.lang,"submitTooltip"),size:"modal-md",spinnerButtonOptions:{channelName:this.channelName,model:this.spinnerModel=new f.a,buttonText:h.a.getPhrase(this.lang,"addBtn"),tooltip:function(){return e.getSubmitBtnTooltipOptions()},onClick:function(t){return e.onSubmit(t)}}}]}},{key:"elements",get:function(){return{folderName:".folder-name"}}},{key:"requiredResources",get:function(){return{customLibraries:y.b.libraries}}}])&&S(t.prototype,n),o&&S(t,o),v}(o.a.View)}}]);