@clickview/library-editor 1.1.27-rc.0 → 1.1.27-rc.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 (1098) hide show
  1. package/dist/css/library-editor-app.css +7 -0
  2. package/dist/en.json +1 -1
  3. package/dist/scripts/0-50fae6c404.chunk.js +1 -0
  4. package/dist/scripts/1-35adeca043.chunk.js +1 -0
  5. package/dist/scripts/10-e3de119a32.chunk.js +1 -0
  6. package/dist/scripts/{11-cbe69fa3f0.chunk.js → 11-c1c04528d4.chunk.js} +1 -1
  7. package/dist/scripts/12-fdb4fd076b.chunk.js +1 -0
  8. package/dist/scripts/13-b71e7a002a.chunk.js +1 -0
  9. package/dist/scripts/14-be81c6b0a6.chunk.js +1 -0
  10. package/dist/scripts/15-bbe23da473.chunk.js +1 -0
  11. package/dist/scripts/{16-42f9f38a5b.chunk.js → 16-45b853d9bc.chunk.js} +1 -1
  12. package/dist/scripts/{17-b1675f5397.chunk.js → 17-17e648d740.chunk.js} +1 -1
  13. package/dist/scripts/{2-cfce7347b3.chunk.js → 2-0c5c3204bb.chunk.js} +1 -1
  14. package/dist/scripts/20-fc03a8058d.chunk.js +1 -0
  15. package/dist/scripts/21-bf788bdc47.chunk.js +1 -0
  16. package/dist/scripts/22-c309ac8872.chunk.js +1 -0
  17. package/dist/scripts/23-4e4a6eef7f.chunk.js +1 -0
  18. package/dist/scripts/24-3dbcc6079d.chunk.js +1 -0
  19. package/dist/scripts/25-8f6c37473c.chunk.js +1 -0
  20. package/dist/scripts/26-e7665934ea.chunk.js +1 -0
  21. package/dist/scripts/27-ece4a707c2.chunk.js +1 -0
  22. package/dist/scripts/28-f7b0b6ca0a.chunk.js +1 -0
  23. package/dist/scripts/29-7b0d55eef4.chunk.js +1 -0
  24. package/dist/scripts/{3-34f154b85d.chunk.js → 3-c977fc76a1.chunk.js} +1 -1
  25. package/dist/scripts/30-07198d4b80.chunk.js +1 -0
  26. package/dist/scripts/31-558e4b9448.chunk.js +1 -0
  27. package/dist/scripts/{32-db0c763740.chunk.js → 32-66bedea19f.chunk.js} +1 -1
  28. package/dist/scripts/{33-b9fef236ae.chunk.js → 33-1c0a05f5ad.chunk.js} +1 -1
  29. package/dist/scripts/34-0261454401.chunk.js +1 -0
  30. package/dist/scripts/35-80afabad2f.chunk.js +1 -0
  31. package/dist/scripts/36-0945816998.chunk.js +1 -0
  32. package/dist/scripts/{37-e6d9fbefd1.chunk.js → 37-f9eaead96b.chunk.js} +1 -1
  33. package/dist/scripts/{38-0c6051fb45.chunk.js → 38-ee287180e0.chunk.js} +1 -1
  34. package/dist/scripts/{39-5fffd05811.chunk.js → 39-875e8edab4.chunk.js} +1 -1
  35. package/dist/scripts/{4-2a04f5b2b3.chunk.js → 4-30febbcd74.chunk.js} +1 -1
  36. package/dist/scripts/{40-5d3d9611b5.chunk.js → 40-9e6fe972eb.chunk.js} +1 -1
  37. package/dist/scripts/{41-f3b2533950.chunk.js → 41-8e127683ef.chunk.js} +1 -1
  38. package/dist/scripts/{42-075fbbf19d.chunk.js → 42-26e2b69676.chunk.js} +1 -1
  39. package/dist/scripts/{43-205ccfa9a4.chunk.js → 43-cd5d61f503.chunk.js} +1 -1
  40. package/dist/scripts/{44-4be8465afa.chunk.js → 44-50adae17aa.chunk.js} +1 -1
  41. package/dist/scripts/{45-541254a177.chunk.js → 45-d6cc086a40.chunk.js} +1 -1
  42. package/dist/scripts/{46-fe575b6c9f.chunk.js → 46-c3131aa1a1.chunk.js} +1 -1
  43. package/dist/scripts/{47-18d84f7b83.chunk.js → 47-53cc918c2d.chunk.js} +1 -1
  44. package/dist/scripts/{48-40adeb652e.chunk.js → 48-e37164e96c.chunk.js} +1 -1
  45. package/dist/scripts/49-f18c7b7f2d.chunk.js +1 -0
  46. package/dist/scripts/5-ae2739be4b.chunk.js +1 -0
  47. package/dist/scripts/{50-8cc4935ea5.chunk.js → 50-77cc32280d.chunk.js} +1 -1
  48. package/dist/scripts/{51-cd80402e6e.chunk.js → 51-718582f5a0.chunk.js} +1 -1
  49. package/dist/scripts/{52-7e11748c73.chunk.js → 52-8bab7f4183.chunk.js} +1 -1
  50. package/dist/scripts/{53-e807e56657.chunk.js → 53-051f6fefda.chunk.js} +1 -1
  51. package/dist/scripts/{54-265c2852ce.chunk.js → 54-54ab674027.chunk.js} +1 -1
  52. package/dist/scripts/{55-68bef0b859.chunk.js → 55-5620cb1984.chunk.js} +1 -1
  53. package/dist/scripts/{56-f52cc13b44.chunk.js → 56-d515b7881b.chunk.js} +1 -1
  54. package/dist/scripts/{57-77549e4856.chunk.js → 57-34cc7eeda7.chunk.js} +1 -1
  55. package/dist/scripts/{58-3f44c0ba1a.chunk.js → 58-095cc86c38.chunk.js} +1 -1
  56. package/dist/scripts/{59-bf231da287.chunk.js → 59-88d4d70542.chunk.js} +1 -1
  57. package/dist/scripts/6-64fc0b404b.chunk.js +1 -0
  58. package/dist/scripts/{60-c6a9325b5e.chunk.js → 60-8e040e4d8f.chunk.js} +1 -1
  59. package/dist/scripts/{61-5fe4279f6d.chunk.js → 61-9acfcad39c.chunk.js} +1 -1
  60. package/dist/scripts/{62-ff1c8453b6.chunk.js → 62-ab4cf2e18e.chunk.js} +1 -1
  61. package/dist/scripts/{63-47a43e2399.chunk.js → 63-be24981a1c.chunk.js} +1 -1
  62. package/dist/scripts/{64-398f9ac217.chunk.js → 64-2acf78f1d5.chunk.js} +1 -1
  63. package/dist/scripts/{65-d75308a09e.chunk.js → 65-37aed4a31d.chunk.js} +1 -1
  64. package/dist/scripts/{66-ec32c5588a.chunk.js → 66-bb4cde602a.chunk.js} +1 -1
  65. package/dist/scripts/{67-6805e53bfb.chunk.js → 67-04c0737fd2.chunk.js} +1 -1
  66. package/dist/scripts/{68-046ada4945.chunk.js → 68-436667d096.chunk.js} +1 -1
  67. package/dist/scripts/{69-235a8e6754.chunk.js → 69-4dd38a6827.chunk.js} +1 -1
  68. package/dist/scripts/{7-55f3aed0f4.chunk.js → 7-5194b748c8.chunk.js} +1 -1
  69. package/dist/scripts/{70-150be3f4a2.chunk.js → 70-d52ccba56d.chunk.js} +1 -1
  70. package/dist/scripts/{71-c63b7a2a30.chunk.js → 71-b7f95045b5.chunk.js} +1 -1
  71. package/dist/scripts/{72-53bdb8c37f.chunk.js → 72-b1eb475df0.chunk.js} +1 -1
  72. package/dist/scripts/{8-94205353a6.chunk.js → 8-d2d772bc05.chunk.js} +1 -1
  73. package/dist/scripts/9-160db7db67.chunk.js +1 -0
  74. package/dist/scripts/bundle-0eadf8a695.min.js +8 -0
  75. package/dist/scripts/bundles.json +2 -2
  76. package/dist/scripts/polyfills-292fbd05c8.min.js +1 -0
  77. package/package.json +3 -3
  78. package/dist/libs/analytics/src/Analytics.d.ts +0 -10
  79. package/dist/libs/analytics/src/AnalyticsHelper.d.ts +0 -30
  80. package/dist/libs/analytics/src/AnalyticsService.d.ts +0 -52
  81. package/dist/libs/analytics/src/clients/BaseAnalyticsClient.d.ts +0 -24
  82. package/dist/libs/analytics/src/clients/CollectionApiClient.d.ts +0 -48
  83. package/dist/libs/analytics/src/clients/DebuggerClient.d.ts +0 -7
  84. package/dist/libs/analytics/src/clients/GoogleAnalyticsClient.d.ts +0 -22
  85. package/dist/libs/analytics/src/constants/ApplicationOptionsKey.d.ts +0 -1
  86. package/dist/libs/analytics/src/constants/CountryRegionMapping.d.ts +0 -7
  87. package/dist/libs/analytics/src/constants/EventFirehose.d.ts +0 -4
  88. package/dist/libs/analytics/src/constants/GlobalChannels.d.ts +0 -3
  89. package/dist/libs/analytics/src/constants/Regions.d.ts +0 -6
  90. package/dist/libs/analytics/src/constants/Services.d.ts +0 -4
  91. package/dist/libs/analytics/src/enrichers/BaseAnalyticsEnricher.d.ts +0 -19
  92. package/dist/libs/analytics/src/enrichers/CoreContextEnricher.d.ts +0 -22
  93. package/dist/libs/analytics/src/enrichers/UserDataEnricher.d.ts +0 -10
  94. package/dist/libs/analytics/src/enums/CountryCode.d.ts +0 -5
  95. package/dist/libs/analytics/src/enums/RegionName.d.ts +0 -5
  96. package/dist/libs/analytics/src/interfaces/AnalyticsTypes.d.ts +0 -318
  97. package/dist/libs/analytics/src/interfaces/Config.d.ts +0 -3
  98. package/dist/libs/analytics/src/interfaces/Folder.d.ts +0 -3
  99. package/dist/libs/analytics/src/interfaces/HashObject.d.ts +0 -3
  100. package/dist/libs/analytics/src/interfaces/Owner.d.ts +0 -3
  101. package/dist/libs/analytics/src/interfaces/Playlist.d.ts +0 -3
  102. package/dist/libs/analytics/src/interfaces/Rating.d.ts +0 -4
  103. package/dist/libs/analytics/src/interfaces/Region.d.ts +0 -5
  104. package/dist/libs/analytics/src/interfaces/RegionalUrl.d.ts +0 -5
  105. package/dist/libs/analytics/src/interfaces/Resource.d.ts +0 -5
  106. package/dist/libs/analytics/src/interfaces/Series.d.ts +0 -3
  107. package/dist/libs/analytics/src/interfaces/Subtitle.d.ts +0 -4
  108. package/dist/libs/analytics/src/interfaces/User.d.ts +0 -17
  109. package/dist/libs/analytics/src/interfaces/VersionData.d.ts +0 -4
  110. package/dist/libs/analytics/src/interfaces/Video.d.ts +0 -16
  111. package/dist/libs/analytics/src/interfaces/index.d.ts +0 -15
  112. package/dist/libs/analytics/src/interfaces/primitives/BaseObject.d.ts +0 -7
  113. package/dist/libs/analytics/src/models/AnalyticsEvent.d.ts +0 -49
  114. package/dist/libs/analytics/src/models/CollectionEvent.d.ts +0 -61
  115. package/dist/libs/analytics/src/services/ContextService.d.ts +0 -19
  116. package/dist/libs/analytics/src/transport/EventTransport.d.ts +0 -39
  117. package/dist/libs/analytics/src/utils/CollectionApiClientHelper.d.ts +0 -6
  118. package/dist/libs/analytics/src/utils/DataFormatHelper.d.ts +0 -14
  119. package/dist/libs/analytics/src/utils/EventWhitelistHelper.d.ts +0 -19
  120. package/dist/libs/analytics/src/utils/ObjectFormatHelper.d.ts +0 -5
  121. package/dist/libs/analytics/src/utils/TypeHelper.d.ts +0 -4
  122. package/dist/libs/analytics/src/utils/UploadDataFormatHelper.d.ts +0 -10
  123. package/dist/libs/analytics/src/utils/UrlHelper.d.ts +0 -3
  124. package/dist/libs/analytics/src/utils/UserAgentHelper.d.ts +0 -10
  125. package/dist/libs/analytics/src/utils/VideoAnalyticsTracker.d.ts +0 -51
  126. package/dist/libs/analytics/src/utils/VideoDataFormatHelper.d.ts +0 -42
  127. package/dist/libs/common/src/backbone/constants/BehaviorChannels.d.ts +0 -5
  128. package/dist/libs/common/src/backbone/constants/Caches.d.ts +0 -3
  129. package/dist/libs/common/src/backbone/constants/CommonChannels.d.ts +0 -5
  130. package/dist/libs/common/src/backbone/constants/CommonServices.d.ts +0 -4
  131. package/dist/libs/common/src/backbone/constants/DataProviders.d.ts +0 -4
  132. package/dist/libs/common/src/backbone/constants/Webplayer.d.ts +0 -65
  133. package/dist/libs/common/src/backbone/core/AppLink.d.ts +0 -37
  134. package/dist/libs/common/src/backbone/core/BaseAppRouter.d.ts +0 -103
  135. package/dist/libs/common/src/backbone/core/BaseApplication.d.ts +0 -76
  136. package/dist/libs/common/src/backbone/core/BaseBehavior.d.ts +0 -6
  137. package/dist/libs/common/src/backbone/core/BaseCollection.d.ts +0 -7
  138. package/dist/libs/common/src/backbone/core/BaseCollectionView.d.ts +0 -16
  139. package/dist/libs/common/src/backbone/core/BaseError.d.ts +0 -18
  140. package/dist/libs/common/src/backbone/core/BaseLayoutView.d.ts +0 -11
  141. package/dist/libs/common/src/backbone/core/BaseModel.d.ts +0 -27
  142. package/dist/libs/common/src/backbone/core/BaseNestedModel.d.ts +0 -21
  143. package/dist/libs/common/src/backbone/core/BaseService.d.ts +0 -10
  144. package/dist/libs/common/src/backbone/core/BaseView.d.ts +0 -131
  145. package/dist/libs/common/src/backbone/core/EventNames.d.ts +0 -16
  146. package/dist/libs/common/src/backbone/core/LayoutService.d.ts +0 -31
  147. package/dist/libs/common/src/backbone/core/ListenToRadio.d.ts +0 -3
  148. package/dist/libs/common/src/backbone/core/LocationUtils.d.ts +0 -23
  149. package/dist/libs/common/src/backbone/core/Middleware.d.ts +0 -10
  150. package/dist/libs/common/src/backbone/core/Shell.d.ts +0 -79
  151. package/dist/libs/common/src/backbone/core/Types.d.ts +0 -12
  152. package/dist/libs/common/src/backbone/core/index.d.ts +0 -18
  153. package/dist/libs/common/src/backbone/enums/DataServiceErrorType.d.ts +0 -8
  154. package/dist/libs/common/src/backbone/enums/HttpVerbs.d.ts +0 -6
  155. package/dist/libs/common/src/backbone/errors/DevError.d.ts +0 -4
  156. package/dist/libs/common/src/backbone/errors/NotImplementedError.d.ts +0 -5
  157. package/dist/libs/common/src/backbone/index.d.ts +0 -2
  158. package/dist/libs/common/src/backbone/interfaces/BaseCollectionIdentifier.d.ts +0 -19
  159. package/dist/libs/common/src/backbone/interfaces/ChainableDataService.d.ts +0 -9
  160. package/dist/libs/common/src/backbone/interfaces/DataCache.d.ts +0 -8
  161. package/dist/libs/common/src/backbone/interfaces/DataProvider.d.ts +0 -15
  162. package/dist/libs/common/src/backbone/interfaces/DataServiceError.d.ts +0 -7
  163. package/dist/libs/common/src/backbone/interfaces/DataServiceRequests.d.ts +0 -218
  164. package/dist/libs/common/src/backbone/interfaces/Pagination.d.ts +0 -33
  165. package/dist/libs/common/src/backbone/interfaces/StickitBinding.d.ts +0 -38
  166. package/dist/libs/common/src/backbone/interfaces/Xhr.d.ts +0 -9
  167. package/dist/libs/common/src/backbone/interfaces/index.d.ts +0 -9
  168. package/dist/libs/common/src/backbone/runtime/InputValidation.d.ts +0 -2
  169. package/dist/libs/common/src/backbone/services/BaseAlertService.d.ts +0 -69
  170. package/dist/libs/common/src/backbone/services/BaseDataService.d.ts +0 -82
  171. package/dist/libs/common/src/backbone/services/EnvironmentVariables.d.ts +0 -13
  172. package/dist/libs/common/src/backbone/services/InstanceManager.d.ts +0 -33
  173. package/dist/libs/common/src/backbone/services/LanguageService.d.ts +0 -22
  174. package/dist/libs/common/src/backbone/services/ViewModelService.d.ts +0 -68
  175. package/dist/libs/common/src/backbone/services/caches/FifoMemoryCache.d.ts +0 -20
  176. package/dist/libs/common/src/backbone/services/data-providers/AjaxDataProvider.d.ts +0 -31
  177. package/dist/libs/common/src/backbone/services/data-providers/SignalRDataProvider.d.ts +0 -46
  178. package/dist/libs/common/src/backbone/utils/ConcurrencyHelper.d.ts +0 -13
  179. package/dist/libs/common/src/backbone/utils/DataServiceErrorHelper.d.ts +0 -2
  180. package/dist/libs/common/src/backbone/utils/FunctionHelper.d.ts +0 -8
  181. package/dist/libs/common/src/backbone/utils/LocalStorageHelper.d.ts +0 -58
  182. package/dist/libs/common/src/backbone/utils/UrlHelper.d.ts +0 -14
  183. package/dist/libs/common/src/backbone/utils/UserAgentHelper.d.ts +0 -7
  184. package/dist/libs/common/src/react/flight/enums/RequestStatus.d.ts +0 -6
  185. package/dist/libs/common/src/react/flight/enums/index.d.ts +0 -1
  186. package/dist/libs/common/src/react/flight/interfaces/FlightState.d.ts +0 -22
  187. package/dist/libs/common/src/react/flight/interfaces/NormalizeOptions.d.ts +0 -4
  188. package/dist/libs/common/src/react/flight/interfaces/Request.d.ts +0 -29
  189. package/dist/libs/common/src/react/flight/interfaces/UpdateStateOptions.d.ts +0 -15
  190. package/dist/libs/common/src/react/interfaces/ApplicationData.d.ts +0 -3
  191. package/dist/libs/common/src/react/interfaces/ApplicationState.d.ts +0 -8
  192. package/dist/libs/common/src/react/interfaces/BaseReducerActions.d.ts +0 -4
  193. package/dist/libs/common/src/react/interfaces/HashObject.d.ts +0 -3
  194. package/dist/libs/common/src/react/interfaces/index.d.ts +0 -4
  195. package/dist/libs/common/src/react/utils/FetchHelper.d.ts +0 -50
  196. package/dist/libs/common/src/react/utils/ObjectHelper.d.ts +0 -10
  197. package/dist/libs/common/src/react/utils/TextHelper.d.ts +0 -9
  198. package/dist/libs/shared/src/apps/notifications/collections/NotificationCollection.d.ts +0 -9
  199. package/dist/libs/shared/src/apps/notifications/components/notification-items/notification-item/NotificationItemComponent.d.ts +0 -23
  200. package/dist/libs/shared/src/apps/notifications/components/notification-list/NotificationListComponent.d.ts +0 -26
  201. package/dist/libs/shared/src/apps/notifications/components/notification-status/NotificationStatusComponent.d.ts +0 -15
  202. package/dist/libs/shared/src/apps/notifications/enums/AppLinkReferrer.d.ts +0 -3
  203. package/dist/libs/shared/src/apps/notifications/enums/NotificationActions.d.ts +0 -3
  204. package/dist/libs/shared/src/apps/notifications/enums/NotificationAlertType.d.ts +0 -7
  205. package/dist/libs/shared/src/apps/notifications/enums/NotificationAppLinkModules.d.ts +0 -7
  206. package/dist/libs/shared/src/apps/notifications/enums/NotificationModules.d.ts +0 -4
  207. package/dist/libs/shared/src/apps/notifications/enums/NotificationStatus.d.ts +0 -5
  208. package/dist/libs/shared/src/apps/notifications/enums/NotificationType.d.ts +0 -16
  209. package/dist/libs/shared/src/apps/notifications/interfaces/NotificationCollectionRequest.d.ts +0 -5
  210. package/dist/libs/shared/src/apps/notifications/interfaces/index.d.ts +0 -1
  211. package/dist/libs/shared/src/apps/notifications/models/Notification.d.ts +0 -6
  212. package/dist/libs/shared/src/apps/notifications/services/NotificationDataService.d.ts +0 -14
  213. package/dist/libs/shared/src/apps/notifications/services/NotificationService.d.ts +0 -33
  214. package/dist/libs/shared/src/apps/notifications/services/NotificationSocketService.d.ts +0 -8
  215. package/dist/libs/shared/src/apps/notifications/services/data-providers/NotificationsSocketDataProvider.d.ts +0 -4
  216. package/dist/libs/shared/src/apps/notifications/utils/NotificationAppLinkHelper.d.ts +0 -10
  217. package/dist/libs/shared/src/apps/notifications/utils/NotificationsHelper.d.ts +0 -18
  218. package/dist/libs/shared/src/apps/notifications/views/header/NotificationHeaderView.d.ts +0 -16
  219. package/dist/libs/shared/src/apps/notifications/views/notifications/NotificationsView.d.ts +0 -27
  220. package/dist/libs/shared/src/apps/notifications/views/popover/NotificationsPopoverView.d.ts +0 -34
  221. package/dist/libs/shared/src/apps/search/components/confirm-selection/ConfirmSelectionComponent.d.ts +0 -12
  222. package/dist/libs/shared/src/apps/search/components/instant-search/classification/ClassificationSearchResultComponent.d.ts +0 -17
  223. package/dist/libs/shared/src/apps/search/components/instant-search/index.d.ts +0 -5
  224. package/dist/libs/shared/src/apps/search/components/instant-search/recent-search/RecentSearchResultComponent.d.ts +0 -15
  225. package/dist/libs/shared/src/apps/search/components/instant-search/series/SeriesSearchResultComponent.d.ts +0 -14
  226. package/dist/libs/shared/src/apps/search/components/instant-search/tag/TagSearchResultComponent.d.ts +0 -9
  227. package/dist/libs/shared/src/apps/search/components/instant-search/video-result/VideoSearchResultComponent.d.ts +0 -18
  228. package/dist/libs/shared/src/apps/search/components/search-context/SearchContextComponent.d.ts +0 -18
  229. package/dist/libs/shared/src/apps/search/components/search-tips/SearchTipsComponent.d.ts +0 -11
  230. package/dist/libs/shared/src/apps/search/constants/TypeaheadConfiguration.d.ts +0 -12
  231. package/dist/libs/shared/src/apps/search/enums/FilterTypes.d.ts +0 -14
  232. package/dist/libs/shared/src/apps/search/enums/SearchQueryType.d.ts +0 -18
  233. package/dist/libs/shared/src/apps/search/enums/SearchTypes.d.ts +0 -8
  234. package/dist/libs/shared/src/apps/search/interfaces/SearchTypes.d.ts +0 -26
  235. package/dist/libs/shared/src/apps/search/interfaces/index.d.ts +0 -1
  236. package/dist/libs/shared/src/apps/search/services/ContextualSearchService.d.ts +0 -34
  237. package/dist/libs/shared/src/apps/search/utils/InstantSearchHelper.d.ts +0 -22
  238. package/dist/libs/shared/src/apps/search/utils/RecentSearchHelper.d.ts +0 -12
  239. package/dist/libs/shared/src/apps/search/utils/SearchHelper.d.ts +0 -5
  240. package/dist/libs/shared/src/apps/search/utils/TypeaheadHelper.d.ts +0 -75
  241. package/dist/libs/shared/src/apps/search/views/search-bar/SearchBarView.d.ts +0 -110
  242. package/dist/libs/shared/src/apps/search/views/search-bar/templates/index.d.ts +0 -9
  243. package/dist/libs/shared/src/apps/upload/collections/PendingItemsCollection.d.ts +0 -8
  244. package/dist/libs/shared/src/apps/upload/constants/UploadConstants.d.ts +0 -39
  245. package/dist/libs/shared/src/apps/upload/enums/FileLifestyle.d.ts +0 -4
  246. package/dist/libs/shared/src/apps/upload/enums/PendingItemStatus.d.ts +0 -5
  247. package/dist/libs/shared/src/apps/upload/errors/file-type/FileTypeError.d.ts +0 -15
  248. package/dist/libs/shared/src/apps/upload/errors/internet-connectivity/InternetConnectivityError.d.ts +0 -7
  249. package/dist/libs/shared/src/apps/upload/services/BasePendingItemsService.d.ts +0 -26
  250. package/dist/libs/shared/src/apps/upload/services/DropzoneWrapper.d.ts +0 -30
  251. package/dist/libs/shared/src/apps/upload/services/UploadService.d.ts +0 -66
  252. package/dist/libs/shared/src/apps/upload/utils/FileExtensionsHelper.d.ts +0 -9
  253. package/dist/libs/shared/src/apps/upload/utils/PendingItemsHelper.d.ts +0 -9
  254. package/dist/libs/shared/src/constants/AppVariables.d.ts +0 -5
  255. package/dist/libs/shared/src/constants/BootstrapKeys.d.ts +0 -8
  256. package/dist/libs/shared/src/constants/CacheDurations.d.ts +0 -4
  257. package/dist/libs/shared/src/constants/DataPrefixes.d.ts +0 -12
  258. package/dist/libs/shared/src/constants/RadioChannels.d.ts +0 -20
  259. package/dist/libs/shared/src/constants/SharedServices.d.ts +0 -25
  260. package/dist/libs/shared/src/enums/ClassificationType.d.ts +0 -4
  261. package/dist/libs/shared/src/enums/CountryCode.d.ts +0 -5
  262. package/dist/libs/shared/src/enums/CurationStatus.d.ts +0 -12
  263. package/dist/libs/shared/src/enums/CurriculumType.d.ts +0 -6
  264. package/dist/libs/shared/src/enums/CustomerType.d.ts +0 -11
  265. package/dist/libs/shared/src/enums/GlanceFormat.d.ts +0 -3
  266. package/dist/libs/shared/src/enums/Images.d.ts +0 -26
  267. package/dist/libs/shared/src/enums/LibraryType.d.ts +0 -5
  268. package/dist/libs/shared/src/enums/MasterObjectTypes.d.ts +0 -8
  269. package/dist/libs/shared/src/enums/MediaQueries.d.ts +0 -20
  270. package/dist/libs/shared/src/enums/ObjectOwnerType.d.ts +0 -4
  271. package/dist/libs/shared/src/enums/ObjectStatus.d.ts +0 -5
  272. package/dist/libs/shared/src/enums/PartialLoading.d.ts +0 -4
  273. package/dist/libs/shared/src/enums/PlaylistPrivacy.d.ts +0 -5
  274. package/dist/libs/shared/src/enums/PresentationType.d.ts +0 -4
  275. package/dist/libs/shared/src/enums/ResourceFileType.d.ts +0 -9
  276. package/dist/libs/shared/src/enums/SettingKind.d.ts +0 -4
  277. package/dist/libs/shared/src/enums/SettingName.d.ts +0 -17
  278. package/dist/libs/shared/src/enums/SubtitleExtractionOptions.d.ts +0 -4
  279. package/dist/libs/shared/src/enums/ThemeType.d.ts +0 -3
  280. package/dist/libs/shared/src/enums/UploadInteractionType.d.ts +0 -4
  281. package/dist/libs/shared/src/enums/UserGroup.d.ts +0 -5
  282. package/dist/libs/shared/src/enums/UserRole.d.ts +0 -15
  283. package/dist/libs/shared/src/enums/VideoOrigin.d.ts +0 -14
  284. package/dist/libs/shared/src/enums/WidgetContents.d.ts +0 -10
  285. package/dist/libs/shared/src/errors/primitives/AlertError.d.ts +0 -4
  286. package/dist/libs/shared/src/errors/primitives/DialogError.d.ts +0 -9
  287. package/dist/libs/shared/src/errors/primitives/ErrorPageError.d.ts +0 -7
  288. package/dist/libs/shared/src/images/svg/ImportedSvgs.d.ts +0 -87
  289. package/dist/libs/shared/src/images/svg/actions/index.d.ts +0 -24
  290. package/dist/libs/shared/src/images/svg/arrows/index.d.ts +0 -9
  291. package/dist/libs/shared/src/images/svg/index.d.ts +0 -2
  292. package/dist/libs/shared/src/images/svg/objects/index.d.ts +0 -36
  293. package/dist/libs/shared/src/images/svg/player/index.d.ts +0 -14
  294. package/dist/libs/shared/src/images/svg/settings.d.ts +0 -1
  295. package/dist/libs/shared/src/images/svg/status/index.d.ts +0 -13
  296. package/dist/libs/shared/src/interfaces/AppLinkWithLabel.d.ts +0 -5
  297. package/dist/libs/shared/src/interfaces/DialogOptions.d.ts +0 -13
  298. package/dist/libs/shared/src/interfaces/ImageUrls.d.ts +0 -16
  299. package/dist/libs/shared/src/interfaces/QueryParams.d.ts +0 -3
  300. package/dist/libs/shared/src/interfaces/RegionalUrl.d.ts +0 -5
  301. package/dist/libs/shared/src/interfaces/WidgetContext.d.ts +0 -9
  302. package/dist/libs/shared/src/interfaces/app-variables/BaseNotificationsAppVariables.d.ts +0 -16
  303. package/dist/libs/shared/src/interfaces/app-variables/BaseSearchAppVariables.d.ts +0 -17
  304. package/dist/libs/shared/src/interfaces/app-variables/index.d.ts +0 -2
  305. package/dist/libs/shared/src/interfaces/collections/AudienceCollection.d.ts +0 -4
  306. package/dist/libs/shared/src/interfaces/collections/CategoryCollection.d.ts +0 -4
  307. package/dist/libs/shared/src/interfaces/collections/ClassificationCollection.d.ts +0 -4
  308. package/dist/libs/shared/src/interfaces/collections/ClassroomCollection.d.ts +0 -4
  309. package/dist/libs/shared/src/interfaces/collections/ClassroomGroupCollection.d.ts +0 -4
  310. package/dist/libs/shared/src/interfaces/collections/ClipCollection.d.ts +0 -4
  311. package/dist/libs/shared/src/interfaces/collections/CompanyCollection.d.ts +0 -3
  312. package/dist/libs/shared/src/interfaces/collections/CustomerCollection.d.ts +0 -4
  313. package/dist/libs/shared/src/interfaces/collections/FolderCollection.d.ts +0 -4
  314. package/dist/libs/shared/src/interfaces/collections/InteractiveCollection.d.ts +0 -4
  315. package/dist/libs/shared/src/interfaces/collections/LibraryCollection.d.ts +0 -4
  316. package/dist/libs/shared/src/interfaces/collections/LinkCollection.d.ts +0 -4
  317. package/dist/libs/shared/src/interfaces/collections/PersonCollection.d.ts +0 -3
  318. package/dist/libs/shared/src/interfaces/collections/PlaylistCollection.d.ts +0 -4
  319. package/dist/libs/shared/src/interfaces/collections/PresentationAudienceCollection.d.ts +0 -4
  320. package/dist/libs/shared/src/interfaces/collections/ResourceCollection.d.ts +0 -3
  321. package/dist/libs/shared/src/interfaces/collections/SeriesCollection.d.ts +0 -4
  322. package/dist/libs/shared/src/interfaces/collections/SubtitleCollection.d.ts +0 -3
  323. package/dist/libs/shared/src/interfaces/collections/TagCollection.d.ts +0 -4
  324. package/dist/libs/shared/src/interfaces/collections/UserCollection.d.ts +0 -3
  325. package/dist/libs/shared/src/interfaces/collections/VideoCollection.d.ts +0 -4
  326. package/dist/libs/shared/src/interfaces/collections/VideoHistoryCollection.d.ts +0 -4
  327. package/dist/libs/shared/src/interfaces/collections/WidgetCollection.d.ts +0 -3
  328. package/dist/libs/shared/src/interfaces/collections/index.d.ts +0 -25
  329. package/dist/libs/shared/src/interfaces/collections/primitives/BasePaginatedCollection.d.ts +0 -7
  330. package/dist/libs/shared/src/interfaces/collections/primitives/index.d.ts +0 -1
  331. package/dist/libs/shared/src/interfaces/index.d.ts +0 -13
  332. package/dist/libs/shared/src/interfaces/models/Audience.d.ts +0 -3
  333. package/dist/libs/shared/src/interfaces/models/Avatar.d.ts +0 -3
  334. package/dist/libs/shared/src/interfaces/models/Banner.d.ts +0 -3
  335. package/dist/libs/shared/src/interfaces/models/Category.d.ts +0 -3
  336. package/dist/libs/shared/src/interfaces/models/Channel.d.ts +0 -3
  337. package/dist/libs/shared/src/interfaces/models/Classification.d.ts +0 -21
  338. package/dist/libs/shared/src/interfaces/models/Classroom.d.ts +0 -4
  339. package/dist/libs/shared/src/interfaces/models/ClassroomGroup.d.ts +0 -18
  340. package/dist/libs/shared/src/interfaces/models/Clip.d.ts +0 -8
  341. package/dist/libs/shared/src/interfaces/models/Company.d.ts +0 -3
  342. package/dist/libs/shared/src/interfaces/models/Config.d.ts +0 -13
  343. package/dist/libs/shared/src/interfaces/models/Cover.d.ts +0 -3
  344. package/dist/libs/shared/src/interfaces/models/Curriculum.d.ts +0 -18
  345. package/dist/libs/shared/src/interfaces/models/Customer.d.ts +0 -6
  346. package/dist/libs/shared/src/interfaces/models/EntitySetting.d.ts +0 -9
  347. package/dist/libs/shared/src/interfaces/models/FileUpload.d.ts +0 -20
  348. package/dist/libs/shared/src/interfaces/models/Folder.d.ts +0 -7
  349. package/dist/libs/shared/src/interfaces/models/Following.d.ts +0 -4
  350. package/dist/libs/shared/src/interfaces/models/Glance.d.ts +0 -9
  351. package/dist/libs/shared/src/interfaces/models/Group.d.ts +0 -3
  352. package/dist/libs/shared/src/interfaces/models/HeroBanner.d.ts +0 -3
  353. package/dist/libs/shared/src/interfaces/models/Image.d.ts +0 -7
  354. package/dist/libs/shared/src/interfaces/models/InteractiveMetadata.d.ts +0 -14
  355. package/dist/libs/shared/src/interfaces/models/Language.d.ts +0 -4
  356. package/dist/libs/shared/src/interfaces/models/LanguageConfig.d.ts +0 -5
  357. package/dist/libs/shared/src/interfaces/models/Library.d.ts +0 -5
  358. package/dist/libs/shared/src/interfaces/models/Link.d.ts +0 -4
  359. package/dist/libs/shared/src/interfaces/models/Organisation.d.ts +0 -3
  360. package/dist/libs/shared/src/interfaces/models/Pdf.d.ts +0 -4
  361. package/dist/libs/shared/src/interfaces/models/Person.d.ts +0 -3
  362. package/dist/libs/shared/src/interfaces/models/PlayerViewKey.d.ts +0 -3
  363. package/dist/libs/shared/src/interfaces/models/Playlist.d.ts +0 -14
  364. package/dist/libs/shared/src/interfaces/models/Poster.d.ts +0 -3
  365. package/dist/libs/shared/src/interfaces/models/Presentation.d.ts +0 -6
  366. package/dist/libs/shared/src/interfaces/models/PresentationAudience.d.ts +0 -6
  367. package/dist/libs/shared/src/interfaces/models/Rating.d.ts +0 -5
  368. package/dist/libs/shared/src/interfaces/models/Resource.d.ts +0 -17
  369. package/dist/libs/shared/src/interfaces/models/Restriction.d.ts +0 -6
  370. package/dist/libs/shared/src/interfaces/models/Season.d.ts +0 -4
  371. package/dist/libs/shared/src/interfaces/models/Series.d.ts +0 -10
  372. package/dist/libs/shared/src/interfaces/models/Share.d.ts +0 -9
  373. package/dist/libs/shared/src/interfaces/models/Subject.d.ts +0 -13
  374. package/dist/libs/shared/src/interfaces/models/Subtitle.d.ts +0 -7
  375. package/dist/libs/shared/src/interfaces/models/Tag.d.ts +0 -3
  376. package/dist/libs/shared/src/interfaces/models/TallPoster.d.ts +0 -3
  377. package/dist/libs/shared/src/interfaces/models/Theme.d.ts +0 -14
  378. package/dist/libs/shared/src/interfaces/models/Thumbnail.d.ts +0 -6
  379. package/dist/libs/shared/src/interfaces/models/User.d.ts +0 -64
  380. package/dist/libs/shared/src/interfaces/models/UserChannel.d.ts +0 -7
  381. package/dist/libs/shared/src/interfaces/models/Video.d.ts +0 -34
  382. package/dist/libs/shared/src/interfaces/models/VideoHistory.d.ts +0 -12
  383. package/dist/libs/shared/src/interfaces/models/Widget.d.ts +0 -16
  384. package/dist/libs/shared/src/interfaces/models/YearGroup.d.ts +0 -5
  385. package/dist/libs/shared/src/interfaces/models/index.d.ts +0 -57
  386. package/dist/libs/shared/src/interfaces/models/interactive/ActionableItem.d.ts +0 -6
  387. package/dist/libs/shared/src/interfaces/models/interactive/Interaction.d.ts +0 -16
  388. package/dist/libs/shared/src/interfaces/models/interactive/InteractionType.d.ts +0 -7
  389. package/dist/libs/shared/src/interfaces/models/interactive/InteractionTypeId.d.ts +0 -8
  390. package/dist/libs/shared/src/interfaces/models/interactive/Interactive.d.ts +0 -7
  391. package/dist/libs/shared/src/interfaces/models/interactive/Timepoint.d.ts +0 -9
  392. package/dist/libs/shared/src/interfaces/models/interactive/index.d.ts +0 -6
  393. package/dist/libs/shared/src/interfaces/models/primitives/BaseObject.d.ts +0 -8
  394. package/dist/libs/shared/src/interfaces/models/primitives/VirtualObject.d.ts +0 -5
  395. package/dist/libs/shared/src/interfaces/models/primitives/index.d.ts +0 -2
  396. package/dist/libs/shared/src/interfaces/props/ViewProps.d.ts +0 -8
  397. package/dist/libs/shared/src/interfaces/props/index.d.ts +0 -1
  398. package/dist/libs/shared/src/interfaces/requests/CreateOrUpdateClipRequest.d.ts +0 -6
  399. package/dist/libs/shared/src/interfaces/requests/CreateViewKeyRequest.d.ts +0 -3
  400. package/dist/libs/shared/src/interfaces/requests/ReorderRequest.d.ts +0 -12
  401. package/dist/libs/shared/src/interfaces/requests/UpdateObjectChannel.d.ts +0 -3
  402. package/dist/libs/shared/src/interfaces/requests/UpdateObjectRating.d.ts +0 -3
  403. package/dist/libs/shared/src/interfaces/requests/UpdateResourceRequest.d.ts +0 -3
  404. package/dist/libs/shared/src/interfaces/requests/UpdateVideoRequest.d.ts +0 -9
  405. package/dist/libs/shared/src/interfaces/requests/index.d.ts +0 -7
  406. package/dist/libs/shared/src/interfaces/services/BaseConfigDataService.d.ts +0 -5
  407. package/dist/libs/shared/src/interfaces/services/BaseLibraryDataService.d.ts +0 -10
  408. package/dist/libs/shared/src/interfaces/services/BaseSeriesDataService.d.ts +0 -4
  409. package/dist/libs/shared/src/interfaces/services/BaseSettingsDataService.d.ts +0 -7
  410. package/dist/libs/shared/src/interfaces/services/BaseUserDataService.d.ts +0 -6
  411. package/dist/libs/shared/src/interfaces/services/BaseVideoDataService.d.ts +0 -5
  412. package/dist/libs/shared/src/interfaces/services/BaseVideoUploadDataService.d.ts +0 -8
  413. package/dist/libs/shared/src/interfaces/services/index.d.ts +0 -7
  414. package/dist/libs/shared/src/legacy/behaviors/empty-state/EmptyStateBehavior.d.ts +0 -22
  415. package/dist/libs/shared/src/legacy/behaviors/file-drop/FileDropBehavior.d.ts +0 -19
  416. package/dist/libs/shared/src/legacy/behaviors/file-drop/FileDropHelper.d.ts +0 -4
  417. package/dist/libs/shared/src/legacy/behaviors/file-drop/FileDropMaskBehavior.d.ts +0 -19
  418. package/dist/libs/shared/src/legacy/behaviors/file-select/FileSelectBehavior.d.ts +0 -16
  419. package/dist/libs/shared/src/legacy/behaviors/popover/PopoverBehavior.d.ts +0 -40
  420. package/dist/libs/shared/src/legacy/behaviors/tooltip/TooltipBehavior.d.ts +0 -26
  421. package/dist/libs/shared/src/legacy/components/empty-state/EmptyStateComponent.d.ts +0 -24
  422. package/dist/libs/shared/src/legacy/components/file-select/FileSelectComponent.d.ts +0 -29
  423. package/dist/libs/shared/src/legacy/components/file-uploads/FileUploadComponent.d.ts +0 -15
  424. package/dist/libs/shared/src/legacy/components/pagination/PaginationComponent.d.ts +0 -29
  425. package/dist/libs/shared/src/legacy/components/resource-item/ResourceItemComponent.d.ts +0 -22
  426. package/dist/libs/shared/src/legacy/components/subtitle-item/SubtitleItemComponent.d.ts +0 -17
  427. package/dist/libs/shared/src/legacy/components/thumbnail/ThumbnailComponent.d.ts +0 -35
  428. package/dist/libs/shared/src/legacy/constants/empty-state-components/EmptyStateComponents.d.ts +0 -6
  429. package/dist/libs/shared/src/legacy/enums/EmptyState.d.ts +0 -3
  430. package/dist/libs/shared/src/legacy/enums/SortType.d.ts +0 -7
  431. package/dist/libs/shared/src/legacy/errors/too-many-files/TooManyFilesError.d.ts +0 -7
  432. package/dist/libs/shared/src/legacy/errors/too-many-resources/TooManyResourcesError.d.ts +0 -8
  433. package/dist/libs/shared/src/legacy/errors/too-many-subtitles/TooManySubtitlesError.d.ts +0 -8
  434. package/dist/libs/shared/src/legacy/interfaces/CollectionIdentifier.d.ts +0 -7
  435. package/dist/libs/shared/src/legacy/interfaces/index.d.ts +0 -1
  436. package/dist/libs/shared/src/legacy/utils/EmptyStateHelper.d.ts +0 -4
  437. package/dist/libs/shared/src/legacy/utils/LangHelper.d.ts +0 -5
  438. package/dist/libs/shared/src/services/ContextService.d.ts +0 -38
  439. package/dist/libs/shared/src/services/LanguageDataService.d.ts +0 -7
  440. package/dist/libs/shared/src/services/UserDataService.d.ts +0 -24
  441. package/dist/libs/shared/src/utils/DurationHelper.d.ts +0 -7
  442. package/dist/libs/shared/src/utils/EmbedHelper.d.ts +0 -8
  443. package/dist/libs/shared/src/utils/ImageHelper.d.ts +0 -32
  444. package/dist/libs/shared/src/utils/LibraryDataServiceHelper.d.ts +0 -13
  445. package/dist/libs/shared/src/utils/MaskHelper.d.ts +0 -15
  446. package/dist/libs/shared/src/utils/SubtitleHelper.d.ts +0 -9
  447. package/dist/libs/shared/src/utils/SvgHelper.d.ts +0 -18
  448. package/dist/libs/shared/src/utils/TextHelper.d.ts +0 -3
  449. package/dist/libs/shared/src/utils/VideoDetailsHelper.d.ts +0 -12
  450. package/dist/projects/library-editor/src/app.d.ts +0 -245
  451. package/dist/projects/library-editor/src/apps/content-updates/ContentUpdatesApplication.d.ts +0 -18
  452. package/dist/projects/library-editor/src/apps/content-updates/collections/SubjectCollection.d.ts +0 -5
  453. package/dist/projects/library-editor/src/apps/content-updates/collections/VideoGroupCollection.d.ts +0 -5
  454. package/dist/projects/library-editor/src/apps/content-updates/collections/index.d.ts +0 -2
  455. package/dist/projects/library-editor/src/apps/content-updates/components/awaiting-review-header/AwaitingReviewHeaderComponent.d.ts +0 -14
  456. package/dist/projects/library-editor/src/apps/content-updates/components/content-updates-header/ContentUpdatesHeaderComponent.d.ts +0 -19
  457. package/dist/projects/library-editor/src/apps/content-updates/components/content-updates-left-nav/ContentUpdatesLeftNavComponent.d.ts +0 -18
  458. package/dist/projects/library-editor/src/apps/content-updates/components/index.d.ts +0 -6
  459. package/dist/projects/library-editor/src/apps/content-updates/components/past-releases-filters/PastReleasesFiltersComponent.d.ts +0 -20
  460. package/dist/projects/library-editor/src/apps/content-updates/components/past-releases-header/PastReleasesHeaderComponent.d.ts +0 -24
  461. package/dist/projects/library-editor/src/apps/content-updates/components/video-group-list/VideoGroupListComponent.d.ts +0 -37
  462. package/dist/projects/library-editor/src/apps/content-updates/enums/PastReleaseFilterType.d.ts +0 -5
  463. package/dist/projects/library-editor/src/apps/content-updates/enums/ReleaseDateType.d.ts +0 -6
  464. package/dist/projects/library-editor/src/apps/content-updates/enums/index.d.ts +0 -2
  465. package/dist/projects/library-editor/src/apps/content-updates/models/Subject.d.ts +0 -3
  466. package/dist/projects/library-editor/src/apps/content-updates/models/VideoGroup.d.ts +0 -7
  467. package/dist/projects/library-editor/src/apps/content-updates/models/index.d.ts +0 -2
  468. package/dist/projects/library-editor/src/apps/content-updates/services/ContentUpdatesDataService.d.ts +0 -18
  469. package/dist/projects/library-editor/src/apps/content-updates/services/index.d.ts +0 -1
  470. package/dist/projects/library-editor/src/apps/content-updates/utils/Constants.d.ts +0 -33
  471. package/dist/projects/library-editor/src/apps/content-updates/utils/ContentUpdatesHelper.d.ts +0 -7
  472. package/dist/projects/library-editor/src/apps/content-updates/utils/PastReleasesHelper.d.ts +0 -3
  473. package/dist/projects/library-editor/src/apps/content-updates/utils/index.d.ts +0 -3
  474. package/dist/projects/library-editor/src/apps/content-updates/views/add-to-library/AddToLibraryView.d.ts +0 -47
  475. package/dist/projects/library-editor/src/apps/content-updates/views/awaiting-review/AwaitingReviewView.d.ts +0 -36
  476. package/dist/projects/library-editor/src/apps/content-updates/views/disable-review/DisableReviewView.d.ts +0 -26
  477. package/dist/projects/library-editor/src/apps/content-updates/views/generate-past-releases-pdf/GeneratePastReleasesPdfView.d.ts +0 -41
  478. package/dist/projects/library-editor/src/apps/content-updates/views/past-releases/PastReleasesView.d.ts +0 -55
  479. package/dist/projects/library-editor/src/apps/dashboard/DashboardApplication.d.ts +0 -9
  480. package/dist/projects/library-editor/src/apps/dashboard/components/dashboard-action-tile/DashboardActionTileComponent.d.ts +0 -20
  481. package/dist/projects/library-editor/src/apps/dashboard/components/dashboard-info-tile/DashboardInfoTileComponent.d.ts +0 -7
  482. package/dist/projects/library-editor/src/apps/dashboard/components/dashboard-notifications/DashboardNotificationsComponents.d.ts +0 -15
  483. package/dist/projects/library-editor/src/apps/dashboard/components/dashboard-tile-container/DashboardTileContainerComponent.d.ts +0 -11
  484. package/dist/projects/library-editor/src/apps/dashboard/components/dashboard-tile-list/DashboardTileListComponent.d.ts +0 -14
  485. package/dist/projects/library-editor/src/apps/dashboard/components/index.d.ts +0 -9
  486. package/dist/projects/library-editor/src/apps/dashboard/views/DashboardView.d.ts +0 -38
  487. package/dist/projects/library-editor/src/apps/default/DefaultApplication.d.ts +0 -21
  488. package/dist/projects/library-editor/src/apps/default/views/dev-error/DevErrorView.d.ts +0 -11
  489. package/dist/projects/library-editor/src/apps/default/views/error-view/ErrorView.d.ts +0 -12
  490. package/dist/projects/library-editor/src/apps/default/views/not-found/NotFoundView.d.ts +0 -11
  491. package/dist/projects/library-editor/src/apps/index.d.ts +0 -16
  492. package/dist/projects/library-editor/src/apps/library-editor/LibraryEditorApplication.d.ts +0 -46
  493. package/dist/projects/library-editor/src/apps/library-editor/behaviors/draggable-folder/DraggableFolderBehavior.d.ts +0 -9
  494. package/dist/projects/library-editor/src/apps/library-editor/behaviors/draggable-video/DraggableVideoBehavior.d.ts +0 -24
  495. package/dist/projects/library-editor/src/apps/library-editor/behaviors/droppable/DroppableBehavior.d.ts +0 -19
  496. package/dist/projects/library-editor/src/apps/library-editor/behaviors/index.d.ts +0 -3
  497. package/dist/projects/library-editor/src/apps/library-editor/behaviors/shared/DragOptions.d.ts +0 -3
  498. package/dist/projects/library-editor/src/apps/library-editor/behaviors/shared/DraggableItemComponent.d.ts +0 -15
  499. package/dist/projects/library-editor/src/apps/library-editor/behaviors/shared/index.d.ts +0 -5
  500. package/dist/projects/library-editor/src/apps/library-editor/components/add-links/AddLinksComponent.d.ts +0 -31
  501. package/dist/projects/library-editor/src/apps/library-editor/components/banner/BannerComponent.d.ts +0 -19
  502. package/dist/projects/library-editor/src/apps/library-editor/components/chapter-form/ChapterFormComponent.d.ts +0 -66
  503. package/dist/projects/library-editor/src/apps/library-editor/components/chapter-list/ChapterComponentCollection.d.ts +0 -25
  504. package/dist/projects/library-editor/src/apps/library-editor/components/chapter-list/ChapterItemComponent.d.ts +0 -37
  505. package/dist/projects/library-editor/src/apps/library-editor/components/chapters/ChaptersComponent.d.ts +0 -21
  506. package/dist/projects/library-editor/src/apps/library-editor/components/concatenate-request/ConcatenateRequestComponent.d.ts +0 -24
  507. package/dist/projects/library-editor/src/apps/library-editor/components/customer-logo/CustomerLogoComponent.d.ts +0 -19
  508. package/dist/projects/library-editor/src/apps/library-editor/components/edit-image/EditImageComponent.d.ts +0 -28
  509. package/dist/projects/library-editor/src/apps/library-editor/components/edit-images-wrapper/EditImagesWrapperComponent.d.ts +0 -24
  510. package/dist/projects/library-editor/src/apps/library-editor/components/edit-links/LinkItemComponent.d.ts +0 -16
  511. package/dist/projects/library-editor/src/apps/library-editor/components/edit-links/VideoLinksComponent.d.ts +0 -23
  512. package/dist/projects/library-editor/src/apps/library-editor/components/edit-thumbnail/EditThumbnailComponent.d.ts +0 -22
  513. package/dist/projects/library-editor/src/apps/library-editor/components/edit-video/EditVideoDetailsComponent.d.ts +0 -48
  514. package/dist/projects/library-editor/src/apps/library-editor/components/edit-video-tabs/EditVideoTabsComponent.d.ts +0 -24
  515. package/dist/projects/library-editor/src/apps/library-editor/components/expandable-tag-list/ExpandableTagListComponent.d.ts +0 -26
  516. package/dist/projects/library-editor/src/apps/library-editor/components/file-uploads/FileUploadsComponentCollection.d.ts +0 -13
  517. package/dist/projects/library-editor/src/apps/library-editor/components/folder-actions/FolderActionsDropdownComponent.d.ts +0 -18
  518. package/dist/projects/library-editor/src/apps/library-editor/components/folder-details/FolderDetailsComponent.d.ts +0 -35
  519. package/dist/projects/library-editor/src/apps/library-editor/components/folder-select/FolderSelectComponent.d.ts +0 -41
  520. package/dist/projects/library-editor/src/apps/library-editor/components/language-select/LanguageSelectComponent.d.ts +0 -28
  521. package/dist/projects/library-editor/src/apps/library-editor/components/language-select/LanguageSelectTypeaheadHelper.d.ts +0 -6
  522. package/dist/projects/library-editor/src/apps/library-editor/components/left-nav-libraries/LeftNavLibrariesComponent.d.ts +0 -45
  523. package/dist/projects/library-editor/src/apps/library-editor/components/library-actions/LibraryActionsComponent.d.ts +0 -26
  524. package/dist/projects/library-editor/src/apps/library-editor/components/library-folders/LibraryFolderListComponent.d.ts +0 -31
  525. package/dist/projects/library-editor/src/apps/library-editor/components/library-select/LibrarySelectComponent.d.ts +0 -27
  526. package/dist/projects/library-editor/src/apps/library-editor/components/save/SaveComponent.d.ts +0 -33
  527. package/dist/projects/library-editor/src/apps/library-editor/components/sort-select/SortSelectComponent.d.ts +0 -29
  528. package/dist/projects/library-editor/src/apps/library-editor/components/sub-folders/SubFolderComponent.d.ts +0 -15
  529. package/dist/projects/library-editor/src/apps/library-editor/components/sub-folders/SubFoldersComponent.d.ts +0 -9
  530. package/dist/projects/library-editor/src/apps/library-editor/components/suggest-edit/SuggestEditComponent.d.ts +0 -31
  531. package/dist/projects/library-editor/src/apps/library-editor/components/tag-list/TagComponentCollection.d.ts +0 -21
  532. package/dist/projects/library-editor/src/apps/library-editor/components/tag-list/TagItemComponent.d.ts +0 -28
  533. package/dist/projects/library-editor/src/apps/library-editor/components/tags/TagsComponent.d.ts +0 -31
  534. package/dist/projects/library-editor/src/apps/library-editor/components/video-collection-actions/VideoCollectionActionsComponent.d.ts +0 -25
  535. package/dist/projects/library-editor/src/apps/library-editor/components/video-header/VideoHeaderComponent.d.ts +0 -23
  536. package/dist/projects/library-editor/src/apps/library-editor/components/video-list-header/VideoListHeaderComponent.d.ts +0 -34
  537. package/dist/projects/library-editor/src/apps/library-editor/components/video-resources/VideoResourcesComponent.d.ts +0 -46
  538. package/dist/projects/library-editor/src/apps/library-editor/components/video-sidebar-info/VideoSidebarInfoComponent.d.ts +0 -26
  539. package/dist/projects/library-editor/src/apps/library-editor/components/video-subtitles/VideoSubtitlesComponent.d.ts +0 -29
  540. package/dist/projects/library-editor/src/apps/library-editor/constants/CheckboxTypes.d.ts +0 -5
  541. package/dist/projects/library-editor/src/apps/library-editor/constants/EditVideoBackButtonBlacklist.d.ts +0 -1
  542. package/dist/projects/library-editor/src/apps/library-editor/constants/EditVideoBackButtonKey.d.ts +0 -1
  543. package/dist/projects/library-editor/src/apps/library-editor/constants/LibraryEditorActions.d.ts +0 -18
  544. package/dist/projects/library-editor/src/apps/library-editor/constants/LibraryEditorRadioChannels.d.ts +0 -3
  545. package/dist/projects/library-editor/src/apps/library-editor/constants/MetadataTypes.d.ts +0 -32
  546. package/dist/projects/library-editor/src/apps/library-editor/constants/VideoCollectionTypes.d.ts +0 -3
  547. package/dist/projects/library-editor/src/apps/library-editor/constants/index.d.ts +0 -7
  548. package/dist/projects/library-editor/src/apps/library-editor/enums/MediaConcatenateStatus.d.ts +0 -8
  549. package/dist/projects/library-editor/src/apps/library-editor/enums/TagBehavior.d.ts +0 -6
  550. package/dist/projects/library-editor/src/apps/library-editor/enums/TagOrientation.d.ts +0 -4
  551. package/dist/projects/library-editor/src/apps/library-editor/enums/VideoCollectionSource.d.ts +0 -4
  552. package/dist/projects/library-editor/src/apps/library-editor/enums/index.d.ts +0 -4
  553. package/dist/projects/library-editor/src/apps/library-editor/errors/folder-empty/FolderEmptyError.d.ts +0 -8
  554. package/dist/projects/library-editor/src/apps/library-editor/errors/folder-max-depth/FolderMaxDepthError.d.ts +0 -7
  555. package/dist/projects/library-editor/src/apps/library-editor/errors/folder-not-empty/FolderNotEmptyError.d.ts +0 -7
  556. package/dist/projects/library-editor/src/apps/library-editor/errors/folder-not-found/FolderNotFound.d.ts +0 -6
  557. package/dist/projects/library-editor/src/apps/library-editor/errors/forbidden-folder/ForbiddenFolderError.d.ts +0 -6
  558. package/dist/projects/library-editor/src/apps/library-editor/errors/forbidden-video/ForbiddenVideoError.d.ts +0 -6
  559. package/dist/projects/library-editor/src/apps/library-editor/errors/image-dimensions-too-small/ImageDimensionsTooSmallError.d.ts +0 -9
  560. package/dist/projects/library-editor/src/apps/library-editor/errors/index.d.ts +0 -13
  561. package/dist/projects/library-editor/src/apps/library-editor/errors/library-has-subscribers/LibraryHasSubscribersError.d.ts +0 -7
  562. package/dist/projects/library-editor/src/apps/library-editor/errors/library-not-empty/LibraryNotEmptyError.d.ts +0 -7
  563. package/dist/projects/library-editor/src/apps/library-editor/errors/max-custom-libraries/MaxCustomLibrariesError.d.ts +0 -9
  564. package/dist/projects/library-editor/src/apps/library-editor/errors/series-not-found/SeriesNotFoundError.d.ts +0 -6
  565. package/dist/projects/library-editor/src/apps/library-editor/errors/video-not-found/VideoNotFoundError.d.ts +0 -6
  566. package/dist/projects/library-editor/src/apps/library-editor/errors/video-write-permission/VideoWritePermissionError.d.ts +0 -6
  567. package/dist/projects/library-editor/src/apps/library-editor/models/ChapterConcatenateRequest.d.ts +0 -3
  568. package/dist/projects/library-editor/src/apps/library-editor/models/index.d.ts +0 -1
  569. package/dist/projects/library-editor/src/apps/library-editor/services/ChapterDataService.d.ts +0 -15
  570. package/dist/projects/library-editor/src/apps/library-editor/services/CompanyDataService.d.ts +0 -7
  571. package/dist/projects/library-editor/src/apps/library-editor/services/ExportDataService.d.ts +0 -11
  572. package/dist/projects/library-editor/src/apps/library-editor/services/FieldsDataService.d.ts +0 -12
  573. package/dist/projects/library-editor/src/apps/library-editor/services/FolderDragDropService.d.ts +0 -27
  574. package/dist/projects/library-editor/src/apps/library-editor/services/LibraryDataService.d.ts +0 -65
  575. package/dist/projects/library-editor/src/apps/library-editor/services/LinkDataService.d.ts +0 -14
  576. package/dist/projects/library-editor/src/apps/library-editor/services/PersonDataService.d.ts +0 -7
  577. package/dist/projects/library-editor/src/apps/library-editor/services/RatingsDataService.d.ts +0 -7
  578. package/dist/projects/library-editor/src/apps/library-editor/services/ResourceDataService.d.ts +0 -13
  579. package/dist/projects/library-editor/src/apps/library-editor/services/SeriesDataService.d.ts +0 -16
  580. package/dist/projects/library-editor/src/apps/library-editor/services/SubtitleDataService.d.ts +0 -11
  581. package/dist/projects/library-editor/src/apps/library-editor/services/TagDataService.d.ts +0 -9
  582. package/dist/projects/library-editor/src/apps/library-editor/services/VideoDataService.d.ts +0 -45
  583. package/dist/projects/library-editor/src/apps/library-editor/services/VideoDragDropService.d.ts +0 -26
  584. package/dist/projects/library-editor/src/apps/library-editor/utils/AddToLibraryCacheHelper.d.ts +0 -4
  585. package/dist/projects/library-editor/src/apps/library-editor/utils/ChapterHelper.d.ts +0 -18
  586. package/dist/projects/library-editor/src/apps/library-editor/utils/DownloadHelper.d.ts +0 -3
  587. package/dist/projects/library-editor/src/apps/library-editor/utils/EditVideoHelpers.d.ts +0 -93
  588. package/dist/projects/library-editor/src/apps/library-editor/utils/FolderValidation.d.ts +0 -2
  589. package/dist/projects/library-editor/src/apps/library-editor/utils/LanguageValidation.d.ts +0 -2
  590. package/dist/projects/library-editor/src/apps/library-editor/utils/LibraryValidation.d.ts +0 -2
  591. package/dist/projects/library-editor/src/apps/library-editor/utils/UploadVideoValidation.d.ts +0 -2
  592. package/dist/projects/library-editor/src/apps/library-editor/utils/VideoDetailsHelper.d.ts +0 -17
  593. package/dist/projects/library-editor/src/apps/library-editor/utils/index.d.ts +0 -8
  594. package/dist/projects/library-editor/src/apps/library-editor/views/add-to-exchange/AddToExchangeView.d.ts +0 -34
  595. package/dist/projects/library-editor/src/apps/library-editor/views/banner-upload/BannerUploadView.d.ts +0 -32
  596. package/dist/projects/library-editor/src/apps/library-editor/views/delete-folder/DeleteFolderView.d.ts +0 -28
  597. package/dist/projects/library-editor/src/apps/library-editor/views/delete-library/DeleteLibraryView.d.ts +0 -23
  598. package/dist/projects/library-editor/src/apps/library-editor/views/delete-videos/DeleteVideosView.d.ts +0 -29
  599. package/dist/projects/library-editor/src/apps/library-editor/views/edit-chapters/EditChaptersView.d.ts +0 -71
  600. package/dist/projects/library-editor/src/apps/library-editor/views/edit-folder-images/EditFolderImagesView.d.ts +0 -51
  601. package/dist/projects/library-editor/src/apps/library-editor/views/edit-library/RenameLibraryView.d.ts +0 -29
  602. package/dist/projects/library-editor/src/apps/library-editor/views/edit-link/EditLinkView.d.ts +0 -30
  603. package/dist/projects/library-editor/src/apps/library-editor/views/edit-resource/EditResourceView.d.ts +0 -34
  604. package/dist/projects/library-editor/src/apps/library-editor/views/edit-resources/EditResourcesView.d.ts +0 -92
  605. package/dist/projects/library-editor/src/apps/library-editor/views/edit-video/EditVideoView.d.ts +0 -125
  606. package/dist/projects/library-editor/src/apps/library-editor/views/generate-pdf/GeneratePdfView.d.ts +0 -35
  607. package/dist/projects/library-editor/src/apps/library-editor/views/left-navigation/LeftNavigationView.d.ts +0 -33
  608. package/dist/projects/library-editor/src/apps/library-editor/views/library/LibraryView.d.ts +0 -31
  609. package/dist/projects/library-editor/src/apps/library-editor/views/move-folder/MoveFolderView.d.ts +0 -44
  610. package/dist/projects/library-editor/src/apps/library-editor/views/move-video/MoveVideoView.d.ts +0 -50
  611. package/dist/projects/library-editor/src/apps/library-editor/views/new-folder/NewFolderView.d.ts +0 -44
  612. package/dist/projects/library-editor/src/apps/library-editor/views/new-library/NewLibraryView.d.ts +0 -26
  613. package/dist/projects/library-editor/src/apps/library-editor/views/no-library/NoLibraryView.d.ts +0 -10
  614. package/dist/projects/library-editor/src/apps/library-editor/views/publish-library/PublishLibraryView.d.ts +0 -19
  615. package/dist/projects/library-editor/src/apps/library-editor/views/rename-folder/RenameFolderView.d.ts +0 -39
  616. package/dist/projects/library-editor/src/apps/library-editor/views/suggest-an-edit/SuggestAnEditView.d.ts +0 -58
  617. package/dist/projects/library-editor/src/apps/library-editor/views/thumbnail-upload/ThumbnailUploadView.d.ts +0 -34
  618. package/dist/projects/library-editor/src/apps/library-editor/views/video-collection/VideoCollectionView.d.ts +0 -105
  619. package/dist/projects/library-editor/src/apps/library-editor/views/video-details/VideoDetailsView.d.ts +0 -46
  620. package/dist/projects/library-editor/src/apps/migration-wizard/MigrationWizardApplication.d.ts +0 -45
  621. package/dist/projects/library-editor/src/apps/migration-wizard/collections/HomeFolderCollection.d.ts +0 -6
  622. package/dist/projects/library-editor/src/apps/migration-wizard/collections/SmartSelectVideoCollection.d.ts +0 -5
  623. package/dist/projects/library-editor/src/apps/migration-wizard/collections/index.d.ts +0 -1
  624. package/dist/projects/library-editor/src/apps/migration-wizard/components/banner/BannerComponent.d.ts +0 -18
  625. package/dist/projects/library-editor/src/apps/migration-wizard/components/empty-video-list/EmptyVideoListComponent.d.ts +0 -14
  626. package/dist/projects/library-editor/src/apps/migration-wizard/components/errored-video-actions/ErroredVideoActionsComponent.d.ts +0 -22
  627. package/dist/projects/library-editor/src/apps/migration-wizard/components/errored-video-footer/ErroredVideoFooterComponent.d.ts +0 -21
  628. package/dist/projects/library-editor/src/apps/migration-wizard/components/errored-video-item/ErroredVideoItemComponent.d.ts +0 -30
  629. package/dist/projects/library-editor/src/apps/migration-wizard/components/errored-video-list/ErroredVideoListComponent.d.ts +0 -12
  630. package/dist/projects/library-editor/src/apps/migration-wizard/components/errored-video-metadata/ErroredVideoMetadataComponent.d.ts +0 -8
  631. package/dist/projects/library-editor/src/apps/migration-wizard/components/errored-video-preview/ErroredVideoPreviewComponent.d.ts +0 -17
  632. package/dist/projects/library-editor/src/apps/migration-wizard/components/generate-report/GenerateReportComponent.d.ts +0 -25
  633. package/dist/projects/library-editor/src/apps/migration-wizard/components/generate-report-button/GenerateReportButtonComponent.d.ts +0 -10
  634. package/dist/projects/library-editor/src/apps/migration-wizard/components/index.d.ts +0 -13
  635. package/dist/projects/library-editor/src/apps/migration-wizard/components/migration-video-item/MigrationVideoItemComponent.d.ts +0 -30
  636. package/dist/projects/library-editor/src/apps/migration-wizard/components/progress-bar/ProgressBarComponent.d.ts +0 -19
  637. package/dist/projects/library-editor/src/apps/migration-wizard/components/progress-circle/ProgressCircleComponent.d.ts +0 -20
  638. package/dist/projects/library-editor/src/apps/migration-wizard/components/search-bar/SearchBarComponent.d.ts +0 -19
  639. package/dist/projects/library-editor/src/apps/migration-wizard/components/selected-video-item/SelectedVideoItemComponent.d.ts +0 -9
  640. package/dist/projects/library-editor/src/apps/migration-wizard/components/sorting-row/SortingRowComponent.d.ts +0 -35
  641. package/dist/projects/library-editor/src/apps/migration-wizard/components/status-bar/StatusBarComponent.d.ts +0 -28
  642. package/dist/projects/library-editor/src/apps/migration-wizard/components/video-list/VideoListCollection.d.ts +0 -36
  643. package/dist/projects/library-editor/src/apps/migration-wizard/components/video-list-collection/VideoListCollectionComponent.d.ts +0 -16
  644. package/dist/projects/library-editor/src/apps/migration-wizard/contants/MigrationErrorActions.d.ts +0 -4
  645. package/dist/projects/library-editor/src/apps/migration-wizard/contants/MigrationViewModels.d.ts +0 -4
  646. package/dist/projects/library-editor/src/apps/migration-wizard/enums/CloudSyncStatus.d.ts +0 -12
  647. package/dist/projects/library-editor/src/apps/migration-wizard/enums/FinalisationTaskStatus.d.ts +0 -5
  648. package/dist/projects/library-editor/src/apps/migration-wizard/enums/FinalisationType.d.ts +0 -6
  649. package/dist/projects/library-editor/src/apps/migration-wizard/enums/LocalOption.d.ts +0 -4
  650. package/dist/projects/library-editor/src/apps/migration-wizard/enums/MigrationOption.d.ts +0 -7
  651. package/dist/projects/library-editor/src/apps/migration-wizard/enums/MigrationReportType.d.ts +0 -6
  652. package/dist/projects/library-editor/src/apps/migration-wizard/enums/SortField.d.ts +0 -5
  653. package/dist/projects/library-editor/src/apps/migration-wizard/enums/ValidationResult.d.ts +0 -32
  654. package/dist/projects/library-editor/src/apps/migration-wizard/enums/ValidationResultErrorType.d.ts +0 -5
  655. package/dist/projects/library-editor/src/apps/migration-wizard/enums/VideoMigrationStatus.d.ts +0 -5
  656. package/dist/projects/library-editor/src/apps/migration-wizard/enums/index.d.ts +0 -7
  657. package/dist/projects/library-editor/src/apps/migration-wizard/errors/already-migrated/AlreadyMigratedError.d.ts +0 -6
  658. package/dist/projects/library-editor/src/apps/migration-wizard/errors/backup-progress/BackupProgressError.d.ts +0 -8
  659. package/dist/projects/library-editor/src/apps/migration-wizard/errors/index.d.ts +0 -6
  660. package/dist/projects/library-editor/src/apps/migration-wizard/errors/migration-finalisation/MigrationFinalisationError.d.ts +0 -8
  661. package/dist/projects/library-editor/src/apps/migration-wizard/errors/migration-progress/MigrationProgressError.d.ts +0 -8
  662. package/dist/projects/library-editor/src/apps/migration-wizard/errors/smart-migration-api-call/SmartMigrationApiCallError.d.ts +0 -9
  663. package/dist/projects/library-editor/src/apps/migration-wizard/filters/MigrationFilters.d.ts +0 -8
  664. package/dist/projects/library-editor/src/apps/migration-wizard/filters/index.d.ts +0 -1
  665. package/dist/projects/library-editor/src/apps/migration-wizard/interfaces/SelectedVideos.d.ts +0 -7
  666. package/dist/projects/library-editor/src/apps/migration-wizard/models/BackupToolBuild.d.ts +0 -3
  667. package/dist/projects/library-editor/src/apps/migration-wizard/models/CustomerMetadata.d.ts +0 -9
  668. package/dist/projects/library-editor/src/apps/migration-wizard/models/FinalisationTask.d.ts +0 -3
  669. package/dist/projects/library-editor/src/apps/migration-wizard/models/HomeFolder.d.ts +0 -8
  670. package/dist/projects/library-editor/src/apps/migration-wizard/models/MigrationOptions.d.ts +0 -3
  671. package/dist/projects/library-editor/src/apps/migration-wizard/models/SelectedVideo.d.ts +0 -3
  672. package/dist/projects/library-editor/src/apps/migration-wizard/models/SmartSelectVideo.d.ts +0 -4
  673. package/dist/projects/library-editor/src/apps/migration-wizard/models/VideoCount.d.ts +0 -3
  674. package/dist/projects/library-editor/src/apps/migration-wizard/models/index.d.ts +0 -8
  675. package/dist/projects/library-editor/src/apps/migration-wizard/services/FolderCacheService.d.ts +0 -22
  676. package/dist/projects/library-editor/src/apps/migration-wizard/services/LocalOptionsService.d.ts +0 -10
  677. package/dist/projects/library-editor/src/apps/migration-wizard/services/MigrationVideoDataService.d.ts +0 -56
  678. package/dist/projects/library-editor/src/apps/migration-wizard/services/SelectedVideoService.d.ts +0 -19
  679. package/dist/projects/library-editor/src/apps/migration-wizard/utils/FolderHelper.d.ts +0 -8
  680. package/dist/projects/library-editor/src/apps/migration-wizard/utils/KeyContactHelper.d.ts +0 -6
  681. package/dist/projects/library-editor/src/apps/migration-wizard/utils/MigrationErrorHelper.d.ts +0 -3
  682. package/dist/projects/library-editor/src/apps/migration-wizard/utils/MigrationHelper.d.ts +0 -41
  683. package/dist/projects/library-editor/src/apps/migration-wizard/utils/MigrationRadioChannels.d.ts +0 -4
  684. package/dist/projects/library-editor/src/apps/migration-wizard/utils/MigrationWarningsSvgs.d.ts +0 -3
  685. package/dist/projects/library-editor/src/apps/migration-wizard/utils/ReportHelper.d.ts +0 -9
  686. package/dist/projects/library-editor/src/apps/migration-wizard/utils/VideoHelper.d.ts +0 -29
  687. package/dist/projects/library-editor/src/apps/migration-wizard/views/current-section-header/CurrentSectionHeaderView.d.ts +0 -28
  688. package/dist/projects/library-editor/src/apps/migration-wizard/views/generate-csv-report/GenerateCsvReportView.d.ts +0 -27
  689. package/dist/projects/library-editor/src/apps/migration-wizard/views/migration-error/MigrationErrorView.d.ts +0 -40
  690. package/dist/projects/library-editor/src/apps/migration-wizard/views/migration-progress/MigrationProgressView.d.ts +0 -32
  691. package/dist/projects/library-editor/src/apps/migration-wizard/views/publish-library-banner/PublishLibraryBannerView.d.ts +0 -30
  692. package/dist/projects/library-editor/src/apps/migration-wizard/views/publish-library-complete/PublishLibraryCompleteView.d.ts +0 -15
  693. package/dist/projects/library-editor/src/apps/migration-wizard/views/publish-library-progress/PublishLibraryProgressView.d.ts +0 -18
  694. package/dist/projects/library-editor/src/apps/migration-wizard/views/publisher-backup/PublisherBackupView.d.ts +0 -19
  695. package/dist/projects/library-editor/src/apps/migration-wizard/views/publisher-backup-complete/PublisherBackupCompleteView.d.ts +0 -23
  696. package/dist/projects/library-editor/src/apps/migration-wizard/views/publisher-backup-progress/PublisherBackupProgressView.d.ts +0 -23
  697. package/dist/projects/library-editor/src/apps/migration-wizard/views/publisher-backup-welcome/PublisherBackupWelcomeView.d.ts +0 -19
  698. package/dist/projects/library-editor/src/apps/migration-wizard/views/remigrate-video/RemigrateVideoView.d.ts +0 -32
  699. package/dist/projects/library-editor/src/apps/migration-wizard/views/selected-videos/SelectedVideosView.d.ts +0 -32
  700. package/dist/projects/library-editor/src/apps/migration-wizard/views/show-video-popup/ShowPublisherVideoPopupView.d.ts +0 -26
  701. package/dist/projects/library-editor/src/apps/migration-wizard/views/smart-migration/SmartMigrationView.d.ts +0 -58
  702. package/dist/projects/library-editor/src/apps/migration-wizard/views/start/StartView.d.ts +0 -40
  703. package/dist/projects/library-editor/src/apps/migration-wizard/views/videos-added/VideosAddedView.d.ts +0 -24
  704. package/dist/projects/library-editor/src/apps/notifications/NotificationsApplication.d.ts +0 -11
  705. package/dist/projects/library-editor/src/apps/notifications/constants/NotificationsAppVariables.d.ts +0 -8
  706. package/dist/projects/library-editor/src/apps/notifications/constants/index.d.ts +0 -0
  707. package/dist/projects/library-editor/src/apps/notifications/utils/Constants.d.ts +0 -3
  708. package/dist/projects/library-editor/src/apps/notifications/utils/NotificationsHelper.d.ts +0 -10
  709. package/dist/projects/library-editor/src/apps/notifications/utils/index.d.ts +0 -2
  710. package/dist/projects/library-editor/src/apps/search/SearchApplication.d.ts +0 -16
  711. package/dist/projects/library-editor/src/apps/search/collections/FilterCollection.d.ts +0 -9
  712. package/dist/projects/library-editor/src/apps/search/collections/OptionCollection.d.ts +0 -5
  713. package/dist/projects/library-editor/src/apps/search/collections/index.d.ts +0 -2
  714. package/dist/projects/library-editor/src/apps/search/components/filters/FiltersComponent.d.ts +0 -27
  715. package/dist/projects/library-editor/src/apps/search/components/filters/filter-button-list/FilterButtonItemComponent.d.ts +0 -37
  716. package/dist/projects/library-editor/src/apps/search/components/filters/filter-button-list/FilterButtonListComponent.d.ts +0 -19
  717. package/dist/projects/library-editor/src/apps/search/components/filters/filter-button-list/index.d.ts +0 -2
  718. package/dist/projects/library-editor/src/apps/search/components/filters/filter-list/FilterItemComponent.d.ts +0 -17
  719. package/dist/projects/library-editor/src/apps/search/components/filters/filter-list/FilterListComponent.d.ts +0 -24
  720. package/dist/projects/library-editor/src/apps/search/components/filters/filter-options/FilterOptionsComponent.d.ts +0 -34
  721. package/dist/projects/library-editor/src/apps/search/components/filters/filter-options/bool-filter-options/BoolFilterOptionsComponent.d.ts +0 -15
  722. package/dist/projects/library-editor/src/apps/search/components/filters/filter-options/duration-filter-options/DurationFilterOptionListComponent.d.ts +0 -27
  723. package/dist/projects/library-editor/src/apps/search/components/filters/filter-options/filter-option-list/FilterOptionItemComponent.d.ts +0 -19
  724. package/dist/projects/library-editor/src/apps/search/components/filters/filter-options/filter-option-list/FilterOptionsListComponent.d.ts +0 -21
  725. package/dist/projects/library-editor/src/apps/search/components/filters/filter-options/index.d.ts +0 -7
  726. package/dist/projects/library-editor/src/apps/search/components/filters/filter-options/range-filter-options/RangeFilterOptionListComponent.d.ts +0 -23
  727. package/dist/projects/library-editor/src/apps/search/components/filters/filter-options/tag-filter-options/TagFilterOptionsComponent.d.ts +0 -27
  728. package/dist/projects/library-editor/src/apps/search/components/filters/filter-options/tag-filter-options/TagFilterOptionsListComponent.d.ts +0 -19
  729. package/dist/projects/library-editor/src/apps/search/components/filters/index.d.ts +0 -3
  730. package/dist/projects/library-editor/src/apps/search/components/filters/more-filters-button/MoreFiltersButtonComponent.d.ts +0 -42
  731. package/dist/projects/library-editor/src/apps/search/components/results/SearchResultsComponent.d.ts +0 -22
  732. package/dist/projects/library-editor/src/apps/search/components/search-header/SearchHeaderComponent.d.ts +0 -11
  733. package/dist/projects/library-editor/src/apps/search/constants/SearchRadioChannels.d.ts +0 -3
  734. package/dist/projects/library-editor/src/apps/search/constants/index.d.ts +0 -1
  735. package/dist/projects/library-editor/src/apps/search/models/Filter.d.ts +0 -8
  736. package/dist/projects/library-editor/src/apps/search/models/Option.d.ts +0 -4
  737. package/dist/projects/library-editor/src/apps/search/models/Query.d.ts +0 -3
  738. package/dist/projects/library-editor/src/apps/search/models/SearchAppVariables.d.ts +0 -7
  739. package/dist/projects/library-editor/src/apps/search/models/index.d.ts +0 -3
  740. package/dist/projects/library-editor/src/apps/search/services/SearchDataService.d.ts +0 -12
  741. package/dist/projects/library-editor/src/apps/search/services/index.d.ts +0 -1
  742. package/dist/projects/library-editor/src/apps/search/utils/Constants.d.ts +0 -28
  743. package/dist/projects/library-editor/src/apps/search/utils/Enums.d.ts +0 -23
  744. package/dist/projects/library-editor/src/apps/search/utils/FilterHelper.d.ts +0 -2
  745. package/dist/projects/library-editor/src/apps/search/utils/FilterLabelGenerators.d.ts +0 -2
  746. package/dist/projects/library-editor/src/apps/search/utils/FilterQueryGenerators.d.ts +0 -2
  747. package/dist/projects/library-editor/src/apps/search/utils/FilterRouteQueryParamGenerators.d.ts +0 -2
  748. package/dist/projects/library-editor/src/apps/search/utils/SearchHelper.d.ts +0 -11
  749. package/dist/projects/library-editor/src/apps/search/utils/index.d.ts +0 -4
  750. package/dist/projects/library-editor/src/apps/search/views/search/SearchView.d.ts +0 -57
  751. package/dist/projects/library-editor/src/apps/staff-requests/StaffRequestsApplication.d.ts +0 -15
  752. package/dist/projects/library-editor/src/apps/staff-requests/collections/StaffRequestCollection.d.ts +0 -5
  753. package/dist/projects/library-editor/src/apps/staff-requests/collections/StaffRequestMessageCollection.d.ts +0 -5
  754. package/dist/projects/library-editor/src/apps/staff-requests/collections/index.d.ts +0 -2
  755. package/dist/projects/library-editor/src/apps/staff-requests/components/staff-request-actions/StaffRequestActionsComponent.d.ts +0 -42
  756. package/dist/projects/library-editor/src/apps/staff-requests/components/staff-request-details/StaffRequestDetailsComponent.d.ts +0 -30
  757. package/dist/projects/library-editor/src/apps/staff-requests/components/staff-request-list/StaffRequestListComponent.d.ts +0 -29
  758. package/dist/projects/library-editor/src/apps/staff-requests/enums/StaffRequestStatus.d.ts +0 -5
  759. package/dist/projects/library-editor/src/apps/staff-requests/enums/index.d.ts +0 -1
  760. package/dist/projects/library-editor/src/apps/staff-requests/models/StaffRequest.d.ts +0 -18
  761. package/dist/projects/library-editor/src/apps/staff-requests/models/StaffRequestMessage.d.ts +0 -7
  762. package/dist/projects/library-editor/src/apps/staff-requests/models/index.d.ts +0 -2
  763. package/dist/projects/library-editor/src/apps/staff-requests/services/StaffRequestDataService.d.ts +0 -14
  764. package/dist/projects/library-editor/src/apps/staff-requests/services/index.d.ts +0 -1
  765. package/dist/projects/library-editor/src/apps/staff-requests/utils/StaffRequestApprovalValidation.d.ts +0 -2
  766. package/dist/projects/library-editor/src/apps/staff-requests/utils/StaffRequestRejectionValidation.d.ts +0 -2
  767. package/dist/projects/library-editor/src/apps/staff-requests/utils/index.d.ts +0 -2
  768. package/dist/projects/library-editor/src/apps/staff-requests/views/approve-staff-request/ApproveStaffRequestView.d.ts +0 -34
  769. package/dist/projects/library-editor/src/apps/staff-requests/views/reject-staff-request/RejectStaffRequestView.d.ts +0 -34
  770. package/dist/projects/library-editor/src/apps/staff-requests/views/staff-requests/StaffRequestsView.d.ts +0 -44
  771. package/dist/projects/library-editor/src/apps/upload/UploadApplication.d.ts +0 -23
  772. package/dist/projects/library-editor/src/apps/upload/components/index.d.ts +0 -7
  773. package/dist/projects/library-editor/src/apps/upload/components/processing-progress/ProcessProgressComponentCollection.d.ts +0 -38
  774. package/dist/projects/library-editor/src/apps/upload/components/progress-info/ProgressInfoComponent.d.ts +0 -10
  775. package/dist/projects/library-editor/src/apps/upload/components/upload-actions/UploadActionsComponent.d.ts +0 -21
  776. package/dist/projects/library-editor/src/apps/upload/components/upload-folder-select/UploadFolderSelectComponent.d.ts +0 -35
  777. package/dist/projects/library-editor/src/apps/upload/components/upload-progress/UploadProgressComponent.d.ts +0 -10
  778. package/dist/projects/library-editor/src/apps/upload/components/upload-video/UploadVideoComponent.d.ts +0 -48
  779. package/dist/projects/library-editor/src/apps/upload/components/upload-video/UploadVideoComponentCollection.d.ts +0 -20
  780. package/dist/projects/library-editor/src/apps/upload/components/upload-video-options/UploadVideoOptionsComponent.d.ts +0 -18
  781. package/dist/projects/library-editor/src/apps/upload/errors/index.d.ts +0 -1
  782. package/dist/projects/library-editor/src/apps/upload/errors/no-libraries-upload/NoLibrariesUploadError.d.ts +0 -7
  783. package/dist/projects/library-editor/src/apps/upload/services/ImageUploadDataService.d.ts +0 -8
  784. package/dist/projects/library-editor/src/apps/upload/services/PendingItemsService.d.ts +0 -7
  785. package/dist/projects/library-editor/src/apps/upload/services/VideoUploadDataService.d.ts +0 -17
  786. package/dist/projects/library-editor/src/apps/upload/services/VideoUploadService.d.ts +0 -8
  787. package/dist/projects/library-editor/src/apps/upload/services/index.d.ts +0 -5
  788. package/dist/projects/library-editor/src/apps/upload/views/file-select/FileSelectView.d.ts +0 -25
  789. package/dist/projects/library-editor/src/apps/upload/views/progress-summary/ProgressSummaryView.d.ts +0 -18
  790. package/dist/projects/library-editor/src/apps/upload/views/upload-button/UploadButtonView.d.ts +0 -26
  791. package/dist/projects/library-editor/src/apps/upload/views/upload-complete/UploadCompleteView.d.ts +0 -14
  792. package/dist/projects/library-editor/src/apps/upload/views/upload-videos/UploadVideosView.d.ts +0 -64
  793. package/dist/projects/library-editor/src/apps/video-access/VideoAccessApplication.d.ts +0 -12
  794. package/dist/projects/library-editor/src/apps/video-access/views/restricted-video-list/RestrictedVideoListView.d.ts +0 -34
  795. package/dist/projects/library-editor/src/polyfills.d.ts +0 -2
  796. package/dist/projects/library-editor/src/shared/alerts/VideoAlerts.d.ts +0 -9
  797. package/dist/projects/library-editor/src/shared/alerts/index.d.ts +0 -1
  798. package/dist/projects/library-editor/src/shared/behaviors/backbone-validation/BackboneValidationBehavior.d.ts +0 -14
  799. package/dist/projects/library-editor/src/shared/behaviors/image-select-behavior/ImageSelectBehavior.d.ts +0 -23
  800. package/dist/projects/library-editor/src/shared/behaviors/index.d.ts +0 -6
  801. package/dist/projects/library-editor/src/shared/behaviors/lazy-load/LazyLoadBehavior.d.ts +0 -31
  802. package/dist/projects/library-editor/src/shared/behaviors/lock-layout-file-drop/LockLayoutFileDropBehavior.d.ts +0 -7
  803. package/dist/projects/library-editor/src/shared/behaviors/popup/PopupBehavior.d.ts +0 -65
  804. package/dist/projects/library-editor/src/shared/behaviors/stickit/StickitBehavior.d.ts +0 -6
  805. package/dist/projects/library-editor/src/shared/collections/ChannelCollection.d.ts +0 -6
  806. package/dist/projects/library-editor/src/shared/collections/ChapterCollection.d.ts +0 -7
  807. package/dist/projects/library-editor/src/shared/collections/DirectorCollection.d.ts +0 -6
  808. package/dist/projects/library-editor/src/shared/collections/DistributorCollection.d.ts +0 -6
  809. package/dist/projects/library-editor/src/shared/collections/FieldsCollection.d.ts +0 -5
  810. package/dist/projects/library-editor/src/shared/collections/FolderCollection.d.ts +0 -7
  811. package/dist/projects/library-editor/src/shared/collections/InteractivesCollection.d.ts +0 -6
  812. package/dist/projects/library-editor/src/shared/collections/LibraryCollection.d.ts +0 -7
  813. package/dist/projects/library-editor/src/shared/collections/LinkCollection.d.ts +0 -6
  814. package/dist/projects/library-editor/src/shared/collections/LocalCacheDeviceCollection.d.ts +0 -5
  815. package/dist/projects/library-editor/src/shared/collections/LocalCacheDownloadCollection.d.ts +0 -5
  816. package/dist/projects/library-editor/src/shared/collections/MetadataCollection.d.ts +0 -4
  817. package/dist/projects/library-editor/src/shared/collections/ProducerCollection.d.ts +0 -6
  818. package/dist/projects/library-editor/src/shared/collections/ProductionCompanyCollection.d.ts +0 -6
  819. package/dist/projects/library-editor/src/shared/collections/RatingCollection.d.ts +0 -4
  820. package/dist/projects/library-editor/src/shared/collections/ResourceCollection.d.ts +0 -6
  821. package/dist/projects/library-editor/src/shared/collections/RestrictedObjectCollection.d.ts +0 -5
  822. package/dist/projects/library-editor/src/shared/collections/RestrictionCollection.d.ts +0 -5
  823. package/dist/projects/library-editor/src/shared/collections/SeasonCollection.d.ts +0 -6
  824. package/dist/projects/library-editor/src/shared/collections/SettingsCollection.d.ts +0 -5
  825. package/dist/projects/library-editor/src/shared/collections/SubtitleCollection.d.ts +0 -6
  826. package/dist/projects/library-editor/src/shared/collections/TagCollection.d.ts +0 -6
  827. package/dist/projects/library-editor/src/shared/collections/VideoCollection.d.ts +0 -6
  828. package/dist/projects/library-editor/src/shared/components/alert/AlertComponentCollection.d.ts +0 -11
  829. package/dist/projects/library-editor/src/shared/components/alert/AlertItemComponent.d.ts +0 -44
  830. package/dist/projects/library-editor/src/shared/components/breadcrumbs/BreadcrumbComponentCollection.d.ts +0 -18
  831. package/dist/projects/library-editor/src/shared/components/breadcrumbs/BreadcrumbsComponent.d.ts +0 -27
  832. package/dist/projects/library-editor/src/shared/components/bulk-video-actions/BulkVideoActionsComponent.d.ts +0 -26
  833. package/dist/projects/library-editor/src/shared/components/checkbox/BulkCheckboxComponent.d.ts +0 -27
  834. package/dist/projects/library-editor/src/shared/components/checkbox/CheckboxComponent.d.ts +0 -25
  835. package/dist/projects/library-editor/src/shared/components/clear-button/ClearButtonComponent.d.ts +0 -18
  836. package/dist/projects/library-editor/src/shared/components/date-picker/DatePickerComponent.d.ts +0 -47
  837. package/dist/projects/library-editor/src/shared/components/dialog/DialogView.d.ts +0 -22
  838. package/dist/projects/library-editor/src/shared/components/dropdown/DropdownButtonComponent.d.ts +0 -36
  839. package/dist/projects/library-editor/src/shared/components/dropdown/DropdownComponentCollection.d.ts +0 -38
  840. package/dist/projects/library-editor/src/shared/components/dropdown/DropdownItemComponent.d.ts +0 -57
  841. package/dist/projects/library-editor/src/shared/components/edit-video/edit-additional-info/EditAdditionalInfoComponent.d.ts +0 -38
  842. package/dist/projects/library-editor/src/shared/components/edit-video/edit-basic-info/EditBasicInfoComponent.d.ts +0 -32
  843. package/dist/projects/library-editor/src/shared/components/edit-video/edit-broadcast/EditBroadcastComponent.d.ts +0 -22
  844. package/dist/projects/library-editor/src/shared/components/edit-video/edit-broadcast/ToggleBroadcastComponent.d.ts +0 -24
  845. package/dist/projects/library-editor/src/shared/components/edit-video/edit-production-info/EditProductionInfoComponent.d.ts +0 -61
  846. package/dist/projects/library-editor/src/shared/components/edit-video/edit-season-info/EditSeasonInfoComponent.d.ts +0 -33
  847. package/dist/projects/library-editor/src/shared/components/edit-video/extra-info/ExtraInfoComponent.d.ts +0 -16
  848. package/dist/projects/library-editor/src/shared/components/edit-video/extra-info/ExtraInfoItemComponent.d.ts +0 -17
  849. package/dist/projects/library-editor/src/shared/components/edit-video/select-rating/SelectRatingCollectionComponent.d.ts +0 -17
  850. package/dist/projects/library-editor/src/shared/components/edit-video/select-rating/SelectRatingComponent.d.ts +0 -40
  851. package/dist/projects/library-editor/src/shared/components/edit-video/select-rating/SelectRatingItemComponent.d.ts +0 -20
  852. package/dist/projects/library-editor/src/shared/components/fields/FieldsComponent.d.ts +0 -9
  853. package/dist/projects/library-editor/src/shared/components/image-cropper/ImageCropperComponent.d.ts +0 -34
  854. package/dist/projects/library-editor/src/shared/components/left-nav/LeftNavComponent.d.ts +0 -31
  855. package/dist/projects/library-editor/src/shared/components/left-nav/LeftNavNodeComponent.d.ts +0 -48
  856. package/dist/projects/library-editor/src/shared/components/page-footer/PageFooterComponent.d.ts +0 -15
  857. package/dist/projects/library-editor/src/shared/components/page-header/PageHeaderComponent.d.ts +0 -25
  858. package/dist/projects/library-editor/src/shared/components/partial-loading/PartialLoadingComponent.d.ts +0 -16
  859. package/dist/projects/library-editor/src/shared/components/partial-loading/PartialLoadingComponentCollection.d.ts +0 -20
  860. package/dist/projects/library-editor/src/shared/components/partial-loading/index.d.ts +0 -2
  861. package/dist/projects/library-editor/src/shared/components/resizing-text-area/ResizingTextAreaComponent.d.ts +0 -23
  862. package/dist/projects/library-editor/src/shared/components/screenrights-disclaimer/ScreenrightsDisclaimerComponent.d.ts +0 -18
  863. package/dist/projects/library-editor/src/shared/components/select/SelectComponent.d.ts +0 -54
  864. package/dist/projects/library-editor/src/shared/components/spinner-button/SpinnerButtonComponent.d.ts +0 -73
  865. package/dist/projects/library-editor/src/shared/components/tabs/TabsComponent.d.ts +0 -28
  866. package/dist/projects/library-editor/src/shared/components/top-navigation/TopNavigationComponentCollection.d.ts +0 -29
  867. package/dist/projects/library-editor/src/shared/components/tree-dropdown/TreeDropdownComponent.d.ts +0 -32
  868. package/dist/projects/library-editor/src/shared/components/typeahead-input/SearchTypeaheadComponent.d.ts +0 -75
  869. package/dist/projects/library-editor/src/shared/components/typeahead-input/templates/index.d.ts +0 -4
  870. package/dist/projects/library-editor/src/shared/components/typeahead-list/TypeaheadListComponent.d.ts +0 -33
  871. package/dist/projects/library-editor/src/shared/components/user-options-dropdown/UserOptionsDropdownComponent.d.ts +0 -20
  872. package/dist/projects/library-editor/src/shared/components/video-actions/VideoActionComponentCollection.d.ts +0 -31
  873. package/dist/projects/library-editor/src/shared/components/video-actions/VideoActionsComponent.d.ts +0 -42
  874. package/dist/projects/library-editor/src/shared/components/video-basic-info/VideoBasicInfoComponent.d.ts +0 -33
  875. package/dist/projects/library-editor/src/shared/components/video-description/VideoDescriptionComponent.d.ts +0 -33
  876. package/dist/projects/library-editor/src/shared/components/video-item/VideoItemComponent.d.ts +0 -58
  877. package/dist/projects/library-editor/src/shared/components/video-item/index.d.ts +0 -4
  878. package/dist/projects/library-editor/src/shared/components/video-item/utils/VideoItemBehaviors.d.ts +0 -4
  879. package/dist/projects/library-editor/src/shared/components/video-item/utils/VideoItemComponentHelper.d.ts +0 -8
  880. package/dist/projects/library-editor/src/shared/components/video-item/utils/VideoItemComponentTypes.d.ts +0 -16
  881. package/dist/projects/library-editor/src/shared/components/video-item/utils/VideoItemComponents.d.ts +0 -7
  882. package/dist/projects/library-editor/src/shared/components/video-item/utils/index.d.ts +0 -3
  883. package/dist/projects/library-editor/src/shared/components/video-item/video-item-actions/base/VideoItemActionsComponent.d.ts +0 -23
  884. package/dist/projects/library-editor/src/shared/components/video-item/video-item-actions/index.d.ts +0 -4
  885. package/dist/projects/library-editor/src/shared/components/video-item/video-item-actions/video-item-processing-actions/VideoItemProcessingActionsComponent.d.ts +0 -25
  886. package/dist/projects/library-editor/src/shared/components/video-item/video-item-actions/video-item-review-actions/VideoItemReviewActionsComponent.d.ts +0 -26
  887. package/dist/projects/library-editor/src/shared/components/video-item/video-item-actions/video-item-video-access-actions/VideoItemVideoAccessActionsComponent.d.ts +0 -22
  888. package/dist/projects/library-editor/src/shared/components/video-item/video-item-metadata/base/VideoItemMetadataComponent.d.ts +0 -24
  889. package/dist/projects/library-editor/src/shared/components/video-item/video-item-metadata/index.d.ts +0 -9
  890. package/dist/projects/library-editor/src/shared/components/video-item/video-item-metadata/video-item-awaiting-review-metadata/VideoItemAwaitingReviewMetadataComponent.d.ts +0 -22
  891. package/dist/projects/library-editor/src/shared/components/video-item/video-item-metadata/video-item-badges/VideoItemBadgesComponent.d.ts +0 -20
  892. package/dist/projects/library-editor/src/shared/components/video-item/video-item-metadata/video-item-past-releases-metadata/VideoItemPastReleasesMetadataComponent.d.ts +0 -25
  893. package/dist/projects/library-editor/src/shared/components/video-item/video-item-metadata/video-item-processing-metadata/VideoItemProcessingMetadataComponent.d.ts +0 -19
  894. package/dist/projects/library-editor/src/shared/components/video-item/video-item-metadata/video-item-search-metadata/VideoItemSearchMetadataComponent.d.ts +0 -22
  895. package/dist/projects/library-editor/src/shared/components/video-item/video-item-metadata/video-item-series/VideoItemSeriesComponent.d.ts +0 -22
  896. package/dist/projects/library-editor/src/shared/components/video-item/video-item-metadata/video-item-video-access-metadata/VideoItemVideoAccessMetadataComponent.d.ts +0 -27
  897. package/dist/projects/library-editor/src/shared/components/video-item/video-item-metadata/video-sources-metadata/VideoSourcesMetadataComponent.d.ts +0 -22
  898. package/dist/projects/library-editor/src/shared/components/video-item-preview/VideoItemPreviewComponent.d.ts +0 -37
  899. package/dist/projects/library-editor/src/shared/components/video-list/VideoListComponent.d.ts +0 -44
  900. package/dist/projects/library-editor/src/shared/components/video-preview/VideoPreviewComponent.d.ts +0 -30
  901. package/dist/projects/library-editor/src/shared/components/web-player/WebPlayerComponent.d.ts +0 -53
  902. package/dist/projects/library-editor/src/shared/constants/Actions.d.ts +0 -99
  903. package/dist/projects/library-editor/src/shared/constants/BootstrapKeys.d.ts +0 -9
  904. package/dist/projects/library-editor/src/shared/constants/CacheDurations.d.ts +0 -4
  905. package/dist/projects/library-editor/src/shared/constants/DataPrefixes.d.ts +0 -91
  906. package/dist/projects/library-editor/src/shared/constants/DataServiceErrors.d.ts +0 -4
  907. package/dist/projects/library-editor/src/shared/constants/EventNames.d.ts +0 -16
  908. package/dist/projects/library-editor/src/shared/constants/FolderTreeIds.d.ts +0 -4
  909. package/dist/projects/library-editor/src/shared/constants/FormattedCustomerSettingNames.d.ts +0 -3
  910. package/dist/projects/library-editor/src/shared/constants/ImageSizes.d.ts +0 -11
  911. package/dist/projects/library-editor/src/shared/constants/ImageUrls.d.ts +0 -19
  912. package/dist/projects/library-editor/src/shared/constants/LayoutRegions.d.ts +0 -16
  913. package/dist/projects/library-editor/src/shared/constants/Layouts.d.ts +0 -3
  914. package/dist/projects/library-editor/src/shared/constants/LazyLoadBrowserSupport.d.ts +0 -7
  915. package/dist/projects/library-editor/src/shared/constants/MarketingSiteArticles.d.ts +0 -3
  916. package/dist/projects/library-editor/src/shared/constants/Misc.d.ts +0 -5
  917. package/dist/projects/library-editor/src/shared/constants/OnlineUrls.d.ts +0 -4
  918. package/dist/projects/library-editor/src/shared/constants/PartialLoadingComponents.d.ts +0 -10
  919. package/dist/projects/library-editor/src/shared/constants/RadioChannels.d.ts +0 -62
  920. package/dist/projects/library-editor/src/shared/constants/Search.d.ts +0 -24
  921. package/dist/projects/library-editor/src/shared/constants/Services.d.ts +0 -62
  922. package/dist/projects/library-editor/src/shared/constants/SupportArticles.d.ts +0 -3
  923. package/dist/projects/library-editor/src/shared/constants/Webplayer.d.ts +0 -4
  924. package/dist/projects/library-editor/src/shared/constants/WithStatements.d.ts +0 -9
  925. package/dist/projects/library-editor/src/shared/constants/empty-state-components/EmptyStateComponents.d.ts +0 -6
  926. package/dist/projects/library-editor/src/shared/constants/index.d.ts +0 -25
  927. package/dist/projects/library-editor/src/shared/enums/CitationType.d.ts +0 -6
  928. package/dist/projects/library-editor/src/shared/enums/CustomerRegions.d.ts +0 -5
  929. package/dist/projects/library-editor/src/shared/enums/EmptyStates.d.ts +0 -16
  930. package/dist/projects/library-editor/src/shared/enums/FileIdType.d.ts +0 -5
  931. package/dist/projects/library-editor/src/shared/enums/ImageType.d.ts +0 -5
  932. package/dist/projects/library-editor/src/shared/enums/MasterType.d.ts +0 -4
  933. package/dist/projects/library-editor/src/shared/enums/PartialLoading.d.ts +0 -38
  934. package/dist/projects/library-editor/src/shared/enums/RestrictedObjectType.d.ts +0 -4
  935. package/dist/projects/library-editor/src/shared/enums/SchoolTypes.d.ts +0 -17
  936. package/dist/projects/library-editor/src/shared/enums/SharedResourcePrivacy.d.ts +0 -5
  937. package/dist/projects/library-editor/src/shared/enums/SortTypes.d.ts +0 -10
  938. package/dist/projects/library-editor/src/shared/enums/StaffRequestOption.d.ts +0 -9
  939. package/dist/projects/library-editor/src/shared/enums/TimeType.d.ts +0 -4
  940. package/dist/projects/library-editor/src/shared/enums/UserRole.d.ts +0 -10
  941. package/dist/projects/library-editor/src/shared/enums/YearGroups.d.ts +0 -19
  942. package/dist/projects/library-editor/src/shared/enums/index.d.ts +0 -15
  943. package/dist/projects/library-editor/src/shared/errors/authentication/AuthenticationError.d.ts +0 -8
  944. package/dist/projects/library-editor/src/shared/errors/customer-setting/CustomerSettingError.d.ts +0 -8
  945. package/dist/projects/library-editor/src/shared/errors/email-not-verified/EmailNotVerifiedError.d.ts +0 -8
  946. package/dist/projects/library-editor/src/shared/errors/forbidden-access/ForbiddenAccessError.d.ts +0 -11
  947. package/dist/projects/library-editor/src/shared/errors/index.d.ts +0 -8
  948. package/dist/projects/library-editor/src/shared/errors/local-cache-device-not-found/LocalCacheDeviceNotFoundError.d.ts +0 -7
  949. package/dist/projects/library-editor/src/shared/errors/no-beta-access/NoBetaAccessError.d.ts +0 -8
  950. package/dist/projects/library-editor/src/shared/errors/not-found/NotFoundError.d.ts +0 -5
  951. package/dist/projects/library-editor/src/shared/errors/old-version/OldVersionError.d.ts +0 -8
  952. package/dist/projects/library-editor/src/shared/filters/BetaAccessFilter.d.ts +0 -3
  953. package/dist/projects/library-editor/src/shared/filters/CustomerSettingsFilter.d.ts +0 -8
  954. package/dist/projects/library-editor/src/shared/filters/RoleFilter.d.ts +0 -4
  955. package/dist/projects/library-editor/src/shared/filters/VerifiedEmailFilter.d.ts +0 -3
  956. package/dist/projects/library-editor/src/shared/filters/index.d.ts +0 -4
  957. package/dist/projects/library-editor/src/shared/index.d.ts +0 -9
  958. package/dist/projects/library-editor/src/shared/interfaces/LibraryFoldersIdentifier.d.ts +0 -5
  959. package/dist/projects/library-editor/src/shared/interfaces/RecentVideoCollectionIdentifier.d.ts +0 -20
  960. package/dist/projects/library-editor/src/shared/interfaces/RecentVideoSubjectCollectionIdentifier.d.ts +0 -16
  961. package/dist/projects/library-editor/src/shared/interfaces/VideoCollectionIdentifier.d.ts +0 -5
  962. package/dist/projects/library-editor/src/shared/interfaces/index.d.ts +0 -4
  963. package/dist/projects/library-editor/src/shared/layouts/index.d.ts +0 -1
  964. package/dist/projects/library-editor/src/shared/layouts/manage-layout/ManageLayoutView.d.ts +0 -49
  965. package/dist/projects/library-editor/src/shared/models/Avatar.d.ts +0 -3
  966. package/dist/projects/library-editor/src/shared/models/Banner.d.ts +0 -3
  967. package/dist/projects/library-editor/src/shared/models/Channel.d.ts +0 -3
  968. package/dist/projects/library-editor/src/shared/models/Chapter.d.ts +0 -3
  969. package/dist/projects/library-editor/src/shared/models/Company.d.ts +0 -3
  970. package/dist/projects/library-editor/src/shared/models/Config.d.ts +0 -3
  971. package/dist/projects/library-editor/src/shared/models/Customer.d.ts +0 -3
  972. package/dist/projects/library-editor/src/shared/models/Director.d.ts +0 -3
  973. package/dist/projects/library-editor/src/shared/models/DisabledSpinnerModel.d.ts +0 -5
  974. package/dist/projects/library-editor/src/shared/models/Distributor.d.ts +0 -3
  975. package/dist/projects/library-editor/src/shared/models/Folder.d.ts +0 -14
  976. package/dist/projects/library-editor/src/shared/models/Image.d.ts +0 -3
  977. package/dist/projects/library-editor/src/shared/models/Interactives.d.ts +0 -3
  978. package/dist/projects/library-editor/src/shared/models/LanguageConfig.d.ts +0 -7
  979. package/dist/projects/library-editor/src/shared/models/Library.d.ts +0 -10
  980. package/dist/projects/library-editor/src/shared/models/Link.d.ts +0 -3
  981. package/dist/projects/library-editor/src/shared/models/LocalCacheDevice.d.ts +0 -3
  982. package/dist/projects/library-editor/src/shared/models/LocalCacheDownload.d.ts +0 -3
  983. package/dist/projects/library-editor/src/shared/models/Logo.d.ts +0 -3
  984. package/dist/projects/library-editor/src/shared/models/Metadata.d.ts +0 -3
  985. package/dist/projects/library-editor/src/shared/models/Owner.d.ts +0 -3
  986. package/dist/projects/library-editor/src/shared/models/Person.d.ts +0 -3
  987. package/dist/projects/library-editor/src/shared/models/Phrases.d.ts +0 -3
  988. package/dist/projects/library-editor/src/shared/models/Playlist.d.ts +0 -3
  989. package/dist/projects/library-editor/src/shared/models/Producer.d.ts +0 -3
  990. package/dist/projects/library-editor/src/shared/models/ProductionCompany.d.ts +0 -3
  991. package/dist/projects/library-editor/src/shared/models/Rating.d.ts +0 -3
  992. package/dist/projects/library-editor/src/shared/models/Resource.d.ts +0 -3
  993. package/dist/projects/library-editor/src/shared/models/RestrictedObject.d.ts +0 -3
  994. package/dist/projects/library-editor/src/shared/models/Restriction.d.ts +0 -3
  995. package/dist/projects/library-editor/src/shared/models/Season.d.ts +0 -3
  996. package/dist/projects/library-editor/src/shared/models/Series.d.ts +0 -7
  997. package/dist/projects/library-editor/src/shared/models/Setting.d.ts +0 -3
  998. package/dist/projects/library-editor/src/shared/models/SharedResource.d.ts +0 -3
  999. package/dist/projects/library-editor/src/shared/models/Subtitle.d.ts +0 -3
  1000. package/dist/projects/library-editor/src/shared/models/Tag.d.ts +0 -3
  1001. package/dist/projects/library-editor/src/shared/models/Thumbnail.d.ts +0 -3
  1002. package/dist/projects/library-editor/src/shared/models/User.d.ts +0 -10
  1003. package/dist/projects/library-editor/src/shared/models/Video.d.ts +0 -49
  1004. package/dist/projects/library-editor/src/shared/services/AlertService.d.ts +0 -15
  1005. package/dist/projects/library-editor/src/shared/services/ConfigDataService.d.ts +0 -23
  1006. package/dist/projects/library-editor/src/shared/services/CustomerDataService.d.ts +0 -7
  1007. package/dist/projects/library-editor/src/shared/services/DownloadProxyDataServices.d.ts +0 -8
  1008. package/dist/projects/library-editor/src/shared/services/IntercomService.d.ts +0 -6
  1009. package/dist/projects/library-editor/src/shared/services/LocalCacheDataService.d.ts +0 -12
  1010. package/dist/projects/library-editor/src/shared/services/NavigationLockService.d.ts +0 -16
  1011. package/dist/projects/library-editor/src/shared/services/PageTitleService.d.ts +0 -8
  1012. package/dist/projects/library-editor/src/shared/services/PageVisibilityService.d.ts +0 -14
  1013. package/dist/projects/library-editor/src/shared/services/PartialLoadingService.d.ts +0 -10
  1014. package/dist/projects/library-editor/src/shared/services/RestrictedVideoDataService.d.ts +0 -15
  1015. package/dist/projects/library-editor/src/shared/services/SettingsDataService.d.ts +0 -16
  1016. package/dist/projects/library-editor/src/shared/services/UserDataService.d.ts +0 -20
  1017. package/dist/projects/library-editor/src/shared/services/VideoMixinService.d.ts +0 -18
  1018. package/dist/projects/library-editor/src/shared/utils/BulkCheckboxHelper.d.ts +0 -18
  1019. package/dist/projects/library-editor/src/shared/utils/CancelProcessingHelper.d.ts +0 -4
  1020. package/dist/projects/library-editor/src/shared/utils/CollectionHelper.d.ts +0 -10
  1021. package/dist/projects/library-editor/src/shared/utils/DialogHelper.d.ts +0 -9
  1022. package/dist/projects/library-editor/src/shared/utils/DurationHelper.d.ts +0 -7
  1023. package/dist/projects/library-editor/src/shared/utils/FolderTreeHelpers.d.ts +0 -36
  1024. package/dist/projects/library-editor/src/shared/utils/ImageHelper.d.ts +0 -32
  1025. package/dist/projects/library-editor/src/shared/utils/LazyLoadHelper.d.ts +0 -4
  1026. package/dist/projects/library-editor/src/shared/utils/LocalCacheHelper.d.ts +0 -7
  1027. package/dist/projects/library-editor/src/shared/utils/PartialLoadingHelper.d.ts +0 -6
  1028. package/dist/projects/library-editor/src/shared/utils/PermissionsHelper.d.ts +0 -13
  1029. package/dist/projects/library-editor/src/shared/utils/RadioChannelHelper.d.ts +0 -11
  1030. package/dist/projects/library-editor/src/shared/utils/RatingHelper.d.ts +0 -5
  1031. package/dist/projects/library-editor/src/shared/utils/RestrictedAccessHelper.d.ts +0 -13
  1032. package/dist/projects/library-editor/src/shared/utils/SettingsHelper.d.ts +0 -9
  1033. package/dist/projects/library-editor/src/shared/utils/SortHelper.d.ts +0 -16
  1034. package/dist/projects/library-editor/src/shared/utils/SpinnerHelper.d.ts +0 -19
  1035. package/dist/projects/library-editor/src/shared/utils/SubtitleLanguageValidation.d.ts +0 -6
  1036. package/dist/projects/library-editor/src/shared/utils/TabHelper.d.ts +0 -9
  1037. package/dist/projects/library-editor/src/shared/utils/TextHelper.d.ts +0 -9
  1038. package/dist/projects/library-editor/src/shared/utils/TimeHelper.d.ts +0 -20
  1039. package/dist/projects/library-editor/src/shared/utils/VideoHelper.d.ts +0 -11
  1040. package/dist/projects/library-editor/src/shared/utils/index.d.ts +0 -23
  1041. package/dist/projects/library-editor/src/shared/utils/search/RawSearchHelper.d.ts +0 -25
  1042. package/dist/projects/library-editor/src/shared/utils/search/index.d.ts +0 -1
  1043. package/dist/projects/library-editor/src/shared/utils/search/raw-search-components/add-new/AddNewSuggestion.d.ts +0 -12
  1044. package/dist/projects/library-editor/src/shared/utils/search/raw-search-components/index.d.ts +0 -1
  1045. package/dist/projects/library-editor/src/shared/utils/search/raw-search-templates/index.d.ts +0 -5
  1046. package/dist/projects/library-editor/src/shared/views/download-to-local-cache/DownloadToLocalCacheView.d.ts +0 -28
  1047. package/dist/projects/library-editor/src/shared/views/download-video/DownloadVideoView.d.ts +0 -18
  1048. package/dist/projects/library-editor/src/shared/views/restrict-access/RestrictAccessComponent.d.ts +0 -7
  1049. package/dist/projects/library-editor/src/shared/views/restrict-access/RestrictAccessGroupComponent.d.ts +0 -24
  1050. package/dist/projects/library-editor/src/shared/views/restrict-access/RestrictAccessView.d.ts +0 -67
  1051. package/dist/projects/library-editor/src/shared/views/share/ShareView.d.ts +0 -48
  1052. package/dist/projects/library-editor/src/shared/views/top-navigation/TopNavigationView.d.ts +0 -35
  1053. package/dist/projects/library-editor/src/shared/views/user-options/UserOptionsView.d.ts +0 -18
  1054. package/dist/projects/library-editor/src/startup/ConsoleOutput.d.ts +0 -3
  1055. package/dist/projects/library-editor/src/startup/RegisterAjaxMiddleware.d.ts +0 -3
  1056. package/dist/projects/library-editor/src/startup/RegisterAnalytics.d.ts +0 -3
  1057. package/dist/projects/library-editor/src/startup/RegisterApplicationVariables.d.ts +0 -3
  1058. package/dist/projects/library-editor/src/startup/RegisterApplications.d.ts +0 -3
  1059. package/dist/projects/library-editor/src/startup/RegisterCaches.d.ts +0 -3
  1060. package/dist/projects/library-editor/src/startup/RegisterDataProviders.d.ts +0 -3
  1061. package/dist/projects/library-editor/src/startup/RegisterDataServices.d.ts +0 -3
  1062. package/dist/projects/library-editor/src/startup/RegisterErrorHandlers.d.ts +0 -3
  1063. package/dist/projects/library-editor/src/startup/RegisterHandlebarsHelpers.d.ts +0 -3
  1064. package/dist/projects/library-editor/src/startup/RegisterLayouts.d.ts +0 -3
  1065. package/dist/projects/library-editor/src/startup/RegisterRuntimeEnvironment.d.ts +0 -3
  1066. package/dist/projects/library-editor/src/startup/RegisterServices.d.ts +0 -3
  1067. package/dist/projects/library-editor/src/startup/RegisterViewDataExtensions.d.ts +0 -15
  1068. package/dist/projects/library-editor/src/startup/index.d.ts +0 -14
  1069. package/dist/projects/library-editor/src/styles/index.d.ts +0 -1
  1070. package/dist/projects/library-editor/typings/libs/LazyLoad.d.ts +0 -26
  1071. package/dist/scripts/0-93a3cbfbb6.chunk.js +0 -1
  1072. package/dist/scripts/1-69d9709724.chunk.js +0 -1
  1073. package/dist/scripts/10-8b01d98b20.chunk.js +0 -1
  1074. package/dist/scripts/12-9b10cdc17d.chunk.js +0 -1
  1075. package/dist/scripts/13-1e10e6e87f.chunk.js +0 -1
  1076. package/dist/scripts/14-ab7a30ee22.chunk.js +0 -1
  1077. package/dist/scripts/15-74a4408ee9.chunk.js +0 -1
  1078. package/dist/scripts/20-9f938a6f3e.chunk.js +0 -1
  1079. package/dist/scripts/21-3a0591790a.chunk.js +0 -1
  1080. package/dist/scripts/22-75ca7c2ae2.chunk.js +0 -1
  1081. package/dist/scripts/23-6cc6df1006.chunk.js +0 -1
  1082. package/dist/scripts/24-857f2e7cba.chunk.js +0 -1
  1083. package/dist/scripts/25-30d6eaa470.chunk.js +0 -1
  1084. package/dist/scripts/26-7e0e9534cf.chunk.js +0 -1
  1085. package/dist/scripts/27-460f20f83b.chunk.js +0 -1
  1086. package/dist/scripts/28-c4655d4bd8.chunk.js +0 -1
  1087. package/dist/scripts/29-3629c8b906.chunk.js +0 -1
  1088. package/dist/scripts/30-9d7a8c6475.chunk.js +0 -1
  1089. package/dist/scripts/31-a80eb231ed.chunk.js +0 -1
  1090. package/dist/scripts/34-d2a7193286.chunk.js +0 -1
  1091. package/dist/scripts/35-1b97d95b2a.chunk.js +0 -1
  1092. package/dist/scripts/36-179634ea36.chunk.js +0 -1
  1093. package/dist/scripts/49-ac59f2a6fd.chunk.js +0 -1
  1094. package/dist/scripts/5-ce9948090c.chunk.js +0 -1
  1095. package/dist/scripts/6-97a29c3fdd.chunk.js +0 -1
  1096. package/dist/scripts/9-0776e647a0.chunk.js +0 -1
  1097. package/dist/scripts/bundle-704119eb6d.min.js +0 -8
  1098. package/dist/scripts/polyfills-44c21c47b6.min.js +0 -1
@@ -0,0 +1 @@
1
+ (window.webpackJsonp_clickview_library_editor=window.webpackJsonp_clickview_library_editor||[]).push([[28],{1213:function(e,t,n){"use strict";var o,i;n.d(t,"b",(function(){return o})),n.d(t,"a",(function(){return i})),function(e){e[e.Base=0]="Base",e[e.AwaitingReview=1]="AwaitingReview",e[e.PastReleases=2]="PastReleases",e[e.VideoAccess=3]="VideoAccess",e[e.ProcessingVideo=4]="ProcessingVideo",e[e.Draggable=5]="Draggable",e[e.Search=6]="Search"}(o||(o={})),function(e){e.Checkbox="checkbox",e.Thumbnail="thumbnail",e.Metadata="metadata",e.VideoActions="videoActions",e.VideoInfo="videoInfo"}(i||(i={}))},1242:function(e,t,n){"use strict";n.d(t,"b",(function(){return i})),n.d(t,"a",(function(){return w}));var o,i,r=n(2),l=n(12),a=n(3),s=n(1310),u=n.n(s),c=n(1311),p=n.n(c);function f(e){return(f="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 h(e,t){for(var n=0;n<t.length;n++){var o=t[n];o.enumerable=o.enumerable||!1,o.configurable=!0,"value"in o&&(o.writable=!0),Object.defineProperty(e,o.key,o)}}function d(e,t){return(d=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,o=m(e);if(t){var i=m(this).constructor;n=Reflect.construct(o,arguments,i)}else n=o.apply(this,arguments);return y(this,n)}}function y(e,t){return!t||"object"!==f(t)&&"function"!=typeof t?function(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}(e):t}function m(e){return(m=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)})(e)}function v(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}!function(e){e.Small="sm",e.Large="lg"}(i||(i={}));var b=(v(o={},i.Small,3),v(o,i.Large,5),o),w=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&&d(e,t)}(s,e);var t,n,o,r=g(s);function s(e){var t;return function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,s),(t=r.call(this,e)).showingMore=!1,t}return t=s,(n=[{key:"events",value:function(){return v({},"click .".concat(p.a.showMoreEllipsis),"onClickShowMore")}},{key:"onClickShowMore",value:function(e){e.preventDefault(),this.showingMore?this.showLessDescription():this.showMoreDescription()}},{key:"getDescription",value:function(){return this.options.linkify?l.v.linkifyText(l.v.escapeExpression(this.model.get("description"))):this.options.highlighter?l.v.wordsHighlighter(l.v.escapeExpression(this.model.get("description")),this.model.get("_matchedWords")):void 0}},{key:"getDescriptionElements",value:function(){return{descriptionTextEl:this.getUI("description"),ellipsisEl:this.getUI("ellipsis")}}},{key:"showMoreDescription",value:function(){var e=this.getDescriptionElements(),t=e.descriptionTextEl,n=e.ellipsisEl;t.removeClass(p.a.truncateLarge).addClass(p.a.open),n.text(a.a.getPhrase(this.lang,"showLess")),this.showingMore=!0}},{key:"showLessDescription",value:function(){var e,t=this.getDescriptionElements(),n=t.descriptionTextEl,o=t.ellipsisEl;this.options.size===i.Small&&(e="truncateSmall"),this.options.size===i.Large&&(e="truncateLarge"),n.addClass(p.a[e]),o.text(this.options.allowExpand?"... ".concat(a.a.getPhrase(this.lang,"showMore")):"...").removeClass(p.a.hideEllipsis).addClass(p.a.showEllipsis),this.showingMore=!1}},{key:"truncateDescription",value:function(){if(this.options.truncate){var e=this.getDescriptionElements().descriptionTextEl,t=b[this.options.size];e.height()<=21*t||this.showLessDescription()}}},{key:"viewOptions",value:function(){return{styles:p.a,truncate:this.options.truncate,expandable:this.options.allowExpand,description:this.getDescription()}}},{key:"onAttach",value:function(){this.truncateDescription()}},{key:"name",get:function(){return"VideoDescriptionComponent"}},{key:"template",get:function(){return u.a}},{key:"lang",get:function(){return"shared.videoDescription"}},{key:"defaults",get:function(){return{size:"sm"}}},{key:"elements",get:function(){return{description:".description",ellipsis:this.options.allowExpand?".".concat(p.a.showMoreEllipsis):".".concat(p.a.singleEllipsis)}}}])&&h(t.prototype,n),o&&h(t,o),s}(r.a.Component)},1259:function(e,t,n){"use strict";n.d(t,"a",(function(){return C}));var o=n(1),i=n(6),r=n(2),l=n(4),a=n(42),s=n(194),u=n(192),c=n(293),p=n(12),f=n(0),h=n(1366),d=n(1312),g=n.n(d);function y(e){return(y="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}function m(e,t){for(var n=0;n<t.length;n++){var o=t[n];o.enumerable=o.enumerable||!1,o.configurable=!0,"value"in o&&(o.writable=!0),Object.defineProperty(e,o.key,o)}}function v(e,t){return(v=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e})(e,t)}function b(e){var t=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Date.prototype.toString.call(Reflect.construct(Date,[],(function(){}))),!0}catch(e){return!1}}();return function(){var n,o=k(e);if(t){var i=k(this).constructor;n=Reflect.construct(o,arguments,i)}else n=o.apply(this,arguments);return w(this,n)}}function w(e,t){return!t||"object"!==y(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 k(e){return(k=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)})(e)}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&&v(e,t)}(y,e);var t,n,r,d=b(y);function y(e){return function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,y),d.call(this,e)}return t=y,(n=[{key:"initialize",value:function(){this.bindListeners()}},{key:"regions",value:function(){return{player:{el:".video-player-region",replaceElement:!1},thumbnail:{el:".thumbnail-region",replaceElement:!0}}}},{key:"events",value:function(){return{click:"onClick"}}},{key:"bindListeners",value:function(){this.options.channelName&&this.listenTo(this.options.channelName,"update:chapter:time",this.onUpdateWebplayer)}},{key:"onUpdateWebplayer",value:function(e){if(!this.player)return this.listenToOnce(this.options.channelName,"webplayer:loaded",o.bind(this.seekToChapter,this,e)),void this.renderVideoPreview();this.seekToChapter(e)}},{key:"seekToChapter",value:function(e){this.player.seekTo(e)}},{key:"onClick",value:function(){this.player||this.renderVideoPreview()}},{key:"renderThumbnail",value:function(){this.showChildView("thumbnail",new u.a({model:this.model,thumbnailOptions:{size:s.a.Medium},playIcon:!0,lazyload:!0,channelName:this.instanceChannelName}))}},{key:"renderVideoPreview",value:function(){this.player=new h.a({model:this.model,webPlayerUrl:this.options.webPlayerUrl,parentChannelName:this.options.channelName,autoplay:!0,analyticsOptions:a.a.mergeOptions(this.options.analyticsOptions,{entity:l.EntityType.Video}),captureAnalytics:this.options.captureAnalytics}),this.showChildView("player",this.player)}},{key:"onRender",value:function(){this.renderThumbnail()}},{key:"name",get:function(){return"VideoPreviewComponent"}},{key:"template",get:function(){return g.a}},{key:"instanceChannelName",get:function(){return p.k.generateUniqueChannelName(this)}},{key:"defaults",get:function(){return{captureAnalytics:!0}}},{key:"behaviors",get:function(){var e=this;return[{behaviorClass:c.c,selector:".lazy-img",callback:function(){i.Radio.channel(e.instanceChannelName).trigger("show:play:icon")},minBrowserSupportVersion:f.p}]}}])&&m(t.prototype,n),r&&m(t,r),y}(r.a.Component)},1310:function(e,t,n){var o=n(10);e.exports=(o.default||o).template({1:function(e,t,n,o,i){e.propertyIsEnumerable;var r,l=e.lambda,a=e.escapeExpression;return' <div class="'+a(l(null!=(r=null!=(r=null!=t?t.options:t)?r.styles:r)?r.descriptionWrapper:r,t))+'">\r\n <p class="description '+a(l(null!=(r=null!=(r=null!=t?t.options:t)?r.styles:r)?r.description:r,t))+'">'+(null!=(r=n.if.call(null!=t?t:e.nullContext||{},null!=(r=null!=t?t.options:t)?r.expandable:r,{name:"if",hash:{},fn:e.program(2,i,0),inverse:e.program(4,i,0),data:i}))?r:"")+"</p>\r\n </div>\r\n"},2:function(e,t,n,o,i){e.propertyIsEnumerable;var r,l=e.lambda,a=e.escapeExpression;return(null!=(r=l(null!=(r=null!=t?t.options:t)?r.description:r,t))?r:"")+'<span class="'+a(l(null!=(r=null!=(r=null!=t?t.options:t)?r.styles:r)?r.showMoreEllipsis:r,t))+" "+a(l(null!=(r=null!=(r=null!=t?t.options:t)?r.styles:r)?r.hideEllipsis:r,t))+'">... '+a((n.lang||t&&t.lang||e.hooks.helperMissing).call(null!=t?t:e.nullContext||{},"showMore",{name:"lang",hash:{},data:i}))+"</span>"},4:function(e,t,n,o,i){e.propertyIsEnumerable;var r,l=e.lambda,a=e.escapeExpression;return(null!=(r=l(null!=(r=null!=t?t.options:t)?r.description:r,t))?r:"")+'<span class="'+a(l(null!=(r=null!=(r=null!=t?t.options:t)?r.styles:r)?r.singleEllipsis:r,t))+" "+a(l(null!=(r=null!=(r=null!=t?t.options:t)?r.styles:r)?r.hideEllipsis:r,t))+'">...</span>'},6:function(e,t,n,o,i){e.propertyIsEnumerable;var r,l=e.lambda;return' <p class="'+e.escapeExpression(l(null!=(r=null!=(r=null!=t?t.options:t)?r.styles:r)?r.description:r,t))+'">'+(null!=(r=l(null!=(r=null!=t?t.options:t)?r.description:r,t))?r:"")+"</p>\r\n"},compiler:[8,">= 4.3.0"],main:function(e,t,n,o,i){var r;e.propertyIsEnumerable;return null!=(r=n.if.call(null!=t?t:e.nullContext||{},null!=(r=null!=t?t.options:t)?r.truncate:r,{name:"if",hash:{},fn:e.program(1,i,0),inverse:e.program(6,i,0),data:i}))?r:""},useData:!0})},1311:function(e,t,n){e.exports={columnNames:"_1a1Re",descriptionWrapper:"_2MZC5",description:"_3U9j9",ellipsis:"_1YjUg",singleEllipsis:"_3SNtn",showMoreEllipsis:"xy3i9",showEllipsis:"_1_L9t",hideEllipsis:"TCdgP",open:"_18ojI",truncateSmall:"nLuVF",truncateLarge:"sEELY"}},1312:function(e,t,n){var o=n(10);e.exports=(o.default||o).template({compiler:[8,">= 4.3.0"],main:function(e,t,n,o,i){return'<div class="video-player-region cursor-pointer responsize-img">\r\n <div class="thumbnail-region"></div>\r\n</div>'},useData:!0})},1577:function(e,t,n){var o=n(10);e.exports=(o.default||o).template({compiler:[8,">= 4.3.0"],main:function(e,t,n,o,i){return'<div class="videos-region"></div>'},useData:!0})},1578:function(e,t,n){var o=n(10);e.exports=(o.default||o).template({1:function(e,t,n,o,i){e.propertyIsEnumerable;return'<p class="text-uppercase text-muted">'+e.escapeExpression((n.lang||t&&t.lang||e.hooks.helperMissing).call(null!=t?t:e.nullContext||{},"description",{name:"lang",hash:{},data:i}))+"</p>\r\n"},compiler:[8,">= 4.3.0"],main:function(e,t,n,o,i){var r;e.propertyIsEnumerable;return(null!=(r=n.if.call(null!=t?t:e.nullContext||{},null!=t?t.description:t,{name:"if",hash:{},fn:e.program(1,i,0),inverse:e.noop,data:i}))?r:"")+'<div class="description-region"></div>\r\n<div class="webplayer-region col-5 pl-0"></div>'},useData:!0})},1579:function(e,t,n){var o=n(10);e.exports=(o.default||o).template({1:function(e,t,n,o,i){e.propertyIsEnumerable;return" <span>"+e.escapeExpression((n.lang||t&&t.lang||e.hooks.helperMissing).call(null!=t?t:e.nullContext||{},"series",{name:"lang",hash:{series:null!=t?t.series:t},data:i}))+"</span>\r\n"},3:function(e,t,n,o,i){e.propertyIsEnumerable;var r,l=null!=t?t:e.nullContext||{};return" "+(null!=(r=n.if.call(l,null!=t?t.series:t,{name:"if",hash:{},fn:e.program(4,i,0),inverse:e.noop,data:i}))?r:"")+"\r\n <span>"+e.escapeExpression((n.lang||t&&t.lang||e.hooks.helperMissing).call(l,"folder",{name:"lang",hash:{folder:null!=t?t.category:t},data:i}))+"</span>\r\n"},4:function(e,t,n,o,i){return'<span class="mx-1">|</span>'},6:function(e,t,n,o,i){e.propertyIsEnumerable;var r,l=e.lambda,a=e.escapeExpression;return' <span class="badge p-1 tool-tip '+a(l(null!=(r=null!=(r=null!=t?t.options:t)?r.styles:r)?r.rating:r,t))+" "+a(l(null!=(r=null!=t?t.options:t)?r.ratingColorClass:r,t))+'" title="'+a(l(null!=(r=null!=t?t.rating:t)?r.name:r,t))+'">'+a(l(null!=(r=null!=t?t.rating:t)?r.code:r,t))+"</span>\r\n"},8:function(e,t,n,o,i){var r;return null!=(r=n.if.call(null!=t?t:e.nullContext||{},t,{name:"if",hash:{},fn:e.program(9,i,0),inverse:e.noop,data:i}))?r:""},9:function(e,t,n,o,i){return' <div class="text-danger">'+e.escapeExpression(e.lambda(t,t))+"</div>\r\n"},compiler:[8,">= 4.3.0"],main:function(e,t,n,o,i){e.propertyIsEnumerable;var r,l,a=null!=t?t:e.nullContext||{};return'<div>\r\n <a class="h6">'+e.escapeExpression("function"==typeof(l=null!=(l=n.name||(null!=t?t.name:t))?l:e.hooks.helperMissing)?l.call(a,{name:"name",hash:{},data:i}):l)+"</a>\r\n</div>\r\n<div>\r\n"+(null!=(r=n.if.call(a,null!=t?t.series:t,{name:"if",hash:{},fn:e.program(1,i,0),inverse:e.noop,data:i}))?r:"")+(null!=(r=n.if.call(a,null!=t?t.category:t,{name:"if",hash:{},fn:e.program(3,i,0),inverse:e.noop,data:i}))?r:"")+"</div>\r\n"+(null!=(r=n.if.call(a,null!=(r=null!=t?t.rating:t)?r.code:r,{name:"if",hash:{},fn:e.program(6,i,0),inverse:e.noop,data:i}))?r:"")+(null!=(r=n.each.call(a,null!=(r=null!=t?t.options:t)?r.errorStrings:r,{name:"each",hash:{},fn:e.program(8,i,0),inverse:e.noop,data:i}))?r:"")},useData:!0})},1580:function(e,t,n){e.exports={rating:"_3IJcl"}},1581:function(e,t,n){e.exports={svgContainer:"_-0ibU",selectedButton:"_28zhr",showPreview:"_2r4VF"}},1582:function(e,t,n){var o=n(10);e.exports=(o.default||o).template({1:function(e,t,n,o,i){e.propertyIsEnumerable;var r,l=e.lambda,a=e.escapeExpression;return' <button class="btn btn-success use-online-copy '+a(l(null!=(r=null!=(r=null!=t?t.options:t)?r.styles:r)?r.selectedButton:r,t))+'"><span class="'+a(l(null!=(r=null!=(r=null!=t?t.options:t)?r.styles:r)?r.svgContainer:r,t))+'">'+(null!=(r=l(null!=(r=null!=t?t.options:t)?r.checkSvg:r,t))?r:"")+"</span>"+a((n.lang||t&&t.lang||e.hooks.helperMissing).call(null!=t?t:e.nullContext||{},"resolve",{name:"lang",hash:{},data:i}))+"</button>\r\n"},3:function(e,t,n,o,i){e.propertyIsEnumerable;var r=null!=t?t:e.nullContext||{},l=e.hooks.helperMissing,a=e.escapeExpression;return' <button class="btn btn-link dismiss">'+a((n.lang||t&&t.lang||l).call(r,"dismiss",{name:"lang",hash:{},data:i}))+'</button>\r\n <button class="btn btn-outline-secondary use-online-copy">'+a((n.lang||t&&t.lang||l).call(r,"resolve",{name:"lang",hash:{},data:i}))+"</button>\r\n"},5:function(e,t,n,o,i){e.propertyIsEnumerable;return e.escapeExpression((n.lang||t&&t.lang||e.hooks.helperMissing).call(null!=t?t:e.nullContext||{},"hide",{name:"lang",hash:{},data:i}))},7:function(e,t,n,o,i){e.propertyIsEnumerable;return e.escapeExpression((n.lang||t&&t.lang||e.hooks.helperMissing).call(null!=t?t:e.nullContext||{},"show",{name:"lang",hash:{},data:i}))},compiler:[8,">= 4.3.0"],main:function(e,t,n,o,i){e.propertyIsEnumerable;var r,l=null!=t?t:e.nullContext||{},a=e.lambda,s=e.escapeExpression;return"<div>\r\n"+(null!=(r=n.if.call(l,null!=(r=null!=t?t.options:t)?r.selected:r,{name:"if",hash:{},fn:e.program(1,i,0),inverse:e.program(3,i,0),data:i}))?r:"")+'</div>\r\n<div class="mt-4 cursor-pointer video-item-show-preview text-right '+s(a(null!=(r=null!=(r=null!=t?t.options:t)?r.styles:r)?r.showPreview:r,t))+'">\r\n <span class="svg-container d-inline-block">'+(null!=(r=a(null!=(r=null!=t?t.options:t)?r.previewSvg:r,t))?r:"")+"</span>\r\n "+(null!=(r=n.if.call(l,null!=(r=null!=t?t.options:t)?r.previewDisplayed:r,{name:"if",hash:{},fn:e.program(5,i,0),inverse:e.program(7,i,0),data:i}))?r:"")+" "+s((n.lang||t&&t.lang||e.hooks.helperMissing).call(l,"preview",{name:"lang",hash:{},data:i}))+"\r\n</div>"},useData:!0})},1583:function(e,t,n){var o=n(10);e.exports=(o.default||o).template({1:function(e,t,n,o,i){return" cursor-pointer"},3:function(e,t,n,o,i){e.propertyIsEnumerable;var r,l=e.escapeExpression,a=null!=t?t:e.nullContext||{},s=e.hooks.helperMissing;return'<div class="'+l(e.lambda(null!=(r=null!=(r=null!=t?t.options:t)?r.styles:r)?r.doNotAdd:r,t))+' text-center">\r\n <p class="mb-0 mt-3">'+(null!=(r=(n.lang||t&&t.lang||s).call(a,"willNotBeAdded",{name:"lang",hash:{videoName:null!=t?t.name:t},data:i}))?r:"")+'</p>\r\n <p class="m-0">'+l((n.lang||t&&t.lang||s).call(a,"willBeRemoved",{name:"lang",hash:{},data:i}))+'</p>\r\n <button class="btn btn-link undo">'+l((n.lang||t&&t.lang||s).call(a,"undo",{name:"lang",hash:{},data:i}))+"</button>\r\n</div>\r\n"},compiler:[8,">= 4.3.0"],main:function(e,t,n,o,i){e.propertyIsEnumerable;var r,l=e.lambda,a=e.escapeExpression,s=null!=t?t:e.nullContext||{};return'<div class="d-flex justify-content-between align-items-stretch p-3 drag-item '+a(l(null!=(r=null!=(r=null!=t?t.options:t)?r.styles:r)?r.videoItem:r,t))+(null!=(r=n.if.call(s,null!=(r=null!=t?t.options:t)?r.isClickable:r,{name:"if",hash:{},fn:e.program(1,i,0),inverse:e.noop,data:i}))?r:"")+'">\r\n <div class="thumbnail-region d-inline-block '+a(l(null!=(r=null!=(r=null!=t?t.options:t)?r.styles:r)?r.thumbnailContainer:r,t))+'"></div>\r\n <div class="metadata-region d-inline-block px-3 '+a(l(null!=(r=null!=(r=null!=t?t.options:t)?r.styles:r)?r.metaContainer:r,t))+'"></div>\r\n <div class="video-actions-region d-inline-block '+a(l(null!=(r=null!=(r=null!=t?t.options:t)?r.styles:r)?r.actionsContainer:r,t))+'"></div>\r\n</div>\r\n<div class="video-info-region '+a(l(null!=(r=null!=(r=null!=t?t.options:t)?r.styles:r)?r.previewContainer:r,t))+'"></div>\r\n'+(null!=(r=n.if.call(s,null!=(r=null!=t?t.options:t)?r.doNotAdd:r,{name:"if",hash:{},fn:e.program(3,i,0),inverse:e.noop,data:i}))?r:"")},useData:!0})},1584:function(e,t,n){e.exports={component:"_13khy",thumbnailContainer:"_gEcp",metaContainer:"zuMb1",actionsContainer:"_1ppp8",videoItem:"_2Ru6c",doNotAdd:"_8l6WV"}},1585:function(e,t,n){var o=n(10);e.exports=(o.default||o).template({1:function(e,t,n,o,i){var r;e.propertyIsEnumerable;return'<span class="border-right d-inline-block align-middle pr-3">'+e.escapeExpression((n.lang||t&&t.lang||e.hooks.helperMissing).call(null!=t?t:e.nullContext||{},"videosAdded",{name:"lang",hash:{smartCount:null!=(r=null!=t?t.options:t)?r.count:r},data:i}))+"</span>\r\n"},3:function(e,t,n,o,i){return"disabled"},compiler:[8,">= 4.3.0"],main:function(e,t,n,o,i){e.propertyIsEnumerable;var r,l=null!=t?t:e.nullContext||{},a=e.hooks.helperMissing,s=e.escapeExpression;return(null!=(r=n.if.call(l,null!=(r=null!=t?t.options:t)?r.countPhrase:r,{name:"if",hash:{},fn:e.program(1,i,0),inverse:e.noop,data:i}))?r:"")+'<span class="d-inline-block align-middle"><button class="btn btn-link clear-all"'+(null!=(r=n.if.call(l,null!=(r=null!=t?t.options:t)?r.submitDisabled:r,{name:"if",hash:{},fn:e.program(3,i,0),inverse:e.noop,data:i}))?r:"")+">"+s((n.lang||t&&t.lang||a).call(l,"reset",{name:"lang",hash:{},data:i}))+'</button></span>\r\n<button class="btn btn-primary align-middle ml-2 submit" '+(null!=(r=n.if.call(l,null!=(r=null!=t?t.options:t)?r.submitDisabled:r,{name:"if",hash:{},fn:e.program(3,i,0),inverse:e.noop,data:i}))?r:"")+">"+s((n.lang||t&&t.lang||a).call(l,"submit",{name:"lang",hash:{},data:i}))+"</button>"},useData:!0})},1586:function(e,t,n){var o=n(10);e.exports=(o.default||o).template({1:function(e,t,n,o,i){e.propertyIsEnumerable;var r,l,a=e.escapeExpression,s=null!=t?t:e.nullContext||{},u=e.hooks.helperMissing;return'<div class="m-auto text-warning '+a(e.lambda(null!=(r=null!=t?t.styles:t)?r.svgContainer:r,t))+'">'+(null!=(r="function"==typeof(l=null!=(l=n.warningSvg||(null!=t?t.warningSvg:t))?l:u)?l.call(s,{name:"warningSvg",hash:{},data:i}):l)?r:"")+"</div>\r\n<p>\r\n <div>"+(null!=(r="function"==typeof(l=null!=(l=n.onlineCopyCountText||(null!=t?t.onlineCopyCountText:t))?l:u)?l.call(s,{name:"onlineCopyCountText",hash:{},data:i}):l)?r:"")+' will be migrated to your Library Editor ignoring all warnings.</div>\r\n <span class="text-danger">\r\n '+a("function"==typeof(l=null!=(l=n.warningText||(null!=t?t.warningText:t))?l:u)?l.call(s,{name:"warningText",hash:{},data:i}):l)+"\r\n </span>\r\n</p> \r\n"},3:function(e,t,n,o,i){var r,l;e.propertyIsEnumerable;return"<p>"+(null!=(r="function"==typeof(l=null!=(l=n.doNotAddCountText||(null!=t?t.doNotAddCountText:t))?l:e.hooks.helperMissing)?l.call(null!=t?t:e.nullContext||{},{name:"doNotAddCountText",hash:{},data:i}):l)?r:"")+" will be removed from this list and will not be added to your library.</p>\r\n"},compiler:[8,">= 4.3.0"],main:function(e,t,n,o,i){e.propertyIsEnumerable;var r,l=null!=t?t:e.nullContext||{};return(null!=(r=n.if.call(l,null!=t?t.onlineCopyCount:t,{name:"if",hash:{},fn:e.program(1,i,0),inverse:e.noop,data:i}))?r:"")+(null!=(r=n.if.call(l,null!=t?t.doNotAddCount:t,{name:"if",hash:{},fn:e.program(3,i,0),inverse:e.noop,data:i}))?r:"")},useData:!0})},1587:function(e,t,n){var o=n(10);e.exports=(o.default||o).template({1:function(e,t,n,o,i){e.propertyIsEnumerable;var r,l=null!=t?t:e.nullContext||{},a=e.hooks.helperMissing,s=e.escapeExpression;return' <h2 class="h3">'+s((n.lang||t&&t.lang||a).call(l,"couldNotBeMigrated",{name:"lang",hash:{smartCount:null!=(r=null!=t?t.options:t)?r.items:r},data:i}))+'</h2>\r\n <p class="mb-1">'+s((n.lang||t&&t.lang||a).call(l,"ensureValidity",{name:"lang",hash:{},data:i}))+'</p>\r\n <p class="mb-2"><a href="'+s(e.lambda(null!=(r=null!=t?t.options:t)?r.supportArticle:r,t))+'" target="_blank" class="text-info">'+s((n.lang||t&&t.lang||a).call(l,"moreInfo",{name:"lang",hash:{},data:i}))+'</a></p>\r\n <button class="approve-all btn btn-success d-inline-block mr-2" type="button">'+s((n.lang||t&&t.lang||a).call(l,"resolve",{name:"lang",hash:{},data:i}))+'</button>\r\n <button class="do-not-add btn btn-link d-inline-block" type="button">'+s((n.lang||t&&t.lang||a).call(l,"dismiss",{name:"lang",hash:{},data:i}))+"</button>\r\n"},3:function(e,t,n,o,i){return""},compiler:[8,">= 4.3.0"],main:function(e,t,n,o,i){e.propertyIsEnumerable;var r,l=e.lambda,a=e.escapeExpression;return'<div class="tab-region '+a(l(null!=(r=null!=(r=null!=t?t.options:t)?r.styles:r)?r.tabsContainer:r,t))+' border-bottom"></div>\r\n<div class="p-3 border-bottom '+a(l(null!=(r=null!=(r=null!=t?t.options:t)?r.styles:r)?r.headingContainer:r,t))+'">\r\n'+(null!=(r=n.if.call(null!=t?t:e.nullContext||{},null!=(r=null!=t?t.options:t)?r.items:r,{name:"if",hash:{},fn:e.program(1,i,0),inverse:e.program(3,i,0),data:i}))?r:"")+'</div>\r\n<div class="videos-region '+a(l(null!=(r=null!=(r=null!=t?t.options:t)?r.styles:r)?r.videoContainer:r,t))+'"></div>\r\n<div class="footer-region"></div>\r\n'},useData:!0})},1588:function(e,t,n){e.exports={migrationErrorView:"_1Jo6e",videoContainer:"_7tGnj",svgContainer:"csNIF",headingContainer:"_30NNv",tabsContainer:"_10__f"}},1641:function(e,t,n){"use strict";n.r(t);var o=n(1),i=n(2),r=n(5),l=n(30),a=n(3),s=n(15),u=n(296),c=n(4),p=n(42),f=n(190),h=n(0),d=n(9),g=n(12),y=n(293),m=n(1577),v=n(192),b=n(1213),w=n(100),k=n(1578),C=n(1242),S=n(1259);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 x(e,t){for(var n=0;n<t.length;n++){var o=t[n];o.enumerable=o.enumerable||!1,o.configurable=!0,"value"in o&&(o.writable=!0),Object.defineProperty(e,o.key,o)}}function O(e,t){return(O=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e})(e,t)}function M(e){var t=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Date.prototype.toString.call(Reflect.construct(Date,[],(function(){}))),!0}catch(e){return!1}}();return function(){var n,o=P(e);if(t){var i=P(this).constructor;n=Reflect.construct(o,arguments,i)}else n=o.apply(this,arguments);return _(this,n)}}function _(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 P(e){return(P=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)})(e)}var R,D=function(e){!function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),t&&O(e,t)}(r,e);var t,n,o,i=M(r);function r(e){return function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,r),i.call(this,e)}return t=r,(n=[{key:"regions",value:function(){return{description:{el:".description-region",replaceElement:!0},webplayer:{el:".webplayer-region"}}}},{key:"onRender",value:function(){this.showChildView("webplayer",new S.a({webPlayerUrl:this.options.webplayerUrl,model:new w.a({duration:1e3*this.model.get("duration"),thumbnail:{url:"".concat(this.options.imageCdnUrl,"v1/thumbnails/trackingcode/").concat(this.model.get("trackingCode"))},trackingCode:this.model.get("trackingCode")}),captureAnalytics:!1})),this.model.get("description")&&this.showChildView("description",new C.a({model:this.model,linkify:!0,size:C.b.Large,truncate:!0,allowExpand:!0}))}},{key:"name",get:function(){return"ErroredVideoPreviewComponent"}},{key:"className",get:function(){return"p-3 border-top"}},{key:"template",get:function(){return k}},{key:"lang",get:function(){return"migrationWizard.erroredVideoPreview"}}])&&x(t.prototype,n),o&&x(t,o),r}(i.a.Component),V=n(1579),j=n(1580),T=n(47);function N(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}var I="migrationWizard.utils",A=function(){return a.a.getPhrase(I,"videoFileCorrupt")},L=function(){return a.a.getPhrase(I,"videoFileInformationMissing")},U=function(){return a.a.getPhrase(I,"resouceFileMissing")},z=(N(R={},T.f.BinaryRemoved,(function(){return""})),N(R,T.f.LocalFileNotFound,(function(){return a.a.getPhrase(I,"videoFileMissing")})),N(R,T.f.DbEmptyChapter,A),N(R,T.f.DbChapterChecksumNotFound,A),N(R,T.f.DbChapterDurationNotFound,L),N(R,T.f.DbChapterFileSizeNotFound,L),N(R,T.f.DbChapterChecksumNotMatch,L),N(R,T.f.DbChapterDurationNotMatch,L),N(R,T.f.DbChapterFileSizeNotMatch,L),N(R,T.f.SubtitleUploadFailure,(function(){return a.a.getPhrase(I,"subtitleFileMissing")})),N(R,T.f.ResourceUploadFailure,U),N(R,T.f.ResourceFileNotFound,U),N(R,T.f.ResourceFileInvalid,U),N(R,T.f.DbResourceChecksumNotFound,U),N(R,T.f.DbResourceExtensionNotFound,U),N(R,T.f.DbResourceFileSizeNotFound,U),N(R,T.f.DbResourceChecksumNotMatch,U),N(R,T.f.DbResourceFileSizeNotMatch,U),N(R,T.f.CoverImageUploadFailure,(function(){return a.a.getPhrase(I,"thumbnailMissing")})),R),F=function(e){return o.unique(o.map(e,(function(e){return z[e]()})))},W=n(1216);function B(e){return(B="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}function q(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function G(e,t){for(var n=0;n<t.length;n++){var o=t[n];o.enumerable=o.enumerable||!1,o.configurable=!0,"value"in o&&(o.writable=!0),Object.defineProperty(e,o.key,o)}}function H(e,t){return(H=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e})(e,t)}function 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,o=Z(e);if(t){var i=Z(this).constructor;n=Reflect.construct(o,arguments,i)}else n=o.apply(this,arguments);return Y(this,n)}}function Y(e,t){return!t||"object"!==B(t)&&"function"!=typeof t?function(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}(e):t}function Z(e){return(Z=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)})(e)}var K=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)}(r,e);var t,n,o,i=J(r);function r(){return q(this,r),i.apply(this,arguments)}return t=r,(n=[{key:"viewOptions",value:function(){return{styles:j,errorStrings:F(this.model.get("clientValidationResults")),ratingColorClass:this.model.get("rating")&&W.i.mapRatingToClass(this.model.get("rating").value)}}},{key:"name",get:function(){return"ErroredVideoMetadataComponent"}},{key:"template",get:function(){return V}},{key:"lang",get:function(){return"migrationWizard.erroredVideoMetadata"}}])&&G(t.prototype,n),o&&G(t,o),r}(i.a.Component),Q="use-online-copy",X="do-not-add",$="migration:errored:videos:preview",ee="migration:errored:videos:selected",te=n(1581),ne=n(1582);function oe(e){return(oe="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 ie(e,t){for(var n=0;n<t.length;n++){var o=t[n];o.enumerable=o.enumerable||!1,o.configurable=!0,"value"in o&&(o.writable=!0),Object.defineProperty(e,o.key,o)}}function re(e,t){return(re=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,o=se(e);if(t){var i=se(this).constructor;n=Reflect.construct(o,arguments,i)}else n=o.apply(this,arguments);return ae(this,n)}}function ae(e,t){return!t||"object"!==oe(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 se(e){return(se=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)})(e)}var ue=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&&re(e,t)}(r,e);var t,n,o,i=le(r);function r(e){return function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,r),i.call(this,e)}return t=r,(n=[{key:"initialize",value:function(){this.viewModel=l.a.get(ee),this.previewViewModel=l.a.get($),this.listenTo(this.viewModel,"change:".concat(this.model.get("id")),this.render)}},{key:"events",value:function(){return{"click .use-online-copy":"onClickSelect","click .dismiss":"onClickDismiss"}}},{key:"isSelected",value:function(){return this.viewModel.get(this.model.get("id"))===Q}},{key:"onClickSelect",value:function(e){e.stopPropagation(),this.previewViewModel.get(this.model.get("id"))&&this.previewViewModel.clear(),this.isSelected()?this.viewModel.unset(this.model.get("id")):this.viewModel.set(this.model.get("id"),Q)}},{key:"onClickDismiss",value:function(e){e.stopPropagation(),this.previewViewModel.get(this.model.get("id"))&&this.previewViewModel.clear(),this.viewModel.set(this.model.get("id"),X)}},{key:"viewOptions",value:function(){return{styles:te,selected:this.isSelected(),checkSvg:s.a.getSvg(s.b.Check),previewSvg:s.a.getSvg(s.b.Preview)}}},{key:"name",get:function(){return"ErroredVideoActionsComponent"}},{key:"template",get:function(){return ne}},{key:"lang",get:function(){return"migrationWizard.erroredVideoActions"}},{key:"className",get:function(){return"text-right"}}])&&ie(t.prototype,n),o&&ie(t,o),r}(i.a.Component),ce=n(1583),pe=n(1584);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 he(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function de(e,t){for(var n=0;n<t.length;n++){var o=t[n];o.enumerable=o.enumerable||!1,o.configurable=!0,"value"in o&&(o.writable=!0),Object.defineProperty(e,o.key,o)}}function ge(e,t){return(ge=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e})(e,t)}function ye(e){var t=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Date.prototype.toString.call(Reflect.construct(Date,[],(function(){}))),!0}catch(e){return!1}}();return function(){var n,o=ve(e);if(t){var i=ve(this).constructor;n=Reflect.construct(o,arguments,i)}else n=o.apply(this,arguments);return me(this,n)}}function me(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 ve(e){return(ve=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)})(e)}var be=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&&ge(e,t)}(r,e);var t,n,o,i=ye(r);function r(e){return function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,r),i.call(this,e)}return t=r,(n=[{key:"initialize",value:function(){this.viewModel=l.a.get(ee),this.previewViewModel=l.a.get($),this.listenTo(this.viewModel,"change:".concat(this.model.get("id")),this.render),this.listenTo(this.previewViewModel,"change:".concat(this.model.get("id")),this.render),this.listenTo(this.channelName,"thumbnail:load",this.onThumbnailLoad)}},{key:"regions",value:function(){var e;return he(e={},b.a.Thumbnail,".thumbnail-region"),he(e,b.a.Metadata,".metadata-region"),he(e,b.a.VideoActions,".video-actions-region"),he(e,b.a.VideoInfo,".video-info-region"),e}},{key:"events",value:function(){return{"click .drag-item":"onClick","click .undo":"onClickUndo"}}},{key:"onThumbnailLoad",value:function(){this.thumbnailLoaded=!0}},{key:"onClick",value:function(){this.previewViewModel.get(this.model.get("id"))?this.previewViewModel.unset(this.model.get("id")):(this.previewViewModel.clear(),this.previewViewModel.set(this.model.get("id"),!0))}},{key:"onClickUndo",value:function(){this.viewModel.unset(this.model.get("id"))}},{key:"shouldLazyLoadThumbnail",value:function(){return!!g.h.isLazyLoadSupported(h.p)&&!this.thumbnailLoaded}},{key:"renderThumbnail",value:function(){var e=new v.a({model:new w.a({duration:1e3*this.model.get("duration"),thumbnail:{url:"".concat(this.options.imageCdnUrl,"v1/thumbnails/trackingcode/").concat(this.model.get("trackingCode"))}}),lazyload:this.shouldLazyLoadThumbnail(),channelName:this.channelName});this.showChildView(b.a.Thumbnail,e)}},{key:"renderMetadata",value:function(){var e=new K({model:this.model});this.showChildView(b.a.Metadata,e)}},{key:"renderActions",value:function(){var e=new ue({model:this.model});this.showChildView(b.a.VideoActions,e)}},{key:"renderPreview",value:function(){if(this.previewViewModel.get(this.model.get("id"))){var e=new D({model:this.model,webplayerUrl:this.options.webplayerUrl,imageCdnUrl:this.options.imageCdnUrl});this.showChildView(b.a.VideoInfo,e)}}},{key:"viewOptions",value:function(){return{styles:pe,doNotAdd:this.viewModel.get(this.model.get("id"))===X}}},{key:"onRender",value:function(){this.renderThumbnail(),this.renderMetadata(),this.renderActions(),this.renderPreview()}},{key:"name",get:function(){return"ErroredVideoItemComponent"}},{key:"template",get:function(){return ce}},{key:"lang",get:function(){return"migrationWizard.erroredVideoItem"}},{key:"channelName",get:function(){return g.k.generateUniqueChannelName(this)}},{key:"className",get:function(){return"border-bottom ".concat(pe.component)}}])&&de(t.prototype,n),o&&de(t,o),r}(i.a.Component);function we(e){return(we="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 ke(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function Ce(e,t){for(var n=0;n<t.length;n++){var o=t[n];o.enumerable=o.enumerable||!1,o.configurable=!0,"value"in o&&(o.writable=!0),Object.defineProperty(e,o.key,o)}}function Se(e,t,n){return t&&Ce(e.prototype,t),n&&Ce(e,n),e}function Ee(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&&xe(e,t)}function xe(e,t){return(xe=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e})(e,t)}function Oe(e){var t=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Date.prototype.toString.call(Reflect.construct(Date,[],(function(){}))),!0}catch(e){return!1}}();return function(){var n,o=_e(e);if(t){var i=_e(this).constructor;n=Reflect.construct(o,arguments,i)}else n=o.apply(this,arguments);return Me(this,n)}}function Me(e,t){return!t||"object"!==we(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)}var Pe=function(e){Ee(n,e);var t=Oe(n);function n(e){return ke(this,n),t.call(this,e)}return Se(n,[{key:"name",get:function(){return"ErroredVideoItemComponentCollection"}},{key:"childView",get:function(){return be}},{key:"childViewOptions",get:function(){return this.options}}]),n}(i.a.ComponentCollection),Re=function(e){Ee(n,e);var t=Oe(n);function n(e){return ke(this,n),t.call(this,e)}return Se(n,[{key:"regions",value:function(){return{videos:{el:".videos-region",replaceElement:!0}}}},{key:"onRender",value:function(){this.showChildView("videos",new Pe(this.options))}},{key:"name",get:function(){return"ErroredVideoListComponent"}},{key:"template",get:function(){return m}},{key:"behaviors",get:function(){return[{behaviorClass:y.c,selector:".lazy-img",minBrowserSupportVersion:h.p}]}}]),n}(i.a.Component),De=n(1585),Ve=n(6);function je(e){return(je="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 Te(e,t){for(var n=0;n<t.length;n++){var o=t[n];o.enumerable=o.enumerable||!1,o.configurable=!0,"value"in o&&(o.writable=!0),Object.defineProperty(e,o.key,o)}}function Ne(e,t){return(Ne=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e})(e,t)}function Ie(e){var t=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Date.prototype.toString.call(Reflect.construct(Date,[],(function(){}))),!0}catch(e){return!1}}();return function(){var n,o=Le(e);if(t){var i=Le(this).constructor;n=Reflect.construct(o,arguments,i)}else n=o.apply(this,arguments);return Ae(this,n)}}function Ae(e,t){return!t||"object"!==je(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 Le(e){return(Le=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)})(e)}var Ue=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&&Ne(e,t)}(a,e);var t,n,i,r=Ie(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(){this.viewModel=l.a.get(ee),this.listenTo(this.viewModel,"change",this.render)}},{key:"events",value:function(){return{"click .clear-all":"onClickClearAll","click .submit":"onClickSubmit"}}},{key:"onClickClearAll",value:function(){this.viewModel.clear()}},{key:"onClickSubmit",value:function(){Ve.Radio.channel(this.options.channelName).trigger(this.options.submitEvent)}},{key:"canSubmit",value:function(){return this.viewModel.keys().length>0}},{key:"countWillBeAdded",value:function(){var e=this;return o.filter(this.viewModel.keys(),(function(t){return e.viewModel.get(t)===Q})).length}},{key:"viewOptions",value:function(){return{count:this.countWillBeAdded(),submitDisabled:!this.canSubmit()}}},{key:"name",get:function(){return"ErroredVideoFooterComponent"}},{key:"template",get:function(){return De}},{key:"lang",get:function(){return"migrationWizard.erroredVideoFooter"}},{key:"className",get:function(){return"border-top px-3 py-2 text-right"}}])&&Te(t.prototype,n),i&&Te(t,i),a}(i.a.Component),ze=n(1303),Fe=n(1296),We=n(1586),Be=n(1587),qe=n(1588);function Ge(e){return(Ge="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}function He(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function Je(e,t){for(var n=0;n<t.length;n++){var o=t[n];o.enumerable=o.enumerable||!1,o.configurable=!0,"value"in o&&(o.writable=!0),Object.defineProperty(e,o.key,o)}}function Ye(e,t){return(Ye=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e})(e,t)}function Ze(e){var t=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Date.prototype.toString.call(Reflect.construct(Date,[],(function(){}))),!0}catch(e){return!1}}();return function(){var n,o=Qe(e);if(t){var i=Qe(this).constructor;n=Reflect.construct(o,arguments,i)}else n=o.apply(this,arguments);return Ke(this,n)}}function Ke(e,t){return!t||"object"!==Ge(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 Qe(e){return(Qe=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)})(e)}n.d(t,"MigrationErrorView",(function(){return Xe}));var Xe=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&&Ye(e,t)}(v,e);var t,n,y,m=Ze(v);function v(){return He(this,v),m.apply(this,arguments)}return t=v,(n=[{key:"initialize",value:function(){this.migrationVideoDataService=r.a.getInstance(h.g.MigrationVideo,this),this.navLockService=r.a.getInstance(h.x.NavLock,this),this.viewModel=l.a.get(ee),this.previewViewModel=l.a.get($),this.listenTo(h.e.MIGRATION,"manual:review:videos:sync",this.render),this.listenTo(this.channelName,"submit",this.onSubmit),this.listenTo(this.viewModel,"change",this.onChangeSelected),this.page=1}},{key:"regions",value:function(){return{tabs:{el:".tab-region",replaceElement:!0},videos:{el:".videos-region",partialLoading:d.h.VideoList},footer:{el:".footer-region",replaceElement:!0}}}},{key:"events",value:function(){return{"click .approve-all":"onClickApproveAll","click .do-not-add":"onClickDoNotAdd"}}},{key:"onClickApproveAll",value:function(){var e={};this.collection.each((function(t){e[t.get("id")]=Q})),this.viewModel.set(e)}},{key:"onClickDoNotAdd",value:function(){this.previewViewModel.clear();var e={};this.collection.each((function(t){e[t.get("id")]=X})),this.viewModel.set(e)}},{key:"onChangeSelected",value:function(){this.viewModel.keys().length?this.navLockService.lock({title:a.a.getPhrase(this.lang,"navLockTitle"),text:a.a.getPhrase(this.lang,"navLockBody")}):this.navLockService.unlock()}},{key:"getDialog",value:function(e,t){return new g.d({title:a.a.getPhrase(this.lang,"dialogHeading"),text:We({onlineCopyCount:e,onlineCopyCountText:a.a.getPhrase(this.lang,"videos",{smartCount:e}),warningText:a.a.getPhrase(this.lang,"warningText",{smartCount:e}),doNotAddCount:t,doNotAddCountText:a.a.getPhrase(this.lang,"videos",{smartCount:t}),styles:qe,warningSvg:s.a.getSvg(s.b.Warning)}),buttons:[{text:a.a.getPhrase(this.lang,"submit"),className:"btn btn-primary",success:!0}]})}},{key:"getSelectedVideos",value:function(){var e=this,t=this.collection.filter((function(t){return e.viewModel.get(t.get("id"))===Q})),n=o.groupBy(t,(function(e){return e.get("category")})),r=o.map(o.keys(n),(function(e){return{folderChord:e,videoIds:o.map(n[e],(function(e){return e.get("id")}))}}));return new i.a.Collection(r)}},{key:"onSubmit",value:function(){var e=this,t=[],n=[];o.each(this.viewModel.keys(),(function(o){var i=e.viewModel.get(o);i===X&&t.push(+o),i===Q&&n.push(+o)}));var r=this.getDialog(n.length,t.length),l=!1,a=!1,s=0,u=function(){l&&a&&(n.length?(e.viewModel.clear({silent:!0}),e.navLockService.unlock(),i.a.AppLinkHelper.trigger({application:h.b.MIGRATION_WIZARD,action:h.a.MigrationWizard.PROGRESS,args:[s]})):(e.viewModel.clear(),e.migrationVideoDataService.clearCacheAndGetCustomerMetadata(),e.migrationVideoDataService.getManualReviewVideos(),delete e.collectionSubset))};r.render().done((function(){e.logMigrationActions(n,t),t.length?e.migrationVideoDataService.updateMigrationStatus(t,ze.a.HasNotBeenMigrated,(function(){l=!0,u()})):l=!0,n.length?e.migrationVideoDataService.finaliseCustomerVideos(e.getSelectedVideos(),!0,(function(e){a=!0,s=e.get("id"),u()})):a=!0}))}},{key:"logMigrationActions",value:function(e,t){var n=this;if(e.length){var i=o.map(e,(function(t){return n.processLogData(t,e)}));this.logData(c.UserAction.ResolveWarning,i)}if(t.length){var r=o.map(t,(function(e){return n.processLogData(e,t)}));this.logData(c.UserAction.DismissWarning,r)}}},{key:"logData",value:function(e,t){var n={location:c.LocationContext.MigrationWarnings,entity:c.EntityType.Video},o=t.length===this.collection.length;p.a.logUserAction(t,p.a.mergeOptions(n,{actionType:e,descriptor:o?c.OperationDescriptor.All:c.OperationDescriptor.Single}))}},{key:"processLogData",value:function(e,t){var n=this.collection.get(e).pick("name","trackingCode");return{id:e,name:n.name,trackingCode:n.trackingCode,actionCount:t.length,warningCount:this.collection.length}}},{key:"unBindScroll",value:function(){this.getUI("videos").off("scroll")}},{key:"bindScroll",value:function(){this.scrollBound||(this.getUI("videos").on("scroll",o.bind(this.onScroll,this)),this.scrollBound=!0)}},{key:"onScroll",value:function(){var e=this.getUI("videos"),t=e.children().height()-e.height()/2;e.scrollTop()+e.height()<t||25*this.page>this.collection.length||(this.collectionSubset.add(o.first(this.collection.rest(25*this.page),25)),this.page++)}},{key:"viewOptions",value:function(){var e=this.config?"".concat(this.config.get("supportSiteUrl")).concat(h.y.MANUAL_REVIEW):"";return{styles:qe,supportArticle:e,items:this.collection&&this.collection.length}}},{key:"onBeforeRender",value:function(){return this.collection=this.migrationVideoDataService.getManualReviewVideos(),this.collection&&!this.collectionSubset&&(this.collectionSubset=new i.a.Collection(this.collection.first(25))),!!this.collection}},{key:"onRender",value:function(){this.showChildView("tabs",new Fe.h({selected:"migration-errors"})),this.showChildView("videos",new Re({collection:this.collectionSubset,imageCdnUrl:this.config.get("imageCdnUrl"),webplayerUrl:this.config.get("webPlayerUrl")})),this.showChildView("footer",new Ue({channelName:this.channelName,submitEvent:"submit"})),this.bindScroll()}},{key:"onBeforeDestroy",value:function(){this.unBindScroll()}},{key:"onDestroy",value:function(){l.a.clear($),l.a.clear(ee)}},{key:"name",get:function(){return"MigrationErrorView"}},{key:"title",get:function(){return a.a.getPhrase(this.lang,"title")}},{key:"lang",get:function(){return"migrationWizard.migrationError"}},{key:"channelName",get:function(){return g.k.generateUniqueChannelName(this)}},{key:"elements",get:function(){return{videos:".videos-region"}}},{key:"behaviors",get:function(){return[{behaviorClass:u.a,region:"videos",type:d.c.ManualReviewVideos,emptyStateComponents:h.h}]}},{key:"template",get:function(){return Be}},{key:"className",get:function(){return"bg-white w-100 ".concat(qe.migrationErrorView)}},{key:"requiredResources",get:function(){return{config:f.b.config}}}])&&Je(t.prototype,n),y&&Je(t,y),v}(i.a.View)}}]);
@@ -0,0 +1 @@
1
+ (window.webpackJsonp_clickview_library_editor=window.webpackJsonp_clickview_library_editor||[]).push([[29],{1224:function(e,t,n){"use strict";n.d(t,"a",(function(){return f}));var o=n(1),i=n(2),r=n(298);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 l(e,t){for(var n=0;n<t.length;n++){var o=t[n];o.enumerable=o.enumerable||!1,o.configurable=!0,"value"in o&&(o.writable=!0),Object.defineProperty(e,o.key,o)}}function s(e,t){return(s=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e})(e,t)}function c(e){var t=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Date.prototype.toString.call(Reflect.construct(Date,[],(function(){}))),!0}catch(e){return!1}}();return function(){var n,o=d(e);if(t){var i=d(this).constructor;n=Reflect.construct(o,arguments,i)}else n=o.apply(this,arguments);return u(this,n)}}function u(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 d(e){return(d=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)})(e)}var f=function(e){!function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),t&&s(e,t)}(u,e);var t,n,i,a=c(u);function u(e){return function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,u),a.call(this,e)}return t=u,(n=[{key:"initialize",value:function(){this.listenTo(this.options.channelName,"center:dropdown",this.centerSelectedItem)}},{key:"getExtraClasses",value:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t=e.alignment,n=void 0===t?"left":t,o=e.extraClasses,i="dropdown-menu-".concat(n);return o&&(i="".concat(i," ").concat(o)),i}},{key:"centerSelectedItem",value:function(){var e=this.$el.find(".active");if(e.length){var t=this.$el.scrollTop()+e.position().top,n=.5*this.$el.height()+.5*e.height();this.$el.scrollTop(t-n)}}},{key:"name",get:function(){return"DropdownCollectionComponent"}},{key:"className",get:function(){return"dropdown-menu items-viewpart ".concat(this.getExtraClasses(this.options.displayOptions))}},{key:"attributes",get:function(){return{"aria-labelledby":"dropdownSelector"}}},{key:"childView",get:function(){return r.a}},{key:"childViewOptions",get:function(){var e={channelName:this.options.channelName,analyticsHelper:this.options.analyticsHelper};return o.extend(e,this.options.childOptions)}}])&&l(t.prototype,n),i&&l(t,i),u}(i.a.ComponentCollection)},1229:function(e,t,n){"use strict";n.d(t,"a",(function(){return v}));var o=n(6),i=n(2),r=n(3),a=n(1243),l=n(12),s=n(1230),c=n.n(s),u=n(1231),d=n.n(u);function f(e){return(f="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 h(e,t){for(var n=0;n<t.length;n++){var o=t[n];o.enumerable=o.enumerable||!1,o.configurable=!0,"value"in o&&(o.writable=!0),Object.defineProperty(e,o.key,o)}}function p(e,t){return(p=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e})(e,t)}function y(e){var t=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Date.prototype.toString.call(Reflect.construct(Date,[],(function(){}))),!0}catch(e){return!1}}();return function(){var n,o=m(e);if(t){var i=m(this).constructor;n=Reflect.construct(o,arguments,i)}else n=o.apply(this,arguments);return g(this,n)}}function g(e,t){return!t||"object"!==f(t)&&"function"!=typeof t?function(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}(e):t}function m(e){return(m=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)})(e)}var 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&&p(e,t)}(u,e);var t,n,i,s=y(u);function u(e){return function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,u),s.call(this,e)}return t=u,(n=[{key:"initialize",value:function(){this.listenTo(this.options.channelName,"folder:selected new:folder:selected",this.setButtonText),this.listenTo(this.options.channelName,"re:render:selector",this.renderSelector),this.disabledIds=this.options.disabledIds&&this.options.disabledIds.reduce((function(e,t){return Object.assign(Object.assign({},e),function(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}({},t,!0))}),{})}},{key:"regions",value:function(){return{selector:{el:".selector-region",replaceElement:!1}}}},{key:"events",value:function(){return{"click .create-new":"onClickCreateNew"}}},{key:"onClickCreateNew",value:function(e){e.preventDefault(),o.Radio.channel(this.options.channelName).trigger("create:folder:clicked")}},{key:"setButtonText",value:function(e,t){if(e&&!t){var n=e.get("name");this.getUI("button").text(n)}else{var o=l.f.getSelected(this.options.folderTreeKey,this.collection),i=o?o.get("name"):r.a.getPhrase(this.lang,"button");this.getUI("button").text(i)}}},{key:"renderSelector",value:function(){this.showChildView("selector",new a.a({styles:d.a,collection:this.collection,channelName:this.options.channelName,childrenProperty:"children",folderTreeId:this.options.folderTreeKey,extraClass:d.a.list,extraClasses:d.a.list,isSelector:!0,disabledIds:this.disabledIds||{}}))}},{key:"viewOptions",value:function(){return{styles:d.a,name:this.options.name||this.options.channelName,buttonText:this.buttonText,canCreateNew:this.options.canCreateNew}}},{key:"onRender",value:function(){this.setButtonText(),this.renderSelector()}},{key:"name",get:function(){return"TreeDropdownComponent"}},{key:"template",get:function(){return c.a}},{key:"className",get:function(){return"position-relative"}},{key:"lang",get:function(){return"libraryEditor.treeDropdown"}},{key:"defaults",get:function(){return{disabledIds:[]}}},{key:"elements",get:function(){return{button:".custom-select"}}}])&&h(t.prototype,n),i&&h(t,i),u}(i.a.Component)},1230:function(e,t,n){var o=n(10);e.exports=(o.default||o).template({1:function(e,t,n,o,i){e.propertyIsEnumerable;var r,a=e.escapeExpression;return' <button class="create-new btn font-weight-bold rounded-0 w-100 text-left '+a(e.lambda(null!=(r=null!=(r=null!=t?t.options:t)?r.styles:r)?r.customItem:r,t))+'">'+a((n.lang||t&&t.lang||e.hooks.helperMissing).call(null!=t?t:e.nullContext||{},"createNew",{name:"lang",hash:{},data:i}))+"</button>\r\n"},compiler:[8,">= 4.3.0"],main:function(e,t,n,o,i){e.propertyIsEnumerable;var r,a=e.lambda,l=e.escapeExpression;return'<button\r\n class="'+l(a(null!=(r=null!=(r=null!=t?t.options:t)?r.styles:r)?r.selectBtn:r,t))+' custom-select form-control"\r\n data-toggle="dropdown"\r\n aria-haspopup="true"\r\n aria-expanded="false"\r\n name='+l(a(null!=(r=null!=t?t.options:t)?r.name:r,t))+"\r\n>"+l(a(null!=(r=null!=t?t.options:t)?r.buttonText:r,t))+'</button>\r\n<div class="dropdown-menu '+l(a(null!=(r=null!=(r=null!=t?t.options:t)?r.styles:r)?r.selector:r,t))+'">\r\n <div class="selector-region"></div>\r\n'+(null!=(r=n.if.call(null!=t?t:e.nullContext||{},null!=(r=null!=t?t.options:t)?r.canCreateNew:r,{name:"if",hash:{},fn:e.program(1,i,0),inverse:e.noop,data:i}))?r:"")+'</div>\r\n<div class="form-feedback"></div>'},useData:!0})},1231:function(e,t,n){e.exports={selectBtn:"_2TTgs",list:"_3wN7o",selector:"_3Xf1P",customItem:"_199PI"}},1266:function(e,t,n){"use strict";n.d(t,"a",(function(){return v}));var o=n(1),i=n(6),r=n(2),a=n(1224),l=n(12),s=n(1267),c=n.n(s),u=n(1268),d=n.n(u);function f(e){return(f="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 h(e,t){for(var n=0;n<t.length;n++){var o=t[n];o.enumerable=o.enumerable||!1,o.configurable=!0,"value"in o&&(o.writable=!0),Object.defineProperty(e,o.key,o)}}function p(e,t){return(p=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e})(e,t)}function y(e){var t=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Date.prototype.toString.call(Reflect.construct(Date,[],(function(){}))),!0}catch(e){return!1}}();return function(){var n,o=m(e);if(t){var i=m(this).constructor;n=Reflect.construct(o,arguments,i)}else n=o.apply(this,arguments);return g(this,n)}}function g(e,t){return!t||"object"!==f(t)&&"function"!=typeof t?function(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}(e):t}function m(e){return(m=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)})(e)}var 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&&p(e,t)}(u,e);var t,n,r,s=y(u);function u(e){var t;return function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,u),(t=s.call(this,e)).selectSearch="",t.sameCharIndex=1,t.optionStep=1,t}return t=u,(n=[{key:"initialize",value:function(){this.setModel(),this.bindListeners()}},{key:"regions",value:function(){return{dropdown:{el:".dropdown-region",replaceElement:!0}}}},{key:"events",value:function(){return{keydown:"onKeydown","shown.bs.dropdown":"onShowDropdown"}}},{key:"bindListeners",value:function(){this.listenTo(this.options.channelName,this.options.childOptions.eventName,this.onSelect)}},{key:"onShowDropdown",value:function(){i.Radio.channel(this.options.channelName).trigger("center:dropdown")}},{key:"onKeydown",value:function(e){38===e.keyCode||40===e.keyCode?this.onArrowKeyDown(e):13===e.keyCode?this.render():this.onType(e),i.Radio.channel(this.options.channelName).trigger("center:dropdown")}},{key:"onArrowKeyDown",value:function(e){l.c.getSelected(this.collection)?this.optionStep=1:this.optionStep=0;var t=this.getNextModel(e.keyCode);for(t||(l.c.deselectAll(this.collection),t=this.getNextModel(e.keyCode));this.isDisabled(t);)this.optionStep++,t=this.getNextModel(e.keyCode);this.onSelect(t)}},{key:"onType",value:function(e){if(1===e.key.toString().length){var t=this.getModelMatch(e);t&&this.onSelect(t),this.runTimer()}}},{key:"onSelect",value:function(e){this.isDisabled(e)||(l.c.setSelected(e.get("id"),this.collection),this.setModel(),this.getUI("dropdownToggle").text(this.getButtonText()),i.Radio.channel(this.options.channelName).trigger("select:option:selected",e))}},{key:"setModel",value:function(){this.model=l.c.getSelected(this.collection)}},{key:"getNextModel",value:function(e){var t,n=l.c.getSelected(this.collection)||this.collection.first(),o=this.collection.indexOf(n);return(t=38===e?this.collection.at(o-this.optionStep):this.collection.at(o+this.optionStep))||(l.c.deselectAll(this.collection),t=this.collection.first(),this.optionStep=0),t}},{key:"getModelMatch",value:function(e){var t,n=this;return 1===this.selectSearch.length&&this.selectSearch===e.key?t=this.handleSameCharIndex(e.key):(this.selectSearch+=e.key,this.sameCharIndex=1),t||(t=o.find(this.collection.models,(function(e){return e.get(n.options.displayProperty).toLowerCase().slice(0,n.selectSearch.length).includes(n.selectSearch.toLowerCase())}))),t}},{key:"handleSameCharIndex",value:function(e){var t=this,n=o.filter(this.collection.models,(function(n){return n.get(t.options.displayProperty).toLowerCase().slice(0,1)===e}));if(n.length>1){var i=n[this.sameCharIndex];return i||(i=o.first(n),this.sameCharIndex=0),this.sameCharIndex++,i}return o.first(n)}},{key:"runTimer",value:function(){var e=this;this.scopedTimerIndex&&clearTimeout(this.scopedTimerIndex),this.scopedTimerIndex=window.setTimeout((function(){e.selectSearch=""}),500)}},{key:"isDisabled",value:function(e){var t;if(e.get("divider"))return!0;if(!o.isFunction(this.options.childOptions.isDisabled))return!1;for(var n=arguments.length,i=new Array(n>1?n-1:0),r=1;r<n;r++)i[r-1]=arguments[r];return(t=this.options.childOptions.isDisabled).call.apply(t,[this,e].concat(i))}},{key:"getButtonText",value:function(){if(this.options.disabled)return this.options.noOptionsText;var e=l.c.getSelected(this.collection);return e&&e.get(this.options.displayProperty)||this.options.placeholderText}},{key:"viewOptions",value:function(){return{styles:d.a,inputName:this.options.inputName,disabled:this.options.disabled,placeholderText:this.getButtonText()}}},{key:"onRender",value:function(){this.showChildView("dropdown",new a.a({collection:this.collection,channelName:this.options.channelName,childOptions:o.extend(this.options.childOptions),displayOptions:{extraClasses:"w-100 ".concat(d.a.dropdownMenu)},analyticsHelper:this.options.analyticsHelper}))}},{key:"name",get:function(){return"SelectComponent"}},{key:"template",get:function(){return c.a}},{key:"defaults",get:function(){return{displayProperty:"name"}}},{key:"elements",get:function(){return{dropdownToggle:".dropdown-toggle"}}}])&&h(t.prototype,n),r&&h(t,r),u}(r.a.Component)},1267:function(e,t,n){var o=n(10);e.exports=(o.default||o).template({1:function(e,t,n,o,i){var r;e.propertyIsEnumerable;return e.escapeExpression(e.lambda(null!=(r=null!=(r=null!=t?t.options:t)?r.styles:r)?r.disabled:r,t))},3:function(e,t,n,o,i){return" disabled"},compiler:[8,">= 4.3.0"],main:function(e,t,n,o,i){e.propertyIsEnumerable;var r,a=e.lambda,l=e.escapeExpression,s=null!=t?t:e.nullContext||{};return'<button \r\n class="dropdown-toggle form-control btn-block text-left position-relative '+l(a(null!=(r=null!=(r=null!=t?t.options:t)?r.styles:r)?r.selectButton:r,t))+" "+(null!=(r=n.if.call(s,null!=(r=null!=t?t.options:t)?r.disabled:r,{name:"if",hash:{},fn:e.program(1,i,0),inverse:e.noop,data:i}))?r:"")+'" \r\n type="button" \r\n id="dropdownMenuButton" \r\n data-toggle="dropdown" \r\n aria-haspopup="true" \r\n aria-expanded="false"\r\n '+(null!=(r=n.if.call(s,null!=(r=null!=t?t.options:t)?r.disabled:r,{name:"if",hash:{},fn:e.program(3,i,0),inverse:e.noop,data:i}))?r:"")+' \r\n name="'+l(a(null!=(r=null!=t?t.options:t)?r.inputName:r,t))+'"\r\n >\r\n '+l(a(null!=(r=null!=t?t.options:t)?r.placeholderText:r,t))+'\r\n</button>\r\n<div class="dropdown-region"></div>\r\n<div class="form-feedback"></div>'},useData:!0})},1268:function(e,t,n){e.exports={dropdownMenu:"_2RaQu",selectButton:"_2xGqi",disabled:"_15kWr"}},1526:function(e,t,n){var o=n(10);e.exports=(o.default||o).template({compiler:[8,">= 4.3.0"],main:function(e,t,n,o,i){return'<div class="top-actions-region"></div>\r\n<div class="videos-region"></div>\r\n<div class="bottom-actions-region"></div>'},useData:!0})},1527:function(e,t,n){var o=n(10);e.exports=(o.default||o).template({compiler:[8,">= 4.3.0"],main:function(e,t,n,o,i){e.propertyIsEnumerable;return'<div class="finish-button-region"></div>\r\n<button class="btn btn-secondary float-right add-more-videos">'+e.escapeExpression((n.lang||t&&t.lang||e.hooks.helperMissing).call(null!=t?t:e.nullContext||{},"addMore",{name:"lang",hash:{},data:i}))+"</button>"},useData:!0})},1528:function(e,t,n){var o=n(10);e.exports=(o.default||o).template({compiler:[8,">= 4.3.0"],main:function(e,t,n,o,i){return'<div class="dropdown-menu-region"></div>'},useData:!0})},1529:function(e,t,n){e.exports={requiredStar:"_3m_pH"}},1530:function(e,t,n){var o=n(10);e.exports=(o.default||o).template({1:function(e,t,n,o,i){var r;e.propertyIsEnumerable;return'<span class="'+e.escapeExpression(e.lambda(null!=(r=null!=(r=null!=t?t.options:t)?r.styles:r)?r.requiredStar:r,t))+'">*</span>'},3:function(e,t,n,o,i){return' <div class="library-select-region form-group col-6"></div>\r\n'},5:function(e,t,n,o,i){return"col-6"},7:function(e,t,n,o,i){return"col-12"},compiler:[8,">= 4.3.0"],main:function(e,t,n,o,i){e.propertyIsEnumerable;var r,a=null!=t?t:e.nullContext||{};return"<h5>"+e.escapeExpression((n.lang||t&&t.lang||e.hooks.helperMissing).call(a,"uploadDestination",{name:"lang",hash:{},data:i}))+(null!=(r=n.if.call(a,null!=(r=null!=(r=null!=t?t.options:t)?r.requiredFields:r)?r.uploadDestination:r,{name:"if",hash:{},fn:e.program(1,i,0),inverse:e.noop,data:i}))?r:"")+'</h5>\r\n <div class="container-fluid px-0">\r\n <div class="row">\r\n'+(null!=(r=n.if.call(a,null!=(r=null!=t?t.options:t)?r.hasMultipleLibraries:r,{name:"if",hash:{},fn:e.program(3,i,0),inverse:e.noop,data:i}))?r:"")+' <div class="folder-select-region form-group '+(null!=(r=n.if.call(a,null!=(r=null!=t?t.options:t)?r.hasMultipleLibraries:r,{name:"if",hash:{},fn:e.program(5,i,0),inverse:e.program(7,i,0),data:i}))?r:"")+'"></div>\r\n </div>\r\n </div>\r\n</div>'},useData:!0})},1531:function(e,t,n){var o=n(10);e.exports=(o.default||o).template({compiler:[8,">= 4.3.0"],main:function(e,t,n,o,i){e.propertyIsEnumerable;var r,a=null!=t?t:e.nullContext||{},l=e.hooks.helperMissing,s=e.escapeExpression;return'<div class="progress-bar bg-info" style="width: '+s("function"==typeof(r=null!=(r=n.progress||(null!=t?t.progress:t))?r:l)?r.call(a,{name:"progress",hash:{},data:i}):r)+'%" aria-valuenow="'+s("function"==typeof(r=null!=(r=n.progress||(null!=t?t.progress:t))?r:l)?r.call(a,{name:"progress",hash:{},data:i}):r)+'" aria-valuemin="0" aria-valuemax="100"></div>'},useData:!0})},1532:function(e,t,n){var o=n(10);e.exports=(o.default||o).template({1:function(e,t,n,o,i){e.propertyIsEnumerable;return e.escapeExpression((n.lang||t&&t.lang||e.hooks.helperMissing).call(null!=t?t:e.nullContext||{},"hideMetadata",{name:"lang",hash:{},data:i}))},3:function(e,t,n,o,i){e.propertyIsEnumerable;return e.escapeExpression((n.lang||t&&t.lang||e.hooks.helperMissing).call(null!=t?t:e.nullContext||{},"addMetadata",{name:"lang",hash:{},data:i}))},compiler:[8,">= 4.3.0"],main:function(e,t,n,o,i){e.propertyIsEnumerable;var r,a,l=e.escapeExpression,s=null!=t?t:e.nullContext||{},c=e.hooks.helperMissing;return'<div class="upload-title-region"></div>\r\n<div class="container-fluid border-bottom">\r\n <div class="row">\r\n <div class="col-4 p-3">\r\n <div class="thumbnail-region"></div>\r\n <div class="upload-progress-region"></div>\r\n <div class="my-3">\r\n <h5 class="'+l(e.lambda(null!=(r=null!=(r=null!=t?t.options:t)?r.styles:r)?r.title:r,t))+'">'+l("function"==typeof(a=null!=(a=n.name||(null!=t?t.name:t))?a:c)?a.call(s,{name:"name",hash:{},data:i}):a)+'</h5>\r\n <div class="text-progress-region"></div>\r\n <button class="btn btn-secondary cancel-upload">'+l((n.lang||t&&t.lang||c).call(s,"cancel",{name:"lang",hash:{},data:i}))+'</button>\r\n </div>\r\n\r\n </div>\r\n <div class="col-8 py-3 pr-3">\r\n <div class="video-details-region"></div>\r\n <div class="folder-select-region"></div>\r\n <div class="additional-info-region"></div>\r\n <div class="production-info-region"></div>\r\n <div class="video-options-region"></div>\r\n </div>\r\n </div>\r\n</div>\r\n<div class="p-2 text-center">\r\n <button class="add-advanced-metadata btn btn-link">'+(null!=(r=n.if.call(s,null!=(r=null!=t?t.options:t)?r.showAdvanced:r,{name:"if",hash:{},fn:e.program(1,i,0),inverse:e.program(3,i,0),data:i}))?r:"")+"</a>\r\n</div>"},useData:!0})},1533:function(e,t,n){var o=n(10);e.exports=(o.default||o).template({compiler:[8,">= 4.3.0"],main:function(e,t,n,o,i){var r;e.propertyIsEnumerable;return e.escapeExpression(e.lambda(null!=(r=null!=t?t.options:t)?r.name:r,t))},useData:!0})},1534:function(e,t,n){var o=n(10);e.exports=(o.default||o).template({compiler:[8,">= 4.3.0"],main:function(e,t,n,o,i){var r;e.propertyIsEnumerable;return e.escapeExpression((n.lang||t&&t.lang||e.hooks.helperMissing).call(null!=t?t:e.nullContext||{},"uploading",{name:"lang",hash:{percentage:null!=(r=null!=t?t.options:t)?r.percentage:r},data:i}))},useData:!0})},1535:function(e,t,n){e.exports={title:"_2yTdm"}},1536:function(e,t,n){var o=n(10);e.exports=(o.default||o).template({1:function(e,t,n,o,i){return" on"},compiler:[8,">= 4.3.0"],main:function(e,t,n,o,i){e.propertyIsEnumerable;var r,a=null!=t?t:e.nullContext||{},l=e.hooks.helperMissing,s=e.escapeExpression;return"<h5>"+s((n.lang||t&&t.lang||l).call(a,"heading",{name:"lang",hash:{},data:i}))+'</h5>\r\n<div class="container-fluid">\r\n <div class="row">\r\n <div class="form-group col-6 p-0">\r\n <div class="d-block">\r\n <label>'+s((n.lang||t&&t.lang||l).call(a,"autoCaptioningHeading",{name:"lang",hash:{},data:i}))+'</label>\r\n <div class="custom-toggle toggle-option float-right'+(null!=(r=n.if.call(a,null!=(r=null!=t?t.options:t)?r.isSelected:r,{name:"if",hash:{},fn:e.program(1,i,0),inverse:e.noop,data:i}))?r:"")+'"><span class="handle"></span></div>\r\n </div>\r\n <p class=\'mb-0 mr-5\'>'+s((n.lang||t&&t.lang||l).call(a,"autoCaptioningInfo",{name:"lang",hash:{},data:i}))+"</p>\r\n </div>\r\n </div>\r\n</div>\r\n \r\n"},useData:!0})},1642:function(e,t,n){"use strict";n.r(t);var o=n(1),i=n(6),r=n(2),a=n(30),l=n(5),s=n(3),c=n(52),u=n(14),d=n(61),f=n(1526),h=n.n(f),p=n(310),y=n(303),g=n(12),m=n(253),v=n(1527),b=n.n(v);function w(e){return(w="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}function k(e,t){for(var n=0;n<t.length;n++){var o=t[n];o.enumerable=o.enumerable||!1,o.configurable=!0,"value"in o&&(o.writable=!0),Object.defineProperty(e,o.key,o)}}function S(e,t){return(S=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e})(e,t)}function C(e){var t=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Date.prototype.toString.call(Reflect.construct(Date,[],(function(){}))),!0}catch(e){return!1}}();return function(){var n,o=N(e);if(t){var i=N(this).constructor;n=Reflect.construct(o,arguments,i)}else n=o.apply(this,arguments);return O(this,n)}}function O(e,t){return!t||"object"!==w(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 N(e){return(N=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)})(e)}var x=function(e){!function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),t&&S(e,t)}(l,e);var t,n,o,r=C(l);function l(e){return function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,l),r.call(this,e)}return t=l,(n=[{key:"initialize",value:function(){this.model=a.a.get("upload:progress:".concat(p.d.Video)),this.listenTo(this.model,"change:done",this.render),this.listenTo(this.channelName,"continue",this.onClickContinue),this.listenTo(this.options.uploadChannelName,"start:spinner",this.startSpinner)}},{key:"regions",value:function(){return{finishButton:{el:".finish-button-region",replaceElement:!0}}}},{key:"startSpinner",value:function(){i.Radio.channel(this.channelName).trigger(m.b.ShowSpinner)}},{key:"onClickContinue",value:function(){this.model.get("done")&&i.Radio.channel(this.options.uploadChannelName).trigger("continue")}},{key:"onRender",value:function(){this.showChildView("finishButton",new m.a({channelName:this.channelName,disabled:!this.model.get("done"),saveEvent:"continue",extraButtonClass:"btn-primary float-right ml-3",buttonText:s.a.getPhrase(this.lang,"finish"),spinnerOptions:{size:g.r.Small,type:g.s.Light,extraClasses:"mx-auto"},tooltip:{title:this.model.get("done")?"":s.a.getPhrase(this.lang,"stillUploading")}}))}},{key:"name",get:function(){return"UploadActionsComponent"}},{key:"lang",get:function(){return"upload.uploadActions"}},{key:"template",get:function(){return b.a}},{key:"className",get:function(){return"clearfix my-3"}},{key:"channelName",get:function(){return"".concat(this.name).concat(this.cid)}},{key:"behaviors",get:function(){return[{behaviorClass:y.a,buttonSelector:".add-more-videos",channelName:this.options.uploadChannelName,acceptMultiple:!0,mimeType:"video/*"}]}}])&&k(t.prototype,n),o&&k(t,o),l}(r.a.Component),T=n(29),P=n(192),_=n(194),I=n(100),R=n(1374),D=n(1377),E=n(1379),A=n(1225),j=(n(307),n(308),n(147)),L=n(83),M=n(1229),F=n(42),V=n(49),U=n(59),B=n(1266),z=n(1528),H=n.n(z);function J(e){return(J="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}function K(e,t){for(var n=0;n<t.length;n++){var o=t[n];o.enumerable=o.enumerable||!1,o.configurable=!0,"value"in o&&(o.writable=!0),Object.defineProperty(e,o.key,o)}}function q(e,t){return(q=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e})(e,t)}function W(e){var t=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Date.prototype.toString.call(Reflect.construct(Date,[],(function(){}))),!0}catch(e){return!1}}();return function(){var n,o=Y(e);if(t){var i=Y(this).constructor;n=Reflect.construct(o,arguments,i)}else n=o.apply(this,arguments);return G(this,n)}}function G(e,t){return!t||"object"!==J(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 Q=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&&q(e,t)}(l,e);var t,n,r,a=W(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.prepareData(),this.bindListeners()}},{key:"prepareData",value:function(){var e=this.options.library?this.options.library.collection:this.collection;this.collection=V.a.flatten(e),g.c.setSelected(this.options.currentFolderId,this.collection),this.options.canCreateFolder&&this.collection.add({name:s.a.getPhrase(this.lang,"createNew"),eventName:"create:folder"})}},{key:"bindListeners",value:function(){var e=this;this.listenTo(this.channelName,"create:folder",this.onClickCreateFolder),this.listenTo(this.channelName,"select:option:selected",(function(t){i.Radio.channel(e.options.channelName).trigger("folder:selected",t)}))}},{key:"regions",value:function(){return{dropdown:{el:".dropdown-menu-region",replaceElement:!0}}}},{key:"onClickCreateFolder",value:function(){i.Radio.channel(this.options.channelName).trigger("create:folder:clicked")}},{key:"generatePrefix",value:function(){var e=this.model.get("depth");if(!o.isNumber(e)||this.model.get("hidePrefix"))return"";for(var t="",n=0;n<e;n++)t+="&nbsp;&nbsp;";return e&&(t+="- "),t}},{key:"getIsOptionDisabledFn",value:function(){var e=this.options.disableLibraries,t=this.options.disabledFolderIds;return function(n){var i=n||this.model;return!(!e||i.get("type")!==U.a.CustomLibrary)||!(!t||!o.contains(t,i.get("id").toString()))}}},{key:"onRender",value:function(){this.showChildView("dropdown",new B.a({collection:this.collection,channelName:this.channelName,childOptions:{titleProperty:"name",eventName:"select:option:click",prefixHandler:this.generatePrefix,currentSelectedMessage:this.options.currentSelectedMessage||s.a.getPhrase(this.lang,"current"),isDisabled:this.getIsOptionDisabledFn(),truncateOptionNames:!0},placeholderText:this.options.placeholderText||s.a.getPhrase(this.lang,"placeholder"),noOptionsText:s.a.getPhrase(this.lang,"noFolders"),inputName:this.options.inputName,disabled:0===this.collection.length||this.options.disabled,analyticsHelper:F.a}))}},{key:"lang",get:function(){return"libraryEditor.folderSelect"}},{key:"channelName",get:function(){return"".concat(this.name).concat(this.cid)}},{key:"folderTreeKey",get:function(){return"folderselect:".concat(this.cid)}},{key:"name",get:function(){return"FolderSelectView"}},{key:"className",get:function(){return"position-relative"}},{key:"template",get:function(){return H.a}}])&&K(t.prototype,n),r&&K(t,r),l}(r.a.Component),X=n(1529),Z=n.n(X),ee=n(1530),te=n.n(ee);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 oe(e,t){for(var n=0;n<t.length;n++){var o=t[n];o.enumerable=o.enumerable||!1,o.configurable=!0,"value"in o&&(o.writable=!0),Object.defineProperty(e,o.key,o)}}function ie(e,t){return(ie=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e})(e,t)}function re(e){var t=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Date.prototype.toString.call(Reflect.construct(Date,[],(function(){}))),!0}catch(e){return!1}}();return function(){var n,o=le(e);if(t){var i=le(this).constructor;n=Reflect.construct(o,arguments,i)}else n=o.apply(this,arguments);return ae(this,n)}}function ae(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 le(e){return(le=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)})(e)}var se=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&&ie(e,t)}(a,e);var t,n,o,r=re(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.librariesWithoutFolders=new j.a,this.collection.each((function(t){return e.librariesWithoutFolders.add(t.toFlatJSON())})),this.listenTo(this.libraryChannelName,"folder:selected",this.onLibrarySelected),this.listenTo(this.channelName,"folder:selected new:folder:selected",this.onFolderSelected),this.listenTo(this.channelName,"create:folder:clicked",this.onCreateFolderClicked),!this.hasMultipleLibraries()&&this.librariesWithoutFolders.first()&&this.model.set("libraryId",this.librariesWithoutFolders.first().get("id"));var t=this.collection.get(this.model.get("libraryId"));if(t){var n=g.f.getSelected(this.folderTreeKey,t.children);this.options.preselectedFolderId&&!n&&this.onFolderSelected(this.options.preselectedFolderId)}}},{key:"regions",value:function(){return{librarySelect:".library-select-region",folderSelect:".folder-select-region"}}},{key:"hasMultipleLibraries",value:function(){return this.librariesWithoutFolders.length>1}},{key:"onLibrarySelected",value:function(e){this.model.set("libraryId",e.get("id")),this.model.unset("folderId"),this.render()}},{key:"onFolderSelected",value:function(e){var t=e;e instanceof L.a&&(t=e.get("id")),this.model.set("folderId",t);var n=this.collection.get(this.model.get("libraryId")).children;g.f.setSelected(this.folderTreeKey,t,n),this.model.validate()}},{key:"onCreateFolderClicked",value:function(){i.Radio.channel(this.options.channelName).trigger("show:new:folder",this.model.get("libraryId"),this.channelName)}},{key:"renderLibrarySelect",value:function(){if(this.hasMultipleLibraries()){var e=new Q({collection:this.librariesWithoutFolders,channelName:this.libraryChannelName,placeholderText:s.a.getPhrase(this.lang,"selectLibraryPlaceholder"),currentFolderId:this.model.get("libraryId"),currentSelectedMessage:s.a.getPhrase(this.lang,"currentLibrary"),inputName:"libraryId",canCreateFolder:!1});this.showChildView("librarySelect",e)}}},{key:"renderFolderSelect",value:function(){var e=this.model.get("libraryId");if(e){var t=this.collection.get(e);this.showChildView("folderSelect",new M.a({collection:t.children,channelName:this.channelName,folderTreeKey:this.folderTreeKey,canCreateNew:!0,name:"folderId"}))}}},{key:"viewOptions",value:function(){return{styles:Z.a,hasMultipleLibraries:this.hasMultipleLibraries(),requiredFields:this.options.requiredFields}}},{key:"onRender",value:function(){this.renderLibrarySelect(),this.renderFolderSelect()}},{key:"name",get:function(){return"UploadFolderSelectComponent"}},{key:"template",get:function(){return te.a}},{key:"lang",get:function(){return"upload.uploadFolderSelect"}},{key:"folderTreeKey",get:function(){return"folder:tree:".concat(this.model.cid)}},{key:"libraryChannelName",get:function(){return"".concat(this.channelName,":").concat(this.options.selectId,":libraries")}},{key:"channelName",get:function(){return"".concat(this.name).concat(this.cid).concat(this.options.selectId)}}])&&oe(t.prototype,n),o&&oe(t,o),a}(r.a.Component),ce=n(1531),ue=n.n(ce);function de(e){return(de="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 fe(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function he(e,t){for(var n=0;n<t.length;n++){var o=t[n];o.enumerable=o.enumerable||!1,o.configurable=!0,"value"in o&&(o.writable=!0),Object.defineProperty(e,o.key,o)}}function pe(e,t){return(pe=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e})(e,t)}function ye(e){var t=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Date.prototype.toString.call(Reflect.construct(Date,[],(function(){}))),!0}catch(e){return!1}}();return function(){var n,o=me(e);if(t){var i=me(this).constructor;n=Reflect.construct(o,arguments,i)}else n=o.apply(this,arguments);return ge(this,n)}}function ge(e,t){return!t||"object"!==de(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 me(e){return(me=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)})(e)}var ve=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,o,i=ye(r);function r(){return fe(this,r),i.apply(this,arguments)}return t=r,(n=[{key:"initialize",value:function(){this.listenTo(this.model,"change:progress",this.update)}},{key:"update",value:function(){var e=this.model.get("progress"),t=this.getUI("progressBar");t&&t.get(0)&&$(t.get(0)).css("width","".concat(e,"%"))}},{key:"name",get:function(){return"UploadProgressComponent"}},{key:"template",get:function(){return ue.a}},{key:"className",get:function(){return"progress my-3"}},{key:"elements",get:function(){return{progressBar:".progress-bar"}}}])&&he(t.prototype,n),o&&he(t,o),r}(r.a.Component),be=n(1532),we=n.n(be),ke=n(1533),Se=n.n(ke),Ce=n(1534),Oe=n.n(Ce),Ne=n(1535),xe=n.n(Ne),Te=n(1536),Pe=n.n(Te);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 Ie(e,t){for(var n=0;n<t.length;n++){var o=t[n];o.enumerable=o.enumerable||!1,o.configurable=!0,"value"in o&&(o.writable=!0),Object.defineProperty(e,o.key,o)}}function Re(e,t){return(Re=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e})(e,t)}function De(e){var t=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Date.prototype.toString.call(Reflect.construct(Date,[],(function(){}))),!0}catch(e){return!1}}();return function(){var n,o=Ae(e);if(t){var i=Ae(this).constructor;n=Reflect.construct(o,arguments,i)}else n=o.apply(this,arguments);return Ee(this,n)}}function Ee(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 Ae(e){return(Ae=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)})(e)}var je=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&&Re(e,t)}(r,e);var t,n,o,i=De(r);function r(e){return function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,r),i.call(this,e)}return t=r,(n=[{key:"events",value:function(){return{"click .toggle-option":"onToggleAutoCaptioning"}}},{key:"onToggleAutoCaptioning",value:function(e){e.stopPropagation(),this.model.set("autoCaption",!this.model.get("autoCaption")),this.render()}},{key:"viewOptions",value:function(){return{isSelected:this.model.get("autoCaption")}}},{key:"name",get:function(){return"UploadVideoOptionsComponent"}},{key:"template",get:function(){return Pe.a}},{key:"lang",get:function(){return"upload.uploadVideoOptions"}},{key:"tagName",get:function(){return"form"}},{key:"className",get:function(){return"border-top pt-3"}}])&&Ie(t.prototype,n),o&&Ie(t,o),r}(r.a.Component);function Le(e){return(Le="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}function Me(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function Fe(e,t){for(var n=0;n<t.length;n++){var o=t[n];o.enumerable=o.enumerable||!1,o.configurable=!0,"value"in o&&(o.writable=!0),Object.defineProperty(e,o.key,o)}}function Ve(e,t,n){return t&&Fe(e.prototype,t),n&&Fe(e,n),e}function Ue(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&&Be(e,t)}function Be(e,t){return(Be=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e})(e,t)}function ze(e){var t=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Date.prototype.toString.call(Reflect.construct(Date,[],(function(){}))),!0}catch(e){return!1}}();return function(){var n,o=Je(e);if(t){var i=Je(this).constructor;n=Reflect.construct(o,arguments,i)}else n=o.apply(this,arguments);return He(this,n)}}function He(e,t){return!t||"object"!==Le(t)&&"function"!=typeof t?function(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}(e):t}function Je(e){return(Je=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)})(e)}var Ke=function(e){Ue(n,e);var t=ze(n);function n(){return Me(this,n),t.apply(this,arguments)}return Ve(n,[{key:"initialize",value:function(){this.listenTo(this.model,"change:name",this.render)}},{key:"viewOptions",value:function(){return{name:this.model.get("name")||this.model.get("fileName")}}},{key:"name",get:function(){return"UploadTitleComponent"}},{key:"template",get:function(){return Se.a}},{key:"tagName",get:function(){return"h3"}},{key:"className",get:function(){return"mb-0 border-bottom p-3 ".concat(xe.a.title)}}]),n}(r.a.Component),qe=function(e){Ue(n,e);var t=ze(n);function n(){return Me(this,n),t.apply(this,arguments)}return Ve(n,[{key:"initialize",value:function(){this.listenTo(this.model,"change:progress",this.render)}},{key:"viewOptions",value:function(){return{percentage:Math.round(this.model.get("progress")||0)}}},{key:"name",get:function(){return"TextProgressComponent"}},{key:"template",get:function(){return Oe.a}},{key:"lang",get:function(){return"upload.uploadVideo"}},{key:"className",get:function(){return" text-muted"}},{key:"tagName",get:function(){return"p"}}]),n}(r.a.Component),We=function(e){Ue(n,e);var t=ze(n);function n(e){return Me(this,n),t.call(this,e)}return Ve(n,[{key:"initialize",value:function(){this.viewModel=a.a.get("upload:".concat(this.model.get("id")),{name:this.model.get("name"),fileName:this.model.get("name"),showAdvanced:this.options.openAdvancedMetadata,rating:this.options.ratings.findWhere({value:0}),folderId:this.options.folderId,libraryId:this.options.libraryId,timeInitialized:T(),autoCaption:!1},{ctor:I.a}),this.viewModel.addValidation(A.a),this.listenTo(this.channelName,"select:rating",o.partial(this.onAssociationSelected,o,"rating")),this.listenTo(this.channelName,"select:channel",o.partial(this.onAssociationSelected,o,"channel")),this.listenTo(this.channelName,"add:producers",this.onSelectProducer),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,"select:series",this.onSelectSeries),this.listenTo(this.channelName,"add:season",this.onSelectSeason),this.listenTo(this.options.uploadChannelName,"invalid:".concat(this.model.get("id")),this.scrollTo)}},{key:"events",value:function(){return{"click .add-advanced-metadata":"onClickAddAdvancedMetadata","click .cancel-upload":"onClickCancelUpload"}}},{key:"regions",value:function(){return{progress:{el:".upload-progress-region",replaceElement:!0},thumbnail:{el:".thumbnail-region",replaceElement:!0},uploadTitle:{el:".upload-title-region",replaceElement:!0},folderSelect:{el:".folder-select-region",replaceElement:!0},textProgress:{el:".text-progress-region",replaceElement:!0},videoDetails:{el:".video-details-region",replaceElement:!0},productionInfo:{el:".production-info-region",replaceElement:!0},advancedDetails:{el:".additional-info-region",replaceElement:!0},uploadOptions:{el:".video-options-region",replaceElement:!0}}}},{key:"onClickAddAdvancedMetadata",value:function(){this.viewModel.set("showAdvanced",!this.viewModel.get("showAdvanced")),this.render()}},{key:"onClickCancelUpload",value:function(){var e=this,t={title:s.a.getPhrase(this.lang,"cancelHeading"),text:s.a.getPhrase(this.lang,"cancelBody",{videoTitle:this.model.get("name")}),buttons:[{text:s.a.getPhrase(this.lang,"yes"),className:"btn btn-primary",success:!0},{text:s.a.getPhrase(this.lang,"no"),className:"btn btn-link",close:!0}],channelName:this.channelName};new g.d(t).render().done((function(){i.Radio.channel(e.options.uploadChannelName).trigger("cancel:upload",e.model.get("id"))}))}},{key:"onAssociationSelected",value:function(e,t){var n=this.viewModel.get(t);if(n instanceof r.a.Collection){var i=n.filter((function(t){return!t.id||t.name===e.name}));o.each(i,(function(e){return n.remove(e)})),this.viewModel.get(t).add(e)}else this.viewModel.set(t,e)}},{key:"onSelectSeries",value:function(e){var t=this,n=i.Radio.channel(this.options.uploadChannelName);e.id?n.trigger("get:series",e.id,(function(e){t.onAssociationSelected(e.toJSON(),"series"),t.renderAdvancedVideoDetails()})):e.name&&n.trigger("create:series",e.name,(function(e){t.onAssociationSelected(e.toJSON(),"series"),t.renderAdvancedVideoDetails()}))}},{key:"onSelectSeason",value:function(e){var t=this;if(o.isNull(e))return this.viewModel.get("season").clear({silent:!0}),g.c.deselectAll(this.viewModel.get("series.seasons")),this.onAssociationSelected(null,"season"),void this.renderAdvancedVideoDetails();if(e.id)return g.c.setSelected(e.id,this.viewModel.get("series.seasons")),this.onAssociationSelected(e,"season"),void this.renderAdvancedVideoDetails();if(e.number){var n=this.viewModel.get("series.id");i.Radio.channel(this.options.uploadChannelName).trigger("create:season",e,n,(function(e){t.viewModel.get("series.seasons").add(e.toJSON()),g.c.setSelected(e.id,t.viewModel.get("series.seasons")),t.onAssociationSelected(e.toJSON(),"season"),t.renderAdvancedVideoDetails()}))}}},{key:"onSelectDistributor",value:function(e){var t=this;e.id?this.onAssociationSelected(e,"distributors"):e.name&&i.Radio.channel(this.options.uploadChannelName).trigger("create:company",e.name,(function(e){t.onAssociationSelected(e.toJSON(),"distributors")}))}},{key:"onSelectProductionCompany",value:function(e){var t=this;e.id?this.onAssociationSelected(e,"productionCompanies"):e.name&&i.Radio.channel(this.options.uploadChannelName).trigger("create:company",e.name,(function(e){t.onAssociationSelected(e.toJSON(),"productionCompanies")}))}},{key:"onSelectDirector",value:function(e){var t=this;e.id?this.onAssociationSelected(e,"directors"):e.name&&i.Radio.channel(this.options.uploadChannelName).trigger("create:person",e.name,(function(e){t.onAssociationSelected(e.toJSON(),"directors")}))}},{key:"onSelectProducer",value:function(e){var t=this;e.id?this.onAssociationSelected(e,"producers"):e.name&&i.Radio.channel(this.options.uploadChannelName).trigger("create:person",e.name,(function(e){t.onAssociationSelected(e.toJSON(),"producers")}))}},{key:"getRequiredFields",value:function(){return{uploadDestination:!0}}},{key:"renderTitle",value:function(){var e=new Ke({model:this.viewModel});this.showChildView("uploadTitle",e)}},{key:"renderThumbnail",value:function(){var e=new P.a({model:this.viewModel,thumbnailOptions:{size:_.a.Medium}});this.showChildView("thumbnail",e)}},{key:"renderProgress",value:function(){var e=new ve({model:this.model});this.showChildView("progress",e);var t=new qe({model:this.model});this.showChildView("textProgress",t)}},{key:"renderBasicVideoDetails",value:function(){var e=new R.a({model:this.viewModel,channelName:this.channelName,ratings:this.options.ratings,requiredFields:this.getRequiredFields(),editable:!0});this.showChildView("videoDetails",e)}},{key:"renderFolderSelect",value:function(){var e=new se({collection:this.options.libraries,selectId:this.model.get("id"),model:this.viewModel,channelName:this.options.uploadChannelName,requiredFields:this.getRequiredFields(),preselectedFolderId:this.options.folderId});this.showChildView("folderSelect",e)}},{key:"renderAdvancedVideoDetails",value:function(){if(this.viewModel.get("showAdvanced")){var e=new D.a({channelName:this.channelName,model:this.viewModel,libraries:this.options.libraries,hostedLibraries:this.options.hostedLibraries,editable:!0}),t=new E.a({channelName:this.channelName,model:this.viewModel,editable:!0});this.showChildView("advancedDetails",e),this.showChildView("productionInfo",t),this.options.allowAutoCaptioning&&this.showChildView("uploadOptions",new je({model:this.viewModel}))}}},{key:"scrollTo",value:function(){$("html,body").animate({scrollTop:this.$el.offset().top},250)}},{key:"viewOptions",value:function(){return Object.assign({styles:xe.a},this.viewModel.toJSON())}},{key:"onRender",value:function(){this.renderTitle(),this.renderThumbnail(),this.renderProgress(),this.renderBasicVideoDetails(),this.renderFolderSelect(),this.renderAdvancedVideoDetails(),i.Validation.bind(this,{model:this.viewModel})}},{key:"onDestroy",value:function(){i.Validation.unbind(this)}},{key:"name",get:function(){return"UploadVideoComponent"}},{key:"template",get:function(){return we.a}},{key:"className",get:function(){return"bg-white mb-3"}},{key:"lang",get:function(){return"upload.uploadVideo"}},{key:"channelName",get:function(){return"".concat(this.name).concat(this.cid)}}]),n}(r.a.Component);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 Ge(e,t){for(var n=0;n<t.length;n++){var o=t[n];o.enumerable=o.enumerable||!1,o.configurable=!0,"value"in o&&(o.writable=!0),Object.defineProperty(e,o.key,o)}}function Ye(e,t){return(Ye=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e})(e,t)}function Qe(e){var t=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Date.prototype.toString.call(Reflect.construct(Date,[],(function(){}))),!0}catch(e){return!1}}();return function(){var n,o=Ze(e);if(t){var i=Ze(this).constructor;n=Reflect.construct(o,arguments,i)}else n=o.apply(this,arguments);return Xe(this,n)}}function Xe(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 Ze(e){return(Ze=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)})(e)}var et=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&&Ye(e,t)}(r,e);var t,n,o,i=Qe(r);function r(e){return function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,r),i.call(this,e)}return t=r,(n=[{key:"name",get:function(){return"UploadVideoComponentCollection"}},{key:"childView",get:function(){return We}},{key:"childViewOptions",get:function(){return{ratings:this.options.ratings,libraries:this.options.libraries,hostedLibraries:this.options.hostedLibraries,uploadChannelName:this.options.uploadChannelName,folderId:this.options.folderId,libraryId:this.options.libraryId,allowAutoCaptioning:this.options.allowAutoCaptioning,openAdvancedMetadata:this.collection.length<=1}}}])&&Ge(t.prototype,n),o&&Ge(t,o),r}(r.a.ComponentCollection),tt=n(0),nt=n(190),ot=n(136),it=n(138),rt=n(4),at=n(44),lt=n(101);function st(e){return(st="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 ct(e,t){for(var n=0;n<t.length;n++){var o=t[n];o.enumerable=o.enumerable||!1,o.configurable=!0,"value"in o&&(o.writable=!0),Object.defineProperty(e,o.key,o)}}function ut(e,t){return(ut=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e})(e,t)}function dt(e){var t=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Date.prototype.toString.call(Reflect.construct(Date,[],(function(){}))),!0}catch(e){return!1}}();return function(){var n,o=ht(e);if(t){var i=ht(this).constructor;n=Reflect.construct(o,arguments,i)}else n=o.apply(this,arguments);return ft(this,n)}}function ft(e,t){return!t||"object"!==st(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 ht(e){return(ht=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)})(e)}n.d(t,"UploadVideosView",(function(){return pt}));var pt=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&&ut(e,t)}(y,e);var t,n,f,p=dt(y);function y(e){return function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,y),p.call(this,e)}return t=y,(n=[{key:"initialize",value:function(){this.initServices(),this.initDataListeners(),this.initComponentListeners(),this.initCollectionListeners(),this.initShellListeners()}},{key:"regions",value:function(){return{topActions:{el:".top-actions-region",replaceElement:!0},bottomActions:{el:".bottom-actions-region",replaceElement:!0},videos:{el:".videos-region",replaceElement:!0}}}},{key:"initServices",value:function(){this.videoDataService=l.a.getInstance(tt.g.Video,this),this.libraryDataService=l.a.getInstance(tt.g.Library,this),this.videoUploadService=l.a.getInstance(tt.x.VideoUpload,this),this.videoUploadDataService=l.a.getInstance(tt.g.VideoUpload,this),this.seriesDataService=l.a.getInstance(tt.g.Series,this),this.ratingsDataService=l.a.getInstance(tt.g.Ratings,this),this.companyDataService=l.a.getInstance(tt.g.Company,this),this.personDataService=l.a.getInstance(tt.g.Person,this),this.alertService=l.a.getInstance(tt.x.Alerts,this),this.navLockService=l.a.getInstance(tt.x.NavLock,this),this.settingsDataService=l.a.getInstance(tt.g.Settings,this)}},{key:"initDataListeners",value:function(){this.listenTo(tt.e.RATINGS,"".concat(tt.f.RATINGS,":sync"),this.render),this.listenTo(tt.e.LIBRARY,"hosted:libraries:sync",this.render),this.listenTo(tt.e.LIBRARY,"folder:created",this.onFolderCreated)}},{key:"initComponentListeners",value:function(){this.listenTo(this.channelName,"continue",this.onClickContinue),this.listenTo(this.channelName,"cancel:upload",this.cancelUpload),this.listenTo(this.channelName,at.a.FILES_SELECTED,this.onFilesSelected),this.listenTo(this.channelName,"show:new:folder",this.onClickNewFolder),this.listenTo(this.channelName,"get:series",this.onSelectSeries),this.listenTo(this.channelName,"create:series",this.onCreateSeries),this.listenTo(this.channelName,"create:season",this.onCreateSeason),this.listenTo(this.channelName,"create:company",this.onCreateCompany),this.listenTo(this.channelName,"create:person",this.onCreatePerson)}},{key:"initCollectionListeners",value:function(){var e=this.videoUploadService.getCollection();this.listenTo(e,"remove",this.onCollectionChange)}},{key:"initShellListeners",value:function(){this.listenTo(u.a.SHELL,r.a.EventNames.NAV_UNLOCKED_BY_USER,this.onNavigateAway)}},{key:"cancelUpload",value:function(e){this.logCancelAction(e),this.videoUploadService.cancelUpload(e)}},{key:"onNavigateAway",value:function(){this.logCancelAction(),this.videoUploadService.cancelAllUploads()}},{key:"onCollectionChange",value:function(e,t){t.length||(this.navLockService.unlock(),r.a.AppLinkHelper.trigger({application:tt.b.UPLOAD,action:tt.a.Upload.FILE_SELECTION}))}},{key:"onSelectSeries",value:function(e,t){this.seriesDataService.getSeries(e,t)}},{key:"onCreateSeries",value:function(e,t){this.seriesDataService.createSeries(e,t)}},{key:"onCreateSeason",value:function(e,t,n){this.seriesDataService.createSeason(e,t,n)}},{key:"onCreateCompany",value:function(e,t){this.companyDataService.createCompany(e,t)}},{key:"onCreatePerson",value:function(e,t){this.personDataService.createPerson(e,t)}},{key:"onClickContinue",value:function(){var e,t=this,n=i.Radio.channel(this.channelName),o=this.videoUploadService.getCollection(),u=!0;if(o.each((function(t){var n=a.a.get("upload:".concat(t.get("id")),null,{ctor:I.a});n.validate();var o=n.isValid();!1!==o||e||(e=t.id),u=u&&o})),e&&n.trigger("invalid:".concat(e)),u){n.trigger("start:spinner");var d=[];o.each((function(e){var n=e.get("file"),i=a.a.get("upload:".concat(e.get("id")),null,{ctor:I.a});if(lt.a.hasExpired(i,t.config.get("uploadSessionExpiryTime")))return t.alertService.createAlert({heading:s.a.getPhrase(t.lang,"uploadErrorHeading"),message:s.a.getPhrase(t.lang,"uploadErrorBody",{videoName:i.get("name")}),type:c.a.Fail}),void o.remove(e);i.set("fileUrl",n.cvUpload.fileUrl),i.set("fileSize",n.size),d.push(i)})),this.videoUploadDataService.completeVideoUploads(this.currentUser.get("id"),this.currentUser.get("customerId"),d,(function(){t.navLockService.unlock(),l.a.getInstance(tt.x.PendingItems).forceFetchPendingItems(),l.a.releaseInstance(tt.x.PendingItems),r.a.AppLinkHelper.trigger({application:tt.b.UPLOAD,action:d.length?tt.a.Upload.UPLOAD_COMPLETE:tt.a.Upload.FILE_SELECTION}),t.logFinishAction(d),t.videoDataService.clearVideoCache()}))}}},{key:"onFilesSelected",value:function(e,t){this.videoUploadService.addFiles(e),this.logStartAction(e,t)}},{key:"onClickNewFolder",value:function(e,t){this.setFolderChannel=t,this.navLockService.unlock(),r.a.AppLinkHelper.trigger({application:tt.b.UPLOAD,action:tt.a.Shared.NEW_FOLDER,args:[e]}),this.lockNav()}},{key:"onFolderCreated",value:function(e){this.setFolderChannel&&(i.Radio.channel(this.setFolderChannel).trigger("new:folder:selected",e),this.render())}},{key:"logStartAction",value:function(e,t){var n=F.a.mergeOptions(this.options.analyticsOptions,{workflowPhase:rt.WorkflowPhase.Start,descriptor:F.a.mapInteractionType(t)});F.a.logUserAction(e,n)}},{key:"logCancelAction",value:function(e){var t=this.videoUploadService.getCollection();if(t.length){var n=e?t.get(e):t,o=F.a.mergeOptions(this.options.analyticsOptions,{workflowPhase:rt.WorkflowPhase.Discard,descriptor:e?rt.OperationDescriptor.Single:rt.OperationDescriptor.All});F.a.logUserAction(n.toJSON(),o)}}},{key:"logFinishAction",value:function(e){if(e.length){var t=o.map(e,(function(e){return e.toJSON()})),n=F.a.mergeOptions(this.options.analyticsOptions,{workflowPhase:rt.WorkflowPhase.Complete});F.a.logUserAction(t,n)}}},{key:"fetchData",value:function(){this.ratings=this.ratingsDataService.getAllRatings(),this.hostedLibraries=this.libraryDataService.getLibraries(),this.autoCaptioning=this.settingsDataService.getSetting(this.currentUser.get("customerId"),d.a.AutoCaptioning)}},{key:"renderUploadActions",value:function(){this.showChildView("topActions",new x({uploadChannelName:this.channelName})),this.showChildView("bottomActions",new x({uploadChannelName:this.channelName}))}},{key:"renderVideos",value:function(){var e={collection:this.videoUploadService.getCollection(),ratings:this.ratings,libraries:this.libraries,hostedLibraries:this.hostedLibraries,uploadChannelName:this.channelName,allowAutoCaptioning:this.autoCaptioning.get("value")};if(this.options.folderId){var t=g.f.getLibrary(this.options.folderId,this.libraries);t&&(e.folderId=this.options.folderId,e.libraryId=t.get("id"))}var n=new et(e);this.showChildView("videos",n)}},{key:"lockNav",value:function(){this.navLockService.lock({title:s.a.getPhrase(this.lang,"navLockHeading"),text:s.a.getPhrase(this.lang,"navLockBody")})}},{key:"onBeforeRender",value:function(){return this.fetchData(),!!this.ratings&&!!this.hostedLibraries&&!!this.autoCaptioning}},{key:"onRender",value:function(){this.lockNav(),this.renderUploadActions(),this.renderVideos()}},{key:"name",get:function(){return"UploadVideosView"}},{key:"title",get:function(){return s.a.getPhrase(this.lang,"title")}},{key:"lang",get:function(){return"upload.uploadVideos"}},{key:"template",get:function(){return h.a}},{key:"channelName",get:function(){return"".concat(this.name).concat(this.cid)}},{key:"requiredResources",get:function(){return{currentUser:ot.b.currentUser,libraries:it.b.libraries,config:nt.b.config}}}])&&ct(t.prototype,n),f&&ct(t,f),y}(r.a.View)}}]);
@@ -1 +1 @@
1
- (window.webpackJsonp_clickview_library_editor=window.webpackJsonp_clickview_library_editor||[]).push([[3],{1059:function(e,t,n){"use strict";n.d(t,"a",(function(){return d}));var r=n(2),o=n(15),i=n(12),s=n(0),l=n(1232),a=n(1233),u=n.n(a);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 p(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}function f(e,t){return(f=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e})(e,t)}function h(e){var t=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Date.prototype.toString.call(Reflect.construct(Date,[],(function(){}))),!0}catch(e){return!1}}();return function(){var n,r=m(e);if(t){var o=m(this).constructor;n=Reflect.construct(r,arguments,o)}else n=r.apply(this,arguments);return y(this,n)}}function y(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 m(e){return(m=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)})(e)}var d=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&&f(e,t)}(c,e);var t,n,r,a=h(c);function c(e){return function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,c),a.call(this,e)}return t=c,(n=[{key:"padNumber",value:function(e){if(!e)return null;var t=e.toString(),n=2;if(t.length>=n)return t;for(n-=t.length;n>0;)t="0"+t,n--;return t}},{key:"getSeriesName",value:function(){return this.options.highlight?i.v.wordsHighlighter(this.model.series.get("name"),this.model.get("_matchedWords")):this.model.series.get("name")}},{key:"viewOptions",value:function(){return{styles:l,seasonNumber:this.padNumber(this.model.season&&this.model.season.get("number")),episodeNumber:this.padNumber(this.model.get("episodeNumber")),seriesName:this.getSeriesName(),seriesUrl:this.options.seriesUrl,externalSvg:o.a.getSvg(o.b.NewWindow),styleUppercase:this.options.styleUppercase}}},{key:"onBeforeRender",value:function(){return this.model.series&&!!this.model.series.get("id")}},{key:"defaults",get:function(){return{styleUppercase:!0}}},{key:"name",get:function(){return"VideoItemSeriesComponent"}},{key:"template",get:function(){return u.a}},{key:"appLinks",get:function(){return this.options.seriesUrl?{}:{".series-applink":{application:s.b.LIBRARY_EDITOR,action:s.a.LibraryEditor.SERIES,args:[this.model.series.get("id")]}}}}])&&p(t.prototype,n),r&&p(t,r),c}(r.a.Component)},1064:function(e,t,n){"use strict";n.d(t,"a",(function(){return f}));var r=n(1),o=n(2),i=n(287);function s(e){return(s="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}function l(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}function a(e,t){return(a=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e})(e,t)}function u(e){var t=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Date.prototype.toString.call(Reflect.construct(Date,[],(function(){}))),!0}catch(e){return!1}}();return function(){var n,r=p(e);if(t){var o=p(this).constructor;n=Reflect.construct(r,arguments,o)}else n=r.apply(this,arguments);return c(this,n)}}function c(e,t){return!t||"object"!==s(t)&&"function"!=typeof t?function(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}(e):t}function p(e){return(p=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)})(e)}var f=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&&a(e,t)}(c,e);var t,n,o,s=u(c);function c(e){return function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,c),s.call(this,e)}return t=c,(n=[{key:"initialize",value:function(){this.listenTo(this.options.channelName,"center:dropdown",this.centerSelectedItem)}},{key:"getExtraClasses",value:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t=e.alignment,n=void 0===t?"left":t,r=e.extraClasses,o="dropdown-menu-".concat(n);return r&&(o="".concat(o," ").concat(r)),o}},{key:"centerSelectedItem",value:function(){var e=this.$el.find(".active");if(e.length){var t=this.$el.scrollTop()+e.position().top,n=.5*this.$el.height()+.5*e.height();this.$el.scrollTop(t-n)}}},{key:"name",get:function(){return"DropdownCollectionComponent"}},{key:"className",get:function(){return"dropdown-menu items-viewpart ".concat(this.getExtraClasses(this.options.displayOptions))}},{key:"attributes",get:function(){return{"aria-labelledby":"dropdownSelector"}}},{key:"childView",get:function(){return i.a}},{key:"childViewOptions",get:function(){var e={channelName:this.options.channelName,analyticsHelper:this.options.analyticsHelper};return r.extend(e,this.options.childOptions)}}])&&l(t.prototype,n),o&&l(t,o),c}(o.a.ComponentCollection)},1082:function(e,t,n){"use strict";n.d(t,"b",(function(){return o})),n.d(t,"a",(function(){return w}));var r,o,i=n(2),s=n(12),l=n(3),a=n(1150),u=n.n(a),c=n(1151),p=n.n(c);function f(e){return(f="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 h(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}function y(e,t){return(y=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e})(e,t)}function m(e){var t=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Date.prototype.toString.call(Reflect.construct(Date,[],(function(){}))),!0}catch(e){return!1}}();return function(){var n,r=b(e);if(t){var o=b(this).constructor;n=Reflect.construct(r,arguments,o)}else n=r.apply(this,arguments);return d(this,n)}}function d(e,t){return!t||"object"!==f(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 b(e){return(b=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)})(e)}function v(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}!function(e){e.Small="sm",e.Large="lg"}(o||(o={}));var g=(v(r={},o.Small,3),v(r,o.Large,5),r),w=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&&y(e,t)}(a,e);var t,n,r,i=m(a);function a(e){var t;return function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,a),(t=i.call(this,e)).showingMore=!1,t}return t=a,(n=[{key:"events",value:function(){return v({},"click .".concat(p.a.showMoreEllipsis),"onClickShowMore")}},{key:"onClickShowMore",value:function(e){e.preventDefault(),this.showingMore?this.showLessDescription():this.showMoreDescription()}},{key:"getDescription",value:function(){return this.options.linkify?s.v.linkifyText(s.v.escapeExpression(this.model.get("description"))):this.options.highlighter?s.v.wordsHighlighter(s.v.escapeExpression(this.model.get("description")),this.model.get("_matchedWords")):void 0}},{key:"getDescriptionElements",value:function(){return{descriptionTextEl:this.getUI("description"),ellipsisEl:this.getUI("ellipsis")}}},{key:"showMoreDescription",value:function(){var e=this.getDescriptionElements(),t=e.descriptionTextEl,n=e.ellipsisEl;t.removeClass(p.a.truncateLarge).addClass(p.a.open),n.text(l.a.getPhrase(this.lang,"showLess")),this.showingMore=!0}},{key:"showLessDescription",value:function(){var e,t=this.getDescriptionElements(),n=t.descriptionTextEl,r=t.ellipsisEl;this.options.size===o.Small&&(e="truncateSmall"),this.options.size===o.Large&&(e="truncateLarge"),n.addClass(p.a[e]),r.text(this.options.allowExpand?"... ".concat(l.a.getPhrase(this.lang,"showMore")):"...").removeClass(p.a.hideEllipsis).addClass(p.a.showEllipsis),this.showingMore=!1}},{key:"truncateDescription",value:function(){if(this.options.truncate){var e=this.getDescriptionElements().descriptionTextEl,t=g[this.options.size];e.height()<=21*t||this.showLessDescription()}}},{key:"viewOptions",value:function(){return{styles:p.a,truncate:this.options.truncate,expandable:this.options.allowExpand,description:this.getDescription()}}},{key:"onAttach",value:function(){this.truncateDescription()}},{key:"name",get:function(){return"VideoDescriptionComponent"}},{key:"template",get:function(){return u.a}},{key:"lang",get:function(){return"shared.videoDescription"}},{key:"defaults",get:function(){return{size:"sm"}}},{key:"elements",get:function(){return{description:".description",ellipsis:this.options.allowExpand?".".concat(p.a.showMoreEllipsis):".".concat(p.a.singleEllipsis)}}}])&&h(t.prototype,n),r&&h(t,r),a}(i.a.Component)},1099:function(e,t,n){"use strict";n.d(t,"a",(function(){return E}));var r=n(1),o=n(6),i=n(2),s=n(4),l=n(42),a=n(191),u=n(189),c=n(282),p=n(12),f=n(0),h=n(1206),y=n(1152),m=n.n(y);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 b(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}function v(e,t){return(v=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,r=k(e);if(t){var o=k(this).constructor;n=Reflect.construct(r,arguments,o)}else n=r.apply(this,arguments);return w(this,n)}}function w(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 k(e){return(k=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)})(e)}var E=function(e){!function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),t&&v(e,t)}(d,e);var t,n,i,y=g(d);function d(e){return function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,d),y.call(this,e)}return t=d,(n=[{key:"initialize",value:function(){this.bindListeners()}},{key:"regions",value:function(){return{player:{el:".video-player-region",replaceElement:!1},thumbnail:{el:".thumbnail-region",replaceElement:!0}}}},{key:"events",value:function(){return{click:"onClick"}}},{key:"bindListeners",value:function(){this.options.channelName&&this.listenTo(this.options.channelName,"update:chapter:time",this.onUpdateWebplayer)}},{key:"onUpdateWebplayer",value:function(e){if(!this.player)return this.listenToOnce(this.options.channelName,"webplayer:loaded",r.bind(this.seekToChapter,this,e)),void this.renderVideoPreview();this.seekToChapter(e)}},{key:"seekToChapter",value:function(e){this.player.seekTo(e)}},{key:"onClick",value:function(){this.player||this.renderVideoPreview()}},{key:"renderThumbnail",value:function(){this.showChildView("thumbnail",new u.a({model:this.model,thumbnailOptions:{size:a.a.Medium},playIcon:!0,lazyload:!0,channelName:this.instanceChannelName}))}},{key:"renderVideoPreview",value:function(){this.player=new h.a({model:this.model,webPlayerUrl:this.options.webPlayerUrl,parentChannelName:this.options.channelName,autoplay:!0,analyticsOptions:l.a.mergeOptions(this.options.analyticsOptions,{entity:s.e.Video}),captureAnalytics:this.options.captureAnalytics}),this.showChildView("player",this.player)}},{key:"onRender",value:function(){this.renderThumbnail()}},{key:"name",get:function(){return"VideoPreviewComponent"}},{key:"template",get:function(){return m.a}},{key:"instanceChannelName",get:function(){return p.k.generateUniqueChannelName(this)}},{key:"defaults",get:function(){return{captureAnalytics:!0}}},{key:"behaviors",get:function(){var e=this;return[{behaviorClass:c.c,selector:".lazy-img",callback:function(){o.Radio.channel(e.instanceChannelName).trigger("show:play:icon")},minBrowserSupportVersion:f.p}]}}])&&b(t.prototype,n),i&&b(t,i),d}(i.a.Component)},1150:function(e,t,n){var r=n(10);e.exports=(r.default||r).template({1:function(e,t,n,r,o){e.propertyIsEnumerable;var i,s=e.lambda,l=e.escapeExpression;return' <div class="'+l(s(null!=(i=null!=(i=null!=t?t.options:t)?i.styles:i)?i.descriptionWrapper:i,t))+'">\r\n <p class="description '+l(s(null!=(i=null!=(i=null!=t?t.options:t)?i.styles:i)?i.description:i,t))+'">'+(null!=(i=n.if.call(null!=t?t:e.nullContext||{},null!=(i=null!=t?t.options:t)?i.expandable:i,{name:"if",hash:{},fn:e.program(2,o,0),inverse:e.program(4,o,0),data:o}))?i:"")+"</p>\r\n </div>\r\n"},2:function(e,t,n,r,o){e.propertyIsEnumerable;var i,s=e.lambda,l=e.escapeExpression;return(null!=(i=s(null!=(i=null!=t?t.options:t)?i.description:i,t))?i:"")+'<span class="'+l(s(null!=(i=null!=(i=null!=t?t.options:t)?i.styles:i)?i.showMoreEllipsis:i,t))+" "+l(s(null!=(i=null!=(i=null!=t?t.options:t)?i.styles:i)?i.hideEllipsis:i,t))+'">... '+l((n.lang||t&&t.lang||e.hooks.helperMissing).call(null!=t?t:e.nullContext||{},"showMore",{name:"lang",hash:{},data:o}))+"</span>"},4:function(e,t,n,r,o){e.propertyIsEnumerable;var i,s=e.lambda,l=e.escapeExpression;return(null!=(i=s(null!=(i=null!=t?t.options:t)?i.description:i,t))?i:"")+'<span class="'+l(s(null!=(i=null!=(i=null!=t?t.options:t)?i.styles:i)?i.singleEllipsis:i,t))+" "+l(s(null!=(i=null!=(i=null!=t?t.options:t)?i.styles:i)?i.hideEllipsis:i,t))+'">...</span>'},6:function(e,t,n,r,o){e.propertyIsEnumerable;var i,s=e.lambda;return' <p class="'+e.escapeExpression(s(null!=(i=null!=(i=null!=t?t.options:t)?i.styles:i)?i.description:i,t))+'">'+(null!=(i=s(null!=(i=null!=t?t.options:t)?i.description:i,t))?i:"")+"</p>\r\n"},compiler:[8,">= 4.3.0"],main:function(e,t,n,r,o){var i;e.propertyIsEnumerable;return null!=(i=n.if.call(null!=t?t:e.nullContext||{},null!=(i=null!=t?t.options:t)?i.truncate:i,{name:"if",hash:{},fn:e.program(1,o,0),inverse:e.program(6,o,0),data:o}))?i:""},useData:!0})},1151:function(e,t,n){e.exports={columnNames:"_1a1Re",descriptionWrapper:"_2MZC5",description:"_3U9j9",ellipsis:"_1YjUg",singleEllipsis:"_3SNtn",showMoreEllipsis:"xy3i9",showEllipsis:"_1_L9t",hideEllipsis:"TCdgP",open:"_18ojI",truncateSmall:"nLuVF",truncateLarge:"sEELY"}},1152:function(e,t,n){var r=n(10);e.exports=(r.default||r).template({compiler:[8,">= 4.3.0"],main:function(e,t,n,r,o){return'<div class="video-player-region cursor-pointer responsize-img">\r\n <div class="thumbnail-region"></div>\r\n</div>'},useData:!0})},1232:function(e,t,n){e.exports={svgContainer:"_1CUEt",series:"oZx-K"}},1233:function(e,t,n){var r=n(10);e.exports=(r.default||r).template({1:function(e,t,n,r,o){var i;e.propertyIsEnumerable;return e.escapeExpression(e.lambda(null!=(i=null!=(i=null!=t?t.options:t)?i.styles:i)?i.series:i,t))},3:function(e,t,n,r,o){var i;e.propertyIsEnumerable;return'href="'+e.escapeExpression(e.lambda(null!=(i=null!=t?t.options:t)?i.seriesUrl:i,t))+'" target="_blank"'},5:function(e,t,n,r,o){var i;e.propertyIsEnumerable;return(null!=(i=n.if.call(null!=t?t:e.nullContext||{},null!=(i=null!=t?t.options:t)?i.seasonNumber:i,{name:"if",hash:{},fn:e.program(6,o,0),inverse:e.noop,data:o}))?i:"")+" E"+e.escapeExpression(e.lambda(null!=(i=null!=t?t.options:t)?i.episodeNumber:i,t))+"\r\n"},6:function(e,t,n,r,o){var i;e.propertyIsEnumerable;return"&nbsp;S"+e.escapeExpression(e.lambda(null!=(i=null!=t?t.options:t)?i.seasonNumber:i,t))+" &bull;"},compiler:[8,">= 4.3.0"],main:function(e,t,n,r,o){e.propertyIsEnumerable;var i,s=null!=t?t:e.nullContext||{};return'<a class="series-applink text-muted '+(null!=(i=n.if.call(s,null!=(i=null!=t?t.options:t)?i.styleUppercase:i,{name:"if",hash:{},fn:e.program(1,o,0),inverse:e.noop,data:o}))?i:"")+'" '+(null!=(i=n.if.call(s,null!=(i=null!=t?t.options:t)?i.seriesUrl:i,{name:"if",hash:{},fn:e.program(3,o,0),inverse:e.noop,data:o}))?i:"")+">\r\n "+(null!=(i=e.lambda(null!=(i=null!=t?t.options:t)?i.seriesName:i,t))?i:"")+(null!=(i=n.if.call(s,null!=(i=null!=t?t.options:t)?i.episodeNumber:i,{name:"if",hash:{},fn:e.program(5,o,0),inverse:e.noop,data:o}))?i:"")+"</a>"},useData:!0})}}]);
1
+ (window.webpackJsonp_clickview_library_editor=window.webpackJsonp_clickview_library_editor||[]).push([[3],{1219:function(e,t,n){"use strict";n.d(t,"a",(function(){return d}));var r=n(2),o=n(15),i=n(12),s=n(0),l=n(1392),a=n(1393),u=n.n(a);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 p(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}function f(e,t){return(f=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e})(e,t)}function h(e){var t=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Date.prototype.toString.call(Reflect.construct(Date,[],(function(){}))),!0}catch(e){return!1}}();return function(){var n,r=m(e);if(t){var o=m(this).constructor;n=Reflect.construct(r,arguments,o)}else n=r.apply(this,arguments);return y(this,n)}}function y(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 m(e){return(m=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)})(e)}var d=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&&f(e,t)}(c,e);var t,n,r,a=h(c);function c(e){return function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,c),a.call(this,e)}return t=c,(n=[{key:"padNumber",value:function(e){if(!e)return null;var t=e.toString(),n=2;if(t.length>=n)return t;for(n-=t.length;n>0;)t="0"+t,n--;return t}},{key:"getSeriesName",value:function(){return this.options.highlight?i.v.wordsHighlighter(this.model.series.get("name"),this.model.get("_matchedWords")):this.model.series.get("name")}},{key:"viewOptions",value:function(){return{styles:l,seasonNumber:this.padNumber(this.model.season&&this.model.season.get("number")),episodeNumber:this.padNumber(this.model.get("episodeNumber")),seriesName:this.getSeriesName(),seriesUrl:this.options.seriesUrl,externalSvg:o.a.getSvg(o.b.NewWindow),styleUppercase:this.options.styleUppercase}}},{key:"onBeforeRender",value:function(){return this.model.series&&!!this.model.series.get("id")}},{key:"defaults",get:function(){return{styleUppercase:!0}}},{key:"name",get:function(){return"VideoItemSeriesComponent"}},{key:"template",get:function(){return u.a}},{key:"appLinks",get:function(){return this.options.seriesUrl?{}:{".series-applink":{application:s.b.LIBRARY_EDITOR,action:s.a.LibraryEditor.SERIES,args:[this.model.series.get("id")]}}}}])&&p(t.prototype,n),r&&p(t,r),c}(r.a.Component)},1224:function(e,t,n){"use strict";n.d(t,"a",(function(){return f}));var r=n(1),o=n(2),i=n(298);function s(e){return(s="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}function l(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}function a(e,t){return(a=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e})(e,t)}function u(e){var t=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Date.prototype.toString.call(Reflect.construct(Date,[],(function(){}))),!0}catch(e){return!1}}();return function(){var n,r=p(e);if(t){var o=p(this).constructor;n=Reflect.construct(r,arguments,o)}else n=r.apply(this,arguments);return c(this,n)}}function c(e,t){return!t||"object"!==s(t)&&"function"!=typeof t?function(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}(e):t}function p(e){return(p=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)})(e)}var f=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&&a(e,t)}(c,e);var t,n,o,s=u(c);function c(e){return function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,c),s.call(this,e)}return t=c,(n=[{key:"initialize",value:function(){this.listenTo(this.options.channelName,"center:dropdown",this.centerSelectedItem)}},{key:"getExtraClasses",value:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t=e.alignment,n=void 0===t?"left":t,r=e.extraClasses,o="dropdown-menu-".concat(n);return r&&(o="".concat(o," ").concat(r)),o}},{key:"centerSelectedItem",value:function(){var e=this.$el.find(".active");if(e.length){var t=this.$el.scrollTop()+e.position().top,n=.5*this.$el.height()+.5*e.height();this.$el.scrollTop(t-n)}}},{key:"name",get:function(){return"DropdownCollectionComponent"}},{key:"className",get:function(){return"dropdown-menu items-viewpart ".concat(this.getExtraClasses(this.options.displayOptions))}},{key:"attributes",get:function(){return{"aria-labelledby":"dropdownSelector"}}},{key:"childView",get:function(){return i.a}},{key:"childViewOptions",get:function(){var e={channelName:this.options.channelName,analyticsHelper:this.options.analyticsHelper};return r.extend(e,this.options.childOptions)}}])&&l(t.prototype,n),o&&l(t,o),c}(o.a.ComponentCollection)},1242:function(e,t,n){"use strict";n.d(t,"b",(function(){return o})),n.d(t,"a",(function(){return w}));var r,o,i=n(2),s=n(12),l=n(3),a=n(1310),u=n.n(a),c=n(1311),p=n.n(c);function f(e){return(f="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 h(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}function y(e,t){return(y=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e})(e,t)}function m(e){var t=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Date.prototype.toString.call(Reflect.construct(Date,[],(function(){}))),!0}catch(e){return!1}}();return function(){var n,r=b(e);if(t){var o=b(this).constructor;n=Reflect.construct(r,arguments,o)}else n=r.apply(this,arguments);return d(this,n)}}function d(e,t){return!t||"object"!==f(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 b(e){return(b=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)})(e)}function v(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}!function(e){e.Small="sm",e.Large="lg"}(o||(o={}));var g=(v(r={},o.Small,3),v(r,o.Large,5),r),w=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&&y(e,t)}(a,e);var t,n,r,i=m(a);function a(e){var t;return function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,a),(t=i.call(this,e)).showingMore=!1,t}return t=a,(n=[{key:"events",value:function(){return v({},"click .".concat(p.a.showMoreEllipsis),"onClickShowMore")}},{key:"onClickShowMore",value:function(e){e.preventDefault(),this.showingMore?this.showLessDescription():this.showMoreDescription()}},{key:"getDescription",value:function(){return this.options.linkify?s.v.linkifyText(s.v.escapeExpression(this.model.get("description"))):this.options.highlighter?s.v.wordsHighlighter(s.v.escapeExpression(this.model.get("description")),this.model.get("_matchedWords")):void 0}},{key:"getDescriptionElements",value:function(){return{descriptionTextEl:this.getUI("description"),ellipsisEl:this.getUI("ellipsis")}}},{key:"showMoreDescription",value:function(){var e=this.getDescriptionElements(),t=e.descriptionTextEl,n=e.ellipsisEl;t.removeClass(p.a.truncateLarge).addClass(p.a.open),n.text(l.a.getPhrase(this.lang,"showLess")),this.showingMore=!0}},{key:"showLessDescription",value:function(){var e,t=this.getDescriptionElements(),n=t.descriptionTextEl,r=t.ellipsisEl;this.options.size===o.Small&&(e="truncateSmall"),this.options.size===o.Large&&(e="truncateLarge"),n.addClass(p.a[e]),r.text(this.options.allowExpand?"... ".concat(l.a.getPhrase(this.lang,"showMore")):"...").removeClass(p.a.hideEllipsis).addClass(p.a.showEllipsis),this.showingMore=!1}},{key:"truncateDescription",value:function(){if(this.options.truncate){var e=this.getDescriptionElements().descriptionTextEl,t=g[this.options.size];e.height()<=21*t||this.showLessDescription()}}},{key:"viewOptions",value:function(){return{styles:p.a,truncate:this.options.truncate,expandable:this.options.allowExpand,description:this.getDescription()}}},{key:"onAttach",value:function(){this.truncateDescription()}},{key:"name",get:function(){return"VideoDescriptionComponent"}},{key:"template",get:function(){return u.a}},{key:"lang",get:function(){return"shared.videoDescription"}},{key:"defaults",get:function(){return{size:"sm"}}},{key:"elements",get:function(){return{description:".description",ellipsis:this.options.allowExpand?".".concat(p.a.showMoreEllipsis):".".concat(p.a.singleEllipsis)}}}])&&h(t.prototype,n),r&&h(t,r),a}(i.a.Component)},1259:function(e,t,n){"use strict";n.d(t,"a",(function(){return E}));var r=n(1),o=n(6),i=n(2),s=n(4),l=n(42),a=n(194),u=n(192),c=n(293),p=n(12),f=n(0),h=n(1366),y=n(1312),m=n.n(y);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 b(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}function v(e,t){return(v=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,r=k(e);if(t){var o=k(this).constructor;n=Reflect.construct(r,arguments,o)}else n=r.apply(this,arguments);return w(this,n)}}function w(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 k(e){return(k=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)})(e)}var E=function(e){!function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),t&&v(e,t)}(d,e);var t,n,i,y=g(d);function d(e){return function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,d),y.call(this,e)}return t=d,(n=[{key:"initialize",value:function(){this.bindListeners()}},{key:"regions",value:function(){return{player:{el:".video-player-region",replaceElement:!1},thumbnail:{el:".thumbnail-region",replaceElement:!0}}}},{key:"events",value:function(){return{click:"onClick"}}},{key:"bindListeners",value:function(){this.options.channelName&&this.listenTo(this.options.channelName,"update:chapter:time",this.onUpdateWebplayer)}},{key:"onUpdateWebplayer",value:function(e){if(!this.player)return this.listenToOnce(this.options.channelName,"webplayer:loaded",r.bind(this.seekToChapter,this,e)),void this.renderVideoPreview();this.seekToChapter(e)}},{key:"seekToChapter",value:function(e){this.player.seekTo(e)}},{key:"onClick",value:function(){this.player||this.renderVideoPreview()}},{key:"renderThumbnail",value:function(){this.showChildView("thumbnail",new u.a({model:this.model,thumbnailOptions:{size:a.a.Medium},playIcon:!0,lazyload:!0,channelName:this.instanceChannelName}))}},{key:"renderVideoPreview",value:function(){this.player=new h.a({model:this.model,webPlayerUrl:this.options.webPlayerUrl,parentChannelName:this.options.channelName,autoplay:!0,analyticsOptions:l.a.mergeOptions(this.options.analyticsOptions,{entity:s.EntityType.Video}),captureAnalytics:this.options.captureAnalytics}),this.showChildView("player",this.player)}},{key:"onRender",value:function(){this.renderThumbnail()}},{key:"name",get:function(){return"VideoPreviewComponent"}},{key:"template",get:function(){return m.a}},{key:"instanceChannelName",get:function(){return p.k.generateUniqueChannelName(this)}},{key:"defaults",get:function(){return{captureAnalytics:!0}}},{key:"behaviors",get:function(){var e=this;return[{behaviorClass:c.c,selector:".lazy-img",callback:function(){o.Radio.channel(e.instanceChannelName).trigger("show:play:icon")},minBrowserSupportVersion:f.p}]}}])&&b(t.prototype,n),i&&b(t,i),d}(i.a.Component)},1310:function(e,t,n){var r=n(10);e.exports=(r.default||r).template({1:function(e,t,n,r,o){e.propertyIsEnumerable;var i,s=e.lambda,l=e.escapeExpression;return' <div class="'+l(s(null!=(i=null!=(i=null!=t?t.options:t)?i.styles:i)?i.descriptionWrapper:i,t))+'">\r\n <p class="description '+l(s(null!=(i=null!=(i=null!=t?t.options:t)?i.styles:i)?i.description:i,t))+'">'+(null!=(i=n.if.call(null!=t?t:e.nullContext||{},null!=(i=null!=t?t.options:t)?i.expandable:i,{name:"if",hash:{},fn:e.program(2,o,0),inverse:e.program(4,o,0),data:o}))?i:"")+"</p>\r\n </div>\r\n"},2:function(e,t,n,r,o){e.propertyIsEnumerable;var i,s=e.lambda,l=e.escapeExpression;return(null!=(i=s(null!=(i=null!=t?t.options:t)?i.description:i,t))?i:"")+'<span class="'+l(s(null!=(i=null!=(i=null!=t?t.options:t)?i.styles:i)?i.showMoreEllipsis:i,t))+" "+l(s(null!=(i=null!=(i=null!=t?t.options:t)?i.styles:i)?i.hideEllipsis:i,t))+'">... '+l((n.lang||t&&t.lang||e.hooks.helperMissing).call(null!=t?t:e.nullContext||{},"showMore",{name:"lang",hash:{},data:o}))+"</span>"},4:function(e,t,n,r,o){e.propertyIsEnumerable;var i,s=e.lambda,l=e.escapeExpression;return(null!=(i=s(null!=(i=null!=t?t.options:t)?i.description:i,t))?i:"")+'<span class="'+l(s(null!=(i=null!=(i=null!=t?t.options:t)?i.styles:i)?i.singleEllipsis:i,t))+" "+l(s(null!=(i=null!=(i=null!=t?t.options:t)?i.styles:i)?i.hideEllipsis:i,t))+'">...</span>'},6:function(e,t,n,r,o){e.propertyIsEnumerable;var i,s=e.lambda;return' <p class="'+e.escapeExpression(s(null!=(i=null!=(i=null!=t?t.options:t)?i.styles:i)?i.description:i,t))+'">'+(null!=(i=s(null!=(i=null!=t?t.options:t)?i.description:i,t))?i:"")+"</p>\r\n"},compiler:[8,">= 4.3.0"],main:function(e,t,n,r,o){var i;e.propertyIsEnumerable;return null!=(i=n.if.call(null!=t?t:e.nullContext||{},null!=(i=null!=t?t.options:t)?i.truncate:i,{name:"if",hash:{},fn:e.program(1,o,0),inverse:e.program(6,o,0),data:o}))?i:""},useData:!0})},1311:function(e,t,n){e.exports={columnNames:"_1a1Re",descriptionWrapper:"_2MZC5",description:"_3U9j9",ellipsis:"_1YjUg",singleEllipsis:"_3SNtn",showMoreEllipsis:"xy3i9",showEllipsis:"_1_L9t",hideEllipsis:"TCdgP",open:"_18ojI",truncateSmall:"nLuVF",truncateLarge:"sEELY"}},1312:function(e,t,n){var r=n(10);e.exports=(r.default||r).template({compiler:[8,">= 4.3.0"],main:function(e,t,n,r,o){return'<div class="video-player-region cursor-pointer responsize-img">\r\n <div class="thumbnail-region"></div>\r\n</div>'},useData:!0})},1392:function(e,t,n){e.exports={svgContainer:"_1CUEt",series:"oZx-K"}},1393:function(e,t,n){var r=n(10);e.exports=(r.default||r).template({1:function(e,t,n,r,o){var i;e.propertyIsEnumerable;return e.escapeExpression(e.lambda(null!=(i=null!=(i=null!=t?t.options:t)?i.styles:i)?i.series:i,t))},3:function(e,t,n,r,o){var i;e.propertyIsEnumerable;return'href="'+e.escapeExpression(e.lambda(null!=(i=null!=t?t.options:t)?i.seriesUrl:i,t))+'" target="_blank"'},5:function(e,t,n,r,o){var i;e.propertyIsEnumerable;return(null!=(i=n.if.call(null!=t?t:e.nullContext||{},null!=(i=null!=t?t.options:t)?i.seasonNumber:i,{name:"if",hash:{},fn:e.program(6,o,0),inverse:e.noop,data:o}))?i:"")+" E"+e.escapeExpression(e.lambda(null!=(i=null!=t?t.options:t)?i.episodeNumber:i,t))+"\r\n"},6:function(e,t,n,r,o){var i;e.propertyIsEnumerable;return"&nbsp;S"+e.escapeExpression(e.lambda(null!=(i=null!=t?t.options:t)?i.seasonNumber:i,t))+" &bull;"},compiler:[8,">= 4.3.0"],main:function(e,t,n,r,o){e.propertyIsEnumerable;var i,s=null!=t?t:e.nullContext||{};return'<a class="series-applink text-muted '+(null!=(i=n.if.call(s,null!=(i=null!=t?t.options:t)?i.styleUppercase:i,{name:"if",hash:{},fn:e.program(1,o,0),inverse:e.noop,data:o}))?i:"")+'" '+(null!=(i=n.if.call(s,null!=(i=null!=t?t.options:t)?i.seriesUrl:i,{name:"if",hash:{},fn:e.program(3,o,0),inverse:e.noop,data:o}))?i:"")+">\r\n "+(null!=(i=e.lambda(null!=(i=null!=t?t.options:t)?i.seriesName:i,t))?i:"")+(null!=(i=n.if.call(s,null!=(i=null!=t?t.options:t)?i.episodeNumber:i,{name:"if",hash:{},fn:e.program(5,o,0),inverse:e.noop,data:o}))?i:"")+"</a>"},useData:!0})}}]);
@@ -0,0 +1 @@
1
+ (window.webpackJsonp_clickview_library_editor=window.webpackJsonp_clickview_library_editor||[]).push([[30],{1269:function(e,t,n){"use strict";n.d(t,"a",(function(){return m}));var i=n(1),o=n(2),r=n(1270),a=n.n(r),l=n(1271),s=n.n(l);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 p(e,t){return(p=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e})(e,t)}function h(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=d(e);if(t){var o=d(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 d(e){return(d=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)})(e)}var m=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,r=h(l);function l(e){return function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,l),r.call(this,e)}return t=l,(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 s.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),l}(o.a.Component)},1270:function(e,t,n){e.exports={link:"_5idZs",active:"_3Ty4M"}},1271:function(e,t,n){var i=n(10);e.exports=(i.default||i).template({1:function(e,t,n,i,o,r,a){var l;e.propertyIsEnumerable;return null!=(l=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}))?l:""},2:function(e,t,n,i,o,r,a){e.propertyIsEnumerable;var l,s=e.lambda,c=e.escapeExpression;return' <a class="'+c(s(null!=(l=null!=(l=null!=a[1]?a[1].options:a[1])?l.styles:l)?l.link:l,t))+" p-2 "+c(s(null!=t?t.link:t,t))+" "+(null!=(l=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}))?l:"")+'">'+c(s(null!=t?t.name:t,t))+"</a>\r\n"},3:function(e,t,n,i,o,r,a){var l;e.propertyIsEnumerable;return e.escapeExpression(e.lambda(null!=(l=null!=(l=null!=a[1]?a[1].options:a[1])?l.styles:l)?l.active:l,t))+" border-bottom border-primary text-primary"},compiler:[8,">= 4.3.0"],main:function(e,t,n,i,o,r,a){var l;e.propertyIsEnumerable;return null!=(l=n.each.call(null!=t?t:e.nullContext||{},null!=(l=null!=t?t.options:t)?l.tabs:l,{name:"each",hash:{},fn:e.program(1,o,0,r,a),inverse:e.noop,data:o}))?l:""},useData:!0,useDepths:!0})},1291: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(1292),l=n.n(a),s=n(1293),c=n.n(s),u=n(0),p=n(1269);function h(e){return(h="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 d(e,t){return(d=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e})(e,t)}function m(e){var t=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Date.prototype.toString.call(Reflect.construct(Date,[],(function(){}))),!0}catch(e){return!1}}();return function(){var n,i=g(e);if(t){var o=g(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"!==h(t)&&"function"!=typeof t?function(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}(e):t}function g(e){return(g=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)})(e)}var 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&&d(e,t)}(s,e);var t,n,o,a=m(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:"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:l.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 p.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),s}(o.a.Component)},1292:function(e,t,n){e.exports={svgContainer:"_27gR6"}},1293: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,l=e.escapeExpression;return'<div class="row">\r\n <h4>\r\n <a class="d-inline-flex align-items-center '+l(a(null!=(r=null!=(r=null!=t?t.options:t)?r.styles:r)?r.link:r,t))+" "+l(a(null!=(r=null!=(r=null!=t?t.options:t)?r.backTab:r)?r.link:r,t))+'">\r\n <span class="'+l(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 "+l(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})},1297:function(e,t,n){"use strict";n.d(t,"a",(function(){return v}));var i=n(6),o=n(2),r=n(30),a=n(15),l=n(293),s=n(12),c=n(1222),u=n(189),p=n(1320),h=n.n(p);function f(e){return(f="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}function d(e,t){for(var n=0;n<t.length;n++){var 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 y(e){var t=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Date.prototype.toString.call(Reflect.construct(Date,[],(function(){}))),!0}catch(e){return!1}}();return function(){var n,i=b(e);if(t){var o=b(this).constructor;n=Reflect.construct(i,arguments,o)}else n=i.apply(this,arguments);return g(this,n)}}function g(e,t){return!t||"object"!==f(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 b(e){return(b=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&&m(e,t)}(f,e);var t,n,o,p=y(f);function f(e){return function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,f),p.call(this,e)}return t=f,(n=[{key:"initialize",value:function(){this.options.playerViewModelKey&&this.listenToPlayerViewModel(),this.initViewModel(),this.options.editing&&this.syncTime()}},{key:"events",value:function(){return{submit:"onSubmit","change .chapter-name":"validateName","keyup .chapter-name":"validateName","change .time-input":"onTimeInputUpdate","click .time-input":"onTimeInputUpdate","keyup .time-input":"onTimeInputUpdate","click .cancel":"destroyView"}}},{key:"initViewModel",value:function(){this.viewModel=r.a.get(this.viewModelName,this.model.toJSON())}},{key:"listenToPlayerViewModel",value:function(){var e=r.a.get(this.options.playerViewModelKey);this.listenTo(e,"change:currenttime",this.updateTime)}},{key:"updateTime",value:function(e){this.webPlayerTime=e.get("currenttime"),this.syncTime()}},{key:"syncTime",value:function(){var e=this.viewModel.get("startTime")||this.webPlayerTime;this.viewModel.set({hours:s.w.getHoursComponent(e),minutes:s.w.getMinutesComponent(e),seconds:s.w.getSecondsComponent(e)})}},{key:"getNewTime",value:function(){return this.enabled()?s.w.parseTime(this.viewModel.pick("hours","minutes","seconds")):0}},{key:"enabled",value:function(){return this.options.creating||0!==this.model.collection.indexOf(this.model)}},{key:"maxTimes",value:function(){var e=s.w.millisecondsToSeconds(this.options.duration),t=s.w.getHoursComponent(e),n=t>0?59:s.w.getMinutesComponent(e);return{maxHr:t,maxMin:n,maxSec:n>0?59:s.w.getSecondsComponent(e)}}},{key:"onTimeInputUpdate",value:function(){i.Radio.channel(this.options.channelName).trigger(u.LibraryEditorActions.UpdateChapterTime,this.getNewTime()),this.validateStartTime()}},{key:"destroyView",value:function(){i.Radio.channel(this.options.channelName).trigger(u.LibraryEditorActions.CancelChapterEdit),this.destroy()}},{key:"onSubmit",value:function(e){if(e.preventDefault(),!this.validate())return!1;var t={id:this.viewModel.get("id"),name:this.viewModel.get("name"),startTime:this.getNewTime()},n=i.Radio.channel(this.options.channelName),o=u.LibraryEditorActions.CreateChapter;this.options.editing&&(o=u.LibraryEditorActions.UpdateChapter),n.trigger(o,t),this.stopListening(this.viewModel),r.a.clear(this.viewModelName)}},{key:"validate",value:function(){this.viewModel.validate();var e=this.validateStartTime(),t=this.validateName();return this.viewModel.isValid()&&e&&t}},{key:"validateStartTime",value:function(){var e=this,t=i.Validation.callbacks,n=t.valid,o=t.invalid,r=this.model.collection||this.options.collection,a=this.getNewTime(),l=c.a.isValidChapterTime(this.model,a,this.options.duration,r),s=[],u=["seconds","minutes","hours"];return a<0?s=u:l&&(s.push("seconds"),a>59&&s.push("minutes"),a>3540&&s.push("hours")),u.forEach((function(t){return n(e,t,null)})),s.forEach((function(t){return o(e,t,l,null)})),!l}},{key:"validateName",value:function(e){if(!e||13!==e.keyCode){var t=i.Validation.callbacks,n=t.valid,o=t.invalid,r=this.model.collection||this.options.collection,a=c.a.isValidChapterName(this.model,this.viewModel.get("name"),r);return a?o(this,"name",a,null):n(this,"name",null),!a}}},{key:"viewOptions",value:function(){var e=this.maxTimes(),t=e.maxHr,n=e.maxMin,i=0===e.maxSec,o=0===n,r=0===t;return Object.assign(Object.assign({},this.options),{enabled:this.enabled(),timeId:"".concat(this.cid,"-time"),chapterId:"".concat(this.cid,"-chapter-name"),plusSvg:a.a.getSvg(a.b.Plus),secDisabled:i,minDisabled:o,hrDisabled:r})}},{key:"name",get:function(){return"ChapterFormComponent"}},{key:"lang",get:function(){return"libraryEditor.chapterForm"}},{key:"tagName",get:function(){return"form"}},{key:"viewModelName",get:function(){return"".concat(this.name,":").concat(this.cid)}},{key:"template",get:function(){return h.a}},{key:"className",get:function(){return this.options.creating?"py-3":"border-top p-2"}},{key:"behaviors",get:function(){return[{behaviorClass:l.a,bindViewModel:!0},{behaviorClass:l.f,bindViewModel:!0}]}},{key:"bindings",get:function(){return{"[name=name]":{observe:"name",setOptions:{validate:!0}},"[name=hours]":{observe:"hours",setOptions:{validate:!0}},"[name=minutes]":{observe:"minutes",setOptions:{validate:!0}},"[name=seconds]":{observe:"seconds",setOptions:{validate:!0}}}}}])&&d(t.prototype,n),o&&d(t,o),f}(o.a.Component)},1320: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.lambda,l=e.escapeExpression,s=null!=t?t:e.nullContext||{},c=e.hooks.helperMissing;return' <div class="col-6 form-group">\r\n <label class="d-block" for="'+l(a(null!=(r=null!=t?t.options:t)?r.timeId:r,t))+'">'+l((n.lang||t&&t.lang||c).call(s,"startTimeLabel",{name:"lang",hash:{},data:o}))+'</label>\r\n <input\r\n class="form-control d-inline-block col-3 time-input hour-input"\r\n type="number"\r\n placeholder="'+l((n.lang||t&&t.lang||c).call(s,"hoursPlaceholder",{name:"lang",hash:{},data:o}))+'"\r\n name="hours"\r\n autocomplete="off"\r\n '+(null!=(r=n.if.call(s,null!=(r=null!=t?t.options:t)?r.hrDisabled:r,{name:"if",hash:{},fn:e.program(2,o,0),inverse:e.noop,data:o}))?r:"")+'> <b>:</b>\r\n <input\r\n class="form-control d-inline-block col-3 time-input minute-input"\r\n type="number"\r\n placeholder="'+l((n.lang||t&&t.lang||c).call(s,"minutesPlaceholder",{name:"lang",hash:{},data:o}))+'"\r\n name="minutes"\r\n autocomplete="off"\r\n '+(null!=(r=n.if.call(s,null!=(r=null!=t?t.options:t)?r.minDisabled:r,{name:"if",hash:{},fn:e.program(2,o,0),inverse:e.noop,data:o}))?r:"")+'> <b>:</b>\r\n <input\r\n class="form-control d-inline-block col-3 time-input second-input"\r\n type="number"\r\n placeholder="'+l((n.lang||t&&t.lang||c).call(s,"secondsPlaceholder",{name:"lang",hash:{},data:o}))+'"\r\n name="seconds"\r\n id="'+l(a(null!=(r=null!=t?t.options:t)?r.timeId:r,t))+'"\r\n autocomplete="off"\r\n '+(null!=(r=n.if.call(s,null!=(r=null!=t?t.options:t)?r.secDisabled:r,{name:"if",hash:{},fn:e.program(2,o,0),inverse:e.noop,data:o}))?r:"")+'>\r\n <div class="form-feedback"></div>\r\n </div>\r\n'},2:function(e,t,n,i,o){return"disabled"},4:function(e,t,n,i,o){var r;e.propertyIsEnumerable;return' <button type="submit" class="btn btn-primary btn-sm ml-2">\r\n <span class="d-inline-block align-middle svg-container">'+(null!=(r=e.lambda(null!=(r=null!=t?t.options:t)?r.plusSvg:r,t))?r:"")+'</span>\r\n <span class="align-middle">'+e.escapeExpression((n.lang||t&&t.lang||e.hooks.helperMissing).call(null!=t?t:e.nullContext||{},"add",{name:"lang",hash:{},data:o}))+"</span>\r\n </button>\r\n"},6:function(e,t,n,i,o){e.propertyIsEnumerable;var r=null!=t?t:e.nullContext||{},a=e.hooks.helperMissing,l=e.escapeExpression;return' <button type="submit" class="btn btn-primary btn-sm ml-2">'+l((n.lang||t&&t.lang||a).call(r,"save",{name:"lang",hash:{},data:o}))+'</button>\r\n <button type="button" class="btn btn-secondary btn-sm cancel ml-2">'+l((n.lang||t&&t.lang||a).call(r,"cancel",{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=e.lambda,l=e.escapeExpression,s=null!=t?t:e.nullContext||{},c=e.hooks.helperMissing;return'<div class="row">\r\n <div class="col-6 form-group">\r\n <label for="'+l(a(null!=(r=null!=t?t.options:t)?r.chapterId:r,t))+'">'+l((n.lang||t&&t.lang||c).call(s,"nameLabel",{name:"lang",hash:{},data:o}))+'</label>\r\n <input type="text" class="form-control chapter-name" name="name" id="'+l(a(null!=(r=null!=t?t.options:t)?r.chapterId:r,t))+'" placeholder="'+l((n.lang||t&&t.lang||c).call(s,"namePlaceholder",{name:"lang",hash:{},data:o}))+'" autofocus autocomplete="off">\r\n <div class="form-feedback"></div>\r\n </div>\r\n'+(null!=(r=n.if.call(s,null!=(r=null!=t?t.options:t)?r.enabled:r,{name:"if",hash:{},fn:e.program(1,o,0),inverse:e.noop,data:o}))?r:"")+'</div>\r\n\r\n<div class="row">\r\n'+(null!=(r=n.if.call(s,null!=(r=null!=t?t.options:t)?r.creating:r,{name:"if",hash:{},fn:e.program(4,o,0),inverse:e.noop,data:o}))?r:"")+"\r\n"+(null!=(r=n.if.call(s,null!=(r=null!=t?t.options:t)?r.editing:r,{name:"if",hash:{},fn:e.program(6,o,0),inverse:e.noop,data:o}))?r:"")+"</div>"},useData:!0})},1321: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 e.escapeExpression(e.lambda(null!=(r=null!=(r=null!=t?t.options:t)?r.styles:r)?r.loading:r,t))},3:function(e,t,n,i,o){e.propertyIsEnumerable;var r,a=e.lambda,l=e.escapeExpression,s=null!=t?t:e.nullContext||{};return' <div class="col-2 text-right">\r\n <a class="action edit-chapter my-2 svg-container '+l(a(null!=(r=null!=(r=null!=t?t.options:t)?r.styles:r)?r.svgContainer:r,t))+' d-inline-block text-muted"\r\n title="'+l((n.lang||t&&t.lang||e.hooks.helperMissing).call(s,"edit",{name:"lang",hash:{},data:o}))+'">'+(null!=(r=a(null!=(r=null!=t?t.options:t)?r.editSvg:r,t))?r:"")+"</a>\r\n"+(null!=(r=n.if.call(s,null!=(r=null!=t?t.options:t)?r.allowDelete:r,{name:"if",hash:{},fn:e.program(4,o,0),inverse:e.noop,data:o}))?r:"")+" </div>\r\n"},4:function(e,t,n,i,o){e.propertyIsEnumerable;var r,a=e.lambda,l=e.escapeExpression;return' <a class="action delete-chapter my-2 svg-container '+l(a(null!=(r=null!=(r=null!=t?t.options:t)?r.styles:r)?r.svgContainer:r,t))+' d-inline-block text-muted"\r\n title="'+l((n.lang||t&&t.lang||e.hooks.helperMissing).call(null!=t?t:e.nullContext||{},"delete",{name:"lang",hash:{},data:o}))+'">'+(null!=(r=a(null!=(r=null!=t?t.options:t)?r.deleteSvg:r,t))?r:"")+"</a>\r\n"},compiler:[8,">= 4.3.0"],main:function(e,t,n,i,o){e.propertyIsEnumerable;var r,a,l=null!=t?t:e.nullContext||{},s=e.lambda,c=e.escapeExpression;return'<div class="row mx-0 border-top chapter-item '+(null!=(r=n.if.call(l,null!=(r=null!=t?t.options:t)?r.loading:r,{name:"if",hash:{},fn:e.program(1,o,0),inverse:e.noop,data:o}))?r:"")+'">\r\n <div class="clickable-seek col-1">\r\n <p class="m-0 py-2">'+c(s(null!=(r=null!=t?t.options:t)?r.index:r,t))+'</p>\r\n </div>\r\n <div class="clickable-seek col-6">\r\n <p class="m-0 py-2">'+c("function"==typeof(a=null!=(a=n.name||(null!=t?t.name:t))?a:e.hooks.helperMissing)?a.call(l,{name:"name",hash:{},data:o}):a)+'</p>\r\n </div>\r\n <div class="clickable-seek col-3 text-right">\r\n <p class="m-0 py-2">'+c(s(null!=(r=null!=t?t.options:t)?r.time:r,t))+"</p>\r\n </div>\r\n"+(null!=(r=n.if.call(l,null!=(r=null!=t?t.options:t)?r.showActions:r,{name:"if",hash:{},fn:e.program(3,o,0),inverse:e.noop,data:o}))?r:"")+'</div>\r\n<div class="edit-form-region"></div>\r\n'},useData:!0})},1322:function(e,t,n){e.exports={darkBackground:"_2jtQl",loading:"_152ia",svgContainer:"xdD5o",chapterItem:"_3G38c"}},1323: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=null!=t?t:e.nullContext||{},a=e.hooks.helperMissing,l=e.escapeExpression;return"<h5>"+l((n.lang||t&&t.lang||a).call(r,"chapters",{name:"lang",hash:{},data:o}))+'</h5>\r\n<div class="row mt-3 m-0 border-bottom">\r\n <div class="col-1">\r\n <label>#</label>\r\n </div>\r\n <div class="col-6">\r\n <label>'+l((n.lang||t&&t.lang||a).call(r,"nameLabel",{name:"lang",hash:{},data:o}))+'</label>\r\n </div>\r\n <div class="col-3 text-right">\r\n <label>'+l((n.lang||t&&t.lang||a).call(r,"startLabel",{name:"lang",hash:{},data:o}))+'</>\r\n </div>\r\n</div>\r\n<div class="chapter-list-region"></div>'},useData:!0})},1332:function(e,t,n){"use strict";n.d(t,"a",(function(){return v}));var i=n(2),o=n(253),r=n(12),a=n(3),l=n(294),s=n(189),c=n(1333),u=n.n(c),p=n(1334),h=n.n(p);function f(e){return(f="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}function d(e,t){for(var n=0;n<t.length;n++){var 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 y(e){var t=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Date.prototype.toString.call(Reflect.construct(Date,[],(function(){}))),!0}catch(e){return!1}}();return function(){var n,i=b(e);if(t){var o=b(this).constructor;n=Reflect.construct(i,arguments,o)}else n=i.apply(this,arguments);return g(this,n)}}function g(e,t){return!t||"object"!==f(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 b(e){return(b=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&&m(e,t)}(f,e);var t,n,c,p=y(f);function f(e){return function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,f),p.call(this,e)}return t=f,(n=[{key:"initialize",value:function(){this.spinnerModel=new i.a.Model({showSpinner:this.isProcessing()}),this.listenTo(this.options.channelName,s.LibraryEditorActions.MergeChapters,this.onClickMergeChapters)}},{key:"regions",value:function(){return{button:{el:".btn-region",replaceElement:!0}}}},{key:"onClickMergeChapters",value:function(){this.spinnerModel.set(o.c.ShowSpinner,!0),this.render()}},{key:"isProcessing",value:function(){return!(!this.model||!this.model.get("status")||this.model.get("status")!==l.a.New&&this.model.get("status")!==l.a.Concatenating)}},{key:"renderButton",value:function(){var e={chapters:a.a.getPhrase(this.lang,"mergeChapters"),subtitles:a.a.getPhrase(this.lang,"mergeChapters"),clickViewSubtitles:a.a.getPhrase(this.lang,"enabledCustomSubtitles")},t=new o.a({buttonText:e[this.options.type],extraButtonClass:"btn-primary ".concat(h.a.btn),model:this.spinnerModel,spinnerOptions:{size:r.r.Small,type:r.s.Light,extraClasses:"mx-auto"},channelName:this.options.channelName,saveEvent:s.LibraryEditorActions.MergeChapters});this.showChildView("button",t)}},{key:"viewOptions",value:function(){var e={chapters:{heading:a.a.getPhrase(this.lang,"chaptersHeading"),line1:a.a.getPhrase(this.lang,"chaptersInfo1"),line2:a.a.getPhrase(this.lang,"chaptersInfo2")},subtitles:{heading:a.a.getPhrase(this.lang,"subtitlesHeading"),line1:a.a.getPhrase(this.lang,"subtitlesInfo1"),line2:a.a.getPhrase(this.lang,"subtitlesInfo2")},clickViewSubtitles:{heading:a.a.getPhrase(this.lang,"cvSubtitlesHeading"),line1:a.a.getPhrase(this.lang,"cvSubtitlesInfo1"),line2:a.a.getPhrase(this.lang,"cvSubtitlesInfo2")}};return{progress:this.model&&this.model.get("progress")&&a.a.getPhrase(this.lang,"progress",{progress:this.model.get("progress")}),componentOptions:e[this.options.type],processing:this.spinnerModel.get(o.c.ShowSpinner),failed:this.model&&this.model.get("status")&&this.model.get("status")===l.a.ConcatenationFailed}}},{key:"onRender",value:function(){this.renderButton()}},{key:"name",get:function(){return"ConcatenateRequestComponent"}},{key:"template",get:function(){return u.a}},{key:"lang",get:function(){return"libraryEditor.concatenateRequest"}},{key:"className",get:function(){return"mt-3"}}])&&d(t.prototype,n),c&&d(t,c),f}(i.a.Component)},1333: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 null!=(r=n.if.call(null!=t?t:e.nullContext||{},null!=(r=null!=t?t.options:t)?r.progress:r,{name:"if",hash:{},fn:e.program(2,o,0),inverse:e.noop,data:o}))?r:""},2:function(e,t,n,i,o){e.propertyIsEnumerable;var r,a=e.escapeExpression;return' <span class="m-3 text-muted">'+a(e.lambda(null!=(r=null!=t?t.options:t)?r.progress:r,t))+'</span>\r\n <p class="pt-2">'+a((n.lang||t&&t.lang||e.hooks.helperMissing).call(null!=t?t:e.nullContext||{},"processing",{name:"lang",hash:{},data:o}))+"</p>\r\n"},4: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.failed:r,{name:"if",hash:{},fn:e.program(5,o,0),inverse:e.noop,data:o}))?r:""},5:function(e,t,n,i,o){e.propertyIsEnumerable;return'<p class="pt-2 text-danger">'+e.escapeExpression((n.lang||t&&t.lang||e.hooks.helperMissing).call(null!=t?t:e.nullContext||{},"failed",{name:"lang",hash:{},data:o}))+"</p>\r\n"},compiler:[8,">= 4.3.0"],main:function(e,t,n,i,o){e.propertyIsEnumerable;var r,a=e.lambda,l=e.escapeExpression;return"<h4>"+l(a(null!=(r=null!=(r=null!=t?t.options:t)?r.componentOptions:r)?r.heading:r,t))+"</h4>\r\n<p>"+l(a(null!=(r=null!=(r=null!=t?t.options:t)?r.componentOptions:r)?r.line1:r,t))+"</p>\r\n<p>"+l(a(null!=(r=null!=(r=null!=t?t.options:t)?r.componentOptions:r)?r.line2:r,t))+'</p>\r\n<div class="btn-region"></div>\r\n'+(null!=(r=n.if.call(null!=t?t:e.nullContext||{},null!=(r=null!=t?t.options:t)?r.processing:r,{name:"if",hash:{},fn:e.program(1,o,0),inverse:e.program(4,o,0),data:o}))?r:"")},useData:!0})},1334:function(e,t,n){e.exports={btn:"_59zg9"}},1367:function(e,t,n){"use strict";var i=n(2),o=n(6),r=n(15),a=n(135),l=n(12),s=n(1297),c=n(189),u=n(1321),p=n.n(u),h=n(1322),f=n.n(h);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 m(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 y(e,t){return(y=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=v(e);if(t){var o=v(this).constructor;n=Reflect.construct(i,arguments,o)}else n=i.apply(this,arguments);return b(this,n)}}function b(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 v(e){return(v=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)})(e)}var k=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&&y(e,t)}(h,e);var t,n,i,u=g(h);function h(e){return function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,h),u.call(this,e)}return t=h,(n=[{key:"initialize",value:function(){this.bindListeners()}},{key:"regions",value:function(){return{editForm:{replaceElement:!1,el:".edit-form-region"}}}},{key:"events",value:function(){return{"click @ui.editChapter":"onEditChapter","click @ui.deleteChapter":"onDeleteChapter","click .clickable-seek":"onClick"}}},{key:"bindListeners",value:function(){this.listenTo(this.instanceChannelName,c.LibraryEditorActions.CancelChapterEdit,this.onCancelEdit),this.listenTo(this.instanceChannelName,c.LibraryEditorActions.UpdateChapter,this.onUpdateChapter),this.listenTo(this.instanceChannelName,c.LibraryEditorActions.UpdateChapterTime,this.onUpdateChapterTime),this.listenTo(this.model,"change:showEditor",this.onShowEditorChange),this.listenTo(this.model,"change:loading",this.onLoadingChange);var e=this.model.collection.first();this.model!==e?this.listenTo(this.model.collection,"sort",this.render):this.listenTo(this.model.collection,"add remove sort",this.render)}},{key:"onClick",value:function(){var e=o.Radio.channel(this.options.channelName);this.model.get("isPhysicalChapter")?e.trigger(c.LibraryEditorActions.SeekToChapter,this.model.get("index")):e.trigger(c.LibraryEditorActions.UpdateChapterTime,this.model.get("startTime"))}},{key:"onLoadingChange",value:function(){var e=this.model.get("loading")?"disable":"enable";this.getUI("editChapter").tooltip(e),this.getUI("deleteChapter").tooltip(e),this.model.set("showEditor",!1,{silent:!0}),this.render()}},{key:"onShowEditorChange",value:function(){this.model.get("loading")||(this.model.get("showEditor")?this.showEditView():this.hideEditView())}},{key:"showEditView",value:function(){this.renderEditForm(),this.getUI("chapterItem").addClass(f.a.darkBackground)}},{key:"hideEditView",value:function(){this.model.set("showEditor",!1,{silent:!0}),this.getUI("chapterItem").removeClass(f.a.darkBackground),this.detachChildView("editForm")}},{key:"onCancelEdit",value:function(){this.hideEditView()}},{key:"onDeleteChapter",value:function(){this.model.get("loading")||o.Radio.channel(this.options.channelName).trigger(c.LibraryEditorActions.DeleteChapter,this.model)}},{key:"onUpdateChapter",value:function(e){o.Radio.channel(this.options.channelName).trigger(c.LibraryEditorActions.UpdateChapter,e),this.render()}},{key:"onUpdateChapterTime",value:function(e){o.Radio.channel(this.options.channelName).trigger(c.LibraryEditorActions.UpdateChapterTime,e)}},{key:"onEditChapter",value:function(){o.Radio.channel(this.options.channelName).trigger(c.LibraryEditorActions.ToggleEdit,this.model)}},{key:"canDelete",value:function(e){var t=this.model.collection.length;return 1===e&&1===t||!(1===e&&t>1)}},{key:"viewOptions",value:function(){var e=this.model.collection.indexOf(this.model)+1,t=l.w.trimToMinutes(l.w.secondsToHoursFormatted(this.model.get("startTime")));return Object.assign(Object.assign({},this.options),{styles:f.a,time:t,index:e,loading:this.model.get("loading"),allowDelete:this.canDelete(e),editSvg:r.a.getSvg(r.b.Edit),deleteSvg:r.a.getSvg(r.b.Delete)})}},{key:"renderEditForm",value:function(){this.showChildView("editForm",new s.a({model:this.model,editing:!0,channelName:this.instanceChannelName,duration:this.options.duration}))}},{key:"onBeforeDetach",value:function(){$(".tooltip").remove()}},{key:"name",get:function(){return"ChapterItemComponent"}},{key:"lang",get:function(){return"libraryEditor.chapterItem"}},{key:"instanceChannelName",get:function(){return"".concat(this.name).concat(this.cid)}},{key:"template",get:function(){return p.a}},{key:"className",get:function(){return"chapter ".concat(f.a.chapterItem)}},{key:"behaviors",get:function(){return[{behaviorClass:a.a,selector:".action"}]}},{key:"elements",get:function(){return{chapterItem:".chapter-item",editChapter:".edit-chapter",deleteChapter:".delete-chapter"}}}])&&m(t.prototype,n),i&&m(t,i),h}(i.a.Component);function w(e){return(w="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}function C(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 E(e,t){return(E=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e})(e,t)}function T(e){var t=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Date.prototype.toString.call(Reflect.construct(Date,[],(function(){}))),!0}catch(e){return!1}}();return function(){var n,i=O(e);if(t){var o=O(this).constructor;n=Reflect.construct(i,arguments,o)}else n=i.apply(this,arguments);return S(this,n)}}function S(e,t){return!t||"object"!==w(t)&&"function"!=typeof t?function(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}(e):t}function O(e){return(O=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)})(e)}var P=function(e){!function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),t&&E(e,t)}(r,e);var t,n,i,o=T(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.bindEditorListeners()}},{key:"bindEditorListeners",value:function(){this.options.editable&&this.listenTo(this.options.channelName,c.LibraryEditorActions.ToggleEdit,this.toggleEditForm)}},{key:"toggleEditForm",value:function(e){this.collection.each((function(t){return t!==e&&t.set("showEditor",!1)})),e.set("showEditor",!e.get("showEditor"))}},{key:"name",get:function(){return"ChapterComponentCollection"}},{key:"className",get:function(){return"chapters"}},{key:"childView",get:function(){return k}},{key:"childViewOptions",get:function(){return{showActions:this.options.showActions,duration:this.options.duration,channelName:this.options.channelName}}}])&&C(t.prototype,n),i&&C(t,i),r}(i.a.ComponentCollection),R=n(1323),x=n.n(R);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 D(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 I(e,t){return(I=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e})(e,t)}function N(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=L(e);if(t){var o=L(this).constructor;n=Reflect.construct(i,arguments,o)}else n=i.apply(this,arguments);return j(this,n)}}function j(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 L(e){return(L=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)})(e)}n.d(t,"a",(function(){return V}));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&&I(e,t)}(r,e);var t,n,i,o=N(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:"regions",value:function(){return{chapterList:{replaceElement:!0,el:".chapter-list-region"}}}},{key:"viewOptions",value:function(){return{showHeader:this.options.showHeader}}},{key:"onRender",value:function(){this.showChildView("chapterList",new P({collection:this.collection,duration:this.options.duration,channelName:this.options.channelName,showActions:this.options.showActions,editable:this.options.editable}))}},{key:"name",get:function(){return"ChaptersComponent"}},{key:"template",get:function(){return x.a}},{key:"lang",get:function(){return"libraryEditor.chapters"}},{key:"className",get:function(){return"chapters ".concat(!this.options.editable&&"py-3 border-top")}}])&&D(t.prototype,n),i&&D(t,i),r}(i.a.Component)},1460: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 w-100"></div>\r\n<div class="row">\r\n <div class="col-6 pt-3">\r\n <div class="webplayer-region"></div>\r\n <div class="add-chapter-region"></div>\r\n </div>\r\n <div class="col-6 mb-2 pt-3">\r\n <div class="chapter-list-region"></div>\r\n </div>\r\n</div>'},useData:!0})},1605:function(e,t,n){"use strict";n.r(t),n.d(t,"EditChaptersView",(function(){return j}));var i=n(1),o=n(2),r=n(5),a=n(3),l=n(115),s=n(342),c=n(184),u=n(12),p=n(0),h=n(190),f=n(9),d=n(4),m=n(42),y=n(1366),g=n(304),b=n(1291),v=n(1332),k=n(1297),w=n(1367),C=n(195),E=n(189),T=n(1216),S=n(1460),O=n.n(S),P=n(294);function R(e){return(R="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}function x(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 _(e,t){return(_=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=N(e);if(t){var o=N(this).constructor;n=Reflect.construct(i,arguments,o)}else n=i.apply(this,arguments);return I(this,n)}}function I(e,t){return!t||"object"!==R(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 N(e){return(N=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)})(e)}var j=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&&_(e,t)}(I,e);var t,n,S,R=D(I);function I(e){return function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,I),R.call(this,e)}return t=I,(n=[{key:"initialize",value:function(){this.bindListeners(),this.initializeDataServices(),u.u.initBackButton()}},{key:"regions",value:function(){return{tabs:{el:".tab-region",partialLoading:f.h.EditVideoTabs},webplayer:{replaceElement:!0,el:".webplayer-region",partialLoading:f.h.WebPlayer},addChapter:{replaceElement:!0,el:".add-chapter-region",partialLoading:f.h.EditVideoChaptersForm},chapterList:{replaceElement:!0,el:".chapter-list-region",partialLoading:f.h.EditVideoChapterList}}}},{key:"bindListeners",value:function(){this.listenTo(p.e.VIDEO,"".concat(p.f.VIDEOS,":").concat(this.options.videoId,":sync"),this.render),this.listenTo(p.e.VIDEO,"".concat(p.f.VIDEOS,":").concat(this.options.videoId,":error"),this.onVideoDataError),this.listenTo(p.e.VIDEO,"".concat(p.f.VIDEO_HAS_PHYSICAL_CHAPTERS,":").concat(this.options.videoId,":sync"),this.render),this.listenTo(p.e.CHAPTER,"".concat(p.f.CONCATENATE_STATUS,":").concat(this.options.videoId,":error"),this.onConcatenateDataError),this.listenTo(this.channelName,E.LibraryEditorActions.CreateChapter,this.onCreateChapter),this.listenTo(this.channelName,E.LibraryEditorActions.UpdateChapter,this.onUpdateChapter),this.listenTo(this.channelName,E.LibraryEditorActions.DeleteChapter,this.onDeleteChapter),this.listenTo(this.channelName,E.LibraryEditorActions.UpdateChapterTime,this.onTimeInputUpdate),this.listenTo(this.channelName,E.LibraryEditorActions.SeekToChapter,this.onSeekToChapter),this.listenTo(this.channelName,E.LibraryEditorActions.MergeChapters,this.onMergeChapters)}},{key:"initializeDataServices",value:function(){this.videoDataService=r.a.getInstance(p.g.Video,this),this.chapterDataService=r.a.getInstance(p.g.Chapter,this)}},{key:"onVideoDataError",value:function(e){switch(e.type){case l.a.NotFound:o.a.ErrorHelper.throw(new C.l);break;case l.a.Forbidden:o.a.ErrorHelper.throw(new C.f)}}},{key:"onConcatenateDataError",value:function(e){e.type===l.a.NotFound&&(this.concatenateRequestNotFound=!0,this.render())}},{key:"onCreateChapter",value:function(e){0===this.chapters.length&&0!==e.startTime&&this.createChapter({name:a.a.getPhrase(this.lang,"intro"),startTime:0}),this.createChapter(e)}},{key:"createChapter",value:function(e){var t=this,n=new c.a(e);this.chapters.add(n),n.set("loading",!0),this.chapterDataService.createChapter(this.model.get("id"),e.name,e.startTime,(function(e){n.set(e.toJSON(),{silent:!0}),n.set("loading",!1),t.chapters.sort(),t.renderChapterForm(),t.logAction(e,d.UserAction.Create)}))}},{key:"onUpdateChapter",value:function(e){var t=this,n=this.chapters.find((function(t){return t.get("id")===e.id}));n.set("loading",!0);var i=g.a.updatedChaptersAlert(this.model.get("name"));this.chapterDataService.updateChapter(n.id,e.name,e.startTime,(function(e){n.set(e.toJSON(),{silent:!0}),n.set("loading",!1),t.chapters.sort(),t.logAction(e,d.UserAction.Edit)}),i)}},{key:"onDeleteChapter",value:function(e){var t=this;e.set("loading",!0),this.chapterDataService.deleteChapter(e.id,(function(){t.logAction(e,d.UserAction.Delete),t.chapters.remove(e)}))}},{key:"onMergeChapters",value:function(){var e=this;this.chapterDataService.addConcatenateRequest(this.options.videoId,(function(){e.pollConcatenation()}))}},{key:"onTimeInputUpdate",value:function(e){e>=0&&e<=u.w.millisecondsToSeconds(this.model.get("duration"))&&this.player.seekTo(e)}},{key:"logAction",value:function(e,t){var n=Object.assign({videoId:this.model.get("id")},e.pick("id","name","startTime"));m.a.logUserAction(n,{actionType:t,entity:d.EntityType.Chapter,location:d.LocationContext.EditVideoChapters})}},{key:"onSeekToChapter",value:function(e){e<0||this.player.seekToChapter(e)}},{key:"startPollingConcatenation",value:function(){if(this.concatenateRequest){var e=[P.a.SingleFile,P.a.ConcatenationFailed];i.contains(e,this.concatenateRequest.get("status"))||this.pollConcatenation()}}},{key:"pollConcatenation",value:function(){var e=this;this.isDestroyed()||this.chapterDataService.getConcatenateRequest(this.options.videoId,(function(t){if(e.concatenateRequest=t,e.concatenateRequest.get("status")!==P.a.SingleFile)return setTimeout((function(){return e.pollConcatenation()}),5e3),void e.renderConcatenationRequest();e.videoDataService.clearPhysicialChaptersCache(),e.render()}))}},{key:"renderChapterList",value:function(){this.showChildView("chapterList",new w.a({collection:this.chapters,duration:this.model.get("duration"),channelName:this.channelName,showActions:!this.hasPhysicalChapters.get("value"),editable:!this.hasPhysicalChapters.get("value"),showHeader:!0}))}},{key:"renderChapterForm",value:function(){this.showChildView("addChapter",new k.a({model:new c.a,collection:this.chapters,creating:!0,duration:this.model.get("duration"),channelName:this.channelName,playerViewModelKey:"".concat(p.z.NAME,"-").concat(this.model.get("id"))}))}},{key:"renderConcatenationRequest",value:function(){this.isRendered()&&this.showChildView("addChapter",new v.a({type:"chapters",channelName:this.channelName,model:this.concatenateRequest}))}},{key:"renderEditComponents",value:function(){if(this.hasPhysicalChapters.get("value"))return this.renderConcatenationRequest(),void this.mapPhysicalChapters();this.renderChapterForm(),this.renderChapterList()}},{key:"renderTabs",value:function(){this.showChildView("tabs",new b.a({tabs:u.u.getEditVideoTabs(this.options.videoId),activeTab:".edit-chapters-applink",goBackTab:u.u.getBackButton(this.options.videoId)}))}},{key:"renderWebPlayer",value:function(){this.player=new y.a({model:this.model,webPlayerUrl:this.config.get("webPlayerUrl"),captureAnalytics:!1}),this.showChildView("webplayer",this.player)}},{key:"mapPhysicalChapters",value:function(){var e=this;this.renderPartialLoading("chapterList"),this.player.query("getChapters",(function(t){e.chapters=new s.a(T.a.mapPhysicalChapters(t)),e.renderChapterList()}))}},{key:"redirectToVideoDetails",value:function(){o.a.AppLinkHelper.trigger({application:p.b.LIBRARY_EDITOR,action:p.a.LibraryEditor.VIDEO_DETAILS,args:[this.model.get("id")]},{replace:!0})}},{key:"fetchData",value:function(){var e=this;if(this.model=this.videoDataService.getVideo(this.options.videoId),this.model){if(!u.j.canEditVideo(this.model))return void this.redirectToVideoDetails();this.chapters=this.model.chapters}this.hasPhysicalChapters=this.videoDataService.hasPhysicalChapters(this.options.videoId),this.hasPhysicalChapters&&this.hasPhysicalChapters.get("value")&&!this.getConcatenateRequestSent&&(this.chapterDataService.getConcatenateRequest(this.options.videoId,(function(t){e.concatenateRequest=t,e.render()})),this.getConcatenateRequestSent=!0)}},{key:"shouldRender",value:function(){return!(!this.model||!this.hasPhysicalChapters||this.hasPhysicalChapters.get("value")&&!this.concatenateRequest&&!this.concatenateRequestNotFound)}},{key:"onBeforeRender",value:function(){return this.fetchData(),this.shouldRender()}},{key:"onRender",value:function(){this.renderTabs(),this.renderWebPlayer(),this.renderEditComponents(),this.startPollingConcatenation()}},{key:"name",get:function(){return"EditVideoChaptersView"}},{key:"title",get:function(){return!!this.model&&this.model.get("name")}},{key:"lang",get:function(){return"libraryEditor.editChapters"}},{key:"channelName",get:function(){return"".concat(this.name).concat(this.cid)}},{key:"className",get:function(){return"bg-white p-3"}},{key:"template",get:function(){return O.a}},{key:"requiredResources",get:function(){return{config:h.b.config}}}])&&x(t.prototype,n),S&&x(t,S),I}(o.a.View)}}]);