@clickview/library-editor 1.1.27-dev.1 → 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 (1372) 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-9f5f0c25dc.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-0971cabfc8.chunk.js → 16-45b853d9bc.chunk.js} +1 -1
  12. package/dist/scripts/{17-f364868870.chunk.js → 17-17e648d740.chunk.js} +1 -1
  13. package/dist/scripts/{2-cd7f1d10b5.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-4694b66aa5.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-a1543ffe27.chunk.js → 32-66bedea19f.chunk.js} +1 -1
  28. package/dist/scripts/{33-9685703df6.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-80589d542e.chunk.js → 37-f9eaead96b.chunk.js} +1 -1
  33. package/dist/scripts/{38-7e88534f67.chunk.js → 38-ee287180e0.chunk.js} +1 -1
  34. package/dist/scripts/{39-99824f3b64.chunk.js → 39-875e8edab4.chunk.js} +1 -1
  35. package/dist/scripts/{4-ad1e4b43da.chunk.js → 4-30febbcd74.chunk.js} +1 -1
  36. package/dist/scripts/{40-dbfd665c74.chunk.js → 40-9e6fe972eb.chunk.js} +1 -1
  37. package/dist/scripts/{41-25fbac3d17.chunk.js → 41-8e127683ef.chunk.js} +1 -1
  38. package/dist/scripts/42-26e2b69676.chunk.js +1 -0
  39. package/dist/scripts/{43-5ef29feb2c.chunk.js → 43-cd5d61f503.chunk.js} +1 -1
  40. package/dist/scripts/{44-223f602431.chunk.js → 44-50adae17aa.chunk.js} +1 -1
  41. package/dist/scripts/{45-344492a36f.chunk.js → 45-d6cc086a40.chunk.js} +1 -1
  42. package/dist/scripts/{46-9ca7afd6a4.chunk.js → 46-c3131aa1a1.chunk.js} +1 -1
  43. package/dist/scripts/{47-ac0c9c5ce1.chunk.js → 47-53cc918c2d.chunk.js} +1 -1
  44. package/dist/scripts/{48-6bf590b9a0.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-30ba08212e.chunk.js → 50-77cc32280d.chunk.js} +1 -1
  48. package/dist/scripts/{51-828972defb.chunk.js → 51-718582f5a0.chunk.js} +1 -1
  49. package/dist/scripts/{52-b2acf3e742.chunk.js → 52-8bab7f4183.chunk.js} +1 -1
  50. package/dist/scripts/{53-5d6ea94871.chunk.js → 53-051f6fefda.chunk.js} +1 -1
  51. package/dist/scripts/{54-2d8bd6fde0.chunk.js → 54-54ab674027.chunk.js} +1 -1
  52. package/dist/scripts/{55-4a8d360746.chunk.js → 55-5620cb1984.chunk.js} +1 -1
  53. package/dist/scripts/{56-ad12ebab5f.chunk.js → 56-d515b7881b.chunk.js} +1 -1
  54. package/dist/scripts/{57-53b89c2ef0.chunk.js → 57-34cc7eeda7.chunk.js} +1 -1
  55. package/dist/scripts/{58-b246abe78c.chunk.js → 58-095cc86c38.chunk.js} +1 -1
  56. package/dist/scripts/{59-19290686e0.chunk.js → 59-88d4d70542.chunk.js} +1 -1
  57. package/dist/scripts/6-64fc0b404b.chunk.js +1 -0
  58. package/dist/scripts/{60-0c075e7b5c.chunk.js → 60-8e040e4d8f.chunk.js} +1 -1
  59. package/dist/scripts/{61-2725bbfab2.chunk.js → 61-9acfcad39c.chunk.js} +1 -1
  60. package/dist/scripts/{62-472d10a18e.chunk.js → 62-ab4cf2e18e.chunk.js} +1 -1
  61. package/dist/scripts/{63-7d00e50441.chunk.js → 63-be24981a1c.chunk.js} +1 -1
  62. package/dist/scripts/{64-1b42f78644.chunk.js → 64-2acf78f1d5.chunk.js} +1 -1
  63. package/dist/scripts/{65-14af88c745.chunk.js → 65-37aed4a31d.chunk.js} +1 -1
  64. package/dist/scripts/{66-bc274df13a.chunk.js → 66-bb4cde602a.chunk.js} +1 -1
  65. package/dist/scripts/{67-d1edef09d6.chunk.js → 67-04c0737fd2.chunk.js} +1 -1
  66. package/dist/scripts/{68-52468201b9.chunk.js → 68-436667d096.chunk.js} +1 -1
  67. package/dist/scripts/{69-b681e9a99c.chunk.js → 69-4dd38a6827.chunk.js} +1 -1
  68. package/dist/scripts/{7-2807a666bc.chunk.js → 7-5194b748c8.chunk.js} +1 -1
  69. package/dist/scripts/{70-d4018838a9.chunk.js → 70-d52ccba56d.chunk.js} +1 -1
  70. package/dist/scripts/{71-29cce07c7f.chunk.js → 71-b7f95045b5.chunk.js} +1 -1
  71. package/dist/scripts/{72-6f83214b8d.chunk.js → 72-b1eb475df0.chunk.js} +1 -1
  72. package/dist/scripts/{8-8f44e8bfc4.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 +4 -4
  78. package/dist/css/1.chunk.css.map +0 -1
  79. package/dist/css/10.chunk.css.map +0 -1
  80. package/dist/css/11.chunk.css +0 -137
  81. package/dist/css/11.chunk.css.map +0 -1
  82. package/dist/css/12.chunk.css.map +0 -1
  83. package/dist/css/13.chunk.css.map +0 -1
  84. package/dist/css/14.chunk.css.map +0 -1
  85. package/dist/css/16.chunk.css.map +0 -1
  86. package/dist/css/17.chunk.css.map +0 -1
  87. package/dist/css/18.chunk.css +0 -20
  88. package/dist/css/18.chunk.css.map +0 -1
  89. package/dist/css/2.chunk.css +0 -145
  90. package/dist/css/2.chunk.css.map +0 -1
  91. package/dist/css/21.chunk.css.map +0 -1
  92. package/dist/css/22.chunk.css.map +0 -1
  93. package/dist/css/23.chunk.css.map +0 -1
  94. package/dist/css/25.chunk.css.map +0 -1
  95. package/dist/css/26.chunk.css.map +0 -1
  96. package/dist/css/28.chunk.css.map +0 -1
  97. package/dist/css/29.chunk.css.map +0 -1
  98. package/dist/css/3.chunk.css.map +0 -1
  99. package/dist/css/30.chunk.css.map +0 -1
  100. package/dist/css/31.chunk.css.map +0 -1
  101. package/dist/css/32.chunk.css.map +0 -1
  102. package/dist/css/33.chunk.css.map +0 -1
  103. package/dist/css/34.chunk.css +0 -21
  104. package/dist/css/34.chunk.css.map +0 -1
  105. package/dist/css/35.chunk.css +0 -20
  106. package/dist/css/35.chunk.css.map +0 -1
  107. package/dist/css/36.chunk.css +0 -14
  108. package/dist/css/36.chunk.css.map +0 -1
  109. package/dist/css/37.chunk.css.map +0 -1
  110. package/dist/css/38.chunk.css.map +0 -1
  111. package/dist/css/40.chunk.css.map +0 -1
  112. package/dist/css/41.chunk.css.map +0 -1
  113. package/dist/css/42.chunk.css.map +0 -1
  114. package/dist/css/43.chunk.css.map +0 -1
  115. package/dist/css/44.chunk.css.map +0 -1
  116. package/dist/css/45.chunk.css.map +0 -1
  117. package/dist/css/46.chunk.css.map +0 -1
  118. package/dist/css/47.chunk.css.map +0 -1
  119. package/dist/css/48.chunk.css.map +0 -1
  120. package/dist/css/49.chunk.css +0 -35
  121. package/dist/css/49.chunk.css.map +0 -1
  122. package/dist/css/50.chunk.css.map +0 -1
  123. package/dist/css/51.chunk.css.map +0 -1
  124. package/dist/css/52.chunk.css +0 -66
  125. package/dist/css/52.chunk.css.map +0 -1
  126. package/dist/css/55.chunk.css.map +0 -1
  127. package/dist/css/56.chunk.css.map +0 -1
  128. package/dist/css/58.chunk.css.map +0 -1
  129. package/dist/css/59.chunk.css.map +0 -1
  130. package/dist/css/6.chunk.css.map +0 -1
  131. package/dist/css/60.chunk.css +0 -18
  132. package/dist/css/60.chunk.css.map +0 -1
  133. package/dist/css/62.chunk.css.map +0 -1
  134. package/dist/css/63.chunk.css +0 -170
  135. package/dist/css/63.chunk.css.map +0 -1
  136. package/dist/css/67.chunk.css +0 -78
  137. package/dist/css/67.chunk.css.map +0 -1
  138. package/dist/css/68.chunk.css +0 -17
  139. package/dist/css/68.chunk.css.map +0 -1
  140. package/dist/css/69.chunk.css +0 -17
  141. package/dist/css/69.chunk.css.map +0 -1
  142. package/dist/css/7.chunk.css.map +0 -1
  143. package/dist/css/70.chunk.css +0 -23
  144. package/dist/css/70.chunk.css.map +0 -1
  145. package/dist/css/71.chunk.css +0 -40
  146. package/dist/css/71.chunk.css.map +0 -1
  147. package/dist/css/72.chunk.css +0 -16
  148. package/dist/css/72.chunk.css.map +0 -1
  149. package/dist/css/73.chunk.css +0 -37
  150. package/dist/css/73.chunk.css.map +0 -1
  151. package/dist/css/74.chunk.css +0 -29
  152. package/dist/css/74.chunk.css.map +0 -1
  153. package/dist/css/75.chunk.css +0 -6
  154. package/dist/css/75.chunk.css.map +0 -1
  155. package/dist/css/76.chunk.css +0 -6
  156. package/dist/css/76.chunk.css.map +0 -1
  157. package/dist/css/8.chunk.css.map +0 -1
  158. package/dist/css/library-editor-app.css.map +0 -1
  159. package/dist/libs/analytics/src/Analytics.d.ts +0 -10
  160. package/dist/libs/analytics/src/AnalyticsHelper.d.ts +0 -30
  161. package/dist/libs/analytics/src/AnalyticsService.d.ts +0 -52
  162. package/dist/libs/analytics/src/clients/BaseAnalyticsClient.d.ts +0 -24
  163. package/dist/libs/analytics/src/clients/CollectionApiClient.d.ts +0 -48
  164. package/dist/libs/analytics/src/clients/DebuggerClient.d.ts +0 -7
  165. package/dist/libs/analytics/src/clients/GoogleAnalyticsClient.d.ts +0 -22
  166. package/dist/libs/analytics/src/constants/ApplicationOptionsKey.d.ts +0 -1
  167. package/dist/libs/analytics/src/constants/CountryRegionMapping.d.ts +0 -7
  168. package/dist/libs/analytics/src/constants/EventFirehose.d.ts +0 -4
  169. package/dist/libs/analytics/src/constants/GlobalChannels.d.ts +0 -3
  170. package/dist/libs/analytics/src/constants/Regions.d.ts +0 -6
  171. package/dist/libs/analytics/src/constants/Services.d.ts +0 -4
  172. package/dist/libs/analytics/src/enrichers/BaseAnalyticsEnricher.d.ts +0 -19
  173. package/dist/libs/analytics/src/enrichers/CoreContextEnricher.d.ts +0 -22
  174. package/dist/libs/analytics/src/enrichers/UserDataEnricher.d.ts +0 -10
  175. package/dist/libs/analytics/src/enums/CountryCode.d.ts +0 -5
  176. package/dist/libs/analytics/src/enums/RegionName.d.ts +0 -5
  177. package/dist/libs/analytics/src/interfaces/AnalyticsTypes.d.ts +0 -317
  178. package/dist/libs/analytics/src/interfaces/Config.d.ts +0 -3
  179. package/dist/libs/analytics/src/interfaces/Folder.d.ts +0 -3
  180. package/dist/libs/analytics/src/interfaces/HashObject.d.ts +0 -3
  181. package/dist/libs/analytics/src/interfaces/Owner.d.ts +0 -3
  182. package/dist/libs/analytics/src/interfaces/Playlist.d.ts +0 -3
  183. package/dist/libs/analytics/src/interfaces/Rating.d.ts +0 -4
  184. package/dist/libs/analytics/src/interfaces/Region.d.ts +0 -5
  185. package/dist/libs/analytics/src/interfaces/RegionalUrl.d.ts +0 -5
  186. package/dist/libs/analytics/src/interfaces/Resource.d.ts +0 -5
  187. package/dist/libs/analytics/src/interfaces/Series.d.ts +0 -3
  188. package/dist/libs/analytics/src/interfaces/Subtitle.d.ts +0 -4
  189. package/dist/libs/analytics/src/interfaces/User.d.ts +0 -17
  190. package/dist/libs/analytics/src/interfaces/VersionData.d.ts +0 -4
  191. package/dist/libs/analytics/src/interfaces/Video.d.ts +0 -16
  192. package/dist/libs/analytics/src/interfaces/index.d.ts +0 -15
  193. package/dist/libs/analytics/src/interfaces/primitives/BaseObject.d.ts +0 -7
  194. package/dist/libs/analytics/src/models/AnalyticsEvent.d.ts +0 -49
  195. package/dist/libs/analytics/src/models/CollectionEvent.d.ts +0 -61
  196. package/dist/libs/analytics/src/services/ContextService.d.ts +0 -19
  197. package/dist/libs/analytics/src/transport/EventTransport.d.ts +0 -39
  198. package/dist/libs/analytics/src/utils/CollectionApiClientHelper.d.ts +0 -6
  199. package/dist/libs/analytics/src/utils/DataFormatHelper.d.ts +0 -14
  200. package/dist/libs/analytics/src/utils/EventWhitelistHelper.d.ts +0 -19
  201. package/dist/libs/analytics/src/utils/ObjectFormatHelper.d.ts +0 -5
  202. package/dist/libs/analytics/src/utils/TypeHelper.d.ts +0 -4
  203. package/dist/libs/analytics/src/utils/UploadDataFormatHelper.d.ts +0 -10
  204. package/dist/libs/analytics/src/utils/UrlHelper.d.ts +0 -3
  205. package/dist/libs/analytics/src/utils/UserAgentHelper.d.ts +0 -10
  206. package/dist/libs/analytics/src/utils/VideoAnalyticsTracker.d.ts +0 -51
  207. package/dist/libs/analytics/src/utils/VideoDataFormatHelper.d.ts +0 -42
  208. package/dist/libs/common/src/backbone/constants/BehaviorChannels.d.ts +0 -5
  209. package/dist/libs/common/src/backbone/constants/Caches.d.ts +0 -3
  210. package/dist/libs/common/src/backbone/constants/CommonChannels.d.ts +0 -5
  211. package/dist/libs/common/src/backbone/constants/CommonServices.d.ts +0 -4
  212. package/dist/libs/common/src/backbone/constants/DataProviders.d.ts +0 -4
  213. package/dist/libs/common/src/backbone/constants/Webplayer.d.ts +0 -65
  214. package/dist/libs/common/src/backbone/core/AppLink.d.ts +0 -37
  215. package/dist/libs/common/src/backbone/core/BaseAppRouter.d.ts +0 -103
  216. package/dist/libs/common/src/backbone/core/BaseApplication.d.ts +0 -76
  217. package/dist/libs/common/src/backbone/core/BaseBehavior.d.ts +0 -6
  218. package/dist/libs/common/src/backbone/core/BaseCollection.d.ts +0 -7
  219. package/dist/libs/common/src/backbone/core/BaseCollectionView.d.ts +0 -16
  220. package/dist/libs/common/src/backbone/core/BaseError.d.ts +0 -18
  221. package/dist/libs/common/src/backbone/core/BaseLayoutView.d.ts +0 -11
  222. package/dist/libs/common/src/backbone/core/BaseModel.d.ts +0 -27
  223. package/dist/libs/common/src/backbone/core/BaseNestedModel.d.ts +0 -21
  224. package/dist/libs/common/src/backbone/core/BaseService.d.ts +0 -10
  225. package/dist/libs/common/src/backbone/core/BaseView.d.ts +0 -131
  226. package/dist/libs/common/src/backbone/core/EventNames.d.ts +0 -16
  227. package/dist/libs/common/src/backbone/core/LayoutService.d.ts +0 -31
  228. package/dist/libs/common/src/backbone/core/ListenToRadio.d.ts +0 -3
  229. package/dist/libs/common/src/backbone/core/LocationUtils.d.ts +0 -23
  230. package/dist/libs/common/src/backbone/core/Middleware.d.ts +0 -10
  231. package/dist/libs/common/src/backbone/core/Shell.d.ts +0 -79
  232. package/dist/libs/common/src/backbone/core/Types.d.ts +0 -12
  233. package/dist/libs/common/src/backbone/core/index.d.ts +0 -18
  234. package/dist/libs/common/src/backbone/enums/DataServiceErrorType.d.ts +0 -8
  235. package/dist/libs/common/src/backbone/enums/HttpVerbs.d.ts +0 -6
  236. package/dist/libs/common/src/backbone/errors/DevError.d.ts +0 -4
  237. package/dist/libs/common/src/backbone/errors/NotImplementedError.d.ts +0 -5
  238. package/dist/libs/common/src/backbone/index.d.ts +0 -2
  239. package/dist/libs/common/src/backbone/interfaces/BaseCollectionIdentifier.d.ts +0 -19
  240. package/dist/libs/common/src/backbone/interfaces/ChainableDataService.d.ts +0 -9
  241. package/dist/libs/common/src/backbone/interfaces/DataCache.d.ts +0 -8
  242. package/dist/libs/common/src/backbone/interfaces/DataProvider.d.ts +0 -15
  243. package/dist/libs/common/src/backbone/interfaces/DataServiceError.d.ts +0 -7
  244. package/dist/libs/common/src/backbone/interfaces/DataServiceRequests.d.ts +0 -218
  245. package/dist/libs/common/src/backbone/interfaces/Pagination.d.ts +0 -33
  246. package/dist/libs/common/src/backbone/interfaces/StickitBinding.d.ts +0 -38
  247. package/dist/libs/common/src/backbone/interfaces/Xhr.d.ts +0 -9
  248. package/dist/libs/common/src/backbone/interfaces/index.d.ts +0 -9
  249. package/dist/libs/common/src/backbone/runtime/InputValidation.d.ts +0 -2
  250. package/dist/libs/common/src/backbone/services/BaseAlertService.d.ts +0 -69
  251. package/dist/libs/common/src/backbone/services/BaseDataService.d.ts +0 -82
  252. package/dist/libs/common/src/backbone/services/EnvironmentVariables.d.ts +0 -13
  253. package/dist/libs/common/src/backbone/services/InstanceManager.d.ts +0 -33
  254. package/dist/libs/common/src/backbone/services/LanguageService.d.ts +0 -22
  255. package/dist/libs/common/src/backbone/services/ViewModelService.d.ts +0 -68
  256. package/dist/libs/common/src/backbone/services/caches/FifoMemoryCache.d.ts +0 -20
  257. package/dist/libs/common/src/backbone/services/data-providers/AjaxDataProvider.d.ts +0 -31
  258. package/dist/libs/common/src/backbone/services/data-providers/SignalRDataProvider.d.ts +0 -46
  259. package/dist/libs/common/src/backbone/utils/ConcurrencyHelper.d.ts +0 -13
  260. package/dist/libs/common/src/backbone/utils/DataServiceErrorHelper.d.ts +0 -2
  261. package/dist/libs/common/src/backbone/utils/FunctionHelper.d.ts +0 -8
  262. package/dist/libs/common/src/backbone/utils/LocalStorageHelper.d.ts +0 -58
  263. package/dist/libs/common/src/backbone/utils/UrlHelper.d.ts +0 -14
  264. package/dist/libs/common/src/backbone/utils/UserAgentHelper.d.ts +0 -7
  265. package/dist/libs/common/src/react/flight/enums/RequestStatus.d.ts +0 -6
  266. package/dist/libs/common/src/react/flight/enums/index.d.ts +0 -1
  267. package/dist/libs/common/src/react/flight/interfaces/FlightState.d.ts +0 -22
  268. package/dist/libs/common/src/react/flight/interfaces/NormalizeOptions.d.ts +0 -4
  269. package/dist/libs/common/src/react/flight/interfaces/Request.d.ts +0 -29
  270. package/dist/libs/common/src/react/flight/interfaces/UpdateStateOptions.d.ts +0 -15
  271. package/dist/libs/common/src/react/interfaces/ApplicationData.d.ts +0 -3
  272. package/dist/libs/common/src/react/interfaces/ApplicationState.d.ts +0 -8
  273. package/dist/libs/common/src/react/interfaces/BaseReducerActions.d.ts +0 -4
  274. package/dist/libs/common/src/react/interfaces/HashObject.d.ts +0 -3
  275. package/dist/libs/common/src/react/interfaces/index.d.ts +0 -4
  276. package/dist/libs/common/src/react/utils/FetchHelper.d.ts +0 -50
  277. package/dist/libs/common/src/react/utils/ObjectHelper.d.ts +0 -10
  278. package/dist/libs/common/src/react/utils/TextHelper.d.ts +0 -9
  279. package/dist/libs/shared/src/apps/notifications/collections/NotificationCollection.d.ts +0 -9
  280. package/dist/libs/shared/src/apps/notifications/components/notification-items/notification-item/NotificationItemComponent.d.ts +0 -23
  281. package/dist/libs/shared/src/apps/notifications/components/notification-list/NotificationListComponent.d.ts +0 -26
  282. package/dist/libs/shared/src/apps/notifications/components/notification-status/NotificationStatusComponent.d.ts +0 -15
  283. package/dist/libs/shared/src/apps/notifications/enums/AppLinkReferrer.d.ts +0 -3
  284. package/dist/libs/shared/src/apps/notifications/enums/NotificationActions.d.ts +0 -3
  285. package/dist/libs/shared/src/apps/notifications/enums/NotificationAlertType.d.ts +0 -7
  286. package/dist/libs/shared/src/apps/notifications/enums/NotificationAppLinkModules.d.ts +0 -7
  287. package/dist/libs/shared/src/apps/notifications/enums/NotificationModules.d.ts +0 -4
  288. package/dist/libs/shared/src/apps/notifications/enums/NotificationStatus.d.ts +0 -5
  289. package/dist/libs/shared/src/apps/notifications/enums/NotificationType.d.ts +0 -16
  290. package/dist/libs/shared/src/apps/notifications/interfaces/NotificationCollectionRequest.d.ts +0 -5
  291. package/dist/libs/shared/src/apps/notifications/interfaces/index.d.ts +0 -1
  292. package/dist/libs/shared/src/apps/notifications/models/Notification.d.ts +0 -6
  293. package/dist/libs/shared/src/apps/notifications/services/NotificationDataService.d.ts +0 -14
  294. package/dist/libs/shared/src/apps/notifications/services/NotificationService.d.ts +0 -33
  295. package/dist/libs/shared/src/apps/notifications/services/NotificationSocketService.d.ts +0 -8
  296. package/dist/libs/shared/src/apps/notifications/services/data-providers/NotificationsSocketDataProvider.d.ts +0 -4
  297. package/dist/libs/shared/src/apps/notifications/utils/NotificationAppLinkHelper.d.ts +0 -10
  298. package/dist/libs/shared/src/apps/notifications/utils/NotificationsHelper.d.ts +0 -18
  299. package/dist/libs/shared/src/apps/notifications/views/header/NotificationHeaderView.d.ts +0 -16
  300. package/dist/libs/shared/src/apps/notifications/views/notifications/NotificationsView.d.ts +0 -27
  301. package/dist/libs/shared/src/apps/notifications/views/popover/NotificationsPopoverView.d.ts +0 -34
  302. package/dist/libs/shared/src/apps/search/components/confirm-selection/ConfirmSelectionComponent.d.ts +0 -12
  303. package/dist/libs/shared/src/apps/search/components/instant-search/classification/ClassificationSearchResultComponent.d.ts +0 -17
  304. package/dist/libs/shared/src/apps/search/components/instant-search/index.d.ts +0 -5
  305. package/dist/libs/shared/src/apps/search/components/instant-search/recent-search/RecentSearchResultComponent.d.ts +0 -15
  306. package/dist/libs/shared/src/apps/search/components/instant-search/series/SeriesSearchResultComponent.d.ts +0 -14
  307. package/dist/libs/shared/src/apps/search/components/instant-search/tag/TagSearchResultComponent.d.ts +0 -9
  308. package/dist/libs/shared/src/apps/search/components/instant-search/video-result/VideoSearchResultComponent.d.ts +0 -18
  309. package/dist/libs/shared/src/apps/search/components/search-context/SearchContextComponent.d.ts +0 -18
  310. package/dist/libs/shared/src/apps/search/components/search-tips/SearchTipsComponent.d.ts +0 -11
  311. package/dist/libs/shared/src/apps/search/constants/TypeaheadConfiguration.d.ts +0 -12
  312. package/dist/libs/shared/src/apps/search/enums/FilterTypes.d.ts +0 -14
  313. package/dist/libs/shared/src/apps/search/enums/SearchQueryType.d.ts +0 -18
  314. package/dist/libs/shared/src/apps/search/enums/SearchTypes.d.ts +0 -8
  315. package/dist/libs/shared/src/apps/search/interfaces/SearchTypes.d.ts +0 -26
  316. package/dist/libs/shared/src/apps/search/interfaces/index.d.ts +0 -1
  317. package/dist/libs/shared/src/apps/search/services/ContextualSearchService.d.ts +0 -34
  318. package/dist/libs/shared/src/apps/search/utils/InstantSearchHelper.d.ts +0 -22
  319. package/dist/libs/shared/src/apps/search/utils/RecentSearchHelper.d.ts +0 -12
  320. package/dist/libs/shared/src/apps/search/utils/SearchHelper.d.ts +0 -5
  321. package/dist/libs/shared/src/apps/search/utils/TypeaheadHelper.d.ts +0 -75
  322. package/dist/libs/shared/src/apps/search/views/search-bar/SearchBarView.d.ts +0 -110
  323. package/dist/libs/shared/src/apps/search/views/search-bar/templates/index.d.ts +0 -9
  324. package/dist/libs/shared/src/apps/upload/collections/PendingItemsCollection.d.ts +0 -8
  325. package/dist/libs/shared/src/apps/upload/constants/UploadConstants.d.ts +0 -39
  326. package/dist/libs/shared/src/apps/upload/enums/FileLifestyle.d.ts +0 -4
  327. package/dist/libs/shared/src/apps/upload/enums/PendingItemStatus.d.ts +0 -5
  328. package/dist/libs/shared/src/apps/upload/errors/file-type/FileTypeError.d.ts +0 -15
  329. package/dist/libs/shared/src/apps/upload/errors/internet-connectivity/InternetConnectivityError.d.ts +0 -7
  330. package/dist/libs/shared/src/apps/upload/services/BasePendingItemsService.d.ts +0 -26
  331. package/dist/libs/shared/src/apps/upload/services/DropzoneWrapper.d.ts +0 -30
  332. package/dist/libs/shared/src/apps/upload/services/UploadService.d.ts +0 -66
  333. package/dist/libs/shared/src/apps/upload/utils/FileExtensionsHelper.d.ts +0 -9
  334. package/dist/libs/shared/src/apps/upload/utils/PendingItemsHelper.d.ts +0 -9
  335. package/dist/libs/shared/src/constants/AppVariables.d.ts +0 -5
  336. package/dist/libs/shared/src/constants/BootstrapKeys.d.ts +0 -8
  337. package/dist/libs/shared/src/constants/CacheDurations.d.ts +0 -4
  338. package/dist/libs/shared/src/constants/DataPrefixes.d.ts +0 -12
  339. package/dist/libs/shared/src/constants/RadioChannels.d.ts +0 -20
  340. package/dist/libs/shared/src/constants/SharedServices.d.ts +0 -25
  341. package/dist/libs/shared/src/enums/ClassificationType.d.ts +0 -4
  342. package/dist/libs/shared/src/enums/CountryCode.d.ts +0 -5
  343. package/dist/libs/shared/src/enums/CurationStatus.d.ts +0 -12
  344. package/dist/libs/shared/src/enums/CurriculumType.d.ts +0 -6
  345. package/dist/libs/shared/src/enums/CustomerType.d.ts +0 -11
  346. package/dist/libs/shared/src/enums/GlanceFormat.d.ts +0 -3
  347. package/dist/libs/shared/src/enums/Images.d.ts +0 -26
  348. package/dist/libs/shared/src/enums/LibraryType.d.ts +0 -5
  349. package/dist/libs/shared/src/enums/MasterObjectTypes.d.ts +0 -8
  350. package/dist/libs/shared/src/enums/MediaQueries.d.ts +0 -20
  351. package/dist/libs/shared/src/enums/ObjectOwnerType.d.ts +0 -4
  352. package/dist/libs/shared/src/enums/ObjectStatus.d.ts +0 -5
  353. package/dist/libs/shared/src/enums/PartialLoading.d.ts +0 -4
  354. package/dist/libs/shared/src/enums/PlayerMediaType.d.ts +0 -5
  355. package/dist/libs/shared/src/enums/PlaylistPrivacy.d.ts +0 -5
  356. package/dist/libs/shared/src/enums/PresentationType.d.ts +0 -4
  357. package/dist/libs/shared/src/enums/ResourceFileType.d.ts +0 -9
  358. package/dist/libs/shared/src/enums/SettingKind.d.ts +0 -4
  359. package/dist/libs/shared/src/enums/SettingName.d.ts +0 -17
  360. package/dist/libs/shared/src/enums/SubtitleExtractionOptions.d.ts +0 -4
  361. package/dist/libs/shared/src/enums/ThemeType.d.ts +0 -3
  362. package/dist/libs/shared/src/enums/UploadInteractionType.d.ts +0 -4
  363. package/dist/libs/shared/src/enums/UserGroup.d.ts +0 -5
  364. package/dist/libs/shared/src/enums/UserRole.d.ts +0 -15
  365. package/dist/libs/shared/src/enums/VideoOrigin.d.ts +0 -14
  366. package/dist/libs/shared/src/enums/WidgetContents.d.ts +0 -10
  367. package/dist/libs/shared/src/errors/primitives/AlertError.d.ts +0 -4
  368. package/dist/libs/shared/src/errors/primitives/DialogError.d.ts +0 -9
  369. package/dist/libs/shared/src/errors/primitives/ErrorPageError.d.ts +0 -7
  370. package/dist/libs/shared/src/images/svg/ImportedSvgs.d.ts +0 -87
  371. package/dist/libs/shared/src/images/svg/actions/index.d.ts +0 -24
  372. package/dist/libs/shared/src/images/svg/arrows/index.d.ts +0 -9
  373. package/dist/libs/shared/src/images/svg/index.d.ts +0 -2
  374. package/dist/libs/shared/src/images/svg/objects/index.d.ts +0 -36
  375. package/dist/libs/shared/src/images/svg/player/index.d.ts +0 -14
  376. package/dist/libs/shared/src/images/svg/settings.d.ts +0 -1
  377. package/dist/libs/shared/src/images/svg/status/index.d.ts +0 -13
  378. package/dist/libs/shared/src/interfaces/AppLinkWithLabel.d.ts +0 -5
  379. package/dist/libs/shared/src/interfaces/DialogOptions.d.ts +0 -13
  380. package/dist/libs/shared/src/interfaces/ImageUrls.d.ts +0 -16
  381. package/dist/libs/shared/src/interfaces/QueryParams.d.ts +0 -3
  382. package/dist/libs/shared/src/interfaces/RegionalUrl.d.ts +0 -5
  383. package/dist/libs/shared/src/interfaces/WidgetContext.d.ts +0 -9
  384. package/dist/libs/shared/src/interfaces/app-variables/BaseNotificationsAppVariables.d.ts +0 -16
  385. package/dist/libs/shared/src/interfaces/app-variables/BaseSearchAppVariables.d.ts +0 -17
  386. package/dist/libs/shared/src/interfaces/app-variables/index.d.ts +0 -2
  387. package/dist/libs/shared/src/interfaces/collections/AudienceCollection.d.ts +0 -4
  388. package/dist/libs/shared/src/interfaces/collections/CategoryCollection.d.ts +0 -4
  389. package/dist/libs/shared/src/interfaces/collections/ClassificationCollection.d.ts +0 -4
  390. package/dist/libs/shared/src/interfaces/collections/ClassroomCollection.d.ts +0 -4
  391. package/dist/libs/shared/src/interfaces/collections/ClassroomGroupCollection.d.ts +0 -4
  392. package/dist/libs/shared/src/interfaces/collections/ClipCollection.d.ts +0 -4
  393. package/dist/libs/shared/src/interfaces/collections/CompanyCollection.d.ts +0 -3
  394. package/dist/libs/shared/src/interfaces/collections/CustomerCollection.d.ts +0 -4
  395. package/dist/libs/shared/src/interfaces/collections/FolderCollection.d.ts +0 -4
  396. package/dist/libs/shared/src/interfaces/collections/InteractiveCollection.d.ts +0 -4
  397. package/dist/libs/shared/src/interfaces/collections/LibraryCollection.d.ts +0 -4
  398. package/dist/libs/shared/src/interfaces/collections/LinkCollection.d.ts +0 -4
  399. package/dist/libs/shared/src/interfaces/collections/PersonCollection.d.ts +0 -3
  400. package/dist/libs/shared/src/interfaces/collections/PlaylistCollection.d.ts +0 -4
  401. package/dist/libs/shared/src/interfaces/collections/PresentationAudienceCollection.d.ts +0 -4
  402. package/dist/libs/shared/src/interfaces/collections/ResourceCollection.d.ts +0 -3
  403. package/dist/libs/shared/src/interfaces/collections/SeriesCollection.d.ts +0 -4
  404. package/dist/libs/shared/src/interfaces/collections/SubtitleCollection.d.ts +0 -3
  405. package/dist/libs/shared/src/interfaces/collections/TagCollection.d.ts +0 -4
  406. package/dist/libs/shared/src/interfaces/collections/UserCollection.d.ts +0 -3
  407. package/dist/libs/shared/src/interfaces/collections/VideoCollection.d.ts +0 -4
  408. package/dist/libs/shared/src/interfaces/collections/VideoHistoryCollection.d.ts +0 -4
  409. package/dist/libs/shared/src/interfaces/collections/WidgetCollection.d.ts +0 -3
  410. package/dist/libs/shared/src/interfaces/collections/index.d.ts +0 -25
  411. package/dist/libs/shared/src/interfaces/collections/primitives/BasePaginatedCollection.d.ts +0 -7
  412. package/dist/libs/shared/src/interfaces/collections/primitives/index.d.ts +0 -1
  413. package/dist/libs/shared/src/interfaces/index.d.ts +0 -13
  414. package/dist/libs/shared/src/interfaces/models/Audience.d.ts +0 -3
  415. package/dist/libs/shared/src/interfaces/models/Avatar.d.ts +0 -3
  416. package/dist/libs/shared/src/interfaces/models/Banner.d.ts +0 -3
  417. package/dist/libs/shared/src/interfaces/models/Category.d.ts +0 -3
  418. package/dist/libs/shared/src/interfaces/models/Channel.d.ts +0 -3
  419. package/dist/libs/shared/src/interfaces/models/Classification.d.ts +0 -21
  420. package/dist/libs/shared/src/interfaces/models/Classroom.d.ts +0 -4
  421. package/dist/libs/shared/src/interfaces/models/ClassroomGroup.d.ts +0 -18
  422. package/dist/libs/shared/src/interfaces/models/Clip.d.ts +0 -8
  423. package/dist/libs/shared/src/interfaces/models/Company.d.ts +0 -3
  424. package/dist/libs/shared/src/interfaces/models/Config.d.ts +0 -13
  425. package/dist/libs/shared/src/interfaces/models/Cover.d.ts +0 -3
  426. package/dist/libs/shared/src/interfaces/models/Curriculum.d.ts +0 -18
  427. package/dist/libs/shared/src/interfaces/models/Customer.d.ts +0 -6
  428. package/dist/libs/shared/src/interfaces/models/EntitySetting.d.ts +0 -9
  429. package/dist/libs/shared/src/interfaces/models/FileUpload.d.ts +0 -20
  430. package/dist/libs/shared/src/interfaces/models/Folder.d.ts +0 -7
  431. package/dist/libs/shared/src/interfaces/models/Following.d.ts +0 -4
  432. package/dist/libs/shared/src/interfaces/models/Glance.d.ts +0 -9
  433. package/dist/libs/shared/src/interfaces/models/Group.d.ts +0 -3
  434. package/dist/libs/shared/src/interfaces/models/HeroBanner.d.ts +0 -3
  435. package/dist/libs/shared/src/interfaces/models/Image.d.ts +0 -7
  436. package/dist/libs/shared/src/interfaces/models/InteractiveMetadata.d.ts +0 -14
  437. package/dist/libs/shared/src/interfaces/models/Language.d.ts +0 -4
  438. package/dist/libs/shared/src/interfaces/models/LanguageConfig.d.ts +0 -5
  439. package/dist/libs/shared/src/interfaces/models/Library.d.ts +0 -5
  440. package/dist/libs/shared/src/interfaces/models/Link.d.ts +0 -4
  441. package/dist/libs/shared/src/interfaces/models/Organisation.d.ts +0 -3
  442. package/dist/libs/shared/src/interfaces/models/Pdf.d.ts +0 -4
  443. package/dist/libs/shared/src/interfaces/models/Person.d.ts +0 -3
  444. package/dist/libs/shared/src/interfaces/models/PlayerViewKey.d.ts +0 -3
  445. package/dist/libs/shared/src/interfaces/models/Playlist.d.ts +0 -14
  446. package/dist/libs/shared/src/interfaces/models/Poster.d.ts +0 -3
  447. package/dist/libs/shared/src/interfaces/models/Presentation.d.ts +0 -6
  448. package/dist/libs/shared/src/interfaces/models/PresentationAudience.d.ts +0 -6
  449. package/dist/libs/shared/src/interfaces/models/Rating.d.ts +0 -5
  450. package/dist/libs/shared/src/interfaces/models/Resource.d.ts +0 -17
  451. package/dist/libs/shared/src/interfaces/models/Restriction.d.ts +0 -6
  452. package/dist/libs/shared/src/interfaces/models/Season.d.ts +0 -4
  453. package/dist/libs/shared/src/interfaces/models/Series.d.ts +0 -10
  454. package/dist/libs/shared/src/interfaces/models/Share.d.ts +0 -9
  455. package/dist/libs/shared/src/interfaces/models/Subject.d.ts +0 -13
  456. package/dist/libs/shared/src/interfaces/models/Subtitle.d.ts +0 -7
  457. package/dist/libs/shared/src/interfaces/models/Tag.d.ts +0 -3
  458. package/dist/libs/shared/src/interfaces/models/TallPoster.d.ts +0 -3
  459. package/dist/libs/shared/src/interfaces/models/Theme.d.ts +0 -14
  460. package/dist/libs/shared/src/interfaces/models/Thumbnail.d.ts +0 -6
  461. package/dist/libs/shared/src/interfaces/models/User.d.ts +0 -64
  462. package/dist/libs/shared/src/interfaces/models/UserChannel.d.ts +0 -7
  463. package/dist/libs/shared/src/interfaces/models/Video.d.ts +0 -34
  464. package/dist/libs/shared/src/interfaces/models/VideoHistory.d.ts +0 -12
  465. package/dist/libs/shared/src/interfaces/models/Widget.d.ts +0 -16
  466. package/dist/libs/shared/src/interfaces/models/YearGroup.d.ts +0 -5
  467. package/dist/libs/shared/src/interfaces/models/index.d.ts +0 -57
  468. package/dist/libs/shared/src/interfaces/models/interactive/ActionableItem.d.ts +0 -6
  469. package/dist/libs/shared/src/interfaces/models/interactive/Interaction.d.ts +0 -16
  470. package/dist/libs/shared/src/interfaces/models/interactive/InteractionType.d.ts +0 -7
  471. package/dist/libs/shared/src/interfaces/models/interactive/InteractionTypeId.d.ts +0 -8
  472. package/dist/libs/shared/src/interfaces/models/interactive/Interactive.d.ts +0 -7
  473. package/dist/libs/shared/src/interfaces/models/interactive/Timepoint.d.ts +0 -9
  474. package/dist/libs/shared/src/interfaces/models/interactive/index.d.ts +0 -6
  475. package/dist/libs/shared/src/interfaces/models/interactive.d.ts +0 -9
  476. package/dist/libs/shared/src/interfaces/models/primitives/BaseObject.d.ts +0 -8
  477. package/dist/libs/shared/src/interfaces/models/primitives/VirtualObject.d.ts +0 -5
  478. package/dist/libs/shared/src/interfaces/models/primitives/index.d.ts +0 -2
  479. package/dist/libs/shared/src/interfaces/props/ViewProps.d.ts +0 -8
  480. package/dist/libs/shared/src/interfaces/props/index.d.ts +0 -1
  481. package/dist/libs/shared/src/interfaces/requests/CreateOrUpdateClipRequest.d.ts +0 -6
  482. package/dist/libs/shared/src/interfaces/requests/CreateViewKeyRequest.d.ts +0 -3
  483. package/dist/libs/shared/src/interfaces/requests/ReorderRequest.d.ts +0 -12
  484. package/dist/libs/shared/src/interfaces/requests/UpdateObjectChannel.d.ts +0 -3
  485. package/dist/libs/shared/src/interfaces/requests/UpdateObjectRating.d.ts +0 -3
  486. package/dist/libs/shared/src/interfaces/requests/UpdateResourceRequest.d.ts +0 -3
  487. package/dist/libs/shared/src/interfaces/requests/UpdateVideoRequest.d.ts +0 -9
  488. package/dist/libs/shared/src/interfaces/requests/index.d.ts +0 -7
  489. package/dist/libs/shared/src/interfaces/services/BaseConfigDataService.d.ts +0 -5
  490. package/dist/libs/shared/src/interfaces/services/BaseLibraryDataService.d.ts +0 -10
  491. package/dist/libs/shared/src/interfaces/services/BaseSeriesDataService.d.ts +0 -4
  492. package/dist/libs/shared/src/interfaces/services/BaseSettingsDataService.d.ts +0 -7
  493. package/dist/libs/shared/src/interfaces/services/BaseUserDataService.d.ts +0 -6
  494. package/dist/libs/shared/src/interfaces/services/BaseVideoDataService.d.ts +0 -5
  495. package/dist/libs/shared/src/interfaces/services/BaseVideoUploadDataService.d.ts +0 -8
  496. package/dist/libs/shared/src/interfaces/services/index.d.ts +0 -7
  497. package/dist/libs/shared/src/legacy/behaviors/empty-state/EmptyStateBehavior.d.ts +0 -22
  498. package/dist/libs/shared/src/legacy/behaviors/file-drop/FileDropBehavior.d.ts +0 -19
  499. package/dist/libs/shared/src/legacy/behaviors/file-drop/FileDropHelper.d.ts +0 -4
  500. package/dist/libs/shared/src/legacy/behaviors/file-drop/FileDropMaskBehavior.d.ts +0 -19
  501. package/dist/libs/shared/src/legacy/behaviors/file-select/FileSelectBehavior.d.ts +0 -16
  502. package/dist/libs/shared/src/legacy/behaviors/popover/PopoverBehavior.d.ts +0 -40
  503. package/dist/libs/shared/src/legacy/behaviors/tooltip/TooltipBehavior.d.ts +0 -26
  504. package/dist/libs/shared/src/legacy/components/empty-state/EmptyStateComponent.d.ts +0 -24
  505. package/dist/libs/shared/src/legacy/components/file-select/FileSelectComponent.d.ts +0 -29
  506. package/dist/libs/shared/src/legacy/components/file-uploads/FileUploadComponent.d.ts +0 -15
  507. package/dist/libs/shared/src/legacy/components/pagination/PaginationComponent.d.ts +0 -29
  508. package/dist/libs/shared/src/legacy/components/resource-item/ResourceItemComponent.d.ts +0 -22
  509. package/dist/libs/shared/src/legacy/components/subtitle-item/SubtitleItemComponent.d.ts +0 -17
  510. package/dist/libs/shared/src/legacy/components/thumbnail/ThumbnailComponent.d.ts +0 -35
  511. package/dist/libs/shared/src/legacy/constants/empty-state-components/EmptyStateComponents.d.ts +0 -6
  512. package/dist/libs/shared/src/legacy/enums/EmptyState.d.ts +0 -3
  513. package/dist/libs/shared/src/legacy/enums/SortType.d.ts +0 -7
  514. package/dist/libs/shared/src/legacy/errors/too-many-files/TooManyFilesError.d.ts +0 -7
  515. package/dist/libs/shared/src/legacy/errors/too-many-resources/TooManyResourcesError.d.ts +0 -8
  516. package/dist/libs/shared/src/legacy/errors/too-many-subtitles/TooManySubtitlesError.d.ts +0 -8
  517. package/dist/libs/shared/src/legacy/interfaces/CollectionIdentifier.d.ts +0 -7
  518. package/dist/libs/shared/src/legacy/interfaces/index.d.ts +0 -1
  519. package/dist/libs/shared/src/legacy/utils/EmptyStateHelper.d.ts +0 -4
  520. package/dist/libs/shared/src/legacy/utils/LangHelper.d.ts +0 -5
  521. package/dist/libs/shared/src/services/ContextService.d.ts +0 -38
  522. package/dist/libs/shared/src/services/LanguageDataService.d.ts +0 -7
  523. package/dist/libs/shared/src/services/UserDataService.d.ts +0 -24
  524. package/dist/libs/shared/src/utils/DurationHelper.d.ts +0 -7
  525. package/dist/libs/shared/src/utils/EmbedHelper.d.ts +0 -8
  526. package/dist/libs/shared/src/utils/ImageHelper.d.ts +0 -32
  527. package/dist/libs/shared/src/utils/LibraryDataServiceHelper.d.ts +0 -13
  528. package/dist/libs/shared/src/utils/MaskHelper.d.ts +0 -15
  529. package/dist/libs/shared/src/utils/SubtitleHelper.d.ts +0 -9
  530. package/dist/libs/shared/src/utils/SvgHelper.d.ts +0 -18
  531. package/dist/libs/shared/src/utils/TextHelper.d.ts +0 -3
  532. package/dist/libs/shared/src/utils/VideoDetailsHelper.d.ts +0 -12
  533. package/dist/projects/library-editor/src/app.d.ts +0 -244
  534. package/dist/projects/library-editor/src/apps/content-updates/ContentUpdatesApplication.d.ts +0 -18
  535. package/dist/projects/library-editor/src/apps/content-updates/collections/SubjectCollection.d.ts +0 -5
  536. package/dist/projects/library-editor/src/apps/content-updates/collections/VideoGroupCollection.d.ts +0 -5
  537. package/dist/projects/library-editor/src/apps/content-updates/collections/index.d.ts +0 -2
  538. package/dist/projects/library-editor/src/apps/content-updates/components/awaiting-review-header/AwaitingReviewHeaderComponent.d.ts +0 -14
  539. package/dist/projects/library-editor/src/apps/content-updates/components/content-updates-header/ContentUpdatesHeaderComponent.d.ts +0 -19
  540. package/dist/projects/library-editor/src/apps/content-updates/components/content-updates-left-nav/ContentUpdatesLeftNavComponent.d.ts +0 -18
  541. package/dist/projects/library-editor/src/apps/content-updates/components/index.d.ts +0 -6
  542. package/dist/projects/library-editor/src/apps/content-updates/components/past-releases-filters/PastReleasesFiltersComponent.d.ts +0 -20
  543. package/dist/projects/library-editor/src/apps/content-updates/components/past-releases-header/PastReleasesHeaderComponent.d.ts +0 -24
  544. package/dist/projects/library-editor/src/apps/content-updates/components/video-group-list/VideoGroupListComponent.d.ts +0 -37
  545. package/dist/projects/library-editor/src/apps/content-updates/enums/PastReleaseFilterType.d.ts +0 -5
  546. package/dist/projects/library-editor/src/apps/content-updates/enums/ReleaseDateType.d.ts +0 -6
  547. package/dist/projects/library-editor/src/apps/content-updates/enums/index.d.ts +0 -2
  548. package/dist/projects/library-editor/src/apps/content-updates/models/Subject.d.ts +0 -3
  549. package/dist/projects/library-editor/src/apps/content-updates/models/VideoGroup.d.ts +0 -7
  550. package/dist/projects/library-editor/src/apps/content-updates/models/index.d.ts +0 -2
  551. package/dist/projects/library-editor/src/apps/content-updates/services/ContentUpdatesDataService.d.ts +0 -18
  552. package/dist/projects/library-editor/src/apps/content-updates/services/index.d.ts +0 -1
  553. package/dist/projects/library-editor/src/apps/content-updates/utils/Constants.d.ts +0 -33
  554. package/dist/projects/library-editor/src/apps/content-updates/utils/ContentUpdatesHelper.d.ts +0 -7
  555. package/dist/projects/library-editor/src/apps/content-updates/utils/PastReleasesHelper.d.ts +0 -3
  556. package/dist/projects/library-editor/src/apps/content-updates/utils/index.d.ts +0 -3
  557. package/dist/projects/library-editor/src/apps/content-updates/views/add-to-library/AddToLibraryView.d.ts +0 -47
  558. package/dist/projects/library-editor/src/apps/content-updates/views/awaiting-review/AwaitingReviewView.d.ts +0 -36
  559. package/dist/projects/library-editor/src/apps/content-updates/views/disable-review/DisableReviewView.d.ts +0 -26
  560. package/dist/projects/library-editor/src/apps/content-updates/views/generate-past-releases-pdf/GeneratePastReleasesPdfView.d.ts +0 -41
  561. package/dist/projects/library-editor/src/apps/content-updates/views/past-releases/PastReleasesView.d.ts +0 -55
  562. package/dist/projects/library-editor/src/apps/dashboard/DashboardApplication.d.ts +0 -9
  563. package/dist/projects/library-editor/src/apps/dashboard/components/dashboard-action-tile/DashboardActionTileComponent.d.ts +0 -20
  564. package/dist/projects/library-editor/src/apps/dashboard/components/dashboard-info-tile/DashboardInfoTileComponent.d.ts +0 -7
  565. package/dist/projects/library-editor/src/apps/dashboard/components/dashboard-notifications/DashboardNotificationsComponents.d.ts +0 -15
  566. package/dist/projects/library-editor/src/apps/dashboard/components/dashboard-tile-container/DashboardTileContainerComponent.d.ts +0 -11
  567. package/dist/projects/library-editor/src/apps/dashboard/components/dashboard-tile-list/DashboardTileListComponent.d.ts +0 -14
  568. package/dist/projects/library-editor/src/apps/dashboard/components/index.d.ts +0 -9
  569. package/dist/projects/library-editor/src/apps/dashboard/views/DashboardView.d.ts +0 -38
  570. package/dist/projects/library-editor/src/apps/default/DefaultApplication.d.ts +0 -21
  571. package/dist/projects/library-editor/src/apps/default/views/dev-error/DevErrorView.d.ts +0 -11
  572. package/dist/projects/library-editor/src/apps/default/views/error-view/ErrorView.d.ts +0 -12
  573. package/dist/projects/library-editor/src/apps/default/views/not-found/NotFoundView.d.ts +0 -11
  574. package/dist/projects/library-editor/src/apps/index.d.ts +0 -16
  575. package/dist/projects/library-editor/src/apps/library-editor/LibraryEditorApplication.d.ts +0 -46
  576. package/dist/projects/library-editor/src/apps/library-editor/behaviors/draggable-folder/DraggableFolderBehavior.d.ts +0 -9
  577. package/dist/projects/library-editor/src/apps/library-editor/behaviors/draggable-video/DraggableVideoBehavior.d.ts +0 -24
  578. package/dist/projects/library-editor/src/apps/library-editor/behaviors/droppable/DroppableBehavior.d.ts +0 -19
  579. package/dist/projects/library-editor/src/apps/library-editor/behaviors/index.d.ts +0 -3
  580. package/dist/projects/library-editor/src/apps/library-editor/behaviors/shared/DragOptions.d.ts +0 -3
  581. package/dist/projects/library-editor/src/apps/library-editor/behaviors/shared/DraggableItemComponent.d.ts +0 -15
  582. package/dist/projects/library-editor/src/apps/library-editor/behaviors/shared/index.d.ts +0 -5
  583. package/dist/projects/library-editor/src/apps/library-editor/components/add-links/AddLinksComponent.d.ts +0 -31
  584. package/dist/projects/library-editor/src/apps/library-editor/components/banner/BannerComponent.d.ts +0 -19
  585. package/dist/projects/library-editor/src/apps/library-editor/components/chapter-form/ChapterFormComponent.d.ts +0 -66
  586. package/dist/projects/library-editor/src/apps/library-editor/components/chapter-list/ChapterComponentCollection.d.ts +0 -25
  587. package/dist/projects/library-editor/src/apps/library-editor/components/chapter-list/ChapterItemComponent.d.ts +0 -37
  588. package/dist/projects/library-editor/src/apps/library-editor/components/chapters/ChaptersComponent.d.ts +0 -21
  589. package/dist/projects/library-editor/src/apps/library-editor/components/concatenate-request/ConcatenateRequestComponent.d.ts +0 -24
  590. package/dist/projects/library-editor/src/apps/library-editor/components/customer-logo/CustomerLogoComponent.d.ts +0 -19
  591. package/dist/projects/library-editor/src/apps/library-editor/components/edit-image/EditImageComponent.d.ts +0 -28
  592. package/dist/projects/library-editor/src/apps/library-editor/components/edit-images-wrapper/EditImagesWrapperComponent.d.ts +0 -24
  593. package/dist/projects/library-editor/src/apps/library-editor/components/edit-links/LinkItemComponent.d.ts +0 -16
  594. package/dist/projects/library-editor/src/apps/library-editor/components/edit-links/VideoLinksComponent.d.ts +0 -23
  595. package/dist/projects/library-editor/src/apps/library-editor/components/edit-thumbnail/EditThumbnailComponent.d.ts +0 -22
  596. package/dist/projects/library-editor/src/apps/library-editor/components/edit-video/EditVideoDetailsComponent.d.ts +0 -48
  597. package/dist/projects/library-editor/src/apps/library-editor/components/edit-video-tabs/EditVideoTabsComponent.d.ts +0 -24
  598. package/dist/projects/library-editor/src/apps/library-editor/components/expandable-tag-list/ExpandableTagListComponent.d.ts +0 -26
  599. package/dist/projects/library-editor/src/apps/library-editor/components/file-uploads/FileUploadsComponentCollection.d.ts +0 -13
  600. package/dist/projects/library-editor/src/apps/library-editor/components/folder-actions/FolderActionsDropdownComponent.d.ts +0 -18
  601. package/dist/projects/library-editor/src/apps/library-editor/components/folder-details/FolderDetailsComponent.d.ts +0 -35
  602. package/dist/projects/library-editor/src/apps/library-editor/components/folder-select/FolderSelectComponent.d.ts +0 -41
  603. package/dist/projects/library-editor/src/apps/library-editor/components/language-select/LanguageSelectComponent.d.ts +0 -28
  604. package/dist/projects/library-editor/src/apps/library-editor/components/language-select/LanguageSelectTypeaheadHelper.d.ts +0 -6
  605. package/dist/projects/library-editor/src/apps/library-editor/components/left-nav-libraries/LeftNavLibrariesComponent.d.ts +0 -45
  606. package/dist/projects/library-editor/src/apps/library-editor/components/library-actions/LibraryActionsComponent.d.ts +0 -26
  607. package/dist/projects/library-editor/src/apps/library-editor/components/library-folders/LibraryFolderListComponent.d.ts +0 -31
  608. package/dist/projects/library-editor/src/apps/library-editor/components/library-select/LibrarySelectComponent.d.ts +0 -27
  609. package/dist/projects/library-editor/src/apps/library-editor/components/save/SaveComponent.d.ts +0 -33
  610. package/dist/projects/library-editor/src/apps/library-editor/components/sort-select/SortSelectComponent.d.ts +0 -29
  611. package/dist/projects/library-editor/src/apps/library-editor/components/sub-folders/SubFolderComponent.d.ts +0 -15
  612. package/dist/projects/library-editor/src/apps/library-editor/components/sub-folders/SubFoldersComponent.d.ts +0 -9
  613. package/dist/projects/library-editor/src/apps/library-editor/components/suggest-edit/SuggestEditComponent.d.ts +0 -31
  614. package/dist/projects/library-editor/src/apps/library-editor/components/tag-list/TagComponentCollection.d.ts +0 -21
  615. package/dist/projects/library-editor/src/apps/library-editor/components/tag-list/TagItemComponent.d.ts +0 -28
  616. package/dist/projects/library-editor/src/apps/library-editor/components/tags/TagsComponent.d.ts +0 -30
  617. package/dist/projects/library-editor/src/apps/library-editor/components/video-collection-actions/VideoCollectionActionsComponent.d.ts +0 -25
  618. package/dist/projects/library-editor/src/apps/library-editor/components/video-header/VideoHeaderComponent.d.ts +0 -23
  619. package/dist/projects/library-editor/src/apps/library-editor/components/video-list-header/VideoListHeaderComponent.d.ts +0 -34
  620. package/dist/projects/library-editor/src/apps/library-editor/components/video-resources/VideoResourcesComponent.d.ts +0 -46
  621. package/dist/projects/library-editor/src/apps/library-editor/components/video-sidebar-info/VideoSidebarInfoComponent.d.ts +0 -26
  622. package/dist/projects/library-editor/src/apps/library-editor/components/video-subtitles/VideoSubtitlesComponent.d.ts +0 -29
  623. package/dist/projects/library-editor/src/apps/library-editor/constants/CheckboxTypes.d.ts +0 -5
  624. package/dist/projects/library-editor/src/apps/library-editor/constants/EditVideoBackButtonBlacklist.d.ts +0 -1
  625. package/dist/projects/library-editor/src/apps/library-editor/constants/EditVideoBackButtonKey.d.ts +0 -1
  626. package/dist/projects/library-editor/src/apps/library-editor/constants/LibraryEditorActions.d.ts +0 -18
  627. package/dist/projects/library-editor/src/apps/library-editor/constants/LibraryEditorRadioChannels.d.ts +0 -3
  628. package/dist/projects/library-editor/src/apps/library-editor/constants/MetadataTypes.d.ts +0 -32
  629. package/dist/projects/library-editor/src/apps/library-editor/constants/VideoCollectionTypes.d.ts +0 -3
  630. package/dist/projects/library-editor/src/apps/library-editor/constants/index.d.ts +0 -7
  631. package/dist/projects/library-editor/src/apps/library-editor/enums/MediaConcatenateStatus.d.ts +0 -8
  632. package/dist/projects/library-editor/src/apps/library-editor/enums/TagBehavior.d.ts +0 -6
  633. package/dist/projects/library-editor/src/apps/library-editor/enums/TagOrientation.d.ts +0 -4
  634. package/dist/projects/library-editor/src/apps/library-editor/enums/VideoCollectionSource.d.ts +0 -4
  635. package/dist/projects/library-editor/src/apps/library-editor/enums/index.d.ts +0 -4
  636. package/dist/projects/library-editor/src/apps/library-editor/errors/folder-empty/FolderEmptyError.d.ts +0 -8
  637. package/dist/projects/library-editor/src/apps/library-editor/errors/folder-max-depth/FolderMaxDepthError.d.ts +0 -7
  638. package/dist/projects/library-editor/src/apps/library-editor/errors/folder-not-empty/FolderNotEmptyError.d.ts +0 -7
  639. package/dist/projects/library-editor/src/apps/library-editor/errors/folder-not-found/FolderNotFound.d.ts +0 -6
  640. package/dist/projects/library-editor/src/apps/library-editor/errors/forbidden-folder/ForbiddenFolderError.d.ts +0 -6
  641. package/dist/projects/library-editor/src/apps/library-editor/errors/forbidden-video/ForbiddenVideoError.d.ts +0 -6
  642. package/dist/projects/library-editor/src/apps/library-editor/errors/image-dimensions-too-small/ImageDimensionsTooSmallError.d.ts +0 -9
  643. package/dist/projects/library-editor/src/apps/library-editor/errors/index.d.ts +0 -13
  644. package/dist/projects/library-editor/src/apps/library-editor/errors/library-has-subscribers/LibraryHasSubscribersError.d.ts +0 -7
  645. package/dist/projects/library-editor/src/apps/library-editor/errors/library-not-empty/LibraryNotEmptyError.d.ts +0 -7
  646. package/dist/projects/library-editor/src/apps/library-editor/errors/max-custom-libraries/MaxCustomLibrariesError.d.ts +0 -9
  647. package/dist/projects/library-editor/src/apps/library-editor/errors/series-not-found/SeriesNotFoundError.d.ts +0 -6
  648. package/dist/projects/library-editor/src/apps/library-editor/errors/video-not-found/VideoNotFoundError.d.ts +0 -6
  649. package/dist/projects/library-editor/src/apps/library-editor/errors/video-write-permission/VideoWritePermissionError.d.ts +0 -6
  650. package/dist/projects/library-editor/src/apps/library-editor/models/ChapterConcatenateRequest.d.ts +0 -3
  651. package/dist/projects/library-editor/src/apps/library-editor/models/index.d.ts +0 -1
  652. package/dist/projects/library-editor/src/apps/library-editor/services/ChapterDataService.d.ts +0 -15
  653. package/dist/projects/library-editor/src/apps/library-editor/services/CompanyDataService.d.ts +0 -7
  654. package/dist/projects/library-editor/src/apps/library-editor/services/ExportDataService.d.ts +0 -11
  655. package/dist/projects/library-editor/src/apps/library-editor/services/FieldsDataService.d.ts +0 -12
  656. package/dist/projects/library-editor/src/apps/library-editor/services/FolderDragDropService.d.ts +0 -27
  657. package/dist/projects/library-editor/src/apps/library-editor/services/LibraryDataService.d.ts +0 -65
  658. package/dist/projects/library-editor/src/apps/library-editor/services/LinkDataService.d.ts +0 -14
  659. package/dist/projects/library-editor/src/apps/library-editor/services/PersonDataService.d.ts +0 -7
  660. package/dist/projects/library-editor/src/apps/library-editor/services/RatingsDataService.d.ts +0 -7
  661. package/dist/projects/library-editor/src/apps/library-editor/services/ResourceDataService.d.ts +0 -13
  662. package/dist/projects/library-editor/src/apps/library-editor/services/SeriesDataService.d.ts +0 -16
  663. package/dist/projects/library-editor/src/apps/library-editor/services/SubtitleDataService.d.ts +0 -11
  664. package/dist/projects/library-editor/src/apps/library-editor/services/TagDataService.d.ts +0 -9
  665. package/dist/projects/library-editor/src/apps/library-editor/services/VideoDataService.d.ts +0 -45
  666. package/dist/projects/library-editor/src/apps/library-editor/services/VideoDragDropService.d.ts +0 -26
  667. package/dist/projects/library-editor/src/apps/library-editor/utils/AddToLibraryCacheHelper.d.ts +0 -4
  668. package/dist/projects/library-editor/src/apps/library-editor/utils/ChapterHelper.d.ts +0 -18
  669. package/dist/projects/library-editor/src/apps/library-editor/utils/DownloadHelper.d.ts +0 -3
  670. package/dist/projects/library-editor/src/apps/library-editor/utils/EditVideoHelpers.d.ts +0 -93
  671. package/dist/projects/library-editor/src/apps/library-editor/utils/FolderValidation.d.ts +0 -2
  672. package/dist/projects/library-editor/src/apps/library-editor/utils/LanguageValidation.d.ts +0 -2
  673. package/dist/projects/library-editor/src/apps/library-editor/utils/LibraryValidation.d.ts +0 -2
  674. package/dist/projects/library-editor/src/apps/library-editor/utils/UploadVideoValidation.d.ts +0 -2
  675. package/dist/projects/library-editor/src/apps/library-editor/utils/VideoDetailsHelper.d.ts +0 -17
  676. package/dist/projects/library-editor/src/apps/library-editor/utils/index.d.ts +0 -8
  677. package/dist/projects/library-editor/src/apps/library-editor/views/add-to-exchange/AddToExchangeView.d.ts +0 -34
  678. package/dist/projects/library-editor/src/apps/library-editor/views/banner-upload/BannerUploadView.d.ts +0 -32
  679. package/dist/projects/library-editor/src/apps/library-editor/views/delete-folder/DeleteFolderView.d.ts +0 -28
  680. package/dist/projects/library-editor/src/apps/library-editor/views/delete-library/DeleteLibraryView.d.ts +0 -23
  681. package/dist/projects/library-editor/src/apps/library-editor/views/delete-videos/DeleteVideosView.d.ts +0 -29
  682. package/dist/projects/library-editor/src/apps/library-editor/views/edit-chapters/EditChaptersView.d.ts +0 -71
  683. package/dist/projects/library-editor/src/apps/library-editor/views/edit-folder-images/EditFolderImagesView.d.ts +0 -51
  684. package/dist/projects/library-editor/src/apps/library-editor/views/edit-library/RenameLibraryView.d.ts +0 -29
  685. package/dist/projects/library-editor/src/apps/library-editor/views/edit-link/EditLinkView.d.ts +0 -30
  686. package/dist/projects/library-editor/src/apps/library-editor/views/edit-resource/EditResourceView.d.ts +0 -34
  687. package/dist/projects/library-editor/src/apps/library-editor/views/edit-resources/EditResourcesView.d.ts +0 -92
  688. package/dist/projects/library-editor/src/apps/library-editor/views/edit-video/EditVideoView.d.ts +0 -125
  689. package/dist/projects/library-editor/src/apps/library-editor/views/generate-pdf/GeneratePdfView.d.ts +0 -35
  690. package/dist/projects/library-editor/src/apps/library-editor/views/left-navigation/LeftNavigationView.d.ts +0 -33
  691. package/dist/projects/library-editor/src/apps/library-editor/views/library/LibraryView.d.ts +0 -31
  692. package/dist/projects/library-editor/src/apps/library-editor/views/move-folder/MoveFolderView.d.ts +0 -44
  693. package/dist/projects/library-editor/src/apps/library-editor/views/move-video/MoveVideoView.d.ts +0 -50
  694. package/dist/projects/library-editor/src/apps/library-editor/views/new-folder/NewFolderView.d.ts +0 -44
  695. package/dist/projects/library-editor/src/apps/library-editor/views/new-library/NewLibraryView.d.ts +0 -26
  696. package/dist/projects/library-editor/src/apps/library-editor/views/no-library/NoLibraryView.d.ts +0 -10
  697. package/dist/projects/library-editor/src/apps/library-editor/views/publish-library/PublishLibraryView.d.ts +0 -19
  698. package/dist/projects/library-editor/src/apps/library-editor/views/rename-folder/RenameFolderView.d.ts +0 -39
  699. package/dist/projects/library-editor/src/apps/library-editor/views/suggest-an-edit/SuggestAnEditView.d.ts +0 -58
  700. package/dist/projects/library-editor/src/apps/library-editor/views/thumbnail-upload/ThumbnailUploadView.d.ts +0 -34
  701. package/dist/projects/library-editor/src/apps/library-editor/views/video-collection/VideoCollectionView.d.ts +0 -105
  702. package/dist/projects/library-editor/src/apps/library-editor/views/video-details/VideoDetailsView.d.ts +0 -46
  703. package/dist/projects/library-editor/src/apps/migration-wizard/MigrationWizardApplication.d.ts +0 -45
  704. package/dist/projects/library-editor/src/apps/migration-wizard/collections/HomeFolderCollection.d.ts +0 -6
  705. package/dist/projects/library-editor/src/apps/migration-wizard/collections/SmartSelectVideoCollection.d.ts +0 -5
  706. package/dist/projects/library-editor/src/apps/migration-wizard/collections/index.d.ts +0 -1
  707. package/dist/projects/library-editor/src/apps/migration-wizard/components/banner/BannerComponent.d.ts +0 -18
  708. package/dist/projects/library-editor/src/apps/migration-wizard/components/empty-video-list/EmptyVideoListComponent.d.ts +0 -14
  709. package/dist/projects/library-editor/src/apps/migration-wizard/components/errored-video-actions/ErroredVideoActionsComponent.d.ts +0 -22
  710. package/dist/projects/library-editor/src/apps/migration-wizard/components/errored-video-footer/ErroredVideoFooterComponent.d.ts +0 -21
  711. package/dist/projects/library-editor/src/apps/migration-wizard/components/errored-video-item/ErroredVideoItemComponent.d.ts +0 -30
  712. package/dist/projects/library-editor/src/apps/migration-wizard/components/errored-video-list/ErroredVideoListComponent.d.ts +0 -12
  713. package/dist/projects/library-editor/src/apps/migration-wizard/components/errored-video-metadata/ErroredVideoMetadataComponent.d.ts +0 -8
  714. package/dist/projects/library-editor/src/apps/migration-wizard/components/errored-video-preview/ErroredVideoPreviewComponent.d.ts +0 -17
  715. package/dist/projects/library-editor/src/apps/migration-wizard/components/generate-report/GenerateReportComponent.d.ts +0 -25
  716. package/dist/projects/library-editor/src/apps/migration-wizard/components/generate-report-button/GenerateReportButtonComponent.d.ts +0 -10
  717. package/dist/projects/library-editor/src/apps/migration-wizard/components/index.d.ts +0 -13
  718. package/dist/projects/library-editor/src/apps/migration-wizard/components/migration-video-item/MigrationVideoItemComponent.d.ts +0 -30
  719. package/dist/projects/library-editor/src/apps/migration-wizard/components/progress-bar/ProgressBarComponent.d.ts +0 -19
  720. package/dist/projects/library-editor/src/apps/migration-wizard/components/progress-circle/ProgressCircleComponent.d.ts +0 -20
  721. package/dist/projects/library-editor/src/apps/migration-wizard/components/search-bar/SearchBarComponent.d.ts +0 -19
  722. package/dist/projects/library-editor/src/apps/migration-wizard/components/selected-video-item/SelectedVideoItemComponent.d.ts +0 -9
  723. package/dist/projects/library-editor/src/apps/migration-wizard/components/sorting-row/SortingRowComponent.d.ts +0 -35
  724. package/dist/projects/library-editor/src/apps/migration-wizard/components/status-bar/StatusBarComponent.d.ts +0 -28
  725. package/dist/projects/library-editor/src/apps/migration-wizard/components/video-list/VideoListCollection.d.ts +0 -36
  726. package/dist/projects/library-editor/src/apps/migration-wizard/components/video-list-collection/VideoListCollectionComponent.d.ts +0 -16
  727. package/dist/projects/library-editor/src/apps/migration-wizard/contants/MigrationErrorActions.d.ts +0 -4
  728. package/dist/projects/library-editor/src/apps/migration-wizard/contants/MigrationViewModels.d.ts +0 -4
  729. package/dist/projects/library-editor/src/apps/migration-wizard/enums/CloudSyncStatus.d.ts +0 -12
  730. package/dist/projects/library-editor/src/apps/migration-wizard/enums/FinalisationTaskStatus.d.ts +0 -5
  731. package/dist/projects/library-editor/src/apps/migration-wizard/enums/FinalisationType.d.ts +0 -6
  732. package/dist/projects/library-editor/src/apps/migration-wizard/enums/LocalOption.d.ts +0 -4
  733. package/dist/projects/library-editor/src/apps/migration-wizard/enums/MigrationOption.d.ts +0 -7
  734. package/dist/projects/library-editor/src/apps/migration-wizard/enums/MigrationReportType.d.ts +0 -6
  735. package/dist/projects/library-editor/src/apps/migration-wizard/enums/SortField.d.ts +0 -5
  736. package/dist/projects/library-editor/src/apps/migration-wizard/enums/ValidationResult.d.ts +0 -32
  737. package/dist/projects/library-editor/src/apps/migration-wizard/enums/ValidationResultErrorType.d.ts +0 -5
  738. package/dist/projects/library-editor/src/apps/migration-wizard/enums/VideoMigrationStatus.d.ts +0 -5
  739. package/dist/projects/library-editor/src/apps/migration-wizard/enums/index.d.ts +0 -7
  740. package/dist/projects/library-editor/src/apps/migration-wizard/errors/already-migrated/AlreadyMigratedError.d.ts +0 -6
  741. package/dist/projects/library-editor/src/apps/migration-wizard/errors/backup-progress/BackupProgressError.d.ts +0 -8
  742. package/dist/projects/library-editor/src/apps/migration-wizard/errors/index.d.ts +0 -6
  743. package/dist/projects/library-editor/src/apps/migration-wizard/errors/migration-finalisation/MigrationFinalisationError.d.ts +0 -8
  744. package/dist/projects/library-editor/src/apps/migration-wizard/errors/migration-progress/MigrationProgressError.d.ts +0 -8
  745. package/dist/projects/library-editor/src/apps/migration-wizard/errors/smart-migration-api-call/SmartMigrationApiCallError.d.ts +0 -9
  746. package/dist/projects/library-editor/src/apps/migration-wizard/filters/MigrationFilters.d.ts +0 -8
  747. package/dist/projects/library-editor/src/apps/migration-wizard/filters/index.d.ts +0 -1
  748. package/dist/projects/library-editor/src/apps/migration-wizard/interfaces/SelectedVideos.d.ts +0 -7
  749. package/dist/projects/library-editor/src/apps/migration-wizard/models/BackupToolBuild.d.ts +0 -3
  750. package/dist/projects/library-editor/src/apps/migration-wizard/models/CustomerMetadata.d.ts +0 -9
  751. package/dist/projects/library-editor/src/apps/migration-wizard/models/FinalisationTask.d.ts +0 -3
  752. package/dist/projects/library-editor/src/apps/migration-wizard/models/HomeFolder.d.ts +0 -8
  753. package/dist/projects/library-editor/src/apps/migration-wizard/models/MigrationOptions.d.ts +0 -3
  754. package/dist/projects/library-editor/src/apps/migration-wizard/models/SelectedVideo.d.ts +0 -3
  755. package/dist/projects/library-editor/src/apps/migration-wizard/models/SmartSelectVideo.d.ts +0 -4
  756. package/dist/projects/library-editor/src/apps/migration-wizard/models/VideoCount.d.ts +0 -3
  757. package/dist/projects/library-editor/src/apps/migration-wizard/models/index.d.ts +0 -8
  758. package/dist/projects/library-editor/src/apps/migration-wizard/services/FolderCacheService.d.ts +0 -22
  759. package/dist/projects/library-editor/src/apps/migration-wizard/services/LocalOptionsService.d.ts +0 -10
  760. package/dist/projects/library-editor/src/apps/migration-wizard/services/MigrationVideoDataService.d.ts +0 -56
  761. package/dist/projects/library-editor/src/apps/migration-wizard/services/SelectedVideoService.d.ts +0 -19
  762. package/dist/projects/library-editor/src/apps/migration-wizard/utils/FolderHelper.d.ts +0 -8
  763. package/dist/projects/library-editor/src/apps/migration-wizard/utils/KeyContactHelper.d.ts +0 -6
  764. package/dist/projects/library-editor/src/apps/migration-wizard/utils/MigrationErrorHelper.d.ts +0 -3
  765. package/dist/projects/library-editor/src/apps/migration-wizard/utils/MigrationHelper.d.ts +0 -41
  766. package/dist/projects/library-editor/src/apps/migration-wizard/utils/MigrationRadioChannels.d.ts +0 -4
  767. package/dist/projects/library-editor/src/apps/migration-wizard/utils/MigrationWarningsSvgs.d.ts +0 -3
  768. package/dist/projects/library-editor/src/apps/migration-wizard/utils/ReportHelper.d.ts +0 -9
  769. package/dist/projects/library-editor/src/apps/migration-wizard/utils/VideoHelper.d.ts +0 -29
  770. package/dist/projects/library-editor/src/apps/migration-wizard/views/current-section-header/CurrentSectionHeaderView.d.ts +0 -28
  771. package/dist/projects/library-editor/src/apps/migration-wizard/views/generate-csv-report/GenerateCsvReportView.d.ts +0 -27
  772. package/dist/projects/library-editor/src/apps/migration-wizard/views/migration-error/MigrationErrorView.d.ts +0 -40
  773. package/dist/projects/library-editor/src/apps/migration-wizard/views/migration-progress/MigrationProgressView.d.ts +0 -32
  774. package/dist/projects/library-editor/src/apps/migration-wizard/views/publish-library-banner/PublishLibraryBannerView.d.ts +0 -30
  775. package/dist/projects/library-editor/src/apps/migration-wizard/views/publish-library-complete/PublishLibraryCompleteView.d.ts +0 -15
  776. package/dist/projects/library-editor/src/apps/migration-wizard/views/publish-library-progress/PublishLibraryProgressView.d.ts +0 -18
  777. package/dist/projects/library-editor/src/apps/migration-wizard/views/publisher-backup/PublisherBackupView.d.ts +0 -19
  778. package/dist/projects/library-editor/src/apps/migration-wizard/views/publisher-backup-complete/PublisherBackupCompleteView.d.ts +0 -23
  779. package/dist/projects/library-editor/src/apps/migration-wizard/views/publisher-backup-progress/PublisherBackupProgressView.d.ts +0 -23
  780. package/dist/projects/library-editor/src/apps/migration-wizard/views/publisher-backup-welcome/PublisherBackupWelcomeView.d.ts +0 -19
  781. package/dist/projects/library-editor/src/apps/migration-wizard/views/remigrate-video/RemigrateVideoView.d.ts +0 -32
  782. package/dist/projects/library-editor/src/apps/migration-wizard/views/selected-videos/SelectedVideosView.d.ts +0 -32
  783. package/dist/projects/library-editor/src/apps/migration-wizard/views/show-video-popup/ShowPublisherVideoPopupView.d.ts +0 -26
  784. package/dist/projects/library-editor/src/apps/migration-wizard/views/smart-migration/SmartMigrationView.d.ts +0 -58
  785. package/dist/projects/library-editor/src/apps/migration-wizard/views/start/StartView.d.ts +0 -40
  786. package/dist/projects/library-editor/src/apps/migration-wizard/views/videos-added/VideosAddedView.d.ts +0 -24
  787. package/dist/projects/library-editor/src/apps/notifications/NotificationsApplication.d.ts +0 -11
  788. package/dist/projects/library-editor/src/apps/notifications/constants/NotificationsAppVariables.d.ts +0 -8
  789. package/dist/projects/library-editor/src/apps/notifications/constants/index.d.ts +0 -0
  790. package/dist/projects/library-editor/src/apps/notifications/utils/Constants.d.ts +0 -3
  791. package/dist/projects/library-editor/src/apps/notifications/utils/NotificationsHelper.d.ts +0 -10
  792. package/dist/projects/library-editor/src/apps/notifications/utils/index.d.ts +0 -2
  793. package/dist/projects/library-editor/src/apps/search/SearchApplication.d.ts +0 -16
  794. package/dist/projects/library-editor/src/apps/search/collections/FilterCollection.d.ts +0 -9
  795. package/dist/projects/library-editor/src/apps/search/collections/OptionCollection.d.ts +0 -5
  796. package/dist/projects/library-editor/src/apps/search/collections/index.d.ts +0 -2
  797. package/dist/projects/library-editor/src/apps/search/components/filters/FiltersComponent.d.ts +0 -27
  798. package/dist/projects/library-editor/src/apps/search/components/filters/filter-button-list/FilterButtonItemComponent.d.ts +0 -37
  799. package/dist/projects/library-editor/src/apps/search/components/filters/filter-button-list/FilterButtonListComponent.d.ts +0 -19
  800. package/dist/projects/library-editor/src/apps/search/components/filters/filter-button-list/index.d.ts +0 -2
  801. package/dist/projects/library-editor/src/apps/search/components/filters/filter-list/FilterItemComponent.d.ts +0 -17
  802. package/dist/projects/library-editor/src/apps/search/components/filters/filter-list/FilterListComponent.d.ts +0 -24
  803. package/dist/projects/library-editor/src/apps/search/components/filters/filter-options/FilterOptionsComponent.d.ts +0 -34
  804. package/dist/projects/library-editor/src/apps/search/components/filters/filter-options/bool-filter-options/BoolFilterOptionsComponent.d.ts +0 -15
  805. package/dist/projects/library-editor/src/apps/search/components/filters/filter-options/duration-filter-options/DurationFilterOptionListComponent.d.ts +0 -27
  806. package/dist/projects/library-editor/src/apps/search/components/filters/filter-options/filter-option-list/FilterOptionItemComponent.d.ts +0 -19
  807. package/dist/projects/library-editor/src/apps/search/components/filters/filter-options/filter-option-list/FilterOptionsListComponent.d.ts +0 -21
  808. package/dist/projects/library-editor/src/apps/search/components/filters/filter-options/index.d.ts +0 -7
  809. package/dist/projects/library-editor/src/apps/search/components/filters/filter-options/range-filter-options/RangeFilterOptionListComponent.d.ts +0 -23
  810. package/dist/projects/library-editor/src/apps/search/components/filters/filter-options/tag-filter-options/TagFilterOptionsComponent.d.ts +0 -27
  811. package/dist/projects/library-editor/src/apps/search/components/filters/filter-options/tag-filter-options/TagFilterOptionsListComponent.d.ts +0 -19
  812. package/dist/projects/library-editor/src/apps/search/components/filters/index.d.ts +0 -3
  813. package/dist/projects/library-editor/src/apps/search/components/filters/more-filters-button/MoreFiltersButtonComponent.d.ts +0 -42
  814. package/dist/projects/library-editor/src/apps/search/components/results/SearchResultsComponent.d.ts +0 -22
  815. package/dist/projects/library-editor/src/apps/search/components/search-header/SearchHeaderComponent.d.ts +0 -11
  816. package/dist/projects/library-editor/src/apps/search/constants/SearchRadioChannels.d.ts +0 -3
  817. package/dist/projects/library-editor/src/apps/search/constants/index.d.ts +0 -1
  818. package/dist/projects/library-editor/src/apps/search/models/Filter.d.ts +0 -8
  819. package/dist/projects/library-editor/src/apps/search/models/Option.d.ts +0 -4
  820. package/dist/projects/library-editor/src/apps/search/models/Query.d.ts +0 -3
  821. package/dist/projects/library-editor/src/apps/search/models/SearchAppVariables.d.ts +0 -7
  822. package/dist/projects/library-editor/src/apps/search/models/index.d.ts +0 -3
  823. package/dist/projects/library-editor/src/apps/search/services/SearchDataService.d.ts +0 -12
  824. package/dist/projects/library-editor/src/apps/search/services/index.d.ts +0 -1
  825. package/dist/projects/library-editor/src/apps/search/utils/Constants.d.ts +0 -28
  826. package/dist/projects/library-editor/src/apps/search/utils/Enums.d.ts +0 -23
  827. package/dist/projects/library-editor/src/apps/search/utils/FilterHelper.d.ts +0 -2
  828. package/dist/projects/library-editor/src/apps/search/utils/FilterLabelGenerators.d.ts +0 -2
  829. package/dist/projects/library-editor/src/apps/search/utils/FilterQueryGenerators.d.ts +0 -2
  830. package/dist/projects/library-editor/src/apps/search/utils/FilterRouteQueryParamGenerators.d.ts +0 -2
  831. package/dist/projects/library-editor/src/apps/search/utils/SearchHelper.d.ts +0 -11
  832. package/dist/projects/library-editor/src/apps/search/utils/index.d.ts +0 -4
  833. package/dist/projects/library-editor/src/apps/search/views/search/SearchView.d.ts +0 -57
  834. package/dist/projects/library-editor/src/apps/staff-requests/StaffRequestsApplication.d.ts +0 -15
  835. package/dist/projects/library-editor/src/apps/staff-requests/collections/StaffRequestCollection.d.ts +0 -5
  836. package/dist/projects/library-editor/src/apps/staff-requests/collections/StaffRequestMessageCollection.d.ts +0 -5
  837. package/dist/projects/library-editor/src/apps/staff-requests/collections/index.d.ts +0 -2
  838. package/dist/projects/library-editor/src/apps/staff-requests/components/staff-request-actions/StaffRequestActionsComponent.d.ts +0 -42
  839. package/dist/projects/library-editor/src/apps/staff-requests/components/staff-request-details/StaffRequestDetailsComponent.d.ts +0 -30
  840. package/dist/projects/library-editor/src/apps/staff-requests/components/staff-request-list/StaffRequestListComponent.d.ts +0 -29
  841. package/dist/projects/library-editor/src/apps/staff-requests/enums/StaffRequestStatus.d.ts +0 -5
  842. package/dist/projects/library-editor/src/apps/staff-requests/enums/index.d.ts +0 -1
  843. package/dist/projects/library-editor/src/apps/staff-requests/models/StaffRequest.d.ts +0 -18
  844. package/dist/projects/library-editor/src/apps/staff-requests/models/StaffRequestMessage.d.ts +0 -7
  845. package/dist/projects/library-editor/src/apps/staff-requests/models/index.d.ts +0 -2
  846. package/dist/projects/library-editor/src/apps/staff-requests/services/StaffRequestDataService.d.ts +0 -14
  847. package/dist/projects/library-editor/src/apps/staff-requests/services/index.d.ts +0 -1
  848. package/dist/projects/library-editor/src/apps/staff-requests/utils/StaffRequestApprovalValidation.d.ts +0 -2
  849. package/dist/projects/library-editor/src/apps/staff-requests/utils/StaffRequestRejectionValidation.d.ts +0 -2
  850. package/dist/projects/library-editor/src/apps/staff-requests/utils/index.d.ts +0 -2
  851. package/dist/projects/library-editor/src/apps/staff-requests/views/approve-staff-request/ApproveStaffRequestView.d.ts +0 -34
  852. package/dist/projects/library-editor/src/apps/staff-requests/views/reject-staff-request/RejectStaffRequestView.d.ts +0 -34
  853. package/dist/projects/library-editor/src/apps/staff-requests/views/staff-requests/StaffRequestsView.d.ts +0 -44
  854. package/dist/projects/library-editor/src/apps/upload/UploadApplication.d.ts +0 -23
  855. package/dist/projects/library-editor/src/apps/upload/components/index.d.ts +0 -7
  856. package/dist/projects/library-editor/src/apps/upload/components/processing-progress/ProcessProgressComponentCollection.d.ts +0 -38
  857. package/dist/projects/library-editor/src/apps/upload/components/progress-info/ProgressInfoComponent.d.ts +0 -10
  858. package/dist/projects/library-editor/src/apps/upload/components/upload-actions/UploadActionsComponent.d.ts +0 -21
  859. package/dist/projects/library-editor/src/apps/upload/components/upload-folder-select/UploadFolderSelectComponent.d.ts +0 -35
  860. package/dist/projects/library-editor/src/apps/upload/components/upload-progress/UploadProgressComponent.d.ts +0 -10
  861. package/dist/projects/library-editor/src/apps/upload/components/upload-video/UploadVideoComponent.d.ts +0 -48
  862. package/dist/projects/library-editor/src/apps/upload/components/upload-video/UploadVideoComponentCollection.d.ts +0 -20
  863. package/dist/projects/library-editor/src/apps/upload/components/upload-video-options/UploadVideoOptionsComponent.d.ts +0 -18
  864. package/dist/projects/library-editor/src/apps/upload/errors/index.d.ts +0 -1
  865. package/dist/projects/library-editor/src/apps/upload/errors/no-libraries-upload/NoLibrariesUploadError.d.ts +0 -7
  866. package/dist/projects/library-editor/src/apps/upload/services/ImageUploadDataService.d.ts +0 -8
  867. package/dist/projects/library-editor/src/apps/upload/services/PendingItemsService.d.ts +0 -7
  868. package/dist/projects/library-editor/src/apps/upload/services/VideoUploadDataService.d.ts +0 -17
  869. package/dist/projects/library-editor/src/apps/upload/services/VideoUploadService.d.ts +0 -8
  870. package/dist/projects/library-editor/src/apps/upload/services/index.d.ts +0 -5
  871. package/dist/projects/library-editor/src/apps/upload/views/file-select/FileSelectView.d.ts +0 -25
  872. package/dist/projects/library-editor/src/apps/upload/views/progress-summary/ProgressSummaryView.d.ts +0 -18
  873. package/dist/projects/library-editor/src/apps/upload/views/upload-button/UploadButtonView.d.ts +0 -26
  874. package/dist/projects/library-editor/src/apps/upload/views/upload-complete/UploadCompleteView.d.ts +0 -14
  875. package/dist/projects/library-editor/src/apps/upload/views/upload-videos/UploadVideosView.d.ts +0 -64
  876. package/dist/projects/library-editor/src/apps/video-access/VideoAccessApplication.d.ts +0 -12
  877. package/dist/projects/library-editor/src/apps/video-access/views/restricted-video-list/RestrictedVideoListView.d.ts +0 -34
  878. package/dist/projects/library-editor/src/polyfills.d.ts +0 -2
  879. package/dist/projects/library-editor/src/shared/alerts/VideoAlerts.d.ts +0 -9
  880. package/dist/projects/library-editor/src/shared/alerts/index.d.ts +0 -1
  881. package/dist/projects/library-editor/src/shared/behaviors/backbone-validation/BackboneValidationBehavior.d.ts +0 -14
  882. package/dist/projects/library-editor/src/shared/behaviors/image-select-behavior/ImageSelectBehavior.d.ts +0 -23
  883. package/dist/projects/library-editor/src/shared/behaviors/index.d.ts +0 -6
  884. package/dist/projects/library-editor/src/shared/behaviors/lazy-load/LazyLoadBehavior.d.ts +0 -31
  885. package/dist/projects/library-editor/src/shared/behaviors/lock-layout-file-drop/LockLayoutFileDropBehavior.d.ts +0 -7
  886. package/dist/projects/library-editor/src/shared/behaviors/popup/PopupBehavior.d.ts +0 -65
  887. package/dist/projects/library-editor/src/shared/behaviors/stickit/StickitBehavior.d.ts +0 -6
  888. package/dist/projects/library-editor/src/shared/collections/ChannelCollection.d.ts +0 -6
  889. package/dist/projects/library-editor/src/shared/collections/ChapterCollection.d.ts +0 -7
  890. package/dist/projects/library-editor/src/shared/collections/DirectorCollection.d.ts +0 -6
  891. package/dist/projects/library-editor/src/shared/collections/DistributorCollection.d.ts +0 -6
  892. package/dist/projects/library-editor/src/shared/collections/FieldsCollection.d.ts +0 -5
  893. package/dist/projects/library-editor/src/shared/collections/FolderCollection.d.ts +0 -7
  894. package/dist/projects/library-editor/src/shared/collections/InteractivesCollection.d.ts +0 -6
  895. package/dist/projects/library-editor/src/shared/collections/LibraryCollection.d.ts +0 -7
  896. package/dist/projects/library-editor/src/shared/collections/LinkCollection.d.ts +0 -6
  897. package/dist/projects/library-editor/src/shared/collections/LocalCacheDeviceCollection.d.ts +0 -5
  898. package/dist/projects/library-editor/src/shared/collections/LocalCacheDownloadCollection.d.ts +0 -5
  899. package/dist/projects/library-editor/src/shared/collections/MetadataCollection.d.ts +0 -4
  900. package/dist/projects/library-editor/src/shared/collections/ProducerCollection.d.ts +0 -6
  901. package/dist/projects/library-editor/src/shared/collections/ProductionCompanyCollection.d.ts +0 -6
  902. package/dist/projects/library-editor/src/shared/collections/RatingCollection.d.ts +0 -4
  903. package/dist/projects/library-editor/src/shared/collections/ResourceCollection.d.ts +0 -6
  904. package/dist/projects/library-editor/src/shared/collections/RestrictedObjectCollection.d.ts +0 -5
  905. package/dist/projects/library-editor/src/shared/collections/RestrictionCollection.d.ts +0 -5
  906. package/dist/projects/library-editor/src/shared/collections/SeasonCollection.d.ts +0 -6
  907. package/dist/projects/library-editor/src/shared/collections/SettingsCollection.d.ts +0 -5
  908. package/dist/projects/library-editor/src/shared/collections/SubtitleCollection.d.ts +0 -6
  909. package/dist/projects/library-editor/src/shared/collections/TagCollection.d.ts +0 -6
  910. package/dist/projects/library-editor/src/shared/collections/VideoCollection.d.ts +0 -6
  911. package/dist/projects/library-editor/src/shared/components/alert/AlertComponentCollection.d.ts +0 -11
  912. package/dist/projects/library-editor/src/shared/components/alert/AlertItemComponent.d.ts +0 -44
  913. package/dist/projects/library-editor/src/shared/components/breadcrumbs/BreadcrumbComponentCollection.d.ts +0 -18
  914. package/dist/projects/library-editor/src/shared/components/breadcrumbs/BreadcrumbsComponent.d.ts +0 -27
  915. package/dist/projects/library-editor/src/shared/components/bulk-video-actions/BulkVideoActionsComponent.d.ts +0 -26
  916. package/dist/projects/library-editor/src/shared/components/checkbox/BulkCheckboxComponent.d.ts +0 -27
  917. package/dist/projects/library-editor/src/shared/components/checkbox/CheckboxComponent.d.ts +0 -25
  918. package/dist/projects/library-editor/src/shared/components/clear-button/ClearButtonComponent.d.ts +0 -18
  919. package/dist/projects/library-editor/src/shared/components/date-picker/DatePickerComponent.d.ts +0 -47
  920. package/dist/projects/library-editor/src/shared/components/dialog/DialogView.d.ts +0 -22
  921. package/dist/projects/library-editor/src/shared/components/dropdown/DropdownButtonComponent.d.ts +0 -36
  922. package/dist/projects/library-editor/src/shared/components/dropdown/DropdownComponentCollection.d.ts +0 -38
  923. package/dist/projects/library-editor/src/shared/components/dropdown/DropdownItemComponent.d.ts +0 -57
  924. package/dist/projects/library-editor/src/shared/components/edit-video/edit-additional-info/EditAdditionalInfoComponent.d.ts +0 -38
  925. package/dist/projects/library-editor/src/shared/components/edit-video/edit-basic-info/EditBasicInfoComponent.d.ts +0 -32
  926. package/dist/projects/library-editor/src/shared/components/edit-video/edit-broadcast/EditBroadcastComponent.d.ts +0 -22
  927. package/dist/projects/library-editor/src/shared/components/edit-video/edit-broadcast/ToggleBroadcastComponent.d.ts +0 -24
  928. package/dist/projects/library-editor/src/shared/components/edit-video/edit-production-info/EditProductionInfoComponent.d.ts +0 -61
  929. package/dist/projects/library-editor/src/shared/components/edit-video/edit-season-info/EditSeasonInfoComponent.d.ts +0 -33
  930. package/dist/projects/library-editor/src/shared/components/edit-video/extra-info/ExtraInfoComponent.d.ts +0 -16
  931. package/dist/projects/library-editor/src/shared/components/edit-video/extra-info/ExtraInfoItemComponent.d.ts +0 -17
  932. package/dist/projects/library-editor/src/shared/components/edit-video/select-rating/SelectRatingCollectionComponent.d.ts +0 -17
  933. package/dist/projects/library-editor/src/shared/components/edit-video/select-rating/SelectRatingComponent.d.ts +0 -40
  934. package/dist/projects/library-editor/src/shared/components/edit-video/select-rating/SelectRatingItemComponent.d.ts +0 -20
  935. package/dist/projects/library-editor/src/shared/components/fields/FieldsComponent.d.ts +0 -9
  936. package/dist/projects/library-editor/src/shared/components/image-cropper/ImageCropperComponent.d.ts +0 -34
  937. package/dist/projects/library-editor/src/shared/components/left-nav/LeftNavComponent.d.ts +0 -31
  938. package/dist/projects/library-editor/src/shared/components/left-nav/LeftNavNodeComponent.d.ts +0 -48
  939. package/dist/projects/library-editor/src/shared/components/page-footer/PageFooterComponent.d.ts +0 -15
  940. package/dist/projects/library-editor/src/shared/components/page-header/PageHeaderComponent.d.ts +0 -25
  941. package/dist/projects/library-editor/src/shared/components/partial-loading/PartialLoadingComponent.d.ts +0 -16
  942. package/dist/projects/library-editor/src/shared/components/partial-loading/PartialLoadingComponentCollection.d.ts +0 -20
  943. package/dist/projects/library-editor/src/shared/components/partial-loading/index.d.ts +0 -2
  944. package/dist/projects/library-editor/src/shared/components/resizing-text-area/ResizingTextAreaComponent.d.ts +0 -23
  945. package/dist/projects/library-editor/src/shared/components/screenrights-disclaimer/ScreenrightsDisclaimerComponent.d.ts +0 -18
  946. package/dist/projects/library-editor/src/shared/components/select/SelectComponent.d.ts +0 -54
  947. package/dist/projects/library-editor/src/shared/components/spinner-button/SpinnerButtonComponent.d.ts +0 -73
  948. package/dist/projects/library-editor/src/shared/components/tabs/TabsComponent.d.ts +0 -28
  949. package/dist/projects/library-editor/src/shared/components/top-navigation/TopNavigationComponentCollection.d.ts +0 -29
  950. package/dist/projects/library-editor/src/shared/components/tree-dropdown/TreeDropdownComponent.d.ts +0 -32
  951. package/dist/projects/library-editor/src/shared/components/typeahead-input/SearchTypeaheadComponent.d.ts +0 -74
  952. package/dist/projects/library-editor/src/shared/components/typeahead-input/templates/index.d.ts +0 -4
  953. package/dist/projects/library-editor/src/shared/components/typeahead-list/TypeaheadListComponent.d.ts +0 -33
  954. package/dist/projects/library-editor/src/shared/components/user-options-dropdown/UserOptionsDropdownComponent.d.ts +0 -20
  955. package/dist/projects/library-editor/src/shared/components/video-actions/VideoActionComponentCollection.d.ts +0 -31
  956. package/dist/projects/library-editor/src/shared/components/video-actions/VideoActionsComponent.d.ts +0 -42
  957. package/dist/projects/library-editor/src/shared/components/video-basic-info/VideoBasicInfoComponent.d.ts +0 -33
  958. package/dist/projects/library-editor/src/shared/components/video-description/VideoDescriptionComponent.d.ts +0 -33
  959. package/dist/projects/library-editor/src/shared/components/video-item/VideoItemComponent.d.ts +0 -58
  960. package/dist/projects/library-editor/src/shared/components/video-item/index.d.ts +0 -4
  961. package/dist/projects/library-editor/src/shared/components/video-item/utils/VideoItemBehaviors.d.ts +0 -4
  962. package/dist/projects/library-editor/src/shared/components/video-item/utils/VideoItemComponentHelper.d.ts +0 -8
  963. package/dist/projects/library-editor/src/shared/components/video-item/utils/VideoItemComponentTypes.d.ts +0 -16
  964. package/dist/projects/library-editor/src/shared/components/video-item/utils/VideoItemComponents.d.ts +0 -7
  965. package/dist/projects/library-editor/src/shared/components/video-item/utils/index.d.ts +0 -3
  966. package/dist/projects/library-editor/src/shared/components/video-item/video-item-actions/base/VideoItemActionsComponent.d.ts +0 -23
  967. package/dist/projects/library-editor/src/shared/components/video-item/video-item-actions/index.d.ts +0 -4
  968. package/dist/projects/library-editor/src/shared/components/video-item/video-item-actions/video-item-processing-actions/VideoItemProcessingActionsComponent.d.ts +0 -25
  969. package/dist/projects/library-editor/src/shared/components/video-item/video-item-actions/video-item-review-actions/VideoItemReviewActionsComponent.d.ts +0 -26
  970. package/dist/projects/library-editor/src/shared/components/video-item/video-item-actions/video-item-video-access-actions/VideoItemVideoAccessActionsComponent.d.ts +0 -22
  971. package/dist/projects/library-editor/src/shared/components/video-item/video-item-metadata/base/VideoItemMetadataComponent.d.ts +0 -24
  972. package/dist/projects/library-editor/src/shared/components/video-item/video-item-metadata/index.d.ts +0 -9
  973. package/dist/projects/library-editor/src/shared/components/video-item/video-item-metadata/video-item-awaiting-review-metadata/VideoItemAwaitingReviewMetadataComponent.d.ts +0 -22
  974. package/dist/projects/library-editor/src/shared/components/video-item/video-item-metadata/video-item-badges/VideoItemBadgesComponent.d.ts +0 -20
  975. package/dist/projects/library-editor/src/shared/components/video-item/video-item-metadata/video-item-past-releases-metadata/VideoItemPastReleasesMetadataComponent.d.ts +0 -25
  976. package/dist/projects/library-editor/src/shared/components/video-item/video-item-metadata/video-item-processing-metadata/VideoItemProcessingMetadataComponent.d.ts +0 -19
  977. package/dist/projects/library-editor/src/shared/components/video-item/video-item-metadata/video-item-search-metadata/VideoItemSearchMetadataComponent.d.ts +0 -22
  978. package/dist/projects/library-editor/src/shared/components/video-item/video-item-metadata/video-item-series/VideoItemSeriesComponent.d.ts +0 -22
  979. package/dist/projects/library-editor/src/shared/components/video-item/video-item-metadata/video-item-video-access-metadata/VideoItemVideoAccessMetadataComponent.d.ts +0 -27
  980. package/dist/projects/library-editor/src/shared/components/video-item/video-item-metadata/video-sources-metadata/VideoSourcesMetadataComponent.d.ts +0 -22
  981. package/dist/projects/library-editor/src/shared/components/video-item-preview/VideoItemPreviewComponent.d.ts +0 -37
  982. package/dist/projects/library-editor/src/shared/components/video-list/VideoListComponent.d.ts +0 -44
  983. package/dist/projects/library-editor/src/shared/components/video-preview/VideoPreviewComponent.d.ts +0 -30
  984. package/dist/projects/library-editor/src/shared/components/web-player/WebPlayerComponent.d.ts +0 -53
  985. package/dist/projects/library-editor/src/shared/constants/Actions.d.ts +0 -99
  986. package/dist/projects/library-editor/src/shared/constants/BootstrapKeys.d.ts +0 -9
  987. package/dist/projects/library-editor/src/shared/constants/CacheDurations.d.ts +0 -4
  988. package/dist/projects/library-editor/src/shared/constants/DataPrefixes.d.ts +0 -91
  989. package/dist/projects/library-editor/src/shared/constants/DataServiceErrors.d.ts +0 -4
  990. package/dist/projects/library-editor/src/shared/constants/EventNames.d.ts +0 -16
  991. package/dist/projects/library-editor/src/shared/constants/FolderTreeIds.d.ts +0 -4
  992. package/dist/projects/library-editor/src/shared/constants/FormattedCustomerSettingNames.d.ts +0 -3
  993. package/dist/projects/library-editor/src/shared/constants/ImageSizes.d.ts +0 -11
  994. package/dist/projects/library-editor/src/shared/constants/ImageUrls.d.ts +0 -19
  995. package/dist/projects/library-editor/src/shared/constants/LayoutRegions.d.ts +0 -16
  996. package/dist/projects/library-editor/src/shared/constants/Layouts.d.ts +0 -3
  997. package/dist/projects/library-editor/src/shared/constants/LazyLoadBrowserSupport.d.ts +0 -7
  998. package/dist/projects/library-editor/src/shared/constants/MarketingSiteArticles.d.ts +0 -3
  999. package/dist/projects/library-editor/src/shared/constants/Misc.d.ts +0 -5
  1000. package/dist/projects/library-editor/src/shared/constants/OnlineUrls.d.ts +0 -4
  1001. package/dist/projects/library-editor/src/shared/constants/PartialLoadingComponents.d.ts +0 -10
  1002. package/dist/projects/library-editor/src/shared/constants/RadioChannels.d.ts +0 -62
  1003. package/dist/projects/library-editor/src/shared/constants/Search.d.ts +0 -24
  1004. package/dist/projects/library-editor/src/shared/constants/Services.d.ts +0 -62
  1005. package/dist/projects/library-editor/src/shared/constants/SupportArticles.d.ts +0 -3
  1006. package/dist/projects/library-editor/src/shared/constants/Webplayer.d.ts +0 -4
  1007. package/dist/projects/library-editor/src/shared/constants/WithStatements.d.ts +0 -9
  1008. package/dist/projects/library-editor/src/shared/constants/empty-state-components/EmptyStateComponents.d.ts +0 -6
  1009. package/dist/projects/library-editor/src/shared/constants/index.d.ts +0 -25
  1010. package/dist/projects/library-editor/src/shared/enums/CitationType.d.ts +0 -6
  1011. package/dist/projects/library-editor/src/shared/enums/CustomerRegions.d.ts +0 -5
  1012. package/dist/projects/library-editor/src/shared/enums/EmptyStates.d.ts +0 -16
  1013. package/dist/projects/library-editor/src/shared/enums/FileIdType.d.ts +0 -5
  1014. package/dist/projects/library-editor/src/shared/enums/ImageType.d.ts +0 -5
  1015. package/dist/projects/library-editor/src/shared/enums/MasterType.d.ts +0 -4
  1016. package/dist/projects/library-editor/src/shared/enums/PartialLoading.d.ts +0 -38
  1017. package/dist/projects/library-editor/src/shared/enums/RestrictedObjectType.d.ts +0 -4
  1018. package/dist/projects/library-editor/src/shared/enums/SchoolTypes.d.ts +0 -17
  1019. package/dist/projects/library-editor/src/shared/enums/SharedResourcePrivacy.d.ts +0 -5
  1020. package/dist/projects/library-editor/src/shared/enums/SortTypes.d.ts +0 -10
  1021. package/dist/projects/library-editor/src/shared/enums/StaffRequestOption.d.ts +0 -9
  1022. package/dist/projects/library-editor/src/shared/enums/TimeType.d.ts +0 -4
  1023. package/dist/projects/library-editor/src/shared/enums/UserRole.d.ts +0 -10
  1024. package/dist/projects/library-editor/src/shared/enums/YearGroups.d.ts +0 -19
  1025. package/dist/projects/library-editor/src/shared/enums/index.d.ts +0 -15
  1026. package/dist/projects/library-editor/src/shared/errors/authentication/AuthenticationError.d.ts +0 -8
  1027. package/dist/projects/library-editor/src/shared/errors/customer-setting/CustomerSettingError.d.ts +0 -8
  1028. package/dist/projects/library-editor/src/shared/errors/email-not-verified/EmailNotVerifiedError.d.ts +0 -8
  1029. package/dist/projects/library-editor/src/shared/errors/forbidden-access/ForbiddenAccessError.d.ts +0 -11
  1030. package/dist/projects/library-editor/src/shared/errors/index.d.ts +0 -8
  1031. package/dist/projects/library-editor/src/shared/errors/local-cache-device-not-found/LocalCacheDeviceNotFoundError.d.ts +0 -7
  1032. package/dist/projects/library-editor/src/shared/errors/no-beta-access/NoBetaAccessError.d.ts +0 -8
  1033. package/dist/projects/library-editor/src/shared/errors/not-found/NotFoundError.d.ts +0 -5
  1034. package/dist/projects/library-editor/src/shared/errors/old-version/OldVersionError.d.ts +0 -8
  1035. package/dist/projects/library-editor/src/shared/filters/BetaAccessFilter.d.ts +0 -3
  1036. package/dist/projects/library-editor/src/shared/filters/CustomerSettingsFilter.d.ts +0 -8
  1037. package/dist/projects/library-editor/src/shared/filters/RoleFilter.d.ts +0 -4
  1038. package/dist/projects/library-editor/src/shared/filters/VerifiedEmailFilter.d.ts +0 -3
  1039. package/dist/projects/library-editor/src/shared/filters/index.d.ts +0 -4
  1040. package/dist/projects/library-editor/src/shared/index.d.ts +0 -9
  1041. package/dist/projects/library-editor/src/shared/interfaces/LibraryFoldersIdentifier.d.ts +0 -5
  1042. package/dist/projects/library-editor/src/shared/interfaces/RecentVideoCollectionIdentifier.d.ts +0 -20
  1043. package/dist/projects/library-editor/src/shared/interfaces/RecentVideoSubjectCollectionIdentifier.d.ts +0 -16
  1044. package/dist/projects/library-editor/src/shared/interfaces/VideoCollectionIdentifier.d.ts +0 -5
  1045. package/dist/projects/library-editor/src/shared/interfaces/index.d.ts +0 -4
  1046. package/dist/projects/library-editor/src/shared/layouts/index.d.ts +0 -1
  1047. package/dist/projects/library-editor/src/shared/layouts/manage-layout/ManageLayoutView.d.ts +0 -49
  1048. package/dist/projects/library-editor/src/shared/models/Avatar.d.ts +0 -3
  1049. package/dist/projects/library-editor/src/shared/models/Banner.d.ts +0 -3
  1050. package/dist/projects/library-editor/src/shared/models/Channel.d.ts +0 -3
  1051. package/dist/projects/library-editor/src/shared/models/Chapter.d.ts +0 -3
  1052. package/dist/projects/library-editor/src/shared/models/Company.d.ts +0 -3
  1053. package/dist/projects/library-editor/src/shared/models/Config.d.ts +0 -3
  1054. package/dist/projects/library-editor/src/shared/models/Customer.d.ts +0 -3
  1055. package/dist/projects/library-editor/src/shared/models/Director.d.ts +0 -3
  1056. package/dist/projects/library-editor/src/shared/models/DisabledSpinnerModel.d.ts +0 -5
  1057. package/dist/projects/library-editor/src/shared/models/Distributor.d.ts +0 -3
  1058. package/dist/projects/library-editor/src/shared/models/Folder.d.ts +0 -14
  1059. package/dist/projects/library-editor/src/shared/models/Image.d.ts +0 -3
  1060. package/dist/projects/library-editor/src/shared/models/Interactives.d.ts +0 -3
  1061. package/dist/projects/library-editor/src/shared/models/LanguageConfig.d.ts +0 -7
  1062. package/dist/projects/library-editor/src/shared/models/Library.d.ts +0 -10
  1063. package/dist/projects/library-editor/src/shared/models/Link.d.ts +0 -3
  1064. package/dist/projects/library-editor/src/shared/models/LocalCacheDevice.d.ts +0 -3
  1065. package/dist/projects/library-editor/src/shared/models/LocalCacheDownload.d.ts +0 -3
  1066. package/dist/projects/library-editor/src/shared/models/Logo.d.ts +0 -3
  1067. package/dist/projects/library-editor/src/shared/models/Metadata.d.ts +0 -3
  1068. package/dist/projects/library-editor/src/shared/models/Owner.d.ts +0 -3
  1069. package/dist/projects/library-editor/src/shared/models/Person.d.ts +0 -3
  1070. package/dist/projects/library-editor/src/shared/models/Phrases.d.ts +0 -3
  1071. package/dist/projects/library-editor/src/shared/models/Playlist.d.ts +0 -3
  1072. package/dist/projects/library-editor/src/shared/models/Producer.d.ts +0 -3
  1073. package/dist/projects/library-editor/src/shared/models/ProductionCompany.d.ts +0 -3
  1074. package/dist/projects/library-editor/src/shared/models/Rating.d.ts +0 -3
  1075. package/dist/projects/library-editor/src/shared/models/Resource.d.ts +0 -3
  1076. package/dist/projects/library-editor/src/shared/models/RestrictedObject.d.ts +0 -3
  1077. package/dist/projects/library-editor/src/shared/models/Restriction.d.ts +0 -3
  1078. package/dist/projects/library-editor/src/shared/models/Season.d.ts +0 -3
  1079. package/dist/projects/library-editor/src/shared/models/Series.d.ts +0 -7
  1080. package/dist/projects/library-editor/src/shared/models/Setting.d.ts +0 -3
  1081. package/dist/projects/library-editor/src/shared/models/SharedResource.d.ts +0 -3
  1082. package/dist/projects/library-editor/src/shared/models/Subtitle.d.ts +0 -3
  1083. package/dist/projects/library-editor/src/shared/models/Tag.d.ts +0 -3
  1084. package/dist/projects/library-editor/src/shared/models/Thumbnail.d.ts +0 -3
  1085. package/dist/projects/library-editor/src/shared/models/User.d.ts +0 -10
  1086. package/dist/projects/library-editor/src/shared/models/Video.d.ts +0 -49
  1087. package/dist/projects/library-editor/src/shared/services/AlertService.d.ts +0 -15
  1088. package/dist/projects/library-editor/src/shared/services/ConfigDataService.d.ts +0 -23
  1089. package/dist/projects/library-editor/src/shared/services/CustomerDataService.d.ts +0 -7
  1090. package/dist/projects/library-editor/src/shared/services/DownloadProxyDataServices.d.ts +0 -8
  1091. package/dist/projects/library-editor/src/shared/services/IntercomService.d.ts +0 -6
  1092. package/dist/projects/library-editor/src/shared/services/LocalCacheDataService.d.ts +0 -12
  1093. package/dist/projects/library-editor/src/shared/services/NavigationLockService.d.ts +0 -16
  1094. package/dist/projects/library-editor/src/shared/services/PageTitleService.d.ts +0 -8
  1095. package/dist/projects/library-editor/src/shared/services/PageVisibilityService.d.ts +0 -14
  1096. package/dist/projects/library-editor/src/shared/services/PartialLoadingService.d.ts +0 -10
  1097. package/dist/projects/library-editor/src/shared/services/RestrictedVideoDataService.d.ts +0 -15
  1098. package/dist/projects/library-editor/src/shared/services/SettingsDataService.d.ts +0 -16
  1099. package/dist/projects/library-editor/src/shared/services/UserDataService.d.ts +0 -20
  1100. package/dist/projects/library-editor/src/shared/services/VideoMixinService.d.ts +0 -18
  1101. package/dist/projects/library-editor/src/shared/utils/BulkCheckboxHelper.d.ts +0 -18
  1102. package/dist/projects/library-editor/src/shared/utils/CancelProcessingHelper.d.ts +0 -4
  1103. package/dist/projects/library-editor/src/shared/utils/CollectionHelper.d.ts +0 -10
  1104. package/dist/projects/library-editor/src/shared/utils/DialogHelper.d.ts +0 -9
  1105. package/dist/projects/library-editor/src/shared/utils/DurationHelper.d.ts +0 -7
  1106. package/dist/projects/library-editor/src/shared/utils/FolderTreeHelpers.d.ts +0 -36
  1107. package/dist/projects/library-editor/src/shared/utils/ImageHelper.d.ts +0 -32
  1108. package/dist/projects/library-editor/src/shared/utils/LazyLoadHelper.d.ts +0 -4
  1109. package/dist/projects/library-editor/src/shared/utils/LocalCacheHelper.d.ts +0 -7
  1110. package/dist/projects/library-editor/src/shared/utils/PartialLoadingHelper.d.ts +0 -6
  1111. package/dist/projects/library-editor/src/shared/utils/PermissionsHelper.d.ts +0 -13
  1112. package/dist/projects/library-editor/src/shared/utils/RadioChannelHelper.d.ts +0 -11
  1113. package/dist/projects/library-editor/src/shared/utils/RatingHelper.d.ts +0 -5
  1114. package/dist/projects/library-editor/src/shared/utils/RestrictedAccessHelper.d.ts +0 -13
  1115. package/dist/projects/library-editor/src/shared/utils/SettingsHelper.d.ts +0 -9
  1116. package/dist/projects/library-editor/src/shared/utils/SortHelper.d.ts +0 -16
  1117. package/dist/projects/library-editor/src/shared/utils/SpinnerHelper.d.ts +0 -19
  1118. package/dist/projects/library-editor/src/shared/utils/SubtitleLanguageValidation.d.ts +0 -6
  1119. package/dist/projects/library-editor/src/shared/utils/TabHelper.d.ts +0 -9
  1120. package/dist/projects/library-editor/src/shared/utils/TextHelper.d.ts +0 -9
  1121. package/dist/projects/library-editor/src/shared/utils/TimeHelper.d.ts +0 -20
  1122. package/dist/projects/library-editor/src/shared/utils/VideoHelper.d.ts +0 -11
  1123. package/dist/projects/library-editor/src/shared/utils/index.d.ts +0 -23
  1124. package/dist/projects/library-editor/src/shared/utils/search/RawSearchHelper.d.ts +0 -25
  1125. package/dist/projects/library-editor/src/shared/utils/search/index.d.ts +0 -1
  1126. package/dist/projects/library-editor/src/shared/utils/search/raw-search-components/add-new/AddNewSuggestion.d.ts +0 -12
  1127. package/dist/projects/library-editor/src/shared/utils/search/raw-search-components/index.d.ts +0 -1
  1128. package/dist/projects/library-editor/src/shared/utils/search/raw-search-templates/index.d.ts +0 -5
  1129. package/dist/projects/library-editor/src/shared/views/download-to-local-cache/DownloadToLocalCacheView.d.ts +0 -28
  1130. package/dist/projects/library-editor/src/shared/views/download-video/DownloadVideoView.d.ts +0 -18
  1131. package/dist/projects/library-editor/src/shared/views/restrict-access/RestrictAccessComponent.d.ts +0 -7
  1132. package/dist/projects/library-editor/src/shared/views/restrict-access/RestrictAccessGroupComponent.d.ts +0 -24
  1133. package/dist/projects/library-editor/src/shared/views/restrict-access/RestrictAccessView.d.ts +0 -67
  1134. package/dist/projects/library-editor/src/shared/views/share/ShareView.d.ts +0 -48
  1135. package/dist/projects/library-editor/src/shared/views/top-navigation/TopNavigationView.d.ts +0 -35
  1136. package/dist/projects/library-editor/src/shared/views/user-options/UserOptionsView.d.ts +0 -18
  1137. package/dist/projects/library-editor/src/startup/ConsoleOutput.d.ts +0 -3
  1138. package/dist/projects/library-editor/src/startup/RegisterAjaxMiddleware.d.ts +0 -3
  1139. package/dist/projects/library-editor/src/startup/RegisterAnalytics.d.ts +0 -3
  1140. package/dist/projects/library-editor/src/startup/RegisterApplicationVariables.d.ts +0 -3
  1141. package/dist/projects/library-editor/src/startup/RegisterApplications.d.ts +0 -3
  1142. package/dist/projects/library-editor/src/startup/RegisterCaches.d.ts +0 -3
  1143. package/dist/projects/library-editor/src/startup/RegisterDataProviders.d.ts +0 -3
  1144. package/dist/projects/library-editor/src/startup/RegisterDataServices.d.ts +0 -3
  1145. package/dist/projects/library-editor/src/startup/RegisterErrorHandlers.d.ts +0 -3
  1146. package/dist/projects/library-editor/src/startup/RegisterHandlebarsHelpers.d.ts +0 -3
  1147. package/dist/projects/library-editor/src/startup/RegisterLayouts.d.ts +0 -3
  1148. package/dist/projects/library-editor/src/startup/RegisterRuntimeEnvironment.d.ts +0 -3
  1149. package/dist/projects/library-editor/src/startup/RegisterServices.d.ts +0 -3
  1150. package/dist/projects/library-editor/src/startup/RegisterViewDataExtensions.d.ts +0 -15
  1151. package/dist/projects/library-editor/src/startup/index.d.ts +0 -14
  1152. package/dist/projects/library-editor/src/styles/index.d.ts +0 -1
  1153. package/dist/projects/library-editor/typings/libs/LazyLoad.d.ts +0 -26
  1154. package/dist/scripts/0-e25d47c666.chunk.js +0 -1
  1155. package/dist/scripts/0.chunk.js +0 -1039
  1156. package/dist/scripts/0.chunk.js.map +0 -1
  1157. package/dist/scripts/1-620c685eee.chunk.js +0 -1
  1158. package/dist/scripts/1.chunk.js +0 -442
  1159. package/dist/scripts/1.chunk.js.map +0 -1
  1160. package/dist/scripts/10-3baf058564.chunk.js +0 -1
  1161. package/dist/scripts/10.chunk.js +0 -820
  1162. package/dist/scripts/10.chunk.js.map +0 -1
  1163. package/dist/scripts/11.chunk.js +0 -4091
  1164. package/dist/scripts/11.chunk.js.map +0 -1
  1165. package/dist/scripts/12-b460ad405e.chunk.js +0 -1
  1166. package/dist/scripts/12.chunk.js +0 -555
  1167. package/dist/scripts/12.chunk.js.map +0 -1
  1168. package/dist/scripts/13-89b3a0aebb.chunk.js +0 -1
  1169. package/dist/scripts/13.chunk.js +0 -380
  1170. package/dist/scripts/13.chunk.js.map +0 -1
  1171. package/dist/scripts/14-670309ef33.chunk.js +0 -1
  1172. package/dist/scripts/14.chunk.js +0 -2386
  1173. package/dist/scripts/14.chunk.js.map +0 -1
  1174. package/dist/scripts/15-39010184ed.chunk.js +0 -1
  1175. package/dist/scripts/15.chunk.js +0 -314
  1176. package/dist/scripts/15.chunk.js.map +0 -1
  1177. package/dist/scripts/16.chunk.js +0 -1290
  1178. package/dist/scripts/16.chunk.js.map +0 -1
  1179. package/dist/scripts/17.chunk.js +0 -381
  1180. package/dist/scripts/17.chunk.js.map +0 -1
  1181. package/dist/scripts/18.chunk.js +0 -393
  1182. package/dist/scripts/18.chunk.js.map +0 -1
  1183. package/dist/scripts/19.chunk.js +0 -364
  1184. package/dist/scripts/19.chunk.js.map +0 -1
  1185. package/dist/scripts/2.chunk.js +0 -523
  1186. package/dist/scripts/2.chunk.js.map +0 -1
  1187. package/dist/scripts/20-42dc06da39.chunk.js +0 -1
  1188. package/dist/scripts/20.chunk.js +0 -317
  1189. package/dist/scripts/20.chunk.js.map +0 -1
  1190. package/dist/scripts/21-05615559be.chunk.js +0 -1
  1191. package/dist/scripts/21.chunk.js +0 -531
  1192. package/dist/scripts/21.chunk.js.map +0 -1
  1193. package/dist/scripts/22-70b4c18dd2.chunk.js +0 -1
  1194. package/dist/scripts/22.chunk.js +0 -354
  1195. package/dist/scripts/22.chunk.js.map +0 -1
  1196. package/dist/scripts/23-3166dfeef5.chunk.js +0 -1
  1197. package/dist/scripts/23.chunk.js +0 -604
  1198. package/dist/scripts/23.chunk.js.map +0 -1
  1199. package/dist/scripts/24-6fbd14025b.chunk.js +0 -1
  1200. package/dist/scripts/24.chunk.js +0 -318
  1201. package/dist/scripts/24.chunk.js.map +0 -1
  1202. package/dist/scripts/25-3d067b8b9a.chunk.js +0 -1
  1203. package/dist/scripts/25.chunk.js +0 -365
  1204. package/dist/scripts/25.chunk.js.map +0 -1
  1205. package/dist/scripts/26-468305820a.chunk.js +0 -1
  1206. package/dist/scripts/26.chunk.js +0 -442
  1207. package/dist/scripts/26.chunk.js.map +0 -1
  1208. package/dist/scripts/27-d03a99658e.chunk.js +0 -1
  1209. package/dist/scripts/27.chunk.js +0 -3630
  1210. package/dist/scripts/27.chunk.js.map +0 -1
  1211. package/dist/scripts/28-f3f43a3001.chunk.js +0 -1
  1212. package/dist/scripts/28.chunk.js +0 -3172
  1213. package/dist/scripts/28.chunk.js.map +0 -1
  1214. package/dist/scripts/29-268278d2ac.chunk.js +0 -1
  1215. package/dist/scripts/29.chunk.js +0 -3090
  1216. package/dist/scripts/29.chunk.js.map +0 -1
  1217. package/dist/scripts/3.chunk.js +0 -845
  1218. package/dist/scripts/3.chunk.js.map +0 -1
  1219. package/dist/scripts/30-694b0a0d4b.chunk.js +0 -1
  1220. package/dist/scripts/30.chunk.js +0 -1851
  1221. package/dist/scripts/30.chunk.js.map +0 -1
  1222. package/dist/scripts/31-4c542c18dc.chunk.js +0 -1
  1223. package/dist/scripts/31.chunk.js +0 -958
  1224. package/dist/scripts/31.chunk.js.map +0 -1
  1225. package/dist/scripts/32.chunk.js +0 -1239
  1226. package/dist/scripts/32.chunk.js.map +0 -1
  1227. package/dist/scripts/33.chunk.js +0 -971
  1228. package/dist/scripts/33.chunk.js.map +0 -1
  1229. package/dist/scripts/34-eb9f6709b3.chunk.js +0 -1
  1230. package/dist/scripts/34.chunk.js +0 -990
  1231. package/dist/scripts/34.chunk.js.map +0 -1
  1232. package/dist/scripts/35-1ff49137e7.chunk.js +0 -1
  1233. package/dist/scripts/35.chunk.js +0 -518
  1234. package/dist/scripts/35.chunk.js.map +0 -1
  1235. package/dist/scripts/36-9e89154ca2.chunk.js +0 -1
  1236. package/dist/scripts/36.chunk.js +0 -335
  1237. package/dist/scripts/36.chunk.js.map +0 -1
  1238. package/dist/scripts/37.chunk.js +0 -236
  1239. package/dist/scripts/37.chunk.js.map +0 -1
  1240. package/dist/scripts/38.chunk.js +0 -315
  1241. package/dist/scripts/38.chunk.js.map +0 -1
  1242. package/dist/scripts/39.chunk.js +0 -107
  1243. package/dist/scripts/39.chunk.js.map +0 -1
  1244. package/dist/scripts/4.chunk.js +0 -335
  1245. package/dist/scripts/4.chunk.js.map +0 -1
  1246. package/dist/scripts/40.chunk.js +0 -2493
  1247. package/dist/scripts/40.chunk.js.map +0 -1
  1248. package/dist/scripts/41.chunk.js +0 -1782
  1249. package/dist/scripts/41.chunk.js.map +0 -1
  1250. package/dist/scripts/42-9f757567db.chunk.js +0 -1
  1251. package/dist/scripts/42.chunk.js +0 -2327
  1252. package/dist/scripts/42.chunk.js.map +0 -1
  1253. package/dist/scripts/43.chunk.js +0 -1206
  1254. package/dist/scripts/43.chunk.js.map +0 -1
  1255. package/dist/scripts/44.chunk.js +0 -2245
  1256. package/dist/scripts/44.chunk.js.map +0 -1
  1257. package/dist/scripts/45.chunk.js +0 -1065
  1258. package/dist/scripts/45.chunk.js.map +0 -1
  1259. package/dist/scripts/46.chunk.js +0 -655
  1260. package/dist/scripts/46.chunk.js.map +0 -1
  1261. package/dist/scripts/47.chunk.js +0 -736
  1262. package/dist/scripts/47.chunk.js.map +0 -1
  1263. package/dist/scripts/48.chunk.js +0 -994
  1264. package/dist/scripts/48.chunk.js.map +0 -1
  1265. package/dist/scripts/49-8e3e782ffb.chunk.js +0 -1
  1266. package/dist/scripts/49.chunk.js +0 -761
  1267. package/dist/scripts/49.chunk.js.map +0 -1
  1268. package/dist/scripts/5-b236603e85.chunk.js +0 -1
  1269. package/dist/scripts/5.chunk.js +0 -15
  1270. package/dist/scripts/5.chunk.js.map +0 -1
  1271. package/dist/scripts/50.chunk.js +0 -530
  1272. package/dist/scripts/50.chunk.js.map +0 -1
  1273. package/dist/scripts/51.chunk.js +0 -932
  1274. package/dist/scripts/51.chunk.js.map +0 -1
  1275. package/dist/scripts/52.chunk.js +0 -408
  1276. package/dist/scripts/52.chunk.js.map +0 -1
  1277. package/dist/scripts/53.chunk.js +0 -756
  1278. package/dist/scripts/53.chunk.js.map +0 -1
  1279. package/dist/scripts/54.chunk.js +0 -681
  1280. package/dist/scripts/54.chunk.js.map +0 -1
  1281. package/dist/scripts/55.chunk.js +0 -645
  1282. package/dist/scripts/55.chunk.js.map +0 -1
  1283. package/dist/scripts/56.chunk.js +0 -346
  1284. package/dist/scripts/56.chunk.js.map +0 -1
  1285. package/dist/scripts/57.chunk.js +0 -422
  1286. package/dist/scripts/57.chunk.js.map +0 -1
  1287. package/dist/scripts/58.chunk.js +0 -437
  1288. package/dist/scripts/58.chunk.js.map +0 -1
  1289. package/dist/scripts/59.chunk.js +0 -342
  1290. package/dist/scripts/59.chunk.js.map +0 -1
  1291. package/dist/scripts/6-6fb543aa78.chunk.js +0 -1
  1292. package/dist/scripts/6.chunk.js +0 -484
  1293. package/dist/scripts/6.chunk.js.map +0 -1
  1294. package/dist/scripts/60.chunk.js +0 -254
  1295. package/dist/scripts/60.chunk.js.map +0 -1
  1296. package/dist/scripts/61.chunk.js +0 -408
  1297. package/dist/scripts/61.chunk.js.map +0 -1
  1298. package/dist/scripts/62.chunk.js +0 -142
  1299. package/dist/scripts/62.chunk.js.map +0 -1
  1300. package/dist/scripts/63.chunk.js +0 -147
  1301. package/dist/scripts/63.chunk.js.map +0 -1
  1302. package/dist/scripts/64.chunk.js +0 -439
  1303. package/dist/scripts/64.chunk.js.map +0 -1
  1304. package/dist/scripts/65.chunk.js +0 -582
  1305. package/dist/scripts/65.chunk.js.map +0 -1
  1306. package/dist/scripts/66.chunk.js +0 -442
  1307. package/dist/scripts/66.chunk.js.map +0 -1
  1308. package/dist/scripts/67.chunk.js +0 -295
  1309. package/dist/scripts/67.chunk.js.map +0 -1
  1310. package/dist/scripts/68.chunk.js +0 -165
  1311. package/dist/scripts/68.chunk.js.map +0 -1
  1312. package/dist/scripts/69.chunk.js +0 -248
  1313. package/dist/scripts/69.chunk.js.map +0 -1
  1314. package/dist/scripts/7.chunk.js +0 -309
  1315. package/dist/scripts/7.chunk.js.map +0 -1
  1316. package/dist/scripts/70.chunk.js +0 -207
  1317. package/dist/scripts/70.chunk.js.map +0 -1
  1318. package/dist/scripts/71.chunk.js +0 -237
  1319. package/dist/scripts/71.chunk.js.map +0 -1
  1320. package/dist/scripts/72.chunk.js +0 -331
  1321. package/dist/scripts/72.chunk.js.map +0 -1
  1322. package/dist/scripts/73.chunk.js +0 -404
  1323. package/dist/scripts/73.chunk.js.map +0 -1
  1324. package/dist/scripts/74.chunk.js +0 -301
  1325. package/dist/scripts/74.chunk.js.map +0 -1
  1326. package/dist/scripts/75.chunk.js +0 -231
  1327. package/dist/scripts/75.chunk.js.map +0 -1
  1328. package/dist/scripts/76.chunk.js +0 -157
  1329. package/dist/scripts/76.chunk.js.map +0 -1
  1330. package/dist/scripts/77.chunk.js +0 -307
  1331. package/dist/scripts/77.chunk.js.map +0 -1
  1332. package/dist/scripts/78.chunk.js +0 -249
  1333. package/dist/scripts/78.chunk.js.map +0 -1
  1334. package/dist/scripts/79.chunk.js +0 -282
  1335. package/dist/scripts/79.chunk.js.map +0 -1
  1336. package/dist/scripts/8.chunk.js +0 -307
  1337. package/dist/scripts/8.chunk.js.map +0 -1
  1338. package/dist/scripts/80.chunk.js +0 -308
  1339. package/dist/scripts/80.chunk.js.map +0 -1
  1340. package/dist/scripts/81.chunk.js +0 -366
  1341. package/dist/scripts/81.chunk.js.map +0 -1
  1342. package/dist/scripts/82.chunk.js +0 -314
  1343. package/dist/scripts/82.chunk.js.map +0 -1
  1344. package/dist/scripts/83.chunk.js +0 -328
  1345. package/dist/scripts/83.chunk.js.map +0 -1
  1346. package/dist/scripts/84.chunk.js +0 -313
  1347. package/dist/scripts/84.chunk.js.map +0 -1
  1348. package/dist/scripts/85.chunk.js +0 -291
  1349. package/dist/scripts/85.chunk.js.map +0 -1
  1350. package/dist/scripts/86.chunk.js +0 -119
  1351. package/dist/scripts/86.chunk.js.map +0 -1
  1352. package/dist/scripts/87.chunk.js +0 -219
  1353. package/dist/scripts/87.chunk.js.map +0 -1
  1354. package/dist/scripts/88.chunk.js +0 -194
  1355. package/dist/scripts/88.chunk.js.map +0 -1
  1356. package/dist/scripts/89.chunk.js +0 -522
  1357. package/dist/scripts/89.chunk.js.map +0 -1
  1358. package/dist/scripts/9-b8f9ea66c4.chunk.js +0 -1
  1359. package/dist/scripts/9.chunk.js +0 -222
  1360. package/dist/scripts/9.chunk.js.map +0 -1
  1361. package/dist/scripts/90.chunk.js +0 -337
  1362. package/dist/scripts/90.chunk.js.map +0 -1
  1363. package/dist/scripts/91.chunk.js +0 -131
  1364. package/dist/scripts/91.chunk.js.map +0 -1
  1365. package/dist/scripts/92.chunk.js +0 -266
  1366. package/dist/scripts/92.chunk.js.map +0 -1
  1367. package/dist/scripts/bundle-f28b86bf5b.min.js +0 -8
  1368. package/dist/scripts/bundle.js +0 -67206
  1369. package/dist/scripts/bundle.js.map +0 -1
  1370. package/dist/scripts/polyfills-1d2233ebcc.min.js +0 -1
  1371. package/dist/scripts/polyfills.js +0 -14866
  1372. package/dist/scripts/polyfills.js.map +0 -1
@@ -0,0 +1 @@
1
+ (window.webpackJsonp_clickview_library_editor=window.webpackJsonp_clickview_library_editor||[]).push([[36],{1212:function(e,t,r){"use strict";r.d(t,"a",(function(){return d}));var n=r(2),a=r(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 r=0;r<t.length;r++){var n=t[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(e,n.key,n)}}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 r,n=f(e);if(t){var a=f(this).constructor;r=Reflect.construct(n,arguments,a)}else r=n.apply(this,arguments);return l(this,r)}}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,r,n,i=c(l);function l(){return o(this,l),i.apply(this,arguments)}return t=l,(r=[{key:"defaults",value:function(){return e={},t=a.c.Disabled,r=!0,t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e;var e,t,r}}])&&u(t.prototype,r),n&&u(t,n),l}(n.a.Model)},1215:function(e,t,r){"use strict";r.d(t,"a",(function(){return d})),r.d(t,"k",(function(){return p})),r.d(t,"g",(function(){return h})),r.d(t,"e",(function(){return g})),r.d(t,"j",(function(){return b})),r.d(t,"i",(function(){return v})),r.d(t,"c",(function(){return E})),r.d(t,"b",(function(){return w})),r.d(t,"d",(function(){return x})),r.d(t,"f",(function(){return P})),r.d(t,"h",(function(){return y}));var n=r(2),a=r(1),i=r(19),o=r(29),u=r(3),s="libraryEditor.utils",c=["tags","thumbnail","chapters","resources","subtitles","disabled","links","restrictions","categories"];function l(e,t){if(e){var r=a.reduce(e,(function(e,r,n){var i=t[n];return r||i?a.isObject(r)&&a.isObject(i)&&!a.isUndefined(r.id)&&r.id===i.id?e:a.isArray(r)?f(r,i).length?e.concat(n):e:a.isEqual(r,i)?e:e.concat(n):e}),[]);if(r.length)return a.object(a.map(r,(function(r){return a.isArray(t[r])?[r,f(e[r],t[r])]:[r,t[r]]})))}}function f(e,t){var r=[];return a.each(t,(function(t){var n=a.findWhere(e,{id:t.id});if(!a.isUndefined(n)||0!==Object.keys(t).length){var i=a.isUndefined(n)?t:l(n,t);i&&(t.id<0&&!t.value||(!n||t.id<0?r.push(t):(i.id=t.id,r.push(i))))}})),r}var d={getChanges:function(e,t){var r=l(a.omit(e.toJSON(),c),a.omit(t.toJSON(),c));if(r)return a.object(a.map(a.keys(r),(function(e){return[e,d.formatChanges(e,r[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:n.a.ErrorHelper.throw(new i.a("There are no formatting settings for ".concat(e)))}},updateModelState:function(e,t,r){var i=["distributors","producers","directors","productionCompanies"];for(var o in a.each(a.keys(r),(function(e){i.includes(e)&&(r[e]=t.get(e).toJSON())})),t.set(a.clone(r),{silent:!0}),e.set(t.toJSON(),{silent:!0}),r){if(!r[o]&&e.associations[o]){var u=e.get(o);(u instanceof n.a.Model||u instanceof n.a.NestedModel)&&u.clear()}}},getRemovedObjectIds:function(e,t){var r=["distributors","productionCompanies","producers","directors"],n={};return a.each(a.keys(e.toJSON()),(function(i){if(a.contains(r,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&&(n[i]=s)}})),n}},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,r){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"):r.season&&r.season.get("number")>=0&&null===e?u.a.getPhrase(s,"episodeNumberNoSeason"):""},season:function(e,t,r){return r.season&&r.season.get("number")||e&&e.number||!r.episodeNumber?"":u.a.getPhrase(s,"seasonNoEpisodeNumber")}},m=o().year(),g={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):""}},h={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,r){"use strict";var n=r(1222),a=r(1215),i=(r(1220),r(3),r(1223)),o=(r(1225),r(1221)),u=r(82),s={getVideoDownloadUrl:function(e,t){return u.a.safeUrlConcat(u.a.makeHttps(e),"/download?token=".concat(t))}};r.d(t,"a",(function(){return n.a})),r.d(t,"e",(function(){return a.g})),r.d(t,"h",(function(){return a.j})),r.d(t,"g",(function(){return a.i})),r.d(t,"d",(function(){return a.f})),r.d(t,"f",(function(){return a.h})),r.d(t,"c",(function(){return i.a})),r.d(t,"i",(function(){return o.a})),r.d(t,"b",(function(){return s}))},1220:function(e,t,r){"use strict";r.d(t,"a",(function(){return l}));var n=r(1),a=r(49),i=r(162),o=r(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(r){return r?a.a.calculateDestinationFolderDepth(e,r,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,r=e.validateParent,a=e.folder,i=e.collection;return t&&r?n.extend({},s,c(a,i)):t?s:r?c(a,i):void 0}},1221:function(e,t,r){"use strict";r.d(t,"a",(function(){return f}));var n=r(15),a=r(3),i=r(189),o=r(1233),u=r(59);function s(e,t,r){return t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,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,r=(s(t={},c.Pdf,n.b.FilePDF),s(t,c.Image,n.b.FileImg),s(t,c.PowerPoint,n.b.FilePowerpoint),s(t,c.Document,n.b.FileWord),s(t,c.Excel,n.b.FileExcel),s(t,c.Zip,n.b.FileZip),s(t,c.File,n.b.File),t)[e];return r||(r=n.b.Folder),n.a.getSvg(r)},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,r){"use strict";r.d(t,"a",(function(){return u}));var n=r(1),a=r(12),i=r(3),o="libraryEditor.utils",u={isValidChapterTime:function(e,t,r,i){if(i){if(!n.isNumber(t))return s.StartTime.Invalid();if(t<0)return s.StartTime.Invalid();if(t>a.w.millisecondsToSeconds(r))return s.StartTime.Exceeds();if(i.some((function(r){return!(r.id&&r.id===e.id||r.cid===e.cid)&&r.get("startTime")===t})))return s.StartTime.Exists()}},isValidChapterName:function(e,t,r){return t?t.length>255?s.Name.MaxLength():r.some((function(r){return!(r.id&&r.id===e.id||r.cid===e.cid)&&r.get("name").trim()===t.trim()}))?s.Name.Exists():n.isEmpty(t.trim())?s.Name.Invalid():void 0:s.Name.Invalid()},mapPhysicalChapters:function(e){var t=0;return n.map(e,(function(e,r){var n={name:e.title,startTime:t,index:r,isPhysicalChapter:!0};return t+=e.duration,n}))}},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,r){"use strict";r.d(t,"a",(function(){return i}));var n=r(3),a="libraryEditor.utils",i={name:[{required:!0,msg:function(){return n.a.getPhrase(a,"libraryNameRequired")}},{maxLength:255,msg:function(){return n.a.getPhrase(a,"libraryNameExceeds")}}]}},1225:function(e,t,r){"use strict";r.d(t,"a",(function(){return o}));var n=r(3),a=r(1215),i=n.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,r){return e&&e<1?i("episodeNumberLessThanOne"):e&&e>255?i("episodeNumberExceeds"):e&&e%1!=0?i("episodeNumberNotWhole"):r.season&&r.season.get("number")>=0&&null===e?i("episodeNumberNoSeason"):""},season:function(e,t,r){return r.season&&r.season.get("number")||e&&e.number||!r.episodeNumber?"":i("seasonNoEpisodeNumber")},productionYear:function(){for(var e,t=arguments.length,r=new Array(t),n=0;n<t;n++)r[n]=arguments[n];return(e=a.e.productionYear).apply.apply(e,[null].concat(r))}}},1233:function(e,t,r){"use strict";function n(e){return(n="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 r,n=s(e);if(t){var a=s(this).constructor;r=Reflect.construct(n,arguments,a)}else r=n.apply(this,arguments);return u(this,r)}}function u(e,t){return!t||"object"!==n(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)}r.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)}(r,e);var t=o(r);function r(){return a(this,r),t.apply(this,arguments)}return r}(r(2).a.Collection)},1473:function(e,t,r){var n=r(10);e.exports=(n.default||n).template({1:function(e,t,r,n,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,r,n,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((r.lang||t&&t.lang||o).call(i,"libraryName",{name:"lang",hash:{},data:a}))+'</label>\r\n <input name="name" id="name" type="text" class="form-control" placeholder="'+u((r.lang||t&&t.lang||o).call(i,"secondaryLibrary",{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,r,n,a){var i;e.propertyIsEnumerable;return null!=(i=r.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})},1607:function(e,t,r){"use strict";r.r(t),r.d(t,"NewLibraryView",(function(){return O}));var n=r(6),a=r(2),i=r(5),o=r(30),u=r(3),s=r(61),c=r(293),l=r(136),f=r(0),d=r(253),p=r(130),m=r(1212),g=r(12),h=r(1216),b=r(138),y=r(195),v=r(1473),P=r.n(v);function E(e){return(E="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}function w(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function x(e,t){for(var r=0;r<t.length;r++){var n=t[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(e,n.key,n)}}function N(e,t){return(N=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e})(e,t)}function S(e){var t=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Date.prototype.toString.call(Reflect.construct(Date,[],(function(){}))),!0}catch(e){return!1}}();return function(){var r,n=k(e);if(t){var a=k(this).constructor;r=Reflect.construct(n,arguments,a)}else r=n.apply(this,arguments);return T(this,r)}}function T(e,t){return!t||"object"!==E(t)&&"function"!=typeof t?function(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}(e):t}function k(e){return(k=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)})(e)}var O=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&&N(e,t)}(T,e);var t,r,v,E=S(T);function T(){return w(this,T),E.apply(this,arguments)}return t=T,(r=[{key:"initialize",value:function(){this.model=o.a.get("new:library",null,{ctor:p.a}),this.bindListeners(),this.settingsDataService=i.a.getInstance(f.g.Settings,this),this.libraryDataService=i.a.getInstance(f.g.Library,this)}},{key:"bindListeners",value:function(){this.listenTo(f.e.SEARCH,"".concat(f.f.SETTINGS,":sync"),this.render)}},{key:"events",value:function(){return{submit:"onSubmit"}}},{key:"onSubmit",value:function(e){e&&e.preventDefault(),this.model.validate(),this.model.isValid()&&(n.Radio.channel(this.channelName).trigger(d.b.ShowSpinner),this.createLibrary())}},{key:"createLibrary",value:function(){this.libraryDataService.createLibrary(this.currentUser.get("customerId"),this.model,(function(e){o.a.clear("new:library"),a.a.AppLinkHelper.trigger({application:f.b.LIBRARY_EDITOR,action:f.a.LibraryEditor.LIBRARY,args:[e.id]})}))}},{key:"onBeforeRender",value:function(){this.maxCustomLibraries=this.settingsDataService.getSetting(this.currentUser.get("customerId"),s.a.MaxCustomLibraries),this.libraries.length>=this.maxCustomLibraries.get("value")?a.a.ErrorHelper.throw(new y.j(this.libraries.length,this.maxCustomLibraries.get("value"))):this.maxCustomLibraries&&this.spinnerModel.set(d.c.Disabled,!1)}},{key:"viewOptions",value:function(){return{dataFetched:!!this.maxCustomLibraries,spinnerEl:g.q.getSpinner({size:g.r.Large,extraClasses:"mx-auto"})}}},{key:"name",get:function(){return"NewLibraryView"}},{key:"title",get:function(){return u.a.getPhrase(this.lang,"title")}},{key:"lang",get:function(){return"libraryEditor.newLibrary"}},{key:"template",get:function(){return P.a}},{key:"channelName",get:function(){return g.k.generateUniqueChannelName(this)}},{key:"behaviors",get:function(){var e=this;return[{behaviorClass:c.a,modelValidation:h.c},{behaviorClass:c.f},{behaviorClass:c.e,title:u.a.getPhrase(this.lang,"heading"),spinnerButtonOptions:{model:this.spinnerModel=new m.a,channelName:this.channelName,buttonText:u.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:"requiredResources",get:function(){return{currentUser:l.b.currentUser,libraries:b.b.libraries}}}])&&x(t.prototype,r),v&&x(t,v),T}(a.a.View)}}]);
@@ -1 +1 @@
1
- (window.webpackJsonp_clickview_library_editor=window.webpackJsonp_clickview_library_editor||[]).push([[37],{1051:function(e,t,n){"use strict";n.d(t,"a",(function(){return p}));var r=n(2),o=n(243);function i(e){return(i="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}function a(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function l(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}function u(e,t){return(u=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e})(e,t)}function s(e){var t=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Date.prototype.toString.call(Reflect.construct(Date,[],(function(){}))),!0}catch(e){return!1}}();return function(){var n,r=f(e);if(t){var o=f(this).constructor;n=Reflect.construct(r,arguments,o)}else n=r.apply(this,arguments);return c(this,n)}}function c(e,t){return!t||"object"!==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&&u(e,t)}(c,e);var t,n,r,i=s(c);function c(){return a(this,c),i.apply(this,arguments)}return t=c,(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}}])&&l(t.prototype,n),r&&l(t,r),c}(r.a.Model)},1133:function(e,t,n){"use strict";n.d(t,"a",(function(){return r})),n.d(t,"b",(function(){return g}));var r,o=n(6),i=n(2),a=n(1174),l=n.n(a),u=n(1134),s=n.n(u);function c(e){return(c="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}function f(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 p(e,t){return(p=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e})(e,t)}function h(e){var t=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Date.prototype.toString.call(Reflect.construct(Date,[],(function(){}))),!0}catch(e){return!1}}();return function(){var n,r=d(e);if(t){var o=d(this).constructor;n=Reflect.construct(r,arguments,o)}else n=r.apply(this,arguments);return m(this,n)}}function m(e,t){return!t||"object"!==c(t)&&"function"!=typeof t?function(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}(e):t}function d(e){return(d=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)})(e)}!function(e){e.ClickCrop="click:crop",e.CropImage="crop:image",e.ImageCropped="image:cropped"}(r||(r={}));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&&p(e,t)}(u,e);var t,n,i,a=h(u);function u(e){return function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,u),a.call(this,e)}return t=u,(n=[{key:"initialize",value:function(){this.listenTo(this.options.channelName,r.CropImage,this.crop)}},{key:"getMinCropBoxWidth",value:function(){return this.options.minWidth*this.getViewportToImageRatio()}},{key:"getMinCropBoxHeight",value:function(){return this.options.minHeight*this.getViewportToImageRatio()}},{key:"getViewportToImageRatio",value:function(){return this.options.getCropRegionWidth()/this.model.get("width")}},{key:"crop",value:function(){var e=this.cropper.getCroppedCanvas().toDataURL(this.getImageMimeType());o.Radio.channel(this.options.channelName).trigger(r.ImageCropped,e)}},{key:"getImageMimeType",value:function(){var e=this.model.get("dataUrl").match(/data:([a-zA-Z0-9]+\/[a-zA-Z0-9-.+]+).*,.*/);if(e)return e[1]}},{key:"renderCropper",value:function(){this.getMinCropBoxWidth();var e=this.getUI("image").get(0);this.cropper=new l.a(e,{viewMode:1,aspectRatio:this.options.minWidth/this.options.minHeight,minCropBoxWidth:this.getMinCropBoxWidth(),minCropBoxHeight:this.getMinCropBoxHeight(),autoCropArea:1})}},{key:"onRender",value:function(){this.renderCropper()}},{key:"onBeforeDestroy",value:function(){this.cropper.destroy()}},{key:"name",get:function(){return"ImageCropperComponent"}},{key:"template",get:function(){return s.a}},{key:"className",get:function(){return"text-center"}},{key:"elements",get:function(){return{image:".img"}}}])&&f(t.prototype,n),i&&f(t,i),u}(i.a.Component)},1134: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){var i;e.propertyIsEnumerable;return'<img src="'+e.escapeExpression("function"==typeof(i=null!=(i=n.dataUrl||(null!=t?t.dataUrl:t))?i:e.hooks.helperMissing)?i.call(null!=t?t:e.nullContext||{},{name:"dataUrl",hash:{},data:o}):i)+'" class="img img-fluid" />'},useData:!0})},1323: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((n.lang||t&&t.lang||e.hooks.helperMissing).call(null!=t?t:e.nullContext||{},"minimumRecommended",{name:"lang",hash:{height:null!=(i=null!=(i=null!=t?t.options:t)?i.recommendedDimensions:i)?i.height:i,width:null!=(i=null!=(i=null!=t?t.options:t)?i.recommendedDimensions:i)?i.width:i},data:o}))+"\r\n"},3:function(e,t,n,r,o){var i;e.propertyIsEnumerable;return" "+e.escapeExpression((n.lang||t&&t.lang||e.hooks.helperMissing).call(null!=t?t:e.nullContext||{},"minimumActual",{name:"lang",hash:{height:null!=(i=null!=(i=null!=t?t.options:t)?i.dimensions:i)?i.height:i,width:null!=(i=null!=(i=null!=t?t.options:t)?i.dimensions:i)?i.width:i},data:o}))+"\r\n"},5:function(e,t,n,r,o){e.propertyIsEnumerable;var i,a=e.lambda,l=e.escapeExpression;return'<button class="'+l(a(null!=(i=null!=(i=null!=t?t.options:t)?i.styles:i)?i.removeImage:i,t))+'">'+l((n.lang||t&&t.lang||e.hooks.helperMissing).call(null!=t?t:e.nullContext||{},"remove",{name:"lang",hash:{},data:o}))+" "+l(a(null!=(i=null!=t?t.options:t)?i.imageTypeText:i,t))+"</button>\r\n"},compiler:[8,">= 4.3.0"],main:function(e,t,n,r,o){e.propertyIsEnumerable;var i,a=null!=t?t:e.nullContext||{},l=e.hooks.helperMissing,u=e.escapeExpression,s=e.lambda;return'<h6 class="mb-0">'+u((n.lang||t&&t.lang||l).call(a,"edit",{name:"lang",hash:{},data:o}))+" "+u(s(null!=(i=null!=t?t.options:t)?i.imageTypeText:i,t))+'</h6>\r\n<div class="text-muted mb-1">\r\n <em>\r\n'+(null!=(i=n.if.call(a,null!=(i=null!=t?t.options:t)?i.recommendedDimensions:i,{name:"if",hash:{},fn:e.program(1,o,0),inverse:e.program(3,o,0),data:o}))?i:"")+' </em>\r\n</div>\r\n<div class="my-1 '+u(s(null!=(i=null!=(i=null!=t?t.options:t)?i.styles:i)?i.imageContainer:i,t))+'">\r\n <div class="'+u(s(null!=(i=null!=(i=null!=t?t.options:t)?i.styles:i)?i.imageElement:i,t))+'" style="background-image: url(\''+u(s(null!=(i=null!=t?t.options:t)?i.imageUrl:i,t))+'\')"></div>\r\n</div>\r\n<button class="btn btn-light my-1">'+u((n.lang||t&&t.lang||l).call(a,"upload",{name:"lang",hash:{},data:o}))+" "+u(s(null!=(i=null!=t?t.options:t)?i.imageTypeText:i,t))+"</button>\r\n"+(null!=(i=n.if.call(a,null!=(i=null!=t?t.options:t)?i.hasImage:i,{name:"if",hash:{},fn:e.program(5,o,0),inverse:e.noop,data:o}))?i:"")},useData:!0})},1324:function(e,t,n){e.exports={removeImage:"_3OmsX",imageElement:"_3kJ8m",banner:"uFWnL",thumbnail:"_3_b6l",imageContainer:"_1mYjS"}},1325: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="thumbnail-region"></div>\r\n<div class="dropdown-divider"></div>\r\n<div class="banner-region"></div>'},useData:!0})},1326:function(e,t,n){e.exports={hide:"_5hYaK"}},1327:function(e,t,n){var r=n(10);e.exports=(r.default||r).template({1:function(e,t,n,r,o){return'<div class="content-region"></div>\r\n'},3: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(3,o,0),data:o}))?i:""},useData:!0})},1490:function(e,t,n){"use strict";n.r(t);var r=n(1),o=n(6),i=n(2),a=n(5),l=n(30),u=n(4),s=n(42),c=n(282),f=n(294),p=n(1051),h=n(12),m=n(0),d=n(9),g=n(1133),y=n(243),b=n(187),v=n(3),I=n(1323),w=n.n(I),k=n(1324),C=n.n(k);function T(e){return(T="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){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 R(e,t){return(R=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e})(e,t)}function S(e){var t=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Date.prototype.toString.call(Reflect.construct(Date,[],(function(){}))),!0}catch(e){return!1}}();return function(){var n,r=_(e);if(t){var o=_(this).constructor;n=Reflect.construct(r,arguments,o)}else n=r.apply(this,arguments);return E(this,n)}}function E(e,t){return!t||"object"!==T(t)&&"function"!=typeof t?function(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}(e):t}function _(e){return(_=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)})(e)}var x=function(e){!function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),t&&R(e,t)}(u,e);var t,n,r,a=S(u);function u(e){return function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,u),a.call(this,e)}return t=u,(n=[{key:"initialize",value:function(){this.viewModel=l.a.get("edit:folder:images")}},{key:"events",value:function(){return e={},t="click .".concat(C.a.removeImage),n="onClickRemoveImage",t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e;var e,t,n}},{key:"onClickRemoveImage",value:function(){o.Radio.channel(this.options.channelName).trigger("show:dialog",this.options.imageType)}},{key:"getImageUrl",value:function(){var e=this.options.imageType===d.f.Banners?"createBannerUrl":"createFolderThumbnailUrl";return h.g[e](this.options.originalImage,{fallbackBaseUrl:this.options.imageCdnUrl,fallbackCategoryName:this.options.folderName,type:this.options.imageType})}},{key:"getImageTypeText",value:function(){switch(this.options.imageType){case d.f.Banners:return v.a.getPhrase(this.lang,"banner");case d.f.Thumbnails:return v.a.getPhrase(this.lang,"thumbnail")}}},{key:"viewOptions",value:function(){return{styles:C.a,imageUrl:this.getImageUrl(),hasImage:this.options.originalImage&&this.options.originalImage.get("id"),imageTypeText:this.getImageTypeText(),dimensions:m.k[this.options.imageType],recommendedDimensions:m.m[this.options.imageType]}}},{key:"name",get:function(){return"EditImageComponent"}},{key:"template",get:function(){return w.a}},{key:"lang",get:function(){return"libraryEditor.editImage"}},{key:"className",get:function(){return this.options.imageType===d.f.Thumbnails?"".concat(C.a.thumbnail," mb-2"):"".concat(C.a.banner," mt-2")}},{key:"behaviors",get:function(){var e=this;return[{behaviorClass:c.b,channelName:this.options.channelName,buttonSelector:".btn-light",imageType:this.options.imageType,saveImage:function(t,n){n?(e.viewModel.set({dataUrl:t,type:e.options.imageType}),i.a.AppLinkHelper.trigger({application:m.b.LIBRARY_EDITOR,action:m.a.LibraryEditor.EDIT_FOLDER_IMAGES,args:[e.options.folderId]})):o.Radio.channel(e.options.channelName).trigger("select:image",t,e.options.imageType)}}]}}])&&O(t.prototype,n),r&&O(t,r),u}(i.a.Component),B=n(1325),U=n.n(B);function D(e){return(D="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}function 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 j(e,t){return(j=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e})(e,t)}function M(e){var t=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Date.prototype.toString.call(Reflect.construct(Date,[],(function(){}))),!0}catch(e){return!1}}();return function(){var n,r=L(e);if(t){var o=L(this).constructor;n=Reflect.construct(r,arguments,o)}else n=r.apply(this,arguments);return N(this,n)}}function N(e,t){return!t||"object"!==D(t)&&"function"!=typeof t?function(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}(e):t}function L(e){return(L=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)})(e)}var A,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&&j(e,t)}(i,e);var t,n,r,o=M(i);function i(e){return function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,i),o.call(this,e)}return t=i,(n=[{key:"regions",value:function(){return{banner:{el:".banner-region",replaceElement:!0},thumbnail:{el:".thumbnail-region",replaceElement:!0}}}},{key:"renderBanner",value:function(){this.showChildView("banner",new x({channelName:this.options.bannerChannel,imageCdnUrl:this.options.imageCdnUrl,imageType:d.f.Banners,folderName:this.options.folderName,originalImage:this.options.bannerImage,folderId:this.options.folderId}))}},{key:"renderThumbnail",value:function(){this.showChildView("thumbnail",new x({channelName:this.options.thumbnailChannel,imageCdnUrl:this.options.imageCdnUrl,imageType:d.f.Thumbnails,folderName:this.options.folderName,originalImage:this.options.thumbnailImage,folderId:this.options.folderId}))}},{key:"onRender",value:function(){this.renderBanner(),this.renderThumbnail()}},{key:"name",get:function(){return"EditImagesWrapperComponent"}},{key:"template",get:function(){return U.a}}])&&P(t.prototype,n),r&&P(t,r),i}(i.a.Component),F=n(1326),V=n.n(F),H=n(1327),z=n.n(H);function q(e){return(q="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 J(e,t){return(J=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e})(e,t)}function G(e){var t=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Date.prototype.toString.call(Reflect.construct(Date,[],(function(){}))),!0}catch(e){return!1}}();return function(){var n,r=K(e);if(t){var o=K(this).constructor;n=Reflect.construct(r,arguments,o)}else n=r.apply(this,arguments);return Z(this,n)}}function Z(e,t){return!t||"object"!==q(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)}n.d(t,"EditFolderImagesView",(function(){return X})),function(e){e[e.Upload=0]="Upload",e[e.Crop=1]="Crop"}(A||(A={}));var X=function(e){!function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),t&&J(e,t)}(w,e);var t,n,v,I=G(w);function w(e){return function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,w),I.call(this,e)}return t=w,(n=[{key:"initialize",value:function(){this.popupContentState=A.Upload,this.viewModel=l.a.get("edit:folder:images"),this.viewModel.get("dataUrl")&&(this.selectedImageType=this.viewModel.get("type"),this.newImageEl=new Image,this.newImageEl.src=this.viewModel.get("dataUrl"),this.spinnerModel.set(y.c.Disabled,!1),this.popupContentState=A.Crop),this.libraryDataService=a.a.getInstance(m.g.Library,this),this.imageUploadDataService=a.a.getInstance(m.g.ImageUpload,this),this.bindListeners()}},{key:"regions",value:function(){return{content:{el:".content-region",replaceElement:!0}}}},{key:"events",value:function(){return{"click .back-btn":"onClickBackButton","shown.bs.modal":"renderCropper"}}},{key:"bindListeners",value:function(){var e=this;this.listenTo(m.e.LIBRARY,"".concat(m.f.FOLDER,":").concat(this.options.folderId,":sync"),this.render);var t="".concat(this.channelName,":").concat(d.f.Banners),n="".concat(this.channelName,":").concat(d.f.Thumbnails);this.listenTo(t,"select:image",(function(t){return e.onSelectImage(t,d.f.Banners)})),this.listenTo(n,"select:image",(function(t){return e.onSelectImage(t,d.f.Thumbnails)})),this.listenTo(t,"show:dialog",(function(){return e.onShowDialog(d.f.Banners)})),this.listenTo(n,"show:dialog",(function(){return e.onShowDialog(d.f.Thumbnails)})),this.listenTo(t,"image:error",(function(){return e.triggerMethod("hide")})),this.listenTo(n,"image:error",(function(){return e.triggerMethod("hide")})),this.listenTo(this.channelName,g.a.ImageCropped,this.onImageCropped)}},{key:"onClickBackButton",value:function(){this.popupContentState!==A.Upload&&(this.popupContentState=A.Upload,this.selectedImageType=null,this.newImageEl=null,this.spinnerModel.set(y.c.Disabled,!0),this.renderContent())}},{key:"onClickCrop",value:function(){o.Radio.channel(this.channelName).trigger(g.a.CropImage).trigger(y.b.ShowSpinner)}},{key:"onSelectImage",value:function(e,t){this.selectedImageType=t,this.newImageEl=new Image,this.newImageEl.src=e,this.popupContentState=A.Crop,this.spinnerModel.set(y.c.Disabled,!1),this.renderCropper()}},{key:"onImageCropped",value:function(e){var t=this;this.imageUploadDataService.uploadBase64Image(e,this.selectedImageType,(function(e){return t.onImageUploaded(e)}))}},{key:"onImageUploaded",value:function(e){var t=this;this.triggerMethod("hide");var n={libraryId:this.libraryId,folderId:this.options.folderId,currentImageId:this.getCurrentImageId(),imageModel:e},r=this.selectedImageType===d.f.Banners?u.e.Banner:u.e.Thumbnail,o=this.selectedImageType===d.f.Banners?"addOrUpdateBanner":"addOrUpdateThumbnail";this.libraryDataService[o](n,(function(e){s.a.logUserAction({libraryId:t.libraryId,folderId:t.options.folderId,id:e.get("id")},{actionType:u.q.Upload,entity:r,workflowPhase:u.r.Complete,location:u.k.Popup}),t.reloadPage()}))}},{key:"onShowDialog",value:function(e){var t=this,n=new h.d({title:"Remove image?",text:"Are you sure you want to remove this image?",buttons:[{text:"Remove",className:"btn btn-danger",success:!0},{text:"Cancel",className:"btn btn-secondary",close:!0}],channelName:this.options.channelName});setTimeout((function(){return n.render().done((function(){return t.removeImage(e)}))}),200),this.triggerMethod("hide")}},{key:"removeImage",value:function(e){var t=this,n=e===d.f.Banners?"deleteBanner":"deleteThumbnail",r=e===d.f.Banners?this.currentBanner:this.currentThumbnail,o={libraryId:this.libraryId,folderId:this.model.get("id"),imageId:r.get("id")},i=e===d.f.Banners?u.e.Banner:u.e.Thumbnail;this.libraryDataService[n](o,(function(){s.a.logUserAction({libraryId:t.libraryId,folderId:t.model.get("id"),id:r.get("id")},{actionType:u.q.Delete,entity:i,workflowPhase:u.r.Complete,location:u.k.Popup}),t.reloadPage()}))}},{key:"reloadPage",value:function(){var e=this,t=i.a.LocationUtils.GetCurrentPath().includes("folders");setTimeout((function(){return i.a.AppLinkHelper.trigger({application:m.b.LIBRARY_EDITOR,action:t?m.a.LibraryEditor.FOLDER:m.a.LibraryEditor.HOME,args:t?[e.options.folderId]:void 0})}),0)}},{key:"getCurrentImageId",value:function(){return this.selectedImageType===d.f.Banners&&this.currentBanner?this.currentBanner.get("id"):this.selectedImageType===d.f.Thumbnails&&this.currentThumbnail?this.currentThumbnail.get("id"):void 0}},{key:"getCropRegionWidth",value:function(){return this.$el.find(".modal-body").width()}},{key:"getImageModel",value:function(){return new f.a({dataUrl:this.newImageEl.src,width:this.newImageEl.width,height:this.newImageEl.height})}},{key:"renderContent",value:function(){this.popupContentState===A.Upload&&(this.getUI("backBtn").addClass(V.a.hide),this.showChildView("content",new W({imageCdnUrl:this.config.get("imageCdnUrl"),folderName:this.model.get("name"),bannerImage:this.currentBanner,thumbnailImage:this.currentThumbnail,bannerChannel:"".concat(this.channelName,":").concat(d.f.Banners),thumbnailChannel:"".concat(this.channelName,":").concat(d.f.Thumbnails),folderId:this.options.folderId})))}},{key:"renderCropper",value:function(){this.popupContentState===A.Crop&&(this.getUI("backBtn").removeClass(V.a.hide),this.showChildView("content",new g.b({model:this.getImageModel(),channelName:this.channelName,imageType:this.selectedImageType,minWidth:m.k[this.selectedImageType].width,minHeight:m.k[this.selectedImageType].height,getCropRegionWidth:r.bind(this.getCropRegionWidth,this)})))}},{key:"viewOptions",value:function(){return{dataFetched:!!this.model&&!!this.libraryId,spinnerEl:h.q.getSpinner({size:h.r.Large,extraClasses:"mx-auto"})}}},{key:"onBeforeRender",value:function(){var e=this;this.model&&this.libraryId||(this.model=this.libraryDataService.getFolder(this.options.folderId),this.libraryDataService.getLibraries((function(t){return e.libraryId=t.first().id})))}},{key:"onRender",value:function(){this.model&&this.libraryId&&(this.currentBanner=this.model.get("banner"),this.currentThumbnail=this.model.get("thumbnail"),this.renderContent())}},{key:"onBeforeDestroy",value:function(){this.viewModel.clear()}},{key:"name",get:function(){return"EditFolderImagesView"}},{key:"title",get:function(){return"Edit Folder Images"}},{key:"template",get:function(){return z.a}},{key:"channelName",get:function(){return h.k.generateUniqueChannelName(this)}},{key:"elements",get:function(){return{backBtn:".back-btn"}}},{key:"behaviors",get:function(){return[{title:"Edit folder images",behaviorClass:c.e,size:"modal-lg",buttons:[{text:"Back",className:"btn btn-light back-btn ".concat(V.a.hide)}],spinnerButtonOptions:{model:this.spinnerModel=new p.a,channelName:this.channelName,buttonText:"Continue",onClick:this.onClickCrop}}]}},{key:"requiredResources",get:function(){return{config:b.b.config}}}])&&Y(t.prototype,n),v&&Y(t,v),w}(i.a.View)}}]);
1
+ (window.webpackJsonp_clickview_library_editor=window.webpackJsonp_clickview_library_editor||[]).push([[37],{1212:function(e,t,n){"use strict";n.d(t,"a",(function(){return f}));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 a(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function l(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}function u(e,t){return(u=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e})(e,t)}function s(e){var t=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Date.prototype.toString.call(Reflect.construct(Date,[],(function(){}))),!0}catch(e){return!1}}();return function(){var n,r=p(e);if(t){var o=p(this).constructor;n=Reflect.construct(r,arguments,o)}else n=r.apply(this,arguments);return c(this,n)}}function c(e,t){return!t||"object"!==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 p(e){return(p=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)})(e)}var f=function(e){!function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),t&&u(e,t)}(c,e);var t,n,r,i=s(c);function c(){return a(this,c),i.apply(this,arguments)}return t=c,(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}}])&&l(t.prototype,n),r&&l(t,r),c}(r.a.Model)},1294:function(e,t,n){"use strict";n.d(t,"a",(function(){return r})),n.d(t,"b",(function(){return g}));var r,o=n(6),i=n(2),a=n(1335),l=n.n(a),u=n(1295),s=n.n(u);function c(e){return(c="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}function p(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}function f(e,t){return(f=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e})(e,t)}function h(e){var t=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Date.prototype.toString.call(Reflect.construct(Date,[],(function(){}))),!0}catch(e){return!1}}();return function(){var n,r=d(e);if(t){var o=d(this).constructor;n=Reflect.construct(r,arguments,o)}else n=r.apply(this,arguments);return m(this,n)}}function m(e,t){return!t||"object"!==c(t)&&"function"!=typeof t?function(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}(e):t}function d(e){return(d=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)})(e)}!function(e){e.ClickCrop="click:crop",e.CropImage="crop:image",e.ImageCropped="image:cropped"}(r||(r={}));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&&f(e,t)}(u,e);var t,n,i,a=h(u);function u(e){return function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,u),a.call(this,e)}return t=u,(n=[{key:"initialize",value:function(){this.listenTo(this.options.channelName,r.CropImage,this.crop)}},{key:"getMinCropBoxWidth",value:function(){return this.options.minWidth*this.getViewportToImageRatio()}},{key:"getMinCropBoxHeight",value:function(){return this.options.minHeight*this.getViewportToImageRatio()}},{key:"getViewportToImageRatio",value:function(){return this.options.getCropRegionWidth()/this.model.get("width")}},{key:"crop",value:function(){var e=this.cropper.getCroppedCanvas().toDataURL(this.getImageMimeType());o.Radio.channel(this.options.channelName).trigger(r.ImageCropped,e)}},{key:"getImageMimeType",value:function(){var e=this.model.get("dataUrl").match(/data:([a-zA-Z0-9]+\/[a-zA-Z0-9-.+]+).*,.*/);if(e)return e[1]}},{key:"renderCropper",value:function(){this.getMinCropBoxWidth();var e=this.getUI("image").get(0);this.cropper=new l.a(e,{viewMode:1,aspectRatio:this.options.minWidth/this.options.minHeight,minCropBoxWidth:this.getMinCropBoxWidth(),minCropBoxHeight:this.getMinCropBoxHeight(),autoCropArea:1})}},{key:"onRender",value:function(){this.renderCropper()}},{key:"onBeforeDestroy",value:function(){this.cropper.destroy()}},{key:"name",get:function(){return"ImageCropperComponent"}},{key:"template",get:function(){return s.a}},{key:"className",get:function(){return"text-center"}},{key:"elements",get:function(){return{image:".img"}}}])&&p(t.prototype,n),i&&p(t,i),u}(i.a.Component)},1295: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){var i;e.propertyIsEnumerable;return'<img src="'+e.escapeExpression("function"==typeof(i=null!=(i=n.dataUrl||(null!=t?t.dataUrl:t))?i:e.hooks.helperMissing)?i.call(null!=t?t:e.nullContext||{},{name:"dataUrl",hash:{},data:o}):i)+'" class="img img-fluid" />'},useData:!0})},1484: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((n.lang||t&&t.lang||e.hooks.helperMissing).call(null!=t?t:e.nullContext||{},"minimumRecommended",{name:"lang",hash:{height:null!=(i=null!=(i=null!=t?t.options:t)?i.recommendedDimensions:i)?i.height:i,width:null!=(i=null!=(i=null!=t?t.options:t)?i.recommendedDimensions:i)?i.width:i},data:o}))+"\r\n"},3:function(e,t,n,r,o){var i;e.propertyIsEnumerable;return" "+e.escapeExpression((n.lang||t&&t.lang||e.hooks.helperMissing).call(null!=t?t:e.nullContext||{},"minimumActual",{name:"lang",hash:{height:null!=(i=null!=(i=null!=t?t.options:t)?i.dimensions:i)?i.height:i,width:null!=(i=null!=(i=null!=t?t.options:t)?i.dimensions:i)?i.width:i},data:o}))+"\r\n"},5:function(e,t,n,r,o){e.propertyIsEnumerable;var i,a=e.lambda,l=e.escapeExpression;return'<button class="'+l(a(null!=(i=null!=(i=null!=t?t.options:t)?i.styles:i)?i.removeImage:i,t))+'">'+l((n.lang||t&&t.lang||e.hooks.helperMissing).call(null!=t?t:e.nullContext||{},"remove",{name:"lang",hash:{},data:o}))+" "+l(a(null!=(i=null!=t?t.options:t)?i.imageTypeText:i,t))+"</button>\r\n"},compiler:[8,">= 4.3.0"],main:function(e,t,n,r,o){e.propertyIsEnumerable;var i,a=null!=t?t:e.nullContext||{},l=e.hooks.helperMissing,u=e.escapeExpression,s=e.lambda;return'<h6 class="mb-0">'+u((n.lang||t&&t.lang||l).call(a,"edit",{name:"lang",hash:{},data:o}))+" "+u(s(null!=(i=null!=t?t.options:t)?i.imageTypeText:i,t))+'</h6>\r\n<div class="text-muted mb-1">\r\n <em>\r\n'+(null!=(i=n.if.call(a,null!=(i=null!=t?t.options:t)?i.recommendedDimensions:i,{name:"if",hash:{},fn:e.program(1,o,0),inverse:e.program(3,o,0),data:o}))?i:"")+' </em>\r\n</div>\r\n<div class="my-1 '+u(s(null!=(i=null!=(i=null!=t?t.options:t)?i.styles:i)?i.imageContainer:i,t))+'">\r\n <div class="'+u(s(null!=(i=null!=(i=null!=t?t.options:t)?i.styles:i)?i.imageElement:i,t))+'" style="background-image: url(\''+u(s(null!=(i=null!=t?t.options:t)?i.imageUrl:i,t))+'\')"></div>\r\n</div>\r\n<button class="btn btn-light my-1">'+u((n.lang||t&&t.lang||l).call(a,"upload",{name:"lang",hash:{},data:o}))+" "+u(s(null!=(i=null!=t?t.options:t)?i.imageTypeText:i,t))+"</button>\r\n"+(null!=(i=n.if.call(a,null!=(i=null!=t?t.options:t)?i.hasImage:i,{name:"if",hash:{},fn:e.program(5,o,0),inverse:e.noop,data:o}))?i:"")},useData:!0})},1485:function(e,t,n){e.exports={removeImage:"_3OmsX",imageElement:"_3kJ8m",banner:"uFWnL",thumbnail:"_3_b6l",imageContainer:"_1mYjS"}},1486: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="thumbnail-region"></div>\r\n<div class="dropdown-divider"></div>\r\n<div class="banner-region"></div>'},useData:!0})},1487:function(e,t,n){e.exports={hide:"_5hYaK"}},1488:function(e,t,n){var r=n(10);e.exports=(r.default||r).template({1:function(e,t,n,r,o){return'<div class="content-region"></div>\r\n'},3: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(3,o,0),data:o}))?i:""},useData:!0})},1651:function(e,t,n){"use strict";n.r(t);var r=n(1),o=n(6),i=n(2),a=n(5),l=n(30),u=n(4),s=n(42),c=n(293),p=n(305),f=n(1212),h=n(12),m=n(0),d=n(9),g=n(1294),y=n(253),b=n(190),v=n(3),I=n(1484),w=n.n(I),k=n(1485),C=n.n(k);function T(e){return(T="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}function E(e,t){for(var n=0;n<t.length;n++){var 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 R(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=_(e);if(t){var o=_(this).constructor;n=Reflect.construct(r,arguments,o)}else n=r.apply(this,arguments);return S(this,n)}}function S(e,t){return!t||"object"!==T(t)&&"function"!=typeof t?function(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}(e):t}function _(e){return(_=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)})(e)}var x=function(e){!function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),t&&O(e,t)}(u,e);var t,n,r,a=R(u);function u(e){return function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,u),a.call(this,e)}return t=u,(n=[{key:"initialize",value:function(){this.viewModel=l.a.get("edit:folder:images")}},{key:"events",value:function(){return e={},t="click .".concat(C.a.removeImage),n="onClickRemoveImage",t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e;var e,t,n}},{key:"onClickRemoveImage",value:function(){o.Radio.channel(this.options.channelName).trigger("show:dialog",this.options.imageType)}},{key:"getImageUrl",value:function(){var e=this.options.imageType===d.f.Banners?"createBannerUrl":"createFolderThumbnailUrl";return h.g[e](this.options.originalImage,{fallbackBaseUrl:this.options.imageCdnUrl,fallbackCategoryName:this.options.folderName,type:this.options.imageType})}},{key:"getImageTypeText",value:function(){switch(this.options.imageType){case d.f.Banners:return v.a.getPhrase(this.lang,"banner");case d.f.Thumbnails:return v.a.getPhrase(this.lang,"thumbnail")}}},{key:"viewOptions",value:function(){return{styles:C.a,imageUrl:this.getImageUrl(),hasImage:this.options.originalImage&&this.options.originalImage.get("id"),imageTypeText:this.getImageTypeText(),dimensions:m.k[this.options.imageType],recommendedDimensions:m.m[this.options.imageType]}}},{key:"name",get:function(){return"EditImageComponent"}},{key:"template",get:function(){return w.a}},{key:"lang",get:function(){return"libraryEditor.editImage"}},{key:"className",get:function(){return this.options.imageType===d.f.Thumbnails?"".concat(C.a.thumbnail," mb-2"):"".concat(C.a.banner," mt-2")}},{key:"behaviors",get:function(){var e=this;return[{behaviorClass:c.b,channelName:this.options.channelName,buttonSelector:".btn-light",imageType:this.options.imageType,saveImage:function(t,n){n?(e.viewModel.set({dataUrl:t,type:e.options.imageType}),i.a.AppLinkHelper.trigger({application:m.b.LIBRARY_EDITOR,action:m.a.LibraryEditor.EDIT_FOLDER_IMAGES,args:[e.options.folderId]})):o.Radio.channel(e.options.channelName).trigger("select:image",t,e.options.imageType)}}]}}])&&E(t.prototype,n),r&&E(t,r),u}(i.a.Component),B=n(1486),U=n.n(B);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 j(e,t){return(j=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e})(e,t)}function M(e){var t=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Date.prototype.toString.call(Reflect.construct(Date,[],(function(){}))),!0}catch(e){return!1}}();return function(){var n,r=L(e);if(t){var o=L(this).constructor;n=Reflect.construct(r,arguments,o)}else n=r.apply(this,arguments);return N(this,n)}}function N(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 L(e){return(L=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)})(e)}var A,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&&j(e,t)}(i,e);var t,n,r,o=M(i);function i(e){return function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,i),o.call(this,e)}return t=i,(n=[{key:"regions",value:function(){return{banner:{el:".banner-region",replaceElement:!0},thumbnail:{el:".thumbnail-region",replaceElement:!0}}}},{key:"renderBanner",value:function(){this.showChildView("banner",new x({channelName:this.options.bannerChannel,imageCdnUrl:this.options.imageCdnUrl,imageType:d.f.Banners,folderName:this.options.folderName,originalImage:this.options.bannerImage,folderId:this.options.folderId}))}},{key:"renderThumbnail",value:function(){this.showChildView("thumbnail",new x({channelName:this.options.thumbnailChannel,imageCdnUrl:this.options.imageCdnUrl,imageType:d.f.Thumbnails,folderName:this.options.folderName,originalImage:this.options.thumbnailImage,folderId:this.options.folderId}))}},{key:"onRender",value:function(){this.renderBanner(),this.renderThumbnail()}},{key:"name",get:function(){return"EditImagesWrapperComponent"}},{key:"template",get:function(){return U.a}}])&&D(t.prototype,n),r&&D(t,r),i}(i.a.Component),F=n(1487),V=n.n(F),H=n(1488),z=n.n(H);function Y(e){return(Y="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}function q(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 J(e,t){return(J=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e})(e,t)}function G(e){var t=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Date.prototype.toString.call(Reflect.construct(Date,[],(function(){}))),!0}catch(e){return!1}}();return function(){var n,r=K(e);if(t){var o=K(this).constructor;n=Reflect.construct(r,arguments,o)}else n=r.apply(this,arguments);return Z(this,n)}}function Z(e,t){return!t||"object"!==Y(t)&&"function"!=typeof t?function(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}(e):t}function K(e){return(K=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)})(e)}n.d(t,"EditFolderImagesView",(function(){return X})),function(e){e[e.Upload=0]="Upload",e[e.Crop=1]="Crop"}(A||(A={}));var X=function(e){!function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),t&&J(e,t)}(w,e);var t,n,v,I=G(w);function w(e){return function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,w),I.call(this,e)}return t=w,(n=[{key:"initialize",value:function(){this.popupContentState=A.Upload,this.viewModel=l.a.get("edit:folder:images"),this.viewModel.get("dataUrl")&&(this.selectedImageType=this.viewModel.get("type"),this.newImageEl=new Image,this.newImageEl.src=this.viewModel.get("dataUrl"),this.spinnerModel.set(y.c.Disabled,!1),this.popupContentState=A.Crop),this.libraryDataService=a.a.getInstance(m.g.Library,this),this.imageUploadDataService=a.a.getInstance(m.g.ImageUpload,this),this.bindListeners()}},{key:"regions",value:function(){return{content:{el:".content-region",replaceElement:!0}}}},{key:"events",value:function(){return{"click .back-btn":"onClickBackButton","shown.bs.modal":"renderCropper"}}},{key:"bindListeners",value:function(){var e=this;this.listenTo(m.e.LIBRARY,"".concat(m.f.FOLDER,":").concat(this.options.folderId,":sync"),this.render);var t="".concat(this.channelName,":").concat(d.f.Banners),n="".concat(this.channelName,":").concat(d.f.Thumbnails);this.listenTo(t,"select:image",(function(t){return e.onSelectImage(t,d.f.Banners)})),this.listenTo(n,"select:image",(function(t){return e.onSelectImage(t,d.f.Thumbnails)})),this.listenTo(t,"show:dialog",(function(){return e.onShowDialog(d.f.Banners)})),this.listenTo(n,"show:dialog",(function(){return e.onShowDialog(d.f.Thumbnails)})),this.listenTo(t,"image:error",(function(){return e.triggerMethod("hide")})),this.listenTo(n,"image:error",(function(){return e.triggerMethod("hide")})),this.listenTo(this.channelName,g.a.ImageCropped,this.onImageCropped)}},{key:"onClickBackButton",value:function(){this.popupContentState!==A.Upload&&(this.popupContentState=A.Upload,this.selectedImageType=null,this.newImageEl=null,this.spinnerModel.set(y.c.Disabled,!0),this.renderContent())}},{key:"onClickCrop",value:function(){o.Radio.channel(this.channelName).trigger(g.a.CropImage).trigger(y.b.ShowSpinner)}},{key:"onSelectImage",value:function(e,t){this.selectedImageType=t,this.newImageEl=new Image,this.newImageEl.src=e,this.popupContentState=A.Crop,this.spinnerModel.set(y.c.Disabled,!1),this.renderCropper()}},{key:"onImageCropped",value:function(e){var t=this;this.imageUploadDataService.uploadBase64Image(e,this.selectedImageType,(function(e){return t.onImageUploaded(e)}))}},{key:"onImageUploaded",value:function(e){var t=this;this.triggerMethod("hide");var n={libraryId:this.libraryId,folderId:this.options.folderId,currentImageId:this.getCurrentImageId(),imageModel:e},r=this.selectedImageType===d.f.Banners?u.EntityType.Banner:u.EntityType.Thumbnail,o=this.selectedImageType===d.f.Banners?"addOrUpdateBanner":"addOrUpdateThumbnail";this.libraryDataService[o](n,(function(e){s.a.logUserAction({libraryId:t.libraryId,folderId:t.options.folderId,id:e.get("id")},{actionType:u.UserAction.Upload,entity:r,workflowPhase:u.WorkflowPhase.Complete,location:u.LocationContext.Popup}),t.reloadPage()}))}},{key:"onShowDialog",value:function(e){var t=this,n=new h.d({title:"Remove image?",text:"Are you sure you want to remove this image?",buttons:[{text:"Remove",className:"btn btn-danger",success:!0},{text:"Cancel",className:"btn btn-secondary",close:!0}],channelName:this.options.channelName});setTimeout((function(){return n.render().done((function(){return t.removeImage(e)}))}),200),this.triggerMethod("hide")}},{key:"removeImage",value:function(e){var t=this,n=e===d.f.Banners?"deleteBanner":"deleteThumbnail",r=e===d.f.Banners?this.currentBanner:this.currentThumbnail,o={libraryId:this.libraryId,folderId:this.model.get("id"),imageId:r.get("id")},i=e===d.f.Banners?u.EntityType.Banner:u.EntityType.Thumbnail;this.libraryDataService[n](o,(function(){s.a.logUserAction({libraryId:t.libraryId,folderId:t.model.get("id"),id:r.get("id")},{actionType:u.UserAction.Delete,entity:i,workflowPhase:u.WorkflowPhase.Complete,location:u.LocationContext.Popup}),t.reloadPage()}))}},{key:"reloadPage",value:function(){var e=this,t=i.a.LocationUtils.GetCurrentPath().includes("folders");setTimeout((function(){return i.a.AppLinkHelper.trigger({application:m.b.LIBRARY_EDITOR,action:t?m.a.LibraryEditor.FOLDER:m.a.LibraryEditor.HOME,args:t?[e.options.folderId]:void 0})}),0)}},{key:"getCurrentImageId",value:function(){return this.selectedImageType===d.f.Banners&&this.currentBanner?this.currentBanner.get("id"):this.selectedImageType===d.f.Thumbnails&&this.currentThumbnail?this.currentThumbnail.get("id"):void 0}},{key:"getCropRegionWidth",value:function(){return this.$el.find(".modal-body").width()}},{key:"getImageModel",value:function(){return new p.a({dataUrl:this.newImageEl.src,width:this.newImageEl.width,height:this.newImageEl.height})}},{key:"renderContent",value:function(){this.popupContentState===A.Upload&&(this.getUI("backBtn").addClass(V.a.hide),this.showChildView("content",new W({imageCdnUrl:this.config.get("imageCdnUrl"),folderName:this.model.get("name"),bannerImage:this.currentBanner,thumbnailImage:this.currentThumbnail,bannerChannel:"".concat(this.channelName,":").concat(d.f.Banners),thumbnailChannel:"".concat(this.channelName,":").concat(d.f.Thumbnails),folderId:this.options.folderId})))}},{key:"renderCropper",value:function(){this.popupContentState===A.Crop&&(this.getUI("backBtn").removeClass(V.a.hide),this.showChildView("content",new g.b({model:this.getImageModel(),channelName:this.channelName,imageType:this.selectedImageType,minWidth:m.k[this.selectedImageType].width,minHeight:m.k[this.selectedImageType].height,getCropRegionWidth:r.bind(this.getCropRegionWidth,this)})))}},{key:"viewOptions",value:function(){return{dataFetched:!!this.model&&!!this.libraryId,spinnerEl:h.q.getSpinner({size:h.r.Large,extraClasses:"mx-auto"})}}},{key:"onBeforeRender",value:function(){var e=this;this.model&&this.libraryId||(this.model=this.libraryDataService.getFolder(this.options.folderId),this.libraryDataService.getLibraries((function(t){return e.libraryId=t.first().id})))}},{key:"onRender",value:function(){this.model&&this.libraryId&&(this.currentBanner=this.model.get("banner"),this.currentThumbnail=this.model.get("thumbnail"),this.renderContent())}},{key:"onBeforeDestroy",value:function(){this.viewModel.clear()}},{key:"name",get:function(){return"EditFolderImagesView"}},{key:"title",get:function(){return"Edit Folder Images"}},{key:"template",get:function(){return z.a}},{key:"channelName",get:function(){return h.k.generateUniqueChannelName(this)}},{key:"elements",get:function(){return{backBtn:".back-btn"}}},{key:"behaviors",get:function(){return[{title:"Edit folder images",behaviorClass:c.e,size:"modal-lg",buttons:[{text:"Back",className:"btn btn-light back-btn ".concat(V.a.hide)}],spinnerButtonOptions:{model:this.spinnerModel=new f.a,channelName:this.channelName,buttonText:"Continue",onClick:this.onClickCrop}}]}},{key:"requiredResources",get:function(){return{config:b.b.config}}}])&&q(t.prototype,n),v&&q(t,v),w}(i.a.View)}}]);
@@ -1 +1 @@
1
- (window.webpackJsonp_clickview_library_editor=window.webpackJsonp_clickview_library_editor||[]).push([[38],{1051:function(e,t,n){"use strict";n.d(t,"a",(function(){return f}));var o=n(2),i=n(243);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 s(e,t){for(var n=0;n<t.length;n++){var o=t[n];o.enumerable=o.enumerable||!1,o.configurable=!0,"value"in o&&(o.writable=!0),Object.defineProperty(e,o.key,o)}}function l(e,t){return(l=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e})(e,t)}function c(e){var t=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Date.prototype.toString.call(Reflect.construct(Date,[],(function(){}))),!0}catch(e){return!1}}();return function(){var n,o=d(e);if(t){var i=d(this).constructor;n=Reflect.construct(o,arguments,i)}else n=o.apply(this,arguments);return u(this,n)}}function u(e,t){return!t||"object"!==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 d(e){return(d=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)})(e)}var f=function(e){!function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),t&&l(e,t)}(u,e);var t,n,o,r=c(u);function u(){return a(this,u),r.apply(this,arguments)}return t=u,(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}}])&&s(t.prototype,n),o&&s(t,o),u}(o.a.Model)},1063:function(e,t,n){"use strict";n.d(t,"a",(function(){return f}));var o=n(1),i=n(2),r=n(287);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 s(e,t){for(var n=0;n<t.length;n++){var o=t[n];o.enumerable=o.enumerable||!1,o.configurable=!0,"value"in o&&(o.writable=!0),Object.defineProperty(e,o.key,o)}}function l(e,t){return(l=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e})(e,t)}function c(e){var t=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Date.prototype.toString.call(Reflect.construct(Date,[],(function(){}))),!0}catch(e){return!1}}();return function(){var n,o=d(e);if(t){var i=d(this).constructor;n=Reflect.construct(o,arguments,i)}else n=o.apply(this,arguments);return u(this,n)}}function u(e,t){return!t||"object"!==a(t)&&"function"!=typeof t?function(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}(e):t}function d(e){return(d=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)})(e)}var f=function(e){!function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),t&&l(e,t)}(u,e);var t,n,i,a=c(u);function u(e){return function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,u),a.call(this,e)}return t=u,(n=[{key:"initialize",value:function(){this.listenTo(this.options.channelName,"center:dropdown",this.centerSelectedItem)}},{key:"getExtraClasses",value:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t=e.alignment,n=void 0===t?"left":t,o=e.extraClasses,i="dropdown-menu-".concat(n);return o&&(i="".concat(i," ").concat(o)),i}},{key:"centerSelectedItem",value:function(){var e=this.$el.find(".active");if(e.length){var t=this.$el.scrollTop()+e.position().top,n=.5*this.$el.height()+.5*e.height();this.$el.scrollTop(t-n)}}},{key:"name",get:function(){return"DropdownCollectionComponent"}},{key:"className",get:function(){return"dropdown-menu items-viewpart ".concat(this.getExtraClasses(this.options.displayOptions))}},{key:"attributes",get:function(){return{"aria-labelledby":"dropdownSelector"}}},{key:"childView",get:function(){return r.a}},{key:"childViewOptions",get:function(){var e={channelName:this.options.channelName,analyticsHelper:this.options.analyticsHelper};return o.extend(e,this.options.childOptions)}}])&&s(t.prototype,n),i&&s(t,i),u}(i.a.ComponentCollection)},1105:function(e,t,n){"use strict";n.d(t,"a",(function(){return v}));var o=n(1),i=n(6),r=n(2),a=n(1063),s=n(12),l=n(1106),c=n.n(l),u=n(1107),d=n.n(u);function f(e){return(f="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}function p(e,t){for(var n=0;n<t.length;n++){var o=t[n];o.enumerable=o.enumerable||!1,o.configurable=!0,"value"in o&&(o.writable=!0),Object.defineProperty(e,o.key,o)}}function h(e,t){return(h=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e})(e,t)}function g(e){var t=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Date.prototype.toString.call(Reflect.construct(Date,[],(function(){}))),!0}catch(e){return!1}}();return function(){var n,o=m(e);if(t){var i=m(this).constructor;n=Reflect.construct(o,arguments,i)}else n=o.apply(this,arguments);return y(this,n)}}function y(e,t){return!t||"object"!==f(t)&&"function"!=typeof t?function(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}(e):t}function m(e){return(m=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)})(e)}var v=function(e){!function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),t&&h(e,t)}(u,e);var t,n,r,l=g(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=l.call(this,e)).selectSearch="",t.sameCharIndex=1,t.optionStep=1,t}return t=u,(n=[{key:"initialize",value:function(){this.setModel(),this.bindListeners()}},{key:"regions",value:function(){return{dropdown:{el:".dropdown-region",replaceElement:!0}}}},{key:"events",value:function(){return{keydown:"onKeydown","shown.bs.dropdown":"onShowDropdown"}}},{key:"bindListeners",value:function(){this.listenTo(this.options.channelName,this.options.childOptions.eventName,this.onSelect)}},{key:"onShowDropdown",value:function(){i.Radio.channel(this.options.channelName).trigger("center:dropdown")}},{key:"onKeydown",value:function(e){38===e.keyCode||40===e.keyCode?this.onArrowKeyDown(e):13===e.keyCode?this.render():this.onType(e),i.Radio.channel(this.options.channelName).trigger("center:dropdown")}},{key:"onArrowKeyDown",value:function(e){s.c.getSelected(this.collection)?this.optionStep=1:this.optionStep=0;var t=this.getNextModel(e.keyCode);for(t||(s.c.deselectAll(this.collection),t=this.getNextModel(e.keyCode));this.isDisabled(t);)this.optionStep++,t=this.getNextModel(e.keyCode);this.onSelect(t)}},{key:"onType",value:function(e){if(1===e.key.toString().length){var t=this.getModelMatch(e);t&&this.onSelect(t),this.runTimer()}}},{key:"onSelect",value:function(e){this.isDisabled(e)||(s.c.setSelected(e.get("id"),this.collection),this.setModel(),this.getUI("dropdownToggle").text(this.getButtonText()),i.Radio.channel(this.options.channelName).trigger("select:option:selected",e))}},{key:"setModel",value:function(){this.model=s.c.getSelected(this.collection)}},{key:"getNextModel",value:function(e){var t,n=s.c.getSelected(this.collection)||this.collection.first(),o=this.collection.indexOf(n);return(t=38===e?this.collection.at(o-this.optionStep):this.collection.at(o+this.optionStep))||(s.c.deselectAll(this.collection),t=this.collection.first(),this.optionStep=0),t}},{key:"getModelMatch",value:function(e){var t,n=this;return 1===this.selectSearch.length&&this.selectSearch===e.key?t=this.handleSameCharIndex(e.key):(this.selectSearch+=e.key,this.sameCharIndex=1),t||(t=o.find(this.collection.models,(function(e){return e.get(n.options.displayProperty).toLowerCase().slice(0,n.selectSearch.length).includes(n.selectSearch.toLowerCase())}))),t}},{key:"handleSameCharIndex",value:function(e){var t=this,n=o.filter(this.collection.models,(function(n){return n.get(t.options.displayProperty).toLowerCase().slice(0,1)===e}));if(n.length>1){var i=n[this.sameCharIndex];return i||(i=o.first(n),this.sameCharIndex=0),this.sameCharIndex++,i}return o.first(n)}},{key:"runTimer",value:function(){var e=this;this.scopedTimerIndex&&clearTimeout(this.scopedTimerIndex),this.scopedTimerIndex=window.setTimeout((function(){e.selectSearch=""}),500)}},{key:"isDisabled",value:function(e){var t;if(e.get("divider"))return!0;if(!o.isFunction(this.options.childOptions.isDisabled))return!1;for(var n=arguments.length,i=new Array(n>1?n-1:0),r=1;r<n;r++)i[r-1]=arguments[r];return(t=this.options.childOptions.isDisabled).call.apply(t,[this,e].concat(i))}},{key:"getButtonText",value:function(){if(this.options.disabled)return this.options.noOptionsText;var e=s.c.getSelected(this.collection);return e&&e.get(this.options.displayProperty)||this.options.placeholderText}},{key:"viewOptions",value:function(){return{styles:d.a,inputName:this.options.inputName,disabled:this.options.disabled,placeholderText:this.getButtonText()}}},{key:"onRender",value:function(){this.showChildView("dropdown",new a.a({collection:this.collection,channelName:this.options.channelName,childOptions:o.extend(this.options.childOptions),displayOptions:{extraClasses:"w-100 ".concat(d.a.dropdownMenu)},analyticsHelper:this.options.analyticsHelper}))}},{key:"name",get:function(){return"SelectComponent"}},{key:"template",get:function(){return c.a}},{key:"defaults",get:function(){return{displayProperty:"name"}}},{key:"elements",get:function(){return{dropdownToggle:".dropdown-toggle"}}}])&&p(t.prototype,n),r&&p(t,r),u}(r.a.Component)},1106:function(e,t,n){var o=n(10);e.exports=(o.default||o).template({1:function(e,t,n,o,i){var r;e.propertyIsEnumerable;return e.escapeExpression(e.lambda(null!=(r=null!=(r=null!=t?t.options:t)?r.styles:r)?r.disabled:r,t))},3:function(e,t,n,o,i){return" disabled"},compiler:[8,">= 4.3.0"],main:function(e,t,n,o,i){e.propertyIsEnumerable;var r,a=e.lambda,s=e.escapeExpression,l=null!=t?t:e.nullContext||{};return'<button \r\n class="dropdown-toggle form-control btn-block text-left position-relative '+s(a(null!=(r=null!=(r=null!=t?t.options:t)?r.styles:r)?r.selectButton:r,t))+" "+(null!=(r=n.if.call(l,null!=(r=null!=t?t.options:t)?r.disabled:r,{name:"if",hash:{},fn:e.program(1,i,0),inverse:e.noop,data:i}))?r:"")+'" \r\n type="button" \r\n id="dropdownMenuButton" \r\n data-toggle="dropdown" \r\n aria-haspopup="true" \r\n aria-expanded="false"\r\n '+(null!=(r=n.if.call(l,null!=(r=null!=t?t.options:t)?r.disabled:r,{name:"if",hash:{},fn:e.program(3,i,0),inverse:e.noop,data:i}))?r:"")+' \r\n name="'+s(a(null!=(r=null!=t?t.options:t)?r.inputName:r,t))+'"\r\n >\r\n '+s(a(null!=(r=null!=t?t.options:t)?r.placeholderText:r,t))+'\r\n</button>\r\n<div class="dropdown-region"></div>\r\n<div class="form-feedback"></div>'},useData:!0})},1107:function(e,t,n){e.exports={dropdownMenu:"_2RaQu",selectButton:"_2xGqi",disabled:"_15kWr"}},1333:function(e,t,n){var o=n(10);e.exports=(o.default||o).template({1:function(e,t,n,o,i){e.propertyIsEnumerable;var r,a=e.escapeExpression,s=e.lambda;return'<p class="font-weight-bold mb-0">'+a((n.lang||t&&t.lang||e.hooks.helperMissing).call(null!=t?t:e.nullContext||{},"currentType",{name:"lang",hash:{metadataType:null!=(r=null!=t?t.options:t)?r.metadataType:r},data:i}))+'</p>\r\n<p class="mb-3 '+a(s(null!=(r=null!=(r=null!=t?t.options:t)?r.styles:r)?r.metadataValue:r,t))+'">'+(null!=(r=s(null!=(r=null!=t?t.options:t)?r.metadataValue:r,t))?r:"")+"</p>\r\n"},3:function(e,t,n,o,i){var r;e.propertyIsEnumerable;return' <textarea\r\n id="suggest-edit"\r\n placeholder="'+e.escapeExpression(e.lambda(null!=(r=null!=t?t.options:t)?r.suggestionPlaceholder:r,t))+'"\r\n class="form-control"\r\n name="suggestion"\r\n ></textarea>\r\n <div class="form-feedback"></div>\r\n'},compiler:[8,">= 4.3.0"],main:function(e,t,n,o,i){e.propertyIsEnumerable;var r,a=null!=t?t:e.nullContext||{},s=e.hooks.helperMissing,l=e.escapeExpression;return(null!=(r=n.unless.call(a,null!=(r=null!=t?t.options:t)?r.isOtherType:r,{name:"unless",hash:{},fn:e.program(1,i,0),inverse:e.noop,data:i}))?r:"")+'\r\n<div class="dropdown-divider"></div>\r\n\r\n<div class="form-group">\r\n <label for="suggest-edit" class="font-weight-bold">'+l((n.lang||t&&t.lang||s).call(a,"suggestionSubheading",{name:"lang",hash:{},data:i}))+'</label>\r\n <div class="rating-select-region"></div>\r\n <div class="rating-form-feedback invalid-feedback"></div>\r\n'+(null!=(r=n.unless.call(a,null!=(r=null!=t?t.options:t)?r.useRatingSelect:r,{name:"unless",hash:{},fn:e.program(3,i,0),inverse:e.noop,data:i}))?r:"")+'</div>\r\n\r\n<div class="form-group">\r\n <label for="reason-for-edit" class="font-weight-bold">'+l((n.lang||t&&t.lang||s).call(a,"reasoningSubheading",{name:"lang",hash:{},data:i}))+'</label>\r\n <textarea\r\n id="reason-for-edit"\r\n placeholder="'+l((n.lang||t&&t.lang||s).call(a,"reasoningPlaceholder",{name:"lang",hash:{},data:i}))+'"\r\n class="form-control"\r\n name="reason"\r\n ></textarea>\r\n <div class="form-feedback"></div>\r\n</div>'},useData:!0})},1334:function(e,t,n){e.exports={metadataValue:"_3nkrW"}},1335:function(e,t,n){var o=n(10);e.exports=(o.default||o).template({1:function(e,t,n,o,i){e.propertyIsEnumerable;var r=null!=t?t:e.nullContext||{},a=e.hooks.helperMissing,s=e.escapeExpression;return"<p>"+s((n.lang||t&&t.lang||a).call(r,"guidelines",{name:"lang",hash:{},data:i}))+'</p>\r\n<p class="font-weight-bold mb-1">'+s((n.lang||t&&t.lang||a).call(r,"dropdownHeading",{name:"lang",hash:{},data:i}))+'</p>\r\n<div class="metadata-dropdown-region position-relative"></div>\r\n<div class="suggest-edit-region"></div>\r\n'},3:function(e,t,n,o,i){var r;e.propertyIsEnumerable;return(null!=(r=e.lambda(null!=(r=null!=t?t.options:t)?r.spinnerEl:r,t))?r:"")+"\r\n"},compiler:[8,">= 4.3.0"],main:function(e,t,n,o,i){var r;e.propertyIsEnumerable;return null!=(r=n.if.call(null!=t?t:e.nullContext||{},null!=(r=null!=t?t.options:t)?r.dataFetched:r,{name:"if",hash:{},fn:e.program(1,i,0),inverse:e.program(3,i,0),data:i}))?r:""},useData:!0})},1484:function(e,t,n){"use strict";n.r(t);var o=n(1),i=n(3),r=n(2),a=n(5),s=n(30),l=n(4),c=n(42),u=n(12);function d(e){return(d="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}function f(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function p(e,t){return(p=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e})(e,t)}function h(e){var t=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Date.prototype.toString.call(Reflect.construct(Date,[],(function(){}))),!0}catch(e){return!1}}();return function(){var n,o=y(e);if(t){var i=y(this).constructor;n=Reflect.construct(o,arguments,i)}else n=o.apply(this,arguments);return g(this,n)}}function g(e,t){return!t||"object"!==d(t)&&"function"!=typeof t?function(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}(e):t}function y(e){return(y=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)})(e)}var m=function(e){!function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),t&&p(e,t)}(n,e);var t=h(n);function n(){return f(this,n),t.apply(this,arguments)}return n}(r.a.Model),v=n(307),b=n(1051),w=n(134),S=n(187),k=n(0),O=n(1072),M=n(1105),T=n(243),x=n(282),E=n(58),C=n(6),R=n(29),P=n(9),_=n(1217),V=n(186),N=n(1055),j=n(1333),D=n.n(j),I=n(1334),A=n.n(I);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 B(e,t){for(var n=0;n<t.length;n++){var o=t[n];o.enumerable=o.enumerable||!1,o.configurable=!0,"value"in o&&(o.writable=!0),Object.defineProperty(e,o.key,o)}}function F(e,t){return(F=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e})(e,t)}function U(e){var t=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Date.prototype.toString.call(Reflect.construct(Date,[],(function(){}))),!0}catch(e){return!1}}();return function(){var n,o=q(e);if(t){var i=q(this).constructor;n=Reflect.construct(o,arguments,i)}else n=o.apply(this,arguments);return H(this,n)}}function H(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 q(e){return(q=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)})(e)}var J,z=function(e){!function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),t&&F(e,t)}(s,e);var t,n,o,a=U(s);function s(e){return function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,s),a.call(this,e)}return t=s,(n=[{key:"regions",value:function(){return{ratingSelect:{el:".rating-select-region",replaceElement:!0}}}},{key:"getMetadataValue",value:function(){return this.options.metadataType===V.e.BroadcastDate?this.options.metadataValue?R(this.options.metadataValue).format(P.l.FULL_YEAR):i.a.getPhrase(this.lang,"noMetadataValue"):this.options.metadataValue instanceof r.a.Collection?this.options.metadataValue.length?this.options.metadataValue.map((function(e){return e.get("name")})).join(", "):i.a.getPhrase(this.lang,"noMetadataValue"):this.options.metadataValue||i.a.getPhrase(this.lang,"noMetadataValue")}},{key:"getSuggestionPlaceholder",value:function(){return this.options.metadataType===V.e.Other?i.a.getPhrase(this.lang,"otherSuggestionPlaceholder"):i.a.getPhrase(this.lang,"suggestionPlaceholder",{metadataType:N.i.translateMetadataName(this.options.metadataType).toLowerCase()})}},{key:"renderRatingSelect",value:function(){this.options.ratingValidationMessage?this.getUI("ratingValidation").text(this.options.ratingValidationMessage).attr("style","display: block;"):this.getUI("ratingValidation").hide(),this.options.metadataType===V.e.Rating&&this.showChildView("ratingSelect",new _.a({model:this.options.currentRating,collection:this.options.ratings,parentChannelName:this.options.channelName,hideHeaderText:!0,hideRemove:!0}))}},{key:"viewOptions",value:function(){return{styles:A.a,metadataValue:this.getMetadataValue(),useRatingSelect:this.options.metadataType===V.e.Rating,isOtherType:this.options.metadataType===V.e.Other,metadataType:N.i.translateMetadataName(this.options.metadataType).toLowerCase(),suggestionPlaceholder:this.getSuggestionPlaceholder()}}},{key:"onRender",value:function(){this.renderRatingSelect(),this.stickit(),C.Validation.bind(this)}},{key:"onDestroy",value:function(){this.unstickit(),C.Validation.unbind(this)}},{key:"name",get:function(){return"SuggestEditComponent"}},{key:"template",get:function(){return D.a}},{key:"tagName",get:function(){return"form"}},{key:"className",get:function(){return"mt-3"}},{key:"lang",get:function(){return"libraryEditor.suggestEdit"}},{key:"bindings",get:function(){return{"[name=suggestion]":{observe:"suggestion",setOptions:{validate:!0}},"[name=reason]":{observe:"reason",setOptions:{validate:!0}}}}},{key:"elements",get:function(){return{ratingValidation:".rating-form-feedback"}}}])&&B(t.prototype,n),o&&B(t,o),s}(r.a.Component);!function(e){e[e.Email=0]="Email"}(J||(J={}));var G=n(156),K=n(61),W=Object.assign(Object.assign({},G.a),{createSuggestEditNotification:function(e){return{_type:K.a.SuggestEdit,groupId:e.groupId,receiverId:0,countryCode:e.countryCode,channels:[J.Email],data:{video:e.video,user:e.user,property:e.property,suggestion:e.suggestion,reason:e.reason,currentValue:e.currentValue}}}}),$=n(1335),Q=n.n($);function Y(e){return(Y="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}function X(e,t){for(var n=0;n<t.length;n++){var o=t[n];o.enumerable=o.enumerable||!1,o.configurable=!0,"value"in o&&(o.writable=!0),Object.defineProperty(e,o.key,o)}}function Z(e,t){return(Z=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e})(e,t)}function ee(e){var t=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Date.prototype.toString.call(Reflect.construct(Date,[],(function(){}))),!0}catch(e){return!1}}();return function(){var n,o=ne(e);if(t){var i=ne(this).constructor;n=Reflect.construct(o,arguments,i)}else n=o.apply(this,arguments);return te(this,n)}}function te(e,t){return!t||"object"!==Y(t)&&"function"!=typeof t?function(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}(e):t}function ne(e){return(ne=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)})(e)}n.d(t,"SuggestAnEditView",(function(){return oe}));var oe=function(e){!function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),t&&Z(e,t)}(f,e);var t,n,r,d=ee(f);function f(e){return function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,f),d.call(this,e)}return t=f,(n=[{key:"initialize",value:function(){this.getViewModel(),this.videoDataService=a.a.getInstance(k.g.Video,this),this.ratingsDataService=a.a.getInstance(k.g.Ratings,this),this.notificationDataService=a.a.getInstance(k.g.Notifications,this),this.selectedMetadata=new m,this.metadataCollection=this.getMetadataCollection(),this.bindListeners()}},{key:"regions",value:function(){return{dropdown:{el:".metadata-dropdown-region",replaceElement:!1},suggestEdit:{el:".suggest-edit-region",replaceElement:!0}}}},{key:"bindListeners",value:function(){this.listenTo(this.channelName,"select:option:selected",this.onMetadataSelect),this.listenTo(this.channelName,"select:rating",this.onSelectRating),this.listenTo(k.e.VIDEO,"".concat(k.f.VIDEOS,":").concat(this.options.videoId,":sync"),this.render),this.listenTo(k.e.NOTIFICATIONS,"".concat(k.f.SUGGEST_EDIT,":error"),this.onError)}},{key:"onSubmit",value:function(){var e=this;if(this.validateForm()){this.spinnerModel.set(T.c.ShowSpinner,!0);var t=this.selectedMetadata.get("metadataType")===V.e.Rating?this.viewModel.get("ratingSuggestion"):this.viewModel.get("suggestion"),n=this.config.get("suggestEditMetadataGroupId"),o=W.createSuggestEditNotification({groupId:n,countryCode:this.currentUser.get("countryCode"),video:this.model.toJSON(),user:this.currentUser.toJSON(),property:this.selectedMetadata.get("metadataType").toLowerCase(),suggestion:t,reason:this.viewModel.get("reason"),currentValue:this.selectedMetadata.get("metadataValue")});this.notificationDataService.suggestEdit(o,(function(){e.triggerMethod("hide"),e.spinnerModel.set(T.c.ShowSpinner,!1),e.spinnerModel.set(T.c.Disabled,!0)})),this.logAction(),this.viewModel.clear()}}},{key:"onError",value:function(){this.spinnerModel.set(T.c.ShowSpinner,!1)}},{key:"onMetadataSelect",value:function(e){this.selectMetadata(e),this.renderSuggestEdit()}},{key:"onSelectRating",value:function(e){this.viewModel.set("ratingSuggestion",e.get("name")),this.renderSuggestEdit()}},{key:"selectMetadata",value:function(e){this.spinnerModel.set(T.c.Disabled,!1),u.c.setSelected(e.get("id"),this.metadataCollection),this.selectedMetadata.set({metadataType:e.get("name"),metadataValue:e.get("name")!==V.e.Other?this.model.get(e.get("property")):null}),e.get("name")!==V.e.Rating&&this.viewModel.set("ratingSuggestion","")}},{key:"getMetadataCollection",value:function(){return new O.a(Object.keys(V.f).map((function(e){return V.f[e]})))}},{key:"getMetadataByType",value:function(e){return this.metadataCollection.findWhere({name:e})}},{key:"getViewModel",value:function(){this.viewModel=s.a.get(this.viewModelName),this.viewModel.addValidation(N.h)}},{key:"validateForm",value:function(){this.renderSuggestEdit(),this.viewModel.validate();var e=this.viewModel.toJSON(),t=e.reason,n=e.suggestion;return!(this.getRatingValidationMessage()||this.selectedMetadata.get("metadataType")!==V.e.Rating&&!n||!t)}},{key:"getRatingValidationMessage",value:function(){if(this.selectedMetadata.get("metadataType")!==V.e.Rating)return"";var e=this.selectedMetadata.get("metadataValue"),t=this.viewModel.get("ratingSuggestion");return t?e===t?N.g.original():"":N.g.empty()}},{key:"checkPreselection",value:function(){if(!this.selectedMetadata.get("metadataType")&&this.options.metadata&&this.dataFetched()){var e=this.getMetadataByType(this.options.metadata);this.selectMetadata(e)}}},{key:"logAction",value:function(){var e=u.x.getSourceTypes(this.model);e=o.filter(e,(function(e){return e!==E.a.CustomLibrary}));var t={videoSourceTypes:o.sortBy(o.unique(e),(function(e){return e})).join(","),videoId:this.model.get("id"),metadataProperty:this.selectedMetadata.get("metadataType"),metadataPropertyValue:this.selectedMetadata.get("metadataValue"),suggestion:this.viewModel.get("suggestion"),reason:this.viewModel.get("reason")};c.a.logUserAction(t,{descriptor:l.p.Edit,location:l.k.Popup,actionType:l.q.Suggest,entity:l.e.Video})}},{key:"dataFetched",value:function(){return!!this.model&&!!this.ratingCollection}},{key:"renderMetadataDropdown",value:function(){this.showChildView("dropdown",new M.a({collection:N.i.translateMetadataCollectionNames(this.metadataCollection),channelName:this.channelName,childOptions:{titleProperty:"name",eventName:"select:option:click"},placeholderText:this.selectedMetadata.get("metadataType")||i.a.getPhrase(this.lang,"dropdownPlaceholder"),analyticsHelper:c.a}))}},{key:"renderSuggestEdit",value:function(){this.selectedMetadata.get("metadataType")&&this.showChildView("suggestEdit",new z({model:this.viewModel,channelName:this.channelName,ratings:this.ratingCollection,currentRating:this.viewModel.get("ratingSuggestion")?new v.a(this.ratingCollection.findWhere({name:this.viewModel.get("ratingSuggestion")})):null,metadataType:this.selectedMetadata.get("metadataType"),metadataValue:this.selectedMetadata.get("metadataValue"),ratingValidationMessage:this.getRatingValidationMessage()}))}},{key:"onBeforeRender",value:function(){this.dataFetched()||(this.model=this.videoDataService.getVideo(this.options.videoId),this.ratingCollection=this.ratingsDataService.getAllRatings()),this.checkPreselection()}},{key:"viewOptions",value:function(){return{dataFetched:this.dataFetched(),spinnerEl:u.q.getSpinner({size:u.r.Large,extraClasses:"mx-auto"})}}},{key:"onRender",value:function(){this.dataFetched()&&(this.renderMetadataDropdown(),this.renderSuggestEdit())}},{key:"name",get:function(){return"SuggestAnEditView"}},{key:"template",get:function(){return Q.a}},{key:"tagName",get:function(){return"form"}},{key:"className",get:function(){return"form-group"}},{key:"lang",get:function(){return"libraryEditor.suggestAnEdit"}},{key:"title",get:function(){return i.a.getPhrase(this.lang,"title")}},{key:"channelName",get:function(){return u.k.generateUniqueChannelName(this)}},{key:"viewModelName",get:function(){return"".concat(this.name,":").concat(this.options.videoId)}},{key:"behaviors",get:function(){var e=this;return[{behaviorClass:x.e,title:i.a.getPhrase(this.lang,"heading"),spinnerButtonOptions:{model:this.spinnerModel=new b.a,channelName:this.channelName,buttonText:i.a.getPhrase(this.lang,"submit"),onClick:function(){return e.onSubmit()}}}]}},{key:"requiredResources",get:function(){return{config:S.b.config,currentUser:w.b.currentUser}}}])&&X(t.prototype,n),r&&X(t,r),f}(r.a.View)}}]);
1
+ (window.webpackJsonp_clickview_library_editor=window.webpackJsonp_clickview_library_editor||[]).push([[38],{1212:function(e,t,n){"use strict";n.d(t,"a",(function(){return f}));var o=n(2),i=n(253);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 s(e,t){for(var n=0;n<t.length;n++){var o=t[n];o.enumerable=o.enumerable||!1,o.configurable=!0,"value"in o&&(o.writable=!0),Object.defineProperty(e,o.key,o)}}function l(e,t){return(l=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e})(e,t)}function c(e){var t=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Date.prototype.toString.call(Reflect.construct(Date,[],(function(){}))),!0}catch(e){return!1}}();return function(){var n,o=d(e);if(t){var i=d(this).constructor;n=Reflect.construct(o,arguments,i)}else n=o.apply(this,arguments);return u(this,n)}}function u(e,t){return!t||"object"!==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 d(e){return(d=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)})(e)}var f=function(e){!function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),t&&l(e,t)}(u,e);var t,n,o,r=c(u);function u(){return a(this,u),r.apply(this,arguments)}return t=u,(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}}])&&s(t.prototype,n),o&&s(t,o),u}(o.a.Model)},1224:function(e,t,n){"use strict";n.d(t,"a",(function(){return f}));var o=n(1),i=n(2),r=n(298);function a(e){return(a="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}function s(e,t){for(var n=0;n<t.length;n++){var o=t[n];o.enumerable=o.enumerable||!1,o.configurable=!0,"value"in o&&(o.writable=!0),Object.defineProperty(e,o.key,o)}}function l(e,t){return(l=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e})(e,t)}function c(e){var t=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Date.prototype.toString.call(Reflect.construct(Date,[],(function(){}))),!0}catch(e){return!1}}();return function(){var n,o=d(e);if(t){var i=d(this).constructor;n=Reflect.construct(o,arguments,i)}else n=o.apply(this,arguments);return u(this,n)}}function u(e,t){return!t||"object"!==a(t)&&"function"!=typeof t?function(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}(e):t}function d(e){return(d=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)})(e)}var f=function(e){!function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),t&&l(e,t)}(u,e);var t,n,i,a=c(u);function u(e){return function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,u),a.call(this,e)}return t=u,(n=[{key:"initialize",value:function(){this.listenTo(this.options.channelName,"center:dropdown",this.centerSelectedItem)}},{key:"getExtraClasses",value:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t=e.alignment,n=void 0===t?"left":t,o=e.extraClasses,i="dropdown-menu-".concat(n);return o&&(i="".concat(i," ").concat(o)),i}},{key:"centerSelectedItem",value:function(){var e=this.$el.find(".active");if(e.length){var t=this.$el.scrollTop()+e.position().top,n=.5*this.$el.height()+.5*e.height();this.$el.scrollTop(t-n)}}},{key:"name",get:function(){return"DropdownCollectionComponent"}},{key:"className",get:function(){return"dropdown-menu items-viewpart ".concat(this.getExtraClasses(this.options.displayOptions))}},{key:"attributes",get:function(){return{"aria-labelledby":"dropdownSelector"}}},{key:"childView",get:function(){return r.a}},{key:"childViewOptions",get:function(){var e={channelName:this.options.channelName,analyticsHelper:this.options.analyticsHelper};return o.extend(e,this.options.childOptions)}}])&&s(t.prototype,n),i&&s(t,i),u}(i.a.ComponentCollection)},1266:function(e,t,n){"use strict";n.d(t,"a",(function(){return v}));var o=n(1),i=n(6),r=n(2),a=n(1224),s=n(12),l=n(1267),c=n.n(l),u=n(1268),d=n.n(u);function f(e){return(f="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}function p(e,t){for(var n=0;n<t.length;n++){var o=t[n];o.enumerable=o.enumerable||!1,o.configurable=!0,"value"in o&&(o.writable=!0),Object.defineProperty(e,o.key,o)}}function h(e,t){return(h=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e})(e,t)}function g(e){var t=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Date.prototype.toString.call(Reflect.construct(Date,[],(function(){}))),!0}catch(e){return!1}}();return function(){var n,o=m(e);if(t){var i=m(this).constructor;n=Reflect.construct(o,arguments,i)}else n=o.apply(this,arguments);return y(this,n)}}function y(e,t){return!t||"object"!==f(t)&&"function"!=typeof t?function(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}(e):t}function m(e){return(m=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)})(e)}var v=function(e){!function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),t&&h(e,t)}(u,e);var t,n,r,l=g(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=l.call(this,e)).selectSearch="",t.sameCharIndex=1,t.optionStep=1,t}return t=u,(n=[{key:"initialize",value:function(){this.setModel(),this.bindListeners()}},{key:"regions",value:function(){return{dropdown:{el:".dropdown-region",replaceElement:!0}}}},{key:"events",value:function(){return{keydown:"onKeydown","shown.bs.dropdown":"onShowDropdown"}}},{key:"bindListeners",value:function(){this.listenTo(this.options.channelName,this.options.childOptions.eventName,this.onSelect)}},{key:"onShowDropdown",value:function(){i.Radio.channel(this.options.channelName).trigger("center:dropdown")}},{key:"onKeydown",value:function(e){38===e.keyCode||40===e.keyCode?this.onArrowKeyDown(e):13===e.keyCode?this.render():this.onType(e),i.Radio.channel(this.options.channelName).trigger("center:dropdown")}},{key:"onArrowKeyDown",value:function(e){s.c.getSelected(this.collection)?this.optionStep=1:this.optionStep=0;var t=this.getNextModel(e.keyCode);for(t||(s.c.deselectAll(this.collection),t=this.getNextModel(e.keyCode));this.isDisabled(t);)this.optionStep++,t=this.getNextModel(e.keyCode);this.onSelect(t)}},{key:"onType",value:function(e){if(1===e.key.toString().length){var t=this.getModelMatch(e);t&&this.onSelect(t),this.runTimer()}}},{key:"onSelect",value:function(e){this.isDisabled(e)||(s.c.setSelected(e.get("id"),this.collection),this.setModel(),this.getUI("dropdownToggle").text(this.getButtonText()),i.Radio.channel(this.options.channelName).trigger("select:option:selected",e))}},{key:"setModel",value:function(){this.model=s.c.getSelected(this.collection)}},{key:"getNextModel",value:function(e){var t,n=s.c.getSelected(this.collection)||this.collection.first(),o=this.collection.indexOf(n);return(t=38===e?this.collection.at(o-this.optionStep):this.collection.at(o+this.optionStep))||(s.c.deselectAll(this.collection),t=this.collection.first(),this.optionStep=0),t}},{key:"getModelMatch",value:function(e){var t,n=this;return 1===this.selectSearch.length&&this.selectSearch===e.key?t=this.handleSameCharIndex(e.key):(this.selectSearch+=e.key,this.sameCharIndex=1),t||(t=o.find(this.collection.models,(function(e){return e.get(n.options.displayProperty).toLowerCase().slice(0,n.selectSearch.length).includes(n.selectSearch.toLowerCase())}))),t}},{key:"handleSameCharIndex",value:function(e){var t=this,n=o.filter(this.collection.models,(function(n){return n.get(t.options.displayProperty).toLowerCase().slice(0,1)===e}));if(n.length>1){var i=n[this.sameCharIndex];return i||(i=o.first(n),this.sameCharIndex=0),this.sameCharIndex++,i}return o.first(n)}},{key:"runTimer",value:function(){var e=this;this.scopedTimerIndex&&clearTimeout(this.scopedTimerIndex),this.scopedTimerIndex=window.setTimeout((function(){e.selectSearch=""}),500)}},{key:"isDisabled",value:function(e){var t;if(e.get("divider"))return!0;if(!o.isFunction(this.options.childOptions.isDisabled))return!1;for(var n=arguments.length,i=new Array(n>1?n-1:0),r=1;r<n;r++)i[r-1]=arguments[r];return(t=this.options.childOptions.isDisabled).call.apply(t,[this,e].concat(i))}},{key:"getButtonText",value:function(){if(this.options.disabled)return this.options.noOptionsText;var e=s.c.getSelected(this.collection);return e&&e.get(this.options.displayProperty)||this.options.placeholderText}},{key:"viewOptions",value:function(){return{styles:d.a,inputName:this.options.inputName,disabled:this.options.disabled,placeholderText:this.getButtonText()}}},{key:"onRender",value:function(){this.showChildView("dropdown",new a.a({collection:this.collection,channelName:this.options.channelName,childOptions:o.extend(this.options.childOptions),displayOptions:{extraClasses:"w-100 ".concat(d.a.dropdownMenu)},analyticsHelper:this.options.analyticsHelper}))}},{key:"name",get:function(){return"SelectComponent"}},{key:"template",get:function(){return c.a}},{key:"defaults",get:function(){return{displayProperty:"name"}}},{key:"elements",get:function(){return{dropdownToggle:".dropdown-toggle"}}}])&&p(t.prototype,n),r&&p(t,r),u}(r.a.Component)},1267:function(e,t,n){var o=n(10);e.exports=(o.default||o).template({1:function(e,t,n,o,i){var r;e.propertyIsEnumerable;return e.escapeExpression(e.lambda(null!=(r=null!=(r=null!=t?t.options:t)?r.styles:r)?r.disabled:r,t))},3:function(e,t,n,o,i){return" disabled"},compiler:[8,">= 4.3.0"],main:function(e,t,n,o,i){e.propertyIsEnumerable;var r,a=e.lambda,s=e.escapeExpression,l=null!=t?t:e.nullContext||{};return'<button \r\n class="dropdown-toggle form-control btn-block text-left position-relative '+s(a(null!=(r=null!=(r=null!=t?t.options:t)?r.styles:r)?r.selectButton:r,t))+" "+(null!=(r=n.if.call(l,null!=(r=null!=t?t.options:t)?r.disabled:r,{name:"if",hash:{},fn:e.program(1,i,0),inverse:e.noop,data:i}))?r:"")+'" \r\n type="button" \r\n id="dropdownMenuButton" \r\n data-toggle="dropdown" \r\n aria-haspopup="true" \r\n aria-expanded="false"\r\n '+(null!=(r=n.if.call(l,null!=(r=null!=t?t.options:t)?r.disabled:r,{name:"if",hash:{},fn:e.program(3,i,0),inverse:e.noop,data:i}))?r:"")+' \r\n name="'+s(a(null!=(r=null!=t?t.options:t)?r.inputName:r,t))+'"\r\n >\r\n '+s(a(null!=(r=null!=t?t.options:t)?r.placeholderText:r,t))+'\r\n</button>\r\n<div class="dropdown-region"></div>\r\n<div class="form-feedback"></div>'},useData:!0})},1268:function(e,t,n){e.exports={dropdownMenu:"_2RaQu",selectButton:"_2xGqi",disabled:"_15kWr"}},1494:function(e,t,n){var o=n(10);e.exports=(o.default||o).template({1:function(e,t,n,o,i){e.propertyIsEnumerable;var r,a=e.escapeExpression,s=e.lambda;return'<p class="font-weight-bold mb-0">'+a((n.lang||t&&t.lang||e.hooks.helperMissing).call(null!=t?t:e.nullContext||{},"currentType",{name:"lang",hash:{metadataType:null!=(r=null!=t?t.options:t)?r.metadataType:r},data:i}))+'</p>\r\n<p class="mb-3 '+a(s(null!=(r=null!=(r=null!=t?t.options:t)?r.styles:r)?r.metadataValue:r,t))+'">'+(null!=(r=s(null!=(r=null!=t?t.options:t)?r.metadataValue:r,t))?r:"")+"</p>\r\n"},3:function(e,t,n,o,i){var r;e.propertyIsEnumerable;return' <textarea\r\n id="suggest-edit"\r\n placeholder="'+e.escapeExpression(e.lambda(null!=(r=null!=t?t.options:t)?r.suggestionPlaceholder:r,t))+'"\r\n class="form-control"\r\n name="suggestion"\r\n ></textarea>\r\n <div class="form-feedback"></div>\r\n'},compiler:[8,">= 4.3.0"],main:function(e,t,n,o,i){e.propertyIsEnumerable;var r,a=null!=t?t:e.nullContext||{},s=e.hooks.helperMissing,l=e.escapeExpression;return(null!=(r=n.unless.call(a,null!=(r=null!=t?t.options:t)?r.isOtherType:r,{name:"unless",hash:{},fn:e.program(1,i,0),inverse:e.noop,data:i}))?r:"")+'\r\n<div class="dropdown-divider"></div>\r\n\r\n<div class="form-group">\r\n <label for="suggest-edit" class="font-weight-bold">'+l((n.lang||t&&t.lang||s).call(a,"suggestionSubheading",{name:"lang",hash:{},data:i}))+'</label>\r\n <div class="rating-select-region"></div>\r\n <div class="rating-form-feedback invalid-feedback"></div>\r\n'+(null!=(r=n.unless.call(a,null!=(r=null!=t?t.options:t)?r.useRatingSelect:r,{name:"unless",hash:{},fn:e.program(3,i,0),inverse:e.noop,data:i}))?r:"")+'</div>\r\n\r\n<div class="form-group">\r\n <label for="reason-for-edit" class="font-weight-bold">'+l((n.lang||t&&t.lang||s).call(a,"reasoningSubheading",{name:"lang",hash:{},data:i}))+'</label>\r\n <textarea\r\n id="reason-for-edit"\r\n placeholder="'+l((n.lang||t&&t.lang||s).call(a,"reasoningPlaceholder",{name:"lang",hash:{},data:i}))+'"\r\n class="form-control"\r\n name="reason"\r\n ></textarea>\r\n <div class="form-feedback"></div>\r\n</div>'},useData:!0})},1495:function(e,t,n){e.exports={metadataValue:"_3nkrW"}},1496:function(e,t,n){var o=n(10);e.exports=(o.default||o).template({1:function(e,t,n,o,i){e.propertyIsEnumerable;var r=null!=t?t:e.nullContext||{},a=e.hooks.helperMissing,s=e.escapeExpression;return"<p>"+s((n.lang||t&&t.lang||a).call(r,"guidelines",{name:"lang",hash:{},data:i}))+'</p>\r\n<p class="font-weight-bold mb-1">'+s((n.lang||t&&t.lang||a).call(r,"dropdownHeading",{name:"lang",hash:{},data:i}))+'</p>\r\n<div class="metadata-dropdown-region position-relative"></div>\r\n<div class="suggest-edit-region"></div>\r\n'},3:function(e,t,n,o,i){var r;e.propertyIsEnumerable;return(null!=(r=e.lambda(null!=(r=null!=t?t.options:t)?r.spinnerEl:r,t))?r:"")+"\r\n"},compiler:[8,">= 4.3.0"],main:function(e,t,n,o,i){var r;e.propertyIsEnumerable;return null!=(r=n.if.call(null!=t?t:e.nullContext||{},null!=(r=null!=t?t.options:t)?r.dataFetched:r,{name:"if",hash:{},fn:e.program(1,i,0),inverse:e.program(3,i,0),data:i}))?r:""},useData:!0})},1645:function(e,t,n){"use strict";n.r(t);var o=n(1),i=n(3),r=n(2),a=n(5),s=n(30),l=n(4),c=n(42),u=n(12);function d(e){return(d="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}function f(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function p(e,t){return(p=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e})(e,t)}function h(e){var t=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Date.prototype.toString.call(Reflect.construct(Date,[],(function(){}))),!0}catch(e){return!1}}();return function(){var n,o=y(e);if(t){var i=y(this).constructor;n=Reflect.construct(o,arguments,i)}else n=o.apply(this,arguments);return g(this,n)}}function g(e,t){return!t||"object"!==d(t)&&"function"!=typeof t?function(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}(e):t}function y(e){return(y=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)})(e)}var m=function(e){!function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),t&&p(e,t)}(n,e);var t=h(n);function n(){return f(this,n),t.apply(this,arguments)}return n}(r.a.Model),v=n(340),b=n(1212),w=n(136),S=n(190),k=n(0),M=n(1233),O=n(1266),T=n(253),x=n(293),E=n(59),C=n(6),R=n(29),P=n(9),_=n(1378),V=n(189),N=n(1216),j=n(1494),D=n.n(j),I=n(1495),A=n.n(I);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 B(e,t){for(var n=0;n<t.length;n++){var o=t[n];o.enumerable=o.enumerable||!1,o.configurable=!0,"value"in o&&(o.writable=!0),Object.defineProperty(e,o.key,o)}}function F(e,t){return(F=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e})(e,t)}function U(e){var t=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Date.prototype.toString.call(Reflect.construct(Date,[],(function(){}))),!0}catch(e){return!1}}();return function(){var n,o=q(e);if(t){var i=q(this).constructor;n=Reflect.construct(o,arguments,i)}else n=o.apply(this,arguments);return H(this,n)}}function H(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 q(e){return(q=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)})(e)}var J,z=function(e){!function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),t&&F(e,t)}(s,e);var t,n,o,a=U(s);function s(e){return function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,s),a.call(this,e)}return t=s,(n=[{key:"regions",value:function(){return{ratingSelect:{el:".rating-select-region",replaceElement:!0}}}},{key:"getMetadataValue",value:function(){return this.options.metadataType===V.MetadataType.BroadcastDate?this.options.metadataValue?R(this.options.metadataValue).format(P.l.FULL_YEAR):i.a.getPhrase(this.lang,"noMetadataValue"):this.options.metadataValue instanceof r.a.Collection?this.options.metadataValue.length?this.options.metadataValue.map((function(e){return e.get("name")})).join(", "):i.a.getPhrase(this.lang,"noMetadataValue"):this.options.metadataValue||i.a.getPhrase(this.lang,"noMetadataValue")}},{key:"getSuggestionPlaceholder",value:function(){return this.options.metadataType===V.MetadataType.Other?i.a.getPhrase(this.lang,"otherSuggestionPlaceholder"):i.a.getPhrase(this.lang,"suggestionPlaceholder",{metadataType:N.i.translateMetadataName(this.options.metadataType).toLowerCase()})}},{key:"renderRatingSelect",value:function(){this.options.ratingValidationMessage?this.getUI("ratingValidation").text(this.options.ratingValidationMessage).attr("style","display: block;"):this.getUI("ratingValidation").hide(),this.options.metadataType===V.MetadataType.Rating&&this.showChildView("ratingSelect",new _.a({model:this.options.currentRating,collection:this.options.ratings,parentChannelName:this.options.channelName,hideHeaderText:!0,hideRemove:!0}))}},{key:"viewOptions",value:function(){return{styles:A.a,metadataValue:this.getMetadataValue(),useRatingSelect:this.options.metadataType===V.MetadataType.Rating,isOtherType:this.options.metadataType===V.MetadataType.Other,metadataType:N.i.translateMetadataName(this.options.metadataType).toLowerCase(),suggestionPlaceholder:this.getSuggestionPlaceholder()}}},{key:"onRender",value:function(){this.renderRatingSelect(),this.stickit(),C.Validation.bind(this)}},{key:"onDestroy",value:function(){this.unstickit(),C.Validation.unbind(this)}},{key:"name",get:function(){return"SuggestEditComponent"}},{key:"template",get:function(){return D.a}},{key:"tagName",get:function(){return"form"}},{key:"className",get:function(){return"mt-3"}},{key:"lang",get:function(){return"libraryEditor.suggestEdit"}},{key:"bindings",get:function(){return{"[name=suggestion]":{observe:"suggestion",setOptions:{validate:!0}},"[name=reason]":{observe:"reason",setOptions:{validate:!0}}}}},{key:"elements",get:function(){return{ratingValidation:".rating-form-feedback"}}}])&&B(t.prototype,n),o&&B(t,o),s}(r.a.Component);!function(e){e[e.Email=0]="Email"}(J||(J={}));var G=n(158),K=n(62),W=Object.assign(Object.assign({},G.a),{createSuggestEditNotification:function(e){return{_type:K.a.SuggestEdit,groupId:e.groupId,receiverId:0,countryCode:e.countryCode,channels:[J.Email],data:{video:e.video,user:e.user,property:e.property,suggestion:e.suggestion,reason:e.reason,currentValue:e.currentValue}}}}),$=n(1496),Q=n.n($);function Y(e){return(Y="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}function X(e,t){for(var n=0;n<t.length;n++){var o=t[n];o.enumerable=o.enumerable||!1,o.configurable=!0,"value"in o&&(o.writable=!0),Object.defineProperty(e,o.key,o)}}function Z(e,t){return(Z=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e})(e,t)}function ee(e){var t=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Date.prototype.toString.call(Reflect.construct(Date,[],(function(){}))),!0}catch(e){return!1}}();return function(){var n,o=ne(e);if(t){var i=ne(this).constructor;n=Reflect.construct(o,arguments,i)}else n=o.apply(this,arguments);return te(this,n)}}function te(e,t){return!t||"object"!==Y(t)&&"function"!=typeof t?function(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}(e):t}function ne(e){return(ne=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)})(e)}n.d(t,"SuggestAnEditView",(function(){return oe}));var oe=function(e){!function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),t&&Z(e,t)}(f,e);var t,n,r,d=ee(f);function f(e){return function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,f),d.call(this,e)}return t=f,(n=[{key:"initialize",value:function(){this.getViewModel(),this.videoDataService=a.a.getInstance(k.g.Video,this),this.ratingsDataService=a.a.getInstance(k.g.Ratings,this),this.notificationDataService=a.a.getInstance(k.g.Notifications,this),this.selectedMetadata=new m,this.metadataCollection=this.getMetadataCollection(),this.bindListeners()}},{key:"regions",value:function(){return{dropdown:{el:".metadata-dropdown-region",replaceElement:!1},suggestEdit:{el:".suggest-edit-region",replaceElement:!0}}}},{key:"bindListeners",value:function(){this.listenTo(this.channelName,"select:option:selected",this.onMetadataSelect),this.listenTo(this.channelName,"select:rating",this.onSelectRating),this.listenTo(k.e.VIDEO,"".concat(k.f.VIDEOS,":").concat(this.options.videoId,":sync"),this.render),this.listenTo(k.e.NOTIFICATIONS,"".concat(k.f.SUGGEST_EDIT,":error"),this.onError)}},{key:"onSubmit",value:function(){var e=this;if(this.validateForm()){this.spinnerModel.set(T.c.ShowSpinner,!0);var t=this.selectedMetadata.get("metadataType")===V.MetadataType.Rating?this.viewModel.get("ratingSuggestion"):this.viewModel.get("suggestion"),n=this.config.get("suggestEditMetadataGroupId"),o=W.createSuggestEditNotification({groupId:n,countryCode:this.currentUser.get("countryCode"),video:this.model.toJSON(),user:this.currentUser.toJSON(),property:this.selectedMetadata.get("metadataType").toLowerCase(),suggestion:t,reason:this.viewModel.get("reason"),currentValue:this.selectedMetadata.get("metadataValue")});this.notificationDataService.suggestEdit(o,(function(){e.triggerMethod("hide"),e.spinnerModel.set(T.c.ShowSpinner,!1),e.spinnerModel.set(T.c.Disabled,!0)})),this.logAction(),this.viewModel.clear()}}},{key:"onError",value:function(){this.spinnerModel.set(T.c.ShowSpinner,!1)}},{key:"onMetadataSelect",value:function(e){this.selectMetadata(e),this.renderSuggestEdit()}},{key:"onSelectRating",value:function(e){this.viewModel.set("ratingSuggestion",e.get("name")),this.renderSuggestEdit()}},{key:"selectMetadata",value:function(e){this.spinnerModel.set(T.c.Disabled,!1),u.c.setSelected(e.get("id"),this.metadataCollection),this.selectedMetadata.set({metadataType:e.get("name"),metadataValue:e.get("name")!==V.MetadataType.Other?this.model.get(e.get("property")):null}),e.get("name")!==V.MetadataType.Rating&&this.viewModel.set("ratingSuggestion","")}},{key:"getMetadataCollection",value:function(){return new M.a(Object.keys(V.MetadataTypes).map((function(e){return V.MetadataTypes[e]})))}},{key:"getMetadataByType",value:function(e){return this.metadataCollection.findWhere({name:e})}},{key:"getViewModel",value:function(){this.viewModel=s.a.get(this.viewModelName),this.viewModel.addValidation(N.h)}},{key:"validateForm",value:function(){this.renderSuggestEdit(),this.viewModel.validate();var e=this.viewModel.toJSON(),t=e.reason,n=e.suggestion;return!(this.getRatingValidationMessage()||this.selectedMetadata.get("metadataType")!==V.MetadataType.Rating&&!n||!t)}},{key:"getRatingValidationMessage",value:function(){if(this.selectedMetadata.get("metadataType")!==V.MetadataType.Rating)return"";var e=this.selectedMetadata.get("metadataValue"),t=this.viewModel.get("ratingSuggestion");return t?e===t?N.g.original():"":N.g.empty()}},{key:"checkPreselection",value:function(){if(!this.selectedMetadata.get("metadataType")&&this.options.metadata&&this.dataFetched()){var e=this.getMetadataByType(this.options.metadata);this.selectMetadata(e)}}},{key:"logAction",value:function(){var e=u.x.getSourceTypes(this.model);e=o.filter(e,(function(e){return e!==E.a.CustomLibrary}));var t={videoSourceTypes:o.sortBy(o.unique(e),(function(e){return e})).join(","),videoId:this.model.get("id"),metadataProperty:this.selectedMetadata.get("metadataType"),metadataPropertyValue:this.selectedMetadata.get("metadataValue"),suggestion:this.viewModel.get("suggestion"),reason:this.viewModel.get("reason")};c.a.logUserAction(t,{descriptor:l.SuggestionDescriptor.Edit,location:l.LocationContext.Popup,actionType:l.UserAction.Suggest,entity:l.EntityType.Video})}},{key:"dataFetched",value:function(){return!!this.model&&!!this.ratingCollection}},{key:"renderMetadataDropdown",value:function(){this.showChildView("dropdown",new O.a({collection:N.i.translateMetadataCollectionNames(this.metadataCollection),channelName:this.channelName,childOptions:{titleProperty:"name",eventName:"select:option:click"},placeholderText:this.selectedMetadata.get("metadataType")||i.a.getPhrase(this.lang,"dropdownPlaceholder"),analyticsHelper:c.a}))}},{key:"renderSuggestEdit",value:function(){this.selectedMetadata.get("metadataType")&&this.showChildView("suggestEdit",new z({model:this.viewModel,channelName:this.channelName,ratings:this.ratingCollection,currentRating:this.viewModel.get("ratingSuggestion")?new v.a(this.ratingCollection.findWhere({name:this.viewModel.get("ratingSuggestion")})):null,metadataType:this.selectedMetadata.get("metadataType"),metadataValue:this.selectedMetadata.get("metadataValue"),ratingValidationMessage:this.getRatingValidationMessage()}))}},{key:"onBeforeRender",value:function(){this.dataFetched()||(this.model=this.videoDataService.getVideo(this.options.videoId),this.ratingCollection=this.ratingsDataService.getAllRatings()),this.checkPreselection()}},{key:"viewOptions",value:function(){return{dataFetched:this.dataFetched(),spinnerEl:u.q.getSpinner({size:u.r.Large,extraClasses:"mx-auto"})}}},{key:"onRender",value:function(){this.dataFetched()&&(this.renderMetadataDropdown(),this.renderSuggestEdit())}},{key:"name",get:function(){return"SuggestAnEditView"}},{key:"template",get:function(){return Q.a}},{key:"tagName",get:function(){return"form"}},{key:"className",get:function(){return"form-group"}},{key:"lang",get:function(){return"libraryEditor.suggestAnEdit"}},{key:"title",get:function(){return i.a.getPhrase(this.lang,"title")}},{key:"channelName",get:function(){return u.k.generateUniqueChannelName(this)}},{key:"viewModelName",get:function(){return"".concat(this.name,":").concat(this.options.videoId)}},{key:"behaviors",get:function(){var e=this;return[{behaviorClass:x.e,title:i.a.getPhrase(this.lang,"heading"),spinnerButtonOptions:{model:this.spinnerModel=new b.a,channelName:this.channelName,buttonText:i.a.getPhrase(this.lang,"submit"),onClick:function(){return e.onSubmit()}}}]}},{key:"requiredResources",get:function(){return{config:S.b.config,currentUser:w.b.currentUser}}}])&&X(t.prototype,n),r&&X(t,r),f}(r.a.View)}}]);
@@ -1 +1 @@
1
- (window.webpackJsonp_clickview_library_editor=window.webpackJsonp_clickview_library_editor||[]).push([[39],{1051:function(e,t,n){"use strict";n.d(t,"a",(function(){return d}));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 u(e){var t=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Date.prototype.toString.call(Reflect.construct(Date,[],(function(){}))),!0}catch(e){return!1}}();return function(){var n,r=f(e);if(t){var o=f(this).constructor;n=Reflect.construct(r,arguments,o)}else n=r.apply(this,arguments);return c(this,n)}}function c(e,t){return!t||"object"!==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)}(c,e);var t,n,r,i=u(c);function c(){return l(this,c),i.apply(this,arguments)}return t=c,(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),c}(r.a.Model)},1059:function(e,t,n){"use strict";n.d(t,"a",(function(){return c}));var r=n(1),o=n(49),i=n(160),l=n(3),a="libraryEditor.utils",s={name:[{required:!0,msg:function(){return l.a.getPhrase(a,"folderNameRequired")}},{maxLength:255,msg:function(){return l.a.getPhrase(a,"folderNameExceeds")}}]},u=function(e,t){return{parentId:function(n){return n?o.a.calculateDestinationFolderDepth(e,n,t)>i.a.MAX_FOLDER_DEPTH?l.a.getPhrase(a,"maxFolderDepth",{maxDepth:i.a.MAX_FOLDER_DEPTH}):"":l.a.getPhrase(a,"selectParentFolder")}}},c=function(e){var t=e.validateName,n=e.validateParent,o=e.folder,i=e.collection;return t&&n?r.extend({},s,u(o,i)):t?s:n?u(o,i):void 0}},1068:function(e,t,n){"use strict";n.d(t,"a",(function(){return v}));var r=n(6),o=n(2),i=n(3),l=n(1082),a=n(12),s=n(1069),u=n.n(s),c=n(1070),f=n.n(c);function d(e){return(d="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}function 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 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"!==d(t)&&"function"!=typeof t?function(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}(e):t}function m(e){return(m=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)})(e)}var v=function(e){!function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),t&&h(e,t)}(c,e);var t,n,o,s=y(c);function c(e){return function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,c),s.call(this,e)}return t=c,(n=[{key:"initialize",value:function(){this.listenTo(this.options.channelName,"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 u.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),c}(o.a.Component)},1069:function(e,t,n){var r=n(10);e.exports=(r.default||r).template({1:function(e,t,n,r,o){e.propertyIsEnumerable;var i,l=e.escapeExpression;return' <button class="create-new btn font-weight-bold rounded-0 w-100 text-left '+l(e.lambda(null!=(i=null!=(i=null!=t?t.options:t)?i.styles:i)?i.customItem:i,t))+'">'+l((n.lang||t&&t.lang||e.hooks.helperMissing).call(null!=t?t:e.nullContext||{},"createNew",{name:"lang",hash:{},data:o}))+"</button>\r\n"},compiler:[8,">= 4.3.0"],main:function(e,t,n,r,o){e.propertyIsEnumerable;var i,l=e.lambda,a=e.escapeExpression;return'<button\r\n class="'+a(l(null!=(i=null!=(i=null!=t?t.options:t)?i.styles:i)?i.selectBtn:i,t))+' custom-select form-control"\r\n data-toggle="dropdown"\r\n aria-haspopup="true"\r\n aria-expanded="false"\r\n name='+a(l(null!=(i=null!=t?t.options:t)?i.name:i,t))+"\r\n>"+a(l(null!=(i=null!=t?t.options:t)?i.buttonText:i,t))+'</button>\r\n<div class="dropdown-menu '+a(l(null!=(i=null!=(i=null!=t?t.options:t)?i.styles:i)?i.selector:i,t))+'">\r\n <div class="selector-region"></div>\r\n'+(null!=(i=n.if.call(null!=t?t:e.nullContext||{},null!=(i=null!=t?t.options:t)?i.canCreateNew:i,{name:"if",hash:{},fn:e.program(1,o,0),inverse:e.noop,data:o}))?i:"")+'</div>\r\n<div class="form-feedback"></div>'},useData:!0})},1070:function(e,t,n){e.exports={selectBtn:"_2TTgs",list:"_3wN7o",selector:"_3Xf1P",customItem:"_199PI"}},1126:function(e,t,n){"use strict";n.d(t,"a",(function(){return b}));var r=n(2),o=n(282),i=n(12),l=n(1068),a=n(1059),s=n(1127),u=n.n(s);function c(e){return(c="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}function f(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 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=y(e);if(t){var o=y(this).constructor;n=Reflect.construct(r,arguments,o)}else n=r.apply(this,arguments);return h(this,n)}}function h(e,t){return!t||"object"!==c(t)&&"function"!=typeof t?function(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}(e):t}function y(e){return(y=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)})(e)}var b=function(e){!function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),t&&d(e,t)}(c,e);var t,n,r,s=p(c);function c(e){return function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,c),s.call(this,e)}return t=c,(n=[{key:"initialize",value:function(){this.bindListeners()}},{key:"bindListeners",value:function(){this.listenTo(this.options.channelName,"folder:selected",this.onFolderSelected)}},{key:"regions",value:function(){return{parentFolder:".parent-folder-region"}}},{key:"onFolderSelected",value:function(e,t){e&&(i.f.setSelected(this.folderTreeKey,e,this.collection,t),t||this.model.set("parentId",e.get("id"),{validate:!0}))}},{key:"renderSubFolders",value:function(){this.options.editParent&&this.showChildView("parentFolder",new l.a({collection:this.collection,channelName:this.options.channelName,folderTreeKey:this.folderTreeKey,disabledIds:this.options.disabledParentFolderIds}))}},{key:"viewOptions",value:function(){return{editName:this.options.editName,editParent:this.options.editParent}}},{key:"onRender",value:function(){this.renderSubFolders()}},{key:"name",get:function(){return"FolderDetailsComponent"}},{key:"template",get:function(){return u.a}},{key:"lang",get:function(){return"libraryEditor.folderDetails"}},{key:"folderTreeKey",get:function(){return this.options.folderTreeKey||"folderselect:".concat(this.cid)}},{key:"behaviors",get:function(){return[{behaviorClass:o.a,modelValidation:Object(a.a)({validateName:this.options.editName,validateParent:this.options.editParent,folder:this.options.model,collection:this.options.collection})},{behaviorClass:o.f}]}},{key:"bindings",get:function(){return{"[name=name]":{observe:"name",setOptions:{validate:!0}}}}}])&&f(t.prototype,n),r&&f(t,r),c}(r.a.Component)},1127: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=null!=t?t:e.nullContext||{},l=e.hooks.helperMissing,a=e.escapeExpression;return' <div class="form-group">\r\n <label for="name" class="control-label">'+a((n.lang||t&&t.lang||l).call(i,"name",{name:"lang",hash:{},data:o}))+'</label>\r\n <input name="name" id="name" type="text" class="form-control" placeholder="'+a((n.lang||t&&t.lang||l).call(i,"namePlaceholder",{name:"lang",hash:{},data:o}))+'" autocomplete="off" autofocus/>\r\n <div class="form-feedback"></div>\r\n </div>\r\n'},3:function(e,t,n,r,o){e.propertyIsEnumerable;return' <div class="form-group pt-2">\r\n <label for="parentId" class="control-label">'+e.escapeExpression((n.lang||t&&t.lang||e.hooks.helperMissing).call(null!=t?t:e.nullContext||{},"parent",{name:"lang",hash:{},data:o}))+'</label>\r\n <div class="parent-folder-region"></div>\r\n </div>\r\n'},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.editName:i,{name:"if",hash:{},fn:e.program(1,o,0),inverse:e.noop,data:o}))?i:"")+(null!=(i=n.if.call(l,null!=(i=null!=t?t.options:t)?i.editParent:i,{name:"if",hash:{},fn:e.program(3,o,0),inverse:e.noop,data:o}))?i:"")+"</form>"},useData:!0})},1249: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(null!=(i=e.lambda(null!=(i=null!=t?t.options:t)?i.spinnerEl:i,t))?i:"")+"\r\n"},3:function(e,t,n,r,o){return'<div class="folder-details-region"></div>\r\n'},compiler:[8,">= 4.3.0"],main:function(e,t,n,r,o){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,o,0),inverse:e.program(3,o,0),data:o}))?i:""},useData:!0})},1439:function(e,t,n){"use strict";n.r(t),n.d(t,"MoveFolderView",(function(){return R}));var r=n(1),o=n(6),i=n(2),l=n(30),a=n(5),s=n(42),u=n(0),c=n(282),f=n(1051),d=n(82),p=n(12),h=n(243),y=n(3),b=n(1126),m=n(1249),v=n.n(m);function g(e){return(g="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}function w(e){return function(e){if(Array.isArray(e))return k(e)}(e)||function(e){if("undefined"!=typeof Symbol&&Symbol.iterator in Object(e))return Array.from(e)}(e)||function(e,t){if(!e)return;if("string"==typeof e)return k(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);"Object"===n&&e.constructor&&(n=e.constructor.name);if("Map"===n||"Set"===n)return Array.from(e);if("Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n))return k(e,t)}(e)||function(){throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function k(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=new Array(t);n<t;n++)r[n]=e[n];return r}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 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=_(e);if(t){var o=_(this).constructor;n=Reflect.construct(r,arguments,o)}else n=r.apply(this,arguments);return S(this,n)}}function S(e,t){return!t||"object"!==g(t)&&"function"!=typeof t?function(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}(e):t}function _(e){return(_=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)})(e)}var R=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)}(k,e);var t,n,m,g=O(k);function k(e){return function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,k),g.call(this,e)}return t=k,(n=[{key:"initialize",value:function(){this.bindListeners(),this.libraryDataService=a.a.getInstance(u.g.Library,this)}},{key:"bindListeners",value:function(){this.listenTo(u.e.LIBRARY,"libraries:sync",this.render),this.listenTo(u.e.LIBRARY,"folder:".concat(this.options.folderId,":sync"),this.render)}},{key:"regions",value:function(){return{folderDetails:".folder-details-region"}}},{key:"events",value:function(){return{submit:"onSubmit"}}},{key:"onSubmit",value:function(e){e&&e.preventDefault(),this.viewModel.validate(),!1!==this.viewModel.isValid()&&(o.Radio.channel(this.channelName).trigger(h.b.ShowSpinner),this.saveFolder(),this.logAction())}},{key:"logAction",value:function(){var e=this.getParentIds(),t=e.oldParentId,n=e.newParentId,r={id:this.options.folderId,isSubfolder:n.toString()!==this.library.get("id").toString(),oldParentId:t,newParentId:n};s.a.logUserAction(r,this.options.analyticsOptions)}},{key:"saveFolder",value:function(){var e=this,t=this.getParentIds(),n=t.oldParentId,r=t.newParentId;n!==r?this.libraryDataService.moveFolder(this.viewModel.get("id"),r,n,(function(){i.a.AppLinkHelper.trigger({application:u.b.LIBRARY_EDITOR,action:u.a.LibraryEditor.FOLDER,args:[e.viewModel.get("id")]}),e.triggerMethod("hide")})):i.a.AppLinkHelper.trigger({application:u.b.LIBRARY_EDITOR,action:u.a.LibraryEditor.FOLDER,args:[this.viewModel.get("id")]})}},{key:"getParentIds",value:function(){return{oldParentId:p.f.getParent(this.options.folderId,this.collection).get("id"),newParentId:this.viewModel.get("parentId")}}},{key:"setUpCollection",value:function(e){this.collection||(this.library=p.f.getLibrary(this.options.folderId,e),this.collection=this.library.children)}},{key:"setUpModel",value:function(e){this.model||(this.model=e,this.setUpViewModel())}},{key:"setUpViewModel",value:function(){if(!this.viewModel){var e="folder:details:".concat(this.options.folderId);this.viewModel=l.a.get(e,this.model.toJSON(),{ctor:d.a});var t=p.f.getParent(this.options.folderId,this.collection);this.viewModel.set("parentId",t?t.get("id"):null),this.listenTo(this.viewModel,"change:parentId",this.onParentChange)}}},{key:"onParentChange",value:function(){var e=this.getParentIds(),t=e.oldParentId,n=e.newParentId;this.spinnerModel.set(h.c.Disabled,t===n)}},{key:"getDisabledParentFolderIds",value:function(){var e=[this.model.get("id").toString()];return this.viewModel.get("parentId")&&e.push(this.viewModel.get("parentId").toString()),this.model.children?[].concat(e,w(p.f.flatten(this.model.children).map((function(e){return e.id.toString()})))):e}},{key:"renderFolderDetails",value:function(){if(this.model&&this.collection){var e=new b.a({model:this.viewModel,collection:this.collection,library:this.library,channelName:this.channelName,editName:!1,editParent:!0,disabledParentFolderIds:this.getDisabledParentFolderIds()});this.showChildView("folderDetails",e)}}},{key:"onBeforeRender",value:function(){this.libraryDataService.getLibraries(r.bind(this.setUpCollection,this)),this.libraryDataService.getFolderFromLibraries(this.options.folderId,r.bind(this.setUpModel,this))}},{key:"viewOptions",value:function(){return{dataFetched:!!this.model&&!!this.collection,spinnerEl:p.q.getSpinner({size:p.r.Large,extraClasses:"mx-auto"})}}},{key:"onRender",value:function(){this.renderFolderDetails()}},{key:"name",get:function(){return"MoveFolderView"}},{key:"title",get:function(){return y.a.getPhrase(this.lang,"title")}},{key:"lang",get:function(){return"libraryEditor.moveFolder"}},{key:"template",get:function(){return v.a}},{key:"channelName",get:function(){return p.k.generateUniqueChannelName(this)}},{key:"behaviors",get:function(){var e=this;return[{behaviorClass:c.e,title:y.a.getPhrase(this.lang,"heading"),spinnerButtonOptions:{model:this.spinnerModel=new f.a,channelName:this.channelName,buttonText:y.a.getPhrase(this.lang,"move"),onClick:function(t){return e.onSubmit(t)}}}]}}])&&P(t.prototype,n),m&&P(t,m),k}(i.a.View)}}]);
1
+ (window.webpackJsonp_clickview_library_editor=window.webpackJsonp_clickview_library_editor||[]).push([[39],{1212:function(e,t,n){"use strict";n.d(t,"a",(function(){return d}));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 u(e){var t=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Date.prototype.toString.call(Reflect.construct(Date,[],(function(){}))),!0}catch(e){return!1}}();return function(){var n,r=f(e);if(t){var o=f(this).constructor;n=Reflect.construct(r,arguments,o)}else n=r.apply(this,arguments);return c(this,n)}}function c(e,t){return!t||"object"!==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)}(c,e);var t,n,r,i=u(c);function c(){return l(this,c),i.apply(this,arguments)}return t=c,(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),c}(r.a.Model)},1220:function(e,t,n){"use strict";n.d(t,"a",(function(){return c}));var r=n(1),o=n(49),i=n(162),l=n(3),a="libraryEditor.utils",s={name:[{required:!0,msg:function(){return l.a.getPhrase(a,"folderNameRequired")}},{maxLength:255,msg:function(){return l.a.getPhrase(a,"folderNameExceeds")}}]},u=function(e,t){return{parentId:function(n){return n?o.a.calculateDestinationFolderDepth(e,n,t)>i.a.MAX_FOLDER_DEPTH?l.a.getPhrase(a,"maxFolderDepth",{maxDepth:i.a.MAX_FOLDER_DEPTH}):"":l.a.getPhrase(a,"selectParentFolder")}}},c=function(e){var t=e.validateName,n=e.validateParent,o=e.folder,i=e.collection;return t&&n?r.extend({},s,u(o,i)):t?s:n?u(o,i):void 0}},1229:function(e,t,n){"use strict";n.d(t,"a",(function(){return v}));var r=n(6),o=n(2),i=n(3),l=n(1243),a=n(12),s=n(1230),u=n.n(s),c=n(1231),f=n.n(c);function d(e){return(d="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}function 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 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"!==d(t)&&"function"!=typeof t?function(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}(e):t}function m(e){return(m=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)})(e)}var v=function(e){!function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),t&&h(e,t)}(c,e);var t,n,o,s=y(c);function c(e){return function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,c),s.call(this,e)}return t=c,(n=[{key:"initialize",value:function(){this.listenTo(this.options.channelName,"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 u.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),c}(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"}},1287:function(e,t,n){"use strict";n.d(t,"a",(function(){return b}));var r=n(2),o=n(293),i=n(12),l=n(1229),a=n(1220),s=n(1288),u=n.n(s);function c(e){return(c="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}function f(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 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=y(e);if(t){var o=y(this).constructor;n=Reflect.construct(r,arguments,o)}else n=r.apply(this,arguments);return h(this,n)}}function h(e,t){return!t||"object"!==c(t)&&"function"!=typeof t?function(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}(e):t}function y(e){return(y=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)})(e)}var b=function(e){!function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),t&&d(e,t)}(c,e);var t,n,r,s=p(c);function c(e){return function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,c),s.call(this,e)}return t=c,(n=[{key:"initialize",value:function(){this.bindListeners()}},{key:"bindListeners",value:function(){this.listenTo(this.options.channelName,"folder:selected",this.onFolderSelected)}},{key:"regions",value:function(){return{parentFolder:".parent-folder-region"}}},{key:"onFolderSelected",value:function(e,t){e&&(i.f.setSelected(this.folderTreeKey,e,this.collection,t),t||this.model.set("parentId",e.get("id"),{validate:!0}))}},{key:"renderSubFolders",value:function(){this.options.editParent&&this.showChildView("parentFolder",new l.a({collection:this.collection,channelName:this.options.channelName,folderTreeKey:this.folderTreeKey,disabledIds:this.options.disabledParentFolderIds}))}},{key:"viewOptions",value:function(){return{editName:this.options.editName,editParent:this.options.editParent}}},{key:"onRender",value:function(){this.renderSubFolders()}},{key:"name",get:function(){return"FolderDetailsComponent"}},{key:"template",get:function(){return u.a}},{key:"lang",get:function(){return"libraryEditor.folderDetails"}},{key:"folderTreeKey",get:function(){return this.options.folderTreeKey||"folderselect:".concat(this.cid)}},{key:"behaviors",get:function(){return[{behaviorClass:o.a,modelValidation:Object(a.a)({validateName:this.options.editName,validateParent:this.options.editParent,folder:this.options.model,collection:this.options.collection})},{behaviorClass:o.f}]}},{key:"bindings",get:function(){return{"[name=name]":{observe:"name",setOptions:{validate:!0}}}}}])&&f(t.prototype,n),r&&f(t,r),c}(r.a.Component)},1288: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=null!=t?t:e.nullContext||{},l=e.hooks.helperMissing,a=e.escapeExpression;return' <div class="form-group">\r\n <label for="name" class="control-label">'+a((n.lang||t&&t.lang||l).call(i,"name",{name:"lang",hash:{},data:o}))+'</label>\r\n <input name="name" id="name" type="text" class="form-control" placeholder="'+a((n.lang||t&&t.lang||l).call(i,"namePlaceholder",{name:"lang",hash:{},data:o}))+'" autocomplete="off" autofocus/>\r\n <div class="form-feedback"></div>\r\n </div>\r\n'},3:function(e,t,n,r,o){e.propertyIsEnumerable;return' <div class="form-group pt-2">\r\n <label for="parentId" class="control-label">'+e.escapeExpression((n.lang||t&&t.lang||e.hooks.helperMissing).call(null!=t?t:e.nullContext||{},"parent",{name:"lang",hash:{},data:o}))+'</label>\r\n <div class="parent-folder-region"></div>\r\n </div>\r\n'},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.editName:i,{name:"if",hash:{},fn:e.program(1,o,0),inverse:e.noop,data:o}))?i:"")+(null!=(i=n.if.call(l,null!=(i=null!=t?t.options:t)?i.editParent:i,{name:"if",hash:{},fn:e.program(3,o,0),inverse:e.noop,data:o}))?i:"")+"</form>"},useData:!0})},1410: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(null!=(i=e.lambda(null!=(i=null!=t?t.options:t)?i.spinnerEl:i,t))?i:"")+"\r\n"},3:function(e,t,n,r,o){return'<div class="folder-details-region"></div>\r\n'},compiler:[8,">= 4.3.0"],main:function(e,t,n,r,o){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,o,0),inverse:e.program(3,o,0),data:o}))?i:""},useData:!0})},1600:function(e,t,n){"use strict";n.r(t),n.d(t,"MoveFolderView",(function(){return R}));var r=n(1),o=n(6),i=n(2),l=n(30),a=n(5),s=n(42),u=n(0),c=n(293),f=n(1212),d=n(83),p=n(12),h=n(253),y=n(3),b=n(1287),m=n(1410),v=n.n(m);function g(e){return(g="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}function w(e){return function(e){if(Array.isArray(e))return k(e)}(e)||function(e){if("undefined"!=typeof Symbol&&Symbol.iterator in Object(e))return Array.from(e)}(e)||function(e,t){if(!e)return;if("string"==typeof e)return k(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);"Object"===n&&e.constructor&&(n=e.constructor.name);if("Map"===n||"Set"===n)return Array.from(e);if("Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n))return k(e,t)}(e)||function(){throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function k(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=new Array(t);n<t;n++)r[n]=e[n];return r}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 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=_(e);if(t){var o=_(this).constructor;n=Reflect.construct(r,arguments,o)}else n=r.apply(this,arguments);return S(this,n)}}function S(e,t){return!t||"object"!==g(t)&&"function"!=typeof t?function(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}(e):t}function _(e){return(_=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)})(e)}var R=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)}(k,e);var t,n,m,g=O(k);function k(e){return function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,k),g.call(this,e)}return t=k,(n=[{key:"initialize",value:function(){this.bindListeners(),this.libraryDataService=a.a.getInstance(u.g.Library,this)}},{key:"bindListeners",value:function(){this.listenTo(u.e.LIBRARY,"libraries:sync",this.render),this.listenTo(u.e.LIBRARY,"folder:".concat(this.options.folderId,":sync"),this.render)}},{key:"regions",value:function(){return{folderDetails:".folder-details-region"}}},{key:"events",value:function(){return{submit:"onSubmit"}}},{key:"onSubmit",value:function(e){e&&e.preventDefault(),this.viewModel.validate(),!1!==this.viewModel.isValid()&&(o.Radio.channel(this.channelName).trigger(h.b.ShowSpinner),this.saveFolder(),this.logAction())}},{key:"logAction",value:function(){var e=this.getParentIds(),t=e.oldParentId,n=e.newParentId,r={id:this.options.folderId,isSubfolder:n.toString()!==this.library.get("id").toString(),oldParentId:t,newParentId:n};s.a.logUserAction(r,this.options.analyticsOptions)}},{key:"saveFolder",value:function(){var e=this,t=this.getParentIds(),n=t.oldParentId,r=t.newParentId;n!==r?this.libraryDataService.moveFolder(this.viewModel.get("id"),r,n,(function(){i.a.AppLinkHelper.trigger({application:u.b.LIBRARY_EDITOR,action:u.a.LibraryEditor.FOLDER,args:[e.viewModel.get("id")]}),e.triggerMethod("hide")})):i.a.AppLinkHelper.trigger({application:u.b.LIBRARY_EDITOR,action:u.a.LibraryEditor.FOLDER,args:[this.viewModel.get("id")]})}},{key:"getParentIds",value:function(){return{oldParentId:p.f.getParent(this.options.folderId,this.collection).get("id"),newParentId:this.viewModel.get("parentId")}}},{key:"setUpCollection",value:function(e){this.collection||(this.library=p.f.getLibrary(this.options.folderId,e),this.collection=this.library.children)}},{key:"setUpModel",value:function(e){this.model||(this.model=e,this.setUpViewModel())}},{key:"setUpViewModel",value:function(){if(!this.viewModel){var e="folder:details:".concat(this.options.folderId);this.viewModel=l.a.get(e,this.model.toJSON(),{ctor:d.a});var t=p.f.getParent(this.options.folderId,this.collection);this.viewModel.set("parentId",t?t.get("id"):null),this.listenTo(this.viewModel,"change:parentId",this.onParentChange)}}},{key:"onParentChange",value:function(){var e=this.getParentIds(),t=e.oldParentId,n=e.newParentId;this.spinnerModel.set(h.c.Disabled,t===n)}},{key:"getDisabledParentFolderIds",value:function(){var e=[this.model.get("id").toString()];return this.viewModel.get("parentId")&&e.push(this.viewModel.get("parentId").toString()),this.model.children?[].concat(e,w(p.f.flatten(this.model.children).map((function(e){return e.id.toString()})))):e}},{key:"renderFolderDetails",value:function(){if(this.model&&this.collection){var e=new b.a({model:this.viewModel,collection:this.collection,library:this.library,channelName:this.channelName,editName:!1,editParent:!0,disabledParentFolderIds:this.getDisabledParentFolderIds()});this.showChildView("folderDetails",e)}}},{key:"onBeforeRender",value:function(){this.libraryDataService.getLibraries(r.bind(this.setUpCollection,this)),this.libraryDataService.getFolderFromLibraries(this.options.folderId,r.bind(this.setUpModel,this))}},{key:"viewOptions",value:function(){return{dataFetched:!!this.model&&!!this.collection,spinnerEl:p.q.getSpinner({size:p.r.Large,extraClasses:"mx-auto"})}}},{key:"onRender",value:function(){this.renderFolderDetails()}},{key:"name",get:function(){return"MoveFolderView"}},{key:"title",get:function(){return y.a.getPhrase(this.lang,"title")}},{key:"lang",get:function(){return"libraryEditor.moveFolder"}},{key:"template",get:function(){return v.a}},{key:"channelName",get:function(){return p.k.generateUniqueChannelName(this)}},{key:"behaviors",get:function(){var e=this;return[{behaviorClass:c.e,title:y.a.getPhrase(this.lang,"heading"),spinnerButtonOptions:{model:this.spinnerModel=new f.a,channelName:this.channelName,buttonText:y.a.getPhrase(this.lang,"move"),onClick:function(t){return e.onSubmit(t)}}}]}}])&&P(t.prototype,n),m&&P(t,m),k}(i.a.View)}}]);
@@ -1 +1 @@
1
- (window.webpackJsonp_clickview_library_editor=window.webpackJsonp_clickview_library_editor||[]).push([[4],{1319:function(e,n,t){var a=t(10);e.exports=(a.default||a).template({1:function(e,n,t,a,r){e.propertyIsEnumerable;var i=null!=n?n:e.nullContext||{},o=e.hooks.helperMissing,l=e.escapeExpression;return"<p>"+l((t.lang||n&&n.lang||o).call(i,"infoHeading",{name:"lang",hash:{},data:r}))+"</p>\r\n<p>"+l((t.lang||n&&n.lang||o).call(i,"meaningSubheading",{name:"lang",hash:{},data:r}))+"</p>\r\n<ul>\r\n <li>"+l((t.lang||n&&n.lang||o).call(i,"meaning1",{name:"lang",hash:{},data:r}))+"</li>\r\n <li>"+l((t.lang||n&&n.lang||o).call(i,"meaning2",{name:"lang",hash:{},data:r}))+"</li>\r\n <li>"+l((t.lang||n&&n.lang||o).call(i,"meaning3",{name:"lang",hash:{},data:r}))+"</li>\r\n</ul>\r\n"},3:function(e,n,t,a,r){e.propertyIsEnumerable;var i=null!=n?n:e.nullContext||{},o=e.hooks.helperMissing,l=e.escapeExpression;return"<p>"+l((t.lang||n&&n.lang||o).call(i,"disclaimer",{name:"lang",hash:{},data:r}))+"</p>\r\n<p>"+l((t.lang||n&&n.lang||o).call(i,"featureSubheading",{name:"lang",hash:{},data:r}))+"</p>\r\n<ul>\r\n <li>"+l((t.lang||n&&n.lang||o).call(i,"feature1",{name:"lang",hash:{},data:r}))+"</li> \r\n <li>"+l((t.lang||n&&n.lang||o).call(i,"feature2",{name:"lang",hash:{},data:r}))+"</li>\r\n</ul>\r\n"},compiler:[8,">= 4.3.0"],main:function(e,n,t,a,r){var i;e.propertyIsEnumerable;return null!=(i=t.if.call(null!=n?n:e.nullContext||{},null!=(i=null!=n?n.options:n)?i.noPublisher:i,{name:"if",hash:{},fn:e.program(1,r,0),inverse:e.program(3,r,0),data:r}))?i:""},useData:!0})},1453:function(e,n,t){"use strict";t.r(n),t.d(n,"PublishLibraryView",(function(){return P}));var a=t(6),r=t(5),i=t(2),o=t(282),l=t(0),u=t(243),c=t(12),s=t(3),h=t(136),f=t(298),g=t(300),p=t(57),b=t(1319),y=t.n(b);function m(e){return(m="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,n){if(!(e instanceof n))throw new TypeError("Cannot call a class as a function")}function v(e,n){for(var t=0;t<n.length;t++){var a=n[t];a.enumerable=a.enumerable||!1,a.configurable=!0,"value"in a&&(a.writable=!0),Object.defineProperty(e,a.key,a)}}function k(e,n){return(k=Object.setPrototypeOf||function(e,n){return e.__proto__=n,e})(e,n)}function S(e){var n=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 t,a=_(e);if(n){var r=_(this).constructor;t=Reflect.construct(a,arguments,r)}else t=a.apply(this,arguments);return w(this,t)}}function w(e,n){return!n||"object"!==m(n)&&"function"!=typeof n?function(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}(e):n}function _(e){return(_=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)})(e)}var P=function(e){!function(e,n){if("function"!=typeof n&&null!==n)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(n&&n.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),n&&k(e,n)}(w,e);var n,t,b,m=S(w);function w(){return d(this,w),m.apply(this,arguments)}return n=w,(t=[{key:"initialize",value:function(){this.libraryDataService=r.a.getInstance(l.g.Library,this),this.migrationVideoDataService=r.a.getInstance(l.g.MigrationVideo,this),this.videoDataService=r.a.getInstance(l.g.Video,this)}},{key:"onClickContinue",value:function(){var e=this;a.Radio.channel(this.channelName).trigger(u.b.ShowSpinner);var n=0,t=function(){++n===e.libraries.length&&(e.triggerMethod("hide"),e.videoDataService.clearVideoCache(),a.Radio.channel(f.a.LIBRARY_STATUS).trigger("status:changed"))};p.a.noPublisher(this.customerMetadata)?this.libraries.each((function(n){e.libraryDataService.publishLibrary(n.get("id"),t)})):this.migrationVideoDataService.publishLibraries((function(){i.a.AppLinkHelper.trigger({application:l.b.MIGRATION_WIZARD,action:l.a.MigrationWizard.PUBLISH_LIBRARY_PROGRESS})}))}},{key:"viewOptions",value:function(){return{noPublisher:p.a.noPublisher(this.customerMetadata)}}},{key:"name",get:function(){return"PublishLibraryView"}},{key:"title",get:function(){return s.a.getPhrase(this.lang,"title")}},{key:"lang",get:function(){return"libraryEditor.publishLibrary"}},{key:"template",get:function(){return y.a}},{key:"channelName",get:function(){return c.k.generateUniqueChannelName(this)}},{key:"behaviors",get:function(){var e=this;return[{title:s.a.getPhrase(this.lang,"heading"),behaviorClass:o.e,spinnerButtonOptions:{channelName:this.channelName,buttonText:s.a.getPhrase(this.lang,"continue"),onClick:function(){return e.onClickContinue()}}}]}},{key:"requiredResources",get:function(){return{libraries:h.b.libraries,customerMetadata:g.b.customerMetaData}}}])&&v(n.prototype,t),b&&v(n,b),w}(i.a.View)}}]);
1
+ (window.webpackJsonp_clickview_library_editor=window.webpackJsonp_clickview_library_editor||[]).push([[4],{1480:function(e,n,t){var a=t(10);e.exports=(a.default||a).template({1:function(e,n,t,a,r){e.propertyIsEnumerable;var i=null!=n?n:e.nullContext||{},o=e.hooks.helperMissing,l=e.escapeExpression;return"<p>"+l((t.lang||n&&n.lang||o).call(i,"infoHeading",{name:"lang",hash:{},data:r}))+"</p>\r\n<p>"+l((t.lang||n&&n.lang||o).call(i,"meaningSubheading",{name:"lang",hash:{},data:r}))+"</p>\r\n<ul>\r\n <li>"+l((t.lang||n&&n.lang||o).call(i,"meaning1",{name:"lang",hash:{},data:r}))+"</li>\r\n <li>"+l((t.lang||n&&n.lang||o).call(i,"meaning2",{name:"lang",hash:{},data:r}))+"</li>\r\n <li>"+l((t.lang||n&&n.lang||o).call(i,"meaning3",{name:"lang",hash:{},data:r}))+"</li>\r\n</ul>\r\n"},3:function(e,n,t,a,r){e.propertyIsEnumerable;var i=null!=n?n:e.nullContext||{},o=e.hooks.helperMissing,l=e.escapeExpression;return"<p>"+l((t.lang||n&&n.lang||o).call(i,"disclaimer",{name:"lang",hash:{},data:r}))+"</p>\r\n<p>"+l((t.lang||n&&n.lang||o).call(i,"featureSubheading",{name:"lang",hash:{},data:r}))+"</p>\r\n<ul>\r\n <li>"+l((t.lang||n&&n.lang||o).call(i,"feature1",{name:"lang",hash:{},data:r}))+"</li> \r\n <li>"+l((t.lang||n&&n.lang||o).call(i,"feature2",{name:"lang",hash:{},data:r}))+"</li>\r\n</ul>\r\n"},compiler:[8,">= 4.3.0"],main:function(e,n,t,a,r){var i;e.propertyIsEnumerable;return null!=(i=t.if.call(null!=n?n:e.nullContext||{},null!=(i=null!=n?n.options:n)?i.noPublisher:i,{name:"if",hash:{},fn:e.program(1,r,0),inverse:e.program(3,r,0),data:r}))?i:""},useData:!0})},1614:function(e,n,t){"use strict";t.r(n),t.d(n,"PublishLibraryView",(function(){return P}));var a=t(6),r=t(5),i=t(2),o=t(293),l=t(0),u=t(253),c=t(12),s=t(3),h=t(138),f=t(309),g=t(311),p=t(58),b=t(1480),y=t.n(b);function m(e){return(m="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,n){if(!(e instanceof n))throw new TypeError("Cannot call a class as a function")}function v(e,n){for(var t=0;t<n.length;t++){var a=n[t];a.enumerable=a.enumerable||!1,a.configurable=!0,"value"in a&&(a.writable=!0),Object.defineProperty(e,a.key,a)}}function k(e,n){return(k=Object.setPrototypeOf||function(e,n){return e.__proto__=n,e})(e,n)}function S(e){var n=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 t,a=_(e);if(n){var r=_(this).constructor;t=Reflect.construct(a,arguments,r)}else t=a.apply(this,arguments);return w(this,t)}}function w(e,n){return!n||"object"!==m(n)&&"function"!=typeof n?function(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}(e):n}function _(e){return(_=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)})(e)}var P=function(e){!function(e,n){if("function"!=typeof n&&null!==n)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(n&&n.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),n&&k(e,n)}(w,e);var n,t,b,m=S(w);function w(){return d(this,w),m.apply(this,arguments)}return n=w,(t=[{key:"initialize",value:function(){this.libraryDataService=r.a.getInstance(l.g.Library,this),this.migrationVideoDataService=r.a.getInstance(l.g.MigrationVideo,this),this.videoDataService=r.a.getInstance(l.g.Video,this)}},{key:"onClickContinue",value:function(){var e=this;a.Radio.channel(this.channelName).trigger(u.b.ShowSpinner);var n=0,t=function(){++n===e.libraries.length&&(e.triggerMethod("hide"),e.videoDataService.clearVideoCache(),a.Radio.channel(f.a.LIBRARY_STATUS).trigger("status:changed"))};p.a.noPublisher(this.customerMetadata)?this.libraries.each((function(n){e.libraryDataService.publishLibrary(n.get("id"),t)})):this.migrationVideoDataService.publishLibraries((function(){i.a.AppLinkHelper.trigger({application:l.b.MIGRATION_WIZARD,action:l.a.MigrationWizard.PUBLISH_LIBRARY_PROGRESS})}))}},{key:"viewOptions",value:function(){return{noPublisher:p.a.noPublisher(this.customerMetadata)}}},{key:"name",get:function(){return"PublishLibraryView"}},{key:"title",get:function(){return s.a.getPhrase(this.lang,"title")}},{key:"lang",get:function(){return"libraryEditor.publishLibrary"}},{key:"template",get:function(){return y.a}},{key:"channelName",get:function(){return c.k.generateUniqueChannelName(this)}},{key:"behaviors",get:function(){var e=this;return[{title:s.a.getPhrase(this.lang,"heading"),behaviorClass:o.e,spinnerButtonOptions:{channelName:this.channelName,buttonText:s.a.getPhrase(this.lang,"continue"),onClick:function(){return e.onClickContinue()}}}]}},{key:"requiredResources",get:function(){return{libraries:h.b.libraries,customerMetadata:g.b.customerMetaData}}}])&&v(n.prototype,t),b&&v(n,b),w}(i.a.View)}}]);
@@ -1 +1 @@
1
- (window.webpackJsonp_clickview_library_editor=window.webpackJsonp_clickview_library_editor||[]).push([[40],{1051:function(e,t,n){"use strict";n.d(t,"a",(function(){return p}));var r=n(2),o=n(243);function i(e){return(i="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}function l(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function a(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}function s(e,t){return(s=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e})(e,t)}function u(e){var t=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Date.prototype.toString.call(Reflect.construct(Date,[],(function(){}))),!0}catch(e){return!1}}();return function(){var n,r=f(e);if(t){var o=f(this).constructor;n=Reflect.construct(r,arguments,o)}else n=r.apply(this,arguments);return c(this,n)}}function c(e,t){return!t||"object"!==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)}(c,e);var t,n,r,i=u(c);function c(){return l(this,c),i.apply(this,arguments)}return t=c,(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),c}(r.a.Model)},1059:function(e,t,n){"use strict";n.d(t,"a",(function(){return c}));var r=n(1),o=n(49),i=n(160),l=n(3),a="libraryEditor.utils",s={name:[{required:!0,msg:function(){return l.a.getPhrase(a,"folderNameRequired")}},{maxLength:255,msg:function(){return l.a.getPhrase(a,"folderNameExceeds")}}]},u=function(e,t){return{parentId:function(n){return n?o.a.calculateDestinationFolderDepth(e,n,t)>i.a.MAX_FOLDER_DEPTH?l.a.getPhrase(a,"maxFolderDepth",{maxDepth:i.a.MAX_FOLDER_DEPTH}):"":l.a.getPhrase(a,"selectParentFolder")}}},c=function(e){var t=e.validateName,n=e.validateParent,o=e.folder,i=e.collection;return t&&n?r.extend({},s,u(o,i)):t?s:n?u(o,i):void 0}},1068:function(e,t,n){"use strict";n.d(t,"a",(function(){return v}));var r=n(6),o=n(2),i=n(3),l=n(1082),a=n(12),s=n(1069),u=n.n(s),c=n(1070),f=n.n(c);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 v=function(e){!function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),t&&h(e,t)}(c,e);var t,n,o,s=y(c);function c(e){return function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,c),s.call(this,e)}return t=c,(n=[{key:"initialize",value:function(){this.listenTo(this.options.channelName,"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 u.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),c}(o.a.Component)},1069:function(e,t,n){var r=n(10);e.exports=(r.default||r).template({1:function(e,t,n,r,o){e.propertyIsEnumerable;var i,l=e.escapeExpression;return' <button class="create-new btn font-weight-bold rounded-0 w-100 text-left '+l(e.lambda(null!=(i=null!=(i=null!=t?t.options:t)?i.styles:i)?i.customItem:i,t))+'">'+l((n.lang||t&&t.lang||e.hooks.helperMissing).call(null!=t?t:e.nullContext||{},"createNew",{name:"lang",hash:{},data:o}))+"</button>\r\n"},compiler:[8,">= 4.3.0"],main:function(e,t,n,r,o){e.propertyIsEnumerable;var i,l=e.lambda,a=e.escapeExpression;return'<button\r\n class="'+a(l(null!=(i=null!=(i=null!=t?t.options:t)?i.styles:i)?i.selectBtn:i,t))+' custom-select form-control"\r\n data-toggle="dropdown"\r\n aria-haspopup="true"\r\n aria-expanded="false"\r\n name='+a(l(null!=(i=null!=t?t.options:t)?i.name:i,t))+"\r\n>"+a(l(null!=(i=null!=t?t.options:t)?i.buttonText:i,t))+'</button>\r\n<div class="dropdown-menu '+a(l(null!=(i=null!=(i=null!=t?t.options:t)?i.styles:i)?i.selector:i,t))+'">\r\n <div class="selector-region"></div>\r\n'+(null!=(i=n.if.call(null!=t?t:e.nullContext||{},null!=(i=null!=t?t.options:t)?i.canCreateNew:i,{name:"if",hash:{},fn:e.program(1,o,0),inverse:e.noop,data:o}))?i:"")+'</div>\r\n<div class="form-feedback"></div>'},useData:!0})},1070:function(e,t,n){e.exports={selectBtn:"_2TTgs",list:"_3wN7o",selector:"_3Xf1P",customItem:"_199PI"}},1126:function(e,t,n){"use strict";n.d(t,"a",(function(){return b}));var r=n(2),o=n(282),i=n(12),l=n(1068),a=n(1059),s=n(1127),u=n.n(s);function c(e){return(c="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}function f(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 p(e,t){return(p=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e})(e,t)}function d(e){var t=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Date.prototype.toString.call(Reflect.construct(Date,[],(function(){}))),!0}catch(e){return!1}}();return function(){var n,r=y(e);if(t){var o=y(this).constructor;n=Reflect.construct(r,arguments,o)}else n=r.apply(this,arguments);return h(this,n)}}function h(e,t){return!t||"object"!==c(t)&&"function"!=typeof t?function(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}(e):t}function y(e){return(y=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)})(e)}var b=function(e){!function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),t&&p(e,t)}(c,e);var t,n,r,s=d(c);function c(e){return function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,c),s.call(this,e)}return t=c,(n=[{key:"initialize",value:function(){this.bindListeners()}},{key:"bindListeners",value:function(){this.listenTo(this.options.channelName,"folder:selected",this.onFolderSelected)}},{key:"regions",value:function(){return{parentFolder:".parent-folder-region"}}},{key:"onFolderSelected",value:function(e,t){e&&(i.f.setSelected(this.folderTreeKey,e,this.collection,t),t||this.model.set("parentId",e.get("id"),{validate:!0}))}},{key:"renderSubFolders",value:function(){this.options.editParent&&this.showChildView("parentFolder",new l.a({collection:this.collection,channelName:this.options.channelName,folderTreeKey:this.folderTreeKey,disabledIds:this.options.disabledParentFolderIds}))}},{key:"viewOptions",value:function(){return{editName:this.options.editName,editParent:this.options.editParent}}},{key:"onRender",value:function(){this.renderSubFolders()}},{key:"name",get:function(){return"FolderDetailsComponent"}},{key:"template",get:function(){return u.a}},{key:"lang",get:function(){return"libraryEditor.folderDetails"}},{key:"folderTreeKey",get:function(){return this.options.folderTreeKey||"folderselect:".concat(this.cid)}},{key:"behaviors",get:function(){return[{behaviorClass:o.a,modelValidation:Object(a.a)({validateName:this.options.editName,validateParent:this.options.editParent,folder:this.options.model,collection:this.options.collection})},{behaviorClass:o.f}]}},{key:"bindings",get:function(){return{"[name=name]":{observe:"name",setOptions:{validate:!0}}}}}])&&f(t.prototype,n),r&&f(t,r),c}(r.a.Component)},1127: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=null!=t?t:e.nullContext||{},l=e.hooks.helperMissing,a=e.escapeExpression;return' <div class="form-group">\r\n <label for="name" class="control-label">'+a((n.lang||t&&t.lang||l).call(i,"name",{name:"lang",hash:{},data:o}))+'</label>\r\n <input name="name" id="name" type="text" class="form-control" placeholder="'+a((n.lang||t&&t.lang||l).call(i,"namePlaceholder",{name:"lang",hash:{},data:o}))+'" autocomplete="off" autofocus/>\r\n <div class="form-feedback"></div>\r\n </div>\r\n'},3:function(e,t,n,r,o){e.propertyIsEnumerable;return' <div class="form-group pt-2">\r\n <label for="parentId" class="control-label">'+e.escapeExpression((n.lang||t&&t.lang||e.hooks.helperMissing).call(null!=t?t:e.nullContext||{},"parent",{name:"lang",hash:{},data:o}))+'</label>\r\n <div class="parent-folder-region"></div>\r\n </div>\r\n'},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.editName:i,{name:"if",hash:{},fn:e.program(1,o,0),inverse:e.noop,data:o}))?i:"")+(null!=(i=n.if.call(l,null!=(i=null!=t?t.options:t)?i.editParent:i,{name:"if",hash:{},fn:e.program(3,o,0),inverse:e.noop,data:o}))?i:"")+"</form>"},useData:!0})},1248: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(null!=(i=e.lambda(null!=(i=null!=t?t.options:t)?i.spinnerEl:i,t))?i:"")+"\r\n"},3:function(e,t,n,r,o){return'<div class="folder-details-region"></div>\r\n'},compiler:[8,">= 4.3.0"],main:function(e,t,n,r,o){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,o,0),inverse:e.program(3,o,0),data:o}))?i:""},useData:!0})},1438:function(e,t,n){"use strict";n.r(t),n.d(t,"RenameFolderView",(function(){return _}));var r=n(1),o=n(6),i=n(30),l=n(5),a=n(2),s=n(42),u=n(0),c=n(282),f=n(1051),p=n(82),d=n(243),h=n(12),y=n(3),b=n(1126),m=n(1248),v=n.n(m);function g(e){return(g="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}function w(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}function k(e,t){return(k=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 o=S(this).constructor;n=Reflect.construct(r,arguments,o)}else n=r.apply(this,arguments);return P(this,n)}}function P(e,t){return!t||"object"!==g(t)&&"function"!=typeof t?function(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}(e):t}function S(e){return(S=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)})(e)}var _=function(e){!function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),t&&k(e,t)}(g,e);var t,n,a,m=O(g);function g(e){return function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,g),m.call(this,e)}return t=g,(n=[{key:"initialize",value:function(){this.bindListeners(),this.libraryDataService=l.a.getInstance(u.g.Library,this)}},{key:"bindListeners",value:function(){this.listenTo(u.e.LIBRARY,"folder:".concat(this.options.folderId,":sync"),this.render),this.listenTo(u.e.LIBRARY,"libraries:sync",this.render)}},{key:"regions",value:function(){return{folderDetails:".folder-details-region"}}},{key:"events",value:function(){return{submit:"onSubmit"}}},{key:"onSubmit",value:function(e){e&&e.preventDefault(),this.viewModel.validate(),!1!==this.viewModel.isValid()&&(o.Radio.channel(this.channelName).trigger(d.b.ShowSpinner),this.saveFolder(),this.logAction())}},{key:"logAction",value:function(){var e={id:this.options.folderId,name:this.viewModel.get("name")};s.a.logUserAction(e,this.options.analyticsOptions)}},{key:"saveFolder",value:function(){var e=this;this.libraryDataService.updateFolder(this.viewModel,(function(){e.triggerMethod("hide")}))}},{key:"setUpCollection",value:function(e){this.collection||(this.library=h.f.getLibrary(this.options.folderId,e),this.collection=this.library.children)}},{key:"setUpModel",value:function(e){this.model||(this.model=e,this.setUpViewModel())}},{key:"setUpViewModel",value:function(){if(!this.viewModel){var e="folder:details:".concat(this.options.folderId);this.viewModel=i.a.get(e,this.model.toJSON(),{ctor:p.a})}}},{key:"renderFolderDetails",value:function(){if(this.model&&this.collection){var e=new b.a({model:this.viewModel,channelName:this.channelName,editName:!0,editParent:!1});this.showChildView("folderDetails",e)}}},{key:"onBeforeRender",value:function(){this.libraryDataService.getLibraries(r.bind(this.setUpCollection,this)),this.libraryDataService.getFolderFromLibraries(this.options.folderId,r.bind(this.setUpModel,this)),this.model&&this.collection&&this.spinnerModel.set(d.c.Disabled,!1)}},{key:"viewOptions",value:function(){return{dataFetched:!!this.model&&!!this.collection,spinnerEl:h.q.getSpinner({size:h.r.Large,extraClasses:"mx-auto"})}}},{key:"onRender",value:function(){this.renderFolderDetails()}},{key:"name",get:function(){return"RenameFolderView"}},{key:"title",get:function(){return y.a.getPhrase(this.lang,"title")}},{key:"lang",get:function(){return"libraryEditor.renameFolder"}},{key:"template",get:function(){return v.a}},{key:"channelName",get:function(){return h.k.generateUniqueChannelName(this)}},{key:"behaviors",get:function(){var e=this;return[{behaviorClass:c.e,title:y.a.getPhrase(this.lang,"heading"),spinnerButtonOptions:{model:this.spinnerModel=new f.a,channelName:this.channelName,buttonText:y.a.getPhrase(this.lang,"save"),onClick:function(t){return e.onSubmit(t)}}}]}}])&&w(t.prototype,n),a&&w(t,a),g}(a.a.View)}}]);
1
+ (window.webpackJsonp_clickview_library_editor=window.webpackJsonp_clickview_library_editor||[]).push([[40],{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 u(e){var t=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Date.prototype.toString.call(Reflect.construct(Date,[],(function(){}))),!0}catch(e){return!1}}();return function(){var n,r=f(e);if(t){var o=f(this).constructor;n=Reflect.construct(r,arguments,o)}else n=r.apply(this,arguments);return c(this,n)}}function c(e,t){return!t||"object"!==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)}(c,e);var t,n,r,i=u(c);function c(){return l(this,c),i.apply(this,arguments)}return t=c,(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),c}(r.a.Model)},1220:function(e,t,n){"use strict";n.d(t,"a",(function(){return c}));var r=n(1),o=n(49),i=n(162),l=n(3),a="libraryEditor.utils",s={name:[{required:!0,msg:function(){return l.a.getPhrase(a,"folderNameRequired")}},{maxLength:255,msg:function(){return l.a.getPhrase(a,"folderNameExceeds")}}]},u=function(e,t){return{parentId:function(n){return n?o.a.calculateDestinationFolderDepth(e,n,t)>i.a.MAX_FOLDER_DEPTH?l.a.getPhrase(a,"maxFolderDepth",{maxDepth:i.a.MAX_FOLDER_DEPTH}):"":l.a.getPhrase(a,"selectParentFolder")}}},c=function(e){var t=e.validateName,n=e.validateParent,o=e.folder,i=e.collection;return t&&n?r.extend({},s,u(o,i)):t?s:n?u(o,i):void 0}},1229:function(e,t,n){"use strict";n.d(t,"a",(function(){return v}));var r=n(6),o=n(2),i=n(3),l=n(1243),a=n(12),s=n(1230),u=n.n(s),c=n(1231),f=n.n(c);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 v=function(e){!function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),t&&h(e,t)}(c,e);var t,n,o,s=y(c);function c(e){return function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,c),s.call(this,e)}return t=c,(n=[{key:"initialize",value:function(){this.listenTo(this.options.channelName,"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 u.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),c}(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"}},1287:function(e,t,n){"use strict";n.d(t,"a",(function(){return b}));var r=n(2),o=n(293),i=n(12),l=n(1229),a=n(1220),s=n(1288),u=n.n(s);function c(e){return(c="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}function f(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 p(e,t){return(p=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e})(e,t)}function d(e){var t=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Date.prototype.toString.call(Reflect.construct(Date,[],(function(){}))),!0}catch(e){return!1}}();return function(){var n,r=y(e);if(t){var o=y(this).constructor;n=Reflect.construct(r,arguments,o)}else n=r.apply(this,arguments);return h(this,n)}}function h(e,t){return!t||"object"!==c(t)&&"function"!=typeof t?function(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}(e):t}function y(e){return(y=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)})(e)}var b=function(e){!function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),t&&p(e,t)}(c,e);var t,n,r,s=d(c);function c(e){return function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,c),s.call(this,e)}return t=c,(n=[{key:"initialize",value:function(){this.bindListeners()}},{key:"bindListeners",value:function(){this.listenTo(this.options.channelName,"folder:selected",this.onFolderSelected)}},{key:"regions",value:function(){return{parentFolder:".parent-folder-region"}}},{key:"onFolderSelected",value:function(e,t){e&&(i.f.setSelected(this.folderTreeKey,e,this.collection,t),t||this.model.set("parentId",e.get("id"),{validate:!0}))}},{key:"renderSubFolders",value:function(){this.options.editParent&&this.showChildView("parentFolder",new l.a({collection:this.collection,channelName:this.options.channelName,folderTreeKey:this.folderTreeKey,disabledIds:this.options.disabledParentFolderIds}))}},{key:"viewOptions",value:function(){return{editName:this.options.editName,editParent:this.options.editParent}}},{key:"onRender",value:function(){this.renderSubFolders()}},{key:"name",get:function(){return"FolderDetailsComponent"}},{key:"template",get:function(){return u.a}},{key:"lang",get:function(){return"libraryEditor.folderDetails"}},{key:"folderTreeKey",get:function(){return this.options.folderTreeKey||"folderselect:".concat(this.cid)}},{key:"behaviors",get:function(){return[{behaviorClass:o.a,modelValidation:Object(a.a)({validateName:this.options.editName,validateParent:this.options.editParent,folder:this.options.model,collection:this.options.collection})},{behaviorClass:o.f}]}},{key:"bindings",get:function(){return{"[name=name]":{observe:"name",setOptions:{validate:!0}}}}}])&&f(t.prototype,n),r&&f(t,r),c}(r.a.Component)},1288: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=null!=t?t:e.nullContext||{},l=e.hooks.helperMissing,a=e.escapeExpression;return' <div class="form-group">\r\n <label for="name" class="control-label">'+a((n.lang||t&&t.lang||l).call(i,"name",{name:"lang",hash:{},data:o}))+'</label>\r\n <input name="name" id="name" type="text" class="form-control" placeholder="'+a((n.lang||t&&t.lang||l).call(i,"namePlaceholder",{name:"lang",hash:{},data:o}))+'" autocomplete="off" autofocus/>\r\n <div class="form-feedback"></div>\r\n </div>\r\n'},3:function(e,t,n,r,o){e.propertyIsEnumerable;return' <div class="form-group pt-2">\r\n <label for="parentId" class="control-label">'+e.escapeExpression((n.lang||t&&t.lang||e.hooks.helperMissing).call(null!=t?t:e.nullContext||{},"parent",{name:"lang",hash:{},data:o}))+'</label>\r\n <div class="parent-folder-region"></div>\r\n </div>\r\n'},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.editName:i,{name:"if",hash:{},fn:e.program(1,o,0),inverse:e.noop,data:o}))?i:"")+(null!=(i=n.if.call(l,null!=(i=null!=t?t.options:t)?i.editParent:i,{name:"if",hash:{},fn:e.program(3,o,0),inverse:e.noop,data:o}))?i:"")+"</form>"},useData:!0})},1409: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(null!=(i=e.lambda(null!=(i=null!=t?t.options:t)?i.spinnerEl:i,t))?i:"")+"\r\n"},3:function(e,t,n,r,o){return'<div class="folder-details-region"></div>\r\n'},compiler:[8,">= 4.3.0"],main:function(e,t,n,r,o){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,o,0),inverse:e.program(3,o,0),data:o}))?i:""},useData:!0})},1599:function(e,t,n){"use strict";n.r(t),n.d(t,"RenameFolderView",(function(){return _}));var r=n(1),o=n(6),i=n(30),l=n(5),a=n(2),s=n(42),u=n(0),c=n(293),f=n(1212),p=n(83),d=n(253),h=n(12),y=n(3),b=n(1287),m=n(1409),v=n.n(m);function g(e){return(g="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}function w(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}function k(e,t){return(k=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 o=S(this).constructor;n=Reflect.construct(r,arguments,o)}else n=r.apply(this,arguments);return P(this,n)}}function P(e,t){return!t||"object"!==g(t)&&"function"!=typeof t?function(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}(e):t}function S(e){return(S=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)})(e)}var _=function(e){!function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),t&&k(e,t)}(g,e);var t,n,a,m=O(g);function g(e){return function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,g),m.call(this,e)}return t=g,(n=[{key:"initialize",value:function(){this.bindListeners(),this.libraryDataService=l.a.getInstance(u.g.Library,this)}},{key:"bindListeners",value:function(){this.listenTo(u.e.LIBRARY,"folder:".concat(this.options.folderId,":sync"),this.render),this.listenTo(u.e.LIBRARY,"libraries:sync",this.render)}},{key:"regions",value:function(){return{folderDetails:".folder-details-region"}}},{key:"events",value:function(){return{submit:"onSubmit"}}},{key:"onSubmit",value:function(e){e&&e.preventDefault(),this.viewModel.validate(),!1!==this.viewModel.isValid()&&(o.Radio.channel(this.channelName).trigger(d.b.ShowSpinner),this.saveFolder(),this.logAction())}},{key:"logAction",value:function(){var e={id:this.options.folderId,name:this.viewModel.get("name")};s.a.logUserAction(e,this.options.analyticsOptions)}},{key:"saveFolder",value:function(){var e=this;this.libraryDataService.updateFolder(this.viewModel,(function(){e.triggerMethod("hide")}))}},{key:"setUpCollection",value:function(e){this.collection||(this.library=h.f.getLibrary(this.options.folderId,e),this.collection=this.library.children)}},{key:"setUpModel",value:function(e){this.model||(this.model=e,this.setUpViewModel())}},{key:"setUpViewModel",value:function(){if(!this.viewModel){var e="folder:details:".concat(this.options.folderId);this.viewModel=i.a.get(e,this.model.toJSON(),{ctor:p.a})}}},{key:"renderFolderDetails",value:function(){if(this.model&&this.collection){var e=new b.a({model:this.viewModel,channelName:this.channelName,editName:!0,editParent:!1});this.showChildView("folderDetails",e)}}},{key:"onBeforeRender",value:function(){this.libraryDataService.getLibraries(r.bind(this.setUpCollection,this)),this.libraryDataService.getFolderFromLibraries(this.options.folderId,r.bind(this.setUpModel,this)),this.model&&this.collection&&this.spinnerModel.set(d.c.Disabled,!1)}},{key:"viewOptions",value:function(){return{dataFetched:!!this.model&&!!this.collection,spinnerEl:h.q.getSpinner({size:h.r.Large,extraClasses:"mx-auto"})}}},{key:"onRender",value:function(){this.renderFolderDetails()}},{key:"name",get:function(){return"RenameFolderView"}},{key:"title",get:function(){return y.a.getPhrase(this.lang,"title")}},{key:"lang",get:function(){return"libraryEditor.renameFolder"}},{key:"template",get:function(){return v.a}},{key:"channelName",get:function(){return h.k.generateUniqueChannelName(this)}},{key:"behaviors",get:function(){var e=this;return[{behaviorClass:c.e,title:y.a.getPhrase(this.lang,"heading"),spinnerButtonOptions:{model:this.spinnerModel=new f.a,channelName:this.channelName,buttonText:y.a.getPhrase(this.lang,"save"),onClick:function(t){return e.onSubmit(t)}}}]}}])&&w(t.prototype,n),a&&w(t,a),g}(a.a.View)}}]);