@clickview/library-editor 1.1.26 → 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 (655) hide show
  1. package/.eslintrc.json +3 -0
  2. package/dist/css/1.chunk.css.map +1 -1
  3. package/dist/css/10.chunk.css.map +1 -1
  4. package/dist/css/11.chunk.css.map +1 -1
  5. package/dist/css/12.chunk.css.map +1 -1
  6. package/dist/css/13.chunk.css.map +1 -1
  7. package/dist/css/14.chunk.css.map +1 -1
  8. package/dist/css/16.chunk.css.map +1 -1
  9. package/dist/css/17.chunk.css.map +1 -1
  10. package/dist/css/18.chunk.css.map +1 -1
  11. package/dist/css/2.chunk.css.map +1 -1
  12. package/dist/css/21.chunk.css.map +1 -1
  13. package/dist/css/22.chunk.css.map +1 -1
  14. package/dist/css/23.chunk.css +5 -5
  15. package/dist/css/23.chunk.css.map +1 -1
  16. package/dist/css/25.chunk.css +2 -2
  17. package/dist/css/25.chunk.css.map +1 -1
  18. package/dist/css/26.chunk.css.map +1 -1
  19. package/dist/css/28.chunk.css.map +1 -1
  20. package/dist/css/29.chunk.css.map +1 -1
  21. package/dist/css/3.chunk.css.map +1 -1
  22. package/dist/css/30.chunk.css.map +1 -1
  23. package/dist/css/31.chunk.css.map +1 -1
  24. package/dist/css/32.chunk.css.map +1 -1
  25. package/dist/css/33.chunk.css.map +1 -1
  26. package/dist/css/34.chunk.css.map +1 -1
  27. package/dist/css/35.chunk.css.map +1 -1
  28. package/dist/css/36.chunk.css.map +1 -1
  29. package/dist/css/37.chunk.css.map +1 -1
  30. package/dist/css/38.chunk.css.map +1 -1
  31. package/dist/css/40.chunk.css.map +1 -1
  32. package/dist/css/41.chunk.css.map +1 -1
  33. package/dist/css/42.chunk.css.map +1 -1
  34. package/dist/css/43.chunk.css.map +1 -1
  35. package/dist/css/44.chunk.css.map +1 -1
  36. package/dist/css/45.chunk.css.map +1 -1
  37. package/dist/css/46.chunk.css.map +1 -1
  38. package/dist/css/47.chunk.css.map +1 -1
  39. package/dist/css/48.chunk.css.map +1 -1
  40. package/dist/css/49.chunk.css.map +1 -1
  41. package/dist/css/50.chunk.css.map +1 -1
  42. package/dist/css/51.chunk.css.map +1 -1
  43. package/dist/css/52.chunk.css.map +1 -1
  44. package/dist/css/55.chunk.css.map +1 -1
  45. package/dist/css/56.chunk.css.map +1 -1
  46. package/dist/css/58.chunk.css.map +1 -1
  47. package/dist/css/59.chunk.css.map +1 -1
  48. package/dist/css/6.chunk.css.map +1 -1
  49. package/dist/css/60.chunk.css.map +1 -1
  50. package/dist/css/62.chunk.css.map +1 -1
  51. package/dist/css/63.chunk.css.map +1 -1
  52. package/dist/css/67.chunk.css.map +1 -1
  53. package/dist/css/68.chunk.css.map +1 -1
  54. package/dist/css/69.chunk.css.map +1 -1
  55. package/dist/css/7.chunk.css.map +1 -1
  56. package/dist/css/70.chunk.css.map +1 -1
  57. package/dist/css/71.chunk.css.map +1 -1
  58. package/dist/css/72.chunk.css.map +1 -1
  59. package/dist/css/73.chunk.css.map +1 -1
  60. package/dist/css/74.chunk.css.map +1 -1
  61. package/dist/css/75.chunk.css.map +1 -1
  62. package/dist/css/76.chunk.css.map +1 -1
  63. package/dist/css/8.chunk.css.map +1 -1
  64. package/dist/css/library-editor-app.css +4 -4
  65. package/dist/css/library-editor-app.css.map +1 -1
  66. package/dist/en.json +1 -1
  67. package/dist/libs/analytics/src/clients/CollectionApiClient.d.ts +1 -3
  68. package/dist/libs/analytics/src/enrichers/BaseAnalyticsEnricher.d.ts +1 -1
  69. package/dist/libs/analytics/src/enrichers/UserDataEnricher.d.ts +1 -1
  70. package/dist/libs/analytics/src/interfaces/AnalyticsTypes.d.ts +9 -3
  71. package/dist/libs/analytics/src/utils/TypeHelper.d.ts +1 -1
  72. package/dist/libs/analytics/src/utils/VideoDataFormatHelper.d.ts +5 -5
  73. package/dist/libs/common/src/backbone/constants/CommonServices.d.ts +0 -1
  74. package/dist/libs/common/src/backbone/core/BaseAppRouter.d.ts +6 -2
  75. package/dist/libs/common/src/backbone/core/BaseApplication.d.ts +1 -1
  76. package/dist/libs/common/src/backbone/core/BaseBehavior.d.ts +1 -1
  77. package/dist/libs/common/src/backbone/core/BaseCollection.d.ts +1 -1
  78. package/dist/libs/common/src/backbone/core/BaseCollectionView.d.ts +1 -1
  79. package/dist/libs/common/src/backbone/core/BaseLayoutView.d.ts +1 -1
  80. package/dist/libs/common/src/backbone/core/BaseModel.d.ts +1 -1
  81. package/dist/libs/common/src/backbone/core/BaseNestedModel.d.ts +1 -1
  82. package/dist/libs/common/src/backbone/core/BaseService.d.ts +1 -1
  83. package/dist/libs/common/src/backbone/core/BaseView.d.ts +2 -2
  84. package/dist/libs/common/src/backbone/core/LayoutService.d.ts +1 -1
  85. package/dist/libs/common/src/backbone/core/ListenToRadio.d.ts +1 -1
  86. package/dist/libs/common/src/backbone/core/Shell.d.ts +1 -1
  87. package/dist/libs/common/src/backbone/core/index.d.ts +1 -1
  88. package/dist/libs/common/src/backbone/interfaces/BaseCollectionIdentifier.d.ts +2 -1
  89. package/dist/libs/common/src/backbone/interfaces/DataProvider.d.ts +1 -1
  90. package/dist/libs/common/src/backbone/interfaces/StickitBinding.d.ts +1 -1
  91. package/dist/libs/common/src/backbone/services/LanguageService.d.ts +1 -1
  92. package/dist/libs/common/src/backbone/services/data-providers/AjaxDataProvider.d.ts +1 -1
  93. package/dist/libs/common/src/backbone/services/data-providers/SignalRDataProvider.d.ts +2 -2
  94. package/dist/libs/common/src/backbone/utils/FunctionHelper.d.ts +3 -3
  95. package/dist/libs/common/src/react/utils/FetchHelper.d.ts +1 -1
  96. package/dist/libs/shared/src/apps/notifications/views/popover/NotificationsPopoverView.d.ts +2 -2
  97. package/dist/libs/shared/src/apps/search/components/instant-search/series/SeriesSearchResultComponent.d.ts +5 -0
  98. package/dist/libs/shared/src/apps/search/enums/SearchQueryType.d.ts +1 -1
  99. package/dist/libs/shared/src/apps/search/utils/InstantSearchHelper.d.ts +5 -5
  100. package/dist/libs/shared/src/apps/search/utils/TypeaheadHelper.d.ts +24 -24
  101. package/dist/libs/shared/src/apps/search/views/search-bar/SearchBarView.d.ts +8 -5
  102. package/dist/libs/shared/src/apps/upload/errors/file-type/FileTypeError.d.ts +1 -1
  103. package/dist/libs/shared/src/constants/BootstrapKeys.d.ts +2 -0
  104. package/dist/libs/shared/src/enums/MediaQueries.d.ts +3 -1
  105. package/dist/libs/shared/src/enums/ObjectStatus.d.ts +5 -0
  106. package/dist/libs/shared/src/enums/PlayerMediaType.d.ts +5 -0
  107. package/dist/libs/shared/src/enums/ResourceFileType.d.ts +9 -0
  108. package/dist/libs/shared/src/enums/SettingName.d.ts +0 -1
  109. package/dist/libs/shared/src/enums/UserGroup.d.ts +5 -0
  110. package/dist/libs/shared/src/enums/WidgetContents.d.ts +2 -1
  111. package/dist/libs/shared/src/images/svg/ImportedSvgs.d.ts +3 -1
  112. package/dist/libs/shared/src/images/svg/actions/index.d.ts +3 -1
  113. package/dist/libs/shared/src/interfaces/app-variables/BaseSearchAppVariables.d.ts +1 -0
  114. package/dist/libs/shared/src/interfaces/collections/ClassificationCollection.d.ts +4 -0
  115. package/dist/libs/shared/src/interfaces/collections/ClassroomCollection.d.ts +4 -0
  116. package/dist/libs/shared/src/interfaces/collections/ClassroomGroupCollection.d.ts +4 -0
  117. package/dist/libs/shared/src/interfaces/collections/InteractiveCollection.d.ts +2 -2
  118. package/dist/libs/shared/src/interfaces/collections/index.d.ts +4 -0
  119. package/dist/libs/shared/src/interfaces/models/Classroom.d.ts +4 -0
  120. package/dist/libs/shared/src/interfaces/models/ClassroomGroup.d.ts +18 -0
  121. package/dist/libs/shared/src/interfaces/models/Clip.d.ts +4 -3
  122. package/dist/libs/shared/src/interfaces/models/Config.d.ts +2 -0
  123. package/dist/libs/shared/src/interfaces/models/Curriculum.d.ts +4 -0
  124. package/dist/libs/shared/src/interfaces/models/Glance.d.ts +2 -0
  125. package/dist/libs/shared/src/interfaces/models/InteractiveMetadata.d.ts +14 -0
  126. package/dist/libs/shared/src/interfaces/models/Link.d.ts +1 -0
  127. package/dist/libs/shared/src/interfaces/models/PlayerViewKey.d.ts +3 -0
  128. package/dist/libs/shared/src/interfaces/models/Resource.d.ts +11 -3
  129. package/dist/libs/shared/src/interfaces/models/Thumbnail.d.ts +3 -0
  130. package/dist/libs/shared/src/interfaces/models/User.d.ts +10 -1
  131. package/dist/libs/shared/src/interfaces/models/Video.d.ts +6 -2
  132. package/dist/libs/shared/src/interfaces/models/VideoHistory.d.ts +4 -1
  133. package/dist/libs/shared/src/interfaces/models/Widget.d.ts +1 -1
  134. package/dist/libs/shared/src/interfaces/models/YearGroup.d.ts +5 -0
  135. package/dist/libs/shared/src/interfaces/models/index.d.ts +9 -1
  136. package/dist/libs/shared/src/interfaces/models/interactive/ActionableItem.d.ts +6 -0
  137. package/dist/libs/shared/src/interfaces/models/interactive/Interaction.d.ts +16 -0
  138. package/dist/libs/shared/src/interfaces/models/interactive/InteractionType.d.ts +7 -0
  139. package/dist/libs/shared/src/interfaces/models/interactive/InteractionTypeId.d.ts +8 -0
  140. package/dist/libs/shared/src/interfaces/models/interactive/Interactive.d.ts +7 -0
  141. package/dist/libs/shared/src/interfaces/models/interactive/Timepoint.d.ts +9 -0
  142. package/dist/libs/shared/src/interfaces/models/interactive/index.d.ts +6 -0
  143. package/dist/libs/shared/src/interfaces/models/primitives/BaseObject.d.ts +1 -0
  144. package/dist/libs/shared/src/interfaces/models/primitives/VirtualObject.d.ts +5 -0
  145. package/dist/libs/shared/src/interfaces/models/primitives/index.d.ts +1 -0
  146. package/dist/libs/shared/src/interfaces/requests/CreateOrUpdateClipRequest.d.ts +6 -0
  147. package/dist/libs/shared/src/interfaces/requests/CreateViewKeyRequest.d.ts +3 -0
  148. package/dist/libs/shared/src/interfaces/requests/UpdateVideoRequest.d.ts +5 -1
  149. package/dist/libs/shared/src/interfaces/requests/index.d.ts +5 -0
  150. package/dist/libs/shared/src/interfaces/services/BaseUserDataService.d.ts +2 -0
  151. package/dist/libs/shared/src/interfaces/services/index.d.ts +1 -0
  152. package/dist/libs/shared/src/legacy/components/thumbnail/ThumbnailComponent.d.ts +1 -1
  153. package/dist/libs/shared/src/utils/ImageHelper.d.ts +5 -4
  154. package/dist/libs/shared/src/utils/MaskHelper.d.ts +1 -1
  155. package/dist/libs/shared/src/utils/SvgHelper.d.ts +0 -1
  156. package/dist/libs/shared/src/utils/VideoDetailsHelper.d.ts +0 -9
  157. package/dist/projects/library-editor/src/app.d.ts +20 -5
  158. package/dist/projects/library-editor/src/apps/content-updates/utils/ContentUpdatesHelper.d.ts +1 -1
  159. package/dist/projects/library-editor/src/apps/library-editor/LibraryEditorApplication.d.ts +3 -3
  160. package/dist/projects/library-editor/src/apps/library-editor/components/file-uploads/FileUploadsComponentCollection.d.ts +1 -1
  161. package/dist/projects/library-editor/src/apps/library-editor/components/language-select/LanguageSelectTypeaheadHelper.d.ts +1 -2
  162. package/dist/projects/library-editor/src/apps/library-editor/components/video-resources/VideoResourcesComponent.d.ts +3 -1
  163. package/dist/projects/library-editor/src/apps/library-editor/components/video-subtitles/VideoSubtitlesComponent.d.ts +4 -1
  164. package/dist/projects/library-editor/src/apps/library-editor/enums/index.d.ts +0 -1
  165. package/dist/projects/library-editor/src/apps/library-editor/errors/index.d.ts +0 -2
  166. package/dist/projects/library-editor/src/apps/library-editor/services/VideoDataService.d.ts +2 -2
  167. package/dist/projects/library-editor/src/apps/library-editor/utils/EditVideoHelpers.d.ts +2 -2
  168. package/dist/projects/library-editor/src/apps/library-editor/utils/VideoDetailsHelper.d.ts +1 -1
  169. package/dist/projects/library-editor/src/apps/library-editor/views/edit-resources/EditResourcesView.d.ts +3 -3
  170. package/dist/projects/library-editor/src/apps/migration-wizard/MigrationWizardApplication.d.ts +1 -1
  171. package/dist/projects/library-editor/src/apps/migration-wizard/components/status-bar/StatusBarComponent.d.ts +2 -2
  172. package/dist/projects/library-editor/src/apps/migration-wizard/filters/MigrationFilters.d.ts +2 -2
  173. package/dist/projects/library-editor/src/apps/search/models/SearchAppVariables.d.ts +1 -0
  174. package/dist/projects/library-editor/src/apps/upload/UploadApplication.d.ts +2 -2
  175. package/dist/projects/library-editor/src/shared/behaviors/index.d.ts +0 -3
  176. package/dist/projects/library-editor/src/shared/behaviors/popup/PopupBehavior.d.ts +3 -3
  177. package/dist/projects/library-editor/src/shared/components/date-picker/DatePickerComponent.d.ts +2 -2
  178. package/dist/projects/library-editor/src/shared/components/dropdown/DropdownButtonComponent.d.ts +4 -4
  179. package/dist/projects/library-editor/src/shared/components/edit-video/edit-additional-info/EditAdditionalInfoComponent.d.ts +1 -1
  180. package/dist/projects/library-editor/src/shared/components/edit-video/select-rating/SelectRatingItemComponent.d.ts +1 -1
  181. package/dist/projects/library-editor/src/shared/components/image-cropper/ImageCropperComponent.d.ts +1 -1
  182. package/dist/projects/library-editor/src/shared/components/select/SelectComponent.d.ts +1 -1
  183. package/dist/projects/library-editor/src/shared/components/spinner-button/SpinnerButtonComponent.d.ts +1 -1
  184. package/dist/projects/library-editor/src/shared/components/tabs/TabsComponent.d.ts +1 -1
  185. package/dist/projects/library-editor/src/shared/components/typeahead-input/SearchTypeaheadComponent.d.ts +4 -4
  186. package/dist/projects/library-editor/src/shared/components/video-item/utils/VideoItemComponents.d.ts +1 -1
  187. package/dist/projects/library-editor/src/shared/enums/index.d.ts +0 -2
  188. package/dist/projects/library-editor/src/shared/errors/index.d.ts +0 -1
  189. package/dist/projects/library-editor/src/shared/filters/BetaAccessFilter.d.ts +1 -1
  190. package/dist/projects/library-editor/src/shared/filters/CustomerSettingsFilter.d.ts +1 -1
  191. package/dist/projects/library-editor/src/shared/filters/RoleFilter.d.ts +1 -1
  192. package/dist/projects/library-editor/src/shared/filters/VerifiedEmailFilter.d.ts +1 -1
  193. package/dist/projects/library-editor/src/shared/layouts/manage-layout/ManageLayoutView.d.ts +2 -0
  194. package/dist/projects/library-editor/src/shared/utils/PermissionsHelper.d.ts +1 -1
  195. package/dist/projects/library-editor/src/shared/utils/RatingHelper.d.ts +1 -2
  196. package/dist/projects/library-editor/src/shared/utils/VideoHelper.d.ts +1 -1
  197. package/dist/projects/library-editor/src/shared/utils/search/RawSearchHelper.d.ts +1 -1
  198. package/dist/projects/library-editor/src/shared/utils/search/raw-search-components/add-new/AddNewSuggestion.d.ts +1 -1
  199. package/dist/projects/library-editor/src/shared/views/download-video/DownloadVideoView.d.ts +0 -1
  200. package/dist/projects/library-editor/src/startup/RegisterAnalytics.d.ts +1 -1
  201. package/dist/projects/library-editor/src/startup/RegisterApplicationVariables.d.ts +1 -1
  202. package/dist/projects/library-editor/src/startup/RegisterApplications.d.ts +1 -1
  203. package/dist/projects/library-editor/src/startup/RegisterCaches.d.ts +1 -1
  204. package/dist/projects/library-editor/src/startup/RegisterDataProviders.d.ts +1 -1
  205. package/dist/projects/library-editor/src/startup/RegisterDataServices.d.ts +1 -1
  206. package/dist/projects/library-editor/src/startup/RegisterErrorHandlers.d.ts +1 -1
  207. package/dist/projects/library-editor/src/startup/RegisterHandlebarsHelpers.d.ts +1 -1
  208. package/dist/projects/library-editor/src/startup/RegisterLayouts.d.ts +1 -1
  209. package/dist/projects/library-editor/src/startup/RegisterServices.d.ts +1 -1
  210. package/dist/projects/library-editor/src/startup/RegisterViewDataExtensions.d.ts +1 -1
  211. package/dist/projects/library-editor/typings/libs/LazyLoad.d.ts +1 -1
  212. package/dist/scripts/{0-1c2bb7e28a.chunk.js → 0-e25d47c666.chunk.js} +1 -1
  213. package/dist/scripts/0.chunk.js +1 -1
  214. package/dist/scripts/0.chunk.js.map +1 -1
  215. package/dist/scripts/1-620c685eee.chunk.js +1 -0
  216. package/dist/scripts/1.chunk.js.map +1 -1
  217. package/dist/scripts/{10-31317a2d02.chunk.js → 10-3baf058564.chunk.js} +1 -1
  218. package/dist/scripts/10.chunk.js.map +1 -1
  219. package/dist/scripts/{11-039959db6c.chunk.js → 11-9f5f0c25dc.chunk.js} +1 -1
  220. package/dist/scripts/11.chunk.js.map +1 -1
  221. package/dist/scripts/{12-07999b80e0.chunk.js → 12-b460ad405e.chunk.js} +1 -1
  222. package/dist/scripts/12.chunk.js.map +1 -1
  223. package/dist/scripts/13-89b3a0aebb.chunk.js +1 -0
  224. package/dist/scripts/13.chunk.js.map +1 -1
  225. package/dist/scripts/14-670309ef33.chunk.js +1 -0
  226. package/dist/scripts/14.chunk.js.map +1 -1
  227. package/dist/scripts/15-39010184ed.chunk.js +1 -0
  228. package/dist/scripts/15.chunk.js.map +1 -1
  229. package/dist/scripts/{16-427a8933c8.chunk.js → 16-0971cabfc8.chunk.js} +1 -1
  230. package/dist/scripts/16.chunk.js.map +1 -1
  231. package/dist/scripts/{17-140fec014b.chunk.js → 17-f364868870.chunk.js} +1 -1
  232. package/dist/scripts/17.chunk.js.map +1 -1
  233. package/dist/scripts/18.chunk.js.map +1 -1
  234. package/dist/scripts/19.chunk.js.map +1 -1
  235. package/dist/scripts/{2-0c5fba8b60.chunk.js → 2-cd7f1d10b5.chunk.js} +1 -1
  236. package/dist/scripts/2.chunk.js.map +1 -1
  237. package/dist/scripts/{20-df9f6f7661.chunk.js → 20-42dc06da39.chunk.js} +1 -1
  238. package/dist/scripts/20.chunk.js.map +1 -1
  239. package/dist/scripts/{21-0b84d33cef.chunk.js → 21-05615559be.chunk.js} +1 -1
  240. package/dist/scripts/21.chunk.js.map +1 -1
  241. package/dist/scripts/{22-3b2207c8f6.chunk.js → 22-70b4c18dd2.chunk.js} +1 -1
  242. package/dist/scripts/22.chunk.js.map +1 -1
  243. package/dist/scripts/23-3166dfeef5.chunk.js +1 -0
  244. package/dist/scripts/23.chunk.js +1 -1
  245. package/dist/scripts/23.chunk.js.map +1 -1
  246. package/dist/scripts/{24-7aa9b43511.chunk.js → 24-6fbd14025b.chunk.js} +1 -1
  247. package/dist/scripts/24.chunk.js.map +1 -1
  248. package/dist/scripts/25-3d067b8b9a.chunk.js +1 -0
  249. package/dist/scripts/25.chunk.js.map +1 -1
  250. package/dist/scripts/{26-d166e3c313.chunk.js → 26-468305820a.chunk.js} +1 -1
  251. package/dist/scripts/26.chunk.js.map +1 -1
  252. package/dist/scripts/27-d03a99658e.chunk.js +1 -0
  253. package/dist/scripts/27.chunk.js +1 -1
  254. package/dist/scripts/27.chunk.js.map +1 -1
  255. package/dist/scripts/{28-738b88c816.chunk.js → 28-f3f43a3001.chunk.js} +1 -1
  256. package/dist/scripts/28.chunk.js +2 -2
  257. package/dist/scripts/28.chunk.js.map +1 -1
  258. package/dist/scripts/29-268278d2ac.chunk.js +1 -0
  259. package/dist/scripts/29.chunk.js.map +1 -1
  260. package/dist/scripts/{3-42e8af9f39.chunk.js → 3-4694b66aa5.chunk.js} +1 -1
  261. package/dist/scripts/3.chunk.js +4 -4
  262. package/dist/scripts/3.chunk.js.map +1 -1
  263. package/dist/scripts/{30-109f8ddd5c.chunk.js → 30-694b0a0d4b.chunk.js} +1 -1
  264. package/dist/scripts/30.chunk.js +2 -2
  265. package/dist/scripts/30.chunk.js.map +1 -1
  266. package/dist/scripts/{31-639090fee3.chunk.js → 31-4c542c18dc.chunk.js} +1 -1
  267. package/dist/scripts/31.chunk.js.map +1 -1
  268. package/dist/scripts/32-a1543ffe27.chunk.js +1 -0
  269. package/dist/scripts/32.chunk.js +4 -0
  270. package/dist/scripts/32.chunk.js.map +1 -1
  271. package/dist/scripts/33-9685703df6.chunk.js +1 -0
  272. package/dist/scripts/33.chunk.js +46 -33
  273. package/dist/scripts/33.chunk.js.map +1 -1
  274. package/dist/scripts/34-eb9f6709b3.chunk.js +1 -0
  275. package/dist/scripts/34.chunk.js.map +1 -1
  276. package/dist/scripts/35-1ff49137e7.chunk.js +1 -0
  277. package/dist/scripts/35.chunk.js.map +1 -1
  278. package/dist/scripts/36-9e89154ca2.chunk.js +1 -0
  279. package/dist/scripts/36.chunk.js.map +1 -1
  280. package/dist/scripts/{37-3f3a603b60.chunk.js → 37-80589d542e.chunk.js} +1 -1
  281. package/dist/scripts/37.chunk.js.map +1 -1
  282. package/dist/scripts/38-7e88534f67.chunk.js +1 -0
  283. package/dist/scripts/38.chunk.js.map +1 -1
  284. package/dist/scripts/{39-71c4bb46b2.chunk.js → 39-99824f3b64.chunk.js} +1 -1
  285. package/dist/scripts/39.chunk.js.map +1 -1
  286. package/dist/scripts/4-ad1e4b43da.chunk.js +1 -0
  287. package/dist/scripts/4.chunk.js.map +1 -1
  288. package/dist/scripts/{40-f1d72b1049.chunk.js → 40-dbfd665c74.chunk.js} +1 -1
  289. package/dist/scripts/40.chunk.js.map +1 -1
  290. package/dist/scripts/41-25fbac3d17.chunk.js +1 -0
  291. package/dist/scripts/41.chunk.js.map +1 -1
  292. package/dist/scripts/{42-3480033857.chunk.js → 42-9f757567db.chunk.js} +1 -1
  293. package/dist/scripts/42.chunk.js +13 -13
  294. package/dist/scripts/42.chunk.js.map +1 -1
  295. package/dist/scripts/{43-2fe5b1c9cc.chunk.js → 43-5ef29feb2c.chunk.js} +1 -1
  296. package/dist/scripts/43.chunk.js.map +1 -1
  297. package/dist/scripts/44-223f602431.chunk.js +1 -0
  298. package/dist/scripts/44.chunk.js.map +1 -1
  299. package/dist/scripts/45-344492a36f.chunk.js +1 -0
  300. package/dist/scripts/45.chunk.js.map +1 -1
  301. package/dist/scripts/46-9ca7afd6a4.chunk.js +1 -0
  302. package/dist/scripts/46.chunk.js +2 -2
  303. package/dist/scripts/46.chunk.js.map +1 -1
  304. package/dist/scripts/{47-1e3d829757.chunk.js → 47-ac0c9c5ce1.chunk.js} +1 -1
  305. package/dist/scripts/47.chunk.js.map +1 -1
  306. package/dist/scripts/{48-877e9e02b8.chunk.js → 48-6bf590b9a0.chunk.js} +1 -1
  307. package/dist/scripts/48.chunk.js.map +1 -1
  308. package/dist/scripts/{49-0f9a6a1782.chunk.js → 49-8e3e782ffb.chunk.js} +1 -1
  309. package/dist/scripts/49.chunk.js.map +1 -1
  310. package/dist/scripts/5-b236603e85.chunk.js +1 -0
  311. package/dist/scripts/5.chunk.js +1 -1
  312. package/dist/scripts/5.chunk.js.map +1 -1
  313. package/dist/scripts/{50-0741587a02.chunk.js → 50-30ba08212e.chunk.js} +1 -1
  314. package/dist/scripts/50.chunk.js.map +1 -1
  315. package/dist/scripts/{51-a5f1309ada.chunk.js → 51-828972defb.chunk.js} +1 -1
  316. package/dist/scripts/51.chunk.js.map +1 -1
  317. package/dist/scripts/{52-bc48f1f9e8.chunk.js → 52-b2acf3e742.chunk.js} +1 -1
  318. package/dist/scripts/52.chunk.js.map +1 -1
  319. package/dist/scripts/{53-36007500cf.chunk.js → 53-5d6ea94871.chunk.js} +1 -1
  320. package/dist/scripts/53.chunk.js.map +1 -1
  321. package/dist/scripts/{54-7cdbdcebf9.chunk.js → 54-2d8bd6fde0.chunk.js} +1 -1
  322. package/dist/scripts/54.chunk.js.map +1 -1
  323. package/dist/scripts/{55-078bb9b0ea.chunk.js → 55-4a8d360746.chunk.js} +1 -1
  324. package/dist/scripts/55.chunk.js.map +1 -1
  325. package/dist/scripts/{56-36d54fa08f.chunk.js → 56-ad12ebab5f.chunk.js} +1 -1
  326. package/dist/scripts/56.chunk.js.map +1 -1
  327. package/dist/scripts/{57-0e126120b9.chunk.js → 57-53b89c2ef0.chunk.js} +1 -1
  328. package/dist/scripts/57.chunk.js.map +1 -1
  329. package/dist/scripts/{58-17706ccb46.chunk.js → 58-b246abe78c.chunk.js} +1 -1
  330. package/dist/scripts/58.chunk.js.map +1 -1
  331. package/dist/scripts/{59-0a7bdc86b0.chunk.js → 59-19290686e0.chunk.js} +1 -1
  332. package/dist/scripts/59.chunk.js.map +1 -1
  333. package/dist/scripts/{6-51a379e066.chunk.js → 6-6fb543aa78.chunk.js} +1 -1
  334. package/dist/scripts/6.chunk.js.map +1 -1
  335. package/dist/scripts/{60-0d8896555f.chunk.js → 60-0c075e7b5c.chunk.js} +1 -1
  336. package/dist/scripts/60.chunk.js.map +1 -1
  337. package/dist/scripts/{61-57fa6b5248.chunk.js → 61-2725bbfab2.chunk.js} +1 -1
  338. package/dist/scripts/61.chunk.js +4 -4
  339. package/dist/scripts/61.chunk.js.map +1 -1
  340. package/dist/scripts/{62-67458b7fb4.chunk.js → 62-472d10a18e.chunk.js} +1 -1
  341. package/dist/scripts/62.chunk.js.map +1 -1
  342. package/dist/scripts/{63-420b10f5f2.chunk.js → 63-7d00e50441.chunk.js} +1 -1
  343. package/dist/scripts/63.chunk.js.map +1 -1
  344. package/dist/scripts/{64-e6598113a7.chunk.js → 64-1b42f78644.chunk.js} +1 -1
  345. package/dist/scripts/64.chunk.js.map +1 -1
  346. package/dist/scripts/{65-93567fe088.chunk.js → 65-14af88c745.chunk.js} +1 -1
  347. package/dist/scripts/65.chunk.js.map +1 -1
  348. package/dist/scripts/{66-c84a3a3c3f.chunk.js → 66-bc274df13a.chunk.js} +1 -1
  349. package/dist/scripts/66.chunk.js.map +1 -1
  350. package/dist/scripts/67-d1edef09d6.chunk.js +1 -0
  351. package/dist/scripts/67.chunk.js.map +1 -1
  352. package/dist/scripts/{68-38a6d7fb50.chunk.js → 68-52468201b9.chunk.js} +1 -1
  353. package/dist/scripts/68.chunk.js.map +1 -1
  354. package/dist/scripts/{69-3d2063cd0f.chunk.js → 69-b681e9a99c.chunk.js} +1 -1
  355. package/dist/scripts/69.chunk.js.map +1 -1
  356. package/dist/scripts/{7-d41d3bf60c.chunk.js → 7-2807a666bc.chunk.js} +1 -1
  357. package/dist/scripts/7.chunk.js.map +1 -1
  358. package/dist/scripts/{70-27e9e5792a.chunk.js → 70-d4018838a9.chunk.js} +1 -1
  359. package/dist/scripts/70.chunk.js.map +1 -1
  360. package/dist/scripts/{71-c5923e2d2d.chunk.js → 71-29cce07c7f.chunk.js} +1 -1
  361. package/dist/scripts/71.chunk.js.map +1 -1
  362. package/dist/scripts/{72-0a6c88f9fe.chunk.js → 72-6f83214b8d.chunk.js} +1 -1
  363. package/dist/scripts/72.chunk.js.map +1 -1
  364. package/dist/scripts/73.chunk.js.map +1 -1
  365. package/dist/scripts/74.chunk.js.map +1 -1
  366. package/dist/scripts/75.chunk.js.map +1 -1
  367. package/dist/scripts/76.chunk.js.map +1 -1
  368. package/dist/scripts/77.chunk.js.map +1 -1
  369. package/dist/scripts/78.chunk.js.map +1 -1
  370. package/dist/scripts/79.chunk.js.map +1 -1
  371. package/dist/scripts/{8-7278f3247c.chunk.js → 8-8f44e8bfc4.chunk.js} +1 -1
  372. package/dist/scripts/8.chunk.js.map +1 -1
  373. package/dist/scripts/80.chunk.js.map +1 -1
  374. package/dist/scripts/81.chunk.js.map +1 -1
  375. package/dist/scripts/82.chunk.js.map +1 -1
  376. package/dist/scripts/83.chunk.js.map +1 -1
  377. package/dist/scripts/84.chunk.js.map +1 -1
  378. package/dist/scripts/85.chunk.js.map +1 -1
  379. package/dist/scripts/86.chunk.js.map +1 -1
  380. package/dist/scripts/87.chunk.js.map +1 -1
  381. package/dist/scripts/88.chunk.js.map +1 -1
  382. package/dist/scripts/89.chunk.js.map +1 -1
  383. package/dist/scripts/9-b8f9ea66c4.chunk.js +1 -0
  384. package/dist/scripts/9.chunk.js.map +1 -1
  385. package/dist/scripts/90.chunk.js.map +1 -1
  386. package/dist/scripts/91.chunk.js.map +1 -1
  387. package/dist/scripts/92.chunk.js.map +1 -1
  388. package/dist/scripts/bundle-f28b86bf5b.min.js +8 -0
  389. package/dist/scripts/bundle.js +593 -487
  390. package/dist/scripts/bundle.js.map +1 -1
  391. package/dist/scripts/bundles.json +2 -2
  392. package/dist/scripts/polyfills-1d2233ebcc.min.js +1 -0
  393. package/dist/scripts/polyfills.js +350 -350
  394. package/dist/scripts/polyfills.js.map +1 -1
  395. package/package.json +4 -3
  396. package/typings/libs/CVEvents.d.ts +1 -1
  397. package/typings/libs/LazyLoad.ts +2 -1
  398. package/typings/libs/Trackers.d.ts +1 -1
  399. package/dist/libs/common/src/backbone/services/ScrollService.d.ts +0 -19
  400. package/dist/projects/library-editor/src/apps/library-editor/components/file-select/FileSelectComponent.d.ts +0 -30
  401. package/dist/projects/library-editor/src/apps/library-editor/components/file-uploads/FileUploadComponent.d.ts +0 -15
  402. package/dist/projects/library-editor/src/apps/library-editor/components/video-resources/ResourceItemComponent.d.ts +0 -22
  403. package/dist/projects/library-editor/src/apps/library-editor/components/video-subtitles/SubtitleItemComponent.d.ts +0 -18
  404. package/dist/projects/library-editor/src/apps/library-editor/enums/ObjectOwnerType.d.ts +0 -4
  405. package/dist/projects/library-editor/src/apps/library-editor/errors/too-many-resources/TooManyResourcesError.d.ts +0 -8
  406. package/dist/projects/library-editor/src/apps/library-editor/errors/too-many-subtitles/TooManySubtitlesError.d.ts +0 -8
  407. package/dist/projects/library-editor/src/shared/behaviors/file-drop/FileDropBehavior.d.ts +0 -19
  408. package/dist/projects/library-editor/src/shared/behaviors/file-drop/FileDropHelper.d.ts +0 -4
  409. package/dist/projects/library-editor/src/shared/behaviors/file-drop/FileDropMaskBehavior.d.ts +0 -19
  410. package/dist/projects/library-editor/src/shared/behaviors/file-select/FileSelectBehavior.d.ts +0 -16
  411. package/dist/projects/library-editor/src/shared/enums/MasterObjectTypes.d.ts +0 -8
  412. package/dist/projects/library-editor/src/shared/enums/UploadInteractionType.d.ts +0 -4
  413. package/dist/projects/library-editor/src/shared/errors/too-many-files/TooManyFilesError.d.ts +0 -7
  414. package/dist/scripts/0-1dbc79e4e7.chunk.js +0 -1
  415. package/dist/scripts/0-8b75adf540.chunk.js +0 -1
  416. package/dist/scripts/0-93276429bf.chunk.js +0 -1
  417. package/dist/scripts/1-22a3bd404f.chunk.js +0 -1
  418. package/dist/scripts/1-480e5932a6.chunk.js +0 -1
  419. package/dist/scripts/1-6051b28de6.chunk.js +0 -1
  420. package/dist/scripts/1-b85c11fc30.chunk.js +0 -1
  421. package/dist/scripts/10-3ff370d548.chunk.js +0 -1
  422. package/dist/scripts/10-923c4b075a.chunk.js +0 -1
  423. package/dist/scripts/10-e2fea45a6c.chunk.js +0 -1
  424. package/dist/scripts/11-3dec7d2c7e.chunk.js +0 -11
  425. package/dist/scripts/11-74bc3f2d9f.chunk.js +0 -11
  426. package/dist/scripts/12-24bd360be0.chunk.js +0 -1
  427. package/dist/scripts/12-6ecdd79b85.chunk.js +0 -1
  428. package/dist/scripts/12-e522e64a94.chunk.js +0 -1
  429. package/dist/scripts/13-081c0e5887.chunk.js +0 -1
  430. package/dist/scripts/13-282f8add17.chunk.js +0 -1
  431. package/dist/scripts/13-54fe4fe53b.chunk.js +0 -1
  432. package/dist/scripts/13-958a8fd026.chunk.js +0 -1
  433. package/dist/scripts/14-16f84b2721.chunk.js +0 -1
  434. package/dist/scripts/14-45cd4dc6ef.chunk.js +0 -1
  435. package/dist/scripts/14-5e443cb402.chunk.js +0 -1
  436. package/dist/scripts/14-68c85d6674.chunk.js +0 -1
  437. package/dist/scripts/15-12fa4c3471.chunk.js +0 -1
  438. package/dist/scripts/15-1f779dd0d3.chunk.js +0 -1
  439. package/dist/scripts/15-5544e6bde6.chunk.js +0 -1
  440. package/dist/scripts/15-8c96c3288e.chunk.js +0 -1
  441. package/dist/scripts/16-670c43d26f.chunk.js +0 -1
  442. package/dist/scripts/16-742a776f88.chunk.js +0 -1
  443. package/dist/scripts/16-7bcffb06e7.chunk.js +0 -1
  444. package/dist/scripts/17-7093f50dff.chunk.js +0 -1
  445. package/dist/scripts/17-b5e44e8b17.chunk.js +0 -1
  446. package/dist/scripts/17-f6b0159da3.chunk.js +0 -1
  447. package/dist/scripts/2-5fd33f5359.chunk.js +0 -1
  448. package/dist/scripts/2-7cc9176e8a.chunk.js +0 -1
  449. package/dist/scripts/20-4d88ede0e0.chunk.js +0 -1
  450. package/dist/scripts/20-732a7a549d.chunk.js +0 -1
  451. package/dist/scripts/20-a84733c89f.chunk.js +0 -1
  452. package/dist/scripts/21-9b28a13702.chunk.js +0 -1
  453. package/dist/scripts/21-c9983ca8ad.chunk.js +0 -1
  454. package/dist/scripts/21-ee85b6d208.chunk.js +0 -1
  455. package/dist/scripts/22-082c94a39c.chunk.js +0 -1
  456. package/dist/scripts/22-151cf38018.chunk.js +0 -1
  457. package/dist/scripts/22-6e6ed9f607.chunk.js +0 -1
  458. package/dist/scripts/23-1af21bf234.chunk.js +0 -1
  459. package/dist/scripts/23-2b00ff99bf.chunk.js +0 -1
  460. package/dist/scripts/23-94f9fe4222.chunk.js +0 -1
  461. package/dist/scripts/23-ab8f73ee87.chunk.js +0 -1
  462. package/dist/scripts/24-74ab289589.chunk.js +0 -1
  463. package/dist/scripts/24-c94049500e.chunk.js +0 -1
  464. package/dist/scripts/24-d1ffdd4755.chunk.js +0 -1
  465. package/dist/scripts/25-34c0406f50.chunk.js +0 -1
  466. package/dist/scripts/25-5a38ce3533.chunk.js +0 -1
  467. package/dist/scripts/25-76d9011eea.chunk.js +0 -1
  468. package/dist/scripts/25-866cfc0ef5.chunk.js +0 -1
  469. package/dist/scripts/26-d19e3f755c.chunk.js +0 -1
  470. package/dist/scripts/26-e53ba8e00f.chunk.js +0 -1
  471. package/dist/scripts/26-ea028a6276.chunk.js +0 -1
  472. package/dist/scripts/27-2109d41afa.chunk.js +0 -1
  473. package/dist/scripts/27-3aa629dd67.chunk.js +0 -1
  474. package/dist/scripts/27-c1241fcd84.chunk.js +0 -1
  475. package/dist/scripts/27-ee88c84482.chunk.js +0 -1
  476. package/dist/scripts/28-5c540e74cc.chunk.js +0 -1
  477. package/dist/scripts/28-76b9766891.chunk.js +0 -1
  478. package/dist/scripts/28-e490147f6b.chunk.js +0 -1
  479. package/dist/scripts/29-2da59b1589.chunk.js +0 -1
  480. package/dist/scripts/29-3faa153e38.chunk.js +0 -1
  481. package/dist/scripts/29-69389908f8.chunk.js +0 -1
  482. package/dist/scripts/29-bb7e39304b.chunk.js +0 -1
  483. package/dist/scripts/3-6e67dd4b74.chunk.js +0 -1
  484. package/dist/scripts/3-81b501ac1e.chunk.js +0 -1
  485. package/dist/scripts/3-c69e4454ce.chunk.js +0 -1
  486. package/dist/scripts/30-9d32d88d76.chunk.js +0 -1
  487. package/dist/scripts/30-a1df3e37da.chunk.js +0 -1
  488. package/dist/scripts/30-fa390c35f6.chunk.js +0 -1
  489. package/dist/scripts/31-ce31250e42.chunk.js +0 -1
  490. package/dist/scripts/31-f15802825c.chunk.js +0 -1
  491. package/dist/scripts/31-fc63c4629d.chunk.js +0 -1
  492. package/dist/scripts/32-1ad8193581.chunk.js +0 -1
  493. package/dist/scripts/32-3de9c7454b.chunk.js +0 -1
  494. package/dist/scripts/32-4173874dbe.chunk.js +0 -1
  495. package/dist/scripts/32-9bca57f408.chunk.js +0 -1
  496. package/dist/scripts/33-20ac0ab4a1.chunk.js +0 -1
  497. package/dist/scripts/33-350334db4c.chunk.js +0 -1
  498. package/dist/scripts/33-675467f07d.chunk.js +0 -1
  499. package/dist/scripts/33-7efae85b8b.chunk.js +0 -1
  500. package/dist/scripts/34-0a7f3b55fe.chunk.js +0 -1
  501. package/dist/scripts/34-3adf309726.chunk.js +0 -1
  502. package/dist/scripts/34-c4f0495750.chunk.js +0 -1
  503. package/dist/scripts/34-f6eea83a09.chunk.js +0 -1
  504. package/dist/scripts/35-17b30890a5.chunk.js +0 -1
  505. package/dist/scripts/35-4254e160f0.chunk.js +0 -1
  506. package/dist/scripts/35-7f90628b77.chunk.js +0 -1
  507. package/dist/scripts/35-9c3899dfbd.chunk.js +0 -1
  508. package/dist/scripts/36-1fde696d6a.chunk.js +0 -1
  509. package/dist/scripts/36-2ec95df618.chunk.js +0 -1
  510. package/dist/scripts/36-b5ad543fba.chunk.js +0 -1
  511. package/dist/scripts/36-cdbe95bd06.chunk.js +0 -1
  512. package/dist/scripts/37-6fa4b8fc60.chunk.js +0 -1
  513. package/dist/scripts/37-97b84a8be5.chunk.js +0 -1
  514. package/dist/scripts/37-c649a307d4.chunk.js +0 -1
  515. package/dist/scripts/38-0cf8029bec.chunk.js +0 -1
  516. package/dist/scripts/38-1c98f19489.chunk.js +0 -1
  517. package/dist/scripts/38-6fc346f964.chunk.js +0 -1
  518. package/dist/scripts/38-7ffe535b0d.chunk.js +0 -1
  519. package/dist/scripts/39-13d6669c3f.chunk.js +0 -1
  520. package/dist/scripts/39-748eb61732.chunk.js +0 -1
  521. package/dist/scripts/39-e5983a5d53.chunk.js +0 -1
  522. package/dist/scripts/4-435484d217.chunk.js +0 -1
  523. package/dist/scripts/4-5c50e71b83.chunk.js +0 -1
  524. package/dist/scripts/4-7274621693.chunk.js +0 -1
  525. package/dist/scripts/4-85ba8523ad.chunk.js +0 -1
  526. package/dist/scripts/40-2691dfbd5a.chunk.js +0 -1
  527. package/dist/scripts/40-2ecbd41570.chunk.js +0 -1
  528. package/dist/scripts/40-a691a401ff.chunk.js +0 -1
  529. package/dist/scripts/41-0368ba16dc.chunk.js +0 -1
  530. package/dist/scripts/41-1df587ee3a.chunk.js +0 -1
  531. package/dist/scripts/41-85fcb15184.chunk.js +0 -1
  532. package/dist/scripts/41-bb9aef24f7.chunk.js +0 -1
  533. package/dist/scripts/42-389acb6e55.chunk.js +0 -1
  534. package/dist/scripts/42-3ef41f40f5.chunk.js +0 -1
  535. package/dist/scripts/42-61a626d7f4.chunk.js +0 -1
  536. package/dist/scripts/43-49f13dab14.chunk.js +0 -1
  537. package/dist/scripts/43-72d1bc0ae2.chunk.js +0 -1
  538. package/dist/scripts/43-a5b882d502.chunk.js +0 -1
  539. package/dist/scripts/44-0703eb0ad8.chunk.js +0 -1
  540. package/dist/scripts/44-756fd6622b.chunk.js +0 -1
  541. package/dist/scripts/44-de22428999.chunk.js +0 -1
  542. package/dist/scripts/44-ee6a740a16.chunk.js +0 -1
  543. package/dist/scripts/45-610d098194.chunk.js +0 -1
  544. package/dist/scripts/45-806dd5b78c.chunk.js +0 -1
  545. package/dist/scripts/45-da34a8b6b2.chunk.js +0 -1
  546. package/dist/scripts/45-e4a92a40fd.chunk.js +0 -1
  547. package/dist/scripts/46-4aa05464fe.chunk.js +0 -1
  548. package/dist/scripts/46-cadf3f46ee.chunk.js +0 -1
  549. package/dist/scripts/46-cccef3e874.chunk.js +0 -1
  550. package/dist/scripts/46-ebf8eee4ac.chunk.js +0 -1
  551. package/dist/scripts/47-22a83e5974.chunk.js +0 -1
  552. package/dist/scripts/47-56d22af6ba.chunk.js +0 -1
  553. package/dist/scripts/47-c61fa52c53.chunk.js +0 -1
  554. package/dist/scripts/48-e05ab3ecac.chunk.js +0 -1
  555. package/dist/scripts/48-e577124476.chunk.js +0 -1
  556. package/dist/scripts/48-fc96b968fc.chunk.js +0 -1
  557. package/dist/scripts/49-13c5f8e87d.chunk.js +0 -1
  558. package/dist/scripts/49-4a6c119f58.chunk.js +0 -1
  559. package/dist/scripts/49-f9151c7e06.chunk.js +0 -1
  560. package/dist/scripts/5-06b97501c3.chunk.js +0 -1
  561. package/dist/scripts/5-1ba89c4774.chunk.js +0 -1
  562. package/dist/scripts/5-515b264fbc.chunk.js +0 -1
  563. package/dist/scripts/5-d6a7d71167.chunk.js +0 -1
  564. package/dist/scripts/50-0d5aed7730.chunk.js +0 -1
  565. package/dist/scripts/50-3924907655.chunk.js +0 -1
  566. package/dist/scripts/50-4de0b758d5.chunk.js +0 -1
  567. package/dist/scripts/51-cd37c8efa2.chunk.js +0 -1
  568. package/dist/scripts/51-dca2a9cc86.chunk.js +0 -1
  569. package/dist/scripts/51-ea33746146.chunk.js +0 -1
  570. package/dist/scripts/52-50230b48c8.chunk.js +0 -1
  571. package/dist/scripts/52-8b53a5c0b1.chunk.js +0 -1
  572. package/dist/scripts/52-a3c8ed29ca.chunk.js +0 -1
  573. package/dist/scripts/53-0e253f9f3e.chunk.js +0 -1
  574. package/dist/scripts/53-54b0df474f.chunk.js +0 -1
  575. package/dist/scripts/53-d8f0dea552.chunk.js +0 -1
  576. package/dist/scripts/54-d1bc70c7b5.chunk.js +0 -1
  577. package/dist/scripts/54-dd4d101665.chunk.js +0 -1
  578. package/dist/scripts/54-ead54d0b34.chunk.js +0 -1
  579. package/dist/scripts/55-3c60601030.chunk.js +0 -1
  580. package/dist/scripts/55-a5fa20b497.chunk.js +0 -1
  581. package/dist/scripts/55-e29d6a6ba9.chunk.js +0 -1
  582. package/dist/scripts/56-370078d597.chunk.js +0 -1
  583. package/dist/scripts/56-7a6c662f14.chunk.js +0 -1
  584. package/dist/scripts/56-df0a32000b.chunk.js +0 -1
  585. package/dist/scripts/57-6e622c6480.chunk.js +0 -1
  586. package/dist/scripts/57-a4f4d6fe41.chunk.js +0 -1
  587. package/dist/scripts/57-c1faec8b32.chunk.js +0 -1
  588. package/dist/scripts/58-5729cbaa5c.chunk.js +0 -1
  589. package/dist/scripts/58-a0fe201826.chunk.js +0 -1
  590. package/dist/scripts/58-e996405f2b.chunk.js +0 -1
  591. package/dist/scripts/59-333f38ee3b.chunk.js +0 -1
  592. package/dist/scripts/59-381a49ed7f.chunk.js +0 -1
  593. package/dist/scripts/59-4f2fcb6412.chunk.js +0 -1
  594. package/dist/scripts/6-1045293de4.chunk.js +0 -1
  595. package/dist/scripts/6-40c8ba5007.chunk.js +0 -1
  596. package/dist/scripts/6-b3d36065dc.chunk.js +0 -1
  597. package/dist/scripts/60-b17c6609cd.chunk.js +0 -1
  598. package/dist/scripts/60-b4a91c86fa.chunk.js +0 -1
  599. package/dist/scripts/60-c57f161f18.chunk.js +0 -1
  600. package/dist/scripts/61-5d6e59d408.chunk.js +0 -1
  601. package/dist/scripts/61-7d81d27c31.chunk.js +0 -1
  602. package/dist/scripts/61-a342a0d501.chunk.js +0 -1
  603. package/dist/scripts/62-758f5e505b.chunk.js +0 -1
  604. package/dist/scripts/62-b572d8b80d.chunk.js +0 -1
  605. package/dist/scripts/62-f5fd35fdc0.chunk.js +0 -1
  606. package/dist/scripts/63-568008965e.chunk.js +0 -1
  607. package/dist/scripts/63-6700b4d00a.chunk.js +0 -1
  608. package/dist/scripts/63-c88b9860e9.chunk.js +0 -1
  609. package/dist/scripts/64-9c88ee6161.chunk.js +0 -1
  610. package/dist/scripts/64-e177d4c971.chunk.js +0 -1
  611. package/dist/scripts/64-fa2facacbb.chunk.js +0 -1
  612. package/dist/scripts/65-a7e499ceee.chunk.js +0 -1
  613. package/dist/scripts/65-e4568d1f06.chunk.js +0 -1
  614. package/dist/scripts/65-f750573f69.chunk.js +0 -1
  615. package/dist/scripts/66-f00f29ccae.chunk.js +0 -1
  616. package/dist/scripts/66-f325ff3187.chunk.js +0 -1
  617. package/dist/scripts/66-f6d213b33c.chunk.js +0 -1
  618. package/dist/scripts/67-1ebaab7a2d.chunk.js +0 -1
  619. package/dist/scripts/67-3c9628d296.chunk.js +0 -1
  620. package/dist/scripts/67-97c694c3d5.chunk.js +0 -1
  621. package/dist/scripts/67-c5af18680c.chunk.js +0 -1
  622. package/dist/scripts/68-488cd1552f.chunk.js +0 -1
  623. package/dist/scripts/68-7b1d5e8e75.chunk.js +0 -1
  624. package/dist/scripts/68-eb8700aeb1.chunk.js +0 -1
  625. package/dist/scripts/69-870856c6fb.chunk.js +0 -1
  626. package/dist/scripts/69-b0ea71d7c5.chunk.js +0 -1
  627. package/dist/scripts/69-be2be90b7c.chunk.js +0 -1
  628. package/dist/scripts/7-3151397d74.chunk.js +0 -1
  629. package/dist/scripts/7-aac8c84ccb.chunk.js +0 -1
  630. package/dist/scripts/7-dfddb8ffa8.chunk.js +0 -1
  631. package/dist/scripts/70-39dc936989.chunk.js +0 -1
  632. package/dist/scripts/70-6ef72cd9b6.chunk.js +0 -1
  633. package/dist/scripts/70-e6ebb44667.chunk.js +0 -1
  634. package/dist/scripts/71-4e4a47d601.chunk.js +0 -1
  635. package/dist/scripts/71-8e3682a7d7.chunk.js +0 -1
  636. package/dist/scripts/71-a80858069c.chunk.js +0 -1
  637. package/dist/scripts/72-245f28bf97.chunk.js +0 -1
  638. package/dist/scripts/72-550438db4e.chunk.js +0 -1
  639. package/dist/scripts/72-65364adff1.chunk.js +0 -1
  640. package/dist/scripts/8-c4955c2009.chunk.js +0 -1
  641. package/dist/scripts/8-d46f48d03c.chunk.js +0 -1
  642. package/dist/scripts/8-e5d19252c8.chunk.js +0 -1
  643. package/dist/scripts/9-4589726554.chunk.js +0 -1
  644. package/dist/scripts/9-576592d419.chunk.js +0 -1
  645. package/dist/scripts/9-66021549bd.chunk.js +0 -1
  646. package/dist/scripts/9-df99ba6ce1.chunk.js +0 -1
  647. package/dist/scripts/bundle-1b984e2fd9.min.js +0 -8
  648. package/dist/scripts/bundle-203920eb14.min.js +0 -8
  649. package/dist/scripts/bundle-7d13ba933b.min.js +0 -8
  650. package/dist/scripts/bundle-d5b23160b1.min.js +0 -8
  651. package/dist/scripts/polyfills-5a81b67408.min.js +0 -1
  652. package/dist/scripts/polyfills-9b0be1bd72.min.js +0 -1
  653. package/dist/scripts/polyfills-cd3d0a9f6d.min.js +0 -1
  654. package/dist/scripts/polyfills-d891a77823.min.js +0 -1
  655. /package/dist/libs/shared/src/interfaces/models/{Interactive.d.ts → interactive.d.ts} +0 -0
@@ -1 +1 @@
1
- (window.webpackJsonp_clickview_library_editor=window.webpackJsonp_clickview_library_editor||[]).push([[26],{1036:function(t,e,n){t.exports={dragItem:"_2TIZ7",svgContainer:"_3JzEU",dragText:"_1Kdwj"}},1037:function(t,e,n){var r=n(10);t.exports=(r.default||r).template({compiler:[8,">= 4.3.0"],main:function(t,e,n,r,o){t.propertyIsEnumerable;var i,a=t.lambda,c=t.escapeExpression;return'<span class="'+c(a(null!=(i=null!=(i=null!=e?e.options:e)?i.styles:i)?i.svgContainer:i,e))+' mr-2">'+(null!=(i=a(null!=(i=null!=e?e.options:e)?i.svg:i,e))?i:"")+'</span>\r\n<span class="'+c(a(null!=(i=null!=(i=null!=e?e.options:e)?i.styles:i)?i.dragText:i,e))+'">'+c(a(null!=(i=null!=e?e.options:e)?i.text:i,e))+"</span>"},useData:!0})},1043:function(t,e,n){"use strict";n.d(e,"a",(function(){return p}));var r=n(1),o=n(2),i=n(287);function a(t){return(a="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t})(t)}function c(t,e){for(var n=0;n<e.length;n++){var r=e[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(t,r.key,r)}}function u(t,e){return(u=Object.setPrototypeOf||function(t,e){return t.__proto__=e,t})(t,e)}function l(t){var e=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(t){return!1}}();return function(){var n,r=f(t);if(e){var o=f(this).constructor;n=Reflect.construct(r,arguments,o)}else n=r.apply(this,arguments);return s(this,n)}}function s(t,e){return!e||"object"!==a(e)&&"function"!=typeof e?function(t){if(void 0===t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return t}(t):e}function f(t){return(f=Object.setPrototypeOf?Object.getPrototypeOf:function(t){return t.__proto__||Object.getPrototypeOf(t)})(t)}var p=function(t){!function(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function");t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,writable:!0,configurable:!0}}),e&&u(t,e)}(s,t);var e,n,o,a=l(s);function s(t){return function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,s),a.call(this,t)}return e=s,(n=[{key:"initialize",value:function(){this.listenTo(this.options.channelName,"center:dropdown",this.centerSelectedItem)}},{key:"getExtraClasses",value:function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},e=t.alignment,n=void 0===e?"left":e,r=t.extraClasses,o="dropdown-menu-".concat(n);return r&&(o="".concat(o," ").concat(r)),o}},{key:"centerSelectedItem",value:function(){var t=this.$el.find(".active");if(t.length){var e=this.$el.scrollTop()+t.position().top,n=.5*this.$el.height()+.5*t.height();this.$el.scrollTop(e-n)}}},{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 t={channelName:this.options.channelName,analyticsHelper:this.options.analyticsHelper};return r.extend(t,this.options.childOptions)}}])&&c(e.prototype,n),o&&c(e,o),s}(o.a.ComponentCollection)},1051:function(t,e,n){"use strict";var r=n(1036),o=n.n(r),i=n(1037),a=n.n(i);function c(t){return(c="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t})(t)}function u(t,e){for(var n=0;n<e.length;n++){var r=e[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(t,r.key,r)}}function l(t,e){return(l=Object.setPrototypeOf||function(t,e){return t.__proto__=e,t})(t,e)}function s(t){var e=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(t){return!1}}();return function(){var n,r=p(t);if(e){var o=p(this).constructor;n=Reflect.construct(r,arguments,o)}else n=r.apply(this,arguments);return f(this,n)}}function f(t,e){return!e||"object"!==c(e)&&"function"!=typeof e?function(t){if(void 0===t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return t}(t):e}function p(t){return(p=Object.setPrototypeOf?Object.getPrototypeOf:function(t){return t.__proto__||Object.getPrototypeOf(t)})(t)}var y=function(t){!function(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function");t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,writable:!0,configurable:!0}}),e&&l(t,e)}(c,t);var e,n,r,i=s(c);function c(t){return function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,c),i.call(this,t)}return e=c,(n=[{key:"viewOptions",value:function(){return Object.assign({styles:o.a},this.options)}},{key:"name",get:function(){return"DraggableItemComponent"}},{key:"template",get:function(){return a.a}},{key:"className",get:function(){return"".concat(o.a.dragItem," p-3")}}])&&u(e.prototype,n),r&&u(e,r),c}(n(2).a.Component),d={delay:150,cursorAt:{left:-20,top:10},refreshPositions:!0};n.d(e,"c",(function(){return o.a})),n.d(e,"b",(function(){return y})),n.d(e,"a",(function(){return d}))},1057:function(t,e,n){"use strict";n.d(e,"a",(function(){return R}));var r=n(1),o=n(6),i=n(2),a=n(19),c=n(15),u=n(0),l=n(13),s=n(3),f=n(1051),p=n(186),y=n(1059),d=n.n(y);function h(t){return(h="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t})(t)}function b(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}function g(t,e){for(var n=0;n<e.length;n++){var r=e[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(t,r.key,r)}}function m(t,e){return(m=Object.setPrototypeOf||function(t,e){return t.__proto__=e,t})(t,e)}function v(t){var e=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(t){return!1}}();return function(){var n,r=O(t);if(e){var o=O(this).constructor;n=Reflect.construct(r,arguments,o)}else n=r.apply(this,arguments);return w(this,n)}}function w(t,e){return!e||"object"!==h(e)&&"function"!=typeof e?function(t){if(void 0===t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return t}(t):e}function O(t){return(O=Object.setPrototypeOf?Object.getPrototypeOf:function(t){return t.__proto__||Object.getPrototypeOf(t)})(t)}var R=function(t){!function(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function");t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,writable:!0,configurable:!0}}),e&&m(t,e)}(w,t);var e,n,y,h=v(w);function w(){return b(this,w),h.apply(this,arguments)}return e=w,(n=[{key:"initialize",value:function(){this.options.model||i.a.ErrorHelper.throw(new a.a("DraggableVideoBehavior must be passed a Video model")),this.listenTo(u.w.VIDEO_DRAG_DROP,"drag:style:".concat(this.options.model.id),this.styleDragStart),this.listenTo(u.w.VIDEO_DRAG_DROP,"drag:stop",this.styleDragStop)}},{key:"helper",value:function(){var t=this.getVideoModels();return new f.b({text:t.length>1?s.a.getPhrase(this.lang,"videos",{videoCount:t.length}):t[0].get("name"),svg:c.a.getSvg(c.b.Play)}).render().el}},{key:"getSelector",value:function(){return this.view.getUI(this.options.selector)}},{key:"styleDragStart",value:function(){this.getSelector().addClass(d.a.draggingVideo)}},{key:"styleDragStop",value:function(){this.getSelector().removeClass(d.a.draggingVideo)}},{key:"start",value:function(){var t=this.getVideoModels(),e=o.Radio.channel(u.w.VIDEO_DRAG_DROP);e.trigger("drag:start",t,this.options.collectionIdentifier),r.each(t,(function(t){return e.trigger("drag:style:".concat(t.id))}))}},{key:"stop",value:function(){o.Radio.channel(u.w.VIDEO_DRAG_DROP).trigger("drag:stop")}},{key:"getVideoModels",value:function(){var t=this,e=l.a.GetSelectedModels({key:this.options.collectionIdentifier.toString(),type:p.a.VIDEO_LIST,collection:this.view.model.collection});return r.any(e,(function(e){return e.id===t.view.model.id}))||(e=[this.view.model]),e.length?e:[this.view.model]}},{key:"getClassMappings",value:function(){return{"ui-draggable":f.c.draggable,"ui-draggable-disabled":f.c.disabled,"ui-draggable-handle":f.c.handle,"ui-draggable-dragging":f.c.dragging}}},{key:"onRender",value:function(){var t=this.getSelector(),e={helper:r.bind(this.helper,this),start:r.bind(this.start,this),stop:r.bind(this.stop,this)};e.classes=this.getClassMappings(),t.draggable(r.extend({},f.a,e))}},{key:"onBeforeDestroy",value:function(){var t=this.getSelector();t.draggable("instance")&&t.draggable("destroy")}},{key:"lang",get:function(){return"libraryEditor.behaviors"}}])&&g(e.prototype,n),y&&g(e,y),w}(i.a.Behavior)},1059:function(t,e,n){t.exports={draggingVideo:"_3cCHx"}},1091:function(t,e,n){"use strict";var r=n(190),o=n(1),i=n(188),a=n(0),c=n(137),u=n(284);function l(t){return(l="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t})(t)}function s(t){return function(t){if(Array.isArray(t))return f(t)}(t)||function(t){if("undefined"!=typeof Symbol&&Symbol.iterator in Object(t))return Array.from(t)}(t)||function(t,e){if(!t)return;if("string"==typeof t)return f(t,e);var n=Object.prototype.toString.call(t).slice(8,-1);"Object"===n&&t.constructor&&(n=t.constructor.name);if("Map"===n||"Set"===n)return Array.from(t);if("Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n))return f(t,e)}(t)||function(){throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function f(t,e){(null==e||e>t.length)&&(e=t.length);for(var n=0,r=new Array(e);n<e;n++)r[n]=t[n];return r}function p(t,e){for(var n=0;n<e.length;n++){var r=e[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(t,r.key,r)}}function y(t,e){return(y=Object.setPrototypeOf||function(t,e){return t.__proto__=e,t})(t,e)}function d(t){var e=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(t){return!1}}();return function(){var n,r=b(t);if(e){var o=b(this).constructor;n=Reflect.construct(r,arguments,o)}else n=r.apply(this,arguments);return h(this,n)}}function h(t,e){return!e||"object"!==l(e)&&"function"!=typeof e?function(t){if(void 0===t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return t}(t):e}function b(t){return(b=Object.setPrototypeOf?Object.getPrototypeOf:function(t){return t.__proto__||Object.getPrototypeOf(t)})(t)}var g=function(t){!function(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function");t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,writable:!0,configurable:!0}}),e&&y(t,e)}(l,t);var e,n,r,i=d(l);function l(t){var e;return function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,l),(e=i.call(this,{collectionPrefix:"".concat(a.f.RECENT_VIDEOS,":collection"),cursor:t.cursor,sort:t.sort})).setAdditionalData(t),e}return e=l,(n=[{key:"setAdditionalData",value:function(t){var e=t.libraryIds,n=t.dateQueryString,r=t.subjects;e&&(this.libraryIds=e),r&&(o.isArray(r)&&r.length&&(this.subjects=r),o.isArray(r)||(this.subjects=[r]));var i=o.findWhere(u.g,{queryString:n})||u.e;this.dateOption=new c.b(i)}},{key:"toString",value:function(){var t=this.subjects&&this.subjects.length&&this.subjects.map((function(t){return escape(t.get("name"))}))||[];return[this.collectionPrefix,this.libraryIds,this.dateOption.get("from"),this.dateOption.get("to")].concat(s(t),[this.cursor]).filter(Boolean).join(":")}},{key:"toParams",value:function(){var t={};return this.libraryIds&&(t.libraryIds=this.libraryIds),this.dateOption&&(t.from=this.dateOption.get("from"),t.to=this.dateOption.get("to")),this.subjects&&(t.subjectIds=o.flatten(this.subjects.map((function(t){return t.get("subjectIds")})))),this.cursor&&(t.cursor=this.cursor),t}}])&&p(e.prototype,n),r&&p(e,r),l}(i.a);function m(t){return(m="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t})(t)}function v(t,e){for(var n=0;n<e.length;n++){var r=e[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(t,r.key,r)}}function w(t,e){return(w=Object.setPrototypeOf||function(t,e){return t.__proto__=e,t})(t,e)}function O(t){var e=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(t){return!1}}();return function(){var n,r=_(t);if(e){var o=_(this).constructor;n=Reflect.construct(r,arguments,o)}else n=r.apply(this,arguments);return R(this,n)}}function R(t,e){return!e||"object"!==m(e)&&"function"!=typeof e?function(t){if(void 0===t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return t}(t):e}function _(t){return(_=Object.setPrototypeOf?Object.getPrototypeOf:function(t){return t.__proto__||Object.getPrototypeOf(t)})(t)}var k=function(t){!function(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function");t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,writable:!0,configurable:!0}}),e&&w(t,e)}(l,t);var e,n,r,i=O(l);function l(t){var e;return function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,l),(e=i.call(this,{collectionPrefix:"".concat(a.f.RECENT_SUBJECTS,":collection"),sort:t.sort})).setAdditionalData(t),e}return e=l,(n=[{key:"setAdditionalData",value:function(t){var e=t.libraryIds,n=t.dateQueryString;e&&(this.libraryIds=e);var r=o.findWhere(u.g,{queryString:n})||u.e;this.dateOption=new c.b(r)}},{key:"toString",value:function(){return[this.collectionPrefix,this.libraryIds,this.dateOption.get("from"),this.dateOption.get("to")].filter(Boolean).join(":")}},{key:"toParams",value:function(){var t={};return this.libraryIds&&(t.libraryIds=this.libraryIds),this.dateOption&&(t.from=this.dateOption.get("from"),t.to=this.dateOption.get("to")),t}}])&&v(e.prototype,n),r&&v(e,r),l}(i.a);function S(t){return(S="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t})(t)}function E(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}function P(t,e){return(P=Object.setPrototypeOf||function(t,e){return t.__proto__=e,t})(t,e)}function D(t){var e=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(t){return!1}}();return function(){var n,r=C(t);if(e){var o=C(this).constructor;n=Reflect.construct(r,arguments,o)}else n=r.apply(this,arguments);return j(this,n)}}function j(t,e){return!e||"object"!==S(e)&&"function"!=typeof e?function(t){if(void 0===t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return t}(t):e}function C(t){return(C=Object.setPrototypeOf?Object.getPrototypeOf:function(t){return t.__proto__||Object.getPrototypeOf(t)})(t)}var I=function(t){!function(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function");t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,writable:!0,configurable:!0}}),e&&P(t,e)}(n,t);var e=D(n);function n(t,r){var o=arguments.length>2&&void 0!==arguments[2]?arguments[2]:"";return E(this,n),e.call(this,{collectionPrefix:a.f.LIBRARY_FOLDERS,id:t,sort:r,cursor:o})}return n}(i.a);n.d(e,"d",(function(){return r.a})),n.d(e,"b",(function(){return g})),n.d(e,"c",(function(){return k})),n.d(e,"a",(function(){return I}))},1093:function(t,e,n){"use strict";n.d(e,"a",(function(){return d}));var r=n(1),o=n(6),i=n(2),a=n(145);function c(t){return(c="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t})(t)}function u(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}function l(t,e){for(var n=0;n<e.length;n++){var r=e[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(t,r.key,r)}}function s(t,e){return(s=Object.setPrototypeOf||function(t,e){return t.__proto__=e,t})(t,e)}function f(t){var e=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(t){return!1}}();return function(){var n,r=y(t);if(e){var o=y(this).constructor;n=Reflect.construct(r,arguments,o)}else n=r.apply(this,arguments);return p(this,n)}}function p(t,e){return!e||"object"!==c(e)&&"function"!=typeof e?function(t){if(void 0===t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return t}(t):e}function y(t){return(y=Object.setPrototypeOf?Object.getPrototypeOf:function(t){return t.__proto__||Object.getPrototypeOf(t)})(t)}var d=function(t){!function(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function");t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,writable:!0,configurable:!0}}),e&&s(t,e)}(p,t);var e,n,i,c=f(p);function p(){return u(this,p),c.apply(this,arguments)}return e=p,(n=[{key:"getDroppableElement",value:function(){return this.options.ui?this.view.getUI(this.options.ui):this.$el}},{key:"drop",value:function(){var t=this;r.each(this.options.channelNames,(function(e){o.Radio.channel(e).trigger("drag:drop",t.view.model,t.options.analyticsOptions)}))}},{key:"accept",value:function(){var t=this,e=!1;return r.each(this.options.channelNames,(function(n){!0===o.Radio.channel(n).request("accept",t.view.model)&&(e=!0)})),e}},{key:"over",value:function(){var t=this;this.isHoveringOver=!0,window.setTimeout((function(){t.isHoveringOver&&t.view.trigger("open:sub:folders",a.active)}),500)}},{key:"out",value:function(){this.isHoveringOver=!1}},{key:"onRender",value:function(){var t={tolerance:"pointer",drop:r.bind(this.drop,this),accept:r.bind(this.accept,this),over:r.bind(this.over,this),out:r.bind(this.out,this)};t.classes={"ui-droppable":a.droppable,"ui-droppable-active":a.active,"ui-droppable-hover":a.hover},this.getDroppableElement().droppable(t)}},{key:"onBeforeDestroy",value:function(){this.getDroppableElement().droppable("instance")&&this.getDroppableElement().droppable("destroy")}}])&&l(e.prototype,n),i&&l(e,i),p}(i.a.Behavior)},1096:function(t,e,n){"use strict";n.d(e,"a",(function(){return m}));var r=n(1),o=n(6),i=n(2),a=n(15),c=n(0),u=n(1051),l=n(1102),s=n.n(l);function f(t){return(f="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t})(t)}function p(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}function y(t,e){for(var n=0;n<e.length;n++){var r=e[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(t,r.key,r)}}function d(t,e){return(d=Object.setPrototypeOf||function(t,e){return t.__proto__=e,t})(t,e)}function h(t){var e=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(t){return!1}}();return function(){var n,r=g(t);if(e){var o=g(this).constructor;n=Reflect.construct(r,arguments,o)}else n=r.apply(this,arguments);return b(this,n)}}function b(t,e){return!e||"object"!==f(e)&&"function"!=typeof e?function(t){if(void 0===t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return t}(t):e}function g(t){return(g=Object.setPrototypeOf?Object.getPrototypeOf:function(t){return t.__proto__||Object.getPrototypeOf(t)})(t)}var m=function(t){!function(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function");t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,writable:!0,configurable:!0}}),e&&d(t,e)}(f,t);var e,n,i,l=h(f);function f(){return p(this,f),l.apply(this,arguments)}return e=f,(n=[{key:"getClassMappings",value:function(){return{"ui-draggable":u.c.draggable,"ui-draggable-handle":u.c.handle,"ui-draggable-disabled":u.c.disabled,"ui-draggable-dragging":u.c.dragging}}},{key:"helper",value:function(){return new u.b({text:this.view.model.get("name"),svg:a.a.getSvg(a.b.Folder)}).render().el}},{key:"start",value:function(){o.Radio.channel(c.w.FOLDER_DRAG_DROP).trigger("drag:start",this.view.model),this.view.$el.addClass(s.a.draggingFolder)}},{key:"stop",value:function(){o.Radio.channel(c.w.FOLDER_DRAG_DROP).trigger("drag:stop"),this.view.$el.removeClass(s.a.draggingFolder)}},{key:"onRender",value:function(){var t={helper:r.bind(this.helper,this),start:r.bind(this.start,this),stop:r.bind(this.stop,this)};t.classes=this.getClassMappings(),this.view.$el.draggable(r.extend({},u.a,t))}},{key:"onBeforeDestroy",value:function(){this.view.$el.draggable("instance")&&this.view.$el.draggable("destroy")}}])&&y(e.prototype,n),i&&y(e,i),f}(i.a.Behavior)},1100:function(t,e,n){"use strict";var r=n(2),o=n(15),i=n(83),a=n(4),c=n(42),u=n(1043),l=n(0),s=n(3),f=n(1103),p=n.n(f);function y(t){return(y="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t})(t)}function d(t,e){for(var n=0;n<e.length;n++){var r=e[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(t,r.key,r)}}function h(t,e){return(h=Object.setPrototypeOf||function(t,e){return t.__proto__=e,t})(t,e)}function b(t){var e=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(t){return!1}}();return function(){var n,r=m(t);if(e){var o=m(this).constructor;n=Reflect.construct(r,arguments,o)}else n=r.apply(this,arguments);return g(this,n)}}function g(t,e){return!e||"object"!==y(e)&&"function"!=typeof e?function(t){if(void 0===t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return t}(t):e}function m(t){return(m=Object.setPrototypeOf?Object.getPrototypeOf:function(t){return t.__proto__||Object.getPrototypeOf(t)})(t)}var v=function(t){!function(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function");t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,writable:!0,configurable:!0}}),e&&h(t,e)}(f,t);var e,n,o,i=b(f);function f(t){return function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,f),i.call(this,t)}return e=f,(n=[{key:"regions",value:function(){return{items:{el:".items-region",replaceElement:!0}}}},{key:"getFolderActions",value:function(){return[{title:s.a.getPhrase(this.lang,"addSubfolder"),analyticsOptions:c.a.mergeOptions(this.options.analyticsOptions,{actionType:a.q.Create,entity:a.e.Folder,workflowPhase:a.r.Start}),appLink:{application:l.b.LIBRARY_EDITOR,action:l.a.LibraryEditor.NEW_SUB_FOLDER,args:[this.model.get("id")]}},{title:s.a.getPhrase(this.lang,"rename"),analyticsOptions:c.a.mergeOptions(this.options.analyticsOptions,{actionType:a.q.Rename,entity:a.e.Folder,workflowPhase:a.r.Start}),appLink:{application:l.b.LIBRARY_EDITOR,action:l.a.LibraryEditor.RENAME_FOLDER,args:[this.model.get("id")]}},{title:s.a.getPhrase(this.lang,"move"),analyticsOptions:c.a.mergeOptions(this.options.analyticsOptions,{actionType:a.q.Move,entity:a.e.Folder,workflowPhase:a.r.Start}),appLink:{application:l.b.LIBRARY_EDITOR,action:l.a.LibraryEditor.MOVE_FOLDER,args:[this.model.get("id")]}},{title:s.a.getPhrase(this.lang,"editImages"),analyticsOptions:c.a.mergeOptions(this.options.analyticsOptions,{actionType:a.q.EditAssoc,entity:a.e.Folder,workflowPhase:a.r.Start,descriptor:a.a.Image}),appLink:{application:l.b.LIBRARY_EDITOR,action:l.a.LibraryEditor.EDIT_FOLDER_IMAGES,args:[this.model.get("id")]}},{title:s.a.getPhrase(this.lang,"generatePdf"),analyticsOptions:c.a.mergeOptions(this.options.analyticsOptions,{actionType:a.q.Create,entity:a.e.PDF,workflowPhase:a.r.Start}),appLink:{application:l.b.LIBRARY_EDITOR,action:l.a.LibraryEditor.GENERATE_PDF,args:[this.model.get("id")]}},{title:s.a.getPhrase(this.lang,"remove"),analyticsOptions:c.a.mergeOptions(this.options.analyticsOptions,{actionType:a.q.Delete,entity:a.e.Folder,workflowPhase:a.r.Start}),classes:"text-danger",appLink:{application:l.b.LIBRARY_EDITOR,action:l.a.LibraryEditor.DELETE_FOLDER,args:[this.model.get("id")]}}]}},{key:"onRender",value:function(){this.showChildView("items",new u.a({analyticsHelper:c.a,displayOptions:{alignment:"right"},channelName:this.channelName,collection:new r.a.Collection(this.getFolderActions()),childOptions:{isDisabled:function(){return this.model.get("disabled")}}}))}},{key:"name",get:function(){return"FolderActionsDropdownComponent"}},{key:"template",get:function(){return p.a}},{key:"lang",get:function(){return"libraryEditor.folderActionsDropdown"}},{key:"channelName",get:function(){return"".concat(this.name).concat(this.cid)}}])&&d(e.prototype,n),o&&d(e,o),f}(r.a.Component),w=n(1104),O=n.n(w),R=n(1105),_=n.n(R);function k(t){return(k="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t})(t)}function S(t,e){for(var n=0;n<e.length;n++){var r=e[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(t,r.key,r)}}function E(t,e){return(E=Object.setPrototypeOf||function(t,e){return t.__proto__=e,t})(t,e)}function P(t){var e=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(t){return!1}}();return function(){var n,r=j(t);if(e){var o=j(this).constructor;n=Reflect.construct(r,arguments,o)}else n=r.apply(this,arguments);return D(this,n)}}function D(t,e){return!e||"object"!==k(e)&&"function"!=typeof e?function(t){if(void 0===t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return t}(t):e}function j(t){return(j=Object.setPrototypeOf?Object.getPrototypeOf:function(t){return t.__proto__||Object.getPrototypeOf(t)})(t)}n.d(e,"a",(function(){return C}));var C=function(t){!function(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function");t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,writable:!0,configurable:!0}}),e&&E(t,e)}(c,t);var e,n,r,a=P(c);function c(t){return function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,c),a.call(this,t)}return e=c,(n=[{key:"events",value:function(){return{"click @ui.dropdownToggle":"onClickDropdownToggle","click @ui.dropdownItem":"onClickDropdownItem"}}},{key:"regions",value:function(){return{items:{replaceElement:!0,el:".items-region"}}}},{key:"onClickDropdownToggle",value:function(){this.model instanceof i.a&&this.showChildView("items",new v({model:this.model,analyticsOptions:this.options.analyticsOptions}))}},{key:"onClickDropdownItem",value:function(t){t.stopPropagation(),t.preventDefault(),this.getUI("dropdownToggle").dropdown("toggle")}},{key:"viewOptions",value:function(){return{hasActions:this.model instanceof i.a,dropdownClass:"".concat(_.a.dropdownButton," ").concat(this.options.buttonClass),svg:o.a.getSvg(o.b.More)}}},{key:"name",get:function(){return"VideoCollectionActionsComponent"}},{key:"channelName",get:function(){return"".concat(this.name).concat(this.cid)}},{key:"className",get:function(){if(this.model instanceof i.a)return"position-absolute ".concat(this.options.overrideClasses?"":_.a.dropdownContainer," ").concat(this.options.extraClasses," ")}},{key:"elements",get:function(){return{dropdownToggle:".ui-dropdown-toggle",dropdownItem:".dropdown-item"}}},{key:"template",get:function(){return O.a}}])&&S(e.prototype,n),r&&S(e,r),c}(r.a.Component)},1102:function(t,e,n){t.exports={dragging:"_2wBn3",draggingFolder:"_1r3AS"}},1103:function(t,e,n){var r=n(10);t.exports=(r.default||r).template({compiler:[8,">= 4.3.0"],main:function(t,e,n,r,o){return'<div class="items-region"></div>'},useData:!0})},1104:function(t,e,n){var r=n(10);t.exports=(r.default||r).template({1:function(t,e,n,r,o){t.propertyIsEnumerable;var i,a=t.lambda;return'<span data-toggle="dropdown" aria-haspopup="true" aria-expanded="false" class="'+t.escapeExpression(a(null!=(i=null!=e?e.options:e)?i.dropdownClass:i,e))+' d-inline-block ui-dropdown-toggle">\r\n '+(null!=(i=a(null!=(i=null!=e?e.options:e)?i.svg:i,e))?i:"")+'\r\n</span>\r\n<div class="items-region"></div>\r\n'},compiler:[8,">= 4.3.0"],main:function(t,e,n,r,o){var i;t.propertyIsEnumerable;return null!=(i=n.if.call(null!=e?e:t.nullContext||{},null!=(i=null!=e?e.options:e)?i.hasActions:i,{name:"if",hash:{},fn:t.program(1,o,0),inverse:t.noop,data:o}))?i:""},useData:!0})},1105:function(t,e,n){t.exports={dropdownContainer:"_2F3Cz",dropdownButton:"_2TdId"}},1125:function(t,e,n){"use strict";n.d(e,"a",(function(){return w}));var r=n(2),o=n(15),i=n(4),a=n(42),c=n(1043),u=n(0),l=n(3),s=n(1126),f=n.n(s),p=n(1127),y=n.n(p);function d(t){return(d="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t})(t)}function h(t,e){for(var n=0;n<e.length;n++){var r=e[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(t,r.key,r)}}function b(t,e){return(b=Object.setPrototypeOf||function(t,e){return t.__proto__=e,t})(t,e)}function g(t){var e=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(t){return!1}}();return function(){var n,r=v(t);if(e){var o=v(this).constructor;n=Reflect.construct(r,arguments,o)}else n=r.apply(this,arguments);return m(this,n)}}function m(t,e){return!e||"object"!==d(e)&&"function"!=typeof e?function(t){if(void 0===t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return t}(t):e}function v(t){return(v=Object.setPrototypeOf?Object.getPrototypeOf:function(t){return t.__proto__||Object.getPrototypeOf(t)})(t)}var w=function(t){!function(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function");t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,writable:!0,configurable:!0}}),e&&b(t,e)}(d,t);var e,n,s,p=g(d);function d(t){return function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,d),p.call(this,t)}return e=d,(n=[{key:"events",value:function(){return{"click @ui.dropdownToggle":"onClickDropdownToggle","click @ui.dropdownItem":"onClickDropdownItem"}}},{key:"regions",value:function(){return{dropdownItems:{replaceElement:!0,el:".items-region"}}}},{key:"onClickDropdownToggle",value:function(){this.showChildView("dropdownItems",new c.a({analyticsHelper:a.a,displayOptions:{alignment:"right"},channelName:this.channelName,collection:new r.a.Collection([{title:l.a.getPhrase(this.lang,"addFolder"),analyticsOptions:a.a.mergeOptions(this.options.analyticsOptions,{actionType:i.q.Create,entity:i.e.Folder,workflowPhase:i.r.Start}),appLink:{application:u.b.LIBRARY_EDITOR,action:u.a.Shared.NEW_FOLDER,args:[this.model.get("id")]}},{title:l.a.getPhrase(this.lang,"rename"),analyticsOptions:a.a.mergeOptions(this.options.analyticsOptions,{actionType:i.q.Rename,entity:i.e.Library,workflowPhase:i.r.Start}),appLink:{application:u.b.LIBRARY_EDITOR,action:u.a.LibraryEditor.RENAME_LIBRARY,args:[this.model.get("id")]}},{title:l.a.getPhrase(this.lang,"remove"),analyticsOptions:a.a.mergeOptions(this.options.analyticsOptions,{actionType:i.q.Delete,entity:i.e.Library,workflowPhase:i.r.Start}),appLink:{application:u.b.LIBRARY_EDITOR,action:u.a.LibraryEditor.DELETE_LIBRARY,args:[this.model.get("id")]},classes:"text-danger"}])}))}},{key:"onClickDropdownItem",value:function(t){t.stopPropagation(),t.preventDefault(),this.getUI("dropdownToggle").dropdown("toggle")}},{key:"viewOptions",value:function(){return{dropdownClass:"".concat(y.a.dropdownButton," ").concat(this.options.buttonClass),svg:o.a.getSvg(o.b.More)}}},{key:"name",get:function(){return"LibraryActionsComponent"}},{key:"template",get:function(){return f.a}},{key:"channelName",get:function(){return"".concat(this.name).concat(this.cid)}},{key:"lang",get:function(){return"libraryEditor.libraryActions"}},{key:"className",get:function(){return"position-absolute ".concat(y.a.dropdownContainer," ").concat(this.options.extraClasses," ")}},{key:"elements",get:function(){return{dropdownToggle:".ui-dropdown-toggle",dropdownItem:".dropdown-item"}}}])&&h(e.prototype,n),s&&h(e,s),d}(r.a.Component)},1126:function(t,e,n){var r=n(10);t.exports=(r.default||r).template({compiler:[8,">= 4.3.0"],main:function(t,e,n,r,o){t.propertyIsEnumerable;var i,a=t.lambda;return'<span data-toggle="dropdown" aria-haspopup="true" aria-expanded="false" class="'+t.escapeExpression(a(null!=(i=null!=e?e.options:e)?i.dropdownClass:i,e))+' d-inline-block ui-dropdown-toggle">\r\n '+(null!=(i=a(null!=(i=null!=e?e.options:e)?i.svg:i,e))?i:"")+'\r\n</span>\r\n<div class="items-region"></div>'},useData:!0})},1127:function(t,e,n){t.exports={dropdownContainer:"_293SV",dropdownButton:"_23YxG"}},1204:function(t,e,n){var r=n(10);t.exports=(r.default||r).template({compiler:[8,">= 4.3.0"],main:function(t,e,n,r,o){t.propertyIsEnumerable;var i,a,c=t.lambda,u=t.escapeExpression;return'<a\r\n class="d-block cursor-pointer no-decoration '+u(c(null!=(i=null!=(i=null!=e?e.options:e)?i.styles:i)?i.folder:i,e))+'"\r\n style="background-image: url(\''+u(c(null!=(i=null!=e?e.options:e)?i.imageUrl:i,e))+'\')"\r\n>\r\n <h3 class="position-absolute text-white text-center m-0">'+u("function"==typeof(a=null!=(a=n.name||(null!=e?e.name:e))?a:t.hooks.helperMissing)?a.call(null!=e?e:t.nullContext||{},{name:"name",hash:{},data:o}):a)+'</h3>\r\n</a>\r\n<div class="actions-region"></div>'},useData:!0})},1205:function(t,e,n){t.exports={folder:"_1MHyt",actions:"_3-hwy"}},1206:function(t,e,n){var r=n(10);t.exports=(r.default||r).template({compiler:[8,">= 4.3.0"],main:function(t,e,n,r,o){var i;t.propertyIsEnumerable;return'<h1 class="h3">'+t.escapeExpression("function"==typeof(i=null!=(i=n.name||(null!=e?e.name:e))?i:t.hooks.helperMissing)?i.call(null!=e?e:t.nullContext||{},{name:"name",hash:{},data:o}):i)+'</h1>\r\n<div class="folders-region"></div>\r\n<div class="actions-region"></div>'},useData:!0})},1207:function(t,e,n){t.exports={actions:"_3vCmp"}},1468:function(t,e,n){"use strict";n.r(e);var r=n(1),o=n(2),i=n(5),a=n(3),c=n(4),u=n(15),l=n(285),s=n(37),f=n(187),p=n(0),y=n(8),d=n(1091),h=n(1204),b=n.n(h),g=n(1205),m=n.n(g),v=n(13),w=n(1096),O=(n(1057),n(1093)),R=n(1100);function _(t){return(_="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t})(t)}function k(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}function S(t,e){for(var n=0;n<e.length;n++){var r=e[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(t,r.key,r)}}function E(t,e,n){return e&&S(t.prototype,e),n&&S(t,n),t}function P(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function");t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,writable:!0,configurable:!0}}),e&&D(t,e)}function D(t,e){return(D=Object.setPrototypeOf||function(t,e){return t.__proto__=e,t})(t,e)}function j(t){var e=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(t){return!1}}();return function(){var n,r=I(t);if(e){var o=I(this).constructor;n=Reflect.construct(r,arguments,o)}else n=r.apply(this,arguments);return C(this,n)}}function C(t,e){return!e||"object"!==_(e)&&"function"!=typeof e?function(t){if(void 0===t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return t}(t):e}function I(t){return(I=Object.setPrototypeOf?Object.getPrototypeOf:function(t){return t.__proto__||Object.getPrototypeOf(t)})(t)}var T=function(t){P(n,t);var e=j(n);function n(t){return k(this,n),e.call(this,t)}return E(n,[{key:"initialize",value:function(){this.listenTo(this.model,"change:name",this.render)}},{key:"regions",value:function(){return{actions:{el:".actions-region",replaceElement:!0}}}},{key:"viewOptions",value:function(){var t=v.g.createFolderThumbnailUrl(this.model.thumbnail,{fallbackBaseUrl:this.options.imageCdnUrl,fallbackCategoryName:this.model.get("name"),type:y.f.Thumbnails});return{styles:m.a,imageUrl:t}}},{key:"onRender",value:function(){this.showChildView("actions",new R.a({model:this.model,extraClasses:"".concat(m.a.actions," rounded-circle"),buttonClass:"text-light",analyticsOptions:{location:c.k.LibraryTiles},overrideClasses:!0}))}},{key:"name",get:function(){return"LibraryFolderItemComponent"}},{key:"template",get:function(){return b.a}},{key:"className",get:function(){return"col-3 p-2"}},{key:"appLinks",get:function(){return{a:{application:p.b.LIBRARY_EDITOR,action:p.a.LibraryEditor.FOLDER,args:[this.model.get("id")]}}}},{key:"behaviors",get:function(){return[{behaviorClass:O.a,channelNames:[p.w.VIDEO_DRAG_DROP,p.w.FOLDER_DRAG_DROP],analyticsOptions:{location:c.k.LibraryTiles}},{behaviorClass:w.a}]}}]),n}(o.a.Component),x=function(t){P(n,t);var e=j(n);function n(t){return k(this,n),e.call(this,t)}return E(n,[{key:"name",get:function(){return"LibraryFolderListComponent"}},{key:"className",get:function(){return"row"}},{key:"childView",get:function(){return T}},{key:"childViewOptions",get:function(){return this.options.childOptions}}]),n}(o.a.ComponentCollection),L=n(1125),A=n(1206),F=n.n(A),B=n(1207),N=n.n(B);function V(t){return(V="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t})(t)}function M(t,e){for(var n=0;n<e.length;n++){var r=e[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(t,r.key,r)}}function U(t,e){return(U=Object.setPrototypeOf||function(t,e){return t.__proto__=e,t})(t,e)}function Y(t){var e=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(t){return!1}}();return function(){var n,r=G(t);if(e){var o=G(this).constructor;n=Reflect.construct(r,arguments,o)}else n=r.apply(this,arguments);return q(this,n)}}function q(t,e){return!e||"object"!==V(e)&&"function"!=typeof e?function(t){if(void 0===t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return t}(t):e}function G(t){return(G=Object.setPrototypeOf?Object.getPrototypeOf:function(t){return t.__proto__||Object.getPrototypeOf(t)})(t)}n.d(e,"LibraryView",(function(){return H}));var H=function(t){!function(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function");t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,writable:!0,configurable:!0}}),e&&U(t,e)}(b,t);var e,n,o,h=Y(b);function b(t){return function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,b),h.call(this,t)}return e=b,(n=[{key:"initialize",value:function(){var t=this;this.libraryDataService=i.a.getInstance(p.g.Library,this),this.listenTo(p.e.LIBRARY,"clear:library:folder:cache",(function(){t.folders=null,t.render()}))}},{key:"regions",value:function(){return{folders:{el:".folders-region",replaceElement:!0,partialLoading:y.j.LibraryFolders},actions:{el:".actions-region",replaceElement:!0}}}},{key:"renderFolders",value:function(){this.showChildView("folders",new x({collection:this.folders,childOptions:{imageCdnUrl:this.config.get("imageCdnUrl")}}))}},{key:"renderActions",value:function(){this.showChildView("actions",new L.a({model:this.model,extraClasses:"".concat(N.a.actions," rounded-circle mr-2 mt-2"),analyticsOptions:{location:c.k.Banner}}))}},{key:"bindScrollListener",value:function(){var t=this;if(!this.scrollBound){this.scrollBound=!0;var e=$(window),n=r.debounce((function(){if(e.scrollTop()+e.height()>t.$el.offset().top+t.$el.height()&&t.currentIdentifier){var n=t.libraryDataService.getLibraryFoldersCursors(t.currentIdentifier);n&&n.next&&t.libraryDataService.getLibraryFolders(t.getNewCollectionIdentifier(n.next),(function(e){t.folders.add(e.toJSON())}))}}),333);e.scroll(n),window.setTimeout(n,100)}}},{key:"getNewCollectionIdentifier",value:function(t){return this.currentIdentifier=new d.a(this.model.categoryTree.get("id"),s.a.AtoZ,t)}},{key:"onBeforeRender",value:function(){var t=this;if(this.model)return this.folders||this.libraryDataService.getLibraryFolders(this.getNewCollectionIdentifier(),(function(e){t.folders=e,t.render()})),!!this.model&&!!this.folders;this.libraryDataService.getLibraries((function(e){t.model=e.get(t.options.libraryId),t.listenTo(t.model,"change:name",t.render),t.render()}))}},{key:"onRender",value:function(){this.renderFolders(),this.renderActions(),this.bindScrollListener()}},{key:"name",get:function(){return"LibraryView"}},{key:"title",get:function(){return!!this.model&&this.model.get("name")}},{key:"lang",get:function(){return"libraryEditor.library"}},{key:"template",get:function(){return F.a}},{key:"className",get:function(){return"bg-white px-3 pt-3 pb-2 position-relative ".concat(N.a.library)}},{key:"behaviors",get:function(){var t=this;return[{behaviorClass:l.a,region:"folders",type:y.c.Library,shouldRender:function(){return t.model&&!t.model.children.length},componentOptions:{libraryId:this.options.libraryId,moreSvg:u.a.getSvg(u.b.More),heading:a.a.getPhrase(this.lang,"emptyStateHeading"),description:a.a.getPhrase(this.lang,"emptyStateInfo",{moreSvg:'<span class="d-inline-block svg-container align-top">\n '.concat(u.a.getSvg(u.b.More),"</span>")})},emptyStateComponents:p.h}]}},{key:"requiredResources",get:function(){return{config:f.b.config}}}])&&M(e.prototype,n),o&&M(e,o),b}(o.a.View)}}]);
1
+ (window.webpackJsonp_clickview_library_editor=window.webpackJsonp_clickview_library_editor||[]).push([[26],{1056:function(t,e,n){t.exports={dragItem:"_2TIZ7",svgContainer:"_3JzEU",dragText:"_1Kdwj"}},1057:function(t,e,n){var r=n(10);t.exports=(r.default||r).template({compiler:[8,">= 4.3.0"],main:function(t,e,n,r,o){t.propertyIsEnumerable;var i,a=t.lambda,c=t.escapeExpression;return'<span class="'+c(a(null!=(i=null!=(i=null!=e?e.options:e)?i.styles:i)?i.svgContainer:i,e))+' mr-2">'+(null!=(i=a(null!=(i=null!=e?e.options:e)?i.svg:i,e))?i:"")+'</span>\r\n<span class="'+c(a(null!=(i=null!=(i=null!=e?e.options:e)?i.styles:i)?i.dragText:i,e))+'">'+c(a(null!=(i=null!=e?e.options:e)?i.text:i,e))+"</span>"},useData:!0})},1063:function(t,e,n){"use strict";n.d(e,"a",(function(){return p}));var r=n(1),o=n(2),i=n(287);function a(t){return(a="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t})(t)}function c(t,e){for(var n=0;n<e.length;n++){var r=e[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(t,r.key,r)}}function u(t,e){return(u=Object.setPrototypeOf||function(t,e){return t.__proto__=e,t})(t,e)}function l(t){var e=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(t){return!1}}();return function(){var n,r=f(t);if(e){var o=f(this).constructor;n=Reflect.construct(r,arguments,o)}else n=r.apply(this,arguments);return s(this,n)}}function s(t,e){return!e||"object"!==a(e)&&"function"!=typeof e?function(t){if(void 0===t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return t}(t):e}function f(t){return(f=Object.setPrototypeOf?Object.getPrototypeOf:function(t){return t.__proto__||Object.getPrototypeOf(t)})(t)}var p=function(t){!function(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function");t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,writable:!0,configurable:!0}}),e&&u(t,e)}(s,t);var e,n,o,a=l(s);function s(t){return function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,s),a.call(this,t)}return e=s,(n=[{key:"initialize",value:function(){this.listenTo(this.options.channelName,"center:dropdown",this.centerSelectedItem)}},{key:"getExtraClasses",value:function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},e=t.alignment,n=void 0===e?"left":e,r=t.extraClasses,o="dropdown-menu-".concat(n);return r&&(o="".concat(o," ").concat(r)),o}},{key:"centerSelectedItem",value:function(){var t=this.$el.find(".active");if(t.length){var e=this.$el.scrollTop()+t.position().top,n=.5*this.$el.height()+.5*t.height();this.$el.scrollTop(e-n)}}},{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 t={channelName:this.options.channelName,analyticsHelper:this.options.analyticsHelper};return r.extend(t,this.options.childOptions)}}])&&c(e.prototype,n),o&&c(e,o),s}(o.a.ComponentCollection)},1071:function(t,e,n){"use strict";var r=n(1056),o=n.n(r),i=n(1057),a=n.n(i);function c(t){return(c="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t})(t)}function u(t,e){for(var n=0;n<e.length;n++){var r=e[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(t,r.key,r)}}function l(t,e){return(l=Object.setPrototypeOf||function(t,e){return t.__proto__=e,t})(t,e)}function s(t){var e=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(t){return!1}}();return function(){var n,r=p(t);if(e){var o=p(this).constructor;n=Reflect.construct(r,arguments,o)}else n=r.apply(this,arguments);return f(this,n)}}function f(t,e){return!e||"object"!==c(e)&&"function"!=typeof e?function(t){if(void 0===t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return t}(t):e}function p(t){return(p=Object.setPrototypeOf?Object.getPrototypeOf:function(t){return t.__proto__||Object.getPrototypeOf(t)})(t)}var y=function(t){!function(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function");t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,writable:!0,configurable:!0}}),e&&l(t,e)}(c,t);var e,n,r,i=s(c);function c(t){return function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,c),i.call(this,t)}return e=c,(n=[{key:"viewOptions",value:function(){return Object.assign({styles:o.a},this.options)}},{key:"name",get:function(){return"DraggableItemComponent"}},{key:"template",get:function(){return a.a}},{key:"className",get:function(){return"".concat(o.a.dragItem," p-3")}}])&&u(e.prototype,n),r&&u(e,r),c}(n(2).a.Component),d={delay:150,cursorAt:{left:-20,top:10},refreshPositions:!0};n.d(e,"c",(function(){return o.a})),n.d(e,"b",(function(){return y})),n.d(e,"a",(function(){return d}))},1077:function(t,e,n){"use strict";n.d(e,"a",(function(){return R}));var r=n(1),o=n(6),i=n(2),a=n(19),c=n(15),u=n(0),l=n(12),s=n(3),f=n(1071),p=n(186),y=n(1079),d=n.n(y);function h(t){return(h="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t})(t)}function b(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}function g(t,e){for(var n=0;n<e.length;n++){var r=e[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(t,r.key,r)}}function m(t,e){return(m=Object.setPrototypeOf||function(t,e){return t.__proto__=e,t})(t,e)}function v(t){var e=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(t){return!1}}();return function(){var n,r=O(t);if(e){var o=O(this).constructor;n=Reflect.construct(r,arguments,o)}else n=r.apply(this,arguments);return w(this,n)}}function w(t,e){return!e||"object"!==h(e)&&"function"!=typeof e?function(t){if(void 0===t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return t}(t):e}function O(t){return(O=Object.setPrototypeOf?Object.getPrototypeOf:function(t){return t.__proto__||Object.getPrototypeOf(t)})(t)}var R=function(t){!function(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function");t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,writable:!0,configurable:!0}}),e&&m(t,e)}(w,t);var e,n,y,h=v(w);function w(){return b(this,w),h.apply(this,arguments)}return e=w,(n=[{key:"initialize",value:function(){this.options.model||i.a.ErrorHelper.throw(new a.a("DraggableVideoBehavior must be passed a Video model")),this.listenTo(u.w.VIDEO_DRAG_DROP,"drag:style:".concat(this.options.model.id),this.styleDragStart),this.listenTo(u.w.VIDEO_DRAG_DROP,"drag:stop",this.styleDragStop)}},{key:"helper",value:function(){var t=this.getVideoModels();return new f.b({text:t.length>1?s.a.getPhrase(this.lang,"videos",{videoCount:t.length}):t[0].get("name"),svg:c.a.getSvg(c.b.Play)}).render().el}},{key:"getSelector",value:function(){return this.view.getUI(this.options.selector)}},{key:"styleDragStart",value:function(){this.getSelector().addClass(d.a.draggingVideo)}},{key:"styleDragStop",value:function(){this.getSelector().removeClass(d.a.draggingVideo)}},{key:"start",value:function(){var t=this.getVideoModels(),e=o.Radio.channel(u.w.VIDEO_DRAG_DROP);e.trigger("drag:start",t,this.options.collectionIdentifier),r.each(t,(function(t){return e.trigger("drag:style:".concat(t.id))}))}},{key:"stop",value:function(){o.Radio.channel(u.w.VIDEO_DRAG_DROP).trigger("drag:stop")}},{key:"getVideoModels",value:function(){var t=this,e=l.a.GetSelectedModels({key:this.options.collectionIdentifier.toString(),type:p.a.VIDEO_LIST,collection:this.view.model.collection});return r.any(e,(function(e){return e.id===t.view.model.id}))||(e=[this.view.model]),e.length?e:[this.view.model]}},{key:"getClassMappings",value:function(){return{"ui-draggable":f.c.draggable,"ui-draggable-disabled":f.c.disabled,"ui-draggable-handle":f.c.handle,"ui-draggable-dragging":f.c.dragging}}},{key:"onRender",value:function(){var t=this.getSelector(),e={helper:r.bind(this.helper,this),start:r.bind(this.start,this),stop:r.bind(this.stop,this)};e.classes=this.getClassMappings(),t.draggable(r.extend({},f.a,e))}},{key:"onBeforeDestroy",value:function(){var t=this.getSelector();t.draggable("instance")&&t.draggable("destroy")}},{key:"lang",get:function(){return"libraryEditor.behaviors"}}])&&g(e.prototype,n),y&&g(e,y),w}(i.a.Behavior)},1079:function(t,e,n){t.exports={draggingVideo:"_3cCHx"}},1111:function(t,e,n){"use strict";var r=n(190),o=n(1),i=n(188),a=n(0),c=n(135),u=n(284);function l(t){return(l="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t})(t)}function s(t){return function(t){if(Array.isArray(t))return f(t)}(t)||function(t){if("undefined"!=typeof Symbol&&Symbol.iterator in Object(t))return Array.from(t)}(t)||function(t,e){if(!t)return;if("string"==typeof t)return f(t,e);var n=Object.prototype.toString.call(t).slice(8,-1);"Object"===n&&t.constructor&&(n=t.constructor.name);if("Map"===n||"Set"===n)return Array.from(t);if("Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n))return f(t,e)}(t)||function(){throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function f(t,e){(null==e||e>t.length)&&(e=t.length);for(var n=0,r=new Array(e);n<e;n++)r[n]=t[n];return r}function p(t,e){for(var n=0;n<e.length;n++){var r=e[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(t,r.key,r)}}function y(t,e){return(y=Object.setPrototypeOf||function(t,e){return t.__proto__=e,t})(t,e)}function d(t){var e=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(t){return!1}}();return function(){var n,r=b(t);if(e){var o=b(this).constructor;n=Reflect.construct(r,arguments,o)}else n=r.apply(this,arguments);return h(this,n)}}function h(t,e){return!e||"object"!==l(e)&&"function"!=typeof e?function(t){if(void 0===t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return t}(t):e}function b(t){return(b=Object.setPrototypeOf?Object.getPrototypeOf:function(t){return t.__proto__||Object.getPrototypeOf(t)})(t)}var g=function(t){!function(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function");t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,writable:!0,configurable:!0}}),e&&y(t,e)}(l,t);var e,n,r,i=d(l);function l(t){var e;return function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,l),(e=i.call(this,{collectionPrefix:"".concat(a.f.RECENT_VIDEOS,":collection"),cursor:t.cursor,sort:t.sort})).setAdditionalData(t),e}return e=l,(n=[{key:"setAdditionalData",value:function(t){var e=t.libraryIds,n=t.dateQueryString,r=t.subjects;e&&(this.libraryIds=e),r&&(o.isArray(r)&&r.length&&(this.subjects=r),o.isArray(r)||(this.subjects=[r]));var i=o.findWhere(u.g,{queryString:n})||u.e;this.dateOption=new c.b(i)}},{key:"toString",value:function(){var t=this.subjects&&this.subjects.length&&this.subjects.map((function(t){return escape(t.get("name"))}))||[];return[this.collectionPrefix,this.libraryIds,this.dateOption.get("from"),this.dateOption.get("to")].concat(s(t),[this.cursor]).filter(Boolean).join(":")}},{key:"toParams",value:function(){var t={};return this.libraryIds&&(t.libraryIds=this.libraryIds),this.dateOption&&(t.from=this.dateOption.get("from"),t.to=this.dateOption.get("to")),this.subjects&&(t.subjectIds=o.flatten(this.subjects.map((function(t){return t.get("subjectIds")})))),this.cursor&&(t.cursor=this.cursor),t}}])&&p(e.prototype,n),r&&p(e,r),l}(i.a);function m(t){return(m="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t})(t)}function v(t,e){for(var n=0;n<e.length;n++){var r=e[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(t,r.key,r)}}function w(t,e){return(w=Object.setPrototypeOf||function(t,e){return t.__proto__=e,t})(t,e)}function O(t){var e=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(t){return!1}}();return function(){var n,r=_(t);if(e){var o=_(this).constructor;n=Reflect.construct(r,arguments,o)}else n=r.apply(this,arguments);return R(this,n)}}function R(t,e){return!e||"object"!==m(e)&&"function"!=typeof e?function(t){if(void 0===t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return t}(t):e}function _(t){return(_=Object.setPrototypeOf?Object.getPrototypeOf:function(t){return t.__proto__||Object.getPrototypeOf(t)})(t)}var k=function(t){!function(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function");t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,writable:!0,configurable:!0}}),e&&w(t,e)}(l,t);var e,n,r,i=O(l);function l(t){var e;return function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,l),(e=i.call(this,{collectionPrefix:"".concat(a.f.RECENT_SUBJECTS,":collection"),sort:t.sort})).setAdditionalData(t),e}return e=l,(n=[{key:"setAdditionalData",value:function(t){var e=t.libraryIds,n=t.dateQueryString;e&&(this.libraryIds=e);var r=o.findWhere(u.g,{queryString:n})||u.e;this.dateOption=new c.b(r)}},{key:"toString",value:function(){return[this.collectionPrefix,this.libraryIds,this.dateOption.get("from"),this.dateOption.get("to")].filter(Boolean).join(":")}},{key:"toParams",value:function(){var t={};return this.libraryIds&&(t.libraryIds=this.libraryIds),this.dateOption&&(t.from=this.dateOption.get("from"),t.to=this.dateOption.get("to")),t}}])&&v(e.prototype,n),r&&v(e,r),l}(i.a);function S(t){return(S="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t})(t)}function E(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}function P(t,e){return(P=Object.setPrototypeOf||function(t,e){return t.__proto__=e,t})(t,e)}function D(t){var e=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(t){return!1}}();return function(){var n,r=C(t);if(e){var o=C(this).constructor;n=Reflect.construct(r,arguments,o)}else n=r.apply(this,arguments);return j(this,n)}}function j(t,e){return!e||"object"!==S(e)&&"function"!=typeof e?function(t){if(void 0===t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return t}(t):e}function C(t){return(C=Object.setPrototypeOf?Object.getPrototypeOf:function(t){return t.__proto__||Object.getPrototypeOf(t)})(t)}var I=function(t){!function(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function");t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,writable:!0,configurable:!0}}),e&&P(t,e)}(n,t);var e=D(n);function n(t,r){var o=arguments.length>2&&void 0!==arguments[2]?arguments[2]:"";return E(this,n),e.call(this,{collectionPrefix:a.f.LIBRARY_FOLDERS,id:t,sort:r,cursor:o})}return n}(i.a);n.d(e,"d",(function(){return r.a})),n.d(e,"b",(function(){return g})),n.d(e,"c",(function(){return k})),n.d(e,"a",(function(){return I}))},1113:function(t,e,n){"use strict";n.d(e,"a",(function(){return d}));var r=n(1),o=n(6),i=n(2),a=n(146);function c(t){return(c="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t})(t)}function u(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}function l(t,e){for(var n=0;n<e.length;n++){var r=e[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(t,r.key,r)}}function s(t,e){return(s=Object.setPrototypeOf||function(t,e){return t.__proto__=e,t})(t,e)}function f(t){var e=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(t){return!1}}();return function(){var n,r=y(t);if(e){var o=y(this).constructor;n=Reflect.construct(r,arguments,o)}else n=r.apply(this,arguments);return p(this,n)}}function p(t,e){return!e||"object"!==c(e)&&"function"!=typeof e?function(t){if(void 0===t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return t}(t):e}function y(t){return(y=Object.setPrototypeOf?Object.getPrototypeOf:function(t){return t.__proto__||Object.getPrototypeOf(t)})(t)}var d=function(t){!function(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function");t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,writable:!0,configurable:!0}}),e&&s(t,e)}(p,t);var e,n,i,c=f(p);function p(){return u(this,p),c.apply(this,arguments)}return e=p,(n=[{key:"getDroppableElement",value:function(){return this.options.ui?this.view.getUI(this.options.ui):this.$el}},{key:"drop",value:function(){var t=this;r.each(this.options.channelNames,(function(e){o.Radio.channel(e).trigger("drag:drop",t.view.model,t.options.analyticsOptions)}))}},{key:"accept",value:function(){var t=this,e=!1;return r.each(this.options.channelNames,(function(n){!0===o.Radio.channel(n).request("accept",t.view.model)&&(e=!0)})),e}},{key:"over",value:function(){var t=this;this.isHoveringOver=!0,window.setTimeout((function(){t.isHoveringOver&&t.view.trigger("open:sub:folders",a.active)}),500)}},{key:"out",value:function(){this.isHoveringOver=!1}},{key:"onRender",value:function(){var t={tolerance:"pointer",drop:r.bind(this.drop,this),accept:r.bind(this.accept,this),over:r.bind(this.over,this),out:r.bind(this.out,this)};t.classes={"ui-droppable":a.droppable,"ui-droppable-active":a.active,"ui-droppable-hover":a.hover},this.getDroppableElement().droppable(t)}},{key:"onBeforeDestroy",value:function(){this.getDroppableElement().droppable("instance")&&this.getDroppableElement().droppable("destroy")}}])&&l(e.prototype,n),i&&l(e,i),p}(i.a.Behavior)},1116:function(t,e,n){"use strict";n.d(e,"a",(function(){return m}));var r=n(1),o=n(6),i=n(2),a=n(15),c=n(0),u=n(1071),l=n(1122),s=n.n(l);function f(t){return(f="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t})(t)}function p(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}function y(t,e){for(var n=0;n<e.length;n++){var r=e[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(t,r.key,r)}}function d(t,e){return(d=Object.setPrototypeOf||function(t,e){return t.__proto__=e,t})(t,e)}function h(t){var e=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(t){return!1}}();return function(){var n,r=g(t);if(e){var o=g(this).constructor;n=Reflect.construct(r,arguments,o)}else n=r.apply(this,arguments);return b(this,n)}}function b(t,e){return!e||"object"!==f(e)&&"function"!=typeof e?function(t){if(void 0===t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return t}(t):e}function g(t){return(g=Object.setPrototypeOf?Object.getPrototypeOf:function(t){return t.__proto__||Object.getPrototypeOf(t)})(t)}var m=function(t){!function(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function");t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,writable:!0,configurable:!0}}),e&&d(t,e)}(f,t);var e,n,i,l=h(f);function f(){return p(this,f),l.apply(this,arguments)}return e=f,(n=[{key:"getClassMappings",value:function(){return{"ui-draggable":u.c.draggable,"ui-draggable-handle":u.c.handle,"ui-draggable-disabled":u.c.disabled,"ui-draggable-dragging":u.c.dragging}}},{key:"helper",value:function(){return new u.b({text:this.view.model.get("name"),svg:a.a.getSvg(a.b.Folder)}).render().el}},{key:"start",value:function(){o.Radio.channel(c.w.FOLDER_DRAG_DROP).trigger("drag:start",this.view.model),this.view.$el.addClass(s.a.draggingFolder)}},{key:"stop",value:function(){o.Radio.channel(c.w.FOLDER_DRAG_DROP).trigger("drag:stop"),this.view.$el.removeClass(s.a.draggingFolder)}},{key:"onRender",value:function(){var t={helper:r.bind(this.helper,this),start:r.bind(this.start,this),stop:r.bind(this.stop,this)};t.classes=this.getClassMappings(),this.view.$el.draggable(r.extend({},u.a,t))}},{key:"onBeforeDestroy",value:function(){this.view.$el.draggable("instance")&&this.view.$el.draggable("destroy")}}])&&y(e.prototype,n),i&&y(e,i),f}(i.a.Behavior)},1120:function(t,e,n){"use strict";var r=n(2),o=n(15),i=n(82),a=n(4),c=n(42),u=n(1063),l=n(0),s=n(3),f=n(1123),p=n.n(f);function y(t){return(y="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t})(t)}function d(t,e){for(var n=0;n<e.length;n++){var r=e[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(t,r.key,r)}}function h(t,e){return(h=Object.setPrototypeOf||function(t,e){return t.__proto__=e,t})(t,e)}function b(t){var e=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(t){return!1}}();return function(){var n,r=m(t);if(e){var o=m(this).constructor;n=Reflect.construct(r,arguments,o)}else n=r.apply(this,arguments);return g(this,n)}}function g(t,e){return!e||"object"!==y(e)&&"function"!=typeof e?function(t){if(void 0===t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return t}(t):e}function m(t){return(m=Object.setPrototypeOf?Object.getPrototypeOf:function(t){return t.__proto__||Object.getPrototypeOf(t)})(t)}var v=function(t){!function(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function");t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,writable:!0,configurable:!0}}),e&&h(t,e)}(f,t);var e,n,o,i=b(f);function f(t){return function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,f),i.call(this,t)}return e=f,(n=[{key:"regions",value:function(){return{items:{el:".items-region",replaceElement:!0}}}},{key:"getFolderActions",value:function(){return[{title:s.a.getPhrase(this.lang,"addSubfolder"),analyticsOptions:c.a.mergeOptions(this.options.analyticsOptions,{actionType:a.q.Create,entity:a.e.Folder,workflowPhase:a.r.Start}),appLink:{application:l.b.LIBRARY_EDITOR,action:l.a.LibraryEditor.NEW_SUB_FOLDER,args:[this.model.get("id")]}},{title:s.a.getPhrase(this.lang,"rename"),analyticsOptions:c.a.mergeOptions(this.options.analyticsOptions,{actionType:a.q.Rename,entity:a.e.Folder,workflowPhase:a.r.Start}),appLink:{application:l.b.LIBRARY_EDITOR,action:l.a.LibraryEditor.RENAME_FOLDER,args:[this.model.get("id")]}},{title:s.a.getPhrase(this.lang,"move"),analyticsOptions:c.a.mergeOptions(this.options.analyticsOptions,{actionType:a.q.Move,entity:a.e.Folder,workflowPhase:a.r.Start}),appLink:{application:l.b.LIBRARY_EDITOR,action:l.a.LibraryEditor.MOVE_FOLDER,args:[this.model.get("id")]}},{title:s.a.getPhrase(this.lang,"editImages"),analyticsOptions:c.a.mergeOptions(this.options.analyticsOptions,{actionType:a.q.EditAssoc,entity:a.e.Folder,workflowPhase:a.r.Start,descriptor:a.a.Image}),appLink:{application:l.b.LIBRARY_EDITOR,action:l.a.LibraryEditor.EDIT_FOLDER_IMAGES,args:[this.model.get("id")]}},{title:s.a.getPhrase(this.lang,"generatePdf"),analyticsOptions:c.a.mergeOptions(this.options.analyticsOptions,{actionType:a.q.Create,entity:a.e.PDF,workflowPhase:a.r.Start}),appLink:{application:l.b.LIBRARY_EDITOR,action:l.a.LibraryEditor.GENERATE_PDF,args:[this.model.get("id")]}},{title:s.a.getPhrase(this.lang,"remove"),analyticsOptions:c.a.mergeOptions(this.options.analyticsOptions,{actionType:a.q.Delete,entity:a.e.Folder,workflowPhase:a.r.Start}),classes:"text-danger",appLink:{application:l.b.LIBRARY_EDITOR,action:l.a.LibraryEditor.DELETE_FOLDER,args:[this.model.get("id")]}}]}},{key:"onRender",value:function(){this.showChildView("items",new u.a({analyticsHelper:c.a,displayOptions:{alignment:"right"},channelName:this.channelName,collection:new r.a.Collection(this.getFolderActions()),childOptions:{isDisabled:function(){return this.model.get("disabled")}}}))}},{key:"name",get:function(){return"FolderActionsDropdownComponent"}},{key:"template",get:function(){return p.a}},{key:"lang",get:function(){return"libraryEditor.folderActionsDropdown"}},{key:"channelName",get:function(){return"".concat(this.name).concat(this.cid)}}])&&d(e.prototype,n),o&&d(e,o),f}(r.a.Component),w=n(1124),O=n.n(w),R=n(1125),_=n.n(R);function k(t){return(k="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t})(t)}function S(t,e){for(var n=0;n<e.length;n++){var r=e[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(t,r.key,r)}}function E(t,e){return(E=Object.setPrototypeOf||function(t,e){return t.__proto__=e,t})(t,e)}function P(t){var e=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(t){return!1}}();return function(){var n,r=j(t);if(e){var o=j(this).constructor;n=Reflect.construct(r,arguments,o)}else n=r.apply(this,arguments);return D(this,n)}}function D(t,e){return!e||"object"!==k(e)&&"function"!=typeof e?function(t){if(void 0===t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return t}(t):e}function j(t){return(j=Object.setPrototypeOf?Object.getPrototypeOf:function(t){return t.__proto__||Object.getPrototypeOf(t)})(t)}n.d(e,"a",(function(){return C}));var C=function(t){!function(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function");t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,writable:!0,configurable:!0}}),e&&E(t,e)}(c,t);var e,n,r,a=P(c);function c(t){return function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,c),a.call(this,t)}return e=c,(n=[{key:"events",value:function(){return{"click @ui.dropdownToggle":"onClickDropdownToggle","click @ui.dropdownItem":"onClickDropdownItem"}}},{key:"regions",value:function(){return{items:{replaceElement:!0,el:".items-region"}}}},{key:"onClickDropdownToggle",value:function(){this.model instanceof i.a&&this.showChildView("items",new v({model:this.model,analyticsOptions:this.options.analyticsOptions}))}},{key:"onClickDropdownItem",value:function(t){t.stopPropagation(),t.preventDefault(),this.getUI("dropdownToggle").dropdown("toggle")}},{key:"viewOptions",value:function(){return{hasActions:this.model instanceof i.a,dropdownClass:"".concat(_.a.dropdownButton," ").concat(this.options.buttonClass),svg:o.a.getSvg(o.b.More)}}},{key:"name",get:function(){return"VideoCollectionActionsComponent"}},{key:"channelName",get:function(){return"".concat(this.name).concat(this.cid)}},{key:"className",get:function(){if(this.model instanceof i.a)return"position-absolute ".concat(this.options.overrideClasses?"":_.a.dropdownContainer," ").concat(this.options.extraClasses," ")}},{key:"elements",get:function(){return{dropdownToggle:".ui-dropdown-toggle",dropdownItem:".dropdown-item"}}},{key:"template",get:function(){return O.a}}])&&S(e.prototype,n),r&&S(e,r),c}(r.a.Component)},1122:function(t,e,n){t.exports={dragging:"_2wBn3",draggingFolder:"_1r3AS"}},1123:function(t,e,n){var r=n(10);t.exports=(r.default||r).template({compiler:[8,">= 4.3.0"],main:function(t,e,n,r,o){return'<div class="items-region"></div>'},useData:!0})},1124:function(t,e,n){var r=n(10);t.exports=(r.default||r).template({1:function(t,e,n,r,o){t.propertyIsEnumerable;var i,a=t.lambda;return'<span data-toggle="dropdown" aria-haspopup="true" aria-expanded="false" class="'+t.escapeExpression(a(null!=(i=null!=e?e.options:e)?i.dropdownClass:i,e))+' d-inline-block ui-dropdown-toggle">\r\n '+(null!=(i=a(null!=(i=null!=e?e.options:e)?i.svg:i,e))?i:"")+'\r\n</span>\r\n<div class="items-region"></div>\r\n'},compiler:[8,">= 4.3.0"],main:function(t,e,n,r,o){var i;t.propertyIsEnumerable;return null!=(i=n.if.call(null!=e?e:t.nullContext||{},null!=(i=null!=e?e.options:e)?i.hasActions:i,{name:"if",hash:{},fn:t.program(1,o,0),inverse:t.noop,data:o}))?i:""},useData:!0})},1125:function(t,e,n){t.exports={dropdownContainer:"_2F3Cz",dropdownButton:"_2TdId"}},1146:function(t,e,n){"use strict";n.d(e,"a",(function(){return w}));var r=n(2),o=n(15),i=n(4),a=n(42),c=n(1063),u=n(0),l=n(3),s=n(1147),f=n.n(s),p=n(1148),y=n.n(p);function d(t){return(d="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t})(t)}function h(t,e){for(var n=0;n<e.length;n++){var r=e[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(t,r.key,r)}}function b(t,e){return(b=Object.setPrototypeOf||function(t,e){return t.__proto__=e,t})(t,e)}function g(t){var e=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(t){return!1}}();return function(){var n,r=v(t);if(e){var o=v(this).constructor;n=Reflect.construct(r,arguments,o)}else n=r.apply(this,arguments);return m(this,n)}}function m(t,e){return!e||"object"!==d(e)&&"function"!=typeof e?function(t){if(void 0===t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return t}(t):e}function v(t){return(v=Object.setPrototypeOf?Object.getPrototypeOf:function(t){return t.__proto__||Object.getPrototypeOf(t)})(t)}var w=function(t){!function(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function");t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,writable:!0,configurable:!0}}),e&&b(t,e)}(d,t);var e,n,s,p=g(d);function d(t){return function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,d),p.call(this,t)}return e=d,(n=[{key:"events",value:function(){return{"click @ui.dropdownToggle":"onClickDropdownToggle","click @ui.dropdownItem":"onClickDropdownItem"}}},{key:"regions",value:function(){return{dropdownItems:{replaceElement:!0,el:".items-region"}}}},{key:"onClickDropdownToggle",value:function(){this.showChildView("dropdownItems",new c.a({analyticsHelper:a.a,displayOptions:{alignment:"right"},channelName:this.channelName,collection:new r.a.Collection([{title:l.a.getPhrase(this.lang,"addFolder"),analyticsOptions:a.a.mergeOptions(this.options.analyticsOptions,{actionType:i.q.Create,entity:i.e.Folder,workflowPhase:i.r.Start}),appLink:{application:u.b.LIBRARY_EDITOR,action:u.a.Shared.NEW_FOLDER,args:[this.model.get("id")]}},{title:l.a.getPhrase(this.lang,"rename"),analyticsOptions:a.a.mergeOptions(this.options.analyticsOptions,{actionType:i.q.Rename,entity:i.e.Library,workflowPhase:i.r.Start}),appLink:{application:u.b.LIBRARY_EDITOR,action:u.a.LibraryEditor.RENAME_LIBRARY,args:[this.model.get("id")]}},{title:l.a.getPhrase(this.lang,"remove"),analyticsOptions:a.a.mergeOptions(this.options.analyticsOptions,{actionType:i.q.Delete,entity:i.e.Library,workflowPhase:i.r.Start}),appLink:{application:u.b.LIBRARY_EDITOR,action:u.a.LibraryEditor.DELETE_LIBRARY,args:[this.model.get("id")]},classes:"text-danger"}])}))}},{key:"onClickDropdownItem",value:function(t){t.stopPropagation(),t.preventDefault(),this.getUI("dropdownToggle").dropdown("toggle")}},{key:"viewOptions",value:function(){return{dropdownClass:"".concat(y.a.dropdownButton," ").concat(this.options.buttonClass),svg:o.a.getSvg(o.b.More)}}},{key:"name",get:function(){return"LibraryActionsComponent"}},{key:"template",get:function(){return f.a}},{key:"channelName",get:function(){return"".concat(this.name).concat(this.cid)}},{key:"lang",get:function(){return"libraryEditor.libraryActions"}},{key:"className",get:function(){return"position-absolute ".concat(y.a.dropdownContainer," ").concat(this.options.extraClasses," ")}},{key:"elements",get:function(){return{dropdownToggle:".ui-dropdown-toggle",dropdownItem:".dropdown-item"}}}])&&h(e.prototype,n),s&&h(e,s),d}(r.a.Component)},1147:function(t,e,n){var r=n(10);t.exports=(r.default||r).template({compiler:[8,">= 4.3.0"],main:function(t,e,n,r,o){t.propertyIsEnumerable;var i,a=t.lambda;return'<span data-toggle="dropdown" aria-haspopup="true" aria-expanded="false" class="'+t.escapeExpression(a(null!=(i=null!=e?e.options:e)?i.dropdownClass:i,e))+' d-inline-block ui-dropdown-toggle">\r\n '+(null!=(i=a(null!=(i=null!=e?e.options:e)?i.svg:i,e))?i:"")+'\r\n</span>\r\n<div class="items-region"></div>'},useData:!0})},1148:function(t,e,n){t.exports={dropdownContainer:"_293SV",dropdownButton:"_23YxG"}},1225:function(t,e,n){var r=n(10);t.exports=(r.default||r).template({compiler:[8,">= 4.3.0"],main:function(t,e,n,r,o){t.propertyIsEnumerable;var i,a,c=t.lambda,u=t.escapeExpression;return'<a\r\n class="d-block cursor-pointer no-decoration '+u(c(null!=(i=null!=(i=null!=e?e.options:e)?i.styles:i)?i.folder:i,e))+'"\r\n style="background-image: url(\''+u(c(null!=(i=null!=e?e.options:e)?i.imageUrl:i,e))+'\')"\r\n>\r\n <h3 class="position-absolute text-white text-center m-0">'+u("function"==typeof(a=null!=(a=n.name||(null!=e?e.name:e))?a:t.hooks.helperMissing)?a.call(null!=e?e:t.nullContext||{},{name:"name",hash:{},data:o}):a)+'</h3>\r\n</a>\r\n<div class="actions-region"></div>'},useData:!0})},1226:function(t,e,n){t.exports={folder:"_1MHyt",actions:"_3-hwy"}},1227:function(t,e,n){var r=n(10);t.exports=(r.default||r).template({compiler:[8,">= 4.3.0"],main:function(t,e,n,r,o){var i;t.propertyIsEnumerable;return'<h1 class="h3">'+t.escapeExpression("function"==typeof(i=null!=(i=n.name||(null!=e?e.name:e))?i:t.hooks.helperMissing)?i.call(null!=e?e:t.nullContext||{},{name:"name",hash:{},data:o}):i)+'</h1>\r\n<div class="folders-region"></div>\r\n<div class="actions-region"></div>'},useData:!0})},1228:function(t,e,n){t.exports={actions:"_3vCmp"}},1489:function(t,e,n){"use strict";n.r(e);var r=n(1),o=n(2),i=n(5),a=n(3),c=n(4),u=n(15),l=n(285),s=n(35),f=n(187),p=n(0),y=n(9),d=n(1111),h=n(1225),b=n.n(h),g=n(1226),m=n.n(g),v=n(12),w=n(1116),O=(n(1077),n(1113)),R=n(1120);function _(t){return(_="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t})(t)}function k(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}function S(t,e){for(var n=0;n<e.length;n++){var r=e[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(t,r.key,r)}}function E(t,e,n){return e&&S(t.prototype,e),n&&S(t,n),t}function P(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function");t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,writable:!0,configurable:!0}}),e&&D(t,e)}function D(t,e){return(D=Object.setPrototypeOf||function(t,e){return t.__proto__=e,t})(t,e)}function j(t){var e=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(t){return!1}}();return function(){var n,r=I(t);if(e){var o=I(this).constructor;n=Reflect.construct(r,arguments,o)}else n=r.apply(this,arguments);return C(this,n)}}function C(t,e){return!e||"object"!==_(e)&&"function"!=typeof e?function(t){if(void 0===t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return t}(t):e}function I(t){return(I=Object.setPrototypeOf?Object.getPrototypeOf:function(t){return t.__proto__||Object.getPrototypeOf(t)})(t)}var T=function(t){P(n,t);var e=j(n);function n(t){return k(this,n),e.call(this,t)}return E(n,[{key:"initialize",value:function(){this.listenTo(this.model,"change:name",this.render)}},{key:"regions",value:function(){return{actions:{el:".actions-region",replaceElement:!0}}}},{key:"viewOptions",value:function(){var t=v.g.createFolderThumbnailUrl(this.model.thumbnail,{fallbackBaseUrl:this.options.imageCdnUrl,fallbackCategoryName:this.model.get("name"),type:y.f.Thumbnails});return{styles:m.a,imageUrl:t}}},{key:"onRender",value:function(){this.showChildView("actions",new R.a({model:this.model,extraClasses:"".concat(m.a.actions," rounded-circle"),buttonClass:"text-light",analyticsOptions:{location:c.k.LibraryTiles},overrideClasses:!0}))}},{key:"name",get:function(){return"LibraryFolderItemComponent"}},{key:"template",get:function(){return b.a}},{key:"className",get:function(){return"col-3 p-2"}},{key:"appLinks",get:function(){return{a:{application:p.b.LIBRARY_EDITOR,action:p.a.LibraryEditor.FOLDER,args:[this.model.get("id")]}}}},{key:"behaviors",get:function(){return[{behaviorClass:O.a,channelNames:[p.w.VIDEO_DRAG_DROP,p.w.FOLDER_DRAG_DROP],analyticsOptions:{location:c.k.LibraryTiles}},{behaviorClass:w.a}]}}]),n}(o.a.Component),x=function(t){P(n,t);var e=j(n);function n(t){return k(this,n),e.call(this,t)}return E(n,[{key:"name",get:function(){return"LibraryFolderListComponent"}},{key:"className",get:function(){return"row"}},{key:"childView",get:function(){return T}},{key:"childViewOptions",get:function(){return this.options.childOptions}}]),n}(o.a.ComponentCollection),L=n(1146),A=n(1227),F=n.n(A),B=n(1228),N=n.n(B);function V(t){return(V="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t})(t)}function M(t,e){for(var n=0;n<e.length;n++){var r=e[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(t,r.key,r)}}function U(t,e){return(U=Object.setPrototypeOf||function(t,e){return t.__proto__=e,t})(t,e)}function Y(t){var e=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(t){return!1}}();return function(){var n,r=G(t);if(e){var o=G(this).constructor;n=Reflect.construct(r,arguments,o)}else n=r.apply(this,arguments);return q(this,n)}}function q(t,e){return!e||"object"!==V(e)&&"function"!=typeof e?function(t){if(void 0===t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return t}(t):e}function G(t){return(G=Object.setPrototypeOf?Object.getPrototypeOf:function(t){return t.__proto__||Object.getPrototypeOf(t)})(t)}n.d(e,"LibraryView",(function(){return H}));var H=function(t){!function(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function");t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,writable:!0,configurable:!0}}),e&&U(t,e)}(b,t);var e,n,o,h=Y(b);function b(t){return function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,b),h.call(this,t)}return e=b,(n=[{key:"initialize",value:function(){var t=this;this.libraryDataService=i.a.getInstance(p.g.Library,this),this.listenTo(p.e.LIBRARY,"clear:library:folder:cache",(function(){t.folders=null,t.render()}))}},{key:"regions",value:function(){return{folders:{el:".folders-region",replaceElement:!0,partialLoading:y.h.LibraryFolders},actions:{el:".actions-region",replaceElement:!0}}}},{key:"renderFolders",value:function(){this.showChildView("folders",new x({collection:this.folders,childOptions:{imageCdnUrl:this.config.get("imageCdnUrl")}}))}},{key:"renderActions",value:function(){this.showChildView("actions",new L.a({model:this.model,extraClasses:"".concat(N.a.actions," rounded-circle mr-2 mt-2"),analyticsOptions:{location:c.k.Banner}}))}},{key:"bindScrollListener",value:function(){var t=this;if(!this.scrollBound){this.scrollBound=!0;var e=$(window),n=r.debounce((function(){if(e.scrollTop()+e.height()>t.$el.offset().top+t.$el.height()&&t.currentIdentifier){var n=t.libraryDataService.getLibraryFoldersCursors(t.currentIdentifier);n&&n.next&&t.libraryDataService.getLibraryFolders(t.getNewCollectionIdentifier(n.next),(function(e){t.folders.add(e.toJSON())}))}}),333);e.scroll(n),window.setTimeout(n,100)}}},{key:"getNewCollectionIdentifier",value:function(t){return this.currentIdentifier=new d.a(this.model.categoryTree.get("id"),s.a.AtoZ,t)}},{key:"onBeforeRender",value:function(){var t=this;if(this.model)return this.folders||this.libraryDataService.getLibraryFolders(this.getNewCollectionIdentifier(),(function(e){t.folders=e,t.render()})),!!this.model&&!!this.folders;this.libraryDataService.getLibraries((function(e){t.model=e.get(t.options.libraryId),t.listenTo(t.model,"change:name",t.render),t.render()}))}},{key:"onRender",value:function(){this.renderFolders(),this.renderActions(),this.bindScrollListener()}},{key:"name",get:function(){return"LibraryView"}},{key:"title",get:function(){return!!this.model&&this.model.get("name")}},{key:"lang",get:function(){return"libraryEditor.library"}},{key:"template",get:function(){return F.a}},{key:"className",get:function(){return"bg-white px-3 pt-3 pb-2 position-relative ".concat(N.a.library)}},{key:"behaviors",get:function(){var t=this;return[{behaviorClass:l.a,region:"folders",type:y.c.Library,shouldRender:function(){return t.model&&!t.model.children.length},componentOptions:{libraryId:this.options.libraryId,moreSvg:u.a.getSvg(u.b.More),heading:a.a.getPhrase(this.lang,"emptyStateHeading"),description:a.a.getPhrase(this.lang,"emptyStateInfo",{moreSvg:'<span class="d-inline-block svg-container align-top">\n '.concat(u.a.getSvg(u.b.More),"</span>")})},emptyStateComponents:p.h}]}},{key:"requiredResources",get:function(){return{config:f.b.config}}}])&&M(e.prototype,n),o&&M(e,o),b}(o.a.View)}}]);
@@ -1 +1 @@
1
- {"version":3,"sources":["file://C:/ClickView Projects/@clickview/packages/projects/library-editor/src/shared/components/video-basic-info/VideoBasicInfo.hbs","file://C:/ClickView Projects/@clickview/packages/projects/library-editor/src/shared/components/video-basic-info/VideoBasicInfoComponent.ts","webpack://@clickview/library-editor/./src/shared/components/video-basic-info/video-basic-info.scss?6c26"],"names":[],"mappings":"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","file":"scripts/26.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=depth0 != null ? depth0 : (container.nullContext || {});\n\n return \"<div class=\\\"position-relative\\\">\\r\\n <h5 class=\\\"d-inline-block\\\">\"\n + container.escapeExpression((helpers.lang||(depth0 && depth0.lang)||container.hooks.helperMissing).call(alias2,\"basicInfo\",{\"name\":\"lang\",\"hash\":{},\"data\":data}))\n + \"</h5>\\r\\n\"\n + ((stack1 = helpers[\"if\"].call(alias2,((stack1 = (depth0 != null ? depth0.options : depth0)) != null ? stack1.showPublisherVideoDetails : stack1),{\"name\":\"if\",\"hash\":{},\"fn\":container.program(2, data, 0),\"inverse\":container.noop,\"data\":data})) != null ? stack1 : \"\")\n + \"</div>\\r\\n\";\n},\"2\":function(container,depth0,helpers,partials,data) {\n var stack1, alias1=container.propertyIsEnumerable, alias2=container.lambda, alias3=container.escapeExpression;\n\n return \" <a class=\\\"float-right cursor-pointer applink-publisher-video\\\">\\r\\n <span class=\\\"d-inline-block align-middle \"\n + alias3(alias2(((stack1 = ((stack1 = (depth0 != null ? depth0.options : depth0)) != null ? stack1.styles : stack1)) != null ? stack1.icon : stack1), depth0))\n + \"\\\">\"\n + ((stack1 = alias2(((stack1 = (depth0 != null ? depth0.options : depth0)) != null ? stack1.publisherArchiveSvg : stack1), depth0)) != null ? stack1 : \"\")\n + \"</span> \"\n + alias3((helpers.lang||(depth0 && depth0.lang)||container.hooks.helperMissing).call(depth0 != null ? depth0 : (container.nullContext || {}),\"viewInPublisherArchive\",{\"name\":\"lang\",\"hash\":{},\"data\":data}))\n + \"\\r\\n </a>\\r\\n\";\n},\"4\":function(container,depth0,helpers,partials,data) {\n var stack1, helper, alias1=container.propertyIsEnumerable, alias2=container.escapeExpression, alias3=depth0 != null ? depth0 : (container.nullContext || {}), alias4=container.hooks.helperMissing;\n\n return \" <div class=\\\"col-3 \"\n + alias2(container.lambda(((stack1 = ((stack1 = (depth0 != null ? depth0.options : depth0)) != null ? stack1.styles : stack1)) != null ? stack1.columnNames : stack1), depth0))\n + \"\\\">\"\n + alias2((helpers.lang||(depth0 && depth0.lang)||alias4).call(alias3,\"videoTitle\",{\"name\":\"lang\",\"hash\":{},\"data\":data}))\n + \"</div>\\r\\n <p class=\\\"col-9\\\">\"\n + alias2(((helper = (helper = helpers.name || (depth0 != null ? depth0.name : depth0)) != null ? helper : alias4),(typeof helper === \"function\" ? helper.call(alias3,{\"name\":\"name\",\"hash\":{},\"data\":data}) : helper)))\n + \"</p>\\r\\n\";\n},\"6\":function(container,depth0,helpers,partials,data) {\n var stack1, alias1=container.propertyIsEnumerable, alias2=container.lambda, alias3=container.escapeExpression;\n\n return \" <div class=\\\"col-3 \"\n + alias3(alias2(((stack1 = ((stack1 = (depth0 != null ? depth0.options : depth0)) != null ? stack1.styles : stack1)) != null ? stack1.columnNames : stack1), depth0))\n + \"\\\">\"\n + alias3((helpers.lang||(depth0 && depth0.lang)||container.hooks.helperMissing).call(depth0 != null ? depth0 : (container.nullContext || {}),\"series\",{\"name\":\"lang\",\"hash\":{},\"data\":data}))\n + \"</div>\\r\\n <div class=\\\"col-9 \"\n + alias3(alias2(((stack1 = ((stack1 = (depth0 != null ? depth0.options : depth0)) != null ? stack1.styles : stack1)) != null ? stack1.seriesContainer : stack1), depth0))\n + \"\\\"><div class=\\\"series-region\\\"></div></div>\\r\\n\";\n},\"8\":function(container,depth0,helpers,partials,data) {\n var stack1, alias1=container.propertyIsEnumerable, alias2=container.lambda, alias3=container.escapeExpression;\n\n return \" <div class=\\\"col-3 \"\n + alias3(alias2(((stack1 = ((stack1 = (depth0 != null ? depth0.options : depth0)) != null ? stack1.styles : stack1)) != null ? stack1.columnNames : stack1), depth0))\n + \"\\\">\"\n + alias3((helpers.lang||(depth0 && depth0.lang)||container.hooks.helperMissing).call(depth0 != null ? depth0 : (container.nullContext || {}),\"rating\",{\"name\":\"lang\",\"hash\":{},\"data\":data}))\n + \"</div>\\r\\n <p class=\\\"col-9\\\"><span class=\\\"p-1 badge text-white tool-tip \"\n + alias3(alias2(((stack1 = (depth0 != null ? depth0.options : depth0)) != null ? stack1.ratingClass : stack1), depth0))\n + \" \"\n + alias3(alias2(((stack1 = ((stack1 = (depth0 != null ? depth0.options : depth0)) != null ? stack1.styles : stack1)) != null ? stack1.rating : stack1), depth0))\n + \"\\\" title=\\\"\"\n + alias3(alias2(((stack1 = (depth0 != null ? depth0.rating : depth0)) != null ? stack1.name : stack1), depth0))\n + \"\\\">\"\n + alias3(alias2(((stack1 = (depth0 != null ? depth0.rating : depth0)) != null ? stack1.code : stack1), depth0))\n + \"</span></p>\\r\\n\";\n},\"10\":function(container,depth0,helpers,partials,data) {\n var stack1, alias1=container.propertyIsEnumerable, alias2=container.escapeExpression;\n\n return \" <div class=\\\"col-3 \"\n + alias2(container.lambda(((stack1 = ((stack1 = (depth0 != null ? depth0.options : depth0)) != null ? stack1.styles : stack1)) != null ? stack1.columnNames : stack1), depth0))\n + \"\\\">\"\n + alias2((helpers.lang||(depth0 && depth0.lang)||container.hooks.helperMissing).call(depth0 != null ? depth0 : (container.nullContext || {}),\"description\",{\"name\":\"lang\",\"hash\":{},\"data\":data}))\n + \"</div>\\r\\n <div class=\\\"col-9\\\">\\r\\n <div class=\\\"description-region\\\"></div>\\r\\n </div>\\r\\n\";\n},\"12\":function(container,depth0,helpers,partials,data) {\n var stack1, helper, alias1=container.propertyIsEnumerable, alias2=container.escapeExpression, alias3=depth0 != null ? depth0 : (container.nullContext || {}), alias4=container.hooks.helperMissing;\n\n return \" <div class=\\\"col-3 \"\n + alias2(container.lambda(((stack1 = ((stack1 = (depth0 != null ? depth0.options : depth0)) != null ? stack1.styles : stack1)) != null ? stack1.columnNames : stack1), depth0))\n + \"\\\">\"\n + alias2((helpers.lang||(depth0 && depth0.lang)||alias4).call(alias3,\"productionYear\",{\"name\":\"lang\",\"hash\":{},\"data\":data}))\n + \"</div>\\r\\n <p class=\\\"col-9\\\">\"\n + alias2(((helper = (helper = helpers.productionYear || (depth0 != null ? depth0.productionYear : depth0)) != null ? helper : alias4),(typeof helper === \"function\" ? helper.call(alias3,{\"name\":\"productionYear\",\"hash\":{},\"data\":data}) : helper)))\n + \"</p>\\r\\n\";\n},\"14\":function(container,depth0,helpers,partials,data) {\n var stack1, alias1=container.propertyIsEnumerable, alias2=container.lambda, alias3=container.escapeExpression, alias4=depth0 != null ? depth0 : (container.nullContext || {});\n\n return \" <div class=\\\"col-3 \"\n + alias3(alias2(((stack1 = ((stack1 = (depth0 != null ? depth0.options : depth0)) != null ? stack1.styles : stack1)) != null ? stack1.columnNames : stack1), depth0))\n + \"\\\">\"\n + alias3((helpers.lang||(depth0 && depth0.lang)||container.hooks.helperMissing).call(alias4,\"producers\",{\"name\":\"lang\",\"hash\":{},\"data\":data}))\n + \"</div>\\r\\n <div class=\\\"col-9 \"\n + alias3(alias2(((stack1 = ((stack1 = (depth0 != null ? depth0.options : depth0)) != null ? stack1.styles : stack1)) != null ? stack1.citationValues : stack1), depth0))\n + \"\\\">\\r\\n <p>\\r\\n\"\n + ((stack1 = helpers.each.call(alias4,(depth0 != null ? depth0.producers : depth0),{\"name\":\"each\",\"hash\":{},\"fn\":container.program(15, data, 0),\"inverse\":container.noop,\"data\":data})) != null ? stack1 : \"\")\n + \" </p>\\r\\n </div>\\r\\n\";\n},\"15\":function(container,depth0,helpers,partials,data) {\n var helper, alias1=container.propertyIsEnumerable;\n\n return \" <span>\"\n + container.escapeExpression(((helper = (helper = helpers.name || (depth0 != null ? depth0.name : depth0)) != null ? helper : container.hooks.helperMissing),(typeof helper === \"function\" ? helper.call(depth0 != null ? depth0 : (container.nullContext || {}),{\"name\":\"name\",\"hash\":{},\"data\":data}) : helper)))\n + \"</span>\\r\\n\";\n},\"17\":function(container,depth0,helpers,partials,data) {\n var stack1, alias1=container.propertyIsEnumerable, alias2=container.lambda, alias3=container.escapeExpression, alias4=depth0 != null ? depth0 : (container.nullContext || {});\n\n return \" <div class=\\\"col-3 \"\n + alias3(alias2(((stack1 = ((stack1 = (depth0 != null ? depth0.options : depth0)) != null ? stack1.styles : stack1)) != null ? stack1.columnNames : stack1), depth0))\n + \"\\\">\"\n + alias3((helpers.lang||(depth0 && depth0.lang)||container.hooks.helperMissing).call(alias4,\"directors\",{\"name\":\"lang\",\"hash\":{},\"data\":data}))\n + \"</div>\\r\\n <div class=\\\"col-9 \"\n + alias3(alias2(((stack1 = ((stack1 = (depth0 != null ? depth0.options : depth0)) != null ? stack1.styles : stack1)) != null ? stack1.citationValues : stack1), depth0))\n + \"\\\">\\r\\n <p>\\r\\n\"\n + ((stack1 = helpers.each.call(alias4,(depth0 != null ? depth0.directors : depth0),{\"name\":\"each\",\"hash\":{},\"fn\":container.program(15, data, 0),\"inverse\":container.noop,\"data\":data})) != null ? stack1 : \"\")\n + \" </p>\\r\\n </div>\\r\\n\";\n},\"19\":function(container,depth0,helpers,partials,data) {\n var stack1, alias1=container.propertyIsEnumerable, alias2=container.lambda, alias3=container.escapeExpression, alias4=depth0 != null ? depth0 : (container.nullContext || {});\n\n return \" <div class=\\\"col-3 \"\n + alias3(alias2(((stack1 = ((stack1 = (depth0 != null ? depth0.options : depth0)) != null ? stack1.styles : stack1)) != null ? stack1.columnNames : stack1), depth0))\n + \"\\\">\"\n + alias3((helpers.lang||(depth0 && depth0.lang)||container.hooks.helperMissing).call(alias4,\"productionCompanies\",{\"name\":\"lang\",\"hash\":{},\"data\":data}))\n + \"</div>\\r\\n <div class=\\\"col-9 \"\n + alias3(alias2(((stack1 = ((stack1 = (depth0 != null ? depth0.options : depth0)) != null ? stack1.styles : stack1)) != null ? stack1.citationValues : stack1), depth0))\n + \"\\\">\\r\\n <p>\\r\\n\"\n + ((stack1 = helpers.each.call(alias4,(depth0 != null ? depth0.productionCompanies : depth0),{\"name\":\"each\",\"hash\":{},\"fn\":container.program(15, data, 0),\"inverse\":container.noop,\"data\":data})) != null ? stack1 : \"\")\n + \" </p>\\r\\n </div>\\r\\n\";\n},\"21\":function(container,depth0,helpers,partials,data) {\n var stack1, alias1=container.propertyIsEnumerable, alias2=container.lambda, alias3=container.escapeExpression, alias4=depth0 != null ? depth0 : (container.nullContext || {});\n\n return \" <div class=\\\"col-3 \"\n + alias3(alias2(((stack1 = ((stack1 = (depth0 != null ? depth0.options : depth0)) != null ? stack1.styles : stack1)) != null ? stack1.columnNames : stack1), depth0))\n + \"\\\">\"\n + alias3((helpers.lang||(depth0 && depth0.lang)||container.hooks.helperMissing).call(alias4,\"distributors\",{\"name\":\"lang\",\"hash\":{},\"data\":data}))\n + \"</div>\\r\\n <div class=\\\"col-9 \"\n + alias3(alias2(((stack1 = ((stack1 = (depth0 != null ? depth0.options : depth0)) != null ? stack1.styles : stack1)) != null ? stack1.citationValues : stack1), depth0))\n + \"\\\">\\r\\n <p>\\r\\n\"\n + ((stack1 = helpers.each.call(alias4,(depth0 != null ? depth0.distributors : depth0),{\"name\":\"each\",\"hash\":{},\"fn\":container.program(15, data, 0),\"inverse\":container.noop,\"data\":data})) != null ? stack1 : \"\")\n + \" </p>\\r\\n </div>\\r\\n\";\n},\"23\":function(container,depth0,helpers,partials,data) {\n var stack1, alias1=container.propertyIsEnumerable;\n\n return ((stack1 = helpers[\"if\"].call(depth0 != null ? depth0 : (container.nullContext || {}),(depth0 != null ? depth0.channel : depth0),{\"name\":\"if\",\"hash\":{},\"fn\":container.program(24, data, 0),\"inverse\":container.noop,\"data\":data})) != null ? stack1 : \"\");\n},\"24\":function(container,depth0,helpers,partials,data) {\n var stack1, alias1=container.propertyIsEnumerable, alias2=container.lambda, alias3=container.escapeExpression;\n\n return \"\\r\\n <div class=\\\"col-3 \"\n + alias3(alias2(((stack1 = ((stack1 = (depth0 != null ? depth0.options : depth0)) != null ? stack1.styles : stack1)) != null ? stack1.columnNames : stack1), depth0))\n + \"\\\">\"\n + alias3((helpers.lang||(depth0 && depth0.lang)||container.hooks.helperMissing).call(depth0 != null ? depth0 : (container.nullContext || {}),\"channel\",{\"name\":\"lang\",\"hash\":{},\"data\":data}))\n + \"</div>\\r\\n <p class=\\\"col-9\\\">\"\n + alias3(alias2(((stack1 = (depth0 != null ? depth0.channel : depth0)) != null ? stack1.name : stack1), depth0))\n + \"</p>\\r\\n \";\n},\"26\":function(container,depth0,helpers,partials,data) {\n var stack1, alias1=container.propertyIsEnumerable, alias2=container.lambda, alias3=container.escapeExpression;\n\n return \" <div class=\\\"col-3 \"\n + alias3(alias2(((stack1 = ((stack1 = (depth0 != null ? depth0.options : depth0)) != null ? stack1.styles : stack1)) != null ? stack1.columnNames : stack1), depth0))\n + \"\\\">\"\n + alias3((helpers.lang||(depth0 && depth0.lang)||container.hooks.helperMissing).call(depth0 != null ? depth0 : (container.nullContext || {}),\"broadcastDate\",{\"name\":\"lang\",\"hash\":{},\"data\":data}))\n + \"</div>\\r\\n <p class=\\\"col-9\\\">\"\n + alias3(alias2(((stack1 = (depth0 != null ? depth0.options : depth0)) != null ? stack1.broadcastDate : stack1), depth0))\n + \"</p>\\r\\n\";\n},\"28\":function(container,depth0,helpers,partials,data) {\n var stack1, alias1=container.propertyIsEnumerable, alias2=container.lambda, alias3=container.escapeExpression;\n\n return \" <div class=\\\"col-3 \"\n + alias3(alias2(((stack1 = ((stack1 = (depth0 != null ? depth0.options : depth0)) != null ? stack1.styles : stack1)) != null ? stack1.columnNames : stack1), depth0))\n + \"\\\">\"\n + alias3((helpers.lang||(depth0 && depth0.lang)||container.hooks.helperMissing).call(depth0 != null ? depth0 : (container.nullContext || {}),\"subtitles\",{\"name\":\"lang\",\"hash\":{},\"data\":data}))\n + \"</div>\\r\\n <p class=\\\"col-9\\\">\"\n + alias3(alias2(((stack1 = (depth0 != null ? depth0.options : depth0)) != null ? stack1.subtitles : stack1), depth0))\n + \"</p>\\r\\n\";\n},\"compiler\":[8,\">= 4.3.0\"],\"main\":function(container,depth0,helpers,partials,data) {\n var stack1, alias1=container.propertyIsEnumerable, alias2=depth0 != null ? depth0 : (container.nullContext || {});\n\n return ((stack1 = helpers[\"if\"].call(alias2,((stack1 = (depth0 != null ? depth0.options : depth0)) != null ? stack1.showHeading : stack1),{\"name\":\"if\",\"hash\":{},\"fn\":container.program(1, data, 0),\"inverse\":container.noop,\"data\":data})) != null ? stack1 : \"\")\n + \"<div class=\\\"row mb-0\\\">\\r\\n\"\n + ((stack1 = helpers[\"if\"].call(alias2,(depth0 != null ? depth0.name : depth0),{\"name\":\"if\",\"hash\":{},\"fn\":container.program(4, data, 0),\"inverse\":container.noop,\"data\":data})) != null ? stack1 : \"\")\n + \"\\r\\n\"\n + ((stack1 = helpers[\"if\"].call(alias2,((stack1 = (depth0 != null ? depth0.series : depth0)) != null ? stack1.name : stack1),{\"name\":\"if\",\"hash\":{},\"fn\":container.program(6, data, 0),\"inverse\":container.noop,\"data\":data})) != null ? stack1 : \"\")\n + \"\\r\\n\"\n + ((stack1 = helpers[\"if\"].call(alias2,((stack1 = (depth0 != null ? depth0.rating : depth0)) != null ? stack1.code : stack1),{\"name\":\"if\",\"hash\":{},\"fn\":container.program(8, data, 0),\"inverse\":container.noop,\"data\":data})) != null ? stack1 : \"\")\n + \"\\r\\n\"\n + ((stack1 = helpers[\"if\"].call(alias2,(depth0 != null ? depth0.description : depth0),{\"name\":\"if\",\"hash\":{},\"fn\":container.program(10, data, 0),\"inverse\":container.noop,\"data\":data})) != null ? stack1 : \"\")\n + \"\\r\\n\"\n + ((stack1 = helpers[\"if\"].call(alias2,(depth0 != null ? depth0.productionYear : depth0),{\"name\":\"if\",\"hash\":{},\"fn\":container.program(12, data, 0),\"inverse\":container.noop,\"data\":data})) != null ? stack1 : \"\")\n + \"\\r\\n\"\n + ((stack1 = helpers[\"if\"].call(alias2,((stack1 = (depth0 != null ? depth0.producers : depth0)) != null ? stack1.length : stack1),{\"name\":\"if\",\"hash\":{},\"fn\":container.program(14, data, 0),\"inverse\":container.noop,\"data\":data})) != null ? stack1 : \"\")\n + \"\\r\\n\"\n + ((stack1 = helpers[\"if\"].call(alias2,((stack1 = (depth0 != null ? depth0.directors : depth0)) != null ? stack1.length : stack1),{\"name\":\"if\",\"hash\":{},\"fn\":container.program(17, data, 0),\"inverse\":container.noop,\"data\":data})) != null ? stack1 : \"\")\n + \"\\r\\n\"\n + ((stack1 = helpers[\"if\"].call(alias2,((stack1 = (depth0 != null ? depth0.productionCompanies : depth0)) != null ? stack1.length : stack1),{\"name\":\"if\",\"hash\":{},\"fn\":container.program(19, data, 0),\"inverse\":container.noop,\"data\":data})) != null ? stack1 : \"\")\n + \"\\r\\n\"\n + ((stack1 = helpers[\"if\"].call(alias2,((stack1 = (depth0 != null ? depth0.distributors : depth0)) != null ? stack1.length : stack1),{\"name\":\"if\",\"hash\":{},\"fn\":container.program(21, data, 0),\"inverse\":container.noop,\"data\":data})) != null ? stack1 : \"\")\n + \"\\r\\n \"\n + ((stack1 = helpers[\"if\"].call(alias2,((stack1 = (depth0 != null ? depth0.channel : depth0)) != null ? stack1.name : stack1),{\"name\":\"if\",\"hash\":{},\"fn\":container.program(23, data, 0),\"inverse\":container.noop,\"data\":data})) != null ? stack1 : \"\")\n + \"\\r\\n\\r\\n\"\n + ((stack1 = helpers[\"if\"].call(alias2,((stack1 = (depth0 != null ? depth0.options : depth0)) != null ? stack1.broadcastDate : stack1),{\"name\":\"if\",\"hash\":{},\"fn\":container.program(26, data, 0),\"inverse\":container.noop,\"data\":data})) != null ? stack1 : \"\")\n + \"\\r\\n\"\n + ((stack1 = helpers[\"if\"].call(alias2,((stack1 = (depth0 != null ? depth0.options : depth0)) != null ? stack1.subtitles : stack1),{\"name\":\"if\",\"hash\":{},\"fn\":container.program(28, data, 0),\"inverse\":container.noop,\"data\":data})) != null ? stack1 : \"\")\n + \"</div>\";\n},\"useData\":true});","import * as _ from 'underscore';\r\nimport { ObjectHash } from 'backbone';\r\nimport * as moment from 'moment';\r\n\r\nimport { Core } from 'libs/common/core';\r\nimport { UrlHelper } from 'libs/common/backbone/utils/UrlHelper';\r\nimport { SvgHelper, cvSvgLibrary } from 'libs/shared/utils/SvgHelper';\r\nimport { TooltipBehavior } from 'libs/shared/legacy/behaviors/tooltip/TooltipBehavior';\r\n\r\nimport { Video } from 'shared/models/Video';\r\nimport { Subtitle } from 'shared/models/Subtitle';\r\nimport { Config } from 'shared/models/Config';\r\nimport { Actions, AppChannels } from 'shared/constants';\r\n\r\nimport { TimeType, PartialLoading, CitationType } from 'shared/enums';\r\nimport { VideoDescriptionComponent, VideoDescriptionTruncationSize } from 'shared/components/video-description/VideoDescriptionComponent';\r\nimport { VideoItemSeriesComponent } from 'shared/components/video-item/video-item-metadata/video-item-series/VideoItemSeriesComponent';\r\n\r\nimport { VideoDetailsHelper } from 'apps/library-editor/utils';\r\n\r\nimport styles from './video-basic-info.scss';\r\nimport VideoBasicInfoTemplate from './VideoBasicInfo.hbs';\r\nimport { LanguageService } from 'libs/common/backbone/services/LanguageService';\r\n\r\ninterface VideoBasicInfoComponentOptions extends Core.ComponentOptions {\r\n model: Video;\r\n showHeading?: boolean;\r\n truncateDescription?: boolean;\r\n showPublisherVideoDetails?: boolean;\r\n externalSeriesLink?: boolean;\r\n config: Config;\r\n}\r\n\r\nexport class VideoBasicInfoComponent extends Core.Component<Video> {\r\n public options: VideoBasicInfoComponentOptions;\r\n\r\n constructor(options: VideoBasicInfoComponentOptions) {\r\n super(options);\r\n }\r\n\r\n public get name(): string {\r\n return 'VideoBasicInfoComponent';\r\n }\r\n\r\n public get template(): any {\r\n return VideoBasicInfoTemplate;\r\n }\r\n\r\n public get lang(): string {\r\n return 'shared.videoBasicInfo';\r\n }\r\n\r\n public get defaults(): ObjectHash {\r\n return {\r\n truncateDescription: true\r\n };\r\n }\r\n\r\n public get behaviors(): any[] {\r\n return [{\r\n behaviorClass: TooltipBehavior,\r\n selector: '.tool-tip'\r\n }];\r\n }\r\n\r\n public regions(): ObjectHash {\r\n return {\r\n description: {\r\n el: '.description-region',\r\n replaceElement: true,\r\n partialLoading: PartialLoading.VideoBasicInfo\r\n },\r\n series: {\r\n el: '.series-region',\r\n replaceElement: true\r\n }\r\n };\r\n }\r\n\r\n public get appLinks(): Core.AppLinkHash {\r\n return {\r\n '.applink-publisher-video': {\r\n application: AppChannels.LIBRARY_EDITOR,\r\n action: Actions.LibraryEditor.SHOW_PUBLISHER_VIDEO,\r\n args: [this.model.get('id')]\r\n }\r\n };\r\n }\r\n\r\n private getBroadcastDate(): string {\r\n if (!this.model.get('dateBroadcast')) return '';\r\n\r\n return moment(this.model.get('dateBroadcast')).format(TimeType.FULL_YEAR);\r\n }\r\n\r\n private getSeriesUrl(): string {\r\n if (!this.options.externalSeriesLink || !this.model.series) return;\r\n\r\n return UrlHelper.safeUrlConcat(this.options.config.get('onlineUrl'), `series/${this.model.series.id}`);\r\n }\r\n\r\n private renderSeries(): void {\r\n if (!this.model.series || !this.model.series.get('name'))\r\n return;\r\n\r\n this.showChildView('series', new VideoItemSeriesComponent({\r\n model: this.model,\r\n highlight: false,\r\n seriesUrl: this.getSeriesUrl(),\r\n styleUppercase: false\r\n }));\r\n }\r\n\r\n private renderDescription(): void {\r\n if (!this.model || !this.model.get('description')) return;\r\n\r\n const view = new VideoDescriptionComponent({\r\n model: this.model,\r\n linkify: true,\r\n size: VideoDescriptionTruncationSize.Large,\r\n truncate: this.options.truncateDescription,\r\n allowExpand: true\r\n });\r\n this.showChildView('description', view);\r\n }\r\n\r\n private getSubtitleLanguage(): string {\r\n if (!(this.model.subtitles && this.model.get('subtitles').length)) return '';\r\n\r\n return _.uniq(this.model.get('subtitles').map((subtitle: Subtitle) => {\r\n const code = subtitle.get('language');\r\n const fullName = CVLanguages.getFullEnglishName(code);\r\n\r\n return subtitle.get('metadata')?.autoGenerated\r\n ? LanguageService.getPhrase(this.lang, 'autoGenerated', { name: fullName })\r\n : fullName;\r\n })).join(', ');\r\n }\r\n\r\n\r\n private getCitationHeading(type: CitationType, single: string, plural: string): string {\r\n if (!this.model.get(type))\r\n return '';\r\n\r\n return this.model.get(type).length > 1 ? plural : single;\r\n }\r\n\r\n private getCitationHeadings(): ObjectHash {\r\n return {\r\n productionCompaniesText: this.getCitationHeading(CitationType.ProductionCompany, 'Production Company', 'Production Companies'),\r\n producersText: this.getCitationHeading(CitationType.Producer, 'Producer', 'Producers'),\r\n disributorsText: this.getCitationHeading(CitationType.Distributor, 'Distributor', 'Distributors'),\r\n directorsText: this.getCitationHeading(CitationType.Director, 'Director', 'Directors')\r\n };\r\n }\r\n\r\n public viewOptions(): ObjectHash {\r\n return {\r\n styles,\r\n ratingClass: this.model.rating && VideoDetailsHelper.mapRatingToClass(this.model.rating.get('value')),\r\n broadcastDate: this.getBroadcastDate(),\r\n showHeading: this.options.showHeading,\r\n subtitles: this.getSubtitleLanguage(),\r\n publisherArchiveSvg: SvgHelper.getSvg(cvSvgLibrary.PublisherArchive),\r\n showPublisherVideoDetails: this.options.showPublisherVideoDetails,\r\n ...this.getCitationHeadings()\r\n };\r\n }\r\n\r\n public onRender(): void {\r\n this.renderSeries();\r\n this.renderDescription();\r\n }\r\n}\r\n","// extracted by mini-css-extract-plugin\nmodule.exports = {\"columnNames\":\"cv--columnNames--1N_VT\",\"seriesContainer\":\"cv--seriesContainer--4pk2s\",\"icon\":\"cv--icon--3SoBV\",\"citationValues\":\"cv--citationValues--1nYZg\"};"],"sourceRoot":""}
1
+ {"version":3,"sources":["file://C:/ClickView/front-end/clickview/packages/projects/library-editor/src/shared/components/video-basic-info/VideoBasicInfo.hbs","file://C:/ClickView/front-end/clickview/packages/projects/library-editor/src/shared/components/video-basic-info/VideoBasicInfoComponent.ts","webpack://@clickview/library-editor/./src/shared/components/video-basic-info/video-basic-info.scss?b0f9"],"names":[],"mappings":"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","file":"scripts/26.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=depth0 != null ? depth0 : (container.nullContext || {});\n\n return \"<div class=\\\"position-relative\\\">\\r\\n <h5 class=\\\"d-inline-block\\\">\"\n + container.escapeExpression((helpers.lang||(depth0 && depth0.lang)||container.hooks.helperMissing).call(alias2,\"basicInfo\",{\"name\":\"lang\",\"hash\":{},\"data\":data}))\n + \"</h5>\\r\\n\"\n + ((stack1 = helpers[\"if\"].call(alias2,((stack1 = (depth0 != null ? depth0.options : depth0)) != null ? stack1.showPublisherVideoDetails : stack1),{\"name\":\"if\",\"hash\":{},\"fn\":container.program(2, data, 0),\"inverse\":container.noop,\"data\":data})) != null ? stack1 : \"\")\n + \"</div>\\r\\n\";\n},\"2\":function(container,depth0,helpers,partials,data) {\n var stack1, alias1=container.propertyIsEnumerable, alias2=container.lambda, alias3=container.escapeExpression;\n\n return \" <a class=\\\"float-right cursor-pointer applink-publisher-video\\\">\\r\\n <span class=\\\"d-inline-block align-middle \"\n + alias3(alias2(((stack1 = ((stack1 = (depth0 != null ? depth0.options : depth0)) != null ? stack1.styles : stack1)) != null ? stack1.icon : stack1), depth0))\n + \"\\\">\"\n + ((stack1 = alias2(((stack1 = (depth0 != null ? depth0.options : depth0)) != null ? stack1.publisherArchiveSvg : stack1), depth0)) != null ? stack1 : \"\")\n + \"</span> \"\n + alias3((helpers.lang||(depth0 && depth0.lang)||container.hooks.helperMissing).call(depth0 != null ? depth0 : (container.nullContext || {}),\"viewInPublisherArchive\",{\"name\":\"lang\",\"hash\":{},\"data\":data}))\n + \"\\r\\n </a>\\r\\n\";\n},\"4\":function(container,depth0,helpers,partials,data) {\n var stack1, helper, alias1=container.propertyIsEnumerable, alias2=container.escapeExpression, alias3=depth0 != null ? depth0 : (container.nullContext || {}), alias4=container.hooks.helperMissing;\n\n return \" <div class=\\\"col-3 \"\n + alias2(container.lambda(((stack1 = ((stack1 = (depth0 != null ? depth0.options : depth0)) != null ? stack1.styles : stack1)) != null ? stack1.columnNames : stack1), depth0))\n + \"\\\">\"\n + alias2((helpers.lang||(depth0 && depth0.lang)||alias4).call(alias3,\"videoTitle\",{\"name\":\"lang\",\"hash\":{},\"data\":data}))\n + \"</div>\\r\\n <p class=\\\"col-9\\\">\"\n + alias2(((helper = (helper = helpers.name || (depth0 != null ? depth0.name : depth0)) != null ? helper : alias4),(typeof helper === \"function\" ? helper.call(alias3,{\"name\":\"name\",\"hash\":{},\"data\":data}) : helper)))\n + \"</p>\\r\\n\";\n},\"6\":function(container,depth0,helpers,partials,data) {\n var stack1, alias1=container.propertyIsEnumerable, alias2=container.lambda, alias3=container.escapeExpression;\n\n return \" <div class=\\\"col-3 \"\n + alias3(alias2(((stack1 = ((stack1 = (depth0 != null ? depth0.options : depth0)) != null ? stack1.styles : stack1)) != null ? stack1.columnNames : stack1), depth0))\n + \"\\\">\"\n + alias3((helpers.lang||(depth0 && depth0.lang)||container.hooks.helperMissing).call(depth0 != null ? depth0 : (container.nullContext || {}),\"series\",{\"name\":\"lang\",\"hash\":{},\"data\":data}))\n + \"</div>\\r\\n <div class=\\\"col-9 \"\n + alias3(alias2(((stack1 = ((stack1 = (depth0 != null ? depth0.options : depth0)) != null ? stack1.styles : stack1)) != null ? stack1.seriesContainer : stack1), depth0))\n + \"\\\"><div class=\\\"series-region\\\"></div></div>\\r\\n\";\n},\"8\":function(container,depth0,helpers,partials,data) {\n var stack1, alias1=container.propertyIsEnumerable, alias2=container.lambda, alias3=container.escapeExpression;\n\n return \" <div class=\\\"col-3 \"\n + alias3(alias2(((stack1 = ((stack1 = (depth0 != null ? depth0.options : depth0)) != null ? stack1.styles : stack1)) != null ? stack1.columnNames : stack1), depth0))\n + \"\\\">\"\n + alias3((helpers.lang||(depth0 && depth0.lang)||container.hooks.helperMissing).call(depth0 != null ? depth0 : (container.nullContext || {}),\"rating\",{\"name\":\"lang\",\"hash\":{},\"data\":data}))\n + \"</div>\\r\\n <p class=\\\"col-9\\\"><span class=\\\"p-1 badge text-white tool-tip \"\n + alias3(alias2(((stack1 = (depth0 != null ? depth0.options : depth0)) != null ? stack1.ratingClass : stack1), depth0))\n + \" \"\n + alias3(alias2(((stack1 = ((stack1 = (depth0 != null ? depth0.options : depth0)) != null ? stack1.styles : stack1)) != null ? stack1.rating : stack1), depth0))\n + \"\\\" title=\\\"\"\n + alias3(alias2(((stack1 = (depth0 != null ? depth0.rating : depth0)) != null ? stack1.name : stack1), depth0))\n + \"\\\">\"\n + alias3(alias2(((stack1 = (depth0 != null ? depth0.rating : depth0)) != null ? stack1.code : stack1), depth0))\n + \"</span></p>\\r\\n\";\n},\"10\":function(container,depth0,helpers,partials,data) {\n var stack1, alias1=container.propertyIsEnumerable, alias2=container.escapeExpression;\n\n return \" <div class=\\\"col-3 \"\n + alias2(container.lambda(((stack1 = ((stack1 = (depth0 != null ? depth0.options : depth0)) != null ? stack1.styles : stack1)) != null ? stack1.columnNames : stack1), depth0))\n + \"\\\">\"\n + alias2((helpers.lang||(depth0 && depth0.lang)||container.hooks.helperMissing).call(depth0 != null ? depth0 : (container.nullContext || {}),\"description\",{\"name\":\"lang\",\"hash\":{},\"data\":data}))\n + \"</div>\\r\\n <div class=\\\"col-9\\\">\\r\\n <div class=\\\"description-region\\\"></div>\\r\\n </div>\\r\\n\";\n},\"12\":function(container,depth0,helpers,partials,data) {\n var stack1, helper, alias1=container.propertyIsEnumerable, alias2=container.escapeExpression, alias3=depth0 != null ? depth0 : (container.nullContext || {}), alias4=container.hooks.helperMissing;\n\n return \" <div class=\\\"col-3 \"\n + alias2(container.lambda(((stack1 = ((stack1 = (depth0 != null ? depth0.options : depth0)) != null ? stack1.styles : stack1)) != null ? stack1.columnNames : stack1), depth0))\n + \"\\\">\"\n + alias2((helpers.lang||(depth0 && depth0.lang)||alias4).call(alias3,\"productionYear\",{\"name\":\"lang\",\"hash\":{},\"data\":data}))\n + \"</div>\\r\\n <p class=\\\"col-9\\\">\"\n + alias2(((helper = (helper = helpers.productionYear || (depth0 != null ? depth0.productionYear : depth0)) != null ? helper : alias4),(typeof helper === \"function\" ? helper.call(alias3,{\"name\":\"productionYear\",\"hash\":{},\"data\":data}) : helper)))\n + \"</p>\\r\\n\";\n},\"14\":function(container,depth0,helpers,partials,data) {\n var stack1, alias1=container.propertyIsEnumerable, alias2=container.lambda, alias3=container.escapeExpression, alias4=depth0 != null ? depth0 : (container.nullContext || {});\n\n return \" <div class=\\\"col-3 \"\n + alias3(alias2(((stack1 = ((stack1 = (depth0 != null ? depth0.options : depth0)) != null ? stack1.styles : stack1)) != null ? stack1.columnNames : stack1), depth0))\n + \"\\\">\"\n + alias3((helpers.lang||(depth0 && depth0.lang)||container.hooks.helperMissing).call(alias4,\"producers\",{\"name\":\"lang\",\"hash\":{},\"data\":data}))\n + \"</div>\\r\\n <div class=\\\"col-9 \"\n + alias3(alias2(((stack1 = ((stack1 = (depth0 != null ? depth0.options : depth0)) != null ? stack1.styles : stack1)) != null ? stack1.citationValues : stack1), depth0))\n + \"\\\">\\r\\n <p>\\r\\n\"\n + ((stack1 = helpers.each.call(alias4,(depth0 != null ? depth0.producers : depth0),{\"name\":\"each\",\"hash\":{},\"fn\":container.program(15, data, 0),\"inverse\":container.noop,\"data\":data})) != null ? stack1 : \"\")\n + \" </p>\\r\\n </div>\\r\\n\";\n},\"15\":function(container,depth0,helpers,partials,data) {\n var helper, alias1=container.propertyIsEnumerable;\n\n return \" <span>\"\n + container.escapeExpression(((helper = (helper = helpers.name || (depth0 != null ? depth0.name : depth0)) != null ? helper : container.hooks.helperMissing),(typeof helper === \"function\" ? helper.call(depth0 != null ? depth0 : (container.nullContext || {}),{\"name\":\"name\",\"hash\":{},\"data\":data}) : helper)))\n + \"</span>\\r\\n\";\n},\"17\":function(container,depth0,helpers,partials,data) {\n var stack1, alias1=container.propertyIsEnumerable, alias2=container.lambda, alias3=container.escapeExpression, alias4=depth0 != null ? depth0 : (container.nullContext || {});\n\n return \" <div class=\\\"col-3 \"\n + alias3(alias2(((stack1 = ((stack1 = (depth0 != null ? depth0.options : depth0)) != null ? stack1.styles : stack1)) != null ? stack1.columnNames : stack1), depth0))\n + \"\\\">\"\n + alias3((helpers.lang||(depth0 && depth0.lang)||container.hooks.helperMissing).call(alias4,\"directors\",{\"name\":\"lang\",\"hash\":{},\"data\":data}))\n + \"</div>\\r\\n <div class=\\\"col-9 \"\n + alias3(alias2(((stack1 = ((stack1 = (depth0 != null ? depth0.options : depth0)) != null ? stack1.styles : stack1)) != null ? stack1.citationValues : stack1), depth0))\n + \"\\\">\\r\\n <p>\\r\\n\"\n + ((stack1 = helpers.each.call(alias4,(depth0 != null ? depth0.directors : depth0),{\"name\":\"each\",\"hash\":{},\"fn\":container.program(15, data, 0),\"inverse\":container.noop,\"data\":data})) != null ? stack1 : \"\")\n + \" </p>\\r\\n </div>\\r\\n\";\n},\"19\":function(container,depth0,helpers,partials,data) {\n var stack1, alias1=container.propertyIsEnumerable, alias2=container.lambda, alias3=container.escapeExpression, alias4=depth0 != null ? depth0 : (container.nullContext || {});\n\n return \" <div class=\\\"col-3 \"\n + alias3(alias2(((stack1 = ((stack1 = (depth0 != null ? depth0.options : depth0)) != null ? stack1.styles : stack1)) != null ? stack1.columnNames : stack1), depth0))\n + \"\\\">\"\n + alias3((helpers.lang||(depth0 && depth0.lang)||container.hooks.helperMissing).call(alias4,\"productionCompanies\",{\"name\":\"lang\",\"hash\":{},\"data\":data}))\n + \"</div>\\r\\n <div class=\\\"col-9 \"\n + alias3(alias2(((stack1 = ((stack1 = (depth0 != null ? depth0.options : depth0)) != null ? stack1.styles : stack1)) != null ? stack1.citationValues : stack1), depth0))\n + \"\\\">\\r\\n <p>\\r\\n\"\n + ((stack1 = helpers.each.call(alias4,(depth0 != null ? depth0.productionCompanies : depth0),{\"name\":\"each\",\"hash\":{},\"fn\":container.program(15, data, 0),\"inverse\":container.noop,\"data\":data})) != null ? stack1 : \"\")\n + \" </p>\\r\\n </div>\\r\\n\";\n},\"21\":function(container,depth0,helpers,partials,data) {\n var stack1, alias1=container.propertyIsEnumerable, alias2=container.lambda, alias3=container.escapeExpression, alias4=depth0 != null ? depth0 : (container.nullContext || {});\n\n return \" <div class=\\\"col-3 \"\n + alias3(alias2(((stack1 = ((stack1 = (depth0 != null ? depth0.options : depth0)) != null ? stack1.styles : stack1)) != null ? stack1.columnNames : stack1), depth0))\n + \"\\\">\"\n + alias3((helpers.lang||(depth0 && depth0.lang)||container.hooks.helperMissing).call(alias4,\"distributors\",{\"name\":\"lang\",\"hash\":{},\"data\":data}))\n + \"</div>\\r\\n <div class=\\\"col-9 \"\n + alias3(alias2(((stack1 = ((stack1 = (depth0 != null ? depth0.options : depth0)) != null ? stack1.styles : stack1)) != null ? stack1.citationValues : stack1), depth0))\n + \"\\\">\\r\\n <p>\\r\\n\"\n + ((stack1 = helpers.each.call(alias4,(depth0 != null ? depth0.distributors : depth0),{\"name\":\"each\",\"hash\":{},\"fn\":container.program(15, data, 0),\"inverse\":container.noop,\"data\":data})) != null ? stack1 : \"\")\n + \" </p>\\r\\n </div>\\r\\n\";\n},\"23\":function(container,depth0,helpers,partials,data) {\n var stack1, alias1=container.propertyIsEnumerable;\n\n return ((stack1 = helpers[\"if\"].call(depth0 != null ? depth0 : (container.nullContext || {}),(depth0 != null ? depth0.channel : depth0),{\"name\":\"if\",\"hash\":{},\"fn\":container.program(24, data, 0),\"inverse\":container.noop,\"data\":data})) != null ? stack1 : \"\");\n},\"24\":function(container,depth0,helpers,partials,data) {\n var stack1, alias1=container.propertyIsEnumerable, alias2=container.lambda, alias3=container.escapeExpression;\n\n return \"\\r\\n <div class=\\\"col-3 \"\n + alias3(alias2(((stack1 = ((stack1 = (depth0 != null ? depth0.options : depth0)) != null ? stack1.styles : stack1)) != null ? stack1.columnNames : stack1), depth0))\n + \"\\\">\"\n + alias3((helpers.lang||(depth0 && depth0.lang)||container.hooks.helperMissing).call(depth0 != null ? depth0 : (container.nullContext || {}),\"channel\",{\"name\":\"lang\",\"hash\":{},\"data\":data}))\n + \"</div>\\r\\n <p class=\\\"col-9\\\">\"\n + alias3(alias2(((stack1 = (depth0 != null ? depth0.channel : depth0)) != null ? stack1.name : stack1), depth0))\n + \"</p>\\r\\n \";\n},\"26\":function(container,depth0,helpers,partials,data) {\n var stack1, alias1=container.propertyIsEnumerable, alias2=container.lambda, alias3=container.escapeExpression;\n\n return \" <div class=\\\"col-3 \"\n + alias3(alias2(((stack1 = ((stack1 = (depth0 != null ? depth0.options : depth0)) != null ? stack1.styles : stack1)) != null ? stack1.columnNames : stack1), depth0))\n + \"\\\">\"\n + alias3((helpers.lang||(depth0 && depth0.lang)||container.hooks.helperMissing).call(depth0 != null ? depth0 : (container.nullContext || {}),\"broadcastDate\",{\"name\":\"lang\",\"hash\":{},\"data\":data}))\n + \"</div>\\r\\n <p class=\\\"col-9\\\">\"\n + alias3(alias2(((stack1 = (depth0 != null ? depth0.options : depth0)) != null ? stack1.broadcastDate : stack1), depth0))\n + \"</p>\\r\\n\";\n},\"28\":function(container,depth0,helpers,partials,data) {\n var stack1, alias1=container.propertyIsEnumerable, alias2=container.lambda, alias3=container.escapeExpression;\n\n return \" <div class=\\\"col-3 \"\n + alias3(alias2(((stack1 = ((stack1 = (depth0 != null ? depth0.options : depth0)) != null ? stack1.styles : stack1)) != null ? stack1.columnNames : stack1), depth0))\n + \"\\\">\"\n + alias3((helpers.lang||(depth0 && depth0.lang)||container.hooks.helperMissing).call(depth0 != null ? depth0 : (container.nullContext || {}),\"subtitles\",{\"name\":\"lang\",\"hash\":{},\"data\":data}))\n + \"</div>\\r\\n <p class=\\\"col-9\\\">\"\n + alias3(alias2(((stack1 = (depth0 != null ? depth0.options : depth0)) != null ? stack1.subtitles : stack1), depth0))\n + \"</p>\\r\\n\";\n},\"compiler\":[8,\">= 4.3.0\"],\"main\":function(container,depth0,helpers,partials,data) {\n var stack1, alias1=container.propertyIsEnumerable, alias2=depth0 != null ? depth0 : (container.nullContext || {});\n\n return ((stack1 = helpers[\"if\"].call(alias2,((stack1 = (depth0 != null ? depth0.options : depth0)) != null ? stack1.showHeading : stack1),{\"name\":\"if\",\"hash\":{},\"fn\":container.program(1, data, 0),\"inverse\":container.noop,\"data\":data})) != null ? stack1 : \"\")\n + \"<div class=\\\"row mb-0\\\">\\r\\n\"\n + ((stack1 = helpers[\"if\"].call(alias2,(depth0 != null ? depth0.name : depth0),{\"name\":\"if\",\"hash\":{},\"fn\":container.program(4, data, 0),\"inverse\":container.noop,\"data\":data})) != null ? stack1 : \"\")\n + \"\\r\\n\"\n + ((stack1 = helpers[\"if\"].call(alias2,((stack1 = (depth0 != null ? depth0.series : depth0)) != null ? stack1.name : stack1),{\"name\":\"if\",\"hash\":{},\"fn\":container.program(6, data, 0),\"inverse\":container.noop,\"data\":data})) != null ? stack1 : \"\")\n + \"\\r\\n\"\n + ((stack1 = helpers[\"if\"].call(alias2,((stack1 = (depth0 != null ? depth0.rating : depth0)) != null ? stack1.code : stack1),{\"name\":\"if\",\"hash\":{},\"fn\":container.program(8, data, 0),\"inverse\":container.noop,\"data\":data})) != null ? stack1 : \"\")\n + \"\\r\\n\"\n + ((stack1 = helpers[\"if\"].call(alias2,(depth0 != null ? depth0.description : depth0),{\"name\":\"if\",\"hash\":{},\"fn\":container.program(10, data, 0),\"inverse\":container.noop,\"data\":data})) != null ? stack1 : \"\")\n + \"\\r\\n\"\n + ((stack1 = helpers[\"if\"].call(alias2,(depth0 != null ? depth0.productionYear : depth0),{\"name\":\"if\",\"hash\":{},\"fn\":container.program(12, data, 0),\"inverse\":container.noop,\"data\":data})) != null ? stack1 : \"\")\n + \"\\r\\n\"\n + ((stack1 = helpers[\"if\"].call(alias2,((stack1 = (depth0 != null ? depth0.producers : depth0)) != null ? stack1.length : stack1),{\"name\":\"if\",\"hash\":{},\"fn\":container.program(14, data, 0),\"inverse\":container.noop,\"data\":data})) != null ? stack1 : \"\")\n + \"\\r\\n\"\n + ((stack1 = helpers[\"if\"].call(alias2,((stack1 = (depth0 != null ? depth0.directors : depth0)) != null ? stack1.length : stack1),{\"name\":\"if\",\"hash\":{},\"fn\":container.program(17, data, 0),\"inverse\":container.noop,\"data\":data})) != null ? stack1 : \"\")\n + \"\\r\\n\"\n + ((stack1 = helpers[\"if\"].call(alias2,((stack1 = (depth0 != null ? depth0.productionCompanies : depth0)) != null ? stack1.length : stack1),{\"name\":\"if\",\"hash\":{},\"fn\":container.program(19, data, 0),\"inverse\":container.noop,\"data\":data})) != null ? stack1 : \"\")\n + \"\\r\\n\"\n + ((stack1 = helpers[\"if\"].call(alias2,((stack1 = (depth0 != null ? depth0.distributors : depth0)) != null ? stack1.length : stack1),{\"name\":\"if\",\"hash\":{},\"fn\":container.program(21, data, 0),\"inverse\":container.noop,\"data\":data})) != null ? stack1 : \"\")\n + \"\\r\\n \"\n + ((stack1 = helpers[\"if\"].call(alias2,((stack1 = (depth0 != null ? depth0.channel : depth0)) != null ? stack1.name : stack1),{\"name\":\"if\",\"hash\":{},\"fn\":container.program(23, data, 0),\"inverse\":container.noop,\"data\":data})) != null ? stack1 : \"\")\n + \"\\r\\n\\r\\n\"\n + ((stack1 = helpers[\"if\"].call(alias2,((stack1 = (depth0 != null ? depth0.options : depth0)) != null ? stack1.broadcastDate : stack1),{\"name\":\"if\",\"hash\":{},\"fn\":container.program(26, data, 0),\"inverse\":container.noop,\"data\":data})) != null ? stack1 : \"\")\n + \"\\r\\n\"\n + ((stack1 = helpers[\"if\"].call(alias2,((stack1 = (depth0 != null ? depth0.options : depth0)) != null ? stack1.subtitles : stack1),{\"name\":\"if\",\"hash\":{},\"fn\":container.program(28, data, 0),\"inverse\":container.noop,\"data\":data})) != null ? stack1 : \"\")\n + \"</div>\";\n},\"useData\":true});","import * as _ from 'underscore';\r\nimport { ObjectHash } from 'backbone';\r\nimport * as moment from 'moment';\r\n\r\nimport { Core } from 'libs/common/core';\r\nimport { UrlHelper } from 'libs/common/backbone/utils/UrlHelper';\r\nimport { SvgHelper, cvSvgLibrary } from 'libs/shared/utils/SvgHelper';\r\nimport { TooltipBehavior } from 'libs/shared/legacy/behaviors/tooltip/TooltipBehavior';\r\n\r\nimport { Video } from 'shared/models/Video';\r\nimport { Subtitle } from 'shared/models/Subtitle';\r\nimport { Config } from 'shared/models/Config';\r\nimport { Actions, AppChannels } from 'shared/constants';\r\n\r\nimport { TimeType, PartialLoading, CitationType } from 'shared/enums';\r\nimport { VideoDescriptionComponent, VideoDescriptionTruncationSize } from 'shared/components/video-description/VideoDescriptionComponent';\r\nimport { VideoItemSeriesComponent } from 'shared/components/video-item/video-item-metadata/video-item-series/VideoItemSeriesComponent';\r\n\r\nimport { VideoDetailsHelper } from 'apps/library-editor/utils';\r\n\r\nimport styles from './video-basic-info.scss';\r\nimport VideoBasicInfoTemplate from './VideoBasicInfo.hbs';\r\nimport { LanguageService } from 'libs/common/backbone/services/LanguageService';\r\n\r\ninterface VideoBasicInfoComponentOptions extends Core.ComponentOptions {\r\n model: Video;\r\n showHeading?: boolean;\r\n truncateDescription?: boolean;\r\n showPublisherVideoDetails?: boolean;\r\n externalSeriesLink?: boolean;\r\n config: Config;\r\n}\r\n\r\nexport class VideoBasicInfoComponent extends Core.Component<Video> {\r\n public options: VideoBasicInfoComponentOptions;\r\n\r\n constructor(options: VideoBasicInfoComponentOptions) {\r\n super(options);\r\n }\r\n\r\n public get name(): string {\r\n return 'VideoBasicInfoComponent';\r\n }\r\n\r\n public get template(): any {\r\n return VideoBasicInfoTemplate;\r\n }\r\n\r\n public get lang(): string {\r\n return 'shared.videoBasicInfo';\r\n }\r\n\r\n public get defaults(): ObjectHash {\r\n return {\r\n truncateDescription: true\r\n };\r\n }\r\n\r\n public get behaviors(): any[] {\r\n return [{\r\n behaviorClass: TooltipBehavior,\r\n selector: '.tool-tip'\r\n }];\r\n }\r\n\r\n public regions(): ObjectHash {\r\n return {\r\n description: {\r\n el: '.description-region',\r\n replaceElement: true,\r\n partialLoading: PartialLoading.VideoBasicInfo\r\n },\r\n series: {\r\n el: '.series-region',\r\n replaceElement: true\r\n }\r\n };\r\n }\r\n\r\n public get appLinks(): Core.AppLinkHash {\r\n return {\r\n '.applink-publisher-video': {\r\n application: AppChannels.LIBRARY_EDITOR,\r\n action: Actions.LibraryEditor.SHOW_PUBLISHER_VIDEO,\r\n args: [this.model.get('id')]\r\n }\r\n };\r\n }\r\n\r\n private getBroadcastDate(): string {\r\n if (!this.model.get('dateBroadcast')) return '';\r\n\r\n return moment(this.model.get('dateBroadcast')).format(TimeType.FULL_YEAR);\r\n }\r\n\r\n private getSeriesUrl(): string {\r\n if (!this.options.externalSeriesLink || !this.model.series) return;\r\n\r\n return UrlHelper.safeUrlConcat(this.options.config.get('onlineUrl'), `series/${this.model.series.id}`);\r\n }\r\n\r\n private renderSeries(): void {\r\n if (!this.model.series || !this.model.series.get('name'))\r\n return;\r\n\r\n this.showChildView('series', new VideoItemSeriesComponent({\r\n model: this.model,\r\n highlight: false,\r\n seriesUrl: this.getSeriesUrl(),\r\n styleUppercase: false\r\n }));\r\n }\r\n\r\n private renderDescription(): void {\r\n if (!this.model || !this.model.get('description')) return;\r\n\r\n const view = new VideoDescriptionComponent({\r\n model: this.model,\r\n linkify: true,\r\n size: VideoDescriptionTruncationSize.Large,\r\n truncate: this.options.truncateDescription,\r\n allowExpand: true\r\n });\r\n this.showChildView('description', view);\r\n }\r\n\r\n private getSubtitleLanguage(): string {\r\n if (!(this.model.subtitles && this.model.get('subtitles').length)) return '';\r\n\r\n return _.uniq(this.model.get('subtitles').map((subtitle: Subtitle) => {\r\n const code = subtitle.get('language');\r\n const fullName = CVLanguages.getFullEnglishName(code);\r\n\r\n return subtitle.get('metadata')?.autoGenerated\r\n ? LanguageService.getPhrase(this.lang, 'autoGenerated', { name: fullName })\r\n : fullName;\r\n })).join(', ');\r\n }\r\n\r\n\r\n private getCitationHeading(type: CitationType, single: string, plural: string): string {\r\n if (!this.model.get(type))\r\n return '';\r\n\r\n return this.model.get(type).length > 1 ? plural : single;\r\n }\r\n\r\n private getCitationHeadings(): ObjectHash {\r\n return {\r\n productionCompaniesText: this.getCitationHeading(CitationType.ProductionCompany, 'Production Company', 'Production Companies'),\r\n producersText: this.getCitationHeading(CitationType.Producer, 'Producer', 'Producers'),\r\n disributorsText: this.getCitationHeading(CitationType.Distributor, 'Distributor', 'Distributors'),\r\n directorsText: this.getCitationHeading(CitationType.Director, 'Director', 'Directors')\r\n };\r\n }\r\n\r\n public viewOptions(): ObjectHash {\r\n return {\r\n styles,\r\n ratingClass: this.model.rating && VideoDetailsHelper.mapRatingToClass(this.model.rating.get('value')),\r\n broadcastDate: this.getBroadcastDate(),\r\n showHeading: this.options.showHeading,\r\n subtitles: this.getSubtitleLanguage(),\r\n publisherArchiveSvg: SvgHelper.getSvg(cvSvgLibrary.PublisherArchive),\r\n showPublisherVideoDetails: this.options.showPublisherVideoDetails,\r\n ...this.getCitationHeadings()\r\n };\r\n }\r\n\r\n public onRender(): void {\r\n this.renderSeries();\r\n this.renderDescription();\r\n }\r\n}\r\n","// extracted by mini-css-extract-plugin\nmodule.exports = {\"columnNames\":\"cv--columnNames--1N_VT\",\"seriesContainer\":\"cv--seriesContainer--4pk2s\",\"icon\":\"cv--icon--3SoBV\",\"citationValues\":\"cv--citationValues--1nYZg\"};"],"sourceRoot":""}
@@ -0,0 +1 @@
1
+ (window.webpackJsonp_clickview_library_editor=window.webpackJsonp_clickview_library_editor||[]).push([[27],{1083:function(e,t,n){"use strict";var i=n(2),o=n(19),r=n(6),a=n(0),s=n(283),l=n(1152),c=n.n(l),u=n(1153),h=n.n(u);function d(e){return(d="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}function f(e,t){for(var n=0;n<t.length;n++){var i=t[n];i.enumerable=i.enumerable||!1,i.configurable=!0,"value"in i&&(i.writable=!0),Object.defineProperty(e,i.key,i)}}function p(e,t){return(p=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e})(e,t)}function v(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,i=y(e);if(t){var o=y(this).constructor;n=Reflect.construct(i,arguments,o)}else n=i.apply(this,arguments);return m(this,n)}}function m(e,t){return!t||"object"!==d(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 y(e){return(y=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)})(e)}var b=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&&p(e,t)}(l,e);var t,n,i,o=v(l);function l(e){return function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,l),o.call(this,e)}return t=l,(n=[{key:"events",value:function(){return this.options.removeEvent?{"click @ui.close":"onRemoveTag"}:{click:"onClickTag"}}},{key:"initialize",value:function(){this.options.behavior===s.b.Edit&&this.listenTo(this.model,"change",this.render)}},{key:"isSaving",value:function(){if(this.options.behavior!==s.b.Filter){var e=this.model.pick("id","name","remove"),t=e.id,n=e.name;return!!e.remove||!t||!n}}},{key:"onRemoveTag",value:function(e){if(e.stopPropagation(),!this.isSaving())return this.model.set("remove",!0),r.Radio.channel(this.options.channelName).trigger(this.options.removeEvent,this.model),!1}},{key:"onClickTag",value:function(){this.options.behavior!==s.b.Filter||this.options.removeEvent||r.Radio.channel(this.options.channelName).trigger(this.options.clickEvent,this.model)}},{key:"viewOptions",value:function(){return{removable:this.options.removeEvent}}},{key:"onRender",value:function(){this.resetClassName()}},{key:"name",get:function(){return"TagItemComponent"}},{key:"tagName",get:function(){return this.options.behavior===s.b.Link?"a":"span"}},{key:"className",get:function(){var e="".concat(this.options.orientation===s.c.Vertical?"":" d-inline-flex"),t="".concat(this.isSaving()?" saving":""),n="".concat(this.options.behavior===s.b.Disabled?" ".concat(h.a.disabled):""),i="".concat(this.options.behavior===s.b.Filter?" cursor-pointer":"");return"badge-pill tag py-1 px-2 my-1 mr-1".concat(i).concat(e).concat(t).concat(n)}},{key:"template",get:function(){return c.a}},{key:"elements",get:function(){return{close:".close"}}},{key:"appLinks",get:function(){return this.options.behavior!==s.b.Link?{}:{"[this]":{application:a.b.SEARCH,action:a.a.Search.HOME,params:{tag:this.model.get("name")}}}}},{key:"defaults",get:function(){return{behavior:s.b.Link,orientation:s.c.Flex}}}])&&f(t.prototype,n),i&&f(t,i),l}(i.a.Component);function g(e){return(g="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}function w(e,t){for(var n=0;n<t.length;n++){var i=t[n];i.enumerable=i.enumerable||!1,i.configurable=!0,"value"in i&&(i.writable=!0),Object.defineProperty(e,i.key,i)}}function k(e,t){return(k=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e})(e,t)}function S(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,i=E(e);if(t){var o=E(this).constructor;n=Reflect.construct(i,arguments,o)}else n=i.apply(this,arguments);return T(this,n)}}function T(e,t){return!t||"object"!==g(t)&&"function"!=typeof t?function(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}(e):t}function E(e){return(E=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)})(e)}n.d(t,"a",(function(){return C}));var C=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&&k(e,t)}(l,e);var t,n,r,a=S(l);function l(e){return function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,l),a.call(this,e)}return t=l,(n=[{key:"initialize",value:function(){this.options.behavior!==s.b.Edit||this.options.removeEvent||i.a.ErrorHelper.throw(new o.a("removeEvent is required to edit tags."))}},{key:"name",get:function(){return"TagComponentCollection"}},{key:"defaults",get:function(){return{orientation:s.c.Flex}}},{key:"className",get:function(){var e="".concat(this.options.orientation===s.c.Vertical?" d-flex align-items-start flex-column":"");return"tags".concat(e)}},{key:"childViewOptions",get:function(){return{channelName:this.options.channelName,behavior:this.options.behavior,orientation:this.options.orientation,removeEvent:this.options.removeEvent,clickEvent:this.options.clickEvent}}},{key:"childView",get:function(){return b}}])&&w(t.prototype,n),r&&w(t,r),l}(i.a.ComponentCollection)},1108:function(e,t,n){"use strict";n.d(t,"a",(function(){return v}));var i=n(1),o=n(2),r=n(1109),a=n.n(r),s=n(1110),l=n.n(s);function c(e){return(c="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}function u(e,t){for(var n=0;n<t.length;n++){var i=t[n];i.enumerable=i.enumerable||!1,i.configurable=!0,"value"in i&&(i.writable=!0),Object.defineProperty(e,i.key,i)}}function h(e,t){return(h=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e})(e,t)}function d(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,i=p(e);if(t){var o=p(this).constructor;n=Reflect.construct(i,arguments,o)}else n=i.apply(this,arguments);return f(this,n)}}function f(e,t){return!t||"object"!==c(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 p(e){return(p=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)})(e)}var v=function(e){!function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),t&&h(e,t)}(s,e);var t,n,o,r=d(s);function s(e){return function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,s),r.call(this,e)}return t=s,(n=[{key:"viewOptions",value:function(){var e=this.options.tabs.map((function(e){return Object.assign(Object.assign({},e),{link:e.link.selector.replace(".","")})}));return{styles:a.a,tabs:e}}},{key:"setActiveTab",value:function(){var e=this,t=!1;if(this.options.tabs.forEach((function(n){n.active=!1,n.link.selector===e.options.activeTab&&(n.active=!0,t=!0)})),!t){var n=i.first(this.options.tabs);n&&(n.active=!0)}}},{key:"onBeforeRender",value:function(){this.setActiveTab()}},{key:"name",get:function(){return"TabsView"}},{key:"className",get:function(){var e="bg-white py-2 border-bottom";return this.options.className&&(e+=" ".concat(this.options.className)),e}},{key:"template",get:function(){return l.a}},{key:"appLinks",get:function(){var e={};return this.options.tabs.forEach((function(t){return e[t.link.selector]=t.link.appLink})),e}}])&&u(t.prototype,n),o&&u(t,o),s}(o.a.Component)},1109:function(e,t,n){e.exports={link:"_5idZs",active:"_3Ty4M"}},1110:function(e,t,n){var i=n(10);e.exports=(i.default||i).template({1:function(e,t,n,i,o,r,a){var s;e.propertyIsEnumerable;return null!=(s=n.unless.call(null!=t?t:e.nullContext||{},null!=t?t.hide:t,{name:"unless",hash:{},fn:e.program(2,o,0,r,a),inverse:e.noop,data:o}))?s:""},2:function(e,t,n,i,o,r,a){e.propertyIsEnumerable;var s,l=e.lambda,c=e.escapeExpression;return' <a class="'+c(l(null!=(s=null!=(s=null!=a[1]?a[1].options:a[1])?s.styles:s)?s.link:s,t))+" p-2 "+c(l(null!=t?t.link:t,t))+" "+(null!=(s=n.if.call(null!=t?t:e.nullContext||{},null!=t?t.active:t,{name:"if",hash:{},fn:e.program(3,o,0,r,a),inverse:e.noop,data:o}))?s:"")+'">'+c(l(null!=t?t.name:t,t))+"</a>\r\n"},3:function(e,t,n,i,o,r,a){var s;e.propertyIsEnumerable;return e.escapeExpression(e.lambda(null!=(s=null!=(s=null!=a[1]?a[1].options:a[1])?s.styles:s)?s.active:s,t))+" border-bottom border-primary text-primary"},compiler:[8,">= 4.3.0"],main:function(e,t,n,i,o,r,a){var s;e.propertyIsEnumerable;return null!=(s=n.each.call(null!=t?t:e.nullContext||{},null!=(s=null!=t?t.options:t)?s.tabs:s,{name:"each",hash:{},fn:e.program(1,o,0,r,a),inverse:e.noop,data:o}))?s:""},useData:!0,useDepths:!0})},1130:function(e,t,n){"use strict";n.d(t,"a",(function(){return b}));var i=n(6),o=n(2),r=n(15),a=n(1131),s=n.n(a),l=n(1132),c=n.n(l),u=n(0),h=n(1108);function d(e){return(d="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}function f(e,t){for(var n=0;n<t.length;n++){var i=t[n];i.enumerable=i.enumerable||!1,i.configurable=!0,"value"in i&&(i.writable=!0),Object.defineProperty(e,i.key,i)}}function p(e,t){return(p=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e})(e,t)}function v(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,i=y(e);if(t){var o=y(this).constructor;n=Reflect.construct(i,arguments,o)}else n=i.apply(this,arguments);return m(this,n)}}function m(e,t){return!t||"object"!==d(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 y(e){return(y=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)})(e)}var b=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&&p(e,t)}(l,e);var t,n,o,a=v(l);function l(e){return function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,l),a.call(this,e)}return t=l,(n=[{key:"regions",value:function(){return{tabs:{el:".tabs-region",replaceElement:!0}}}},{key:"viewOptions",value:function(){var e=Object.assign(Object.assign({},this.options.goBackTab),{link:this.options.goBackTab.link.selector.replace(".","")});return{styles:s.a,backTab:e,backArrow:r.a.getSvg(r.b.ArrowLeft)}}},{key:"onSave",value:function(){i.Radio.channel(u.b.LIBRARY_EDITOR).trigger(u.a.LibraryEditor.SAVE_VIDEO)}},{key:"onRender",value:function(){this.showChildView("tabs",new h.a({tabs:this.options.tabs,activeTab:this.options.activeTab}))}},{key:"name",get:function(){return"EditVideoTabsComponent"}},{key:"className",get:function(){return"bg-white"}},{key:"template",get:function(){return c.a}},{key:"appLinks",get:function(){var e,t,n,i=this.options.goBackTab.link;return e={},t=i.selector,n=i.appLink,t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}}])&&f(t.prototype,n),o&&f(t,o),l}(o.a.Component)},1131:function(e,t,n){e.exports={svgContainer:"_27gR6"}},1132:function(e,t,n){var i=n(10);e.exports=(i.default||i).template({compiler:[8,">= 4.3.0"],main:function(e,t,n,i,o){e.propertyIsEnumerable;var r,a=e.lambda,s=e.escapeExpression;return'<div class="row">\r\n <h4>\r\n <a class="d-inline-flex align-items-center '+s(a(null!=(r=null!=(r=null!=t?t.options:t)?r.styles:r)?r.link:r,t))+" "+s(a(null!=(r=null!=(r=null!=t?t.options:t)?r.backTab:r)?r.link:r,t))+'">\r\n <span class="'+s(a(null!=(r=null!=(r=null!=t?t.options:t)?r.styles:r)?r.svgContainer:r,t))+' d-inline-block mx-2">'+(null!=(r=a(null!=(r=null!=t?t.options:t)?r.backArrow:r,t))?r:"")+"</span>\r\n "+s(a(null!=(r=null!=(r=null!=t?t.options:t)?r.backTab:r)?r.name:r,t))+'\r\n </a>\r\n </h4>\r\n</div>\r\n<div class="tabs-region pl-2"></div>'},useData:!0})},1152:function(e,t,n){var i=n(10);e.exports=(i.default||i).template({1:function(e,t,n,i,o){return'<span class="close cursor-pointer" aria-hidden="true">&times;</span>\r\n'},compiler:[8,">= 4.3.0"],main:function(e,t,n,i,o){e.propertyIsEnumerable;var r,a,s=null!=t?t:e.nullContext||{};return e.escapeExpression("function"==typeof(a=null!=(a=n.name||(null!=t?t.name:t))?a:e.hooks.helperMissing)?a.call(s,{name:"name",hash:{},data:o}):a)+"\r\n"+(null!=(r=n.if.call(s,null!=(r=null!=t?t.options:t)?r.removable:r,{name:"if",hash:{},fn:e.program(1,o,0),inverse:e.noop,data:o}))?r:"")},useData:!0})},1153:function(e,t,n){e.exports={disabled:"_3Vziu"}},1290:function(e,t,n){var i=n(10);e.exports=(i.default||i).template({compiler:[8,">= 4.3.0"],main:function(e,t,n,i,o){var r;e.propertyIsEnumerable;return'<div class="form-group">\r\n <label for="edit-description">'+e.escapeExpression("function"==typeof(r=null!=(r=n.name||(null!=t?t.name:t))?r:e.hooks.helperMissing)?r.call(null!=t?t:e.nullContext||{},{name:"name",hash:{},data:o}):r)+'</label>\r\n <div class="text-area-region"></div>\r\n <div class="form-feedback"></div>\r\n</div>'},useData:!0})},1291:function(e,t,n){var i=n(10);e.exports=(i.default||i).template({compiler:[8,">= 4.3.0"],main:function(e,t,n,i,o){return'<h5 class="mb-0">Extra Information</h5>\r\n<div class="text-muted mb-3">This information is only visible to admins and will not be searchable</div>\r\n<div class="fields-region"></div>'},useData:!0})},1292:function(e,t,n){var i=n(10);e.exports=(i.default||i).template({1:function(e,t,n,i,o){var r;e.propertyIsEnumerable;return"<h5>"+e.escapeExpression(e.lambda(null!=(r=null!=t?t.options:t)?r.headerText:r,t))+"</h5>\r\n"},3:function(e,t,n,i,o){var r;e.propertyIsEnumerable;return"<p>"+e.escapeExpression(e.lambda(null!=(r=null!=t?t.options:t)?r.emptyStateText:r,t))+"</p>\r\n"},5:function(e,t,n,i,o){return'<div class="tag-selector-region"></div>\r\n'},compiler:[8,">= 4.3.0"],main:function(e,t,n,i,o){e.propertyIsEnumerable;var r,a=null!=t?t:e.nullContext||{};return(null!=(r=n.if.call(a,null!=(r=null!=t?t.options:t)?r.headerText:r,{name:"if",hash:{},fn:e.program(1,o,0),inverse:e.noop,data:o}))?r:"")+(null!=(r=n.if.call(a,null!=(r=null!=t?t.options:t)?r.emptyStateText:r,{name:"if",hash:{},fn:e.program(3,o,0),inverse:e.noop,data:o}))?r:"")+(null!=(r=n.if.call(a,null!=(r=null!=t?t.options:t)?r.editable:r,{name:"if",hash:{},fn:e.program(5,o,0),inverse:e.noop,data:o}))?r:"")+'<div class="tag-list-region"></div>'},useData:!0})},1293:function(e,t,n){var i=n(10);e.exports=(i.default||i).template({1:function(e,t,n,i,o){e.propertyIsEnumerable;var r,a=e.escapeExpression;return'<span class="text-muted mx-2 undo '+a(e.lambda(null!=(r=null!=(r=null!=t?t.options:t)?r.styles:r)?r.undo:r,t))+'">'+a((n.lang||t&&t.lang||e.hooks.helperMissing).call(null!=t?t:e.nullContext||{},"undo",{name:"lang",hash:{},data:o}))+"</span>\r\n"},compiler:[8,">= 4.3.0"],main:function(e,t,n,i,o){var r;e.propertyIsEnumerable;return(null!=(r=n.if.call(null!=t?t:e.nullContext||{},null!=(r=null!=t?t.options:t)?r.allowUndo:r,{name:"if",hash:{},fn:e.program(1,o,0),inverse:e.noop,data:o}))?r:"")+'<div class="save-region"></div>'},useData:!0})},1294:function(e,t,n){e.exports={saveButton:"_2FsA6",undo:"v6msX"}},1295:function(e,t,n){var i=n(10);e.exports=(i.default||i).template({1:function(e,t,n,i,o){e.propertyIsEnumerable;return"<h5>"+e.escapeExpression((n.lang||t&&t.lang||e.hooks.helperMissing).call(null!=t?t:e.nullContext||{},"label",{name:"lang",hash:{},data:o}))+"</h5>\r\n"},3:function(e,t,n,i,o){return"my-2"},5:function(e,t,n,i,o){e.propertyIsEnumerable;var r,a=null!=t?t:e.nullContext||{},s=e.hooks.helperMissing,l=e.escapeExpression;return' <div class="text-muted mt-3 mb-1"><em>'+l((n.lang||t&&t.lang||s).call(a,"recommendedSize",{name:"lang",hash:{height:null!=(r=null!=(r=null!=t?t.options:t)?r.dimensions:r)?r.height:r,width:null!=(r=null!=(r=null!=t?t.options:t)?r.dimensions:r)?r.width:r},data:o}))+'</em></div>\r\n <button class="upload-thumbnail btn btn-light mb-3 w-100">'+l((n.lang||t&&t.lang||s).call(a,"upload",{name:"lang",hash:{},data:o}))+"</button>\r\n"},compiler:[8,">= 4.3.0"],main:function(e,t,n,i,o){e.propertyIsEnumerable;var r,a=null!=t?t:e.nullContext||{};return(null!=(r=n.if.call(a,null!=(r=null!=t?t.options:t)?r.editable:r,{name:"if",hash:{},fn:e.program(1,o,0),inverse:e.noop,data:o}))?r:"")+'<div class="thumbnail-region"></div>\r\n<div class="'+(null!=(r=n.unless.call(a,null!=(r=null!=t?t.options:t)?r.editable:r,{name:"unless",hash:{},fn:e.program(3,o,0),inverse:e.noop,data:o}))?r:"")+'">\r\n'+(null!=(r=n.if.call(a,null!=(r=null!=t?t.options:t)?r.editable:r,{name:"if",hash:{},fn:e.program(5,o,0),inverse:e.noop,data:o}))?r:"")+"</div>"},useData:!0})},1296:function(e,t,n){var i=n(10);e.exports=(i.default||i).template({1:function(e,t,n,i,o){return"mb-4"},3:function(e,t,n,i,o){var r;e.propertyIsEnumerable;return' <p class="mb-2 py-1 px-2 alert alert-info '+e.escapeExpression(e.lambda(null!=(r=null!=(r=null!=t?t.options:t)?r.styles:r)?r.suggestEdit:r,t))+'">\r\n'+(null!=(r=n.if.call(null!=t?t:e.nullContext||{},null!=(r=null!=t?t.options:t)?r.isExchange:r,{name:"if",hash:{},fn:e.program(4,o,0),inverse:e.program(6,o,0),data:o}))?r:"")+" </p>\r\n"},4:function(e,t,n,i,o){var r;e.propertyIsEnumerable;return" "+(null!=(r=(n.lang||t&&t.lang||e.hooks.helperMissing).call(null!=t?t:e.nullContext||{},"suggestEditExchange",{name:"lang",hash:{classNames:null!=(r=null!=t?t.options:t)?r.suggestEditClasses:r},data:o}))?r:"")+"\r\n"},6:function(e,t,n,i,o){var r;e.propertyIsEnumerable;return" "+(null!=(r=(n.lang||t&&t.lang||e.hooks.helperMissing).call(null!=t?t:e.nullContext||{},"suggestEdit",{name:"lang",hash:{classNames:null!=(r=null!=t?t.options:t)?r.suggestEditClasses:r},data:o}))?r:"")+"\r\n"},compiler:[8,">= 4.3.0"],main:function(e,t,n,i,o){e.propertyIsEnumerable;var r,a=null!=t?t:e.nullContext||{};return'<div class="row">\r\n <div class="left-pane col-4">\r\n <div class="thumbnail-region"></div>\r\n <div class="cv-tags-region '+(null!=(r=n.unless.call(a,null!=(r=null!=t?t.options:t)?r.editable:r,{name:"unless",hash:{},fn:e.program(1,o,0),inverse:e.noop,data:o}))?r:"")+'"></div>\r\n <div class="customer-tags-region"></div>\r\n </div>\r\n <div class="right-pane col-8">\r\n'+(null!=(r=n.unless.call(a,null!=(r=null!=t?t.options:t)?r.editable:r,{name:"unless",hash:{},fn:e.program(3,o,0),inverse:e.noop,data:o}))?r:"")+' <div class="top-save-region"></div>\r\n <div class="basic-info-region mb-4"></div> \r\n <div class="additional-details-region mb-4"></div> \r\n <div class="production-info-region mb-4"></div> \r\n <div class="fields-region mb-4"></div>\r\n <div class="bottom-save-region"></div>\r\n </div>\r\n</div>'},useData:!0})},1297:function(e,t,n){e.exports={suggestEdit:"_1X4l5"}},1298:function(e,t,n){var i=n(10);e.exports=(i.default||i).template({compiler:[8,">= 4.3.0"],main:function(e,t,n,i,o){return'<div class="tab-region"></div>\r\n<div class="edit-content-region"></div>\r\n<div class="dialog-region"></div>'},useData:!0})},1483:function(e,t,n){"use strict";n.r(t);var i=n(1),o=n(6),r=n(2),a=n(19),s=n(30),l=n(3),c=n(14),u=n(5),h=n(113),d=n(0),f=n(295),p=n(134),v=n(12),m=n(97),y=n(218),b=n(293),g=n(9),w=n(4),k=n(42),S=n(186),T=n(136),E=n(1054),C=n(1213),O=n(1218),R=n(1216),x=n(1215),D=n(1290),N=n.n(D);function _(e){return(_="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}function P(e,t){for(var n=0;n<t.length;n++){var i=t[n];i.enumerable=i.enumerable||!1,i.configurable=!0,"value"in i&&(i.writable=!0),Object.defineProperty(e,i.key,i)}}function M(e,t){return(M=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e})(e,t)}function j(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,i=I(e);if(t){var o=I(this).constructor;n=Reflect.construct(i,arguments,o)}else n=i.apply(this,arguments);return V(this,n)}}function V(e,t){return!t||"object"!==_(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 I(e){return(I=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&&M(e,t)}(a,e);var t,n,i,r=j(a);function a(e){return function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,a),r.call(this,e)}return t=a,(n=[{key:"initialize",value:function(){var e=this;this.listenTo(this.model,"change",(function(){return e.options.viewModel.validate()}))}},{key:"regions",value:function(){return{textArea:{el:".text-area-region",replaceElement:!0}}}},{key:"onRender",value:function(){this.showChildView("textArea",new x.a({name:"value",class:"form-control",placeholder:this.model.get("placeholder"),id:"admin-notes"})),this.stickit(),o.Validation.bind(this)}},{key:"onDestroy",value:function(){this.unstickit(),o.Validation.unbind(this)}},{key:"template",get:function(){return N.a}},{key:"name",get:function(){return"ExtraInfoItemComponent"}},{key:"bindings",get:function(){return{"[name=value]":{observe:"value",setOptions:{validate:!0}}}}}])&&P(t.prototype,n),i&&P(t,i),a}(r.a.Component),U=n(1291),B=n.n(U);function A(e){return(A="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 F(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function J(e,t){for(var n=0;n<t.length;n++){var i=t[n];i.enumerable=i.enumerable||!1,i.configurable=!0,"value"in i&&(i.writable=!0),Object.defineProperty(e,i.key,i)}}function z(e,t,n){return t&&J(e.prototype,t),n&&J(e,n),e}function H(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&&q(e,t)}function q(e,t){return(q=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e})(e,t)}function G(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,i=W(e);if(t){var o=W(this).constructor;n=Reflect.construct(i,arguments,o)}else n=i.apply(this,arguments);return Y(this,n)}}function Y(e,t){return!t||"object"!==A(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 W(e){return(W=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)})(e)}var X=function(e){H(n,e);var t=G(n);function n(e){return F(this,n),t.call(this,e)}return z(n,[{key:"name",get:function(){return"ExtraInfoComponentCollection"}},{key:"childView",get:function(){return L}},{key:"childViewOptions",get:function(){return{viewModel:this.options.viewModel}}}]),n}(r.a.ComponentCollection),K=function(e){H(n,e);var t=G(n);function n(e){return F(this,n),t.call(this,e)}return z(n,[{key:"regions",value:function(){return{fields:{el:".fields-region",replaceElement:!0}}}},{key:"onRender",value:function(){this.showChildView("fields",new X({collection:this.model.fields,viewModel:this.model}))}},{key:"name",get:function(){return"ExtraInfoComponent"}},{key:"template",get:function(){return B.a}},{key:"className",get:function(){return"border-top pt-3"}}]),n}(r.a.Component),Z=n(244),Q=n(92),$=n(289),ee=n(1118),te=n(1083),ne=n(283),ie=n(1292),oe=n.n(ie);function re(e){return(re="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}function ae(e,t){for(var n=0;n<t.length;n++){var i=t[n];i.enumerable=i.enumerable||!1,i.configurable=!0,"value"in i&&(i.writable=!0),Object.defineProperty(e,i.key,i)}}function se(e,t){return(se=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e})(e,t)}function le(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,i=ue(e);if(t){var o=ue(this).constructor;n=Reflect.construct(i,arguments,o)}else n=i.apply(this,arguments);return ce(this,n)}}function ce(e,t){return!t||"object"!==re(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 ue(e){return(ue=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)})(e)}var he=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&&se(e,t)}(s,e);var t,n,i,o=le(s);function s(e){return function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,s),o.call(this,e)}return t=s,(n=[{key:"regions",value:function(){return{tagList:{el:".tag-list-region",replaceElement:!0},tagSelector:{el:".tag-selector-region",replaceElement:!0}}}},{key:"initialize",value:function(){this.options.behavior!==ne.b.Edit||this.options.parentId||r.a.ErrorHelper.throw(new a.a("parentId is required to edit tags."))}},{key:"getTypeaheadConfigs",value:function(){var e=$.a.getTypeaheadConfig(),t=$.a.getBloodhoundConfig(),n={newType:d.v.TagsRaw},i={newType:d.v.TagsRaw,footerTemplate:Q.a.getConfirmSelectionTemplate()};return[{name:d.v.TagsRaw,typeaheadConfig:e,bloodhoundConfig:t,options:{hideEmptyResults:!0}},{name:"add-new",typeaheadConfig:e,bloodhoundConfig:t,options:n},{name:"empty-suggestion",typeaheadConfig:e,bloodhoundConfig:t,options:i}]}},{key:"viewOptions",value:function(){var e;return this.showEmptyStateText()&&(e=this.options.emptyStateText),{headerText:this.options.headerText,editable:this.options.behavior===ne.b.Edit,emptyStateText:e}}},{key:"showEmptyStateText",value:function(){return this.options.behavior!==ne.b.Edit&&!this.collection.length&&!!this.options.emptyStateText}},{key:"renderTagSelector",value:function(){this.options.behavior===ne.b.Edit&&this.showChildView("tagSelector",new ee.a({model:this.model,parentChannelName:this.options.channelName,inputId:"tag-select",selectEvent:"add:tag",typeaheadConfigs:this.getTypeaheadConfigs(),placeholderText:l.a.getPhrase(this.lang,"placeholder"),callbacks:{onRender:Q.a.selectFirstResult,onBlur:Q.a.clearInputOnBlur},typeaheadOptions:{hint:!1},actionOptions:{clearOnSelect:!0}}))}},{key:"renderTagList",value:function(){this.showEmptyStateText()||this.showChildView("tagList",new te.a({collection:this.collection,channelName:this.options.channelName,behavior:this.options.behavior,orientation:this.options.orientation,removeEvent:this.options.removeEvent}))}},{key:"onRender",value:function(){this.renderTagSelector(),this.renderTagList()}},{key:"name",get:function(){return"TagsComponent"}},{key:"template",get:function(){return oe.a}},{key:"lang",get:function(){return"libraryEditor.tags"}},{key:"defaults",get:function(){return{headerText:l.a.getPhrase(this.lang,"heading"),orientation:ne.c.Flex}}}])&&ae(t.prototype,n),i&&ae(t,i),s}(r.a.Component),de=n(243),fe=n(1293),pe=n.n(fe),ve=n(1294),me=n.n(ve);function ye(e){return(ye="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}function be(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function ge(e,t){for(var n=0;n<t.length;n++){var i=t[n];i.enumerable=i.enumerable||!1,i.configurable=!0,"value"in i&&(i.writable=!0),Object.defineProperty(e,i.key,i)}}function we(e,t){return(we=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e})(e,t)}function ke(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,i=Te(e);if(t){var o=Te(this).constructor;n=Reflect.construct(i,arguments,o)}else n=i.apply(this,arguments);return Se(this,n)}}function Se(e,t){return!t||"object"!==ye(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 Te(e){return(Te=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)})(e)}var Ee=function(e){!function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),t&&we(e,t)}(s,e);var t,n,i,a=ke(s);function s(e){return function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,s),a.call(this,e)}return t=s,(n=[{key:"getParentChannel",value:function(){return o.Radio.channel(this.options.channelName)}},{key:"getSaveChannelName",value:function(){return"".concat(this.name,":").concat(this.cid)}},{key:"regions",value:function(){return{save:{el:".save-region",replaceElement:!0}}}},{key:"events",value:function(){return{"click .undo":"onUndo"}}},{key:"initialize",value:function(){var e;this.model||(this.model=new r.a.Model((be(e={},de.c.ShowSpinner,this.options.showSpinner),be(e,de.c.Disabled,this.options.isDisabled),e)));var t=this.options.channelName;this.listenTo(t,S.d.DisableSave,this.onDisableSave),this.listenTo(t,S.d.EnableSave,this.onEnableSave),this.listenTo(t,S.d.CancelSave,this.onCancelSave);var n=o.Radio.channel(this.getSaveChannelName());this.listenTo(n,S.d.Save,this.onSave),this.options.allowUndo&&(this.options.hasChanges&&this.model.set("showUndo",!0),this.listenTo(this.model,"change:showUndo",this.render))}},{key:"onCancelSave",value:function(){this.model.set(de.c.ShowSpinner,!1)}},{key:"onEnableSave",value:function(){this.model.set(de.c.Disabled,!1),this.options.allowUndo&&this.model.set("showUndo",!0)}},{key:"onDisableSave",value:function(){this.model.get(de.c.ShowSpinner)&&this.model.set(de.c.ShowSpinner,!1,{silent:!0}),this.model.set(de.c.Disabled,!0),this.options.allowUndo&&this.model.set("showUndo",!1)}},{key:"onUndo",value:function(e){e.stopPropagation(),this.getParentChannel().trigger(S.d.Undo)}},{key:"onSave",value:function(){this.model.set(de.c.ShowSpinner,!0),this.getParentChannel().trigger(S.d.Save)}},{key:"viewOptions",value:function(){return{allowUndo:this.options.allowUndo&&this.model.get("showUndo"),styles:me.a}}},{key:"renderSaveButton",value:function(){var e=new de.a({saveEvent:S.d.Save,channelName:this.getSaveChannelName(),model:this.model,buttonText:l.a.getPhrase(this.lang,"save"),extraButtonClass:"btn-primary ".concat(me.a.saveButton),spinnerOptions:{size:v.r.Small,type:v.s.Light,extraClasses:"mx-auto"}});this.showChildView("save",e)}},{key:"onRender",value:function(){this.renderSaveButton()}},{key:"name",get:function(){return"SaveComponent"}},{key:"template",get:function(){return pe.a}},{key:"className",get:function(){return"save-component ".concat(this.options.extraClasses)}},{key:"lang",get:function(){return"libraryEditor.save"}}])&&ge(t.prototype,n),i&&ge(t,i),s}(r.a.Component),Ce=n(189),Oe=n(191),Re=n(282),xe=n(1295),De=n.n(xe);function Ne(e){return(Ne="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 _e(e,t){for(var n=0;n<t.length;n++){var i=t[n];i.enumerable=i.enumerable||!1,i.configurable=!0,"value"in i&&(i.writable=!0),Object.defineProperty(e,i.key,i)}}function Pe(e,t){return(Pe=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e})(e,t)}function Me(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,i=Ve(e);if(t){var o=Ve(this).constructor;n=Reflect.construct(i,arguments,o)}else n=i.apply(this,arguments);return je(this,n)}}function je(e,t){return!t||"object"!==Ne(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 Ve(e){return(Ve=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)})(e)}var Ie=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&&Pe(e,t)}(r,e);var t,n,i,o=Me(r);function r(e){return function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,r),o.call(this,e)}return t=r,(n=[{key:"initialize",value:function(){this.viewModel=s.a.get("image:storage")}},{key:"regions",value:function(){return{thumbnail:{el:".thumbnail-region",replaceElement:!0}}}},{key:"viewOptions",value:function(){return{editable:this.options.editable,dimensions:d.m[g.f.Thumbnails]}}},{key:"onRender",value:function(){this.showChildView("thumbnail",new Ce.a({model:this.model,thumbnailOptions:{size:Oe.a.Medium}}))}},{key:"name",get:function(){return"EditThumbnailComponent"}},{key:"lang",get:function(){return"libraryEditor.editThumbnail"}},{key:"template",get:function(){return De.a}},{key:"behaviors",get:function(){var e=this;return[{behaviorClass:Re.b,channelName:this.options.channelName,buttonSelector:".upload-thumbnail",imageType:g.f.Thumbnails,appLink:{application:d.b.LIBRARY_EDITOR,action:d.a.LibraryEditor.UPLOAD_THUMBNAIL,args:[this.options.model.id]},saveImage:function(t){return e.viewModel.set({dataUrl:t})}}]}},{key:"defaults",get:function(){return{editable:!0}}}])&&_e(t.prototype,n),i&&_e(t,i),r}(r.a.Component),Le=n(1296),Ue=n.n(Le),Be=n(1297),Ae=n.n(Be);function Fe(e){return(Fe="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 Je(e,t){for(var n=0;n<t.length;n++){var i=t[n];i.enumerable=i.enumerable||!1,i.configurable=!0,"value"in i&&(i.writable=!0),Object.defineProperty(e,i.key,i)}}function ze(e,t){return(ze=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e})(e,t)}function He(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,i=Ge(e);if(t){var o=Ge(this).constructor;n=Reflect.construct(i,arguments,o)}else n=i.apply(this,arguments);return qe(this,n)}}function qe(e,t){return!t||"object"!==Fe(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 Ge(e){return(Ge=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)})(e)}var Ye=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&&ze(e,t)}(r,e);var t,n,i,o=He(r);function r(e){return function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,r),o.call(this,e)}return t=r,(n=[{key:"initialize",value:function(){this.listenTo(this.options.channelName,"update:tags",this.renderCustomerTags)}},{key:"regions",value:function(){return{topSave:{el:".top-save-region",replaceElement:!0},bottomSave:{el:".bottom-save-region",replaceElement:!0},thumbnail:{el:".thumbnail-region",replaceElement:!0},basicInfo:{el:".basic-info-region",replaceElement:!0},additionalInfo:{el:".additional-details-region",replaceElement:!0},productionInfo:{el:".production-info-region",replaceElement:!0},fields:{el:".fields-region",replaceElement:!0},clickViewTags:{el:".cv-tags-region",replaceElement:!1},customerTags:{el:".customer-tags-region",replaceElement:!0}}}},{key:"renderSave",value:function(){this.options.editable&&this.showChildView("topSave",new Ee({channelName:this.options.channelName,allowUndo:!0,isDisabled:this.options.isSaveDisabled,hasChanges:this.options.hasChanges,extraClasses:"float-right"})),this.showChildView("bottomSave",new Ee({channelName:this.options.channelName,allowUndo:!0,isDisabled:this.options.isSaveDisabled,hasChanges:this.options.hasChanges,extraClasses:"float-right"}))}},{key:"renderBasicInfo",value:function(){this.showChildView("basicInfo",new C.a({model:this.model,ratings:this.options.ratings,channelName:this.options.channelName,editable:this.options.editable,showingSaveButton:this.options.editable,showPublisherVideoDetails:this.options.showPublisherVideoDetails}))}},{key:"renderThumbnail",value:function(){this.showChildView("thumbnail",new Ie({model:this.model,channelName:this.options.channelName,editable:this.options.editable}))}},{key:"renderAdditionalInfo",value:function(){this.showChildView("additionalInfo",new R.a({model:this.model,channelName:this.options.channelName,libraries:this.options.libraries,hostedLibraries:this.options.hostedLibraries,editable:this.options.editable}))}},{key:"renderProductionInfo",value:function(){this.showChildView("productionInfo",new O.a({model:this.model,channelName:this.options.channelName,editable:this.options.editable}))}},{key:"renderFields",value:function(){this.showChildView("fields",new K({model:this.model,channelName:this.options.channelName}))}},{key:"renderClickViewTags",value:function(){if(!this.options.editable){var e=v.j.filterObjectsByOwnerType(this.model.tags,Z.a.ClickView,this.options.currentUser.get("customerId"));this.showChildView("clickViewTags",new he({parentId:this.model.get("id"),collection:e,orientation:ne.c.Flex,behavior:ne.b.Disabled,channelName:this.options.channelName,headerText:l.a.getPhrase(this.lang,"clickviewTags"),emptyStateText:l.a.getPhrase(this.lang,"clickviewTagsEmpty")}))}}},{key:"renderCustomerTags",value:function(){var e=v.j.filterObjectsByOwnerType(this.model.tags,Z.a.Customer,this.options.currentUser.get("customerId"));this.showChildView("customerTags",new he({parentId:this.model.get("id"),collection:e,channelName:this.options.channelName,behavior:ne.b.Edit,headerText:l.a.getPhrase(this.lang,"customerTags"),removeEvent:"remove:tag"}))}},{key:"renderTags",value:function(){this.renderClickViewTags(),this.renderCustomerTags()}},{key:"viewOptions",value:function(){return{styles:Ae.a,editable:this.options.editable,suggestEditClasses:"info-link text-underline suggest-edit",isExchange:v.x.isExchangeVideo(this.model)}}},{key:"onRender",value:function(){this.renderSave(),this.renderBasicInfo(),this.renderThumbnail(),this.renderAdditionalInfo(),this.renderProductionInfo(),this.renderFields(),this.renderTags()}},{key:"name",get:function(){return"EditVideoDetailsComponent"}},{key:"className",get:function(){return"edit-video-detail py-3"}},{key:"lang",get:function(){return"libraryEditor.editVideoDetails"}},{key:"template",get:function(){return Ue.a}},{key:"appLinks",get:function(){return{".suggest-edit":{application:d.b.LIBRARY_EDITOR,action:d.a.LibraryEditor.SUGGEST_AN_EDIT,args:[this.model.id]}}}}])&&Je(t.prototype,n),i&&Je(t,i),r}(r.a.Component),We=n(1130),Xe=n(290),Ke=n(291),Ze=n(1298),Qe=n.n(Ze);function $e(e){return($e="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 et(e,t){for(var n=0;n<t.length;n++){var i=t[n];i.enumerable=i.enumerable||!1,i.configurable=!0,"value"in i&&(i.writable=!0),Object.defineProperty(e,i.key,i)}}function tt(e,t){return(tt=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e})(e,t)}function nt(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,i=ot(e);if(t){var o=ot(this).constructor;n=Reflect.construct(i,arguments,o)}else n=i.apply(this,arguments);return it(this,n)}}function it(e,t){return!t||"object"!==$e(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 ot(e){return(ot=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)})(e)}n.d(t,"EditVideoView",(function(){return rt}));var rt=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&&tt(e,t)}(R,e);var t,n,C,O=nt(R);function R(e){var t;return function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,R),(t=O.call(this,e)).editable=!1,t}return t=R,(n=[{key:"regions",value:function(){return{tabs:{el:".tab-region",replaceElement:!0,partialLoading:g.h.EditVideoTabs},content:{el:".edit-content-region",replaceElement:!0,partialLoading:g.h.EditVideoDetails}}}},{key:"initialize",value:function(){this.navLock=u.a.getInstance(d.x.NavLock,this),this.initDataListeners(),v.u.initBackButton(),this.initServices()}},{key:"initServices",value:function(){this.videoDataService=u.a.getInstance(d.g.Video,this),this.tagDataService=u.a.getInstance(d.g.Tags,this),this.libraryDataService=u.a.getInstance(d.g.Library,this),this.seriesDataService=u.a.getInstance(d.g.Series,this),this.ratingsDataService=u.a.getInstance(d.g.Ratings,this),this.migrationVideoDataService=u.a.getInstance(d.g.MigrationVideo,this),this.fieldsDataService=u.a.getInstance(d.g.Fields,this),this.alertService=u.a.getInstance(d.x.Alerts,this),this.personDataService=u.a.getInstance(d.g.Person,this),this.companyDataService=u.a.getInstance(d.g.Company,this)}},{key:"initDataListeners",value:function(){this.listenTo(c.a.SHELL,r.a.EventNames.NAV_UNLOCKED_BY_USER,this.onNavigateAway),this.listenTo(d.e.VIDEO,"videos:".concat(this.options.videoId,":sync"),this.render),this.listenTo(d.e.VIDEO,"videos:".concat(this.options.videoId,":error"),this.onError),this.listenTo(d.e.RATINGS,"".concat(d.f.RATINGS,":sync"),this.render),this.listenTo(d.e.VIDEO,"".concat(d.f.UPDATE_VIDEO_THUMBNAIL,":").concat(this.options.videoId,":sync"),this.onThumbnailUpdated),this.listenTo(d.e.LIBRARY,"hosted:libraries:sync",this.render),this.listenTo(this.channelName,"select:rating",i.partial(this.onTypeaheadSelection,i,"rating")),this.listenTo(this.channelName,"select:channel",i.partial(this.onTypeaheadSelection,i,"channel")),this.listenTo(this.channelName,"select:series",this.onSelectSeries),this.listenTo(this.channelName,"add:season",this.onSelectSeason),this.listenTo(this.channelName,"add:distributors",this.onSelectDistributor),this.listenTo(this.channelName,"add:productionCompanies",this.onSelectProductionCompany),this.listenTo(this.channelName,"add:directors",this.onSelectDirector),this.listenTo(this.channelName,"add:producers",this.onSelectProducer),this.listenTo(this.channelName,"add:tag",this.onAddTag),this.listenTo(this.channelName,"remove:distributors",this.onRemoveDistributor),this.listenTo(this.channelName,"remove:productionCompanies",this.onRemoveProductionCompany),this.listenTo(this.channelName,"remove:directors",this.onRemoveDirector),this.listenTo(this.channelName,"remove:producers",this.onRemoveProducer),this.listenTo(this.channelName,"remove:tag",this.onRemoveTag),this.listenTo(this.channelName,S.d.Save,this.onSave),this.listenTo(this.channelName,S.d.Undo,this.onUndo),this.listenTo(this.channelName,S.d.DetectInput,this.onTypeaheadInput),this.listenTo(this.channelName,"image:load",this.onBeforeThumbnailUpload)}},{key:"onError",value:function(e){switch(e.type){case h.a.NotFound:r.a.ErrorHelper.throw(new Ke.a);break;case h.a.Forbidden:r.a.ErrorHelper.throw(new Xe.a)}}},{key:"onTypeaheadSelection",value:function(e,t,n){if(n){var o=this.viewModel.get(t),r=o.filter({name:e.name});i.each(r,(function(e){return o.remove(e)})),o.add(e)}else this.viewModel.set(t,e);this.onModelChange(e,{manualUpdate:!0})}},{key:"onTypeaheadInput",value:function(e,t,n){e.get("name")||(n&&n.isCollection?this.viewModel.get(t).remove(e.get("id"),{silent:!0}):this.viewModel.get(t).clear({silent:!0}),this.onModelChange(null,{manualUpdate:!0}),"series"===t&&(this.validateSeries(),o.Radio.channel(this.channelName).trigger("clear:series")))}},{key:"onSelectSeries",value:function(e){var t=this;e.id?this.seriesDataService.getSeries(e.id,(function(e){t.viewModel.unset("season"),t.viewModel.set("episodeNumber",null),t.onTypeaheadSelection(e.toJSON(),"series")})):e.name&&this.seriesDataService.createSeries(e.name,(function(e){t.viewModel.unset("season"),t.viewModel.set("episodeNumber",null),t.onTypeaheadSelection({id:e.id},"series")}))}},{key:"onSelectSeason",value:function(e){var t=this;if(i.isNull(e))return this.viewModel.get("season").clear({silent:!0}),this.viewModel.set("episodeNumber",null),v.c.deselectAll(this.viewModel.get("series.seasons")),void this.onModelChange(null,{manualUpdate:!0});if(e.id)return this.viewModel.set("season",e),v.c.setSelected(e.id,this.viewModel.get("series.seasons")),void this.onModelChange(e,{manualUpdate:!0});if(e.number){var n=this.viewModel.get("series.id");this.seriesDataService.createSeason(e,n,(function(e){t.viewModel.set("season",e.toJSON()),!t.viewModel.get("series.seasons")&&t.viewModel.get("series").set("seasons",new f.a),t.viewModel.get("series.seasons").add(e.toJSON()),v.c.setSelected(e.id,t.viewModel.get("series.seasons")),t.onModelChange(e.toJSON(),{manualUpdate:!0}),t.render()}))}}},{key:"onSelectDistributor",value:function(e){var t=this;e.id?this.onTypeaheadSelection(e,"distributors",!0):e.name&&this.companyDataService.createCompany(e.name,(function(e){t.onTypeaheadSelection(e.toJSON(),"distributors",!0)}))}},{key:"onSelectProductionCompany",value:function(e){var t=this;e.id?this.onTypeaheadSelection(e,"productionCompanies",!0):e.name&&this.companyDataService.createCompany(e.name,(function(e){t.onTypeaheadSelection(e.toJSON(),"productionCompanies",!0)}))}},{key:"onSelectDirector",value:function(e){var t=this;e.id?this.onTypeaheadSelection(e,"directors",!0):e.name&&this.personDataService.createPerson(e.name,(function(e){t.onTypeaheadSelection(e.toJSON(),"directors",!0)}))}},{key:"onSelectProducer",value:function(e){var t=this;e.id?this.onTypeaheadSelection(e,"producers",!0):e.name&&this.personDataService.createPerson(e.name,(function(e){t.onTypeaheadSelection(e.toJSON(),"producers",!0)}))}},{key:"onRemoveDistributor",value:function(e){this.removeFromCollection(e,"distributors")}},{key:"onRemoveProductionCompany",value:function(e){this.removeFromCollection(e,"productionCompanies")}},{key:"onRemoveDirector",value:function(e){this.removeFromCollection(e,"directors")}},{key:"onRemoveProducer",value:function(e){this.removeFromCollection(e,"producers")}},{key:"removeFromCollection",value:function(e,t){e&&e.id&&t&&(this.viewModel.get(t).remove(e.id),this.onModelChange(null,{manualUpdate:!0}))}},{key:"onAddTag",value:function(e){var t=this;if(e&&e.name){var n=e.name.trim().toLowerCase();if(n&&!v.c.findModelByName(n,this.viewModel.tags)){var i=new y.a({name:n});this.viewModel.tags.add(i),this.tagDataService.createTag(n,this.model.get("id"),(function(e){i.set(e.toJSON()),o.Radio.channel(t.channelName).trigger("update:tags")}))}}}},{key:"onRemoveTag",value:function(e){var t=this;e instanceof y.a&&e.id&&this.tagDataService.dissociateTag(e.id,this.model.get("id"),(function(){t.viewModel.tags.remove(e),o.Radio.channel(t.channelName).trigger("update:tags"),t.logDissocAction(t.model.get("id"),e,w.e.Tag)}))}},{key:"saveFields",value:function(e,t){var n=this,o=0;e.updatedVideo=i.extend({},e.updatedVideo||{});var r=function(){++o===e.dataChanges.fields.length&&t(e)};i.each(e.dataChanges.fields,(function(e){if(e.id&&!e.value)return n.viewModel.fields.remove(n.viewModel.fields.findWhere({id:e.id})),void n.fieldsDataService.deleteField(e.id,r);!e.id||e.id>0?n.fieldsDataService.updateField(e,r):n.fieldsDataService.addField(n.options.videoId,e,(function(t){n.viewModel.fields.findWhere({id:e.id}).set("id",t.id),r()}))}))}},{key:"bulkDissoc",value:function(e,t){this.videoDataService.bulkDissoc(this.model.id,e.pendingDissocs,(function(){t(e)}))}},{key:"saveVideo",value:function(e,t){var n=this,o=i.omit(e.dataChanges,"fields");if(i.isEmpty(o))t(e);else{var r=i.omit(e.dataChanges,"fields");this.videoDataService.updateVideo(this.model.get("id"),this.folder.get("id"),r,(function(o){(e.dataChanges.series&&e.dataChanges.series.id||e.dataChanges.episodeNumber||e.dataChanges.season)&&n.videoDataService.clearVideoCache(),e.updatedVideo=i.extend({},e.updatedVideo||{},o),t(e)}))}}},{key:"afterSave",value:function(e){if(this.viewModel){e.updatedVideo&&this.updateState(e.updatedVideo),this.unlockNav(),this.updateSaveButton(S.d.DisableSave),this.logEditAction(e.dataChanges,w.r.Save);var t=b.a.updatedVideoAlert(this.viewModel.get("name"));this.alertService.success(t||"Video was successfully updated")()}}},{key:"onSave",value:function(){if(this.viewModel.validate(),!1===this.viewModel.isValid())return this.updateSaveButton(S.d.CancelSave),!1;this.validateSeries();var e=E.a.getChanges(this.model,this.viewModel),t=E.a.getRemovedObjectIds(this.model,this.viewModel);if(!e&&!i.keys(t).length)return this.updateSaveButton(S.d.CancelSave),!1;var n=new r.a.Middleware;return e&&e.fields&&n.use(i.bind(this.saveFields,this)),t&&i.keys(t).length&&n.use(i.bind(this.bulkDissoc,this)),this.editable&&n.use(i.bind(this.saveVideo,this)),n.use(i.bind(this.afterSave,this)),n.go({dataChanges:e,pendingDissocs:t},null),!1}},{key:"onUndo",value:function(){var e=this;new v.d({title:l.a.getPhrase(this.lang,"undoTitle"),text:l.a.getPhrase(this.lang,"undoBody",{videoName:this.model.get("name")}),buttons:[{text:l.a.getPhrase(this.lang,"undo"),className:"btn btn-danger",success:!0},{text:l.a.getPhrase(this.lang,"cancel"),className:"btn btn-secondary",close:!0}]}).render().done((function(){e.logEditAction({},w.r.Discard),e.revertState({undo:!0}),e.render()}))}},{key:"updateState",value:function(e){this.stopListening(this.viewModel),E.a.updateModelState(this.model,this.viewModel,e),s.a.clear(this.viewModelName),this.getViewModel(),this.renderContent()}},{key:"onNavigateAway",value:function(){this.revertState()}},{key:"revertState",value:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t=e.undo;this.stopListening(this.viewModel),s.a.clear(this.viewModelName),delete this.viewModel,this.unlockNav(),t&&this.getViewModel()}},{key:"lockNav",value:function(){this.navLock.lock({title:l.a.getPhrase(this.lang,"navLockHeading"),text:l.a.getPhrase(this.lang,"navLockBody")})}},{key:"unlockNav",value:function(){this.navLock.unlock()}},{key:"onBeforeThumbnailUpload",value:function(){this.navLock.isLocked()&&(this.navLock.unlock(),s.a.get("upload:thumbnail:options").set("lockNav",!0))}},{key:"onModelChange",value:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};if(t.stickitChange||t.manualUpdate)if(this.viewModel.validate(),!1!==this.viewModel.isValid()){var n=E.a.getChanges(this.model,this.viewModel)||i.keys(E.a.getRemovedObjectIds(this.model,this.viewModel)).length;if(!n)return this.unlockNav(),void this.updateSaveButton(S.d.DisableSave);this.lockNav(),this.updateSaveButton(S.d.EnableSave)}else this.updateSaveButton(S.d.DisableSave)}},{key:"updateSaveButton",value:function(e){var t=o.Radio.channel(this.channelName),n=S.d.EnableSave,i=S.d.DisableSave,s=S.d.CancelSave;switch(e){case n:return void t.trigger(n);case i:return void t.trigger(i);case s:return void t.trigger(s)}r.a.ErrorHelper.throw(new a.a("Save action type is not valid."))}},{key:"onThumbnailUpdated",value:function(){var e=this;this.videoDataService.clearCacheAndGetVideo(this.options.videoId,(function(t){e.model=t,e.viewModel.set("thumbnail",e.model.thumbnail.toJSON())}))}},{key:"logEditAction",value:function(e,t){var n=Object.assign({id:this.model.get("id")},e);k.a.logUserAction(n,{actionType:w.q.Edit,entity:w.e.Video,location:w.k.EditVideoDetails,workflowPhase:t})}},{key:"logDissocAction",value:function(e,t,n){var i=Object.assign({videoId:e},t.pick("id","name"));k.a.logUserAction(i,{actionType:w.q.Dissociate,entity:n,location:w.k.EditVideoDetails})}},{key:"onValidation",value:function(e){this.viewModel.set("disabled",!e)}},{key:"getViewModel",value:function(){this.model.fields&&this.model.fields.length||this.model.set("fields",Object(E.d)()),this.viewModel=s.a.get(this.viewModelName,this.model.toJSON(),{ctor:m.a}),this.editable&&(this.viewModel.addValidation(E.k),this.viewModel.addValidation(E.e)),this.viewModel.addValidation(E.b),this.listenTo(this.viewModel,"validated",this.onValidation),this.listenTo(this.viewModel,"change",this.onModelChange),this.listenTo(this.viewModel,"change:dateBroadcast",i.partial(this.onModelChange,i,{manualUpdate:!0})),this.viewModel.fields&&(this.viewModel.fields&&this.viewModel.fields.each((function(e){return e.addValidation(E.c)})),this.listenTo(this.viewModel.fields,"change",this.onModelChange))}},{key:"validateSeries",value:function(){this.viewModel.get("series.id")||(this.viewModel.unset("season"),this.viewModel.set("episodeNumber",null))}},{key:"fetchData",value:function(){var e=this;this.model=this.videoDataService.getVideo(this.options.videoId),this.ratings=this.ratingsDataService.getAllRatings(),this.hostedLibraries=this.libraryDataService.getHostedLibraries(),this.migrationVideoDataService.getCustomerVideoByMasterId(this.options.videoId,(function(t){var n=!!e.publisherVideo;e.publisherVideo=t,n&&e.isRendered()&&e.renderContent()})),this.model&&(this.editable=v.j.canEditVideo(this.model),this.folder=this.model.categories.first(),this.ratings&&this.hostedLibraries&&(this.viewModel instanceof m.a||this.getViewModel()))}},{key:"onBeforeRender",value:function(){return this.fetchData(),!!this.model&&!!this.ratings&&!!this.viewModel}},{key:"renderContent",value:function(){var e=E.a.getChanges(this.model,this.viewModel)||i.keys(E.a.getRemovedObjectIds(this.model,this.viewModel)).length;this.showChildView("content",new Ye({model:this.viewModel,ratings:this.ratings,libraries:this.libraries,hostedLibraries:this.hostedLibraries,channelName:this.channelName,isSaveDisabled:!e,hasChanges:!!e,editable:this.editable,currentUser:this.currentUser,showPublisherVideoDetails:!!this.publisherVideo}))}},{key:"renderTabs",value:function(){this.showChildView("tabs",new We.a({tabs:v.u.getEditVideoTabs(this.options.videoId,{hideChaptersTab:!this.editable}),activeTab:".edit-video-applink",goBackTab:v.u.getBackButton(this.options.videoId)}))}},{key:"onRender",value:function(){this.renderTabs(),this.renderContent()}},{key:"name",get:function(){return"EditVideoView"}},{key:"title",get:function(){return this.model&&this.model.get("name")}},{key:"lang",get:function(){return"libraryEditor.editVideo"}},{key:"className",get:function(){return"bg-white p-3"}},{key:"channelName",get:function(){return"".concat(this.name,":").concat(this.cid)}},{key:"viewModelName",get:function(){return"".concat(this.name,":").concat(this.options.videoId)}},{key:"template",get:function(){return Qe.a}},{key:"requiredResources",get:function(){return{libraries:T.b.libraries,currentUser:p.b.currentUser}}}])&&et(t.prototype,n),C&&et(t,C),R}(r.a.View)}}]);
@@ -2,7 +2,7 @@
2
2
 
3
3
  /***/ "../../../node_modules/cropperjs/dist/cropper.js":
4
4
  /*!*******************************************************************************!*\
5
- !*** C:/ClickView Projects/@clickview/node_modules/cropperjs/dist/cropper.js ***!
5
+ !*** C:/ClickView/front-end/clickview/node_modules/cropperjs/dist/cropper.js ***!
6
6
  \*******************************************************************************/
7
7
  /*! no static exports found */
8
8
  /***/ (function(module, exports, __webpack_require__) {