@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([[31],{1224:function(t,e,n){"use strict";n.d(e,"a",(function(){return f}));var o=n(1),r=n(2),i=n(298);function a(t){return(a="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t})(t)}function l(t,e){for(var n=0;n<e.length;n++){var o=e[n];o.enumerable=o.enumerable||!1,o.configurable=!0,"value"in o&&(o.writable=!0),Object.defineProperty(t,o.key,o)}}function s(t,e){return(s=Object.setPrototypeOf||function(t,e){return t.__proto__=e,t})(t,e)}function c(t){var e=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Date.prototype.toString.call(Reflect.construct(Date,[],(function(){}))),!0}catch(t){return!1}}();return function(){var n,o=p(t);if(e){var r=p(this).constructor;n=Reflect.construct(o,arguments,r)}else n=o.apply(this,arguments);return u(this,n)}}function u(t,e){return!e||"object"!==a(e)&&"function"!=typeof e?function(t){if(void 0===t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return t}(t):e}function p(t){return(p=Object.setPrototypeOf?Object.getPrototypeOf:function(t){return t.__proto__||Object.getPrototypeOf(t)})(t)}var f=function(t){!function(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function");t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,writable:!0,configurable:!0}}),e&&s(t,e)}(u,t);var e,n,r,a=c(u);function u(t){return function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,u),a.call(this,t)}return e=u,(n=[{key:"initialize",value:function(){this.listenTo(this.options.channelName,"center:dropdown",this.centerSelectedItem)}},{key:"getExtraClasses",value:function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},e=t.alignment,n=void 0===e?"left":e,o=t.extraClasses,r="dropdown-menu-".concat(n);return o&&(r="".concat(r," ").concat(o)),r}},{key:"centerSelectedItem",value:function(){var t=this.$el.find(".active");if(t.length){var e=this.$el.scrollTop()+t.position().top,n=.5*this.$el.height()+.5*t.height();this.$el.scrollTop(e-n)}}},{key:"name",get:function(){return"DropdownCollectionComponent"}},{key:"className",get:function(){return"dropdown-menu items-viewpart ".concat(this.getExtraClasses(this.options.displayOptions))}},{key:"attributes",get:function(){return{"aria-labelledby":"dropdownSelector"}}},{key:"childView",get:function(){return i.a}},{key:"childViewOptions",get:function(){var t={channelName:this.options.channelName,analyticsHelper:this.options.analyticsHelper};return o.extend(t,this.options.childOptions)}}])&&l(e.prototype,n),r&&l(e,r),u}(r.a.ComponentCollection)},1281:function(t,e,n){"use strict";var o=n(2),r=n(15),i=n(83),a=n(4),l=n(42),s=n(1224),c=n(0),u=n(3),p=n(1284),f=n.n(p);function y(t){return(y="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t})(t)}function d(t,e){for(var n=0;n<e.length;n++){var o=e[n];o.enumerable=o.enumerable||!1,o.configurable=!0,"value"in o&&(o.writable=!0),Object.defineProperty(t,o.key,o)}}function h(t,e){return(h=Object.setPrototypeOf||function(t,e){return t.__proto__=e,t})(t,e)}function g(t){var e=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Date.prototype.toString.call(Reflect.construct(Date,[],(function(){}))),!0}catch(t){return!1}}();return function(){var n,o=m(t);if(e){var r=m(this).constructor;n=Reflect.construct(o,arguments,r)}else n=o.apply(this,arguments);return b(this,n)}}function b(t,e){return!e||"object"!==y(e)&&"function"!=typeof e?function(t){if(void 0===t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return t}(t):e}function m(t){return(m=Object.setPrototypeOf?Object.getPrototypeOf:function(t){return t.__proto__||Object.getPrototypeOf(t)})(t)}var v=function(t){!function(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function");t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,writable:!0,configurable:!0}}),e&&h(t,e)}(p,t);var e,n,r,i=g(p);function p(t){return function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,p),i.call(this,t)}return e=p,(n=[{key:"regions",value:function(){return{items:{el:".items-region",replaceElement:!0}}}},{key:"getFolderActions",value:function(){return[{title:u.a.getPhrase(this.lang,"addSubfolder"),analyticsOptions:l.a.mergeOptions(this.options.analyticsOptions,{actionType:a.UserAction.Create,entity:a.EntityType.Folder,workflowPhase:a.WorkflowPhase.Start}),appLink:{application:c.b.LIBRARY_EDITOR,action:c.a.LibraryEditor.NEW_SUB_FOLDER,args:[this.model.get("id")]}},{title:u.a.getPhrase(this.lang,"rename"),analyticsOptions:l.a.mergeOptions(this.options.analyticsOptions,{actionType:a.UserAction.Rename,entity:a.EntityType.Folder,workflowPhase:a.WorkflowPhase.Start}),appLink:{application:c.b.LIBRARY_EDITOR,action:c.a.LibraryEditor.RENAME_FOLDER,args:[this.model.get("id")]}},{title:u.a.getPhrase(this.lang,"move"),analyticsOptions:l.a.mergeOptions(this.options.analyticsOptions,{actionType:a.UserAction.Move,entity:a.EntityType.Folder,workflowPhase:a.WorkflowPhase.Start}),appLink:{application:c.b.LIBRARY_EDITOR,action:c.a.LibraryEditor.MOVE_FOLDER,args:[this.model.get("id")]}},{title:u.a.getPhrase(this.lang,"editImages"),analyticsOptions:l.a.mergeOptions(this.options.analyticsOptions,{actionType:a.UserAction.EditAssoc,entity:a.EntityType.Folder,workflowPhase:a.WorkflowPhase.Start,descriptor:a.AssocDescriptor.Image}),appLink:{application:c.b.LIBRARY_EDITOR,action:c.a.LibraryEditor.EDIT_FOLDER_IMAGES,args:[this.model.get("id")]}},{title:u.a.getPhrase(this.lang,"generatePdf"),analyticsOptions:l.a.mergeOptions(this.options.analyticsOptions,{actionType:a.UserAction.Create,entity:a.EntityType.PDF,workflowPhase:a.WorkflowPhase.Start}),appLink:{application:c.b.LIBRARY_EDITOR,action:c.a.LibraryEditor.GENERATE_PDF,args:[this.model.get("id")]}},{title:u.a.getPhrase(this.lang,"remove"),analyticsOptions:l.a.mergeOptions(this.options.analyticsOptions,{actionType:a.UserAction.Delete,entity:a.EntityType.Folder,workflowPhase:a.WorkflowPhase.Start}),classes:"text-danger",appLink:{application:c.b.LIBRARY_EDITOR,action:c.a.LibraryEditor.DELETE_FOLDER,args:[this.model.get("id")]}}]}},{key:"onRender",value:function(){this.showChildView("items",new s.a({analyticsHelper:l.a,displayOptions:{alignment:"right"},channelName:this.channelName,collection:new o.a.Collection(this.getFolderActions()),childOptions:{isDisabled:function(){return this.model.get("disabled")}}}))}},{key:"name",get:function(){return"FolderActionsDropdownComponent"}},{key:"template",get:function(){return f.a}},{key:"lang",get:function(){return"libraryEditor.folderActionsDropdown"}},{key:"channelName",get:function(){return"".concat(this.name).concat(this.cid)}}])&&d(e.prototype,n),r&&d(e,r),p}(o.a.Component),w=n(1285),O=n.n(w),k=n(1286),E=n.n(k);function R(t){return(R="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t})(t)}function _(t,e){for(var n=0;n<e.length;n++){var o=e[n];o.enumerable=o.enumerable||!1,o.configurable=!0,"value"in o&&(o.writable=!0),Object.defineProperty(t,o.key,o)}}function L(t,e){return(L=Object.setPrototypeOf||function(t,e){return t.__proto__=e,t})(t,e)}function C(t){var e=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Date.prototype.toString.call(Reflect.construct(Date,[],(function(){}))),!0}catch(t){return!1}}();return function(){var n,o=D(t);if(e){var r=D(this).constructor;n=Reflect.construct(o,arguments,r)}else n=o.apply(this,arguments);return S(this,n)}}function S(t,e){return!e||"object"!==R(e)&&"function"!=typeof e?function(t){if(void 0===t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return t}(t):e}function D(t){return(D=Object.setPrototypeOf?Object.getPrototypeOf:function(t){return t.__proto__||Object.getPrototypeOf(t)})(t)}n.d(e,"a",(function(){return T}));var T=function(t){!function(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function");t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,writable:!0,configurable:!0}}),e&&L(t,e)}(l,t);var e,n,o,a=C(l);function l(t){return function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,l),a.call(this,t)}return e=l,(n=[{key:"events",value:function(){return{"click @ui.dropdownToggle":"onClickDropdownToggle","click @ui.dropdownItem":"onClickDropdownItem"}}},{key:"regions",value:function(){return{items:{replaceElement:!0,el:".items-region"}}}},{key:"onClickDropdownToggle",value:function(){this.model instanceof i.a&&this.showChildView("items",new v({model:this.model,analyticsOptions:this.options.analyticsOptions}))}},{key:"onClickDropdownItem",value:function(t){t.stopPropagation(),t.preventDefault(),this.getUI("dropdownToggle").dropdown("toggle")}},{key:"viewOptions",value:function(){return{hasActions:this.model instanceof i.a,dropdownClass:"".concat(E.a.dropdownButton," ").concat(this.options.buttonClass),svg:r.a.getSvg(r.b.More)}}},{key:"name",get:function(){return"VideoCollectionActionsComponent"}},{key:"channelName",get:function(){return"".concat(this.name).concat(this.cid)}},{key:"className",get:function(){if(this.model instanceof i.a)return"position-absolute ".concat(this.options.overrideClasses?"":E.a.dropdownContainer," ").concat(this.options.extraClasses," ")}},{key:"elements",get:function(){return{dropdownToggle:".ui-dropdown-toggle",dropdownItem:".dropdown-item"}}},{key:"template",get:function(){return O.a}}])&&_(e.prototype,n),o&&_(e,o),l}(o.a.Component)},1284:function(t,e,n){var o=n(10);t.exports=(o.default||o).template({compiler:[8,">= 4.3.0"],main:function(t,e,n,o,r){return'<div class="items-region"></div>'},useData:!0})},1285:function(t,e,n){var o=n(10);t.exports=(o.default||o).template({1:function(t,e,n,o,r){t.propertyIsEnumerable;var i,a=t.lambda;return'<span data-toggle="dropdown" aria-haspopup="true" aria-expanded="false" class="'+t.escapeExpression(a(null!=(i=null!=e?e.options:e)?i.dropdownClass:i,e))+' d-inline-block ui-dropdown-toggle">\r\n '+(null!=(i=a(null!=(i=null!=e?e.options:e)?i.svg:i,e))?i:"")+'\r\n</span>\r\n<div class="items-region"></div>\r\n'},compiler:[8,">= 4.3.0"],main:function(t,e,n,o,r){var i;t.propertyIsEnumerable;return null!=(i=n.if.call(null!=e?e:t.nullContext||{},null!=(i=null!=e?e.options:e)?i.hasActions:i,{name:"if",hash:{},fn:t.program(1,r,0),inverse:t.noop,data:r}))?i:""},useData:!0})},1286:function(t,e,n){t.exports={dropdownContainer:"_2F3Cz",dropdownButton:"_2TdId"}},1307:function(t,e,n){"use strict";n.d(e,"a",(function(){return w}));var o=n(2),r=n(15),i=n(4),a=n(42),l=n(1224),s=n(0),c=n(3),u=n(1308),p=n.n(u),f=n(1309),y=n.n(f);function d(t){return(d="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t})(t)}function h(t,e){for(var n=0;n<e.length;n++){var o=e[n];o.enumerable=o.enumerable||!1,o.configurable=!0,"value"in o&&(o.writable=!0),Object.defineProperty(t,o.key,o)}}function g(t,e){return(g=Object.setPrototypeOf||function(t,e){return t.__proto__=e,t})(t,e)}function b(t){var e=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Date.prototype.toString.call(Reflect.construct(Date,[],(function(){}))),!0}catch(t){return!1}}();return function(){var n,o=v(t);if(e){var r=v(this).constructor;n=Reflect.construct(o,arguments,r)}else n=o.apply(this,arguments);return m(this,n)}}function m(t,e){return!e||"object"!==d(e)&&"function"!=typeof e?function(t){if(void 0===t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return t}(t):e}function v(t){return(v=Object.setPrototypeOf?Object.getPrototypeOf:function(t){return t.__proto__||Object.getPrototypeOf(t)})(t)}var w=function(t){!function(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function");t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,writable:!0,configurable:!0}}),e&&g(t,e)}(d,t);var e,n,u,f=b(d);function d(t){return function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,d),f.call(this,t)}return e=d,(n=[{key:"events",value:function(){return{"click @ui.dropdownToggle":"onClickDropdownToggle","click @ui.dropdownItem":"onClickDropdownItem"}}},{key:"regions",value:function(){return{dropdownItems:{replaceElement:!0,el:".items-region"}}}},{key:"onClickDropdownToggle",value:function(){this.showChildView("dropdownItems",new l.a({analyticsHelper:a.a,displayOptions:{alignment:"right"},channelName:this.channelName,collection:new o.a.Collection([{title:c.a.getPhrase(this.lang,"addFolder"),analyticsOptions:a.a.mergeOptions(this.options.analyticsOptions,{actionType:i.UserAction.Create,entity:i.EntityType.Folder,workflowPhase:i.WorkflowPhase.Start}),appLink:{application:s.b.LIBRARY_EDITOR,action:s.a.Shared.NEW_FOLDER,args:[this.model.get("id")]}},{title:c.a.getPhrase(this.lang,"rename"),analyticsOptions:a.a.mergeOptions(this.options.analyticsOptions,{actionType:i.UserAction.Rename,entity:i.EntityType.Library,workflowPhase:i.WorkflowPhase.Start}),appLink:{application:s.b.LIBRARY_EDITOR,action:s.a.LibraryEditor.RENAME_LIBRARY,args:[this.model.get("id")]}},{title:c.a.getPhrase(this.lang,"remove"),analyticsOptions:a.a.mergeOptions(this.options.analyticsOptions,{actionType:i.UserAction.Delete,entity:i.EntityType.Library,workflowPhase:i.WorkflowPhase.Start}),appLink:{application:s.b.LIBRARY_EDITOR,action:s.a.LibraryEditor.DELETE_LIBRARY,args:[this.model.get("id")]},classes:"text-danger"}])}))}},{key:"onClickDropdownItem",value:function(t){t.stopPropagation(),t.preventDefault(),this.getUI("dropdownToggle").dropdown("toggle")}},{key:"viewOptions",value:function(){return{dropdownClass:"".concat(y.a.dropdownButton," ").concat(this.options.buttonClass),svg:r.a.getSvg(r.b.More)}}},{key:"name",get:function(){return"LibraryActionsComponent"}},{key:"template",get:function(){return p.a}},{key:"channelName",get:function(){return"".concat(this.name).concat(this.cid)}},{key:"lang",get:function(){return"libraryEditor.libraryActions"}},{key:"className",get:function(){return"position-absolute ".concat(y.a.dropdownContainer," ").concat(this.options.extraClasses," ")}},{key:"elements",get:function(){return{dropdownToggle:".ui-dropdown-toggle",dropdownItem:".dropdown-item"}}}])&&h(e.prototype,n),u&&h(e,u),d}(o.a.Component)},1308:function(t,e,n){var o=n(10);t.exports=(o.default||o).template({compiler:[8,">= 4.3.0"],main:function(t,e,n,o,r){t.propertyIsEnumerable;var i,a=t.lambda;return'<span data-toggle="dropdown" aria-haspopup="true" aria-expanded="false" class="'+t.escapeExpression(a(null!=(i=null!=e?e.options:e)?i.dropdownClass:i,e))+' d-inline-block ui-dropdown-toggle">\r\n '+(null!=(i=a(null!=(i=null!=e?e.options:e)?i.svg:i,e))?i:"")+'\r\n</span>\r\n<div class="items-region"></div>'},useData:!0})},1309:function(t,e,n){t.exports={dropdownContainer:"_293SV",dropdownButton:"_23YxG"}},1489:function(t,e,n){var o=n(10);t.exports=(o.default||o).template({1:function(t,e,n,o,r){t.propertyIsEnumerable;var i,a=t.lambda,l=t.escapeExpression;return'<div class="'+l(a(null!=(i=null!=(i=null!=e?e.options:e)?i.styles:i)?i.addLibraryContainer:i,e))+'">\r\n <button class="applink-new-library btn btn-outline-secondary '+l(a(null!=(i=null!=(i=null!=e?e.options:e)?i.styles:i)?i.addLibrary:i,e))+'">\r\n <span class="'+l(a(null!=(i=null!=(i=null!=e?e.options:e)?i.styles:i)?i.plus:i,e))+' d-inline-block position-absolute">\r\n '+(null!=(i=a(null!=(i=null!=e?e.options:e)?i.plusSvg:i,e))?i:"")+"\r\n </span>\r\n "+l((n.lang||e&&e.lang||t.hooks.helperMissing).call(null!=e?e:t.nullContext||{},"newLibrary",{name:"lang",hash:{},data:r}))+"\r\n </button>\r\n</div>\r\n"},compiler:[8,">= 4.3.0"],main:function(t,e,n,o,r){var i;t.propertyIsEnumerable;return'<div class="logo-region"></div>\r\n<div class="folder-tree-region"></div>\r\n'+(null!=(i=n.if.call(null!=e?e:t.nullContext||{},null!=(i=null!=e?e.options:e)?i.canCreateLibraries:i,{name:"if",hash:{},fn:t.program(1,r,0),inverse:t.noop,data:r}))?i:"")},useData:!0})},1490:function(t,e,n){var o=n(10);t.exports=(o.default||o).template({1:function(t,e,n,o,r){var i;t.propertyIsEnumerable;return t.escapeExpression(t.lambda(null!=(i=null!=(i=null!=e?e.options:e)?i.styles:i)?i.disabled:i,e))},3:function(t,e,n,o,r){var i;t.propertyIsEnumerable;return t.escapeExpression(t.lambda(null!=(i=null!=(i=null!=e?e.options:e)?i.styles:i)?i.selected:i,e))},5:function(t,e,n,o,r){t.propertyIsEnumerable;var i,a=t.lambda;return' <span class="'+t.escapeExpression(a(null!=(i=null!=(i=null!=e?e.options:e)?i.styles:i)?i.caret:i,e))+' d-inline-block position-absolute">\r\n '+(null!=(i=a(null!=(i=null!=e?e.options:e)?i.caretSvg:i,e))?i:"")+"\r\n </span>\r\n"},compiler:[8,">= 4.3.0"],main:function(t,e,n,o,r){t.propertyIsEnumerable;var i,a,l=t.lambda,s=t.escapeExpression,c=null!=e?e:t.nullContext||{};return'<div class="position-relative border-bottom '+s(l(null!=(i=null!=(i=null!=e?e.options:e)?i.styles:i)?i.library:i,e))+" "+(null!=(i=n.if.call(c,null!=(i=null!=e?e.options:e)?i.disabled:i,{name:"if",hash:{},fn:t.program(1,r,0),inverse:t.noop,data:r}))?i:"")+'">\r\n <a class="position-relative library-event '+s(l(null!=(i=null!=(i=null!=e?e.options:e)?i.styles:i)?i.libraryAnchor:i,e))+" "+(null!=(i=n.if.call(c,null!=(i=null!=e?e.options:e)?i.open:i,{name:"if",hash:{},fn:t.program(3,r,0),inverse:t.noop,data:r}))?i:"")+' ui-anchor no-hover-text-underline">\r\n'+(null!=(i=n.if.call(c,null!=(i=null!=e?e.options:e)?i.hasFolders:i,{name:"if",hash:{},fn:t.program(5,r,0),inverse:t.noop,data:r}))?i:"")+' <span class="'+s(l(null!=(i=null!=(i=null!=e?e.options:e)?i.styles:i)?i.text:i,e))+' ui-text">'+s("function"==typeof(a=null!=(a=n.name||(null!=e?e.name:e))?a:t.hooks.helperMissing)?a.call(c,{name:"name",hash:{},data:r}):a)+'</span>\r\n </a>\r\n <div class="actions-region"></div>\r\n</div>\r\n<div class="folders-region"></div>'},useData:!0})},1491:function(t,e,n){t.exports={addLibrary:"_1O42p",addLibraryContainer:"_1HX0v",plus:"_3aHT2"}},1492:function(t,e,n){var o=n(10);t.exports=(o.default||o).template({1:function(t,e,n,o,r){t.propertyIsEnumerable;var i,a,l=t.escapeExpression;return'<img src="'+l("function"==typeof(a=null!=(a=n.url||(null!=e?e.url:e))?a:t.hooks.helperMissing)?a.call(null!=e?e:t.nullContext||{},{name:"url",hash:{},data:r}):a)+'" class="'+l(t.lambda(null!=(i=null!=(i=null!=e?e.options:e)?i.styles:i)?i.image:i,e))+'"/>\r\n'},3:function(t,e,n,o,r){t.propertyIsEnumerable;var i,a=t.lambda,l=t.escapeExpression;return'<a class="d-inline-flex align-items-center no-decoration '+l(a(null!=(i=null!=(i=null!=e?e.options:e)?i.styles:i)?i.addCrest:i,e))+'" href="'+l(a(null!=(i=null!=e?e.options:e)?i.uploadLogoUrl:i,e))+'" target="_blank">\r\n '+l((n.lang||e&&e.lang||t.hooks.helperMissing).call(null!=e?e:t.nullContext||{},"crest",{name:"lang",hash:{},data:r}))+"\r\n</a>\r\n"},compiler:[8,">= 4.3.0"],main:function(t,e,n,o,r){var i;t.propertyIsEnumerable;return null!=(i=n.if.call(null!=e?e:t.nullContext||{},null!=e?e.url:e,{name:"if",hash:{},fn:t.program(1,r,0),inverse:t.program(3,r,0),data:r}))?i:""},useData:!0})},1493:function(t,e,n){t.exports={image:"Cz1y1",addCrest:"_2PAV_"}},1652:function(t,e,n){"use strict";n.r(e);var o=n(2),r=n(15),i=n(61),a=n(0),l=n(138),s=n(1489),c=n.n(s),u=n(5),p=n(1243),f=n(1281),y=n(1490),d=n.n(y),h=n(1307),g=n(1372),b=n.n(g),m=n(12),v=n(30),w=n(1274),O=n(4);function k(t){return(k="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t})(t)}function E(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}function R(t,e){for(var n=0;n<e.length;n++){var o=e[n];o.enumerable=o.enumerable||!1,o.configurable=!0,"value"in o&&(o.writable=!0),Object.defineProperty(t,o.key,o)}}function _(t,e,n){return e&&R(t.prototype,e),n&&R(t,n),t}function L(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function");t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,writable:!0,configurable:!0}}),e&&C(t,e)}function C(t,e){return(C=Object.setPrototypeOf||function(t,e){return t.__proto__=e,t})(t,e)}function S(t){var e=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Date.prototype.toString.call(Reflect.construct(Date,[],(function(){}))),!0}catch(t){return!1}}();return function(){var n,o=T(t);if(e){var r=T(this).constructor;n=Reflect.construct(o,arguments,r)}else n=o.apply(this,arguments);return D(this,n)}}function D(t,e){return!e||"object"!==k(e)&&"function"!=typeof e?function(t){if(void 0===t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return t}(t):e}function T(t){return(T=Object.setPrototypeOf?Object.getPrototypeOf:function(t){return t.__proto__||Object.getPrototypeOf(t)})(t)}var I=function(t){L(n,t);var e=S(n);function n(t){return E(this,n),e.call(this,t)}return _(n,[{key:"initialize",value:function(){var t=this.options.forceOpen||this.options.libraryId&&this.model.get("id").toString()===this.options.libraryId.toString();this.viewModel=v.a.get("".concat("library:left:nav",":").concat(this.model.get("id"))),this.viewModel.set("open",t),this.viewModel.set("disabled",!1),this.listenTo(this.model,"change:name",this.render),this.options.hasMultipleLibraries&&this.listenTo(this,"open:sub:folders",this.onOpenSubFolders),this.videoDragDropService=u.a.getInstance(a.x.VideoDragDrop,this)}},{key:"regions",value:function(){return{folders:{el:".folders-region",replaceElement:!0},actions:{el:".actions-region",replaceElement:!0}}}},{key:"events",value:function(){return{"click .library-event":"onClick"}}},{key:"onClick",value:function(t){this.viewModel.get("open")&&(t.stopImmediatePropagation(),t.preventDefault(),this.viewModel.set("open",!this.viewModel.get("open")),this.render())}},{key:"onOpenSubFolders",value:function(){if(this.videoDragDropService.getDisabledLibraryIds().includes(this.model.get("id")))return this.viewModel.set("disabled",!0),void this.render();this.viewModel.set("open",!0),this.render()}},{key:"hasFolders",value:function(){return!!m.f.getFirstType(this.model.children,"category")}},{key:"viewOptions",value:function(){return{styles:b.a,caretSvg:r.a.getSvg(r.b.Caret),open:this.viewModel.get("open"),hasFolders:this.hasFolders(),disabled:this.viewModel.get("disabled")}}},{key:"onRender",value:function(){this.showChildView("actions",new h.a({model:this.model,extraClasses:"rounded-circle mr-1 ".concat(b.a.actions),buttonClass:"text-muted",analyticsOptions:this.analyticsOptions})),this.model.children&&this.model.children.length&&this.viewModel.get("open")&&this.showChildView("folders",new p.a({appLink:{action:a.a.LibraryEditor.FOLDER,application:a.b.LIBRARY_EDITOR},linkArgs:function(t){return[t.get("id")]},collection:this.model.children,channelName:"".concat(this.cid),childrenProperty:"children",actions:f.a,folderTreeId:this.options.folderTreeId,analyticsOptions:this.analyticsOptions}))}},{key:"name",get:function(){return"LeftNavLibraryComponent"}},{key:"template",get:function(){return d.a}},{key:"className",get:function(){return b.a.libraryContainer}},{key:"behaviors",get:function(){var t=[a.w.FOLDER_DRAG_DROP];return this.options.hasMultipleLibraries&&t.push(a.w.VIDEO_DRAG_DROP),[{behaviorClass:w.a,ui:"anchor",channelNames:t,analyticsOptions:{location:O.LocationContext.LeftNav}}]}},{key:"appLinks",get:function(){return{".ui-anchor":{application:a.b.LIBRARY_EDITOR,action:a.a.LibraryEditor.LIBRARY,args:[this.model.get("id")]}}}},{key:"elements",get:function(){return{anchor:".ui-anchor",text:".ui-text"}}},{key:"analyticsOptions",get:function(){return{location:O.LocationContext.LeftNav}}}]),n}(o.a.Component),P=function(t){L(n,t);var e=S(n);function n(t){return E(this,n),e.call(this,t)}return _(n,[{key:"name",get:function(){return"LeftNavLibrariesComponent"}},{key:"childView",get:function(){return I}},{key:"childViewOptions",get:function(){return{channelName:this.options.channelName,libraryId:this.options.libraryId,folderTreeId:this.options.folderTreeId,forceOpen:this.options.forceOpen,hasMultipleLibraries:this.collection.length>1}}}]),n}(o.a.ComponentCollection),x=n(1491),A=n.n(x),j=n(16),N=n(136),F=n(190),M=n(9),U=n(92),B=n(82),V=n(42),Y=n(1492),W=n.n(Y),G=n(1493),H=n.n(G);function z(t){return(z="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t})(t)}function $(t,e){for(var n=0;n<e.length;n++){var o=e[n];o.enumerable=o.enumerable||!1,o.configurable=!0,"value"in o&&(o.writable=!0),Object.defineProperty(t,o.key,o)}}function J(t,e){return(J=Object.setPrototypeOf||function(t,e){return t.__proto__=e,t})(t,e)}function q(t){var e=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Date.prototype.toString.call(Reflect.construct(Date,[],(function(){}))),!0}catch(t){return!1}}();return function(){var n,o=K(t);if(e){var r=K(this).constructor;n=Reflect.construct(o,arguments,r)}else n=o.apply(this,arguments);return X(this,n)}}function X(t,e){return!e||"object"!==z(e)&&"function"!=typeof e?function(t){if(void 0===t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return t}(t):e}function K(t){return(K=Object.setPrototypeOf?Object.getPrototypeOf:function(t){return t.__proto__||Object.getPrototypeOf(t)})(t)}var Q=function(t){!function(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function");t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,writable:!0,configurable:!0}}),e&&J(t,e)}(i,t);var e,n,o,r=q(i);function i(t){return function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,i),r.call(this,t)}return e=i,(n=[{key:"events",value:function(){return t={},e="click .".concat(H.a.addCrest),n="onClickAddLogo",e in t?Object.defineProperty(t,e,{value:n,enumerable:!0,configurable:!0,writable:!0}):t[e]=n,t;var t,e,n}},{key:"onClickAddLogo",value:function(){var t={location:O.LocationContext.LeftNav,actionType:O.UserAction.Create,entity:O.EntityType.Logo};V.a.logUserAction({},t)}},{key:"viewOptions",value:function(){return{styles:H.a,uploadLogoUrl:B.a.safeUrlConcat(this.options.onlineUrl,a.t.UPLOAD_LOGO)}}},{key:"name",get:function(){return"CustomerLogoComponent"}},{key:"template",get:function(){return W.a}},{key:"lang",get:function(){return"libraryEditor.customerLogo"}},{key:"className",get:function(){return"text-center p-3 position-relative"}}])&&$(e.prototype,n),o&&$(e,o),i}(o.a.Component);function Z(t){return(Z="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t})(t)}function tt(t,e){for(var n=0;n<e.length;n++){var o=e[n];o.enumerable=o.enumerable||!1,o.configurable=!0,"value"in o&&(o.writable=!0),Object.defineProperty(t,o.key,o)}}function et(t,e){return(et=Object.setPrototypeOf||function(t,e){return t.__proto__=e,t})(t,e)}function nt(t){var e=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Date.prototype.toString.call(Reflect.construct(Date,[],(function(){}))),!0}catch(t){return!1}}();return function(){var n,o=rt(t);if(e){var r=rt(this).constructor;n=Reflect.construct(o,arguments,r)}else n=o.apply(this,arguments);return ot(this,n)}}function ot(t,e){return!e||"object"!==Z(e)&&"function"!=typeof e?function(t){if(void 0===t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return t}(t):e}function rt(t){return(rt=Object.setPrototypeOf?Object.getPrototypeOf:function(t){return t.__proto__||Object.getPrototypeOf(t)})(t)}n.d(e,"LeftNavigationView",(function(){return it}));var it=function(t){!function(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function");t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,writable:!0,configurable:!0}}),e&&et(t,e)}(p,t);var e,n,o,s=nt(p);function p(t){return function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,p),s.call(this,t)}return e=p,(n=[{key:"initialize",value:function(){this.bindListeners(),this.settingsDataService=u.a.getInstance(j.a.Settings,this)}},{key:"bindListeners",value:function(){this.listenTo(this.channelName,"select:library",this.onSelectLibrary),this.listenTo(a.e.LIBRARY,"cache:cleared",this.fetchData),this.listenTo(a.w.FOLDER_DRAG_DROP,"re:render:left:nav",this.render),this.listenTo(a.e.SETTINGS,"".concat(a.f.SETTINGS,":sync"),this.render)}},{key:"regions",value:function(){return{logo:{el:".logo-region",replaceElement:!1},folderTree:{el:".folder-tree-region",replaceElement:!1,partialLoading:M.h.LeftNav}}}},{key:"events",value:function(){return{"click .new-folder":"newFolder"}}},{key:"fetchData",value:function(){this.maxCustomLibraries=this.settingsDataService.getSetting(this.currentUser.get("customerId"),i.a.MaxCustomLibraries)}},{key:"onSelectLibrary",value:function(t){this.collection.each((function(e){v.a.get("".concat("library:left:nav",":").concat(e.id)).set("open",e.id.toString()===t)})),this.render()}},{key:"renderLogo",value:function(){this.showChildView("logo",new Q({model:this.currentUser.get("customerLogo"),customerId:this.currentUser.get("customerId"),onlineUrl:this.config.get("onlineUrl")}))}},{key:"renderLeftNav",value:function(){var t=new P({collection:this.collection,channelName:this.channelName,libraryId:this.options.libraryId,folderTreeId:U.a.LIBRARY_EDITOR,forceOpen:1===this.collection.length});this.showChildView("folderTree",t)}},{key:"onBeforeRender",value:function(){return this.fetchData(),!!this.maxCustomLibraries}},{key:"viewOptions",value:function(){if(this.collection)return{styles:A.a,plusSvg:r.a.getSvg(r.b.Plus),canCreateLibraries:!!this.maxCustomLibraries&&this.maxCustomLibraries.get("value")>this.collection.length}}},{key:"onRender",value:function(){this.renderLogo(),this.renderLeftNav()}},{key:"name",get:function(){return"LeftNavigationView"}},{key:"title",get:function(){return!1}},{key:"channelName",get:function(){return"".concat(this.name).concat(this.cid)}},{key:"lang",get:function(){return"libraryEditor.leftNavigation"}},{key:"className",get:function(){return"bg-white pb-3"}},{key:"template",get:function(){return c.a}},{key:"appLinks",get:function(){return{".applink-new-library":{application:a.b.LIBRARY_EDITOR,action:a.a.LibraryEditor.NEW_LIBRARY}}}},{key:"requiredResources",get:function(){return{currentUser:N.b.currentUser,config:F.b.config,collection:l.b.libraries}}}])&&tt(e.prototype,n),o&&tt(e,o),p}(o.a.View)}}]);
@@ -1 +1 @@
1
- (window.webpackJsonp_clickview_library_editor=window.webpackJsonp_clickview_library_editor||[]).push([[32],{1052:function(e,t,n){"use strict";n.d(t,"a",(function(){return p}));var r=n(2),o=n(243);function i(e){return(i="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}function l(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function a(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}function s(e,t){return(s=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e})(e,t)}function c(e){var t=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Date.prototype.toString.call(Reflect.construct(Date,[],(function(){}))),!0}catch(e){return!1}}();return function(){var n,r=f(e);if(t){var o=f(this).constructor;n=Reflect.construct(r,arguments,o)}else n=r.apply(this,arguments);return u(this,n)}}function u(e,t){return!t||"object"!==i(t)&&"function"!=typeof t?function(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}(e):t}function f(e){return(f=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)})(e)}var p=function(e){!function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),t&&s(e,t)}(u,e);var t,n,r,i=c(u);function u(){return l(this,u),i.apply(this,arguments)}return t=u,(n=[{key:"defaults",value:function(){return e={},t=o.c.Disabled,n=!0,t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e;var e,t,n}}])&&a(t.prototype,n),r&&a(t,r),u}(r.a.Model)},1064:function(e,t,n){"use strict";n.d(t,"a",(function(){return p}));var r=n(1),o=n(2),i=n(287);function l(e){return(l="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}function a(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}function s(e,t){return(s=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e})(e,t)}function c(e){var t=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Date.prototype.toString.call(Reflect.construct(Date,[],(function(){}))),!0}catch(e){return!1}}();return function(){var n,r=f(e);if(t){var o=f(this).constructor;n=Reflect.construct(r,arguments,o)}else n=r.apply(this,arguments);return u(this,n)}}function u(e,t){return!t||"object"!==l(t)&&"function"!=typeof t?function(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}(e):t}function f(e){return(f=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)})(e)}var p=function(e){!function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),t&&s(e,t)}(u,e);var t,n,o,l=c(u);function u(e){return function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,u),l.call(this,e)}return t=u,(n=[{key:"initialize",value:function(){this.listenTo(this.options.channelName,"center:dropdown",this.centerSelectedItem)}},{key:"getExtraClasses",value:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t=e.alignment,n=void 0===t?"left":t,r=e.extraClasses,o="dropdown-menu-".concat(n);return r&&(o="".concat(o," ").concat(r)),o}},{key:"centerSelectedItem",value:function(){var e=this.$el.find(".active");if(e.length){var t=this.$el.scrollTop()+e.position().top,n=.5*this.$el.height()+.5*e.height();this.$el.scrollTop(t-n)}}},{key:"name",get:function(){return"DropdownCollectionComponent"}},{key:"className",get:function(){return"dropdown-menu items-viewpart ".concat(this.getExtraClasses(this.options.displayOptions))}},{key:"attributes",get:function(){return{"aria-labelledby":"dropdownSelector"}}},{key:"childView",get:function(){return i.a}},{key:"childViewOptions",get:function(){var e={channelName:this.options.channelName,analyticsHelper:this.options.analyticsHelper};return r.extend(e,this.options.childOptions)}}])&&a(t.prototype,n),o&&a(t,o),u}(o.a.ComponentCollection)},1069:function(e,t,n){"use strict";n.d(t,"a",(function(){return g}));var r=n(6),o=n(2),i=n(3),l=n(1083),a=n(12),s=n(1070),c=n.n(s),u=n(1071),f=n.n(u);function p(e){return(p="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}function d(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}function h(e,t){return(h=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e})(e,t)}function y(e){var t=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Date.prototype.toString.call(Reflect.construct(Date,[],(function(){}))),!0}catch(e){return!1}}();return function(){var n,r=m(e);if(t){var o=m(this).constructor;n=Reflect.construct(r,arguments,o)}else n=r.apply(this,arguments);return b(this,n)}}function b(e,t){return!t||"object"!==p(t)&&"function"!=typeof t?function(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}(e):t}function m(e){return(m=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)})(e)}var g=function(e){!function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),t&&h(e,t)}(u,e);var t,n,o,s=y(u);function u(e){return function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,u),s.call(this,e)}return t=u,(n=[{key:"initialize",value:function(){this.listenTo(this.options.channelName,"folder:selected new:folder:selected",this.setButtonText),this.listenTo(this.options.channelName,"re:render:selector",this.renderSelector),this.disabledIds=this.options.disabledIds&&this.options.disabledIds.reduce((function(e,t){return Object.assign(Object.assign({},e),function(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}({},t,!0))}),{})}},{key:"regions",value:function(){return{selector:{el:".selector-region",replaceElement:!1}}}},{key:"events",value:function(){return{"click .create-new":"onClickCreateNew"}}},{key:"onClickCreateNew",value:function(e){e.preventDefault(),r.Radio.channel(this.options.channelName).trigger("create:folder:clicked")}},{key:"setButtonText",value:function(e,t){if(e&&!t){var n=e.get("name");this.getUI("button").text(n)}else{var r=a.f.getSelected(this.options.folderTreeKey,this.collection),o=r?r.get("name"):i.a.getPhrase(this.lang,"button");this.getUI("button").text(o)}}},{key:"renderSelector",value:function(){this.showChildView("selector",new l.a({styles:f.a,collection:this.collection,channelName:this.options.channelName,childrenProperty:"children",folderTreeId:this.options.folderTreeKey,extraClass:f.a.list,extraClasses:f.a.list,isSelector:!0,disabledIds:this.disabledIds||{}}))}},{key:"viewOptions",value:function(){return{styles:f.a,name:this.options.name||this.options.channelName,buttonText:this.buttonText,canCreateNew:this.options.canCreateNew}}},{key:"onRender",value:function(){this.setButtonText(),this.renderSelector()}},{key:"name",get:function(){return"TreeDropdownComponent"}},{key:"template",get:function(){return c.a}},{key:"className",get:function(){return"position-relative"}},{key:"lang",get:function(){return"libraryEditor.treeDropdown"}},{key:"defaults",get:function(){return{disabledIds:[]}}},{key:"elements",get:function(){return{button:".custom-select"}}}])&&d(t.prototype,n),o&&d(t,o),u}(o.a.Component)},1070:function(e,t,n){var r=n(10);e.exports=(r.default||r).template({1:function(e,t,n,r,o){e.propertyIsEnumerable;var i,l=e.escapeExpression;return' <button class="create-new btn font-weight-bold rounded-0 w-100 text-left '+l(e.lambda(null!=(i=null!=(i=null!=t?t.options:t)?i.styles:i)?i.customItem:i,t))+'">'+l((n.lang||t&&t.lang||e.hooks.helperMissing).call(null!=t?t:e.nullContext||{},"createNew",{name:"lang",hash:{},data:o}))+"</button>\r\n"},compiler:[8,">= 4.3.0"],main:function(e,t,n,r,o){e.propertyIsEnumerable;var i,l=e.lambda,a=e.escapeExpression;return'<button\r\n class="'+a(l(null!=(i=null!=(i=null!=t?t.options:t)?i.styles:i)?i.selectBtn:i,t))+' custom-select form-control"\r\n data-toggle="dropdown"\r\n aria-haspopup="true"\r\n aria-expanded="false"\r\n name='+a(l(null!=(i=null!=t?t.options:t)?i.name:i,t))+"\r\n>"+a(l(null!=(i=null!=t?t.options:t)?i.buttonText:i,t))+'</button>\r\n<div class="dropdown-menu '+a(l(null!=(i=null!=(i=null!=t?t.options:t)?i.styles:i)?i.selector:i,t))+'">\r\n <div class="selector-region"></div>\r\n'+(null!=(i=n.if.call(null!=t?t:e.nullContext||{},null!=(i=null!=t?t.options:t)?i.canCreateNew:i,{name:"if",hash:{},fn:e.program(1,o,0),inverse:e.noop,data:o}))?i:"")+'</div>\r\n<div class="form-feedback"></div>'},useData:!0})},1071:function(e,t,n){e.exports={selectBtn:"_2TTgs",list:"_3wN7o",selector:"_3Xf1P",customItem:"_199PI"}},1106:function(e,t,n){"use strict";n.d(t,"a",(function(){return g}));var r=n(1),o=n(6),i=n(2),l=n(1064),a=n(12),s=n(1107),c=n.n(s),u=n(1108),f=n.n(u);function p(e){return(p="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}function d(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}function h(e,t){return(h=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e})(e,t)}function y(e){var t=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Date.prototype.toString.call(Reflect.construct(Date,[],(function(){}))),!0}catch(e){return!1}}();return function(){var n,r=m(e);if(t){var o=m(this).constructor;n=Reflect.construct(r,arguments,o)}else n=r.apply(this,arguments);return b(this,n)}}function b(e,t){return!t||"object"!==p(t)&&"function"!=typeof t?function(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}(e):t}function m(e){return(m=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)})(e)}var g=function(e){!function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),t&&h(e,t)}(u,e);var t,n,i,s=y(u);function u(e){var t;return function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,u),(t=s.call(this,e)).selectSearch="",t.sameCharIndex=1,t.optionStep=1,t}return t=u,(n=[{key:"initialize",value:function(){this.setModel(),this.bindListeners()}},{key:"regions",value:function(){return{dropdown:{el:".dropdown-region",replaceElement:!0}}}},{key:"events",value:function(){return{keydown:"onKeydown","shown.bs.dropdown":"onShowDropdown"}}},{key:"bindListeners",value:function(){this.listenTo(this.options.channelName,this.options.childOptions.eventName,this.onSelect)}},{key:"onShowDropdown",value:function(){o.Radio.channel(this.options.channelName).trigger("center:dropdown")}},{key:"onKeydown",value:function(e){38===e.keyCode||40===e.keyCode?this.onArrowKeyDown(e):13===e.keyCode?this.render():this.onType(e),o.Radio.channel(this.options.channelName).trigger("center:dropdown")}},{key:"onArrowKeyDown",value:function(e){a.c.getSelected(this.collection)?this.optionStep=1:this.optionStep=0;var t=this.getNextModel(e.keyCode);for(t||(a.c.deselectAll(this.collection),t=this.getNextModel(e.keyCode));this.isDisabled(t);)this.optionStep++,t=this.getNextModel(e.keyCode);this.onSelect(t)}},{key:"onType",value:function(e){if(1===e.key.toString().length){var t=this.getModelMatch(e);t&&this.onSelect(t),this.runTimer()}}},{key:"onSelect",value:function(e){this.isDisabled(e)||(a.c.setSelected(e.get("id"),this.collection),this.setModel(),this.getUI("dropdownToggle").text(this.getButtonText()),o.Radio.channel(this.options.channelName).trigger("select:option:selected",e))}},{key:"setModel",value:function(){this.model=a.c.getSelected(this.collection)}},{key:"getNextModel",value:function(e){var t,n=a.c.getSelected(this.collection)||this.collection.first(),r=this.collection.indexOf(n);return(t=38===e?this.collection.at(r-this.optionStep):this.collection.at(r+this.optionStep))||(a.c.deselectAll(this.collection),t=this.collection.first(),this.optionStep=0),t}},{key:"getModelMatch",value:function(e){var t,n=this;return 1===this.selectSearch.length&&this.selectSearch===e.key?t=this.handleSameCharIndex(e.key):(this.selectSearch+=e.key,this.sameCharIndex=1),t||(t=r.find(this.collection.models,(function(e){return e.get(n.options.displayProperty).toLowerCase().slice(0,n.selectSearch.length).includes(n.selectSearch.toLowerCase())}))),t}},{key:"handleSameCharIndex",value:function(e){var t=this,n=r.filter(this.collection.models,(function(n){return n.get(t.options.displayProperty).toLowerCase().slice(0,1)===e}));if(n.length>1){var o=n[this.sameCharIndex];return o||(o=r.first(n),this.sameCharIndex=0),this.sameCharIndex++,o}return r.first(n)}},{key:"runTimer",value:function(){var e=this;this.scopedTimerIndex&&clearTimeout(this.scopedTimerIndex),this.scopedTimerIndex=window.setTimeout((function(){e.selectSearch=""}),500)}},{key:"isDisabled",value:function(e){var t;if(e.get("divider"))return!0;if(!r.isFunction(this.options.childOptions.isDisabled))return!1;for(var n=arguments.length,o=new Array(n>1?n-1:0),i=1;i<n;i++)o[i-1]=arguments[i];return(t=this.options.childOptions.isDisabled).call.apply(t,[this,e].concat(o))}},{key:"getButtonText",value:function(){if(this.options.disabled)return this.options.noOptionsText;var e=a.c.getSelected(this.collection);return e&&e.get(this.options.displayProperty)||this.options.placeholderText}},{key:"viewOptions",value:function(){return{styles:f.a,inputName:this.options.inputName,disabled:this.options.disabled,placeholderText:this.getButtonText()}}},{key:"onRender",value:function(){this.showChildView("dropdown",new l.a({collection:this.collection,channelName:this.options.channelName,childOptions:r.extend(this.options.childOptions),displayOptions:{extraClasses:"w-100 ".concat(f.a.dropdownMenu)},analyticsHelper:this.options.analyticsHelper}))}},{key:"name",get:function(){return"SelectComponent"}},{key:"template",get:function(){return c.a}},{key:"defaults",get:function(){return{displayProperty:"name"}}},{key:"elements",get:function(){return{dropdownToggle:".dropdown-toggle"}}}])&&d(t.prototype,n),i&&d(t,i),u}(i.a.Component)},1107:function(e,t,n){var r=n(10);e.exports=(r.default||r).template({1:function(e,t,n,r,o){var i;e.propertyIsEnumerable;return e.escapeExpression(e.lambda(null!=(i=null!=(i=null!=t?t.options:t)?i.styles:i)?i.disabled:i,t))},3:function(e,t,n,r,o){return" disabled"},compiler:[8,">= 4.3.0"],main:function(e,t,n,r,o){e.propertyIsEnumerable;var i,l=e.lambda,a=e.escapeExpression,s=null!=t?t:e.nullContext||{};return'<button \r\n class="dropdown-toggle form-control btn-block text-left position-relative '+a(l(null!=(i=null!=(i=null!=t?t.options:t)?i.styles:i)?i.selectButton:i,t))+" "+(null!=(i=n.if.call(s,null!=(i=null!=t?t.options:t)?i.disabled:i,{name:"if",hash:{},fn:e.program(1,o,0),inverse:e.noop,data:o}))?i:"")+'" \r\n type="button" \r\n id="dropdownMenuButton" \r\n data-toggle="dropdown" \r\n aria-haspopup="true" \r\n aria-expanded="false"\r\n '+(null!=(i=n.if.call(s,null!=(i=null!=t?t.options:t)?i.disabled:i,{name:"if",hash:{},fn:e.program(3,o,0),inverse:e.noop,data:o}))?i:"")+' \r\n name="'+a(l(null!=(i=null!=t?t.options:t)?i.inputName:i,t))+'"\r\n >\r\n '+a(l(null!=(i=null!=t?t.options:t)?i.placeholderText:i,t))+'\r\n</button>\r\n<div class="dropdown-region"></div>\r\n<div class="form-feedback"></div>'},useData:!0})},1108:function(e,t,n){e.exports={dropdownMenu:"_2RaQu",selectButton:"_2xGqi",disabled:"_15kWr"}},1129:function(e,t,n){"use strict";n.d(t,"a",(function(){return g}));var r=n(1),o=n(6),i=n(2),l=n(3),a=n(42),s=n(1106),c=n(12),u=n(1130),f=n.n(u);function p(e){return(p="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}function d(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}function h(e,t){return(h=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e})(e,t)}function y(e){var t=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Date.prototype.toString.call(Reflect.construct(Date,[],(function(){}))),!0}catch(e){return!1}}();return function(){var n,r=m(e);if(t){var o=m(this).constructor;n=Reflect.construct(r,arguments,o)}else n=r.apply(this,arguments);return b(this,n)}}function b(e,t){return!t||"object"!==p(t)&&"function"!=typeof t?function(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}(e):t}function m(e){return(m=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)})(e)}var g=function(e){!function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),t&&h(e,t)}(p,e);var t,n,i,u=y(p);function p(e){return function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,p),u.call(this,e)}return t=p,(n=[{key:"initialize",value:function(){this.bindListeners(),c.c.deselectAll(this.collection),c.c.setSelected(this.options.currentLibraryId,this.collection)}},{key:"regions",value:function(){return{dropdown:{el:".dropdown-menu-region",replaceElement:!0}}}},{key:"bindListeners",value:function(){var e=this;this.listenTo(this.channelName,"select:option:selected",(function(t){o.Radio.channel(e.options.channelName).trigger("library:selected",t)}))}},{key:"getIsOptionDisabledFn",value:function(){var e=this.options.disabledLibraryIds;return function(t){var n=t||this.model;if(r.contains(e,n.get("id")+""))return!0}}},{key:"onRender",value:function(){this.showChildView("dropdown",new s.a({collection:this.collection,channelName:this.channelName,childOptions:{titleProperty:"name",eventName:"select:option:click",isDisabled:this.getIsOptionDisabledFn()},placeholderText:this.options.placeholderText||l.a.getPhrase(this.lang,"placeholder"),noOptionsText:l.a.getPhrase(this.lang,"noLibraries"),inputName:this.options.inputName,disabled:0===this.collection.length||this.options.disabled,analyticsHelper:a.a}))}},{key:"name",get:function(){return"LibrarySelectComponent"}},{key:"channelName",get:function(){return"".concat(this.name).concat(this.cid)}},{key:"className",get:function(){return"position-relative"}},{key:"lang",get:function(){return"libraryEditor.librarySelect"}},{key:"template",get:function(){return f.a}}])&&d(t.prototype,n),i&&d(t,i),p}(i.a.Component)},1130:function(e,t,n){var r=n(10);e.exports=(r.default||r).template({compiler:[8,">= 4.3.0"],main:function(e,t,n,r,o){return'<div class="dropdown-menu-region"></div>\r\n<div class="form-feedback"></div>'},useData:!0})},1361:function(e,t,n){var r=n(10);e.exports=(r.default||r).template({1:function(e,t,n,r,o){e.propertyIsEnumerable;var i,l=null!=t?t:e.nullContext||{};return(null!=(i=n.if.call(l,null!=(i=null!=t?t.options:t)?i.foundLibraries:i,{name:"if",hash:{},fn:e.program(2,o,0),inverse:e.noop,data:o}))?i:"")+"\r\n"+(null!=(i=n.if.call(l,null!=(i=null!=t?t.options:t)?i.hasAvailableLibraries:i,{name:"if",hash:{},fn:e.program(4,o,0),inverse:e.noop,data:o}))?i:"")+"\r\n"+(null!=(i=n.if.call(l,null!=(i=null!=t?t.options:t)?i.showNoFolderText:i,{name:"if",hash:{},fn:e.program(7,o,0),inverse:e.noop,data:o}))?i:"")},2:function(e,t,n,r,o){var i;e.propertyIsEnumerable;return' <div class="alert alert-info" role="alert">\r\n <p class="m-0">'+(null!=(i=(n.lang||t&&t.lang||e.hooks.helperMissing).call(null!=t?t:e.nullContext||{},"foundLibraries",{name:"lang",hash:{libraries:null!=(i=null!=t?t.options:t)?i.foundLibraries:i},data:o}))?i:"")+"</p>\r\n </div>\r\n"},4:function(e,t,n,r,o){e.propertyIsEnumerable;var i,l=null!=t?t:e.nullContext||{},a=e.hooks.helperMissing,s=e.escapeExpression,c=e.lambda;return' <span class="d-block pb-2">'+s((n.lang||t&&t.lang||a).call(l,"selectFolder",{name:"lang",hash:{},data:o}))+"</span>\r\n"+(null!=(i=n.if.call(l,null!=(i=null!=t?t.options:t)?i.hasMultipleLibraries:i,{name:"if",hash:{},fn:e.program(5,o,0),inverse:e.noop,data:o}))?i:"")+' <div class="mt-1 mb-2 library-dropdown-region"></div>\r\n\r\n <span class="'+s(c(null!=(i=null!=(i=null!=t?t.options:t)?i.styles:i)?i.header:i,t))+' folder-name">'+s((n.lang||t&&t.lang||a).call(l,"folder",{name:"lang",hash:{},data:o}))+'</span>\r\n <div class="'+s(c(null!=(i=null!=(i=null!=t?t.options:t)?i.styles:i)?i.folderSelector:i,t))+' mt-1 folder-selector-region"></div>\r\n'},5:function(e,t,n,r,o){e.propertyIsEnumerable;var i,l=e.escapeExpression;return' <span class="'+l(e.lambda(null!=(i=null!=(i=null!=t?t.options:t)?i.styles:i)?i.header:i,t))+'">'+l((n.lang||t&&t.lang||e.hooks.helperMissing).call(null!=t?t:e.nullContext||{},"library",{name:"lang",hash:{},data:o}))+"</span>\r\n"},7:function(e,t,n,r,o){e.propertyIsEnumerable;var i,l=null!=t?t:e.nullContext||{},a=e.hooks.helperMissing;return" <p>"+e.escapeExpression((n.lang||t&&t.lang||a).call(l,"noFolders1",{name:"lang",hash:{},data:o}))+"</p>\r\n <p>"+(null!=(i=(n.lang||t&&t.lang||a).call(l,"noFolders2",{name:"lang",hash:{},data:o}))?i:"")+"</p>\r\n"},9:function(e,t,n,r,o){var i;e.propertyIsEnumerable;return(null!=(i=e.lambda(null!=(i=null!=t?t.options:t)?i.spinnerEl:i,t))?i:"")+"\r\n"},compiler:[8,">= 4.3.0"],main:function(e,t,n,r,o){var i;e.propertyIsEnumerable;return null!=(i=n.if.call(null!=t?t:e.nullContext||{},null!=(i=null!=t?t.options:t)?i.dataFetched:i,{name:"if",hash:{},fn:e.program(1,o,0),inverse:e.program(9,o,0),data:o}))?i:""},useData:!0})},1362:function(e,t,n){e.exports={header:"_1tdTv"}},1465:function(e,t,n){"use strict";n.r(t),n.d(t,"AddToLibraryView",(function(){return L}));var r=n(1),o=n(2),i=n(5),l=n(243),a=n(1069),s=n(282),c=n(9),u=n(58),f=n(1052),p=n(12),d=n(0),h=n(3),y=n(136),b=n(1129),m=n(1361),g=n.n(m),v=n(1362),w=n.n(v);function k(e){return(k="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}function S(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}function O(e,t){return(O=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e})(e,t)}function x(e){var t=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Date.prototype.toString.call(Reflect.construct(Date,[],(function(){}))),!0}catch(e){return!1}}();return function(){var n,r=C(e);if(t){var o=C(this).constructor;n=Reflect.construct(r,arguments,o)}else n=r.apply(this,arguments);return T(this,n)}}function T(e,t){return!t||"object"!==k(t)&&"function"!=typeof t?function(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}(e):t}function C(e){return(C=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)})(e)}var L=function(e){!function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),t&&O(e,t)}(v,e);var t,n,o,m=x(v);function v(e){return function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,v),m.call(this,e)}return t=v,(n=[{key:"initialize",value:function(){this.videoDataService=i.a.getInstance(d.g.Video,this),this.bindListeners()}},{key:"regions",value:function(){return{libraryDropdown:".library-dropdown-region",folderSelector:".folder-selector-region"}}},{key:"events",value:function(){return{submit:"onSubmit"}}},{key:"bindListeners",value:function(){this.listenTo("".concat(this.channelName,":library"),"library:selected",this.onLibrarySelected),this.listenTo("".concat(this.channelName,":folder"),"folder:selected",this.onFolderSelected),this.listenTo(d.e.VIDEO,"".concat(d.f.VIDEOS,":").concat(this.options.videoId,":sync"),this.render),this.listenTo(d.e.VIDEO,"get:video:categories:libraries:".concat(this.options.videoId,":sync"),this.render)}},{key:"onSubmit",value:function(e){e&&e.preventDefault(),this.spinnerModel.set(l.c.ShowSpinner,!0),this.addToLibrary()}},{key:"onLibrarySelected",value:function(e){this.spinnerModel.set(l.c.Disabled,!0),p.f.setSelected(this.libraryTreeKey,e.get("id"),this.customLibraries),this.renderFolderSelector()}},{key:"onFolderSelected",value:function(e){this.spinnerModel.set(l.c.Disabled,!1),p.f.setSelected(this.folderTreeKey,e,this.customLibraries)}},{key:"getVideosCustomLibraryNames",value:function(){if(!this.dataFetched())return null;var e=this.getVideoCustomLibraries();if(!e.length)return null;var t=r.map(e,(function(e){return"<strong>".concat(p.v.escapeExpression(e),"</strong>")}));if(1===t.length)return t[0];var n=h.a.getPhrase(this.lang,"and");return"".concat(t.slice(0,-1).join(", ")," ").concat(n," ").concat(t.slice(-1))}},{key:"addToLibrary",value:function(){var e,t,n=this,o=p.f.getSelected(this.folderTreeKey,this.customLibraries),i=o.get("id"),l=p.f.getSelected(this.libraryTreeKey,this.customLibraries).get("id"),a=this.model.libraries.filter((function(e){return e.get("type")===u.a.HostedLibrary})),s=this.model.categories;s&&s.last()&&(e=s.last().get("id")),a&&a.length&&(t=r.last(a).get("id"));var f={masterObjectId:this.options.videoId,masterObjectType:c.g.Video,metadata:{sourceLibraryId:t,sourceCategoryId:e,destinationLibraryId:l,destinationCategoryId:i}};this.videoDataService.addVideoToCustomLibrary(f,this.model,o,(function(){n.triggerMethod("hide")}))}},{key:"getSubmitBtnTooltipOptions",value:function(){if(this.spinnerModel.get(l.c.Disabled)&&this.hasAvailableLibraries())return{title:h.a.getPhrase(this.lang,"heading")}}},{key:"getAvailableCustomLibraries",value:function(){if(!this.dataFetched())return null;var e=this.customLibraries.clone();e.remove(this.model.libraries.filter((function(e){return e.get("type")===u.a.CustomLibrary})));var t=e.filter((function(e){return 0===e.children.length}));return e.remove(t),e}},{key:"hasAvailableLibraries",value:function(){if(!this.customLibraries)return!1;var e=this.getAvailableCustomLibraries();return e&&e.length>0}},{key:"hasFolders",value:function(){return!!this.customLibraries&&!!this.customLibraries.find((function(e){return!!e.get("children").length}))}},{key:"getVideoCustomLibraries",value:function(){if(!this.model||!this.model.libraries||!this.model.libraries.length)return null;var e=this.model.libraries.filter((function(e){return e.get("type")===u.a.CustomLibrary}));return r.map(e,(function(e){return e.get("name")}))}},{key:"dataFetched",value:function(){return!!this.model}},{key:"renderLibraryDropdown",value:function(){if(this.customLibraries.length<=1)this.renderFolderSelector();else{var e=p.f.getSelected(this.libraryTreeKey,this.customLibraries),t=this.getUI("folderName");this.$(t).hide(),this.showChildView("libraryDropdown",new b.a({currentLibraryId:e?e.get("id"):null,collection:this.getAvailableCustomLibraries(),channelName:"".concat(this.channelName,":library")}))}}},{key:"renderFolderSelector",value:function(){var e=this.getAvailableCustomLibraries();1===e.length&&p.f.setSelected(this.libraryTreeKey,e.first().get("id"),e);var t=p.f.getSelected(this.libraryTreeKey,e),n=t.get("children")&&!!t.get("children").length,r=this.getUI("folderName");t&&n&&this.$(r).show(),this.showChildView("folderSelector",new a.a({collection:t.children,channelName:"".concat(this.channelName,":folder"),folderTreeKey:this.folderTreeKey}))}},{key:"onBeforeRender",value:function(){this.model=this.videoDataService.getVideo(this.options.videoId)}},{key:"viewOptions",value:function(){var e;return{styles:w.a,foundLibraries:this.getVideosCustomLibraryNames(),hasAvailableLibraries:this.hasAvailableLibraries(),hasMultipleLibraries:(null===(e=this.customLibraries)||void 0===e?void 0:e.length)>1,dataFetched:this.dataFetched(),spinnerEl:p.q.getSpinner({size:p.r.Large,extraClasses:"mx-auto"}),showNoFolderText:!this.hasFolders()}}},{key:"onRender",value:function(){this.dataFetched()&&this.hasAvailableLibraries()&&this.renderLibraryDropdown()}},{key:"name",get:function(){return"AddToLibraryView"}},{key:"title",get:function(){return h.a.getPhrase(this.lang,"title")}},{key:"lang",get:function(){return"contentUpdates.addToLibrary"}},{key:"tagName",get:function(){return"form"}},{key:"className",get:function(){return"form-group"}},{key:"appLinks",get:function(){return{".library-editor-applink":{application:d.b.LIBRARY_EDITOR,action:d.a.LibraryEditor.HOME}}}},{key:"folderTreeKey",get:function(){return"folderselect:".concat(this.cid)}},{key:"libraryTreeKey",get:function(){return"libraryselect:".concat(this.cid)}},{key:"channelName",get:function(){return p.k.generateUniqueChannelName(this)}},{key:"template",get:function(){return g.a}},{key:"behaviors",get:function(){var e=this;return[{behaviorClass:s.e,title:h.a.getPhrase(this.lang,"submitTooltip"),size:"modal-md",spinnerButtonOptions:{channelName:this.channelName,model:this.spinnerModel=new f.a,buttonText:h.a.getPhrase(this.lang,"addBtn"),tooltip:function(){return e.getSubmitBtnTooltipOptions()},onClick:function(t){return e.onSubmit(t)}}}]}},{key:"elements",get:function(){return{folderName:".folder-name"}}},{key:"requiredResources",get:function(){return{customLibraries:y.b.libraries}}}])&&S(t.prototype,n),o&&S(t,o),v}(o.a.View)}}]);
1
+ (window.webpackJsonp_clickview_library_editor=window.webpackJsonp_clickview_library_editor||[]).push([[32],{1212:function(e,t,n){"use strict";n.d(t,"a",(function(){return p}));var r=n(2),o=n(253);function i(e){return(i="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}function l(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function a(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}function s(e,t){return(s=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e})(e,t)}function c(e){var t=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Date.prototype.toString.call(Reflect.construct(Date,[],(function(){}))),!0}catch(e){return!1}}();return function(){var n,r=f(e);if(t){var o=f(this).constructor;n=Reflect.construct(r,arguments,o)}else n=r.apply(this,arguments);return u(this,n)}}function u(e,t){return!t||"object"!==i(t)&&"function"!=typeof t?function(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}(e):t}function f(e){return(f=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)})(e)}var p=function(e){!function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),t&&s(e,t)}(u,e);var t,n,r,i=c(u);function u(){return l(this,u),i.apply(this,arguments)}return t=u,(n=[{key:"defaults",value:function(){return e={},t=o.c.Disabled,n=!0,t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e;var e,t,n}}])&&a(t.prototype,n),r&&a(t,r),u}(r.a.Model)},1224:function(e,t,n){"use strict";n.d(t,"a",(function(){return p}));var r=n(1),o=n(2),i=n(298);function l(e){return(l="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}function a(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}function s(e,t){return(s=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e})(e,t)}function c(e){var t=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Date.prototype.toString.call(Reflect.construct(Date,[],(function(){}))),!0}catch(e){return!1}}();return function(){var n,r=f(e);if(t){var o=f(this).constructor;n=Reflect.construct(r,arguments,o)}else n=r.apply(this,arguments);return u(this,n)}}function u(e,t){return!t||"object"!==l(t)&&"function"!=typeof t?function(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}(e):t}function f(e){return(f=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)})(e)}var p=function(e){!function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),t&&s(e,t)}(u,e);var t,n,o,l=c(u);function u(e){return function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,u),l.call(this,e)}return t=u,(n=[{key:"initialize",value:function(){this.listenTo(this.options.channelName,"center:dropdown",this.centerSelectedItem)}},{key:"getExtraClasses",value:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t=e.alignment,n=void 0===t?"left":t,r=e.extraClasses,o="dropdown-menu-".concat(n);return r&&(o="".concat(o," ").concat(r)),o}},{key:"centerSelectedItem",value:function(){var e=this.$el.find(".active");if(e.length){var t=this.$el.scrollTop()+e.position().top,n=.5*this.$el.height()+.5*e.height();this.$el.scrollTop(t-n)}}},{key:"name",get:function(){return"DropdownCollectionComponent"}},{key:"className",get:function(){return"dropdown-menu items-viewpart ".concat(this.getExtraClasses(this.options.displayOptions))}},{key:"attributes",get:function(){return{"aria-labelledby":"dropdownSelector"}}},{key:"childView",get:function(){return i.a}},{key:"childViewOptions",get:function(){var e={channelName:this.options.channelName,analyticsHelper:this.options.analyticsHelper};return r.extend(e,this.options.childOptions)}}])&&a(t.prototype,n),o&&a(t,o),u}(o.a.ComponentCollection)},1229:function(e,t,n){"use strict";n.d(t,"a",(function(){return g}));var r=n(6),o=n(2),i=n(3),l=n(1243),a=n(12),s=n(1230),c=n.n(s),u=n(1231),f=n.n(u);function p(e){return(p="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}function d(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}function h(e,t){return(h=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e})(e,t)}function y(e){var t=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Date.prototype.toString.call(Reflect.construct(Date,[],(function(){}))),!0}catch(e){return!1}}();return function(){var n,r=m(e);if(t){var o=m(this).constructor;n=Reflect.construct(r,arguments,o)}else n=r.apply(this,arguments);return b(this,n)}}function b(e,t){return!t||"object"!==p(t)&&"function"!=typeof t?function(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}(e):t}function m(e){return(m=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)})(e)}var g=function(e){!function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),t&&h(e,t)}(u,e);var t,n,o,s=y(u);function u(e){return function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,u),s.call(this,e)}return t=u,(n=[{key:"initialize",value:function(){this.listenTo(this.options.channelName,"folder:selected new:folder:selected",this.setButtonText),this.listenTo(this.options.channelName,"re:render:selector",this.renderSelector),this.disabledIds=this.options.disabledIds&&this.options.disabledIds.reduce((function(e,t){return Object.assign(Object.assign({},e),function(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}({},t,!0))}),{})}},{key:"regions",value:function(){return{selector:{el:".selector-region",replaceElement:!1}}}},{key:"events",value:function(){return{"click .create-new":"onClickCreateNew"}}},{key:"onClickCreateNew",value:function(e){e.preventDefault(),r.Radio.channel(this.options.channelName).trigger("create:folder:clicked")}},{key:"setButtonText",value:function(e,t){if(e&&!t){var n=e.get("name");this.getUI("button").text(n)}else{var r=a.f.getSelected(this.options.folderTreeKey,this.collection),o=r?r.get("name"):i.a.getPhrase(this.lang,"button");this.getUI("button").text(o)}}},{key:"renderSelector",value:function(){this.showChildView("selector",new l.a({styles:f.a,collection:this.collection,channelName:this.options.channelName,childrenProperty:"children",folderTreeId:this.options.folderTreeKey,extraClass:f.a.list,extraClasses:f.a.list,isSelector:!0,disabledIds:this.disabledIds||{}}))}},{key:"viewOptions",value:function(){return{styles:f.a,name:this.options.name||this.options.channelName,buttonText:this.buttonText,canCreateNew:this.options.canCreateNew}}},{key:"onRender",value:function(){this.setButtonText(),this.renderSelector()}},{key:"name",get:function(){return"TreeDropdownComponent"}},{key:"template",get:function(){return c.a}},{key:"className",get:function(){return"position-relative"}},{key:"lang",get:function(){return"libraryEditor.treeDropdown"}},{key:"defaults",get:function(){return{disabledIds:[]}}},{key:"elements",get:function(){return{button:".custom-select"}}}])&&d(t.prototype,n),o&&d(t,o),u}(o.a.Component)},1230:function(e,t,n){var r=n(10);e.exports=(r.default||r).template({1:function(e,t,n,r,o){e.propertyIsEnumerable;var i,l=e.escapeExpression;return' <button class="create-new btn font-weight-bold rounded-0 w-100 text-left '+l(e.lambda(null!=(i=null!=(i=null!=t?t.options:t)?i.styles:i)?i.customItem:i,t))+'">'+l((n.lang||t&&t.lang||e.hooks.helperMissing).call(null!=t?t:e.nullContext||{},"createNew",{name:"lang",hash:{},data:o}))+"</button>\r\n"},compiler:[8,">= 4.3.0"],main:function(e,t,n,r,o){e.propertyIsEnumerable;var i,l=e.lambda,a=e.escapeExpression;return'<button\r\n class="'+a(l(null!=(i=null!=(i=null!=t?t.options:t)?i.styles:i)?i.selectBtn:i,t))+' custom-select form-control"\r\n data-toggle="dropdown"\r\n aria-haspopup="true"\r\n aria-expanded="false"\r\n name='+a(l(null!=(i=null!=t?t.options:t)?i.name:i,t))+"\r\n>"+a(l(null!=(i=null!=t?t.options:t)?i.buttonText:i,t))+'</button>\r\n<div class="dropdown-menu '+a(l(null!=(i=null!=(i=null!=t?t.options:t)?i.styles:i)?i.selector:i,t))+'">\r\n <div class="selector-region"></div>\r\n'+(null!=(i=n.if.call(null!=t?t:e.nullContext||{},null!=(i=null!=t?t.options:t)?i.canCreateNew:i,{name:"if",hash:{},fn:e.program(1,o,0),inverse:e.noop,data:o}))?i:"")+'</div>\r\n<div class="form-feedback"></div>'},useData:!0})},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 g}));var r=n(1),o=n(6),i=n(2),l=n(1224),a=n(12),s=n(1267),c=n.n(s),u=n(1268),f=n.n(u);function p(e){return(p="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}function d(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}function h(e,t){return(h=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e})(e,t)}function y(e){var t=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Date.prototype.toString.call(Reflect.construct(Date,[],(function(){}))),!0}catch(e){return!1}}();return function(){var n,r=m(e);if(t){var o=m(this).constructor;n=Reflect.construct(r,arguments,o)}else n=r.apply(this,arguments);return b(this,n)}}function b(e,t){return!t||"object"!==p(t)&&"function"!=typeof t?function(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}(e):t}function m(e){return(m=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)})(e)}var g=function(e){!function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),t&&h(e,t)}(u,e);var t,n,i,s=y(u);function u(e){var t;return function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,u),(t=s.call(this,e)).selectSearch="",t.sameCharIndex=1,t.optionStep=1,t}return t=u,(n=[{key:"initialize",value:function(){this.setModel(),this.bindListeners()}},{key:"regions",value:function(){return{dropdown:{el:".dropdown-region",replaceElement:!0}}}},{key:"events",value:function(){return{keydown:"onKeydown","shown.bs.dropdown":"onShowDropdown"}}},{key:"bindListeners",value:function(){this.listenTo(this.options.channelName,this.options.childOptions.eventName,this.onSelect)}},{key:"onShowDropdown",value:function(){o.Radio.channel(this.options.channelName).trigger("center:dropdown")}},{key:"onKeydown",value:function(e){38===e.keyCode||40===e.keyCode?this.onArrowKeyDown(e):13===e.keyCode?this.render():this.onType(e),o.Radio.channel(this.options.channelName).trigger("center:dropdown")}},{key:"onArrowKeyDown",value:function(e){a.c.getSelected(this.collection)?this.optionStep=1:this.optionStep=0;var t=this.getNextModel(e.keyCode);for(t||(a.c.deselectAll(this.collection),t=this.getNextModel(e.keyCode));this.isDisabled(t);)this.optionStep++,t=this.getNextModel(e.keyCode);this.onSelect(t)}},{key:"onType",value:function(e){if(1===e.key.toString().length){var t=this.getModelMatch(e);t&&this.onSelect(t),this.runTimer()}}},{key:"onSelect",value:function(e){this.isDisabled(e)||(a.c.setSelected(e.get("id"),this.collection),this.setModel(),this.getUI("dropdownToggle").text(this.getButtonText()),o.Radio.channel(this.options.channelName).trigger("select:option:selected",e))}},{key:"setModel",value:function(){this.model=a.c.getSelected(this.collection)}},{key:"getNextModel",value:function(e){var t,n=a.c.getSelected(this.collection)||this.collection.first(),r=this.collection.indexOf(n);return(t=38===e?this.collection.at(r-this.optionStep):this.collection.at(r+this.optionStep))||(a.c.deselectAll(this.collection),t=this.collection.first(),this.optionStep=0),t}},{key:"getModelMatch",value:function(e){var t,n=this;return 1===this.selectSearch.length&&this.selectSearch===e.key?t=this.handleSameCharIndex(e.key):(this.selectSearch+=e.key,this.sameCharIndex=1),t||(t=r.find(this.collection.models,(function(e){return e.get(n.options.displayProperty).toLowerCase().slice(0,n.selectSearch.length).includes(n.selectSearch.toLowerCase())}))),t}},{key:"handleSameCharIndex",value:function(e){var t=this,n=r.filter(this.collection.models,(function(n){return n.get(t.options.displayProperty).toLowerCase().slice(0,1)===e}));if(n.length>1){var o=n[this.sameCharIndex];return o||(o=r.first(n),this.sameCharIndex=0),this.sameCharIndex++,o}return r.first(n)}},{key:"runTimer",value:function(){var e=this;this.scopedTimerIndex&&clearTimeout(this.scopedTimerIndex),this.scopedTimerIndex=window.setTimeout((function(){e.selectSearch=""}),500)}},{key:"isDisabled",value:function(e){var t;if(e.get("divider"))return!0;if(!r.isFunction(this.options.childOptions.isDisabled))return!1;for(var n=arguments.length,o=new Array(n>1?n-1:0),i=1;i<n;i++)o[i-1]=arguments[i];return(t=this.options.childOptions.isDisabled).call.apply(t,[this,e].concat(o))}},{key:"getButtonText",value:function(){if(this.options.disabled)return this.options.noOptionsText;var e=a.c.getSelected(this.collection);return e&&e.get(this.options.displayProperty)||this.options.placeholderText}},{key:"viewOptions",value:function(){return{styles:f.a,inputName:this.options.inputName,disabled:this.options.disabled,placeholderText:this.getButtonText()}}},{key:"onRender",value:function(){this.showChildView("dropdown",new l.a({collection:this.collection,channelName:this.options.channelName,childOptions:r.extend(this.options.childOptions),displayOptions:{extraClasses:"w-100 ".concat(f.a.dropdownMenu)},analyticsHelper:this.options.analyticsHelper}))}},{key:"name",get:function(){return"SelectComponent"}},{key:"template",get:function(){return c.a}},{key:"defaults",get:function(){return{displayProperty:"name"}}},{key:"elements",get:function(){return{dropdownToggle:".dropdown-toggle"}}}])&&d(t.prototype,n),i&&d(t,i),u}(i.a.Component)},1267:function(e,t,n){var r=n(10);e.exports=(r.default||r).template({1:function(e,t,n,r,o){var i;e.propertyIsEnumerable;return e.escapeExpression(e.lambda(null!=(i=null!=(i=null!=t?t.options:t)?i.styles:i)?i.disabled:i,t))},3:function(e,t,n,r,o){return" disabled"},compiler:[8,">= 4.3.0"],main:function(e,t,n,r,o){e.propertyIsEnumerable;var i,l=e.lambda,a=e.escapeExpression,s=null!=t?t:e.nullContext||{};return'<button \r\n class="dropdown-toggle form-control btn-block text-left position-relative '+a(l(null!=(i=null!=(i=null!=t?t.options:t)?i.styles:i)?i.selectButton:i,t))+" "+(null!=(i=n.if.call(s,null!=(i=null!=t?t.options:t)?i.disabled:i,{name:"if",hash:{},fn:e.program(1,o,0),inverse:e.noop,data:o}))?i:"")+'" \r\n type="button" \r\n id="dropdownMenuButton" \r\n data-toggle="dropdown" \r\n aria-haspopup="true" \r\n aria-expanded="false"\r\n '+(null!=(i=n.if.call(s,null!=(i=null!=t?t.options:t)?i.disabled:i,{name:"if",hash:{},fn:e.program(3,o,0),inverse:e.noop,data:o}))?i:"")+' \r\n name="'+a(l(null!=(i=null!=t?t.options:t)?i.inputName:i,t))+'"\r\n >\r\n '+a(l(null!=(i=null!=t?t.options:t)?i.placeholderText:i,t))+'\r\n</button>\r\n<div class="dropdown-region"></div>\r\n<div class="form-feedback"></div>'},useData:!0})},1268:function(e,t,n){e.exports={dropdownMenu:"_2RaQu",selectButton:"_2xGqi",disabled:"_15kWr"}},1289:function(e,t,n){"use strict";n.d(t,"a",(function(){return g}));var r=n(1),o=n(6),i=n(2),l=n(3),a=n(42),s=n(1266),c=n(12),u=n(1290),f=n.n(u);function p(e){return(p="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}function d(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}function h(e,t){return(h=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e})(e,t)}function y(e){var t=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Date.prototype.toString.call(Reflect.construct(Date,[],(function(){}))),!0}catch(e){return!1}}();return function(){var n,r=m(e);if(t){var o=m(this).constructor;n=Reflect.construct(r,arguments,o)}else n=r.apply(this,arguments);return b(this,n)}}function b(e,t){return!t||"object"!==p(t)&&"function"!=typeof t?function(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}(e):t}function m(e){return(m=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)})(e)}var g=function(e){!function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),t&&h(e,t)}(p,e);var t,n,i,u=y(p);function p(e){return function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,p),u.call(this,e)}return t=p,(n=[{key:"initialize",value:function(){this.bindListeners(),c.c.deselectAll(this.collection),c.c.setSelected(this.options.currentLibraryId,this.collection)}},{key:"regions",value:function(){return{dropdown:{el:".dropdown-menu-region",replaceElement:!0}}}},{key:"bindListeners",value:function(){var e=this;this.listenTo(this.channelName,"select:option:selected",(function(t){o.Radio.channel(e.options.channelName).trigger("library:selected",t)}))}},{key:"getIsOptionDisabledFn",value:function(){var e=this.options.disabledLibraryIds;return function(t){var n=t||this.model;if(r.contains(e,n.get("id")+""))return!0}}},{key:"onRender",value:function(){this.showChildView("dropdown",new s.a({collection:this.collection,channelName:this.channelName,childOptions:{titleProperty:"name",eventName:"select:option:click",isDisabled:this.getIsOptionDisabledFn()},placeholderText:this.options.placeholderText||l.a.getPhrase(this.lang,"placeholder"),noOptionsText:l.a.getPhrase(this.lang,"noLibraries"),inputName:this.options.inputName,disabled:0===this.collection.length||this.options.disabled,analyticsHelper:a.a}))}},{key:"name",get:function(){return"LibrarySelectComponent"}},{key:"channelName",get:function(){return"".concat(this.name).concat(this.cid)}},{key:"className",get:function(){return"position-relative"}},{key:"lang",get:function(){return"libraryEditor.librarySelect"}},{key:"template",get:function(){return f.a}}])&&d(t.prototype,n),i&&d(t,i),p}(i.a.Component)},1290:function(e,t,n){var r=n(10);e.exports=(r.default||r).template({compiler:[8,">= 4.3.0"],main:function(e,t,n,r,o){return'<div class="dropdown-menu-region"></div>\r\n<div class="form-feedback"></div>'},useData:!0})},1521:function(e,t,n){var r=n(10);e.exports=(r.default||r).template({1:function(e,t,n,r,o){e.propertyIsEnumerable;var i,l=null!=t?t:e.nullContext||{};return(null!=(i=n.if.call(l,null!=(i=null!=t?t.options:t)?i.foundLibraries:i,{name:"if",hash:{},fn:e.program(2,o,0),inverse:e.noop,data:o}))?i:"")+"\r\n"+(null!=(i=n.if.call(l,null!=(i=null!=t?t.options:t)?i.hasAvailableLibraries:i,{name:"if",hash:{},fn:e.program(4,o,0),inverse:e.noop,data:o}))?i:"")+"\r\n"+(null!=(i=n.if.call(l,null!=(i=null!=t?t.options:t)?i.showNoFolderText:i,{name:"if",hash:{},fn:e.program(7,o,0),inverse:e.noop,data:o}))?i:"")},2:function(e,t,n,r,o){var i;e.propertyIsEnumerable;return' <div class="alert alert-info" role="alert">\r\n <p class="m-0">'+(null!=(i=(n.lang||t&&t.lang||e.hooks.helperMissing).call(null!=t?t:e.nullContext||{},"foundLibraries",{name:"lang",hash:{libraries:null!=(i=null!=t?t.options:t)?i.foundLibraries:i},data:o}))?i:"")+"</p>\r\n </div>\r\n"},4:function(e,t,n,r,o){e.propertyIsEnumerable;var i,l=null!=t?t:e.nullContext||{},a=e.hooks.helperMissing,s=e.escapeExpression,c=e.lambda;return' <span class="d-block pb-2">'+s((n.lang||t&&t.lang||a).call(l,"selectFolder",{name:"lang",hash:{},data:o}))+"</span>\r\n"+(null!=(i=n.if.call(l,null!=(i=null!=t?t.options:t)?i.hasMultipleLibraries:i,{name:"if",hash:{},fn:e.program(5,o,0),inverse:e.noop,data:o}))?i:"")+' <div class="mt-1 mb-2 library-dropdown-region"></div>\r\n\r\n <span class="'+s(c(null!=(i=null!=(i=null!=t?t.options:t)?i.styles:i)?i.header:i,t))+' folder-name">'+s((n.lang||t&&t.lang||a).call(l,"folder",{name:"lang",hash:{},data:o}))+'</span>\r\n <div class="'+s(c(null!=(i=null!=(i=null!=t?t.options:t)?i.styles:i)?i.folderSelector:i,t))+' mt-1 folder-selector-region"></div>\r\n'},5:function(e,t,n,r,o){e.propertyIsEnumerable;var i,l=e.escapeExpression;return' <span class="'+l(e.lambda(null!=(i=null!=(i=null!=t?t.options:t)?i.styles:i)?i.header:i,t))+'">'+l((n.lang||t&&t.lang||e.hooks.helperMissing).call(null!=t?t:e.nullContext||{},"library",{name:"lang",hash:{},data:o}))+"</span>\r\n"},7:function(e,t,n,r,o){e.propertyIsEnumerable;var i,l=null!=t?t:e.nullContext||{},a=e.hooks.helperMissing;return" <p>"+e.escapeExpression((n.lang||t&&t.lang||a).call(l,"noFolders1",{name:"lang",hash:{},data:o}))+"</p>\r\n <p>"+(null!=(i=(n.lang||t&&t.lang||a).call(l,"noFolders2",{name:"lang",hash:{},data:o}))?i:"")+"</p>\r\n"},9:function(e,t,n,r,o){var i;e.propertyIsEnumerable;return(null!=(i=e.lambda(null!=(i=null!=t?t.options:t)?i.spinnerEl:i,t))?i:"")+"\r\n"},compiler:[8,">= 4.3.0"],main:function(e,t,n,r,o){var i;e.propertyIsEnumerable;return null!=(i=n.if.call(null!=t?t:e.nullContext||{},null!=(i=null!=t?t.options:t)?i.dataFetched:i,{name:"if",hash:{},fn:e.program(1,o,0),inverse:e.program(9,o,0),data:o}))?i:""},useData:!0})},1522:function(e,t,n){e.exports={header:"_1tdTv"}},1625:function(e,t,n){"use strict";n.r(t),n.d(t,"AddToLibraryView",(function(){return L}));var r=n(1),o=n(2),i=n(5),l=n(253),a=n(1229),s=n(293),c=n(9),u=n(59),f=n(1212),p=n(12),d=n(0),h=n(3),y=n(138),b=n(1289),m=n(1521),g=n.n(m),v=n(1522),w=n.n(v);function k(e){return(k="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}function S(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}function O(e,t){return(O=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e})(e,t)}function x(e){var t=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Date.prototype.toString.call(Reflect.construct(Date,[],(function(){}))),!0}catch(e){return!1}}();return function(){var n,r=C(e);if(t){var o=C(this).constructor;n=Reflect.construct(r,arguments,o)}else n=r.apply(this,arguments);return T(this,n)}}function T(e,t){return!t||"object"!==k(t)&&"function"!=typeof t?function(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}(e):t}function C(e){return(C=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)})(e)}var L=function(e){!function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),t&&O(e,t)}(v,e);var t,n,o,m=x(v);function v(e){return function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,v),m.call(this,e)}return t=v,(n=[{key:"initialize",value:function(){this.videoDataService=i.a.getInstance(d.g.Video,this),this.bindListeners()}},{key:"regions",value:function(){return{libraryDropdown:".library-dropdown-region",folderSelector:".folder-selector-region"}}},{key:"events",value:function(){return{submit:"onSubmit"}}},{key:"bindListeners",value:function(){this.listenTo("".concat(this.channelName,":library"),"library:selected",this.onLibrarySelected),this.listenTo("".concat(this.channelName,":folder"),"folder:selected",this.onFolderSelected),this.listenTo(d.e.VIDEO,"".concat(d.f.VIDEOS,":").concat(this.options.videoId,":sync"),this.render),this.listenTo(d.e.VIDEO,"get:video:categories:libraries:".concat(this.options.videoId,":sync"),this.render)}},{key:"onSubmit",value:function(e){e&&e.preventDefault(),this.spinnerModel.set(l.c.ShowSpinner,!0),this.addToLibrary()}},{key:"onLibrarySelected",value:function(e){this.spinnerModel.set(l.c.Disabled,!0),p.f.setSelected(this.libraryTreeKey,e.get("id"),this.customLibraries),this.renderFolderSelector()}},{key:"onFolderSelected",value:function(e){this.spinnerModel.set(l.c.Disabled,!1),p.f.setSelected(this.folderTreeKey,e,this.customLibraries)}},{key:"getVideosCustomLibraryNames",value:function(){if(!this.dataFetched())return null;var e=this.getVideoCustomLibraries();if(!e.length)return null;var t=r.map(e,(function(e){return"<strong>".concat(p.v.escapeExpression(e),"</strong>")}));if(1===t.length)return t[0];var n=h.a.getPhrase(this.lang,"and");return"".concat(t.slice(0,-1).join(", ")," ").concat(n," ").concat(t.slice(-1))}},{key:"addToLibrary",value:function(){var e,t,n=this,o=p.f.getSelected(this.folderTreeKey,this.customLibraries),i=o.get("id"),l=p.f.getSelected(this.libraryTreeKey,this.customLibraries).get("id"),a=this.model.libraries.filter((function(e){return e.get("type")===u.a.HostedLibrary})),s=this.model.categories;s&&s.last()&&(e=s.last().get("id")),a&&a.length&&(t=r.last(a).get("id"));var f={masterObjectId:this.options.videoId,masterObjectType:c.g.Video,metadata:{sourceLibraryId:t,sourceCategoryId:e,destinationLibraryId:l,destinationCategoryId:i}};this.videoDataService.addVideoToCustomLibrary(f,this.model,o,(function(){n.triggerMethod("hide")}))}},{key:"getSubmitBtnTooltipOptions",value:function(){if(this.spinnerModel.get(l.c.Disabled)&&this.hasAvailableLibraries())return{title:h.a.getPhrase(this.lang,"heading")}}},{key:"getAvailableCustomLibraries",value:function(){if(!this.dataFetched())return null;var e=this.customLibraries.clone();e.remove(this.model.libraries.filter((function(e){return e.get("type")===u.a.CustomLibrary})));var t=e.filter((function(e){return 0===e.children.length}));return e.remove(t),e}},{key:"hasAvailableLibraries",value:function(){if(!this.customLibraries)return!1;var e=this.getAvailableCustomLibraries();return e&&e.length>0}},{key:"hasFolders",value:function(){return!!this.customLibraries&&!!this.customLibraries.find((function(e){return!!e.get("children").length}))}},{key:"getVideoCustomLibraries",value:function(){if(!this.model||!this.model.libraries||!this.model.libraries.length)return null;var e=this.model.libraries.filter((function(e){return e.get("type")===u.a.CustomLibrary}));return r.map(e,(function(e){return e.get("name")}))}},{key:"dataFetched",value:function(){return!!this.model}},{key:"renderLibraryDropdown",value:function(){if(this.customLibraries.length<=1)this.renderFolderSelector();else{var e=p.f.getSelected(this.libraryTreeKey,this.customLibraries),t=this.getUI("folderName");this.$(t).hide(),this.showChildView("libraryDropdown",new b.a({currentLibraryId:e?e.get("id"):null,collection:this.getAvailableCustomLibraries(),channelName:"".concat(this.channelName,":library")}))}}},{key:"renderFolderSelector",value:function(){var e=this.getAvailableCustomLibraries();1===e.length&&p.f.setSelected(this.libraryTreeKey,e.first().get("id"),e);var t=p.f.getSelected(this.libraryTreeKey,e),n=t.get("children")&&!!t.get("children").length,r=this.getUI("folderName");t&&n&&this.$(r).show(),this.showChildView("folderSelector",new a.a({collection:t.children,channelName:"".concat(this.channelName,":folder"),folderTreeKey:this.folderTreeKey}))}},{key:"onBeforeRender",value:function(){this.model=this.videoDataService.getVideo(this.options.videoId)}},{key:"viewOptions",value:function(){var e;return{styles:w.a,foundLibraries:this.getVideosCustomLibraryNames(),hasAvailableLibraries:this.hasAvailableLibraries(),hasMultipleLibraries:(null===(e=this.customLibraries)||void 0===e?void 0:e.length)>1,dataFetched:this.dataFetched(),spinnerEl:p.q.getSpinner({size:p.r.Large,extraClasses:"mx-auto"}),showNoFolderText:!this.hasFolders()}}},{key:"onRender",value:function(){this.dataFetched()&&this.hasAvailableLibraries()&&this.renderLibraryDropdown()}},{key:"name",get:function(){return"AddToLibraryView"}},{key:"title",get:function(){return h.a.getPhrase(this.lang,"title")}},{key:"lang",get:function(){return"contentUpdates.addToLibrary"}},{key:"tagName",get:function(){return"form"}},{key:"className",get:function(){return"form-group"}},{key:"appLinks",get:function(){return{".library-editor-applink":{application:d.b.LIBRARY_EDITOR,action:d.a.LibraryEditor.HOME}}}},{key:"folderTreeKey",get:function(){return"folderselect:".concat(this.cid)}},{key:"libraryTreeKey",get:function(){return"libraryselect:".concat(this.cid)}},{key:"channelName",get:function(){return p.k.generateUniqueChannelName(this)}},{key:"template",get:function(){return g.a}},{key:"behaviors",get:function(){var e=this;return[{behaviorClass:s.e,title:h.a.getPhrase(this.lang,"submitTooltip"),size:"modal-md",spinnerButtonOptions:{channelName:this.channelName,model:this.spinnerModel=new f.a,buttonText:h.a.getPhrase(this.lang,"addBtn"),tooltip:function(){return e.getSubmitBtnTooltipOptions()},onClick:function(t){return e.onSubmit(t)}}}]}},{key:"elements",get:function(){return{folderName:".folder-name"}}},{key:"requiredResources",get:function(){return{customLibraries:y.b.libraries}}}])&&S(t.prototype,n),o&&S(t,o),v}(o.a.View)}}]);
@@ -1 +1 @@
1
- (window.webpackJsonp_clickview_library_editor=window.webpackJsonp_clickview_library_editor||[]).push([[33],{1052:function(e,t,n){"use strict";n.d(t,"a",(function(){return h}));var r=n(2),o=n(243);function i(e){return(i="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}function l(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function a(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}function s(e,t){return(s=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e})(e,t)}function c(e){var t=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Date.prototype.toString.call(Reflect.construct(Date,[],(function(){}))),!0}catch(e){return!1}}();return function(){var n,r=f(e);if(t){var o=f(this).constructor;n=Reflect.construct(r,arguments,o)}else n=r.apply(this,arguments);return u(this,n)}}function u(e,t){return!t||"object"!==i(t)&&"function"!=typeof t?function(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}(e):t}function f(e){return(f=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)})(e)}var h=function(e){!function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),t&&s(e,t)}(u,e);var t,n,r,i=c(u);function u(){return l(this,u),i.apply(this,arguments)}return t=u,(n=[{key:"defaults",value:function(){return e={},t=o.c.Disabled,n=!0,t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e;var e,t,n}}])&&a(t.prototype,n),r&&a(t,r),u}(r.a.Model)},1064:function(e,t,n){"use strict";n.d(t,"a",(function(){return h}));var r=n(1),o=n(2),i=n(287);function l(e){return(l="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}function a(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}function s(e,t){return(s=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e})(e,t)}function c(e){var t=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Date.prototype.toString.call(Reflect.construct(Date,[],(function(){}))),!0}catch(e){return!1}}();return function(){var n,r=f(e);if(t){var o=f(this).constructor;n=Reflect.construct(r,arguments,o)}else n=r.apply(this,arguments);return u(this,n)}}function u(e,t){return!t||"object"!==l(t)&&"function"!=typeof t?function(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}(e):t}function f(e){return(f=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)})(e)}var h=function(e){!function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),t&&s(e,t)}(u,e);var t,n,o,l=c(u);function u(e){return function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,u),l.call(this,e)}return t=u,(n=[{key:"initialize",value:function(){this.listenTo(this.options.channelName,"center:dropdown",this.centerSelectedItem)}},{key:"getExtraClasses",value:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t=e.alignment,n=void 0===t?"left":t,r=e.extraClasses,o="dropdown-menu-".concat(n);return r&&(o="".concat(o," ").concat(r)),o}},{key:"centerSelectedItem",value:function(){var e=this.$el.find(".active");if(e.length){var t=this.$el.scrollTop()+e.position().top,n=.5*this.$el.height()+.5*e.height();this.$el.scrollTop(t-n)}}},{key:"name",get:function(){return"DropdownCollectionComponent"}},{key:"className",get:function(){return"dropdown-menu items-viewpart ".concat(this.getExtraClasses(this.options.displayOptions))}},{key:"attributes",get:function(){return{"aria-labelledby":"dropdownSelector"}}},{key:"childView",get:function(){return i.a}},{key:"childViewOptions",get:function(){var e={channelName:this.options.channelName,analyticsHelper:this.options.analyticsHelper};return r.extend(e,this.options.childOptions)}}])&&a(t.prototype,n),o&&a(t,o),u}(o.a.ComponentCollection)},1069:function(e,t,n){"use strict";n.d(t,"a",(function(){return g}));var r=n(6),o=n(2),i=n(3),l=n(1083),a=n(12),s=n(1070),c=n.n(s),u=n(1071),f=n.n(u);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 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 d(e,t){return(d=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e})(e,t)}function y(e){var t=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Date.prototype.toString.call(Reflect.construct(Date,[],(function(){}))),!0}catch(e){return!1}}();return function(){var n,r=m(e);if(t){var o=m(this).constructor;n=Reflect.construct(r,arguments,o)}else n=r.apply(this,arguments);return b(this,n)}}function b(e,t){return!t||"object"!==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 m(e){return(m=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)})(e)}var g=function(e){!function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),t&&d(e,t)}(u,e);var t,n,o,s=y(u);function u(e){return function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,u),s.call(this,e)}return t=u,(n=[{key:"initialize",value:function(){this.listenTo(this.options.channelName,"folder:selected new:folder:selected",this.setButtonText),this.listenTo(this.options.channelName,"re:render:selector",this.renderSelector),this.disabledIds=this.options.disabledIds&&this.options.disabledIds.reduce((function(e,t){return Object.assign(Object.assign({},e),function(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}({},t,!0))}),{})}},{key:"regions",value:function(){return{selector:{el:".selector-region",replaceElement:!1}}}},{key:"events",value:function(){return{"click .create-new":"onClickCreateNew"}}},{key:"onClickCreateNew",value:function(e){e.preventDefault(),r.Radio.channel(this.options.channelName).trigger("create:folder:clicked")}},{key:"setButtonText",value:function(e,t){if(e&&!t){var n=e.get("name");this.getUI("button").text(n)}else{var r=a.f.getSelected(this.options.folderTreeKey,this.collection),o=r?r.get("name"):i.a.getPhrase(this.lang,"button");this.getUI("button").text(o)}}},{key:"renderSelector",value:function(){this.showChildView("selector",new l.a({styles:f.a,collection:this.collection,channelName:this.options.channelName,childrenProperty:"children",folderTreeId:this.options.folderTreeKey,extraClass:f.a.list,extraClasses:f.a.list,isSelector:!0,disabledIds:this.disabledIds||{}}))}},{key:"viewOptions",value:function(){return{styles:f.a,name:this.options.name||this.options.channelName,buttonText:this.buttonText,canCreateNew:this.options.canCreateNew}}},{key:"onRender",value:function(){this.setButtonText(),this.renderSelector()}},{key:"name",get:function(){return"TreeDropdownComponent"}},{key:"template",get:function(){return c.a}},{key:"className",get:function(){return"position-relative"}},{key:"lang",get:function(){return"libraryEditor.treeDropdown"}},{key:"defaults",get:function(){return{disabledIds:[]}}},{key:"elements",get:function(){return{button:".custom-select"}}}])&&p(t.prototype,n),o&&p(t,o),u}(o.a.Component)},1070:function(e,t,n){var r=n(10);e.exports=(r.default||r).template({1:function(e,t,n,r,o){e.propertyIsEnumerable;var i,l=e.escapeExpression;return' <button class="create-new btn font-weight-bold rounded-0 w-100 text-left '+l(e.lambda(null!=(i=null!=(i=null!=t?t.options:t)?i.styles:i)?i.customItem:i,t))+'">'+l((n.lang||t&&t.lang||e.hooks.helperMissing).call(null!=t?t:e.nullContext||{},"createNew",{name:"lang",hash:{},data:o}))+"</button>\r\n"},compiler:[8,">= 4.3.0"],main:function(e,t,n,r,o){e.propertyIsEnumerable;var i,l=e.lambda,a=e.escapeExpression;return'<button\r\n class="'+a(l(null!=(i=null!=(i=null!=t?t.options:t)?i.styles:i)?i.selectBtn:i,t))+' custom-select form-control"\r\n data-toggle="dropdown"\r\n aria-haspopup="true"\r\n aria-expanded="false"\r\n name='+a(l(null!=(i=null!=t?t.options:t)?i.name:i,t))+"\r\n>"+a(l(null!=(i=null!=t?t.options:t)?i.buttonText:i,t))+'</button>\r\n<div class="dropdown-menu '+a(l(null!=(i=null!=(i=null!=t?t.options:t)?i.styles:i)?i.selector:i,t))+'">\r\n <div class="selector-region"></div>\r\n'+(null!=(i=n.if.call(null!=t?t:e.nullContext||{},null!=(i=null!=t?t.options:t)?i.canCreateNew:i,{name:"if",hash:{},fn:e.program(1,o,0),inverse:e.noop,data:o}))?i:"")+'</div>\r\n<div class="form-feedback"></div>'},useData:!0})},1071:function(e,t,n){e.exports={selectBtn:"_2TTgs",list:"_3wN7o",selector:"_3Xf1P",customItem:"_199PI"}},1106:function(e,t,n){"use strict";n.d(t,"a",(function(){return g}));var r=n(1),o=n(6),i=n(2),l=n(1064),a=n(12),s=n(1107),c=n.n(s),u=n(1108),f=n.n(u);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 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 d(e,t){return(d=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e})(e,t)}function y(e){var t=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Date.prototype.toString.call(Reflect.construct(Date,[],(function(){}))),!0}catch(e){return!1}}();return function(){var n,r=m(e);if(t){var o=m(this).constructor;n=Reflect.construct(r,arguments,o)}else n=r.apply(this,arguments);return b(this,n)}}function b(e,t){return!t||"object"!==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 m(e){return(m=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)})(e)}var g=function(e){!function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),t&&d(e,t)}(u,e);var t,n,i,s=y(u);function u(e){var t;return function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,u),(t=s.call(this,e)).selectSearch="",t.sameCharIndex=1,t.optionStep=1,t}return t=u,(n=[{key:"initialize",value:function(){this.setModel(),this.bindListeners()}},{key:"regions",value:function(){return{dropdown:{el:".dropdown-region",replaceElement:!0}}}},{key:"events",value:function(){return{keydown:"onKeydown","shown.bs.dropdown":"onShowDropdown"}}},{key:"bindListeners",value:function(){this.listenTo(this.options.channelName,this.options.childOptions.eventName,this.onSelect)}},{key:"onShowDropdown",value:function(){o.Radio.channel(this.options.channelName).trigger("center:dropdown")}},{key:"onKeydown",value:function(e){38===e.keyCode||40===e.keyCode?this.onArrowKeyDown(e):13===e.keyCode?this.render():this.onType(e),o.Radio.channel(this.options.channelName).trigger("center:dropdown")}},{key:"onArrowKeyDown",value:function(e){a.c.getSelected(this.collection)?this.optionStep=1:this.optionStep=0;var t=this.getNextModel(e.keyCode);for(t||(a.c.deselectAll(this.collection),t=this.getNextModel(e.keyCode));this.isDisabled(t);)this.optionStep++,t=this.getNextModel(e.keyCode);this.onSelect(t)}},{key:"onType",value:function(e){if(1===e.key.toString().length){var t=this.getModelMatch(e);t&&this.onSelect(t),this.runTimer()}}},{key:"onSelect",value:function(e){this.isDisabled(e)||(a.c.setSelected(e.get("id"),this.collection),this.setModel(),this.getUI("dropdownToggle").text(this.getButtonText()),o.Radio.channel(this.options.channelName).trigger("select:option:selected",e))}},{key:"setModel",value:function(){this.model=a.c.getSelected(this.collection)}},{key:"getNextModel",value:function(e){var t,n=a.c.getSelected(this.collection)||this.collection.first(),r=this.collection.indexOf(n);return(t=38===e?this.collection.at(r-this.optionStep):this.collection.at(r+this.optionStep))||(a.c.deselectAll(this.collection),t=this.collection.first(),this.optionStep=0),t}},{key:"getModelMatch",value:function(e){var t,n=this;return 1===this.selectSearch.length&&this.selectSearch===e.key?t=this.handleSameCharIndex(e.key):(this.selectSearch+=e.key,this.sameCharIndex=1),t||(t=r.find(this.collection.models,(function(e){return e.get(n.options.displayProperty).toLowerCase().slice(0,n.selectSearch.length).includes(n.selectSearch.toLowerCase())}))),t}},{key:"handleSameCharIndex",value:function(e){var t=this,n=r.filter(this.collection.models,(function(n){return n.get(t.options.displayProperty).toLowerCase().slice(0,1)===e}));if(n.length>1){var o=n[this.sameCharIndex];return o||(o=r.first(n),this.sameCharIndex=0),this.sameCharIndex++,o}return r.first(n)}},{key:"runTimer",value:function(){var e=this;this.scopedTimerIndex&&clearTimeout(this.scopedTimerIndex),this.scopedTimerIndex=window.setTimeout((function(){e.selectSearch=""}),500)}},{key:"isDisabled",value:function(e){var t;if(e.get("divider"))return!0;if(!r.isFunction(this.options.childOptions.isDisabled))return!1;for(var n=arguments.length,o=new Array(n>1?n-1:0),i=1;i<n;i++)o[i-1]=arguments[i];return(t=this.options.childOptions.isDisabled).call.apply(t,[this,e].concat(o))}},{key:"getButtonText",value:function(){if(this.options.disabled)return this.options.noOptionsText;var e=a.c.getSelected(this.collection);return e&&e.get(this.options.displayProperty)||this.options.placeholderText}},{key:"viewOptions",value:function(){return{styles:f.a,inputName:this.options.inputName,disabled:this.options.disabled,placeholderText:this.getButtonText()}}},{key:"onRender",value:function(){this.showChildView("dropdown",new l.a({collection:this.collection,channelName:this.options.channelName,childOptions:r.extend(this.options.childOptions),displayOptions:{extraClasses:"w-100 ".concat(f.a.dropdownMenu)},analyticsHelper:this.options.analyticsHelper}))}},{key:"name",get:function(){return"SelectComponent"}},{key:"template",get:function(){return c.a}},{key:"defaults",get:function(){return{displayProperty:"name"}}},{key:"elements",get:function(){return{dropdownToggle:".dropdown-toggle"}}}])&&p(t.prototype,n),i&&p(t,i),u}(i.a.Component)},1107:function(e,t,n){var r=n(10);e.exports=(r.default||r).template({1:function(e,t,n,r,o){var i;e.propertyIsEnumerable;return e.escapeExpression(e.lambda(null!=(i=null!=(i=null!=t?t.options:t)?i.styles:i)?i.disabled:i,t))},3:function(e,t,n,r,o){return" disabled"},compiler:[8,">= 4.3.0"],main:function(e,t,n,r,o){e.propertyIsEnumerable;var i,l=e.lambda,a=e.escapeExpression,s=null!=t?t:e.nullContext||{};return'<button \r\n class="dropdown-toggle form-control btn-block text-left position-relative '+a(l(null!=(i=null!=(i=null!=t?t.options:t)?i.styles:i)?i.selectButton:i,t))+" "+(null!=(i=n.if.call(s,null!=(i=null!=t?t.options:t)?i.disabled:i,{name:"if",hash:{},fn:e.program(1,o,0),inverse:e.noop,data:o}))?i:"")+'" \r\n type="button" \r\n id="dropdownMenuButton" \r\n data-toggle="dropdown" \r\n aria-haspopup="true" \r\n aria-expanded="false"\r\n '+(null!=(i=n.if.call(s,null!=(i=null!=t?t.options:t)?i.disabled:i,{name:"if",hash:{},fn:e.program(3,o,0),inverse:e.noop,data:o}))?i:"")+' \r\n name="'+a(l(null!=(i=null!=t?t.options:t)?i.inputName:i,t))+'"\r\n >\r\n '+a(l(null!=(i=null!=t?t.options:t)?i.placeholderText:i,t))+'\r\n</button>\r\n<div class="dropdown-region"></div>\r\n<div class="form-feedback"></div>'},useData:!0})},1108:function(e,t,n){e.exports={dropdownMenu:"_2RaQu",selectButton:"_2xGqi",disabled:"_15kWr"}},1129:function(e,t,n){"use strict";n.d(t,"a",(function(){return g}));var r=n(1),o=n(6),i=n(2),l=n(3),a=n(42),s=n(1106),c=n(12),u=n(1130),f=n.n(u);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 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 d(e,t){return(d=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e})(e,t)}function y(e){var t=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Date.prototype.toString.call(Reflect.construct(Date,[],(function(){}))),!0}catch(e){return!1}}();return function(){var n,r=m(e);if(t){var o=m(this).constructor;n=Reflect.construct(r,arguments,o)}else n=r.apply(this,arguments);return b(this,n)}}function b(e,t){return!t||"object"!==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 m(e){return(m=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)})(e)}var g=function(e){!function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),t&&d(e,t)}(h,e);var t,n,i,u=y(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(),c.c.deselectAll(this.collection),c.c.setSelected(this.options.currentLibraryId,this.collection)}},{key:"regions",value:function(){return{dropdown:{el:".dropdown-menu-region",replaceElement:!0}}}},{key:"bindListeners",value:function(){var e=this;this.listenTo(this.channelName,"select:option:selected",(function(t){o.Radio.channel(e.options.channelName).trigger("library:selected",t)}))}},{key:"getIsOptionDisabledFn",value:function(){var e=this.options.disabledLibraryIds;return function(t){var n=t||this.model;if(r.contains(e,n.get("id")+""))return!0}}},{key:"onRender",value:function(){this.showChildView("dropdown",new s.a({collection:this.collection,channelName:this.channelName,childOptions:{titleProperty:"name",eventName:"select:option:click",isDisabled:this.getIsOptionDisabledFn()},placeholderText:this.options.placeholderText||l.a.getPhrase(this.lang,"placeholder"),noOptionsText:l.a.getPhrase(this.lang,"noLibraries"),inputName:this.options.inputName,disabled:0===this.collection.length||this.options.disabled,analyticsHelper:a.a}))}},{key:"name",get:function(){return"LibrarySelectComponent"}},{key:"channelName",get:function(){return"".concat(this.name).concat(this.cid)}},{key:"className",get:function(){return"position-relative"}},{key:"lang",get:function(){return"libraryEditor.librarySelect"}},{key:"template",get:function(){return f.a}}])&&p(t.prototype,n),i&&p(t,i),h}(i.a.Component)},1130:function(e,t,n){var r=n(10);e.exports=(r.default||r).template({compiler:[8,">= 4.3.0"],main:function(e,t,n,r,o){return'<div class="dropdown-menu-region"></div>\r\n<div class="form-feedback"></div>'},useData:!0})},1253: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' <div class="alert alert-info" role="alert">\r\n <p class="m-0">'+(null!=(i=(n.lang||t&&t.lang||e.hooks.helperMissing).call(null!=t?t:e.nullContext||{},"hiddenLibraryNames",{name:"lang",hash:{smartCount:null!=(i=null!=t?t.options:t)?i.hiddenLibraryNamesLength:i,libraries:null!=(i=null!=t?t.options:t)?i.hiddenLibraryNames:i},data:o}))?i:"")+"</p>\r\n </div>\r\n"},3:function(e,t,n,r,o){e.propertyIsEnumerable;return' <div class="form-group">\r\n <label class="control-label">'+e.escapeExpression((n.lang||t&&t.lang||e.hooks.helperMissing).call(null!=t?t:e.nullContext||{},"library",{name:"lang",hash:{},data:o}))+'</label>\r\n <div class="library-region"></div>\r\n </div>\r\n'},5:function(e,t,n,r,o){return'style="display: none;"'},compiler:[8,">= 4.3.0"],main:function(e,t,n,r,o){e.propertyIsEnumerable;var i,l=null!=t?t:e.nullContext||{};return"<form>\r\n"+(null!=(i=n.if.call(l,null!=(i=null!=t?t.options:t)?i.hiddenLibraryNames:i,{name:"if",hash:{},fn:e.program(1,o,0),inverse:e.noop,data:o}))?i:"")+"\r\n"+(null!=(i=n.if.call(l,null!=(i=null!=t?t.options:t)?i.hasMultipleLibraries:i,{name:"if",hash:{},fn:e.program(3,o,0),inverse:e.noop,data:o}))?i:"")+'\r\n <div class="form-group">\r\n <label class="control-label folder-label" '+(null!=(i=n.if.call(l,null!=(i=null!=t?t.options:t)?i.hasMultipleLibraries:i,{name:"if",hash:{},fn:e.program(5,o,0),inverse:e.noop,data:o}))?i:"")+">"+e.escapeExpression((n.lang||t&&t.lang||e.hooks.helperMissing).call(l,"folder",{name:"lang",hash:{},data:o}))+'</label>\r\n <div class="folder-region"></div>\r\n </div>\r\n</form>'},useData:!0})},1443:function(e,t,n){"use strict";n.r(t),n.d(t,"MoveVideoView",(function(){return N}));var r=n(1),o=n(3),i=n(5),l=n(2),a=n(301),s=n(42),c=n(282),u=n(0),f=n(145),h=n(1052),p=n(293),d=n(12),y=n(1069),b=n(243),m=n(1129),g=n(1253),v=n.n(g);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 r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}function S(e,t){return(S=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e})(e,t)}function O(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=T(e);if(t){var o=T(this).constructor;n=Reflect.construct(r,arguments,o)}else n=r.apply(this,arguments);return x(this,n)}}function x(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 T(e){return(T=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)})(e)}var N=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)}(w,e);var t,n,l,g=O(w);function w(e){return function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,w),g.call(this,e)}return t=w,(n=[{key:"initialize",value:function(){this.listenTo(u.e.LIBRARY,"libraries:sync",this.render),this.listenTo(u.e.VIDEO,"".concat(u.f.VIDEOS_BY_ID,":").concat(this.options.videoIds.join(","),":sync"),this.render),this.listenTo(this.channelName,"library:selected",this.onLibrarySelected),this.listenTo(this.channelName,"folder:selected",this.onFolderSelected),this.libraryDataService=i.a.getInstance(u.g.Library,this),this.videoDataService=i.a.getInstance(u.g.Video,this)}},{key:"regions",value:function(){return{folder:".folder-region",library:".library-region"}}},{key:"events",value:function(){return{submit:"onSubmit","click .submit":"onSubmit"}}},{key:"filterLibrariesWithVideo",value:function(){var e=this;if(this.libraries&&this.collection&&this.hasMultipleLibraries()){var t=this.collection.map((function(e){return e.get("libraries").map((function(e){return e.get("id")}))})),n=r.uniq(r.flatten(t)),o=[],i=[];this.libraries.forEach((function(t){var l=d.f.getModelFromCollection(e.options.folderId,t.get("children"));!r.contains(n,+t.get("id"))||l?o.push(t):i.push(t)})),this.libraries=new f.a(o),this.hiddenLibraryNames=i.map((function(e){return e.get("name")})),1===this.libraries.length&&this.onLibrarySelected(this.libraries.first())}}},{key:"getSubmitBtnTooltipOptions",value:function(){if(this.spinnerModel.get(b.c.Disabled))return{title:o.a.getPhrase(this.lang,"btnTooltip")}}},{key:"onLibrarySelected",value:function(e){var t=d.f.getSelected(this.libraryTreeKey,this.libraries);t&&d.f.deselectAll(this.folderTreeKey,t.get("children")),d.f.setSelected(this.libraryTreeKey,e,this.libraries),this.hasMultipleLibraries()&&this.getUI("folderLabel").show(),this.spinnerModel.set(b.c.Disabled,!0),this.render()}},{key:"onFolderSelected",value:function(e,t){var n=d.f.getSelected(this.libraryTreeKey,this.libraries).get("children");d.f.setSelected(this.folderTreeKey,e,n,t),t||this.spinnerModel.set(b.c.Disabled,!1)}},{key:"onSubmit",value:function(){var e=this;this.spinnerModel.set(b.c.ShowSpinner,!0);var t,n,r=d.f.getSelected(this.folderTreeKey,this.libraries),o=r.get("id"),i=this.collection.map((function(e){return e.get("id")}));this.collection.each((function(r){t||(t=r.categories.find((function(t){return t.get("id")===+e.options.folderId})),n=r)}));var l=1===i.length?n.get("name"):"",a=p.a.moveVideoAlert(t.get("name"),r.get("name"),r.get("id"),i.length,l);this.videoDataService.moveVideos(i,o,this.options.folderId,(function(){e.triggerMethod("hide")}),a),this.logAction(i,o)}},{key:"hasMultipleLibraries",value:function(){return this.libraries&&this.libraries.length>1}},{key:"getFormattedHiddenLibraryNames",value:function(){var e=r.map(this.hiddenLibraryNames,(function(e){return"<strong>".concat(a.a.escapeExpression(e),"</strong>")}));if(1===e.length)return e[0];var t=o.a.getPhrase(this.lang,"and");return"".concat(e.slice(0,-1).join(", ")," ").concat(t," ").concat(e.slice(-1))}},{key:"logAction",value:function(e,t){var n={newParentId:t,oldParentId:this.options.folderId,count:e.length};1===e.length&&(n.id=r.first(e)),s.a.logUserAction(n,this.options.analyticsOptions)}},{key:"renderLibrarySelect",value:function(){if(this.libraries&&1!==this.libraries.length){var e=d.f.getSelected(this.libraryTreeKey,this.libraries);this.showChildView("library",new m.a({collection:this.libraries,channelName:this.channelName,currentLibraryId:e?e.get("id"):null}))}}},{key:"renderFolderSelect",value:function(){var e=d.f.getSelected(this.libraryTreeKey,this.libraries);this.showChildView("folder",new y.a({collection:e.get("children"),channelName:this.channelName,folderTreeKey:this.folderTreeKey,disabledIds:[this.options.folderId]}))}},{key:"viewOptions",value:function(){var e,t;return{hasMultipleLibraries:this.hasMultipleLibraries(),hiddenLibraryNames:(null===(e=this.hiddenLibraryNames)||void 0===e?void 0:e.length)?this.getFormattedHiddenLibraryNames():"",hiddenLibraryNamesLength:null===(t=this.hiddenLibraryNames)||void 0===t?void 0:t.length}}},{key:"onBeforeRender",value:function(){var e=this;return this.libraries||this.libraryDataService.getLibraries((function(t){e.libraries=new f.a(t.filter((function(e){return!!e.get("children").length}))),e.hasMultipleLibraries()||e.onLibrarySelected(e.libraries.first()),e.filterLibrariesWithVideo(),e.render()})),this.collection||this.videoDataService.getVideos(this.options.videoIds,(function(t){e.collection=t,e.filterLibrariesWithVideo(),e.render()})),!!this.collection&&!!this.libraries}},{key:"onRender",value:function(){this.renderLibrarySelect(),d.f.getSelected(this.libraryTreeKey,this.libraries)&&this.renderFolderSelect()}},{key:"name",get:function(){return"MoveVideoView"}},{key:"title",get:function(){return this.options.videoIds&&o.a.getPhrase(this.lang,"title",{smartCount:this.options.videoIds.length})}},{key:"lang",get:function(){return"libraryEditor.moveVideo"}},{key:"channelName",get:function(){return d.k.generateUniqueChannelName(this)}},{key:"libraryTreeKey",get:function(){return"libraryselect:".concat(this.cid)}},{key:"folderTreeKey",get:function(){return"folderselect:".concat(this.cid)}},{key:"template",get:function(){return v.a}},{key:"elements",get:function(){return{folderLabel:".folder-label"}}},{key:"behaviors",get:function(){var e=this;return[{title:o.a.getPhrase(this.lang,"heading"),behaviorClass:c.e,closeOnRoute:!1,spinnerButtonOptions:{channelName:this.channelName,model:this.spinnerModel=new h.a,buttonText:o.a.getPhrase(this.lang,"submit"),tooltip:function(){return e.getSubmitBtnTooltipOptions()},onClick:function(){return e.onSubmit()}}}]}}])&&k(t.prototype,n),l&&k(t,l),w}(l.a.View)}}]);
1
+ (window.webpackJsonp_clickview_library_editor=window.webpackJsonp_clickview_library_editor||[]).push([[33],{1212:function(e,t,n){"use strict";n.d(t,"a",(function(){return h}));var r=n(2),o=n(253);function i(e){return(i="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}function l(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function a(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}function s(e,t){return(s=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e})(e,t)}function c(e){var t=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Date.prototype.toString.call(Reflect.construct(Date,[],(function(){}))),!0}catch(e){return!1}}();return function(){var n,r=f(e);if(t){var o=f(this).constructor;n=Reflect.construct(r,arguments,o)}else n=r.apply(this,arguments);return u(this,n)}}function u(e,t){return!t||"object"!==i(t)&&"function"!=typeof t?function(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}(e):t}function f(e){return(f=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)})(e)}var h=function(e){!function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),t&&s(e,t)}(u,e);var t,n,r,i=c(u);function u(){return l(this,u),i.apply(this,arguments)}return t=u,(n=[{key:"defaults",value:function(){return e={},t=o.c.Disabled,n=!0,t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e;var e,t,n}}])&&a(t.prototype,n),r&&a(t,r),u}(r.a.Model)},1224:function(e,t,n){"use strict";n.d(t,"a",(function(){return h}));var r=n(1),o=n(2),i=n(298);function l(e){return(l="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}function a(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}function s(e,t){return(s=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e})(e,t)}function c(e){var t=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Date.prototype.toString.call(Reflect.construct(Date,[],(function(){}))),!0}catch(e){return!1}}();return function(){var n,r=f(e);if(t){var o=f(this).constructor;n=Reflect.construct(r,arguments,o)}else n=r.apply(this,arguments);return u(this,n)}}function u(e,t){return!t||"object"!==l(t)&&"function"!=typeof t?function(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}(e):t}function f(e){return(f=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)})(e)}var h=function(e){!function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),t&&s(e,t)}(u,e);var t,n,o,l=c(u);function u(e){return function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,u),l.call(this,e)}return t=u,(n=[{key:"initialize",value:function(){this.listenTo(this.options.channelName,"center:dropdown",this.centerSelectedItem)}},{key:"getExtraClasses",value:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t=e.alignment,n=void 0===t?"left":t,r=e.extraClasses,o="dropdown-menu-".concat(n);return r&&(o="".concat(o," ").concat(r)),o}},{key:"centerSelectedItem",value:function(){var e=this.$el.find(".active");if(e.length){var t=this.$el.scrollTop()+e.position().top,n=.5*this.$el.height()+.5*e.height();this.$el.scrollTop(t-n)}}},{key:"name",get:function(){return"DropdownCollectionComponent"}},{key:"className",get:function(){return"dropdown-menu items-viewpart ".concat(this.getExtraClasses(this.options.displayOptions))}},{key:"attributes",get:function(){return{"aria-labelledby":"dropdownSelector"}}},{key:"childView",get:function(){return i.a}},{key:"childViewOptions",get:function(){var e={channelName:this.options.channelName,analyticsHelper:this.options.analyticsHelper};return r.extend(e,this.options.childOptions)}}])&&a(t.prototype,n),o&&a(t,o),u}(o.a.ComponentCollection)},1229:function(e,t,n){"use strict";n.d(t,"a",(function(){return g}));var r=n(6),o=n(2),i=n(3),l=n(1243),a=n(12),s=n(1230),c=n.n(s),u=n(1231),f=n.n(u);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 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 d(e,t){return(d=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e})(e,t)}function y(e){var t=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Date.prototype.toString.call(Reflect.construct(Date,[],(function(){}))),!0}catch(e){return!1}}();return function(){var n,r=m(e);if(t){var o=m(this).constructor;n=Reflect.construct(r,arguments,o)}else n=r.apply(this,arguments);return b(this,n)}}function b(e,t){return!t||"object"!==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 m(e){return(m=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)})(e)}var g=function(e){!function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),t&&d(e,t)}(u,e);var t,n,o,s=y(u);function u(e){return function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,u),s.call(this,e)}return t=u,(n=[{key:"initialize",value:function(){this.listenTo(this.options.channelName,"folder:selected new:folder:selected",this.setButtonText),this.listenTo(this.options.channelName,"re:render:selector",this.renderSelector),this.disabledIds=this.options.disabledIds&&this.options.disabledIds.reduce((function(e,t){return Object.assign(Object.assign({},e),function(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}({},t,!0))}),{})}},{key:"regions",value:function(){return{selector:{el:".selector-region",replaceElement:!1}}}},{key:"events",value:function(){return{"click .create-new":"onClickCreateNew"}}},{key:"onClickCreateNew",value:function(e){e.preventDefault(),r.Radio.channel(this.options.channelName).trigger("create:folder:clicked")}},{key:"setButtonText",value:function(e,t){if(e&&!t){var n=e.get("name");this.getUI("button").text(n)}else{var r=a.f.getSelected(this.options.folderTreeKey,this.collection),o=r?r.get("name"):i.a.getPhrase(this.lang,"button");this.getUI("button").text(o)}}},{key:"renderSelector",value:function(){this.showChildView("selector",new l.a({styles:f.a,collection:this.collection,channelName:this.options.channelName,childrenProperty:"children",folderTreeId:this.options.folderTreeKey,extraClass:f.a.list,extraClasses:f.a.list,isSelector:!0,disabledIds:this.disabledIds||{}}))}},{key:"viewOptions",value:function(){return{styles:f.a,name:this.options.name||this.options.channelName,buttonText:this.buttonText,canCreateNew:this.options.canCreateNew}}},{key:"onRender",value:function(){this.setButtonText(),this.renderSelector()}},{key:"name",get:function(){return"TreeDropdownComponent"}},{key:"template",get:function(){return c.a}},{key:"className",get:function(){return"position-relative"}},{key:"lang",get:function(){return"libraryEditor.treeDropdown"}},{key:"defaults",get:function(){return{disabledIds:[]}}},{key:"elements",get:function(){return{button:".custom-select"}}}])&&p(t.prototype,n),o&&p(t,o),u}(o.a.Component)},1230:function(e,t,n){var r=n(10);e.exports=(r.default||r).template({1:function(e,t,n,r,o){e.propertyIsEnumerable;var i,l=e.escapeExpression;return' <button class="create-new btn font-weight-bold rounded-0 w-100 text-left '+l(e.lambda(null!=(i=null!=(i=null!=t?t.options:t)?i.styles:i)?i.customItem:i,t))+'">'+l((n.lang||t&&t.lang||e.hooks.helperMissing).call(null!=t?t:e.nullContext||{},"createNew",{name:"lang",hash:{},data:o}))+"</button>\r\n"},compiler:[8,">= 4.3.0"],main:function(e,t,n,r,o){e.propertyIsEnumerable;var i,l=e.lambda,a=e.escapeExpression;return'<button\r\n class="'+a(l(null!=(i=null!=(i=null!=t?t.options:t)?i.styles:i)?i.selectBtn:i,t))+' custom-select form-control"\r\n data-toggle="dropdown"\r\n aria-haspopup="true"\r\n aria-expanded="false"\r\n name='+a(l(null!=(i=null!=t?t.options:t)?i.name:i,t))+"\r\n>"+a(l(null!=(i=null!=t?t.options:t)?i.buttonText:i,t))+'</button>\r\n<div class="dropdown-menu '+a(l(null!=(i=null!=(i=null!=t?t.options:t)?i.styles:i)?i.selector:i,t))+'">\r\n <div class="selector-region"></div>\r\n'+(null!=(i=n.if.call(null!=t?t:e.nullContext||{},null!=(i=null!=t?t.options:t)?i.canCreateNew:i,{name:"if",hash:{},fn:e.program(1,o,0),inverse:e.noop,data:o}))?i:"")+'</div>\r\n<div class="form-feedback"></div>'},useData:!0})},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 g}));var r=n(1),o=n(6),i=n(2),l=n(1224),a=n(12),s=n(1267),c=n.n(s),u=n(1268),f=n.n(u);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 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 d(e,t){return(d=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e})(e,t)}function y(e){var t=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Date.prototype.toString.call(Reflect.construct(Date,[],(function(){}))),!0}catch(e){return!1}}();return function(){var n,r=m(e);if(t){var o=m(this).constructor;n=Reflect.construct(r,arguments,o)}else n=r.apply(this,arguments);return b(this,n)}}function b(e,t){return!t||"object"!==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 m(e){return(m=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)})(e)}var g=function(e){!function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),t&&d(e,t)}(u,e);var t,n,i,s=y(u);function u(e){var t;return function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,u),(t=s.call(this,e)).selectSearch="",t.sameCharIndex=1,t.optionStep=1,t}return t=u,(n=[{key:"initialize",value:function(){this.setModel(),this.bindListeners()}},{key:"regions",value:function(){return{dropdown:{el:".dropdown-region",replaceElement:!0}}}},{key:"events",value:function(){return{keydown:"onKeydown","shown.bs.dropdown":"onShowDropdown"}}},{key:"bindListeners",value:function(){this.listenTo(this.options.channelName,this.options.childOptions.eventName,this.onSelect)}},{key:"onShowDropdown",value:function(){o.Radio.channel(this.options.channelName).trigger("center:dropdown")}},{key:"onKeydown",value:function(e){38===e.keyCode||40===e.keyCode?this.onArrowKeyDown(e):13===e.keyCode?this.render():this.onType(e),o.Radio.channel(this.options.channelName).trigger("center:dropdown")}},{key:"onArrowKeyDown",value:function(e){a.c.getSelected(this.collection)?this.optionStep=1:this.optionStep=0;var t=this.getNextModel(e.keyCode);for(t||(a.c.deselectAll(this.collection),t=this.getNextModel(e.keyCode));this.isDisabled(t);)this.optionStep++,t=this.getNextModel(e.keyCode);this.onSelect(t)}},{key:"onType",value:function(e){if(1===e.key.toString().length){var t=this.getModelMatch(e);t&&this.onSelect(t),this.runTimer()}}},{key:"onSelect",value:function(e){this.isDisabled(e)||(a.c.setSelected(e.get("id"),this.collection),this.setModel(),this.getUI("dropdownToggle").text(this.getButtonText()),o.Radio.channel(this.options.channelName).trigger("select:option:selected",e))}},{key:"setModel",value:function(){this.model=a.c.getSelected(this.collection)}},{key:"getNextModel",value:function(e){var t,n=a.c.getSelected(this.collection)||this.collection.first(),r=this.collection.indexOf(n);return(t=38===e?this.collection.at(r-this.optionStep):this.collection.at(r+this.optionStep))||(a.c.deselectAll(this.collection),t=this.collection.first(),this.optionStep=0),t}},{key:"getModelMatch",value:function(e){var t,n=this;return 1===this.selectSearch.length&&this.selectSearch===e.key?t=this.handleSameCharIndex(e.key):(this.selectSearch+=e.key,this.sameCharIndex=1),t||(t=r.find(this.collection.models,(function(e){return e.get(n.options.displayProperty).toLowerCase().slice(0,n.selectSearch.length).includes(n.selectSearch.toLowerCase())}))),t}},{key:"handleSameCharIndex",value:function(e){var t=this,n=r.filter(this.collection.models,(function(n){return n.get(t.options.displayProperty).toLowerCase().slice(0,1)===e}));if(n.length>1){var o=n[this.sameCharIndex];return o||(o=r.first(n),this.sameCharIndex=0),this.sameCharIndex++,o}return r.first(n)}},{key:"runTimer",value:function(){var e=this;this.scopedTimerIndex&&clearTimeout(this.scopedTimerIndex),this.scopedTimerIndex=window.setTimeout((function(){e.selectSearch=""}),500)}},{key:"isDisabled",value:function(e){var t;if(e.get("divider"))return!0;if(!r.isFunction(this.options.childOptions.isDisabled))return!1;for(var n=arguments.length,o=new Array(n>1?n-1:0),i=1;i<n;i++)o[i-1]=arguments[i];return(t=this.options.childOptions.isDisabled).call.apply(t,[this,e].concat(o))}},{key:"getButtonText",value:function(){if(this.options.disabled)return this.options.noOptionsText;var e=a.c.getSelected(this.collection);return e&&e.get(this.options.displayProperty)||this.options.placeholderText}},{key:"viewOptions",value:function(){return{styles:f.a,inputName:this.options.inputName,disabled:this.options.disabled,placeholderText:this.getButtonText()}}},{key:"onRender",value:function(){this.showChildView("dropdown",new l.a({collection:this.collection,channelName:this.options.channelName,childOptions:r.extend(this.options.childOptions),displayOptions:{extraClasses:"w-100 ".concat(f.a.dropdownMenu)},analyticsHelper:this.options.analyticsHelper}))}},{key:"name",get:function(){return"SelectComponent"}},{key:"template",get:function(){return c.a}},{key:"defaults",get:function(){return{displayProperty:"name"}}},{key:"elements",get:function(){return{dropdownToggle:".dropdown-toggle"}}}])&&p(t.prototype,n),i&&p(t,i),u}(i.a.Component)},1267:function(e,t,n){var r=n(10);e.exports=(r.default||r).template({1:function(e,t,n,r,o){var i;e.propertyIsEnumerable;return e.escapeExpression(e.lambda(null!=(i=null!=(i=null!=t?t.options:t)?i.styles:i)?i.disabled:i,t))},3:function(e,t,n,r,o){return" disabled"},compiler:[8,">= 4.3.0"],main:function(e,t,n,r,o){e.propertyIsEnumerable;var i,l=e.lambda,a=e.escapeExpression,s=null!=t?t:e.nullContext||{};return'<button \r\n class="dropdown-toggle form-control btn-block text-left position-relative '+a(l(null!=(i=null!=(i=null!=t?t.options:t)?i.styles:i)?i.selectButton:i,t))+" "+(null!=(i=n.if.call(s,null!=(i=null!=t?t.options:t)?i.disabled:i,{name:"if",hash:{},fn:e.program(1,o,0),inverse:e.noop,data:o}))?i:"")+'" \r\n type="button" \r\n id="dropdownMenuButton" \r\n data-toggle="dropdown" \r\n aria-haspopup="true" \r\n aria-expanded="false"\r\n '+(null!=(i=n.if.call(s,null!=(i=null!=t?t.options:t)?i.disabled:i,{name:"if",hash:{},fn:e.program(3,o,0),inverse:e.noop,data:o}))?i:"")+' \r\n name="'+a(l(null!=(i=null!=t?t.options:t)?i.inputName:i,t))+'"\r\n >\r\n '+a(l(null!=(i=null!=t?t.options:t)?i.placeholderText:i,t))+'\r\n</button>\r\n<div class="dropdown-region"></div>\r\n<div class="form-feedback"></div>'},useData:!0})},1268:function(e,t,n){e.exports={dropdownMenu:"_2RaQu",selectButton:"_2xGqi",disabled:"_15kWr"}},1289:function(e,t,n){"use strict";n.d(t,"a",(function(){return g}));var r=n(1),o=n(6),i=n(2),l=n(3),a=n(42),s=n(1266),c=n(12),u=n(1290),f=n.n(u);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 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 d(e,t){return(d=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e})(e,t)}function y(e){var t=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Date.prototype.toString.call(Reflect.construct(Date,[],(function(){}))),!0}catch(e){return!1}}();return function(){var n,r=m(e);if(t){var o=m(this).constructor;n=Reflect.construct(r,arguments,o)}else n=r.apply(this,arguments);return b(this,n)}}function b(e,t){return!t||"object"!==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 m(e){return(m=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)})(e)}var g=function(e){!function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),t&&d(e,t)}(h,e);var t,n,i,u=y(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(),c.c.deselectAll(this.collection),c.c.setSelected(this.options.currentLibraryId,this.collection)}},{key:"regions",value:function(){return{dropdown:{el:".dropdown-menu-region",replaceElement:!0}}}},{key:"bindListeners",value:function(){var e=this;this.listenTo(this.channelName,"select:option:selected",(function(t){o.Radio.channel(e.options.channelName).trigger("library:selected",t)}))}},{key:"getIsOptionDisabledFn",value:function(){var e=this.options.disabledLibraryIds;return function(t){var n=t||this.model;if(r.contains(e,n.get("id")+""))return!0}}},{key:"onRender",value:function(){this.showChildView("dropdown",new s.a({collection:this.collection,channelName:this.channelName,childOptions:{titleProperty:"name",eventName:"select:option:click",isDisabled:this.getIsOptionDisabledFn()},placeholderText:this.options.placeholderText||l.a.getPhrase(this.lang,"placeholder"),noOptionsText:l.a.getPhrase(this.lang,"noLibraries"),inputName:this.options.inputName,disabled:0===this.collection.length||this.options.disabled,analyticsHelper:a.a}))}},{key:"name",get:function(){return"LibrarySelectComponent"}},{key:"channelName",get:function(){return"".concat(this.name).concat(this.cid)}},{key:"className",get:function(){return"position-relative"}},{key:"lang",get:function(){return"libraryEditor.librarySelect"}},{key:"template",get:function(){return f.a}}])&&p(t.prototype,n),i&&p(t,i),h}(i.a.Component)},1290:function(e,t,n){var r=n(10);e.exports=(r.default||r).template({compiler:[8,">= 4.3.0"],main:function(e,t,n,r,o){return'<div class="dropdown-menu-region"></div>\r\n<div class="form-feedback"></div>'},useData:!0})},1413: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' <div class="alert alert-info" role="alert">\r\n <p class="m-0">'+(null!=(i=(n.lang||t&&t.lang||e.hooks.helperMissing).call(null!=t?t:e.nullContext||{},"hiddenLibraryNames",{name:"lang",hash:{smartCount:null!=(i=null!=t?t.options:t)?i.hiddenLibraryNamesLength:i,libraries:null!=(i=null!=t?t.options:t)?i.hiddenLibraryNames:i},data:o}))?i:"")+"</p>\r\n </div>\r\n"},3:function(e,t,n,r,o){e.propertyIsEnumerable;return' <div class="form-group">\r\n <label class="control-label">'+e.escapeExpression((n.lang||t&&t.lang||e.hooks.helperMissing).call(null!=t?t:e.nullContext||{},"library",{name:"lang",hash:{},data:o}))+'</label>\r\n <div class="library-region"></div>\r\n </div>\r\n'},5:function(e,t,n,r,o){return'style="display: none;"'},compiler:[8,">= 4.3.0"],main:function(e,t,n,r,o){e.propertyIsEnumerable;var i,l=null!=t?t:e.nullContext||{};return"<form>\r\n"+(null!=(i=n.if.call(l,null!=(i=null!=t?t.options:t)?i.hiddenLibraryNames:i,{name:"if",hash:{},fn:e.program(1,o,0),inverse:e.noop,data:o}))?i:"")+"\r\n"+(null!=(i=n.if.call(l,null!=(i=null!=t?t.options:t)?i.hasMultipleLibraries:i,{name:"if",hash:{},fn:e.program(3,o,0),inverse:e.noop,data:o}))?i:"")+'\r\n <div class="form-group">\r\n <label class="control-label folder-label" '+(null!=(i=n.if.call(l,null!=(i=null!=t?t.options:t)?i.hasMultipleLibraries:i,{name:"if",hash:{},fn:e.program(5,o,0),inverse:e.noop,data:o}))?i:"")+">"+e.escapeExpression((n.lang||t&&t.lang||e.hooks.helperMissing).call(l,"folder",{name:"lang",hash:{},data:o}))+'</label>\r\n <div class="folder-region"></div>\r\n </div>\r\n</form>'},useData:!0})},1603:function(e,t,n){"use strict";n.r(t),n.d(t,"MoveVideoView",(function(){return N}));var r=n(1),o=n(3),i=n(5),l=n(2),a=n(312),s=n(42),c=n(293),u=n(0),f=n(147),h=n(1212),p=n(304),d=n(12),y=n(1229),b=n(253),m=n(1289),g=n(1413),v=n.n(g);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 r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}function S(e,t){return(S=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e})(e,t)}function O(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=T(e);if(t){var o=T(this).constructor;n=Reflect.construct(r,arguments,o)}else n=r.apply(this,arguments);return x(this,n)}}function x(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 T(e){return(T=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)})(e)}var N=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)}(w,e);var t,n,l,g=O(w);function w(e){return function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,w),g.call(this,e)}return t=w,(n=[{key:"initialize",value:function(){this.listenTo(u.e.LIBRARY,"libraries:sync",this.render),this.listenTo(u.e.VIDEO,"".concat(u.f.VIDEOS_BY_ID,":").concat(this.options.videoIds.join(","),":sync"),this.render),this.listenTo(this.channelName,"library:selected",this.onLibrarySelected),this.listenTo(this.channelName,"folder:selected",this.onFolderSelected),this.libraryDataService=i.a.getInstance(u.g.Library,this),this.videoDataService=i.a.getInstance(u.g.Video,this)}},{key:"regions",value:function(){return{folder:".folder-region",library:".library-region"}}},{key:"events",value:function(){return{submit:"onSubmit","click .submit":"onSubmit"}}},{key:"filterLibrariesWithVideo",value:function(){var e=this;if(this.libraries&&this.collection&&this.hasMultipleLibraries()){var t=this.collection.map((function(e){return e.get("libraries").map((function(e){return e.get("id")}))})),n=r.uniq(r.flatten(t)),o=[],i=[];this.libraries.forEach((function(t){var l=d.f.getModelFromCollection(e.options.folderId,t.get("children"));!r.contains(n,+t.get("id"))||l?o.push(t):i.push(t)})),this.libraries=new f.a(o),this.hiddenLibraryNames=i.map((function(e){return e.get("name")})),1===this.libraries.length&&this.onLibrarySelected(this.libraries.first())}}},{key:"getSubmitBtnTooltipOptions",value:function(){if(this.spinnerModel.get(b.c.Disabled))return{title:o.a.getPhrase(this.lang,"btnTooltip")}}},{key:"onLibrarySelected",value:function(e){var t=d.f.getSelected(this.libraryTreeKey,this.libraries);t&&d.f.deselectAll(this.folderTreeKey,t.get("children")),d.f.setSelected(this.libraryTreeKey,e,this.libraries),this.hasMultipleLibraries()&&this.getUI("folderLabel").show(),this.spinnerModel.set(b.c.Disabled,!0),this.render()}},{key:"onFolderSelected",value:function(e,t){var n=d.f.getSelected(this.libraryTreeKey,this.libraries).get("children");d.f.setSelected(this.folderTreeKey,e,n,t),t||this.spinnerModel.set(b.c.Disabled,!1)}},{key:"onSubmit",value:function(){var e=this;this.spinnerModel.set(b.c.ShowSpinner,!0);var t,n,r=d.f.getSelected(this.folderTreeKey,this.libraries),o=r.get("id"),i=this.collection.map((function(e){return e.get("id")}));this.collection.each((function(r){t||(t=r.categories.find((function(t){return t.get("id")===+e.options.folderId})),n=r)}));var l=1===i.length?n.get("name"):"",a=p.a.moveVideoAlert(t.get("name"),r.get("name"),r.get("id"),i.length,l);this.videoDataService.moveVideos(i,o,this.options.folderId,(function(){e.triggerMethod("hide")}),a),this.logAction(i,o)}},{key:"hasMultipleLibraries",value:function(){return this.libraries&&this.libraries.length>1}},{key:"getFormattedHiddenLibraryNames",value:function(){var e=r.map(this.hiddenLibraryNames,(function(e){return"<strong>".concat(a.a.escapeExpression(e),"</strong>")}));if(1===e.length)return e[0];var t=o.a.getPhrase(this.lang,"and");return"".concat(e.slice(0,-1).join(", ")," ").concat(t," ").concat(e.slice(-1))}},{key:"logAction",value:function(e,t){var n={newParentId:t,oldParentId:this.options.folderId,count:e.length};1===e.length&&(n.id=r.first(e)),s.a.logUserAction(n,this.options.analyticsOptions)}},{key:"renderLibrarySelect",value:function(){if(this.libraries&&1!==this.libraries.length){var e=d.f.getSelected(this.libraryTreeKey,this.libraries);this.showChildView("library",new m.a({collection:this.libraries,channelName:this.channelName,currentLibraryId:e?e.get("id"):null}))}}},{key:"renderFolderSelect",value:function(){var e=d.f.getSelected(this.libraryTreeKey,this.libraries);this.showChildView("folder",new y.a({collection:e.get("children"),channelName:this.channelName,folderTreeKey:this.folderTreeKey,disabledIds:[this.options.folderId]}))}},{key:"viewOptions",value:function(){var e,t;return{hasMultipleLibraries:this.hasMultipleLibraries(),hiddenLibraryNames:(null===(e=this.hiddenLibraryNames)||void 0===e?void 0:e.length)?this.getFormattedHiddenLibraryNames():"",hiddenLibraryNamesLength:null===(t=this.hiddenLibraryNames)||void 0===t?void 0:t.length}}},{key:"onBeforeRender",value:function(){var e=this;return this.libraries||this.libraryDataService.getLibraries((function(t){e.libraries=new f.a(t.filter((function(e){return!!e.get("children").length}))),e.hasMultipleLibraries()||e.onLibrarySelected(e.libraries.first()),e.filterLibrariesWithVideo(),e.render()})),this.collection||this.videoDataService.getVideos(this.options.videoIds,(function(t){e.collection=t,e.filterLibrariesWithVideo(),e.render()})),!!this.collection&&!!this.libraries}},{key:"onRender",value:function(){this.renderLibrarySelect(),d.f.getSelected(this.libraryTreeKey,this.libraries)&&this.renderFolderSelect()}},{key:"name",get:function(){return"MoveVideoView"}},{key:"title",get:function(){return this.options.videoIds&&o.a.getPhrase(this.lang,"title",{smartCount:this.options.videoIds.length})}},{key:"lang",get:function(){return"libraryEditor.moveVideo"}},{key:"channelName",get:function(){return d.k.generateUniqueChannelName(this)}},{key:"libraryTreeKey",get:function(){return"libraryselect:".concat(this.cid)}},{key:"folderTreeKey",get:function(){return"folderselect:".concat(this.cid)}},{key:"template",get:function(){return v.a}},{key:"elements",get:function(){return{folderLabel:".folder-label"}}},{key:"behaviors",get:function(){var e=this;return[{title:o.a.getPhrase(this.lang,"heading"),behaviorClass:c.e,closeOnRoute:!1,spinnerButtonOptions:{channelName:this.channelName,model:this.spinnerModel=new h.a,buttonText:o.a.getPhrase(this.lang,"submit"),tooltip:function(){return e.getSubmitBtnTooltipOptions()},onClick:function(){return e.onSubmit()}}}]}}])&&k(t.prototype,n),l&&k(t,l),w}(l.a.View)}}]);
@@ -0,0 +1 @@
1
+ (window.webpackJsonp_clickview_library_editor=window.webpackJsonp_clickview_library_editor||[]).push([[34],{1212:function(e,t,n){"use strict";n.d(t,"a",(function(){return d}));var r=n(2),i=n(253);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 o(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function u(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}function s(e,t){return(s=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e})(e,t)}function c(e){var t=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Date.prototype.toString.call(Reflect.construct(Date,[],(function(){}))),!0}catch(e){return!1}}();return function(){var n,r=f(e);if(t){var i=f(this).constructor;n=Reflect.construct(r,arguments,i)}else n=r.apply(this,arguments);return l(this,n)}}function l(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 f(e){return(f=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&&s(e,t)}(l,e);var t,n,r,a=c(l);function l(){return o(this,l),a.apply(this,arguments)}return t=l,(n=[{key:"defaults",value:function(){return e={},t=i.c.Disabled,n=!0,t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e;var e,t,n}}])&&u(t.prototype,n),r&&u(t,r),l}(r.a.Model)},1215:function(e,t,n){"use strict";n.d(t,"a",(function(){return d})),n.d(t,"k",(function(){return p})),n.d(t,"g",(function(){return g})),n.d(t,"e",(function(){return h})),n.d(t,"j",(function(){return b})),n.d(t,"i",(function(){return v})),n.d(t,"c",(function(){return E})),n.d(t,"b",(function(){return k})),n.d(t,"d",(function(){return w})),n.d(t,"f",(function(){return P})),n.d(t,"h",(function(){return y}));var r=n(2),i=n(1),a=n(19),o=n(29),u=n(3),s="libraryEditor.utils",c=["tags","thumbnail","chapters","resources","subtitles","disabled","links","restrictions","categories"];function l(e,t){if(e){var n=i.reduce(e,(function(e,n,r){var a=t[r];return n||a?i.isObject(n)&&i.isObject(a)&&!i.isUndefined(n.id)&&n.id===a.id?e:i.isArray(n)?f(n,a).length?e.concat(r):e:i.isEqual(n,a)?e:e.concat(r):e}),[]);if(n.length)return i.object(i.map(n,(function(n){return i.isArray(t[n])?[n,f(e[n],t[n])]:[n,t[n]]})))}}function f(e,t){var n=[];return i.each(t,(function(t){var r=i.findWhere(e,{id:t.id});if(!i.isUndefined(r)||0!==Object.keys(t).length){var a=i.isUndefined(r)?t:l(r,t);a&&(t.id<0&&!t.value||(!r||t.id<0?n.push(t):(a.id=t.id,n.push(a))))}})),n}var d={getChanges:function(e,t){var n=l(i.omit(e.toJSON(),c),i.omit(t.toJSON(),c));if(n)return i.object(i.map(i.keys(n),(function(e){return[e,d.formatChanges(e,n[e])]})))},formatChanges:function(e,t){if(!t)return null;if(i.isObject(t)&&i.isEmpty(t))return null;switch(e){case"name":case"description":case"productionYear":case"dateBroadcast":case"fields":case"episodeNumber":return t;case"channel":case"series":case"rating":case"season":return{id:t.id};case"distributors":case"producers":case"directors":case"productionCompanies":return i.map(t,(function(e){return e.id}));case"dateModified":case"hasBroadcast":return;default:r.a.ErrorHelper.throw(new a.a("There are no formatting settings for ".concat(e)))}},updateModelState:function(e,t,n){var a=["distributors","producers","directors","productionCompanies"];for(var o in i.each(i.keys(n),(function(e){a.includes(e)&&(n[e]=t.get(e).toJSON())})),t.set(i.clone(n),{silent:!0}),e.set(t.toJSON(),{silent:!0}),n){if(!n[o]&&e.associations[o]){var u=e.get(o);(u instanceof r.a.Model||u instanceof r.a.NestedModel)&&u.clear()}}},getRemovedObjectIds:function(e,t){var n=["distributors","productionCompanies","producers","directors"],r={};return i.each(i.keys(e.toJSON()),(function(a){if(i.contains(n,a)){var o=e.get(a).map((function(e){return e.id})),u=t.get(a).map((function(e){return e.id})),s=i.filter(o,(function(e){return e&&!i.contains(u,e)}));s.length&&(r[a]=s)}})),r}},p={name:[{required:!0,msg:function(){return u.a.getPhrase(s,"videoTitleRequired")}},{maxLength:255,msg:function(){return u.a.getPhrase(s,"videoTitleExceeds")}}],description:[{required:!1},{maxLength:65535,msg:function(){return u.a.getPhrase(s,"videoDescriptionExceeds")}}],episodeNumber:function(e,t,n){return e&&e<1?u.a.getPhrase(s,"episodeNumberLessThanOne"):e&&e>2147483647?u.a.getPhrase(s,"episodeNumberExceeds"):e%1!=0?u.a.getPhrase(s,"episodeNumberNotWhole"):n.season&&n.season.get("number")>=0&&null===e?u.a.getPhrase(s,"episodeNumberNoSeason"):""},season:function(e,t,n){return n.season&&n.season.get("number")||e&&e.number||!n.episodeNumber?"":u.a.getPhrase(s,"seasonNoEpisodeNumber")}},m=o().year(),h={productionYear:function(e){return e||0===e?(e=+e,isNaN(e)?"Production year must be a number.":e<1900||e>m?u.a.getPhrase(s,"validProductionYears",{currentYear:m}):void 0):""}},g={name:[{required:!0,msg:function(){return u.a.getPhrase(s,"resourceNameRequired")}}]},b={suggestion:[{required:!0,msg:function(){return u.a.getPhrase(s,"suggestEditRequired")}},{maxLength:65535,msg:function(){return u.a.getPhrase(s,"suggestEditExceeds")}}],reason:[{required:!0,msg:function(){return u.a.getPhrase(s,"suggestEditReasonRequired")}},{maxLength:65535,msg:function(){return u.a.getPhrase(s,"suggestEditReasonExceeds")}}]},y={number:function(e){return e?+e<1?u.a.getPhrase(s,"seasonLessThanOne"):+e>255?u.a.getPhrase(s,"seasonExceeds"):+e%1!=0?u.a.getPhrase(s,"seasonNotWhole"):"":u.a.getPhrase(s,"seasonRequired")}},v={empty:function(){return u.a.getPhrase(s,"suggestEditRatingRequired")},original:function(){return u.a.getPhrase(s,"suggestEditRatingInvalid")}},P={url:[{required:!0,pattern:"url",msg:function(){return u.a.getPhrase(s,"linkUrlRequired")}},{maxLength:65535,msg:function(){return u.a.getPhrase(s,"linkUrlExceeds")}}],name:[{required:!0,msg:function(){return u.a.getPhrase(s,"linkNameRequired")}},{maxLength:255,msg:function(){return u.a.getPhrase(s,"linkNameExceeds")}}]},E={name:[{maxLength:128,msg:function(){return u.a.getPhrase(s,"fieldNameExceeds")}}],value:[{maxLength:16e3,msg:function(){return u.a.getPhrase(s,"fieldValueExceeds")}}]},k={fields:function(e){return e&&e.length?e.all((function(e){return!1!==e.isValid()}))?"":u.a.getPhrase(s,"fieldsInvalid"):""}};function w(){return[{id:-1,name:"Admin Notes",value:"",placeholder:"Notes that only admins will see"}]}},1216:function(e,t,n){"use strict";var r=n(1222),i=n(1215),a=(n(1220),n(3),n(1223)),o=(n(1225),n(1221)),u=n(82),s={getVideoDownloadUrl:function(e,t){return u.a.safeUrlConcat(u.a.makeHttps(e),"/download?token=".concat(t))}};n.d(t,"a",(function(){return r.a})),n.d(t,"e",(function(){return i.g})),n.d(t,"h",(function(){return i.j})),n.d(t,"g",(function(){return i.i})),n.d(t,"d",(function(){return i.f})),n.d(t,"f",(function(){return i.h})),n.d(t,"c",(function(){return a.a})),n.d(t,"i",(function(){return o.a})),n.d(t,"b",(function(){return s}))},1220:function(e,t,n){"use strict";n.d(t,"a",(function(){return l}));var r=n(1),i=n(49),a=n(162),o=n(3),u="libraryEditor.utils",s={name:[{required:!0,msg:function(){return o.a.getPhrase(u,"folderNameRequired")}},{maxLength:255,msg:function(){return o.a.getPhrase(u,"folderNameExceeds")}}]},c=function(e,t){return{parentId:function(n){return n?i.a.calculateDestinationFolderDepth(e,n,t)>a.a.MAX_FOLDER_DEPTH?o.a.getPhrase(u,"maxFolderDepth",{maxDepth:a.a.MAX_FOLDER_DEPTH}):"":o.a.getPhrase(u,"selectParentFolder")}}},l=function(e){var t=e.validateName,n=e.validateParent,i=e.folder,a=e.collection;return t&&n?r.extend({},s,c(i,a)):t?s:n?c(i,a):void 0}},1221:function(e,t,n){"use strict";n.d(t,"a",(function(){return f}));var r=n(15),i=n(3),a=n(189),o=n(1233),u=n(59);function s(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}var c,l="libraryEditor.utils";!function(e){e.Pdf="pdf",e.Image="image",e.PowerPoint="powerpoint",e.Document="document",e.Excel="excel",e.Zip="archive",e.File="text"}(c||(c={}));var f={mapRatingToClass:function(e){if(!e)return"";return function(e){switch(!0){case e<32:return"bg-purple";case e<48:return"bg-success";case e<80:return"bg-info";case e<96:return"bg-danger";case e<128:return"bg-pink";case e>=128:return"bg-warning";default:return""}}(e)},mapSourceToDisplayName:function(e){switch(e.get("type")){case u.a.HostedLibrary:case u.a.CustomLibrary:return e.get("name");case u.a.Exchange:return i.a.getPhrase(l,"exchange");case u.a.Workspace:return i.a.getPhrase(l,"workspace");default:return""}},mapSourceToClass:function(e){switch(e){case u.a.HostedLibrary:case u.a.CustomLibrary:return"bg-info";case u.a.Exchange:return"bg-success";case u.a.Workspace:default:return"bg-danger"}},isInteractive:function(e){return!(!e||!e.interactives)&&!!e.interactives.length},mapTypeToSvg:function(e){var t,n=(s(t={},c.Pdf,r.b.FilePDF),s(t,c.Image,r.b.FileImg),s(t,c.PowerPoint,r.b.FilePowerpoint),s(t,c.Document,r.b.FileWord),s(t,c.Excel,r.b.FileExcel),s(t,c.Zip,r.b.FileZip),s(t,c.File,r.b.File),t)[e];return n||(n=r.b.Folder),r.a.getSvg(n)},mapTypeToClass:function(e){switch(e){case c.Pdf:return"icon-red";case c.Image:return"icon-purple";case c.Document:return"icon-blue";case c.Excel:return"icon-green";case c.PowerPoint:return"icon-orange";case c.Zip:return"icon-teal";case c.File:return"icon-gray";default:return""}},mapTypeToExtension:function(e){if(!e)return"";return{pdf:"pdf",image:"png",powerpoint:"pptx"}[e.toLowerCase()]},mapTypeToName:function(e){if(!e)return"";switch(e){case c.Pdf:return i.a.getPhrase(l,"pdf");case c.Image:return i.a.getPhrase(l,"image");case c.Document:return i.a.getPhrase(l,"document");case c.Excel:return i.a.getPhrase(l,"spreadsheet");case c.PowerPoint:return i.a.getPhrase(l,"presentation");case c.Zip:return i.a.getPhrase(l,"zipArchive");case c.File:return i.a.getPhrase(l,"file");default:return""}},translateMetadataCollectionNames:function(e){return new o.a(e.map((function(e){return Object.assign(Object.assign({},e.toJSON()),{name:f.translateMetadataName(e.get("name"))})})))},translateMetadataName:function(e){var t="suggestEdit";switch(e){case a.MetadataType.VideoTitle:t+="VideoTitle";break;case a.MetadataType.Description:t+="Description";break;case a.MetadataType.Rating:t+="Rating";break;case a.MetadataType.SeriesTitle:t+="SeriesTitle";break;case a.MetadataType.Season:t+="SeasonNumber";break;case a.MetadataType.EpisodeNumber:t+="EpisodeNumber";break;case a.MetadataType.BroadcastDate:t+="BroadcastDate";break;case a.MetadataType.Channel:t+="Channel";break;case a.MetadataType.ProductionYear:t+="ProductionYear";break;case a.MetadataType.Distributors:t+="Distributors";break;case a.MetadataType.ProductionCompanies:t+="ProductionCompanies";break;case a.MetadataType.Directors:t+="Directors";break;case a.MetadataType.Producers:t+="Producers";break;case a.MetadataType.Other:t+="Other"}return i.a.getPhrase(l,t)}}},1222:function(e,t,n){"use strict";n.d(t,"a",(function(){return u}));var r=n(1),i=n(12),a=n(3),o="libraryEditor.utils",u={isValidChapterTime:function(e,t,n,a){if(a){if(!r.isNumber(t))return s.StartTime.Invalid();if(t<0)return s.StartTime.Invalid();if(t>i.w.millisecondsToSeconds(n))return s.StartTime.Exceeds();if(a.some((function(n){return!(n.id&&n.id===e.id||n.cid===e.cid)&&n.get("startTime")===t})))return s.StartTime.Exists()}},isValidChapterName:function(e,t,n){return t?t.length>255?s.Name.MaxLength():n.some((function(n){return!(n.id&&n.id===e.id||n.cid===e.cid)&&n.get("name").trim()===t.trim()}))?s.Name.Exists():r.isEmpty(t.trim())?s.Name.Invalid():void 0:s.Name.Invalid()},mapPhysicalChapters:function(e){var t=0;return r.map(e,(function(e,n){var r={name:e.title,startTime:t,index:n,isPhysicalChapter:!0};return t+=e.duration,r}))}},s={Name:{Invalid:function(){return a.a.getPhrase(o,"chapterNameInvalid")},Exists:function(){return a.a.getPhrase(o,"chapterNameExists")},MaxLength:function(){return a.a.getPhrase(o,"chapterNameExceeds")}},StartTime:{Invalid:function(){return a.a.getPhrase(o,"chapterStartTimeInvalid")},Exists:function(){return a.a.getPhrase(o,"chapterStartTimeExists")},Exceeds:function(){return a.a.getPhrase(o,"chapterStartTimeExceeds")}}}},1223:function(e,t,n){"use strict";n.d(t,"a",(function(){return a}));var r=n(3),i="libraryEditor.utils",a={name:[{required:!0,msg:function(){return r.a.getPhrase(i,"libraryNameRequired")}},{maxLength:255,msg:function(){return r.a.getPhrase(i,"libraryNameExceeds")}}]}},1225:function(e,t,n){"use strict";n.d(t,"a",(function(){return o}));var r=n(3),i=n(1215),a=r.a.encloseNamespace("libraryEditor.utils"),o={name:[{required:!0,msg:function(){return a("videoTitleRequired")}}],folderId:[{required:!0,msg:function(){return a("uploadFolderRequired")}}],libraryId:[{required:!0,msg:function(){return a("uploadLibraryRequired")}}],episodeNumber:function(e,t,n){return e&&e<1?a("episodeNumberLessThanOne"):e&&e>255?a("episodeNumberExceeds"):e&&e%1!=0?a("episodeNumberNotWhole"):n.season&&n.season.get("number")>=0&&null===e?a("episodeNumberNoSeason"):""},season:function(e,t,n){return n.season&&n.season.get("number")||e&&e.number||!n.episodeNumber?"":a("seasonNoEpisodeNumber")},productionYear:function(){for(var e,t=arguments.length,n=new Array(t),r=0;r<t;r++)n[r]=arguments[r];return(e=i.e.productionYear).apply.apply(e,[null].concat(n))}}},1233:function(e,t,n){"use strict";function r(e){return(r="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}function i(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function a(e,t){return(a=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e})(e,t)}function o(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=s(e);if(t){var i=s(this).constructor;n=Reflect.construct(r,arguments,i)}else n=r.apply(this,arguments);return u(this,n)}}function u(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 s(e){return(s=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)})(e)}n.d(t,"a",(function(){return c}));var c=function(e){!function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),t&&a(e,t)}(n,e);var t=o(n);function n(){return i(this,n),t.apply(this,arguments)}return n}(n(2).a.Collection)},1497:function(e,t,n){var r=n(10);e.exports=(r.default||r).template({1:function(e,t,n,r,i){var a;e.propertyIsEnumerable;return(null!=(a=e.lambda(null!=(a=null!=t?t.options:t)?a.spinnerEl:a,t))?a:"")+"\r\n"},3:function(e,t,n,r,i){return'<form>\r\n <div class="form-group">\r\n <label for="url" class="control-label">URL</label>\r\n <input name="url" id="url" type="text" class="form-control" placeholder="URL" autocomplete="off" autofocus/>\r\n <div class="form-feedback"></div>\r\n </div>\r\n <div class="form-group">\r\n <label for="name" class="control-label">Name</label>\r\n <input name="name" id="name" type="text" class="form-control" placeholder="Name" autocomplete="off" autofocus/>\r\n <div class="form-feedback"></div>\r\n </div>\r\n</form>\r\n'},compiler:[8,">= 4.3.0"],main:function(e,t,n,r,i){var a;e.propertyIsEnumerable;return null!=(a=n.unless.call(null!=t?t:e.nullContext||{},null!=(a=null!=t?t.options:t)?a.dataFetched:a,{name:"unless",hash:{},fn:e.program(1,i,0),inverse:e.program(3,i,0),data:i}))?a:""},useData:!0})},1617:function(e,t,n){"use strict";n.r(t),n.d(t,"EditLinkView",(function(){return w}));var r=n(6),i=n(2),a=n(5),o=n(30),u=n(42),s=n(293),c=n(253),l=n(12),f=n(0),d=n(185),p=n(1212),m=n(1216),h=n(1497),g=n.n(h);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 y(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 P(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 i=k(this).constructor;n=Reflect.construct(r,arguments,i)}else n=r.apply(this,arguments);return E(this,n)}}function E(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 k(e){return(k=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)})(e)}var 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&&v(e,t)}(E,e);var t,n,h,b=P(E);function E(e){return function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,E),b.call(this,e)}return t=E,(n=[{key:"initialize",value:function(){this.listenTo(f.e.LINK,"link:".concat(this.options.linkId,":sync"),this.render),this.linkDataService=a.a.getInstance(f.g.Link,this)}},{key:"events",value:function(){return{submit:"onSubmit"}}},{key:"onSubmit",value:function(e){var t=this;e&&e.preventDefault(),this.viewModel.validate(),!1!==this.viewModel.isValid()&&(r.Radio.channel(this.channelName).trigger(c.b.ShowSpinner),this.linkDataService.updateLink(this.options.videoId,this.viewModel,(function(){t.logAction(),i.a.AppLinkHelper.trigger({application:f.b.LIBRARY_EDITOR,action:f.a.LibraryEditor.EDIT_VIDEO_RESOURCES,args:[t.options.videoId]})})))}},{key:"logAction",value:function(){var e={id:this.options.linkId,parentId:+this.options.videoId,name:this.viewModel.get("name")};u.a.logUserAction(e,this.options.analyticsOptions)}},{key:"dataFetched",value:function(){return!!this.model&&!!this.viewModel}},{key:"onBeforeRender",value:function(){var e=this;this.model=this.linkDataService.getLink(this.options.linkId,(function(t){e.viewModel=o.a.get("link:".concat(e.options.linkId),t.toJSON(),{ctor:d.a}),e.viewModel.addValidation(m.d)})),this.dataFetched()&&this.spinnerModel.set(c.c.Disabled,!1)}},{key:"viewOptions",value:function(){return{dataFetched:this.dataFetched(),spinnerEl:l.q.getSpinner({size:l.r.Large,extraClasses:"mx-auto"})}}},{key:"onRender",value:function(){this.viewModel&&(this.stickit(this.viewModel),r.Validation.bind(this,{model:this.viewModel}))}},{key:"onClose",value:function(){this.unstickit()}},{key:"name",get:function(){return"EditLinkView"}},{key:"title",get:function(){return"Edit link"}},{key:"template",get:function(){return g.a}},{key:"channelName",get:function(){return l.k.generateUniqueChannelName(this)}},{key:"bindings",get:function(){return{"[name=url]":{observe:"url",setOptions:{validate:!0}},"[name=name]":{observe:"name",setOptions:{validate:!0}}}}},{key:"behaviors",get:function(){var e=this;return[{behaviorClass:s.e,title:"Edit link",spinnerButtonOptions:{channelName:this.channelName,model:this.spinnerModel=new p.a,buttonText:"Save",onClick:function(t){return e.onSubmit(t)}}}]}}])&&y(t.prototype,n),h&&y(t,h),E}(i.a.View)}}]);
@@ -0,0 +1 @@
1
+ (window.webpackJsonp_clickview_library_editor=window.webpackJsonp_clickview_library_editor||[]).push([[35],{1212:function(e,t,n){"use strict";n.d(t,"a",(function(){return d}));var r=n(2),a=n(253);function i(e){return(i="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}function o(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function u(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}function s(e,t){return(s=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e})(e,t)}function c(e){var t=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Date.prototype.toString.call(Reflect.construct(Date,[],(function(){}))),!0}catch(e){return!1}}();return function(){var n,r=f(e);if(t){var a=f(this).constructor;n=Reflect.construct(r,arguments,a)}else n=r.apply(this,arguments);return l(this,n)}}function l(e,t){return!t||"object"!==i(t)&&"function"!=typeof t?function(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}(e):t}function f(e){return(f=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)})(e)}var 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&&s(e,t)}(l,e);var t,n,r,i=c(l);function l(){return o(this,l),i.apply(this,arguments)}return t=l,(n=[{key:"defaults",value:function(){return e={},t=a.c.Disabled,n=!0,t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e;var e,t,n}}])&&u(t.prototype,n),r&&u(t,r),l}(r.a.Model)},1215:function(e,t,n){"use strict";n.d(t,"a",(function(){return d})),n.d(t,"k",(function(){return p})),n.d(t,"g",(function(){return g})),n.d(t,"e",(function(){return h})),n.d(t,"j",(function(){return b})),n.d(t,"i",(function(){return v})),n.d(t,"c",(function(){return E})),n.d(t,"b",(function(){return w})),n.d(t,"d",(function(){return x})),n.d(t,"f",(function(){return P})),n.d(t,"h",(function(){return y}));var r=n(2),a=n(1),i=n(19),o=n(29),u=n(3),s="libraryEditor.utils",c=["tags","thumbnail","chapters","resources","subtitles","disabled","links","restrictions","categories"];function l(e,t){if(e){var n=a.reduce(e,(function(e,n,r){var i=t[r];return n||i?a.isObject(n)&&a.isObject(i)&&!a.isUndefined(n.id)&&n.id===i.id?e:a.isArray(n)?f(n,i).length?e.concat(r):e:a.isEqual(n,i)?e:e.concat(r):e}),[]);if(n.length)return a.object(a.map(n,(function(n){return a.isArray(t[n])?[n,f(e[n],t[n])]:[n,t[n]]})))}}function f(e,t){var n=[];return a.each(t,(function(t){var r=a.findWhere(e,{id:t.id});if(!a.isUndefined(r)||0!==Object.keys(t).length){var i=a.isUndefined(r)?t:l(r,t);i&&(t.id<0&&!t.value||(!r||t.id<0?n.push(t):(i.id=t.id,n.push(i))))}})),n}var d={getChanges:function(e,t){var n=l(a.omit(e.toJSON(),c),a.omit(t.toJSON(),c));if(n)return a.object(a.map(a.keys(n),(function(e){return[e,d.formatChanges(e,n[e])]})))},formatChanges:function(e,t){if(!t)return null;if(a.isObject(t)&&a.isEmpty(t))return null;switch(e){case"name":case"description":case"productionYear":case"dateBroadcast":case"fields":case"episodeNumber":return t;case"channel":case"series":case"rating":case"season":return{id:t.id};case"distributors":case"producers":case"directors":case"productionCompanies":return a.map(t,(function(e){return e.id}));case"dateModified":case"hasBroadcast":return;default:r.a.ErrorHelper.throw(new i.a("There are no formatting settings for ".concat(e)))}},updateModelState:function(e,t,n){var i=["distributors","producers","directors","productionCompanies"];for(var o in a.each(a.keys(n),(function(e){i.includes(e)&&(n[e]=t.get(e).toJSON())})),t.set(a.clone(n),{silent:!0}),e.set(t.toJSON(),{silent:!0}),n){if(!n[o]&&e.associations[o]){var u=e.get(o);(u instanceof r.a.Model||u instanceof r.a.NestedModel)&&u.clear()}}},getRemovedObjectIds:function(e,t){var n=["distributors","productionCompanies","producers","directors"],r={};return a.each(a.keys(e.toJSON()),(function(i){if(a.contains(n,i)){var o=e.get(i).map((function(e){return e.id})),u=t.get(i).map((function(e){return e.id})),s=a.filter(o,(function(e){return e&&!a.contains(u,e)}));s.length&&(r[i]=s)}})),r}},p={name:[{required:!0,msg:function(){return u.a.getPhrase(s,"videoTitleRequired")}},{maxLength:255,msg:function(){return u.a.getPhrase(s,"videoTitleExceeds")}}],description:[{required:!1},{maxLength:65535,msg:function(){return u.a.getPhrase(s,"videoDescriptionExceeds")}}],episodeNumber:function(e,t,n){return e&&e<1?u.a.getPhrase(s,"episodeNumberLessThanOne"):e&&e>2147483647?u.a.getPhrase(s,"episodeNumberExceeds"):e%1!=0?u.a.getPhrase(s,"episodeNumberNotWhole"):n.season&&n.season.get("number")>=0&&null===e?u.a.getPhrase(s,"episodeNumberNoSeason"):""},season:function(e,t,n){return n.season&&n.season.get("number")||e&&e.number||!n.episodeNumber?"":u.a.getPhrase(s,"seasonNoEpisodeNumber")}},m=o().year(),h={productionYear:function(e){return e||0===e?(e=+e,isNaN(e)?"Production year must be a number.":e<1900||e>m?u.a.getPhrase(s,"validProductionYears",{currentYear:m}):void 0):""}},g={name:[{required:!0,msg:function(){return u.a.getPhrase(s,"resourceNameRequired")}}]},b={suggestion:[{required:!0,msg:function(){return u.a.getPhrase(s,"suggestEditRequired")}},{maxLength:65535,msg:function(){return u.a.getPhrase(s,"suggestEditExceeds")}}],reason:[{required:!0,msg:function(){return u.a.getPhrase(s,"suggestEditReasonRequired")}},{maxLength:65535,msg:function(){return u.a.getPhrase(s,"suggestEditReasonExceeds")}}]},y={number:function(e){return e?+e<1?u.a.getPhrase(s,"seasonLessThanOne"):+e>255?u.a.getPhrase(s,"seasonExceeds"):+e%1!=0?u.a.getPhrase(s,"seasonNotWhole"):"":u.a.getPhrase(s,"seasonRequired")}},v={empty:function(){return u.a.getPhrase(s,"suggestEditRatingRequired")},original:function(){return u.a.getPhrase(s,"suggestEditRatingInvalid")}},P={url:[{required:!0,pattern:"url",msg:function(){return u.a.getPhrase(s,"linkUrlRequired")}},{maxLength:65535,msg:function(){return u.a.getPhrase(s,"linkUrlExceeds")}}],name:[{required:!0,msg:function(){return u.a.getPhrase(s,"linkNameRequired")}},{maxLength:255,msg:function(){return u.a.getPhrase(s,"linkNameExceeds")}}]},E={name:[{maxLength:128,msg:function(){return u.a.getPhrase(s,"fieldNameExceeds")}}],value:[{maxLength:16e3,msg:function(){return u.a.getPhrase(s,"fieldValueExceeds")}}]},w={fields:function(e){return e&&e.length?e.all((function(e){return!1!==e.isValid()}))?"":u.a.getPhrase(s,"fieldsInvalid"):""}};function x(){return[{id:-1,name:"Admin Notes",value:"",placeholder:"Notes that only admins will see"}]}},1216:function(e,t,n){"use strict";var r=n(1222),a=n(1215),i=(n(1220),n(3),n(1223)),o=(n(1225),n(1221)),u=n(82),s={getVideoDownloadUrl:function(e,t){return u.a.safeUrlConcat(u.a.makeHttps(e),"/download?token=".concat(t))}};n.d(t,"a",(function(){return r.a})),n.d(t,"e",(function(){return a.g})),n.d(t,"h",(function(){return a.j})),n.d(t,"g",(function(){return a.i})),n.d(t,"d",(function(){return a.f})),n.d(t,"f",(function(){return a.h})),n.d(t,"c",(function(){return i.a})),n.d(t,"i",(function(){return o.a})),n.d(t,"b",(function(){return s}))},1220:function(e,t,n){"use strict";n.d(t,"a",(function(){return l}));var r=n(1),a=n(49),i=n(162),o=n(3),u="libraryEditor.utils",s={name:[{required:!0,msg:function(){return o.a.getPhrase(u,"folderNameRequired")}},{maxLength:255,msg:function(){return o.a.getPhrase(u,"folderNameExceeds")}}]},c=function(e,t){return{parentId:function(n){return n?a.a.calculateDestinationFolderDepth(e,n,t)>i.a.MAX_FOLDER_DEPTH?o.a.getPhrase(u,"maxFolderDepth",{maxDepth:i.a.MAX_FOLDER_DEPTH}):"":o.a.getPhrase(u,"selectParentFolder")}}},l=function(e){var t=e.validateName,n=e.validateParent,a=e.folder,i=e.collection;return t&&n?r.extend({},s,c(a,i)):t?s:n?c(a,i):void 0}},1221:function(e,t,n){"use strict";n.d(t,"a",(function(){return f}));var r=n(15),a=n(3),i=n(189),o=n(1233),u=n(59);function s(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}var c,l="libraryEditor.utils";!function(e){e.Pdf="pdf",e.Image="image",e.PowerPoint="powerpoint",e.Document="document",e.Excel="excel",e.Zip="archive",e.File="text"}(c||(c={}));var f={mapRatingToClass:function(e){if(!e)return"";return function(e){switch(!0){case e<32:return"bg-purple";case e<48:return"bg-success";case e<80:return"bg-info";case e<96:return"bg-danger";case e<128:return"bg-pink";case e>=128:return"bg-warning";default:return""}}(e)},mapSourceToDisplayName:function(e){switch(e.get("type")){case u.a.HostedLibrary:case u.a.CustomLibrary:return e.get("name");case u.a.Exchange:return a.a.getPhrase(l,"exchange");case u.a.Workspace:return a.a.getPhrase(l,"workspace");default:return""}},mapSourceToClass:function(e){switch(e){case u.a.HostedLibrary:case u.a.CustomLibrary:return"bg-info";case u.a.Exchange:return"bg-success";case u.a.Workspace:default:return"bg-danger"}},isInteractive:function(e){return!(!e||!e.interactives)&&!!e.interactives.length},mapTypeToSvg:function(e){var t,n=(s(t={},c.Pdf,r.b.FilePDF),s(t,c.Image,r.b.FileImg),s(t,c.PowerPoint,r.b.FilePowerpoint),s(t,c.Document,r.b.FileWord),s(t,c.Excel,r.b.FileExcel),s(t,c.Zip,r.b.FileZip),s(t,c.File,r.b.File),t)[e];return n||(n=r.b.Folder),r.a.getSvg(n)},mapTypeToClass:function(e){switch(e){case c.Pdf:return"icon-red";case c.Image:return"icon-purple";case c.Document:return"icon-blue";case c.Excel:return"icon-green";case c.PowerPoint:return"icon-orange";case c.Zip:return"icon-teal";case c.File:return"icon-gray";default:return""}},mapTypeToExtension:function(e){if(!e)return"";return{pdf:"pdf",image:"png",powerpoint:"pptx"}[e.toLowerCase()]},mapTypeToName:function(e){if(!e)return"";switch(e){case c.Pdf:return a.a.getPhrase(l,"pdf");case c.Image:return a.a.getPhrase(l,"image");case c.Document:return a.a.getPhrase(l,"document");case c.Excel:return a.a.getPhrase(l,"spreadsheet");case c.PowerPoint:return a.a.getPhrase(l,"presentation");case c.Zip:return a.a.getPhrase(l,"zipArchive");case c.File:return a.a.getPhrase(l,"file");default:return""}},translateMetadataCollectionNames:function(e){return new o.a(e.map((function(e){return Object.assign(Object.assign({},e.toJSON()),{name:f.translateMetadataName(e.get("name"))})})))},translateMetadataName:function(e){var t="suggestEdit";switch(e){case i.MetadataType.VideoTitle:t+="VideoTitle";break;case i.MetadataType.Description:t+="Description";break;case i.MetadataType.Rating:t+="Rating";break;case i.MetadataType.SeriesTitle:t+="SeriesTitle";break;case i.MetadataType.Season:t+="SeasonNumber";break;case i.MetadataType.EpisodeNumber:t+="EpisodeNumber";break;case i.MetadataType.BroadcastDate:t+="BroadcastDate";break;case i.MetadataType.Channel:t+="Channel";break;case i.MetadataType.ProductionYear:t+="ProductionYear";break;case i.MetadataType.Distributors:t+="Distributors";break;case i.MetadataType.ProductionCompanies:t+="ProductionCompanies";break;case i.MetadataType.Directors:t+="Directors";break;case i.MetadataType.Producers:t+="Producers";break;case i.MetadataType.Other:t+="Other"}return a.a.getPhrase(l,t)}}},1222:function(e,t,n){"use strict";n.d(t,"a",(function(){return u}));var r=n(1),a=n(12),i=n(3),o="libraryEditor.utils",u={isValidChapterTime:function(e,t,n,i){if(i){if(!r.isNumber(t))return s.StartTime.Invalid();if(t<0)return s.StartTime.Invalid();if(t>a.w.millisecondsToSeconds(n))return s.StartTime.Exceeds();if(i.some((function(n){return!(n.id&&n.id===e.id||n.cid===e.cid)&&n.get("startTime")===t})))return s.StartTime.Exists()}},isValidChapterName:function(e,t,n){return t?t.length>255?s.Name.MaxLength():n.some((function(n){return!(n.id&&n.id===e.id||n.cid===e.cid)&&n.get("name").trim()===t.trim()}))?s.Name.Exists():r.isEmpty(t.trim())?s.Name.Invalid():void 0:s.Name.Invalid()},mapPhysicalChapters:function(e){var t=0;return r.map(e,(function(e,n){var r={name:e.title,startTime:t,index:n,isPhysicalChapter:!0};return t+=e.duration,r}))}},s={Name:{Invalid:function(){return i.a.getPhrase(o,"chapterNameInvalid")},Exists:function(){return i.a.getPhrase(o,"chapterNameExists")},MaxLength:function(){return i.a.getPhrase(o,"chapterNameExceeds")}},StartTime:{Invalid:function(){return i.a.getPhrase(o,"chapterStartTimeInvalid")},Exists:function(){return i.a.getPhrase(o,"chapterStartTimeExists")},Exceeds:function(){return i.a.getPhrase(o,"chapterStartTimeExceeds")}}}},1223:function(e,t,n){"use strict";n.d(t,"a",(function(){return i}));var r=n(3),a="libraryEditor.utils",i={name:[{required:!0,msg:function(){return r.a.getPhrase(a,"libraryNameRequired")}},{maxLength:255,msg:function(){return r.a.getPhrase(a,"libraryNameExceeds")}}]}},1225:function(e,t,n){"use strict";n.d(t,"a",(function(){return o}));var r=n(3),a=n(1215),i=r.a.encloseNamespace("libraryEditor.utils"),o={name:[{required:!0,msg:function(){return i("videoTitleRequired")}}],folderId:[{required:!0,msg:function(){return i("uploadFolderRequired")}}],libraryId:[{required:!0,msg:function(){return i("uploadLibraryRequired")}}],episodeNumber:function(e,t,n){return e&&e<1?i("episodeNumberLessThanOne"):e&&e>255?i("episodeNumberExceeds"):e&&e%1!=0?i("episodeNumberNotWhole"):n.season&&n.season.get("number")>=0&&null===e?i("episodeNumberNoSeason"):""},season:function(e,t,n){return n.season&&n.season.get("number")||e&&e.number||!n.episodeNumber?"":i("seasonNoEpisodeNumber")},productionYear:function(){for(var e,t=arguments.length,n=new Array(t),r=0;r<t;r++)n[r]=arguments[r];return(e=a.e.productionYear).apply.apply(e,[null].concat(n))}}},1233:function(e,t,n){"use strict";function r(e){return(r="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}function a(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function i(e,t){return(i=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e})(e,t)}function o(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=s(e);if(t){var a=s(this).constructor;n=Reflect.construct(r,arguments,a)}else n=r.apply(this,arguments);return u(this,n)}}function u(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 s(e){return(s=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)})(e)}n.d(t,"a",(function(){return c}));var c=function(e){!function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),t&&i(e,t)}(n,e);var t=o(n);function n(){return a(this,n),t.apply(this,arguments)}return n}(n(2).a.Collection)},1472:function(e,t,n){var r=n(10);e.exports=(r.default||r).template({1:function(e,t,n,r,a){var i;e.propertyIsEnumerable;return(null!=(i=e.lambda(null!=(i=null!=t?t.options:t)?i.spinnerEl:i,t))?i:"")+"\r\n"},3:function(e,t,n,r,a){e.propertyIsEnumerable;var i=null!=t?t:e.nullContext||{},o=e.hooks.helperMissing,u=e.escapeExpression;return'<form>\r\n <div class="form-group">\r\n <label for="name" class="control-label">'+u((n.lang||t&&t.lang||o).call(i,"fileName",{name:"lang",hash:{},data:a}))+'</label>\r\n <input name="name" id="name" type="text" class="form-control" placeholder="'+u((n.lang||t&&t.lang||o).call(i,"fileName",{name:"lang",hash:{},data:a}))+'" autocomplete="off" autofocus/>\r\n <div class="form-feedback"></div>\r\n </div>\r\n</form>\r\n'},compiler:[8,">= 4.3.0"],main:function(e,t,n,r,a){var i;e.propertyIsEnumerable;return null!=(i=n.unless.call(null!=t?t:e.nullContext||{},null!=(i=null!=t?t.options:t)?i.dataFetched:i,{name:"unless",hash:{},fn:e.program(1,a,0),inverse:e.program(3,a,0),data:a}))?i:""},useData:!0})},1606:function(e,t,n){"use strict";n.r(t),n.d(t,"EditResourceView",(function(){return S}));var r=n(1),a=n(6),i=n(42),o=n(2),u=n(5),s=n(30),c=n(293),l=n(253),f=n(0),d=n(12),p=n(1212),m=n(178),h=n(3),g=n(1216),b=n(1472),y=n.n(b);function v(e){return(v="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}function P(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}function E(e,t){return(E=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,r=N(e);if(t){var a=N(this).constructor;n=Reflect.construct(r,arguments,a)}else n=r.apply(this,arguments);return x(this,n)}}function x(e,t){return!t||"object"!==v(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 S=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)}(x,e);var t,n,b,v=w(x);function x(e){return function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,x),v.call(this,e)}return t=x,(n=[{key:"initialize",value:function(){this.listenTo(f.e.RESOURCE,"resource:".concat(this.options.resourceId,":sync"),this.render),this.resourceDataService=u.a.getInstance(f.g.Resource,this)}},{key:"events",value:function(){return{submit:"onSubmit","shown.bs.modal":"onModalShown"}}},{key:"onSubmit",value:function(e){var t=this;e&&e.preventDefault(),this.viewModel.validate(),!1!==this.viewModel.isValid()&&(a.Radio.channel(this.channelName).trigger(l.b.ShowSpinner),this.resourceDataService.updateResource(this.options.videoId,this.viewModel,(function(){t.logAction(),o.a.AppLinkHelper.trigger({application:f.b.LIBRARY_EDITOR,action:f.a.LibraryEditor.EDIT_VIDEO_RESOURCES,args:[t.options.videoId]})})))}},{key:"logAction",value:function(){var e={id:this.options.resourceId,parentId:+this.options.videoId,name:this.viewModel.get("name")};i.a.logUserAction(e,this.options.analyticsOptions)}},{key:"selectAllWithoutExtension",value:function(){if(this.model){var e=this.model.get("name").split(".").slice(0,-1).join("."),t=this.getUI("name");t.each((function(n,a){if(r.isFunction(a.setSelectionRange))t.focus(),a.setSelectionRange(0,e.length);else if(r.isFunction(a.createTextRange)){var i=a.createTextRange();i.collapse(!0),i.moveEnd("character",e.length),i.moveStart("character",0),i.select()}}))}}},{key:"onModalShown",value:function(){this.selectAllWithoutExtension()}},{key:"dataFetched",value:function(){return!!this.model&&!!this.viewModel}},{key:"onBeforeRender",value:function(){var e=this;this.model=this.resourceDataService.getResource(this.options.resourceId,(function(t){e.viewModel=s.a.get("resource:".concat(e.options.resourceId),t.toJSON(),{ctor:m.a}),e.viewModel.addValidation(g.e)})),this.dataFetched()&&this.spinnerModel.set(l.c.Disabled,!1)}},{key:"viewOptions",value:function(){return{dataFetched:this.dataFetched(),spinnerEl:d.q.getSpinner({size:d.r.Large,extraClasses:"mx-auto"})}}},{key:"onRender",value:function(){this.viewModel&&(this.stickit(this.viewModel),a.Validation.bind(this,{model:this.viewModel}),this.selectAllWithoutExtension())}},{key:"onClose",value:function(){this.unstickit(),a.Validation.unbind(this)}},{key:"name",get:function(){return"EditResourceView"}},{key:"lang",get:function(){return"libraryEditor.editResource"}},{key:"title",get:function(){return h.a.getPhrase(this.lang,"title")}},{key:"template",get:function(){return y.a}},{key:"channelName",get:function(){return d.k.generateUniqueChannelName(this)}},{key:"behaviors",get:function(){var e=this;return[{behaviorClass:c.e,title:h.a.getPhrase(this.lang,"edit"),spinnerButtonOptions:{channelName:this.channelName,model:this.spinnerModel=new p.a,buttonText:h.a.getPhrase(this.lang,"save"),onClick:function(t){return e.onSubmit(t)}}}]}},{key:"bindings",get:function(){return{"[name=name]":{observe:"name",setOptions:{validate:!0}}}}},{key:"elements",get:function(){return{name:"#name",feedback:".form-feedback"}}}])&&P(t.prototype,n),b&&P(t,b),x}(o.a.View)}}]);